From 5e9f4eea451a77ba3b93db3747841ed2bd969e9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 30 Sep 2018 14:09:20 +0200 Subject: New upstream version 0.30.1 --- .doap | 21 + ABOUT-NLS | 1379 - ChangeLog | 47395 ------------------- INSTALL | 13 +- MAINTAINERS | 3 + Makefile.am | 200 - Makefile.in | 8577 ---- NEWS | 191 +- README | 58 - README.md | 51 + aclocal.m4 | 1247 - app-icons/Makefile.am | 41 - app-icons/Makefile.in | 758 - app-icons/shotwell-source.svg | 5248 ++ apport/Makefile.am | 2 - apport/Makefile.in | 564 - apport/git.mk | 359 + authenticator.am | 60 - autogen.sh | 36 - build-aux/compile | 347 - build-aux/config.guess | 1480 - build-aux/config.rpath | 684 - build-aux/config.sub | 1801 - build-aux/depcomp | 791 - build-aux/install-sh | 508 - build-aux/ltmain.sh | 11156 ----- build-aux/meson/postinstall.py | 21 + build-aux/missing | 215 - common.am | 22 - config.h.in | 86 - configure | 19681 -------- configure.ac | 305 - data/appdata/edit.png | Bin 0 -> 759405 bytes data/appdata/harbor.png | Bin 0 -> 915595 bytes data/appdata/import.png | Bin 0 -> 938932 bytes data/appdata/organize.png | Bin 0 -> 737779 bytes data/appdata/publish.png | Bin 0 -> 557536 bytes dist/debian/changelog | 997 + dist/debian/compat | 1 + dist/debian/control | 67 + dist/debian/copyright | 26 + dist/debian/dirs | 6 + dist/debian/docs | 3 + dist/debian/menu | 2 + dist/debian/rules | 16 + dist/debian/shotwell.install | 3 + dist/debian/watch | 3 + facedetect/facedetect-haarcascade.xml | 26161 ++++++++++ facedetect/meson.build | 10 + facedetect/shotwell-facedetect.cpp | 134 + flatpak/org.gnome.Shotwell.json | 170 + flatpak/org.gnome.Shotwell.nightly.flatpakref | 8 + flatpak/org.gnome.Shotwell.unstable.flatpakref | 8 + flatpak/patches/exiv2-no-builddir.patch | 25 + flatpak/patches/libraw-pkgconfig.patch | 43 + help/C/figures/trash_process.svg | 63 + help/LINGUAS | 9 + help/Makefile.am | 58 - help/Makefile.in | 641 - help/cs/cs.stamp | 0 help/cs/edit-adjustments.page | 53 - help/cs/edit-crop.page | 44 - help/cs/edit-date-time.page | 19 - help/cs/edit-enhance.page | 16 - help/cs/edit-external.page | 26 - help/cs/edit-nondestructive.page | 19 - help/cs/edit-redeye.page | 25 - help/cs/edit-rotate.page | 26 - help/cs/edit-straighten.page | 27 - help/cs/edit-undo.page | 21 - help/cs/formats.page | 27 - help/cs/import-camera.page | 31 - help/cs/import-file.page | 23 - help/cs/import-memorycard.page | 31 - help/cs/index.page | 46 - help/cs/organize-event.page | 53 - help/cs/organize-flag.page | 24 - help/cs/organize-rating.page | 27 - help/cs/organize-remove.page | 42 - help/cs/organize-search.page | 33 - help/cs/organize-tag.page | 41 - help/cs/organize-title.page | 17 - help/cs/other-files.page | 100 - help/cs/other-missing.page | 21 - help/cs/other-multiple.page | 21 - help/cs/other-plugins.page | 18 - help/cs/raw.page | 24 - help/cs/running.page | 23 - help/cs/share-background.page | 17 - help/cs/share-export.page | 39 - help/cs/share-print.page | 18 - help/cs/share-send.page | 16 - help/cs/share-slideshow.page | 22 - help/cs/share-upload.page | 32 - help/cs/view-displaying.page | 26 - help/cs/view-information.page | 17 - help/cs/view-sidebar.page | 33 - help/de/de.stamp | 0 help/de/edit-adjustments.page | 71 - help/de/edit-crop.page | 62 - help/de/edit-date-time.page | 37 - help/de/edit-enhance.page | 34 - help/de/edit-external.page | 44 - help/de/edit-nondestructive.page | 37 - help/de/edit-redeye.page | 43 - help/de/edit-rotate.page | 44 - help/de/edit-straighten.page | 45 - help/de/edit-undo.page | 39 - help/de/formats.page | 45 - help/de/import-camera.page | 49 - help/de/import-file.page | 41 - help/de/import-memorycard.page | 49 - help/de/index.page | 64 - help/de/organize-event.page | 71 - help/de/organize-flag.page | 42 - help/de/organize-rating.page | 45 - help/de/organize-remove.page | 60 - help/de/organize-search.page | 51 - help/de/organize-tag.page | 59 - help/de/organize-title.page | 35 - help/de/other-files.page | 118 - help/de/other-missing.page | 39 - help/de/other-multiple.page | 39 - help/de/other-plugins.page | 36 - help/de/raw.page | 42 - help/de/running.page | 41 - help/de/share-background.page | 35 - help/de/share-export.page | 57 - help/de/share-print.page | 36 - help/de/share-send.page | 34 - help/de/share-slideshow.page | 40 - help/de/share-upload.page | 50 - help/de/view-displaying.page | 44 - help/de/view-information.page | 35 - help/de/view-sidebar.page | 51 - help/el/edit-adjustments.page | 53 - help/el/edit-crop.page | 44 - help/el/edit-date-time.page | 19 - help/el/edit-enhance.page | 16 - help/el/edit-external.page | 31 - help/el/edit-nondestructive.page | 19 - help/el/edit-redeye.page | 25 - help/el/edit-rotate.page | 26 - help/el/edit-straighten.page | 27 - help/el/edit-undo.page | 21 - help/el/el.stamp | 0 help/el/formats.page | 29 - help/el/import-camera.page | 31 - help/el/import-file.page | 23 - help/el/import-memorycard.page | 31 - help/el/index.page | 46 - help/el/organize-event.page | 53 - help/el/organize-flag.page | 24 - help/el/organize-rating.page | 27 - help/el/organize-remove.page | 42 - help/el/organize-search.page | 41 - help/el/organize-tag.page | 68 - help/el/organize-title.page | 18 - help/el/other-files.page | 103 - help/el/other-missing.page | 21 - help/el/other-multiple.page | 21 - help/el/other-plugins.page | 18 - help/el/raw.page | 24 - help/el/running.page | 23 - help/el/share-background.page | 21 - help/el/share-export.page | 42 - help/el/share-print.page | 23 - help/el/share-send.page | 16 - help/el/share-slideshow.page | 22 - help/el/share-upload.page | 37 - help/el/view-displaying.page | 26 - help/el/view-information.page | 17 - help/el/view-sidebar.page | 33 - help/es/edit-adjustments.page | 71 - help/es/edit-crop.page | 62 - help/es/edit-date-time.page | 37 - help/es/edit-enhance.page | 34 - help/es/edit-external.page | 44 - help/es/edit-nondestructive.page | 37 - help/es/edit-redeye.page | 43 - help/es/edit-rotate.page | 44 - help/es/edit-straighten.page | 45 - help/es/edit-undo.page | 39 - help/es/es.po | 404 +- help/es/es.stamp | 0 help/es/formats.page | 47 - help/es/import-camera.page | 49 - help/es/import-file.page | 41 - help/es/import-memorycard.page | 49 - help/es/index.page | 64 - help/es/organize-event.page | 71 - help/es/organize-flag.page | 42 - help/es/organize-rating.page | 45 - help/es/organize-remove.page | 60 - help/es/organize-search.page | 51 - help/es/organize-tag.page | 59 - help/es/organize-title.page | 35 - help/es/other-files.page | 121 - help/es/other-missing.page | 39 - help/es/other-multiple.page | 39 - help/es/other-plugins.page | 36 - help/es/raw.page | 42 - help/es/running.page | 41 - help/es/share-background.page | 35 - help/es/share-export.page | 57 - help/es/share-print.page | 36 - help/es/share-send.page | 34 - help/es/share-slideshow.page | 40 - help/es/share-upload.page | 53 - help/es/view-displaying.page | 44 - help/es/view-information.page | 35 - help/es/view-sidebar.page | 51 - help/fr/fr.po | 3340 ++ help/hu/edit-adjustments.page | 65 - help/hu/edit-crop.page | 57 - help/hu/edit-date-time.page | 31 - help/hu/edit-enhance.page | 28 - help/hu/edit-external.page | 65 - help/hu/edit-nondestructive.page | 32 - help/hu/edit-redeye.page | 37 - help/hu/edit-rotate.page | 38 - help/hu/edit-straighten.page | 39 - help/hu/edit-undo.page | 33 - help/hu/formats.page | 45 - help/hu/hu.stamp | 0 help/hu/import-camera.page | 44 - help/hu/import-file.page | 35 - help/hu/import-memorycard.page | 43 - help/hu/index.page | 58 - help/hu/organize-event.page | 71 - help/hu/organize-flag.page | 46 - help/hu/organize-rating.page | 40 - help/hu/organize-remove.page | 56 - help/hu/organize-search.page | 49 - help/hu/organize-tag.page | 53 - help/hu/organize-title.page | 29 - help/hu/other-files.page | 127 - help/hu/other-missing.page | 33 - help/hu/other-multiple.page | 33 - help/hu/other-plugins.page | 39 - help/hu/raw.page | 57 - help/hu/running.page | 39 - help/hu/share-background.page | 33 - help/hu/share-export.page | 51 - help/hu/share-print.page | 30 - help/hu/share-send.page | 28 - help/hu/share-slideshow.page | 34 - help/hu/share-upload.page | 47 - help/hu/view-displaying.page | 38 - help/hu/view-information.page | 29 - help/hu/view-sidebar.page | 45 - help/lv/edit-adjustments.page | 53 - help/lv/edit-crop.page | 44 - help/lv/edit-date-time.page | 19 - help/lv/edit-enhance.page | 16 - help/lv/edit-external.page | 26 - help/lv/edit-nondestructive.page | 19 - help/lv/edit-redeye.page | 25 - help/lv/edit-rotate.page | 26 - help/lv/edit-straighten.page | 27 - help/lv/edit-undo.page | 21 - help/lv/formats.page | 29 - help/lv/import-camera.page | 31 - help/lv/import-file.page | 23 - help/lv/import-memorycard.page | 31 - help/lv/index.page | 46 - help/lv/lv.stamp | 0 help/lv/organize-event.page | 53 - help/lv/organize-flag.page | 24 - help/lv/organize-rating.page | 27 - help/lv/organize-remove.page | 42 - help/lv/organize-search.page | 33 - help/lv/organize-tag.page | 41 - help/lv/organize-title.page | 17 - help/lv/other-files.page | 103 - help/lv/other-missing.page | 21 - help/lv/other-multiple.page | 21 - help/lv/other-plugins.page | 18 - help/lv/raw.page | 24 - help/lv/running.page | 23 - help/lv/share-background.page | 17 - help/lv/share-export.page | 39 - help/lv/share-print.page | 18 - help/lv/share-send.page | 16 - help/lv/share-slideshow.page | 22 - help/lv/share-upload.page | 35 - help/lv/view-displaying.page | 26 - help/lv/view-information.page | 17 - help/lv/view-sidebar.page | 33 - help/meson.build | 3 +- help/pt_BR/edit-adjustments.page | 59 - help/pt_BR/edit-crop.page | 50 - help/pt_BR/edit-date-time.page | 25 - help/pt_BR/edit-enhance.page | 22 - help/pt_BR/edit-external.page | 32 - help/pt_BR/edit-nondestructive.page | 25 - help/pt_BR/edit-redeye.page | 31 - help/pt_BR/edit-rotate.page | 32 - help/pt_BR/edit-straighten.page | 33 - help/pt_BR/edit-undo.page | 27 - help/pt_BR/formats.page | 35 - help/pt_BR/import-camera.page | 37 - help/pt_BR/import-file.page | 29 - help/pt_BR/import-memorycard.page | 37 - help/pt_BR/index.page | 52 - help/pt_BR/organize-event.page | 59 - help/pt_BR/organize-flag.page | 30 - help/pt_BR/organize-rating.page | 33 - help/pt_BR/organize-remove.page | 48 - help/pt_BR/organize-search.page | 39 - help/pt_BR/organize-tag.page | 47 - help/pt_BR/organize-title.page | 23 - help/pt_BR/other-files.page | 109 - help/pt_BR/other-missing.page | 27 - help/pt_BR/other-multiple.page | 27 - help/pt_BR/other-plugins.page | 24 - help/pt_BR/pt_BR.stamp | 0 help/pt_BR/raw.page | 30 - help/pt_BR/running.page | 29 - help/pt_BR/share-background.page | 23 - help/pt_BR/share-export.page | 45 - help/pt_BR/share-print.page | 24 - help/pt_BR/share-send.page | 22 - help/pt_BR/share-slideshow.page | 28 - help/pt_BR/share-upload.page | 41 - help/pt_BR/view-displaying.page | 32 - help/pt_BR/view-information.page | 23 - help/pt_BR/view-sidebar.page | 39 - help/sv/edit-adjustments.page | 65 - help/sv/edit-crop.page | 56 - help/sv/edit-date-time.page | 31 - help/sv/edit-enhance.page | 28 - help/sv/edit-external.page | 38 - help/sv/edit-nondestructive.page | 31 - help/sv/edit-redeye.page | 37 - help/sv/edit-rotate.page | 38 - help/sv/edit-straighten.page | 39 - help/sv/edit-undo.page | 33 - help/sv/formats.page | 39 - help/sv/import-camera.page | 43 - help/sv/import-file.page | 35 - help/sv/import-memorycard.page | 43 - help/sv/index.page | 58 - help/sv/organize-event.page | 65 - help/sv/organize-flag.page | 36 - help/sv/organize-rating.page | 39 - help/sv/organize-remove.page | 54 - help/sv/organize-search.page | 45 - help/sv/organize-tag.page | 53 - help/sv/organize-title.page | 29 - help/sv/other-files.page | 112 - help/sv/other-missing.page | 33 - help/sv/other-multiple.page | 33 - help/sv/other-plugins.page | 30 - help/sv/raw.page | 36 - help/sv/running.page | 35 - help/sv/share-background.page | 29 - help/sv/share-export.page | 51 - help/sv/share-print.page | 30 - help/sv/share-send.page | 28 - help/sv/share-slideshow.page | 34 - help/sv/share-upload.page | 47 - help/sv/sv.po | 232 +- help/sv/sv.stamp | 0 help/sv/view-displaying.page | 38 - help/sv/view-information.page | 29 - help/sv/view-sidebar.page | 45 - icons/Makefile.am | 57 - icons/Makefile.in | 568 - icons/about-braunschweig.jpg | Bin 17968 -> 0 bytes icons/about-celle.jpg | Bin 0 -> 23023 bytes icons/all-rejected.png | Bin 1993 -> 0 bytes icons/avatar-default-symbolic.svg | 32 + icons/crop-pivot-reticle-symbolic.svg | 207 + icons/crop-pivot-reticle.png | Bin 3301 -> 0 bytes icons/crop.svg | 57 - icons/events-merge-symbolic.svg | 122 + icons/faces-tool.png | Bin 6626 -> 0 bytes icons/filter-flagged-disabled-symbolic.svg | 31 + icons/filter-flagged-disabled.png | Bin 3135 -> 0 bytes icons/filter-flagged-symbolic.svg | 31 + icons/filter-flagged.png | Bin 3179 -> 0 bytes icons/filter-photos-disabled-symbolic.svg | 33 + icons/filter-photos-disabled.png | Bin 3106 -> 0 bytes icons/filter-photos-symbolic.svg | 33 + icons/filter-photos.png | Bin 3176 -> 0 bytes icons/filter-raw-disabled-symbolic.svg | 17 + icons/filter-raw-disabled.png | Bin 4166 -> 0 bytes icons/filter-raw-symbolic.svg | 17 + icons/filter-raw.png | Bin 4265 -> 0 bytes icons/filter-videos-disabled-symbolic.svg | 33 + icons/filter-videos-disabled.png | Bin 3610 -> 0 bytes icons/filter-videos-symbolic.svg | 33 + icons/filter-videos.png | Bin 3627 -> 0 bytes icons/five-star-filter.svg | 432 - icons/five-stars.svg | 314 - icons/flag-page.png | Bin 556 -> 0 bytes icons/flag-trinket.png | Bin 578 -> 0 bytes icons/four-star-filter-plus.svg | 404 - icons/four-stars.svg | 274 - icons/generic-plugin.png | Bin 3451 -> 0 bytes icons/image-adjust-color-symbolic.svg | 28 + icons/image-adjust.svg | 369 - icons/image-auto-adjust-symbolic.svg | 26 + icons/image-crop-symbolic.svg | 32 + icons/image-missing.png | Bin 0 -> 8581 bytes icons/image-zoom-in-symbolic.svg | 35 + icons/image-zoom-out-symbolic.svg | 35 + icons/import-all.png | Bin 6571 -> 0 bytes icons/import.svg | 55 - icons/make-primary.svg | 13 - icons/many-faces.png | Bin 764 -> 0 bytes icons/merge.svg | 33 - icons/multiple-events-symbolic.svg | 38 + icons/multiple-events.png | Bin 3035 -> 0 bytes icons/multiple-tags-symbolic.svg | 36 + icons/multiple-tags.png | Bin 3425 -> 0 bytes icons/no-event-symbolic.svg | 171 + icons/no-event.png | Bin 2994 -> 0 bytes icons/one-event-symbolic.svg | 166 + icons/one-event.png | Bin 2896 -> 0 bytes icons/one-face.png | Bin 546 -> 0 bytes icons/one-star-filter-plus.svg | 322 - icons/one-star.svg | 161 - icons/one-tag-symbolic.svg | 35 + icons/one-tag.png | Bin 3152 -> 0 bytes icons/pin-toolbar.svg | 528 - icons/publish.png | Bin 7209 -> 0 bytes icons/redeye.png | Bin 5337 -> 0 bytes icons/rejected.svg | 451 - icons/shotwell-16.png | Bin 884 -> 0 bytes icons/shotwell-auto-enhance.png | Bin 9612 -> 0 bytes icons/shotwell.png | Bin 884 -> 0 bytes icons/sprocket.png | Bin 231 -> 0 bytes icons/stock-eye-symbolic.svg | 109 + icons/straighten-symbolic.svg | 175 + icons/straighten.svg | 1238 - icons/three-star-filter-plus.svg | 358 - icons/three-stars.svg | 234 - icons/two-star-filter-plus.svg | 328 - icons/two-stars.svg | 194 - icons/videos-page.png | Bin 949 -> 0 bytes icons/zoom-in.png | Bin 1458 -> 0 bytes icons/zoom-out.png | Bin 1245 -> 0 bytes m4/appstream-xml.m4 | 86 - m4/ax_generate_changelog.m4 | 99 - m4/ax_is_release.m4 | 69 - m4/ax_require_defined.m4 | 37 - m4/gettext.m4 | 405 - m4/gsettings.m4 | 83 - m4/iconv.m4 | 271 - m4/intlmacosx.m4 | 56 - m4/lib-ld.m4 | 119 - m4/lib-link.m4 | 777 - m4/lib-prefix.m4 | 224 - m4/libtool.m4 | 8387 ---- m4/ltoptions.m4 | 437 - m4/ltsugar.m4 | 124 - m4/ltversion.m4 | 23 - m4/lt~obsolete.m4 | 99 - m4/nls.m4 | 32 - m4/pkg.m4 | 214 - m4/po.m4 | 453 - m4/progtest.m4 | 91 - m4/yelp.m4 | 219 - meson.build | 28 +- meson_options.txt | 10 +- misc/Makefile.am | 29 - misc/Makefile.in | 592 - misc/org.gnome.Shotwell.css | 3 + misc/org.yorba.shotwell.gschema.xml | 8 +- misc/shotwell.appdata.xml.in | 13 +- misc/shotwell.convert | 105 + org.gnome.Shotwell.gresource.xml | 77 +- pipeline.am | 47 - plugins/authenticator/shotwell-authenticator.h | 43 - plugins/authenticator/shotwell-authenticator.vapi | 23 - .../shotwell/FacebookPublishingAuthenticator.c | 2419 - .../shotwell/FlickrPublishingAuthenticator.c | 1674 - .../authenticator/shotwell/GoogleAuthenticator.c | 2733 -- .../authenticator/shotwell/OAuth1Authenticator.c | 772 - .../shotwell/ShotwellAuthenticatorFactory.c | 416 - .../authenticator/shotwell/TumblrAuthenticator.c | 1488 - plugins/common/BuilderPane.c | 711 - plugins/common/OAuth1Support.c | 1887 - plugins/common/RESTSupport.c | 7826 --- plugins/common/RESTSupport.vala | 3 + plugins/common/Resources.c | 444 - plugins/common/WebAuthenticationPane.c | 637 - plugins/meson.build | 2 +- plugins/shotwell-plugin-common.h | 670 - plugins/shotwell-plugin-common.vapi | 205 - plugins/shotwell-plugin-dev-1.0.h | 1046 - plugins/shotwell-plugin-dev-1.0.vapi | 416 - .../shotwell-publishing-extras/GalleryConnector.c | 13133 ----- .../shotwell-publishing-extras/RajcePublishing.c | 11924 ----- .../shotwell-publishing-extras/YandexPublishing.c | 5214 -- .../shotwell-publishing-extras.c | 387 - plugins/shotwell-publishing/FacebookPublishing.c | 10155 ---- plugins/shotwell-publishing/FlickrPublishing.c | 6939 --- plugins/shotwell-publishing/PicasaPublishing.c | 6930 --- plugins/shotwell-publishing/PiwigoPublishing.c | 13709 ------ plugins/shotwell-publishing/PiwigoPublishing.vala | 3 + plugins/shotwell-publishing/TumblrPublishing.c | 5544 --- plugins/shotwell-publishing/YouTubePublishing.c | 4355 -- plugins/shotwell-publishing/shotwell-publishing.c | 743 - plugins/shotwell-transitions/BlindsEffect.c | 843 - plugins/shotwell-transitions/ChessEffect.c | 763 - plugins/shotwell-transitions/CircleEffect.c | 528 - plugins/shotwell-transitions/CirclesEffect.c | 662 - plugins/shotwell-transitions/ClockEffect.c | 633 - plugins/shotwell-transitions/CrumbleEffect.c | 884 - plugins/shotwell-transitions/FadeEffect.c | 518 - plugins/shotwell-transitions/SlideEffect.c | 617 - plugins/shotwell-transitions/SquaresEffect.c | 707 - plugins/shotwell-transitions/StripesEffect.c | 704 - .../shotwell-transitions/shotwell-transitions.c | 1240 - ...ticator_libshotwell_authenticator_la_vala.stamp | 1 - ..._common_libshotwell_plugin_common_la_vala.stamp | 1 - ...extras_shotwell_publishing_extras_la_vala.stamp | 1 - ...ll_publishing_shotwell_publishing_la_vala.stamp | 1 - ..._transitions_shotwell_transitions_la_vala.stamp | 1 - po/Makefile.in.in | 483 - po/Makevars | 78 - po/POTFILES.in | 5 + po/POTFILES.skip | 102 + po/Rules-quot | 58 - po/af.gmo | Bin 18553 -> 0 bytes po/ar.gmo | Bin 108357 -> 0 bytes po/as.gmo | Bin 127024 -> 0 bytes po/ast.gmo | Bin 40848 -> 0 bytes po/bg.gmo | Bin 48043 -> 0 bytes po/bn.gmo | Bin 4237 -> 0 bytes po/bn_IN.gmo | Bin 43428 -> 0 bytes po/boldquot.sed | 10 - po/bs.gmo | Bin 88670 -> 0 bytes po/ca.gmo | Bin 125933 -> 0 bytes po/cs.gmo | Bin 125708 -> 0 bytes po/cs.po | 1413 +- po/da.gmo | Bin 117395 -> 0 bytes po/da.po | 4 +- po/de.gmo | Bin 123744 -> 0 bytes po/de.po | 1429 +- po/el.gmo | Bin 122039 -> 0 bytes po/en@boldquot.header | 25 - po/en@quot.header | 22 - po/en_GB.gmo | Bin 71942 -> 0 bytes po/eo.gmo | Bin 1232 -> 0 bytes po/es.gmo | Bin 121832 -> 0 bytes po/es.po | 2079 +- po/et.gmo | Bin 75015 -> 0 bytes po/eu.gmo | Bin 86114 -> 0 bytes po/fi.gmo | Bin 79117 -> 0 bytes po/fi.po | 1417 +- po/fr.gmo | Bin 124476 -> 0 bytes po/fr.po | 3113 +- po/gd.gmo | Bin 105793 -> 0 bytes po/gl.gmo | Bin 120289 -> 0 bytes po/gl.po | 2012 +- po/gu.gmo | Bin 123081 -> 0 bytes po/he.gmo | Bin 129294 -> 0 bytes po/hi.gmo | Bin 112151 -> 0 bytes po/hr.gmo | Bin 121866 -> 0 bytes po/hr.po | 1729 +- po/hu.gmo | Bin 124744 -> 0 bytes po/hu.po | 1413 +- po/ia.gmo | Bin 923 -> 0 bytes po/id.gmo | Bin 112320 -> 0 bytes po/id.po | 2042 +- po/insert-header.sin | 23 - po/it.gmo | Bin 76645 -> 0 bytes po/ja.gmo | Bin 90952 -> 0 bytes po/kk.gmo | Bin 107635 -> 0 bytes po/km.gmo | Bin 1404 -> 0 bytes po/kn.gmo | Bin 122194 -> 0 bytes po/ko.gmo | Bin 122823 -> 0 bytes po/ky.gmo | Bin 3534 -> 0 bytes po/lt.gmo | Bin 92216 -> 0 bytes po/lv.gmo | Bin 123836 -> 0 bytes po/lv.po | 1473 +- po/mk.gmo | Bin 66388 -> 0 bytes po/ml.gmo | Bin 143167 -> 0 bytes po/mr.gmo | Bin 120037 -> 0 bytes po/nb.gmo | Bin 83762 -> 0 bytes po/nl.gmo | Bin 81750 -> 0 bytes po/nn.gmo | Bin 9571 -> 0 bytes po/oc.gmo | Bin 84480 -> 0 bytes po/or.gmo | Bin 125003 -> 0 bytes po/pa.gmo | Bin 114305 -> 0 bytes po/pl.gmo | Bin 127774 -> 0 bytes po/pl.po | 1415 +- po/pt.gmo | Bin 94517 -> 0 bytes po/pt_BR.gmo | Bin 121742 -> 0 bytes po/pt_BR.po | 1448 +- po/quot.sed | 6 - po/remove-potcdate.sin | 19 - po/ro.gmo | Bin 93631 -> 0 bytes po/ru.gmo | Bin 118830 -> 0 bytes po/shotwell.pot | 6005 --- po/sk.gmo | Bin 93309 -> 0 bytes po/sl.gmo | Bin 82074 -> 0 bytes po/sr.gmo | Bin 168012 -> 0 bytes po/sr@latin.gmo | Bin 126635 -> 0 bytes po/stamp-po | 1 - po/sv.gmo | Bin 117912 -> 0 bytes po/sv.po | 2053 +- po/ta.gmo | Bin 148613 -> 0 bytes po/te.gmo | Bin 124349 -> 0 bytes po/th.gmo | Bin 60762 -> 0 bytes po/tr.gmo | Bin 113208 -> 0 bytes po/tr.po | 2579 +- po/uk.gmo | Bin 177920 -> 0 bytes po/vi.gmo | Bin 88337 -> 0 bytes po/zh_CN.gmo | Bin 74913 -> 0 bytes po/zh_CN.po | 9078 ++-- po/zh_HK.gmo | Bin 75253 -> 0 bytes po/zh_TW.gmo | Bin 108506 -> 0 bytes po/zh_TW.po | 1484 +- publish-extra.am | 52 - publish.am | 78 - samples/simple-plugin/README | 27 + samples/simple-plugin/simple-plugin.vala | 49 + shotwell-plugin-dev-1.0.m4 | 11 + shotwell.am | 244 - shotwell.doap | 29 + shotwell_vala.stamp | 1 - src/.unitize/_CameraInternals.c | 120 - src/.unitize/_ConfigInternals.c | 106 - src/.unitize/_CoreInternals.c | 106 - src/.unitize/_DataImportsInternals.c | 106 - src/.unitize/_DbInternals.c | 106 - src/.unitize/_DirectInternals.c | 176 - src/.unitize/_Direct_unitize_entry.c | 51 - src/.unitize/_EditingToolsInternals.c | 106 - src/.unitize/_EventsInternals.c | 120 - src/.unitize/_FoldersInternals.c | 134 - src/.unitize/_LibraryInternals.c | 316 - src/.unitize/_Library_unitize_entry.c | 51 - src/.unitize/_PhotosInternals.c | 106 - src/.unitize/_PluginsInternals.c | 120 - src/.unitize/_PublishingInternals.c | 120 - src/.unitize/_SearchesInternals.c | 106 - src/.unitize/_SidebarInternals.c | 106 - src/.unitize/_SlideshowInternals.c | 120 - src/.unitize/_TagsInternals.c | 120 - src/.unitize/_ThreadsInternals.c | 106 - src/.unitize/_UnitInternals.c | 92 - src/.unitize/_UtilInternals.c | 106 - src/AppDirs.c | 2647 -- src/AppDirs.vala | 34 + src/AppWindow.c | 5595 --- src/AppWindow.vala | 48 +- src/Application.c | 1379 - src/Application.vala | 4 +- src/BatchImport.c | 17579 ------- src/Box.c | 2821 -- src/CheckerboardLayout.c | 12162 ----- src/CheckerboardLayout.vala | 120 +- src/CollectionPage.c | 6738 --- src/CollectionPage.vala | 4 +- src/ColorTransformation.c | 12905 ----- src/CommandManager.c | 1373 - src/Commands.c | 22414 --------- src/Commands.vala | 218 +- src/Debug.c | 777 - src/DesktopIntegration.c | 3038 -- src/Dialogs.c | 9032 ---- src/Dialogs.vala | 17 +- src/Dimensions.c | 4306 -- src/Dimensions.vala | 8 +- src/DirectoryMonitor.c | 9421 ---- src/Event.c | 7743 --- src/Exporter.c | 3064 -- src/International.c | 144 - src/International.vala | 2 +- src/LibraryFiles.c | 1428 - src/LibraryMonitor.c | 8820 ---- src/MediaDataRepresentation.c | 8824 ---- src/MediaInterfaces.c | 1488 - src/MediaMetadata.c | 1584 - src/MediaMonitor.c | 3463 -- src/MediaPage.c | 8615 ---- src/MediaPage.vala | 87 +- src/MediaViewTracker.c | 1004 - src/MetadataWriter.c | 5280 --- src/NaturalCollate.c | 679 - src/Orientation.c | 2074 - src/Page.c | 17156 ------- src/Page.vala | 35 +- src/Photo.c | 42442 ----------------- src/Photo.vala | 22 +- src/PhotoMonitor.c | 8645 ---- src/PhotoPage.c | 20126 -------- src/PhotoPage.vala | 75 +- src/PixbufCache.c | 2689 -- src/Printing.c | 8490 ---- src/Properties.c | 5654 --- src/Properties.vala | 412 +- src/Resources.c | 3817 -- src/Resources.vala | 332 +- src/Screensaver.c | 487 - src/SearchFilter.c | 10171 ---- src/SearchFilter.vala | 62 +- src/SlideshowPage.c | 3324 -- src/SlideshowPage.vala | 14 +- src/SortedList.c | 2613 - src/Tag.c | 9694 ---- src/Thumbnail.c | 2656 -- src/Thumbnail.vala | 16 +- src/ThumbnailCache.c | 4535 -- src/ThumbnailCache.vala | 2 +- src/TimedQueue.c | 2416 - src/Tombstone.c | 3711 -- src/UnityProgressBar.c | 19 - src/Upgrades.c | 1755 - src/VideoMetadata.c | 5651 --- src/VideoMonitor.c | 2456 - src/VideoSupport.c | 11394 ----- src/camera/Camera.c | 41 - src/camera/CameraBranch.c | 1283 - src/camera/CameraTable.c | 4249 -- src/camera/CameraTable.vala | 20 +- src/camera/GPhoto.c | 2627 - src/camera/ImportPage.c | 13894 ------ src/camera/ImportPage.vala | 16 +- src/config/Config.c | 1011 - src/config/Config.vala | 93 +- src/config/ConfigurationInterfaces.c | 14452 ------ src/config/ConfigurationInterfaces.vala | 20 +- src/config/GSettingsEngine.c | 5835 --- src/config/GSettingsEngine.vala | 35 +- src/core/Alteration.c | 2817 -- src/core/ContainerSourceCollection.c | 2236 - src/core/Core.c | 48 - src/core/DataCollection.c | 4077 -- src/core/DataObject.c | 733 - src/core/DataSet.c | 1195 - src/core/DataSource.c | 5127 -- src/core/DataSourceTypes.c | 1336 - src/core/DataView.c | 745 - src/core/DataViewTypes.c | 621 - src/core/DatabaseSourceCollection.c | 945 - src/core/SourceCollection.c | 1807 - src/core/SourceHoldingTank.c | 1736 - src/core/SourceInterfaces.c | 290 - src/core/Tracker.c | 2135 - src/core/ViewCollection.c | 9130 ---- src/core/util.c | 2043 - src/data_imports/DataImportJob.c | 1817 - src/data_imports/DataImportSource.c | 1327 - src/data_imports/DataImports.c | 143 - src/data_imports/DataImportsPluginHost.c | 3658 -- src/data_imports/DataImportsUI.c | 2814 -- src/db/DatabaseTable.c | 2570 - src/db/Db.c | 742 - src/db/EventTable.c | 1901 - src/db/FaceLocationTable.vala | 202 + src/db/FaceTable.vala | 169 + src/db/PhotoTable.c | 8816 ---- src/db/SavedSearchDBTable.c | 4648 -- src/db/TagTable.c | 2341 - src/db/TombstoneTable.c | 1356 - src/db/VersionTable.c | 597 - src/db/VideoTable.c | 3266 -- src/dialogs/AdjustDateTimeDialog.c | 2300 - src/dialogs/EntryMultiCompletion.c | 1073 - src/dialogs/ExportDialog.c | 2084 - src/dialogs/MultiTextEntryDialog.c | 293 - src/dialogs/Preferences.c | 3328 -- src/dialogs/Preferences.vala | 57 +- src/dialogs/ProgressDialog.c | 714 - src/dialogs/SetBackground.c | 295 - src/dialogs/SetBackgroundSlideshow.c | 499 - src/dialogs/TextEntry.c | 400 - src/dialogs/WelcomeDialog.c | 1432 - src/direct/Direct.c | 91 - src/direct/DirectPhoto.c | 2997 -- src/direct/DirectPhotoPage.c | 4047 -- src/direct/DirectView.c | 902 - src/direct/DirectWindow.c | 967 - src/editing_tools/EditingTools.c | 19536 -------- src/editing_tools/EditingTools.vala | 20 +- src/editing_tools/RGBHistogramManipulator.c | 1484 - src/editing_tools/StraightenTool.c | 3568 -- src/editing_tools/StraightenTool.vala | 1 - src/events/EventDirectoryItem.c | 1897 - src/events/EventDirectoryItem.vala | 20 +- src/events/EventPage.c | 2003 - src/events/Events.c | 41 - src/events/EventsBranch.c | 4533 -- src/events/EventsDirectoryPage.c | 3249 -- src/events/EventsDirectoryPage.vala | 2 +- src/faces/Face.vala | 681 + src/faces/FaceLocation.vala | 209 + src/faces/FacePage.vala | 127 + src/faces/FaceShape.vala | 783 + src/faces/Faces.vala | 37 + src/faces/FacesBranch.vala | 146 + src/faces/FacesTool.vala | 977 + src/folders/Folders.c | 74 - src/folders/FoldersBranch.c | 2230 - src/folders/FoldersPage.c | 1108 - src/graphics-processor.c | 1180 - src/import-roll/ImportRollBranch.vala | 45 + src/import-roll/ImportRollEntry.vala | 34 + src/library/FlaggedPage.c | 1328 - src/library/FlaggedSidebarEntry.c | 906 - src/library/FlaggedSidebarEntry.vala | 2 +- src/library/ImportQueuePage.c | 1573 - src/library/ImportQueuePage.vala | 2 +- src/library/ImportQueueSidebarEntry.c | 547 - src/library/LastImportPage.c | 1372 - src/library/LastImportPage.vala | 14 + src/library/LastImportSidebarEntry.c | 644 - src/library/Library.c | 51 - src/library/LibraryBranch.c | 2363 - src/library/LibraryWindow.c | 10044 ---- src/library/LibraryWindow.vala | 91 +- src/library/OfflinePage.c | 1816 - src/library/OfflineSidebarEntry.c | 739 - src/library/TrashPage.c | 1722 - src/library/TrashSidebarEntry.c | 870 - src/libshotwell.deps | 20 + src/main.c | 3187 -- src/main.vala | 23 +- src/meson.build | 19 +- src/photos/BmpSupport.c | 2080 - src/photos/GRaw.c | 2607 - src/photos/GdkSupport.c | 1357 - src/photos/GifSupport.vala | 173 + src/photos/JfifSupport.c | 2250 - src/photos/PhotoFileAdapter.c | 1323 - src/photos/PhotoFileFormat.c | 3539 -- src/photos/PhotoFileFormat.vala | 23 +- src/photos/PhotoFileSniffer.c | 1534 - src/photos/PhotoMetadata.c | 10262 ---- src/photos/Photos.c | 96 - src/photos/PngSupport.c | 2096 - src/photos/RawSupport.c | 3325 -- src/photos/TiffSupport.c | 1862 - src/plugins/DataImportsInterfaces.c | 2034 - src/plugins/ManifestWidget.c | 2049 - src/plugins/Plugins.c | 4582 -- src/plugins/Plugins.vala | 4 + src/plugins/PublishingInterfaces.c | 2242 - src/plugins/SpitInterfaces.c | 1548 - src/plugins/StandardHostInterface.c | 737 - src/plugins/TransitionsInterfaces.c | 2249 - src/publishing/APIGlue.c | 1504 - src/publishing/Publishing.c | 246 - src/publishing/PublishingPluginHost.c | 1582 - src/publishing/PublishingUI.c | 3669 -- src/searches/SavedSearchDialog.c | 6239 --- src/searches/SavedSearchDialog.vala | 3 + src/searches/SavedSearchPage.c | 1500 - src/searches/SearchBoolean.c | 6867 --- src/searches/SearchBoolean.vala | 36 +- src/searches/Searches.c | 56 - src/searches/SearchesBranch.c | 1609 - src/searches/SearchesBranch.vala | 2 +- src/shotwell-graphics-processor.h | 767 - src/shotwell-graphics-processor.vapi | 225 - src/sidebar/Branch.c | 2741 -- src/sidebar/Entry.c | 750 - src/sidebar/Sidebar.c | 33 - src/sidebar/Tree.c | 7875 --- src/sidebar/Tree.vala | 14 +- src/sidebar/common.c | 1307 - src/slideshow/Slideshow.c | 475 - src/slideshow/TransitionEffects.c | 2886 -- src/tags/HierarchicalTagIndex.c | 1086 - src/tags/HierarchicalTagUtilities.c | 2251 - src/tags/TagPage.c | 1585 - src/tags/Tags.c | 41 - src/tags/TagsBranch.c | 3233 -- src/threads/BackgroundJob.c | 2086 - src/threads/Semaphore.c | 1267 - src/threads/Threads.c | 33 - src/threads/Workers.c | 1159 - src/unit/Unit.c | 33 - src/unit/rc/Unit.m4 | 29 + src/unit/rc/UnitInternals.m4 | 32 + src/unit/rc/template.vala | 7 + src/unit/rc/unitize_entry.m4 | 19 + src/util/KeyValueMap.c | 1143 - src/util/Util.c | 36 - src/util/file.c | 1733 - src/util/image.c | 2633 - src/util/image.vala | 121 +- src/util/misc.c | 3020 -- src/util/string.c | 2033 - src/util/system.c | 189 - src/util/system.vala | 30 +- src/util/ui.c | 234 - src/util/ui.vala | 17 + src_libgraphics_processor_la_vala.stamp | 1 - src_plugins_libplugin_la_vala.stamp | 1 - src_shotwell_graphics_processor_vala.stamp | 1 - test/NaturalCollate-Test.vala | 136 + test/NaturalCollate.vala | 1 + test/meson.build | 5 + test/server.py | 102 + thumbnailer.am | 11 - thumbnailer/shotwell-video-thumbnailer.c | 1006 - thumbnailer/shotwell-video-thumbnailer.vala | 12 +- thumbnailer_shotwell_video_thumbnailer_vala.stamp | 1 - transition.am | 50 - ui/Makefile.am | 32 - ui/Makefile.in | 543 - ui/collection.ui | 8 +- ui/faces.ui | 474 + ui/offline.ui | 2 +- ui/preferences_dialog.ui | 97 +- ui/slideshow_settings.ui | 11 +- ui/trash.ui | 2 +- 915 files changed, 65447 insertions(+), 921938 deletions(-) create mode 100644 .doap delete mode 100644 ABOUT-NLS delete mode 100644 ChangeLog create mode 100644 MAINTAINERS delete mode 100644 Makefile.am delete mode 100644 Makefile.in delete mode 100644 README create mode 100644 README.md delete mode 100644 aclocal.m4 delete mode 100644 app-icons/Makefile.am delete mode 100644 app-icons/Makefile.in create mode 100644 app-icons/shotwell-source.svg delete mode 100644 apport/Makefile.am delete mode 100644 apport/Makefile.in create mode 100644 apport/git.mk delete mode 100644 authenticator.am delete mode 100755 autogen.sh delete mode 100755 build-aux/compile delete mode 100755 build-aux/config.guess delete mode 100755 build-aux/config.rpath delete mode 100755 build-aux/config.sub delete mode 100755 build-aux/depcomp delete mode 100755 build-aux/install-sh delete mode 100644 build-aux/ltmain.sh create mode 100755 build-aux/meson/postinstall.py delete mode 100755 build-aux/missing delete mode 100644 common.am delete mode 100644 config.h.in delete mode 100755 configure delete mode 100644 configure.ac create mode 100644 data/appdata/edit.png create mode 100644 data/appdata/harbor.png create mode 100644 data/appdata/import.png create mode 100644 data/appdata/organize.png create mode 100644 data/appdata/publish.png create mode 100644 dist/debian/changelog create mode 100644 dist/debian/compat create mode 100644 dist/debian/control create mode 100644 dist/debian/copyright create mode 100644 dist/debian/dirs create mode 100644 dist/debian/docs create mode 100644 dist/debian/menu create mode 100755 dist/debian/rules create mode 100644 dist/debian/shotwell.install create mode 100644 dist/debian/watch create mode 100644 facedetect/facedetect-haarcascade.xml create mode 100644 facedetect/meson.build create mode 100644 facedetect/shotwell-facedetect.cpp create mode 100644 flatpak/org.gnome.Shotwell.json create mode 100644 flatpak/org.gnome.Shotwell.nightly.flatpakref create mode 100644 flatpak/org.gnome.Shotwell.unstable.flatpakref create mode 100644 flatpak/patches/exiv2-no-builddir.patch create mode 100644 flatpak/patches/libraw-pkgconfig.patch create mode 100644 help/C/figures/trash_process.svg create mode 100644 help/LINGUAS delete mode 100644 help/Makefile.am delete mode 100644 help/Makefile.in delete mode 100644 help/cs/cs.stamp delete mode 100644 help/cs/edit-adjustments.page delete mode 100644 help/cs/edit-crop.page delete mode 100644 help/cs/edit-date-time.page delete mode 100644 help/cs/edit-enhance.page delete mode 100644 help/cs/edit-external.page delete mode 100644 help/cs/edit-nondestructive.page delete mode 100644 help/cs/edit-redeye.page delete mode 100644 help/cs/edit-rotate.page delete mode 100644 help/cs/edit-straighten.page delete mode 100644 help/cs/edit-undo.page delete mode 100644 help/cs/formats.page delete mode 100644 help/cs/import-camera.page delete mode 100644 help/cs/import-file.page delete mode 100644 help/cs/import-memorycard.page delete mode 100644 help/cs/index.page delete mode 100644 help/cs/organize-event.page delete mode 100644 help/cs/organize-flag.page delete mode 100644 help/cs/organize-rating.page delete mode 100644 help/cs/organize-remove.page delete mode 100644 help/cs/organize-search.page delete mode 100644 help/cs/organize-tag.page delete mode 100644 help/cs/organize-title.page delete mode 100644 help/cs/other-files.page delete mode 100644 help/cs/other-missing.page delete mode 100644 help/cs/other-multiple.page delete mode 100644 help/cs/other-plugins.page delete mode 100644 help/cs/raw.page delete mode 100644 help/cs/running.page delete mode 100644 help/cs/share-background.page delete mode 100644 help/cs/share-export.page delete mode 100644 help/cs/share-print.page delete mode 100644 help/cs/share-send.page delete mode 100644 help/cs/share-slideshow.page delete mode 100644 help/cs/share-upload.page delete mode 100644 help/cs/view-displaying.page delete mode 100644 help/cs/view-information.page delete mode 100644 help/cs/view-sidebar.page delete mode 100644 help/de/de.stamp delete mode 100644 help/de/edit-adjustments.page delete mode 100644 help/de/edit-crop.page delete mode 100644 help/de/edit-date-time.page delete mode 100644 help/de/edit-enhance.page delete mode 100644 help/de/edit-external.page delete mode 100644 help/de/edit-nondestructive.page delete mode 100644 help/de/edit-redeye.page delete mode 100644 help/de/edit-rotate.page delete mode 100644 help/de/edit-straighten.page delete mode 100644 help/de/edit-undo.page delete mode 100644 help/de/formats.page delete mode 100644 help/de/import-camera.page delete mode 100644 help/de/import-file.page delete mode 100644 help/de/import-memorycard.page delete mode 100644 help/de/index.page delete mode 100644 help/de/organize-event.page delete mode 100644 help/de/organize-flag.page delete mode 100644 help/de/organize-rating.page delete mode 100644 help/de/organize-remove.page delete mode 100644 help/de/organize-search.page delete mode 100644 help/de/organize-tag.page delete mode 100644 help/de/organize-title.page delete mode 100644 help/de/other-files.page delete mode 100644 help/de/other-missing.page delete mode 100644 help/de/other-multiple.page delete mode 100644 help/de/other-plugins.page delete mode 100644 help/de/raw.page delete mode 100644 help/de/running.page delete mode 100644 help/de/share-background.page delete mode 100644 help/de/share-export.page delete mode 100644 help/de/share-print.page delete mode 100644 help/de/share-send.page delete mode 100644 help/de/share-slideshow.page delete mode 100644 help/de/share-upload.page delete mode 100644 help/de/view-displaying.page delete mode 100644 help/de/view-information.page delete mode 100644 help/de/view-sidebar.page delete mode 100644 help/el/edit-adjustments.page delete mode 100644 help/el/edit-crop.page delete mode 100644 help/el/edit-date-time.page delete mode 100644 help/el/edit-enhance.page delete mode 100644 help/el/edit-external.page delete mode 100644 help/el/edit-nondestructive.page delete mode 100644 help/el/edit-redeye.page delete mode 100644 help/el/edit-rotate.page delete mode 100644 help/el/edit-straighten.page delete mode 100644 help/el/edit-undo.page delete mode 100644 help/el/el.stamp delete mode 100644 help/el/formats.page delete mode 100644 help/el/import-camera.page delete mode 100644 help/el/import-file.page delete mode 100644 help/el/import-memorycard.page delete mode 100644 help/el/index.page delete mode 100644 help/el/organize-event.page delete mode 100644 help/el/organize-flag.page delete mode 100644 help/el/organize-rating.page delete mode 100644 help/el/organize-remove.page delete mode 100644 help/el/organize-search.page delete mode 100644 help/el/organize-tag.page delete mode 100644 help/el/organize-title.page delete mode 100644 help/el/other-files.page delete mode 100644 help/el/other-missing.page delete mode 100644 help/el/other-multiple.page delete mode 100644 help/el/other-plugins.page delete mode 100644 help/el/raw.page delete mode 100644 help/el/running.page delete mode 100644 help/el/share-background.page delete mode 100644 help/el/share-export.page delete mode 100644 help/el/share-print.page delete mode 100644 help/el/share-send.page delete mode 100644 help/el/share-slideshow.page delete mode 100644 help/el/share-upload.page delete mode 100644 help/el/view-displaying.page delete mode 100644 help/el/view-information.page delete mode 100644 help/el/view-sidebar.page delete mode 100644 help/es/edit-adjustments.page delete mode 100644 help/es/edit-crop.page delete mode 100644 help/es/edit-date-time.page delete mode 100644 help/es/edit-enhance.page delete mode 100644 help/es/edit-external.page delete mode 100644 help/es/edit-nondestructive.page delete mode 100644 help/es/edit-redeye.page delete mode 100644 help/es/edit-rotate.page delete mode 100644 help/es/edit-straighten.page delete mode 100644 help/es/edit-undo.page delete mode 100644 help/es/es.stamp delete mode 100644 help/es/formats.page delete mode 100644 help/es/import-camera.page delete mode 100644 help/es/import-file.page delete mode 100644 help/es/import-memorycard.page delete mode 100644 help/es/index.page delete mode 100644 help/es/organize-event.page delete mode 100644 help/es/organize-flag.page delete mode 100644 help/es/organize-rating.page delete mode 100644 help/es/organize-remove.page delete mode 100644 help/es/organize-search.page delete mode 100644 help/es/organize-tag.page delete mode 100644 help/es/organize-title.page delete mode 100644 help/es/other-files.page delete mode 100644 help/es/other-missing.page delete mode 100644 help/es/other-multiple.page delete mode 100644 help/es/other-plugins.page delete mode 100644 help/es/raw.page delete mode 100644 help/es/running.page delete mode 100644 help/es/share-background.page delete mode 100644 help/es/share-export.page delete mode 100644 help/es/share-print.page delete mode 100644 help/es/share-send.page delete mode 100644 help/es/share-slideshow.page delete mode 100644 help/es/share-upload.page delete mode 100644 help/es/view-displaying.page delete mode 100644 help/es/view-information.page delete mode 100644 help/es/view-sidebar.page create mode 100644 help/fr/fr.po delete mode 100644 help/hu/edit-adjustments.page delete mode 100644 help/hu/edit-crop.page delete mode 100644 help/hu/edit-date-time.page delete mode 100644 help/hu/edit-enhance.page delete mode 100644 help/hu/edit-external.page delete mode 100644 help/hu/edit-nondestructive.page delete mode 100644 help/hu/edit-redeye.page delete mode 100644 help/hu/edit-rotate.page delete mode 100644 help/hu/edit-straighten.page delete mode 100644 help/hu/edit-undo.page delete mode 100644 help/hu/formats.page delete mode 100644 help/hu/hu.stamp delete mode 100644 help/hu/import-camera.page delete mode 100644 help/hu/import-file.page delete mode 100644 help/hu/import-memorycard.page delete mode 100644 help/hu/index.page delete mode 100644 help/hu/organize-event.page delete mode 100644 help/hu/organize-flag.page delete mode 100644 help/hu/organize-rating.page delete mode 100644 help/hu/organize-remove.page delete mode 100644 help/hu/organize-search.page delete mode 100644 help/hu/organize-tag.page delete mode 100644 help/hu/organize-title.page delete mode 100644 help/hu/other-files.page delete mode 100644 help/hu/other-missing.page delete mode 100644 help/hu/other-multiple.page delete mode 100644 help/hu/other-plugins.page delete mode 100644 help/hu/raw.page delete mode 100644 help/hu/running.page delete mode 100644 help/hu/share-background.page delete mode 100644 help/hu/share-export.page delete mode 100644 help/hu/share-print.page delete mode 100644 help/hu/share-send.page delete mode 100644 help/hu/share-slideshow.page delete mode 100644 help/hu/share-upload.page delete mode 100644 help/hu/view-displaying.page delete mode 100644 help/hu/view-information.page delete mode 100644 help/hu/view-sidebar.page delete mode 100644 help/lv/edit-adjustments.page delete mode 100644 help/lv/edit-crop.page delete mode 100644 help/lv/edit-date-time.page delete mode 100644 help/lv/edit-enhance.page delete mode 100644 help/lv/edit-external.page delete mode 100644 help/lv/edit-nondestructive.page delete mode 100644 help/lv/edit-redeye.page delete mode 100644 help/lv/edit-rotate.page delete mode 100644 help/lv/edit-straighten.page delete mode 100644 help/lv/edit-undo.page delete mode 100644 help/lv/formats.page delete mode 100644 help/lv/import-camera.page delete mode 100644 help/lv/import-file.page delete mode 100644 help/lv/import-memorycard.page delete mode 100644 help/lv/index.page delete mode 100644 help/lv/lv.stamp delete mode 100644 help/lv/organize-event.page delete mode 100644 help/lv/organize-flag.page delete mode 100644 help/lv/organize-rating.page delete mode 100644 help/lv/organize-remove.page delete mode 100644 help/lv/organize-search.page delete mode 100644 help/lv/organize-tag.page delete mode 100644 help/lv/organize-title.page delete mode 100644 help/lv/other-files.page delete mode 100644 help/lv/other-missing.page delete mode 100644 help/lv/other-multiple.page delete mode 100644 help/lv/other-plugins.page delete mode 100644 help/lv/raw.page delete mode 100644 help/lv/running.page delete mode 100644 help/lv/share-background.page delete mode 100644 help/lv/share-export.page delete mode 100644 help/lv/share-print.page delete mode 100644 help/lv/share-send.page delete mode 100644 help/lv/share-slideshow.page delete mode 100644 help/lv/share-upload.page delete mode 100644 help/lv/view-displaying.page delete mode 100644 help/lv/view-information.page delete mode 100644 help/lv/view-sidebar.page delete mode 100644 help/pt_BR/edit-adjustments.page delete mode 100644 help/pt_BR/edit-crop.page delete mode 100644 help/pt_BR/edit-date-time.page delete mode 100644 help/pt_BR/edit-enhance.page delete mode 100644 help/pt_BR/edit-external.page delete mode 100644 help/pt_BR/edit-nondestructive.page delete mode 100644 help/pt_BR/edit-redeye.page delete mode 100644 help/pt_BR/edit-rotate.page delete mode 100644 help/pt_BR/edit-straighten.page delete mode 100644 help/pt_BR/edit-undo.page delete mode 100644 help/pt_BR/formats.page delete mode 100644 help/pt_BR/import-camera.page delete mode 100644 help/pt_BR/import-file.page delete mode 100644 help/pt_BR/import-memorycard.page delete mode 100644 help/pt_BR/index.page delete mode 100644 help/pt_BR/organize-event.page delete mode 100644 help/pt_BR/organize-flag.page delete mode 100644 help/pt_BR/organize-rating.page delete mode 100644 help/pt_BR/organize-remove.page delete mode 100644 help/pt_BR/organize-search.page delete mode 100644 help/pt_BR/organize-tag.page delete mode 100644 help/pt_BR/organize-title.page delete mode 100644 help/pt_BR/other-files.page delete mode 100644 help/pt_BR/other-missing.page delete mode 100644 help/pt_BR/other-multiple.page delete mode 100644 help/pt_BR/other-plugins.page delete mode 100644 help/pt_BR/pt_BR.stamp delete mode 100644 help/pt_BR/raw.page delete mode 100644 help/pt_BR/running.page delete mode 100644 help/pt_BR/share-background.page delete mode 100644 help/pt_BR/share-export.page delete mode 100644 help/pt_BR/share-print.page delete mode 100644 help/pt_BR/share-send.page delete mode 100644 help/pt_BR/share-slideshow.page delete mode 100644 help/pt_BR/share-upload.page delete mode 100644 help/pt_BR/view-displaying.page delete mode 100644 help/pt_BR/view-information.page delete mode 100644 help/pt_BR/view-sidebar.page delete mode 100644 help/sv/edit-adjustments.page delete mode 100644 help/sv/edit-crop.page delete mode 100644 help/sv/edit-date-time.page delete mode 100644 help/sv/edit-enhance.page delete mode 100644 help/sv/edit-external.page delete mode 100644 help/sv/edit-nondestructive.page delete mode 100644 help/sv/edit-redeye.page delete mode 100644 help/sv/edit-rotate.page delete mode 100644 help/sv/edit-straighten.page delete mode 100644 help/sv/edit-undo.page delete mode 100644 help/sv/formats.page delete mode 100644 help/sv/import-camera.page delete mode 100644 help/sv/import-file.page delete mode 100644 help/sv/import-memorycard.page delete mode 100644 help/sv/index.page delete mode 100644 help/sv/organize-event.page delete mode 100644 help/sv/organize-flag.page delete mode 100644 help/sv/organize-rating.page delete mode 100644 help/sv/organize-remove.page delete mode 100644 help/sv/organize-search.page delete mode 100644 help/sv/organize-tag.page delete mode 100644 help/sv/organize-title.page delete mode 100644 help/sv/other-files.page delete mode 100644 help/sv/other-missing.page delete mode 100644 help/sv/other-multiple.page delete mode 100644 help/sv/other-plugins.page delete mode 100644 help/sv/raw.page delete mode 100644 help/sv/running.page delete mode 100644 help/sv/share-background.page delete mode 100644 help/sv/share-export.page delete mode 100644 help/sv/share-print.page delete mode 100644 help/sv/share-send.page delete mode 100644 help/sv/share-slideshow.page delete mode 100644 help/sv/share-upload.page delete mode 100644 help/sv/sv.stamp delete mode 100644 help/sv/view-displaying.page delete mode 100644 help/sv/view-information.page delete mode 100644 help/sv/view-sidebar.page delete mode 100644 icons/Makefile.am delete mode 100644 icons/Makefile.in delete mode 100644 icons/about-braunschweig.jpg create mode 100644 icons/about-celle.jpg delete mode 100644 icons/all-rejected.png create mode 100644 icons/avatar-default-symbolic.svg create mode 100644 icons/crop-pivot-reticle-symbolic.svg delete mode 100644 icons/crop-pivot-reticle.png delete mode 100644 icons/crop.svg create mode 100644 icons/events-merge-symbolic.svg delete mode 100644 icons/faces-tool.png create mode 100644 icons/filter-flagged-disabled-symbolic.svg delete mode 100644 icons/filter-flagged-disabled.png create mode 100644 icons/filter-flagged-symbolic.svg delete mode 100644 icons/filter-flagged.png create mode 100644 icons/filter-photos-disabled-symbolic.svg delete mode 100644 icons/filter-photos-disabled.png create mode 100644 icons/filter-photos-symbolic.svg delete mode 100644 icons/filter-photos.png create mode 100644 icons/filter-raw-disabled-symbolic.svg delete mode 100644 icons/filter-raw-disabled.png create mode 100644 icons/filter-raw-symbolic.svg delete mode 100644 icons/filter-raw.png create mode 100644 icons/filter-videos-disabled-symbolic.svg delete mode 100644 icons/filter-videos-disabled.png create mode 100644 icons/filter-videos-symbolic.svg delete mode 100644 icons/filter-videos.png delete mode 100644 icons/five-star-filter.svg delete mode 100644 icons/five-stars.svg delete mode 100644 icons/flag-page.png delete mode 100644 icons/flag-trinket.png delete mode 100644 icons/four-star-filter-plus.svg delete mode 100644 icons/four-stars.svg delete mode 100644 icons/generic-plugin.png create mode 100644 icons/image-adjust-color-symbolic.svg delete mode 100644 icons/image-adjust.svg create mode 100644 icons/image-auto-adjust-symbolic.svg create mode 100644 icons/image-crop-symbolic.svg create mode 100644 icons/image-missing.png create mode 100644 icons/image-zoom-in-symbolic.svg create mode 100644 icons/image-zoom-out-symbolic.svg delete mode 100644 icons/import-all.png delete mode 100644 icons/import.svg delete mode 100644 icons/make-primary.svg delete mode 100644 icons/many-faces.png delete mode 100644 icons/merge.svg create mode 100644 icons/multiple-events-symbolic.svg delete mode 100644 icons/multiple-events.png create mode 100644 icons/multiple-tags-symbolic.svg delete mode 100644 icons/multiple-tags.png create mode 100644 icons/no-event-symbolic.svg delete mode 100644 icons/no-event.png create mode 100644 icons/one-event-symbolic.svg delete mode 100644 icons/one-event.png delete mode 100644 icons/one-face.png delete mode 100644 icons/one-star-filter-plus.svg delete mode 100644 icons/one-star.svg create mode 100644 icons/one-tag-symbolic.svg delete mode 100644 icons/one-tag.png delete mode 100644 icons/pin-toolbar.svg delete mode 100644 icons/publish.png delete mode 100644 icons/redeye.png delete mode 100644 icons/rejected.svg delete mode 100644 icons/shotwell-16.png delete mode 100644 icons/shotwell-auto-enhance.png delete mode 100644 icons/shotwell.png delete mode 100644 icons/sprocket.png create mode 100644 icons/stock-eye-symbolic.svg create mode 100644 icons/straighten-symbolic.svg delete mode 100644 icons/straighten.svg delete mode 100644 icons/three-star-filter-plus.svg delete mode 100644 icons/three-stars.svg delete mode 100644 icons/two-star-filter-plus.svg delete mode 100644 icons/two-stars.svg delete mode 100644 icons/videos-page.png delete mode 100644 icons/zoom-in.png delete mode 100644 icons/zoom-out.png delete mode 100644 m4/appstream-xml.m4 delete mode 100644 m4/ax_generate_changelog.m4 delete mode 100644 m4/ax_is_release.m4 delete mode 100644 m4/ax_require_defined.m4 delete mode 100644 m4/gettext.m4 delete mode 100644 m4/gsettings.m4 delete mode 100644 m4/iconv.m4 delete mode 100644 m4/intlmacosx.m4 delete mode 100644 m4/lib-ld.m4 delete mode 100644 m4/lib-link.m4 delete mode 100644 m4/lib-prefix.m4 delete mode 100644 m4/libtool.m4 delete mode 100644 m4/ltoptions.m4 delete mode 100644 m4/ltsugar.m4 delete mode 100644 m4/ltversion.m4 delete mode 100644 m4/lt~obsolete.m4 delete mode 100644 m4/nls.m4 delete mode 100644 m4/pkg.m4 delete mode 100644 m4/po.m4 delete mode 100644 m4/progtest.m4 delete mode 100644 m4/yelp.m4 delete mode 100644 misc/Makefile.am delete mode 100644 misc/Makefile.in create mode 100644 misc/org.gnome.Shotwell.css create mode 100644 misc/shotwell.convert delete mode 100644 pipeline.am delete mode 100644 plugins/authenticator/shotwell-authenticator.h delete mode 100644 plugins/authenticator/shotwell-authenticator.vapi delete mode 100644 plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c delete mode 100644 plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c delete mode 100644 plugins/authenticator/shotwell/GoogleAuthenticator.c delete mode 100644 plugins/authenticator/shotwell/OAuth1Authenticator.c delete mode 100644 plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c delete mode 100644 plugins/authenticator/shotwell/TumblrAuthenticator.c delete mode 100644 plugins/common/BuilderPane.c delete mode 100644 plugins/common/OAuth1Support.c delete mode 100644 plugins/common/RESTSupport.c delete mode 100644 plugins/common/Resources.c delete mode 100644 plugins/common/WebAuthenticationPane.c delete mode 100644 plugins/shotwell-plugin-common.h delete mode 100644 plugins/shotwell-plugin-common.vapi delete mode 100644 plugins/shotwell-plugin-dev-1.0.h delete mode 100644 plugins/shotwell-plugin-dev-1.0.vapi delete mode 100644 plugins/shotwell-publishing-extras/GalleryConnector.c delete mode 100644 plugins/shotwell-publishing-extras/RajcePublishing.c delete mode 100644 plugins/shotwell-publishing-extras/YandexPublishing.c delete mode 100644 plugins/shotwell-publishing-extras/shotwell-publishing-extras.c delete mode 100644 plugins/shotwell-publishing/FacebookPublishing.c delete mode 100644 plugins/shotwell-publishing/FlickrPublishing.c delete mode 100644 plugins/shotwell-publishing/PicasaPublishing.c delete mode 100644 plugins/shotwell-publishing/PiwigoPublishing.c delete mode 100644 plugins/shotwell-publishing/TumblrPublishing.c delete mode 100644 plugins/shotwell-publishing/YouTubePublishing.c delete mode 100644 plugins/shotwell-publishing/shotwell-publishing.c delete mode 100644 plugins/shotwell-transitions/BlindsEffect.c delete mode 100644 plugins/shotwell-transitions/ChessEffect.c delete mode 100644 plugins/shotwell-transitions/CircleEffect.c delete mode 100644 plugins/shotwell-transitions/CirclesEffect.c delete mode 100644 plugins/shotwell-transitions/ClockEffect.c delete mode 100644 plugins/shotwell-transitions/CrumbleEffect.c delete mode 100644 plugins/shotwell-transitions/FadeEffect.c delete mode 100644 plugins/shotwell-transitions/SlideEffect.c delete mode 100644 plugins/shotwell-transitions/SquaresEffect.c delete mode 100644 plugins/shotwell-transitions/StripesEffect.c delete mode 100644 plugins/shotwell-transitions/shotwell-transitions.c delete mode 100644 plugins_authenticator_libshotwell_authenticator_la_vala.stamp delete mode 100644 plugins_common_libshotwell_plugin_common_la_vala.stamp delete mode 100644 plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp delete mode 100644 plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp delete mode 100644 plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp delete mode 100644 po/Makefile.in.in delete mode 100644 po/Makevars create mode 100644 po/POTFILES.skip delete mode 100644 po/Rules-quot delete mode 100644 po/af.gmo delete mode 100644 po/ar.gmo delete mode 100644 po/as.gmo delete mode 100644 po/ast.gmo delete mode 100644 po/bg.gmo delete mode 100644 po/bn.gmo delete mode 100644 po/bn_IN.gmo delete mode 100644 po/boldquot.sed delete mode 100644 po/bs.gmo delete mode 100644 po/ca.gmo delete mode 100644 po/cs.gmo delete mode 100644 po/da.gmo delete mode 100644 po/de.gmo delete mode 100644 po/el.gmo delete mode 100644 po/en@boldquot.header delete mode 100644 po/en@quot.header delete mode 100644 po/en_GB.gmo delete mode 100644 po/eo.gmo delete mode 100644 po/es.gmo delete mode 100644 po/et.gmo delete mode 100644 po/eu.gmo delete mode 100644 po/fi.gmo delete mode 100644 po/fr.gmo delete mode 100644 po/gd.gmo delete mode 100644 po/gl.gmo delete mode 100644 po/gu.gmo delete mode 100644 po/he.gmo delete mode 100644 po/hi.gmo delete mode 100644 po/hr.gmo delete mode 100644 po/hu.gmo delete mode 100644 po/ia.gmo delete mode 100644 po/id.gmo delete mode 100644 po/insert-header.sin delete mode 100644 po/it.gmo delete mode 100644 po/ja.gmo delete mode 100644 po/kk.gmo delete mode 100644 po/km.gmo delete mode 100644 po/kn.gmo delete mode 100644 po/ko.gmo delete mode 100644 po/ky.gmo delete mode 100644 po/lt.gmo delete mode 100644 po/lv.gmo delete mode 100644 po/mk.gmo delete mode 100644 po/ml.gmo delete mode 100644 po/mr.gmo delete mode 100644 po/nb.gmo delete mode 100644 po/nl.gmo delete mode 100644 po/nn.gmo delete mode 100644 po/oc.gmo delete mode 100644 po/or.gmo delete mode 100644 po/pa.gmo delete mode 100644 po/pl.gmo delete mode 100644 po/pt.gmo delete mode 100644 po/pt_BR.gmo delete mode 100644 po/quot.sed delete mode 100644 po/remove-potcdate.sin delete mode 100644 po/ro.gmo delete mode 100644 po/ru.gmo delete mode 100644 po/shotwell.pot delete mode 100644 po/sk.gmo delete mode 100644 po/sl.gmo delete mode 100644 po/sr.gmo delete mode 100644 po/sr@latin.gmo delete mode 100644 po/stamp-po delete mode 100644 po/sv.gmo delete mode 100644 po/ta.gmo delete mode 100644 po/te.gmo delete mode 100644 po/th.gmo delete mode 100644 po/tr.gmo delete mode 100644 po/uk.gmo delete mode 100644 po/vi.gmo delete mode 100644 po/zh_CN.gmo delete mode 100644 po/zh_HK.gmo delete mode 100644 po/zh_TW.gmo delete mode 100644 publish-extra.am delete mode 100644 publish.am create mode 100644 samples/simple-plugin/README create mode 100644 samples/simple-plugin/simple-plugin.vala create mode 100644 shotwell-plugin-dev-1.0.m4 delete mode 100644 shotwell.am create mode 100644 shotwell.doap delete mode 100644 shotwell_vala.stamp delete mode 100644 src/.unitize/_CameraInternals.c delete mode 100644 src/.unitize/_ConfigInternals.c delete mode 100644 src/.unitize/_CoreInternals.c delete mode 100644 src/.unitize/_DataImportsInternals.c delete mode 100644 src/.unitize/_DbInternals.c delete mode 100644 src/.unitize/_DirectInternals.c delete mode 100644 src/.unitize/_Direct_unitize_entry.c delete mode 100644 src/.unitize/_EditingToolsInternals.c delete mode 100644 src/.unitize/_EventsInternals.c delete mode 100644 src/.unitize/_FoldersInternals.c delete mode 100644 src/.unitize/_LibraryInternals.c delete mode 100644 src/.unitize/_Library_unitize_entry.c delete mode 100644 src/.unitize/_PhotosInternals.c delete mode 100644 src/.unitize/_PluginsInternals.c delete mode 100644 src/.unitize/_PublishingInternals.c delete mode 100644 src/.unitize/_SearchesInternals.c delete mode 100644 src/.unitize/_SidebarInternals.c delete mode 100644 src/.unitize/_SlideshowInternals.c delete mode 100644 src/.unitize/_TagsInternals.c delete mode 100644 src/.unitize/_ThreadsInternals.c delete mode 100644 src/.unitize/_UnitInternals.c delete mode 100644 src/.unitize/_UtilInternals.c delete mode 100644 src/AppDirs.c delete mode 100644 src/AppWindow.c delete mode 100644 src/Application.c delete mode 100644 src/BatchImport.c delete mode 100644 src/Box.c delete mode 100644 src/CheckerboardLayout.c delete mode 100644 src/CollectionPage.c delete mode 100644 src/ColorTransformation.c delete mode 100644 src/CommandManager.c delete mode 100644 src/Commands.c delete mode 100644 src/Debug.c delete mode 100644 src/DesktopIntegration.c delete mode 100644 src/Dialogs.c delete mode 100644 src/Dimensions.c delete mode 100644 src/DirectoryMonitor.c delete mode 100644 src/Event.c delete mode 100644 src/Exporter.c delete mode 100644 src/International.c delete mode 100644 src/LibraryFiles.c delete mode 100644 src/LibraryMonitor.c delete mode 100644 src/MediaDataRepresentation.c delete mode 100644 src/MediaInterfaces.c delete mode 100644 src/MediaMetadata.c delete mode 100644 src/MediaMonitor.c delete mode 100644 src/MediaPage.c delete mode 100644 src/MediaViewTracker.c delete mode 100644 src/MetadataWriter.c delete mode 100644 src/NaturalCollate.c delete mode 100644 src/Orientation.c delete mode 100644 src/Page.c delete mode 100644 src/Photo.c delete mode 100644 src/PhotoMonitor.c delete mode 100644 src/PhotoPage.c delete mode 100644 src/PixbufCache.c delete mode 100644 src/Printing.c delete mode 100644 src/Properties.c delete mode 100644 src/Resources.c delete mode 100644 src/Screensaver.c delete mode 100644 src/SearchFilter.c delete mode 100644 src/SlideshowPage.c delete mode 100644 src/SortedList.c delete mode 100644 src/Tag.c delete mode 100644 src/Thumbnail.c delete mode 100644 src/ThumbnailCache.c delete mode 100644 src/TimedQueue.c delete mode 100644 src/Tombstone.c delete mode 100644 src/UnityProgressBar.c delete mode 100644 src/Upgrades.c delete mode 100644 src/VideoMetadata.c delete mode 100644 src/VideoMonitor.c delete mode 100644 src/VideoSupport.c delete mode 100644 src/camera/Camera.c delete mode 100644 src/camera/CameraBranch.c delete mode 100644 src/camera/CameraTable.c delete mode 100644 src/camera/GPhoto.c delete mode 100644 src/camera/ImportPage.c delete mode 100644 src/config/Config.c delete mode 100644 src/config/ConfigurationInterfaces.c delete mode 100644 src/config/GSettingsEngine.c delete mode 100644 src/core/Alteration.c delete mode 100644 src/core/ContainerSourceCollection.c delete mode 100644 src/core/Core.c delete mode 100644 src/core/DataCollection.c delete mode 100644 src/core/DataObject.c delete mode 100644 src/core/DataSet.c delete mode 100644 src/core/DataSource.c delete mode 100644 src/core/DataSourceTypes.c delete mode 100644 src/core/DataView.c delete mode 100644 src/core/DataViewTypes.c delete mode 100644 src/core/DatabaseSourceCollection.c delete mode 100644 src/core/SourceCollection.c delete mode 100644 src/core/SourceHoldingTank.c delete mode 100644 src/core/SourceInterfaces.c delete mode 100644 src/core/Tracker.c delete mode 100644 src/core/ViewCollection.c delete mode 100644 src/core/util.c delete mode 100644 src/data_imports/DataImportJob.c delete mode 100644 src/data_imports/DataImportSource.c delete mode 100644 src/data_imports/DataImports.c delete mode 100644 src/data_imports/DataImportsPluginHost.c delete mode 100644 src/data_imports/DataImportsUI.c delete mode 100644 src/db/DatabaseTable.c delete mode 100644 src/db/Db.c delete mode 100644 src/db/EventTable.c create mode 100644 src/db/FaceLocationTable.vala create mode 100644 src/db/FaceTable.vala delete mode 100644 src/db/PhotoTable.c delete mode 100644 src/db/SavedSearchDBTable.c delete mode 100644 src/db/TagTable.c delete mode 100644 src/db/TombstoneTable.c delete mode 100644 src/db/VersionTable.c delete mode 100644 src/db/VideoTable.c delete mode 100644 src/dialogs/AdjustDateTimeDialog.c delete mode 100644 src/dialogs/EntryMultiCompletion.c delete mode 100644 src/dialogs/ExportDialog.c delete mode 100644 src/dialogs/MultiTextEntryDialog.c delete mode 100644 src/dialogs/Preferences.c delete mode 100644 src/dialogs/ProgressDialog.c delete mode 100644 src/dialogs/SetBackground.c delete mode 100644 src/dialogs/SetBackgroundSlideshow.c delete mode 100644 src/dialogs/TextEntry.c delete mode 100644 src/dialogs/WelcomeDialog.c delete mode 100644 src/direct/Direct.c delete mode 100644 src/direct/DirectPhoto.c delete mode 100644 src/direct/DirectPhotoPage.c delete mode 100644 src/direct/DirectView.c delete mode 100644 src/direct/DirectWindow.c delete mode 100644 src/editing_tools/EditingTools.c delete mode 100644 src/editing_tools/RGBHistogramManipulator.c delete mode 100644 src/editing_tools/StraightenTool.c delete mode 100644 src/events/EventDirectoryItem.c delete mode 100644 src/events/EventPage.c delete mode 100644 src/events/Events.c delete mode 100644 src/events/EventsBranch.c delete mode 100644 src/events/EventsDirectoryPage.c create mode 100644 src/faces/Face.vala create mode 100644 src/faces/FaceLocation.vala create mode 100644 src/faces/FacePage.vala create mode 100644 src/faces/FaceShape.vala create mode 100644 src/faces/Faces.vala create mode 100644 src/faces/FacesBranch.vala create mode 100644 src/faces/FacesTool.vala delete mode 100644 src/folders/Folders.c delete mode 100644 src/folders/FoldersBranch.c delete mode 100644 src/folders/FoldersPage.c delete mode 100644 src/graphics-processor.c create mode 100644 src/import-roll/ImportRollBranch.vala create mode 100644 src/import-roll/ImportRollEntry.vala delete mode 100644 src/library/FlaggedPage.c delete mode 100644 src/library/FlaggedSidebarEntry.c delete mode 100644 src/library/ImportQueuePage.c delete mode 100644 src/library/ImportQueueSidebarEntry.c delete mode 100644 src/library/LastImportPage.c delete mode 100644 src/library/LastImportSidebarEntry.c delete mode 100644 src/library/Library.c delete mode 100644 src/library/LibraryBranch.c delete mode 100644 src/library/LibraryWindow.c delete mode 100644 src/library/OfflinePage.c delete mode 100644 src/library/OfflineSidebarEntry.c delete mode 100644 src/library/TrashPage.c delete mode 100644 src/library/TrashSidebarEntry.c create mode 100644 src/libshotwell.deps delete mode 100644 src/main.c delete mode 100644 src/photos/BmpSupport.c delete mode 100644 src/photos/GRaw.c delete mode 100644 src/photos/GdkSupport.c create mode 100644 src/photos/GifSupport.vala delete mode 100644 src/photos/JfifSupport.c delete mode 100644 src/photos/PhotoFileAdapter.c delete mode 100644 src/photos/PhotoFileFormat.c delete mode 100644 src/photos/PhotoFileSniffer.c delete mode 100644 src/photos/PhotoMetadata.c delete mode 100644 src/photos/Photos.c delete mode 100644 src/photos/PngSupport.c delete mode 100644 src/photos/RawSupport.c delete mode 100644 src/photos/TiffSupport.c delete mode 100644 src/plugins/DataImportsInterfaces.c delete mode 100644 src/plugins/ManifestWidget.c delete mode 100644 src/plugins/Plugins.c delete mode 100644 src/plugins/PublishingInterfaces.c delete mode 100644 src/plugins/SpitInterfaces.c delete mode 100644 src/plugins/StandardHostInterface.c delete mode 100644 src/plugins/TransitionsInterfaces.c delete mode 100644 src/publishing/APIGlue.c delete mode 100644 src/publishing/Publishing.c delete mode 100644 src/publishing/PublishingPluginHost.c delete mode 100644 src/publishing/PublishingUI.c delete mode 100644 src/searches/SavedSearchDialog.c delete mode 100644 src/searches/SavedSearchPage.c delete mode 100644 src/searches/SearchBoolean.c delete mode 100644 src/searches/Searches.c delete mode 100644 src/searches/SearchesBranch.c delete mode 100644 src/shotwell-graphics-processor.h delete mode 100644 src/shotwell-graphics-processor.vapi delete mode 100644 src/sidebar/Branch.c delete mode 100644 src/sidebar/Entry.c delete mode 100644 src/sidebar/Sidebar.c delete mode 100644 src/sidebar/Tree.c delete mode 100644 src/sidebar/common.c delete mode 100644 src/slideshow/Slideshow.c delete mode 100644 src/slideshow/TransitionEffects.c delete mode 100644 src/tags/HierarchicalTagIndex.c delete mode 100644 src/tags/HierarchicalTagUtilities.c delete mode 100644 src/tags/TagPage.c delete mode 100644 src/tags/Tags.c delete mode 100644 src/tags/TagsBranch.c delete mode 100644 src/threads/BackgroundJob.c delete mode 100644 src/threads/Semaphore.c delete mode 100644 src/threads/Threads.c delete mode 100644 src/threads/Workers.c delete mode 100644 src/unit/Unit.c create mode 100644 src/unit/rc/Unit.m4 create mode 100644 src/unit/rc/UnitInternals.m4 create mode 100644 src/unit/rc/template.vala create mode 100644 src/unit/rc/unitize_entry.m4 delete mode 100644 src/util/KeyValueMap.c delete mode 100644 src/util/Util.c delete mode 100644 src/util/file.c delete mode 100644 src/util/image.c delete mode 100644 src/util/misc.c delete mode 100644 src/util/string.c delete mode 100644 src/util/system.c delete mode 100644 src/util/ui.c delete mode 100644 src_libgraphics_processor_la_vala.stamp delete mode 100644 src_plugins_libplugin_la_vala.stamp delete mode 100644 src_shotwell_graphics_processor_vala.stamp create mode 100644 test/NaturalCollate-Test.vala create mode 120000 test/NaturalCollate.vala create mode 100644 test/meson.build create mode 100755 test/server.py delete mode 100644 thumbnailer.am delete mode 100644 thumbnailer/shotwell-video-thumbnailer.c delete mode 100644 thumbnailer_shotwell_video_thumbnailer_vala.stamp delete mode 100644 transition.am delete mode 100644 ui/Makefile.am delete mode 100644 ui/Makefile.in create mode 100644 ui/faces.ui diff --git a/.doap b/.doap new file mode 100644 index 0000000..024775d --- /dev/null +++ b/.doap @@ -0,0 +1,21 @@ + + Shotwell + Shotwell + Digital Photo Manager + Shotwell is a digital photo manager designed for the GNOME desktop environment. It allows you to import photos from disk or camera, organize them in various ways, view them in full-window or fullscreen mode, and export and share them with others by publishing them to popular web services. + +Visit http://www.yorba.org/shotwell to read about the current state of Shotwell's development. + + + + + Vala + + + + Jim Nelson + 4cf80db74d6388f6e8f0c4509dcc696ca5abb8d1 + + + + diff --git a/ABOUT-NLS b/ABOUT-NLS deleted file mode 100644 index 1551426..0000000 --- a/ABOUT-NLS +++ /dev/null @@ -1,1379 +0,0 @@ -1 Notes on the Free Translation Project -*************************************** - -Free software is going international! The Free Translation Project is a -way to get maintainers of free software, translators, and users all -together, so that free software will gradually become able to speak many -languages. A few packages already provide translations for their -messages. - - If you found this 'ABOUT-NLS' file inside a distribution, you may -assume that the distributed package does use GNU 'gettext' internally, -itself available at your nearest GNU archive site. But you do _not_ -need to install GNU 'gettext' prior to configuring, installing or using -this package with messages translated. - - Installers will find here some useful hints. These notes also -explain how users should proceed for getting the programs to use the -available translations. They tell how people wanting to contribute and -work on translations can contact the appropriate team. - -1.1 INSTALL Matters -=================== - -Some packages are "localizable" when properly installed; the programs -they contain can be made to speak your own native language. Most such -packages use GNU 'gettext'. Other packages have their own ways to -internationalization, predating GNU 'gettext'. - - By default, this package will be installed to allow translation of -messages. It will automatically detect whether the system already -provides the GNU 'gettext' functions. Installers may use special -options at configuration time for changing the default behaviour. The -command: - - ./configure --disable-nls - -will _totally_ disable translation of messages. - - When you already have GNU 'gettext' installed on your system and run -configure without an option for your new package, 'configure' will -probably detect the previously built and installed 'libintl' library and -will decide to use it. If not, you may have to to use the -'--with-libintl-prefix' option to tell 'configure' where to look for it. - - Internationalized packages usually have many 'po/LL.po' files, where -LL gives an ISO 639 two-letter code identifying the language. Unless -translations have been forbidden at 'configure' time by using the -'--disable-nls' switch, all available translations are installed -together with the package. However, the environment variable 'LINGUAS' -may be set, prior to configuration, to limit the installed set. -'LINGUAS' should then contain a space separated list of two-letter -codes, stating which languages are allowed. - -1.2 Using This Package -====================== - -As a user, if your language has been installed for this package, you -only have to set the 'LANG' environment variable to the appropriate -'LL_CC' combination. If you happen to have the 'LC_ALL' or some other -'LC_xxx' environment variables set, you should unset them before setting -'LANG', otherwise the setting of 'LANG' will not have the desired -effect. Here 'LL' is an ISO 639 two-letter language code, and 'CC' is -an ISO 3166 two-letter country code. For example, let's suppose that -you speak German and live in Germany. At the shell prompt, merely -execute 'setenv LANG de_DE' (in 'csh'), 'export LANG; LANG=de_DE' (in -'sh') or 'export LANG=de_DE' (in 'bash'). This can be done from your -'.login' or '.profile' file, once and for all. - - You might think that the country code specification is redundant. -But in fact, some languages have dialects in different countries. For -example, 'de_AT' is used for Austria, and 'pt_BR' for Brazil. The -country code serves to distinguish the dialects. - - The locale naming convention of 'LL_CC', with 'LL' denoting the -language and 'CC' denoting the country, is the one use on systems based -on GNU libc. On other systems, some variations of this scheme are used, -such as 'LL' or 'LL_CC.ENCODING'. You can get the list of locales -supported by your system for your language by running the command -'locale -a | grep '^LL''. - - Not all programs have translations for all languages. By default, an -English message is shown in place of a nonexistent translation. If you -understand other languages, you can set up a priority list of languages. -This is done through a different environment variable, called -'LANGUAGE'. GNU 'gettext' gives preference to 'LANGUAGE' over 'LANG' -for the purpose of message handling, but you still need to have 'LANG' -set to the primary language; this is required by other parts of the -system libraries. For example, some Swedish users who would rather read -translations in German than English for when Swedish is not available, -set 'LANGUAGE' to 'sv:de' while leaving 'LANG' to 'sv_SE'. - - Special advice for Norwegian users: The language code for Norwegian -bokma*l changed from 'no' to 'nb' recently (in 2003). During the -transition period, while some message catalogs for this language are -installed under 'nb' and some older ones under 'no', it's recommended -for Norwegian users to set 'LANGUAGE' to 'nb:no' so that both newer and -older translations are used. - - In the 'LANGUAGE' environment variable, but not in the 'LANG' -environment variable, 'LL_CC' combinations can be abbreviated as 'LL' to -denote the language's main dialect. For example, 'de' is equivalent to -'de_DE' (German as spoken in Germany), and 'pt' to 'pt_PT' (Portuguese -as spoken in Portugal) in this context. - -1.3 Translating Teams -===================== - -For the Free Translation Project to be a success, we need interested -people who like their own language and write it well, and who are also -able to synergize with other translators speaking the same language. -Each translation team has its own mailing list. The up-to-date list of -teams can be found at the Free Translation Project's homepage, -'http://translationproject.org/', in the "Teams" area. - - If you'd like to volunteer to _work_ at translating messages, you -should become a member of the translating team for your own language. -The subscribing address is _not_ the same as the list itself, it has -'-request' appended. For example, speakers of Swedish can send a -message to 'sv-request@li.org', having this message body: - - subscribe - - Keep in mind that team members are expected to participate _actively_ -in translations, or at solving translational difficulties, rather than -merely lurking around. If your team does not exist yet and you want to -start one, or if you are unsure about what to do or how to get started, -please write to 'coordinator@translationproject.org' to reach the -coordinator for all translator teams. - - The English team is special. It works at improving and uniformizing -the terminology in use. Proven linguistic skills are praised more than -programming skills, here. - -1.4 Available Packages -====================== - -Languages are not equally supported in all packages. The following -matrix shows the current state of internationalization, as of Jun 2014. -The matrix shows, in regard of each package, for which languages PO -files have been submitted to translation coordination, with a -translation percentage of at least 50%. - - Ready PO files af am an ar as ast az be bg bn bn_IN bs ca crh cs - +---------------------------------------------------+ - a2ps | [] [] [] | - aegis | | - anubis | | - aspell | [] [] [] | - bash | [] [] [] | - bfd | | - binutils | [] | - bison | | - bison-runtime | [] | - buzztrax | [] | - ccd2cue | | - ccide | | - cflow | | - clisp | | - coreutils | [] [] | - cpio | | - cppi | | - cpplib | [] | - cryptsetup | [] | - datamash | | - denemo | [] [] | - dfarc | [] | - dialog | [] [] [] | - dico | | - diffutils | [] | - dink | [] | - direvent | | - doodle | [] | - dos2unix | | - dos2unix-man | | - e2fsprogs | [] [] | - enscript | [] | - exif | [] | - fetchmail | [] [] | - findutils | [] | - flex | [] | - freedink | [] [] | - fusionforge | | - gas | | - gawk | [] | - gcal | [] | - gcc | | - gdbm | | - gettext-examples | [] [] [] [] [] | - gettext-runtime | [] [] [] | - gettext-tools | [] [] | - gjay | | - glunarclock | [] [] [] | - gnubiff | [] | - gnubik | [] | - gnucash | () () [] | - gnuchess | | - gnulib | [] | - gnunet | | - gnunet-gtk | | - gold | | - gphoto2 | [] | - gprof | [] | - gramadoir | | - grep | [] [] [] | - grub | [] | - gsasl | | - gss | | - gst-plugins-bad | [] | - gst-plugins-base | [] [] [] | - gst-plugins-good | [] [] [] | - gst-plugins-ugly | [] [] [] | - gstreamer | [] [] [] [] | - gtick | [] | - gtkam | [] [] | - gtkspell | [] [] [] [] [] | - guix | | - guix-packages | | - gutenprint | [] | - hello | [] | - help2man | | - help2man-texi | | - hylafax | | - idutils | | - iso_15924 | [] | - iso_3166 | [] [] [] [] [] [] [] [] [] [] | - iso_3166_2 | | - iso_4217 | [] | - iso_639 | [] [] [] [] [] [] [] [] [] | - iso_639_3 | [] [] | - iso_639_5 | | - jwhois | | - kbd | [] | - klavaro | [] [] [] [] [] | - latrine | | - ld | [] | - leafpad | [] [] [] [] | - libc | [] [] [] | - libexif | () | - libextractor | | - libgnutls | [] | - libgphoto2 | [] | - libgphoto2_port | [] | - libgsasl | | - libiconv | [] [] | - libidn | [] | - liferea | [] [] [] [] | - lilypond | [] [] | - lordsawar | [] | - lprng | | - lynx | [] [] | - m4 | [] | - mailfromd | | - mailutils | | - make | [] | - man-db | [] [] | - man-db-manpages | | - midi-instruments | [] [] [] | - minicom | [] | - mkisofs | [] | - myserver | [] | - nano | [] [] [] | - opcodes | | - parted | [] | - pies | | - popt | [] | - procps-ng | | - procps-ng-man | | - psmisc | [] | - pspp | [] | - pushover | [] | - pwdutils | | - pyspread | | - radius | [] | - recode | [] [] [] | - recutils | | - rpm | | - rush | | - sarg | | - sed | [] [] [] | - sharutils | [] | - shishi | | - skribilo | | - solfege | [] | - solfege-manual | | - spotmachine | | - sudo | [] [] | - sudoers | [] [] | - sysstat | [] | - tar | [] [] [] | - texinfo | [] [] | - texinfo_document | [] | - tigervnc | [] | - tin | | - tin-man | | - tracgoogleappsa... | | - trader | | - util-linux | [] | - ve | | - vice | | - vmm | | - vorbis-tools | [] | - wastesedge | | - wcd | | - wcd-man | | - wdiff | [] [] | - wget | [] | - wyslij-po | | - xboard | | - xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | - xkeyboard-config | [] [] [] | - +---------------------------------------------------+ - af am an ar as ast az be bg bn bn_IN bs ca crh cs - 4 0 2 5 3 11 0 8 23 3 3 1 54 4 73 - - da de el en en_GB en_ZA eo es et eu fa fi fr - +--------------------------------------------------+ - a2ps | [] [] [] [] [] [] [] [] [] | - aegis | [] [] [] [] | - anubis | [] [] [] [] [] | - aspell | [] [] [] [] [] [] [] | - bash | [] [] [] | - bfd | [] [] [] [] | - binutils | [] [] [] | - bison | [] [] [] [] [] [] [] [] | - bison-runtime | [] [] [] [] [] [] [] [] | - buzztrax | [] [] [] [] | - ccd2cue | [] [] [] | - ccide | [] [] [] [] [] [] | - cflow | [] [] [] [] [] | - clisp | [] [] [] [] [] | - coreutils | [] [] [] [] [] | - cpio | [] [] [] [] [] | - cppi | [] [] [] [] [] | - cpplib | [] [] [] [] [] [] | - cryptsetup | [] [] [] [] [] | - datamash | [] [] [] [] | - denemo | [] | - dfarc | [] [] [] [] [] [] | - dialog | [] [] [] [] [] [] [] [] [] | - dico | [] [] [] [] | - diffutils | [] [] [] [] [] [] | - dink | [] [] [] [] [] [] | - direvent | [] [] [] [] | - doodle | [] [] [] [] | - dos2unix | [] [] [] [] [] | - dos2unix-man | [] [] [] | - e2fsprogs | [] [] [] [] [] | - enscript | [] [] [] [] [] [] | - exif | [] [] [] [] [] [] | - fetchmail | [] () [] [] [] [] [] | - findutils | [] [] [] [] [] [] [] [] | - flex | [] [] [] [] [] [] | - freedink | [] [] [] [] [] [] [] [] | - fusionforge | [] [] [] | - gas | [] [] [] | - gawk | [] [] [] [] [] | - gcal | [] [] [] [] | - gcc | [] [] | - gdbm | [] [] [] [] [] | - gettext-examples | [] [] [] [] [] [] [] | - gettext-runtime | [] [] [] [] [] [] | - gettext-tools | [] [] [] [] [] | - gjay | [] [] [] [] | - glunarclock | [] [] [] [] [] | - gnubiff | () [] [] () | - gnubik | [] [] [] [] [] | - gnucash | [] () () () () () () | - gnuchess | [] [] [] [] | - gnulib | [] [] [] [] [] [] [] | - gnunet | [] | - gnunet-gtk | [] | - gold | [] [] [] | - gphoto2 | [] () [] [] | - gprof | [] [] [] [] [] [] | - gramadoir | [] [] [] [] [] | - grep | [] [] [] [] [] [] [] | - grub | [] [] [] [] [] | - gsasl | [] [] [] [] [] | - gss | [] [] [] [] [] | - gst-plugins-bad | [] [] | - gst-plugins-base | [] [] [] [] [] [] | - gst-plugins-good | [] [] [] [] [] [] [] | - gst-plugins-ugly | [] [] [] [] [] [] [] [] | - gstreamer | [] [] [] [] [] [] [] | - gtick | [] () [] [] [] | - gtkam | [] () [] [] [] [] | - gtkspell | [] [] [] [] [] [] [] [] | - guix | [] [] | - guix-packages | | - gutenprint | [] [] [] [] | - hello | [] [] [] [] [] [] [] [] | - help2man | [] [] [] [] [] [] [] | - help2man-texi | [] [] [] | - hylafax | [] [] | - idutils | [] [] [] [] [] | - iso_15924 | [] () [] [] () [] () | - iso_3166 | [] () [] [] [] [] () [] () | - iso_3166_2 | [] () () () | - iso_4217 | [] () [] [] [] () [] () | - iso_639 | [] () [] [] () [] () | - iso_639_3 | () () () | - iso_639_5 | () () () | - jwhois | [] [] [] [] [] | - kbd | [] [] [] [] [] [] | - klavaro | [] [] [] [] [] [] [] | - latrine | [] () [] [] | - ld | [] [] [] [] | - leafpad | [] [] [] [] [] [] [] [] | - libc | [] [] [] [] [] | - libexif | [] [] () [] [] | - libextractor | [] | - libgnutls | [] [] [] [] | - libgphoto2 | [] () [] | - libgphoto2_port | [] () [] [] [] [] | - libgsasl | [] [] [] [] [] | - libiconv | [] [] [] [] [] [] [] | - libidn | [] [] [] [] [] | - liferea | [] () [] [] [] [] [] | - lilypond | [] [] [] [] [] [] | - lordsawar | [] [] | - lprng | | - lynx | [] [] [] [] [] [] | - m4 | [] [] [] [] [] [] | - mailfromd | [] | - mailutils | [] [] [] [] | - make | [] [] [] [] [] | - man-db | [] [] [] [] | - man-db-manpages | [] [] | - midi-instruments | [] [] [] [] [] [] [] [] [] | - minicom | [] [] [] [] [] | - mkisofs | [] [] [] | - myserver | [] [] [] [] | - nano | [] [] [] [] [] [] [] | - opcodes | [] [] [] [] [] | - parted | [] [] [] | - pies | [] | - popt | [] [] [] [] [] [] | - procps-ng | [] [] | - procps-ng-man | [] [] | - psmisc | [] [] [] [] [] [] [] | - pspp | [] [] [] | - pushover | () [] [] [] | - pwdutils | [] [] [] | - pyspread | [] [] [] | - radius | [] [] | - recode | [] [] [] [] [] [] [] | - recutils | [] [] [] [] | - rpm | [] [] [] [] [] | - rush | [] [] [] | - sarg | [] [] | - sed | [] [] [] [] [] [] [] [] | - sharutils | [] [] [] [] | - shishi | [] [] [] | - skribilo | [] [] | - solfege | [] [] [] [] [] [] [] [] | - solfege-manual | [] [] [] [] [] | - spotmachine | [] [] [] [] | - sudo | [] [] [] [] [] [] | - sudoers | [] [] [] [] [] [] | - sysstat | [] [] [] [] [] [] | - tar | [] [] [] [] [] [] [] | - texinfo | [] [] [] [] [] | - texinfo_document | [] [] [] [] | - tigervnc | [] [] [] [] [] [] | - tin | [] [] [] [] | - tin-man | [] | - tracgoogleappsa... | [] [] [] [] [] | - trader | [] [] [] [] [] [] | - util-linux | [] [] [] [] | - ve | [] [] [] [] [] | - vice | () () () | - vmm | [] [] | - vorbis-tools | [] [] [] [] | - wastesedge | [] () | - wcd | [] [] [] [] | - wcd-man | [] | - wdiff | [] [] [] [] [] [] [] | - wget | [] [] [] [] [] [] | - wyslij-po | [] [] [] [] | - xboard | [] [] [] [] | - xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | - xkeyboard-config | [] [] [] [] [] [] [] | - +--------------------------------------------------+ - da de el en en_GB en_ZA eo es et eu fa fi fr - 120 130 32 1 6 0 94 95 22 13 4 103 136 - - ga gd gl gu he hi hr hu hy ia id is it ja ka kk - +-------------------------------------------------+ - a2ps | [] [] [] [] | - aegis | [] | - anubis | [] [] [] [] | - aspell | [] [] [] [] [] | - bash | [] [] [] | - bfd | [] [] | - binutils | [] [] [] | - bison | [] | - bison-runtime | [] [] [] [] [] [] [] [] | - buzztrax | | - ccd2cue | [] | - ccide | [] [] | - cflow | [] [] [] | - clisp | | - coreutils | [] [] [] | - cpio | [] [] [] [] [] [] | - cppi | [] [] [] [] [] | - cpplib | [] [] | - cryptsetup | [] | - datamash | | - denemo | [] | - dfarc | [] [] [] | - dialog | [] [] [] [] [] [] [] [] [] [] | - dico | | - diffutils | [] [] [] [] | - dink | [] | - direvent | [] | - doodle | [] [] | - dos2unix | [] [] | - dos2unix-man | | - e2fsprogs | [] | - enscript | [] [] [] | - exif | [] [] [] [] [] [] | - fetchmail | [] [] [] | - findutils | [] [] [] [] [] [] [] | - flex | [] | - freedink | [] [] [] [] | - fusionforge | | - gas | [] | - gawk | [] () [] | - gcal | | - gcc | | - gdbm | | - gettext-examples | [] [] [] [] [] [] [] | - gettext-runtime | [] [] [] [] [] [] [] | - gettext-tools | [] [] [] | - gjay | [] | - glunarclock | [] [] [] [] [] [] | - gnubiff | [] [] () | - gnubik | [] [] [] | - gnucash | () () () () () [] | - gnuchess | | - gnulib | [] [] [] [] [] | - gnunet | | - gnunet-gtk | | - gold | [] [] | - gphoto2 | [] [] [] [] | - gprof | [] [] [] [] | - gramadoir | [] [] [] | - grep | [] [] [] [] [] [] [] | - grub | [] [] [] | - gsasl | [] [] [] [] [] | - gss | [] [] [] [] [] | - gst-plugins-bad | [] | - gst-plugins-base | [] [] [] [] | - gst-plugins-good | [] [] [] [] [] [] | - gst-plugins-ugly | [] [] [] [] [] [] | - gstreamer | [] [] [] [] [] | - gtick | [] [] [] [] [] | - gtkam | [] [] [] [] [] | - gtkspell | [] [] [] [] [] [] [] [] [] [] | - guix | | - guix-packages | | - gutenprint | [] [] [] | - hello | [] [] [] [] [] | - help2man | [] [] [] | - help2man-texi | | - hylafax | [] | - idutils | [] [] | - iso_15924 | [] [] [] [] [] [] | - iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] | - iso_3166_2 | [] [] | - iso_4217 | [] [] [] [] [] [] | - iso_639 | [] [] [] [] [] [] [] [] [] | - iso_639_3 | [] [] | - iso_639_5 | | - jwhois | [] [] [] [] | - kbd | [] [] [] | - klavaro | [] [] [] [] [] | - latrine | [] | - ld | [] [] [] [] | - leafpad | [] [] [] [] [] [] [] () | - libc | [] [] [] [] [] | - libexif | [] | - libextractor | | - libgnutls | [] | - libgphoto2 | [] [] | - libgphoto2_port | [] [] | - libgsasl | [] [] [] [] | - libiconv | [] [] [] [] [] [] [] | - libidn | [] [] [] [] | - liferea | [] [] [] [] [] | - lilypond | [] | - lordsawar | | - lprng | [] | - lynx | [] [] [] [] | - m4 | [] [] [] [] [] | - mailfromd | | - mailutils | | - make | [] [] [] [] | - man-db | [] [] | - man-db-manpages | [] [] | - midi-instruments | [] [] [] [] [] [] [] [] [] | - minicom | [] [] [] | - mkisofs | [] [] | - myserver | [] | - nano | [] [] [] [] [] | - opcodes | [] [] [] | - parted | [] [] [] [] | - pies | | - popt | [] [] [] [] [] [] [] [] [] [] | - procps-ng | | - procps-ng-man | | - psmisc | [] [] [] [] | - pspp | [] [] | - pushover | [] | - pwdutils | [] | - pyspread | | - radius | [] | - recode | [] [] [] [] [] [] [] | - recutils | | - rpm | [] | - rush | [] | - sarg | | - sed | [] [] [] [] [] [] [] | - sharutils | | - shishi | | - skribilo | [] | - solfege | [] [] | - solfege-manual | | - spotmachine | | - sudo | [] [] [] [] | - sudoers | [] [] [] | - sysstat | [] [] [] | - tar | [] [] [] [] [] [] | - texinfo | [] [] [] | - texinfo_document | [] [] | - tigervnc | | - tin | | - tin-man | | - tracgoogleappsa... | [] [] [] [] | - trader | [] [] | - util-linux | [] | - ve | [] | - vice | () () | - vmm | | - vorbis-tools | [] [] | - wastesedge | () | - wcd | | - wcd-man | | - wdiff | [] [] [] | - wget | [] [] [] | - wyslij-po | [] [] [] | - xboard | | - xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | - xkeyboard-config | [] [] [] [] [] | - +-------------------------------------------------+ - ga gd gl gu he hi hr hu hy ia id is it ja ka kk - 35 2 47 4 8 2 53 69 2 6 80 11 86 58 0 3 - - kn ko ku ky lg lt lv mk ml mn mr ms mt nb ne nl - +--------------------------------------------------+ - a2ps | [] [] | - aegis | [] | - anubis | [] [] [] | - aspell | [] [] | - bash | [] [] | - bfd | | - binutils | | - bison | [] | - bison-runtime | [] [] [] [] [] [] | - buzztrax | | - ccd2cue | | - ccide | [] [] | - cflow | [] | - clisp | [] | - coreutils | [] [] | - cpio | [] | - cppi | | - cpplib | [] | - cryptsetup | [] | - datamash | [] [] | - denemo | | - dfarc | [] [] | - dialog | [] [] [] [] [] [] | - dico | | - diffutils | [] [] [] | - dink | [] | - direvent | [] | - doodle | [] | - dos2unix | [] [] | - dos2unix-man | [] | - e2fsprogs | [] | - enscript | [] | - exif | [] [] | - fetchmail | [] | - findutils | [] [] | - flex | [] | - freedink | [] [] | - fusionforge | | - gas | | - gawk | [] | - gcal | | - gcc | | - gdbm | | - gettext-examples | [] [] [] [] [] [] | - gettext-runtime | [] [] | - gettext-tools | [] | - gjay | | - glunarclock | [] [] | - gnubiff | [] | - gnubik | [] [] | - gnucash | () () () () () () () [] | - gnuchess | [] [] | - gnulib | [] | - gnunet | | - gnunet-gtk | | - gold | | - gphoto2 | [] | - gprof | [] [] | - gramadoir | [] | - grep | [] [] | - grub | [] [] [] | - gsasl | [] | - gss | | - gst-plugins-bad | [] [] | - gst-plugins-base | [] [] [] | - gst-plugins-good | [] [] [] [] | - gst-plugins-ugly | [] [] [] [] [] | - gstreamer | [] [] | - gtick | [] | - gtkam | [] [] | - gtkspell | [] [] [] [] [] [] [] | - guix | | - guix-packages | | - gutenprint | [] | - hello | [] [] [] | - help2man | [] | - help2man-texi | | - hylafax | [] | - idutils | [] | - iso_15924 | () [] [] | - iso_3166 | [] [] [] () [] [] [] [] [] [] | - iso_3166_2 | () [] | - iso_4217 | () [] [] [] | - iso_639 | [] [] () [] [] [] [] | - iso_639_3 | [] () [] | - iso_639_5 | () | - jwhois | [] [] | - kbd | [] | - klavaro | [] [] | - latrine | | - ld | | - leafpad | [] [] [] [] [] | - libc | [] [] | - libexif | [] | - libextractor | [] | - libgnutls | [] [] | - libgphoto2 | [] | - libgphoto2_port | [] | - libgsasl | [] | - libiconv | [] [] | - libidn | [] | - liferea | [] [] [] | - lilypond | [] | - lordsawar | | - lprng | | - lynx | [] | - m4 | [] | - mailfromd | | - mailutils | | - make | [] [] | - man-db | [] | - man-db-manpages | [] | - midi-instruments | [] [] [] [] [] [] [] | - minicom | [] | - mkisofs | [] | - myserver | | - nano | [] [] [] | - opcodes | [] | - parted | [] | - pies | | - popt | [] [] [] [] [] | - procps-ng | | - procps-ng-man | | - psmisc | [] | - pspp | [] [] | - pushover | | - pwdutils | [] | - pyspread | | - radius | [] | - recode | [] [] | - recutils | [] | - rpm | [] | - rush | [] | - sarg | | - sed | [] [] | - sharutils | [] | - shishi | | - skribilo | | - solfege | [] [] | - solfege-manual | [] | - spotmachine | [] | - sudo | [] [] | - sudoers | [] [] | - sysstat | [] [] | - tar | [] [] [] | - texinfo | [] | - texinfo_document | [] | - tigervnc | [] | - tin | | - tin-man | | - tracgoogleappsa... | [] [] [] | - trader | [] | - util-linux | [] | - ve | [] | - vice | [] | - vmm | [] | - vorbis-tools | [] | - wastesedge | [] | - wcd | [] | - wcd-man | [] | - wdiff | [] | - wget | [] [] | - wyslij-po | [] | - xboard | [] | - xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] | - xkeyboard-config | [] [] [] | - +--------------------------------------------------+ - kn ko ku ky lg lt lv mk ml mn mr ms mt nb ne nl - 5 11 4 6 0 13 22 3 3 3 4 11 2 40 1 124 - - nn or os pa pl ps pt pt_BR ro ru rw sk sl sq sr - +--------------------------------------------------+ - a2ps | [] [] [] [] [] [] [] | - aegis | [] [] | - anubis | [] [] [] | - aspell | [] [] [] [] [] [] [] | - bash | [] [] [] [] [] | - bfd | [] | - binutils | [] [] | - bison | [] [] [] | - bison-runtime | [] [] [] [] [] [] [] [] | - buzztrax | | - ccd2cue | [] | - ccide | [] [] [] | - cflow | [] [] | - clisp | [] | - coreutils | [] [] [] [] | - cpio | [] [] [] | - cppi | [] [] [] | - cpplib | [] [] [] | - cryptsetup | [] [] | - datamash | [] [] | - denemo | | - dfarc | [] [] [] | - dialog | [] [] [] [] [] [] [] | - dico | [] | - diffutils | [] [] | - dink | | - direvent | [] [] | - doodle | [] [] | - dos2unix | [] [] [] [] | - dos2unix-man | [] [] | - e2fsprogs | [] | - enscript | [] [] [] [] [] [] | - exif | [] [] [] [] [] [] | - fetchmail | [] [] [] | - findutils | [] [] [] [] [] | - flex | [] [] [] [] [] | - freedink | [] [] [] [] [] | - fusionforge | | - gas | | - gawk | [] | - gcal | | - gcc | | - gdbm | [] [] [] | - gettext-examples | [] [] [] [] [] [] [] [] | - gettext-runtime | [] [] [] [] [] [] [] [] [] | - gettext-tools | [] [] [] [] [] [] [] | - gjay | [] | - glunarclock | [] [] [] [] [] [] | - gnubiff | [] | - gnubik | [] [] [] [] | - gnucash | () () () () [] | - gnuchess | [] [] | - gnulib | [] [] [] [] [] | - gnunet | | - gnunet-gtk | | - gold | | - gphoto2 | [] [] [] [] [] | - gprof | [] [] [] [] | - gramadoir | [] [] | - grep | [] [] [] [] [] [] | - grub | [] [] [] [] [] | - gsasl | [] [] [] | - gss | [] [] [] [] | - gst-plugins-bad | [] [] [] [] | - gst-plugins-base | [] [] [] [] [] [] | - gst-plugins-good | [] [] [] [] [] [] [] | - gst-plugins-ugly | [] [] [] [] [] [] [] | - gstreamer | [] [] [] [] [] [] [] | - gtick | [] [] [] [] [] | - gtkam | [] [] [] [] [] [] | - gtkspell | [] [] [] [] [] [] [] [] [] | - guix | | - guix-packages | | - gutenprint | [] [] | - hello | [] [] [] [] [] [] | - help2man | [] [] [] [] | - help2man-texi | [] | - hylafax | | - idutils | [] [] [] | - iso_15924 | [] () [] [] [] [] | - iso_3166 | [] [] [] [] () [] [] [] [] [] [] [] [] | - iso_3166_2 | [] () [] | - iso_4217 | [] [] () [] [] [] [] [] | - iso_639 | [] [] [] () [] [] [] [] [] [] | - iso_639_3 | [] () | - iso_639_5 | () [] | - jwhois | [] [] [] [] | - kbd | [] [] | - klavaro | [] [] [] [] [] | - latrine | [] | - ld | | - leafpad | [] [] [] [] [] [] [] [] [] | - libc | [] [] [] | - libexif | [] () [] | - libextractor | [] | - libgnutls | [] | - libgphoto2 | [] | - libgphoto2_port | [] [] [] [] [] | - libgsasl | [] [] [] [] | - libiconv | [] [] [] [] [] | - libidn | [] [] [] | - liferea | [] [] [] [] () [] [] | - lilypond | | - lordsawar | | - lprng | [] | - lynx | [] [] | - m4 | [] [] [] [] [] | - mailfromd | [] | - mailutils | [] | - make | [] [] [] | - man-db | [] [] [] | - man-db-manpages | [] [] [] | - midi-instruments | [] [] [] [] [] [] [] [] | - minicom | [] [] [] [] | - mkisofs | [] [] [] | - myserver | [] [] | - nano | [] [] [] [] [] [] | - opcodes | | - parted | [] [] [] [] [] [] | - pies | [] | - popt | [] [] [] [] [] [] | - procps-ng | [] | - procps-ng-man | [] | - psmisc | [] [] [] [] | - pspp | [] [] | - pushover | | - pwdutils | [] | - pyspread | [] [] | - radius | [] [] | - recode | [] [] [] [] [] [] [] [] | - recutils | [] | - rpm | [] | - rush | [] [] [] | - sarg | [] [] | - sed | [] [] [] [] [] [] [] [] | - sharutils | [] [] [] | - shishi | [] [] | - skribilo | | - solfege | [] [] [] | - solfege-manual | [] [] | - spotmachine | [] [] | - sudo | [] [] [] [] [] [] | - sudoers | [] [] [] [] | - sysstat | [] [] [] [] [] | - tar | [] [] [] [] [] | - texinfo | [] [] [] | - texinfo_document | [] [] | - tigervnc | [] | - tin | [] | - tin-man | | - tracgoogleappsa... | [] [] [] [] | - trader | [] | - util-linux | [] [] | - ve | [] [] [] | - vice | | - vmm | | - vorbis-tools | [] [] [] | - wastesedge | | - wcd | | - wcd-man | | - wdiff | [] [] [] [] [] | - wget | [] [] [] [] | - wyslij-po | [] [] [] [] | - xboard | [] [] [] | - xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] | - xkeyboard-config | [] [] [] [] | - +--------------------------------------------------+ - nn or os pa pl ps pt pt_BR ro ru rw sk sl sq sr - 7 3 1 6 114 1 12 83 32 80 3 38 45 7 94 - - sv sw ta te tg th tr uk ur vi wa wo zh_CN zh_HK - +---------------------------------------------------+ - a2ps | [] [] [] [] [] | - aegis | [] | - anubis | [] [] [] [] | - aspell | [] [] [] [] | - bash | [] [] [] [] | - bfd | [] [] | - binutils | [] [] [] | - bison | [] [] [] [] | - bison-runtime | [] [] [] [] [] [] | - buzztrax | [] [] [] | - ccd2cue | [] [] [] | - ccide | [] [] [] [] | - cflow | [] [] [] [] | - clisp | | - coreutils | [] [] [] [] | - cpio | [] [] [] [] [] | - cppi | [] [] [] [] | - cpplib | [] [] [] [] [] | - cryptsetup | [] [] [] | - datamash | [] [] [] | - denemo | | - dfarc | [] | - dialog | [] [] [] [] [] [] | - dico | [] | - diffutils | [] [] [] [] [] | - dink | | - direvent | [] [] | - doodle | [] [] | - dos2unix | [] [] [] [] | - dos2unix-man | [] [] [] | - e2fsprogs | [] [] [] [] | - enscript | [] [] [] [] | - exif | [] [] [] [] [] | - fetchmail | [] [] [] [] | - findutils | [] [] [] [] [] | - flex | [] [] [] [] | - freedink | [] [] | - fusionforge | | - gas | [] | - gawk | [] [] | - gcal | [] [] | - gcc | [] [] | - gdbm | [] [] | - gettext-examples | [] [] [] [] [] [] | - gettext-runtime | [] [] [] [] [] [] | - gettext-tools | [] [] [] [] [] | - gjay | [] [] | - glunarclock | [] [] [] [] | - gnubiff | [] [] | - gnubik | [] [] [] [] | - gnucash | () () () () [] | - gnuchess | [] [] | - gnulib | [] [] [] [] | - gnunet | | - gnunet-gtk | | - gold | [] [] | - gphoto2 | [] [] [] [] | - gprof | [] [] [] [] | - gramadoir | [] [] [] | - grep | [] [] [] [] [] | - grub | [] [] [] [] | - gsasl | [] [] [] [] | - gss | [] [] [] | - gst-plugins-bad | [] [] [] [] | - gst-plugins-base | [] [] [] [] [] | - gst-plugins-good | [] [] [] [] [] | - gst-plugins-ugly | [] [] [] [] [] | - gstreamer | [] [] [] [] [] | - gtick | [] [] [] | - gtkam | [] [] [] [] | - gtkspell | [] [] [] [] [] [] [] [] | - guix | [] | - guix-packages | | - gutenprint | [] [] [] [] | - hello | [] [] [] [] [] [] | - help2man | [] [] [] | - help2man-texi | [] | - hylafax | [] | - idutils | [] [] [] | - iso_15924 | [] () [] [] () [] | - iso_3166 | [] [] () [] [] () [] [] [] | - iso_3166_2 | () [] [] () [] | - iso_4217 | [] () [] [] () [] [] | - iso_639 | [] [] [] () [] [] () [] [] [] | - iso_639_3 | [] () [] [] () | - iso_639_5 | () [] () | - jwhois | [] [] [] [] | - kbd | [] [] [] | - klavaro | [] [] [] [] [] [] | - latrine | [] [] | - ld | [] [] [] [] [] | - leafpad | [] [] [] [] [] [] | - libc | [] [] [] [] [] | - libexif | [] () | - libextractor | [] [] | - libgnutls | [] [] [] [] | - libgphoto2 | [] [] | - libgphoto2_port | [] [] [] [] | - libgsasl | [] [] [] [] | - libiconv | [] [] [] [] [] | - libidn | () [] [] [] | - liferea | [] [] [] [] [] | - lilypond | [] | - lordsawar | | - lprng | [] | - lynx | [] [] [] [] | - m4 | [] [] [] | - mailfromd | [] [] | - mailutils | [] | - make | [] [] [] [] | - man-db | [] [] | - man-db-manpages | [] | - midi-instruments | [] [] [] [] [] [] | - minicom | [] [] | - mkisofs | [] [] [] | - myserver | [] | - nano | [] [] [] [] | - opcodes | [] [] [] | - parted | [] [] [] [] [] | - pies | [] [] | - popt | [] [] [] [] [] [] [] | - procps-ng | [] [] | - procps-ng-man | [] | - psmisc | [] [] [] [] | - pspp | [] [] [] | - pushover | [] | - pwdutils | [] [] | - pyspread | [] | - radius | [] [] | - recode | [] [] [] [] | - recutils | [] [] [] | - rpm | [] [] [] [] | - rush | [] [] | - sarg | | - sed | [] [] [] [] [] | - sharutils | [] [] [] | - shishi | [] [] | - skribilo | [] | - solfege | [] [] [] | - solfege-manual | [] | - spotmachine | [] [] [] | - sudo | [] [] [] [] | - sudoers | [] [] [] | - sysstat | [] [] [] [] [] | - tar | [] [] [] [] [] | - texinfo | [] [] [] | - texinfo_document | [] | - tigervnc | [] [] | - tin | [] | - tin-man | | - tracgoogleappsa... | [] [] [] [] [] | - trader | [] | - util-linux | [] [] [] | - ve | [] [] [] [] | - vice | () () | - vmm | | - vorbis-tools | [] [] | - wastesedge | | - wcd | [] [] [] | - wcd-man | [] | - wdiff | [] [] [] [] | - wget | [] [] [] | - wyslij-po | [] [] | - xboard | [] | - xdg-user-dirs | [] [] [] [] [] [] [] [] [] | - xkeyboard-config | [] [] [] [] | - +---------------------------------------------------+ - sv sw ta te tg th tr uk ur vi wa wo zh_CN zh_HK - 91 1 4 3 0 13 50 113 1 126 7 1 95 7 - - zh_TW - +-------+ - a2ps | | 30 - aegis | | 9 - anubis | | 19 - aspell | | 28 - bash | [] | 21 - bfd | | 9 - binutils | | 12 - bison | [] | 18 - bison-runtime | [] | 38 - buzztrax | | 8 - ccd2cue | | 8 - ccide | | 17 - cflow | | 15 - clisp | | 10 - coreutils | | 20 - cpio | | 20 - cppi | | 17 - cpplib | [] | 19 - cryptsetup | | 13 - datamash | | 11 - denemo | | 4 - dfarc | | 16 - dialog | [] | 42 - dico | | 6 - diffutils | | 21 - dink | | 9 - direvent | | 10 - doodle | | 12 - dos2unix | [] | 18 - dos2unix-man | | 9 - e2fsprogs | | 14 - enscript | | 21 - exif | | 26 - fetchmail | | 19 - findutils | | 28 - flex | [] | 19 - freedink | | 23 - fusionforge | | 3 - gas | | 5 - gawk | | 12 - gcal | | 7 - gcc | | 4 - gdbm | | 10 - gettext-examples | [] | 40 - gettext-runtime | [] | 34 - gettext-tools | [] | 24 - gjay | | 8 - glunarclock | [] | 27 - gnubiff | | 9 - gnubik | | 19 - gnucash | () | 7 - gnuchess | | 10 - gnulib | | 23 - gnunet | | 1 - gnunet-gtk | | 1 - gold | | 7 - gphoto2 | [] | 19 - gprof | | 21 - gramadoir | | 14 - grep | [] | 31 - grub | | 21 - gsasl | [] | 19 - gss | | 17 - gst-plugins-bad | | 14 - gst-plugins-base | | 27 - gst-plugins-good | | 32 - gst-plugins-ugly | | 34 - gstreamer | [] | 31 - gtick | | 19 - gtkam | | 24 - gtkspell | [] | 48 - guix | | 3 - guix-packages | | 0 - gutenprint | | 15 - hello | [] | 30 - help2man | | 18 - help2man-texi | | 5 - hylafax | | 5 - idutils | | 14 - iso_15924 | [] | 23 - iso_3166 | [] | 58 - iso_3166_2 | | 9 - iso_4217 | [] | 28 - iso_639 | [] | 46 - iso_639_3 | | 10 - iso_639_5 | | 2 - jwhois | [] | 20 - kbd | | 16 - klavaro | | 30 - latrine | | 7 - ld | [] | 15 - leafpad | [] | 40 - libc | [] | 24 - libexif | | 9 - libextractor | | 5 - libgnutls | | 13 - libgphoto2 | | 9 - libgphoto2_port | [] | 19 - libgsasl | | 18 - libiconv | [] | 29 - libidn | | 17 - liferea | | 29 - lilypond | | 11 - lordsawar | | 3 - lprng | | 3 - lynx | | 19 - m4 | [] | 22 - mailfromd | | 4 - mailutils | | 6 - make | | 19 - man-db | | 14 - man-db-manpages | | 9 - midi-instruments | [] | 43 - minicom | [] | 17 - mkisofs | | 13 - myserver | | 9 - nano | [] | 29 - opcodes | | 12 - parted | [] | 21 - pies | | 4 - popt | [] | 36 - procps-ng | | 5 - procps-ng-man | | 4 - psmisc | [] | 22 - pspp | | 13 - pushover | | 6 - pwdutils | | 8 - pyspread | | 6 - radius | | 9 - recode | | 31 - recutils | | 9 - rpm | [] | 13 - rush | | 10 - sarg | | 4 - sed | [] | 34 - sharutils | | 12 - shishi | | 7 - skribilo | | 4 - solfege | | 19 - solfege-manual | | 9 - spotmachine | | 10 - sudo | | 24 - sudoers | | 20 - sysstat | | 22 - tar | [] | 30 - texinfo | | 17 - texinfo_document | | 11 - tigervnc | | 11 - tin | [] | 7 - tin-man | | 1 - tracgoogleappsa... | [] | 22 - trader | | 11 - util-linux | | 12 - ve | | 14 - vice | | 1 - vmm | | 3 - vorbis-tools | | 13 - wastesedge | | 2 - wcd | | 8 - wcd-man | | 3 - wdiff | [] | 23 - wget | | 19 - wyslij-po | | 14 - xboard | | 9 - xdg-user-dirs | [] | 68 - xkeyboard-config | [] | 27 - +-------+ - 90 teams zh_TW - 166 domains 42 2748 - - Some counters in the preceding matrix are higher than the number of -visible blocks let us expect. This is because a few extra PO files are -used for implementing regional variants of languages, or language -dialects. - - For a PO file in the matrix above to be effective, the package to -which it applies should also have been internationalized and distributed -as such by its maintainer. There might be an observable lag between the -mere existence a PO file and its wide availability in a distribution. - - If Jun 2014 seems to be old, you may fetch a more recent copy of this -'ABOUT-NLS' file on most GNU archive sites. The most up-to-date matrix -with full percentage details can be found at -'http://translationproject.org/extra/matrix.html'. - -1.5 Using 'gettext' in new packages -=================================== - -If you are writing a freely available program and want to -internationalize it you are welcome to use GNU 'gettext' in your -package. Of course you have to respect the GNU Lesser General Public -License which covers the use of the GNU 'gettext' library. This means -in particular that even non-free programs can use 'libintl' as a shared -library, whereas only free software can use 'libintl' as a static -library or use modified versions of 'libintl'. - - Once the sources are changed appropriately and the setup can handle -the use of 'gettext' the only thing missing are the translations. The -Free Translation Project is also available for packages which are not -developed inside the GNU project. Therefore the information given above -applies also for every other Free Software Project. Contact -'coordinator@translationproject.org' to make the '.pot' files available -to the translation teams. diff --git a/ChangeLog b/ChangeLog deleted file mode 100644 index c47ca6f..0000000 --- a/ChangeLog +++ /dev/null @@ -1,47395 +0,0 @@ -commit 921ff14cdaf58f804ab1f5a2f9abd15ee5ffa19c -Author: Jens Georg -Date: Sat Jul 14 13:06:00 2018 +0200 - - Prepare Shotwell 0.28.4 - -M NEWS -M configure.ac -M meson.build - -commit ce6d50975ffd7741f4b30a1b144e02eb4e868da9 -Author: Jens Georg -Date: Thu Jun 28 22:36:38 2018 +0200 - - camera: Temporarily remove libusb work-around - - Work-around for !4 - unbreaking PTP support for most users is probably - more important than catering this somewhat obscure - (obsolete?) behavior - -M src/camera/CameraTable.vala - -commit 9e12fe7a5af9eda05d8c5e6d0f771b1c8021d18d -Author: Jens Georg -Date: Thu Jun 28 22:03:56 2018 +0200 - - camera: Add mtp to supported mount schemes - - This allows automatic unmounting of MTP devices. - -M src/library/LibraryWindow.vala - -commit 91f755dafd82d53aa0e2753fcfc8eedd8fce8918 -Author: Piotr Drąg -Date: Tue Jun 5 15:24:46 2018 +0200 - - Fix keywords in Turkish translation - - - (cherry picked from commit 64c40c6f0fe4558ec1bab4851cc771991593adda) - -M po/tr.po - -commit 5bb67119597371a34b6de52e7633082919a981cf -Author: Jens Georg -Date: Fri Jun 8 11:31:59 2018 +0200 - - google: Fix OAuth2 token extraction - - The old code parsed the page title which previously was the URI. That - seems to have changed lately to be empty. - - Use proper OAuth2 redirect_uri and handle the custom Scheme just - like in - Flickr for OAuth1. - - Closes #12 - -M plugins/authenticator/shotwell/GoogleAuthenticator.vala - -commit 4d55d976d0d458de0770616b934b3deace519c0f -Author: Jens Georg -Date: Wed May 23 23:29:43 2018 +0200 - - Fix slideshow settings dialog - - - Missing response codes for buttons - - Wrong template class name - - https://bugzilla.gnome.org/show_bug.cgi?id=796370 - -M ui/slideshow_settings.ui - -commit cacc8bd5415d978f2eb64f215e4be696290c6edc -Author: Jens Georg -Date: Mon May 7 19:37:12 2018 +0200 - - Prepare 0.28.3 - -M NEWS -M configure.ac -M meson.build - -commit 50a532560e1627cae66d75036faab55e3247926b -Author: Piotr Drąg -Date: Sun May 6 18:58:26 2018 +0200 - - Update Polish translation - -M po/pl.po - -commit 93d14085fc7deb433bc018e3a9927c1eb252a450 -Author: Jens Georg -Date: Sun May 6 15:11:31 2018 +0200 - - Fix lined tags - - Fix regression introduced by a5ba963889c733d6ac80dad9a09058d0a214eb94 - -M src/CheckerboardLayout.vala - -commit 828981065e81d04b8160e131ca2c6c8ef91dd2fe -Author: Jens Georg -Date: Sun Apr 29 11:17:19 2018 +0200 - - checkerboard: Translate coordinates while drawing - - This prevents that we exceed the translation matrix limits in pixman, - the root cause for the Out of memory errors seen on HiDPI displays - - https://bugzilla.gnome.org/show_bug.cgi?id=786702 - -M src/CheckerboardLayout.vala - -commit 776da8bf0c62d016273e1711e8874a2d7bef09d9 -Author: Jens Georg -Date: Sat Apr 14 18:19:32 2018 +0200 - - Fix spacing for flagged button - -M src/SearchFilter.vala - -commit 77b572462178a1f85633d315e0da69ab51b58f79 -Author: Jens Georg -Date: Fri Apr 13 19:29:29 2018 +0200 - - Fix spacing in search toolbar - -M src/SearchFilter.vala - -commit 4125c3461149ddec7fb58f58390a5c052eb7f1fc -Author: Jens Georg -Date: Mon Apr 9 20:26:42 2018 +0200 - - Prepare 0.28.2 - -M NEWS -M configure.ac -M meson.build - -commit 717552104d580c9dad3c8953085fa3e08b26c750 -Author: Jens Georg -Date: Sat Mar 31 13:50:00 2018 +0200 - - Piwigo: Fix logging in with "&" in password - - https://bugzilla.gnome.org/show_bug.cgi?id=718742 - -M plugins/shotwell-publishing/PiwigoPublishing.vala - -commit 986cb24554aa9dfd54634b087ee86e7ec2f8c586 -Author: Jens Georg -Date: Wed Mar 28 19:19:42 2018 +0200 - - Fix crash on editing images with alpha channel - - The cache does not carry alpha channel, use proper counting there - to not - exceed the cache size - -M src/ColorTransformation.vala - -commit 6c1939ef77f33a08204a0869572be62db98635f4 -Author: Jens Georg -Date: Mon Mar 26 00:29:14 2018 +0200 - - saved search: Fix working with Gtk 3.18 - - Looks like Glade's verifier did not find this. - - https://bugzilla.gnome.org/show_bug.cgi?id=794673 - -M ui/saved_search_dialog.ui - -commit 46483b7a7997555d33336177b7f5b9a58cc94db1 -Author: Jens Georg -Date: Sun Mar 25 14:48:21 2018 +0200 - - Prepare 0.28.1 - -M NEWS -M configure.ac -M meson.build - -commit 119d0f3b29c5c017081c014af14fcd609bbaa2d5 -Author: Jens Georg -Date: Sun Mar 25 14:34:46 2018 +0200 - - Revert "publishers: Properly escape urlencoded payload" - - It Breaks at least flicker upload - - This reverts commit 7dc86b74c8a4cd251fb8815a818a206cd7a0d6b0. - -M plugins/common/RESTSupport.vala - -commit caaacf4a1c673ca3ea778251c12577274e736859 -Author: gogo -Date: Thu Mar 22 00:05:12 2018 +0000 - - Update Croatian translation - -M po/hr.po - -commit c723f2c1a17568272623340ca4cf696897171948 -Author: Jens Georg -Date: Mon Mar 12 22:50:32 2018 +0100 - - Fix undefined symbol error - - Or: inline does not do what you expect it to do. - - https://en.wikipedia.org/wiki/Inline_function#C99 - - We really want static inline here. - - https://bugzilla.gnome.org/show_bug.cgi?id=794293 - -M src/_transformation.c - -commit 3abcc2f5061e27ba5b5b244ad5e059ba7c3eb2f2 -Author: Rūdolfs Mazurs -Date: Thu Mar 15 22:20:17 2018 +0200 - - Update Latvian translation - -M po/lv.po - -commit ecaf52c6dddb02a0c7c92c96ae9869025037465b -Author: Jens Georg -Date: Mon Mar 12 22:06:46 2018 +0100 - - Prepare 0.28.0 - -M NEWS -M configure.ac -M icons/Makefile.am -D icons/about-aachen.jpg -A icons/about-braunschweig.jpg -M meson.build -M org.gnome.Shotwell.gresource.xml -M src/AppWindow.vala -M src/Resources.vala - -commit 1c0d3d0b0fe6f5f244f126c75cae881e5b5cbc2a -Author: Alan Mortensen -Date: Sat Mar 10 17:08:25 2018 +0100 - - Updated Danish translation - -M po/da.po - -commit 986bc3735579db11b8ed4f52bd86f6cb8bc70047 -Author: Jens Georg -Date: Tue Mar 6 20:52:06 2018 +0100 - - Prepare 0.27.92 - -M NEWS -M configure.ac -M meson.build - -commit 5553bf0d37de1ca0b1300fc22d4a0280ca3e3efd -Author: Jordi Mas -Date: Sat Mar 3 09:51:50 2018 +0100 - - Update Catalan translation - -M po/ca.po - -commit d42a829e93eb955726089ccfc7c98b5227c738e3 -Author: GNOME Translation Robot -Date: Fri Mar 2 12:10:35 2018 +0000 - - Update Scottish Gaelic translation - - (cherry picked from commit ab2c74b50966b746107383f699c39789922e8e92) - -M po/gd.po - -commit c03ea62be62c24b72817e97ea9a19da47a51a532 -Author: Mario Blättermann -Date: Tue Feb 27 21:02:00 2018 +0000 - - Update German translation - -M help/de/de.po - -commit d5aa2a2df84a807843e684075bec711ee1df8ad4 -Author: Jens Georg -Date: Mon Feb 26 18:16:40 2018 +0100 - - Save selection before setting the restore point - - With the fix for bug 786531, setting the restore point before - executing - the job would add the restore point to the list of selected items. - - https://bugzilla.gnome.org/show_bug.cgi?id=793818 - -M src/MediaPage.vala - -commit e2df3354579f29cda50d28c94687b025a808a6e9 -Author: Tim Sabsch -Date: Tue Feb 27 19:58:26 2018 +0000 - - Update German translation - -M po/de.po - -commit 0adcf57608f6a0556bb62e8a35ca08c01fdb4e42 -Author: gogo -Date: Tue Feb 27 00:00:02 2018 +0000 - - Update Croatian translation - -M po/hr.po - -commit bf739e5c74cb77f72acf389c7a309e39b56561fd -Author: Balázs Úr -Date: Mon Feb 26 22:44:52 2018 +0000 - - Update Hungarian translation - -M po/hu.po - -commit 03bcc8b01e07dd36eb1b195de7d54e4b88ff4446 -Author: Jordi Mas -Date: Sun Feb 25 22:55:25 2018 +0100 - - Update Catalan translation - -M po/ca.po - -commit 1544f599c4995084f2b487e602e4c264066fdb07 -Author: Piotr Drąg -Date: Sat Feb 24 00:46:26 2018 +0100 - - Fix Spanish translation header - -M help/es/es.po -M po/es.po - -commit 9241488bec9f9f74cb0b80353e67c85a50825a9a -Author: Daniel Korostil -Date: Thu Feb 22 07:40:18 2018 +0000 - - Update Ukrainian translation - -M po/uk.po - -commit 2eaeb63bf4b4d79b81035030551b34ec99582186 -Author: Мирослав Николић -Date: Wed Feb 21 07:55:54 2018 +0100 - - Updated Serbian translation - -M po/sr.po -M po/sr@latin.po - -commit 7dc86b74c8a4cd251fb8815a818a206cd7a0d6b0 -Author: Jens Georg -Date: Sat Feb 10 21:12:32 2018 +0100 - - publishers: Properly escape urlencoded payload - - https://bugzilla.gnome.org/show_bug.cgi?id=718742 - -M plugins/common/RESTSupport.vala - -commit 418c4b2feb27b8e93a8cc1ee7cfee219630a2f7a -Author: Jiri Grönroos -Date: Sat Feb 10 17:58:25 2018 +0000 - - Update Finnish translation - -M po/fi.po - -commit d607aebe3314cbe4cfcb26e17ca13fd60567f1f2 -Author: Jens Georg -Date: Mon Feb 5 19:08:54 2018 +0100 - - Prepare 0.27.4 - -M NEWS -M configure.ac -M meson.build - -commit 3b3b7c424437d66703abb10b1ac5dc3c7539f6d1 -Author: Marek Cernocky -Date: Sun Jan 28 13:13:11 2018 +0100 - - Updated Czech translation - -M help/cs/cs.po -M po/cs.po - -commit af6f570624795ca364b9922597dd02d4a3dc832d -Author: Jordi Mas -Date: Sat Jan 20 22:00:38 2018 +0100 - - Update Catalan translation - -M po/ca.po - -commit 9c2c6af1f188974ba01b23c3bf88b40f20006bf5 -Author: Jordi Mas -Date: Wed Jan 17 20:37:49 2018 +0100 - - Fixes to Catalan translation - -M po/ca.po - -commit d076d4c54fbc0c24a14b9f70757afa0e69712eb4 -Author: Jens Georg -Date: Sat Jan 13 23:05:18 2018 +0100 - - Prevent crash when removing the event's last photo - - Issue is that this would destroy the event and destroy the media page, - afterwards trying to update the undo list on the now destroyed view - - https://bugzilla.gnome.org/show_bug.cgi?id=786531 - -M src/MediaPage.vala - -commit 1786a3a69dd79f378ba4f669d2e28fe9c5d10a7b -Author: Jens Georg -Date: Sat Jan 13 21:48:28 2018 +0100 - - Fix folder sidebar with DAV - - Shotwell tried to go up to the root folder, but if a concrete path is - mounted, the parent might not have a path associated - - So we stop if there is either no parent or the parent does not have a - local mount representation - - https://bugzilla.gnome.org/show_bug.cgi?id=792498 - -M src/folders/FoldersBranch.vala - -commit 5125d2fbfad5408f42958802f0d6a6ebfa01d7aa -Author: Rafael Fontenelle -Date: Sat Jan 13 14:26:43 2018 +0000 - - Update Brazilian Portuguese translation - -M po/pt_BR.po - -commit 99c2704b1350cb074c45503578520982b5ac7e3e -Author: Jens Georg -Date: Tue Jan 9 21:52:32 2018 +0100 - - Prepare 0.27.3 - -M NEWS -M configure.ac -M meson.build - -commit e902cd38eda129eb1e9b928d5dea5c47a1f45572 -Author: Cheng-Chia Tseng -Date: Tue Jan 2 11:22:02 2018 +0000 - - Update Chinese (Taiwan) translation - -M po/zh_TW.po - -commit c625d5b3476aa45903633b4904761bbc4fa18fe2 -Author: Jens Georg -Date: Mon Jan 1 13:26:13 2018 +0100 - - Use new location for appdata files - - https://bugzilla.gnome.org/show_bug.cgi?id=790185 - -M m4/appstream-xml.m4 -M misc/meson.build - -commit f55ead60f6dd2a4b3cbc00f5042103fa8a3a602e -Author: Jens Georg -Date: Mon Jan 1 11:31:44 2018 +0100 - - Make internal helper library shared - - Fixes issue with multiple class registration in ubuntu ppa binaries - - https://bugzilla.gnome.org/show_bug.cgi?id=792058 - -M src/plugins/meson.build - -commit 908b0333d8f6f2bdd1520e6d6fdecb237da94750 -Author: Jens Georg -Date: Thu Dec 28 08:50:17 2017 +0100 - - Enhance spacing without headerbars - -M src/publishing/PublishingUI.vala - -commit 9d2642f7c018b0d353915f5dae4a5ccbfa9c26c0 -Author: Jens Georg -Date: Mon Dec 25 15:02:13 2017 +0100 - - Add documentation for contrast - -M help/C/edit-adjustments.page - -commit 8e2edcaa7291a8f36dd41f94c657c1f89e66ba8e -Author: Jens Georg -Date: Sun Dec 24 16:22:10 2017 +0100 - - Fix showing help when running from build dir - - https://bugzilla.gnome.org/show_bug.cgi?id=717126 - -M src/Resources.vala - -commit b80a42d7a4f60be28369204936f55a2e0f16f5ae -Author: Jens Georg -Date: Sun Dec 24 14:13:05 2017 +0100 - - Don't wrongly fall back to shotwell developer - - If we requested CAMERA development, but the RAW file did not have any - preview embedded, Shotwell falls back to the SHOTWELL developer, even - though we have the camera-developed fle available - - Only fall back to SHOTWELL if embedded was chosen and embedded is not - available. - - https://bugzilla.gnome.org/show_bug.cgi?id=791893 - -M src/Photo.vala - -commit 70cab367c581563b9e6bfd2bb4b8850fe78a8005 -Author: Rico Tzschichholz -Date: Sun Dec 24 09:25:30 2017 +0100 - - build: Drop broken reference to MaybeHeaderbarDialog.vala - -M shotwell.am - -commit 686e625647034587ef62efe4400a23f4927a00f1 -Author: Jens Georg -Date: Sat Dec 23 21:25:15 2017 +0100 - - Some syling fixes for SavedSearch dialog - -M src/searches/SavedSearchDialog.vala - -commit 365cb94e4854bcb5edd1c4db89f4ed0454559662 -Author: Jens Georg -Date: Sat Dec 23 15:02:02 2017 +0100 - - Align Histogram in center - -M src/editing_tools/RGBHistogramManipulator.vala - -commit d0dd38464c0654e909da679713bd3751f6a6ae24 -Author: Jens Georg -Date: Sat Dec 23 15:01:45 2017 +0100 - - Adjustment Tool: Add labels to sliders - - So the actual values can be seen and probably taken over to other - images - -M src/editing_tools/EditingTools.vala - -commit caa27aa336f77a9e969bd7972ccec609b1bbf00f -Author: Jens Georg -Date: Wed Dec 20 23:30:56 2017 +0100 - - Fix another merge issue - -M ui/manifest_widget.ui - -commit 5829627cef569db0574cba1de831b9af4e400edd -Author: Jens Georg -Date: Wed Dec 20 23:16:32 2017 +0100 - - Remove merge issues from shotwell.ui - -M ui/shotwell.ui - -commit 1b003e8f3ba02b658f08497dd63d710850b43e46 -Author: Jens Georg -Date: Wed Dec 20 23:10:54 2017 +0100 - - Add a dummy Piwigo server - -A test/server.py - -commit 9fd45306cc05922137944f210b4cb93424c68e81 -Author: Jens Georg -Date: Wed Dec 20 22:07:36 2017 +0100 - - Update automake - -M shotwell.am -M ui/Makefile.am - -commit f1abf623183ed1bc964e8224802558129efa189c -Author: Jens Georg -Date: Wed Dec 20 22:06:58 2017 +0100 - - Update POTFILES.in and POTFILES.skip - -M po/POTFILES.in -M po/POTFILES.skip - -commit a4c40931da84727358a9ef3f8858764b8045bae6 -Author: Jens Georg -Date: Wed Dec 20 21:46:00 2017 +0100 - - Use ListBox for search criteria row - -M src/searches/SavedSearchDialog.vala -M ui/saved_search_dialog.ui - -commit b3a2f41ddf3bb3d12a17f2420d98ef13da0269e0 -Author: Jens Georg -Date: Tue Dec 19 21:36:40 2017 +0100 - - More consistent HeaderBar handling - -M src/Properties.vala -M src/Resources.vala -M src/data_imports/DataImportsUI.vala -M src/dialogs/AdjustDateTimeDialog.vala -M src/dialogs/ExportDialog.vala -M src/dialogs/MultiTextEntryDialog.vala -M src/dialogs/Preferences.vala -M src/dialogs/SetBackground.vala -M src/dialogs/SetBackgroundSlideshow.vala -M src/dialogs/TextEntry.vala -M src/dialogs/WelcomeDialog.vala -M src/publishing/PublishingUI.vala -M src/searches/SavedSearchDialog.vala - -commit f489c26f64aa16b989c397002c076553845d5cf7 -Author: Jens Georg -Date: Wed Dec 20 14:13:21 2017 +0100 - - Make ManifestWidget templated - -M org.gnome.Shotwell.gresource.xml -M src/dialogs/Preferences.vala -M src/plugins/ManifestWidget.vala -A ui/manifest_widget.ui -M ui/shotwell.ui - -commit 9bf6ab69afdf00894cf3a73e0b8af24c5414d494 -Author: Jens Georg -Date: Wed Dec 20 13:36:10 2017 +0100 - - Make SavedSearch dialog templated - -M org.gnome.Shotwell.gresource.xml -M src/searches/SavedSearchDialog.vala -A ui/saved_search_dialog.ui -M ui/shotwell.ui - -commit a450daec832468b92068e428ed545183db9d1093 -Author: Jens Georg -Date: Wed Dec 20 12:47:38 2017 +0100 - - Extract ProgressDialog - -M src/Dialogs.vala -A src/dialogs/ProgressDialog.vala -M src/meson.build - -commit 044842b35962932fdf59db1bfd7ed6a3db5039f3 -Author: Jens Georg -Date: Tue Dec 19 21:34:55 2017 +0100 - - Extract WelcomeDialog - -M src/Dialogs.vala -A src/dialogs/WelcomeDialog.vala -M src/meson.build - -commit 122e3bda66d4b4afbc110363c6f1c00f237898ad -Author: Jens Georg -Date: Tue Dec 19 20:59:22 2017 +0100 - - Extract AdjustDateTimeDialog - -M src/Dialogs.vala -A src/dialogs/AdjustDateTimeDialog.vala -M src/meson.build - -commit a0916895cf7e7a6d448b66374572762739227abe -Author: Jens Georg -Date: Wed Dec 20 16:42:49 2017 +0100 - - Extract MultiTextEntryDialog - -M org.gnome.Shotwell.gresource.xml -M src/Dialogs.vala -A src/dialogs/MultiTextEntryDialog.vala -M src/meson.build -A ui/multitextentrydialog.ui -M ui/shotwell.ui - -commit 7351d786f3256e7fa535cef906785a473fb37e67 -Author: Jens Georg -Date: Tue Dec 19 20:41:14 2017 +0100 - - Extract Export dialog - -M src/Dialogs.vala -A src/dialogs/ExportDialog.vala -M src/meson.build - -commit d783672bf514ec85c8f73f041f65f5bbb59d10ca -Author: Jens Georg -Date: Wed Dec 20 16:42:26 2017 +0100 - - Extract Preferences Dialog - -M src/Dialogs.vala -A src/dialogs/Preferences.vala -M src/meson.build - -commit 70215a717702713711332f9270255d4f8edd455c -Author: Jens Georg -Date: Wed Dec 20 16:40:55 2017 +0100 - - Extract TextEntry dialog - -M org.gnome.Shotwell.gresource.xml -M src/Dialogs.vala -A src/dialogs/EntryMultiCompletion.vala -A src/dialogs/TextEntry.vala -M src/meson.build -M ui/shotwell.ui -A ui/textentrydialog.ui - -commit 3b177a6a7d37016b92bf98e0f3021eb31353f15a -Author: Jens Georg -Date: Wed Dec 20 16:40:05 2017 +0100 - - Extract SetBackgroundSlideshow dialog - -M shotwell.am -M src/Dialogs.vala -A src/dialogs/SetBackgroundSlideshow.vala -M src/meson.build - -commit af567f9ca897202763c770e979cd1d1781cebe7b -Author: Jens Georg -Date: Wed Dec 20 16:38:27 2017 +0100 - - Extract SetBackground dialog - -M shotwell.am -M src/Dialogs.vala -A src/dialogs/SetBackground.vala -M src/meson.build - -commit c50772173477689f38fb65234b3a757958974831 -Author: Daniel Mustieles -Date: Wed Dec 20 18:23:12 2017 +0100 - - Updated Spanish translation - -M po/es.po - -commit 4c4afdad9d442b168621fe6fdabaafe739948d97 -Author: Jens Georg -Date: Mon Dec 18 11:13:18 2017 +0100 - - When switching month/year in calendar, update other inputs - -M src/Dialogs.vala - -commit 7026555aede74e65ee374f0baa52c5c8d1b2458e -Author: Jens Georg -Date: Mon Dec 18 11:07:55 2017 +0100 - - Add F4 as shortcut for Date/Time dialog - - https://bugzilla.gnome.org/show_bug.cgi?id=753943 - -M src/CollectionPage.vala -M ui/direct.ui -M ui/photo.ui - -commit 476ccb26f086585de4b8c2a9bd0dd3c6dd6c5ba4 -Author: Jens Georg -Date: Fri Dec 15 05:21:03 2017 +0100 - - Make Histogram keyboard accessible - - Histogram can now be used by keyboard as follows: - - - Left/Right key will move the manipulator - - Shift will select which manipulator is used. No Shift => left - manipulator, Shift => right manipulator - - Normal increase or decrease is 5. Using CTRL this can be modified - to 1 - - https://bugzilla.gnome.org/show_bug.cgi?id=716431 - -M src/editing_tools/RGBHistogramManipulator.vala - -commit 7d3034fac2e78b54aa9d70025ff5faafd243a6ca -Author: Jens Georg -Date: Tue Dec 12 20:46:54 2017 +0100 - - Fix type of primary_source_id table on upgrade - - This is TEXT now, not INTEGER - - https://bugzilla.gnome.org/show_bug.cgi?id=790469 - -M src/db/Db.vala - -commit 7f932b0f40611cbc76b925751769e6432d396ec9 -Author: Jens Georg -Date: Tue Dec 12 20:33:31 2017 +0100 - - Fix upgrading from Shotwell 0.7.2 - - There was a check missing for the existence of VideoTable - - https://bugzilla.gnome.org/show_bug.cgi?id=790469 - -M src/db/Db.vala - -commit 2c8ae067b7bf0181d8e1c9b557928119e158614b -Author: Kukuh Syafaat -Date: Tue Dec 12 13:00:52 2017 +0000 - - Update Indonesian translation - -M po/id.po - -commit c569afc460716f675f0009d9a475baedbb87da84 -Author: Jens Georg -Date: Mon Dec 11 18:25:46 2017 +0100 - - Prepare 0.27.2 - -M NEWS -M configure.ac -M meson.build - -commit 15db8493b70c5e4e90b95cecda73f34663eda1fa -Author: Jens Georg -Date: Sun Dec 10 14:06:17 2017 +0100 - - help: Fix keyboard shortcut for publishing - -M help/C/share-upload.page - -commit 826963a088633e66e062dc55165141358097ff56 -Author: Josef Andersson -Date: Tue Nov 28 00:25:43 2017 +0000 - - Update Swedish translation - -M po/sv.po - -commit 2fe7872a0902a79a2b1a27d6b0273e50a37380fa -Author: Jens Georg -Date: Mon Nov 27 12:56:05 2017 +0100 - - Make month and year editable in date/time selector - - https://bugzilla.gnome.org/show_bug.cgi?id=736643 - -M src/Dialogs.vala - -commit 5e9053bb76999178f6ae27f011c4a3f90325512e -Author: Jens Georg -Date: Mon Nov 27 20:32:35 2017 +0100 - - Fix compiling with older valac - -M plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala - -commit 437714de31aec97f25928bd93331ae4aad1e9514 -Author: Jens Georg -Date: Sun Nov 26 21:34:52 2017 +0100 - - Trigger keyword update when comment changes - - https://bugzilla.gnome.org/show_bug.cgi?id=729857 - -M src/MediaDataRepresentation.vala - -commit 3f9a84bf92bb930336cd1df027596290a59e3dba -Author: Piotr Drąg -Date: Sun Nov 26 18:47:43 2017 +0100 - - Update Polish translation - -M po/pl.po - -commit 2f0cb4807540574100f007139f9d8a5da36490e2 -Author: Jens Georg -Date: Sun Nov 26 15:43:58 2017 +0100 - - Do not reset title on startup - - This partially reverts some of the startup optimisation made in - 125bfbe - but doesn't seem to make the startup any worse - - Fixes sorting by title - - https://bugzilla.gnome.org/show_bug.cgi?id=790668 - -M src/Thumbnail.vala - -commit 28cbe3fa2255954951e098fb24db5f599c4e3c89 -Author: Piotr Drąg -Date: Fri Nov 24 21:46:38 2017 +0100 - - Update POTFILES.in - -M po/POTFILES.in - -commit a9a09f8944e9aa4c594367c23b89a8a7c70dcd2e -Author: Jens Georg -Date: Fri Nov 24 21:33:47 2017 +0100 - - Flickr: Remove external browser call - - Instead, do the authentication flow with WebKit. - - https://bugzilla.gnome.org/show_bug.cgi?id=718977 - -M authenticator.am -M plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala -D plugins/authenticator/shotwell/flickr_pin_entry_pane.ui -M -plugins/authenticator/shotwell/org.gnome.Shotwell.Authenticator.gresource.xml - -commit 6a2fe441f5872b7e98dd3ae81ec28242c78fa602 -Author: Jens Georg -Date: Fri Nov 17 19:29:26 2017 +0100 - - OAuth1: Move into own file - -M Makefile.am -A plugins/common/OAuth1Support.vala -M plugins/common/RESTSupport.vala -M plugins/meson.build - -commit e5abe03c52172f6bdb649c4247d8face70646bdc -Author: Jens Georg -Date: Thu Nov 16 21:44:49 2017 +0100 - - OAuth1: Fix upload signing - -M plugins/common/RESTSupport.vala - -commit f8849b8dfa51c3a6718dbf72261f5002798b8f8f -Author: Jens Georg -Date: Thu Nov 16 21:43:11 2017 +0100 - - Tumblr,Flicker: Fix authorization - -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/TumblrPublishing.vala - -commit 807376fc2f2fdd718d1025b68ad4338146628eab -Author: Jens Georg -Date: Thu Nov 16 20:47:35 2017 +0100 - - OAuth: Fix serialization of upload authorization - -M plugins/common/RESTSupport.vala - -commit 38fc4ab9a2f593e19626d2dea3a16df23351a47f -Author: Jens Georg -Date: Thu Nov 16 10:25:39 2017 +0100 - - tumblr: Rename authentication call-back - - Just to be clear, minor clean-up - -M plugins/shotwell-publishing/TumblrPublishing.vala - -commit 204004856ccb5c60a1df0d72c8ecdf40aa337898 -Author: Ask Hjorth Larsen -Date: Sat Nov 11 18:44:56 2017 +0100 - - Updated Danish translation - -M po/da.po - -commit fdda622dbb58e904231c3f0f7cd678375f12f991 -Author: Jens Georg -Date: Sat Nov 11 14:42:39 2017 +0100 - - Clean-up printing dialog - - https://bugzilla.gnome.org/show_bug.cgi?id=779677 - -M ui/printing_widget.ui - -commit a54c9b6f48d5451c877aff02056b73328e7e512e -Author: Jens Georg -Date: Fri Nov 10 16:28:47 2017 +0100 - - Wayland: Fix scroll and zoom - - Scroll and zoom with mouse wheel did not work anymore on Wayland - - https://bugzilla.gnome.org/show_bug.cgi?id=781472 - -M src/Page.vala - -commit 6d6e33022b69fb6cab6ce369964d7a813e7231c4 -Author: Piotr Drąg -Date: Thu Nov 9 17:58:45 2017 +0100 - - Update POTFILES.in and POTFILES.skip - -M po/POTFILES.in -M po/POTFILES.skip - -commit c39348626287522b83abf1b2ce7a9eec9bf07f69 -Author: Jens Georg -Date: Thu Nov 9 00:42:17 2017 +0100 - - Add OAuth1.UploadTransaction base class - -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/TumblrPublishing.vala - -commit 9e9b8bc33d567838f2a55ca57456973ba29c98b5 -Author: Jens Georg -Date: Wed Nov 8 23:47:57 2017 +0100 - - Tumblr: Fix indentation - -M plugins/shotwell-publishing/TumblrPublishing.vala - -commit 3d44027404c19eb1f97c17f4f106a99876ba848f -Author: Jens Georg -Date: Wed Nov 8 23:43:21 2017 +0100 - - Move OAuth1 code into common library - -M plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala -M plugins/authenticator/shotwell/OAuth1Authenticator.vala -M plugins/authenticator/shotwell/TumblrAuthenticator.vala -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/TumblrPublishing.vala - -commit 6192c47ff22522cb0f938533f0b7de5ac55c6b08 -Author: Jens Georg -Date: Wed Nov 8 22:47:32 2017 +0100 - - Tumblr: Re-use OAuth1 code in authenticator - -M plugins/authenticator/shotwell/TumblrAuthenticator.vala - -commit 314e369bb7b6302d39cbbe93bd3bef6904549f9b -Author: Jens Georg -Date: Sun Oct 22 19:49:31 2017 +0200 - - Tumblr: Add Authenticator to framework - -M authenticator.am -M plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala -A plugins/authenticator/shotwell/TumblrAuthenticator.vala -M plugins/authenticator/shotwell/meson.build -M -plugins/authenticator/shotwell/org.gnome.Shotwell.Authenticator.gresource.xml -R100 plugins/shotwell-publishing/tumblr_authentication_pane.ui -plugins/authenticator/shotwell/tumblr_authentication_pane.ui -M plugins/shotwell-publishing/TumblrPublishing.vala -M -plugins/shotwell-publishing/org.gnome.Shotwell.Publishing.gresource.xml -M po/POTFILES.in -M publish.am - -commit 78d3090eb507835abf52df86217ba0724fc28d09 -Author: Jens Georg -Date: Sun Oct 22 14:01:33 2017 +0200 - - Flickr: Split out OAuth1 stuff into common class - -M authenticator.am -M plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala -A plugins/authenticator/shotwell/OAuth1Authenticator.vala -M plugins/authenticator/shotwell/meson.build - -commit e9f8c2498d7364981f1fdf3ab30072e51f4e2720 -Author: Jens Georg -Date: Tue Nov 7 09:17:37 2017 +0100 - - ColorTransformation: Round up slice length - - Otherwise we miss a couple of lines at the end. - -M src/ColorTransformation.vala - -commit 08408e7068ef2d91f00cc58604de2902ebfceb09 -Author: Jens Georg -Date: Sun Nov 5 19:06:55 2017 +0100 - - Fill pixel cache from lookup table - -M src/editing_tools/EditingTools.vala - -commit d71dd2276dbfa6bfec36a275617e9b0de06a19ec -Author: Jens Georg -Date: Sun Nov 5 19:06:36 2017 +0100 - - Parallelize color transformations - -M src/ColorTransformation.vala -M src/graphics-processor.vala - -commit 1d7b21c77dad55845734b28425f31bb0023bd791 -Author: Jens Georg -Date: Sun Nov 5 18:59:23 2017 +0100 - - Convert color transformations to C - - GCC has massive issues to optimize away the struct assignments Vala - generates. clang seems to be fine with them, but we cannot require a C - compiler. - -M pipeline.am -M src/ColorTransformation.vala -A src/_transformation.c -M src/meson.build - -commit 4d4041a133a029bfb123fd48f641cbe6acbad5a6 -Author: Jens Georg -Date: Wed Nov 8 15:34:35 2017 +0100 - - Fix unmounting devices on MTP conflict - - Apparently there are devices that are occupied bz the MTP volume - monitor. Fix unmounting those cameras as well - - https://bugzilla.gnome.org/show_bug.cgi?id=786821 - -M src/camera/ImportPage.vala - -commit 3430844a7ee61cc67089c95486ad784d7af6f613 -Author: Jens Georg -Date: Thu Oct 26 22:01:41 2017 +0200 - - Rename "Width or height" in Gallery plug-in as well - -M -plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui - -commit 06a720c4e1f720ad2e88e93ab27c29c9f341f4fd -Author: Alan Mortensen -Date: Sat Nov 4 13:49:51 2017 +0100 - - Updated Danish translation - -M po/da.po - -commit 1b1e155d781e2bfadafe5f8430df269b28219be2 -Author: Marek Cernocky -Date: Sun Oct 29 08:36:37 2017 +0100 - - Updated Czech translation - -M help/cs/cs.po -M po/cs.po - -commit 6bfefa9389d4c34b5b080ed5d18855b9354f1f36 -Author: Mario Blättermann -Date: Tue Oct 24 07:34:34 2017 +0000 - - Update German translation - -M help/de/de.po - -commit b4c947b4e29c3bdb081372bcbc8c0854c7971123 -Author: Mario Blättermann -Date: Tue Oct 24 07:10:48 2017 +0000 - - Update German translation - -M po/de.po - -commit e7cc6ebd30abf253142fa947819b3fffe549c27b -Author: Marek Cernocky -Date: Mon Oct 23 08:14:27 2017 +0200 - - Updated Czech translation - -M po/cs.po - -commit 1ec966bdf3e7c9cc6915542f484aacd4ee9b12ff -Author: Piotr Drąg -Date: Sun Oct 22 18:10:09 2017 +0200 - - Update Polish translation - -M po/pl.po - -commit 763b1be74f3f5f51157e12bd88f3e04f7600c474 -Author: Cheng-Chia Tseng -Date: Sun Oct 22 13:35:50 2017 +0000 - - Update Chinese (Taiwan) translation - -M po/zh_TW.po - -commit ca488db5886936aafe4f1b3590489d1a16650fa1 -Author: Jens Georg -Date: Mon Sep 25 21:59:03 2017 +0200 - - Re-word "Width or Height" scaling constraint - - Also add some documentation on what that is supposed to do - - https://bugzilla.gnome.org/show_bug.cgi?id=787553 - -M help/C/share-export.page -M src/Dimensions.vala - -commit af9a74811bc5f5ff3e3a7cea3dcbb9ada5ea3eb1 -Author: Jens Georg -Date: Sat Oct 21 11:13:50 2017 +0200 - - debian: Use meson - -M debian/changelog -M debian/control -M debian/rules - -commit 3900ffccf9cfb6b15ab06b38d97d5edfe18c289f -Author: Jens Georg -Date: Sat Oct 21 10:44:24 2017 +0200 - - Dist shotwell.svg - -M icons/Makefile.am - -commit eed20d153fe8d6959947191aa9a99e060c36280b -Author: Jens Georg -Date: Sat Oct 21 10:29:06 2017 +0200 - - Prepare 0.27.1 - -M NEWS -M configure.ac -M meson.build - -commit 6a080645557627e0321e975f0333135c04aa6821 -Author: Jens Georg -Date: Sat Oct 21 09:50:48 2017 +0200 - - Add SVG version of trash_process.png - -A help/C/figures/trash_process.svg - -commit 3f6b526aa193c5f059e4fbb4399f454683eb9b9d -Author: Isaac F. Ferreira Filho -Date: Sat Oct 7 07:58:07 2017 +0000 - - Update Brazilian Portuguese translation - -M po/pt_BR.po - -commit 9aba7a4aa713ca135502e29c1126bce1aa5e21bf -Author: Kukuh Syafaat -Date: Wed Oct 4 12:44:46 2017 +0000 - - Update Indonesian translation - -M po/id.po - -commit 53924d1e7f8db3f1b462e1486cb10bc288568b42 -Author: Gert -Date: Tue Oct 3 20:45:00 2017 +0000 - - Speed up event creation - - Instead of switching to the event while populating it, first populate - it, then switch to it. This avoids triggering a redraw each time - a photo - is added to the event. - - https://bugzilla.gnome.org/show_bug.cgi?id=787400 - -M src/Commands.vala - -commit 170a14e84dd80a8465b4af81d09b7e5bf42cb72f -Author: Jens Georg -Date: Wed Oct 4 10:48:44 2017 +0200 - - Fix missing icon of start-up dialog - -A icons/shotwell.svg -M org.gnome.Shotwell.gresource.xml - -commit 67d3081eb291547150dac756f6b2a00c1add9531 -Author: stefan -Date: Wed Aug 30 21:11:13 2017 +0200 - - Fix assertion on removing photo from last import - - The state of raw development does not affect filtering - anymore. Filtering - photos shows: JPEG, RAW only and RAW+JPEG Filtering RAW shows: - RAW only - and RAW+JPEG - - https://bugzilla.gnome.org/show_bug.cgi?id=719142 - -M src/MediaViewTracker.vala -M src/SearchFilter.vala - -commit d0617ef1d1fe2a30882821cd64e5be4f2a7dbe1d -Author: Jeremy Bicha -Date: Tue Oct 3 09:21:48 2017 -0400 - - Fix typo in Indonesian translation - -M po/id.po - -commit 3d7852010cee16d24368f0889926646fcc7681b3 -Author: Mario Blättermann -Date: Mon Oct 2 10:25:06 2017 +0000 - - Update German translation - -M help/de/de.po - -commit 2563bf16ef71f84bc1aa7bcf18e4e642321b1271 -Author: Mario Blättermann -Date: Mon Oct 2 10:18:41 2017 +0000 - - Update German translation - - (cherry picked from commit 6bb7858c26260415155cc40ea003a88cef568ed6) - -M help/de/de.po - -commit f784f74b88f6fc039f4ab07f22bbcb40811d6635 -Author: Mario Blättermann -Date: Mon Oct 2 09:19:40 2017 +0000 - - Update German translation - -M po/de.po - -commit 377816708c7213259802451724b1fd0fd1da72fc -Author: Marek Cernocky -Date: Sun Oct 1 09:55:35 2017 +0200 - - Updated Czech translation - -M po/cs.po - -commit fd2c38b47811ca859d541dc35462678b3f7e677c -Author: Anders Jonsson -Date: Thu Sep 28 20:48:42 2017 +0000 - - Update Swedish translation - -M help/sv/sv.po - -commit f4867f928060eb442a07cfa391e17d218af6eff3 -Author: Piotr Drąg -Date: Thu Sep 28 15:19:30 2017 +0200 - - Update Polish translation - -M po/pl.po - -commit f0cc8ab7929242faa58f6aa69b7a123bec692f09 -Author: Piotr Drąg -Date: Thu Sep 28 14:21:27 2017 +0200 - - Mark missing strings for translation - - Unfortunately, Glade suffers from - https://bugzilla.gnome.org/show_bug.cgi?id=782753 - -M ui/preferences_dialog.ui - -commit 9de0e2d1787986f0f43c49deb90632fb8272974a -Author: Marek Cernocky -Date: Mon Sep 25 18:58:26 2017 +0200 - - Updated Czech translation - -M help/cs/cs.po - -commit 0c9344dd9b5f1135728710358eea5d2869a59a14 -Author: Andre Klapper -Date: Mon Sep 25 18:11:43 2017 +0200 - - Put fallback text into

so yelp-check validates - -M help/C/organize-remove.page - -commit 472b6b24c16547bbe422e35d88ac25324a6d4227 -Author: Andre Klapper -Date: Mon Sep 25 18:10:10 2017 +0200 - - Remove unsupported link parameter from s so yelp-check validates - -M help/C/formats.page - -commit a08cf40434fc65d697e3f1a05bb44ad7f563f348 -Author: Andre Klapper -Date: Mon Sep 25 18:08:33 2017 +0200 - - Add missing id parameters to

s so yelp-check validates - -M help/C/edit-adjustments.page -M help/C/edit-crop.page -M help/C/index.page -M help/C/organize-event.page -M help/C/organize-flag.page -M help/C/view-displaying.page - -commit cacc93cf7f5a374f35d88689a021219090c6b0fb -Author: Andre Klapper -Date: Sun Sep 24 23:50:03 2017 +0200 - - de: Fix a typo - -M help/de/de.po - -commit bcbd455f4da6917efa10086d68f17f390974b9d2 -Author: Jens Georg -Date: Sat Sep 23 13:17:49 2017 +0200 - - Remove locale-dependent filter short-cuts - - They did not work after the GtkAction removal anyway and are redundant - by the search bar action accellerators which do it in a more - language-portable way - -M src/MediaPage.vala - -commit e7fbd65ec55e2c419c2b965baaf1a2f66ec99135 -Author: Jens Georg -Date: Sat Sep 23 11:43:04 2017 +0200 - - Remove obsolete action - -M src/MediaPage.vala - -commit 3929fd76688de8a5fcb6951504c26d133d735937 -Author: Jens Georg -Date: Sat Sep 23 08:05:29 2017 +0200 - - Fix criticals on right-click - - Events etc. don't have a context menu so unconditionally trying to add - one causes criticals. - -M src/Page.vala - -commit 5b2a70d25718bdc5b4f5056cc501b9a0155d7a13 -Author: Jens Georg -Date: Fri Sep 22 22:55:42 2017 +0200 - - Remove useless submenu on saved search context - - Signed-off-by: Jens Georg - -M ui/savedsearch.ui - -commit f8d28561a4f4f1fff263dee71c354105852ff1f2 -Author: Jens Georg -Date: Fri Sep 22 22:26:10 2017 +0200 - - Remove Rajce and Yandex no longer build by default - - Both are not working any longer - -M configure.ac -M meson_options.txt - -commit 6af0385194fc91db3bf07c673bc18ee7151c141d -Author: Mario Blättermann -Date: Wed Sep 20 19:44:21 2017 +0200 - - Added image for doc translation - -A help/de/figures/trash_process.png - -commit b1347a13e68da0e4dbbcaa2f7d282bb7798bbdd9 -Author: Jens Georg -Date: Tue Sep 19 22:35:01 2017 +0200 - - Fix missing event pictures - - The large thumbnails are not re-generated when accessing the event - only; - to work-around this, do not bail out but use the pixbuf and - schedule the - thumbnail generation in background for the next start-up. - - https://bugzilla.gnome.org/show_bug.cgi?id=748666 - -M src/events/EventDirectoryItem.vala - -commit 3b42439efa04bfa63d0a3c5d00a30cb09948f5b1 -Author: Jens Georg -Date: Sat Sep 16 09:13:39 2017 +0200 - - Do not filter out application/x-extension-mp4 from VideoSupport - - https://bugzilla.gnome.org/show_bug.cgi?id=773206 - -M src/VideoSupport.vala - -commit 7ac90f5fef90610493775475ff08a01ba58b61d2 -Author: Balázs Úr -Date: Sun Sep 10 18:15:02 2017 +0000 - - Update Hungarian translation - -M po/hu.po - -commit 31edc3cbe09bccae50d6237c85f7f7d518f583fe -Author: Jordi Mas -Date: Sun Sep 10 09:26:35 2017 +0200 - - Fixes to Catalan translation - -M po/ca.po - -commit dcd71fed6848ce8f6d3422f429bd2bb00616d2f2 -Author: Peter Seiderer -Date: Sun Feb 5 00:08:00 2012 +0000 - - Remove postfix trimming of thumbs on Canon files - - Apparently, exiv2 now also gets them out of the images, breaking the - duplicate detection (for Canon cameras) - - https://bugzilla.gnome.org/show_bug.cgi?id=717735 - -M src/camera/GPhoto.vala - -commit 1d936a21f714365943ba2ad2e771be8e77edd1bb -Author: Mario Blättermann -Date: Thu Sep 7 18:18:02 2017 +0000 - - Update German translation - -M po/de.po - -commit c5dbf59dc04510728ac2210dbc2903e381033509 -Author: Jordi Mas -Date: Thu Sep 7 16:29:35 2017 +0200 - - Update Catalan translation - -M po/ca.po - -commit 8cf927172ed834afec73923afcb631c6bae00a0e -Author: Jiri Grönroos -Date: Thu Sep 7 12:12:44 2017 +0000 - - Update Finnish translation - -M po/fi.po - -commit 1601862abd28cf70a77306716142460a3968dbc8 -Author: Andika Triwidada -Date: Fri Sep 1 08:38:41 2017 +0000 - - Update Indonesian translation - -M po/id.po - -commit 26712a040700947d1a22055fab9e7c07fba54da1 -Author: Cheng-Chia Tseng -Date: Thu Aug 31 04:27:57 2017 +0000 - - Update Chinese (Taiwan) translation - -M po/zh_TW.po - -commit 2e028c96365f0a9087d76994648c539d9e3dd3a4 -Author: Marek Cernocky -Date: Thu Aug 31 03:17:19 2017 +0200 - - Updated Czech translation - -M help/cs/cs.po - -commit 77e1f7dc5c9ebf14269cbc3230b58f2959cbf9d5 -Author: Cheng-Chia Tseng -Date: Wed Aug 30 13:54:53 2017 +0000 - - Update Chinese (Taiwan) translation - -M po/zh_TW.po - -commit 012a1caeef173f2adbe2cf0e20c709d895858ace -Author: Jens Georg -Date: Sat Aug 26 15:37:12 2017 +0200 - - When Trash is not available, also remove RAW file - - https://bugzilla.gnome.org/show_bug.cgi?id=719186 - -M src/MediaDataRepresentation.vala - -commit 11f5efeb7e95bdac202242edd8d121a2c2087225 -Author: Marek Cernocky -Date: Mon Aug 28 15:46:07 2017 +0200 - - Updated Czech translation - -M po/cs.po - -commit d7264c3d9779ba4604e4f7d82d3005380d7ac3df -Author: Piotr Drąg -Date: Sun Aug 27 17:22:48 2017 +0200 - - Update Polish translation - -M po/pl.po - -commit b997726a779013fa0f304f39081674dad7e5f964 -Author: Piotr Drąg -Date: Sat Aug 26 16:00:32 2017 +0200 - - Use Unicode apostrophes in new tooltips - - See https://developer.gnome.org/hig/stable/typography.html - - https://bugzilla.gnome.org/show_bug.cgi?id=772339 - -M src/folders/FoldersBranch.vala -M src/tags/TagsBranch.vala - -commit 61164195c49d04cb7cbdb05468af7b355b1dbd60 -Author: Jens Georg -Date: Sat Aug 26 14:26:24 2017 +0200 - - Fix top-level tooltips - -M src/camera/CameraBranch.vala -M src/events/EventsBranch.vala -M src/folders/FoldersBranch.vala -M src/library/LibraryBranch.vala -M src/searches/SearchesBranch.vala -M src/sidebar/common.vala -M src/tags/TagsBranch.vala - -commit bf19032a801520a7ba3048e473367306b6aca838 -Author: Anders Jonsson -Date: Fri Aug 25 18:59:45 2017 +0000 - - Update Swedish translation - -M help/sv/sv.po - -commit 4331130354a3ce887f679ce094b3b9d7723263da -Author: Marek Cernocky -Date: Fri Aug 25 18:29:38 2017 +0200 - - Updated Czech translation - -M po/cs.po - -commit 4df466a5b1d1e67ae23c7e11b7fea0cc4d21202c -Author: Piotr Drąg -Date: Fri Aug 25 03:05:05 2017 +0200 - - Update POTFILES.in and POTFILES.skip - -M po/POTFILES.in -M po/POTFILES.skip - -commit 11c2c85696b032edd8a47b4384e89b7e784900a9 -Author: Jens Georg -Date: Thu Aug 24 22:21:54 2017 +0200 - - Add more details to Mass storage cameras - - Get icon and description from associated GVolume for mass storage - cameras. This should make it easier to find the correct camera when - having connected more than one devices. - -M src/camera/CameraTable.vala -M src/sidebar/Tree.vala - -commit 62be9ebf6d2460facddd07532844d678ee7b5d53 -Author: Stefan Willinger -Date: Sun Aug 20 23:11:09 2017 +0200 - - Rename backing photo to lower case as well - - https://bugzilla.gnome.org/show_bug.cgi?id=777626 - -M src/LibraryFiles.vala -M src/photos/RawSupport.vala - -commit 1e502e42373c36c11711af6e3dfde378286c0f48 -Author: Jordi Mas -Date: Mon Aug 21 08:49:58 2017 +0200 - - Update Catalan translation - -M po/ca.po - -commit 272c5c12cc904a940aeec0387e6add75014169d8 -Author: Jens Georg -Date: Sun Aug 20 14:59:50 2017 +0200 - - Fix import progress when importing RAW files - -M src/BatchImport.vala - -commit 67b4d6ed0fba2f2cc891915d1afb84e8bd17acdf -Author: Jens Georg -Date: Sat Aug 19 10:29:30 2017 +0200 - - Keep RAW+JPEG association from CameraImport - - CameraImportJob will copy RAW and JPEG, pass only the raws down to the - batch importer. - - The batch importer then won't know about the associated file, and - extract the embedded file (or worse, make a development) of the RAW - file, schedule thumbnailing for that. - - In the conclude step of the CameraImportJob, the files would be - associated, leading to the development being thrown away and run - another - thumbnailing job. - -M src/BatchImport.vala -M src/camera/ImportPage.vala - -commit b19769ed9b153b3aaf1b036bb6555682370f50a4 -Author: Thomas Moschny -Date: Sun Aug 13 09:47:00 2017 +0000 - - Fix rules for appstream files - - The appdata file is neither created nor installed, as the rules in - @APPSTREAM_XML_RULES@ expect files to be listed in $(appstream_XML) - rather than in $(appdata_XML). - - https://bugzilla.gnome.org/show_bug.cgi?id=784883 - -M misc/Makefile.am - -commit 1624d8179e70a7ee1d3bd325a09edbe90bf96d5c -Author: Мирослав Николић -Date: Sun Aug 13 15:17:01 2017 +0200 - - Updated Serbian translation - -M po/sr.po -M po/sr@latin.po - -commit 8f55736280edcd5dc6fa24f86e87ed15cb660e41 -Author: Piotr Drąg -Date: Sat Aug 12 02:22:34 2017 +0200 - - Update Polish translation - -M po/pl.po - -commit 208bc88a17d7524905cb8bf465d9f5ba64e073bd -Author: Jens Georg -Date: Thu Aug 10 19:18:10 2017 +0200 - - Do not close FileDescriptor passed to CameraFile - - CameraFile takes ownership of the file descriptor and closes it, so we - end up closing random file descriptors. - - Big thanks to Stefan for debugging this - - https://bugzilla.gnome.org/show_bug.cgi?id=785503 - -M src/camera/GPhoto.vala - -commit 1841a168747cbc3802d544b7f3652753e0407b57 -Author: Marcos Lans -Date: Mon Aug 7 07:52:44 2017 +0000 - - Update Galician translation - -M po/gl.po - -commit 793f8e20be31b92c07ab244bc84c13458546724a -Author: Jens Georg -Date: Sun Aug 6 19:33:23 2017 +0200 - - Reset menubar injection state after re-loading ui - - Fixes menu items disappearing from Photos menu - - https://bugzilla.gnome.org/show_bug.cgi?id=785196 - -M src/Page.vala - -commit 79330cb40420c100d2a3f1baf0a5cb5ad4fad274 -Author: Anders Jonsson -Date: Thu Aug 3 02:57:13 2017 +0200 - - help: Fix wording in string - - https://bugzilla.gnome.org/show_bug.cgi?id=785711 - -M help/C/import-file.page - -commit ad42f642c4f3dcfe6be94f8c01d341b15a0db24e -Author: Jens Georg -Date: Thu Aug 3 10:11:33 2017 +0200 - - Remove deprecated "find" icon - - https://bugzilla.gnome.org/show_bug.cgi?id=785761 - -M src/SearchFilter.vala -M src/searches/SearchesBranch.vala - -commit ce27ab01d7a019444263341b84bba3c474ad4df6 -Author: Jens Georg -Date: Mon Jul 17 20:40:53 2017 +0200 - - Sort camera file list before matching - - RAW + JPEG file matching uses a sliding window of two. Sometimes it - seems to not being able to find the matching JPEG even if it is there. - Sort the list to increase the chance of the files matching up. - -M src/camera/ImportPage.vala - -commit c5925c803e8df19a52039e77c66efa679d3c63df -Author: Mario Blättermann -Date: Fri Aug 4 20:33:46 2017 +0000 - - Update German translation - - (cherry picked from commit 000e9a5f5da10f87b739b35901842f0a261fd240) - -M help/de/de.po - -commit 13f0c2ee09c0d02678d703bceaee22130a69d8fb -Author: Balázs Meskó -Date: Wed Aug 2 19:44:27 2017 +0000 - - Update Hungarian translation - -M po/hu.po - -commit 64704a06dd4a91c401cc9efe3ffa871e81ee8e01 -Author: Mario Blättermann -Date: Fri Jul 28 20:39:29 2017 +0000 - - Update German translation - -M po/de.po - -commit ca81bf374902c9a07e695d8cab97a2bfd45ea235 -Author: Brian Masney -Date: Wed Jul 12 19:29:12 2017 -0400 - - build: use APPSTREAM_XML instead of APPDATA_XML - - According to commit 8c0c9ec747bc in the appstream-glib project - (https://github.com/hughsie/appstream-glib), APPDATA_XML has been - deprecated and APPSTREAM_XML should be used insted. Fedora 26 - no longer ships with appdata-xml.m4 in the libappstream-glib-devel - package. This patch converts the build system to use APPSTREAM_XML. - - Signed-off-by: Brian Masney - - https://bugzilla.gnome.org/show_bug.cgi?id=784883 - -M configure.ac -M misc/Makefile.am - -commit 8bd5dab147e7f31a7ffb53f009ebf0ad568bf8d7 -Author: Kukuh Syafaat -Date: Mon Jul 10 11:50:15 2017 +0000 - - Update Indonesian translation - -M po/id.po - -commit 8cf7a7a4743cbe2a7acfc71423acb81f7efd0f2e -Author: Jens Georg -Date: Sun Jul 9 22:19:36 2017 +0200 - - Do not endlessly create thumbs - - notify_altered("image", ... will trigger thumnail re-genration and in - consequence other events, and it does all of this twice. Otoh, the - thumbnail is already generated on inport. - -M src/BatchImport.vala -M src/Photo.vala - -commit 2ef1bfc0f98e2b35212777e83dbac157b133472e -Author: Jens Georg -Date: Sun Jul 9 23:36:53 2017 +0200 - - If Preview is JPEG, save as-is - - Then there is no need to do a decode/encode - -M src/Photo.vala -M src/photos/JfifSupport.vala - -commit 3a0cd2e0e508700a2fb8752e4736dd7542f7bdea -Author: Jens Georg -Date: Sun Jul 9 23:32:36 2017 +0200 - - Add timing output for imports - -M src/BatchImport.vala - -commit b59db2dec66117b5b07345bb20b7c6d0d597d474 -Author: Jens Georg -Date: Sat Jul 8 10:33:15 2017 +0200 - - Remove dead code - -M src/SortedList.vala - -commit c2a42623d3b720c3bdfc037709f2b33e142479fd -Author: Jens Georg -Date: Sat Jul 8 09:10:26 2017 +0200 - - Remove obsolete external - - collate_key_for_filename() is bound since ages now - -M src/SortedList.vala -M src/Thumbnail.vala -M src/folders/FoldersBranch.vala - -commit 10f1cb78a3c9933cf8be56d6e71b2e4ae8086c73 -Author: Jens Georg -Date: Sat Jul 8 08:09:56 2017 +0200 - - Escape file names in wallpaper.xml - - https://bugzilla.gnome.org/show_bug.cgi?id=784661 - -M src/DesktopIntegration.vala - -commit 0caab9a44040a25a19b0b95e836969b8f3ada169 -Author: Jens Georg -Date: Tue Jul 4 20:57:18 2017 +0200 - - import: Hide file selector after clicking ok - -M src/library/LibraryWindow.vala - -commit 2a352e155ae614bbaf4d92087679ac877c72b344 -Author: Marek Černocký -Date: Sun Jun 25 23:09:38 2017 +0200 - - Updated Czech translation - -M help/cs/cs.po - -commit 79fa8ab407c91f7cf20f561cd18d641bd900eb82 -Author: Rafael Fontenelle -Date: Sun Jun 25 19:28:11 2017 +0000 - - Update Brazilian Portuguese translation - -M po/pt_BR.po - -commit f9c29c2fdc9ab145ade05e0f65d9fd1f9d90f4ba -Author: Jens Georg -Date: Sun Jun 25 18:27:27 2017 +0200 - - Fix accidential compile error in previous commit - -M src/LibraryFiles.vala - -commit 30392070469331dd4603b307adfa2e73b16d3f4a -Author: Jens Georg -Date: Sun Jun 25 16:56:43 2017 +0200 - - Fix tabs - -M src/LibraryFiles.vala - -commit 0aed7ef7bec2d9a360e0cd5cc33bf48b42be2232 -Author: Daniel Mustieles -Date: Sat Jun 24 17:03:18 2017 +0200 - - Updated Spanish translation - -M po/es.po - -commit def5569e2a7bed1e13efb17a06ba78c8adb4e79e -Author: Marek Černocký -Date: Sat Jun 24 10:41:28 2017 +0200 - - Updated Czech translation - -M po/cs.po - -commit b382a073126c661016963d724ac6770223049675 -Author: Jens Georg -Date: Fri Jun 23 23:58:12 2017 +0200 - - Re-use variable for toolbar decision - -M src/AppWindow.vala - -commit 594a2a590d2387a7a384a3124dff189f3e745c4e -Author: Jens Georg -Date: Fri Jun 23 23:54:26 2017 +0200 - - fullscreen: Hide toolbar if disabled in settings - - If the toolbar is disabled in settings, also start with it hidden in - fullscreen, unless it was pinned - - https://bugzilla.gnome.org/show_bug.cgi?id=741962 - -M src/AppWindow.vala - -commit a582f5a275932ea56df3da6d6a80e9cf744fed49 -Author: Jens Georg -Date: Thu Jun 22 11:56:55 2017 +0200 - - meson: Add shotwell-graphics-processor binary - -M src/meson.build - -commit 47f9273fb87d65f66002f659fca1632bf7c67ad4 -Author: Jens Georg -Date: Thu Jun 22 11:56:25 2017 +0200 - - meson: Only add unity as a dependency if found - -M meson.build -M src/meson.build - -commit af1125c277a37f6e76887f148d424be5f37310ea -Author: Jens Georg -Date: Wed Jun 21 19:49:54 2017 +0200 - - meson: Fix missing libm for transitions - - https://bugzilla.gnome.org/show_bug.cgi?id=783956 - -M plugins/shotwell-transitions/meson.build - -commit 96764807a5fb67f7a0e639c0313794e8fc4bbaa0 -Author: Jens Georg -Date: Wed Jun 21 19:34:53 2017 +0200 - - build: Fix missing files for dist tarball - -M Makefile.am -A apport/git.mk - -commit 3cf63a8b0366ca5ccfdeddcbc29be89407db92b6 -Author: Jens Georg -Date: Wed Jun 21 12:19:34 2017 +0200 - - meson: Add version to internal helper libs - -M plugins/authenticator/shotwell/meson.build -M plugins/meson.build - -commit f8a64f1adea2124e8e47107899a0141749f68ff7 -Author: Jordi Mas -Date: Mon Jun 19 22:08:19 2017 +0200 - - Fixes to Catalan translation - -M po/ca.po - -commit 685efd81061ff2428a0984e3fc0d80960ddc864f -Author: Jens Georg -Date: Mon Jun 19 18:42:33 2017 +0200 - - Prepare 0.27.0 - -M NEWS -M meson.build - -commit 85a0872e4a2def44dd3cc5ee046680d688899369 -Author: Jens Georg -Date: Mon Jun 19 21:09:22 2017 +0200 - - build: Dist new ui files - -M shotwell.am -M ui/Makefile.am - -commit 1f6956a247423442740e6fac1011b0512304fdaf -Author: Jens Georg -Date: Mon Jun 19 21:09:08 2017 +0200 - - build: Dist graphics processor helper files - -M pipeline.am - -commit dddab55309c29604d77fa944c1188d91c74d6881 -Author: Jens Georg -Date: Sun Jun 18 21:57:07 2017 +0200 - - Remove "sidebar" style class from treeview - - Fixes missing drop prelight - - https://bugzilla.gnome.org/show_bug.cgi?id=768938 - -M src/sidebar/Tree.vala - -commit d247268ad42de0f0e6d873f5476488a02ca6d456 -Author: Piotr Drąg -Date: Sun Jun 18 21:18:09 2017 +0200 - - Update Polish translation - -M po/pl.po - -commit 43c17c9eece5387d3cc5a332b2c7acdf9cc871e6 -Author: Jens Georg -Date: Sun Jun 18 13:40:46 2017 +0200 - - import: When receiving IO_USB_CLAIM error, retry - - It seems that this at least in GNOME will allow Shotwell to continue - to talk - to the camera without any scary dialog or user interaction. - - https://bugzilla.gnome.org/show_bug.cgi?id=716499 - -M src/camera/ImportPage.vala - -commit 7e03c54c67f4d791d2d94ec870adc436b62a6c41 -Author: Jens Georg -Date: Sun Jun 18 08:36:30 2017 +0200 - - Remove explicit memcopy in import - -M src/camera/GPhoto.vala -M src/camera/ImportPage.vala -M src/data_imports/DataImportSource.vala -M src/photos/PhotoMetadata.vala -M src/util/misc.vala - -commit f87e80255d0ff273536f5f78afcd34b4665ec7c9 -Author: Emin Tufan Çetin -Date: Wed Jun 7 12:18:28 2017 +0000 - - Update Turkish translation - -M po/tr.po - -commit 0b1ae0ea6a5552ef346878816926226458b065bf -Author: Jordi Mas -Date: Mon Jun 5 21:28:54 2017 +0200 - - Update Catalan translation - -M po/ca.po - -commit 59ef23afa1168593c01c30895b83ab782975f2c5 -Author: Piotr Drąg -Date: Sun Jun 4 10:25:56 2017 +0200 - - Update Polish translation - -M po/pl.po - -commit d3f4bd0ab9dcf3bb8c7f4d2aeac1bfba2825db98 -Author: Jens Georg -Date: Sat Jun 3 10:18:01 2017 +0200 - - Fix search path for local gsettings schema - -M misc/meson.build -M src/main.vala - -commit 3b010ca59f8930e5daec68858a521a3518028702 -Author: Jens Georg -Date: Sat Jun 3 13:27:17 2017 +0200 - - Use old-style file copy if library is on remote fs - - Especially on vboxfs backed bz NTFS we have an issue that the - hiddenfile/rename mechanism of GIO breaks - - https://bugzilla.gnome.org/show_bug.cgi?id=760868 - -M src/LibraryFiles.vala -M src/MediaDataRepresentation.vala -M src/main.vala - -commit d05ace2653227c7ba5b8b0804045ac5df2cfe678 -Author: Jens Georg -Date: Sat Jun 3 09:20:05 2017 +0200 - - debian: Depend on libexiv2 explicitly - -M debian/control - -commit 153f78055026d4435861691d24760eb89f7051fd -Author: Jens Georg -Date: Thu Jun 1 18:42:47 2017 +0200 - - Fix crash when no import plugin is enabled - - https://bugzilla.gnome.org/show_bug.cgi?id=783250 - -M src/data_imports/DataImportsUI.vala - -commit 101c88652c7a4e4d85daa65eff54c399f6048b8c -Author: Jens Georg -Date: Wed May 31 19:35:35 2017 +0200 - - build: Dist meson files in automake tarball - -M Makefile.am - -commit d44130a4cf9de5a24719c404588829bd60ba5f57 -Author: Jens Georg -Date: Wed May 31 19:09:12 2017 +0200 - - Add missing build files - -M Makefile.am -A apport/Makefile.am -A apport/meson.build - -commit c9f414307468dd3f9706b4702646cb7ed162b06f -Author: Jens Georg -Date: Tue May 30 22:15:13 2017 +0200 - - Add option to install apport hook - - https://bugzilla.gnome.org/show_bug.cgi?id=716547 - -M Makefile.am -M configure.ac -M meson.build -M meson_options.txt - -commit b7291a262ea5755676f8395c2e53b3bc9ca32332 -Author: Jens Georg -Date: Tue May 30 22:13:20 2017 +0200 - - Remove f-spot help from meson build - -M help/meson.build - -commit 036f831a14d74160741b7c6d8e404d0be63e8e1d -Author: Jens Georg -Date: Tue May 30 18:28:48 2017 +0200 - - Fix typo in fullscreen option - - https://bugzilla.gnome.org/show_bug.cgi?id=716830 - -M src/main.vala - -commit 802c4a92c83afc3380286731b1faf8e35aeae8f4 -Author: Jens Georg -Date: Tue May 30 18:27:22 2017 +0200 - - Fix automake build - -M help/Makefile.am - -commit 0f8afb46d62765181bb2a2c6ab16ec8a55761dce -Author: Jens Georg -Date: Mon May 29 22:55:13 2017 +0200 - - doc: Add --fullscreen option to manpage - -M help/shotwell.1 - -commit b958b2ee0410987589392dc2ed9fa5c340ae9167 -Author: Jens Georg -Date: Mon May 29 22:42:27 2017 +0200 - - direct: Add option to start fullscreen - - https://bugzilla.gnome.org/show_bug.cgi?id=716830 - -M src/main.vala - -commit c6f5114554725e12e7c0e9c3384bdc8eb376b40d -Author: Jens Georg -Date: Mon May 29 22:19:45 2017 +0200 - - Remove F-Sport related things from help - -D help/C/import-f-spot.page -M help/C/import-file.page -M help/C/view-sidebar.page - -commit 82cd4ca2cb1cd6f5e382d9073a3015f4d2287f12 -Author: Jens Georg -Date: Mon May 29 22:07:42 2017 +0200 - - import: Add option to not recurse into subfolders - - https://bugzilla.gnome.org/show_bug.cgi?id=716448 - -M help/C/import-file.page -M src/BatchImport.vala -M src/LibraryMonitor.vala -M src/library/LibraryWindow.vala -M src/main.vala - -commit 877d86b16ddc35f26ddfcfecc50728c8a8e809f5 -Author: Jens Georg -Date: Mon May 29 20:02:26 2017 +0200 - - Fix build - -M Makefile.am -M src/CollectionPage.vala - -commit 6a6bc91e40b9bfee4d5e9cba1860944123e400b6 -Author: Piotr Drąg -Date: Sun May 28 17:18:54 2017 +0200 - - Update Polish translation - -M po/pl.po - -commit 62c96ed53845943e629905ecc1e91fc00705dd44 -Author: Jens Georg -Date: Sun May 28 00:29:24 2017 +0200 - - Use ngettext for export dialog title - -M src/CollectionPage.vala - -commit 65239afd1b8efecd6045e84f1c67ada0b2fb78c3 -Author: Jens Georg -Date: Sat May 27 23:50:38 2017 +0200 - - build: Expose varios code options through meson config - -M meson.build -M meson_options.txt - -commit 5347425b43784ba85152a642cef3db50a788e689 -Author: Jens Georg -Date: Fri May 26 09:50:26 2017 +0200 - - Fix running from meson build dir - -M src/AppDirs.vala -M src/util/system.vala - -commit fd478255fa3749d8e1dc236c33c4880ff19ce96b -Author: Piotr Drąg -Date: Thu May 25 15:49:34 2017 +0200 - - Update POTFILES.skip - -M po/POTFILES.skip - -commit 97194a9c3dab535cd1a79f6a080fe0c7602e16ed -Author: Jens Georg -Date: Thu May 25 10:07:02 2017 +0200 - - build: meson: Add back build options - -A git-hash -M meson.build -A meson_options.txt -M plugins/meson.build -M src/meson.build -D vapi/unity.deps -D vapi/unity.vapi - -commit e1420e580eff4f782115a48f71c474cd15e0f1ff -Author: Jens Georg -Date: Thu May 25 09:35:37 2017 +0200 - - build: Set meson buildtype to debugoptimized - - Otherwise the image manipulation algorithms get really slow - -M meson.build - -commit b77a0711c8a7a590b697bfd1e8403a966e564da0 -Author: Jens Georg -Date: Mon May 8 19:45:39 2017 +0200 - - build: Add meson support - -A app-icons/meson.build -A help/meson.build -A meson.build -A misc/meson.build -A plugins/authenticator/meson.build -A plugins/authenticator/shotwell/meson.build -A plugins/common/meson.build -A plugins/meson.build -A plugins/shotwell-publishing-extras/meson.build -A plugins/shotwell-publishing/meson.build -A plugins/shotwell-transitions/meson.build -A po/meson.build -A settings-migrator/meson.build -A src/meson.build -A src/plugins/meson.build -A thumbnailer/meson.build - -commit 2b5a2e7c5e58baccce32a42a6ec881af1464ebe5 -Author: Jens Georg -Date: Thu May 25 08:34:07 2017 +0200 - - build: Remove unnecessary desktop file processing - -M misc/Makefile.am -R100 misc/shotwell-viewer.desktop.in.in -misc/shotwell-viewer.desktop.in -R100 misc/shotwell.desktop.in.in misc/shotwell.desktop.in -M po/POTFILES.in - -commit f2bf2893256cf88f0b8f44b917c59ed85038f4f3 -Author: Jens Georg -Date: Wed May 24 08:00:24 2017 +0200 - - build: Prepare for meson - -M po/POTFILES.in -M shotwell.am -R100 src/camera/Branch.vala src/camera/CameraBranch.vala -R100 src/events/Branch.vala src/events/EventsBranch.vala -R100 src/folders/Branch.vala src/folders/FoldersBranch.vala -R100 src/folders/Page.vala src/folders/FoldersPage.vala -R100 src/library/Branch.vala src/library/LibraryBranch.vala -R100 src/searches/Branch.vala src/searches/SearchesBranch.vala -R100 src/tags/Branch.vala src/tags/TagsBranch.vala - -commit e6ffdef23a0a93d2e658366b4902e0e864b60967 -Author: Jens Georg -Date: Thu May 18 22:25:15 2017 +0200 - - gphoto: Don't copy buffer when creating input stream from CameraFile - -M src/camera/GPhoto.vala - -commit 30bc836cdaf9416bde793643d3d5c549aa638a35 -Author: Jens Georg -Date: Thu May 18 19:48:20 2017 +0200 - - metadata: Save one memcpy when generating the md5s - -M src/BatchImport.vala -M src/camera/ImportPage.vala -M src/photos/GdkSupport.vala -M src/photos/PhotoMetadata.vala -M src/photos/RawSupport.vala - -commit 60331744c4c9a5afd7f71ac1f13a57c4d3f18e73 -Author: Mario Blättermann -Date: Sun May 14 19:23:32 2017 +0000 - - Update German translation - -M po/de.po - -commit 2916157ce111bc0b7485b83fdd3cf36b0fc748f3 -Author: Piotr Drąg -Date: Sun May 14 15:20:07 2017 +0200 - - Update Polish translation - -M po/pl.po - -commit 7e3a8ca1edc829b1247557964cb2f3b01eb4fea7 -Author: Jeremy Bicha -Date: Thu Apr 20 21:35:08 2017 -0400 - - Capitalize From and With consistently - - https://developer.gnome.org/hig/stable/writing-style.html#capitalization - - https://bugzilla.gnome.org/show_bug.cgi?id=781567 - -M ui/collection.ui -M ui/event.ui -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/media.ui -M ui/offline.ui -M ui/photo.ui -M ui/photo_context.ui -M ui/tags.ui -M ui/trash.ui - -commit e00379b5545254bc197a9d42946d1dd9ddfc54f7 -Author: Jens Georg -Date: Mon May 1 18:29:34 2017 +0200 - - Do not strip newlines from comments on write-back - - Stripping newlines makes sense for titles etc, but it makes sense - to keep them - for comments. - - https://bugzilla.gnome.org/show_bug.cgi?id=781897 - -M src/photos/PhotoMetadata.vala - -commit bcb05381f57e3b452800aab18bc65ed49105750b -Author: Claude Paroz -Date: Thu May 4 22:09:26 2017 +0200 - - Updated French translation - - Kindly reviewed by Julien Hardelin. - -M po/fr.po - -commit b8056c5d25b904ac6397580ff5a9bbc86b30a464 -Author: Piotr Drąg -Date: Mon May 1 20:34:05 2017 +0200 - - Update POTFILES.in and POTFILES.skip - -M po/POTFILES.in -M po/POTFILES.skip - -commit 6c78096023dcf16771fcb2261fcdea60b357a1b6 -Author: Jordi Mas -Date: Mon May 1 19:40:02 2017 +0200 - - Fixes to Catalan translation - -M po/ca.po - -commit 5b7a8754849ca8cd366508ed724f9b8e407e2fe7 -Author: Jens Georg -Date: Mon May 1 16:51:16 2017 +0200 - - Revert accidental dependency change - -M configure.ac - -commit 830f041bbec1d45844917bba65243826f33a46d6 -Author: Jens Georg -Date: Sat Apr 22 23:59:58 2017 +0200 - - Move Tumblr connector to standard publishing plugins - - https://bugzilla.gnome.org/show_bug.cgi?id=719020 - -M -plugins/shotwell-publishing-extras/org.gnome.Shotwell.Publishing.Extras.gresource.xml -M plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala -R097 plugins/shotwell-publishing-extras/TumblrPublishing.vala -plugins/shotwell-publishing/TumblrPublishing.vala -M -plugins/shotwell-publishing/org.gnome.Shotwell.Publishing.gresource.xml -M plugins/shotwell-publishing/shotwell-publishing.vala -R100 plugins/shotwell-publishing-extras/tumblr.png -plugins/shotwell-publishing/tumblr.png -R100 plugins/shotwell-publishing-extras/tumblr_authentication_pane.ui -plugins/shotwell-publishing/tumblr_authentication_pane.ui -R100 -plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.ui -plugins/shotwell-publishing/tumblr_publishing_options_pane.ui -M publish-extra.am -M publish.am - -commit 9db1e4db604a2e5791806d5c125a80779dbfa1ad -Author: Jens Georg -Date: Sat Apr 22 09:30:54 2017 +0200 - - Fix header bar for preferences dialog - -M src/Dialogs.vala - -commit 0c99adc7513bf07536ab2bf75dba2cab60217d9c -Author: Enrico Nicoletto -Date: Sun Apr 30 19:13:37 2017 +0000 - - Update Brazilian Portuguese translation - -M po/pt_BR.po - -commit 4c6cb058290bdd399a95b0b8c0b7db9d14ac293c -Author: Andika Triwidada -Date: Sun Apr 30 10:10:59 2017 +0000 - - Update Indonesian translation - -M po/id.po - -commit 683e2285ee73b71e96b3d652d889c593682de6ca -Author: Andika Triwidada -Date: Sun Apr 30 10:04:31 2017 +0000 - - Update Indonesian translation - - (cherry picked from commit 0c23fdd826e9330c254b2b5293c1458980e3a91d) - -M po/id.po - -commit c5d7f1931c8b464398dc1d8b2144ad095dfeeba8 -Author: Andika Triwidada -Date: Sat Apr 29 10:59:45 2017 +0000 - - Update Indonesian translation - - (cherry picked from commit 85d55e4b6b68aa02dff4da7f0a3081f9c82687a4) - -M po/id.po - -commit 752823691ef7d5c9154c596e5d55cda2789af63b -Author: Jordi Mas -Date: Fri Apr 28 19:35:41 2017 +0200 - - Fix to Catalan translation - -M po/ca.po - -commit 32c49a8397078538924fbe8141b4c5f4b421c630 -Author: Piotr Drąg -Date: Thu Apr 27 17:43:56 2017 +0200 - - Update po/Makevars - -M po/Makevars - -commit 8d412ad1f727085af39d979834398ca610837933 -Author: Jordi Mas -Date: Wed Apr 26 20:22:53 2017 +0200 - - Update Catalan translation - -M po/ca.po - -commit 09c7bb554e81e131ab8fd6f06eec73472f711ff9 -Author: Piotr Drąg -Date: Sun Apr 23 20:25:18 2017 +0200 - - Update Polish translation - -M po/pl.po - -commit a001b96928f2c789a93766ada3a24d85b21f0a14 -Author: Jens Georg -Date: Sat Apr 22 08:47:13 2017 +0200 - - Paint transparent background on thumbnails - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=716708 - -M src/CheckerboardLayout.vala - -commit f02f5c4560310ad96ca277101a5150c4445bd4e8 -Author: Jens Georg -Date: Sat Apr 22 00:56:01 2017 +0200 - - Add transparancy settings to preferences - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=716708 - -M src/Dialogs.vala -M ui/preferences_dialog.ui - -commit e3f1b4360a2085559b4479f02068ce95aed1fe6c -Author: Jens Georg -Date: Fri Apr 21 23:42:31 2017 +0200 - - Add signals for transparent color change - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=716708 - -M src/Page.vala -M src/config/Config.vala -M src/config/ConfigurationInterfaces.vala -M src/util/image.vala - -commit 6e9ea5fc8e72faf857e48866cddcf128c9f1bbad -Author: Jens Georg -Date: Fri Apr 21 22:51:52 2017 +0200 - - Add gsettings for transparency background - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=716708 - -M misc/org.yorba.shotwell.gschema.xml -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala -M src/util/image.vala - -commit 6d1786b36a93298a35e19d6dd3ec95569de9bd2a -Author: Jens Georg -Date: Thu Apr 20 21:44:50 2017 +0200 - - Paint image background for transparent images - - Fixes issue with images that have black foreground and transparent - background - by painting stippled background pattern. - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=716708 - -M configure.ac -M src/Page.vala -M src/editing_tools/EditingTools.vala -M src/editing_tools/StraightenTool.vala -M src/util/image.vala - -commit 0697b78bc32c409d49916d139e2cbb76e51da86f -Author: Jens Georg -Date: Sat Apr 22 08:47:43 2017 +0200 - - Remove deprecated functions - - Signed-off-by: Jens Georg - -M src/CollectionPage.vala -M src/MediaPage.vala -M src/Page.vala -M src/PhotoPage.vala -M src/camera/ImportPage.vala -M src/events/EventPage.vala -M src/events/EventsDirectoryPage.vala -M src/library/TrashPage.vala - -commit 171416306165013e664d66c141e1f8551ac4935b -Author: Jens Georg -Date: Mon Apr 17 08:40:16 2017 +0200 - - Fix warning messages on compile - - "You should give exactly one file name" - - Caused by shotwell.am passing too many and the authenticator - passing not - enough - - Signed-off-by: Jens Georg - -M authenticator.am -M shotwell.am - -commit b138c780f4f9412685e455d678516f5e5f292d43 -Author: Jens Georg -Date: Mon Apr 17 08:04:42 2017 +0200 - - Use nice 19 for video thumbnailer - - Signed-off-by: Jens Georg - -M thumbnailer.am -M thumbnailer/shotwell-video-thumbnailer.vala - -commit 6fb50b78c45c1a48f048b2f8ebf708672376c4ad -Author: Jens Georg -Date: Mon Apr 17 08:03:48 2017 +0200 - - Update vaapi blacklisting - - Signed-off-by: Jens Georg - -M src/VideoSupport.vala -M thumbnailer/shotwell-video-thumbnailer.vala - -commit d03303ec059f086efb7773a04e0ada773dca0334 -Author: Daniel Mustieles -Date: Tue Apr 18 10:17:32 2017 +0000 - - Update Spanish translation - - (cherry picked from commit ce5e8576276481f15b015017283afa8d0f119646) - -M po/es.po - -commit 37b02518d069239535d8eb0a58b96aa1a189bfd0 -Author: Dušan Kazik -Date: Sat Apr 15 17:29:54 2017 +0000 - - Update Slovak translation - - (cherry picked from commit 0860f8657c1bf69c04fc37bac0901faf57022ce6) - -M po/sk.po - -commit 91c097b16559417bc3fccbb680bfab1fdec41e9c -Author: Anders Jonsson -Date: Wed Apr 12 10:24:05 2017 +0000 - - Update Swedish translation - -M help/sv/sv.po - -commit f286c01022f4180122eff7c64df366d7302137fb -Author: Jens Georg -Date: Mon Apr 10 20:37:16 2017 +0200 - - Remove deprecated function in histogram - - Signed-off-by: Jens Georg - -M src/editing_tools/RGBHistogramManipulator.vala - -commit 9bd9ed556fc948592f60302d22a669ad60bb4905 -Author: Jens Georg -Date: Mon Apr 10 20:36:39 2017 +0200 - - Remove histogram frame - - Signed-off-by: Jens Georg - -M src/editing_tools/RGBHistogramManipulator.vala - -commit 312e837b1ced28f7157f47c893b1a756a4d60f51 -Author: Jens Georg -Date: Mon Apr 10 20:09:26 2017 +0200 - - Use Cairo to draw histogram overlays - - Signed-off-by: Jens Georg - -M src/editing_tools/RGBHistogramManipulator.vala - -commit 0eee31c74bbe387238c90a9168b4c6556418eed0 -Author: Jens Georg -Date: Mon Apr 10 18:51:36 2017 +0200 - - Remove non-functional slider - - Signed-off-by: Jens Georg - -M src/editing_tools/RGBHistogramManipulator.vala - -commit 79d4477f2b1c556f0655f0022ba9e895936d5723 -Author: Jens Georg -Date: Sun Apr 9 22:44:34 2017 +0200 - - Extract preferences ui - - Signed-off-by: Jens Georg - -M org.gnome.Shotwell.gresource.xml -M po/POTFILES.in -M src/Dialogs.vala -M src/library/LibraryWindow.vala -C064 ui/shotwell.ui ui/preferences_dialog.ui -M ui/shotwell.ui - -commit 5df63e07261b44e6fc1b5d046e16af0c451a0c0b -Author: Jens Georg -Date: Sun Apr 9 22:15:00 2017 +0200 - - docs: Link mentioned manpage directly - - Signed-off-by: Jens Georg - -M help/C/other-files.page - -commit 3c4c0b80836407e5d247d1970ebbfd2b1a76c671 -Author: Jens Georg -Date: Fri Apr 7 19:57:10 2017 +0200 - - Make slideshow settings templated - - Signed-off-by: Jens Georg - -M org.gnome.Shotwell.gresource.xml -M po/POTFILES.in -M src/SlideshowPage.vala -M src/config/Config.vala -M ui/shotwell.ui -A ui/slideshow_settings.ui - -commit 9bf27fc5ab7c0172cb28175cbc12f5fd7d3c6268 -Author: gogo -Date: Sun Apr 9 22:24:58 2017 +0000 - - Update Croatian translation - -M po/hr.po - -commit a3a1ae47e93a79b3bd768907eeb856a167a6378b -Author: gogo -Date: Sun Apr 9 22:23:13 2017 +0000 - - Update Croatian translation - -M po/hr.po - -commit 26a529f3df179fc0c92136b7c71bb44f61edd2db -Author: gogo -Date: Sun Apr 9 22:17:10 2017 +0000 - - Update Croatian translation - -M po/hr.po - -commit 3ec3b858eef79a06becc1df649bab881a41addb1 -Author: Jens Georg -Date: Fri Apr 7 16:09:18 2017 +0200 - - Remove custom complicated drag nub - - Signed-off-by: Jens Georg - -M icons/Makefile.am -D icons/drag_nub.png -M org.gnome.Shotwell.gresource.xml -M shotwell.am -R062 src/CustomComponents.vala -src/editing_tools/RGBHistogramManipulator.vala - -commit f6b5b243029e581b8f30d210f1ef58b3a410f364 -Author: Jens Georg -Date: Thu Apr 6 22:28:59 2017 +0200 - - Remove deprecated theme adaption - - Signed-off-by: Jens Georg - -M src/CustomComponents.vala - -commit d7743656fcfe515cf201f38a5e3fc6e115ae2456 -Author: Jens Georg -Date: Tue Apr 4 21:23:29 2017 +0200 - - Bump Gtk+ requirements to 3.18 - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=774650 - -M configure.ac -M ui/collection.ui -M ui/direct_context.ui -M ui/printing_widget.ui -M ui/set_background_dialog.ui -M ui/set_background_slideshow_dialog.ui -M ui/shotwell.ui - -commit 1a290847c83ee2900544fd9e9dc2717c894be77b -Author: Jens Georg -Date: Sun Apr 2 20:28:48 2017 +0200 - - Fix direct ui context menu - - Signed-off-by: Jens Georg - -M ui/direct_context.ui - -commit 21b38c07291a01984fe96d922a073d7156abef85 -Author: Piotr Drąg -Date: Mon Apr 3 10:26:01 2017 +0200 - - Update Polish translation - -M po/pl.po - -commit 218edbb1dbb230996ebbf8a3ea8f21125e6c14dd -Author: Jens Georg -Date: Sun Apr 2 19:52:30 2017 +0200 - - Fix browsing on gvfs filesystems - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=733652 - -M src/DirectoryMonitor.vala - -commit c7c30e248284f9acb358883d9b8cdd42c3a61233 -Author: Jens Georg -Date: Sun Apr 2 18:25:58 2017 +0200 - - Add missing Keyboard shortcuts - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=780811 - -M ui/collection.ui -M ui/event.ui -M ui/media.ui -M ui/photo.ui -M ui/photo_context.ui -M ui/tags.ui - -commit f8ee4c16b894e54af8e8b08d7b124442f7e1cb71 -Author: Jens Georg -Date: Sun Mar 26 18:50:22 2017 +0200 - - Do not use functions to convert RGB values - -M src/ColorTransformation.vala - -commit 95a3411c234cb234baf6214635eb2c58065aa44b -Author: Piotr Drąg -Date: Mon Mar 27 22:38:33 2017 +0200 - - Update Polish translation - -M po/pl.po - -commit b69329a1d90ecc1f6262a05bc1dbd8b6d5b89852 -Author: Rafael Fontenelle -Date: Sun Mar 26 21:34:10 2017 +0000 - - Update Brazilian Portuguese translation - -M po/pt_BR.po - -commit ba85d38da7caff4f9ae1a701cace4194716b80b7 -Author: Alan Mortensen -Date: Sat Mar 25 22:51:23 2017 +0100 - - Updated Danish translation - -M po/da.po - -commit e2bc1744ee2fe43ac85f9dce688666de3cde1a17 -Author: Piotr Drąg -Date: Sat Mar 25 22:24:24 2017 +0100 - - Update Polish translation - -M po/pl.po - -commit 1d6f2c52db76072472f349e6796c2ad801d2acb0 -Author: Jens Georg -Date: Fri Mar 24 22:53:11 2017 +0100 - - RGB value lookup - - Signed-off-by: Jens Georg - -M src/ColorTransformation.vala - -commit 6d7373884ba3a055449549c3b6958e60d4fbea13 -Author: Jens Georg -Date: Fri Mar 24 22:00:10 2017 +0100 - - Compose HSV transformations - - This is possible because all work on the light value only an use - remapping - tables, so we can just remap the tables from one operation into - the other - - Signed-off-by: Jens Georg - -M src/ColorTransformation.vala - -commit a050c2b72f51a14db508611dcd980f1a0543b773 -Author: Jens Georg -Date: Fri Mar 24 21:59:38 2017 +0100 - - Disable cast checks for ColorTransformation - - Signed-off-by: Jens Georg - -M pipeline.am - -commit 2f562c8f843236370918ee52e99b6ff7f7191696 -Author: Jens Georg -Date: Fri Mar 24 20:43:39 2017 +0100 - - transformer: Make it possible to set output format - - Signed-off-by: Jens Georg - -M src/graphics-processor.vala - -commit cc0c75f9dfb6df75576d45f67b8ad7624e630899 -Author: Jens Georg -Date: Fri Mar 24 20:36:20 2017 +0100 - - transformer: Add possibility to define options on commandline - - Signed-off-by: Jens Georg - -M src/graphics-processor.vala - -commit ca90c9242b7702f50c81a0f4dfd67ef90fe772c6 -Author: Jens Georg -Date: Fri Mar 24 20:24:22 2017 +0100 - - transformer: Implement auto-enhance - - Signed-off-by: Jens Georg - -M src/graphics-processor.vala - -commit 0b2e029eaee954b1ea9838920389ef99b643ea1f -Author: Jens Georg -Date: Fri Mar 24 20:24:05 2017 +0100 - - transformer: Check input parameters - - Signed-off-by: Jens Georg - -M src/graphics-processor.vala - -commit b28e4aec37478dcd48ce6c1768039ffe9dcee0f8 -Author: Jens Georg -Date: Wed Mar 15 21:24:44 2017 +0100 - - Disable asserts in color processing - - Signed-off-by: Jens Georg - -M pipeline.am - -commit a902a3031284c4ee6ff05990ba878cfd92432fe1 -Author: Jens Georg -Date: Tue Mar 14 23:43:22 2017 +0100 - - Do not use abstract functions to lookup constants - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=742563 - -M src/ColorTransformation.vala - -commit 0621137d56b664ac23438c2114bb6d20a3cbe3b7 -Author: Jens Georg -Date: Tue Mar 14 23:09:53 2017 +0100 - - Create commandline utility to apply transformations - - Signed-off-by: Jens Georg - -M Makefile.am -A pipeline.am -M shotwell.am -M src/ColorTransformation.vala -A src/graphics-processor.vala - -commit a94a5c66a1d00f669076aed4212c606d9848322a -Author: Jens Georg -Date: Fri Mar 24 19:47:52 2017 +0100 - - Disable minimize button on Unity - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=719240 - -M src/publishing/PublishingUI.vala - -commit 9dda9980371d47b8386a44bf9924b55f480487a7 -Author: Jens Georg -Date: Wed Mar 22 22:37:20 2017 +0100 - - Remove codename - - Signed-off-by: Jens Georg - -M src/AppWindow.vala - -commit 0cef3922b53c20291cbdb77d9a0054c6711c168e -Author: Jens Georg -Date: Wed Mar 22 00:03:01 2017 +0100 - - Post-release version bump - - Signed-off-by: Jens Georg - -M configure.ac - -commit 93eee7fe1f92acf08ad9220ef377a14eaeee65a6 -Author: Jens Georg -Date: Tue Mar 21 23:48:57 2017 +0100 - - Remove F-Spot support - - https://bugzilla.gnome.org/show_bug.cgi?id=773267 - https://bugzilla.gnome.org/show_bug.cgi?id=716599 - https://bugzilla.gnome.org/show_bug.cgi?id=717767 - https://bugzilla.gnome.org/show_bug.cgi?id=718809 - https://bugzilla.gnome.org/show_bug.cgi?id=718846 - https://bugzilla.gnome.org/show_bug.cgi?id=719031 - https://bugzilla.gnome.org/show_bug.cgi?id=752008 - -M Makefile.am -D import.am -D plugins/shotwell-data-imports/FSpotDatabase.vala -D plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala -D plugins/shotwell-data-imports/FSpotDatabaseTable.vala -D plugins/shotwell-data-imports/FSpotImporter.vala -D plugins/shotwell-data-imports/FSpotMetaTable.vala -D plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala -D plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala -D plugins/shotwell-data-imports/FSpotPhotosTable.vala -D plugins/shotwell-data-imports/FSpotRollsTable.vala -D plugins/shotwell-data-imports/FSpotTableBehavior.vala -D plugins/shotwell-data-imports/FSpotTagsTable.vala -D plugins/shotwell-data-imports/SqliteSupport.vala -D plugins/shotwell-data-imports/VersionNumber.vala -D plugins/shotwell-data-imports/f-spot-24.png -D -plugins/shotwell-data-imports/org.gnome.Shotwell.Imports.gresource.xml -D plugins/shotwell-data-imports/shotwell-data-imports.vala -M po/POTFILES.in -M po/POTFILES.skip - -commit b83a820fc0a3f85f22484f3275adf086ad8e2ca3 -Author: Jens Georg -Date: Mon Mar 20 13:41:40 2017 +0100 - - Prepare shotwell 0.26.0 - - Signed-off-by: Jens Georg - -M NEWS -M configure.ac -M debian/changelog -M icons/Makefile.am -A icons/about-aachen.jpg -M org.gnome.Shotwell.gresource.xml -M src/AppWindow.vala -M src/Resources.vala - -commit a54ff87cce112a075b91591f811ed605d1d84430 -Author: Baurzhan Muftakhidinov -Date: Fri Mar 17 08:39:22 2017 +0000 - - Update Kazakh translation - -M po/kk.po - -commit 683e673975674852828d17fc441a98e39a5c3bcd -Author: Jens Georg -Date: Thu Mar 16 20:51:15 2017 +0100 - - Fix some spelling errors in NEWS - - Signed-off-by: Jens Georg - -M NEWS - -commit 844c7b8357b4cb3790d9ffd3f8705f4e68d5b83c -Author: Jens Georg -Date: Thu Mar 16 20:44:50 2017 +0100 - - Update debian - - Signed-off-by: Jens Georg - -M debian/changelog - -commit 3194563aa794a1700b1ce44f6dbe7ce3b6c3db8d -Author: Piotr Drąg -Date: Thu Mar 16 19:02:54 2017 +0100 - - Fix a syntax error in Latvian help translation - - https://bugzilla.gnome.org/show_bug.cgi?id=780116 - -M help/lv/lv.po - -commit 5e304722ad2e0f4caec6f7ecea71717d4de9ef39 -Author: Mario Blättermann -Date: Thu Mar 16 10:20:58 2017 +0000 - - Update German translation - -M po/de.po - -commit b134f99e439b6e21f0423805d1bc23fab3a5877d -Author: Daniel Mustieles -Date: Thu Mar 16 07:15:37 2017 +0000 - - Update Spanish translation - -M help/es/es.po - -commit e621cec664dedd62b0bc294b0bdacb0f8953f2ff -Author: Jens Georg -Date: Wed Mar 15 22:32:08 2017 +0100 - - Use custom --enable-debug switch - - Signed-off-by: Jens Georg - -M configure.ac -D m4/ax_check_enable_debug.m4 - -commit fee674ea7a2bb57f11efa59bc04fe5b08332fb79 -Author: Balázs Úr -Date: Wed Mar 15 17:11:57 2017 +0000 - - Update Hungarian translation - -M po/hu.po - -commit 76e8aedfe6678c3b5a367d3d6f2ef0002fd33a95 -Author: gogo -Date: Wed Mar 15 11:10:14 2017 +0000 - - Update Croatian translation - -M po/hr.po - -commit e0f75e01c38c17d5bef5c04c95e2810b3aad0c59 -Author: Marek Černocký -Date: Wed Mar 15 00:56:16 2017 +0100 - - Updated Czech translation - -M po/cs.po - -commit b11f1b0fe626f50c5c715018d97bf7e438777fd7 -Author: Jens Georg -Date: Tue Mar 14 20:44:44 2017 +0100 - - Check for LC_MEASUREMENT in a more portable way - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=779844 - -M src/Resources.vala - -commit b9ac3e74033749b4864a59bb5b21b69dcc90678c -Author: Josef Andersson -Date: Tue Mar 14 13:43:49 2017 +0000 - - Update Swedish translation - -M po/sv.po - -commit 05caf49deda458a49f9cc21babca5c4fb2c4b580 -Author: Piotr Drąg -Date: Tue Mar 14 13:43:45 2017 +0100 - - Update Polish translation - -M po/pl.po - -commit 190a7e948d679344c00d46695623e770aae06549 -Author: Jens Georg -Date: Mon Mar 13 19:45:14 2017 +0100 - - Prepare 0.25.92 - - Signed-off-by: Jens Georg - -M NEWS -M configure.ac - -commit 3d71f6f68df5a0e965a395e501f22b816095f71e -Author: Jens Georg -Date: Mon Mar 13 20:57:57 2017 +0100 - - icons: Add missing files to tarball - - Signed-off-by: Jens Georg - -M icons/Makefile.am - -commit 5b2490388036237c82dd8837fc9267ea6b88ff57 -Author: Jens Georg -Date: Mon Mar 13 20:40:38 2017 +0100 - - Fix issue with non-distributed ui files - - Signed-off-by: Jens Georg - -M ui/Makefile.am - -commit eaf7e88240369f87defe0f7f8ba9fe9f468a256e -Author: Jens Georg -Date: Mon Mar 13 19:33:07 2017 +0100 - - printing: Use inch/cm depending on locale settings - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=779844 - -M misc/org.yorba.shotwell.gschema.xml -M src/Printing.vala -M src/Resources.vala -M src/config/ConfigurationInterfaces.vala - -commit 31ee9ff2bbad67918f14efaf52903c177ce35d2b -Author: Jens Georg -Date: Mon Mar 13 19:08:57 2017 +0100 - - build: Remove debugging leftover - - Signed-off-by: Jens Georg - -M configure.ac - -commit 9fa3ac748d330b21400d15d883d2437073f231f4 -Author: Anders Jonsson -Date: Mon Mar 13 16:54:15 2017 +0100 - - Unique summary for each transition - - https://bugzilla.gnome.org/show_bug.cgi?id=779989 - -M misc/org.yorba.shotwell.gschema.xml - -commit 379ea72c323f7aa84383991075cc492cc0e3833e -Author: Jens Georg -Date: Mon Mar 13 19:03:11 2017 +0100 - - Enable GExiv2 GLib logging handler - - Signed-off-by: Jens Georg - -M src/main.vala - -commit 2f9ad9731ca512f888e716c7cf5e70d701dbcc51 -Author: Jens Georg -Date: Mon Mar 13 19:02:29 2017 +0100 - - Prevent needless string copy - - Signed-off-by: Jens Georg - -M src/Printing.vala - -commit e031ef34362cb656b40ddf7ad36e192a5b59b50f -Author: Jens Georg -Date: Mon Mar 13 18:59:27 2017 +0100 - - build: Use proper argument for AX_IS_RELEASE - - Signed-off-by: Jens Georg - -M configure.ac - -commit 3db3d1f357a85000d3f5c1fc825d7466420c0d28 -Author: Baurzhan Muftakhidinov -Date: Sun Mar 12 04:10:09 2017 +0000 - - Update Kazakh translation - -M po/kk.po - -commit e5e018338eda698432673038da85686db293fd0c -Author: GNOME Translation Robot -Date: Fri Mar 10 10:19:47 2017 +0000 - - Update Scottish Gaelic translation - - (cherry picked from commit 9f41fcb9cc54734b4f02c0e5003f2b6309ece9e5) - -M po/gd.po - -commit e7376bf09a8811a2380b23ccd553972d46dd4cc5 -Author: Jens Georg -Date: Thu Mar 9 22:37:03 2017 +0100 - - viewer: Enable context menu - - Signed-off-by: Jens Georg - -M src/direct/DirectPhotoPage.vala - -commit eceb40c3578c9c795ad20612a0702024686eafba -Author: Jens Georg -Date: Thu Mar 9 21:24:28 2017 +0100 - - Use gp_file_new_from_fd for getting files - - Previously, we would use a memory file and load the whole file into - memory and - write it to disk afterwards. That was probably ok for (small) - photos, but - totally killed memory usage with videos. - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=732663 - -M src/camera/GPhoto.vala -M vapi/libgphoto2.vapi - -commit 764d257bd4e532b858c4338b6c52e69125505856 -Author: Jens Georg -Date: Wed Mar 8 22:01:06 2017 +0100 - - Allow CCW rotation by ctrl-Space on tool button - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=715501 - -M src/CollectionPage.vala -M src/PhotoPage.vala - -commit f24bd7af01eff3e3085134ba7de5a5e898e3fbbf -Author: Jens Georg -Date: Tue Mar 7 23:53:25 2017 +0100 - - piwigo: Add .jpg extension to file name - - Otherwise downloading files would cause the original RAW file name - created with JPEG contents - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=729091 - -M plugins/shotwell-publishing/PiwigoPublishing.vala - -commit 268e65fe6a1348f1bfcc702041048467b1f63d37 -Author: Jens Georg -Date: Tue Mar 7 22:40:30 2017 +0100 - - Speed-up autogen.sh - - Signed-off-by: Jens Georg - -M autogen.sh - -commit 8284f1a227050a99f0740222bacc0444d5859aa7 -Author: Jens Georg -Date: Tue Mar 7 22:31:58 2017 +0100 - - Simplify printing dialog a bit - - Signed-off-by: Jens Georg - -M src/Printing.vala -M ui/printing_widget.ui - -commit bd3ccefcd6d8066d47fd4f998436668913fcc096 -Author: Jens Georg -Date: Mon Mar 6 23:26:59 2017 +0100 - - Make custom printing widget a GtkTemplate - - Signed-off-by: Jens Georg - -M org.gnome.Shotwell.gresource.xml -M po/POTFILES.in -M src/Printing.vala -A ui/printing_widget.ui -M ui/shotwell.ui - -commit ece3fb96288db5ae7920417c99c02f7881a53b61 -Author: Gábor Kelemen -Date: Tue Mar 7 00:20:49 2017 +0000 - - Update Hungarian translation - -M po/hu.po - -commit de793a9b0af74c309486349395c8b9193043f87a -Author: Jens Georg -Date: Mon Mar 6 22:49:23 2017 +0100 - - Remove obsolete Glade helper - - Signed-off-by: Jens Georg - -D sw-glade -D ui/shotwell.xml - -commit 93ee36a52afe4a07b73ce499854aa3e8c10154d9 -Author: Jens Georg -Date: Mon Mar 6 22:15:54 2017 +0100 - - Move ui files into resources - - Signed-off-by: Jens Georg - -M org.gnome.Shotwell.gresource.xml -M src/AppWindow.vala -M src/Page.vala -M src/Resources.vala -M src/SearchFilter.vala -M src/searches/Branch.vala -M src/sidebar/Tree.vala -M src/tags/Branch.vala -M ui/Makefile.am - -commit 056b465182a2cc4310dc999bd9f30a791a66e224 -Author: Jens Georg -Date: Mon Mar 6 21:53:56 2017 +0100 - - Move icons into resource file - - Signed-off-by: Jens Georg - -M icons/Makefile.am -M org.gnome.Shotwell.gresource.xml -M src/AppDirs.vala -M src/Resources.vala -M src/editing_tools/EditingTools.vala -M src/main.vala - -commit 97c0e4f8829edb18c061fc7acd8fd30c5c5804f8 -Author: Jens Georg -Date: Mon Mar 6 21:52:39 2017 +0100 - - Fix compilation issue with no authenticators enabled - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/shotwell-publishing.vala - -commit 7ee7bbf9126faa3d49df74656843bc2602bfbf2c -Author: Мирослав Николић -Date: Sun Mar 5 20:58:03 2017 +0100 - - Updated Serbian translation - -M po/sr.po -M po/sr@latin.po - -commit 33f86a14c2e5e99465292c863f5e1f2ce74b6659 -Author: Jens Georg -Date: Sun Mar 5 20:24:08 2017 +0100 - - Remove obsolete top.ui - - Signed-off-by: Jens Georg - -M po/POTFILES.in -M ui/Makefile.am -D ui/top.ui - -commit 4b60125bfa77bbe725b7de598eea24a3d1e244a1 -Author: Mario Blättermann -Date: Sun Mar 5 12:40:28 2017 +0000 - - Update German translation - -M po/de.po - -commit 3d26c342a7e7aaf8e89c5ab4b695618a0f6ee1a7 -Author: Jens Georg -Date: Sat Mar 4 15:58:58 2017 +0100 - - Make it possible to disable individual publishers - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=775158 - -M configure.ac -M plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala -M plugins/shotwell-publishing/shotwell-publishing.vala -M publish-extra.am -M publish.am - -commit 13f8bd03ebb7883abe23917f1ee84ea618f924fe -Author: Jens Georg -Date: Sat Mar 4 11:51:50 2017 +0100 - - Temporarily remove goa and uoa from configure - - Signed-off-by: Jens Georg - -M configure.ac - -commit 954da8e7e7bf1430dd5b1ec6544745f96dd04ce9 -Author: Jens Georg -Date: Sat Mar 4 10:47:39 2017 +0100 - - Remove [Version] tag from gdata vapi - - Signed-off-by: Jens Georg - -M vapi/libgdata.vapi - -commit 2ca6abe3443a845a3bc6b1a8bbd71b48ed61ad5d -Author: Jens Georg -Date: Sat Mar 4 10:25:04 2017 +0100 - - Minor debian fixes - - Signed-off-by: Jens Georg - -M NEWS -M debian/changelog -M debian/control - -commit 8e539a21c46141aaa891057ce50fafaf6497b10a -Author: Jens Georg -Date: Sat Mar 4 09:43:23 2017 +0100 - - Remove web dependencies of core shotwell - - Only necessary for plugins or authenticators - - Signed-off-by: Jens Georg - -M configure.ac - -commit 0c383826ec9c45fcfb8e9d42b57b97eabce214b4 -Author: Jörg Frings-Fürst -Date: Sat Aug 20 18:29:03 2016 +0000 - - manpage: Remove wrong macro 'R' - - https://bugzilla.gnome.org/show_bug.cgi?id=779558 - -M help/shotwell.1 - -commit 83aa3870cae8d958a253630c988a1f4a48dd5783 -Author: Jens Georg -Date: Sat Mar 4 00:05:43 2017 +0100 - - viewer: Don't always add photo again after saving - - This seems to cause the photo being in the collection twice, causing - not being able to navigate to the previous photo anymore - - Just do it when the photo we save isn't the current photo. - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=734816 - -M src/direct/DirectPhotoPage.vala - -commit 054ca90f435498d1a58a2f4c91b6ed4857553398 -Author: Jens Georg -Date: Thu Mar 2 23:32:48 2017 +0100 - - Fix toolbox not visible in fullscreen - - Seems to affect Cinnamon so far. Most likely due to the work-around - for crashing on wayland (1eec412e97c255c9ca235e039dcdc59ee4c3c140) - - Signed-off-by: Jens Georg - -M src/PhotoPage.vala - -commit 8b6b33f14aecf448a14eef5372219d4f524bccab -Author: Jens Georg -Date: Thu Mar 2 21:49:57 2017 +0100 - - Fix issue when deleting image in Fullscreen - - Signed-off-by: Jens Georg - -M src/Page.vala - -commit 8e4268248f035bf0f1ae071d451b335321e6c686 -Author: Jordi Mas -Date: Tue Feb 28 20:05:45 2017 +0100 - - Fix Catalan translation - -M po/ca.po - -commit 70e9071a01d1d596fca9851f393a8ff847c79bb3 -Author: Jens Georg -Date: Mon Feb 27 21:01:51 2017 +0100 - - Post-release version bump - - Signed-off-by: Jens Georg - -M configure.ac - -commit 46cb5788d823338f0b0e2e64ec79851f701ab444 -Author: Jens Georg -Date: Mon Feb 27 20:45:28 2017 +0100 - - Prepare 0.25.90 - - Signed-off-by: Jens Georg - -M NEWS -M configure.ac -M debian/changelog - -commit e590ff354add6024dda62eab9c1aa9fe6cb4bca1 -Author: Jens Georg -Date: Mon Feb 27 20:29:06 2017 +0100 - - picasa: Skip default url from album list - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit 9afb5a61f866768b0c45344448fa9958edf15636 -Author: Jens Georg -Date: Sun Feb 26 20:53:43 2017 +0100 - - More Save As => Export - - Signed-off-by: Jens Georg - -M ui/event.ui -M ui/tags.ui - -commit 5a944fb2379f63b2278cf2192022911da1723f74 -Author: Piotr Drąg -Date: Sun Feb 26 18:33:19 2017 +0100 - - Update Polish translation - -M po/pl.po - -commit 969d102177f150ee7fbd700acb6304648b41e461 -Author: Jens Georg -Date: Sun Feb 26 17:01:42 2017 +0100 - - Drop GOA dependency - - Signed-off-by: Jens Georg - -M publish.am -M vapi/libgdata.vapi - -commit 1ae4e1315fa9b20ef59946e1885de886b04f7f2b -Author: Мирослав Николић -Date: Sun Feb 26 10:33:30 2017 +0100 - - Updated Serbian translation - -M po/sr.po -M po/sr@latin.po - -commit d6328842ef4da39c9dbe20579ceb4177ff5950b3 -Author: Jens Georg -Date: Sat Feb 25 23:41:03 2017 +0100 - - Re-introduce "Export" menu - - Accidently named "Save As" because the mixing up the icon with - the label - - Signed-off-by: Jens Georg - -M ui/media.ui -M ui/photo.ui - -commit a334c78881f0ddbec4a2c2a2656d7c7d9f1fd8a8 -Author: Jens Georg -Date: Sat Feb 25 23:24:31 2017 +0100 - - Fix import of files ending in ogg - - This will only work for "local" imports, not from camera. - - https://bugzilla.gnome.org/show_bug.cgi?id=717305 - -M src/BatchImport.vala -M src/VideoSupport.vala - -commit da83d231f6efe00e2bea5ccc7d1a5fbab8a20749 -Author: Jens Georg -Date: Wed Oct 12 16:20:09 2016 +0200 - - Get prefetched copy after setting the developer - - Avoid doing a raw development if we want the embedded developer - - Signed-off-by: Jens Georg - -M src/Photo.vala - -commit 50cce33b66a3bd40f9edc347e56c9b8a19b1b234 -Author: Jens Georg -Date: Sun Oct 9 18:26:00 2016 +0200 - - Don't uncessarily do a raw processing for thumbs - - Try to use the embedded preview instead. - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=718248 - -M src/photos/RawSupport.vala - -commit 5873a3c4f46ddf1a3045387876cb20415e267338 -Author: Jens Georg -Date: Sun Oct 9 18:24:41 2016 +0200 - - Attach a role to PhotoFileReader - - Signed-off-by: Jens Georg - -M src/Photo.vala -M src/photos/PhotoFileAdapter.vala - -commit ead1bd5373ce572380f598ea14ad443568822b62 -Author: Jens Georg -Date: Sat Feb 25 22:07:50 2017 +0100 - - youtube: Show progress while uploading - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit 8776a682fb305aa91111533cea10fc7b403de913 -Author: Jens Georg -Date: Sat Feb 25 20:47:45 2017 +0100 - - youtube: Add local gdata vapi, fix authorizer - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/YouTubePublishing.vala -M publish.am -A vapi/libgdata.vapi - -commit e63a88e328ab268e3cea3d178a47e519f2e03b87 -Author: Jens Georg -Date: Tue Feb 21 23:48:07 2017 +0100 - - google: Extract access token expiry time - - Signed-off-by: Jens Georg - -M plugins/authenticator/shotwell/GoogleAuthenticator.vala - -commit f5a89c745f00f15d88e63a401e9fb6d9c4fca7e5 -Author: Jens Georg -Date: Sat Feb 11 22:29:39 2017 +0100 - - youtube: Port to libgdata - - Make YouTube upload work again - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=777910 - -M configure.ac -M plugins/shotwell-publishing/YouTubePublishing.vala -M publish.am - -commit dca35c362b741c1379676c2e1c7099d39e4d1755 -Author: Jens Georg -Date: Sat Feb 11 22:28:47 2017 +0100 - - Update Google API keys - - Old API keys were not activated for YouTube Data API v3 uploading. - - Signed-off-by: Jens Georg - -M plugins/authenticator/shotwell/GoogleAuthenticator.vala -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit 5d3559d149c4e9c21dd78e396edcfe82bbe702f6 -Author: Jens Georg -Date: Thu Feb 23 19:27:12 2017 +0100 - - Update debian - - Signed-off-by: Jens Georg - -M debian/changelog - -commit 441e36711a52a65540345c8d385488f4169fe0e5 -Author: Jiri Grönroos -Date: Wed Feb 22 18:50:12 2017 +0000 - - Update Finnish translation - -M po/fi.po - -commit ddcc9c9b4eb4e3c2582f939235282791465157ba -Author: Jens Georg -Date: Tue Feb 21 22:57:47 2017 +0100 - - picasa: Use proper mime type for video - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/PicasaPublishing.vala - -commit b3fe24ea953ca86310dca39226a1b87f54bfb8ee -Author: Jens Georg -Date: Tue Feb 21 22:05:49 2017 +0100 - - picasa: Remove possibility to create new albums - - This has been dropped from the Picasa Web API / Google Photos - - Signed-off-by: Jens Georg - -M plugins/authenticator/shotwell/GoogleAuthenticator.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/picasa_publishing_options_pane.ui - -commit 12dd77b2e08712eb9a4fc8f85bd2639092422bc5 -Author: Jens Georg -Date: Tue Feb 21 21:36:21 2017 +0100 - - picasa: Remove obsolete comment - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/PicasaPublishing.vala - -commit 4aa315083e4fa1984905a907788e595510f183de -Author: Jens Georg -Date: Sun Feb 19 17:49:00 2017 +0100 - - Post-releease version bump - - Signed-off-by: Jens Georg - -M configure.ac - -commit cfb0e920a3328d07787dab0e7751d6da7a9cf72a -Author: Jens Georg -Date: Mon Feb 13 21:39:24 2017 +0100 - - Prepare 0.25.5 - - Signed-off-by: Jens Georg - -M NEWS - -commit 178070af02ea3dd9af920ec33d112b2fb354055c -Author: Jens Georg -Date: Mon Feb 13 21:37:01 2017 +0100 - - Distribute resource and header files - - Signed-off-by: Jens Georg - -M authenticator.am - -commit b834fe3d8cd117b9bda916e9b8abc23472c005bd -Author: Jens Georg -Date: Mon Feb 13 20:51:14 2017 +0100 - - Fix dependencies for authenticator library - - Signed-off-by: Jens Georg - -M authenticator.am - -commit e96362678ca4e8b5650df2fdbfd0e55ee50cb326 -Author: Jens Georg -Date: Mon Feb 13 20:50:51 2017 +0100 - - Introduce "refresh()" method to authenticator - - Signed-off-by: Jens Georg - -M -plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala -M plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala -M plugins/authenticator/shotwell/GoogleAuthenticator.vala -M src/plugins/PublishingInterfaces.vala - -commit 841db576d864fb0252e1b34e086bcbab94f8ef5d -Author: Anders Jonsson -Date: Sun Feb 12 14:59:45 2017 +0000 - - Update Swedish translation - -M help/sv/sv.po - -commit 5c64525827f751dad749c39706f1630e7e189e84 -Author: Piotr Drąg -Date: Sat Feb 11 20:11:02 2017 +0100 - - Update POTFILES.in and POTFILES.skip - -M po/POTFILES.in -M po/POTFILES.skip - -commit d4687a780564111e8d312f60efd87e42b31c5ee1 -Author: Jens Georg -Date: Sat Feb 11 19:34:25 2017 +0100 - - i18n: Update POTFILES.{in,skip} - - Signed-off-by: Jens Georg - -M po/POTFILES.in -M po/POTFILES.skip - -commit 0a170a63276965e5548b7e2c561bccdd401bd7d5 -Author: Jens Georg -Date: Sat Feb 11 00:04:20 2017 +0100 - - Only show logout button if authenticator supports it - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit b0fa855491788456973575794ec97ee753ea514c -Author: Jens Georg -Date: Thu Feb 9 23:02:15 2017 +0100 - - Flickr: Fix authentication from persistent data - - Signed-off-by: Jens Georg - -M plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit f0f65a1275e84b9dfab2124be6a36396997f8683 -Author: Jens Georg -Date: Thu Feb 9 22:38:42 2017 +0100 - - google: Persistency handling in authenticator - - Signed-off-by: Jens Georg - -M plugins/authenticator/shotwell/GoogleAuthenticator.vala -M plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit 161c19ba01045b942e050e6dd5956c759c1fa140 -Author: Jens Georg -Date: Thu Feb 9 22:17:45 2017 +0100 - - Make pluggables depend on authenticator availability - - Signed-off-by: Jens Georg - -M plugins/authenticator/shotwell/GoogleAuthenticator.vala -M plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala -M plugins/shotwell-publishing/shotwell-publishing.vala -M src/plugins/PublishingInterfaces.vala - -commit abad9e07aeaae6a91c571ddeb99cfedfb4afa5e3 -Author: Jens Georg -Date: Thu Feb 9 22:16:53 2017 +0100 - - Facebook: Move persitency into authenticator - - Signed-off-by: Jens Georg - -M -plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit 7544a3eba84686cbfeafed8cab572e3aff9ba9b8 -Author: Jens Georg -Date: Thu Feb 9 21:36:14 2017 +0100 - - flickr: Move persistency to authenticator - - Signed-off-by: Jens Georg - -M plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit b8b39ef517ae0a944175e66d3a27262e5503c6df -Author: Jens Georg -Date: Wed Feb 8 23:15:04 2017 +0100 - - Extract Google authenticator - - Put it into the authenticator library as well - - Signed-off-by: Jens Georg - -M authenticator.am -M configure.ac -A plugins/authenticator/shotwell/GoogleAuthenticator.vala -M plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit a3b6e0f6f73069ad2472ffa68f36f77adadd0485 -Author: Jens Georg -Date: Mon Feb 6 19:08:31 2017 +0100 - - Put authenticators into separate library - -M Makefile.am -A authenticator.am -M configure.ac -R096 plugins/shotwell-publishing/FacebookPublishingAuthenticator.vala -plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala -R066 plugins/shotwell-publishing/FlickrPublishingAuthenticator.vala -plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala -A plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala -R100 plugins/shotwell-publishing/flickr_pin_entry_pane.ui -plugins/authenticator/shotwell/flickr_pin_entry_pane.ui -A -plugins/authenticator/shotwell/org.gnome.Shotwell.Authenticator.gresource.xml -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M -plugins/shotwell-publishing/org.gnome.Shotwell.Publishing.gresource.xml -M publish.am -M src/plugins/PublishingInterfaces.vala - -commit a90cf2623f57ec50f1ad2284a7ae552f33381be4 -Author: Jens Georg -Date: Wed Jan 4 11:37:43 2017 +0100 - - No need for request phase tokens in Flickr publisher - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit 6b6e2818218e80d90dfcca5382da635e9b16b580 -Author: Jens Georg -Date: Wed Jan 4 11:28:05 2017 +0100 - - flickr: Move API keys into authenticator - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/FlickrPublishingAuthenticator.vala - -commit b473cddea88394badb66faaf7dab5091a620c027 -Author: Jens Georg -Date: Thu Dec 22 21:05:41 2016 +0100 - - Extract Flickr authentication into own class - -M plugins/shotwell-publishing/FlickrPublishing.vala -A plugins/shotwell-publishing/FlickrPublishingAuthenticator.vala -M publish.am - -commit 3351086742689b8397dd8df0c2961e42a46499be -Author: Jens Georg -Date: Mon Dec 19 19:28:39 2016 +0100 - - Move Facebook authenticator in extra file - -M plugins/shotwell-publishing/FacebookPublishing.vala -A plugins/shotwell-publishing/FacebookPublishingAuthenticator.vala -M po/POTFILES.in -M po/POTFILES.skip -M publish.am - -commit 25ec931a9447eefbcffb34e0a1d5362eb3b5cb55 -Author: Jens Georg -Date: Sun Dec 18 23:09:04 2016 +0100 - - Only show Facebook logout button if supported - - If authenticator does not have logout feature, don't show it - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit a8bda161eb06acafadc95c907b1acb0e2b34212d -Author: Jens Georg -Date: Sun Dec 18 23:02:29 2016 +0100 - - Extract Facebook authentication process - - Put it into extra class implementing the Authenticator interface - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/FacebookPublishing.vala -M src/plugins/PublishingInterfaces.vala - -commit 9a04c84ec121a6a027540a8aad422c5fffa90d69 -Author: Jens Georg -Date: Thu Dec 15 20:08:54 2016 +0100 - - Define Authenticator interface - - Signed-off-by: Jens Georg - -M src/plugins/PublishingInterfaces.vala - -commit 535b205eb061bc1d95cf83fb07a415d7515f31f3 -Author: Alan Mortensen -Date: Sat Feb 11 19:14:45 2017 +0100 - - Updated Danish translation - -M po/da.po - -commit c73d7b5f14b71f12df11a654dc688edd566f8592 -Author: Jens Georg -Date: Mon Feb 6 19:52:49 2017 +0100 - - libraw.vapi: Fix setting of parameters on OutputParams - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=778174 - -M src/photos/GRaw.vala -M vapi/libraw.vapi - -commit 478e943e82926ee617126f659fffd8810e202b65 -Author: Enrico Nicoletto -Date: Mon Feb 6 12:17:32 2017 +0000 - - Update Brazilian Portuguese translation - -M po/pt_BR.po - -commit 6c6182f341dafdb39c2b270fd11edb5fa8e30941 -Author: Debarshi Ray -Date: Sat Feb 4 16:48:24 2017 +0100 - - graw, libraw.vapi: Use the correct type for use_camera_matrix - - libraw_output_params_t.use_camera_matrix is a tri-state value, not a - boolean. Since any non-zero value counts as 'true', let's use the - default unless someone finds a reason not to. - - See: - http://www.libraw.org/docs/API-datastruct-eng.html#libraw_output_params_t - - https://bugzilla.gnome.org/show_bug.cgi?id=778174 - -M src/photos/GRaw.vala -M vapi/libraw.vapi - -commit e045b9b48851dd4f21387e99de1aa3a1e10a3a66 -Author: Debarshi Ray -Date: Sat Feb 4 16:21:17 2017 +0100 - - libraw.vapi: Set the correct power value for the gamma curve - - libraw_output_params_t.gamm[0] is meant to have the inverted gamma or - power value. See: - http://www.libraw.org/docs/API-datastruct-eng.html#libraw_output_params_t - - https://bugzilla.gnome.org/show_bug.cgi?id=778174 - -M vapi/libraw.vapi - -commit dac7891bd25d9d3b62f773cb0743c78b41692f24 -Author: Jens Georg -Date: Tue Jan 31 21:43:57 2017 +0100 - - Post-release version bump - - Signed-off-by: Jens Georg - -M configure.ac - -commit 8d2e927e78abb7699f1e9c8e9fd60119ea01999a -Author: Jens Georg -Date: Tue Jan 31 21:25:06 2017 +0100 - - Prepare 0.25.4 - - Signed-off-by: Jens Georg - -M NEWS -M debian/changelog - -commit 107353fa1f9d01aec430a801403b8e1ea7761250 -Author: Jens Georg -Date: Sun Jan 29 22:58:22 2017 +0100 - - publishing: Use HTTPS everywhere - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing-extras/TumblrPublishing.vala -M plugins/shotwell-publishing-extras/YandexPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit 1950b080aac8d57868ef0df8a9aa8f942d7c76a5 -Author: Jens Georg -Date: Fri Jan 27 19:59:24 2017 +0100 - - Update debian - - Signed-off-by: Jens Georg - -M debian/changelog - -commit 2e5f0c48ac99c43401d6a4efc7064f0408d21cb0 -Author: Daniel Korostil -Date: Tue Jan 24 21:11:50 2017 +0000 - - Update Ukrainian translation - -M po/uk.po - -commit c5f4dba59aa01f74df6bbee02dacdb8a2bd0e722 -Author: Marek Černocký -Date: Mon Jan 23 00:17:42 2017 +0100 - - Updated Czech translation - -M po/cs.po - -commit aa09c071d73ea8840fb6c14040bd57e2fe341fbc -Author: Piotr Drąg -Date: Wed Jan 18 23:12:40 2017 +0100 - - Update Polish translation - -M po/pl.po - -commit 8e7eb9fa324b2f6fb399e78d5e4a0935e57c6be3 -Author: Jens Georg -Date: Mon Jan 16 21:17:05 2017 +0100 - - Post-release version bump - - Signed-off-by: Jens Georg - -M configure.ac - -commit e5a192163148d01708684bc38c4442824fda8178 -Author: Jens Georg -Date: Mon Jan 16 20:36:27 2017 +0100 - - Prepare 0.25.3 - - Signed-off-by: Jens Georg - -M NEWS -M configure.ac - -commit dfe59ea0fa04633d233be973e8578af037ea822a -Author: Alan Mortensen -Date: Sun Jan 15 02:01:13 2017 +0100 - - Updated Danish translation - -M po/da.po - -commit a246cf45e80204bf05419cb0a76d9a145940373a -Author: Piotr Drąg -Date: Thu Jan 12 13:45:29 2017 +0100 - - Fix Icon filename in Serbian and Korean translations - -M po/ko.po -M po/sr.po -M po/sr@latin.po - -commit 14b44bdee2cfff20018dc66053dd6defb7cb03f0 -Author: Andreas Brauchli -Date: Thu Dec 8 16:09:32 2016 +0100 - - More reliable duplicate detection - - Never compare thumbnail_md5 when the full md5 can be used to avoid - false - positive. Otherwise fall back to comparing thubnail_md5 where false - positives are possible. - -M src/db/PhotoTable.vala - -commit 59da83435bfe4f14a716312f5cc871f9c04d6774 -Author: Amos Brocco -Date: Sun Nov 27 22:17:00 2016 +0000 - - Improved Raw duplicate detection - - Use exposure timestamp comparison as well as file name to distinguish - between - different files with the same name - - https://bugzilla.gnome.org/show_bug.cgi?id=775196 - -M src/camera/ImportPage.vala - -commit 33b101fa36c685d24179a2f25aec91d0ae5102f6 -Author: Jens Georg -Date: Wed Jan 4 12:45:42 2017 +0100 - - piwigo: Fix title and coments on uploaded files - - Boolean is hard, part II. - - Regression introduced by 9d2b698023366e95baddbb677118a50e27bd6e8e - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=776664 - -M plugins/shotwell-publishing/PiwigoPublishing.vala - -commit 809b4cdd20ec6ec795c51ec046999f6f5106c07a -Author: Richard B. Kreckel -Date: Tue Jan 3 23:00:00 2017 +0000 - - Fix various typos in comments and code - - https://bugzilla.gnome.org/show_bug.cgi?id=776839 - -M src/Application.vala -M src/BatchImport.vala -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/Commands.vala -M src/Dialogs.vala -M src/Dimensions.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Printing.vala -M src/Tombstone.vala -M src/Upgrades.vala -M src/camera/GPhoto.vala -M src/core/SourceInterfaces.vala -M src/photos/PhotoMetadata.vala - -commit 719fc9935a3f8c36009e028e8e893347e0b730ab -Author: Jens Georg -Date: Sat Dec 31 00:41:06 2016 +0100 - - Fix actions for fullscreen - - https://bugzilla.gnome.org/show_bug.cgi?id=776614 - - Signed-off-by: Jens Georg - -M src/CollectionPage.vala -M src/MediaPage.vala -M src/Page.vala -M src/PhotoPage.vala -M src/camera/ImportPage.vala -M src/direct/DirectPhotoPage.vala -M src/events/EventPage.vala -M src/events/EventsDirectoryPage.vala -M src/library/ImportQueuePage.vala -M src/library/LibraryWindow.vala -M src/library/OfflinePage.vala -M src/library/TrashPage.vala -M src/searches/SavedSearchPage.vala -M src/tags/TagPage.vala - -commit 0f3a1eee7ab9ce0ce211227e695e197bba53188a -Author: Dušan Kazik -Date: Sun Jan 1 20:01:53 2017 +0000 - - Update Slovak translation - -M po/sk.po - -commit b24bde8bbcc42aac8cd5e5390db12cd3fb08725a -Author: Dušan Kazik -Date: Sun Jan 1 19:37:20 2017 +0000 - - Update Slovak translation - (cherry picked from commit 3e41d1eab5df8a0693946bb22406c886f2799e7a) - -M po/sk.po - -commit 6c2eea964babf24a9901f9569a32247282cfe40c -Author: Jens Georg -Date: Sat Dec 31 00:39:51 2016 +0100 - - Fix action state when switching back in library - - https://bugzilla.gnome.org/show_bug.cgi?id=776527 - - Signed-off-by: Jens Georg - -M src/Page.vala - -commit f98a958b83245c9ced25e4c646c0de83a6bb0d1d -Author: Richard B. Kreckel -Date: Thu Dec 29 18:47:00 2016 +0000 - - Import button labels are swapped - - https://bugzilla.gnome.org/show_bug.cgi?id=776589 - -M src/camera/ImportPage.vala - -commit 092a86ec0c9901385c257cd84eb178469da01b65 -Author: Jens Georg -Date: Wed Dec 28 00:08:16 2016 +0100 - - Remove local actions from Page when switching away - - https://bugzilla.gnome.org/show_bug.cgi?id=776527 - -M src/CollectionPage.vala -M src/MediaPage.vala -M src/Page.vala -M src/PhotoPage.vala -M src/camera/ImportPage.vala -M src/direct/DirectPhotoPage.vala -M src/events/EventPage.vala -M src/events/EventsDirectoryPage.vala -M src/library/ImportQueuePage.vala -M src/library/OfflinePage.vala -M src/library/TrashPage.vala -M src/searches/SavedSearchPage.vala -M src/tags/TagPage.vala - -commit 6fc591233cfc6e1ca690c3a637b8e21bb3d47f65 -Author: Jens Georg -Date: Wed Dec 28 12:45:05 2016 +0100 - - Revert "Remove deprecated Soup API" - - Breaks flick upload - - This reverts commit 8999db51f67aeab1507d182742adc689dfbd9bb1. - -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing-extras/YandexPublishing.vala -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit 587ce09a54124839697ee178334eaa3cd4843c46 -Author: Marina Prado -Date: Wed Dec 28 11:37:04 2016 +0000 - - Update Spanish translation - -M help/es/es.po - -commit acbe3c3e5bb00996536e7a8f449ed45c95271d93 -Author: Jens Georg -Date: Tue Dec 27 19:38:43 2016 +0100 - - Fix LeaveFullscreen action - - Signed-off-by: Jens Georg - -M src/AppWindow.vala - -commit f74c9b715553cd3a6b85e8707d0112f2310626e8 -Author: Rafael Fontenelle -Date: Mon Dec 26 09:09:24 2016 +0000 - - Update Brazilian Portuguese translation - -M po/pt_BR.po - -commit b212f161c6745914a91158b15eb83253f8ceaec9 -Author: Piotr Drąg -Date: Sun Dec 25 21:38:13 2016 +0100 - - Update Polish translation - -M po/pl.po - -commit 7ed7d8c8d10d95b8dd76bce3a4a8856b5c478c03 -Author: Piotr Drąg -Date: Sun Dec 25 21:37:09 2016 +0100 - - Update Polish translation - -M po/pl.po - -commit cb09b73d966f7876ac97041f2815a0561175316f -Author: Marek Černocký -Date: Sat Dec 24 14:47:04 2016 +0100 - - Updated Czech translation - -M po/cs.po - -commit d94d02049889b72fd653ab22e790cb0a7949f86a -Author: Piotr Drąg -Date: Fri Dec 23 01:17:49 2016 +0100 - - Update POTFILES.in - -M po/POTFILES.in - -commit 235c28bccd1f0f8f5277e1d792bcfd9a04f0b31e -Author: Jens Georg -Date: Thu Dec 22 22:17:14 2016 +0100 - - flickr: Use format_size_full for the remaining quota string - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit e8622e25c3753fb9191e871c479685bc036fecb6 -Author: Jens Georg -Date: Thu Dec 22 21:08:18 2016 +0100 - - Revert "Use AppMenu" - - Not good. Help is not easily discoverable. Needs some more thinking - - This reverts commit 6e6a51b3a5b939322e0a40c2f2766367969721c2. - -M org.gnome.Shotwell.gresource.xml -M src/Application.vala -M src/direct/DirectWindow.vala -M src/library/LibraryWindow.vala -M ui/Makefile.am -D ui/appmenu.ui -M ui/direct.ui -M ui/event.ui -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/media.ui -M ui/offline.ui -M ui/photo.ui -M ui/tags.ui -M ui/trash.ui - -commit 248bb1463f967073df05228c37b0410de7506d52 -Author: Jens Georg -Date: Thu Dec 22 21:07:09 2016 +0100 - - Revert "Add Quit menu item to File menu" - - This reverts commit 0fa222a858adee5014c91dd2a8de0658b3a4ec24. - -M src/Page.vala -M ui/direct.ui -M ui/event.ui -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/media.ui -M ui/offline.ui -M ui/photo.ui -M ui/tags.ui -M ui/trash.ui - -commit b9feec526de83b4ad94a7dacc8916a9c65967841 -Author: Marina Prado -Date: Thu Dec 22 16:47:54 2016 +0000 - - Update Spanish translation - -M help/es/es.po - -commit a9e4ef6df60822cf2feb8eb621f81d82504e4806 -Author: Jens Georg -Date: Thu Dec 22 13:23:30 2016 +0100 - - Add -f as shortcut for search bar - - As mentioned in the documentation - - Signed-off-by: Jens Georg - -M src/library/LibraryWindow.vala - -commit f576f5956f71dccf6ef127fccc9940824a8dd9d5 -Author: Jens Georg -Date: Thu Dec 22 13:23:11 2016 +0100 - - Accellerators need to be null-terminated - - Signed-off-by: Jens Georg - -M src/AppWindow.vala - -commit 684eb82f81d90947f0c0b5bb26d12a5f3cc6b74b -Author: Jens Georg -Date: Wed Dec 21 15:15:27 2016 +0100 - - flickr: Simplify OAuth result parsing - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit 95d62f14086662dc97684d13cf34e6eb53868812 -Author: Jens Georg -Date: Wed Dec 21 12:26:09 2016 +0100 - - yandex: Update glade file - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing-extras/yandex_publish_model.ui - -commit e6b9ffe51765e616b388232a338a437809687eaf -Author: Jens Georg -Date: Wed Dec 21 12:17:13 2016 +0100 - - tumblr: Update glade files - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing-extras/tumblr_authentication_pane.ui -M -plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.ui - -commit 6fb98fbc7ec5c97486600961502db8cc961130d1 -Author: Jens Georg -Date: Wed Dec 21 12:06:26 2016 +0100 - - rajce: Update glade files - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing-extras/rajce_authentication_pane.ui -M -plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui - -commit d5f2b6505c61dc9dfab71392534a91a6ecc242b1 -Author: Jens Georg -Date: Wed Dec 21 11:52:19 2016 +0100 - - gallery3: Update glade files - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui -M -plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui - -commit 5dad7406da9c1c3adc63c57e508de06cd86b3a2c -Author: Jens Georg -Date: Tue Dec 20 21:24:18 2016 +0100 - - piwigo: Update glade files - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/piwigo_authentication_pane.ui -M plugins/shotwell-publishing/piwigo_publishing_options_pane.ui -M plugins/shotwell-publishing/piwigo_ssl_failure_pane.ui - -commit d24ea86ff22911454b26157d223377bec498fe88 -Author: Jens Georg -Date: Tue Dec 20 21:23:56 2016 +0100 - - picasa: Update glade file - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/picasa_publishing_options_pane.ui - -commit 68b0fb3debbcce1e3683f732a40ef771f56b6a21 -Author: Jens Georg -Date: Tue Dec 20 21:19:36 2016 +0100 - - facebook: Update publishing pane - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/facebook_publishing_options_pane.ui - -commit c4eac442dea23bc35c772250e27bfa7226067a79 -Author: Jens Georg -Date: Tue Dec 20 20:59:29 2016 +0100 - - flickr: Update glade files - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/flickr_pin_entry_pane.ui -M plugins/shotwell-publishing/flickr_publishing_options_pane.ui - -commit eb8612cd6fafcac7d42baacd33697958e198941e -Author: Jens Georg -Date: Tue Dec 20 13:28:13 2016 +0100 - - Fix toolbar in camera import page - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=776298 - -M src/Resources.vala -M src/camera/ImportPage.vala - -commit 021d6bc3a0540b5a8cb3b752faa22f5b7e688c4e -Author: Marina Prado -Date: Tue Dec 20 12:17:48 2016 +0000 - - Update Spanish translation - -M help/es/es.po - -commit 0fa222a858adee5014c91dd2a8de0658b3a4ec24 -Author: Jens Georg -Date: Sun Dec 18 20:05:44 2016 +0100 - - Add Quit menu item to File menu - - If the shell does have AppMenu. Not having itbroke my workflow - quite badly. - - Signed-off-by: Jens Georg - -M src/Page.vala -M ui/direct.ui -M ui/event.ui -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/media.ui -M ui/offline.ui -M ui/photo.ui -M ui/tags.ui -M ui/trash.ui - -commit 9df5346f7428d3359e22c8281e1572adad85e7c9 -Author: Marek Černocký -Date: Sat Dec 17 17:02:59 2016 +0100 - - Updated Czech translation - -M po/cs.po - -commit 3591a7977872b7134afd76bb94e847d115784f11 -Author: Jens Georg -Date: Fri Dec 16 23:11:51 2016 +0100 - - Fix item in Tag page context menu - - Signed-off-by: Jens Georg - -M ui/tags.ui - -commit a4e8bd539157381f8bd962b017b2d9966df6cada -Author: Jens Georg -Date: Fri Dec 16 23:11:32 2016 +0100 - - Fix actions on sidebar context menu - - Signed-off-by: Jens Georg - -M ui/sidebar_default_context.ui -M ui/tag_sidebar_context.ui - -commit fdf099ed0902a2b7553ee78b17a548e1b560f8de -Author: Jens Georg -Date: Fri Dec 16 23:11:14 2016 +0100 - - Fix critical when re-using popup menu - - Signed-off-by: Jens Georg - -M src/sidebar/Tree.vala - -commit ae78abb368cf0928e47fc28756a3675b5de5872c -Author: Jens Georg -Date: Fri Dec 16 22:22:33 2016 +0100 - - Fix rating action - - Signed-off-by: Jens Georg - -M src/SearchFilter.vala -M ui/import.ui -M ui/offline.ui -M ui/trash.ui - -commit 5fea37e591b98968121dbc05679c0a5e8755fb74 -Author: Jens Georg -Date: Fri Dec 16 22:16:01 2016 +0100 - - Hack to switch menubar in the application window - - Apparently the Gtk.ApplicationWindow only reloads the menu bar - from the - Application if the gtk-shell-shows-menubar property changes - - Signed-off-by: Jens Georg - -M src/library/LibraryWindow.vala - -commit 48a0f15cf9c76ee91e8c85b2625099daa53db303 -Author: Jens Georg -Date: Fri Dec 16 21:31:32 2016 +0100 - - Add missing tags context menu - - Signed-off-by: Jens Georg - -M ui/tags.ui - -commit da0e59545f50f2545a8c6f5619a3e0f7f0b25b04 -Author: Jens Georg -Date: Thu Dec 15 08:57:01 2016 +0100 - - Guess convert when UTF-8 validation fails - - If validation of a text is requested and it fails, try to convert from - current locale if not UTF-8, otherwise fall-back to windows-1252 and - iso-8859-1. - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=718107 - -M src/util/string.vala - -commit 3da461946b4148d338fc9b9a116191ef7ad85bc6 -Author: Marina Prado -Date: Thu Dec 15 08:39:08 2016 +0000 - - Update Spanish translation - -M help/es/es.po - -commit 057c8d8a470db9f971225c4e866de82b964433d1 -Author: Jens Georg -Date: Tue Dec 13 19:25:47 2016 +0100 - - Fix event page context menu - - Signed-off-by: Jens Georg - -M src/events/EventPage.vala - -commit e2940082c6e44526d9494a13443064f544a597ba -Author: Jens Georg -Date: Mon Dec 12 18:19:56 2016 +0100 - - Prepare 0.25.2 - - Signed-off-by: Jens Georg - -M NEWS -M configure.ac -M debian/changelog - -commit 1b117dcf0161697a137e955727ef868f1bee9f2f -Author: Marina Prado -Date: Mon Dec 12 15:12:25 2016 +0000 - - Update Spanish translation - -M help/es/es.po - -commit e59f3184266543c057c96290b95a5392c31d9bbf -Author: Jens Georg -Date: Sun Dec 11 16:15:04 2016 +0100 - - Fix make distcheck - - Signed-off-by: Jens Georg - -M shotwell.am - -commit 76e8dabf9d043773f6335269e536c876c3cd21e9 -Author: Jens Georg -Date: Fri Dec 9 23:52:00 2016 +0100 - - Fix context menu on import page - - More left-over from the GLib.Action rework - - Signed-off-by: Jens Georg - -M src/camera/ImportPage.vala - -commit 7794d0401071d180b23741f1950b598340048307 -Author: Alan Mortensen -Date: Thu Dec 8 20:27:38 2016 +0100 - - Updated Danish translation - -M po/da.po - -commit 00e3e01fee5b9a062b40c055f527442b191178fe -Author: Marina Prado -Date: Wed Dec 7 08:28:59 2016 +0000 - - Update Spanish translation - -M help/es/es.po - -commit 81c6c321ab01313b4a55b24fc8c645d43561e85e -Author: Jens Georg -Date: Mon Dec 5 23:42:05 2016 +0100 - - Fix Undo/Redo adaptive labeling - - Signed-off-by: Jens Georg - -M src/AppWindow.vala -M src/Page.vala - -commit 01da01587dc184a940a9bbf2d84ab0647dcf30d5 -Author: Jens Georg -Date: Mon Dec 5 23:27:43 2016 +0100 - - Re-add label switching for background menu item - - Signed-off-by: Jens Georg - -M src/CollectionPage.vala -M src/Page.vala -M src/PhotoPage.vala - -commit 3b7754f2a92a34180d82bc2627f99e23d330109c -Author: Jens Georg -Date: Mon Dec 5 22:42:49 2016 +0100 - - One more missing SetBackground shortcut - - Signed-off-by: Jens Georg - -M src/CollectionPage.vala - -commit 25ef3e05e3573bf39efd8d07fe038c6a61fccd20 -Author: Jens Georg -Date: Mon Dec 5 20:57:51 2016 +0100 - - Make two dialogs Template-based - - Also fixes an issue with upcoming vala release - - Signed-off-by: Jens Georg - -M org.gnome.Shotwell.gresource.xml -M shotwell.am -M src/Dialogs.vala -M ui/Makefile.am -M ui/set_background_dialog.ui -M ui/set_background_slideshow_dialog.ui - -commit 7da6f0ea5fe79cc377ef01af685e8458c0a8e05a -Author: Jens Georg -Date: Sun Dec 4 20:55:26 2016 +0100 - - Move gresource to top-level - - Prepare for vala --gresources which does not have the --sourcedir - parameter so - it looks for the referenced files next to the resource file - - Signed-off-by: Jens Georg - -A org.gnome.Shotwell.gresource.xml -M shotwell.am -D src/org.gnome.Shotwell.gresource.xml - -commit a6e8b19ed137682917cb2d7e600476f8ff265a5f -Author: Jens Georg -Date: Sun Dec 4 20:12:30 2016 +0100 - - Add missing shortcut for Set Background - - Signed-off-by: Jens Georg - -M src/PhotoPage.vala -M src/direct/DirectPhotoPage.vala - -commit e2a9987638ef1e12ad30d7559ccfe508a4d8afed -Author: Jens Georg -Date: Sat Dec 3 23:28:43 2016 +0100 - - Fix opacity of disabled icons - - The icons added in 7589900c4ee3f790fd57474a64978193bd839424 were - darker than - the "original" disabled icons; apply the missing opacity change to - the PNGs - - Signed-off-by: Jens Georg - -M icons/filter-flagged-disabled.png -M icons/filter-photos-disabled.png -M icons/filter-raw-disabled.png -M icons/filter-videos-disabled.png - -commit b3a37f6bbbd5fd147b73a8f29eb776085c0ee42c -Author: Jens Georg -Date: Sat Dec 3 23:23:37 2016 +0100 - - Small clean-up - - Signed-off-by: Jens Georg - -M src/editing_tools/EditingTools.vala -M src/util/misc.vala - -commit 545ea734a93befc34a59b63090d67e5df34bf3a9 -Author: Marina Prado -Date: Fri Dec 2 07:31:24 2016 +0000 - - Update Spanish translation - -M help/es/es.po - -commit c430023b92ef28aa6a5cdae8abd2b2bda366944c -Author: Marina Prado -Date: Thu Dec 1 07:38:52 2016 +0000 - - Update Spanish translation - -M help/es/es.po - -commit 832f4aaa24e663682e27add8c916407e334af8de -Author: Piotr Drąg -Date: Thu Dec 1 03:16:55 2016 +0100 - - Update POTFILES.in - -M po/POTFILES.in - -commit 7589900c4ee3f790fd57474a64978193bd839424 -Author: Jens Georg -Date: Thu Dec 1 01:31:50 2016 +0100 - - Remove Gtk.IconFactory - - Use Gtk.IconTheme and add the four -disabled variants used in - SearchBar. - - Signed-off-by: Jens Georg - -A icons/filter-flagged-disabled.png -A icons/filter-photos-disabled.png -A icons/filter-raw-disabled.png -A icons/filter-videos-disabled.png -M src/Resources.vala -M src/SearchFilter.vala -M src/util/image.vala - -commit b954655410f5d8351067bd3fb7aef1f6267ffdb7 -Author: Jens Georg -Date: Thu Dec 1 01:27:41 2016 +0100 - - Fix initial searchbar state - - Signed-off-by: Jens Georg - -M src/library/LibraryWindow.vala - -commit cbe584674eba4c1196135c6f5d8df0ce3ff09a31 -Author: Jens Georg -Date: Thu Dec 1 01:18:07 2016 +0100 - - Fix type filter action for search bar - - Signed-off-by: Jens Georg - -M src/SearchFilter.vala - -commit 003c7fd16cb896b20dd664a9bd1ccb870098de9c -Author: Jens Georg -Date: Wed Nov 30 23:21:29 2016 +0100 - - debian: Fix makeshlibs - - Signed-off-by: Jens Georg - -M debian/rules - -commit 708d0aca71a2369a6b56ba2292c9c77792b196fd -Author: Jens Georg -Date: Tue Nov 29 23:57:43 2016 +0100 - - Suppress error on git version check - - Signed-off-by: Jens Georg - -M configure.ac - -commit 6e6a51b3a5b939322e0a40c2f2766367969721c2 -Author: Jens Georg -Date: Sat Nov 26 10:14:59 2016 +0100 - - Use AppMenu - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=719279 - -M src/Application.vala -M src/direct/DirectWindow.vala -M src/library/LibraryWindow.vala -M src/org.gnome.Shotwell.gresource.xml -A ui/appmenu.ui -M ui/direct.ui -M ui/event.ui -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/media.ui -M ui/offline.ui -M ui/photo.ui -M ui/tags.ui -M ui/trash.ui - -commit cf253ba83df8e7b64431ba47ce6f6eaecd4290e9 -Author: Marina Prado -Date: Wed Nov 30 08:06:53 2016 +0000 - - Update Spanish translation - -M help/es/es.po - -commit abefe41125206a8bd13fd2d3b8d514104c8490bd -Author: Piotr Drąg -Date: Sun Nov 27 17:26:40 2016 +0100 - - Update Polish translation - -M po/pl.po - -commit 63766d02e16c88dc0906d25760fd789586949c7a -Author: Mario Blättermann -Date: Sat Nov 26 10:52:56 2016 +0000 - - Update German translation - -M po/de.po - -commit 2d7aae3e2d66e09efb58b32fbc9828962dfc5898 -Author: Jens Georg -Date: Sat Nov 26 09:06:38 2016 +0100 - - Fix c&p error in publishing result - - Signed-off-by: Jens Georg - -M src/publishing/PublishingUI.vala - -commit c1bfc20645f388150d62680388a565e7c14f5d59 -Author: gogo -Date: Fri Nov 25 22:09:44 2016 +0000 - - Update Croatian translation - (cherry picked from commit ea4d90848de74ec9eb20b18332bfafb31795ac37) - -M po/hr.po - -commit 1bc0b23c1c9f264fd5158a883e6e65c051684a77 -Author: Jens Georg -Date: Fri Nov 25 20:20:56 2016 +0100 - - Wrap bottom toolbar into a Gtk.Revealer - - Signed-off-by: Jens Georg - -M src/library/LibraryWindow.vala - -commit d9c46b697a7b888240a4436752788dec036389d4 -Author: Jens Georg -Date: Fri Nov 25 19:58:04 2016 +0100 - - Fix disabled rating filter menu - - Signed-off-by: Jens Georg - -M src/SearchFilter.vala - -commit 070a14ee74d49669b1e49b787c5322549d047e65 -Author: Jens Georg -Date: Fri Nov 25 19:52:58 2016 +0100 - - Fix search header hiding - - Signed-off-by: Jens Georg - -M src/SearchFilter.vala -M src/library/LibraryWindow.vala - -commit c5f5ae947573591f6536fbe2942ef58772bdb67d -Author: Jens Georg -Date: Fri Nov 25 19:05:08 2016 +0100 - - Fix initial sort order - - Signed-off-by: Jens Georg - -M src/MediaPage.vala - -commit d50fc3d02eb804144159ba58fbb218f5b35900c9 -Author: Jens Georg -Date: Thu Nov 24 23:02:03 2016 +0100 - - Prevent cricial on start-up - - Signed-off-by: Jens Georg - -M src/library/LibraryWindow.vala - -commit 1763804167a4afd0b024eaa38cdde011806800c4 -Author: Jens Georg -Date: Thu Nov 24 23:01:44 2016 +0100 - - Use proper strings for states - - Signed-off-by: Jens Georg - -M src/MediaPage.vala -M src/PhotoPage.vala -M src/SearchFilter.vala - -commit aae874a437d5074562887eced6fd38ceae33fb9e -Author: Jens Georg -Date: Wed Nov 23 23:47:55 2016 +0100 - - Fix typo - - Signed-off-by: Jens Georg - -M src/events/EventsDirectoryPage.vala - -commit 78d4241ece3c6679b2cec7a226dac9a18c85a30e -Author: Jens Georg -Date: Wed Nov 23 23:15:08 2016 +0100 - - Add forgotton initialisation for states - - Signed-off-by: Jens Georg - -M src/library/LibraryWindow.vala - -commit 368c897bb6ddced1e120ec74765390ae803361f1 -Author: Jens Georg -Date: Wed Nov 23 23:14:36 2016 +0100 - - Use change_state to set initial action state - - Signed-off-by: Jens Georg - -M src/MediaPage.vala -M src/PhotoPage.vala -M src/SearchFilter.vala -M src/camera/ImportPage.vala -M src/events/EventsDirectoryPage.vala - -commit 4bcd9e9bfc3fdaf61e30fad4a9fe0d509727cb01 -Author: Jens Georg -Date: Wed Nov 23 22:52:07 2016 +0100 - - Update README - - Signed-off-by: Jens Georg - -M README - -commit 38347d6e03930e479c1fdcceb63291694fe383e5 -Author: Jens Georg -Date: Wed Nov 23 18:53:26 2016 +0100 - - Add missing About action - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=774901 - -M src/AppWindow.vala - -commit c7ee3bffae33fb8445d63419985bc84a881d2b1a -Author: Gábor Kelemen -Date: Tue Nov 22 23:15:11 2016 +0000 - - Update Hungarian translation - -M po/hu.po - -commit 2bd9761ba434353114215d15e397e9e9b0fba6eb -Author: Marek Cernocky -Date: Tue Nov 22 13:28:43 2016 +0100 - - Updated Czech translation - -M po/cs.po - -commit 8dd5b215d3ada4e2061b5e468e341c3336d4d0dc -Author: Marek Cernocky -Date: Tue Nov 22 13:26:54 2016 +0100 - - Updated Czech translation - -M po/cs.po - -commit 9984f365ab9407791f58792a71b71d15d974b64e -Author: Jens Georg -Date: Mon Nov 21 20:30:37 2016 +0100 - - Prepare 0.25.1 - - Signed-off-by: Jens Georg - -M NEWS -M configure.ac -M debian/changelog - -commit 25ee2b5cdabc7632e5bd4c41dc04e8f06f533275 -Author: Marina Prado -Date: Mon Nov 21 17:41:14 2016 +0000 - - Update Spanish translation - -M help/es/es.po - -commit 1eec412e97c255c9ca235e039dcdc59ee4c3c140 -Author: Jens Georg -Date: Sun Nov 20 23:54:09 2016 +0100 - - Fix crash when clicking on tool window in wayland - - Signed-off-by: Jens Georg - -M src/editing_tools/EditingTools.vala - -commit a409642472f9609e470ed9216b944c0c87f47637 -Author: Jens Georg -Date: Sun Nov 20 23:48:22 2016 +0100 - - Fix resource dependency generation - - Signed-off-by: Jens Georg - -M publish.am -M shotwell.am - -commit 916804df42f54092365d74378f6fca3266453721 -Author: Jens Georg -Date: Sun Nov 20 23:48:12 2016 +0100 - - Dist resource file - - Signed-off-by: Jens Georg - -M shotwell.am - -commit f0de94576ba0463f829acf05423fac6d95c83bb3 -Author: Jens Georg -Date: Sun Nov 20 23:18:31 2016 +0100 - - Remove another useless context menu title - - Signed-off-by: Jens Georg - -M ui/savedsearch.ui - -commit a2a4e194f831e1533676878300a41fcdac9c4ca6 -Author: Jens Georg -Date: Sun Nov 20 23:13:08 2016 +0100 - - Work-around issue with photo context menu - - Since we are not using separate action groups anymore, so leaving - collection page is disabling the actions we just enabled in PhotoPage. - - Signed-off-by: Jens Georg - -M src/CollectionPage.vala - -commit 9ae5339a193c8a14cc81d77867e9bd02dde038b0 -Author: Jens Georg -Date: Sun Nov 20 21:11:29 2016 +0100 - - Do not show menubar on fullscreen - - Signed-off-by: Jens Georg - -M src/AppWindow.vala - -commit d557aa766770eee4f11635e3a017b1d053f0574f -Author: Jens Georg -Date: Sun Nov 20 20:35:30 2016 +0100 - - Remove unnecessary context menu label - - Signed-off-by: Jens Georg - -M ui/direct_context.ui - -commit 3760e9eb404ef14e8e8bdc30e614ecb9f7c94be2 -Author: Jens Georg -Date: Sun Nov 20 19:55:33 2016 +0100 - - Remove deprecations from shotwell.ui - - https://bugzilla.gnome.org/show_bug.cgi?id=767181 - -M src/Dialogs.vala -M ui/shotwell.ui - -commit dbd298480651d80be3651e594b2efc1b20580cf5 -Author: Jens Georg -Date: Sun Nov 20 16:06:14 2016 +0100 - - Replace from_stock in EventsDirectoryPage - - Signed-off-by: Jens Georg - -M src/events/EventsDirectoryPage.vala - -commit 1e39fb34441615555cb25da2786ae2d85412aeb0 -Author: Jens Georg -Date: Sun Nov 20 15:44:32 2016 +0100 - - Remove deprecated calls from properties - - Signed-off-by: Jens Georg - -M src/Properties.vala - -commit e3ed5ceb07be8581000272b6fe8fd250a4975f9d -Author: Piotr Drąg -Date: Sun Nov 20 18:31:29 2016 +0100 - - Update Polish translation - -M po/pl.po - -commit ab05955e1b0c8dbe3c86b0c829af49c18813d1a2 -Author: Rafael Fontenelle -Date: Sat Nov 19 01:52:24 2016 +0000 - - Update Brazilian Portuguese translation - -M po/pt_BR.po - -commit cae15e6ea12990a477c62c8fc06849618f102ffb -Author: Marina Prado -Date: Fri Nov 18 12:35:18 2016 +0000 - - Update Spanish translation - -M help/es/es.po - -commit 482249a12230612aab927458c892432b45d8e1c9 -Author: Marina Prado -Date: Fri Nov 18 08:18:03 2016 +0000 - - Update Spanish translation - -M help/es/es.po - -commit 94e107e021a24df2a99f0eb6b84449111908f744 -Author: Jens Georg -Date: Thu Nov 17 22:59:53 2016 +0100 - - More ngettext for plurals - - Signed-off-by: Jens Georg - -M src/Dialogs.vala - -commit 3a67c97a5aa7779c106401c62914c53c800967d9 -Author: Jens Georg -Date: Thu Nov 17 22:59:44 2016 +0100 - - Remove deprecated code from Dialogs - - Signed-off-by: Jens Georg - -M src/Dialogs.vala -M ui/shotwell.ui - -commit bb5a1ac6776e6e8348266a77f6798e31c6160ea6 -Author: Jens Georg -Date: Thu Nov 17 22:26:54 2016 +0100 - - Remove deprecated calls from PhotoPage - - Signed-off-by: Jens Georg - -M src/PhotoPage.vala - -commit 96b325abdfec494294f3bc6233d999a4968de8ab -Author: Jens Georg -Date: Thu Nov 17 21:51:13 2016 +0100 - - Remove deprecations from AppWindow - - Signed-off-by: Jens Georg - -M src/AppWindow.vala - -commit 875b0f8fa30ddb30eb3ba81ff4db7307c9c7603e -Author: Jens Georg -Date: Thu Nov 17 21:43:21 2016 +0100 - - Fix warning about pointer cast - - Signed-off-by: Jens Georg - -M src/PixbufCache.vala -M src/threads/BackgroundJob.vala - -commit 7135d7a4687dbbc61d1d9babe29060f23da1fbbc -Author: Jens Georg -Date: Thu Nov 17 18:15:45 2016 +0100 - - Publishing: Use ngettext for plurals - - Signed-off-by: Jens Georg - -M src/publishing/PublishingUI.vala - -commit fa430d09a1b407dae551dcfd0302486b0cdfdd1f -Author: Jens Georg -Date: Thu Nov 17 18:15:28 2016 +0100 - - Fix deprecations in Imports UI - - Signed-off-by: Jens Georg - -M src/data_imports/DataImportsUI.vala - -commit eb9f7826392aa96306dfd102f0ee7d5e2dd40d02 -Author: Jens Georg -Date: Thu Nov 17 18:00:51 2016 +0100 - - publishing: Fix criticals when switching to Facebook - - Signed-off-by: Jens Georg - -M src/publishing/PublishingUI.vala - -commit 8bdbd6bdbe729915fcb3bb3c8e7acdac7c172924 -Author: Jens Georg -Date: Thu Nov 17 16:53:39 2016 +0100 - - Remove deprecated function from Tree - - Signed-off-by: Jens Georg - -M src/sidebar/Tree.vala - -commit 2d3bcae244075abedb5853b380bac539dde87da1 -Author: Jens Georg -Date: Thu Nov 17 16:52:29 2016 +0100 - - Remove dead code - - Not used anymore after putting stars as unicode - - Signed-off-by: Jens Georg - -M src/SearchFilter.vala - -commit 30abef1ac4778f0cd7a08fd23171e76011c84d9a -Author: Marek Černocký -Date: Thu Nov 17 11:21:56 2016 +0100 - - Updated Czech translation - -M po/cs.po - -commit 80fd4d15591e6cca50072e530e4fd9cd6ff9c6af -Author: Daniel Mustieles -Date: Thu Nov 17 08:17:13 2016 +0000 - - Update Spanish translation - -M help/es/es.po - -commit db76214268f16829125bc3b89e8381c8230ecb49 -Author: Jens Georg -Date: Wed Nov 16 23:09:32 2016 +0100 - - SearchBar: Remove star icons - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=771788 - -M src/SearchFilter.vala - -commit 5901f0282e6ce6b0b3a27248552c5cf8d492706a -Author: Jens Georg -Date: Wed Nov 16 22:21:10 2016 +0100 - - Make Find toolbar button a toggle button - - Signed-off-by: Jens Georg - -M ui/collection.ui - -commit 9be90a6bd45ca410f273b722b2726e0868640498 -Author: Jens Georg -Date: Wed Nov 16 22:11:34 2016 +0100 - - Gdk.Seat exists only since 3.20 - - Signed-off-by: Jens Georg - -M src/Page.vala -M src/library/LibraryWindow.vala - -commit aef3f23f92c4df33f932ee5d1af3a4e9a33d266d -Author: Jens Georg -Date: Wed Nov 16 21:52:57 2016 +0100 - - Use change_state instead of set_state - - Signed-off-by: Jens Georg - -M src/library/LibraryWindow.vala - -commit 6ae8259658aa63e03bc1cfdd73403f2e9ef75cf4 -Author: Marek Cernocky -Date: Wed Nov 16 11:41:07 2016 +0100 - - Updated Czech translation - -M po/cs.po - -commit ef8d4068d58d09b81af688f98f4a855fe444b930 -Author: Jens Georg -Date: Wed Nov 16 00:52:17 2016 +0100 - - Remove deprecated calls from LibraryWindow - - Signed-off-by: Jens Georg - -M src/library/LibraryWindow.vala - -commit 0410d948509def958eda90a91d8bfc28b03a7670 -Author: Jens Georg -Date: Wed Nov 16 00:40:15 2016 +0100 - - Remove deprecations from PublishingUI - - Signed-off-by: Jens Georg - -M src/publishing/PublishingUI.vala - -commit b6acc7475fe707f75fab55eaa160881118f46b9d -Author: Jens Georg -Date: Tue Nov 15 23:55:09 2016 +0100 - - Remove deprecated calls from ManifestWidget - - Signed-off-by: Jens Georg - -M src/plugins/ManifestWidget.vala - -commit ebfb5620ef054276b84eb0a5aaf87bc2c26dd9fd -Author: Jens Georg -Date: Tue Nov 15 23:47:55 2016 +0100 - - Dedeprecate Adjust Tool - - Signed-off-by: Jens Georg - -M src/editing_tools/EditingTools.vala - -commit bbccb6eded1d1e65d0c1ef65b22cfc4f06fc8b4a -Author: Jens Georg -Date: Tue Nov 15 23:47:02 2016 +0100 - - Dedeprecate RedEye Tool - - Signed-off-by: Jens Georg - -M src/editing_tools/EditingTools.vala - -commit 21559b2ba0696a0db9c050a5872ca7c7c8b98f1d -Author: Jens Georg -Date: Tue Nov 15 23:46:43 2016 +0100 - - Dedeprecate EditingTools base class - - Signed-off-by: Jens Georg - -M src/editing_tools/EditingTools.vala - -commit 36410aa0942d029e0cb2e199ed70bffaf3e15d52 -Author: Piotr Drąg -Date: Tue Nov 15 12:30:24 2016 +0100 - - i18n: Remove files with no translations from POTFILES.in and - POTFILES.skip - -M po/POTFILES.in -M po/POTFILES.skip - -commit 3d4319a28d800e9e1f3ffb032f78d7b531ff1178 -Author: Piotr Drąg -Date: Tue Nov 15 12:20:14 2016 +0100 - - i18n: Add intermediate C files to POTFILES.skip - -M po/POTFILES.skip - -commit 46ceedff9eb3fa29a4b76b6c93b185c08ccc09b1 -Author: Piotr Drąg -Date: Tue Nov 15 12:17:59 2016 +0100 - - i18n: Add missing files to POTFILES.in - -M po/POTFILES.in - -commit aadd627f44499cc0a830249f31b306ef30ba2596 -Author: Jens Georg -Date: Mon Nov 14 23:59:01 2016 +0100 - - Dedeprecate Page - - Signed-off-by: Jens Georg - -M src/Page.vala - -commit f8f42e7a7dee8cedbb115309671468a7fd1e81e0 -Author: Jens Georg -Date: Mon Nov 14 23:27:25 2016 +0100 - - Use GtkApplication menubar, get accels for free - - Signed-off-by: Jens Georg - -M src/AppWindow.vala -M src/Application.vala -M src/Page.vala -M src/direct/DirectWindow.vala -M src/library/LibraryWindow.vala - -commit 17c8587e485cc8fad18abdecc2d6fa603416c973 -Author: Jens Georg -Date: Wed Oct 19 21:56:15 2016 +0200 - - Remove GtkUIManager and Gtk*Action* - - https://bugzilla.gnome.org/show_bug.cgi?id=768271 - - Signed-off-by: Jens Georg - -M shotwell.am -M src/AppWindow.vala -M src/Application.vala -M src/CollectionPage.vala -M src/MediaPage.vala -M src/Page.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/SearchFilter.vala -M src/camera/ImportPage.vala -M src/direct/DirectPhotoPage.vala -M src/events/EventPage.vala -M src/events/EventsDirectoryPage.vala -M src/library/ImportQueuePage.vala -M src/library/LibraryWindow.vala -M src/library/OfflinePage.vala -M src/library/TrashPage.vala -M src/org.gnome.Shotwell.gresource.xml -M src/searches/Branch.vala -M src/searches/SavedSearchPage.vala -M src/sidebar/Tree.vala -M src/tags/Branch.vala -M src/tags/TagPage.vala -M src/util/ui.vala -M ui/collection.ui -M ui/direct.ui -M ui/direct_context.ui -M ui/event.ui -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/media.ui -M ui/offline.ui -M ui/photo.ui -M ui/photo_context.ui -M ui/savedsearch.ui -M ui/search_bar.ui -M ui/search_sidebar_context.ui -M ui/set_background_dialog.ui -M ui/sidebar_default_context.ui -M ui/tag_sidebar_context.ui -M ui/tags.ui -M ui/top.ui -M ui/trash.ui - -commit 1206252faec829f23857ceb1e6e5150459e289a8 -Author: Jens Georg -Date: Sat Oct 29 09:53:13 2016 +0200 - - piwigo: Port Option pane to BuilderPane - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/PiwigoPublishing.vala - -commit e8755595eee86d8fc417815f176ebc79da06e523 -Author: Jens Georg -Date: Sat Oct 29 03:16:27 2016 +0200 - - common,piwigo: Add "default" widget to BuilderPane - - Signed-off-by: Jens Georg - -M plugins/common/BuilderPane.vala -M plugins/shotwell-publishing/PiwigoPublishing.vala - -commit 816b12dcd20cdba94f98d317bed67f5738fd6a3b -Author: Jens Georg -Date: Sat Oct 29 03:11:24 2016 +0200 - - piwigo: Port SSL pane to BuilderPane - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/PiwigoPublishing.vala - -commit 941eeecc49cb0131abecce9a163513a3d3d1b135 -Author: Jens Georg -Date: Sat Oct 29 02:47:30 2016 +0200 - - piwigo: Simplify category name parsing a bit - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/PiwigoPublishing.vala - -commit a9a507bf91f5244bef8fb00cc13793723bec5c47 -Author: Jens Georg -Date: Sat Oct 29 02:28:49 2016 +0200 - - piwigo: Port authentication dialog to builder pane - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/PiwigoPublishing.vala - -commit beb3005c4cc8085856ed7f06178434ab45a8784a -Author: Jens Georg -Date: Sat Oct 29 02:28:30 2016 +0200 - - common: Add BuilderPane - - Signed-off-by: Jens Georg - -M Makefile.am -A plugins/common/BuilderPane.vala - -commit bb8acd09cb6107ab3b97ac05dadefb00d83bcb92 -Author: Jens Georg -Date: Fri Oct 21 17:49:10 2016 +0200 - - Remove GtkMisc from SeachFilter - - Signed-off-by: Jens Georg - -M src/SearchFilter.vala - -commit ed928a0f498dd1004105094245b8170107fd7e2c -Author: Jens Georg -Date: Fri Oct 21 17:43:39 2016 +0200 - - De-deprecate SavedSearchDialog - - Signed-off-by: Jens Georg - -M src/searches/SavedSearchDialog.vala - -commit 2dd03b3ea8a50fc031c91f79df65b9d2a4d25b13 -Author: Jens Georg -Date: Fri Oct 21 17:39:09 2016 +0200 - - build: Disable misleading warnings caused by valac - - Signed-off-by: Jens Georg - -M common.am - -commit 8a93cf67b561815fa1f5cec88fcc65f392a4496c -Author: Jens Georg -Date: Wed Oct 19 21:55:14 2016 +0200 - - De-deprecate crop tool - - Signed-off-by: Jens Georg - -M configure.ac -M shotwell.am -M src/editing_tools/EditingTools.vala -A src/org.gnome.Shotwell.gresource.xml - -commit 2c91f2cf6017cd841c621fd10b6a5976623843b9 -Author: Jens Georg -Date: Sat Oct 1 17:27:34 2016 +0200 - - De-deprecate StraightenTool - - Signed-off-by: Jens Georg - -M src/editing_tools/StraightenTool.vala - -commit e1c1bafe21b84457b1c7242ee29c59071e4faad2 -Author: Jens Georg -Date: Sat Oct 1 17:18:44 2016 +0200 - - publishin-extra: Remove deprecations from Yandex - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing-extras/YandexPublishing.vala -M plugins/shotwell-publishing-extras/yandex_publish_model.ui - -commit 7cd7dc282e5f4affac450257a779bdf90b47623d -Author: Jens Georg -Date: Sat Oct 1 17:11:31 2016 +0200 - - publishing-extra: Remove deprecations from Tumblr - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing-extras/TumblrPublishing.vala -M plugins/shotwell-publishing-extras/tumblr_authentication_pane.ui - -commit 2b13b39e6ed1e7da5e5eb19d4c28917c8bdca7b7 -Author: Jens Georg -Date: Sat Oct 1 17:07:17 2016 +0200 - - publishing-extra: Remove deprecations from Rajce - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing-extras/RajcePublishing.vala -M plugins/shotwell-publishing-extras/rajce_authentication_pane.ui - -commit ef0f0e77056ddf95cb2b239b1a5c1a6189b72a91 -Author: Jens Georg -Date: Sat Oct 1 16:49:23 2016 +0200 - - pubishing: Revamp Piwigo dialogs - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/PiwigoPublishing.vala -M plugins/shotwell-publishing/piwigo_authentication_pane.ui -M plugins/shotwell-publishing/piwigo_publishing_options_pane.ui - -commit c3352e8dbee06d582c2b22f40fd629e0ff22f1c0 -Author: Marina Prado -Date: Mon Nov 14 08:48:57 2016 +0000 - - Update Spanish translation - -M po/es.po - -commit 7e1415a56094159709643685d7bb2e47108c9145 -Author: Piotr Drąg -Date: Sun Nov 13 14:33:10 2016 +0100 - - Update Polish translation - -M po/pl.po - -commit f01c6a9ca870fd4c1f5150e1c53cb47c817503e1 -Author: Marina Prado -Date: Fri Nov 11 12:44:40 2016 +0000 - - Update Spanish translation - -M po/es.po - -commit c8cacef72095daef28bc71945b7bd42ab40662ce -Author: Jens Georg -Date: Fri Nov 11 00:32:04 2016 +0100 - - Prevent dropping the index on evey start - - Signed-off-by: Jens Georg - -M src/db/PhotoTable.vala - -commit e969f1839544e7555f8f52d68f3279bffec33be7 -Author: Marek Cernocky -Date: Thu Nov 10 12:50:12 2016 +0100 - - Updated Czeach translation - -M po/cs.po - -commit b836f7f8f90c4a8ebf0365464306742f17f614ad -Author: Marina Prado -Date: Thu Nov 10 10:16:00 2016 +0000 - - Update Spanish translation - -M po/es.po - -commit e09cc440be5545515814e244fba1fa6aa5555cde -Author: Jens Georg -Date: Wed Nov 9 22:21:57 2016 +0100 - - Use ngettext for some plural forms - - Signed-off-by: Jens Georg - -M src/Resources.vala - -commit 55a29cabf8e46a0db6a66672a062e666d981a9be -Author: Jens Georg -Date: Wed Nov 9 21:48:26 2016 +0100 - - Remove uniqueness of PhotoTableMD5Format index - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=772223 - -M src/db/PhotoTable.vala - -commit a35867695dff4478a3c60087611cb90e5b7d8692 -Author: Baurzhan Muftakhidinov -Date: Wed Nov 9 09:20:17 2016 +0000 - - Update Kazakh translation - -M po/kk.po - -commit 098e84788934f41d216c49d58740af5c212b5697 -Author: Rūdolfs Mazurs -Date: Tue Nov 8 23:33:53 2016 +0200 - - Update Latvian translation - -M help/lv/lv.po - -commit ea3d4296160051b1c980cc5df131da6f6c80b1e1 -Author: Rūdolfs Mazurs -Date: Tue Nov 8 23:30:18 2016 +0200 - - Update Latvian translation - -M help/lv/lv.po -M po/lv.po - -commit 7a4d6d810dd54fce9cee905a10b60615494a922c -Author: Marek Černocký -Date: Tue Nov 8 08:15:11 2016 +0100 - - Updated Czech translation - -M po/cs.po - -commit d135612c2cc079253021b5c757ca386d7c706d31 -Author: Jens Georg -Date: Mon Nov 7 23:59:11 2016 +0100 - - Dist misc.vapi - - Signed-off-by: Jens Georg - -M Makefile.am - -commit d5c9ffb6e430ce641c657e390107311e105671f5 -Author: Damian Pietras -Date: Mon Nov 7 13:29:00 2016 +0000 - - thumbnailer: fix double close() - - A file descriptor used to communicate with the video thumbnailer - process is - closed twice. In case another thread allocates the same descriptor - number in - the meantime, the second close() actually closes a descriptor not - owned by the - thread. This causes crashes in most cases or unexpected behaviour. - - https://bugzilla.gnome.org/show_bug.cgi?id=774057 - -M src/VideoSupport.vala - -commit 22908394f043723c78f90a9143b04338108fca09 -Author: Marina Prado -Date: Mon Nov 7 10:29:36 2016 +0000 - - Update Spanish translation - -M po/es.po - -commit 4a325a09618a6f4f02067207a525fd54d3e04b99 -Author: Marina Prado -Date: Fri Nov 4 11:59:02 2016 +0000 - - Update Spanish translation - -M po/es.po - -commit bcdc5e49bc065e2e60449d6b4d50c15a04b85b57 -Author: Marina Prado -Date: Fri Nov 4 07:53:51 2016 +0000 - - Update Spanish translation - -M po/es.po - -commit c852ecce570cf5c261808539f8825cd0f72f27e4 -Author: Marina Prado -Date: Thu Nov 3 09:08:39 2016 +0000 - - Update Spanish translation - -M po/es.po - -commit bca67bfe286a1d67e19f82391f1bf4650a43e2bf -Author: Jens Georg -Date: Tue Nov 1 21:11:55 2016 +0100 - - Fix missing parameters in Tumblr publisher - - Fix by Jürg Billeter - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing-extras/TumblrPublishing.vala - -commit 2f4504d78d29ccb80145b596a25e6fefe5f9c656 -Author: Jens Georg -Date: Sat Oct 29 12:23:17 2016 +0200 - - common: Remove extra box around webview - - Signed-off-by: Jens Georg - -M plugins/common/WebAuthenticationPane.vala - -commit c941492caa504aae3c8a695f45d49c9a8c502b46 -Author: Jens Georg -Date: Sat Oct 29 02:09:36 2016 +0200 - - publishing: Fix resource dependencies - - Signed-off-by: Jens Georg - -M publish.am - -commit 8999db51f67aeab1507d182742adc689dfbd9bb1 -Author: Jens Georg -Date: Sat Oct 29 01:01:54 2016 +0200 - - Remove deprecated Soup API - - Signed-off-by: Jens Georg - -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing-extras/YandexPublishing.vala -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit 6efc613556a6128c2e2a91bc5f528d183ad8710c -Author: Jens Georg -Date: Wed Oct 26 13:23:06 2016 +0200 - - Update debian - - - Add dependency to gcr3 - - Fix typo in rules file - - Bump gexiv2 requirements - - Signed-off-by: Jens Georg - -M debian/control -M debian/rules - -commit 65628886da590e2c290869d39b678fd6abe81673 -Author: Rūdolfs Mazurs -Date: Sun Oct 30 23:21:11 2016 +0200 - - Update Latvian translation - -M help/Makefile.am -A help/lv/figures/trash_process.png -A help/lv/lv.po - -commit a82f9cfc23aad68f953a5e3414349a3e12a124e2 -Author: Mario Blättermann -Date: Sun Oct 30 18:10:17 2016 +0000 - - Update German translation - -M po/de.po - -commit 8cc28654affe568f156bc74a20fb4959160ac872 -Author: Jens Georg -Date: Mon Oct 24 20:09:08 2016 +0200 - - Prepare 0.25.0 release - - Signed-off-by: Jens Georg - -M NEWS -M debian/changelog - -commit cec1eee8af5a79d2091c9b9b6bc26fab0593105d -Author: Jens Georg -Date: Mon Oct 24 21:07:33 2016 +0200 - - Distribute SSL ui panel - - Signed-off-by: Jens Georg - -M publish.am - -commit ece15b26e968e76a9165ba4fdacfcde5a425fc38 -Author: Jens Georg -Date: Sun Oct 16 22:20:14 2016 +0200 - - Enable SQL debugging through environment variable - - Signed-off-by: Jens Georg - -M src/db/DatabaseTable.vala - -commit 68d021e037a95e77cea4afdd850378f1c52cd36e -Author: Jens Georg -Date: Wed Oct 19 21:02:36 2016 +0200 - - Hide "Folder" sidebar when empty - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=719127 - -M src/folders/Branch.vala - -commit 1f07d737505a2c4ecc7c2ed0e415a9f8b9f4bd26 -Author: Jens Georg -Date: Tue Oct 18 22:28:33 2016 +0200 - - Blacklist vaapi decoder - - That makes things actually slow since it start-up isn't the best in - the world - and doesn't like to be triggered from multiple threads, causing - the abort. - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=762416 - -M src/VideoSupport.vala -M thumbnailer/shotwell-video-thumbnailer.vala - -commit ec20147df422a340e7741586a193e50840bcb268 -Author: Rico Tzschichholz -Date: Tue Oct 18 10:40:54 2016 +0200 - - Remove superfluous parentheses - -M plugins/shotwell-transitions/CircleEffect.vala - -commit 156a835a878a89767414dd12421af73a06c77c92 -Author: Marek Černocký -Date: Sun Oct 16 22:01:01 2016 +0200 - - Updated Czech translation - -M po/cs.po - -commit 2db8881d70cd53fa2d26860a2598054798a06706 -Author: Gábor Kelemen -Date: Tue Oct 11 07:45:50 2016 +0000 - - Update Hungarian translation - -M po/hu.po - -commit be57cf35c101c8a3901d4a166e20cb2e1baa7fdb -Author: Jordi Mas -Date: Sun Oct 9 20:02:48 2016 +0200 - - Update Catalan translation - -M po/ca.po - -commit b7b9736c93ec86cc5d14ac7994b3ad18b10594b0 -Author: Jens Georg -Date: Sun Oct 9 18:53:48 2016 +0200 - - libraw.vapi: Remove member added by accident - - Signed-off-by: Jens Georg - -M vapi/libraw.vapi - -commit 0b56e8c667739120eba0eeee74cf7d2bbc4b5447 -Author: Jens Georg -Date: Sun Oct 9 18:42:17 2016 +0200 - - piwigo: Fix creation of new albums - - Boolean is hard, to many states. Regression introduced by - 9d2b698023366e95baddbb677118a50e27bd6e8e - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=772648 - -M plugins/shotwell-publishing/PiwigoPublishing.vala - -commit b3debfb7bf14d01afb008a9debd28160a8100071 -Author: Jens Georg -Date: Sun Oct 9 18:25:12 2016 +0200 - - libraw.vapi: Improve thumbnail binding - - Signed-off-by: Jens Georg - -M vapi/libraw.vapi - -commit aade605b107272bd5a2c189f2dfec7f4ce6eb227 -Author: Jens Georg -Date: Sat Oct 8 21:41:43 2016 +0200 - - Fix typo in settings schema - - Signed-off-by: Jens Georg - -M misc/org.yorba.shotwell.gschema.xml - -commit 3d55565cd36130cd9a3fcfc49a925fa9d13a06b2 -Author: Piotr Drąg -Date: Sun Oct 9 08:55:32 2016 +0200 - - Update Polish translation - -M po/pl.po - -commit 91f0804130cb87aaf0cdfe1c58b2740c4748fedd -Author: Rico Tzschichholz -Date: Sat Oct 8 17:27:59 2016 +0200 - - photos: Fix build with vala git - - Default values must be at least as accessible as the methods which - require - them. - -M src/photos/PhotoMetadata.vala - -commit 826f2947caefe311006bc45e9420ed325002ad00 -Author: Jens Georg -Date: Sat Oct 8 16:50:36 2016 +0200 - - Port to new SoupSession API - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=767126 - -M configure.ac -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit 2782abad7798f48a4c6c032eafba3f19bc829767 -Author: Jens Georg -Date: Sat Oct 1 00:26:26 2016 +0200 - - Make export dialog deprecated free - - Signed-off-by: Jens Georg - -M src/Dialogs.vala - -commit e3c78dc5689d2f02efa70871521b71efafcb319c -Author: Jens Georg -Date: Tue Oct 4 23:32:51 2016 +0200 - - Use GSettings default for export dialog - - Signed-off-by: Jens Georg - -M misc/org.yorba.shotwell.gschema.xml -M src/Dialogs.vala -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala - -commit 8b95f0de193e63fc7e87d1121d3ef8b26dceb86c -Author: Jens Georg -Date: Tue Oct 4 22:33:14 2016 +0200 - - Persist export dialog settings - - Based on original patch by Jonas Bushart. - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=716259 - -M misc/org.yorba.shotwell.gschema.xml -M src/Dialogs.vala -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala - -commit 1b73d9e16be8a73193062507c01877a937b305fc -Author: Jens Georg -Date: Tue Oct 4 22:29:45 2016 +0200 - - Remove deprecated GSettings calls - - Signed-off-by: Jens Georg - -M common.am -M configure.ac -M src/config/GSettingsEngine.vala - -commit cb225f8db79e7b234447a37fc52e00f6e8a26903 -Author: Jens Georg -Date: Sat Oct 8 14:26:21 2016 +0200 - - Update git.mk - - Signed-off-by: Jens Georg - -M git.mk - -commit b2b95c292d5440812e5c92ee4869727e1dbf71d0 -Author: Rafael Fontenelle -Date: Thu Oct 6 11:47:55 2016 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit 8d823173ee9df9745c851556b7617e495c54a44d -Author: Jens Georg -Date: Tue Oct 4 21:35:38 2016 +0200 - - Remove old GTK+ work-around - - Signed-off-by: Jens Georg - -M src/Dialogs.vala - -commit ba8801a1e47d8e329b47db39678ebab6e02eef2a -Author: Marek Černocký -Date: Tue Oct 4 14:22:12 2016 +0200 - - Updated Czech translation - -M po/cs.po - -commit 58e1e1b744226654692a742064577c3452995d9b -Author: Gábor Kelemen -Date: Tue Oct 4 08:43:19 2016 +0000 - - Updated Hungarian translation - -M po/hu.po - -commit 6afddeff92a119f5198c5c671e8431952bdd36ab -Author: Jens Georg -Date: Mon Oct 3 22:12:01 2016 +0200 - - piwigo: Prevent a critical - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/PiwigoPublishing.vala - -commit fbee9252109833a0d63311408b114a01273aced7 -Author: Piotr Drąg -Date: Mon Oct 3 15:19:08 2016 +0200 - - Update POTFILES.in - -M po/POTFILES.in - -commit 8560752d671dfa4991dbdba3a4b57afb356efcc5 -Author: Jens Georg -Date: Mon Oct 3 14:39:24 2016 +0200 - - piwigo: Add option to show the certificate - - So the user can inspect the certificate before proceeding - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=767473 - -M configure.ac -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing/PiwigoPublishing.vala -M plugins/shotwell-publishing/piwigo_ssl_failure_pane.ui -M publish.am - -commit 9c2aa03dde6538800ab3916635444c343058f462 -Author: Jens Georg -Date: Sun Oct 2 19:41:48 2016 +0200 - - piwigo: Add option to override the SSL verification - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=767473 - -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing/PiwigoPublishing.vala -M -plugins/shotwell-publishing/org.gnome.Shotwell.Publishing.gresource.xml -A plugins/shotwell-publishing/piwigo_ssl_failure_pane.ui - -commit 73007e5797dbcf4003d771ac0c4725989db513f1 -Author: Piotr Drąg -Date: Mon Oct 3 13:23:23 2016 +0200 - - Updated Polish translation - -M po/pl.po - -commit 1a76ac6f4210c0f3707dcc5e719377279ad85ddb -Author: Piotr Drąg -Date: Mon Oct 3 13:21:13 2016 +0200 - - Remove one more instance of double spaces - -M src/Dialogs.vala - -commit b173946ec6ed21f6ec264b0e87dcdac8654e6c0c -Author: Gábor Kelemen -Date: Mon Oct 3 09:50:53 2016 +0000 - - Updated Hungarian translation - -M po/hu.po - -commit ec738035daf4a7dd3373fd280a11f575a5985ec6 -Author: Marek Černocký -Date: Mon Oct 3 11:39:46 2016 +0200 - - Updated Czech translation - -M po/cs.po - -commit 7ee95d4059c6f4ec8b5ee1583a73864d8b412540 -Author: Piotr Drąg -Date: Sun Oct 2 18:17:47 2016 +0200 - - Remove double spaces from translatable strings - - https://bugzilla.gnome.org/show_bug.cgi?id=772339 - -M plugins/shotwell-publishing/FlickrPublishing.vala -M src/AppWindow.vala -M src/Dialogs.vala -M src/Exporter.vala -M src/camera/ImportPage.vala -M src/main.vala - -commit 3d2acfe4204629df7fe62098e2c1810949776dca -Author: Piotr Drąg -Date: Sun Oct 2 18:12:57 2016 +0200 - - Fix spelling of "YouTube" - - https://bugzilla.gnome.org/show_bug.cgi?id=772339 - -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit 96a2343b3673c25fb398972cf1036ced664e3162 -Author: Piotr Drąg -Date: Sun Oct 2 18:11:51 2016 +0200 - - Fix spelling of "log in" - - "Log in" is the verb, "login" is the noun. - - https://bugzilla.gnome.org/show_bug.cgi?id=772339 - -M plugins/shotwell-publishing-extras/RajcePublishing.vala -M plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui -M plugins/shotwell-publishing-extras/rajce_authentication_pane.ui -M plugins/shotwell-publishing-extras/tumblr_authentication_pane.ui -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/piwigo_authentication_pane.ui -M ui/shotwell.ui - -commit 7c0ad89676d662965388080f61d61359fd65fe35 -Author: Piotr Drąg -Date: Sun Oct 2 18:05:33 2016 +0200 - - Use Unicode in translatable strings - - See https://developer.gnome.org/hig/stable/typography.html - - https://bugzilla.gnome.org/show_bug.cgi?id=772339 - -M misc/org.yorba.shotwell.gschema.xml -M misc/shotwell.appdata.xml.in -M plugins/shotwell-publishing-extras/GalleryConnector.vala -M plugins/shotwell-publishing-extras/RajcePublishing.vala -M plugins/shotwell-publishing-extras/TumblrPublishing.vala -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/PiwigoPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -M src/AppWindow.vala -M src/Commands.vala -M src/Dialogs.vala -M src/MediaPage.vala -M src/Printing.vala -M src/Resources.vala -M src/camera/ImportPage.vala -M src/data_imports/DataImportsPluginHost.vala -M src/editing_tools/EditingTools.vala -M src/main.vala -M src/publishing/PublishingPluginHost.vala - -commit 9d2cf3536841ac0334c2ae6226fa3ed708a5b82b -Author: Piotr Drąg -Date: Sun Oct 2 13:15:26 2016 +0200 - - Updated Polish translation - -M po/pl.po - -commit 63f541a70fa8cee7b2e4e5db1f14951175aa9e42 -Author: Gábor Kelemen -Date: Sun Oct 2 08:07:14 2016 +0000 - - Updated Hungarian translation - -M po/hu.po - -commit 71f3951a5c9263b73e579435e7d738776679ba2f -Author: Jens Georg -Date: Sat Oct 1 18:16:14 2016 +0200 - - Introduce common class for WebKit authenticator - - This was implemented/copied three times... - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=772295 - -M Makefile.am -M plugins/common/RESTSupport.vala -A plugins/common/WebAuthenticationPane.vala -M plugins/shotwell-publishing-extras/YandexPublishing.vala -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit 5270d097485c7ca2f4729adc598d381c85491988 -Author: Jens Georg -Date: Sat Oct 1 17:50:10 2016 +0200 - - build: Silence some C warnings - - Signed-off-by: Jens Georg - -M Makefile.am -M common.am - -commit cbb516968f97762cc3e80cc47a7a4904e8062772 -Author: Jens Georg -Date: Sat Oct 1 16:11:55 2016 +0200 - - Remove deprecated call from util/image.vala - - Signed-off-by: Jens Georg - -M src/util/image.vala - -commit 389e23b763a851a93cb6b2b8e4bd0165e754d7c5 -Author: Rico Tzschichholz -Date: Fri Sep 30 18:58:54 2016 +0200 - - Fix non-matching generic types of inferface implementations - -M src/Tag.vala - -commit c5b028b808a0f35344872677a0bcd1ae2b625a5d -Author: Daniel Mustieles -Date: Fri Sep 30 10:19:59 2016 +0000 - - Updated Spanish translation - -M po/es.po - -commit 9dae1046df856f922419e57048d87ad878979f41 -Author: Mario Blättermann -Date: Fri Sep 30 07:05:07 2016 +0000 - - Updated German translation - -M po/de.po - -commit 87dfca02f666fb9e903dd8cdcc3fd6ac98111841 -Author: Marek Černocký -Date: Fri Sep 30 07:40:58 2016 +0200 - - Updated Czech translation - -M po/cs.po - -commit 5f569b1bcf3c387243e3f63326413a7d7f572bad -Author: Jens Georg -Date: Thu Sep 29 23:06:43 2016 +0200 - - Fix copy-paste error - - Signed-off-by: Jens Georg - -M src/photos/PhotoMetadata.vala - -commit cb79cb4e5681a5069fb66e655b747cece133a004 -Author: Jens Georg -Date: Thu Sep 29 13:12:38 2016 +0200 - - Replace ... with … - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=765149 - -M src/AppWindow.vala -M src/Dialogs.vala -M src/Printing.vala -M src/Resources.vala -M src/camera/ImportPage.vala -M src/direct/DirectPhotoPage.vala -M src/library/ImportQueuePage.vala -M src/library/LibraryWindow.vala -M src/library/OfflinePage.vala -M src/main.vala -M src/plugins/Plugins.vala -M src/publishing/PublishingUI.vala -M src/searches/Branch.vala -M src/sidebar/Tree.vala -M src/tags/HierarchicalTagUtilities.vala -M ui/direct.ui -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/media.ui -M ui/offline.ui -M ui/photo.ui -M ui/trash.ui - -commit 515e311ca1f0bcef525e5beee7075a4474b87676 -Author: Jens Georg -Date: Thu Sep 29 08:55:48 2016 +0200 - - Bump gexiv2 requirement to 0.10.4 - - Necessary for a bugfix required for proper ACDSEE tag support - - Signed-off-by: Jens Georg - -M configure.ac - -commit 9218b13bd7ef86e8f3f7de7e98b6ac64f6dd162a -Author: Jens Georg -Date: Tue Sep 20 21:19:31 2016 +0200 - - Support acdsee tags - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=718586 - -M shotwell.am -M src/photos/PhotoMetadata.vala -A vapi/misc.vapi - -commit 912cd8b707bf4fbe91c99314bd17fa928da23cf2 -Author: Jens Georg -Date: Wed Sep 28 23:32:01 2016 +0200 - - Remove warning about obsolete style property - - Signed-off-by: Jens Georg - -M src/Resources.vala - -commit d821a4a49f357005bab6c71f0fb7116491d2bf96 -Author: Jens Georg -Date: Wed Sep 28 23:11:32 2016 +0200 - - Fix focus handling of fullscreen viewer - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=771969 - -M src/AppWindow.vala - -commit f343d9a359e2924e2498c7287222f79e3e2d867c -Author: Jens Georg -Date: Sat Sep 17 08:33:23 2016 +0200 - - Fix side-casting issues in generics handling - - Signed-off-by: Jens Georg - -M src/MediaDataRepresentation.vala -M src/MediaMonitor.vala -M src/PhotoPage.vala -M src/Tag.vala -M src/core/ContainerSourceCollection.vala -M src/core/ViewCollection.vala - -commit bddc2ea7151c81e8979b3342fc89921600d4b45d -Author: Mario Blättermann -Date: Sun Sep 25 17:16:35 2016 +0000 - - Updated German translation - (cherry picked from commit 230a0b28eb7b0a671ac549e85329beefddbc06eb) - -M help/de/de.po - -commit 3a25208a2aa69a347a0d8a915dd8b8dd6c72614f -Author: Piotr Drąg -Date: Sat Sep 24 22:20:06 2016 +0200 - - Updated Polish translation - -M po/pl.po - -commit 968da8e0998ff561d29d6e8324461779618725ad -Author: Benedikt M. Thoma -Date: Fri Sep 23 17:11:56 2016 +0000 - - Updated German translation - -M po/de.po - -commit 4e2911b6fa27b272552ea9f5d39ed85c55461010 -Author: Rafael Fontenelle -Date: Fri Sep 23 00:35:09 2016 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit 3c9f707f29e5cee407603ef9128e843e35d42969 -Author: Rafael Fontenelle -Date: Fri Sep 23 00:32:10 2016 +0000 - - Updated Brazilian Portuguese translation - (cherry picked from commit f4b68102e46f3fa896438db753b39f4b413107bb) - -M po/pt_BR.po - -commit c056c251eb469e70d488c013b46b2a8f7875f038 -Author: Balázs Meskó -Date: Thu Sep 22 18:26:05 2016 +0000 - - Updated Hungarian translation - -M po/hu.po - -commit 0ebdf12e12fc12899e72db4b59edf8d65d0e0e23 -Author: Jordi Mas -Date: Thu Sep 22 19:55:58 2016 +0200 - - Fix in Catalan translation - -M po/ca.po - -commit 270f26ce715c1f178fd707e7a648ad4433ee87cc -Author: Jens Georg -Date: Wed Sep 21 21:44:42 2016 +0200 - - Fix mixup when clicking Reset - - Signed-off-by: Jens Georg - -M src/editing_tools/EditingTools.vala - -commit 15bf3742ff2fd23605713d092d3d961fee58ab72 -Author: Marek Černocký -Date: Wed Sep 21 21:35:44 2016 +0200 - - Updated Czech translation - -M po/cs.po - -commit dbe7eed4fe3e088319903385e0a07ed46154f512 -Author: Jens Georg -Date: Wed Sep 21 21:00:47 2016 +0200 - - Add debug output of shotwell's current timezone - - Support debugging of date/time related issues - - Signed-off-by: Jens Georg - -M src/main.vala - -commit 0046657c9f16706231be2194ed3d085ccb543c05 -Author: Jens Georg -Date: Wed Sep 21 20:56:07 2016 +0200 - - Add debug log when shifting events - - This is to better be able to determine whether the event duplication - reported - in several bugs is happening due to event shifting - - Signed-off-by: Jens Georg - -M src/Event.vala - -commit 36d0265618b504d1c1d6187bf04709dd60d0a9ce -Author: Josh Freeman -Date: Sun Jul 3 20:44:04 2016 +0200 - - Add contrast adjustments to settings - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=716660 - -M src/ColorTransformation.vala -M src/editing_tools/EditingTools.vala - -commit bb1fa45a0de8cffda51363db0b6d5b4bbaf3592d -Author: Jens Georg -Date: Tue Sep 20 21:10:15 2016 +0200 - - Post-release version bump - - Signed-off-by: Jens Georg - -M configure.ac - -commit b6d70e14df54f4cf39f050682271f5cdd7b52aa8 -Author: Anders Jonsson -Date: Wed Sep 21 11:26:55 2016 +0000 - - Updated Swedish translation - -M help/sv/sv.po - -commit c6d5fe9bb77d97c534f8239c6331dc1f41df324b -Author: Jens Georg -Date: Tue Sep 20 21:02:10 2016 +0200 - - Prepare Shotwell 0.24 - - Signed-off-by: Jens Georg - -M NEWS -M configure.ac - -commit 2d300134b66139f3dc18577bedf83266a3e0b13c -Author: Jens Georg -Date: Sun Sep 18 20:02:34 2016 +0200 - - Fix leak while scrolling - - Signed-off-by: Jens Georg - -M src/core/DataObject.vala - -commit 14b8ae055f24b81b802ec83fcd2487c03a17630f -Author: Bernd Homuth -Date: Mon Sep 19 15:00:09 2016 +0000 - - Updated German translation - (cherry picked from commit 728b17e779c2c27941ecfa74037beb1025f85fe6) - -M po/de.po - -commit 611ccd55e58b40ab6a4a718a154ea0d001d8e433 -Author: Marek Černocký -Date: Mon Sep 19 08:50:33 2016 +0200 - - Updated Czech translation - -M po/cs.po - -commit c569aec6cd42816b39c81c0da65c5e8790915bd5 -Author: Christian Kirbach -Date: Sun Sep 18 19:11:29 2016 +0000 - - Updated German translation - (cherry picked from commit 0f346cc9cc410ede68f8b8d6abe113792f87a3e1) - -M po/de.po - -commit 998f2217574d2afbbe54cd17e473eb6b511adc1b -Author: Daniel Mustieles -Date: Tue Sep 13 20:25:15 2016 +0200 - - Updated Spanish translation - -M po/es.po - -commit 15e7e747cddb9f38631a3f8f658d7201c3c7969a -Author: Marek Černocký -Date: Tue Sep 13 11:17:45 2016 +0200 - - Updated Czech translation - -M help/cs/cs.po - -commit 5890d3a28c65c6cd1b5f045553db189b4dd515b8 -Author: Jens Georg -Date: Mon Aug 29 21:34:31 2016 +0200 - - Prepare 0.23.7 - - Signed-off-by: Jens Georg - -M NEWS -M configure.ac -M debian/changelog - -commit ac1a7e199a839938afd995b619a8e6390e0f18a1 -Author: Piotr Drąg -Date: Sat Sep 10 19:14:36 2016 +0200 - - Updated Polish translation - -M po/pl.po - -commit 5877c476006587906d1ea8e08b0ce9a873da02da -Author: Marek Černocký -Date: Sun Sep 4 10:45:58 2016 +0200 - - Updated Czech translation - -M po/cs.po - -commit 8d4610d44b4a3e8caf161ef7dd2b35a70ffa5712 -Author: Marek Černocký -Date: Sun Sep 4 10:42:50 2016 +0200 - - Updated Czech translation - -M po/cs.po - -commit da24ba3195f6a8bf0953c5126a96aa27aa553239 -Author: Мирослав Николић -Date: Sat Sep 3 17:28:59 2016 +0200 - - Updated Serbian translation - -M po/sr.po -M po/sr@latin.po - -commit 54b9a8f3393b5dba6572ad97d8b9e307d24ad2e8 -Author: Boram Kim -Date: Sat Sep 3 12:59:02 2016 +0000 - - Updated Korean translation - -M po/ko.po - -commit 4b627b459d511e94f75150e5f573efea25643308 -Author: Balázs Úr -Date: Mon Aug 29 21:36:26 2016 +0000 - - Updated Hungarian translation - -M po/hu.po - -commit 79dc5aab2b6eeb63654d593c841a7e477686eb77 -Author: Jens Georg -Date: Mon Aug 29 21:08:14 2016 +0200 - - Prepare 0.23.6 - - Signed-off-by: Jens Georg - -M NEWS - -commit 2b188c92f3863879680bd87dadd4306afe92853e -Author: Jens Georg -Date: Sun Aug 28 23:12:18 2016 +0200 - - Revert accidental Gtk.Alignment changes - - Signed-off-by: Jens Georg - -M src/Dialogs.vala - -commit e622ff00005d2f8208a634e610f46b8dad19e340 -Author: Piotr Drąg -Date: Sun Aug 28 14:18:48 2016 +0200 - - Updated Polish translation - -M po/pl.po - -commit 015e91e2d630619589ba80a5a45dd6d485f6cdcb -Author: Jens Georg -Date: Sat Aug 27 15:15:37 2016 +0200 - - Make thm a recognized extension for JPEG - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=759246 - -M src/Dialogs.vala -M src/photos/JfifSupport.vala - -commit 50988f92f8d4021b6245598f7cb55a16f928226c -Author: Jens Georg -Date: Fri Aug 26 23:24:18 2016 +0200 - - import: Improve messages on empty camera - - Tell the user that the camera is considered empty instead of stating - "Starting - import" forever. - - Also, improve wording on no files to import because "hide already - imported" is - active and no new files are available - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=718796 - -M src/camera/ImportPage.vala - -commit 901d0440b6f4b4f04ef9e888893e0999ec52e890 -Author: Jens Georg -Date: Fri Aug 26 22:23:50 2016 +0200 - - Fix rename tags/saved searches - - So that it is possible to right-click anywhere in the row and have the - text entry activated correctly instead of just working when clicking - on the - text itself. - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=731480 - -M src/sidebar/Tree.vala - -commit ceffbe7129a91114611e134f666897669c0b3bcd -Author: Rūdolfs Mazurs -Date: Thu Aug 25 21:00:02 2016 +0300 - - Update Latvian translation - -M po/lv.po - -commit c3f68006d0211f88deff3a07afd13e72e3334030 -Author: Rūdolfs Mazurs -Date: Wed Aug 24 22:05:31 2016 +0300 - - Update Latvian translation - -M po/lv.po - -commit 937a2e1f326d4afed9f48b39cbdee4c196a01c0c -Author: Rūdolfs Mazurs -Date: Wed Aug 24 21:43:38 2016 +0300 - - Update Latvian translation - -M po/lv.po - -commit 52f070abda1afda26c8c269e61a89fbb20fec879 -Author: Christian Kirbach -Date: Tue Aug 23 18:49:13 2016 +0000 - - Updated German translation - -M help/de/de.po - -commit 28cd09c496da5c85804d68de16bc45869cf61eda -Author: Jens Georg -Date: Tue Aug 23 20:05:44 2016 +0200 - - Remove langinfo.vapi - - Was already contained in Posix vapi, missed that - - Signed-off-by: Jens Georg - -M Makefile.am -M shotwell.am -M src/Printing.vala -M src/Resources.vala -D vapi/langinfo.vapi - -commit 6ee5fcb96b1c799eebc09a65b9b30b37612bfdc1 -Author: Jens Georg -Date: Fri Aug 19 08:54:37 2016 +0200 - - Remove LConv in favor of langinfo - - Signed-off-by: Jens Georg - -M Makefile.am -M shotwell.am -M src/Printing.vala -D vapi/LConv.vapi - -commit 45dfd3402677d91d9efaea99f4fb6eb7a630c299 -Author: Jens Georg -Date: Tue Aug 16 21:02:34 2016 +0200 - - Sort out locale-dependent times - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=716533 - -M Makefile.am -M shotwell.am -M src/Resources.vala -A vapi/langinfo.vapi - -commit 5ab55d5b1b00a1879f19c68ba8831fed92793894 -Author: Jens Georg -Date: Tue Aug 16 12:43:12 2016 +0200 - - debian: Update - - - New Changelog - - Remove librest requirement - - Recommend desktop-file-utils - - Signed-off-by: Jens Georg - -M debian/changelog -M debian/control - -commit c531cf7afba01fb0ad1cabdd3fc1cc6f7a994a6e -Author: Balázs Úr -Date: Sat Aug 20 11:45:30 2016 +0000 - - Updated Hungarian translation - -M help/hu/hu.po - -commit 44456ead0265e3cbd07916ae730e7a76b33070e0 -Author: Mario Blättermann -Date: Thu Aug 18 20:06:06 2016 +0000 - - Updated German translation - -M help/de/de.po - -commit 150ceadb6bc68b2d19e646ba43bdcf916fa4325c -Author: Balázs Meskó -Date: Wed Aug 17 15:25:08 2016 +0000 - - Updated Hungarian translation - -M po/hu.po - -commit 4950ba1bff31cca61740de4d0e3321d4c880591b -Author: Piotr Drąg -Date: Tue Aug 16 09:35:41 2016 +0200 - - Updated Polish translation - -M po/pl.po - -commit dde70c9f059d5a3f023effaa49e0a461d5b0efe3 -Author: Jens Georg -Date: Mon Aug 15 20:49:58 2016 +0200 - - Post-release version bump - - Signed-off-by: Jens Georg - -M configure.ac - -commit 1abdf94cb09efcb66b6d9ecfe27533234ce43117 -Author: Jens Georg -Date: Mon Aug 15 20:06:08 2016 +0200 - - Prepare 0.23.5 - - Signed-off-by: Jens Georg - -M NEWS - -commit 1cc6334df12fe3d56b6e10216e6a98c43d3c274e -Author: Jens Georg -Date: Mon Aug 15 20:37:40 2016 +0200 - - Fix make distcheck - - Signed-off-by: Jens Georg - -M Makefile.am -M import.am -M publish-extra.am -M publish.am -M transition.am - -commit 108c52cc14224ff0cd128afca4f85607fab2aa59 -Author: Jens Georg -Date: Mon Aug 15 10:33:13 2016 +0200 - - debian: Bump compat to get libexecdir without pkgname - - Signed-off-by: Jens Georg - -M debian/compat - -commit 2e245bfc0b6e94acf53793bddfeded7573925ccc -Author: Jens Georg -Date: Mon Aug 15 10:32:33 2016 +0200 - - Fix settings migrator and thumbnailer path - - Signed-off-by: Jens Georg - -M src/AppDirs.vala - -commit df59088bb8a4ec62a4c77ca99be51ca05ef6cca0 -Author: Jens Georg -Date: Mon Aug 15 09:24:18 2016 +0200 - - Temporarily drop gettext requirement - - The macro doesn't seem to understand that 1.19.8.1 is newer that - 1.19.8 - - Signed-off-by: Jens Georg - -M configure.ac - -commit 4b5002105dbd398672fbcd0ea3be351b9e0eb77d -Author: Enrico Nicoletto -Date: Sun Aug 14 21:57:23 2016 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit 5079bf096992f2120b19664c04ad7a6a010e68e0 -Author: Piotr Drąg -Date: Sun Aug 14 23:47:08 2016 +0200 - - Updated Polish translation - -M po/pl.po - -commit b2003e04bab5ab82b7268c33db84496289f07c98 -Author: Yosef Or Boczko -Date: Sun Aug 14 18:18:52 2016 +0300 - - Updated Hebrew translation - -M po/he.po - -commit 5fd7f10a1282306d2efdad48b5a2f417e0a3ea65 -Author: Jens Georg -Date: Sun Aug 14 01:30:01 2016 +0200 - - Re-add --disable-extra-plugins configure option - - Signed-off-by: Jens Georg - -M Makefile.am -M configure.ac - -commit 50d09d62facee9f38413d47f13d49780fba4b6ce -Author: burningTyger -Date: Fri Aug 5 18:59:25 2016 +0200 - - Update org.yorba.shotwell.gschema.xml - - typo - -M misc/org.yorba.shotwell.gschema.xml - -commit f779defe2b68396876c670dcb8735590a007c329 -Author: Jens Georg -Date: Fri Aug 12 19:01:47 2016 +0200 - - Explicitly link plugins - - Also, drop dependency on librest. Apparently it was only used for - hmac_sha1. - - Signed-off-by: Jens Georg - -M configure.ac -M import.am -M publish-extra.am -M publish.am -M shotwell.am -M transition.am - -commit 4e81e449e2f12022c394ebc5383e06fdd3c1eb4d -Author: Jens Georg -Date: Fri Aug 12 19:01:16 2016 +0200 - - git: Ignore resource.c - - Signed-off-by: Jens Georg - -M Makefile.am - -commit 5ccfd5ddd611a0715e0a682003db35a1cfcbeb30 -Author: Daniel Landau -Date: Fri Jul 22 11:10:54 2016 +0300 - - Add option to filter by saved search - - https://bugzilla.gnome.org/show_bug.cgi?id=717321 - -M src/CollectionPage.vala -M src/SearchFilter.vala -M src/library/FlaggedPage.vala -M src/library/OfflinePage.vala -M src/library/TrashPage.vala -M src/searches/SavedSearchDialog.vala - -commit 932c069ee35dff32d92b0a1ff04273210c77f684 -Author: Jens Georg -Date: Fri Aug 12 12:05:43 2016 +0200 - - SSL: Make it more clear that something failed - - First step of improved SSL communication. Make it more clear that - something - unrecoverably failed with SSL instead of just re-displaying the - auth page. - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=767473 - -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing/PiwigoPublishing.vala -M src/plugins/PublishingInterfaces.vala - -commit 644f056255e903d56eff4a152911da86ea164803 -Author: Andreas Brauchli -Date: Thu Aug 11 15:08:10 2016 +0200 - - Implement linked tags - - The tag list underneath the thumbnails is now interactive: - * Hover over a tag to highlight it by underlining the tag text, - unless dragging is active. - * Click a tag to switch to the tag page, as if the was selected in the - sidebar. - - Tag class changes: - * make_tag_string() now demands a sorted list of terminal tags. This - ensures that the sort order is maintained when generating the string - representation of the list. - The new make_user_visible_tag_list() can be used to filter and - sort a Tag - Collection accordingly. - - * Fix a bug in Tag.make_tag_string: - A list of seen tags is kept to not show tags with the same string - representation (but potentially different tag-path) twice. However, - tags were never added to the list, such that it always remained - empty - and new items were thus compared against the empty list. - - Fixes https://bugzilla.gnome.org/show_bug.cgi?id=717523 - -M src/CheckerboardLayout.vala -M src/Page.vala -M src/Tag.vala -M src/Thumbnail.vala - -commit 4e1c2ec3b8bc87f1f40ef3a9550516c16a991f05 -Author: Jens Georg -Date: Fri Jul 15 20:14:33 2016 +0200 - - i18n: Disambiguate start strings of date groups - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=750902 - -M src/Resources.vala - -commit 5b3a91c7379fb4746bf670a2c8c34c1eb049d944 -Author: Mario Blättermann -Date: Wed Aug 10 21:21:13 2016 +0000 - - Updated German translation - -M po/de.po - -commit bfd587a073404a24a0a24902621d0ed80d011497 -Author: Dušan Kazik -Date: Wed Aug 10 12:40:00 2016 +0000 - - Updated Slovak translation - -M po/sk.po - -commit fc1ba4133cefa97d4b0e3183e010ac657f95d948 -Author: Jordi Mas -Date: Mon Aug 8 21:50:14 2016 +0200 - - Update Catalan translation - -M po/ca.po - -commit 1ce610f31435958c72874f110c71f4f40bf2ac2b -Author: Jordi Mas -Date: Sun Aug 7 23:44:04 2016 +0200 - - Update Catalan translation - -M po/ca.po - -commit db933a76ec9badccef24d02144700fea92465650 -Author: Jens Georg -Date: Fri Aug 5 23:35:59 2016 +0200 - - publishing: Remove reference to external hmac_sha1 - - Flicker had another external reference I overlooked. - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit 71ec94aa52e5bccf4e438804f45321e39f284fb1 -Author: Jens Georg -Date: Fri Jul 29 00:22:19 2016 +0200 - - Fix issue with indexes on PhotoTable - - - thumbnail_md5 might actually not be unique for various reasons - - Second index was a duplicate of the first instead of using - thumbnail_md5 - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=742670 - -M src/db/PhotoTable.vala - -commit a44252bc0339bfc0afc0721ba96c34f77c5aadee -Author: Jens Georg -Date: Fri Jul 29 00:14:16 2016 +0200 - - Update INSTALL - - Signed-off-by: Jens Georg - -M INSTALL - -commit 0e2b2d936a9829fdbf0862de3df7915592ddb935 -Author: Jens Georg -Date: Sun Jul 24 21:48:42 2016 +0200 - - Fix invalid warning on index creation - - Signed-off-by: Jens Georg - -M src/db/PhotoTable.vala - -commit dab860338412d9bf7a219d6a2a74cb56bac0b87b -Author: Jens Georg -Date: Sun Jul 24 19:28:58 2016 +0200 - - Update debian packages - - Signed-off-by: Jens Georg - -M debian/changelog -M debian/control -D debian/manpages -M debian/rules -A debian/shotwell.install - -commit f04002baca62d84692bf5b6698a00c0a066522bf -Author: Jens Georg -Date: Sun Jul 24 08:50:07 2016 +0200 - - Minor cosmetic build changes - - Signed-off-by: Jens Georg - -M configure.ac - -commit 320aad4a22527cb74c75d49331fff3e7abfb680d -Author: Rafael Fontenelle -Date: Tue Aug 2 13:35:38 2016 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit 1d086dcf064501c088a08fe2ab88d998b8b85aff -Author: Piotr Drąg -Date: Mon Aug 1 05:03:46 2016 +0200 - - Updated Polish translation - -M po/pl.po - -commit 5a28246f86e2c86d9a14183593614a81d55d5787 -Author: Piotr Drąg -Date: Mon Jul 25 04:17:31 2016 +0200 - - Add Language headers to po files - - Future versions of gettext will fail if this header is missing. - -M po/af.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/bn_IN.po -M po/en_GB.po -M po/et.po -M po/gu.po -M po/hi.po -M po/hr.po -M po/it.po -M po/lv.po -M po/mk.po -M po/ml.po -M po/mr.po -M po/nn.po -M po/or.po -M po/pa.po -M po/sl.po -M po/sr@latin.po -M po/th.po -M po/zh_HK.po - -commit 767950c196c447d69b47df7a5180d41f3bae0c26 -Author: Jens Georg -Date: Sun Jul 24 08:44:28 2016 +0200 - - Add indexs to PhotoTable - - To speed up duplicate searches. This is the first try on my rather - limited set - of images; if these don't provide a decent speedup, we might need - to create - some covering indexes. - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=742670 - -M src/db/PhotoTable.vala - -commit 2744ffdc377cb7b5b42d67d3e3c469f8b6cac19a -Author: Jens Georg -Date: Sat Jul 23 08:28:44 2016 +0200 - - Use MessageDialog's printf for strings - - Fixes issue where mark-up was shown as-is - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=768360 - -M src/Dialogs.vala - -commit 49f63dacac74571924ffe7f4290b553a6a286a8e -Author: Jens Georg -Date: Fri Jul 22 22:25:38 2016 +0200 - - Require gettext 0.19.8 - - Otherwise we are hit by http://savannah.gnu.org/bugs/?47991 and get - an invalid - string in Keyword line in the .desktop file - - Signed-off-by: Jens Georg - -M configure.ac - -commit 255a39c9e5c9df94bc16f2988ac50f9bc6dd9866 -Author: Jens Georg -Date: Fri Jul 22 22:18:24 2016 +0200 - - Fix .desktop file generation - - Fixes https://bugs.archlinux.org/task/50129 - - Signed-off-by: Jens Georg - -M misc/Makefile.am - -commit 9b5ed5a29086215a5cdf82f38d1145848d7a6c4f -Author: Jens Georg -Date: Fri Jul 22 21:58:07 2016 +0200 - - Offer a way to hide bottom toolbar - - Available in menu like sidebar and with -F9 Shortcut (slightly - following - GNOME Builder there) - - Only for LibarayWindow. Fullscreen and Slideshow offer their own - means of - (auto-)hiding the toolbar already. - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=741962 - -M misc/org.yorba.shotwell.gschema.xml -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala -M src/library/LibraryWindow.vala -M ui/events_directory.ui -M ui/import.ui -M ui/media.ui -M ui/offline.ui -M ui/photo.ui -M ui/trash.ui - -commit 83e2e81d8c3f824ff7131ec42ef0dc9d83a9ef8c -Author: Jens Georg -Date: Wed Jul 20 00:41:20 2016 +0200 - - publishing-extra: Load resources from GResource - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=747368 - -M plugins/shotwell-publishing-extras/GalleryConnector.vala -M plugins/shotwell-publishing-extras/RajcePublishing.vala -M plugins/shotwell-publishing-extras/TumblrPublishing.vala -M plugins/shotwell-publishing-extras/YandexPublishing.vala -A -plugins/shotwell-publishing-extras/org.gnome.Shotwell.Publishing.Extras.gresource.xml -M publish-extra.am - -commit 8f86cdaaa86f2d42d1d85f84b71995e93abc5dbc -Author: Jens Georg -Date: Wed Jul 20 00:19:45 2016 +0200 - - publish: Load resources from GResource - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=747368 - -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/PiwigoPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -A -plugins/shotwell-publishing/org.gnome.Shotwell.Publishing.gresource.xml -M publish.am - -commit 23ad562bef8f3b85bb901e5cea78cf389a1695d3 -Author: Jens Georg -Date: Tue Jul 19 23:36:08 2016 +0200 - - import: Load icon from resource - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=747368 - -M import.am -M plugins/shotwell-data-imports/FSpotImporter.vala -A -plugins/shotwell-data-imports/org.gnome.Shotwell.Imports.gresource.xml - -commit 92e38a39ddfcb193af3932db71027cd4e3360b08 -Author: Jens Georg -Date: Tue Jul 19 23:35:43 2016 +0200 - - transitions: Load icon from resource - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=747368 - -M Makefile.am -M configure.ac -M plugins/common/Resources.vala -A -plugins/shotwell-transitions/org.gnome.Shotwell.Transitions.gresource.xml -M plugins/shotwell-transitions/shotwell-transitions.vala -M transition.am - -commit 16dd5b5a82c5139c51de27dbaf5f275d8ebadedb -Author: Jens Georg -Date: Tue Jul 19 23:17:57 2016 +0200 - - Remove obsolete file - - Signed-off-by: Jens Georg - -D help/C/Makefile -D plugins/Makefile -D plugins/common/Makefile -D plugins/shotwell-data-imports/Makefile -D plugins/shotwell-publishing-extras/Makefile -D plugins/shotwell-publishing/Makefile -D plugins/shotwell-transitions/Makefile -D samples/simple-plugin/Makefile -D test/Makefile - -commit 807cb2b45a8eb3b8826cbc93caf67c4d1cca758d -Author: Jens Georg -Date: Wed Jul 20 20:52:39 2016 +0200 - - Post-release version bump - - Signed-off-by: Jens Georg - -M configure.ac - -commit 09e4622b111d7def1a039dab1e69e0063e1e2ac1 -Author: Jens Georg -Date: Wed Jul 20 19:56:05 2016 +0200 - - Prepare 0.23.4 - - Signed-off-by: Jens Georg - -M NEWS - -commit f90efa308c0b8e7c5e241b0eacaa55ecd80f865d -Author: Jens Georg -Date: Wed Jul 20 19:54:35 2016 +0200 - - Link common library against plugin dependencies - - Signed-off-by: Jens Georg - -M Makefile.am - -commit 1803e74f8a90b13aecc2f70114a0bca565304fea -Author: Daniel Mustieles -Date: Wed Jul 20 10:37:36 2016 +0000 - - Updated Spanish translation - -M po/es.po - -commit e5aa53ac37f031ffdd66ebcca1cc548474ae8400 -Author: Daniel Mustieles -Date: Tue Jul 19 11:28:43 2016 +0000 - - Updated Spanish translation - -M po/es.po - -commit 1102a7ec65295605537354bbc607c81c31e8fcb9 -Author: Jens Georg -Date: Mon Jul 18 22:26:44 2016 +0200 - - Post-release version bump - - Signed-off-by: Jens Georg - -M configure.ac - -commit 06ca7688ec221da20f321798b289b8d86bddf8b9 -Author: Jens Georg -Date: Mon Jul 18 21:04:56 2016 +0200 - - Prepare 0.23.3 - - Signed-off-by: Jens Georg - -M Makefile.am -M NEWS - -commit 1a24435b8d23f180d92ca957a86542badb699908 -Author: Jens Georg -Date: Mon Jul 18 19:51:14 2016 +0200 - - Update git.mk use - - Signed-off-by: Jens Georg - -D .gitignore -M Makefile.am -M app-icons/Makefile.am -M help/Makefile.am -M icons/Makefile.am -M misc/Makefile.am -D test/.gitignore -M ui/Makefile.am - -commit 4be27a585842eb7a1c91670c37c08582d2117f10 -Author: Jens Georg -Date: Fri Jul 15 20:11:05 2016 +0200 - - i18n: Extract comments - - Signed-off-by: Jens Georg - -M po/Makevars - -commit 91796a5d914937b967c553cdd819d5aa67312a5b -Author: Piotr Drąg -Date: Fri Jul 15 12:34:31 2016 +0200 - - Updated Polish translation - -M po/pl.po - -commit 99898a5cf36689ee499ae0428c4b471fd9ed911a -Author: Rafael Fontenelle -Date: Wed Jul 13 22:15:22 2016 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit 6941dff10c6704753b3728b05ffb17a081d48bbf -Author: Jens Georg -Date: Wed Jul 13 21:49:08 2016 +0200 - - page: Make empty filter result message more clear - - Instead of the "No photos/videos found" use "No photos/videos - found which - match the current filter" to make clear that it's because of the - current - filter settings - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=719122 - -M src/Page.vala - -commit 60188949d8446896782f200801fdd7ceeb3ef7b2 -Author: Rafael Fontenelle -Date: Tue Jul 12 16:00:11 2016 +0000 - - Updated Brazilian Portuguese translation - -M help/pt_BR/pt_BR.po - -commit e20f0128680ce2d872821fac0d85525b07b9ced7 -Author: Rafael Fontenelle -Date: Tue Jul 12 15:53:58 2016 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit 90d24e0badb68007433e2d29ba7a82315aa42caf -Author: Jens Georg -Date: Sun Jul 10 15:31:47 2016 +0200 - - i18n: Use dpgettext2 for strings marked with NC_ - - Signed-off-by: Jens Georg - -M src/Commands.vala -M src/Dialogs.vala -M src/SearchFilter.vala - -commit 1eb0bda52970a86e751cb1789d1205f350538c65 -Author: Jens Georg -Date: Sun Jul 10 14:47:49 2016 +0200 - - i18n: Add C_ to vala keywords - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=744255 - -M po/Makevars - -commit bd7a1964184dd219c742503f7969bf6f806e39a6 -Author: Jens Georg -Date: Sun Jul 10 14:07:39 2016 +0200 - - build: Fix out-of-tree build - - Signed-off-by: Jens Georg - -M import.am -M publish-extra.am -M publish.am -M shotwell.am -M transition.am - -commit ab1da26c95bb0aafac637b81a1368a5d743dbcbc -Author: Lorenz Adam Damara -Date: Sun Jul 10 08:25:14 2016 +0000 - - Updated Indonesian translation - -M po/id.po - -commit 39677ce320ed4048db77d7ae270d8b37e00c181b -Author: Tiago Santos -Date: Sat Jul 9 05:59:12 2016 +0000 - - Updated Portuguese translation - -M po/pt.po - -commit 417aecadbcb8d0ce0ff34f20d13774f538efe5c0 -Author: Rico Tzschichholz -Date: Fri Jul 8 09:43:47 2016 +0200 - - Fix compile warnings with vala git - -M plugins/shotwell-data-imports/FSpotImporter.vala -M plugins/shotwell-data-imports/FSpotMetaTable.vala -M plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala -M plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala -M plugins/shotwell-data-imports/FSpotPhotosTable.vala -M plugins/shotwell-data-imports/FSpotRollsTable.vala -M plugins/shotwell-data-imports/FSpotTagsTable.vala -M plugins/shotwell-publishing-extras/GalleryConnector.vala -M plugins/shotwell-publishing/PiwigoPublishing.vala -M src/Box.vala -M src/db/Db.vala -M src/plugins/PublishingInterfaces.vala - -commit 8073b6efc597f32c6dd323c38b5d401c7af52da5 -Author: Piotr Drąg -Date: Wed Jul 6 21:32:18 2016 +0200 - - Updated Polish translation - -M po/pl.po - -commit cf6e2f1ed0d06d4f6f975963b6817eec67fce1f7 -Author: Jens Georg -Date: Tue Jul 5 19:49:30 2016 +0200 - - Update debian - - Signed-off-by: Jens Georg - -M debian/changelog - -commit 21ef4cbb03d3ebac5f70cf368d80c2d851a91892 -Author: Jens Georg -Date: Mon Jul 4 21:38:11 2016 +0200 - - i18n: Unset XGETTEXT_OPTIONS. Default for Vala is fine - - Signed-off-by: Jens Georg - -M po/Makevars - -commit e2ff74c3403f77164704532dec554a88224f03a5 -Author: Jens Georg -Date: Mon Jul 4 21:15:45 2016 +0200 - - i18n: Fix Builder file extraction - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing-extras/GalleryConnector.vala -M plugins/shotwell-publishing-extras/RajcePublishing.vala -M plugins/shotwell-publishing-extras/TumblrPublishing.vala -M plugins/shotwell-publishing-extras/YandexPublishing.vala -R098 -plugins/shotwell-publishing-extras/gallery3_authentication_pane.glade -plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui -R098 -plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.glade -plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui -R098 plugins/shotwell-publishing-extras/rajce_authentication_pane.glade -plugins/shotwell-publishing-extras/rajce_authentication_pane.ui -R098 -plugins/shotwell-publishing-extras/rajce_publishing_options_pane.glade -plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui -R098 -plugins/shotwell-publishing-extras/tumblr_authentication_pane.glade -plugins/shotwell-publishing-extras/tumblr_authentication_pane.ui -R099 -plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.glade -plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.ui -R100 plugins/shotwell-publishing-extras/yandex_publish_model.glade -plugins/shotwell-publishing-extras/yandex_publish_model.ui -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/PiwigoPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -R099 plugins/shotwell-publishing/facebook_publishing_options_pane.glade -plugins/shotwell-publishing/facebook_publishing_options_pane.ui -R100 plugins/shotwell-publishing/flickr_pin_entry_pane.glade -plugins/shotwell-publishing/flickr_pin_entry_pane.ui -R099 plugins/shotwell-publishing/flickr_publishing_options_pane.glade -plugins/shotwell-publishing/flickr_publishing_options_pane.ui -R100 plugins/shotwell-publishing/picasa_publishing_options_pane.glade -plugins/shotwell-publishing/picasa_publishing_options_pane.ui -R099 plugins/shotwell-publishing/piwigo_authentication_pane.glade -plugins/shotwell-publishing/piwigo_authentication_pane.ui -R100 plugins/shotwell-publishing/piwigo_publishing_options_pane.glade -plugins/shotwell-publishing/piwigo_publishing_options_pane.ui -R100 plugins/shotwell-publishing/youtube_publishing_options_pane.glade -plugins/shotwell-publishing/youtube_publishing_options_pane.ui -M po/POTFILES.in -M publish-extra.am -M publish.am -M src/AppWindow.vala -M src/Dialogs.vala -M ui/Makefile.am -R100 ui/set_background_dialog.glade ui/set_background_dialog.ui -R100 ui/set_background_slideshow_dialog.glade -ui/set_background_slideshow_dialog.ui -R100 ui/shotwell.glade ui/shotwell.ui - -commit db02aaf77cf1538e81f4f0ca168517d8eb7e2585 -Author: Jens Georg -Date: Sun Jul 3 19:05:10 2016 +0200 - - build: Don't distribute C files - - Signed-off-by: Jens Georg - -M Makefile.am - -commit 4e60fa58611e9fe9bf280623dca844c003c1e274 -Author: Jens Georg -Date: Sun Jul 3 12:18:19 2016 +0200 - - i18n: Disambiguate "Edit Title" - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=744251 - -M src/Dialogs.vala -M src/Resources.vala - -commit b28a8032780184abedb39ba851d43ce1fe949c69 -Author: Jens Georg -Date: Sun Jul 3 12:03:01 2016 +0200 - - i18n: Remove obsolete string - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=744254 - -M src/Resources.vala - -commit 80eb7957dc86b19f1b977ba810e7cc8a3f57514d -Author: Jens Georg -Date: Sun Jul 3 11:50:30 2016 +0200 - - i18n: Disambiguate string "Add Tags" - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=744255 - -M src/Resources.vala - -commit ed492f7e595e00995e46122ee472790bd7533e8e -Author: Daniel Mustieles -Date: Mon Jul 4 12:39:02 2016 +0000 - - Updated Spanish translation - -M help/es/es.po - -commit 37408a403b01eafdc37636cd70224b53832be83f -Author: Daniel Mustieles -Date: Mon Jul 4 07:20:34 2016 +0000 - - Updated Spanish translation - -M help/es/es.po - -commit a795d48a82d66a806d95292bc23645f1c80ada84 -Author: Piotr Drąg -Date: Mon Jul 4 03:43:23 2016 +0200 - - Updated Polish translation - -M po/pl.po - -commit 45c68b8b54ab9ecbd65c6c2cd728b2d1853fb497 -Author: Dušan Kazik -Date: Sun Jul 3 07:37:00 2016 +0000 - - Updated Slovak translation - -M po/sk.po - -commit 4b346a1f0429ac7d2ecf1b791a68b6296ac772d4 -Author: Rafael Fontenelle -Date: Sun Jul 3 07:14:00 2016 +0000 - - Updated Brazilian Portuguese translation - -M help/pt_BR/pt_BR.po - -commit 785cde356782e8621f12fcde590d7742c4cc584a -Author: Rafael Fontenelle -Date: Sun Jul 3 07:11:37 2016 +0000 - - Updated Brazilian Portuguese translation - -M help/pt_BR/pt_BR.po - -commit 66a0f4e8ba3fc31cf74231e9e203ac4af699bd83 -Author: Piotr Drąg -Date: Sat Jul 2 21:03:32 2016 +0200 - - Updated Polish translation - -M po/pl.po - -commit 23acea3f088b02e623db66433272101ff1ab5c2d -Author: Jens Georg -Date: Sat Jul 2 07:37:15 2016 +0200 - - Revert "i18n: Remove desktop files from POTFILES.in" - - Apparently, it just works nevertheless. - - https://bugzilla.gnome.org/show_bug.cgi?id=740873 - - This reverts commit 4ceb025a7721f3e31affe692f4cf545dd33d8a40. - -M po/POTFILES.in - -commit 40dbbeafbe528eb4bed8a2255db38ec50a9b5f9d -Author: Jeremy Bicha -Date: Sat Jun 25 21:33:51 2016 -0400 - - Use yelp-tools style help install directories - - https://wiki.gnome.org/Initiatives/GnomeGoals/NewDocumentationInfrastructure - - https://bugzilla.gnome.org/show_bug.cgi?id=719200 - -M src/Dialogs.vala -M src/Resources.vala - -commit 4ceb025a7721f3e31affe692f4cf545dd33d8a40 -Author: Jens Georg -Date: Sat Jul 2 01:22:45 2016 +0200 - - i18n: Remove desktop files from POTFILES.in - - They were missing on purpose as they make xgettext call fail with - weird errors - (https://mail.gnome.org/archives/gnome-i18n/2016-June/msg00063.html) - - Signed-off-by: Jens Georg - -M po/POTFILES.in - -commit 310e538290fa16cab84be46ca6d5737cb4bbcfd6 -Author: Jens Georg -Date: Sat Jul 2 01:20:20 2016 +0200 - - build: Fix parallel build - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=768054 - -M Makefile.am - -commit 72fad07b7a540a5fa51f0d73bd1ecd081d17886e -Author: Piotr Drąg -Date: Sat Jul 2 00:59:28 2016 +0200 - - Add translator comments to .desktop files - -M misc/shotwell-viewer.desktop.in.in -M misc/shotwell.desktop.in.in - -commit 725baf221689da4896726e97cc55b8dfa7002a9b -Author: Piotr Drąg -Date: Sat Jul 2 00:48:04 2016 +0200 - - Updated POTFILES.in and POTFILES.skip - -M po/POTFILES.in -M po/POTFILES.skip - -commit 55119a001758726f0327c41183f7193bf04687b7 -Author: Jens Georg -Date: Sat Jul 2 00:27:13 2016 +0200 - - build: Update version - - https://bugzilla.gnome.org/show_bug.cgi?id=768054 - https://bugzilla.gnome.org/show_bug.cgi?id=717064 - - Signed-off-by: Jens Georg - -M configure.ac - -commit 4895248bce479af8ca40ce9a8a996aca7b35448e -Author: Jens Georg -Date: Sat Jul 2 00:26:51 2016 +0200 - - build: Add unity to configure output - - Signed-off-by: Jens Georg - -M configure.ac - -commit e2b5870567d78aa849bd674dc4f48a29e4d28f93 -Author: Jens Georg -Date: Sat Jul 2 00:26:31 2016 +0200 - - build: Remove check for unused programs - - Signed-off-by: Jens Georg - -M configure.ac - -commit cc25448f4bb449630690e0597b8837a1ab264973 -Author: Jens Georg -Date: Sat Jul 2 00:22:29 2016 +0200 - - build: Always install manpage - - https://bugzilla.gnome.org/show_bug.cgi?id=715578 - - Signed-off-by: Jens Georg - -M help/Makefile.am -R100 debian/shotwell.1 help/shotwell.1 - -commit bab8fdc0c1b5179ac67d8b999e076c3284459bf2 -Author: Jens Georg -Date: Sat Jul 2 00:07:15 2016 +0200 - - build: Remove obsolete Makefiles - - Signed-off-by: Jens Georg - -D plugins/Makefile.plugin.mk -D plugins/plugins.mk -D src/camera/mk/camera.mk -D src/config/mk/config.mk -D src/core/mk/core.mk -D src/data_imports/mk/data_imports.mk -D src/db/mk/db.mk -D src/direct/mk/direct.mk -D src/editing_tools/mk/editing_tools.mk -D src/events/mk/events.mk -D src/folders/mk/folders.mk -D src/library/mk/library.mk -D src/photos/mk/photos.mk -D src/plugins/mk/interfaces.mk -D src/plugins/mk/plugins.mk -D src/publishing/mk/publishing.mk -D src/searches/mk/searches.mk -D src/sidebar/mk/sidebar.mk -D src/slideshow/mk/slideshow.mk -D src/tags/mk/tags.mk -D src/threads/mk/threads.mk -D src/unit/mk/unit.mk -D src/unit/rc/template.mk -D src/util/mk/util.mk -D unitize.mk -D units.mk - -commit afef2962eabd529a62532227983888b96e76257c -Author: Jens Georg -Date: Fri Jul 1 23:44:14 2016 +0200 - - build: Fix dist tarball - -M Makefile.am -M icons/Makefile.am -M import.am -M misc/Makefile.am -M publish-extra.am -M publish.am -M shotwell.am -M transition.am -M ui/Makefile.am - -commit 8c3eea4f2940daac36fbf85b4f0b270fefc96c62 -Author: Jens Georg -Date: Fri Jul 1 21:25:57 2016 +0200 - - appdata: Add tag and fix path - - Signed-off-by: Jens Georg - -M misc/Makefile.am -M misc/shotwell.appdata.xml.in - -commit 7f1f8f37f34e894cefcf7527796fe1717217b648 -Author: Jens Georg -Date: Fri Jul 1 21:15:19 2016 +0200 - - build: Remove unused Makefile from configure.ac - - Signed-off-by: Jens Georg - -M configure.ac - -commit 8b4f24eb3a9f7f1eac7083c9fb28a6e568217c2b -Author: Jens Georg -Date: Fri Jul 1 19:38:40 2016 +0200 - - i18n: Mark GSettings schema for translation - - https://bugzilla.gnome.org/show_bug.cgi?id=741508 - - Signed-off-by: Jens Georg - -M misc/org.yorba.shotwell-extras.gschema.xml -M misc/org.yorba.shotwell.gschema.xml -M po/POTFILES.in - -commit dcfd4c671cdb5f3d58bfd2f9886feb8f4c911d41 -Author: Jens Georg -Date: Thu Jun 30 22:23:55 2016 +0200 - - build: Add missing COMMON_VALAFLAGS - - Signed-off-by: Jens Georg - -M Makefile.am - -commit 092a951acc6398f0b527b7c1cd97ce831f9751fc -Author: Jens Georg -Date: Thu Jun 30 22:23:37 2016 +0200 - - build: Fix makefile generation - - Signed-off-by: Jens Georg - -M common.am -M configure.ac - -commit 444a9056c38d1b906d4f3f453dd06880e31d0e6e -Author: Jens Georg -Date: Wed Jun 29 22:09:33 2016 +0200 - - Mark appdata for translation - - https://bugzilla.gnome.org/show_bug.cgi?id=730669 - - Signed-off-by: Jens Georg - -M misc/Makefile.am -D misc/shotwell.appdata.xml -A misc/shotwell.appdata.xml.in -M po/POTFILES.in - -commit bbd12caab53ad0f8c01f0767df870618f191f9f8 -Author: Jens Georg -Date: Wed Jun 29 21:28:09 2016 +0200 - - Update Makevars - - Signed-off-by: Jens Georg - -M po/Makevars - -commit 32880b1daee7f2913b2c7410d1298f066c2138b0 -Author: Jens Georg -Date: Wed Jun 29 19:27:20 2016 +0200 - - build: Remove obsolete files - -D chkver -D mkunit -D mkvala - -commit 96e768e62498a4b4b379a78afab146fee1b402a9 -Author: Jens Georg -Date: Wed Jun 29 19:25:04 2016 +0200 - - build: Add macros from autoconf archive - - Signed-off-by: Jens Georg - -M configure.ac -A m4/ax_check_enable_debug.m4 -A m4/ax_generate_changelog.m4 -A m4/ax_is_release.m4 -D m4/glib-gettext.m4 -D m4/intltool.m4 -A m4/yelp.m4 - -commit 3cac98d6ea794d50a4f9c5af3fa3a000e74cd920 -Author: Jens Georg -Date: Wed Jun 29 00:47:24 2016 +0200 - - Update .gitignore - - Signed-off-by: Jens Georg - -M .gitignore - -commit cb75b9b32a202ea8259ade233886098f3a507d20 -Author: Jens Georg -Date: Tue Jun 28 23:17:21 2016 +0200 - - build: Add settings migrator - - Signed-off-by: Jens Georg - -M Makefile.am -M thumbnailer.am - -commit 03b0df02cd947c8b6445ba4c20e47c76ddcad087 -Author: Jens Georg -Date: Tue Jun 28 23:11:42 2016 +0200 - - build: Install plugin data - - Signed-off-by: Jens Georg - -M import.am -M publish-extra.am -M publish.am -M transition.am - -commit 81d03f7e3f1855f772a540543a8f290baca38888 -Author: Jens Georg -Date: Tue Jun 28 23:11:25 2016 +0200 - - build: Align plugin names with old makefile - - Signed-off-by: Jens Georg - -M Makefile.am -M import.am -M publish-extra.am -M publish.am -M transition.am - -commit ffd4065d964a2fa76c149dbfa19333fdf1a8661c -Author: Jens Georg -Date: Tue Jun 28 22:49:17 2016 +0200 - - build: Hook up ui data - - Signed-off-by: Jens Georg - -M Makefile.am -M configure.ac -A ui/Makefile.am - -commit 215a5d308449545497722c5b33b397b0e165f030 -Author: Jens Georg -Date: Tue Jun 28 22:41:28 2016 +0200 - - build: Hook up application image data - - Signed-off-by: Jens Georg - -M Makefile.am -M configure.ac -A icons/Makefile.am - -commit 1382b1582e07728425ab9e76e2f383a9be42928d -Author: Jens Georg -Date: Tue Jun 28 22:35:08 2016 +0200 - - build: Hook up app icons - - Signed-off-by: Jens Georg - -M Makefile.am -A app-icons/Makefile.am -M configure.ac - -commit b993ec855063b8025eec776f920ea20c122b04d1 -Author: Jens Georg -Date: Tue Jun 28 22:25:47 2016 +0200 - - build: Hook up desktop files - - Signed-off-by: Jens Georg - -M misc/Makefile.am -R100 misc/shotwell-viewer.desktop.head -misc/shotwell-viewer.desktop.in.in -R100 misc/shotwell.desktop.head misc/shotwell.desktop.in.in - -commit bd060e0c7353503670e92d8f78ab541caca81019 -Author: Jens Georg -Date: Tue Jun 28 22:11:19 2016 +0200 - - build: Add appdata - - Signed-off-by: Jens Georg - -M configure.ac -M misc/Makefile.am - -commit 46992439dc4ee961ca924e007cdfba5a2ac2edcf -Author: Jens Georg -Date: Tue Jun 28 21:49:43 2016 +0200 - - build: Hook up help - - https://bugzilla.gnome.org/show_bug.cgi?id=719200 - - Signed-off-by: Jens Georg - -M Makefile.am -M configure.ac -M help/Makefile.am - -commit 1225c80d23c58b6166b961309d721ef3cdfd7f22 -Author: Jens Georg -Date: Tue Jun 28 21:41:43 2016 +0200 - - build: Fix mo names - - Signed-off-by: Jens Georg - -M po/Makevars - -commit c243239cf5991d3914fee71227094abb94563885 -Author: Jens Georg -Date: Tue Jun 28 21:24:53 2016 +0200 - - build: Make plugins .so only - - Signed-off-by: Jens Georg - -M Makefile.am -M import.am -M publish-extra.am -M publish.am -M transition.am - -commit 861bd8fd5e84d1d3d6b0bd47b30a17909049b0c0 -Author: Jens Georg -Date: Tue Jun 28 21:01:47 2016 +0200 - - build: Add import plugins - - Signed-off-by: Jens Georg - -M .gitignore -M Makefile.am -A import.am - -commit efcb7a25a8b6173808e20ca20d15255401550039 -Author: Jens Georg -Date: Tue Jun 28 20:53:58 2016 +0200 - - build: Add transitions plugin - - Signed-off-by: Jens Georg - -M .gitignore -M Makefile.am -M publish.am -A transition.am - -commit 087e777031bf78e14f89aa3db8255fc55df0b66f -Author: Jens Georg -Date: Tue Jun 28 20:38:26 2016 +0200 - - build: Add publishing-extras - - Signed-off-by: Jens Georg - -M Makefile.am -A publish-extra.am -M publish.am - -commit 4a6a872127d500e204066f8db4df30be1f46693c -Author: Jens Georg -Date: Wed Jun 29 00:23:51 2016 +0200 - - build: Add publishing plugins - - Signed-off-by: Jens Georg - -M Makefile.am -M configure.ac -A publish.am - -commit a316fe478bb2d3d440b9409431d34a19b72b1d3f -Author: Jens Georg -Date: Wed Jun 29 00:21:30 2016 +0200 - - build: Add libshotwell-plugin-common - - Signed-off-by: Jens Georg - -M Makefile.am - -commit 76164eb4e5cbfe955d1d75e22d1fd3d19e651bce -Author: Jens Georg -Date: Wed Jun 29 00:19:50 2016 +0200 - - build: Create plugin vapi - - Signed-off-by: Jens Georg - -M Makefile.am -M common.am -M shotwell.am - -commit ac2850c0916e4a64e8b8122e345576bf5a021a03 -Author: Jens Georg -Date: Wed Jun 29 00:13:05 2016 +0200 - - build: Add thumbnailer - - Signed-off-by: Jens Georg - -M Makefile.am -M configure.ac -A thumbnailer.am - -commit 06412b14ad6aae01a5c597fc8419877f2ca2fa23 -Author: Jens Georg -Date: Wed Jun 29 00:12:31 2016 +0200 - - build: Move shotwell into include file - - Signed-off-by: Jens Georg - -M Makefile.am -A common.am -C088 Makefile.am shotwell.am - -commit 86c43eb21e0a9b875ebcb0f882b17513ef3601c2 -Author: Jens Georg -Date: Sun May 29 22:40:20 2016 +0200 - - build: Add gsettings support - - Signed-off-by: Jens Georg - -M Makefile.am -M configure.ac -A misc/Makefile.am - -commit d1298035015adc85e8dfde8f2834d093d35188df -Author: Jens Georg -Date: Wed May 25 00:25:00 2016 +0200 - - build: Re-add support for unity - - Signed-off-by: Jens Georg - -M Makefile.am -M configure.ac - -commit cdd332a344ddc0d7bfdefd4fdc41e35045ff8cb8 -Author: Jens Georg -Date: Tue May 24 23:46:42 2016 +0200 - - Add GIT version handling - - Signed-off-by: Jens Georg - -M Makefile.am -M configure.ac - -commit 98ac807da23968f31d6f3a31040872909c14651d -Author: Jens Georg -Date: Tue May 24 23:44:28 2016 +0200 - - i18n: Add translations to build - - Signed-off-by: Jens Georg - -M Makefile.am -M po/POTFILES.in -M po/gu.po - -commit 08019a73742a99003d9f3915ae4088223105b6a1 -Author: Jens Georg -Date: Wed Jun 29 00:09:16 2016 +0200 - - build: Add shotwell binary - - Signed-off-by: Jens Georg - -M Makefile.am -M configure.ac - -commit 216b6a68d81de70ce000628aa913fefffa769d98 -Author: Jens Georg -Date: Wed Jun 29 00:06:25 2016 +0200 - - build: Add unit files - - Signed-off-by: Jens Georg - -A src/.unitize/_CameraInternals.vala -A src/.unitize/_ConfigInternals.vala -A src/.unitize/_CoreInternals.vala -A src/.unitize/_DataImportsInternals.vala -A src/.unitize/_DbInternals.vala -A src/.unitize/_DirectInternals.vala -A src/.unitize/_Direct_unitize_entry.vala -A src/.unitize/_EditingToolsInternals.vala -A src/.unitize/_EventsInternals.vala -A src/.unitize/_FoldersInternals.vala -A src/.unitize/_LibraryInternals.vala -A src/.unitize/_Library_unitize_entry.vala -A src/.unitize/_PhotosInternals.vala -A src/.unitize/_PluginsInternals.vala -A src/.unitize/_PublishingInternals.vala -A src/.unitize/_SearchesInternals.vala -A src/.unitize/_SidebarInternals.vala -A src/.unitize/_SlideshowInternals.vala -A src/.unitize/_TagsInternals.vala -A src/.unitize/_ThreadsInternals.vala -A src/.unitize/_UnitInternals.vala -A src/.unitize/_UtilInternals.vala - -commit 25c9a2360d2721c48ac8919c9cb2c2759a091a4b -Author: Jens Georg -Date: Tue May 24 21:40:21 2016 +0200 - - build: Autotools skeleton - - Signed-off-by: Jens Georg - -D Makefile -A Makefile.am -A autogen.sh -D configure -A configure.ac -A git.mk -A m4/Makefile.am -A m4/appstream-xml.m4 -A m4/ax_append_compile_flags.m4 -A m4/ax_append_flag.m4 -A m4/ax_check_compile_flag.m4 -A m4/ax_check_link_flag.m4 -A m4/ax_compiler_flags_cxxflags.m4 -A m4/ax_compiler_vendor.m4 -A m4/ax_cxx_compile_stdcxx_11.m4 -A m4/ax_require_defined.m4 -A m4/glib-gettext.m4 -A m4/gsettings.m4 -A m4/intltool.m4 -A m4/introspection.m4 -A m4/pkg.m4 -A m4/vala.m4 -A m4/vapigen.m4 -A po/Makevars -A src/Makefile.am - -commit 3ddd7ec0daee52345beb091dd70f30fffef0f512 -Author: Jens Georg -Date: Sun Jun 26 10:47:36 2016 +0200 - - db: Add compile option to trace SQL statements - - Signed-off-by: Jens Georg - -M src/db/DatabaseTable.vala - -commit bbaa32f5950a2ad41a15d70c9eade1b64c7f6e01 -Author: Jens Georg -Date: Sun Jun 26 09:50:45 2016 +0200 - - Update screenshot urls in appdata - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=730665 - -M misc/shotwell.appdata.xml - -commit 98a7e42ac2fa9c293aecc5a7b199ace85b4638af -Author: Jens Georg -Date: Sat Jun 25 20:09:49 2016 +0200 - - graw: Prevent array duplication when parsing thumb from raw - - Signed-off-by: Jens Georg - -M src/photos/GRaw.vala - -commit 71de94d2aa1f622bd800fa41d3b3ca83aa51c833 -Author: Jens Georg -Date: Sat Jun 25 13:32:00 2016 +0200 - - libraw: Fix binding of ProcessedImage.data - - Signed-off-by: Jens Georg - -M vapi/libraw.vapi - -commit 51f3c7ae4ca596a504a61e24e91db6fb950f5e71 -Author: Christian Kirbach -Date: Sat Jun 25 19:15:37 2016 +0000 - - Updated German translation - -M help/de/de.po - -commit f85e9a77df1f01cbea15511887ac7386bd9fccdd -Author: Christian Kirbach -Date: Fri Jun 24 20:54:35 2016 +0000 - - Updated German translation - (cherry picked from commit c897949d811bc06fbe675ac382eeea332db75e32) - -M po/de.po - -commit 7ff3258be56fe9e29df2528f4905ac1c6899a6ab -Author: Andreas Brauchli -Date: Sat Jun 4 11:09:08 2016 +0200 - - interfaces.mk: fix failure to remove non-existing files - -M src/plugins/mk/interfaces.mk - -commit 7109eb996fc8d63f28564c9e9ab7e8822d6b0c68 -Author: Stas Solovey -Date: Tue Jun 21 08:19:19 2016 +0000 - - Updated Russian translation - -M po/ru.po - -commit b900a89508203422e361757cc96179c5ea52c9d0 -Author: Jens Georg -Date: Mon Jun 20 20:58:36 2016 +0200 - - Prepare 0.23.2 - - Signed-off-by: Jens Georg - -M Makefile -M NEWS - -commit 3f79b95bcfd568c2258c850c940b38669fbdd073 -Author: Jens Georg -Date: Mon Jun 20 20:51:48 2016 +0200 - - Fix make dist - - Signed-off-by: Jens Georg - -M plugins/Makefile.plugin.mk -M plugins/common/Makefile - -commit 10fcb55552cb55accaa2c529beb494d1e31e730c -Author: Jens Georg -Date: Sun Jun 19 19:30:51 2016 +0200 - - plugins: Remove symbol multiplication - - RESTSupport was included twice, resorces 4 times, defining all symbols - multiple times - not that good. - - Solved by compiling RESTSupport and Resources into a shared library - - Signed-off-by: Jens Georg - -M Makefile -M plugins/Makefile.plugin.mk -A plugins/common/Makefile -M plugins/common/RESTSupport.vala -M plugins/plugins.mk -M plugins/shotwell-data-imports/Makefile -M plugins/shotwell-publishing-extras/Makefile -M plugins/shotwell-publishing/Makefile -M plugins/shotwell-transitions/Makefile - -commit 5d78018671617ca28e8904aaad0ebae840bff9cd -Author: Abel 'Akronix' Serrano Juste -Date: Mon May 30 23:24:33 2016 +0200 - - Flagged label and rating label are now part of the buttons. - - https://bugzilla.gnome.org/show_bug.cgi?id=767042 - -M src/SearchFilter.vala - -commit 4f16bbc561fdedb20b22e62d56a2575b8d362331 -Author: Christian Kirbach -Date: Tue Jun 14 20:12:45 2016 +0000 - - Updated German translation - (cherry picked from commit 157cda6f4ed2615182ffaec0f227774bcd104ed4) - -M po/de.po - -commit d618ca579a0ff16925dc5c65b3927c51a4e7da0a -Author: Andika Triwidada -Date: Mon Jun 13 10:24:24 2016 +0000 - - Updated Indonesian translation - (cherry picked from commit 7db3db3baef487f992efed47c3b7fe3cc9b8be19) - -M po/id.po - -commit 79ea398faf71d0aa12b8b7e24e90a1a6b062cc1a -Author: Jens Georg -Date: Sun Jun 12 18:40:03 2016 +0200 - - plugins: Small refactor - - Signed-off-by: Jens Georg - -M plugins/common/RESTSupport.vala - -commit 4f7bdcbac984bb4021afc36318b4a63afe56507f -Author: Jens Georg -Date: Sun Jun 12 17:53:03 2016 +0200 - - Remove libgee work-around, bump min version to 0.10 - - Signed-off-by: Jens Georg - -M Makefile -M plugins/common/RESTSupport.vala - -commit 42b72ea953c2a7f02088d8644ee42c25ebac7b0a -Author: Jens Georg -Date: Sun Jun 12 17:47:17 2016 +0200 - - racje: Fix issue introduced by cleanup - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing-extras/RajcePublishing.vala - -commit 9d2b698023366e95baddbb677118a50e27bd6e8e -Author: Jens Georg -Date: Fri Jun 10 00:32:19 2016 +0200 - - publishing: Remove reuse of string util functions - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing-extras/Makefile -M plugins/shotwell-publishing-extras/RajcePublishing.vala -M plugins/shotwell-publishing-extras/TumblrPublishing.vala -M plugins/shotwell-publishing/Makefile -M plugins/shotwell-publishing/PiwigoPublishing.vala - -commit be9c9303d9307ae1724d7396bcbd31ae3fe4e1b4 -Author: Jens Georg -Date: Fri Jun 10 00:18:58 2016 +0200 - - piwigo: Let libsoup do the cookie parsing - - Signed-off-by: Jens Georg - -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing/PiwigoPublishing.vala - -commit 6574f70c7414bd342a8b0129a2a6ca9c82bceba3 -Author: Mario Blättermann -Date: Sat Jun 11 13:13:16 2016 +0000 - - Updated German translation - -M po/de.po - -commit de274d5180f7e12f46419e0598b13753d91a2249 -Author: Marek Černocký -Date: Fri Jun 10 16:35:17 2016 +0200 - - Updated Czech translation - -M po/cs.po - -commit 6d21f5fb94edff156ff61bbc7ba8dc131aa97bc8 -Author: Jens Georg -Date: Sun Jun 5 11:23:02 2016 +0200 - - help: Remove +x on image - - Signed-off-by: Jens Georg - -M help/C/figures/crop_thirds.jpg - -commit e04f7ff9d40b65ed43d45741966fd2e72f76df78 -Author: Jens Georg -Date: Sun Jun 5 11:09:51 2016 +0200 - - help: Update logo - - Signed-off-by: Jens Georg - -M help/C/figures/shotwell_logo.png - -commit aeb8059c632b25396727d4c0789e017bbf65be8d -Author: Jens Georg -Date: Sun Jun 5 10:58:14 2016 +0200 - - data: Add icon source - - Signed-off-by: Jens Georg - -A app-icons/shotwell-source.svg - -commit b8f97e7c460425792d1376b5d26c751a912da5ae -Author: Jens Georg -Date: Sun Jun 5 10:40:53 2016 +0200 - - help: Add note regarding publishing permissions - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=766919 - -M help/C/share-upload.page - -commit 066e39afc75a4494f7e6a267cef74f84b0a73e54 -Author: Piotr Drąg -Date: Sat Jun 4 17:05:44 2016 +0200 - - Updated POTFILES.in - -M po/POTFILES.in - -commit 951840ff06efa0c0ecef2581a266886bc4604f24 -Author: Jens Georg -Date: Sat Jun 4 16:30:38 2016 +0200 - - facebook: Request popup login - - As suggested by Facebook developer popup during login. Actually - looks a lot - nicer that using page. - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit 54bd00ea1e6b622cb7e84c68775d72a70980d9c7 -Author: Jens Georg -Date: Sat Jun 4 15:10:13 2016 +0200 - - import-plugin: Move common files into plugin - - Signed-off-by: Jens Georg - -M plugins/shotwell-data-imports/Makefile -R095 plugins/common/SqliteSupport.vala -plugins/shotwell-data-imports/SqliteSupport.vala -R098 plugins/common/VersionNumber.vala -plugins/shotwell-data-imports/VersionNumber.vala - -commit 74a6708717a68c706b683d8ee02888d3bea87569 -Author: Dušan Kazik -Date: Sat Jun 4 08:12:16 2016 +0000 - - Updated Slovak translation - -M po/sk.po - -commit 0ddee1cb2c13278a5354dd702f2519cef30b005e -Author: Jens Georg -Date: Wed Jun 1 22:19:50 2016 +0200 - - Remove external hmac_sha1 - - Instead of relying on librest leaking the hmac_sha1 symbol, port the - implementation of librest to Vala - - Signed-off-by: Jens Georg - -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing-extras/TumblrPublishing.vala - -commit 98ce28cd80288a38ed98a29f6dfa6f2f8b008942 -Author: Jens Georg -Date: Wed Jun 1 21:14:55 2016 +0200 - - Replace external function with vapi - - The function was available in vala since 0.12 - - Signed-off-by: Jens Georg - -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing-extras/YandexPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit ff472345c522d156b27eeb76347e47cb07099a0b -Author: Anders Jonsson -Date: Tue May 31 18:49:16 2016 +0000 - - Updated Swedish translation - -M po/sv.po - -commit 0c0fa510440f7b3d55ef32bc5c18bb49f1292cf0 -Author: Enrico Nicoletto -Date: Mon May 30 20:24:14 2016 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit 9e17e5767f186154066daba0b142a94b92fbfcc6 -Author: Daniel Mustieles -Date: Mon May 30 19:21:58 2016 +0200 - - Updated Spanish translation - -M po/es.po - -commit c716ee604ee0a075444389d031dcab162451948b -Author: Jens Georg -Date: Sun May 29 22:27:27 2016 +0200 - - Update URLs in manpage - - Signed-off-by: Jens Georg - -M debian/shotwell.1 - -commit 4a70d87baeb993c015611f71af39bdc77893ae08 -Author: Jens Georg -Date: Sun May 29 22:01:11 2016 +0200 - - Delay size_request in CheckerboardLayout - - If we do a size_request with height = 0, the size_request in - do_reflow does - not lead to a re-allocation. - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=766864 - -M src/CheckerboardLayout.vala - -commit 29fb0f56216d9e9aa99bf5f94c5b37c774031a59 -Author: Wolfgang Steitz -Date: Mon May 23 20:45:00 2016 +0000 - - Port GtkNotebook to GtkStack - - https://bugzilla.gnome.org/show_bug.cgi?id=744289 - -M src/library/LibraryWindow.vala - -commit 7361b3f909106bfecf01e3ea950984f7dcbf84bf -Author: Jens Georg -Date: Wed May 25 22:57:07 2016 +0200 - - Fix background color drawing - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=766864 - -M src/CheckerboardLayout.vala - -commit 3ee6c32d465eb3fb1e5c209a7f3e689d655d601c -Author: Jens Georg -Date: Tue May 24 22:17:11 2016 +0200 - - Remove gphoto 2.4 support - - GPhoto 2.5 was released 2012. Time to remove 2.4 - - Signed-off-by: Jens Georg - -M Makefile -M configure -M src/camera/CameraTable.vala -M src/camera/GPhoto.vala -D vapi/gphoto-2.4/libgphoto2.vapi -R100 vapi/gphoto-2.5/libgphoto2.vapi vapi/libgphoto2.vapi - -commit ea5c5058299a45eedeb311c25ed66f88d0fa7eb4 -Author: Jens Georg -Date: Tue May 24 19:41:29 2016 +0200 - - Use yelp-build to generate HTML docs - - Signed-off-by: Jens Georg - -M Makefile -M help/C/Makefile - -commit f85a4b069b6fcad277ea9e89d87e2ab346087e4f -Author: Jens Georg -Date: Tue May 24 19:21:57 2016 +0200 - - Update debian - - Signed-off-by: Jens Georg - -M debian/changelog - -commit 116410ec7110c697c98478dbeeadff65842ce2e3 -Author: Jens Georg -Date: Mon May 23 20:57:13 2016 +0200 - - Prepare Shotwell 0.23.1 - - Signed-off-by: Jens Georg - -M Makefile -M NEWS - -commit 732228a25e83991074187d649eaff64f39515670 -Author: Piotr Drąg -Date: Sun May 22 12:47:28 2016 +0200 - - Updated Polish translation - -M po/pl.po - -commit 3266b6cef8dae6675a06edbb311ce73f386aaee9 -Author: Jens Georg -Date: Sat May 21 22:53:56 2016 +0200 - - Remove criticals when showing fullscreen - - Signed-off-by: Jens Georg - -M src/Page.vala - -commit 1910f06c867424df7c9254f7ac4eed9432e976ea -Author: Jens Georg -Date: Sat May 21 22:41:41 2016 +0200 - - Make toolbar a GtkOverlay instead of a popup - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=756126 - -M src/AppWindow.vala - -commit 5ff76741fd6c29952b7d94343e3e160d1ecc693a -Author: Jens Georg -Date: Sat May 21 22:27:48 2016 +0200 - - Revert "Hide toolbar when switching away from fullscreen" - - Unfortunately, this makes the toolbar diappear when selecting a tool - - This reverts commit 61941ad671534d15d5474460a8cd13cdae6b48c2. - -M src/AppWindow.vala - -commit 61941ad671534d15d5474460a8cd13cdae6b48c2 -Author: Jens Georg -Date: Sat May 21 21:19:40 2016 +0200 - - Hide toolbar when switching away from fullscreen - - Don't have hit hover around over other windows - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=756126 - -M src/AppWindow.vala - -commit 7695f742b2225d99136de2e01dac926fe4cc80c2 -Author: Jens Georg -Date: Sat May 21 18:07:43 2016 +0200 - - Panic out if we cannot open the initial file - -M src/direct/DirectPhotoPage.vala - -commit 93b29785f4a307dd05554192436126efa8542556 -Author: Jens Georg -Date: Sat May 21 16:38:09 2016 +0200 - - Remove deprecated call to render_icon - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=719188 - -M src/PhotoPage.vala -M src/camera/ImportPage.vala -M src/util/image.vala - -commit 2ad28a6987b1904b02dc9c1e0e414d2bc594a60c -Author: Jens Georg -Date: Sat May 21 16:36:56 2016 +0200 - - Fix issue with get_metadata returning null - - In DirectPhoto, do not assume that get_metadata() will succeed - (it is actually - declared nullable). Prevents several criticals later on - -M src/direct/DirectPhoto.vala - -commit 66568e94c9162cb82e97c5e0e2e21ca1a6d80cd9 -Author: Jens Georg -Date: Sat May 21 16:33:49 2016 +0200 - - Push empty pixbuf to force repaint of viewer - - Otherwise the message that the photo isn't available will never - be painted - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=766338 - -M src/PhotoPage.vala - -commit e74f1ba305195266a7fdf3d3623bb9d3c9e015a3 -Author: Jens Georg -Date: Sat May 21 15:14:00 2016 +0200 - - build: Fix find in Makefile - - Signed-off-by: Jens Georg - -M Makefile - -commit fdd4126e84760290bffe4c8b0a54a95dcd9e7c42 -Author: Dušan Kazik -Date: Sat May 21 08:44:22 2016 +0000 - - Updated Slovak translation - -M po/sk.po - -commit 43187b315b85d75c23dcb2b655e24cdc20ee4cde -Author: Baurzhan Muftakhidinov -Date: Tue May 17 10:46:22 2016 +0000 - - Updated Kazakh translation - -M po/kk.po - -commit aa3f39e86465842abd7a68aee71f7baa5c35cee5 -Author: Jens Georg -Date: Mon May 16 21:21:00 2016 +0200 - - When moving .gnome2, don't bail out needlessly - - Just ignore errors - - Signed-off-by: Jens Georg - -M src/AppDirs.vala - -commit 13c5537a2efb4bd9b57027a721b73daa755be334 -Author: Jens Georg -Date: Mon May 16 21:20:06 2016 +0200 - - Update icons - - https://bugzilla.gnome.org/show_bug.cgi?id=717326 - - Signed-off-by: Jens Georg - -M Makefile -A app-icons/16x16/apps/shotwell.png -A app-icons/22x22/apps/shotwell.png -A app-icons/24x24/apps/shotwell.png -A app-icons/256x256/apps/shotwell.png -A app-icons/32x32/apps/shotwell.png -A app-icons/48x48/apps/shotwell.png -A app-icons/symbolic/apps/shotwell-symbolic.svg -A icons/shotwell-16.png -D icons/shotwell-16.svg -D icons/shotwell-24.svg -D icons/shotwell.ico -A icons/shotwell.png -D icons/shotwell.svg -M src/AppWindow.vala -M src/Dialogs.vala -M src/Resources.vala - -commit 8b3029e0476df8025e97191f9ec6b5e192482889 -Author: Jens Georg -Date: Sun May 15 21:12:37 2016 +0200 - - Use XDG_DATA_HOME instead of deprecated .gnome2 - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=766339 - -M src/AppDirs.vala - -commit 61f502c3975d67765f34f53bc3080754cb51a1d1 -Author: Jens Georg -Date: Mon May 9 22:50:41 2016 +0200 - - Do not block viewer if we could not open photo - - If for some reason shotwell was started as a viewer and could not - access the - photo (seems to happen e.g. on DAV shares mounted through gvfs), - do not block - the close button because we mark the file as non-closable due to - parameter - checking fail: - - V 4243 2016-05-09 22:47:00 [CRT] - direct_photo_page_check_ok_to_close_photo: - assertion 'IS_PHOTO (photo)' failed - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=740436 - -M src/direct/DirectPhotoPage.vala - -commit 60e02e33bfe0511d21bde9462488bd6a784596e0 -Author: Rafael Fontenelle -Date: Sat May 7 00:44:47 2016 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit 5684f9bfa3cbb19b8ec8f248501d272647438ada -Author: Piotr Drąg -Date: Sat May 7 00:32:50 2016 +0200 - - Updated Polish translation - -M po/pl.po - -commit 19ccd5c41c4e1bad1df4834d0c75f6018f570f99 -Author: Adam Dingle -Date: Fri May 6 11:10:26 2016 -0400 - - Transfer copyrights from Yorba to Software Freedom Conservancy - -M INSTALL -M README -M chkver -M configure -M debian/copyright -M help/C/Makefile -M misc/shotwell.appdata.xml -M mkunit -M mkvala -M plugins/common/RESTSupport.vala -M plugins/common/Resources.vala -M plugins/common/SqliteSupport.vala -M plugins/common/VersionNumber.vala -M plugins/shotwell-data-imports/FSpotDatabase.vala -M plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala -M plugins/shotwell-data-imports/FSpotDatabaseTable.vala -M plugins/shotwell-data-imports/FSpotImporter.vala -M plugins/shotwell-data-imports/FSpotMetaTable.vala -M plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala -M plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala -M plugins/shotwell-data-imports/FSpotPhotosTable.vala -M plugins/shotwell-data-imports/FSpotRollsTable.vala -M plugins/shotwell-data-imports/FSpotTableBehavior.vala -M plugins/shotwell-data-imports/FSpotTagsTable.vala -M plugins/shotwell-data-imports/shotwell-data-imports.vala -M plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/PiwigoPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -M plugins/shotwell-publishing/shotwell-publishing.vala -M plugins/shotwell-transitions/BlindsEffect.vala -M plugins/shotwell-transitions/ChessEffect.vala -M plugins/shotwell-transitions/CircleEffect.vala -M plugins/shotwell-transitions/CirclesEffect.vala -M plugins/shotwell-transitions/ClockEffect.vala -M plugins/shotwell-transitions/CrumbleEffect.vala -M plugins/shotwell-transitions/FadeEffect.vala -M plugins/shotwell-transitions/SlideEffect.vala -M plugins/shotwell-transitions/SquaresEffect.vala -M plugins/shotwell-transitions/StripesEffect.vala -M plugins/shotwell-transitions/shotwell-transitions.vala -M po/af.po -M po/ar.po -M po/as.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/bn_IN.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/eo.po -M po/es.po -M po/et.po -M po/eu.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/gu.po -M po/he.po -M po/hi.po -M po/hr.po -M po/hu.po -M po/ia.po -M po/id.po -M po/it.po -M po/ja.po -M po/kk.po -M po/km.po -M po/kn.po -M po/ko.po -M po/ky.po -M po/lt.po -M po/lv.po -M po/mk.po -M po/ml.po -M po/mr.po -M po/nb.po -M po/nl.po -M po/nn.po -M po/or.po -M po/pa.po -M po/pt.po -M po/pt_BR.po -M po/ro.po -M po/ru.po -M po/sk.po -M po/sl.po -M po/sr.po -M po/sr@latin.po -M po/sv.po -M po/ta.po -M po/te.po -M po/th.po -M po/tr.po -M po/uk.po -M po/vi.po -M po/zh_CN.po -M po/zh_HK.po -M po/zh_TW.po -M samples/simple-plugin/README -M samples/simple-plugin/simple-plugin.vala -M settings-migrator/shotwell-settings-migrator -M src/AppDirs.vala -M src/AppWindow.vala -M src/Application.vala -M src/BatchImport.vala -M src/Box.vala -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/ColorTransformation.vala -M src/CommandManager.vala -M src/Commands.vala -M src/CustomComponents.vala -M src/Debug.vala -M src/DesktopIntegration.vala -M src/Dialogs.vala -M src/Dimensions.vala -M src/DirectoryMonitor.vala -M src/Event.vala -M src/Exporter.vala -M src/International.vala -M src/LibraryFiles.vala -M src/LibraryMonitor.vala -M src/MediaDataRepresentation.vala -M src/MediaInterfaces.vala -M src/MediaMetadata.vala -M src/MediaMonitor.vala -M src/MediaPage.vala -M src/MediaViewTracker.vala -M src/MetadataWriter.vala -M src/Orientation.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoMonitor.vala -M src/PhotoPage.vala -M src/PixbufCache.vala -M src/Printing.vala -M src/Properties.vala -M src/Resources.vala -M src/Screensaver.vala -M src/SearchFilter.vala -M src/SlideshowPage.vala -M src/SortedList.vala -M src/Tag.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala -M src/TimedQueue.vala -M src/Tombstone.vala -M src/UnityProgressBar.vala -M src/Upgrades.vala -M src/VideoMetadata.vala -M src/VideoMonitor.vala -M src/VideoSupport.vala -M src/camera/Branch.vala -M src/camera/Camera.vala -M src/camera/CameraTable.vala -M src/camera/GPhoto.vala -M src/camera/ImportPage.vala -M src/config/Config.vala -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala -M src/core/Alteration.vala -M src/core/ContainerSourceCollection.vala -M src/core/Core.vala -M src/core/DataCollection.vala -M src/core/DataObject.vala -M src/core/DataSet.vala -M src/core/DataSource.vala -M src/core/DataSourceTypes.vala -M src/core/DataView.vala -M src/core/DataViewTypes.vala -M src/core/DatabaseSourceCollection.vala -M src/core/SourceCollection.vala -M src/core/SourceHoldingTank.vala -M src/core/SourceInterfaces.vala -M src/core/Tracker.vala -M src/core/ViewCollection.vala -M src/core/util.vala -M src/data_imports/DataImportJob.vala -M src/data_imports/DataImportSource.vala -M src/data_imports/DataImports.vala -M src/data_imports/DataImportsPluginHost.vala -M src/data_imports/DataImportsUI.vala -M src/db/DatabaseTable.vala -M src/db/Db.vala -M src/db/EventTable.vala -M src/db/PhotoTable.vala -M src/db/SavedSearchDBTable.vala -M src/db/TagTable.vala -M src/db/TombstoneTable.vala -M src/db/VersionTable.vala -M src/db/VideoTable.vala -M src/direct/Direct.vala -M src/direct/DirectPhoto.vala -M src/direct/DirectPhotoPage.vala -M src/direct/DirectView.vala -M src/direct/DirectWindow.vala -M src/editing_tools/EditingTools.vala -M src/editing_tools/StraightenTool.vala -M src/events/Branch.vala -M src/events/EventDirectoryItem.vala -M src/events/EventPage.vala -M src/events/Events.vala -M src/events/EventsDirectoryPage.vala -M src/folders/Branch.vala -M src/folders/Folders.vala -M src/folders/Page.vala -M src/library/Branch.vala -M src/library/FlaggedPage.vala -M src/library/FlaggedSidebarEntry.vala -M src/library/ImportQueuePage.vala -M src/library/ImportQueueSidebarEntry.vala -M src/library/LastImportPage.vala -M src/library/LastImportSidebarEntry.vala -M src/library/Library.vala -M src/library/LibraryWindow.vala -M src/library/OfflinePage.vala -M src/library/OfflineSidebarEntry.vala -M src/library/TrashPage.vala -M src/library/TrashSidebarEntry.vala -M src/main.vala -M src/photos/BmpSupport.vala -M src/photos/GRaw.vala -M src/photos/GdkSupport.vala -M src/photos/JfifSupport.vala -M src/photos/PhotoFileAdapter.vala -M src/photos/PhotoFileFormat.vala -M src/photos/PhotoFileSniffer.vala -M src/photos/PhotoMetadata.vala -M src/photos/Photos.vala -M src/photos/PngSupport.vala -M src/photos/RawSupport.vala -M src/photos/TiffSupport.vala -M src/plugins/DataImportsInterfaces.vala -M src/plugins/ManifestWidget.vala -M src/plugins/Plugins.vala -M src/plugins/PublishingInterfaces.vala -M src/plugins/SpitInterfaces.vala -M src/plugins/StandardHostInterface.vala -M src/plugins/TransitionsInterfaces.vala -M src/publishing/APIGlue.vala -M src/publishing/Publishing.vala -M src/publishing/PublishingPluginHost.vala -M src/publishing/PublishingUI.vala -M src/searches/Branch.vala -M src/searches/SavedSearchDialog.vala -M src/searches/SavedSearchPage.vala -M src/searches/SearchBoolean.vala -M src/searches/Searches.vala -M src/sidebar/Branch.vala -M src/sidebar/Entry.vala -M src/sidebar/Sidebar.vala -M src/sidebar/Tree.vala -M src/sidebar/common.vala -M src/slideshow/Slideshow.vala -M src/slideshow/TransitionEffects.vala -M src/tags/Branch.vala -M src/tags/HierarchicalTagIndex.vala -M src/tags/HierarchicalTagUtilities.vala -M src/tags/TagPage.vala -M src/tags/Tags.vala -M src/threads/BackgroundJob.vala -M src/threads/Semaphore.vala -M src/threads/Threads.vala -M src/threads/Workers.vala -M src/unit/Unit.vala -M src/unit/rc/Unit.m4 -M src/unit/rc/UnitInternals.m4 -M src/unit/rc/template.vala -M src/unit/rc/unitize_entry.m4 -M src/util/KeyValueMap.vala -M src/util/Util.vala -M src/util/file.vala -M src/util/image.vala -M src/util/misc.vala -M src/util/string.vala -M src/util/system.vala -M src/util/ui.vala -M thumbnailer/shotwell-video-thumbnailer.vala -M vapi/LConv.vapi -M vapi/gphoto-2.4/libgphoto2.vapi -M vapi/gphoto-2.5/libgphoto2.vapi -M vapi/gphoto.h -M vapi/libexif.vapi -M vapi/libraw.vapi - -commit 5f60d0e709440b647db31e3d29bdec91b46dc919 -Author: Jens Georg -Date: Wed May 4 22:24:05 2016 +0200 - - Rework in-tree logic - - Instead of doing prefix magic, check whether there is a directory - called "ui" - next to the executable and assume we run in-tree. - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=747374 - -M src/util/system.vala - -commit f5112881639ad10cbbe0738905d8c0e39d0512ee -Author: Tiago Santos -Date: Wed May 4 19:09:03 2016 +0000 - - Updated Portuguese translation - -M po/pt.po - -commit 3e7bf4b065144446e87d96006f537b009802e83a -Author: Rafael Fontenelle -Date: Tue May 3 18:35:46 2016 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit c56ff54a0a86ec0588f936ce04c707e61a79dc7a -Author: Piotr Drąg -Date: Mon May 2 12:29:38 2016 +0200 - - Updated Polish translation - -M po/pl.po - -commit a93c3df4813d649e45819b625dc03aaf0179f266 -Author: Jens Georg -Date: Sun May 1 15:38:11 2016 +0200 - - Yorba => Shotwell in About dialog - - Signed-off-by: Jens Georg - -M src/AppWindow.vala - -commit 19b0722b6129bd976ea879fd683e94dee9c8d480 -Author: Balázs Meskó -Date: Sat Apr 30 12:44:50 2016 +0000 - - Updated Hungarian translation - -M po/hu.po - -commit 1886512e64c2a46313585533a51ca34a857eb861 -Author: Jens Georg -Date: Fri Apr 29 20:59:23 2016 +0200 - - Relax assertion in Photo file monitor - - If the file is newly created, due to the way exiv2 does the metadata - writing (remove => rename due to windows limitations) and we do - not ask - GLib for the MOVE event, we receive a DELETE event for the temp file - that exiv2 creats. - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=759403 - -M src/Photo.vala - -commit 956326efd82a91c2cbc980b2edb12232082e2ad8 -Author: Jens Georg -Date: Thu Apr 28 22:03:33 2016 +0200 - - Remove custom WEXISTATUS implementation - - Signed-off-by: Jens Georg - -M src/VideoSupport.vala -M src/util/system.vala - -commit ce9c8df241f5d72af8bd829f886afceeda171030 -Author: Jens Georg -Date: Thu Apr 28 21:22:06 2016 +0200 - - Remove obsolete vapis - - - ExtendedPosix - replaced by GLib.get_num_processors() - - unique-3.0 - unused, replaced with GApplication - - Signed-off-by: Jens Georg - -M Makefile -M src/BatchImport.vala -M src/threads/Workers.vala -M src/util/system.vala -D vapi/ExtendedPosix.vapi -D vapi/unique-3.0.deps -D vapi/unique-3.0.vapi - -commit bc2b5af6b3f5ea98d52f7ac1639fef5490688ef5 -Author: Jens Georg -Date: Thu Apr 28 20:55:54 2016 +0200 - - facebook: Update application id - - https://bugzilla.gnome.org/show_bug.cgi?id=748991 - - Signed-off-by: Jens Georg - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit 1cc2326a740776699b6f418730878bd0f973bc76 -Author: Jens Georg -Date: Tue Apr 26 21:42:48 2016 +0200 - - icons: Remove exec flag from images - - Signed-off-by: Jens Georg - -M icons/filter-flagged.png -M icons/filter-videos.png -M icons/pin-toolbar.svg -M icons/slideshow-extension-point.png - -commit eefc1d093cdd6d21e84f6cdc9c281094a92a8ec9 -Author: Jens Georg -Date: Tue Apr 26 19:10:54 2016 +0200 - - debian: Update changelog - - Signed-off-by: Jens Georg - -M debian/changelog -M debian/control - -commit d6665fcc18b66ce56daafb360c0bd92230b6f26a -Author: Daniel Mustieles -Date: Thu Apr 28 19:18:05 2016 +0200 - - Updated Spanish translation - -M po/es.po - -commit 79c429ae394b9eb29bd102eeff75c013d691a560 -Author: Jens Georg -Date: Mon Apr 25 22:46:38 2016 +0200 - - Prepare Shotwell 0.23.0 - - Signed-off-by: Jens Georg - -M Makefile -M NEWS - -commit b33cacf717d3ee761d45ccc9f70d4eb798a55f76 -Author: Jens Georg -Date: Mon Apr 25 21:09:17 2016 +0200 - - data: Fix contradicting icon license - - The icon comes from the Breathe icon theme where it was supposed to be - cc-by-sa. Apparently there was some relicensing from cc-by-nc-sa - but the - clause was not removed. - - Signed-off-by: Jens Georg - - https://bugzilla.gnome.org/show_bug.cgi?id=757643 - -M icons/rejected.svg - -commit c48bf5d4231adbaff972cdc266b42aa1402912c7 -Author: Jens Georg -Date: Tue Apr 19 21:32:51 2016 +0200 - - build: Speed up parallel builds - - Plugins were compiled several times because make did not get the - dependencies - right. - - Signed-off-by: Jens Georg - -M plugins/Makefile.plugin.mk - -commit 423a70b1752c1fd4c8bccf492dc77faaf1f9647a -Author: Jens Georg -Date: Tue Apr 19 21:32:28 2016 +0200 - - build: Call pkg-config only once - - Signed-off-by: Jens Georg - -M Makefile -M plugins/Makefile.plugin.mk - -commit 52c0f36105d895ab02415056d96fa467a906fb34 -Author: Jens Georg -Date: Tue Apr 19 20:45:23 2016 +0200 - - build: Don't build plugins twice - - The .c files were compiled with vala once, then again with C compiler. - - Signed-off-by: Jens Georg - -M plugins/Makefile.plugin.mk - -commit be4fea099e99787d113ca38b3725d8e1df3e52b9 -Author: Mario Blättermann -Date: Mon Apr 18 18:01:08 2016 +0000 - - Updated German translation - -M po/de.po - -commit b2e21676e7710711dd634972b68a129c8af376e3 -Author: Cédric Valmary -Date: Mon Apr 18 17:07:20 2016 +0000 - - Added Occitan translation - -M po/LINGUAS -A po/oc.po - -commit 1cdf99c7ba95b0e23f81a58a4c4235eff1a8495a -Author: Jens Georg -Date: Sun Apr 17 18:53:04 2016 +0200 - - Use proper umask for creating directories - - https://bugzilla.gnome.org/show_bug.cgi?id=765182 - -M src/AppDirs.vala - -commit 72ee0a3d44425cf93d651ff3ee45c617aa284332 -Author: Piotr Drąg -Date: Sun Apr 17 15:27:37 2016 +0200 - - Updated Polish translation - -M po/pl.po - -commit c0b22f77bac3c0030ca0ba712b8dcd8842d8a2de -Author: Dušan Kazik -Date: Sat Apr 16 19:38:44 2016 +0000 - - Updated Slovak translation - -M po/sk.po - -commit be8faf6883401f0f916c135a22a5fa2106ae6a86 -Author: Marek Černocký -Date: Sat Apr 16 18:47:12 2016 +0200 - - Updated Czech translation - -M po/cs.po - -commit 339d8439b73dcbda31187a1c6797a2449a8b8f6e -Author: Marek Černocký -Date: Sat Apr 16 18:44:51 2016 +0200 - - Updated Czech translation - -M help/cs/cs.po -M po/cs.po - -commit ed6397c27094c113eb45ab08a0fcb5ad54859d91 -Author: Robert Ancell -Date: Tue May 26 18:24:10 2015 +1200 - - Don't use GtkHeaderBar on dialogs if the gtk-dialogs-use-header - setting is not set - - https://bugzilla.gnome.org/show_bug.cgi?id=749874 - -M src/Dialogs.vala -M src/Properties.vala -M src/data_imports/DataImportsUI.vala -M src/publishing/PublishingUI.vala - -commit 1fc4f35ee3d156a90ca7add6accc694643dd2a65 -Author: Trinh Anh Ngoc -Date: Fri Apr 10 22:40:41 2015 +0700 - - Fix css - - https://bugzilla.gnome.org/show_bug.cgi?id=747637 - -M src/Resources.vala - -commit b0ea780baf21a60e9b0103a6c4242784da8a83a8 -Author: Rafael Fontenelle -Date: Sat Apr 16 11:18:09 2016 +0000 - - Updated Brazilian Portuguese translation - -M help/pt_BR/pt_BR.po - -commit cdc509a1dc4b51f5acace97617be0a8497781e0b -Author: Rafael Fontenelle -Date: Sat Apr 16 11:01:46 2016 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit 147428b45d32796354c4500f811e06e1922b102c -Author: Rafael Fontenelle -Date: Thu Apr 7 17:30:56 2016 -0300 - - Change "Date and Time" help's page filename to fit its content - - Shotwell's UI has "Adjust Date and Time", while this help page - made reference to "time and date" all over. Now that its content - is all standardized to "date and time", changing its filename - as well seems to make sense. - - https://bugzilla.gnome.org/show_bug.cgi?id=764800 - -R096 help/C/edit-time-date.page help/C/edit-date-time.page -M help/C/edit-nondestructive.page -M help/Makefile.am - -commit 810f08310fbad5da0c70f7ee4e5e78d5fd871fbd -Author: Rafael Fontenelle -Date: Thu Apr 7 17:10:27 2016 -0300 - - Add '' tag to option/item/button mentions - - The help files mentions option/item/button labels of Shotwell's UI - without the proper and mallard tags. This commit fix it. - - Target labels of this commit: - - organize-event: "Events" - organize-search: "+", "-" and "OK" - organize-tag: "Tags" - - https://bugzilla.gnome.org/show_bug.cgi?id=764800 - -M help/C/organize-event.page -M help/C/organize-search.page -M help/C/organize-tag.page - -commit 1c5a8ab880c603fc8987ae31c6e9c8777099c7ac -Author: Rafael Fontenelle -Date: Thu Apr 7 16:39:08 2016 -0300 - - Fixed mentions to UI's option/item/button labels - - Some Help pages had mentions of options/items/buttons, from - the Shotwell's UI, with typos or wrong reference. - This commit aims fixing small issues, but that could bother - the user. - - Summary of changes: - - edit-adjustments: Apply -> OK (button) - edit-crop: Apply -> Crop (button) - edit-straighten: OK -> Straighten (button) - edit-time-date: Added "..." to menu item and replaced all - "time and date" -> "date and time" to fit - UI's "Adjust Date and Time..." - - import-*, organize-*, share-*: - Added "..." to menu item - + organize-search: New Search > New Saved Search... - - https://bugzilla.gnome.org/show_bug.cgi?id=764800 - -M help/C/edit-adjustments.page -M help/C/edit-crop.page -M help/C/edit-straighten.page -M help/C/edit-time-date.page -M help/C/import-file.page -M help/C/import-memorycard.page -M help/C/organize-event.page -M help/C/organize-search.page -M help/C/organize-tag.page -M help/C/organize-title.page -M help/C/share-background.page -M help/C/share-export.page -M help/C/share-print.page - -commit 2fef7df701ae6e3238c3ad07139db57aa70f7ed2 -Author: Rafael Fontenelle -Date: Thu Apr 7 16:35:05 2016 -0300 - - Removed execution permissions of formats page - - formats.page had permissions "-rwxr-xr-x" (755), while others had - -rw-r--r-- (644). Changed that to be like other pages. - - https://bugzilla.gnome.org/show_bug.cgi?id=764800 - -M help/C/formats.page - -commit e895002448acdb5ab50bad670499b14b4cba7c87 -Author: Jens Georg -Date: Fri Apr 15 23:21:31 2016 +0200 - - Update .gitignore - -M .gitignore - -commit de1aae80b99a2e8da5260067f729d986be339c29 -Author: Jens Georg -Date: Fri Apr 15 23:19:14 2016 +0200 - - Do not use Posix.system() - -M src/db/DatabaseTable.vala -M src/main.vala - -commit 379e37a8c35a670d8d68f65d0500f19465ffb07c -Author: Jens Georg -Date: Fri Apr 15 22:31:05 2016 +0200 - - build: Remove some shell magic - - git rev-parse HEAD does the same - -M Makefile - -commit 16c681d8440432903096a2cd0d76a9a643d01a0e -Author: Jens Georg -Date: Fri Apr 15 22:09:44 2016 +0200 - - Make myself maintainer - -M shotwell.doap - -commit 417fbf1ed6858937837250a42be5769d9b8864ee -Author: Rafael Fontenelle -Date: Thu Apr 7 17:49:03 2016 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit 01786149a86b06db7ba9fd7b9d4576b8a411cde5 -Author: Felipe Braga -Date: Thu Apr 7 14:14:49 2016 -0300 - - Added Brazilian Portuguese translation for help files - -M help/Makefile.am -A help/pt_BR/pt_BR.po - -commit e140069f3e948434e87571bad3247ec51f595fe0 -Author: Rafael Fontenelle -Date: Thu Apr 7 16:54:02 2016 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit 9dad5e4aec8f06d1c49efc89d366cd9cae7ed4d7 -Author: Felipe Braga -Date: Wed Apr 6 22:47:48 2016 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit 13c56bce7f1c59458e3102128eed6db8aaff7826 -Author: Claude Paroz -Date: Wed Mar 30 08:56:54 2016 +0200 - - Updated French translation - -M po/fr.po - -commit f517df67c1ea020c99b64db3a1c405bca7ed2009 -Author: Jordi Mas -Date: Thu Mar 24 22:56:32 2016 +0100 - - Fixes to Catalan translation - -M po/ca.po - -commit d242b5ec8d607ab82b829996aceb82ee555378e3 -Author: Muhammet Kara -Date: Sat Mar 19 12:52:39 2016 +0000 - - Updated Turkish translation - -M po/tr.po - -commit 563bb35b4e4f1f5f5af6820f42ff5cafc587515c -Author: Boram Kim -Date: Wed Mar 16 01:24:37 2016 +0000 - - Updated Korean translation - -M po/ko.po - -commit 03dd881b9d1ad792bebeb11198b6d9b606d2faf8 -Author: Mayela Miranda -Date: Thu Mar 10 10:53:15 2016 +0000 - - Updated Spanish translation - -M help/es/es.po - -commit 3eb8f8ffb8cf5defa24a5b5d39c666258ec3cc5b -Author: Mayela Miranda -Date: Wed Mar 9 08:19:25 2016 +0000 - - Updated Spanish translation - -M help/es/es.po - -commit d5c26b3dddf57f5bf9355f667bdca3445ac9ee96 -Author: Mayela Miranda -Date: Tue Mar 8 11:30:51 2016 +0000 - - Updated Spanish translation - -M help/es/es.po - -commit ebf739c60eb401d9df181a6072192cde88614a22 -Author: Mayela Miranda -Date: Wed Mar 2 07:32:58 2016 +0000 - - Updated Spanish translation - -M help/es/es.po - -commit f74ba7066bbeac01c0e9bee7c6ad204f4c3a1641 -Author: Kjartan Maraas -Date: Sun Feb 28 17:21:14 2016 +0100 - - Updated Norwegian bokmål translation from Rune Ringdal. - -M po/nb.po - -commit 4d08b6253b2f0648c4d4bb897f4866d15fb3a2d1 -Author: Kjartan Maraas -Date: Sun Feb 28 17:20:10 2016 +0100 - - Updated Norwegian bokmål translation from Rune Ringdal. - -M po/nb.po - -commit 045a93924803b013d93e5265aadfce77879d337c -Author: Anders Jonsson -Date: Thu Feb 18 10:46:13 2016 +0000 - - Updated Swedish translation - -M help/sv/sv.po - -commit bfebaa91945a9124a65efbe700f132f94cbdf615 -Author: Aurimas Černius -Date: Sun Jan 24 19:26:13 2016 +0200 - - Updated Lithuanian translation - -M po/lt.po - -commit f2fb1f7059e17b998a851626a7b076716020a7ac -Author: Мирослав Николић -Date: Sun Jan 3 22:11:16 2016 +0100 - - Updated Serbian translation - -M po/sr.po -M po/sr@latin.po - -commit b6aad5eb1af16acbb4ee4984e58dfeb08597923b -Author: Michael Catanzaro -Date: Fri Dec 4 18:08:54 2015 +0100 - - facebook: Don't disable XSS auditor - - This is a separate commit to make it possible to revert easily, as - I don't know why it was disabled. - - https://bugzilla.gnome.org/show_bug.cgi?id=751709 - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit f045b7a13cc1efbfa3054338d0edf569df51f4e7 -Author: Michael Catanzaro -Date: Fri Dec 4 17:34:17 2015 +0100 - - Have all soup sessions validate TLS certificates - - Note that this commit is *not* sufficient to fix certificate - verification - on its own. The port to WK2 is also required, else WebKit's soup - session - will not verify certificates. - - https://bugzilla.gnome.org/show_bug.cgi?id=751709 - -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit a2844fbfeb23a0bf6b2489761ab5f51e15dc4efe -Author: Michael Catanzaro -Date: Fri Dec 4 17:33:43 2015 +0100 - - Don't pack webview into a scrolled window - - The scrollbar is drawn by WebKitWebView in WK2. - - https://bugzilla.gnome.org/show_bug.cgi?id=751709 - -M plugins/common/RESTSupport.vala - -commit 3ae27fc3f41ceb7820f365244e6ae6a4dc65fcaa -Author: Iain Lane -Date: Tue Jun 30 10:43:15 2015 +0100 - - Port to webkit2gtk-4.0 - - https://bugzilla.gnome.org/show_bug.cgi?id=751709 - -M Makefile -M debian/control -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing-extras/Makefile -M plugins/shotwell-publishing-extras/YandexPublishing.vala -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/Makefile -D vapi/webkitgtk-3.0.deps -D vapi/webkitgtk-3.0.vapi - -commit 18db35fbfd1f44182fe8194428c509bde90a6bec -Author: Christian Kirbach -Date: Mon Dec 7 19:58:20 2015 +0000 - - Updated German translation - -M help/de/de.po - -commit 3ffbf82cb4c3da7cea29bdb036dd1392e29415bd -Author: Pedro Albuquerque -Date: Tue Nov 17 08:00:28 2015 +0000 - - Updated Portuguese translation - -M po/pt.po - -commit 020fbc7c6ab289351423e316cbc825783ea9ce00 -Author: Aurimas Černius -Date: Tue Nov 3 21:23:25 2015 +0200 - - Updated Lithuanian translation - -M po/lt.po - -commit dc4beb8c6bd534e6763b0397e554946b0d4233d7 -Author: Jiri Grönroos -Date: Sun Oct 18 09:39:45 2015 +0000 - - Updated Finnish translation - -M po/fi.po - -commit 1e13a00ef38f4ca6e216f37a305b93cfbe65202d -Author: Balázs Meskó -Date: Sun Oct 11 17:49:07 2015 +0000 - - Updated Hungarian translation - -M po/hu.po - -commit da21604830386a7c1f2b8d1f75a9d98719e5e5d1 -Author: Trần Ngọc Quân -Date: Tue Sep 29 15:06:04 2015 +0700 - - Updated Vietnamese translation - - Signed-off-by: Trần Ngọc Quân - -M po/vi.po - -commit fb93b79ba2165843f8eb35fdadb0d86cc0620683 -Author: Christian Kirbach -Date: Sat Sep 19 07:47:56 2015 +0000 - - Updated German translation - -M po/de.po - -commit 9d56fda7721afd11a4a22fc539b4401185db7cc0 -Author: Timo Jyrinki -Date: Thu Sep 10 18:51:05 2015 +0300 - - Finnish translation, fix time formats - -M po/fi.po - -commit e43b9d73fa6a90d39d61b83e05fec2866fddf606 -Author: Jiri Grönroos -Date: Thu Sep 10 18:49:28 2015 +0300 - - Finnish translation update - -M po/fi.po - -commit fc438c7220dcf915fdf8e54f7325d420e15e2002 -Author: Piotr Drąg -Date: Wed Sep 2 19:49:49 2015 +0200 - - Updated Polish translation - -M po/pl.po - -commit 51492b5faa0ea5549183bcdae1368d91935c1aef -Author: Yosef Or Boczko -Date: Sun Aug 30 11:35:22 2015 +0300 - - Updated Hebrew translation - -M po/he.po - -commit 6bd668604537f9d11bb7d4874e2fd5f77ed63db0 -Author: Josef Andersson -Date: Sun Jul 26 19:48:30 2015 +0200 - - Add Swedish help translation - -M help/Makefile.am -A help/sv/sv.po - -commit a82da07483ffbafa36441d10ee3d4012649a60ca -Author: Josef Andersson -Date: Wed Jul 22 19:31:02 2015 +0000 - - Updated Swedish translation - -M po/sv.po - -commit f8dfcbd4212a88daa97579f2c2d644c94cee7a63 -Author: Stas Solovey -Date: Wed Jul 15 20:39:17 2015 +0000 - - Updated Russian translation - -M po/ru.po - -commit 4236cdc203597155d7a673d5a47bf4f45c4af3a9 -Author: Daniel Mustieles -Date: Mon Jul 13 17:39:13 2015 +0200 - - Updated Spanish translation - -M po/es.po - -commit 3de1bd4b5e4c57087407d55c36ccf227cc71a7a6 -Author: Jordi Mas -Date: Tue May 26 21:42:04 2015 +0200 - - Fixes to Catalan translation - -M po/ca.po - -commit f88dab8eb7ddaeb9741a63e0b1cc17aa28edf558 -Author: Balázs Úr -Date: Fri May 22 08:41:54 2015 +0000 - - Updated Hungarian translation - -M help/hu/hu.po - -commit 671e27aec987ee8076acf9983434dac5185e4faf -Author: Gábor Kelemen -Date: Sat May 9 09:16:24 2015 +0000 - - Updated Hungarian translation - -M po/hu.po - -commit b173e126be4e135b2d170a44764dcaf30516de38 -Author: Jordi Mas -Date: Thu Apr 30 20:27:43 2015 +0200 - - Fixes to Catalan translation - -M po/ca.po - -commit 6ec5ebfe0d7dbc963e49eec53a19f4a444aadf14 -Author: Rafael Ferreira -Date: Fri Apr 24 00:33:38 2015 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit 8f15f971168f46b4a9d78d4491905ad99e132fe5 -Author: Jordi Mas -Date: Sat Apr 18 15:42:30 2015 +0200 - - Fixes to Catalan translation - -M po/ca.po - -commit 93671dcef35192e0a0c757cc5a6d8b8859fbfbea -Author: Dušan Kazik -Date: Fri Apr 10 10:59:11 2015 +0000 - - Updated Slovak translation - -M po/sk.po - -commit 2cbe54922e2c1dd5e81690b625ba7b111c5bf33c -Author: Marek Černocký -Date: Wed Apr 8 07:53:42 2015 +0200 - - Updated Czech translation - -M po/cs.po - -commit efc743f5cadf75052689fefbd11861460210f4c9 -Author: Piotr Drąg -Date: Sun Apr 5 22:05:00 2015 +0200 - - Updated Polish translation - -M po/pl.po - -commit f8fac1a6d26304f004ec4b3c59d267e3237e5257 -Author: Piotr Drąg -Date: Sun Apr 5 22:03:18 2015 +0200 - - Slightly improve new strings - -M src/AppDirs.vala - -commit 0c97e783bf4f7dd4b054f99c40db4f37dacc7d7b -Author: Wolfgang Steitz -Date: Fri Apr 3 15:53:30 2015 +0200 - - Fixed Crop Ribbon / Control not visible (#747201) - -M src/editing_tools/EditingTools.vala - -commit 66a2a49ad924dd4403f642103f8f324c60c6c3ef -Author: Wolfgang Steitz -Date: Fri Apr 3 10:21:15 2015 +0200 - - Fix crash during metadate update (#739917) - - In MetadataWriter, it is possible that several CommitJobs for one - photo are scheduled. If that happens, the callback will crash. This - commit fixes this, by only allowing one job per photo. Canceled jobs - are now kept in a separate list. - -M src/MetadataWriter.vala - -commit 1caa898c0a58291f1b47bac85c3bed9895d1d1af -Author: Wolfgang Steitz -Date: Tue Mar 31 19:50:05 2015 +0200 - - Fixed. Check .cache directory for read/write permissions (#737747) - -M src/AppDirs.vala - -commit f632865628a75416c3f2d280a4a04b3f3169f9a8 -Author: Dušan Kazik -Date: Wed Apr 1 18:28:09 2015 +0000 - - Updated Slovak translation - -M po/sk.po - -commit caef1f1187a3534cb729f3aab3fab08fc5ae975b -Author: Marek Černocký -Date: Wed Apr 1 10:39:29 2015 +0200 - - Udated Czech translation - -M po/cs.po - -commit 7408749d8514874a7b26962fdced2ab19e8d42ae -Author: Wolfgang Steitz -Date: Sat Mar 28 18:53:40 2015 +0100 - - Check .cache directory for read/write permissions (#737747) - -M src/AppDirs.vala - -commit a91a734442a00b4418f603adf36d896359ec0d1e -Author: Wolfgang Steitz -Date: Thu Mar 26 20:51:42 2015 +0100 - - Allow thinner minimum sidebar width (#718611) - -M src/library/LibraryWindow.vala - -commit fbcd7f2ddc99572587a765ba2b878083b15c3feb -Author: Jim Nelson -Date: Mon Mar 23 18:17:33 2015 -0700 - - Update to 0.22 - -M Makefile -M NEWS -M debian/changelog - -commit 1c7e35e16ae5155d81db5ce9cc7c286ed70f69de -Author: Piotr Drąg -Date: Sun Mar 22 16:36:16 2015 +0100 - - Updated Polish translation - -M po/pl.po - -commit 39961197db21ea32b80150990a78cc1ef1277319 -Author: Trần Ngọc Quân -Date: Fri Mar 20 08:41:56 2015 +0700 - - Updated Vietnamese translation - - Signed-off-by: Trần Ngọc Quân - -M po/vi.po - -commit 5f008e5fb64c4691e789161c543c8e2640446595 -Author: Cheng-Chia Tseng <> -Date: Thu Mar 19 14:03:35 2015 +0000 - - Updated Chinese (Taiwan) translation - -M po/zh_TW.po - -commit 408bb4ea81f8a959e48652f7d59a1be14b5be285 -Author: Dušan Kazik -Date: Wed Mar 18 13:15:35 2015 +0000 - - Updated Slovak translation - -M po/sk.po - -commit 4216649e3d4ba4ebb64ce6b0881df741350b001d -Author: Marek Černocký -Date: Wed Mar 18 12:16:24 2015 +0100 - - Updated Czech translation - -M po/cs.po - -commit d2fe363e32cf77d1c74b8046669d92beb6eb91d2 -Author: Wolfgang Steitz -Date: Tue Mar 17 22:14:58 2015 +0100 - - use text-only section headers in sidebar (#718349) - -M po/POTFILES.in -M src/camera/Branch.vala -M src/events/Branch.vala -M src/events/EventsDirectoryPage.vala -M src/folders/Branch.vala -M src/library/Branch.vala -R079 src/library/FlaggedBranch.vala -src/library/FlaggedSidebarEntry.vala -R061 src/library/ImportQueueBranch.vala -src/library/ImportQueueSidebarEntry.vala -R062 src/library/LastImportBranch.vala -src/library/LastImportSidebarEntry.vala -M src/library/LibraryWindow.vala -R078 src/library/OfflineBranch.vala -src/library/OfflineSidebarEntry.vala -R092 src/library/TrashBranch.vala src/library/TrashSidebarEntry.vala -M src/library/mk/library.mk -M src/searches/Branch.vala -M src/sidebar/Entry.vala -M src/sidebar/Tree.vala -M src/sidebar/common.vala -M src/tags/Branch.vala - -commit 93f3e148ab06e267b4719d29538325a55c571cba -Author: Pau Iranzo -Date: Tue Mar 17 04:01:41 2015 -0400 - - Upload Catalan translation - -M po/ca.po - -commit 1acd13d145ee158c05578c4f03559e05ef9a1df7 -Author: Trần Ngọc Quân -Date: Tue Mar 17 15:00:36 2015 +0700 - - Updated Vietnamese translation - - Signed-off-by: Trần Ngọc Quân - -M po/vi.po - -commit 27844f5b450e3285f9d968effd0f6743b24a67b6 -Author: Tim Waugh -Date: Thu Mar 12 18:43:46 2015 +0000 - - Fix date selection when double-clicking (#746107). - -M src/searches/SavedSearchDialog.vala - -commit edb39b9f3225e0c411f0b685df17429a458cb40a -Author: Piotr Drąg -Date: Sun Mar 15 22:53:26 2015 +0100 - - Updated Polish translation - -M po/pl.po - -commit 48ecac53aa9316d6e50756d799c1bfe2c8894875 -Author: Baurzhan Muftakhidinov -Date: Sun Mar 15 17:54:10 2015 +0000 - - Updated Kazakh translation - -M po/kk.po - -commit 0a7dd9ae8030faeeb72f75401b66dd2636763a69 -Author: Kim Boram -Date: Sun Mar 15 23:31:49 2015 +0900 - - Updated Korean translation - -M po/ko.po - -commit b2adb969ef11baa8298e466457409c79aa1bc35e -Author: Samir Ribic -Date: Sat Mar 14 00:50:13 2015 +0000 - - Added Bosnian translation - -M po/LINGUAS -A po/bs.po - -commit 06df39cfb932e99e8ca8bf57b6a34f43f0d7b83b -Author: Yosef Or Boczko -Date: Fri Mar 13 04:21:13 2015 +0200 - - Updated Hebrew translation - -M po/he.po - -commit 4834579bbc9e047ccef74f244c10766a515ca9d4 -Author: Marek Černocký -Date: Thu Mar 12 11:38:56 2015 +0100 - - Updated Czech translation - -M po/cs.po - -commit a06cc6b8c48b536b64cd22d1fed05693398f9cf7 -Author: Dušan Kazik -Date: Thu Mar 12 09:02:15 2015 +0000 - - Updated Slovak translation - -M po/sk.po - -commit 77a810da34d6b167a2691060cfd12be2c830bcd0 -Author: Wolfgang Steitz -Date: Wed Mar 11 21:24:44 2015 +0100 - - Provide option to sort photos by filename, in addition to title, - exporsure date and rating (#717878) - -M src/MediaPage.vala -M src/Thumbnail.vala -M ui/media.ui - -commit ebe6722e30a2bd7bd876e3440443af380d93776e -Author: Wolfgang Steitz -Date: Mon Mar 9 21:01:03 2015 +0100 - - in adjust time dialog, set timeformat before setting the time. fixes - bug #718944 - -M src/Dialogs.vala - -commit b78d082b3433c4107f20ccee6717cec900eac798 -Author: Baurzhan Muftakhidinov -Date: Wed Mar 11 05:56:30 2015 +0000 - - Updated Kazakh translation - -M po/kk.po - -commit 70c149d6ab4fa12b0c73f38f169686d04d351aff -Author: Kim Boram -Date: Mon Mar 9 00:33:30 2015 +0900 - - Updated Korean translation - -M po/ko.po - -commit d21d726c3d0cf09762b47ebef727c3571617b84f -Author: Josef Andersson -Date: Sun Mar 8 11:59:47 2015 +0000 - - Updated Swedish translation - -M po/sv.po - -commit e12d4be13afdc677315d0b14fe997c50161423b4 -Author: Changwoo Ryu -Date: Sun Mar 8 05:06:56 2015 +0900 - - Updated Korean translation - -M po/ko.po - -commit e0bb3389751d1f88fce96cf4e50aa0f60459914e -Author: Stas Solovey -Date: Fri Mar 6 10:45:23 2015 +0000 - - Updated Russian translation - -M po/ru.po - -commit fbefbe63687a563ea20316b782f4103f74df2cae -Author: Rafael Ferreira -Date: Tue Mar 3 15:07:02 2015 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit 3b398fbbf6f75cd1d2567175be487361faf7e927 -Author: Marek Černocký -Date: Sun Mar 1 18:58:23 2015 +0100 - - Updated Czech translation - -M po/cs.po - -commit b541fd2973ea8fd6a25f1fb6c6112c3846fe8774 -Author: Maria Mavridou -Date: Wed Feb 25 13:45:51 2015 +0000 - - Updated Greek translation - -M po/el.po - -commit c0d2364bba8730f352df2e13afa153597576377a -Author: Cheng-Chia Tseng -Date: Mon Feb 23 14:21:14 2015 +0000 - - Updated Chinese (Taiwan) translation - -M po/zh_TW.po - -commit f79ffcabd4dfd078ed778f2fe476740c685f44dc -Author: Piotr Drąg -Date: Sun Feb 22 20:56:36 2015 +0100 - - Updated Polish translation - -M po/pl.po - -commit 2e411a21d127fbd0b0991e25598c22f1a3e7e1e1 -Author: Dušan Kazik -Date: Sat Feb 21 16:05:21 2015 +0000 - - Updated Slovak translation - -M po/sk.po - -commit 25ed5e530bcf24edce679dd030cab7ef1132ad81 -Author: Wolfgang Steitz -Date: Fri Feb 20 16:57:49 2015 -0800 - - Final migration of sidebar code from Geary to Shotwell: Bug #719284 - -M src/sidebar/Tree.vala - -commit 05a4bae2d83bd00918d833f49f262eb01a106879 -Author: Wolfgang Steitz -Date: Fri Feb 20 16:54:15 2015 -0800 - - Further work removing GtkStock and deprecations: Bug #719188 - -M Makefile -R100 icons/enhance.png icons/shotwell-auto-enhance.png -M src/AppWindow.vala -M src/CollectionPage.vala -M src/Dialogs.vala -M src/MediaPage.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/SearchFilter.vala -M src/SlideshowPage.vala -M src/camera/ImportPage.vala -M src/direct/DirectPhotoPage.vala -M src/editing_tools/EditingTools.vala -M src/library/ImportQueuePage.vala -M src/library/LibraryWindow.vala -M ui/set_background_dialog.glade -M ui/set_background_slideshow_dialog.glade -M ui/shotwell.glade - -commit ad0ad8f38226196a1c24dcb6f498072d2d1ef543 -Author: Marek Černocký -Date: Fri Feb 20 20:57:43 2015 +0100 - - Updated Czech translation - -M po/cs.po - -commit 23f79a90cf69e0fce4bdfbdd20eaae189f637b13 -Author: Wolfgang Steitz -Date: Tue Feb 17 12:35:02 2015 -0800 - - Use newer comparators in sidebar code: Bug #719284 - -M src/events/Branch.vala -M src/sidebar/Branch.vala - -commit 8de7e7d623ee9fe94121df6bce83a2107232f249 -Author: Wolfgang Steitz -Date: Tue Feb 17 12:32:30 2015 -0800 - - Remove icon closed string, follow-state for hover effect: Bug #719284 - -M src/Resources.vala -M src/camera/Branch.vala -M src/events/Branch.vala -M src/folders/Folders.vala -M src/sidebar/Entry.vala -M src/sidebar/Tree.vala - -commit 961f3d1fec14691675ef686d6af6165e07658867 -Author: Jim Nelson -Date: Tue Feb 17 11:49:02 2015 -0800 - - Fix split string in Gallery web connector: Bug #744539 - -M plugins/shotwell-publishing-extras/GalleryConnector.vala - -commit 6a9cef11283a2918e250e0277445d09adb805d6f -Author: Jim Nelson -Date: Tue Feb 17 11:38:12 2015 -0800 - - Missing semicolon in kn .desktop string - -M po/kn.po - -commit d031376722b68fc4d7289e7c300a400b31cb626a -Author: Wolfgang Steitz -Date: Tue Feb 17 11:36:13 2015 -0800 - - Remove a portion of the Gtk.Stock symbols: Bug #719188 - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/Dialogs.vala -M src/MediaPage.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/SlideshowPage.vala -M src/camera/ImportPage.vala -M src/direct/DirectPhotoPage.vala -M src/editing_tools/EditingTools.vala -M src/editing_tools/StraightenTool.vala -M src/library/LibraryWindow.vala -M src/library/OfflinePage.vala -M src/library/TrashPage.vala -M src/searches/SavedSearchDialog.vala - -commit 2d90358d3ab7509189b58eef4c76b897f46d2b06 -Author: Stas Solovey -Date: Mon Feb 16 12:03:45 2015 +0000 - - Updated Russian translation - -M po/ru.po - -commit e0e9539e24dba53a20365cecdd4fabe29f2749b5 -Author: Alexandre Franke -Date: Sat Feb 14 21:25:36 2015 +0000 - - Updated French translation - -M po/fr.po - -commit a5d5ea20caf8032b52c73e284849c9bb512c4708 -Author: Wolfgang Steitz -Date: Fri Feb 13 16:53:33 2015 -0800 - - Use icon names, not GLib.ThemedIcons, in sidebar: Bug #719284 - - Geary went this way a while back, this moves the technique into - Shotwell. - -M src/camera/Branch.vala -M src/camera/CameraTable.vala -M src/camera/ImportPage.vala -M src/events/Branch.vala -M src/folders/Branch.vala -M src/folders/Folders.vala -M src/library/Branch.vala -M src/library/FlaggedBranch.vala -M src/library/ImportQueueBranch.vala -M src/library/LastImportBranch.vala -M src/library/OfflineBranch.vala -M src/library/TrashBranch.vala -M src/searches/Branch.vala -M src/sidebar/Entry.vala -M src/sidebar/Tree.vala -M src/sidebar/common.vala -M src/tags/Branch.vala - -commit e2198219afc43cb806dbf21b11b5da76c12c7101 -Author: Jim Nelson -Date: Wed Feb 11 15:48:33 2015 -0800 - - Revert "Use Gtk.Stack instead of Gtk.Notebook in LibraryWindow: - Bug #744289" - - This reverts commit be4dc326d7238f72b0db978ec6e594f628f7cecb. - - Problems while editing photos were detected after original commit. - Patch needs more work before accepting. - -M src/library/LibraryWindow.vala - -commit eedaf5b326319ca6755122e3bbe8b135e0dbfe6d -Author: Stas Solovey -Date: Wed Feb 11 22:10:39 2015 +0000 - - Updated Russian translation - -M po/ru.po - -commit 6e3f877e7e42421440150be00c7cdf8abe36237e -Author: Wolfgang Steitz -Date: Tue Feb 10 14:35:27 2015 -0800 - - Use Gtk.Revealer with search bar: Bug #744291 - -M src/SearchFilter.vala -M src/library/LibraryWindow.vala - -commit be4dc326d7238f72b0db978ec6e594f628f7cecb -Author: Wolfgang Steitz -Date: Tue Feb 10 14:31:48 2015 -0800 - - Use Gtk.Stack instead of Gtk.Notebook in LibraryWindow: Bug #744289 - -M src/library/LibraryWindow.vala - -commit f1c52dc49c587b648016de6971ce2631941074b3 -Author: Dušan Kazik -Date: Tue Feb 10 11:47:17 2015 +0000 - - Updated Slovak translation - -M po/sk.po - -commit 8995d2ecbfb49267748e0df25d8f855ffd03ef75 -Author: Stas Solovey -Date: Mon Feb 9 22:38:23 2015 +0000 - - Updated Russian translation - -M po/ru.po - -commit 44c4e5494be314e555d77c6d17cbc618b94e70c3 -Author: Marek Černocký -Date: Sun Feb 8 23:13:50 2015 +0100 - - Updated Czech translation - -M po/cs.po - -commit ae433abbecca1a553ed071122200cb2cd667b703 -Author: Piotr Drąg -Date: Sun Feb 8 14:23:43 2015 +0100 - - Updated Polish translation - -M po/pl.po - -commit 7437c953f761e0c93b98ba0d8191aa3bb7c84255 -Author: Jim Nelson -Date: Fri Feb 6 13:43:33 2015 -0800 - - Update copyright to 2015 - -M INSTALL -M NEWS -M README -M chkver -M configure -M debian/copyright -M help/C/Makefile -M misc/shotwell.appdata.xml -M mkunit -M mkvala -M plugins/common/RESTSupport.vala -M plugins/common/Resources.vala -M plugins/common/SqliteSupport.vala -M plugins/common/VersionNumber.vala -M plugins/shotwell-data-imports/FSpotDatabase.vala -M plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala -M plugins/shotwell-data-imports/FSpotDatabaseTable.vala -M plugins/shotwell-data-imports/FSpotImporter.vala -M plugins/shotwell-data-imports/FSpotMetaTable.vala -M plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala -M plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala -M plugins/shotwell-data-imports/FSpotPhotosTable.vala -M plugins/shotwell-data-imports/FSpotRollsTable.vala -M plugins/shotwell-data-imports/FSpotTableBehavior.vala -M plugins/shotwell-data-imports/FSpotTagsTable.vala -M plugins/shotwell-data-imports/shotwell-data-imports.vala -M plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/PiwigoPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -M plugins/shotwell-publishing/shotwell-publishing.vala -M plugins/shotwell-transitions/BlindsEffect.vala -M plugins/shotwell-transitions/ChessEffect.vala -M plugins/shotwell-transitions/CircleEffect.vala -M plugins/shotwell-transitions/CirclesEffect.vala -M plugins/shotwell-transitions/ClockEffect.vala -M plugins/shotwell-transitions/CrumbleEffect.vala -M plugins/shotwell-transitions/FadeEffect.vala -M plugins/shotwell-transitions/SlideEffect.vala -M plugins/shotwell-transitions/SquaresEffect.vala -M plugins/shotwell-transitions/StripesEffect.vala -M plugins/shotwell-transitions/shotwell-transitions.vala -M samples/simple-plugin/README -M samples/simple-plugin/simple-plugin.vala -M settings-migrator/shotwell-settings-migrator -M src/AppDirs.vala -M src/AppWindow.vala -M src/Application.vala -M src/BatchImport.vala -M src/Box.vala -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/ColorTransformation.vala -M src/CommandManager.vala -M src/Commands.vala -M src/CustomComponents.vala -M src/Debug.vala -M src/DesktopIntegration.vala -M src/Dialogs.vala -M src/Dimensions.vala -M src/DirectoryMonitor.vala -M src/Event.vala -M src/Exporter.vala -M src/International.vala -M src/LibraryFiles.vala -M src/LibraryMonitor.vala -M src/MediaDataRepresentation.vala -M src/MediaInterfaces.vala -M src/MediaMetadata.vala -M src/MediaMonitor.vala -M src/MediaPage.vala -M src/MediaViewTracker.vala -M src/MetadataWriter.vala -M src/Orientation.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoMonitor.vala -M src/PhotoPage.vala -M src/PixbufCache.vala -M src/Printing.vala -M src/Properties.vala -M src/Resources.vala -M src/Screensaver.vala -M src/SearchFilter.vala -M src/SlideshowPage.vala -M src/SortedList.vala -M src/Tag.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala -M src/TimedQueue.vala -M src/Tombstone.vala -M src/UnityProgressBar.vala -M src/Upgrades.vala -M src/VideoMetadata.vala -M src/VideoMonitor.vala -M src/VideoSupport.vala -M src/camera/Branch.vala -M src/camera/Camera.vala -M src/camera/CameraTable.vala -M src/camera/GPhoto.vala -M src/camera/ImportPage.vala -M src/config/Config.vala -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala -M src/core/Alteration.vala -M src/core/ContainerSourceCollection.vala -M src/core/Core.vala -M src/core/DataCollection.vala -M src/core/DataObject.vala -M src/core/DataSet.vala -M src/core/DataSource.vala -M src/core/DataSourceTypes.vala -M src/core/DataView.vala -M src/core/DataViewTypes.vala -M src/core/DatabaseSourceCollection.vala -M src/core/SourceCollection.vala -M src/core/SourceHoldingTank.vala -M src/core/SourceInterfaces.vala -M src/core/Tracker.vala -M src/core/ViewCollection.vala -M src/core/util.vala -M src/data_imports/DataImportJob.vala -M src/data_imports/DataImportSource.vala -M src/data_imports/DataImports.vala -M src/data_imports/DataImportsPluginHost.vala -M src/data_imports/DataImportsUI.vala -M src/db/DatabaseTable.vala -M src/db/Db.vala -M src/db/EventTable.vala -M src/db/PhotoTable.vala -M src/db/SavedSearchDBTable.vala -M src/db/TagTable.vala -M src/db/TombstoneTable.vala -M src/db/VersionTable.vala -M src/db/VideoTable.vala -M src/direct/Direct.vala -M src/direct/DirectPhoto.vala -M src/direct/DirectPhotoPage.vala -M src/direct/DirectView.vala -M src/direct/DirectWindow.vala -M src/editing_tools/EditingTools.vala -M src/editing_tools/StraightenTool.vala -M src/events/Branch.vala -M src/events/EventDirectoryItem.vala -M src/events/EventPage.vala -M src/events/Events.vala -M src/events/EventsDirectoryPage.vala -M src/folders/Branch.vala -M src/folders/Folders.vala -M src/folders/Page.vala -M src/library/Branch.vala -M src/library/FlaggedBranch.vala -M src/library/FlaggedPage.vala -M src/library/ImportQueueBranch.vala -M src/library/ImportQueuePage.vala -M src/library/LastImportBranch.vala -M src/library/LastImportPage.vala -M src/library/Library.vala -M src/library/LibraryWindow.vala -M src/library/OfflineBranch.vala -M src/library/OfflinePage.vala -M src/library/TrashBranch.vala -M src/library/TrashPage.vala -M src/main.vala -M src/photos/BmpSupport.vala -M src/photos/GRaw.vala -M src/photos/GdkSupport.vala -M src/photos/JfifSupport.vala -M src/photos/PhotoFileAdapter.vala -M src/photos/PhotoFileFormat.vala -M src/photos/PhotoFileSniffer.vala -M src/photos/PhotoMetadata.vala -M src/photos/Photos.vala -M src/photos/PngSupport.vala -M src/photos/RawSupport.vala -M src/photos/TiffSupport.vala -M src/plugins/DataImportsInterfaces.vala -M src/plugins/ManifestWidget.vala -M src/plugins/Plugins.vala -M src/plugins/PublishingInterfaces.vala -M src/plugins/SpitInterfaces.vala -M src/plugins/StandardHostInterface.vala -M src/plugins/TransitionsInterfaces.vala -M src/publishing/APIGlue.vala -M src/publishing/Publishing.vala -M src/publishing/PublishingPluginHost.vala -M src/publishing/PublishingUI.vala -M src/searches/Branch.vala -M src/searches/SavedSearchDialog.vala -M src/searches/SavedSearchPage.vala -M src/searches/SearchBoolean.vala -M src/searches/Searches.vala -M src/sidebar/Branch.vala -M src/sidebar/Entry.vala -M src/sidebar/Sidebar.vala -M src/sidebar/Tree.vala -M src/sidebar/common.vala -M src/slideshow/Slideshow.vala -M src/slideshow/TransitionEffects.vala -M src/tags/Branch.vala -M src/tags/HierarchicalTagIndex.vala -M src/tags/HierarchicalTagUtilities.vala -M src/tags/TagPage.vala -M src/tags/Tags.vala -M src/threads/BackgroundJob.vala -M src/threads/Semaphore.vala -M src/threads/Threads.vala -M src/threads/Workers.vala -M src/unit/Unit.vala -M src/unit/rc/template.vala -M src/util/KeyValueMap.vala -M src/util/Util.vala -M src/util/file.vala -M src/util/image.vala -M src/util/misc.vala -M src/util/string.vala -M src/util/system.vala -M src/util/ui.vala -M thumbnailer/shotwell-video-thumbnailer.vala -M vapi/ExtendedPosix.vapi -M vapi/LConv.vapi -M vapi/gphoto-2.4/libgphoto2.vapi -M vapi/gphoto-2.5/libgphoto2.vapi -M vapi/gphoto.h -M vapi/libexif.vapi -M vapi/libraw.vapi - -commit eae085285686503c5318d4bae5033c411eef5dd2 -Author: Eduardo Arnold -Date: Thu Feb 5 14:15:27 2015 -0800 - - Better metadata support for Facebook sharing: Bug #742163 - -M THANKS -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit d7595e638b798217cbc55e72652f1fd2927095fe -Author: Marek Černocký -Date: Wed Feb 4 10:46:13 2015 +0100 - - Updated Czech translation - -M po/cs.po - -commit 4c745502b34879b7cd7f61f4bd332734e111c240 -Author: Brian Masney -Date: Tue Feb 3 18:40:39 2015 -0800 - - Fix saved search for photos with unset title: Bug #743923 - -M src/searches/SearchBoolean.vala - -commit fe9d604aa52dfd44855c4b358d8a850d6405dacf -Author: Tim Waugh -Date: Sat Dec 27 19:19:43 2014 +0000 - - F-Spot import: Set exposure time of imported media. - -M plugins/shotwell-data-imports/FSpotImporter.vala - -commit 76240755541fa545ee89c8ce52e22746f0c4aa9d -Author: Tim Waugh -Date: Sat Dec 27 19:19:24 2014 +0000 - - Use importable exposure time if available when importing media. - -M src/data_imports/DataImportJob.vala -M src/data_imports/DataImportSource.vala -M src/plugins/DataImportsInterfaces.vala - -commit 585b3018eabc0b6cefce505142bd2bb14f4ae41b -Author: Tim Waugh -Date: Sat Dec 27 19:18:57 2014 +0000 - - Use importable title when importing media. - -M src/data_imports/DataImportSource.vala - -commit 3191d7d6ca9073406f3e67f70bdcaf312bf4ab6c -Author: Brian Masney -Date: Tue Feb 3 17:56:06 2015 -0800 - - New saved search option: text field is set: Bug #743924 - -M src/searches/SavedSearchDialog.vala -M src/searches/SearchBoolean.vala - -commit af5ac66db64ba0542bffc28c6b739bb2361c0da8 -Author: Jim Nelson -Date: Mon Feb 2 18:31:35 2015 -0800 - - Update to 0.21.0 - -M Makefile -M NEWS -M debian/changelog - -commit e97880b0769ebc16380ebe380bf5e5d0c195dcdb -Author: Jim Nelson -Date: Mon Feb 2 11:17:35 2015 -0800 - - Add help/de to .gitignore - -M .gitignore - -commit 2ecda59a5562565967647b6c3d44dd99a48a04ef -Author: Raphaël Halimi -Date: Mon Feb 2 11:16:28 2015 -0800 - - Correct typo in Makefile: Bug #743799 - - Typo in Makefile caused incorrectly-formatted .desktop file for the - Viewer to be generated. - -M Makefile -M THANKS - -commit 795f6f2298a84feaad7f4e2248533a8135d4fb19 -Author: Christian Kirbach -Date: Thu Jan 29 23:11:43 2015 +0100 - - Added German help translation - -M help/Makefile.am -A help/de/de.po - -commit c6d3b7f4e230f25fd66f3c64a110aa0c068643db -Author: Piotr Drąg -Date: Sun Jan 11 15:26:14 2015 +0100 - - Updated Polish translation - -M po/pl.po - -commit 448315975948a8887fd5a034b03bd8b00e9f90df -Author: Daniel Șerbănescu -Date: Thu Jan 8 17:46:06 2015 +0100 - - Updated Romanian Translation - -M po/ro.po - -commit e169105321d8893b7dbf9016c94480592d07a466 -Author: Rafael Ferreira -Date: Thu Jan 8 07:43:49 2015 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit 644fd969dc63e85774ae4c136d1282e7ea5f27a1 -Author: Jim Nelson -Date: Wed Jan 7 11:21:58 2015 -0800 - - Add Czech generated help pages to .gitignore - -M .gitignore - -commit cf38e25847b237fb2d4db072dc90fc4bf8b3cd35 -Author: Jim Nelson -Date: Wed Jan 7 11:20:45 2015 -0800 - - Compile under Vala 0.26 and earlier - - Default argument not present in Vala 0.24/0.26 bindings. - -M src/searches/SavedSearchDialog.vala - -commit 64b4fc2f488b25e4d24c20e3ca39a50fdf062e62 -Author: Marek Černocký -Date: Tue Jan 6 22:23:42 2015 +0100 - - Updated Czech translation - -M po/cs.po - -commit aa67bf207f06ae82f28f9d88cc61f2cce9859062 -Author: Trinh Anh Ngoc -Date: Tue Jan 6 12:37:51 2015 -0800 - - Refine saved search dialog (missed in prior commit): Bug #742443 - -M src/searches/SavedSearchDialog.vala -M ui/shotwell.glade - -commit 6421cba95d7541be3b1a18c821b4093e91c75f6c -Author: Jim Nelson -Date: Tue Jan 6 12:31:34 2015 -0800 - - Update debian/control to require GTK+ 3.12 or better - -M debian/control - -commit 31bb622d5f2444cfb0ac4301af17dcb4c79b9da2 -Author: Trinh Anh Ngoc -Date: Mon Jan 5 18:55:11 2015 -0800 - - UI refresh: Update dialogs to modern GTK+ look: Bug #742326 - -M src/Dialogs.vala -M src/Properties.vala -M src/data_imports/DataImportsUI.vala -M src/publishing/PublishingUI.vala -M ui/shotwell.glade - -commit b5501d3f0466749321cc094c6c1852f8cb7ffc1c -Author: Trinh Anh Ngoc -Date: Mon Jan 5 18:42:33 2015 -0800 - - UI refresh: Update main window layout and CSS: Bug #742326 - - This bumps the version requirement for GTK+ to 3.12. - -M Makefile -M THANKS -M src/AppWindow.vala -M src/Page.vala -M src/Resources.vala -M src/SearchFilter.vala -M src/library/LibraryWindow.vala - -commit cba1018084f2c90f8e10efc5e800e7a5c8635bbd -Author: Marek Černocký -Date: Sun Jan 4 22:41:06 2015 +0100 - - Add Czech help translation - -M help/Makefile.am -A help/cs/cs.po - -commit d915f3f60954a59da191fce4b05a482e2458b240 -Author: Rafael Ferreira -Date: Sat Jan 3 20:18:03 2015 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit c3c3c0b97e3b806e123b25c1fb694c828b2c8ab2 -Author: Jim Nelson -Date: Tue Dec 30 14:20:10 2014 -0800 - - Don't call non-threadsafe code from thread in thumbnailer: Bug #742102 - -M src/ThumbnailCache.vala - -commit b1fb4bd09c2a262d1b59197eace723ac868fb42c -Author: Timo Jyrinki -Date: Tue Dec 30 18:05:04 2014 +0200 - - Add Tim Waugh to THANKS file, the previous commit closes Bug #718989 - -M THANKS - -commit 4d088d7bfd5dcf82d8f301667b3856764e7489ad -Author: Tim Waugh -Date: Tue Dec 30 00:55:53 2014 +0000 - - thumbnailer: use gdkpixbufsink. - -M thumbnailer/shotwell-video-thumbnailer.vala - -commit d431810d1730e540e227942df8ff2f9941429610 -Author: Jim Nelson -Date: Mon Dec 29 18:39:17 2014 -0800 - - Avoid soft assertion due to returned NULL when reading video timestamp - -M src/VideoSupport.vala - -commit 69cf4e2886fdab702a608ae08da19f5481df2f55 -Author: Josef Andersson -Date: Sun Dec 28 11:16:01 2014 +0000 - - Updated Swedish translation - -M po/sv.po - -commit 6a35d61c74aeb08cfd025af078224408b11504c8 -Author: Jim Nelson -Date: Mon Dec 22 13:21:13 2014 -0800 - - Prevent video thumbnailer from hanging on malformed vids: Bug #741821 - - Bogus 100-byte file was causing video thumbnailer to hang during pre- - roll. Failure to retrieve duration of video is a good clue that the - video itself is not valid for thumbnailing. - -M thumbnailer/shotwell-video-thumbnailer.vala - -commit 9fe6f3fe97b3b55f83c836c8af3acf5a435d3fa1 -Author: Yuri Myasoedov -Date: Sun Dec 21 11:35:26 2014 +0300 - - Some fixes in Russian translation - -M po/ru.po - -commit 7f8a07f25af841eadece94a53bfb55eed26be556 -Author: Misha Shnurapet -Date: Sat Dec 20 11:04:02 2014 +0300 - - Fixed Russian translation - -M po/ru.po - -commit 22902f6c831a7bc2f4a228f04c394421137c4061 -Author: Jim Nelson -Date: Fri Dec 19 16:22:11 2014 -0800 - - Better guards against crashing in video thumbnailer: Bug #739396 - - For user's video, GStreamer is returning a ridiculously small buffer - (66 bytes) for a frame it reports to be 1920x1080. Since Totem's - thumbnailer works, presumably there's something wrong with ours, but - these changes at least prevent the thumbnailer from crashing deep - inside GDK pixbuf. - -M thumbnailer/shotwell-video-thumbnailer.vala - -commit d6c25c58225b0f3ac803878d7ff3224151f49ee1 -Author: Jim Nelson -Date: Wed Dec 3 12:32:41 2014 -0800 - - Destroy toolbar when leaving fullscreen via double-click: Bug #739498 - - Double-clicking to exit fullscreen-mode has a slightly different code - path than the accelerators, and some legacy code was taking a route - that didn't destroy the FS toolbar at exit. - -M src/PhotoPage.vala -M src/direct/DirectPhotoPage.vala - -commit 68f3f8f3730a4af55bc025dc8f5e192af2de84aa -Author: Tobia Tesan -Date: Mon Nov 24 14:16:35 2014 -0800 - - Natural sorting of photo titles: Bug #717960 - -M Makefile -M src/MediaPage.vala -A src/NaturalCollate.vala -M src/Thumbnail.vala -A test/.gitignore -A test/Makefile -A test/NaturalCollate-Test.vala - -commit ed856388722f80af055409a200592c0df0685791 -Author: Marek Černocký -Date: Sat Nov 15 21:31:19 2014 +0100 - - Updated Czech translation - -M po/cs.po - -commit 6817a778ce9239798775d6460d246571fd93ceef -Author: Jim Nelson -Date: Thu Nov 13 19:37:34 2014 -0800 - - Packaging change to put shotwell-common fix on reg. PPA: Bug #724080 - -M debian/changelog - -commit efc9fbfe1868d6a7cb86f7e8fdf04b7033d17b36 -Author: Jim Nelson -Date: Thu Nov 13 18:37:48 2014 -0800 - - Conflicts/Replaces shotwell-common: Bug #724080 - - Stop-gap to work around packaging conflict issue between Ubuntu's - repos and our PPAs. - -M debian/control - -commit 8b7965cf3b1285fd8da43fdf419e608238cbc27a -Author: Jim Nelson -Date: Fri Oct 31 14:55:11 2014 -0700 - - Update to 0.20.2 - -M Makefile -M NEWS -M debian/changelog - -commit 4ff68f783548e0cb18709698ffe5eb14bbbafc9e -Author: Мирослав Николић -Date: Mon Oct 27 20:54:46 2014 +0100 - - Added Serbian translation - -M po/sr.po -M po/sr@latin.po - -commit 2ae25e17ca131e848ae708a1c01ff68e7167ee5a -Author: Jim Nelson -Date: Fri Oct 24 13:43:36 2014 -0700 - - Check for failure to render video thumbnail: Bug #738245 - - As part of a user reporting problems, their trace indicated that - the GStreamer buffer holding the video thumbnail can sometimes come - back null. shotwell-video-thumbnailer wasn't checking for this - possibility. - -M thumbnailer/shotwell-video-thumbnailer.vala - -commit 0959af2fc5f24de0244753592ef407de3691c56f -Author: Jim Nelson -Date: Thu Oct 23 14:26:36 2014 -0700 - - Include Set Desktop Slideshow dialog in tarball, install: Bug #739095 - -M Makefile - -commit 43a00ec81e269d9a9d467cc6a6fd1ac7fb061f90 -Author: Baurzhan Muftakhidinov -Date: Wed Oct 22 02:57:55 2014 +0000 - - Updated Kazakh translation - -M po/kk.po - -commit 567d30aa448e382014578c79c8824955d0c116a3 -Author: Baurzhan Muftakhidinov -Date: Wed Oct 22 02:51:58 2014 +0000 - - Updated Kazakh translation - -M po/kk.po - -commit 85a9d57e32f996a5ac398dc977ed70df392fd3d2 -Author: Andika Triwidada -Date: Sun Oct 19 09:47:33 2014 +0000 - - Updated Indonesian translation - -M po/id.po - -commit be0d5700417f88b59a52f35030a4f2237636a0e2 -Author: Marek Černocký -Date: Sat Oct 18 16:32:47 2014 +0200 - - Updated Czech translation - -M po/cs.po - -commit 1d9b47181c5fa883723711b61787db696f8367ab -Author: Gábor Kelemen -Date: Wed Oct 8 21:09:39 2014 +0000 - - Updated Hungarian translation - -M po/hu.po - -commit 57038e27c582319f1288c18e632fc81ac3813229 -Author: Wolfgang Stöggl -Date: Mon Oct 6 21:22:27 2014 +0000 - - Updated German translation - -M po/de.po - -commit e25b3187d1def82c627cacd20a6bd7e29f8e9cf3 -Author: Andika Triwidada -Date: Sat Oct 4 13:03:40 2014 +0000 - - Updated Indonesian translation - -M po/id.po - -commit 7b5e811496d8bb00e0001a373a368bc05ae8384a -Author: Jim Nelson -Date: Thu Oct 2 14:55:41 2014 -0700 - - Update to Shotwell 0.20.1 - -M Makefile -M NEWS -M debian/changelog - -commit 706e57044a3da298b1ec335605d8e045fc5096db -Author: Christian Kirbach -Date: Wed Oct 1 19:26:03 2014 +0000 - - Updated German translation - -M po/de.po - -commit 29a1f2a95addbe4f1c2844cdecc71942f075e297 -Author: Piotr Drąg -Date: Sun Sep 28 20:22:31 2014 +0200 - - Updated Polish translation - -M po/pl.po - -commit 821c4b5ab328b70b56ac3b8a90d8ab6c9f8e7a4b -Author: Jim Nelson -Date: Fri Sep 26 16:07:25 2014 -0700 - - Further improvements to source pixbuf cache LRU - -M src/Photo.vala - -commit 9eee3f581cf63330406ef1f109cd15e869a81154 -Author: Jim Nelson -Date: Fri Sep 26 14:32:08 2014 -0700 - - Update displayed image after straighten: Bug #719120 - - When a straighten occurs, the displayed image was not updated. - -M src/Commands.vala -M src/PixbufCache.vala - -commit 1c66a9795e8643f74f43749460cdc84c81370f8d -Author: Jim Nelson -Date: Fri Sep 26 14:30:29 2014 -0700 - - Reduce debug output of source pixbuf cache - - Previous commit introduced more debug logging than is really - necessary. - -M src/Photo.vala - -commit aad834d256cea006a06db494d16522dbed9ca37c -Author: Jim Nelson -Date: Fri Sep 26 13:32:29 2014 -0700 - - More conservative source pixbuf caching: Bug #715198 - - Prior source pixbuf (untransformed, full-sized decoded images) cache - was per-photo, holding onto the source pixbuf for 180s. For casual - browsing it wasn't onerous, but if the photos were loaded quickly - in succession (either with the photo viewer or, worse, via the - programmatic thumbnail regenerator) memory usage would climb into the - gigabytes. - - This uses a more conservative source pixbuf cache, holding only a few - at a time and releasing them much more quickly. The PixbufCache - class does a better job of long-term pixbuf caching by holding onto - scaled images rather than full-sized. - -M src/Photo.vala -M src/direct/DirectPhoto.vala - -commit 8a18a1db584ecb0312583b6a219d5ba31187d963 -Author: Jim Nelson -Date: Fri Sep 26 12:11:39 2014 -0700 - - Fix dtor names, empty if blocks - - Detected by latest build of Vala. Correcting empty if blocks seems - to correct harmless bugs. - -M plugins/common/RESTSupport.vala -M src/Commands.vala -M src/SearchFilter.vala -M src/Tag.vala -M src/searches/SavedSearchDialog.vala -M src/tags/HierarchicalTagUtilities.vala - -commit a339a68ed240689736861d554d37d52ba5920d7f -Author: Jim Nelson -Date: Thu Sep 25 17:39:04 2014 -0700 - - Improved logging in MetadataWriter - -M src/MetadataWriter.vala - -commit b46fdc6e7904589f6a547178f6473b2b8fe31b80 -Author: Jim Nelson -Date: Thu Sep 25 14:55:33 2014 -0700 - - Disambiguate common strings: Bug #736632 - -M src/Dialogs.vala -M src/Resources.vala - -commit 229affac398704ee5376fa54203a193c79fd36dd -Author: Jim Nelson -Date: Thu Sep 25 14:48:31 2014 -0700 - - Split string in Gallery connector: Bug #736634 - -M plugins/shotwell-publishing-extras/GalleryConnector.vala - -commit 590db90e4f8922de1db607ec9bc7086a1bd1f9ab -Author: Jim Nelson -Date: Thu Sep 25 14:44:50 2014 -0700 - - Plural form for Flickr string: Bug #736633 - -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit 6dc0d5a83b011ac118fda736ecd04a87347e154a -Author: Jim Nelson -Date: Wed Sep 24 19:29:42 2014 -0700 - - Fix fullscreen navigation: Bug #737092 - - This restores fullscreen navigation without introducing regression - of bug #719183, which is where bug was introduced. - -M src/AppWindow.vala - -commit 0176ef02c0832272911129a0d970d304f5d155a1 -Author: Jim Nelson -Date: Fri Sep 19 12:28:16 2014 -0700 - - Update to 0.20.0 - -M Makefile -M NEWS -M debian/changelog - -commit eb05bc39133ee8ebd3ce303ba2efda226dc10e44 -Author: Jim Nelson -Date: Tue Sep 16 14:08:01 2014 -0700 - - Don't update GTK+/GDK in background thread (viewer mode): Bug #736771 - - Signal being fired by DirectPhoto was bubbling up to a change in a - GTK+ property, a problem when this occurs in a background thread. - This change ensures the signal is fired in the main event loop. - -M src/direct/DirectPhotoPage.vala - -commit 34b69213c6e14f54a5a5960cdbe79812120ddfde -Author: Ville-Pekka Vainio -Date: Sun Sep 14 19:58:49 2014 +0300 - - Finnish translation update by Jiri Grönroos - -M po/fi.po - -commit 35549818c393aa1120bf5412d94c486824dfc65d -Author: Dušan Kazik -Date: Sat Sep 13 21:40:38 2014 +0000 - - Updated Slovak translation - -M po/sk.po - -commit cfcb002cdf431a0564e1d071e0f0fcd7bc346876 -Author: Jim Nelson -Date: Tue Sep 9 13:40:58 2014 -0700 - - Better error handling with Photo.get_prefetched_copy() - - Throw an Error rather than return null, which wasn't being handled - correctly in all cases. - -M src/Photo.vala -M src/PhotoPage.vala - -commit 0970d09ae749d850d76828dd74d9b82e298d0027 -Author: Ask H. Larsen -Date: Sat Sep 6 10:14:09 2014 +0200 - - Updated Danish translation - -M po/da.po - -commit 926527bffb003dbc815224e7c205f53a425a122d -Author: Andika Triwidada -Date: Fri Sep 5 12:50:36 2014 +0000 - - Updated Indonesian translation - -M po/id.po - -commit 677de16be1b2b76e13593ecce9f06c3aac8d90a6 -Author: Jim Nelson -Date: Thu Aug 21 14:22:40 2014 -0700 - - Update to 0.19.0 - -M Makefile -M NEWS -M debian/changelog - -commit 5828825fa45784c3a24e0f623c65864a33506bb8 -Author: Jim Nelson -Date: Thu Aug 21 13:53:02 2014 -0700 - - Fix set_default_icon_list() ownership transfer bug - - Ownership of the GList is transferred in this call, so a copy should - be passed instead. This will be fixed in a future version of Vala. - - Upcoming versions of Vala will also not allow private members in - structs, so that is removed here as well. - - https://mail.gnome.org/archives/vala-list/2014-August/msg00022.html - -M src/AppWindow.vala -M src/Dimensions.vala -M vapi/libraw.vapi - -commit 1491418f8cddb2cecc7001a1e9f7109ee8281a8d -Author: Jim Nelson -Date: Tue Aug 19 14:34:00 2014 -0700 - - Don't crash on imported photo: Bug #734986 - - The user's photo was identified as JFIF but is an incomplete file. - The JFIF sniffer reported it could not identify the file, which is - somewhat incorrect. The RAW sniffer then tried to identify the file - and crashed inside of libraw. - - Now when a sniffer can appropriately detect the file is corrupt it - will be reported as such. All GdkSniffers will do this if they (a) - read the entire file and (b) no image was prepared. Because they all - use pre-condition checking to sanity check that the file is their - format (via magic header bytes), this works. - -M src/Photo.vala -M src/photos/BmpSupport.vala -M src/photos/GdkSupport.vala -M src/photos/JfifSupport.vala -M src/photos/PhotoFileFormat.vala -M src/photos/PhotoFileSniffer.vala -M src/photos/PngSupport.vala -M src/photos/RawSupport.vala -M src/photos/TiffSupport.vala - -commit d6e0616cb163980139ca66de1ba143351abcfdbc -Author: Hajime Taira -Date: Fri Aug 15 04:27:02 2014 +0900 - - l10n: Update Japanese translation - -M po/ja.po - -commit e6a5823d52a9a07f9e2165929ce2e870eda980d4 -Author: Jim Nelson -Date: Fri Aug 8 13:26:09 2014 -0700 - - Update links in .doap, README - -M README -M shotwell.doap - -commit 4ca3cbcfa1a89b194b2fa3058a6909f0e5ab0434 -Author: Jim Nelson -Date: Fri Aug 8 13:17:24 2014 -0700 - - Remove Charles from .doap, change category to apps - - Also added full description. - -M shotwell.doap - -commit 60d94f3456350df413a440fcdd8f398f5f9ef939 -Author: Shushi Kurose -Date: Sun Aug 3 16:35:11 2014 +0900 - - l10n: Update Japanese translation - -M po/ja.po - -commit 3c8ac3788b488d43e37dfea3b959834ceeae232f -Author: Mike Gorse -Date: Thu Jul 24 14:01:45 2014 -0700 - - Don't crash after deleting photo in full-window mode: Bug #732964 - -M THANKS -M src/PhotoPage.vala - -commit 4b9c39852fcfe3d62b0337db59c701d075384d09 -Author: Dominique Leuenberger -Date: Thu Jul 24 13:36:16 2014 -0700 - - Build with Vala 0.25.1: Bug #733650 - -M Makefile -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit 05503fedb39444b2d6e98d4e941a34e4ccf411f4 -Author: Inaki Larranaga Murgoitio -Date: Wed Jul 23 10:20:27 2014 +0200 - - Updated Basque language - -M po/eu.po - -commit 1cd085accc2c456739873591368f35868b1937eb -Author: GunChleoc -Date: Fri Jul 11 09:59:23 2014 +0000 - - Updated Scottish Gaelic translation - -M po/gd.po - -commit c71ce0d90d8ea61adf500484fa3f73b4fc78a630 -Author: Jim Nelson -Date: Tue Jul 1 14:30:40 2014 -0700 - - Update to 0.18.1 - -M Makefile -M NEWS -M debian/changelog - -commit d4420d65d843a4e6cf63ecfc00724735fc70f309 -Author: Daniel Landau -Date: Mon Jun 30 14:23:49 2014 -0700 - - Don't crash when cursor goes away due to removed photo: Bug #732334 - - When a photo is removed from a collection (moved to another collection - or removed outright), the view's cursor may go away with it. Add some - code to check for cursor's presence before using it. - -M src/CheckerboardLayout.vala -M src/Page.vala - -commit 97844ae7c8d66cb17126dce5b0086948a73a5eae -Author: Jim Nelson -Date: Mon Jun 30 14:08:08 2014 -0700 - - Fix debian/control file for Daily Build PPA - - Utopic doesn't carry valac-0.22, so marking valac virtual package - as dependency for the required version in the Makefile. - -M debian/control - -commit 171a475a6f8e71ec6379c8b25b844f409a3d061c -Author: Jim Nelson -Date: Mon Jun 30 13:54:17 2014 -0700 - - .gitignore generated pages for Hungarian documentation - -M .gitignore - -commit ead3a6f75c001059980cc4a2c287feb0622f3c89 -Author: Joseph Bylund -Date: Mon Jun 30 13:53:20 2014 -0700 - - Fix Flickr publishing (now HTTPs only): Bug #732432 - -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit 7eacda49982dd04952c7355c65eb9149a1df0f64 -Author: Daniel Mustieles -Date: Mon Jun 30 13:52:54 2014 +0200 - - Updated Spanish translation - -M po/es.po - -commit 26da62985087d4533f67d090ca411835393be20e -Author: Gabor Kelemen -Date: Fri Jun 27 01:39:20 2014 +0200 - - Added hu to DOC_LINGUAS to make d-l happy - -M help/Makefile.am - -commit 2d2c1f931ddda8bf00b220da1cad6d1258fc85bd -Author: Gabor Kelemen -Date: Fri Jun 27 01:38:38 2014 +0200 - - Initial Hungarian help translation added - -A help/hu/hu.po - -commit a699d97b80dfb1af11cd89957d65bdad4f1ff594 -Author: Jim Nelson -Date: Mon Jun 23 11:46:46 2014 -0700 - - Don't call gdk_cairo_create() outside of begin/end_paint: Bug #732118 - - Interactive pan/zoom would paint directly to GDK window's Cairo - context outside of a draw() signal. A recent change to GTK+ in 3.13.3 - removes this functionality and requires wrapping this code between - gdk_window_begin_paint_region() and gdk_window_end_paint(). It's far - easier to simply queue a redraw and let the usual draw handler deal - with it. - - See: - https://mail.gnome.org/archives/gtk-devel-list/2014-June/msg00010.html - -M src/Page.vala - -commit 6c8f2f76df1291df1bfadeb3f96b98edc07eb954 -Author: Cheng-Chia Tseng -Date: Sun Jun 22 09:04:41 2014 +0000 - - Updated Chinese (Taiwan) translation - -M po/zh_TW.po - -commit d6d00a7d099508ef2071cf4526a754d11f1829fc -Author: Rafael Ferreira -Date: Mon Jun 16 11:22:25 2014 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit e09c432f7a53b51ca7fe84c49c2552486e14a4bb -Author: Daniel Landau -Date: Tue Jun 10 13:12:59 2014 -0700 - - Nested tag can cause crash when changing selection: Bug #730336 - -M src/sidebar/Tree.vala - -commit 9f93c37e98f37443b6e37ee73a8925d93afbe8e0 -Author: Daniel Landau -Date: Tue Jun 10 13:03:02 2014 -0700 - - Create disjoint selection using keyboard: Bug #716663 - -M src/CheckerboardLayout.vala -M src/Page.vala - -commit 6f88af121020ce47dd0dade4a53b033f0857219c -Author: Marek Černocký -Date: Sat May 31 12:36:45 2014 +0200 - - Updated Czech translation - -M po/cs.po - -commit a8a5a57bf09c05daa5271842acaa2e7ae399750d -Author: Piotr Drąg -Date: Thu May 29 18:23:55 2014 +0200 - - Updated Polish translation - -M po/pl.po - -commit 1e490349f55dec564688427829329e33aadd7bda -Author: Wolfgang Steitz -Date: Tue May 27 13:36:36 2014 -0700 - - Stop keypress double propagation in fullscreen mode: Bug #719183 - -M src/AppWindow.vala - -commit d094802109467d22c75bde686f2b79aa104e73f4 -Author: Piotr Drąg -Date: Tue May 27 22:09:56 2014 +0200 - - Updated POTFILES.in - -M po/POTFILES.in - -commit 4df1d2c3bbf27f8ef271c37c812ee96b77e7a19d -Author: Jim Nelson -Date: Tue May 27 12:50:15 2014 -0700 - - Fix URLs pointing to yorba.org and Redmine: Closes bug #730575 - -M plugins/common/Resources.vala -M src/AppWindow.vala -M src/Resources.vala -M src/main.vala -M src/plugins/SpitInterfaces.vala - -commit 2fca14c93a941eea778babcc71b4b03f7a4dd690 -Author: Daniel Landau -Date: Wed May 14 15:08:53 2014 +0300 - - Allow setting background on lock screen: Bug #724755 - - Add checkboxes to the slideshow dialog to select whether to set the - desktop background, the lock screen, or both. Add the same - checkboxes to - a new dialog for setting a background photo. - -M src/CollectionPage.vala -M src/DesktopIntegration.vala -M src/Dialogs.vala -M src/PhotoPage.vala -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala -M ui/set_background_dialog.glade -C072 ui/set_background_dialog.glade -ui/set_background_slideshow_dialog.glade - -commit 8a55f07150a89fe1624e138b177a51973b740bee -Author: Rafael Ferreira -Date: Mon May 26 00:22:22 2014 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit 89921e395ee7a7f07db3ac85386c51fcd6c0acc6 -Author: Jim Nelson -Date: Fri May 23 15:22:50 2014 -0700 - - Update AppData to validate - -M misc/shotwell.appdata.xml - -commit 3b6886da6a601e3dace0fe3efd7269e438a2ba14 -Author: GunChleoc -Date: Mon May 19 09:15:22 2014 +0000 - - Updated Scottish Gaelic translation - -M po/gd.po - -commit ba9ed37d02d6a62fb5dbe47cb453171f9c23e4b5 -Author: Marek Černocký -Date: Wed May 14 13:34:35 2014 +0200 - - Updated Czech translation - -M po/cs.po - -commit aa32700e0632d7f9cca53fa9fafc5375754b9683 -Author: Jim Nelson -Date: Tue May 13 10:56:49 2014 -0700 - - Shotwell crashes when adjusting date/time: Closes bug #719098 - - Assertion was unnecessary and faulty. - -M src/Event.vala - -commit 97d965a30abaceba52e48e74a11d6c532169343a -Author: Rafael Ferreira -Date: Sun May 11 00:03:32 2014 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit db74ab9eb328eaefa5710ea8643d5c3017ac758c -Author: Piotr Drąg -Date: Thu May 8 00:25:32 2014 +0200 - - Updated Polish translation - -M po/pl.po - -commit 3007b2ec2a450034e5bc97d7d03df02ab10778fe -Author: Jim Nelson -Date: Tue May 6 13:58:53 2014 -0700 - - Add comment to prevent plugin install problems later - -M plugins/shotwell-publishing-extras/Makefile - -commit e1952f079ad4b11cc5826d4287ca1a4ac601d245 -Author: Petr Heynch -Date: Tue May 6 13:57:36 2014 -0700 - - Add Rajce.net icon: bug #729666 - -M plugins/plugins.mk -M plugins/shotwell-publishing-extras/Makefile -A plugins/shotwell-publishing-extras/rajce.png - -commit 9d8bfc1e8b5fb499b4b2e618360737db9195aea4 -Author: Daniel Korostil -Date: Tue May 6 23:17:27 2014 +0300 - - Updated Ukrainian translation - -M po/uk.po - -commit 4d6d6522ccafa3665745dca3ca3173ffa319fb4c -Author: Daniel Korostil -Date: Tue May 6 23:11:25 2014 +0300 - - Updated Ukrainian translation - -M po/uk.po - -commit 6d93554176ee59f4f5f473eacd5adbd8f1eb8c7c -Author: Daniel Landau -Date: Tue May 6 11:50:21 2014 -0700 - - Update cursor state after full-window mode: bug #729562, bug #719169 - - If the user double-clicks on a photo and moves through the collection - and/or removes photos from the collection, the cursor state in the - original page becomes bogus and leads to strange results when - navigating the cursor with the keyboard. This patch re-updates the - cursor state when returning to the page. - -M THANKS -M src/MediaPage.vala - -commit 2a6f84f55fecfdface61556aa7f30269c526e582 -Author: Joe Sapp -Date: Tue May 6 11:37:42 2014 -0700 - - Publish to Gallery 3: Closes bug #717839 - - Added to Shotwell Publishing Extras. - -M THANKS -M misc/org.yorba.shotwell.gschema.xml -M plugins/plugins.mk -A plugins/shotwell-publishing-extras/GalleryConnector.vala -M plugins/shotwell-publishing-extras/Makefile -A plugins/shotwell-publishing-extras/gallery3.png -A -plugins/shotwell-publishing-extras/gallery3_authentication_pane.glade -A -plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.glade -M plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala -M po/POTFILES.in - -commit 449a856ec8441c837126bcd791b9bddfaf37edcc -Author: Wolfgang Steitz -Date: Tue May 6 11:20:41 2014 -0700 - - Deduce crop constraint when re-cropping image: Closes bug #719109 - -M src/editing_tools/EditingTools.vala - -commit afd4a3c04d53ebefb8be9b46bc1c54480786fa0b -Author: Petr Heynch -Date: Tue May 6 10:57:40 2014 -0700 - - Support for Rajce.net photo sharing service: Closes bug #722202 - - Added to Shotwell publishing extras. - -M THANKS -M misc/org.yorba.shotwell-extras.gschema.xml -M misc/org.yorba.shotwell.gschema.xml -M plugins/plugins.mk -M plugins/shotwell-publishing-extras/Makefile -A plugins/shotwell-publishing-extras/RajcePublishing.vala -A plugins/shotwell-publishing-extras/rajce_authentication_pane.glade -A -plugins/shotwell-publishing-extras/rajce_publishing_options_pane.glade -M plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala -M po/POTFILES.in - -commit 21c6a729c2cdc5d1503573fba2f27f8f13c1bf7d -Author: Christian Kirbach -Date: Thu May 1 18:31:21 2014 +0000 - - Updated German translation - -M po/de.po - -commit 9602e927c06cc31a443f62f58cdaff507be057e4 -Author: Dámaris Letelier -Date: Tue Apr 22 18:03:46 2014 +0200 - - Updated Spanish Translation - -M help/es/es.po - -commit 27b759a9527c66f12355c2ae33e1f1cccbf227c2 -Author: Daniel Mustieles -Date: Tue Apr 15 14:32:45 2014 +0200 - - Updated Spanish translation - -M help/es/es.po - -commit ceb793cdeddc67b27346cd5fae86a7c9e1f8b140 -Author: Daniel Mustieles -Date: Mon Apr 14 18:16:54 2014 +0200 - - Updated Spanish translation - -M help/es/es.po - -commit 80894811fb6ea0e78db07c3582bc9520a6bd3bff -Author: GunChleoc -Date: Mon Apr 14 09:46:53 2014 +0000 - - Updated Scottish Gaelic translation - -M po/gd.po - -commit 7b817ceca48322e8ae562b15fb4d39a82183e824 -Author: Aurimas Černius -Date: Sun Apr 13 23:05:05 2014 +0300 - - Updated Lithuanian translation - -M po/lt.po - -commit a76a8be6c949a7c9cfe60dd65093a5218a9e6a39 -Author: Daniel Mustieles -Date: Fri Apr 11 14:08:56 2014 +0200 - - Updated Spanish translation - -M help/es/es.po - -commit 0e0747baec471ac6ff25b6a687c0707d05ff849b -Author: GunChleoc -Date: Thu Apr 10 15:18:55 2014 +0000 - - Added Scottish Gaelic translation - -M po/LINGUAS -A po/gd.po - -commit 2bb2b0273a736df79a889a4bd7e9822b1996ee48 -Author: Daniel Mustieles -Date: Wed Apr 9 17:51:37 2014 +0200 - - Updated Spanish translation - -M help/es/es.po - -commit 68104d8e5e6fad0fd984dc0754d8a93654401ca4 -Author: Sam Friedmann -Date: Mon Apr 7 09:09:18 2014 +0000 - - Updated French translation - -M po/fr.po - -commit 254bb6e9b9e41532638e12759d26a1f66c8c0b3c -Author: Мирослав Николић -Date: Sat Apr 5 21:53:28 2014 +0200 - - Updated Serbian translation - -M po/sr.po -M po/sr@latin.po - -commit 512022bd7baaea3a4e75f447b8710de6bac6c1cf -Author: Ibrahim Saed -Date: Sat Apr 5 12:22:26 2014 +0100 - - Updated Arabic translation - -M po/ar.po - -commit eb0b8421045346131269d2a82159db09a05bba82 -Author: Rafael Ferreira -Date: Thu Apr 3 10:59:36 2014 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit b2d86f1f4b79766e724be7ed8f809893c83f0922 -Author: Rob van den Berg -Date: Tue Apr 1 08:28:27 2014 +0200 - - Updated Dutch translation master 0.18.0 - -M po/nl.po - -commit 8fcd6dff56c3134f50fc431dd481bd5a09035513 -Author: Marek Černocký -Date: Mon Mar 31 11:04:04 2014 +0200 - - Updated Czech translation - -M po/cs.po - -commit 55d5f2b7bbce2008e17fa65cd218b2525c45b3b7 -Author: Piotr Drąg -Date: Sun Mar 30 17:53:46 2014 +0200 - - Updated Polish translation - -M po/pl.po - -commit 001e91ac66857daaa7e2c53870e449db96081a9c -Author: Andika Triwidada -Date: Sun Mar 30 03:24:04 2014 +0000 - - Updated Indonesian translation - -M po/id.po - -commit dc7ec9a7f3094941d42f3768e91e6b52d740bc19 -Author: Jim Nelson -Date: Fri Mar 28 13:46:52 2014 -0700 - - Improved "Empty Trash" dialog buttons: Closes bgo#725085 - -M src/Dialogs.vala - -commit dd7931023a65addb36ff7888b4d8d41e33c1df55 -Author: Мирослав Николић -Date: Wed Mar 26 12:10:36 2014 +0100 - - Added Serbian translation - -M po/LINGUAS -M po/sr.po -A po/sr@latin.po - -commit dbb61655a4e9300540f163fcd3456c8f16829496 -Author: Daniel Korostil -Date: Tue Mar 25 22:15:35 2014 +0200 - - Added uk translation - -M po/uk.po - -commit 790b1fc10a009a32e43c041bc7aeeeb7245fa5f4 -Author: Jim Nelson -Date: Tue Mar 18 16:04:35 2014 -0700 - - Updated to Shotwell 0.18.0 - - Also includes packaging and tarball dist fixes. - -M Makefile -M NEWS -M debian/changelog - -commit aac9ddaf189645dc25dd2dc7dc3b6f077e2df96b -Author: Jim Nelson -Date: Tue Mar 18 14:43:37 2014 -0700 - - Package requirements for generating translated help pages - -M Makefile -M debian/control - -commit 642c249334874e1dd3ffd45fec837548a1e0bc61 -Author: Jim Nelson -Date: Tue Mar 18 13:13:35 2014 -0700 - - Compile and install translated help pages: Closes bgo#726589 - - Help .po files are compiles with the English .page files to generate - translated .page files at compile time. - -M .gitignore -M Makefile -M help/Makefile.am - -commit 9b771631f4d4c104ecf76e3b9218b43d4376a57f -Author: Dimitris Spingos -Date: Sun Mar 16 22:06:16 2014 +0200 - - Added Greek translation of help - -M help/Makefile.am -A help/el/el.po - -commit 4bc5f54b28831dbd81185e150d3807f3aa434647 -Author: Daniel Mustieles -Date: Fri Mar 14 18:02:09 2014 +0100 - - Updated Spanish translation - -M help/es/es.po - -commit fe0d93af6a25fab91d31efd1ff735578516f84a5 -Author: Rafael Ferreira -Date: Fri Mar 14 14:44:35 2014 +0000 - - Updated Brazilian Portuguese translation - -M po/pt_BR.po - -commit 3a6da2320e7055c4404c41d993834d4e9c1fe510 -Author: Aurimas Černius -Date: Fri Mar 7 22:44:07 2014 +0200 - - Updated Lithuanian translation - -M po/lt.po - -commit 9d14fb667e89bc57e9ee690a2b68e8762aa8747a -Author: Marek Černocký -Date: Thu Mar 6 12:36:15 2014 +0100 - - Updated Czech translation - -M po/cs.po - -commit f64ae4edf12ee3e6067db38e69e976747db29705 -Author: Balázs Úr -Date: Wed Mar 5 16:12:12 2014 +0000 - - Updated Hungarian translation - -M po/hu.po - -commit 76fff78f9f283afc51eebe4b71dba7f0c5aa7966 -Author: Jim Nelson -Date: Tue Mar 4 15:23:46 2014 -0800 - - Updated to Shotwell 0.17.2 - -M Makefile -M NEWS - -commit 2ec1ed7d49c442cbcbb2855623f92340d74d91bf -Author: Jim Nelson -Date: Tue Mar 4 14:34:04 2014 -0800 - - Revert "Prevent Extended Info text moving horiz: Closes bgo#718901" - - This reverts commit 7f6d4c1d66e3d11cb824135f05f4e7e25bfcb0a7. - -M src/Properties.vala - -commit b211542cb0326f9fcb110b9a1113a1809e374f0d -Author: Jim Nelson -Date: Tue Mar 4 14:26:23 2014 -0800 - - Too many open files when importing videos: Closes bgo#719121 - - A pipe was being unnecessarily created for launching the Shotwell - video thumbnailer, one per imported video. - -M src/VideoSupport.vala - -commit 18c905aff93fadbf2c7b2354f4543c1cc3124d21 -Author: Brian Masney -Date: Tue Mar 4 13:51:15 2014 -0800 - - Allow searching for event comments: Closes bgo#723749 - -M THANKS -M src/Event.vala - -commit f691aca08a53eddbbd5eeece7782d1a70da5348a -Author: Wolfgang Steitz -Date: Tue Mar 4 13:45:00 2014 -0800 - - Saved search supports diacritics: Closes bgo#719112 - -M src/Tag.vala -M src/searches/SearchBoolean.vala -M src/util/string.vala - -commit 7f6d4c1d66e3d11cb824135f05f4e7e25bfcb0a7 -Author: Joseph Bylund -Date: Tue Mar 4 13:39:35 2014 -0800 - - Prevent Extended Info text moving horiz: Closes bgo#718901 - - This prevents the text from moving horizontally when adding the - additional fields Shotwell displays for RAW photos. Only - vertical space is added (or removed). - -M src/Properties.vala - -commit f5609d893cd23b9d581925d7c366cf11353b076c -Author: Wolfgang Steitz -Date: Tue Mar 4 12:25:14 2014 -0800 - - Remeber "pin toolbar" state in fullscreen: Closes bgo#719111 - -M misc/org.yorba.shotwell.gschema.xml -M src/AppWindow.vala -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala - -commit 35632da1ea90095ca1921eaba53631cc895fbe69 -Author: Claude Paroz -Date: Tue Feb 25 10:48:23 2014 +0100 - - Updated French translation - -M po/fr.po - -commit e964e547240552152242b75265ced20726b8f762 -Author: Vangelis Skarmoutsos -Date: Tue Feb 18 10:35:06 2014 +0200 - - Updated Greek translation - -M po/el.po - -commit a7c304e6683837cf7f0f99a6b7b0846763e3c6c8 -Author: Jim Nelson -Date: Mon Feb 17 16:51:32 2014 -0800 - - Update to version 0.17.1. - -M Makefile -M NEWS - -commit 6321cbf488c147e394e52c77badfed34f33352f6 -Author: Jim Nelson -Date: Tue Feb 11 14:08:58 2014 -0800 - - Revert "Incl matching folder names keyword search: Closes bgo#722756" - - This reverts commit 51f04e9c1f9c8605a9945a63d93681823fc39c50. - -M THANKS -M src/MediaDataRepresentation.vala - -commit 65d5379d3ea2c20326f4135623dd5f128ea9afde -Author: Andika Triwidada -Date: Fri Feb 7 06:16:41 2014 +0000 - - Updated Indonesian translation - -M po/id.po - -commit 4b7d9fabc353968a5451ad363788df57a3684a36 -Author: Fran Diéguez -Date: Fri Feb 7 01:56:19 2014 +0100 - - Updated Galician translations - -M po/gl.po - -commit 8a84058adcfe2a4ceecb67440f80f43a5f1117e7 -Author: ngoswami -Date: Thu Feb 6 10:12:19 2014 +0000 - - Updated Assamese translation - -M po/as.po - -commit 4e016ae01de854983f8c41871fb943a3453ca5f4 -Author: Piotr Drąg -Date: Wed Feb 5 19:42:57 2014 +0100 - - Updated Polish translation - -M po/pl.po - -commit 57c9c4ba2b56279ad6eaba854038a454946fd311 -Author: Jim Nelson -Date: Tue Feb 4 17:49:54 2014 -0800 - - Shotwell 0.17.0 - - This also closes bgo#719310, as this is the first release using the - GNOME versioning scheme. - -M Makefile -M NEWS - -commit 51f04e9c1f9c8605a9945a63d93681823fc39c50 -Author: ritchiew -Date: Tue Feb 4 17:38:00 2014 -0800 - - Include matching folder names for keyword search: Closes bgo#722756 - - Photos in the library match on their folder names up to the library - root. Photos outside the library match only on their folder name. - -M THANKS -M src/MediaDataRepresentation.vala - -commit dab057de12b8685996d761ff60518818a36d9a85 -Author: Jim Nelson -Date: Tue Feb 4 16:26:22 2014 -0800 - - Glade strings not intended for translation: Closes bgo#723538 - - Some strings in the plugin Glade files are populated in code and - should not be marked for translation. - -M -plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.glade -M plugins/shotwell-publishing/facebook_publishing_options_pane.glade -M plugins/shotwell-publishing/flickr_publishing_options_pane.glade -M plugins/shotwell-publishing/picasa_publishing_options_pane.glade - -commit e8904c094475cea16aed9acb6b9839c7c8c7fc09 -Author: Jim Nelson -Date: Tue Feb 4 16:07:44 2014 -0800 - - Update copyrights to 2014: Closes bgo#722382 - -M INSTALL -M README -M chkver -M configure -M debian/copyright -M help/C/Makefile -M misc/shotwell.appdata.xml -M mkunit -M mkvala -M plugins/common/RESTSupport.vala -M plugins/common/Resources.vala -M plugins/common/SqliteSupport.vala -M plugins/common/VersionNumber.vala -M plugins/shotwell-data-imports/FSpotDatabase.vala -M plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala -M plugins/shotwell-data-imports/FSpotDatabaseTable.vala -M plugins/shotwell-data-imports/FSpotImporter.vala -M plugins/shotwell-data-imports/FSpotMetaTable.vala -M plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala -M plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala -M plugins/shotwell-data-imports/FSpotPhotosTable.vala -M plugins/shotwell-data-imports/FSpotRollsTable.vala -M plugins/shotwell-data-imports/FSpotTableBehavior.vala -M plugins/shotwell-data-imports/FSpotTagsTable.vala -M plugins/shotwell-data-imports/shotwell-data-imports.vala -M plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/PiwigoPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -M plugins/shotwell-publishing/shotwell-publishing.vala -M plugins/shotwell-transitions/BlindsEffect.vala -M plugins/shotwell-transitions/ChessEffect.vala -M plugins/shotwell-transitions/CircleEffect.vala -M plugins/shotwell-transitions/CirclesEffect.vala -M plugins/shotwell-transitions/ClockEffect.vala -M plugins/shotwell-transitions/CrumbleEffect.vala -M plugins/shotwell-transitions/FadeEffect.vala -M plugins/shotwell-transitions/SlideEffect.vala -M plugins/shotwell-transitions/SquaresEffect.vala -M plugins/shotwell-transitions/StripesEffect.vala -M plugins/shotwell-transitions/shotwell-transitions.vala -M samples/simple-plugin/simple-plugin.vala -M settings-migrator/shotwell-settings-migrator -M src/AppDirs.vala -M src/AppWindow.vala -M src/Application.vala -M src/BatchImport.vala -M src/Box.vala -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/ColorTransformation.vala -M src/CommandManager.vala -M src/Commands.vala -M src/CustomComponents.vala -M src/Debug.vala -M src/DesktopIntegration.vala -M src/Dialogs.vala -M src/Dimensions.vala -M src/DirectoryMonitor.vala -M src/Event.vala -M src/Exporter.vala -M src/International.vala -M src/LibraryFiles.vala -M src/LibraryMonitor.vala -M src/MediaDataRepresentation.vala -M src/MediaInterfaces.vala -M src/MediaMetadata.vala -M src/MediaMonitor.vala -M src/MediaPage.vala -M src/MediaViewTracker.vala -M src/MetadataWriter.vala -M src/Orientation.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoMonitor.vala -M src/PhotoPage.vala -M src/PixbufCache.vala -M src/Printing.vala -M src/Properties.vala -M src/Resources.vala -M src/Screensaver.vala -M src/SearchFilter.vala -M src/SlideshowPage.vala -M src/SortedList.vala -M src/Tag.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala -M src/TimedQueue.vala -M src/Tombstone.vala -M src/UnityProgressBar.vala -M src/Upgrades.vala -M src/VideoMetadata.vala -M src/VideoMonitor.vala -M src/VideoSupport.vala -M src/camera/Branch.vala -M src/camera/Camera.vala -M src/camera/CameraTable.vala -M src/camera/GPhoto.vala -M src/camera/ImportPage.vala -M src/config/Config.vala -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala -M src/core/Alteration.vala -M src/core/ContainerSourceCollection.vala -M src/core/Core.vala -M src/core/DataCollection.vala -M src/core/DataObject.vala -M src/core/DataSet.vala -M src/core/DataSource.vala -M src/core/DataSourceTypes.vala -M src/core/DataView.vala -M src/core/DataViewTypes.vala -M src/core/DatabaseSourceCollection.vala -M src/core/SourceCollection.vala -M src/core/SourceHoldingTank.vala -M src/core/SourceInterfaces.vala -M src/core/Tracker.vala -M src/core/ViewCollection.vala -M src/core/util.vala -M src/data_imports/DataImportJob.vala -M src/data_imports/DataImportSource.vala -M src/data_imports/DataImports.vala -M src/data_imports/DataImportsPluginHost.vala -M src/data_imports/DataImportsUI.vala -M src/db/DatabaseTable.vala -M src/db/Db.vala -M src/db/EventTable.vala -M src/db/PhotoTable.vala -M src/db/SavedSearchDBTable.vala -M src/db/TagTable.vala -M src/db/TombstoneTable.vala -M src/db/VersionTable.vala -M src/db/VideoTable.vala -M src/direct/Direct.vala -M src/direct/DirectPhoto.vala -M src/direct/DirectPhotoPage.vala -M src/direct/DirectView.vala -M src/direct/DirectWindow.vala -M src/editing_tools/EditingTools.vala -M src/editing_tools/StraightenTool.vala -M src/events/Branch.vala -M src/events/EventDirectoryItem.vala -M src/events/EventPage.vala -M src/events/Events.vala -M src/events/EventsDirectoryPage.vala -M src/folders/Branch.vala -M src/folders/Folders.vala -M src/folders/Page.vala -M src/library/Branch.vala -M src/library/FlaggedBranch.vala -M src/library/FlaggedPage.vala -M src/library/ImportQueueBranch.vala -M src/library/ImportQueuePage.vala -M src/library/LastImportBranch.vala -M src/library/LastImportPage.vala -M src/library/Library.vala -M src/library/LibraryWindow.vala -M src/library/OfflineBranch.vala -M src/library/OfflinePage.vala -M src/library/TrashBranch.vala -M src/library/TrashPage.vala -M src/main.vala -M src/photos/BmpSupport.vala -M src/photos/GRaw.vala -M src/photos/GdkSupport.vala -M src/photos/JfifSupport.vala -M src/photos/PhotoFileAdapter.vala -M src/photos/PhotoFileFormat.vala -M src/photos/PhotoFileSniffer.vala -M src/photos/PhotoMetadata.vala -M src/photos/Photos.vala -M src/photos/PngSupport.vala -M src/photos/RawSupport.vala -M src/photos/TiffSupport.vala -M src/plugins/DataImportsInterfaces.vala -M src/plugins/ManifestWidget.vala -M src/plugins/Plugins.vala -M src/plugins/PublishingInterfaces.vala -M src/plugins/SpitInterfaces.vala -M src/plugins/StandardHostInterface.vala -M src/plugins/TransitionsInterfaces.vala -M src/publishing/APIGlue.vala -M src/publishing/Publishing.vala -M src/publishing/PublishingPluginHost.vala -M src/publishing/PublishingUI.vala -M src/searches/Branch.vala -M src/searches/SavedSearchDialog.vala -M src/searches/SavedSearchPage.vala -M src/searches/SearchBoolean.vala -M src/searches/Searches.vala -M src/sidebar/Branch.vala -M src/sidebar/Entry.vala -M src/sidebar/Sidebar.vala -M src/sidebar/Tree.vala -M src/sidebar/common.vala -M src/slideshow/Slideshow.vala -M src/slideshow/TransitionEffects.vala -M src/tags/Branch.vala -M src/tags/HierarchicalTagIndex.vala -M src/tags/HierarchicalTagUtilities.vala -M src/tags/TagPage.vala -M src/tags/Tags.vala -M src/threads/BackgroundJob.vala -M src/threads/Semaphore.vala -M src/threads/Threads.vala -M src/threads/Workers.vala -M src/unit/Unit.vala -M src/unit/rc/Unit.m4 -M src/unit/rc/UnitInternals.m4 -M src/unit/rc/template.vala -M src/unit/rc/unitize_entry.m4 -M src/util/KeyValueMap.vala -M src/util/Util.vala -M src/util/file.vala -M src/util/image.vala -M src/util/misc.vala -M src/util/string.vala -M src/util/system.vala -M src/util/ui.vala -M thumbnailer/shotwell-video-thumbnailer.vala -M vapi/ExtendedPosix.vapi -M vapi/LConv.vapi -M vapi/gphoto-2.4/libgphoto2.vapi -M vapi/gphoto-2.5/libgphoto2.vapi -M vapi/gphoto.h -M vapi/libexif.vapi -M vapi/libraw.vapi - -commit 450558d9b8ae5c47078742e5be0ed99d95301c77 -Author: Ankit Patel -Date: Tue Feb 4 15:58:48 2014 +0530 - - Updated Gujarati translations - -M po/gu.po - -commit 28e3f663186d5a4dbfc317fa80e4d7e29a0179f0 -Author: Gabor Kelemen -Date: Mon Feb 3 15:49:11 2014 +0100 - - Updated Hungarian translation - -M po/hu.po - -commit 6a354deb673c65594e13d983934564f7fe5dff34 -Author: Gabor Kelemen -Date: Mon Feb 3 15:20:36 2014 +0100 - - Updated Hungarian translation - -M po/hu.po - -commit 76f87a1dba91136075fe360ad7af429cbc0c1615 -Author: Shankar Prasad -Date: Mon Feb 3 18:34:50 2014 +0530 - - updated kn.po - -M po/kn.po - -commit 9ac3952e90fb31e62c01884799db82d98e3938b4 -Author: Shantha kumar -Date: Mon Feb 3 13:06:11 2014 +0530 - - Tamil Translations Updated - -M po/ta.po - -commit face4be8dfad6a700dddccc6f25c325ba9711e7c -Author: Daniel Korostil -Date: Sun Feb 2 22:29:13 2014 +0000 - - Updated Ukrainian translation - -M po/uk.po - -commit deb91cfd0e1976ce27a1ed0aa3c402165991f047 -Author: Dimitris Spingos -Date: Sat Feb 1 09:06:27 2014 +0200 - - Updated Greek translation - -M po/el.po - -commit 7b99fe256af6454d1f0ca895715c863d9d03e59a -Author: Krishnababu Krothapalli -Date: Thu Jan 30 13:45:21 2014 +0530 - - Updated Telugu Translations - -M po/te.po - -commit f9306397e721f77f7d386ed9129f947888850f5a -Author: Cheng-Chia Tseng -Date: Tue Jan 28 20:29:34 2014 +0800 - - Updated Traditional Chinese translation(Hong Kong and Taiwan) - -M po/LINGUAS -C054 po/zh_TW.po po/zh_HK.po -M po/zh_TW.po - -commit 99aaa3f3138a165eac36e20128bffd8a75920603 -Author: Fran Diéguez -Date: Tue Jan 21 00:11:07 2014 +0100 - - Updated Galician translations - -M po/gl.po - -commit 397c4a39bb35238a15eb08e0dc3061e3748658fe -Author: 甘 露 -Date: Sat Jan 18 17:46:38 2014 +0800 - - Update Chinese simplified translation - -M po/zh_CN.po - -commit 7db3fc1f4333b3c016e9bca91565174df1155db5 -Author: Daniel Mustieles -Date: Thu Jan 16 10:32:34 2014 +0100 - - Updated Spanish translation - -M help/Makefile.am -A help/es/es.po - -commit c5dd916c55fc96911349a0e8990ef8eb74d2483e -Author: Piotr Drąg -Date: Wed Jan 15 21:16:20 2014 +0100 - - Updated Polish translation - -M po/pl.po - -commit e9f5eefa7ddcf74406e5686c27442f1111b952af -Author: Charles Lindsay -Date: Wed Jan 15 11:51:09 2014 -0800 - - Merge po files, set up for intltool and l10n.gnome.org - - This removes the custom .pot file setup we had before, making it - easy to - translate Shotwell using the standard intltool workflow. - - This also merges the two separate core/extras gettext domains - into one, - to keep things simple. I hope I've merged all the po files correctly, - but I wouldn't bet money I did it perfectly. - - We also set up the help to be able to be translated on l10n.gnome.org. - - Closes: bgo #718783 - -M Makefile -A help/Makefile.am -M plugins/shotwell-publishing-extras/TumblrPublishing.vala -M plugins/shotwell-publishing-extras/YandexPublishing.vala -M plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala -A po/LINGUAS -A po/POTFILES.in -A po/POTFILES.skip -R100 po/shotwell-core/af.po po/af.po -R085 po/shotwell-core/ar.po po/ar.po -R083 po/shotwell-core/as.po po/as.po -R091 po/shotwell-core/ast.po po/ast.po -R091 po/shotwell-core/bg.po po/bg.po -R094 po/shotwell-core/bn.po po/bn.po -R091 po/shotwell-core/bn_IN.po po/bn_IN.po -R085 po/shotwell-core/ca.po po/ca.po -R085 po/shotwell-core/cs.po po/cs.po -R089 po/shotwell-core/da.po po/da.po -R083 po/shotwell-core/de.po po/de.po -R081 po/shotwell-core/el.po po/el.po -R088 po/shotwell-core/en_GB.po po/en_GB.po -R100 po/shotwell-extras/eo.po po/eo.po -R085 po/shotwell-core/es.po po/es.po -R087 po/shotwell-core/et.po po/et.po -R084 po/shotwell-core/eu.po po/eu.po -R087 po/shotwell-core/fi.po po/fi.po -R083 po/shotwell-core/fr.po po/fr.po -R086 po/shotwell-core/gl.po po/gl.po -R083 po/shotwell-core/gu.po po/gu.po -R086 po/shotwell-core/he.po po/he.po -R083 po/shotwell-core/hi.po po/hi.po -R090 po/shotwell-core/hr.po po/hr.po -R086 po/shotwell-core/hu.po po/hu.po -R100 po/shotwell-core/ia.po po/ia.po -R088 po/shotwell-core/id.po po/id.po -R085 po/shotwell-core/it.po po/it.po -R084 po/shotwell-core/ja.po po/ja.po -R085 po/shotwell-core/kk.po po/kk.po -R100 po/shotwell-core/km.po po/km.po -R080 po/shotwell-core/kn.po po/kn.po -R086 po/shotwell-core/ko.po po/ko.po -R100 po/shotwell-core/ky.po po/ky.po -R088 po/shotwell-core/lt.po po/lt.po -R086 po/shotwell-core/lv.po po/lv.po -R087 po/shotwell-core/mk.po po/mk.po -R081 po/shotwell-core/ml.po po/ml.po -R085 po/shotwell-core/mr.po po/mr.po -R086 po/shotwell-core/nb.po po/nb.po -R085 po/shotwell-core/nl.po po/nl.po -R093 po/shotwell-core/nn.po po/nn.po -R084 po/shotwell-core/or.po po/or.po -R085 po/shotwell-core/pa.po po/pa.po -R082 po/shotwell-core/pl.po po/pl.po -R085 po/shotwell-core/pt.po po/pt.po -R085 po/shotwell-core/pt_BR.po po/pt_BR.po -R082 po/shotwell-core/ro.po po/ro.po -R082 po/shotwell-core/ru.po po/ru.po -D po/shotwell-core/shotwell.pot -D po/shotwell-extras/ar.po -D po/shotwell-extras/as.po -D po/shotwell-extras/ast.po -D po/shotwell-extras/bg.po -D po/shotwell-extras/bn.po -D po/shotwell-extras/bn_IN.po -D po/shotwell-extras/ca.po -D po/shotwell-extras/cs.po -D po/shotwell-extras/da.po -D po/shotwell-extras/de.po -D po/shotwell-extras/el.po -D po/shotwell-extras/en_GB.po -D po/shotwell-extras/es.po -D po/shotwell-extras/et.po -D po/shotwell-extras/eu.po -D po/shotwell-extras/fi.po -D po/shotwell-extras/fr.po -D po/shotwell-extras/gl.po -D po/shotwell-extras/gu.po -D po/shotwell-extras/he.po -D po/shotwell-extras/hi.po -D po/shotwell-extras/hr.po -D po/shotwell-extras/hu.po -D po/shotwell-extras/id.po -D po/shotwell-extras/it.po -D po/shotwell-extras/ja.po -D po/shotwell-extras/kk.po -D po/shotwell-extras/kn.po -D po/shotwell-extras/ko.po -D po/shotwell-extras/lt.po -D po/shotwell-extras/lv.po -D po/shotwell-extras/mk.po -D po/shotwell-extras/ml.po -D po/shotwell-extras/mr.po -D po/shotwell-extras/nb.po -D po/shotwell-extras/nl.po -D po/shotwell-extras/nn.po -D po/shotwell-extras/or.po -D po/shotwell-extras/pa.po -D po/shotwell-extras/pl.po -D po/shotwell-extras/pt.po -D po/shotwell-extras/pt_BR.po -D po/shotwell-extras/ro.po -D po/shotwell-extras/ru.po -D po/shotwell-extras/shotwell-extras.pot -D po/shotwell-extras/sk.po -D po/shotwell-extras/sl.po -D po/shotwell-extras/sr.po -D po/shotwell-extras/sv.po -D po/shotwell-extras/ta.po -D po/shotwell-extras/te.po -D po/shotwell-extras/th.po -D po/shotwell-extras/tr.po -D po/shotwell-extras/uk.po -D po/shotwell-extras/vi.po -D po/shotwell-extras/zh_CN.po -D po/shotwell-extras/zh_TW.po -R083 po/shotwell-core/sk.po po/sk.po -R082 po/shotwell-core/sl.po po/sl.po -R082 po/shotwell-core/sr.po po/sr.po -R085 po/shotwell-core/sv.po po/sv.po -R078 po/shotwell-core/ta.po po/ta.po -R086 po/shotwell-core/te.po po/te.po -R092 po/shotwell-core/th.po po/th.po -R085 po/shotwell-core/tr.po po/tr.po -R077 po/shotwell-core/uk.po po/uk.po -R092 po/shotwell-core/vi.po po/vi.po -R089 po/shotwell-core/zh_CN.po po/zh_CN.po -R090 po/shotwell-core/zh_TW.po po/zh_TW.po -D potgen-shotwell - -commit c767099e9b8cfa7113fd8c24cb2d0c9c95cc8f62 -Author: Jim Nelson -Date: Mon Jan 13 17:40:26 2014 -0800 - - Add translator comments for strftime strings: Refs bgno#716533 - - The strftime strings for local-specific date/time formats are - cryptic, so hopefully these comments will help translators make the - right choice. - -M src/Resources.vala - -commit d9b73ef0197d0f7d6d15eb4e9c68340ef0eb71ce -Author: Thomas Moschny -Date: Mon Dec 9 16:53:10 2013 -0800 - - Build when "-Werror=format-security" used: Closes #719863 - -M src/Dialogs.vala - -commit 4396ed3fb73ec756b8a56751503002bcff91ab54 -Author: Jim Nelson -Date: Tue Nov 19 17:26:12 2013 -0800 - - Merge from shotwell-0.15 for 0.15.1 - -M Makefile -M NEWS -M debian/changelog - -commit 17f34137e6b213542bdfd3cf2def71c60342f7d5 -Author: Jim Nelson -Date: Tue Nov 19 14:53:40 2013 -0800 - - Crash in video interpretable check: Closes #5071 - - The database and ThumbnailCache calls in check_is_interpretable - are not thread-safe although check_is_interpretable was being - called from a background thread. Now check_is_interpretable returns - an object with a foreground_finish() function that does the thread- - unsafe work there. - -M src/VideoMonitor.vala -M src/VideoSupport.vala - -commit c1972e2f2baa1f3679deeb8528b1747b8e6b588b -Author: Jim Nelson -Date: Tue Nov 19 15:38:42 2013 -0800 - - Fix gettext problems - - GNOME's pre-commit hooks discovered a couple of gettext problems in - three translations. This removes (by hand) the c-format specifiers - that were causing the problem as well as adds the no-c-format comments - in the code so the problem doesn't happen again. - - Finally, msgfmt -c is now used to catch these errors in the future, - although the Makefile doesn't abort (like it should) when that - happens. More work necessary for that. - -M Makefile -M po/shotwell-core/hi.po -M po/shotwell-core/hr.po -M po/shotwell-core/hu.po -M src/PhotoPage.vala -M src/direct/DirectPhotoPage.vala - -commit dbfbe461961b19beb77220c4b412fa4c78564a50 -Author: Piotr Drąg -Date: Tue Nov 19 01:12:23 2013 +0100 - - Correct language codes of PO files - - Also fuzzify invalid translations, otherwise git.gnome.org won't - let me commit. - -M Makefile -M po/shotwell-core/af.po -D po/shotwell-core/af_ZA.po -M po/shotwell-core/ar.po -M po/shotwell-core/as.po -M po/shotwell-core/bg.po -M po/shotwell-core/bn_IN.po -M po/shotwell-core/ca.po -M po/shotwell-core/cs.po -M po/shotwell-core/da.po -M po/shotwell-core/el.po -M po/shotwell-core/es.po -M po/shotwell-core/eu.po -M po/shotwell-core/fr.po -M po/shotwell-core/gl.po -M po/shotwell-core/gu.po -M po/shotwell-core/he.po -M po/shotwell-core/id.po -D po/shotwell-core/id_ID.po -M po/shotwell-core/it.po -M po/shotwell-core/ja.po -M po/shotwell-core/kn.po -M po/shotwell-core/lv.po -M po/shotwell-core/mk.po -M po/shotwell-core/ml.po -M po/shotwell-core/mr.po -M po/shotwell-core/nl.po -R100 po/shotwell-core/nn_NO.po po/shotwell-core/nn.po -M po/shotwell-core/or.po -M po/shotwell-core/pa.po -M po/shotwell-core/pl.po -M po/shotwell-core/pt_BR.po -M po/shotwell-core/sk.po -M po/shotwell-core/sl.po -M po/shotwell-core/sv.po -D po/shotwell-core/ta_IN.po -M po/shotwell-core/te.po -D po/shotwell-core/te_IN.po -M po/shotwell-core/th.po -M po/shotwell-core/tr.po -D po/shotwell-core/tr_TR.po -M po/shotwell-core/zh_CN.po -M po/shotwell-core/zh_TW.po -D po/shotwell-extras/id_ID.po -R100 po/shotwell-extras/nn_NO.po po/shotwell-extras/nn.po -D po/shotwell-extras/tr_TR.po - -commit 04cb26fcff6386ca3e75daf41407b59a1b053497 -Author: Piotr Drąg -Date: Tue Nov 19 01:01:30 2013 +0100 - - Capitalize description in DOAP file - - To follow the convention. - -M shotwell.doap - -commit 52cbc5541db2f3806a61036554835e1ffe7b4177 -Author: Charles Lindsay -Date: Mon Nov 18 15:56:58 2013 -0800 - - Add DOAP file for GNOME - -A shotwell.doap - -commit 61c782ceaeef7a88ffa5f2c6d3dfa9975b72f559 -Author: Jim Nelson -Date: Thu Nov 14 14:27:35 2013 -0800 - - Tumble plugin doesn't show authentication pane: Closes #7691 - - Glade files were not being installed by Makefile nor included in - the tarball. - -M plugins/plugins.mk - -commit fd35f69e5fb04758b9211a5f57f9c119db97d086 -Author: Frenk X -Date: Wed Oct 30 11:45:19 2013 -0700 - - Importing to library with limited rights fails: Closes #7550 - -M src/LibraryFiles.vala - -commit 15f187ca134522654c0158600ff718e2725ef735 -Author: Jim Nelson -Date: Mon Oct 28 18:04:13 2013 -0700 - - Fix Alteration detail name: Refs #7631 - -M src/Photo.vala - -commit 04fd9b486673b04dbb5b9886c20df731189938d1 -Author: Frenk X -Date: Mon Oct 28 17:56:02 2013 -0700 - - Fix Makefile error if VALAC is defined: Closes #7650 - -M Makefile -M THANKS - -commit 4e90a16ffa14d920357426d4517e9ec8969a81d1 -Author: Charles Lindsay -Date: Fri Oct 4 14:18:34 2013 -0700 - - Bump packaging version for latest gexiv2 - -M debian/changelog - -commit 4a61752f3a32a6f879b61c1fd6b38559a8f92613 -Author: Jim Nelson -Date: Thu Oct 3 18:19:55 2013 -0700 - - Version 0.15.0+trunk - -M Makefile - -commit df90d19ee14bc505ac3e35617a5b41dac4129588 -Author: Jim Nelson -Date: Thu Oct 3 18:16:55 2013 -0700 - - Version 0.15.0 - -M Makefile -M debian/changelog - -commit 1e9e3a3fc97906a8819398e42fd30ebb213aa79d -Author: Jim Nelson -Date: Thu Oct 3 17:20:35 2013 -0700 - - Translations for 0.15.0 - -M Makefile -M po/shotwell-core/af.po -C057 po/shotwell-core/af.po po/shotwell-core/af_ZA.po -M po/shotwell-core/ar.po -M po/shotwell-core/as.po -M po/shotwell-core/ast.po -M po/shotwell-core/bg.po -M po/shotwell-core/bn.po -A po/shotwell-core/bn_IN.po -M po/shotwell-core/ca.po -M po/shotwell-core/cs.po -M po/shotwell-core/da.po -M po/shotwell-core/de.po -M po/shotwell-core/el.po -M po/shotwell-core/en_GB.po -M po/shotwell-core/es.po -M po/shotwell-core/et.po -M po/shotwell-core/eu.po -M po/shotwell-core/fi.po -M po/shotwell-core/fr.po -M po/shotwell-core/gl.po -M po/shotwell-core/gu.po -M po/shotwell-core/he.po -M po/shotwell-core/hi.po -M po/shotwell-core/hr.po -M po/shotwell-core/hu.po -M po/shotwell-core/ia.po -M po/shotwell-core/id.po -C066 po/shotwell-core/id.po po/shotwell-core/id_ID.po -M po/shotwell-core/it.po -M po/shotwell-core/ja.po -M po/shotwell-core/kk.po -M po/shotwell-core/km.po -M po/shotwell-core/kn.po -M po/shotwell-core/ko.po -C059 po/shotwell-core/km.po po/shotwell-core/ky.po -M po/shotwell-core/lt.po -M po/shotwell-core/lv.po -M po/shotwell-core/mk.po -M po/shotwell-core/ml.po -M po/shotwell-core/mr.po -M po/shotwell-core/nb.po -M po/shotwell-core/nl.po -C058 po/shotwell-core/km.po po/shotwell-core/nn_NO.po -M po/shotwell-core/or.po -M po/shotwell-core/pa.po -M po/shotwell-core/pl.po -M po/shotwell-core/pt.po -M po/shotwell-core/pt_BR.po -M po/shotwell-core/ro.po -M po/shotwell-core/ru.po -M po/shotwell-core/sk.po -M po/shotwell-core/sl.po -M po/shotwell-core/sr.po -M po/shotwell-core/sv.po -M po/shotwell-core/ta.po -C057 po/shotwell-core/km.po po/shotwell-core/ta_IN.po -M po/shotwell-core/te.po -C059 po/shotwell-core/km.po po/shotwell-core/te_IN.po -M po/shotwell-core/th.po -M po/shotwell-core/tr.po -C069 po/shotwell-core/tr.po po/shotwell-core/tr_TR.po -M po/shotwell-core/uk.po -M po/shotwell-core/vi.po -M po/shotwell-core/zh_CN.po -M po/shotwell-core/zh_TW.po -M po/shotwell-extras/ar.po -M po/shotwell-extras/as.po -M po/shotwell-extras/ast.po -M po/shotwell-extras/bg.po -M po/shotwell-extras/bn.po -C094 po/shotwell-extras/bn.po po/shotwell-extras/bn_IN.po -M po/shotwell-extras/ca.po -M po/shotwell-extras/cs.po -M po/shotwell-extras/da.po -M po/shotwell-extras/de.po -M po/shotwell-extras/el.po -M po/shotwell-extras/en_GB.po -M po/shotwell-extras/eo.po -M po/shotwell-extras/es.po -M po/shotwell-extras/et.po -M po/shotwell-extras/eu.po -M po/shotwell-extras/fi.po -M po/shotwell-extras/fr.po -M po/shotwell-extras/gl.po -C057 po/shotwell-extras/he.po po/shotwell-extras/gu.po -M po/shotwell-extras/he.po -M po/shotwell-extras/hi.po -M po/shotwell-extras/hr.po -M po/shotwell-extras/hu.po -M po/shotwell-extras/id.po -C089 po/shotwell-extras/id.po po/shotwell-extras/id_ID.po -M po/shotwell-extras/it.po -M po/shotwell-extras/ja.po -M po/shotwell-extras/kk.po -M po/shotwell-extras/kn.po -M po/shotwell-extras/ko.po -M po/shotwell-extras/lt.po -M po/shotwell-extras/lv.po -M po/shotwell-extras/mk.po -M po/shotwell-extras/ml.po -M po/shotwell-extras/mr.po -M po/shotwell-extras/nb.po -M po/shotwell-extras/nl.po -C069 po/shotwell-extras/nb.po po/shotwell-extras/nn_NO.po -M po/shotwell-extras/or.po -M po/shotwell-extras/pa.po -M po/shotwell-extras/pl.po -M po/shotwell-extras/pt.po -M po/shotwell-extras/pt_BR.po -M po/shotwell-extras/ro.po -M po/shotwell-extras/ru.po -M po/shotwell-extras/sk.po -M po/shotwell-extras/sl.po -M po/shotwell-extras/sr.po -M po/shotwell-extras/sv.po -M po/shotwell-extras/ta.po -M po/shotwell-extras/te.po -M po/shotwell-extras/th.po -M po/shotwell-extras/tr.po -C082 po/shotwell-extras/tr.po po/shotwell-extras/tr_TR.po -M po/shotwell-extras/uk.po -C077 po/shotwell-extras/ast.po po/shotwell-extras/vi.po -M po/shotwell-extras/zh_CN.po -M po/shotwell-extras/zh_TW.po - -commit f3780c933fb9d734ff4b5eed96f7410a4eacc57f -Author: Jim Nelson -Date: Thu Oct 3 16:34:46 2013 -0700 - - Prepping for 0.15.0 - -M NEWS -M debian/changelog - -commit 861d439ef4e0f2eb54e1090503a49d4e185cbf59 -Author: Damien Lallement -Date: Wed Oct 2 18:33:44 2013 -0700 - - Create AppData directory before installing file: Closes #7583 - -M Makefile - -commit 9b7cd5a43f0cc30d4a0ea36186034dc9cd951c31 -Author: David Woodhouse -Date: Tue Oct 1 18:49:36 2013 -0700 - - Don't re-open stdout in thumbnailer: Closes #7580 - - Causes an SELinux policy violation. - -M THANKS -M thumbnailer/shotwell-video-thumbnailer.vala - -commit 298165e8183cd8e67e6411357957b5db173acda3 -Author: Jim Nelson -Date: Tue Oct 1 17:04:14 2013 -0700 - - Fixed validation problem in AppData file - -M misc/shotwell.appdata.xml - -commit 0416fcbdde7ae0fef4ad34a07259c2649bafb303 -Author: Jim Nelson -Date: Tue Oct 1 15:41:57 2013 -0700 - - Crop tool sanity-checks its GSettings: Closes #7359 - - In the ticket, the user's last-chosen crop setting was a separator, - leading to havoc. - -M src/editing_tools/EditingTools.vala - -commit d376d2c451b81e2f44d6a68b0e338e82c151375b -Author: Jim Nelson -Date: Tue Oct 1 15:00:40 2013 -0700 - - Add AppData file: Closes #7552 - -M Makefile -A misc/shotwell.appdata.xml - -commit f304cc93e8459f81c5be1a02b6ff7674e72b7387 -Author: Jim Nelson -Date: Fri Sep 27 15:39:04 2013 -0700 - - Update debian/control for new gphoto2 package name - - For libgphoto2 2.5, the package name was changed in Saucy. - -M debian/control - -commit b4bf0794ec36c671dea91b2500679b85d07731d9 -Author: Jim Nelson -Date: Tue Sep 24 15:18:02 2013 -0700 - - Bump to 0.15.0pr3+trunk - -M Makefile - -commit 03b8ae1bd1ec7c55d61cd0faf846a8c06477d24b -Author: Jim Nelson -Date: Tue Sep 24 15:12:45 2013 -0700 - - Bump to 0.15.0pr3 - -M Makefile - -commit 072230870e71fc1eba8cb1aa9cef61d58d72eb46 -Author: Jim Nelson -Date: Tue Sep 24 15:08:27 2013 -0700 - - Revert minimum requirement to Vala 0.20.1: Closes #7537 - - Since enabling deprecated in main app, might as well enable - deprecated in plugins. This allows for us to revert back to - a minimum Vala requirement of 0.20.1, which is convenient for - Ubuntu. - -M Makefile -M plugins/Makefile.plugin.mk -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit aba64603bbcbe9409e9669a8acf9f9b32aed4ae8 -Author: Jim Nelson -Date: Fri Sep 20 15:25:58 2013 -0700 - - Bump to Shotwell 0.15.0pr2+trunk - -M Makefile - -commit dea6b573189905b1eb0d34df510952f2e8768211 -Author: Jim Nelson -Date: Fri Sep 20 15:25:07 2013 -0700 - - Shotwell 0.15.0pr2 - -M Makefile - -commit a4217a72fd424ee11079738d28ebfbfa3429a313 -Author: Jim Nelson -Date: Fri Sep 20 12:09:25 2013 -0700 - - Updated string files for 0.15 - - Also now includes potgen-shotwell script, which generates the - .pot files. "make pot_file" will execute it automatically. - Script also included in tarball. Closes #7526 - -M Makefile -M po/shotwell-core/shotwell.pot -M po/shotwell-extras/shotwell-extras.pot -A potgen-shotwell - -commit 0dc2ce3c45e48800777bfae3cfdd8340291e0d5e -Author: Jim Nelson -Date: Thu Sep 19 16:55:04 2013 -0700 - - shotwell-video-thumbnailer fails to gen thumbnails: Refs #7258 - - Removing bpp and depth params from gstreamer call, as - recommended at https://bugzilla.gnome.org/show_bug.cgi?id=708034#c4 - -M thumbnailer/shotwell-video-thumbnailer.vala - -commit c3a3be285546383c934c2482d38f0c00f2fdc050 -Author: Joseph Bylund -Date: Thu Sep 19 15:31:07 2013 -0700 - - Cropped or straighten portraits stretched at export: Closes #7035 - - Also deals with #6945, which reported the problem for publishing - to Facebook. - -M src/Photo.vala - -commit 1cc65d4b2365a6069cf2e0261ab597529000584e -Author: Jim Nelson -Date: Thu Sep 19 15:29:32 2013 -0700 - - Videos not moved out of Missing Files when reimported: Closes #7462 - -M src/BatchImport.vala - -commit 7253b2a783409da253436786abb281dc132a3fe5 -Author: Jim Nelson -Date: Thu Sep 19 14:41:02 2013 -0700 - - Vala 0.21.2 requirement in debian packaging - - Also related to #7486 - -M debian/control - -commit 8ab6d1e5f421505c06335766da9ea8fc608ed018 -Author: Jim Nelson -Date: Thu Sep 19 14:39:58 2013 -0700 - - Require Vala 0.21.2 - - Related to #7486, forgot to bump up the valac version minimum. - -M Makefile - -commit edd71bd5e984a3f5195eef3c202f3c2b3337a957 -Author: Jim Nelson -Date: Thu Sep 19 14:14:01 2013 -0700 - - Memory usage to high when exporting photos: Closes #7115 - -M src/Exporter.vala -M src/threads/Workers.vala - -commit 8e0b072d0b9655a315f984577dd36abfc2a8061e -Author: Jim Nelson -Date: Thu Sep 19 13:59:12 2013 -0700 - - Help -> Report a Problem sends user to login page: Closes #6946 - -M src/Resources.vala - -commit 463ed0e4ae3a6ae306aeba659ad14c544d4cc889 -Author: Jim Nelson -Date: Thu Sep 19 13:47:45 2013 -0700 - - Remove Valadate unit testing: Closes #6712 - -M Makefile -M configure -D src/SortedListTests.vala - -commit d5ee1ea105967b8c4d1834984342994d19a53f1f -Author: Joseph Bylund -Date: Thu Sep 19 12:58:38 2013 -0700 - - Remove Gee.TreeSet workaround: Closes #6480 - - Bumps gee-0.8 minimum requirement to 0.8.5. - -M Makefile -M debian/control -M src/Commands.vala -M src/Dialogs.vala -M src/MediaDataRepresentation.vala -M src/Tag.vala -M src/photos/PhotoMetadata.vala -M src/plugins/Plugins.vala -M src/sidebar/Branch.vala -M src/slideshow/TransitionEffects.vala -M src/tags/Branch.vala -M src/tags/HierarchicalTagIndex.vala -M src/util/misc.vala - -commit ce01a7de0060b99c0429f5f37718877386d8b7de -Author: Joseph Bylund -Date: Thu Sep 19 12:51:15 2013 -0700 - - --libexec option in configure script: Closes #6042 - -M Makefile -M configure -M src/AppDirs.vala -M src/Resources.vala - -commit 8a4a6333348dec61927dbc548371e95929d85625 -Author: Dominique Leuenberger -Date: Thu Sep 19 12:43:42 2013 -0700 - - Crash when importing AVI file: Closes #7413 - - Fixes some unsafe scanf() parameters. - -M THANKS -M src/VideoMetadata.vala - -commit f564c75fe16472f584532a4b05f6af73df051b97 -Author: Wolfgang Steitz -Date: Thu Sep 19 12:20:52 2013 -0700 - - Make Paste Color Adjustments sensitive when copied: Closes #7406 - -M src/CollectionPage.vala -M src/PhotoPage.vala - -commit ba0908d6702b219534a09806729fb25dd9875c3f -Author: Wolfgang Steitz -Date: Thu Sep 19 12:18:24 2013 -0700 - - Change Copy Color Adjustments sensitivity when photo alt: Closes #7405 - -M src/CollectionPage.vala - -commit 2736686002e0d7d4cc40266f795f3703b23a67d0 -Author: Jim Nelson -Date: Fri Sep 13 14:16:08 2013 -0700 - - Deprecations in Vala 0.21.2: Closes #7486 - - Deprecations were libsoup symbols when compiling the plugins. The - main app is already building with deprecations enabled. - -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit a56ff011709a088bbd1b4a6a00021b3c34d846c2 -Author: Jim Nelson -Date: Tue Aug 27 17:07:59 2013 -0700 - - Bump version to 0.15.0pr1+trunk - -M Makefile - -commit 302f4a09479ae22833e1638c20aebc8c1034aaa5 -Author: Jim Nelson -Date: Tue Aug 27 17:02:02 2013 -0700 - - Shotwell 0.15.0pr1 - -M Makefile - -commit b6226f253fdeb5ab0542445bce5234a8827c687d -Author: Jim Nelson -Date: Tue Aug 27 15:11:59 2013 -0700 - - Update extension of new "no-event" icon - -M Makefile - -commit 74b0c1ff8795f8e866661cd894dac52d4201de43 -Author: Wolfgang Steitz -Date: Tue Aug 27 14:47:49 2013 -0700 - - Add "modified media" saved search: Closes #4111 - - User can now add a "is media modified" criteria to a saved search. - -M src/db/SavedSearchDBTable.vala -M src/searches/SavedSearchDialog.vala -M src/searches/SearchBoolean.vala - -commit 5a38bb1e360d49c2bd2609541ea5e9795d050c9e -Author: Wolfgang Steitz -Date: Tue Aug 27 14:36:49 2013 -0700 - - Copy and paste color adjustments: Closes #2517 - - Color adjustments now have a "clipboard" that can be copied to and - pasted from. - -M src/CollectionPage.vala -M src/ColorTransformation.vala -M src/Commands.vala -M src/Page.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/editing_tools/EditingTools.vala -M ui/photo.ui - -commit 379a3ba9476227243502dd296c0ccc04169909df -Author: Joseph Bylund -Date: Tue Aug 27 12:40:26 2013 -0700 - - Use less memory when loading camera previews: Refs #2959 - - Reduces memory usage by loading images at scaled size when preview - is unavailable. - -M src/camera/GPhoto.vala - -commit 9923e04bac47e4438ed96d6a3931e3112cd6b75c -Author: Wolfgang Steitz -Date: Tue Aug 27 12:24:16 2013 -0700 - - Crop tool improvements: display crop dimensions: Refs #6358 - - Crop tool displays its unscaled dimensions in the center of the - recticle when moving or resizing it. - - This does not close the ticket, as a separate issue remains to - be implemented (cropping to specific pixel dimensions). - -M src/Resources.vala -M src/editing_tools/EditingTools.vala -M src/util/image.vala - -commit fbb5cb14ce207727237f4b786290e9930b5afdb4 -Author: Joseph Bylund -Date: Tue Aug 27 12:19:03 2013 -0700 - - Wrong date for Pentax K-5 AVI: Closes #7054 - - An improved date-parsing routine to help eliminate future issues - with oddball date formats in videos. - -M src/VideoMetadata.vala - -commit 3a424909653f77e1e337ac3e1aad803b49f04942 -Author: Joseph Bylund -Date: Tue Aug 27 12:15:00 2013 -0700 - - Reduce CPU usage when importing w/ Camera developer: Closes #6812 - -M src/ThumbnailCache.vala - -commit 9c2ce70f0cfec0ba5ce9d541d2193d0b1a2b9868 -Author: Joseph Bylund -Date: Tue Aug 27 12:08:39 2013 -0700 - - ./configure flag to disable desktop-ffile-validate check: Closes #6820 - -M Makefile -M configure - -commit 4f635ba4236dbbb8cb3f8b7bdd201432961fb283 -Author: Joseph Bylund -Date: Tue Aug 27 12:03:02 2013 -0700 - - Resolve symlinked argv[0] path when determining run loc: Closes #7181 - -M src/AppDirs.vala - -commit 9d673539a80eef8b6963462bc27830ef4d66a7de -Author: Wolfgang Steitz -Date: Tue Aug 27 12:00:17 2013 -0700 - - Remember location of editing tool windows: Closes #7264 - - Locations are only stored in memory, not persisted. Moving the - Shotwell window will reset the stored locations. - - Also, development of this patch uncovered some subtle bugs in - StraightenTool, which are now fixed. - -M src/PhotoPage.vala -M src/editing_tools/EditingTools.vala -M src/editing_tools/StraightenTool.vala - -commit 7ab032913dd45c9f0c8e0a9b218fb4e84e402bb8 -Author: Joseph Bylund -Date: Tue Aug 27 11:55:53 2013 -0700 - - Avoid assert() with random slideshow transitions: Closes #7323 - - If no slideshow plugins are enabled, default to null transition - rather than assert. - -M src/SlideshowPage.vala - -commit 39340ccee1afbfbb9af666bb85011221b9d08f45 -Author: Jim Nelson -Date: Tue Aug 6 11:28:47 2013 -0700 - - Require GTK+ 3.6 - - GtkSearchEntry (#6093) requires GTK+ 3.6. - -M Makefile -M debian/control - -commit 65144073907f0d5efed0eddb358ff7d74e9d2277 -Author: Jeremy Bicha -Date: Mon Aug 5 18:43:20 2013 -0700 - - Don't use X-Ayatana-Appmenu-Show-Stubs=false: Closes #7293 - -M THANKS -M misc/shotwell-viewer.desktop.head - -commit ed7136ae02886360646fa4e82c138e3b96764e50 -Author: Joseph Bylund -Date: Mon Aug 5 18:24:04 2013 -0700 - - Show previews when importing from memory card: Closes #2959 - - Uses fallback code to load metadata through alternate means (i.e. - GVFS) when unable to load through GPhoto itself. - -M src/camera/GPhoto.vala - -commit 788725876717086300c7a65f5cbd2c2e1909e6f4 -Author: Alexander Wilms -Date: Mon Aug 5 17:53:49 2013 -0700 - - Make "No Event" icon not look like an error: Closes #4824 - -M Makefile -A icons/no-event.png -M src/Resources.vala -M src/events/Branch.vala - -commit cff9aa035e50dce875744f449b95d487c732bd14 -Author: Jim Nelson -Date: Mon Aug 5 16:11:41 2013 -0700 - - Update Daily Build PPA to use Vala 0.21.1 - -M debian/control - -commit 83caf3e4b1ed52973ea7b0d5f5e30be26d14d810 -Author: Wolfgang Steitz -Date: Mon Aug 5 16:05:08 2013 -0700 - - Folder entries in sidebar updated when folder deleted or renamed: - Closes #6455 - -M src/folders/Branch.vala - -commit 38dbf12428780deefe2ff0da87699397575f25c7 -Author: Wolfgang Steitz -Date: Mon Aug 5 15:20:38 2013 -0700 - - Use GtkSearchEntry: Closes #6093 - -M src/SearchFilter.vala - -commit 9b1d9c50af912a85ae63200d1867da54f75938a7 -Author: Joseph Bylund -Date: Mon Aug 5 15:06:09 2013 -0700 - - Doesn't build with Vala 0.21.1, "close" conflict in GTK 3.10: Closes - #7295, Closes #7254 - - The number of deprecated classes and methods in GTK 3.10 is too - much work - simply to get Shotwell to compile, so that's been moved to #7301. - This - patch fixes some "hard" compile errors and disables warnings for - deprecated - symbols. - -M Makefile -M src/AppWindow.vala -M src/Dialogs.vala -M thumbnailer/shotwell-video-thumbnailer.vala - -commit 3aa3f6774d62cf1dc9a6d017edf839b13ebcb079 -Author: Eric Gregory -Date: Mon Jun 17 19:27:34 2013 -0700 - - Closes #7028 Revert back to Glib 2.30, bump Gtk version in debian - control file - -M Makefile -M debian/control - -commit 296d59f391040066669d3bbb7b5f6202cb542415 -Author: Simon Adda-Reyss -Date: Mon Jun 17 16:53:03 2013 -0700 - - Update Makefile dependencies: Closes #7028 - -M Makefile -M THANKS - -commit f14d791a6252dfbe7ab76e9f266457cd2a59be0d -Author: Joseph Bylund -Date: Mon Jun 17 16:31:25 2013 -0700 - - Closes #6948 Added .doap file - -A .doap - -commit 489d682e7774fa87ca102b270f310dca74f125f9 -Author: Jim Nelson -Date: Mon Jun 17 16:26:58 2013 -0700 - - Updated MAINTAINERS back to me - -M MAINTAINERS - -commit b7d034d861cafea584b80b8cb1f694009c8aa337 -Author: Joseph Bylund -Date: Mon Jun 17 16:07:10 2013 -0700 - - Support standard --prefix and --libdir configure arguments: Closes - #6931 - -M configure - -commit bd522756fd2a6488950f107d4e3c5d7749b0e87a -Author: Joseph Nuzman -Date: Mon Jun 17 15:58:17 2013 -0700 - - Using the "&" character in Picasa uploader causes upload to fail: - Closes #6141 - -M THANKS -M plugins/shotwell-publishing/PicasaPublishing.vala - -commit d928821f815b68f403f70dd6ad402d05b33b3f90 -Author: Joseph Bylund -Date: Mon Jun 17 15:34:26 2013 -0700 - - Closes #6994 Overwrite duplicate thumbnails - -M src/ThumbnailCache.vala - -commit 89aa167726d12f9ae0b53c01a2fdc54601fc3cc5 -Author: Jim Nelson -Date: Wed May 29 11:52:09 2013 -0700 - - Build with LibRaw 0.15: Closes #7012 - - LibRaw 0.15 removed document-mode processing, which, as their release - notes say, "no one uses". Compile error were nothing more than - missing symbols -- Shotwell wasn't using it either. - -M src/photos/GRaw.vala -M vapi/libraw.vapi - -commit 5eaa1886dc39b849794c45ed757269caa361da3b -Author: Joseph Bylund -Date: Thu May 16 14:19:32 2013 -0700 - - Improper French date format in sidebar: Closes #6939 - -M po/shotwell-core/fr.po - -commit 878cdf9cbb55852641d5d27f8717c8e419a459dd -Author: Lucas Beeler -Date: Fri May 10 15:03:09 2013 -0700 - - This should fix the daily build breakage. Let's hold off on closing - the corresponding ticket, however, 'til we can confirm that daily - builds work again. - -M plugins/plugins.mk - -commit ca82ea27379a09c037881f4e204583b56476ea18 -Author: Clint Rogers -Date: Fri May 10 12:16:48 2013 -0700 - - Make the event context menu and comment-editing dialog inform the - user they'll be editing the event's comment. Fixes #6898. - -M src/Dialogs.vala -M src/Resources.vala -M src/events/EventPage.vala -M ui/event.ui - -commit c3b44d90b648bbb84b8a280881e2f166a12dd38e -Author: Joseph Bylund -Date: Thu May 9 17:27:43 2013 -0700 - - Implements a highlights detail slider in the color adjustment palette - to complement the preexisting shadow detail slider. Closes #752. - -M src/ColorTransformation.vala -M src/editing_tools/EditingTools.vala - -commit 2896c4880a5c7ff473a27ce368e012271d382c7c -Author: Clint Rogers -Date: Thu May 9 15:19:54 2013 -0700 - - Delivery deftly dodges dreaded delegate duplication discouragement - disaster; ref #6893. - -M Makefile -M plugins/Makefile.plugin.mk -M plugins/common/RESTSupport.vala -M src/TimedQueue.vala -M src/events/Branch.vala -M src/photos/PhotoMetadata.vala -M src/plugins/Plugins.vala -M src/sidebar/Branch.vala -M src/slideshow/TransitionEffects.vala -M src/util/misc.vala - -commit 5d1da69947ea8b05c25e4fa184cf388dd2a41f6e -Author: Lucas Beeler -Date: Thu May 9 12:31:00 2013 -0700 - - Removes useless Glade UI files and lines of support code from the - Picasa and YouTube connectors that are no longer necessary now that - both connectors use the shared services of the GoogleService family - of utility classes in RESTSupport.vala. Closes #6924. - -M plugins/shotwell-publishing/Makefile -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -D plugins/shotwell-publishing/picasa_auth_code_entry_pane.glade -D plugins/shotwell-publishing/picasa_not_set_up_pane.glade - -commit 546727194fe75c945239aee998a78972f61cca03 -Author: Lucas Beeler -Date: Wed May 8 17:07:42 2013 -0700 - - Uses more specific language to describe the "strip metadata" option - across all four of the core web connectors. Closes #6922 and #6923. - -M plugins/shotwell-publishing/facebook_publishing_options_pane.glade -M plugins/shotwell-publishing/flickr_publishing_options_pane.glade -M plugins/shotwell-publishing/picasa_publishing_options_pane.glade -M plugins/shotwell-publishing/piwigo_publishing_options_pane.glade -M src/publishing/PublishingUI.vala - -commit 970ca7990ff60ae604566b9e667dd90cfc192696 -Author: Clint Rogers -Date: Wed May 8 17:06:18 2013 -0700 - - Removed stray 'new' keywords when initializing GLib.Mutex and - GLib.Cond (both are structs); ref #6893. - -M Makefile -M src/threads/Semaphore.vala - -commit 852385dd11773e7cb12d44052a85be96c7a2d75f -Author: Lucas Beeler -Date: Tue May 7 20:24:29 2013 -0700 - - Simplifies the Picasa Connector dramatically by rewriting to make - use of the GoogleService support classes developed for the YouTube - connector. Enables in-app hosted web authentication in the Picasa - Connector. Closes #6907. - -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M src/publishing/PublishingPluginHost.vala - -commit 179f623b5fa18a43b845f3dfcbfc51702dc1a93d -Author: Clint Rogers -Date: Tue May 7 11:12:06 2013 -0700 - - Migrate to new officially-blessed cosntructor for ThreadPool; - ref #6893. - -M src/threads/Workers.vala - -commit 1a43b9ea9d18ca0774b46d3ce772d1d5c26af5f7 -Author: Clint Rogers -Date: Mon May 6 18:24:53 2013 -0700 - - Adds support for editing the comment of an event from inside the - event's page and sidebar context menu. Fixes #6904. - -M src/events/EventPage.vala -M ui/event.ui - -commit ed8427b11a579b9ec2864c977ef16371f74ffa53 -Author: Lucas Beeler -Date: Mon May 6 16:46:48 2013 -0700 - - Fixes a problem in which the YouTube Connector would not properly - cancel uploads. Closes #6908. - -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit a5b035045b2ced79ffca7dbaf4974c19764c652c -Author: Lucas Beeler -Date: Mon May 6 15:56:20 2013 -0700 - - Factors hosted OAuth support out the YouTube connector and into a - series of service-neutral utility classes. Closes #6888 - -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit 7752ec49d8d9b99c75e29a5a4694aa320aaabb19 -Author: Clint Rogers -Date: Mon May 6 10:53:42 2013 -0700 - - Replaces a deprecated widget in CustomComponents; ref #6893. - -M src/CustomComponents.vala - -commit 39917cd0ad989e6a661011ca596bf1e11275fc34 -Author: Clint Rogers -Date: Thu May 2 13:52:27 2013 -0700 - - Replaces a deprecated constant with an allowed one; fixes #6891. - -M src/Dialogs.vala - -commit 26b756215331bedbcaf1929ab87c2e1e4a5135f3 -Author: Clint Rogers -Date: Thu May 2 11:16:32 2013 -0700 - - Removes a stray 'new' keyword; ref #6889. - -M src/util/image.vala - -commit 48f529a77af41e2b94373902b2b2dff8d559c602 -Author: Clint Rogers -Date: Thu May 2 11:50:10 2013 -0700 - - Corrects a problem where extended info wouldn't display for videos; - ref #6887. - -M src/Properties.vala - -commit 8ef6ec5a5b943303c01e2f6ae9efed47bc9e1ba9 -Author: Clint Rogers -Date: Wed May 1 17:54:07 2013 -0700 - - Tries to migrate the colour-adjust tool window to use a Grid instead - of a table; ref #5838. - -M src/editing_tools/EditingTools.vala - -commit b74643f639c35c6bcdb842e38d3eb4c338cd0705 -Author: Lucas Beeler -Date: Wed May 1 12:35:49 2013 -0700 - - Upgrades the YouTube connector to use OAuth 2 authentication, - including in-app authentication via a hosted Webkit pane. Closes - #3445. - -M misc/org.yorba.shotwell.gschema.xml -D plugins/common/ui.vala -M plugins/shotwell-publishing/Makefile -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit 12c8263463a637104604a92b96cdef2c72bb204c -Author: Clint Rogers -Date: Tue Apr 30 19:30:59 2013 -0700 - - Migrate the export dialogue box away from using Table and onto Grid - instead. Ref #5838. - -M src/Dialogs.vala - -commit b9cebbe957d89177537644ba1c3c091da3b57cbd -Author: Clint Rogers -Date: Tue Apr 30 11:59:38 2013 -0700 - - Adds a check to see whether the event is null before trying to - extract a comment from it; ref #6878. - -M src/publishing/APIGlue.vala - -commit cdeeef0a6eac22a4a32c3f3fc77ae17575b91d0a -Author: Clint Rogers -Date: Mon Apr 29 15:42:14 2013 -0700 - - Tries to merge smaller events onto larger ones whenever possible, - reducing the number of operations that have to be done to complete - the merge; part of ref #979 (see comment 24). - -M src/Commands.vala - -commit 6a056fa00b1f6757fbb4a218f9ef1036898872e6 -Author: Lucas Beeler -Date: Thu Apr 25 12:54:33 2013 -0700 - - Shotwell now builds again with the --unity-support flag; corrects an - issue where the .deps files accompanying the custom Shotwell .vapi - files were not included in the distribution tarball. Closes #6859. - -M .gitignore -M Makefile -A vapi/unity.deps -A vapi/unity.vapi - -commit 78cc28804835d52999638c9b91f09ec338de2605 -Author: Lucas Beeler -Date: Wed Apr 24 17:53:04 2013 -0700 - - Migrates Shotwell's entire codebase, including plugins, to - libgee-0.8. Tested with both of the (slightly different) versions of - libgee that ship with Quantal and Raring, respectively. Closes #867. - -M Makefile -M debian/control -M plugins/common/RESTSupport.vala -M plugins/shotwell-data-imports/Makefile -M plugins/shotwell-publishing-extras/Makefile -M plugins/shotwell-publishing-extras/TumblrPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/Makefile -M src/ColorTransformation.vala -M src/CustomComponents.vala -M src/DirectoryMonitor.vala -M src/Photo.vala -M src/SortedList.vala -M src/Tag.vala -M src/ThumbnailCache.vala -M src/TimedQueue.vala -M src/camera/CameraTable.vala -M src/core/Alteration.vala -M src/core/DataSource.vala -M src/core/DatabaseSourceCollection.vala -M src/core/ViewCollection.vala -M src/core/util.vala -M src/db/PhotoTable.vala -M src/db/VideoTable.vala -M src/direct/DirectPhoto.vala -M src/events/Branch.vala -M src/libshotwell.deps -M src/photos/PhotoMetadata.vala -M src/plugins/Plugins.vala -M src/plugins/mk/interfaces.mk -M src/sidebar/Branch.vala -M src/slideshow/TransitionEffects.vala -M src/util/KeyValueMap.vala -M src/util/file.vala -M src/util/misc.vala - -commit 9e4a4500fcdac37eaafb069b777f712233e99921 -Author: Guillaume Desmottes -Date: Fri Apr 19 12:08:59 2013 -0700 - - Fixes an issue in which the sidebar was not properly styled. Closes - #6839. - -M THANKS -M src/library/LibraryWindow.vala -M src/sidebar/Tree.vala - -commit 52b174e12bf0c0108f99a50e447014f8931c5dec -Author: Clint Rogers -Date: Wed Apr 17 17:12:37 2013 -0700 - - Works around a problem in glib where two on-disk directories could - have different filenames that collated to the same collation key; - fixes #6825. - -M src/folders/Branch.vala - -commit e03e0932d25edc31902ec836654c92d1f7626b95 -Author: Clint Rogers -Date: Tue Apr 16 19:16:52 2013 -0400 - - Precaches the exposure time of Photo objects in order to speed up - certain operations with them. Partial fix for ref #979. - -M src/Photo.vala - -commit 5a93dd9f990a862e9ec34c32f56354a4c4426632 -Author: Joseph Bylund -Date: Tue Apr 16 15:06:12 2013 -0700 - - Makes saved searches aware of photo comments. Closes #6541. - -M src/db/DatabaseTable.vala -M src/db/Db.vala -M src/searches/SavedSearchDialog.vala -M src/searches/SearchBoolean.vala - -commit be2cf0fe5bf101bac4dd1e8a3a3bcb29703f3c8a -Author: Joseph Bylund -Date: Mon Apr 15 17:01:06 2013 -0700 - - Displays the current git SHA in the Shotwell runtime log. Invaluable - for debugging with users that have built from git master. Closes - #3655. - -M Makefile -M src/Resources.vala -M src/main.vala - -commit 737b658995c82889e1d6b49be38d9b0f6141cab7 -Author: Joseph Bylund -Date: Mon Apr 15 16:08:07 2013 -0700 - - Adds a configure option that allows building the Shotwell executable - with profiling support. Closes #6805. - -M Makefile -M configure - -commit eefedd5a19bc7b9d5da9a283fd0933fe8bea683d -Author: Clint Rogers -Date: Mon Apr 15 19:00:36 2013 -0400 - - Forces '_modified's exported from camera raw images to have correct - orientation. Fixes #6536. - -M src/Photo.vala - -commit 29a06febdcecf35a23703cf4000ce86c9fc8bf9b -Author: Joseph Bylund -Date: Mon Apr 15 15:42:45 2013 -0700 - - Fixes an issue where duplicating a photo without an associated event - would generate a soft assertion. Closes #6810. - -M src/Photo.vala - -commit 129c710a292decb3a20b60f691d626efe2e67a50 -Author: Joseph Bylund -Date: Mon Apr 15 14:06:26 2013 -0700 - - Fixes an issue where the key photo for an event could appear - blurry in the event overview if the key photo had an extreme aspect - ratio. Closes #1202. - -M src/events/EventDirectoryItem.vala - -commit 5e07a5820e9f547d1d3e36ec74930af8f29899a5 -Author: Lucas Beeler -Date: Mon Apr 15 13:13:40 2013 -0700 - - Corrects an incorrect addition to the THANKS file. - -M THANKS - -commit 65574e34b90c5e5a19fcfc0d799b793ef7775691 -Author: Michel Alexandre Salim -Date: Fri Apr 12 16:45:43 2013 -0700 - - Fixes an issue where Shotwell failed to start when installed a - certain way on Fedora systems using the new Red Hat Unified Directory - Structure. Closes #5181. - -M THANKS -M src/util/system.vala - -commit 698131088d8c7ff2cfae4577e8104ca507e19b23 -Author: Joseph Bylund -Date: Fri Apr 12 16:27:12 2013 -0700 - - Uses new EXIF metadata fields, including mapping from ratings stars - to percents. Closes #5451. - -M src/Resources.vala -M src/photos/PhotoMetadata.vala - -commit d75db839f367039b3cc3e65ce08c0e024f2ee004 -Author: Joseph Bylund -Date: Fri Apr 12 15:02:56 2013 -0700 - - Changes saved search and search filter logic such that it ignores - diacritical marks (this is to say, the character 'é' is equivalent to - 'e'). Closes #6670. - -M src/Tag.vala -M src/core/SourceInterfaces.vala -M src/searches/SearchBoolean.vala -M src/util/string.vala - -commit 7239f72c6f9627cd24562b88b759991e07e4254e -Author: Joseph Bylund -Date: Fri Apr 12 12:59:51 2013 -0700 - - Fixes a grammatical error in the flagging photos progress dialog - box. Closes #6457. - -M src/Commands.vala - -commit 7792fc4fd3eac2e3e7004e75a4edc6c439547776 -Author: Clint Rogers -Date: Thu Apr 11 18:17:44 2013 -0400 - - Migrates the slideshow settings dialog away from table and into grid; - part of #5838. - -M src/SlideshowPage.vala -M ui/shotwell.glade - -commit f44957ac0ebd721c0201223bd960cac6ddede3a2 -Author: Clint Rogers -Date: Thu Apr 11 17:37:56 2013 -0400 - - Migrates the extended info window away from a table and into a grid - as required by #5838. - -M src/Properties.vala - -commit b43b823238513e20c3f9960c9362cfb68f61f44d -Author: Clint Rogers -Date: Tue Apr 9 14:06:14 2013 -0400 - - Corrects a problem where creating a new event from items highlighted - in the library page wouldn't cause the app to navigate to the - new event. Fixes #6728. - -M src/Commands.vala - -commit 561fce90575d6652e88c4dfa30a2b9b69f94187a -Author: Joseph Bylund -Date: Fri Apr 5 15:32:39 2013 -0700 - - Increases performance of the folder tree view. Closes #6715. - -M src/folders/Page.vala - -commit 822e9f4a9425e73d4a5f2e428342b07475da78cf -Author: Lucas Beeler -Date: Wed Apr 3 17:12:32 2013 -0700 - - Updates version number to 0.14.1+trunk. - -M Makefile - -commit 874a013e8e40ead8f757946f0c5b60c87767bace -Author: Lucas Beeler -Date: Wed Apr 3 12:13:15 2013 -0700 - - Updates NEWS and debian/changelog files in preparation for Shotwell - 0.14.1 release. - -M NEWS -M debian/changelog - -commit 4e9ebbb5e9562a3977061225924b063568815e31 -Author: Clint Rogers -Date: Tue Apr 2 18:47:45 2013 -0700 - - Corrects a problem where pressing [Shift] while viewing an image - whose original orientation was anything other than top-left would - cause the image to 'snap' to top-left inappropriately; fixes #6734. - -M src/PhotoPage.vala - -commit a6d1c9358ce9f9e3043e3c743e2c1868a4ad50b4 -Author: Lucas Beeler -Date: Mon Apr 1 16:26:42 2013 -0700 - - The new Graph API-based Facebook Connector correctly sets the privacy - level on video uploads. Closes #6694. - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit a16f6a3f0d92b24f79c9e8698ff4e00eb710e1b8 -Author: Lucas Beeler -Date: Mon Apr 1 12:12:07 2013 -0700 - - Fixes a translation issue in the Greek translation introduced by - my most recent round of translation pulls from Transifex. Special - thanks to Joe Bylund for spotting this as I clearly overlooked it - when integrating the latest round of translations. Closes #6713. - -M po/shotwell-core/el.po -M po/shotwell-extras/el.po - -commit 0977d0982bbd0364ee79ca7ebdc6e08dd1e89b90 -Author: Lucas Beeler -Date: Fri Mar 29 18:51:06 2013 -0700 - - Updates translations in anticipation of the Shotwell 0.14.1 release. - -M Makefile -M po/shotwell-core/ar.po -A po/shotwell-core/as.po -M po/shotwell-core/ca.po -M po/shotwell-core/cs.po -M po/shotwell-core/da.po -M po/shotwell-core/el.po -M po/shotwell-core/et.po -M po/shotwell-core/gl.po -C050 po/shotwell-core/cs.po po/shotwell-core/gu.po -M po/shotwell-core/hi.po -M po/shotwell-core/hr.po -M po/shotwell-core/it.po -M po/shotwell-core/ja.po -M po/shotwell-core/kk.po -A po/shotwell-core/kn.po -M po/shotwell-core/ko.po -M po/shotwell-core/lv.po -A po/shotwell-core/ml.po -A po/shotwell-core/mr.po -M po/shotwell-core/pa.po -M po/shotwell-core/ro.po -M po/shotwell-core/ru.po -M po/shotwell-core/sk.po -M po/shotwell-core/sl.po -M po/shotwell-core/sv.po -M po/shotwell-core/ta.po -D po/shotwell-core/ta_IN.po -M po/shotwell-core/te.po -D po/shotwell-core/te_IN.po -M po/shotwell-extras/ar.po -C050 po/shotwell-extras/he.po po/shotwell-extras/as.po -M po/shotwell-extras/ast.po -M po/shotwell-extras/bn.po -M po/shotwell-extras/cs.po -M po/shotwell-extras/el.po -M po/shotwell-extras/et.po -M po/shotwell-extras/he.po -C051 po/shotwell-extras/he.po po/shotwell-extras/hi.po -M po/shotwell-extras/hu.po -M po/shotwell-extras/id.po -M po/shotwell-extras/kk.po -A po/shotwell-extras/kn.po -M po/shotwell-extras/ko.po -M po/shotwell-extras/lv.po -A po/shotwell-extras/ml.po -A po/shotwell-extras/mr.po -M po/shotwell-extras/nl.po -M po/shotwell-extras/pt.po -M po/shotwell-extras/ru.po -M po/shotwell-extras/sk.po -M po/shotwell-extras/sv.po -M po/shotwell-extras/ta.po -M po/shotwell-extras/te.po - -commit 6a4cec34fec547e5f2322bfa7bae748830ada22c -Author: Clint Rogers -Date: Fri Mar 29 11:03:37 2013 -0700 - - Fixes a missing mnemonic in direct-edit mode; fixes #6696 - -M src/direct/DirectPhotoPage.vala - -commit b5f118db1b4b809d08f2863f602e9535a39ed4a7 -Author: Lucas Beeler -Date: Thu Mar 28 14:51:25 2013 -0700 - - Updates the Facebook Connector to robustly recover from type 7 and - type 8 errors. Closes #6586. - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit 514f56c074366d072ad2d42e696ba2d04f034306 -Author: Clint Rogers -Date: Thu Mar 28 14:42:10 2013 -0700 - - Corrects a problem with 013588718406e2749f7f3b6910a1dce3770113f7 - where the Makefile would try to validate the .desktop file before - checking whether the desktop validator was actually installed. - -M Makefile - -commit 5fdd00800ac7e2daf671e5406cd7ddc9f1e44448 -Author: Clint Rogers -Date: Thu Mar 28 14:37:11 2013 -0700 - - Prevent the app from jumping from the library page to an event if - an image is dragged there; fixes #4014. - -M src/Commands.vala -M src/events/EventPage.vala - -commit 013588718406e2749f7f3b6910a1dce3770113f7 -Author: Clint Rogers -Date: Wed Mar 27 18:12:47 2013 -0700 - - Corrects an issue where the makefile blithely assumed that all - computers would already have desktop-file-utils installed; ref #6691. - -M Makefile -M debian/control - -commit fe3d38de732a17ecdc4c39e7f0813246f36bdafb -Author: Lucas Beeler -Date: Wed Mar 27 10:13:58 2013 -0700 - - Fixes a capitalization and punctuation error in the German translation - file. Closes #6690. - -M po/shotwell-core/de.po - -commit 002855c80824945f1d8178d5144bebac2ed13a59 -Author: Clint Rogers -Date: Tue Mar 26 19:30:59 2013 -0700 - - Runs 'desktop-file-validate' on the generated .desktop files and - dies early during build time if there's a problem; fixes #6570. - - (Also corrects a problem with misc/shotwell-viewer.desktop.head) - -M Makefile -M misc/shotwell-viewer.desktop.head - -commit a7acd9fa0e53e0f4dacd638c5b22d1325ae356f4 -Author: Clint Rogers -Date: Tue Mar 26 17:37:15 2013 -0700 - - Revert "Causes the application to fall back to the current pixbuf - size in Extended Properties->Original Dimensions if the image's - dimensions couldn't be read from the metadata; ref #6585." (should - not have been pushed) - - This reverts commit 547e2251fe0cff819b729fb79415f165d8ed9941. - -M src/Properties.vala - -commit 547e2251fe0cff819b729fb79415f165d8ed9941 -Author: Clint Rogers -Date: Fri Mar 15 21:06:11 2013 -0400 - - Causes the application to fall back to the current pixbuf size in - Extended Properties->Original Dimensions if the image's dimensions - couldn't be read from the metadata; ref #6585. - -M src/Properties.vala - -commit cf037572efb06c37ec7caff321948f5cd1c0ee8a -Author: Clint Rogers -Date: Tue Mar 26 14:11:36 2013 -0700 - - Preserve the orientation field for .JPGs when exporting them with - stripped metadata; ref #6684. - -M src/Photo.vala - -commit 10330f047c7a662f1eba4acf4270abc5faec0a17 -Author: Clint Rogers -Date: Mon Mar 25 14:10:09 2013 -0400 - - Changes the way displaying the unmodified version of a photo is - handled to use the precache and avoid a crash in direct mode; - ref #6236. - -M src/PhotoPage.vala - -commit a8ee3df9d77ae17fc00ef67a0c1e1eab35ac80e6 -Author: Joseph Bylund -Date: Fri Mar 22 15:25:12 2013 -0700 - - Ensures that the icon associated with the startup progress dialog - is the Shotwell application icon; closes #6641. - -M src/main.vala - -commit a4c4c5d5daf004863bf91bb05471145e64fd509c -Author: Chris Cummins -Date: Fri Mar 22 15:18:17 2013 -0700 - - Removes all hard dependencies on X11 libraries, making Shotwell - display-server agnostic and able to run under Weston/Weyland. Closes - #6606. - -M Makefile -M THANKS -M src/PhotoPage.vala -M src/libshotwell.deps -M src/util/ui.vala - -commit 0bf992ab8cca8ddcf658e3ddb4a2b1eca4a3d8c9 -Author: Joseph Bylund -Date: Fri Mar 22 13:04:55 2013 -0700 - - Adds corrupt image errors to the family of errors detected by the - import logging system. Closes #6445. - -M src/BatchImport.vala -M src/Dialogs.vala - -commit b3f39618041d7ee9204b6d429df5e461a7130b7d -Author: Clint Rogers -Date: Wed Mar 20 19:05:00 2013 -0700 - - Makes 'configure' smarter about handling the case where no compatible - libGPhoto2 installation is found; fixes #6579. - -M configure - -commit 13ee3140debc70479616e48d46c4f3380896df30 -Author: Clint Rogers -Date: Wed Mar 20 18:46:41 2013 -0700 - - For raw files, don't use the embedded preview on the photo page if - it's less than 1024 px along its major axis; closes #6594. - -M src/Photo.vala - -commit 66fd29cf94dce950f3ad3ab6b8dc48b1e59af354 -Author: Lucas Beeler -Date: Wed Mar 20 17:04:55 2013 -0700 - - Fixes strftime strings that generated bogus dates in the Catalan - translation. Closes #3943. - -M po/shotwell-core/ca.po - -commit 014d88ce2bad3422bfc47ea5ce14d9ac7d125d26 -Author: Clint Rogers -Date: Wed Mar 20 17:03:28 2013 -0700 - - Forces the search filter to propagate to checkerboard pages when - they're switched to, more closely matching what the user intuitively - expects. Fixes #4300. - -M src/library/LibraryWindow.vala - -commit f10fbd3ab2f7860eede999922336a85aab7a07bc -Author: Lucas Beeler -Date: Mon Mar 18 15:12:19 2013 -0700 - - Increments version number to 0.14.0+trunk. - -M Makefile - -commit 9d2ddc50176229d3a9c5b7777727d9f4ae90692e -Author: Lucas Beeler -Date: Mon Mar 18 15:01:58 2013 -0700 - - This is the 0.14.0 release image. - -M Makefile -M NEWS -M debian/changelog -M debian/control - -commit 2d56e7bd4ca9b07982c6b874005b2fe2298939e2 -Author: Lucas Beeler -Date: Mon Mar 18 10:19:51 2013 -0700 - - Updates French translation in preparation for the 0.14.0 release. - -M po/shotwell-core/fr.po - -commit 121b952b1daf09683a954a6140a7c710cdc67235 -Author: Lucas Beeler -Date: Fri Mar 15 17:27:42 2013 -0700 - - Modifies the video reader to ignore auxilliary video container files - that come as part of AVCHD bundles. Closes #4943. - -M src/VideoSupport.vala - -commit f9b308dc57fcc524dd2ad445266a95ab4606c082 -Author: Joseph Bylund -Date: Fri Mar 15 12:04:15 2013 -0700 - - Adds missing command line options to the manpage. Closes #3998. - -M debian/shotwell.1 - -commit 0b2893676844868326c72490c7e720ea37057dd1 -Author: Damien Lallement -Date: Fri Mar 15 12:00:45 2013 -0700 - - Fixes a bug in the Portuguese translation that affected generation - of the .desktop file. - -M po/shotwell-core/pt.po - -commit 5d3b2f5b7579350c48ac22a4b8ce9801f5707012 -Author: Lucas Beeler -Date: Thu Mar 14 19:12:43 2013 -0700 - - Changes the semantics of "unsetting" a configuration key in the - GSettings configuration engine to mean "reset the GSettings key to - its default value." In the past, unsetting was a no-op. Closes #6578. - -M src/config/GSettingsEngine.vala - -commit 251316cf280b7c2308b715259689fac2b211e97e -Author: Lucas Beeler -Date: Thu Mar 14 17:59:09 2013 -0700 - - Changes error handling sequence in response to token refresh failures - in Picasa connector to ensure users whose client IDs were changed - by the previous commit are properly logged out. - -M plugins/shotwell-publishing/PicasaPublishing.vala - -commit 0ba580be155eff68ac33b3cf7cb6d25ad71cf385 -Author: Lucas Beeler -Date: Thu Mar 14 17:13:11 2013 -0700 - - Changes Picasa client ID and client secret in attempt to interoperate - better with UOA. - -M plugins/shotwell-publishing/PicasaPublishing.vala - -commit 4f36f049c1cbe1fdeeb8671cbd71f61b2c427dfa -Author: Lucas Beeler -Date: Thu Mar 14 14:48:29 2013 -0700 - - Fixes a serious issue in which the endpoint test HTTP transaction - run against the Facebook login server would fast-fail, preventing - new users from logging into Facebook. Closes #6546. - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit e70bc296ff14fab5ed31ba8019f15cdbae64f7fe -Author: Lucas Beeler -Date: Wed Mar 13 20:02:55 2013 +0100 - - Fixes numerous translation glitches and re-versions translation - files to 0.14.0 in anticipation of the upcoming Shotwell 0.14 - release. Closes #6431, #6424, and #6127. - -M po/shotwell-core/af.po -M po/shotwell-core/ar.po -M po/shotwell-core/ast.po -M po/shotwell-core/bg.po -M po/shotwell-core/bn.po -M po/shotwell-core/ca.po -M po/shotwell-core/cs.po -M po/shotwell-core/da.po -M po/shotwell-core/de.po -M po/shotwell-core/el.po -M po/shotwell-core/en_GB.po -M po/shotwell-core/es.po -M po/shotwell-core/et.po -M po/shotwell-core/eu.po -M po/shotwell-core/fi.po -M po/shotwell-core/fr.po -M po/shotwell-core/gl.po -M po/shotwell-core/he.po -M po/shotwell-core/hi.po -M po/shotwell-core/hr.po -M po/shotwell-core/hu.po -M po/shotwell-core/ia.po -M po/shotwell-core/id.po -M po/shotwell-core/it.po -M po/shotwell-core/ja.po -M po/shotwell-core/kk.po -M po/shotwell-core/km.po -M po/shotwell-core/ko.po -M po/shotwell-core/lt.po -M po/shotwell-core/lv.po -M po/shotwell-core/mk.po -M po/shotwell-core/nb.po -M po/shotwell-core/nl.po -M po/shotwell-core/or.po -M po/shotwell-core/pa.po -M po/shotwell-core/pl.po -M po/shotwell-core/pt.po -M po/shotwell-core/pt_BR.po -M po/shotwell-core/ro.po -M po/shotwell-core/ru.po -M po/shotwell-core/sk.po -M po/shotwell-core/sl.po -M po/shotwell-core/sr.po -M po/shotwell-core/sv.po -M po/shotwell-core/ta.po -M po/shotwell-core/ta_IN.po -M po/shotwell-core/te.po -M po/shotwell-core/te_IN.po -M po/shotwell-core/th.po -M po/shotwell-core/tr.po -M po/shotwell-core/uk.po -M po/shotwell-core/vi.po -M po/shotwell-core/zh_CN.po -M po/shotwell-core/zh_TW.po -M po/shotwell-extras/ar.po -M po/shotwell-extras/ast.po -M po/shotwell-extras/bg.po -M po/shotwell-extras/bn.po -M po/shotwell-extras/ca.po -M po/shotwell-extras/cs.po -M po/shotwell-extras/da.po -M po/shotwell-extras/de.po -M po/shotwell-extras/el.po -M po/shotwell-extras/en_GB.po -M po/shotwell-extras/eo.po -M po/shotwell-extras/es.po -M po/shotwell-extras/et.po -M po/shotwell-extras/eu.po -M po/shotwell-extras/fi.po -M po/shotwell-extras/fr.po -M po/shotwell-extras/gl.po -M po/shotwell-extras/he.po -M po/shotwell-extras/hr.po -M po/shotwell-extras/hu.po -M po/shotwell-extras/id.po -M po/shotwell-extras/it.po -M po/shotwell-extras/ja.po -M po/shotwell-extras/kk.po -M po/shotwell-extras/ko.po -M po/shotwell-extras/lt.po -M po/shotwell-extras/lv.po -M po/shotwell-extras/mk.po -M po/shotwell-extras/nb.po -M po/shotwell-extras/nl.po -M po/shotwell-extras/or.po -M po/shotwell-extras/pa.po -M po/shotwell-extras/pl.po -M po/shotwell-extras/pt.po -M po/shotwell-extras/pt_BR.po -M po/shotwell-extras/ro.po -M po/shotwell-extras/ru.po -M po/shotwell-extras/sk.po -M po/shotwell-extras/sl.po -M po/shotwell-extras/sr.po -M po/shotwell-extras/sv.po -M po/shotwell-extras/ta.po -M po/shotwell-extras/te.po -M po/shotwell-extras/th.po -M po/shotwell-extras/tr.po -M po/shotwell-extras/uk.po -M po/shotwell-extras/zh_CN.po -M po/shotwell-extras/zh_TW.po - -commit 9cab3bc3601c9db55096e9918792d6f885dd1f70 -Author: Lucas Beeler -Date: Tue Mar 12 17:01:26 2013 -0700 - - Increases the time Shotwell allows the shotwell-video-thumbnailer - helper process to run before killing it. Mitigates some GStreamer - 1.0 issues. Closes #6519. - -M src/VideoSupport.vala - -commit 77453a84f41cfb827e20e1aa09b79d75420c1d01 -Author: clinton -Date: Mon Mar 11 15:57:26 2013 -0700 - - Corrects a problem where the extended properties box could show stale - information after a raw was highlighted, then de-selected. Fixes - #6500. - -M src/Properties.vala - -commit 32ff79ee74a8a2369ce4319adb64fd36580d114d -Author: Lucas Beeler -Date: Fri Mar 8 14:47:45 2013 -0800 - - The video thumbnailer now seeks to a fixed value of 1 second into the - video's duration in all cases. Previously, it seeked to a timecode - that was determined dynamically by taking a percentage of the total - video length. - -M thumbnailer/shotwell-video-thumbnailer.vala - -commit d532d2f09486c0dd44b74f1e3129eae8a4dd8f6b -Author: Clint Rogers -Date: Fri Mar 8 11:45:32 2013 -0800 - - Corrects a problem where .BMPs couldn't be rotated correctly if - metadata-writing were turned on; fixes #3845. - -M src/photos/BmpSupport.vala - -commit e3b949b69af07e762bdb4c2c9c31bd2bfb26af7f -Author: Clint Rogers -Date: Thu Mar 7 16:58:00 2013 -0800 - - Consumes 'F2' keypresses when nothing is selected in an event to - prevent the sidebar from acting on them; fixes #4436. - -M src/events/EventPage.vala - -commit 60bce610f62c8a9216ce17d5aa7ca47fe92d1c29 -Author: Clint Rogers -Date: Thu Mar 7 16:55:55 2013 -0800 - - Relaxes an assertion that could fail while removing media sources from - a view tracker (and logs the condition that causes the assertion); - fixes #6481. - -M src/MediaViewTracker.vala - -commit edd5b0e96a23408264e787eb7e679b81b4b4521a -Author: Clint Rogers -Date: Thu Mar 7 16:48:53 2013 -0800 - - Removes an unneeded dependency; fixes #6173. - -M Makefile -M debian/control - -commit 2ac161617906bf453fd61d1d590903afa3f3646f -Author: Jim Nelson -Date: Wed Mar 6 12:28:32 2013 -0800 - - Update debian/changelog for Daily Build PPA - -M debian/changelog - -commit 18585950ca73cb21ee246cc608d3a193c4bbb085 -Author: Lucas Beeler -Date: Tue Mar 5 17:59:47 2013 -0800 - - Replaces an assertion with a short-circuit return and a debug - message. Closes #5155. - -M src/DirectoryMonitor.vala - -commit 274ccc57e40da0b923a8e5a8256e9560e8a6b803 -Author: Clint Rogers -Date: Tue Mar 5 17:56:08 2013 -0800 - - Prevents the background-task progress bar from appearing if there - are too few tasks pending to justify it; fixes #2512. - -M src/library/LibraryWindow.vala - -commit 7428233fef4bfdcf288c1849121eab8350ec795a -Author: Clint Rogers -Date: Tue Mar 5 17:21:36 2013 -0800 - - Relaxes an assertion that could occasionally fail in the - SourceHoldingTank, as well as adds some logging for the problem to - help us address it in the future; ref #3981. - -M src/core/SourceHoldingTank.vala - -commit e4464bfc6b11ea92bc4981467e95ac87247e7eee -Author: Lucas Beeler -Date: Tue Mar 5 13:06:36 2013 -0800 - - Updates version number to 0.14.0pr1+trunk. - -M Makefile - -commit 801f7d40e03692de539c6ad443782fd9afb1546f -Author: Lucas Beeler -Date: Mon Mar 4 18:56:41 2013 -0800 - - Updates version number in Makefile and translation files for the - Shotwell 0.14.0PR1 pre-release. - -M Makefile -M po/shotwell-core/cs.po -M po/shotwell-core/de.po -M po/shotwell-core/en_GB.po -M po/shotwell-core/es.po -M po/shotwell-core/fr.po -M po/shotwell-core/nb.po -M po/shotwell-core/nl.po -M po/shotwell-core/pl.po -M po/shotwell-core/pt.po -M po/shotwell-core/sr.po -M po/shotwell-core/uk.po -M po/shotwell-core/zh_CN.po -M po/shotwell-extras/nb.po -M po/shotwell-extras/zh_CN.po - -commit 7e042cf668e32a7750d9b3730f7a562c2b13a25f -Author: Clint Rogers -Date: Mon Mar 4 18:20:43 2013 -0800 - - Works around a problem where a TreeSet could leak references when - going out of scope (this led to a leak and crash in Geary); fixes - #6478. - -M plugins/common/RESTSupport.vala -M src/Commands.vala -M src/Dialogs.vala -M src/MediaDataRepresentation.vala -M src/Tag.vala -M src/photos/PhotoMetadata.vala -M src/plugins/Plugins.vala -M src/sidebar/Branch.vala -M src/slideshow/TransitionEffects.vala -M src/tags/Branch.vala -M src/tags/HierarchicalTagIndex.vala -M src/util/misc.vala - -commit 5dd2d302755626896d32466c25a93c83bad37fbc -Author: Joseph Bylund -Date: Mon Mar 4 15:56:03 2013 -0800 - - Allows compilation with both valac 0.18.x and 0.19.x. Closes #6406. - -M src/Page.vala - -commit 723a2a01b044fb1e4054130b191aba0a5b4fdb79 -Author: Joseph Bylund -Date: Mon Mar 4 15:35:18 2013 -0800 - - Fixes an issue where charset annotations could migrate their way - into the content text of photo comments. Closes #6359. - -M src/photos/PhotoMetadata.vala - -commit 630a57bea7241313d9f355b096d6475559f027d0 -Author: Clint Rogers -Date: Thu Feb 28 17:14:58 2013 -0800 - - Patch adds a progress bar dialogue if more than 1000 media sources - are being flagged or unflagged at once. Fixes #2937. - -M src/Commands.vala - -commit c147a5751bea712ad942bbbb4373edd0885ed945 -Author: Clint Rogers -Date: Wed Feb 27 17:46:30 2013 -0800 - - Proposed patch would make it possible to change the raw developer - from the context menus; fixes #4058. - -M ui/collection.ui -M ui/photo_context.ui - -commit dc3066ab44833a380175c93669821318fb243fa4 -Author: Clint Rogers -Date: Wed Feb 27 13:11:48 2013 -0800 - - Causes the 'undated' entry to remain at the next-to-last part of - the list, right before 'no event'. Ref #1632. - -M src/events/Branch.vala - -commit b2e8f8b022e2e5261ced48369592b8abab7ff53f -Author: Lucas Beeler -Date: Wed Feb 27 13:42:09 2013 -0800 - - Fixes an issue in which Shotwell was unable to produce thumbnails for - -- and thus import -- photos generated by a recent-model Blackberry - camera. Closes #6053. - -M src/ThumbnailCache.vala - -commit ee05eb4eba6f17a669ba5fd7a3fc77569d9acbbb -Author: Lucas Beeler -Date: Tue Feb 26 19:25:40 2013 -0800 - - Makes the search/filter bar's visibility state a persistent property, - so Shotwell now remembers whether the search/filter toolbar is - visible between runs. Closes #6416. - -M misc/org.yorba.shotwell.gschema.xml -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala -M src/library/LibraryWindow.vala - -commit c1d632876bddae33178419f3e6cba563c3cb9812 -Author: Clint Rogers -Date: Tue Feb 26 19:25:28 2013 -0800 - - Corrects a problem where the 'Shotwell' development could be - inappropriately rotated twice for portrait camera-raw images; - fixes #4262. - -M src/Photo.vala - -commit 26bd2b051612648a0b2b60f2e975ba38af3a8f64 -Author: Clint Rogers -Date: Tue Feb 26 18:29:54 2013 -0800 - - Corrects an issue where the master's orientation could be - inappropriately written to after an external edit; fixes #6430 - -M src/MetadataWriter.vala - -commit caf40ebdeb32612b48ba230934bc4a7ba4f2aef5 -Author: Lucas Beeler -Date: Tue Feb 26 16:22:49 2013 -0800 - - Ensures that rejected photos are not visible at startup. Closes #4300. - -M src/SearchFilter.vala -M src/library/LibraryWindow.vala - -commit 2c2bdfd9da6861d27e6c9952652d71698a83013e -Author: Clint Rogers -Date: Tue Feb 26 11:17:29 2013 -0800 - - Instead of rotating the pixels and dimensions on export, if we're - being asked to write a JPEG, we write the pixels normally and let - the orientation field do the rotation for us, fixes #1938. - - NOTE: this does _not_ fix the case where reverting after an external - editor has set the _modified.jpg to top-left; this was broken out - into its own bug. - -M src/Photo.vala - -commit 3516fe74d8700765b2c064b3b03f965c5f3988a5 -Author: Lucas Beeler -Date: Mon Feb 25 19:22:51 2013 -0800 - - Updates POT files in the wake of the Shotwell 0.14 string freeze to - prepare for the upcoming release. - -M po/shotwell-core/shotwell.pot -M po/shotwell-extras/shotwell-extras.pot - -commit d156042160060f4513a7bcb7da0777ac47316fca -Author: Norbert Preining -Date: Mon Feb 25 14:09:55 2013 -0800 - - Allows uploading of event comments to Piwigo. Closes #6381. - -M plugins/shotwell-publishing/PiwigoPublishing.vala -M plugins/shotwell-publishing/piwigo_publishing_options_pane.glade -M src/plugins/PublishingInterfaces.vala -M src/publishing/APIGlue.vala - -commit 886689c4bdac889bca149ac46580eb2526a504de -Author: Jens B -Date: Fri Feb 22 13:39:23 2013 -0800 - - Adds three additional slideshow transition effects. Closes #6411. - -M misc/org.yorba.shotwell.gschema.xml -A plugins/shotwell-transitions/ChessEffect.vala -M plugins/shotwell-transitions/Makefile -A plugins/shotwell-transitions/SquaresEffect.vala -A plugins/shotwell-transitions/StripesEffect.vala -M plugins/shotwell-transitions/shotwell-transitions.vala -M src/slideshow/Slideshow.vala - -commit c10d3d8465b8ceae54928f17ea07eaf626e7676f -Author: Clint Rogers -Date: Thu Feb 21 19:25:07 2013 -0800 - - Makes permissions problems leading to write failures show up under - manifest.write_failed; closes #5786. - -M src/BatchImport.vala - -commit c64ac7f11abfeb3f47eec0db0a50a12c0be98b31 -Author: Clint Rogers -Date: Thu Feb 21 18:15:22 2013 -0800 - - Proposed patch would add the path to the currently-displayed - development for a raw file to the extended information window; - closes #6408. - -M src/Properties.vala - -commit f6065c18d236e2b9ed9973269195bc04058227bd -Author: Lucas Beeler -Date: Thu Feb 21 17:47:30 2013 -0800 - - Adds special-case, date and time correction logic that works around - a date encoding problem present in some HTC Android phones. Closes - #3314. - -M src/VideoMetadata.vala - -commit 725d941b91f23490cd7ad61cd639b4131ce34597 -Author: Clint Rogers -Date: Thu Feb 21 16:45:52 2013 -0800 - - Proposed patch would show the filesize of the master raw, rather - than the development, in extended info; closes #6407. - -M src/Properties.vala - -commit c55c84397715fa54c94df0efb2591fe0a3e1edd9 -Author: Clint Rogers -Date: Thu Feb 21 15:30:48 2013 -0800 - - Prevents multiple spurious copies of the same image from being - generated when the developer is changed; closes #5681. - -M src/Photo.vala -M src/Properties.vala - -commit d76751a3963646840afc4a42eb6ce5a754b6a568 -Author: Jens B -Date: Thu Feb 21 14:31:41 2013 -0800 - - Uses sort-by-title as a fallback when the configuration system - (GSettings or GConf) gives an invalid sort criteria value. This is - a major improvement over the previous behavior where Shotwell would - error out and crash. Closes #6253. - -M src/MediaPage.vala - -commit 87fe246aef7aa0325e42cbcbf94c9383abe9e244 -Author: Jens B -Date: Thu Feb 21 14:17:18 2013 -0800 - - Adds a random slideshow transition. Closes #6275. - -M src/SlideshowPage.vala -M src/slideshow/TransitionEffects.vala - -commit a65dacd2c9afb8d89f19e505075e135eb0b69805 -Author: Clint Rogers -Date: Tue Feb 19 18:06:56 2013 -0800 - - Modified the text on the straighten tool's affirmative button, - fixes #4822. - -M src/editing_tools/StraightenTool.vala - -commit c22865f4d629845c64def21e589f5ece3dfe5b85 -Author: Clint Rogers -Date: Tue Feb 19 18:04:28 2013 -0800 - - Proposed patch would put these in the right place the next time the - .pot generator is run; closes #5973. - -M src/main.vala - -commit 8772949de961b0eef371b94836b7bcb8a8f65f38 -Author: Lucas Beeler -Date: Tue Feb 19 16:40:37 2013 -0800 - - Allows the user to save a detailed log of any import complications - (duplicates, file errors, etc.). Closes #2593 and #3126. - -M src/BatchImport.vala -M src/Dialogs.vala -M src/Photo.vala -M src/VideoSupport.vala -M src/camera/ImportPage.vala - -commit bdd33e68928fda6aab23540a1c7c07d0e925c9b1 -Author: Clint Rogers -Date: Fri Feb 15 18:31:47 2013 -0800 - - Corrected a typo that broke compilation. - -M src/db/PhotoTable.vala - -commit dc735dde7a6faec422867771ebefc46874dea9ca -Author: Clint Rogers -Date: Fri Feb 15 18:28:42 2013 -0800 - - Corrects a problem where the developer in the photo row could be - re-set inappropriately after deleting a stale development .jpeg; - closes #6390. - -M src/db/PhotoTable.vala - -commit 06a7b16e48aa5a7cf7284bf450e1aac3121b0201 -Author: Clint Rogers -Date: Thu Feb 14 14:31:08 2013 -0800 - - Checks whether we're running on an RTL locale or not, and if so, flips - the arrow glyph before adding it to the affected string; fixes #5900. - -M src/Dialogs.vala - -commit 2cf442548474376ed518ed72215ed50ae2ed56d9 -Author: Clint Rogers -Date: Thu Feb 14 14:12:11 2013 -0800 - - Fixes some broken pango markup in ja.po; ref #6385. - -M po/shotwell-core/ja.po - -commit d786232dc3ad78881339206238ee5b08e6db58fe -Author: Clint Rogers -Date: Thu Feb 14 12:51:29 2013 -0800 - - Makes RawDeveloper.CAMERA the default; closes #4702. - -M misc/org.yorba.shotwell.gschema.xml -M src/Dialogs.vala -M src/config/ConfigurationInterfaces.vala -M src/db/PhotoTable.vala - -commit 0c9b9a38bbd884085b20ecf70526e5b1829beb98 -Author: Norbert Preining -Date: Wed Feb 13 14:13:41 2013 -0800 - - Adds support for uploading photo comments to the Piwigo Connector. - -M misc/org.yorba.shotwell.gschema.xml -M plugins/shotwell-publishing/PiwigoPublishing.vala -M plugins/shotwell-publishing/piwigo_publishing_options_pane.glade -M src/plugins/PublishingInterfaces.vala -M src/publishing/APIGlue.vala - -commit c7e666372a846ce650b36e1cfb4586c1009e1a2b -Author: Joseph Bylund -Date: Wed Feb 13 12:33:39 2013 -0800 - - Displays seconds in photo exposure date/time in the extended - information pane. Closes #5709. - -M src/Properties.vala -M src/Resources.vala - -commit aae8ca3bcbbcb2f79b5f8330697fafcc6566281e -Author: Joseph Bylund -Date: Wed Feb 13 12:04:29 2013 -0800 - - Fixes a UI nit in which the "Edit Title" and "Edit Tags" dialogs - failed to conform to the GNOME HIG. Closes #6262. - -M src/Dialogs.vala - -commit 895ca4b09b6f50151b54fe5cbe2ffd128581c2e3 -Author: Norbert Preining -Date: Wed Feb 13 11:52:11 2013 -0800 - - Fixes a variety of user experience nits related to adding comments - to photos and events. Closes #6353. - -M src/Dialogs.vala -M src/MediaDataRepresentation.vala -M src/events/EventDirectoryItem.vala -M ui/shotwell.glade - -commit 569952f8efd05981aa06ff0418419c725d90cfd5 -Author: Jens B -Date: Wed Feb 13 11:25:42 2013 -0800 - - Adds four additional core slideshow transitions. Closes #6347. - -M misc/org.yorba.shotwell.gschema.xml -A plugins/shotwell-transitions/BlindsEffect.vala -A plugins/shotwell-transitions/CircleEffect.vala -A plugins/shotwell-transitions/CirclesEffect.vala -A plugins/shotwell-transitions/ClockEffect.vala -M plugins/shotwell-transitions/Makefile -M plugins/shotwell-transitions/shotwell-transitions.vala -M src/slideshow/Slideshow.vala - -commit 921e0bd92622ded6ac358b02fc6bbf620f661776 -Author: Lucas Beeler -Date: Wed Feb 13 10:39:18 2013 -0800 - - Shotwell no longer runs the gsettings-data-convert tool on - startup. Closes #6369 and #6252. - -M src/config/GSettingsEngine.vala -M src/main.vala - -commit 301ca7b9cb56415d6b51f0a0ea0a832e61972868 -Author: Clint Rogers -Date: Fri Feb 8 17:49:00 2013 -0800 - - Fixes up 'stale' RAW thumbnails that were generated by older, - buggier versions of Shotwell when the developer was set to 'camera'; - ref #6315. - -M src/Application.vala -M src/Upgrades.vala -M src/db/DatabaseTable.vala -M src/db/Db.vala - -commit f7480c924303166d4ce3528674b50f08a563206a -Author: Lucas Beeler -Date: Fri Feb 8 15:57:27 2013 -0800 - - Fixes a Raring-specific crash in the new, Graph API-based Facebook - Connector. Closes #6345. - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit b3a2d47c8e624a052a79b894a53cd1ee85535bcf -Author: Norbert Preining -Date: Fri Feb 8 14:32:24 2013 -0800 - - Adds the capability to annotate events with comments. Closes #6271. - -M misc/org.yorba.shotwell.gschema.xml -M src/Commands.vala -M src/Event.vala -M src/MediaDataRepresentation.vala -M src/Photo.vala -M src/Properties.vala -M src/VideoSupport.vala -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala -M src/core/DataSourceTypes.vala -M src/db/DatabaseTable.vala -M src/db/Db.vala -M src/db/EventTable.vala -M src/events/EventDirectoryItem.vala -M src/events/EventsDirectoryPage.vala -M ui/events_directory.ui - -commit 7d382d19446bd8fba9bf4ee3467951240c246d28 -Author: Clint Rogers -Date: Fri Feb 8 11:24:48 2013 -0800 - - Adds a breadcrumb comment to a seemingly-unusual snippet of code - in EditingTools.vala. - -M src/editing_tools/EditingTools.vala - -commit 7d5326352378d4df468bbb329063f79434cbd434 -Author: Lucas Beeler -Date: Thu Feb 7 14:45:20 2013 -0800 - - Adds all of the user's photo albums to the album selector list in - the publishing options pane of the Facebook Connector regardless - of the value of the Facebook can_upload flag for that album. This - change may need to be undone later as Facebook policies change. - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit 4628d43c2b315cbf46710bef60bb59f6143e5efd -Author: Lucas Beeler -Date: Thu Feb 7 12:34:13 2013 -0800 - - Changes the way the startup progress bar calculates progress - percentage. Closes #3572. - -M src/main.vala - -commit 9b0469399dbeb278851ae6b412fc3cacb3d12ed9 -Author: Clint Rogers -Date: Wed Feb 6 16:01:02 2013 -0800 - - Fixes up raw developer on images imported from a camera after - importing is complete; fixes #4149, fixes #4692. - -M src/camera/ImportPage.vala - -commit 71eb4dda8d41396065682211280cf8459f6fb2d2 -Author: Lucas Beeler -Date: Mon Feb 4 16:55:37 2013 -0800 - - Re-implements support for publishing videos and mixed media (photos - and videos) to Facebook. Closes #6312. - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit aaef7f7d6d77e6476216320510935ea0eca1b6b6 -Author: Tomáš Hnyk -Date: Mon Feb 4 14:28:53 2013 -0800 - - Increases the size of the Edit Title, Add Tags, and Modify Tags - dialogs, making entry of long titles or many tags much easier. Closes - #6313. - -M THANKS -M src/Dialogs.vala - -commit be22fdaad3d8d4b8eb06aa7d4ce36642ef56736d -Author: Lucas Beeler -Date: Sun Feb 3 21:33:06 2013 -0800 - - Migrates the Facebook Connector to the new Graph API. Closes #4110, - #5873, #6111, #6103. - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit 7ab4f6882fd07741fc8dbdd6f9b32f07a6ed9a8a -Author: Clint Rogers -Date: Fri Feb 1 14:26:00 2013 -0800 - - Makes the 'extended information' window display the path to the - master file, rather than the currently-displayed one; closes #4137 . - -M src/Properties.vala - -commit 416865c7e2800d9260cae02ef335cce204d4e12a -Author: Clint Rogers -Date: Thu Jan 31 18:24:05 2013 -0800 - - Causes a null string set to be considered equal to an empty one, - since it follows that they both have 0 elements. Closes #4297. - -M src/util/misc.vala - -commit d511de5b38f18d7fecb7968ca9ed71608864701e -Author: Clint Rogers -Date: Thu Jan 31 16:12:15 2013 -0800 - - Prevents the application from inappropriately renaming 'sister' - JPEG files -and- forces the application to always prefer the camera - development over the embedded one if it's available; closes #4149. - -M src/BatchImport.vala -M src/Photo.vala -M src/camera/ImportPage.vala -M src/photos/RawSupport.vala - -commit 69fc87f45362d73e5a3a94a3e1de2577b3591df0 -Author: Jim Nelson -Date: Tue Jan 29 22:15:29 2013 -0800 - - Updating Debian control to gexiv2 0.5.0 - - This is technically not required for building Shotwell, but we - want to move automated packaging builds now and in the future - to newer versions. - -M debian/control - -commit f21921ce5e9b2ca892ac82b548e4d59caf9184ff -Author: Norbert Preining -Date: Mon Jan 28 14:35:44 2013 -0800 - - Implements a major new feature: the ability to add comments to - photos. Closes #1573. - -M misc/org.yorba.shotwell.gschema.xml -M src/CheckerboardLayout.vala -M src/Commands.vala -M src/Dialogs.vala -M src/MediaDataRepresentation.vala -M src/MediaMetadata.vala -M src/MediaPage.vala -M src/MetadataWriter.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Properties.vala -M src/Resources.vala -M src/Thumbnail.vala -M src/VideoMetadata.vala -M src/VideoSupport.vala -M src/camera/ImportPage.vala -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala -M src/db/DatabaseTable.vala -M src/db/Db.vala -M src/db/PhotoTable.vala -M src/db/VideoTable.vala -M src/events/EventDirectoryItem.vala -M src/photos/PhotoMetadata.vala -M ui/collection.ui -M ui/media.ui -M ui/photo.ui -M ui/photo_context.ui -M ui/shotwell.glade - -commit 0fb5d20c4c8df73effabdbdd4e881777c288ac55 -Author: Jens B -Date: Mon Jan 28 12:29:59 2013 -0800 - - Corrects a problem in which pushing the left arrow key mapped - to a rightward transition to the previous photo in the slideshow - view. Closes #6258. - -M THANKS -M src/util/ui.vala - -commit 66c2ffaa70cd2bbe539c8324511ca243394e5db2 -Author: Joseph Bylund -Date: Mon Jan 28 11:47:48 2013 -0800 - - Displays a more user-friendly error message when the Vala compiler - is not present or is the wrong version. Closes #1856. - -M Makefile - -commit 82f70dd64101634abf23c28ec68f407e6b46062b -Author: Clint Rogers -Date: Wed Jan 23 18:22:13 2013 -0800 - - Prevents inappropriate deletion of camera-generated raw developments, - closes #4207, closes #6238. - -M src/MediaDataRepresentation.vala -M src/Photo.vala - -commit 1df3e40ded9fd64d5e2e8f1837c69958be89f0ab -Author: Lucas Beeler -Date: Wed Jan 23 17:09:49 2013 -0800 - - Corrects some spacing issues. - -M src/folders/Page.vala - -commit cd89cc3da3fcf48701482f33fb2adb0f7481c23c -Author: Joseph Bylund -Date: Wed Jan 23 13:34:21 2013 -0800 - - Fixes a build system issue in which the GSchema XML files would not - be properly recompiled. Closes #6178. - -M Makefile - -commit 0e1e308e4f63deea8df1d35c8499d20748d617fb -Author: Joseph Bylund -Date: Wed Jan 23 13:21:47 2013 -0800 - - Adds icons to the publishing service selector drop-down menu; - closes #1321. - -M src/publishing/PublishingUI.vala - -commit 96574501096431983cf462251542602f7c73b49b -Author: Joseph Bylund -Date: Tue Jan 22 17:33:10 2013 -0800 - - Expands the set of desktop keywords. Closes #6075. - -M Makefile -M misc/shotwell.desktop.head - -commit 5e55ae4cbd33303051ef8d5c65623143efa8bc6c -Author: Clint Rogers -Date: Tue Jan 22 17:23:47 2013 -0800 - - Causes the application to regenerate a missing raw development as - needed; closes #6237. - -M src/Photo.vala -M src/PhotoPage.vala - -commit e933a37e7a94e485b8d94690aec42a66a806d00b -Author: Joseph Bylund -Date: Tue Jan 22 16:47:54 2013 -0800 - - Makes the folders view in the sidebar recursively display folder - contents. Closes #6211. - -M src/folders/Page.vala - -commit 9da2cd0d39a03a6df7f4933d600004980e92198f -Author: Roumano -Date: Tue Jan 22 16:24:21 2013 -0800 - - Fixes a French translation issue. Closes #6213. - -M THANKS -M po/shotwell-core/fr.po - -commit 349ca68e5bb70586c2e030720a7e8fcb3a92b2fa -Author: Joseph Bylund -Date: Tue Jan 22 12:49:11 2013 -0800 - - Copies the Tumblr publishing service icon to the appropriate system - resource directory when "make install" is invoked. Closes #6242. - -M plugins/plugins.mk - -commit 6619b39d86307820d1ee8586b8bda543eb7c6cdf -Author: Clint Rogers -Date: Mon Jan 21 18:29:52 2013 -0800 - - Deletes 'stale' development .jpg when the user switches RAW - developers*; closes #4141. - - *...if and only if the 'stale' image is not a - user-supplied/camera-created one (to wit, the JPEG file of a - RAW+JPEG pair). - -M src/Photo.vala - -commit 1b40207998dad4cd4161c4ecbe11d558ec4fbc2f -Author: Clint Rogers -Date: Mon Jan 21 14:08:07 2013 -0800 - - Prevents the library directory itself from getting deleted as we - walk up the parent tree; closes #6241. - -M src/MediaDataRepresentation.vala - -commit a4ece6744fa39a3a93f04f276b54b642f19967fd -Author: Joseph Bylund -Date: Mon Jan 21 13:16:09 2013 -0800 - - Updates copyrights to 2013 across all source files, translations, - and custom vapis. Closes #6194. - -M INSTALL -M README -M chkver -M configure -M debian/copyright -M help/C/Makefile -M mkunit -M mkvala -M plugins/common/RESTSupport.vala -M plugins/common/Resources.vala -M plugins/common/SqliteSupport.vala -M plugins/common/VersionNumber.vala -M plugins/common/ui.vala -M plugins/shotwell-data-imports/FSpotDatabase.vala -M plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala -M plugins/shotwell-data-imports/FSpotDatabaseTable.vala -M plugins/shotwell-data-imports/FSpotImporter.vala -M plugins/shotwell-data-imports/FSpotMetaTable.vala -M plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala -M plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala -M plugins/shotwell-data-imports/FSpotPhotosTable.vala -M plugins/shotwell-data-imports/FSpotRollsTable.vala -M plugins/shotwell-data-imports/FSpotTableBehavior.vala -M plugins/shotwell-data-imports/FSpotTagsTable.vala -M plugins/shotwell-data-imports/shotwell-data-imports.vala -M plugins/shotwell-publishing-extras/TumblrPublishing.vala -M plugins/shotwell-publishing-extras/YandexPublishing.vala -M plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/PiwigoPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -M plugins/shotwell-publishing/shotwell-publishing.vala -M plugins/shotwell-transitions/CrumbleEffect.vala -M plugins/shotwell-transitions/FadeEffect.vala -M plugins/shotwell-transitions/SlideEffect.vala -M plugins/shotwell-transitions/shotwell-transitions.vala -M po/shotwell-core/af.po -M po/shotwell-core/ar.po -M po/shotwell-core/ast.po -M po/shotwell-core/bg.po -M po/shotwell-core/bn.po -M po/shotwell-core/ca.po -M po/shotwell-core/cs.po -M po/shotwell-core/da.po -M po/shotwell-core/de.po -M po/shotwell-core/el.po -M po/shotwell-core/en_GB.po -M po/shotwell-core/es.po -M po/shotwell-core/et.po -M po/shotwell-core/eu.po -M po/shotwell-core/fi.po -M po/shotwell-core/fr.po -M po/shotwell-core/gl.po -M po/shotwell-core/he.po -M po/shotwell-core/hi.po -M po/shotwell-core/hr.po -M po/shotwell-core/hu.po -M po/shotwell-core/ia.po -M po/shotwell-core/id.po -M po/shotwell-core/it.po -M po/shotwell-core/ja.po -M po/shotwell-core/kk.po -M po/shotwell-core/km.po -M po/shotwell-core/ko.po -M po/shotwell-core/lt.po -M po/shotwell-core/lv.po -M po/shotwell-core/mk.po -M po/shotwell-core/nb.po -M po/shotwell-core/nl.po -M po/shotwell-core/or.po -M po/shotwell-core/pa.po -M po/shotwell-core/pl.po -M po/shotwell-core/pt.po -M po/shotwell-core/pt_BR.po -M po/shotwell-core/ro.po -M po/shotwell-core/ru.po -M po/shotwell-core/shotwell.pot -M po/shotwell-core/sk.po -M po/shotwell-core/sl.po -M po/shotwell-core/sr.po -M po/shotwell-core/sv.po -M po/shotwell-core/ta.po -M po/shotwell-core/ta_IN.po -M po/shotwell-core/te.po -M po/shotwell-core/te_IN.po -M po/shotwell-core/th.po -M po/shotwell-core/tr.po -M po/shotwell-core/uk.po -M po/shotwell-core/vi.po -M po/shotwell-core/zh_CN.po -M po/shotwell-core/zh_TW.po -M po/shotwell-extras/ar.po -M po/shotwell-extras/ast.po -M po/shotwell-extras/bg.po -M po/shotwell-extras/bn.po -M po/shotwell-extras/ca.po -M po/shotwell-extras/cs.po -M po/shotwell-extras/da.po -M po/shotwell-extras/de.po -M po/shotwell-extras/el.po -M po/shotwell-extras/en_GB.po -M po/shotwell-extras/eo.po -M po/shotwell-extras/es.po -M po/shotwell-extras/et.po -M po/shotwell-extras/eu.po -M po/shotwell-extras/fi.po -M po/shotwell-extras/fr.po -M po/shotwell-extras/gl.po -M po/shotwell-extras/he.po -M po/shotwell-extras/hr.po -M po/shotwell-extras/hu.po -M po/shotwell-extras/id.po -M po/shotwell-extras/it.po -M po/shotwell-extras/ja.po -M po/shotwell-extras/kk.po -M po/shotwell-extras/ko.po -M po/shotwell-extras/lt.po -M po/shotwell-extras/lv.po -M po/shotwell-extras/mk.po -M po/shotwell-extras/nb.po -M po/shotwell-extras/nl.po -M po/shotwell-extras/or.po -M po/shotwell-extras/pa.po -M po/shotwell-extras/pl.po -M po/shotwell-extras/pt.po -M po/shotwell-extras/pt_BR.po -M po/shotwell-extras/ro.po -M po/shotwell-extras/ru.po -M po/shotwell-extras/shotwell-extras.pot -M po/shotwell-extras/sk.po -M po/shotwell-extras/sl.po -M po/shotwell-extras/sr.po -M po/shotwell-extras/sv.po -M po/shotwell-extras/ta.po -M po/shotwell-extras/te.po -M po/shotwell-extras/th.po -M po/shotwell-extras/tr.po -M po/shotwell-extras/uk.po -M po/shotwell-extras/zh_CN.po -M po/shotwell-extras/zh_TW.po -M samples/simple-plugin/README -M samples/simple-plugin/simple-plugin.vala -M settings-migrator/shotwell-settings-migrator -M src/AppDirs.vala -M src/AppWindow.vala -M src/Application.vala -M src/BatchImport.vala -M src/Box.vala -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/ColorTransformation.vala -M src/CommandManager.vala -M src/Commands.vala -M src/CustomComponents.vala -M src/Debug.vala -M src/DesktopIntegration.vala -M src/Dialogs.vala -M src/Dimensions.vala -M src/DirectoryMonitor.vala -M src/Event.vala -M src/Exporter.vala -M src/International.vala -M src/LibraryFiles.vala -M src/LibraryMonitor.vala -M src/MediaDataRepresentation.vala -M src/MediaInterfaces.vala -M src/MediaMetadata.vala -M src/MediaMonitor.vala -M src/MediaPage.vala -M src/MediaViewTracker.vala -M src/MetadataWriter.vala -M src/Orientation.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoMonitor.vala -M src/PhotoPage.vala -M src/PixbufCache.vala -M src/Printing.vala -M src/Properties.vala -M src/Resources.vala -M src/Screensaver.vala -M src/SearchFilter.vala -M src/SlideshowPage.vala -M src/SortedList.vala -M src/SortedListTests.vala -M src/Tag.vala -M src/Thumbnail.vala -M src/TimedQueue.vala -M src/Tombstone.vala -M src/UnityProgressBar.vala -M src/Upgrades.vala -M src/VideoMetadata.vala -M src/VideoMonitor.vala -M src/VideoSupport.vala -M src/camera/Branch.vala -M src/camera/Camera.vala -M src/camera/CameraTable.vala -M src/camera/GPhoto.vala -M src/camera/ImportPage.vala -M src/config/Config.vala -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala -M src/core/Alteration.vala -M src/core/ContainerSourceCollection.vala -M src/core/Core.vala -M src/core/DataCollection.vala -M src/core/DataObject.vala -M src/core/DataSet.vala -M src/core/DataSource.vala -M src/core/DataSourceTypes.vala -M src/core/DataView.vala -M src/core/DataViewTypes.vala -M src/core/DatabaseSourceCollection.vala -M src/core/SourceCollection.vala -M src/core/SourceHoldingTank.vala -M src/core/SourceInterfaces.vala -M src/core/Tracker.vala -M src/core/ViewCollection.vala -M src/core/util.vala -M src/data_imports/DataImportJob.vala -M src/data_imports/DataImportSource.vala -M src/data_imports/DataImports.vala -M src/data_imports/DataImportsPluginHost.vala -M src/data_imports/DataImportsUI.vala -M src/db/DatabaseTable.vala -M src/db/Db.vala -M src/db/EventTable.vala -M src/db/PhotoTable.vala -M src/db/SavedSearchDBTable.vala -M src/db/TagTable.vala -M src/db/TombstoneTable.vala -M src/db/VersionTable.vala -M src/db/VideoTable.vala -M src/direct/Direct.vala -M src/direct/DirectPhoto.vala -M src/direct/DirectPhotoPage.vala -M src/direct/DirectView.vala -M src/direct/DirectWindow.vala -M src/editing_tools/EditingTools.vala -M src/editing_tools/StraightenTool.vala -M src/events/Branch.vala -M src/events/EventDirectoryItem.vala -M src/events/EventPage.vala -M src/events/Events.vala -M src/events/EventsDirectoryPage.vala -M src/folders/Page.vala -M src/library/Branch.vala -M src/library/FlaggedBranch.vala -M src/library/FlaggedPage.vala -M src/library/ImportQueueBranch.vala -M src/library/ImportQueuePage.vala -M src/library/LastImportBranch.vala -M src/library/LastImportPage.vala -M src/library/Library.vala -M src/library/LibraryWindow.vala -M src/library/OfflineBranch.vala -M src/library/OfflinePage.vala -M src/library/TrashBranch.vala -M src/library/TrashPage.vala -M src/main.vala -M src/photos/BmpSupport.vala -M src/photos/GRaw.vala -M src/photos/GdkSupport.vala -M src/photos/JfifSupport.vala -M src/photos/PhotoFileAdapter.vala -M src/photos/PhotoFileFormat.vala -M src/photos/PhotoFileSniffer.vala -M src/photos/PhotoMetadata.vala -M src/photos/Photos.vala -M src/photos/PngSupport.vala -M src/photos/RawSupport.vala -M src/photos/TiffSupport.vala -M src/plugins/DataImportsInterfaces.vala -M src/plugins/ManifestWidget.vala -M src/plugins/Plugins.vala -M src/plugins/PublishingInterfaces.vala -M src/plugins/SpitInterfaces.vala -M src/plugins/StandardHostInterface.vala -M src/plugins/TransitionsInterfaces.vala -M src/publishing/APIGlue.vala -M src/publishing/Publishing.vala -M src/publishing/PublishingPluginHost.vala -M src/publishing/PublishingUI.vala -M src/searches/Branch.vala -M src/searches/SavedSearchDialog.vala -M src/searches/SavedSearchPage.vala -M src/searches/SearchBoolean.vala -M src/searches/Searches.vala -M src/sidebar/Branch.vala -M src/sidebar/Entry.vala -M src/sidebar/Sidebar.vala -M src/sidebar/Tree.vala -M src/sidebar/common.vala -M src/slideshow/Slideshow.vala -M src/slideshow/TransitionEffects.vala -M src/tags/Branch.vala -M src/tags/HierarchicalTagIndex.vala -M src/tags/HierarchicalTagUtilities.vala -M src/tags/TagPage.vala -M src/tags/Tags.vala -M src/threads/BackgroundJob.vala -M src/threads/Semaphore.vala -M src/threads/Threads.vala -M src/threads/Workers.vala -M src/unit/Unit.vala -M src/unit/rc/Unit.m4 -M src/unit/rc/UnitInternals.m4 -M src/unit/rc/template.vala -M src/unit/rc/unitize_entry.m4 -M src/util/KeyValueMap.vala -M src/util/Util.vala -M src/util/file.vala -M src/util/image.vala -M src/util/misc.vala -M src/util/string.vala -M src/util/system.vala -M src/util/ui.vala -M thumbnailer/shotwell-video-thumbnailer.vala -M vapi/ExtendedPosix.vapi -M vapi/LConv.vapi -M vapi/gphoto-2.4/libgphoto2.vapi -M vapi/gphoto-2.5/libgphoto2.vapi -M vapi/gphoto.h -M vapi/libexif.vapi -M vapi/libraw.vapi - -commit 05c10b9c6107dc785808732216498ef5f3f6b87d -Author: Clint Rogers -Date: Tue Jan 15 16:09:42 2013 -0800 - - Causes video thumbnails to get regenerated if lost; closes #6152. - - Also moves some code around so regeneration for both stills and - videos happens in the same spot, improving code navigability. - -M src/PhotoMonitor.vala -M src/ThumbnailCache.vala - -commit 43bc638af6bc410d55c679a710fbe4262bcc5bdd -Author: Joseph Bylund -Date: Fri Jan 11 18:35:35 2013 -0800 - - Makes text entry dialogs resizable. Closes #6097. - -M src/Dialogs.vala - -commit 0cbf60b5ec721028b551900c0b0adbbe486fbae4 -Author: Jim Nelson -Date: Fri Jan 11 16:19:58 2013 -0800 - - Implements a basic folder tree in the sidebar. Closes #1594. - -M src/Resources.vala -A src/folders/Branch.vala -A src/folders/Folders.vala -A src/folders/Page.vala -C071 src/library/mk/library.mk src/folders/mk/folders.mk -M src/library/LibraryWindow.vala -M src/library/mk/library.mk -M units.mk - -commit e32f610752fd8bc32aacea46b85715f10707e07e -Author: Joseph Bylund -Date: Fri Jan 11 11:55:46 2013 -0800 - - Error in documentation: Closes #6117 - -M help/C/share-export.page - -commit cf7132f1fd673952d7cd3a6e00927be0d399c2f2 -Author: Clint Rogers -Date: Wed Jan 9 17:36:18 2013 -0800 - - Corrects a problem where ./configure would blithely accept bogus - arguments; closes #6015. - -M configure - -commit bf8498669743c22633b9d0ce7f7eb31b301418d5 -Author: Lucas Beeler -Date: Tue Jan 8 17:13:25 2013 -0800 - - Increases MIN_VALAC_VERSION to the earliest version of valac that - ships with vapi files for GStreamer 1.0. - -M Makefile - -commit 4db67e385c9c2d89947077f1520aa31af2538d65 -Author: Alban Browaeys -Date: Tue Jan 8 17:11:27 2013 -0800 - - Ports Shotwell to GStreamer 1.0. Closes #6055. - -M Makefile -M THANKS -M debian/control -M src/VideoSupport.vala -M thumbnailer/shotwell-video-thumbnailer.vala - -commit 6da387d589ee7d8c35ac0f5f79d21e0d43e2d5a0 -Author: Clint Rogers -Date: Tue Jan 8 17:08:51 2013 -0800 - - Fixes an issue where we were supplying an invalid argument to the - configure script; closes #6016. - -M debian/rules - -commit 3995e0b129bc5745c011367e09560a4a9aa6c992 -Author: Norbert Preining -Date: Mon Jan 7 16:41:55 2013 -0800 - - Allows selection of a sub-album or category when publishing to - Piwigo. Closes #3749. - -M plugins/shotwell-publishing/PiwigoPublishing.vala -M plugins/shotwell-publishing/piwigo_publishing_options_pane.glade - -commit 9a6fa02e15514394ec9d2885de00e298914e955e -Author: Ash Balgimbayev -Date: Mon Jan 7 13:13:50 2013 -0800 - - Allows the user to show & hide the sidebar. Closes #5346. - -M misc/org.yorba.shotwell.gschema.xml -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala -M src/library/LibraryWindow.vala -M ui/events_directory.ui -M ui/import.ui -M ui/media.ui -M ui/offline.ui -M ui/photo.ui -M ui/trash.ui - -commit 8126010972408b341a5672f73c529bf31225239b -Author: Clint Rogers -Date: Fri Jan 4 15:42:05 2013 -0800 - - Prevents file discovery and metadata writing from starting before - ALL initialization, including tag list population, is completed. - - Fixes #5992. - -M src/Application.vala -M src/MediaDataRepresentation.vala -M src/MetadataWriter.vala -M src/main.vala - -commit 75ac7e2ffbe72d99ccf97337a5ce6bb5914db129 -Author: Gert Wollny -Date: Fri Jan 4 15:49:04 2013 -0800 - - Modifies thumbnail cache system to correctly support multiple - libraries. Closes #5986. - -M THANKS -M src/AppDirs.vala - -commit 764bad1bb8f69a144732f6564a69ea8fb909a9df -Author: Lucas Beeler -Date: Fri Jan 4 13:16:44 2013 -0800 - - Adds Joseph Bylund to the THANKS file. - -M THANKS - -commit 8ec4a8095f33e24c9cd0a17fc952f0c25f8f7b68 -Author: Joseph Bylund -Date: Fri Jan 4 13:14:46 2013 -0800 - - Modifies RAW photo development logic to properly copy original photo - metadata into generated developments. Closes #4372. - -M src/Photo.vala - -commit 33a72313c66a5edae75887ea3b2df5f60b622bd6 -Author: Norbert Preining -Date: Fri Jan 4 12:31:19 2013 -0800 - - Allows the user to suppress the upload of tags when publishing to - Piwigo. Closes #6156. - -M misc/org.yorba.shotwell.gschema.xml -M plugins/shotwell-publishing/PiwigoPublishing.vala -M plugins/shotwell-publishing/piwigo_publishing_options_pane.glade - -commit cf090048cbb1616d56bfb83781dd93eb21d681b7 -Author: Clint Rogers -Date: Wed Jan 2 12:15:27 2013 -0800 - - Made sure that the required versions in debian/control match what's - in Makefile. Fixes #5965. - -M Makefile -M debian/control - -commit c4f09c5f0ecd0044a0f0c2616eff71f0b12ba63f -Author: Lucas Beeler -Date: Mon Nov 26 12:28:41 2012 -0800 - - Updates the help documentation to correct an outdated help entry. - -M help/C/share-upload.page - -commit a08abac5ecfe1f636b915f5bb1007c41aa391409 -Author: mnemo -Date: Tue Oct 23 17:35:07 2012 -0700 - - Fixes assorted spelling errors. Closes #5926. - -M THANKS -M help/C/view-sidebar.page -M plugins/Makefile.plugin.mk -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/PiwigoPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -M po/shotwell-core/shotwell.pot -M src/AppDirs.vala -M src/Commands.vala -M src/CustomComponents.vala -M src/DirectoryMonitor.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Tombstone.vala -M src/camera/ImportPage.vala -M src/core/DataSource.vala -M src/core/DatabaseSourceCollection.vala -M src/plugins/DataImportsInterfaces.vala -M src/plugins/PublishingInterfaces.vala -M src/searches/SearchBoolean.vala -M src/util/file.vala -M src/util/misc.vala -M thumbnailer/shotwell-video-thumbnailer.vala - -commit 001f2538213e2eabcdd8bf11c75682fe4888ff72 -Author: Carlos Penichet -Date: Tue Oct 23 16:56:01 2012 -0700 - - Flattens hierarchical tags before publishing them to Picasa. Closes - #5909. - -M THANKS -M plugins/shotwell-publishing/PicasaPublishing.vala - -commit 226e45057dcfa066a5c0452f9a5f3eda628d3981 -Author: Norbert Preining -Date: Tue Oct 23 15:28:36 2012 -0700 - - Adds the ability to use the Shotwell title of a photo as its Piwigo - description instead of its Piwigo title. Closes #5999. - -M THANKS -M misc/org.yorba.shotwell.gschema.xml -M plugins/shotwell-publishing/PiwigoPublishing.vala -M plugins/shotwell-publishing/piwigo_publishing_options_pane.glade - -commit 647baa2b796ac7b63cd9f28083b1d0f1cdb8f63e -Author: Lucas Beeler -Date: Fri Oct 5 14:04:30 2012 -0700 - - Updates version number to 0.13.1+trunk, merges in changes to NEWS - and debian/changelog from the 0.13.1 release. - -M Makefile -M NEWS -M debian/changelog - -commit 9bec6d2b4faf7c0b8f95f995a2846aab00ab3ea1 -Author: Clint Rogers -Date: Thu Oct 4 17:13:36 2012 -0700 - - Uninstalls the filter when the search bar is dismissed; fixes #5912. - -M src/library/LibraryWindow.vala - -commit f5f8b20f2769ca0404b22932b5a3a0d8c56c79d5 -Author: Clint Rogers -Date: Thu Oct 4 16:08:16 2012 -0700 - - Attempts to guard against obviously-malformed XML responses -and- - checks whether the freshly-parsed Xml.Doc* has zero children; closes - #5822, closes #5907. - -M plugins/common/RESTSupport.vala - -commit 51cb25c2796e32390417d93cfb85136b2cd5c232 -Author: Lucas Beeler -Date: Thu Oct 4 15:25:52 2012 -0700 - - Changes the logic of spin_event_loop() such that it is - the same as the canonical form for interstitial event - processing as described in the Gtk+ 3 documentation (see - http://developer.gnome.org/gtk3/stable/gtk3-General.html#gtk-events-pending). - Closes #5844. - -M src/AppWindow.vala -M src/util/ui.vala - -commit 2b397d181987591603bd72b1b8915de8446ca341 -Author: Clint Rogers -Date: Thu Oct 4 14:48:01 2012 -0700 - - Forces the search bar to be visible whenever the star filter is - changed from the menus; closes #5912. - -M src/SearchFilter.vala - -commit 8c9a424767ca10880231ef1665727d686e3b2409 -Author: Clint Rogers -Date: Wed Oct 3 14:23:42 2012 -0700 - - Removes a bit of unneeded code that worked around a no-longer-existant - binding problem. - -M src/AppWindow.vala - -commit 9518bb3a895ac94d88f9bbd3d905a0afb3331b30 -Author: Clint Rogers -Date: Wed Oct 3 12:12:01 2012 -0700 - - Tries to use Gtk.Application.inhibit() and friends instead of calling - directly into dbus; closes #5903. - -M src/Application.vala -M src/Screensaver.vala - -commit 8be51587fb776e5c398dedd67138e105e93011e2 -Author: Clint Rogers -Date: Tue Oct 2 15:30:02 2012 -0700 - - Closes #4523; corrects an issue where the parent directory of the - desired import location would occasionally be seen as the import - location. - -M src/Dialogs.vala - -commit 31b12644173e51c6b5734fbe478c0c5fc170c290 -Author: Lucas Beeler -Date: Tue Oct 2 14:43:28 2012 -0700 - - Suppresses spinning the event loop during one of the two status - reporting callbacks made during the export process. Closes #5827. - -M src/Dialogs.vala -M src/Exporter.vala -M src/core/util.vala - -commit 6536e0c958d7ce1ca03c56181d25b705420b06b0 -Author: Clint Rogers -Date: Tue Oct 2 14:10:36 2012 -0700 - - Don't attempt to restore the cursor if there are 0 thumbnails in - the current checkerboard; closes #5919. - -M src/MediaPage.vala - -commit c438499b2c1a9b33d9159853ffecea474fe56245 -Author: Lucas Beeler -Date: Tue Oct 2 12:15:47 2012 -0700 - - Fixes an error in the German shotwell-core translation file; - closes #5931. - -M po/shotwell-core/de.po - -commit 6eb4f790a7279911e6ce40657e64d741cb888ecf -Author: Clint Rogers -Date: Mon Oct 1 15:51:54 2012 -0700 - - Migrates the print dialogue's custom image settings tab to Glade; - part of #5838. - -M src/Printing.vala -M src/util/ui.vala -M ui/shotwell.glade - -commit 4c79ab6bc9c1c4e5625811621658edf4150638ca -Author: Clint Rogers -Date: Wed Sep 26 17:18:29 2012 -0700 - - Adds missing semicolons to Arabic, Spanish, Chinese-TW and German - .po files; closes #5860. - - Many thanks to Damien Lallement for his gracious help. - -M THANKS -M po/shotwell-core/ar.po -M po/shotwell-core/de.po -M po/shotwell-core/es.po -M po/shotwell-core/zh_TW.po - -commit cf32357294ef00a131d6366087715891695b100f -Author: Clint Rogers -Date: Wed Sep 26 16:58:28 2012 -0700 - - Closes #5050, closes #5086; moves the settings migrator someplace - sensible, causes the migrator to clean up old paths. - -M Makefile -M settings-migrator/shotwell-settings-migrator -M src/AppDirs.vala -M src/config/GSettingsEngine.vala - -commit d7871125ae2a5f10d0616cf057f2613fad5da6da -Author: Clint Rogers -Date: Wed Sep 26 15:57:58 2012 -0700 - - Moves the Piwigo schema to be with the other core publishing plugins' - schemata; closes #5646 - -M misc/org.yorba.shotwell-extras.gschema.xml -M misc/org.yorba.shotwell.gschema.xml - -commit 1ff46ea3c0ae4ae35d7e129bd944216e3d828211 -Author: clinton -Date: Tue Sep 25 13:57:29 2012 -0700 - - Proposed patch would fix #3520, #5160; explicitly whitelists some - more common video storage paths for Sony cameras. - -M src/camera/ImportPage.vala - -commit ffbcb0ecb49bcb6bd0cd5bf4faa263e1f3db7d79 -Author: Clint Rogers -Date: Mon Sep 24 14:25:47 2012 -0700 - - Corrects a problem where a signal callback could inadvertently get - disconnected after the object the signal lived in was destroyed; - closes #5841. - -M plugins/shotwell-publishing-extras/TumblrPublishing.vala - -commit 2bbd5e53001f4e25aa99ac9b9fb66451a3a02ce3 -Author: Lucas Beeler -Date: Mon Sep 24 11:51:43 2012 -0700 - - Updates master Makefile version number to 0.13.0+trunk - -M Makefile - -commit c3c98fc83abb802d58a72c7d9c6153b7d9d173f6 -Author: Lucas Beeler -Date: Wed Sep 19 16:39:06 2012 -0700 - - Updated NEWS, debian/changelog, and Makefile to prepare for 0.13.0 - release. - -M Makefile -M NEWS -M debian/changelog - -commit 5022332fafba56d8c89cf411133f87a12be3b0cc -Author: Lucas Beeler -Date: Wed Sep 19 15:56:28 2012 -0700 - - Simplifies debian/control by removing phantom libunity dependency, - removing unnecessary runtime dependencies already managed by - shlibs:Depends, and adds a dconf-tools runtime dependency for the - gsettings migrator tool. Closes #5853, #5852, #5851. - -M debian/control - -commit 4b282e9b64dc2cbce51c61bd8bb29fa071c24e21 -Author: Lucas Beeler -Date: Wed Sep 19 15:18:44 2012 -0700 - - Updated Shotwell Extra Plugins translations for the Shotwell 0.13 - release. - -M po/shotwell-extras/ar.po -M po/shotwell-extras/ast.po -M po/shotwell-extras/bg.po -M po/shotwell-extras/bn.po -M po/shotwell-extras/ca.po -M po/shotwell-extras/cs.po -M po/shotwell-extras/da.po -M po/shotwell-extras/de.po -M po/shotwell-extras/el.po -M po/shotwell-extras/en_GB.po -A po/shotwell-extras/eo.po -M po/shotwell-extras/es.po -M po/shotwell-extras/et.po -M po/shotwell-extras/eu.po -M po/shotwell-extras/fi.po -M po/shotwell-extras/fr.po -M po/shotwell-extras/gl.po -M po/shotwell-extras/he.po -M po/shotwell-extras/hr.po -M po/shotwell-extras/hu.po -M po/shotwell-extras/id.po -M po/shotwell-extras/it.po -M po/shotwell-extras/ja.po -M po/shotwell-extras/kk.po -M po/shotwell-extras/ko.po -M po/shotwell-extras/lt.po -M po/shotwell-extras/lv.po -M po/shotwell-extras/mk.po -M po/shotwell-extras/nb.po -M po/shotwell-extras/nl.po -A po/shotwell-extras/or.po -M po/shotwell-extras/pa.po -M po/shotwell-extras/pl.po -M po/shotwell-extras/pt.po -M po/shotwell-extras/pt_BR.po -M po/shotwell-extras/ro.po -M po/shotwell-extras/ru.po -M po/shotwell-extras/shotwell-extras.pot -M po/shotwell-extras/sk.po -M po/shotwell-extras/sl.po -M po/shotwell-extras/sr.po -M po/shotwell-extras/sv.po -M po/shotwell-extras/ta.po -M po/shotwell-extras/te.po -M po/shotwell-extras/th.po -M po/shotwell-extras/tr.po -M po/shotwell-extras/uk.po -D po/shotwell-extras/vi.po -M po/shotwell-extras/zh_CN.po -M po/shotwell-extras/zh_TW.po - -commit c7cdd9b57048c15f98702d45c74054bdd88ccdde -Author: Lucas Beeler -Date: Wed Sep 19 14:09:08 2012 -0700 - - Updates the Shotwell core translation set for the Shotwell 0.13 - release. - -M po/shotwell-core/af.po -M po/shotwell-core/ar.po -M po/shotwell-core/ast.po -M po/shotwell-core/bg.po -M po/shotwell-core/bn.po -M po/shotwell-core/ca.po -M po/shotwell-core/cs.po -M po/shotwell-core/da.po -M po/shotwell-core/de.po -M po/shotwell-core/el.po -M po/shotwell-core/en_GB.po -M po/shotwell-core/es.po -M po/shotwell-core/et.po -M po/shotwell-core/eu.po -M po/shotwell-core/fi.po -M po/shotwell-core/fr.po -M po/shotwell-core/gl.po -M po/shotwell-core/he.po -M po/shotwell-core/hi.po -M po/shotwell-core/hr.po -M po/shotwell-core/hu.po -M po/shotwell-core/ia.po -M po/shotwell-core/id.po -M po/shotwell-core/it.po -M po/shotwell-core/ja.po -M po/shotwell-core/kk.po -C066 po/shotwell-core/shotwell.pot po/shotwell-core/km.po -M po/shotwell-core/ko.po -M po/shotwell-core/lt.po -M po/shotwell-core/lv.po -M po/shotwell-core/mk.po -M po/shotwell-core/nb.po -M po/shotwell-core/nl.po -A po/shotwell-core/or.po -M po/shotwell-core/pa.po -M po/shotwell-core/pl.po -M po/shotwell-core/pt.po -M po/shotwell-core/pt_BR.po -M po/shotwell-core/ro.po -M po/shotwell-core/ru.po -M po/shotwell-core/shotwell.pot -M po/shotwell-core/sk.po -M po/shotwell-core/sl.po -M po/shotwell-core/sr.po -M po/shotwell-core/sv.po -M po/shotwell-core/ta.po -M po/shotwell-core/ta_IN.po -M po/shotwell-core/te.po -M po/shotwell-core/te_IN.po -M po/shotwell-core/th.po -M po/shotwell-core/tr.po -M po/shotwell-core/uk.po -M po/shotwell-core/vi.po -M po/shotwell-core/zh_CN.po -M po/shotwell-core/zh_TW.po - -commit b8f16f72177e045f4e2208610d8693de583e57d2 -Author: Clint Rogers -Date: Tue Sep 18 16:41:43 2012 -0700 - - Causes rejected photos to not be chosen as event thumbnails (unless - the event contains nothing but rejected photos); closes #3682. - -M src/Event.vala -M src/core/ViewCollection.vala - -commit 64d70f86f8d050e749ab1bb80691fd7eb1f2343d -Author: Clint Rogers -Date: Tue Sep 18 13:15:53 2012 -0700 - - Allows the application to build with Vala 17.7; closes #5803. - -M plugins/Makefile.plugin.mk - -commit 6d4bd49d4c57a90572314d0dad9fc8a71fde0c60 -Author: Adam Dingle -Date: Mon Sep 17 12:59:37 2012 -0700 - - Fixed #5048 (PPA build with Unity support). - -M debian/control -M debian/rules - -commit aaa1087ad92b69497bd57ea9e692f90bd7286f59 -Author: Ash Balgimbayev -Date: Sun Sep 16 12:03:38 2012 -0700 - - Fixed broken build. - -M THANKS -M src/library/LibraryWindow.vala - -commit 29cdf25daf651590f8c237dcac2e784a10817c45 -Author: Clint Rogers -Date: Fri Sep 14 18:56:19 2012 -0700 - - Closes #5774; corrects an error where the library window would - incorrectly assume all pages it was handling were checkerboard pages. - -M src/library/LibraryWindow.vala - -commit 58c45082815adbfc09fc17f43e69f8296a3e72ab -Author: Clint Rogers -Date: Fri Sep 14 18:49:02 2012 -0700 - - Closes #5050; moves settings path to /org/yorba/shotwell and copies - over old settings data from /apps/. - -M Makefile -M misc/org.yorba.shotwell-extras.gschema.xml -M misc/org.yorba.shotwell.gschema.xml -A settings-migrator/shotwell-settings-migrator -M src/AppDirs.vala -M src/config/GSettingsEngine.vala -M src/db/DatabaseTable.vala -M src/db/Db.vala - -commit c9b40dfe1bd3cf0a9ad9361753cce7f62710846e -Author: Clint Rogers -Date: Fri Sep 14 17:00:07 2012 -0700 - - Allows time and date strings to be drawn from the locale in LC_TIME - if it's different from the one in LC_MESSAGES; closes #2462. - -M src/Properties.vala -M src/Resources.vala -M src/util/misc.vala - -commit d7408ed8bfb46fd047f1e5bcb44fae5ee8c579d8 -Author: Adam Dingle -Date: Fri Sep 14 15:47:48 2012 -0700 - - Fixed #5213 (add "bottom-toolbar" class to bottom toolbar). - -M src/Page.vala - -commit 5a9b35c28e802ff6a8cd63efb2482f689bfd1e53 -Author: Clint Rogers -Date: Fri Sep 14 15:44:37 2012 -0700 - - Removes test to see whether incoming photo is in pending or not; - closes #5761. - -M src/MetadataWriter.vala - -commit 4b73ffd589e085db69d25d1c5900daae38e9018b -Author: Clint Rogers -Date: Fri Sep 14 14:06:20 2012 -0700 - - Re-closes #5160; adds support for some Sony cameras that put stills - in DCIM, but videos in /PRIVATE/SONY/... - -M src/camera/ImportPage.vala - -commit a182daa4f52953db69cc28a586476744be296a65 -Author: Clint Rogers -Date: Fri Sep 14 14:05:07 2012 -0700 - - Proposed patch would ensure key commands get propagated from - full-screen mode to other parts of the app correctly; closes #3883. - -M src/AppWindow.vala - -commit 8d902d486205ec7cdf8827122074dd402f2f815c -Author: Lucas Beeler -Date: Thu Sep 13 11:37:43 2012 -0700 - - Adds a Keywords entry to the desktop integration file template. Closes - #5550. - -M misc/shotwell.desktop.head - -commit ec0d0b9a3b6b48bd07ce0349d1fa0cfbc2a7a36d -Author: Lucas Beeler -Date: Thu Sep 13 11:22:39 2012 -0700 - - Fixes a build breakage that occurs with valac 0.17.6. Re-closes #5431. - -M plugins/shotwell-publishing-extras/TumblrPublishing.vala - -commit d13e876a15790e5a98f2ec0799ee6f4aacb3ca28 -Author: Jeroen Arnoldus -Date: Thu Sep 13 10:34:50 2012 -0700 - - Adds support for Tumblr publishing to the Shotwell Extras plugin - pack. Closes #5431. - -M THANKS -M misc/org.yorba.shotwell-extras.gschema.xml -M misc/org.yorba.shotwell.gschema.xml -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing-extras/Makefile -A plugins/shotwell-publishing-extras/TumblrPublishing.vala -M plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala -A plugins/shotwell-publishing-extras/tumblr.png -A -plugins/shotwell-publishing-extras/tumblr_authentication_pane.glade -A -plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.glade - -commit 49d065ea345941d4ef52f985f323ab726268c191 -Author: Clint Rogers -Date: Tue Sep 11 11:12:20 2012 -0700 - - Added NEWS and changelog entries for 0.12.90; closes #5763. - -M NEWS -M debian/changelog - -commit b3128443a7638a09f2baeb8310993e7f1cd59ce8 -Author: Clint Rogers -Date: Wed Sep 5 10:57:49 2012 -0700 - - Closes #5744; Corrects an issue where the border around the histogram - would render incorrectly - on Ubuntu 12.10 with Ambiance and Radiance. - -M src/CustomComponents.vala - -commit 38bd4ca1135fb505762ee71123dccc60a0c9a14b -Author: Lucas Beeler -Date: Tue Sep 4 16:24:15 2012 -0700 - - Fixes an inconsistently formatted string pointed out by a user - (Roumano) on the mailing list. - -M plugins/shotwell-publishing/PiwigoPublishing.vala - -commit 64f064ab58aa39c56eb00783d81d91248981fe74 -Author: clinton -Date: Fri Aug 31 12:07:36 2012 -0700 - - Incremented version number to 0.12.90+trunk. - -M Makefile - -commit 5a92c9b1f64e5e1613be5951e067d52fb20737fe -Author: clinton -Date: Fri Aug 31 10:49:03 2012 -0700 - - Removes reference to Vala 0.10-specific directory; closes #5194. - -M debian/rules - -commit 4f40c9d9e91dd302c0302e35ea7e5955ba290394 -Author: Clint Rogers -Date: Thu Aug 30 15:09:39 2012 -0700 - - Prevents critical assertions from firing when the Adjust tool is - spawned; closes #5704. - -M src/CustomComponents.vala - -commit e90a1b574f49603358dcef9cb382e0b3f301f045 -Author: Clint Rogers -Date: Thu Aug 30 14:23:35 2012 -0700 - - Skips out on changing to the import page for cameras added during - the initial population of the camera table; closes #5717. - -M src/camera/CameraTable.vala - -commit 06b0775d7915e4693d0e0f48a39ade2fcac7470b -Author: Alexander Wilms -Date: Thu Aug 30 13:43:52 2012 -0700 - - Updates the Straighten Tool icon with a new version that features - simpler lines and more closely matches the Shotwell toolbar color - palette. - -M THANKS -M icons/straighten.svg - -commit eb2f4004b6373a0ee5ee7e3cbc7ede8ccb311603 -Author: Jonas Bushart -Date: Wed Aug 29 15:31:19 2012 -0700 - - Fixes #1550 by writing log messages to stderr when not previously - done. - - log_file_stream gets only set if a file is used, then all messages - will be - written in the file. If log_file_stream is null (means problem with - opening the file) the messages will be written to stdout and stderr - so no need to write them again to stderr. - -M src/Debug.vala - -commit 0f064da3828c5662c1b6f0855b4cee8485d604ed -Author: Lucas Beeler -Date: Tue Aug 28 17:07:12 2012 -0700 - - Added Tobe Deprez to the THANKS file. - -M THANKS - -commit 50362fdcd35fd7a506d3ad7e28b68e2c039e041c -Author: Tobe Deprez -Date: Tue Aug 28 17:02:40 2012 -0700 - - Adds the ability to display photo titles during slideshows. Closes - #1592. - -M misc/org.yorba.shotwell.gschema.xml -M misc/shotwell.convert -M src/SlideshowPage.vala -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala - -commit 9e8991be86a71fea5dcd787910cf7b693ab1dbbe -Author: Eric Gregory -Date: Tue Aug 28 15:49:16 2012 -0700 - - Resolves minor issue where wrong signal was disconnected in "Flagged" - sidebar branch - -M src/library/FlaggedBranch.vala - -commit 239792594aafa2725a6e1be03b8b0d0eb4a9d7f2 -Author: Clint Rogers -Date: Thu Aug 23 15:48:33 2012 -0700 - - Incrementing version number in preparation for #5698. - -M Makefile - -commit 16aab4b5a0026f421d217de3dd2b35078351e7e5 -Author: Clint Rogers -Date: Thu Aug 23 14:27:07 2012 -0700 - - Prevents direct mode from crashing; closes #5702. - -M src/Application.vala - -commit b7b09067784321e652eb88dacc7e307a6cc25c0e -Author: Clint Rogers -Date: Thu Aug 23 14:25:24 2012 -0700 - - Prevents the application from crashing with a SIGSEGV on exit; - closes #5701. - -M src/Application.vala - -commit 0ce83ea7aeed3ff84915a968f1f047ffe6f3c3e7 -Author: Clint Rogers -Date: Wed Aug 22 17:18:33 2012 -0700 - - Ensure that the changes made for #5553 get propagated to any tarballs - we generate; part of #5698. - -M Makefile - -commit b278e452a9154e665c7569f985e18600f4a21b0c -Author: Clint Rogers -Date: Wed Aug 22 15:39:24 2012 -0700 - - Allows undated images to automagically move to the correct event - when time/date info is added to them; closes #1940. - -M src/Commands.vala -M src/Event.vala - -commit b36a1fcdbc4f652c83433686d7fff8ad9290a2ef -Author: Clint Rogers -Date: Tue Aug 21 18:04:55 2012 -0700 - - Allows building against both libgphoto2 2.4.x and 2.5.x; closes #5589. - -M Makefile -M configure -M src/camera/CameraTable.vala -M src/camera/GPhoto.vala -C100 vapi/libgphoto2.vapi vapi/gphoto-2.4/libgphoto2.vapi -R095 vapi/libgphoto2.vapi vapi/gphoto-2.5/libgphoto2.vapi - -commit c8ad51c9ae8edfb1cdcbc646c188badf4d974054 -Author: Clint Rogers -Date: Tue Aug 21 13:34:57 2012 -0700 - - Said source-code supplement supplies Shotwell some simple subsystems - to seamlessly strip sensitive stuff from published images; closes - #5589. - -M misc/org.yorba.shotwell-extras.gschema.xml -M misc/org.yorba.shotwell.gschema.xml -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/PiwigoPublishing.vala -M plugins/shotwell-publishing/facebook_publishing_options_pane.glade -M plugins/shotwell-publishing/flickr_publishing_options_pane.glade -M plugins/shotwell-publishing/picasa_publishing_options_pane.glade -M plugins/shotwell-publishing/piwigo_publishing_options_pane.glade - -commit 75efd7c66b9bb0b53e6184b9bedcc1093775a5ad -Author: Alain Rpnpif -Date: Thu Aug 16 11:48:45 2012 -0700 - - Fixes a French translation bug. Closes #5653. - -M THANKS -M po/shotwell-core/fr.po - -commit 3212f1f4c4f51a742bfe7cc61719c1e064c253f6 -Author: Clint Rogers -Date: Tue Aug 14 18:07:48 2012 -0700 - - Fixes deprecated widgets in set-background dialogue; closes #5664. - -M ui/set_background_dialog.glade - -commit 14ac0750fcc6494e040bc11636abce3db2e55afa -Author: Clint Rogers -Date: Thu Aug 9 14:37:19 2012 -0700 - - Corrects an issue where a pathological Scaling object could be - created the first time a SinglePhotoPage was navigated to; closes - #5612. - -M src/Dimensions.vala - -commit 924ebf5d5ab6e7b8effd1cd4aa604fa3896e0c3a -Author: Clint Rogers -Date: Thu Aug 9 14:20:09 2012 -0700 - - Fixes up some 'old' style widgets in the Piwigo publishing options - pane to something - that Glade 3.x likes; closes #5610. - -M plugins/shotwell-publishing/piwigo_publishing_options_pane.glade - -commit 6856b0bc7fc07b6aeef0408307d364499770e2e0 -Author: Clint Rogers -Date: Wed Aug 8 15:53:16 2012 -0700 - - Causes the makefile to check for a dependency that has been left - out before; closes #5559. - -M Makefile - -commit f5d5190a6eab8242cfd6843562e6781128f5645e -Author: Jürg Billeter -Date: Mon Aug 6 15:53:31 2012 +0200 - - Do not access static members with instance references - -M src/Application.vala -M src/Photo.vala -M src/Printing.vala -M src/searches/SearchBoolean.vala - -commit 148ebd3905c216f2c37158ccf47ede67f9d1cba7 -Author: Clint Rogers -Date: Tue Jul 31 13:39:50 2012 -0700 - - Replaced hard tabs with spaces per Yorba coding standards. - -M plugins/shotwell-publishing/PicasaPublishing.vala - -commit 2cd8361662df49f9c93080da60f6daa4e3429b18 -Author: Clint Rogers -Date: Fri Jul 27 12:22:35 2012 -0700 - - Relaxes an assertion that could occur when attempting to remove a - photo from a metadata-writing queue if the queue didn't contain the - photo to begin with; closes #3641. - -M src/MetadataWriter.vala - -commit 7c2e51d3bbf9457d4dd37c60e3f59055c3923cbf -Author: Clint Rogers -Date: Fri Jul 27 11:54:25 2012 -0700 - - Migrates away from libunique to GtkApplication; closes #5260. - -M src/Application.vala -M src/camera/ImportPage.vala -M src/library/LibraryWindow.vala -M src/main.vala - -commit da6e2fa25d65af18c678c32a5db21607bf1fd84a -Author: Clint Rogers -Date: Fri Jul 13 15:03:40 2012 -0700 - - Makes HierarchicalTagIndex.vala not be executable, fixes #5551. - -M src/tags/HierarchicalTagIndex.vala - -commit 9ce2d5be632c6c7f8cf8c131069ef32750ed08cf -Author: Clint Rogers -Date: Fri Jul 13 12:31:08 2012 -0700 - - Fixes #4805, relaxes an assertion that could occur when attempting - to remove a tombstone from a tombstone source collection if the - tombstone was never in the collection to begin with (that is, it's - already removed, so no need to assert here). - -M src/Tombstone.vala - -commit c5f40d35843832374e645a6fb2753416b0702f43 -Author: Clint Rogers -Date: Fri Jul 13 12:14:59 2012 -0700 - - Prevents application from jumping to newly-created tags; closes - #4721. - -M src/tags/Branch.vala - -commit 3e6989a0955ca4c65a3be32b62d20b774c1294eb -Author: Clint Rogers -Date: Tue Jul 10 14:21:48 2012 -0700 - - Forces arguments to Dimensions constructor to sensible default if - we get here and they're negative; closes #5527. - -M src/Dimensions.vala - -commit 2d889707a9710f3af90fb26c78287cbd38aaaa40 -Author: Sergey Davidoff -Date: Tue Jul 10 12:43:08 2012 -0700 - - Updates Shotwell's desktop integration file to reflect MIME types - newly supported since the previous update to the desktop integration - file. - -M THANKS -M misc/shotwell-viewer.desktop.head - -commit 07719453ea3fc64e284e8dfee6069b03eced25a3 -Author: Clint Rogers -Date: Tue Jul 10 12:41:49 2012 -0700 - - Corrects a problem where the application would occasionally try to - iterate through the keyword list when it was null; closes #5468. - -M src/MetadataWriter.vala - -commit 038f0a7e483360c385671a73a7b82576f16d10c6 -Author: Eric Gregory -Date: Mon Jul 2 11:58:10 2012 -0700 - - Closes #5460 Sidebar style class added - -M src/library/LibraryWindow.vala -M src/sidebar/Tree.vala - -commit 1b70d6393c33187f80e60454ed205dc1dead85bf -Author: Clint Rogers -Date: Mon Jul 2 11:51:56 2012 -0700 - - Makes a slight change to GRaw.vala to match a binding change in the - LibRaw .vapi; closes #5476. - -M src/photos/GRaw.vala - -commit 9edd7d12d9b428d91391b930caee11765c8d5d8e -Author: Clint Rogers -Date: Tue Jun 26 14:38:31 2012 -0700 - - Makes Shotwell explicitly require Vala 0.17.2 (needed due to binding - changes). - -M Makefile -M debian/control - -commit 35f856338c65ce13878098c40cd913fcb453a5c4 -Author: Clint Rogers -Date: Tue Jun 26 14:34:00 2012 -0700 - - Makes a minor modification to allow compilation by Vala 0.17.2; - closes #5453. - - (Due to a binding change, Gtk.TreeStore's remove() now requires a - 'ref' argument here.) - -M src/sidebar/Tree.vala - -commit 033873398a507bada47942ab79e0f767b521d927 -Author: Clint Rogers -Date: Mon Jun 25 14:22:10 2012 -0700 - - Uses Bruno's fix to correct problem when publishing image with a ' - in the title; closes #3880. - -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit 1455d92d43cd30c74a07ebc42dceccfef8b4927f -Author: Clint Rogers -Date: Fri Jun 15 16:30:40 2012 -0700 - - Removes an unneeded compilation flag. - -M Makefile -M plugins/Makefile.plugin.mk - -commit 31ee427b936f075dacb5fbc40b9860f133fb7059 -Author: Clint Rogers -Date: Thu Jun 14 11:57:09 2012 -0700 - - Causes a high-quality repaint to happen automatically 100ms after - the straighten slider was last moved, closes #4616. - -M src/editing_tools/StraightenTool.vala - -commit 5f5620fc55a2fa7e16ddd65592dab7aa199ef807 -Author: Clint Rogers -Date: Thu Jun 14 11:49:39 2012 -0700 - - Closes #4067, prevents application from offering to write exposure - time/date to video files inappropriately. - -M src/CollectionPage.vala -M src/Dialogs.vala - -commit 039cf996c8c91c2ecc84e1921998c62bd82fe260 -Author: Clint Rogers -Date: Wed Jun 13 17:24:03 2012 -0700 - - Closes #4724 by making the minimum allowed GLib version be set for - both the main makefile and the plugin makefile with a single variable, - keeping them synced. - -M Makefile -M plugins/Makefile.plugin.mk - -commit 5b3b87584d9011b98faf46957fab2166340671c8 -Author: Lucas Beeler -Date: Wed Jun 13 15:45:31 2012 -0700 - - Ports the Picasa Web Albums Connector to use OAuth - authentication. Closes #4759, #5374, #4299, #3752, #3307, and half - of #3445. - -M debian/control -M misc/org.yorba.shotwell.gschema.xml -M misc/shotwell.convert -M plugins/plugins.mk -M plugins/shotwell-publishing/Makefile -M plugins/shotwell-publishing/PicasaPublishing.vala -A plugins/shotwell-publishing/picasa_auth_code_entry_pane.glade -A plugins/shotwell-publishing/picasa_not_set_up_pane.glade - -commit b24079554cb4958e7a2062e096efe08728c367e1 -Author: Michael Axiak -Date: Wed Jun 6 10:33:32 2012 -0700 - - Adds references to two .glade files to the plugins Makefile that - were mistakenly omitted during the migration of the publishing UI - to Glade. Closes #5350. - -M plugins/plugins.mk - -commit efa4856b6001817be6d190743641caa19eaa4209 -Author: clinton -Date: Tue Jun 5 15:35:55 2012 -0700 - - Proposed patch would allow 32-bit versions of the app to correctly - accept, display and sort photos with dates ranging between May, - 1904 and April, 2038. Closes #3040. - -M src/Dialogs.vala -M src/Thumbnail.vala - -commit 5ed056e091210e58cf55852325e64207a196f33b -Author: Michael Axiak -Date: Mon Jun 4 15:55:11 2012 -0700 - - Enables upload of titles & tags to Picasa Web Albums; closes part - of #1326. - -M THANKS -M plugins/shotwell-publishing/PicasaPublishing.vala - -commit 1ee63593713ec29a70266d6ef3e868b4b928bbea -Author: Clint Rogers -Date: Mon Jun 4 14:59:13 2012 -0700 - - Forces the size combo to have a meaningful value; closes #5342. - -M plugins/shotwell-publishing/PicasaPublishing.vala - -commit a0747b2b3088d1e728a21318935d58cf8a1e987b -Author: Clint Rogers -Date: Mon Jun 4 12:01:07 2012 -0700 - - Yet another attempt at fixing Oneiric 32 dailies... - -M Makefile -M plugins/Makefile.plugin.mk - -commit 63040cc13a5d00e327b50af96b4440d1d3d41f5d -Author: Luca Falavigna -Date: Mon Jun 4 10:09:43 2012 -0700 - - Fixed a typo in src/ThumbnailCache.vala. - -M src/ThumbnailCache.vala - -commit 8c429c7725cd12d1d5781db73af698018959bc88 -Author: Clint Rogers -Date: Fri Jun 1 17:32:34 2012 -0700 - - Adds support for common paper sizes as crop ratios; closes #4413. - -M src/editing_tools/EditingTools.vala - -commit 6b4b1b55b924a09ddc4a98840f9db5cf0368cbf0 -Author: Clint Rogers -Date: Fri Jun 1 14:33:29 2012 -0700 - - Patch removes nearly all the deprecated widget warnings, closes #4724. - -M src/Dialogs.vala -M src/MediaPage.vala -M src/PhotoPage.vala -M src/SlideshowPage.vala -M src/Tag.vala -M src/data_imports/DataImportsUI.vala -M src/library/LibraryWindow.vala -M src/publishing/PublishingUI.vala - -commit ddd81fd786f1790cd4bb70b82e0fd925ed4535df -Author: Clint Rogers -Date: Fri Jun 1 14:05:34 2012 -0700 - - Works around a problem where displaying the welcome dialog can - interfere with talking to a camera, closes #4997. - -M src/Dialogs.vala - -commit 15a2b28d8ed312269d9d2ed780d8f93ed1532b25 -Author: Clint Rogers -Date: Fri Jun 1 13:51:53 2012 -0700 - - This fix the 'g_mapped_file_free' warning, as well as all the - deprecated widget warnings in the editing tools. - -M plugins/Makefile.plugin.mk -M src/editing_tools/EditingTools.vala -M src/editing_tools/StraightenTool.vala - -commit 858be4f3890b644aee2ced52e42ad246e0135aef -Author: Lucas Beeler -Date: Fri Jun 1 13:41:18 2012 -0700 - - Added Ville Skyttä to the THANKS file. - -M THANKS - -commit 981bd54c42227979c7df9ac16fa3c4107974b0dc -Author: Ville Skyttä -Date: Fri Jun 1 13:38:28 2012 -0700 - - Removes a duplicate MIME type entry in the desktop integration file - that describes the types of files Shotwell handles in direct-edit - mode. - -M misc/shotwell-viewer.desktop.head - -commit de3e25a9e7bfd4f327a077b0ab3bcc2dabe0ee4b -Author: Clint Rogers -Date: Tue May 29 11:13:03 2012 -0700 - - Migrates the Youtube publishing options pane to Glade; closes #5170. - -M plugins/common/ui.vala -M plugins/shotwell-publishing/Makefile -M plugins/shotwell-publishing/YouTubePublishing.vala -A plugins/shotwell-publishing/youtube_publishing_options_pane.glade - -commit 5d78d2bc7aaacd70dfd18f5b68419b69fcbcdeb8 -Author: Clint Rogers -Date: Tue May 29 15:43:00 2012 -0700 - - Sets the name of the required libgexiv2 package to what Precise needs; - closes #5289. - -M debian/control - -commit e868b3369da5f906b44c5035536f221877d952cd -Author: Clint Rogers -Date: Thu May 24 12:20:40 2012 -0700 - - Moves the common elements of the children of ConcreteDialogPane up - to the parent class; closes #5173. - -M src/publishing/PublishingUI.vala - -commit 3486eefe39c7836936784d103ee0be01364255af -Author: Clint Rogers -Date: Wed May 23 17:47:30 2012 -0700 - - Proposed patch would migrate the Flickr PIN entry pane to Glade, - closing #5295. - -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/Makefile -A plugins/shotwell-publishing/flickr_pin_entry_pane.glade - -commit ad25da60b488ff6f65d487f7551852fa12b582c7 -Author: Clint Rogers -Date: Wed May 23 12:38:20 2012 -0700 - - Proposed patch would migrate the StaticMessagePane into Glade, - closing part of #5173. - -M src/publishing/PublishingPluginHost.vala -M src/publishing/PublishingUI.vala -M ui/shotwell.glade - -commit 1835f5040cbcc553d5714b0800ede7baa6c38dcb -Author: Clint Rogers -Date: Wed May 23 11:23:26 2012 -0700 - - Adds some files that get left out when running make dist; closes - #5290 and #5293. - -M plugins/plugins.mk - -commit 361a5a1a269c3add0d4c3a77289577239db587e2 -Author: Clint Rogers -Date: Fri May 18 17:03:54 2012 -0700 - - Proposed patch would migrate the welcome pane over to Glade; addresses - part of #5173. - -M src/publishing/PublishingUI.vala -M ui/shotwell.glade - -commit e19a1f9d3dc8f371abdf4464b9fea713bb1561b4 -Author: Clint Rogers -Date: Fri May 18 13:21:38 2012 -0700 - - We now attempt to find missing thumbnails during the startup scan - and regenerate them in the background. Closes #2889. - -M src/Photo.vala -M src/PhotoMonitor.vala - -commit bc490559c2a25c2c4367a9489effff7f736c601c -Author: Clint Rogers -Date: Thu May 17 11:09:52 2012 -0700 - - Proposed patch would add a 'Report A Problem...' feature to the help - menu, closing #5211. - -M src/AppWindow.vala -M src/Resources.vala -M ui/direct.ui -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/media.ui -M ui/offline.ui -M ui/photo.ui -M ui/trash.ui - -commit 1dd71c331d6e0dfb4ddfe065fa8a490ba6cdb173 -Author: Clint Rogers -Date: Tue May 15 12:40:17 2012 -0700 - - Migrates the publishing progress bar to a Glade-based widget; closes - part of #5173. - -M src/publishing/PublishingUI.vala -M ui/shotwell.glade - -commit 50a881907461189f5df75b67ba89c0d9fa78b75b -Author: Clint Rogers -Date: Mon May 14 18:47:49 2012 -0700 - - Migrates Picasa publishing options pane to Glade; closes #5171. - -M plugins/shotwell-publishing/Makefile -M plugins/shotwell-publishing/PicasaPublishing.vala -A plugins/shotwell-publishing/picasa_publishing_options_pane.glade - -commit 30af8f6bf097d7cbf4d8786335d7dd700a1c6319 -Author: Clint Rogers -Date: Mon May 14 17:51:08 2012 -0700 - - Corrects an issue where some context menus inappropriately used - the same key as a mnemonic more than once; closes #5197. - -M src/MediaPage.vala -M src/PhotoPage.vala -M src/Resources.vala -M ui/collection.ui -M ui/photo_context.ui - -commit 7ce2f47eaf2b59b72a74943ea6f425cc1d33290b -Author: William Jon McCann -Date: Mon May 14 16:04:15 2012 -0700 - - Stores auxilliary Shotwell files in their XDG recommended locations; - closes #421. - -M THANKS -M src/AppDirs.vala -M src/ThumbnailCache.vala -M src/main.vala - -commit a17621b6b157d6173f3497611153570489de379d -Author: Lucas Beeler -Date: Thu May 10 16:53:11 2012 -0700 - - Added the names of recent external contributors to the THANKS file. - -M THANKS - -commit bf19b301c8b14d221a4045f563e85780e076206a -Author: Eser Aygün -Date: Thu May 10 16:49:14 2012 -0700 - - Allows more fine-grained control over viewing permissions of photos - published to Flickr. Closes #5182. - -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit 2857fb8d47ea9ac1484bc3b2a425a0a2ce313fd4 -Author: Laurent Rocher -Date: Thu May 10 16:43:38 2012 -0700 - - Uses a more generic scanf format string for parsing non-standard - EXIF dates. Closes #3850. - -M src/MediaMetadata.vala - -commit e9fc2899326919cfa519178b7267b014a06ad5a3 -Author: Alexander Sack -Date: Thu May 10 16:29:47 2012 -0700 - - Adds Google+-optimized publishing size to list of Picasa Web Albums - publishing sizes. Closes #5210. - -M plugins/shotwell-publishing/PicasaPublishing.vala - -commit 0799f04280351b3d00de1463e098262698020b61 -Author: Clint Rogers -Date: Wed May 9 18:42:57 2012 -0700 - - Manually merging in makefile and debian changelog fixes from branch. - -M NEWS -M debian/changelog - -commit 802321390dd13bc70ae90bcc739aae8ed068d456 -Author: Clint Rogers -Date: Wed May 9 17:44:07 2012 -0700 - - Increment version number. - -M Makefile - -commit 907ad8b09f80468630db15a782fea289b96fdc8a -Author: Lucas Beeler -Date: Wed May 9 14:03:21 2012 -0700 - - Properly takes padding into account when doing custom hit-testing of - enable/disable checkboxes in the plugin manifest widget. Closes #5230. - -M src/plugins/ManifestWidget.vala - -commit 4f6aa2bfb6b64bdfd5eec7dc66be73e823a12652 -Author: Clint Rogers -Date: Tue May 8 14:44:58 2012 -0700 - - Corrects an issue in which the name of a symbol in the FSpot importer - shlib could collide with the name of a symbol inside the core; - closes #5078. - -M plugins/common/SqliteSupport.vala -M plugins/shotwell-data-imports/FSpotDatabaseTable.vala - -commit efdf9744cd0879cfadf3d7149ebd70ee03bfaed1 -Author: clinton -Date: Tue May 8 11:14:27 2012 -0700 - - Closes #5219; disables forced sidebar background colour and uses - the theme's instead. - -M src/library/LibraryWindow.vala - -commit 3d3c7a8df0422eee9b21f3df7e256cb8e944ae64 -Author: clinton -Date: Mon May 7 12:46:30 2012 -0700 - - Prevents tags with only one media source from being destroyed after - that media source is trashed and expunged, also prevents and fixes - #5068. - -M src/core/ContainerSourceCollection.vala - -commit cf0a3eb832ee735d3167fe83dc243f846aba24d2 -Author: clinton -Date: Thu May 3 16:59:01 2012 -0700 - - Moves the Flickr publishing option pane into Glade; closes #5172. - -M plugins/common/ui.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -A plugins/shotwell-publishing/flickr_publishing_options_pane.glade - -commit 8922dde898c95b3fa1a4b189f93954d89a3163cd -Author: clinton -Date: Wed May 2 10:44:01 2012 -0700 - - Proposed patch would fix #5147 by marking unwanted actions as - insensitive when we're on a SinglePhotoPage, and putting them back - like we found them when switching to a CheckerboardPage. - -M src/SearchFilter.vala - -commit 4dc989df6b0e923c9e4b11ec568588a8b8a5b9f2 -Author: Clint Rogers -Date: Mon Apr 30 15:43:02 2012 -0700 - - Migrates the Facebook publishing options pane into Glade, fixes part - of #3205. - -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/Makefile -A plugins/shotwell-publishing/facebook_publishing_options_pane.glade - -commit 7b0340f9b6c4fda7bab1c9efc00bd22ccac6672a -Author: Clint Rogers -Date: Mon Apr 30 14:54:00 2012 -0700 - - Attempts to enumerate several well-known directories where .MTS - cameras tend to put their movie files; closes #5160. - -M src/camera/ImportPage.vala - -commit 8ffe2a186503b42af7df710e8d9f40585832a073 -Author: Clint Rogers -Date: Mon Apr 30 14:43:56 2012 -0700 - - Corrects an issue where some confirmation dialogs would - inappropriately display raw pango markup; closes #5166. - -M src/AppWindow.vala - -commit 882c91b2a5f6996472f9f24edb32af2c9ce05979 -Author: Clint Rogers -Date: Thu Apr 26 11:44:29 2012 -0700 - - Closes #5134 (array subscript out-of-bounds). - -M src/Resources.vala - -commit 65f07e745a726b001109cee9922ac1cb89d8f8ce -Author: Clint Rogers -Date: Wed Apr 25 18:58:06 2012 -0700 - - Corrects an issue where pressing [Enter] in certain text entry - dialogs did not activate the default response; fixes #5086. - -M src/Dialogs.vala -M ui/shotwell.glade - -commit 46e39b3cd4a69f619d0c281cbdcacaa89be0783a -Author: Clint Rogers -Date: Wed Apr 25 12:51:37 2012 -0700 - - Corrects an issue where the Unity progress bar would stop animating - at 50% shortly after launching the app; closes #5100. - -M src/Dialogs.vala -M src/UnityProgressBar.vala -M src/camera/ImportPage.vala -M src/library/ImportQueuePage.vala -M src/library/LibraryWindow.vala - -commit 06892bdb0d95ad45672a7d8be7381b9f3f2212a0 -Author: Clint Rogers -Date: Tue Apr 24 17:09:41 2012 -0700 - - Corrects a soft-lockup that could occur when attempting to autoenhance - certain images; closes #5087. - -M src/ColorTransformation.vala - -commit e3014bdb79b533363ab23aeda5e1c9d99d113f7c -Author: Adam Dingle -Date: Mon Apr 23 10:02:47 2012 -0700 - - Improved a string in the F-Spot importer. - -M plugins/shotwell-data-imports/FSpotImporter.vala - -commit a4a5561c35f96152e7b613a55bc89ba1b3f489cc -Author: Clint Rogers -Date: Thu Apr 19 12:57:42 2012 -0700 - - Corrects a problem in which plugins.mk would look in the wrong place - for some of Piwigo's assets. - -M plugins/plugins.mk - -commit 26abd5225419455ad3e2f2a3304da74a78537b32 -Author: Clint Rogers -Date: Wed Apr 18 17:50:02 2012 -0700 - - Corrects a problem where writing of hierarchical tag data to image - files would inappropriately reoccur, closes #4297. - -M src/MetadataWriter.vala - -commit 09a1abe8e9fcb2cb2e3a7f096dbdcd193c64f8a5 -Author: Clint Rogers -Date: Wed Apr 18 17:12:28 2012 -0700 - - Attempts to make the text entry dialog modifiable from within Glade; - closes #4501. - -M src/Dialogs.vala -M ui/shotwell.glade - -commit d0878de79bf236a6db3f241619afed36bdbf48eb -Author: Clint Rogers -Date: Wed Apr 18 15:01:04 2012 -0700 - - Closes #4803, promotes Piwigo plugin to 'core'. - -M plugins/shotwell-publishing-extras/Makefile -M plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala -M plugins/shotwell-publishing/Makefile -R097 plugins/shotwell-publishing-extras/PiwigoPublishing.vala -plugins/shotwell-publishing/PiwigoPublishing.vala -R100 plugins/shotwell-publishing-extras/piwigo.png -plugins/shotwell-publishing/piwigo.png -R100 -plugins/shotwell-publishing-extras/piwigo_authentication_pane.glade -plugins/shotwell-publishing/piwigo_authentication_pane.glade -R100 -plugins/shotwell-publishing-extras/piwigo_publishing_options_pane.glade -plugins/shotwell-publishing/piwigo_publishing_options_pane.glade -M plugins/shotwell-publishing/shotwell-publishing.vala - -commit fa30fd0433a689be71c72d9a23006d25acf8e67f -Author: Clint Rogers -Date: Mon Apr 16 17:04:14 2012 -0700 - - Corrects an issue where some text entry dialogs would fail to display; - closes #5066. - -M src/Dialogs.vala -M ui/shotwell.glade - -commit ccebfe754515f1dcb7f1b4e7403efbdc6c23f70f -Author: Clint Rogers -Date: Fri Apr 13 16:37:13 2012 -0700 - - Closes #5044, prevents a crash that could occur in direct mode - after saving edits, re-entering the saved photo, then entering and - exiting full-screen. - -M src/core/ViewCollection.vala - -commit c500bbb12a62089e788888a0cd1c748dc36a0417 -Author: Clint Rogers -Date: Fri Apr 13 16:16:39 2012 -0700 - - Closes #5043, makes the naming of the create-a-search feature in - menus consistent across the app. - -M src/searches/Branch.vala -M src/sidebar/Tree.vala - -commit ac8881404f4e5b9f99ea1722ae49e55efbcf6ae2 -Author: Clint Rogers -Date: Wed Apr 11 17:23:43 2012 -0700 - - Merging in changes from Shotwell 0.12.2 (manually merged component). - -M Makefile - -commit 6b1c3fa505c56ec2a76faa37d1d16864cc543b53 -Author: Clint Rogers -Date: Wed Apr 11 17:19:12 2012 -0700 - - Merging in changes from Shotwell 0.12.2 released version. - -M NEWS -M debian/changelog - -commit 18ba37abfca8a613d3c75b0f62f0939c57df6fae -Author: Clint Rogers -Date: Wed Apr 11 14:08:25 2012 -0700 - - Corrects a problem where certain Youtube publishing error messages - would display incorrectly; closes #5041. - - (Note that no strings are modified by this commit; existing strings - are merely re-ordered.) - -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit 73872142e11053e51b52c3bf7b896f44ab16215c -Author: Clint Rogers -Date: Tue Apr 10 19:08:08 2012 -0700 - - Massaged shotwell.glade to play nice with modern versions of Glade, - removed reliance on nonexistant catalog file; closes #4501. - - Note: we no longer need to build the .so file to run Glade on - Shotwell; simply opening the .glade file directly is enough. - -M ui/shotwell.glade - -commit e8fc961576854e44ea398960c888006c3623f31f -Author: Lucas Beeler -Date: Tue Apr 10 18:49:25 2012 -0700 - - Added Camilo Polymeris to the THANKS file. - -M THANKS - -commit e6755cb9951c737c0ba5791ad5b937bede6e796e -Author: Camilo Polymeris -Date: Tue Apr 10 18:40:33 2012 -0700 - - Allows the user to draw a level-line in the straighten tool to - specify a level horizon. Closes #4940. - -M src/PhotoPage.vala -M src/editing_tools/StraightenTool.vala - -commit bea0280801de07c70e83256eb9f25d0e7853b2d0 -Author: Clint Rogers -Date: Tue Apr 10 16:45:49 2012 -0700 - - Removing this as part of #4962. - -D ui/faces.ui - -commit fd825189d68bdf48018cb593c8986f01c0e21838 -Author: Clint Rogers -Date: Tue Apr 10 16:01:31 2012 -0700 - - Switches tarball format over to .xz compression; closes #4979. - -M Makefile - -commit 121039d314b273f8cd3d1c1fa3f0f438fb8a2c91 -Author: Clint Rogers -Date: Tue Apr 10 15:42:20 2012 -0700 - - Improves handling of single quotes in path names when trying to - display a file in the filemanager; closes #4983. - -M src/AppWindow.vala - -commit 46148f17c79b9acce4eb8023d6e1969f92f631a5 -Author: Clint Rogers -Date: Tue Apr 10 15:27:22 2012 -0700 - - Corrects an issue where pressing Alt + D in the preferences dialog - would highlight the wrong widget; closes #4986. - -M src/Dialogs.vala -M ui/shotwell.glade - -commit e43061340ea8f7b3ee09ef4d1c00225be53a7d7d -Author: Clint Rogers -Date: Mon Apr 9 17:22:53 2012 -0700 - - Fixes #5028, puts in place a mechanism for pages with lengthy - startup procedures to initialize their - UI separately from the long startup. - -M src/Page.vala -M src/camera/ImportPage.vala -M src/library/LibraryWindow.vala - -commit 635d6f39b8b0326841598e4aff7afed95bb2c874 -Author: Lucas Beeler -Date: Mon Apr 9 13:14:51 2012 -0700 - - Added Chris Hemsing to the THANKS file. - -M THANKS - -commit ed42fbce19af9113ba8f2f07491cf7be893deb97 -Author: Chris Hemsing -Date: Mon Apr 9 13:13:17 2012 -0700 - - Fixes an issue in which rejected photos would be displayed at startup - even though the view filter was set merely to "All Photos" not "All + - Rejected." Closes #4300. - -M src/library/LibraryWindow.vala - -commit 29dcec3dcbd4f27b72fb80c68d69d9fe7eafb30e -Author: Adam Dingle -Date: Sun Apr 8 07:19:14 2012 -0700 - - Require libraw 0.13.2 or higher. Fixes #3062. Fixes #3534. - -M Makefile -D libraw-config - -commit ba96b4bdc312cfc2f86fffe0689a4ce4735e4e80 -Author: Adam Dingle -Date: Sat Apr 7 08:38:31 2012 -0700 - - Fixed #4962 (remove faces code from tree). - -M src/Commands.vala -M src/Dialogs.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/SearchFilter.vala -D src/db/FaceLocationTable.vala -D src/db/FaceTable.vala -M src/db/mk/db.mk -M src/editing_tools/EditingTools.vala -D src/faces/Branch.vala -D src/faces/Face.vala -D src/faces/FaceLocation.vala -D src/faces/FacePage.vala -D src/faces/FaceShape.vala -D src/faces/Faces.vala -D src/faces/mk/faces.mk -M src/library/LibraryWindow.vala -M src/library/mk/library.mk -M src/main.vala -M src/searches/SavedSearchDialog.vala -M src/searches/SearchBoolean.vala -M src/util/ui.vala -M ui/photo.ui -M units.mk - -commit 793399210d48cfdf5f99f5dc66dc551bce31b1ad -Author: Clint Rogers -Date: Thu Apr 5 17:09:08 2012 -0700 - - Adds some logic to fix up databases that are corrupted in a certain - manner and avoid a DB constraint failure; closes #4995. - -M src/Tag.vala - -commit 863d6b74b20fa68f43b21ec44613a2f9dac93802 -Author: Laura Khalil -Date: Thu Apr 5 14:25:09 2012 -0700 - - Updates to po translation files for Shotwell 0.12.2 - -M po/shotwell-core/en_GB.po -M po/shotwell-core/et.po -M po/shotwell-core/eu.po -M po/shotwell-core/it.po -M po/shotwell-core/pl.po -M po/shotwell-core/sr.po -M po/shotwell-core/uk.po -M po/shotwell-extras/en_GB.po -M po/shotwell-extras/eu.po -M po/shotwell-extras/pl.po -M po/shotwell-extras/sr.po -M po/shotwell-extras/uk.po - -commit fc2143afa47f20ab0b9364fc7e55264f246866e5 -Author: Clint Rogers -Date: Thu Apr 5 10:55:40 2012 -0700 - - Closes #4960; causes the Unity progress bar routines to be available - via a configure option after running make dist. - -M Makefile -M src/UnityProgressBar.vala - -commit 0d6ad16c5b71db2282cbeda258f596bbc09ab3f9 -Author: Clint Rogers -Date: Tue Apr 3 16:12:12 2012 -0700 - - Corrects an issue where event date ranges spanning exactly two days - would display incorrectly in ja_JP; part of #4976. - -M po/shotwell-core/ja.po - -commit 3f8ff37d3ee095f5fe81e0a7cc6d9f6bb23253e4 -Author: Lucas Beeler -Date: Tue Apr 3 14:34:26 2012 -0700 - - Fixes a minor POT file merge error. - -M po/shotwell-core/shotwell.pot - -commit 73daf0e17a49c23f94195a174b60c7f2d437188a -Author: Laura Khalil -Date: Tue Apr 3 14:19:02 2012 -0700 - - Merge commit. - -M po/shotwell-core/shotwell.pot -M po/shotwell-extras/shotwell-extras.pot - -commit 7a7ec600953380d3da84532c186a9e1730da147a -Author: Clint Rogers -Date: Tue Apr 3 13:32:32 2012 -0700 - - Adds a descriptive comment to pretty-printed date ranges spanning - exactly two days in shotwell.pot; closes #4976. - -M po/shotwell-core/shotwell.pot - -commit 0a1d925b0b64a2a18ba5513e589b74225e8f6031 -Author: Jonas Bushart -Date: Mon Apr 2 18:36:31 2012 -0700 - - Warns user that photo edits will be lost when switching development - modes for RAW photos. Closes #4060. - -M src/Dialogs.vala -M src/MediaPage.vala -M src/PhotoPage.vala - -commit be118c7bea13d7503b43bb66b173b20ab2b9bd6c -Author: Laura Khalil -Date: Mon Apr 2 18:14:09 2012 -0700 - - Updated Help instructions. Fixed #4946 - -M Makefile -M help/C/edit-rotate.page -A help/C/edit-straighten.page -M help/C/other-files.page -M help/C/other-plugins.page - -commit 34ef3d91e76384387aa3bce60447dceb746c0102 -Author: Adam Dingle -Date: Sat Mar 31 12:58:30 2012 -0700 - - New PPA build for Oneiric. - -M debian/changelog - -commit b0e30957e7d615de5c7382a6368b83ddc7982cae -Author: Luca Falavigna -Date: Sat Mar 31 09:06:50 2012 -0700 - - Fixed #4973 (FTBFS with gcc-4.6.3). - -M src/AppWindow.vala - -commit 2c2a25a4b848ea1b033d67e72faae1f6a6f5292e -Author: Clint Rogers -Date: Fri Mar 30 16:44:15 2012 -0700 - - Corrects an issue where certain pretty-printed date ranges could - display incorrectly in en_gb; closes #4976. - -M po/shotwell-core/en_GB.po - -commit 2f11dba9d34c792cc0740bb011743f0cf3b1f3ba -Author: Lucas Beeler -Date: Fri Mar 30 15:24:38 2012 -0700 - - This reverts commit 9c405d1942577bf15cc83754c52e766005c9e079. - -M src/Dialogs.vala - -commit 911199b41f6d7dede042376ec94e0c6fc80ef898 -Author: Clint Rogers -Date: Fri Mar 30 15:19:56 2012 -0700 - - Makes sure all the .help files needed for correct operation are - copied; closes #4961. - -M Makefile - -commit 9c405d1942577bf15cc83754c52e766005c9e079 -Author: Lucas Beeler -Date: Fri Mar 30 15:10:39 2012 -0700 - - Simplifies language in the Welcome Dialog to make it more - comprehensible to novice users. Closes #4956. - -M src/Dialogs.vala - -commit cacc39ec226c6fe683039b23eb1519d88f2b2c6e -Author: Lucas Beeler -Date: Fri Mar 30 15:05:06 2012 -0700 - - Fixes confusing strings that are shown to the user following an - ACCOUNT_NOT_SET_UP or an ADDITIONAL_SECURITY failure scenario in - the YouTube publisher. Closes #4941. - -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit 6594d38396e40950f16b6326f7f9800b024b9eee -Author: Clint Rogers -Date: Fri Mar 30 14:54:57 2012 -0700 - - Eliminates a duplicate mnemonic in the preferences dialog. Closes - #4934. - -M ui/shotwell.glade - -commit c7f72906f7d101da05c7eddcb285f889c25bf34e -Author: Lucas Beeler -Date: Fri Mar 30 14:39:00 2012 -0700 - - Properly marks up strings in the Piwigo publishing dialog for - translation. Closes #4889. - -M plugins/shotwell-publishing-extras/PiwigoPublishing.vala - -commit 49ce449a852747ac6172b24fd54e8bc7bfc8b41a -Author: Clint Rogers -Date: Fri Mar 30 11:27:12 2012 -0700 - - Restores the missing tooltip for the merge button; closes #4825. - -M src/Resources.vala -M src/events/EventsDirectoryPage.vala - -commit 25c1ba50120418bc4d2afda6a445b972d6d36013 -Author: Clint Rogers -Date: Thu Mar 29 17:11:56 2012 -0700 - - Prevent ourselves from attempting to call an instance method if the - import plugin host instance is null here. Closes #4955. - -M src/data_imports/DataImportsUI.vala - -commit 89a2c215947f8e9f9cdade545004dc3369dbbd4c -Author: Clint Rogers -Date: Thu Mar 29 14:20:38 2012 -0700 - - Rewords the 'new search' menu item to be more meaningful and less - confusing, closes #4855. Many thanks to Trevor Mehard and Scott - Rosenbrook for this patch. - -M src/library/LibraryWindow.vala - -commit 3479ab06e4eaa1996e8ed7a1da2e5dc41f419e15 -Author: Clint Rogers -Date: Thu Mar 29 14:13:11 2012 -0700 - - Increment version number to '+trunk'. - -M Makefile - -commit 02f3d9dda432cce70faf9181bab77c21abde51dd -Author: Clint Rogers -Date: Thu Mar 29 13:51:55 2012 -0700 - - Closes #4939, adds a missing 's'. - -M src/publishing/PublishingUI.vala - -commit 62735d4b71123563659cc8c61ba2e6746fc4e39d -Author: Clint Rogers -Date: Wed Mar 28 15:13:33 2012 -0700 - - Increment version number to 0.12.1. - -M Makefile -M NEWS -M debian/changelog - -commit 5876456621f2ae7afaabd8d93b0c33a8fdfa6eb9 -Author: Clint Rogers -Date: Wed Mar 28 15:01:14 2012 -0700 - - Corrects an issue where direct-edit mode was broken by the absence - of a certain .ui file in the tarball; closes #4959. - -M Makefile - -commit 67e6b3748733aa1d231968de82a8e47596921832 -Author: Clint Rogers -Date: Tue Mar 27 16:41:32 2012 -0700 - - Incrementing version number. - -M Makefile - -commit 98b2a749e9ef285e0e4caeb513e2beddb61ec878 -Author: Clint Rogers -Date: Tue Mar 27 14:08:58 2012 -0700 - - Release 0.12.0. - -M Makefile - -commit b7908f6694e89f50328e22d1dfd04f9872dc5a3d -Author: Clint Rogers -Date: Tue Mar 27 13:20:26 2012 -0700 - - Removed references to searchbox-clear.svg and searchbox-find.svg, - since we use the systemwide builtins for this now, instead of our own. - -M Makefile - -commit 882f3cfb9690cd5ac6680496e97ffd1fd0f0e700 -Author: Clint Rogers -Date: Tue Mar 27 13:19:41 2012 -0700 - - Updated NEWS and debian/changelog - -M NEWS -M debian/changelog - -commit c53c8ef81e7b9cd8aed18e19d1fd1a15f8d8fbbe -Author: Clint Rogers -Date: Tue Mar 27 12:03:18 2012 -0700 - - Closes #4935; corrects a problem where focus wasn't transferred - to the right widget in the preferences dialog after receiving an - Alt+P keypress. - -M ui/shotwell.glade - -commit 2e5ad4304daed820209a5d677f2695601f6163f8 -Author: Clint Rogers -Date: Mon Mar 26 18:29:42 2012 -0700 - - Gives the capability of controlling whether dialogs generated with - error_message_with_title() will have their body text escaped or not, - and fixes a dialog that didn't need escaping, closes #4930. - -M src/AppWindow.vala -M src/Dialogs.vala -M src/publishing/PublishingUI.vala - -commit 9fc8df8919204061307de291ccd06e957567f3ea -Author: Clint Rogers -Date: Mon Mar 26 18:25:59 2012 -0700 - - Disables the 'rotate' button in direct mode until a rotate has - actually finished; closes #4904. - - (This fixes the case where repeated clicks on the 'rotate' button - appear to do nothing on very large images and/or slower computers.) - -M src/Photo.vala -M src/PhotoPage.vala -M src/direct/DirectPhoto.vala -M src/direct/DirectPhotoPage.vala - -commit b46500533a2f40959fb381efa59a7270cc50ff12 -Author: Clint Rogers -Date: Mon Mar 26 15:48:44 2012 -0700 - - Corrects an issue where the timer in the publishing UI could get - into an inconsistent state if the user tried to publish with no - plugins enabled; closes #4929. - -M src/publishing/PublishingUI.vala - -commit fe3857abcc43ae62444d83f0ba97f02d2a241c23 -Author: Lucas Beeler -Date: Mon Mar 26 15:11:41 2012 -0700 - - The Flickr LegacyPublishingOptionsPane no longer attempts to - access the state of a widget that is indeterminate for video-only - uploads. Closes #4928. - -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit 38b160a8be8d9e281fb3e9e133e7ddf90d92a4bf -Author: Clint Rogers -Date: Mon Mar 26 14:26:10 2012 -0700 - - Fixes tool window positioning in direct mode; closes #4902. - -M src/PhotoPage.vala - -commit 095f56371a318c802c27429f4248afb736e64fff -Author: Jonas Bushart -Date: Mon Mar 26 13:37:44 2012 -0700 - - Eliminates a situation where a malicious user could stop other - users on the same system from being able to publish photos by taking - ownership of certain directories in the /tmp tree. Closes #4411. - -M src/AppDirs.vala - -commit e030f05cc378020da34e507e04bd50ff58259c23 -Author: Jonas Bushart -Date: Mon Mar 26 13:30:13 2012 -0700 - - Closes #4732. - -M src/Event.vala - -commit 42b378629ad503a7c6942220910722b087cd6981 -Author: Martin Olsson -Date: Mon Mar 26 13:22:54 2012 -0700 - - Fixes spelling and formatting issues in debug log output. - -M src/BatchImport.vala -M src/Photo.vala - -commit d75cf47866ff368b9477bc16211b9280043ad278 -Author: Lucas Beeler -Date: Mon Mar 26 13:18:14 2012 -0700 - - Fixes a mismatch in the ISO language and region codes for Slovenian - between Shotwell and Facebook. Allows Slovenian users to login to - Facebook inside Shotwell in their native language. Closes #4291. - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit cfe5cc54378e0b015ee0b9efa2853c172958d2e1 -Author: Lucas Beeler -Date: Mon Mar 26 12:37:43 2012 -0700 - - Adds a guard condition to prevent TagTable.upgrade_for_htags( ) from - running when version 14 (Shotwell 0.11.x) databases are upgraded to - version 15 (Shotwell 0.12.x). - -M src/db/Db.vala - -commit 60af5c47c54afa5a427a9b1fd1d92b33a8f818ef -Author: Adam Dingle -Date: Mon Mar 26 10:49:42 2012 -0700 - - Added Clinton to AUTHORS. - -M AUTHORS -M THANKS -M src/Resources.vala - -commit 0bbbbd1d6a20d6623f5105dd1839fd5421b0a6f5 -Author: Clint Rogers -Date: Fri Mar 23 18:42:14 2012 -0700 - - Closes #4771, rearranges the grid slightly to prevent unwanted - blurring. - -M src/editing_tools/StraightenTool.vala - -commit 5aaaa912cd0512116b140f30e145391b549713f3 -Author: Lucas Beeler -Date: Fri Mar 23 16:50:21 2012 -0700 - - Eliminates the global shared adjustment for all page sliders. Closes - #4886. - -M src/MediaPage.vala -M src/library/LibraryWindow.vala - -commit 322e8d28d8b83c8eb0c17a1abcc81ed167d1f725 -Author: Clint Rogers -Date: Fri Mar 23 15:16:49 2012 -0700 - - Makes the default width for the sidebar slightly higher to fix a - problem where default event names could appear truncated - if the user's default font was either Ubuntu 11 or Cantarell 11 - (common defaults for recent Ubuntu and Fedora installations). - -M src/library/LibraryWindow.vala - -commit b3cdaa5a15bfbee9363f956272d59ffa3d1ba9c6 -Author: Adam Dingle -Date: Fri Mar 23 12:30:57 2012 -0700 - - Fixed #4885 (A crash occurs if an unhighlighted tag in the sidebar - is right-clicked upon). - -M src/sidebar/Tree.vala - -commit 90444ac95cc278ea73df2d2cc703ff2058a6525a -Author: Adam Dingle -Date: Fri Mar 23 12:29:23 2012 -0700 - - Fixed #4897 (menu key crashes Shotwell). - -M src/searches/Branch.vala -M src/sidebar/common.vala -M src/tags/Branch.vala - -commit f32d117acf79dcf6cb3c57f00309e67d90aa1c2a -Author: Clint Rogers -Date: Thu Mar 22 16:21:17 2012 -0700 - - Closes #4884, fixes a problem where the background colour slider - would default to the wrong value when reset. - -M src/Dialogs.vala - -commit 68b1f6c65eb79eb817df2129fbf30389a9e8ebac -Author: Lucas Beeler -Date: Thu Mar 22 15:27:40 2012 -0700 - - Tweaks auto-enhance behavior to make shadow correction less aggressive - and reduces the number of contexts in which shadow correction is - applied. Closes #3435. - -M src/ColorTransformation.vala - -commit 365df30aa622a0b39f27b0d7ac400542fedcba1c -Author: Adam Dingle -Date: Wed Mar 21 20:23:03 2012 -0700 - - Fixed #4562 (single shared menu for all Shotwell views) and #4841 - (sidebar and menu flash during import). - - With this change the LibraryWindow's UI Manager is shared by all - pages in the window. When you switch to any page, it swaps the - menus and toolbars it needs into the shared UI manager, and then - swaps them back out when you leave the page. - - Many of the changes here were because pages were assuming that their - widgets existed even when pages were not in view. With these changes, - pages can access widgets only when they are active. - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/MediaPage.vala -M src/Page.vala -M src/PhotoPage.vala -M src/camera/ImportPage.vala -M src/direct/DirectPhotoPage.vala -M src/direct/DirectWindow.vala -M src/events/EventsDirectoryPage.vala -M src/library/ImportQueuePage.vala -M src/library/LibraryWindow.vala -M src/library/OfflinePage.vala -M src/library/TrashPage.vala -M ui/direct.ui -A ui/direct_context.ui -M ui/photo.ui -A ui/photo_context.ui -A ui/top.ui - -commit b002e909952fd88d1bf04d368e961dd38d9783af -Author: Clint Rogers -Date: Wed Mar 21 17:37:34 2012 -0700 - - Closes #4875 and #4874, fixes various UI annoyances with the - straighten tool. - -M src/editing_tools/StraightenTool.vala - -commit addf7074624f8e37c1f442ddd5ca9d21d4828d26 -Author: Clint Rogers -Date: Wed Mar 21 17:09:38 2012 -0700 - - Closes #4359, addresses an issue where the text didn't 'know' it - needed to change itself after bg_color_slider was reset. - -M src/Dialogs.vala - -commit 180e3547685718b4f2429650679bcf8460961423 -Author: Clint Rogers -Date: Wed Mar 21 11:31:15 2012 -0700 - - Closes #4837, removes a snippet of code that would cause the - hadjustment to get moved twice - under the right circumstances, resulting in the contents of a - CheckerboardPage walking off the top of the window. - -M src/CheckerboardLayout.vala - -commit d3a9bafca320a7d1de08e08c6c965f6a1e996c10 -Author: Lucas Beeler -Date: Tue Mar 20 18:44:55 2012 -0700 - - Changes the way hit-testing is performed in the hit-test hack - (see the comment above the button_press_event method of the - ManifestListView class for more information on the hit-test hack - and why it's used). Fixes #4760. - -M src/plugins/ManifestWidget.vala - -commit bacc3567b0f96633ea83e1b8a8a7ebaddd4b127a -Author: Clint Rogers -Date: Tue Mar 20 14:44:45 2012 -0700 - - Closes #4120, fixes a crash that could happen on exporting images - with metadata - by manually initializing the XMP parser in a thread-safe way prior - to spawning an AppWindow. - -M Makefile -M src/main.vala - -commit 05ed17304120ebd45cce824a8e276cf8e96a2514 -Author: Laura Khalil -Date: Tue Mar 20 13:32:30 2012 -0700 - - Fixed errors in Arabic and Thai translations. - -M po/shotwell-core/ar.po -M po/shotwell-core/th.po - -commit de1f2f9ee8e89f6a4ae300dd6b519cea1a370f8b -Author: Laura -Date: Tue Mar 20 13:13:55 2012 -0700 - - Updates makefile to reflect new languages, fixes incorrect header - in Vietnamese translation. - -M Makefile -M po/shotwell-extras/vi.po - -commit c8d35751b30350ae8d832d08877d6ff2d33d8065 -Author: Laura -Date: Tue Mar 20 13:05:17 2012 -0700 - - Updates translations for 0.12 release - -M po/shotwell-core/af.po -M po/shotwell-core/ar.po -M po/shotwell-core/ast.po -M po/shotwell-core/bg.po -M po/shotwell-core/bn.po -M po/shotwell-core/ca.po -M po/shotwell-core/cs.po -M po/shotwell-core/da.po -M po/shotwell-core/de.po -M po/shotwell-core/el.po -M po/shotwell-core/en_GB.po -M po/shotwell-core/es.po -M po/shotwell-core/et.po -M po/shotwell-core/eu.po -M po/shotwell-core/fi.po -M po/shotwell-core/fr.po -M po/shotwell-core/gl.po -M po/shotwell-core/he.po -C057 po/shotwell-core/af.po po/shotwell-core/hi.po -M po/shotwell-core/hr.po -M po/shotwell-core/hu.po -C061 po/shotwell-core/ta.po po/shotwell-core/ia.po -M po/shotwell-core/id.po -M po/shotwell-core/it.po -M po/shotwell-core/ja.po -M po/shotwell-core/kk.po -M po/shotwell-core/ko.po -M po/shotwell-core/lt.po -M po/shotwell-core/lv.po -M po/shotwell-core/mk.po -M po/shotwell-core/nb.po -M po/shotwell-core/nl.po -M po/shotwell-core/pa.po -M po/shotwell-core/pl.po -M po/shotwell-core/pt.po -M po/shotwell-core/pt_BR.po -M po/shotwell-core/ro.po -M po/shotwell-core/ru.po -M po/shotwell-core/sk.po -M po/shotwell-core/sl.po -M po/shotwell-core/sr.po -M po/shotwell-core/sv.po -M po/shotwell-core/ta.po -C063 po/shotwell-core/ta.po po/shotwell-core/ta_IN.po -M po/shotwell-core/te.po -C060 po/shotwell-core/ta.po po/shotwell-core/te_IN.po -M po/shotwell-core/th.po -M po/shotwell-core/tr.po -M po/shotwell-core/uk.po -M po/shotwell-core/vi.po -M po/shotwell-core/zh_CN.po -M po/shotwell-core/zh_TW.po -M po/shotwell-extras/bn.po -M po/shotwell-extras/ca.po -M po/shotwell-extras/cs.po -M po/shotwell-extras/da.po -M po/shotwell-extras/de.po -M po/shotwell-extras/el.po -M po/shotwell-extras/en_GB.po -M po/shotwell-extras/es.po -M po/shotwell-extras/et.po -M po/shotwell-extras/eu.po -M po/shotwell-extras/fi.po -M po/shotwell-extras/fr.po -M po/shotwell-extras/gl.po -M po/shotwell-extras/he.po -M po/shotwell-extras/hr.po -M po/shotwell-extras/hu.po -M po/shotwell-extras/it.po -M po/shotwell-extras/ja.po -M po/shotwell-extras/kk.po -M po/shotwell-extras/ko.po -M po/shotwell-extras/lv.po -M po/shotwell-extras/mk.po -M po/shotwell-extras/nb.po -M po/shotwell-extras/nl.po -M po/shotwell-extras/pl.po -M po/shotwell-extras/pt.po -M po/shotwell-extras/pt_BR.po -M po/shotwell-extras/ro.po -M po/shotwell-extras/ru.po -M po/shotwell-extras/sk.po -M po/shotwell-extras/sl.po -M po/shotwell-extras/sr.po -M po/shotwell-extras/sv.po -M po/shotwell-extras/te.po -M po/shotwell-extras/uk.po -M po/shotwell-extras/vi.po -M po/shotwell-extras/zh_CN.po -M po/shotwell-extras/zh_TW.po - -commit 4c6028562dc1453d849c2a49c4b4f0aaa3a107eb -Author: Clint Rogers -Date: Fri Mar 16 17:36:26 2012 -0700 - - Closes #4522, ensures that tags that are dragged to child tags, then - undone, have all tags removed, not just the current nesting level - (more work is planned on this, please see #4858). - -M src/Commands.vala - -commit 74c7fdf6a033e8500d934eb8bafcefa91c7b3888 -Author: Clint Rogers -Date: Fri Mar 16 14:44:36 2012 -0700 - - Closes #4857, stops us from inappropriately removing empty tags - (and occasionally crashing) when undoing certain tag operations. - -M src/Commands.vala - -commit 3263ceef163767c0c436bfad79ae7dfb1a2aa7f7 -Author: Adam Dingle -Date: Fri Mar 16 14:02:10 2012 -0700 - - Fixed #4829 (use "edit-clear-symbolic") and #4830 (use - "edit-find-symbolic"). - -D icons/searchbox-clear.svg -D icons/searchbox-find.svg -M src/Resources.vala -M src/SearchFilter.vala - -commit 39206470dac77ed147314ce95b0fd826e000b5a3 -Author: Clint Rogers -Date: Thu Mar 15 18:08:57 2012 -0700 - - Closes #4070, makes editing tools insensitive for missing photos as - appropriate (and re-sensitizes them if a missing photo is restored). - -M src/PhotoPage.vala -M src/editing_tools/StraightenTool.vala - -commit 741d15f449e986377b9c25a4a48837a9e124c26f -Author: Clint Rogers -Date: Thu Mar 15 14:33:03 2012 -0700 - - Closes #4325, causes '&' characters in fully-qualified paths to - be escaped. - -M src/Properties.vala - -commit 3919de37336ca7432a798e8b193defabb9ee9d89 -Author: Clint Rogers -Date: Thu Mar 15 13:45:06 2012 -0700 - - Closes #4840, makes using the mouse wheel in the PhotoPage work - reliably again. - -M src/Page.vala - -commit 5665ebf251cb0aa686dd674c1526701dbb23f1e5 -Author: Clint Rogers -Date: Thu Mar 15 13:38:22 2012 -0700 - - Closes #4575, temporarily makes the progress bar not be modal while - a confirmation dialog is present. - -M src/AppWindow.vala -M src/Exporter.vala - -commit 687204df6bcfd4fd649846d9315d8c615d4b6cc6 -Author: Clint Rogers -Date: Wed Mar 14 11:30:17 2012 -0700 - - Closes #4831, hides the 'clear' icon if there's no text present. - -M src/SearchFilter.vala - -commit fa4ba36a3eac1e70c29dd3ec05904bbeb23f008c -Author: Clint Rogers -Date: Tue Mar 13 18:32:23 2012 -0700 - - Fixes #4821, makes the confirm button for the crop tool actually read - "Crop". - -M src/editing_tools/EditingTools.vala - -commit c1329b1d34cc463469249f1879e52a6ccfde1b56 -Author: Adam Dingle -Date: Tue Mar 13 17:18:53 2012 -0700 - - Fixed #4832 (assertions publishing video to Facebook: - `GTK_IS_LIST_STORE - (store)' failed). - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit 30923f74b292ce8e871a7b7618d2ea39c852a2dc -Author: Adam Dingle -Date: Tue Mar 13 10:50:44 2012 -0700 - - Partially fixed #2592 (menu flashing) and #4303 (sidebar flashing). - The flashing - still occurs while importing photos, unfortunately. - -M src/Resources.vala -M src/library/LibraryWindow.vala - -commit 29e4c3c105eeabc65c7862816f1aadff594dfa53 -Author: Adam Dingle -Date: Mon Mar 12 09:28:44 2012 -0700 - - Removed broken tooltip on Merge Events button. Partially fixes #4825. - -M src/events/EventsDirectoryPage.vala - -commit 0a4912e9228ccf6132e79e6621c615e864f0d150 -Author: Adam Dingle -Date: Fri Mar 9 17:05:36 2012 -0800 - - Fixed #4684 (some thumbnails grayed out on startup). - - The thumbnail fetching code was sometimes deadlocking in code which - held a lock while constructing a singleton JfifFileFormatDriver or - JfifFileFormatProperties object. Vala was unfortunately initializing - the lock only when the first instance of the class was created, - which could be when one or more threads had already acquired and were - waiting on the lock. So these threads never continued execution - after the lock was freed. I solved the problem by eliminating the - lock in these and similar classes. We now call a static init() - method earlier instead. - -M src/photos/BmpSupport.vala -M src/photos/JfifSupport.vala -M src/photos/PhotoFileFormat.vala -M src/photos/Photos.vala -M src/photos/PngSupport.vala -M src/photos/RawSupport.vala -M src/photos/TiffSupport.vala - -commit 2bcf34589c1007e989682d92c2591b574e11062b -Author: Adam Dingle -Date: Thu Mar 8 15:01:33 2012 -0800 - - Enable Piwigo publishing by default. Closes #4802. - -M misc/org.yorba.shotwell.gschema.xml - -commit 597c46f44be55bffd3106e86786c786103b52050 -Author: Adam Dingle -Date: Thu Mar 8 14:47:37 2012 -0800 - - Updated version number in POT files. - -M po/shotwell-core/shotwell.pot -M po/shotwell-extras/shotwell-extras.pot - -commit c485ceea649dc4c29de987636d4d404f408ce034 -Author: Lucas Beeler -Date: Thu Mar 8 12:16:25 2012 -0800 - - Upgrades database schema version. Closes #4817. - -M src/db/DatabaseTable.vala -M src/db/Db.vala - -commit 91cc5aebf2c935c9bb57fec3ddd7c1b3f115358b -Author: Clint Rogers -Date: Tue Mar 6 14:38:45 2012 -0800 - - Tarballs delivered to QA have passed, releasing them and incrementing - version number. - -M Makefile - -commit 58ecb80e4df26872428c8b15cdef506d6f4f7bc0 -Author: Clint Rogers -Date: Tue Mar 6 11:36:19 2012 -0800 - - Makes some slight changes to the search bar's style sheet to make - the buttons and bottom border play nicely. Closes #4799. - -M src/Resources.vala -M src/SearchFilter.vala - -commit 30f78e12544eab6fd19f220d39766f862e663c1b -Author: Clint Rogers -Date: Mon Mar 5 17:58:17 2012 -0800 - - Closes #4345, fixes an issue where images that got modified, then - saved, wouldn't reimport properly, causing them to appear to have - reverted inappropriately. - -M src/Photo.vala -M src/direct/DirectPhoto.vala - -commit e13d60d2357732c004aae61735a04171fb0d4444 -Author: Clint Rogers -Date: Mon Mar 5 17:44:22 2012 -0800 - - Closes #4737, slightly modifies the search bar style sheet to prevent - twitch/wobble when the cursor enters or leaves a button. - -M src/Resources.vala - -commit fa68b1917ca72b9595e05731365d8bb227d7869e -Author: Clint Rogers -Date: Mon Mar 5 14:26:25 2012 -0800 - - Alters the way in which saving the background color is done and how - we interact with the BG color slider, closes #4787 and #4795. - -M src/Dialogs.vala -M src/config/Config.vala - -commit 8b9623df4f8518c07d8268509461f586b877b026 -Author: Lucas Beeler -Date: Mon Mar 5 13:57:38 2012 -0800 - - Fixes a subtle date problem in the French translation file. Closes - #4581. - -M po/shotwell-core/fr.po - -commit 1bb0cb0aeca4c19420ad5f026f875f39192ffc8c -Author: Clint Rogers -Date: Wed Feb 29 18:00:58 2012 -0800 - - Closes #3659, makes 'does not contain' searches work more like - human language. - -M src/searches/SearchBoolean.vala - -commit 47ee7f7ca912db8e677812986d0720eaeb3c4ef9 -Author: Clint Rogers -Date: Wed Feb 29 15:53:12 2012 -0800 - - Closes #4790, restores tooltips to the search bar buttons. - -M src/SearchFilter.vala - -commit 3609d08d37ad001cca6275c8f0aa16099fb179bf -Author: clinton -Date: Tue Feb 28 16:45:48 2012 -0800 - - Closes #4690, closes #4694, adds a proper keypress handler to the - straighten tool. - -M src/camera/ImportPage.vala -M src/editing_tools/StraightenTool.vala - -commit d11b11b364e9a14eed0a8e1dde49bee7ebdf80b3 -Author: Clint Rogers -Date: Mon Feb 27 16:24:44 2012 -0800 - - Adds a mnemonic for the 'Developer' menu item and moves some other - mnemonics around to avoid collisions; closes #3976. - -M src/MediaPage.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/direct/DirectPhotoPage.vala - -commit a9da4515785f660ca1a8a687f6ae8f95f6696c9c -Author: Clint Rogers -Date: Mon Feb 27 16:11:21 2012 -0800 - - Makes the app check for the presence of a /DCIM directory and respect - it if it's found; closes #1903. - -M src/camera/ImportPage.vala - -commit 57f061ef97d70ce78276bea2708450dda6863563 -Author: Clint Rogers -Date: Mon Feb 27 12:28:05 2012 -0800 - - Closes #4632, better positions tool windows so they're closer to - the horizontal center of the photo canvas. - -M src/PhotoPage.vala - -commit b779f5f3319ebe3c37d70c8f6f6d8cb88a5e9019 -Author: Adam Dingle -Date: Mon Feb 27 08:56:31 2012 -0800 - - Increased minimum Vala requirement to 0.15.2. - -M Makefile - -commit 77de7619dd1f4c35874946cf105ebdedf9e53919 -Author: Adam Dingle -Date: Sun Feb 26 14:33:18 2012 -0800 - - Fixed alignment in Flickr PIN entry pane. Closes #4788. - -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit 277f6eb7f8be0b7d4b3bd3d29270ad2260cdefff -Author: Lucas Beeler -Date: Sat Feb 25 16:01:15 2012 -0800 - - Fixes Flickr authentication problems by switching digital signature - generation to a known-good implementation of the HMAC-SHA1 - algorithm. Closes #4770. - -M Makefile -M debian/control -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/Makefile -D vapi/hmac-glib.vapi - -commit 0edb5790c2854c64c01b4ab9cc8bbd93d6938123 -Author: Clint Rogers -Date: Thu Feb 23 17:10:50 2012 -0800 - - Corrects a problem where the previous commit broke spawning a context - menu when right-clicking in an empty area. - -M src/sidebar/Tree.vala - -commit 7839d77eb53436795474084213ae9fd22551c0a5 -Author: Clint Rogers -Date: Thu Feb 23 16:58:31 2012 -0800 - - Closes #4704, prevents us from trying to perform operations on a - null tree path. - -M src/sidebar/Tree.vala - -commit c7ecd7cf20a3586fc8123e74d0eaf46d4aa49b76 -Author: Adam Dingle -Date: Thu Feb 23 15:31:44 2012 -0800 - - Removed almost all HBoxes and VBoxes from Shotwell, eliminating over - 100 deprecation - warnings when building with GTK 3.3. - -A plugins/common/ui.vala -M plugins/shotwell-publishing-extras/PiwigoPublishing.vala -M plugins/shotwell-publishing-extras/YandexPublishing.vala -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/Makefile -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -M src/Dialogs.vala -M src/MediaPage.vala -M src/PhotoPage.vala -M src/Printing.vala -M src/data_imports/DataImportsUI.vala -M src/direct/DirectWindow.vala -M src/editing_tools/EditingTools.vala -M src/editing_tools/StraightenTool.vala -M src/library/LibraryWindow.vala -M src/publishing/PublishingUI.vala -M src/searches/SavedSearchDialog.vala -M src/util/ui.vala - -commit debfeb2a1ccf415b12bedd2c8edab5c93af6c245 -Author: Clint Rogers -Date: Thu Feb 23 13:17:08 2012 -0800 - - Closes #4689, disables adjusting of date and time on RAW files in - direct mode. - -M src/direct/DirectPhotoPage.vala - -commit 58ce35ea8a5e8a7d50d7b0b0a6ea2c1a11fa40d3 -Author: Bruno Girin -Date: Wed Feb 22 18:47:43 2012 -0800 - - Shotwell now correctly displays an error message when no data imports - plugins are enabled. Closes #4758. - -M src/data_imports/DataImportsUI.vala - -commit b0b97b1a0670bcb0203698c109bec6463ab7b95e -Author: Adam Dingle -Date: Wed Feb 22 16:11:52 2012 -0800 - - Reenable GTK double buffering to work around background flashing. - Closes #4775. - -M src/Page.vala - -commit 2903a3d51ca2f860a8024054691547e976a2a26e -Author: Bruno Girin -Date: Wed Feb 22 13:46:27 2012 -0800 - - Fixes critical assertions when running "Import From - Application..." more than once. Closes #4766. - -M src/data_imports/DataImportsUI.vala - -commit 44fa2677a47f063c56430ffd02c2779bca4800a9 -Author: Timo Witte -Date: Wed Feb 22 13:31:49 2012 -0800 - - Nautilus now highlights the backing file itself (as opposed to merely - showing the enclosing directory) when the "Show in File Manager" - option is chosen from the "File" menu. Adds Timo Witte, the author - of this changeset, to the THANKS file. - -M THANKS -M src/AppWindow.vala -M src/util/system.vala - -commit e8a13a4f4fd949d0212e86bb130341a1bd6ae917 -Author: Clint Rogers -Date: Tue Feb 21 14:27:20 2012 -0800 - - Closes #4767, removes the mnemonic from this menu item. - -M src/library/LibraryWindow.vala - -commit d3ba803c9df48b54dac5a5deb4bd229f80a3a3fb -Author: Adam Dingle -Date: Tue Feb 21 08:03:50 2012 -0800 - - Ignore generated .desktop files. - -M .gitignore - -commit b247095eb353599f0cbe61f9d456cd4c5e7c163d -Author: Adam Dingle -Date: Tue Feb 21 08:00:05 2012 -0800 - - Ignore *~ (editor backup files). - -M .gitignore - -commit 3c1160bf74a21ef19a7dba96d8ae2ac5494baf4b -Author: Adam Dingle -Date: Tue Feb 21 07:36:49 2012 -0800 - - Post-release version number update. - -M Makefile - -commit 4f62cbf023018fb03bac56416b5e780fe53caa31 -Author: Adam Dingle -Date: Tue Feb 21 07:32:33 2012 -0800 - - Release 0.11.92. - -M Makefile - -commit 6b8782d01cb48ac7c6a89dfdaa14ca28de3cb689 -Author: Adam Dingle -Date: Mon Feb 20 17:10:37 2012 -0800 - - Fixed a bug which caused the crop rectangle to position incorrectly - for small images. - -M src/editing_tools/EditingTools.vala - -commit 29075b01df173600e703db6ca08a8646e089f49a -Author: Adam Dingle -Date: Mon Feb 20 16:51:56 2012 -0800 - - Added straighten.svg to Makefile. - -M Makefile - -commit d2b89133bb84772a24cec3822ba09aa83fa82faa -Author: Clint Rogers -Date: Mon Feb 20 13:11:20 2012 -0800 - - Closes #4744, gives the straighten tool a proper icon. - - (Stripped down a bit from what I originally submitted to try to make - it look cleaner at 24x24.) - -M icons/straighten.svg - -commit dd6251f9d628c0ec27bda64c4706f01d3661ae8b -Author: Clint Rogers -Date: Mon Feb 20 13:00:30 2012 -0800 - - Closes #4744, gives the straighten tool a proper icon. - -A icons/straighten.svg -M src/PhotoPage.vala -M src/Resources.vala - -commit 1075fbd03086c423de1cfc6547bb6c4544d394bd -Author: Lucas Beeler -Date: Mon Feb 20 13:29:17 2012 -0800 - - Re-titles the "Import from Another Application" dialog. Re-closes - #4761. - -M src/data_imports/DataImportsUI.vala - -commit 5d35cb409e84b87a89e8da5e85f041947f0eb0a4 -Author: Adam Dingle -Date: Mon Feb 20 13:28:53 2012 -0800 - - Added hmac-glib.vapi to VAPI_FILES in Makefile. - -M Makefile - -commit 617567add920c447ade42fa876dfb2ad1e13e60a -Author: Adam Dingle -Date: Mon Feb 20 12:48:37 2012 -0800 - - Keep the crop rectangle inside image bounds in the crop tool. - Closes #4612. - -M src/Box.vala -M src/editing_tools/EditingTools.vala -M src/util/image.vala - -commit 7194bb73764706c7de81215b4f2d18349d7d70a3 -Author: Lucas Stephen Beeler -Date: Mon Feb 20 11:31:39 2012 -0800 - - Simplifies the language of the "Import from Another - Application..." menu option and changes its capitalization scheme - to conform to GNOME guidelines. Closes #4761. - -M src/library/LibraryWindow.vala - -commit 168ac5c233f414b9c8cb81c07abf92f602ddc99d -Author: Adam Dingle -Date: Fri Feb 17 17:42:26 2012 -0800 - - Fixed a bug: rotate_arb() and friends weren't positioning the rotated - image quite correctly, which led to pixels being cut off in the - crop tool. Closes #4753. - -M src/util/image.vala - -commit b3b923bec8d8b81501c8200a7e62f6fb13007967 -Author: Adam Dingle -Date: Fri Feb 17 17:39:52 2012 -0800 - - Simplified bounding box calculation in compute_arb_rotated_size(). - -M src/util/image.vala - -commit d9f187f591d486b5e12dde2b6d27b50b030f6e78 -Author: Lucas Beeler -Date: Thu Feb 16 14:32:37 2012 -0800 - - Removes migration targets that no longer exist from our - gsettings-data-convert description file. Closes #4649. - -M misc/shotwell.convert - -commit 8cee92d2a9770d367cf2934da70ab0bc6d1487d5 -Author: Lucas Beeler -Date: Thu Feb 16 14:11:30 2012 -0800 - - Added Thomas Moschny to the THANKS file. - -M THANKS - -commit c70f5bff84ba8b4c44629d62a5a358ef7ce4c5b7 -Author: Thomas Moschyn -Date: Thu Feb 16 14:09:14 2012 -0800 - - The plugin build system now respects the VALAC environment variable - if it is set. Closes #4661. - -M plugins/Makefile.plugin.mk - -commit 21cc3f2f02283474d28ebbc393387037fe64b434 -Author: Bruno Girin -Date: Thu Feb 16 12:54:19 2012 -0800 - - Handles the case in which an F-Spot database can become deformed - whereby fields become null that should never be null, since F-Spot's - developers never set NOT NULL constraints on these rows in their - SQL DDL code. Improves handling of cases where F-Spot backing photos - are unavailable. Closes #4487. - -M plugins/shotwell-data-imports/FSpotImporter.vala -M plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala -M plugins/shotwell-data-imports/FSpotPhotosTable.vala -M src/data_imports/DataImportSource.vala -M src/data_imports/DataImportsPluginHost.vala - -commit 86dbca16454e2931eeea70fe90152acdc3dc65f4 -Author: Adam Dingle -Date: Thu Feb 16 11:49:32 2012 -0800 - - The straighten tool now keeps the crop rectangle within the image - bounds. Closes #4750. - -M src/Box.vala -M src/editing_tools/StraightenTool.vala - -commit ce3e2fad0da40eda9c2c635bfba5642bbe50e59b -Author: Adam Dingle -Date: Wed Feb 15 17:52:47 2012 -0800 - - 1. Refactored StraightenTool.activate() and - StraightenTool.on_resized_pixbuf() to share code. - - 2. Fixed bug whereby straighten tool displayed incorrect region. - Closes #4749. - -M src/Dimensions.vala -M src/editing_tools/StraightenTool.vala - -commit e84f019bf6ec057293b88d50d5188617e7d095a9 -Author: Adam Dingle -Date: Wed Feb 15 17:50:47 2012 -0800 - - Fixed red-eye correction on straightened images. Closes #4617. - -M src/Photo.vala -M src/editing_tools/EditingTools.vala - -commit 3114534035a3eabc099e14f1bbc2878da410ef64 -Author: Adam Dingle -Date: Wed Feb 15 17:48:37 2012 -0800 - - Implemented StraightenCommand. Closes #4475. - -M src/Commands.vala -M src/Resources.vala -M src/editing_tools/StraightenTool.vala - -commit 47a716297ab6c4af15888dfb88691ab43199da65 -Author: Lucas Beeler -Date: Wed Feb 15 16:40:35 2012 -0800 - - Switches to the OAuth authentication scheme in the Flickr - connector. Closes #4631, #4545, #3043, #2714. - -M misc/org.yorba.shotwell.gschema.xml -M plugins/Makefile.plugin.mk -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/Makefile -A vapi/hmac-glib.vapi - -commit 9d17eb8206f5cbaa1888bd7e0dbeebe24293f5c7 -Author: Clint Rogers -Date: Mon Feb 13 18:49:14 2012 -0800 - - Closes #4691, makes raw development changes display correctly whilst - avoiding a possible race/reentrancy issue where precache_unmodified - could be populated from two different places. - -M src/Photo.vala - -commit 1abb8497af628ecbf3cd851920714fbb8cfb0b16 -Author: Clint Rogers -Date: Mon Feb 13 17:55:32 2012 -0800 - - Closes #4747, corrects an issue where a DirectPhoto would try to - get its dimensions from the wrong place. - -M src/direct/DirectPhoto.vala - -commit f7cc0dc3fe48e7c9e9020bbdd806f6dc1aecfe38 -Author: Lucas Beeler -Date: Mon Feb 13 17:38:17 2012 -0800 - - Added Trevor Mehard to the THANKS file. - -M THANKS - -commit b806ea6fa0fc6d4d706eb274c5f663af56adc909 -Author: Trevor Mehard -Date: Mon Feb 13 17:35:57 2012 -0800 - - Ensures that date range boolean searches return all photos within - a closed interval (i.e., the endpoint dates are included). - -M src/searches/SearchBoolean.vala - -commit 631bf8cbb3ea35ce6a942e97261325944fea7680 -Author: Adam Dingle -Date: Mon Feb 13 16:08:46 2012 -0800 - - Added Straighten to Tools menu. Closes #4745. - -M src/PhotoPage.vala -M src/direct/DirectPhotoPage.vala -M ui/direct.ui -M ui/photo.ui - -commit 853a097c35c9fbf78800b258eb5cc22503111119 -Author: Clint Rogers -Date: Mon Feb 13 15:47:06 2012 -0800 - - Closes #3566, checks whether incoming photo has an existing crop - region, and, if so, uses that, along with 'unconstrained' as the - crop tool defaults instead of the saved constraint. - -M src/editing_tools/EditingTools.vala - -commit 9e1b3a99328dc6b80719f2d1d7ded7a4ca44f30d -Author: Adam Dingle -Date: Mon Feb 13 14:05:36 2012 -0800 - - Require GLib 2.30.0. - -M Makefile - -commit 7bfe891aa8b022c583d923ad355c652d70da7817 -Author: Adam Dingle -Date: Mon Feb 13 13:30:15 2012 -0800 - - Disable double buffering in SinglePhotoPage. Closes #4739. - -M src/Page.vala - -commit c5f3173855c864592c5d15dc2ddc36a804fcb73a -Author: Adam Dingle -Date: Mon Feb 13 13:19:26 2012 -0800 - - Upped minimum Vala requirement to 0.15.1. - -M Makefile - -commit 9fe7512217fe84fac7b6119c8610da15603f84bd -Author: Lucas Beeler -Date: Fri Feb 10 15:20:18 2012 -0800 - - Updates gexiv2 dependency to require GExiv2 0.3.90 or later. - -M Makefile -M debian/control - -commit 2fa8e4b9fe05a9141cb8caea771ea1c25d519666 -Author: Adam Dingle -Date: Fri Feb 10 15:20:28 2012 -0800 - - Enable double buffering in SinglePhotoPage. Closes #4715, #4716. - -M src/Page.vala - -commit 0ee2c7fa530472292808058f969c65884c5316b7 -Author: Clint Rogers -Date: Fri Feb 10 11:02:29 2012 -0800 - - Closes #4663; makes the straighten tool and crop tool interaction - much friendlier. - -M src/Photo.vala -M src/editing_tools/StraightenTool.vala -M src/util/image.vala - -commit 97001319f695acddbaff558d43a8d3be6cebae88 -Author: Adam Dingle -Date: Thu Feb 9 11:17:48 2012 -0800 - - Fixed theme parser warnings. Closes #4736. - -M src/Resources.vala - -commit ea315f3321db895cd6daf83a059b3e1e26b50740 -Author: Clint Rogers -Date: Mon Feb 6 12:49:31 2012 -0800 - - Closes #4578, closes #4611, adds a call to the parent class' - key handler for when the editing tool window wants to process the - incoming key, but not consume it. - -M src/Dialogs.vala -M src/editing_tools/EditingTools.vala -M src/util/misc.vala - -commit 90b83dc21bb5defaf35367c8e1bcb9cedbf1b0c5 -Author: Bruno Girin -Date: Mon Feb 6 12:38:13 2012 -0800 - - Cleans up old F-Spot and alien database import code obsoleted by - Bruno's new external application import plugin system. Closes #4714. - -M plugins/shotwell-data-imports/FSpotDatabase.vala -D src/alien_db/AlienDatabase.vala -D src/alien_db/AlienDatabaseDriver.vala -D src/alien_db/AlienDatabaseEvent.vala -D src/alien_db/AlienDatabaseHandler.vala -D src/alien_db/AlienDatabaseImportDialog.vala -D src/alien_db/AlienDatabaseImportDialogController.vala -D src/alien_db/AlienDatabaseImportJob.vala -D src/alien_db/AlienDatabaseImportSource.vala -D src/alien_db/AlienDatabasePhoto.vala -D src/alien_db/AlienDatabaseTag.vala -D src/alien_db/AlienDatabaseVersion.vala -D src/alien_db/AlienDb.vala -D src/alien_db/DiscoveredAlienDatabase.vala -D src/alien_db/f_spot/AlienDb.FSpot.vala -D src/alien_db/f_spot/FSpotDatabase.vala -D src/alien_db/f_spot/FSpotDatabaseBehavior.vala -D src/alien_db/f_spot/FSpotDatabaseDriver.vala -D src/alien_db/f_spot/FSpotDatabaseEvent.vala -D src/alien_db/f_spot/FSpotDatabasePhoto.vala -D src/alien_db/f_spot/FSpotDatabaseTable.vala -D src/alien_db/f_spot/FSpotDatabaseTag.vala -D src/alien_db/f_spot/FSpotMetaTable.vala -D src/alien_db/f_spot/FSpotPhotoTagsTable.vala -D src/alien_db/f_spot/FSpotPhotoVersionsTable.vala -D src/alien_db/f_spot/FSpotPhotosTable.vala -D src/alien_db/f_spot/FSpotRollsTable.vala -D src/alien_db/f_spot/FSpotTableBehavior.vala -D src/alien_db/f_spot/FSpotTagsTable.vala -D src/alien_db/f_spot/mk/f_spot.mk -D src/alien_db/mk/alien_db.mk -M src/library/mk/library.mk -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/media.ui -M ui/offline.ui -M ui/photo.ui -M ui/shotwell.glade -M ui/shotwell.xml -M ui/trash.ui -M units.mk - -commit 2058ef220e978fc55635e50fa3034ec7837628da -Author: Lucas Beeler -Date: Mon Feb 6 12:15:22 2012 -0800 - - Adds Peter Seiderer to the THANKS file. - -M THANKS - -commit 76bfbc2edfe7e45664a4cf7c8be4101bc8c67b9d -Author: Peter Seiderer -Date: Mon Feb 6 12:04:07 2012 -0800 - - Alters the way a libgphoto2 function is called from Shotwell to - prevent an obscure crash that happens on some distros on the AMD64 - architecture. - -M src/camera/GPhoto.vala -M vapi/libgphoto2.vapi - -commit 091a56bb476f1efb8bf01800200bdf0d1e22a400 -Author: Eric Gregory -Date: Fri Feb 3 13:21:19 2012 -0800 - - Vala 0.15.1 support. Closes #4675 - -M Makefile -M src/CheckerboardLayout.vala -M src/Dialogs.vala -M src/Dimensions.vala -M src/DirectoryMonitor.vala -M src/LibraryFiles.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Printing.vala -M src/Resources.vala -M src/SearchFilter.vala -M src/Tombstone.vala -M src/VideoSupport.vala -M src/camera/CameraTable.vala -M src/config/Config.vala -M src/db/DatabaseTable.vala -M src/db/PhotoTable.vala -M src/editing_tools/EditingTools.vala -M src/library/LibraryWindow.vala -M src/plugins/TransitionsInterfaces.vala -M src/sidebar/Tree.vala -M src/slideshow/TransitionEffects.vala -M src/util/file.vala -M src/util/image.vala -D vapi/gdk-3.0.vapi - -commit 818cf9410bb077098f21ff3baad8b020c6107999 -Author: Bruno Girin -Date: Thu Feb 2 15:15:57 2012 -0800 - - Improves layout of the login pane in the Piwigo publishing - plugin. Closes #4679. - -M -plugins/shotwell-publishing-extras/piwigo_authentication_pane.glade - -commit 5588287d6def0f6e9d6eb011c14dc4183f821d91 -Author: Bruno Girin -Date: Thu Feb 2 15:06:38 2012 -0800 - - Fixes an error handling issue in the Piwigo publisher and improves - the Piwigo publisher's diagnostic output. Closes #4678. - -M plugins/shotwell-publishing-extras/PiwigoPublishing.vala - -commit 92ba8a5bd0c5bcf010e88286073ba4fc4741d3af -Author: Bruno Girin -Date: Thu Feb 2 14:56:06 2012 -0800 - - Adds a SPIT-based extension point and API for importing photos from - other applications; ports the existing F-Spot importer to use this - new API. Closes #3614. - -M misc/org.yorba.shotwell.gschema.xml -A plugins/common/SqliteSupport.vala -A plugins/common/VersionNumber.vala -M plugins/plugins.mk -A plugins/shotwell-data-imports/FSpotDatabase.vala -A plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala -A plugins/shotwell-data-imports/FSpotDatabaseTable.vala -A plugins/shotwell-data-imports/FSpotImporter.vala -A plugins/shotwell-data-imports/FSpotMetaTable.vala -A plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala -A plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala -A plugins/shotwell-data-imports/FSpotPhotosTable.vala -A plugins/shotwell-data-imports/FSpotRollsTable.vala -A plugins/shotwell-data-imports/FSpotTableBehavior.vala -A plugins/shotwell-data-imports/FSpotTagsTable.vala -A plugins/shotwell-data-imports/Makefile -A plugins/shotwell-data-imports/f-spot-24.png -A plugins/shotwell-data-imports/shotwell-data-imports.vala -M src/Dialogs.vala -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala -A src/data_imports/DataImportJob.vala -A src/data_imports/DataImportSource.vala -A src/data_imports/DataImports.vala -A src/data_imports/DataImportsPluginHost.vala -A src/data_imports/DataImportsUI.vala -C081 src/plugins/mk/plugins.mk -src/data_imports/mk/data_imports.mk -M src/library/LibraryWindow.vala -M src/library/mk/library.mk -M src/main.vala -A src/plugins/DataImportsInterfaces.vala -M src/plugins/mk/interfaces.mk -M src/plugins/mk/plugins.mk -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/media.ui -M ui/offline.ui -M ui/photo.ui -M ui/trash.ui -M units.mk - -commit 4e477819d26207b02b4d91c5b1dd37070869ecda -Author: Clint Rogers -Date: Tue Jan 31 18:03:15 2012 -0800 - - Closes #4683, makes sure both the internal value and the format - string have the same number of digits. - -M src/editing_tools/StraightenTool.vala - -commit bac49de73b41e7fb583cc53cf243332c213a6275 -Author: Clint Rogers -Date: Tue Jan 31 16:23:41 2012 -0800 - - Closes #4610, installs handlers for resize events. - -M src/Photo.vala -M src/editing_tools/StraightenTool.vala - -commit 8b80e760e8e83b59bca372f1cc6db57b8e02c1ee -Author: Clint Rogers -Date: Tue Jan 31 15:30:26 2012 -0800 - - Partially fixes #4616, improves the quality of the preview image - when the slider is released (more work is planned on this for 0.12.1). - -M src/editing_tools/StraightenTool.vala - -commit 377be2a0fa4fd7689b368f1b2bb0c508645be3ab -Author: Clint Rogers -Date: Tue Jan 31 15:19:03 2012 -0800 - - Changes 'apply' to 'OK',closes #4695. - -M src/editing_tools/StraightenTool.vala - -commit c3bbd3638557a7cefe6e27db341a3e91f281767d -Author: Clint Rogers -Date: Wed Jan 25 11:23:49 2012 -0800 - - Closes #4613, #4614 and #4615, as well as slightly improving - responsiveness of some editing tools; when preparing to work with - an image, we now precache a full-sized copy of how it looks prior to - modification, operate on a copy of that, and then scale the result, - rather than attempting a fetch every time the pipeline is run. - -M src/Photo.vala -M src/editing_tools/EditingTools.vala -M src/util/image.vala - -commit d867f19799592bf4dfb5273118f6d527054f7f83 -Author: Clint Rogers -Date: Thu Jan 19 17:12:09 2012 -0800 - - Removes the 'autocrop-on-straighten' mechanism, since it could - interfere with the crop tool. - - (This functionality will come back in a future patch, but it'll be - done as an actual crop - command, which is more like the right way of handling it.) - -M src/Photo.vala -M src/editing_tools/EditingTools.vala -M src/util/image.vala - -commit c83185625a081f31dcebb8d2feb68255c5475d56 -Author: Clint Rogers -Date: Tue Jan 17 13:34:51 2012 -0800 - - Closes #4599, closes #4597, use the raw dimensions as a starting - point when computing the after-pipeline dimensions. - -M src/Photo.vala - -commit cac6ae507447456e158a3e1398182c78f036fe96 -Author: Clint Rogers -Date: Tue Jan 17 13:06:55 2012 -0800 - - Closes #4618, moves straighten tool button to where the spec says - it should be. - -M src/PhotoPage.vala - -commit a0b06f73072b482a39d1a571d4779c7deba78651 -Author: Clint Rogers -Date: Thu Jan 12 17:17:07 2012 -0800 - - Closes #61. - -M src/MediaDataRepresentation.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/VideoSupport.vala -M src/editing_tools/EditingTools.vala -A src/editing_tools/StraightenTool.vala -M src/editing_tools/mk/editing_tools.mk -M src/util/image.vala - -commit e90e4112c2cab0fad36e824a7d87f26fc1cfb00b -Author: Adam Dingle -Date: Tue Jan 10 17:44:04 2012 -0800 - - Closes #4584 (update copyrights to 2012). - -M INSTALL -M README -M chkver -M configure -M debian/copyright -M help/C/Makefile -M libraw-config -M mkunit -M mkvala -M plugins/common/RESTSupport.vala -M plugins/common/Resources.vala -M plugins/shotwell-publishing-extras/PiwigoPublishing.vala -M plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -M plugins/shotwell-publishing/shotwell-publishing.vala -M plugins/shotwell-transitions/CrumbleEffect.vala -M plugins/shotwell-transitions/FadeEffect.vala -M plugins/shotwell-transitions/SlideEffect.vala -M plugins/shotwell-transitions/shotwell-transitions.vala -M po/shotwell-core/af.po -M po/shotwell-core/ar.po -M po/shotwell-core/ast.po -M po/shotwell-core/bg.po -M po/shotwell-core/bn.po -M po/shotwell-core/ca.po -M po/shotwell-core/cs.po -M po/shotwell-core/da.po -M po/shotwell-core/de.po -M po/shotwell-core/el.po -M po/shotwell-core/en_GB.po -M po/shotwell-core/es.po -M po/shotwell-core/et.po -M po/shotwell-core/eu.po -M po/shotwell-core/fi.po -M po/shotwell-core/fr.po -M po/shotwell-core/gl.po -M po/shotwell-core/he.po -M po/shotwell-core/hr.po -M po/shotwell-core/hu.po -M po/shotwell-core/id.po -M po/shotwell-core/it.po -M po/shotwell-core/ja.po -M po/shotwell-core/kk.po -M po/shotwell-core/ko.po -M po/shotwell-core/lt.po -M po/shotwell-core/lv.po -M po/shotwell-core/mk.po -M po/shotwell-core/nb.po -M po/shotwell-core/nl.po -M po/shotwell-core/pa.po -M po/shotwell-core/pl.po -M po/shotwell-core/pt.po -M po/shotwell-core/pt_BR.po -M po/shotwell-core/ro.po -M po/shotwell-core/ru.po -M po/shotwell-core/shotwell.pot -M po/shotwell-core/sk.po -M po/shotwell-core/sl.po -M po/shotwell-core/sr.po -M po/shotwell-core/sv.po -M po/shotwell-core/ta.po -M po/shotwell-core/te.po -M po/shotwell-core/th.po -M po/shotwell-core/tr.po -M po/shotwell-core/uk.po -M po/shotwell-core/vi.po -M po/shotwell-core/zh_CN.po -M po/shotwell-core/zh_TW.po -M po/shotwell-extras/ar.po -M po/shotwell-extras/ast.po -M po/shotwell-extras/bg.po -M po/shotwell-extras/bn.po -M po/shotwell-extras/ca.po -M po/shotwell-extras/cs.po -M po/shotwell-extras/da.po -M po/shotwell-extras/de.po -M po/shotwell-extras/el.po -M po/shotwell-extras/en_GB.po -M po/shotwell-extras/es.po -M po/shotwell-extras/et.po -M po/shotwell-extras/eu.po -M po/shotwell-extras/fi.po -M po/shotwell-extras/fr.po -M po/shotwell-extras/gl.po -M po/shotwell-extras/he.po -M po/shotwell-extras/hr.po -M po/shotwell-extras/hu.po -M po/shotwell-extras/id.po -M po/shotwell-extras/it.po -M po/shotwell-extras/ja.po -M po/shotwell-extras/kk.po -M po/shotwell-extras/ko.po -M po/shotwell-extras/lt.po -M po/shotwell-extras/lv.po -M po/shotwell-extras/mk.po -M po/shotwell-extras/nb.po -M po/shotwell-extras/nl.po -M po/shotwell-extras/pa.po -M po/shotwell-extras/pl.po -M po/shotwell-extras/pt.po -M po/shotwell-extras/pt_BR.po -M po/shotwell-extras/ro.po -M po/shotwell-extras/ru.po -M po/shotwell-extras/shotwell-extras.pot -M po/shotwell-extras/sk.po -M po/shotwell-extras/sl.po -M po/shotwell-extras/sr.po -M po/shotwell-extras/sv.po -M po/shotwell-extras/ta.po -M po/shotwell-extras/te.po -M po/shotwell-extras/th.po -M po/shotwell-extras/tr.po -M po/shotwell-extras/uk.po -M po/shotwell-extras/zh_CN.po -M po/shotwell-extras/zh_TW.po -M samples/simple-plugin/README -M samples/simple-plugin/simple-plugin.vala -M src/AppDirs.vala -M src/AppWindow.vala -M src/Application.vala -M src/BatchImport.vala -M src/Box.vala -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/ColorTransformation.vala -M src/CommandManager.vala -M src/Commands.vala -M src/CustomComponents.vala -M src/Debug.vala -M src/DesktopIntegration.vala -M src/Dialogs.vala -M src/Dimensions.vala -M src/DirectoryMonitor.vala -M src/Event.vala -M src/Exporter.vala -M src/International.vala -M src/LibraryFiles.vala -M src/LibraryMonitor.vala -M src/MediaDataRepresentation.vala -M src/MediaInterfaces.vala -M src/MediaMetadata.vala -M src/MediaMonitor.vala -M src/MediaPage.vala -M src/MediaViewTracker.vala -M src/MetadataWriter.vala -M src/Orientation.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoMonitor.vala -M src/PhotoPage.vala -M src/PixbufCache.vala -M src/Printing.vala -M src/Properties.vala -M src/Resources.vala -M src/Screensaver.vala -M src/SearchFilter.vala -M src/SlideshowPage.vala -M src/SortedList.vala -M src/SortedListTests.vala -M src/Tag.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala -M src/TimedQueue.vala -M src/Tombstone.vala -M src/Upgrades.vala -M src/VideoMetadata.vala -M src/VideoMonitor.vala -M src/VideoSupport.vala -M src/alien_db/AlienDatabase.vala -M src/alien_db/AlienDatabaseDriver.vala -M src/alien_db/AlienDatabaseEvent.vala -M src/alien_db/AlienDatabaseHandler.vala -M src/alien_db/AlienDatabaseImportDialog.vala -M src/alien_db/AlienDatabaseImportDialogController.vala -M src/alien_db/AlienDatabaseImportJob.vala -M src/alien_db/AlienDatabaseImportSource.vala -M src/alien_db/AlienDatabasePhoto.vala -M src/alien_db/AlienDatabaseTag.vala -M src/alien_db/AlienDatabaseVersion.vala -M src/alien_db/AlienDb.vala -M src/alien_db/DiscoveredAlienDatabase.vala -M src/alien_db/f_spot/AlienDb.FSpot.vala -M src/alien_db/f_spot/FSpotDatabase.vala -M src/alien_db/f_spot/FSpotDatabaseBehavior.vala -M src/alien_db/f_spot/FSpotDatabaseDriver.vala -M src/alien_db/f_spot/FSpotDatabaseEvent.vala -M src/alien_db/f_spot/FSpotDatabasePhoto.vala -M src/alien_db/f_spot/FSpotDatabaseTable.vala -M src/alien_db/f_spot/FSpotDatabaseTag.vala -M src/alien_db/f_spot/FSpotMetaTable.vala -M src/alien_db/f_spot/FSpotPhotoTagsTable.vala -M src/alien_db/f_spot/FSpotPhotoVersionsTable.vala -M src/alien_db/f_spot/FSpotPhotosTable.vala -M src/alien_db/f_spot/FSpotRollsTable.vala -M src/alien_db/f_spot/FSpotTableBehavior.vala -M src/alien_db/f_spot/FSpotTagsTable.vala -M src/camera/Branch.vala -M src/camera/Camera.vala -M src/camera/CameraTable.vala -M src/camera/GPhoto.vala -M src/camera/ImportPage.vala -M src/config/Config.vala -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala -M src/core/Alteration.vala -M src/core/ContainerSourceCollection.vala -M src/core/Core.vala -M src/core/DataCollection.vala -M src/core/DataObject.vala -M src/core/DataSet.vala -M src/core/DataSource.vala -M src/core/DataSourceTypes.vala -M src/core/DataView.vala -M src/core/DataViewTypes.vala -M src/core/DatabaseSourceCollection.vala -M src/core/SourceCollection.vala -M src/core/SourceHoldingTank.vala -M src/core/SourceInterfaces.vala -M src/core/Tracker.vala -M src/core/ViewCollection.vala -M src/core/util.vala -M src/db/DatabaseTable.vala -M src/db/Db.vala -M src/db/EventTable.vala -M src/db/FaceLocationTable.vala -M src/db/FaceTable.vala -M src/db/PhotoTable.vala -M src/db/SavedSearchDBTable.vala -M src/db/TagTable.vala -M src/db/TombstoneTable.vala -M src/db/VersionTable.vala -M src/db/VideoTable.vala -M src/direct/Direct.vala -M src/direct/DirectPhoto.vala -M src/direct/DirectPhotoPage.vala -M src/direct/DirectView.vala -M src/direct/DirectWindow.vala -M src/editing_tools/EditingTools.vala -M src/events/Branch.vala -M src/events/EventDirectoryItem.vala -M src/events/EventPage.vala -M src/events/Events.vala -M src/events/EventsDirectoryPage.vala -M src/faces/Branch.vala -M src/faces/Face.vala -M src/faces/FaceLocation.vala -M src/faces/FacePage.vala -M src/faces/FaceShape.vala -M src/faces/Faces.vala -M src/library/Branch.vala -M src/library/FlaggedBranch.vala -M src/library/FlaggedPage.vala -M src/library/ImportQueueBranch.vala -M src/library/ImportQueuePage.vala -M src/library/LastImportBranch.vala -M src/library/LastImportPage.vala -M src/library/Library.vala -M src/library/LibraryWindow.vala -M src/library/OfflineBranch.vala -M src/library/OfflinePage.vala -M src/library/TrashBranch.vala -M src/library/TrashPage.vala -M src/main.vala -M src/photos/BmpSupport.vala -M src/photos/GRaw.vala -M src/photos/GdkSupport.vala -M src/photos/JfifSupport.vala -M src/photos/PhotoFileAdapter.vala -M src/photos/PhotoFileFormat.vala -M src/photos/PhotoFileSniffer.vala -M src/photos/PhotoMetadata.vala -M src/photos/Photos.vala -M src/photos/PngSupport.vala -M src/photos/RawSupport.vala -M src/photos/TiffSupport.vala -M src/plugins/ManifestWidget.vala -M src/plugins/Plugins.vala -M src/plugins/PublishingInterfaces.vala -M src/plugins/SpitInterfaces.vala -M src/plugins/StandardHostInterface.vala -M src/plugins/TransitionsInterfaces.vala -M src/publishing/APIGlue.vala -M src/publishing/Publishing.vala -M src/publishing/PublishingPluginHost.vala -M src/publishing/PublishingUI.vala -M src/searches/Branch.vala -M src/searches/SavedSearchDialog.vala -M src/searches/SavedSearchPage.vala -M src/searches/SearchBoolean.vala -M src/searches/Searches.vala -M src/sidebar/Branch.vala -M src/sidebar/Entry.vala -M src/sidebar/Sidebar.vala -M src/sidebar/Tree.vala -M src/sidebar/common.vala -M src/slideshow/Slideshow.vala -M src/slideshow/TransitionEffects.vala -M src/tags/Branch.vala -M src/tags/HierarchicalTagIndex.vala -M src/tags/HierarchicalTagUtilities.vala -M src/tags/TagPage.vala -M src/tags/Tags.vala -M src/threads/BackgroundJob.vala -M src/threads/Semaphore.vala -M src/threads/Threads.vala -M src/threads/Workers.vala -M src/unit/Unit.vala -M src/unit/rc/Unit.m4 -M src/unit/rc/UnitInternals.m4 -M src/unit/rc/template.vala -M src/unit/rc/unitize_entry.m4 -M src/util/KeyValueMap.vala -M src/util/Util.vala -M src/util/file.vala -M src/util/image.vala -M src/util/misc.vala -M src/util/string.vala -M src/util/system.vala -M src/util/ui.vala -M thumbnailer/shotwell-video-thumbnailer.vala -M vapi/ExtendedPosix.vapi -M vapi/LConv.vapi -M vapi/gphoto.h -M vapi/libexif.vapi -M vapi/libgphoto2.vapi -M vapi/libraw.vapi - -commit a1d3971c5284f8f5f0f3a1586159d1b2e66f21f6 -Author: Clint Rogers -Date: Mon Jan 9 18:26:08 2012 -0800 - - Closes #4485, prevents us from accidentally calling deactivate_tool() - repeatedly. - -M src/PhotoPage.vala - -commit ca300c4810531622e59115d9b2f1e6ee6a9294df -Author: Clint Rogers -Date: Fri Jan 6 11:19:33 2012 -0800 - - Tarballs delivered to QA passed, releasing those at 0.11.91 unstable - and bumping version to 0.11.91+trunk. - -M Makefile - -commit d95fe7dd7fa4181b2deae012060f5a1f669405cf -Author: Eric Gregory -Date: Thu Jan 5 15:59:41 2012 -0800 - - Attempt #2 at fixing daily - -M debian/control - -commit ce17d44de155966c45f95e59cba126f4bda5afa7 -Author: Eric Gregory -Date: Thu Jan 5 15:46:40 2012 -0800 - - Changing control file in attempt to fix daily build - -M debian/control - -commit ab5f7e47db025bf671bcbd88829ab28d43e36041 -Author: Lucas Beeler -Date: Fri Dec 30 18:08:07 2011 -0800 - - Added Mihhail Afanasjev to the THANKS file for his gracious work - closing #4532. - -M THANKS - -commit 86d74906a7e684733f3e2d76b026090ea3b605dd -Author: Mihhail Afanasjev -Date: Fri Dec 30 17:56:46 2011 -0800 - - Alphabetizes the tag list appearing beneath each photo in the - checkerboard view. Closes #4532. - -M src/Tag.vala - -commit 5ef32dedd7af1f80dd2125167b130fb0e03f3b71 -Author: Clint Rogers -Date: Fri Dec 23 16:16:06 2011 -0800 - - Closes #4529, updates the required version of valac in - ./debian/control - to force Launchpad to pull in the correct version when automatically - building. - -M debian/control - -commit f7b7d82883f4ab4fb0769816891dc6413c387860 -Author: Clint Rogers -Date: Fri Dec 23 12:25:03 2011 -0800 - - Stripped trailing whitespaces, did not modify code. Pushing this to - test daily build fix. - -M src/editing_tools/EditingTools.vala - -commit 0c30749a96f37e9cc9520e8cfbe012b9a15e0fdd -Author: Clint Rogers -Date: Mon Dec 19 14:59:51 2011 -0800 - - Closes #4484, adds support for de-rotating points and makes redeye - work correctly with straightened images. - -M src/Photo.vala -M src/editing_tools/EditingTools.vala -M src/util/image.vala - -commit 5919a2bd8a19e5a05cb843f6b0401f981cafe829 -Author: Lucas Beeler -Date: Mon Dec 19 14:37:52 2011 -0800 - - Added Dan Nguyen to the THANKS file for his work on the Vietnamese - translation. - -M THANKS - -commit 46232946ccb399cccfda70d53a379f1ce378e1f6 -Author: Lucas Beeler -Date: Mon Dec 19 14:16:46 2011 -0800 - - Adds Vietnamese translations. Closes #4514. - -M Makefile -A po/shotwell-core/vi.po -A po/shotwell-extras/vi.po - -commit fb25f0aa77312ecceb77bcc83b4c4ad13b4b34aa -Author: Clint Rogers -Date: Mon Dec 19 14:11:30 2011 -0800 - - Closes #4515, allows empty tags to persist. - -M src/Tag.vala - -commit dcc952148791c5b8dd68044cb9126e2b292d5977 -Author: Clint Rogers -Date: Thu Dec 15 10:47:30 2011 -0800 - - Closes #4483 by making rotate_arb respect the original's aspect - ratio and removes some stray spaces git kept whining about. - -M src/util/image.vala - -commit 768ad32850bca7b1338c4c80dba38d593adef299 -Author: Clint Rogers -Date: Tue Dec 13 12:21:53 2011 -0800 - - Closes #4481, moves editing tools off into their own unit. - -M Makefile -M src/Commands.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/direct/DirectPhotoPage.vala -R099 src/EditingTools.vala src/editing_tools/EditingTools.vala -A src/editing_tools/mk/editing_tools.mk -M units.mk - -commit e0fddc246420ed60934e57fe265276ec0b8760ec -Author: Clint Rogers -Date: Mon Dec 12 11:59:33 2011 -0800 - - Proposed patch would close #4469 by working around a binding problem - and changing a single GLib call from a deprecated function to an - allowed one. - -M Makefile -M src/Properties.vala -A vapi/gdk-3.0.vapi - -commit 2eba121848cd1b106aac14ed57ba5c577e6c8d2d -Author: Clint Rogers -Date: Tue Dec 6 18:38:05 2011 -0800 - - Closes #4461, removes an assertion we don't need anymore from - TimedQueue(). - -M src/TimedQueue.vala - -commit fab9a6156608f0d6d23ad3c2d3b2ea4494026907 -Author: Clint Rogers -Date: Tue Dec 6 13:00:57 2011 -0800 - - Closes #4467, now builds cleanly with Vala 0.14.1. - -M Makefile -M src/CustomComponents.vala - -commit b61125da9b0fdcc05807c0245953436e5ae36d78 -Author: Clint Rogers -Date: Fri Dec 2 14:37:18 2011 -0800 - - Closes #4432, fixes the case where the app would try to skip out on - copying an exported file at an inappropriate time. - -M src/CollectionPage.vala -M src/DesktopIntegration.vala -M src/Exporter.vala -M src/Page.vala -M src/VideoSupport.vala - -commit c0973ba84e6e9547527dbdb004d8a61c57f718c9 -Author: Clint Rogers -Date: Thu Dec 1 11:26:10 2011 -0800 - - Added '+trunk' to version number. - -M Makefile - -commit ef031cdca0bb17c0eb995e0ebdecfed673c2dd43 -Author: Clint Rogers -Date: Wed Nov 30 19:06:46 2011 -0800 - - Closes #4463, fixes a problem where two .vapi files from the vapi/ - directory would get left out when running 'make dist'. - -M Makefile - -commit 0ad504979775b8ab3421f3d6cfa634dde490e0a2 -Author: Clint Rogers -Date: Wed Nov 30 17:50:37 2011 -0800 - - Closes #4366, prevents us from attempting to discard an - already-discarded widget. - -M src/sidebar/Tree.vala - -commit 7b2a9d2399a28f87c6754e5b7879a807dadf9d2f -Author: Clint Rogers -Date: Wed Nov 30 15:41:28 2011 -0800 - - Re-closes #4354 by adding some code to fix up an already corrupted - db and force bad photo orientations to a safe value. - -M src/db/PhotoTable.vala - -commit 82db80b777136c1afec0633a3396af41b9294f4c -Author: Clint Rogers -Date: Wed Nov 30 14:15:32 2011 -0800 - - Closes #4375, changes the suffix for modified images in the French - version to something Piwigo will accept. - -M po/shotwell-core/fr.po - -commit ee1a33c3dc70c6cf7e60f235e791b033e0c8de0a -Author: Clint Rogers -Date: Wed Nov 30 14:12:03 2011 -0800 - - Closes #4440, works around a weird problem in libgee that would - occasionally trigger the reaper at inappropriate times, causing - reparented tags to deparent and flatten themselves. - -M src/Tag.vala - -commit 56c8c41c28ba9120b3b8c78c3c1e6f265cf1b7a6 -Author: Adam Dingle -Date: Mon Nov 28 10:01:49 2011 -0800 - - Updated documentation to mention the F2 shortcut key for editing a - photo's title. - -M help/C/organize-title.page - -commit fbc2d39e775008ec0a04d48b394734ce2ac70a31 -Author: Clint Rogers -Date: Wed Nov 23 15:25:11 2011 -0800 - - Closes #4302 by adding a workaround to suppress the warning. - -M src/Dialogs.vala - -commit 0b07cabc754cbb17805eec318f1d63157891dc1b -Author: Clint Rogers -Date: Wed Nov 23 13:51:01 2011 -0800 - - Closes #4422 by saving the tag being reparented as a restore point, - waiting until the tree has been pruned, then switching back to the - restore point tag. - -M src/tags/Branch.vala - -commit 4c0b25a2f730e7cb7eb58df2f0a6977208afd539 -Author: Clint Rogers -Date: Tue Nov 22 11:00:49 2011 -0800 - - Closes #2364; saves the cursor position before trashing, and restores - it after. - -M src/MediaPage.vala - -commit cbddb51ffa0a69eece5a5d189b77e206b9597642 -Author: Clint Rogers -Date: Mon Nov 21 12:50:56 2011 -0800 - - Closes #3953 by adding the ability to create a new tag from an empty - area of the sidebar. - -M src/sidebar/Tree.vala -M src/tags/Branch.vala -M ui/sidebar_default_context.ui - -commit f348dd8711a86de5fe7f6bb7b4f72fbbd54d37cd -Author: Clint Rogers -Date: Fri Nov 18 12:45:44 2011 -0800 - - Closes #3639, prevents the app from crashing if it fails to load - a stock icon (warnings about the missing icon will appear in the - console; this is by design). - -M src/Resources.vala - -commit 1b02b7c88f50a0287ec2b8b32943ec217ffa6ef0 -Author: Clint Rogers -Date: Thu Nov 17 16:56:55 2011 -0800 - - Closes #4357 by adding a friendly message here. - -M src/camera/ImportPage.vala - -commit 867d110303027b3fabfc338c0b97060722c0e012 -Author: Clint Rogers -Date: Thu Nov 17 16:10:32 2011 -0800 - - Closes #4059 with a minor wording change. - -M src/Commands.vala - -commit 6a6360deab0a6b90c9371d066a5e287f247df1ca -Author: Clint Rogers -Date: Thu Nov 17 15:50:41 2011 -0800 - - Closes #3155 by preventing the external editor and external raw - editor menu choices from being out of range. - -M src/Dialogs.vala - -commit bbb90a1a86462cb358d63150bc5fa9939b18f3c3 -Author: Clint Rogers -Date: Thu Nov 17 12:06:39 2011 -0800 - - Closes #4344 by checking if a file has no embedded exposure date, - and if it doesn't, checking the row's exposure date against the - file's timestamp. - -M src/Photo.vala - -commit cf087489ea26ef5451f27ada34896972f69a6163 -Author: Clint Rogers -Date: Wed Nov 16 13:47:57 2011 -0800 - - Closes #4263 by temporarily disabling page switching while trashing - an image from an event from within the PhotoPage. - -M src/PhotoPage.vala -M src/library/LibraryWindow.vala - -commit 31514971f592a6c7ad0e832e854050f583b4029f -Author: Siddhesh Poyarekar -Date: Wed Nov 16 11:43:59 2011 -0800 - - Enables Shotwell to build with libraw 0.14.x. Note that as of libraw - 0.14.0, libraw is available as a shared library. At the time of this - commit, the most recent version of libraw was 0.14.3. This patch - was tested against that version. - -M src/photos/GRaw.vala -M vapi/libraw.vapi - -commit 6199368a3b913c7ecc9d4664c96fc9d58b7fa337 -Author: Jonas Bushart -Date: Tue Nov 15 15:53:39 2011 -0800 - - Improves Shotwell integration with the Unity progress bar - system. Closes #4001. - -M Makefile -M src/Dialogs.vala -A src/UnityProgressBar.vala -M src/camera/ImportPage.vala -M src/library/ImportQueuePage.vala -M src/library/LibraryWindow.vala - -commit 0f437519a88bbd54f6a674c333f4a3614bd10cf1 -Author: Clint Rogers -Date: Tue Nov 15 14:52:29 2011 -0800 - - Closes #4194 by ensuring that exported photos are properly fetched - before reimporting in direct-edit mode. - -M src/direct/DirectPhotoPage.vala - -commit 4de34b7b567973fc2c231c8b88c6691e6b443892 -Author: Lucas Beeler -Date: Mon Nov 14 18:34:13 2011 -0800 - - Ensures that the menu wrapping changes made in the last commit only - occur on systems without appmenu. - -M src/Resources.vala -M src/library/LibraryWindow.vala - -commit 43fba93b9dec9f7091d820e6e2fbeb2ec0edce3f -Author: Lucas Beeler -Date: Mon Nov 14 17:42:03 2011 -0800 - - Wraps the LibraryWindow menu bar in a fixed-size container to prevent - flickering when menu bars are swapped-in and swapped-out on page - switches. Closes #4303. - -M src/library/LibraryWindow.vala - -commit 83b9a153bf503fd7d507a3ea5c423eba717bf834 -Author: Clint Rogers -Date: Mon Nov 14 12:30:52 2011 -0800 - - Closes #3847, fixes a problem where Ctrl+Z did nothing when pressed - while an editing tool was open. - -M src/EditingTools.vala - -commit a6ab6573cad30b22e4060e56b52c88129b848e1c -Author: Clint Rogers -Date: Fri Nov 11 12:21:02 2011 -0800 - - Previous commit inadvertently added hard tabs; this commit fixes it. - -M src/Photo.vala - -commit 163bf4a114acd97734264eea7835137d804b67e1 -Author: Clint Rogers -Date: Thu Nov 10 18:37:01 2011 -0800 - - Closes #4345, #4363 and #4354. Works around a problem where class - instances passed as ref parameters would cause some methods to fail - silently and return without doing anything. - -M src/Photo.vala -M src/db/PhotoTable.vala - -commit 5dff0521cf79a111c83d1d7a912e990b0850bd7e -Author: Lucas Beeler -Date: Thu Nov 10 15:13:54 2011 -0800 - - Changes the window class of editing tool palettes to enable them to - be moved when the window manager is vanilla compiz as packaged in - FC 16. Closes #4360. - -M src/EditingTools.vala - -commit fa3c93a9ba6ee305e96354b20209cc879d20ba04 -Author: Lucas Beeler -Date: Wed Nov 9 17:16:04 2011 -0800 - - Fixes one of the most subtle bugs in Shotwell history; closes #3870. - -M src/CheckerboardLayout.vala - -commit 559f2a96e98d43f19093f2f3b89d55cf51e02ee2 -Author: Lucas Beeler -Date: Tue Nov 8 18:27:29 2011 -0800 - - The search bar is now styled correctly in Fedora Core 16. Closes - #4362. - -M src/Resources.vala - -commit ac6c777642fe9d21ca2abe39b9017b0ddbbd1f1c -Author: Clint Rogers -Date: Mon Nov 7 17:06:01 2011 -0800 - - Closes #4356 by enabling text on all progress bars. - -M src/Dialogs.vala -M src/camera/ImportPage.vala -M src/library/ImportQueuePage.vala -M src/library/LibraryWindow.vala - -commit 1728e51511476d4a5b0863cdad1a2897173b270d -Author: Lucas Beeler -Date: Mon Nov 7 16:13:47 2011 -0800 - - Updates version number and merges changes to the Makefile, NEWS file, - and debian/changelog file following the Shotwell 0.11.6 release. - -M Makefile -M NEWS -M debian/changelog - -commit 70dc7a40bc101482f949d1362964667b19293d7d -Author: Lucas Beeler -Date: Fri Nov 4 14:36:18 2011 -0700 - - Changes viewport styling in the PhotoPage. Closes #4319. - -M src/Page.vala - -commit c1f9e00accd18cbf485422aff40fcde9538bf692 -Author: Clint Rogers -Date: Wed Nov 2 19:52:42 2011 -0700 - - Closes #4244 by ensuring that the PhotoPage correctly hierarchicalizes - tags when adding them. - -M src/PhotoPage.vala - -commit f2810804ec02f22157d0067d29a76a53912e811e -Author: Lucas Beeler -Date: Tue Nov 1 15:38:10 2011 -0700 - - Adds more CSS styling to the sidebar. Fully closes #3873. - -M src/Resources.vala -M src/SearchFilter.vala - -commit b84b4f7d6bce40f08f3c6ec15847d16bd25bd5d4 -Author: Clint Rogers -Date: Mon Oct 31 13:11:11 2011 -0700 - - Closes #4307, ensures that crop and redeye menu options and hotkeys - respect minimum image size limits and match tool button state. - -M src/PhotoPage.vala -M src/direct/DirectPhotoPage.vala - -commit 97f1311d880c16090a3af2bb0ebc9cf85c6494bf -Author: Lucas Beeler -Date: Mon Oct 31 12:39:47 2011 -0700 - - Uses carefully chosen CSS that styles the search bar correctly on - both Fedora Core 15 (with Gtk+ 3.0) and Ubuntu Oneiric (with Gtk+ - 3.2). Mostly closes #3873. The outstanding problem involves the - "prelight" or "hover" state of the search bar buttons. This state - appears unresponsive to styling using either the CSS or legacy - APIs. I'll be in communication with some of the Gtk+ devs over the - next few days to see how we can force this state to by styled. - -M src/Resources.vala -M src/SearchFilter.vala - -commit 28787b7229e57c33b2ecede0abfb79a2ad509eba -Author: Clint Rogers -Date: Fri Oct 28 14:50:29 2011 -0700 - - Closes #4305 by checking for and handling the case where the array - itself is valid, but the strings within it are null. - -M src/Dialogs.vala - -commit 0a03708c59f59d6b83a2f76f8dd2eb35d83fe904 -Author: Clint Rogers -Date: Thu Oct 27 13:54:52 2011 -0700 - - Closes #4291 by ensuring that the image size is properly stored to - the backing row in direct-edit mode's in-memory DB. - -M src/Photo.vala -M src/direct/DirectPhoto.vala - -commit 4946dcb65a8888514b734594a943340b6b14c37b -Author: Clint Rogers -Date: Thu Oct 27 12:22:54 2011 -0700 - - Closes #4193 by making the widget in question get cast to a box, - rather than a vbox. - -M src/Dialogs.vala - -commit 71209d34a02fd6b975b67a27ac7ddf7a599bf64c -Author: Clint Rogers -Date: Wed Oct 26 15:21:51 2011 -0700 - - Closes #4250 by saving a copy of the metadata before writing out - the modified pixel data, which could sometimes strip it from the file. - -M src/Photo.vala -M src/direct/DirectPhotoPage.vala - -commit 3a3815d695bf74b8e12966bd68cce701dc3948cc -Author: Fryderyk Dziarmagowski -Date: Wed Oct 26 14:38:11 2011 -0700 - - Fixes plugin linkage problems on some platforms. Closes #3757. - -M THANKS -M plugins/Makefile.plugin.mk -M plugins/shotwell-publishing-extras/Makefile -M plugins/shotwell-publishing/Makefile - -commit 10b22474d145a709310ae4a98ef8ae2d9d4c8720 -Author: Lucas Beeler -Date: Tue Oct 25 18:57:30 2011 -0700 - - Styles ScrolledWindow, Viewport, and other widgets with CSS to restore - the GTK+ 2 look of the checkerboard view on Oneiric; closes #4220. - -M src/Page.vala -M src/Resources.vala -M src/library/LibraryWindow.vala - -commit 5c85a9a7361ffff9fd70b7f2c9d4f5e861f2fd75 -Author: Lucas Beeler -Date: Tue Oct 25 15:51:21 2011 -0700 - - Adds utility functions and constants for manipulating GTK+ - 3 CSS-styled widgets. We'll need these moving forward since it - looks like most of our GTK+ 3.0 visual glitches will be solved - widget styling. - -M src/Resources.vala -M src/library/LibraryWindow.vala - -commit bcbb169ae456322fdbdc5e67924c1fd5ccee15ce -Author: Clint Rogers -Date: Mon Oct 24 15:19:55 2011 -0700 - - Closes #4190 by appending tag parent paths with a trailing '/'. - -M src/Tag.vala - -commit c612ff49958859f6b0177fedd78922f4147b0352 -Author: Lucas Beeler -Date: Mon Oct 24 15:15:01 2011 -0700 - - Fixes an issue with popup combo boxes in the Piwigo Connector's - publishing options pane. Closes #3750. - -M plugins/shotwell-publishing-extras/PiwigoPublishing.vala -M -plugins/shotwell-publishing-extras/piwigo_publishing_options_pane.glade - -commit 855d98e977f9ecebb72e233182e632df5f3a7daf -Author: Eric Gregory -Date: Mon Oct 24 14:21:02 2011 -0700 - - trunk build for daily - -M debian/changelog -M debian/control - -commit 61445071db87685039b8741431da5bb4b4e1e15e -Author: Clint Rogers -Date: Fri Oct 21 18:33:31 2011 -0700 - - Closes #4274 by adding support for double-click to get out of - fullscreen when running in direct-edit mode. - -M src/direct/DirectPhotoPage.vala -M src/direct/DirectWindow.vala - -commit 197565c515800095b4396f4e23752aa14d3f9ba5 -Author: Clint Rogers -Date: Fri Oct 21 17:52:46 2011 -0700 - - Closes #4272 by applying the same style we applied to the info box - to the scrollable part of the sidebar. - -M src/library/LibraryWindow.vala - -commit aaa4c05682017a987991c3237646500feaed1542 -Author: Adam Dingle -Date: Thu Oct 20 09:33:03 2011 -0700 - - Fixed malformed changelog entries. - -M debian/changelog - -commit 20cbec49c263e16e4c06a06ec0aef6f3bfddd832 -Author: Clint Rogers -Date: Tue Oct 18 17:46:07 2011 -0700 - - Closes #3874 by setting a proper CSS style for the frame in question. - -M src/library/LibraryWindow.vala - -commit fbbd826f405a00b144b4b2ac7cf8abc861a3546f -Author: Clint Rogers -Date: Tue Oct 18 17:34:03 2011 -0700 - - Closes #4201 by changing all structs with reference members to classes - to work around a change to the way Vala handles structs passed - as arguments; - please see https://bugzilla.gnome.org/show_bug.cgi?id=661041 for - details. - -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -M src/EditingTools.vala -M src/Event.vala -M src/Page.vala -M src/Photo.vala -M src/Printing.vala -M src/Tag.vala -M src/VideoSupport.vala -M src/alien_db/AlienDatabase.vala -M src/alien_db/AlienDatabaseDriver.vala -M src/alien_db/f_spot/FSpotDatabase.vala -M src/alien_db/f_spot/FSpotDatabaseDriver.vala -M src/db/EventTable.vala -M src/db/FaceLocationTable.vala -M src/db/FaceTable.vala -M src/db/PhotoTable.vala -M src/db/SavedSearchDBTable.vala -M src/db/TagTable.vala -M src/db/TombstoneTable.vala -M src/db/VideoTable.vala -M src/direct/DirectPhoto.vala -M src/faces/Face.vala -M src/photos/PhotoMetadata.vala - -commit 37ccaae291ad457ec617aa10966e196b290a7e5f -Author: Clint Rogers -Date: Tue Oct 18 17:26:09 2011 -0700 - - Closes #3871 by forcing the 'Publishing x of y' message to be visible. - -M src/publishing/PublishingUI.vala - -commit 7bdb8282f126f5cbfb8ff8c4307f1b526aee8b7d -Author: Clint Rogers -Date: Tue Oct 18 17:19:11 2011 -0700 - - Closes #4195 by clamping out-of-range pixel data to between 0 and - 255, inclusive. - -M src/ColorTransformation.vala - -commit 22fd51f56987b4e2f7a0dfafd4b1b704901f5c66 -Author: Clint Rogers -Date: Tue Oct 18 16:26:39 2011 -0700 - - Closes #4178 by setting the resizability field of this type of dialog - to 'false'. - -M src/Dialogs.vala - -commit 1a3697431791fc232c3d338c588fff3a4ae809f8 -Author: Lucas Beeler -Date: Tue Oct 18 12:10:10 2011 -0700 - - Updates NEWS, debian/changelog, and Makefile for the 0.11.5 release. - Conflicts: - - Makefile - -M Makefile -M NEWS -M debian/changelog - -commit 91093ecc4d92c908394ca0616502472b840db8ce -Author: Lucas Beeler -Date: Mon Oct 17 14:10:44 2011 -0700 - - Jim and I believe this closes #4248. We'll now solicit community - input and try to repro in-house. - -M src/BatchImport.vala -M src/alien_db/AlienDatabaseImportJob.vala - -commit 9d8fb318451680efaa275dd57d59e2aeb2616a87 -Author: Lucas Beeler -Date: Thu Oct 13 13:01:31 2011 -0700 - - Updates the NEWS, debian/changelog, and Makefile version number in - preparation for the Shotwell 0.11.4 release. - Conflicts: - - Makefile - -M Makefile -M NEWS -M debian/changelog - -commit bae9537372c32543286def1728617391aeef58e0 -Author: Clint Rogers -Date: Thu Oct 13 16:58:57 2011 -0700 - - Closes #4245 and #4252 - missing details about external editing and - incorrect UI instructions in the yelp files. - -M help/C/edit-external.page - -commit 0add739d4fd602af0a5b6ccaf10a1d6a1a600f9f -Author: Lucas Beeler -Date: Thu Oct 13 12:22:31 2011 -0700 - - Fixes two collection concurrent access issues that could cause - Shotwell to crash. Closes #4248. - -M src/tags/HierarchicalTagIndex.vala - -commit 353e07fac94ed5b6ae7e784e3caa790241ee6d8b -Author: Clint Rogers -Date: Wed Oct 12 12:25:14 2011 -0700 - - Closes #4154, adds a little space between the visibility combo box - and the existing album combobox. - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit a1d6e0018a892b227ebc8fe0e523de0c60d9b647 -Author: Lucas Beeler -Date: Tue Oct 11 17:05:27 2011 -0700 - - Merges changes from the 0.11.3 release and updates the version number - to 0.11.3+trunk - -M Makefile -M NEWS -M debian/changelog - -commit 67e8a93168c1c3710fab500baddded5e8d034488 -Author: Lucas Beeler -Date: Fri Oct 7 15:06:16 2011 -0700 - - Closes #4189. - -M src/tags/Branch.vala - -commit 95878514b661b7f82ca08f344b65fe550df884b6 -Author: Lucas Beeler -Date: Fri Oct 7 13:57:32 2011 -0700 - - Closes #4172. - -M src/Dialogs.vala - -commit 91a0fa750fa827439512de39780141dc2180d09c -Author: Lucas Beeler -Date: Fri Oct 7 11:07:30 2011 -0700 - - Improves visual styling of the new, GTK+ 3-compatible histogram - component on Oneiric. - -M src/CustomComponents.vala - -commit ad51e8fec1856f8434aa0782b045f6067d897124 -Author: Lucas Beeler -Date: Thu Oct 6 18:35:07 2011 -0700 - - Restores the Adjust Palette histogram control to full functionality - under GTK+ 3. Closes #3869. - -M src/CustomComponents.vala - -commit 5d8dbe2ea100968fb3193b65417d01e6e3130287 -Author: Clint Rogers -Date: Tue Oct 4 16:38:38 2011 -0700 - - Closes #3566, saves the most-recently-chosen crop options to GSettings - when OK is clicked, then restores them and simulates a UI event - when the - crop tool is activated again. - -M misc/org.yorba.shotwell.gschema.xml -M src/EditingTools.vala -M src/config/ConfigurationInterfaces.vala -M src/config/GSettingsEngine.vala - -commit 2c79d05989fef32799e2d1a3f77c2bbb823078cc -Author: Lucas Stephen Beeler -Date: Mon Oct 3 16:03:05 2011 -0700 - - Partially fixes #3869. - -M src/CustomComponents.vala - -commit bd0eea4804e0478a2903ae59681dd58a3f65fbfc -Author: clinton -Date: Wed Sep 28 13:16:32 2011 -0700 - - Closes #4025, removes the resize grip from all application windows. - -M src/AppWindow.vala -M src/Dialogs.vala -M src/EditingTools.vala -M src/MediaPage.vala -M src/Properties.vala -M src/Resources.vala - -commit 88e50393db07c7215e956d8909790035d92a7e01 -Author: clinton -Date: Tue Sep 27 18:57:04 2011 -0700 - - Closes #4188, removes the hybrid engine, all GConf functionality, - and dependencies on gconf2 and libgconf2-dev. - -M Makefile -M debian/control -M src/config/Config.vala -M src/config/ConfigurationInterfaces.vala -D src/config/GConfEngine.vala -M src/config/GSettingsEngine.vala -D src/config/HybridEngine.vala -M src/config/mk/config.mk -M src/libshotwell.deps -M src/main.vala - -commit 64aec6b035f73de53f2f8300a55e7aac35b7256c -Author: Jim Nelson -Date: Tue Sep 27 18:16:08 2011 -0700 - - Now builds with (and requires) Vala 0.14: Closes #3760 - - Mostly grunt-work to ensure that all delegates may be stored as - unowned refs and that all - out parameters are assigned prior to exiting the method. One binding - change (Gdk.EventAny) - makes these changes incompatible with 0.12. - -M Makefile -M debian/control -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing-extras/PiwigoPublishing.vala -M plugins/shotwell-publishing-extras/YandexPublishing.vala -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -M plugins/shotwell-transitions/shotwell-transitions.vala -M src/AppWindow.vala -M src/BatchImport.vala -M src/Box.vala -M src/CheckerboardLayout.vala -M src/CustomComponents.vala -M src/Dialogs.vala -M src/Dimensions.vala -M src/DirectoryMonitor.vala -M src/EditingTools.vala -M src/Event.vala -M src/Exporter.vala -M src/MediaMetadata.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoMonitor.vala -M src/PixbufCache.vala -M src/SortedList.vala -M src/ThumbnailCache.vala -M src/TimedQueue.vala -M src/VideoMonitor.vala -M src/VideoSupport.vala -M src/alien_db/AlienDatabaseImportDialog.vala -M src/alien_db/AlienDatabaseImportJob.vala -M src/camera/CameraTable.vala -M src/camera/GPhoto.vala -M src/camera/ImportPage.vala -M src/core/DataCollection.vala -M src/core/DataSet.vala -M src/core/DatabaseSourceCollection.vala -M src/core/SourceHoldingTank.vala -M src/core/ViewCollection.vala -M src/core/util.vala -M src/db/VersionTable.vala -M src/direct/DirectWindow.vala -M src/library/LibraryWindow.vala -M src/photos/JfifSupport.vala -M src/photos/PhotoMetadata.vala -M src/plugins/ManifestWidget.vala -M src/plugins/Plugins.vala -M src/plugins/SpitInterfaces.vala -M src/plugins/StandardHostInterface.vala -M src/publishing/PublishingPluginHost.vala -M src/publishing/PublishingUI.vala -M src/sidebar/Tree.vala -M src/slideshow/TransitionEffects.vala -M src/threads/BackgroundJob.vala -M src/util/misc.vala - -commit abf4f3c2c8c28b446d4677e5c8936f9a5418d7e9 -Author: Jim Nelson -Date: Fri Sep 23 15:58:57 2011 -0700 - - Port to GTK+3: #3455 - - This enables Shotwell to build and run under GTK+3. Note there are - many outstanding bugs - caused by this move; they will be dealt with in separate commits. - -M Makefile -M plugins/Makefile.plugin.mk -M plugins/shotwell-publishing-extras/Makefile -M plugins/shotwell-publishing-extras/PiwigoPublishing.vala -M plugins/shotwell-publishing-extras/YandexPublishing.vala -M -plugins/shotwell-publishing-extras/piwigo_publishing_options_pane.glade -M plugins/shotwell-publishing-extras/yandex_publish_model.glade -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/Makefile -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -M src/AppWindow.vala -M src/CheckerboardLayout.vala -M src/CustomComponents.vala -M src/Dialogs.vala -M src/Dimensions.vala -M src/EditingTools.vala -M src/Page.vala -M src/PhotoPage.vala -M src/Printing.vala -M src/Properties.vala -M src/Resources.vala -M src/SearchFilter.vala -M src/SlideshowPage.vala -M src/camera/ImportPage.vala -M src/faces/FaceShape.vala -M src/library/LibraryWindow.vala -M src/libshotwell.deps -M src/main.vala -M src/plugins/mk/interfaces.mk -M src/publishing/PublishingUI.vala -M src/searches/SavedSearchDialog.vala -M src/sidebar/Tree.vala -M src/slideshow/TransitionEffects.vala -M src/util/image.vala -M src/util/ui.vala -M ui/shotwell.glade -A vapi/unique-3.0.deps -A vapi/unique-3.0.vapi -A vapi/webkitgtk-3.0.deps -A vapi/webkitgtk-3.0.vapi - -commit 367e2a8280ff307ad915ec95b947721462124f25 -Author: Clint Rogers -Date: Thu Sep 22 11:45:57 2011 -0700 - - Fixes #4148, changed "RAW + JPEG" to read "RAW+JPEG" in user-facing - strings. - -M src/Properties.vala -M src/camera/ImportPage.vala - -commit e7bb57070bc10379be7ecff692c9372ebcbaf61f -Author: Clint Rogers -Date: Wed Sep 21 16:02:09 2011 -0700 - - Fixes #4151, tells the error pane to wrap its text properly. - -M src/publishing/PublishingPluginHost.vala -M src/publishing/PublishingUI.vala - -commit 389b9f963eaad1665e462aa984558d6e8316f08e -Author: Lucas Beeler -Date: Tue Sep 20 13:32:58 2011 -0700 - - Updates the NEWS and debian/changelog for the Shotwell 0.11.2 release. - -M NEWS -M debian/changelog - -commit d9cc59b27059e21cfc7ea60d9ae7de91f5aff9df -Author: Eric Gregory -Date: Thu Sep 8 15:27:45 2011 -0700 - - 0.11.1 release - -M po/shotwell-core/af.po -M po/shotwell-core/ar.po -M po/shotwell-core/ast.po -M po/shotwell-core/bg.po -M po/shotwell-core/bn.po -M po/shotwell-core/ca.po -M po/shotwell-core/cs.po -M po/shotwell-core/da.po -M po/shotwell-core/de.po -M po/shotwell-core/el.po -M po/shotwell-core/en_GB.po -M po/shotwell-core/es.po -M po/shotwell-core/et.po -M po/shotwell-core/eu.po -M po/shotwell-core/fi.po -M po/shotwell-core/fr.po -M po/shotwell-core/gl.po -M po/shotwell-core/he.po -M po/shotwell-core/hr.po -M po/shotwell-core/hu.po -M po/shotwell-core/id.po -M po/shotwell-core/it.po -M po/shotwell-core/ja.po -M po/shotwell-core/kk.po -M po/shotwell-core/ko.po -M po/shotwell-core/lt.po -M po/shotwell-core/lv.po -M po/shotwell-core/mk.po -M po/shotwell-core/nb.po -M po/shotwell-core/nl.po -M po/shotwell-core/pa.po -M po/shotwell-core/pl.po -M po/shotwell-core/pt.po -M po/shotwell-core/pt_BR.po -M po/shotwell-core/ro.po -M po/shotwell-core/ru.po -M po/shotwell-core/sk.po -M po/shotwell-core/sl.po -M po/shotwell-core/sr.po -M po/shotwell-core/sv.po -M po/shotwell-core/ta.po -M po/shotwell-core/te.po -M po/shotwell-core/th.po -M po/shotwell-core/tr.po -M po/shotwell-core/uk.po -M po/shotwell-core/zh_CN.po -M po/shotwell-core/zh_TW.po -M po/shotwell-extras/ar.po -M po/shotwell-extras/ast.po -M po/shotwell-extras/bg.po -M po/shotwell-extras/bn.po -M po/shotwell-extras/ca.po -M po/shotwell-extras/cs.po -M po/shotwell-extras/da.po -M po/shotwell-extras/de.po -M po/shotwell-extras/el.po -M po/shotwell-extras/en_GB.po -M po/shotwell-extras/es.po -M po/shotwell-extras/et.po -M po/shotwell-extras/eu.po -M po/shotwell-extras/fi.po -M po/shotwell-extras/fr.po -M po/shotwell-extras/gl.po -M po/shotwell-extras/he.po -M po/shotwell-extras/hr.po -M po/shotwell-extras/hu.po -M po/shotwell-extras/id.po -M po/shotwell-extras/it.po -M po/shotwell-extras/ja.po -M po/shotwell-extras/kk.po -M po/shotwell-extras/ko.po -M po/shotwell-extras/lt.po -M po/shotwell-extras/lv.po -M po/shotwell-extras/mk.po -M po/shotwell-extras/nb.po -M po/shotwell-extras/nl.po -M po/shotwell-extras/pa.po -M po/shotwell-extras/pl.po -M po/shotwell-extras/pt.po -M po/shotwell-extras/pt_BR.po -M po/shotwell-extras/ro.po -M po/shotwell-extras/ru.po -M po/shotwell-extras/sk.po -M po/shotwell-extras/sl.po -M po/shotwell-extras/sr.po -M po/shotwell-extras/sv.po -M po/shotwell-extras/ta.po -M po/shotwell-extras/te.po -M po/shotwell-extras/th.po -M po/shotwell-extras/tr.po -M po/shotwell-extras/uk.po -M po/shotwell-extras/zh_CN.po -M po/shotwell-extras/zh_TW.po - -commit feddf6b57e08ff8084a6ed1b2eed205db41bb6e3 -Author: Eric Gregory -Date: Tue Aug 23 15:06:40 2011 -0700 - - added max valac version, +trunk to version - -M Makefile - -commit 421c0d42367de415c00c11fc692744a879db8b72 -Author: Clint Rogers -Date: Wed Sep 21 12:41:31 2011 -0700 - - Closes #4147 by adding the appropriate Pango markup here to make - the text smaller. - -M src/camera/ImportPage.vala - -commit 626c7eae76d3b41c60066f61d797648151e855e7 -Author: Lucas Beeler -Date: Mon Sep 19 17:43:26 2011 -0700 - - Properly traps Facebook session expiration following the shift to - OAuth. Closes #4153. - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit 4f826ff60410aa9f873964101e0680a41e2fc526 -Author: Lucas Beeler -Date: Mon Sep 19 17:25:08 2011 -0700 - - Fixes part of #4144. - -M src/Commands.vala - -commit 1ac28f48fbd9d4a0527b9237a086b72196646a9e -Author: Lucas Beeler -Date: Mon Sep 19 16:22:47 2011 -0700 - - Inserts proper checks for root tag form. Closes #4150. - -M src/Commands.vala - -commit d7df60490185e6f5899890c35133878ae6acb90d -Author: Lucas Beeler -Date: Mon Sep 19 15:04:13 2011 -0700 - - Makes dragging a top-level tag to the "Tags" grouping a no-op. Closes - #4145. - -M src/tags/Branch.vala - -commit 6d469dc786b8efd96aac4a94410d283629b93467 -Author: Lucas Beeler -Date: Sun Sep 18 16:17:19 2011 -0700 - - Changes implementation of the ReparentTagCommand such that it now - properly handles merge operations involving top-level tags. Closes - #4127 and #4128. - -M src/Commands.vala - -commit 67afbe314e992fa1600356912e62696f544f1f9c -Author: Clint Rogers -Date: Fri Sep 16 18:49:17 2011 -0700 - - Closes #4099. The application now reaps orphaned tags automatically, - preventing them from crashing via the sidebar tree-graft assertion. - -M src/Tag.vala - -commit fc278baef4da3227c99afc287aa90c713de1ede5 -Author: Jim Nelson -Date: Fri Sep 16 18:13:48 2011 -0700 - - Crash fixed when undoing tag merge: #4129 - - When undoing a complex series of tag merges and moves, Shotwell - would regularly crash. The - reparent tag command was holding on to Tag objects during its - lifetime. Proxies would be - better, but this is problematic because we can't use a proxy as a - map key. This patch uses - the tag's path (as a string) instead of a ref to the Tag itself. - -M src/Commands.vala - -commit 966fc3abddd6f4fc1a3470d130dbd94e57a626ac -Author: Jim Nelson -Date: Fri Sep 16 16:02:30 2011 -0700 - - Soft assertions during F-Spot import of duplicates: #4126 - - I believe this could happen any time duplicates were detected - during import. This might - solve other bugs where import is not reporting the right results. - -M src/Dialogs.vala - -commit ba9de3ce8197cea19085d4ba8551361d0e865811 -Author: Jim Nelson -Date: Fri Sep 16 15:55:22 2011 -0700 - - Problems with Samsung NV10: #4117 - - Photos taken with Samsung NV10 have improper EXIF date/time format. - This patch allows for - Shotwell to interpret them. The reporter also had trouble with - video creation time. This - doesn't appear to be an issue with Shotwell, as the dates were - corrupted in the file. - However, they exposed an overflow bug, which this patch corrects - as well. - -M src/MediaMetadata.vala -M src/VideoMetadata.vala - -commit 0d00bf1160a85c9c0fc89138f977406a4f8aa482 -Author: Lucas Beeler -Date: Fri Sep 16 13:43:05 2011 -0700 - - Changes the way tag exclusion works; closes #4051. - -M src/Photo.vala -M src/alien_db/AlienDatabaseImportJob.vala - -commit 32e64e7e76b0e8f119676217c80bf9278cc3f918 -Author: Gavrilov Maksim -Date: Fri Sep 16 13:31:45 2011 -0700 - - Makefile now respects VALAC and LDFLAGS environment variables: #4123 - - Courtesy Gavrilov Maksim. - -M Makefile - -commit aec8b56eb1660b79691040d6ad5a9e5aafca6ed8 -Author: Jim Nelson -Date: Thu Sep 15 17:53:34 2011 -0700 - - Crash in progress dialog monitor: #4119 - - This has proven to be difficult to reproduce, but I believe this - patch fixes a problem where - the progress dialog might be destroyed while inside its own monitor - callback. - -M src/Dialogs.vala - -commit e05acdc89ca7e9e4b46b1a36aaf07d4df94270df -Author: Jim Nelson -Date: Thu Sep 15 17:34:18 2011 -0700 - - Nautilus send-to no longer invoked if the user cancels the operation: - #4121 - - This has been around since Nautilus send-to was added. Additionally, - this fixes the same - bug if the user cancels the operation to install multiple desktop - backgrounds. - -M src/DesktopIntegration.vala -M src/Exporter.vala - -commit 86650695c92f907c3d69425faf462e56da5c22eb -Author: Lucas Beeler -Date: Thu Sep 15 17:16:03 2011 -0700 - - Changes the way string replacement is done during tag rename and - adds enhanced safety checks. Closes #4118. - -M src/Tag.vala - -commit b3f5e049798a0be7885c5108e03ab97ba62b442d -Author: Bruno Girin -Date: Wed Sep 14 15:28:53 2011 -0700 - - Allows images to be published to Piwigo servers at several different - preset sizes. Closes #3750. - -M misc/org.yorba.shotwell-extras.gschema.xml -M plugins/shotwell-publishing-extras/PiwigoPublishing.vala -M -plugins/shotwell-publishing-extras/piwigo_publishing_options_pane.glade - -commit 690f1e4d62686b467e9e279ce920b5d159e5a72f -Author: Lucas Beeler -Date: Wed Sep 14 12:27:10 2011 -0700 - - Corrects item count errors involving mixed media (e.g., photos - and videos) in the basic properties pane and the events directory - page. Closes #4113. - -M src/MediaDataRepresentation.vala -M src/Properties.vala - -commit 2f380a70c80b8a73c8aa908d4b88df3cf164d368 -Author: Lucas Beeler -Date: Tue Sep 13 17:21:14 2011 -0700 - - Modifies the Facebook connector significantly to use OAuth for - authentication. This definitively closes #4107 and #4018 and I'm - highly confident it closes #3022 as well. - -M misc/org.yorba.shotwell.gschema.xml -M plugins/shotwell-publishing/FacebookPublishing.vala -M src/plugins/PublishingInterfaces.vala -M src/publishing/PublishingUI.vala - -commit 65711da21a66f3cad2a98080ce0c380790f9faed -Author: Jim Nelson -Date: Tue Sep 13 17:19:23 2011 -0700 - - Double-clicking an event in the Events or a Year directory now moves - cursor: #4114 - - If the event being jumped to wasn't visible in the sidebar tree, - the cursor would not move - when jumping to a particular event. It turns out the tree needs to - be expanded to show the - sidebar entry prior to moving the cursor. - -M src/sidebar/Tree.vala - -commit 55f54e6c1a9274e252160a094673f3a144b114b0 -Author: Lucas Beeler -Date: Mon Sep 12 17:43:05 2011 -0700 - - Relaxes a guard condition allowing F-Spot tags to be more aggressively - sanitized. Closes #4081. - -M src/alien_db/AlienDatabaseImportJob.vala - -commit 6adebcd0bdf0389679263e2872cdb70317e7f37d -Author: Clint Rogers -Date: Fri Sep 9 14:27:52 2011 -0700 - - Closes #4108, makes sure we sanitize path components before adding - them. - -M src/alien_db/AlienDatabaseImportJob.vala - -commit d3d74334c540d156a8ba1d9783bbfdef04f0bafc -Author: Clint Rogers -Date: Fri Sep 9 12:33:27 2011 -0700 - - Closes #4030 by removing some checks whether we needed to re-sort - or not that could break in unexpected ways. - -M src/MediaPage.vala - -commit b180588faa2fb1b268de3f88bef0727b87fb5928 -Author: Eric Gregory -Date: Thu Sep 8 15:33:49 2011 -0700 - - pulling changes from 0.11.1 - -M Makefile -M NEWS -M debian/changelog - -commit 600c11f446fc00b19c3342b8fe322ac0f45e1ddf -Author: Lucas Beeler -Date: Thu Sep 8 11:50:08 2011 -0700 - - Adds updated Chinese (Taiwan) and Ukrainian translations. - -M po/shotwell-core/uk.po -M po/shotwell-core/zh_TW.po - -commit 3bb4adaca2cbce53e67431a86051bcff69f7dc90 -Author: Lucas Beeler -Date: Thu Sep 8 11:12:05 2011 -0700 - - Removes an extraneous string in the POT file. Closes #4082. - -M po/shotwell-core/shotwell.pot - -commit 906a5bcd821daabbb5ae32ebdd8c4f3ff94a62a2 -Author: Jim Nelson -Date: Wed Sep 7 18:44:07 2011 -0700 - - Exclude installation of gsettings-data-convert file: #4102 - - A configure option now allows the user to avoid installing the - gsettings-data-convert file - (shotwell.convert). This is useful because the file must be - installed in - /usr/share/GConf/gsettings (and not /usr/local) for the program to - locate it, which is a - problem for folks who want to install as a user and not root. - - Also cleaned up the configure script help, which was still reflecting - options no longer - available. - -M Makefile -M configure - -commit 6108a19b7ee27ae1198ba48dedc062540c050b4a -Author: clinton -Date: Wed Sep 7 17:16:45 2011 -0700 - - Re-closes 4061, removed the 'cannot import raw+jpeg from filesystem' - blurb. - -M help/C/import-file.page -M help/C/raw.page - -commit d5ec2d29cb29c37c1eca6ed07a34aa1b41aa059c -Author: Vincent Untz -Date: Wed Sep 7 16:53:02 2011 -0700 - - No longer need to install or compile GConf schemas. Courtesy Vincent - Untz. - -M Makefile -M THANKS -M configure -D misc/shotwell.schemas - -commit 2aca73567a01d176ba69de6222cb57590d1a1cfe -Author: Lucas Beeler -Date: Wed Sep 7 16:50:06 2011 -0700 - - Introduces enhanced tag state safety checks during import from - F-Spot. Closes #4090 and #4081. - -M src/alien_db/AlienDatabaseImportJob.vala - -commit c59cc117b1aa89fe6e71f638ef5f1aae14546ebf -Author: Lucas Beeler -Date: Wed Sep 7 16:11:36 2011 -0700 - - Solves several issues with tag duplication related to the Import - from F-Spot feature. - -M src/alien_db/AlienDatabaseImportJob.vala - -commit 92b7c0d255d37e8963b326f13f722aab3083a919 -Author: Eric Gregory -Date: Wed Sep 7 16:49:00 2011 -0700 - - 4104 fix for sidebar null pointer crash - -M src/sidebar/Tree.vala - -commit b2417d8b2482ba229a4b6cad6cb0166b007d8cd1 -Author: Eric Gregory -Date: Wed Sep 7 16:46:39 2011 -0700 - - 3977 fix from prev commit - -M src/BatchImport.vala - -commit a05506bf67b8504c1d90ee7a65aadea8852e7131 -Author: Eric Gregory -Date: Wed Sep 7 16:39:53 2011 -0700 - - 3977 import raw+jpeg pair from folder - -M src/BatchImport.vala - -commit 0d4c39f3ea77b93d43295366ede3b96edce97104 -Author: Eric Gregory -Date: Tue Sep 6 14:50:28 2011 -0700 - - 4093 photo duplicate now copies raw developments - -M src/Photo.vala -M src/db/PhotoTable.vala - -commit 036071b3db2ce6e6d55aa5057c2025feb702e448 -Author: Eric Gregory -Date: Tue Sep 6 14:48:54 2011 -0700 - - 4077 JPEG from trashed RAW+JPEG or editable is auto-imported on - startup - -M src/Photo.vala - -commit 5da85af71ee77f4d8b9223ed017ed88001769970 -Author: Lucas Beeler -Date: Tue Sep 6 12:29:15 2011 -0700 - - Fixes a plethora of metadata writing and reimport issues. Closes - #4096, #4074, #4071. Also fixes a previously unreported issue where - undoing and redoing stacks of tag drag-and-drop operations could - cause a segfault due to a missing null guard. - -M src/Commands.vala -M src/photos/PhotoMetadata.vala -M src/tags/HierarchicalTagUtilities.vala - -commit 22f8b1fdf900d0e10cbcc430b6845d13179bf40a -Merge: 2b98be9b eb47fe1e -Author: Clint Rogers -Date: Fri Sep 2 17:55:49 2011 -0700 - - Merge branch 'master' of ssh://git.yorba.org/git/shotwell - -commit eb47fe1e22781ddf3bbbd148cbe2e76440c5794c -Author: Lucas Beeler -Date: Fri Sep 2 17:52:58 2011 -0700 - - Refactors much of the HTags system so that it works properly with - the proxy system. Closes #4039. - -M src/Commands.vala -M src/Tag.vala -M src/tags/HierarchicalTagUtilities.vala - -commit 2b98be9b1b11078ef0770e5068094ba827ee1084 -Author: Clint Rogers -Date: Fri Sep 2 17:52:32 2011 -0700 - - Closes #4076, disables editing if the currently-selected item is - clicked, but reenables it if we've gotten either a 'rename' menu - choice or an f2 keypress. - -M src/sidebar/Tree.vala - -commit 00f6dbc8f09c5a6840facb39c2df5b71e4492737 -Author: Clint Rogers -Date: Fri Sep 2 12:02:26 2011 -0700 - - Closes #4061, adds info about enhanced RAW support and RAW+JPEG - handling. - -M help/C/formats.page -M help/C/import-file.page -A help/C/raw.page - -commit fe82212d67b9e0c1c9b2f7558ef5be7169cecb48 -Author: Eric Gregory -Date: Fri Sep 2 11:38:03 2011 -0700 - - 4089 Camera developed RAW images don't keep transformations between - sessions - - The images were having their developers changed by the menu - system. This is a result of the juggling between "camera" and - "embedded" RAW developers we do to make this transparent to our users. - -M src/MediaPage.vala -M src/PhotoPage.vala -M src/photos/RawSupport.vala - -commit 17aaa5660ad635bb899afe50c2091acf6a37321b -Author: Eric Gregory -Date: Thu Sep 1 17:58:17 2011 -0700 - - 4069 exported camera-developed photo has wrong crop region - -M src/Photo.vala - -commit 36170cd36ed225808f1e0c6dee5c10e6485d7b71 -Author: Jim Nelson -Date: Thu Sep 1 17:36:58 2011 -0700 - - Crasher when duplicates of paired JPEG found in XDG Pictures - directory: #4088 - - Bounds-checking problem. - -M src/PhotoMonitor.vala - -commit e49c6d75529e56a8997283de6e3a67be8aac95a4 -Author: Eric Gregory -Date: Thu Sep 1 15:20:06 2011 -0700 - - 4062 develop RAW photos on demand - -M src/BatchImport.vala -M src/Photo.vala -M src/PixbufCache.vala -M src/library/Library.vala - -commit 6a33fa8f4c62da39bad29da31098379a9b009b81 -Author: Eric Gregory -Date: Thu Sep 1 15:12:12 2011 -0700 - - 4064 transformations re-applied after undoing photo developer - -M src/Commands.vala - -commit a4f63279ae9efc7190e46a43ab60c0d8630e3163 -Author: Lucas Beeler -Date: Thu Sep 1 13:09:28 2011 -0700 - - Closes #4085. - -M src/tags/Branch.vala - -commit 05ac3bb538dd3f402c3c243204b6973d28b6a07f -Author: Jim Nelson -Date: Wed Aug 31 17:40:05 2011 -0700 - - org.yorba.shotwell.sharing.default-service not in gsettings schema: - #4073 - - Because this value wasn't in the schema, the gsettings-data-convert - program was aborting. - - This *may* fix #4072, but I can't reproduce it on my machine to - start with. This commit may - also close #4056, but more investigation is required. - -M misc/org.yorba.shotwell.gschema.xml - -commit dac7de99a51a18449d98a0637ed8f0d295e103dc -Author: Jim Nelson -Date: Wed Aug 31 17:03:23 2011 -0700 - - Undoing parent tag remove now properly undoable: #4047 - - Problem was that when a photo was detached from a Tag, that might - result in numerous - detaches from other Tags (namely, children of the parent being - removed). These need to be - stored (and proxied) in the TagUntagCommand. - - Note that I also noticed some proxy problems in DeleteTag, and I've - made some changes there - as well. - -M src/Commands.vala -M src/Tag.vala -M src/core/DataSource.vala - -commit a2081535bf8f4caef09ba9f8e3cf05b8dd30a129 -Author: Lucas Beeler -Date: Wed Aug 31 13:52:16 2011 -0700 - - Closes #4033. - -M src/Tag.vala - -commit 1a5612b6e4557c85d07439c3a0a442ab397011dc -Author: Clint Rogers -Date: Wed Aug 31 12:03:44 2011 -0700 - - Closes #3887, causes the editing host page to use the dimensions of - the photo whenever possible, preventing the unwanted scaling. - -M src/PhotoPage.vala - -commit 08756db9fe0573eb7c294124191fc58c867e2aa4 -Author: Lucas Beeler -Date: Tue Aug 30 19:20:36 2011 -0700 - - Corrects an issue in which the tag move operation (drag-and-drop) - didn't take the number of child tag attachments for a given soure - into account. Closes #4044. - -M src/Commands.vala -M src/Tag.vala - -commit 68c932d4df50c12f0044ba1787213943ac9fa66d -Author: Eric Gregory -Date: Tue Aug 30 18:32:48 2011 -0700 - - 4065 default developer set on all photos upon import - -M src/BatchImport.vala -M src/camera/ImportPage.vala - -commit 53f8e47fdb86911684e24d23ab40783baf10f11d -Author: Eric Gregory -Date: Tue Aug 30 18:28:07 2011 -0700 - - 4063 opening a raw photo in single photo mode executes an undoable - command - -M src/MediaPage.vala -M src/PhotoPage.vala - -commit 28096e56f615c1c3e8a38487c046e36cc9ae91fc -Author: Lucas Beeler -Date: Tue Aug 30 18:16:07 2011 -0700 - - Dragging a tag onto itself is now a no-op. Closes #4036. - -M src/Commands.vala -M src/tags/Branch.vala - -commit 89a41b017af098677f77ec83e940ce3d91b2ce2e -Author: Lucas Beeler -Date: Tue Aug 30 18:01:12 2011 -0700 - - Makes dragging a tag to its parent a no-op. Closes #4035. - -M src/Commands.vala -M src/tags/Branch.vala - -commit f12f7b1db6c347cf7315cea526b157f5e75d134f -Author: Lucas Beeler -Date: Tue Aug 30 17:41:30 2011 -0700 - - Disallows dragging a parent tag onto one of its children; closes - #4045. - -M src/Commands.vala - -commit eb247af89fad6c742b714a2ff50df60e45cc42d8 -Author: Lucas Beeler -Date: Tue Aug 30 16:45:18 2011 -0700 - - Makes the Tags grouping a proper drop source. Closes #4046. - -M src/sidebar/Tree.vala -M src/tags/Branch.vala - -commit 8670e10bbc8be710d8ddc9604b0bf3eacb8455bb -Author: Eric Gregory -Date: Tue Aug 30 12:22:27 2011 -0700 - - 4037 subtags and top-level tags can't have the same name - -M src/Commands.vala -M src/Tag.vala -M src/tags/Branch.vala - -commit a47ce93aff7b1a171f2918e435726bb15f3f793e -Author: Eric Gregory -Date: Tue Aug 30 12:14:20 2011 -0700 - - 4038 don't prompt when deleting empty tag - -M src/Dialogs.vala - -commit a900c2388a0211948ef8b2d8f8d103f1e253c021 -Author: Jim Nelson -Date: Mon Aug 29 19:40:36 2011 -0700 - - Moving tag in heirarchy now undoable: #4034 - - Problem was due to reparenting tag Command being executed but not - added to the - CommandManager stack. - - Note that this does not fix #4039, which Adam thought it might. - -M src/tags/Branch.vala - -commit 619818ebb71b9f85a64b4227b0e3f1bac0ba7f31 -Author: Clint Rogers -Date: Mon Aug 29 15:51:12 2011 -0700 - - Closes #4052 (text change to German) - -M po/shotwell-core/de.po - -commit 433f52f5ba7014c7720e0d936c7272a87152f1f2 -Author: Clint Rogers -Date: Wed Aug 24 12:14:24 2011 -0700 - - Fixes _part_ of 3887 by filling the entire background, rather than - just the part beneath the image. - - The unrequested resize issue will be broken out into a separate - ticket. - -M src/EditingTools.vala - -commit 3caa65a166eac7cad8920163ed47aaaadf1e0131 -Author: Eric Gregory -Date: Tue Aug 23 15:06:40 2011 -0700 - - added max valac version, +trunk to version - -M Makefile - -commit e4c3c107974dfbd6a8f9730c6d82bc868776ae81 -Author: Jonas Bushart -Date: Tue Aug 23 13:48:27 2011 -0700 - - Adds the ability for Shotwell to interoperate with the Ubuntu Unity - launcher progress bar. Closes #3992. - -M Makefile -M configure -M src/library/LibraryWindow.vala - -commit 673745271e5aaa5698da4acef1420323f728526c -Author: Eric Gregory -Date: Tue Aug 23 13:16:06 2011 -0700 - - 0.11.0 commit - -M Makefile -M NEWS -M debian/changelog - -commit 3af94b9b7537b867703b822ea4511ed6a4d1d3c4 -Author: Eric Gregory -Date: Mon Aug 22 19:57:41 2011 -0700 - - 4012 Search filter bar on import page displays photo button as - ungreyed when only RAW is present - -M src/camera/ImportPage.vala - -commit 4e81748b79bc35559f64d1755470e06c5919abb2 -Author: Lucas Beeler -Date: Mon Aug 22 19:46:39 2011 -0700 - - Fixes an issue in which the Catalan translation used an invalid - format specifier in its date format string. Closes #3943. - -M po/shotwell-core/ca.po - -commit effe08c78d7478b5b3422b04b5c6d47f42bfc92d -Author: Lucas Beeler -Date: Mon Aug 22 19:33:49 2011 -0700 - - Updates language translation files for the Shotwell Extra Plugins. All - translation files versioned at 0.11.0. - -M po/shotwell-extras/ar.po -M po/shotwell-extras/ast.po -M po/shotwell-extras/bg.po -M po/shotwell-extras/bn.po -M po/shotwell-extras/ca.po -M po/shotwell-extras/cs.po -M po/shotwell-extras/da.po -M po/shotwell-extras/de.po -M po/shotwell-extras/el.po -M po/shotwell-extras/en_GB.po -M po/shotwell-extras/es.po -M po/shotwell-extras/et.po -M po/shotwell-extras/eu.po -M po/shotwell-extras/fi.po -M po/shotwell-extras/fr.po -M po/shotwell-extras/gl.po -M po/shotwell-extras/he.po -M po/shotwell-extras/hr.po -M po/shotwell-extras/hu.po -M po/shotwell-extras/id.po -M po/shotwell-extras/it.po -M po/shotwell-extras/ja.po -M po/shotwell-extras/kk.po -M po/shotwell-extras/ko.po -M po/shotwell-extras/lt.po -M po/shotwell-extras/lv.po -M po/shotwell-extras/mk.po -M po/shotwell-extras/nb.po -M po/shotwell-extras/nl.po -M po/shotwell-extras/pa.po -M po/shotwell-extras/pl.po -M po/shotwell-extras/pt.po -M po/shotwell-extras/pt_BR.po -M po/shotwell-extras/ro.po -M po/shotwell-extras/ru.po -M po/shotwell-extras/shotwell-extras.pot -M po/shotwell-extras/sk.po -M po/shotwell-extras/sl.po -M po/shotwell-extras/sr.po -M po/shotwell-extras/sv.po -M po/shotwell-extras/ta.po -M po/shotwell-extras/te.po -M po/shotwell-extras/th.po -M po/shotwell-extras/tr.po -M po/shotwell-extras/uk.po -M po/shotwell-extras/zh_CN.po -M po/shotwell-extras/zh_TW.po - -commit 8851d4039e0729292acb3f9a4f97493799afae9c -Author: Eric Gregory -Date: Mon Aug 22 19:12:34 2011 -0700 - - 3968 further enhancements to monitoring raw files - -M src/Photo.vala - -commit 754e46fa1254bfd84652727eb2ca60fe01ebdf90 -Author: Eric Gregory -Date: Mon Aug 22 18:35:53 2011 -0700 - - 4011 when RAW deleted, delete the +JPEG - -M src/Photo.vala - -commit 9907fd50016943b57275b6b011f075eb2c2d010d -Author: Eric Gregory -Date: Mon Aug 22 18:33:40 2011 -0700 - - 3974 indicate RAW+JPEG in basic info pane - -M src/Properties.vala - -commit 028a7e37d814205d0191ba8178948158c17e6ce4 -Author: Lucas Beeler -Date: Mon Aug 22 18:25:08 2011 -0700 - - Fixed an issue with the updated Slovenian translation that caused - msgfmt to yarf. - -M po/shotwell-core/sl.po - -commit d036170b303bd12683d19306e60d0f21219cc63c -Author: Lucas Beeler -Date: Mon Aug 22 18:17:44 2011 -0700 - - Updates all language translations for Shotwell Core. Translation - files are versioned at 0.11.0 - -C086 po/shotwell-core/shotwell.pot po/shotwell-core/af.po -M po/shotwell-core/ar.po -M po/shotwell-core/ast.po -M po/shotwell-core/bg.po -M po/shotwell-core/bn.po -M po/shotwell-core/ca.po -M po/shotwell-core/cs.po -M po/shotwell-core/da.po -M po/shotwell-core/de.po -M po/shotwell-core/el.po -M po/shotwell-core/en_GB.po -M po/shotwell-core/es.po -M po/shotwell-core/et.po -M po/shotwell-core/eu.po -M po/shotwell-core/fi.po -M po/shotwell-core/fr.po -M po/shotwell-core/gl.po -M po/shotwell-core/he.po -M po/shotwell-core/hr.po -M po/shotwell-core/hu.po -M po/shotwell-core/id.po -M po/shotwell-core/it.po -M po/shotwell-core/ja.po -M po/shotwell-core/kk.po -M po/shotwell-core/ko.po -M po/shotwell-core/lt.po -M po/shotwell-core/lv.po -M po/shotwell-core/mk.po -M po/shotwell-core/nb.po -M po/shotwell-core/nl.po -M po/shotwell-core/pa.po -M po/shotwell-core/pl.po -M po/shotwell-core/pt.po -M po/shotwell-core/pt_BR.po -M po/shotwell-core/ro.po -M po/shotwell-core/ru.po -M po/shotwell-core/shotwell.pot -M po/shotwell-core/sk.po -M po/shotwell-core/sl.po -M po/shotwell-core/sr.po -M po/shotwell-core/sv.po -M po/shotwell-core/ta.po -M po/shotwell-core/te.po -M po/shotwell-core/th.po -M po/shotwell-core/tr.po -M po/shotwell-core/uk.po -M po/shotwell-core/zh_CN.po -M po/shotwell-core/zh_TW.po -M po/shotwell-extras/sl.po - -commit e32e0e69688f96172dfe13bd75fbc7703777ec35 -Author: clinton -Date: Mon Aug 22 17:23:48 2011 -0700 - - Closes #4004, makes text more explicit about the fact that %d and - %m will produce day or month numbers with leading zeros. - -M help/C/other-files.page - -commit 34708315088f2061de103f95ae991f2a1a8f19aa -Author: Lucas Beeler -Date: Mon Aug 22 16:34:32 2011 -0700 - - Fixed an issue in which some UI files were not included in the - distribution packages produced by "make dist." - -M Makefile - -commit 340a84c9dbf4465814884b72287dafdfca2af115 -Author: Lucas Beeler -Date: Mon Aug 22 16:15:16 2011 -0700 - - Fixes an issue where some persistent publishing settings - weren't saved. In fact, before this fix was applied, none of the - shotwell-extras publishers were able to persist their settings - at all. This issue was a side-effect of our GConf to GSettings - migration. Closes #4006 and #3972. - -M misc/org.yorba.shotwell.gschema.xml -M src/config/GSettingsEngine.vala - -commit 1f871b4bdfb73a53d9442655c2fde019df62d324 -Author: Clint Rogers -Date: Mon Aug 22 14:32:06 2011 -0700 - - Closes #4009, corrects some outdated URLs in Resources.vala. - -M src/Resources.vala - -commit 03cf63e9f7f0e4eed3c64036ade1bd2454146279 -Author: Eric Gregory -Date: Mon Aug 22 13:56:42 2011 -0700 - - 3968 library monitor now works with RAW+JPEG - -M src/BatchImport.vala -M src/Photo.vala -M src/PhotoMonitor.vala - -commit 696273c45a8f8f3f0d6f8ec9fe3b320ae091ad2c -Author: Jonas Bushart -Date: Mon Aug 22 13:44:14 2011 -0700 - - Closes #3964, adds information about new features and supported - image types. - -M help/C/edit-adjustments.page -M help/C/edit-crop.page -M help/C/edit-enhance.page -M help/C/edit-external.page -M help/C/edit-nondestructive.page -M help/C/edit-redeye.page -M help/C/edit-rotate.page -M help/C/edit-time-date.page -M help/C/edit-undo.page -M help/C/formats.page -M help/C/import-camera.page -M help/C/import-f-spot.page -M help/C/import-file.page -M help/C/import-memorycard.page -M help/C/organize-event.page -M help/C/organize-flag.page -M help/C/organize-rating.page -M help/C/organize-remove.page -M help/C/organize-search.page -M help/C/organize-tag.page -M help/C/organize-title.page -M help/C/other-files.page -M help/C/other-missing.page -M help/C/other-multiple.page -M help/C/other-plugins.page -M help/C/running.page -M help/C/share-background.page -M help/C/share-export.page -M help/C/share-print.page -M help/C/share-send.page -M help/C/share-slideshow.page -M help/C/share-upload.page -M help/C/view-displaying.page -M help/C/view-information.page -M help/C/view-sidebar.page - -commit 4e08d96091b047636b5d1585c7921d06f33d1427 -Author: Jonas Bushart -Date: Mon Aug 22 12:19:21 2011 -0700 - - Changes the way sensitivity is determined for the "Export metadata" - option in the export dialog. Closes #3988. - -M src/Dialogs.vala - -commit 36431384ed296c71923a0e3046be70df1e73fbac -Author: Valentín Barros -Date: Mon Aug 22 12:09:50 2011 -0700 - - Fixes a problem in which an event sort order changed signal wasn't - being fired by the HybridConfigurationEngine. Fixes #3979. - -M src/config/HybridEngine.vala - -commit 2111b2e46324e12511143b6a1683dc71e1be3451 -Merge: 949612a6 8303d2cb -Author: Clint Rogers -Date: Mon Aug 22 12:08:40 2011 -0700 - - Merge branch 'master' of ssh://git.yorba.org/git/shotwell - -commit 949612a6412c217b8ad62a4a2e1c0c6fc018634b -Author: Clint Rogers -Date: Mon Aug 22 12:08:00 2011 -0700 - - Closes #3275 by inserting an 8-pixel spacer between the rightmost - edge of the zoom tool and the edge of the window. - -M src/MediaPage.vala -M src/Properties.vala -M src/Resources.vala - -commit 8303d2cbaf952203521f1de721881f0bb218cc38 -Author: Evgeniy Polyakov -Date: Mon Aug 22 12:02:18 2011 -0700 - - Fixes an issue where the Yandex.Fotki publishing plugin didn't - properly extract a session auth token. - -M plugins/shotwell-publishing-extras/YandexPublishing.vala - -commit 651aa27834150c8c737f830f96ade4289f3ad47a -Author: Clint Rogers -Date: Sun Aug 21 16:15:35 2011 -0700 - - Closes 3946 by moving the adjustment definition to before the hscale - gets created. - -M ui/set_background_dialog.glade - -commit 66bc749975d2ee1b84ea0a29390e5352043892f5 -Author: Jim Nelson -Date: Sun Aug 21 12:23:52 2011 +0200 - - RAW developer settings stored in wrong gsettings path: #3967 - - This moves the RAW developer settings from the .ui path to the .files - path in gsettings, which mimics where it was stored in GConf. - -M misc/org.yorba.shotwell.gschema.xml -M misc/shotwell.convert -M src/config/GSettingsEngine.vala - -commit 05df37d1e68f9e2f67846558d6d6f798018c64bd -Author: Lucas Beeler -Date: Sat Aug 20 17:50:11 2011 -0700 - - Closes #4005. - -M src/Tag.vala -M src/searches/SearchBoolean.vala - -commit 89d83a902fce77ab8ccd3811966003ed8f2b755d -Author: Clint Oneiric Sandbox -Date: Fri Aug 19 18:36:43 2011 -0700 - - Addresses #3921, temporarily disables the 'face' feature. - -M src/Commands.vala -M src/Dialogs.vala -M src/EditingTools.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/SearchFilter.vala -M src/db/FaceLocationTable.vala -M src/faces/Branch.vala -M src/faces/Face.vala -M src/faces/FaceLocation.vala -M src/faces/FacePage.vala -M src/faces/FaceShape.vala -M src/faces/Faces.vala -M src/library/LibraryWindow.vala -M src/main.vala -M src/searches/SavedSearchDialog.vala -M src/searches/SearchBoolean.vala -M src/util/ui.vala -M ui/photo.ui - -commit db96fa343505c4b8e0e5571102a3ea9e8dbb3bdf -Author: Bruno Girin -Date: Thu Aug 18 17:31:56 2011 -0700 - - Adds hierarchical tag support to the Import from F-Spot feature; - closes #3328. - -M src/alien_db/AlienDatabaseImportJob.vala -M src/alien_db/AlienDatabaseTag.vala -M src/alien_db/f_spot/FSpotDatabase.vala -M src/alien_db/f_spot/FSpotDatabaseTag.vala -M src/alien_db/f_spot/FSpotTagsTable.vala -M src/tags/HierarchicalTagUtilities.vala - -commit d370f7e1e1e213c149186fa22bb9e6bda8de0148 -Author: Lucas Beeler -Date: Thu Aug 18 15:57:35 2011 -0700 - - Fixes an issue where undoing an "Add Tags" operation would leave an - orphan tag in the sidebar. Closes #3947. - -M src/Commands.vala - -commit 57951cd1d510455d2abb7fbc8a74eddfb435b506 -Author: Lucas Beeler -Date: Thu Aug 18 14:06:27 2011 -0700 - - Removes a diagnostic warning that is now superfluous given the change - in the tag data model introduced with HTags. Closes #3954. - -M src/Tag.vala - -commit d4924552eebbb2fb190014b04954a0c4f1aeb3f6 -Author: clinton -Date: Thu Aug 18 14:00:49 2011 -0700 - - Closes 3999; removed debian/control.maverick as Ubuntu 10.10 is no - longer officially supported. - -D debian/control.maverick - -commit 886b037ebe68165729cd55774f71edf29b9ab5c8 -Author: clinton -Date: Thu Aug 18 12:48:07 2011 -0700 - - Removes reference to library we don't actually use in the app anymore. - -M debian/control -M debian/control.maverick -M plugins/shotwell-publishing-extras/Makefile - -commit 610ae19c0ccd241baeb3ec5efd1fdd853fdd4ea9 -Author: Lucas Beeler -Date: Wed Aug 17 16:56:18 2011 -0700 - - Fixes a critical problem where running hierarchical tags-enabled - builds of Shotwell with older libraries having tags whose named - contained slash characters caused a crash. Closes #3993. - -M src/db/DatabaseTable.vala -M src/db/Db.vala -M src/db/TagTable.vala - -commit 4e66683420a61e68b6719b413d2b7361d3f310e3 -Author: Eric Gregory -Date: Wed Aug 17 12:58:37 2011 -0700 - - 3966 assertion on default sidebar context menu - -M src/sidebar/Tree.vala -A ui/sidebar_default_context.ui - -commit b24548bbc8b7648fcf913ae8dc8d90e4f52e7479 -Author: Lucas Beeler -Date: Tue Aug 16 12:46:42 2011 -0700 - - Allows drag-n-drop of tags in the sidebar. Closes #3913. - -M src/Commands.vala -M src/events/Branch.vala -M src/library/FlaggedBranch.vala -M src/library/LibraryWindow.vala -M src/library/TrashBranch.vala -M src/sidebar/Entry.vala -M src/sidebar/Tree.vala -M src/tags/Branch.vala - -commit e82be9b77216f944e23c532764d44f5e0c964466 -Author: Jim Nelson -Date: Sat Aug 13 11:37:15 2011 +0200 - - Removed debug message from GConf -> gsettings conversion that was - printing at each execution. - -M src/config/GConfEngine.vala - -commit 4d039f74b7769a4dd273c6512597019e2336ee03 -Author: Jim Nelson -Date: Fri Aug 12 14:36:21 2011 +0200 - - GConf to gsettings conversion: #3785 - - This code will use gsettings-data-convert to move the user's GConf - settings to gsettings when Shotwell executes. It searches through - gsettings-data-convert's keyfile to see if Shotwell's settings have - been converted before spawning the process. - -M Makefile -A misc/org.yorba.shotwell-extras.gschema.xml -M misc/org.yorba.shotwell.gschema.xml -A misc/shotwell.convert -M src/config/GConfEngine.vala -M src/main.vala - -commit 526b579a48363ff02f1168a594961d577d8b3399 -Author: Jonas Bushart -Date: Fri Aug 12 13:39:06 2011 +0200 - - Remember "Hide photos already imported" setting: #3090 - - Persists the "hide photos already imported" checkbox on the camera - import page. Courtesy Jonas Bushart. - -M misc/org.yorba.shotwell.gschema.xml -M misc/shotwell.schemas -M src/camera/ImportPage.vala -M src/config/ConfigurationInterfaces.vala -M src/config/GConfEngine.vala -M src/config/GSettingsEngine.vala - -commit d1845ec2bfaee952969595b893e5895e02dc7191 -Author: Eric Gregory -Date: Wed Aug 10 09:00:34 2011 -0700 - - 3880 Flickr uploads with apostrophe in title - -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit cf11262ab96b9a40f39ff7486c4fe9a2284c0ec0 -Author: Lucas Beeler -Date: Wed Aug 10 05:16:59 2011 -0700 - - Eliminates serious problems manipulating HTags through the "Add Tags" - and "Modify Tags" dialog boxes. Closes 3956. - -M src/Commands.vala -M src/Dialogs.vala -M src/MediaPage.vala -M src/Resources.vala -M src/tags/HierarchicalTagIndex.vala - -commit 389fcdb2cecdb1d053798c897e9f12e9590dbb7d -Author: Eric Gregory -Date: Wed Aug 10 04:01:12 2011 -0700 - - 3671 (part 3) correction to pkg-config name of gstreamer-pbutils - -M Makefile - -commit 8729525fe62c0d429ba138360879e2d6a7db9823 -Author: Eric Gregory -Date: Wed Aug 10 02:35:31 2011 -0700 - - 3671 (part 2) fixed packaging issue related to Gst.Discoverer - -M Makefile -M debian/control - -commit bb4ed7d5029a52b3c70ecb7f0ff637097666ff03 -Author: Eric Gregory -Date: Tue Aug 9 06:52:49 2011 -0700 - - 3927 moved video re-thumbnailing to background thread in video monitor - -M src/VideoMonitor.vala - -commit f2854d7c0f5fb88fc61e950eb3acb12e76b404aa -Author: Eric Gregory -Date: Tue Aug 9 06:38:53 2011 -0700 - - 3941 added "hybrid" configuration system - -M Makefile -M configure -M src/config/Config.vala -M src/config/GConfEngine.vala -A src/config/HybridEngine.vala -M src/config/mk/config.mk - -commit f608c2d9c1afebebb731f3227302a7848815140b -Author: Eric Gregory -Date: Tue Aug 9 03:31:09 2011 -0700 - - 3671 Video date using Gst.Discoverer - - Gets a video date from GStreamer when we can't get a timestamp - ourselves - Adds new GStreamer dependency - -M Makefile -M debian/control -M src/LibraryFiles.vala -M src/VideoSupport.vala - -commit d43b4b975daee06af0d226978d30a00d3d4f16df -Author: Lucas Beeler -Date: Mon Aug 8 04:56:57 2011 -0700 - - Closes 3939. Fixes an extremely subtle database bug related to HTags. - -M src/Tag.vala -M src/core/DataSource.vala - -commit 3c5c34382f1ae39ccf2839fb45d6c23500f3c316 -Author: Eric Gregory -Date: Sun Aug 7 08:48:19 2011 -0700 - - 3931 Tags in sidebar has context menu to create a new top-level tag - -M src/Commands.vala -M src/Tag.vala -M src/searches/Branch.vala -M src/sidebar/Tree.vala -M src/tags/Branch.vala -R066 ui/sidebar_default.ui ui/search_sidebar_context.ui -A ui/tag_sidebar_context.ui - -commit 103df9f12e413306bece0f0a8bc9cc06e43e4ae1 -Author: Eric Gregory -Date: Sun Aug 7 07:02:09 2011 -0700 - - 3928 and 3929 Video thumbnail length gibberish when no codec installed - - Now it's no longer shown. Additionally, the video length is corrected - when the codec gets installed. - -M src/VideoSupport.vala - -commit f03c2ae2828fb95b370f4f9423c838c059f23e46 -Author: Eric Gregory -Date: Sun Aug 7 06:59:24 2011 -0700 - - 3907 When duplicating photo, duplicate Faces - -M src/Photo.vala - -commit 7f1110ccead2935397536ba165fc5ec791ef02bc -Author: Eric Gregory -Date: Sun Aug 7 06:49:07 2011 -0700 - - 3904 Delete RAW+JPEG pair when deleting from a camera after import. - -M src/camera/ImportPage.vala - -commit 94b7f1d8b692cdd92959cf563733cd5cbd440208 -Author: Valentín Barros -Date: Fri Aug 5 11:49:01 2011 +0200 - - Click-in-region to edit Faces is broken under Unity: #3896 - - This works around a Unity bug where the leave_notify_event is fired - when the mouse pointer is still over the region. The work around - is to verify the mouse has indeed left the window before processing. - Courtesy Valentin Barros. - -M src/EditingTools.vala -M src/util/ui.vala - -commit 8c2aaf7d04330d03a77ba1475b84745c622c6d16 -Author: Lucas Beeler -Date: Wed Aug 3 18:52:32 2011 -0700 - - Generated new POT files for the upcoming Shotwell 0.11 release. - These POT files are versioned "Shotwell-0.10.90+trunk," indicating - their anticipation of the Shotwell 0.11 release. The version number - in the Makefile has also been updated to Shotwell-0.10.90+trunk. - -M Makefile -M po/shotwell-core/shotwell.pot -M po/shotwell-extras/shotwell-extras.pot - -commit 4589998095aa22e0bb9b9f85a9ba17cc4d9e159e -Author: Lucas Beeler -Date: Tue Aug 2 19:30:42 2011 -0700 - - Implements basic hierarchical tag support. Closes #1401. - -M src/Commands.vala -M src/Dialogs.vala -M src/Photo.vala -M src/Properties.vala -M src/Resources.vala -M src/Tag.vala -M src/alien_db/AlienDatabaseImportJob.vala -M src/events/Branch.vala -M src/library/LibraryWindow.vala -M src/photos/PhotoMetadata.vala -M src/sidebar/Branch.vala -M src/sidebar/Entry.vala -M src/sidebar/Tree.vala -M src/sidebar/common.vala -M src/tags/Branch.vala -A src/tags/HierarchicalTagIndex.vala -A src/tags/HierarchicalTagUtilities.vala -M src/tags/TagPage.vala -M src/tags/mk/tags.mk -M ui/tags.ui - -commit b6e52a2eeb2a1139e8171134b6a24e5eb1d785b8 -Author: Eric Gregory -Date: Tue Aug 2 18:08:00 2011 -0700 - - 3900 Faces support in find toolbar - -M src/SearchFilter.vala - -commit 0bb3007fe4c39ae20a5a6c9c8b357c12e6404eea -Author: Eric Gregory -Date: Tue Aug 2 15:49:22 2011 -0700 - - 3899 faces in saved search - -M src/searches/SavedSearchDialog.vala -M src/searches/SearchBoolean.vala - -commit d7395b08d79d384463a43257bf663f7907fa65cb -Author: Mike Auty -Date: Mon Aug 1 19:33:42 2011 -0700 - - libraw-config not checking pkg-config correctly: #3901 - - Goof in the libraw-config script wasn't calling pkg-config correctly. - Thanks to Mike Auty - for catching and fixing this. - -M libraw-config - -commit 9373d88426be8c2985bdd048c6e707265cf50dc1 -Author: Eric Gregory -Date: Mon Aug 1 13:09:24 2011 -0700 - - 2293 re-thumbnail videos when GStreamer cookie changes - - This fix: - * Forces VideoMonitor to redo video thumbnails when the GStreamer - cookie changes - * Fixes a translatable string "todo" - * Removes an unnecessary call to Video.init() - * Provides a workaround for newly-discovered Vala bug #655594 - -M src/MediaMonitor.vala -M src/VideoMonitor.vala -M src/VideoSupport.vala -M src/main.vala - -commit 5e0d8e0c91dd71013da7cb2ac099a3a8e60eb76b -Author: Eric Gregory -Date: Mon Aug 1 12:56:27 2011 -0700 - - Added Timo Westkämper to THANKS file - -M THANKS - -commit 11fa4e9d2af6c50dd7cb217bc541e7f8e3ab0fd9 -Author: Eric Gregory -Date: Mon Aug 1 12:50:19 2011 -0700 - - 1304 Shadows under photos. Contributed by Timo Westkämper - -M src/CheckerboardLayout.vala -M src/config/Config.vala -M src/events/EventDirectoryItem.vala - -commit 3ffdfc87cdd3a4d3c62ab2f8ec90041001e987eb -Author: Eric Gregory -Date: Fri Jul 29 18:59:25 2011 -0700 - - 3785 escape pango text in sidebar - - This escapes text in a couple important places in the sidebar. It - also escapes text in the dialogs that appear when you right-click - on certain sidebar entries and hit "delete." - -M src/Dialogs.vala -M src/sidebar/Tree.vala - -commit c792dda6ba81ae3f0b7565e035f07b740fe08dc1 -Author: Valentín Barros -Date: Fri Jul 29 14:27:48 2011 -0700 - - Implements faces/people management in Shotwell. Closes #3894. Many - THANKS to our GSoC student Valentin Barros! - -M THANKS -A icons/faces-tool.png -A icons/many-faces.png -A icons/one-face.png -M src/Commands.vala -M src/Dialogs.vala -M src/EditingTools.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -A src/db/FaceLocationTable.vala -A src/db/FaceTable.vala -M src/db/mk/db.mk -A src/faces/Branch.vala -A src/faces/Face.vala -A src/faces/FaceLocation.vala -A src/faces/FacePage.vala -A src/faces/FaceShape.vala -A src/faces/Faces.vala -C080 src/db/mk/db.mk src/faces/mk/faces.mk -M src/library/LibraryWindow.vala -M src/library/mk/library.mk -M src/main.vala -M ui/collection.ui -A ui/faces.ui -M ui/media.ui -M ui/photo.ui -M units.mk - -commit 68b09bca38304184e34c61134dd282ea578338a8 -Author: Eric Gregory -Date: Fri Jul 29 13:05:35 2011 -0700 - - 1502 deadlock in slideshow fix - - This eliminates a deadlock in BackgroundJob and moves the - next/previous controls into SinglePhotoPage along with the hacky - fix we have for when the user holds down the next/prev key. - - This does uncover two more issues, which I've filed tickets for. - 1. The hacky fix is entirely time-dependent. On a slow enough computer - it won't work. Ticket #3892 - 2. Slideshow transitions shouldn't be occurring when I use - next/prev. It should just jump to the next photo asap. Ticket #3891 - -M src/Page.vala -M src/PhotoPage.vala -M src/PixbufCache.vala -M src/SlideshowPage.vala -M src/threads/BackgroundJob.vala - -commit 3d33f199b659f971dbc860d36ab175e2ddb01668 -Author: Jonas Bushart -Date: Tue Jul 26 18:02:19 2011 -0700 - - Uses the plugin's service id instead of its name when storing the - last used publishing plugin to the configuration system. - Closes #3254. - -M src/publishing/PublishingUI.vala - -commit 5cde344182a8253019114ac8515a9eb28f428099 -Author: Jonas Bushart -Date: Tue Jul 26 17:17:37 2011 -0700 - - Closes #2556 - Allows metadata to be optionally stripped when photos are exported - from Shotwell. - -M THANKS -M src/CollectionPage.vala -M src/Dialogs.vala -M src/Exporter.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/publishing/APIGlue.vala - -commit d2da162b92ed56890a8288c48a549470b0d55b91 -Author: Valentin David -Date: Tue Jul 26 16:12:22 2011 -0700 - - Problems with libraw 0.13.6 and 0.13.7: #3868 - - Newer versions of libraw aren't initializing an out variable before - returning. Switching to - ref solves the problem. Courtesy Valentin David. - -M src/photos/GRaw.vala -M vapi/libraw.vapi - -commit 9612279d03613511092e39f033e63a50d5337b62 -Author: Eric Gregory -Date: Mon Jul 25 14:02:01 2011 -0700 - - 3866 fixed zoom in direct edit mode - -M src/Photo.vala -M src/db/PhotoTable.vala - -commit b161824c16e6f6bd9dc7fa34aee54557513ef426 -Author: Eric Gregory -Date: Fri Jul 22 12:21:27 2011 -0700 - - 3085 photo button in filter bar now excludes RAWs - -M src/MediaViewTracker.vala -M src/SearchFilter.vala -M src/camera/ImportPage.vala - -commit 4af327a5b6178f3b58b7dbb041b27923a0a919e5 -Author: Eric Gregory -Date: Wed Jul 20 16:53:35 2011 -0700 - - 3621 Enter key closes editing dialogs - - This adds handling for the Enter key in editing dialogs. For crop - and adjust, enter means OK. For redeye, enter is the same as close. - -M src/EditingTools.vala - -commit 94a2c11f22e66e7782b8e3a8fec7f5e889e68b1e -Author: Eric Gregory -Date: Wed Jul 20 14:35:17 2011 -0700 - - 3837 delete mimics on upgrade - - Adds a new Upgrades system - -M Makefile -M src/Photo.vala -A src/Upgrades.vala -M src/library/LibraryWindow.vala -M src/main.vala -M src/photos/PhotoFileFormat.vala -M src/photos/RawSupport.vala -M src/util/file.vala - -commit df5c1aaa72fa2028f3573cf01eddbd34f21a2a53 -Author: Eric Gregory -Date: Mon Jul 18 15:21:53 2011 -0700 - - 3842 orientation fixes for direct mode - - Fixes not one but TWO cases where photos appear rotated in direct - mode. One is a simple "stomping on values" problem, the other is - a more subtle race condition that only appears if you click fast - enough when Shotwell loads. - -M src/Photo.vala -M src/PixbufCache.vala - -commit 5a317eac52c86f7fc5a843befd7a228cd96c8468 -Author: Eric Gregory -Date: Thu Jul 14 16:23:21 2011 -0700 - - 3427 timezone correction for import folder - -M src/AppDirs.vala - -commit 705e641cc789a0d868f6d0a8892873db86b42a9f -Author: Eric Gregory -Date: Thu Jul 14 16:15:48 2011 -0700 - - 3836 Show original now works with RAW - - Previously, the Shotwell developed photo would always be shown - when pressing shift in single photo mode. Now it will display the - selected development. - -M src/Photo.vala -M src/PhotoPage.vala - -commit 371debeb6eee402db02babb0026ab5c18d68555b -Author: Eric Gregory -Date: Wed Jul 13 17:52:57 2011 -0700 - - 3838 Default RAW developer preference. - - Newly imported RAW photos are set to the developer set in the - preferences dialog. - -M misc/org.yorba.shotwell.gschema.xml -M src/BatchImport.vala -M src/Dialogs.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/camera/ImportPage.vala -M src/config/ConfigurationInterfaces.vala -M src/config/GConfEngine.vala -M src/config/GSettingsEngine.vala -M ui/shotwell.glade - -commit d7a9bd2df589b365a71beb15aa77e8e13b73bc2b -Author: Clint Rogers -Date: Wed Jul 13 13:32:52 2011 -0700 - - Adds protection against GDK errors by forcing the crop region's - boundaries to be inside the image's boundaries. - - (The crop box has to move when an image is straightened, and, - under pathological - circumstances, one or more corners could end up outside the pixbuf; - this forces the sub- - pixbuf region we get after cropping to be fully within the image.) - -M src/Photo.vala - -commit 5a3db2debb4d0f82568f92991f3599319008b986 -Author: Clint Rogers -Date: Tue Jul 12 13:16:06 2011 -0700 - - Closes 3840 by adding a range check to stop us from writing outside - the pixel array. - -M src/Photo.vala - -commit 73ea98a567fb9ac8b5d1f2ed69e27227bda3b8ba -Author: Eric Gregory -Date: Mon Jul 11 18:27:59 2011 -0700 - - 3663 Simplified tag and search sidebar context menues - - This simplifies the sidebar context menus for saved searches and tags. - But it does oh-so-much-more! It also removes a few translated strings - that were not being used, and flips the order of the two options in - the tag sidebar context menu so that Rename is before Delete to be - more consistent with other parts of Shotwell. - -M src/Commands.vala -M src/Resources.vala -M src/searches/SavedSearchPage.vala -M src/tags/TagPage.vala -M ui/tags.ui - -commit 5a95d4adc50e9ba082c3065605e0adf7c74ab3ab -Author: Eric Gregory -Date: Mon Jul 11 18:25:26 2011 -0700 - - adding valencia prefs to gitignore - -M .gitignore - -commit 5cd3ad9cfbafc21943566b93763059f0670c1a08 -Author: Eric Gregory -Date: Mon Jul 11 13:10:16 2011 -0700 - - 3730 selectable RAW developer - - This adds the ability to switch between Shotwell developed RAW images - and camera developed RAW images. It will automatically group newly - imported RAW+JPEG pairs, using the JPEG as the camera developed - image when available. - -M Makefile -M src/BatchImport.vala -M src/CollectionPage.vala -M src/Commands.vala -M src/MediaDataRepresentation.vala -M src/MediaPage.vala -D src/MimicManager.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoMonitor.vala -M src/PhotoPage.vala -M src/PixbufCache.vala -M src/Properties.vala -M src/ThumbnailCache.vala -M src/alien_db/AlienDatabaseImportJob.vala -M src/camera/ImportPage.vala -M src/db/DatabaseTable.vala -M src/db/Db.vala -M src/db/PhotoTable.vala -M src/library/LibraryWindow.vala -M src/photos/RawSupport.vala -M ui/media.ui -M ui/photo.ui - -commit 2ee9167ca480cb610e953d50d1123320c587238b -Author: Lucas Beeler -Date: Mon Jul 11 13:02:14 2011 -0700 - - Fixes an issue introduced by commit - e00236c79ff42b1e6cd7da627fc0c88c3cb97d55 in which Shotwell would - build with Vala 0.12.1 but not with Vala 0.12.0 - -M src/config/GConfEngine.vala - -commit e00236c79ff42b1e6cd7da627fc0c88c3cb97d55 -Author: Lucas Stephen Beeler -Date: Mon Jul 11 12:16:31 2011 -0700 - - Closes #3833. - Fixed a mismatch between null strings and empty strings in the - configuration subsystem that caused setting a custom directory path - to fail. - -M src/config/ConfigurationInterfaces.vala -M src/config/GConfEngine.vala -M src/config/GSettingsEngine.vala - -commit 23e510a354d8b56ff9a7726160db417347b42fa4 -Author: Eric Gregory -Date: Thu Jul 7 19:05:20 2011 -0700 - - 3755 crash while deleting last photo in fullscreen mode - -M src/AppWindow.vala -M src/PhotoPage.vala - -commit 0f7975db1e372b6dcc85aa2b6a69b4deb0f165ac -Author: Eric Gregory -Date: Thu Jul 7 19:03:51 2011 -0700 - - 3743 crash on startup when two events have the same name - -M src/events/Branch.vala - -commit 49da369cb1cf579ffb25da9eb87cd487425c8323 -Author: Eric Gregory -Date: Thu Jul 7 15:36:55 2011 -0700 - - 3637 fixes assertion in fullscreen mode when pressing enter - - This takes care of an assertion in full screen mode. All you have - to do to hit this is go to full screen, hit Enter and then change - to another photo (left, right, etc.) - - Why did this happen? Well the LibraryPhotoPage interprets "Escape" - and "Enter" as going back to the collection. FullscreenWindow - overrides Escape to mean leaving the full screen view; but it didn't - handle Enter. So what you were left with is a full screen view of - your photo with no LibraryPhotoPage underneath. - -M src/PhotoPage.vala - -commit 54497120c8c651a922a1cf9cc90743f68100a025 -Author: Eric Gregory -Date: Thu Jul 7 12:05:35 2011 -0700 - - 3787 segmentation fault on tags selection from sidebar - -M src/core/DataSet.vala - -commit 8332df4e2721c3b2b3e620a6ba2487e450518899 -Author: Eric Gregory -Date: Tue Jun 28 12:31:13 2011 -0700 - - 3736 direct view ordering fix - - Mirroring now respects the comparator, additionally the view type - must be set to DirectView. - -M src/PhotoPage.vala -M src/core/DataCollection.vala -M src/core/DataSet.vala -M src/core/ViewCollection.vala -M src/direct/DirectPhotoPage.vala - -commit 8ab28b0c3cad6acc0da26390bd5d3cce7e4b77b8 -Author: Evgeniy Polyakov -Date: Mon Jun 27 12:35:03 2011 -0700 - - Closes #3731. - Allows full-size uploads to Yandex.Fotki. - -M plugins/shotwell-publishing-extras/YandexPublishing.vala - -commit efe7d92b4d1a177dc29f6c3bb1f23e308c606bc1 -Merge: a30225a8 86624e84 -Author: Clint Rogers -Date: Fri Jun 24 13:05:38 2011 -0700 - - Merge branch 'master' of ssh://yorba.org/git/shotwell - -commit a30225a87b3cc9ecd0943e88789cbf766d22d797 -Author: Clint Rogers -Date: Fri Jun 24 13:04:33 2011 -0700 - - 3667 - Adds ability to rotate an image by an arbitrary amount to - the pipeline. - -M src/Commands.vala -M src/Photo.vala -M src/Resources.vala -M src/core/util.vala -M src/util/image.vala - -commit 86624e84884233f4ea2909bb82c082b13e5bcd59 -Author: Eric Gregory -Date: Fri Jun 24 13:04:05 2011 -0700 - - 3529 "New Search" context menu on search branch - - ContextableEntry is refactored to Contextable so that context menus - can be added to branches. - -M src/searches/Branch.vala -M src/sidebar/Branch.vala -M src/sidebar/Entry.vala -M src/sidebar/Tree.vala -M src/sidebar/common.vala - -commit dd3b22b8934b8a5665232f621d901a468628d9cf -Author: Jani Monoses -Date: Mon Jun 20 14:12:33 2011 -0700 - - Closes #3757. - Fixes a plugin linkage problem that occurs on the Oneiric alpha. - -M plugins/Makefile.plugin.mk - -commit c9dfc513f8d26b609a53d8c1d143ed0375d69a5d -Author: Bruno Girin -Date: Mon Jun 20 14:03:22 2011 -0700 - - Closes #3758. - Excludes the compiled GSettings schema file from Git version control. - -M .gitignore - -commit 9571e8044cdee3282776f1b48814adb4eb92ef0e -Author: Lucas Beeler -Date: Fri Jun 17 16:33:50 2011 -0700 - - Fixes a minor Makefile issue introduced by the last commit. Fixes - a regression introduced by the last commit in which the desktop - background wouldn't be properly set on GNOME 3 systems. - -M Makefile -M src/config/GConfEngine.vala -M src/config/GSettingsEngine.vala - -commit 40208a6020af1d3a630769b51f6b2d71b862ae65 -Author: Lucas Beeler -Date: Fri Jun 17 16:00:53 2011 -0700 - - Closes #1958. - Enables use of either GConf or GSettings as a configuration backend. - -M Makefile -M configure -A misc/org.yorba.shotwell.gschema.xml -M src/AppDirs.vala -M src/AppWindow.vala -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -D src/Config.vala -M src/DesktopIntegration.vala -M src/Dialogs.vala -M src/LibraryFiles.vala -M src/LibraryMonitor.vala -M src/MediaDataRepresentation.vala -M src/MediaPage.vala -M src/MetadataWriter.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Printing.vala -M src/SearchFilter.vala -M src/SlideshowPage.vala -M src/VideoSupport.vala -M src/camera/ImportPage.vala -A src/config/Config.vala -A src/config/ConfigurationInterfaces.vala -A src/config/GConfEngine.vala -A src/config/GSettingsEngine.vala -A src/config/mk/config.mk -M src/direct/DirectWindow.vala -M src/events/Branch.vala -M src/events/EventPage.vala -M src/events/EventsDirectoryPage.vala -M src/library/Branch.vala -M src/library/FlaggedPage.vala -M src/library/LastImportPage.vala -M src/library/LibraryWindow.vala -M src/main.vala -M src/plugins/Plugins.vala -M src/plugins/StandardHostInterface.vala -M src/publishing/PublishingUI.vala -M src/searches/SavedSearchPage.vala -M src/tags/TagPage.vala -M units.mk - -commit 4b5feb64dac81a9d68d80b8726ff29d5f8d6da4a -Author: Bruno Girin -Date: Thu Jun 16 13:33:04 2011 -0700 - - Closes #3753. - Fixes an encoding glitch in the Piwigo publishing plugin. Thanks - Bruno! - -M plugins/shotwell-publishing-extras/PiwigoPublishing.vala - -commit 0a9c565d7f2cedc5e880c93a7bff87124abb60b6 -Author: Bruno Girin -Date: Wed Jun 8 14:35:45 2011 -0700 - - Fixes an issue in which Glade resource files needed by the Piwigo - publishing plugin weren't properly installed. Closes #3729. - -M plugins/plugins.mk -M plugins/shotwell-publishing-extras/Makefile - -commit ce0c320a96eabcf7a6ec20386de346aa6712a075 -Author: Eric Gregory -Date: Tue Jun 7 12:19:56 2011 -0700 - - 3716 reverting 3671 - -M Makefile -M debian/control -M src/LibraryFiles.vala -M src/VideoSupport.vala - -commit ccaebfadb9285646efffc8e360a6137b37006296 -Author: Eric Gregory -Date: Mon Jun 6 18:24:15 2011 -0700 - - 3672 fixed opening raw photos in direct mode - - The format needs to be detected upfront; delaying this had unforseen - consequences. Since there's no other place in Shotwell where a - format could change after import, it makes sense just to do it in - the pre-pre-import step for direct mode. - -M src/Photo.vala - -commit 59642db1937703065edb5d65463ff914113e8f99 -Author: clinton -Date: Mon Jun 6 16:28:08 2011 -0700 - - 2154 - Add BMP support. - -A src/photos/BmpSupport.vala -M src/photos/PhotoFileFormat.vala -M src/photos/mk/photos.mk - -commit d9d917e8322e3fbf71fce7a772cef2286cf9c613 -Author: Vera Yin -Date: Fri Jun 3 12:26:49 2011 -0700 - - Corrected translations for any, all, and none. - -M po/shotwell-core/cs.po -M po/shotwell-core/es.po -M po/shotwell-core/fi.po -M po/shotwell-core/fr.po -M po/shotwell-core/ja.po -M po/shotwell-core/nb.po -M po/shotwell-core/pt.po -M po/shotwell-core/pt_BR.po -M po/shotwell-core/ru.po -M po/shotwell-core/sl.po -M po/shotwell-core/sr.po -M po/shotwell-core/zh_CN.po -M po/shotwell-core/zh_TW.po - -commit d23e03ecbe25afeb4f4a9f2fcf86bc10da9b9694 -Author: Eric Gregory -Date: Thu Jun 2 15:00:55 2011 -0700 - - 3610 saved search by date - -M src/db/SavedSearchDBTable.vala -M src/searches/SavedSearchDialog.vala -M src/searches/SearchBoolean.vala - -commit 99dcfc1d175d3544f5de8b3a24fba9ffa245ed43 -Author: Vera Yin -Date: Thu Jun 2 11:43:56 2011 -0700 - - Translation updates. - -M po/shotwell-core/ja.po -M po/shotwell-core/ru.po - -commit 355d87557debd3bd096335e35b7e2e8b161a1e46 -Author: Eric Gregory -Date: Thu Jun 2 11:47:19 2011 -0700 - - 3664 changed criteria to criterion - -M help/C/organize-search.page - -commit 32bedc4e4ce34ec26f8cee65ab03c9aa8b98e2f7 -Author: Clint Rogers -Date: Thu Jun 2 11:32:34 2011 -0700 - - 3683 - Fixes artifacting that used to happen when resizing the window - while the crop tool was open - -M src/EditingTools.vala - -commit ce35d8a63953fbbd5f0b38f07c2be4f0936e56d6 -Author: Lucas Beeler -Date: Thu Jun 2 11:11:48 2011 -0700 - - Fixes an issue in which certain Makefile dependencies weren't checked - prior to building any Shotwell component. - -M Makefile - -commit 491c241c3457f0b8b803c584deec8c1eeeec1cc7 -Author: Eric Gregory -Date: Thu Jun 2 11:04:50 2011 -0700 - - 2059 refresh hide all imported filter when switching back to - camera page - -M src/camera/ImportPage.vala - -commit 31d2d1e44ca202feaecbbc4b3d5dc20f317a5613 -Author: Clint Rogers -Date: Wed Jun 1 14:39:09 2011 -0700 - - 3656 - Prevents crashing by adding protection against drawing or - sampling 0-pixel sized regions (GTK hates these). - -M src/Dimensions.vala -M src/Page.vala -M src/PhotoPage.vala - -commit 1e561d4399c55a46f254724594410bb61114f253 -Author: Eric Gregory -Date: Wed Jun 1 13:26:30 2011 -0700 - - 3671 fall back to date provided by gstreamer for videos - - Also removes the direct calls to the GStreamer pipeline, replacing - it with Gst.Discoverer provided in pbutils - -M Makefile -M debian/control -M src/LibraryFiles.vala -M src/VideoSupport.vala - -commit e4a8ad9b4583e6fda71911c9cbb4a6f1ec7e34a4 -Author: Eric Gregory -Date: Wed Jun 1 13:01:18 2011 -0700 - - 2059 fixes for "hide already imported" on import page - - * ViewCollections can now have multiple ViewFilters. In this case, - the import page has both a search filter and a new filter that just - does hide imported. - * Filename comparisons for video and RAW photos is now case - insensitive, due to the lower-case on import feature. - -M src/Photo.vala -M src/VideoSupport.vala -M src/camera/ImportPage.vala -M src/core/ViewCollection.vala -M src/library/LibraryWindow.vala - -commit 7acd648150e0070c3c0939ee3a4d76146c63598e -Author: clinton -Date: Tue May 31 17:05:50 2011 -0700 - - 3283 - we now get the master pixbuf here instead of the current one - -M src/PhotoPage.vala - -commit 2253bb4e06900e2c213b7a975567cc1b7e1eb488 -Author: Gavrilov Maksim -Date: Tue May 31 16:19:09 2011 -0700 - - Closes #3670. - Modifies "make install" logic to make it compatible with the Gentoo - packaging system. - -M Makefile -M THANKS - -commit a0534741f49b364a0621d888ece44475f15d1d71 -Author: Wolfgang Steitz -Date: Tue May 31 16:11:04 2011 -0700 - - Fixes #2887. - Shotwell's crop tool now allows the crop reticle to pivoted regardless - of the constraint setting. - -M src/EditingTools.vala - -commit 9c024da230a9935493ed8bfcfe884ae2e9742d25 -Author: Bruno Girin -Date: Tue May 31 16:05:55 2011 -0700 - - Closes #3677. - Piwigo publisher now properly persists password between publishing - sessions. - -M plugins/shotwell-publishing-extras/PiwigoPublishing.vala -M -plugins/shotwell-publishing-extras/piwigo_authentication_pane.glade - -commit ec0895b692584fbbba6241658c90505c18153002 -Author: Bruno Girin -Date: Tue May 31 16:02:26 2011 -0700 - - Closes #3676 - Fixes a regression in which a photo's title wasn't properly set when - publishing to a Piwigo server. - -M plugins/shotwell-publishing-extras/PiwigoPublishing.vala - -commit 1ca5a848a66071e5d7a2e6bb47c618042d89f7e6 -Author: Bruno Girin -Date: Tue May 31 15:58:42 2011 -0700 - - Closes #3678. - Ensures Piwigo plugin doesn't attempt to create duplicate categories. - -M plugins/shotwell-publishing-extras/PiwigoPublishing.vala - -commit 852cc53a58b14d165dc0a5b62d46041dd1d8b385 -Author: Bruno Girin -Date: Tue May 31 15:25:06 2011 -0700 - - Fixes an issue in which code and a documenation comment got out of - sync, potentially confusing plugin authors. - -M src/plugins/PublishingInterfaces.vala - -commit 82c3707613e4d3756a5a57d17dc48455d97b83f6 -Author: Eric Gregory -Date: Mon May 30 19:39:36 2011 -0700 - - 3664 documented saved searches - -M help/C/organize-search.page - -commit ca594d072ea29feb6f93ae57a1c47de978f69227 -Author: Eric Gregory -Date: Mon May 30 19:33:29 2011 -0700 - - 3679 fixed crash when two or more cameras have the same name - -M src/camera/Branch.vala - -commit f04d8b921d9bb9e89cfded1bd276987bc75c27df -Author: clinton -Date: Mon May 30 18:52:41 2011 -0700 - - 3618 - makes 'x' come before 'y' when entering custom crop aspect - ratio - -M src/EditingTools.vala - -commit e4cec3dfd6ccf357f1c1b66bc338a5cbfa633f4a -Author: Eric Gregory -Date: Thu May 26 16:49:38 2011 -0700 - - 0.10.0+trunk version - -M Makefile - -commit 8d39a139b7f9fdea1dfa3dc266884528706eb6bc -Merge: 6b8e5dae 80750b13 -Author: Eric Gregory -Date: Thu May 26 16:44:50 2011 -0700 - - Merge branch 'shotwell-0.10' - -commit 80750b133c1bbdcae736eab0d0793996c0296d6d -Author: Eric Gregory -Date: Thu May 26 16:31:15 2011 -0700 - - branch version (0.10.0+branch) - -M Makefile - -commit cb709d6f8c6b1993acc4e74da7913f5fef1f2f4b -Author: Eric Gregory -Date: Thu May 26 15:39:51 2011 -0700 - - shotwell 0.10 release - -M Makefile -M NEWS -M debian/changelog -M debian/control -C100 debian/control debian/control.maverick - -commit 3829a468278f57f0d66112879cc2c01490d519f1 -Author: clinton -Date: Wed May 25 13:48:04 2011 -0700 - - 3548 - Adds a sanity check query and automatic backup copying for - photo.db - -M src/db/DatabaseTable.vala -M src/main.vala - -commit 73e72089dd5aef2f2c81296509cffa8677ddc0b8 -Author: Vera Yin -Date: Wed May 25 12:42:39 2011 -0700 - - Updated translations. - -M po/shotwell-core/cs.po -M po/shotwell-core/nl.po -M po/shotwell-extras/ar.po -M po/shotwell-extras/ast.po -M po/shotwell-extras/bg.po -M po/shotwell-extras/bn.po -M po/shotwell-extras/id.po -M po/shotwell-extras/lt.po -M po/shotwell-extras/pa.po -M po/shotwell-extras/sk.po -M po/shotwell-extras/ta.po -M po/shotwell-extras/th.po - -commit f0312a7aec76922e3747cbab47ddd4be1d0f9077 -Author: Lucas Beeler -Date: Tue May 24 17:20:24 2011 -0700 - - Closes #3294. - Runs Shotwell core program pkg-config checks and prints useful error - messages before attempting to build Shotwell plugins. - -M Makefile - -commit 2c4164371f2c4126b4b136fce58b16dde12564bc -Author: Bruno Girin -Date: Tue May 24 16:21:35 2011 -0700 - - Closes #3203. - Ports Piwigo publishing connector to the new pluggable publishing - API introduced in Shotwell 0.9.x. - -M plugins/common/RESTSupport.vala -M plugins/plugins.mk -M plugins/shotwell-publishing-extras/Makefile -A plugins/shotwell-publishing-extras/PiwigoPublishing.vala -A plugins/shotwell-publishing-extras/piwigo.png -A -plugins/shotwell-publishing-extras/piwigo_authentication_pane.glade -A -plugins/shotwell-publishing-extras/piwigo_publishing_options_pane.glade -M plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala - -commit 6b8e5dae12356e94fbf9b647731f2676f9e47f70 -Author: Bruno Girin -Date: Tue May 24 16:21:35 2011 -0700 - - Closes #3203. - Ports Piwigo publishing connector to the new pluggable publishing - API introduced in Shotwell 0.9.x. - -M plugins/common/RESTSupport.vala -M plugins/plugins.mk -M plugins/shotwell-publishing-extras/Makefile -A plugins/shotwell-publishing-extras/PiwigoPublishing.vala -A plugins/shotwell-publishing-extras/piwigo.png -A -plugins/shotwell-publishing-extras/piwigo_authentication_pane.glade -A -plugins/shotwell-publishing-extras/piwigo_publishing_options_pane.glade -M plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala - -commit ee11e7141896106449dcf34b6efd1c1cd6e8763e -Author: Eric Gregory -Date: Tue May 24 14:47:12 2011 -0700 - - 3654 Saved Search: text box re-appears when editing "is not set" - search - -M src/searches/SavedSearchDialog.vala - -commit 1f1aa17ab05d8e6645d3a5f2e8e1a0bbabffce0a -Author: clinton -Date: Mon May 23 16:20:37 2011 -0700 - - 3466 - react to Enter as well as KP_Enter here. - -M src/EditingTools.vala - -commit 8388a134b270ea49d293e7893f95bc08cfca42ff -Author: Eric Gregory -Date: Mon May 23 16:00:33 2011 -0700 - - 3634 fixed crash on new event - - This fixes a rather subtle crash left over from the sidebar - refactoring. Creating a new event always creates an undated event, - then populates the date when the photos are added in a second - step. But the code to add undated events accidentally had swapped - the comparator (used to sort the undated events) between the parent - and child. - -M src/events/Branch.vala - -commit c7c1ef588c566fa0cf7396f340cfcfff4b8e75df -Author: Vera Yin -Date: Mon May 23 13:18:23 2011 -0700 - - Fixed errors in Slovenian translation. - -M po/shotwell-core/sl.po - -commit 7e8fb0a624a71471cd52350102a2c7d737d4ffb5 -Author: Lucas Beeler -Date: Mon May 23 13:13:19 2011 -0700 - - Fixes #3631. - Resolves a critical issue in which Shotwell could crash if publishing - was cancelled during the file serialization phase. - -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -M src/publishing/PublishingPluginHost.vala - -commit 0c455385978860c5297af385245b56f3bb02d95f -Author: Vera Yin -Date: Mon May 23 13:12:00 2011 -0700 - - Updated translations. - -M po/shotwell-core/ar.po -M po/shotwell-core/ast.po -M po/shotwell-core/bg.po -M po/shotwell-core/bn.po -M po/shotwell-core/ca.po -M po/shotwell-core/cs.po -M po/shotwell-core/da.po -M po/shotwell-core/de.po -M po/shotwell-core/el.po -M po/shotwell-core/en_GB.po -M po/shotwell-core/es.po -M po/shotwell-core/et.po -M po/shotwell-core/eu.po -M po/shotwell-core/fi.po -M po/shotwell-core/fr.po -M po/shotwell-core/gl.po -M po/shotwell-core/he.po -M po/shotwell-core/hr.po -M po/shotwell-core/hu.po -M po/shotwell-core/id.po -M po/shotwell-core/it.po -M po/shotwell-core/ja.po -M po/shotwell-core/kk.po -M po/shotwell-core/ko.po -M po/shotwell-core/lt.po -M po/shotwell-core/lv.po -M po/shotwell-core/mk.po -M po/shotwell-core/nb.po -M po/shotwell-core/nl.po -M po/shotwell-core/pa.po -M po/shotwell-core/pl.po -M po/shotwell-core/pt.po -M po/shotwell-core/pt_BR.po -M po/shotwell-core/ro.po -M po/shotwell-core/ru.po -M po/shotwell-core/sk.po -M po/shotwell-core/sl.po -M po/shotwell-core/sr.po -M po/shotwell-core/sv.po -M po/shotwell-core/ta.po -M po/shotwell-core/te.po -M po/shotwell-core/th.po -M po/shotwell-core/tr.po -M po/shotwell-core/uk.po -M po/shotwell-core/zh_CN.po -M po/shotwell-core/zh_TW.po -M po/shotwell-extras/ar.po -M po/shotwell-extras/ast.po -M po/shotwell-extras/bg.po -M po/shotwell-extras/bn.po -M po/shotwell-extras/cs.po -M po/shotwell-extras/id.po -M po/shotwell-extras/lt.po -M po/shotwell-extras/pa.po -M po/shotwell-extras/sk.po -M po/shotwell-extras/ta.po -M po/shotwell-extras/th.po -M po/shotwell-extras/zh_CN.po - -commit 821ac97b73688b8adbc933ce5ccf15d44519c6c2 -Author: Vera Yin -Date: Mon May 23 11:40:37 2011 -0700 - - Added strings from ratings search to pot file. - -M po/shotwell-core/shotwell.pot -M po/shotwell-extras/shotwell-extras.pot - -commit 30a569de3babf6b67e8616e175f198b97115075a -Author: Eric Gregory -Date: Fri May 20 19:10:38 2011 -0700 - - 3633 translatable strings for rating search - -M src/searches/SavedSearchDialog.vala - -commit d7916c229c3c3768b97181d438c4db71efec4de3 -Author: Eric Gregory -Date: Fri May 20 11:36:08 2011 -0700 - - 3629 send-to with multiple users (and other multi-user /tmp bugs) - - Previously we used /tmp/shotwell for exporting temp files before - e-mailing or publishing. The problem with this is that if multiple - users are signed in to the same machine using Shotwell, only the - first user to write to /tmp/shotwell will be successful since they - own the write permissions to that folder. Rather than making the - folder world-writable, we're now using the folder /tmp/shotwell-{uid} - so each user has their own folder. - -M src/AppDirs.vala - -commit 1a9ab6970678759f66e53f1c187b49fd34a4b0a2 -Author: Clint Rogers -Date: Fri May 20 11:19:35 2011 -0700 - - 3547 - don't call export_fullsized_backing for non-lossy images, - since they don't need it. - -M src/Photo.vala - -commit afb9bb5a825e8b3e635b8aff9708ad2974eac613 -Author: Eric Gregory -Date: Thu May 19 17:22:59 2011 -0700 - - 3628 alphabetize publishing service names - -M src/publishing/PublishingUI.vala - -commit e018182b251e38618d2462efd00178c3be200600 -Author: Clint Rogers -Date: Thu May 19 15:42:56 2011 -0700 - - 3617 - prevents user from entering zero as a crop ratio divisor - or dividend - and defends against several crashes that could result from weird - custom crop ratios - -M src/Box.vala -M src/EditingTools.vala -M src/Orientation.vala - -commit 54844d17477d5d4c736f3cffdc95432733985fb0 -Author: Eric Gregory -Date: Thu May 19 15:33:05 2011 -0700 - - 3625 search filter no longer persists between sessions - -M src/Config.vala -M src/SearchFilter.vala -M src/library/LibraryWindow.vala - -commit 8edcaaa7cf068928a2e846a26df56c8926282d11 -Author: Lucas Beeler -Date: Thu May 19 15:21:57 2011 -0700 - - Closes #3421. - -M Makefile -M src/AppDirs.vala -M src/Resources.vala - -commit 20e35a41208d895a5f697345ba44154a9476b8e7 -Author: Valentín Barros -Date: Thu May 19 15:04:03 2011 -0700 - - Closes #2644. - -M src/Page.vala - -commit 760722604ac3244b1e792a6c7c69626f335dfa31 -Author: Lucas Beeler -Date: Thu May 19 14:57:07 2011 -0700 - - Correctly adds external contributor of previous commit to THANKS file. - -M THANKS - -commit 1f45bfd88f81fa0e9f16ca761bd6a732cfb97ab3 -Author: Alexandre Rosenfeld -Date: Thu May 19 14:55:41 2011 -0700 - - Closes #3007. Adds external contributor of patch (Alexandre Rosenfeld) - to THANKS file. - -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala - -commit b288d44d35d1116dd3fe4cda20bd1b1bc5d63447 -Author: Valentín Barros -Date: Thu May 19 14:46:58 2011 -0700 - - Closes #2792. - -M src/Thumbnail.vala - -commit b6357e07a7e773c0142a4ae28038f0fb31a9c458 -Author: Valentín Barros -Date: Thu May 19 14:38:17 2011 -0700 - - Closes #3579. - -M src/AppWindow.vala - -commit 7ef7635e3f5afb614e86bcad8c35e17f9761523a -Author: Lucas Beeler -Date: Thu May 19 13:23:00 2011 -0700 - - Closes #3623. - -M src/publishing/PublishingUI.vala - -commit 3d646abb99f2a506b63487bc8d78d1aaaf488e7d -Merge: 8cb6c4fd fbf5893c -Author: Eric Gregory -Date: Thu May 19 12:45:00 2011 -0700 - - Merge branch 'master' of ssh://yorba.org/git/shotwell - -commit fbf5893cf8e72e047a59ad5a1b2c9db5be42b323 -Author: Vera Yin -Date: Thu May 19 12:41:08 2011 -0700 - - Fixed errors in Slovenian translation. - -M po/shotwell-core/sl.po - -commit 8cb6c4fd1e8fa1d2a52676d28295a9f2fc36056e -Author: Eric Gregory -Date: Thu May 19 12:40:32 2011 -0700 - - 3576 plugins can now differentiate between the title and the filename - -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -M src/plugins/PublishingInterfaces.vala -M src/publishing/APIGlue.vala - -commit 115e42c75245b51f27740108667c317a068d1198 -Author: Vera Yin -Date: Thu May 19 12:27:45 2011 -0700 - - Updated translations. - -M po/shotwell-core/fr.po -M po/shotwell-core/sl.po -M po/shotwell-extras/ar.po -M po/shotwell-extras/ast.po -M po/shotwell-extras/bg.po -M po/shotwell-extras/bn.po -M po/shotwell-extras/fr.po -M po/shotwell-extras/id.po -M po/shotwell-extras/lt.po -M po/shotwell-extras/pa.po -M po/shotwell-extras/sk.po -M po/shotwell-extras/ta.po -M po/shotwell-extras/th.po - -commit b13e3f1b5604c7bce3b5f86c60a9b5799bdd6697 -Author: Clint Rogers -Date: Thu May 19 12:08:41 2011 -0700 - - 3571 - Adds a close button for people using window managers or themes - that don't expose 'close' in the titlebar. - -M src/Properties.vala - -commit a0880783e5b15dcebf07ef05ff1e509f5ffeffc1 -Author: Lucas Beeler -Date: Wed May 18 21:18:09 2011 -0700 - - Eliminates old publishing API; closes #3387. - -M Makefile -M src/CollectionPage.vala -M src/PhotoPage.vala -D src/PiwigoConnector.vala -D src/WebConnectors.vala -M src/publishing/APIGlue.vala -M src/publishing/PublishingPluginHost.vala -A src/publishing/PublishingUI.vala -M src/publishing/mk/publishing.mk - -commit 8c21be4ca0010139779907a8e4d367c9951c60f1 -Author: Vera Yin -Date: Tue May 17 15:35:28 2011 -0700 - - Restored French translation again. - -M po/shotwell-core/fr.po - -commit 931b4ee06f1733a3e6836aa6f7baa4d03ccb8237 -Author: Eric Gregory -Date: Tue May 17 15:28:59 2011 -0700 - - 3580 facebook photo title fix - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit de6cd133d6bf230e4ad03489ff72ca1fbc54a469 -Author: Eric Gregory -Date: Tue May 17 15:10:40 2011 -0700 - - 3598 flickr upload where multiple photos have the same timestamp - - Previously we used a tree set with a timestamp comparator to sort - photos prior to uploading to Flickr. This had a flaw because multiple - photos could have the same timestamp -- and because we were using - a set, only one of those photos would be included. - - Bug originally reported at: - http://askubuntu.com/questions/42063/shotwell-refusing-to-publish-more-than-one-photo-at-a-time - -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit b0d6661c9d7b9694b06408b99a89777be2391e55 -Author: Eric Gregory -Date: Tue May 17 15:03:00 2011 -0700 - - 3609 "is not set" on text searches changes - - When selecting "is not set", the user isno longer offered a text - box. More importantly, it's possible to hit OK after setting an - "is not set" search. - -M src/searches/SavedSearchDialog.vala - -commit 745542c62daf4dbdd421d62dd0f62a3adcc8373d -Author: Lucas Beeler -Date: Tue May 17 14:50:48 2011 -0700 - - Closes #3615. - -M plugins/shotwell-publishing-extras/YandexPublishing.vala -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit 748c5753ac441da0125bad04f3c2bf8dbf7934ac -Author: Vera Yin -Date: Tue May 17 14:50:25 2011 -0700 - - Updated translations. - -M po/shotwell-core/ca.po -M po/shotwell-core/de.po -M po/shotwell-core/el.po -M po/shotwell-core/en_GB.po -M po/shotwell-core/es.po -M po/shotwell-core/et.po -M po/shotwell-core/eu.po -M po/shotwell-core/fi.po -M po/shotwell-core/fr.po -M po/shotwell-core/he.po -M po/shotwell-core/it.po -M po/shotwell-core/ja.po -M po/shotwell-core/ko.po -M po/shotwell-core/nb.po -M po/shotwell-core/nl.po -M po/shotwell-core/pl.po -M po/shotwell-core/pt.po -M po/shotwell-core/ro.po -M po/shotwell-core/ru.po -M po/shotwell-core/sr.po -M po/shotwell-core/sv.po -M po/shotwell-core/te.po -M po/shotwell-core/uk.po -M po/shotwell-core/zh_TW.po -M po/shotwell-extras/ar.po -M po/shotwell-extras/ast.po -M po/shotwell-extras/bg.po -M po/shotwell-extras/bn.po -M po/shotwell-extras/ca.po -M po/shotwell-extras/el.po -M po/shotwell-extras/en_GB.po -M po/shotwell-extras/et.po -M po/shotwell-extras/fi.po -M po/shotwell-extras/he.po -M po/shotwell-extras/id.po -M po/shotwell-extras/it.po -M po/shotwell-extras/ja.po -M po/shotwell-extras/ko.po -M po/shotwell-extras/lt.po -M po/shotwell-extras/nl.po -M po/shotwell-extras/pa.po -M po/shotwell-extras/pl.po -M po/shotwell-extras/pt.po -M po/shotwell-extras/ro.po -M po/shotwell-extras/ru.po -M po/shotwell-extras/sk.po -M po/shotwell-extras/sr.po -M po/shotwell-extras/sv.po -M po/shotwell-extras/ta.po -M po/shotwell-extras/th.po -M po/shotwell-extras/uk.po -M po/shotwell-extras/zh_TW.po - -commit 7c2f811947b92a3591e9e3aafdba5897c3413598 -Author: Clint Rogers -Date: Tue May 17 14:31:45 2011 -0700 - - 3613 - build_alert_body_text() now correctly handles null strings. - -M src/AppWindow.vala -M src/Dialogs.vala - -commit b01fff9993a283b87dd1ad5094928cb7bbbbc22e -Author: Lucas Stephen Beeler -Date: Mon May 16 20:14:02 2011 -0700 - - Hurts Natty; closes #3606. - -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit 74d233aeea878d1239c53bfd666a44d065c5c986 -Author: Clint Rogers -Date: Mon May 16 16:10:20 2011 -0700 - - 3600 - increased the fudge value to prevent crash when user has an - image with insane aspect ratios after cropping. - -M src/Photo.vala - -commit b86e909650d2424a659dc7d1134bbeaa293df3a7 -Author: Clint Rogers -Date: Mon May 16 15:27:30 2011 -0700 - - 3555 - rewrote the instructions on how to merge events; docs now - match what the app does. - -M help/C/organize-event.page - -commit cbad5e441a9b3f3bfd8255249335c9dfbaafe06b -Author: Eric Gregory -Date: Mon May 16 15:05:43 2011 -0700 - - 3607 synced makefile resources with ui folder - -M Makefile - -commit 85c2abc836f8f88953fd1fd3c52ff4ddcf84c115 -Author: Clint Rogers -Date: Mon May 16 12:32:32 2011 -0700 - - 3492 - we now set is_pivotable in the ConstraintDescriptions for - these to true. - -M src/EditingTools.vala - -commit 22226db0114f50b8bf084c2900a8251aba73cac5 -Author: Clint Rogers -Date: Mon May 16 12:28:26 2011 -0700 - - 3601 - fixes a problem where clicks on an already-highlighted sidebar - element were getting ignored inappropriately. - -M src/sidebar/Tree.vala - -commit bdd2194e949c8bb58682cd58b914bc2aa9bd9433 -Author: Eric Gregory -Date: Mon May 16 12:10:35 2011 -0700 - - 3542 search types are now alphabetized - -M src/searches/SavedSearchDialog.vala -M src/searches/SearchBoolean.vala - -commit 8180d391596cbc748f381f84e5858ac306780122 -Author: Eric Gregory -Date: Mon May 16 11:53:56 2011 -0700 - - 3585 tag view has same sort-order as event view - -M src/tags/TagPage.vala - -commit 1fe8e5bd007812247b0b3feae16f9181b782b64b -Author: Eric Gregory -Date: Mon May 16 11:40:56 2011 -0700 - - 3591 fixes direct-edit mode - - Provides a workaround for the database file read-only check when - using an in-memory database. - -M src/db/DatabaseTable.vala -M src/db/Db.vala - -commit c68763521af73bfea30c4aa088dd7e79c1c6da1a -Author: Clint Rogers -Date: Mon May 16 11:35:20 2011 -0700 - - 3063 - fixed incorrect key combo in mallard files. - -M help/C/organize-flag.page - -commit 63e5c6c96d40d09ac1750a46928eb09448230cc7 -Author: Vera Yin -Date: Thu May 12 19:30:17 2011 -0700 - - Restored French translation, updated THANKS. - -M THANKS -M po/shotwell-core/fr.po - -commit 75d77b92c57f14237d28a86a281f0e230238889e -Author: Vera Yin -Date: Thu May 12 18:08:27 2011 -0700 - - Updated pot files after string freeze, updated translations. - -M po/shotwell-core/ar.po -M po/shotwell-core/ast.po -M po/shotwell-core/bg.po -M po/shotwell-core/bn.po -M po/shotwell-core/ca.po -M po/shotwell-core/cs.po -M po/shotwell-core/da.po -M po/shotwell-core/de.po -M po/shotwell-core/el.po -M po/shotwell-core/en_GB.po -M po/shotwell-core/es.po -M po/shotwell-core/et.po -M po/shotwell-core/eu.po -M po/shotwell-core/fi.po -M po/shotwell-core/fr.po -M po/shotwell-core/gl.po -M po/shotwell-core/he.po -M po/shotwell-core/hr.po -M po/shotwell-core/hu.po -M po/shotwell-core/id.po -M po/shotwell-core/it.po -M po/shotwell-core/ja.po -M po/shotwell-core/kk.po -M po/shotwell-core/ko.po -M po/shotwell-core/lt.po -M po/shotwell-core/lv.po -M po/shotwell-core/mk.po -M po/shotwell-core/nb.po -M po/shotwell-core/nl.po -M po/shotwell-core/pa.po -M po/shotwell-core/pl.po -M po/shotwell-core/pt.po -M po/shotwell-core/pt_BR.po -M po/shotwell-core/ro.po -M po/shotwell-core/ru.po -M po/shotwell-core/shotwell.pot -M po/shotwell-core/sk.po -M po/shotwell-core/sl.po -M po/shotwell-core/sr.po -M po/shotwell-core/sv.po -M po/shotwell-core/ta.po -M po/shotwell-core/te.po -M po/shotwell-core/th.po -M po/shotwell-core/tr.po -M po/shotwell-core/uk.po -M po/shotwell-core/zh_CN.po -M po/shotwell-core/zh_TW.po -M po/shotwell-extras/ar.po -M po/shotwell-extras/ast.po -M po/shotwell-extras/bg.po -M po/shotwell-extras/bn.po -M po/shotwell-extras/ca.po -M po/shotwell-extras/cs.po -M po/shotwell-extras/da.po -M po/shotwell-extras/de.po -M po/shotwell-extras/el.po -M po/shotwell-extras/en_GB.po -M po/shotwell-extras/es.po -M po/shotwell-extras/et.po -M po/shotwell-extras/eu.po -M po/shotwell-extras/fi.po -M po/shotwell-extras/fr.po -M po/shotwell-extras/gl.po -M po/shotwell-extras/he.po -M po/shotwell-extras/hr.po -M po/shotwell-extras/hu.po -M po/shotwell-extras/id.po -M po/shotwell-extras/it.po -M po/shotwell-extras/ja.po -M po/shotwell-extras/kk.po -M po/shotwell-extras/ko.po -M po/shotwell-extras/lt.po -M po/shotwell-extras/lv.po -M po/shotwell-extras/mk.po -M po/shotwell-extras/nb.po -M po/shotwell-extras/nl.po -M po/shotwell-extras/pa.po -M po/shotwell-extras/pl.po -M po/shotwell-extras/pt.po -M po/shotwell-extras/pt_BR.po -M po/shotwell-extras/ro.po -M po/shotwell-extras/ru.po -M po/shotwell-extras/shotwell-extras.pot -M po/shotwell-extras/sk.po -M po/shotwell-extras/sl.po -M po/shotwell-extras/sr.po -M po/shotwell-extras/sv.po -M po/shotwell-extras/ta.po -M po/shotwell-extras/te.po -M po/shotwell-extras/th.po -M po/shotwell-extras/tr.po -M po/shotwell-extras/uk.po -M po/shotwell-extras/zh_CN.po -M po/shotwell-extras/zh_TW.po - -commit 8c7ebebe04f2d38ca9618a83978da539844ec37e -Author: Eric Gregory -Date: Thu May 12 16:40:03 2011 -0700 - - 3562 "New saved search" option in context menu of empty sidebar area - -M src/sidebar/Tree.vala -A ui/sidebar_default.ui - -commit 5c8cbb87df1562c165c020ae310c45753352b4e2 -Merge: e70cbd0d 17cc6173 -Author: Clint Rogers -Date: Thu May 12 16:22:10 2011 -0700 - - Merge branch 'master' of ssh://yorba.org/git/shotwell - -commit 17cc6173103eaafffa8472117fff8a3a93eea96c -Author: Lucas Beeler -Date: Thu May 12 16:09:05 2011 -0700 - - Closes #3433. - Fixes use of ngettext in plural strings with no explicit number - present. - -M src/CollectionPage.vala -M src/Dialogs.vala -M src/Resources.vala -M src/library/TrashPage.vala - -commit e70cbd0d727abc0f8a3fcb059ac169c2ade8ce99 -Author: Clint Rogers -Date: Thu May 12 12:06:35 2011 -0700 - - Removed a duplicate definition argument from the gcc command line. - -M Makefile - -commit 3122c5edf5a39d25ae6c0adc0e57ee0dc267956a -Author: Clint Rogers -Date: Tue May 10 13:28:45 2011 -0700 - - Put the line that launches the compiler back like I found it. - -M Makefile - -commit 29f07ae8d03883035fd529188e2333f4053153b7 -Author: Clint Rogers -Date: Tue May 10 13:15:15 2011 -0700 - - Added more testcases, wrote a proper int comparator. - -M src/SortedListTests.vala - -commit ff95ada5051cb2b1a5f8c11dcb12b21a47710c5a -Author: Clint Rogers -Date: Mon May 9 23:07:08 2011 -0700 - - Added SortedListTests.vala. - -M Makefile - -commit 51ef1fedb766b6bb92b1d177b5d1e28aff200576 -Author: Clint Rogers -Date: Mon May 9 22:48:22 2011 -0700 - - This file adds tests for SortedList. - -A src/SortedListTests.vala - -commit f071f34820e65b53fba3e108ae09233282daad3f -Author: Clint Rogers -Date: Mon May 9 22:24:40 2011 -0700 - - Adding dependency file so Valadate can find and pull in all VAPIs - needed - to correctly handle libshotwell.vapi . - -A src/libshotwell.deps - -commit d63abd9d804b74948d72cbcae380bbe1f5287893 -Author: Clint Rogers -Date: Mon May 9 21:42:49 2011 -0700 - - Don't attempt to generate libshotwell.deps anymore. - -M Makefile - -commit 48993088512e97c596fc63d30ba9a0069e95e409 -Author: Clint Rogers -Date: Mon May 9 20:32:23 2011 -0700 - - Caused 'src/libshotwell.vapi' to be ignored, since it's generated - at compile - time and should not be versioned. - -M .gitignore - -commit 40e1cfd6e9272094490784472604b20c3cd23175 -Author: Clint Rogers -Date: Mon May 9 20:30:58 2011 -0700 - - Made MetadataDateTimeError be public. - - This is needed for automatic tests that can exercise functionality - that - can throw this error. - -M src/MediaMetadata.vala - -commit fe0e2db6a011835d64fa0fa4f50125f43305179e -Author: Clint Rogers -Date: Mon May 9 20:26:42 2011 -0700 - - Altered configure and Makefile to support automatic testing. - - Running 'make check' now tests to see if the user has valadate - installed - before continuing with the build. - - Reworded help in configure to make it more concise. - -M Makefile -M configure - -commit d847941a826b481e6f49317aadaa9d70fe1cfa74 -Merge: 8932d5fa 5034bcd4 -Author: Clint Rogers -Date: Mon May 9 11:30:30 2011 -0700 - - Merge branch 'master' of ssh://yorba.org/git/shotwell - -commit 8932d5fa28fd0ba8774cd6413ecad7354257a616 -Author: Clint Rogers -Date: Mon May 9 11:29:36 2011 -0700 - - #3403: Removed many unused strings. - Should make translation easier. - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/Commands.vala -M src/MediaPage.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/direct/DirectPhotoPage.vala -M src/events/EventPage.vala -M src/events/EventsDirectoryPage.vala -M src/library/LibraryWindow.vala - -commit 5034bcd44d253a3b8dc137b3c61f0fd68e9323ee -Author: Eric Gregory -Date: Fri May 6 17:29:29 2011 -0700 - - 3577/3575 resolves crash while entering full screen on a filtered-out - item and assertion on single photo mode prev/next - -M src/PhotoPage.vala -M src/library/LibraryWindow.vala - -commit 03e68bf8b0228236f16f07041aff279651201b35 -Author: Eric Gregory -Date: Fri May 6 17:25:02 2011 -0700 - - 3539 removed mirroring order - - Previously, a mirrored collection respected the ordering of what it - was mirroring. This wasn't necessary and introduced a subtle bug - where tags and events were shown out-of-order. - -M src/core/ViewCollection.vala - -commit 53742e15922a576290c5449fab041c2fe4d81ad8 -Author: Eric Gregory -Date: Thu May 5 17:50:46 2011 -0700 - - 3557 unique name generated for saved searches - -M src/Resources.vala -M src/searches/SavedSearchDialog.vala -M src/searches/SearchBoolean.vala - -commit 4b0a6fb621390b1f851b0144fe24bd5beb53b1ff -Author: Eric Gregory -Date: Thu May 5 17:48:38 2011 -0700 - - 3515 saved search dialog disables OK button until search is valid - -M src/searches/SavedSearchDialog.vala - -commit 8e357305940c7b34093ea4c4ef28bd4e3caab369 -Author: Lucas Stephen Beeler -Date: Thu May 5 15:18:09 2011 -0700 - - Phase 8 of the translation migration. - -M Makefile -M plugins/shotwell-publishing-extras/YandexPublishing.vala -M plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala - -commit 0ab5cff8de47bdb6405245b7f013980b663497a0 -Author: Lucas Stephen Beeler -Date: Wed May 4 13:21:57 2011 -0700 - - Removed duplicate message keys from shotwell.pot; all POT files are - now ready. - -M po/shotwell-core/shotwell.pot - -commit 7760d5c023cc93b2ce3f9c49f1b39297783eb791 -Author: Lucas Stephen Beeler -Date: Wed May 4 13:15:14 2011 -0700 - - Phase 6 of the translation migration. - -M po/shotwell-core/shotwell.pot -M po/shotwell-extras/shotwell-extras.pot - -commit a55221a69c95efb1bb0965d6dd1c77f20cc29590 -Author: Lucas Stephen Beeler -Date: Wed May 4 12:54:11 2011 -0700 - - Phase 5 of translation migration. - -M po/shotwell-core/ar.po -M po/shotwell-core/ast.po -M po/shotwell-core/bg.po -M po/shotwell-core/bn.po -M po/shotwell-core/ca.po -M po/shotwell-core/cs.po -M po/shotwell-core/da.po -M po/shotwell-core/de.po -M po/shotwell-core/el.po -M po/shotwell-core/en_GB.po -M po/shotwell-core/es.po -M po/shotwell-core/et.po -M po/shotwell-core/eu.po -M po/shotwell-core/fi.po -M po/shotwell-core/fr.po -M po/shotwell-core/gl.po -M po/shotwell-core/he.po -M po/shotwell-core/hr.po -M po/shotwell-core/hu.po -M po/shotwell-core/id.po -M po/shotwell-core/it.po -M po/shotwell-core/ja.po -M po/shotwell-core/kk.po -M po/shotwell-core/ko.po -M po/shotwell-core/lt.po -M po/shotwell-core/lv.po -M po/shotwell-core/mk.po -M po/shotwell-core/nb.po -M po/shotwell-core/nl.po -M po/shotwell-core/pa.po -M po/shotwell-core/pl.po -M po/shotwell-core/pt.po -M po/shotwell-core/pt_BR.po -M po/shotwell-core/ro.po -M po/shotwell-core/ru.po -M po/shotwell-core/sk.po -M po/shotwell-core/sl.po -M po/shotwell-core/sr.po -M po/shotwell-core/sv.po -M po/shotwell-core/ta.po -M po/shotwell-core/te.po -M po/shotwell-core/th.po -M po/shotwell-core/tr.po -M po/shotwell-core/uk.po -M po/shotwell-core/zh_CN.po -M po/shotwell-core/zh_TW.po -M po/shotwell-extras/ar.po -M po/shotwell-extras/ast.po -M po/shotwell-extras/bg.po -M po/shotwell-extras/bn.po -M po/shotwell-extras/ca.po -M po/shotwell-extras/cs.po -M po/shotwell-extras/da.po -M po/shotwell-extras/de.po -M po/shotwell-extras/el.po -M po/shotwell-extras/en_GB.po -M po/shotwell-extras/es.po -M po/shotwell-extras/et.po -M po/shotwell-extras/eu.po -M po/shotwell-extras/fi.po -M po/shotwell-extras/fr.po -M po/shotwell-extras/gl.po -M po/shotwell-extras/he.po -M po/shotwell-extras/hr.po -M po/shotwell-extras/hu.po -M po/shotwell-extras/id.po -M po/shotwell-extras/it.po -M po/shotwell-extras/ja.po -M po/shotwell-extras/kk.po -M po/shotwell-extras/ko.po -M po/shotwell-extras/lt.po -M po/shotwell-extras/lv.po -M po/shotwell-extras/mk.po -M po/shotwell-extras/nb.po -M po/shotwell-extras/nl.po -M po/shotwell-extras/pa.po -M po/shotwell-extras/pl.po -M po/shotwell-extras/pt.po -M po/shotwell-extras/pt_BR.po -M po/shotwell-extras/ro.po -M po/shotwell-extras/ru.po -M po/shotwell-extras/sk.po -M po/shotwell-extras/sl.po -M po/shotwell-extras/sr.po -M po/shotwell-extras/sv.po -M po/shotwell-extras/ta.po -M po/shotwell-extras/te.po -M po/shotwell-extras/th.po -M po/shotwell-extras/tr.po -M po/shotwell-extras/uk.po -M po/shotwell-extras/zh_CN.po -M po/shotwell-extras/zh_TW.po - -commit ecff8fe33412d279520aa90c1181768a6cac409b -Author: Lucas Stephen Beeler -Date: Wed May 4 12:21:01 2011 -0700 - - Stage 4 of the translation migration. - -R100 po/shotwell/ar.po po/shotwell-core/ar.po -R100 po/shotwell/ast.po po/shotwell-core/ast.po -R100 po/shotwell/bg.po po/shotwell-core/bg.po -R100 po/shotwell/bn.po po/shotwell-core/bn.po -R100 po/shotwell/ca.po po/shotwell-core/ca.po -R100 po/shotwell/cs.po po/shotwell-core/cs.po -R100 po/shotwell/da.po po/shotwell-core/da.po -R100 po/shotwell/de.po po/shotwell-core/de.po -R100 po/shotwell/el.po po/shotwell-core/el.po -R100 po/shotwell/en_GB.po po/shotwell-core/en_GB.po -R100 po/shotwell/es.po po/shotwell-core/es.po -R100 po/shotwell/et.po po/shotwell-core/et.po -R100 po/shotwell/eu.po po/shotwell-core/eu.po -R100 po/shotwell/fi.po po/shotwell-core/fi.po -R100 po/shotwell/fr.po po/shotwell-core/fr.po -R100 po/shotwell/gl.po po/shotwell-core/gl.po -R100 po/shotwell/he.po po/shotwell-core/he.po -R100 po/shotwell/hr.po po/shotwell-core/hr.po -R100 po/shotwell/hu.po po/shotwell-core/hu.po -R100 po/shotwell/id.po po/shotwell-core/id.po -R100 po/shotwell/it.po po/shotwell-core/it.po -R100 po/shotwell/ja.po po/shotwell-core/ja.po -R100 po/shotwell/kk.po po/shotwell-core/kk.po -R100 po/shotwell/ko.po po/shotwell-core/ko.po -R100 po/shotwell/lt.po po/shotwell-core/lt.po -R100 po/shotwell/lv.po po/shotwell-core/lv.po -R100 po/shotwell/mk.po po/shotwell-core/mk.po -R100 po/shotwell/nb.po po/shotwell-core/nb.po -R100 po/shotwell/nl.po po/shotwell-core/nl.po -R100 po/shotwell/pa.po po/shotwell-core/pa.po -R100 po/shotwell/pl.po po/shotwell-core/pl.po -R100 po/shotwell/pt.po po/shotwell-core/pt.po -R100 po/shotwell/pt_BR.po po/shotwell-core/pt_BR.po -R100 po/shotwell/ro.po po/shotwell-core/ro.po -R100 po/shotwell/ru.po po/shotwell-core/ru.po -R100 po/shotwell/shotwell.pot po/shotwell-core/shotwell.pot -R100 po/shotwell/sk.po po/shotwell-core/sk.po -R100 po/shotwell/sl.po po/shotwell-core/sl.po -R100 po/shotwell/sr.po po/shotwell-core/sr.po -R100 po/shotwell/sv.po po/shotwell-core/sv.po -R100 po/shotwell/ta.po po/shotwell-core/ta.po -R100 po/shotwell/te.po po/shotwell-core/te.po -R100 po/shotwell/th.po po/shotwell-core/th.po -R100 po/shotwell/tr.po po/shotwell-core/tr.po -R100 po/shotwell/uk.po po/shotwell-core/uk.po -R100 po/shotwell/zh_CN.po po/shotwell-core/zh_CN.po -R100 po/shotwell/zh_TW.po po/shotwell-core/zh_TW.po - -commit 26a6e0977686f80e4cbc35ebd1f75369e1721ece -Author: Lucas Stephen Beeler -Date: Wed May 4 12:17:53 2011 -0700 - - Phase 3 of the forking of the shotwell translation namespace. - -M po/shotwell/ar.po -M po/shotwell/ast.po -M po/shotwell/bg.po -M po/shotwell/bn.po -M po/shotwell/ca.po -M po/shotwell/cs.po -M po/shotwell/da.po -M po/shotwell/de.po -M po/shotwell/el.po -M po/shotwell/en_GB.po -M po/shotwell/es.po -M po/shotwell/et.po -M po/shotwell/eu.po -M po/shotwell/fi.po -M po/shotwell/fr.po -M po/shotwell/gl.po -M po/shotwell/he.po -M po/shotwell/hr.po -M po/shotwell/hu.po -M po/shotwell/id.po -M po/shotwell/it.po -M po/shotwell/ja.po -M po/shotwell/kk.po -M po/shotwell/ko.po -M po/shotwell/lt.po -M po/shotwell/lv.po -M po/shotwell/mk.po -M po/shotwell/nb.po -M po/shotwell/nl.po -M po/shotwell/pa.po -M po/shotwell/pl.po -M po/shotwell/pt.po -M po/shotwell/pt_BR.po -M po/shotwell/ro.po -M po/shotwell/ru.po -M po/shotwell/sk.po -M po/shotwell/sl.po -M po/shotwell/sr.po -M po/shotwell/sv.po -M po/shotwell/ta.po -M po/shotwell/te.po -M po/shotwell/th.po -M po/shotwell/tr.po -M po/shotwell/uk.po -M po/shotwell/zh_CN.po -M po/shotwell/zh_TW.po - -commit f4c317a2ccf62ffeccfc4bfc8bff5db005d18c9c -Author: Lucas Stephen Beeler -Date: Tue May 3 18:45:24 2011 -0700 - - Stage 2 of previously mentioned directory hierarchy restructuring - -A po/shotwell-extras/shotwell-extras.pot -A po/shotwell/ar.po -A po/shotwell/ast.po -A po/shotwell/bg.po -A po/shotwell/bn.po -A po/shotwell/ca.po -A po/shotwell/cs.po -A po/shotwell/da.po -A po/shotwell/de.po -A po/shotwell/el.po -A po/shotwell/en_GB.po -A po/shotwell/es.po -A po/shotwell/et.po -A po/shotwell/eu.po -A po/shotwell/fi.po -A po/shotwell/fr.po -A po/shotwell/gl.po -A po/shotwell/he.po -A po/shotwell/hr.po -A po/shotwell/hu.po -A po/shotwell/id.po -A po/shotwell/it.po -A po/shotwell/ja.po -A po/shotwell/kk.po -A po/shotwell/ko.po -A po/shotwell/lt.po -A po/shotwell/lv.po -A po/shotwell/mk.po -A po/shotwell/nb.po -A po/shotwell/nl.po -A po/shotwell/pa.po -A po/shotwell/pl.po -A po/shotwell/pt.po -A po/shotwell/pt_BR.po -A po/shotwell/ro.po -A po/shotwell/ru.po -A po/shotwell/shotwell.pot -A po/shotwell/sk.po -A po/shotwell/sl.po -A po/shotwell/sr.po -A po/shotwell/sv.po -A po/shotwell/ta.po -A po/shotwell/te.po -A po/shotwell/th.po -A po/shotwell/tr.po -A po/shotwell/uk.po -A po/shotwell/zh_CN.po -A po/shotwell/zh_TW.po - -commit c084b7554fa59704454496c4430647a7df36df56 -Author: Lucas Stephen Beeler -Date: Tue May 3 18:43:06 2011 -0700 - - Restructured po/ directory hierarchy to support a separate - shotwell-extras translation domain - -D po/ar.po -D po/ast.po -D po/bg.po -D po/bn.po -D po/ca.po -D po/cs.po -D po/da.po -D po/de.po -D po/el.po -D po/en_GB.po -D po/es.po -D po/et.po -D po/eu.po -D po/fi.po -D po/fr.po -D po/gl.po -D po/he.po -D po/hr.po -D po/hu.po -D po/id.po -D po/it.po -D po/ja.po -D po/kk.po -D po/ko.po -D po/lt.po -D po/lv.po -D po/mk.po -D po/nb.po -D po/nl.po -D po/pa.po -D po/pl.po -D po/pt.po -D po/pt_BR.po -D po/ro.po -D po/ru.po -A po/shotwell-extras/ar.po -A po/shotwell-extras/ast.po -A po/shotwell-extras/bg.po -A po/shotwell-extras/bn.po -A po/shotwell-extras/ca.po -A po/shotwell-extras/cs.po -A po/shotwell-extras/da.po -A po/shotwell-extras/de.po -A po/shotwell-extras/el.po -A po/shotwell-extras/en_GB.po -A po/shotwell-extras/es.po -A po/shotwell-extras/et.po -A po/shotwell-extras/eu.po -A po/shotwell-extras/fi.po -A po/shotwell-extras/fr.po -A po/shotwell-extras/gl.po -A po/shotwell-extras/he.po -A po/shotwell-extras/hr.po -A po/shotwell-extras/hu.po -A po/shotwell-extras/id.po -A po/shotwell-extras/it.po -A po/shotwell-extras/ja.po -A po/shotwell-extras/kk.po -A po/shotwell-extras/ko.po -A po/shotwell-extras/lt.po -A po/shotwell-extras/lv.po -A po/shotwell-extras/mk.po -A po/shotwell-extras/nb.po -A po/shotwell-extras/nl.po -A po/shotwell-extras/pa.po -A po/shotwell-extras/pl.po -A po/shotwell-extras/pt.po -A po/shotwell-extras/pt_BR.po -A po/shotwell-extras/ro.po -A po/shotwell-extras/ru.po -A po/shotwell-extras/sk.po -A po/shotwell-extras/sl.po -A po/shotwell-extras/sr.po -A po/shotwell-extras/sv.po -A po/shotwell-extras/ta.po -A po/shotwell-extras/te.po -A po/shotwell-extras/th.po -A po/shotwell-extras/tr.po -A po/shotwell-extras/uk.po -A po/shotwell-extras/zh_CN.po -A po/shotwell-extras/zh_TW.po -D po/shotwell.pot -D po/sk.po -D po/sl.po -D po/sr.po -D po/sv.po -D po/ta.po -D po/te.po -D po/th.po -D po/tr.po -D po/uk.po -D po/zh_CN.po -D po/zh_TW.po - -commit e6f575bde46a19b087115470b7793aefa55a009c -Author: Clint Rogers -Date: Thu May 5 15:29:16 2011 -0700 - - This addresses #3482 by allowing more exotic crop aspect ratios. - - It also makes Box smarter by allowing it to handle invalid arguments - to its - constructor gracefully, rather than just exceptioning out. - -M src/Box.vala -M src/EditingTools.vala -M src/Photo.vala - -commit c8cd8f4ee5722b8a8f53b940206ee8e2873dd55b -Author: Clint Rogers -Date: Tue May 3 15:31:06 2011 -0700 - - This fixes #3466 by adding a handler for keypress events on KP_Enter - and connecting to it. - -M src/EditingTools.vala - -commit b676dc80e3542c56daec9d5216350e452a7ae151 -Author: Eric Gregory -Date: Mon May 2 19:12:14 2011 -0700 - - 3528 keyboard mnemonics in New Search dialog - -M ui/shotwell.glade - -commit 316657f7e4537495d0bdd1e8ba04de7204e0a86b -Author: Eric Gregory -Date: Fri Apr 29 17:45:20 2011 -0700 - - 3530 Delete key on sidebar can remove a saved search - -M src/searches/Branch.vala - -commit f1847bcb16c1b804dce5254507353fc6bd185ad1 -Author: Eric Gregory -Date: Mon May 2 18:38:56 2011 -0700 - - 3439 video thumbnailer: missing file from previous commit - -A thumbnailer/shotwell-video-thumbnailer.vala - -commit 661313b1a07d26b3784fab6fa241a737cd321580 -Author: Eric Gregory -Date: Mon May 2 18:36:07 2011 -0700 - - 3511 search editing and 3558 search criteria removed when search - deleted - -M src/Resources.vala -M src/db/SavedSearchDBTable.vala -M src/searches/SavedSearchDialog.vala -M src/searches/SavedSearchPage.vala -M src/searches/SearchBoolean.vala -M ui/savedsearch.ui - -commit 53ce5e3b6cc69dbe83e40c2119be101569e411c0 -Author: Eric Gregory -Date: Mon May 2 18:18:34 2011 -0700 - - 2999 panic if db is read-only - -M src/db/DatabaseTable.vala - -commit 96fe5e59724bd3592add9ebcf073f6c464d77ff0 -Merge: ed6a2f1f 7c4d4ee5 -Author: Eric Gregory -Date: Mon May 2 17:50:33 2011 -0700 - - Merge branch 'master' of ssh://yorba.org/git/shotwell - -commit ed6a2f1f486b3d400cff63f3d6a866ab6144ae95 -Author: Eric Gregory -Date: Mon May 2 17:50:09 2011 -0700 - - 3439 shotwell-video-thumbnailer replaces Totem depedency - -M .gitignore -M Makefile -M debian/control -M src/AppDirs.vala -M src/VideoSupport.vala - -commit 7c4d4ee59917dd0ef7ead3d8d93df3bcd032c2bb -Author: Vera Yin -Date: Mon May 2 17:49:49 2011 -0700 - - Translation updates. - -M THANKS -M po/ca.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/eu.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/he.po -M po/hr.po -M po/hu.po -M po/it.po -M po/ja.po -M po/kk.po -M po/ko.po -M po/nb.po -M po/nl.po -M po/pl.po -M po/pt.po -M po/pt_BR.po -M po/ro.po -M po/sr.po -M po/sv.po -M po/ta.po -M po/te.po -M po/th.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit faab91e51e412dc7bca6e07de683009108e62716 -Author: Eric Gregory -Date: Thu Apr 28 19:17:44 2011 -0700 - - 3541 Crash while adjusting ratings in single photo view - - The single photo view's parent ViewCollection no longer had the - photo after changing its rating, so it could not be selected - when switching between photos. Solved by creating a new version - of get_view_for_source() that respects view filtering (called - get_view_for_source_filtered()) - -M src/PhotoPage.vala -M src/core/ViewCollection.vala - -commit 5e27ed1fc4a4630d18aeffa22e73383b48d2a869 -Author: Lucas Beeler -Date: Wed Apr 27 16:19:25 2011 -0700 - - Fixes a crash introduced during the sidebar refactoring. Closes - #3531. Introduces additional sidebar safety checks. - -M src/sidebar/Branch.vala - -commit 6f67991eedc41a539a1d44e4697476b6d8537019 -Author: Lucas Beeler -Date: Wed Apr 27 15:08:08 2011 -0700 - - Fixes an issue where context-clicking the Trash would cause a - segfault. Closes #3507. - -M src/library/TrashBranch.vala - -commit 83be41c703c2915a921a6f67f2d89feec6e0b6b9 -Author: Eric Gregory -Date: Wed Apr 27 14:27:12 2011 -0700 - - 3527 ctrl-s shortcut - -M src/library/LibraryWindow.vala -M ui/photo.ui - -commit 6ee765e2abab61ac36afa6cb8d76224daa9e85d3 -Author: Eric Gregory -Date: Tue Apr 26 18:14:00 2011 -0700 - - 3545 simplified rating and flagged language - -M src/searches/SavedSearchDialog.vala - -commit 05e787ef12fe4cac190f73e275af4c3eda9b32c9 -Author: Eric Gregory -Date: Tue Apr 26 13:14:40 2011 -0700 - - 3551 "none" search option - -M src/searches/SavedSearchDialog.vala -M src/searches/SearchBoolean.vala - -commit b807fdcb03b1e825b8f8e5f2006427e03880b2a6 -Author: Eric Gregory -Date: Tue Apr 26 13:35:01 2011 -0700 - - 3543 moved new search to edit menu - -M ui/events_directory.ui -M ui/media.ui -M ui/offline.ui -M ui/trash.ui - -commit 816f6ec60aa15a3c6a6f514b2609404cdeb490b9 -Author: Clint Rogers -Date: Tue Apr 26 13:34:58 2011 -0700 - - This fixes #3066 by adding support for the ability to change the - exposure date of a video file (in the database only, currently). - -M src/CollectionPage.vala -M src/Commands.vala -M src/Dialogs.vala -M src/MediaInterfaces.vala -M src/Photo.vala -M src/VideoSupport.vala - -commit bf6a76134ff4404e0c84c700e7c67637ec46d9c9 -Author: Lucas Beeler -Date: Tue Apr 26 13:05:51 2011 -0700 - - Removes the GNOME vfs dependency from the Makefile and debian/control - file. - -M Makefile -M debian/control - -commit 624f827c21cff6faf1d3920f0a2be0bcb689ceb1 -Author: Benedikt Sauer -Date: Tue Apr 26 12:57:36 2011 -0700 - - Enables elimination of GNOME vfs dependency. Special thanks to - Benedikt Sauer. - -M THANKS -M src/VideoSupport.vala - -commit 942b72648042d4643e8acd977f0816f2b6a5a64d -Author: Valentín Barros -Date: Thu Apr 14 22:23:06 2011 +0200 - - Fix to #2613 (event photos appear pixellated). - -M src/Photo.vala - -commit 572db9b31ace42cdab81dbedf9d2d84826ede68e -Author: Valentín Barros -Date: Tue Apr 26 12:41:15 2011 -0700 - - Fixes an issue in which menu labels failed to update when the name - of a tag was changed. Special thanks to Valentin Barros. - -M src/tags/TagPage.vala - -commit 1501a35470b79258ee2b7253a84c18814f06acd1 -Author: Lucas Beeler -Date: Tue Apr 26 12:35:13 2011 -0700 - - Added Valentín Barros to the THANKS file. - -M THANKS - -commit 7f7ec52a268eca3b7e7af57d32f88cd6bf9d991a -Author: Valentín Barros -Date: Tue Apr 26 12:25:49 2011 -0700 - - Adds tabs to and rearranges the Preferences dialog so that it fits - comfortably on netbook screens. Special thanks to Valentín Barros. - -M ui/shotwell.glade - -commit a69a2467b430fbab3db42954e9f0b16114136632 -Author: Eric Gregory -Date: Mon Apr 25 19:14:53 2011 -0700 - - 3517 boolean search by flagged and rating - -M src/Resources.vala -M src/db/SavedSearchDBTable.vala -M src/searches/SavedSearchDialog.vala -M src/searches/SearchBoolean.vala - -commit 206e7c259d4f5ed3294c1964f8e03bb5928575f6 -Author: Marcel Stimberg -Date: Mon Apr 25 19:00:02 2011 -0700 - - Fixes an issue with using internationalized characters in tags. Closes - #2612. Special thanks to Marcel Stimberg. - -M src/Dialogs.vala - -commit 2e93f617f293bb41a1021b0955b7c1effe433333 -Author: Jim Nelson -Date: Wed Mar 23 00:35:52 2011 +0000 - - #3397: If video file in a container our metadata reader doesn't - recognize and the user is copying on import, the file will not - be imported. Fixed by Tobias Rapp. - -M THANKS -M src/LibraryFiles.vala - -commit a40fbe3f987dfa74ae45d10c427b4f0668f277f5 -Author: Eric Gregory -Date: Wed Apr 20 18:31:06 2011 -0700 - - 3514 enter is the same as hitting OK in search box - -M src/searches/SavedSearchDialog.vala - -commit 4999a561b23f7b58ced5d690e34a8369e9397a78 -Author: Eric Gregory -Date: Thu Apr 21 19:00:44 2011 -0700 - - updated version numbers, news, and changelog following 0.9.3 - -M Makefile -M NEWS -M debian/changelog -M po/shotwell.pot - -commit f7e761752fa61b0afb94583c835738c86b997068 -Merge: 0e810be0 be61743b -Author: Lucas Beeler -Date: Thu Apr 21 13:12:00 2011 -0700 - - Merge branch 'DesktopHotfix' - -commit be61743b19467ef45a688d8ca6467b6daf492616 -Author: Lucas Beeler -Date: Thu Apr 21 12:54:17 2011 -0700 - - Preliminary fix for #3532. Will have Vera pull and verify. - -M src/Config.vala - -commit 0e810be0f45757842686af5e82ab3d332a0c7458 -Merge: 60c59ae4 56da5c08 -Author: Eric Gregory -Date: Wed Apr 20 16:31:32 2011 -0700 - - Merge branch '3513' - -commit 60c59ae487372840af4b343320d5119c782cc483 -Author: Eric Gregory -Date: Wed Apr 20 12:54:20 2011 -0700 - - 3506 corrected version # - -M Makefile - -commit 81f0dffd8e372722e327cf991c1416b4e7e5827b -Author: Vera Yin -Date: Wed Apr 20 12:44:27 2011 -0700 - - Edited THANKS. - -M THANKS - -commit 91bdc9832f495a3eb1ee954c6e1f7931c3940caa -Author: Vera Yin -Date: Wed Apr 20 12:26:07 2011 -0700 - - Updated Estonian and Latvian translations. - -M po/et.po -M po/lv.po - -commit 1b7f1c654fb8479665e6f402ecd32fbd04e32ecf -Author: Adam Dingle -Date: Wed Apr 20 10:04:26 2011 -0700 - - Shortened a Russian string that was too long. Fixes #3495. - -M po/ru.po - -commit d4cd7fbd59e02403ce331eec0719756956af0cee -Merge: bad6f3d4 a1f2d406 -Author: Vera Yin -Date: Tue Apr 19 19:54:57 2011 -0700 - - Merge branch 'master' of yorba.org:/git/shotwell - -commit bad6f3d45d47357e9ee9dcffd1c9010b3bc0880c -Author: Vera Yin -Date: Tue Apr 19 19:54:17 2011 -0700 - - Updated import directory (year, month, day) translations. - -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/eu.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/he.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/kk.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/mk.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/pt_BR.po -M po/ro.po -M po/ru.po -M po/shotwell.pot -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/ta.po -M po/te.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit 56da5c08f63b35fc4fff6897ed6d26dc24c89c2f -Author: Eric Gregory -Date: Tue Apr 19 16:29:55 2011 -0700 - - removed some unecessary code - -M src/searches/SavedSearchDialog.vala - -commit 9bae9f9d3f95eeaf825013ecd487f517b35b8fce -Merge: 8d3bc465 a1f2d406 -Author: Eric Gregory -Date: Tue Apr 19 16:16:51 2011 -0700 - - Merge branch 'master' into 3513 - -commit 8d3bc4652c6196be349aa19fc82d7695aca8c7b1 -Author: Eric Gregory -Date: Tue Apr 19 15:56:43 2011 -0700 - - saved search: by media type - -M src/db/SavedSearchDBTable.vala -M src/searches/SavedSearchDialog.vala -M src/searches/SearchBoolean.vala - -commit a1f2d40675e42108d84024d89a39f8e1d4587859 -Author: Lucas Beeler -Date: Tue Apr 19 15:43:55 2011 -0700 - - Changed a string in the Commonwealth English (en_GB) translation - that was non-sensical. Closes #3500. - -M po/en_GB.po - -commit 2540112134bd6c7143c030d341692bd177f4ae0e -Author: Lucas Beeler -Date: Tue Apr 19 15:19:28 2011 -0700 - - Displays the event name and the event date range only once if they're - the same. Closes #3512. - -M src/events/EventDirectoryItem.vala - -commit 747faf7661410833e3334b612ed779017e7f44fe -Author: Lucas Beeler -Date: Tue Apr 19 14:39:11 2011 -0700 - - Adds GSettings adapter support to the Config module. Via GSettings, - we can now set the desktop background on GNOME 3 systems. Fixes #3496. - -M src/Config.vala - -commit 2e527c986c896835824cefb8f780de715220e645 -Author: Lucas Beeler -Date: Mon Apr 18 15:34:59 2011 -0700 - - Refixed #3501 in the wake of a little git snafu. - -M src/MimicManager.vala - -commit 8f66a0a07b014579ad28a8124e7d807587836d4c -Author: Lucas Beeler -Date: Tue Apr 19 12:29:32 2011 -0700 - - Test commit. - -M NEWS - -commit 4803854e948bb4ccd1a830e82c6c3a7ef82bbcce -Author: Adam Dingle -Date: Tue Apr 19 08:03:08 2011 -0700 - - Listed Lucas as Shotwell maintainer. - -M MAINTAINERS - -commit 22e17f3a80d9941abb01409821a367605fe70905 -Author: Eric Gregory -Date: Mon Apr 18 16:42:56 2011 -0700 - - non-working changes - -M src/searches/SearchBoolean.vala - -commit 22bdb60e88140f3b1b4878788d6ef9630aaf3dab -Merge: 350d7ce6 23a8a0ab -Author: Eric Gregory -Date: Mon Apr 18 12:53:09 2011 -0700 - - Merge branch 'foo' into 1587-recover - -commit 23a8a0ab235c2890ec8d3af896f490a8e8ccacd5 -Author: Adam Dingle -Date: Sat Apr 16 07:23:25 2011 -0700 - - Revert "#2987: GnomeVFS dependency eliminated. Courtesy Jon Dill." - That proposed fix broke video importing from cameras. - - This reverts commit 5e3535bd8896fb23f75900e1ab04c139c9e10a6e. - -M Makefile -M THANKS -M debian/control -M src/VideoSupport.vala - -commit 350d7ce6c260181c8ec1391cb1975dcd07eb29da -Author: Eric Gregory -Date: Fri Apr 15 16:23:36 2011 -0700 - - fixes recommended by lucas - -M src/searches/SearchBoolean.vala -M ui/events_directory.ui -M ui/media.ui -M ui/offline.ui -M ui/trash.ui - -commit 792ca40c37337a099a3df2e61e585c2b355186f0 -Author: Eric Gregory -Date: Fri Apr 15 15:35:08 2011 -0700 - - initial commit for 1587 - -M src/Commands.vala -M src/Dialogs.vala -M src/Resources.vala -A src/db/SavedSearchDBTable.vala -M src/db/mk/db.mk -M src/library/LibraryWindow.vala -M src/library/mk/library.mk -A src/searches/Branch.vala -A src/searches/SavedSearchDialog.vala -A src/searches/SavedSearchPage.vala -A src/searches/SearchBoolean.vala -A src/searches/Searches.vala -C084 src/db/mk/db.mk src/searches/mk/searches.mk -M src/util/ui.vala -M ui/media.ui -M ui/photo.ui -A ui/savedsearch.ui -M ui/shotwell.glade -M units.mk - -commit 4b2232c927c7a14c84d95ed2c70b067e647c30c3 -Author: Eric Gregory -Date: Thu Apr 14 13:07:50 2011 -0700 - - adding gitignore - -A .gitignore - -commit 22be1e0a1ab66861ffea0c8694328c1ae1ea86fa -Author: Eric Gregory -Date: Wed Apr 13 19:18:09 2011 +0000 - - #3369 removes plugin warning - (note: my last commit was actually for removing page.get_controller(), - not for the plugin warning. sorry for the confusion!) - -M src/plugins/Plugins.vala - -commit d5812595dcacd005e696216ee577ec2fae3c6a63 -Author: Eric Gregory -Date: Wed Apr 13 18:57:30 2011 +0000 - - #3450 removed plugin warning - -M src/Page.vala -M src/PhotoPage.vala -M src/direct/DirectPhotoPage.vala - -commit 8dc4a523e5c94e62b97da873ff6c102c50e45b3e -Author: Lucas Beeler -Date: Wed Apr 13 17:51:33 2011 +0000 - - Properly marks several strings in the preferences dialog for - translation. Closes #3497. - -M src/Dialogs.vala - -commit 07bc85d1e1543cf854f3a4044c48537a5527a37e -Author: Eric Gregory -Date: Wed Apr 13 01:25:38 2011 +0000 - - merging in news/changelog from 0.9.2 - -M NEWS -M debian/changelog - -commit 050986ed346bf52f89b3095b6153c7f51544f0c3 -Author: Lucas Beeler -Date: Tue Apr 12 21:08:39 2011 +0000 - - The Makefile no longer uses GNU-style defines when invoking m4 macros - for compatibility with BSD systems. Closes #3493. - -M Makefile - -commit 5383a445d0a72d0a7445d6a9a87da4b23e6a2894 -Author: Eric Gregory -Date: Tue Apr 12 20:43:47 2011 +0000 - - #3490 search bar now appears when a rating filter is selected - -M src/SearchFilter.vala -M src/library/LibraryWindow.vala - -commit 1e3a677bea6754bf616de8ea56e2edcd5fea07d8 -Author: Lucas Beeler -Date: Tue Apr 12 18:34:45 2011 +0000 - - Potentially fixes bug #3489; Vera will verify if this fix works. - -M src/MetadataWriter.vala - -commit 4fc25df4da71ab838e95221ab942790be88b4fa2 -Author: Lucas Beeler -Date: Fri Apr 8 00:13:18 2011 +0000 - - Fixes an issue in which text could get cut off in several dialog - panes. Closes #3476. - -M plugins/shotwell-publishing/PicasaPublishing.vala -M src/WebConnectors.vala - -commit d65e225ac3d671c34c2dec528bf69914d4601657 -Author: Lucas Beeler -Date: Thu Apr 7 22:41:27 2011 +0000 - - Re-closes bug #3475. - -M plugins/common/RESTSupport.vala - -commit 93e61d4278056795dc2eb4f8e4824185200fe2e5 -Author: Lucas Beeler -Date: Thu Apr 7 20:33:04 2011 +0000 - - Properly encodes the ampersand when doing XML decimal entity encoding - for GData-based services. Closes #3475. - -M plugins/common/RESTSupport.vala - -commit 9dab1549b15e9ec24dee9f34ad687ea4ab67fd72 -Author: Lucas Beeler -Date: Thu Apr 7 20:10:02 2011 +0000 - - Fixes a serious build system issue in which the name of the - translation file search directory wasn't properly being passed from - a Makefile variable to a compiler #define. Closes #3478. - -M Makefile - -commit ed99e18d95f7b5393b7898d696bef5771f1af574 -Author: Lucas Beeler -Date: Wed Apr 6 02:33:44 2011 +0000 - - Fixes a bug in which some publishing operations would continue even - after the user had cancelled publishing. Closes #3472. - -M src/publishing/PublishingPluginHost.vala - -commit 0ddec7cf10ead511662853a662ceb8faca87146d -Author: Lucas Beeler -Date: Wed Apr 6 02:09:25 2011 +0000 - - Fixes a critical publishing bug. Closes #3471. - -M plugins/common/RESTSupport.vala -M src/publishing/APIGlue.vala - -commit e96a63ac1a2a56a2402455140a8e6bd78c1816ab -Author: Lucas Beeler -Date: Wed Apr 6 01:49:27 2011 +0000 - - Fixes a serious publishing regression affecting publishing a photo - in the single-photo (aka "full window") view. Closes #3470. - -M src/PhotoPage.vala - -commit b2c1b90d770231f61b1ca45ce0bd31377bf0b330 -Author: Clinton Rogers -Date: Wed Apr 6 01:39:14 2011 +0000 - - This fixes 3457 by making the 'unable to publish' dialog - HIG-compliant, and adding a workaround the problem where - Gtk.MessageDialog.with_markup() doesn't seem to work. - -M src/AppWindow.vala -M src/WebConnectors.vala - -commit 62e065397791ae56080a5a976880e1d723044ac3 -Author: Clinton Rogers -Date: Wed Apr 6 00:33:25 2011 +0000 - - Made alert dialogs comply with GNOME HIG - -M src/AppWindow.vala -M src/Dialogs.vala - -commit 10356182da8864869bc393473551b68d09ae4263 -Author: Eric Gregory -Date: Tue Apr 5 02:51:05 2011 +0000 - - merging changes from 0.9.1 - -M NEWS -M debian/changelog - -commit b6a03414b8dadcae86a277059daf83be4ba00fe4 -Author: Lucas Beeler -Date: Tue Apr 5 00:34:14 2011 +0000 - - Adds the REQUIRED_CFLAGS to the Makefile, which forces the setting - of the PIC flag on 64-bit systems. - -M Makefile - -commit 20a22dcd49c55ed3b809655b08d3aeedd79733b7 -Author: Jim Nelson -Date: Mon Apr 4 23:01:51 2011 +0000 - - If CFLAGS was set externally (environment variable, command-line, - or in configure.mk) we want to honor those flags. However, the code - to do that also cleared all flags passed to the plugins. This fixes - that problem. - -M Makefile - -commit 27145ea952b8f5a0d07392e2187813e56dc6b689 -Author: Lucas Beeler -Date: Fri Apr 1 18:52:44 2011 +0000 - - Fixes a quibble one of the Fedora guys mentioned with the way we - were naming the system library directory name option in our configure - script. Re-closes #3421. - -M configure - -commit 43d67a205f7a73bda4a1a17fe24a1acd54492c1f -Author: Lucas Beeler -Date: Fri Apr 1 18:46:41 2011 +0000 - - Fixes a regression in which the Flickr publisher wouldn't properly - log the user out if the user's session key had expired. Closes #3442. - -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit ea28c360ead67eac98fece9d9da88b3a7723f393 -Author: Lucas Beeler -Date: Fri Apr 1 18:27:43 2011 +0000 - - Following McCann's suggestion for better compliance with GNOME 3 - naming standards, shortens the application name in the desktop files - for both the manager and viewer. - -M Makefile -M misc/shotwell-viewer.desktop.head -M misc/shotwell.desktop.head - -commit 95b13510e94f3aef1a178ecf4c877b7881d39f0d -Author: Vera Yin -Date: Fri Apr 1 17:47:23 2011 +0000 - - Updated translations. - -M po/ta.po -M po/te.po - -commit aae7fc3fd0dc335b6e78298155cf2e6d33e93a4e -Author: Jim Nelson -Date: Fri Apr 1 08:54:55 2011 +0000 - - Taking advantage of the new units in the last commit, I've moved - some of the pages into their appropriate units. - -M Makefile -R100 src/CameraTable.vala src/camera/CameraTable.vala -R100 src/GPhoto.vala src/camera/GPhoto.vala -R089 src/ImportPage.vala src/camera/ImportPage.vala -M src/camera/mk/camera.mk -A src/events/EventDirectoryItem.vala -A src/events/EventPage.vala -R050 src/EventsDirectoryPage.vala -src/events/EventsDirectoryPage.vala -M src/events/mk/events.mk -R100 src/FlaggedPage.vala src/library/FlaggedPage.vala -A src/library/ImportQueuePage.vala -R100 src/LastImportPage.vala src/library/LastImportPage.vala -R100 src/OfflinePage.vala src/library/OfflinePage.vala -R100 src/TrashPage.vala src/library/TrashPage.vala -M src/library/mk/library.mk -R100 src/TagPage.vala src/tags/TagPage.vala -M src/tags/mk/tags.mk - -commit dd601ce7cefe0746ebdb50e400f7b4f9de567e09 -Author: Jim Nelson -Date: Fri Apr 1 08:33:40 2011 +0000 - - Sidebar refactoring. Large commit, to be sure, but this should - make it much easier to manage the sidebar going into the future as - well as put the intelligence for managing each branch in a separate - compartment, where it belongs. Other minor bugs were discovered - while testing the code, fixed as well. - -M Makefile -M src/CollectionPage.vala -M src/Commands.vala -M src/Config.vala -M src/Dialogs.vala -M src/EventsDirectoryPage.vala -M src/FlaggedPage.vala -M src/ImportPage.vala -M src/LastImportPage.vala -M src/MediaPage.vala -M src/OfflinePage.vala -M src/Page.vala -M src/PhotoPage.vala -M src/SearchFilter.vala -D src/Sidebar.vala -M src/TagPage.vala -M src/TrashPage.vala -A src/camera/Branch.vala -C077 src/library/Library.vala src/camera/Camera.vala -C085 src/library/mk/library.mk src/camera/mk/camera.mk -M src/core/Tracker.vala -M src/core/ViewCollection.vala -A src/events/Branch.vala -C077 src/library/Library.vala src/events/Events.vala -C085 src/library/mk/library.mk src/events/mk/events.mk -A src/library/Branch.vala -A src/library/FlaggedBranch.vala -A src/library/ImportQueueBranch.vala -A src/library/LastImportBranch.vala -M src/library/Library.vala -M src/library/LibraryWindow.vala -A src/library/OfflineBranch.vala -A src/library/TrashBranch.vala -M src/library/mk/library.mk -A src/sidebar/Branch.vala -A src/sidebar/Entry.vala -C092 src/library/Library.vala src/sidebar/Sidebar.vala -A src/sidebar/Tree.vala -A src/sidebar/common.vala -C084 src/library/mk/library.mk src/sidebar/mk/sidebar.mk -A src/tags/Branch.vala -C075 src/library/Library.vala src/tags/Tags.vala -C085 src/library/mk/library.mk src/tags/mk/tags.mk -M units.mk - -commit 72aad88f57630886a7b021a101a316721db88663 -Author: Lucas Beeler -Date: Thu Mar 31 21:17:50 2011 +0000 - - Allows configuring the name of the system library directory at build - time. Closes #3421. - -M Makefile -M configure -M shotwell-plugin-dev-1.0.m4 -M src/AppDirs.vala -M src/Resources.vala - -commit cc92de41e670923ea5f63ec0364f8bfa1e217424 -Author: Jim Nelson -Date: Thu Mar 31 21:07:53 2011 +0000 - - #3453: Undated event producing "(null)" in the date range UI field. - -M src/EventsDirectoryPage.vala - -commit 6cd22f39e298a157bdc208480780dd9674ea059a -Author: Lucas Beeler -Date: Thu Mar 31 21:07:46 2011 +0000 - - Fixes an appearance regression in which the red-eye rectangle was - not drawn correctly. Closes #3434. - -M src/EditingTools.vala - -commit 53f99ea4fc8954aa7fd9dae29af745b23aba4ae1 -Author: Jim Nelson -Date: Thu Mar 31 20:53:07 2011 +0000 - - #3436: Compiz packaged with Natty revealed bug in tool window - placement code. - -M src/PhotoPage.vala - -commit d221a53e35640576cc996b0ac75a92aee9b66381 -Author: Vera Yin -Date: Thu Mar 31 03:54:54 2011 +0000 - - Updated translations. - -M Makefile -M THANKS -M po/et.po -M po/fr.po -M po/ja.po -M po/ru.po -C095 po/te_IN.po po/ta.po -R100 po/te_IN.po po/te.po -M po/th.po -M po/tr.po - -commit 993b8d6bc8d6511433a0917cb936c1fc7ebf9ccb -Author: Lucas Beeler -Date: Thu Mar 31 02:10:29 2011 +0000 - - Fixes #3413. - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit 33f59099ad5eec3836b07a4253a9542f786e0e93 -Author: Jim Nelson -Date: Wed Mar 30 17:14:26 2011 +0000 - - #3437: Plugins will now build with -O0 with ./configure --debug - -M Makefile -M plugins/Makefile -M plugins/Makefile.plugin.mk - -commit 7787d12f53ffe386fc90cc5078681a5a25816fd5 -Author: Lucas Beeler -Date: Tue Mar 29 22:21:51 2011 +0000 - - Closes #3412. - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit fb4e6a5bd03c60fb9b08f03c98a4fbe979513353 -Author: Clinton Rogers -Date: Mon Mar 28 20:32:34 2011 +0000 - - This addresses #3371 by using the absolute file and path as source - and dest identifier when making the new BatchImportResult, instead - of just using the job source and dest. - -M src/BatchImport.vala - -commit bd71d526b688c3567a77a2fb793766ae96ea4741 -Author: Clinton Rogers -Date: Mon Mar 28 20:24:57 2011 +0000 - - This fixes #3163 by adding the absolute path to the rejected file - to the newly-created BatchImportResult, rather than just the job path. - -M src/BatchImport.vala - -commit 5e3535bd8896fb23f75900e1ab04c139c9e10a6e -Author: Jim Nelson -Date: Mon Mar 28 20:14:39 2011 +0000 - - #2987: GnomeVFS dependency eliminated. Courtesy Jon Dill. - -M Makefile -M THANKS -M debian/control -M src/VideoSupport.vala - -commit bcd0f17445ececb31f7c188826869c39d565d936 -Author: Eric Gregory -Date: Thu Mar 24 18:24:52 2011 +0000 - - #3347 file import error message strings - -M src/Dialogs.vala -M src/ImportPage.vala - -commit 1f9d46faa14a77cb02c8f9959487c1e24011bf1c -Author: Clinton Rogers -Date: Wed Mar 23 23:25:14 2011 +0000 - - This fixes #3399 by making sure that, when looking for a service, - we check that it supports exactly the media we want. - -M src/WebConnectors.vala - -commit f78a88b02234bc372db175e7ba6d077ad707775d -Author: Lucas Beeler -Date: Wed Mar 23 23:16:19 2011 +0000 - - Properly handles account-not-set-up situations in the YouTube - connector. Fixes a problem in which the service selector box in - the publishing dialog could become permanently locked, preventing - service changes. Closes #3398 and #3405. - -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit bac670cf38b7c5c82f4f2c2c97fee02e8bafee91 -Author: Eric Gregory -Date: Wed Mar 23 23:14:15 2011 +0000 - - #3352 removed array copy hack needed for vala 0.10 - -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit 5704c255acb0707a18213b830107efc7c56fb294 -Author: Eric Gregory -Date: Wed Mar 23 19:00:28 2011 +0000 - - #3400 search keyword behavior on event and camera import pages - -M src/EventsDirectoryPage.vala -M src/ImportPage.vala - -commit ee821058737544c8775326e226f05bc40b2fb342 -Author: Jim Nelson -Date: Wed Mar 23 04:02:28 2011 +0000 - - Moved LibraryWindow to Library unit. - -M Makefile -R100 src/LibraryWindow.vala src/library/LibraryWindow.vala -M src/library/mk/library.mk - -commit c96effe6cec92f89aaabbd7156aec3ff50714565 -Author: Jim Nelson -Date: Wed Mar 23 03:26:33 2011 +0000 - - Created Library unit which represents Shotwell in library mode. - This and the Direct unit greatly simplifies unit initialization, - as initializing the respective unit will initialize all their - dependencies automatically. - -M Makefile -M src/VideoSupport.vala -M src/direct/mk/direct.mk -A src/library/Library.vala -C083 src/direct/mk/direct.mk src/library/mk/library.mk -M src/main.vala -M src/unit/Unit.vala -M src/unit/rc/unitize_entry.m4 -M units.mk - -commit 8783510f20d3f86b77a0a85a68879894909aeb42 -Merge: 6d6c06ca f0a46515 -Author: Jim Nelson -Date: Tue Mar 22 21:47:51 2011 +0000 - - Merged from 0.9 branch. - -commit f0a465151d83aa42bcf8bac1d4f8d714403fd930 -Author: Eric Gregory -Date: Tue Mar 22 21:43:00 2011 +0000 - - fix to m4 version - -M debian/control - -commit 6d6c06ca4b3b5e6d9ea52f438bf60837fd170a33 -Author: Clinton Rogers -Date: Tue Mar 22 20:49:06 2011 +0000 - - Fixed a duplicate mnemonic (#3386) - -M ui/shotwell.glade - -commit 1958d8e9272c851a5ffc79205dd3a1dbf5474541 -Author: Jim Nelson -Date: Tue Mar 22 20:47:24 2011 +0000 - - Updating version number for trunk after branch. - -M Makefile - -commit e625748ef4e32081d12ff46c3f373ba1ad26b78a -Merge: a5321df6 85206d1e -Author: Eric Gregory -Date: Tue Mar 22 20:45:50 2011 +0000 - - merging over changes to changelog - -commit a5321df66c168387f2faa393f67f562332983dc6 -Author: Jim Nelson -Date: Tue Mar 22 20:40:09 2011 +0000 - - Branching trunk to 0.9. - -commit 85206d1e9fba51a3e1ff7597594e45fe3249122f -Author: Eric Gregory -Date: Tue Mar 22 20:40:07 2011 +0000 - - change log updated - -M NEWS -M debian/changelog - -commit ffad6c6be777cdf375add6a731f67e2096ee5f1b -Author: Jim Nelson -Date: Tue Mar 22 20:37:03 2011 +0000 - - A file was added to the help system. - -M Makefile - -commit 1f3209f85ad2172204e107fba0c289e311dbee34 -Author: Jim Nelson -Date: Tue Mar 22 20:32:46 2011 +0000 - - #3166: Debian dependencies updated. - -M Makefile -M debian/control -M plugins/Makefile.plugin.mk - -commit fe9421e72dfaae660a1fbcf0ed51938d3c970eca -Author: Eric Gregory -Date: Tue Mar 22 20:12:55 2011 +0000 - - #3394 going to full screen accidentally reset the search bar - -M src/LibraryWindow.vala - -commit 449ee80f73b74793057c379278bda38bc0b12b50 -Author: Jim Nelson -Date: Tue Mar 22 18:53:22 2011 +0000 - - Took out some Makefile debug code. - -M plugins/Makefile -M plugins/Makefile.plugin.mk - -commit d1148b0d2daf9ae1ae235da3cd244bc6f8a2b3ff -Author: Vera Yin -Date: Tue Mar 22 18:51:02 2011 +0000 - - Translation updates. - -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/eu.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/he.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/kk.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/mk.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/pt_BR.po -M po/ro.po -M po/ru.po -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/te_IN.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit c8c6d1361d905b92cde133db70acd56a85b69cef -Author: Eric Gregory -Date: Tue Mar 22 18:47:56 2011 +0000 - - prep for 0.9: changes to makefiles, debian package, news - -M Makefile -M NEWS -M debian/changelog -M debian/control -M debian/dirs -M debian/rules -M plugins/Makefile -M plugins/Makefile.plugin.mk - -commit 55d43c414ddeed9cc05bdba905b3cff1b65be084 -Author: Jim Nelson -Date: Tue Mar 22 18:36:37 2011 +0000 - - Plugin resource files weren't being added to the tarball. - -M plugins/Makefile.plugin.mk -M plugins/shotwell-publishing-extras/Makefile -M plugins/shotwell-publishing/Makefile -M plugins/shotwell-transitions/Makefile - -commit 4fd6fce4ec1127913210f334fd310fbfa14cdbb9 -Author: Jim Nelson -Date: Tue Mar 22 02:21:03 2011 +0000 - - Removed spaces from valadoc comments that valadoc doesn't like. - -M src/plugins/SpitInterfaces.vala - -commit 5a07a4204be9bc73d82015d4cf46ea4b46d029bf -Author: Eric Gregory -Date: Mon Mar 21 23:34:07 2011 +0000 - - #3385 issue with toolbar not functioning after changing page and - toggling it on - -M src/LibraryWindow.vala - -commit e4c8553f505dfd566955cd5c6eca1e26bc5283ea -Author: Jim Nelson -Date: Mon Mar 21 23:09:29 2011 +0000 - - #3389: Logging out of Flickr attempted to go through the public - start() interface, which was interpreted as a restart, a no-no in - the publishing API. This corrects that. - -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit 87e2b14c81c48e96f2630e7dfe1f902aac0da7c5 -Author: Jim Nelson -Date: Mon Mar 21 22:40:05 2011 +0000 - - #3388: Adding tags to a lot of photos would hang the system. - Problem lies in signal reflection from DataSources to DataViews of - alterations, but "altered" signal handlers should also be examining - alterations before processing. This does the latter. - -M src/CollectionPage.vala -M src/MediaPage.vala - -commit 90ef09460e3356f4e5896b133ae36e329ef9ca1b -Author: Clinton Rogers -Date: Mon Mar 21 21:01:10 2011 +0000 - - Adds gnome-help documentation for 0.9 version. - -M help/C/edit-adjustments.page -M help/C/edit-crop.page -M help/C/edit-enhance.page -M help/C/edit-external.page -M help/C/formats.page -M help/C/import-camera.page -A help/C/organize-search.page -M help/C/other-files.page -A help/C/other-plugins.page -M help/C/share-print.page -M help/C/share-upload.page - -commit dfc0a5aa21ccebf4dce43687183a085896bded1c -Author: Jim Nelson -Date: Sun Mar 20 18:38:03 2011 +0000 - - Noticed that soft assertions were happening with BackgroundJobs - in the workers threads. This was due to a change in Vala 0.11. - This fixes that problem. - -M src/threads/Workers.vala - -commit e249c3bcb0a8a5704aaea728f2e015faa197139f -Author: Jim Nelson -Date: Sat Mar 19 00:13:19 2011 +0000 - - #3372: Fixed crop problem. Only occurred when search bar was visible, - which causes caching problems. See also #3381. - -M src/LibraryWindow.vala -M src/PhotoPage.vala -M src/PixbufCache.vala - -commit 9e49ea6409b2a18a17564f158c872637f0aa23a8 -Author: Eric Gregory -Date: Fri Mar 18 23:56:52 2011 +0000 - - added two missing icon files to makefile - -M Makefile - -commit 6b5a6b8cb87ab9b3fd2b976d99477039906928a2 -Author: Eric Gregory -Date: Fri Mar 18 22:10:50 2011 +0000 - - #3370 sidebar behavior caused by vala 0.11 - -M src/Sidebar.vala - -commit 21ec11cbc59791a1585d5659542ea5cc0f8379af -Author: Jim Nelson -Date: Fri Mar 18 19:52:26 2011 +0000 - - Related to #3366, fixed a couple of places that were using the owned - keyword where it's unnecessary or ref should be used instead. - -M src/ColorTransformation.vala -M src/Photo.vala - -commit bd1a2a82c22a0e7b358d294fec964ecb55802ecc -Author: Clinton Rogers -Date: Fri Mar 18 01:00:19 2011 +0000 - - This addresses #3162 by moving the custom directory naming blurb - from the website to this file. - -M help/C/other-files.page - -commit fbb1103129e79dc555f1c2382265aaa6e30550ae -Author: Clinton Rogers -Date: Fri Mar 18 00:58:25 2011 +0000 - - This fixes #3162 by giving us the ability to manually handle the - help link ourselves for non-system-wide help files, and the ability - to direct launch_help to try to get us a particular page, if needed. - -M src/Dialogs.vala -M src/Resources.vala - -commit f7e008547235e59de6c1ea8525ff0023be80db67 -Author: Eric Gregory -Date: Fri Mar 18 00:51:40 2011 +0000 - - #3368 youtube publishing regression - -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit cfa910a9e3cfa77d31f2f3fc88f0f8bbc9f7b4b4 -Author: Eric Gregory -Date: Fri Mar 18 00:47:12 2011 +0000 - - #3362 video thumbnailing issue (reprise) - -M src/VideoSupport.vala - -commit dbd049ab85a8ec65719574ff4515410075d14659 -Author: Jim Nelson -Date: Fri Mar 18 00:04:23 2011 +0000 - - #3366: owned keyword is causing a Pixbuf memory leak w/ 0.11.7. - Fixed. - -M src/Orientation.vala - -commit ea3879ceea875ca52c5674c9b36550b0b212326c -Author: Clinton Rogers -Date: Thu Mar 17 20:11:26 2011 +0000 - - This addresses #3367 by splitting out the mechanism that gets the - current help path into its own method. - -M src/Resources.vala - -commit a6d9144f3024f2fd4ac344ece82707674bd840dd -Author: Jim Nelson -Date: Thu Mar 17 19:07:45 2011 +0000 - - #3365: Command-line processing fixed. - -M src/main.vala - -commit 86997587dc17b843921d4e1e7d6aa3e85275a5b7 -Author: Eric Gregory -Date: Thu Mar 17 18:53:05 2011 +0000 - - #3362 fix for video thumbnailing with vala 0.11 - -M src/VideoSupport.vala -M src/util/system.vala - -commit faa44d15be76ac1a9afb8c92e555f4ce0ce019c2 -Author: Jim Nelson -Date: Thu Mar 17 18:15:33 2011 +0000 - - #3364: Desktop file didn't have the trailing semi on the mime-type - list. Courtesy Michel Alexandre Salim. - -M THANKS -M misc/shotwell-viewer.desktop.head - -commit 04df3462760ad9b5744c0e44483ce39bbb962e6a -Author: Jim Nelson -Date: Thu Mar 17 04:01:02 2011 +0000 - - #3282: Problem linking shotwell-publishing on 64-bit Maverick fixed. - -M Makefile -M plugins/Makefile.plugin.mk -M plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala -M plugins/shotwell-publishing/shotwell-publishing.vala -M plugins/shotwell-transitions/shotwell-transitions.vala - -commit 797ca0b66a4a2fda79330270838416a22d5fde0e -Author: Clinton Rogers -Date: Thu Mar 17 02:13:42 2011 +0000 - - This fixes #3260 by adding the ability to close the search bar from - a context menu. - -M src/SearchFilter.vala - -commit 9d66fad2fd233601dbebf0acd6131a6db3881a4d -Author: Lucas Beeler -Date: Thu Mar 17 01:51:06 2011 +0000 - - Fixes a fatal error that occurred when attempting to publish to - Flickr when no network connection was available. Closes #3361. - -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit d7c0a4213d5d1df6ce4c176a007efe6198d9533b -Author: Jim Nelson -Date: Thu Mar 17 01:08:16 2011 +0000 - - #3297: Fixed so progress bar appears when library is large enough. - -M src/Dialogs.vala -M src/Event.vala -M src/Photo.vala -M src/Tag.vala -M src/VideoSupport.vala -M src/main.vala - -commit 6fb19d66f903addb6b86412381fbe3e75cf4d50d -Author: Eric Gregory -Date: Wed Mar 16 23:24:57 2011 +0000 - - #3350 save flag in direct mode - -M src/direct/DirectPhoto.vala -M src/direct/DirectPhotoPage.vala - -commit ac93358561ec9fd232cdb6a806942d1545e51358 -Author: Jim Nelson -Date: Wed Mar 16 23:11:50 2011 +0000 - - #2638: Migration to Vala 0.11.7. - -M Makefile -M plugins/common/RESTSupport.vala -M plugins/shotwell-publishing-extras/YandexPublishing.vala -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -M src/AppWindow.vala -M src/BatchImport.vala -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/DesktopIntegration.vala -M src/Dialogs.vala -M src/DirectoryMonitor.vala -M src/EditingTools.vala -M src/EventsDirectoryPage.vala -M src/GPhoto.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/MediaDataRepresentation.vala -M src/MediaPage.vala -M src/OfflinePage.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/PiwigoConnector.vala -M src/Printing.vala -M src/SlideshowPage.vala -M src/Thumbnail.vala -M src/TrashPage.vala -M src/VideoMetadata.vala -M src/WebConnectors.vala -M src/alien_db/AlienDatabaseVersion.vala -M src/alien_db/f_spot/FSpotMetaTable.vala -M src/core/DataSource.vala -M src/db/TagTable.vala -M src/direct/DirectPhotoPage.vala -M src/main.vala -M src/photos/GRaw.vala -M src/photos/GdkSupport.vala -M src/photos/JfifSupport.vala -M src/photos/PhotoMetadata.vala -M src/photos/PngSupport.vala -M src/threads/BackgroundJob.vala -M src/threads/Workers.vala -M src/unit/rc/unitize_entry.m4 -M src/util/KeyValueMap.vala -M src/util/misc.vala -M src/util/string.vala - -commit 63181b1cfeb95a0c121243552162bbd4527e69ed -Author: Lucas Beeler -Date: Wed Mar 16 22:14:16 2011 +0000 - - Mutes search box icons. Closes #3256. - -A icons/searchbox-clear.svg -A icons/searchbox-find.svg -M src/Resources.vala -M src/SearchFilter.vala - -commit c2bb583caeeffd4ab018374ef8a93efd70280238 -Author: Lucas Beeler -Date: Wed Mar 16 22:12:34 2011 +0000 - - Almost dynamically changes the prelight and active colors of the - search bar buttons when the user changes the checkerboard view - background color. Closes #3276. - -M src/Config.vala -M src/SearchFilter.vala - -commit ddee73e17e6ec96cee9551a3c72d3a94932aa104 -Author: Eric Gregory -Date: Wed Mar 16 19:24:59 2011 +0000 - - #3344 search toolbar buttons are greyed-out instead of disabled - -M src/Resources.vala -M src/SearchFilter.vala -M src/util/image.vala - -commit 4ad5ca2de7afcfa251ce1b0511e48c5887c9fe90 -Author: Eric Gregory -Date: Wed Mar 16 18:02:18 2011 +0000 - - #3357 corrected folder for videos during file import - -M src/LibraryFiles.vala - -commit e9ce203ecf09cca3d721bb2516118f039658f113 -Author: Clinton Rogers -Date: Wed Mar 16 00:09:57 2011 +0000 - - This addresses #3255 by re-selecting the current photograph in - switching_from(). - -M src/PhotoPage.vala - -commit 707feb7105add855aab64e658b61bad2636d63d4 -Author: Clinton Rogers -Date: Wed Mar 16 00:02:39 2011 +0000 - - This fixes #3321 by altering the way we set the initial value of the - radio action group, as well as making sure that the events directory - page gets constructed with the proper sort setting (by making it - read from the config). - -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala - -commit 32f59a906013b536d6f8ffc3ced080703908d69c -Author: Clinton Rogers -Date: Tue Mar 15 23:59:11 2011 +0000 - - This addresses #3351 by making it so we get a photo's base name - (that is, the master filename), rather than just the name (which is - the current title) for this dialog. - -M src/direct/DirectPhotoPage.vala - -commit c7686897cf41f04e6568dab291760884de233681 -Author: Adam Dingle -Date: Tue Mar 15 23:34:53 2011 +0000 - - Fixed #3108 (ubuntu 10.10 ppa shotwell binary deb depends on - libraw-dev). - -M debian/control - -commit 9ce8e47e9f863030bba8e660ce5ff9aac1e1d8cc -Author: Vera Yin -Date: Tue Mar 15 22:47:57 2011 +0000 - - Translation updates. - -M po/da.po -M po/hr.po -M po/it.po -M po/uk.po - -commit fd7e68eacb932c0916968a2b3324232b7b910946 -Author: Vera Yin -Date: Tue Mar 15 19:56:27 2011 +0000 - - Updated translations. - -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/eu.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/he.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/kk.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/mk.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/pt_BR.po -M po/ro.po -M po/ru.po -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/te_IN.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit 886c37688dc5978c8c238eb1e93f6e080dc93de9 -Author: Eric Gregory -Date: Tue Mar 15 19:28:14 2011 +0000 - - #3353 color of message text on checkerboard page - -M src/CheckerboardLayout.vala - -commit 0a5c844e07f0da81e80522bff72b766ad75c03d2 -Author: Eric Gregory -Date: Tue Mar 15 18:31:37 2011 +0000 - - #3102 correction to flickr sorting - -M src/publishing/APIGlue.vala - -commit e3a78b0cb21d456c129a4168076c7f567641da04 -Author: Clinton Rogers -Date: Tue Mar 15 03:17:22 2011 +0000 - - This addresses #3343 by preventing the search bar's text entry field - from ever being made insensitive. - -M src/SearchFilter.vala - -commit 125bfbe994692fbb4a0051766bf0d72a8e02eb31 -Author: Jim Nelson -Date: Tue Mar 15 00:14:12 2011 +0000 - - #1118: Mild improvements to startup time. - -M src/MediaViewTracker.vala -M src/Tag.vala -M src/Thumbnail.vala -M src/core/ViewCollection.vala - -commit 44e4e608f9dba6f6fe6a5b0e5339b58307b38d1a -Author: Adam Dingle -Date: Mon Mar 14 23:54:22 2011 +0000 - - Removed Ubuntu-specific version number dependency. This fixes #3295. - -M Makefile - -commit 9a36d4b54a7f2b39197c9d4a522dcb875fe304d1 -Author: Lucas Beeler -Date: Mon Mar 14 23:41:40 2011 +0000 - - Refines search bar icons; closes #3190 and #3194. - -M Makefile -A icons/filter-flagged.png -A icons/filter-photos.png -A icons/filter-raw.png -A icons/filter-videos.png -M src/Resources.vala -M src/SearchFilter.vala - -commit 6b86429a4ea425395f0e416618493fe278fb7835 -Author: Eric Gregory -Date: Mon Mar 14 23:27:35 2011 +0000 - - #3340 fatal error importing from unreadable directory - -M src/BatchImport.vala -M src/Dialogs.vala -M src/ImportPage.vala - -commit 4180964daf3faca7522d7eb810d70e0987435113 -Author: Eric Gregory -Date: Mon Mar 14 23:22:08 2011 +0000 - - #3102 for Flickr, sort uploads in reverse chronological order prior - to upload - -M plugins/shotwell-publishing/FlickrPublishing.vala -M src/plugins/PublishingInterfaces.vala -M src/publishing/APIGlue.vala - -commit ec536486d2f719e56eae62f8a842340a49e47871 -Author: Jim Nelson -Date: Mon Mar 14 22:13:00 2011 +0000 - - #1926: Edit multiple titles at once. Courtesy Wolfgang Steitz. - -M src/Commands.vala -M src/Dialogs.vala -M src/MediaPage.vala -M src/SortedList.vala -M src/core/DataSet.vala -M src/core/ViewCollection.vala - -commit 4c74b5cefe841fee14b3637c1ba332f9df92c1aa -Author: Jim Nelson -Date: Mon Mar 14 21:31:35 2011 +0000 - - #3337: Shotwell now builds on 0.10.4 (which becomes the baseline - requirement). - -M Makefile -M src/CheckerboardLayout.vala - -commit 26db81922c025bdf1b6539f69996b0c261670516 -Author: Jim Nelson -Date: Sat Mar 12 00:41:09 2011 +0000 - - Added debug and fatal-warning options to plugins' valac command. - -M plugins/Makefile.plugin.mk - -commit 87bfb6550a7f40ab039c2d3e01807ef652d3ce29 -Author: Lucas Beeler -Date: Sat Mar 12 00:40:31 2011 +0000 - - Whoa. That last check-in generated a build warning. Fixed. - -M plugins/common/Resources.vala - -commit aed5fac7ec93467a876bf602eee078d24ae635ca -Author: Jim Nelson -Date: Sat Mar 12 00:36:20 2011 +0000 - - #3309: The icon cache in the sidebar was broken and growing without - bounds. This was exacerbated by Vera's test set, which has 10,000 - photos creating 10,000 events. - -M src/Sidebar.vala - -commit b05381ab1bde0966cacf3de059d42aee18cead17 -Author: Lucas Beeler -Date: Sat Mar 12 00:35:23 2011 +0000 - - Improves plug-in icons. Adds service-specific icons for publishing - plugins and defines a generic plugin icon. - -M Makefile -A icons/generic-plugin.png -A icons/slideshow-extension-point.png -M plugins/common/Resources.vala -M plugins/plugins.mk -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -A plugins/shotwell-publishing/facebook.png -A plugins/shotwell-publishing/flickr.png -A plugins/shotwell-publishing/picasa.png -M plugins/shotwell-publishing/shotwell-publishing.vala -A plugins/shotwell-publishing/youtube.png -M plugins/shotwell-transitions/CrumbleEffect.vala -M plugins/shotwell-transitions/FadeEffect.vala -M plugins/shotwell-transitions/SlideEffect.vala -M plugins/shotwell-transitions/shotwell-transitions.vala -A plugins/shotwell-transitions/slideshow-plugin.png -M src/Resources.vala -M src/plugins/ManifestWidget.vala -M src/slideshow/Slideshow.vala - -commit 205217eeab37aa23f508cdf233d582f5835b851a -Author: Clinton Rogers -Date: Sat Mar 12 00:31:47 2011 +0000 - - This fixes #3290 by 1) adding a new signal in SearchFilterAction to - indicate the Criteria has changed 2) connecting to this signal in - SearchToolbar and changing the visibility of the appropriate widgets - when receiving it. - -M src/SearchFilter.vala - -commit cb6924a34ea013f233cbb2903dab50fc668742a9 -Author: Clinton Rogers -Date: Fri Mar 11 23:34:44 2011 +0000 - - Addresses #3304 by overiding get_view_empty_message(). - -M src/ImportPage.vala - -commit c2edafc121c48ec6591364a9a6743d4b2c8cd2a5 -Author: Eric Gregory -Date: Fri Mar 11 02:45:20 2011 +0000 - - #3319 view event for photo disappeared - -M src/AppWindow.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala - -commit 12afc04c131c661bdde9f5ec2433439856645bc2 -Author: Eric Gregory -Date: Fri Mar 11 02:22:02 2011 +0000 - - #3288 fixes for direct mode with large folders - -M src/AppWindow.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/core/DataSource.vala -M src/core/DataView.vala -M src/direct/Direct.vala -M src/direct/DirectPhoto.vala -M src/direct/DirectPhotoPage.vala -D src/direct/DirectPhotoPlaceholder.vala -M src/direct/DirectView.vala -M src/direct/mk/direct.mk -M src/util/ui.vala - -commit cdb878bc32cc3681a2443352347b4dd33235e1ea -Author: Jim Nelson -Date: Fri Mar 11 01:30:04 2011 +0000 - - Changed SPIT to pass Spit.EntryPointParams struct rather than plain - values to allow for future expansion. This was precipitated by - the publishing plugins needed to know their module file early so - they can load their icons. Also updated the simple-plugin, which - suffered from bitrot after some earlier interface changes. - -M plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala -M plugins/shotwell-publishing/shotwell-publishing.vala -M plugins/shotwell-transitions/shotwell-transitions.vala -M samples/simple-plugin/simple-plugin.vala -M src/plugins/Plugins.vala -M src/plugins/SpitInterfaces.vala - -commit 54e44f78e5dc560c8e5a7e824d0aff47ee3a0268 -Author: Jim Nelson -Date: Thu Mar 10 21:04:14 2011 +0000 - - #3132: When a duplicate file is imported and a match is marked - offline, the match will be brought back online pointing to the - new file. - -M src/BatchImport.vala -M src/LibraryMonitor.vala -M src/Photo.vala - -commit 0ccc9f1cb51429f04716c2aa0a48f50598cd9ef2 -Author: Eric Gregory -Date: Thu Mar 10 20:56:18 2011 +0000 - - #3308 search bar was appearing on single photo page when returning - from full screen - -M src/LibraryWindow.vala - -commit 3a8a776c11aac33273ef4f5d26f3c0472a394472 -Author: Jim Nelson -Date: Thu Mar 10 19:29:26 2011 +0000 - - #3202: Additional fix for Yandex.Fotki plugin. Courtest Evgeniy - Polyakov. - -M plugins/shotwell-publishing-extras/YandexPublishing.vala - -commit b1f9160443ecd0c1f28806eb8971be991552f058 -Author: Jim Nelson -Date: Thu Mar 10 03:38:17 2011 +0000 - - #3313: Hot keys now routed through Gtk.Actions, so they only activate - if the action is sensitive. - -M src/CollectionPage.vala -M src/MediaPage.vala -M src/Page.vala -M src/PhotoPage.vala -M src/direct/DirectPhotoPage.vala - -commit dc0c6d976f478c8230c4fe7c891c34c69fa02fa6 -Author: Jim Nelson -Date: Thu Mar 10 01:23:47 2011 +0000 - - #3172: Will no longer recompile Vala code when nothing to be done. - Had to do with temporary directory and a hidden timestamp in it, and - the compilation files (.c, .o) being generated after the stamp file - (making the temporary directory newer than the stamp). - -M Makefile - -commit 5fb16f8f8af4ec025255abcf3b9457dfb0a73a7b -Author: Clinton Rogers -Date: Wed Mar 9 20:06:17 2011 +0000 - - This fixes #3196 by adding a length parameter to prepare_input_string - that tells it to truncate an incoming string after this many - characters if positive, or do not truncate if negative. - -M src/Event.vala -M src/MediaDataRepresentation.vala -M src/Tag.vala -M src/alien_db/AlienDatabaseImportJob.vala -M src/photos/PhotoMetadata.vala -M src/plugins/Plugins.vala -M src/util/string.vala - -commit 18e1686d94f220e1329f04cee244ebfac2bf6ffe -Author: Jim Nelson -Date: Wed Mar 9 04:10:40 2011 +0000 - - "make clean" was leaving behind some detritus in the plugins - directory. Fixed. - -M plugins/Makefile.plugin.mk - -commit 21416a6cce7a1c477835a5200693f1f2dc067af1 -Author: Jim Nelson -Date: Wed Mar 9 03:56:59 2011 +0000 - - #3306: Pluggables may now provide icons at multiple sizes. - -M plugins/Makefile.plugin.mk -M src/plugins/ManifestWidget.vala -M src/plugins/SpitInterfaces.vala - -commit 60c61d68793e334963f77a8639503a14d1c375e6 -Author: Jim Nelson -Date: Wed Mar 9 03:19:40 2011 +0000 - - #3152: Fixes crasher where two different Hirigana tag names collated - as equal when they plainly were not. Also fixes a bug I discovered - while investigating that a soft assertion was triggered when pages - were destroyed. - -M src/LibraryWindow.vala -M src/Page.vala -M src/Tag.vala -M src/TagPage.vala -M src/util/misc.vala -M src/util/string.vala - -commit ae16f579bb322e53485341a83083e409d495b2ca -Author: Jim Nelson -Date: Wed Mar 9 01:04:14 2011 +0000 - - #3287: Common accelerators now only respond on pages they're - supposed to. - -M src/AppWindow.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/util/ui.vala - -commit 40cc57d404e27e05969ed0cf0c69f720d121ba4e -Author: Jim Nelson -Date: Tue Mar 8 04:47:22 2011 +0000 - - #3284: Created shotwell-publishing-extras, which holds the - Yandex.Fotki connector. - -M Makefile -M configure -M plugins/Makefile -R099 plugins/shotwell-publishing/RESTSupport.vala -plugins/common/RESTSupport.vala -M plugins/plugins.mk -A plugins/shotwell-publishing-extras/Makefile -A plugins/shotwell-publishing-extras/YandexPublishing.vala -A plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala -R100 ui/yandex_publish_model.glade -plugins/shotwell-publishing-extras/yandex_publish_model.glade -M plugins/shotwell-publishing/Makefile -M plugins/shotwell-publishing/shotwell-publishing.vala -M plugins/shotwell-transitions/shotwell-transitions.vala -M src/WebConnectors.vala -D src/YandexConnector.vala -M src/plugins/Plugins.vala -M src/plugins/SpitInterfaces.vala - -commit 6746a69a8c9b0288792300881001fc9283ef40bc -Author: Jim Nelson -Date: Tue Mar 8 03:37:42 2011 +0000 - - #3291: Performance improvements with free-text keyword searching. - -M src/Event.vala -M src/MediaDataRepresentation.vala -M src/Photo.vala -M src/SearchFilter.vala -M src/Tag.vala -M src/VideoSupport.vala -A src/core/SourceInterfaces.vala -M src/core/mk/core.mk - -commit a9ae9644bc3f30766b953adb4ef9e3411e86a107 -Author: Jim Nelson -Date: Tue Mar 8 03:26:24 2011 +0000 - - Added optional timers to view filtering to measure search. - -M src/core/ViewCollection.vala - -commit dd3cf7f1a3e3b1d98ac3fe9fd8544765110ccad8 -Author: Lucas Beeler -Date: Mon Mar 7 22:37:00 2011 +0000 - - Makes sure all network transactions are properly stopped when - publishing is cancelled. Closes #3296. - -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/RESTSupport.vala -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit 3a7be98d20cf6eb9c73f93745d20b0d9c443533e -Author: Eric Gregory -Date: Mon Mar 7 22:22:46 2011 +0000 - - #3280 #3281 ctrl-a crash in single photo mode, ctrl-shift-a added - -M src/AppWindow.vala -M src/MediaPage.vala -M src/Page.vala -M src/PhotoPage.vala - -commit 10335124ec086120b1da7c3839f383d623fcd7da -Author: Eric Gregory -Date: Mon Mar 7 22:15:04 2011 +0000 - - #3215 search bar text/background - -M src/SearchFilter.vala - -commit efd60afafc56ae0ed3053cb52155ac038430e5e7 -Author: Vera Yin -Date: Fri Mar 4 02:39:56 2011 +0000 - - Updated translator list in THANKS. - -M THANKS - -commit 842baf0bf1763a2f4c3f1cf93e03ea99172db59e -Author: Jim Nelson -Date: Fri Mar 4 00:38:31 2011 +0000 - - #3265: Added license to publishing plugins. Also added authors and - cleaned up how common strings are handled in the core plugins code. - -M plugins/Makefile.plugin.mk -A plugins/common/Resources.vala -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/YouTubePublishing.vala -M plugins/shotwell-transitions/shotwell-transitions.vala - -commit cc9cce15cd4c4853fc170126f66007cca4b83658 -Author: Jim Nelson -Date: Fri Mar 4 00:11:56 2011 +0000 - - Even stupider. Code just needs to go away. - -M src/SearchFilter.vala - -commit 367cdb034796fd6d32b56484532c0cb9985f9205 -Author: Jim Nelson -Date: Fri Mar 4 00:10:53 2011 +0000 - - Fixes bug Eric found where the Flagged toggle was being cleared when - switching to and from the full-window view. - -M src/SearchFilter.vala - -commit bdda71948c5d4c6035d8ae0e82ce8cb67af38c79 -Author: Lucas Beeler -Date: Fri Mar 4 00:07:29 2011 +0000 - - Adds valadoc documentation for the publishing interfaces. - -M src/plugins/PublishingInterfaces.vala - -commit e1017083cb3998f65bf663463c2134b9eda7bc6b -Author: Eric Gregory -Date: Thu Mar 3 23:49:58 2011 +0000 - - #3277 accidentally checked in commented-out code - -M src/LibraryWindow.vala - -commit 04fc9b9b37983f4900689e954cc4ab22e2173fb0 -Author: Eric Gregory -Date: Thu Mar 3 23:42:13 2011 +0000 - - #3277 escape key for clearing search filter, fixes to make - key-press-event signal honor contract - -M src/LibraryWindow.vala -M src/Sidebar.vala - -commit 539682c700716a661a21942b0ffe1f9ac6dacb36 -Author: Jim Nelson -Date: Thu Mar 3 23:26:17 2011 +0000 - - #3259: Search bar now dynamically indicates the availability of - content on each page and makes those filters insensitive when - it's not. - -M Makefile -M src/AppWindow.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/MediaPage.vala -A src/MediaViewTracker.vala -M src/OfflinePage.vala -M src/Page.vala -M src/SearchFilter.vala -M src/TrashPage.vala -A src/core/Tracker.vala -M src/core/mk/core.mk - -commit 7c23ea352d542a8a2113f76d9213a9a38234624e -Author: Clinton Rogers -Date: Thu Mar 3 21:11:20 2011 +0000 - - This fixes #3226 by correcting a minor typo in paint_sprockets() - - the extra sprocket hole for the straggler pixels was accidentally - being drawn on the left twice. - -M src/MediaPage.vala - -commit 8192b7a0c687f65ab2dd198b9f18b8c6d014c6a3 -Author: Vera Yin -Date: Thu Mar 3 20:48:11 2011 +0000 - - Corrected error in shotwell.pot, updated translations. - -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/eu.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/he.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/kk.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/mk.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/pt_BR.po -M po/ro.po -M po/ru.po -M po/shotwell.pot -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/te_IN.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit dfb28da69112835e2545bab279b3c1ba3826a59b -Author: Eric Gregory -Date: Thu Mar 3 20:27:34 2011 +0000 - - #3262 removed key lock/unlock system for text entry - -M src/AppWindow.vala -M src/LibraryWindow.vala -M src/SearchFilter.vala -M src/Sidebar.vala - -commit bc435490452d7dc8dda1f21cf328944c96f5f333 -Author: Lucas Beeler -Date: Thu Mar 3 19:58:41 2011 +0000 - - Fixed a problem in which a non-ASCII character appeared in a string - marked for translation, preventing generation of the POT file. - -M src/WebConnectors.vala - -commit 2d5d9ce4a9141dd84fe655cc7b1abcaad1e7be44 -Author: Lucas Beeler -Date: Thu Mar 3 19:30:24 2011 +0000 - - Some strings marked for translation had been broken apart with the - string concatenation ("+") operator. This is not compatible with - GNU gettext. This had caused a bad POT file to be generated. These - strings were fixed. - -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/RESTSupport.vala -M src/Dialogs.vala -M src/WebConnectors.vala - -commit 3f59daa641e2b30cbdaea6c8b6f6e0a99d2ba9f1 -Author: Vera Yin -Date: Thu Mar 3 03:27:25 2011 +0000 - - Updated shotwell.pot and po files after string freeze. Added Telugu - (India) translation. - -M Makefile -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/eu.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/he.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/kk.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/mk.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/pt_BR.po -M po/ro.po -M po/ru.po -M po/shotwell.pot -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -C058 po/shotwell.pot po/te_IN.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit 7f989bec9c06a168cb17ae5ffc76ff5cce4c38ee -Author: Jim Nelson -Date: Thu Mar 3 01:20:35 2011 +0000 - - Latest version of Valadoc in trunk chokes on two spaces after a period - (but, ironically, they can be placed anywhere else in the sentence). - Removed the offensive whitespace. - -M src/plugins/SpitInterfaces.vala -M src/plugins/TransitionsInterfaces.vala - -commit afe8d3d2deef1227d8086436e66e57800acea3a4 -Author: Clinton Rogers -Date: Thu Mar 3 00:22:20 2011 +0000 - - This addresses #3245 by adding the option to replace \r and \n - characters in prepare_input_text() with the STRIP_CRLF option, making - sure that event renaming properly uses this option, and reaps some - unused code from PhotoMetadata.vala as well. - -M src/Event.vala -M src/photos/PhotoMetadata.vala -M src/util/string.vala - -commit 65350a6991805c0621281c4ced5e33844b47b637 -Author: Clinton Rogers -Date: Thu Mar 3 00:10:45 2011 +0000 - - Small code tidiness issue. - -M src/WebConnectors.vala - -commit 40a27c73e9b935339a32506224a95cfeba29b23b -Author: Clinton Rogers -Date: Thu Mar 3 00:06:58 2011 +0000 - - This fixes #3253 by checking whether a publishing service is available - to handle the selected type of media, and if none can, instead of - throwing an exception, it now sends up a dialog. - -M src/WebConnectors.vala - -commit 7fe4a3066cf419743a8e8233aae37e9a336484bd -Author: Lucas Beeler -Date: Wed Mar 2 20:53:26 2011 +0000 - - Improves messages displayed when view collections are empty or when - no items in the collection match the search filter. Closes #3213. - -M src/EventsDirectoryPage.vala -M src/Page.vala -M src/TrashPage.vala - -commit 9a5d9bb508be1884a8f86eff21e562bf15d87204 -Author: Eric Gregory -Date: Wed Mar 2 20:14:01 2011 +0000 - - #3210 "no items" message appears after changes - -M src/Page.vala - -commit 0b3c60aacc57b6162b86ae420e0f11bb11b56157 -Author: Jim Nelson -Date: Wed Mar 2 18:53:47 2011 +0000 - - #3192: Implicit AND in the search box. Courtesy Wolfgang Steitz. - -M src/SearchFilter.vala - -commit fd6ef57d1be0683753d58702530b37f5d4f4999f -Author: Jim Nelson -Date: Wed Mar 2 18:22:55 2011 +0000 - - #3214: Media page is now Library page. - -M src/CollectionPage.vala - -commit a6f03835c4d299da8241c02b6235011210f2181b -Author: Jim Nelson -Date: Tue Mar 1 23:06:16 2011 +0000 - - Moved DataObject/DataCollection heirarchy into core unit and split - them up into more logical file groupings. - -M Makefile -D src/DataCollection.vala -A src/core/Alteration.vala -A src/core/ContainerSourceCollection.vala -A src/core/Core.vala -A src/core/DataCollection.vala -A src/core/DataObject.vala -A src/core/DataSet.vala -R052 src/DataObject.vala src/core/DataSource.vala -A src/core/DataSourceTypes.vala -A src/core/DataView.vala -A src/core/DataViewTypes.vala -A src/core/DatabaseSourceCollection.vala -A src/core/SourceCollection.vala -A src/core/SourceHoldingTank.vala -A src/core/ViewCollection.vala -A src/core/mk/core.mk -A src/core/util.vala -M units.mk - -commit e74793a0ada34ae091d34cff0bab8b29d2b21159 -Author: Jim Nelson -Date: Tue Mar 1 22:34:41 2011 +0000 - - Adds some additional functionality to ViewCollection. - -M src/DataCollection.vala - -commit b9958cbfdde322ac0e1483c58671ed631ec36b2b -Author: Lucas Beeler -Date: Tue Mar 1 22:16:14 2011 +0000 - - The Facebook login WebKit control now displays the loaded HTML page - in the user's system language (if Facebook supports it). Closes #3022. - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit b9c7523ae227daf9e7586dbfc18324dea030b6e2 -Author: Lucas Beeler -Date: Tue Mar 1 22:07:43 2011 +0000 - - Appends null pointers to selected string arrays as a workaround for - #3264. Closes #3257. - -M plugins/shotwell-publishing/FlickrPublishing.vala -M src/photos/PhotoMetadata.vala - -commit 208a8721b887bffad000221d0dca0890440f9eab -Author: Clinton Rogers -Date: Tue Mar 1 20:39:16 2011 +0000 - - This fixes #3240 by altering the way a date span is pretty printed - if the start and end dates are two consecutive days in the same - calendar month. - -M src/util/misc.vala - -commit 8915227dd7cdbc7f374761f974323069e80dbb50 -Author: Eric Gregory -Date: Tue Mar 1 20:05:44 2011 +0000 - - #3246 #3247 scrollbar fixed after returning from single image view - -M src/CheckerboardLayout.vala - -commit 286baefadc1cd874d5577bdbd31c5c7e07d30551 -Author: Jim Nelson -Date: Tue Mar 1 18:51:11 2011 +0000 - - Upped version to 0.8.90+trunk. - -M Makefile - -commit cf9a5de64e4b26daf7ae63a2ec24425a55f4e6c7 -Author: Jim Nelson -Date: Tue Mar 1 18:45:56 2011 +0000 - - Updated to build 0.8.90 prerelease. Also fixed a bug Vera found - where disabling a plugin would cause Shotwell to crash. - -M Makefile -M plugins/Makefile -M plugins/Makefile.plugin.mk -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/eu.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/he.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/kk.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/mk.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/pt_BR.po -M po/ro.po -M po/ru.po -M po/shotwell.pot -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po -M src/plugins/ManifestWidget.vala -M src/plugins/mk/plugins.mk - -commit 655c75f89f8f41d1f90f162404afe0436e995456 -Author: Jim Nelson -Date: Mon Feb 28 21:09:30 2011 +0000 - - #3261: Shotwell role (library/direct) and version number now first - thing logged. - -M src/main.vala - -commit 7083b967be2e8a688f34e561b8089c730f433007 -Author: Jim Nelson -Date: Mon Feb 28 20:43:25 2011 +0000 - - #3241: Search bar is activated (made visible) when the user makes - any change to filtering. - -M src/DataCollection.vala -M src/LibraryWindow.vala - -commit 3344ae2ae0832d0b2060e0d1d577f69c29618112 -Author: Jim Nelson -Date: Sat Feb 26 02:23:58 2011 +0000 - - #3207: Added text labels to search bar. #3228: Moved the filter - toggle buttons to left side of bar while keeping text box to the - right. - -M src/SearchFilter.vala - -commit b2d6cefe4e5e7285cdafc98f52194c9aaba72ab9 -Author: Jim Nelson -Date: Sat Feb 26 01:11:43 2011 +0000 - - #3188: Find button added to toolbars on pages that show media - (but not pages that show events). Some other code cleanup too, - including moving to a single Gtk.ActionGroup for common actions, - meaning that LibraryWindow doesn't have to synchronize actions when - pages are switched from (and that pages can monitor those actions - for their own state, which cleans up EventDirectoryPage a bit). - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/Dialogs.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/MediaPage.vala -M src/OfflinePage.vala -M src/Page.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/TrashPage.vala -M src/util/misc.vala -M src/util/mk/util.mk -A src/util/ui.vala -M ui/collection.ui -M ui/offline.ui -M ui/trash.ui - -commit 2f11b89a7fd7031410de8d6efaa1d27370080604 -Author: Clinton Rogers -Date: Sat Feb 26 00:09:00 2011 +0000 - - This addresses #3212 by not creating or showing the size-chooser - widgets if the current media types don't include photographs. - -M plugins/shotwell-publishing/PicasaPublishing.vala - -commit 85a22da9ae0ec72e8f001cba0f38d71274b9eeba -Author: Clinton Rogers -Date: Fri Feb 25 23:26:58 2011 +0000 - - This addresses #3232 by saving the user's size choice to, and - restoring it from, gconf. - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit 48d1cd3c7b2f3f2477f96cf7680c7d3f732c78af -Author: Clinton Rogers -Date: Fri Feb 25 22:12:45 2011 +0000 - - This fixes 3230 by restoring the ui object for this dialog box - (it had gone missing as of 2640, Glade bug suspected) - -M ui/shotwell.glade -M ui/shotwell.xml - -commit e16619498958385d24a694f4330f8e798f8d7f28 -Author: Jim Nelson -Date: Fri Feb 25 04:28:57 2011 +0000 - - #3185: Selection time on a page would grow each time a page was - switched back to. Fixed. - -M src/DataCollection.vala -M src/DesktopIntegration.vala -M src/Page.vala - -commit 1b51e6d1776be7658cc05eb97ddf7b772d962715 -Author: Jim Nelson -Date: Thu Feb 24 22:27:37 2011 +0000 - - #3250: Progress bar now displayed while printing. Operation can be - cancelled from its Cancel button. - -M src/CollectionPage.vala -M src/DataCollection.vala -M src/Dialogs.vala -M src/PhotoPage.vala -M src/Printing.vala -M src/direct/DirectPhotoPage.vala - -commit cc32c498ed802841068e41e4e29d127c0be840f4 -Author: Clinton Rogers -Date: Thu Feb 24 21:19:01 2011 +0000 - - This addresses #3216 by making SuccessPane's constructor take an - argument that tells how many media items have been uploaded, and - altering the displayed string based on whether that argument is - equal to one or not. - - When the pane is created and installed, we pass publishables.length, - which should tell us how many media items the user was trying - to publish. - -M src/WebConnectors.vala -M src/plugins/PublishingInterfaces.vala -M src/publishing/APIGlue.vala -M src/publishing/PublishingPluginHost.vala - -commit 6598329a28aafc8e98ada384b3bec4f1a5c9aa12 -Author: Lucas Beeler -Date: Thu Feb 24 21:00:33 2011 +0000 - - Fixes a problem in which publishing to Picasa Web Albums and - YouTube would fail if a media item's title contained non-ASCII - characters. Closes #3081. - -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/RESTSupport.vala -M plugins/shotwell-publishing/YouTubePublishing.vala - -commit eaf6b26fbc501293efd012467231153752d292f0 -Author: Lucas Beeler -Date: Thu Feb 24 20:55:20 2011 +0000 - - Fixes two regressions introduced when the Flickr and Facebook - connectors were ported from the legacy publishing API to the new - pluggable publishing API. Closes #3171 and #3252. - -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala - -commit f4378c91f382ae2f86b85fec103d9d7d0afeed42 -Author: Jim Nelson -Date: Thu Feb 24 20:42:01 2011 +0000 - - #3233: Fixes crasher caused by marking a photo Rejected and then - back to Unrated while in full-window mode. This cleans up some of - the bookkeeping in ViewCollection with how hidden items are dealt - with when they're selected as well. - -M src/DataCollection.vala -M src/PhotoPage.vala - -commit f6b73798591a4fec581cd4f9930550ee445f96de -Author: Clinton Rogers -Date: Thu Feb 24 19:55:14 2011 +0000 - - This addresses #3016 by checking whether any of the media items in an - event have altered exposure times (as opposed to the alteration type - "metadata, time" which is valid for whole events, but not individual - images or videos). If one or more media items has an exposure time - change, the entire event is marked as 'dirty' so the sidebar will - know to re-examine the fields and refresh them. - - In addition, if the event doesn't yet have user-assigned name, a - "metadata, name" alteration is sent up, since the name displayed - for the event will need to change from 'Event XXXX' to the start - date of the event. - -M src/Event.vala - -commit c76c6607bc3b2b43699a013091b803b9939617d2 -Author: Jim Nelson -Date: Thu Feb 24 03:42:00 2011 +0000 - - #3243: Problematic printf format strings fixed. - -M src/alien_db/f_spot/FSpotDatabase.vala - -commit d76d6dfe3bf6d8b264c4d06fd66f6e761e3b512f -Author: Jim Nelson -Date: Thu Feb 24 03:38:53 2011 +0000 - - #3248: Fixes critical assertion when null string is passed to - guarded_markup_escape_text(). - -M src/util/string.vala - -commit d46d1d31afbab5f55046c84cdc876456cb0a6708 -Author: Jim Nelson -Date: Thu Feb 24 03:25:35 2011 +0000 - - #1188: Print multiple photos per page in various layouts. #3159: - Print multiple photos on successive pages. Both courtesy Nikola - Radovanovic. - -M THANKS -M src/CollectionPage.vala -M src/Config.vala -M src/PhotoPage.vala -M src/Printing.vala -M src/direct/DirectPhotoPage.vala - -commit 74e259dcb6ee9f26ba6bbe7998e93cb2e592246d -Author: Lucas Beeler -Date: Thu Feb 24 03:06:07 2011 +0000 - - Migrates the YouTube connector to the new pluggable, publishing API. - -M Makefile -M plugins/shotwell-publishing/Makefile -R052 src/YouTubeConnector.vala -plugins/shotwell-publishing/YouTubePublishing.vala -M plugins/shotwell-publishing/shotwell-publishing.vala -M src/WebConnectors.vala -M src/plugins/StandardHostInterface.vala -M src/publishing/Publishing.vala - -commit afc218e77a2595d847c1f45607fd06c6a3929e46 -Author: Jim Nelson -Date: Thu Feb 24 01:47:32 2011 +0000 - - #3225: Thought I made these string changes in a prior commit but - did not. - -M src/SearchFilter.vala - -commit ac77504b6bd745e7cb5186876ee9898d7249153c -Author: Clinton Rogers -Date: Thu Feb 24 00:02:09 2011 +0000 - - This addresses #3218 by changing how the user input is prepared and - sanitized so that we accept empty strings. This makes renaming an - event to "" in the dialog box function exactly the same as it does - in the sidebar. - -M src/Event.vala - -commit 9017ec77b4c163a99212fd1c04b4aca3e56d72bb -Author: Adam Dingle -Date: Wed Feb 23 20:13:30 2011 +0000 - - Moved Clinton to top section of THANKS file. - -M THANKS - -commit a5d2ee012779887830679826b5e2ec840af405ad -Author: Jim Nelson -Date: Wed Feb 23 05:39:24 2011 +0000 - - Valadoc-ed the SPIT and transitions interfaces and added a docs - target in the Makefile to generate Valadoc for Shotwell's plugin API. - -M Makefile -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-transitions/shotwell-transitions.vala -M src/plugins/ManifestWidget.vala -M src/plugins/PublishingInterfaces.vala -M src/plugins/SpitInterfaces.vala -M src/plugins/TransitionsInterfaces.vala -M src/publishing/APIGlue.vala - -commit 946fe7ef6fb996b61e1a6a606126b85760036125 -Author: Jim Nelson -Date: Wed Feb 23 01:26:45 2011 +0000 - - #3215: The search bar's background is now dynamically updated as - the user changes the background color in the Preferences dialog. - -M src/SearchFilter.vala - -commit ce4020480877e8c3829b44cd205108df1a7506b5 -Author: Lucas Beeler -Date: Tue Feb 22 22:25:52 2011 +0000 - - Ports the Flickr connector to new pluggable publishing API. Closes - #3200. - -M Makefile -R054 src/FlickrConnector.vala -plugins/shotwell-publishing/FlickrPublishing.vala -M plugins/shotwell-publishing/Makefile -M plugins/shotwell-publishing/RESTSupport.vala -M plugins/shotwell-publishing/shotwell-publishing.vala -M src/WebConnectors.vala -M src/plugins/StandardHostInterface.vala -M src/publishing/Publishing.vala -M src/util/string.vala - -commit f3cfec401b18538e583fb79f3053777caf45c712 -Author: Jim Nelson -Date: Tue Feb 22 21:53:07 2011 +0000 - - #3044: Now writing metadata to all 3 domains on an update. - -M src/photos/PhotoMetadata.vala - -commit 350127aac6cf9e02636c6a6c9d6f041be18a81bf -Author: Clinton Rogers -Date: Tue Feb 22 20:57:38 2011 +0000 - - This fixes 3124; we now use the GConf system to remember whether - the user had the find bar hidden or shown, and on start up, we set - it to this. - -M src/Config.vala -M src/LibraryWindow.vala - -commit 19c49b0af8deb301f7f338b81d81a648a4aaf4c3 -Author: Jim Nelson -Date: Tue Feb 22 20:43:52 2011 +0000 - - #3211: Brought back View -> Filter Photos, which is now available - whenever the search bar is available. #3225: Adjusted the search - filter tooltips. Reworked search filter to split out the Gtk.Actions - (which are then shared among all pages). - -M src/AppWindow.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/SearchFilter.vala -M ui/import.ui -M ui/media.ui -M ui/offline.ui -M ui/search_bar.ui -M ui/trash.ui - -commit 8011fa15af24961f2bfe7d4d2a90b71d499afe67 -Author: Clinton Rogers -Date: Tue Feb 22 20:38:32 2011 +0000 - - This addresses #3124; it's copied and pasted from the original fix - (see r2615) - -M src/SearchFilter.vala - -commit 0d9a2fca23a956eede24990c6ab4d70a3c941f97 -Author: Adam Dingle -Date: Mon Feb 21 22:58:06 2011 +0000 - - Make the toolbar button background color match the toolbar background. - - This partially fixes http://trac.yorba.org/ticket/3215 . - -M src/SearchFilter.vala - -commit 2d51356cb95e8e55d6ccf0890357c6b3b6f3abfa -Author: Jim Nelson -Date: Sat Feb 19 00:22:31 2011 +0000 - - #3188: Added back Ctrl+F to set cursor focus to the text entry box in - the search bar. This patch also allows the search bar to be hidden - and available through View -> Search Bar. - -M Makefile -M src/CollectionPage.vala -M src/LibraryWindow.vala -M src/PhotoPage.vala -M src/SearchFilter.vala -M ui/events_directory.ui -M ui/import.ui -M ui/media.ui -M ui/offline.ui -M ui/trash.ui -D ui/video.ui - -commit 02c69e909b6d6290e771e4abe3133a806da193fa -Author: Clinton Rogers -Date: Fri Feb 18 21:47:26 2011 +0000 - - This fixes 2916 by doing the following: - 1. Adds an enum with values for the standard (720 px) and large - (2048 px) picture sizes. - 2. Adds support to the various publishing-related methods - (do_upload(), on_publishing_options_pane_publish(), etc) for a - third parameter telling us what resolution the user chose. - 3. Adds a combobox to the legacy options pane in which the user - may choose their desired resolution, along with a label and any - ancillary layout stuff. - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit a27a0cf2b3d6e04f4cf029315944317320339afb -Author: Jim Nelson -Date: Fri Feb 18 21:25:21 2011 +0000 - - #2229: Event name is now a date range for events spanning multiple - days. #2599: If an event is named, the date (or date range) appears - in its tooltip along with its name. Both courtesy Wolfgang Steitz. - -M THANKS -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/Page.vala -M src/Sidebar.vala -M src/util/misc.vala -M src/util/string.vala - -commit 76304ef3341384605ef71c4c4bd4289e23cc9c52 -Author: Jim Nelson -Date: Fri Feb 18 04:00:18 2011 +0000 - - #3170: Plugins can now be enabled/disabled via the Preferences dialog. - -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/PicasaPublishing.vala -M plugins/shotwell-publishing/shotwell-publishing.vala -M plugins/shotwell-transitions/CrumbleEffect.vala -M plugins/shotwell-transitions/FadeEffect.vala -M plugins/shotwell-transitions/SlideEffect.vala -M plugins/shotwell-transitions/shotwell-transitions.vala -M src/Config.vala -M src/Dialogs.vala -M src/Resources.vala -M src/Sidebar.vala -M src/WebConnectors.vala -A src/plugins/ManifestWidget.vala -M src/plugins/Plugins.vala -M src/plugins/SpitInterfaces.vala -M src/plugins/StandardHostInterface.vala -M src/plugins/mk/plugins.mk -M src/publishing/APIGlue.vala -M src/publishing/Publishing.vala -M src/slideshow/Slideshow.vala -M src/slideshow/TransitionEffects.vala -M sw-glade -M ui/shotwell.glade - -commit 2759ed8b45e31b081579ecf65f4113dacbeb1272 -Author: Clinton Rogers -Date: Fri Feb 18 01:20:49 2011 +0000 - - This fixes 3175 by checking whether we're making a new gallery - or uploading a video. If neither is true, we set the combo box - to insensitive. - -M plugins/shotwell-publishing/FacebookPublishing.vala - -commit d090288948a412767d1d45d710336ecc3e7d15e3 -Author: Lucas Beeler -Date: Fri Feb 18 01:05:05 2011 +0000 - - Ports the Picasa publishing client to the new pluggable publishing - API. Services discovered dynamically now automatically have their - names placed in the service selector box. - -M Makefile -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/Makefile -R060 src/PicasaConnector.vala -plugins/shotwell-publishing/PicasaPublishing.vala -A plugins/shotwell-publishing/RESTSupport.vala -M plugins/shotwell-publishing/shotwell-publishing.vala -D src/FacebookConnector.vala -M src/WebConnectors.vala -M src/plugins/PublishingInterfaces.vala -M src/plugins/StandardHostInterface.vala -M src/publishing/APIGlue.vala -M src/publishing/PublishingPluginHost.vala - -commit 36484811454c9d3f327355bcf654b1f34df577d6 -Author: Adam Dingle -Date: Thu Feb 17 20:28:05 2011 +0000 - - Fixed #3208 (toolbar items shift when rating filter changes). - -M src/SearchFilter.vala - -commit 152ba16694cc03deb0dd33c529d2986693afc153 -Author: Jim Nelson -Date: Thu Feb 17 19:11:39 2011 +0000 - - #3157: Use more processors (when available) for generating mimics. - -M src/MimicManager.vala - -commit a7682276e4b7e3e38c819e08844957c766a4e536 -Author: Clinton Rogers -Date: Thu Feb 17 00:36:01 2011 +0000 - - This addresses ticket #3004 by checking to see whether we're getting - a close or delete event back from the dialog box. If so, we treat - this as cancel and stay on the current photo, - since the user didn't yet decide whether to keep or revert their - edits. - -M src/direct/DirectPhotoPage.vala - -commit 807ccf1facf4abc7cc5d430ef14dd84c002cde21 -Author: Jim Nelson -Date: Tue Feb 15 06:27:53 2011 +0000 - - #3100: Search bar, from Eric. - -M Makefile -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/Config.vala -M src/DataCollection.vala -M src/EventsDirectoryPage.vala -M src/FlaggedPage.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/MediaPage.vala -M src/OfflinePage.vala -M src/Page.vala -M src/Resources.vala -A src/SearchFilter.vala -M src/TrashPage.vala -D src/VideosPage.vala -M ui/media.ui -A ui/search_bar.ui - -commit d124215063c742e8899ad599be8e699af0ccb9a0 -Author: Vera Yin -Date: Tue Feb 15 01:08:18 2011 +0000 - - Updated copyright to 2011 in PO files. Updated English (UK), Finnish, - Hebrew, Hungarian, Korean, Portuguese, Russian, Spanish, Swedish, - and Turkish translations. - -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/eu.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/he.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/kk.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/mk.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/pt_BR.po -M po/ro.po -M po/ru.po -M po/shotwell.pot -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit b05838acb1b22e094f196e776b0d5cf549196c3d -Author: Jim Nelson -Date: Sat Feb 12 02:56:11 2011 +0000 - - #182: Further work on plugins. Added reserved symbols to plugin - interfaces to make room for future expansion. - -M src/plugins/PublishingInterfaces.vala -M src/plugins/SpitInterfaces.vala -M src/plugins/TransitionsInterfaces.vala - -commit 6345489529f8ad7435a12df10f5a3b99fc857298 -Author: Jim Nelson -Date: Sat Feb 12 01:59:56 2011 +0000 - - #3143: New data model for direct-edit mode to fix navigation problem. - -M Makefile -M src/BatchImport.vala -M src/DataCollection.vala -M src/DataObject.vala -D src/DelayedQueue.vala -M src/DirectoryMonitor.vala -M src/Event.vala -M src/LibraryMonitor.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/PixbufCache.vala -M src/Tag.vala -M src/TimedQueue.vala -A src/direct/Direct.vala -A src/direct/DirectPhoto.vala -A src/direct/DirectPhotoPage.vala -A src/direct/DirectPhotoPlaceholder.vala -A src/direct/DirectView.vala -R096 src/DirectWindow.vala src/direct/DirectWindow.vala -A src/direct/mk/direct.mk -M src/main.vala -M src/photos/PhotoFileSniffer.vala -M src/util/misc.vala -M units.mk - -commit b6bb10e61603de9701a4cfcbbbc8d5eafe6f6a4f -Author: Eric Gregory -Date: Sat Feb 12 01:45:04 2011 +0000 - - #2606 fullscreen toolbar fix - -M src/AppWindow.vala - -commit a6273c7bba879970b31bf926a27a8bad83c5778c -Author: Eric Gregory -Date: Fri Feb 11 02:13:08 2011 +0000 - - #2611 prevent sidebar scrolling when deleting tags and events - -M src/LibraryWindow.vala -M src/Sidebar.vala - -commit 921bbf046259ffd57ba8fa39e86b9601fb9b63f0 -Author: Clinton Rogers -Date: Fri Feb 11 01:32:47 2011 +0000 - - This addresses ticker #853 - holding down ctrl+shift while clicking - to choose items works like it does in Nautilus file manager. - -M src/Page.vala - -commit f73012ba357e83c21077ac622cd406bd4ea1fb30 -Author: Lucas Beeler -Date: Thu Feb 10 21:03:30 2011 +0000 - - Simplified names in the publishing API; fixed a problem with Facebook - logout that should've been in my previous commit but wasn't. ;-) - -M plugins/shotwell-publishing/FacebookPublishing.vala -M src/plugins/PublishingInterfaces.vala -M src/publishing/APIGlue.vala -M src/publishing/PublishingPluginHost.vala - -commit 8beb036282cccc0172af02e97ec85178cec130c2 -Author: Lucas Beeler -Date: Thu Feb 10 19:58:23 2011 +0000 - - Simplifies and refines the new publishing API; at this point, the - API is "stable" but not yet "frozen". - -M plugins/shotwell-publishing/FacebookPublishing.vala -M src/plugins/PublishingInterfaces.vala -M src/publishing/APIGlue.vala -M src/publishing/PublishingPluginHost.vala - -commit 2acf162a4e91159f6365b674764dec7a739ebc3f -Author: Clinton Rogers -Date: Thu Feb 10 04:47:57 2011 +0000 - - This fixes #3146 by slightly increasing the size of the 'dirty' - region when preparing to erase the clip box from the previous frame. - -M src/EditingTools.vala - -commit e391cf4809cc053c14d54c5ae7bfa4f47dbb5cf9 -Author: Clinton Rogers -Date: Thu Feb 10 03:12:15 2011 +0000 - - Fix for #3144 - this adds the ability to press Ctrl-F in any area - of the app that has the search box to send focus to it. - -M src/MediaPage.vala -M src/PhotoPage.vala -M src/Resources.vala -M ui/media.ui - -commit 29d7bce6ba19e20a170e318230c490fe2ad5892e -Author: Clinton Rogers -Date: Thu Feb 10 03:10:35 2011 +0000 - - Fix for #3023; we now check whether a failed external edit file - creation is due to insufficient permissions, and if so, display a - friendlier error message. - -M src/CollectionPage.vala -M src/Dialogs.vala -M src/PhotoPage.vala - -commit 8ba6f59f8f12e3656c9a04e5ababa64e3785da6f -Author: Jim Nelson -Date: Thu Feb 10 02:10:01 2011 +0000 - - Removed spitter plugin, as it was only intended to test out early - implementations of the plugin loader. samples/simple-plugin is a - better place for what spitter set out to achieve. - -M plugins/plugins.mk -D plugins/spitter/Makefile -D plugins/spitter/spitter.vala - -commit 7cf599a0fe91f7052d6f1a17620c487edab4b578 -Author: Jim Nelson -Date: Thu Feb 10 01:50:56 2011 +0000 - - #3160: Plugin headers and VAPI files are now installable. Must be - enabled with the configure script. A .pc file is also installed. - #2535: Now that all valac warnings have been eliminated and we require - Vala 0.10.0 or above, added --fatal-warnings option to Makefile. - #3167: Fixed "unreachable catch clause" build warning. Also added - sample plugin to source tree. - -M Makefile -M configure -M plugins/Makefile.plugin.mk -M plugins/shotwell-publishing/Makefile -M plugins/shotwell-transitions/Makefile -M plugins/spitter/Makefile -A samples/simple-plugin/Makefile -A samples/simple-plugin/README -A samples/simple-plugin/simple-plugin.vala -A shotwell-plugin-dev-1.0.m4 -M src/VideoSupport.vala -M src/plugins/mk/interfaces.mk - -commit 1f813bacd23ce99342eb0ce1e967efd1218e7c40 -Author: Eric Gregory -Date: Wed Feb 9 20:03:39 2011 +0000 - - #3147 switch to totem-video-thumbnailer - -M Makefile -M src/VideoSupport.vala - -commit f6e0d5d35c0155082b4e4ed33221c0208e5bcff4 -Author: Eric Gregory -Date: Wed Feb 9 19:42:39 2011 +0000 - - #3129 fixed segfault when opening photo with missing backing file - -M src/CheckerboardLayout.vala -M src/PhotoPage.vala - -commit c0dbe8e620cb13f758b3e7e3968a84d48845ba41 -Author: Eric Gregory -Date: Wed Feb 9 19:29:19 2011 +0000 - - #3059 jump to last import page after import - -M src/LibraryWindow.vala - -commit da9a203490966b0f98e2c5a3a9ce5948be95b5c3 -Author: Jim Nelson -Date: Wed Feb 9 02:44:15 2011 +0000 - - #182: Further work on plugins interfaces. - -M plugins/Makefile.plugin.mk -M plugins/shotwell-publishing/FacebookPublishing.vala -M plugins/shotwell-publishing/shotwell-publishing.vala -M plugins/shotwell-transitions/CrumbleEffect.vala -M plugins/shotwell-transitions/FadeEffect.vala -M plugins/shotwell-transitions/SlideEffect.vala -M plugins/shotwell-transitions/shotwell-transitions.vala -M plugins/spitter/spitter.vala -M src/AppDirs.vala -M src/Config.vala -M src/plugins/Plugins.vala -M src/plugins/PublishingInterfaces.vala -M src/plugins/SpitInterfaces.vala -A src/plugins/StandardHostInterface.vala -M src/plugins/TransitionsInterfaces.vala -M src/plugins/mk/interfaces.mk -M src/plugins/mk/plugins.mk -M src/publishing/APIGlue.vala -M src/slideshow/TransitionEffects.vala - -commit b80664e8247acc47b3e860aa343309d97b8b4231 -Author: Adam Dingle -Date: Wed Feb 9 00:12:20 2011 +0000 - - Added Eric to AUTHORS. - -M AUTHORS -M THANKS -M src/Resources.vala -M src/photos/GRaw.vala - -commit 24caa52ea8c4ff7a9414542d62bfd748c758242a -Author: Clinton Rogers -Date: Tue Feb 8 21:13:25 2011 +0000 - - Fix for #3124. We now track whether we've gotten an event for the - escape key, and if so, we clear the search box, otherwise, we let - the event proceed normally. - -M src/MediaPage.vala - -commit 14447961692c0292ad44778bdf3a117d807ff5e9 -Author: Adam Dingle -Date: Tue Feb 8 20:12:45 2011 +0000 - - Added Clinton to THANKS file. - -M THANKS - -commit 1e13a3d237c4b284ab6315705971646131574e60 -Author: Lucas Beeler -Date: Tue Feb 8 02:11:28 2011 +0000 - - The Facebook Connector, previously ported to the new publishing API, - has now been packaged in a separate .so file as a dynamically loadable - plug-in. This is the result of both code and build system changes. - -M plugins/Makefile.plugin.mk -M plugins/plugins.mk -R098 src/publishing/FacebookPublishing.vala -plugins/shotwell-publishing/FacebookPublishing.vala -A plugins/shotwell-publishing/Makefile -A plugins/shotwell-publishing/shotwell-publishing.vala -M src/FacebookConnector.vala -M src/plugins/PublishingInterfaces.vala -M src/plugins/mk/interfaces.mk -M src/publishing/APIGlue.vala -M src/publishing/mk/publishing.mk - -commit 044eb8993049ed17b0f2b93d5aed6f9d5386f471 -Author: Adam Dingle -Date: Mon Feb 7 18:49:17 2011 +0000 - - Updated minimum Vala version to 0.10.0. - -M Makefile - -commit 2be5ac16086c46416e2ee873349f42149f048469 -Author: Eric Gregory -Date: Fri Feb 4 23:59:52 2011 +0000 - - #1579 customizable directory structure - -M src/AppDirs.vala -M src/Config.vala -M src/Dialogs.vala -M src/LibraryFiles.vala -M src/MediaDataRepresentation.vala -M src/Resources.vala -M ui/shotwell.glade - -commit 0e6b31b82553cf5f177d5ce8f0071b2ffc94d758 -Author: Jim Nelson -Date: Fri Feb 4 23:43:36 2011 +0000 - - Build system now removes temp file leftover during VAPI creation. - -M src/plugins/mk/interfaces.mk - -commit 3499ae9535d2404bdc10e044d1f75da51d642704 -Author: Jim Nelson -Date: Fri Feb 4 23:31:57 2011 +0000 - - #3121: Fixed critical warning in progress bar. Needed to wait for - realize signal (which means the GDK window object has been created) - before calling methods on the GDK window. - -M src/Dialogs.vala - -commit 535317def33a6ec7015c022926fb623fa25519fa -Author: Clinton Rogers -Date: Fri Feb 4 00:32:05 2011 +0000 - - Dialogs: made the Preferences dialog regain focus if the user chooses - 'Edit -> Preferences' a second time (trac #3001) - PiwigoConnector: changed the mnemonic for the 'Username' field from - 'U' to 'N' (#3002) - -M src/Dialogs.vala -M src/PiwigoConnector.vala - -commit 6210207f931d85dd0abbb7980962223552ff2a06 -Author: Jim Nelson -Date: Thu Feb 3 23:24:20 2011 +0000 - - #2450: Toolbar now remains pinned in fullscreen mode. Courtesy Philip - Beam. - -M src/AppWindow.vala -M src/PhotoPage.vala - -commit 2d4a043b1395c57466baa98b15893bfe59ddd079 -Author: Lucas Beeler -Date: Thu Feb 3 03:24:01 2011 +0000 - - Refines the new publishing API so that the plugin host completely - encapsulates operations on temporary files. This way, plugin writers - don't have to deal with temporaries. Changed the reference Facebook - plugin to conform to the changed API. - -M src/WebConnectors.vala -M src/plugins/PublishingInterfaces.vala -M src/publishing/APIGlue.vala -M src/publishing/FacebookPublishing.vala -M src/publishing/PublishingPluginHost.vala - -commit bcb052e528ef88bad218a2e9384ce31122d00669 -Author: Jim Nelson -Date: Thu Feb 3 01:16:56 2011 +0000 - - #601: Import TIFF files. This represents basic TIFF support, 8-bit - pipeline only, using gdk-pixbuf as the support library. - -M Makefile -M misc/shotwell-viewer.desktop.head -M src/BatchImport.vala -M src/Photo.vala -R100 src/GRaw.vala src/photos/GRaw.vala -R092 src/GdkSupport.vala src/photos/GdkSupport.vala -R100 src/JfifSupport.vala src/photos/JfifSupport.vala -R100 src/PhotoFileAdapter.vala src/photos/PhotoFileAdapter.vala -R092 src/PhotoFileFormat.vala src/photos/PhotoFileFormat.vala -R100 src/PhotoFileSniffer.vala src/photos/PhotoFileSniffer.vala -R100 src/PhotoMetadata.vala src/photos/PhotoMetadata.vala -A src/photos/Photos.vala -R100 src/PngSupport.vala src/photos/PngSupport.vala -R100 src/RawSupport.vala src/photos/RawSupport.vala -A src/photos/TiffSupport.vala -A src/photos/mk/photos.mk -M units.mk - -commit 30102cc21ff921875a2e3d198d7413473dd67e33 -Author: Jim Nelson -Date: Thu Feb 3 00:53:26 2011 +0000 - - #3148: Moved AlienDb/F-Spot import menu actions into LibraryWindow - as a common action. - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/MediaPage.vala -M src/OfflinePage.vala -M src/Page.vala -M src/PhotoPage.vala -M src/TrashPage.vala -M src/VideosPage.vala -M ui/direct.ui -M ui/event.ui -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/media.ui -M ui/offline.ui -M ui/photo.ui -M ui/tags.ui -M ui/trash.ui - -commit 40dde946f7418065c554cdb3f9459c37ca1bbcfa -Author: Jim Nelson -Date: Wed Feb 2 23:54:49 2011 +0000 - - #3096: Unitize the alien database/F-Spot import code. Courtesy Bruno - Girin. - -M Makefile -D src/AlienDatabase.vala -M src/Dialogs.vala -M src/EventsDirectoryPage.vala -D src/FSpotDatabaseDriver.vala -D src/FSpotDatabaseTables.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/MediaPage.vala -M src/OfflinePage.vala -M src/PhotoPage.vala -M src/TrashPage.vala -A src/alien_db/AlienDatabase.vala -A src/alien_db/AlienDatabaseDriver.vala -A src/alien_db/AlienDatabaseEvent.vala -A src/alien_db/AlienDatabaseHandler.vala -R093 src/AlienDatabaseImportDialog.vala -src/alien_db/AlienDatabaseImportDialog.vala -A src/alien_db/AlienDatabaseImportDialogController.vala -A src/alien_db/AlienDatabaseImportJob.vala -R054 src/AlienDatabaseImportJob.vala -src/alien_db/AlienDatabaseImportSource.vala -A src/alien_db/AlienDatabasePhoto.vala -A src/alien_db/AlienDatabaseTag.vala -A src/alien_db/AlienDatabaseVersion.vala -A src/alien_db/AlienDb.vala -A src/alien_db/DiscoveredAlienDatabase.vala -A src/alien_db/f_spot/AlienDb.FSpot.vala -A src/alien_db/f_spot/FSpotDatabase.vala -A src/alien_db/f_spot/FSpotDatabaseBehavior.vala -A src/alien_db/f_spot/FSpotDatabaseDriver.vala -A src/alien_db/f_spot/FSpotDatabaseEvent.vala -A src/alien_db/f_spot/FSpotDatabasePhoto.vala -A src/alien_db/f_spot/FSpotDatabaseTable.vala -A src/alien_db/f_spot/FSpotDatabaseTag.vala -A src/alien_db/f_spot/FSpotMetaTable.vala -A src/alien_db/f_spot/FSpotPhotoTagsTable.vala -A src/alien_db/f_spot/FSpotPhotoVersionsTable.vala -A src/alien_db/f_spot/FSpotPhotosTable.vala -A src/alien_db/f_spot/FSpotRollsTable.vala -A src/alien_db/f_spot/FSpotTableBehavior.vala -A src/alien_db/f_spot/FSpotTagsTable.vala -A src/alien_db/f_spot/mk/f_spot.mk -A src/alien_db/mk/alien_db.mk -M src/main.vala -M ui/shotwell.glade -M units.mk - -commit 0b1cd2bc538a9b7e5f5aa66756789bf39f9d1813 -Author: Lucas Beeler -Date: Wed Feb 2 02:28:13 2011 +0000 - - Ports the Facebook connector to the new publishing API. Includes - refinements to the publishing API to support the ported Facebook - connector as well as the soon-to-be-ported Picasa connector. - -M src/Config.vala -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/PicasaConnector.vala -M src/PiwigoConnector.vala -M src/WebConnectors.vala -M src/YandexConnector.vala -M src/YouTubeConnector.vala -M src/plugins/Plugins.vala -M src/plugins/PublishingInterfaces.vala -A src/publishing/APIGlue.vala -A src/publishing/FacebookPublishing.vala -A src/publishing/Publishing.vala -A src/publishing/PublishingPluginHost.vala -A src/publishing/mk/publishing.mk -M units.mk - -commit c708b1b6875e33ae351b5e2e1cda3a65f2331ae0 -Author: Jim Nelson -Date: Wed Feb 2 01:04:59 2011 +0000 - - #2705: Maximum Vala compiler version now checked during build. - -M Makefile -A chkver -D minver -M src/plugins/mk/interfaces.mk - -commit 61f1440c12517de2024096d8bb616601484fbc76 -Author: Jim Nelson -Date: Tue Feb 1 23:26:53 2011 +0000 - - #2519: Migration from DBus GLib to GDBus. - -M Makefile -M debian/control -M src/Screensaver.vala - -commit ef9c4b4bf527da5c345dc7f47c5f74d06027bf0c -Author: Jim Nelson -Date: Tue Feb 1 21:20:34 2011 +0000 - - #3142: Fixes segfault if a transition is occurring when the window - is destroyed. - -M src/Page.vala - -commit 87e6fdcf9ea1d4e50535dca62ac240ca85bf9885 -Author: Jim Nelson -Date: Tue Feb 1 21:15:36 2011 +0000 - - #2527: Cairo now used for all drawing. Courtesy Siddhesh Poyarekar. - -M THANKS -M src/CheckerboardLayout.vala -M src/EditingTools.vala -M src/EventsDirectoryPage.vala -M src/MediaPage.vala -M src/Page.vala -M src/PhotoPage.vala -M src/slideshow/TransitionEffects.vala -M src/util/image.vala - -commit 3aea9ec212919bcec87d184b6c4a760b54de03bc -Author: Jim Nelson -Date: Tue Feb 1 02:59:31 2011 +0000 - - #3114: mkunit and Makefile now handle subunits properly. Courtesy - Bruno Girin. - -M Makefile -M mkunit - -commit 1514b4ab387883e1c9837750d0029a1aff2d9e7b -Author: Jim Nelson -Date: Tue Feb 1 00:24:40 2011 +0000 - - #2869: Delete tag with the Delete button. Courtesy Philip Beam. - -M src/LibraryWindow.vala -M src/Page.vala -M src/Sidebar.vala -M src/TagPage.vala - -commit 87354b7a7e16a38b0cc210d518ba26079b45b4d0 -Author: Jim Nelson -Date: Mon Jan 31 23:03:37 2011 +0000 - - #2987: Now using VFS to retrieve file's mime-type to verify it's a - video rather than a hard-coded list of extensions. Courtesy Bruno - Girin. - -M Makefile -M src/VideoSupport.vala - -commit ec3f579adef5300958b9b34d08cb0ee9f3df21f3 -Author: Adam Dingle -Date: Wed Jan 26 18:29:11 2011 +0000 - - Fixed #3127 (Shotwell fails to build on trunk), replacing a - non-portable - echo command with printf. - -M src/plugins/mk/interfaces.mk - -commit 212a7309ca0260be779b18da0f8b20bc8ef7a5b8 -Author: Adam Dingle -Date: Mon Jan 24 18:42:59 2011 +0000 - - A patch from Bruno Girin: - Fixed #3113 (Original date displayed as 01/m/2011 in adjust date - and time - dialog). - -M po/en_GB.po -M po/tr.po - -commit fe1aed931f607f2d45ba8eb37dda4a78b320dc5a -Author: Jim Nelson -Date: Fri Jan 21 01:31:01 2011 +0000 - - #182: Further work on the plugins interface. First live - implementation of Shotwell plugins included in this commit: Slideshow - transitions. - -M Makefile -M plugins/Makefile -M plugins/Makefile.plugin.mk -M plugins/plugins.mk -A plugins/shotwell-transitions/CrumbleEffect.vala -A plugins/shotwell-transitions/FadeEffect.vala -A plugins/shotwell-transitions/Makefile -A plugins/shotwell-transitions/SlideEffect.vala -A plugins/shotwell-transitions/shotwell-transitions.vala -M plugins/spitter/Makefile -M plugins/spitter/spitter.vala -M src/Config.vala -M src/Page.vala -M src/SlideshowPage.vala -M src/plugins/Plugins.vala -M src/plugins/SpitInterfaces.vala -A src/plugins/TransitionsInterfaces.vala -A src/plugins/mk/interfaces.mk -M src/plugins/mk/plugins.mk -M src/slideshow/Slideshow.vala -M src/slideshow/TransitionEffects.vala -M src/slideshow/mk/slideshow.mk -M src/util/misc.vala - -commit 1b6c3c4362f22ea2c2dd3f27b747271d4ce3c792 -Author: Jim Nelson -Date: Tue Jan 18 23:32:06 2011 +0000 - - #1081: Slideshow transitions, including Fade, Shift, and Tear down. - Courtesy Maxim Kartashev. - -M THANKS -M src/AppWindow.vala -M src/Config.vala -M src/Page.vala -M src/SlideshowPage.vala -M src/plugins/Plugins.vala -M src/plugins/mk/plugins.mk -A src/slideshow/Slideshow.vala -A src/slideshow/TransitionEffects.vala -C085 src/unit/rc/template.mk src/slideshow/mk/slideshow.mk -M src/unit/rc/template.mk -M src/util/misc.vala -M src/util/string.vala -M units.mk - -commit d0a1fdf2ec5a25889ffcabd0545b70d3fd328655 -Author: Jim Nelson -Date: Tue Jan 18 02:41:35 2011 +0000 - - #182: Further work in building infrastructure to support plug-ins. - -M Makefile -A plugins/Makefile -A plugins/Makefile.plugin.mk -A plugins/plugins.mk -A plugins/spitter/Makefile -A plugins/spitter/spitter.vala -M src/AppDirs.vala -M src/DirectoryMonitor.vala -M src/plugins/Plugins.vala -A src/plugins/SpitInterfaces.vala -M src/plugins/mk/plugins.mk -M src/util/Util.vala - -commit ca262ebc3334fcb51cfe65e4ec426f49d623b4bb -Author: Eric Gregory -Date: Sat Jan 15 01:45:50 2011 +0000 - - #80 search filter! - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/Config.vala -M src/DataCollection.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/MediaPage.vala -M src/PhotoPage.vala -M src/VideosPage.vala - -commit ff4367cb8f70f38c8b4f2db0d6dd321ca4c5cae9 -Author: Lucas Beeler -Date: Sat Jan 15 01:24:57 2011 +0000 - - This commits the "chilled" version of the Publishing Plugins API - that will be used to develop the first reference plugin. - -M src/plugins/PublishingInterfaces.vala - -commit dd0844f0a9d4033fe5cba4adf2fcb894a2c4b8e1 -Author: Jim Nelson -Date: Fri Jan 14 20:07:45 2011 +0000 - - #3097: Fixes problem in sidebar where renaming one event renames - a second. Courtesy Philip Beam. - -M src/Sidebar.vala - -commit a2335d6fae3d0241ef68e7b1a885da4c52464d93 -Author: Jim Nelson -Date: Fri Jan 14 00:51:19 2011 +0000 - - #182: First step toward publishing plugins. This establishes the - plugins unit and makes first-stab declarations toward interfaces - that will be used in the publishing process. - -M mkunit -A src/plugins/Plugins.vala -A src/plugins/PublishingInterfaces.vala -C092 src/unit/rc/template.mk src/plugins/mk/plugins.mk -M src/unit/rc/template.mk -M units.mk - -commit 0ccb3d1fe7d99dc26fc7ca77cf6550513941992e -Author: Eric Gregory -Date: Wed Jan 12 20:07:48 2011 +0000 - - #3065 crank it up to 2011 - -M INSTALL -M README -M configure -M debian/copyright -M help/C/Makefile -M libraw-config -M minver -M src/AlienDatabase.vala -M src/AlienDatabaseImportDialog.vala -M src/AlienDatabaseImportJob.vala -M src/AppDirs.vala -M src/AppWindow.vala -M src/Application.vala -M src/BatchImport.vala -M src/Box.vala -M src/CameraTable.vala -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/ColorTransformation.vala -M src/CommandManager.vala -M src/Commands.vala -M src/Config.vala -M src/CustomComponents.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/Debug.vala -M src/DelayedQueue.vala -M src/DesktopIntegration.vala -M src/Dialogs.vala -M src/Dimensions.vala -M src/DirectWindow.vala -M src/DirectoryMonitor.vala -M src/EditingTools.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/Exporter.vala -M src/FSpotDatabaseDriver.vala -M src/FSpotDatabaseTables.vala -M src/FacebookConnector.vala -M src/FlaggedPage.vala -M src/FlickrConnector.vala -M src/GPhoto.vala -M src/GRaw.vala -M src/GdkSupport.vala -M src/ImportPage.vala -M src/International.vala -M src/JfifSupport.vala -M src/LastImportPage.vala -M src/LibraryFiles.vala -M src/LibraryMonitor.vala -M src/LibraryWindow.vala -M src/MediaDataRepresentation.vala -M src/MediaInterfaces.vala -M src/MediaMetadata.vala -M src/MediaMonitor.vala -M src/MediaPage.vala -M src/MetadataWriter.vala -M src/MimicManager.vala -M src/OfflinePage.vala -M src/Orientation.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoFileAdapter.vala -M src/PhotoFileFormat.vala -M src/PhotoFileSniffer.vala -M src/PhotoMetadata.vala -M src/PhotoMonitor.vala -M src/PhotoPage.vala -M src/PicasaConnector.vala -M src/PixbufCache.vala -M src/PngSupport.vala -M src/Printing.vala -M src/Properties.vala -M src/RawSupport.vala -M src/Resources.vala -M src/Screensaver.vala -M src/Sidebar.vala -M src/SlideshowPage.vala -M src/SortedList.vala -M src/Tag.vala -M src/TagPage.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala -M src/TimedQueue.vala -M src/Tombstone.vala -M src/TrashPage.vala -M src/VideoMetadata.vala -M src/VideoMonitor.vala -M src/VideoSupport.vala -M src/VideosPage.vala -M src/WebConnectors.vala -M src/YouTubeConnector.vala -M src/db/DatabaseTable.vala -M src/main.vala -M src/threads/Workers.vala -M src/util/file.vala -M src/util/image.vala -M src/util/misc.vala -M src/util/string.vala -M src/util/system.vala -M vapi/ExtendedPosix.vapi -M vapi/LConv.vapi -M vapi/gphoto.h -M vapi/libexif.vapi -M vapi/libgphoto2.vapi -M vapi/libraw.vapi - -commit ffa14fb2aa8fd1310fdd4f33c6002594b89a6349 -Author: Jim Nelson -Date: Wed Jan 12 02:36:32 2011 +0000 - - Termination order was incorrect. - -M src/unit/rc/UnitInternals.m4 - -commit d0973db72c9af793b1d29d8a3976e51929476abf -Author: Jim Nelson -Date: Wed Jan 12 00:56:55 2011 +0000 - - #2650: Major reorganization of Shotwell source into units, which - puts code of related or similar functionality into logical groupings. - Code is now "unitized" or "ununitized". Four new units are introduced - here (unit, util, db, and threads). More will follow, so that the - reorg is in small stages and not one fell swoop. - -M Makefile -A mkunit -A mkvala -D src/DatabaseTables.vala -A src/db/DatabaseTable.vala -A src/db/Db.vala -A src/db/EventTable.vala -A src/db/PhotoTable.vala -A src/db/TagTable.vala -A src/db/TombstoneTable.vala -A src/db/VersionTable.vala -A src/db/VideoTable.vala -A src/db/mk/db.mk -M src/main.vala -R059 src/Workers.vala src/threads/BackgroundJob.vala -A src/threads/Semaphore.vala -A src/threads/Threads.vala -A src/threads/Workers.vala -A src/threads/mk/threads.mk -A src/unit/Unit.vala -A src/unit/mk/unit.mk -A src/unit/rc/Unit.m4 -A src/unit/rc/UnitInternals.m4 -A src/unit/rc/template.mk -A src/unit/rc/template.vala -A src/unit/rc/unitize_entry.m4 -A src/util/KeyValueMap.vala -A src/util/Util.vala -R100 src/file_util.vala src/util/file.vala -R100 src/image_util.vala src/util/image.vala -R084 src/util.vala src/util/misc.vala -A src/util/mk/util.mk -R100 src/string_util.vala src/util/string.vala -R100 src/system.vala src/util/system.vala -A unitize.mk -A units.mk - -commit 3cdf4ab28597c554dd4cd4d917198a82cc9f2b20 -Author: Eric Gregory -Date: Wed Jan 12 00:39:35 2011 +0000 - - #2981 added FAQ - -M src/AppWindow.vala -M src/Resources.vala -M ui/direct.ui -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/media.ui -M ui/offline.ui -M ui/photo.ui -M ui/trash.ui - -commit 88524ca6b187a946afc098a5f20cf66ed97463e6 -Author: Eric Gregory -Date: Tue Jan 11 21:04:04 2011 +0000 - - #2846 #2647 view collection now copied when entering single photo mode - -M src/DataCollection.vala -M src/DataObject.vala -M src/Page.vala -M src/PhotoPage.vala - -commit 90cf27c28dcf0e700697dfeab0fdfee7d21eb743 -Author: Jim Nelson -Date: Tue Jan 11 21:03:53 2011 +0000 - - #2490: Renaming event or tag now sticks when Enter or clicked away. - Courtesy Philip Beam. - -M src/Sidebar.vala - -commit dcaebd1fb027d97d9ee48ebfef8670f3651eb687 -Author: Lucas Beeler -Date: Tue Jan 11 04:04:22 2011 +0000 - - Updated version numbers of the Makefile, POT file, and all PO files - to 0.8.1+trunk following the Shotwell 0.8.1 release. - -M Makefile -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/eu.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/he.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/kk.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/mk.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/pt_BR.po -M po/ro.po -M po/ru.po -M po/shotwell.pot -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit 414e0d5f23cd44d6974f9ed0e605deda37676c92 -Author: Lucas Beeler -Date: Tue Jan 11 04:01:54 2011 +0000 - - Merged the debian/changelog file from the 0.8.x branch into trunk - following the release of Shotwell 0.8.1. - -M debian/changelog - -commit 17346e4a372fd59172b3bb545debab50419c6e8a -Author: Lucas Beeler -Date: Tue Jan 11 03:59:57 2011 +0000 - - Merged NEWS file from the 0.8.x release branch following the relase - of Shotwell 0.8.1. - -M NEWS - -commit 86a8c6f3f4b6b2133d6333b1df927caebc6caae2 -Author: Eric Gregory -Date: Tue Jan 11 02:57:29 2011 +0000 - - #2979 specific error when unable to import to library folder - -M src/BatchImport.vala -M src/Dialogs.vala -M src/Photo.vala - -commit d8059e5ae0e06fcab446b3d012e59759d7c13b03 -Author: Jim Nelson -Date: Mon Jan 10 23:11:48 2011 +0000 - - #2874: Only show the progress dialog box after a small amount of - time has elapsed, to prevent it flashing on the screen for quick - operations. Courtesy Maxim. - -M src/Dialogs.vala - -commit 30fb90b3f6a53f84bc4a178cefeb7ca03c18b4a9 -Merge: dcda7c93 3434f5c6 -Author: Jim Nelson -Date: Fri Jan 7 23:10:44 2011 +0000 - - Merge from branch shotwell-0.8. - -commit 3434f5c6564742026576c174080fe68b973ba08e -Author: Jim Nelson -Date: Fri Jan 7 23:09:06 2011 +0000 - - #3076: ImportPage wasn't deleting videos if the user requested it. - -M src/ImportPage.vala - -commit 176553cf0e83737afe17072f4958975fdb9bf69f -Author: Jim Nelson -Date: Fri Jan 7 22:47:55 2011 +0000 - - #3075: Add/Modify Tags was missing in Videos context menu. - Courtesty Richard B. Kreckel. - -M THANKS -M ui/video.ui - -commit dcda7c9344f4cb21ef16a63617d225fdcaf78c9b -Merge: 678e772b e8930156 -Author: Jim Nelson -Date: Fri Jan 7 00:58:08 2011 +0000 - - Merge from 0.8 branch. - -commit e89301566b2d7afd5650b58ba9ab7ba341603f0b -Author: Jim Nelson -Date: Fri Jan 7 00:52:07 2011 +0000 - - #3020: Fixes a situation where an invalid tag name (blank or all - spaces) makes it way into the database and then can't be added to - a tag lookup table at startup. - -M src/Photo.vala -M src/Tag.vala - -commit cddc373eaa368c6f7e4f9361a11cbb00cce18632 -Author: Eric Gregory -Date: Thu Jan 6 00:24:12 2011 +0000 - - #3041 removed FLUSH flag - -M src/VideoSupport.vala - -commit 678e772bdcfc98edce921f456e948b96abb47e27 -Author: Eric Gregory -Date: Thu Jan 6 00:19:54 2011 +0000 - - #3041 removed FLUSH flag - -M src/VideoSupport.vala - -commit e66d51505845aa053bd17e24e9a7e40e7c72a63f -Author: Jim Nelson -Date: Thu Jan 6 00:13:42 2011 +0000 - - #3014: Similar to #3033, but this deals not with an empty keyword - list but when the keyword list is nothing but spaces. - -M src/MetadataWriter.vala -M src/PhotoMetadata.vala - -commit 4d27bbf23c7757cfcba6e8685ebf99b98ee0de9c -Merge: 25f0eb52 31333fee -Author: Jim Nelson -Date: Wed Jan 5 02:17:11 2011 +0000 - - Merge of 0.8.0+branch to trunk. - -commit 31333fee721b0d4830be0bd2a0181a8ca4702eea -Author: Jim Nelson -Date: Wed Jan 5 02:10:34 2011 +0000 - - #3057: Fixes problem reading video metadata from certain MP4/Quicktime - files. - -M src/VideoMetadata.vala - -commit d77de150b1f94cd409ccf474db965c1331fce33e -Author: Vera Yin -Date: Wed Jan 5 01:04:56 2011 +0000 - - Updated Italian and Portuguese translations in 0.8 branch. - -M po/it.po -M po/pt.po - -commit 09af5174121e5b8d752078df543759e42b5b5fee -Author: Jim Nelson -Date: Wed Jan 5 00:18:22 2011 +0000 - - #3056: Added support for the Samsung RAW format (.srw) - -M src/Photo.vala -M src/RawSupport.vala - -commit cc8d2972911c167f4fcfcb648ca46853e283c13a -Author: Jim Nelson -Date: Tue Jan 4 21:00:57 2011 +0000 - - #3033: Importing a file with an empty keyword list in its metadata - caused Shotwell to segfault. - -M src/PhotoMetadata.vala - -commit 0116f5d4bdb25430782f1ca1ced14730ce62492c -Author: Jim Nelson -Date: Tue Jan 4 00:30:17 2011 +0000 - - #3030: 3GP support (originally added to trunk in r2529) merged into - 0.8 branch. - -M src/VideoSupport.vala - -commit ee4b4f883ce3b22038fff47af8eb86bc5b5c72f0 -Author: Jim Nelson -Date: Tue Jan 4 00:00:44 2011 +0000 - - #3050: Fixes build error with Vala 0.10.2. Also discovered during - testing that we no longer build on Vala 0.9.7 (our stated minimum - version). We now require 0.9.8. - -M Makefile -M debian/control -M src/Dialogs.vala - -commit 0f74aa7604c7b39fdbff1ceac60fe468fe732ccf -Author: Jim Nelson -Date: Mon Jan 3 20:02:03 2011 +0000 - - Oops! Never committed necessary changes to packaging 0.8. - Here they are. - -M Makefile -M NEWS -M README -M debian/changelog -M debian/control - -commit 25f0eb524a5773c76a5f67c26d5c978beb8e6af4 -Author: Eric Gregory -Date: Wed Dec 29 20:27:30 2010 +0000 - - Reverting change from r2530 - -M src/Sidebar.vala - -commit f36a021b2c21248c02ce5d01a87f73382411ad9a -Author: Eric Gregory -Date: Wed Dec 29 20:21:00 2010 +0000 - - #2869 delete tag on sidebar - -M src/Sidebar.vala - -commit 6fa3d6e926cc99339660df957cf8413963adcc1a -Author: Adam Dingle -Date: Mon Dec 27 14:31:14 2010 +0000 - - Added .3gp and .3g2 to the list of video file extensions. - -M src/VideoSupport.vala - -commit c65b5a29255415d26a9a4f678b5d1811789feec6 -Author: Eric Gregory -Date: Fri Dec 24 00:38:47 2010 +0000 - - #2310 date comparison will compare against filenames when dates - are equal - -M src/Thumbnail.vala - -commit 6e9864587c36d25e17dc0695b27dc478c4f0b8ac -Author: Eric Gregory -Date: Fri Dec 24 00:33:17 2010 +0000 - - #2905 strip extra bytes off end of GPhoto thumbnails - -M src/GPhoto.vala - -commit 374be5aa69a6025f50073503be588695a965a98e -Author: Eric Gregory -Date: Fri Dec 24 00:24:35 2010 +0000 - - #2877 Camera icons from GIO - -M src/CameraTable.vala -M src/CollectionPage.vala -M src/EventsDirectoryPage.vala -M src/FlaggedPage.vala -M src/ImportPage.vala -M src/LastImportPage.vala -M src/LibraryWindow.vala -M src/OfflinePage.vala -M src/Page.vala -M src/Sidebar.vala -M src/TagPage.vala -M src/TrashPage.vala -M src/VideosPage.vala - -commit 2e39f98e84b34705225acb010374e5734e6a6ccf -Author: Vera Yin -Date: Thu Dec 23 22:55:34 2010 +0000 - - Langtouched newest translations. - -M po/hu.po -M po/sv.po -M po/tr.po - -commit 023d62c6241a7ae448bdacca2d5234d78a91da8a -Author: Vera Yin -Date: Thu Dec 23 22:52:37 2010 +0000 - - Updated Hungarian, Swedish, and Turkish translations in shotwell-0.8 - branch. - -M po/hu.po -M po/sv.po -M po/tr.po - -commit 03e474e4d577226b62b16475ebcafef470c91ad6 -Author: Vera Yin -Date: Thu Dec 23 20:31:47 2010 +0000 - - Langtouched po files to version shotwell-0.8.0 in branch. - -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/eu.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/he.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/kk.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/mk.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/pt_BR.po -M po/ro.po -M po/ru.po -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit d5f90aead104018188afa577eb67979736fa8551 -Author: Jim Nelson -Date: Thu Dec 23 20:07:45 2010 +0000 - - Updating trunk version to 0.8.0+trunk. - -M Makefile - -commit 56ebcd8aa00ef89fc8e8c9dcf08d619bc5b2a9b9 -Author: Jim Nelson -Date: Thu Dec 23 20:06:01 2010 +0000 - - 0.8 branch. - -commit 2b4a4b038de27615c0930390b43de4497137ac7c -Author: Jim Nelson -Date: Thu Dec 23 20:03:05 2010 +0000 - - #3010: Fixed warnings in full-window mode (usually only appear when - a file is missing). - -M src/PhotoPage.vala - -commit da2d50ee071c53bc494da281da031fa3df33e052 -Author: Jim Nelson -Date: Thu Dec 23 16:34:01 2010 +0000 - - Cleaning up the Mallard Makefile. - -M help/C/Makefile - -commit 177aa77cf50996265ba458f8099489f27b175e7d -Author: Vera Yin -Date: Thu Dec 23 03:57:30 2010 +0000 - - The Makefile that Mallard should have supplied. - -A help/C/Makefile - -commit 16b82ecea3dd2a2d33f425094b78f13eccdf90ae -Author: Jim Nelson -Date: Thu Dec 23 02:09:16 2010 +0000 - - Fixed a mistake in the Print help page. - -M help/C/share-print.page - -commit 7d99e750516194c1c5aba48a26f24cb861831d20 -Author: Adam Dingle -Date: Thu Dec 23 01:43:58 2010 +0000 - - Three new help pages. - -A help/C/organize-flag.page -A help/C/other-files.page -A help/C/share-send.page - -commit e6a15fbadf73d5da8b321a783885b69010602e5f -Author: Vera Yin -Date: Thu Dec 23 01:39:32 2010 +0000 - - Updated documentation - fixed href links. - -M help/C/index.page -M help/C/share-upload.page - -commit 355ebdd8e36c98c590fb6544e38b7d46cbea3c7f -Author: Jim Nelson -Date: Wed Dec 22 17:51:54 2010 +0000 - - #2998: Solves memory leak problem without causing problem discovered - in #3006. - -M src/BatchImport.vala - -commit 8f9bebac81e34e851188374994352b7a1f6726a8 -Author: Adam Dingle -Date: Wed Dec 22 13:22:02 2010 +0000 - - Backed out r2509 since it broke importing. - -M src/BatchImport.vala - -commit 53c9df3742c9122ccb52a5ed7d6e1b0329009dd6 -Author: Jim Nelson -Date: Wed Dec 22 02:42:03 2010 +0000 - - #2998: Solves memory leak when importing photos. - -M src/BatchImport.vala - -commit 753843f838d944cfe8b027f1825380f16420cc78 -Author: Eric Gregory -Date: Wed Dec 22 02:41:08 2010 +0000 - - #3000 can now select pre-selected library folder - -M src/Dialogs.vala - -commit 467b34f8ffe0d62d39d42eaaed9252b424346333 -Author: Eric Gregory -Date: Wed Dec 22 01:53:58 2010 +0000 - - #3000 allow invalid photo lib folder - -M src/Dialogs.vala - -commit 4b1b0c77f3ad6c829b848a0e82f24e6690067010 -Author: Jim Nelson -Date: Wed Dec 22 01:35:26 2010 +0000 - - #2988 and #2502: When keywords are altered in the master or editable - file, now replacing Shotwell tags with those in the file. Lucas did - prelim on this ticket. - -M src/Photo.vala -M src/Tag.vala -M src/util.vala - -commit 25a9e638d1c6f3afb6f4a5ec558f624a2ae997cf -Author: Jim Nelson -Date: Tue Dec 21 23:31:32 2010 +0000 - - A warning that was leftover from r2504. - -M src/BatchImport.vala - -commit b08022ff8b3b4ddc2e957f1f1b0582347629dc40 -Author: Jim Nelson -Date: Tue Dec 21 22:52:36 2010 +0000 - - A user sent me a file that Shotwell would not import. It turns out - BatchImport was not handling the error case of a file with unreadable - metadata (which can happen with RAW files) properly, treating it as - a hard error. This fixes that problem. - -M src/BatchImport.vala - -commit 7ae8c964e5e21c0dc653f1a7f0d3cfa401d52227 -Author: Jim Nelson -Date: Tue Dec 21 19:53:44 2010 +0000 - - #2969: Auto-import was not detecting content duplicates and importing - them. BatchImport would then detect the MD5 duplicate and untrash - the matching file. This fixes that. - -M src/BatchImport.vala -M src/LibraryMonitor.vala - -commit b68704d3ad54d1c8f0d7248b72e8188e23f6e5d1 -Author: Jim Nelson -Date: Tue Dec 21 06:27:22 2010 +0000 - - #2994: Fixed regression with handling fullscreen mode with photos - and videos present. - -M src/CollectionPage.vala -M src/Event.vala -M src/EventsDirectoryPage.vala - -commit e991aee3d22fd5d327841020b14c03cf636449ee -Author: Jim Nelson -Date: Tue Dec 21 05:52:54 2010 +0000 - - #2990 and #2991: Nasty, nasty memory leak caused by three bugs working - in concert to keep the HTTP payload (worse case, an entire video file) - in memory. - -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/PicasaConnector.vala -M src/PiwigoConnector.vala -M src/WebConnectors.vala -M src/YandexConnector.vala -M src/YouTubeConnector.vala - -commit 33b60c9edb901df87ac3a71f3ef7fe770ab036a7 -Author: Jim Nelson -Date: Tue Dec 21 05:47:19 2010 +0000 - - #3003: The command (undo/redo) stack is reset when a new file is - loaded into the photo viewer (saving a photo entails a re-load, - so it works for this as well). - -M src/PhotoPage.vala - -commit 8612d155ca753116170d16befebd33458b941d36 -Author: Jim Nelson -Date: Mon Dec 20 21:36:15 2010 +0000 - - Recent change to handle fullscreen mode didn't take into account how - the ImportPage guards against fullscreen mode. Shouldn't error out, - returning null is the proper way. - -M src/ImportPage.vala - -commit b9f28d27232d136770cb72f5b11df16383646d26 -Author: Eric Gregory -Date: Mon Dec 20 21:20:59 2010 +0000 - - #2997 crash when video wasn't readable - -M src/BatchImport.vala - -commit e186d2cbc1986c1dcc7ca26d4dbe1b80fb0f41e8 -Author: Lucas Beeler -Date: Mon Dec 20 21:11:11 2010 +0000 - - Fixes #2973. - -M src/DatabaseTables.vala -M src/Photo.vala - -commit 1e1cd92bc30143a08e45881ac00bec2087976924 -Author: Adam Dingle -Date: Mon Dec 20 20:23:36 2010 +0000 - - Updated documentation. - -M help/C/edit-adjustments.page -M help/C/edit-enhance.page -M help/C/edit-nondestructive.page -M help/C/edit-redeye.page -M help/C/edit-undo.page -M help/C/formats.page -M help/C/organize-remove.page -M help/C/organize-title.page -M help/C/other-missing.page -M help/C/other-multiple.page -M help/C/share-upload.page -M help/C/view-displaying.page -M help/C/view-information.page -M help/C/view-sidebar.page - -commit a2f0862c73d645c650799e3360b9beea585cd330 -Author: Jim Nelson -Date: Mon Dec 20 20:18:39 2010 +0000 - - #2994: Fixed how Fullscreen mode works, both in verifying that only - a photo may be the source of fullscreen mode and the Gtk.Action's - sensitivity. - -M src/AppWindow.vala -M src/LibraryWindow.vala -M src/Page.vala - -commit 4e6ea41b7bd95e8321d8c7dd4bf1943ec383ec92 -Author: Jim Nelson -Date: Mon Dec 20 19:34:29 2010 +0000 - - This fixes a crasher I found over the weekend where DirectoryMonitor - would assert if a directory was created and renamed or deleted before - the monitor was notified of the creation. - -M src/DirectoryMonitor.vala - -commit 270245459e8517fc155fa76a6370627c9c9b5c86 -Author: Eric Gregory -Date: Sat Dec 18 02:58:38 2010 +0000 - - #2893 #2587 use full image for batch import dupe detection, thread - issue in file import - -M src/BatchImport.vala - -commit daee5770dac49699d8dafe0246cdecea0728fe5c -Author: Jim Nelson -Date: Sat Dec 18 02:00:37 2010 +0000 - - #2982: Video duplicates now detected on camera import page. - -M src/ImportPage.vala -M src/Photo.vala -M src/VideoSupport.vala -M src/util.vala - -commit 34c120ce842544e27d55807292c2902dac45d1e9 -Author: Jim Nelson -Date: Sat Dec 18 00:42:02 2010 +0000 - - #2986: WMV video support. Courtesy Jani Monoses. - -M src/VideoSupport.vala - -commit 299ebe24b8f1ed41f1b9e6d7dc5f875d37746ed5 -Author: Adam Dingle -Date: Sat Dec 18 00:38:54 2010 +0000 - - First batch of documentation updates for 0.8. - -M help/C/edit-rotate.page -M help/C/formats.page -M help/C/import-file.page -M help/C/organize-event.page -M help/C/share-background.page -M help/C/share-export.page -M help/C/view-displaying.page -M help/C/view-sidebar.page - -commit 276b6bf7926b6ccfb0675dbcd8b28c75080a7481 -Author: Jim Nelson -Date: Fri Dec 17 23:50:14 2010 +0000 - - Assertions unnecessary and are triggered when importing video. - -M src/MetadataWriter.vala - -commit 6a5c9c820b881584bf812a2e7cb3d84106f9374e -Author: Jim Nelson -Date: Fri Dec 17 23:35:48 2010 +0000 - - #2984: MetadataWriter now knows when photos added to the - LibraryPhotoSourceCollection are coming in due to an import, and - will not see if they need to be updated. - -M src/AlienDatabaseImportJob.vala -M src/BatchImport.vala -M src/MediaDataRepresentation.vala -M src/MetadataWriter.vala -M src/Photo.vala - -commit 9b468d38ebe94d04df44fbff681cbd4a402e5b17 -Author: Lucas Beeler -Date: Fri Dec 17 23:19:33 2010 +0000 - - Pwns bug #2977. Hard. - -M src/PhotoMonitor.vala - -commit d4895b1a9e3b4a71ac87679b5a9dcfe23dcc302f -Author: Jim Nelson -Date: Fri Dec 17 01:29:06 2010 +0000 - - #2952: Now displaying Korean text properly. Using composed Unicode - within Shotwell for user text now. - -M src/Event.vala -M src/Photo.vala -M src/Tag.vala -M src/VideoSupport.vala -M src/string_util.vala - -commit 42b686d9ebc6a847f9c85eaf4628b03209b73be9 -Author: Jim Nelson -Date: Fri Dec 17 01:21:08 2010 +0000 - - Found a problem similar to one Eric encountered in - LibraryPhotoSourceCollection, which is that it's possible for - duplicate files (with same MD5) to be tombstoned, causing problems - with an internal lookup map. - -M src/BatchImport.vala -M src/LibraryMonitor.vala -M src/Tombstone.vala - -commit 4e222aafe298103bd2a494a612f529c142fc9953 -Author: Jim Nelson -Date: Thu Dec 16 23:57:57 2010 +0000 - - #2307: Symbolic links now fully supported in library monitoring and - auto-import. Symlinks still not supported in user-initiated import. - -M src/DirectoryMonitor.vala -M src/LibraryMonitor.vala - -commit b3d1402b565777eeea6711501211d5e8ccbf80b2 -Author: Adam Dingle -Date: Thu Dec 16 22:46:18 2010 +0000 - - Implemented #2980 (remove Help->User Manual command). - -M src/AppWindow.vala -M src/Resources.vala -M src/main.vala -M ui/direct.ui -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/media.ui -M ui/offline.ui -M ui/photo.ui -M ui/trash.ui - -commit 4ae6cb07b19a83013918df195e4be9e5c41ab8fa -Author: Lucas Beeler -Date: Thu Dec 16 22:33:43 2010 +0000 - - Fixes #2971. Special thanks to marcel for the submitting this patch! - -M src/MediaDataRepresentation.vala - -commit 2c835082935a9abfe7b75284d95a8ec89cb17967 -Author: Lucas Beeler -Date: Thu Dec 16 22:27:29 2010 +0000 - - Fixes #2976. - -M src/EditingTools.vala - -commit 9c82e011bc23565927876f8e19a58e1b25affa42 -Author: Eric Gregory -Date: Thu Dec 16 22:26:32 2010 +0000 - - #2975 left/right buttons appear correctly in direct mode - -M src/PhotoPage.vala - -commit 48f05ac67106cfa04b717a7ae6d0b95efca9b449 -Author: Jim Nelson -Date: Thu Dec 16 08:20:01 2010 +0000 - - #2487: Modified photos no longer imported as separate photos. - -M src/BatchImport.vala - -commit 914962251a2b4c5c2a9a8d2acceed76ced5fd85c -Author: Jim Nelson -Date: Thu Dec 16 08:04:59 2010 +0000 - - #2974: Lucas suggested a HashSet makes more sense here. - -M src/MetadataWriter.vala - -commit eb4db6fd2520ae51a7600b7f969551453dfdb2dc -Author: Jim Nelson -Date: Thu Dec 16 07:58:44 2010 +0000 - - Some reworking of MetadataWriter to make it less intrusive in - the system and to fix some of its bugs. There is also auxilliary - work here to make some of the commands more responsive. #2976: No - more assertion when undoing a move to trash while MetadataWriter - was at work. #2941 and #2978: MetadataWriter's progress bar is - more consistent now. #2974: Renamed tags are now written out to - master files. - -M src/Commands.vala -M src/DataCollection.vala -M src/Event.vala -M src/ImportPage.vala -M src/LibraryFiles.vala -M src/LibraryMonitor.vala -M src/MediaInterfaces.vala -M src/MetadataWriter.vala -M src/Photo.vala -M src/Tag.vala -M src/Thumbnail.vala -M src/TimedQueue.vala - -commit 969de6583ba78e847aa5fad4cdc21cfe0c91c6f2 -Author: Lucas Beeler -Date: Thu Dec 16 01:06:14 2010 +0000 - - Closes #2967. - -M src/DesktopIntegration.vala -M src/VideoSupport.vala - -commit 7338782817dea11e239121a69cc2cad8821f6912 -Author: Eric Gregory -Date: Thu Dec 16 00:57:02 2010 +0000 - - #2963 add write permission on import - -M src/LibraryFiles.vala - -commit 357cebb6dfa3be8e1089335e0867b6cc434c005f -Author: Eric Gregory -Date: Wed Dec 15 19:19:41 2010 +0000 - - #2894 moved SendTo in various menus - -M src/CollectionPage.vala -M src/VideosPage.vala -M ui/collection.ui -M ui/direct.ui -M ui/media.ui -M ui/photo.ui -M ui/video.ui - -commit f24e4912c7c2b16448b2bb029ec55f8f3cba425a -Author: Jim Nelson -Date: Wed Dec 15 05:18:20 2010 +0000 - - #2773: Fixed this problem by using gexiv2_get_tag_multiple(), which - returns an array of strings for a particular value. We're simply - using the first one for the title and description. - -M src/PhotoMetadata.vala - -commit 2f13c2edf86bf7c7ae5a149f09a39bff211c4e05 -Author: Jim Nelson -Date: Wed Dec 15 04:10:23 2010 +0000 - - #2830: When library directory is changed, a new LibrayMonitor object - is installed and the old one is closed. - -M src/Config.vala -M src/Dialogs.vala -M src/DirectoryMonitor.vala -M src/LibraryMonitor.vala -M src/LibraryWindow.vala -M src/MediaDataRepresentation.vala -M src/Photo.vala -M src/main.vala - -commit 890dd88f56f4eaf1c7b81f6b06a5e9dcfc52ae20 -Author: Eric Gregory -Date: Wed Dec 15 04:06:48 2010 +0000 - - #2879 and #2944 event firing unnecessary signals - -M src/Event.vala - -commit b03cb673d391f5c1eecb1950981a0ac559c8b1fb -Author: Eric Gregory -Date: Wed Dec 15 04:05:17 2010 +0000 - - #2603 tag renaming ui issue - -M src/LibraryWindow.vala - -commit 7b7803e52951a3bae7d88533ba81379076928995 -Author: Lucas Beeler -Date: Wed Dec 15 04:01:12 2010 +0000 - - Fixes #2766. - -M src/Config.vala -M src/WebConnectors.vala - -commit a97375bcbf1222f98b2b762e0ea81cc2593e965d -Author: Lucas Beeler -Date: Wed Dec 15 03:31:08 2010 +0000 - - Fixes #2542 and #2946. - -M src/PhotoPage.vala - -commit 848026801b90fa7707e0f1929f532fdbb2e1256f -Author: Eric Gregory -Date: Tue Dec 14 23:57:00 2010 +0000 - - #2914 undo event merges - -M src/Commands.vala - -commit 876effc163974b6fea3dbed9a7a98c0c375056c1 -Author: Vera Yin -Date: Tue Dec 14 02:26:46 2010 +0000 - - Updated all translations to include new Flickr sizes. - -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/eu.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/he.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/kk.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/mk.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/pt_BR.po -M po/ro.po -M po/ru.po -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit b2320d402d884bc4b8b2f24661edf31fab1d36ae -Author: Jim Nelson -Date: Tue Dec 14 02:01:32 2010 +0000 - - #2896: Current photo being imported is now logged. - -M src/BatchImport.vala - -commit 596dfa5e1855f6a1e56e4021b9d73fa2064ab24b -Author: Jim Nelson -Date: Tue Dec 14 01:48:19 2010 +0000 - - #2953: Fixed navigation in full-window mode to skip (rather than stop) - at videos in controller collection. - -M src/PhotoPage.vala - -commit f939a964cad727ef08fc5499c01e4a0cd6d9c2d0 -Author: Jim Nelson -Date: Tue Dec 14 01:34:35 2010 +0000 - - Fixed a bug introduced in r2458 where there's a need to search a - SortedList for an item whose underlying state has changed and is no - longer in sorted order. - -M src/DataCollection.vala -M src/SortedList.vala - -commit a14231bb0ec09b07403fed43b768e4cbd881b92b -Author: Jim Nelson -Date: Tue Dec 14 01:10:33 2010 +0000 - - #2907: Auto-import no longer starts on photos imported via a camera. - -M src/ImportPage.vala -M src/LibraryMonitor.vala - -commit 9cb72ac58c2f8ec6e9839b824248d01ff060952b -Author: Jim Nelson -Date: Tue Dec 14 00:36:56 2010 +0000 - - #2936: Fixed flag/unflag option going out of sync in full-window mode. - -M src/PhotoPage.vala - -commit b545691a54e53aa08991a1d0b5a7509057e408b4 -Author: Jim Nelson -Date: Tue Dec 14 00:02:22 2010 +0000 - - #2935: Tag assertion fixed. Images that were being imported had - UTF-8 issues and weren't being normalized. - -M src/AlienDatabaseImportJob.vala - -commit ebcaa8a7cb591c298d6f01e6eba05008c1ba6a63 -Author: Vera Yin -Date: Mon Dec 13 23:39:07 2010 +0000 - - Updated shotwell.pot with new Flickr upload sizes. - -M po/shotwell.pot - -commit 611f80f7f75f4503881c0ba8dcd2377a31b1fe59 -Author: Jim Nelson -Date: Mon Dec 13 23:29:57 2010 +0000 - - Changed searches in two locations to binary search, which makes a - noticeable difference with large collections (even simple operations, - like clicking on a photo toward the bottom of the Photos page). - -M src/CheckerboardLayout.vala -M src/SortedList.vala - -commit 10b89cdbee727c12752def8140aaffc6817fe583 -Author: Jim Nelson -Date: Mon Dec 13 23:06:21 2010 +0000 - - #2956: Fixed database assertion when upgrading from 0.7.2. Hopefully - using this new method, we won't be bitten by this going forward. - -M src/DatabaseTables.vala - -commit 4b846d008780631da1d0a2227c4cdd5cd4f2b492 -Author: Adam Dingle -Date: Mon Dec 13 22:45:44 2010 +0000 - - Added 2 new resolutions for Flickr publishing. - -M src/FlickrConnector.vala - -commit f01fe02a7aa24077dc5e86cd8b9d0e1793acbcc0 -Author: Eric Gregory -Date: Mon Dec 13 21:11:57 2010 +0000 - - #2960 removing duplicate photo triggers assertion - -M src/MediaDataRepresentation.vala - -commit f241f0212942c09df48cbd804eb7dd3387d63ffb -Author: Vera Yin -Date: Mon Dec 13 20:36:48 2010 +0000 - - Updated Russian translation to display 24-hour time. - -M po/ru.po - -commit b44fd0de2bfadcfcab2323136cfdfafaa37987ec -Author: Jim Nelson -Date: Sat Dec 11 05:05:17 2010 +0000 - - #2876: No longer monitoring hidden directories. - -M src/DirectoryMonitor.vala -M src/VideoMonitor.vala - -commit b62ac5e4723caefeafbf4f348fc2b6835af5155a -Author: Jim Nelson -Date: Sat Dec 11 04:52:58 2010 +0000 - - #2950: Improper ViewCollection filtering caused mass confusion when - items destined to be hidden were added. - -M src/CheckerboardLayout.vala -M src/DataCollection.vala - -commit 67308a399c8ba28e53a9fea0c16d239edf6364f6 -Author: Jim Nelson -Date: Sat Dec 11 02:52:54 2010 +0000 - - Further tweaks I found after the changes I made this morning. - -M src/VideoMetadata.vala - -commit ec302fba3f425d558c8fea07aba66ebfb33ef8d7 -Author: Jim Nelson -Date: Sat Dec 11 02:25:57 2010 +0000 - - Change to TRACE_MONITORING message to make it easier to track - notifications. - -M src/DirectoryMonitor.vala - -commit 7c880a61d1c33fa075cd436ffc907ff8e3b87a8e -Author: Eric Gregory -Date: Sat Dec 11 01:50:44 2010 +0000 - - #2927 resolved some assertion issues when removing photos - -M src/DataCollection.vala -M src/PhotoPage.vala - -commit fa1cef2778c642a3632fc09f4649798515e0d1f6 -Author: Eric Gregory -Date: Sat Dec 11 01:44:42 2010 +0000 - - #2873 duplicate photo now adds itself to the event and tags - -M src/Photo.vala - -commit 0de100a2e0246304766470fb05e7018252f44ca6 -Author: Jim Nelson -Date: Sat Dec 11 01:13:48 2010 +0000 - - #2924: Duplicates detected during auto-import are now tombstoned so - they are not auto-imported later. Also various changes to make the - system more reponsive during the startup scan. - -M src/DatabaseTables.vala -M src/DirectoryMonitor.vala -M src/LibraryMonitor.vala -M src/LibraryWindow.vala -M src/MediaDataRepresentation.vala -M src/Photo.vala -M src/Tombstone.vala -M src/VideoMetadata.vala -M src/VideoSupport.vala - -commit 47dbbd1935040dd7b3e1abe375daa06e251815d5 -Author: Eric Gregory -Date: Fri Dec 10 19:07:42 2010 +0000 - - #2069 show file path on import failed - -M src/BatchImport.vala - -commit a3e8492b3c172a2c9bc24433f7867ce2e9d9963b -Author: Lucas Beeler -Date: Fri Dec 10 19:06:10 2010 +0000 - - Fixes #2929. - -M src/FacebookConnector.vala - -commit 5fff1acac52a87239132a0317d6caf7346117bbb -Author: Lucas Beeler -Date: Fri Dec 10 18:59:45 2010 +0000 - - Closes #2629. - -M src/FlickrConnector.vala -M src/WebConnectors.vala -M src/string_util.vala - -commit c772f98690cd5863e13afbde2fd18a591b29aa0d -Author: Jim Nelson -Date: Fri Dec 10 05:18:44 2010 +0000 - - #2691: Runtime monitoring and auto-import for videos added. - This patch separates concerns as far as the two's requirements for - monitoring as well as maximizes common code between them. ##2663: - Tombstoning of videos now enabled. - -M Makefile -M src/DataCollection.vala -M src/DatabaseTables.vala -M src/Event.vala -M src/ImportPage.vala -M src/LibraryMonitor.vala -M src/MediaDataRepresentation.vala -M src/MediaInterfaces.vala -A src/MediaMonitor.vala -M src/Photo.vala -M src/PhotoFileFormat.vala -A src/PhotoMonitor.vala -M src/Tag.vala -M src/Tombstone.vala -A src/VideoMonitor.vala -M src/VideoSupport.vala -M src/main.vala - -commit c513750567e73ebcf125d7fb81c6115d74e04d6c -Author: Lucas Beeler -Date: Thu Dec 9 22:17:15 2010 +0000 - - Darkens the flag icon colors as per Adam's request. Closes #2930. - -M icons/flag-page.png -M icons/flag-trinket.png - -commit e58f0ffa3ac3bda329631eed9238ad425055e2b7 -Author: Vera Yin -Date: Thu Dec 9 19:35:33 2010 +0000 - - Correct format error in Slovenian translation. - -M po/sl.po - -commit 488edcec5a7bc0e9f6839de54ac75787925be415 -Author: Vera Yin -Date: Thu Dec 9 19:27:35 2010 +0000 - - Updated Hungarian and Slovenian translations. - -M po/hu.po -M po/sl.po - -commit 9520b69788fc1b2b3deb6b25244ecac0db22627b -Author: Vera Yin -Date: Thu Dec 9 06:46:12 2010 +0000 - - Now the complete POT file. Corrected format errors in Czech, German, - Hebrew translations. - -M po/cs.po -M po/de.po -M po/he.po -M po/shotwell.pot - -commit 9fd19bee7de127122ca22f823eaa5ac25d0bdabc -Author: Vera Yin -Date: Thu Dec 9 05:21:07 2010 +0000 - - Regenerated POT file. - -M po/shotwell.pot - -commit 7c8eb057691fd6defd13460dc17cf98024c3064b -Author: Vera Yin -Date: Thu Dec 9 05:17:29 2010 +0000 - - Added Macedonian translation. Updated Chinese (Taiwan), Croatian, - Czech, Danish, Estonian, Finnish, German, Greek, Hebrew, Hungarian, - Japanese, Korean, Norwegian, Russian, Serbian, Spanish translations. - -M Makefile -M THANKS -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/es.po -M po/et.po -M po/fi.po -M po/he.po -M po/hr.po -M po/hu.po -M po/ja.po -M po/ko.po -C051 po/sr.po po/mk.po -M po/nb.po -M po/ru.po -M po/sr.po -M po/zh_TW.po - -commit 9696f02c7d16fc1b82aecd3657bd7bc7772808bc -Author: Adam Dingle -Date: Thu Dec 9 04:44:15 2010 +0000 - - Implemented #2932 (replace Last Import icon). - -M Makefile -D icons/last-import-roll.png -M src/Resources.vala - -commit 3d6b6a15d23da33b91bdf08e05e1728023bda8e2 -Author: Eric Gregory -Date: Thu Dec 9 01:48:41 2010 +0000 - - #2871 #2917 event photos were being mangled in database - -M src/DatabaseTables.vala -M src/MediaDataRepresentation.vala -M src/Photo.vala -M src/VideoSupport.vala - -commit 8fdd12ca87e7f3ef7cab029bdcd4073add233930 -Author: Lucas Beeler -Date: Thu Dec 9 01:16:05 2010 +0000 - - Fixes string bugs #2909 and #2912. - -M src/CollectionPage.vala -M src/EventsDirectoryPage.vala -M src/MediaDataRepresentation.vala -M src/Page.vala -M src/VideosPage.vala - -commit f724371e01a3fced9d606a87b78f332805e5acbf -Author: Vera Yin -Date: Wed Dec 8 20:14:19 2010 +0000 - - Corrected format error in Italian translation. - -M po/it.po - -commit 234cfe540f264af86602110ecb263177bbe8992e -Author: Vera Yin -Date: Wed Dec 8 20:08:22 2010 +0000 - - Updated Dutch and Italian translations. - -M THANKS -M po/it.po -M po/nl.po - -commit 293bcff365c61d2f648c50fae298fb460ba9f189 -Author: Jim Nelson -Date: Wed Dec 8 18:54:34 2010 +0000 - - #2922: Fixed problem with two Tags menus appearing on Tag page. - Event page had the same problem with the Events menu; fixed as well. - Finally, at some point the "Remove Photo From Tag 'Foo'" was dropped - from the Tag page context menu. I've re-added it. - -M ui/event.ui -M ui/tags.ui - -commit 035a7cd9f02d4541d77f0d8e2b0951aa745e36b3 -Author: Jim Nelson -Date: Wed Dec 8 18:03:14 2010 +0000 - - Fixes a crasher I found when the sort value in GConf is monkeyed with. - -M src/Config.vala -M src/MediaPage.vala - -commit a844a82a18ff275f481d4d008b5d227ef2d9e7f0 -Author: Jim Nelson -Date: Wed Dec 8 17:55:54 2010 +0000 - - #2755: Removed Slideshow button from CollectionPage. #2768: Removed - Play icon from Slideshow action, as we're using it for Play Video now. - -M src/CollectionPage.vala -M src/PhotoPage.vala - -commit 93eaa462cf1dff4fcf731c4626022552f1c455ba -Author: Lucas Beeler -Date: Tue Dec 7 23:32:34 2010 +0000 - - Properly displays the new flagged icon on the PhotoPage. Closes #2926. - -M src/PhotoPage.vala - -commit d96b1a39919a41776e2f175c5618bf1f0b934f89 -Author: Adam Dingle -Date: Tue Dec 7 23:13:21 2010 +0000 - - Fixed #2908 (mellot out sprocket contrast). - -M icons/sprocket.png - -commit f4f82ddc8872c81ba9551ae40b6781143473bf84 -Author: Lucas Beeler -Date: Tue Dec 7 20:51:08 2010 +0000 - - Fixes several regressions in the Properties class introduced through - the refactoring of the Source and Import hierarchies to support - video. Closes #2904 and #2803. - -M src/Properties.vala - -commit ff54a2927cf1cd30ac40e2fc22a85816f188cef2 -Author: Lucas Beeler -Date: Tue Dec 7 20:36:03 2010 +0000 - - Adds a flagged trinket icon as well as a page icon for the Flagged - page. Closes #2809. - -M Makefile -A icons/flag-page.png -A icons/flag-trinket.png -M src/FlaggedPage.vala -M src/Resources.vala -M src/Thumbnail.vala - -commit c30ef9dae862210a2e5730f43137ff9dade42d45 -Author: Adam Dingle -Date: Tue Dec 7 15:46:47 2010 +0000 - - Added a missing backslash in the Makefile. - -M Makefile - -commit 15afcc709bdd1b6cc8da6e0e05dbe10892f3117b -Author: Adam Dingle -Date: Mon Dec 6 22:05:52 2010 +0000 - - Exorcised Windows code (#2898). - -M Makefile -M libraw-config -M src/CameraTable.vala -M src/CollectionPage.vala -M src/Config.vala -M src/DesktopIntegration.vala -M src/Dialogs.vala -M src/FacebookConnector.vala -M src/FlickrConnector.vala -D src/GConf.vala -M src/GPhoto.vala -M src/GRaw.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/PhotoFileFormat.vala -M src/PhotoPage.vala -M src/PicasaConnector.vala -M src/PiwigoConnector.vala -M src/Printing.vala -M src/RawSupport.vala -M src/Screensaver.vala -M src/SlideshowPage.vala -M src/VideosPage.vala -M src/WebConnectors.vala -M src/YandexConnector.vala -M src/YouTubeConnector.vala -M src/file_util.vala -M src/main.vala -M src/system.vala -M src/util.vala -D src/windows.c -D windows/install-deps -D windows/shotwell.rc -D windows/winstall.iss - -commit 10e731fe9d2a58bfd50cd61d86b47c363826942b -Author: Eric Gregory -Date: Mon Dec 6 20:16:36 2010 +0000 - - #2069 list duplicates in camera import dialog - -M src/AlienDatabaseImportJob.vala -M src/BatchImport.vala -M src/Dialogs.vala -M src/ImportPage.vala - -commit ae3ef8c87a0bf65f2b6f2a45dc1afc1031dee635 -Author: Jim Nelson -Date: Mon Dec 6 18:50:13 2010 +0000 - - #2625: Fixes the thumbnails jumping around when scrolling. Was able - to repro this and see it had to do when tags and/or titles were - displayed. Also, minor fixes elsewhere in the code I detected over - the weekend, including a slight change to BatchImport to improve - performance when a lot of duplicates are detected. - -M src/AppDirs.vala -M src/BatchImport.vala -M src/CheckerboardLayout.vala -M src/MediaDataRepresentation.vala -M src/MediaPage.vala -M src/Photo.vala -M src/Thumbnail.vala -M src/VideoSupport.vala -M src/main.vala - -commit 699c47ef5847d8a69d4ccafbd6c68f450cba2cc8 -Author: Adam Dingle -Date: Fri Dec 3 17:19:53 2010 +0000 - - Updated COPYING to include license information for gnome-icon-theme - since we've just borrowed an icon from it. - -M COPYING - -commit 39b34d0402d63136a915ea1a1a233a5d8f09f310 -Author: Adam Dingle -Date: Fri Dec 3 16:57:50 2010 +0000 - - A Makefile fix from Norbert Preining . - -M Makefile - -commit ed0205221fff52c6f979a6609d4074422316d016 -Author: Lucas Beeler -Date: Fri Dec 3 00:51:38 2010 +0000 - - Adds an icon to the Videos sidebar entry; updates the - non-interpretable badge image to match; closes #2571. - -M Makefile -M icons/noninterpretable-video.png -A icons/videos-page.png -M src/Resources.vala -M src/VideosPage.vala - -commit a9ec6a33b9b4383cb7ce1dda87c2ca02026d9001 -Author: Lucas Beeler -Date: Thu Dec 2 22:50:18 2010 +0000 - - Fixes #2906. - -M src/MediaPage.vala - -commit 1cfe3cdcd51c426af39554624c5d913e4c7718fd -Author: Eric Gregory -Date: Thu Dec 2 22:48:23 2010 +0000 - - #854 added null check - -M src/CameraTable.vala - -commit 8fb233d2814e2d8f87fe9c08ee8f0528723a4547 -Author: Eric Gregory -Date: Thu Dec 2 22:42:40 2010 +0000 - - #1184 photo dates can now come from DateTimeDigitized and DateTime - tags - -M src/PhotoMetadata.vala - -commit 2f9856b27296d9c36a1933670124d596b9792d73 -Author: Lucas Beeler -Date: Thu Dec 2 21:11:40 2010 +0000 - - Closes #2695, #2736, #2762 and fixes a previously unreported critical - GLib cast warning. - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/MediaPage.vala -M src/Page.vala -M src/PhotoPage.vala -M src/Properties.vala -M ui/collection.ui -M ui/media.ui - -commit 2a23848583fc044bbe278070324b10bd71e000b1 -Author: Adam Dingle -Date: Thu Dec 2 20:00:25 2010 +0000 - - Fixed #2464 (improve icon in title bar, Applications menu, Alt+Tab - menu). - -M Makefile -M src/AppWindow.vala -M src/Resources.vala - -commit fa714d7939a800b9b9610e815d796cfabefe2581 -Author: Eric Gregory -Date: Thu Dec 2 19:52:45 2010 +0000 - - #2837 and #2890 Added AVI support, fixed bug in QuickTime detection - -M src/VideoMetadata.vala -M src/file_util.vala - -commit c824c351aefc5b8638409f92362e7e1a6d3201ec -Author: Adam Dingle -Date: Thu Dec 2 16:53:45 2010 +0000 - - Moved Eric upward in THANKS file. Thanks, Eric! - -M THANKS - -commit 4a1437980765c6277a36ea0c051a5f4a0860df44 -Author: Jim Nelson -Date: Thu Dec 2 05:38:58 2010 +0000 - - #2560: Solves crash when importing due to UTF-8 representation - differences. Need to be more thorough in code to validate and - normalize all text originating from outside the system -- user input, - metadata, and so forth. - -M Makefile -M src/DatabaseTables.vala -M src/Dialogs.vala -M src/Event.vala -M src/LibraryWindow.vala -M src/MediaDataRepresentation.vala -M src/Photo.vala -M src/PhotoMetadata.vala -M src/Tag.vala -M src/VideoSupport.vala -A src/string_util.vala -M src/util.vala - -commit 3aa6c2687fd0be34ba00f1cfa81bfcbea3d2c9a2 -Author: Jim Nelson -Date: Thu Dec 2 00:38:22 2010 +0000 - - #2799: Fixes the ordering of the toplevel items in the sidebar. - Now using an ordinal (an enum) to sort the toplevel items, so adding - new ones should not be so troublesome in the future. - -M src/LibraryWindow.vala -M src/Sidebar.vala - -commit 19ae76d5fe7bc59eb966daf114ea403a98cacf8c -Author: Jim Nelson -Date: Wed Dec 1 18:52:28 2010 +0000 - - #2888: Remove From Library now in MediaPage (therefore available - in VideosPage). - -M src/CollectionPage.vala -M src/MediaPage.vala -M ui/media.ui - -commit c40ffe4e2bc28a9876cbc5c1811b1569e7019a5b -Author: Jim Nelson -Date: Wed Dec 1 18:44:55 2010 +0000 - - #2884: Added Send To... to context menus. - -M ui/collection.ui -M ui/direct.ui -M ui/photo.ui -M ui/video.ui - -commit c5d12fa77ee15efb2ef398e2306dadd88f655606 -Author: Vera Yin -Date: Wed Dec 1 04:06:30 2010 +0000 - - Updated Chinese (Taiwan), Croatian, English (UK), Estonian, German, - Hebrew, Galician, Polish, Portuguese, Portuguese (Brazil), Romanian, - Russian, Serbian, Slovenian, Turkish translations. - -M THANKS -M po/de.po -M po/en_GB.po -M po/et.po -M po/gl.po -M po/he.po -M po/hr.po -M po/pl.po -M po/pt.po -M po/pt_BR.po -M po/ro.po -M po/ru.po -M po/sl.po -M po/sr.po -M po/tr.po -M po/zh_TW.po - -commit aaf1e0f896a11f4f7bc79b6565956a70c9b33b6d -Author: Lucas Beeler -Date: Wed Dec 1 03:22:45 2010 +0000 - - Draws sprocket holes as a differentiating visual indicator on video - thumbnails. Closes #2575. - -M Makefile -A icons/sprocket.png -M src/CheckerboardLayout.vala -M src/ImportPage.vala -M src/MediaPage.vala -M src/Thumbnail.vala - -commit eb70a9e2d0edc41f026a08afea0e76c3c1729de0 -Author: Lucas Beeler -Date: Wed Dec 1 02:49:30 2010 +0000 - - Video thumbnails are now generated from the frame whose timepoint - is 1/3 of the video's duration. This eliminates a problem where many - video thumbnails would appear black because of fade-in effects. Closes - #2568. - -M src/VideoSupport.vala - -commit 303065fea3395e93c4cb76dda766db3e31819981 -Author: Eric Gregory -Date: Wed Dec 1 01:28:34 2010 +0000 - - #854 Camera name - -M src/CameraTable.vala -M src/ImportPage.vala -M src/LibraryWindow.vala - -commit 0eb70247e62f2574a22988c024f2bd6fe87ff489 -Author: Jim Nelson -Date: Wed Dec 1 01:16:05 2010 +0000 - - This fixes a thrown exception I saw while importing a particular - video. It appears InputStream.skip() has problems with large values - that are within its count type's range. - -M src/VideoMetadata.vala - -commit 2feb9ecf3b4a138327126b7a2a91e189337415c9 -Author: Vera Yin -Date: Thu Nov 25 22:03:50 2010 +0000 - - Updated Basque, Chinese (Mainland PRC), Dutch, French, Galician, - Hebrew, Italian, Kazakh, Korean, Portuguese (Brazil), Russian, - Serbian, Slovenian, Spanish, and Ukrainian translations. - -M po/es.po -M po/eu.po -M po/fr.po -M po/gl.po -M po/he.po -M po/it.po -M po/kk.po -M po/ko.po -M po/nl.po -M po/pt_BR.po -M po/ru.po -M po/sl.po -M po/sr.po -M po/uk.po -M po/zh_CN.po - -commit e58c4834f709c9b20ec99347a25c5813021d75d8 -Author: Jim Nelson -Date: Thu Nov 25 04:55:35 2010 +0000 - - #2817: Directory monitor assertion failure with library over SSH. - The problem only occurred when the library directory was set to an - SSH directory. - -M src/DirectoryMonitor.vala - -commit be8a02f49e58fad8e3ebcde7123cf4a3e44c9e05 -Author: Vera Yin -Date: Thu Nov 25 02:38:58 2010 +0000 - - Generated new POT file following string freeze. - -M po/shotwell.pot - -commit 2607aea46e6bd6fb57a235a78e184de09895f7e8 -Author: Vera Yin -Date: Thu Nov 25 02:26:14 2010 +0000 - - Updated Portuguese translation. - -M po/pt.po - -commit 55bdc8fde17d3f48f31e6758a752b03cd8c0db3d -Author: Eric Gregory -Date: Thu Nov 25 01:41:02 2010 +0000 - - #2624 take care of error cases when moving to desktop trash - -M src/AppWindow.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/Dialogs.vala -M src/MediaDataRepresentation.vala -M src/Photo.vala -M src/VideoSupport.vala -M src/util.vala - -commit bc4f9ef920a6d769a0ecdd6ff40b07e75ba35ec4 -Author: Jim Nelson -Date: Thu Nov 25 01:17:01 2010 +0000 - - #2864: Separate race condition discovered that was exacerbated on - duo-core machines. - -M src/BatchImport.vala -M src/Workers.vala - -commit ce21d1b0355ee062a9f7313a26a3db4a6f7d5a7c -Author: Jim Nelson -Date: Wed Nov 24 18:46:03 2010 +0000 - - Patch from Evgeniy Polyakov to change OAuth parsing in - YandexConnector. - -M src/YandexConnector.vala - -commit 6457596355d99ac138f51151a0980580e6f35e9f -Author: Jim Nelson -Date: Wed Nov 24 18:18:04 2010 +0000 - - #1296: Correcting problem with display time on desktop slideshow - dialog consistently. - -M src/Dialogs.vala - -commit ed53e927e63e938a077b0d2e07f21887afc5ad30 -Author: Jim Nelson -Date: Wed Nov 24 03:51:01 2010 +0000 - - #2833: Fixed soft assertion with TombstoneSourceCollection. - -M src/main.vala - -commit bfd348f956b733d74d3160aa6426f4c824b5f7fe -Author: Jim Nelson -Date: Wed Nov 24 02:16:34 2010 +0000 - - #2566: Re-committed import memory leak fix with the addition that - it corrects a tread starvation race condition. Also during testing - I discovered a data structure in LibraryMonitor not being locked - although it was used by a thread-safe function. This patch also - corrects that. In essence, this patch is a replacement for r2371 - and r2374 with code fixes. - -M src/AlienDatabaseImportJob.vala -M src/BatchImport.vala -M src/Event.vala -M src/LibraryMonitor.vala -M src/Workers.vala - -commit 510b4a5914c1e679f8abc069ef659c3d8599bd1d -Author: Eric Gregory -Date: Wed Nov 24 00:28:00 2010 +0000 - - #2837 removed libquicktime and added our own parsing for creation time - -M Makefile - -commit e50dfe310f8a1a93f26ee3cd6b2469e1398c7c57 -Author: Eric Gregory -Date: Tue Nov 23 23:20:40 2010 +0000 - - #2837 removed libquicktime and added our own parsing for creation time - -M src/Properties.vala -M src/VideoMetadata.vala - -commit 7c7168dee10354429372b243176f0fa992fdf9f0 -Author: Lucas Beeler -Date: Tue Nov 23 23:04:46 2010 +0000 - - Updates the Last Import page to be compatible with videos and multiple - monitoring. Closes #2816, #2823, and #2855. - -M src/LastImportPage.vala - -commit f545e8df54ef444cd09deaa93e0591e5f52afafa -Author: Lucas Beeler -Date: Tue Nov 23 20:34:14 2010 +0000 - - Adds better error handling throughout the publishing subsystem; - closes #2386. - -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/PicasaConnector.vala -M src/PiwigoConnector.vala -M src/WebConnectors.vala -M src/YandexConnector.vala -M src/YouTubeConnector.vala - -commit 7ba618e1f1ad987f644247c4ad8da4fe6acf99fb -Author: Jim Nelson -Date: Tue Nov 23 20:01:08 2010 +0000 - - #2639: Piwigo publishing. Courtesy guillaumev. - -M Makefile -M THANKS -A src/PiwigoConnector.vala -M src/WebConnectors.vala - -commit 571655ec808c7ecaa060731a2fe30da8660dfc49 -Author: Jim Nelson -Date: Tue Nov 23 19:03:19 2010 +0000 - - #2733: Moved Page Setup into the Print dialog. Courtesy Till - Kamppeter. Also, forgot to add Glade file for #1296. - -M THANKS -M src/CollectionPage.vala -M src/PhotoPage.vala -M src/Printing.vala -M src/Resources.vala -A ui/set_background_dialog.glade - -commit e10a4823cad90b404ea703e565753e4d31df7143 -Author: Jim Nelson -Date: Tue Nov 23 18:55:56 2010 +0000 - - #1296: Rotate desktop background now available when more than one - photo is selected. Courtesy Maxim. - -M THANKS -M src/AppWindow.vala -M src/CollectionPage.vala -M src/DesktopIntegration.vala -M src/Dialogs.vala -M src/Dimensions.vala -M src/Exporter.vala -M src/MediaDataRepresentation.vala -M src/Resources.vala -M src/file_util.vala - -commit bb7afa9f4400dce6273a90e98a6a22552a5ded38 -Author: Lucas Beeler -Date: Mon Nov 22 23:38:25 2010 +0000 - - Disables plugins when instantiating WebKit; closes #2183. - -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/YandexConnector.vala - -commit 8f608697b8866b98b9a4b8b615d77f3e26485640 -Author: Eric Gregory -Date: Mon Nov 22 20:50:21 2010 +0000 - - #2489 import dialog text change - -M src/Dialogs.vala - -commit 109d080a05bb55540ff466061f9f0f618372632b -Author: Vera Yin -Date: Mon Nov 22 20:27:43 2010 +0000 - - Updated Estonian, Italian, and Portuguese translations. - -M po/et.po -M po/it.po -M po/pt.po - -commit d6eb123fc52ec6e0237c6c306adc5f2daee56b7f -Author: Adam Dingle -Date: Mon Nov 22 19:16:47 2010 +0000 - - Backed out changesets 2371 and 2374. 2374 broke importing, and the - comments in changeset 2374 - implied that 2371 was broken without it, so I've backed out 2371 - as well. Jim can look at this - when he's in tomorrow. - -M src/AlienDatabaseImportJob.vala -M src/BatchImport.vala -M src/Event.vala -M src/Workers.vala - -commit 02c01377343c328a10e4cfa3400221e4d940e3c1 -Author: Jim Nelson -Date: Sat Nov 20 03:31:35 2010 +0000 - - Recent patch for importing caused bug where events were not properly - generated. - -M src/Event.vala - -commit 9bb820caefa0cab2a43b73ee6c4fa196602fbcf5 -Author: Eric Gregory -Date: Sat Nov 20 00:47:15 2010 +0000 - - #2489 text in copy files dialog - -M src/Dialogs.vala - -commit fd15fb45e70fe793aee4034bf6bcfbad808f1ea5 -Author: Lucas Beeler -Date: Fri Nov 19 23:37:41 2010 +0000 - - Makes certain highly-visible strings media-specific (e.g., - they now report "photos" when operating on photos, "videos" when - operating on videos, or "photos/videos" when operating on mixed - collections). Closes #2692. - -M src/CollectionPage.vala -M src/Dialogs.vala -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/ImportPage.vala -M src/PicasaConnector.vala -M src/VideoSupport.vala -M src/WebConnectors.vala -M src/YandexConnector.vala -M src/YouTubeConnector.vala -M src/util.vala - -commit b4b6db599e38df8e6c82409f04f7ed56e5a361d8 -Author: Jim Nelson -Date: Fri Nov 19 22:04:33 2010 +0000 - - #2566: Reworking of BatchImport to keep the background threads - busy but never allow their queues to fill up. The memory leak was - actually all the Pixbufs (thumbnails) that were being held in the - queue waiting for processing. - -M src/AlienDatabaseImportJob.vala -M src/BatchImport.vala -M src/Event.vala -M src/Workers.vala - -commit a5c64e8b37362e485ee3ec0e71fa67a770f70901 -Author: Eric Gregory -Date: Thu Nov 18 23:18:01 2010 +0000 - - #2483 background color of sidebar - -M src/LibraryWindow.vala - -commit baed9f8ad419e6783e528449892b8b7ee9b1ea98 -Author: Jim Nelson -Date: Thu Nov 18 22:57:34 2010 +0000 - - #2784: Adjust Date/Time dialog checks and grays out "Modify original - file" if autocommit metadata is enabled. Courtesy wolfer. - -M src/Dialogs.vala - -commit c027be49ef81a1fe4704cf808b3022130aafb796 -Author: Lucas Beeler -Date: Thu Nov 18 07:15:30 2010 +0000 - - Closes #2763, #2793, #2800, and #2582. - -M src/LibraryWindow.vala -M src/Page.vala -M src/PhotoPage.vala -M src/PixbufCache.vala -M src/util.vala - -commit 585c9664693cf122897fe9e4522511ff29618d38 -Author: Vera Yin -Date: Thu Nov 18 04:19:20 2010 +0000 - - Updated Russian translation. - -M po/ru.po - -commit 0f4cb4bd2f7603160397ebab7d14f1edc13c1d01 -Author: Eric Gregory -Date: Thu Nov 18 01:50:26 2010 +0000 - - added slash as a shortcut for flagging images #2810 - -M src/MediaPage.vala -M src/PhotoPage.vala - -commit f3799af58ddf83487782ec78a340c1cefd83c97e -Author: Eric Gregory -Date: Thu Nov 18 01:31:40 2010 +0000 - - events and tags menus are now ordered consistently #2631 - -M src/CollectionPage.vala -M src/TagPage.vala -M ui/collection.ui -M ui/tags.ui - -commit 86fb3f0cd6b32841acfc29ca3cd43a349e5bfcb5 -Author: Eric Gregory -Date: Thu Nov 18 01:10:42 2010 +0000 - - rotation can now be performed by either ctrl-r and ctrl-shift-r, - or via the bracket keys #2700 - -M src/CollectionPage.vala -M src/MediaPage.vala -M src/PhotoPage.vala - -commit 3f9c9218207f5ddc5779d50e9914889fece82a15 -Author: Jim Nelson -Date: Thu Nov 18 00:59:18 2010 +0000 - - #2750: Enter to return from full-window to checkerboard. Courtesy - wolfer. - -M THANKS -M src/PhotoPage.vala - -commit d8333cc7275855d9ad657f956bc24639117c7e06 -Author: Eric Gregory -Date: Wed Nov 17 23:56:50 2010 +0000 - - larger and more re-sizable title and tag name editor #2727 - -M ui/shotwell.glade - -commit 144fe0f7e137ba32cf1064a315945b932f9c19fe -Author: Adam Dingle -Date: Wed Nov 17 14:25:45 2010 +0000 - - Added Eric to THANKS file. - -M THANKS - -commit 09402e19278d46f43f63b6930723a1c06fecf3a5 -Author: Eric Gregory -Date: Tue Nov 16 20:51:53 2010 +0000 - - improvements to prefs dialog Ticket #2789 - -M ui/shotwell.glade - -commit 0914a062847aed8b2965fd9c1f41c6313f402988 -Author: Lucas Beeler -Date: Tue Nov 16 20:24:40 2010 +0000 - - Implements a new export model that supports mixed exporting of photos, - videos, and original RAW files. Closes #2621. - -M src/CollectionPage.vala -M src/DesktopIntegration.vala -M src/Dialogs.vala -M src/Exporter.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/VideoSupport.vala -M src/VideosPage.vala - -commit b180c9fc0738137a84f278cf0b5484119d4e03b4 -Author: Eric Gregory -Date: Tue Nov 16 19:20:13 2010 +0000 - - Changed keyboard shortcuts for zooming #2558 - -M src/PhotoPage.vala - -commit f1bbf1d14e238cfa32373afe4f71b9fe845cff09 -Author: Eric Gregory -Date: Tue Nov 16 19:14:56 2010 +0000 - - Bumped size of library window - -M src/LibraryWindow.vala - -commit 5adb9ed6eb6c0d7922ffa692455887afe0f06c94 -Author: Vera Yin -Date: Mon Nov 15 19:20:44 2010 +0000 - - Updated Dutch and Italian translations. - -M THANKS -M po/it.po -M po/nl.po - -commit 05f2f06a9ad1e07799b80380904b94225ed63a14 -Author: Vera Yin -Date: Fri Nov 12 20:49:14 2010 +0000 - - Updated Russian translation. - -M po/ru.po - -commit c514dea3c4f2dd3d642614ded188a0e43e00ee3c -Author: Jim Nelson -Date: Fri Nov 12 19:25:37 2010 +0000 - - #2811: Fixed crash due to trying to scale pixbufs to -1. - -M src/Resources.vala - -commit 1fa7758b4625be19b223abd41cc36203acdb0d9b -Author: Jim Nelson -Date: Fri Nov 12 03:03:52 2010 +0000 - - #2796: Initial cut of VideoMetadata using libquicktime. A more - thorough and robust video metadata library would certainly improve - our support, but this is good for now. - -M Makefile -M src/BatchImport.vala -M src/DatabaseTables.vala -A src/MediaMetadata.vala -M src/PhotoMetadata.vala -A src/VideoMetadata.vala -M src/VideoSupport.vala - -commit 76cf3f79f76eafa552df9fd5907ba4923771e891 -Author: Jim Nelson -Date: Thu Nov 11 23:31:17 2010 +0000 - - #2492: Auto-import and auto-commit metadata only take affect - once the Preferences dialog has been closed. Also, changed two - chatty directory monitoring logging messages to only appear when - TRACE_MONITORING is enabled, and fixed a bug in FlaggedPage dropping - thumbnails when they'd had their metadata committed in the background. - -M src/DataCollection.vala -M src/Dialogs.vala -M src/DirectoryMonitor.vala - -commit 8e0904d57ff6afe3a4efad401470c8a6c3ec8edf -Author: Jim Nelson -Date: Thu Nov 11 23:10:02 2010 +0000 - - #2756: Flag photos. - -M Makefile -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/Commands.vala -M src/DataObject.vala -A src/FlaggedPage.vala -M src/LibraryMonitor.vala -M src/LibraryWindow.vala -M src/MediaDataRepresentation.vala -A src/MediaInterfaces.vala -M src/MediaPage.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/Thumbnail.vala -M src/VideoSupport.vala -M ui/collection.ui -M ui/media.ui -M ui/photo.ui -M ui/video.ui - -commit 8736acb3cbd479c81d48a2851c6d084e00a2ba96 -Author: Vera Yin -Date: Thu Nov 11 20:12:14 2010 +0000 - - Updated German translation. - -M THANKS -M po/de.po - -commit 458d0cccfeb76197d925c51b7292b5734a21fa3e -Author: Jim Nelson -Date: Wed Nov 10 03:09:23 2010 +0000 - - #2786: Rejected Only view filter. - -M src/MediaPage.vala -M src/Resources.vala -M ui/media.ui - -commit b57a0dfce5a9e273100fe2454dcd9fa718518243 -Author: Jim Nelson -Date: Wed Nov 10 01:57:15 2010 +0000 - - #2788: Store orientation in photo files when metadata auto-commit - is enabled. - -M src/DatabaseTables.vala -M src/MetadataWriter.vala -M src/Photo.vala - -commit be4ca126142177ba115ee817519c2cff3bef097a -Author: Jim Nelson -Date: Wed Nov 10 01:13:31 2010 +0000 - - #2492: When auto-import and auto-commit metadata is selected in - Preferences dialog, operations will begin almost immediately. - -M src/Config.vala -M src/DirectoryMonitor.vala -M src/LibraryMonitor.vala -M src/MetadataWriter.vala -M src/Photo.vala - -commit 160496321f33f40b7dc2f67b6362a63db85acf9a -Author: Vera Yin -Date: Tue Nov 9 23:05:59 2010 +0000 - - Updated Catalan, Chinese (Mainland China), Chinese (Taiwan), Estonian, - Hebrew, and Japanese translations. - -M Makefile -M THANKS -M po/ca.po -M po/et.po -C058 po/ja.po po/he.po -M po/ja.po -M po/zh_CN.po -M po/zh_TW.po - -commit a53cc97aa093ee1aefd1c20ebe0fc183edec8936 -Author: Jim Nelson -Date: Tue Nov 9 02:41:17 2010 +0000 - - #2492: Preferences checkboxes for auto-import and auto-commit - metadata. - -M misc/shotwell.schemas -M src/Config.vala -M src/Dialogs.vala -M src/LibraryMonitor.vala -M src/MetadataWriter.vala -M src/Photo.vala -M src/main.vala -M ui/shotwell.glade - -commit 83eeaa8e7a97f1dbff1064df3d029008bd008ddc -Author: Jim Nelson -Date: Tue Nov 9 00:25:40 2010 +0000 - - Minor cleanup: Placed all the command-line options into their own - namespace. - -M src/AppWindow.vala -M src/DirectWindow.vala -M src/LibraryMonitor.vala -M src/MetadataWriter.vala -M src/Page.vala -M src/Photo.vala -M src/main.vala - -commit fcfd94a4119d069d442d83a5d9fdd98b8c29a6f9 -Author: Jim Nelson -Date: Mon Nov 8 19:36:57 2010 +0000 - - #2769: Slideshow delay box is now internationalized, and simplified - greatly by using a Gtk.SpinButton. Courtesy Marcel Stimberg. - -M src/SlideshowPage.vala - -commit 4fce5ef15fd25c3c1e03275f42a6bc6e3c050abf -Author: Jim Nelson -Date: Mon Nov 8 19:30:43 2010 +0000 - - #2770: YouTube and PicasaWeb connectors remember user name if auth - token expires. - -M src/PicasaConnector.vala -M src/YouTubeConnector.vala - -commit 9ff93d92f9ee2a2e69afe4760cd3b747fbed307a -Author: Jim Nelson -Date: Mon Nov 8 19:23:47 2010 +0000 - - #1988: Facebook privacy control added. #2752: Last bit of Facebook - video uploading merged. Both courtesy Jani Monoses. - -M src/FacebookConnector.vala -M src/WebConnectors.vala - -commit fe7d592b4e81a52a283a7778110b06972d475558 -Author: Jim Nelson -Date: Sat Nov 6 00:36:10 2010 +0000 - - #2693: Context menu for Videos page. - -M src/VideosPage.vala -A ui/video.ui - -commit 77737716050ae0123825c9aaa366919b58e00c15 -Author: Jim Nelson -Date: Sat Nov 6 00:03:47 2010 +0000 - - #2752: Facebook video upload support. This and prior commit (Flickr - video support) courtesty Jani Monoses. - -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/PicasaConnector.vala -M src/WebConnectors.vala -M src/YandexConnector.vala -M src/YouTubeConnector.vala - -commit 80e80c318cdcfc2f9db84ae57ca14f7b938d4345 -Author: Jim Nelson -Date: Fri Nov 5 22:44:20 2010 +0000 - - #2767: Flickr video upload. - -M THANKS -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/WebConnectors.vala - -commit 42eaaad4918fbff324a0d76271ca328600e99128 -Author: Jim Nelson -Date: Fri Nov 5 02:04:33 2010 +0000 - - Fixed mnemonic conflict. - -M src/Resources.vala - -commit 86f3ec057697af3b90fdd1c388a24afd8d4c33a4 -Author: Jim Nelson -Date: Fri Nov 5 02:00:11 2010 +0000 - - #1110: Send pictures via Nautilus Send To integration. #2248: - Added View Event for Photo to the full-window page context menu. - #2735: Better temporary file management. Now using /tmp and relying - on the system to manage the files (i.e. delete them at boot time). - This change affects all users of temp files, the largest of which - right now are the WebConnectors and Send To. - -M Makefile -M src/AppDirs.vala -M src/AppWindow.vala -M src/CollectionPage.vala -M src/Config.vala -M src/DataCollection.vala -A src/DesktopIntegration.vala -M src/Dialogs.vala -M src/EventsDirectoryPage.vala -M src/Exporter.vala -M src/LibraryFiles.vala -M src/LibraryWindow.vala -M src/MediaDataRepresentation.vala -M src/MediaPage.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/VideosPage.vala -A src/file_util.vala -M src/image_util.vala -M src/main.vala -M src/util.vala -M ui/collection.ui -M ui/direct.ui -M ui/media.ui -M ui/photo.ui - -commit 94ff0331e388651e8a9ae5f7e842b7e3ad4235fe -Author: Jim Nelson -Date: Thu Nov 4 18:46:14 2010 +0000 - - #2765: Selecting both photos and videos will offer only services - that support both media types. - -M src/WebConnectors.vala - -commit fcfa3ce40328cd0181eecf3e70fa33fd60df3580 -Author: Jim Nelson -Date: Thu Nov 4 18:25:28 2010 +0000 - - #2764: Publish button now works for videos. - -M src/CollectionPage.vala -M src/Resources.vala - -commit 976f656d63429272d25109d8fb54e7067ccfa02c -Author: Lucas Beeler -Date: Thu Nov 4 01:27:42 2010 +0000 - - Enables seamless integration of photos and videos in tags and - events. Closes #2573. - -M Makefile -M src/AppWindow.vala -M src/BatchImport.vala -M src/CollectionPage.vala -M src/Commands.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/DatabaseTables.vala -M src/Dialogs.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -A src/MediaDataRepresentation.vala -M src/MediaPage.vala -M src/MetadataWriter.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Properties.vala -M src/SlideshowPage.vala -M src/Tag.vala -M src/TagPage.vala -M src/Thumbnail.vala -M src/VideoSupport.vala -M src/VideosPage.vala -M src/YandexConnector.vala -M src/main.vala - -commit cfbb132601877280b80741e711b9eb882a558262 -Author: Jim Nelson -Date: Wed Nov 3 03:08:24 2010 +0000 - - #2030: Progress bar now updated as mimic manager generates mimics. - Also implemented a priority system so the various background tasks - can share the progress bar. (Worth discussing what the priorities - should be.) - -M src/LibraryMonitor.vala -M src/LibraryWindow.vala -M src/MimicManager.vala -M src/PixbufCache.vala -M src/Workers.vala - -commit 7bcb22bdaf5ab8ff5f4eab5efbf475a6b7d204d8 -Author: Jim Nelson -Date: Wed Nov 3 01:56:25 2010 +0000 - - #374: Real-time library monitoring. Currently only available through - command-line options --runtime-monitoring and --runtime-import. - Still testing to be done for scalability issues, but this represents - the fundamental architecture. - -M src/BatchImport.vala -M src/DataCollection.vala -M src/DataObject.vala -C083 src/TimedQueue.vala src/DelayedQueue.vala -M src/DirectoryMonitor.vala -M src/LastImportPage.vala -M src/LibraryFiles.vala -M src/LibraryMonitor.vala -M src/MetadataWriter.vala -M src/OfflinePage.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Tag.vala -M src/TimedQueue.vala -M src/VideoSupport.vala -M src/Workers.vala -M src/main.vala - -commit 7fb604f0a17ab5b31857d55b086413f2310c6e07 -Author: Jim Nelson -Date: Tue Nov 2 20:18:50 2010 +0000 - - Fixes bug reported by Милош Поповић. Assertion was - incorrect; it's possible for files to be removed from DirectoryMonitor - during discovery. This catches it and marks the photo as offline. - -M src/LibraryMonitor.vala - -commit 5050879973bf075267b25f0b300155d6096630e5 -Author: Jim Nelson -Date: Tue Nov 2 18:59:39 2010 +0000 - - #2694: Video files located outside of library directory are no longer - marked offline without verifying existance. - -M src/LibraryMonitor.vala - -commit 0976813dcb0af863a3613f5efbe848c6ed00e3eb -Author: Jim Nelson -Date: Tue Nov 2 18:20:52 2010 +0000 - - #2751: YouTube connector now handles 401 error. Courtesy Jani - Monoses. - -M src/YouTubeConnector.vala - -commit b2c116ce8a0a290a6ea7d4b7b4fad658f6e0228e -Author: Jim Nelson -Date: Mon Nov 1 20:36:25 2010 +0000 - - This adds schema version numbers to the warning dialog when attempting - to use Shotwell on a newer database. This could help with debugging - problems. - -M src/DatabaseTables.vala -M src/main.vala - -commit dd39b5a9c512810df2a254bef2fe33ea85f5e4ec -Author: Jim Nelson -Date: Mon Nov 1 20:26:39 2010 +0000 - - This fixes a soft assertion that appears when an issue with the - database is detected at startup. - -M src/Application.vala - -commit 317628ecb511663007b7544b8ca9280b13ed0482 -Author: Jim Nelson -Date: Tue Oct 26 18:48:19 2010 +0000 - - #2724: Remember last album in Picasa Web connector. Courtesy Jani - Monoses. - -M src/Config.vala -M src/PicasaConnector.vala - -commit 72fa5653df33dde3c1f51dc07c59f8021a02a91f -Author: Jim Nelson -Date: Tue Oct 26 18:26:08 2010 +0000 - - #2730: Picasa Web Album -> Albums. - -M src/PicasaConnector.vala - -commit 0215e3cd48f4d2f8702da05f30c699d67592a25e -Author: Vera Yin -Date: Tue Oct 26 01:54:44 2010 +0000 - - Updated Portuguese (Brazil) translation. - -M THANKS -M po/pt_BR.po - -commit d5078a038f025fdcf779a3fffab51b41c38f4b88 -Author: Vera Yin -Date: Tue Oct 26 00:42:20 2010 +0000 - - Updated French and Portuguese translations. - -M po/fr.po -M po/pt.po - -commit 6679402bfd7e2639e62d1b8dcdc2371b2d3d1795 -Author: Jim Nelson -Date: Sat Oct 23 01:41:55 2010 +0000 - - #1589: YouTube publishing. Courtesy Jani Monoses. - -M Makefile -M src/CollectionPage.vala -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/PhotoPage.vala -M src/PicasaConnector.vala -M src/VideosPage.vala -M src/WebConnectors.vala -M src/YandexConnector.vala -C060 src/PicasaConnector.vala src/YouTubeConnector.vala -D ui/videos.ui - -commit f14ba7a700b12a1379ca5efee306eb0cf0e964e7 -Author: Vera Yin -Date: Fri Oct 22 23:11:44 2010 +0000 - - Updated no-c-format designation in pot file and affected translations. - -M po/cs.po -M po/es.po -M po/eu.po -M po/ja.po -M po/kk.po -M po/ko.po -M po/nb.po -M po/pl.po -M po/shotwell.pot -M po/sr.po -M po/sv.po -M po/uk.po - -commit 4f4339799c0e4a1ee508cc19734b1f19b0f2d196 -Author: Vera Yin -Date: Thu Oct 21 22:09:47 2010 +0000 - - Added Basque translation, updated German translation. - -M Makefile -M THANKS -M po/de.po -A po/eu.po - -commit c7d7904f53f02958be6c1abcd6b67c05a5bec4d0 -Author: Jim Nelson -Date: Wed Oct 20 16:49:45 2010 +0000 - - #2712: Set json-glib-1.0 version requirements. - -M Makefile - -commit 1bfd76c662dbaa984a8a22a70bf0968929de70c3 -Author: Jim Nelson -Date: Wed Oct 20 01:29:31 2010 +0000 - - #2710: segfaults due to bad generated .c (calling a static method - through an instance variable). - -M src/Photo.vala - -commit 252a789f9cb186e6a283106285408776bc9fc5ef -Author: Lucas Beeler -Date: Tue Oct 19 22:34:37 2010 +0000 - - Added the user_photos permissions flag to the Facebook permissions - request. This may fix #2370. - -M src/FacebookConnector.vala - -commit 4b39e52610a9b23628ee12ac4e7f7465ecd5d6ae -Author: Jim Nelson -Date: Tue Oct 19 21:25:57 2010 +0000 - - #2698: Improved Preferences dialog. Courtesy Louis-Francis - Ratté-Boulianne. - -M THANKS -M src/Dialogs.vala -M ui/shotwell.glade - -commit f73770ba2ea043c110cb282ff3893307ddce46cb -Author: Vera Yin -Date: Mon Oct 18 17:40:58 2010 +0000 - - Updated Japanese and Swedish translations. - -M po/ja.po -M po/sv.po - -commit e8cdec72b7433048965f273e66d961f30f76da34 -Author: Vera Yin -Date: Fri Oct 15 17:26:30 2010 +0000 - - Updated Kazakh and Ukrainian translations. - -M po/kk.po -M po/uk.po - -commit 7709f41853db347b644637333ccf87742faaea10 -Author: Vera Yin -Date: Thu Oct 14 23:42:20 2010 +0000 - - Updated Polish and Serbian translations. - -M po/pl.po -M po/sr.po - -commit c8dd1110ed746a38358d0578d695733be5b62aad -Author: Jim Nelson -Date: Thu Oct 14 22:12:00 2010 +0000 - - #2536: Yandex.Fotki Web service support. Courtesy Evgeniy Polyakov. - -M Makefile -M THANKS -M src/Config.vala -M src/WebConnectors.vala -A src/YandexConnector.vala -A ui/yandex_publish_model.glade - -commit e2d46534520e013a5fbcb6502195a1b06feec90b -Author: Jim Nelson -Date: Thu Oct 14 21:42:07 2010 +0000 - - Cleaned up Thumbnail's implementation to take advantage of - MediaSource's genericities. - -M src/Thumbnail.vala - -commit cf963f2734020e695c0a1f4161d28f58298bd819 -Author: Vera Yin -Date: Thu Oct 14 21:22:25 2010 +0000 - - Removed Transifex verification token. - -D README.transifex - -commit d9c207e475907d65be9c92361f15b28d4f3096be -Author: Jim Nelson -Date: Thu Oct 14 21:20:20 2010 +0000 - - This takes some ideas added to MediaSource and genericizes them to - all DataSources. This simplifies persisting DataSources outside of - the database, such as in the thumbnail cache and backlinks. - -M src/DataObject.vala -M src/Event.vala -M src/ImportPage.vala -M src/LibraryMonitor.vala -M src/Photo.vala -M src/Tag.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala -M src/Tombstone.vala -M src/VideoSupport.vala - -commit b55be1b0f04556ac1e8777e9e873ca25754bfff4 -Author: Vera Yin -Date: Thu Oct 14 21:10:37 2010 +0000 - - Added Transifex token to verify new repository location. - -A README.transifex - -commit a17f611fbffb52d908d81caf26120b7208f134ae -Author: Vera Yin -Date: Thu Oct 14 18:14:31 2010 +0000 - - Updated Czech, Korean, Japanese, Norwegian, and Spanish translations. - -M po/cs.po -M po/es.po -M po/ja.po -M po/ko.po -M po/nb.po - -commit e0204e40e5bd9c01307557c7b16d697b3eb74a32 -Author: Jim Nelson -Date: Thu Oct 14 02:33:16 2010 +0000 - - #2666: Mark photo as dirty whenever the appropriate metadata is - updated, even if autocommit-metadata is disabled. This persists - the dirty flag at all times, meaning if it is enabled MetadataWriter - will commit all changes to the backing files. - -M Makefile -M src/DatabaseTables.vala -M src/MetadataWriter.vala -M src/Photo.vala -R083 src/DelayedQueue.vala src/TimedQueue.vala - -commit baa2f0ea56a9e0ebb924235fb218d1d67ce2fa2d -Author: Jim Nelson -Date: Tue Oct 12 23:01:06 2010 +0000 - - ViewCollection now supports multiple source monitors. This is made - necessary for video support. - -M src/CollectionPage.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/LastImportPage.vala - -commit 12da481c0b483b39e21fc9d29a7db184b858549a -Author: Vera Yin -Date: Tue Oct 12 22:42:54 2010 +0000 - - Updated POT file. - -M po/shotwell.pot - -commit 74a6fdfab4db57ae0df0afd83f33b7b1f15e41a8 -Author: Jim Nelson -Date: Tue Oct 12 19:47:03 2010 +0000 - - #2658: Escape closes Extended Information window. Courtesy mcben. - -M src/Properties.vala - -commit ee47a9ff53ba2abb1003b51c3c272a7ca5e6c6b4 -Author: Jim Nelson -Date: Tue Oct 12 19:28:54 2010 +0000 - - #2566: Not technically a memory leak, but pixbufs being stacked - up in a queue during a disk import due. Implemented a hysteresis - algorithm on the queue to relieve the backlog if it grows too fast. - -M src/BatchImport.vala -M src/ImportPage.vala -M src/main.vala - -commit 9862cb2218fbf6560e464144c20238f55f84da10 -Author: Lucas Beeler -Date: Tue Oct 12 01:01:53 2010 +0000 - - Further refactors and stablizes video and data collection - systems. Enables videos to be marked offline and placed in the - trash can. Detects the installation of new system CODECs and tries - to update video thumbnails accordingly. - -M misc/shotwell.schemas -M src/CollectionPage.vala -M src/Commands.vala -M src/Config.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/DatabaseTables.vala -M src/LibraryMonitor.vala -M src/LibraryWindow.vala -M src/MediaPage.vala -M src/OfflinePage.vala -M src/Photo.vala -M src/Tombstone.vala -M src/TrashPage.vala -M src/VideoSupport.vala -M src/VideosPage.vala -M src/util.vala -M ui/media.ui - -commit 02d40e8e01e0dd61c4fdbd2a667ac676df6e4af0 -Author: Jim Nelson -Date: Mon Oct 11 19:50:32 2010 +0000 - - #2654: Use Shift+Delete for Remove From Library. Courtest mcbenn. - -M src/CollectionPage.vala -M src/PhotoPage.vala - -commit e5e6f1aebc9b3651c20b69e93e938e7b074628ae -Author: Lucas Beeler -Date: Mon Oct 11 18:53:11 2010 +0000 - - Closes #2656. Based on a patch submitted by Jani Monosones. Credited - Jani in the THANKS file. - -M THANKS -M src/CollectionPage.vala - -commit 6716ef7dbcf4d02b3b6e0f0d3c60a25ef0270068 -Author: Vera Yin -Date: Mon Oct 11 18:28:12 2010 +0000 - - Updated Spanish translation. - -M THANKS -M po/es.po - -commit 6b20f17116a3494bd0f7add3ba6baea3354be558 -Author: Jim Nelson -Date: Fri Oct 8 23:33:45 2010 +0000 - - #2643: Fixed issue with photos displaying in a single column. - -M src/Thumbnail.vala - -commit 55a6f1e794ea65e844b11efbbb7310522b5d9063 -Author: Jim Nelson -Date: Fri Oct 8 19:28:04 2010 +0000 - - #1849: Removed FixedKeyFile.vapi and gdk-none.vapi, both binding - patches that were fixed a while back. - -M Makefile -M src/DatabaseTables.vala -M src/LibraryWindow.vala -D vapi/FixedKeyFile.vapi -D vapi/gdk-none.vapi - -commit 30ad28672e237e82cab5bd6b17da94e953af1567 -Author: Vera Yin -Date: Thu Oct 7 18:34:57 2010 +0000 - - Updated Norwegian translation. - -M po/nb.po - -commit 80f7b884392b3b25f8bf4bd48bd971229e843719 -Author: Vera Yin -Date: Tue Oct 5 02:38:50 2010 +0000 - - Updated Lithuanian translation. - -M THANKS -M po/lt.po - -commit 881d80b582df5a61f25c22c32946147b05f9c066 -Author: Jim Nelson -Date: Tue Oct 5 00:48:30 2010 +0000 - - Cade changes in preparation for 0.11 (but these do not require 0.11 - to compile). 0.11 features better code analysis, which is what it's - warning about here. - -M Makefile -M src/AppWindow.vala -M src/BatchImport.vala -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/Config.vala -M src/DirectWindow.vala -M src/EditingTools.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoFileFormat.vala -M src/PhotoPage.vala -M src/Properties.vala -M src/Sidebar.vala -M src/SlideshowPage.vala -M src/Tag.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala -M src/WebConnectors.vala - -commit 95ed7ae00f51d4a52c9b817dae4c90ad1d485ee4 -Author: Jim Nelson -Date: Mon Oct 4 21:23:28 2010 +0000 - - #2287: No more 64-bit printf modifiers. Courtesy mcben. - -M src/DataCollection.vala -M src/DatabaseTables.vala -M src/Event.vala -M src/JfifSupport.vala -M src/Photo.vala -M src/Tag.vala -M src/VideoSupport.vala - -commit cb12500495907abb3753088c265eba46c2a37e18 -Author: Jim Nelson -Date: Mon Oct 4 21:06:15 2010 +0000 - - #2634: -V/--version command-line option. Courtesy mcben. - -M THANKS -M src/main.vala - -commit 79185724d48f37baf3d06cbf9f326bdb74ac1958 -Author: Jim Nelson -Date: Mon Oct 4 19:49:28 2010 +0000 - - #2612: Fixed autocompletion with non-ASCII characters - -M src/Dialogs.vala - -commit c2e10190791dbd88e9e731d267fe6ea04a5eee28 -Author: Jim Nelson -Date: Fri Oct 1 23:08:29 2010 +0000 - - #1560: Switched to using Gtk.Actions entirely in our Page code. - I've also restructured how Actions are registered with the UI - Manager to deal better with multi-tiered class heirarchies (with - MediaPage, we now have three-deep Page classes with Actions that - must be registered). I've also made it easier to update the Actions - when ViewCollection state changes and pushed more common Action code - (i.e. Undo/Redo) into LibraryWindow. - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/MediaPage.vala -M src/OfflinePage.vala -M src/Page.vala -M src/PhotoPage.vala -M src/TagPage.vala -M src/TrashPage.vala -M src/VideosPage.vala - -commit 60d524b3b7aede32e14575ececae9388667d8874 -Author: Lucas Beeler -Date: Thu Sep 30 22:02:43 2010 +0000 - - Introduces the new MediaPage class that treats photos and videos - uniformly. As a consequence, allows editing titles and setting - ratings for videos. Closes #2584. - -M Makefile -M src/CollectionPage.vala -M src/Commands.vala -M src/Config.vala -M src/DataObject.vala -M src/DatabaseTables.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala -A src/MediaPage.vala -M src/Page.vala -M src/Photo.vala -M src/TagPage.vala -M src/Thumbnail.vala -M src/VideoSupport.vala -M src/VideosPage.vala -M ui/collection.ui -M ui/event.ui -C060 ui/collection.ui ui/media.ui -M ui/tags.ui -M ui/videos.ui - -commit e0fd446e20c5579650cef1252ddff900d87a3007 -Author: Vera Yin -Date: Thu Sep 30 19:55:53 2010 +0000 - - Updated Japanese translation in trunk. - -M THANKS -M po/ja.po - -commit 8ccaa7f67f7fbc42f88f542b7637b12937b8e9cc -Author: Jim Nelson -Date: Wed Sep 29 01:13:20 2010 +0000 - - #2475: Now adding Software version to metadata when exporting and - writing to master file. - -M src/MetadataWriter.vala -M src/Photo.vala -M src/PhotoMetadata.vala - -commit cc1031bd3b2b22c7188f2b59b66e08aaae8d90a2 -Author: Jim Nelson -Date: Wed Sep 29 00:42:20 2010 +0000 - - Fixed regression in DataSource's signal reflection to DataView. - This fixes #2598, #2597, and #2595.Also updated strings for #2591 - and #2610. - -M src/DataObject.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala - -commit 601b2d5faaf47512b558f31f85dca752ecf27f13 -Author: Jim Nelson -Date: Wed Sep 29 00:02:22 2010 +0000 - - Fixes a bug in last commit -- app won't close if no metadata was - auto-committed. - -M src/Workers.vala - -commit b4c6f9c6278b26098105eb0ed1966011a6bf302c -Author: Jim Nelson -Date: Tue Sep 28 22:54:34 2010 +0000 - - #1290: Store tags and other metadata (title/caption, rating, exposure - date/time) in photo files - -M Makefile -M src/AppWindow.vala -A src/Application.vala -M src/BatchImport.vala -M src/DatabaseTables.vala -A src/DelayedQueue.vala -M src/Dialogs.vala -M src/DirectoryMonitor.vala -M src/JfifSupport.vala -M src/LibraryMonitor.vala -M src/LibraryWindow.vala -A src/MetadataWriter.vala -M src/Photo.vala -M src/PhotoFileAdapter.vala -M src/PhotoFileFormat.vala -M src/PhotoMetadata.vala -M src/PhotoPage.vala -M src/PngSupport.vala -M src/RawSupport.vala -M src/SortedList.vala -M src/Workers.vala -M src/main.vala -M src/util.vala - -commit e9334e4d1b9ccde5cf5b0bad54fa79a0deee9e9f -Author: Vera Yin -Date: Mon Sep 27 20:16:29 2010 +0000 - - Updated Portuguese (Portgual) translation in trunk. - -M THANKS -M po/pt.po - -commit 0585b4d895065d0971e78dd7129e5bb857af181a -Author: Vera Yin -Date: Wed Sep 22 18:54:49 2010 +0000 - - Copied translation updates from 0.7 branch to trunk. - -M po/cs.po -M po/el.po - -commit ca21f76eb3f0b4136e6cb04bfe7064d3ee230619 -Author: Jim Nelson -Date: Wed Sep 22 17:19:29 2010 +0000 - - #2577: Support MTS video files. - -M src/VideoSupport.vala - -commit 2021775b0ce7e46629573a34ae1f4a3770e86c72 -Author: Vera Yin -Date: Tue Sep 21 18:42:24 2010 +0000 - - Copied translation update from 0.7 branch to trunk. - -M po/zh_CN.po - -commit d8c40caeaa56f22adb54475519e95b556a2fe41f -Author: Vera Yin -Date: Fri Sep 17 21:59:21 2010 +0000 - - Copied translation update from 0.7 branch to trunk. - -M THANKS -M po/el.po - -commit f9fb073443fa923b54120f1fbe112f75c9fd9e68 -Author: Vera Yin -Date: Fri Sep 17 18:02:17 2010 +0000 - - Copied translation update from 0.7 branch to trunk. - -M po/kk.po - -commit 456922c7c11ce42e36304cf11d0cbc2d35ddcad2 -Author: Lucas Beeler -Date: Fri Sep 17 01:40:43 2010 +0000 - - Enables Shotwell to import video files from cameras or the filesystem - and play them back in the system-defined media player. Closes #855. - -M Makefile -A icons/noninterpretable-video.png -M src/AlienDatabaseImportJob.vala -M src/BatchImport.vala -M src/CollectionPage.vala -M src/DataObject.vala -M src/DatabaseTables.vala -R068 src/PhotoExporter.vala src/Exporter.vala -M src/ImportPage.vala -M src/LibraryFiles.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoFileFormat.vala -M src/Properties.vala -M src/Resources.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala -A src/VideoSupport.vala -A src/VideosPage.vala -M src/main.vala -M src/util.vala -A ui/videos.ui - -commit cb1f4e2798f96709d70e0c8aabcb94301350d914 -Author: Vera Yin -Date: Thu Sep 16 18:51:56 2010 +0000 - - Copied translation updates from 0.7 branch to trunk. - -M po/kk.po -M po/pt.po - -commit 0be0447bec288862da2be1c866dbddc9c0b673e0 -Author: Jim Nelson -Date: Wed Sep 15 17:00:04 2010 +0000 - - #2537: Checking for null refs before calling is_page_selected(). - -M src/LibraryWindow.vala - -commit 65adc2444b8f37331298152f3eb43acee81a7e71 -Author: Jim Nelson -Date: Wed Sep 15 16:53:49 2010 +0000 - - #2563: Startup scan no longer reimports if file is merely touched. - -M src/DatabaseTables.vala -M src/LibraryMonitor.vala - -commit 88611579bca5e5c476db5715b354a53c6823f24f -Author: Vera Yin -Date: Wed Sep 15 00:05:07 2010 +0000 - - Copied translation updates from 0.7 branch to trunk. - -M Makefile -M THANKS -M po/hu.po -M po/it.po -M po/pt.po -C088 po/pt.po po/pt_BR.po -M po/sr.po -M po/sv.po - -commit 192ca547af59c965113904e2c062a097c7909d9a -Merge: b9ae51a7 c5bd728d -Author: Jim Nelson -Date: Sat Sep 11 01:20:50 2010 +0000 - - Merge from 0.7.2. - -commit c5bd728da418f109794621b4529ee84299e76ea9 -Author: Jim Nelson -Date: Sat Sep 11 00:13:56 2010 +0000 - - Changes for packaging 0.7.2. - -M Makefile -M NEWS -M debian/changelog -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/kk.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ro.po -M po/ru.po -M po/shotwell.pot -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po -M windows/winstall.iss - -commit b4bd97d4252e258d14c02d67c424e30bfa6b1927 -Author: Jim Nelson -Date: Fri Sep 10 19:28:12 2010 +0000 - - #2526: A null reference was not handled properly, causing this - problem. - -M src/LibraryWindow.vala - -commit b9ae51a7e0410f26c56539956e5ceb4e404c9c1c -Author: Vera Yin -Date: Fri Sep 10 19:08:00 2010 +0000 - - Copied German and Korean translations from branch to trunk. - -M THANKS -M po/de.po -M po/ko.po - -commit 89c992e13b0a02adde4008bf12ccce388e482fc0 -Author: Vera Yin -Date: Fri Sep 10 19:02:28 2010 +0000 - - Updated German and Korean translations in 0.7 branch. - -M THANKS -M po/de.po -M po/ko.po - -commit 4f1a759006b5d9c40e9b6b73e5032cf93ff6866d -Author: Vera Yin -Date: Fri Sep 10 03:22:41 2010 +0000 - - Copied Slovak translation from branch to trunk. - -M po/sk.po - -commit 27f31f46d726520c6a5ab7b8a97f0c462ada9b47 -Author: Vera Yin -Date: Fri Sep 10 03:19:04 2010 +0000 - - Updated Slovak translation. - -M po/sk.po - -commit 66fd8fc3ed10fcf6108adc63c72377543ce78f03 -Author: Vera Yin -Date: Thu Sep 9 20:20:48 2010 +0000 - - Copied po files from 0.7 branch to trunk. - -M po/ar.po -M po/ast.po -M po/bn.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/gl.po -M po/hr.po -M po/id.po -M po/kk.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/nb.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ro.po -M po/ru.po -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit cf531de2f544793e60d68cac7d79aee890e99836 -Author: Vera Yin -Date: Thu Sep 9 20:12:56 2010 +0000 - - Updated Bulgarian, Catalan, Chinese (Taiwan), Danish, Dutch, Finnish, - French, Hungarian, Italian, Japanese, Kazakh, Korean, Spanish, Thai, - and Ukrainian translations. Updated shotwell.pot (pulled from trunk - version which includes 'Import All' and 'Import Selected'). - -M po/bg.po -M po/ca.po -M po/da.po -M po/es.po -M po/fi.po -M po/fr.po -M po/hu.po -M po/it.po -M po/ja.po -M po/kk.po -M po/ko.po -M po/nl.po -M po/shotwell.pot -M po/th.po -M po/uk.po -M po/zh_TW.po - -commit 05fdcadfb8752a613892c1c60f0ed882ea5aadf9 -Author: Jim Nelson -Date: Thu Sep 9 20:01:34 2010 +0000 - - Fixes two debug messages only logged when TRACE_MD5 is set in the - configure script. - -M src/AlienDatabaseImportJob.vala -M src/Photo.vala - -commit 82e3caf8f09f71e8d98299cb862fefeac6d7278c -Author: Jim Nelson -Date: Thu Sep 9 02:20:30 2010 +0000 - - #2532: If Shotwell can't create vital data files/directories at - startup, instead of logging an error and exiting, it displays a - dialog box error and exits. NOTE: This introduces new translatable - strings that are not the .pot file. Although past string freeze, we - feel these are very rare cases and won't be seen by 99.9% of users, - but should be visible to that one-tenth of a percent that have done - something really odd with their permissions. - -M src/AppDirs.vala -M src/AppWindow.vala -M src/DatabaseTables.vala - -commit 614fea20f3f7835555bc74fb4aa48a2fd514c978 -Author: Lucas Beeler -Date: Thu Sep 9 01:31:50 2010 +0000 - - Fixes sidebar color when running under dark themes. Closes #2483. - -M src/LibraryWindow.vala - -commit 08831ebde8f98a5c3b62c3e29c8d2fe2a894952b -Author: Jim Nelson -Date: Thu Sep 9 00:08:48 2010 +0000 - - #2488: Shotwell will only ask user to copy or link on file import if - any of the files or directories are outside the library. If they're - all in the library, we always link. - -M src/AppDirs.vala -M src/LibraryWindow.vala - -commit 417034ea89cc847226ecae77e7ff326ba9972359 -Author: Jim Nelson -Date: Wed Sep 8 23:34:21 2010 +0000 - - #2528: libraw-config tries to find thread-safe version of libraw - package file (.pc), which is called libraw_r.pc on Gentoo, before - falling back to libraw.pc (which is what I *expect* other packages - to use when this is widespread), then going to the manual step. - - This will be a heckuva lot easier when libraw is properly packaged. - - Patch courtesy Valentin David. - -M THANKS -M libraw-config - -commit 67d4146fea47b13de9748e965f1f693a14034a10 -Author: Lucas Beeler -Date: Wed Sep 8 23:20:36 2010 +0000 - - Properly encodes the '+' character during the Picasa login - transaction. Closes #2533. - -M src/WebConnectors.vala - -commit 77d601532137dcae23ffd3990d05bbade757c179 -Author: Jim Nelson -Date: Wed Sep 8 17:52:38 2010 +0000 - - Fix I noticed while working on 0.8 that has been reported by 0.7.1 - user. Backported for inclusion in 0.7.2. - -M src/BatchImport.vala - -commit a5daf40ede749b5695f298a1fe5ca3b295bfa46e -Author: Jim Nelson -Date: Wed Sep 8 00:36:19 2010 +0000 - - Backmerged change to trunk to 0.7.1+branch for #2523. - -M src/WebConnectors.vala - -commit 38b3ac1afb97e56c3a6484a4937aa41d725a2db3 -Author: Lucas Beeler -Date: Wed Sep 8 00:25:12 2010 +0000 - - Adds null guards in PublishingDialog.go( ). Closes #2523. - -M src/WebConnectors.vala - -commit 7b2de4180264d97631d5fe36cd49e472a06d663f -Merge: 0f499a29 af61ecfc -Author: Jim Nelson -Date: Wed Sep 8 00:21:20 2010 +0000 - - Merge from 0.7.1+branch. - -commit af61ecfcc18f0e1287333c6ebc3bc8f7c44ebc05 -Author: Jim Nelson -Date: Tue Sep 7 21:39:02 2010 +0000 - - #2516: File monitor wasn't being created when externally editing a - previously-edited file. - -M src/Photo.vala - -commit caa10e0f3b16f4c1131bcde5708eeac8085179dc -Author: Jim Nelson -Date: Tue Sep 7 20:24:55 2010 +0000 - - #2520: Removed all references to deprecated string.len() method. - -M src/Dialogs.vala - -commit aeb08fd7391b3d1544ba4211a10a123bb72f1bbf -Author: Jim Nelson -Date: Tue Sep 7 19:48:00 2010 +0000 - - #2524: apport hook now distributed with tar ball. - -M Makefile - -commit ba8025b552037e9e401c137d093b650f63159404 -Author: Jim Nelson -Date: Fri Sep 3 22:38:05 2010 +0000 - - #2515: When the root of the library directory was a symbolic link, - DirectoryMonitor would fail to search (not following symbolic links) - and so all photos in the library would be marked offline. Then the - offline files were searched to see if they were online individually, - which they all were, and so they were marked online. This solves - the problem by following symbolic links *only* in the directory scan. - More thorough symbolic link support needs to happen. - -M src/DirectoryMonitor.vala -M src/LibraryMonitor.vala - -commit 5da3f5d41ff0e473948605a0e7b9c8bb2c329a56 -Author: Vera Yin -Date: Fri Sep 3 18:25:40 2010 +0000 - - Updated Korean translation. - -M po/ko.po - -commit 0f499a29fe52c2fbcf772d39ab71f6bda80601fd -Merge: 9ad4f31d 6024a6e1 -Author: Jim Nelson -Date: Thu Sep 2 20:29:46 2010 +0000 - - Merge from 0.7.1+branch (candidate fix for #2510) - -commit 9ad4f31d5821de339acb1f0eb4478200793162d0 -Author: Jim Nelson -Date: Thu Sep 2 19:56:01 2010 +0000 - - #2511: Vala 0.9.7 now required to build. - -M Makefile - -commit 6024a6e1e743af36c3beeb99e3a978a3a4d97b39 -Author: Jim Nelson -Date: Thu Sep 2 19:44:24 2010 +0000 - - #2510: This limits the number of directories that are traversed at - any one time to five. - -M Makefile -M src/DirectoryMonitor.vala - -commit 0e49db51567c0f8e742a8cd2b5ff5cf6db955c94 -Author: Vera Yin -Date: Thu Sep 2 18:53:30 2010 +0000 - - Updated Catalan, Chinese (Taiwan), French, and Italian translations. - -M THANKS -M po/ca.po -M po/fr.po -M po/it.po -M po/zh_TW.po - -commit 2507bea0b88196a600d13e120e4fa7da3095494b -Author: Jim Nelson -Date: Wed Sep 1 23:54:23 2010 +0000 - - #2504: VALAC makefile variable not used when detecting compiler - version number. Courtesy Elliot S. - -M Makefile -M THANKS - -commit c591e9670ab43521bc09d263dc8c77dc1f293dc7 -Author: Jim Nelson -Date: Wed Sep 1 23:46:38 2010 +0000 - - #2478: Files now added (auto-imported) when discovered at startup - (use --auto-import command-line option until #2492 is implemented). - #2491: Now have an update bar for background operations. More work - may need to be done if this is used by multiple background operations - at the same time. Note that this patch does NOT address symbolic - links, which is ticketed at #2307. - -M Makefile -M src/BatchImport.vala -M src/DataObject.vala -M src/DatabaseTables.vala -M src/DirectoryMonitor.vala -M src/Event.vala -M src/LibraryMonitor.vala -M src/LibraryWindow.vala -M src/Photo.vala -A src/Tombstone.vala -M src/main.vala - -commit 203b20fd3421a383a9d14c2886e3683ed3908670 -Author: Lucas Beeler -Date: Tue Aug 31 23:33:20 2010 +0000 - - Added GNOME Gettext domain tags to desktop template files following - Canonical's changes in response to Launchpad bug #616856. - -M misc/shotwell-viewer.desktop.head -M misc/shotwell.desktop.head - -commit bd5254d53d12a471f8a6763e7c700d9ed237323d -Author: Patrick Tierney -Date: Tue Aug 31 20:20:36 2010 +0000 - - #2499: updated tooltip for rotate button - -M src/Resources.vala - -commit 9d5c5a29858e0515ab53584352edf577f4682411 -Author: Patrick Tierney -Date: Tue Aug 31 20:18:33 2010 +0000 - - #2484: added keyboard accelerator to Edit menu in DirectPhotoPage - -M src/PhotoPage.vala - -commit 9976f73152372c9799dbbc8112957fbaee47d31e -Author: Vera Yin -Date: Tue Aug 31 18:28:45 2010 +0000 - - Updated Dutch and Korean translations. - -M THANKS -M po/ko.po -M po/nl.po - -commit 4f076e4b572f4f6c9d78d6e8e918c7177f82084e -Author: Patrick Tierney -Date: Tue Aug 31 01:26:17 2010 +0000 - - #1712: added No Event page - -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala - -commit 80a242fa61b94a1bc730f0e8120c56a719de5d31 -Author: Vera Yin -Date: Mon Aug 30 21:20:12 2010 +0000 - - Updated French translation. - -M po/fr.po - -commit ad11e2f5edaf29007c99ad083ab33b82ce53e810 -Author: Vera Yin -Date: Mon Aug 30 18:51:05 2010 +0000 - - Updated Bulgarian, Chinese (Taiwan), and Japanese translations. - -M po/bg.po -M po/ja.po -M po/zh_TW.po - -commit d082bcbb0e77db39b2a2490b9a19bdc65bb355a1 -Author: Jim Nelson -Date: Mon Aug 30 18:34:54 2010 +0000 - - #2495: Four strings in ImportPage were not marked for translation. - Fix and Finnish translations courtesy Mikko Huhtala. - -M THANKS -M po/fi.po -M po/shotwell.pot -M src/ImportPage.vala - -commit f7303f52c2769bfcf8acb2260cd654c3cf460c74 -Author: Jim Nelson -Date: Fri Aug 27 21:36:27 2010 +0000 - - #2476: At startup (discovery) Shotwell will now notice if a photo's - been modified externally and update state, including regen'ing - thumbnails, importing new metadata, and discarding transformations. - There's also work done to speed up marking files online/offline. - -M src/DatabaseTables.vala -M src/LibraryMonitor.vala -M src/Photo.vala - -commit b4ae514bd45a47b9a3d3519f121aa6c8ba2084ef -Author: Jim Nelson -Date: Fri Aug 27 21:11:18 2010 +0000 - - #2248: Jump to event for selected photo. - -M src/CollectionPage.vala -M src/EventsDirectoryPage.vala -M ui/collection.ui - -commit 6d71f62d9b57bb68e5e4fbbbe6ed4923111ea718 -Author: Vera Yin -Date: Fri Aug 27 18:29:58 2010 +0000 - - Updated Hungarian translation. - -M po/hu.po - -commit 3153d8f954d60212d3ff2bcde9a7cb15683b4407 -Author: Jim Nelson -Date: Fri Aug 27 00:53:05 2010 +0000 - - DataObjects no longer have an "altered" signal. All "altered" - signals come off their SourceCollection, which means it's easier to - aggregate and issue them in a single signal. - -M src/CollectionPage.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/DirectWindow.vala -M src/EditingTools.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/PixbufCache.vala -M src/SlideshowPage.vala -M src/Tag.vala -M src/TagPage.vala -M src/Thumbnail.vala - -commit 012dcd4500ba50c02b1d0fab576a0f4a80ae667b -Author: Jim Nelson -Date: Fri Aug 27 00:06:35 2010 +0000 - - Kazahk translation didn't merge properly. - -A po/kk.po - -commit 28ef3d0109f86e0c53c70cf0390b4d14b5fe2e0b -Merge: 66ac9e94 f065768b -Author: Jim Nelson -Date: Fri Aug 27 00:03:03 2010 +0000 - - Merge from 0.7.1. - -commit 66ac9e9436ad2574c31d7cf0f193a2a6bbbac4b7 -Author: Jim Nelson -Date: Thu Aug 26 23:20:17 2010 +0000 - - Versioned to 0.7.1+trunk. - -M Makefile - -commit f065768b2c508c4b38167e6110c4ef60aefaa97a -Author: Adam Dingle -Date: Thu Aug 26 20:31:16 2010 +0000 - - Updated Makefile given recent Mallard doc changes. - -M Makefile -M THANKS -M help/C/index.page - -commit 2414b82346ee3b27e2d15976c72a693e9f18b1da -Author: Lucas Beeler -Date: Thu Aug 26 20:20:04 2010 +0000 - - Updated version numbers, NEWS and debian/changelog file to prepare - for 0.7.1 release. - -M Makefile -M NEWS -M debian/changelog -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/kk.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ro.po -M po/ru.po -M po/shotwell.pot -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po -M windows/winstall.iss - -commit 53fc6ef5a9bd2039e609b2311dc386b7b00fa44d -Author: Jim Nelson -Date: Thu Aug 26 20:02:21 2010 +0000 - - #2479: Although the same symptoms as the original report of - the ticket, it was manifesting itself in a very different way. - This solves the problem of unlocking the ViewCollection before - its destroyed. - -M src/AppWindow.vala -M src/DataCollection.vala -M src/PhotoPage.vala - -commit e4db6678ed554363ee5435d724b62427964b296f -Author: Adam Dingle -Date: Thu Aug 26 19:10:06 2010 +0000 - - A minor text fix. - -M help/C/running.page - -commit 68c97e7dfd24df1aac6923f8bef485c9e0493cfd -Author: Adam Dingle -Date: Thu Aug 26 18:55:49 2010 +0000 - - Added Mallard documentation fixes from Phil Bull along with various - further edits. - -M help/C/edit-adjustments.page -M help/C/edit-crop.page -M help/C/edit-enhance.page -M help/C/edit-external.page -R060 help/C/edit-introduction.page help/C/edit-nondestructive.page -M help/C/edit-redeye.page -M help/C/edit-rotate.page -M help/C/edit-time-date.page -M help/C/edit-undo.page -A help/C/figures/crop_thirds.jpg -A help/C/formats.page -M help/C/import-camera.page -M help/C/import-f-spot.page -M help/C/import-file.page -A help/C/import-memorycard.page -M help/C/index.page -D help/C/introduction.page -M help/C/organize-event.page -M help/C/organize-rating.page -M help/C/organize-remove.page -M help/C/organize-tag.page -M help/C/organize-title.page -M help/C/other-missing.page -M help/C/other-multiple.page -M help/C/running.page -M help/C/share-background.page -M help/C/share-export.page -M help/C/share-print.page -M help/C/share-slideshow.page -M help/C/share-upload.page -M help/C/view-displaying.page -M help/C/view-information.page -M help/C/view-sidebar.page - -commit da566ebd1115d8d6388d70500a989cbe5078d265 -Author: Vera Yin -Date: Thu Aug 26 18:29:01 2010 +0000 - - Corrected translation mistake in French. - -M po/fr.po - -commit 8b3abd85fd0ef8a818deef3d54af7384f5310bdb -Author: Vera Yin -Date: Thu Aug 26 18:18:02 2010 +0000 - - Added Kazakh translation, updated Estonian, Hungarian, and Japanese - translations. - -M Makefile -M THANKS -M po/et.po -M po/hu.po -M po/ja.po -C077 po/ja.po po/kk.po - -commit 355b9e8d5eaef5ff0b255b8663d54ea26c79cc2e -Author: Vera Yin -Date: Wed Aug 25 20:04:37 2010 +0000 - - Merged updated translations from trunk to 0.7 branch. - -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ro.po -M po/ru.po -M po/shotwell.pot -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit ad89f5120ce288b98c95b84b4d8192bdb8fc0d53 -Author: Vera Yin -Date: Wed Aug 25 19:31:24 2010 +0000 - - Updated Japanese translation. - -M po/ja.po - -commit 7d16e14b56cdcfb0ed447b2cbd7308da904af7c6 -Author: Vera Yin -Date: Wed Aug 25 18:53:32 2010 +0000 - - Updated Czech, Galician, Hungarian, Portugese translations. - -M po/cs.po -M po/gl.po -M po/hu.po -M po/pt.po - -commit 740943d40bdab3ff91b59b52ef2e2dd664aa0399 -Author: Jim Nelson -Date: Tue Aug 24 23:43:11 2010 +0000 - - TransformablePhoto -> Photo - -M src/BatchImport.vala -M src/CollectionPage.vala -M src/Commands.vala -M src/DirectWindow.vala -M src/EditingTools.vala -M src/Event.vala -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/LibraryMonitor.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/PicasaConnector.vala -M src/Printing.vala -M src/Properties.vala -M src/WebConnectors.vala -M src/image_util.vala -M src/util.vala - -commit 787e50875e3901eba6a864f920054928e59075ee -Merge: 5f2f05d9 72b6b52e -Author: Jim Nelson -Date: Tue Aug 24 23:05:27 2010 +0000 - - Merge from 0.7 branch. - -commit 72b6b52e6335e81fdd5d8d06e9c6003f32aad000 -Author: Jim Nelson -Date: Tue Aug 24 18:59:58 2010 +0000 - - #2479: Fixed crash when removing last photo from an event in - full-window page. - -M src/PhotoPage.vala - -commit 519c17e91d2118a7f92ec453596809d75f35b2dd -Author: Patrick Tierney -Date: Tue Aug 24 17:34:05 2010 +0000 - - #2463: added context menu to missing photo page - -M src/OfflinePage.vala -M ui/offline.ui - -commit f51ea84da23167c6e62f3f919da907cc8c63eb9e -Author: Patrick Tierney -Date: Tue Aug 24 00:14:56 2010 +0000 - - #2472: fixed fullscreen F11 accelerator key - -M src/AppWindow.vala - -commit ce1b9857891379bc64a48d5a676f420d94784cec -Author: Patrick Tierney -Date: Mon Aug 23 22:45:32 2010 +0000 - - #2396: made zoom icons clickable - -M src/CollectionPage.vala -M src/PhotoPage.vala - -commit e0d03f9f9244db8d79e66da11d800b2d8ec3075f -Author: Jim Nelson -Date: Mon Aug 23 22:38:09 2010 +0000 - - #2465: F-Spot import skipped files imported from F-Spot 0.4.3.1 - (and perhaps later) because it did not have a photo_versions table. - This corrects that problem. Courtesy Bruno Girin. - -M src/FSpotDatabaseDriver.vala - -commit 055a2d53f3f6928e71a85872d5c28104376ea73c -Author: Jim Nelson -Date: Mon Aug 23 22:26:14 2010 +0000 - - Versioning. - -M Makefile - -commit 5f2f05d941fe1bb94fb127ebb1b4368cddd45880 -Author: Lucas Beeler -Date: Mon Aug 23 19:00:28 2010 +0000 - - Re-versioned PO files to have version number 0.7.0+trunk. - -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ro.po -M po/ru.po -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit c8caabd7ec1c6b4b357aa102467dae3d7ce893bd -Author: Vera Yin -Date: Mon Aug 23 18:43:36 2010 +0000 - - Updated Chinese (Taiwan), Italian, Japanese, Hungarian, Portuguese, - Russian, and Spanish translations. - -M THANKS -M po/es.po -M po/hu.po -M po/it.po -M po/ja.po -M po/pt.po -M po/ru.po -M po/zh_TW.po - -commit 9d37b9449966a3507e18b0d9173a78985a16233f -Merge: 2b8b5158 4bfac1e7 -Author: Adam Dingle -Date: Sat Aug 21 10:25:20 2010 +0000 - - Merged changes from branches/shotwell-0.7 to trunk. - -commit 4bfac1e7ee4332de753df21b0cabe6fa734f60e6 -Author: Vera Yin -Date: Sat Aug 21 00:06:38 2010 +0000 - - Changed the gexiv2 dependency version in the Makefile to agree with - the debian/control file. - -M Makefile - -commit 1e15cf3a9ce63e4cfa41d8a369dc9421516a8b41 -Author: Vera Yin -Date: Fri Aug 20 23:59:53 2010 +0000 - - Updated Mallard documentation. - -M help/C/edit-enhance.page -M help/C/edit-introduction.page -M help/C/edit-undo.page -M help/C/import-f-spot.page -M help/C/import-file.page -M help/C/organize-rating.page -M help/C/organize-remove.page -M help/C/running.page -M help/C/share-upload.page -M help/C/view-displaying.page - -commit 14dc1ebdf2d95acf8f957c0b4cb4e969d460e503 -Author: Lucas Beeler -Date: Fri Aug 20 21:55:57 2010 +0000 - - Prepared the debian and base directories for packaging Shotwell 0.7. - -M Makefile -M NEWS -M README -M debian/changelog -M debian/control -M debian/dirs -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ro.po -M po/ru.po -M po/shotwell.pot -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po -M windows/winstall.iss - -commit 35cc3dbf5e6df85c17a237cd8510add4f207ff4d -Author: Adam Dingle -Date: Fri Aug 20 21:53:14 2010 +0000 - - More Mallard documentation changes. - -M help/C/edit-adjustments.page -M help/C/edit-external.page -M help/C/edit-introduction.page -M help/C/edit-rotate.page -M help/C/edit-undo.page -M help/C/organize-remove.page -M help/C/organize-tag.page -M help/C/organize-title.page -M help/C/other-missing.page -M help/C/running.page -M help/C/view-displaying.page - -commit f5b961a530abfb277a68b7297cd9b0ec92986e01 -Author: Lucas Beeler -Date: Fri Aug 20 20:02:18 2010 +0000 - - Branch for preparing the Shotwell 0.7 release image. - -commit 2b8b51589c9c1fbe0a1dd22c86397eee23e9c07d -Author: Jim Nelson -Date: Fri Aug 20 19:34:44 2010 +0000 - - Fixes a bug Vera found where Revert to Original wasn't working after - editing externally. - -M src/Photo.vala - -commit 34bac57ecde4fdd762ebc64e3a193abcc540210c -Author: Adam Dingle -Date: Fri Aug 20 19:13:42 2010 +0000 - - Removed a duplicate help page. - -M Makefile -D help/C/other-standalone.page - -commit add56afad1a2543330a533fc428a8fa802d26eaa -Author: Jim Nelson -Date: Fri Aug 20 19:05:13 2010 +0000 - - #2449: Full-window page was using wrong dimensions when displaying - master (original) image. - -M src/Photo.vala -M src/PhotoPage.vala - -commit c03734d8956871acc31faf3dc5eb0b4e6258a266 -Author: Patrick Tierney -Date: Fri Aug 20 18:53:11 2010 +0000 - - #2395: increased signals emitted after external edit to fix bug with - reverting external edits - -M src/CollectionPage.vala -M src/Photo.vala - -commit dd844dbf8025f09b61a12782ace70c03793c71c1 -Author: Jim Nelson -Date: Fri Aug 20 18:40:35 2010 +0000 - - Moving help documents from ./help to ./help/C broke loading help - when running from build directory. This fixes it. See #2451. - -M src/Resources.vala - -commit 9a0ba10a78296a307e4d6314cefa48676aa49820 -Author: Adam Dingle -Date: Fri Aug 20 18:14:44 2010 +0000 - - More Mallard documentation changes. - -M Makefile -A help/C/edit-adjustments.page -M help/C/edit-enhance.page -M help/C/edit-external.page -M help/C/edit-introduction.page -D help/C/edit-multiple.page -A help/C/edit-time-date.page -M help/C/index.page -M help/C/introduction.page -M help/C/organize-rating.page -M help/C/organize-tag.page -A help/C/other-missing.page -A help/C/other-multiple.page -A help/C/other-standalone.page -A help/C/running.page -M help/C/share-background.page -A help/C/share-export.page -M help/C/share-slideshow.page - -commit b0ff882eb8a32b8893cbac3a3fbe6470b766131d -Author: Lucas Beeler -Date: Fri Aug 20 01:34:02 2010 +0000 - - Moves Mallard docs to help/C directory. Closes #2438. - -M Makefile -R100 help/edit-crop.page help/C/edit-crop.page -R100 help/edit-enhance.page help/C/edit-enhance.page -R100 help/edit-external.page help/C/edit-external.page -R100 help/edit-introduction.page help/C/edit-introduction.page -R100 help/edit-multiple.page help/C/edit-multiple.page -R100 help/edit-redeye.page help/C/edit-redeye.page -R100 help/edit-rotate.page help/C/edit-rotate.page -R100 help/edit-undo.page help/C/edit-undo.page -R100 help/figures/edit_toolbar.png help/C/figures/edit_toolbar.png -R100 help/figures/editing_overview.png -help/C/figures/editing_overview.png -R100 help/figures/shotwell_logo.png help/C/figures/shotwell_logo.png -R100 help/figures/trash_process.png help/C/figures/trash_process.png -R100 help/import-camera.page help/C/import-camera.page -R100 help/import-f-spot.page help/C/import-f-spot.page -R100 help/import-file.page help/C/import-file.page -R100 help/index.page help/C/index.page -R100 help/introduction.page help/C/introduction.page -R100 help/organize-event.page help/C/organize-event.page -R100 help/organize-rating.page help/C/organize-rating.page -R100 help/organize-remove.page help/C/organize-remove.page -R100 help/organize-tag.page help/C/organize-tag.page -R100 help/organize-title.page help/C/organize-title.page -R100 help/share-background.page help/C/share-background.page -R100 help/share-print.page help/C/share-print.page -R100 help/share-slideshow.page help/C/share-slideshow.page -R100 help/share-upload.page help/C/share-upload.page -R100 help/view-displaying.page help/C/view-displaying.page -R100 help/view-information.page help/C/view-information.page -R100 help/view-sidebar.page help/C/view-sidebar.page - -commit cf56c441cc2e24ac370eb847878b74d5aafc3369 -Author: Patrick Tierney -Date: Fri Aug 20 01:20:04 2010 +0000 - - #2428: removed LibSoup code from PublishingDialog constructor. The - code was spinning the event loop and opening the possibility for - multiple PublishingDialog windows being created. - -M src/CollectionPage.vala -M src/PhotoPage.vala -M src/WebConnectors.vala - -commit 8fe0a67d5de38a9be7b7a476bdc4a45af1a037b2 -Author: Jim Nelson -Date: Fri Aug 20 01:14:06 2010 +0000 - - #2433: Still faster than before, but now more responsive throughout - the operation. - -M src/Commands.vala - -commit 750f6d7fdbadf7fa7176a9db6fc36289617d1a9f -Author: Jim Nelson -Date: Fri Aug 20 01:05:13 2010 +0000 - - #2431: Memory leak was due to the Thumbnail exposure flag being - initialized to the wrong value, leading every Thumbnail to load its - thumbnail, thrashing on the cache. - -M src/Thumbnail.vala -M src/ThumbnailCache.vala - -commit a8a100c1fc1514fa7c9f32f60b71c42a79b0078d -Author: Adam Dingle -Date: Fri Aug 20 00:52:44 2010 +0000 - - Many changes to Mallard documentation. - -M Makefile -D help/advanced-startup.page -D help/advanced-where.page -D help/browse-navigate.page -D help/browse-view.page -D help/features-browsing.page -D help/features-editing.page -D help/features-importing.page -D help/features-introduction.page -D help/features-organizing.page -D help/features-sharing.page -D help/figures/adjust.png -D help/figures/autoenhance.png -D help/figures/crop.png -D help/figures/direct.png -D help/figures/fullwindow.png -D help/figures/grandma.png -D help/figures/grandma_favorites.png -D help/figures/key_photo.png -D help/figures/photos_collection.png -D help/figures/preferences.png -D help/figures/publish.png -D help/figures/select_rating.png -D help/figures/tags.png -D help/figures/time.png -M help/import-camera.page -M help/import-f-spot.page -M help/import-file.page -M help/index.page -A help/introduction.page -M help/organize-event.page -M help/organize-rating.page -R098 help/organize-delete.page help/organize-remove.page -R100 help/background.page help/share-background.page -M help/share-print.page -M help/share-upload.page -A help/view-displaying.page -A help/view-information.page -A help/view-sidebar.page - -commit 7fdcf293d7508c6f93764e63e0a63acc23f1c96b -Author: Lucas Beeler -Date: Fri Aug 20 00:06:12 2010 +0000 - - Closes #2448. - -M src/LibraryWindow.vala - -commit c1819b9970a318fa5e417260a462590988ad8bf1 -Author: Lucas Beeler -Date: Fri Aug 20 00:05:15 2010 +0000 - - Closes #2447. - -M src/OfflinePage.vala - -commit cb27e0d1b7895ae20034c264d2c453f78eda0f33 -Author: Lucas Beeler -Date: Fri Aug 20 00:04:18 2010 +0000 - - Fixes #2437. - -M src/AlienDatabaseImportDialog.vala -M src/FSpotDatabaseDriver.vala - -commit f38167aa28fc0edabbbe356d05c8b64ff0bae7f5 -Author: Lucas Beeler -Date: Thu Aug 19 22:00:50 2010 +0000 - - Changes the way ImportIDs are generated for F-Spot import operations - thereby ensuring that F-Spot imports properly appear on the Last - Import Page. Closes #2355. - -M src/AlienDatabaseImportJob.vala - -commit bd9eb00ece81f2b9ea521d1cedef82dbd8856094 -Author: Jim Nelson -Date: Thu Aug 19 21:09:33 2010 +0000 - - #2322: Stops renaming the Tags sidebar item when the locus is on it. - Courtesy Philip Beam. - -M src/Sidebar.vala - -commit 883879038ae198728cfb5619926b78a82e2bac60 -Author: Jim Nelson -Date: Thu Aug 19 21:05:37 2010 +0000 - - #2422: Patch to make Shotwell more responsive while marking photos - offline/online, as well as do the operation quicker than before. - -M src/CollectionPage.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/LastImportPage.vala -M src/LibraryMonitor.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/PhotoPage.vala - -commit 2b55bdb643ae42b6492d0a5be2d961321ebaa340 -Author: Lucas Beeler -Date: Thu Aug 19 19:42:29 2010 +0000 - - This is an evaluation check-in to determine how memebers of the - Shotwell team feel about moving the ratings icon flush-right in - the toolbar. - -M src/CollectionPage.vala - -commit bbe6180d1aca4fd7cefa8a5382801ab3bb1d91f4 -Author: Lucas Beeler -Date: Thu Aug 19 19:15:30 2010 +0000 - - Desaturated and darkened event icon. Closes #2405. - -M icons/multiple-events.png -M icons/one-event.png - -commit 9ea1f1c9f1fec1bceb1a3cbca576feb2ad4b4088 -Author: Jim Nelson -Date: Thu Aug 19 19:07:04 2010 +0000 - - Fixed a problem with installing help, courtesy Jürg Billeter. - -M Makefile -M THANKS - -commit d3b67c1e99936a22499f3c9f9706dc942fe9b0d1 -Author: Jim Nelson -Date: Thu Aug 19 03:21:59 2010 +0000 - - #2440: Fixes jarring behavior when navigating full-window with - missing backing files. - -M src/PhotoPage.vala -M src/PixbufCache.vala - -commit 37c425f0f0da1e396c9d75284084740b09b98c22 -Author: Lucas Beeler -Date: Thu Aug 19 01:46:46 2010 +0000 - - Last import page is now properly shown/hidden depending on import - roll state. Closes #2312. - -M src/LibraryWindow.vala - -commit 9f7fb8d557d8b806dc848a3be064f5566db26ff6 -Author: Jim Nelson -Date: Thu Aug 19 00:34:06 2010 +0000 - - Fixed a bug in how ImportIDs were being stored in memory. This may - affect #2355. - -M src/Photo.vala - -commit ce25d071fdd2cc1c88c867321c4b68268faa58cc -Author: Adam Dingle -Date: Thu Aug 19 00:33:17 2010 +0000 - - Renamed documentation pages in Makefile: I had changed these in - an earlier - commit but forgot to update the Makefile. - -M Makefile - -commit f780475f92021e92e670125dec944bbb124f726f -Author: Vera Yin -Date: Thu Aug 19 00:25:34 2010 +0000 - - Updated POT file to include "User Manual" string. - -M po/shotwell.pot - -commit a63abac447342ceea6628383d11950337e6c859f -Author: Vera Yin -Date: Thu Aug 19 00:13:28 2010 +0000 - - Added translations for "User Manual" to po files. - -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ro.po -M po/ru.po -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit 5e6b7483206e3a6d84aaf599bcee6f8aeb6ff373 -Author: Lucas Beeler -Date: Wed Aug 18 23:46:19 2010 +0000 - - Slots in new custom icons as well as stock icons as per the work of - an outside contributor. Closes #2435. - -M Makefile -D icons/adjust.png -D icons/all-photos.svg -A icons/image-adjust.svg -D icons/object-flip-horizontal.svg -D icons/object-flip-vertical.svg -D icons/object-rotate-left.svg -D icons/object-rotate-right.svg -M icons/pin-toolbar.svg -D icons/shotwell-16.png -A icons/shotwell-16.svg -D icons/shotwell-24.png -A icons/shotwell-24.svg -M icons/shotwell.svg -M src/CollectionPage.vala -M src/PhotoPage.vala -M src/Resources.vala - -commit d2eef14bf17cb6bac9166b78a121a45f255d3b28 -Author: Patrick Tierney -Date: Wed Aug 18 23:11:14 2010 +0000 - - #2427: grouped zoom slider and icons together so they disappear at - the same time - -M src/CollectionPage.vala - -commit a29372b7e958aba7e48ac182d15e8a6b39e046a1 -Author: Vera Yin -Date: Wed Aug 18 23:10:12 2010 +0000 - - Updated Japanese translation. - -M po/ja.po - -commit 882bac89f3d66bfe24898a82e43e8dc9cc3f6289 -Author: Jim Nelson -Date: Wed Aug 18 23:07:24 2010 +0000 - - Fixed a null deref. - -M src/BatchImport.vala - -commit 4d9df144aff19bf28d69815027e3c4550db839e6 -Author: Jim Nelson -Date: Wed Aug 18 22:58:52 2010 +0000 - - #2418: Added User Manual to Help menu. - -M src/AppWindow.vala -M ui/collection.ui -M ui/direct.ui -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/offline.ui -M ui/photo.ui -M ui/trash.ui - -commit bd37e8233e125d0cad64cfb9d2a68cb1ba903f44 -Author: Adam Dingle -Date: Wed Aug 18 20:14:24 2010 +0000 - - Added Peter Smith's latest Mallard documentation changes along with - some minor edits of my own. - -M help/advanced-startup.page -M help/advanced-where.page -A help/edit-introduction.page -M help/features-introduction.page -R085 help/features-organising.page help/features-organizing.page -A help/figures/edit_toolbar.png -A help/figures/trash_process.png -M help/index.page -R068 help/organise-delete.page help/organize-delete.page -R100 help/organise-event.page help/organize-event.page -R100 help/organise-rating.page help/organize-rating.page -R096 help/organise-tag.page help/organize-tag.page -R100 help/organise-title.page help/organize-title.page - -commit 53f12a8ca7b8e6cfbe00b06d43e04c8a5af24503 -Author: Lucas Beeler -Date: Wed Aug 18 18:46:04 2010 +0000 - - Fixes Welcome dialog import behavior such that photos imported - during F-Spot import are no longer reported as duplicates during - the follow-on XDG pictures directory import. Closes #2379. - -M src/AlienDatabaseImportDialog.vala -M src/BatchImport.vala -M src/FSpotDatabaseDriver.vala -M src/LibraryWindow.vala -M src/main.vala - -commit 5c4210fcb62eae37c1d703a8b7391968bb527e70 -Author: Patrick Tierney -Date: Wed Aug 18 17:36:19 2010 +0000 - - #2409: added duplicate detection to trash for files copied into - the library - -M src/BatchImport.vala -M src/Photo.vala - -commit 2cc270d5caa361a7b1a5f71a4b65312b96199916 -Author: Jim Nelson -Date: Wed Aug 18 17:34:07 2010 +0000 - - #2433: Sped up time to rate multiple photos. - -M src/Commands.vala - -commit 0a495cefe6a79ded930a5960d211e5d740b0ae38 -Author: Jim Nelson -Date: Wed Aug 18 03:21:54 2010 +0000 - - #1143: First cut of Mallard documentation, courtesy Robert Ancell - and Peter DO Smith. - -M Makefile -M THANKS -M configure -A help/advanced-startup.page -A help/advanced-where.page -A help/background.page -A help/browse-navigate.page -A help/browse-view.page -A help/edit-crop.page -A help/edit-enhance.page -A help/edit-external.page -A help/edit-multiple.page -A help/edit-redeye.page -A help/edit-rotate.page -A help/edit-undo.page -A help/features-browsing.page -A help/features-editing.page -A help/features-importing.page -A help/features-introduction.page -A help/features-organising.page -A help/features-sharing.page -A help/figures/adjust.png -A help/figures/autoenhance.png -A help/figures/crop.png -A help/figures/direct.png -A help/figures/editing_overview.png -A help/figures/fullwindow.png -A help/figures/grandma.png -A help/figures/grandma_favorites.png -A help/figures/key_photo.png -A help/figures/photos_collection.png -A help/figures/preferences.png -A help/figures/publish.png -A help/figures/select_rating.png -A help/figures/shotwell_logo.png -A help/figures/tags.png -A help/figures/time.png -A help/import-camera.page -A help/import-f-spot.page -A help/import-file.page -A help/index.page -A help/organise-delete.page -A help/organise-event.page -A help/organise-rating.page -A help/organise-tag.page -A help/organise-title.page -A help/share-print.page -A help/share-slideshow.page -A help/share-upload.page -M src/AppDirs.vala -M src/AppWindow.vala -M src/Resources.vala -M src/main.vala - -commit b69d0a02c4ce446a840f2ee0597fdda947ceb739 -Author: Vera Yin -Date: Tue Aug 17 20:02:42 2010 +0000 - - Updated Russian translation. - -M po/ru.po - -commit 4b2fa8df065f76ca6647224a896f04df25d21e17 -Author: Jim Nelson -Date: Tue Aug 17 18:59:06 2010 +0000 - - #1334: Autocompletion for tags dialogs. Courtesy Marcel Stimberg. - -M src/Dialogs.vala -M src/Tag.vala - -commit e6fb2dc2721dba7802d7d386322097c7b360f6b7 -Author: Jim Nelson -Date: Tue Aug 17 01:43:29 2010 +0000 - - An edge case I discovered where the sensitivity of Select All wasn't - being updated properly. - -M src/AppWindow.vala - -commit 30cc5dd603b6f32cdad7f915ee8f05cdf9be6611 -Author: Patrick Tierney -Date: Tue Aug 17 01:35:15 2010 +0000 - - #2410: fixed bug in which shotwell exported tags when there were - nono on a photo - -M src/Photo.vala - -commit dc88421c393c6ad370ad260c86b8f9f1eead386a -Author: Jim Nelson -Date: Tue Aug 17 00:10:45 2010 +0000 - - #2407: Fixed assertion when moving from full-window page back to - originating page (which happened when the single-click on the sidebar - caused the element to be edited). - -M src/LibraryWindow.vala -M src/PhotoPage.vala -M src/Sidebar.vala -M src/ThumbnailCache.vala - -commit e42dd0d91e78a4c22bffb70a05fa48c19bbd1a8e -Author: Jim Nelson -Date: Mon Aug 16 22:39:02 2010 +0000 - - #2350: F-Spot import now available throughout application, courtesy - Bruno Girin. - -M src/AlienDatabase.vala -M src/CollectionPage.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/OfflinePage.vala -M src/PhotoPage.vala -M src/TrashPage.vala -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/offline.ui -M ui/photo.ui -M ui/trash.ui - -commit c7e30c58bc9659c4ebe5a7489e5618e3dae09585 -Author: Lucas Beeler -Date: Mon Aug 16 19:32:17 2010 +0000 - - Makes the All Photos and All+Rejected ratings filter icons fixed-size - PNGs to improve their appearnace. Closes #2415. - -M Makefile -A icons/all-rejected.png -D icons/all-rejected.svg -A icons/shotwell-24.png -M src/CollectionPage.vala -M src/Resources.vala - -commit 5eca5f87c6dd45c38cdf035af06fc8e8fc853d4d -Author: Vera Yin -Date: Mon Aug 16 18:08:51 2010 +0000 - - Updated Danish, Japanese, and Portuguese translations. - -M po/da.po -M po/ja.po -M po/pt.po - -commit 6faac38ba4fdc3a8dfc8cf5e343c058b98be6630 -Author: Adam Dingle -Date: Mon Aug 16 15:17:02 2010 +0000 - - Added Vera to THANKS file. - -M THANKS - -commit a4462cb828f2f1026d3219a87dc1246cfe578a6e -Author: Jim Nelson -Date: Sat Aug 14 01:08:40 2010 +0000 - - #2308: Now marking photos missing on the fly (when they double-click - on it). - -M src/DataCollection.vala -M src/DataObject.vala -M src/PhotoPage.vala - -commit 5e3edca72e71151050adfd39a7d75a47f542aa98 -Author: Jim Nelson -Date: Fri Aug 13 23:54:26 2010 +0000 - - #2404: Date displayed when event name is deleted, even after restart. - -M src/Event.vala - -commit 58502c50c2c0672b645334fc3419e9795681c550 -Author: Jim Nelson -Date: Fri Aug 13 23:44:09 2010 +0000 - - #2383: "No photos imported" now reported if no photos were imported - from F-Spot. Courtesy Bruno Girin. - -M src/AlienDatabaseImportDialog.vala - -commit d5d61974b540497d35c3351ff90207c3c0db2842 -Author: Lucas Beeler -Date: Fri Aug 13 23:25:51 2010 +0000 - - The Shotwell icon is now properly displayed next to the "Photos" - sidebar entry. Closes #2403. - -M Makefile -A icons/shotwell-16.png -M src/Resources.vala - -commit 92da881c75ecb1fbe8f372650e5931e930980fe1 -Author: Patrick Tierney -Date: Fri Aug 13 20:43:26 2010 +0000 - - #2392: enabled importing, exporting, and setting library directory - with network shares - -M src/Dialogs.vala -M src/LibraryWindow.vala -M src/PhotoPage.vala - -commit 885f90c023104ee1e99ae6ca8ae56cd85d1e3b18 -Author: Patrick Tierney -Date: Fri Aug 13 20:30:00 2010 +0000 - - #2360: removed from numeric accelerators due to conflicts - with non-english keyboard layouts - -M src/CollectionPage.vala - -commit 3e74755fc6d84daf548067fca3cec7f0c4643570 -Author: Vera Yin -Date: Fri Aug 13 20:02:16 2010 +0000 - - Updated German and Italian translations. - -M THANKS -M po/de.po -M po/it.po - -commit 745a00e96076bdcd76be4b96cf655f1128087fa4 -Author: Patrick Tierney -Date: Fri Aug 13 19:17:20 2010 +0000 - - #2345: changed slideshow delay time - -M misc/shotwell.schemas -M src/Config.vala - -commit b579b7479f80f1888d13e5428c998bf44ba3406c -Author: Lucas Beeler -Date: Fri Aug 13 01:43:22 2010 +0000 - - Cancels the overall printing operation when a photo fails to print - due its backing file being missing. Closes #2376. - -M src/Printing.vala - -commit 28fad8a8aa679a1d5d3b52e16fecf28e6453d3a8 -Author: Vera Yin -Date: Fri Aug 13 01:30:57 2010 +0000 - - Added +trunk tag following 0.6.91 release. - -M Makefile - -commit a3cdd68088bea0d99fc17ebcadafd0f479f172ec -Author: Vera Yin -Date: Fri Aug 13 01:29:44 2010 +0000 - - This is the Shotwell 0.6.91 release image. - -M Makefile -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/ko.po -M po/lt.po -M po/lv.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ro.po -M po/ru.po -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit ba77fe6e69ee8cf421a7cb9306d37cb23393556c -Author: Jim Nelson -Date: Fri Aug 13 00:16:09 2010 +0000 - - #2408: Critical assertion after edit and save in external editor - fixed. - -M src/Photo.vala - -commit c850d79928d9df7e5bf3c4f23ea5b77255c8ea0c -Author: Adam Dingle -Date: Thu Aug 12 23:17:27 2010 +0000 - - Updated THANKS file. - -M THANKS - -commit bc3e4847de0de509532dd61026314e857b7566bd -Author: Jim Nelson -Date: Thu Aug 12 22:40:58 2010 +0000 - - Forgotten extensions on Makefile - -M Makefile - -commit 3674201a847a8ec587486b5b79a744e1a6eb5e34 -Author: Lucas Beeler -Date: Thu Aug 12 22:38:16 2010 +0000 - - Updated Makefile such that the new sidebar and zoom slider end icons - are included in the distribution. - -M Makefile - -commit 607f4d43b429cbe58c218bb3f3f0f4068b4601e1 -Author: Lucas Beeler -Date: Thu Aug 12 22:10:12 2010 +0000 - - Adds improved sidebar icons; closes #2331. - -A icons/last-import-roll.png -A icons/multiple-events.png -A icons/multiple-tags.png -A icons/one-event.png -A icons/one-tag.png -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/Resources.vala -M src/TagPage.vala - -commit 3c7b177fc1d9f23dc2b620a63ab195710434e37f -Author: Patrick Tierney -Date: Thu Aug 12 21:43:53 2010 +0000 - - #1614: added icons to the ends of the zoom slider - -A icons/zoom-in.png -A icons/zoom-out.png -M src/CollectionPage.vala -M src/PhotoPage.vala -M src/Resources.vala - -commit 4863f4fc5122916861da089c19d455c9bce9de07 -Author: Patrick Tierney -Date: Thu Aug 12 21:41:46 2010 +0000 - - Addresses the issues in #2357, without solving it. Makes the All - Photas and All + Rejected icons slightly larger - -M src/CollectionPage.vala - -commit 29e060455d39027075c371e10d40cea7faca8b03 -Author: Jim Nelson -Date: Thu Aug 12 21:39:40 2010 +0000 - - Backed out 2058. - -M src/CollectionPage.vala - -commit a06c94af16be586ec297d9cd400306dacd4f4376 -Author: Patrick Tierney -Date: Thu Aug 12 21:12:31 2010 +0000 - - Addresses the issues in #2357, without solving it. Makes the All - Photas and All + Rejected icons slightly larger - -M src/CollectionPage.vala - -commit bd8d014168e232d4d7a3bcb85ffcb433a20d60ce -Author: Vera Yin -Date: Thu Aug 12 20:16:22 2010 +0000 - - Updated Portuguese translation. - -M po/pt.po - -commit f370cc32439f22eaeda97985a4b1292f71d6006e -Author: Jim Nelson -Date: Thu Aug 12 04:30:42 2010 +0000 - - #2377: Further work to speed up startup. Now only marking photos - online/offline, no attempt to reimport or discover renames. - Huge speed increase in unlinking/relinking tags and events. - -M src/DataCollection.vala -M src/DataObject.vala -M src/DatabaseTables.vala -M src/DirectoryMonitor.vala -M src/Event.vala -M src/LibraryMonitor.vala -M src/Photo.vala -M src/Tag.vala -M src/Thumbnail.vala - -commit 05939e704d4109ddcd1b731de4035e615ceb3a65 -Author: Jim Nelson -Date: Thu Aug 12 00:43:30 2010 +0000 - - #2346: F-Spot import dialog now is cancellable if F-Spot database - is not present. - -M src/AlienDatabaseImportDialog.vala -M src/AlienDatabaseImportJob.vala -M src/FSpotDatabaseDriver.vala -M ui/shotwell.glade -M ui/shotwell.xml - -commit 0a9374e240cdfc93a3e3fe4311b235ff8391bda4 -Author: Jim Nelson -Date: Wed Aug 11 23:42:25 2010 +0000 - - Update to visibility interface in ViewCollection. - -M src/DataCollection.vala - -commit cf563d9a75504c1c8fd34e9a755f4c2244caf6fb -Author: Vera Yin -Date: Wed Aug 11 18:58:49 2010 +0000 - - Updated Japanese and Slovak translations. - -M po/ja.po -M po/sk.po - -commit 80e3c68c453743a5b745a9341f044a10d8b6b2a5 -Author: Lucas Beeler -Date: Wed Aug 11 01:45:58 2010 +0000 - - Fixes a critical bug in which Shotwell would crash when the user - attempted to publish a photo whose backing file was missing. Closes - #2254. - -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/PicasaConnector.vala -M src/WebConnectors.vala - -commit 6e54a5db7c6bfb9548d4e0372478367e8919636d -Author: Patrick Tierney -Date: Wed Aug 11 01:12:11 2010 +0000 - - #2374: added tooltips to rating filter button - -M src/CollectionPage.vala -M src/Resources.vala - -commit b6e39217d073765f698e45b2daf541630a76a18a -Author: Jim Nelson -Date: Wed Aug 11 00:28:46 2010 +0000 - - #2319: Improved detection of RAW duplicates on camera when thumbnail - is not present by comparing filesize and basename in library. - This prevents copying the (large) file off the camera only to match - it via MD5 once it's on local disk. - -M src/BatchImport.vala -M src/ImportPage.vala -M src/Photo.vala - -commit 01e1a5975bcb089e4ea4b167818c7693b459847a -Author: Jim Nelson -Date: Tue Aug 10 21:29:27 2010 +0000 - - #2377: Startup scan of library directory was taking too long when - a large number of files were present that weren't imported into - the database. This fix reduces the time to process these files. - -M src/DataCollection.vala -M src/DatabaseTables.vala -M src/Photo.vala -M src/util.vala - -commit 195ec5540bfc06c7a173076eef6cce91a442f997 -Author: Patrick Tierney -Date: Tue Aug 10 18:48:33 2010 +0000 - - #2185: fixed a PhotoPage navigation bug, and introduced changes to - the ViewCollection data structure - -M src/Commands.vala -M src/DataCollection.vala -M src/PhotoPage.vala - -commit bab48f3c0c367b4e4f62cda0b6708ff8c18d7b19 -Author: Jim Nelson -Date: Tue Aug 10 01:31:29 2010 +0000 - - #2335: F-Spot import now available from welcome dialog. - -M src/AlienDatabaseImportDialog.vala -M src/Dialogs.vala -M src/FSpotDatabaseDriver.vala -M src/main.vala - -commit dcfc014ca9bd1d8063e63bcbe8cb2a9494184f41 -Author: Jim Nelson -Date: Mon Aug 9 22:21:42 2010 +0000 - - #2348: Slideshow now available in full-window mode. - -M src/PhotoPage.vala -M ui/photo.ui - -commit 7ac4e31a783119ff302ae2be8ed5e327825f5ec3 -Author: Jim Nelson -Date: Mon Aug 9 22:11:40 2010 +0000 - - #2343: Crash after fullscreen red eye reduction fixed. - -M src/PhotoPage.vala - -commit f7bf5a065ffbf3d00a4c5c6436de3bc2834cbc9b -Author: Jim Nelson -Date: Mon Aug 9 22:00:39 2010 +0000 - - #2373: Print no longer crashes if the backing file is missing. - -M src/CollectionPage.vala -M src/Printing.vala - -commit 394a6c43c0168306d6da004bcd4baa7d8614f217 -Author: Vera Yin -Date: Mon Aug 9 20:13:50 2010 +0000 - - Removed c-format comment from strings containing '% ' in POT and - PO files. - -M po/ast.po -M po/ca.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/et.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/it.po -M po/ja.po -M po/ko.po -M po/lt.po -M po/nb.po -M po/ro.po -M po/ru.po -M po/shotwell.pot -M po/sl.po -M po/sr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit 6ae65908adabe7ed707d7783ea8cfda89b8a7554 -Author: Jim Nelson -Date: Mon Aug 9 19:54:59 2010 +0000 - - Additional optimizations ... plenty more work to be done in this - area, however. - -M src/DataCollection.vala -M src/Event.vala -M src/Photo.vala - -commit 93875fca4bf12a64b6550ef82b23f0b5f3b51a2f -Author: Jim Nelson -Date: Mon Aug 9 19:42:17 2010 +0000 - - #2371: valac 0.9.5 knows that error() will not return and so no - need to provide fake return values for code correctness. This patch - makes Shotwell unable to compile with earlier compilers. - -M Makefile -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/ColorTransformation.vala -M src/DatabaseTables.vala -M src/Dimensions.vala -M src/EditingTools.vala -M src/ImportPage.vala -M src/MimicManager.vala -M src/Orientation.vala -M src/Photo.vala -M src/PhotoFileFormat.vala -M src/PixbufCache.vala -M src/Printing.vala -M src/ThumbnailCache.vala -M src/WebConnectors.vala -M src/Workers.vala - -commit 2ba0e6ae8cdf7071fa5b89010a8729ac7a752553 -Author: Vera Yin -Date: Mon Aug 9 18:33:44 2010 +0000 - - Added Korean translation. Updated Catalan, Danish, Estonian, Italian, - Japanese, Lithuanian, and Romanian translations. - -M Makefile -M THANKS -M po/ca.po -M po/da.po -M po/et.po -M po/it.po -M po/ja.po -C060 po/et.po po/ko.po -M po/lt.po -M po/ro.po - -commit 4ff3dc5ebb88a3fec554ee19a36c513d719310d9 -Author: Jim Nelson -Date: Sat Aug 7 01:29:07 2010 +0000 - - Further optimizations and code refactoring to help speed up startup - time and trash/offline moves. - -M src/DataCollection.vala -M src/DataObject.vala -M src/DatabaseTables.vala -M src/Event.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/Sidebar.vala -M src/SortedList.vala -M src/Thumbnail.vala - -commit 005c3d5d31f903a03ba67613cfb292114b8c8280 -Author: Patrick Tierney -Date: Fri Aug 6 20:25:59 2010 +0000 - - #2361: fixed rating menu sensitivity bug - -M src/PhotoPage.vala - -commit 0b182b1ec4e4c6dbd63a536032a995dda70744c6 -Author: Jim Nelson -Date: Fri Aug 6 19:27:51 2010 +0000 - - Further optimizations in startup time. Almost all pages (the Photos - page is the lone hold-out) are stubs, the pages themselves created - as they're accessed. This has big wins on startup time. - -M src/Commands.vala -M src/EventsDirectoryPage.vala -M src/LastImportPage.vala -M src/LibraryWindow.vala -M src/OfflinePage.vala -M src/Page.vala -M src/TagPage.vala -M src/TrashPage.vala - -commit fdd472a11b2281bbac5a6902ee9b02617d86cea1 -Author: Patrick Tierney -Date: Fri Aug 6 19:12:24 2010 +0000 - - #2354: fixed set rating display bug when photo is missing - -M src/PhotoPage.vala - -commit b4de2e238b52f537077e9c11b9d3bc8a3046f60d -Author: Vera Yin -Date: Fri Aug 6 17:47:44 2010 +0000 - - Updated Galician, Polish, and Swedish translations. - -M po/gl.po -M po/pl.po -M po/sv.po - -commit cb1c5228cf79c2e635e1753d9d1bc154fb44126f -Author: Jim Nelson -Date: Thu Aug 5 21:47:30 2010 +0000 - - #2302: On startup, now checking all photos at startup for - online/offline status, including those outside the library directory. - This patch also includes various optimizations in linking/unlinking - and freezing/thawing DataCollections, which improves the performance - of marking online/offline status as well as moving to the trash. - -M src/CollectionPage.vala -M src/Commands.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/DirectoryMonitor.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/LastImportPage.vala -M src/LibraryMonitor.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/Thumbnail.vala -M src/main.vala - -commit 0b242b7e06168ba35cc2ea21e19fa865dedd5133 -Author: Vera Yin -Date: Thu Aug 5 18:16:31 2010 +0000 - - Updated Estonian, Greek, Japanese, Russian, and Ukrainian - translations. - -M po/el.po -M po/et.po -M po/ja.po -M po/ru.po -M po/uk.po - -commit 66e625cbd1a2f5a8f3df354e93c61f683f2df556 -Author: Jim Nelson -Date: Wed Aug 4 23:32:09 2010 +0000 - - Small update to the photo viewer and pixbuf cache, to better - prioritize background fetches. - -M src/PhotoPage.vala -M src/PixbufCache.vala -M src/ThumbnailCache.vala -M src/Workers.vala - -commit 7a2dc435e85e54556f05e12baad414898b669932 -Author: Patrick Tierney -Date: Wed Aug 4 20:30:11 2010 +0000 - - #2353: fixed crashing bug relating to importing a photo while a view - filter is in place - -M src/DataCollection.vala - -commit 06bd621f7f86f4f87927922527d2613c6ac019a2 -Author: Vera Yin -Date: Tue Aug 3 23:33:20 2010 +0000 - - Added +trunk tag following 0.6.90 release. - -M Makefile - -commit 68521d6a63be9e619162d6bc68ffbaa3a820270a -Author: Vera Yin -Date: Tue Aug 3 23:31:50 2010 +0000 - - This is the Shotwell 0.6.90 release image. - -M Makefile -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/ca.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/fi.po -M po/fr.po -M po/gl.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/lt.po -M po/lv.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ro.po -M po/ru.po -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/th.po -M po/tr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit 62cbf4193325c3685111ede61a365baea20447cd -Author: Patrick Tierney -Date: Tue Aug 3 22:59:24 2010 +0000 - - fixed bug involving ratings not being set in the database on photo - import - -M src/DatabaseTables.vala - -commit f0acb412911fd2eb7e14f95e90cd6bf8b6b5e46f -Author: Patrick Tierney -Date: Tue Aug 3 20:38:49 2010 +0000 - - #2235: added importing and exporting ratings - -M src/Photo.vala -M src/PhotoMetadata.vala - -commit 313c1b7ed161cf9317005867a3249118e95abded -Author: Vera Yin -Date: Tue Aug 3 02:21:12 2010 +0000 - - Updated English (Great Britain) and French translations. - -M po/en_GB.po -M po/fr.po - -commit 2e87f06952aa3db3530f0066720746085a905797 -Author: Patrick Tierney -Date: Mon Aug 2 22:18:50 2010 +0000 - - #2296: added filter button and menu to bottom chrome - -A icons/all-photos.svg -A icons/all-rejected.svg -A icons/five-star-filter.svg -A icons/four-star-filter-plus.svg -A icons/one-star-filter-plus.svg -A icons/three-star-filter-plus.svg -A icons/two-star-filter-plus.svg -M src/CollectionPage.vala -M src/Resources.vala -M ui/collection.ui - -commit 175ba689320a31006dd0c13959d22b704fc452f5 -Author: Jim Nelson -Date: Mon Aug 2 21:58:46 2010 +0000 - - #2334: F-Spot import requires less memory during run. - -M src/AlienDatabaseImportJob.vala - -commit bbe118a1781026b342a6d033e841eaff496d8ccd -Author: Jim Nelson -Date: Mon Aug 2 21:32:42 2010 +0000 - - #2333: Improved F-Spot import error handling. - -M src/AlienDatabase.vala -M src/AlienDatabaseImportDialog.vala -M src/FSpotDatabaseDriver.vala -M src/FSpotDatabaseTables.vala - -commit 3b052fed11eaba64a487895d754056c93e23d7fa -Author: Jim Nelson -Date: Mon Aug 2 21:04:44 2010 +0000 - - Changed calls deprecated in Gee 0.5.2. - -M src/DirectoryMonitor.vala -M src/PixbufCache.vala -M src/Tag.vala - -commit 599d686ed56cbdd107aabd0bb1e5074c149af608 -Author: Vera Yin -Date: Mon Aug 2 19:21:36 2010 +0000 - - Updated Asturian, Chinese (Mainland PRC), Chinese (Taiwan), German, - Serbian, Slovenian, and Ukrainian translations. - -M po/ast.po -M po/de.po -M po/sl.po -M po/sr.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit e9b14c16b24d383d7bbcbd5d1780dc376f8bde78 -Author: Vera Yin -Date: Fri Jul 30 23:40:23 2010 +0000 - - Updated Norwegian translation. - -M po/nb.po - -commit f80a971414957d86be7086ae1bffcabdba18c767 -Author: Vera Yin -Date: Fri Jul 30 22:58:28 2010 +0000 - - Updated Finnish and Ukrainian translations. - -M po/fi.po -M po/uk.po - -commit 49430992fb269cce28222dc940a90e67d766a4b9 -Author: Vera Yin -Date: Fri Jul 30 19:36:23 2010 +0000 - - Updated shotwell.pot after real string freeze. - -M po/shotwell.pot - -commit eac5ccae588cdf2709f221be70f59f07bda507e9 -Author: Lucas Beeler -Date: Fri Jul 30 14:42:41 2010 +0000 - - Fixes duplicate mnemonics. Closes #2341. - -M src/AppWindow.vala -M src/PhotoPage.vala -M src/Resources.vala - -commit edfe805e86b202a30a985196700e6849d8ad8d91 -Author: Jim Nelson -Date: Fri Jul 30 13:41:06 2010 +0000 - - Added mnemonics to Welcome dialog checkboxes. - -M src/Dialogs.vala - -commit 415158ba649d1c0913b57de7ee2ba34c2e27988a -Author: Lucas Beeler -Date: Fri Jul 30 12:48:22 2010 +0000 - - Fixes Welcome Dialog nits, closes #2338. - -M src/Dialogs.vala - -commit 2d7c6dcfd80198c49301b3f64f4b40fd4847d2d4 -Author: Patrick Tierney -Date: Fri Jul 30 00:55:46 2010 +0000 - - #2337: default filter level now shows unrated or better photos - -M misc/shotwell.schemas -M src/Config.vala - -commit 1217a9520c0dfc0f2ee3204fa755c968576147bc -Author: Vera Yin -Date: Thu Jul 29 21:39:35 2010 +0000 - - Updated shotwell.pot following 0.7 string freeze. - -M po/shotwell.pot - -commit 27b5e3d0ea767e144d7fbd4d4e50135e9e327a97 -Author: Jim Nelson -Date: Thu Jul 29 21:12:13 2010 +0000 - - #2262: Always show master file when Shift key is pressed, even if - external edit is in place. - -M src/MimicManager.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/PixbufCache.vala -M src/SlideshowPage.vala - -commit 5673e27fbe747c185947421a9cb19fb053932138 -Author: Jim Nelson -Date: Thu Jul 29 21:07:38 2010 +0000 - - #2336: Duplicate mnemonic taken care of. - -M src/Resources.vala - -commit 69a5ec870f9756dd4ec1e8aec82d8649ed19e000 -Author: Vera Yin -Date: Thu Jul 29 21:02:30 2010 +0000 - - Updated English (Great Britain) translation. - -M po/en_GB.po - -commit 6da895b38e1bc802adc1aa2e8b7b3c9be79973a7 -Author: Jim Nelson -Date: Thu Jul 29 14:32:39 2010 +0000 - - #324: Accelerators of hosted page now available in fullscreen mode. - -M src/AppWindow.vala - -commit efdc88b39005f43a13c2ecc5a3a3e63e9953ce41 -Author: Lucas Beeler -Date: Thu Jul 29 13:49:19 2010 +0000 - - Prompts the user to import from an existing F-spot library or - the system pictures directory when Shotwell is run for the first - time. Closes #1908. - -M src/Dialogs.vala -M src/LibraryWindow.vala -M src/main.vala - -commit 2cc23d0d9a71dd368bfa26209f03d2e7c64786d4 -Author: Jim Nelson -Date: Thu Jul 29 12:42:25 2010 +0000 - - #2329: 64-bit library support for libraw-config. - -M libraw-config - -commit 4791b737af61e0a523244b2c5f4ab46a650a4930 -Author: Jim Nelson -Date: Thu Jul 29 11:08:19 2010 +0000 - - #2304: "Already in library" changed to "duplicate photo" not imported. - -M src/Dialogs.vala - -commit fd5b59a120295f261725c8543e48b4c2d4903789 -Author: Jim Nelson -Date: Thu Jul 29 11:06:15 2010 +0000 - - #2327: Changed text for rating filter strings, as discussed. - -M src/Resources.vala - -commit 222cb80a6d395715bb3dceb94cfef6cceab9ab26 -Author: Jim Nelson -Date: Thu Jul 29 10:42:33 2010 +0000 - - #139: F-Spot migration. Courtesy the diligent and dedicated work - of Bruno Girin. Thanks, Bruno! - -M Makefile -M THANKS -A src/AlienDatabase.vala -A src/AlienDatabaseImportDialog.vala -A src/AlienDatabaseImportJob.vala -M src/BatchImport.vala -M src/CollectionPage.vala -M src/DatabaseTables.vala -M src/Event.vala -A src/FSpotDatabaseDriver.vala -A src/FSpotDatabaseTables.vala -M src/Photo.vala -M src/main.vala -M ui/collection.ui -M ui/shotwell.glade - -commit ccadbad0db0726783571e4bede4dd768c5b9ade1 -Author: Patrick Tierney -Date: Wed Jul 28 20:02:17 2010 +0000 - - #2279: user can now toggle display of photo ratings - -M misc/shotwell.schemas -M src/CollectionPage.vala -M src/Config.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/Thumbnail.vala -M ui/collection.ui -M ui/photo.ui - -commit 4af51bbc7987adb2fdc235f2b5fbdc6f2942416a -Author: Jim Nelson -Date: Wed Jul 28 15:09:59 2010 +0000 - - #2297: Reset to default background color with Ctrl+Click on Prefs - slider. Courtesy Philip Beam. - -M src/Dialogs.vala -M ui/shotwell.glade - -commit 983227894706fb8b28f6bfed0dc5f10136390884 -Author: Jim Nelson -Date: Wed Jul 28 15:02:38 2010 +0000 - - #295: Icons in sidebar, courtesy Philip Beam. - -M src/CollectionPage.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/LastImportPage.vala -M src/LibraryWindow.vala -M src/OfflinePage.vala -M src/Page.vala -M src/Resources.vala -M src/Sidebar.vala -M src/TrashPage.vala - -commit 779002d58ec170de71cbc51cfe4e3d1c5aef57b9 -Author: Vera Yin -Date: Mon Jul 26 20:53:32 2010 +0000 - - Updated Catalan and Chinese (Taiwan) translations. - -M po/ca.po -M po/zh_TW.po - -commit 6d015ffdda55b5979a5d63a72b81fd36c40b6821 -Author: Vera Yin -Date: Thu Jul 22 18:44:01 2010 +0000 - - Added Catalan translation. - -M Makefile -M THANKS -A po/ca.po - -commit 2ea3dbc68838c5fad6e3052db271b639770f54bf -Author: Jim Nelson -Date: Thu Jul 22 01:38:54 2010 +0000 - - #2306: Remove files from the Missing Files page. - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/Dialogs.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/OfflinePage.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/TrashPage.vala -M src/util.vala -M ui/collection.ui -M ui/events_directory.ui -M ui/import.ui -M ui/offline.ui -M ui/trash.ui - -commit 84282b93ce91993af93c0d28eaf18fbaa7a1f790 -Author: Jim Nelson -Date: Wed Jul 21 23:33:20 2010 +0000 - - #374: Auto-import files added to library directory. - -M src/BatchImport.vala -M src/ImportPage.vala -M src/LibraryMonitor.vala -M src/LibraryWindow.vala -M src/Photo.vala - -commit 195eda1afd0904e97fcb95ec9acaebd6fd32d899 -Author: Vera Yin -Date: Wed Jul 21 23:22:14 2010 +0000 - - Updated Czech translation. - -M THANKS -M po/cs.po - -commit d1fef52a9c840083f34561092b5c41b8ef30442c -Author: Jim Nelson -Date: Wed Jul 21 23:13:59 2010 +0000 - - #2210: Relative path now allowed when specifying database directory - on command-line. Courtesy Philip Beam. - -M src/main.vala - -commit dd25d9986ceec3989d1184cc8d43bd071fcf19d8 -Author: Jim Nelson -Date: Wed Jul 21 23:03:40 2010 +0000 - - Updated glib requirement to 2.24 (for directory monitoring). - -M Makefile -M debian/control -M src/DirectoryMonitor.vala - -commit 8d98fd85ad8eba1b6408f3209a0e4968fab97efe -Author: Patrick Tierney -Date: Wed Jul 21 18:42:56 2010 +0000 - - #2277: removed all code relating to hiding and favorites - -D icons/favorite.svg -R100 icons/hidden.svg icons/rejected.svg -M misc/shotwell.schemas -M src/CollectionPage.vala -M src/Commands.vala -M src/Config.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/Thumbnail.vala -M ui/collection.ui -M ui/photo.ui - -commit 6e397a7be6655c7a73d9849a69306e351f1e1011 -Author: Jim Nelson -Date: Wed Jul 21 01:46:56 2010 +0000 - - #897: Last Import page. - -M Makefile -M src/DatabaseTables.vala -A src/LastImportPage.vala -M src/LibraryWindow.vala -M src/Photo.vala - -commit 6a75fcfdf586d6477f5eae164473d022c2dcfb55 -Author: Patrick Tierney -Date: Tue Jul 20 20:33:30 2010 +0000 - - #2187: added progress window when deleting photos from a camera - -M src/ImportPage.vala - -commit 095bc2ed219503be9de1e8f442f634926bdd97a4 -Author: Patrick Tierney -Date: Tue Jul 20 20:29:52 2010 +0000 - - #2295: removed "or Better" from five star rating filter - -M src/Resources.vala - -commit 17b4d04280011a4e83a57bd8d3624f38b338716c -Author: Vera Yin -Date: Tue Jul 20 19:13:13 2010 +0000 - - Assertion fired if a duplicate tag was in the photo at import time. - This corrects the problem. - -M src/Tag.vala - -commit 3bfa37b88a601f402788041ddd931e35ed83a420 -Author: Jim Nelson -Date: Tue Jul 20 18:08:05 2010 +0000 - - #2294: Down arrow selects last photo on next row if none directly - below. Courtesy Philip Beam. - -M src/CheckerboardLayout.vala - -commit fd386f9b93729d7608e46b3e11ffca0ab65b256f -Author: Jim Nelson -Date: Tue Jul 20 02:24:10 2010 +0000 - - #374: First commit for library monitoring. Run with - --enable-monitoring to activate. Will scan library directory at - startup and the continue monitoring the entire tree. For now only - moves, alterations, and deletes are handled. Future work will - auto-import added files and (possibly) handle symbolic links. - -M Makefile -M src/DatabaseTables.vala -A src/DirectoryMonitor.vala -A src/LibraryMonitor.vala -M src/LibraryWindow.vala -A src/OfflinePage.vala -M src/Photo.vala -M src/main.vala -M src/util.vala -A ui/offline.ui - -commit a188d2cac0e5356902dd36921445c59dec2d2519 -Author: Patrick Tierney -Date: Tue Jul 20 00:44:03 2010 +0000 - - #2234: Rating filtering. Users can filter photo display based - on ratings. - -M misc/shotwell.schemas -M src/CollectionPage.vala -M src/Config.vala -M src/Resources.vala -M ui/collection.ui - -commit 78aac83d5595883e3d8229c3ae7737a15fbc5282 -Author: Lucas Beeler -Date: Tue Jul 20 00:33:54 2010 +0000 - - The ThumbnailCache now operates over ThumbnailSources, not - TransformablePhotos. This is to prepare for video handling. - -M src/DataObject.vala -M src/Event.vala -M src/ImportPage.vala -M src/Photo.vala -M src/ThumbnailCache.vala - -commit f67af9545b7ed4934e49b5ff196f6d4c30833476 -Author: Jim Nelson -Date: Mon Jul 19 21:06:25 2010 +0000 - - Added Tobias' last name to THANKS file. - -M THANKS - -commit 4e1a20dce79c50520bbcc73e4f23b06bb4ae5af5 -Author: Patrick Tierney -Date: Mon Jul 19 20:34:08 2010 +0000 - - #2281: rearranged rating menu items - -M ui/collection.ui -M ui/photo.ui - -commit 33b02ce54a56dffb2db17ac6dfa8ed6d87027c6d -Author: Jim Nelson -Date: Mon Jul 19 19:34:18 2010 +0000 - - #2025: Images with transparencies now painted with proper background - color. Courtesy Philip Beam. - -M src/CheckerboardLayout.vala -M src/EditingTools.vala -M src/EventsDirectoryPage.vala - -commit 3f9a73f6dd762f744c6ba872ebae9479ac5f964f -Author: Patrick Tierney -Date: Mon Jul 19 19:05:58 2010 +0000 - - #2283: < and > keys now increase and decrease ratings - -M src/CollectionPage.vala -M src/PhotoPage.vala - -commit 8bc51366a3551bc00919e6accbb1f3e53721c744 -Author: Patrick Tierney -Date: Mon Jul 19 17:54:57 2010 +0000 - - #2280: user can set ratings via keypad - -M src/CollectionPage.vala -M src/PhotoPage.vala - -commit f81b867f4778c0f0f624807868a6d77f356c790c -Author: Vera Yin -Date: Fri Jul 16 23:48:51 2010 +0000 - - Added Turkish translation. - -M Makefile -M THANKS -A po/tr.po - -commit 28ed0f41c140bc4228e6be75d52c9cda81935a8c -Author: Vera Yin -Date: Fri Jul 16 19:08:08 2010 +0000 - - Updated Asturian, Chinese (Taiwan), Italian, and Thai translations. - -M po/ast.po -M po/it.po -M po/th.po -M po/zh_TW.po - -commit 855c95bbac70c446fa45358f744d456b81fe63a9 -Author: Jim Nelson -Date: Thu Jul 15 19:50:06 2010 +0000 - - #2276: Fixed to work with Vala 0.9.3. - -M src/ImportPage.vala -M src/util.vala - -commit 168fa569b89ec1cb9a677d0fa0ec5a782cefa2a2 -Author: Jim Nelson -Date: Thu Jul 15 18:48:06 2010 +0000 - - #2266: "Rename Photo" -> "Edit Title" - -M src/CollectionPage.vala -M src/Commands.vala -M src/Dialogs.vala -M src/PhotoPage.vala -M src/Resources.vala -M ui/collection.ui -M ui/photo.ui - -commit fa2559a5e4240369d51ab6e0569bf335b16838ea -Author: Jim Nelson -Date: Thu Jul 15 18:39:46 2010 +0000 - - #2259: Drag-and-drop was activated when a photo was selected and a - drag was initiated on a blank area of the checkerboard. - -M THANKS -M src/Page.vala - -commit 7efccc5f2e769c9db1a2b663c2006632b81d3bc7 -Author: Jim Nelson -Date: Thu Jul 15 18:26:44 2010 +0000 - - #2268: Mouse wheel was still adjusting slider, even if it was - insensitive (during editing, for example). - -M src/PhotoPage.vala - -commit 3c1305dc45662d6ffcdb8e40262659657c0e9e0c -Author: Jim Nelson -Date: Thu Jul 15 18:18:48 2010 +0000 - - #2267: Fixed configure script to work on FreeBSD (and other Unices) - where bash in not installed in /bin. - -M configure - -commit cfee921f0e13898c119426127170e7fa554da002 -Author: Jim Nelson -Date: Wed Jul 14 23:02:46 2010 +0000 - - Changed default cursor type in Page from ARROW to LEFT_PTR. See #1319 - and changeset 1142 for details. - -M src/Page.vala - -commit 10a06054175b0a5d962ee34ef4cd62468dac7183 -Author: Patrick Tierney -Date: Wed Jul 14 17:59:59 2010 +0000 - - #2233: adding star icon media - -A icons/five-stars.svg -A icons/four-stars.svg -A icons/one-star.svg -A icons/three-stars.svg -A icons/two-stars.svg - -commit 0a38982e3eac1cc336b38bfe09ee7fe38807537f -Author: Patrick Tierney -Date: Wed Jul 14 17:54:45 2010 +0000 - - #2233: Added 5 star rating system, and ability to sort photos - by rating. - -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/Commands.vala -M src/DatabaseTables.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/Thumbnail.vala -M ui/collection.ui -M ui/photo.ui - -commit ab9d9bd7feb5745d8d63eb837cc25759d4daa851 -Author: Jim Nelson -Date: Tue Jul 13 22:28:33 2010 +0000 - - This change addresses a long-standing issue in the - DataObject/DataCollection system, being able to be notified of what - was altered when an "altered" signal is fired. The Alteration object - gives details. This change gets rid of "metadata-altered" signal, - and could potentially be used to reduce other signals as well. - -M src/CheckerboardLayout.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/DirectWindow.vala -M src/Event.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Tag.vala -M src/Thumbnail.vala - -commit 88362f158c2d83eca65ff5491ca7774e13b5f255 -Author: Allison Barlow -Date: Fri Jul 9 18:57:52 2010 +0000 - - fixes an unticketed scrolling prblem for rename in place. - -M src/Sidebar.vala - -commit 9b33d80783cfc59b157c93c1add53e970dbdf643 -Author: Jim Nelson -Date: Fri Jul 9 18:49:31 2010 +0000 - - There was one oversight in the Trash code: If a trashed - (i.e. unlinked) photo was destroyed (removed from - trash) and it was the last photo in an unlinked - ContainerSourceCollection (i.e. a Tag or an Event), the Tag or - Event would not be destroyed. This was being taken care of at - startup when the database is verified, but that's - not the right way to handle this. This patch adds a signal for - unlinked DataSources being destroyed as orphans, - allowing for the ContainerSourceCollections to clean up appropriately. - -M src/DataCollection.vala -M src/DataObject.vala - -commit e8a031b1f450de6d86ccf5fdefab219bbefb056a -Author: Jim Nelson -Date: Fri Jul 9 17:30:44 2010 +0000 - - Removed unusued icon (return-to-page). - -D icons/return-to-page.svg -M src/Resources.vala - -commit 3491a0e025bd97c4349f2a1f2dcf1980d0fbec8a -Author: Allison Barlow -Date: Fri Jul 9 16:26:17 2010 +0000 - - fixes #2219 Fullscreen does not work correctly with multiple monitors. - -M src/AppWindow.vala - -commit b907fdaef25762d24d5cde4dac1e800778cf6cee -Author: Allison Barlow -Date: Fri Jul 9 16:19:09 2010 +0000 - - Fixes #733 (rename events in place) and #2199 (allow me to rename - sidebar items using F2). - -M src/AppWindow.vala -M src/Dialogs.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Sidebar.vala -M src/TagPage.vala - -commit e1ab69cb0ed1089d19074c77544cf7f019ac49d8 -Author: Vera Yin -Date: Fri Jul 9 00:57:54 2010 +0000 - - Updated Thai translation. - -M po/th.po - -commit 070fc9470b02b7a2161ac91fe2e380a3bc1c2c91 -Author: Vera Yin -Date: Wed Jul 7 20:36:05 2010 +0000 - - Added Galician translation. - -M Makefile -M THANKS -A po/gl.po - -commit 85eba7609a84a8b4d2c1335ef6e572c0b744aed1 -Author: Vera Yin -Date: Wed Jul 7 20:13:49 2010 +0000 - - Updated Italian translation. - -M po/it.po - -commit ca4c9e3e75ea30d7501461be30a187d0c19f9118 -Author: Vera Yin -Date: Wed Jul 7 18:36:38 2010 +0000 - - Updated Thai translation. - -M THANKS -M po/th.po - -commit 00c46dc0eda59075e37c3508c395f21edaf4d551 -Author: Jim Nelson -Date: Tue Jul 6 19:40:09 2010 +0000 - - #2223: Mirror -> Flip Horizontally, Flip -> Flip Vertically - -M src/CollectionPage.vala -M src/PhotoPage.vala -M src/Resources.vala -M ui/collection.ui -M ui/direct.ui -M ui/photo.ui - -commit 901733bf301dd81524ddb255c664cfa9ed8cf0b8 -Author: Patrick Tierney -Date: Tue Jul 6 19:36:11 2010 +0000 - - #1858: added cursor hiding to fullscreen mode and slideshow mode. - -M src/AppWindow.vala -M src/Page.vala -M src/PhotoPage.vala - -commit 98352b02004ccc2e1cc5920f73f0eea10805f2b6 -Author: Jim Nelson -Date: Tue Jul 6 19:20:19 2010 +0000 - - #2243: Three strings were not internationalized. Fixed. - -M src/AppWindow.vala - -commit b4d62cf1c92fe4a2fb6f5f3dc2bc88f7fec03998 -Author: Jim Nelson -Date: Tue Jul 6 19:18:06 2010 +0000 - - #2244: Release notes for 0.6.1 and 0.5.1 were not added to NEWS file. - Added now. - -M NEWS - -commit a944351b2a3301cf967fb31bb3f83038ab38db13 -Author: Vera Yin -Date: Tue Jul 6 18:48:28 2010 +0000 - - Updated Estonian, French, and Italian translations. - -M po/et.po -M po/fr.po -M po/it.po - -commit 384327be5eff2ed0511e4743ae85152ad768bab0 -Author: Patrick Tierney -Date: Fri Jul 2 18:07:13 2010 +0000 - - #2169: added keyboard shortcuts for zooming to window, zooming 100%, - and zooming 200% - -M src/PhotoPage.vala -M ui/direct.ui -M ui/photo.ui - -commit f11686478214e030c40e4032578fef3f13721331 -Author: Vera Yin -Date: Thu Jul 1 18:20:45 2010 +0000 - - Updated Spanish translation. - -M po/es.po - -commit dabe06104126412ec5eb62267534736b45f1db39 -Merge: b59d0461 7bb29693 -Author: Allison Barlow -Date: Wed Jun 30 22:09:29 2010 +0000 - - Merge from 0.6 branch, includes all changes for 0.6.1 - -commit 7bb29693cb46ecf7f0536b667da9a1b63792f7e4 -Author: Allison Barlow -Date: Wed Jun 30 20:03:27 2010 +0000 - - Shotwell 0.6.1 packaging changes - -M Makefile -M debian/changelog -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/fi.po -M po/fr.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/lt.po -M po/lv.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ro.po -M po/ru.po -M po/shotwell.pot -M po/sk.po -M po/sl.po -M po/sr.po -M po/sv.po -M po/th.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po -M windows/winstall.iss - -commit e928ce4c53d10103688704bedb1c4930038c4c7d -Author: Jim Nelson -Date: Tue Jun 29 23:39:08 2010 +0000 - - #2225: Library directory now defaults to XDG Pictures directory if - no directory is specified by the user (entry - is cleared in Preferences dialog). If a relative path is specified, - it's made relative to user's home - directory, not Shotwell's cwd. - -M src/AppDirs.vala -M src/Dialogs.vala -M src/LibraryWindow.vala - -commit 52033c71febd046ed82d3f7b9925203642624fc5 -Author: Patrick Tierney -Date: Tue Jun 29 22:35:58 2010 +0000 - - #2228: Added keypad shortcuts for zooming - -M src/PhotoPage.vala - -commit 10e9f96136cfb8994203a3c7000fcd32326feb69 -Author: Jim Nelson -Date: Tue Jun 29 22:11:01 2010 +0000 - - #2048: Shotwell now only offers to delete photos that successfully - imported. This patch also fixes a segfault - that occurs if the user says to delete photos from a camera that is - no longer available (i.e. powered down). - -M src/Dialogs.vala -M src/ImportPage.vala - -commit 594713a2c22c340ad4b0ca038fe3f9d7e8222378 -Author: Jim Nelson -Date: Tue Jun 29 20:18:08 2010 +0000 - - #2224: Photos emptied from trash appear on next run fixed. - -M src/Photo.vala - -commit 7dccaaab0783f65cbaeeb08e3c90055736516fa0 -Author: Vera Yin -Date: Tue Jun 29 19:18:42 2010 +0000 - - (Re)versioned Makefile as 0.6.0+branch. - -M Makefile - -commit 5bfc8ae6d93e79c1ee8480f0af237445f37b9248 -Author: Vera Yin -Date: Tue Jun 29 19:13:26 2010 +0000 - - Added Lithuanian and Serbian translations, updated Italian and - Spanish translations in Shotwell-0.6 branch. - -M Makefile -M THANKS -M po/es.po -M po/it.po -C061 po/es.po po/lt.po -A po/sr.po - -commit b59d04610243767c5c0e072256c43c56147ff95e -Author: Vera Yin -Date: Tue Jun 29 19:03:58 2010 +0000 - - Updated Italian and Spanish translations. - -M po/es.po -M po/it.po - -commit 086a2fdf52d123d9dd6348a02a2e3e3746d87178 -Author: Jim Nelson -Date: Tue Jun 29 18:10:27 2010 +0000 - - Versioned as 0.6.0+branch; updated gexiv2 version requirement - to 0.1.0. - -M Makefile -M debian/control - -commit e435b6ae82f76a7b27cb63d42dee952fc31643f9 -Author: Vera Yin -Date: Tue Jun 29 03:26:58 2010 +0000 - - Added Lithuanian and Serbian translations. - -M Makefile -M THANKS -A po/lt.po -A po/sr.po - -commit b59fb19bced914f88955d40a4bc1395fbea3bff5 -Author: Jim Nelson -Date: Tue Jun 29 01:16:51 2010 +0000 - - Updated gexiv2 version requirement to 0.1.0. - -M Makefile - -commit b9ea83f46efae43c960a5dca96e09fb85b7d5034 -Merge: 42daba67 4608a461 -Author: Allison Barlow -Date: Tue Jun 29 00:29:47 2010 +0000 - - Merge from 0.6 branch - -commit 4608a4610cd072b51bedc8c150f9b18ca60bb5e0 -Author: Allison Barlow -Date: Mon Jun 28 23:50:44 2010 +0000 - - packaging changes - -M Makefile -M NEWS -M README -M debian/changelog -M debian/control -M windows/winstall.iss - -commit 42daba677196dfdc4f1419f266b9e87f14ec1679 -Author: Jim Nelson -Date: Mon Jun 28 19:11:13 2010 +0000 - - Versioned to 0.6.0+trunk. - -M Makefile - -commit 7637bc74c4d51f8892f690804d05d7894549661e -Author: Vera Yin -Date: Mon Jun 28 19:10:10 2010 +0000 - - Updated translation files to 0.6.0+trunk. - -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/fi.po -M po/fr.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/lv.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ro.po -M po/ru.po -M po/shotwell.pot -M po/sk.po -M po/sl.po -M po/sv.po -M po/th.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit 7d1d689638eefb32cbc34f36366f077fa9e074db -Author: Allison Barlow -Date: Mon Jun 28 18:38:50 2010 +0000 - - creating shotwell 0.6 branch - -commit d5102c69a8669faa667369637fa7f3d3f30adef8 -Author: Vera Yin -Date: Mon Jun 28 18:34:31 2010 +0000 - - Updated translation files to version 0.6.0. - -M po/ar.po -M po/ast.po -M po/bg.po -M po/bn.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/fi.po -M po/fr.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/lv.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ro.po -M po/ru.po -M po/shotwell.pot -M po/sk.po -M po/sl.po -M po/sv.po -M po/th.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit 58e894e771ce7d854e07206a81cecd4b950586ef -Author: Jim Nelson -Date: Sat Jun 26 00:26:18 2010 +0000 - - #2200: This patch fixes the second case Adam reported, photos being - imported with no thumbnails after an import. - (Simple change -- an overlooked call when BatchImport was re-factored - earlier this week). The problem of the - thumbnails not being available when the program is closed is a - tougher problem. - -M src/BatchImport.vala - -commit 58de2af0f7a7ee54d8fedbc2e980f8ab78cea485 -Author: Lucas Beeler -Date: Sat Jun 26 00:24:28 2010 +0000 - - Suppresses the close button on the progress dialogs of non-cancellable - operations. Closes #2207. - -M src/Dialogs.vala - -commit 2797b5bac0d314056ac2a1db4be669c1a960900e -Author: Jim Nelson -Date: Fri Jun 25 23:36:08 2010 +0000 - - #2213: Removing photos while importing caused assertion. Fixed. - -M src/BatchImport.vala -M src/Event.vala -M src/PhotoExporter.vala - -commit eb9f3318cb55199e30b2c1c43d0d5b49225aa02d -Author: Jim Nelson -Date: Fri Jun 25 22:58:28 2010 +0000 - - #2214/#2215: Sidebar changes to move the cameras and importing pages - up toward the top. - -M src/LibraryWindow.vala - -commit 15ff07e694045aade4e07b3b89ddbb4ccc626cc3 -Author: Jim Nelson -Date: Fri Jun 25 22:53:02 2010 +0000 - - #2205: Speed up removing large number of photos from library - (especially when there are few photos per event). - -M src/DataCollection.vala -M src/Photo.vala -M src/Tag.vala - -commit 990455258d41f673b6abc03bedc5ad5f0392f912 -Author: Vera Yin -Date: Fri Jun 25 18:17:19 2010 +0000 - - Updated Asturian translation. - -M po/ast.po - -commit 440a7fa2e4997943edd56834b774ddec1d62b707 -Author: Allison Barlow -Date: Fri Jun 25 18:04:20 2010 +0000 - - #2208: edit->undo is available when there are no actions to undo - -M src/Page.vala -M src/PhotoPage.vala - -commit 59ecee5ae5f772351f43a1959bc7959a5a89d5d1 -Author: Jim Nelson -Date: Fri Jun 25 00:07:44 2010 +0000 - - #2206: Original committer used state to track when Ctrl was - pressed/released in regards to the mousewheel zoom - functionality. Mousewheel events can fall through to the window - even when it does not have focus. If a - mousewheel event comes through when Shotwell loses focus with the - Ctrl key down (Shift+Ctrl+M), and then the - ctrl key is released, the state will not be reset until Shotwell - regains focus. Now using the modifier flags - provided by the GDK event. - -M src/CollectionPage.vala - -commit 0ea5bc0946c9c708ddc4f506f6bf554b264b8260 -Author: Lucas Beeler -Date: Thu Jun 24 23:52:01 2010 +0000 - - Fixes #2202 ("soft assertion: gtk_tree_path_compare: assertion `b != - NULL' failed"). - -M src/LibraryWindow.vala - -commit b5c73c96cfef83047f63fc7c746ae577229f49f0 -Author: Jim Nelson -Date: Thu Jun 24 23:47:38 2010 +0000 - - #2203: Keyboard shortcut for Show in File Manager. #2204: Keyboard - shortcut for Delete in Trash Page. - -M src/AppWindow.vala -M src/TrashPage.vala - -commit d94c34117d014078bc48e6eb71f4fe9c283c84c9 -Author: Jim Nelson -Date: Thu Jun 24 23:34:19 2010 +0000 - - #2197: Full-sized export some times caused soft assertion. - Subtle timing bug. - -M src/Dialogs.vala -M src/PhotoExporter.vala - -commit 2af9e641336b84003c8bd707b0e7dd94cce36077 -Author: Allison Barlow -Date: Thu Jun 24 22:51:17 2010 +0000 - - fix for #2141: Issues with Fullscreen mode and GNOME panel. - -M Makefile -M src/Config.vala -M src/PhotoPage.vala -M src/util.vala - -commit e0035993ea7600140119182a087b7d88f05d351c -Author: Jim Nelson -Date: Thu Jun 24 22:22:59 2010 +0000 - - #2201: Smoothed the progress bar by skipping over non-image files - during the WorkSniffer phase. - -M src/BatchImport.vala - -commit e0b60a4173bbb4952ce237ddd44f236f6ce279d3 -Author: Allison Barlow -Date: Thu Jun 24 21:56:01 2010 +0000 - - #2191: space items evenly in Preferences dialog. - -M ui/shotwell.glade - -commit 13c2e983a7620352815d69ed6bab619884c85122 -Author: Allison Barlow -Date: Thu Jun 24 21:41:52 2010 +0000 - - #2194: some programs which handle RAW photos missing in Preferences - dialog. - -M src/Dialogs.vala -M src/util.vala - -commit b4115309e09519ebb466c3e89930d05e8ac4116c -Author: Jim Nelson -Date: Thu Jun 24 21:34:58 2010 +0000 - - #2078: Logging to file only occurs in library mode. Direct edit - mode will still log to console if - SHOTWELL_LOG is set. - -M src/AppDirs.vala -M src/Debug.vala -M src/LibraryWindow.vala -M src/main.vala -M src/system.vala - -commit ba037dcac4f2aee370a4a99c8b141fd11558659c -Author: Patrick Tierney -Date: Thu Jun 24 21:20:45 2010 +0000 - - #2033: Allows user to set library directory via a text entry box. - -M src/Dialogs.vala -M ui/shotwell.glade - -commit b06ce2ea63ab90b31a91984293b1353a1b1acac6 -Author: Lucas Beeler -Date: Thu Jun 24 21:17:25 2010 +0000 - - Makes thumbnail sort order stable across the various checkerboard - views. Closes #1895. - -M src/Thumbnail.vala - -commit ff77549e17af3a232307d22c2967bdab527801d0 -Author: Jim Nelson -Date: Thu Jun 24 20:40:35 2010 +0000 - - #2188: Fatal abort after interrupted batch import fixed. Also, - BatchImport wasn't cleaning up all files - generated during import process after an abort; this is fixed as well. - -M src/BatchImport.vala -M src/ImportPage.vala - -commit 3339f7fd34225310a5b80afc68544ca322fafd78 -Author: Jim Nelson -Date: Thu Jun 24 19:11:25 2010 +0000 - - #2179: No longer recurse w/ segfault if go to fullscreen on a photo - with no backing file. - -M src/AppWindow.vala -M src/Page.vala -M src/PhotoPage.vala - -commit 8642dd2f239f3b6653ce2851414731f2092515a0 -Author: Vera Yin -Date: Thu Jun 24 18:39:59 2010 +0000 - - Updated Hungarian translation. - -M THANKS -M po/hu.po - -commit d47726c91ce83edb955c401a19ed491fd0e860ac -Author: Patrick Tierney -Date: Thu Jun 24 18:17:09 2010 +0000 - - #1462: AppWindow now maintains its position after going to fullscreen - -M src/AppWindow.vala - -commit f6349be7db03148c62d8a5e103054d343f04853e -Author: Patrick Tierney -Date: Thu Jun 24 17:58:49 2010 +0000 - - #2184: fixed soft assertion when choosing an external editor in - Windows. Fixed several bugs regarding opening an external editor on - Windows relating to AppInfo quirks. - -M src/Config.vala -M src/Dialogs.vala -M src/Photo.vala -M src/util.vala - -commit 0cf69164b8e5029058217470f8650ef4a00e665a -Author: Lucas Beeler -Date: Wed Jun 23 20:30:07 2010 +0000 - - Updated the NEWS and debian changelog files to prepare for the - 0.6 release. - -M NEWS -M debian/changelog - -commit 9fab1ecc868095db86f443869e48746e2c3b76db -Author: Jim Nelson -Date: Wed Jun 23 01:20:11 2010 +0000 - - #1682: Makefile now does checking of libraw, even if not available - in packaged form. - -M Makefile -A libraw-config -M minver - -commit 0a50da4a199cf06f2fc49137c5e68dc6e8b614dc -Author: Lucas Beeler -Date: Wed Jun 23 00:35:06 2010 +0000 - - Changed the way the configure script is invoked in the debian rules - file to suppress extraneous warning messages. Closes #1555. - -M debian/rules - -commit 73defcb0f4225f57797726f479b16127660dd3a5 -Author: Lucas Beeler -Date: Wed Jun 23 00:16:40 2010 +0000 - - Updated the debian/control file add runtime dependencies on - librsvg2-common and dbus-x11. Closes #1766. - -M debian/control - -commit a4dd12655e25e92a964d4eb3e8980df4a78a5e22 -Author: Lucas Beeler -Date: Tue Jun 22 23:46:08 2010 +0000 - - Removes wildcards from the definition of the DIST_FILES variable. This - prevents temporary files from being included in Shotwell distribution - packages. Closes #2044. - -M Makefile - -commit d13902c833941a964eac85a0609738b6c4862f14 -Author: Jim Nelson -Date: Tue Jun 22 22:31:36 2010 +0000 - - Vera discovered a corner case where a single photo import did not - appear in Photos view until exiting the - application, nor was an Event generated for it. Order of operation - problem; fixed. - -M src/BatchImport.vala - -commit b6eddb7f07630eee863116977629425e9a5c683f -Author: Patrick Tierney -Date: Tue Jun 22 20:55:12 2010 +0000 - - #2158, #2159: Windows dialogs display and function correctly - -M Makefile - -commit 8cf7862dc6e4c8f830ee0e9beb43f1ae0148b1a0 -Author: Jim Nelson -Date: Tue Jun 22 18:19:13 2010 +0000 - - #2111: Refactoring of BatchImport to reduce the overhead of managing - background jobs and their completion - callbacks, to keep the UI responsive during an import while - (attempting) to not sacrifice speed. There remains - a corner case when a large number of small files (8,000 8K JPEGs in - my test case) will still swamp the UI, but - we will live with that for now ... importing that many in a responsive - way will require more work, and more - consideration of BatchImport's requirements. - -M src/BatchImport.vala -M src/DataCollection.vala -M src/Event.vala -M src/ImportPage.vala -M src/MimicManager.vala -M src/Photo.vala -M src/Tag.vala -M src/Workers.vala - -commit 7f9121d2c755f798721cf8b5c2e23369edf224aa -Author: Lucas Beeler -Date: Tue Jun 22 18:15:25 2010 +0000 - - Fixes a problem whereby the toolbar would disappear during a zoom - operation in fullscreen mode. Closes #2176. - -M src/AppWindow.vala -M src/PhotoPage.vala - -commit d3ddb690a21cfe2f644aaf0b0cba139da7e620e5 -Author: Patrick Tierney -Date: Tue Jun 22 18:14:27 2010 +0000 - - #2142: fixed menu senitivities when a photo is missing. - -M src/PhotoPage.vala - -commit 69dd8b55155c6753b8a80a62b695f51707377c41 -Author: Lucas Beeler -Date: Tue Jun 22 18:12:57 2010 +0000 - - Fixes a problem whereby the currently viewed photo in full-window - mode would disappear when the context menu was shown. Closes #2178. - -M src/PhotoPage.vala - -commit df1774120929b7776e2d4166b0fed1c1c46b9002 -Author: Lucas Beeler -Date: Mon Jun 21 20:50:15 2010 +0000 - - Made trivial changes to the ColorTransformation.vala module such - that it compiles with vala 0.9.2. Closes #2164. - -M src/ColorTransformation.vala - -commit f557b17db2c98a768f2adb418c82dfe99f49623b -Author: Lucas Beeler -Date: Mon Jun 21 20:34:29 2010 +0000 - - Fixes an problem whereby the transient toolbar in full screen mode - would disappear when a zoom drag was in progress, causing the zoom - state to become inconsistent then reset to default. Closes #2166. - -M src/AppWindow.vala - -commit aa8fb85e29cf52a83f99b61b31a8d632296bf643 -Author: Allison Barlow -Date: Mon Jun 21 19:46:59 2010 +0000 - - updated sw-glade to check for shared library libshotwell.so - -M sw-glade - -commit be677559b5ef2707332f052186c589b2b4928e09 -Author: Lucas Beeler -Date: Mon Jun 21 19:18:16 2010 +0000 - - Properly cancels batch operations when the progress dialog's close - button is clicked. Closes #2152. - -M src/Dialogs.vala - -commit a6caf3a13a9061dd03c85b21379653b691443be7 -Author: Allison Barlow -Date: Mon Jun 21 19:05:21 2010 +0000 - - #2155: always ask whether to copy or link - -M src/LibraryWindow.vala -M src/util.vala - -commit 075e5ba42e7f03f31106d485b5ec845f8c7ed433 -Author: Lucas Beeler -Date: Mon Jun 21 19:04:55 2010 +0000 - - Fixes a problem whereby opening a Foveon(tm) RAW image in direct-edit - mode caused Shotwell to silently fail to start. Closes #2126. - -M src/Photo.vala -M src/PhotoPage.vala - -commit 863e1eb00bfdd20402557148e564c8d08bef16ca -Author: Allison Barlow -Date: Mon Jun 21 19:02:16 2010 +0000 - - #2119: improve menu grouping - -M src/CollectionPage.vala -M src/PhotoPage.vala -M ui/collection.ui -M ui/direct.ui -M ui/photo.ui - -commit 3bcb911b0bdb1bce277222095f849f2b913f352a -Author: Vera Yin -Date: Mon Jun 21 18:18:54 2010 +0000 - - Updated Asturian, Portuguese, and Spanish translations. - -M po/ast.po -M po/es.po -M po/pt.po - -commit 14f7b7870539e578ab12412a0dbfe8ddc9e98cfc -Author: Lucas Beeler -Date: Fri Jun 18 18:05:37 2010 +0000 - - Short-circuits image scaling via the Gdk Pixbuf library during - thumbnail generation for PNG images under certain highly specific - conditions under which a floating point round-off error can - occur. Closes #2151. - -M src/PngSupport.vala - -commit 4508a3161c970dcc508eac2fe5af03c0fdf07a9c -Author: Allison Barlow -Date: Fri Jun 18 16:11:27 2010 +0000 - - fixes #2123 Open with RAW Editor visibility not updated properly. - reverts to old widget-based control instead of action-based--the - action-based had problems with setting visibility. When this gets - figured out, we'd like to go back to action-based. - -M src/CollectionPage.vala -M src/Page.vala -M src/PhotoPage.vala - -commit 8afaabde747f491c39ea3966b80c5e1e7b0ef821 -Author: Allison Barlow -Date: Fri Jun 18 16:07:41 2010 +0000 - - fixes #2149 photo and raw editor combo boxes should have same length. - -M ui/shotwell.glade - -commit 079cfbc50a480c01a3224478954518783ed6b5e7 -Author: Allison Barlow -Date: Fri Jun 18 16:05:05 2010 +0000 - - this patch changes the default time format to be based on location - in the date/time adjust dialog (#2137). - -M src/Config.vala -M src/util.vala - -commit 2050f92751a4f9876dec4ddc2b3960dcdc976959 -Author: Lucas Beeler -Date: Fri Jun 18 01:35:01 2010 +0000 - - Modifies exposure and ISO number metadata fetching functions to - check their results for sanity. Closes #2140. - -M src/PhotoMetadata.vala - -commit cd669afa840aa665f392f1c2ee44c3638db2401f -Author: Patrick Tierney -Date: Fri Jun 18 01:10:44 2010 +0000 - - #1973: Removed rotate and set background from contextual menus - -M src/CollectionPage.vala -M src/PhotoPage.vala -M ui/collection.ui -M ui/direct.ui -M ui/photo.ui - -commit 598e138f87ff76232c233ed147773204d30e70ec -Author: Vera Yin -Date: Thu Jun 17 21:18:50 2010 +0000 - - Updated Bulgarian, Estonian, Italian, Spanish, and Thai translations. - -M THANKS -M po/bg.po -M po/es.po -M po/et.po -M po/it.po -M po/th.po - -commit 62927c6da321f9f160085168ebf325f495de9dad -Author: Jim Nelson -Date: Thu Jun 17 21:13:01 2010 +0000 - - #2145: Crash due to keyword with invalid UTF-8 fixed. The bad - Unicode was causing Markup.escape_text() to yarf. - -M src/EventsDirectoryPage.vala -M src/PhotoMetadata.vala -M src/Properties.vala -M src/Sidebar.vala -M src/Tag.vala -M src/util.vala - -commit 75c909e0c1e92049e7e5f64d9f70d66d9e870bda -Author: Allison Barlow -Date: Thu Jun 17 19:59:58 2010 +0000 - - removes a stray setting in glade which was causing a soft assertion - -M ui/shotwell.glade - -commit 6d6784d83159c82afb99496ed6b445a0bb09e139 -Author: Patrick Tierney -Date: Thu Jun 17 19:30:29 2010 +0000 - - #2143: Added keyboard accelerators for open with editor, Return, - and open with RAW editor, Return. - -M src/CollectionPage.vala -M src/PhotoPage.vala - -commit c4ee6ede0ea3d0573d1b1452b4888499b67c1ac2 -Author: Allison Barlow -Date: Thu Jun 17 19:05:27 2010 +0000 - - #2139 Markup escaping required in Properties Title: field - -M src/Properties.vala - -commit 3fddc876d8919c4fcc1d54e68b8aafdedd11d849 -Author: Patrick Tierney -Date: Thu Jun 17 18:46:32 2010 +0000 - - #2077: Show in File Manager command now appears on Trash - Page. Required code refractoring, so that menu appears in - DirectEditMode too. - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/LibraryWindow.vala -M src/PhotoPage.vala -M ui/collection.ui -M ui/direct.ui -M ui/photo.ui -M ui/trash.ui - -commit 3684a7e1e49c3b064c5de71a9ca75439d61ea6e1 -Author: Allison Barlow -Date: Thu Jun 17 18:30:23 2010 +0000 - - fixes three preferences dialog tickets: #2132 Mnemonics issues - with Preferences dialog, #2130 More padding in Browse button in - Preferences, and #2131 Resizable Preferences dialog. - -M ui/shotwell.glade - -commit 7573b0de9f49820a1c99ff26f82deac38d1b004a -Author: Allison Barlow -Date: Thu Jun 17 18:17:58 2010 +0000 - - fixes #2125 Shotwell asks whether to copy or link when Pictures - directory is missing - -M src/LibraryWindow.vala - -commit 2828d5f96a4c4b862a556cf932f6eca7c63865f4 -Author: Allison Barlow -Date: Thu Jun 17 18:16:23 2010 +0000 - - updates icon per #2120 fix trash/delete icons - -M src/CollectionPage.vala -M src/PhotoPage.vala -M src/TrashPage.vala - -commit 393eb4e8863594684dafa69dbffeeb7188cd72a8 -Author: Jim Nelson -Date: Thu Jun 17 02:35:40 2010 +0000 - - #2124: Import view was flashing wildly if window configured to a - specific size. Tricky bug! Single piece of - state was not being reset to zero when a recompute had to take place. - -M src/CheckerboardLayout.vala - -commit 09235b95611603cee600fdffe36d33caa2f72e4a -Author: Lucas Beeler -Date: Thu Jun 17 00:35:53 2010 +0000 - - Fixes bogus mnemonics in the Picasa Web Albums credentials capture - pane. Closes #2134. As a bonus, changes the sizes of action buttons - in the Picasa Web Albums credentials capture pane to accomodate long - internationalized text. - -M src/PicasaConnector.vala - -commit b07e30a54641f9ecc3420311c2ef1578af6cb112 -Author: Lucas Beeler -Date: Thu Jun 17 00:18:28 2010 +0000 - - Single-pixel images no longer generate critical GTK assertion failures - when the Adjust palette is opened. Closes #2122. - -M src/EditingTools.vala - -commit b4fb7b9a334bcb25efbe73401eed8276d167b5c7 -Author: Lucas Beeler -Date: Thu Jun 17 00:03:02 2010 +0000 - - Adjusts the layout of various panes in the publishing subsystem to - better accomodate internationalized text. Fixes #2127. - -M src/FacebookConnector.vala -M src/PicasaConnector.vala -M src/WebConnectors.vala - -commit 6abf46ad2e5f0912d9a413884891dad78df1db3d -Author: Patrick Tierney -Date: Wed Jun 16 23:57:12 2010 +0000 - - #2020: opens on external editor on super double click and ctrl-enter, - opens raw editor on ctrl-shift-enter - -M src/CollectionPage.vala -M src/EventsDirectoryPage.vala -M src/Page.vala -M src/PhotoPage.vala - -commit 7dec20a1a2a19ec9e630002a23236950f5ee5c71 -Author: Patrick Tierney -Date: Wed Jun 16 22:47:30 2010 +0000 - - #2098 added Add Tags \/ Modify Tags to context menu in full-window - mode. - -M src/PhotoPage.vala -M ui/photo.ui - -commit 0d0dfe3711aa903a623d8f0fe43959975cc3c008 -Author: Lucas Beeler -Date: Wed Jun 16 19:30:10 2010 +0000 - - Updates supported MIME types across source and desktop files to - reflect the addition of RAW and PNG support; closes #1882. - -M misc/shotwell-viewer.desktop.head -M src/RawSupport.vala - -commit 171294581ce4b28069cc640e9adadcafeb630cae -Author: Jim Nelson -Date: Wed Jun 16 17:41:44 2010 +0000 - - Additional debugging for TRACE_REFLOW. - -M src/CheckerboardLayout.vala - -commit 3b3ddd426b579ab08ce5a2d5c3b9a28eccb1a570 -Author: Patrick Tierney -Date: Wed Jun 16 00:57:58 2010 +0000 - - #1623: shotwell exports metadata when it can. Objects - derived from TransformablePhoto now need to implement - set_user_metadata_for_export(PhotoMetadata) - -M src/Photo.vala - -commit cc7da50d86cbc03a68267d37c489b740bd01489a -Author: Patrick Tierney -Date: Tue Jun 15 23:18:21 2010 +0000 - - #2112: removed ability to save RAW photo in direct edit mode. - -M src/PhotoPage.vala - -commit 3ff8781856ac9c443fd0a223cb0771bad10e27b8 -Author: Allison Barlow -Date: Tue Jun 15 23:15:47 2010 +0000 - - implements #1602 link rather than copy by default when importing - ...at long last - -M Makefile -M src/Dialogs.vala -M src/LibraryWindow.vala -M src/util.vala -A vapi/gdk-none.vapi - -commit adc19aebdc408e6a036a7d9d7f1830ef926bb8e8 -Author: Allison Barlow -Date: Tue Jun 15 23:11:36 2010 +0000 - - Implements some external editing changes. Fixes #2024 Update external - editor in Preferences dialog while Shotwell is running, #2093 show - Open With RAW Editor in context menu for RAW photos, #2094 eliminate - Revert External Edits command, #2095 gray out Open With External - Editor when no editor present, and #2096 Cancel button in Revert - External Edit dialog. - -M src/CollectionPage.vala -M src/Config.vala -M src/Dialogs.vala -M src/PhotoPage.vala -M src/util.vala -M ui/collection.ui -M ui/photo.ui - -commit b0b7aa4f0effecc80ee8101b73e3d9b198037f63 -Author: Lucas Beeler -Date: Tue Jun 15 22:57:36 2010 +0000 - - Enables the use of internationalized characters in PicasaWeb album - names. Closes #2112. As a side benefit, changes to the way PicasaWeb - XML is parsed also enables us to close #1637. - -M src/PicasaConnector.vala -M src/WebConnectors.vala - -commit 91e30d21c7e7cf28df38064f12f20647611d1871 -Author: Lucas Beeler -Date: Tue Jun 15 22:10:43 2010 +0000 - - Enables generation of PNG images directly from RAW pixel information, - without passing through a JPEG intermediate. Closes #1875. - -M src/EditingTools.vala -M src/Photo.vala -M src/PhotoPage.vala - -commit 57ef0c6ceec3da7c242878b50e4e6d060c2d3fec -Author: Adam Dingle -Date: Tue Jun 15 16:02:09 2010 +0000 - - Added Patrick to THANKS file. - -M THANKS - -commit f4607b99c08e8ec9bc8cff8a1d1ddd536ad2b329 -Author: Jim Nelson -Date: Tue Jun 15 01:24:14 2010 +0000 - - #1951: Thumbnails don't distort as zoom level changes. - -M src/Thumbnail.vala -M src/ThumbnailCache.vala - -commit 06b594e473f5ed03c3413ac80d376f3364d3e8cd -Author: Jim Nelson -Date: Tue Jun 15 00:33:23 2010 +0000 - - #2009: $#%&@! daylight savings. - -M src/Event.vala - -commit 3c47226629f0ff4d5e24f9ae648063474a0c02e1 -Author: Allison Barlow -Date: Tue Jun 15 00:20:31 2010 +0000 - - fixes #2043 Remove From Library doesn't remove photo. - -M src/Photo.vala - -commit d317860ce28de6d297ac3453dab2ec6d7bb64f6a -Author: Jim Nelson -Date: Tue Jun 15 00:15:08 2010 +0000 - - #1900: XMP time format now supported. - -M src/PhotoMetadata.vala - -commit f6fb31cea066417f31de70d97e5297201237b5c6 -Author: Jim Nelson -Date: Mon Jun 14 23:10:40 2010 +0000 - - #1418: Shotwell detects duplicates in the current import set as well - as the library. - -M src/BatchImport.vala -M src/DataObject.vala - -commit b26df69f19f1efb14f6c8821a222cb5bca2996a4 -Author: Patrick Tierney -Date: Mon Jun 14 22:14:35 2010 +0000 - - Updated windows install-deps script to cache some of the downloaded - files. - -M windows/install-deps - -commit 810521738ff37d0c604f3ba46c9e6934c3232849 -Author: Patrick Tierney -Date: Mon Jun 14 22:00:16 2010 +0000 - - #2099: Removed NO_SVG code, duplicate PNG files, and all traces of - building on MacOS - -M Makefile -D icons/crop.png -D icons/import.png -D icons/make-primary.png -D icons/object-flip-horizontal.png -D icons/object-flip-vertical.png -D icons/object-rotate-left.png -D icons/object-rotate-right.png -D icons/pin-toolbar.png -D icons/return-to-page.png -D icons/shotwell.png -M src/GConf.vala -M src/LibraryWindow.vala -M src/Resources.vala -D vapi/ige-mac-integration.vapi - -commit b5889b3aaf6e0c2a77f602297c5bbdcdaf0d6e45 -Author: Jim Nelson -Date: Mon Jun 14 20:18:23 2010 +0000 - - #1151: Generate events continuously during import - -M src/BatchImport.vala -M src/Dialogs.vala -M src/Event.vala -M src/ImportPage.vala -M src/LibraryWindow.vala - -commit cafafcacd15e77824a3a15239829f7f7e40b3cde -Author: Vera Yin -Date: Mon Jun 14 19:01:12 2010 +0000 - - Added Arabic, Asturian, Romanian translations. Updated German, Greek, - Polish, Russian, Ukrainian translations. - -M Makefile -M THANKS -C059 po/pl.po po/ar.po -C060 po/de.po po/ast.po -M po/de.po -M po/el.po -M po/pl.po -C059 po/de.po po/ro.po -M po/ru.po -M po/uk.po - -commit 7a5e96f534f2ce6624f589962f28eabba132e23b -Author: Lucas Beeler -Date: Mon Jun 14 18:55:18 2010 +0000 - - Allows the user to resize the publishing dialog during interaction - phases where resizing is applicable. Closes #1923. - -M src/FacebookConnector.vala -M src/WebConnectors.vala - -commit ed05edc6fd4902db6c30e04bc6e8f26c0188250d -Author: Lucas Beeler -Date: Mon Jun 14 18:54:12 2010 +0000 - - Enables panning a zoomed photo in the single-photo view with the - numeric keypad even if num lock is on. - -M src/PhotoPage.vala - -commit 7069242a37d98d3b7a4513bf49e4b5d89fb31166 -Author: Jim Nelson -Date: Sat Jun 12 02:15:44 2010 +0000 - - #1166: Initial phase of import now in background thread and - cancellable by user. - -M src/BatchImport.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/Workers.vala -M src/util.vala - -commit bc1a5920922929e772cfa1e49830847d5198ba78 -Author: Patrick Tierney -Date: Fri Jun 11 21:56:17 2010 +0000 - - Fixed unwrapped raw and GPhoto code in Shotwell source. Updated - windows install-deps file to work with Shotwell 0.6. Updated Makefile - to work with new dependencies, exiv2 and gexiv2. - -M Makefile -M src/CollectionPage.vala -M src/Config.vala -M src/Dialogs.vala -M src/Photo.vala -M src/PhotoFileFormat.vala -M src/PhotoPage.vala -M src/Resources.vala -M windows/install-deps -M windows/winstall.iss - -commit c3726fcdb89b7e0699b9b7a35dfab34bf608fed7 -Author: Vera Yin -Date: Fri Jun 11 02:14:10 2010 +0000 - - Added +trunk tag following 0.5.91 release. - -M Makefile - -commit e0e367832eb3b0e90386461523220b11cb69a00a -Author: Vera Yin -Date: Fri Jun 11 02:12:46 2010 +0000 - - This is the 0.5.91 release image. - -M Makefile -M po/bg.po -M po/bn.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/fi.po -M po/fr.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/lv.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ru.po -M po/shotwell.pot -M po/sk.po -M po/sl.po -M po/sv.po -M po/th.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit 8b96c4df70c4d9d4a23c587c43044a0d72c433fa -Author: Lucas Beeler -Date: Fri Jun 11 00:36:23 2010 +0000 - - Logs the user out of PicasaWeb if his or her authentication token - has become invalid (e.g., it could've expired, or invalidated by - the Google security manager, etc.). Closes #1987. - -M src/PicasaConnector.vala - -commit e9329b1c5819e2b6f67e544ae5f7a1508d6693df -Author: Lucas Beeler -Date: Fri Jun 11 00:15:14 2010 +0000 - - Enables panning over a photo when it is zoomed using the keyboard - arrow keys. Closes #2072. - -M src/PhotoPage.vala - -commit 6279ff1f8326c6a79c9b139f3f6e04accb7dad1c -Author: Lucas Beeler -Date: Fri Jun 11 00:05:28 2010 +0000 - - Fixes an issue whereby the Ctrl+= zoom accelerator behaved differently - depending on whether or not the zoom slider had keyboard focus. Closes - #2038. - -M src/PhotoPage.vala - -commit c9380b569e13ed322d23e2af8a374c209e166891 -Author: Lucas Beeler -Date: Thu Jun 10 23:52:07 2010 +0000 - - Enables the user to zoom the sizes of thumbnails up or down in any - CollectionPage-derived view by using the mouse wheel in conjunction - with the Ctrl key. Closes #1919. - -M src/CollectionPage.vala - -commit fd6541346618a6650e14158a58747be997cd32a2 -Author: Lucas Beeler -Date: Thu Jun 10 23:44:32 2010 +0000 - - Fixes the EditingHostPage's cursor handling such that the grip-hand - cursor is displayed when and only when panning is applicable, across - a wide variety of cases. Closes #1911. - -M src/PhotoPage.vala - -commit bac0b445280b05fa9b26a2aa11b4ec76f7b7b61b -Author: Adam Dingle -Date: Thu Jun 10 22:31:01 2010 +0000 - - Updated COPYING to reflect the fact that human-icon-theme icons are - now available under Creative Commons Attribution ShareAlike 3.0. - -M COPYING - -commit d4a9eb68ba012d7d8586748abb85bc07f0f63c16 -Author: Vera Yin -Date: Thu Jun 10 21:47:00 2010 +0000 - - Updated POT file to reflect newly marked up strings. - -M po/shotwell.pot - -commit 1f55cd5d516649bf9e90dd9d37dde3a7cf7c7dee -Author: Vera Yin -Date: Thu Jun 10 21:34:46 2010 +0000 - - Marked up strings for translation in Resources.vala that had been - overlooked by the original committer. - -M src/Resources.vala - -commit 59e28bf722a512ea2cf6620e50789bba8eca521b -Author: Vera Yin -Date: Thu Jun 10 20:41:37 2010 +0000 - - Updated Thai translation. - -M po/th.po - -commit 5551052a9c85d5f4230ded07004e2ede6b697608 -Author: Jim Nelson -Date: Thu Jun 10 17:47:46 2010 +0000 - - Fixes bug where Shotwell crashes if SHOTWELL_LOG_FILE=:console:. - -M src/Debug.vala - -commit 18971ed670183ff7bcc6d5e5bd9d4fd5fac8ff33 -Author: Lucas Beeler -Date: Thu Jun 10 01:05:26 2010 +0000 - - Implements zoom-in/zoom-out with the mousewheel that maintains the - position of the zoomed content relative to the cursor. Closes #1910. - -M src/Dimensions.vala -M src/Page.vala -M src/PhotoPage.vala -M src/image_util.vala - -commit 746101f76860ac66c95d921468ab4d76a4710b18 -Author: Vera Yin -Date: Thu Jun 10 00:18:15 2010 +0000 - - Updated Indonesian and Thai translations. - -M po/id.po -M po/th.po - -commit d26fa8d785297b7e2e760618eadc1c412cc115c1 -Author: Allison Barlow -Date: Wed Jun 9 21:58:45 2010 +0000 - - fixes #1844 Trash interferes with dupe detection. - -M src/BatchImport.vala -M src/DatabaseTables.vala -M src/ImportPage.vala -M src/Photo.vala - -commit 79c2d34dd5457a0460cd890c44c93110d8f2135c -Author: Jim Nelson -Date: Wed Jun 9 17:39:28 2010 +0000 - - #2063: Optionally install apport hook. Courtesy Bruno Girin. - -M Makefile -A apport/shotwell.py - -commit 0bb354843ee4df8396a02ad4908f67e745521269 -Author: Jim Nelson -Date: Wed Jun 9 17:35:02 2010 +0000 - - #2000: Write log while running. Courtest Bruno Girin. - -M src/AppDirs.vala -M src/Debug.vala -M src/main.vala - -commit 50d34f01581531cf24af438fae840edc27e7eb05 -Author: Vera Yin -Date: Wed Jun 9 00:27:46 2010 +0000 - - Updated Russian and Swedish translations. - -M po/ru.po -M po/sv.po - -commit 7fbc6262a9b67321a19f76716090293c63498095 -Author: Jim Nelson -Date: Tue Jun 8 23:42:24 2010 +0000 - - #1855: Recursive calculation of file size now properly handles - permission failures when enumerating a directory. - -M src/util.vala - -commit e11e3bfff6050e4b3bbf9a3145c8fc0c1affd547 -Author: Allison Barlow -Date: Tue Jun 8 23:12:20 2010 +0000 - - fixes #2037 Slideshow button grayed out. - -M src/CollectionPage.vala - -commit f348dba7d4d0689229308c6e979d3a5af2fafbc7 -Author: Jim Nelson -Date: Tue Jun 8 19:51:55 2010 +0000 - - #2061: Shotwell now compiles without error or warning with Vala 0.9.1. - -M src/AppWindow.vala -M src/BatchImport.vala -M src/CameraTable.vala -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/Commands.vala -M src/CustomComponents.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/Dialogs.vala -M src/DirectWindow.vala -M src/EditingTools.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/GRaw.vala -M src/GdkSupport.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/MimicManager.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/PicasaConnector.vala -M src/PixbufCache.vala -M src/Printing.vala -M src/Properties.vala -M src/Sidebar.vala -M src/SlideshowPage.vala -M src/Tag.vala -M src/TagPage.vala -M src/Thumbnail.vala -M src/TrashPage.vala -M src/WebConnectors.vala -M src/main.vala -M vapi/libraw.vapi - -commit 3ffabb1288f98e47d618c1559987ab7fbac6976b -Author: Vera Yin -Date: Tue Jun 8 01:08:35 2010 +0000 - - Updated Chinese (Mainland China), Croatian, Czech, Danish, English - (Great Britain), Finnish, French, German, Greek, Polish, Punjabi, - Norwegian, Russian, Slovenian, Ukrainian translations following - string freeze for 0.6 release. - -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/fi.po -M po/fr.po -M po/hr.po -M po/nb.po -M po/pa.po -M po/pl.po -M po/ru.po -M po/sl.po -M po/uk.po -M po/zh_CN.po - -commit 005cf3ad2764c09750add9b43958c9f223a9d4cf -Author: Jim Nelson -Date: Mon Jun 7 23:27:11 2010 +0000 - - First round of commits for Canon EOS 50D fixes. Hope this will make - headway on #1852. - -M src/BatchImport.vala -M src/DatabaseTables.vala -M src/ImportPage.vala -M src/Photo.vala -M src/PhotoFileFormat.vala -M vapi/libgphoto2.vapi - -commit 3f3643abbe2f535e87d983e06751eec32cee3601 -Author: Lucas Beeler -Date: Mon Jun 7 21:59:47 2010 +0000 - - Evens out the zoom scale such that each tick corresponds to - multiplying the zoom level by a constant, adaptive factor. Closes - #1943. - -M src/Dimensions.vala - -commit 05db8a7c130f7b1a5706910553a83b403eff362c -Author: Jim Nelson -Date: Mon Jun 7 21:36:37 2010 +0000 - - #2004/#1344: No longer using libusb to map gPhoto camera objects to - USB ports. gudev gives us all the - information we need. Thanks to Bruno Girin. - -M Makefile -M THANKS -M debian/control -M src/CameraTable.vala - -commit 46f4dfca68dbf878a5d9c0fa65bf95417cf63bb4 -Author: Vera Yin -Date: Fri Jun 4 23:38:44 2010 +0000 - - Updated pot file following string freeze in anticipation for 0.6 - release. - -M po/shotwell.pot -M po/sl.po - -commit fc3d5338ba590730fdc72fa3ebbe3c326c56f1dd -Author: Patrick Tierney -Date: Fri Jun 4 22:10:31 2010 +0000 - - Changed importing dialogs and import menu strings - -M src/LibraryWindow.vala - -commit 242590085ad09ec73224889b8d1d3321df913a1c -Author: Allison Barlow -Date: Fri Jun 4 21:58:05 2010 +0000 - - fixes #2018 background color slider in preferences is too long, #2031 - [strings] warn user if Pictures directory is ~, #2041 [strings] - preferences dialog label nit, and changes the preferences dialog - alignment to be GNOME HIG compliant. - -M src/AppWindow.vala -M src/LibraryWindow.vala -M ui/shotwell.glade - -commit 216439e44ff85b823a725c85f094ad847c23dd7f -Author: Lucas Beeler -Date: Fri Jun 4 21:56:46 2010 +0000 - - Merged NEWS file from the 0.5.x branch into trunk so the release - history is properly reflected on the wiki. Closes #2007. - -M NEWS - -commit 2de64561f6c5d7c0158d63d62fb527084dc380a4 -Author: Lucas Beeler -Date: Fri Jun 4 21:22:43 2010 +0000 - - Changes the Facebook service welcome message in the publishing - dialog such that the user is informed that he/she must grant - Shotwell Connect certain permissions in order for it to function - properly. Closes #1982. - -M src/FacebookConnector.vala - -commit 33a2bf060b7e662b964f6cd24dab105eeec6f631 -Author: Vera Yin -Date: Fri Jun 4 20:43:31 2010 +0000 - - Updated Slovenian translation, added plural forms to Croation - translation. - -M po/hr.po -M po/sl.po - -commit 50052ce38160bc9627a842f520fdd0194f6db95b -Author: Patrick Tierney -Date: Fri Jun 4 18:45:50 2010 +0000 - - Removed mnemonic collisions in various menus - -M src/LibraryWindow.vala -M src/Resources.vala - -commit 45002a5832062b9971e35e7b918bed638700133b -Author: Lucas Beeler -Date: Fri Jun 4 01:43:17 2010 +0000 - - Updated all translation files to support gettext lookup on the - 'translator-credits' msgid to allow display of translator credits - in the "About..." box; changed "About..." box invocation code in - the AppWindow class to inject a translator credits pane. Closes #2005. - -M po/bg.po -M po/bn.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/fi.po -M po/fr.po -M po/hr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/lv.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ru.po -M po/sk.po -M po/sl.po -M po/sv.po -M po/th.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po -M src/AppWindow.vala - -commit 03dedffa332af3d764f41f76ae287ed68b6545c4 -Author: Jim Nelson -Date: Thu Jun 3 23:58:19 2010 +0000 - - #2039: I18N "modified" suffix for externally editable files. - -M src/Photo.vala - -commit 3b30cdc859717ee0b690d36318f9ab02b9cbf1ce -Author: Patrick Tierney -Date: Thu Jun 3 23:05:28 2010 +0000 - - Changed dimensions to display multiplication sign rather than the - letter x - -M src/Properties.vala - -commit c3f897abd12765d8983989dfee1cd7a7350f5d7a -Author: Allison Barlow -Date: Thu Jun 3 23:01:17 2010 +0000 - - One liner fix for #1885 photo jumps when scaled. - -M src/Dimensions.vala - -commit 535d368a54f98564a446cfc6a72cabae5cb8c3c4 -Author: Allison Barlow -Date: Thu Jun 3 22:56:09 2010 +0000 - - fixes #2022 (direct-edit mode is broken), #1997 (Close image viewer - with Escape), and #2015 (in Preferences dialog, indent labels relative - to section headers). - -M src/DirectWindow.vala -M src/PhotoPage.vala -M ui/shotwell.glade - -commit 3cd161349d2bdb00575d6da6836dd9ee828892c1 -Author: Lucas Beeler -Date: Thu Jun 3 22:48:27 2010 +0000 - - Constitutes a total re-write of the zooming subsystem, introducing - the new ZoomBuffer class that takes advantage of parellelism and - clever case-specific optimizations to significantly improve zooming - performance. Closes #1906 as well. - -M src/ColorTransformation.vala -M src/Dimensions.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala - -commit 4a42cb4ec45e1b6ad0d58f53ec784babd9a8998c -Author: Patrick Tierney -Date: Thu Jun 3 19:37:35 2010 +0000 - - Fix of DnD bug, now on_motion attempts to stop DnD events in addition - to on_left_click - -M src/PhotoPage.vala - -commit a34cc0e1993d58437163d0f64b29ecac4b4275aa -Author: Vera Yin -Date: Thu Jun 3 19:26:00 2010 +0000 - - Added Croatian translation. - -M Makefile -M THANKS -A po/hr.po - -commit aa7fded7d0d3d5800ad38f946a73c1597deaaf12 -Author: Jim Nelson -Date: Thu Jun 3 18:52:53 2010 +0000 - - Makefile tab thing and a minor bug fix. - -M Makefile -M src/Page.vala - -commit 846fa0391050a4e2ff9e074b7b391f116ab26918 -Author: Patrick Tierney -Date: Thu Jun 3 02:26:35 2010 +0000 - - Added PNG thumbnail support to ThumbnailCache, and changed the - interface with ThumbnailCache to use LibraryPhoto instead of PhotoID - -M src/Photo.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala - -commit 1beefe1a9d40a10e6e45b641d2a5d3f965494a39 -Author: Allison Barlow -Date: Thu Jun 3 02:09:08 2010 +0000 - - fixes #1974 Select external editor in Preferences dialog - -M misc/shotwell.schemas -M src/CollectionPage.vala -M src/Config.vala -M src/Dialogs.vala -M src/JfifSupport.vala -M src/Photo.vala -M src/PhotoFileFormat.vala -M src/PhotoPage.vala -M src/PngSupport.vala -M src/RawSupport.vala -M src/util.vala -M ui/shotwell.glade - -commit a331027bd408b7e64128f8c733bd4b27d87604b2 -Author: Patrick Tierney -Date: Thu Jun 3 01:23:37 2010 +0000 - - Added coment to EditingHostPage regarding assert statement - -M src/PhotoPage.vala - -commit e92a4820b5f6ac118be69e90565be4cec03f2f0b -Author: Jim Nelson -Date: Wed Jun 2 23:35:53 2010 +0000 - - #1834: Preferences dialog now non-modal thanks to Marcel Stimberg. - -M THANKS -M src/Dialogs.vala -M src/LibraryWindow.vala -M ui/shotwell.glade - -commit b14d0bcf8a4ebdc6a0b48ebd13767db73280a242 -Author: Vera Yin -Date: Wed Jun 2 21:09:55 2010 +0000 - - Added Slovenian translation. - -M Makefile -M THANKS -A po/sl.po - -commit e4d13afc00bbcb2b0010a98bd91964bbf4bec079 -Author: Jim Nelson -Date: Wed Jun 2 17:28:00 2010 +0000 - - #2002: Fullscreen no longer asserts. - -M src/LibraryWindow.vala - -commit d6088409e8b6333b7126f3e2866249540320f904 -Author: Jim Nelson -Date: Wed Jun 2 17:12:36 2010 +0000 - - #423: Small corruption when dragging crop tool corners resolved - courtesy Josh Freeman. - -M THANKS -M src/Box.vala - -commit 48b57a1c56bdd8696450c6d0f359facbdfcbc4e8 -Author: Jim Nelson -Date: Wed Jun 2 01:32:21 2010 +0000 - - #1851: Catches long filenames and skips them before calling gPhoto - functions which perform unchecked strcpy's. - -M src/GPhoto.vala -M src/ImportPage.vala - -commit f21d34c0c82146c3e0c7605403c728600cc4561f -Author: Patrick Tierney -Date: Tue Jun 1 23:39:19 2010 +0000 - - Fixed bug in Page::update_modifiers(), so that internal key modifier - variables are in sync with poll - -M src/Page.vala - -commit f51cb9574b839fb29e48327b431eeeb25941ea50 -Author: Jim Nelson -Date: Tue Jun 1 22:55:15 2010 +0000 - - #1995: Support for Canon's owner name in artist field. - -M src/PhotoMetadata.vala - -commit e91dc7936738b69dd84cc71c81519a8d48cecc6f -Author: Lucas Beeler -Date: Tue Jun 1 22:24:18 2010 +0000 - - Updated Thai translation. - -M po/th.po - -commit d5ba5a4fab69681086ecd03e277dbc415635470b -Author: Jim Nelson -Date: Tue Jun 1 19:19:17 2010 +0000 - - #1954: Exposure bias in extended properties. - -M src/PhotoMetadata.vala -M src/Properties.vala - -commit 0c779365d1aebf2c2420a29d0573e282213dfceb -Author: Patrick Tierney -Date: Sat May 29 01:56:45 2010 +0000 - - Fixed crash introduced to fix ticket 1991. Updated PageCommand to - allow it to properly restore the LibraryPhotoPage to its previous - state as undos are executed, and introduced assert in switched_to - to check for future bugs involving an empty view. - -M src/CollectionPage.vala -M src/Commands.vala -M src/LibraryWindow.vala -M src/PhotoPage.vala - -commit 189d671a09b6580bf5665c5807d637c338076e53 -Author: Allison Barlow -Date: Fri May 28 22:08:01 2010 +0000 - - fixes #1556 don't allow Page Up/Down to affect zoom slider (reopened - for home/end keys) and #1957 preferences dialog should be hidden - when Shotwell is minimized - -M src/CollectionPage.vala -M src/Dialogs.vala -M ui/shotwell.glade - -commit f72d49974bd59b055c85c4452e7a21ad88c21f5b -Author: Jim Nelson -Date: Fri May 28 21:38:05 2010 +0000 - - #1909: Faster export by parallelizing the exports in background - threads. This also keeps the UI thread free to - update. - -M Makefile -M src/CollectionPage.vala -M src/Dialogs.vala -M src/Page.vala -M src/Photo.vala -A src/PhotoExporter.vala -M src/Workers.vala - -commit 5a8a46cd05071446ac8b65508c7cc1a7ad83795b -Author: Patrick Tierney -Date: Fri May 28 20:53:46 2010 +0000 - - EditingHostPage now clears its ViewCollection in switching_from, - so non-active LibraryPhotoPages do reference a photo. - -M src/PhotoPage.vala - -commit f7cbc48fff046b2aecc1f1ec08ab581384da56f3 -Author: Allison Barlow -Date: Fri May 28 00:19:26 2010 +0000 - - adds Remove From Library Command, per ticket #1756. Also adds Delete - in the Trash Page. - -M src/CollectionPage.vala -M src/Dialogs.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/TrashPage.vala -M src/util.vala -M ui/collection.ui -M ui/photo.ui -M ui/trash.ui - -commit 156c0ba7c379e6008aeea2a1dd154cbcce5cd643 -Author: Lucas Beeler -Date: Thu May 27 23:13:55 2010 +0000 - - Updated Spanish and Thai translations. - -M po/es.po -M po/th.po - -commit 391eada8c20d23b23e7fecf6a5f0279af4909fcf -Author: Patrick Tierney -Date: Thu May 27 22:43:51 2010 +0000 - - Added comment to EditingTools.vala regarding ticket 1946 - -M src/EditingTools.vala - -commit 74bb2c6f3896637b6b735b4b01bce5802317baeb -Author: Patrick Tierney -Date: Thu May 27 21:43:36 2010 +0000 - - Added preferences command to TrashPage. - -M ui/trash.ui - -commit 3097154b2e7e28066405c970e70dfd21cb6847d5 -Author: Patrick Tierney -Date: Thu May 27 18:36:03 2010 +0000 - - Added Tags menu to LibraryPhotoPage. Restructured ModifyTagsDialog - to accept a photo, and updated code in CollectionPage to use the - new ModifyTagsDialog constructor. - -M src/CollectionPage.vala -M src/Dialogs.vala -M src/PhotoPage.vala -M ui/photo.ui - -commit e1de788c48ccb29c12d003ffc1392495b42a337e -Author: Jim Nelson -Date: Thu May 27 03:11:20 2010 +0000 - - #1552: Jump to file in file manager - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/PhotoPage.vala -M src/Resources.vala -M ui/collection.ui -M ui/direct.ui -M ui/photo.ui - -commit 583c969c93e4e8e325109a289cdee2f8f6dc7320 -Author: Jim Nelson -Date: Thu May 27 01:31:24 2010 +0000 - - One slight change to the externally editable commit: orientation - (which is a transformation) should only be held - in PhotoTable. BackingPhotoTable should only hold the source file's - original_orientation. This keeps all - transformations in PhotoTable, freeing BackingPhotoTable to merely - store what the backing photo's pristine - state. - -M src/DatabaseTables.vala -M src/Photo.vala - -commit b2c99eedb7c0861de6f3e33287ec8d4ffc77b5f7 -Author: Allison Barlow -Date: Wed May 26 23:20:24 2010 +0000 - - fixes #1075 Allow User to specify import directory - -M misc/shotwell.schemas -M src/AppDirs.vala -M src/BatchImport.vala -M src/Config.vala -M src/Dialogs.vala -M src/LibraryFiles.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/util.vala -M ui/shotwell.glade - -commit 95c598f0b42527fc96372895be29488f39535222 -Author: Patrick Tierney -Date: Wed May 26 22:23:37 2010 +0000 - - Added check to PhotoRenameDialog for a null string return from - execute that was causing a soft assert. - -M src/Dialogs.vala - -commit 185021969cd0dd500fb5e82759750215d0dd5a5c -Author: Jim Nelson -Date: Wed May 26 21:57:40 2010 +0000 - - #1978: Close application properly when Alt+F4 is pressed in fullscreen - mode. - -M src/AppWindow.vala - -commit a4305775b23b4eb14425a2d0180f10302298cf2d -Author: Allison Barlow -Date: Wed May 26 18:22:51 2010 +0000 - - fixes #1956 by revamping the properties class - -M src/LibraryWindow.vala -M src/Properties.vala - -commit 854fb702b2a1982fb0132bea232d5fa73ea7bb63 -Author: Patrick Tierney -Date: Wed May 26 18:10:06 2010 +0000 - - Removed the Display Borders preference checkbox. Removed checkbox - object from Dialogs.vala, shotwell.glade, shotwell.schema. - Removed the save and load commands in Config.vala. Updated the - get_border_width() function in CheckerboardLayout.vala to reflect - a constant border with. - -M misc/shotwell.schemas -M src/CheckerboardLayout.vala -M src/Config.vala -M src/Dialogs.vala -M ui/shotwell.glade - -commit 8aae77d4ca9c3d33c416a01d3d7659b1c5020881 -Author: Jim Nelson -Date: Wed May 26 00:55:44 2010 +0000 - - #1479: Open with external editor. Currently the editor is hardcoded - as GIMP (/usr/bin/gimp), but this will - change with #1974 (Select external editor in Preferences dialog). - -M src/CollectionPage.vala -M src/Commands.vala -M src/DatabaseTables.vala -M src/Dialogs.vala -M src/LibraryFiles.vala -M src/MimicManager.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/main.vala -M ui/collection.ui -M ui/photo.ui - -commit fcd27a0fa82825e80f13a1db23d942983f42ac2f -Author: Patrick Tierney -Date: Tue May 25 23:18:42 2010 +0000 - - Removed "move to" comment from drag and drop import dialog, and - added keyboard mnemonics for import and copy. - -M src/LibraryWindow.vala - -commit 8045868067a9d13d366e03b9f47c02e19b9be8c5 -Author: Lucas Beeler -Date: Tue May 25 21:16:50 2010 +0000 - - Updated Spanish translation. - -M THANKS -M po/es.po - -commit d8d15f000777235fbd02eb59e3ddf3a9594a5a85 -Author: Jim Nelson -Date: Tue May 25 19:07:50 2010 +0000 - - #1939: Addresses oddball EXIF date/time format in Minolta DiMAGE E223. - -M THANKS -M src/PhotoMetadata.vala - -commit f77700e6f8312d71ff01e2f60d4523a46ea2dca4 -Author: Jim Nelson -Date: Tue May 25 18:38:27 2010 +0000 - - #1953: Sorting files using UTF8 collating. - -M THANKS -M src/SortedList.vala - -commit e9037eb171adac0eae31e300b1c62358b47629d5 -Author: Jim Nelson -Date: Tue May 25 18:22:08 2010 +0000 - - #1967: Added Restore label to button on Trash Page. - -M src/Resources.vala -M src/TrashPage.vala - -commit 944c8fe3211f5ae664015ed14474bcf9f099423b -Author: Jim Nelson -Date: Tue May 25 18:14:48 2010 +0000 - - #959: Center color adjustment sliders with Ctrl+LMB. - -M THANKS -M src/EditingTools.vala -M src/util.vala - -commit 20d11c3349838a0076e05557e3df4aa5b7f4f52e -Author: Lucas Beeler -Date: Tue May 25 00:34:03 2010 +0000 - - Added +trunk tag following 0.5.90 release. - -M Makefile -M po/bg.po -M po/bn.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/fi.po -M po/fr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/lv.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ru.po -M po/sk.po -M po/sv.po -M po/th.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit 61edad726c755dd319937b6ff82a996171f36dc0 -Author: Lucas Beeler -Date: Tue May 25 00:20:56 2010 +0000 - - This is the 0.5.90 release image. - -M INSTALL -M Makefile -M README -M po/bg.po -M po/bn.po -M po/cs.po -M po/da.po -M po/de.po -M po/el.po -M po/en_GB.po -M po/es.po -M po/et.po -M po/fi.po -M po/fr.po -M po/hu.po -M po/id.po -M po/it.po -M po/ja.po -M po/lv.po -M po/nb.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ru.po -M po/sk.po -M po/sv.po -M po/th.po -M po/uk.po -M po/zh_CN.po -M po/zh_TW.po - -commit 3661f334546967472eb23a972555b291e5291e73 -Author: Lucas Beeler -Date: Mon May 24 23:21:52 2010 +0000 - - Correct a software distribution error whereby the shotwell.glade - definition file wasn't included in the RESOURCE_FILES list. - -M Makefile - -commit 6442e427def1a2598fe9d2d7c48cd9286eb32dda -Author: Vera Yin -Date: Mon May 24 21:46:27 2010 +0000 - - Updated Ukrainian and Chinese (Taiwan) translations. - -M po/uk.po -M po/zh_TW.po - -commit 52c559527e612ab62d7fcfc0f95b486fedf02031 -Author: Allison Barlow -Date: Fri May 21 19:42:53 2010 +0000 - - fixes #1949 format f-number more nicely - -M src/PhotoMetadata.vala -M src/Properties.vala - -commit 31d817a51f8dd85bdbb1c5c83ae467a6e013e29b -Author: Vera Yin -Date: Fri May 21 18:26:10 2010 +0000 - - Added Thai translation, updated Czech translation. - -M Makefile -M THANKS -M po/cs.po -A po/th.po - -commit 6fdbdde08b039d02a238e0c0742e26dc82f52121 -Author: Jim Nelson -Date: Wed May 19 17:45:08 2010 +0000 - - #1944: MEASURE_PIPELINE now builds. - -M src/Photo.vala - -commit 17e57c06c9acebb117b5bde02cebf564fef87999 -Author: Jim Nelson -Date: Wed May 19 17:22:13 2010 +0000 - - Some of the rotations in Orientation were improperly mapped. - The recent Flip command exposed them. - -M src/Orientation.vala - -commit 736501d1ac6190acae48ad1e575fe7da5ee0db0c -Author: Vera Yin -Date: Tue May 18 05:54:23 2010 +0000 - - Updated Slovak translation. - -M po/sk.po - -commit d3d2640a150966f6162c50a673ad9d2450a5235b -Author: Lucas Beeler -Date: Tue May 18 01:18:44 2010 +0000 - - Eliminates GTK assertion errors that appeared when working with PNG - images in direct-edit mode. Closes #1937. - -M src/Photo.vala - -commit aa571f18f6e2674aa62a513011f48f89cf238514 -Author: Lucas Beeler -Date: Tue May 18 00:12:07 2010 +0000 - - Bumps the MAX_PHOTO_DIMENSION constant in the FacebookConnector to - 720 pixels. Closes #1922. - -M src/FacebookConnector.vala - -commit ca1138d99e7497b3c7836c6d0a15b9165c0fca80 -Author: Allison Barlow -Date: Mon May 17 22:45:27 2010 +0000 - - fixes #1912 welcome dialog shouldn't have a separator - -M src/Dialogs.vala -M ui/shotwell.glade - -commit 6a8f5d6fa955fcf3c24fb991406ef7dd351e3d30 -Author: Vera Yin -Date: Mon May 17 21:41:17 2010 +0000 - - Updated Italian translation. - -M po/it.po - -commit 47877774cd143591d8012e89aecedc3d1ce69db6 -Author: Vera Yin -Date: Mon May 17 21:37:01 2010 +0000 - - Updated Slovak translation. - -M po/sk.po - -commit 4e6ed6399218df8ab82c64a3a8cf41a85ba3fd29 -Author: Vera Yin -Date: Mon May 17 21:00:12 2010 +0000 - - Added Indonesian translation. - -M Makefile -M THANKS -A po/id.po - -commit 653533b514b20e72bc5db413b3c7ddd793012634 -Author: Vera Yin -Date: Mon May 17 20:42:11 2010 +0000 - - Updated Norwegian translation. - -M po/nb.po - -commit e2f1e998470ac0b3b540d054c0046f267cd04dc7 -Author: Allison Barlow -Date: Mon May 17 19:01:15 2010 +0000 - - fixes four tickets: #1820 (Don't reflow CheckerboardLayout if not - in view), #1866 (version compatibility message is confusing), #1881 - (crop, red-eye, adjust should have keyboard shortcuts), and #1915 - (flip image vertically). - -A icons/object-flip-vertical.png -A icons/object-flip-vertical.svg -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/DatabaseTables.vala -M src/EditingTools.vala -M src/PhotoPage.vala -M src/Resources.vala -M ui/collection.ui -M ui/direct.ui -M ui/photo.ui - -commit 9658661107418e1b6348d00dc065e79023525d5c -Author: Vera Yin -Date: Sat May 15 00:49:18 2010 +0000 - - Updated British English translation. - -M po/en_GB.po - -commit cda66bb8cd14df4c226028e7bda02e6240644360 -Author: Adam Dingle -Date: Fri May 14 22:42:13 2010 +0000 - - Autoenhanced the About box photo. - -M icons/shotwell-street.jpg - -commit 6792e8dc084b2954c9ac9abfa674314fca6e23fa -Author: Lucas Beeler -Date: Fri May 14 22:33:34 2010 +0000 - - Properly handles file extensions on Save As... in direct-edit - mode. Closes #1876. - -M src/PhotoPage.vala - -commit 1e94d58bf2d7655ceb86e039c2c45a755983975d -Author: Vera Yin -Date: Fri May 14 18:37:08 2010 +0000 - - Updated Norwegian translation. - -M po/nb.po - -commit 5727b7ec12a532a4bddceb1186e79188a2c08acb -Author: Vera Yin -Date: Thu May 13 22:34:42 2010 +0000 - - Added Norwegian Bokmal translation. - -M Makefile -M THANKS -A po/nb.po - -commit 076e7b16b5222783c940737db7c7d4cde7900603 -Author: Allison Barlow -Date: Thu May 13 20:54:59 2010 +0000 - - fixes #1535 (improve Import Complete dialog) and #1809 (jump to - camera view when camera is connected) - -M src/Dialogs.vala -M src/LibraryWindow.vala -M src/main.vala - -commit 81c2fb899e6f4e49b00b9b623cc22d7bec63c751 -Author: Allison Barlow -Date: Thu May 13 18:51:48 2010 +0000 - - fixes #1819 drag and drop export is broken - -M src/Page.vala - -commit 39e29eff6a51d6bf9d4f72866d9c37c2a15ed31c -Author: Allison Barlow -Date: Wed May 12 23:16:35 2010 +0000 - - fixes #1898 (direct edit crashes on loading photo with unexpected - orientation) and #1806 (Tag with ampersand in title causes Pango - warning) - -M src/PhotoMetadata.vala -M src/Tag.vala -M src/Thumbnail.vala - -commit dea0fc581a2a1efa93ed3e1d0a83f029a3452333 -Author: Jim Nelson -Date: Tue May 11 22:12:55 2010 +0000 - - This corrects a number of bugs uncovered by the Google Nexus One. - -M src/ImportPage.vala - -commit ebf9b48098d93b676f7c3b2752701c11936185e1 -Author: Lucas Beeler -Date: Tue May 11 19:00:21 2010 +0000 - - Fixes critical bug #1861. - -M src/Dialogs.vala - -commit 7c257bb4ae291779c046d998f5f0534c79192c47 -Author: Allison Barlow -Date: Tue May 11 16:11:14 2010 +0000 - - shaves off a few seconds for #1892 opening a a RAW photo in - direct-edit is slow - -M src/Photo.vala - -commit efb7cdc7dc33d9e4b6a14ad1570f58f9e867ba64 -Author: Jim Nelson -Date: Tue May 11 00:07:54 2010 +0000 - - #1893: iPhoto titles/descriptions now supported. Better metadata - tag coverage for title/descriptions in - general. - -M src/PhotoMetadata.vala - -commit e1c139dd8c88d244c3644bac22ed6e7441acec89 -Author: Vera Yin -Date: Mon May 10 22:56:40 2010 +0000 - - Added Czech translation, updated Finnish translation. - -M Makefile -M THANKS -A po/cs.po -M po/fi.po - -commit b5b72a2948cd5232c58d65a0830b64c40c40e6c8 -Author: Lucas Beeler -Date: Mon May 10 19:48:01 2010 +0000 - - Enables zooming via the mouse wheel in full window, direct edit and - full screen modes. Closes #1796. - -M src/Page.vala -M src/PhotoPage.vala - -commit 7d873510ecef04a8962f8055620113ce4488b941 -Author: Allison Barlow -Date: Mon May 10 17:15:13 2010 +0000 - - fixes #1731 RAW in direct-edit mode - -M misc/shotwell-viewer.desktop.head -M src/Photo.vala -M src/PhotoPage.vala - -commit 09ef4a594bec7ace000d9be840265d9ccaef8b94 -Author: Vera Yin -Date: Sat May 8 01:36:20 2010 +0000 - - Updated Portuguese translation. - -M po/pt.po - -commit dbe23b3971dea99ad22cde26efb65ffbd43ea39b -Author: Jim Nelson -Date: Sat May 8 00:40:41 2010 +0000 - - #1886: Set as Desktop Background no longer abends with RAW photos. - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/Photo.vala -M src/PhotoFileFormat.vala -M src/image_util.vala - -commit 1b40568659012575085a78f3b517b8f526a8854b -Author: Jim Nelson -Date: Fri May 7 23:17:28 2010 +0000 - - #1852: Although I cannot reproduce this, I do see how this can occur. - I believe this fixes the problem. - -M src/DataCollection.vala -M src/ImportPage.vala - -commit eb5ebc31aef0bb36fff178dcd816a4dd35e22da0 -Author: Jim Nelson -Date: Fri May 7 23:04:16 2010 +0000 - - #1828: Added better null-checking for selection paths in the sidebar. - -M src/Sidebar.vala - -commit a0e82fd65488f748d1efe0f873630af419b4937d -Author: Jim Nelson -Date: Fri May 7 22:41:53 2010 +0000 - - This fixes a double-free in PhotoMetadata. - -M src/PhotoMetadata.vala - -commit 887c4c97640f0fb41a6a5d91e449bd4f6aed9bf6 -Author: Jim Nelson -Date: Fri May 7 22:25:20 2010 +0000 - - #1596: Import tags from photo files. - -M src/BatchImport.vala -M src/Photo.vala -M src/PhotoMetadata.vala - -commit df160a6408e0abf1acdd5e6ab40bcf699df22bd1 -Author: Lucas Beeler -Date: Fri May 7 21:04:06 2010 +0000 - - Enables the use of the 0, 1, and 2 keys as hotkeys that snap the image - zoom level to min, isomorphic, and max, respectively, in full-window, - full-screen, and direct-edit modes. Closes #1706. - -M src/Dimensions.vala -M src/PhotoPage.vala - -commit 0273cb44ee8a4fbd5652c5e7244e48a5aa3e50ef -Author: Jim Nelson -Date: Fri May 7 20:22:22 2010 +0000 - - #1714: Dupe detection works for RAW now. - -M src/BatchImport.vala -M src/DatabaseTables.vala -M src/ImportPage.vala -M src/Photo.vala -M src/PhotoMetadata.vala - -commit 6624163c193394bb6b448c40ae17084f5b065cf6 -Author: Vera Yin -Date: Fri May 7 20:03:07 2010 +0000 - - Troubleshot Danish and German translations. - -M po/da.po -M po/de.po - -commit 190bab07cf868633364788e597b432834813164b -Author: Vera Yin -Date: Fri May 7 19:51:49 2010 +0000 - - Updated Danish and German translations. - -M THANKS -M po/da.po -M po/de.po - -commit a380ad6c03d8bf301de932080001f0493b030987 -Author: Vera Yin -Date: Thu May 6 22:51:55 2010 +0000 - - Updated Portuguese translation. - -M THANKS -M po/pt.po - -commit 9f069eacee4197fa590a4f50018bb024e8d4b0a4 -Author: Allison Barlow -Date: Thu May 6 21:34:59 2010 +0000 - - fixes #1862 (exit full screen on double click). - -M src/PhotoPage.vala - -commit 4a1c1f322955dae83de144459c2f504e2ca86497 -Author: Jim Nelson -Date: Thu May 6 01:11:20 2010 +0000 - - #1863: RAW photos now oriented correctly. - -M src/MimicManager.vala -M src/Orientation.vala -M src/Photo.vala -M src/RawSupport.vala - -commit 1d8be10324d86d8617f156c7b6135c7dc320ea0e -Author: Vera Yin -Date: Thu May 6 00:08:55 2010 +0000 - - Updated French translation. - -M THANKS -M po/fr.po - -commit 698cd7b13d5aaddbfcd8670dcbf0ec9322b7047e -Author: Jim Nelson -Date: Wed May 5 22:31:20 2010 +0000 - - #1877: Typo and an oversight conspired to kill dupe detection. - -M src/GdkSupport.vala -M src/PhotoMetadata.vala - -commit 4cc96e66a52672b01f0a4f15ed7fcb226bb1f3ab -Author: Vera Yin -Date: Wed May 5 20:00:14 2010 +0000 - - Updated Polish translation. - -M po/pl.po - -commit efc417460a45b5c411d9dbae97d6599b6d99dc1d -Author: Jim Nelson -Date: Wed May 5 18:02:03 2010 +0000 - - #1291: Got tired of mucking around with directories to make sure I - wasn't putting my personal library at risk as I developed new code. - This is a basic command-line implementation, but it suffices. - -M src/AppDirs.vala -M src/main.vala - -commit 63889e03aa278299e2da7babd47fc9df61fe2d66 -Author: Allison Barlow -Date: Wed May 5 16:58:16 2010 +0000 - - a step forward on #894 (display selection rectangle in focus-specific - color) and #1873 (don't colorize photo text on selection). - exact colors can be re-examined later. - -M src/CheckerboardLayout.vala -M src/Config.vala - -commit 96319917c734ab62a1d76051b7f16093774b1e89 -Author: Allison Barlow -Date: Tue May 4 22:16:57 2010 +0000 - - improves selection borders (#1832) - -M src/CheckerboardLayout.vala -M src/EventsDirectoryPage.vala -M src/image_util.vala - -commit 7f7fbc2343d174f97809dafb1e6b3f1917632889 -Author: Vera Yin -Date: Tue May 4 21:40:54 2010 +0000 - - Updated Chinese (China) translation, added Chinese (Taiwan) - translation. - -M Makefile -M THANKS -M po/zh_CN.po -A po/zh_TW.po - -commit 39c8e4e4cca0749a5ae6cecb8f79e94c1ac801fa -Author: Jim Nelson -Date: Tue May 4 21:17:14 2010 +0000 - - This is something I've wanted to do for a while now: SortedList is - now a Gee.Collection and DataCollection - exports its lists as Gee.Collections. This will make it more flexible - for callers. It may be worthwhile to - make these read-only views, but that would require more testing. - -M src/DataCollection.vala -M src/Event.vala -M src/SortedList.vala -M src/system.vala - -commit ee5ecac9eac8ff0f01b486e60b89cb09466697cf -Author: Allison Barlow -Date: Tue May 4 20:52:31 2010 +0000 - - fixes tickets #1556 (don't allow Page Up/Down to affect zoom slider) - and #1576 (Right click support for import from camera). - -M src/CollectionPage.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Sidebar.vala -M ui/import.ui - -commit 49e72d98b228f48d60e5d44b40a219acd03b3c41 -Author: Jim Nelson -Date: Tue May 4 20:37:22 2010 +0000 - - #1868: Previews now load from camera without problem. - -M src/GPhoto.vala -M src/PhotoMetadata.vala - -commit 5eac068474411b5a3ebe0de87f1504ec68f01fbe -Author: Allison Barlow -Date: Tue May 4 20:18:36 2010 +0000 - - fixes tickets #1848 (multiline title messes up Basic Information pane) - and #1867 (use [ and ] for rotating left/right). - -M src/CollectionPage.vala -M src/PhotoMetadata.vala -M src/PhotoPage.vala - -commit e337e9a77bbbceb02875847ef733dc284bc360c0 -Author: Allison Barlow -Date: Tue May 4 20:05:22 2010 +0000 - - #1761 Selected picture not updated in single picture mode - -M src/Page.vala -M src/PhotoPage.vala - -commit 3c3910f622639b143b4c0293636d15fe9a8456fc -Author: Jim Nelson -Date: Tue May 4 18:11:38 2010 +0000 - - Being more selective about what constitutes a title now. - -M src/PhotoMetadata.vala - -commit 3b18a7647e670c51f3d4c2321d3cd9160b9e9e87 -Author: Allison Barlow -Date: Tue May 4 18:08:18 2010 +0000 - - fixes #1842 (Export dialog doesn't preserve settings between - invocations) and #1535 (improve Import Complete dialog). - -M src/Dialogs.vala -M src/PhotoPage.vala - -commit fe6563eed05bf5c626a93b3c6f2300d83c2b36d7 -Author: Jim Nelson -Date: Mon May 3 23:12:11 2010 +0000 - - #1693: Migrated from libexif to exiv2 via gexiv2. Note that libexif - is still a dependency due to an outstanding - issue obtaining the EXIF binary block for MD5 hashing. #1740: - EXIF <-> PNG operational. #1683: Display EXIF - information in RAW photos now fully functional (as much as Exiv2 - supports them). - -M Makefile -M src/BatchImport.vala -M src/DataObject.vala -M src/DatabaseTables.vala -D src/Exif.vala -M src/GPhoto.vala -M src/GdkSupport.vala -M src/ImportPage.vala -M src/JfifSupport.vala -M src/LibraryFiles.vala -M src/Photo.vala -M src/PhotoFileAdapter.vala -M src/PhotoFileFormat.vala -M src/PhotoFileSniffer.vala -A src/PhotoMetadata.vala -M src/PngSupport.vala -M src/Properties.vala -M src/RawSupport.vala - -commit eac3515548759c9b30f4298b91f2003038f664d1 -Author: Allison Barlow -Date: Mon May 3 19:48:07 2010 +0000 - - unmarked a string in glade so it will not be translated - -M ui/shotwell.glade - -commit d2987931d89e388b9ba7b186a93f9c8cc6ad36fe -Author: Allison Barlow -Date: Mon May 3 18:24:41 2010 +0000 - - implements #894 display selection rectangle in focus-specific color - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/Dialogs.vala -M src/Page.vala - -commit 14f73dbcdd05a7e81b73b2a4814dc1472a1cbb97 -Author: Vera Yin -Date: Sat May 1 00:22:10 2010 +0000 - - Merged comments into POT file. This is the definitive version of - the POT file for this weekly POT regen. - -M po/shotwell.pot - -commit 8e53090c293cf1ecda10d5adff7d3378abd6b1b8 -Author: Vera Yin -Date: Sat May 1 00:17:24 2010 +0000 - - Injected temporary fixes into POT file as part of Transifex debuggin'. - -M po/shotwell.pot - -commit 2d3fc135a1365681f869bfe8954bcfec8896e88d -Author: Vera Yin -Date: Sat May 1 00:11:26 2010 +0000 - - Updated POT file. - -M po/shotwell.pot - -commit 66bf99e89e89e9497133b42cdb3eee951af1f485 -Author: Vera Yin -Date: Fri Apr 30 23:54:50 2010 +0000 - - Added Finnish translation. - -M Makefile -M THANKS -A po/fi.po - -commit b965e41e139bfe57ddad0534042115b136055026 -Author: Lucas Beeler -Date: Fri Apr 30 23:03:22 2010 +0000 - - Fixes significant user interface issues with single-photo zoom. Closes - #1774. - -M src/PhotoPage.vala - -commit 0d6c011cb916ca50aad64355197395dc0ef78023 -Author: Allison Barlow -Date: Fri Apr 30 00:14:42 2010 +0000 - - fixes #1595 Include Windows-specific files in source tarballs - -M Makefile - -commit c75d3340e01308ac4a5fe915f71a832d78696f81 -Author: Lucas Beeler -Date: Thu Apr 29 22:45:33 2010 +0000 - - Allows converting between image file formats at export time (and via - "Save As..." in direct-edit mode); this closes ticket #1598. As a - bonus, also resolves #1817 "exporting multiple scaled-down photos - broken". - -M src/CollectionPage.vala -M src/Dialogs.vala -M src/JfifSupport.vala -M src/Page.vala -M src/PhotoFileFormat.vala -M src/PhotoPage.vala -M src/PngSupport.vala -M src/RawSupport.vala - -commit 3c64624a71dec6607be18b99f0346efb959a0ca8 -Author: Allison Barlow -Date: Thu Apr 29 19:49:08 2010 +0000 - - fixes tickets #1535, #1833, and #1621. - -M Makefile -M src/Dialogs.vala -M ui/shotwell.glade - -commit bb1f980ab34823bd66e402b9761d4c957875de4a -Author: Allison Barlow -Date: Wed Apr 28 21:54:23 2010 +0000 - - fixes #894 display selection rectangle in focus-specific color - -M src/AppWindow.vala -M src/CheckerboardLayout.vala -M src/Config.vala -M src/LibraryWindow.vala -M src/Page.vala - -commit 353866c2a2b16b58c8572956b7c5d44c3936775b -Author: Jim Nelson -Date: Wed Apr 28 21:45:10 2010 +0000 - - #1835: Move to Trash item properly sensitized. - -M src/CollectionPage.vala - -commit 5d9ebaaf2f9cf1444e51fc1052c4099dc4c903e4 -Author: Allison Barlow -Date: Wed Apr 28 17:26:37 2010 +0000 - - implements display border around each photo, which is part of #1304 - -M misc/shotwell.schemas -M src/CheckerboardLayout.vala -M src/Config.vala -M src/Dialogs.vala -M src/EventsDirectoryPage.vala -M src/image_util.vala -M ui/shotwell.glade - -commit 79c8d5fe7908f9181a46b0bcf4051967ba64a4b6 -Author: Lucas Beeler -Date: Tue Apr 27 20:27:09 2010 +0000 - - Adds basic PNG support. Closes ticket #602. - -M Makefile -M src/CollectionPage.vala -M src/Dialogs.vala -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/GdkSupport.vala -M src/Photo.vala -M src/PhotoFileFormat.vala -M src/PhotoPage.vala -M src/PicasaConnector.vala -A src/PngSupport.vala - -commit f4aa023b569ebc69bee6ec6f222c6223896de2d3 -Author: Allison Barlow -Date: Thu Apr 22 00:52:24 2010 +0000 - - #1708: update copyright lines in source code to 2010 - -M src/AppDirs.vala -M src/AppWindow.vala -M src/BatchImport.vala -M src/Box.vala -M src/CameraTable.vala -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/ColorTransformation.vala -M src/CommandManager.vala -M src/Commands.vala -M src/Config.vala -M src/CustomComponents.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/DatabaseTables.vala -M src/Debug.vala -M src/Dialogs.vala -M src/Dimensions.vala -M src/DirectWindow.vala -M src/EditingTools.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/Exif.vala -M src/GConf.vala -M src/GPhoto.vala -M src/ImportPage.vala -M src/International.vala -M src/LibraryFiles.vala -M src/LibraryWindow.vala -M src/Orientation.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/PixbufCache.vala -M src/Properties.vala -M src/Resources.vala -M src/Sidebar.vala -M src/SortedList.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala -M src/Workers.vala -M src/image_util.vala -M src/main.vala -M src/system.vala -M src/util.vala - -commit 33d0366b2228005e5aa989fcdb10fa4e7532b994 -Author: Allison Barlow -Date: Wed Apr 21 18:02:46 2010 +0000 - - #1612 drag select while ctrl pressed - -M src/DataCollection.vala -M src/Page.vala - -commit 96da319664090419e8860f9341d5c0f9a062d433 -Author: Jim Nelson -Date: Tue Apr 20 22:44:52 2010 +0000 - - #937: Progress bar now expands to fill toolbar with text centered. - Patch courtesy Matt Jones. - -M THANKS -M src/ImportPage.vala - -commit 3913abc8f3a2c2beee2c2b7fbda3598b771cf8df -Author: Allison Barlow -Date: Tue Apr 20 21:41:07 2010 +0000 - - fixes #1762 Black screen after full screen and #1763 Photos with - blank ImageDescriptions should be treated as no title at all - -M src/AppWindow.vala -M src/Dialogs.vala -M src/Exif.vala -M src/PhotoPage.vala - -commit bfc9d06668ea19ae91d9ec1eb9b6da0d93cda2a2 -Author: Jim Nelson -Date: Tue Apr 20 18:05:32 2010 +0000 - - #1795: Fixed thanks to Paul Novak. - -M src/EditingTools.vala - -commit 97dcaab716fe02a323660dc2f435ce36436e1afb -Author: Allison Barlow -Date: Mon Apr 19 21:25:24 2010 +0000 - - fixes #1751: Checkerboard not updated when photo hidden or deleted - -M src/CheckerboardLayout.vala - -commit 429ecb3dd478e30e6fd1143aca5c3ce7bbf14e2a -Author: Vera Yin -Date: Mon Apr 19 20:35:13 2010 +0000 - - Updated Greek translation. - -M po/el.po - -commit ac559150a72f6c20e156a6c2a14938a9d5f47ec5 -Author: Vera Yin -Date: Fri Apr 16 22:39:16 2010 +0000 - - Updated Greek translation. - -M THANKS -M po/el.po - -commit 4662a43c9dc0752c5b9113976b5e7d93f8ede703 -Author: Vera Yin -Date: Fri Apr 16 21:40:23 2010 +0000 - - Updated Japanese translation. - -M po/ja.po -M src/AppWindow.vala - -commit b98d96a63e261747d704563b87b4d9067bcdda9a -Author: Jim Nelson -Date: Fri Apr 16 00:19:53 2010 +0000 - - #594: Shotwell trash can. - -M Makefile -M src/AppWindow.vala -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/Commands.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/DatabaseTables.vala -M src/Dialogs.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/Tag.vala -M src/Thumbnail.vala -A src/TrashPage.vala -M ui/collection.ui -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/photo.ui -C071 ui/events_directory.ui ui/trash.ui - -commit 8a3c522b38ce0f3c48f63beb84a54ee094ee0e08 -Author: Allison Barlow -Date: Thu Apr 15 18:11:49 2010 +0000 - - re-added deleted text_entry_dialog to glade file. - -M ui/shotwell.glade - -commit 09ee7990ae41b5adf50d30493193bb7bd6c8b256 -Author: Allison Barlow -Date: Wed Apr 14 22:25:55 2010 +0000 - - implements #1574: allow user to set thumbnail background color - -M misc/shotwell.schemas -M src/AppWindow.vala -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/Config.vala -M src/Dialogs.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala -M src/Resources.vala -M src/image_util.vala -M ui/collection.ui -M ui/events_directory.ui -M ui/import.ui -M ui/photo.ui -M ui/shotwell.glade - -commit 238f344bb6cfc8cf2be6553e495d9be35bac1ed9 -Author: Allison Barlow -Date: Wed Apr 14 18:53:51 2010 +0000 - - fixes #1600 advance/back on Space/Backspace. - -M src/PhotoPage.vala - -commit 84379cbccc23439d69735af7238da552901c390b -Author: Lucas Beeler -Date: Fri Apr 9 23:51:30 2010 +0000 - - Allows user to zoom in and out of photos in the single picture library - view, the direct edit view, and the full screen view. Closes #1162. - -M src/Dimensions.vala -M src/Page.vala -M src/PhotoPage.vala -M ui/direct.ui -M ui/photo.ui - -commit 44479a9c4b8c89b2c270ef7baf09f7376288e34b -Author: Lucas Beeler -Date: Fri Apr 9 23:49:57 2010 +0000 - - Fixes a problem with the way login redirect urls are parsed with - new accounts in the facebook publishing subsystem. Closes bug #1696. - -M src/FacebookConnector.vala - -commit 6cf57d1a029ca1daa22726eee264c55e34118372 -Author: Vera Yin -Date: Fri Apr 9 23:29:00 2010 +0000 - - Updated Japanese translation. - -M Makefile -M po/ja.po - -commit 2d77b00871ff311cffc7723c6936956a4a75ff2a -Author: Jim Nelson -Date: Fri Apr 9 18:29:37 2010 +0000 - - Better handling of linking to libraw in the Makefile (specifically - for Vala build bot). Also, gudev #define - only added to gcc command if on Linux (which is the only platform - today with udev). - -M Makefile - -commit 7219aa9d7d1da091566516959ff0ee77c6fc5c81 -Author: Allison Barlow -Date: Thu Apr 8 18:49:31 2010 +0000 - - fixes #857, keeping the current photos in view when adjusting the - thumbnail slider - -M src/CheckerboardLayout.vala - -commit 3cd569b7d49c506b26b06437f59be837b71acb8b -Author: Jim Nelson -Date: Thu Apr 8 02:25:36 2010 +0000 - - Further work on the libraw bindings. - -M src/GRaw.vala -M vapi/libraw.vapi - -commit 0b6bea18e802c1c9e10523bd909af247adb76236 -Author: Vera Yin -Date: Thu Apr 8 02:03:59 2010 +0000 - - Added (empty) Japanese translation. - -M THANKS -A po/ja.po - -commit da907bdbbbbc6f5f6d7aa3716acd28e5f7e72123 -Author: Jim Nelson -Date: Wed Apr 7 00:45:21 2010 +0000 - - I went through and culled all references in the comments to Vala - bugzilla reports that have been resolved as of - 0.8.0. I corrected the code and removed the comment references. - I also updated a couple of the references that - were duplicates of other reports. - -M src/CameraTable.vala -M src/ColorTransformation.vala -M src/DataObject.vala -M src/Dialogs.vala -M src/GRaw.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Photo.vala -M src/PixbufCache.vala -M src/Sidebar.vala -M src/ThumbnailCache.vala -M src/Workers.vala -M vapi/FixedKeyFile.vapi - -commit 59369a7bc721fb80cbff73ece423950da8deabb9 -Author: Jim Nelson -Date: Tue Apr 6 23:18:40 2010 +0000 - - #1570: Removed GObject workarounds for - https://bugzilla.gnome.org/show_bug.cgi?id=611845 - -M src/BatchImport.vala -M src/CameraTable.vala -M src/DataObject.vala -M src/PicasaConnector.vala - -commit b536ff32c72fe5bf79d6a0f093254f56442efe34 -Author: Jim Nelson -Date: Tue Apr 6 23:10:58 2010 +0000 - - #1684: This is a first commit toward support for importing RAW files - from cameras. The current test case (Canon - S90) has this problem: gPhoto will return the thumbnail for the RAW - image, but no EXIF. When the CR2 file is - copied to the local machine, it's possible to extract the EXIF from - the embedded JPEG file, but not the EXIF - thumbnail. This mismatch kills dupe detection. - -M src/BatchImport.vala -M src/Exif.vala -M src/GPhoto.vala -M src/GRaw.vala -M src/GdkSupport.vala -M src/ImportPage.vala -M src/JfifSupport.vala -M src/LibraryFiles.vala -M src/PhotoFileFormat.vala -M src/RawSupport.vala -M vapi/libgphoto2.vapi - -commit 9ea596b3718318c842ba8cb040ad52254460c3e7 -Author: Vera Yin -Date: Tue Apr 6 21:10:10 2010 +0000 - - Updated Portguese translation. - -M THANKS -M po/pt.po - -commit d743d11e1f9442ac7fd8f147c069c1fc9954822b -Author: Adam Dingle -Date: Mon Apr 5 23:01:02 2010 +0000 - - Fixed #1691 (exit more gently on bad command-line argument). - -M src/main.vala - -commit 83d0cde40db2c1a0f5291a7f83ba831155cf352e -Author: Vera Yin -Date: Mon Apr 5 22:52:49 2010 +0000 - - Updated Russian translation. - -M THANKS -M po/ru.po - -commit e02a5d800e9383808a07354af56f5e2dc177b453 -Author: Allison Barlow -Date: Mon Apr 5 20:46:09 2010 +0000 - - implements #1533: ability to edit photo titles - -M src/CollectionPage.vala -M src/Commands.vala -M src/DatabaseTables.vala -M src/Dialogs.vala -M src/EventsDirectoryPage.vala -M src/Exif.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/Thumbnail.vala -M ui/collection.ui -M ui/photo.ui -M vapi/libexif.vapi - -commit 2932545b705a798106355a9d7fc470aaed288f1b -Author: Jim Nelson -Date: Fri Apr 2 00:47:14 2010 +0000 - - #522: Using auto-brightness for RAW color correction. See #1694. - -M src/GRaw.vala - -commit 9b2bd84d0fc942cddf80bdb77b405c23fc21d266 -Author: Allison Barlow -Date: Fri Apr 2 00:46:30 2010 +0000 - - #1530 allows Shotwell to build using Glade dialogs. TextEntryDialog - is the working example. - -M Makefile -M configure -M src/AppWindow.vala -M src/Dialogs.vala -A sw-glade -A ui/shotwell.glade -A ui/shotwell.xml - -commit 52cb85a5793c8fdc4dd36094d783d764330a4df0 -Author: Jim Nelson -Date: Thu Apr 1 23:02:13 2010 +0000 - - Added thumbnail support to all PhotoReaders. - -M src/Exif.vala -M src/GRaw.vala -M src/JfifSupport.vala -M src/MimicManager.vala -M src/Photo.vala -M src/PhotoFileAdapter.vala -M src/RawSupport.vala -M vapi/libraw.vapi - -commit 7a1dfecb89d721bcc1336ab6411858f0cda31351 -Author: Jim Nelson -Date: Thu Apr 1 20:16:18 2010 +0000 - - This fix solves a problem in EditingHostPage where two requests for - the same pixbuf may occur: one in the - background as a prefetch and the other as a blocked fetch. - -M src/PhotoPage.vala -M src/PixbufCache.vala -M src/Workers.vala - -commit fc4c76254d2f9667f1ad920ac0e63825ebea5207 -Author: Jim Nelson -Date: Thu Apr 1 20:13:52 2010 +0000 - - #1346: Removed our custom FStream.vapi now that FileStream supports - random access I/O. - -M Makefile -M src/Exif.vala -D vapi/FStream.vapi - -commit 4e006aa6712ca2b96d05368b09ae15551d0256bb -Author: Jim Nelson -Date: Wed Mar 31 22:46:55 2010 +0000 - - #1613: Removed local gudev bindings -- now part of Vala std dist. - -M Makefile -D vapi/gudev-1.0.vapi - -commit 79b445826c4d60c463d474057c9427565fbff0fc -Author: Jim Nelson -Date: Wed Mar 31 22:41:56 2010 +0000 - - #1577: Shotwell compiles with Vala 0.8.0. - -M Makefile -M src/Page.vala -M src/Sidebar.vala - -commit 6271f10bb2f478c57ac4de3f136329c9782dc463 -Author: Jim Nelson -Date: Wed Mar 31 19:24:06 2010 +0000 - - This fixes a dimensions problem with certain RAW files (those from - Fuji cameras, as it turns out) and improves - exception reporting in GRaw. - -M src/GRaw.vala -M src/RawSupport.vala - -commit 4a65fdf4f5eeadb066167783a3d0c4b0d7e8b96c -Author: Jim Nelson -Date: Wed Mar 31 01:36:09 2010 +0000 - - #522: Initial commit for 8-bit RAW support. This commit provides - support for file import (but not from camera), - JPEG mimicking (to prevent full-sized RAW decodes and processing - whenever possible), and a file format - abstraction layer in anticipation of PNG and TIFF support. - - Some RAW files do not display correctly; some have odd dimensions, - other have color problems. I'm investigating - these currently. Also, to improve import time, instead of displaying - a full-window pixbuf of each photo as it's - loaded, the largest thumbnail is displayed instead. This behavior - can be reinstated, if deemed important. - -M Makefile -M src/BatchImport.vala -M src/CollectionPage.vala -M src/DatabaseTables.vala -M src/Dialogs.vala -M src/Exif.vala -A src/GRaw.vala -A src/GdkSupport.vala -M src/ImportPage.vala -A src/JfifSupport.vala -A src/MimicManager.vala -M src/Orientation.vala -M src/Photo.vala -A src/PhotoFileAdapter.vala -A src/PhotoFileFormat.vala -A src/PhotoFileSniffer.vala -M src/PhotoPage.vala -A src/RawSupport.vala -M src/ThumbnailCache.vala -M src/image_util.vala -M src/main.vala -M vapi/libexif.vapi -A vapi/libraw.vapi - -commit 9710ba80c17888a3e6d3bf7a961777425e01be14 -Author: Allison Barlow -Date: Fri Mar 26 22:23:41 2010 +0000 - - fixes #1152: photos with no/bogus time create 1969 events - -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala - -commit 3424f9df0d7581d9fcf7ecc2d27dc8901930769a -Author: Jim Nelson -Date: Fri Mar 26 18:41:12 2010 +0000 - - Further improvements to scaling operations on thumbnails and - CheckerboardLayout. - -M src/CheckerboardLayout.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala - -commit 9ff7eec785b5c867c63d7d85813a94470cf6a458 -Author: Jim Nelson -Date: Thu Mar 25 23:40:19 2010 +0000 - - This fixes a problem with large collections with loading thumbnails. - -M src/Thumbnail.vala -M src/ThumbnailCache.vala - -commit e061f00460ebd2c6a427c62833d72b4816e0908a -Author: Lucas Beeler -Date: Thu Mar 25 22:06:35 2010 +0000 - - Updated Ukranian translation. - -M po/uk.po - -commit 6b4320b2225ba9d741f8eae10bd3792a725f092b -Author: Jim Nelson -Date: Tue Mar 23 02:04:03 2010 +0000 - - Two missed "organizer" -> "manager" references. - -M README -M debian/control - -commit a41c70ec0b5dba14e4c10008f16fa0dfd8aa3d8f -Author: Jim Nelson -Date: Mon Mar 22 22:33:11 2010 +0000 - - Fixes a divide-by-zero error. - -M src/ThumbnailCache.vala - -commit 88da9eb2e548c93813c6d2e2a54e6a9903a05d70 -Author: Jim Nelson -Date: Mon Mar 22 21:19:06 2010 +0000 - - More fixed warnings for the next version of Vala. - -M src/CommandManager.vala -M src/Printing.vala - -commit f2b9e2a34593772d849e31a402905a24022d4492 -Author: Jim Nelson -Date: Mon Mar 22 19:04:31 2010 +0000 - - Removes warnings seen on the Vala buildbot (will be seen in the next - release of Vala). - -M vapi/FStream.vapi -M vapi/LConv.vapi -M vapi/libgphoto2.vapi - -commit 4a7a189a52866b5a8c371a7034379d1d32f9bfd0 -Author: Jim Nelson -Date: Fri Mar 19 22:16:14 2010 +0000 - - This simplifies the CheckerboardLayout code, which relied on a more - complicated scheme to reflow the layout and - report exposed/unexposed to the CheckerboardItems. This change - centralizes the state changes and handles them - in the expose-event in a more intelligent manner. - -M src/CheckerboardLayout.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala - -commit 2e199da23eeee9f3dfcedb3ea01efee37ee11baa -Author: Allison Barlow -Date: Fri Mar 19 21:54:53 2010 +0000 - - #1542 remember zoom level - -M misc/shotwell.schemas -M src/CollectionPage.vala -M src/Config.vala -M src/LibraryWindow.vala - -commit 9b9c6924e8d17cc3827602245bea0032408f002a -Author: Lucas Beeler -Date: Fri Mar 19 20:24:48 2010 +0000 - - Added Ukrainian translation ; updated Makefile to include language - code UK in SUPPORTED_LANGUAGES ; added translator's name to the - THANKS file. - -M Makefile -M THANKS -A po/uk.po - -commit 83bf7af0b7505533195208eade5a098da54f2304 -Author: Lucas Beeler -Date: Fri Mar 19 20:13:36 2010 +0000 - - Updated Russian translation. - -M po/ru.po - -commit a531b7d10dbabcb80d2c68cb846e39ae2830e770 -Author: Lucas Beeler -Date: Fri Mar 19 19:03:30 2010 +0000 - - Updated Hungarian translation. - -M po/hu.po - -commit e6d35454a7a8dcb59b2134f3617ee165138d5c36 -Author: Adam Dingle -Date: Thu Mar 18 18:37:06 2010 +0000 - - Fixed #1599 (inconsistent version numbers in debian/control). - -M debian/control - -commit e8b6640d7c020d044fb20442a6602487232ee413 -Merge: b9270b3d d9b9e584 -Author: Lucas Beeler -Date: Wed Mar 17 23:11:47 2010 +0000 - - Merged PO file changes, Makefile dependency corrections, and Windows - install bug fixes from the 0.5 branch into trunk. - -commit d9b9e58473e966d854b8814465e8d5f3dcdef208 -Author: Lucas Beeler -Date: Wed Mar 17 22:52:12 2010 +0000 - - Added English (Great Britain & Northern Ireland) translation ; - modified Makefile to add en_GB to SUPPORTED_LANGUAGES ; added - translators name to THANKS file. - -M Makefile -M THANKS -A po/en_GB.po - -commit 4922bf6355bed7133f719676602f6a8a0f9722b5 -Author: Lucas Beeler -Date: Wed Mar 17 22:36:24 2010 +0000 - - Updated Swedish translation. - -M po/sv.po - -commit 9c64fad4086b931c9c8c9dfdd0b5589c830cdf4c -Author: Lucas Beeler -Date: Wed Mar 17 22:30:16 2010 +0000 - - Added Hungarian PO file mistakenly omitted from last commit; updated - THANKS file to acknowledge name of translator. - -M THANKS -A po/hu.po - -commit 49f48c18ea826d963f3b017fc0efc0e061bf13e0 -Author: Lucas Beeler -Date: Wed Mar 17 22:28:11 2010 +0000 - - Updated PO and POT file version string to "shotwell-0.5.1+branch" - ; added Hungarian translation. - -M Makefile -M po/bg.po -M po/bn.po -M po/da.po -M po/de.po -M po/el.po -M po/es.po -M po/et.po -M po/fr.po -M po/it.po -M po/lv.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ru.po -M po/shotwell.pot -M po/sk.po -M po/sv.po -M po/zh_CN.po - -commit 7f6f72fb4d3017198f89ae656e76242eb62327d2 -Author: Adam Dingle -Date: Tue Mar 16 20:55:24 2010 +0000 - - Changed the version number in winstall.iss to 0.5.1 ; this updates - the Shotwell 0.5.1 release image. - -M windows/winstall.iss - -commit d15a303e2d9b7cefa5bce9b521442559b0b507c4 -Author: Lucas Beeler -Date: Tue Mar 16 20:32:52 2010 +0000 - - Updated the README file to correct an outdated URL; this updates - the 0.5.1 release image. - -M README - -commit 636769b286da3b4590c9c16b71e8e8454a75320f -Author: Lucas Beeler -Date: Tue Mar 16 20:16:49 2010 +0000 - - This is the Shotwell 0.5.1 release image. Note that Shotwell 0.5.1 - is a minor, Windows-only release that fixes a broken installer - on Windows. - -M Makefile -M po/bg.po -M po/bn.po -M po/da.po -M po/de.po -M po/el.po -M po/es.po -M po/et.po -M po/fr.po -M po/it.po -M po/lv.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ru.po -M po/shotwell.pot -M po/sk.po -M po/sv.po -M po/zh_CN.po - -commit 2909d55bf5ebea1169dafd02785a45cebe14c4a9 -Author: Adam Dingle -Date: Mon Mar 15 21:41:58 2010 +0000 - - Backing off version number to 0.5.0+branch until final release. - -M Makefile -M windows/winstall.iss - -commit a0682a5bdcec0bed015862e131ff5b800756734b -Author: Adam Dingle -Date: Mon Mar 15 21:37:47 2010 +0000 - - Fixed Windows installer; updated version number to 0.5.1. - -M Makefile -M windows/install-deps -M windows/winstall.iss - -commit b9270b3d5e5af4a1e85487d63b7c498cb64fd496 -Author: Adam Dingle -Date: Mon Mar 15 20:57:28 2010 +0000 - - Back to GTK 2.18.1. - -M windows/install-deps - -commit 816f7e4558fe58625033aceb5c9eb0a6d588750a -Author: Adam Dingle -Date: Mon Mar 15 18:21:32 2010 +0000 - - Fall back to GTK 2.16.6 on Windows. - -M windows/install-deps - -commit 3b92a396f76089418761aee5431462bffe36bf56 -Author: Allison Barlow -Date: Mon Mar 15 16:57:50 2010 +0000 - - fixes 3 mnemonic tickets and updates version to +trunk (#1514, - #1515, #1516) - -M Makefile -M src/CollectionPage.vala -M src/PhotoPage.vala -M src/Resources.vala -M windows/winstall.iss - -commit 39d0bd8a2ac178cecd283c1d038b7229986b4d6c -Author: Lucas Beeler -Date: Fri Mar 12 22:19:53 2010 +0000 - - Opening branch for the Shotwell 0.5.x release stream. - -commit 4b363ecffa72bfd276413f496983eb3b6a47d59f -Author: Lucas Beeler -Date: Fri Mar 12 22:15:48 2010 +0000 - - Updated rules and changelog files to strip symbols in lauchpad builds; - closes #1349. - -M debian/changelog -M debian/rules - -commit 7fb6e212e8147950260ab455c7a17bdd2a7f6c1b -Author: Lucas Beeler -Date: Fri Mar 12 21:33:51 2010 +0000 - - This revision is the 0.5.0 release image. - -M Makefile -M NEWS -M debian/changelog -M debian/control -M po/de.po -M po/el.po -M po/es.po -M po/et.po -M po/it.po -M po/lv.po -M po/pa.po -M po/ru.po -M po/sk.po -M po/sv.po -M windows/winstall.iss - -commit 19052da6b39fc8e23a50aaa27def67bc3e8a4a46 -Author: Lucas Beeler -Date: Fri Mar 12 02:49:09 2010 +0000 - - Updated Makefile to add dbus-glib dependency. - -M Makefile - -commit c18931e06d631577510a7466fb3448736dcb9170 -Author: Lucas Beeler -Date: Thu Mar 11 19:39:56 2010 +0000 - - Added X-Poedit-Language metadata fields to po files that were - lacking theme. - -M po/bn.po -M po/da.po -M po/de.po -M po/el.po -M po/fr.po -M po/it.po -M po/lv.po -M po/nl.po -M po/pa.po -M po/pl.po -M po/pt.po -M po/ru.po -M po/sk.po -M po/sv.po - -commit 32ea5a77a11b9cf717ecd6432c3747df4c4726b6 -Author: Jim Nelson -Date: Thu Mar 11 19:28:07 2010 +0000 - - #1485: Fixes it so current photo in full-window mode is always - selected when returning to the Photos page. Also - fixes a separate bug (reported in the same ticket) where the photo - is not selected if no navigation occurs in - full-window mode. - -M src/Page.vala -M src/PhotoPage.vala - -commit c1c0676bde6046bd146243ed129932acd5535f07 -Author: Jim Nelson -Date: Thu Mar 11 02:33:13 2010 +0000 - - Discovered a bug where if the user resizes the window while in - full-window mode then returns to the Photos page, - the thumbnails are missing. This is due to some changes in the - flicker reducing code checked in earlier. This - fixes the problem. - -M src/CheckerboardLayout.vala - -commit 13dfd90df9772650a7d71ff73a7d25e3ea2ac058 -Author: Jim Nelson -Date: Thu Mar 11 00:32:49 2010 +0000 - - #1548: Exported files are now copied with default target permissions. - -M src/Photo.vala - -commit d6b6d9e49e2dcc7b551121d6ed717ce1e968d7ca -Author: Allison Barlow -Date: Thu Mar 11 00:31:20 2010 +0000 - - fixes #1541 give initial focus to photo collection - -M src/LibraryWindow.vala - -commit ec7964692a16a50ccf58235c78a5bd7d9e51cf0d -Author: Jim Nelson -Date: Wed Mar 10 23:39:20 2010 +0000 - - #1474: These workarounds fix a bug that is current in Vala trunk - today: - https://bugzilla.gnome.org/show_bug.cgi?id=612315 - -M src/CameraTable.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/Sidebar.vala -M src/ThumbnailCache.vala - -commit 1146433024637ff2301c34e5e354a43f0e546d2c -Author: Jim Nelson -Date: Wed Mar 10 22:50:21 2010 +0000 - - #1538/#1018/#1534: Various flicker problems in CheckerboardLayout - fixed by more aggressive batching of updates - into single queue_redraw_for_area() commands, as well as scheduling - the reflow higher in the event queue to - reduce the number of exposure events. - -M src/CheckerboardLayout.vala -M src/DataCollection.vala -M src/image_util.vala - -commit d20f3d0c07ed701c27d7b06466a7e56decd7e030 -Author: Lucas Beeler -Date: Wed Mar 10 22:32:39 2010 +0000 - - Updated Polish translation. - -M po/pl.po - -commit 87472d0ed4b388d0a9111d183668726403bf1b03 -Author: Lucas Beeler -Date: Wed Mar 10 22:26:18 2010 +0000 - - Updated Bengali translation. - -M po/bn.po - -commit 52bc711a2d64c45bf169edb8344f3700445fbd70 -Author: Lucas Beeler -Date: Wed Mar 10 22:11:08 2010 +0000 - - Updated Dutch translation. - -M po/nl.po - -commit 4d95d3d76f54467a58a5ac6ea40628540e86a0ba -Author: Lucas Beeler -Date: Wed Mar 10 22:01:07 2010 +0000 - - Updated Danish translation. - -M po/da.po - -commit 39a8f548cca9425fb22f994e0be93556982c0d01 -Author: Lucas Beeler -Date: Wed Mar 10 21:22:00 2010 +0000 - - Updated Italian translation. - -M po/it.po - -commit 1228de1bc28e7fda0287394306eae84f5c80f5b9 -Author: Lucas Beeler -Date: Wed Mar 10 21:02:34 2010 +0000 - - Updated Simplified Chinese (Mainland China/PRC dialect translation). - -M po/zh_CN.po - -commit 35ab6513a8c1560ac42c2287a30b377e6c081abd -Author: Lucas Beeler -Date: Wed Mar 10 02:34:52 2010 +0000 - - Updated Bulgarian translation. - -M po/bg.po - -commit 100e6ec4f4ba72cf96d0fba101d72b8b46dca579 -Author: Lucas Beeler -Date: Wed Mar 10 02:27:34 2010 +0000 - - Updated Portuguese translation. - -M po/pt.po - -commit 78074c2934ae9b15dafbf7f5d061455730ba09df -Author: Lucas Beeler -Date: Wed Mar 10 02:20:26 2010 +0000 - - Updated French translation; note that French translation now carries - version 0.5.0. - -M po/fr.po - -commit 188143c2f6feab6daecbcadac7c6d26d2bc32055 -Author: Jim Nelson -Date: Wed Mar 10 00:35:35 2010 +0000 - - #1525: Improved log message displayed when creating database. - -M src/DatabaseTables.vala - -commit 906d3eef59cf33f45c094b3309e18df3fd64ae91 -Author: Jim Nelson -Date: Wed Mar 10 00:23:46 2010 +0000 - - #1539: The reason the photos triggered a false positive in the dupe - detection code is that they have no - thumbnail but the exact same EXIF. Now dupe detection requires that - both EXIF and the thumbnail are present, - otherwise a full content comparision will be performed. - -M src/BatchImport.vala -M src/DatabaseTables.vala -M src/ImportPage.vala - -commit 36f56549545dd0a5646380464e843be831072fe6 -Author: Jim Nelson -Date: Tue Mar 9 22:44:31 2010 +0000 - - #1519: segault on import solved. Problem relates to #1520 (also - closed in this commit). Completion callback - was being re-entered due to the thumbnail import code calling - spin_event_loop() (which is a legacy aspect of the - old-style import, which was serialized in the main event thread). - Additionally, the BatchImport object was - being derefed and freed because the Workers/BackgroundJob system - does not maintain a reference to the object - with the callbacks; this has been remedied. - -M src/BatchImport.vala -M src/PixbufCache.vala -M src/ThumbnailCache.vala -M src/Workers.vala - -commit 31149daa550f3fef7997207438bf0bbf0abd2235 -Author: Allison Barlow -Date: Tue Mar 9 22:30:29 2010 +0000 - - fixes #1521 [lucid] Set as Desktop Background fails when run a second - time, #1522 suggested wallpaper changes and #1523 unable to export - background: permission denied - -M src/Config.vala -M src/image_util.vala - -commit d2b429f0226cc62d1f40fee6f747c8ca82ff0c60 -Author: Lucas Beeler -Date: Tue Mar 9 22:05:24 2010 +0000 - - Places Welcome dialog in the native Dialog position used by the - window manager; closes #1537. - -M src/Dialogs.vala - -commit 65d4e1ffaba03870dc7ddfb8c4ed3b4fc07351b8 -Author: Lucas Beeler -Date: Tue Mar 9 20:54:03 2010 +0000 - - Resolves progress dialog positioning issues; closes ticket #1051. - -M src/Dialogs.vala - -commit 5ce36a321b9ae0fb1d2ac72d2147e8c0e358e5ce -Author: Allison Barlow -Date: Tue Mar 9 19:20:47 2010 +0000 - - fixes #1492 assertion failure when exporting to Computer folder and - #1497 import from Trash hangs - -M src/BatchImport.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Page.vala - -commit 6b0dd7498effa2e392d7a1737585427bbbc92d66 -Author: Lucas Beeler -Date: Tue Mar 9 02:20:09 2010 +0000 - - Fixes Facebook ampersand encoding problem; closes #1531. - -M src/WebConnectors.vala - -commit 3aacbb959d1175e21c73d6f24a18cf8a1494a602 -Author: Lucas Beeler -Date: Tue Mar 9 00:41:13 2010 +0000 - - Disallows publishing to Picasa Web Albums when the user enters a - new album name that is solely whitespace (resolves #1526); HTML - entity encodes the characters '&', '>' and '<' when the user uses - them in the name of a new album when publishing to Picasa Web Albums - (resolves #1528). - -M src/PicasaConnector.vala -M src/WebConnectors.vala - -commit 1ec3930adc59822aaf1bf50e5519f4e4ab6c2144 -Author: Jim Nelson -Date: Tue Mar 9 00:09:42 2010 +0000 - - #1518: Duplicate after hide results in assertion fixed; problem due - to order of notifications being propagated - (subclasses of DataCollection needed to integrate the duplicated - objects in their data structures before the - objects themselves began performing operations). - -M src/DataCollection.vala -M src/DataObject.vala - -commit 5e8eda2406ec2aea632dffb22048764f74dad798 -Author: Jim Nelson -Date: Mon Mar 8 22:14:06 2010 +0000 - - #1517: Fixes Modify Tags command segfaulting if the photo has no tags. - -M src/Commands.vala - -commit bf0a6e91dd15906be1666f3c62bebfd6b9bc2e61 -Author: Allison Barlow -Date: Mon Mar 8 20:28:17 2010 +0000 - - #1496 (event is not visible in sidebar after time change) - -M src/LibraryWindow.vala - -commit f583af811f4e364d0d10d074c534326bd8ae88ec -Author: Lucas Beeler -Date: Mon Mar 8 20:19:26 2010 +0000 - - Improves the layout of the "Image Settings" pane in the Print dialog; - closes ticket #1476. - -M src/Printing.vala - -commit 3c2977a58d143e22e1edaf532c7f81cf67783971 -Author: Allison Barlow -Date: Mon Mar 8 19:01:21 2010 +0000 - - fixes #1510 don't show time adjustment options in direct edit - -M src/Dialogs.vala - -commit 6ee4708a5bbc6b0d90793592ff9822a9537e572d -Author: Jim Nelson -Date: Sat Mar 6 02:41:05 2010 +0000 - - #1513: Fixes moving photo from one event to another segfaulting. - -M src/CheckerboardLayout.vala -M src/DataCollection.vala -M src/DataObject.vala - -commit 45ec6d9b4c78f950f16868c77c2d317c6367be60 -Author: Jim Nelson -Date: Sat Mar 6 01:50:08 2010 +0000 - - #1504/#1505: Fixed drag-and-drop in full-window mode. - -M src/Page.vala -M src/PhotoPage.vala - -commit af5ec28f5e7ec80815421fb853a7d11f39e07abd -Author: Jim Nelson -Date: Sat Mar 6 00:34:03 2010 +0000 - - #1484: Using rounded corners instead of curved rectangles for - EventDirectoryPage. - -M src/image_util.vala - -commit ebbdd2c5f07d449ebacdd59972dcbce44e80a231 -Author: Lucas Beeler -Date: Sat Mar 6 00:16:59 2010 +0000 - - Removed nocona optimizations. - -M Makefile - -commit 24d64df74a2351d19c43c3114a8ed1873afeaed7 -Author: Allison Barlow -Date: Fri Mar 5 18:51:48 2010 +0000 - - fortgot to remove a printf before commit - -M src/ImportPage.vala - -commit 1649822b5adcbd5787c55b17a058c92eac35e4e9 -Author: Allison Barlow -Date: Fri Mar 5 18:47:37 2010 +0000 - - fixes #1507 Warning message about PrintPlaceholder in full-window mode - and #1509 Apply button should be called OK in Crop and Adjust windows - -M src/EditingTools.vala -M src/ImportPage.vala -M src/PhotoPage.vala - -commit 5de577974fcd9a22c086e3ebe90692c19f8b3eac -Author: Jim Nelson -Date: Fri Mar 5 18:10:22 2010 +0000 - - #1118: Further work to improve startup time. - -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/Thumbnail.vala -M src/util.vala - -commit e51c6fc0e8b4399bdb17a4d3365e670c1caf1365 -Author: Lucas Beeler -Date: Fri Mar 5 03:05:44 2010 +0000 - - Updated POT file; this is the Shotwell 0.5.0 release string-freeze - POT file. - -M po/shotwell.pot - -commit 9276c0310aa6d3684a6a2954d7747a8cf2a201a9 -Author: Lucas Beeler -Date: Fri Mar 5 02:29:35 2010 +0000 - - Updated Danish translation. - -M po/da.po - -commit e152c95db29c8d799297c519672d73a9a3b8cd0a -Author: Lucas Beeler -Date: Fri Mar 5 02:21:55 2010 +0000 - - Modified the Makefile and the .desktop files to enable translation - of desktop file entries through the normal PO/POT mechanism; updated - French translation to test this functionality. - -M Makefile -R076 misc/shotwell-viewer.desktop misc/shotwell-viewer.desktop.head -R088 misc/shotwell.desktop misc/shotwell.desktop.head -M po/fr.po - -commit fae9650a3c30a59297cfb32c0b2ee698af2d4f12 -Author: Jim Nelson -Date: Fri Mar 5 01:07:04 2010 +0000 - - #1481: Missed one. (Two, actually.) - -M src/BatchImport.vala -M src/ImportPage.vala - -commit ccbf20820621a80f77df12f07f2889a324068059 -Author: Jim Nelson -Date: Fri Mar 5 00:02:55 2010 +0000 - - #1481/#1482/#1483: Fixes a multitude of problems exposed by glib-2.23 - due to this bug in valac: - https://bugzilla.gnome.org/show_bug.cgi?id=611845 We must ensure - that all objects passed by signals inherit - from Object until this bug is fixed. - -M src/BatchImport.vala -M src/CameraTable.vala -M src/DataObject.vala -M src/PicasaConnector.vala - -commit e99525138dd6f24d9fd0de896aeea689b424ca6c -Author: Lucas Beeler -Date: Thu Mar 4 19:54:27 2010 +0000 - - The commit Implements asynchronous publishing across all supported - web services. It also closes the following tickets: #1135, #1138, - #1139, #1316, #1347, #1370, #1477, #1149. - -M src/CollectionPage.vala -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/PhotoPage.vala -M src/PicasaConnector.vala -M src/WebConnectors.vala - -commit 762184f88b20b33e337ad82587adcd5bacc0e639 -Author: Lucas Beeler -Date: Thu Mar 4 03:50:36 2010 +0000 - - Updated Italian translation. - -M po/it.po - -commit bc6b0ebaecb9264e37f62d6ef835c2306ed4f366 -Author: Lucas Beeler -Date: Thu Mar 4 03:40:35 2010 +0000 - - Updated German translation. - -M po/de.po - -commit 02586625ec1d3f74c13834a55b4db09b7f4db131 -Author: Lucas Beeler -Date: Thu Mar 4 03:24:09 2010 +0000 - - Updated Estonian translation. - -M po/et.po - -commit 3caef9e2de311d90f2bf4b52a503c5bd0762f2b5 -Author: Lucas Beeler -Date: Thu Mar 4 03:13:56 2010 +0000 - - Updated Chinese (Mainland China/PRC dialect) and Polish translations. - -M po/pl.po -M po/zh_CN.po - -commit 83aa6fc2a47e06fa7c7e2e004f4a7c8845dfd07e -Author: Lucas Beeler -Date: Thu Mar 4 01:17:41 2010 +0000 - - Updated Bulgarian translation. - -M po/bg.po - -commit 5ded5dc919613019ff8cade82defb465ff58b0c2 -Author: Allison Barlow -Date: Wed Mar 3 23:50:14 2010 +0000 - - fixes #1500 single photo page to sidebar drag - -M src/LibraryWindow.vala -M src/util.vala - -commit 931971559c8c667c6003c09ebb057e4dd9416ac8 -Author: Allison Barlow -Date: Wed Mar 3 23:49:03 2010 +0000 - - fixes #1501 debug build crashes on startup - -M src/AppWindow.vala -M src/Resources.vala -M src/main.vala - -commit 44f2b51b7f81a2482567c808eb15279d078c6c43 -Author: Allison Barlow -Date: Wed Mar 3 23:43:00 2010 +0000 - - fixes two multi-monitor related bugs: #1461 External monitor - fullscreen toolbar misplaced and #1468 fullscreen view is not on - correct monitor - -M src/AppWindow.vala - -commit 7f6397cbe2fc5e2e0e9dd7082bd888cbfa6bd19c -Author: Allison Barlow -Date: Wed Mar 3 23:37:48 2010 +0000 - - updates man page per #1376 - -M debian/shotwell.1 - -commit 39c65dde90281cd09ea5952296ac8a880d850bfc -Author: Allison Barlow -Date: Wed Mar 3 19:54:50 2010 +0000 - - fixes tickets #1495 [strings] progress windows should conform to - interface guidelines and #1491 [strings] offer to Replace All in - export dialog - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/Commands.vala -M src/Dialogs.vala -M src/main.vala - -commit f5c6dbaa3891e7e8a65bcdf66a9eab5d8af8d642 -Author: Jim Nelson -Date: Wed Mar 3 01:46:55 2010 +0000 - - Fix for multiple trinkets from Martin Robinson. - -M THANKS -M src/CheckerboardLayout.vala - -commit 0595475f63a6199597eb84ce19dc88be37283694 -Author: Allison Barlow -Date: Tue Mar 2 19:38:48 2010 +0000 - - fixes three yes/no tickets: #1490, #1493, and #1494 - -M src/AppWindow.vala -M src/Dialogs.vala -M src/PhotoPage.vala -M src/TagPage.vala - -commit 1e8e3f0730fe07652359afbdb78fb27399832863 -Author: Allison Barlow -Date: Tue Mar 2 01:48:00 2010 +0000 - - fixes #1472 [strings] Modify Original -> Modify original (files) - and #1475 [strings] inconsistent capitalization - -M src/CollectionPage.vala -M src/Dialogs.vala -M src/PhotoPage.vala -M src/Resources.vala - -commit 71e793c1142c7e3bcbb92271be95648d973e7640 -Author: Allison Barlow -Date: Tue Mar 2 01:23:12 2010 +0000 - - fixes #1469 fullscreen segfault, #1470 remove New Event from context - menu#1471 duplicate mnemonic in Photos menu. - -M src/CollectionPage.vala -M src/Page.vala -M src/PhotoPage.vala -M ui/collection.ui - -commit c7c0317cdd61b11a72bf74cc0e8ff4e57dedba27 -Author: Jim Nelson -Date: Tue Mar 2 01:08:32 2010 +0000 - - #1417: Fixes problem of dragging hundreds of photos by using XDS - instead of standard GTK drag-and-drop when - dealing with Nautilus. Because of this change, photo export is - remarkably simpler. Also, refactored the DnD - export code out to a separate class, and the batch export code to - a separate function. Also, a case where - dropping 5000 photos onto a tag being excessively slow is fixed. - -M src/AppWindow.vala -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/Commands.vala -M src/DataCollection.vala -M src/Dialogs.vala -M src/Dimensions.vala -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/PicasaConnector.vala -M src/Tag.vala -M src/Thumbnail.vala -M src/image_util.vala -M src/util.vala - -commit 9201324a806744f54afdd05b1748aa8f221d82e9 -Author: Allison Barlow -Date: Mon Mar 1 23:01:29 2010 +0000 - - fixes #1084 don't report import errors for non-image files and #1409 - Help->Contents should go to UsingShotwell0.5 - -M src/BatchImport.vala -M src/Dialogs.vala -M src/Photo.vala -M src/Resources.vala - -commit 28de7ae0a8ed91651eb64332e97725e6ff66b37c -Author: Allison Barlow -Date: Fri Feb 26 19:26:27 2010 +0000 - - fixes #1315 direct edit printing - -M src/Config.vala -M src/PhotoPage.vala -M ui/direct.ui - -commit 1ce6db2c61a3a3fa9a212ebf42e96ea3ce9846ef -Author: Allison Barlow -Date: Fri Feb 26 01:53:03 2010 +0000 - - fixes #1405 [windows] don't display Set as Desktop Background - -M Makefile -M src/CollectionPage.vala -M src/PhotoPage.vala -M src/image_util.vala -M ui/collection.ui -M ui/photo.ui - -commit dd9e4459ca837493bc898682c188e4dbbfc5c7b2 -Author: Allison Barlow -Date: Thu Feb 25 21:56:56 2010 +0000 - - fixes #1379 and cleans up Photo.update() - -M src/Photo.vala -M src/PhotoPage.vala - -commit d43928bf9fdd976f2e7f868a37e4676ac0cf6857 -Author: Adam Dingle -Date: Thu Feb 25 19:13:40 2010 +0000 - - #1425: GValue warning fixed. - -M src/GConf.vala - -commit c088ff9a06463697dd8332b076550ecaf63d597a -Author: Adam Dingle -Date: Thu Feb 25 18:46:03 2010 +0000 - - Implemented #1314 (disable printing on Windows). - -M Makefile -M src/CollectionPage.vala -M src/PhotoPage.vala -M src/Printing.vala -M ui/collection.ui -M ui/photo.ui - -commit 61cf40c9632a4a2576bb94fb955e54d9932bf44f -Author: Allison Barlow -Date: Thu Feb 25 18:24:54 2010 +0000 - - fixes #1428 use typographic right arrow in welcome dialog - -M src/Dialogs.vala - -commit f6a1b5b8a81f8ece91a3a6e1074cafb15821f995 -Author: Adam Dingle -Date: Thu Feb 25 13:42:19 2010 +0000 - - Use GTK 2.18.1 on Windows; it was the last binary version built - without GTK+. - -M windows/install-deps - -commit 0bba560aaff9b4cba881785939d390dcc646fe4f -Author: Lucas Beeler -Date: Thu Feb 25 06:18:38 2010 +0000 - - Updated the POT file. - -M po/shotwell.pot - -commit 3c920c523cdfbbeafc0fe1f13cc9cafe315ee991 -Author: Lucas Beeler -Date: Thu Feb 25 05:50:50 2010 +0000 - - Changed three characters in one string in the Welcome dialog: - replaced three raw bullet characters ("•") with their corresponding - HTML character entity codes ("•" -- correctly interpreted - by Pango). This was necessary because the bullet character is a - Unicode character outside of the basic ASCII plane, and the GNU - gettext tools don't support strings containing characters outside - of the basic ASCII plane as inputs for translation. - -M src/Dialogs.vala - -commit 611f4b213adfe6ca42af226210700b3aacb7104d -Author: Lucas Beeler -Date: Thu Feb 25 05:37:00 2010 +0000 - - Replaced one character in one string: in the Welcome dialog, I - replaced a typographic right arrow ("▸") with a right angle bracket - (">"). This was necessary because the typographic right arrow is - a Unicode character outside of the basic ASCII plane and xgettext - doesn't support translation input strings that contain characters - outside of the basic ASCII plane. - -M src/Dialogs.vala - -commit 9eff919ccb6d954d0c7d3e220566ddd4b6b5ac4e -Author: Lucas Beeler -Date: Thu Feb 25 05:07:17 2010 +0000 - - Normalized copyright dates and version numbers (version == - shotwell-0.4.3+trunk) across all language files. - -M po/bg.po -M po/bn.po -M po/da.po -M po/de.po -M po/el.po -M po/es.po -M po/et.po -M po/fr.po -M po/it.po -M po/lv.po -M po/nl.po -M po/pl.po -M po/pt.po -M po/sk.po -M po/sv.po -M po/zh_CN.po - -commit 980ece0de749d64a9a940904651641b76cc16d93 -Author: Lucas Beeler -Date: Thu Feb 25 04:55:28 2010 +0000 - - Added Punjabi translation; updated Makefile to add ISO language code - PA to SUPPORTED_LANGUAGES; added translator's name to THANKS file. - -M Makefile -M THANKS -A po/pa.po - -commit 6ed2bc19a1ef0dcad4540e6b699d486511fb8169 -Author: Lucas Beeler -Date: Thu Feb 25 04:49:17 2010 +0000 - - Added Russian translation; updated Makefile to add ISO language - code RU to SUPPORTED_LANGUAGES list; added translator's name to - THANKS file. - -M Makefile -M THANKS -A po/ru.po - -commit 98b334b4801b120dc3bf214b4846b2cccd78d058 -Author: Lucas Beeler -Date: Thu Feb 25 04:42:05 2010 +0000 - - Added Greek translation; updated Makefile to add ISO language code - EL to SUPPORTED_LANGUAGES list; added translators name to THANKS file. - -M Makefile -M THANKS -A po/el.po - -commit 41cbf62fee1782bdd3ca3fcfa5995f2eff0b00fd -Author: Lucas Beeler -Date: Thu Feb 25 04:26:54 2010 +0000 - - Updated Chinese (Mainland China/PRC dialect) translation. - -M po/zh_CN.po - -commit 4e3a5cc5e76ef01c2be901c734711dd75e2bdf13 -Author: Jim Nelson -Date: Thu Feb 25 02:38:08 2010 +0000 - - #1413: If no tag in a row of photos, empty space is not consumed - (but bottom-alignment remains). - -M src/CheckerboardLayout.vala -M src/Thumbnail.vala - -commit f14e70fad09b8477e10c3aff6dcc5fd9cab6fc83 -Author: Allison Barlow -Date: Thu Feb 25 00:12:00 2010 +0000 - - adds feature #438 welcome screen for new users - -M misc/shotwell.schemas -M src/Config.vala -M src/Dialogs.vala -M src/main.vala - -commit 429cd95918d75e7d8dd3b586f4d364d582a233c7 -Author: Rob Powell -Date: Wed Feb 24 19:43:53 2010 +0000 - - Not an error if the theme file is missing. Force update even if - cache may - be up-to-date. - -M Makefile - -commit a269cb5c5d68294583e576f87014a133e8078c6e -Author: Jim Nelson -Date: Wed Feb 24 18:07:05 2010 +0000 - - #1412: Tags branch in sidebar now expanded at startup. #1360: Set - Tag (now Modify Tags) no longer leaves the selection cursor on the - tag although not viewing it. #1348: Likewise, tag drag-and-drop - doesn't leave the cursor on the tag. - -M src/LibraryWindow.vala -M src/Sidebar.vala - -commit 88a9634d52c36e83599838811336a0b0ad062d1a -Author: Jim Nelson -Date: Wed Feb 24 17:47:16 2010 +0000 - - #1419: Pluralization trouble. - -M src/Dialogs.vala - -commit 92afbd915a2fb487bbf33c42ba5c176982469c0d -Author: Allison Barlow -Date: Wed Feb 24 00:49:53 2010 +0000 - - #1313 Keep relativity in adjust date/time dialog was unclear, - so we added a radio buttons for each option: batch change and - relative shift. - -M src/Dialogs.vala - -commit 39aea52e77044089b4622baff60747cd2db51db4 -Author: Jim Nelson -Date: Tue Feb 23 22:28:48 2010 +0000 - - #1416: Oops. Needed to call virtual method before using context - menu object. - -M src/Page.vala - -commit a035795297aee5f231bc8cb9d7442cab6f8cae57 -Author: Jim Nelson -Date: Tue Feb 23 22:20:16 2010 +0000 - - #1090: Display Basic Information and View Tags default to true, - but GConf doesn't throw an error when a key is - missing, so our defaults are not used. - -M misc/shotwell.schemas -M src/Config.vala -M src/GConf.vala - -commit f10d72f667373be2758bc62104953cbbeff66ad0 -Author: Allison Barlow -Date: Tue Feb 23 21:54:59 2010 +0000 - - #1341 was mostly fixed as fallout of other fixes, but this fixes - the last remaining case - -M src/Photo.vala - -commit 0bdabb7b9fce5877e2439d5eaf508cf5dfe94613 -Author: Jim Nelson -Date: Tue Feb 23 21:41:00 2010 +0000 - - #1414: Adjust zoom via keypad +/- keys. - -M src/CollectionPage.vala - -commit c070658e2f5f59a9257debae42d02ff6a988656c -Author: Allison Barlow -Date: Tue Feb 23 20:09:44 2010 +0000 - - #1371 dragging to sidebar shouldn't offer insertion between rows - -M src/Sidebar.vala - -commit e76094af1aa931934124c0a02eb25aaac11b2879 -Author: Jim Nelson -Date: Tue Feb 23 03:38:12 2010 +0000 - - Design feature, per pRob. - -M Makefile - -commit d340cbc6d31089e0141f2e37d491d563170e3508 -Author: Jim Nelson -Date: Tue Feb 23 03:30:15 2010 +0000 - - #1233: Fixed SD card support. Needed to tell udev what subsystem - to monitor for SD support ("block"). - -M src/CameraTable.vala - -commit 8ae6ad1c3f2f9b5e66c70836fc960fcd8285c094 -Author: Jim Nelson -Date: Tue Feb 23 01:26:37 2010 +0000 - - #1400: Selection frame now drawn around the thumbnail image only, - with the title and tag text merely changing to - the selection color. - -M src/CheckerboardLayout.vala - -commit 5a3549881dd590ad52e922ce3f8ec3fc82875788 -Author: Jim Nelson -Date: Tue Feb 23 01:13:37 2010 +0000 - - #595: Move delete files to desktop trash can. I've implemented this - ahead of the trash can changes because I - realized there were some string changes required and wanted to get - them in ASAP. - -M src/CollectionPage.vala -M src/Dialogs.vala -M src/Photo.vala -M src/PhotoPage.vala - -commit fa2eb19685da8e32146f619601ecfc0ec0187bbb -Author: Jim Nelson -Date: Tue Feb 23 00:49:04 2010 +0000 - - #1357: Replace New Tag with Add Tags... Also, renamed Set Tags... to - Modify Tags... - -M src/CollectionPage.vala -M src/Commands.vala -M src/Dialogs.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala -M src/Resources.vala -M ui/collection.ui - -commit 457174f49c12ce056efb1cbcdfd631bed8ad2647 -Author: Jim Nelson -Date: Mon Feb 22 19:28:01 2010 +0000 - - #1378: Exif.alloc_entry fixed. libexif appears to *never* set the - Exif.Data data_type (i.e. data arrangement) - field, so this must be done every time. Fixed in PhotoExif. - -M src/Exif.vala -M vapi/libexif.vapi - -commit 6baf51c153d25f85bf7d979c3b1b9d13c395559c -Author: Jim Nelson -Date: Sat Feb 20 02:26:23 2010 +0000 - - #1158: File -> Publish in full-window mode - -M src/CollectionPage.vala -M src/PhotoPage.vala -M src/Resources.vala -M ui/photo.ui - -commit 4a7243b7fb7e7c68e93160af99a6e75c31c3b5d3 -Author: Jim Nelson -Date: Sat Feb 20 02:00:08 2010 +0000 - - #1345: Local GTK bindings no longer necessary (fixed in 0.7.10). - -D vapi/gtk+-2.0.vapi - -commit 5f4bd6be0799fe695583688d4d561c54f7a7c0c6 -Author: Jim Nelson -Date: Sat Feb 20 01:32:25 2010 +0000 - - #1377: Fixed mouse selecting problem. - -M src/Page.vala - -commit 9e117d01214d06fd9849add90e67c821a299204e -Author: Jim Nelson -Date: Fri Feb 19 23:42:39 2010 +0000 - - #1374: Fixed problem with New Tags command and redoing and undone - command. - -M src/Commands.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Tag.vala -M src/Thumbnail.vala - -commit e5c8927c72f6af967f9f8ce3820cef36547ad569 -Author: Jim Nelson -Date: Fri Feb 19 19:29:46 2010 +0000 - - #1373: "Remove Tag from Photos" -> "Remove Tag From Photos". #1372: - Better input validation with New Tag and Rename Tag. - -M src/AppWindow.vala -M src/Dialogs.vala -M src/Resources.vala -M src/Tag.vala - -commit 7fad15e1fee023874d8669eee2a7afa9fe086cd8 -Author: Jim Nelson -Date: Fri Feb 19 02:06:48 2010 +0000 - - Added tooltips to checkerboard page, works for photo name and tags - (but especially useful for tags). - -M src/CheckerboardLayout.vala -M src/PhotoPage.vala -M src/image_util.vala -M src/util.vala - -commit 575199cc4e77c4cd814a41896adf2aabae93c7cd -Author: Jim Nelson -Date: Fri Feb 19 01:31:27 2010 +0000 - - #1369: Rename tag followed by delete tag yielded an assert. Map of - names -> Tags was kept but did not monitor - renames, hence the problem. - -M src/Tag.vala - -commit faad38c07c1473ebbf284323cfe186de94e85774 -Author: Jim Nelson -Date: Fri Feb 19 01:04:16 2010 +0000 - - #1366: Fatal error when renaming tag to name of existing tag resolved. - -M src/Commands.vala -M src/Dialogs.vala -M src/Resources.vala -M src/Tag.vala -M src/TagPage.vala - -commit f4b7ec57e593ee294f047cafdb904d5e55f35f1d -Author: Jim Nelson -Date: Fri Feb 19 00:47:28 2010 +0000 - - #1368: Fixed refreshing thumbnail tag list when tags renamed or - destroyed. - -M src/Tag.vala -M src/Thumbnail.vala - -commit 95e9079dd0f67d61579c4f002830aa6884c4f86f -Author: Jim Nelson -Date: Fri Feb 19 00:12:14 2010 +0000 - - Slideshow was never ported to the new PixbufCache (which uses - background threads), and continued to use the Idle - queue to load the next pixbuf. This remedies this situation. - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/DataCollection.vala -M src/PhotoPage.vala -M src/PixbufCache.vala -M src/SlideshowPage.vala - -commit f39e113fe1f1b9ef28d6f314c6b602a2aa2bffd6 -Author: Allison Barlow -Date: Thu Feb 18 22:34:05 2010 +0000 - - fixes #882 synchronize selection between views - -M src/Page.vala -M src/PhotoPage.vala - -commit 3a366a61d96be7b13a9aa872faf38f97ec1730b6 -Author: Jim Nelson -Date: Thu Feb 18 22:17:38 2010 +0000 - - #1359: Tag name included in menu commands. - -M src/Commands.vala -M src/Resources.vala -M src/TagPage.vala - -commit 29f122733b4d1fdadb6072f1604802c3890bc0ae -Author: Jim Nelson -Date: Thu Feb 18 20:39:38 2010 +0000 - - #1358: Tags menu items reorganized, moving all to Tags menu. - Internationalizable plural extra credit included. - -M src/CollectionPage.vala -M src/Commands.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Resources.vala -M src/TagPage.vala -M ui/collection.ui -M ui/tags.ui - -commit 5b0dbf5b6eb18558c85fe573a454a0d3082b44f1 -Author: Jim Nelson -Date: Thu Feb 18 19:32:40 2010 +0000 - - #1356: Delete Tag now presents a confirmation dialog before - proceeding. - -M src/Resources.vala -M src/Tag.vala -M src/TagPage.vala - -commit 48cbc9a20e954a08337a5d8632253af0cb1f7e56 -Author: Jim Nelson -Date: Thu Feb 18 19:04:38 2010 +0000 - - #1355: This commit looks scarier than it really is for this ticket. - Displays each photo's tags beneath the - title, and can be toggled on and off. Changed the name of the - checkerboard item object (been meaning to do that - for some time), which is a lot of the diffs. Also added a mechanism - for setting properties on an entire - ViewCollection, which is a more centralized system than the way we - were toggling title and thumbnail size - before. - -M misc/shotwell.schemas -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/Config.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Tag.vala -M src/Thumbnail.vala -M ui/collection.ui - -commit 910828e73975b81c0bf48ac6ec2e8917f7a9e201 -Author: Lucas Beeler -Date: Wed Feb 17 23:29:03 2010 +0000 - - [internationalization] Updated POT file. - -M po/shotwell.pot - -commit 12ab65e98430da549d4dd4b64964ae4ce28f0195 -Author: Lucas Beeler -Date: Wed Feb 17 23:12:47 2010 +0000 - - Updated Spanish translation. - -M po/es.po - -commit c19ab628acd94a50c11b253f6616fa25b8592db1 -Author: Allison Barlow -Date: Wed Feb 17 23:05:27 2010 +0000 - - implements #1195 inibit screensaver while slideshow running. - This is for gnome-screensver only, and we should implement X11 and - windows-specific screensaver disables as well. - -M Makefile -A src/Screensaver.vala -M src/SlideshowPage.vala - -commit 612378501a8453c64ed42ea91d173c9c64826128 -Author: Jim Nelson -Date: Wed Feb 17 01:30:41 2010 +0000 - - #1352: Import no longer hangs when importing nothing but photos - already in library. - -M src/BatchImport.vala - -commit fe71a1bc6ee7d4776843ae42e008a5992dfeb66d -Author: Jim Nelson -Date: Mon Feb 15 23:54:13 2010 +0000 - - #1331: Photos -> Remove Tag - -M src/CollectionPage.vala -M src/Commands.vala -M src/Dialogs.vala -M src/LibraryWindow.vala -M src/Resources.vala -M src/TagPage.vala -M ui/collection.ui - -commit 97cc2a29fcb463b2e2d12115d10f3e48f580d137 -Author: Lucas Beeler -Date: Mon Feb 15 22:24:04 2010 +0000 - - Enables Publishing to Google's Picasa Web Albums service; closes - bug #667. - -M Makefile -M misc/shotwell.schemas -M src/Config.vala -M src/FlickrConnector.vala -A src/PicasaConnector.vala -M src/WebConnectors.vala - -commit db3877036de602a21465d60f91d29e33b3c8dade -Author: Allison Barlow -Date: Mon Feb 15 21:55:06 2010 +0000 - - fixes #1338 Triple-click in Extended Properties info window should - select a single line of text and #1185 Mark as favorite in single - photo view. Also implemented mark as hidden in single photo view. - -M src/Commands.vala -M src/PhotoPage.vala -M src/Properties.vala -M ui/photo.ui - -commit 93d06d92db00a5f940879dce896bba25b2e70741 -Author: Allison Barlow -Date: Mon Feb 15 21:04:04 2010 +0000 - - fixes #1350 extended properties box floats above non-shotwell windows - and #1343 Context-menu not available in direct-edit mode - -M src/PhotoPage.vala -M src/Properties.vala - -commit c3c4638b01726c08279ff04b6e3f113cbe72a041 -Author: Jim Nelson -Date: Mon Feb 15 18:43:54 2010 +0000 - - String problems. - -M src/Dialogs.vala -M src/Resources.vala - -commit a79b5fe442c0bed2c4c66d2ea001bb81d61031d8 -Author: Allison Barlow -Date: Mon Feb 15 17:51:03 2010 +0000 - - #1299 direct-edit time/date adjust - -M src/Commands.vala -M src/Dialogs.vala -M src/DirectWindow.vala -M src/Exif.vala -M src/Photo.vala -M src/PhotoPage.vala -M ui/direct.ui -M vapi/libexif.vapi - -commit 51225a8778cfef9586af714063c52763c72a93e9 -Author: Lucas Beeler -Date: Mon Feb 15 17:33:25 2010 +0000 - - Updated Chinese (Mainland China/PRC) translation. - -M po/zh_CN.po - -commit 3e72b93d0028be741727148145334a854c856755 -Author: Jim Nelson -Date: Sat Feb 13 02:54:56 2010 +0000 - - Forgot to add tags.ui to project. - -M Makefile -A ui/tags.ui - -commit ce271f1497e278c54ebf0c8193b8fa57a906fb31 -Author: Jim Nelson -Date: Sat Feb 13 02:37:40 2010 +0000 - - #1329: Drag-and-drop photos onto tag. Still some wonkiness with - the sidebar selector, which needs to be addressed. - -M src/Commands.vala -M src/LibraryWindow.vala -M src/Resources.vala -M src/Sidebar.vala -M src/Tag.vala - -commit d3b5d65e20bc09b775f22e4b0914c83a57767c47 -Author: Jim Nelson -Date: Sat Feb 13 00:44:00 2010 +0000 - - #1332: Tag -> Rename - -M src/Commands.vala -M src/DatabaseTables.vala -M src/Dialogs.vala -M src/LibraryWindow.vala -M src/Resources.vala -M src/Sidebar.vala -M src/Tag.vala -M src/TagPage.vala - -commit 245f1e6b1ca9528d18dc56eb4846163e48f0d5ad -Author: Jim Nelson -Date: Fri Feb 12 23:23:50 2010 +0000 - - #1330: Tag -> Delete - -M src/Commands.vala -M src/Resources.vala -M src/Tag.vala -M src/TagPage.vala - -commit bd5eff4a9b85a6625ee40cd90e93d66ee0476807 -Author: Jim Nelson -Date: Fri Feb 12 02:14:32 2010 +0000 - - #1328: Tag -> New. - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/Commands.vala -M src/DataCollection.vala -M src/Dialogs.vala -M src/Event.vala -M src/Resources.vala -M src/Tag.vala -M ui/collection.ui - -commit 0e280b8bb77837e058a607934fa9529b38c4857e -Author: Jim Nelson -Date: Thu Feb 11 23:24:29 2010 +0000 - - #79: Tags. This first commit sets up the plumbing for tags and - implements a basic mechanism for adding/removing - tags to a single photo. - -M Makefile -M src/AppWindow.vala -M src/CollectionPage.vala -M src/Commands.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/DatabaseTables.vala -M src/Dialogs.vala -M src/Event.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/Properties.vala -M src/Resources.vala -A src/Tag.vala -A src/TagPage.vala -M src/main.vala -M src/util.vala -M ui/collection.ui - -commit 82ad2d95690c3fd990ee5e2b6f6af79bfdb95064 -Author: Jim Nelson -Date: Thu Feb 11 03:07:45 2010 +0000 - - #1206: Stricter EXIF checking. Possibly fixes #1310, but want to - wait and get photo file from user to verify. - -M minver -M src/BatchImport.vala -M src/DatabaseTables.vala -M src/Exif.vala -M src/LibraryFiles.vala -M src/Photo.vala -M src/image_util.vala -M vapi/libexif.vapi - -commit fc5ce470bdcb63c0433cba59b4b1a83f2f4967d5 -Author: Jim Nelson -Date: Thu Feb 11 01:08:08 2010 +0000 - - Photos were not being added to database in direct-edit mode. - -M src/Photo.vala - -commit 226f9d9551e59821f1cb57b7a0c5640741bdea27 -Author: Jim Nelson -Date: Wed Feb 10 20:26:51 2010 +0000 - - #1207: Photos in import/camera view now sorted by exposure time. - -M src/DataCollection.vala -M src/ImportPage.vala - -commit 0d1c430e75e63195fcb48e238987d2c87c446ad7 -Author: Lucas Beeler -Date: Tue Feb 9 20:08:18 2010 +0000 - - Added Simplified Chinese (Mainland China/PRC dialect) translation; - added ISO language code zh_CN to SUPPORTED_LANGUAGES list in Makefile - ; added translator's name to THANKS file. - -M Makefile -M THANKS -A po/zh_CN.po - -commit e98aeae607c520d06f33d3b6ca20c9d7bf80e16b -Author: Allison Barlow -Date: Mon Feb 8 22:04:45 2010 +0000 - - fixes #1200 Support context menu key, #1204 View original photo - should check for other modifier keys, and #1311 directories listed - as unimported photos. - -M src/BatchImport.vala -M src/CollectionPage.vala -M src/EventsDirectoryPage.vala -M src/Page.vala -M src/PhotoPage.vala -M src/Sidebar.vala - -commit c318b2a08545e58b67354c616cc2288afef084b4 -Author: Allison Barlow -Date: Mon Feb 8 20:45:05 2010 +0000 - - #1327 Extended Properties text selected when window opened - -M src/Properties.vala - -commit caf25ee28b0a550efd5fd8c435a44a4d3349f823 -Author: Jim Nelson -Date: Sun Feb 7 10:41:56 2010 +0000 - - #1324: Fixes to compile under Vala 0.7.10. - -M Makefile -M src/ColorTransformation.vala -M src/EditingTools.vala -M src/LibraryWindow.vala -M src/Properties.vala -M src/WebConnectors.vala -M vapi/libexif.vapi - -commit bd59c94d01b328bc18609e9be1df048c5b67a9cd -Author: Lucas Beeler -Date: Wed Feb 3 00:30:48 2010 +0000 - - Updated Spanish translation. - -M po/es.po - -commit f123720776cfbdf74cecb16f6dc29f94ac4bb048 -Author: Lucas Beeler -Date: Wed Feb 3 00:26:02 2010 +0000 - - Updated Polish translation. - -M po/pl.po - -commit 1ce8a3250e72e1e275eecf1b6ef6ad4a3889dbcc -Author: Lucas Beeler -Date: Wed Feb 3 00:20:39 2010 +0000 - - Updated Dutch translation. - -M po/nl.po - -commit 5a68bf37f79789641d8c79131e32809384da21f0 -Author: Lucas Beeler -Date: Wed Feb 3 00:12:54 2010 +0000 - - Added Danish translation; updated Makefile to add ISO language code DA - to SUPPORTED_LANGUAGES list; added translator's name to THANKS file. - -M Makefile -M THANKS -A po/da.po - -commit 5720548ed3e285ddadf8f2710aac53875f77707e -Author: Allison Barlow -Date: Tue Feb 2 22:54:43 2010 +0000 - - fixes the following three bugs: #1186 Exposure time fraction issues, - #1164 when scanning, exclude directories beginning with a period, - and #1302 text in Remove dialog should be pluralized when appropriate - -M src/BatchImport.vala -M src/CollectionPage.vala -M src/Exif.vala - -commit a41d5b0c7766c85c204ca462af4016d523dc1485 -Author: Adam Dingle -Date: Mon Feb 1 19:17:09 2010 +0000 - - Unbroke the Windows build. - -M src/GPhoto.vala - -commit 15d4e26848aaa3f044414907a67400b44c02cfe2 -Author: Adam Dingle -Date: Mon Feb 1 18:20:08 2010 +0000 - - From Paul Novak : - - Fixed #1319 (rightward pointing mouse cursor). - -M THANKS -M src/AppWindow.vala -M src/EditingTools.vala -M src/FacebookConnector.vala -M src/FlickrConnector.vala - -commit 9c2935b5e1ab6b4be51fc7ce179644d995ca95eb -Author: Allison Barlow -Date: Thu Jan 28 19:38:20 2010 +0000 - - fixes a bug (unticketed?) where photos without any exif data at all - aren't appropriately when the exposure time is changed. - -M src/Dialogs.vala -M src/Exif.vala -M src/Photo.vala - -commit da24c2e710857251048eef93e426b94072f9c0ef -Author: Allison Barlow -Date: Thu Jan 28 19:33:16 2010 +0000 - - fixes #1312 Adjust Date and Time displays 1969 when no EXIF data - -M src/Dialogs.vala - -commit 53621ae94b381c7168f597c8481011ffcf3629e1 -Author: Jim Nelson -Date: Thu Jan 28 19:33:13 2010 +0000 - - With Allison's recent changes to updating time/date adjustment, - need to notify DataCollection observers of a - possible re-sort when this happens. - -M src/DataCollection.vala - -commit 7174f5f48a5d7bf4763caec18e67491a347b28a2 -Author: Jim Nelson -Date: Thu Jan 28 19:21:56 2010 +0000 - - While testing found a bug when resizing for 1x1 pixel image - ... Gdk.Pixbuf.scale_simple will hang if resizing a - large image (its 360x360 thumbnail) to a 1x1 image, or anything - below 5x5. Added code to enforce sane minimums - when resizing. - -M src/Dimensions.vala -M src/Photo.vala -M src/image_util.vala - -commit d42fc8078fdce70b2199d3358b0d519031af94ad -Author: Allison Barlow -Date: Thu Jan 28 18:47:24 2010 +0000 - - fixes #1119 and #1120, making property info selectable - -M src/Properties.vala - -commit b85554be32615cdfe3ad15043c3e7f413025d6b7 -Author: Jim Nelson -Date: Thu Jan 28 18:20:22 2010 +0000 - - Rolled back gudev requirement to 145 for out-of-the-box Fedora - 12 support. - -M Makefile - -commit d81a0680fa3104de9fcf6502bbb4b743504b14d1 -Author: Lucas Beeler -Date: Tue Jan 26 22:05:39 2010 +0000 - - Updated French translation. Added Dutch and Spanish translations; - updated Makefile to add ISO language codes NL and ES to - SUPPORTED_LANGUAGES list; updated THANKS file to acknowledge - translators. - -M Makefile -M THANKS -A po/es.po -M po/fr.po -A po/nl.po - -commit 2dbbf7c71100e0cd81030d76cd4439f6845f2460 -Author: Jim Nelson -Date: Tue Jan 26 03:16:09 2010 +0000 - - #531: Disable synchronizing commits in database to speed up - insert/updates time (which helps import - tremendously). Also removed the essentially unused ThumbnailCache - tables, which helps when generating - thumbnails. - -M src/DatabaseTables.vala -M src/ThumbnailCache.vala -M src/util.vala - -commit 2132f3d3222c5660d4ed1606199e2d49f51f835c -Author: Lucas Beeler -Date: Tue Jan 26 02:40:39 2010 +0000 - - Added a comment to the POT file to remove an ambiguity pointed out - in a mailing list post. - -M po/shotwell.pot - -commit efe3d09f7ac1d46f1738faf5f843a96249b959d6 -Author: Lucas Beeler -Date: Tue Jan 26 02:21:39 2010 +0000 - - Fixed two string glitches that had caused trouble for translators -- - one string was broken over two lines and so was truncated in the - POT file; the other string lacked appropriate context. Updated the - POT file accordingly. - -M po/shotwell.pot -M src/Dialogs.vala -M src/FlickrConnector.vala - -commit e84fc18affa75aaf5d1c4df4be50b07a98850308 -Author: Adam Dingle -Date: Mon Jan 25 18:28:52 2010 +0000 - - Implemented #1142 (-h or --help should print command-line options). - -M src/main.vala - -commit 79f834473af5034d6d8c9a48bd2ada3a9cbf5236 -Author: Adam Dingle -Date: Fri Jan 22 19:37:37 2010 +0000 - - Fixed #1300: "Shotwell Photo Manager" in Applications menu - -M misc/shotwell.desktop -M src/Resources.vala - -commit 7c9e96dd82af20fbd190c62e7cfede90df2b0c19 -Author: Adam Dingle -Date: Fri Jan 22 17:45:01 2010 +0000 - - Fixed #1303 (Edit->Remove should use red minus sign icon). - -M src/CollectionPage.vala -M src/PhotoPage.vala - -commit 65cf716455d54c57e9629a072b1c1d26f4340691 -Author: Lucas Beeler -Date: Fri Jan 22 01:52:00 2010 +0000 - - Updated POT file. - -M po/shotwell.pot - -commit 22468b1a8c94ed110e224ff43001adde4fa5d9bd -Author: Jim Nelson -Date: Fri Jan 22 01:45:50 2010 +0000 - - Removed gettext() of command-line switch. - -M src/main.vala - -commit 5da129d5e9b9c96434eb6394e3285fd5ef4046f8 -Author: Lucas Beeler -Date: Fri Jan 22 01:01:56 2010 +0000 - - Updated French translation. - -M po/fr.po - -commit be169563a7cf9285ebb9096c595abb2c0d01c82f -Author: Jim Nelson -Date: Fri Jan 22 00:38:19 2010 +0000 - - #531: Importing now takes place completely in background threads. - Thumbnails are generated in background, but - they are written in the foreground; this could be avoided with - more work. - -M Makefile -M src/AppWindow.vala -M src/BatchImport.vala -M src/CheckerboardLayout.vala -M src/ColorTransformation.vala -M src/DataObject.vala -M src/DatabaseTables.vala -M src/Debug.vala -M src/Dialogs.vala -M src/Dimensions.vala -M src/GPhoto.vala -M src/ImportPage.vala -M src/LibraryFiles.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/PixbufCache.vala -M src/ThumbnailCache.vala -M src/Workers.vala -M src/image_util.vala -M src/util.vala - -commit 68935da0b7b9f42509e7f33d465ef3c4bd08b25b -Author: Lucas Beeler -Date: Fri Jan 22 00:29:58 2010 +0000 - - Allows user to specify printing resolution in pixels per inch. Closes - #1277. - -M misc/shotwell.schemas -M src/Config.vala -M src/Printing.vala - -commit 72dc99229f5bbf1f3d72366be8c7385f3ddf9a79 -Author: Lucas Beeler -Date: Thu Jan 21 20:05:26 2010 +0000 - - Allows user to specify a custom size for printing or choose from a - pre-selected menu of standard photo frame sizes. Closes #1276. - -M Makefile -M misc/shotwell.schemas -M src/Config.vala -M src/Dimensions.vala -M src/Printing.vala -A vapi/LConv.vapi - -commit 2a6581253def024ab8fe4a6177a0ef11fc8b83ba -Author: Allison Barlow -Date: Wed Jan 20 21:46:30 2010 +0000 - - implements #1179, giving the user the option to update the exif data - when adjusting the date/time of a photo. also implements #1289, but - brought to our attention #1295 and that the feature isn't implemented - for direct edit (soon to be ticketed) - -M src/Commands.vala -M src/DatabaseTables.vala -M src/Dialogs.vala -M src/Exif.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Properties.vala -M ui/photo.ui - -commit d4f7c2fcf93b704815d1bcff4e0b43a97c3e9f8b -Author: Allison Barlow -Date: Wed Jan 20 19:43:51 2010 +0000 - - implements set photo as desktop background feature - -M src/CollectionPage.vala -M src/Config.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/image_util.vala -M ui/collection.ui -M ui/direct.ui -M ui/photo.ui - -commit cd883d802a35841924b9da6abd31589d6cf8ac74 -Merge: 2bd7dbd4 02720bde -Author: Jim Nelson -Date: Mon Jan 18 22:59:44 2010 +0000 - - Merge of 0.4.3 branch. - -commit 02720bde7cbf3faf1063b10e1ad536bd64023ad6 -Author: Jim Nelson -Date: Mon Jan 18 22:36:12 2010 +0000 - - For 0.4.3 release. - -M Makefile -M NEWS -M debian/changelog -M po/shotwell.pot -M windows/winstall.iss - -commit 2bd7dbd441ac78a443c9f8b8bcb7bdc28b711eb5 -Author: Lucas Beeler -Date: Mon Jan 18 21:35:28 2010 +0000 - - Added Bengali translation file; updated Makefile to add ISO - language code BN to supported languages list; updated THANKS file - to acknowledge translator. - -M Makefile -M THANKS -A po/bn.po - -commit 346c5f19b3347964684a31476977b9e1a81d41a8 -Author: Lucas Beeler -Date: Mon Jan 18 21:25:21 2010 +0000 - - Updated French translation; added translator's name to THANKS file. - -M THANKS -M po/fr.po - -commit cc77e978e715e588b18edc4a6789a7f62fa8b283 -Author: Lucas Beeler -Date: Mon Jan 18 19:10:19 2010 +0000 - - Updated Italian translation. - -M po/it.po - -commit 3263781857a85ffe8049c99333e71474ec3efd35 -Author: Allison Barlow -Date: Thu Jan 14 17:31:09 2010 +0000 - - fixes #1131 by removing double inset - -M src/LibraryWindow.vala - -commit 83bd259b093dea6d740f897d6133d173ae775565 -Author: Jim Nelson -Date: Thu Jan 14 01:38:42 2010 +0000 - - This fixes the binding fix we have in the custom GTK+ vapi. It also - adds a comment and a link to the bug report - so we know when this vapi is no longer needed and we can use the - distributed version. - -M src/EditingTools.vala -M vapi/gtk+-2.0.vapi - -commit b71e56b22a809ebc4c622dbec6c07db2d58a580c -Author: Jim Nelson -Date: Tue Jan 12 20:32:34 2010 +0000 - - Further optimizations toward #1118. The big win in this round is - speeding up Page lookups in the Sidebar. - -M src/CheckerboardLayout.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/Sidebar.vala -M src/SortedList.vala -M src/Thumbnail.vala - -commit d5fffeeb333fbb3ca8937aaf741a9395145c0160 -Author: Jim Nelson -Date: Mon Jan 11 22:37:27 2010 +0000 - - More optimizations for #1118. - -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Sidebar.vala -M src/SortedList.vala -M src/Thumbnail.vala -M src/main.vala - -commit 84ef969ac5c5448524e5321ca1c1d6224827ac32 -Author: Jim Nelson -Date: Fri Jan 8 21:19:13 2010 +0000 - - Bug. - -M src/SortedList.vala - -commit b4ca46dcb21623bd85d942a6794dd4bd5e0e5626 -Author: Jim Nelson -Date: Fri Jan 8 21:16:30 2010 +0000 - - #1118: A variety of patches to speed up startup time. More work - may follow, but this patch was getting large - enough I wanted to commit. SortedList has serious performance - improvements. - -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/DatabaseTables.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/Photo.vala -M src/SortedList.vala -M src/Thumbnail.vala -M src/main.vala - -commit dc3f2989d8e280d09f5beb44ac1cc16c0032d541 -Author: Lucas Beeler -Date: Fri Jan 8 18:51:54 2010 +0000 - - Adds support for the Gtk+ standard page setup dialog, closes #1275. - -M src/CollectionPage.vala -M src/PhotoPage.vala -M src/Printing.vala -M ui/collection.ui -M ui/photo.ui - -commit c807bcf80cb2227d0671aaf11e211ccafa8fbc2d -Author: Lucas Beeler -Date: Fri Jan 8 00:05:23 2010 +0000 - - Added basic printing support (closes #66). - -M Makefile -M src/CollectionPage.vala -M src/PhotoPage.vala -A src/Printing.vala -M ui/collection.ui -M ui/photo.ui - -commit 411da615e8694a2667b7fe04292d007b3ddf65e6 -Merge: a46fd2b8 4b2d8784 -Author: Jim Nelson -Date: Thu Jan 7 22:38:53 2010 +0000 - - Merge from 0.4.2+branch. - -commit a46fd2b8829eddbdb0de1b9b31aedbc9db9fdb02 -Author: Jim Nelson -Date: Thu Jan 7 22:36:55 2010 +0000 - - Fixed mnemonic for dialog. - -M src/ImportPage.vala - -commit 4b2d8784b0944088c0bcab90cbd6247ed38648fb -Author: Jim Nelson -Date: Thu Jan 7 22:16:27 2010 +0000 - - #1237: Fixed. Now attempting to initialize camera when the - "unmounted" signal is fired rather than when the - unmount callback is invoked. - -M Makefile -M src/ImportPage.vala - -commit c847cfea38f8d37ce4448385e651b8e91a04e0b2 -Author: Jim Nelson -Date: Wed Jan 6 22:34:44 2010 +0000 - - Fixes a bug in SortedList.resort_item(). - -M src/SortedList.vala - -commit 579a2f522053e64bfcf6bc083c55a8f13fb1e807 -Merge: e60183ea 74235cf8 -Author: Jim Nelson -Date: Wed Jan 6 02:34:20 2010 +0000 - - Merge Windows installation updates from 0.4 branch. - -commit e60183ea45bd1d830f089d7e911bd05da2d44e7b -Author: Jim Nelson -Date: Wed Jan 6 00:47:49 2010 +0000 - - #999: HAL dependency removed. Now using GUdev (GObject wrapper - around libudev). - -M Makefile -M debian/control -M src/CameraTable.vala -M src/Resources.vala -A vapi/gudev-1.0.vapi - -commit 74235cf80b063d54cadddd49458abe98136084f3 -Author: Adam Dingle -Date: Tue Jan 5 22:43:28 2010 +0000 - - Fixed #1238 ([windows] wrong theme when MinGW is not installed). - -M windows/winstall.iss - -commit 64842a6f22f43da45d62899aba6edb1d5d4675db -Author: Adam Dingle -Date: Tue Jan 5 20:52:25 2010 +0000 - - Remove gdk-pixbuf.loaders on uninstall. - -M Makefile -M windows/winstall.iss - -commit 0ec25dbdcb0984308034ef43df9f23fd0d9ad885 -Author: Adam Dingle -Date: Tue Jan 5 19:49:33 2010 +0000 - - Allow building the Windows installer from the command line. - -M Makefile - -commit cd9a204a3114a63482725439072df6ac1067c972 -Merge: 9296063c 8b5cc758 -Author: Jim Nelson -Date: Tue Jan 5 00:31:52 2010 +0000 - - Merge from 0.4.2. - -commit 8b5cc7589a48c0ddf2681950942d2f8da133b8f1 -Author: Jim Nelson -Date: Mon Jan 4 23:41:36 2010 +0000 - - 0.4.2 updates. - -M Makefile -M NEWS -M debian/changelog -M windows/winstall.iss - -commit a8d4a1300c6c15dc977b8bbfeff90ca201e1f50c -Author: Lucas Beeler -Date: Mon Jan 4 21:59:49 2010 +0000 - - Merged in new & changed translations from trunk; updated Makefile - to add new translations to SUPPORTED_LANGUAGES list; updated THANKS - file to acknowledge translators. - -M Makefile -M THANKS -C053 po/de.po po/bg.po -M po/de.po -M po/et.po -M po/it.po -C061 po/it.po po/lv.po -M po/pl.po -C063 po/sv.po po/pt.po -M po/shotwell.pot -C061 po/it.po po/sk.po -M po/sv.po - -commit 9296063c24c687a357321b9e20e154d3e2e490b8 -Author: Lucas Beeler -Date: Mon Jan 4 21:51:55 2010 +0000 - - Updated version number and header information in current translation - files to have version 0.4.2+trunk. - -M po/de.po -M po/et.po -M po/it.po -M po/lv.po -M po/pl.po -M po/pt.po -M po/shotwell.pot -M po/sk.po -M po/sv.po - -commit 46d094bebf04930f40a9420e918f97e72c694df7 -Author: Lucas Beeler -Date: Mon Jan 4 21:40:16 2010 +0000 - - Added Bulgarian translation; updated Makefile to add ISO langauge - code BG to SUPPORTED_LANGUAGES; updated THANKS file to acknowledge - translator. - -M Makefile -M THANKS -A po/bg.po - -commit 421285c129983282f239845492fa31416d501802 -Author: Adam Dingle -Date: Mon Jan 4 20:35:42 2010 +0000 - - Fixed #1229 ([windows] won't run without DLLs in c:\MinGW). - -M windows/winstall.iss - -commit 99d551947afcccefb7d0d85ade9000684adebe24 -Author: Lucas Beeler -Date: Thu Dec 31 22:44:48 2009 +0000 - - Added Portuguese translation; updated makefile to add ISO language - code PT to SUPPORTED_LANGUAGES; added translator to THANKS file. - -M Makefile -M THANKS -A po/pt.po - -commit 528d89b8fe5a501fc949a90be5b4c4c3be23728d -Author: Lucas Beeler -Date: Thu Dec 31 22:34:20 2009 +0000 - - Updated Slovak translation. - -M po/sk.po - -commit a920cd569594b968042cb3c2b7baa6c5a894ce95 -Author: Lucas Beeler -Date: Thu Dec 31 22:29:46 2009 +0000 - - Added new Latvian translation; updated Makefile to add ISO language - code LV (Latvian) to SUPPORTED_LANGUAGES; added translator's name - to THANKS file. - -M Makefile -M THANKS -A po/lv.po - -commit 417d7d663aaa4f901de508d031e91d9ebc1fd62a -Author: Lucas Beeler -Date: Thu Dec 31 22:21:06 2009 +0000 - - Updated Slovak translation. - -M po/sk.po - -commit 167259cda7a53c1eb81e94eee4c27516a1ddec56 -Author: Lucas Beeler -Date: Thu Dec 31 22:03:26 2009 +0000 - - Updated German translation. - -M po/de.po - -commit ab839e1f238c6659d2d143b0298e2bc1018a61c7 -Author: Jim Nelson -Date: Thu Dec 31 01:27:25 2009 +0000 - - Grooming DataCollection to consolidate code that had started to - creep between DataCollection and ViewCollection. - This will help us in the future when we optimize some of - DataCollection's code. Also fixed an unchecked - Exception in Dialogs.vala. - -M src/DataCollection.vala -M src/Dialogs.vala -M src/PhotoPage.vala -M src/SortedList.vala - -commit 7b702b8f054a116cd199ce5d4a9214136175ae2d -Author: Jim Nelson -Date: Wed Dec 30 20:39:36 2009 +0000 - - #1232: ImportSources were improperly removed from their - SourceCollection, causing the assertion. - -M Makefile -M src/CollectionPage.vala -M src/Commands.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/Event.vala -M src/ImportPage.vala -M src/Photo.vala -M src/PhotoPage.vala - -commit 171b030e74ac7e2c815281e45b7b6e2517ed16a2 -Merge: 19107f19 ae7a8ebd -Author: Jim Nelson -Date: Tue Dec 29 19:11:12 2009 +0000 - - Merge from 0.4.1 branch. - -commit ae7a8ebd1a03c80d0fb5dac21e1d418439eddf29 -Author: Adam Dingle -Date: Thu Dec 24 13:15:40 2009 +0000 - - Updates in preparation for packaging 0.4.1. - -M Makefile -M NEWS -M debian/changelog -M windows/winstall.iss - -commit 709fc4b4634897b8bc13e7b3079efe48d644c3d7 -Author: Adam Dingle -Date: Thu Dec 24 12:39:02 2009 +0000 - - Added minver script to distribution. - -M Makefile - -commit 19107f19907e7d70f6b35975f15c6e2aa874ee3b -Merge: 2ea50d0a 8035f57a -Author: Jim Nelson -Date: Thu Dec 24 01:21:38 2009 +0000 - - Further merges from 0.4 branch. - -commit 8035f57a24ec4e0365264b3619d0d321bf75de69 -Author: Adam Dingle -Date: Thu Dec 24 00:03:07 2009 +0000 - - Windows version for release. - -M windows/winstall.iss - -commit 1e94d1635ff7921ec33b14f90a86f54e9bd622d2 -Author: Jim Nelson -Date: Wed Dec 23 22:58:21 2009 +0000 - - Updates in preparation for packaging 0.4.0. - -M Makefile -M NEWS -M README -M THANKS -M debian/changelog -M debian/control -M debian/copyright - -commit 2ea50d0a866e5407313a52478090d7dcf4378c70 -Merge: d57c15e5 39583c73 -Author: Jim Nelson -Date: Wed Dec 23 22:28:12 2009 +0000 - - Merge from 0.4 branch. - -commit 39583c731dbb4ed1587829d400697e3c7c048dcb -Author: Jim Nelson -Date: Wed Dec 23 22:20:25 2009 +0000 - - #1215: Now using a simple script to verify compiler version numbers. - -M Makefile -A minver - -commit d57c15e5a8a81a70371d15a619071c7133f156a3 -Author: Allison Barlow -Date: Wed Dec 23 18:58:27 2009 +0000 - - implements date/time adjustment per #76 - -M misc/shotwell.schemas -M src/CollectionPage.vala -M src/Commands.vala -M src/Config.vala -M src/DatabaseTables.vala -M src/Dialogs.vala -M src/Event.vala -M src/Photo.vala -M src/Resources.vala -M ui/collection.ui - -commit 1f43a1ef48975a3a533a3f8351c4b07164f2d0bc -Author: Lucas Beeler -Date: Wed Dec 23 14:58:19 2009 +0000 - - Added Swedish translation; updated THANKS file to acknowledge - translator (Daniel Nylander). - -M Makefile -M THANKS -A po/sv.po - -commit c42aa881214b63424697268c981653676a54acd9 -Author: Lucas Beeler -Date: Wed Dec 23 03:50:29 2009 +0000 - - Updated German, Italian, and Swedish translations. Added Slovak - translation. Changed THANKS file and Makefile to reflect new languages - and contributors. - -M Makefile -M THANKS -M po/de.po -M po/it.po -C066 po/it.po po/sk.po -M po/sv.po - -commit d81d498c53bdbd561eeb3efa9075d190728d49f8 -Author: Jim Nelson -Date: Wed Dec 23 02:45:34 2009 +0000 - - #1217: Fixed import perf regression. Now relying on thumbnail - generation to detect bogus image files. - -M src/DataCollection.vala -M src/Photo.vala -M src/ThumbnailCache.vala -M src/image_util.vala - -commit f6a23b9c585a3a7b93119c511222e6ecb4605c0a -Author: Jim Nelson -Date: Wed Dec 23 01:59:15 2009 +0000 - - #1198: Display progress on startup if the user's library is large - enough to warrant it. Also some optimizations - to improve startup time. - -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/DatabaseTables.vala -M src/Dialogs.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/main.vala - -commit f29de615d5c9b2159af99eb484da519fb1790b85 -Author: Jim Nelson -Date: Tue Dec 22 18:58:35 2009 +0000 - - German and Italian updates. - -M po/de.po -M po/it.po -M src/CheckerboardLayout.vala - -commit a2adfb823d8000707b58e4e6f2a484a776228feb -Author: Adam Dingle -Date: Mon Dec 21 23:55:32 2009 +0000 - - Updated version number in Windows install script. - -M windows/winstall.iss - -commit ac2e2af68a6e3ef2fe7a80ffdb8d2daa12795b5f -Author: Jim Nelson -Date: Mon Dec 21 22:45:17 2009 +0000 - - #1208: Red-eye failure due to a rounding error. - -M src/image_util.vala - -commit d6bfdfa3ba81bdd6d9c54c9fc2528a9c10c5cf66 -Author: Jim Nelson -Date: Mon Dec 21 21:07:22 2009 +0000 - - #1211: Made the PhotoInterrogator check the actual encoding of the - JPEG file. Previously it used PixbufLoader, - but only going so far as to the first decoded block. - -M src/image_util.vala - -commit 987db14d75286498f7e4aaf77eb119ce24f682b6 -Author: Adam Dingle -Date: Mon Dec 21 20:03:03 2009 +0000 - - Updated Windows icon. - -M icons/shotwell.ico - -commit 341d0c0f8a6404313de3246ee77353d7a5d9a6a8 -Author: Jim Nelson -Date: Mon Dec 21 19:43:47 2009 +0000 - - #1209/#1210: Strengthened malformed EXIF checking, removing assertions - and replacing them with error-handling - code. This fixes parsing EXIF structure for photos with bogus EXIF. - -M src/Exif.vala - -commit 8b7bb0e402cf8a3e9ab72eb20051370d49c42d9a -Author: Jim Nelson -Date: Mon Dec 21 19:23:20 2009 +0000 - - #1201: Export/publish no longer fails on photos that have EXIF but - no orientation tag. Also, Shotwell now - requires 0.7.9, as one of the bindings it relies upon has been fixed. - -M Makefile -M src/Exif.vala -M src/image_util.vala - -commit ebf4d9afbb028857c03661fdc93202bd9227aba8 -Author: Jim Nelson -Date: Sat Dec 19 02:27:22 2009 +0000 - - #1203: Photo caused crash on import due to rounding. The photo is - so wide and short its height was being scaled - to zero. Now, all scaled dimensions are returned floored at least - to one in both dimensions. This patch also - fixes a problem with the crop/redeye tools on small/narrow/short - photos (due to their displayed, scaled - size). - -M src/Dimensions.vala -M src/EditingTools.vala -M src/PhotoPage.vala - -commit aa241df6d289c7625e8581b9aeef399047fde45b -Author: Lucas Beeler -Date: Sat Dec 19 00:55:59 2009 +0000 - - Closes #1197. - -M src/ColorTransformation.vala - -commit ce64c24e5a3cc48bd0458f14f8c036efbfc27314 -Author: Lucas Beeler -Date: Sat Dec 19 00:51:44 2009 +0000 - - Added partial Swedish translation. - -A po/sv.po - -commit 4d9717f1cf0d3614e59c4e47c1b10a515cd13c2c -Author: Lucas Beeler -Date: Sat Dec 19 00:50:26 2009 +0000 - - Added partial Swedish translation. - -M Makefile - -commit 054667af0ce2bc4cdd5ffc43dca859ce76a45e3d -Author: Lucas Beeler -Date: Fri Dec 18 23:30:27 2009 +0000 - - Closes #1193; allows adjustment of bilevel images. - -M src/ColorTransformation.vala - -commit 3c3360ed9b23d329ded5a6e7f7175067ff5de484 -Author: Jim Nelson -Date: Fri Dec 18 23:20:20 2009 +0000 - - #1194: Now greying out the crop (and red-eye) tool when images are - too small for them. - -M src/EditingTools.vala -M src/PhotoPage.vala - -commit 861e19cbe857c15e5f264c04a99d82dbd3cab682 -Author: Allison Barlow -Date: Fri Dec 18 22:11:34 2009 +0000 - - fixes publish menu item bug #1192 - -M src/CollectionPage.vala - -commit 7aaf3fd63d7cbbbdb59e0e493efecef6072d9370 -Author: Lucas Beeler -Date: Fri Dec 18 22:05:49 2009 +0000 - - Updated German translation. - -M po/de.po - -commit 88702f9635dbd95ede0623e46a0e5083a7be4698 -Author: Lucas Beeler -Date: Fri Dec 18 22:04:54 2009 +0000 - - Updated German translation. - -M po/de.po - -commit fbf8b36574ce333a1ef577f56f5415e7ed4d8bbb -Author: Lucas Beeler -Date: Fri Dec 18 19:42:14 2009 +0000 - - Updated Estonian translation. - -M po/et.po - -commit 95a54868b9a75959133f552e6bb891b09a68fba7 -Author: Lucas Beeler -Date: Fri Dec 18 19:37:39 2009 +0000 - - Updated Estonian translation. - -M po/et.po - -commit a6ddfffabc3a2e38e362cbd0a444fb078e674584 -Author: Allison Barlow -Date: Fri Dec 18 18:23:46 2009 +0000 - - fixes #1191, allowing parts of the gconf schema to install properly. - -M misc/shotwell.schemas - -commit 670a708d5fc380e6ffb1b292cdd6690cb625d40e -Merge: 201d8572 e44d0ffa -Author: Jim Nelson -Date: Fri Dec 18 01:31:56 2009 +0000 - - Merge from 0.4 branch into trunk. - -commit e44d0ffa4ef4f44282c106ce8c4153446ca37ada -Author: Jim Nelson -Date: Fri Dec 18 01:12:06 2009 +0000 - - #1183: Now display ISO, exposure, and/or aperture when available, - even if not all are available. - -M src/Exif.vala -M src/Properties.vala - -commit ae4e1fac96153b64f75844dabf1e7e130eacb0ec -Author: Jim Nelson -Date: Fri Dec 18 00:50:04 2009 +0000 - - #1176: More event generation issues, this time when photos all are - in the morning before the event boundary - (4AM). #1174/#1181: We're now more aggressive searching the JPEG - file for EXIF. This solves the problem of - some photos (either from GIMP or from certain cameras) not being - recognized as having EXIF in them. - -M src/Event.vala -M src/Exif.vala - -commit 5f7efc30b8a827741c30795f0f86085f4cf7ed0f -Author: Allison Barlow -Date: Thu Dec 17 23:42:30 2009 +0000 - - removes publishing menu item on windows build. - -M src/CollectionPage.vala -M ui/collection.ui - -commit ee391daa327ad4745dfb54056403187ea7637b21 -Author: Jim Nelson -Date: Thu Dec 17 21:59:49 2009 +0000 - - #1165: Shotwell no longer aborts when import runs out of disk space. - The import will halt and the user will be - presented an error dialog. Also, fixed Events so small thumbnails - are enlarged to fit the square, guaranteeing - all are the same size in the checkerboard display. - -M src/BatchImport.vala -M src/Dimensions.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/LibraryFiles.vala -M src/Photo.vala -M src/util.vala - -commit 2a131f26e870264d5f23f65288f635d032c702d1 -Author: Allison Barlow -Date: Thu Dec 17 17:30:01 2009 +0000 - - reduces number of significant digits displayed for exposure. - -M src/Exif.vala - -commit 9508dbca0deb5fd8136a5bd73c8c39ddee2b4e21 -Author: Lucas Beeler -Date: Thu Dec 17 01:49:57 2009 +0000 - - Added new icons. - -M icons/shotwell.png -M icons/shotwell.svg - -commit ccdc497f67e326edd315db7336166d5eedc4e0a2 -Author: Jim Nelson -Date: Wed Dec 16 23:29:24 2009 +0000 - - #1163: Import of 160x3 image no longer causes assertion. #1168: - Shotwell would attempt to import files without - supported filename extensions if it was a directory import opertion. - This is now circumvented. Also, - fixed a rounding error in the EventDirectoryItem code related to - rounding-corners that caused some key - photos to not be displayed. - -M src/BatchImport.vala -M src/EventsDirectoryPage.vala -M src/Photo.vala - -commit bf985b04d4b719b6be2c26bc2af8cc89ea5e9b51 -Author: Allison Barlow -Date: Wed Dec 16 22:53:44 2009 +0000 - - changed selection color. - -M src/CheckerboardLayout.vala - -commit afc6cccc04ea93f6cb59bda9766f053e44385677 -Author: Lucas Beeler -Date: Wed Dec 16 22:28:20 2009 +0000 - - Fixed a multi-byte code point issue with the new Pango markup used in - the events directory page; merged translation files against current - POT file; verified that all translations function as expecte with - the 0.4 source tree. - -M po/de.po -M po/et.po -M po/fr.po -M po/it.po -M po/pl.po -M src/CheckerboardLayout.vala -M src/EventsDirectoryPage.vala - -commit 9e1fd6f936bd0463fbdd1dc8437b9392b49a5b56 -Author: Allison Barlow -Date: Wed Dec 16 20:04:36 2009 +0000 - - removes minimize and maximize decorations on extended info window, - fixing #1154 - -M src/LibraryWindow.vala -M src/Properties.vala - -commit e42d28fc96e207fb7980626a4269bc9484f26231 -Author: Jim Nelson -Date: Wed Dec 16 19:41:47 2009 +0000 - - #1155: Ctrl++ and Ctrl+- now accelerator keys for zooming. Code also - checks for unadorned plus and minus, or - those keys with any modifier key, in fact. - -M src/CollectionPage.vala -M src/Page.vala - -commit 98c43147ed38cc8d332dd75753fd20faef80d5b2 -Author: Jim Nelson -Date: Wed Dec 16 19:14:18 2009 +0000 - - #1153: Events now displayed as a squared key photo with rounded - corners, with its name centered and in boldface, - with the number of photos in the event below that in smaller font. - -M src/CheckerboardLayout.vala -M src/Dimensions.vala -M src/EventsDirectoryPage.vala -M src/image_util.vala - -commit 79a5b65e4ac5125b63eb98a184d8e3baffd7f39b -Author: Lucas Beeler -Date: Wed Dec 16 02:15:05 2009 +0000 - - Added new merge icon. - -A icons/merge.svg -M src/EventsDirectoryPage.vala -M src/Resources.vala - -commit 97fa76a716b12ceb9e5bb3ca524414b6a9f712b0 -Author: Lucas Beeler -Date: Tue Dec 15 22:59:05 2009 +0000 - - Added the new pin toolbar icon. - -M icons/pin-toolbar.svg - -commit 201d85728630904a7f0652f7b636fade9902b6cf -Author: Adam Dingle -Date: Tue Dec 15 22:23:35 2009 +0000 - - Fixed capitalization in the Extended Information window. - -M src/Properties.vala - -commit ca6897735d87804004a016583a7939795cc1ae82 -Author: Jim Nelson -Date: Tue Dec 15 22:14:49 2009 +0000 - - Fixes a problem with generating too many events when photos are on - the same day. - -M src/Event.vala - -commit 9163f24f6637ac8e1c47b51375e2545df580f73c -Author: Jim Nelson -Date: Tue Dec 15 20:33:57 2009 +0000 - - #1145/#1146: These were caused by the programmatic switching of pages. - Some of the other controls (in this - case, the Gtk.TreeView) allow for events to be processed in their - own handlers, and causing an expose_event to - be called before Page.switched_to() was invoked. This is safe, - but an assertion was in place to check for pages - being seen when they weren't supposed to. Since this can happen - during a switch, removing this assertion. - -M src/CheckerboardLayout.vala - -commit a20354871b5f960c89c4a5e2e97eb89c41d930dc -Author: Lucas Beeler -Date: Tue Dec 15 19:34:57 2009 +0000 - - Added new pin-toolbar icon. - -M icons/pin-toolbar.svg - -commit 84cc750d98e3c1035b187a3afad920ba3883d0f5 -Author: Jim Nelson -Date: Tue Dec 15 19:11:03 2009 +0000 - - #973: Display corruption when dragging below the last photo in - GTK+ 2.18. There appears to be a change in how - Gtk.Adjustment values are clamped between 2.16 and 2.18. This patch - enforces the limit. - -M src/Page.vala - -commit 962e5628cababce55d1881cdab2da4b9c14736b5 -Author: Lucas Beeler -Date: Tue Dec 15 19:11:03 2009 +0000 - - Touched-up favorites icon. - -M icons/favorite.svg - -commit 4f8dc09e89c17013b47da1ec63c41d7a9e533ce8 -Author: Jim Nelson -Date: Tue Dec 15 01:40:57 2009 +0000 - - #1130: Now detecting bogus EXIF timestamps and treating them as - through they're unset. Will need more work if - want to ignore them in some cases and use them in others. - -M src/Exif.vala -M src/WebConnectors.vala - -commit bc9fa2936c3961d713976c6cbccbc026166ef5cb -Author: Lucas Beeler -Date: Tue Dec 15 01:38:34 2009 +0000 - - Closes #1047 (Facebook publishing should fail gracefully if user - has deauthorized application); user is now gracefully logged out - when a 102 (session key has become invalid) error is detected. - -M src/FacebookConnector.vala -M src/WebConnectors.vala - -commit be9718c5d5618f432705e692bb9337738c3a4528 -Author: Lucas Beeler -Date: Tue Dec 15 01:32:25 2009 +0000 - - Closes #1089 (favorites star icon needs touching up). - -M icons/favorite.svg - -commit fe0824a3770ef4eb70a5e5d297dfb2e0936ca76e -Author: Jim Nelson -Date: Tue Dec 15 00:31:56 2009 +0000 - - #1122: Photos now imported into proper events, respecting the new - event boundary algorithm. #1134: Help -> - Contents now goes to new Wiki page. - -M src/Event.vala -M src/Resources.vala - -commit 8d11e9052798cf2f4405755ac456503aa34a6681 -Author: Jim Nelson -Date: Mon Dec 14 23:59:57 2009 +0000 - - Branching from trunk for 0.4. - -M Makefile - -commit 7e30c00f1d3cd0795d6ec49388a2c9f7f5f76ec9 -Author: Jim Nelson -Date: Mon Dec 14 23:58:39 2009 +0000 - - Trunk splitting from 0.4 branch. - -M Makefile - -commit 2377b139fc877c513ba0457f8a160bb134b0fd24 -Author: Jim Nelson -Date: Mon Dec 14 23:56:15 2009 +0000 - - Branching in preparation for the 0.4 release. - -commit c10e3df013f5a66274b4579cc9e4504e133d8409 -Author: Lucas Beeler -Date: Mon Dec 14 23:51:35 2009 +0000 - - Resolves #1136 ("can't publish to Facebook" -- occurred with newly - created Facebook accounts where no photo albums were present); makes - Publishing dialog taller to accomodate changed Facebook pane layout. - -M src/FacebookConnector.vala -M src/WebConnectors.vala - -commit f9e08f4a70f54d6e7494ad6c0bbcd2ebdf721b81 -Author: Jim Nelson -Date: Mon Dec 14 22:16:38 2009 +0000 - - #1137: Needed to monitor the destruction of the duplicated photo - and reset the command manager if it occurs. - -M src/Commands.vala - -commit 8683b445908122b4f202f30dc0385d0379c5fa3b -Author: Jim Nelson -Date: Mon Dec 14 22:02:08 2009 +0000 - - Refinement to the web publishing error reporting. - -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/WebConnectors.vala - -commit 4c9795b1bf58c1c59349c4355c612a4aa5ef02aa -Author: Jim Nelson -Date: Mon Dec 14 21:27:57 2009 +0000 - - #1124: More fine-grained error reporting in Web publishing. - PublishingError used more thoughly throughout to - facilitate error reporting. - -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/WebConnectors.vala - -commit ba839a152935cf95b689e950955c8f3cfe840c04 -Author: Allison Barlow -Date: Mon Dec 14 20:51:53 2009 +0000 - - changes view menu according to #1141 - -M ui/collection.ui - -commit 5bfa3146a666c0c7ccf63920bbfb5967cefe163a -Author: Lucas Beeler -Date: Sat Dec 12 02:41:36 2009 +0000 - - Closes #1128 and #1129. - -M misc/shotwell.schemas -M src/Config.vala -M src/FlickrConnector.vala -M src/WebConnectors.vala - -commit d08ad18852fe47dc96c685700e1f392813711f61 -Author: Lucas Beeler -Date: Sat Dec 12 02:34:28 2009 +0000 - - Adds new POT file with proper plural forms to the po/ directory; - closes #1079. - -M po/shotwell.pot - -commit 324f7c535001777616ddf3127566aa7fbae05345 -Author: Jim Nelson -Date: Sat Dec 12 02:16:41 2009 +0000 - - First commit toward #1124: Finer-grained exceptions in the publishing - code. Added preliminary strings for error - messages for string freeze. - -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/WebConnectors.vala - -commit 1464a2de299a1b39921c029256ead48ca636ce69 -Author: Lucas Beeler -Date: Sat Dec 12 00:25:42 2009 +0000 - - Resolves bug #1126 ("publishing dialog buttons should have access - keys") - -M src/Config.vala -M src/FacebookConnector.vala -M src/FlickrConnector.vala -M src/WebConnectors.vala - -commit 8cae88187f29c41f54c895477bd9f892664978bd -Author: Allison Barlow -Date: Sat Dec 12 00:12:56 2009 +0000 - - fixes #1121 (extended info window should be wider) and implements - #1019 (publish item in dropdown). - -M src/CollectionPage.vala -M src/Properties.vala -M src/Resources.vala -M ui/collection.ui - -commit 37e7575fb3c1703bbe5b29a11883384864a651c6 -Author: Lucas Beeler -Date: Sat Dec 12 00:06:36 2009 +0000 - - Changed all gettext invocations in strings with embedded numbers to - ngettext calls to support proper plural form handling for non-Western - languages. - -M src/CollectionPage.vala -M src/Commands.vala -M src/Dialogs.vala -M src/ImportPage.vala -M src/Properties.vala - -commit 82858c9fb7a8914bd9601c02f65926aa46788883 -Author: Allison Barlow -Date: Fri Dec 11 21:50:30 2009 +0000 - - adds persistence of sort settings for events, photos within events, - and library photos. #1104 and #1103. - -M misc/shotwell.schemas -M src/CollectionPage.vala -M src/Config.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala - -commit fe8187094b03e43c7d6f44e1d2d9be04e36c2313 -Author: Lucas Beeler -Date: Fri Dec 11 19:46:22 2009 +0000 - - Introduces a unified publishing subsystem, closes bug #181 ("Export - photos to Flickr"). - -M Makefile -M src/Config.vala -M src/FacebookConnector.vala -A src/FlickrConnector.vala -M src/WebConnectors.vala - -commit 34cc938f1b61e7890d64eea611d6b015b3b244e2 -Author: Adam Dingle -Date: Fri Dec 11 16:35:31 2009 +0000 - - Fixed #1116 (check for gettext in makefile). - -M Makefile - -commit 076e2e712f440216b3843e97483171ec74f70224 -Author: Jim Nelson -Date: Fri Dec 11 03:23:37 2009 +0000 - - #874: Gap threshold increased to one event per day, with the boundary - being 4AM. - -M src/Event.vala - -commit c3200cf25a5758536f9f4969088625d55b05d43b -Author: Adam Dingle -Date: Fri Dec 11 01:00:51 2009 +0000 - - Updated minimal version number for WebKit. - -M Makefile - -commit a02392dc6489ce7492ccc438545d56824d6610f5 -Author: Adam Dingle -Date: Fri Dec 11 00:52:10 2009 +0000 - - Added version checks for webkit, libsoup and libxml. This fixes - #1015. - -M Makefile - -commit 416ad04e3c4a49644985de0b9dcf12774970a230 -Author: Jim Nelson -Date: Thu Dec 10 22:19:54 2009 +0000 - - #1102: Bug due to rounding down to zero in integer division. - -M src/CheckerboardLayout.vala - -commit bf155ac86d4478f9258457a4dabc66076009f2e3 -Author: Jim Nelson -Date: Thu Dec 10 19:25:49 2009 +0000 - - #873: Import and directory reads were slowing down moving between - photos in direct-edit mode. Import is much - faster now (and faster for library mode as well!) and the directory - is only read once. Will need to later - monitor the directory for file additions/removals. #1106: Modified - asterisk now working. Also fixed other - little bit rots in direct-edit mode that had gone undetected. - -M src/CollectionPage.vala -M src/Dimensions.vala -M src/DirectWindow.vala -M src/EventsDirectoryPage.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/ThumbnailCache.vala -M src/image_util.vala -M ui/direct.ui - -commit 63397656e7d204af575edf65d46ecf1b82f75852 -Author: Adam Dingle -Date: Thu Dec 10 00:48:28 2009 +0000 - - Added get_int() and set_int() to the Windows GConf implementation. - -M src/GConf.vala - -commit 36fc0e32b1221b909f762ff2d8f7b05d0c5bc610 -Author: Allison Barlow -Date: Wed Dec 9 23:40:19 2009 +0000 - - implements 1042: persist sidebar width - -M misc/shotwell.schemas -M src/AppWindow.vala -M src/Config.vala -M src/DirectWindow.vala -M src/LibraryWindow.vala - -commit ba49b4341bf3abc46e9fe2e22882384d02ec44d0 -Author: Adam Dingle -Date: Wed Dec 9 22:53:42 2009 +0000 - - Updated w32api URL. - -M windows/install-deps - -commit d0a4cbebffbf986ea49548b541b82acad8d5da72 -Author: Allison Barlow -Date: Wed Dec 9 22:27:43 2009 +0000 - - takes care of ticket 1096--both of the cases where hiding photos - should make the toolbar buttons unavailable. - -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/DataCollection.vala - -commit f45dc59e6b0e6af14e3a4b2ddee270eac0a48ce3 -Author: Jim Nelson -Date: Wed Dec 9 22:20:49 2009 +0000 - - #1100: get_start_time()/get_end_time() fixed and now using all photos, - including hidden, when calculating. - -M src/Event.vala - -commit 2a453cca511f9a9e418d7a9a1ee2284d599b563b -Author: Allison Barlow -Date: Wed Dec 9 21:53:37 2009 +0000 - - Improves toolbar layout (#1045) by removing new event and adding in - a separator. - -M src/CollectionPage.vala - -commit bf3a1b00be046635646499bd357423f1ef72ae71 -Author: Allison Barlow -Date: Wed Dec 9 18:13:58 2009 +0000 - - fixes 1065: hidden photos remain selected. - -M src/DataCollection.vala - -commit f925e1b3eb5fe3b8deabab3a79bbaa5cbb07bdc4 -Author: Jim Nelson -Date: Wed Dec 9 00:10:14 2009 +0000 - - #1088: Rounding error. - -M src/image_util.vala - -commit 481dd44fa497d331f19ba1e544d3657e1e97b6c3 -Author: Allison Barlow -Date: Tue Dec 8 23:51:48 2009 +0000 - - fixes 1083 so maximization state and window dimensions are remembered. - also changes basic properties to default on - -M misc/shotwell.schemas -M src/AppWindow.vala -M src/Config.vala - -commit ada955c46fefe5ce8dffa24073c329da5010a298 -Author: Allison Barlow -Date: Tue Dec 8 23:36:26 2009 +0000 - - fixes 935, making select_all work for event directory pages. - -M src/EventsDirectoryPage.vala -M ui/events_directory.ui - -commit 76e143ba2d23562b03a85990c23a86db099332ef -Author: Adam Dingle -Date: Tue Dec 8 23:25:50 2009 +0000 - - Updated Help->Contents URL. - -M src/Resources.vala - -commit a6ab975aab20402096abaf81efb3e4356378934e -Author: Jim Nelson -Date: Tue Dec 8 23:20:17 2009 +0000 - - #774: In full-window/fullscreen mode, images now shown in actual size. - In slideshow, images shown fullscreen. - -M THANKS -M src/Dimensions.vala -M src/EditingTools.vala -M src/ImportPage.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/SlideshowPage.vala - -commit 146d6753bd2b14476bdb1af344baa2bd077ae812 -Author: Adam Dingle -Date: Tue Dec 8 16:08:48 2009 +0000 - - Added Mattias to THANKS file. Alphabetized names. - -M THANKS - -commit 9aa80094bb2c28f3b214ec2baaf74dee63cf6f1d -Author: Lucas Beeler -Date: Tue Dec 8 03:08:28 2009 +0000 - - Added Estonian translation file; updated Makefile languages line to - include "et". - -M Makefile -A po/et.po - -commit 332c733c3315b13391c2b3c8efcad862db435f0d -Author: Lucas Beeler -Date: Tue Dec 8 03:05:34 2009 +0000 - - Polish translation file is now complete. - -M po/pl.po - -commit 0bc696369d60623d064d8418c4375b6fed5d28d0 -Author: Jim Nelson -Date: Tue Dec 8 02:22:24 2009 +0000 - - #871: Mark as Favorite implemented. Some questions remain about - the favorite icon and whether the hidden icon - should be similarly sized/placed or back in its original - location/size. - -A icons/favorite.svg -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/Commands.vala -M src/Config.vala -M src/EventsDirectoryPage.vala -M src/Photo.vala -M src/Resources.vala -M src/Thumbnail.vala -M ui/collection.ui -M ui/event.ui -M ui/events_directory.ui -M ui/photo.ui - -commit 28b04008cd3a6db740461e58dbe8738c05b82d9e -Author: Allison Barlow -Date: Tue Dec 8 02:21:22 2009 +0000 - - fixes 956: empty progress bar reappears. - -M src/ImportPage.vala - -commit 509916fb4b7820bef1497b4ef69fd73f053ed70e -Author: Allison Barlow -Date: Tue Dec 8 02:01:02 2009 +0000 - - fixes 1070: app hangs while parsing events after large import. - added progress dialog. - -M src/Dialogs.vala -M src/Event.vala -M src/ImportPage.vala -M src/LibraryWindow.vala - -commit 34c1891cd1aad2d1f089aceeba2733ba094187ae -Author: Adam Dingle -Date: Mon Dec 7 22:48:24 2009 +0000 - - Fixed bug #1074 (about box links don't work). - -M src/AppWindow.vala - -commit 4334546ee10ec4db8d60bf279aa92b6b89bcfe84 -Author: Jim Nelson -Date: Mon Dec 7 18:59:04 2009 +0000 - - #1085: GTK assertion due to signal being fired before import queue - page was hidden. Assertion due to hidden - pages maintaining their PageLayout even when hidden. - -M src/ImportPage.vala -M src/LibraryWindow.vala - -commit 482b586aa4d1a5b5b255f69af891dca9c2a3fe01 -Author: Jim Nelson -Date: Sat Dec 5 01:31:16 2009 +0000 - - #1069: Pages are now destroyed when removed from LibraryWindow, - and each Page destroys all the widgets it - creates that are not contained/parented when the Page is destroyed - (i.e. the menu bar). This issue was - exacerbated by drag-and-drop, which obtains references on all widgets - in the application and releases them after - the Page was deref'ed. - -M src/CollectionPage.vala -M src/Commands.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/PhotoPage.vala -M src/SlideshowPage.vala - -commit d6a8f33ff2b34ba7761e8f2fe91c89b66685d7be -Author: Allison Barlow -Date: Sat Dec 5 00:56:49 2009 +0000 - - fixes #1061 (hidden photo titles not displayed) and related hidden - thumbnail size not updating - -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/DataCollection.vala -M src/Page.vala - -commit 731aefa3f03732d0f03b4a1566389a2063cbbac7 -Author: Allison Barlow -Date: Fri Dec 4 20:28:42 2009 +0000 - - fixes #1056: hiding ellipsis - -M src/Commands.vala - -commit 14861edfde0f47b740655eaae4b1e052a51770cb -Author: Allison Barlow -Date: Fri Dec 4 01:57:35 2009 +0000 - - fixes 1044: Shift key does not work after window resize - -M src/PhotoPage.vala - -commit 9df92f848cd44a3c13692910ac423c36760e6738 -Author: Allison Barlow -Date: Fri Dec 4 01:03:07 2009 +0000 - - cleaning up how modifiers behave with change of focus, page switching, - etc. Inspired by #1049 - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/Page.vala -M src/PhotoPage.vala - -commit 4bd814c69d61d8a3ee1688322c04c252e4db2600 -Author: Lucas Beeler -Date: Thu Dec 3 22:19:19 2009 +0000 - - Updated the THANKS file to include a translations section. - -M THANKS - -commit f90a533bd134b0975e57fff0ab52b2202487488b -Author: Lucas Beeler -Date: Thu Dec 3 22:07:48 2009 +0000 - - Added Polish translation file; updated German translation file - -M Makefile -M po/de.po -C052 po/de.po po/pl.po - -commit e92ec3aca935d75e2b17f4ba9738160463fe900e -Author: Allison Barlow -Date: Thu Dec 3 18:13:17 2009 +0000 - - fixes 1055, tool dialogs not appearing in fullscreen mode. - -M src/EditingTools.vala - -commit 55ecc77fd6b4fd20442c99e87a46dad837c09636 -Author: Jim Nelson -Date: Thu Dec 3 17:57:06 2009 +0000 - - #1067: Undo drag-and-drop move photos to event no longer asserts. - Also cleaned up some code that, in this - particular code path, was preventing Pages from being fully unref'ed. - -M THANKS -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/CommandManager.vala -M src/Commands.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala -M src/util.vala - -commit 211a38e716a43be05309f201184bddffaf134336 -Author: Allison Barlow -Date: Thu Dec 3 00:41:42 2009 +0000 - - fixes access key bugs 1060, 1062, and 1063. adds hide command to - photo context menu. - -M src/CollectionPage.vala -M src/EditingTools.vala -M src/LibraryWindow.vala -M src/PhotoPage.vala -M ui/collection.ui - -commit f32e8bde97c76d046c49646d9b1e67ba218c1619 -Author: Jim Nelson -Date: Thu Dec 3 00:07:15 2009 +0000 - - #1066: Fixed assertion triggered when using Ctrl+H to hide an item - while the mouse was hovering over it. - -M src/CheckerboardLayout.vala -M src/DataObject.vala -M src/Page.vala - -commit b698ee1d8c63631871d6696cefbc335b4dc8e4ea -Author: Jim Nelson -Date: Wed Dec 2 23:18:57 2009 +0000 - - Due to changes for Hide/Unhide, some assertions improperly fire - in DataCollection. This has to do with - ViewCollection filtering. This fixes that so the assertions are - properly checked. - -M src/DataCollection.vala - -commit 9ef095969f816eb2782053482607ad1b51bca3ae -Author: Jim Nelson -Date: Wed Dec 2 22:51:32 2009 +0000 - - #1032: Assertion due to pages being double-freed -- forgot to clear - the lists. - -M src/LibraryWindow.vala - -commit 97630233ac5b0474858eddcbf557dbdd9f0b7cfb -Author: Allison Barlow -Date: Wed Dec 2 22:21:16 2009 +0000 - - fixes 1064: remove mirror from context menu - -M src/CollectionPage.vala -M src/PhotoPage.vala -M ui/collection.ui -M ui/photo.ui - -commit 2e72e447f0e1cb986eb6f5c4c9d013877cf3b9ee -Author: Allison Barlow -Date: Wed Dec 2 22:18:06 2009 +0000 - - fixes 954: down arrow gives focus to toolbar, up arrow doesn't give - focus back - -M src/PhotoPage.vala - -commit 7313f20a86a3af22852e1ecc06ecdec9d17ca15d -Author: Lucas Beeler -Date: Wed Dec 2 21:48:57 2009 +0000 - - Resolves bug #1046 (can't log out of Facebook and log in as a - different user) - -M src/FacebookConnector.vala -M src/WebConnectors.vala - -commit 2d9fc337b0c3de9cddbb41dd5bbeed4e485f13cd -Author: Lucas Beeler -Date: Wed Dec 2 21:36:52 2009 +0000 - - Changed Makefile to support installing German and Italian - translations; changed Makefile such that POT strings template file - (shotwell.pot) is included in the distribution tarball. - -M Makefile - -commit 49ac227d0cf6c233a70e3bf4ea6583b3f08f4074 -Author: Lucas Beeler -Date: Wed Dec 2 21:07:40 2009 +0000 - - Added user-submitted German translation; fixed POEdit metadata in - French and Italian translation files; fixed POEdit metadata in POT - strings template file. - -C052 po/shotwell.pot po/de.po -M po/fr.po -M po/it.po -M po/shotwell.pot - -commit 65ef7f4e3eca30afcde2f7c006ce36b8fbe72a7f -Author: Jim Nelson -Date: Wed Dec 2 20:41:53 2009 +0000 - - #1058/#1059: Both were related to how hidden photos are handled - inside the ViewCollection. Now reinforcing - interface where a ViewFilter must be used to control hidden-ness. - Also, found a minor bug where the "View -> - Hidden Photos" was not keeping its state when switching between pages. - -M src/CollectionPage.vala -M src/DataCollection.vala - -commit 963831309140f9c04c34f1681821b5dab35531f3 -Author: Jim Nelson -Date: Wed Dec 2 19:24:52 2009 +0000 - - #1053: Missing ? in SQL command. - -M src/DatabaseTables.vala - -commit 2513627d795666f262c1d2f3f8093aff3eefb55e -Author: Allison Barlow -Date: Wed Dec 2 19:23:31 2009 +0000 - - fixes 940: Export Photo dialog should conform to interface, 960: - progress dialog should conform to interface, 972: uneven selection - margin - -M src/CheckerboardLayout.vala -M src/Dialogs.vala - -commit e60b7e7bc52d3d8432cc85c08ecd1d7081f34c5e -Author: Jim Nelson -Date: Wed Dec 2 19:20:31 2009 +0000 - - #1054: Direct-load icons need to be copied now if they're to be - modified (which the histogram control does to - theme the nubs). - -M src/CustomComponents.vala -M src/Resources.vala - -commit 5613d33747cc27fcaebd06c13ddf8f3b3e42d36d -Author: Lucas Beeler -Date: Wed Dec 2 19:06:58 2009 +0000 - - Fixes bug #1030, "Facebook login yields segmentation fault." - -M src/WebConnectors.vala - -commit dce4183aaa74e2b6f2e227d99013eb0a36d84409 -Author: Jim Nelson -Date: Wed Dec 2 02:24:41 2009 +0000 - - #73: Hide/Unhide photos implemented. - -A icons/hidden.svg -M misc/shotwell.schemas -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/Commands.vala -M src/Config.vala -M src/DatabaseTables.vala -M src/Photo.vala -M src/Resources.vala -M src/Thumbnail.vala -M src/main.vala -M ui/collection.ui - -commit 5bad8e9a4e4f76f6be6552b27338be9cbf8ff50b -Author: Allison Barlow -Date: Tue Dec 1 20:48:02 2009 +0000 - - implements 964: move photos between events and fixes 1004: move Zoom - In, Zoom Out to View menu, 1027: slideshow delay defaults to 1 second, - and 936: Make Key Photo in context menu is available when more than - one photo is selected - -M src/CollectionPage.vala -M src/Commands.vala -M src/Config.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/Sidebar.vala -M src/util.vala -M ui/collection.ui - -commit e87b37ddfe0c4bf0187dad21eea55f512c554e9a -Author: Adam Dingle -Date: Wed Nov 25 21:55:31 2009 +0000 - - Added a comment. - -M src/system.vala - -commit 779b13d7e81d91a334de9847d79566596ecb1349 -Author: Adam Dingle -Date: Wed Nov 25 21:52:41 2009 +0000 - - Fixed bug 1033 ([windows] Help->Contents does nothing). - -M src/AppWindow.vala -M src/system.vala -M src/windows.c - -commit d97228c5a00ddbb90414640c6775e163bb982313 -Author: Jim Nelson -Date: Wed Nov 25 01:25:55 2009 +0000 - - #1029: Fixes bug where second import would cause a crash. - -M src/LibraryWindow.vala - -commit 46a1eb568e318e45d5bf47be8a9d2f02198203c8 -Author: Jim Nelson -Date: Wed Nov 25 00:57:35 2009 +0000 - - #879: Delete open photo (i.e. when in full-window or fullscreen mode) - -M src/CollectionPage.vala -M src/Dialogs.vala -M src/Page.vala -M src/PhotoPage.vala -M ui/direct.ui -M ui/photo.ui - -commit fe00403d16e762b0b12fdf3567f2b6f948028ee2 -Author: Adam Dingle -Date: Tue Nov 24 22:40:36 2009 +0000 - - Eliminated a couple of build warnings on Windows. - -M src/LibraryWindow.vala - -commit 89d8dd310aa36848aecef4a032cbb6f272afadea -Author: Jim Nelson -Date: Tue Nov 24 22:30:13 2009 +0000 - - #72: Duplicate photo implemented. - -M Makefile -M src/BatchImport.vala -M src/CollectionPage.vala -M src/Commands.vala -M src/DatabaseTables.vala -M src/Exif.vala -M src/ImportPage.vala -A src/LibraryFiles.vala -M src/Photo.vala -M src/Properties.vala -M src/Resources.vala -M src/ThumbnailCache.vala -M ui/collection.ui - -commit 8d70f98f4cf118c9c65991e48e4c72b587029c59 -Author: Adam Dingle -Date: Tue Nov 24 21:21:20 2009 +0000 - - This change adds an alternate GConf implementation to be used only - on Windows and Mac OS. - It simply writes out GConf settings to an .ini file. - - This fixes bug #968 ([windows] wait cursor displays for 5 seconds - at startup). - -M Makefile -M src/Config.vala -A src/GConf.vala -M windows/install-deps -M windows/winstall.iss - -commit cfa188428b4acc530912c5b9832987639fefab6a -Author: Adam Dingle -Date: Tue Nov 24 19:06:56 2009 +0000 - - Fixed a typo in the extended properties view. - -M src/Properties.vala - -commit 46745b72a35f75d95fca0e5534dc286cb6d17bd7 -Author: Adam Dingle -Date: Tue Nov 24 18:12:39 2009 +0000 - - Added binutils as a Shotwell build dependency; it contains the - windres binary which - we use for adding an icon to the Shotwell executable. - -M windows/install-deps - -commit aec487140541a6f4fbe8eac25d46e8facfed76a4 -Author: Jim Nelson -Date: Mon Nov 23 22:32:19 2009 +0000 - - #65/#1001: Undo/redo implemented for all appropriate commands. - When undo/redo selected, switches back to page - the operation occurred on. Also detected during this patch that - Pages were not always being freed when removed; - this fixes that as well. - -M src/CheckerboardLayout.vala -M src/CommandManager.vala -M src/Commands.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Resources.vala - -commit 3628f9d39505421f78fbc59dc1f64def860586d0 -Author: Adam Dingle -Date: Mon Nov 23 20:36:53 2009 +0000 - - Fixed bugs #933 ([windows] Shift key does not work for before/after - comparison) and - #1023 ([windows] Ctrl key should reverse rotation direction). - -M src/AppWindow.vala -M src/Page.vala - -commit 1e89316d417167dc937bd57878327d7ddf47b784 -Author: Adam Dingle -Date: Mon Nov 23 18:34:51 2009 +0000 - - Fixed #910 ([windows] tool windows should not have title bars). - -M src/EditingTools.vala - -commit f0d3c613b83e87dca46d6fa48399a3aa0e2d74f5 -Author: Adam Dingle -Date: Mon Nov 23 16:17:40 2009 +0000 - - Fixed #967 ([windows] Start menu item should show Shotwell icon). - -M Makefile -A icons/shotwell.ico -A windows/shotwell.rc -M windows/winstall.iss - -commit 35d1aec427c334d56eb1ffe3f02fe71c69ddabed -Author: Adam Dingle -Date: Fri Nov 20 23:33:44 2009 +0000 - - Fixed bug 1020 (imported photos have date January 1900). - -M src/windows.c - -commit 5356d1401c620d266a93e7544dfb591378fbcfa8 -Author: Adam Dingle -Date: Fri Nov 20 22:54:13 2009 +0000 - - Eliminated two string literal build warnings. - -M src/CameraTable.vala -M src/FacebookConnector.vala - -commit 4356f57ea36e4666f5cc890a50e7bc3caf7ebebb -Author: Adam Dingle -Date: Fri Nov 20 22:00:33 2009 +0000 - - Added NO_PUBLISHING define which excludes Facebook/Flickr export - on Windows. - -M Makefile -M src/CollectionPage.vala -M src/FacebookConnector.vala -M src/WebConnectors.vala - -commit 13980e0d635a1aafad105bd97ec87dce871993bf -Author: Adam Dingle -Date: Fri Nov 20 20:15:06 2009 +0000 - - Added a script which downloads and installs build dependencies - on Windows. - -M src/windows.c -A windows/install-deps - -commit 362f0afa1f0760f6ebe4137a8225a0dc272872dd -Author: Jim Nelson -Date: Fri Nov 20 04:37:31 2009 +0000 - - For #65/#1001: Create Event now undoable. Allison needs this to - complete #964. - -M src/CollectionPage.vala -M src/Commands.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/DatabaseTables.vala -M src/Event.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala - -commit 3c9780dd7643652ce19262bc30d5ab5712dcfb68 -Author: Lucas Beeler -Date: Wed Nov 18 19:34:34 2009 +0000 - - Enables publishing of photos to Facebook directly from Shotwell; - closes ticket #180. - -M Makefile -A icons/publish.png -M misc/shotwell.schemas -M src/CollectionPage.vala -M src/Config.vala -A src/FacebookConnector.vala -M src/Resources.vala -A src/WebConnectors.vala - -commit a5f02bb3f63229c1ad6b7f8116e2883a5394ffb8 -Author: Jim Nelson -Date: Wed Nov 18 19:11:19 2009 +0000 - - Updated to Emanuele's name. - -M THANKS - -commit 05abb62d5a86cbd650c787c7ddaa43fc6aac5157 -Author: Jim Nelson -Date: Wed Nov 18 19:10:00 2009 +0000 - - Updated configure script (with appropriate changes in Makefile) - to assist packagers. From Joeny Ang. - -M Makefile -M THANKS -M configure - -commit 8012c3c7e0cadf14137725f5cebaeafdf88e86b5 -Author: Jim Nelson -Date: Wed Nov 18 18:49:34 2009 +0000 - - Italian translation and type from caccolangrifata@gmail.com. - -M THANKS -A po/it.po -M src/AppWindow.vala - -commit 95a7ce9f92f9e9fcab8f4e6e36e7b21441b73027 -Author: Allison Barlow -Date: Wed Nov 18 18:05:28 2009 +0000 - - added extended information window - -M misc/shotwell.schemas -M src/Config.vala -M src/Exif.vala -M src/LibraryWindow.vala -M src/Properties.vala -M ui/collection.ui -M ui/events_directory.ui -M ui/import.ui -M ui/photo.ui -M vapi/libexif.vapi - -commit 5c29a2e0883a4dcd1ac74aaaa851ea589b52c304 -Author: Jim Nelson -Date: Wed Nov 18 04:16:23 2009 +0000 - - Part two of #65: All adjustments in the photo editor (including each - slider in the adjustments panel) are now - available as undo/redo. - -M src/ColorTransformation.vala -M src/CommandManager.vala -M src/Commands.vala -M src/EditingTools.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/util.vala -M ui/direct.ui -M ui/photo.ui - -commit 74dc7f23144598ac3cf93db2624dc4b7e9f46c2b -Author: Jim Nelson -Date: Mon Nov 16 18:46:39 2009 +0000 - - Moved VAPI files into their own directory. - -M Makefile -R100 src/ExtendedPosix.vapi vapi/ExtendedPosix.vapi -R100 src/FStream.vapi vapi/FStream.vapi -R100 src/FixedKeyFile.vapi vapi/FixedKeyFile.vapi -R100 src/gphoto.h vapi/gphoto.h -R100 src/libexif.vapi vapi/libexif.vapi -R100 src/libgphoto2.vapi vapi/libgphoto2.vapi - -commit da35e8b137657f21a3ba0083400bf952257d741a -Author: Jim Nelson -Date: Sat Nov 14 03:18:20 2009 +0000 - - Minor fixes to the init/terminate logic. - -M src/AppDirs.vala -M src/AppWindow.vala -M src/Debug.vala -M src/main.vala - -commit 9432a48f2ca4f9c2f1e8bf01a39c77163ac3906b -Author: Jim Nelson -Date: Sat Nov 14 02:58:08 2009 +0000 - - Switching fully over to using a Singleton pattern for PhotoTable - and EventTable. - -M src/DatabaseTables.vala -M src/Event.vala -M src/ThumbnailCache.vala - -commit 4f70d3cf4b3ccf8e58ed3c7bcc440ff0bebb91b9 -Author: Jim Nelson -Date: Thu Nov 12 22:55:23 2009 +0000 - - First stage of #65/#1001. This patch was getting large and I wanted - to check it in. Undo and Redo are - functional for most operations on photos and renaming events. - Other operations in next commit. - -M Makefile -M src/AppDirs.vala -M src/AppWindow.vala -M src/CollectionPage.vala -A src/CommandManager.vala -A src/Commands.vala -M src/DatabaseTables.vala -M src/Dialogs.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -A src/SlideshowPage.vala -M src/image_util.vala -M ui/collection.ui -M ui/direct.ui -M ui/events_directory.ui -M ui/photo.ui - -commit 7649c34c185200712a58cb06c816759499330dc0 -Merge: a33ec8f5 ed7fb71c -Author: Jim Nelson -Date: Thu Nov 12 19:56:16 2009 +0000 - - Merge from 0.3 branch. - -commit ed7fb71c4e7f6f264d485c3954ae7012c871c473 -Author: Jim Nelson -Date: Thu Nov 12 19:55:19 2009 +0000 - - From Matthias Clasen. - -M Makefile - -commit a33ec8f5da69873d95d0c3977f05b5a0b05d45f6 -Merge: 9bb87f0c 166ccb58 -Author: Jim Nelson -Date: Thu Nov 12 00:08:37 2009 +0000 - - Merge from 0.3.2 branch. - -commit 166ccb58765ef474bef76e16446b8559b0198dfa -Author: Jim Nelson -Date: Wed Nov 11 23:47:51 2009 +0000 - - Marked for branch. - -M Makefile - -commit 85e2fe50a2af483e957ab2c145cda4be7bf1581a -Author: Jim Nelson -Date: Wed Nov 11 23:46:13 2009 +0000 - - Changes for 0.3.2. - -M Makefile -M NEWS -M debian/changelog - -commit 616f9df8c0a0ca02802c32b0056e5a7b6d5f2f77 -Author: Jim Nelson -Date: Wed Nov 11 23:04:51 2009 +0000 - - #1002: Loosened up the assertion that checks the pixbuf's dimensions - in the pipeline. Pixel-accuracy is too - much to ask here when considering all the subsystems involved. - Now the assertions just check that the pixbuf's - dimensions are in the ballpark. - -M src/Box.vala -M src/Dimensions.vala -M src/Photo.vala -M src/image_util.vala - -commit 9bb87f0c444c77ad73a554425429b0b9fec645e4 -Author: Adam Dingle -Date: Wed Nov 11 19:33:49 2009 +0000 - - Updated Windows installer generator to include SVG dependencies. - -M windows/winstall.iss - -commit 3ac58f189a9454abc2b406fc3c83aa17ca950b6a -Author: Jim Nelson -Date: Wed Nov 11 19:04:39 2009 +0000 - - #998: Now handles situation where hald is not running or ready - for connections. Shotwell will continue to run, - but won't be able to detect cameras. - -M Makefile -M src/CameraTable.vala - -commit 2a0262b18de17686282b27db81e83acdee78c453 -Author: Adam Dingle -Date: Wed Nov 11 18:41:31 2009 +0000 - - Removed NO_SVG in the Windows build since we've figured out how to - get SVG working on Windows. - -M Makefile - -commit 35c478d5165f25a3da85f245ae79b61803fc8ff3 -Author: Jim Nelson -Date: Wed Nov 11 00:28:36 2009 +0000 - - Updating version number to trunk. - -M Makefile - -commit c2fdd646e87dad08f993beffd2e6ba9cbf25aa42 -Author: Allison Barlow -Date: Tue Nov 10 19:35:39 2009 +0000 - - batch autoenhance feature (642) added and bug 994 fixed - -M src/CollectionPage.vala -M src/DataCollection.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/SortedList.vala -M ui/collection.ui - -commit fba1e5ada30c803312e073d41d07ada28251931f -Merge: 4f2830dc 8634ac02 -Author: Jim Nelson -Date: Mon Nov 9 23:55:16 2009 +0000 - - Merge of 0.3.0 branch. - -commit 8634ac02f55a5271e902eea1fbf906fbc51b3946 -Author: Jim Nelson -Date: Mon Nov 9 23:52:41 2009 +0000 - - #990: Binary dependencies fixed in Debian packaging. Other work in - prep for packaging 0.3.1. - -M Makefile -M NEWS -M THANKS -M debian/changelog -M debian/control -M debian/copyright - -commit 4f2830dcd570a2788b092749edc89d9744e16586 -Merge: 71b7914f 56135595 -Author: Jim Nelson -Date: Mon Nov 9 23:28:08 2009 +0000 - - Merge from 0.3.0 branch. - -commit 71b7914f34f17283d3b779ca5a265ebfcce6768c -Author: Allison Barlow -Date: Mon Nov 9 22:44:22 2009 +0000 - - creat new events from selected photos - -M src/CollectionPage.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/PhotoPage.vala -M ui/collection.ui -M ui/events_directory.ui - -commit 5613559571d86ab96b95d607711532088e1b5dec -Author: Jim Nelson -Date: Fri Nov 6 01:55:50 2009 +0000 - - Further changes for packagers. - -M Makefile - -commit 4d7b99494137736804213efdaedbbb1829064510 -Author: Allison Barlow -Date: Fri Nov 6 00:36:26 2009 +0000 - - altered items in DataCollections are properly re-sorted - -M src/DataCollection.vala -M src/Event.vala -M src/EventsDirectoryPage.vala - -commit 7d8c6cb03250bd758968c35fa47706f869144027 -Author: Jim Nelson -Date: Thu Nov 5 19:22:17 2009 +0000 - - Some changes to help package managers -- mkdir -p on every directory - during install (think DESTDIR) and - back-porting configure script changes made by Adam. - -M Makefile -M configure - -commit 486c905cc573a700d5efc2c3be7dac36a0b6ac1e -Author: Jim Nelson -Date: Thu Nov 5 00:36:11 2009 +0000 - - #963: Merge button now marked as important. Other buttons will come - in when the 0.3.0 branch is merged to - trunk. - -M src/EventsDirectoryPage.vala - -commit 526b4ad2ccea8cc915e774e40ae983447a18d28c -Author: Jim Nelson -Date: Thu Nov 5 00:34:17 2009 +0000 - - #963: Now marking toolbar items as important where appropriate. - -M src/CollectionPage.vala -M src/ImportPage.vala -M src/PhotoPage.vala - -commit 831417fa4fc56793569a1b61ff8b555a15fb23eb -Author: Jim Nelson -Date: Thu Nov 5 00:11:15 2009 +0000 - - Fixes unhandled exceptions caught by Vala 0.7.8. - -M src/AppWindow.vala -M src/CameraTable.vala -M src/DatabaseTables.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/Exif.vala -M src/Photo.vala - -commit 555368278f9e3dd77b52c60cb09589952013d21e -Author: Jim Nelson -Date: Wed Nov 4 22:23:07 2009 +0000 - - Makefile changes for better packaging support, from a patch submitted - by Matthias Clasen. - -M Makefile -M misc/shotwell-viewer.desktop - -commit e5bd957bb798467a0248748cc9853eb73324544e -Author: Adam Dingle -Date: Wed Nov 4 20:11:00 2009 +0000 - - Added an #if to fix the Windows build. - -M src/LibraryWindow.vala - -commit 1114af4885eaf3deeb648f1fa6264b127fa21131 -Author: Allison Barlow -Date: Tue Nov 3 20:32:19 2009 +0000 - - added progress bar for merging over 50 photos into an event - -M src/EventsDirectoryPage.vala - -commit 1b379f71b4b1826481d84426a41a8fc49da58be8 -Merge: 574cce1b f9b19cf5 -Author: Jim Nelson -Date: Tue Nov 3 19:32:46 2009 +0000 - - Final merge from 0.3.0 branch to trunk. These changes are largely - related to the packaging process. - -commit 574cce1b6cff20f837146acb15356592620df0e9 -Author: Jim Nelson -Date: Tue Nov 3 19:04:43 2009 +0000 - - For some reason, Queryable has returned. Bye. - -D src/Queryable.vala - -commit 50860377c2565184397674dd458b71f40dd0d359 -Author: Allison Barlow -Date: Tue Nov 3 00:46:55 2009 +0000 - - adds merge events feature. present in right-click context menu, - in the edit menu, and in the toolbar. - -M src/CollectionPage.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/DatabaseTables.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Sidebar.vala -M src/Thumbnail.vala -M src/Workers.vala -M ui/events_directory.ui - -commit f9b19cf5a281693b04c34470e839b8431a7567f7 -Author: Jim Nelson -Date: Mon Nov 2 22:49:02 2009 +0000 - - And yet more Debian goofery. - -M Makefile -M debian/control -M debian/dirs - -commit d8e23200c3ff6d47d65a5e7515db66b4a4393a59 -Author: Jim Nelson -Date: Mon Nov 2 21:45:50 2009 +0000 - - More changelog goofery. - -M debian/changelog - -commit 050e35cfc6c6d37d0332ef80e66656663c647244 -Author: Jim Nelson -Date: Mon Nov 2 21:25:42 2009 +0000 - - Forgot to sign the changelog. - -M debian/changelog - -commit 42c249659ef92ac075bdebb0631718ccb1efc23c -Author: Jim Nelson -Date: Mon Nov 2 20:15:12 2009 +0000 - - Changelog, readme, and Debian changes in preparation of packaging. - -M Makefile -M NEWS -M README -M debian/changelog -M debian/control -M debian/copyright - -commit da3433f47e2f0214da62cd877918ac2db8cd36f8 -Author: Lucas Beeler -Date: Mon Nov 2 19:45:15 2009 +0000 - - Updated POT translations template file so that it reflects the - set of strings present in the application after the shotwell 0.3 - string freeze. - -M po/shotwell.pot - -commit 9a9544bb6ca9ec883ed6271a94d1294b95c42e56 -Merge: 0ce4554f b9a5300b -Author: Jim Nelson -Date: Mon Nov 2 19:14:32 2009 +0000 - - Merge from Shotwell 0.3.0 branch. - -commit b9a5300b8a9538157c56d679bf2f46ec8102f1b8 -Author: Jim Nelson -Date: Mon Nov 2 19:11:08 2009 +0000 - - #970: Dialog is now Keep / Delete. - -M src/Dialogs.vala -M src/ImportPage.vala - -commit 0ce4554f314cae170fbbff9bca6f98aa7383ad78 -Merge: 05ab1943 bc7951bb -Author: Jim Nelson -Date: Mon Nov 2 18:59:23 2009 +0000 - - Merge from shotwell-0.3.0 branch. - -commit 05ab1943b8e80bafbaeeb3379fa1630f1506ef96 -Author: Adam Dingle -Date: Fri Oct 30 23:21:59 2009 +0000 - - 1. Factored out directory-related methods from AppWindow into a - new class - AppDirs. - - 2. On Windows, prepend the directory containing the Shotwell - executable to - the PATH on startup. This is necessary so that gconfd can find - its DLLs, - which live in the Shotwell executable directory. - -M Makefile -A src/AppDirs.vala -M src/AppWindow.vala -M src/BatchImport.vala -M src/GPhoto.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/Resources.vala -M src/ThumbnailCache.vala -M src/main.vala -M src/system.vala - -commit bc7951bb636147a8db08c1d8a1ad21817602cdb9 -Author: Jim Nelson -Date: Fri Oct 30 23:10:35 2009 +0000 - - This fixes a bug Allison discovered in trunk. Migrating it to 0.3.0. - -M src/Thumbnail.vala - -commit acf9707ae51a1aaa53a4dd8740df8e4f2fff8cd9 -Author: Jim Nelson -Date: Fri Oct 30 21:29:51 2009 +0000 - - #956: Need to re-hide progress bar after pages are added to the - notebook, as this requires a show_all() on it, - which shows all hidden widgets. This fixes the problem by hiding - the progress_bar when necessary when the page - is switched to. - -M src/ImportPage.vala - -commit bd896a0c22874fcf714aacaa33447217ce09166e -Author: Jim Nelson -Date: Fri Oct 30 19:13:15 2009 +0000 - - #962: The full-window page was holding a ref to the Photo object - after it had been deleted, triggering the - assertion. This change ensures the ref is dropped when a photo - is deleted. - -M src/PhotoPage.vala - -commit a7b6053c5e73966f962de6e6dd5d50f4301ff685 -Author: Jim Nelson -Date: Fri Oct 30 17:49:28 2009 +0000 - - #957: A function used within the Photo pipeline needed to be performed - atomically and was not. This fixes that - problem and cleans up atomicity elsewhere in the pipeline. - -M src/Photo.vala - -commit 35d592bf52630a89c1545d1510597b92f74dc4b4 -Author: Adam Dingle -Date: Fri Oct 30 17:35:28 2009 +0000 - - Added an Inno Setup script which can generate a Windows installer. - -A windows/winstall.iss - -commit 05fd127079ac5f41f5d143b25f526a52c765fdca -Author: Jim Nelson -Date: Fri Oct 30 00:28:49 2009 +0000 - - #961: Fixed. A long-running problem was that SinglePhotoPage resized - the DrawingArea widget to match the - viewport. This was unnecessary (GtkViewport does this automatically) - and, with certain scrollbar policies, - would cause the described problem. - -M src/Page.vala - -commit c52960c4b5939d221b06407bdbdf55a22eb39752 -Author: Lucas Beeler -Date: Thu Oct 29 21:29:59 2009 +0000 - - Changed the event signalling mode of the adjustment palette sliders - from Discontinuous to Delayed. - -M src/EditingTools.vala - -commit 4857e5f162bf69040be658aa803e36e28c8ab005 -Author: Jim Nelson -Date: Thu Oct 29 21:03:57 2009 +0000 - - #995: Ellipses fixed when unmounting camera. #958: Double-clicking - slider and moving it is a feature of GTK. - Changed code to fix crash due to reference counting/signal disconnect - issues. - -M src/EditingTools.vala -M src/ImportPage.vala - -commit 9590df69dcd0bf52d0695ca066c20c4236d3bff2 -Author: Jim Nelson -Date: Wed Oct 28 23:57:50 2009 +0000 - - #656: Remove dialog reworded. Fixed an HIG issue with the dialog - title. - -M src/CollectionPage.vala - -commit 956f6d7e8257a60d250b37d41e25488b2fa903fe -Author: Jim Nelson -Date: Wed Oct 28 22:54:04 2009 +0000 - - #948: Folders no longer counted as part of the import manifest. - If absolutely nothing is imported, an - appropriate dialog is presented to the user. - -M src/BatchImport.vala -M src/Dialogs.vala - -commit d7cbd2105d53259d1b8ab75c1fe92f3caf4870e4 -Author: Adam Dingle -Date: Wed Oct 28 22:45:00 2009 +0000 - - Added code so that we can find the directory where Shotwell is - installed on either Linux or Windows. - -M Makefile -M src/AppWindow.vala -M src/system.vala - -commit 864a83fcccd4032b1fa60fdbaddf099e3613f086 -Author: Jim Nelson -Date: Wed Oct 28 22:20:39 2009 +0000 - - Fixed a bug where a month event page was triggering an assertion - when accessed immediately after it was created - by an import. This was due to Gtk.Notebook.show_all() not being - called after the page was added to the notebook - (which is a no-no). This fixes it, and hopefully ensures it's always - called when a page is added. - -M src/Event.vala -M src/LibraryWindow.vala -M src/Page.vala - -commit 7bd262055c99d702d1778e5a128fb8d9bf85bd14 -Author: Adam Dingle -Date: Wed Oct 28 21:20:35 2009 +0000 - - Use GConf on Windows. - -M Makefile - -commit 8ee8bb6d20758af5fc60e7682e5fadb363c21dff -Author: Adam Dingle -Date: Wed Oct 28 19:51:29 2009 +0000 - - Use /bin/bash to execute configure. This avoids a shell portability - problem since - different versions of /bin/sh may echo newlines differently. - -M configure - -commit 0478f27be43b8db1dbc54929565f51bf53da6dc8 -Author: Jim Nelson -Date: Wed Oct 28 19:26:19 2009 +0000 - - #728: Drag selection now works properly at the bottom of a large - collection. Related to a signed 16-bit - overflow bug when GDK window grab is enabled (reported at - https://bugzilla.gnome.org/show_bug.cgi?id=599937). - Also, we discovered that signals must be disconnected manually, - so have done that as well in places where - required. - -M src/BatchImport.vala -M src/CheckerboardLayout.vala -M src/DataCollection.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/PhotoPage.vala -M src/Thumbnail.vala - -commit 1afb19009e911934ac74fcad90fc9c6b958478ac -Author: Lucas Beeler -Date: Wed Oct 28 18:22:42 2009 +0000 - - Removed periods after "cm" abbreviation in crop tool aspect ratio - popup box. This change resolves ticket #941. - -M src/EditingTools.vala - -commit b7ea71fef191eca2092ef22514d19976fcb835b3 -Author: Jim Nelson -Date: Sat Oct 24 01:01:42 2009 +0000 - - #711: No full fixes for this, as it's been decided this is a Gtk - issue. However, did remove the scrollbars - flashing as the window is shrunk by the user, which helps. Also, - in the investigation found some - unused/unnecessary code paths. Also fine-tuned the readahead caching, - which was not quite right. Finally, - removing the flashing scrollbars revealed problems in fullscreen mode, - and fixed that as well. - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/Dimensions.vala -M src/DirectWindow.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/PhotoPage.vala -M src/PixbufCache.vala - -commit 897f634f5faa34d4b700a583d44fd60819d008f8 -Author: Adam Dingle -Date: Fri Oct 23 22:35:25 2009 +0000 - - Check the number of CPUs on Windows systems. - -M Makefile -M src/Workers.vala -M src/main.vala -A src/system.vala -M src/windows.c - -commit d8678b060548e7683ecabd67c70e1c7b70adbbc4 -Author: Adam Dingle -Date: Fri Oct 23 21:46:38 2009 +0000 - - Enabled building on a Mac via GTK-OSX. - -M Makefile -M src/LibraryWindow.vala -A vapi/ige-mac-integration.vapi - -commit 324b7ef97530e2d8bfdff85070c8965e4a8d1b54 -Author: Jim Nelson -Date: Thu Oct 22 22:17:54 2009 +0000 - - #874: Increased event lull duration (event gap threshold) to 4 hours. - -M src/Event.vala - -commit 44d47c1d9592823fd9f9738f52e04e29f6d1dd6d -Author: Jim Nelson -Date: Thu Oct 22 22:06:12 2009 +0000 - - #743: Now displaying a cancellable modal progress bar while rotating, - reverting, or deleting a large number of - photos at once. - -M src/CollectionPage.vala -M src/DataCollection.vala -M src/Dialogs.vala - -commit 3a58286d303a74aa3e6a269018ab98b01a0c93fa -Author: Adam Dingle -Date: Thu Oct 22 22:00:55 2009 +0000 - - 1. On Windows, allow files to be imported by dragging them into the - Shotwell window. - - 2. On Windows, added a linker flag which prevents a console window - from appearing each time we run Shotwell. - -M Makefile -M src/LibraryWindow.vala - -commit b46e5672c6d29a51dc5466476d5c5d10556c12e8 -Author: Jim Nelson -Date: Thu Oct 22 00:23:03 2009 +0000 - - #899: Fixed crash on import due to faulty EXIF data. Also fixed a - bug due to recent readahead commit. - -M src/Photo.vala -M src/PhotoPage.vala - -commit d08d436f039bdd0b04e7edff57fbba483e1423ee -Author: Jim Nelson -Date: Wed Oct 21 23:32:39 2009 +0000 - - This prevents readahead in the direct edit case, which only slows - it down (due to importing on the fly). Will - need to be revisited at a future point. - -M src/PhotoPage.vala - -commit c7469c915b42f10788993035d53f6d3027f48621 -Author: Jim Nelson -Date: Wed Oct 21 22:56:48 2009 +0000 - - #741: Now performing readaheads in full-window and fullscreen view - with a cache filled by background threads. - Also fixed some issues exposed by these readaheads in direct edit - mode and fullscreen mode. - -M Makefile -M src/AppWindow.vala -M src/ImportPage.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -A src/PixbufCache.vala -M src/ThumbnailCache.vala -M src/Workers.vala -M src/main.vala -M src/util.vala - -commit c469ac23b551d8a7f5fb8751850a8cfa2a01d6ab -Author: Adam Dingle -Date: Wed Oct 21 14:47:19 2009 +0000 - - Added PNG icons for Windows port. - -A icons/crop.png -A icons/import.png -A icons/make-primary.png -A icons/object-flip-horizontal.png -A icons/object-rotate-left.png -A icons/object-rotate-right.png -A icons/pin-toolbar.png -A icons/return-to-page.png -A icons/shotwell.png - -commit 4a202fa5e32d9f2f137e8fed659c16f1e79ca28d -Author: Adam Dingle -Date: Wed Oct 21 14:45:53 2009 +0000 - - Various changes to allow Shotwell to build on Windows. - - (The new .png files will arrive in a separate commit since I have - them on - a different machine.) - -M Makefile -M src/CameraTable.vala -M src/Config.vala -M src/CustomComponents.vala -M src/GPhoto.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/Resources.vala -M src/Workers.vala -M src/main.vala -A src/windows.c - -commit 15496f2459759c50bea18105353d3710df487070 -Author: Allison Barlow -Date: Mon Oct 19 22:43:28 2009 +0000 - - generalized EventProxyPage code to StubPage, which is used to create - stubs for Event pages and EventDirectory pages. - -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala - -commit 716c866c73fee3cfe39a45a0378c5dd1560ebe88 -Author: Jim Nelson -Date: Fri Oct 16 22:56:56 2009 +0000 - - Upped to version 0.3.1 in preparation for 0.4.0 development. - -M Makefile - -commit 5d3b898ff001fbf2184c291982a8e85868344c37 -Author: Jim Nelson -Date: Fri Oct 16 22:54:37 2009 +0000 - - Branching to complete 0.3.0 tickets. Trunk now code repository - for 0.4.0. - -commit a599540dbfd79e2b6fca6cdf3e5dc172721a9a6b -Author: Allison Barlow -Date: Fri Oct 16 17:50:51 2009 +0000 - - proper conf install - -M Makefile - -commit 7b9d01a3ce5457d7b517fa4b5e5d93a75b35a96e -Author: Allison Barlow -Date: Fri Oct 16 00:01:36 2009 +0000 - - allows for sidebar navigation with keyboard - -M src/LibraryWindow.vala -M src/Page.vala -M src/Sidebar.vala - -commit 82624ecb694f34857e28068efc81b5129de5af31 -Author: Jim Nelson -Date: Thu Oct 15 23:42:39 2009 +0000 - - #893 exposed a bug in the import code where a file that was not - copied into the library directory (typically - ~/Pictures) because it was located inside the user photos directory - was deleted if the import failed. Shotwell - was deleting the file if it was supposed to be copied but wasn't. - Now, it only deletes if file was actually - copied. - -M src/AppWindow.vala -M src/BatchImport.vala - -commit f8c461b5ab105c914b263ce06d526f16b92952c3 -Author: Jim Nelson -Date: Thu Oct 15 20:55:32 2009 +0000 - - #534: User now asked at end of import if they want to delete the - photos on the camera. - -M Makefile -M src/BatchImport.vala -A src/Dialogs.vala -M src/Event.vala -D src/ExportDialog.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Sidebar.vala - -commit 0bdbc1dae13f486e2f4e32ca9bf3dd0bcdffb7ad -Author: Lucas Beeler -Date: Wed Oct 14 23:34:20 2009 +0000 - - Resolves bug #891 ("Image does not grow/shrink with window when - red-eye is activated, and may crash"). - -M src/EditingTools.vala - -commit 0d66130afa5e7abbb54d066112bad038f5183c0c -Author: Lucas Beeler -Date: Wed Oct 14 23:17:01 2009 +0000 - - I failed to add a vapi patch and binary icon file in the previous - commit; this commit adds these overlooked files. - -A icons/crop-pivot-reticle.png -A vapi/gtk+-2.0.vapi - -commit 8d1e0cce9be2993704479c7b22df6f4ac09d59ee -Author: Lucas Beeler -Date: Wed Oct 14 23:08:35 2009 +0000 - - Completes implementation of feature #199 (Crop aspect ratios). - -M Makefile -M src/EditingTools.vala -M src/PhotoPage.vala -M src/Resources.vala - -commit f7a66cfc472f258b4690c38584d80f8de6d525fd -Author: Allison Barlow -Date: Wed Oct 14 20:03:05 2009 +0000 - - fixes for tickets 622 (tool placement in fullscreen), 835 (pixelated - fullscreen image), 878 (titles persist between event pages), 666 - (basic info pane padded), and 875 autoenhance shortcut) - -M misc/shotwell.schemas -M src/CollectionPage.vala -M src/Config.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/PhotoPage.vala -M ui/import.ui -M ui/photo.ui - -commit f93231d60535a30114e951850595fca0010c32c3 -Author: Jim Nelson -Date: Tue Oct 13 22:59:52 2009 +0000 - - #535: Duplicates now detected on import and reported in summary - to user. This patch will check camera photos - for duplicates via their EXIF/thumbnail hashes as well drag-and-drop - files, either by EXIF/thumbnail (if - available) or by a full-file hash. - -M src/BatchImport.vala -M src/Exif.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/util.vala - -commit a83143f3b0831bec2d8ab84d25c69d9419213e8f -Author: Jim Nelson -Date: Tue Oct 13 19:23:24 2009 +0000 - - With libgphoto 2.4.6, EXIF data is garbage from the camera, so cannot - accurately count how many preview bytes - have to be downloaded when updating the progress bar. Now merely - reflecting the number of loaded photos - in the progress bar. - -M src/ImportPage.vala - -commit 5458fde50e1c4f7a957f8789c14684eea442a69e -Author: Jim Nelson -Date: Tue Oct 13 19:11:55 2009 +0000 - - #888: This is due to the code rework for #887 and a bug in libgphoto2 - 2.4.6 where garbage is returned - when querying for EXIF data on a camera photo. This fixes the - problem by querying for the EXIF and the - thumbnail separately. - -M src/Exif.vala -M src/GPhoto.vala -M src/ImportPage.vala -M src/Photo.vala -M src/main.vala - -commit 9e918504c071ebd16305a81395c755d193f4b643 -Author: Allison Barlow -Date: Tue Oct 13 16:17:44 2009 +0000 - - implements shift+arrow selection (393), the sidebar selection fix - (877), and changes the unmount diaglog (883) - -M src/CheckerboardLayout.vala -M src/ImportPage.vala -M src/Page.vala -M src/Sidebar.vala - -commit 6723fdde6ffb293bbce2e8ee4d919b036ca73cb4 -Author: Jim Nelson -Date: Tue Oct 13 03:31:53 2009 +0000 - - #536: Toggle button on import page allows user to hide photos that - have already been imported. - -M src/CheckerboardLayout.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/DatabaseTables.vala -M src/Exif.vala -M src/GPhoto.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/main.vala -M src/util.vala - -commit 27ed23b8b929648b28a594373a1e4845f9824c1c -Author: Allison Barlow -Date: Mon Oct 12 20:00:17 2009 +0000 - - changed all instances of name to title, titles default to off - -M src/CollectionPage.vala -M ui/collection.ui - -commit 15e431c3ca890ae6fc501d6bba29e92f018edfa4 -Author: Allison Barlow -Date: Mon Oct 12 19:59:03 2009 +0000 - - fixes export dialog pango errors - -M src/ExportDialog.vala - -commit 9ff2433c645620eff27c222771974939f9fcfc61 -Author: Allison Barlow -Date: Mon Oct 12 17:56:08 2009 +0000 - - shift+home and shift+end now work properly. - -M src/Page.vala - -commit f415c0d37d900c18226e389f75f1372bc011c1f2 -Author: Allison Barlow -Date: Fri Oct 9 22:18:31 2009 +0000 - - Fixes ampersand in event tooltip bug and corrects shift+click - selection to be linear. - -M src/LibraryWindow.vala -M src/Page.vala -M src/Sidebar.vala - -commit 7df9276bcccbbcd374103bb994f95f267165216f -Author: Jim Nelson -Date: Thu Oct 8 21:59:29 2009 +0000 - - #866: Updated to work with libgee 0.5.0. Deprecated calls now - replaced with new methods. - -M Makefile -M src/CameraTable.vala -M src/DataCollection.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/ThumbnailCache.vala -M src/util.vala - -commit 4d37a92aa9cda31e025c5299c9d401ca36510173 -Author: Jim Nelson -Date: Thu Oct 8 21:04:24 2009 +0000 - - #865: Direct editing fixed. Was not entirely integrated into the - new architecture. - -M src/Photo.vala -M src/PhotoPage.vala - -commit a65d569425c0b2a742a23a0a1c61e576d515f954 -Author: Adam Dingle -Date: Thu Oct 8 19:40:26 2009 +0000 - - Added David Jeske to THANKS file. - -M THANKS - -commit 7f7aec4c275c4e4c09fad31760928943752508be -Author: Jim Nelson -Date: Thu Oct 8 19:25:04 2009 +0000 - - #612: (Jeske) Escape cancels current tool, then returns to collection - page. Removed "Return to Photos" from - View menu. - -M src/EditingTools.vala -M src/PhotoPage.vala -M ui/photo.ui - -commit 4707ac0d95cd69a7a8572268ab4bb0d668db234b -Author: Jim Nelson -Date: Thu Oct 8 18:52:00 2009 +0000 - - #658: (Jeske) F11 and Esc now exit fullscreen mode. - -M src/AppWindow.vala - -commit ff2022c755ddd0d136926b5761dca8d9f696eb42 -Author: Allison Barlow -Date: Thu Oct 8 17:49:41 2009 +0000 - - These changes make it so Shotwell starts with only the most recent - event branch open, opens the tree containing an event when the event - is selected, scrolls appropriately to a newly selected event in the - sidebar, and maintains the expanded/collapsed state of the sidebar - tree when resorting events. - -M src/LibraryWindow.vala -M src/Sidebar.vala - -commit 3d1427dd9bb0945fce910b320156125131ace89a -Author: Jim Nelson -Date: Thu Oct 8 02:53:05 2009 +0000 - - #859: Reflow was not occuring after import. This fell out of some - of the recent optimizations (but is fixed - thanks to recent erchitecture change!) - -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/Page.vala - -commit 6da4dc626034a0e0f9f774ee79e4e57543ca0c81 -Author: Jim Nelson -Date: Wed Oct 7 21:34:19 2009 +0000 - - Fixed an issue where a reflow() wasn't being called when the new - EventPage was realized on the screen. This bug - popped up in Allison's work on heirarchical events. - -M src/CheckerboardLayout.vala - -commit 1cbc301c3b8a99a1c0423bfc95b041d3f04925b3 -Author: Jim Nelson -Date: Wed Oct 7 03:26:55 2009 +0000 - - #842: Fixed. #742: Fixed. #710: Fixed. Empty space shown on quick - drag if thumbnail not in cache. Good - enough for now. #709: Usable but could be better. Good enough - for now. - -M src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala -M src/Workers.vala -M src/util.vala - -commit 493a9445199993574af83a5acd690965ec97c36e -Author: Allison Barlow -Date: Tue Oct 6 16:16:36 2009 +0000 - - Added date hierarchy to event directory. - -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala -M src/Sidebar.vala - -commit b3a95e720e350074d213b36b34da1e2edc145299 -Author: Adam Dingle -Date: Tue Oct 6 15:22:47 2009 +0000 - - Added Allison to AUTHORS list. - -M AUTHORS -M THANKS -M src/Resources.vala - -commit 03d4a6c1cc828b6d9a600e78564e864bf393b430 -Author: Jim Nelson -Date: Fri Oct 2 19:52:20 2009 +0000 - - More work on improving UI responsiveness. In particular, - CheckerboardLayout now maintains a spatial - (two-dimensional) data structure to allow for quicker traversal of - its laid-out items. This speeds up finding - items at pixel coordinates and intersections of area and items - (which in turn is a boost in expose_event() and - update_visible_page()). - -M src/CheckerboardLayout.vala -M src/DataCollection.vala -M src/main.vala - -commit 22cfc327a81585ee26ec0377172bf1c048d21966 -Author: Jim Nelson -Date: Fri Oct 2 00:46:46 2009 +0000 - - #710: Now using threads to load thumbnails in the background. - More work to be done to close ticket, but with - blocking I/O now in the background, the UI controls are much more - responsive. - -M Makefile -M src/CollectionPage.vala -M src/Dimensions.vala -M src/EventsDirectoryPage.vala -A src/ExtendedPosix.vapi -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/Resources.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala -A src/Workers.vala -M src/image_util.vala -M src/main.vala - -commit ab78f0f6e2c96fe374aa0195a64eca9b404c5ebb -Author: Lucas Beeler -Date: Thu Oct 1 23:16:02 2009 +0000 - - Improves auto-enhance performance by about 25%, closes #674. - -M misc/shotwell.schemas -M src/PhotoPage.vala - -commit b3b86439814234a6da3815fd7a1dd1492a1e6726 -Author: Lucas Beeler -Date: Thu Oct 1 18:40:18 2009 +0000 - - Closes ticket #818 (internationalize .desktop files) - -M misc/shotwell-viewer.desktop -M misc/shotwell.desktop - -commit f76ddfef9d7bd274c047a9af876573889a9f23e8 -Author: Jim Nelson -Date: Wed Sep 30 16:32:12 2009 +0000 - - Now require Vala 0.7.7 to compile. - -M Makefile - -commit 384e442b4523e83ee11f50ab1397aaf6f3acf634 -Author: Jim Nelson -Date: Tue Sep 29 23:45:15 2009 +0000 - - #710: Some work done to improve performance of scrollbar (with - large libraries). Specifically, this introduces - the difference for a ThumbnailView to have a view_altered (which - requires a repaint) and a geometry_altered - (which requires a reflow in the layout). - -M Makefile -R096 src/CollectionLayout.vala src/CheckerboardLayout.vala -M src/CollectionPage.vala -M src/DataCollection.vala -M src/DataObject.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/Page.vala -M src/Photo.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala -M src/util.vala - -commit 05a3a3e11ad2dba6a7db4b9a4b5188582076170a -Author: Allison Barlow -Date: Mon Sep 28 21:18:00 2009 +0000 - - Fixes problems caused by missing photo files in slideshow. Regresses - on manual advance so that no low res image put up immediately, - but that should be fixed with readahead. - -M src/AppWindow.vala -M src/CollectionPage.vala - -commit 3fee29c960f1ed58196464403e15b5699cdad626 -Author: Jim Nelson -Date: Mon Sep 28 17:31:56 2009 +0000 - - #824: Fixes for 0.7.7, binding updates and compiler/syntax changes. - -M src/ColorTransformation.vala -M src/ExportDialog.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/util.vala - -commit 4165977134a0a448ce0e603187d801253a10f76c -Author: Jim Nelson -Date: Thu Sep 24 01:47:02 2009 +0000 - - #809: Final step of model/view refactoring. Data objects and their - collections are now maintained in the - classes in DataObject.vala and DataCollection.vala. All other - objects throughout the system can now access - photos and events in a unified way, and keep their own state - synchronized consistently. - -M Makefile -M src/AppWindow.vala -M src/BatchImport.vala -M src/CollectionLayout.vala -M src/CollectionPage.vala -A src/DataCollection.vala -A src/DataObject.vala -D src/DataSource.vala -M src/DatabaseTables.vala -M src/DirectWindow.vala -M src/EditingTools.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Properties.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala - -commit 276351094654497ea4947a81938ba9331ab192a8 -Author: Allison Barlow -Date: Tue Sep 22 22:31:10 2009 +0000 - - no longer crashes when photo file source is missing - -M src/CollectionPage.vala -M src/EditingTools.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala - -commit 0e5647328a1328fadb207b02c93cced4e51524ae -Author: Lucas Beeler -Date: Fri Sep 18 23:56:00 2009 +0000 - - This revision implements full international support (enhancement - #625) in the codebase and build system, including installation of - translation files during make install. Enhancement #625 is now closed. - -M Makefile -M src/International.vala -M src/main.vala - -commit 0e63b8ba1496092469921b4f64602f36876b618a -Author: Jim Nelson -Date: Fri Sep 18 00:37:03 2009 +0000 - - #809: Part two of the model/view refactoring. Photo is now integrated - into the new architecture, now breaking - the other half of the Queryable system for Basic Properties. - After some consideration, didn't want to fold - these changes in with the next (which integrates Page with the new - architecture) because that represents another - large change, and the two together will be unwieldy. However, - the next commit will restore Basic Properties. - -M src/CollectionPage.vala -M src/DataSource.vala -M src/Event.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Queryable.vala -M src/Thumbnail.vala - -commit 03e0c268055fde50570a46ebb3f49c4d9cffcb19 -Author: Lucas Beeler -Date: Thu Sep 17 22:01:30 2009 +0000 - - This revision includes fully internationalized program - code. Internationalization support in the build process and packaging - are not yet complete. - -M Makefile -A po/fr.po -A po/shotwell.pot -M src/AppWindow.vala -M src/CollectionPage.vala -M src/CustomComponents.vala -M src/DatabaseTables.vala -M src/Dimensions.vala -M src/EditingTools.vala -M src/EventsDirectoryPage.vala -M src/ExportDialog.vala -M src/ImportPage.vala -A src/International.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Properties.vala -M src/Resources.vala -M src/Sidebar.vala -M src/image_util.vala -M src/main.vala -M src/util.vala - -commit 143c3acbf1c0092c63637bc703941c0ebe9de6cb -Author: Jim Nelson -Date: Thu Sep 17 01:09:00 2009 +0000 - - #809: This is part one of the model/view refactoring. This adds - the new DataObject and DataCollection classes - which are the basis of all data objects in the system that need to - be organized. Event and EventSource were - refactored as part of this first pass. Note that the properties - sheet is broken when displaying events because - the refactoring is not complete. The next commit (or perhaps the - one after that) will fix this when Page and - its children are integrated with DataObject/DataCollection. - -M Makefile -A src/DataSource.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/Queryable.vala - -commit 63689c41e1dcf4e9cc8087abf7fc50d79a23105f -Author: Jim Nelson -Date: Tue Sep 15 23:46:47 2009 +0000 - - Fixes an assertion bug in direct edit mode. Also, direct edit now - takes advantage of some scaling optimizations - recently made available. - -M src/Photo.vala -M src/PhotoPage.vala - -commit 5addd9d711f58ac5b612b74d759e217a3f103bbb -Author: Allison Barlow -Date: Thu Sep 10 23:17:18 2009 +0000 - - Implemented basic event rename, using a dialog. - -M src/CollectionPage.vala -M src/DatabaseTables.vala -M src/Event.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Sidebar.vala -M ui/event.ui -M ui/events_directory.ui - -commit a6e0078ce5f359b7bfdc50bdb8a265ef00835045 -Author: Jim Nelson -Date: Thu Sep 10 23:01:42 2009 +0000 - - Regression: This speeds up the time it takes to display the Events - Directory. - -M src/EventsDirectoryPage.vala - -commit d5309be81003cbd3abffab9a081986c4e3c4cf1a -Author: Jim Nelson -Date: Thu Sep 10 22:29:38 2009 +0000 - - #257: Removed 64-pixel thumbnails. Do not think at this time we - need to have screen-sized thumbnails. #621 - and #677: Applying color transformations is much speedier. - Pipeline only runs once, to generate thumbnails, and - thumbnails are now generated in the idle queue. - -M Makefile -M src/CollectionPage.vala -M src/ColorTransformation.vala -M src/EditingTools.vala -M src/EventsDirectoryPage.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala - -commit 08c2cad0ae6361660a409a35e1cbd9ddfef16685 -Author: Jim Nelson -Date: Tue Sep 8 01:14:53 2009 +0000 - - Added the Event class, which is akin to the Photo (now LibraryPhoto) - class. All event-related logic outside of - database queries belongs here. - -M Makefile -M src/BatchImport.vala -M src/DatabaseTables.vala -A src/Event.vala -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/Queryable.vala -M src/main.vala - -commit 45b64686df176df39b06b0c4b089582257a00871 -Author: Jim Nelson -Date: Mon Sep 7 20:47:27 2009 +0000 - - Fixes a couple of scaling bugs exposed with the recent changes to - load-and-decode. Also, tweaks and bug-fixes - in the thumbnail caching. - -M src/PhotoPage.vala -M src/ThumbnailCache.vala - -commit 9dd0e31d0ac1f7768050f9acc09d2375578cded0 -Author: Jim Nelson -Date: Mon Sep 7 19:24:49 2009 +0000 - - This is all work toward #677, attempting to avoid running the pipeline - when doing edit operations. Because the - pipeline must be run for generating thumbnails, that run is not - avoided with this check-in. (This may be - addressed with background threads.) This check-in avoids the pipeline - when possible with current architecture, - and attempts to reuse an old pixbuf if the user cancels the edit tool. - -M src/AppWindow.vala -M src/ColorTransformation.vala -M src/DatabaseTables.vala -M src/EditingTools.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala - -commit 8f35cba88b6742ab3501049b65707ff08408f8b0 -Author: Jim Nelson -Date: Fri Sep 4 22:31:30 2009 +0000 - - Fixed scaled load-and-decode to properly scale images which are - re-oriented and/or have a crop. Assertions in - the code guarantee that the pixbuf should not be rescaled once it - leaves the pipeline. - -M src/Box.vala -M src/CollectionPage.vala -M src/CustomComponents.vala -M src/Dimensions.vala -M src/EditingTools.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/Orientation.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Thumbnail.vala -M src/image_util.vala - -commit 4153a88271a997094747048e29ff119a4a97e748 -Author: Lucas Beeler -Date: Fri Sep 4 01:37:00 2009 +0000 - - Auto-enhance sets the Shadows slider in this revision, completing - implementation of enhancement #641. - -M src/ColorTransformation.vala -M src/PhotoPage.vala - -commit 2ee75b311e1de05609cda9fed725b3ad1491350a -Author: Jim Nelson -Date: Thu Sep 3 02:26:03 2009 +0000 - - Now using a scaled load-and-decode in the pipeline. Full-window - images are no longer requested at screen size - and then scaled to fit the window, but rather requested at window - (actually, viewport) size. Window resizing is - done with current pixbuf until the resize completes and the pipeline - is re-run. - -M src/Box.vala -M src/CollectionPage.vala -M src/Dimensions.vala -M src/ImportPage.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/image_util.vala -M src/util.vala - -commit 99e75b4d97072e977c421366e06f6ca9740e14cc -Author: Lucas Beeler -Date: Wed Sep 2 23:43:00 2009 +0000 - - Resolves bug #756. - -M src/ColorTransformation.vala - -commit 985233adaadfc1af2252b7c2c7dcaff80077a4c6 -Author: Lucas Beeler -Date: Wed Sep 2 21:05:33 2009 +0000 - - Adds a Shadows slider to the Adjustments palette, closing enhancement - request #640. - -M src/ColorTransformation.vala -M src/EditingTools.vala -M src/Photo.vala -M src/PhotoPage.vala - -commit 0fc67a6005893423ab8d89a55c4f46c83b8c738f -Author: Jim Nelson -Date: Wed Sep 2 00:24:09 2009 +0000 - - #701: Changed translucency from 75% to 90%. - -M src/AppWindow.vala -M src/EditingTools.vala -M src/Resources.vala - -commit bdba810689ee660732222b9909d2fe11f4050913 -Author: Jim Nelson -Date: Wed Sep 2 00:12:07 2009 +0000 - - Optimizations to speed up the photo viewer, including using bilinear - rather than hyper interpolation for images - going to the screen. - -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala - -commit dad701c8d37a91b6937c524ac9fc7fe7745ec800 -Author: Lucas Beeler -Date: Tue Sep 1 21:38:54 2009 +0000 - - Resolves #738. Fixes a bug whereby the position of the exposure slider - wasn't set properly when the Adjustments palette was opened. Increases - image update performance when sliders are re-positioned in the - Adjustments palette. - -M src/ColorTransformation.vala -M src/EditingTools.vala -M src/Photo.vala - -commit 541e72f3be211ac5b15e411751f1df067d417264 -Author: Jim Nelson -Date: Tue Sep 1 17:51:34 2009 +0000 - - Added remove_transformation to Photo for set_adjustment(). - -M src/Photo.vala - -commit f171db6a5c5043c54b238b8d3fa94fed5ca9851f -Author: Jim Nelson -Date: Tue Sep 1 01:53:29 2009 +0000 - - #737: Fixes enhancement being run twice when activated while another - tool is open. - -M src/PhotoPage.vala - -commit ca21278ba944d3e153041af2f09639636f4e57ba -Author: Lucas Beeler -Date: Tue Sep 1 01:26:04 2009 +0000 - - Fixed a minor bug introduced in the previous revision whereby the - histogram graphic in the adjustment palette failed to update in - response to movement of the exposure slider. - -M src/EditingTools.vala - -commit fdc538f0ac2f9a2d435bcf92d2a652187ff3a189 -Author: Lucas Beeler -Date: Tue Sep 1 00:20:16 2009 +0000 - - Color adjustment and enhancement are condensed into one operation - in this revision (#678). This change was effected through a major - refactoring of the color transformation subsystem. This refactoring - provides other performance gains throughout the color transformation - subsystem. - -M src/ColorTransformation.vala -M src/EditingTools.vala -M src/Photo.vala -M src/PhotoPage.vala - -commit 1d138acc1ae5f012096d062b0a9162a257720334 -Author: Jim Nelson -Date: Mon Aug 31 20:13:41 2009 +0000 - - Bug: Need a TransformablePhoto.has_transformation() to deal with a - null transformations map. - -M src/Photo.vala - -commit 21c159b8eddb25a70ae653fc25deb3d093ff33d9 -Author: Allison Barlow -Date: Mon Aug 31 16:31:08 2009 +0000 - - Added settings toolbar button in slideshow page. Settings dialog - allows user - to modify the delay (in seconds) between slideshow frames. - The slideshow - delay and display basic info menu option now persist between sessions. - -M Makefile -A misc/shotwell.schemas -M src/AppWindow.vala -M src/CollectionPage.vala -A src/Config.vala -M src/LibraryWindow.vala - -commit bebebeaa1000aad67c58a8f0c969978fd20c43db -Author: Jim Nelson -Date: Fri Aug 28 21:55:32 2009 +0000 - - Refactoring of the drag-select code into CollectionLayout. This is - to push drawing code out of - CheckerboardPage, which holds the selection list. This is part of - the refactoring for collections. - -M src/CollectionLayout.vala -M src/Page.vala - -commit c73e07c22a052f2a841dd107e1413210e29afb53 -Author: Jim Nelson -Date: Thu Aug 27 02:37:30 2009 +0000 - - Widgetless thumbnail implementation. This commit assists with #136. - Also added aggregate debug logging to - ThumbnailCache, as its log messages interfered with performance - testing. CameraTable initializes after a delay - to shave even more time off the app startup time. - -M src/CameraTable.vala -M src/CollectionLayout.vala -M src/CollectionPage.vala -M src/Page.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala -M src/util.vala - -commit 3fa29f91307f93160b388a2657c86f1c7560c054 -Author: Jim Nelson -Date: Tue Aug 25 02:04:18 2009 +0000 - - Nub icon not added to last commit. - -A icons/drag_nub.png - -commit 5a5653198cd57bc77eb0ceb2c9b9b9306e4511df -Author: Lucas Beeler -Date: Tue Aug 25 01:17:12 2009 +0000 - - Adjustment palette now includes histogram slider controls (#615) - that are automatically set by auto-enhance (#681). - -M Makefile -M src/ColorTransformation.vala -A src/CustomComponents.vala -M src/EditingTools.vala -M src/Photo.vala -M src/PhotoPage.vala - -commit ec535051f39e67b84f0087be5385d21b72e83e27 -Author: Jim Nelson -Date: Mon Aug 24 23:44:29 2009 +0000 - - All PhotoTable rows are not stored in memory, to speed up startup. - Database verification is looser now, as all - photos are not verified at initialization. - -M src/DatabaseTables.vala -M src/Photo.vala -M src/main.vala - -commit baad86116bf1c862edbe17ffced54151b1a6416d -Author: Jim Nelson -Date: Mon Aug 24 22:52:33 2009 +0000 - - EventPages now loaded on-demand rather than created all at once. - A similar strategy can be used with albums. - -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Sidebar.vala - -commit a6e387284392016b220cb138bc12e1d51179c8bb -Author: Jim Nelson -Date: Fri Aug 21 00:12:03 2009 +0000 - - As part of #136: CollectionPage was iterating its parent's list to - ensure the same photo was not added twice to - its view. Smart! CollectionPage now maintains a HashMap of - LibraryPhoto -> Thumbnail. - -M src/CollectionPage.vala - -commit ed09d96e9c65b29176b3cd847f1be0708035363d -Author: Allison Barlow -Date: Thu Aug 20 18:12:27 2009 +0000 - - the basic properties display now updates with multiple selection. - -M src/LibraryWindow.vala -M src/Properties.vala - -commit 39eeb57cb8380fa0f1194f4acaf99f0f7888b555 -Author: Jim Nelson -Date: Wed Aug 19 23:56:52 2009 +0000 - - Detected a bug when testing iPhone 3.0 with Rob's: the unmount failed - and the unmount progress bar remained - visible and the camera remained marked as busy. This fixes that - problem. Have not been able to reproduce the - unmount problem. - -M src/ImportPage.vala - -commit cac5dec7d92a675dcc536900d969e084bbb46eb4 -Author: Jim Nelson -Date: Wed Aug 19 21:31:17 2009 +0000 - - #670: When Shotwell first starts, it runs a verify_database() - function. This now looks for events with no - end_time set (due to #665) and sets it to the exposure_time of the - newest photo in the event. - -M src/DatabaseTables.vala - -commit 331f59909db182781f5e22ddbb16a419a9759fa1 -Author: Jim Nelson -Date: Wed Aug 19 21:08:27 2009 +0000 - - Gah ... corner-case in last commit. This solves it. - -M src/Page.vala - -commit 847307db72ea632eabd8701b10298701621e20a3 -Author: Jim Nelson -Date: Wed Aug 19 21:03:09 2009 +0000 - - #669: F11 now works as it should in the Events Directory page. - Also cleaned up SinglePhotoPage to be more - efficient about only creating a new pixmap when it's absolutely - required. - -M src/EventsDirectoryPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/PhotoPage.vala - -commit 359bf86ed1fbd2b26e2871d695728c164ede1d19 -Author: Jim Nelson -Date: Wed Aug 19 03:39:37 2009 +0000 - - #533: Holding down the arrow key doesn't hang Shotwell any longer. - #63: Quick compare holding down the Shift - key of a modified photo (works both in library and direct-edit mode). - #537: Slideshow now begins with selected - photo. #665: Last event now marked with its end time. #668: - Toolbar now remains in-place in fullscreen mode - when using compiz. - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/SortedList.vala - -commit 9877aab228d183ab094b1590869d7ddddbb41ee4 -Author: Jim Nelson -Date: Wed Aug 19 00:28:38 2009 +0000 - - Fixed graying out Revert menu item in context menu. - -M src/DirectWindow.vala -M src/PhotoPage.vala - -commit dadcf26243c54cc3582bb0f339104e54ffa8310c -Author: Jim Nelson -Date: Tue Aug 18 22:53:43 2009 +0000 - - Fixes various problems in direct-edit identified by Adam, including - Save/Save As behavior and dialog titles, - displaying a dirty asterisk and path in the title bar (a la gedit), - and handling cases where a file is - unreadable or undecodable. - -M src/CollectionPage.vala -M src/DirectWindow.vala -M src/ExportDialog.vala -M src/ImportPage.vala -M src/Page.vala -M src/PhotoPage.vala -M src/util.vala - -commit 096727a84f382fc6282def4471093d27ca0f7b72 -Author: Allison Barlow -Date: Tue Aug 18 20:01:32 2009 +0000 - - added display basic photo info feature for single selection - -M Makefile -M src/CollectionPage.vala -M src/EventsDirectoryPage.vala -M src/Exif.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Page.vala -M src/PhotoPage.vala -A src/Properties.vala -M ui/collection.ui -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/photo.ui - -commit df5c5c2e24785985cdc209f08ea1bdbfddb8004d -Author: Jim Nelson -Date: Tue Aug 18 18:50:49 2009 +0000 - - Regression in the refactoring for direct-edit mode; thumbnails were - being re-oriented twice when the user - rotated an image. (Caught by Allison.) - -M src/Photo.vala - -commit 362962c7d6dc3a3c8f1d09270d0f09c0a4609910 -Author: Jim Nelson -Date: Mon Aug 17 23:25:09 2009 +0000 - - #652: Shotwell will now register itself as a JPEG viewer when - installed. Fixed About box. - -M Makefile -A misc/shotwell-viewer.desktop -M src/AppWindow.vala -M src/DirectWindow.vala -M src/LibraryWindow.vala -M src/PhotoPage.vala -M src/Resources.vala - -commit cea90792cfe7dcf38356b6d3bf23fbd744c26df4 -Author: Jim Nelson -Date: Mon Aug 17 22:11:37 2009 +0000 - - Edit/Undo -> Photo/Revert to Original. A better solution in the - future is for EditingHostPage to have its own - PhotoMenu and PhotoContextMenu that is shared by the subclasses. - -M src/PhotoPage.vala -M ui/direct.ui - -commit 94c22e1ccea5e497f53dec0c3614976b1b1ec2ba -Author: Jim Nelson -Date: Mon Aug 17 21:19:29 2009 +0000 - - #647: Context menu added to direct editing page. Queries before - losing changes to photo. Fixed thumbing - through directory. - -M src/AppWindow.vala -M src/DirectWindow.vala -M src/ExportDialog.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/main.vala -M ui/direct.ui - -commit 68b1f5abf7d8a75daecc10d7ff97bb3597ee7077 -Author: Adam Dingle -Date: Mon Aug 17 19:25:06 2009 +0000 - - Added Lucas to AUTHORS file. - -M AUTHORS -M THANKS -M src/Resources.vala - -commit 0539fd5348308b391a9ba1febdec98d7e759b2bb -Author: Jim Nelson -Date: Mon Aug 17 18:44:50 2009 +0000 - - Added Save and Save As ... to direct editing window. Moved more - functionality from LibraryPhoto into - TransformablePhoto. Thumbing through directory now operational. - -M Makefile -M src/AppWindow.vala -M src/CollectionPage.vala -M src/DirectWindow.vala -M src/ExportDialog.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/SortedList.vala -M src/main.vala -M ui/direct.ui - -commit 3fcba76bd5ccb90bb5e3388a062c9f55d3cfe5a6 -Author: Lucas Beeler -Date: Sat Aug 15 01:02:50 2009 +0000 - - implements one-touch, toggle-able auto-enhance functionality; - resolves ticket #62 - -A icons/enhance.png -M src/ColorTransformation.vala -M src/DatabaseTables.vala -M src/EditingTools.vala -M src/FixedKeyFile.vapi -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/util.vala - -commit 86d0bb11dac112cbcb5b5ee142d435b1f518f299 -Author: Jim Nelson -Date: Fri Aug 14 22:09:01 2009 +0000 - - Fixed mechanics of replacing photo object displayed in full-screen - view. - -M src/PhotoPage.vala - -commit 428e3579656ff23aedb7a68a9c02afa37b437cf2 -Author: Jim Nelson -Date: Fri Aug 14 18:39:40 2009 +0000 - - First stab at direct photo editing (#187); can open a single file - and edit it with our tool set. Fullscreen - mode supported. No save feature or directory traversal yet. - -M Makefile -M src/DatabaseTables.vala -A src/DirectWindow.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/main.vala -A ui/direct.ui - -commit 43919b9d3f75324b6bfff3e816c60ba5f2ab20dc -Author: Jim Nelson -Date: Fri Aug 14 00:00:41 2009 +0000 - - #397: Fixed crop tool buttons for GNOME HIG. - -M src/EditingTools.vala - -commit 4ee5d0ca172622775fcb693493f53fc442115a40 -Author: Jim Nelson -Date: Thu Aug 13 23:38:54 2009 +0000 - - Broke PhotoPage into EditingHostPage and LibraryPhotoPage, in - preparation for direct editing. Also introduced - PhotoCollection, a grouping interface for EditingHostPage to - generically move through a group of photos. - -M src/CollectionPage.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/PhotoPage.vala - -commit 2be1e084d7abbdf16cb9923d1e7d9d09d7882082 -Author: Jim Nelson -Date: Thu Aug 13 17:45:05 2009 +0000 - - Moved PhotoTransformer into TransformablePhoto, which is now properly - in the inheritance tree. Also prepped - PhotoPage for using TransformablePhoto rather than Photo (which is - now LibraryPhoto), so it can be reused for - direct edit mode. - -M Makefile -M src/BatchImport.vala -M src/CollectionPage.vala -M src/DatabaseTables.vala -M src/EditingTools.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/LibraryWindow.vala -M src/Photo.vala -M src/PhotoPage.vala -D src/PhotoTransformer.vala -M src/Queryable.vala -M src/Thumbnail.vala -M src/main.vala - -commit deee14d6533c138d901f7a8e18e7b8ae4d74e38c -Author: Jim Nelson -Date: Thu Aug 13 00:38:36 2009 +0000 - - Exeption enum was accepted as int for get_pixbuf() parameter - ... caused adjust tool to display psychadelic - image. - -M src/EditingTools.vala - -commit 3f12a8ccc2ee6d61659288875e973a1fdb1b5e2f -Author: Jim Nelson -Date: Wed Aug 12 19:25:21 2009 +0000 - - Callers to PhotoTransformer.get_pixbuf now must specify a scale, - to discourage pipeline transformations of - unscaled pixbufs. Support added for retrieving pixbufs at screen - size, which is adequate for most display - operations. Beefed-up the get_preview_pixbuf() method, which - encourages using lower-quality but - fully-transformed pixbufs when possible. - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/EditingTools.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/PhotoTransformer.vala -M src/image_util.vala - -commit 1bccf59fe17d86a4e69e3bd11291df73cb87b65b -Author: Allison Barlow -Date: Wed Aug 12 16:00:27 2009 +0000 - - restructured queryable interfaces to return static types - -M src/CollectionLayout.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/Photo.vala -M src/Queryable.vala -M src/Thumbnail.vala - -commit 52bc267176aec3174c2a076df3e4b9ac84a0728f -Author: Jim Nelson -Date: Tue Aug 11 22:33:58 2009 +0000 - - Part two of staged commit to refactor for #189: new PhotoTransformer - class deals with transformations without - knowledge of how they're backed. - -M Makefile -M src/CollectionPage.vala -M src/DatabaseTables.vala -M src/EditingTools.vala -M src/Photo.vala -M src/PhotoPage.vala -A src/PhotoTransformer.vala - -commit d551ac021ce2a78672164dee3b82c4e0ae3e8a83 -Author: Jim Nelson -Date: Tue Aug 11 21:59:32 2009 +0000 - - Refactoring in preparation of direct-edit window (#187): AppWindow - now broken into AppWindow & LibraryWindow. - -M Makefile -M NEWS -M src/AppWindow.vala -M src/BatchImport.vala -A src/CameraTable.vala -M src/CollectionPage.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -A src/LibraryWindow.vala -M src/Page.vala -M src/PhotoPage.vala -M src/main.vala - -commit 4e3e9df4a4825ac46a7ff918e3aa6af373f78ef6 -Author: Adam Dingle -Date: Mon Aug 10 22:22:53 2009 +0000 - - Added Allison to THANKS file. - -M THANKS - -commit cdea6b984095370d84a4fdc10a113c75e1c45996 -Author: Allison Barlow -Date: Fri Aug 7 23:15:54 2009 +0000 - - Adds the Queryable class and classes for boxing stucts, changes - Photo's - query_filesize to get_filesize, and moves set/get_dimensions to - Exif from - PhotoExif. - -M Makefile -M src/CollectionLayout.vala -M src/CollectionPage.vala -M src/DatabaseTables.vala -M src/EventsDirectoryPage.vala -M src/Exif.vala -M src/ImportPage.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -A src/Queryable.vala -M src/Thumbnail.vala - -commit 210c130d9dda19fca147994714283796d3020bfa -Author: Jim Nelson -Date: Fri Aug 7 17:33:10 2009 +0000 - - In preparation for 0.2.0. - -M Makefile -M NEWS -M debian/changelog -M src/SortedList.vala - -commit 405c50d1aa3f835bab9e0ad17c4972c6807a9971 -Author: Jim Nelson -Date: Wed Aug 5 00:14:57 2009 +0000 - - #600: Now using user-defined pictures directory for default library - storage. - -M src/AppWindow.vala - -commit c322171ba18fe1aa0315762e58f316842d2293f7 -Author: Lucas Beeler -Date: Wed Aug 5 00:09:58 2009 +0000 - - Closes ticket #77. A dynamically-updating image histogram is now - displayed in the Adjustment palette. - -M src/ColorTransformation.vala -M src/EditingTools.vala - -commit abe13c5bfc22ad8263d56e59ce85bb83ac190bf0 -Author: Jim Nelson -Date: Tue Aug 4 19:48:03 2009 +0000 - - #372: Import DND modifier keys. Note that Move is not implemented, - for reasons I detail in #603. - -M Makefile -M src/AppWindow.vala -M src/Page.vala -M src/Photo.vala - -commit 03982eb87a4ed2a49085102fdc2c2b6f939afe64 -Author: Jim Nelson -Date: Tue Aug 4 18:41:08 2009 +0000 - - Added instrumentation to Photo pixbuf pipeline to measure absolute - time of each stage. Also added feature to - allow caller to declare a scale for the pixbuf; Photo can perform - the scale at an opportune time and reduce - overhead in certain operations. Also fixed bug where the Thumbnail - objects in the entire system were being - resized when the slider moved; now, only those that are in view are - resized, and the others resize when they - come into view. - -M Makefile -M configure -M src/CollectionPage.vala -M src/Photo.vala -M src/PhotoPage.vala - -commit d47f3eb68344cd12ad1b5d13705b52a698308ed4 -Author: Jim Nelson -Date: Tue Aug 4 03:16:20 2009 +0000 - - #380: X server corruption when selecting with compositing WM fixed. - Different technique used, which should actually be faster and results - in nicer presentation. - -M src/Page.vala -M src/image_util.vala - -commit 397ba9f671fa476d23bf1e1a3c71530199142565 -Author: Jim Nelson -Date: Mon Aug 3 19:41:54 2009 +0000 - - Support for Vala 0.7.5. - -M NEWS -M debian/changelog -M src/AppWindow.vala -M src/ColorTransformation.vala -M src/Exif.vala -M src/libexif.vapi - -commit 5eaceca27ab09adbfd06b7860cf80393e2aec980 -Author: Jim Nelson -Date: Mon Aug 3 18:30:48 2009 +0000 - - Doc changes in preparation for 0.1.2. - -M NEWS -M README -M THANKS -M debian/changelog - -commit b3086e52a630fec4a8114d732051de36198d9539 -Author: Jim Nelson -Date: Mon Aug 3 18:16:04 2009 +0000 - - Previous version segfaults on 64-bit builds. Issue is a bad binding - for KeyFile; see - http://bugzilla.gnome.org/show_bug.cgi?id=588104 KeyFile is only - used in the database in PhotoTable. It - appears the adjustment code (when compiled for release) exposed the - binding problem. Now using a custom vapi - until the binding is fixed. - -M Makefile -M src/DatabaseTables.vala -R100 src/fstream.vapi src/FStream.vapi -A src/FixedKeyFile.vapi - -commit be0405268317daffd6d67b60045416e6e1b498ea -Author: Jim Nelson -Date: Fri Jul 31 20:41:55 2009 +0000 - - Not quite ... had to update toolbar controls as well. - -M src/CollectionPage.vala - -commit 711272180aee446b5c7cd8bdc8d541041d1546c9 -Author: Jim Nelson -Date: Fri Jul 31 20:33:06 2009 +0000 - - #504: Arrow keys move quicker through slideshow by using a 360 - thumbnail for initial display. #581: FP compiler - optimizations now included in release build. - -M Makefile -M src/CollectionPage.vala - -commit 66c3e2c2a6f7faa43daf8c707d6a45618b231fc0 -Author: Jim Nelson -Date: Fri Jul 31 01:42:21 2009 +0000 - - #506: Sped up opening photos by using large thumbnail is initial - image. #580: "Copy files to library" option - now available in File / Import. - -M Makefile -M src/AppWindow.vala -M src/BatchImport.vala -M src/CollectionPage.vala -M src/DatabaseTables.vala -M src/EventsDirectoryPage.vala -M src/Exif.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala -M src/image_util.vala -M src/libgphoto2.vapi - -commit 1daaf56140e8515567a1c4256c197b3f87b1f65e -Author: Lucas Beeler -Date: Thu Jul 30 22:20:55 2009 +0000 - - resolved bug #591 : assertion fails when null color adjustment - (i.e. all sliders set to zero) is applied - -M src/EditingTools.vala - -commit d13e7a3bccfa759909f77bf65da2900580774181 -Author: Lucas Beeler -Date: Thu Jul 30 01:53:41 2009 +0000 - - #78: added adjust control manipulating exposure, saturation, - temperature and tint - -M Makefile -A icons/adjust.png -A src/ColorTransformation.vala -M src/DatabaseTables.vala -M src/EditingTools.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala - -commit 176c2ef7a8a84f12c82aff316ccd3b8e15f641fd -Author: Jim Nelson -Date: Wed Jul 29 03:31:09 2009 +0000 - - #439: Resorting photos with large collection does not take so - much time. This one has been bugging me for a - long time. I replaced SortedList's inane insertion sort with a - less-inane binary insertion sort. Photo now - caches exposure_time to speed up comparisons, as going out to the - database every time was too expensive. Both - changes result in a marked improvement for the user. Also made Sort - By Exposure Time / Descending the default, - as that's more interesting for the user. Also spotted a subtle bug - in fullscreen window; fixed. - -M src/BatchImport.vala -M src/CollectionLayout.vala -M src/CollectionPage.vala -M src/ImportPage.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/SortedList.vala - -commit 4e5ac0b8bc8eb3d49d39995a9ee9c3fe3c6b0a18 -Author: Jim Nelson -Date: Wed Jul 29 02:39:04 2009 +0000 - - #464: Makefile no longer broken for incremental builds (hard-tab - empty command fix). #451: --debug | --release - in ./configure. #452: Release build is default (-g -O2). - -M Makefile -M configure - -commit 91fdd120ba46a0a6301c277743fb2f16c1723044 -Author: Jim Nelson -Date: Tue Jul 28 03:39:59 2009 +0000 - - #441: Ubuntu packaging. #460: Cross-compilation under Launchpad. - #461: Man page. #462: Debian menu file. - #530: Tarball provides top-level directory. #538: configure.in -> - configure.mk #544: Proper "make distclean". - #554: Makefile builds .tar.gz. #572: Only require libgee 0.1.3. - -M Makefile -M NEWS -M configure -A debian/changelog -A debian/compat -A debian/control -A debian/copyright -A debian/dirs -A debian/docs -A debian/manpages -A debian/menu -A debian/rules -A debian/shotwell.1 -A debian/watch -M src/PhotoPage.vala -M src/SortedList.vala - -commit 5e0a4307b8c817209c1ebe44ff1ebe89f0b69f75 -Author: Lucas Beeler -Date: Wed Jul 22 19:08:40 2009 +0000 - - Resolved bugs #547 ("Crop reticle leaves artifacts in gutter") - and #548 ("Crop reticle can't be gripped if dropped in gutter") - -M src/EditingTools.vala - -commit ddfad85664ba8ee3998fc34123049d27f4669ad6 -Author: Allison Barlow -Date: Wed Jul 22 18:24:43 2009 +0000 - - fixed bugs #551 and #552: import/export menus now have ellipses and - dialog titles now match command names - -M src/CollectionPage.vala - -commit 7d8a8f337520d4b189d79619d3dfc554254180ca -Author: Allison Barlow -Date: Wed Jul 22 17:30:49 2009 +0000 - - fixed bugs #551 and #552: import/export menus now have ellipses and - dialog titles now match command names - -M src/AppWindow.vala -M src/ExportDialog.vala -M src/PhotoPage.vala -M ui/events_directory.ui - -commit f449e3758c7bd75863161bab6f48449c1810e02d -Author: Allison Barlow -Date: Wed Jul 22 15:57:15 2009 +0000 - - added enhancement #527: import from file menu option - -M src/AppWindow.vala -M ui/collection.ui -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/photo.ui - -commit fd3c1db80ef95e7774d446013847e03c6677251d -Author: Lucas Beeler -Date: Wed Jul 22 01:12:56 2009 +0000 - - Implemented red-eye removal feature. - -A icons/redeye.png -M src/DatabaseTables.vala -M src/EditingTools.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/util.vala - -commit 1c495ed4ca076ab6d9064a3ecfb0b2a808147625 -Author: Jim Nelson -Date: Tue Jul 21 18:26:50 2009 +0000 - - Need to check for null with exif. - -M src/BatchImport.vala - -commit 2c661155df7c266d57ea2acf260796148846b55a -Author: Allison Barlow -Date: Mon Jul 20 18:35:40 2009 +0000 - - fixed bug #588: delete photos confirmation now uses Cancel and Delete, - buttons. changed dialog icon to Warning and edited dialog message - -M src/CollectionPage.vala - -commit 0b19fdca9fa8d4942af9146594afa1548b81fd57 -Author: Allison Barlow -Date: Fri Jul 17 21:34:52 2009 +0000 - - fix bug that last checkin caused--added 1900 to date - -M src/DatabaseTables.vala - -commit dfc5336f3e7f84e0584d30975638006503c3ac70 -Author: Allison Barlow -Date: Fri Jul 17 21:17:02 2009 +0000 - - fixed bug #502: extra space in event dates - -M src/DatabaseTables.vala - -commit ed4bedb1e93daaa5edcd1ef7399de6c9fd942fc2 -Author: Jim Nelson -Date: Fri Jul 10 14:44:10 2009 +0000 - - Imported photos are sorted by exposure time as they're imported. - -M src/BatchImport.vala -M src/Exif.vala -M src/ImportPage.vala - -commit 0bb904bff14d055956dbc7a6d9bd873b575bd063 -Author: Jim Nelson -Date: Fri Jul 10 13:59:56 2009 +0000 - - Crop code refactored into its own class of abstract type. This allows - PhotoPage to host more tools in the future via an abstract interface. - #456: THANKS file added. - -M Makefile -A THANKS -A src/EditingTools.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala - -commit a56ec5c718803fff72a1b04b757c8974e8742fd2 -Author: Jim Nelson -Date: Wed Jul 8 13:28:29 2009 +0000 - - #426: Parallel builds now supported. - -M Makefile -M configure - -commit 7aa77f0c73c50b4b09f8615be3dafa2ee9fd8f12 -Author: Jim Nelson -Date: Tue Jul 7 20:08:29 2009 +0000 - - Fixes importing from mass storage devices, especially card readers. - -M src/AppWindow.vala -M src/GPhoto.vala -M src/ImportPage.vala -M src/Sidebar.vala -M src/main.vala - -commit 6599730704cef512fa9426e5bc86e4639bcdcfa8 -Author: Jim Nelson -Date: Mon Jul 6 11:39:51 2009 +0000 - - Brighten thumbnails on mouse-over. - -M src/CollectionLayout.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/Page.vala -M src/Thumbnail.vala - -commit 92c889bb73024d75203d9a8a6abc7fcadca21ab1 -Author: Jim Nelson -Date: Sat Jul 4 22:41:39 2009 +0000 - - #437: Select All in camera import view. - -M src/ImportPage.vala -M ui/import.ui - -commit 3b9be649f8646c61abcef82756809c806903171c -Author: Jim Nelson -Date: Sat Jul 4 22:26:54 2009 +0000 - - #435: Sidebar refactored into own class. This will pay dividends - later when more features come on line that incorporate more pages - and more sidebar requirements. - -M Makefile -M src/AppWindow.vala -M src/Page.vala -A src/Sidebar.vala - -commit 35648b6a3192948ed9dcce4c7efa37ca306bb61a -Author: Jim Nelson -Date: Thu Jul 2 00:35:56 2009 +0000 - - #433: Slideshow now paints high-quality without stepping up the - improvement. - -M src/CollectionPage.vala -M src/Page.vala -M src/PhotoPage.vala - -commit c05b387557e5a395cac646bd0679b9754eb14079 -Author: Jim Nelson -Date: Thu Jul 2 00:23:43 2009 +0000 - - #205: Sort events by date, reflected in sidebar and in the events - directory page. - -M Makefile -M src/AppWindow.vala -M src/CollectionPage.vala -M src/DatabaseTables.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/Page.vala -M ui/collection.ui -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/photo.ui - -commit 429194522ac1896e24e1e43a9e7d9e6deb918e55 -Author: Jim Nelson -Date: Wed Jul 1 00:15:32 2009 +0000 - - Upping version number to 0.1.2, for next release. - -M Makefile - -commit 156db6b8a3e467fc0134429ef4168c5a30558020 -Author: Jim Nelson -Date: Wed Jul 1 00:07:35 2009 +0000 - - #305: Base slideshow functionality. - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/PhotoPage.vala -M ui/collection.ui - -commit f0174d4d69fe96a8563f417e5778bc2d7b914bf0 -Author: Jim Nelson -Date: Tue Jun 30 18:06:18 2009 +0000 - - Made changes for Shotwell to depend on gee-1.0 alone and not vala-1.0 - (save to compile). - -M Makefile -M NEWS -M src/SortedList.vala - -commit 9849bb9f6fdfbedd27761c3d721bcb5c5a7b1b0c -Author: Jim Nelson -Date: Tue Jun 30 01:54:35 2009 +0000 - - Fixes compile errors with valac 0.7.4. Explicitly checks for vala - 0.7.3 or above in Makefile for building, - separating the check from packages Shotwell depends on at runtime. - -M Makefile -M src/DatabaseTables.vala -M src/ImportPage.vala - -commit 63175f93e5311741d7edab2a942a7e3317d5f4de -Author: Jim Nelson -Date: Mon Jun 29 21:34:41 2009 +0000 - - An attempt to fix #380, although still reported in the wild. This, - however, fixes a serious problem in how the - selection rubberband is painted. - -M Makefile -M NEWS -M src/Page.vala - -commit 2890e13674675a9d40a262ec867fb51668a674db -Author: Adam Dingle -Date: Sat Jun 27 03:50:47 2009 +0000 - - Fixed version number in COPYING file. - -M COPYING - -commit 9749b5e3b03e02befa5554e27d60c81512fa1c45 -Author: Adam Dingle -Date: Fri Jun 26 18:13:15 2009 +0000 - - Various pre-release fixes. - -M AUTHORS -M COPYING -M Makefile -M NEWS -M README -M configure -M misc/shotwell.desktop -M src/AppWindow.vala -M src/Resources.vala - -commit 11197c81f51dbf929f3380f191332a28ae544947 -Author: Jim Nelson -Date: Fri Jun 26 02:13:09 2009 +0000 - - Fixed bug where was not switching to Camera view when desktop - indicated a new attached device. Fixed stepper - buttons on scrollbar to now work. - -M README -M misc/shotwell.desktop -M src/AppWindow.vala -M src/CollectionLayout.vala -M src/ImportPage.vala -M src/Page.vala - -commit 0977b61d6bfb373a99c943811e055d15ec775fb4 -Author: Jim Nelson -Date: Wed Jun 24 23:51:25 2009 +0000 - - Updated URLs - -M README -M src/Resources.vala - -commit edd31c2536d9024970354ac64a6dfbea7d43a4ed -Author: Jim Nelson -Date: Wed Jun 24 23:16:26 2009 +0000 - - #386: Renamed Subversion directory to "shotwell" - -commit 971d4d1eb01b4fc3f05ceb6023cd320cdafa62ab -Author: Jim Nelson -Date: Wed Jun 24 22:29:43 2009 +0000 - - #416: make dist now available. - -M Makefile -M src/AppWindow.vala -M src/DatabaseTables.vala -M src/Resources.vala -M src/main.vala - -commit b3566631762922615a73bfdf56a20f2e9fa23007 -Author: Jim Nelson -Date: Wed Jun 24 20:04:17 2009 +0000 - - #337: Added README, INSTALL, etc. files. #378: More thorough - About box. #389: Icon licensing information added to AUTHORS. - #413: Copyright/licensing added to all source files. - -A AUTHORS -A COPYING -A INSTALL -A MAINTAINERS -A NEWS -A README -M src/AppWindow.vala -M src/BatchImport.vala -M src/Box.vala -M src/CollectionLayout.vala -M src/CollectionPage.vala -M src/DatabaseTables.vala -M src/Debug.vala -M src/Dimensions.vala -M src/EventsDirectoryPage.vala -M src/Exif.vala -M src/ExportDialog.vala -M src/GPhoto.vala -M src/ImportPage.vala -M src/Orientation.vala -M src/Page.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/SortedList.vala -M src/Thumbnail.vala -M src/ThumbnailCache.vala -M src/fstream.vapi -M src/gphoto.h -M src/image_util.vala -M src/libexif.vapi -M src/libgphoto2.vapi -M src/main.vala -M src/util.vala - -commit 28070155e8a71c5be256a0fc195a09396d65af3a -Author: Jim Nelson -Date: Wed Jun 24 02:30:51 2009 +0000 - - #392: Arrow keys now available in all checkerboard views (Events - and Camera included). #342: Shift+Click now selects all in smallest - rectangle. - -M src/Box.vala -M src/CollectionPage.vala -M src/Page.vala - -commit 535511876e7095ac1b531261517d9039676bdec2 -Author: Jim Nelson -Date: Wed Jun 24 01:35:12 2009 +0000 - - #289: Check dependency versions, using Intrepid as base build system. - Vala 0.7.3 required, however. - -M Makefile -M configure - -commit 75055b10774ae5185174881e96908b823107e9ca -Author: Jim Nelson -Date: Tue Jun 23 19:32:05 2009 +0000 - - Improved installation: Application icon now installed. - -M Makefile -R100 icons/shotwell-icon.svg icons/shotwell.svg -M misc/shotwell.desktop -M src/Resources.vala - -commit 0d0e195d026150a763bc5644bac5f4e805494098 -Author: Jim Nelson -Date: Tue Jun 23 17:36:20 2009 +0000 - - Removed Gtk call that was 2.16 or above. Changed .desktop file to not - launch terminal window. - -M misc/shotwell.desktop -M src/PhotoPage.vala - -commit 57e5dd77fa861a016ecc9b5225c6809821fbaa5c -Author: Jim Nelson -Date: Tue Jun 23 01:07:31 2009 +0000 - - #396: Right-click on crop tool window no longer crashes. #339: Data - directory now ~/.shotwell. #394: Arrow keys to move next/previous - photo in full-window and fullscreen mode. - -M src/AppWindow.vala -M src/CollectionLayout.vala -M src/CollectionPage.vala -M src/Page.vala -M src/PhotoPage.vala - -commit 3df9d1b82e7f7fc446e8cb43444dd04bc051ee49 -Author: Jim Nelson -Date: Mon Jun 22 18:32:27 2009 +0000 - - #308: Icons for all current buttons. #388: Help/Contents URL. - -A icons/crop.svg -A icons/import-all.png -A icons/import.svg -A icons/make-primary.svg -A icons/object-flip-horizontal.svg -M icons/object-rotate-left.svg -M icons/object-rotate-right.svg -A icons/pin-toolbar.svg -A icons/return-to-page.svg -A icons/shotwell-icon.svg -A icons/shotwell-street.jpg -M src/AppWindow.vala -M src/CollectionLayout.vala -M src/CollectionPage.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/Page.vala -M src/PhotoPage.vala -M src/Resources.vala -M src/ThumbnailCache.vala - -commit 94ecc1ce9814a8fa7cbf8c13888081f4d599f62e -Author: Jim Nelson -Date: Fri Jun 19 19:19:38 2009 +0000 - - #348: Now darkening area outside of crop rectangle. Lightening it - didn't look right; this can be easily changed, however. - -M src/BatchImport.vala -M src/DatabaseTables.vala -M src/EventsDirectoryPage.vala -M src/ImportPage.vala -M src/Photo.vala -M src/PhotoPage.vala -M src/image_util.vala - -commit 9e25c8613bde4de3f1516248e604906a5b713071 -Author: Jim Nelson -Date: Wed Jun 17 22:30:09 2009 +0000 - - #370: Photo file deleted when removed from library. User confirms - with dialog. - -M src/BatchImport.vala -M src/CollectionPage.vala -M src/Photo.vala -M src/util.vala - -commit 37e3b9131adf9e68594853070704b34f69f8f720 -Author: Jim Nelson -Date: Wed Jun 17 21:16:19 2009 +0000 - - #369: All imported files are now copied into the user's photo library. - -M src/AppWindow.vala -M src/BatchImport.vala -M src/ImportPage.vala -M src/util.vala - -commit 183e151330ba516e0d416162f21d019cad2c1ddc -Author: Jim Nelson -Date: Wed Jun 17 18:23:42 2009 +0000 - - Fixed up the About dialog a little bit. Still more work to be done - on it. - -M src/AppWindow.vala - -commit 5cc61071cc8efd2c195ce28043021719c6455d3f -Author: Jim Nelson -Date: Wed Jun 17 18:11:40 2009 +0000 - - #367: Help/Contents implemented. - -M Makefile -M src/AppWindow.vala -M ui/collection.ui -M ui/events_directory.ui -M ui/import.ui -M ui/import_queue.ui -M ui/photo.ui - -commit a2a159e7a19797d8cc69e9185480ea7131374e04 -Author: Jim Nelson -Date: Wed Jun 17 17:19:42 2009 +0000 - - #377: Forgot to add .ui file. - -A ui/import_queue.ui - -commit e5953f99692586375bf2ca44183e5db13d9c6186 -Author: Jim Nelson -Date: Wed Jun 17 02:48:10 2009 +0000 - - #314: Show photos in full-window view as they're imported. #315: - Stop Import button. #312: Drag-and-drop file import looks and acts - the same as camera import. - -M src/AppWindow.vala -M src/BatchImport.vala -M src/DatabaseTables.vala -M src/ImportPage.vala -M src/Photo.vala -M src/util.vala - -commit 34abe99eaf717b0ecbf509e42a44ba967e5c562e -Author: Jim Nelson -Date: Tue Jun 16 21:49:49 2009 +0000 - - Refactoring to prep for import queue page. - -M src/Page.vala -M src/PhotoPage.vala - -commit 3e788b7e4a8e8a94f906185dba7da2cb517d42a9 -Author: Jim Nelson -Date: Tue Jun 16 00:00:26 2009 +0000 - - #313: Smooth import progress bar. - -M src/BatchImport.vala -M src/GPhoto.vala -M src/ImportPage.vala -M src/Photo.vala - -commit 4244556354a28b7da5d4a086dc60fa89231e57ee -Author: Jim Nelson -Date: Mon Jun 15 20:49:27 2009 +0000 - - Fixed an edge case where the user exits the app during an import - and import is not cancelled. - -M src/AppWindow.vala -M src/BatchImport.vala -M src/ImportPage.vala -M src/Page.vala - -commit 47ea59ffeb183bf7652cad76cb06fedad6263de1 -Author: Jim Nelson -Date: Mon Jun 15 19:08:56 2009 +0000 - - #183: Major improvements to importing infrastructure to accumulate - errors, report them all at once to the user, and to import from camera - on-the-fly rather than copying all photos to local FS then importing. - -M Makefile -M src/AppWindow.vala -M src/BatchImport.vala -M src/DatabaseTables.vala -M src/ExportDialog.vala -M src/ImportPage.vala -D src/Makefile -M src/Photo.vala -M src/main.vala - -commit f130ccd74b7ce2f186bfa9840df0b4b6e23eb217 -Author: Jim Nelson -Date: Fri Jun 12 20:57:17 2009 +0000 - - #352: Crop tool window no longer steals focus. - -M src/PhotoPage.vala - -commit 0d438e1aacdddc592719711422275b1f7f8796e3 -Author: Jim Nelson -Date: Fri Jun 12 18:22:01 2009 +0000 - - #96: App exit now quick no matter if closed with close button or - File/Quit. - -M src/AppWindow.vala - -commit aef2df3dbcace7843bc4c2c2558dcf766184f9b9 -Author: Jim Nelson -Date: Fri Jun 12 18:05:37 2009 +0000 - - #338: "Cameras" row in sidebar only visible when cameras actually - present. - -M src/AppWindow.vala - -commit 9a6914051515939db37ca12bbf4db000766309ed -Author: Jim Nelson -Date: Fri Jun 12 02:24:33 2009 +0000 - - #344: Use arrow keys to move between photos, as well as Home/End. - Enter will load single-selected photo in full-window view. - -M src/CollectionLayout.vala -M src/CollectionPage.vala -M src/Page.vala -M src/util.vala - -commit 335ceb6e389b8e45bcff03871d8d9e4538a8ba04 -Author: Jim Nelson -Date: Thu Jun 11 23:48:30 2009 +0000 - - #353: Escape to exit fullscreen mode. - -M src/AppWindow.vala - -commit f91926c2190e1d55ad189966c24d2b0508f281e7 -Author: Jim Nelson -Date: Thu Jun 11 23:43:50 2009 +0000 - - #341: Zoom level shared between events and Photos view. - -M src/CollectionPage.vala -M src/Page.vala - -commit cddd2d7a74baba2d2478562def62541211c2517c -Author: Jim Nelson -Date: Thu Jun 11 22:40:24 2009 +0000 - - Error with package checking. - -M Makefile - -commit ad8d4abb6b77547ecbc1561cd39af3e192d6a9b6 -Author: Jim Nelson -Date: Thu Jun 11 19:28:35 2009 +0000 - - Decided to keep selection banding code inside CheckerboardPage, - so CollectionLayout can focus on layout. - -M src/CollectionLayout.vala -M src/Page.vala - -commit 5f0700ecf5cc37c2e7957605a29247c8b5baa9ce -Author: Jim Nelson -Date: Thu Jun 11 03:01:43 2009 +0000 - - #193: Drag selection now available. - -M src/Box.vala -M src/CollectionLayout.vala -M src/Page.vala -M src/PhotoPage.vala -M src/util.vala - -commit d1da9440ceac3713db513892e1be9d4781cf8d3a -Author: Jim Nelson -Date: Wed Jun 10 01:45:41 2009 +0000 - - #346: Context menu now available for multiple selected items. - -M src/CollectionPage.vala -M src/Page.vala -M src/Resources.vala - -commit 6a8395fa63e7d1bc1f40521d1a60be7365e7d92c -Author: Jim Nelson -Date: Wed Jun 10 01:14:34 2009 +0000 - - #347: All toolbar buttons now have tooltips. - -M src/AppWindow.vala -M src/CollectionPage.vala -M src/ImportPage.vala -M src/PhotoPage.vala -M src/Resources.vala - -commit 0451a8bb82e0279c51728a7aff04e848b4d2c994 -Author: Jim Nelson -Date: Tue Jun 9 23:50:53 2009 +0000 - - #345: Home/End/PgUp/PgDn now available to move the viewport around. - Sidebar does not maintain focus to make this happen. This may be - revisited later, esp. for accessibility review. - -M src/AppWindow.vala -A src/Makefile -M src/Page.vala - -commit 3c5c1704254eb6863bcec6eea8ec35d717bf7bcf -Author: Jim Nelson -Date: Tue Jun 9 21:28:04 2009 +0000 - - Further file organization in preparation for the first tarball. - -M Makefile -R100 shotwell.desktop misc/shotwell.desktop -R100 AppWindow.vala src/AppWindow.vala -R100 BatchImport.vala src/BatchImport.vala -R100 Box.vala src/Box.vala -R100 CollectionLayout.vala src/CollectionLayout.vala -R100 CollectionPage.vala src/CollectionPage.vala -R100 DatabaseTables.vala src/DatabaseTables.vala -R100 Debug.vala src/Debug.vala -R100 Dimensions.vala src/Dimensions.vala -R100 EventsDirectoryPage.vala src/EventsDirectoryPage.vala -R100 Exif.vala src/Exif.vala -R100 ExportDialog.vala src/ExportDialog.vala -R100 GPhoto.vala src/GPhoto.vala -R100 ImportPage.vala src/ImportPage.vala -R100 Orientation.vala src/Orientation.vala -R100 Page.vala src/Page.vala -R100 Photo.vala src/Photo.vala -R100 PhotoPage.vala src/PhotoPage.vala -R100 Resources.vala src/Resources.vala -R100 SortedList.vala src/SortedList.vala -R100 Thumbnail.vala src/Thumbnail.vala -R100 ThumbnailCache.vala src/ThumbnailCache.vala -R100 fstream.vapi src/fstream.vapi -R100 gphoto.h src/gphoto.h -R100 image_util.vala src/image_util.vala -R100 libexif.vapi src/libexif.vapi -R100 libgphoto2.vapi src/libgphoto2.vapi -R100 main.vala src/main.vala -R100 util.vala src/util.vala - -commit 8b483f917b0464e6d1fee5fe393fadcd5b015c59 -Author: Jim Nelson -Date: Tue Jun 9 21:13:21 2009 +0000 - - #340: Logging suppressed by default. Set environment variable - SHOTWELL_LOG to see all, SHOTWELL_DEBUG, SHOTWELL_MESSAGE, etc. to - see by level. - -A Debug.vala -M Makefile -M main.vala - -commit e0eaa97a70fd71152ecde1ad2d37a831da4705ca -Author: Jim Nelson -Date: Tue Jun 9 18:24:17 2009 +0000 - - #350: Ok button is now default in Export Photo dialog. - -M ExportDialog.vala - -commit 2d65406116a1fc282bca819c9921aa3022a7fbea -Author: Jim Nelson -Date: Tue Jun 9 01:13:11 2009 +0000 - - #342: Fixes assertion crash where item was not selected on mouse-up - due to unimplemented modifier key. - -M Page.vala - -commit e70c9f23fd68361936d71b2fd4f79e23a1a21807 -Author: Jim Nelson -Date: Sat Jun 6 01:20:28 2009 +0000 - - Minor fix to crop tool and DnD. Fixed regression with crop tool - window placement. - -M PhotoPage.vala - -commit 1f49f1606a2f10fcdf75a1f02a6f0415fd89444c -Author: Jim Nelson -Date: Fri Jun 5 23:29:59 2009 +0000 - - #296: Now with configure script to set installation prefix. Also, - moved all .ui files into separate directory. Shotwell determines - whether to use local or installed resources files at runtime. - -M AppWindow.vala -M CollectionPage.vala -M Makefile -M Page.vala -M PhotoPage.vala -A Resources.vala -M ThumbnailCache.vala -A configure -M main.vala -M shotwell.desktop -R100 collection.ui ui/collection.ui -R100 event.ui ui/event.ui -R100 events_directory.ui ui/events_directory.ui -R100 fullscreen.ui ui/fullscreen.ui -R100 import.ui ui/import.ui -R100 photo.ui ui/photo.ui - -commit 66f1ec318512e505aaf3b4367dfc6a0aa40522dd -Author: Jim Nelson -Date: Thu Jun 4 16:41:38 2009 +0000 - - Fixed bug reported by Vadim Peretokin. - -M PhotoPage.vala - -commit 15a242045bac88e32c5f095f22b2716f1ca1640c -Author: Jim Nelson -Date: Thu Jun 4 02:26:17 2009 +0000 - - Some cleaning up, esp. how groups of IDs are reported by the database - objects. - -M AppWindow.vala -M DatabaseTables.vala -M EventsDirectoryPage.vala -M Photo.vala - -commit 140359a8581b2de3d2cd52d6aa99bf4f453e8c65 -Author: Jim Nelson -Date: Thu Jun 4 00:33:12 2009 +0000 - - #151: Using square brackets rather than +/- for thumbnail zoom - accelerators. - -M AppWindow.vala -M CollectionPage.vala - -commit bfe16670a875d2758adaf7d7e2b7e1a6d0fd9d9b -Author: Jim Nelson -Date: Thu Jun 4 00:14:55 2009 +0000 - - #284: File/Export w/ scaling. - -M AppWindow.vala -M CollectionPage.vala -M Dimensions.vala -M Exif.vala -A ExportDialog.vala -M Makefile -M Photo.vala -M PhotoPage.vala -M collection.ui -M image_util.vala -M libexif.vapi -M photo.ui - -commit c0c45ca767878ad9b7ddc92d9880e14a7497917f -Author: Jim Nelson -Date: Tue Jun 2 17:44:17 2009 +0000 - - #321: Cameras item in sidebar unselectable. - -M AppWindow.vala - -commit 5b407559fe6278c0b76d566530d1291fb27503ad -Author: Jim Nelson -Date: Tue Jun 2 02:03:53 2009 +0000 - - #259: Database versioning. Also some long-needed refactoring of - database code. - -M AppWindow.vala -M DatabaseTables.vala -M main.vala - -commit 5a5c7a5d94a1a3d9f9d361af96d9f59c74185dd7 -Author: Jim Nelson -Date: Mon Jun 1 23:09:57 2009 +0000 - - Better image generation when exporting. Cleaned up photo updates - (performed when external image change is detected). - -M AppWindow.vala -M Exif.vala -M Photo.vala -M image_util.vala - -commit fd30d580f23fcb4fce01d76e7a5f2f54aebc7249 -Author: Jim Nelson -Date: Mon Jun 1 20:10:07 2009 +0000 - - #294: Off-white sidebar. #88: Blue photo selection color. - -M AppWindow.vala -M CollectionLayout.vala -M CollectionPage.vala -M Page.vala - -commit 6ca26236989bdc4c3f59846382f921d2fc013d90 -Author: Jim Nelson -Date: Mon Jun 1 19:14:05 2009 +0000 - - #229: Basic export via drag-and-drop. More work can be done on - the generated JPEG (if it's not simply a copy of the file stored - in the library, i.e. it's been modified). #293: Darker background, - although not configurable at this time. - -M AppWindow.vala -M BatchImport.vala -M CollectionPage.vala -M DatabaseTables.vala -M GPhoto.vala -M Page.vala -M Photo.vala -M PhotoPage.vala - -commit a7386215483b7572ed80eee70981bc52f4158df4 -Author: Jim Nelson -Date: Wed May 27 22:57:53 2009 +0000 - - #189: Bug in libgphoto2 + pausing between unmount and camera_init() - solved problem. #301: Vala 0.7.3 resolves. #192:Not a dirty flag - issue, but iPhone changing its mount point name every time it's - locked. Resolved. #196:Imported photos now saved in heirarchical - directories, and unique filenames are guaranteed. - -M AppWindow.vala -A BatchImport.vala -M CollectionPage.vala -M Exif.vala -M GPhoto.vala -M ImportPage.vala -M Makefile -M Photo.vala -M libgphoto2.vapi -M util.vala - -commit 97cff74da68ed6167bde3799dbcc64a01faaa32e -Author: Jim Nelson -Date: Fri May 22 18:00:40 2009 +0000 - - #292: Menu item capitalization fixed. Now using Rotate Right/Left - for menu labels. - -M CollectionPage.vala -M PhotoPage.vala - -commit 5d2301e5184867f2674352ac4a3a987ed1ef958c -Author: Jim Nelson -Date: Fri May 22 01:44:18 2009 +0000 - - #282: Cancel in crop tool window doesn't remove the crop. #283: - Standard icons in crop tool window buttons. #64: Revert to original. - -M CollectionLayout.vala -M CollectionPage.vala -M DatabaseTables.vala -M Page.vala -M Photo.vala -M PhotoPage.vala -M collection.ui -M image_util.vala -M photo.ui - -commit 02c4e07d23d72a7a2bdf517bbe023277a8a34733 -Author: Jim Nelson -Date: Thu May 21 02:40:56 2009 +0000 - - Prettier crop tool. Simplified some of the invalidation code. - Not going to mark #203 as done until more discussion. - -M Box.vala -M Dimensions.vala -M PhotoPage.vala -M image_util.vala - -commit e08099ad19b74560545db67af42105bc0421a9ac -Author: Jim Nelson -Date: Tue May 19 18:27:44 2009 +0000 - - Fixed issues with crop tool in fullscreen mode. Added opacity to - the fullscreen toolbar and sized it smaller. Opacity only works - with a compositing WM. Currently there's some flicker which needs - investigation. - -M AppWindow.vala -M CollectionPage.vala -M Page.vala -M PhotoPage.vala - -commit 759cbc61d70f989e1898e7aef5f193b7a957f324 -Author: Jim Nelson -Date: Mon May 18 21:53:21 2009 +0000 - - Crop toolbar window now follows window if moved or resized, unless - the user explicitly moves it to a position on the screen. - -M AppWindow.vala -M PhotoPage.vala - -commit 92429b9b9f874bd2954f0232b93c6b1d58bc6a23 -Author: Jim Nelson -Date: Mon May 18 18:59:26 2009 +0000 - - Fixed an off-by-one error when rotating and derotating crop - dimensions. - -M Box.vala -M Orientation.vala -M Photo.vala - -commit 79da4b6e13fe4d29909d3d23e3f1b6cfc4acb48c -Author: Jim Nelson -Date: Sat May 16 02:04:57 2009 +0000 - - Fixed bug in sorting code. - -M CollectionPage.vala -M Orientation.vala - -commit c02170e5ca7c8b4d78fd41ba32ae9554cbe63257 -Author: Jim Nelson -Date: Sat May 16 01:36:49 2009 +0000 - - Major overhaul to improve responsiveness of editing photos and - generating new thumbnails. All modifications to the photo stored in - the database are stored in the photo's original, unrotated coordinate - system, which means they do not have to be adjusted whenever the - image is rotated. Some refactoring, including making Orientation - a powerhouse of its own. - -M AppWindow.vala -M Box.vala -M CollectionLayout.vala -M CollectionPage.vala -M DatabaseTables.vala -M Dimensions.vala -M EventsDirectoryPage.vala -M Exif.vala -M ImportPage.vala -M Makefile -A Orientation.vala -M Photo.vala -M PhotoPage.vala -M Thumbnail.vala -M ThumbnailCache.vala -M image_util.vala -M main.vala -M util.vala - -commit 964e75adae4949349b2f59d64a66f0636284ac71 -Author: Jim Nelson -Date: Tue May 12 19:54:26 2009 +0000 - - Major improvement to performance when moving and resizing the - crop tool. For now, the crop tool is embedded in the PhotoPage - class; should be broken out in the near future. Probably will do - when another editing tool is introduced and the abstractions become - more necessary. - -M Box.vala -M Makefile -M PhotoPage.vala - -commit ce2e522b4a02f67dc4313c07ecc617c473ad963a -Author: Jim Nelson -Date: Fri May 8 19:23:21 2009 +0000 - - #201: Rule-of-thirds lines. However, moving and resizing the crop - is now unacceptably slow. - -M Exif.vala -M PhotoPage.vala - -commit 26304fd0809db7be4a8c7e7f1d17c727c30d7c6f -Author: Jim Nelson -Date: Fri May 8 18:23:25 2009 +0000 - - This fixes maintaining the crop for rotated images. Now, crop is - rotated along with image. - -M Box.vala -M Exif.vala -M Photo.vala -M PhotoPage.vala - -commit 145ddbb82552523f6559d51f2bf670e2868de008 -Author: Jim Nelson -Date: Fri May 8 02:27:45 2009 +0000 - - Crop now following photo orientation. - -M Box.vala -M CollectionPage.vala -M Photo.vala -M PhotoPage.vala - -commit 8a41e42bb67a6f0de2e0727add12fef821778152 -Author: Jim Nelson -Date: Fri May 8 00:29:38 2009 +0000 - - Fixed bug where crop would fail on small photos. - -M PhotoPage.vala -M ThumbnailCache.vala - -commit c1e79cd055c4e0792d19859822c3f39806d8d835 -Author: Jim Nelson -Date: Fri May 8 00:11:20 2009 +0000 - - #60: Crop tool. - -M Box.vala -M DatabaseTables.vala -M Photo.vala -M PhotoPage.vala - -commit b5a223f65bc88416d0270318f7c9f573f97508d0 -Author: Jim Nelson -Date: Thu May 7 22:33:28 2009 +0000 - - Fixed a bug in photo removal. - -M CollectionLayout.vala -M CollectionPage.vala -M Page.vala - -commit 55ee68492d0cfcf234acb4e3ae883fb96d01ba9a -Author: Jim Nelson -Date: Thu May 7 21:44:29 2009 +0000 - - Performance boost on resizing thumbnails in view ... came to me - over lunch. - -M ThumbnailCache.vala - -commit 83560c4d0d775390be290ed3b43f0666bd574242 -Author: Jim Nelson -Date: Thu May 7 20:26:08 2009 +0000 - - Major refactoring in preparation for photo editing. New Photo - object centralizes pixbuf generation and photo manipulation, and - introduces GObject signals into the system so various interested - parties (esp. various pages) are notified when a photo is modified - or removed. Also refactored Dimensions struct, as what started out as - a utility record has become a first-class citizen of Shotwell. Also, - while refactoring, went ahead and made changes to reflect Yorba's - coding style (i.e. camelCase for variables -> underscored_names). - In the process, knocked out #198: Databases and thumbnail cache - always in sync with modifications. #202: Black-and-white shading - with crop tool. - -M AppWindow.vala -A Box.vala -M CollectionLayout.vala -M CollectionPage.vala -M DatabaseTables.vala -A Dimensions.vala -M EventsDirectoryPage.vala -M Exif.vala -M GPhoto.vala -M ImportPage.vala -M Makefile -M Page.vala -A Photo.vala -M PhotoPage.vala -M Thumbnail.vala -M ThumbnailCache.vala -M image_util.vala -M main.vala -A util.vala - -commit afc5c855437b92d33f16d92de3e3f97060396341 -Author: Jim Nelson -Date: Tue May 5 18:23:35 2009 +0000 - - Basic crop UI functionality, although some UI spottiness and crop - is not persisted. - -M PhotoPage.vala -M image_util.vala - -commit 53f32f4b0af2f72719e9c1306d763c439c56a6a5 -Author: Jim Nelson -Date: Fri May 1 01:28:32 2009 +0000 - - Early crop functionality. - -M CollectionLayout.vala -M CollectionPage.vala -M EventsDirectoryPage.vala -M ImportPage.vala -M Page.vala -M PhotoPage.vala -M ThumbnailCache.vala -M image_util.vala - -commit 67e41c5423f9418eb307bc588560445bcb1020d8 -Author: Jim Nelson -Date: Wed Apr 29 22:43:10 2009 +0000 - - #191: Accelerators for fullscreen view. Crop button (but no - implementation!) added. - -M AppWindow.vala -M Makefile -M Page.vala -M PhotoPage.vala -A fullscreen.ui - -commit 912a935beec6e37b2c0d38a70b11c85d63958df3 -Author: Jim Nelson -Date: Wed Apr 29 21:58:29 2009 +0000 - - Fixed bug where rotating a photo in fullscreen was not reflected in - the events directory page. - -M AppWindow.vala -M EventsDirectoryPage.vala - -commit 5400a4219eb4a04918d6a805a3410be115b1762f -Author: Jim Nelson -Date: Wed Apr 29 21:28:05 2009 +0000 - - Now refreshing files & folders during import to workaround #192. - Optimization in CollectionLayout to deal with now having multiple - pages with large thumbnail collections. - -M CollectionLayout.vala -M CollectionPage.vala -M ImportPage.vala -M Page.vala -M libgphoto2.vapi - -commit 0dcf6b1ff8c0ebb811e57100c1b5731069219941 -Author: Jim Nelson -Date: Wed Apr 29 19:29:10 2009 +0000 - - This fixes the problem with fullscreen occassionally not displaying - the initial image. - -M AppWindow.vala -M Makefile -M PhotoPage.vala -M photo.ui - -commit e7f351d3223ac0205b2ec23e16005193945e97b2 -Author: Jim Nelson -Date: Wed Apr 29 03:50:53 2009 +0000 - - #177: Fullscreen F11 with floating control bar. #71: Let use select - key photo for each event. Added gphoto macros to prevent worrisome - compiler warnings. - -M AppWindow.vala -M CollectionPage.vala -M EventsDirectoryPage.vala -M GPhoto.vala -M ImportPage.vala -M Makefile -M Page.vala -M PhotoPage.vala -M collection.ui -A event.ui -M events_directory.ui -A gphoto.h -M libgphoto2.vapi -M photo.ui - -commit bf0a233aada415a702f8de47977ee58311468ebb -Author: Jim Nelson -Date: Mon Apr 27 23:14:35 2009 +0000 - - #185: pkg-config checks for package existance. - -M Makefile - -commit d37182a73cb8c58715c58f6f7d68d1162dc7e7de -Author: Jim Nelson -Date: Sat Apr 25 02:36:41 2009 +0000 - - Forgot to add .ui file. - -A events_directory.ui - -commit 7a9e8528b21191bf9b48a16197057eea2a215044 -Author: Jim Nelson -Date: Sat Apr 25 02:30:22 2009 +0000 - - #67: Events. Lots of refactoring to accomdate database and UI - changes. Another valac bug found in - CollectionLayout.vala, probably related to generics. Will fix soon. - -M AppWindow.vala -M CollectionLayout.vala -M CollectionPage.vala -M DatabaseTables.vala -A EventsDirectoryPage.vala -M Exif.vala -M ImportPage.vala -M Makefile -M Page.vala -M PhotoPage.vala -M Thumbnail.vala -M ThumbnailCache.vala - -commit e3afaf17684488c76f4c617f021999b1b0612d02 -Author: Jim Nelson -Date: Thu Apr 23 00:51:59 2009 +0000 - - Lots of changes working toward events, including some database work. - -M AppWindow.vala -M CollectionLayout.vala -M CollectionPage.vala -M DatabaseTables.vala -M Exif.vala -M ImportPage.vala -M Makefile -M Page.vala -A SortedList.vala -M Thumbnail.vala -M ThumbnailCache.vala - -commit a7c90ca10449288db92cb9bb59a0e0016099f888 -Author: Jim Nelson -Date: Wed Apr 22 02:12:34 2009 +0000 - - #56: Sort by EXIF date. - -M CollectionLayout.vala -M CollectionPage.vala -M Page.vala -M Thumbnail.vala -M collection.ui - -commit 5d3d128ff2344796f06c34f31ec8cdb8cb6bc236 -Author: Jim Nelson -Date: Tue Apr 21 18:55:03 2009 +0000 - - #148: View/Titles checkbox. - -M CollectionLayout.vala -M CollectionPage.vala -M Page.vala -M Thumbnail.vala - -commit c36e7a8458871c9d634e1d87a73f3a5abc73fc70 -Author: Jim Nelson -Date: Tue Apr 21 01:37:43 2009 +0000 - - #172: Now handle situations where we need to ask user to unmount - camera (or tell them to close application - holding the lock). - -M AppWindow.vala -M CollectionLayout.vala -M ImportPage.vala -M Page.vala - -commit 3157ff0521f223b9b55e13c12b26e7a877bd3839 -Author: Jim Nelson -Date: Mon Apr 20 22:22:07 2009 +0000 - - #170: Auto-unmount on startup (when notified by nautilus). #171: - Auto-unmount when running and notified by - nautilus. Added (sudo) make install and (sudo) make uninstall. - Added .desktop file (necessary for nautilus - integration). - -M AppWindow.vala -M ImportPage.vala -M Makefile -M Page.vala -M main.vala -A shotwell.desktop - -commit cbb211aadea23c5fee6d38c65a09e37a067a0577 -Author: Jim Nelson -Date: Fri Apr 17 22:02:13 2009 +0000 - - #167: libunique. #168:Switch to camera view on startup. #169:Switch - to camera view when user attaches on while - running. Also, get_instance() to reflect that Shotwell is - single-window app. - -M AppWindow.vala -M CollectionPage.vala -M ImportPage.vala -M Makefile -M Page.vala -M PhotoPage.vala -M main.vala - -commit 8fecedd2ce03a14ce0f071b05b5410277c4bee74 -Author: Jim Nelson -Date: Fri Apr 17 01:33:21 2009 +0000 - - #150: Progress bar is in better shape. Fine-tuning discussed in #92. - #145 and #146:Cameras detected - at initialization and runtime, and appear as children of "Cameras" - in the sidebar. - -M AppWindow.vala -M ImportPage.vala -M Makefile -M Page.vala -M PhotoPage.vala -M libgphoto2.vapi - -commit 29f6358e06e28bcaa1a506fc737d18fdec875cbd -Author: Jim Nelson -Date: Tue Apr 14 02:26:02 2009 +0000 - - #141: Next/Previous in full-window view added. - -M AppWindow.vala -M CollectionLayout.vala -M CollectionPage.vala -M ImportPage.vala -M Page.vala -M PhotoPage.vala -M Thumbnail.vala -M libgphoto2.vapi -M photo.ui - -commit cc39a5758910709b9d3d11fa13374fe2a3a97168 -Author: Jim Nelson -Date: Mon Apr 13 22:47:15 2009 +0000 - - #150: Ugly progress bar, but it's there. Useful even for development - to see what's going on. Finer-detailed UI - work to come. - -M ImportPage.vala - -commit 63a9da8573df65d96a10a35a5030f0d580acfec8 -Author: Jim Nelson -Date: Mon Apr 13 21:51:14 2009 +0000 - - #147: Fixed, although icons would be nice. #149:Import in background - added. Rotate buttons now have text. - -M AppWindow.vala -M CollectionPage.vala -M ImportPage.vala -M PhotoPage.vala -M libgphoto2.vapi - -commit 7e28a47be1cbb8c47716ababa5a79fca40e2878c -Author: Jim Nelson -Date: Sat Apr 11 01:56:14 2009 +0000 - - #138: Actions and ActionGroups now handled in intelligent manner. - Also added moveable thumb between sidebar and - view pages. - -M AppWindow.vala -M CollectionPage.vala -M ImportPage.vala -M Makefile -M Page.vala -M PhotoPage.vala -A collection.ui -A import.ui -M photo.ui - -commit 71a755413679e416f79c7eadc9b65e857faa746f -Author: Jim Nelson -Date: Fri Apr 10 19:40:40 2009 +0000 - - Whoops. - -M CollectionPage.vala - -commit 2b7e127061f90d9c52599cd8179183d22b42b6a4 -Author: Jim Nelson -Date: Fri Apr 10 04:14:53 2009 +0000 - - #57: Import photos from camera. Tons of refactoring to share layout - and functionality between multiple pages. - -M AppWindow.vala -M CollectionLayout.vala -M CollectionPage.vala -M Exif.vala -A GPhoto.vala -A ImportPage.vala -M Makefile -M Page.vala -M PhotoPage.vala -M Thumbnail.vala -M libexif.vapi -M libgphoto2.vapi -M photo.ui - -commit ae606325112a1f313127a06d90931e6008faa61f -Author: Jim Nelson -Date: Thu Apr 9 02:34:28 2009 +0000 - - Photo full-window view available by double-clicking on photo. - libgphoto.vapi. - -M AppWindow.vala -M CollectionLayout.vala -M CollectionPage.vala -M Exif.vala -M Makefile -A Page.vala -M PhotoPage.vala -M Thumbnail.vala -M image_util.vala -A libgphoto2.vapi -M photo.ui - -commit 39cf8e6e8aa7ebe1548fab60919539406203a4c0 -Author: Jim Nelson -Date: Tue Apr 7 18:29:07 2009 +0000 - - Forgot to commit icons in last update. Also added first steps - toward sorting. - -M CollectionPage.vala -M Exif.vala -M Thumbnail.vala -A icons/object-rotate-left.svg -A icons/object-rotate-right.svg -M photo.ui - -commit f6bcadf001464016da96d20ea07ddefdc8984b87 -Author: Jim Nelson -Date: Mon Apr 6 23:00:20 2009 +0000 - - #59: Rotate photo w/ EXIF, including toolbar button. - -M AppWindow.vala -M CollectionPage.vala -M Exif.vala -M Makefile -A fstream.vapi - -commit fe7822f8adf95367efc1c77a636cd6a69402e439 -Author: Jim Nelson -Date: Sat Apr 4 02:36:59 2009 +0000 - - JPEG/EXIF rotations implemented and stored in the photo file itself. - Further work to be done before marking off - the ticket. - -M AppWindow.vala -M CollectionLayout.vala -M CollectionPage.vala -M Exif.vala -M Makefile -M Thumbnail.vala -M image_util.vala -M libexif.vapi -M photo.ui - -commit 48241be178c12e00b68605ddb9ae6e650c02c463 -Author: Jim Nelson -Date: Thu Apr 2 02:08:34 2009 +0000 - - Backed out a strategy of incrementally loading EXIF data. - -M Thumbnail.vala - -commit 18a9f25a28e13db73a8c4792e8d1785ab497dbbe -Author: Jim Nelson -Date: Thu Apr 2 02:04:30 2009 +0000 - - libexif bindings built and now in use throughout app. Need to clean - up display before claiming tickets. Also, - first stab at adding a full-page view of photos. - -M AppWindow.vala -M CollectionLayout.vala -M CollectionPage.vala -M DatabaseTables.vala -A Exif.vala -M Makefile -A PhotoPage.vala -M Thumbnail.vala -M image_util.vala -A libexif.vapi -M photo.ui - -commit 20a84f4664f6426202053cdcf40784d8f00aca22 -Author: Jim Nelson -Date: Thu Mar 26 19:43:01 2009 +0000 - - Fixed a corner case in the layout code. - -M CollectionLayout.vala -M Thumbnail.vala - -commit 2473dcf7ce7a885b00dc866bfd55c706e55ebbb0 -Author: Jim Nelson -Date: Thu Mar 26 02:28:59 2009 +0000 - - Major tune-up of collection layout as well as appearance. This scales - well to 1200 photos, although resizing - the thumbs at that number leaves something to be desired. Fixes #89. - -M AppWindow.vala -M CollectionLayout.vala -M CollectionPage.vala -M Thumbnail.vala - -commit a81ea64bde0b67f50b2db46ebebe95e65e85b76c -Author: Jim Nelson -Date: Wed Mar 25 20:56:34 2009 +0000 - - More work to be done for aesthetics, but this fixes #93 in a big way. - -M AppWindow.vala -A CollectionLayout.vala -M CollectionPage.vala -M Makefile -M Thumbnail.vala - -commit 4d87f53d481abc620194db43096f1cdc167de491 -Author: Jim Nelson -Date: Tue Mar 24 19:05:24 2009 +0000 - - Fixed a bug where the thumbnails were not improved after a repack(). - Also, timing repacks. - -M CollectionPage.vala - -commit 6c9560293a5d8ad6dc896b5a82e39c5ee88c5a54 -Author: Jim Nelson -Date: Tue Mar 24 18:47:15 2009 +0000 - - Speed improvements for large photo collections. More work to be done. - #95: Three-tier thumbnail system in memory (JPEG -> unscaled pixbuf -> - scaled pixbuf). #94: Fixed. - -M CollectionPage.vala -M DatabaseTables.vala -M Thumbnail.vala -M ThumbnailCache.vala -M image_util.vala - -commit 14d2eb571a97493bc7867119ee674999d0315bfb -Author: Jim Nelson -Date: Mon Mar 23 23:17:17 2009 +0000 - - Improvement of scaling speed. Now storing three persistent thumbnail - caches (360px, 128px, 64px). How these work need to be reviewed. - -M AppWindow.vala -M CollectionPage.vala -M DatabaseTables.vala -M Thumbnail.vala -M ThumbnailCache.vala -M image_util.vala - -commit 72186fb18d55d726edae35265a70c4fbd673a4e7 -Author: Jim Nelson -Date: Sat Mar 21 01:42:06 2009 +0000 - - #55: Slider control added. Also, refactored code so CollectionPage - provides menu bar and tool bar. Eventually AppWindow will become a - controller merely switching between various pages (views). - -M AppWindow.vala -M CollectionPage.vala -M Thumbnail.vala -M ThumbnailCache.vala -M photo.ui - -commit b2636cea29a0a9038a1813f2a52269e175dba06e -Author: Jim Nelson -Date: Fri Mar 20 22:36:31 2009 +0000 - - #85: Added right-click/Remove on thumbnail. #87: Photo scaling is - improved by generating higher-quality thumbnails to disk and better - in-memory scaling. #90 and #91: Detailed in Wiki, implemented - throughout. - -M AppWindow.vala -M CollectionPage.vala -A DatabaseTables.vala -M Makefile -D PhotoTable.vala -M Thumbnail.vala -M ThumbnailCache.vala -D ThumbnailCacheTable.vala -M image_util.vala -M main.vala -M photo.ui - -commit bb471325440c8f2cd4abf63a4ea5d1c9aafc0809 -Author: Jim Nelson -Date: Thu Mar 19 19:02:56 2009 +0000 - - Thumbnail dimensions are now stored in a table rather than fetched - from - disk and examined. This speeds up init time, esp. with large - collections. - -M AppWindow.vala -M CollectionPage.vala -M Makefile -M PhotoTable.vala -M ThumbnailCache.vala -A ThumbnailCacheTable.vala - -commit c30b6ce94266033ac24f7b098ce8ab4a85d88359 -Author: Jim Nelson -Date: Thu Mar 19 02:39:27 2009 +0000 - - Updated the cache to store JPEG data in memory and convert to - pixbufs on - the fly. Thumbnails only hold pixbufs when they're on screen, - otherwise - they're tossed. Fixed #86. - -M AppWindow.vala -M CollectionPage.vala -M Makefile -M Thumbnail.vala -M ThumbnailCache.vala -M image_util.vala -M main.vala - -commit bf66ffeb733b43d4eaa4aa70dcea101958176d90 -Author: Jim Nelson -Date: Wed Mar 18 03:39:00 2009 +0000 - - Added adjustable thumbnail sizing, however, need to add UI slider for - ticket to be marked off. Implemented a persistent thumbnail cache. - Began work to have thumbnail objects on-screen load and unload their - pixbufs dynamically. - -M AppWindow.vala -M CollectionPage.vala -M Makefile -M PhotoTable.vala -M Thumbnail.vala -A ThumbnailCache.vala -A image_util.vala -M photo.ui - -commit b09360aef635affd7b94ff8f7b946569af4cffe4 -Author: Jim Nelson -Date: Tue Mar 17 18:32:02 2009 +0000 - - Adds #58. First stab at #83. - -M AppWindow.vala -M CollectionPage.vala -M PhotoTable.vala -M Thumbnail.vala -M photo.ui - -commit 4770cdc203c25c0610499c07e0f6eac946213575 -Author: Jim Nelson -Date: Tue Mar 17 01:10:04 2009 +0000 - - First stab at #54. Can now distinguish which photo has been - clicked on, - prelim work for selecting photos. - -M AppWindow.vala -M CollectionPage.vala -A PhotoTable.vala -M Thumbnail.vala - -commit 82d42056850958c5739654f33639c0a62df69257 -Author: Jim Nelson -Date: Wed Mar 11 21:05:41 2009 +0000 - - Cleanup. Thumbnails now bottom-aligned with white text. - -M AppWindow.vala -M CollectionPage.vala -M Makefile -M Thumbnail.vala - -commit 3b70ad9d6461c58374289fedb324ba932eee78ba -Author: Jim Nelson -Date: Wed Mar 11 01:16:11 2009 +0000 - - Photo organizer ho. - -A AppWindow.vala -A CollectionPage.vala -A Makefile -A Thumbnail.vala -A main.vala -A photo.ui diff --git a/INSTALL b/INSTALL index 3fd6efa..9f69f84 100644 --- a/INSTALL +++ b/INSTALL @@ -4,17 +4,16 @@ To build and install Shotwell, type the following commands: - $ [ -f configure ] || ./autogen.sh - $ ./configure - $ make - $ Optional: make install + $ meson build + $ ninja -C build + $ Optional: ninja -C build install * By default, Shotwell will install under /usr/local. The configure script - can customize the prefix directory. Run ./configure --help for + can customize the prefix directory. Run meson build configure for instructions and other installation options. - * You may need to execute "make install" as root (i.e. sudo make install) - if installing to system directories. + * You may need to execute "ninja -C build install" as root + (i.e. sudo ninja -C build install) if installing to system directories. * If you wish to try Shotwell before installing it, you may execute it directly from its build directory. Note that certain desktop integration diff --git a/MAINTAINERS b/MAINTAINERS new file mode 100644 index 0000000..712c23b --- /dev/null +++ b/MAINTAINERS @@ -0,0 +1,3 @@ +Jim Nelson +email: jim@yorba.org + diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index 720cf2b..0000000 --- a/Makefile.am +++ /dev/null @@ -1,200 +0,0 @@ -SUBDIRS = misc help po app-icons icons ui - -if INSTALL_APPORT_HOOK -SUBDIRS += apport -endif - -EXTRA_DIST = AUTHORS git-hash - -AUTHORS: - $(AM_V_GEN)if test -d "$(srcdir)/.git"; \ - then \ - echo Creating $@ && \ - ( cd "$(top_srcdir)" && \ - echo '# Generated by Makefile. Do not edit.'; echo; \ - git log --no-merges --pretty=format:"%an" $(SUBDIRS) \ - | sort | uniq ) > $@.tmp \ - && mv -f $@.tmp $@ \ - || ( rm -f $@.tmp ; \ - echo Failed to generate $@ >&2 ); \ - else touch $@; fi - -# Generate the ChangeLog and clean the dist tarball -@GENERATE_CHANGELOG_RULES@ - -dist-hook: dist-ChangeLog -# find $(distdir) -name "*.c" -o -name "shotwell*.h" -o -name "shotwell*.vapi" -o -name "*vala.stamp" -exec rm {} \; - -MAINTAINERCLEANFILES = \ - $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \ - $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \ - $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) - -GITIGNOREFILES = \ - build \ - ABOUT-NLS \ - plugins/**/*.h \ - plugins/**/*.vapi \ - **/*.sw[nop] \ - **/*~ \ - *.o \ - m4/* \ - **/resource.c \ - aclocal.m4 \ - build-aux \ - ChangeLog \ - config \ - config.h.in \ - gtk-doc.m4 \ - gtk-doc.make \ - INSTALL \ - $(NULL) -# -# Generate utility library for plugins -# - -lib_LTLIBRARIES = \ - plugins/common/libshotwell-plugin-common.la - -plugins_common_libshotwell_plugin_common_la_SOURCES = \ - plugins/common/RESTSupport.vala \ - plugins/common/OAuth1Support.vala \ - plugins/common/Resources.vala \ - plugins/common/WebAuthenticationPane.vala \ - plugins/common/BuilderPane.vala \ - plugins/shotwell-plugin-dev-1.0.vapi - -$(top_srcdir)/plugins/shotwell-plugin-common.vapi plugins/shotwell-plugin-common.h: \ - plugins_common_libshotwell_plugin_common_la_vala.stamp - -plugins_common_libshotwell_plugin_common_la_VALAFLAGS = \ - $(COMMON_VALAFLAGS) \ - --library publishing-support \ - --pkg gtk+-3.0 \ - --pkg json-glib-1.0 \ - --pkg libsoup-2.4 \ - --pkg libxml-2.0 \ - --pkg webkit2gtk-4.0 \ - --pkg gee-0.8 \ - --vapi=plugins/shotwell-plugin-common.vapi \ - --header=plugins/shotwell-plugin-common.h - -plugins_common_libshotwell_plugin_common_la_CFLAGS = \ - $(PLUGIN_CFLAGS) \ - -Wno-incompatible-pointer-types -Wno-discarded-qualifiers \ - -DGETTEXT_PACKAGE='"$(GETTEXT_PACKAGE)"' \ - -I $(top_srcdir)/plugins -I$(top_builddir)/plugins - -plugins_common_libshotwell_plugin_common_la_LIBADD = \ - $(PLUGIN_LIBS) - -plugins/shotwell-plugin-dev-1.0.vapi plugins/shotwell-plugin-dev-1.0.h: src_plugins_libplugin_la_vala.stamp - -# -# Create intermediate library for the Plugin API -# -noinst_LTLIBRARIES = \ - src/plugins/libplugin.la - -src_plugins_libplugin_la_SOURCES = \ - src/plugins/SpitInterfaces.vala \ - src/plugins/TransitionsInterfaces.vala \ - src/plugins/PublishingInterfaces.vala \ - src/plugins/DataImportsInterfaces.vala - -src_plugins_libplugin_la_VALAFLAGS = \ - $(COMMON_VALAFLAGS) \ - --pkg gio-2.0 \ - --pkg gtk+-3.0 \ - --pkg gmodule-2.0 \ - --pkg gee-0.8 \ - --library plugins \ - --vapi=plugins/shotwell-plugin-dev-1.0.vapi \ - --header=plugins/shotwell-plugin-dev-1.0.h - -src_plugins_libplugin_la_CFLAGS = $(PLUGIN_CFLAGS) - -SHOTWELL_PLUGIN_LDFLAGS = \ - -no-undefined \ - -module \ - -shared \ - -export_dynamic \ - -avoid-version - --include $(top_srcdir)/git.mk - -plugindir = $(pkglibdir)/plugins/builtin -plugin_LTLIBRARIES = -dist_plugin_DATA = -pkglibexec_PROGRAMS = - -dist_pkglibexec_SCRIPTS = $(top_srcdir)/settings-migrator/shotwell-settings-migrator -dist_noinst_DATA = $(NULL) - -MOSTLYCLEANFILES = $(NULL) - -include $(top_srcdir)/common.am -include $(top_srcdir)/pipeline.am -include $(top_srcdir)/shotwell.am -include $(top_srcdir)/thumbnailer.am - -# Authenticators -include $(top_srcdir)/authenticator.am - -# Plugins -include $(top_srcdir)/publish.am - -if HAVE_EXTRA_PLUGINS -include $(top_srcdir)/publish-extra.am -endif - -include $(top_srcdir)/transition.am - -dist_noinst_SCRIPTS = \ - autogen.sh - -dist_noinst_DATA += \ - plugins/shotwell-plugin-dev-1.0.h \ - plugins/shotwell-plugin-common.h \ - vapi/gphoto.h \ - vapi/libexif.vapi \ - vapi/libgphoto2.vapi \ - vapi/libraw.vapi \ - vapi/misc.vapi \ - app-icons/meson.build \ - thumbnailer/meson.build \ - meson.build \ - po/meson.build \ - apport/meson.build \ - help/meson.build \ - settings-migrator/meson.build \ - misc/meson.build \ - src/meson.build \ - src/plugins/meson.build \ - plugins/meson.build \ - plugins/shotwell-publishing-extras/meson.build \ - plugins/shotwell-publishing/meson.build \ - plugins/authenticator/shotwell/meson.build \ - plugins/authenticator/meson.build \ - plugins/common/meson.build \ - plugins/shotwell-transitions/meson.build \ - meson_options.txt \ - app-icons/meson.build \ - apport/meson.build \ - help/meson.build \ - meson.build \ - meson_options.txt \ - misc/meson.build \ - plugins/authenticator/meson.build \ - plugins/authenticator/shotwell/meson.build \ - plugins/common/meson.build \ - plugins/meson.build \ - plugins/shotwell-publishing-extras/meson.build \ - plugins/shotwell-publishing/meson.build \ - plugins/shotwell-transitions/meson.build \ - po/meson.build \ - settings-migrator/meson.build \ - src/meson.build \ - src/plugins/meson.build \ - thumbnailer/meson.build \ - apport/shotwell.py diff --git a/Makefile.in b/Makefile.in deleted file mode 100644 index e5b4a04..0000000 --- a/Makefile.in +++ /dev/null @@ -1,8577 +0,0 @@ -# Makefile.in generated by automake 1.15.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2017 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - - - - -VPATH = @srcdir@ -am__is_gnu_make = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -@INSTALL_APPORT_HOOK_TRUE@am__append_1 = apport -pkglibexec_PROGRAMS = thumbnailer/shotwell-video-thumbnailer$(EXEEXT) -@IS_GITVERSION_TRUE@am__append_2 = -D_GIT_VERSION='"@GITVER@"' -@IS_GITVERSION_TRUE@am__append_3 = --define=_GITVERSION -noinst_PROGRAMS = src/shotwell-graphics-processor$(EXEEXT) -bin_PROGRAMS = shotwell$(EXEEXT) -@AUTHENTICATOR_SHOTWELL_TRUE@am__append_4 = \ -@AUTHENTICATOR_SHOTWELL_TRUE@ plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala \ -@AUTHENTICATOR_SHOTWELL_TRUE@ plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala \ -@AUTHENTICATOR_SHOTWELL_TRUE@ plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala \ -@AUTHENTICATOR_SHOTWELL_TRUE@ plugins/authenticator/shotwell/GoogleAuthenticator.vala \ -@AUTHENTICATOR_SHOTWELL_TRUE@ plugins/authenticator/shotwell/OAuth1Authenticator.vala \ -@AUTHENTICATOR_SHOTWELL_TRUE@ plugins/authenticator/shotwell/TumblrAuthenticator.vala - -@HAVE_EXTRA_PLUGINS_TRUE@am__append_5 = plugins/shotwell-publishing-extras/shotwell-publishing-extras.la -@HAVE_EXTRA_PLUGINS_TRUE@am__append_6 = \ -@HAVE_EXTRA_PLUGINS_TRUE@ plugins/shotwell-publishing-extras/gallery3.png \ -@HAVE_EXTRA_PLUGINS_TRUE@ plugins/shotwell-publishing-extras/rajce.png \ -@HAVE_EXTRA_PLUGINS_TRUE@ plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui \ -@HAVE_EXTRA_PLUGINS_TRUE@ plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui \ -@HAVE_EXTRA_PLUGINS_TRUE@ plugins/shotwell-publishing-extras/rajce_authentication_pane.ui \ -@HAVE_EXTRA_PLUGINS_TRUE@ plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui \ -@HAVE_EXTRA_PLUGINS_TRUE@ plugins/shotwell-publishing-extras/yandex_publish_model.ui \ -@HAVE_EXTRA_PLUGINS_TRUE@ plugins/shotwell-publishing-extras/org.gnome.Shotwell.Publishing.Extras.gresource.xml - -@HAVE_EXTRA_PLUGINS_TRUE@am__append_7 = plugins/shotwell-publishing-extras/resource.c -subdir = . -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/appstream-xml.m4 \ - $(top_srcdir)/m4/ax_generate_changelog.m4 \ - $(top_srcdir)/m4/ax_is_release.m4 \ - $(top_srcdir)/m4/ax_require_defined.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gsettings.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/yelp.m4 $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ - $(am__configure_deps) $(dist_noinst_SCRIPTS) \ - $(dist_pkglibexec_SCRIPTS) $(am__dist_noinst_DATA_DIST) \ - $(dist_plugin_DATA) $(am__DIST_COMMON) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(plugindir)" \ - "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkglibexecdir)" \ - "$(DESTDIR)$(pkglibexecdir)" "$(DESTDIR)$(plugindir)" -LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES) \ - $(plugin_LTLIBRARIES) -am__DEPENDENCIES_1 = -plugins_authenticator_libshotwell_authenticator_la_DEPENDENCIES = \ - $(am__DEPENDENCIES_1) \ - $(top_builddir)/plugins/common/libshotwell-plugin-common.la -am__plugins_authenticator_libshotwell_authenticator_la_SOURCES_DIST = \ - plugins/shotwell-plugin-common.vapi \ - plugins/shotwell-plugin-dev-1.0.vapi \ - plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala \ - plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala \ - plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala \ - plugins/authenticator/shotwell/GoogleAuthenticator.vala \ - plugins/authenticator/shotwell/OAuth1Authenticator.vala \ - plugins/authenticator/shotwell/TumblrAuthenticator.vala -am__dirstamp = $(am__leading_dot)dirstamp -@AUTHENTICATOR_SHOTWELL_TRUE@am__objects_1 = plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-ShotwellAuthenticatorFactory.lo \ -@AUTHENTICATOR_SHOTWELL_TRUE@ plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-FacebookPublishingAuthenticator.lo \ -@AUTHENTICATOR_SHOTWELL_TRUE@ plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-FlickrPublishingAuthenticator.lo \ -@AUTHENTICATOR_SHOTWELL_TRUE@ plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-GoogleAuthenticator.lo \ -@AUTHENTICATOR_SHOTWELL_TRUE@ plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-OAuth1Authenticator.lo \ -@AUTHENTICATOR_SHOTWELL_TRUE@ plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-TumblrAuthenticator.lo -am_plugins_authenticator_libshotwell_authenticator_la_OBJECTS = \ - $(am__objects_1) -nodist_plugins_authenticator_libshotwell_authenticator_la_OBJECTS = plugins/authenticator/plugins_authenticator_libshotwell_authenticator_la-resource.lo -plugins_authenticator_libshotwell_authenticator_la_OBJECTS = $(am_plugins_authenticator_libshotwell_authenticator_la_OBJECTS) \ - $(nodist_plugins_authenticator_libshotwell_authenticator_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_1 = -plugins_authenticator_libshotwell_authenticator_la_LINK = $(LIBTOOL) \ - $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) \ - $(plugins_authenticator_libshotwell_authenticator_la_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -plugins_common_libshotwell_plugin_common_la_DEPENDENCIES = \ - $(am__DEPENDENCIES_1) -am_plugins_common_libshotwell_plugin_common_la_OBJECTS = plugins/common/plugins_common_libshotwell_plugin_common_la-RESTSupport.lo \ - plugins/common/plugins_common_libshotwell_plugin_common_la-OAuth1Support.lo \ - plugins/common/plugins_common_libshotwell_plugin_common_la-Resources.lo \ - plugins/common/plugins_common_libshotwell_plugin_common_la-WebAuthenticationPane.lo \ - plugins/common/plugins_common_libshotwell_plugin_common_la-BuilderPane.lo -plugins_common_libshotwell_plugin_common_la_OBJECTS = \ - $(am_plugins_common_libshotwell_plugin_common_la_OBJECTS) -plugins_common_libshotwell_plugin_common_la_LINK = $(LIBTOOL) \ - $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) \ - $(plugins_common_libshotwell_plugin_common_la_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -@HAVE_EXTRA_PLUGINS_TRUE@plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_DEPENDENCIES = \ -@HAVE_EXTRA_PLUGINS_TRUE@ $(am__DEPENDENCIES_1) \ -@HAVE_EXTRA_PLUGINS_TRUE@ $(top_builddir)/plugins/common/libshotwell-plugin-common.la -am__plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_SOURCES_DIST = \ - plugins/shotwell-publishing-extras/GalleryConnector.vala \ - plugins/shotwell-publishing-extras/RajcePublishing.vala \ - plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala \ - plugins/shotwell-publishing-extras/YandexPublishing.vala \ - plugins/shotwell-plugin-common.vapi -@HAVE_EXTRA_PLUGINS_TRUE@am_plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_OBJECTS = plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-GalleryConnector.lo \ -@HAVE_EXTRA_PLUGINS_TRUE@ plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-RajcePublishing.lo \ -@HAVE_EXTRA_PLUGINS_TRUE@ plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-shotwell-publishing-extras.lo \ -@HAVE_EXTRA_PLUGINS_TRUE@ plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-YandexPublishing.lo -@HAVE_EXTRA_PLUGINS_TRUE@nodist_plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_OBJECTS = plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-resource.lo -plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_OBJECTS = $(am_plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_OBJECTS) \ - $(nodist_plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_OBJECTS) -plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_LINK = \ - $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_CFLAGS) \ - $(CFLAGS) \ - $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_LDFLAGS) \ - $(LDFLAGS) -o $@ -@HAVE_EXTRA_PLUGINS_TRUE@am_plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_rpath = \ -@HAVE_EXTRA_PLUGINS_TRUE@ -rpath $(plugindir) -plugins_shotwell_publishing_shotwell_publishing_la_DEPENDENCIES = \ - $(am__DEPENDENCIES_1) \ - $(top_builddir)/plugins/common/libshotwell-plugin-common.la \ - $(top_builddir)/plugins/authenticator/libshotwell-authenticator.la -am_plugins_shotwell_publishing_shotwell_publishing_la_OBJECTS = plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-shotwell-publishing.lo \ - plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-FacebookPublishing.lo \ - plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-PicasaPublishing.lo \ - plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-FlickrPublishing.lo \ - plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-TumblrPublishing.lo \ - plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-YouTubePublishing.lo \ - plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-PiwigoPublishing.lo -nodist_plugins_shotwell_publishing_shotwell_publishing_la_OBJECTS = plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-resource.lo -plugins_shotwell_publishing_shotwell_publishing_la_OBJECTS = $(am_plugins_shotwell_publishing_shotwell_publishing_la_OBJECTS) \ - $(nodist_plugins_shotwell_publishing_shotwell_publishing_la_OBJECTS) -plugins_shotwell_publishing_shotwell_publishing_la_LINK = $(LIBTOOL) \ - $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) \ - $(plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS) \ - $(CFLAGS) \ - $(plugins_shotwell_publishing_shotwell_publishing_la_LDFLAGS) \ - $(LDFLAGS) -o $@ -plugins_shotwell_transitions_shotwell_transitions_la_DEPENDENCIES = \ - $(am__DEPENDENCIES_1) \ - $(top_builddir)/plugins/common/libshotwell-plugin-common.la -am_plugins_shotwell_transitions_shotwell_transitions_la_OBJECTS = plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-BlindsEffect.lo \ - plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-ChessEffect.lo \ - plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CircleEffect.lo \ - plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CirclesEffect.lo \ - plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-ClockEffect.lo \ - plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CrumbleEffect.lo \ - plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-FadeEffect.lo \ - plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-shotwell-transitions.lo \ - plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-SlideEffect.lo \ - plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-SquaresEffect.lo \ - plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-StripesEffect.lo -nodist_plugins_shotwell_transitions_shotwell_transitions_la_OBJECTS = plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-resource.lo -plugins_shotwell_transitions_shotwell_transitions_la_OBJECTS = $(am_plugins_shotwell_transitions_shotwell_transitions_la_OBJECTS) \ - $(nodist_plugins_shotwell_transitions_shotwell_transitions_la_OBJECTS) -plugins_shotwell_transitions_shotwell_transitions_la_LINK = \ - $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) \ - $(CFLAGS) \ - $(plugins_shotwell_transitions_shotwell_transitions_la_LDFLAGS) \ - $(LDFLAGS) -o $@ -src_libgraphics_processor_la_LIBADD = -am_src_libgraphics_processor_la_OBJECTS = \ - src/src_libgraphics_processor_la-ColorTransformation.lo \ - src/util/src_libgraphics_processor_la-KeyValueMap.lo \ - src/src_libgraphics_processor_la-_transformation.lo -src_libgraphics_processor_la_OBJECTS = \ - $(am_src_libgraphics_processor_la_OBJECTS) -src_libgraphics_processor_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(src_libgraphics_processor_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ -src_plugins_libplugin_la_LIBADD = -am_src_plugins_libplugin_la_OBJECTS = \ - src/plugins/src_plugins_libplugin_la-SpitInterfaces.lo \ - src/plugins/src_plugins_libplugin_la-TransitionsInterfaces.lo \ - src/plugins/src_plugins_libplugin_la-PublishingInterfaces.lo \ - src/plugins/src_plugins_libplugin_la-DataImportsInterfaces.lo -src_plugins_libplugin_la_OBJECTS = \ - $(am_src_plugins_libplugin_la_OBJECTS) -src_plugins_libplugin_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(src_plugins_libplugin_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ -PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS) $(pkglibexec_PROGRAMS) -am_shotwell_OBJECTS = src/unit/shotwell-Unit.$(OBJEXT) \ - src/util/shotwell-Util.$(OBJEXT) \ - src/util/shotwell-file.$(OBJEXT) \ - src/util/shotwell-image.$(OBJEXT) \ - src/util/shotwell-misc.$(OBJEXT) \ - src/util/shotwell-string.$(OBJEXT) \ - src/util/shotwell-system.$(OBJEXT) \ - src/util/shotwell-ui.$(OBJEXT) \ - src/threads/shotwell-Threads.$(OBJEXT) \ - src/threads/shotwell-Workers.$(OBJEXT) \ - src/threads/shotwell-BackgroundJob.$(OBJEXT) \ - src/threads/shotwell-Semaphore.$(OBJEXT) \ - src/db/shotwell-Db.$(OBJEXT) \ - src/db/shotwell-DatabaseTable.$(OBJEXT) \ - src/db/shotwell-PhotoTable.$(OBJEXT) \ - src/db/shotwell-EventTable.$(OBJEXT) \ - src/db/shotwell-TagTable.$(OBJEXT) \ - src/db/shotwell-TombstoneTable.$(OBJEXT) \ - src/db/shotwell-VideoTable.$(OBJEXT) \ - src/db/shotwell-VersionTable.$(OBJEXT) \ - src/db/shotwell-SavedSearchDBTable.$(OBJEXT) \ - src/dialogs/shotwell-Preferences.$(OBJEXT) \ - src/dialogs/shotwell-EntryMultiCompletion.$(OBJEXT) \ - src/dialogs/shotwell-ExportDialog.$(OBJEXT) \ - src/dialogs/shotwell-TextEntry.$(OBJEXT) \ - src/dialogs/shotwell-WelcomeDialog.$(OBJEXT) \ - src/dialogs/shotwell-MultiTextEntryDialog.$(OBJEXT) \ - src/dialogs/shotwell-AdjustDateTimeDialog.$(OBJEXT) \ - src/dialogs/shotwell-SetBackground.$(OBJEXT) \ - src/dialogs/shotwell-ProgressDialog.$(OBJEXT) \ - src/dialogs/shotwell-SetBackgroundSlideshow.$(OBJEXT) \ - src/editing_tools/shotwell-EditingTools.$(OBJEXT) \ - src/editing_tools/shotwell-RGBHistogramManipulator.$(OBJEXT) \ - src/editing_tools/shotwell-StraightenTool.$(OBJEXT) \ - src/slideshow/shotwell-Slideshow.$(OBJEXT) \ - src/slideshow/shotwell-TransitionEffects.$(OBJEXT) \ - src/photos/shotwell-Photos.$(OBJEXT) \ - src/photos/shotwell-PhotoFileAdapter.$(OBJEXT) \ - src/photos/shotwell-PhotoFileFormat.$(OBJEXT) \ - src/photos/shotwell-PhotoFileSniffer.$(OBJEXT) \ - src/photos/shotwell-PhotoMetadata.$(OBJEXT) \ - src/photos/shotwell-GRaw.$(OBJEXT) \ - src/photos/shotwell-GdkSupport.$(OBJEXT) \ - src/photos/shotwell-JfifSupport.$(OBJEXT) \ - src/photos/shotwell-BmpSupport.$(OBJEXT) \ - src/photos/shotwell-RawSupport.$(OBJEXT) \ - src/photos/shotwell-PngSupport.$(OBJEXT) \ - src/photos/shotwell-TiffSupport.$(OBJEXT) \ - src/plugins/shotwell-Plugins.$(OBJEXT) \ - src/plugins/shotwell-StandardHostInterface.$(OBJEXT) \ - src/plugins/shotwell-ManifestWidget.$(OBJEXT) \ - src/publishing/shotwell-Publishing.$(OBJEXT) \ - src/publishing/shotwell-PublishingUI.$(OBJEXT) \ - src/publishing/shotwell-PublishingPluginHost.$(OBJEXT) \ - src/publishing/shotwell-APIGlue.$(OBJEXT) \ - src/library/shotwell-Library.$(OBJEXT) \ - src/library/shotwell-LibraryWindow.$(OBJEXT) \ - src/library/shotwell-LibraryBranch.$(OBJEXT) \ - src/library/shotwell-TrashSidebarEntry.$(OBJEXT) \ - src/library/shotwell-OfflineSidebarEntry.$(OBJEXT) \ - src/library/shotwell-FlaggedSidebarEntry.$(OBJEXT) \ - src/library/shotwell-LastImportSidebarEntry.$(OBJEXT) \ - src/library/shotwell-ImportQueueSidebarEntry.$(OBJEXT) \ - src/library/shotwell-FlaggedPage.$(OBJEXT) \ - src/library/shotwell-ImportQueuePage.$(OBJEXT) \ - src/library/shotwell-LastImportPage.$(OBJEXT) \ - src/library/shotwell-OfflinePage.$(OBJEXT) \ - src/library/shotwell-TrashPage.$(OBJEXT) \ - src/direct/shotwell-Direct.$(OBJEXT) \ - src/direct/shotwell-DirectWindow.$(OBJEXT) \ - src/direct/shotwell-DirectPhoto.$(OBJEXT) \ - src/direct/shotwell-DirectPhotoPage.$(OBJEXT) \ - src/direct/shotwell-DirectView.$(OBJEXT) \ - src/core/shotwell-Core.$(OBJEXT) \ - src/core/shotwell-DataCollection.$(OBJEXT) \ - src/core/shotwell-DataSet.$(OBJEXT) \ - src/core/shotwell-util.$(OBJEXT) \ - src/core/shotwell-SourceCollection.$(OBJEXT) \ - src/core/shotwell-SourceHoldingTank.$(OBJEXT) \ - src/core/shotwell-DatabaseSourceCollection.$(OBJEXT) \ - src/core/shotwell-ContainerSourceCollection.$(OBJEXT) \ - src/core/shotwell-ViewCollection.$(OBJEXT) \ - src/core/shotwell-DataObject.$(OBJEXT) \ - src/core/shotwell-Alteration.$(OBJEXT) \ - src/core/shotwell-DataSource.$(OBJEXT) \ - src/core/shotwell-DataSourceTypes.$(OBJEXT) \ - src/core/shotwell-DataView.$(OBJEXT) \ - src/core/shotwell-DataViewTypes.$(OBJEXT) \ - src/core/shotwell-Tracker.$(OBJEXT) \ - src/core/shotwell-SourceInterfaces.$(OBJEXT) \ - src/sidebar/shotwell-Sidebar.$(OBJEXT) \ - src/sidebar/shotwell-Branch.$(OBJEXT) \ - src/sidebar/shotwell-Entry.$(OBJEXT) \ - src/sidebar/shotwell-Tree.$(OBJEXT) \ - src/sidebar/shotwell-common.$(OBJEXT) \ - src/events/shotwell-Events.$(OBJEXT) \ - src/events/shotwell-EventsBranch.$(OBJEXT) \ - src/events/shotwell-EventsDirectoryPage.$(OBJEXT) \ - src/events/shotwell-EventPage.$(OBJEXT) \ - src/events/shotwell-EventDirectoryItem.$(OBJEXT) \ - src/tags/shotwell-Tags.$(OBJEXT) \ - src/tags/shotwell-TagsBranch.$(OBJEXT) \ - src/tags/shotwell-TagPage.$(OBJEXT) \ - src/tags/shotwell-HierarchicalTagIndex.$(OBJEXT) \ - src/tags/shotwell-HierarchicalTagUtilities.$(OBJEXT) \ - src/camera/shotwell-Camera.$(OBJEXT) \ - src/camera/shotwell-CameraBranch.$(OBJEXT) \ - src/camera/shotwell-CameraTable.$(OBJEXT) \ - src/camera/shotwell-GPhoto.$(OBJEXT) \ - src/camera/shotwell-ImportPage.$(OBJEXT) \ - src/searches/shotwell-Searches.$(OBJEXT) \ - src/searches/shotwell-SearchesBranch.$(OBJEXT) \ - src/searches/shotwell-SearchBoolean.$(OBJEXT) \ - src/searches/shotwell-SavedSearchPage.$(OBJEXT) \ - src/searches/shotwell-SavedSearchDialog.$(OBJEXT) \ - src/config/shotwell-Config.$(OBJEXT) \ - src/config/shotwell-ConfigurationInterfaces.$(OBJEXT) \ - src/config/shotwell-GSettingsEngine.$(OBJEXT) \ - src/data_imports/shotwell-DataImports.$(OBJEXT) \ - src/data_imports/shotwell-DataImportsPluginHost.$(OBJEXT) \ - src/data_imports/shotwell-DataImportsUI.$(OBJEXT) \ - src/data_imports/shotwell-DataImportJob.$(OBJEXT) \ - src/data_imports/shotwell-DataImportSource.$(OBJEXT) \ - src/folders/shotwell-Folders.$(OBJEXT) \ - src/folders/shotwell-FoldersBranch.$(OBJEXT) \ - src/folders/shotwell-FoldersPage.$(OBJEXT) \ - src/shotwell-main.$(OBJEXT) src/shotwell-AppWindow.$(OBJEXT) \ - src/shotwell-CollectionPage.$(OBJEXT) \ - src/shotwell-NaturalCollate.$(OBJEXT) \ - src/shotwell-Thumbnail.$(OBJEXT) \ - src/shotwell-ThumbnailCache.$(OBJEXT) \ - src/shotwell-CheckerboardLayout.$(OBJEXT) \ - src/shotwell-PhotoPage.$(OBJEXT) src/shotwell-Page.$(OBJEXT) \ - src/shotwell-SortedList.$(OBJEXT) \ - src/shotwell-Dimensions.$(OBJEXT) src/shotwell-Box.$(OBJEXT) \ - src/shotwell-Photo.$(OBJEXT) \ - src/shotwell-Orientation.$(OBJEXT) \ - src/shotwell-BatchImport.$(OBJEXT) \ - src/shotwell-Dialogs.$(OBJEXT) \ - src/shotwell-Resources.$(OBJEXT) src/shotwell-Debug.$(OBJEXT) \ - src/shotwell-Properties.$(OBJEXT) src/shotwell-Event.$(OBJEXT) \ - src/shotwell-International.$(OBJEXT) \ - src/shotwell-AppDirs.$(OBJEXT) \ - src/shotwell-PixbufCache.$(OBJEXT) \ - src/shotwell-CommandManager.$(OBJEXT) \ - src/shotwell-Commands.$(OBJEXT) \ - src/shotwell-SlideshowPage.$(OBJEXT) \ - src/shotwell-LibraryFiles.$(OBJEXT) \ - src/shotwell-Printing.$(OBJEXT) src/shotwell-Tag.$(OBJEXT) \ - src/shotwell-Screensaver.$(OBJEXT) \ - src/shotwell-Exporter.$(OBJEXT) \ - src/shotwell-DirectoryMonitor.$(OBJEXT) \ - src/shotwell-LibraryMonitor.$(OBJEXT) \ - src/shotwell-VideoSupport.$(OBJEXT) \ - src/shotwell-Tombstone.$(OBJEXT) \ - src/shotwell-MetadataWriter.$(OBJEXT) \ - src/shotwell-Application.$(OBJEXT) \ - src/shotwell-TimedQueue.$(OBJEXT) \ - src/shotwell-MediaPage.$(OBJEXT) \ - src/shotwell-MediaDataRepresentation.$(OBJEXT) \ - src/shotwell-DesktopIntegration.$(OBJEXT) \ - src/shotwell-MediaInterfaces.$(OBJEXT) \ - src/shotwell-MediaMetadata.$(OBJEXT) \ - src/shotwell-VideoMetadata.$(OBJEXT) \ - src/shotwell-MediaMonitor.$(OBJEXT) \ - src/shotwell-PhotoMonitor.$(OBJEXT) \ - src/shotwell-VideoMonitor.$(OBJEXT) \ - src/shotwell-SearchFilter.$(OBJEXT) \ - src/shotwell-MediaViewTracker.$(OBJEXT) \ - src/shotwell-UnityProgressBar.$(OBJEXT) \ - src/shotwell-Upgrades.$(OBJEXT) \ - src/.unitize/shotwell-_UnitInternals.$(OBJEXT) \ - src/.unitize/shotwell-_UtilInternals.$(OBJEXT) \ - src/.unitize/shotwell-_ThreadsInternals.$(OBJEXT) \ - src/.unitize/shotwell-_DbInternals.$(OBJEXT) \ - src/.unitize/shotwell-_EditingToolsInternals.$(OBJEXT) \ - src/.unitize/shotwell-_PluginsInternals.$(OBJEXT) \ - src/.unitize/shotwell-_SlideshowInternals.$(OBJEXT) \ - src/.unitize/shotwell-_PhotosInternals.$(OBJEXT) \ - src/.unitize/shotwell-_PublishingInternals.$(OBJEXT) \ - src/.unitize/shotwell-_LibraryInternals.$(OBJEXT) \ - src/.unitize/shotwell-_DirectInternals.$(OBJEXT) \ - src/.unitize/shotwell-_CoreInternals.$(OBJEXT) \ - src/.unitize/shotwell-_SidebarInternals.$(OBJEXT) \ - src/.unitize/shotwell-_EventsInternals.$(OBJEXT) \ - src/.unitize/shotwell-_TagsInternals.$(OBJEXT) \ - src/.unitize/shotwell-_CameraInternals.$(OBJEXT) \ - src/.unitize/shotwell-_SearchesInternals.$(OBJEXT) \ - src/.unitize/shotwell-_ConfigInternals.$(OBJEXT) \ - src/.unitize/shotwell-_DataImportsInternals.$(OBJEXT) \ - src/.unitize/shotwell-_FoldersInternals.$(OBJEXT) \ - src/.unitize/shotwell-_Library_unitize_entry.$(OBJEXT) \ - src/.unitize/shotwell-_Direct_unitize_entry.$(OBJEXT) -nodist_shotwell_OBJECTS = shotwell-resource.$(OBJEXT) -shotwell_OBJECTS = $(am_shotwell_OBJECTS) $(nodist_shotwell_OBJECTS) -shotwell_DEPENDENCIES = src/plugins/libplugin.la \ - src/libgraphics-processor.la $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_1) -shotwell_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(shotwell_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -am_src_shotwell_graphics_processor_OBJECTS = src/src_shotwell_graphics_processor-graphics-processor.$(OBJEXT) -src_shotwell_graphics_processor_OBJECTS = \ - $(am_src_shotwell_graphics_processor_OBJECTS) -src_shotwell_graphics_processor_DEPENDENCIES = \ - src/libgraphics-processor.la $(am__DEPENDENCIES_1) -src_shotwell_graphics_processor_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(src_shotwell_graphics_processor_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -am_thumbnailer_shotwell_video_thumbnailer_OBJECTS = thumbnailer/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.$(OBJEXT) -thumbnailer_shotwell_video_thumbnailer_OBJECTS = \ - $(am_thumbnailer_shotwell_video_thumbnailer_OBJECTS) -thumbnailer_shotwell_video_thumbnailer_DEPENDENCIES = \ - $(am__DEPENDENCIES_1) -thumbnailer_shotwell_video_thumbnailer_LINK = $(LIBTOOL) $(AM_V_lt) \ - --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ - $(CCLD) $(thumbnailer_shotwell_video_thumbnailer_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SCRIPTS = $(dist_noinst_SCRIPTS) $(dist_pkglibexec_SCRIPTS) -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -DEFAULT_INCLUDES = -I.@am__isrc@ -depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -VALACOMPILE = $(VALAC) $(AM_VALAFLAGS) $(VALAFLAGS) -LTVALACOMPILE = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(VALAC) $(AM_VALAFLAGS) \ - $(VALAFLAGS) -AM_V_VALAC = $(am__v_VALAC_@AM_V@) -am__v_VALAC_ = $(am__v_VALAC_@AM_DEFAULT_V@) -am__v_VALAC_0 = @echo " VALAC " $@; -am__v_VALAC_1 = -SOURCES = \ - $(plugins_authenticator_libshotwell_authenticator_la_SOURCES) \ - $(nodist_plugins_authenticator_libshotwell_authenticator_la_SOURCES) \ - $(plugins_common_libshotwell_plugin_common_la_SOURCES) \ - $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_SOURCES) \ - $(nodist_plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_SOURCES) \ - $(plugins_shotwell_publishing_shotwell_publishing_la_SOURCES) \ - $(nodist_plugins_shotwell_publishing_shotwell_publishing_la_SOURCES) \ - $(plugins_shotwell_transitions_shotwell_transitions_la_SOURCES) \ - $(nodist_plugins_shotwell_transitions_shotwell_transitions_la_SOURCES) \ - $(src_libgraphics_processor_la_SOURCES) \ - $(src_plugins_libplugin_la_SOURCES) $(shotwell_SOURCES) \ - $(nodist_shotwell_SOURCES) \ - $(src_shotwell_graphics_processor_SOURCES) \ - $(thumbnailer_shotwell_video_thumbnailer_SOURCES) -DIST_SOURCES = $(am__plugins_authenticator_libshotwell_authenticator_la_SOURCES_DIST) \ - $(plugins_common_libshotwell_plugin_common_la_SOURCES) \ - $(am__plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_SOURCES_DIST) \ - $(plugins_shotwell_publishing_shotwell_publishing_la_SOURCES) \ - $(plugins_shotwell_transitions_shotwell_transitions_la_SOURCES) \ - $(src_libgraphics_processor_la_SOURCES) \ - $(src_plugins_libplugin_la_SOURCES) $(shotwell_SOURCES) \ - $(src_shotwell_graphics_processor_SOURCES) \ - $(thumbnailer_shotwell_video_thumbnailer_SOURCES) -RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ - ctags-recursive dvi-recursive html-recursive info-recursive \ - install-data-recursive install-dvi-recursive \ - install-exec-recursive install-html-recursive \ - install-info-recursive install-pdf-recursive \ - install-ps-recursive install-recursive installcheck-recursive \ - installdirs-recursive pdf-recursive ps-recursive \ - tags-recursive uninstall-recursive -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__dist_noinst_DATA_DIST = src/shotwell-graphics-processor.vapi \ - src/shotwell-graphics-processor.h \ - org.gnome.Shotwell.gresource.xml \ - plugins/authenticator/shotwell/tumblr_authentication_pane.ui \ - plugins/authenticator/shotwell/org.gnome.Shotwell.Authenticator.gresource.xml \ - plugins/authenticator/shotwell-authenticator.h \ - plugins/shotwell-publishing/facebook.png \ - plugins/shotwell-publishing/flickr.png \ - plugins/shotwell-publishing/tumblr.png \ - plugins/shotwell-publishing/picasa.png \ - plugins/shotwell-publishing/piwigo.png \ - plugins/shotwell-publishing/youtube.png \ - plugins/shotwell-publishing/facebook_publishing_options_pane.ui \ - plugins/shotwell-publishing/flickr_publishing_options_pane.ui \ - plugins/shotwell-publishing/picasa_publishing_options_pane.ui \ - plugins/shotwell-publishing/piwigo_authentication_pane.ui \ - plugins/shotwell-publishing/piwigo_publishing_options_pane.ui \ - plugins/shotwell-publishing/piwigo_ssl_failure_pane.ui \ - plugins/shotwell-publishing/tumblr_publishing_options_pane.ui \ - plugins/shotwell-publishing/youtube_publishing_options_pane.ui \ - plugins/shotwell-publishing/org.gnome.Shotwell.Publishing.gresource.xml \ - plugins/shotwell-publishing-extras/gallery3.png \ - plugins/shotwell-publishing-extras/rajce.png \ - plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui \ - plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui \ - plugins/shotwell-publishing-extras/rajce_authentication_pane.ui \ - plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui \ - plugins/shotwell-publishing-extras/yandex_publish_model.ui \ - plugins/shotwell-publishing-extras/org.gnome.Shotwell.Publishing.Extras.gresource.xml \ - plugins/shotwell-transitions/slideshow-plugin.png \ - plugins/shotwell-transitions/org.gnome.Shotwell.Transitions.gresource.xml \ - plugins/shotwell-plugin-dev-1.0.h \ - plugins/shotwell-plugin-common.h vapi/gphoto.h \ - vapi/libexif.vapi vapi/libgphoto2.vapi vapi/libraw.vapi \ - vapi/misc.vapi app-icons/meson.build thumbnailer/meson.build \ - meson.build po/meson.build apport/meson.build help/meson.build \ - settings-migrator/meson.build misc/meson.build src/meson.build \ - src/plugins/meson.build plugins/meson.build \ - plugins/shotwell-publishing-extras/meson.build \ - plugins/shotwell-publishing/meson.build \ - plugins/authenticator/shotwell/meson.build \ - plugins/authenticator/meson.build plugins/common/meson.build \ - plugins/shotwell-transitions/meson.build meson_options.txt \ - apport/shotwell.py -DATA = $(dist_noinst_DATA) $(dist_plugin_DATA) -RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ - distclean-recursive maintainer-clean-recursive -am__recursive_targets = \ - $(RECURSIVE_TARGETS) \ - $(RECURSIVE_CLEAN_TARGETS) \ - $(am__extra_recursive_targets) -AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ - cscope distdir dist dist-all distcheck -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ - $(LISP)config.h.in -# Read a list of newline-separated strings from the standard input, -# and print each of them once, without duplicates. Input order is -# *not* preserved. -am__uniquify_input = $(AWK) '\ - BEGIN { nonempty = 0; } \ - { items[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in items) print i; }; } \ -' -# Make sure the list of sources is unique. This is necessary because, -# e.g., the same source file might be shared among _SOURCES variables -# for different programs/libraries. -am__define_uniq_tagged_files = \ - list='$(am__tagged_files)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags -CSCOPE = cscope -DIST_SUBDIRS = misc help po app-icons icons ui apport -am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ - $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp \ - $(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp \ - $(srcdir)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp \ - $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp \ - $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp \ - $(srcdir)/shotwell_vala.stamp \ - $(srcdir)/src_libgraphics_processor_la_vala.stamp \ - $(srcdir)/src_plugins_libplugin_la_vala.stamp \ - $(srcdir)/src_shotwell_graphics_processor_vala.stamp \ - $(srcdir)/thumbnailer_shotwell_video_thumbnailer_vala.stamp \ - $(top_srcdir)/authenticator.am $(top_srcdir)/build-aux/compile \ - $(top_srcdir)/build-aux/config.guess \ - $(top_srcdir)/build-aux/config.rpath \ - $(top_srcdir)/build-aux/config.sub \ - $(top_srcdir)/build-aux/depcomp \ - $(top_srcdir)/build-aux/install-sh \ - $(top_srcdir)/build-aux/ltmain.sh \ - $(top_srcdir)/build-aux/missing $(top_srcdir)/common.am \ - $(top_srcdir)/pipeline.am $(top_srcdir)/publish-extra.am \ - $(top_srcdir)/publish.am $(top_srcdir)/shotwell.am \ - $(top_srcdir)/thumbnailer.am $(top_srcdir)/transition.am \ - ABOUT-NLS AUTHORS COPYING INSTALL NEWS README THANKS \ - build-aux/compile build-aux/config.guess \ - build-aux/config.rpath build-aux/config.sub build-aux/depcomp \ - build-aux/install-sh build-aux/ltmain.sh build-aux/missing \ - plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c \ - plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c \ - plugins/authenticator/shotwell/GoogleAuthenticator.c \ - plugins/authenticator/shotwell/OAuth1Authenticator.c \ - plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c \ - plugins/authenticator/shotwell/TumblrAuthenticator.c \ - plugins/common/BuilderPane.c plugins/common/OAuth1Support.c \ - plugins/common/RESTSupport.c plugins/common/Resources.c \ - plugins/common/WebAuthenticationPane.c \ - plugins/shotwell-publishing-extras/GalleryConnector.c \ - plugins/shotwell-publishing-extras/RajcePublishing.c \ - plugins/shotwell-publishing-extras/YandexPublishing.c \ - plugins/shotwell-publishing-extras/shotwell-publishing-extras.c \ - plugins/shotwell-publishing/FacebookPublishing.c \ - plugins/shotwell-publishing/FlickrPublishing.c \ - plugins/shotwell-publishing/PicasaPublishing.c \ - plugins/shotwell-publishing/PiwigoPublishing.c \ - plugins/shotwell-publishing/TumblrPublishing.c \ - plugins/shotwell-publishing/YouTubePublishing.c \ - plugins/shotwell-publishing/shotwell-publishing.c \ - plugins/shotwell-transitions/BlindsEffect.c \ - plugins/shotwell-transitions/ChessEffect.c \ - plugins/shotwell-transitions/CircleEffect.c \ - plugins/shotwell-transitions/CirclesEffect.c \ - plugins/shotwell-transitions/ClockEffect.c \ - plugins/shotwell-transitions/CrumbleEffect.c \ - plugins/shotwell-transitions/FadeEffect.c \ - plugins/shotwell-transitions/SlideEffect.c \ - plugins/shotwell-transitions/SquaresEffect.c \ - plugins/shotwell-transitions/StripesEffect.c \ - plugins/shotwell-transitions/shotwell-transitions.c \ - src/.unitize/_CameraInternals.c \ - src/.unitize/_ConfigInternals.c src/.unitize/_CoreInternals.c \ - src/.unitize/_DataImportsInternals.c \ - src/.unitize/_DbInternals.c src/.unitize/_DirectInternals.c \ - src/.unitize/_Direct_unitize_entry.c \ - src/.unitize/_EditingToolsInternals.c \ - src/.unitize/_EventsInternals.c \ - src/.unitize/_FoldersInternals.c \ - src/.unitize/_LibraryInternals.c \ - src/.unitize/_Library_unitize_entry.c \ - src/.unitize/_PhotosInternals.c \ - src/.unitize/_PluginsInternals.c \ - src/.unitize/_PublishingInternals.c \ - src/.unitize/_SearchesInternals.c \ - src/.unitize/_SidebarInternals.c \ - src/.unitize/_SlideshowInternals.c \ - src/.unitize/_TagsInternals.c src/.unitize/_ThreadsInternals.c \ - src/.unitize/_UnitInternals.c src/.unitize/_UtilInternals.c \ - src/AppDirs.c src/AppWindow.c src/Application.c \ - src/BatchImport.c src/Box.c src/CheckerboardLayout.c \ - src/CollectionPage.c src/ColorTransformation.c \ - src/CommandManager.c src/Commands.c src/Debug.c \ - src/DesktopIntegration.c src/Dialogs.c src/Dimensions.c \ - src/DirectoryMonitor.c src/Event.c src/Exporter.c \ - src/International.c src/LibraryFiles.c src/LibraryMonitor.c \ - src/MediaDataRepresentation.c src/MediaInterfaces.c \ - src/MediaMetadata.c src/MediaMonitor.c src/MediaPage.c \ - src/MediaViewTracker.c src/MetadataWriter.c \ - src/NaturalCollate.c src/Orientation.c src/Page.c src/Photo.c \ - src/PhotoMonitor.c src/PhotoPage.c src/PixbufCache.c \ - src/Printing.c src/Properties.c src/Resources.c \ - src/Screensaver.c src/SearchFilter.c src/SlideshowPage.c \ - src/SortedList.c src/Tag.c src/Thumbnail.c \ - src/ThumbnailCache.c src/TimedQueue.c src/Tombstone.c \ - src/UnityProgressBar.c src/Upgrades.c src/VideoMetadata.c \ - src/VideoMonitor.c src/VideoSupport.c src/camera/Camera.c \ - src/camera/CameraBranch.c src/camera/CameraTable.c \ - src/camera/GPhoto.c src/camera/ImportPage.c \ - src/config/Config.c src/config/ConfigurationInterfaces.c \ - src/config/GSettingsEngine.c src/core/Alteration.c \ - src/core/ContainerSourceCollection.c src/core/Core.c \ - src/core/DataCollection.c src/core/DataObject.c \ - src/core/DataSet.c src/core/DataSource.c \ - src/core/DataSourceTypes.c src/core/DataView.c \ - src/core/DataViewTypes.c src/core/DatabaseSourceCollection.c \ - src/core/SourceCollection.c src/core/SourceHoldingTank.c \ - src/core/SourceInterfaces.c src/core/Tracker.c \ - src/core/ViewCollection.c src/core/util.c \ - src/data_imports/DataImportJob.c \ - src/data_imports/DataImportSource.c \ - src/data_imports/DataImports.c \ - src/data_imports/DataImportsPluginHost.c \ - src/data_imports/DataImportsUI.c src/db/DatabaseTable.c \ - src/db/Db.c src/db/EventTable.c src/db/PhotoTable.c \ - src/db/SavedSearchDBTable.c src/db/TagTable.c \ - src/db/TombstoneTable.c src/db/VersionTable.c \ - src/db/VideoTable.c src/dialogs/AdjustDateTimeDialog.c \ - src/dialogs/EntryMultiCompletion.c src/dialogs/ExportDialog.c \ - src/dialogs/MultiTextEntryDialog.c src/dialogs/Preferences.c \ - src/dialogs/ProgressDialog.c src/dialogs/SetBackground.c \ - src/dialogs/SetBackgroundSlideshow.c src/dialogs/TextEntry.c \ - src/dialogs/WelcomeDialog.c src/direct/Direct.c \ - src/direct/DirectPhoto.c src/direct/DirectPhotoPage.c \ - src/direct/DirectView.c src/direct/DirectWindow.c \ - src/editing_tools/EditingTools.c \ - src/editing_tools/RGBHistogramManipulator.c \ - src/editing_tools/StraightenTool.c \ - src/events/EventDirectoryItem.c src/events/EventPage.c \ - src/events/Events.c src/events/EventsBranch.c \ - src/events/EventsDirectoryPage.c src/folders/Folders.c \ - src/folders/FoldersBranch.c src/folders/FoldersPage.c \ - src/graphics-processor.c src/library/FlaggedPage.c \ - src/library/FlaggedSidebarEntry.c \ - src/library/ImportQueuePage.c \ - src/library/ImportQueueSidebarEntry.c \ - src/library/LastImportPage.c \ - src/library/LastImportSidebarEntry.c src/library/Library.c \ - src/library/LibraryBranch.c src/library/LibraryWindow.c \ - src/library/OfflinePage.c src/library/OfflineSidebarEntry.c \ - src/library/TrashPage.c src/library/TrashSidebarEntry.c \ - src/main.c src/photos/BmpSupport.c src/photos/GRaw.c \ - src/photos/GdkSupport.c src/photos/JfifSupport.c \ - src/photos/PhotoFileAdapter.c src/photos/PhotoFileFormat.c \ - src/photos/PhotoFileSniffer.c src/photos/PhotoMetadata.c \ - src/photos/Photos.c src/photos/PngSupport.c \ - src/photos/RawSupport.c src/photos/TiffSupport.c \ - src/plugins/DataImportsInterfaces.c \ - src/plugins/ManifestWidget.c src/plugins/Plugins.c \ - src/plugins/PublishingInterfaces.c \ - src/plugins/SpitInterfaces.c \ - src/plugins/StandardHostInterface.c \ - src/plugins/TransitionsInterfaces.c src/publishing/APIGlue.c \ - src/publishing/Publishing.c \ - src/publishing/PublishingPluginHost.c \ - src/publishing/PublishingUI.c src/searches/SavedSearchDialog.c \ - src/searches/SavedSearchPage.c src/searches/SearchBoolean.c \ - src/searches/Searches.c src/searches/SearchesBranch.c \ - src/sidebar/Branch.c src/sidebar/Entry.c src/sidebar/Sidebar.c \ - src/sidebar/Tree.c src/sidebar/common.c \ - src/slideshow/Slideshow.c src/slideshow/TransitionEffects.c \ - src/tags/HierarchicalTagIndex.c \ - src/tags/HierarchicalTagUtilities.c src/tags/TagPage.c \ - src/tags/Tags.c src/tags/TagsBranch.c \ - src/threads/BackgroundJob.c src/threads/Semaphore.c \ - src/threads/Threads.c src/threads/Workers.c src/unit/Unit.c \ - src/util/KeyValueMap.c src/util/Util.c src/util/file.c \ - src/util/image.c src/util/misc.c src/util/string.c \ - src/util/system.c src/util/ui.c \ - thumbnailer/shotwell-video-thumbnailer.c -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - if test -d "$(distdir)"; then \ - find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -rf "$(distdir)" \ - || { sleep 5 && rm -rf "$(distdir)"; }; \ - else :; fi -am__post_remove_distdir = $(am__remove_distdir) -am__relativize = \ - dir0=`pwd`; \ - sed_first='s,^\([^/]*\)/.*$$,\1,'; \ - sed_rest='s,^[^/]*/*,,'; \ - sed_last='s,^.*/\([^/]*\)$$,\1,'; \ - sed_butlast='s,/*[^/]*$$,,'; \ - while test -n "$$dir1"; do \ - first=`echo "$$dir1" | sed -e "$$sed_first"`; \ - if test "$$first" != "."; then \ - if test "$$first" = ".."; then \ - dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ - dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ - else \ - first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ - if test "$$first2" = "$$first"; then \ - dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ - else \ - dir2="../$$dir2"; \ - fi; \ - dir0="$$dir0"/"$$first"; \ - fi; \ - fi; \ - dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ - done; \ - reldir="$$dir2" -GZIP_ENV = --best -DIST_ARCHIVES = $(distdir).tar.xz -DIST_TARGETS = dist-xz -distuninstallcheck_listfiles = find . -type f -print -am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ - | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' -distcleancheck_listfiles = find . -type f -print -ACLOCAL = @ACLOCAL@ -ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -API_VERSION = @API_VERSION@ -APPSTREAM_UTIL = @APPSTREAM_UTIL@ -AR = @AR@ -AUTHENTICATOR_CFLAGS = @AUTHENTICATOR_CFLAGS@ -AUTHENTICATOR_LIBS = @AUTHENTICATOR_LIBS@ -AUTHENTICATOR_PACKAGES = @AUTHENTICATOR_PACKAGES@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GIT = @GIT@ -GITVER = @GITVER@ -GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -HAVE_EXTRA_PLUGINS = @HAVE_EXTRA_PLUGINS@ -HAVE_UNITY = @HAVE_UNITY@ -HELP_DIR = @HELP_DIR@ -IMPORT_CFLAGS = @IMPORT_CFLAGS@ -IMPORT_LIBS = @IMPORT_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -ITSTOOL = @ITSTOOL@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAJOR_VERSION = @MAJOR_VERSION@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MICRO_VERSION = @MICRO_VERSION@ -MINOR_VERSION = @MINOR_VERSION@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -PLUGIN_CFLAGS = @PLUGIN_CFLAGS@ -PLUGIN_LIBS = @PLUGIN_LIBS@ -POSUB = @POSUB@ -PUBLISHER_VALAFLAGS = @PUBLISHER_VALAFLAGS@ -PUBLISHING_CFLAGS = @PUBLISHING_CFLAGS@ -PUBLISHING_LIBS = @PUBLISHING_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SHOTWELL_CFLAGS = @SHOTWELL_CFLAGS@ -SHOTWELL_LIBS = @SHOTWELL_LIBS@ -STRIP = @STRIP@ -THUMBNAILER_CFLAGS = @THUMBNAILER_CFLAGS@ -THUMBNAILER_LIBS = @THUMBNAILER_LIBS@ -TRANSITIONS_CFLAGS = @TRANSITIONS_CFLAGS@ -TRANSITIONS_LIBS = @TRANSITIONS_LIBS@ -UNITY_CFLAGS = @UNITY_CFLAGS@ -UNITY_LIBS = @UNITY_LIBS@ -UNITY_VALAFLAGS = @UNITY_VALAFLAGS@ -USE_NLS = @USE_NLS@ -VALAC = @VALAC@ -VALAFLAGS = @VALAFLAGS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMLLINT = @XMLLINT@ -YELP_LC_DIST = @YELP_LC_DIST@ -YELP_LC_MEDIA_LINKS = @YELP_LC_MEDIA_LINKS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -appstreamxmldir = @appstreamxmldir@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -gsettingsschemadir = @gsettingsschemadir@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -runstatedir = @runstatedir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -SUBDIRS = misc help po app-icons icons ui $(am__append_1) -EXTRA_DIST = AUTHORS git-hash -# find $(distdir) -name "*.c" -o -name "shotwell*.h" -o -name "shotwell*.vapi" -o -name "*vala.stamp" -exec rm {} \; -MAINTAINERCLEANFILES = \ - $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \ - $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \ - $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) - -GITIGNOREFILES = \ - build \ - ABOUT-NLS \ - plugins/**/*.h \ - plugins/**/*.vapi \ - **/*.sw[nop] \ - **/*~ \ - *.o \ - m4/* \ - **/resource.c \ - aclocal.m4 \ - build-aux \ - ChangeLog \ - config \ - config.h.in \ - gtk-doc.m4 \ - gtk-doc.make \ - INSTALL \ - $(NULL) - -# -# Generate utility library for plugins -# -lib_LTLIBRARIES = plugins/common/libshotwell-plugin-common.la \ - plugins/authenticator/libshotwell-authenticator.la -plugins_common_libshotwell_plugin_common_la_SOURCES = \ - plugins/common/RESTSupport.vala \ - plugins/common/OAuth1Support.vala \ - plugins/common/Resources.vala \ - plugins/common/WebAuthenticationPane.vala \ - plugins/common/BuilderPane.vala \ - plugins/shotwell-plugin-dev-1.0.vapi - -plugins_common_libshotwell_plugin_common_la_VALAFLAGS = \ - $(COMMON_VALAFLAGS) \ - --library publishing-support \ - --pkg gtk+-3.0 \ - --pkg json-glib-1.0 \ - --pkg libsoup-2.4 \ - --pkg libxml-2.0 \ - --pkg webkit2gtk-4.0 \ - --pkg gee-0.8 \ - --vapi=plugins/shotwell-plugin-common.vapi \ - --header=plugins/shotwell-plugin-common.h - -plugins_common_libshotwell_plugin_common_la_CFLAGS = \ - $(PLUGIN_CFLAGS) \ - -Wno-incompatible-pointer-types -Wno-discarded-qualifiers \ - -DGETTEXT_PACKAGE='"$(GETTEXT_PACKAGE)"' \ - -I $(top_srcdir)/plugins -I$(top_builddir)/plugins - -plugins_common_libshotwell_plugin_common_la_LIBADD = \ - $(PLUGIN_LIBS) - - -# -# Create intermediate library for the Plugin API -# -noinst_LTLIBRARIES = src/plugins/libplugin.la \ - src/libgraphics-processor.la -src_plugins_libplugin_la_SOURCES = \ - src/plugins/SpitInterfaces.vala \ - src/plugins/TransitionsInterfaces.vala \ - src/plugins/PublishingInterfaces.vala \ - src/plugins/DataImportsInterfaces.vala - -src_plugins_libplugin_la_VALAFLAGS = \ - $(COMMON_VALAFLAGS) \ - --pkg gio-2.0 \ - --pkg gtk+-3.0 \ - --pkg gmodule-2.0 \ - --pkg gee-0.8 \ - --library plugins \ - --vapi=plugins/shotwell-plugin-dev-1.0.vapi \ - --header=plugins/shotwell-plugin-dev-1.0.h - -src_plugins_libplugin_la_CFLAGS = $(PLUGIN_CFLAGS) -SHOTWELL_PLUGIN_LDFLAGS = \ - -no-undefined \ - -module \ - -shared \ - -export_dynamic \ - -avoid-version - -plugindir = $(pkglibdir)/plugins/builtin -plugin_LTLIBRARIES = \ - plugins/shotwell-publishing/shotwell-publishing.la \ - $(am__append_5) \ - plugins/shotwell-transitions/shotwell-transitions.la -dist_plugin_DATA = -dist_pkglibexec_SCRIPTS = $(top_srcdir)/settings-migrator/shotwell-settings-migrator -dist_noinst_DATA = $(NULL) src/shotwell-graphics-processor.vapi \ - src/shotwell-graphics-processor.h \ - org.gnome.Shotwell.gresource.xml \ - plugins/authenticator/shotwell/tumblr_authentication_pane.ui \ - plugins/authenticator/shotwell/org.gnome.Shotwell.Authenticator.gresource.xml \ - plugins/authenticator/shotwell-authenticator.h \ - plugins/shotwell-publishing/facebook.png \ - plugins/shotwell-publishing/flickr.png \ - plugins/shotwell-publishing/tumblr.png \ - plugins/shotwell-publishing/picasa.png \ - plugins/shotwell-publishing/piwigo.png \ - plugins/shotwell-publishing/youtube.png \ - plugins/shotwell-publishing/facebook_publishing_options_pane.ui \ - plugins/shotwell-publishing/flickr_publishing_options_pane.ui \ - plugins/shotwell-publishing/picasa_publishing_options_pane.ui \ - plugins/shotwell-publishing/piwigo_authentication_pane.ui \ - plugins/shotwell-publishing/piwigo_publishing_options_pane.ui \ - plugins/shotwell-publishing/piwigo_ssl_failure_pane.ui \ - plugins/shotwell-publishing/tumblr_publishing_options_pane.ui \ - plugins/shotwell-publishing/youtube_publishing_options_pane.ui \ - plugins/shotwell-publishing/org.gnome.Shotwell.Publishing.gresource.xml \ - $(am__append_6) \ - plugins/shotwell-transitions/slideshow-plugin.png \ - plugins/shotwell-transitions/org.gnome.Shotwell.Transitions.gresource.xml \ - plugins/shotwell-plugin-dev-1.0.h \ - plugins/shotwell-plugin-common.h vapi/gphoto.h \ - vapi/libexif.vapi vapi/libgphoto2.vapi vapi/libraw.vapi \ - vapi/misc.vapi app-icons/meson.build thumbnailer/meson.build \ - meson.build po/meson.build apport/meson.build help/meson.build \ - settings-migrator/meson.build misc/meson.build src/meson.build \ - src/plugins/meson.build plugins/meson.build \ - plugins/shotwell-publishing-extras/meson.build \ - plugins/shotwell-publishing/meson.build \ - plugins/authenticator/shotwell/meson.build \ - plugins/authenticator/meson.build plugins/common/meson.build \ - plugins/shotwell-transitions/meson.build meson_options.txt \ - app-icons/meson.build apport/meson.build help/meson.build \ - meson.build meson_options.txt misc/meson.build \ - plugins/authenticator/meson.build \ - plugins/authenticator/shotwell/meson.build \ - plugins/common/meson.build plugins/meson.build \ - plugins/shotwell-publishing-extras/meson.build \ - plugins/shotwell-publishing/meson.build \ - plugins/shotwell-transitions/meson.build po/meson.build \ - settings-migrator/meson.build src/meson.build \ - src/plugins/meson.build thumbnailer/meson.build \ - apport/shotwell.py -MOSTLYCLEANFILES = $(NULL) resource.c plugins/authenticator/resource.c \ - plugins/shotwell-publishing/resource.c $(am__append_7) \ - plugins/shotwell-transitions/resource.c - -# --enable-checking needs to come first to not trigger -# https://debbugs.gnu.org/cgi/bugreport.cgi?bug=18734 -COMMON_VALAFLAGS = --enable-checking --target-glib=2.40 --thread \ - --fatal-warnings --enable-experimental --enable-deprecated \ - $(am__append_3) -COMMON_CFLAGS = -I$(top_srcdir)/vapi -D_PREFIX='"$(prefix)"' \ - -Wno-incompatible-pointer-types -Wno-discarded-qualifiers \ - -D_VERSION='"$(VERSION)"' \ - -DGETTEXT_PACKAGE='"$(GETTEXT_PACKAGE)"' \ - -D_LANG_SUPPORT_DIR='"$(prefix)/share/locale"' \ - -D_LIBEXECDIR='"$(libexecdir)"' -D_LIB='"$(libdir)"' \ - -Wno-incompatible-pointer-types -Wno-discarded-qualifiers \ - $(am__append_2) -src_libgraphics_processor_la_SOURCES = \ - src/ColorTransformation.vala \ - src/util/KeyValueMap.vala \ - src/_transformation.c - -src_libgraphics_processor_la_VALAFLAGS = \ - $(COMMON_VALAFLAGS) \ - --disable-assert \ - --pkg gio-2.0 \ - --pkg gdk-3.0 \ - --pkg gee-0.8 \ - --pkg gdk-pixbuf-2.0 \ - --vapi=src/shotwell-graphics-processor.vapi \ - --header=src/shotwell-graphics-processor.h - -src_libgraphics_processor_la_CFLAGS = $(SHOTWELL_CFLAGS) \ - $(COMMON_CFLAGS) -DG_DISABLE_CAST_CHECKS -src_shotwell_graphics_processor_SOURCES = \ - src/graphics-processor.vala \ - src/shotwell-graphics-processor.vapi - -src_shotwell_graphics_processor_VALAFLAGS = \ - $(COMMON_VALAFLAGS) \ - --pkg gio-2.0 \ - --pkg gdk-3.0 \ - --pkg gee-0.8 \ - --pkg gdk-pixbuf-2.0 - -src_shotwell_graphics_processor_CFLAGS = $(SHOTWELL_CFLAGS) $(COMMON_CFLAGS) -src_shotwell_graphics_processor_LDADD = \ - src/libgraphics-processor.la \ - $(SHOTWELL_LIBS) - -shotwell_CFLAGS = \ - $(SHOTWELL_CFLAGS) \ - $(UNITY_CFLAGS) \ - $(COMMON_CFLAGS) \ - -I$(top_builddir)/plugins \ - -I$(abs_top_srcdir)/plugins \ - -I$(abs_top_srcdir)/src - -shotwell_LDADD = \ - src/plugins/libplugin.la \ - src/libgraphics-processor.la \ - $(SHOTWELL_LIBS) \ - $(UNITY_LIBS) - -shotwell_VALAFLAGS = $(COMMON_VALAFLAGS) \ - --pkg gio-2.0 --pkg gtk+-3.0 --pkg gee-0.8 \ - --pkg gio-unix-2.0 --pkg sqlite3 --pkg gmodule-2.0 \ - --vapidir $(abs_top_srcdir)/vapi \ - --pkg libgphoto2 --pkg posix --pkg libraw --pkg gexiv2 \ - --pkg libexif --pkg gudev-1.0 --pkg gstreamer-1.0 \ - --pkg gstreamer-pbutils-1.0 --pkg misc \ - --gresources $(abs_top_srcdir)/org.gnome.Shotwell.gresource.xml \ - $(UNITY_VALAFLAGS) \ - $(COMMON_VALAFLAGS_POST) - -nodist_shotwell_SOURCES = \ - resource.c - -shotwell_resource_deps := $(shell $(GLIB_COMPILE_RESOURCES) \ - --sourcedir=$(abs_top_srcdir) \ - --generate-dependencies $(abs_top_srcdir)/org.gnome.Shotwell.gresource.xml) - -shotwell_SOURCES = \ - src/unit/Unit.vala \ - src/util/Util.vala \ - src/util/file.vala \ - src/util/image.vala \ - src/util/misc.vala \ - src/util/string.vala \ - src/util/system.vala \ - src/util/ui.vala \ - src/threads/Threads.vala \ - src/threads/Workers.vala \ - src/threads/BackgroundJob.vala \ - src/threads/Semaphore.vala \ - src/db/Db.vala \ - src/db/DatabaseTable.vala \ - src/db/PhotoTable.vala \ - src/db/EventTable.vala \ - src/db/TagTable.vala \ - src/db/TombstoneTable.vala \ - src/db/VideoTable.vala \ - src/db/VersionTable.vala \ - src/db/SavedSearchDBTable.vala \ - src/dialogs/Preferences.vala \ - src/dialogs/EntryMultiCompletion.vala \ - src/dialogs/ExportDialog.vala \ - src/dialogs/TextEntry.vala \ - src/dialogs/WelcomeDialog.vala \ - src/dialogs/MultiTextEntryDialog.vala \ - src/dialogs/AdjustDateTimeDialog.vala \ - src/dialogs/SetBackground.vala \ - src/dialogs/ProgressDialog.vala \ - src/dialogs/SetBackgroundSlideshow.vala \ - src/editing_tools/EditingTools.vala \ - src/editing_tools/RGBHistogramManipulator.vala \ - src/editing_tools/StraightenTool.vala \ - src/slideshow/Slideshow.vala \ - src/slideshow/TransitionEffects.vala \ - src/photos/Photos.vala \ - src/photos/PhotoFileAdapter.vala \ - src/photos/PhotoFileFormat.vala \ - src/photos/PhotoFileSniffer.vala \ - src/photos/PhotoMetadata.vala \ - src/photos/GRaw.vala \ - src/photos/GdkSupport.vala \ - src/photos/JfifSupport.vala \ - src/photos/BmpSupport.vala \ - src/photos/RawSupport.vala \ - src/photos/PngSupport.vala \ - src/photos/TiffSupport.vala \ - src/plugins/Plugins.vala \ - src/plugins/StandardHostInterface.vala \ - src/plugins/ManifestWidget.vala \ - src/publishing/Publishing.vala \ - src/publishing/PublishingUI.vala \ - src/publishing/PublishingPluginHost.vala \ - src/publishing/APIGlue.vala \ - src/library/Library.vala \ - src/library/LibraryWindow.vala \ - src/library/LibraryBranch.vala \ - src/library/TrashSidebarEntry.vala \ - src/library/OfflineSidebarEntry.vala \ - src/library/FlaggedSidebarEntry.vala \ - src/library/LastImportSidebarEntry.vala \ - src/library/ImportQueueSidebarEntry.vala \ - src/library/FlaggedPage.vala \ - src/library/ImportQueuePage.vala \ - src/library/LastImportPage.vala \ - src/library/OfflinePage.vala \ - src/library/TrashPage.vala \ - src/direct/Direct.vala \ - src/direct/DirectWindow.vala \ - src/direct/DirectPhoto.vala \ - src/direct/DirectPhotoPage.vala \ - src/direct/DirectView.vala \ - src/core/Core.vala \ - src/core/DataCollection.vala \ - src/core/DataSet.vala \ - src/core/util.vala \ - src/core/SourceCollection.vala \ - src/core/SourceHoldingTank.vala \ - src/core/DatabaseSourceCollection.vala \ - src/core/ContainerSourceCollection.vala \ - src/core/ViewCollection.vala \ - src/core/DataObject.vala \ - src/core/Alteration.vala \ - src/core/DataSource.vala \ - src/core/DataSourceTypes.vala \ - src/core/DataView.vala \ - src/core/DataViewTypes.vala \ - src/core/Tracker.vala \ - src/core/SourceInterfaces.vala \ - src/sidebar/Sidebar.vala \ - src/sidebar/Branch.vala \ - src/sidebar/Entry.vala \ - src/sidebar/Tree.vala \ - src/sidebar/common.vala \ - src/events/Events.vala \ - src/events/EventsBranch.vala \ - src/events/EventsDirectoryPage.vala \ - src/events/EventPage.vala \ - src/events/EventDirectoryItem.vala \ - src/tags/Tags.vala \ - src/tags/TagsBranch.vala \ - src/tags/TagPage.vala \ - src/tags/HierarchicalTagIndex.vala \ - src/tags/HierarchicalTagUtilities.vala \ - src/camera/Camera.vala \ - src/camera/CameraBranch.vala \ - src/camera/CameraTable.vala \ - src/camera/GPhoto.vala \ - src/camera/ImportPage.vala \ - src/searches/Searches.vala \ - src/searches/SearchesBranch.vala \ - src/searches/SearchBoolean.vala \ - src/searches/SavedSearchPage.vala \ - src/searches/SavedSearchDialog.vala \ - src/config/Config.vala \ - src/config/ConfigurationInterfaces.vala \ - src/config/GSettingsEngine.vala \ - src/data_imports/DataImports.vala \ - src/data_imports/DataImportsPluginHost.vala \ - src/data_imports/DataImportsUI.vala \ - src/data_imports/DataImportJob.vala \ - src/data_imports/DataImportSource.vala \ - src/folders/Folders.vala \ - src/folders/FoldersBranch.vala \ - src/folders/FoldersPage.vala \ - src/main.vala \ - src/AppWindow.vala \ - src/CollectionPage.vala \ - src/NaturalCollate.vala \ - src/Thumbnail.vala \ - src/ThumbnailCache.vala \ - src/CheckerboardLayout.vala \ - src/PhotoPage.vala \ - src/Page.vala \ - src/SortedList.vala \ - src/Dimensions.vala \ - src/Box.vala \ - src/Photo.vala \ - src/Orientation.vala \ - src/BatchImport.vala \ - src/Dialogs.vala \ - src/Resources.vala \ - src/Debug.vala \ - src/Properties.vala \ - src/Event.vala \ - src/International.vala \ - src/AppDirs.vala \ - src/PixbufCache.vala \ - src/CommandManager.vala \ - src/Commands.vala \ - src/SlideshowPage.vala \ - src/LibraryFiles.vala \ - src/Printing.vala \ - src/Tag.vala \ - src/Screensaver.vala \ - src/Exporter.vala \ - src/DirectoryMonitor.vala \ - src/LibraryMonitor.vala \ - src/VideoSupport.vala \ - src/Tombstone.vala \ - src/MetadataWriter.vala \ - src/Application.vala \ - src/TimedQueue.vala \ - src/MediaPage.vala \ - src/MediaDataRepresentation.vala \ - src/DesktopIntegration.vala \ - src/MediaInterfaces.vala \ - src/MediaMetadata.vala \ - src/VideoMetadata.vala \ - src/MediaMonitor.vala \ - src/PhotoMonitor.vala \ - src/VideoMonitor.vala \ - src/SearchFilter.vala \ - src/MediaViewTracker.vala \ - src/UnityProgressBar.vala \ - src/Upgrades.vala \ - src/.unitize/_UnitInternals.vala \ - src/.unitize/_UtilInternals.vala \ - src/.unitize/_ThreadsInternals.vala \ - src/.unitize/_DbInternals.vala \ - src/.unitize/_EditingToolsInternals.vala \ - src/.unitize/_PluginsInternals.vala \ - src/.unitize/_SlideshowInternals.vala \ - src/.unitize/_PhotosInternals.vala \ - src/.unitize/_PublishingInternals.vala \ - src/.unitize/_LibraryInternals.vala \ - src/.unitize/_DirectInternals.vala \ - src/.unitize/_CoreInternals.vala \ - src/.unitize/_SidebarInternals.vala \ - src/.unitize/_EventsInternals.vala \ - src/.unitize/_TagsInternals.vala \ - src/.unitize/_CameraInternals.vala \ - src/.unitize/_SearchesInternals.vala \ - src/.unitize/_ConfigInternals.vala \ - src/.unitize/_DataImportsInternals.vala \ - src/.unitize/_FoldersInternals.vala \ - src/.unitize/_Library_unitize_entry.vala \ - src/.unitize/_Direct_unitize_entry.vala \ - plugins/shotwell-plugin-dev-1.0.vapi \ - src/shotwell-graphics-processor.vapi - -thumbnailer_shotwell_video_thumbnailer_SOURCES = thumbnailer/shotwell-video-thumbnailer.vala -thumbnailer_shotwell_video_thumbnailer_VALAFLAGS = $(COMMON_VALAFLAGS) \ - --pkg gstreamer-1.0 \ - --pkg gee-0.8 \ - --pkg gtk+-3.0 \ - --pkg posix - -thumbnailer_shotwell_video_thumbnailer_CFLAGS = $(THUMBNAILER_CFLAGS) -thumbnailer_shotwell_video_thumbnailer_LDADD = $(THUMBNAILER_LIBS) -plugins_authenticator_libshotwell_authenticator_la_SOURCES = \ - plugins/shotwell-plugin-common.vapi \ - plugins/shotwell-plugin-dev-1.0.vapi $(am__append_4) -plugins_authenticator_libshotwell_authenticator_la_VALAFLAGS = \ - $(COMMON_VALAFLAGS) \ - --library shotwell-authenticator \ - --vapi=plugins/authenticator/shotwell-authenticator.vapi \ - --header=plugins/authenticator/shotwell-authenticator.h \ - $(AUTHENTICATOR_PACKAGES) \ - --vapidir $(abs_top_srcdir)/plugins - -plugins_authenticator_libshotwell_authenticator_la_LIBADD = \ - $(AUTHENTICATOR_LIBS) \ - $(top_builddir)/plugins/common/libshotwell-plugin-common.la - -plugins_authenticator_libshotwell_authenticator_la_CFLAGS = \ - $(COMMON_CFLAGS) \ - $(AUTHENTICATOR_CFLAGS) \ - -I $(top_srcdir)/plugins \ - -DPLUGIN_RESOURCE_PATH='"/org/gnome/Shotwell/Authenticator"' - -nodist_plugins_authenticator_libshotwell_authenticator_la_SOURCES = \ - plugins/authenticator/resource.c - -AUTHENTICATOR_RESOURCE_DEPS = $(shell $(GLIB_COMPILE_RESOURCES) \ - --sourcedir=$(AUTHENTICATOR_RESOURCE_SOURCEDIR) \ - --generate-dependencies $(AUTHENTICATOR_RESOURCE_FILE)) - -@AUTHENTICATOR_SHOTWELL_TRUE@AUTHENTICATOR_RESOURCE_FILE := $(abs_top_srcdir)/plugins/authenticator/shotwell/org.gnome.Shotwell.Authenticator.gresource.xml -@AUTHENTICATOR_SHOTWELL_TRUE@AUTHENTICATOR_RESOURCE_SOURCEDIR := $(abs_top_srcdir)/plugins/authenticator/shotwell -plugins_shotwell_publishing_shotwell_publishing_la_SOURCES = \ - plugins/shotwell-publishing/shotwell-publishing.vala \ - plugins/shotwell-publishing/FacebookPublishing.vala \ - plugins/shotwell-publishing/PicasaPublishing.vala \ - plugins/shotwell-publishing/FlickrPublishing.vala \ - plugins/shotwell-publishing/TumblrPublishing.vala \ - plugins/shotwell-publishing/YouTubePublishing.vala \ - plugins/shotwell-publishing/PiwigoPublishing.vala \ - plugins/shotwell-plugin-common.vapi \ - plugins/authenticator/shotwell-authenticator.vapi \ - vapi/libgdata.vapi - -nodist_plugins_shotwell_publishing_shotwell_publishing_la_SOURCES = \ - plugins/shotwell-publishing/resource.c - -PUBLISHING_RESOURCE_FILE := $(abs_top_srcdir)/plugins/shotwell-publishing/org.gnome.Shotwell.Publishing.gresource.xml -PUBLISHING_RESOURCE_DEPS = $(shell $(GLIB_COMPILE_RESOURCES) \ - --sourcedir=$(abs_top_srcdir)/plugins/shotwell-publishing \ - --generate-dependencies $(PUBLISHING_RESOURCE_FILE)) - -plugins_shotwell_publishing_shotwell_publishing_la_VALAFLAGS = \ - $(COMMON_VALAFLAGS) \ - @PUBLISHER_VALAFLAGS@ \ - --pkg gtk+-3.0 \ - --pkg libsoup-2.4 \ - --pkg gexiv2 \ - --pkg gee-0.8 \ - --pkg json-glib-1.0 \ - --pkg shotwell-plugin-dev-1.0 \ - --pkg libxml-2.0 \ - --pkg webkit2gtk-4.0 \ - --pkg gcr-3 \ - --pkg gcr-ui-3 \ - --vapidir $(abs_top_srcdir)/plugins - -plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS = \ - -DPLUGIN_RESOURCE_PATH='"/org/gnome/Shotwell/Publishing"' \ - $(PLUGIN_CFLAGS) \ - $(COMMON_CFLAGS) \ - -DGCR_API_SUBJECT_TO_CHANGE \ - $(PUBLISHING_CFLAGS) \ - -I $(top_srcdir)/plugins \ - -I $(top_srcdir)/plugins/authenticator - -plugins_shotwell_publishing_shotwell_publishing_la_LDFLAGS = \ - $(SHOTWELL_PLUGIN_LDFLAGS) - -plugins_shotwell_publishing_shotwell_publishing_la_LIBADD = \ - $(PUBLISHING_LIBS) \ - $(top_builddir)/plugins/common/libshotwell-plugin-common.la \ - $(top_builddir)/plugins/authenticator/libshotwell-authenticator.la - -@HAVE_EXTRA_PLUGINS_TRUE@plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_SOURCES = \ -@HAVE_EXTRA_PLUGINS_TRUE@ plugins/shotwell-publishing-extras/GalleryConnector.vala \ -@HAVE_EXTRA_PLUGINS_TRUE@ plugins/shotwell-publishing-extras/RajcePublishing.vala \ -@HAVE_EXTRA_PLUGINS_TRUE@ plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala \ -@HAVE_EXTRA_PLUGINS_TRUE@ plugins/shotwell-publishing-extras/YandexPublishing.vala \ -@HAVE_EXTRA_PLUGINS_TRUE@ plugins/shotwell-plugin-common.vapi - -@HAVE_EXTRA_PLUGINS_TRUE@nodist_plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_SOURCES = \ -@HAVE_EXTRA_PLUGINS_TRUE@ plugins/shotwell-publishing-extras/resource.c - -@HAVE_EXTRA_PLUGINS_TRUE@plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_VALAFLAGS = \ -@HAVE_EXTRA_PLUGINS_TRUE@ $(COMMON_VALAFLAGS) \ -@HAVE_EXTRA_PLUGINS_TRUE@ @PUBLISHER_VALAFLAGS@ \ -@HAVE_EXTRA_PLUGINS_TRUE@ --pkg gtk+-3.0 \ -@HAVE_EXTRA_PLUGINS_TRUE@ --pkg libsoup-2.4 \ -@HAVE_EXTRA_PLUGINS_TRUE@ --pkg gexiv2 \ -@HAVE_EXTRA_PLUGINS_TRUE@ --pkg gee-0.8 \ -@HAVE_EXTRA_PLUGINS_TRUE@ --pkg json-glib-1.0 \ -@HAVE_EXTRA_PLUGINS_TRUE@ --pkg shotwell-plugin-dev-1.0 \ -@HAVE_EXTRA_PLUGINS_TRUE@ --pkg libxml-2.0 \ -@HAVE_EXTRA_PLUGINS_TRUE@ --pkg webkit2gtk-4.0 \ -@HAVE_EXTRA_PLUGINS_TRUE@ --vapidir $(abs_top_srcdir)/plugins - -@HAVE_EXTRA_PLUGINS_TRUE@plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_CFLAGS = \ -@HAVE_EXTRA_PLUGINS_TRUE@ -DPLUGIN_RESOURCE_PATH='"/org/gnome/Shotwell/Publishing/Extras"' \ -@HAVE_EXTRA_PLUGINS_TRUE@ $(PLUGIN_CFLAGS) \ -@HAVE_EXTRA_PLUGINS_TRUE@ $(COMMON_CFLAGS) \ -@HAVE_EXTRA_PLUGINS_TRUE@ -I $(abs_top_srcdir)/plugins - -@HAVE_EXTRA_PLUGINS_TRUE@plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_LDFLAGS = \ -@HAVE_EXTRA_PLUGINS_TRUE@ $(SHOTWELL_PLUGIN_LDFLAGS) - -@HAVE_EXTRA_PLUGINS_TRUE@plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_LIBADD = \ -@HAVE_EXTRA_PLUGINS_TRUE@ $(PUBLISHING_LIBS) \ -@HAVE_EXTRA_PLUGINS_TRUE@ $(top_builddir)/plugins/common/libshotwell-plugin-common.la - -plugins_shotwell_transitions_shotwell_transitions_la_SOURCES = \ - plugins/shotwell-transitions/BlindsEffect.vala \ - plugins/shotwell-transitions/ChessEffect.vala \ - plugins/shotwell-transitions/CircleEffect.vala \ - plugins/shotwell-transitions/CirclesEffect.vala \ - plugins/shotwell-transitions/ClockEffect.vala \ - plugins/shotwell-transitions/CrumbleEffect.vala \ - plugins/shotwell-transitions/FadeEffect.vala \ - plugins/shotwell-transitions/shotwell-transitions.vala \ - plugins/shotwell-transitions/SlideEffect.vala \ - plugins/shotwell-transitions/SquaresEffect.vala \ - plugins/shotwell-transitions/StripesEffect.vala \ - plugins/shotwell-plugin-common.vapi - -nodist_plugins_shotwell_transitions_shotwell_transitions_la_SOURCES = \ - plugins/shotwell-transitions/resource.c - -plugins_shotwell_transitions_shotwell_transitions_la_VALAFLAGS = \ - $(COMMON_VALAFLAGS) \ - --pkg gtk+-3.0 \ - --pkg libsoup-2.4 \ - --pkg gexiv2 \ - --pkg gee-0.8 \ - --pkg json-glib-1.0 \ - --pkg shotwell-plugin-dev-1.0 \ - --pkg libxml-2.0 \ - --pkg webkit2gtk-4.0 \ - --vapidir $(abs_top_srcdir)/plugins - -plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS = \ - -DPLUGIN_RESOURCE_PATH='"/org/gnome/Shotwell/Transitions"' \ - $(PLUGIN_CFLAGS) \ - $(COMMON_CFLAGS) \ - -I $(abs_top_srcdir)/plugins - -plugins_shotwell_transitions_shotwell_transitions_la_LDFLAGS = \ - $(SHOTWELL_PLUGIN_LDFLAGS) - -plugins_shotwell_transitions_shotwell_transitions_la_LIBADD = \ - $(TRANSITIONS_LIBS) -lm \ - $(top_builddir)/plugins/common/libshotwell-plugin-common.la - - -# Authenticators - -# Plugins -dist_noinst_SCRIPTS = \ - autogen.sh - -all: config.h - $(MAKE) $(AM_MAKEFLAGS) all-recursive - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -am--refresh: Makefile - @: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/common.am $(top_srcdir)/pipeline.am $(top_srcdir)/shotwell.am $(top_srcdir)/thumbnailer.am $(top_srcdir)/authenticator.am $(top_srcdir)/publish.am $(top_srcdir)/publish-extra.am $(top_srcdir)/transition.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ - $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; -$(top_srcdir)/common.am $(top_srcdir)/pipeline.am $(top_srcdir)/shotwell.am $(top_srcdir)/thumbnailer.am $(top_srcdir)/authenticator.am $(top_srcdir)/publish.am $(top_srcdir)/publish-extra.am $(top_srcdir)/transition.am $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - $(am__cd) $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -$(am__aclocal_m4_deps): - -config.h: stamp-h1 - @test -f $@ || rm -f stamp-h1 - @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 - -stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status - @rm -f stamp-h1 - cd $(top_builddir) && $(SHELL) ./config.status config.h -$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) - rm -f stamp-h1 - touch $@ - -distclean-hdr: - -rm -f config.h stamp-h1 - -install-libLTLIBRARIES: $(lib_LTLIBRARIES) - @$(NORMAL_INSTALL) - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ - list2=; for p in $$list; do \ - if test -f $$p; then \ - list2="$$list2 $$p"; \ - else :; fi; \ - done; \ - test -z "$$list2" || { \ - echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ - } - -uninstall-libLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ - done - -clean-libLTLIBRARIES: - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) - @list='$(lib_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES) - @$(NORMAL_INSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \ - list2=; for p in $$list; do \ - if test -f $$p; then \ - list2="$$list2 $$p"; \ - else :; fi; \ - done; \ - test -z "$$list2" || { \ - echo " $(MKDIR_P) '$(DESTDIR)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || exit 1; \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(plugindir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(plugindir)"; \ - } - -uninstall-pluginLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$f"; \ - done - -clean-pluginLTLIBRARIES: - -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES) - @list='$(plugin_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } -plugins/authenticator/shotwell/$(am__dirstamp): - @$(MKDIR_P) plugins/authenticator/shotwell - @: > plugins/authenticator/shotwell/$(am__dirstamp) -plugins/authenticator/shotwell/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) plugins/authenticator/shotwell/$(DEPDIR) - @: > plugins/authenticator/shotwell/$(DEPDIR)/$(am__dirstamp) -plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-ShotwellAuthenticatorFactory.lo: \ - plugins/authenticator/shotwell/$(am__dirstamp) \ - plugins/authenticator/shotwell/$(DEPDIR)/$(am__dirstamp) -plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-FacebookPublishingAuthenticator.lo: \ - plugins/authenticator/shotwell/$(am__dirstamp) \ - plugins/authenticator/shotwell/$(DEPDIR)/$(am__dirstamp) -plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-FlickrPublishingAuthenticator.lo: \ - plugins/authenticator/shotwell/$(am__dirstamp) \ - plugins/authenticator/shotwell/$(DEPDIR)/$(am__dirstamp) -plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-GoogleAuthenticator.lo: \ - plugins/authenticator/shotwell/$(am__dirstamp) \ - plugins/authenticator/shotwell/$(DEPDIR)/$(am__dirstamp) -plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-OAuth1Authenticator.lo: \ - plugins/authenticator/shotwell/$(am__dirstamp) \ - plugins/authenticator/shotwell/$(DEPDIR)/$(am__dirstamp) -plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-TumblrAuthenticator.lo: \ - plugins/authenticator/shotwell/$(am__dirstamp) \ - plugins/authenticator/shotwell/$(DEPDIR)/$(am__dirstamp) -plugins/authenticator/$(am__dirstamp): - @$(MKDIR_P) plugins/authenticator - @: > plugins/authenticator/$(am__dirstamp) -plugins/authenticator/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) plugins/authenticator/$(DEPDIR) - @: > plugins/authenticator/$(DEPDIR)/$(am__dirstamp) -plugins/authenticator/plugins_authenticator_libshotwell_authenticator_la-resource.lo: \ - plugins/authenticator/$(am__dirstamp) \ - plugins/authenticator/$(DEPDIR)/$(am__dirstamp) - -plugins/authenticator/libshotwell-authenticator.la: $(plugins_authenticator_libshotwell_authenticator_la_OBJECTS) $(plugins_authenticator_libshotwell_authenticator_la_DEPENDENCIES) $(EXTRA_plugins_authenticator_libshotwell_authenticator_la_DEPENDENCIES) plugins/authenticator/$(am__dirstamp) - $(AM_V_CCLD)$(plugins_authenticator_libshotwell_authenticator_la_LINK) -rpath $(libdir) $(plugins_authenticator_libshotwell_authenticator_la_OBJECTS) $(plugins_authenticator_libshotwell_authenticator_la_LIBADD) $(LIBS) -plugins/common/$(am__dirstamp): - @$(MKDIR_P) plugins/common - @: > plugins/common/$(am__dirstamp) -plugins/common/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) plugins/common/$(DEPDIR) - @: > plugins/common/$(DEPDIR)/$(am__dirstamp) -plugins/common/plugins_common_libshotwell_plugin_common_la-RESTSupport.lo: \ - plugins/common/$(am__dirstamp) \ - plugins/common/$(DEPDIR)/$(am__dirstamp) -plugins/common/plugins_common_libshotwell_plugin_common_la-OAuth1Support.lo: \ - plugins/common/$(am__dirstamp) \ - plugins/common/$(DEPDIR)/$(am__dirstamp) -plugins/common/plugins_common_libshotwell_plugin_common_la-Resources.lo: \ - plugins/common/$(am__dirstamp) \ - plugins/common/$(DEPDIR)/$(am__dirstamp) -plugins/common/plugins_common_libshotwell_plugin_common_la-WebAuthenticationPane.lo: \ - plugins/common/$(am__dirstamp) \ - plugins/common/$(DEPDIR)/$(am__dirstamp) -plugins/common/plugins_common_libshotwell_plugin_common_la-BuilderPane.lo: \ - plugins/common/$(am__dirstamp) \ - plugins/common/$(DEPDIR)/$(am__dirstamp) - -plugins/common/libshotwell-plugin-common.la: $(plugins_common_libshotwell_plugin_common_la_OBJECTS) $(plugins_common_libshotwell_plugin_common_la_DEPENDENCIES) $(EXTRA_plugins_common_libshotwell_plugin_common_la_DEPENDENCIES) plugins/common/$(am__dirstamp) - $(AM_V_CCLD)$(plugins_common_libshotwell_plugin_common_la_LINK) -rpath $(libdir) $(plugins_common_libshotwell_plugin_common_la_OBJECTS) $(plugins_common_libshotwell_plugin_common_la_LIBADD) $(LIBS) -plugins/shotwell-publishing-extras/$(am__dirstamp): - @$(MKDIR_P) plugins/shotwell-publishing-extras - @: > plugins/shotwell-publishing-extras/$(am__dirstamp) -plugins/shotwell-publishing-extras/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) plugins/shotwell-publishing-extras/$(DEPDIR) - @: > plugins/shotwell-publishing-extras/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-GalleryConnector.lo: \ - plugins/shotwell-publishing-extras/$(am__dirstamp) \ - plugins/shotwell-publishing-extras/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-RajcePublishing.lo: \ - plugins/shotwell-publishing-extras/$(am__dirstamp) \ - plugins/shotwell-publishing-extras/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-shotwell-publishing-extras.lo: \ - plugins/shotwell-publishing-extras/$(am__dirstamp) \ - plugins/shotwell-publishing-extras/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-YandexPublishing.lo: \ - plugins/shotwell-publishing-extras/$(am__dirstamp) \ - plugins/shotwell-publishing-extras/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-resource.lo: \ - plugins/shotwell-publishing-extras/$(am__dirstamp) \ - plugins/shotwell-publishing-extras/$(DEPDIR)/$(am__dirstamp) - -plugins/shotwell-publishing-extras/shotwell-publishing-extras.la: $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_OBJECTS) $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_DEPENDENCIES) $(EXTRA_plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_DEPENDENCIES) plugins/shotwell-publishing-extras/$(am__dirstamp) - $(AM_V_CCLD)$(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_LINK) $(am_plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_rpath) $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_OBJECTS) $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_LIBADD) $(LIBS) -plugins/shotwell-publishing/$(am__dirstamp): - @$(MKDIR_P) plugins/shotwell-publishing - @: > plugins/shotwell-publishing/$(am__dirstamp) -plugins/shotwell-publishing/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) plugins/shotwell-publishing/$(DEPDIR) - @: > plugins/shotwell-publishing/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-shotwell-publishing.lo: \ - plugins/shotwell-publishing/$(am__dirstamp) \ - plugins/shotwell-publishing/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-FacebookPublishing.lo: \ - plugins/shotwell-publishing/$(am__dirstamp) \ - plugins/shotwell-publishing/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-PicasaPublishing.lo: \ - plugins/shotwell-publishing/$(am__dirstamp) \ - plugins/shotwell-publishing/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-FlickrPublishing.lo: \ - plugins/shotwell-publishing/$(am__dirstamp) \ - plugins/shotwell-publishing/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-TumblrPublishing.lo: \ - plugins/shotwell-publishing/$(am__dirstamp) \ - plugins/shotwell-publishing/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-YouTubePublishing.lo: \ - plugins/shotwell-publishing/$(am__dirstamp) \ - plugins/shotwell-publishing/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-PiwigoPublishing.lo: \ - plugins/shotwell-publishing/$(am__dirstamp) \ - plugins/shotwell-publishing/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-resource.lo: \ - plugins/shotwell-publishing/$(am__dirstamp) \ - plugins/shotwell-publishing/$(DEPDIR)/$(am__dirstamp) - -plugins/shotwell-publishing/shotwell-publishing.la: $(plugins_shotwell_publishing_shotwell_publishing_la_OBJECTS) $(plugins_shotwell_publishing_shotwell_publishing_la_DEPENDENCIES) $(EXTRA_plugins_shotwell_publishing_shotwell_publishing_la_DEPENDENCIES) plugins/shotwell-publishing/$(am__dirstamp) - $(AM_V_CCLD)$(plugins_shotwell_publishing_shotwell_publishing_la_LINK) -rpath $(plugindir) $(plugins_shotwell_publishing_shotwell_publishing_la_OBJECTS) $(plugins_shotwell_publishing_shotwell_publishing_la_LIBADD) $(LIBS) -plugins/shotwell-transitions/$(am__dirstamp): - @$(MKDIR_P) plugins/shotwell-transitions - @: > plugins/shotwell-transitions/$(am__dirstamp) -plugins/shotwell-transitions/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) plugins/shotwell-transitions/$(DEPDIR) - @: > plugins/shotwell-transitions/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-BlindsEffect.lo: \ - plugins/shotwell-transitions/$(am__dirstamp) \ - plugins/shotwell-transitions/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-ChessEffect.lo: \ - plugins/shotwell-transitions/$(am__dirstamp) \ - plugins/shotwell-transitions/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CircleEffect.lo: \ - plugins/shotwell-transitions/$(am__dirstamp) \ - plugins/shotwell-transitions/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CirclesEffect.lo: \ - plugins/shotwell-transitions/$(am__dirstamp) \ - plugins/shotwell-transitions/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-ClockEffect.lo: \ - plugins/shotwell-transitions/$(am__dirstamp) \ - plugins/shotwell-transitions/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CrumbleEffect.lo: \ - plugins/shotwell-transitions/$(am__dirstamp) \ - plugins/shotwell-transitions/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-FadeEffect.lo: \ - plugins/shotwell-transitions/$(am__dirstamp) \ - plugins/shotwell-transitions/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-shotwell-transitions.lo: \ - plugins/shotwell-transitions/$(am__dirstamp) \ - plugins/shotwell-transitions/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-SlideEffect.lo: \ - plugins/shotwell-transitions/$(am__dirstamp) \ - plugins/shotwell-transitions/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-SquaresEffect.lo: \ - plugins/shotwell-transitions/$(am__dirstamp) \ - plugins/shotwell-transitions/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-StripesEffect.lo: \ - plugins/shotwell-transitions/$(am__dirstamp) \ - plugins/shotwell-transitions/$(DEPDIR)/$(am__dirstamp) -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-resource.lo: \ - plugins/shotwell-transitions/$(am__dirstamp) \ - plugins/shotwell-transitions/$(DEPDIR)/$(am__dirstamp) - -plugins/shotwell-transitions/shotwell-transitions.la: $(plugins_shotwell_transitions_shotwell_transitions_la_OBJECTS) $(plugins_shotwell_transitions_shotwell_transitions_la_DEPENDENCIES) $(EXTRA_plugins_shotwell_transitions_shotwell_transitions_la_DEPENDENCIES) plugins/shotwell-transitions/$(am__dirstamp) - $(AM_V_CCLD)$(plugins_shotwell_transitions_shotwell_transitions_la_LINK) -rpath $(plugindir) $(plugins_shotwell_transitions_shotwell_transitions_la_OBJECTS) $(plugins_shotwell_transitions_shotwell_transitions_la_LIBADD) $(LIBS) -src/$(am__dirstamp): - @$(MKDIR_P) src - @: > src/$(am__dirstamp) -src/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/$(DEPDIR) - @: > src/$(DEPDIR)/$(am__dirstamp) -src/src_libgraphics_processor_la-ColorTransformation.lo: \ - src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) -src/util/$(am__dirstamp): - @$(MKDIR_P) src/util - @: > src/util/$(am__dirstamp) -src/util/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/util/$(DEPDIR) - @: > src/util/$(DEPDIR)/$(am__dirstamp) -src/util/src_libgraphics_processor_la-KeyValueMap.lo: \ - src/util/$(am__dirstamp) src/util/$(DEPDIR)/$(am__dirstamp) -src/src_libgraphics_processor_la-_transformation.lo: \ - src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) - -src/libgraphics-processor.la: $(src_libgraphics_processor_la_OBJECTS) $(src_libgraphics_processor_la_DEPENDENCIES) $(EXTRA_src_libgraphics_processor_la_DEPENDENCIES) src/$(am__dirstamp) - $(AM_V_CCLD)$(src_libgraphics_processor_la_LINK) $(src_libgraphics_processor_la_OBJECTS) $(src_libgraphics_processor_la_LIBADD) $(LIBS) -src/plugins/$(am__dirstamp): - @$(MKDIR_P) src/plugins - @: > src/plugins/$(am__dirstamp) -src/plugins/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/plugins/$(DEPDIR) - @: > src/plugins/$(DEPDIR)/$(am__dirstamp) -src/plugins/src_plugins_libplugin_la-SpitInterfaces.lo: \ - src/plugins/$(am__dirstamp) \ - src/plugins/$(DEPDIR)/$(am__dirstamp) -src/plugins/src_plugins_libplugin_la-TransitionsInterfaces.lo: \ - src/plugins/$(am__dirstamp) \ - src/plugins/$(DEPDIR)/$(am__dirstamp) -src/plugins/src_plugins_libplugin_la-PublishingInterfaces.lo: \ - src/plugins/$(am__dirstamp) \ - src/plugins/$(DEPDIR)/$(am__dirstamp) -src/plugins/src_plugins_libplugin_la-DataImportsInterfaces.lo: \ - src/plugins/$(am__dirstamp) \ - src/plugins/$(DEPDIR)/$(am__dirstamp) - -src/plugins/libplugin.la: $(src_plugins_libplugin_la_OBJECTS) $(src_plugins_libplugin_la_DEPENDENCIES) $(EXTRA_src_plugins_libplugin_la_DEPENDENCIES) src/plugins/$(am__dirstamp) - $(AM_V_CCLD)$(src_plugins_libplugin_la_LINK) $(src_plugins_libplugin_la_OBJECTS) $(src_plugins_libplugin_la_LIBADD) $(LIBS) -install-binPROGRAMS: $(bin_PROGRAMS) - @$(NORMAL_INSTALL) - @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ - fi; \ - for p in $$list; do echo "$$p $$p"; done | \ - sed 's/$(EXEEXT)$$//' | \ - while read p p1; do if test -f $$p \ - || test -f $$p1 \ - ; then echo "$$p"; echo "$$p"; else :; fi; \ - done | \ - sed -e 'p;s,.*/,,;n;h' \ - -e 's|.*|.|' \ - -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ - sed 'N;N;N;s,\n, ,g' | \ - $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ - { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ - if ($$2 == $$4) files[d] = files[d] " " $$1; \ - else { print "f", $$3 "/" $$4, $$1; } } \ - END { for (d in files) print "f", d, files[d] }' | \ - while read type dir files; do \ - if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ - test -z "$$files" || { \ - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ - } \ - ; done - -uninstall-binPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ - files=`for p in $$list; do echo "$$p"; done | \ - sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ - -e 's/$$/$(EXEEXT)/' \ - `; \ - test -n "$$list" || exit 0; \ - echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(bindir)" && rm -f $$files - -clean-binPROGRAMS: - @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list - -clean-noinstPROGRAMS: - @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list -install-pkglibexecPROGRAMS: $(pkglibexec_PROGRAMS) - @$(NORMAL_INSTALL) - @list='$(pkglibexec_PROGRAMS)'; test -n "$(pkglibexecdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(pkglibexecdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(pkglibexecdir)" || exit 1; \ - fi; \ - for p in $$list; do echo "$$p $$p"; done | \ - sed 's/$(EXEEXT)$$//' | \ - while read p p1; do if test -f $$p \ - || test -f $$p1 \ - ; then echo "$$p"; echo "$$p"; else :; fi; \ - done | \ - sed -e 'p;s,.*/,,;n;h' \ - -e 's|.*|.|' \ - -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ - sed 'N;N;N;s,\n, ,g' | \ - $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ - { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ - if ($$2 == $$4) files[d] = files[d] " " $$1; \ - else { print "f", $$3 "/" $$4, $$1; } } \ - END { for (d in files) print "f", d, files[d] }' | \ - while read type dir files; do \ - if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ - test -z "$$files" || { \ - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(pkglibexecdir)$$dir'"; \ - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(pkglibexecdir)$$dir" || exit $$?; \ - } \ - ; done - -uninstall-pkglibexecPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(pkglibexec_PROGRAMS)'; test -n "$(pkglibexecdir)" || list=; \ - files=`for p in $$list; do echo "$$p"; done | \ - sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ - -e 's/$$/$(EXEEXT)/' \ - `; \ - test -n "$$list" || exit 0; \ - echo " ( cd '$(DESTDIR)$(pkglibexecdir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(pkglibexecdir)" && rm -f $$files - -clean-pkglibexecPROGRAMS: - @list='$(pkglibexec_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list -src/unit/$(am__dirstamp): - @$(MKDIR_P) src/unit - @: > src/unit/$(am__dirstamp) -src/unit/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/unit/$(DEPDIR) - @: > src/unit/$(DEPDIR)/$(am__dirstamp) -src/unit/shotwell-Unit.$(OBJEXT): src/unit/$(am__dirstamp) \ - src/unit/$(DEPDIR)/$(am__dirstamp) -src/util/shotwell-Util.$(OBJEXT): src/util/$(am__dirstamp) \ - src/util/$(DEPDIR)/$(am__dirstamp) -src/util/shotwell-file.$(OBJEXT): src/util/$(am__dirstamp) \ - src/util/$(DEPDIR)/$(am__dirstamp) -src/util/shotwell-image.$(OBJEXT): src/util/$(am__dirstamp) \ - src/util/$(DEPDIR)/$(am__dirstamp) -src/util/shotwell-misc.$(OBJEXT): src/util/$(am__dirstamp) \ - src/util/$(DEPDIR)/$(am__dirstamp) -src/util/shotwell-string.$(OBJEXT): src/util/$(am__dirstamp) \ - src/util/$(DEPDIR)/$(am__dirstamp) -src/util/shotwell-system.$(OBJEXT): src/util/$(am__dirstamp) \ - src/util/$(DEPDIR)/$(am__dirstamp) -src/util/shotwell-ui.$(OBJEXT): src/util/$(am__dirstamp) \ - src/util/$(DEPDIR)/$(am__dirstamp) -src/threads/$(am__dirstamp): - @$(MKDIR_P) src/threads - @: > src/threads/$(am__dirstamp) -src/threads/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/threads/$(DEPDIR) - @: > src/threads/$(DEPDIR)/$(am__dirstamp) -src/threads/shotwell-Threads.$(OBJEXT): src/threads/$(am__dirstamp) \ - src/threads/$(DEPDIR)/$(am__dirstamp) -src/threads/shotwell-Workers.$(OBJEXT): src/threads/$(am__dirstamp) \ - src/threads/$(DEPDIR)/$(am__dirstamp) -src/threads/shotwell-BackgroundJob.$(OBJEXT): \ - src/threads/$(am__dirstamp) \ - src/threads/$(DEPDIR)/$(am__dirstamp) -src/threads/shotwell-Semaphore.$(OBJEXT): src/threads/$(am__dirstamp) \ - src/threads/$(DEPDIR)/$(am__dirstamp) -src/db/$(am__dirstamp): - @$(MKDIR_P) src/db - @: > src/db/$(am__dirstamp) -src/db/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/db/$(DEPDIR) - @: > src/db/$(DEPDIR)/$(am__dirstamp) -src/db/shotwell-Db.$(OBJEXT): src/db/$(am__dirstamp) \ - src/db/$(DEPDIR)/$(am__dirstamp) -src/db/shotwell-DatabaseTable.$(OBJEXT): src/db/$(am__dirstamp) \ - src/db/$(DEPDIR)/$(am__dirstamp) -src/db/shotwell-PhotoTable.$(OBJEXT): src/db/$(am__dirstamp) \ - src/db/$(DEPDIR)/$(am__dirstamp) -src/db/shotwell-EventTable.$(OBJEXT): src/db/$(am__dirstamp) \ - src/db/$(DEPDIR)/$(am__dirstamp) -src/db/shotwell-TagTable.$(OBJEXT): src/db/$(am__dirstamp) \ - src/db/$(DEPDIR)/$(am__dirstamp) -src/db/shotwell-TombstoneTable.$(OBJEXT): src/db/$(am__dirstamp) \ - src/db/$(DEPDIR)/$(am__dirstamp) -src/db/shotwell-VideoTable.$(OBJEXT): src/db/$(am__dirstamp) \ - src/db/$(DEPDIR)/$(am__dirstamp) -src/db/shotwell-VersionTable.$(OBJEXT): src/db/$(am__dirstamp) \ - src/db/$(DEPDIR)/$(am__dirstamp) -src/db/shotwell-SavedSearchDBTable.$(OBJEXT): src/db/$(am__dirstamp) \ - src/db/$(DEPDIR)/$(am__dirstamp) -src/dialogs/$(am__dirstamp): - @$(MKDIR_P) src/dialogs - @: > src/dialogs/$(am__dirstamp) -src/dialogs/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/dialogs/$(DEPDIR) - @: > src/dialogs/$(DEPDIR)/$(am__dirstamp) -src/dialogs/shotwell-Preferences.$(OBJEXT): \ - src/dialogs/$(am__dirstamp) \ - src/dialogs/$(DEPDIR)/$(am__dirstamp) -src/dialogs/shotwell-EntryMultiCompletion.$(OBJEXT): \ - src/dialogs/$(am__dirstamp) \ - src/dialogs/$(DEPDIR)/$(am__dirstamp) -src/dialogs/shotwell-ExportDialog.$(OBJEXT): \ - src/dialogs/$(am__dirstamp) \ - src/dialogs/$(DEPDIR)/$(am__dirstamp) -src/dialogs/shotwell-TextEntry.$(OBJEXT): src/dialogs/$(am__dirstamp) \ - src/dialogs/$(DEPDIR)/$(am__dirstamp) -src/dialogs/shotwell-WelcomeDialog.$(OBJEXT): \ - src/dialogs/$(am__dirstamp) \ - src/dialogs/$(DEPDIR)/$(am__dirstamp) -src/dialogs/shotwell-MultiTextEntryDialog.$(OBJEXT): \ - src/dialogs/$(am__dirstamp) \ - src/dialogs/$(DEPDIR)/$(am__dirstamp) -src/dialogs/shotwell-AdjustDateTimeDialog.$(OBJEXT): \ - src/dialogs/$(am__dirstamp) \ - src/dialogs/$(DEPDIR)/$(am__dirstamp) -src/dialogs/shotwell-SetBackground.$(OBJEXT): \ - src/dialogs/$(am__dirstamp) \ - src/dialogs/$(DEPDIR)/$(am__dirstamp) -src/dialogs/shotwell-ProgressDialog.$(OBJEXT): \ - src/dialogs/$(am__dirstamp) \ - src/dialogs/$(DEPDIR)/$(am__dirstamp) -src/dialogs/shotwell-SetBackgroundSlideshow.$(OBJEXT): \ - src/dialogs/$(am__dirstamp) \ - src/dialogs/$(DEPDIR)/$(am__dirstamp) -src/editing_tools/$(am__dirstamp): - @$(MKDIR_P) src/editing_tools - @: > src/editing_tools/$(am__dirstamp) -src/editing_tools/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/editing_tools/$(DEPDIR) - @: > src/editing_tools/$(DEPDIR)/$(am__dirstamp) -src/editing_tools/shotwell-EditingTools.$(OBJEXT): \ - src/editing_tools/$(am__dirstamp) \ - src/editing_tools/$(DEPDIR)/$(am__dirstamp) -src/editing_tools/shotwell-RGBHistogramManipulator.$(OBJEXT): \ - src/editing_tools/$(am__dirstamp) \ - src/editing_tools/$(DEPDIR)/$(am__dirstamp) -src/editing_tools/shotwell-StraightenTool.$(OBJEXT): \ - src/editing_tools/$(am__dirstamp) \ - src/editing_tools/$(DEPDIR)/$(am__dirstamp) -src/slideshow/$(am__dirstamp): - @$(MKDIR_P) src/slideshow - @: > src/slideshow/$(am__dirstamp) -src/slideshow/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/slideshow/$(DEPDIR) - @: > src/slideshow/$(DEPDIR)/$(am__dirstamp) -src/slideshow/shotwell-Slideshow.$(OBJEXT): \ - src/slideshow/$(am__dirstamp) \ - src/slideshow/$(DEPDIR)/$(am__dirstamp) -src/slideshow/shotwell-TransitionEffects.$(OBJEXT): \ - src/slideshow/$(am__dirstamp) \ - src/slideshow/$(DEPDIR)/$(am__dirstamp) -src/photos/$(am__dirstamp): - @$(MKDIR_P) src/photos - @: > src/photos/$(am__dirstamp) -src/photos/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/photos/$(DEPDIR) - @: > src/photos/$(DEPDIR)/$(am__dirstamp) -src/photos/shotwell-Photos.$(OBJEXT): src/photos/$(am__dirstamp) \ - src/photos/$(DEPDIR)/$(am__dirstamp) -src/photos/shotwell-PhotoFileAdapter.$(OBJEXT): \ - src/photos/$(am__dirstamp) \ - src/photos/$(DEPDIR)/$(am__dirstamp) -src/photos/shotwell-PhotoFileFormat.$(OBJEXT): \ - src/photos/$(am__dirstamp) \ - src/photos/$(DEPDIR)/$(am__dirstamp) -src/photos/shotwell-PhotoFileSniffer.$(OBJEXT): \ - src/photos/$(am__dirstamp) \ - src/photos/$(DEPDIR)/$(am__dirstamp) -src/photos/shotwell-PhotoMetadata.$(OBJEXT): \ - src/photos/$(am__dirstamp) \ - src/photos/$(DEPDIR)/$(am__dirstamp) -src/photos/shotwell-GRaw.$(OBJEXT): src/photos/$(am__dirstamp) \ - src/photos/$(DEPDIR)/$(am__dirstamp) -src/photos/shotwell-GdkSupport.$(OBJEXT): src/photos/$(am__dirstamp) \ - src/photos/$(DEPDIR)/$(am__dirstamp) -src/photos/shotwell-JfifSupport.$(OBJEXT): src/photos/$(am__dirstamp) \ - src/photos/$(DEPDIR)/$(am__dirstamp) -src/photos/shotwell-BmpSupport.$(OBJEXT): src/photos/$(am__dirstamp) \ - src/photos/$(DEPDIR)/$(am__dirstamp) -src/photos/shotwell-RawSupport.$(OBJEXT): src/photos/$(am__dirstamp) \ - src/photos/$(DEPDIR)/$(am__dirstamp) -src/photos/shotwell-PngSupport.$(OBJEXT): src/photos/$(am__dirstamp) \ - src/photos/$(DEPDIR)/$(am__dirstamp) -src/photos/shotwell-TiffSupport.$(OBJEXT): src/photos/$(am__dirstamp) \ - src/photos/$(DEPDIR)/$(am__dirstamp) -src/plugins/shotwell-Plugins.$(OBJEXT): src/plugins/$(am__dirstamp) \ - src/plugins/$(DEPDIR)/$(am__dirstamp) -src/plugins/shotwell-StandardHostInterface.$(OBJEXT): \ - src/plugins/$(am__dirstamp) \ - src/plugins/$(DEPDIR)/$(am__dirstamp) -src/plugins/shotwell-ManifestWidget.$(OBJEXT): \ - src/plugins/$(am__dirstamp) \ - src/plugins/$(DEPDIR)/$(am__dirstamp) -src/publishing/$(am__dirstamp): - @$(MKDIR_P) src/publishing - @: > src/publishing/$(am__dirstamp) -src/publishing/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/publishing/$(DEPDIR) - @: > src/publishing/$(DEPDIR)/$(am__dirstamp) -src/publishing/shotwell-Publishing.$(OBJEXT): \ - src/publishing/$(am__dirstamp) \ - src/publishing/$(DEPDIR)/$(am__dirstamp) -src/publishing/shotwell-PublishingUI.$(OBJEXT): \ - src/publishing/$(am__dirstamp) \ - src/publishing/$(DEPDIR)/$(am__dirstamp) -src/publishing/shotwell-PublishingPluginHost.$(OBJEXT): \ - src/publishing/$(am__dirstamp) \ - src/publishing/$(DEPDIR)/$(am__dirstamp) -src/publishing/shotwell-APIGlue.$(OBJEXT): \ - src/publishing/$(am__dirstamp) \ - src/publishing/$(DEPDIR)/$(am__dirstamp) -src/library/$(am__dirstamp): - @$(MKDIR_P) src/library - @: > src/library/$(am__dirstamp) -src/library/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/library/$(DEPDIR) - @: > src/library/$(DEPDIR)/$(am__dirstamp) -src/library/shotwell-Library.$(OBJEXT): src/library/$(am__dirstamp) \ - src/library/$(DEPDIR)/$(am__dirstamp) -src/library/shotwell-LibraryWindow.$(OBJEXT): \ - src/library/$(am__dirstamp) \ - src/library/$(DEPDIR)/$(am__dirstamp) -src/library/shotwell-LibraryBranch.$(OBJEXT): \ - src/library/$(am__dirstamp) \ - src/library/$(DEPDIR)/$(am__dirstamp) -src/library/shotwell-TrashSidebarEntry.$(OBJEXT): \ - src/library/$(am__dirstamp) \ - src/library/$(DEPDIR)/$(am__dirstamp) -src/library/shotwell-OfflineSidebarEntry.$(OBJEXT): \ - src/library/$(am__dirstamp) \ - src/library/$(DEPDIR)/$(am__dirstamp) -src/library/shotwell-FlaggedSidebarEntry.$(OBJEXT): \ - src/library/$(am__dirstamp) \ - src/library/$(DEPDIR)/$(am__dirstamp) -src/library/shotwell-LastImportSidebarEntry.$(OBJEXT): \ - src/library/$(am__dirstamp) \ - src/library/$(DEPDIR)/$(am__dirstamp) -src/library/shotwell-ImportQueueSidebarEntry.$(OBJEXT): \ - src/library/$(am__dirstamp) \ - src/library/$(DEPDIR)/$(am__dirstamp) -src/library/shotwell-FlaggedPage.$(OBJEXT): \ - src/library/$(am__dirstamp) \ - src/library/$(DEPDIR)/$(am__dirstamp) -src/library/shotwell-ImportQueuePage.$(OBJEXT): \ - src/library/$(am__dirstamp) \ - src/library/$(DEPDIR)/$(am__dirstamp) -src/library/shotwell-LastImportPage.$(OBJEXT): \ - src/library/$(am__dirstamp) \ - src/library/$(DEPDIR)/$(am__dirstamp) -src/library/shotwell-OfflinePage.$(OBJEXT): \ - src/library/$(am__dirstamp) \ - src/library/$(DEPDIR)/$(am__dirstamp) -src/library/shotwell-TrashPage.$(OBJEXT): src/library/$(am__dirstamp) \ - src/library/$(DEPDIR)/$(am__dirstamp) -src/direct/$(am__dirstamp): - @$(MKDIR_P) src/direct - @: > src/direct/$(am__dirstamp) -src/direct/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/direct/$(DEPDIR) - @: > src/direct/$(DEPDIR)/$(am__dirstamp) -src/direct/shotwell-Direct.$(OBJEXT): src/direct/$(am__dirstamp) \ - src/direct/$(DEPDIR)/$(am__dirstamp) -src/direct/shotwell-DirectWindow.$(OBJEXT): \ - src/direct/$(am__dirstamp) \ - src/direct/$(DEPDIR)/$(am__dirstamp) -src/direct/shotwell-DirectPhoto.$(OBJEXT): src/direct/$(am__dirstamp) \ - src/direct/$(DEPDIR)/$(am__dirstamp) -src/direct/shotwell-DirectPhotoPage.$(OBJEXT): \ - src/direct/$(am__dirstamp) \ - src/direct/$(DEPDIR)/$(am__dirstamp) -src/direct/shotwell-DirectView.$(OBJEXT): src/direct/$(am__dirstamp) \ - src/direct/$(DEPDIR)/$(am__dirstamp) -src/core/$(am__dirstamp): - @$(MKDIR_P) src/core - @: > src/core/$(am__dirstamp) -src/core/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/core/$(DEPDIR) - @: > src/core/$(DEPDIR)/$(am__dirstamp) -src/core/shotwell-Core.$(OBJEXT): src/core/$(am__dirstamp) \ - src/core/$(DEPDIR)/$(am__dirstamp) -src/core/shotwell-DataCollection.$(OBJEXT): src/core/$(am__dirstamp) \ - src/core/$(DEPDIR)/$(am__dirstamp) -src/core/shotwell-DataSet.$(OBJEXT): src/core/$(am__dirstamp) \ - src/core/$(DEPDIR)/$(am__dirstamp) -src/core/shotwell-util.$(OBJEXT): src/core/$(am__dirstamp) \ - src/core/$(DEPDIR)/$(am__dirstamp) -src/core/shotwell-SourceCollection.$(OBJEXT): \ - src/core/$(am__dirstamp) src/core/$(DEPDIR)/$(am__dirstamp) -src/core/shotwell-SourceHoldingTank.$(OBJEXT): \ - src/core/$(am__dirstamp) src/core/$(DEPDIR)/$(am__dirstamp) -src/core/shotwell-DatabaseSourceCollection.$(OBJEXT): \ - src/core/$(am__dirstamp) src/core/$(DEPDIR)/$(am__dirstamp) -src/core/shotwell-ContainerSourceCollection.$(OBJEXT): \ - src/core/$(am__dirstamp) src/core/$(DEPDIR)/$(am__dirstamp) -src/core/shotwell-ViewCollection.$(OBJEXT): src/core/$(am__dirstamp) \ - src/core/$(DEPDIR)/$(am__dirstamp) -src/core/shotwell-DataObject.$(OBJEXT): src/core/$(am__dirstamp) \ - src/core/$(DEPDIR)/$(am__dirstamp) -src/core/shotwell-Alteration.$(OBJEXT): src/core/$(am__dirstamp) \ - src/core/$(DEPDIR)/$(am__dirstamp) -src/core/shotwell-DataSource.$(OBJEXT): src/core/$(am__dirstamp) \ - src/core/$(DEPDIR)/$(am__dirstamp) -src/core/shotwell-DataSourceTypes.$(OBJEXT): src/core/$(am__dirstamp) \ - src/core/$(DEPDIR)/$(am__dirstamp) -src/core/shotwell-DataView.$(OBJEXT): src/core/$(am__dirstamp) \ - src/core/$(DEPDIR)/$(am__dirstamp) -src/core/shotwell-DataViewTypes.$(OBJEXT): src/core/$(am__dirstamp) \ - src/core/$(DEPDIR)/$(am__dirstamp) -src/core/shotwell-Tracker.$(OBJEXT): src/core/$(am__dirstamp) \ - src/core/$(DEPDIR)/$(am__dirstamp) -src/core/shotwell-SourceInterfaces.$(OBJEXT): \ - src/core/$(am__dirstamp) src/core/$(DEPDIR)/$(am__dirstamp) -src/sidebar/$(am__dirstamp): - @$(MKDIR_P) src/sidebar - @: > src/sidebar/$(am__dirstamp) -src/sidebar/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/sidebar/$(DEPDIR) - @: > src/sidebar/$(DEPDIR)/$(am__dirstamp) -src/sidebar/shotwell-Sidebar.$(OBJEXT): src/sidebar/$(am__dirstamp) \ - src/sidebar/$(DEPDIR)/$(am__dirstamp) -src/sidebar/shotwell-Branch.$(OBJEXT): src/sidebar/$(am__dirstamp) \ - src/sidebar/$(DEPDIR)/$(am__dirstamp) -src/sidebar/shotwell-Entry.$(OBJEXT): src/sidebar/$(am__dirstamp) \ - src/sidebar/$(DEPDIR)/$(am__dirstamp) -src/sidebar/shotwell-Tree.$(OBJEXT): src/sidebar/$(am__dirstamp) \ - src/sidebar/$(DEPDIR)/$(am__dirstamp) -src/sidebar/shotwell-common.$(OBJEXT): src/sidebar/$(am__dirstamp) \ - src/sidebar/$(DEPDIR)/$(am__dirstamp) -src/events/$(am__dirstamp): - @$(MKDIR_P) src/events - @: > src/events/$(am__dirstamp) -src/events/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/events/$(DEPDIR) - @: > src/events/$(DEPDIR)/$(am__dirstamp) -src/events/shotwell-Events.$(OBJEXT): src/events/$(am__dirstamp) \ - src/events/$(DEPDIR)/$(am__dirstamp) -src/events/shotwell-EventsBranch.$(OBJEXT): \ - src/events/$(am__dirstamp) \ - src/events/$(DEPDIR)/$(am__dirstamp) -src/events/shotwell-EventsDirectoryPage.$(OBJEXT): \ - src/events/$(am__dirstamp) \ - src/events/$(DEPDIR)/$(am__dirstamp) -src/events/shotwell-EventPage.$(OBJEXT): src/events/$(am__dirstamp) \ - src/events/$(DEPDIR)/$(am__dirstamp) -src/events/shotwell-EventDirectoryItem.$(OBJEXT): \ - src/events/$(am__dirstamp) \ - src/events/$(DEPDIR)/$(am__dirstamp) -src/tags/$(am__dirstamp): - @$(MKDIR_P) src/tags - @: > src/tags/$(am__dirstamp) -src/tags/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/tags/$(DEPDIR) - @: > src/tags/$(DEPDIR)/$(am__dirstamp) -src/tags/shotwell-Tags.$(OBJEXT): src/tags/$(am__dirstamp) \ - src/tags/$(DEPDIR)/$(am__dirstamp) -src/tags/shotwell-TagsBranch.$(OBJEXT): src/tags/$(am__dirstamp) \ - src/tags/$(DEPDIR)/$(am__dirstamp) -src/tags/shotwell-TagPage.$(OBJEXT): src/tags/$(am__dirstamp) \ - src/tags/$(DEPDIR)/$(am__dirstamp) -src/tags/shotwell-HierarchicalTagIndex.$(OBJEXT): \ - src/tags/$(am__dirstamp) src/tags/$(DEPDIR)/$(am__dirstamp) -src/tags/shotwell-HierarchicalTagUtilities.$(OBJEXT): \ - src/tags/$(am__dirstamp) src/tags/$(DEPDIR)/$(am__dirstamp) -src/camera/$(am__dirstamp): - @$(MKDIR_P) src/camera - @: > src/camera/$(am__dirstamp) -src/camera/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/camera/$(DEPDIR) - @: > src/camera/$(DEPDIR)/$(am__dirstamp) -src/camera/shotwell-Camera.$(OBJEXT): src/camera/$(am__dirstamp) \ - src/camera/$(DEPDIR)/$(am__dirstamp) -src/camera/shotwell-CameraBranch.$(OBJEXT): \ - src/camera/$(am__dirstamp) \ - src/camera/$(DEPDIR)/$(am__dirstamp) -src/camera/shotwell-CameraTable.$(OBJEXT): src/camera/$(am__dirstamp) \ - src/camera/$(DEPDIR)/$(am__dirstamp) -src/camera/shotwell-GPhoto.$(OBJEXT): src/camera/$(am__dirstamp) \ - src/camera/$(DEPDIR)/$(am__dirstamp) -src/camera/shotwell-ImportPage.$(OBJEXT): src/camera/$(am__dirstamp) \ - src/camera/$(DEPDIR)/$(am__dirstamp) -src/searches/$(am__dirstamp): - @$(MKDIR_P) src/searches - @: > src/searches/$(am__dirstamp) -src/searches/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/searches/$(DEPDIR) - @: > src/searches/$(DEPDIR)/$(am__dirstamp) -src/searches/shotwell-Searches.$(OBJEXT): \ - src/searches/$(am__dirstamp) \ - src/searches/$(DEPDIR)/$(am__dirstamp) -src/searches/shotwell-SearchesBranch.$(OBJEXT): \ - src/searches/$(am__dirstamp) \ - src/searches/$(DEPDIR)/$(am__dirstamp) -src/searches/shotwell-SearchBoolean.$(OBJEXT): \ - src/searches/$(am__dirstamp) \ - src/searches/$(DEPDIR)/$(am__dirstamp) -src/searches/shotwell-SavedSearchPage.$(OBJEXT): \ - src/searches/$(am__dirstamp) \ - src/searches/$(DEPDIR)/$(am__dirstamp) -src/searches/shotwell-SavedSearchDialog.$(OBJEXT): \ - src/searches/$(am__dirstamp) \ - src/searches/$(DEPDIR)/$(am__dirstamp) -src/config/$(am__dirstamp): - @$(MKDIR_P) src/config - @: > src/config/$(am__dirstamp) -src/config/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/config/$(DEPDIR) - @: > src/config/$(DEPDIR)/$(am__dirstamp) -src/config/shotwell-Config.$(OBJEXT): src/config/$(am__dirstamp) \ - src/config/$(DEPDIR)/$(am__dirstamp) -src/config/shotwell-ConfigurationInterfaces.$(OBJEXT): \ - src/config/$(am__dirstamp) \ - src/config/$(DEPDIR)/$(am__dirstamp) -src/config/shotwell-GSettingsEngine.$(OBJEXT): \ - src/config/$(am__dirstamp) \ - src/config/$(DEPDIR)/$(am__dirstamp) -src/data_imports/$(am__dirstamp): - @$(MKDIR_P) src/data_imports - @: > src/data_imports/$(am__dirstamp) -src/data_imports/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/data_imports/$(DEPDIR) - @: > src/data_imports/$(DEPDIR)/$(am__dirstamp) -src/data_imports/shotwell-DataImports.$(OBJEXT): \ - src/data_imports/$(am__dirstamp) \ - src/data_imports/$(DEPDIR)/$(am__dirstamp) -src/data_imports/shotwell-DataImportsPluginHost.$(OBJEXT): \ - src/data_imports/$(am__dirstamp) \ - src/data_imports/$(DEPDIR)/$(am__dirstamp) -src/data_imports/shotwell-DataImportsUI.$(OBJEXT): \ - src/data_imports/$(am__dirstamp) \ - src/data_imports/$(DEPDIR)/$(am__dirstamp) -src/data_imports/shotwell-DataImportJob.$(OBJEXT): \ - src/data_imports/$(am__dirstamp) \ - src/data_imports/$(DEPDIR)/$(am__dirstamp) -src/data_imports/shotwell-DataImportSource.$(OBJEXT): \ - src/data_imports/$(am__dirstamp) \ - src/data_imports/$(DEPDIR)/$(am__dirstamp) -src/folders/$(am__dirstamp): - @$(MKDIR_P) src/folders - @: > src/folders/$(am__dirstamp) -src/folders/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/folders/$(DEPDIR) - @: > src/folders/$(DEPDIR)/$(am__dirstamp) -src/folders/shotwell-Folders.$(OBJEXT): src/folders/$(am__dirstamp) \ - src/folders/$(DEPDIR)/$(am__dirstamp) -src/folders/shotwell-FoldersBranch.$(OBJEXT): \ - src/folders/$(am__dirstamp) \ - src/folders/$(DEPDIR)/$(am__dirstamp) -src/folders/shotwell-FoldersPage.$(OBJEXT): \ - src/folders/$(am__dirstamp) \ - src/folders/$(DEPDIR)/$(am__dirstamp) -src/shotwell-main.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-AppWindow.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-CollectionPage.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-NaturalCollate.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Thumbnail.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-ThumbnailCache.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-CheckerboardLayout.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-PhotoPage.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Page.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-SortedList.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Dimensions.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Box.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Photo.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Orientation.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-BatchImport.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Dialogs.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Resources.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Debug.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Properties.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Event.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-International.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-AppDirs.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-PixbufCache.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-CommandManager.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Commands.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-SlideshowPage.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-LibraryFiles.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Printing.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Tag.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Screensaver.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Exporter.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-DirectoryMonitor.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-LibraryMonitor.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-VideoSupport.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Tombstone.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-MetadataWriter.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Application.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-TimedQueue.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-MediaPage.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-MediaDataRepresentation.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-DesktopIntegration.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-MediaInterfaces.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-MediaMetadata.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-VideoMetadata.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-MediaMonitor.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-PhotoMonitor.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-VideoMonitor.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-SearchFilter.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-MediaViewTracker.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-UnityProgressBar.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/shotwell-Upgrades.$(OBJEXT): src/$(am__dirstamp) \ - src/$(DEPDIR)/$(am__dirstamp) -src/.unitize/$(am__dirstamp): - @$(MKDIR_P) src/.unitize - @: > src/.unitize/$(am__dirstamp) -src/.unitize/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) src/.unitize/$(DEPDIR) - @: > src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_UnitInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_UtilInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_ThreadsInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_DbInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_EditingToolsInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_PluginsInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_SlideshowInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_PhotosInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_PublishingInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_LibraryInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_DirectInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_CoreInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_SidebarInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_EventsInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_TagsInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_CameraInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_SearchesInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_ConfigInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_DataImportsInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_FoldersInternals.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_Library_unitize_entry.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) -src/.unitize/shotwell-_Direct_unitize_entry.$(OBJEXT): \ - src/.unitize/$(am__dirstamp) \ - src/.unitize/$(DEPDIR)/$(am__dirstamp) - -shotwell$(EXEEXT): $(shotwell_OBJECTS) $(shotwell_DEPENDENCIES) $(EXTRA_shotwell_DEPENDENCIES) - @rm -f shotwell$(EXEEXT) - $(AM_V_CCLD)$(shotwell_LINK) $(shotwell_OBJECTS) $(shotwell_LDADD) $(LIBS) -src/src_shotwell_graphics_processor-graphics-processor.$(OBJEXT): \ - src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) - -src/shotwell-graphics-processor$(EXEEXT): $(src_shotwell_graphics_processor_OBJECTS) $(src_shotwell_graphics_processor_DEPENDENCIES) $(EXTRA_src_shotwell_graphics_processor_DEPENDENCIES) src/$(am__dirstamp) - @rm -f src/shotwell-graphics-processor$(EXEEXT) - $(AM_V_CCLD)$(src_shotwell_graphics_processor_LINK) $(src_shotwell_graphics_processor_OBJECTS) $(src_shotwell_graphics_processor_LDADD) $(LIBS) -thumbnailer/$(am__dirstamp): - @$(MKDIR_P) thumbnailer - @: > thumbnailer/$(am__dirstamp) -thumbnailer/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) thumbnailer/$(DEPDIR) - @: > thumbnailer/$(DEPDIR)/$(am__dirstamp) -thumbnailer/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.$(OBJEXT): \ - thumbnailer/$(am__dirstamp) \ - thumbnailer/$(DEPDIR)/$(am__dirstamp) - -thumbnailer/shotwell-video-thumbnailer$(EXEEXT): $(thumbnailer_shotwell_video_thumbnailer_OBJECTS) $(thumbnailer_shotwell_video_thumbnailer_DEPENDENCIES) $(EXTRA_thumbnailer_shotwell_video_thumbnailer_DEPENDENCIES) thumbnailer/$(am__dirstamp) - @rm -f thumbnailer/shotwell-video-thumbnailer$(EXEEXT) - $(AM_V_CCLD)$(thumbnailer_shotwell_video_thumbnailer_LINK) $(thumbnailer_shotwell_video_thumbnailer_OBJECTS) $(thumbnailer_shotwell_video_thumbnailer_LDADD) $(LIBS) -install-dist_pkglibexecSCRIPTS: $(dist_pkglibexec_SCRIPTS) - @$(NORMAL_INSTALL) - @list='$(dist_pkglibexec_SCRIPTS)'; test -n "$(pkglibexecdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(pkglibexecdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(pkglibexecdir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ - done | \ - sed -e 'p;s,.*/,,;n' \ - -e 'h;s|.*|.|' \ - -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ - $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ - { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ - if ($$2 == $$4) { files[d] = files[d] " " $$1; \ - if (++n[d] == $(am__install_max)) { \ - print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ - else { print "f", d "/" $$4, $$1 } } \ - END { for (d in files) print "f", d, files[d] }' | \ - while read type dir files; do \ - if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ - test -z "$$files" || { \ - echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(pkglibexecdir)$$dir'"; \ - $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(pkglibexecdir)$$dir" || exit $$?; \ - } \ - ; done - -uninstall-dist_pkglibexecSCRIPTS: - @$(NORMAL_UNINSTALL) - @list='$(dist_pkglibexec_SCRIPTS)'; test -n "$(pkglibexecdir)" || exit 0; \ - files=`for p in $$list; do echo "$$p"; done | \ - sed -e 's,.*/,,;$(transform)'`; \ - dir='$(DESTDIR)$(pkglibexecdir)'; $(am__uninstall_files_from_dir) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -rm -f plugins/authenticator/*.$(OBJEXT) - -rm -f plugins/authenticator/*.lo - -rm -f plugins/authenticator/shotwell/*.$(OBJEXT) - -rm -f plugins/authenticator/shotwell/*.lo - -rm -f plugins/common/*.$(OBJEXT) - -rm -f plugins/common/*.lo - -rm -f plugins/shotwell-publishing-extras/*.$(OBJEXT) - -rm -f plugins/shotwell-publishing-extras/*.lo - -rm -f plugins/shotwell-publishing/*.$(OBJEXT) - -rm -f plugins/shotwell-publishing/*.lo - -rm -f plugins/shotwell-transitions/*.$(OBJEXT) - -rm -f plugins/shotwell-transitions/*.lo - -rm -f src/*.$(OBJEXT) - -rm -f src/*.lo - -rm -f src/.unitize/*.$(OBJEXT) - -rm -f src/camera/*.$(OBJEXT) - -rm -f src/config/*.$(OBJEXT) - -rm -f src/core/*.$(OBJEXT) - -rm -f src/data_imports/*.$(OBJEXT) - -rm -f src/db/*.$(OBJEXT) - -rm -f src/dialogs/*.$(OBJEXT) - -rm -f src/direct/*.$(OBJEXT) - -rm -f src/editing_tools/*.$(OBJEXT) - -rm -f src/events/*.$(OBJEXT) - -rm -f src/folders/*.$(OBJEXT) - -rm -f src/library/*.$(OBJEXT) - -rm -f src/photos/*.$(OBJEXT) - -rm -f src/plugins/*.$(OBJEXT) - -rm -f src/plugins/*.lo - -rm -f src/publishing/*.$(OBJEXT) - -rm -f src/searches/*.$(OBJEXT) - -rm -f src/sidebar/*.$(OBJEXT) - -rm -f src/slideshow/*.$(OBJEXT) - -rm -f src/tags/*.$(OBJEXT) - -rm -f src/threads/*.$(OBJEXT) - -rm -f src/unit/*.$(OBJEXT) - -rm -f src/util/*.$(OBJEXT) - -rm -f src/util/*.lo - -rm -f thumbnailer/*.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/shotwell-resource.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/authenticator/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-resource.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-FacebookPublishingAuthenticator.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-FlickrPublishingAuthenticator.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-GoogleAuthenticator.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-OAuth1Authenticator.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-ShotwellAuthenticatorFactory.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-TumblrAuthenticator.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-BuilderPane.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-OAuth1Support.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-RESTSupport.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-Resources.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-WebAuthenticationPane.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-GalleryConnector.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-RajcePublishing.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-YandexPublishing.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-resource.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-shotwell-publishing-extras.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-FacebookPublishing.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-FlickrPublishing.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-PicasaPublishing.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-PiwigoPublishing.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-TumblrPublishing.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-YouTubePublishing.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-resource.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-shotwell-publishing.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-BlindsEffect.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-ChessEffect.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-CircleEffect.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-CirclesEffect.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-ClockEffect.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-CrumbleEffect.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-FadeEffect.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-SlideEffect.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-SquaresEffect.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-StripesEffect.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-resource.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-shotwell-transitions.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-AppDirs.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-AppWindow.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Application.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-BatchImport.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Box.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-CheckerboardLayout.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-CollectionPage.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-CommandManager.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Commands.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Debug.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-DesktopIntegration.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Dialogs.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Dimensions.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-DirectoryMonitor.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Event.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Exporter.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-International.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-LibraryFiles.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-LibraryMonitor.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-MediaDataRepresentation.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-MediaInterfaces.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-MediaMetadata.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-MediaMonitor.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-MediaPage.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-MediaViewTracker.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-MetadataWriter.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-NaturalCollate.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Orientation.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Page.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Photo.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-PhotoMonitor.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-PhotoPage.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-PixbufCache.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Printing.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Properties.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Resources.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Screensaver.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-SearchFilter.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-SlideshowPage.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-SortedList.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Tag.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Thumbnail.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-ThumbnailCache.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-TimedQueue.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Tombstone.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-UnityProgressBar.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-Upgrades.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-VideoMetadata.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-VideoMonitor.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-VideoSupport.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/shotwell-main.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/src_libgraphics_processor_la-ColorTransformation.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/src_libgraphics_processor_la-_transformation.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/src_shotwell_graphics_processor-graphics-processor.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_CameraInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_ConfigInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_CoreInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_DataImportsInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_DbInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_DirectInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_Direct_unitize_entry.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_EditingToolsInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_EventsInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_FoldersInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_LibraryInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_Library_unitize_entry.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_PhotosInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_PluginsInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_PublishingInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_SearchesInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_SidebarInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_SlideshowInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_TagsInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_ThreadsInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_UnitInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/.unitize/$(DEPDIR)/shotwell-_UtilInternals.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/camera/$(DEPDIR)/shotwell-Camera.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/camera/$(DEPDIR)/shotwell-CameraBranch.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/camera/$(DEPDIR)/shotwell-CameraTable.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/camera/$(DEPDIR)/shotwell-GPhoto.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/camera/$(DEPDIR)/shotwell-ImportPage.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/config/$(DEPDIR)/shotwell-Config.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/config/$(DEPDIR)/shotwell-ConfigurationInterfaces.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/config/$(DEPDIR)/shotwell-GSettingsEngine.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/core/$(DEPDIR)/shotwell-Alteration.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/core/$(DEPDIR)/shotwell-ContainerSourceCollection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/core/$(DEPDIR)/shotwell-Core.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/core/$(DEPDIR)/shotwell-DataCollection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/core/$(DEPDIR)/shotwell-DataObject.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/core/$(DEPDIR)/shotwell-DataSet.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/core/$(DEPDIR)/shotwell-DataSource.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/core/$(DEPDIR)/shotwell-DataSourceTypes.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/core/$(DEPDIR)/shotwell-DataView.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/core/$(DEPDIR)/shotwell-DataViewTypes.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/core/$(DEPDIR)/shotwell-DatabaseSourceCollection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/core/$(DEPDIR)/shotwell-SourceCollection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/core/$(DEPDIR)/shotwell-SourceHoldingTank.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/core/$(DEPDIR)/shotwell-SourceInterfaces.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/core/$(DEPDIR)/shotwell-Tracker.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/core/$(DEPDIR)/shotwell-ViewCollection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/core/$(DEPDIR)/shotwell-util.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/data_imports/$(DEPDIR)/shotwell-DataImportJob.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/data_imports/$(DEPDIR)/shotwell-DataImportSource.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/data_imports/$(DEPDIR)/shotwell-DataImports.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/data_imports/$(DEPDIR)/shotwell-DataImportsPluginHost.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/data_imports/$(DEPDIR)/shotwell-DataImportsUI.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/db/$(DEPDIR)/shotwell-DatabaseTable.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/db/$(DEPDIR)/shotwell-Db.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/db/$(DEPDIR)/shotwell-EventTable.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/db/$(DEPDIR)/shotwell-PhotoTable.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/db/$(DEPDIR)/shotwell-SavedSearchDBTable.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/db/$(DEPDIR)/shotwell-TagTable.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/db/$(DEPDIR)/shotwell-TombstoneTable.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/db/$(DEPDIR)/shotwell-VersionTable.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/db/$(DEPDIR)/shotwell-VideoTable.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/dialogs/$(DEPDIR)/shotwell-AdjustDateTimeDialog.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/dialogs/$(DEPDIR)/shotwell-EntryMultiCompletion.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/dialogs/$(DEPDIR)/shotwell-ExportDialog.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/dialogs/$(DEPDIR)/shotwell-MultiTextEntryDialog.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/dialogs/$(DEPDIR)/shotwell-Preferences.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/dialogs/$(DEPDIR)/shotwell-ProgressDialog.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/dialogs/$(DEPDIR)/shotwell-SetBackground.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/dialogs/$(DEPDIR)/shotwell-SetBackgroundSlideshow.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/dialogs/$(DEPDIR)/shotwell-TextEntry.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/dialogs/$(DEPDIR)/shotwell-WelcomeDialog.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/direct/$(DEPDIR)/shotwell-Direct.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/direct/$(DEPDIR)/shotwell-DirectPhoto.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/direct/$(DEPDIR)/shotwell-DirectPhotoPage.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/direct/$(DEPDIR)/shotwell-DirectView.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/direct/$(DEPDIR)/shotwell-DirectWindow.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/editing_tools/$(DEPDIR)/shotwell-EditingTools.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/editing_tools/$(DEPDIR)/shotwell-RGBHistogramManipulator.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/editing_tools/$(DEPDIR)/shotwell-StraightenTool.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/events/$(DEPDIR)/shotwell-EventDirectoryItem.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/events/$(DEPDIR)/shotwell-EventPage.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/events/$(DEPDIR)/shotwell-Events.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/events/$(DEPDIR)/shotwell-EventsBranch.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/events/$(DEPDIR)/shotwell-EventsDirectoryPage.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/folders/$(DEPDIR)/shotwell-Folders.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/folders/$(DEPDIR)/shotwell-FoldersBranch.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/folders/$(DEPDIR)/shotwell-FoldersPage.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/library/$(DEPDIR)/shotwell-FlaggedPage.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/library/$(DEPDIR)/shotwell-FlaggedSidebarEntry.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/library/$(DEPDIR)/shotwell-ImportQueuePage.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/library/$(DEPDIR)/shotwell-ImportQueueSidebarEntry.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/library/$(DEPDIR)/shotwell-LastImportPage.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/library/$(DEPDIR)/shotwell-LastImportSidebarEntry.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/library/$(DEPDIR)/shotwell-Library.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/library/$(DEPDIR)/shotwell-LibraryBranch.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/library/$(DEPDIR)/shotwell-LibraryWindow.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/library/$(DEPDIR)/shotwell-OfflinePage.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/library/$(DEPDIR)/shotwell-OfflineSidebarEntry.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/library/$(DEPDIR)/shotwell-TrashPage.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/library/$(DEPDIR)/shotwell-TrashSidebarEntry.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/photos/$(DEPDIR)/shotwell-BmpSupport.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/photos/$(DEPDIR)/shotwell-GRaw.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/photos/$(DEPDIR)/shotwell-GdkSupport.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/photos/$(DEPDIR)/shotwell-JfifSupport.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/photos/$(DEPDIR)/shotwell-PhotoFileAdapter.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/photos/$(DEPDIR)/shotwell-PhotoFileFormat.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/photos/$(DEPDIR)/shotwell-PhotoFileSniffer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/photos/$(DEPDIR)/shotwell-PhotoMetadata.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/photos/$(DEPDIR)/shotwell-Photos.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/photos/$(DEPDIR)/shotwell-PngSupport.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/photos/$(DEPDIR)/shotwell-RawSupport.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/photos/$(DEPDIR)/shotwell-TiffSupport.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/plugins/$(DEPDIR)/shotwell-ManifestWidget.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/plugins/$(DEPDIR)/shotwell-Plugins.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/plugins/$(DEPDIR)/shotwell-StandardHostInterface.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/plugins/$(DEPDIR)/src_plugins_libplugin_la-DataImportsInterfaces.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/plugins/$(DEPDIR)/src_plugins_libplugin_la-PublishingInterfaces.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/plugins/$(DEPDIR)/src_plugins_libplugin_la-SpitInterfaces.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/plugins/$(DEPDIR)/src_plugins_libplugin_la-TransitionsInterfaces.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/publishing/$(DEPDIR)/shotwell-APIGlue.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/publishing/$(DEPDIR)/shotwell-Publishing.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/publishing/$(DEPDIR)/shotwell-PublishingPluginHost.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/publishing/$(DEPDIR)/shotwell-PublishingUI.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/searches/$(DEPDIR)/shotwell-SavedSearchDialog.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/searches/$(DEPDIR)/shotwell-SavedSearchPage.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/searches/$(DEPDIR)/shotwell-SearchBoolean.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/searches/$(DEPDIR)/shotwell-Searches.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/searches/$(DEPDIR)/shotwell-SearchesBranch.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/sidebar/$(DEPDIR)/shotwell-Branch.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/sidebar/$(DEPDIR)/shotwell-Entry.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/sidebar/$(DEPDIR)/shotwell-Sidebar.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/sidebar/$(DEPDIR)/shotwell-Tree.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/sidebar/$(DEPDIR)/shotwell-common.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/slideshow/$(DEPDIR)/shotwell-Slideshow.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/slideshow/$(DEPDIR)/shotwell-TransitionEffects.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/tags/$(DEPDIR)/shotwell-HierarchicalTagIndex.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/tags/$(DEPDIR)/shotwell-HierarchicalTagUtilities.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/tags/$(DEPDIR)/shotwell-TagPage.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/tags/$(DEPDIR)/shotwell-Tags.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/tags/$(DEPDIR)/shotwell-TagsBranch.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/threads/$(DEPDIR)/shotwell-BackgroundJob.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/threads/$(DEPDIR)/shotwell-Semaphore.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/threads/$(DEPDIR)/shotwell-Threads.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/threads/$(DEPDIR)/shotwell-Workers.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/unit/$(DEPDIR)/shotwell-Unit.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/util/$(DEPDIR)/shotwell-Util.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/util/$(DEPDIR)/shotwell-file.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/util/$(DEPDIR)/shotwell-image.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/util/$(DEPDIR)/shotwell-misc.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/util/$(DEPDIR)/shotwell-string.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/util/$(DEPDIR)/shotwell-system.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/util/$(DEPDIR)/shotwell-ui.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@src/util/$(DEPDIR)/src_libgraphics_processor_la-KeyValueMap.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@thumbnailer/$(DEPDIR)/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.Po@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ -@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-ShotwellAuthenticatorFactory.lo: plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_authenticator_libshotwell_authenticator_la_CFLAGS) $(CFLAGS) -MT plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-ShotwellAuthenticatorFactory.lo -MD -MP -MF plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-ShotwellAuthenticatorFactory.Tpo -c -o plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-ShotwellAuthenticatorFactory.lo `test -f 'plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c' || echo '$(srcdir)/'`plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-ShotwellAuthenticatorFactory.Tpo plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-ShotwellAuthenticatorFactory.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c' object='plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-ShotwellAuthenticatorFactory.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_authenticator_libshotwell_authenticator_la_CFLAGS) $(CFLAGS) -c -o plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-ShotwellAuthenticatorFactory.lo `test -f 'plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c' || echo '$(srcdir)/'`plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c - -plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-FacebookPublishingAuthenticator.lo: plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_authenticator_libshotwell_authenticator_la_CFLAGS) $(CFLAGS) -MT plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-FacebookPublishingAuthenticator.lo -MD -MP -MF plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-FacebookPublishingAuthenticator.Tpo -c -o plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-FacebookPublishingAuthenticator.lo `test -f 'plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c' || echo '$(srcdir)/'`plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-FacebookPublishingAuthenticator.Tpo plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-FacebookPublishingAuthenticator.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c' object='plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-FacebookPublishingAuthenticator.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_authenticator_libshotwell_authenticator_la_CFLAGS) $(CFLAGS) -c -o plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-FacebookPublishingAuthenticator.lo `test -f 'plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c' || echo '$(srcdir)/'`plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c - -plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-FlickrPublishingAuthenticator.lo: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_authenticator_libshotwell_authenticator_la_CFLAGS) $(CFLAGS) -MT plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-FlickrPublishingAuthenticator.lo -MD -MP -MF plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-FlickrPublishingAuthenticator.Tpo -c -o plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-FlickrPublishingAuthenticator.lo `test -f 'plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c' || echo '$(srcdir)/'`plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-FlickrPublishingAuthenticator.Tpo plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-FlickrPublishingAuthenticator.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c' object='plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-FlickrPublishingAuthenticator.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_authenticator_libshotwell_authenticator_la_CFLAGS) $(CFLAGS) -c -o plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-FlickrPublishingAuthenticator.lo `test -f 'plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c' || echo '$(srcdir)/'`plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c - -plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-GoogleAuthenticator.lo: plugins/authenticator/shotwell/GoogleAuthenticator.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_authenticator_libshotwell_authenticator_la_CFLAGS) $(CFLAGS) -MT plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-GoogleAuthenticator.lo -MD -MP -MF plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-GoogleAuthenticator.Tpo -c -o plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-GoogleAuthenticator.lo `test -f 'plugins/authenticator/shotwell/GoogleAuthenticator.c' || echo '$(srcdir)/'`plugins/authenticator/shotwell/GoogleAuthenticator.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-GoogleAuthenticator.Tpo plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-GoogleAuthenticator.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/authenticator/shotwell/GoogleAuthenticator.c' object='plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-GoogleAuthenticator.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_authenticator_libshotwell_authenticator_la_CFLAGS) $(CFLAGS) -c -o plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-GoogleAuthenticator.lo `test -f 'plugins/authenticator/shotwell/GoogleAuthenticator.c' || echo '$(srcdir)/'`plugins/authenticator/shotwell/GoogleAuthenticator.c - -plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-OAuth1Authenticator.lo: plugins/authenticator/shotwell/OAuth1Authenticator.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_authenticator_libshotwell_authenticator_la_CFLAGS) $(CFLAGS) -MT plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-OAuth1Authenticator.lo -MD -MP -MF plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-OAuth1Authenticator.Tpo -c -o plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-OAuth1Authenticator.lo `test -f 'plugins/authenticator/shotwell/OAuth1Authenticator.c' || echo '$(srcdir)/'`plugins/authenticator/shotwell/OAuth1Authenticator.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-OAuth1Authenticator.Tpo plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-OAuth1Authenticator.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/authenticator/shotwell/OAuth1Authenticator.c' object='plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-OAuth1Authenticator.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_authenticator_libshotwell_authenticator_la_CFLAGS) $(CFLAGS) -c -o plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-OAuth1Authenticator.lo `test -f 'plugins/authenticator/shotwell/OAuth1Authenticator.c' || echo '$(srcdir)/'`plugins/authenticator/shotwell/OAuth1Authenticator.c - -plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-TumblrAuthenticator.lo: plugins/authenticator/shotwell/TumblrAuthenticator.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_authenticator_libshotwell_authenticator_la_CFLAGS) $(CFLAGS) -MT plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-TumblrAuthenticator.lo -MD -MP -MF plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-TumblrAuthenticator.Tpo -c -o plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-TumblrAuthenticator.lo `test -f 'plugins/authenticator/shotwell/TumblrAuthenticator.c' || echo '$(srcdir)/'`plugins/authenticator/shotwell/TumblrAuthenticator.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-TumblrAuthenticator.Tpo plugins/authenticator/shotwell/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-TumblrAuthenticator.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/authenticator/shotwell/TumblrAuthenticator.c' object='plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-TumblrAuthenticator.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_authenticator_libshotwell_authenticator_la_CFLAGS) $(CFLAGS) -c -o plugins/authenticator/shotwell/plugins_authenticator_libshotwell_authenticator_la-TumblrAuthenticator.lo `test -f 'plugins/authenticator/shotwell/TumblrAuthenticator.c' || echo '$(srcdir)/'`plugins/authenticator/shotwell/TumblrAuthenticator.c - -plugins/authenticator/plugins_authenticator_libshotwell_authenticator_la-resource.lo: plugins/authenticator/resource.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_authenticator_libshotwell_authenticator_la_CFLAGS) $(CFLAGS) -MT plugins/authenticator/plugins_authenticator_libshotwell_authenticator_la-resource.lo -MD -MP -MF plugins/authenticator/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-resource.Tpo -c -o plugins/authenticator/plugins_authenticator_libshotwell_authenticator_la-resource.lo `test -f 'plugins/authenticator/resource.c' || echo '$(srcdir)/'`plugins/authenticator/resource.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/authenticator/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-resource.Tpo plugins/authenticator/$(DEPDIR)/plugins_authenticator_libshotwell_authenticator_la-resource.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/authenticator/resource.c' object='plugins/authenticator/plugins_authenticator_libshotwell_authenticator_la-resource.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_authenticator_libshotwell_authenticator_la_CFLAGS) $(CFLAGS) -c -o plugins/authenticator/plugins_authenticator_libshotwell_authenticator_la-resource.lo `test -f 'plugins/authenticator/resource.c' || echo '$(srcdir)/'`plugins/authenticator/resource.c - -plugins/common/plugins_common_libshotwell_plugin_common_la-RESTSupport.lo: plugins/common/RESTSupport.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_common_libshotwell_plugin_common_la_CFLAGS) $(CFLAGS) -MT plugins/common/plugins_common_libshotwell_plugin_common_la-RESTSupport.lo -MD -MP -MF plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-RESTSupport.Tpo -c -o plugins/common/plugins_common_libshotwell_plugin_common_la-RESTSupport.lo `test -f 'plugins/common/RESTSupport.c' || echo '$(srcdir)/'`plugins/common/RESTSupport.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-RESTSupport.Tpo plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-RESTSupport.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/common/RESTSupport.c' object='plugins/common/plugins_common_libshotwell_plugin_common_la-RESTSupport.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_common_libshotwell_plugin_common_la_CFLAGS) $(CFLAGS) -c -o plugins/common/plugins_common_libshotwell_plugin_common_la-RESTSupport.lo `test -f 'plugins/common/RESTSupport.c' || echo '$(srcdir)/'`plugins/common/RESTSupport.c - -plugins/common/plugins_common_libshotwell_plugin_common_la-OAuth1Support.lo: plugins/common/OAuth1Support.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_common_libshotwell_plugin_common_la_CFLAGS) $(CFLAGS) -MT plugins/common/plugins_common_libshotwell_plugin_common_la-OAuth1Support.lo -MD -MP -MF plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-OAuth1Support.Tpo -c -o plugins/common/plugins_common_libshotwell_plugin_common_la-OAuth1Support.lo `test -f 'plugins/common/OAuth1Support.c' || echo '$(srcdir)/'`plugins/common/OAuth1Support.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-OAuth1Support.Tpo plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-OAuth1Support.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/common/OAuth1Support.c' object='plugins/common/plugins_common_libshotwell_plugin_common_la-OAuth1Support.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_common_libshotwell_plugin_common_la_CFLAGS) $(CFLAGS) -c -o plugins/common/plugins_common_libshotwell_plugin_common_la-OAuth1Support.lo `test -f 'plugins/common/OAuth1Support.c' || echo '$(srcdir)/'`plugins/common/OAuth1Support.c - -plugins/common/plugins_common_libshotwell_plugin_common_la-Resources.lo: plugins/common/Resources.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_common_libshotwell_plugin_common_la_CFLAGS) $(CFLAGS) -MT plugins/common/plugins_common_libshotwell_plugin_common_la-Resources.lo -MD -MP -MF plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-Resources.Tpo -c -o plugins/common/plugins_common_libshotwell_plugin_common_la-Resources.lo `test -f 'plugins/common/Resources.c' || echo '$(srcdir)/'`plugins/common/Resources.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-Resources.Tpo plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-Resources.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/common/Resources.c' object='plugins/common/plugins_common_libshotwell_plugin_common_la-Resources.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_common_libshotwell_plugin_common_la_CFLAGS) $(CFLAGS) -c -o plugins/common/plugins_common_libshotwell_plugin_common_la-Resources.lo `test -f 'plugins/common/Resources.c' || echo '$(srcdir)/'`plugins/common/Resources.c - -plugins/common/plugins_common_libshotwell_plugin_common_la-WebAuthenticationPane.lo: plugins/common/WebAuthenticationPane.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_common_libshotwell_plugin_common_la_CFLAGS) $(CFLAGS) -MT plugins/common/plugins_common_libshotwell_plugin_common_la-WebAuthenticationPane.lo -MD -MP -MF plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-WebAuthenticationPane.Tpo -c -o plugins/common/plugins_common_libshotwell_plugin_common_la-WebAuthenticationPane.lo `test -f 'plugins/common/WebAuthenticationPane.c' || echo '$(srcdir)/'`plugins/common/WebAuthenticationPane.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-WebAuthenticationPane.Tpo plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-WebAuthenticationPane.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/common/WebAuthenticationPane.c' object='plugins/common/plugins_common_libshotwell_plugin_common_la-WebAuthenticationPane.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_common_libshotwell_plugin_common_la_CFLAGS) $(CFLAGS) -c -o plugins/common/plugins_common_libshotwell_plugin_common_la-WebAuthenticationPane.lo `test -f 'plugins/common/WebAuthenticationPane.c' || echo '$(srcdir)/'`plugins/common/WebAuthenticationPane.c - -plugins/common/plugins_common_libshotwell_plugin_common_la-BuilderPane.lo: plugins/common/BuilderPane.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_common_libshotwell_plugin_common_la_CFLAGS) $(CFLAGS) -MT plugins/common/plugins_common_libshotwell_plugin_common_la-BuilderPane.lo -MD -MP -MF plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-BuilderPane.Tpo -c -o plugins/common/plugins_common_libshotwell_plugin_common_la-BuilderPane.lo `test -f 'plugins/common/BuilderPane.c' || echo '$(srcdir)/'`plugins/common/BuilderPane.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-BuilderPane.Tpo plugins/common/$(DEPDIR)/plugins_common_libshotwell_plugin_common_la-BuilderPane.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/common/BuilderPane.c' object='plugins/common/plugins_common_libshotwell_plugin_common_la-BuilderPane.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_common_libshotwell_plugin_common_la_CFLAGS) $(CFLAGS) -c -o plugins/common/plugins_common_libshotwell_plugin_common_la-BuilderPane.lo `test -f 'plugins/common/BuilderPane.c' || echo '$(srcdir)/'`plugins/common/BuilderPane.c - -plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-GalleryConnector.lo: plugins/shotwell-publishing-extras/GalleryConnector.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-GalleryConnector.lo -MD -MP -MF plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-GalleryConnector.Tpo -c -o plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-GalleryConnector.lo `test -f 'plugins/shotwell-publishing-extras/GalleryConnector.c' || echo '$(srcdir)/'`plugins/shotwell-publishing-extras/GalleryConnector.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-GalleryConnector.Tpo plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-GalleryConnector.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-publishing-extras/GalleryConnector.c' object='plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-GalleryConnector.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-GalleryConnector.lo `test -f 'plugins/shotwell-publishing-extras/GalleryConnector.c' || echo '$(srcdir)/'`plugins/shotwell-publishing-extras/GalleryConnector.c - -plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-RajcePublishing.lo: plugins/shotwell-publishing-extras/RajcePublishing.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-RajcePublishing.lo -MD -MP -MF plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-RajcePublishing.Tpo -c -o plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-RajcePublishing.lo `test -f 'plugins/shotwell-publishing-extras/RajcePublishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing-extras/RajcePublishing.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-RajcePublishing.Tpo plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-RajcePublishing.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-publishing-extras/RajcePublishing.c' object='plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-RajcePublishing.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-RajcePublishing.lo `test -f 'plugins/shotwell-publishing-extras/RajcePublishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing-extras/RajcePublishing.c - -plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-shotwell-publishing-extras.lo: plugins/shotwell-publishing-extras/shotwell-publishing-extras.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-shotwell-publishing-extras.lo -MD -MP -MF plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-shotwell-publishing-extras.Tpo -c -o plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-shotwell-publishing-extras.lo `test -f 'plugins/shotwell-publishing-extras/shotwell-publishing-extras.c' || echo '$(srcdir)/'`plugins/shotwell-publishing-extras/shotwell-publishing-extras.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-shotwell-publishing-extras.Tpo plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-shotwell-publishing-extras.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-publishing-extras/shotwell-publishing-extras.c' object='plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-shotwell-publishing-extras.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-shotwell-publishing-extras.lo `test -f 'plugins/shotwell-publishing-extras/shotwell-publishing-extras.c' || echo '$(srcdir)/'`plugins/shotwell-publishing-extras/shotwell-publishing-extras.c - -plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-YandexPublishing.lo: plugins/shotwell-publishing-extras/YandexPublishing.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-YandexPublishing.lo -MD -MP -MF plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-YandexPublishing.Tpo -c -o plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-YandexPublishing.lo `test -f 'plugins/shotwell-publishing-extras/YandexPublishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing-extras/YandexPublishing.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-YandexPublishing.Tpo plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-YandexPublishing.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-publishing-extras/YandexPublishing.c' object='plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-YandexPublishing.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-YandexPublishing.lo `test -f 'plugins/shotwell-publishing-extras/YandexPublishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing-extras/YandexPublishing.c - -plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-resource.lo: plugins/shotwell-publishing-extras/resource.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-resource.lo -MD -MP -MF plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-resource.Tpo -c -o plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-resource.lo `test -f 'plugins/shotwell-publishing-extras/resource.c' || echo '$(srcdir)/'`plugins/shotwell-publishing-extras/resource.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-resource.Tpo plugins/shotwell-publishing-extras/$(DEPDIR)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-resource.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-publishing-extras/resource.c' object='plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-resource.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-publishing-extras/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la-resource.lo `test -f 'plugins/shotwell-publishing-extras/resource.c' || echo '$(srcdir)/'`plugins/shotwell-publishing-extras/resource.c - -plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-shotwell-publishing.lo: plugins/shotwell-publishing/shotwell-publishing.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-shotwell-publishing.lo -MD -MP -MF plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-shotwell-publishing.Tpo -c -o plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-shotwell-publishing.lo `test -f 'plugins/shotwell-publishing/shotwell-publishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing/shotwell-publishing.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-shotwell-publishing.Tpo plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-shotwell-publishing.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-publishing/shotwell-publishing.c' object='plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-shotwell-publishing.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-shotwell-publishing.lo `test -f 'plugins/shotwell-publishing/shotwell-publishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing/shotwell-publishing.c - -plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-FacebookPublishing.lo: plugins/shotwell-publishing/FacebookPublishing.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-FacebookPublishing.lo -MD -MP -MF plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-FacebookPublishing.Tpo -c -o plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-FacebookPublishing.lo `test -f 'plugins/shotwell-publishing/FacebookPublishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing/FacebookPublishing.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-FacebookPublishing.Tpo plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-FacebookPublishing.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-publishing/FacebookPublishing.c' object='plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-FacebookPublishing.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-FacebookPublishing.lo `test -f 'plugins/shotwell-publishing/FacebookPublishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing/FacebookPublishing.c - -plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-PicasaPublishing.lo: plugins/shotwell-publishing/PicasaPublishing.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-PicasaPublishing.lo -MD -MP -MF plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-PicasaPublishing.Tpo -c -o plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-PicasaPublishing.lo `test -f 'plugins/shotwell-publishing/PicasaPublishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing/PicasaPublishing.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-PicasaPublishing.Tpo plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-PicasaPublishing.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-publishing/PicasaPublishing.c' object='plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-PicasaPublishing.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-PicasaPublishing.lo `test -f 'plugins/shotwell-publishing/PicasaPublishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing/PicasaPublishing.c - -plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-FlickrPublishing.lo: plugins/shotwell-publishing/FlickrPublishing.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-FlickrPublishing.lo -MD -MP -MF plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-FlickrPublishing.Tpo -c -o plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-FlickrPublishing.lo `test -f 'plugins/shotwell-publishing/FlickrPublishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing/FlickrPublishing.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-FlickrPublishing.Tpo plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-FlickrPublishing.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-publishing/FlickrPublishing.c' object='plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-FlickrPublishing.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-FlickrPublishing.lo `test -f 'plugins/shotwell-publishing/FlickrPublishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing/FlickrPublishing.c - -plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-TumblrPublishing.lo: plugins/shotwell-publishing/TumblrPublishing.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-TumblrPublishing.lo -MD -MP -MF plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-TumblrPublishing.Tpo -c -o plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-TumblrPublishing.lo `test -f 'plugins/shotwell-publishing/TumblrPublishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing/TumblrPublishing.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-TumblrPublishing.Tpo plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-TumblrPublishing.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-publishing/TumblrPublishing.c' object='plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-TumblrPublishing.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-TumblrPublishing.lo `test -f 'plugins/shotwell-publishing/TumblrPublishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing/TumblrPublishing.c - -plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-YouTubePublishing.lo: plugins/shotwell-publishing/YouTubePublishing.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-YouTubePublishing.lo -MD -MP -MF plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-YouTubePublishing.Tpo -c -o plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-YouTubePublishing.lo `test -f 'plugins/shotwell-publishing/YouTubePublishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing/YouTubePublishing.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-YouTubePublishing.Tpo plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-YouTubePublishing.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-publishing/YouTubePublishing.c' object='plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-YouTubePublishing.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-YouTubePublishing.lo `test -f 'plugins/shotwell-publishing/YouTubePublishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing/YouTubePublishing.c - -plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-PiwigoPublishing.lo: plugins/shotwell-publishing/PiwigoPublishing.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-PiwigoPublishing.lo -MD -MP -MF plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-PiwigoPublishing.Tpo -c -o plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-PiwigoPublishing.lo `test -f 'plugins/shotwell-publishing/PiwigoPublishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing/PiwigoPublishing.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-PiwigoPublishing.Tpo plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-PiwigoPublishing.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-publishing/PiwigoPublishing.c' object='plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-PiwigoPublishing.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-PiwigoPublishing.lo `test -f 'plugins/shotwell-publishing/PiwigoPublishing.c' || echo '$(srcdir)/'`plugins/shotwell-publishing/PiwigoPublishing.c - -plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-resource.lo: plugins/shotwell-publishing/resource.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-resource.lo -MD -MP -MF plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-resource.Tpo -c -o plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-resource.lo `test -f 'plugins/shotwell-publishing/resource.c' || echo '$(srcdir)/'`plugins/shotwell-publishing/resource.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-resource.Tpo plugins/shotwell-publishing/$(DEPDIR)/plugins_shotwell_publishing_shotwell_publishing_la-resource.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-publishing/resource.c' object='plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-resource.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-publishing/plugins_shotwell_publishing_shotwell_publishing_la-resource.lo `test -f 'plugins/shotwell-publishing/resource.c' || echo '$(srcdir)/'`plugins/shotwell-publishing/resource.c - -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-BlindsEffect.lo: plugins/shotwell-transitions/BlindsEffect.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-BlindsEffect.lo -MD -MP -MF plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-BlindsEffect.Tpo -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-BlindsEffect.lo `test -f 'plugins/shotwell-transitions/BlindsEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/BlindsEffect.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-BlindsEffect.Tpo plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-BlindsEffect.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-transitions/BlindsEffect.c' object='plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-BlindsEffect.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-BlindsEffect.lo `test -f 'plugins/shotwell-transitions/BlindsEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/BlindsEffect.c - -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-ChessEffect.lo: plugins/shotwell-transitions/ChessEffect.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-ChessEffect.lo -MD -MP -MF plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-ChessEffect.Tpo -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-ChessEffect.lo `test -f 'plugins/shotwell-transitions/ChessEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/ChessEffect.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-ChessEffect.Tpo plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-ChessEffect.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-transitions/ChessEffect.c' object='plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-ChessEffect.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-ChessEffect.lo `test -f 'plugins/shotwell-transitions/ChessEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/ChessEffect.c - -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CircleEffect.lo: plugins/shotwell-transitions/CircleEffect.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CircleEffect.lo -MD -MP -MF plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-CircleEffect.Tpo -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CircleEffect.lo `test -f 'plugins/shotwell-transitions/CircleEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/CircleEffect.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-CircleEffect.Tpo plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-CircleEffect.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-transitions/CircleEffect.c' object='plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CircleEffect.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CircleEffect.lo `test -f 'plugins/shotwell-transitions/CircleEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/CircleEffect.c - -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CirclesEffect.lo: plugins/shotwell-transitions/CirclesEffect.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CirclesEffect.lo -MD -MP -MF plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-CirclesEffect.Tpo -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CirclesEffect.lo `test -f 'plugins/shotwell-transitions/CirclesEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/CirclesEffect.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-CirclesEffect.Tpo plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-CirclesEffect.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-transitions/CirclesEffect.c' object='plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CirclesEffect.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CirclesEffect.lo `test -f 'plugins/shotwell-transitions/CirclesEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/CirclesEffect.c - -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-ClockEffect.lo: plugins/shotwell-transitions/ClockEffect.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-ClockEffect.lo -MD -MP -MF plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-ClockEffect.Tpo -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-ClockEffect.lo `test -f 'plugins/shotwell-transitions/ClockEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/ClockEffect.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-ClockEffect.Tpo plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-ClockEffect.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-transitions/ClockEffect.c' object='plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-ClockEffect.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-ClockEffect.lo `test -f 'plugins/shotwell-transitions/ClockEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/ClockEffect.c - -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CrumbleEffect.lo: plugins/shotwell-transitions/CrumbleEffect.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CrumbleEffect.lo -MD -MP -MF plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-CrumbleEffect.Tpo -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CrumbleEffect.lo `test -f 'plugins/shotwell-transitions/CrumbleEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/CrumbleEffect.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-CrumbleEffect.Tpo plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-CrumbleEffect.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-transitions/CrumbleEffect.c' object='plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CrumbleEffect.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-CrumbleEffect.lo `test -f 'plugins/shotwell-transitions/CrumbleEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/CrumbleEffect.c - -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-FadeEffect.lo: plugins/shotwell-transitions/FadeEffect.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-FadeEffect.lo -MD -MP -MF plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-FadeEffect.Tpo -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-FadeEffect.lo `test -f 'plugins/shotwell-transitions/FadeEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/FadeEffect.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-FadeEffect.Tpo plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-FadeEffect.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-transitions/FadeEffect.c' object='plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-FadeEffect.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-FadeEffect.lo `test -f 'plugins/shotwell-transitions/FadeEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/FadeEffect.c - -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-shotwell-transitions.lo: plugins/shotwell-transitions/shotwell-transitions.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-shotwell-transitions.lo -MD -MP -MF plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-shotwell-transitions.Tpo -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-shotwell-transitions.lo `test -f 'plugins/shotwell-transitions/shotwell-transitions.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/shotwell-transitions.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-shotwell-transitions.Tpo plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-shotwell-transitions.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-transitions/shotwell-transitions.c' object='plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-shotwell-transitions.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-shotwell-transitions.lo `test -f 'plugins/shotwell-transitions/shotwell-transitions.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/shotwell-transitions.c - -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-SlideEffect.lo: plugins/shotwell-transitions/SlideEffect.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-SlideEffect.lo -MD -MP -MF plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-SlideEffect.Tpo -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-SlideEffect.lo `test -f 'plugins/shotwell-transitions/SlideEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/SlideEffect.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-SlideEffect.Tpo plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-SlideEffect.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-transitions/SlideEffect.c' object='plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-SlideEffect.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-SlideEffect.lo `test -f 'plugins/shotwell-transitions/SlideEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/SlideEffect.c - -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-SquaresEffect.lo: plugins/shotwell-transitions/SquaresEffect.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-SquaresEffect.lo -MD -MP -MF plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-SquaresEffect.Tpo -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-SquaresEffect.lo `test -f 'plugins/shotwell-transitions/SquaresEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/SquaresEffect.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-SquaresEffect.Tpo plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-SquaresEffect.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-transitions/SquaresEffect.c' object='plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-SquaresEffect.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-SquaresEffect.lo `test -f 'plugins/shotwell-transitions/SquaresEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/SquaresEffect.c - -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-StripesEffect.lo: plugins/shotwell-transitions/StripesEffect.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-StripesEffect.lo -MD -MP -MF plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-StripesEffect.Tpo -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-StripesEffect.lo `test -f 'plugins/shotwell-transitions/StripesEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/StripesEffect.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-StripesEffect.Tpo plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-StripesEffect.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-transitions/StripesEffect.c' object='plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-StripesEffect.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-StripesEffect.lo `test -f 'plugins/shotwell-transitions/StripesEffect.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/StripesEffect.c - -plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-resource.lo: plugins/shotwell-transitions/resource.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -MT plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-resource.lo -MD -MP -MF plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-resource.Tpo -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-resource.lo `test -f 'plugins/shotwell-transitions/resource.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/resource.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-resource.Tpo plugins/shotwell-transitions/$(DEPDIR)/plugins_shotwell_transitions_shotwell_transitions_la-resource.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='plugins/shotwell-transitions/resource.c' object='plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-resource.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS) $(CFLAGS) -c -o plugins/shotwell-transitions/plugins_shotwell_transitions_shotwell_transitions_la-resource.lo `test -f 'plugins/shotwell-transitions/resource.c' || echo '$(srcdir)/'`plugins/shotwell-transitions/resource.c - -src/src_libgraphics_processor_la-ColorTransformation.lo: src/ColorTransformation.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_libgraphics_processor_la_CFLAGS) $(CFLAGS) -MT src/src_libgraphics_processor_la-ColorTransformation.lo -MD -MP -MF src/$(DEPDIR)/src_libgraphics_processor_la-ColorTransformation.Tpo -c -o src/src_libgraphics_processor_la-ColorTransformation.lo `test -f 'src/ColorTransformation.c' || echo '$(srcdir)/'`src/ColorTransformation.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/src_libgraphics_processor_la-ColorTransformation.Tpo src/$(DEPDIR)/src_libgraphics_processor_la-ColorTransformation.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/ColorTransformation.c' object='src/src_libgraphics_processor_la-ColorTransformation.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_libgraphics_processor_la_CFLAGS) $(CFLAGS) -c -o src/src_libgraphics_processor_la-ColorTransformation.lo `test -f 'src/ColorTransformation.c' || echo '$(srcdir)/'`src/ColorTransformation.c - -src/util/src_libgraphics_processor_la-KeyValueMap.lo: src/util/KeyValueMap.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_libgraphics_processor_la_CFLAGS) $(CFLAGS) -MT src/util/src_libgraphics_processor_la-KeyValueMap.lo -MD -MP -MF src/util/$(DEPDIR)/src_libgraphics_processor_la-KeyValueMap.Tpo -c -o src/util/src_libgraphics_processor_la-KeyValueMap.lo `test -f 'src/util/KeyValueMap.c' || echo '$(srcdir)/'`src/util/KeyValueMap.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/util/$(DEPDIR)/src_libgraphics_processor_la-KeyValueMap.Tpo src/util/$(DEPDIR)/src_libgraphics_processor_la-KeyValueMap.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/util/KeyValueMap.c' object='src/util/src_libgraphics_processor_la-KeyValueMap.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_libgraphics_processor_la_CFLAGS) $(CFLAGS) -c -o src/util/src_libgraphics_processor_la-KeyValueMap.lo `test -f 'src/util/KeyValueMap.c' || echo '$(srcdir)/'`src/util/KeyValueMap.c - -src/src_libgraphics_processor_la-_transformation.lo: src/_transformation.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_libgraphics_processor_la_CFLAGS) $(CFLAGS) -MT src/src_libgraphics_processor_la-_transformation.lo -MD -MP -MF src/$(DEPDIR)/src_libgraphics_processor_la-_transformation.Tpo -c -o src/src_libgraphics_processor_la-_transformation.lo `test -f 'src/_transformation.c' || echo '$(srcdir)/'`src/_transformation.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/src_libgraphics_processor_la-_transformation.Tpo src/$(DEPDIR)/src_libgraphics_processor_la-_transformation.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/_transformation.c' object='src/src_libgraphics_processor_la-_transformation.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_libgraphics_processor_la_CFLAGS) $(CFLAGS) -c -o src/src_libgraphics_processor_la-_transformation.lo `test -f 'src/_transformation.c' || echo '$(srcdir)/'`src/_transformation.c - -src/plugins/src_plugins_libplugin_la-SpitInterfaces.lo: src/plugins/SpitInterfaces.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_plugins_libplugin_la_CFLAGS) $(CFLAGS) -MT src/plugins/src_plugins_libplugin_la-SpitInterfaces.lo -MD -MP -MF src/plugins/$(DEPDIR)/src_plugins_libplugin_la-SpitInterfaces.Tpo -c -o src/plugins/src_plugins_libplugin_la-SpitInterfaces.lo `test -f 'src/plugins/SpitInterfaces.c' || echo '$(srcdir)/'`src/plugins/SpitInterfaces.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/plugins/$(DEPDIR)/src_plugins_libplugin_la-SpitInterfaces.Tpo src/plugins/$(DEPDIR)/src_plugins_libplugin_la-SpitInterfaces.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/plugins/SpitInterfaces.c' object='src/plugins/src_plugins_libplugin_la-SpitInterfaces.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_plugins_libplugin_la_CFLAGS) $(CFLAGS) -c -o src/plugins/src_plugins_libplugin_la-SpitInterfaces.lo `test -f 'src/plugins/SpitInterfaces.c' || echo '$(srcdir)/'`src/plugins/SpitInterfaces.c - -src/plugins/src_plugins_libplugin_la-TransitionsInterfaces.lo: src/plugins/TransitionsInterfaces.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_plugins_libplugin_la_CFLAGS) $(CFLAGS) -MT src/plugins/src_plugins_libplugin_la-TransitionsInterfaces.lo -MD -MP -MF src/plugins/$(DEPDIR)/src_plugins_libplugin_la-TransitionsInterfaces.Tpo -c -o src/plugins/src_plugins_libplugin_la-TransitionsInterfaces.lo `test -f 'src/plugins/TransitionsInterfaces.c' || echo '$(srcdir)/'`src/plugins/TransitionsInterfaces.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/plugins/$(DEPDIR)/src_plugins_libplugin_la-TransitionsInterfaces.Tpo src/plugins/$(DEPDIR)/src_plugins_libplugin_la-TransitionsInterfaces.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/plugins/TransitionsInterfaces.c' object='src/plugins/src_plugins_libplugin_la-TransitionsInterfaces.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_plugins_libplugin_la_CFLAGS) $(CFLAGS) -c -o src/plugins/src_plugins_libplugin_la-TransitionsInterfaces.lo `test -f 'src/plugins/TransitionsInterfaces.c' || echo '$(srcdir)/'`src/plugins/TransitionsInterfaces.c - -src/plugins/src_plugins_libplugin_la-PublishingInterfaces.lo: src/plugins/PublishingInterfaces.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_plugins_libplugin_la_CFLAGS) $(CFLAGS) -MT src/plugins/src_plugins_libplugin_la-PublishingInterfaces.lo -MD -MP -MF src/plugins/$(DEPDIR)/src_plugins_libplugin_la-PublishingInterfaces.Tpo -c -o src/plugins/src_plugins_libplugin_la-PublishingInterfaces.lo `test -f 'src/plugins/PublishingInterfaces.c' || echo '$(srcdir)/'`src/plugins/PublishingInterfaces.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/plugins/$(DEPDIR)/src_plugins_libplugin_la-PublishingInterfaces.Tpo src/plugins/$(DEPDIR)/src_plugins_libplugin_la-PublishingInterfaces.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/plugins/PublishingInterfaces.c' object='src/plugins/src_plugins_libplugin_la-PublishingInterfaces.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_plugins_libplugin_la_CFLAGS) $(CFLAGS) -c -o src/plugins/src_plugins_libplugin_la-PublishingInterfaces.lo `test -f 'src/plugins/PublishingInterfaces.c' || echo '$(srcdir)/'`src/plugins/PublishingInterfaces.c - -src/plugins/src_plugins_libplugin_la-DataImportsInterfaces.lo: src/plugins/DataImportsInterfaces.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_plugins_libplugin_la_CFLAGS) $(CFLAGS) -MT src/plugins/src_plugins_libplugin_la-DataImportsInterfaces.lo -MD -MP -MF src/plugins/$(DEPDIR)/src_plugins_libplugin_la-DataImportsInterfaces.Tpo -c -o src/plugins/src_plugins_libplugin_la-DataImportsInterfaces.lo `test -f 'src/plugins/DataImportsInterfaces.c' || echo '$(srcdir)/'`src/plugins/DataImportsInterfaces.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/plugins/$(DEPDIR)/src_plugins_libplugin_la-DataImportsInterfaces.Tpo src/plugins/$(DEPDIR)/src_plugins_libplugin_la-DataImportsInterfaces.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/plugins/DataImportsInterfaces.c' object='src/plugins/src_plugins_libplugin_la-DataImportsInterfaces.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_plugins_libplugin_la_CFLAGS) $(CFLAGS) -c -o src/plugins/src_plugins_libplugin_la-DataImportsInterfaces.lo `test -f 'src/plugins/DataImportsInterfaces.c' || echo '$(srcdir)/'`src/plugins/DataImportsInterfaces.c - -src/unit/shotwell-Unit.o: src/unit/Unit.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/unit/shotwell-Unit.o -MD -MP -MF src/unit/$(DEPDIR)/shotwell-Unit.Tpo -c -o src/unit/shotwell-Unit.o `test -f 'src/unit/Unit.c' || echo '$(srcdir)/'`src/unit/Unit.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/unit/$(DEPDIR)/shotwell-Unit.Tpo src/unit/$(DEPDIR)/shotwell-Unit.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/unit/Unit.c' object='src/unit/shotwell-Unit.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/unit/shotwell-Unit.o `test -f 'src/unit/Unit.c' || echo '$(srcdir)/'`src/unit/Unit.c - -src/unit/shotwell-Unit.obj: src/unit/Unit.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/unit/shotwell-Unit.obj -MD -MP -MF src/unit/$(DEPDIR)/shotwell-Unit.Tpo -c -o src/unit/shotwell-Unit.obj `if test -f 'src/unit/Unit.c'; then $(CYGPATH_W) 'src/unit/Unit.c'; else $(CYGPATH_W) '$(srcdir)/src/unit/Unit.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/unit/$(DEPDIR)/shotwell-Unit.Tpo src/unit/$(DEPDIR)/shotwell-Unit.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/unit/Unit.c' object='src/unit/shotwell-Unit.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/unit/shotwell-Unit.obj `if test -f 'src/unit/Unit.c'; then $(CYGPATH_W) 'src/unit/Unit.c'; else $(CYGPATH_W) '$(srcdir)/src/unit/Unit.c'; fi` - -src/util/shotwell-Util.o: src/util/Util.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/util/shotwell-Util.o -MD -MP -MF src/util/$(DEPDIR)/shotwell-Util.Tpo -c -o src/util/shotwell-Util.o `test -f 'src/util/Util.c' || echo '$(srcdir)/'`src/util/Util.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/util/$(DEPDIR)/shotwell-Util.Tpo src/util/$(DEPDIR)/shotwell-Util.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/util/Util.c' object='src/util/shotwell-Util.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/util/shotwell-Util.o `test -f 'src/util/Util.c' || echo '$(srcdir)/'`src/util/Util.c - -src/util/shotwell-Util.obj: src/util/Util.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/util/shotwell-Util.obj -MD -MP -MF src/util/$(DEPDIR)/shotwell-Util.Tpo -c -o src/util/shotwell-Util.obj `if test -f 'src/util/Util.c'; then $(CYGPATH_W) 'src/util/Util.c'; else $(CYGPATH_W) '$(srcdir)/src/util/Util.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/util/$(DEPDIR)/shotwell-Util.Tpo src/util/$(DEPDIR)/shotwell-Util.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/util/Util.c' object='src/util/shotwell-Util.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/util/shotwell-Util.obj `if test -f 'src/util/Util.c'; then $(CYGPATH_W) 'src/util/Util.c'; else $(CYGPATH_W) '$(srcdir)/src/util/Util.c'; fi` - -src/util/shotwell-file.o: src/util/file.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/util/shotwell-file.o -MD -MP -MF src/util/$(DEPDIR)/shotwell-file.Tpo -c -o src/util/shotwell-file.o `test -f 'src/util/file.c' || echo '$(srcdir)/'`src/util/file.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/util/$(DEPDIR)/shotwell-file.Tpo src/util/$(DEPDIR)/shotwell-file.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/util/file.c' object='src/util/shotwell-file.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/util/shotwell-file.o `test -f 'src/util/file.c' || echo '$(srcdir)/'`src/util/file.c - -src/util/shotwell-file.obj: src/util/file.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/util/shotwell-file.obj -MD -MP -MF src/util/$(DEPDIR)/shotwell-file.Tpo -c -o src/util/shotwell-file.obj `if test -f 'src/util/file.c'; then $(CYGPATH_W) 'src/util/file.c'; else $(CYGPATH_W) '$(srcdir)/src/util/file.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/util/$(DEPDIR)/shotwell-file.Tpo src/util/$(DEPDIR)/shotwell-file.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/util/file.c' object='src/util/shotwell-file.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/util/shotwell-file.obj `if test -f 'src/util/file.c'; then $(CYGPATH_W) 'src/util/file.c'; else $(CYGPATH_W) '$(srcdir)/src/util/file.c'; fi` - -src/util/shotwell-image.o: src/util/image.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/util/shotwell-image.o -MD -MP -MF src/util/$(DEPDIR)/shotwell-image.Tpo -c -o src/util/shotwell-image.o `test -f 'src/util/image.c' || echo '$(srcdir)/'`src/util/image.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/util/$(DEPDIR)/shotwell-image.Tpo src/util/$(DEPDIR)/shotwell-image.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/util/image.c' object='src/util/shotwell-image.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/util/shotwell-image.o `test -f 'src/util/image.c' || echo '$(srcdir)/'`src/util/image.c - -src/util/shotwell-image.obj: src/util/image.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/util/shotwell-image.obj -MD -MP -MF src/util/$(DEPDIR)/shotwell-image.Tpo -c -o src/util/shotwell-image.obj `if test -f 'src/util/image.c'; then $(CYGPATH_W) 'src/util/image.c'; else $(CYGPATH_W) '$(srcdir)/src/util/image.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/util/$(DEPDIR)/shotwell-image.Tpo src/util/$(DEPDIR)/shotwell-image.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/util/image.c' object='src/util/shotwell-image.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/util/shotwell-image.obj `if test -f 'src/util/image.c'; then $(CYGPATH_W) 'src/util/image.c'; else $(CYGPATH_W) '$(srcdir)/src/util/image.c'; fi` - -src/util/shotwell-misc.o: src/util/misc.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/util/shotwell-misc.o -MD -MP -MF src/util/$(DEPDIR)/shotwell-misc.Tpo -c -o src/util/shotwell-misc.o `test -f 'src/util/misc.c' || echo '$(srcdir)/'`src/util/misc.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/util/$(DEPDIR)/shotwell-misc.Tpo src/util/$(DEPDIR)/shotwell-misc.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/util/misc.c' object='src/util/shotwell-misc.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/util/shotwell-misc.o `test -f 'src/util/misc.c' || echo '$(srcdir)/'`src/util/misc.c - -src/util/shotwell-misc.obj: src/util/misc.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/util/shotwell-misc.obj -MD -MP -MF src/util/$(DEPDIR)/shotwell-misc.Tpo -c -o src/util/shotwell-misc.obj `if test -f 'src/util/misc.c'; then $(CYGPATH_W) 'src/util/misc.c'; else $(CYGPATH_W) '$(srcdir)/src/util/misc.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/util/$(DEPDIR)/shotwell-misc.Tpo src/util/$(DEPDIR)/shotwell-misc.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/util/misc.c' object='src/util/shotwell-misc.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/util/shotwell-misc.obj `if test -f 'src/util/misc.c'; then $(CYGPATH_W) 'src/util/misc.c'; else $(CYGPATH_W) '$(srcdir)/src/util/misc.c'; fi` - -src/util/shotwell-string.o: src/util/string.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/util/shotwell-string.o -MD -MP -MF src/util/$(DEPDIR)/shotwell-string.Tpo -c -o src/util/shotwell-string.o `test -f 'src/util/string.c' || echo '$(srcdir)/'`src/util/string.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/util/$(DEPDIR)/shotwell-string.Tpo src/util/$(DEPDIR)/shotwell-string.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/util/string.c' object='src/util/shotwell-string.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/util/shotwell-string.o `test -f 'src/util/string.c' || echo '$(srcdir)/'`src/util/string.c - -src/util/shotwell-string.obj: src/util/string.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/util/shotwell-string.obj -MD -MP -MF src/util/$(DEPDIR)/shotwell-string.Tpo -c -o src/util/shotwell-string.obj `if test -f 'src/util/string.c'; then $(CYGPATH_W) 'src/util/string.c'; else $(CYGPATH_W) '$(srcdir)/src/util/string.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/util/$(DEPDIR)/shotwell-string.Tpo src/util/$(DEPDIR)/shotwell-string.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/util/string.c' object='src/util/shotwell-string.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/util/shotwell-string.obj `if test -f 'src/util/string.c'; then $(CYGPATH_W) 'src/util/string.c'; else $(CYGPATH_W) '$(srcdir)/src/util/string.c'; fi` - -src/util/shotwell-system.o: src/util/system.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/util/shotwell-system.o -MD -MP -MF src/util/$(DEPDIR)/shotwell-system.Tpo -c -o src/util/shotwell-system.o `test -f 'src/util/system.c' || echo '$(srcdir)/'`src/util/system.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/util/$(DEPDIR)/shotwell-system.Tpo src/util/$(DEPDIR)/shotwell-system.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/util/system.c' object='src/util/shotwell-system.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/util/shotwell-system.o `test -f 'src/util/system.c' || echo '$(srcdir)/'`src/util/system.c - -src/util/shotwell-system.obj: src/util/system.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/util/shotwell-system.obj -MD -MP -MF src/util/$(DEPDIR)/shotwell-system.Tpo -c -o src/util/shotwell-system.obj `if test -f 'src/util/system.c'; then $(CYGPATH_W) 'src/util/system.c'; else $(CYGPATH_W) '$(srcdir)/src/util/system.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/util/$(DEPDIR)/shotwell-system.Tpo src/util/$(DEPDIR)/shotwell-system.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/util/system.c' object='src/util/shotwell-system.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/util/shotwell-system.obj `if test -f 'src/util/system.c'; then $(CYGPATH_W) 'src/util/system.c'; else $(CYGPATH_W) '$(srcdir)/src/util/system.c'; fi` - -src/util/shotwell-ui.o: src/util/ui.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/util/shotwell-ui.o -MD -MP -MF src/util/$(DEPDIR)/shotwell-ui.Tpo -c -o src/util/shotwell-ui.o `test -f 'src/util/ui.c' || echo '$(srcdir)/'`src/util/ui.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/util/$(DEPDIR)/shotwell-ui.Tpo src/util/$(DEPDIR)/shotwell-ui.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/util/ui.c' object='src/util/shotwell-ui.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/util/shotwell-ui.o `test -f 'src/util/ui.c' || echo '$(srcdir)/'`src/util/ui.c - -src/util/shotwell-ui.obj: src/util/ui.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/util/shotwell-ui.obj -MD -MP -MF src/util/$(DEPDIR)/shotwell-ui.Tpo -c -o src/util/shotwell-ui.obj `if test -f 'src/util/ui.c'; then $(CYGPATH_W) 'src/util/ui.c'; else $(CYGPATH_W) '$(srcdir)/src/util/ui.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/util/$(DEPDIR)/shotwell-ui.Tpo src/util/$(DEPDIR)/shotwell-ui.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/util/ui.c' object='src/util/shotwell-ui.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/util/shotwell-ui.obj `if test -f 'src/util/ui.c'; then $(CYGPATH_W) 'src/util/ui.c'; else $(CYGPATH_W) '$(srcdir)/src/util/ui.c'; fi` - -src/threads/shotwell-Threads.o: src/threads/Threads.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/threads/shotwell-Threads.o -MD -MP -MF src/threads/$(DEPDIR)/shotwell-Threads.Tpo -c -o src/threads/shotwell-Threads.o `test -f 'src/threads/Threads.c' || echo '$(srcdir)/'`src/threads/Threads.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/threads/$(DEPDIR)/shotwell-Threads.Tpo src/threads/$(DEPDIR)/shotwell-Threads.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/threads/Threads.c' object='src/threads/shotwell-Threads.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/threads/shotwell-Threads.o `test -f 'src/threads/Threads.c' || echo '$(srcdir)/'`src/threads/Threads.c - -src/threads/shotwell-Threads.obj: src/threads/Threads.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/threads/shotwell-Threads.obj -MD -MP -MF src/threads/$(DEPDIR)/shotwell-Threads.Tpo -c -o src/threads/shotwell-Threads.obj `if test -f 'src/threads/Threads.c'; then $(CYGPATH_W) 'src/threads/Threads.c'; else $(CYGPATH_W) '$(srcdir)/src/threads/Threads.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/threads/$(DEPDIR)/shotwell-Threads.Tpo src/threads/$(DEPDIR)/shotwell-Threads.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/threads/Threads.c' object='src/threads/shotwell-Threads.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/threads/shotwell-Threads.obj `if test -f 'src/threads/Threads.c'; then $(CYGPATH_W) 'src/threads/Threads.c'; else $(CYGPATH_W) '$(srcdir)/src/threads/Threads.c'; fi` - -src/threads/shotwell-Workers.o: src/threads/Workers.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/threads/shotwell-Workers.o -MD -MP -MF src/threads/$(DEPDIR)/shotwell-Workers.Tpo -c -o src/threads/shotwell-Workers.o `test -f 'src/threads/Workers.c' || echo '$(srcdir)/'`src/threads/Workers.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/threads/$(DEPDIR)/shotwell-Workers.Tpo src/threads/$(DEPDIR)/shotwell-Workers.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/threads/Workers.c' object='src/threads/shotwell-Workers.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/threads/shotwell-Workers.o `test -f 'src/threads/Workers.c' || echo '$(srcdir)/'`src/threads/Workers.c - -src/threads/shotwell-Workers.obj: src/threads/Workers.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/threads/shotwell-Workers.obj -MD -MP -MF src/threads/$(DEPDIR)/shotwell-Workers.Tpo -c -o src/threads/shotwell-Workers.obj `if test -f 'src/threads/Workers.c'; then $(CYGPATH_W) 'src/threads/Workers.c'; else $(CYGPATH_W) '$(srcdir)/src/threads/Workers.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/threads/$(DEPDIR)/shotwell-Workers.Tpo src/threads/$(DEPDIR)/shotwell-Workers.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/threads/Workers.c' object='src/threads/shotwell-Workers.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/threads/shotwell-Workers.obj `if test -f 'src/threads/Workers.c'; then $(CYGPATH_W) 'src/threads/Workers.c'; else $(CYGPATH_W) '$(srcdir)/src/threads/Workers.c'; fi` - -src/threads/shotwell-BackgroundJob.o: src/threads/BackgroundJob.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/threads/shotwell-BackgroundJob.o -MD -MP -MF src/threads/$(DEPDIR)/shotwell-BackgroundJob.Tpo -c -o src/threads/shotwell-BackgroundJob.o `test -f 'src/threads/BackgroundJob.c' || echo '$(srcdir)/'`src/threads/BackgroundJob.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/threads/$(DEPDIR)/shotwell-BackgroundJob.Tpo src/threads/$(DEPDIR)/shotwell-BackgroundJob.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/threads/BackgroundJob.c' object='src/threads/shotwell-BackgroundJob.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/threads/shotwell-BackgroundJob.o `test -f 'src/threads/BackgroundJob.c' || echo '$(srcdir)/'`src/threads/BackgroundJob.c - -src/threads/shotwell-BackgroundJob.obj: src/threads/BackgroundJob.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/threads/shotwell-BackgroundJob.obj -MD -MP -MF src/threads/$(DEPDIR)/shotwell-BackgroundJob.Tpo -c -o src/threads/shotwell-BackgroundJob.obj `if test -f 'src/threads/BackgroundJob.c'; then $(CYGPATH_W) 'src/threads/BackgroundJob.c'; else $(CYGPATH_W) '$(srcdir)/src/threads/BackgroundJob.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/threads/$(DEPDIR)/shotwell-BackgroundJob.Tpo src/threads/$(DEPDIR)/shotwell-BackgroundJob.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/threads/BackgroundJob.c' object='src/threads/shotwell-BackgroundJob.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/threads/shotwell-BackgroundJob.obj `if test -f 'src/threads/BackgroundJob.c'; then $(CYGPATH_W) 'src/threads/BackgroundJob.c'; else $(CYGPATH_W) '$(srcdir)/src/threads/BackgroundJob.c'; fi` - -src/threads/shotwell-Semaphore.o: src/threads/Semaphore.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/threads/shotwell-Semaphore.o -MD -MP -MF src/threads/$(DEPDIR)/shotwell-Semaphore.Tpo -c -o src/threads/shotwell-Semaphore.o `test -f 'src/threads/Semaphore.c' || echo '$(srcdir)/'`src/threads/Semaphore.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/threads/$(DEPDIR)/shotwell-Semaphore.Tpo src/threads/$(DEPDIR)/shotwell-Semaphore.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/threads/Semaphore.c' object='src/threads/shotwell-Semaphore.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/threads/shotwell-Semaphore.o `test -f 'src/threads/Semaphore.c' || echo '$(srcdir)/'`src/threads/Semaphore.c - -src/threads/shotwell-Semaphore.obj: src/threads/Semaphore.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/threads/shotwell-Semaphore.obj -MD -MP -MF src/threads/$(DEPDIR)/shotwell-Semaphore.Tpo -c -o src/threads/shotwell-Semaphore.obj `if test -f 'src/threads/Semaphore.c'; then $(CYGPATH_W) 'src/threads/Semaphore.c'; else $(CYGPATH_W) '$(srcdir)/src/threads/Semaphore.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/threads/$(DEPDIR)/shotwell-Semaphore.Tpo src/threads/$(DEPDIR)/shotwell-Semaphore.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/threads/Semaphore.c' object='src/threads/shotwell-Semaphore.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/threads/shotwell-Semaphore.obj `if test -f 'src/threads/Semaphore.c'; then $(CYGPATH_W) 'src/threads/Semaphore.c'; else $(CYGPATH_W) '$(srcdir)/src/threads/Semaphore.c'; fi` - -src/db/shotwell-Db.o: src/db/Db.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-Db.o -MD -MP -MF src/db/$(DEPDIR)/shotwell-Db.Tpo -c -o src/db/shotwell-Db.o `test -f 'src/db/Db.c' || echo '$(srcdir)/'`src/db/Db.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-Db.Tpo src/db/$(DEPDIR)/shotwell-Db.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/Db.c' object='src/db/shotwell-Db.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-Db.o `test -f 'src/db/Db.c' || echo '$(srcdir)/'`src/db/Db.c - -src/db/shotwell-Db.obj: src/db/Db.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-Db.obj -MD -MP -MF src/db/$(DEPDIR)/shotwell-Db.Tpo -c -o src/db/shotwell-Db.obj `if test -f 'src/db/Db.c'; then $(CYGPATH_W) 'src/db/Db.c'; else $(CYGPATH_W) '$(srcdir)/src/db/Db.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-Db.Tpo src/db/$(DEPDIR)/shotwell-Db.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/Db.c' object='src/db/shotwell-Db.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-Db.obj `if test -f 'src/db/Db.c'; then $(CYGPATH_W) 'src/db/Db.c'; else $(CYGPATH_W) '$(srcdir)/src/db/Db.c'; fi` - -src/db/shotwell-DatabaseTable.o: src/db/DatabaseTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-DatabaseTable.o -MD -MP -MF src/db/$(DEPDIR)/shotwell-DatabaseTable.Tpo -c -o src/db/shotwell-DatabaseTable.o `test -f 'src/db/DatabaseTable.c' || echo '$(srcdir)/'`src/db/DatabaseTable.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-DatabaseTable.Tpo src/db/$(DEPDIR)/shotwell-DatabaseTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/DatabaseTable.c' object='src/db/shotwell-DatabaseTable.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-DatabaseTable.o `test -f 'src/db/DatabaseTable.c' || echo '$(srcdir)/'`src/db/DatabaseTable.c - -src/db/shotwell-DatabaseTable.obj: src/db/DatabaseTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-DatabaseTable.obj -MD -MP -MF src/db/$(DEPDIR)/shotwell-DatabaseTable.Tpo -c -o src/db/shotwell-DatabaseTable.obj `if test -f 'src/db/DatabaseTable.c'; then $(CYGPATH_W) 'src/db/DatabaseTable.c'; else $(CYGPATH_W) '$(srcdir)/src/db/DatabaseTable.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-DatabaseTable.Tpo src/db/$(DEPDIR)/shotwell-DatabaseTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/DatabaseTable.c' object='src/db/shotwell-DatabaseTable.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-DatabaseTable.obj `if test -f 'src/db/DatabaseTable.c'; then $(CYGPATH_W) 'src/db/DatabaseTable.c'; else $(CYGPATH_W) '$(srcdir)/src/db/DatabaseTable.c'; fi` - -src/db/shotwell-PhotoTable.o: src/db/PhotoTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-PhotoTable.o -MD -MP -MF src/db/$(DEPDIR)/shotwell-PhotoTable.Tpo -c -o src/db/shotwell-PhotoTable.o `test -f 'src/db/PhotoTable.c' || echo '$(srcdir)/'`src/db/PhotoTable.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-PhotoTable.Tpo src/db/$(DEPDIR)/shotwell-PhotoTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/PhotoTable.c' object='src/db/shotwell-PhotoTable.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-PhotoTable.o `test -f 'src/db/PhotoTable.c' || echo '$(srcdir)/'`src/db/PhotoTable.c - -src/db/shotwell-PhotoTable.obj: src/db/PhotoTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-PhotoTable.obj -MD -MP -MF src/db/$(DEPDIR)/shotwell-PhotoTable.Tpo -c -o src/db/shotwell-PhotoTable.obj `if test -f 'src/db/PhotoTable.c'; then $(CYGPATH_W) 'src/db/PhotoTable.c'; else $(CYGPATH_W) '$(srcdir)/src/db/PhotoTable.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-PhotoTable.Tpo src/db/$(DEPDIR)/shotwell-PhotoTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/PhotoTable.c' object='src/db/shotwell-PhotoTable.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-PhotoTable.obj `if test -f 'src/db/PhotoTable.c'; then $(CYGPATH_W) 'src/db/PhotoTable.c'; else $(CYGPATH_W) '$(srcdir)/src/db/PhotoTable.c'; fi` - -src/db/shotwell-EventTable.o: src/db/EventTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-EventTable.o -MD -MP -MF src/db/$(DEPDIR)/shotwell-EventTable.Tpo -c -o src/db/shotwell-EventTable.o `test -f 'src/db/EventTable.c' || echo '$(srcdir)/'`src/db/EventTable.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-EventTable.Tpo src/db/$(DEPDIR)/shotwell-EventTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/EventTable.c' object='src/db/shotwell-EventTable.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-EventTable.o `test -f 'src/db/EventTable.c' || echo '$(srcdir)/'`src/db/EventTable.c - -src/db/shotwell-EventTable.obj: src/db/EventTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-EventTable.obj -MD -MP -MF src/db/$(DEPDIR)/shotwell-EventTable.Tpo -c -o src/db/shotwell-EventTable.obj `if test -f 'src/db/EventTable.c'; then $(CYGPATH_W) 'src/db/EventTable.c'; else $(CYGPATH_W) '$(srcdir)/src/db/EventTable.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-EventTable.Tpo src/db/$(DEPDIR)/shotwell-EventTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/EventTable.c' object='src/db/shotwell-EventTable.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-EventTable.obj `if test -f 'src/db/EventTable.c'; then $(CYGPATH_W) 'src/db/EventTable.c'; else $(CYGPATH_W) '$(srcdir)/src/db/EventTable.c'; fi` - -src/db/shotwell-TagTable.o: src/db/TagTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-TagTable.o -MD -MP -MF src/db/$(DEPDIR)/shotwell-TagTable.Tpo -c -o src/db/shotwell-TagTable.o `test -f 'src/db/TagTable.c' || echo '$(srcdir)/'`src/db/TagTable.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-TagTable.Tpo src/db/$(DEPDIR)/shotwell-TagTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/TagTable.c' object='src/db/shotwell-TagTable.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-TagTable.o `test -f 'src/db/TagTable.c' || echo '$(srcdir)/'`src/db/TagTable.c - -src/db/shotwell-TagTable.obj: src/db/TagTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-TagTable.obj -MD -MP -MF src/db/$(DEPDIR)/shotwell-TagTable.Tpo -c -o src/db/shotwell-TagTable.obj `if test -f 'src/db/TagTable.c'; then $(CYGPATH_W) 'src/db/TagTable.c'; else $(CYGPATH_W) '$(srcdir)/src/db/TagTable.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-TagTable.Tpo src/db/$(DEPDIR)/shotwell-TagTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/TagTable.c' object='src/db/shotwell-TagTable.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-TagTable.obj `if test -f 'src/db/TagTable.c'; then $(CYGPATH_W) 'src/db/TagTable.c'; else $(CYGPATH_W) '$(srcdir)/src/db/TagTable.c'; fi` - -src/db/shotwell-TombstoneTable.o: src/db/TombstoneTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-TombstoneTable.o -MD -MP -MF src/db/$(DEPDIR)/shotwell-TombstoneTable.Tpo -c -o src/db/shotwell-TombstoneTable.o `test -f 'src/db/TombstoneTable.c' || echo '$(srcdir)/'`src/db/TombstoneTable.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-TombstoneTable.Tpo src/db/$(DEPDIR)/shotwell-TombstoneTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/TombstoneTable.c' object='src/db/shotwell-TombstoneTable.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-TombstoneTable.o `test -f 'src/db/TombstoneTable.c' || echo '$(srcdir)/'`src/db/TombstoneTable.c - -src/db/shotwell-TombstoneTable.obj: src/db/TombstoneTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-TombstoneTable.obj -MD -MP -MF src/db/$(DEPDIR)/shotwell-TombstoneTable.Tpo -c -o src/db/shotwell-TombstoneTable.obj `if test -f 'src/db/TombstoneTable.c'; then $(CYGPATH_W) 'src/db/TombstoneTable.c'; else $(CYGPATH_W) '$(srcdir)/src/db/TombstoneTable.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-TombstoneTable.Tpo src/db/$(DEPDIR)/shotwell-TombstoneTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/TombstoneTable.c' object='src/db/shotwell-TombstoneTable.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-TombstoneTable.obj `if test -f 'src/db/TombstoneTable.c'; then $(CYGPATH_W) 'src/db/TombstoneTable.c'; else $(CYGPATH_W) '$(srcdir)/src/db/TombstoneTable.c'; fi` - -src/db/shotwell-VideoTable.o: src/db/VideoTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-VideoTable.o -MD -MP -MF src/db/$(DEPDIR)/shotwell-VideoTable.Tpo -c -o src/db/shotwell-VideoTable.o `test -f 'src/db/VideoTable.c' || echo '$(srcdir)/'`src/db/VideoTable.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-VideoTable.Tpo src/db/$(DEPDIR)/shotwell-VideoTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/VideoTable.c' object='src/db/shotwell-VideoTable.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-VideoTable.o `test -f 'src/db/VideoTable.c' || echo '$(srcdir)/'`src/db/VideoTable.c - -src/db/shotwell-VideoTable.obj: src/db/VideoTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-VideoTable.obj -MD -MP -MF src/db/$(DEPDIR)/shotwell-VideoTable.Tpo -c -o src/db/shotwell-VideoTable.obj `if test -f 'src/db/VideoTable.c'; then $(CYGPATH_W) 'src/db/VideoTable.c'; else $(CYGPATH_W) '$(srcdir)/src/db/VideoTable.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-VideoTable.Tpo src/db/$(DEPDIR)/shotwell-VideoTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/VideoTable.c' object='src/db/shotwell-VideoTable.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-VideoTable.obj `if test -f 'src/db/VideoTable.c'; then $(CYGPATH_W) 'src/db/VideoTable.c'; else $(CYGPATH_W) '$(srcdir)/src/db/VideoTable.c'; fi` - -src/db/shotwell-VersionTable.o: src/db/VersionTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-VersionTable.o -MD -MP -MF src/db/$(DEPDIR)/shotwell-VersionTable.Tpo -c -o src/db/shotwell-VersionTable.o `test -f 'src/db/VersionTable.c' || echo '$(srcdir)/'`src/db/VersionTable.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-VersionTable.Tpo src/db/$(DEPDIR)/shotwell-VersionTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/VersionTable.c' object='src/db/shotwell-VersionTable.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-VersionTable.o `test -f 'src/db/VersionTable.c' || echo '$(srcdir)/'`src/db/VersionTable.c - -src/db/shotwell-VersionTable.obj: src/db/VersionTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-VersionTable.obj -MD -MP -MF src/db/$(DEPDIR)/shotwell-VersionTable.Tpo -c -o src/db/shotwell-VersionTable.obj `if test -f 'src/db/VersionTable.c'; then $(CYGPATH_W) 'src/db/VersionTable.c'; else $(CYGPATH_W) '$(srcdir)/src/db/VersionTable.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-VersionTable.Tpo src/db/$(DEPDIR)/shotwell-VersionTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/VersionTable.c' object='src/db/shotwell-VersionTable.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-VersionTable.obj `if test -f 'src/db/VersionTable.c'; then $(CYGPATH_W) 'src/db/VersionTable.c'; else $(CYGPATH_W) '$(srcdir)/src/db/VersionTable.c'; fi` - -src/db/shotwell-SavedSearchDBTable.o: src/db/SavedSearchDBTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-SavedSearchDBTable.o -MD -MP -MF src/db/$(DEPDIR)/shotwell-SavedSearchDBTable.Tpo -c -o src/db/shotwell-SavedSearchDBTable.o `test -f 'src/db/SavedSearchDBTable.c' || echo '$(srcdir)/'`src/db/SavedSearchDBTable.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-SavedSearchDBTable.Tpo src/db/$(DEPDIR)/shotwell-SavedSearchDBTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/SavedSearchDBTable.c' object='src/db/shotwell-SavedSearchDBTable.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-SavedSearchDBTable.o `test -f 'src/db/SavedSearchDBTable.c' || echo '$(srcdir)/'`src/db/SavedSearchDBTable.c - -src/db/shotwell-SavedSearchDBTable.obj: src/db/SavedSearchDBTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/db/shotwell-SavedSearchDBTable.obj -MD -MP -MF src/db/$(DEPDIR)/shotwell-SavedSearchDBTable.Tpo -c -o src/db/shotwell-SavedSearchDBTable.obj `if test -f 'src/db/SavedSearchDBTable.c'; then $(CYGPATH_W) 'src/db/SavedSearchDBTable.c'; else $(CYGPATH_W) '$(srcdir)/src/db/SavedSearchDBTable.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/db/$(DEPDIR)/shotwell-SavedSearchDBTable.Tpo src/db/$(DEPDIR)/shotwell-SavedSearchDBTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/db/SavedSearchDBTable.c' object='src/db/shotwell-SavedSearchDBTable.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/db/shotwell-SavedSearchDBTable.obj `if test -f 'src/db/SavedSearchDBTable.c'; then $(CYGPATH_W) 'src/db/SavedSearchDBTable.c'; else $(CYGPATH_W) '$(srcdir)/src/db/SavedSearchDBTable.c'; fi` - -src/dialogs/shotwell-Preferences.o: src/dialogs/Preferences.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-Preferences.o -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-Preferences.Tpo -c -o src/dialogs/shotwell-Preferences.o `test -f 'src/dialogs/Preferences.c' || echo '$(srcdir)/'`src/dialogs/Preferences.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-Preferences.Tpo src/dialogs/$(DEPDIR)/shotwell-Preferences.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/Preferences.c' object='src/dialogs/shotwell-Preferences.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-Preferences.o `test -f 'src/dialogs/Preferences.c' || echo '$(srcdir)/'`src/dialogs/Preferences.c - -src/dialogs/shotwell-Preferences.obj: src/dialogs/Preferences.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-Preferences.obj -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-Preferences.Tpo -c -o src/dialogs/shotwell-Preferences.obj `if test -f 'src/dialogs/Preferences.c'; then $(CYGPATH_W) 'src/dialogs/Preferences.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/Preferences.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-Preferences.Tpo src/dialogs/$(DEPDIR)/shotwell-Preferences.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/Preferences.c' object='src/dialogs/shotwell-Preferences.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-Preferences.obj `if test -f 'src/dialogs/Preferences.c'; then $(CYGPATH_W) 'src/dialogs/Preferences.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/Preferences.c'; fi` - -src/dialogs/shotwell-EntryMultiCompletion.o: src/dialogs/EntryMultiCompletion.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-EntryMultiCompletion.o -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-EntryMultiCompletion.Tpo -c -o src/dialogs/shotwell-EntryMultiCompletion.o `test -f 'src/dialogs/EntryMultiCompletion.c' || echo '$(srcdir)/'`src/dialogs/EntryMultiCompletion.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-EntryMultiCompletion.Tpo src/dialogs/$(DEPDIR)/shotwell-EntryMultiCompletion.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/EntryMultiCompletion.c' object='src/dialogs/shotwell-EntryMultiCompletion.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-EntryMultiCompletion.o `test -f 'src/dialogs/EntryMultiCompletion.c' || echo '$(srcdir)/'`src/dialogs/EntryMultiCompletion.c - -src/dialogs/shotwell-EntryMultiCompletion.obj: src/dialogs/EntryMultiCompletion.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-EntryMultiCompletion.obj -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-EntryMultiCompletion.Tpo -c -o src/dialogs/shotwell-EntryMultiCompletion.obj `if test -f 'src/dialogs/EntryMultiCompletion.c'; then $(CYGPATH_W) 'src/dialogs/EntryMultiCompletion.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/EntryMultiCompletion.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-EntryMultiCompletion.Tpo src/dialogs/$(DEPDIR)/shotwell-EntryMultiCompletion.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/EntryMultiCompletion.c' object='src/dialogs/shotwell-EntryMultiCompletion.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-EntryMultiCompletion.obj `if test -f 'src/dialogs/EntryMultiCompletion.c'; then $(CYGPATH_W) 'src/dialogs/EntryMultiCompletion.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/EntryMultiCompletion.c'; fi` - -src/dialogs/shotwell-ExportDialog.o: src/dialogs/ExportDialog.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-ExportDialog.o -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-ExportDialog.Tpo -c -o src/dialogs/shotwell-ExportDialog.o `test -f 'src/dialogs/ExportDialog.c' || echo '$(srcdir)/'`src/dialogs/ExportDialog.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-ExportDialog.Tpo src/dialogs/$(DEPDIR)/shotwell-ExportDialog.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/ExportDialog.c' object='src/dialogs/shotwell-ExportDialog.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-ExportDialog.o `test -f 'src/dialogs/ExportDialog.c' || echo '$(srcdir)/'`src/dialogs/ExportDialog.c - -src/dialogs/shotwell-ExportDialog.obj: src/dialogs/ExportDialog.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-ExportDialog.obj -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-ExportDialog.Tpo -c -o src/dialogs/shotwell-ExportDialog.obj `if test -f 'src/dialogs/ExportDialog.c'; then $(CYGPATH_W) 'src/dialogs/ExportDialog.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/ExportDialog.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-ExportDialog.Tpo src/dialogs/$(DEPDIR)/shotwell-ExportDialog.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/ExportDialog.c' object='src/dialogs/shotwell-ExportDialog.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-ExportDialog.obj `if test -f 'src/dialogs/ExportDialog.c'; then $(CYGPATH_W) 'src/dialogs/ExportDialog.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/ExportDialog.c'; fi` - -src/dialogs/shotwell-TextEntry.o: src/dialogs/TextEntry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-TextEntry.o -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-TextEntry.Tpo -c -o src/dialogs/shotwell-TextEntry.o `test -f 'src/dialogs/TextEntry.c' || echo '$(srcdir)/'`src/dialogs/TextEntry.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-TextEntry.Tpo src/dialogs/$(DEPDIR)/shotwell-TextEntry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/TextEntry.c' object='src/dialogs/shotwell-TextEntry.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-TextEntry.o `test -f 'src/dialogs/TextEntry.c' || echo '$(srcdir)/'`src/dialogs/TextEntry.c - -src/dialogs/shotwell-TextEntry.obj: src/dialogs/TextEntry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-TextEntry.obj -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-TextEntry.Tpo -c -o src/dialogs/shotwell-TextEntry.obj `if test -f 'src/dialogs/TextEntry.c'; then $(CYGPATH_W) 'src/dialogs/TextEntry.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/TextEntry.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-TextEntry.Tpo src/dialogs/$(DEPDIR)/shotwell-TextEntry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/TextEntry.c' object='src/dialogs/shotwell-TextEntry.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-TextEntry.obj `if test -f 'src/dialogs/TextEntry.c'; then $(CYGPATH_W) 'src/dialogs/TextEntry.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/TextEntry.c'; fi` - -src/dialogs/shotwell-WelcomeDialog.o: src/dialogs/WelcomeDialog.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-WelcomeDialog.o -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-WelcomeDialog.Tpo -c -o src/dialogs/shotwell-WelcomeDialog.o `test -f 'src/dialogs/WelcomeDialog.c' || echo '$(srcdir)/'`src/dialogs/WelcomeDialog.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-WelcomeDialog.Tpo src/dialogs/$(DEPDIR)/shotwell-WelcomeDialog.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/WelcomeDialog.c' object='src/dialogs/shotwell-WelcomeDialog.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-WelcomeDialog.o `test -f 'src/dialogs/WelcomeDialog.c' || echo '$(srcdir)/'`src/dialogs/WelcomeDialog.c - -src/dialogs/shotwell-WelcomeDialog.obj: src/dialogs/WelcomeDialog.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-WelcomeDialog.obj -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-WelcomeDialog.Tpo -c -o src/dialogs/shotwell-WelcomeDialog.obj `if test -f 'src/dialogs/WelcomeDialog.c'; then $(CYGPATH_W) 'src/dialogs/WelcomeDialog.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/WelcomeDialog.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-WelcomeDialog.Tpo src/dialogs/$(DEPDIR)/shotwell-WelcomeDialog.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/WelcomeDialog.c' object='src/dialogs/shotwell-WelcomeDialog.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-WelcomeDialog.obj `if test -f 'src/dialogs/WelcomeDialog.c'; then $(CYGPATH_W) 'src/dialogs/WelcomeDialog.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/WelcomeDialog.c'; fi` - -src/dialogs/shotwell-MultiTextEntryDialog.o: src/dialogs/MultiTextEntryDialog.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-MultiTextEntryDialog.o -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-MultiTextEntryDialog.Tpo -c -o src/dialogs/shotwell-MultiTextEntryDialog.o `test -f 'src/dialogs/MultiTextEntryDialog.c' || echo '$(srcdir)/'`src/dialogs/MultiTextEntryDialog.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-MultiTextEntryDialog.Tpo src/dialogs/$(DEPDIR)/shotwell-MultiTextEntryDialog.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/MultiTextEntryDialog.c' object='src/dialogs/shotwell-MultiTextEntryDialog.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-MultiTextEntryDialog.o `test -f 'src/dialogs/MultiTextEntryDialog.c' || echo '$(srcdir)/'`src/dialogs/MultiTextEntryDialog.c - -src/dialogs/shotwell-MultiTextEntryDialog.obj: src/dialogs/MultiTextEntryDialog.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-MultiTextEntryDialog.obj -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-MultiTextEntryDialog.Tpo -c -o src/dialogs/shotwell-MultiTextEntryDialog.obj `if test -f 'src/dialogs/MultiTextEntryDialog.c'; then $(CYGPATH_W) 'src/dialogs/MultiTextEntryDialog.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/MultiTextEntryDialog.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-MultiTextEntryDialog.Tpo src/dialogs/$(DEPDIR)/shotwell-MultiTextEntryDialog.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/MultiTextEntryDialog.c' object='src/dialogs/shotwell-MultiTextEntryDialog.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-MultiTextEntryDialog.obj `if test -f 'src/dialogs/MultiTextEntryDialog.c'; then $(CYGPATH_W) 'src/dialogs/MultiTextEntryDialog.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/MultiTextEntryDialog.c'; fi` - -src/dialogs/shotwell-AdjustDateTimeDialog.o: src/dialogs/AdjustDateTimeDialog.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-AdjustDateTimeDialog.o -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-AdjustDateTimeDialog.Tpo -c -o src/dialogs/shotwell-AdjustDateTimeDialog.o `test -f 'src/dialogs/AdjustDateTimeDialog.c' || echo '$(srcdir)/'`src/dialogs/AdjustDateTimeDialog.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-AdjustDateTimeDialog.Tpo src/dialogs/$(DEPDIR)/shotwell-AdjustDateTimeDialog.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/AdjustDateTimeDialog.c' object='src/dialogs/shotwell-AdjustDateTimeDialog.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-AdjustDateTimeDialog.o `test -f 'src/dialogs/AdjustDateTimeDialog.c' || echo '$(srcdir)/'`src/dialogs/AdjustDateTimeDialog.c - -src/dialogs/shotwell-AdjustDateTimeDialog.obj: src/dialogs/AdjustDateTimeDialog.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-AdjustDateTimeDialog.obj -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-AdjustDateTimeDialog.Tpo -c -o src/dialogs/shotwell-AdjustDateTimeDialog.obj `if test -f 'src/dialogs/AdjustDateTimeDialog.c'; then $(CYGPATH_W) 'src/dialogs/AdjustDateTimeDialog.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/AdjustDateTimeDialog.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-AdjustDateTimeDialog.Tpo src/dialogs/$(DEPDIR)/shotwell-AdjustDateTimeDialog.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/AdjustDateTimeDialog.c' object='src/dialogs/shotwell-AdjustDateTimeDialog.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-AdjustDateTimeDialog.obj `if test -f 'src/dialogs/AdjustDateTimeDialog.c'; then $(CYGPATH_W) 'src/dialogs/AdjustDateTimeDialog.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/AdjustDateTimeDialog.c'; fi` - -src/dialogs/shotwell-SetBackground.o: src/dialogs/SetBackground.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-SetBackground.o -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-SetBackground.Tpo -c -o src/dialogs/shotwell-SetBackground.o `test -f 'src/dialogs/SetBackground.c' || echo '$(srcdir)/'`src/dialogs/SetBackground.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-SetBackground.Tpo src/dialogs/$(DEPDIR)/shotwell-SetBackground.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/SetBackground.c' object='src/dialogs/shotwell-SetBackground.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-SetBackground.o `test -f 'src/dialogs/SetBackground.c' || echo '$(srcdir)/'`src/dialogs/SetBackground.c - -src/dialogs/shotwell-SetBackground.obj: src/dialogs/SetBackground.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-SetBackground.obj -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-SetBackground.Tpo -c -o src/dialogs/shotwell-SetBackground.obj `if test -f 'src/dialogs/SetBackground.c'; then $(CYGPATH_W) 'src/dialogs/SetBackground.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/SetBackground.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-SetBackground.Tpo src/dialogs/$(DEPDIR)/shotwell-SetBackground.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/SetBackground.c' object='src/dialogs/shotwell-SetBackground.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-SetBackground.obj `if test -f 'src/dialogs/SetBackground.c'; then $(CYGPATH_W) 'src/dialogs/SetBackground.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/SetBackground.c'; fi` - -src/dialogs/shotwell-ProgressDialog.o: src/dialogs/ProgressDialog.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-ProgressDialog.o -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-ProgressDialog.Tpo -c -o src/dialogs/shotwell-ProgressDialog.o `test -f 'src/dialogs/ProgressDialog.c' || echo '$(srcdir)/'`src/dialogs/ProgressDialog.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-ProgressDialog.Tpo src/dialogs/$(DEPDIR)/shotwell-ProgressDialog.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/ProgressDialog.c' object='src/dialogs/shotwell-ProgressDialog.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-ProgressDialog.o `test -f 'src/dialogs/ProgressDialog.c' || echo '$(srcdir)/'`src/dialogs/ProgressDialog.c - -src/dialogs/shotwell-ProgressDialog.obj: src/dialogs/ProgressDialog.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-ProgressDialog.obj -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-ProgressDialog.Tpo -c -o src/dialogs/shotwell-ProgressDialog.obj `if test -f 'src/dialogs/ProgressDialog.c'; then $(CYGPATH_W) 'src/dialogs/ProgressDialog.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/ProgressDialog.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-ProgressDialog.Tpo src/dialogs/$(DEPDIR)/shotwell-ProgressDialog.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/ProgressDialog.c' object='src/dialogs/shotwell-ProgressDialog.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-ProgressDialog.obj `if test -f 'src/dialogs/ProgressDialog.c'; then $(CYGPATH_W) 'src/dialogs/ProgressDialog.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/ProgressDialog.c'; fi` - -src/dialogs/shotwell-SetBackgroundSlideshow.o: src/dialogs/SetBackgroundSlideshow.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-SetBackgroundSlideshow.o -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-SetBackgroundSlideshow.Tpo -c -o src/dialogs/shotwell-SetBackgroundSlideshow.o `test -f 'src/dialogs/SetBackgroundSlideshow.c' || echo '$(srcdir)/'`src/dialogs/SetBackgroundSlideshow.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-SetBackgroundSlideshow.Tpo src/dialogs/$(DEPDIR)/shotwell-SetBackgroundSlideshow.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/SetBackgroundSlideshow.c' object='src/dialogs/shotwell-SetBackgroundSlideshow.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-SetBackgroundSlideshow.o `test -f 'src/dialogs/SetBackgroundSlideshow.c' || echo '$(srcdir)/'`src/dialogs/SetBackgroundSlideshow.c - -src/dialogs/shotwell-SetBackgroundSlideshow.obj: src/dialogs/SetBackgroundSlideshow.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/dialogs/shotwell-SetBackgroundSlideshow.obj -MD -MP -MF src/dialogs/$(DEPDIR)/shotwell-SetBackgroundSlideshow.Tpo -c -o src/dialogs/shotwell-SetBackgroundSlideshow.obj `if test -f 'src/dialogs/SetBackgroundSlideshow.c'; then $(CYGPATH_W) 'src/dialogs/SetBackgroundSlideshow.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/SetBackgroundSlideshow.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/dialogs/$(DEPDIR)/shotwell-SetBackgroundSlideshow.Tpo src/dialogs/$(DEPDIR)/shotwell-SetBackgroundSlideshow.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/dialogs/SetBackgroundSlideshow.c' object='src/dialogs/shotwell-SetBackgroundSlideshow.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/dialogs/shotwell-SetBackgroundSlideshow.obj `if test -f 'src/dialogs/SetBackgroundSlideshow.c'; then $(CYGPATH_W) 'src/dialogs/SetBackgroundSlideshow.c'; else $(CYGPATH_W) '$(srcdir)/src/dialogs/SetBackgroundSlideshow.c'; fi` - -src/editing_tools/shotwell-EditingTools.o: src/editing_tools/EditingTools.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/editing_tools/shotwell-EditingTools.o -MD -MP -MF src/editing_tools/$(DEPDIR)/shotwell-EditingTools.Tpo -c -o src/editing_tools/shotwell-EditingTools.o `test -f 'src/editing_tools/EditingTools.c' || echo '$(srcdir)/'`src/editing_tools/EditingTools.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/editing_tools/$(DEPDIR)/shotwell-EditingTools.Tpo src/editing_tools/$(DEPDIR)/shotwell-EditingTools.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/editing_tools/EditingTools.c' object='src/editing_tools/shotwell-EditingTools.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/editing_tools/shotwell-EditingTools.o `test -f 'src/editing_tools/EditingTools.c' || echo '$(srcdir)/'`src/editing_tools/EditingTools.c - -src/editing_tools/shotwell-EditingTools.obj: src/editing_tools/EditingTools.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/editing_tools/shotwell-EditingTools.obj -MD -MP -MF src/editing_tools/$(DEPDIR)/shotwell-EditingTools.Tpo -c -o src/editing_tools/shotwell-EditingTools.obj `if test -f 'src/editing_tools/EditingTools.c'; then $(CYGPATH_W) 'src/editing_tools/EditingTools.c'; else $(CYGPATH_W) '$(srcdir)/src/editing_tools/EditingTools.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/editing_tools/$(DEPDIR)/shotwell-EditingTools.Tpo src/editing_tools/$(DEPDIR)/shotwell-EditingTools.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/editing_tools/EditingTools.c' object='src/editing_tools/shotwell-EditingTools.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/editing_tools/shotwell-EditingTools.obj `if test -f 'src/editing_tools/EditingTools.c'; then $(CYGPATH_W) 'src/editing_tools/EditingTools.c'; else $(CYGPATH_W) '$(srcdir)/src/editing_tools/EditingTools.c'; fi` - -src/editing_tools/shotwell-RGBHistogramManipulator.o: src/editing_tools/RGBHistogramManipulator.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/editing_tools/shotwell-RGBHistogramManipulator.o -MD -MP -MF src/editing_tools/$(DEPDIR)/shotwell-RGBHistogramManipulator.Tpo -c -o src/editing_tools/shotwell-RGBHistogramManipulator.o `test -f 'src/editing_tools/RGBHistogramManipulator.c' || echo '$(srcdir)/'`src/editing_tools/RGBHistogramManipulator.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/editing_tools/$(DEPDIR)/shotwell-RGBHistogramManipulator.Tpo src/editing_tools/$(DEPDIR)/shotwell-RGBHistogramManipulator.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/editing_tools/RGBHistogramManipulator.c' object='src/editing_tools/shotwell-RGBHistogramManipulator.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/editing_tools/shotwell-RGBHistogramManipulator.o `test -f 'src/editing_tools/RGBHistogramManipulator.c' || echo '$(srcdir)/'`src/editing_tools/RGBHistogramManipulator.c - -src/editing_tools/shotwell-RGBHistogramManipulator.obj: src/editing_tools/RGBHistogramManipulator.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/editing_tools/shotwell-RGBHistogramManipulator.obj -MD -MP -MF src/editing_tools/$(DEPDIR)/shotwell-RGBHistogramManipulator.Tpo -c -o src/editing_tools/shotwell-RGBHistogramManipulator.obj `if test -f 'src/editing_tools/RGBHistogramManipulator.c'; then $(CYGPATH_W) 'src/editing_tools/RGBHistogramManipulator.c'; else $(CYGPATH_W) '$(srcdir)/src/editing_tools/RGBHistogramManipulator.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/editing_tools/$(DEPDIR)/shotwell-RGBHistogramManipulator.Tpo src/editing_tools/$(DEPDIR)/shotwell-RGBHistogramManipulator.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/editing_tools/RGBHistogramManipulator.c' object='src/editing_tools/shotwell-RGBHistogramManipulator.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/editing_tools/shotwell-RGBHistogramManipulator.obj `if test -f 'src/editing_tools/RGBHistogramManipulator.c'; then $(CYGPATH_W) 'src/editing_tools/RGBHistogramManipulator.c'; else $(CYGPATH_W) '$(srcdir)/src/editing_tools/RGBHistogramManipulator.c'; fi` - -src/editing_tools/shotwell-StraightenTool.o: src/editing_tools/StraightenTool.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/editing_tools/shotwell-StraightenTool.o -MD -MP -MF src/editing_tools/$(DEPDIR)/shotwell-StraightenTool.Tpo -c -o src/editing_tools/shotwell-StraightenTool.o `test -f 'src/editing_tools/StraightenTool.c' || echo '$(srcdir)/'`src/editing_tools/StraightenTool.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/editing_tools/$(DEPDIR)/shotwell-StraightenTool.Tpo src/editing_tools/$(DEPDIR)/shotwell-StraightenTool.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/editing_tools/StraightenTool.c' object='src/editing_tools/shotwell-StraightenTool.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/editing_tools/shotwell-StraightenTool.o `test -f 'src/editing_tools/StraightenTool.c' || echo '$(srcdir)/'`src/editing_tools/StraightenTool.c - -src/editing_tools/shotwell-StraightenTool.obj: src/editing_tools/StraightenTool.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/editing_tools/shotwell-StraightenTool.obj -MD -MP -MF src/editing_tools/$(DEPDIR)/shotwell-StraightenTool.Tpo -c -o src/editing_tools/shotwell-StraightenTool.obj `if test -f 'src/editing_tools/StraightenTool.c'; then $(CYGPATH_W) 'src/editing_tools/StraightenTool.c'; else $(CYGPATH_W) '$(srcdir)/src/editing_tools/StraightenTool.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/editing_tools/$(DEPDIR)/shotwell-StraightenTool.Tpo src/editing_tools/$(DEPDIR)/shotwell-StraightenTool.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/editing_tools/StraightenTool.c' object='src/editing_tools/shotwell-StraightenTool.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/editing_tools/shotwell-StraightenTool.obj `if test -f 'src/editing_tools/StraightenTool.c'; then $(CYGPATH_W) 'src/editing_tools/StraightenTool.c'; else $(CYGPATH_W) '$(srcdir)/src/editing_tools/StraightenTool.c'; fi` - -src/slideshow/shotwell-Slideshow.o: src/slideshow/Slideshow.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/slideshow/shotwell-Slideshow.o -MD -MP -MF src/slideshow/$(DEPDIR)/shotwell-Slideshow.Tpo -c -o src/slideshow/shotwell-Slideshow.o `test -f 'src/slideshow/Slideshow.c' || echo '$(srcdir)/'`src/slideshow/Slideshow.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/slideshow/$(DEPDIR)/shotwell-Slideshow.Tpo src/slideshow/$(DEPDIR)/shotwell-Slideshow.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/slideshow/Slideshow.c' object='src/slideshow/shotwell-Slideshow.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/slideshow/shotwell-Slideshow.o `test -f 'src/slideshow/Slideshow.c' || echo '$(srcdir)/'`src/slideshow/Slideshow.c - -src/slideshow/shotwell-Slideshow.obj: src/slideshow/Slideshow.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/slideshow/shotwell-Slideshow.obj -MD -MP -MF src/slideshow/$(DEPDIR)/shotwell-Slideshow.Tpo -c -o src/slideshow/shotwell-Slideshow.obj `if test -f 'src/slideshow/Slideshow.c'; then $(CYGPATH_W) 'src/slideshow/Slideshow.c'; else $(CYGPATH_W) '$(srcdir)/src/slideshow/Slideshow.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/slideshow/$(DEPDIR)/shotwell-Slideshow.Tpo src/slideshow/$(DEPDIR)/shotwell-Slideshow.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/slideshow/Slideshow.c' object='src/slideshow/shotwell-Slideshow.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/slideshow/shotwell-Slideshow.obj `if test -f 'src/slideshow/Slideshow.c'; then $(CYGPATH_W) 'src/slideshow/Slideshow.c'; else $(CYGPATH_W) '$(srcdir)/src/slideshow/Slideshow.c'; fi` - -src/slideshow/shotwell-TransitionEffects.o: src/slideshow/TransitionEffects.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/slideshow/shotwell-TransitionEffects.o -MD -MP -MF src/slideshow/$(DEPDIR)/shotwell-TransitionEffects.Tpo -c -o src/slideshow/shotwell-TransitionEffects.o `test -f 'src/slideshow/TransitionEffects.c' || echo '$(srcdir)/'`src/slideshow/TransitionEffects.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/slideshow/$(DEPDIR)/shotwell-TransitionEffects.Tpo src/slideshow/$(DEPDIR)/shotwell-TransitionEffects.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/slideshow/TransitionEffects.c' object='src/slideshow/shotwell-TransitionEffects.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/slideshow/shotwell-TransitionEffects.o `test -f 'src/slideshow/TransitionEffects.c' || echo '$(srcdir)/'`src/slideshow/TransitionEffects.c - -src/slideshow/shotwell-TransitionEffects.obj: src/slideshow/TransitionEffects.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/slideshow/shotwell-TransitionEffects.obj -MD -MP -MF src/slideshow/$(DEPDIR)/shotwell-TransitionEffects.Tpo -c -o src/slideshow/shotwell-TransitionEffects.obj `if test -f 'src/slideshow/TransitionEffects.c'; then $(CYGPATH_W) 'src/slideshow/TransitionEffects.c'; else $(CYGPATH_W) '$(srcdir)/src/slideshow/TransitionEffects.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/slideshow/$(DEPDIR)/shotwell-TransitionEffects.Tpo src/slideshow/$(DEPDIR)/shotwell-TransitionEffects.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/slideshow/TransitionEffects.c' object='src/slideshow/shotwell-TransitionEffects.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/slideshow/shotwell-TransitionEffects.obj `if test -f 'src/slideshow/TransitionEffects.c'; then $(CYGPATH_W) 'src/slideshow/TransitionEffects.c'; else $(CYGPATH_W) '$(srcdir)/src/slideshow/TransitionEffects.c'; fi` - -src/photos/shotwell-Photos.o: src/photos/Photos.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-Photos.o -MD -MP -MF src/photos/$(DEPDIR)/shotwell-Photos.Tpo -c -o src/photos/shotwell-Photos.o `test -f 'src/photos/Photos.c' || echo '$(srcdir)/'`src/photos/Photos.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-Photos.Tpo src/photos/$(DEPDIR)/shotwell-Photos.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/Photos.c' object='src/photos/shotwell-Photos.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-Photos.o `test -f 'src/photos/Photos.c' || echo '$(srcdir)/'`src/photos/Photos.c - -src/photos/shotwell-Photos.obj: src/photos/Photos.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-Photos.obj -MD -MP -MF src/photos/$(DEPDIR)/shotwell-Photos.Tpo -c -o src/photos/shotwell-Photos.obj `if test -f 'src/photos/Photos.c'; then $(CYGPATH_W) 'src/photos/Photos.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/Photos.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-Photos.Tpo src/photos/$(DEPDIR)/shotwell-Photos.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/Photos.c' object='src/photos/shotwell-Photos.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-Photos.obj `if test -f 'src/photos/Photos.c'; then $(CYGPATH_W) 'src/photos/Photos.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/Photos.c'; fi` - -src/photos/shotwell-PhotoFileAdapter.o: src/photos/PhotoFileAdapter.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-PhotoFileAdapter.o -MD -MP -MF src/photos/$(DEPDIR)/shotwell-PhotoFileAdapter.Tpo -c -o src/photos/shotwell-PhotoFileAdapter.o `test -f 'src/photos/PhotoFileAdapter.c' || echo '$(srcdir)/'`src/photos/PhotoFileAdapter.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-PhotoFileAdapter.Tpo src/photos/$(DEPDIR)/shotwell-PhotoFileAdapter.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/PhotoFileAdapter.c' object='src/photos/shotwell-PhotoFileAdapter.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-PhotoFileAdapter.o `test -f 'src/photos/PhotoFileAdapter.c' || echo '$(srcdir)/'`src/photos/PhotoFileAdapter.c - -src/photos/shotwell-PhotoFileAdapter.obj: src/photos/PhotoFileAdapter.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-PhotoFileAdapter.obj -MD -MP -MF src/photos/$(DEPDIR)/shotwell-PhotoFileAdapter.Tpo -c -o src/photos/shotwell-PhotoFileAdapter.obj `if test -f 'src/photos/PhotoFileAdapter.c'; then $(CYGPATH_W) 'src/photos/PhotoFileAdapter.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/PhotoFileAdapter.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-PhotoFileAdapter.Tpo src/photos/$(DEPDIR)/shotwell-PhotoFileAdapter.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/PhotoFileAdapter.c' object='src/photos/shotwell-PhotoFileAdapter.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-PhotoFileAdapter.obj `if test -f 'src/photos/PhotoFileAdapter.c'; then $(CYGPATH_W) 'src/photos/PhotoFileAdapter.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/PhotoFileAdapter.c'; fi` - -src/photos/shotwell-PhotoFileFormat.o: src/photos/PhotoFileFormat.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-PhotoFileFormat.o -MD -MP -MF src/photos/$(DEPDIR)/shotwell-PhotoFileFormat.Tpo -c -o src/photos/shotwell-PhotoFileFormat.o `test -f 'src/photos/PhotoFileFormat.c' || echo '$(srcdir)/'`src/photos/PhotoFileFormat.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-PhotoFileFormat.Tpo src/photos/$(DEPDIR)/shotwell-PhotoFileFormat.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/PhotoFileFormat.c' object='src/photos/shotwell-PhotoFileFormat.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-PhotoFileFormat.o `test -f 'src/photos/PhotoFileFormat.c' || echo '$(srcdir)/'`src/photos/PhotoFileFormat.c - -src/photos/shotwell-PhotoFileFormat.obj: src/photos/PhotoFileFormat.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-PhotoFileFormat.obj -MD -MP -MF src/photos/$(DEPDIR)/shotwell-PhotoFileFormat.Tpo -c -o src/photos/shotwell-PhotoFileFormat.obj `if test -f 'src/photos/PhotoFileFormat.c'; then $(CYGPATH_W) 'src/photos/PhotoFileFormat.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/PhotoFileFormat.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-PhotoFileFormat.Tpo src/photos/$(DEPDIR)/shotwell-PhotoFileFormat.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/PhotoFileFormat.c' object='src/photos/shotwell-PhotoFileFormat.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-PhotoFileFormat.obj `if test -f 'src/photos/PhotoFileFormat.c'; then $(CYGPATH_W) 'src/photos/PhotoFileFormat.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/PhotoFileFormat.c'; fi` - -src/photos/shotwell-PhotoFileSniffer.o: src/photos/PhotoFileSniffer.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-PhotoFileSniffer.o -MD -MP -MF src/photos/$(DEPDIR)/shotwell-PhotoFileSniffer.Tpo -c -o src/photos/shotwell-PhotoFileSniffer.o `test -f 'src/photos/PhotoFileSniffer.c' || echo '$(srcdir)/'`src/photos/PhotoFileSniffer.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-PhotoFileSniffer.Tpo src/photos/$(DEPDIR)/shotwell-PhotoFileSniffer.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/PhotoFileSniffer.c' object='src/photos/shotwell-PhotoFileSniffer.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-PhotoFileSniffer.o `test -f 'src/photos/PhotoFileSniffer.c' || echo '$(srcdir)/'`src/photos/PhotoFileSniffer.c - -src/photos/shotwell-PhotoFileSniffer.obj: src/photos/PhotoFileSniffer.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-PhotoFileSniffer.obj -MD -MP -MF src/photos/$(DEPDIR)/shotwell-PhotoFileSniffer.Tpo -c -o src/photos/shotwell-PhotoFileSniffer.obj `if test -f 'src/photos/PhotoFileSniffer.c'; then $(CYGPATH_W) 'src/photos/PhotoFileSniffer.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/PhotoFileSniffer.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-PhotoFileSniffer.Tpo src/photos/$(DEPDIR)/shotwell-PhotoFileSniffer.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/PhotoFileSniffer.c' object='src/photos/shotwell-PhotoFileSniffer.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-PhotoFileSniffer.obj `if test -f 'src/photos/PhotoFileSniffer.c'; then $(CYGPATH_W) 'src/photos/PhotoFileSniffer.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/PhotoFileSniffer.c'; fi` - -src/photos/shotwell-PhotoMetadata.o: src/photos/PhotoMetadata.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-PhotoMetadata.o -MD -MP -MF src/photos/$(DEPDIR)/shotwell-PhotoMetadata.Tpo -c -o src/photos/shotwell-PhotoMetadata.o `test -f 'src/photos/PhotoMetadata.c' || echo '$(srcdir)/'`src/photos/PhotoMetadata.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-PhotoMetadata.Tpo src/photos/$(DEPDIR)/shotwell-PhotoMetadata.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/PhotoMetadata.c' object='src/photos/shotwell-PhotoMetadata.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-PhotoMetadata.o `test -f 'src/photos/PhotoMetadata.c' || echo '$(srcdir)/'`src/photos/PhotoMetadata.c - -src/photos/shotwell-PhotoMetadata.obj: src/photos/PhotoMetadata.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-PhotoMetadata.obj -MD -MP -MF src/photos/$(DEPDIR)/shotwell-PhotoMetadata.Tpo -c -o src/photos/shotwell-PhotoMetadata.obj `if test -f 'src/photos/PhotoMetadata.c'; then $(CYGPATH_W) 'src/photos/PhotoMetadata.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/PhotoMetadata.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-PhotoMetadata.Tpo src/photos/$(DEPDIR)/shotwell-PhotoMetadata.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/PhotoMetadata.c' object='src/photos/shotwell-PhotoMetadata.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-PhotoMetadata.obj `if test -f 'src/photos/PhotoMetadata.c'; then $(CYGPATH_W) 'src/photos/PhotoMetadata.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/PhotoMetadata.c'; fi` - -src/photos/shotwell-GRaw.o: src/photos/GRaw.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-GRaw.o -MD -MP -MF src/photos/$(DEPDIR)/shotwell-GRaw.Tpo -c -o src/photos/shotwell-GRaw.o `test -f 'src/photos/GRaw.c' || echo '$(srcdir)/'`src/photos/GRaw.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-GRaw.Tpo src/photos/$(DEPDIR)/shotwell-GRaw.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/GRaw.c' object='src/photos/shotwell-GRaw.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-GRaw.o `test -f 'src/photos/GRaw.c' || echo '$(srcdir)/'`src/photos/GRaw.c - -src/photos/shotwell-GRaw.obj: src/photos/GRaw.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-GRaw.obj -MD -MP -MF src/photos/$(DEPDIR)/shotwell-GRaw.Tpo -c -o src/photos/shotwell-GRaw.obj `if test -f 'src/photos/GRaw.c'; then $(CYGPATH_W) 'src/photos/GRaw.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/GRaw.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-GRaw.Tpo src/photos/$(DEPDIR)/shotwell-GRaw.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/GRaw.c' object='src/photos/shotwell-GRaw.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-GRaw.obj `if test -f 'src/photos/GRaw.c'; then $(CYGPATH_W) 'src/photos/GRaw.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/GRaw.c'; fi` - -src/photos/shotwell-GdkSupport.o: src/photos/GdkSupport.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-GdkSupport.o -MD -MP -MF src/photos/$(DEPDIR)/shotwell-GdkSupport.Tpo -c -o src/photos/shotwell-GdkSupport.o `test -f 'src/photos/GdkSupport.c' || echo '$(srcdir)/'`src/photos/GdkSupport.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-GdkSupport.Tpo src/photos/$(DEPDIR)/shotwell-GdkSupport.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/GdkSupport.c' object='src/photos/shotwell-GdkSupport.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-GdkSupport.o `test -f 'src/photos/GdkSupport.c' || echo '$(srcdir)/'`src/photos/GdkSupport.c - -src/photos/shotwell-GdkSupport.obj: src/photos/GdkSupport.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-GdkSupport.obj -MD -MP -MF src/photos/$(DEPDIR)/shotwell-GdkSupport.Tpo -c -o src/photos/shotwell-GdkSupport.obj `if test -f 'src/photos/GdkSupport.c'; then $(CYGPATH_W) 'src/photos/GdkSupport.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/GdkSupport.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-GdkSupport.Tpo src/photos/$(DEPDIR)/shotwell-GdkSupport.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/GdkSupport.c' object='src/photos/shotwell-GdkSupport.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-GdkSupport.obj `if test -f 'src/photos/GdkSupport.c'; then $(CYGPATH_W) 'src/photos/GdkSupport.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/GdkSupport.c'; fi` - -src/photos/shotwell-JfifSupport.o: src/photos/JfifSupport.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-JfifSupport.o -MD -MP -MF src/photos/$(DEPDIR)/shotwell-JfifSupport.Tpo -c -o src/photos/shotwell-JfifSupport.o `test -f 'src/photos/JfifSupport.c' || echo '$(srcdir)/'`src/photos/JfifSupport.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-JfifSupport.Tpo src/photos/$(DEPDIR)/shotwell-JfifSupport.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/JfifSupport.c' object='src/photos/shotwell-JfifSupport.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-JfifSupport.o `test -f 'src/photos/JfifSupport.c' || echo '$(srcdir)/'`src/photos/JfifSupport.c - -src/photos/shotwell-JfifSupport.obj: src/photos/JfifSupport.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-JfifSupport.obj -MD -MP -MF src/photos/$(DEPDIR)/shotwell-JfifSupport.Tpo -c -o src/photos/shotwell-JfifSupport.obj `if test -f 'src/photos/JfifSupport.c'; then $(CYGPATH_W) 'src/photos/JfifSupport.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/JfifSupport.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-JfifSupport.Tpo src/photos/$(DEPDIR)/shotwell-JfifSupport.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/JfifSupport.c' object='src/photos/shotwell-JfifSupport.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-JfifSupport.obj `if test -f 'src/photos/JfifSupport.c'; then $(CYGPATH_W) 'src/photos/JfifSupport.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/JfifSupport.c'; fi` - -src/photos/shotwell-BmpSupport.o: src/photos/BmpSupport.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-BmpSupport.o -MD -MP -MF src/photos/$(DEPDIR)/shotwell-BmpSupport.Tpo -c -o src/photos/shotwell-BmpSupport.o `test -f 'src/photos/BmpSupport.c' || echo '$(srcdir)/'`src/photos/BmpSupport.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-BmpSupport.Tpo src/photos/$(DEPDIR)/shotwell-BmpSupport.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/BmpSupport.c' object='src/photos/shotwell-BmpSupport.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-BmpSupport.o `test -f 'src/photos/BmpSupport.c' || echo '$(srcdir)/'`src/photos/BmpSupport.c - -src/photos/shotwell-BmpSupport.obj: src/photos/BmpSupport.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-BmpSupport.obj -MD -MP -MF src/photos/$(DEPDIR)/shotwell-BmpSupport.Tpo -c -o src/photos/shotwell-BmpSupport.obj `if test -f 'src/photos/BmpSupport.c'; then $(CYGPATH_W) 'src/photos/BmpSupport.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/BmpSupport.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-BmpSupport.Tpo src/photos/$(DEPDIR)/shotwell-BmpSupport.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/BmpSupport.c' object='src/photos/shotwell-BmpSupport.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-BmpSupport.obj `if test -f 'src/photos/BmpSupport.c'; then $(CYGPATH_W) 'src/photos/BmpSupport.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/BmpSupport.c'; fi` - -src/photos/shotwell-RawSupport.o: src/photos/RawSupport.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-RawSupport.o -MD -MP -MF src/photos/$(DEPDIR)/shotwell-RawSupport.Tpo -c -o src/photos/shotwell-RawSupport.o `test -f 'src/photos/RawSupport.c' || echo '$(srcdir)/'`src/photos/RawSupport.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-RawSupport.Tpo src/photos/$(DEPDIR)/shotwell-RawSupport.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/RawSupport.c' object='src/photos/shotwell-RawSupport.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-RawSupport.o `test -f 'src/photos/RawSupport.c' || echo '$(srcdir)/'`src/photos/RawSupport.c - -src/photos/shotwell-RawSupport.obj: src/photos/RawSupport.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-RawSupport.obj -MD -MP -MF src/photos/$(DEPDIR)/shotwell-RawSupport.Tpo -c -o src/photos/shotwell-RawSupport.obj `if test -f 'src/photos/RawSupport.c'; then $(CYGPATH_W) 'src/photos/RawSupport.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/RawSupport.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-RawSupport.Tpo src/photos/$(DEPDIR)/shotwell-RawSupport.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/RawSupport.c' object='src/photos/shotwell-RawSupport.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-RawSupport.obj `if test -f 'src/photos/RawSupport.c'; then $(CYGPATH_W) 'src/photos/RawSupport.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/RawSupport.c'; fi` - -src/photos/shotwell-PngSupport.o: src/photos/PngSupport.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-PngSupport.o -MD -MP -MF src/photos/$(DEPDIR)/shotwell-PngSupport.Tpo -c -o src/photos/shotwell-PngSupport.o `test -f 'src/photos/PngSupport.c' || echo '$(srcdir)/'`src/photos/PngSupport.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-PngSupport.Tpo src/photos/$(DEPDIR)/shotwell-PngSupport.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/PngSupport.c' object='src/photos/shotwell-PngSupport.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-PngSupport.o `test -f 'src/photos/PngSupport.c' || echo '$(srcdir)/'`src/photos/PngSupport.c - -src/photos/shotwell-PngSupport.obj: src/photos/PngSupport.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-PngSupport.obj -MD -MP -MF src/photos/$(DEPDIR)/shotwell-PngSupport.Tpo -c -o src/photos/shotwell-PngSupport.obj `if test -f 'src/photos/PngSupport.c'; then $(CYGPATH_W) 'src/photos/PngSupport.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/PngSupport.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-PngSupport.Tpo src/photos/$(DEPDIR)/shotwell-PngSupport.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/PngSupport.c' object='src/photos/shotwell-PngSupport.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-PngSupport.obj `if test -f 'src/photos/PngSupport.c'; then $(CYGPATH_W) 'src/photos/PngSupport.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/PngSupport.c'; fi` - -src/photos/shotwell-TiffSupport.o: src/photos/TiffSupport.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-TiffSupport.o -MD -MP -MF src/photos/$(DEPDIR)/shotwell-TiffSupport.Tpo -c -o src/photos/shotwell-TiffSupport.o `test -f 'src/photos/TiffSupport.c' || echo '$(srcdir)/'`src/photos/TiffSupport.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-TiffSupport.Tpo src/photos/$(DEPDIR)/shotwell-TiffSupport.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/TiffSupport.c' object='src/photos/shotwell-TiffSupport.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-TiffSupport.o `test -f 'src/photos/TiffSupport.c' || echo '$(srcdir)/'`src/photos/TiffSupport.c - -src/photos/shotwell-TiffSupport.obj: src/photos/TiffSupport.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/photos/shotwell-TiffSupport.obj -MD -MP -MF src/photos/$(DEPDIR)/shotwell-TiffSupport.Tpo -c -o src/photos/shotwell-TiffSupport.obj `if test -f 'src/photos/TiffSupport.c'; then $(CYGPATH_W) 'src/photos/TiffSupport.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/TiffSupport.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/photos/$(DEPDIR)/shotwell-TiffSupport.Tpo src/photos/$(DEPDIR)/shotwell-TiffSupport.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/photos/TiffSupport.c' object='src/photos/shotwell-TiffSupport.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/photos/shotwell-TiffSupport.obj `if test -f 'src/photos/TiffSupport.c'; then $(CYGPATH_W) 'src/photos/TiffSupport.c'; else $(CYGPATH_W) '$(srcdir)/src/photos/TiffSupport.c'; fi` - -src/plugins/shotwell-Plugins.o: src/plugins/Plugins.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/plugins/shotwell-Plugins.o -MD -MP -MF src/plugins/$(DEPDIR)/shotwell-Plugins.Tpo -c -o src/plugins/shotwell-Plugins.o `test -f 'src/plugins/Plugins.c' || echo '$(srcdir)/'`src/plugins/Plugins.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/plugins/$(DEPDIR)/shotwell-Plugins.Tpo src/plugins/$(DEPDIR)/shotwell-Plugins.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/plugins/Plugins.c' object='src/plugins/shotwell-Plugins.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/plugins/shotwell-Plugins.o `test -f 'src/plugins/Plugins.c' || echo '$(srcdir)/'`src/plugins/Plugins.c - -src/plugins/shotwell-Plugins.obj: src/plugins/Plugins.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/plugins/shotwell-Plugins.obj -MD -MP -MF src/plugins/$(DEPDIR)/shotwell-Plugins.Tpo -c -o src/plugins/shotwell-Plugins.obj `if test -f 'src/plugins/Plugins.c'; then $(CYGPATH_W) 'src/plugins/Plugins.c'; else $(CYGPATH_W) '$(srcdir)/src/plugins/Plugins.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/plugins/$(DEPDIR)/shotwell-Plugins.Tpo src/plugins/$(DEPDIR)/shotwell-Plugins.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/plugins/Plugins.c' object='src/plugins/shotwell-Plugins.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/plugins/shotwell-Plugins.obj `if test -f 'src/plugins/Plugins.c'; then $(CYGPATH_W) 'src/plugins/Plugins.c'; else $(CYGPATH_W) '$(srcdir)/src/plugins/Plugins.c'; fi` - -src/plugins/shotwell-StandardHostInterface.o: src/plugins/StandardHostInterface.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/plugins/shotwell-StandardHostInterface.o -MD -MP -MF src/plugins/$(DEPDIR)/shotwell-StandardHostInterface.Tpo -c -o src/plugins/shotwell-StandardHostInterface.o `test -f 'src/plugins/StandardHostInterface.c' || echo '$(srcdir)/'`src/plugins/StandardHostInterface.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/plugins/$(DEPDIR)/shotwell-StandardHostInterface.Tpo src/plugins/$(DEPDIR)/shotwell-StandardHostInterface.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/plugins/StandardHostInterface.c' object='src/plugins/shotwell-StandardHostInterface.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/plugins/shotwell-StandardHostInterface.o `test -f 'src/plugins/StandardHostInterface.c' || echo '$(srcdir)/'`src/plugins/StandardHostInterface.c - -src/plugins/shotwell-StandardHostInterface.obj: src/plugins/StandardHostInterface.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/plugins/shotwell-StandardHostInterface.obj -MD -MP -MF src/plugins/$(DEPDIR)/shotwell-StandardHostInterface.Tpo -c -o src/plugins/shotwell-StandardHostInterface.obj `if test -f 'src/plugins/StandardHostInterface.c'; then $(CYGPATH_W) 'src/plugins/StandardHostInterface.c'; else $(CYGPATH_W) '$(srcdir)/src/plugins/StandardHostInterface.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/plugins/$(DEPDIR)/shotwell-StandardHostInterface.Tpo src/plugins/$(DEPDIR)/shotwell-StandardHostInterface.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/plugins/StandardHostInterface.c' object='src/plugins/shotwell-StandardHostInterface.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/plugins/shotwell-StandardHostInterface.obj `if test -f 'src/plugins/StandardHostInterface.c'; then $(CYGPATH_W) 'src/plugins/StandardHostInterface.c'; else $(CYGPATH_W) '$(srcdir)/src/plugins/StandardHostInterface.c'; fi` - -src/plugins/shotwell-ManifestWidget.o: src/plugins/ManifestWidget.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/plugins/shotwell-ManifestWidget.o -MD -MP -MF src/plugins/$(DEPDIR)/shotwell-ManifestWidget.Tpo -c -o src/plugins/shotwell-ManifestWidget.o `test -f 'src/plugins/ManifestWidget.c' || echo '$(srcdir)/'`src/plugins/ManifestWidget.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/plugins/$(DEPDIR)/shotwell-ManifestWidget.Tpo src/plugins/$(DEPDIR)/shotwell-ManifestWidget.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/plugins/ManifestWidget.c' object='src/plugins/shotwell-ManifestWidget.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/plugins/shotwell-ManifestWidget.o `test -f 'src/plugins/ManifestWidget.c' || echo '$(srcdir)/'`src/plugins/ManifestWidget.c - -src/plugins/shotwell-ManifestWidget.obj: src/plugins/ManifestWidget.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/plugins/shotwell-ManifestWidget.obj -MD -MP -MF src/plugins/$(DEPDIR)/shotwell-ManifestWidget.Tpo -c -o src/plugins/shotwell-ManifestWidget.obj `if test -f 'src/plugins/ManifestWidget.c'; then $(CYGPATH_W) 'src/plugins/ManifestWidget.c'; else $(CYGPATH_W) '$(srcdir)/src/plugins/ManifestWidget.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/plugins/$(DEPDIR)/shotwell-ManifestWidget.Tpo src/plugins/$(DEPDIR)/shotwell-ManifestWidget.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/plugins/ManifestWidget.c' object='src/plugins/shotwell-ManifestWidget.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/plugins/shotwell-ManifestWidget.obj `if test -f 'src/plugins/ManifestWidget.c'; then $(CYGPATH_W) 'src/plugins/ManifestWidget.c'; else $(CYGPATH_W) '$(srcdir)/src/plugins/ManifestWidget.c'; fi` - -src/publishing/shotwell-Publishing.o: src/publishing/Publishing.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/publishing/shotwell-Publishing.o -MD -MP -MF src/publishing/$(DEPDIR)/shotwell-Publishing.Tpo -c -o src/publishing/shotwell-Publishing.o `test -f 'src/publishing/Publishing.c' || echo '$(srcdir)/'`src/publishing/Publishing.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/publishing/$(DEPDIR)/shotwell-Publishing.Tpo src/publishing/$(DEPDIR)/shotwell-Publishing.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/publishing/Publishing.c' object='src/publishing/shotwell-Publishing.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/publishing/shotwell-Publishing.o `test -f 'src/publishing/Publishing.c' || echo '$(srcdir)/'`src/publishing/Publishing.c - -src/publishing/shotwell-Publishing.obj: src/publishing/Publishing.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/publishing/shotwell-Publishing.obj -MD -MP -MF src/publishing/$(DEPDIR)/shotwell-Publishing.Tpo -c -o src/publishing/shotwell-Publishing.obj `if test -f 'src/publishing/Publishing.c'; then $(CYGPATH_W) 'src/publishing/Publishing.c'; else $(CYGPATH_W) '$(srcdir)/src/publishing/Publishing.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/publishing/$(DEPDIR)/shotwell-Publishing.Tpo src/publishing/$(DEPDIR)/shotwell-Publishing.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/publishing/Publishing.c' object='src/publishing/shotwell-Publishing.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/publishing/shotwell-Publishing.obj `if test -f 'src/publishing/Publishing.c'; then $(CYGPATH_W) 'src/publishing/Publishing.c'; else $(CYGPATH_W) '$(srcdir)/src/publishing/Publishing.c'; fi` - -src/publishing/shotwell-PublishingUI.o: src/publishing/PublishingUI.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/publishing/shotwell-PublishingUI.o -MD -MP -MF src/publishing/$(DEPDIR)/shotwell-PublishingUI.Tpo -c -o src/publishing/shotwell-PublishingUI.o `test -f 'src/publishing/PublishingUI.c' || echo '$(srcdir)/'`src/publishing/PublishingUI.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/publishing/$(DEPDIR)/shotwell-PublishingUI.Tpo src/publishing/$(DEPDIR)/shotwell-PublishingUI.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/publishing/PublishingUI.c' object='src/publishing/shotwell-PublishingUI.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/publishing/shotwell-PublishingUI.o `test -f 'src/publishing/PublishingUI.c' || echo '$(srcdir)/'`src/publishing/PublishingUI.c - -src/publishing/shotwell-PublishingUI.obj: src/publishing/PublishingUI.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/publishing/shotwell-PublishingUI.obj -MD -MP -MF src/publishing/$(DEPDIR)/shotwell-PublishingUI.Tpo -c -o src/publishing/shotwell-PublishingUI.obj `if test -f 'src/publishing/PublishingUI.c'; then $(CYGPATH_W) 'src/publishing/PublishingUI.c'; else $(CYGPATH_W) '$(srcdir)/src/publishing/PublishingUI.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/publishing/$(DEPDIR)/shotwell-PublishingUI.Tpo src/publishing/$(DEPDIR)/shotwell-PublishingUI.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/publishing/PublishingUI.c' object='src/publishing/shotwell-PublishingUI.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/publishing/shotwell-PublishingUI.obj `if test -f 'src/publishing/PublishingUI.c'; then $(CYGPATH_W) 'src/publishing/PublishingUI.c'; else $(CYGPATH_W) '$(srcdir)/src/publishing/PublishingUI.c'; fi` - -src/publishing/shotwell-PublishingPluginHost.o: src/publishing/PublishingPluginHost.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/publishing/shotwell-PublishingPluginHost.o -MD -MP -MF src/publishing/$(DEPDIR)/shotwell-PublishingPluginHost.Tpo -c -o src/publishing/shotwell-PublishingPluginHost.o `test -f 'src/publishing/PublishingPluginHost.c' || echo '$(srcdir)/'`src/publishing/PublishingPluginHost.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/publishing/$(DEPDIR)/shotwell-PublishingPluginHost.Tpo src/publishing/$(DEPDIR)/shotwell-PublishingPluginHost.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/publishing/PublishingPluginHost.c' object='src/publishing/shotwell-PublishingPluginHost.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/publishing/shotwell-PublishingPluginHost.o `test -f 'src/publishing/PublishingPluginHost.c' || echo '$(srcdir)/'`src/publishing/PublishingPluginHost.c - -src/publishing/shotwell-PublishingPluginHost.obj: src/publishing/PublishingPluginHost.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/publishing/shotwell-PublishingPluginHost.obj -MD -MP -MF src/publishing/$(DEPDIR)/shotwell-PublishingPluginHost.Tpo -c -o src/publishing/shotwell-PublishingPluginHost.obj `if test -f 'src/publishing/PublishingPluginHost.c'; then $(CYGPATH_W) 'src/publishing/PublishingPluginHost.c'; else $(CYGPATH_W) '$(srcdir)/src/publishing/PublishingPluginHost.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/publishing/$(DEPDIR)/shotwell-PublishingPluginHost.Tpo src/publishing/$(DEPDIR)/shotwell-PublishingPluginHost.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/publishing/PublishingPluginHost.c' object='src/publishing/shotwell-PublishingPluginHost.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/publishing/shotwell-PublishingPluginHost.obj `if test -f 'src/publishing/PublishingPluginHost.c'; then $(CYGPATH_W) 'src/publishing/PublishingPluginHost.c'; else $(CYGPATH_W) '$(srcdir)/src/publishing/PublishingPluginHost.c'; fi` - -src/publishing/shotwell-APIGlue.o: src/publishing/APIGlue.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/publishing/shotwell-APIGlue.o -MD -MP -MF src/publishing/$(DEPDIR)/shotwell-APIGlue.Tpo -c -o src/publishing/shotwell-APIGlue.o `test -f 'src/publishing/APIGlue.c' || echo '$(srcdir)/'`src/publishing/APIGlue.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/publishing/$(DEPDIR)/shotwell-APIGlue.Tpo src/publishing/$(DEPDIR)/shotwell-APIGlue.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/publishing/APIGlue.c' object='src/publishing/shotwell-APIGlue.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/publishing/shotwell-APIGlue.o `test -f 'src/publishing/APIGlue.c' || echo '$(srcdir)/'`src/publishing/APIGlue.c - -src/publishing/shotwell-APIGlue.obj: src/publishing/APIGlue.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/publishing/shotwell-APIGlue.obj -MD -MP -MF src/publishing/$(DEPDIR)/shotwell-APIGlue.Tpo -c -o src/publishing/shotwell-APIGlue.obj `if test -f 'src/publishing/APIGlue.c'; then $(CYGPATH_W) 'src/publishing/APIGlue.c'; else $(CYGPATH_W) '$(srcdir)/src/publishing/APIGlue.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/publishing/$(DEPDIR)/shotwell-APIGlue.Tpo src/publishing/$(DEPDIR)/shotwell-APIGlue.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/publishing/APIGlue.c' object='src/publishing/shotwell-APIGlue.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/publishing/shotwell-APIGlue.obj `if test -f 'src/publishing/APIGlue.c'; then $(CYGPATH_W) 'src/publishing/APIGlue.c'; else $(CYGPATH_W) '$(srcdir)/src/publishing/APIGlue.c'; fi` - -src/library/shotwell-Library.o: src/library/Library.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-Library.o -MD -MP -MF src/library/$(DEPDIR)/shotwell-Library.Tpo -c -o src/library/shotwell-Library.o `test -f 'src/library/Library.c' || echo '$(srcdir)/'`src/library/Library.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-Library.Tpo src/library/$(DEPDIR)/shotwell-Library.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/Library.c' object='src/library/shotwell-Library.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-Library.o `test -f 'src/library/Library.c' || echo '$(srcdir)/'`src/library/Library.c - -src/library/shotwell-Library.obj: src/library/Library.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-Library.obj -MD -MP -MF src/library/$(DEPDIR)/shotwell-Library.Tpo -c -o src/library/shotwell-Library.obj `if test -f 'src/library/Library.c'; then $(CYGPATH_W) 'src/library/Library.c'; else $(CYGPATH_W) '$(srcdir)/src/library/Library.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-Library.Tpo src/library/$(DEPDIR)/shotwell-Library.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/Library.c' object='src/library/shotwell-Library.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-Library.obj `if test -f 'src/library/Library.c'; then $(CYGPATH_W) 'src/library/Library.c'; else $(CYGPATH_W) '$(srcdir)/src/library/Library.c'; fi` - -src/library/shotwell-LibraryWindow.o: src/library/LibraryWindow.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-LibraryWindow.o -MD -MP -MF src/library/$(DEPDIR)/shotwell-LibraryWindow.Tpo -c -o src/library/shotwell-LibraryWindow.o `test -f 'src/library/LibraryWindow.c' || echo '$(srcdir)/'`src/library/LibraryWindow.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-LibraryWindow.Tpo src/library/$(DEPDIR)/shotwell-LibraryWindow.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/LibraryWindow.c' object='src/library/shotwell-LibraryWindow.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-LibraryWindow.o `test -f 'src/library/LibraryWindow.c' || echo '$(srcdir)/'`src/library/LibraryWindow.c - -src/library/shotwell-LibraryWindow.obj: src/library/LibraryWindow.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-LibraryWindow.obj -MD -MP -MF src/library/$(DEPDIR)/shotwell-LibraryWindow.Tpo -c -o src/library/shotwell-LibraryWindow.obj `if test -f 'src/library/LibraryWindow.c'; then $(CYGPATH_W) 'src/library/LibraryWindow.c'; else $(CYGPATH_W) '$(srcdir)/src/library/LibraryWindow.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-LibraryWindow.Tpo src/library/$(DEPDIR)/shotwell-LibraryWindow.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/LibraryWindow.c' object='src/library/shotwell-LibraryWindow.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-LibraryWindow.obj `if test -f 'src/library/LibraryWindow.c'; then $(CYGPATH_W) 'src/library/LibraryWindow.c'; else $(CYGPATH_W) '$(srcdir)/src/library/LibraryWindow.c'; fi` - -src/library/shotwell-LibraryBranch.o: src/library/LibraryBranch.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-LibraryBranch.o -MD -MP -MF src/library/$(DEPDIR)/shotwell-LibraryBranch.Tpo -c -o src/library/shotwell-LibraryBranch.o `test -f 'src/library/LibraryBranch.c' || echo '$(srcdir)/'`src/library/LibraryBranch.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-LibraryBranch.Tpo src/library/$(DEPDIR)/shotwell-LibraryBranch.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/LibraryBranch.c' object='src/library/shotwell-LibraryBranch.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-LibraryBranch.o `test -f 'src/library/LibraryBranch.c' || echo '$(srcdir)/'`src/library/LibraryBranch.c - -src/library/shotwell-LibraryBranch.obj: src/library/LibraryBranch.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-LibraryBranch.obj -MD -MP -MF src/library/$(DEPDIR)/shotwell-LibraryBranch.Tpo -c -o src/library/shotwell-LibraryBranch.obj `if test -f 'src/library/LibraryBranch.c'; then $(CYGPATH_W) 'src/library/LibraryBranch.c'; else $(CYGPATH_W) '$(srcdir)/src/library/LibraryBranch.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-LibraryBranch.Tpo src/library/$(DEPDIR)/shotwell-LibraryBranch.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/LibraryBranch.c' object='src/library/shotwell-LibraryBranch.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-LibraryBranch.obj `if test -f 'src/library/LibraryBranch.c'; then $(CYGPATH_W) 'src/library/LibraryBranch.c'; else $(CYGPATH_W) '$(srcdir)/src/library/LibraryBranch.c'; fi` - -src/library/shotwell-TrashSidebarEntry.o: src/library/TrashSidebarEntry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-TrashSidebarEntry.o -MD -MP -MF src/library/$(DEPDIR)/shotwell-TrashSidebarEntry.Tpo -c -o src/library/shotwell-TrashSidebarEntry.o `test -f 'src/library/TrashSidebarEntry.c' || echo '$(srcdir)/'`src/library/TrashSidebarEntry.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-TrashSidebarEntry.Tpo src/library/$(DEPDIR)/shotwell-TrashSidebarEntry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/TrashSidebarEntry.c' object='src/library/shotwell-TrashSidebarEntry.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-TrashSidebarEntry.o `test -f 'src/library/TrashSidebarEntry.c' || echo '$(srcdir)/'`src/library/TrashSidebarEntry.c - -src/library/shotwell-TrashSidebarEntry.obj: src/library/TrashSidebarEntry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-TrashSidebarEntry.obj -MD -MP -MF src/library/$(DEPDIR)/shotwell-TrashSidebarEntry.Tpo -c -o src/library/shotwell-TrashSidebarEntry.obj `if test -f 'src/library/TrashSidebarEntry.c'; then $(CYGPATH_W) 'src/library/TrashSidebarEntry.c'; else $(CYGPATH_W) '$(srcdir)/src/library/TrashSidebarEntry.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-TrashSidebarEntry.Tpo src/library/$(DEPDIR)/shotwell-TrashSidebarEntry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/TrashSidebarEntry.c' object='src/library/shotwell-TrashSidebarEntry.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-TrashSidebarEntry.obj `if test -f 'src/library/TrashSidebarEntry.c'; then $(CYGPATH_W) 'src/library/TrashSidebarEntry.c'; else $(CYGPATH_W) '$(srcdir)/src/library/TrashSidebarEntry.c'; fi` - -src/library/shotwell-OfflineSidebarEntry.o: src/library/OfflineSidebarEntry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-OfflineSidebarEntry.o -MD -MP -MF src/library/$(DEPDIR)/shotwell-OfflineSidebarEntry.Tpo -c -o src/library/shotwell-OfflineSidebarEntry.o `test -f 'src/library/OfflineSidebarEntry.c' || echo '$(srcdir)/'`src/library/OfflineSidebarEntry.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-OfflineSidebarEntry.Tpo src/library/$(DEPDIR)/shotwell-OfflineSidebarEntry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/OfflineSidebarEntry.c' object='src/library/shotwell-OfflineSidebarEntry.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-OfflineSidebarEntry.o `test -f 'src/library/OfflineSidebarEntry.c' || echo '$(srcdir)/'`src/library/OfflineSidebarEntry.c - -src/library/shotwell-OfflineSidebarEntry.obj: src/library/OfflineSidebarEntry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-OfflineSidebarEntry.obj -MD -MP -MF src/library/$(DEPDIR)/shotwell-OfflineSidebarEntry.Tpo -c -o src/library/shotwell-OfflineSidebarEntry.obj `if test -f 'src/library/OfflineSidebarEntry.c'; then $(CYGPATH_W) 'src/library/OfflineSidebarEntry.c'; else $(CYGPATH_W) '$(srcdir)/src/library/OfflineSidebarEntry.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-OfflineSidebarEntry.Tpo src/library/$(DEPDIR)/shotwell-OfflineSidebarEntry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/OfflineSidebarEntry.c' object='src/library/shotwell-OfflineSidebarEntry.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-OfflineSidebarEntry.obj `if test -f 'src/library/OfflineSidebarEntry.c'; then $(CYGPATH_W) 'src/library/OfflineSidebarEntry.c'; else $(CYGPATH_W) '$(srcdir)/src/library/OfflineSidebarEntry.c'; fi` - -src/library/shotwell-FlaggedSidebarEntry.o: src/library/FlaggedSidebarEntry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-FlaggedSidebarEntry.o -MD -MP -MF src/library/$(DEPDIR)/shotwell-FlaggedSidebarEntry.Tpo -c -o src/library/shotwell-FlaggedSidebarEntry.o `test -f 'src/library/FlaggedSidebarEntry.c' || echo '$(srcdir)/'`src/library/FlaggedSidebarEntry.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-FlaggedSidebarEntry.Tpo src/library/$(DEPDIR)/shotwell-FlaggedSidebarEntry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/FlaggedSidebarEntry.c' object='src/library/shotwell-FlaggedSidebarEntry.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-FlaggedSidebarEntry.o `test -f 'src/library/FlaggedSidebarEntry.c' || echo '$(srcdir)/'`src/library/FlaggedSidebarEntry.c - -src/library/shotwell-FlaggedSidebarEntry.obj: src/library/FlaggedSidebarEntry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-FlaggedSidebarEntry.obj -MD -MP -MF src/library/$(DEPDIR)/shotwell-FlaggedSidebarEntry.Tpo -c -o src/library/shotwell-FlaggedSidebarEntry.obj `if test -f 'src/library/FlaggedSidebarEntry.c'; then $(CYGPATH_W) 'src/library/FlaggedSidebarEntry.c'; else $(CYGPATH_W) '$(srcdir)/src/library/FlaggedSidebarEntry.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-FlaggedSidebarEntry.Tpo src/library/$(DEPDIR)/shotwell-FlaggedSidebarEntry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/FlaggedSidebarEntry.c' object='src/library/shotwell-FlaggedSidebarEntry.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-FlaggedSidebarEntry.obj `if test -f 'src/library/FlaggedSidebarEntry.c'; then $(CYGPATH_W) 'src/library/FlaggedSidebarEntry.c'; else $(CYGPATH_W) '$(srcdir)/src/library/FlaggedSidebarEntry.c'; fi` - -src/library/shotwell-LastImportSidebarEntry.o: src/library/LastImportSidebarEntry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-LastImportSidebarEntry.o -MD -MP -MF src/library/$(DEPDIR)/shotwell-LastImportSidebarEntry.Tpo -c -o src/library/shotwell-LastImportSidebarEntry.o `test -f 'src/library/LastImportSidebarEntry.c' || echo '$(srcdir)/'`src/library/LastImportSidebarEntry.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-LastImportSidebarEntry.Tpo src/library/$(DEPDIR)/shotwell-LastImportSidebarEntry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/LastImportSidebarEntry.c' object='src/library/shotwell-LastImportSidebarEntry.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-LastImportSidebarEntry.o `test -f 'src/library/LastImportSidebarEntry.c' || echo '$(srcdir)/'`src/library/LastImportSidebarEntry.c - -src/library/shotwell-LastImportSidebarEntry.obj: src/library/LastImportSidebarEntry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-LastImportSidebarEntry.obj -MD -MP -MF src/library/$(DEPDIR)/shotwell-LastImportSidebarEntry.Tpo -c -o src/library/shotwell-LastImportSidebarEntry.obj `if test -f 'src/library/LastImportSidebarEntry.c'; then $(CYGPATH_W) 'src/library/LastImportSidebarEntry.c'; else $(CYGPATH_W) '$(srcdir)/src/library/LastImportSidebarEntry.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-LastImportSidebarEntry.Tpo src/library/$(DEPDIR)/shotwell-LastImportSidebarEntry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/LastImportSidebarEntry.c' object='src/library/shotwell-LastImportSidebarEntry.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-LastImportSidebarEntry.obj `if test -f 'src/library/LastImportSidebarEntry.c'; then $(CYGPATH_W) 'src/library/LastImportSidebarEntry.c'; else $(CYGPATH_W) '$(srcdir)/src/library/LastImportSidebarEntry.c'; fi` - -src/library/shotwell-ImportQueueSidebarEntry.o: src/library/ImportQueueSidebarEntry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-ImportQueueSidebarEntry.o -MD -MP -MF src/library/$(DEPDIR)/shotwell-ImportQueueSidebarEntry.Tpo -c -o src/library/shotwell-ImportQueueSidebarEntry.o `test -f 'src/library/ImportQueueSidebarEntry.c' || echo '$(srcdir)/'`src/library/ImportQueueSidebarEntry.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-ImportQueueSidebarEntry.Tpo src/library/$(DEPDIR)/shotwell-ImportQueueSidebarEntry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/ImportQueueSidebarEntry.c' object='src/library/shotwell-ImportQueueSidebarEntry.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-ImportQueueSidebarEntry.o `test -f 'src/library/ImportQueueSidebarEntry.c' || echo '$(srcdir)/'`src/library/ImportQueueSidebarEntry.c - -src/library/shotwell-ImportQueueSidebarEntry.obj: src/library/ImportQueueSidebarEntry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-ImportQueueSidebarEntry.obj -MD -MP -MF src/library/$(DEPDIR)/shotwell-ImportQueueSidebarEntry.Tpo -c -o src/library/shotwell-ImportQueueSidebarEntry.obj `if test -f 'src/library/ImportQueueSidebarEntry.c'; then $(CYGPATH_W) 'src/library/ImportQueueSidebarEntry.c'; else $(CYGPATH_W) '$(srcdir)/src/library/ImportQueueSidebarEntry.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-ImportQueueSidebarEntry.Tpo src/library/$(DEPDIR)/shotwell-ImportQueueSidebarEntry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/ImportQueueSidebarEntry.c' object='src/library/shotwell-ImportQueueSidebarEntry.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-ImportQueueSidebarEntry.obj `if test -f 'src/library/ImportQueueSidebarEntry.c'; then $(CYGPATH_W) 'src/library/ImportQueueSidebarEntry.c'; else $(CYGPATH_W) '$(srcdir)/src/library/ImportQueueSidebarEntry.c'; fi` - -src/library/shotwell-FlaggedPage.o: src/library/FlaggedPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-FlaggedPage.o -MD -MP -MF src/library/$(DEPDIR)/shotwell-FlaggedPage.Tpo -c -o src/library/shotwell-FlaggedPage.o `test -f 'src/library/FlaggedPage.c' || echo '$(srcdir)/'`src/library/FlaggedPage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-FlaggedPage.Tpo src/library/$(DEPDIR)/shotwell-FlaggedPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/FlaggedPage.c' object='src/library/shotwell-FlaggedPage.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-FlaggedPage.o `test -f 'src/library/FlaggedPage.c' || echo '$(srcdir)/'`src/library/FlaggedPage.c - -src/library/shotwell-FlaggedPage.obj: src/library/FlaggedPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-FlaggedPage.obj -MD -MP -MF src/library/$(DEPDIR)/shotwell-FlaggedPage.Tpo -c -o src/library/shotwell-FlaggedPage.obj `if test -f 'src/library/FlaggedPage.c'; then $(CYGPATH_W) 'src/library/FlaggedPage.c'; else $(CYGPATH_W) '$(srcdir)/src/library/FlaggedPage.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-FlaggedPage.Tpo src/library/$(DEPDIR)/shotwell-FlaggedPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/FlaggedPage.c' object='src/library/shotwell-FlaggedPage.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-FlaggedPage.obj `if test -f 'src/library/FlaggedPage.c'; then $(CYGPATH_W) 'src/library/FlaggedPage.c'; else $(CYGPATH_W) '$(srcdir)/src/library/FlaggedPage.c'; fi` - -src/library/shotwell-ImportQueuePage.o: src/library/ImportQueuePage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-ImportQueuePage.o -MD -MP -MF src/library/$(DEPDIR)/shotwell-ImportQueuePage.Tpo -c -o src/library/shotwell-ImportQueuePage.o `test -f 'src/library/ImportQueuePage.c' || echo '$(srcdir)/'`src/library/ImportQueuePage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-ImportQueuePage.Tpo src/library/$(DEPDIR)/shotwell-ImportQueuePage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/ImportQueuePage.c' object='src/library/shotwell-ImportQueuePage.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-ImportQueuePage.o `test -f 'src/library/ImportQueuePage.c' || echo '$(srcdir)/'`src/library/ImportQueuePage.c - -src/library/shotwell-ImportQueuePage.obj: src/library/ImportQueuePage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-ImportQueuePage.obj -MD -MP -MF src/library/$(DEPDIR)/shotwell-ImportQueuePage.Tpo -c -o src/library/shotwell-ImportQueuePage.obj `if test -f 'src/library/ImportQueuePage.c'; then $(CYGPATH_W) 'src/library/ImportQueuePage.c'; else $(CYGPATH_W) '$(srcdir)/src/library/ImportQueuePage.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-ImportQueuePage.Tpo src/library/$(DEPDIR)/shotwell-ImportQueuePage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/ImportQueuePage.c' object='src/library/shotwell-ImportQueuePage.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-ImportQueuePage.obj `if test -f 'src/library/ImportQueuePage.c'; then $(CYGPATH_W) 'src/library/ImportQueuePage.c'; else $(CYGPATH_W) '$(srcdir)/src/library/ImportQueuePage.c'; fi` - -src/library/shotwell-LastImportPage.o: src/library/LastImportPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-LastImportPage.o -MD -MP -MF src/library/$(DEPDIR)/shotwell-LastImportPage.Tpo -c -o src/library/shotwell-LastImportPage.o `test -f 'src/library/LastImportPage.c' || echo '$(srcdir)/'`src/library/LastImportPage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-LastImportPage.Tpo src/library/$(DEPDIR)/shotwell-LastImportPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/LastImportPage.c' object='src/library/shotwell-LastImportPage.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-LastImportPage.o `test -f 'src/library/LastImportPage.c' || echo '$(srcdir)/'`src/library/LastImportPage.c - -src/library/shotwell-LastImportPage.obj: src/library/LastImportPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-LastImportPage.obj -MD -MP -MF src/library/$(DEPDIR)/shotwell-LastImportPage.Tpo -c -o src/library/shotwell-LastImportPage.obj `if test -f 'src/library/LastImportPage.c'; then $(CYGPATH_W) 'src/library/LastImportPage.c'; else $(CYGPATH_W) '$(srcdir)/src/library/LastImportPage.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-LastImportPage.Tpo src/library/$(DEPDIR)/shotwell-LastImportPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/LastImportPage.c' object='src/library/shotwell-LastImportPage.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-LastImportPage.obj `if test -f 'src/library/LastImportPage.c'; then $(CYGPATH_W) 'src/library/LastImportPage.c'; else $(CYGPATH_W) '$(srcdir)/src/library/LastImportPage.c'; fi` - -src/library/shotwell-OfflinePage.o: src/library/OfflinePage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-OfflinePage.o -MD -MP -MF src/library/$(DEPDIR)/shotwell-OfflinePage.Tpo -c -o src/library/shotwell-OfflinePage.o `test -f 'src/library/OfflinePage.c' || echo '$(srcdir)/'`src/library/OfflinePage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-OfflinePage.Tpo src/library/$(DEPDIR)/shotwell-OfflinePage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/OfflinePage.c' object='src/library/shotwell-OfflinePage.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-OfflinePage.o `test -f 'src/library/OfflinePage.c' || echo '$(srcdir)/'`src/library/OfflinePage.c - -src/library/shotwell-OfflinePage.obj: src/library/OfflinePage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-OfflinePage.obj -MD -MP -MF src/library/$(DEPDIR)/shotwell-OfflinePage.Tpo -c -o src/library/shotwell-OfflinePage.obj `if test -f 'src/library/OfflinePage.c'; then $(CYGPATH_W) 'src/library/OfflinePage.c'; else $(CYGPATH_W) '$(srcdir)/src/library/OfflinePage.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-OfflinePage.Tpo src/library/$(DEPDIR)/shotwell-OfflinePage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/OfflinePage.c' object='src/library/shotwell-OfflinePage.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-OfflinePage.obj `if test -f 'src/library/OfflinePage.c'; then $(CYGPATH_W) 'src/library/OfflinePage.c'; else $(CYGPATH_W) '$(srcdir)/src/library/OfflinePage.c'; fi` - -src/library/shotwell-TrashPage.o: src/library/TrashPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-TrashPage.o -MD -MP -MF src/library/$(DEPDIR)/shotwell-TrashPage.Tpo -c -o src/library/shotwell-TrashPage.o `test -f 'src/library/TrashPage.c' || echo '$(srcdir)/'`src/library/TrashPage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-TrashPage.Tpo src/library/$(DEPDIR)/shotwell-TrashPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/TrashPage.c' object='src/library/shotwell-TrashPage.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-TrashPage.o `test -f 'src/library/TrashPage.c' || echo '$(srcdir)/'`src/library/TrashPage.c - -src/library/shotwell-TrashPage.obj: src/library/TrashPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/library/shotwell-TrashPage.obj -MD -MP -MF src/library/$(DEPDIR)/shotwell-TrashPage.Tpo -c -o src/library/shotwell-TrashPage.obj `if test -f 'src/library/TrashPage.c'; then $(CYGPATH_W) 'src/library/TrashPage.c'; else $(CYGPATH_W) '$(srcdir)/src/library/TrashPage.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/library/$(DEPDIR)/shotwell-TrashPage.Tpo src/library/$(DEPDIR)/shotwell-TrashPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/library/TrashPage.c' object='src/library/shotwell-TrashPage.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/library/shotwell-TrashPage.obj `if test -f 'src/library/TrashPage.c'; then $(CYGPATH_W) 'src/library/TrashPage.c'; else $(CYGPATH_W) '$(srcdir)/src/library/TrashPage.c'; fi` - -src/direct/shotwell-Direct.o: src/direct/Direct.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/direct/shotwell-Direct.o -MD -MP -MF src/direct/$(DEPDIR)/shotwell-Direct.Tpo -c -o src/direct/shotwell-Direct.o `test -f 'src/direct/Direct.c' || echo '$(srcdir)/'`src/direct/Direct.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/direct/$(DEPDIR)/shotwell-Direct.Tpo src/direct/$(DEPDIR)/shotwell-Direct.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/direct/Direct.c' object='src/direct/shotwell-Direct.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/direct/shotwell-Direct.o `test -f 'src/direct/Direct.c' || echo '$(srcdir)/'`src/direct/Direct.c - -src/direct/shotwell-Direct.obj: src/direct/Direct.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/direct/shotwell-Direct.obj -MD -MP -MF src/direct/$(DEPDIR)/shotwell-Direct.Tpo -c -o src/direct/shotwell-Direct.obj `if test -f 'src/direct/Direct.c'; then $(CYGPATH_W) 'src/direct/Direct.c'; else $(CYGPATH_W) '$(srcdir)/src/direct/Direct.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/direct/$(DEPDIR)/shotwell-Direct.Tpo src/direct/$(DEPDIR)/shotwell-Direct.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/direct/Direct.c' object='src/direct/shotwell-Direct.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/direct/shotwell-Direct.obj `if test -f 'src/direct/Direct.c'; then $(CYGPATH_W) 'src/direct/Direct.c'; else $(CYGPATH_W) '$(srcdir)/src/direct/Direct.c'; fi` - -src/direct/shotwell-DirectWindow.o: src/direct/DirectWindow.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/direct/shotwell-DirectWindow.o -MD -MP -MF src/direct/$(DEPDIR)/shotwell-DirectWindow.Tpo -c -o src/direct/shotwell-DirectWindow.o `test -f 'src/direct/DirectWindow.c' || echo '$(srcdir)/'`src/direct/DirectWindow.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/direct/$(DEPDIR)/shotwell-DirectWindow.Tpo src/direct/$(DEPDIR)/shotwell-DirectWindow.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/direct/DirectWindow.c' object='src/direct/shotwell-DirectWindow.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/direct/shotwell-DirectWindow.o `test -f 'src/direct/DirectWindow.c' || echo '$(srcdir)/'`src/direct/DirectWindow.c - -src/direct/shotwell-DirectWindow.obj: src/direct/DirectWindow.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/direct/shotwell-DirectWindow.obj -MD -MP -MF src/direct/$(DEPDIR)/shotwell-DirectWindow.Tpo -c -o src/direct/shotwell-DirectWindow.obj `if test -f 'src/direct/DirectWindow.c'; then $(CYGPATH_W) 'src/direct/DirectWindow.c'; else $(CYGPATH_W) '$(srcdir)/src/direct/DirectWindow.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/direct/$(DEPDIR)/shotwell-DirectWindow.Tpo src/direct/$(DEPDIR)/shotwell-DirectWindow.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/direct/DirectWindow.c' object='src/direct/shotwell-DirectWindow.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/direct/shotwell-DirectWindow.obj `if test -f 'src/direct/DirectWindow.c'; then $(CYGPATH_W) 'src/direct/DirectWindow.c'; else $(CYGPATH_W) '$(srcdir)/src/direct/DirectWindow.c'; fi` - -src/direct/shotwell-DirectPhoto.o: src/direct/DirectPhoto.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/direct/shotwell-DirectPhoto.o -MD -MP -MF src/direct/$(DEPDIR)/shotwell-DirectPhoto.Tpo -c -o src/direct/shotwell-DirectPhoto.o `test -f 'src/direct/DirectPhoto.c' || echo '$(srcdir)/'`src/direct/DirectPhoto.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/direct/$(DEPDIR)/shotwell-DirectPhoto.Tpo src/direct/$(DEPDIR)/shotwell-DirectPhoto.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/direct/DirectPhoto.c' object='src/direct/shotwell-DirectPhoto.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/direct/shotwell-DirectPhoto.o `test -f 'src/direct/DirectPhoto.c' || echo '$(srcdir)/'`src/direct/DirectPhoto.c - -src/direct/shotwell-DirectPhoto.obj: src/direct/DirectPhoto.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/direct/shotwell-DirectPhoto.obj -MD -MP -MF src/direct/$(DEPDIR)/shotwell-DirectPhoto.Tpo -c -o src/direct/shotwell-DirectPhoto.obj `if test -f 'src/direct/DirectPhoto.c'; then $(CYGPATH_W) 'src/direct/DirectPhoto.c'; else $(CYGPATH_W) '$(srcdir)/src/direct/DirectPhoto.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/direct/$(DEPDIR)/shotwell-DirectPhoto.Tpo src/direct/$(DEPDIR)/shotwell-DirectPhoto.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/direct/DirectPhoto.c' object='src/direct/shotwell-DirectPhoto.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/direct/shotwell-DirectPhoto.obj `if test -f 'src/direct/DirectPhoto.c'; then $(CYGPATH_W) 'src/direct/DirectPhoto.c'; else $(CYGPATH_W) '$(srcdir)/src/direct/DirectPhoto.c'; fi` - -src/direct/shotwell-DirectPhotoPage.o: src/direct/DirectPhotoPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/direct/shotwell-DirectPhotoPage.o -MD -MP -MF src/direct/$(DEPDIR)/shotwell-DirectPhotoPage.Tpo -c -o src/direct/shotwell-DirectPhotoPage.o `test -f 'src/direct/DirectPhotoPage.c' || echo '$(srcdir)/'`src/direct/DirectPhotoPage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/direct/$(DEPDIR)/shotwell-DirectPhotoPage.Tpo src/direct/$(DEPDIR)/shotwell-DirectPhotoPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/direct/DirectPhotoPage.c' object='src/direct/shotwell-DirectPhotoPage.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/direct/shotwell-DirectPhotoPage.o `test -f 'src/direct/DirectPhotoPage.c' || echo '$(srcdir)/'`src/direct/DirectPhotoPage.c - -src/direct/shotwell-DirectPhotoPage.obj: src/direct/DirectPhotoPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/direct/shotwell-DirectPhotoPage.obj -MD -MP -MF src/direct/$(DEPDIR)/shotwell-DirectPhotoPage.Tpo -c -o src/direct/shotwell-DirectPhotoPage.obj `if test -f 'src/direct/DirectPhotoPage.c'; then $(CYGPATH_W) 'src/direct/DirectPhotoPage.c'; else $(CYGPATH_W) '$(srcdir)/src/direct/DirectPhotoPage.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/direct/$(DEPDIR)/shotwell-DirectPhotoPage.Tpo src/direct/$(DEPDIR)/shotwell-DirectPhotoPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/direct/DirectPhotoPage.c' object='src/direct/shotwell-DirectPhotoPage.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/direct/shotwell-DirectPhotoPage.obj `if test -f 'src/direct/DirectPhotoPage.c'; then $(CYGPATH_W) 'src/direct/DirectPhotoPage.c'; else $(CYGPATH_W) '$(srcdir)/src/direct/DirectPhotoPage.c'; fi` - -src/direct/shotwell-DirectView.o: src/direct/DirectView.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/direct/shotwell-DirectView.o -MD -MP -MF src/direct/$(DEPDIR)/shotwell-DirectView.Tpo -c -o src/direct/shotwell-DirectView.o `test -f 'src/direct/DirectView.c' || echo '$(srcdir)/'`src/direct/DirectView.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/direct/$(DEPDIR)/shotwell-DirectView.Tpo src/direct/$(DEPDIR)/shotwell-DirectView.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/direct/DirectView.c' object='src/direct/shotwell-DirectView.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/direct/shotwell-DirectView.o `test -f 'src/direct/DirectView.c' || echo '$(srcdir)/'`src/direct/DirectView.c - -src/direct/shotwell-DirectView.obj: src/direct/DirectView.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/direct/shotwell-DirectView.obj -MD -MP -MF src/direct/$(DEPDIR)/shotwell-DirectView.Tpo -c -o src/direct/shotwell-DirectView.obj `if test -f 'src/direct/DirectView.c'; then $(CYGPATH_W) 'src/direct/DirectView.c'; else $(CYGPATH_W) '$(srcdir)/src/direct/DirectView.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/direct/$(DEPDIR)/shotwell-DirectView.Tpo src/direct/$(DEPDIR)/shotwell-DirectView.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/direct/DirectView.c' object='src/direct/shotwell-DirectView.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/direct/shotwell-DirectView.obj `if test -f 'src/direct/DirectView.c'; then $(CYGPATH_W) 'src/direct/DirectView.c'; else $(CYGPATH_W) '$(srcdir)/src/direct/DirectView.c'; fi` - -src/core/shotwell-Core.o: src/core/Core.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-Core.o -MD -MP -MF src/core/$(DEPDIR)/shotwell-Core.Tpo -c -o src/core/shotwell-Core.o `test -f 'src/core/Core.c' || echo '$(srcdir)/'`src/core/Core.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-Core.Tpo src/core/$(DEPDIR)/shotwell-Core.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/Core.c' object='src/core/shotwell-Core.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-Core.o `test -f 'src/core/Core.c' || echo '$(srcdir)/'`src/core/Core.c - -src/core/shotwell-Core.obj: src/core/Core.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-Core.obj -MD -MP -MF src/core/$(DEPDIR)/shotwell-Core.Tpo -c -o src/core/shotwell-Core.obj `if test -f 'src/core/Core.c'; then $(CYGPATH_W) 'src/core/Core.c'; else $(CYGPATH_W) '$(srcdir)/src/core/Core.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-Core.Tpo src/core/$(DEPDIR)/shotwell-Core.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/Core.c' object='src/core/shotwell-Core.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-Core.obj `if test -f 'src/core/Core.c'; then $(CYGPATH_W) 'src/core/Core.c'; else $(CYGPATH_W) '$(srcdir)/src/core/Core.c'; fi` - -src/core/shotwell-DataCollection.o: src/core/DataCollection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-DataCollection.o -MD -MP -MF src/core/$(DEPDIR)/shotwell-DataCollection.Tpo -c -o src/core/shotwell-DataCollection.o `test -f 'src/core/DataCollection.c' || echo '$(srcdir)/'`src/core/DataCollection.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-DataCollection.Tpo src/core/$(DEPDIR)/shotwell-DataCollection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/DataCollection.c' object='src/core/shotwell-DataCollection.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-DataCollection.o `test -f 'src/core/DataCollection.c' || echo '$(srcdir)/'`src/core/DataCollection.c - -src/core/shotwell-DataCollection.obj: src/core/DataCollection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-DataCollection.obj -MD -MP -MF src/core/$(DEPDIR)/shotwell-DataCollection.Tpo -c -o src/core/shotwell-DataCollection.obj `if test -f 'src/core/DataCollection.c'; then $(CYGPATH_W) 'src/core/DataCollection.c'; else $(CYGPATH_W) '$(srcdir)/src/core/DataCollection.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-DataCollection.Tpo src/core/$(DEPDIR)/shotwell-DataCollection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/DataCollection.c' object='src/core/shotwell-DataCollection.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-DataCollection.obj `if test -f 'src/core/DataCollection.c'; then $(CYGPATH_W) 'src/core/DataCollection.c'; else $(CYGPATH_W) '$(srcdir)/src/core/DataCollection.c'; fi` - -src/core/shotwell-DataSet.o: src/core/DataSet.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-DataSet.o -MD -MP -MF src/core/$(DEPDIR)/shotwell-DataSet.Tpo -c -o src/core/shotwell-DataSet.o `test -f 'src/core/DataSet.c' || echo '$(srcdir)/'`src/core/DataSet.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-DataSet.Tpo src/core/$(DEPDIR)/shotwell-DataSet.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/DataSet.c' object='src/core/shotwell-DataSet.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-DataSet.o `test -f 'src/core/DataSet.c' || echo '$(srcdir)/'`src/core/DataSet.c - -src/core/shotwell-DataSet.obj: src/core/DataSet.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-DataSet.obj -MD -MP -MF src/core/$(DEPDIR)/shotwell-DataSet.Tpo -c -o src/core/shotwell-DataSet.obj `if test -f 'src/core/DataSet.c'; then $(CYGPATH_W) 'src/core/DataSet.c'; else $(CYGPATH_W) '$(srcdir)/src/core/DataSet.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-DataSet.Tpo src/core/$(DEPDIR)/shotwell-DataSet.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/DataSet.c' object='src/core/shotwell-DataSet.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-DataSet.obj `if test -f 'src/core/DataSet.c'; then $(CYGPATH_W) 'src/core/DataSet.c'; else $(CYGPATH_W) '$(srcdir)/src/core/DataSet.c'; fi` - -src/core/shotwell-util.o: src/core/util.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-util.o -MD -MP -MF src/core/$(DEPDIR)/shotwell-util.Tpo -c -o src/core/shotwell-util.o `test -f 'src/core/util.c' || echo '$(srcdir)/'`src/core/util.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-util.Tpo src/core/$(DEPDIR)/shotwell-util.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/util.c' object='src/core/shotwell-util.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-util.o `test -f 'src/core/util.c' || echo '$(srcdir)/'`src/core/util.c - -src/core/shotwell-util.obj: src/core/util.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-util.obj -MD -MP -MF src/core/$(DEPDIR)/shotwell-util.Tpo -c -o src/core/shotwell-util.obj `if test -f 'src/core/util.c'; then $(CYGPATH_W) 'src/core/util.c'; else $(CYGPATH_W) '$(srcdir)/src/core/util.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-util.Tpo src/core/$(DEPDIR)/shotwell-util.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/util.c' object='src/core/shotwell-util.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-util.obj `if test -f 'src/core/util.c'; then $(CYGPATH_W) 'src/core/util.c'; else $(CYGPATH_W) '$(srcdir)/src/core/util.c'; fi` - -src/core/shotwell-SourceCollection.o: src/core/SourceCollection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-SourceCollection.o -MD -MP -MF src/core/$(DEPDIR)/shotwell-SourceCollection.Tpo -c -o src/core/shotwell-SourceCollection.o `test -f 'src/core/SourceCollection.c' || echo '$(srcdir)/'`src/core/SourceCollection.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-SourceCollection.Tpo src/core/$(DEPDIR)/shotwell-SourceCollection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/SourceCollection.c' object='src/core/shotwell-SourceCollection.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-SourceCollection.o `test -f 'src/core/SourceCollection.c' || echo '$(srcdir)/'`src/core/SourceCollection.c - -src/core/shotwell-SourceCollection.obj: src/core/SourceCollection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-SourceCollection.obj -MD -MP -MF src/core/$(DEPDIR)/shotwell-SourceCollection.Tpo -c -o src/core/shotwell-SourceCollection.obj `if test -f 'src/core/SourceCollection.c'; then $(CYGPATH_W) 'src/core/SourceCollection.c'; else $(CYGPATH_W) '$(srcdir)/src/core/SourceCollection.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-SourceCollection.Tpo src/core/$(DEPDIR)/shotwell-SourceCollection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/SourceCollection.c' object='src/core/shotwell-SourceCollection.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-SourceCollection.obj `if test -f 'src/core/SourceCollection.c'; then $(CYGPATH_W) 'src/core/SourceCollection.c'; else $(CYGPATH_W) '$(srcdir)/src/core/SourceCollection.c'; fi` - -src/core/shotwell-SourceHoldingTank.o: src/core/SourceHoldingTank.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-SourceHoldingTank.o -MD -MP -MF src/core/$(DEPDIR)/shotwell-SourceHoldingTank.Tpo -c -o src/core/shotwell-SourceHoldingTank.o `test -f 'src/core/SourceHoldingTank.c' || echo '$(srcdir)/'`src/core/SourceHoldingTank.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-SourceHoldingTank.Tpo src/core/$(DEPDIR)/shotwell-SourceHoldingTank.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/SourceHoldingTank.c' object='src/core/shotwell-SourceHoldingTank.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-SourceHoldingTank.o `test -f 'src/core/SourceHoldingTank.c' || echo '$(srcdir)/'`src/core/SourceHoldingTank.c - -src/core/shotwell-SourceHoldingTank.obj: src/core/SourceHoldingTank.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-SourceHoldingTank.obj -MD -MP -MF src/core/$(DEPDIR)/shotwell-SourceHoldingTank.Tpo -c -o src/core/shotwell-SourceHoldingTank.obj `if test -f 'src/core/SourceHoldingTank.c'; then $(CYGPATH_W) 'src/core/SourceHoldingTank.c'; else $(CYGPATH_W) '$(srcdir)/src/core/SourceHoldingTank.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-SourceHoldingTank.Tpo src/core/$(DEPDIR)/shotwell-SourceHoldingTank.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/SourceHoldingTank.c' object='src/core/shotwell-SourceHoldingTank.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-SourceHoldingTank.obj `if test -f 'src/core/SourceHoldingTank.c'; then $(CYGPATH_W) 'src/core/SourceHoldingTank.c'; else $(CYGPATH_W) '$(srcdir)/src/core/SourceHoldingTank.c'; fi` - -src/core/shotwell-DatabaseSourceCollection.o: src/core/DatabaseSourceCollection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-DatabaseSourceCollection.o -MD -MP -MF src/core/$(DEPDIR)/shotwell-DatabaseSourceCollection.Tpo -c -o src/core/shotwell-DatabaseSourceCollection.o `test -f 'src/core/DatabaseSourceCollection.c' || echo '$(srcdir)/'`src/core/DatabaseSourceCollection.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-DatabaseSourceCollection.Tpo src/core/$(DEPDIR)/shotwell-DatabaseSourceCollection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/DatabaseSourceCollection.c' object='src/core/shotwell-DatabaseSourceCollection.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-DatabaseSourceCollection.o `test -f 'src/core/DatabaseSourceCollection.c' || echo '$(srcdir)/'`src/core/DatabaseSourceCollection.c - -src/core/shotwell-DatabaseSourceCollection.obj: src/core/DatabaseSourceCollection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-DatabaseSourceCollection.obj -MD -MP -MF src/core/$(DEPDIR)/shotwell-DatabaseSourceCollection.Tpo -c -o src/core/shotwell-DatabaseSourceCollection.obj `if test -f 'src/core/DatabaseSourceCollection.c'; then $(CYGPATH_W) 'src/core/DatabaseSourceCollection.c'; else $(CYGPATH_W) '$(srcdir)/src/core/DatabaseSourceCollection.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-DatabaseSourceCollection.Tpo src/core/$(DEPDIR)/shotwell-DatabaseSourceCollection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/DatabaseSourceCollection.c' object='src/core/shotwell-DatabaseSourceCollection.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-DatabaseSourceCollection.obj `if test -f 'src/core/DatabaseSourceCollection.c'; then $(CYGPATH_W) 'src/core/DatabaseSourceCollection.c'; else $(CYGPATH_W) '$(srcdir)/src/core/DatabaseSourceCollection.c'; fi` - -src/core/shotwell-ContainerSourceCollection.o: src/core/ContainerSourceCollection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-ContainerSourceCollection.o -MD -MP -MF src/core/$(DEPDIR)/shotwell-ContainerSourceCollection.Tpo -c -o src/core/shotwell-ContainerSourceCollection.o `test -f 'src/core/ContainerSourceCollection.c' || echo '$(srcdir)/'`src/core/ContainerSourceCollection.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-ContainerSourceCollection.Tpo src/core/$(DEPDIR)/shotwell-ContainerSourceCollection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/ContainerSourceCollection.c' object='src/core/shotwell-ContainerSourceCollection.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-ContainerSourceCollection.o `test -f 'src/core/ContainerSourceCollection.c' || echo '$(srcdir)/'`src/core/ContainerSourceCollection.c - -src/core/shotwell-ContainerSourceCollection.obj: src/core/ContainerSourceCollection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-ContainerSourceCollection.obj -MD -MP -MF src/core/$(DEPDIR)/shotwell-ContainerSourceCollection.Tpo -c -o src/core/shotwell-ContainerSourceCollection.obj `if test -f 'src/core/ContainerSourceCollection.c'; then $(CYGPATH_W) 'src/core/ContainerSourceCollection.c'; else $(CYGPATH_W) '$(srcdir)/src/core/ContainerSourceCollection.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-ContainerSourceCollection.Tpo src/core/$(DEPDIR)/shotwell-ContainerSourceCollection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/ContainerSourceCollection.c' object='src/core/shotwell-ContainerSourceCollection.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-ContainerSourceCollection.obj `if test -f 'src/core/ContainerSourceCollection.c'; then $(CYGPATH_W) 'src/core/ContainerSourceCollection.c'; else $(CYGPATH_W) '$(srcdir)/src/core/ContainerSourceCollection.c'; fi` - -src/core/shotwell-ViewCollection.o: src/core/ViewCollection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-ViewCollection.o -MD -MP -MF src/core/$(DEPDIR)/shotwell-ViewCollection.Tpo -c -o src/core/shotwell-ViewCollection.o `test -f 'src/core/ViewCollection.c' || echo '$(srcdir)/'`src/core/ViewCollection.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-ViewCollection.Tpo src/core/$(DEPDIR)/shotwell-ViewCollection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/ViewCollection.c' object='src/core/shotwell-ViewCollection.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-ViewCollection.o `test -f 'src/core/ViewCollection.c' || echo '$(srcdir)/'`src/core/ViewCollection.c - -src/core/shotwell-ViewCollection.obj: src/core/ViewCollection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-ViewCollection.obj -MD -MP -MF src/core/$(DEPDIR)/shotwell-ViewCollection.Tpo -c -o src/core/shotwell-ViewCollection.obj `if test -f 'src/core/ViewCollection.c'; then $(CYGPATH_W) 'src/core/ViewCollection.c'; else $(CYGPATH_W) '$(srcdir)/src/core/ViewCollection.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-ViewCollection.Tpo src/core/$(DEPDIR)/shotwell-ViewCollection.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/ViewCollection.c' object='src/core/shotwell-ViewCollection.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-ViewCollection.obj `if test -f 'src/core/ViewCollection.c'; then $(CYGPATH_W) 'src/core/ViewCollection.c'; else $(CYGPATH_W) '$(srcdir)/src/core/ViewCollection.c'; fi` - -src/core/shotwell-DataObject.o: src/core/DataObject.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-DataObject.o -MD -MP -MF src/core/$(DEPDIR)/shotwell-DataObject.Tpo -c -o src/core/shotwell-DataObject.o `test -f 'src/core/DataObject.c' || echo '$(srcdir)/'`src/core/DataObject.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-DataObject.Tpo src/core/$(DEPDIR)/shotwell-DataObject.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/DataObject.c' object='src/core/shotwell-DataObject.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-DataObject.o `test -f 'src/core/DataObject.c' || echo '$(srcdir)/'`src/core/DataObject.c - -src/core/shotwell-DataObject.obj: src/core/DataObject.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-DataObject.obj -MD -MP -MF src/core/$(DEPDIR)/shotwell-DataObject.Tpo -c -o src/core/shotwell-DataObject.obj `if test -f 'src/core/DataObject.c'; then $(CYGPATH_W) 'src/core/DataObject.c'; else $(CYGPATH_W) '$(srcdir)/src/core/DataObject.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-DataObject.Tpo src/core/$(DEPDIR)/shotwell-DataObject.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/DataObject.c' object='src/core/shotwell-DataObject.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-DataObject.obj `if test -f 'src/core/DataObject.c'; then $(CYGPATH_W) 'src/core/DataObject.c'; else $(CYGPATH_W) '$(srcdir)/src/core/DataObject.c'; fi` - -src/core/shotwell-Alteration.o: src/core/Alteration.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-Alteration.o -MD -MP -MF src/core/$(DEPDIR)/shotwell-Alteration.Tpo -c -o src/core/shotwell-Alteration.o `test -f 'src/core/Alteration.c' || echo '$(srcdir)/'`src/core/Alteration.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-Alteration.Tpo src/core/$(DEPDIR)/shotwell-Alteration.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/Alteration.c' object='src/core/shotwell-Alteration.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-Alteration.o `test -f 'src/core/Alteration.c' || echo '$(srcdir)/'`src/core/Alteration.c - -src/core/shotwell-Alteration.obj: src/core/Alteration.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-Alteration.obj -MD -MP -MF src/core/$(DEPDIR)/shotwell-Alteration.Tpo -c -o src/core/shotwell-Alteration.obj `if test -f 'src/core/Alteration.c'; then $(CYGPATH_W) 'src/core/Alteration.c'; else $(CYGPATH_W) '$(srcdir)/src/core/Alteration.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-Alteration.Tpo src/core/$(DEPDIR)/shotwell-Alteration.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/Alteration.c' object='src/core/shotwell-Alteration.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-Alteration.obj `if test -f 'src/core/Alteration.c'; then $(CYGPATH_W) 'src/core/Alteration.c'; else $(CYGPATH_W) '$(srcdir)/src/core/Alteration.c'; fi` - -src/core/shotwell-DataSource.o: src/core/DataSource.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-DataSource.o -MD -MP -MF src/core/$(DEPDIR)/shotwell-DataSource.Tpo -c -o src/core/shotwell-DataSource.o `test -f 'src/core/DataSource.c' || echo '$(srcdir)/'`src/core/DataSource.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-DataSource.Tpo src/core/$(DEPDIR)/shotwell-DataSource.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/DataSource.c' object='src/core/shotwell-DataSource.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-DataSource.o `test -f 'src/core/DataSource.c' || echo '$(srcdir)/'`src/core/DataSource.c - -src/core/shotwell-DataSource.obj: src/core/DataSource.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-DataSource.obj -MD -MP -MF src/core/$(DEPDIR)/shotwell-DataSource.Tpo -c -o src/core/shotwell-DataSource.obj `if test -f 'src/core/DataSource.c'; then $(CYGPATH_W) 'src/core/DataSource.c'; else $(CYGPATH_W) '$(srcdir)/src/core/DataSource.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-DataSource.Tpo src/core/$(DEPDIR)/shotwell-DataSource.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/DataSource.c' object='src/core/shotwell-DataSource.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-DataSource.obj `if test -f 'src/core/DataSource.c'; then $(CYGPATH_W) 'src/core/DataSource.c'; else $(CYGPATH_W) '$(srcdir)/src/core/DataSource.c'; fi` - -src/core/shotwell-DataSourceTypes.o: src/core/DataSourceTypes.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-DataSourceTypes.o -MD -MP -MF src/core/$(DEPDIR)/shotwell-DataSourceTypes.Tpo -c -o src/core/shotwell-DataSourceTypes.o `test -f 'src/core/DataSourceTypes.c' || echo '$(srcdir)/'`src/core/DataSourceTypes.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-DataSourceTypes.Tpo src/core/$(DEPDIR)/shotwell-DataSourceTypes.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/DataSourceTypes.c' object='src/core/shotwell-DataSourceTypes.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-DataSourceTypes.o `test -f 'src/core/DataSourceTypes.c' || echo '$(srcdir)/'`src/core/DataSourceTypes.c - -src/core/shotwell-DataSourceTypes.obj: src/core/DataSourceTypes.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-DataSourceTypes.obj -MD -MP -MF src/core/$(DEPDIR)/shotwell-DataSourceTypes.Tpo -c -o src/core/shotwell-DataSourceTypes.obj `if test -f 'src/core/DataSourceTypes.c'; then $(CYGPATH_W) 'src/core/DataSourceTypes.c'; else $(CYGPATH_W) '$(srcdir)/src/core/DataSourceTypes.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-DataSourceTypes.Tpo src/core/$(DEPDIR)/shotwell-DataSourceTypes.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/DataSourceTypes.c' object='src/core/shotwell-DataSourceTypes.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-DataSourceTypes.obj `if test -f 'src/core/DataSourceTypes.c'; then $(CYGPATH_W) 'src/core/DataSourceTypes.c'; else $(CYGPATH_W) '$(srcdir)/src/core/DataSourceTypes.c'; fi` - -src/core/shotwell-DataView.o: src/core/DataView.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-DataView.o -MD -MP -MF src/core/$(DEPDIR)/shotwell-DataView.Tpo -c -o src/core/shotwell-DataView.o `test -f 'src/core/DataView.c' || echo '$(srcdir)/'`src/core/DataView.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-DataView.Tpo src/core/$(DEPDIR)/shotwell-DataView.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/DataView.c' object='src/core/shotwell-DataView.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-DataView.o `test -f 'src/core/DataView.c' || echo '$(srcdir)/'`src/core/DataView.c - -src/core/shotwell-DataView.obj: src/core/DataView.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-DataView.obj -MD -MP -MF src/core/$(DEPDIR)/shotwell-DataView.Tpo -c -o src/core/shotwell-DataView.obj `if test -f 'src/core/DataView.c'; then $(CYGPATH_W) 'src/core/DataView.c'; else $(CYGPATH_W) '$(srcdir)/src/core/DataView.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-DataView.Tpo src/core/$(DEPDIR)/shotwell-DataView.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/DataView.c' object='src/core/shotwell-DataView.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-DataView.obj `if test -f 'src/core/DataView.c'; then $(CYGPATH_W) 'src/core/DataView.c'; else $(CYGPATH_W) '$(srcdir)/src/core/DataView.c'; fi` - -src/core/shotwell-DataViewTypes.o: src/core/DataViewTypes.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-DataViewTypes.o -MD -MP -MF src/core/$(DEPDIR)/shotwell-DataViewTypes.Tpo -c -o src/core/shotwell-DataViewTypes.o `test -f 'src/core/DataViewTypes.c' || echo '$(srcdir)/'`src/core/DataViewTypes.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-DataViewTypes.Tpo src/core/$(DEPDIR)/shotwell-DataViewTypes.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/DataViewTypes.c' object='src/core/shotwell-DataViewTypes.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-DataViewTypes.o `test -f 'src/core/DataViewTypes.c' || echo '$(srcdir)/'`src/core/DataViewTypes.c - -src/core/shotwell-DataViewTypes.obj: src/core/DataViewTypes.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-DataViewTypes.obj -MD -MP -MF src/core/$(DEPDIR)/shotwell-DataViewTypes.Tpo -c -o src/core/shotwell-DataViewTypes.obj `if test -f 'src/core/DataViewTypes.c'; then $(CYGPATH_W) 'src/core/DataViewTypes.c'; else $(CYGPATH_W) '$(srcdir)/src/core/DataViewTypes.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-DataViewTypes.Tpo src/core/$(DEPDIR)/shotwell-DataViewTypes.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/DataViewTypes.c' object='src/core/shotwell-DataViewTypes.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-DataViewTypes.obj `if test -f 'src/core/DataViewTypes.c'; then $(CYGPATH_W) 'src/core/DataViewTypes.c'; else $(CYGPATH_W) '$(srcdir)/src/core/DataViewTypes.c'; fi` - -src/core/shotwell-Tracker.o: src/core/Tracker.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-Tracker.o -MD -MP -MF src/core/$(DEPDIR)/shotwell-Tracker.Tpo -c -o src/core/shotwell-Tracker.o `test -f 'src/core/Tracker.c' || echo '$(srcdir)/'`src/core/Tracker.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-Tracker.Tpo src/core/$(DEPDIR)/shotwell-Tracker.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/Tracker.c' object='src/core/shotwell-Tracker.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-Tracker.o `test -f 'src/core/Tracker.c' || echo '$(srcdir)/'`src/core/Tracker.c - -src/core/shotwell-Tracker.obj: src/core/Tracker.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-Tracker.obj -MD -MP -MF src/core/$(DEPDIR)/shotwell-Tracker.Tpo -c -o src/core/shotwell-Tracker.obj `if test -f 'src/core/Tracker.c'; then $(CYGPATH_W) 'src/core/Tracker.c'; else $(CYGPATH_W) '$(srcdir)/src/core/Tracker.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-Tracker.Tpo src/core/$(DEPDIR)/shotwell-Tracker.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/Tracker.c' object='src/core/shotwell-Tracker.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-Tracker.obj `if test -f 'src/core/Tracker.c'; then $(CYGPATH_W) 'src/core/Tracker.c'; else $(CYGPATH_W) '$(srcdir)/src/core/Tracker.c'; fi` - -src/core/shotwell-SourceInterfaces.o: src/core/SourceInterfaces.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-SourceInterfaces.o -MD -MP -MF src/core/$(DEPDIR)/shotwell-SourceInterfaces.Tpo -c -o src/core/shotwell-SourceInterfaces.o `test -f 'src/core/SourceInterfaces.c' || echo '$(srcdir)/'`src/core/SourceInterfaces.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-SourceInterfaces.Tpo src/core/$(DEPDIR)/shotwell-SourceInterfaces.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/SourceInterfaces.c' object='src/core/shotwell-SourceInterfaces.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-SourceInterfaces.o `test -f 'src/core/SourceInterfaces.c' || echo '$(srcdir)/'`src/core/SourceInterfaces.c - -src/core/shotwell-SourceInterfaces.obj: src/core/SourceInterfaces.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/core/shotwell-SourceInterfaces.obj -MD -MP -MF src/core/$(DEPDIR)/shotwell-SourceInterfaces.Tpo -c -o src/core/shotwell-SourceInterfaces.obj `if test -f 'src/core/SourceInterfaces.c'; then $(CYGPATH_W) 'src/core/SourceInterfaces.c'; else $(CYGPATH_W) '$(srcdir)/src/core/SourceInterfaces.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/core/$(DEPDIR)/shotwell-SourceInterfaces.Tpo src/core/$(DEPDIR)/shotwell-SourceInterfaces.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/core/SourceInterfaces.c' object='src/core/shotwell-SourceInterfaces.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/core/shotwell-SourceInterfaces.obj `if test -f 'src/core/SourceInterfaces.c'; then $(CYGPATH_W) 'src/core/SourceInterfaces.c'; else $(CYGPATH_W) '$(srcdir)/src/core/SourceInterfaces.c'; fi` - -src/sidebar/shotwell-Sidebar.o: src/sidebar/Sidebar.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/sidebar/shotwell-Sidebar.o -MD -MP -MF src/sidebar/$(DEPDIR)/shotwell-Sidebar.Tpo -c -o src/sidebar/shotwell-Sidebar.o `test -f 'src/sidebar/Sidebar.c' || echo '$(srcdir)/'`src/sidebar/Sidebar.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/sidebar/$(DEPDIR)/shotwell-Sidebar.Tpo src/sidebar/$(DEPDIR)/shotwell-Sidebar.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/sidebar/Sidebar.c' object='src/sidebar/shotwell-Sidebar.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/sidebar/shotwell-Sidebar.o `test -f 'src/sidebar/Sidebar.c' || echo '$(srcdir)/'`src/sidebar/Sidebar.c - -src/sidebar/shotwell-Sidebar.obj: src/sidebar/Sidebar.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/sidebar/shotwell-Sidebar.obj -MD -MP -MF src/sidebar/$(DEPDIR)/shotwell-Sidebar.Tpo -c -o src/sidebar/shotwell-Sidebar.obj `if test -f 'src/sidebar/Sidebar.c'; then $(CYGPATH_W) 'src/sidebar/Sidebar.c'; else $(CYGPATH_W) '$(srcdir)/src/sidebar/Sidebar.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/sidebar/$(DEPDIR)/shotwell-Sidebar.Tpo src/sidebar/$(DEPDIR)/shotwell-Sidebar.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/sidebar/Sidebar.c' object='src/sidebar/shotwell-Sidebar.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/sidebar/shotwell-Sidebar.obj `if test -f 'src/sidebar/Sidebar.c'; then $(CYGPATH_W) 'src/sidebar/Sidebar.c'; else $(CYGPATH_W) '$(srcdir)/src/sidebar/Sidebar.c'; fi` - -src/sidebar/shotwell-Branch.o: src/sidebar/Branch.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/sidebar/shotwell-Branch.o -MD -MP -MF src/sidebar/$(DEPDIR)/shotwell-Branch.Tpo -c -o src/sidebar/shotwell-Branch.o `test -f 'src/sidebar/Branch.c' || echo '$(srcdir)/'`src/sidebar/Branch.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/sidebar/$(DEPDIR)/shotwell-Branch.Tpo src/sidebar/$(DEPDIR)/shotwell-Branch.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/sidebar/Branch.c' object='src/sidebar/shotwell-Branch.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/sidebar/shotwell-Branch.o `test -f 'src/sidebar/Branch.c' || echo '$(srcdir)/'`src/sidebar/Branch.c - -src/sidebar/shotwell-Branch.obj: src/sidebar/Branch.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/sidebar/shotwell-Branch.obj -MD -MP -MF src/sidebar/$(DEPDIR)/shotwell-Branch.Tpo -c -o src/sidebar/shotwell-Branch.obj `if test -f 'src/sidebar/Branch.c'; then $(CYGPATH_W) 'src/sidebar/Branch.c'; else $(CYGPATH_W) '$(srcdir)/src/sidebar/Branch.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/sidebar/$(DEPDIR)/shotwell-Branch.Tpo src/sidebar/$(DEPDIR)/shotwell-Branch.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/sidebar/Branch.c' object='src/sidebar/shotwell-Branch.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/sidebar/shotwell-Branch.obj `if test -f 'src/sidebar/Branch.c'; then $(CYGPATH_W) 'src/sidebar/Branch.c'; else $(CYGPATH_W) '$(srcdir)/src/sidebar/Branch.c'; fi` - -src/sidebar/shotwell-Entry.o: src/sidebar/Entry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/sidebar/shotwell-Entry.o -MD -MP -MF src/sidebar/$(DEPDIR)/shotwell-Entry.Tpo -c -o src/sidebar/shotwell-Entry.o `test -f 'src/sidebar/Entry.c' || echo '$(srcdir)/'`src/sidebar/Entry.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/sidebar/$(DEPDIR)/shotwell-Entry.Tpo src/sidebar/$(DEPDIR)/shotwell-Entry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/sidebar/Entry.c' object='src/sidebar/shotwell-Entry.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/sidebar/shotwell-Entry.o `test -f 'src/sidebar/Entry.c' || echo '$(srcdir)/'`src/sidebar/Entry.c - -src/sidebar/shotwell-Entry.obj: src/sidebar/Entry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/sidebar/shotwell-Entry.obj -MD -MP -MF src/sidebar/$(DEPDIR)/shotwell-Entry.Tpo -c -o src/sidebar/shotwell-Entry.obj `if test -f 'src/sidebar/Entry.c'; then $(CYGPATH_W) 'src/sidebar/Entry.c'; else $(CYGPATH_W) '$(srcdir)/src/sidebar/Entry.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/sidebar/$(DEPDIR)/shotwell-Entry.Tpo src/sidebar/$(DEPDIR)/shotwell-Entry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/sidebar/Entry.c' object='src/sidebar/shotwell-Entry.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/sidebar/shotwell-Entry.obj `if test -f 'src/sidebar/Entry.c'; then $(CYGPATH_W) 'src/sidebar/Entry.c'; else $(CYGPATH_W) '$(srcdir)/src/sidebar/Entry.c'; fi` - -src/sidebar/shotwell-Tree.o: src/sidebar/Tree.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/sidebar/shotwell-Tree.o -MD -MP -MF src/sidebar/$(DEPDIR)/shotwell-Tree.Tpo -c -o src/sidebar/shotwell-Tree.o `test -f 'src/sidebar/Tree.c' || echo '$(srcdir)/'`src/sidebar/Tree.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/sidebar/$(DEPDIR)/shotwell-Tree.Tpo src/sidebar/$(DEPDIR)/shotwell-Tree.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/sidebar/Tree.c' object='src/sidebar/shotwell-Tree.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/sidebar/shotwell-Tree.o `test -f 'src/sidebar/Tree.c' || echo '$(srcdir)/'`src/sidebar/Tree.c - -src/sidebar/shotwell-Tree.obj: src/sidebar/Tree.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/sidebar/shotwell-Tree.obj -MD -MP -MF src/sidebar/$(DEPDIR)/shotwell-Tree.Tpo -c -o src/sidebar/shotwell-Tree.obj `if test -f 'src/sidebar/Tree.c'; then $(CYGPATH_W) 'src/sidebar/Tree.c'; else $(CYGPATH_W) '$(srcdir)/src/sidebar/Tree.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/sidebar/$(DEPDIR)/shotwell-Tree.Tpo src/sidebar/$(DEPDIR)/shotwell-Tree.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/sidebar/Tree.c' object='src/sidebar/shotwell-Tree.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/sidebar/shotwell-Tree.obj `if test -f 'src/sidebar/Tree.c'; then $(CYGPATH_W) 'src/sidebar/Tree.c'; else $(CYGPATH_W) '$(srcdir)/src/sidebar/Tree.c'; fi` - -src/sidebar/shotwell-common.o: src/sidebar/common.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/sidebar/shotwell-common.o -MD -MP -MF src/sidebar/$(DEPDIR)/shotwell-common.Tpo -c -o src/sidebar/shotwell-common.o `test -f 'src/sidebar/common.c' || echo '$(srcdir)/'`src/sidebar/common.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/sidebar/$(DEPDIR)/shotwell-common.Tpo src/sidebar/$(DEPDIR)/shotwell-common.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/sidebar/common.c' object='src/sidebar/shotwell-common.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/sidebar/shotwell-common.o `test -f 'src/sidebar/common.c' || echo '$(srcdir)/'`src/sidebar/common.c - -src/sidebar/shotwell-common.obj: src/sidebar/common.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/sidebar/shotwell-common.obj -MD -MP -MF src/sidebar/$(DEPDIR)/shotwell-common.Tpo -c -o src/sidebar/shotwell-common.obj `if test -f 'src/sidebar/common.c'; then $(CYGPATH_W) 'src/sidebar/common.c'; else $(CYGPATH_W) '$(srcdir)/src/sidebar/common.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/sidebar/$(DEPDIR)/shotwell-common.Tpo src/sidebar/$(DEPDIR)/shotwell-common.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/sidebar/common.c' object='src/sidebar/shotwell-common.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/sidebar/shotwell-common.obj `if test -f 'src/sidebar/common.c'; then $(CYGPATH_W) 'src/sidebar/common.c'; else $(CYGPATH_W) '$(srcdir)/src/sidebar/common.c'; fi` - -src/events/shotwell-Events.o: src/events/Events.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/events/shotwell-Events.o -MD -MP -MF src/events/$(DEPDIR)/shotwell-Events.Tpo -c -o src/events/shotwell-Events.o `test -f 'src/events/Events.c' || echo '$(srcdir)/'`src/events/Events.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/events/$(DEPDIR)/shotwell-Events.Tpo src/events/$(DEPDIR)/shotwell-Events.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/events/Events.c' object='src/events/shotwell-Events.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/events/shotwell-Events.o `test -f 'src/events/Events.c' || echo '$(srcdir)/'`src/events/Events.c - -src/events/shotwell-Events.obj: src/events/Events.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/events/shotwell-Events.obj -MD -MP -MF src/events/$(DEPDIR)/shotwell-Events.Tpo -c -o src/events/shotwell-Events.obj `if test -f 'src/events/Events.c'; then $(CYGPATH_W) 'src/events/Events.c'; else $(CYGPATH_W) '$(srcdir)/src/events/Events.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/events/$(DEPDIR)/shotwell-Events.Tpo src/events/$(DEPDIR)/shotwell-Events.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/events/Events.c' object='src/events/shotwell-Events.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/events/shotwell-Events.obj `if test -f 'src/events/Events.c'; then $(CYGPATH_W) 'src/events/Events.c'; else $(CYGPATH_W) '$(srcdir)/src/events/Events.c'; fi` - -src/events/shotwell-EventsBranch.o: src/events/EventsBranch.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/events/shotwell-EventsBranch.o -MD -MP -MF src/events/$(DEPDIR)/shotwell-EventsBranch.Tpo -c -o src/events/shotwell-EventsBranch.o `test -f 'src/events/EventsBranch.c' || echo '$(srcdir)/'`src/events/EventsBranch.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/events/$(DEPDIR)/shotwell-EventsBranch.Tpo src/events/$(DEPDIR)/shotwell-EventsBranch.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/events/EventsBranch.c' object='src/events/shotwell-EventsBranch.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/events/shotwell-EventsBranch.o `test -f 'src/events/EventsBranch.c' || echo '$(srcdir)/'`src/events/EventsBranch.c - -src/events/shotwell-EventsBranch.obj: src/events/EventsBranch.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/events/shotwell-EventsBranch.obj -MD -MP -MF src/events/$(DEPDIR)/shotwell-EventsBranch.Tpo -c -o src/events/shotwell-EventsBranch.obj `if test -f 'src/events/EventsBranch.c'; then $(CYGPATH_W) 'src/events/EventsBranch.c'; else $(CYGPATH_W) '$(srcdir)/src/events/EventsBranch.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/events/$(DEPDIR)/shotwell-EventsBranch.Tpo src/events/$(DEPDIR)/shotwell-EventsBranch.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/events/EventsBranch.c' object='src/events/shotwell-EventsBranch.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/events/shotwell-EventsBranch.obj `if test -f 'src/events/EventsBranch.c'; then $(CYGPATH_W) 'src/events/EventsBranch.c'; else $(CYGPATH_W) '$(srcdir)/src/events/EventsBranch.c'; fi` - -src/events/shotwell-EventsDirectoryPage.o: src/events/EventsDirectoryPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/events/shotwell-EventsDirectoryPage.o -MD -MP -MF src/events/$(DEPDIR)/shotwell-EventsDirectoryPage.Tpo -c -o src/events/shotwell-EventsDirectoryPage.o `test -f 'src/events/EventsDirectoryPage.c' || echo '$(srcdir)/'`src/events/EventsDirectoryPage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/events/$(DEPDIR)/shotwell-EventsDirectoryPage.Tpo src/events/$(DEPDIR)/shotwell-EventsDirectoryPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/events/EventsDirectoryPage.c' object='src/events/shotwell-EventsDirectoryPage.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/events/shotwell-EventsDirectoryPage.o `test -f 'src/events/EventsDirectoryPage.c' || echo '$(srcdir)/'`src/events/EventsDirectoryPage.c - -src/events/shotwell-EventsDirectoryPage.obj: src/events/EventsDirectoryPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/events/shotwell-EventsDirectoryPage.obj -MD -MP -MF src/events/$(DEPDIR)/shotwell-EventsDirectoryPage.Tpo -c -o src/events/shotwell-EventsDirectoryPage.obj `if test -f 'src/events/EventsDirectoryPage.c'; then $(CYGPATH_W) 'src/events/EventsDirectoryPage.c'; else $(CYGPATH_W) '$(srcdir)/src/events/EventsDirectoryPage.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/events/$(DEPDIR)/shotwell-EventsDirectoryPage.Tpo src/events/$(DEPDIR)/shotwell-EventsDirectoryPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/events/EventsDirectoryPage.c' object='src/events/shotwell-EventsDirectoryPage.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/events/shotwell-EventsDirectoryPage.obj `if test -f 'src/events/EventsDirectoryPage.c'; then $(CYGPATH_W) 'src/events/EventsDirectoryPage.c'; else $(CYGPATH_W) '$(srcdir)/src/events/EventsDirectoryPage.c'; fi` - -src/events/shotwell-EventPage.o: src/events/EventPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/events/shotwell-EventPage.o -MD -MP -MF src/events/$(DEPDIR)/shotwell-EventPage.Tpo -c -o src/events/shotwell-EventPage.o `test -f 'src/events/EventPage.c' || echo '$(srcdir)/'`src/events/EventPage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/events/$(DEPDIR)/shotwell-EventPage.Tpo src/events/$(DEPDIR)/shotwell-EventPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/events/EventPage.c' object='src/events/shotwell-EventPage.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/events/shotwell-EventPage.o `test -f 'src/events/EventPage.c' || echo '$(srcdir)/'`src/events/EventPage.c - -src/events/shotwell-EventPage.obj: src/events/EventPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/events/shotwell-EventPage.obj -MD -MP -MF src/events/$(DEPDIR)/shotwell-EventPage.Tpo -c -o src/events/shotwell-EventPage.obj `if test -f 'src/events/EventPage.c'; then $(CYGPATH_W) 'src/events/EventPage.c'; else $(CYGPATH_W) '$(srcdir)/src/events/EventPage.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/events/$(DEPDIR)/shotwell-EventPage.Tpo src/events/$(DEPDIR)/shotwell-EventPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/events/EventPage.c' object='src/events/shotwell-EventPage.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/events/shotwell-EventPage.obj `if test -f 'src/events/EventPage.c'; then $(CYGPATH_W) 'src/events/EventPage.c'; else $(CYGPATH_W) '$(srcdir)/src/events/EventPage.c'; fi` - -src/events/shotwell-EventDirectoryItem.o: src/events/EventDirectoryItem.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/events/shotwell-EventDirectoryItem.o -MD -MP -MF src/events/$(DEPDIR)/shotwell-EventDirectoryItem.Tpo -c -o src/events/shotwell-EventDirectoryItem.o `test -f 'src/events/EventDirectoryItem.c' || echo '$(srcdir)/'`src/events/EventDirectoryItem.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/events/$(DEPDIR)/shotwell-EventDirectoryItem.Tpo src/events/$(DEPDIR)/shotwell-EventDirectoryItem.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/events/EventDirectoryItem.c' object='src/events/shotwell-EventDirectoryItem.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/events/shotwell-EventDirectoryItem.o `test -f 'src/events/EventDirectoryItem.c' || echo '$(srcdir)/'`src/events/EventDirectoryItem.c - -src/events/shotwell-EventDirectoryItem.obj: src/events/EventDirectoryItem.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/events/shotwell-EventDirectoryItem.obj -MD -MP -MF src/events/$(DEPDIR)/shotwell-EventDirectoryItem.Tpo -c -o src/events/shotwell-EventDirectoryItem.obj `if test -f 'src/events/EventDirectoryItem.c'; then $(CYGPATH_W) 'src/events/EventDirectoryItem.c'; else $(CYGPATH_W) '$(srcdir)/src/events/EventDirectoryItem.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/events/$(DEPDIR)/shotwell-EventDirectoryItem.Tpo src/events/$(DEPDIR)/shotwell-EventDirectoryItem.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/events/EventDirectoryItem.c' object='src/events/shotwell-EventDirectoryItem.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/events/shotwell-EventDirectoryItem.obj `if test -f 'src/events/EventDirectoryItem.c'; then $(CYGPATH_W) 'src/events/EventDirectoryItem.c'; else $(CYGPATH_W) '$(srcdir)/src/events/EventDirectoryItem.c'; fi` - -src/tags/shotwell-Tags.o: src/tags/Tags.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/tags/shotwell-Tags.o -MD -MP -MF src/tags/$(DEPDIR)/shotwell-Tags.Tpo -c -o src/tags/shotwell-Tags.o `test -f 'src/tags/Tags.c' || echo '$(srcdir)/'`src/tags/Tags.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/tags/$(DEPDIR)/shotwell-Tags.Tpo src/tags/$(DEPDIR)/shotwell-Tags.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/tags/Tags.c' object='src/tags/shotwell-Tags.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/tags/shotwell-Tags.o `test -f 'src/tags/Tags.c' || echo '$(srcdir)/'`src/tags/Tags.c - -src/tags/shotwell-Tags.obj: src/tags/Tags.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/tags/shotwell-Tags.obj -MD -MP -MF src/tags/$(DEPDIR)/shotwell-Tags.Tpo -c -o src/tags/shotwell-Tags.obj `if test -f 'src/tags/Tags.c'; then $(CYGPATH_W) 'src/tags/Tags.c'; else $(CYGPATH_W) '$(srcdir)/src/tags/Tags.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/tags/$(DEPDIR)/shotwell-Tags.Tpo src/tags/$(DEPDIR)/shotwell-Tags.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/tags/Tags.c' object='src/tags/shotwell-Tags.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/tags/shotwell-Tags.obj `if test -f 'src/tags/Tags.c'; then $(CYGPATH_W) 'src/tags/Tags.c'; else $(CYGPATH_W) '$(srcdir)/src/tags/Tags.c'; fi` - -src/tags/shotwell-TagsBranch.o: src/tags/TagsBranch.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/tags/shotwell-TagsBranch.o -MD -MP -MF src/tags/$(DEPDIR)/shotwell-TagsBranch.Tpo -c -o src/tags/shotwell-TagsBranch.o `test -f 'src/tags/TagsBranch.c' || echo '$(srcdir)/'`src/tags/TagsBranch.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/tags/$(DEPDIR)/shotwell-TagsBranch.Tpo src/tags/$(DEPDIR)/shotwell-TagsBranch.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/tags/TagsBranch.c' object='src/tags/shotwell-TagsBranch.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/tags/shotwell-TagsBranch.o `test -f 'src/tags/TagsBranch.c' || echo '$(srcdir)/'`src/tags/TagsBranch.c - -src/tags/shotwell-TagsBranch.obj: src/tags/TagsBranch.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/tags/shotwell-TagsBranch.obj -MD -MP -MF src/tags/$(DEPDIR)/shotwell-TagsBranch.Tpo -c -o src/tags/shotwell-TagsBranch.obj `if test -f 'src/tags/TagsBranch.c'; then $(CYGPATH_W) 'src/tags/TagsBranch.c'; else $(CYGPATH_W) '$(srcdir)/src/tags/TagsBranch.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/tags/$(DEPDIR)/shotwell-TagsBranch.Tpo src/tags/$(DEPDIR)/shotwell-TagsBranch.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/tags/TagsBranch.c' object='src/tags/shotwell-TagsBranch.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/tags/shotwell-TagsBranch.obj `if test -f 'src/tags/TagsBranch.c'; then $(CYGPATH_W) 'src/tags/TagsBranch.c'; else $(CYGPATH_W) '$(srcdir)/src/tags/TagsBranch.c'; fi` - -src/tags/shotwell-TagPage.o: src/tags/TagPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/tags/shotwell-TagPage.o -MD -MP -MF src/tags/$(DEPDIR)/shotwell-TagPage.Tpo -c -o src/tags/shotwell-TagPage.o `test -f 'src/tags/TagPage.c' || echo '$(srcdir)/'`src/tags/TagPage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/tags/$(DEPDIR)/shotwell-TagPage.Tpo src/tags/$(DEPDIR)/shotwell-TagPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/tags/TagPage.c' object='src/tags/shotwell-TagPage.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/tags/shotwell-TagPage.o `test -f 'src/tags/TagPage.c' || echo '$(srcdir)/'`src/tags/TagPage.c - -src/tags/shotwell-TagPage.obj: src/tags/TagPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/tags/shotwell-TagPage.obj -MD -MP -MF src/tags/$(DEPDIR)/shotwell-TagPage.Tpo -c -o src/tags/shotwell-TagPage.obj `if test -f 'src/tags/TagPage.c'; then $(CYGPATH_W) 'src/tags/TagPage.c'; else $(CYGPATH_W) '$(srcdir)/src/tags/TagPage.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/tags/$(DEPDIR)/shotwell-TagPage.Tpo src/tags/$(DEPDIR)/shotwell-TagPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/tags/TagPage.c' object='src/tags/shotwell-TagPage.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/tags/shotwell-TagPage.obj `if test -f 'src/tags/TagPage.c'; then $(CYGPATH_W) 'src/tags/TagPage.c'; else $(CYGPATH_W) '$(srcdir)/src/tags/TagPage.c'; fi` - -src/tags/shotwell-HierarchicalTagIndex.o: src/tags/HierarchicalTagIndex.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/tags/shotwell-HierarchicalTagIndex.o -MD -MP -MF src/tags/$(DEPDIR)/shotwell-HierarchicalTagIndex.Tpo -c -o src/tags/shotwell-HierarchicalTagIndex.o `test -f 'src/tags/HierarchicalTagIndex.c' || echo '$(srcdir)/'`src/tags/HierarchicalTagIndex.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/tags/$(DEPDIR)/shotwell-HierarchicalTagIndex.Tpo src/tags/$(DEPDIR)/shotwell-HierarchicalTagIndex.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/tags/HierarchicalTagIndex.c' object='src/tags/shotwell-HierarchicalTagIndex.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/tags/shotwell-HierarchicalTagIndex.o `test -f 'src/tags/HierarchicalTagIndex.c' || echo '$(srcdir)/'`src/tags/HierarchicalTagIndex.c - -src/tags/shotwell-HierarchicalTagIndex.obj: src/tags/HierarchicalTagIndex.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/tags/shotwell-HierarchicalTagIndex.obj -MD -MP -MF src/tags/$(DEPDIR)/shotwell-HierarchicalTagIndex.Tpo -c -o src/tags/shotwell-HierarchicalTagIndex.obj `if test -f 'src/tags/HierarchicalTagIndex.c'; then $(CYGPATH_W) 'src/tags/HierarchicalTagIndex.c'; else $(CYGPATH_W) '$(srcdir)/src/tags/HierarchicalTagIndex.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/tags/$(DEPDIR)/shotwell-HierarchicalTagIndex.Tpo src/tags/$(DEPDIR)/shotwell-HierarchicalTagIndex.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/tags/HierarchicalTagIndex.c' object='src/tags/shotwell-HierarchicalTagIndex.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/tags/shotwell-HierarchicalTagIndex.obj `if test -f 'src/tags/HierarchicalTagIndex.c'; then $(CYGPATH_W) 'src/tags/HierarchicalTagIndex.c'; else $(CYGPATH_W) '$(srcdir)/src/tags/HierarchicalTagIndex.c'; fi` - -src/tags/shotwell-HierarchicalTagUtilities.o: src/tags/HierarchicalTagUtilities.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/tags/shotwell-HierarchicalTagUtilities.o -MD -MP -MF src/tags/$(DEPDIR)/shotwell-HierarchicalTagUtilities.Tpo -c -o src/tags/shotwell-HierarchicalTagUtilities.o `test -f 'src/tags/HierarchicalTagUtilities.c' || echo '$(srcdir)/'`src/tags/HierarchicalTagUtilities.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/tags/$(DEPDIR)/shotwell-HierarchicalTagUtilities.Tpo src/tags/$(DEPDIR)/shotwell-HierarchicalTagUtilities.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/tags/HierarchicalTagUtilities.c' object='src/tags/shotwell-HierarchicalTagUtilities.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/tags/shotwell-HierarchicalTagUtilities.o `test -f 'src/tags/HierarchicalTagUtilities.c' || echo '$(srcdir)/'`src/tags/HierarchicalTagUtilities.c - -src/tags/shotwell-HierarchicalTagUtilities.obj: src/tags/HierarchicalTagUtilities.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/tags/shotwell-HierarchicalTagUtilities.obj -MD -MP -MF src/tags/$(DEPDIR)/shotwell-HierarchicalTagUtilities.Tpo -c -o src/tags/shotwell-HierarchicalTagUtilities.obj `if test -f 'src/tags/HierarchicalTagUtilities.c'; then $(CYGPATH_W) 'src/tags/HierarchicalTagUtilities.c'; else $(CYGPATH_W) '$(srcdir)/src/tags/HierarchicalTagUtilities.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/tags/$(DEPDIR)/shotwell-HierarchicalTagUtilities.Tpo src/tags/$(DEPDIR)/shotwell-HierarchicalTagUtilities.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/tags/HierarchicalTagUtilities.c' object='src/tags/shotwell-HierarchicalTagUtilities.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/tags/shotwell-HierarchicalTagUtilities.obj `if test -f 'src/tags/HierarchicalTagUtilities.c'; then $(CYGPATH_W) 'src/tags/HierarchicalTagUtilities.c'; else $(CYGPATH_W) '$(srcdir)/src/tags/HierarchicalTagUtilities.c'; fi` - -src/camera/shotwell-Camera.o: src/camera/Camera.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/camera/shotwell-Camera.o -MD -MP -MF src/camera/$(DEPDIR)/shotwell-Camera.Tpo -c -o src/camera/shotwell-Camera.o `test -f 'src/camera/Camera.c' || echo '$(srcdir)/'`src/camera/Camera.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/camera/$(DEPDIR)/shotwell-Camera.Tpo src/camera/$(DEPDIR)/shotwell-Camera.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/camera/Camera.c' object='src/camera/shotwell-Camera.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/camera/shotwell-Camera.o `test -f 'src/camera/Camera.c' || echo '$(srcdir)/'`src/camera/Camera.c - -src/camera/shotwell-Camera.obj: src/camera/Camera.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/camera/shotwell-Camera.obj -MD -MP -MF src/camera/$(DEPDIR)/shotwell-Camera.Tpo -c -o src/camera/shotwell-Camera.obj `if test -f 'src/camera/Camera.c'; then $(CYGPATH_W) 'src/camera/Camera.c'; else $(CYGPATH_W) '$(srcdir)/src/camera/Camera.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/camera/$(DEPDIR)/shotwell-Camera.Tpo src/camera/$(DEPDIR)/shotwell-Camera.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/camera/Camera.c' object='src/camera/shotwell-Camera.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/camera/shotwell-Camera.obj `if test -f 'src/camera/Camera.c'; then $(CYGPATH_W) 'src/camera/Camera.c'; else $(CYGPATH_W) '$(srcdir)/src/camera/Camera.c'; fi` - -src/camera/shotwell-CameraBranch.o: src/camera/CameraBranch.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/camera/shotwell-CameraBranch.o -MD -MP -MF src/camera/$(DEPDIR)/shotwell-CameraBranch.Tpo -c -o src/camera/shotwell-CameraBranch.o `test -f 'src/camera/CameraBranch.c' || echo '$(srcdir)/'`src/camera/CameraBranch.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/camera/$(DEPDIR)/shotwell-CameraBranch.Tpo src/camera/$(DEPDIR)/shotwell-CameraBranch.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/camera/CameraBranch.c' object='src/camera/shotwell-CameraBranch.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/camera/shotwell-CameraBranch.o `test -f 'src/camera/CameraBranch.c' || echo '$(srcdir)/'`src/camera/CameraBranch.c - -src/camera/shotwell-CameraBranch.obj: src/camera/CameraBranch.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/camera/shotwell-CameraBranch.obj -MD -MP -MF src/camera/$(DEPDIR)/shotwell-CameraBranch.Tpo -c -o src/camera/shotwell-CameraBranch.obj `if test -f 'src/camera/CameraBranch.c'; then $(CYGPATH_W) 'src/camera/CameraBranch.c'; else $(CYGPATH_W) '$(srcdir)/src/camera/CameraBranch.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/camera/$(DEPDIR)/shotwell-CameraBranch.Tpo src/camera/$(DEPDIR)/shotwell-CameraBranch.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/camera/CameraBranch.c' object='src/camera/shotwell-CameraBranch.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/camera/shotwell-CameraBranch.obj `if test -f 'src/camera/CameraBranch.c'; then $(CYGPATH_W) 'src/camera/CameraBranch.c'; else $(CYGPATH_W) '$(srcdir)/src/camera/CameraBranch.c'; fi` - -src/camera/shotwell-CameraTable.o: src/camera/CameraTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/camera/shotwell-CameraTable.o -MD -MP -MF src/camera/$(DEPDIR)/shotwell-CameraTable.Tpo -c -o src/camera/shotwell-CameraTable.o `test -f 'src/camera/CameraTable.c' || echo '$(srcdir)/'`src/camera/CameraTable.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/camera/$(DEPDIR)/shotwell-CameraTable.Tpo src/camera/$(DEPDIR)/shotwell-CameraTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/camera/CameraTable.c' object='src/camera/shotwell-CameraTable.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/camera/shotwell-CameraTable.o `test -f 'src/camera/CameraTable.c' || echo '$(srcdir)/'`src/camera/CameraTable.c - -src/camera/shotwell-CameraTable.obj: src/camera/CameraTable.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/camera/shotwell-CameraTable.obj -MD -MP -MF src/camera/$(DEPDIR)/shotwell-CameraTable.Tpo -c -o src/camera/shotwell-CameraTable.obj `if test -f 'src/camera/CameraTable.c'; then $(CYGPATH_W) 'src/camera/CameraTable.c'; else $(CYGPATH_W) '$(srcdir)/src/camera/CameraTable.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/camera/$(DEPDIR)/shotwell-CameraTable.Tpo src/camera/$(DEPDIR)/shotwell-CameraTable.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/camera/CameraTable.c' object='src/camera/shotwell-CameraTable.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/camera/shotwell-CameraTable.obj `if test -f 'src/camera/CameraTable.c'; then $(CYGPATH_W) 'src/camera/CameraTable.c'; else $(CYGPATH_W) '$(srcdir)/src/camera/CameraTable.c'; fi` - -src/camera/shotwell-GPhoto.o: src/camera/GPhoto.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/camera/shotwell-GPhoto.o -MD -MP -MF src/camera/$(DEPDIR)/shotwell-GPhoto.Tpo -c -o src/camera/shotwell-GPhoto.o `test -f 'src/camera/GPhoto.c' || echo '$(srcdir)/'`src/camera/GPhoto.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/camera/$(DEPDIR)/shotwell-GPhoto.Tpo src/camera/$(DEPDIR)/shotwell-GPhoto.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/camera/GPhoto.c' object='src/camera/shotwell-GPhoto.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/camera/shotwell-GPhoto.o `test -f 'src/camera/GPhoto.c' || echo '$(srcdir)/'`src/camera/GPhoto.c - -src/camera/shotwell-GPhoto.obj: src/camera/GPhoto.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/camera/shotwell-GPhoto.obj -MD -MP -MF src/camera/$(DEPDIR)/shotwell-GPhoto.Tpo -c -o src/camera/shotwell-GPhoto.obj `if test -f 'src/camera/GPhoto.c'; then $(CYGPATH_W) 'src/camera/GPhoto.c'; else $(CYGPATH_W) '$(srcdir)/src/camera/GPhoto.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/camera/$(DEPDIR)/shotwell-GPhoto.Tpo src/camera/$(DEPDIR)/shotwell-GPhoto.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/camera/GPhoto.c' object='src/camera/shotwell-GPhoto.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/camera/shotwell-GPhoto.obj `if test -f 'src/camera/GPhoto.c'; then $(CYGPATH_W) 'src/camera/GPhoto.c'; else $(CYGPATH_W) '$(srcdir)/src/camera/GPhoto.c'; fi` - -src/camera/shotwell-ImportPage.o: src/camera/ImportPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/camera/shotwell-ImportPage.o -MD -MP -MF src/camera/$(DEPDIR)/shotwell-ImportPage.Tpo -c -o src/camera/shotwell-ImportPage.o `test -f 'src/camera/ImportPage.c' || echo '$(srcdir)/'`src/camera/ImportPage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/camera/$(DEPDIR)/shotwell-ImportPage.Tpo src/camera/$(DEPDIR)/shotwell-ImportPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/camera/ImportPage.c' object='src/camera/shotwell-ImportPage.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/camera/shotwell-ImportPage.o `test -f 'src/camera/ImportPage.c' || echo '$(srcdir)/'`src/camera/ImportPage.c - -src/camera/shotwell-ImportPage.obj: src/camera/ImportPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/camera/shotwell-ImportPage.obj -MD -MP -MF src/camera/$(DEPDIR)/shotwell-ImportPage.Tpo -c -o src/camera/shotwell-ImportPage.obj `if test -f 'src/camera/ImportPage.c'; then $(CYGPATH_W) 'src/camera/ImportPage.c'; else $(CYGPATH_W) '$(srcdir)/src/camera/ImportPage.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/camera/$(DEPDIR)/shotwell-ImportPage.Tpo src/camera/$(DEPDIR)/shotwell-ImportPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/camera/ImportPage.c' object='src/camera/shotwell-ImportPage.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/camera/shotwell-ImportPage.obj `if test -f 'src/camera/ImportPage.c'; then $(CYGPATH_W) 'src/camera/ImportPage.c'; else $(CYGPATH_W) '$(srcdir)/src/camera/ImportPage.c'; fi` - -src/searches/shotwell-Searches.o: src/searches/Searches.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/searches/shotwell-Searches.o -MD -MP -MF src/searches/$(DEPDIR)/shotwell-Searches.Tpo -c -o src/searches/shotwell-Searches.o `test -f 'src/searches/Searches.c' || echo '$(srcdir)/'`src/searches/Searches.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/searches/$(DEPDIR)/shotwell-Searches.Tpo src/searches/$(DEPDIR)/shotwell-Searches.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/searches/Searches.c' object='src/searches/shotwell-Searches.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/searches/shotwell-Searches.o `test -f 'src/searches/Searches.c' || echo '$(srcdir)/'`src/searches/Searches.c - -src/searches/shotwell-Searches.obj: src/searches/Searches.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/searches/shotwell-Searches.obj -MD -MP -MF src/searches/$(DEPDIR)/shotwell-Searches.Tpo -c -o src/searches/shotwell-Searches.obj `if test -f 'src/searches/Searches.c'; then $(CYGPATH_W) 'src/searches/Searches.c'; else $(CYGPATH_W) '$(srcdir)/src/searches/Searches.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/searches/$(DEPDIR)/shotwell-Searches.Tpo src/searches/$(DEPDIR)/shotwell-Searches.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/searches/Searches.c' object='src/searches/shotwell-Searches.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/searches/shotwell-Searches.obj `if test -f 'src/searches/Searches.c'; then $(CYGPATH_W) 'src/searches/Searches.c'; else $(CYGPATH_W) '$(srcdir)/src/searches/Searches.c'; fi` - -src/searches/shotwell-SearchesBranch.o: src/searches/SearchesBranch.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/searches/shotwell-SearchesBranch.o -MD -MP -MF src/searches/$(DEPDIR)/shotwell-SearchesBranch.Tpo -c -o src/searches/shotwell-SearchesBranch.o `test -f 'src/searches/SearchesBranch.c' || echo '$(srcdir)/'`src/searches/SearchesBranch.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/searches/$(DEPDIR)/shotwell-SearchesBranch.Tpo src/searches/$(DEPDIR)/shotwell-SearchesBranch.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/searches/SearchesBranch.c' object='src/searches/shotwell-SearchesBranch.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/searches/shotwell-SearchesBranch.o `test -f 'src/searches/SearchesBranch.c' || echo '$(srcdir)/'`src/searches/SearchesBranch.c - -src/searches/shotwell-SearchesBranch.obj: src/searches/SearchesBranch.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/searches/shotwell-SearchesBranch.obj -MD -MP -MF src/searches/$(DEPDIR)/shotwell-SearchesBranch.Tpo -c -o src/searches/shotwell-SearchesBranch.obj `if test -f 'src/searches/SearchesBranch.c'; then $(CYGPATH_W) 'src/searches/SearchesBranch.c'; else $(CYGPATH_W) '$(srcdir)/src/searches/SearchesBranch.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/searches/$(DEPDIR)/shotwell-SearchesBranch.Tpo src/searches/$(DEPDIR)/shotwell-SearchesBranch.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/searches/SearchesBranch.c' object='src/searches/shotwell-SearchesBranch.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/searches/shotwell-SearchesBranch.obj `if test -f 'src/searches/SearchesBranch.c'; then $(CYGPATH_W) 'src/searches/SearchesBranch.c'; else $(CYGPATH_W) '$(srcdir)/src/searches/SearchesBranch.c'; fi` - -src/searches/shotwell-SearchBoolean.o: src/searches/SearchBoolean.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/searches/shotwell-SearchBoolean.o -MD -MP -MF src/searches/$(DEPDIR)/shotwell-SearchBoolean.Tpo -c -o src/searches/shotwell-SearchBoolean.o `test -f 'src/searches/SearchBoolean.c' || echo '$(srcdir)/'`src/searches/SearchBoolean.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/searches/$(DEPDIR)/shotwell-SearchBoolean.Tpo src/searches/$(DEPDIR)/shotwell-SearchBoolean.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/searches/SearchBoolean.c' object='src/searches/shotwell-SearchBoolean.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/searches/shotwell-SearchBoolean.o `test -f 'src/searches/SearchBoolean.c' || echo '$(srcdir)/'`src/searches/SearchBoolean.c - -src/searches/shotwell-SearchBoolean.obj: src/searches/SearchBoolean.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/searches/shotwell-SearchBoolean.obj -MD -MP -MF src/searches/$(DEPDIR)/shotwell-SearchBoolean.Tpo -c -o src/searches/shotwell-SearchBoolean.obj `if test -f 'src/searches/SearchBoolean.c'; then $(CYGPATH_W) 'src/searches/SearchBoolean.c'; else $(CYGPATH_W) '$(srcdir)/src/searches/SearchBoolean.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/searches/$(DEPDIR)/shotwell-SearchBoolean.Tpo src/searches/$(DEPDIR)/shotwell-SearchBoolean.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/searches/SearchBoolean.c' object='src/searches/shotwell-SearchBoolean.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/searches/shotwell-SearchBoolean.obj `if test -f 'src/searches/SearchBoolean.c'; then $(CYGPATH_W) 'src/searches/SearchBoolean.c'; else $(CYGPATH_W) '$(srcdir)/src/searches/SearchBoolean.c'; fi` - -src/searches/shotwell-SavedSearchPage.o: src/searches/SavedSearchPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/searches/shotwell-SavedSearchPage.o -MD -MP -MF src/searches/$(DEPDIR)/shotwell-SavedSearchPage.Tpo -c -o src/searches/shotwell-SavedSearchPage.o `test -f 'src/searches/SavedSearchPage.c' || echo '$(srcdir)/'`src/searches/SavedSearchPage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/searches/$(DEPDIR)/shotwell-SavedSearchPage.Tpo src/searches/$(DEPDIR)/shotwell-SavedSearchPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/searches/SavedSearchPage.c' object='src/searches/shotwell-SavedSearchPage.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/searches/shotwell-SavedSearchPage.o `test -f 'src/searches/SavedSearchPage.c' || echo '$(srcdir)/'`src/searches/SavedSearchPage.c - -src/searches/shotwell-SavedSearchPage.obj: src/searches/SavedSearchPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/searches/shotwell-SavedSearchPage.obj -MD -MP -MF src/searches/$(DEPDIR)/shotwell-SavedSearchPage.Tpo -c -o src/searches/shotwell-SavedSearchPage.obj `if test -f 'src/searches/SavedSearchPage.c'; then $(CYGPATH_W) 'src/searches/SavedSearchPage.c'; else $(CYGPATH_W) '$(srcdir)/src/searches/SavedSearchPage.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/searches/$(DEPDIR)/shotwell-SavedSearchPage.Tpo src/searches/$(DEPDIR)/shotwell-SavedSearchPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/searches/SavedSearchPage.c' object='src/searches/shotwell-SavedSearchPage.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/searches/shotwell-SavedSearchPage.obj `if test -f 'src/searches/SavedSearchPage.c'; then $(CYGPATH_W) 'src/searches/SavedSearchPage.c'; else $(CYGPATH_W) '$(srcdir)/src/searches/SavedSearchPage.c'; fi` - -src/searches/shotwell-SavedSearchDialog.o: src/searches/SavedSearchDialog.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/searches/shotwell-SavedSearchDialog.o -MD -MP -MF src/searches/$(DEPDIR)/shotwell-SavedSearchDialog.Tpo -c -o src/searches/shotwell-SavedSearchDialog.o `test -f 'src/searches/SavedSearchDialog.c' || echo '$(srcdir)/'`src/searches/SavedSearchDialog.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/searches/$(DEPDIR)/shotwell-SavedSearchDialog.Tpo src/searches/$(DEPDIR)/shotwell-SavedSearchDialog.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/searches/SavedSearchDialog.c' object='src/searches/shotwell-SavedSearchDialog.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/searches/shotwell-SavedSearchDialog.o `test -f 'src/searches/SavedSearchDialog.c' || echo '$(srcdir)/'`src/searches/SavedSearchDialog.c - -src/searches/shotwell-SavedSearchDialog.obj: src/searches/SavedSearchDialog.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/searches/shotwell-SavedSearchDialog.obj -MD -MP -MF src/searches/$(DEPDIR)/shotwell-SavedSearchDialog.Tpo -c -o src/searches/shotwell-SavedSearchDialog.obj `if test -f 'src/searches/SavedSearchDialog.c'; then $(CYGPATH_W) 'src/searches/SavedSearchDialog.c'; else $(CYGPATH_W) '$(srcdir)/src/searches/SavedSearchDialog.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/searches/$(DEPDIR)/shotwell-SavedSearchDialog.Tpo src/searches/$(DEPDIR)/shotwell-SavedSearchDialog.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/searches/SavedSearchDialog.c' object='src/searches/shotwell-SavedSearchDialog.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/searches/shotwell-SavedSearchDialog.obj `if test -f 'src/searches/SavedSearchDialog.c'; then $(CYGPATH_W) 'src/searches/SavedSearchDialog.c'; else $(CYGPATH_W) '$(srcdir)/src/searches/SavedSearchDialog.c'; fi` - -src/config/shotwell-Config.o: src/config/Config.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/config/shotwell-Config.o -MD -MP -MF src/config/$(DEPDIR)/shotwell-Config.Tpo -c -o src/config/shotwell-Config.o `test -f 'src/config/Config.c' || echo '$(srcdir)/'`src/config/Config.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/config/$(DEPDIR)/shotwell-Config.Tpo src/config/$(DEPDIR)/shotwell-Config.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/config/Config.c' object='src/config/shotwell-Config.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/config/shotwell-Config.o `test -f 'src/config/Config.c' || echo '$(srcdir)/'`src/config/Config.c - -src/config/shotwell-Config.obj: src/config/Config.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/config/shotwell-Config.obj -MD -MP -MF src/config/$(DEPDIR)/shotwell-Config.Tpo -c -o src/config/shotwell-Config.obj `if test -f 'src/config/Config.c'; then $(CYGPATH_W) 'src/config/Config.c'; else $(CYGPATH_W) '$(srcdir)/src/config/Config.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/config/$(DEPDIR)/shotwell-Config.Tpo src/config/$(DEPDIR)/shotwell-Config.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/config/Config.c' object='src/config/shotwell-Config.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/config/shotwell-Config.obj `if test -f 'src/config/Config.c'; then $(CYGPATH_W) 'src/config/Config.c'; else $(CYGPATH_W) '$(srcdir)/src/config/Config.c'; fi` - -src/config/shotwell-ConfigurationInterfaces.o: src/config/ConfigurationInterfaces.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/config/shotwell-ConfigurationInterfaces.o -MD -MP -MF src/config/$(DEPDIR)/shotwell-ConfigurationInterfaces.Tpo -c -o src/config/shotwell-ConfigurationInterfaces.o `test -f 'src/config/ConfigurationInterfaces.c' || echo '$(srcdir)/'`src/config/ConfigurationInterfaces.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/config/$(DEPDIR)/shotwell-ConfigurationInterfaces.Tpo src/config/$(DEPDIR)/shotwell-ConfigurationInterfaces.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/config/ConfigurationInterfaces.c' object='src/config/shotwell-ConfigurationInterfaces.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/config/shotwell-ConfigurationInterfaces.o `test -f 'src/config/ConfigurationInterfaces.c' || echo '$(srcdir)/'`src/config/ConfigurationInterfaces.c - -src/config/shotwell-ConfigurationInterfaces.obj: src/config/ConfigurationInterfaces.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/config/shotwell-ConfigurationInterfaces.obj -MD -MP -MF src/config/$(DEPDIR)/shotwell-ConfigurationInterfaces.Tpo -c -o src/config/shotwell-ConfigurationInterfaces.obj `if test -f 'src/config/ConfigurationInterfaces.c'; then $(CYGPATH_W) 'src/config/ConfigurationInterfaces.c'; else $(CYGPATH_W) '$(srcdir)/src/config/ConfigurationInterfaces.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/config/$(DEPDIR)/shotwell-ConfigurationInterfaces.Tpo src/config/$(DEPDIR)/shotwell-ConfigurationInterfaces.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/config/ConfigurationInterfaces.c' object='src/config/shotwell-ConfigurationInterfaces.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/config/shotwell-ConfigurationInterfaces.obj `if test -f 'src/config/ConfigurationInterfaces.c'; then $(CYGPATH_W) 'src/config/ConfigurationInterfaces.c'; else $(CYGPATH_W) '$(srcdir)/src/config/ConfigurationInterfaces.c'; fi` - -src/config/shotwell-GSettingsEngine.o: src/config/GSettingsEngine.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/config/shotwell-GSettingsEngine.o -MD -MP -MF src/config/$(DEPDIR)/shotwell-GSettingsEngine.Tpo -c -o src/config/shotwell-GSettingsEngine.o `test -f 'src/config/GSettingsEngine.c' || echo '$(srcdir)/'`src/config/GSettingsEngine.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/config/$(DEPDIR)/shotwell-GSettingsEngine.Tpo src/config/$(DEPDIR)/shotwell-GSettingsEngine.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/config/GSettingsEngine.c' object='src/config/shotwell-GSettingsEngine.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/config/shotwell-GSettingsEngine.o `test -f 'src/config/GSettingsEngine.c' || echo '$(srcdir)/'`src/config/GSettingsEngine.c - -src/config/shotwell-GSettingsEngine.obj: src/config/GSettingsEngine.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/config/shotwell-GSettingsEngine.obj -MD -MP -MF src/config/$(DEPDIR)/shotwell-GSettingsEngine.Tpo -c -o src/config/shotwell-GSettingsEngine.obj `if test -f 'src/config/GSettingsEngine.c'; then $(CYGPATH_W) 'src/config/GSettingsEngine.c'; else $(CYGPATH_W) '$(srcdir)/src/config/GSettingsEngine.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/config/$(DEPDIR)/shotwell-GSettingsEngine.Tpo src/config/$(DEPDIR)/shotwell-GSettingsEngine.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/config/GSettingsEngine.c' object='src/config/shotwell-GSettingsEngine.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/config/shotwell-GSettingsEngine.obj `if test -f 'src/config/GSettingsEngine.c'; then $(CYGPATH_W) 'src/config/GSettingsEngine.c'; else $(CYGPATH_W) '$(srcdir)/src/config/GSettingsEngine.c'; fi` - -src/data_imports/shotwell-DataImports.o: src/data_imports/DataImports.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/data_imports/shotwell-DataImports.o -MD -MP -MF src/data_imports/$(DEPDIR)/shotwell-DataImports.Tpo -c -o src/data_imports/shotwell-DataImports.o `test -f 'src/data_imports/DataImports.c' || echo '$(srcdir)/'`src/data_imports/DataImports.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/data_imports/$(DEPDIR)/shotwell-DataImports.Tpo src/data_imports/$(DEPDIR)/shotwell-DataImports.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/data_imports/DataImports.c' object='src/data_imports/shotwell-DataImports.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/data_imports/shotwell-DataImports.o `test -f 'src/data_imports/DataImports.c' || echo '$(srcdir)/'`src/data_imports/DataImports.c - -src/data_imports/shotwell-DataImports.obj: src/data_imports/DataImports.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/data_imports/shotwell-DataImports.obj -MD -MP -MF src/data_imports/$(DEPDIR)/shotwell-DataImports.Tpo -c -o src/data_imports/shotwell-DataImports.obj `if test -f 'src/data_imports/DataImports.c'; then $(CYGPATH_W) 'src/data_imports/DataImports.c'; else $(CYGPATH_W) '$(srcdir)/src/data_imports/DataImports.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/data_imports/$(DEPDIR)/shotwell-DataImports.Tpo src/data_imports/$(DEPDIR)/shotwell-DataImports.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/data_imports/DataImports.c' object='src/data_imports/shotwell-DataImports.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/data_imports/shotwell-DataImports.obj `if test -f 'src/data_imports/DataImports.c'; then $(CYGPATH_W) 'src/data_imports/DataImports.c'; else $(CYGPATH_W) '$(srcdir)/src/data_imports/DataImports.c'; fi` - -src/data_imports/shotwell-DataImportsPluginHost.o: src/data_imports/DataImportsPluginHost.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/data_imports/shotwell-DataImportsPluginHost.o -MD -MP -MF src/data_imports/$(DEPDIR)/shotwell-DataImportsPluginHost.Tpo -c -o src/data_imports/shotwell-DataImportsPluginHost.o `test -f 'src/data_imports/DataImportsPluginHost.c' || echo '$(srcdir)/'`src/data_imports/DataImportsPluginHost.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/data_imports/$(DEPDIR)/shotwell-DataImportsPluginHost.Tpo src/data_imports/$(DEPDIR)/shotwell-DataImportsPluginHost.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/data_imports/DataImportsPluginHost.c' object='src/data_imports/shotwell-DataImportsPluginHost.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/data_imports/shotwell-DataImportsPluginHost.o `test -f 'src/data_imports/DataImportsPluginHost.c' || echo '$(srcdir)/'`src/data_imports/DataImportsPluginHost.c - -src/data_imports/shotwell-DataImportsPluginHost.obj: src/data_imports/DataImportsPluginHost.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/data_imports/shotwell-DataImportsPluginHost.obj -MD -MP -MF src/data_imports/$(DEPDIR)/shotwell-DataImportsPluginHost.Tpo -c -o src/data_imports/shotwell-DataImportsPluginHost.obj `if test -f 'src/data_imports/DataImportsPluginHost.c'; then $(CYGPATH_W) 'src/data_imports/DataImportsPluginHost.c'; else $(CYGPATH_W) '$(srcdir)/src/data_imports/DataImportsPluginHost.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/data_imports/$(DEPDIR)/shotwell-DataImportsPluginHost.Tpo src/data_imports/$(DEPDIR)/shotwell-DataImportsPluginHost.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/data_imports/DataImportsPluginHost.c' object='src/data_imports/shotwell-DataImportsPluginHost.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/data_imports/shotwell-DataImportsPluginHost.obj `if test -f 'src/data_imports/DataImportsPluginHost.c'; then $(CYGPATH_W) 'src/data_imports/DataImportsPluginHost.c'; else $(CYGPATH_W) '$(srcdir)/src/data_imports/DataImportsPluginHost.c'; fi` - -src/data_imports/shotwell-DataImportsUI.o: src/data_imports/DataImportsUI.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/data_imports/shotwell-DataImportsUI.o -MD -MP -MF src/data_imports/$(DEPDIR)/shotwell-DataImportsUI.Tpo -c -o src/data_imports/shotwell-DataImportsUI.o `test -f 'src/data_imports/DataImportsUI.c' || echo '$(srcdir)/'`src/data_imports/DataImportsUI.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/data_imports/$(DEPDIR)/shotwell-DataImportsUI.Tpo src/data_imports/$(DEPDIR)/shotwell-DataImportsUI.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/data_imports/DataImportsUI.c' object='src/data_imports/shotwell-DataImportsUI.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/data_imports/shotwell-DataImportsUI.o `test -f 'src/data_imports/DataImportsUI.c' || echo '$(srcdir)/'`src/data_imports/DataImportsUI.c - -src/data_imports/shotwell-DataImportsUI.obj: src/data_imports/DataImportsUI.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/data_imports/shotwell-DataImportsUI.obj -MD -MP -MF src/data_imports/$(DEPDIR)/shotwell-DataImportsUI.Tpo -c -o src/data_imports/shotwell-DataImportsUI.obj `if test -f 'src/data_imports/DataImportsUI.c'; then $(CYGPATH_W) 'src/data_imports/DataImportsUI.c'; else $(CYGPATH_W) '$(srcdir)/src/data_imports/DataImportsUI.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/data_imports/$(DEPDIR)/shotwell-DataImportsUI.Tpo src/data_imports/$(DEPDIR)/shotwell-DataImportsUI.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/data_imports/DataImportsUI.c' object='src/data_imports/shotwell-DataImportsUI.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/data_imports/shotwell-DataImportsUI.obj `if test -f 'src/data_imports/DataImportsUI.c'; then $(CYGPATH_W) 'src/data_imports/DataImportsUI.c'; else $(CYGPATH_W) '$(srcdir)/src/data_imports/DataImportsUI.c'; fi` - -src/data_imports/shotwell-DataImportJob.o: src/data_imports/DataImportJob.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/data_imports/shotwell-DataImportJob.o -MD -MP -MF src/data_imports/$(DEPDIR)/shotwell-DataImportJob.Tpo -c -o src/data_imports/shotwell-DataImportJob.o `test -f 'src/data_imports/DataImportJob.c' || echo '$(srcdir)/'`src/data_imports/DataImportJob.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/data_imports/$(DEPDIR)/shotwell-DataImportJob.Tpo src/data_imports/$(DEPDIR)/shotwell-DataImportJob.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/data_imports/DataImportJob.c' object='src/data_imports/shotwell-DataImportJob.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/data_imports/shotwell-DataImportJob.o `test -f 'src/data_imports/DataImportJob.c' || echo '$(srcdir)/'`src/data_imports/DataImportJob.c - -src/data_imports/shotwell-DataImportJob.obj: src/data_imports/DataImportJob.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/data_imports/shotwell-DataImportJob.obj -MD -MP -MF src/data_imports/$(DEPDIR)/shotwell-DataImportJob.Tpo -c -o src/data_imports/shotwell-DataImportJob.obj `if test -f 'src/data_imports/DataImportJob.c'; then $(CYGPATH_W) 'src/data_imports/DataImportJob.c'; else $(CYGPATH_W) '$(srcdir)/src/data_imports/DataImportJob.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/data_imports/$(DEPDIR)/shotwell-DataImportJob.Tpo src/data_imports/$(DEPDIR)/shotwell-DataImportJob.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/data_imports/DataImportJob.c' object='src/data_imports/shotwell-DataImportJob.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/data_imports/shotwell-DataImportJob.obj `if test -f 'src/data_imports/DataImportJob.c'; then $(CYGPATH_W) 'src/data_imports/DataImportJob.c'; else $(CYGPATH_W) '$(srcdir)/src/data_imports/DataImportJob.c'; fi` - -src/data_imports/shotwell-DataImportSource.o: src/data_imports/DataImportSource.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/data_imports/shotwell-DataImportSource.o -MD -MP -MF src/data_imports/$(DEPDIR)/shotwell-DataImportSource.Tpo -c -o src/data_imports/shotwell-DataImportSource.o `test -f 'src/data_imports/DataImportSource.c' || echo '$(srcdir)/'`src/data_imports/DataImportSource.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/data_imports/$(DEPDIR)/shotwell-DataImportSource.Tpo src/data_imports/$(DEPDIR)/shotwell-DataImportSource.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/data_imports/DataImportSource.c' object='src/data_imports/shotwell-DataImportSource.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/data_imports/shotwell-DataImportSource.o `test -f 'src/data_imports/DataImportSource.c' || echo '$(srcdir)/'`src/data_imports/DataImportSource.c - -src/data_imports/shotwell-DataImportSource.obj: src/data_imports/DataImportSource.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/data_imports/shotwell-DataImportSource.obj -MD -MP -MF src/data_imports/$(DEPDIR)/shotwell-DataImportSource.Tpo -c -o src/data_imports/shotwell-DataImportSource.obj `if test -f 'src/data_imports/DataImportSource.c'; then $(CYGPATH_W) 'src/data_imports/DataImportSource.c'; else $(CYGPATH_W) '$(srcdir)/src/data_imports/DataImportSource.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/data_imports/$(DEPDIR)/shotwell-DataImportSource.Tpo src/data_imports/$(DEPDIR)/shotwell-DataImportSource.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/data_imports/DataImportSource.c' object='src/data_imports/shotwell-DataImportSource.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/data_imports/shotwell-DataImportSource.obj `if test -f 'src/data_imports/DataImportSource.c'; then $(CYGPATH_W) 'src/data_imports/DataImportSource.c'; else $(CYGPATH_W) '$(srcdir)/src/data_imports/DataImportSource.c'; fi` - -src/folders/shotwell-Folders.o: src/folders/Folders.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/folders/shotwell-Folders.o -MD -MP -MF src/folders/$(DEPDIR)/shotwell-Folders.Tpo -c -o src/folders/shotwell-Folders.o `test -f 'src/folders/Folders.c' || echo '$(srcdir)/'`src/folders/Folders.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/folders/$(DEPDIR)/shotwell-Folders.Tpo src/folders/$(DEPDIR)/shotwell-Folders.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/folders/Folders.c' object='src/folders/shotwell-Folders.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/folders/shotwell-Folders.o `test -f 'src/folders/Folders.c' || echo '$(srcdir)/'`src/folders/Folders.c - -src/folders/shotwell-Folders.obj: src/folders/Folders.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/folders/shotwell-Folders.obj -MD -MP -MF src/folders/$(DEPDIR)/shotwell-Folders.Tpo -c -o src/folders/shotwell-Folders.obj `if test -f 'src/folders/Folders.c'; then $(CYGPATH_W) 'src/folders/Folders.c'; else $(CYGPATH_W) '$(srcdir)/src/folders/Folders.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/folders/$(DEPDIR)/shotwell-Folders.Tpo src/folders/$(DEPDIR)/shotwell-Folders.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/folders/Folders.c' object='src/folders/shotwell-Folders.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/folders/shotwell-Folders.obj `if test -f 'src/folders/Folders.c'; then $(CYGPATH_W) 'src/folders/Folders.c'; else $(CYGPATH_W) '$(srcdir)/src/folders/Folders.c'; fi` - -src/folders/shotwell-FoldersBranch.o: src/folders/FoldersBranch.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/folders/shotwell-FoldersBranch.o -MD -MP -MF src/folders/$(DEPDIR)/shotwell-FoldersBranch.Tpo -c -o src/folders/shotwell-FoldersBranch.o `test -f 'src/folders/FoldersBranch.c' || echo '$(srcdir)/'`src/folders/FoldersBranch.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/folders/$(DEPDIR)/shotwell-FoldersBranch.Tpo src/folders/$(DEPDIR)/shotwell-FoldersBranch.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/folders/FoldersBranch.c' object='src/folders/shotwell-FoldersBranch.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/folders/shotwell-FoldersBranch.o `test -f 'src/folders/FoldersBranch.c' || echo '$(srcdir)/'`src/folders/FoldersBranch.c - -src/folders/shotwell-FoldersBranch.obj: src/folders/FoldersBranch.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/folders/shotwell-FoldersBranch.obj -MD -MP -MF src/folders/$(DEPDIR)/shotwell-FoldersBranch.Tpo -c -o src/folders/shotwell-FoldersBranch.obj `if test -f 'src/folders/FoldersBranch.c'; then $(CYGPATH_W) 'src/folders/FoldersBranch.c'; else $(CYGPATH_W) '$(srcdir)/src/folders/FoldersBranch.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/folders/$(DEPDIR)/shotwell-FoldersBranch.Tpo src/folders/$(DEPDIR)/shotwell-FoldersBranch.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/folders/FoldersBranch.c' object='src/folders/shotwell-FoldersBranch.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/folders/shotwell-FoldersBranch.obj `if test -f 'src/folders/FoldersBranch.c'; then $(CYGPATH_W) 'src/folders/FoldersBranch.c'; else $(CYGPATH_W) '$(srcdir)/src/folders/FoldersBranch.c'; fi` - -src/folders/shotwell-FoldersPage.o: src/folders/FoldersPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/folders/shotwell-FoldersPage.o -MD -MP -MF src/folders/$(DEPDIR)/shotwell-FoldersPage.Tpo -c -o src/folders/shotwell-FoldersPage.o `test -f 'src/folders/FoldersPage.c' || echo '$(srcdir)/'`src/folders/FoldersPage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/folders/$(DEPDIR)/shotwell-FoldersPage.Tpo src/folders/$(DEPDIR)/shotwell-FoldersPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/folders/FoldersPage.c' object='src/folders/shotwell-FoldersPage.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/folders/shotwell-FoldersPage.o `test -f 'src/folders/FoldersPage.c' || echo '$(srcdir)/'`src/folders/FoldersPage.c - -src/folders/shotwell-FoldersPage.obj: src/folders/FoldersPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/folders/shotwell-FoldersPage.obj -MD -MP -MF src/folders/$(DEPDIR)/shotwell-FoldersPage.Tpo -c -o src/folders/shotwell-FoldersPage.obj `if test -f 'src/folders/FoldersPage.c'; then $(CYGPATH_W) 'src/folders/FoldersPage.c'; else $(CYGPATH_W) '$(srcdir)/src/folders/FoldersPage.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/folders/$(DEPDIR)/shotwell-FoldersPage.Tpo src/folders/$(DEPDIR)/shotwell-FoldersPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/folders/FoldersPage.c' object='src/folders/shotwell-FoldersPage.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/folders/shotwell-FoldersPage.obj `if test -f 'src/folders/FoldersPage.c'; then $(CYGPATH_W) 'src/folders/FoldersPage.c'; else $(CYGPATH_W) '$(srcdir)/src/folders/FoldersPage.c'; fi` - -src/shotwell-main.o: src/main.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-main.o -MD -MP -MF src/$(DEPDIR)/shotwell-main.Tpo -c -o src/shotwell-main.o `test -f 'src/main.c' || echo '$(srcdir)/'`src/main.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-main.Tpo src/$(DEPDIR)/shotwell-main.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/main.c' object='src/shotwell-main.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-main.o `test -f 'src/main.c' || echo '$(srcdir)/'`src/main.c - -src/shotwell-main.obj: src/main.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-main.obj -MD -MP -MF src/$(DEPDIR)/shotwell-main.Tpo -c -o src/shotwell-main.obj `if test -f 'src/main.c'; then $(CYGPATH_W) 'src/main.c'; else $(CYGPATH_W) '$(srcdir)/src/main.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-main.Tpo src/$(DEPDIR)/shotwell-main.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/main.c' object='src/shotwell-main.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-main.obj `if test -f 'src/main.c'; then $(CYGPATH_W) 'src/main.c'; else $(CYGPATH_W) '$(srcdir)/src/main.c'; fi` - -src/shotwell-AppWindow.o: src/AppWindow.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-AppWindow.o -MD -MP -MF src/$(DEPDIR)/shotwell-AppWindow.Tpo -c -o src/shotwell-AppWindow.o `test -f 'src/AppWindow.c' || echo '$(srcdir)/'`src/AppWindow.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-AppWindow.Tpo src/$(DEPDIR)/shotwell-AppWindow.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/AppWindow.c' object='src/shotwell-AppWindow.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-AppWindow.o `test -f 'src/AppWindow.c' || echo '$(srcdir)/'`src/AppWindow.c - -src/shotwell-AppWindow.obj: src/AppWindow.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-AppWindow.obj -MD -MP -MF src/$(DEPDIR)/shotwell-AppWindow.Tpo -c -o src/shotwell-AppWindow.obj `if test -f 'src/AppWindow.c'; then $(CYGPATH_W) 'src/AppWindow.c'; else $(CYGPATH_W) '$(srcdir)/src/AppWindow.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-AppWindow.Tpo src/$(DEPDIR)/shotwell-AppWindow.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/AppWindow.c' object='src/shotwell-AppWindow.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-AppWindow.obj `if test -f 'src/AppWindow.c'; then $(CYGPATH_W) 'src/AppWindow.c'; else $(CYGPATH_W) '$(srcdir)/src/AppWindow.c'; fi` - -src/shotwell-CollectionPage.o: src/CollectionPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-CollectionPage.o -MD -MP -MF src/$(DEPDIR)/shotwell-CollectionPage.Tpo -c -o src/shotwell-CollectionPage.o `test -f 'src/CollectionPage.c' || echo '$(srcdir)/'`src/CollectionPage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-CollectionPage.Tpo src/$(DEPDIR)/shotwell-CollectionPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/CollectionPage.c' object='src/shotwell-CollectionPage.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-CollectionPage.o `test -f 'src/CollectionPage.c' || echo '$(srcdir)/'`src/CollectionPage.c - -src/shotwell-CollectionPage.obj: src/CollectionPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-CollectionPage.obj -MD -MP -MF src/$(DEPDIR)/shotwell-CollectionPage.Tpo -c -o src/shotwell-CollectionPage.obj `if test -f 'src/CollectionPage.c'; then $(CYGPATH_W) 'src/CollectionPage.c'; else $(CYGPATH_W) '$(srcdir)/src/CollectionPage.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-CollectionPage.Tpo src/$(DEPDIR)/shotwell-CollectionPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/CollectionPage.c' object='src/shotwell-CollectionPage.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-CollectionPage.obj `if test -f 'src/CollectionPage.c'; then $(CYGPATH_W) 'src/CollectionPage.c'; else $(CYGPATH_W) '$(srcdir)/src/CollectionPage.c'; fi` - -src/shotwell-NaturalCollate.o: src/NaturalCollate.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-NaturalCollate.o -MD -MP -MF src/$(DEPDIR)/shotwell-NaturalCollate.Tpo -c -o src/shotwell-NaturalCollate.o `test -f 'src/NaturalCollate.c' || echo '$(srcdir)/'`src/NaturalCollate.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-NaturalCollate.Tpo src/$(DEPDIR)/shotwell-NaturalCollate.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/NaturalCollate.c' object='src/shotwell-NaturalCollate.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-NaturalCollate.o `test -f 'src/NaturalCollate.c' || echo '$(srcdir)/'`src/NaturalCollate.c - -src/shotwell-NaturalCollate.obj: src/NaturalCollate.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-NaturalCollate.obj -MD -MP -MF src/$(DEPDIR)/shotwell-NaturalCollate.Tpo -c -o src/shotwell-NaturalCollate.obj `if test -f 'src/NaturalCollate.c'; then $(CYGPATH_W) 'src/NaturalCollate.c'; else $(CYGPATH_W) '$(srcdir)/src/NaturalCollate.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-NaturalCollate.Tpo src/$(DEPDIR)/shotwell-NaturalCollate.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/NaturalCollate.c' object='src/shotwell-NaturalCollate.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-NaturalCollate.obj `if test -f 'src/NaturalCollate.c'; then $(CYGPATH_W) 'src/NaturalCollate.c'; else $(CYGPATH_W) '$(srcdir)/src/NaturalCollate.c'; fi` - -src/shotwell-Thumbnail.o: src/Thumbnail.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Thumbnail.o -MD -MP -MF src/$(DEPDIR)/shotwell-Thumbnail.Tpo -c -o src/shotwell-Thumbnail.o `test -f 'src/Thumbnail.c' || echo '$(srcdir)/'`src/Thumbnail.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Thumbnail.Tpo src/$(DEPDIR)/shotwell-Thumbnail.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Thumbnail.c' object='src/shotwell-Thumbnail.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Thumbnail.o `test -f 'src/Thumbnail.c' || echo '$(srcdir)/'`src/Thumbnail.c - -src/shotwell-Thumbnail.obj: src/Thumbnail.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Thumbnail.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Thumbnail.Tpo -c -o src/shotwell-Thumbnail.obj `if test -f 'src/Thumbnail.c'; then $(CYGPATH_W) 'src/Thumbnail.c'; else $(CYGPATH_W) '$(srcdir)/src/Thumbnail.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Thumbnail.Tpo src/$(DEPDIR)/shotwell-Thumbnail.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Thumbnail.c' object='src/shotwell-Thumbnail.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Thumbnail.obj `if test -f 'src/Thumbnail.c'; then $(CYGPATH_W) 'src/Thumbnail.c'; else $(CYGPATH_W) '$(srcdir)/src/Thumbnail.c'; fi` - -src/shotwell-ThumbnailCache.o: src/ThumbnailCache.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-ThumbnailCache.o -MD -MP -MF src/$(DEPDIR)/shotwell-ThumbnailCache.Tpo -c -o src/shotwell-ThumbnailCache.o `test -f 'src/ThumbnailCache.c' || echo '$(srcdir)/'`src/ThumbnailCache.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-ThumbnailCache.Tpo src/$(DEPDIR)/shotwell-ThumbnailCache.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/ThumbnailCache.c' object='src/shotwell-ThumbnailCache.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-ThumbnailCache.o `test -f 'src/ThumbnailCache.c' || echo '$(srcdir)/'`src/ThumbnailCache.c - -src/shotwell-ThumbnailCache.obj: src/ThumbnailCache.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-ThumbnailCache.obj -MD -MP -MF src/$(DEPDIR)/shotwell-ThumbnailCache.Tpo -c -o src/shotwell-ThumbnailCache.obj `if test -f 'src/ThumbnailCache.c'; then $(CYGPATH_W) 'src/ThumbnailCache.c'; else $(CYGPATH_W) '$(srcdir)/src/ThumbnailCache.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-ThumbnailCache.Tpo src/$(DEPDIR)/shotwell-ThumbnailCache.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/ThumbnailCache.c' object='src/shotwell-ThumbnailCache.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-ThumbnailCache.obj `if test -f 'src/ThumbnailCache.c'; then $(CYGPATH_W) 'src/ThumbnailCache.c'; else $(CYGPATH_W) '$(srcdir)/src/ThumbnailCache.c'; fi` - -src/shotwell-CheckerboardLayout.o: src/CheckerboardLayout.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-CheckerboardLayout.o -MD -MP -MF src/$(DEPDIR)/shotwell-CheckerboardLayout.Tpo -c -o src/shotwell-CheckerboardLayout.o `test -f 'src/CheckerboardLayout.c' || echo '$(srcdir)/'`src/CheckerboardLayout.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-CheckerboardLayout.Tpo src/$(DEPDIR)/shotwell-CheckerboardLayout.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/CheckerboardLayout.c' object='src/shotwell-CheckerboardLayout.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-CheckerboardLayout.o `test -f 'src/CheckerboardLayout.c' || echo '$(srcdir)/'`src/CheckerboardLayout.c - -src/shotwell-CheckerboardLayout.obj: src/CheckerboardLayout.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-CheckerboardLayout.obj -MD -MP -MF src/$(DEPDIR)/shotwell-CheckerboardLayout.Tpo -c -o src/shotwell-CheckerboardLayout.obj `if test -f 'src/CheckerboardLayout.c'; then $(CYGPATH_W) 'src/CheckerboardLayout.c'; else $(CYGPATH_W) '$(srcdir)/src/CheckerboardLayout.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-CheckerboardLayout.Tpo src/$(DEPDIR)/shotwell-CheckerboardLayout.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/CheckerboardLayout.c' object='src/shotwell-CheckerboardLayout.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-CheckerboardLayout.obj `if test -f 'src/CheckerboardLayout.c'; then $(CYGPATH_W) 'src/CheckerboardLayout.c'; else $(CYGPATH_W) '$(srcdir)/src/CheckerboardLayout.c'; fi` - -src/shotwell-PhotoPage.o: src/PhotoPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-PhotoPage.o -MD -MP -MF src/$(DEPDIR)/shotwell-PhotoPage.Tpo -c -o src/shotwell-PhotoPage.o `test -f 'src/PhotoPage.c' || echo '$(srcdir)/'`src/PhotoPage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-PhotoPage.Tpo src/$(DEPDIR)/shotwell-PhotoPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/PhotoPage.c' object='src/shotwell-PhotoPage.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-PhotoPage.o `test -f 'src/PhotoPage.c' || echo '$(srcdir)/'`src/PhotoPage.c - -src/shotwell-PhotoPage.obj: src/PhotoPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-PhotoPage.obj -MD -MP -MF src/$(DEPDIR)/shotwell-PhotoPage.Tpo -c -o src/shotwell-PhotoPage.obj `if test -f 'src/PhotoPage.c'; then $(CYGPATH_W) 'src/PhotoPage.c'; else $(CYGPATH_W) '$(srcdir)/src/PhotoPage.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-PhotoPage.Tpo src/$(DEPDIR)/shotwell-PhotoPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/PhotoPage.c' object='src/shotwell-PhotoPage.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-PhotoPage.obj `if test -f 'src/PhotoPage.c'; then $(CYGPATH_W) 'src/PhotoPage.c'; else $(CYGPATH_W) '$(srcdir)/src/PhotoPage.c'; fi` - -src/shotwell-Page.o: src/Page.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Page.o -MD -MP -MF src/$(DEPDIR)/shotwell-Page.Tpo -c -o src/shotwell-Page.o `test -f 'src/Page.c' || echo '$(srcdir)/'`src/Page.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Page.Tpo src/$(DEPDIR)/shotwell-Page.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Page.c' object='src/shotwell-Page.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Page.o `test -f 'src/Page.c' || echo '$(srcdir)/'`src/Page.c - -src/shotwell-Page.obj: src/Page.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Page.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Page.Tpo -c -o src/shotwell-Page.obj `if test -f 'src/Page.c'; then $(CYGPATH_W) 'src/Page.c'; else $(CYGPATH_W) '$(srcdir)/src/Page.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Page.Tpo src/$(DEPDIR)/shotwell-Page.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Page.c' object='src/shotwell-Page.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Page.obj `if test -f 'src/Page.c'; then $(CYGPATH_W) 'src/Page.c'; else $(CYGPATH_W) '$(srcdir)/src/Page.c'; fi` - -src/shotwell-SortedList.o: src/SortedList.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-SortedList.o -MD -MP -MF src/$(DEPDIR)/shotwell-SortedList.Tpo -c -o src/shotwell-SortedList.o `test -f 'src/SortedList.c' || echo '$(srcdir)/'`src/SortedList.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-SortedList.Tpo src/$(DEPDIR)/shotwell-SortedList.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/SortedList.c' object='src/shotwell-SortedList.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-SortedList.o `test -f 'src/SortedList.c' || echo '$(srcdir)/'`src/SortedList.c - -src/shotwell-SortedList.obj: src/SortedList.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-SortedList.obj -MD -MP -MF src/$(DEPDIR)/shotwell-SortedList.Tpo -c -o src/shotwell-SortedList.obj `if test -f 'src/SortedList.c'; then $(CYGPATH_W) 'src/SortedList.c'; else $(CYGPATH_W) '$(srcdir)/src/SortedList.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-SortedList.Tpo src/$(DEPDIR)/shotwell-SortedList.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/SortedList.c' object='src/shotwell-SortedList.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-SortedList.obj `if test -f 'src/SortedList.c'; then $(CYGPATH_W) 'src/SortedList.c'; else $(CYGPATH_W) '$(srcdir)/src/SortedList.c'; fi` - -src/shotwell-Dimensions.o: src/Dimensions.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Dimensions.o -MD -MP -MF src/$(DEPDIR)/shotwell-Dimensions.Tpo -c -o src/shotwell-Dimensions.o `test -f 'src/Dimensions.c' || echo '$(srcdir)/'`src/Dimensions.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Dimensions.Tpo src/$(DEPDIR)/shotwell-Dimensions.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Dimensions.c' object='src/shotwell-Dimensions.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Dimensions.o `test -f 'src/Dimensions.c' || echo '$(srcdir)/'`src/Dimensions.c - -src/shotwell-Dimensions.obj: src/Dimensions.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Dimensions.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Dimensions.Tpo -c -o src/shotwell-Dimensions.obj `if test -f 'src/Dimensions.c'; then $(CYGPATH_W) 'src/Dimensions.c'; else $(CYGPATH_W) '$(srcdir)/src/Dimensions.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Dimensions.Tpo src/$(DEPDIR)/shotwell-Dimensions.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Dimensions.c' object='src/shotwell-Dimensions.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Dimensions.obj `if test -f 'src/Dimensions.c'; then $(CYGPATH_W) 'src/Dimensions.c'; else $(CYGPATH_W) '$(srcdir)/src/Dimensions.c'; fi` - -src/shotwell-Box.o: src/Box.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Box.o -MD -MP -MF src/$(DEPDIR)/shotwell-Box.Tpo -c -o src/shotwell-Box.o `test -f 'src/Box.c' || echo '$(srcdir)/'`src/Box.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Box.Tpo src/$(DEPDIR)/shotwell-Box.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Box.c' object='src/shotwell-Box.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Box.o `test -f 'src/Box.c' || echo '$(srcdir)/'`src/Box.c - -src/shotwell-Box.obj: src/Box.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Box.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Box.Tpo -c -o src/shotwell-Box.obj `if test -f 'src/Box.c'; then $(CYGPATH_W) 'src/Box.c'; else $(CYGPATH_W) '$(srcdir)/src/Box.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Box.Tpo src/$(DEPDIR)/shotwell-Box.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Box.c' object='src/shotwell-Box.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Box.obj `if test -f 'src/Box.c'; then $(CYGPATH_W) 'src/Box.c'; else $(CYGPATH_W) '$(srcdir)/src/Box.c'; fi` - -src/shotwell-Photo.o: src/Photo.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Photo.o -MD -MP -MF src/$(DEPDIR)/shotwell-Photo.Tpo -c -o src/shotwell-Photo.o `test -f 'src/Photo.c' || echo '$(srcdir)/'`src/Photo.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Photo.Tpo src/$(DEPDIR)/shotwell-Photo.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Photo.c' object='src/shotwell-Photo.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Photo.o `test -f 'src/Photo.c' || echo '$(srcdir)/'`src/Photo.c - -src/shotwell-Photo.obj: src/Photo.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Photo.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Photo.Tpo -c -o src/shotwell-Photo.obj `if test -f 'src/Photo.c'; then $(CYGPATH_W) 'src/Photo.c'; else $(CYGPATH_W) '$(srcdir)/src/Photo.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Photo.Tpo src/$(DEPDIR)/shotwell-Photo.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Photo.c' object='src/shotwell-Photo.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Photo.obj `if test -f 'src/Photo.c'; then $(CYGPATH_W) 'src/Photo.c'; else $(CYGPATH_W) '$(srcdir)/src/Photo.c'; fi` - -src/shotwell-Orientation.o: src/Orientation.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Orientation.o -MD -MP -MF src/$(DEPDIR)/shotwell-Orientation.Tpo -c -o src/shotwell-Orientation.o `test -f 'src/Orientation.c' || echo '$(srcdir)/'`src/Orientation.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Orientation.Tpo src/$(DEPDIR)/shotwell-Orientation.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Orientation.c' object='src/shotwell-Orientation.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Orientation.o `test -f 'src/Orientation.c' || echo '$(srcdir)/'`src/Orientation.c - -src/shotwell-Orientation.obj: src/Orientation.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Orientation.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Orientation.Tpo -c -o src/shotwell-Orientation.obj `if test -f 'src/Orientation.c'; then $(CYGPATH_W) 'src/Orientation.c'; else $(CYGPATH_W) '$(srcdir)/src/Orientation.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Orientation.Tpo src/$(DEPDIR)/shotwell-Orientation.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Orientation.c' object='src/shotwell-Orientation.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Orientation.obj `if test -f 'src/Orientation.c'; then $(CYGPATH_W) 'src/Orientation.c'; else $(CYGPATH_W) '$(srcdir)/src/Orientation.c'; fi` - -src/shotwell-BatchImport.o: src/BatchImport.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-BatchImport.o -MD -MP -MF src/$(DEPDIR)/shotwell-BatchImport.Tpo -c -o src/shotwell-BatchImport.o `test -f 'src/BatchImport.c' || echo '$(srcdir)/'`src/BatchImport.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-BatchImport.Tpo src/$(DEPDIR)/shotwell-BatchImport.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/BatchImport.c' object='src/shotwell-BatchImport.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-BatchImport.o `test -f 'src/BatchImport.c' || echo '$(srcdir)/'`src/BatchImport.c - -src/shotwell-BatchImport.obj: src/BatchImport.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-BatchImport.obj -MD -MP -MF src/$(DEPDIR)/shotwell-BatchImport.Tpo -c -o src/shotwell-BatchImport.obj `if test -f 'src/BatchImport.c'; then $(CYGPATH_W) 'src/BatchImport.c'; else $(CYGPATH_W) '$(srcdir)/src/BatchImport.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-BatchImport.Tpo src/$(DEPDIR)/shotwell-BatchImport.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/BatchImport.c' object='src/shotwell-BatchImport.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-BatchImport.obj `if test -f 'src/BatchImport.c'; then $(CYGPATH_W) 'src/BatchImport.c'; else $(CYGPATH_W) '$(srcdir)/src/BatchImport.c'; fi` - -src/shotwell-Dialogs.o: src/Dialogs.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Dialogs.o -MD -MP -MF src/$(DEPDIR)/shotwell-Dialogs.Tpo -c -o src/shotwell-Dialogs.o `test -f 'src/Dialogs.c' || echo '$(srcdir)/'`src/Dialogs.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Dialogs.Tpo src/$(DEPDIR)/shotwell-Dialogs.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Dialogs.c' object='src/shotwell-Dialogs.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Dialogs.o `test -f 'src/Dialogs.c' || echo '$(srcdir)/'`src/Dialogs.c - -src/shotwell-Dialogs.obj: src/Dialogs.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Dialogs.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Dialogs.Tpo -c -o src/shotwell-Dialogs.obj `if test -f 'src/Dialogs.c'; then $(CYGPATH_W) 'src/Dialogs.c'; else $(CYGPATH_W) '$(srcdir)/src/Dialogs.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Dialogs.Tpo src/$(DEPDIR)/shotwell-Dialogs.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Dialogs.c' object='src/shotwell-Dialogs.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Dialogs.obj `if test -f 'src/Dialogs.c'; then $(CYGPATH_W) 'src/Dialogs.c'; else $(CYGPATH_W) '$(srcdir)/src/Dialogs.c'; fi` - -src/shotwell-Resources.o: src/Resources.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Resources.o -MD -MP -MF src/$(DEPDIR)/shotwell-Resources.Tpo -c -o src/shotwell-Resources.o `test -f 'src/Resources.c' || echo '$(srcdir)/'`src/Resources.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Resources.Tpo src/$(DEPDIR)/shotwell-Resources.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Resources.c' object='src/shotwell-Resources.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Resources.o `test -f 'src/Resources.c' || echo '$(srcdir)/'`src/Resources.c - -src/shotwell-Resources.obj: src/Resources.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Resources.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Resources.Tpo -c -o src/shotwell-Resources.obj `if test -f 'src/Resources.c'; then $(CYGPATH_W) 'src/Resources.c'; else $(CYGPATH_W) '$(srcdir)/src/Resources.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Resources.Tpo src/$(DEPDIR)/shotwell-Resources.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Resources.c' object='src/shotwell-Resources.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Resources.obj `if test -f 'src/Resources.c'; then $(CYGPATH_W) 'src/Resources.c'; else $(CYGPATH_W) '$(srcdir)/src/Resources.c'; fi` - -src/shotwell-Debug.o: src/Debug.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Debug.o -MD -MP -MF src/$(DEPDIR)/shotwell-Debug.Tpo -c -o src/shotwell-Debug.o `test -f 'src/Debug.c' || echo '$(srcdir)/'`src/Debug.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Debug.Tpo src/$(DEPDIR)/shotwell-Debug.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Debug.c' object='src/shotwell-Debug.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Debug.o `test -f 'src/Debug.c' || echo '$(srcdir)/'`src/Debug.c - -src/shotwell-Debug.obj: src/Debug.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Debug.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Debug.Tpo -c -o src/shotwell-Debug.obj `if test -f 'src/Debug.c'; then $(CYGPATH_W) 'src/Debug.c'; else $(CYGPATH_W) '$(srcdir)/src/Debug.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Debug.Tpo src/$(DEPDIR)/shotwell-Debug.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Debug.c' object='src/shotwell-Debug.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Debug.obj `if test -f 'src/Debug.c'; then $(CYGPATH_W) 'src/Debug.c'; else $(CYGPATH_W) '$(srcdir)/src/Debug.c'; fi` - -src/shotwell-Properties.o: src/Properties.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Properties.o -MD -MP -MF src/$(DEPDIR)/shotwell-Properties.Tpo -c -o src/shotwell-Properties.o `test -f 'src/Properties.c' || echo '$(srcdir)/'`src/Properties.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Properties.Tpo src/$(DEPDIR)/shotwell-Properties.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Properties.c' object='src/shotwell-Properties.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Properties.o `test -f 'src/Properties.c' || echo '$(srcdir)/'`src/Properties.c - -src/shotwell-Properties.obj: src/Properties.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Properties.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Properties.Tpo -c -o src/shotwell-Properties.obj `if test -f 'src/Properties.c'; then $(CYGPATH_W) 'src/Properties.c'; else $(CYGPATH_W) '$(srcdir)/src/Properties.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Properties.Tpo src/$(DEPDIR)/shotwell-Properties.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Properties.c' object='src/shotwell-Properties.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Properties.obj `if test -f 'src/Properties.c'; then $(CYGPATH_W) 'src/Properties.c'; else $(CYGPATH_W) '$(srcdir)/src/Properties.c'; fi` - -src/shotwell-Event.o: src/Event.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Event.o -MD -MP -MF src/$(DEPDIR)/shotwell-Event.Tpo -c -o src/shotwell-Event.o `test -f 'src/Event.c' || echo '$(srcdir)/'`src/Event.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Event.Tpo src/$(DEPDIR)/shotwell-Event.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Event.c' object='src/shotwell-Event.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Event.o `test -f 'src/Event.c' || echo '$(srcdir)/'`src/Event.c - -src/shotwell-Event.obj: src/Event.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Event.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Event.Tpo -c -o src/shotwell-Event.obj `if test -f 'src/Event.c'; then $(CYGPATH_W) 'src/Event.c'; else $(CYGPATH_W) '$(srcdir)/src/Event.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Event.Tpo src/$(DEPDIR)/shotwell-Event.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Event.c' object='src/shotwell-Event.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Event.obj `if test -f 'src/Event.c'; then $(CYGPATH_W) 'src/Event.c'; else $(CYGPATH_W) '$(srcdir)/src/Event.c'; fi` - -src/shotwell-International.o: src/International.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-International.o -MD -MP -MF src/$(DEPDIR)/shotwell-International.Tpo -c -o src/shotwell-International.o `test -f 'src/International.c' || echo '$(srcdir)/'`src/International.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-International.Tpo src/$(DEPDIR)/shotwell-International.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/International.c' object='src/shotwell-International.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-International.o `test -f 'src/International.c' || echo '$(srcdir)/'`src/International.c - -src/shotwell-International.obj: src/International.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-International.obj -MD -MP -MF src/$(DEPDIR)/shotwell-International.Tpo -c -o src/shotwell-International.obj `if test -f 'src/International.c'; then $(CYGPATH_W) 'src/International.c'; else $(CYGPATH_W) '$(srcdir)/src/International.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-International.Tpo src/$(DEPDIR)/shotwell-International.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/International.c' object='src/shotwell-International.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-International.obj `if test -f 'src/International.c'; then $(CYGPATH_W) 'src/International.c'; else $(CYGPATH_W) '$(srcdir)/src/International.c'; fi` - -src/shotwell-AppDirs.o: src/AppDirs.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-AppDirs.o -MD -MP -MF src/$(DEPDIR)/shotwell-AppDirs.Tpo -c -o src/shotwell-AppDirs.o `test -f 'src/AppDirs.c' || echo '$(srcdir)/'`src/AppDirs.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-AppDirs.Tpo src/$(DEPDIR)/shotwell-AppDirs.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/AppDirs.c' object='src/shotwell-AppDirs.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-AppDirs.o `test -f 'src/AppDirs.c' || echo '$(srcdir)/'`src/AppDirs.c - -src/shotwell-AppDirs.obj: src/AppDirs.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-AppDirs.obj -MD -MP -MF src/$(DEPDIR)/shotwell-AppDirs.Tpo -c -o src/shotwell-AppDirs.obj `if test -f 'src/AppDirs.c'; then $(CYGPATH_W) 'src/AppDirs.c'; else $(CYGPATH_W) '$(srcdir)/src/AppDirs.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-AppDirs.Tpo src/$(DEPDIR)/shotwell-AppDirs.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/AppDirs.c' object='src/shotwell-AppDirs.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-AppDirs.obj `if test -f 'src/AppDirs.c'; then $(CYGPATH_W) 'src/AppDirs.c'; else $(CYGPATH_W) '$(srcdir)/src/AppDirs.c'; fi` - -src/shotwell-PixbufCache.o: src/PixbufCache.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-PixbufCache.o -MD -MP -MF src/$(DEPDIR)/shotwell-PixbufCache.Tpo -c -o src/shotwell-PixbufCache.o `test -f 'src/PixbufCache.c' || echo '$(srcdir)/'`src/PixbufCache.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-PixbufCache.Tpo src/$(DEPDIR)/shotwell-PixbufCache.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/PixbufCache.c' object='src/shotwell-PixbufCache.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-PixbufCache.o `test -f 'src/PixbufCache.c' || echo '$(srcdir)/'`src/PixbufCache.c - -src/shotwell-PixbufCache.obj: src/PixbufCache.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-PixbufCache.obj -MD -MP -MF src/$(DEPDIR)/shotwell-PixbufCache.Tpo -c -o src/shotwell-PixbufCache.obj `if test -f 'src/PixbufCache.c'; then $(CYGPATH_W) 'src/PixbufCache.c'; else $(CYGPATH_W) '$(srcdir)/src/PixbufCache.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-PixbufCache.Tpo src/$(DEPDIR)/shotwell-PixbufCache.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/PixbufCache.c' object='src/shotwell-PixbufCache.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-PixbufCache.obj `if test -f 'src/PixbufCache.c'; then $(CYGPATH_W) 'src/PixbufCache.c'; else $(CYGPATH_W) '$(srcdir)/src/PixbufCache.c'; fi` - -src/shotwell-CommandManager.o: src/CommandManager.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-CommandManager.o -MD -MP -MF src/$(DEPDIR)/shotwell-CommandManager.Tpo -c -o src/shotwell-CommandManager.o `test -f 'src/CommandManager.c' || echo '$(srcdir)/'`src/CommandManager.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-CommandManager.Tpo src/$(DEPDIR)/shotwell-CommandManager.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/CommandManager.c' object='src/shotwell-CommandManager.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-CommandManager.o `test -f 'src/CommandManager.c' || echo '$(srcdir)/'`src/CommandManager.c - -src/shotwell-CommandManager.obj: src/CommandManager.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-CommandManager.obj -MD -MP -MF src/$(DEPDIR)/shotwell-CommandManager.Tpo -c -o src/shotwell-CommandManager.obj `if test -f 'src/CommandManager.c'; then $(CYGPATH_W) 'src/CommandManager.c'; else $(CYGPATH_W) '$(srcdir)/src/CommandManager.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-CommandManager.Tpo src/$(DEPDIR)/shotwell-CommandManager.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/CommandManager.c' object='src/shotwell-CommandManager.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-CommandManager.obj `if test -f 'src/CommandManager.c'; then $(CYGPATH_W) 'src/CommandManager.c'; else $(CYGPATH_W) '$(srcdir)/src/CommandManager.c'; fi` - -src/shotwell-Commands.o: src/Commands.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Commands.o -MD -MP -MF src/$(DEPDIR)/shotwell-Commands.Tpo -c -o src/shotwell-Commands.o `test -f 'src/Commands.c' || echo '$(srcdir)/'`src/Commands.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Commands.Tpo src/$(DEPDIR)/shotwell-Commands.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Commands.c' object='src/shotwell-Commands.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Commands.o `test -f 'src/Commands.c' || echo '$(srcdir)/'`src/Commands.c - -src/shotwell-Commands.obj: src/Commands.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Commands.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Commands.Tpo -c -o src/shotwell-Commands.obj `if test -f 'src/Commands.c'; then $(CYGPATH_W) 'src/Commands.c'; else $(CYGPATH_W) '$(srcdir)/src/Commands.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Commands.Tpo src/$(DEPDIR)/shotwell-Commands.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Commands.c' object='src/shotwell-Commands.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Commands.obj `if test -f 'src/Commands.c'; then $(CYGPATH_W) 'src/Commands.c'; else $(CYGPATH_W) '$(srcdir)/src/Commands.c'; fi` - -src/shotwell-SlideshowPage.o: src/SlideshowPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-SlideshowPage.o -MD -MP -MF src/$(DEPDIR)/shotwell-SlideshowPage.Tpo -c -o src/shotwell-SlideshowPage.o `test -f 'src/SlideshowPage.c' || echo '$(srcdir)/'`src/SlideshowPage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-SlideshowPage.Tpo src/$(DEPDIR)/shotwell-SlideshowPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/SlideshowPage.c' object='src/shotwell-SlideshowPage.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-SlideshowPage.o `test -f 'src/SlideshowPage.c' || echo '$(srcdir)/'`src/SlideshowPage.c - -src/shotwell-SlideshowPage.obj: src/SlideshowPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-SlideshowPage.obj -MD -MP -MF src/$(DEPDIR)/shotwell-SlideshowPage.Tpo -c -o src/shotwell-SlideshowPage.obj `if test -f 'src/SlideshowPage.c'; then $(CYGPATH_W) 'src/SlideshowPage.c'; else $(CYGPATH_W) '$(srcdir)/src/SlideshowPage.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-SlideshowPage.Tpo src/$(DEPDIR)/shotwell-SlideshowPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/SlideshowPage.c' object='src/shotwell-SlideshowPage.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-SlideshowPage.obj `if test -f 'src/SlideshowPage.c'; then $(CYGPATH_W) 'src/SlideshowPage.c'; else $(CYGPATH_W) '$(srcdir)/src/SlideshowPage.c'; fi` - -src/shotwell-LibraryFiles.o: src/LibraryFiles.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-LibraryFiles.o -MD -MP -MF src/$(DEPDIR)/shotwell-LibraryFiles.Tpo -c -o src/shotwell-LibraryFiles.o `test -f 'src/LibraryFiles.c' || echo '$(srcdir)/'`src/LibraryFiles.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-LibraryFiles.Tpo src/$(DEPDIR)/shotwell-LibraryFiles.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/LibraryFiles.c' object='src/shotwell-LibraryFiles.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-LibraryFiles.o `test -f 'src/LibraryFiles.c' || echo '$(srcdir)/'`src/LibraryFiles.c - -src/shotwell-LibraryFiles.obj: src/LibraryFiles.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-LibraryFiles.obj -MD -MP -MF src/$(DEPDIR)/shotwell-LibraryFiles.Tpo -c -o src/shotwell-LibraryFiles.obj `if test -f 'src/LibraryFiles.c'; then $(CYGPATH_W) 'src/LibraryFiles.c'; else $(CYGPATH_W) '$(srcdir)/src/LibraryFiles.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-LibraryFiles.Tpo src/$(DEPDIR)/shotwell-LibraryFiles.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/LibraryFiles.c' object='src/shotwell-LibraryFiles.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-LibraryFiles.obj `if test -f 'src/LibraryFiles.c'; then $(CYGPATH_W) 'src/LibraryFiles.c'; else $(CYGPATH_W) '$(srcdir)/src/LibraryFiles.c'; fi` - -src/shotwell-Printing.o: src/Printing.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Printing.o -MD -MP -MF src/$(DEPDIR)/shotwell-Printing.Tpo -c -o src/shotwell-Printing.o `test -f 'src/Printing.c' || echo '$(srcdir)/'`src/Printing.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Printing.Tpo src/$(DEPDIR)/shotwell-Printing.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Printing.c' object='src/shotwell-Printing.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Printing.o `test -f 'src/Printing.c' || echo '$(srcdir)/'`src/Printing.c - -src/shotwell-Printing.obj: src/Printing.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Printing.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Printing.Tpo -c -o src/shotwell-Printing.obj `if test -f 'src/Printing.c'; then $(CYGPATH_W) 'src/Printing.c'; else $(CYGPATH_W) '$(srcdir)/src/Printing.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Printing.Tpo src/$(DEPDIR)/shotwell-Printing.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Printing.c' object='src/shotwell-Printing.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Printing.obj `if test -f 'src/Printing.c'; then $(CYGPATH_W) 'src/Printing.c'; else $(CYGPATH_W) '$(srcdir)/src/Printing.c'; fi` - -src/shotwell-Tag.o: src/Tag.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Tag.o -MD -MP -MF src/$(DEPDIR)/shotwell-Tag.Tpo -c -o src/shotwell-Tag.o `test -f 'src/Tag.c' || echo '$(srcdir)/'`src/Tag.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Tag.Tpo src/$(DEPDIR)/shotwell-Tag.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Tag.c' object='src/shotwell-Tag.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Tag.o `test -f 'src/Tag.c' || echo '$(srcdir)/'`src/Tag.c - -src/shotwell-Tag.obj: src/Tag.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Tag.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Tag.Tpo -c -o src/shotwell-Tag.obj `if test -f 'src/Tag.c'; then $(CYGPATH_W) 'src/Tag.c'; else $(CYGPATH_W) '$(srcdir)/src/Tag.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Tag.Tpo src/$(DEPDIR)/shotwell-Tag.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Tag.c' object='src/shotwell-Tag.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Tag.obj `if test -f 'src/Tag.c'; then $(CYGPATH_W) 'src/Tag.c'; else $(CYGPATH_W) '$(srcdir)/src/Tag.c'; fi` - -src/shotwell-Screensaver.o: src/Screensaver.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Screensaver.o -MD -MP -MF src/$(DEPDIR)/shotwell-Screensaver.Tpo -c -o src/shotwell-Screensaver.o `test -f 'src/Screensaver.c' || echo '$(srcdir)/'`src/Screensaver.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Screensaver.Tpo src/$(DEPDIR)/shotwell-Screensaver.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Screensaver.c' object='src/shotwell-Screensaver.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Screensaver.o `test -f 'src/Screensaver.c' || echo '$(srcdir)/'`src/Screensaver.c - -src/shotwell-Screensaver.obj: src/Screensaver.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Screensaver.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Screensaver.Tpo -c -o src/shotwell-Screensaver.obj `if test -f 'src/Screensaver.c'; then $(CYGPATH_W) 'src/Screensaver.c'; else $(CYGPATH_W) '$(srcdir)/src/Screensaver.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Screensaver.Tpo src/$(DEPDIR)/shotwell-Screensaver.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Screensaver.c' object='src/shotwell-Screensaver.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Screensaver.obj `if test -f 'src/Screensaver.c'; then $(CYGPATH_W) 'src/Screensaver.c'; else $(CYGPATH_W) '$(srcdir)/src/Screensaver.c'; fi` - -src/shotwell-Exporter.o: src/Exporter.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Exporter.o -MD -MP -MF src/$(DEPDIR)/shotwell-Exporter.Tpo -c -o src/shotwell-Exporter.o `test -f 'src/Exporter.c' || echo '$(srcdir)/'`src/Exporter.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Exporter.Tpo src/$(DEPDIR)/shotwell-Exporter.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Exporter.c' object='src/shotwell-Exporter.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Exporter.o `test -f 'src/Exporter.c' || echo '$(srcdir)/'`src/Exporter.c - -src/shotwell-Exporter.obj: src/Exporter.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Exporter.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Exporter.Tpo -c -o src/shotwell-Exporter.obj `if test -f 'src/Exporter.c'; then $(CYGPATH_W) 'src/Exporter.c'; else $(CYGPATH_W) '$(srcdir)/src/Exporter.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Exporter.Tpo src/$(DEPDIR)/shotwell-Exporter.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Exporter.c' object='src/shotwell-Exporter.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Exporter.obj `if test -f 'src/Exporter.c'; then $(CYGPATH_W) 'src/Exporter.c'; else $(CYGPATH_W) '$(srcdir)/src/Exporter.c'; fi` - -src/shotwell-DirectoryMonitor.o: src/DirectoryMonitor.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-DirectoryMonitor.o -MD -MP -MF src/$(DEPDIR)/shotwell-DirectoryMonitor.Tpo -c -o src/shotwell-DirectoryMonitor.o `test -f 'src/DirectoryMonitor.c' || echo '$(srcdir)/'`src/DirectoryMonitor.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-DirectoryMonitor.Tpo src/$(DEPDIR)/shotwell-DirectoryMonitor.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/DirectoryMonitor.c' object='src/shotwell-DirectoryMonitor.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-DirectoryMonitor.o `test -f 'src/DirectoryMonitor.c' || echo '$(srcdir)/'`src/DirectoryMonitor.c - -src/shotwell-DirectoryMonitor.obj: src/DirectoryMonitor.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-DirectoryMonitor.obj -MD -MP -MF src/$(DEPDIR)/shotwell-DirectoryMonitor.Tpo -c -o src/shotwell-DirectoryMonitor.obj `if test -f 'src/DirectoryMonitor.c'; then $(CYGPATH_W) 'src/DirectoryMonitor.c'; else $(CYGPATH_W) '$(srcdir)/src/DirectoryMonitor.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-DirectoryMonitor.Tpo src/$(DEPDIR)/shotwell-DirectoryMonitor.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/DirectoryMonitor.c' object='src/shotwell-DirectoryMonitor.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-DirectoryMonitor.obj `if test -f 'src/DirectoryMonitor.c'; then $(CYGPATH_W) 'src/DirectoryMonitor.c'; else $(CYGPATH_W) '$(srcdir)/src/DirectoryMonitor.c'; fi` - -src/shotwell-LibraryMonitor.o: src/LibraryMonitor.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-LibraryMonitor.o -MD -MP -MF src/$(DEPDIR)/shotwell-LibraryMonitor.Tpo -c -o src/shotwell-LibraryMonitor.o `test -f 'src/LibraryMonitor.c' || echo '$(srcdir)/'`src/LibraryMonitor.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-LibraryMonitor.Tpo src/$(DEPDIR)/shotwell-LibraryMonitor.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/LibraryMonitor.c' object='src/shotwell-LibraryMonitor.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-LibraryMonitor.o `test -f 'src/LibraryMonitor.c' || echo '$(srcdir)/'`src/LibraryMonitor.c - -src/shotwell-LibraryMonitor.obj: src/LibraryMonitor.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-LibraryMonitor.obj -MD -MP -MF src/$(DEPDIR)/shotwell-LibraryMonitor.Tpo -c -o src/shotwell-LibraryMonitor.obj `if test -f 'src/LibraryMonitor.c'; then $(CYGPATH_W) 'src/LibraryMonitor.c'; else $(CYGPATH_W) '$(srcdir)/src/LibraryMonitor.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-LibraryMonitor.Tpo src/$(DEPDIR)/shotwell-LibraryMonitor.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/LibraryMonitor.c' object='src/shotwell-LibraryMonitor.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-LibraryMonitor.obj `if test -f 'src/LibraryMonitor.c'; then $(CYGPATH_W) 'src/LibraryMonitor.c'; else $(CYGPATH_W) '$(srcdir)/src/LibraryMonitor.c'; fi` - -src/shotwell-VideoSupport.o: src/VideoSupport.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-VideoSupport.o -MD -MP -MF src/$(DEPDIR)/shotwell-VideoSupport.Tpo -c -o src/shotwell-VideoSupport.o `test -f 'src/VideoSupport.c' || echo '$(srcdir)/'`src/VideoSupport.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-VideoSupport.Tpo src/$(DEPDIR)/shotwell-VideoSupport.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/VideoSupport.c' object='src/shotwell-VideoSupport.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-VideoSupport.o `test -f 'src/VideoSupport.c' || echo '$(srcdir)/'`src/VideoSupport.c - -src/shotwell-VideoSupport.obj: src/VideoSupport.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-VideoSupport.obj -MD -MP -MF src/$(DEPDIR)/shotwell-VideoSupport.Tpo -c -o src/shotwell-VideoSupport.obj `if test -f 'src/VideoSupport.c'; then $(CYGPATH_W) 'src/VideoSupport.c'; else $(CYGPATH_W) '$(srcdir)/src/VideoSupport.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-VideoSupport.Tpo src/$(DEPDIR)/shotwell-VideoSupport.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/VideoSupport.c' object='src/shotwell-VideoSupport.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-VideoSupport.obj `if test -f 'src/VideoSupport.c'; then $(CYGPATH_W) 'src/VideoSupport.c'; else $(CYGPATH_W) '$(srcdir)/src/VideoSupport.c'; fi` - -src/shotwell-Tombstone.o: src/Tombstone.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Tombstone.o -MD -MP -MF src/$(DEPDIR)/shotwell-Tombstone.Tpo -c -o src/shotwell-Tombstone.o `test -f 'src/Tombstone.c' || echo '$(srcdir)/'`src/Tombstone.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Tombstone.Tpo src/$(DEPDIR)/shotwell-Tombstone.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Tombstone.c' object='src/shotwell-Tombstone.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Tombstone.o `test -f 'src/Tombstone.c' || echo '$(srcdir)/'`src/Tombstone.c - -src/shotwell-Tombstone.obj: src/Tombstone.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Tombstone.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Tombstone.Tpo -c -o src/shotwell-Tombstone.obj `if test -f 'src/Tombstone.c'; then $(CYGPATH_W) 'src/Tombstone.c'; else $(CYGPATH_W) '$(srcdir)/src/Tombstone.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Tombstone.Tpo src/$(DEPDIR)/shotwell-Tombstone.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Tombstone.c' object='src/shotwell-Tombstone.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Tombstone.obj `if test -f 'src/Tombstone.c'; then $(CYGPATH_W) 'src/Tombstone.c'; else $(CYGPATH_W) '$(srcdir)/src/Tombstone.c'; fi` - -src/shotwell-MetadataWriter.o: src/MetadataWriter.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-MetadataWriter.o -MD -MP -MF src/$(DEPDIR)/shotwell-MetadataWriter.Tpo -c -o src/shotwell-MetadataWriter.o `test -f 'src/MetadataWriter.c' || echo '$(srcdir)/'`src/MetadataWriter.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-MetadataWriter.Tpo src/$(DEPDIR)/shotwell-MetadataWriter.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/MetadataWriter.c' object='src/shotwell-MetadataWriter.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-MetadataWriter.o `test -f 'src/MetadataWriter.c' || echo '$(srcdir)/'`src/MetadataWriter.c - -src/shotwell-MetadataWriter.obj: src/MetadataWriter.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-MetadataWriter.obj -MD -MP -MF src/$(DEPDIR)/shotwell-MetadataWriter.Tpo -c -o src/shotwell-MetadataWriter.obj `if test -f 'src/MetadataWriter.c'; then $(CYGPATH_W) 'src/MetadataWriter.c'; else $(CYGPATH_W) '$(srcdir)/src/MetadataWriter.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-MetadataWriter.Tpo src/$(DEPDIR)/shotwell-MetadataWriter.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/MetadataWriter.c' object='src/shotwell-MetadataWriter.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-MetadataWriter.obj `if test -f 'src/MetadataWriter.c'; then $(CYGPATH_W) 'src/MetadataWriter.c'; else $(CYGPATH_W) '$(srcdir)/src/MetadataWriter.c'; fi` - -src/shotwell-Application.o: src/Application.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Application.o -MD -MP -MF src/$(DEPDIR)/shotwell-Application.Tpo -c -o src/shotwell-Application.o `test -f 'src/Application.c' || echo '$(srcdir)/'`src/Application.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Application.Tpo src/$(DEPDIR)/shotwell-Application.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Application.c' object='src/shotwell-Application.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Application.o `test -f 'src/Application.c' || echo '$(srcdir)/'`src/Application.c - -src/shotwell-Application.obj: src/Application.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Application.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Application.Tpo -c -o src/shotwell-Application.obj `if test -f 'src/Application.c'; then $(CYGPATH_W) 'src/Application.c'; else $(CYGPATH_W) '$(srcdir)/src/Application.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Application.Tpo src/$(DEPDIR)/shotwell-Application.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Application.c' object='src/shotwell-Application.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Application.obj `if test -f 'src/Application.c'; then $(CYGPATH_W) 'src/Application.c'; else $(CYGPATH_W) '$(srcdir)/src/Application.c'; fi` - -src/shotwell-TimedQueue.o: src/TimedQueue.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-TimedQueue.o -MD -MP -MF src/$(DEPDIR)/shotwell-TimedQueue.Tpo -c -o src/shotwell-TimedQueue.o `test -f 'src/TimedQueue.c' || echo '$(srcdir)/'`src/TimedQueue.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-TimedQueue.Tpo src/$(DEPDIR)/shotwell-TimedQueue.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/TimedQueue.c' object='src/shotwell-TimedQueue.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-TimedQueue.o `test -f 'src/TimedQueue.c' || echo '$(srcdir)/'`src/TimedQueue.c - -src/shotwell-TimedQueue.obj: src/TimedQueue.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-TimedQueue.obj -MD -MP -MF src/$(DEPDIR)/shotwell-TimedQueue.Tpo -c -o src/shotwell-TimedQueue.obj `if test -f 'src/TimedQueue.c'; then $(CYGPATH_W) 'src/TimedQueue.c'; else $(CYGPATH_W) '$(srcdir)/src/TimedQueue.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-TimedQueue.Tpo src/$(DEPDIR)/shotwell-TimedQueue.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/TimedQueue.c' object='src/shotwell-TimedQueue.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-TimedQueue.obj `if test -f 'src/TimedQueue.c'; then $(CYGPATH_W) 'src/TimedQueue.c'; else $(CYGPATH_W) '$(srcdir)/src/TimedQueue.c'; fi` - -src/shotwell-MediaPage.o: src/MediaPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-MediaPage.o -MD -MP -MF src/$(DEPDIR)/shotwell-MediaPage.Tpo -c -o src/shotwell-MediaPage.o `test -f 'src/MediaPage.c' || echo '$(srcdir)/'`src/MediaPage.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-MediaPage.Tpo src/$(DEPDIR)/shotwell-MediaPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/MediaPage.c' object='src/shotwell-MediaPage.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-MediaPage.o `test -f 'src/MediaPage.c' || echo '$(srcdir)/'`src/MediaPage.c - -src/shotwell-MediaPage.obj: src/MediaPage.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-MediaPage.obj -MD -MP -MF src/$(DEPDIR)/shotwell-MediaPage.Tpo -c -o src/shotwell-MediaPage.obj `if test -f 'src/MediaPage.c'; then $(CYGPATH_W) 'src/MediaPage.c'; else $(CYGPATH_W) '$(srcdir)/src/MediaPage.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-MediaPage.Tpo src/$(DEPDIR)/shotwell-MediaPage.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/MediaPage.c' object='src/shotwell-MediaPage.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-MediaPage.obj `if test -f 'src/MediaPage.c'; then $(CYGPATH_W) 'src/MediaPage.c'; else $(CYGPATH_W) '$(srcdir)/src/MediaPage.c'; fi` - -src/shotwell-MediaDataRepresentation.o: src/MediaDataRepresentation.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-MediaDataRepresentation.o -MD -MP -MF src/$(DEPDIR)/shotwell-MediaDataRepresentation.Tpo -c -o src/shotwell-MediaDataRepresentation.o `test -f 'src/MediaDataRepresentation.c' || echo '$(srcdir)/'`src/MediaDataRepresentation.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-MediaDataRepresentation.Tpo src/$(DEPDIR)/shotwell-MediaDataRepresentation.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/MediaDataRepresentation.c' object='src/shotwell-MediaDataRepresentation.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-MediaDataRepresentation.o `test -f 'src/MediaDataRepresentation.c' || echo '$(srcdir)/'`src/MediaDataRepresentation.c - -src/shotwell-MediaDataRepresentation.obj: src/MediaDataRepresentation.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-MediaDataRepresentation.obj -MD -MP -MF src/$(DEPDIR)/shotwell-MediaDataRepresentation.Tpo -c -o src/shotwell-MediaDataRepresentation.obj `if test -f 'src/MediaDataRepresentation.c'; then $(CYGPATH_W) 'src/MediaDataRepresentation.c'; else $(CYGPATH_W) '$(srcdir)/src/MediaDataRepresentation.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-MediaDataRepresentation.Tpo src/$(DEPDIR)/shotwell-MediaDataRepresentation.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/MediaDataRepresentation.c' object='src/shotwell-MediaDataRepresentation.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-MediaDataRepresentation.obj `if test -f 'src/MediaDataRepresentation.c'; then $(CYGPATH_W) 'src/MediaDataRepresentation.c'; else $(CYGPATH_W) '$(srcdir)/src/MediaDataRepresentation.c'; fi` - -src/shotwell-DesktopIntegration.o: src/DesktopIntegration.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-DesktopIntegration.o -MD -MP -MF src/$(DEPDIR)/shotwell-DesktopIntegration.Tpo -c -o src/shotwell-DesktopIntegration.o `test -f 'src/DesktopIntegration.c' || echo '$(srcdir)/'`src/DesktopIntegration.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-DesktopIntegration.Tpo src/$(DEPDIR)/shotwell-DesktopIntegration.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/DesktopIntegration.c' object='src/shotwell-DesktopIntegration.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-DesktopIntegration.o `test -f 'src/DesktopIntegration.c' || echo '$(srcdir)/'`src/DesktopIntegration.c - -src/shotwell-DesktopIntegration.obj: src/DesktopIntegration.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-DesktopIntegration.obj -MD -MP -MF src/$(DEPDIR)/shotwell-DesktopIntegration.Tpo -c -o src/shotwell-DesktopIntegration.obj `if test -f 'src/DesktopIntegration.c'; then $(CYGPATH_W) 'src/DesktopIntegration.c'; else $(CYGPATH_W) '$(srcdir)/src/DesktopIntegration.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-DesktopIntegration.Tpo src/$(DEPDIR)/shotwell-DesktopIntegration.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/DesktopIntegration.c' object='src/shotwell-DesktopIntegration.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-DesktopIntegration.obj `if test -f 'src/DesktopIntegration.c'; then $(CYGPATH_W) 'src/DesktopIntegration.c'; else $(CYGPATH_W) '$(srcdir)/src/DesktopIntegration.c'; fi` - -src/shotwell-MediaInterfaces.o: src/MediaInterfaces.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-MediaInterfaces.o -MD -MP -MF src/$(DEPDIR)/shotwell-MediaInterfaces.Tpo -c -o src/shotwell-MediaInterfaces.o `test -f 'src/MediaInterfaces.c' || echo '$(srcdir)/'`src/MediaInterfaces.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-MediaInterfaces.Tpo src/$(DEPDIR)/shotwell-MediaInterfaces.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/MediaInterfaces.c' object='src/shotwell-MediaInterfaces.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-MediaInterfaces.o `test -f 'src/MediaInterfaces.c' || echo '$(srcdir)/'`src/MediaInterfaces.c - -src/shotwell-MediaInterfaces.obj: src/MediaInterfaces.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-MediaInterfaces.obj -MD -MP -MF src/$(DEPDIR)/shotwell-MediaInterfaces.Tpo -c -o src/shotwell-MediaInterfaces.obj `if test -f 'src/MediaInterfaces.c'; then $(CYGPATH_W) 'src/MediaInterfaces.c'; else $(CYGPATH_W) '$(srcdir)/src/MediaInterfaces.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-MediaInterfaces.Tpo src/$(DEPDIR)/shotwell-MediaInterfaces.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/MediaInterfaces.c' object='src/shotwell-MediaInterfaces.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-MediaInterfaces.obj `if test -f 'src/MediaInterfaces.c'; then $(CYGPATH_W) 'src/MediaInterfaces.c'; else $(CYGPATH_W) '$(srcdir)/src/MediaInterfaces.c'; fi` - -src/shotwell-MediaMetadata.o: src/MediaMetadata.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-MediaMetadata.o -MD -MP -MF src/$(DEPDIR)/shotwell-MediaMetadata.Tpo -c -o src/shotwell-MediaMetadata.o `test -f 'src/MediaMetadata.c' || echo '$(srcdir)/'`src/MediaMetadata.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-MediaMetadata.Tpo src/$(DEPDIR)/shotwell-MediaMetadata.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/MediaMetadata.c' object='src/shotwell-MediaMetadata.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-MediaMetadata.o `test -f 'src/MediaMetadata.c' || echo '$(srcdir)/'`src/MediaMetadata.c - -src/shotwell-MediaMetadata.obj: src/MediaMetadata.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-MediaMetadata.obj -MD -MP -MF src/$(DEPDIR)/shotwell-MediaMetadata.Tpo -c -o src/shotwell-MediaMetadata.obj `if test -f 'src/MediaMetadata.c'; then $(CYGPATH_W) 'src/MediaMetadata.c'; else $(CYGPATH_W) '$(srcdir)/src/MediaMetadata.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-MediaMetadata.Tpo src/$(DEPDIR)/shotwell-MediaMetadata.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/MediaMetadata.c' object='src/shotwell-MediaMetadata.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-MediaMetadata.obj `if test -f 'src/MediaMetadata.c'; then $(CYGPATH_W) 'src/MediaMetadata.c'; else $(CYGPATH_W) '$(srcdir)/src/MediaMetadata.c'; fi` - -src/shotwell-VideoMetadata.o: src/VideoMetadata.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-VideoMetadata.o -MD -MP -MF src/$(DEPDIR)/shotwell-VideoMetadata.Tpo -c -o src/shotwell-VideoMetadata.o `test -f 'src/VideoMetadata.c' || echo '$(srcdir)/'`src/VideoMetadata.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-VideoMetadata.Tpo src/$(DEPDIR)/shotwell-VideoMetadata.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/VideoMetadata.c' object='src/shotwell-VideoMetadata.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-VideoMetadata.o `test -f 'src/VideoMetadata.c' || echo '$(srcdir)/'`src/VideoMetadata.c - -src/shotwell-VideoMetadata.obj: src/VideoMetadata.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-VideoMetadata.obj -MD -MP -MF src/$(DEPDIR)/shotwell-VideoMetadata.Tpo -c -o src/shotwell-VideoMetadata.obj `if test -f 'src/VideoMetadata.c'; then $(CYGPATH_W) 'src/VideoMetadata.c'; else $(CYGPATH_W) '$(srcdir)/src/VideoMetadata.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-VideoMetadata.Tpo src/$(DEPDIR)/shotwell-VideoMetadata.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/VideoMetadata.c' object='src/shotwell-VideoMetadata.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-VideoMetadata.obj `if test -f 'src/VideoMetadata.c'; then $(CYGPATH_W) 'src/VideoMetadata.c'; else $(CYGPATH_W) '$(srcdir)/src/VideoMetadata.c'; fi` - -src/shotwell-MediaMonitor.o: src/MediaMonitor.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-MediaMonitor.o -MD -MP -MF src/$(DEPDIR)/shotwell-MediaMonitor.Tpo -c -o src/shotwell-MediaMonitor.o `test -f 'src/MediaMonitor.c' || echo '$(srcdir)/'`src/MediaMonitor.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-MediaMonitor.Tpo src/$(DEPDIR)/shotwell-MediaMonitor.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/MediaMonitor.c' object='src/shotwell-MediaMonitor.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-MediaMonitor.o `test -f 'src/MediaMonitor.c' || echo '$(srcdir)/'`src/MediaMonitor.c - -src/shotwell-MediaMonitor.obj: src/MediaMonitor.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-MediaMonitor.obj -MD -MP -MF src/$(DEPDIR)/shotwell-MediaMonitor.Tpo -c -o src/shotwell-MediaMonitor.obj `if test -f 'src/MediaMonitor.c'; then $(CYGPATH_W) 'src/MediaMonitor.c'; else $(CYGPATH_W) '$(srcdir)/src/MediaMonitor.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-MediaMonitor.Tpo src/$(DEPDIR)/shotwell-MediaMonitor.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/MediaMonitor.c' object='src/shotwell-MediaMonitor.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-MediaMonitor.obj `if test -f 'src/MediaMonitor.c'; then $(CYGPATH_W) 'src/MediaMonitor.c'; else $(CYGPATH_W) '$(srcdir)/src/MediaMonitor.c'; fi` - -src/shotwell-PhotoMonitor.o: src/PhotoMonitor.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-PhotoMonitor.o -MD -MP -MF src/$(DEPDIR)/shotwell-PhotoMonitor.Tpo -c -o src/shotwell-PhotoMonitor.o `test -f 'src/PhotoMonitor.c' || echo '$(srcdir)/'`src/PhotoMonitor.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-PhotoMonitor.Tpo src/$(DEPDIR)/shotwell-PhotoMonitor.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/PhotoMonitor.c' object='src/shotwell-PhotoMonitor.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-PhotoMonitor.o `test -f 'src/PhotoMonitor.c' || echo '$(srcdir)/'`src/PhotoMonitor.c - -src/shotwell-PhotoMonitor.obj: src/PhotoMonitor.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-PhotoMonitor.obj -MD -MP -MF src/$(DEPDIR)/shotwell-PhotoMonitor.Tpo -c -o src/shotwell-PhotoMonitor.obj `if test -f 'src/PhotoMonitor.c'; then $(CYGPATH_W) 'src/PhotoMonitor.c'; else $(CYGPATH_W) '$(srcdir)/src/PhotoMonitor.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-PhotoMonitor.Tpo src/$(DEPDIR)/shotwell-PhotoMonitor.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/PhotoMonitor.c' object='src/shotwell-PhotoMonitor.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-PhotoMonitor.obj `if test -f 'src/PhotoMonitor.c'; then $(CYGPATH_W) 'src/PhotoMonitor.c'; else $(CYGPATH_W) '$(srcdir)/src/PhotoMonitor.c'; fi` - -src/shotwell-VideoMonitor.o: src/VideoMonitor.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-VideoMonitor.o -MD -MP -MF src/$(DEPDIR)/shotwell-VideoMonitor.Tpo -c -o src/shotwell-VideoMonitor.o `test -f 'src/VideoMonitor.c' || echo '$(srcdir)/'`src/VideoMonitor.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-VideoMonitor.Tpo src/$(DEPDIR)/shotwell-VideoMonitor.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/VideoMonitor.c' object='src/shotwell-VideoMonitor.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-VideoMonitor.o `test -f 'src/VideoMonitor.c' || echo '$(srcdir)/'`src/VideoMonitor.c - -src/shotwell-VideoMonitor.obj: src/VideoMonitor.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-VideoMonitor.obj -MD -MP -MF src/$(DEPDIR)/shotwell-VideoMonitor.Tpo -c -o src/shotwell-VideoMonitor.obj `if test -f 'src/VideoMonitor.c'; then $(CYGPATH_W) 'src/VideoMonitor.c'; else $(CYGPATH_W) '$(srcdir)/src/VideoMonitor.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-VideoMonitor.Tpo src/$(DEPDIR)/shotwell-VideoMonitor.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/VideoMonitor.c' object='src/shotwell-VideoMonitor.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-VideoMonitor.obj `if test -f 'src/VideoMonitor.c'; then $(CYGPATH_W) 'src/VideoMonitor.c'; else $(CYGPATH_W) '$(srcdir)/src/VideoMonitor.c'; fi` - -src/shotwell-SearchFilter.o: src/SearchFilter.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-SearchFilter.o -MD -MP -MF src/$(DEPDIR)/shotwell-SearchFilter.Tpo -c -o src/shotwell-SearchFilter.o `test -f 'src/SearchFilter.c' || echo '$(srcdir)/'`src/SearchFilter.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-SearchFilter.Tpo src/$(DEPDIR)/shotwell-SearchFilter.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/SearchFilter.c' object='src/shotwell-SearchFilter.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-SearchFilter.o `test -f 'src/SearchFilter.c' || echo '$(srcdir)/'`src/SearchFilter.c - -src/shotwell-SearchFilter.obj: src/SearchFilter.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-SearchFilter.obj -MD -MP -MF src/$(DEPDIR)/shotwell-SearchFilter.Tpo -c -o src/shotwell-SearchFilter.obj `if test -f 'src/SearchFilter.c'; then $(CYGPATH_W) 'src/SearchFilter.c'; else $(CYGPATH_W) '$(srcdir)/src/SearchFilter.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-SearchFilter.Tpo src/$(DEPDIR)/shotwell-SearchFilter.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/SearchFilter.c' object='src/shotwell-SearchFilter.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-SearchFilter.obj `if test -f 'src/SearchFilter.c'; then $(CYGPATH_W) 'src/SearchFilter.c'; else $(CYGPATH_W) '$(srcdir)/src/SearchFilter.c'; fi` - -src/shotwell-MediaViewTracker.o: src/MediaViewTracker.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-MediaViewTracker.o -MD -MP -MF src/$(DEPDIR)/shotwell-MediaViewTracker.Tpo -c -o src/shotwell-MediaViewTracker.o `test -f 'src/MediaViewTracker.c' || echo '$(srcdir)/'`src/MediaViewTracker.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-MediaViewTracker.Tpo src/$(DEPDIR)/shotwell-MediaViewTracker.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/MediaViewTracker.c' object='src/shotwell-MediaViewTracker.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-MediaViewTracker.o `test -f 'src/MediaViewTracker.c' || echo '$(srcdir)/'`src/MediaViewTracker.c - -src/shotwell-MediaViewTracker.obj: src/MediaViewTracker.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-MediaViewTracker.obj -MD -MP -MF src/$(DEPDIR)/shotwell-MediaViewTracker.Tpo -c -o src/shotwell-MediaViewTracker.obj `if test -f 'src/MediaViewTracker.c'; then $(CYGPATH_W) 'src/MediaViewTracker.c'; else $(CYGPATH_W) '$(srcdir)/src/MediaViewTracker.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-MediaViewTracker.Tpo src/$(DEPDIR)/shotwell-MediaViewTracker.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/MediaViewTracker.c' object='src/shotwell-MediaViewTracker.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-MediaViewTracker.obj `if test -f 'src/MediaViewTracker.c'; then $(CYGPATH_W) 'src/MediaViewTracker.c'; else $(CYGPATH_W) '$(srcdir)/src/MediaViewTracker.c'; fi` - -src/shotwell-UnityProgressBar.o: src/UnityProgressBar.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-UnityProgressBar.o -MD -MP -MF src/$(DEPDIR)/shotwell-UnityProgressBar.Tpo -c -o src/shotwell-UnityProgressBar.o `test -f 'src/UnityProgressBar.c' || echo '$(srcdir)/'`src/UnityProgressBar.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-UnityProgressBar.Tpo src/$(DEPDIR)/shotwell-UnityProgressBar.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/UnityProgressBar.c' object='src/shotwell-UnityProgressBar.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-UnityProgressBar.o `test -f 'src/UnityProgressBar.c' || echo '$(srcdir)/'`src/UnityProgressBar.c - -src/shotwell-UnityProgressBar.obj: src/UnityProgressBar.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-UnityProgressBar.obj -MD -MP -MF src/$(DEPDIR)/shotwell-UnityProgressBar.Tpo -c -o src/shotwell-UnityProgressBar.obj `if test -f 'src/UnityProgressBar.c'; then $(CYGPATH_W) 'src/UnityProgressBar.c'; else $(CYGPATH_W) '$(srcdir)/src/UnityProgressBar.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-UnityProgressBar.Tpo src/$(DEPDIR)/shotwell-UnityProgressBar.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/UnityProgressBar.c' object='src/shotwell-UnityProgressBar.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-UnityProgressBar.obj `if test -f 'src/UnityProgressBar.c'; then $(CYGPATH_W) 'src/UnityProgressBar.c'; else $(CYGPATH_W) '$(srcdir)/src/UnityProgressBar.c'; fi` - -src/shotwell-Upgrades.o: src/Upgrades.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Upgrades.o -MD -MP -MF src/$(DEPDIR)/shotwell-Upgrades.Tpo -c -o src/shotwell-Upgrades.o `test -f 'src/Upgrades.c' || echo '$(srcdir)/'`src/Upgrades.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Upgrades.Tpo src/$(DEPDIR)/shotwell-Upgrades.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Upgrades.c' object='src/shotwell-Upgrades.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Upgrades.o `test -f 'src/Upgrades.c' || echo '$(srcdir)/'`src/Upgrades.c - -src/shotwell-Upgrades.obj: src/Upgrades.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/shotwell-Upgrades.obj -MD -MP -MF src/$(DEPDIR)/shotwell-Upgrades.Tpo -c -o src/shotwell-Upgrades.obj `if test -f 'src/Upgrades.c'; then $(CYGPATH_W) 'src/Upgrades.c'; else $(CYGPATH_W) '$(srcdir)/src/Upgrades.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/shotwell-Upgrades.Tpo src/$(DEPDIR)/shotwell-Upgrades.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/Upgrades.c' object='src/shotwell-Upgrades.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/shotwell-Upgrades.obj `if test -f 'src/Upgrades.c'; then $(CYGPATH_W) 'src/Upgrades.c'; else $(CYGPATH_W) '$(srcdir)/src/Upgrades.c'; fi` - -src/.unitize/shotwell-_UnitInternals.o: src/.unitize/_UnitInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_UnitInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_UnitInternals.Tpo -c -o src/.unitize/shotwell-_UnitInternals.o `test -f 'src/.unitize/_UnitInternals.c' || echo '$(srcdir)/'`src/.unitize/_UnitInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_UnitInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_UnitInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_UnitInternals.c' object='src/.unitize/shotwell-_UnitInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_UnitInternals.o `test -f 'src/.unitize/_UnitInternals.c' || echo '$(srcdir)/'`src/.unitize/_UnitInternals.c - -src/.unitize/shotwell-_UnitInternals.obj: src/.unitize/_UnitInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_UnitInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_UnitInternals.Tpo -c -o src/.unitize/shotwell-_UnitInternals.obj `if test -f 'src/.unitize/_UnitInternals.c'; then $(CYGPATH_W) 'src/.unitize/_UnitInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_UnitInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_UnitInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_UnitInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_UnitInternals.c' object='src/.unitize/shotwell-_UnitInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_UnitInternals.obj `if test -f 'src/.unitize/_UnitInternals.c'; then $(CYGPATH_W) 'src/.unitize/_UnitInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_UnitInternals.c'; fi` - -src/.unitize/shotwell-_UtilInternals.o: src/.unitize/_UtilInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_UtilInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_UtilInternals.Tpo -c -o src/.unitize/shotwell-_UtilInternals.o `test -f 'src/.unitize/_UtilInternals.c' || echo '$(srcdir)/'`src/.unitize/_UtilInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_UtilInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_UtilInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_UtilInternals.c' object='src/.unitize/shotwell-_UtilInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_UtilInternals.o `test -f 'src/.unitize/_UtilInternals.c' || echo '$(srcdir)/'`src/.unitize/_UtilInternals.c - -src/.unitize/shotwell-_UtilInternals.obj: src/.unitize/_UtilInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_UtilInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_UtilInternals.Tpo -c -o src/.unitize/shotwell-_UtilInternals.obj `if test -f 'src/.unitize/_UtilInternals.c'; then $(CYGPATH_W) 'src/.unitize/_UtilInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_UtilInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_UtilInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_UtilInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_UtilInternals.c' object='src/.unitize/shotwell-_UtilInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_UtilInternals.obj `if test -f 'src/.unitize/_UtilInternals.c'; then $(CYGPATH_W) 'src/.unitize/_UtilInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_UtilInternals.c'; fi` - -src/.unitize/shotwell-_ThreadsInternals.o: src/.unitize/_ThreadsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_ThreadsInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_ThreadsInternals.Tpo -c -o src/.unitize/shotwell-_ThreadsInternals.o `test -f 'src/.unitize/_ThreadsInternals.c' || echo '$(srcdir)/'`src/.unitize/_ThreadsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_ThreadsInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_ThreadsInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_ThreadsInternals.c' object='src/.unitize/shotwell-_ThreadsInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_ThreadsInternals.o `test -f 'src/.unitize/_ThreadsInternals.c' || echo '$(srcdir)/'`src/.unitize/_ThreadsInternals.c - -src/.unitize/shotwell-_ThreadsInternals.obj: src/.unitize/_ThreadsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_ThreadsInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_ThreadsInternals.Tpo -c -o src/.unitize/shotwell-_ThreadsInternals.obj `if test -f 'src/.unitize/_ThreadsInternals.c'; then $(CYGPATH_W) 'src/.unitize/_ThreadsInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_ThreadsInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_ThreadsInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_ThreadsInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_ThreadsInternals.c' object='src/.unitize/shotwell-_ThreadsInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_ThreadsInternals.obj `if test -f 'src/.unitize/_ThreadsInternals.c'; then $(CYGPATH_W) 'src/.unitize/_ThreadsInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_ThreadsInternals.c'; fi` - -src/.unitize/shotwell-_DbInternals.o: src/.unitize/_DbInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_DbInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_DbInternals.Tpo -c -o src/.unitize/shotwell-_DbInternals.o `test -f 'src/.unitize/_DbInternals.c' || echo '$(srcdir)/'`src/.unitize/_DbInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_DbInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_DbInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_DbInternals.c' object='src/.unitize/shotwell-_DbInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_DbInternals.o `test -f 'src/.unitize/_DbInternals.c' || echo '$(srcdir)/'`src/.unitize/_DbInternals.c - -src/.unitize/shotwell-_DbInternals.obj: src/.unitize/_DbInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_DbInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_DbInternals.Tpo -c -o src/.unitize/shotwell-_DbInternals.obj `if test -f 'src/.unitize/_DbInternals.c'; then $(CYGPATH_W) 'src/.unitize/_DbInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_DbInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_DbInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_DbInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_DbInternals.c' object='src/.unitize/shotwell-_DbInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_DbInternals.obj `if test -f 'src/.unitize/_DbInternals.c'; then $(CYGPATH_W) 'src/.unitize/_DbInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_DbInternals.c'; fi` - -src/.unitize/shotwell-_EditingToolsInternals.o: src/.unitize/_EditingToolsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_EditingToolsInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_EditingToolsInternals.Tpo -c -o src/.unitize/shotwell-_EditingToolsInternals.o `test -f 'src/.unitize/_EditingToolsInternals.c' || echo '$(srcdir)/'`src/.unitize/_EditingToolsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_EditingToolsInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_EditingToolsInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_EditingToolsInternals.c' object='src/.unitize/shotwell-_EditingToolsInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_EditingToolsInternals.o `test -f 'src/.unitize/_EditingToolsInternals.c' || echo '$(srcdir)/'`src/.unitize/_EditingToolsInternals.c - -src/.unitize/shotwell-_EditingToolsInternals.obj: src/.unitize/_EditingToolsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_EditingToolsInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_EditingToolsInternals.Tpo -c -o src/.unitize/shotwell-_EditingToolsInternals.obj `if test -f 'src/.unitize/_EditingToolsInternals.c'; then $(CYGPATH_W) 'src/.unitize/_EditingToolsInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_EditingToolsInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_EditingToolsInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_EditingToolsInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_EditingToolsInternals.c' object='src/.unitize/shotwell-_EditingToolsInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_EditingToolsInternals.obj `if test -f 'src/.unitize/_EditingToolsInternals.c'; then $(CYGPATH_W) 'src/.unitize/_EditingToolsInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_EditingToolsInternals.c'; fi` - -src/.unitize/shotwell-_PluginsInternals.o: src/.unitize/_PluginsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_PluginsInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_PluginsInternals.Tpo -c -o src/.unitize/shotwell-_PluginsInternals.o `test -f 'src/.unitize/_PluginsInternals.c' || echo '$(srcdir)/'`src/.unitize/_PluginsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_PluginsInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_PluginsInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_PluginsInternals.c' object='src/.unitize/shotwell-_PluginsInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_PluginsInternals.o `test -f 'src/.unitize/_PluginsInternals.c' || echo '$(srcdir)/'`src/.unitize/_PluginsInternals.c - -src/.unitize/shotwell-_PluginsInternals.obj: src/.unitize/_PluginsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_PluginsInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_PluginsInternals.Tpo -c -o src/.unitize/shotwell-_PluginsInternals.obj `if test -f 'src/.unitize/_PluginsInternals.c'; then $(CYGPATH_W) 'src/.unitize/_PluginsInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_PluginsInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_PluginsInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_PluginsInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_PluginsInternals.c' object='src/.unitize/shotwell-_PluginsInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_PluginsInternals.obj `if test -f 'src/.unitize/_PluginsInternals.c'; then $(CYGPATH_W) 'src/.unitize/_PluginsInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_PluginsInternals.c'; fi` - -src/.unitize/shotwell-_SlideshowInternals.o: src/.unitize/_SlideshowInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_SlideshowInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_SlideshowInternals.Tpo -c -o src/.unitize/shotwell-_SlideshowInternals.o `test -f 'src/.unitize/_SlideshowInternals.c' || echo '$(srcdir)/'`src/.unitize/_SlideshowInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_SlideshowInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_SlideshowInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_SlideshowInternals.c' object='src/.unitize/shotwell-_SlideshowInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_SlideshowInternals.o `test -f 'src/.unitize/_SlideshowInternals.c' || echo '$(srcdir)/'`src/.unitize/_SlideshowInternals.c - -src/.unitize/shotwell-_SlideshowInternals.obj: src/.unitize/_SlideshowInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_SlideshowInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_SlideshowInternals.Tpo -c -o src/.unitize/shotwell-_SlideshowInternals.obj `if test -f 'src/.unitize/_SlideshowInternals.c'; then $(CYGPATH_W) 'src/.unitize/_SlideshowInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_SlideshowInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_SlideshowInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_SlideshowInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_SlideshowInternals.c' object='src/.unitize/shotwell-_SlideshowInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_SlideshowInternals.obj `if test -f 'src/.unitize/_SlideshowInternals.c'; then $(CYGPATH_W) 'src/.unitize/_SlideshowInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_SlideshowInternals.c'; fi` - -src/.unitize/shotwell-_PhotosInternals.o: src/.unitize/_PhotosInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_PhotosInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_PhotosInternals.Tpo -c -o src/.unitize/shotwell-_PhotosInternals.o `test -f 'src/.unitize/_PhotosInternals.c' || echo '$(srcdir)/'`src/.unitize/_PhotosInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_PhotosInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_PhotosInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_PhotosInternals.c' object='src/.unitize/shotwell-_PhotosInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_PhotosInternals.o `test -f 'src/.unitize/_PhotosInternals.c' || echo '$(srcdir)/'`src/.unitize/_PhotosInternals.c - -src/.unitize/shotwell-_PhotosInternals.obj: src/.unitize/_PhotosInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_PhotosInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_PhotosInternals.Tpo -c -o src/.unitize/shotwell-_PhotosInternals.obj `if test -f 'src/.unitize/_PhotosInternals.c'; then $(CYGPATH_W) 'src/.unitize/_PhotosInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_PhotosInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_PhotosInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_PhotosInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_PhotosInternals.c' object='src/.unitize/shotwell-_PhotosInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_PhotosInternals.obj `if test -f 'src/.unitize/_PhotosInternals.c'; then $(CYGPATH_W) 'src/.unitize/_PhotosInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_PhotosInternals.c'; fi` - -src/.unitize/shotwell-_PublishingInternals.o: src/.unitize/_PublishingInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_PublishingInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_PublishingInternals.Tpo -c -o src/.unitize/shotwell-_PublishingInternals.o `test -f 'src/.unitize/_PublishingInternals.c' || echo '$(srcdir)/'`src/.unitize/_PublishingInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_PublishingInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_PublishingInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_PublishingInternals.c' object='src/.unitize/shotwell-_PublishingInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_PublishingInternals.o `test -f 'src/.unitize/_PublishingInternals.c' || echo '$(srcdir)/'`src/.unitize/_PublishingInternals.c - -src/.unitize/shotwell-_PublishingInternals.obj: src/.unitize/_PublishingInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_PublishingInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_PublishingInternals.Tpo -c -o src/.unitize/shotwell-_PublishingInternals.obj `if test -f 'src/.unitize/_PublishingInternals.c'; then $(CYGPATH_W) 'src/.unitize/_PublishingInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_PublishingInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_PublishingInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_PublishingInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_PublishingInternals.c' object='src/.unitize/shotwell-_PublishingInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_PublishingInternals.obj `if test -f 'src/.unitize/_PublishingInternals.c'; then $(CYGPATH_W) 'src/.unitize/_PublishingInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_PublishingInternals.c'; fi` - -src/.unitize/shotwell-_LibraryInternals.o: src/.unitize/_LibraryInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_LibraryInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_LibraryInternals.Tpo -c -o src/.unitize/shotwell-_LibraryInternals.o `test -f 'src/.unitize/_LibraryInternals.c' || echo '$(srcdir)/'`src/.unitize/_LibraryInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_LibraryInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_LibraryInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_LibraryInternals.c' object='src/.unitize/shotwell-_LibraryInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_LibraryInternals.o `test -f 'src/.unitize/_LibraryInternals.c' || echo '$(srcdir)/'`src/.unitize/_LibraryInternals.c - -src/.unitize/shotwell-_LibraryInternals.obj: src/.unitize/_LibraryInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_LibraryInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_LibraryInternals.Tpo -c -o src/.unitize/shotwell-_LibraryInternals.obj `if test -f 'src/.unitize/_LibraryInternals.c'; then $(CYGPATH_W) 'src/.unitize/_LibraryInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_LibraryInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_LibraryInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_LibraryInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_LibraryInternals.c' object='src/.unitize/shotwell-_LibraryInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_LibraryInternals.obj `if test -f 'src/.unitize/_LibraryInternals.c'; then $(CYGPATH_W) 'src/.unitize/_LibraryInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_LibraryInternals.c'; fi` - -src/.unitize/shotwell-_DirectInternals.o: src/.unitize/_DirectInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_DirectInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_DirectInternals.Tpo -c -o src/.unitize/shotwell-_DirectInternals.o `test -f 'src/.unitize/_DirectInternals.c' || echo '$(srcdir)/'`src/.unitize/_DirectInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_DirectInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_DirectInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_DirectInternals.c' object='src/.unitize/shotwell-_DirectInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_DirectInternals.o `test -f 'src/.unitize/_DirectInternals.c' || echo '$(srcdir)/'`src/.unitize/_DirectInternals.c - -src/.unitize/shotwell-_DirectInternals.obj: src/.unitize/_DirectInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_DirectInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_DirectInternals.Tpo -c -o src/.unitize/shotwell-_DirectInternals.obj `if test -f 'src/.unitize/_DirectInternals.c'; then $(CYGPATH_W) 'src/.unitize/_DirectInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_DirectInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_DirectInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_DirectInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_DirectInternals.c' object='src/.unitize/shotwell-_DirectInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_DirectInternals.obj `if test -f 'src/.unitize/_DirectInternals.c'; then $(CYGPATH_W) 'src/.unitize/_DirectInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_DirectInternals.c'; fi` - -src/.unitize/shotwell-_CoreInternals.o: src/.unitize/_CoreInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_CoreInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_CoreInternals.Tpo -c -o src/.unitize/shotwell-_CoreInternals.o `test -f 'src/.unitize/_CoreInternals.c' || echo '$(srcdir)/'`src/.unitize/_CoreInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_CoreInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_CoreInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_CoreInternals.c' object='src/.unitize/shotwell-_CoreInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_CoreInternals.o `test -f 'src/.unitize/_CoreInternals.c' || echo '$(srcdir)/'`src/.unitize/_CoreInternals.c - -src/.unitize/shotwell-_CoreInternals.obj: src/.unitize/_CoreInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_CoreInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_CoreInternals.Tpo -c -o src/.unitize/shotwell-_CoreInternals.obj `if test -f 'src/.unitize/_CoreInternals.c'; then $(CYGPATH_W) 'src/.unitize/_CoreInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_CoreInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_CoreInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_CoreInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_CoreInternals.c' object='src/.unitize/shotwell-_CoreInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_CoreInternals.obj `if test -f 'src/.unitize/_CoreInternals.c'; then $(CYGPATH_W) 'src/.unitize/_CoreInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_CoreInternals.c'; fi` - -src/.unitize/shotwell-_SidebarInternals.o: src/.unitize/_SidebarInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_SidebarInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_SidebarInternals.Tpo -c -o src/.unitize/shotwell-_SidebarInternals.o `test -f 'src/.unitize/_SidebarInternals.c' || echo '$(srcdir)/'`src/.unitize/_SidebarInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_SidebarInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_SidebarInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_SidebarInternals.c' object='src/.unitize/shotwell-_SidebarInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_SidebarInternals.o `test -f 'src/.unitize/_SidebarInternals.c' || echo '$(srcdir)/'`src/.unitize/_SidebarInternals.c - -src/.unitize/shotwell-_SidebarInternals.obj: src/.unitize/_SidebarInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_SidebarInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_SidebarInternals.Tpo -c -o src/.unitize/shotwell-_SidebarInternals.obj `if test -f 'src/.unitize/_SidebarInternals.c'; then $(CYGPATH_W) 'src/.unitize/_SidebarInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_SidebarInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_SidebarInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_SidebarInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_SidebarInternals.c' object='src/.unitize/shotwell-_SidebarInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_SidebarInternals.obj `if test -f 'src/.unitize/_SidebarInternals.c'; then $(CYGPATH_W) 'src/.unitize/_SidebarInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_SidebarInternals.c'; fi` - -src/.unitize/shotwell-_EventsInternals.o: src/.unitize/_EventsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_EventsInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_EventsInternals.Tpo -c -o src/.unitize/shotwell-_EventsInternals.o `test -f 'src/.unitize/_EventsInternals.c' || echo '$(srcdir)/'`src/.unitize/_EventsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_EventsInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_EventsInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_EventsInternals.c' object='src/.unitize/shotwell-_EventsInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_EventsInternals.o `test -f 'src/.unitize/_EventsInternals.c' || echo '$(srcdir)/'`src/.unitize/_EventsInternals.c - -src/.unitize/shotwell-_EventsInternals.obj: src/.unitize/_EventsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_EventsInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_EventsInternals.Tpo -c -o src/.unitize/shotwell-_EventsInternals.obj `if test -f 'src/.unitize/_EventsInternals.c'; then $(CYGPATH_W) 'src/.unitize/_EventsInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_EventsInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_EventsInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_EventsInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_EventsInternals.c' object='src/.unitize/shotwell-_EventsInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_EventsInternals.obj `if test -f 'src/.unitize/_EventsInternals.c'; then $(CYGPATH_W) 'src/.unitize/_EventsInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_EventsInternals.c'; fi` - -src/.unitize/shotwell-_TagsInternals.o: src/.unitize/_TagsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_TagsInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_TagsInternals.Tpo -c -o src/.unitize/shotwell-_TagsInternals.o `test -f 'src/.unitize/_TagsInternals.c' || echo '$(srcdir)/'`src/.unitize/_TagsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_TagsInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_TagsInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_TagsInternals.c' object='src/.unitize/shotwell-_TagsInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_TagsInternals.o `test -f 'src/.unitize/_TagsInternals.c' || echo '$(srcdir)/'`src/.unitize/_TagsInternals.c - -src/.unitize/shotwell-_TagsInternals.obj: src/.unitize/_TagsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_TagsInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_TagsInternals.Tpo -c -o src/.unitize/shotwell-_TagsInternals.obj `if test -f 'src/.unitize/_TagsInternals.c'; then $(CYGPATH_W) 'src/.unitize/_TagsInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_TagsInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_TagsInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_TagsInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_TagsInternals.c' object='src/.unitize/shotwell-_TagsInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_TagsInternals.obj `if test -f 'src/.unitize/_TagsInternals.c'; then $(CYGPATH_W) 'src/.unitize/_TagsInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_TagsInternals.c'; fi` - -src/.unitize/shotwell-_CameraInternals.o: src/.unitize/_CameraInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_CameraInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_CameraInternals.Tpo -c -o src/.unitize/shotwell-_CameraInternals.o `test -f 'src/.unitize/_CameraInternals.c' || echo '$(srcdir)/'`src/.unitize/_CameraInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_CameraInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_CameraInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_CameraInternals.c' object='src/.unitize/shotwell-_CameraInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_CameraInternals.o `test -f 'src/.unitize/_CameraInternals.c' || echo '$(srcdir)/'`src/.unitize/_CameraInternals.c - -src/.unitize/shotwell-_CameraInternals.obj: src/.unitize/_CameraInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_CameraInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_CameraInternals.Tpo -c -o src/.unitize/shotwell-_CameraInternals.obj `if test -f 'src/.unitize/_CameraInternals.c'; then $(CYGPATH_W) 'src/.unitize/_CameraInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_CameraInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_CameraInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_CameraInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_CameraInternals.c' object='src/.unitize/shotwell-_CameraInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_CameraInternals.obj `if test -f 'src/.unitize/_CameraInternals.c'; then $(CYGPATH_W) 'src/.unitize/_CameraInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_CameraInternals.c'; fi` - -src/.unitize/shotwell-_SearchesInternals.o: src/.unitize/_SearchesInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_SearchesInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_SearchesInternals.Tpo -c -o src/.unitize/shotwell-_SearchesInternals.o `test -f 'src/.unitize/_SearchesInternals.c' || echo '$(srcdir)/'`src/.unitize/_SearchesInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_SearchesInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_SearchesInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_SearchesInternals.c' object='src/.unitize/shotwell-_SearchesInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_SearchesInternals.o `test -f 'src/.unitize/_SearchesInternals.c' || echo '$(srcdir)/'`src/.unitize/_SearchesInternals.c - -src/.unitize/shotwell-_SearchesInternals.obj: src/.unitize/_SearchesInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_SearchesInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_SearchesInternals.Tpo -c -o src/.unitize/shotwell-_SearchesInternals.obj `if test -f 'src/.unitize/_SearchesInternals.c'; then $(CYGPATH_W) 'src/.unitize/_SearchesInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_SearchesInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_SearchesInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_SearchesInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_SearchesInternals.c' object='src/.unitize/shotwell-_SearchesInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_SearchesInternals.obj `if test -f 'src/.unitize/_SearchesInternals.c'; then $(CYGPATH_W) 'src/.unitize/_SearchesInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_SearchesInternals.c'; fi` - -src/.unitize/shotwell-_ConfigInternals.o: src/.unitize/_ConfigInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_ConfigInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_ConfigInternals.Tpo -c -o src/.unitize/shotwell-_ConfigInternals.o `test -f 'src/.unitize/_ConfigInternals.c' || echo '$(srcdir)/'`src/.unitize/_ConfigInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_ConfigInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_ConfigInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_ConfigInternals.c' object='src/.unitize/shotwell-_ConfigInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_ConfigInternals.o `test -f 'src/.unitize/_ConfigInternals.c' || echo '$(srcdir)/'`src/.unitize/_ConfigInternals.c - -src/.unitize/shotwell-_ConfigInternals.obj: src/.unitize/_ConfigInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_ConfigInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_ConfigInternals.Tpo -c -o src/.unitize/shotwell-_ConfigInternals.obj `if test -f 'src/.unitize/_ConfigInternals.c'; then $(CYGPATH_W) 'src/.unitize/_ConfigInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_ConfigInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_ConfigInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_ConfigInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_ConfigInternals.c' object='src/.unitize/shotwell-_ConfigInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_ConfigInternals.obj `if test -f 'src/.unitize/_ConfigInternals.c'; then $(CYGPATH_W) 'src/.unitize/_ConfigInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_ConfigInternals.c'; fi` - -src/.unitize/shotwell-_DataImportsInternals.o: src/.unitize/_DataImportsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_DataImportsInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_DataImportsInternals.Tpo -c -o src/.unitize/shotwell-_DataImportsInternals.o `test -f 'src/.unitize/_DataImportsInternals.c' || echo '$(srcdir)/'`src/.unitize/_DataImportsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_DataImportsInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_DataImportsInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_DataImportsInternals.c' object='src/.unitize/shotwell-_DataImportsInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_DataImportsInternals.o `test -f 'src/.unitize/_DataImportsInternals.c' || echo '$(srcdir)/'`src/.unitize/_DataImportsInternals.c - -src/.unitize/shotwell-_DataImportsInternals.obj: src/.unitize/_DataImportsInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_DataImportsInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_DataImportsInternals.Tpo -c -o src/.unitize/shotwell-_DataImportsInternals.obj `if test -f 'src/.unitize/_DataImportsInternals.c'; then $(CYGPATH_W) 'src/.unitize/_DataImportsInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_DataImportsInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_DataImportsInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_DataImportsInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_DataImportsInternals.c' object='src/.unitize/shotwell-_DataImportsInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_DataImportsInternals.obj `if test -f 'src/.unitize/_DataImportsInternals.c'; then $(CYGPATH_W) 'src/.unitize/_DataImportsInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_DataImportsInternals.c'; fi` - -src/.unitize/shotwell-_FoldersInternals.o: src/.unitize/_FoldersInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_FoldersInternals.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_FoldersInternals.Tpo -c -o src/.unitize/shotwell-_FoldersInternals.o `test -f 'src/.unitize/_FoldersInternals.c' || echo '$(srcdir)/'`src/.unitize/_FoldersInternals.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_FoldersInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_FoldersInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_FoldersInternals.c' object='src/.unitize/shotwell-_FoldersInternals.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_FoldersInternals.o `test -f 'src/.unitize/_FoldersInternals.c' || echo '$(srcdir)/'`src/.unitize/_FoldersInternals.c - -src/.unitize/shotwell-_FoldersInternals.obj: src/.unitize/_FoldersInternals.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_FoldersInternals.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_FoldersInternals.Tpo -c -o src/.unitize/shotwell-_FoldersInternals.obj `if test -f 'src/.unitize/_FoldersInternals.c'; then $(CYGPATH_W) 'src/.unitize/_FoldersInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_FoldersInternals.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_FoldersInternals.Tpo src/.unitize/$(DEPDIR)/shotwell-_FoldersInternals.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_FoldersInternals.c' object='src/.unitize/shotwell-_FoldersInternals.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_FoldersInternals.obj `if test -f 'src/.unitize/_FoldersInternals.c'; then $(CYGPATH_W) 'src/.unitize/_FoldersInternals.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_FoldersInternals.c'; fi` - -src/.unitize/shotwell-_Library_unitize_entry.o: src/.unitize/_Library_unitize_entry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_Library_unitize_entry.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_Library_unitize_entry.Tpo -c -o src/.unitize/shotwell-_Library_unitize_entry.o `test -f 'src/.unitize/_Library_unitize_entry.c' || echo '$(srcdir)/'`src/.unitize/_Library_unitize_entry.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_Library_unitize_entry.Tpo src/.unitize/$(DEPDIR)/shotwell-_Library_unitize_entry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_Library_unitize_entry.c' object='src/.unitize/shotwell-_Library_unitize_entry.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_Library_unitize_entry.o `test -f 'src/.unitize/_Library_unitize_entry.c' || echo '$(srcdir)/'`src/.unitize/_Library_unitize_entry.c - -src/.unitize/shotwell-_Library_unitize_entry.obj: src/.unitize/_Library_unitize_entry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_Library_unitize_entry.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_Library_unitize_entry.Tpo -c -o src/.unitize/shotwell-_Library_unitize_entry.obj `if test -f 'src/.unitize/_Library_unitize_entry.c'; then $(CYGPATH_W) 'src/.unitize/_Library_unitize_entry.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_Library_unitize_entry.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_Library_unitize_entry.Tpo src/.unitize/$(DEPDIR)/shotwell-_Library_unitize_entry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_Library_unitize_entry.c' object='src/.unitize/shotwell-_Library_unitize_entry.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_Library_unitize_entry.obj `if test -f 'src/.unitize/_Library_unitize_entry.c'; then $(CYGPATH_W) 'src/.unitize/_Library_unitize_entry.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_Library_unitize_entry.c'; fi` - -src/.unitize/shotwell-_Direct_unitize_entry.o: src/.unitize/_Direct_unitize_entry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_Direct_unitize_entry.o -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_Direct_unitize_entry.Tpo -c -o src/.unitize/shotwell-_Direct_unitize_entry.o `test -f 'src/.unitize/_Direct_unitize_entry.c' || echo '$(srcdir)/'`src/.unitize/_Direct_unitize_entry.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_Direct_unitize_entry.Tpo src/.unitize/$(DEPDIR)/shotwell-_Direct_unitize_entry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_Direct_unitize_entry.c' object='src/.unitize/shotwell-_Direct_unitize_entry.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_Direct_unitize_entry.o `test -f 'src/.unitize/_Direct_unitize_entry.c' || echo '$(srcdir)/'`src/.unitize/_Direct_unitize_entry.c - -src/.unitize/shotwell-_Direct_unitize_entry.obj: src/.unitize/_Direct_unitize_entry.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT src/.unitize/shotwell-_Direct_unitize_entry.obj -MD -MP -MF src/.unitize/$(DEPDIR)/shotwell-_Direct_unitize_entry.Tpo -c -o src/.unitize/shotwell-_Direct_unitize_entry.obj `if test -f 'src/.unitize/_Direct_unitize_entry.c'; then $(CYGPATH_W) 'src/.unitize/_Direct_unitize_entry.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_Direct_unitize_entry.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/.unitize/$(DEPDIR)/shotwell-_Direct_unitize_entry.Tpo src/.unitize/$(DEPDIR)/shotwell-_Direct_unitize_entry.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/.unitize/_Direct_unitize_entry.c' object='src/.unitize/shotwell-_Direct_unitize_entry.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o src/.unitize/shotwell-_Direct_unitize_entry.obj `if test -f 'src/.unitize/_Direct_unitize_entry.c'; then $(CYGPATH_W) 'src/.unitize/_Direct_unitize_entry.c'; else $(CYGPATH_W) '$(srcdir)/src/.unitize/_Direct_unitize_entry.c'; fi` - -shotwell-resource.o: resource.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT shotwell-resource.o -MD -MP -MF $(DEPDIR)/shotwell-resource.Tpo -c -o shotwell-resource.o `test -f 'resource.c' || echo '$(srcdir)/'`resource.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/shotwell-resource.Tpo $(DEPDIR)/shotwell-resource.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='resource.c' object='shotwell-resource.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o shotwell-resource.o `test -f 'resource.c' || echo '$(srcdir)/'`resource.c - -shotwell-resource.obj: resource.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -MT shotwell-resource.obj -MD -MP -MF $(DEPDIR)/shotwell-resource.Tpo -c -o shotwell-resource.obj `if test -f 'resource.c'; then $(CYGPATH_W) 'resource.c'; else $(CYGPATH_W) '$(srcdir)/resource.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/shotwell-resource.Tpo $(DEPDIR)/shotwell-resource.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='resource.c' object='shotwell-resource.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(shotwell_CFLAGS) $(CFLAGS) -c -o shotwell-resource.obj `if test -f 'resource.c'; then $(CYGPATH_W) 'resource.c'; else $(CYGPATH_W) '$(srcdir)/resource.c'; fi` - -src/src_shotwell_graphics_processor-graphics-processor.o: src/graphics-processor.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_shotwell_graphics_processor_CFLAGS) $(CFLAGS) -MT src/src_shotwell_graphics_processor-graphics-processor.o -MD -MP -MF src/$(DEPDIR)/src_shotwell_graphics_processor-graphics-processor.Tpo -c -o src/src_shotwell_graphics_processor-graphics-processor.o `test -f 'src/graphics-processor.c' || echo '$(srcdir)/'`src/graphics-processor.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/src_shotwell_graphics_processor-graphics-processor.Tpo src/$(DEPDIR)/src_shotwell_graphics_processor-graphics-processor.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/graphics-processor.c' object='src/src_shotwell_graphics_processor-graphics-processor.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_shotwell_graphics_processor_CFLAGS) $(CFLAGS) -c -o src/src_shotwell_graphics_processor-graphics-processor.o `test -f 'src/graphics-processor.c' || echo '$(srcdir)/'`src/graphics-processor.c - -src/src_shotwell_graphics_processor-graphics-processor.obj: src/graphics-processor.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_shotwell_graphics_processor_CFLAGS) $(CFLAGS) -MT src/src_shotwell_graphics_processor-graphics-processor.obj -MD -MP -MF src/$(DEPDIR)/src_shotwell_graphics_processor-graphics-processor.Tpo -c -o src/src_shotwell_graphics_processor-graphics-processor.obj `if test -f 'src/graphics-processor.c'; then $(CYGPATH_W) 'src/graphics-processor.c'; else $(CYGPATH_W) '$(srcdir)/src/graphics-processor.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/src_shotwell_graphics_processor-graphics-processor.Tpo src/$(DEPDIR)/src_shotwell_graphics_processor-graphics-processor.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/graphics-processor.c' object='src/src_shotwell_graphics_processor-graphics-processor.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(src_shotwell_graphics_processor_CFLAGS) $(CFLAGS) -c -o src/src_shotwell_graphics_processor-graphics-processor.obj `if test -f 'src/graphics-processor.c'; then $(CYGPATH_W) 'src/graphics-processor.c'; else $(CYGPATH_W) '$(srcdir)/src/graphics-processor.c'; fi` - -thumbnailer/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.o: thumbnailer/shotwell-video-thumbnailer.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(thumbnailer_shotwell_video_thumbnailer_CFLAGS) $(CFLAGS) -MT thumbnailer/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.o -MD -MP -MF thumbnailer/$(DEPDIR)/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.Tpo -c -o thumbnailer/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.o `test -f 'thumbnailer/shotwell-video-thumbnailer.c' || echo '$(srcdir)/'`thumbnailer/shotwell-video-thumbnailer.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) thumbnailer/$(DEPDIR)/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.Tpo thumbnailer/$(DEPDIR)/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='thumbnailer/shotwell-video-thumbnailer.c' object='thumbnailer/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(thumbnailer_shotwell_video_thumbnailer_CFLAGS) $(CFLAGS) -c -o thumbnailer/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.o `test -f 'thumbnailer/shotwell-video-thumbnailer.c' || echo '$(srcdir)/'`thumbnailer/shotwell-video-thumbnailer.c - -thumbnailer/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.obj: thumbnailer/shotwell-video-thumbnailer.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(thumbnailer_shotwell_video_thumbnailer_CFLAGS) $(CFLAGS) -MT thumbnailer/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.obj -MD -MP -MF thumbnailer/$(DEPDIR)/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.Tpo -c -o thumbnailer/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.obj `if test -f 'thumbnailer/shotwell-video-thumbnailer.c'; then $(CYGPATH_W) 'thumbnailer/shotwell-video-thumbnailer.c'; else $(CYGPATH_W) '$(srcdir)/thumbnailer/shotwell-video-thumbnailer.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) thumbnailer/$(DEPDIR)/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.Tpo thumbnailer/$(DEPDIR)/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='thumbnailer/shotwell-video-thumbnailer.c' object='thumbnailer/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(thumbnailer_shotwell_video_thumbnailer_CFLAGS) $(CFLAGS) -c -o thumbnailer/thumbnailer_shotwell_video_thumbnailer-shotwell-video-thumbnailer.obj `if test -f 'thumbnailer/shotwell-video-thumbnailer.c'; then $(CYGPATH_W) 'thumbnailer/shotwell-video-thumbnailer.c'; else $(CYGPATH_W) '$(srcdir)/thumbnailer/shotwell-video-thumbnailer.c'; fi` -$(srcdir)/src/unit/Unit.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/util/Util.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/util/file.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/util/image.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/util/misc.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/util/string.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/util/system.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/util/ui.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/threads/Threads.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/threads/Workers.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/threads/BackgroundJob.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/threads/Semaphore.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/db/Db.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/db/DatabaseTable.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/db/PhotoTable.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/db/EventTable.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/db/TagTable.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/db/TombstoneTable.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/db/VideoTable.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/db/VersionTable.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/db/SavedSearchDBTable.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/dialogs/Preferences.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/dialogs/EntryMultiCompletion.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/dialogs/ExportDialog.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/dialogs/TextEntry.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/dialogs/WelcomeDialog.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/dialogs/MultiTextEntryDialog.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/dialogs/AdjustDateTimeDialog.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/dialogs/SetBackground.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/dialogs/ProgressDialog.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/dialogs/SetBackgroundSlideshow.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/editing_tools/EditingTools.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/editing_tools/RGBHistogramManipulator.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/editing_tools/StraightenTool.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/slideshow/Slideshow.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/slideshow/TransitionEffects.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/photos/Photos.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/photos/PhotoFileAdapter.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/photos/PhotoFileFormat.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/photos/PhotoFileSniffer.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/photos/PhotoMetadata.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/photos/GRaw.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/photos/GdkSupport.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/photos/JfifSupport.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/photos/BmpSupport.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/photos/RawSupport.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/photos/PngSupport.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/photos/TiffSupport.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/plugins/Plugins.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/plugins/StandardHostInterface.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/plugins/ManifestWidget.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/publishing/Publishing.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/publishing/PublishingUI.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/publishing/PublishingPluginHost.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/publishing/APIGlue.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/library/Library.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/library/LibraryWindow.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/library/LibraryBranch.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/library/TrashSidebarEntry.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/library/OfflineSidebarEntry.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/library/FlaggedSidebarEntry.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/library/LastImportSidebarEntry.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/library/ImportQueueSidebarEntry.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/library/FlaggedPage.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/library/ImportQueuePage.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/library/LastImportPage.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/library/OfflinePage.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/library/TrashPage.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/direct/Direct.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/direct/DirectWindow.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/direct/DirectPhoto.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/direct/DirectPhotoPage.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/direct/DirectView.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/core/Core.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/core/DataCollection.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/core/DataSet.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/core/util.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/core/SourceCollection.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/core/SourceHoldingTank.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/core/DatabaseSourceCollection.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/core/ContainerSourceCollection.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/core/ViewCollection.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/core/DataObject.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/core/Alteration.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/core/DataSource.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/core/DataSourceTypes.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/core/DataView.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/core/DataViewTypes.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/core/Tracker.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/core/SourceInterfaces.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/sidebar/Sidebar.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/sidebar/Branch.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/sidebar/Entry.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/sidebar/Tree.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/sidebar/common.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/events/Events.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/events/EventsBranch.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/events/EventsDirectoryPage.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/events/EventPage.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/events/EventDirectoryItem.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/tags/Tags.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/tags/TagsBranch.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/tags/TagPage.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/tags/HierarchicalTagIndex.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/tags/HierarchicalTagUtilities.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/camera/Camera.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/camera/CameraBranch.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/camera/CameraTable.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/camera/GPhoto.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/camera/ImportPage.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/searches/Searches.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/searches/SearchesBranch.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/searches/SearchBoolean.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/searches/SavedSearchPage.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/searches/SavedSearchDialog.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/config/Config.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/config/ConfigurationInterfaces.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/config/GSettingsEngine.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/data_imports/DataImports.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/data_imports/DataImportsPluginHost.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/data_imports/DataImportsUI.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/data_imports/DataImportJob.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/data_imports/DataImportSource.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/folders/Folders.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/folders/FoldersBranch.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/folders/FoldersPage.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/main.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/AppWindow.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/CollectionPage.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/NaturalCollate.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Thumbnail.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/ThumbnailCache.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/CheckerboardLayout.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/PhotoPage.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Page.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/SortedList.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Dimensions.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Box.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Photo.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Orientation.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/BatchImport.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Dialogs.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Resources.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Debug.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Properties.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Event.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/International.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/AppDirs.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/PixbufCache.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/CommandManager.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Commands.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/SlideshowPage.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/LibraryFiles.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Printing.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Tag.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Screensaver.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Exporter.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/DirectoryMonitor.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/LibraryMonitor.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/VideoSupport.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Tombstone.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/MetadataWriter.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Application.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/TimedQueue.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/MediaPage.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/MediaDataRepresentation.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/DesktopIntegration.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/MediaInterfaces.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/MediaMetadata.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/VideoMetadata.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/MediaMonitor.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/PhotoMonitor.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/VideoMonitor.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/SearchFilter.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/MediaViewTracker.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/UnityProgressBar.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/Upgrades.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_UnitInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_UtilInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_ThreadsInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_DbInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_EditingToolsInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_PluginsInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_SlideshowInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_PhotosInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_PublishingInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_LibraryInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_DirectInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_CoreInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_SidebarInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_EventsInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_TagsInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_CameraInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_SearchesInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_ConfigInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_DataImportsInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_FoldersInternals.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_Library_unitize_entry.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/src/.unitize/_Direct_unitize_entry.c: $(srcdir)/shotwell_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/shotwell_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/shotwell_vala.stamp; \ - fi -$(srcdir)/shotwell_vala.stamp: src/unit/Unit.vala src/util/Util.vala src/util/file.vala src/util/image.vala src/util/misc.vala src/util/string.vala src/util/system.vala src/util/ui.vala src/threads/Threads.vala src/threads/Workers.vala src/threads/BackgroundJob.vala src/threads/Semaphore.vala src/db/Db.vala src/db/DatabaseTable.vala src/db/PhotoTable.vala src/db/EventTable.vala src/db/TagTable.vala src/db/TombstoneTable.vala src/db/VideoTable.vala src/db/VersionTable.vala src/db/SavedSearchDBTable.vala src/dialogs/Preferences.vala src/dialogs/EntryMultiCompletion.vala src/dialogs/ExportDialog.vala src/dialogs/TextEntry.vala src/dialogs/WelcomeDialog.vala src/dialogs/MultiTextEntryDialog.vala src/dialogs/AdjustDateTimeDialog.vala src/dialogs/SetBackground.vala src/dialogs/ProgressDialog.vala src/dialogs/SetBackgroundSlideshow.vala src/editing_tools/EditingTools.vala src/editing_tools/RGBHistogramManipulator.vala src/editing_tools/StraightenTool.vala src/slideshow/Slideshow.vala src/slideshow/TransitionEffects.vala src/photos/Photos.vala src/photos/PhotoFileAdapter.vala src/photos/PhotoFileFormat.vala src/photos/PhotoFileSniffer.vala src/photos/PhotoMetadata.vala src/photos/GRaw.vala src/photos/GdkSupport.vala src/photos/JfifSupport.vala src/photos/BmpSupport.vala src/photos/RawSupport.vala src/photos/PngSupport.vala src/photos/TiffSupport.vala src/plugins/Plugins.vala src/plugins/StandardHostInterface.vala src/plugins/ManifestWidget.vala src/publishing/Publishing.vala src/publishing/PublishingUI.vala src/publishing/PublishingPluginHost.vala src/publishing/APIGlue.vala src/library/Library.vala src/library/LibraryWindow.vala src/library/LibraryBranch.vala src/library/TrashSidebarEntry.vala src/library/OfflineSidebarEntry.vala src/library/FlaggedSidebarEntry.vala src/library/LastImportSidebarEntry.vala src/library/ImportQueueSidebarEntry.vala src/library/FlaggedPage.vala src/library/ImportQueuePage.vala src/library/LastImportPage.vala src/library/OfflinePage.vala src/library/TrashPage.vala src/direct/Direct.vala src/direct/DirectWindow.vala src/direct/DirectPhoto.vala src/direct/DirectPhotoPage.vala src/direct/DirectView.vala src/core/Core.vala src/core/DataCollection.vala src/core/DataSet.vala src/core/util.vala src/core/SourceCollection.vala src/core/SourceHoldingTank.vala src/core/DatabaseSourceCollection.vala src/core/ContainerSourceCollection.vala src/core/ViewCollection.vala src/core/DataObject.vala src/core/Alteration.vala src/core/DataSource.vala src/core/DataSourceTypes.vala src/core/DataView.vala src/core/DataViewTypes.vala src/core/Tracker.vala src/core/SourceInterfaces.vala src/sidebar/Sidebar.vala src/sidebar/Branch.vala src/sidebar/Entry.vala src/sidebar/Tree.vala src/sidebar/common.vala src/events/Events.vala src/events/EventsBranch.vala src/events/EventsDirectoryPage.vala src/events/EventPage.vala src/events/EventDirectoryItem.vala src/tags/Tags.vala src/tags/TagsBranch.vala src/tags/TagPage.vala src/tags/HierarchicalTagIndex.vala src/tags/HierarchicalTagUtilities.vala src/camera/Camera.vala src/camera/CameraBranch.vala src/camera/CameraTable.vala src/camera/GPhoto.vala src/camera/ImportPage.vala src/searches/Searches.vala src/searches/SearchesBranch.vala src/searches/SearchBoolean.vala src/searches/SavedSearchPage.vala src/searches/SavedSearchDialog.vala src/config/Config.vala src/config/ConfigurationInterfaces.vala src/config/GSettingsEngine.vala src/data_imports/DataImports.vala src/data_imports/DataImportsPluginHost.vala src/data_imports/DataImportsUI.vala src/data_imports/DataImportJob.vala src/data_imports/DataImportSource.vala src/folders/Folders.vala src/folders/FoldersBranch.vala src/folders/FoldersPage.vala src/main.vala src/AppWindow.vala src/CollectionPage.vala src/NaturalCollate.vala src/Thumbnail.vala src/ThumbnailCache.vala src/CheckerboardLayout.vala src/PhotoPage.vala src/Page.vala src/SortedList.vala src/Dimensions.vala src/Box.vala src/Photo.vala src/Orientation.vala src/BatchImport.vala src/Dialogs.vala src/Resources.vala src/Debug.vala src/Properties.vala src/Event.vala src/International.vala src/AppDirs.vala src/PixbufCache.vala src/CommandManager.vala src/Commands.vala src/SlideshowPage.vala src/LibraryFiles.vala src/Printing.vala src/Tag.vala src/Screensaver.vala src/Exporter.vala src/DirectoryMonitor.vala src/LibraryMonitor.vala src/VideoSupport.vala src/Tombstone.vala src/MetadataWriter.vala src/Application.vala src/TimedQueue.vala src/MediaPage.vala src/MediaDataRepresentation.vala src/DesktopIntegration.vala src/MediaInterfaces.vala src/MediaMetadata.vala src/VideoMetadata.vala src/MediaMonitor.vala src/PhotoMonitor.vala src/VideoMonitor.vala src/SearchFilter.vala src/MediaViewTracker.vala src/UnityProgressBar.vala src/Upgrades.vala src/.unitize/_UnitInternals.vala src/.unitize/_UtilInternals.vala src/.unitize/_ThreadsInternals.vala src/.unitize/_DbInternals.vala src/.unitize/_EditingToolsInternals.vala src/.unitize/_PluginsInternals.vala src/.unitize/_SlideshowInternals.vala src/.unitize/_PhotosInternals.vala src/.unitize/_PublishingInternals.vala src/.unitize/_LibraryInternals.vala src/.unitize/_DirectInternals.vala src/.unitize/_CoreInternals.vala src/.unitize/_SidebarInternals.vala src/.unitize/_EventsInternals.vala src/.unitize/_TagsInternals.vala src/.unitize/_CameraInternals.vala src/.unitize/_SearchesInternals.vala src/.unitize/_ConfigInternals.vala src/.unitize/_DataImportsInternals.vala src/.unitize/_FoldersInternals.vala src/.unitize/_Library_unitize_entry.vala src/.unitize/_Direct_unitize_entry.vala plugins/shotwell-plugin-dev-1.0.vapi src/shotwell-graphics-processor.vapi - $(AM_V_at)rm -f $@ && echo stamp > $@-t - $(AM_V_VALAC)$(am__cd) $(srcdir) && $(VALAC) $(shotwell_VALAFLAGS) $(VALAFLAGS) -C src/unit/Unit.vala src/util/Util.vala src/util/file.vala src/util/image.vala src/util/misc.vala src/util/string.vala src/util/system.vala src/util/ui.vala src/threads/Threads.vala src/threads/Workers.vala src/threads/BackgroundJob.vala src/threads/Semaphore.vala src/db/Db.vala src/db/DatabaseTable.vala src/db/PhotoTable.vala src/db/EventTable.vala src/db/TagTable.vala src/db/TombstoneTable.vala src/db/VideoTable.vala src/db/VersionTable.vala src/db/SavedSearchDBTable.vala src/dialogs/Preferences.vala src/dialogs/EntryMultiCompletion.vala src/dialogs/ExportDialog.vala src/dialogs/TextEntry.vala src/dialogs/WelcomeDialog.vala src/dialogs/MultiTextEntryDialog.vala src/dialogs/AdjustDateTimeDialog.vala src/dialogs/SetBackground.vala src/dialogs/ProgressDialog.vala src/dialogs/SetBackgroundSlideshow.vala src/editing_tools/EditingTools.vala src/editing_tools/RGBHistogramManipulator.vala src/editing_tools/StraightenTool.vala src/slideshow/Slideshow.vala src/slideshow/TransitionEffects.vala src/photos/Photos.vala src/photos/PhotoFileAdapter.vala src/photos/PhotoFileFormat.vala src/photos/PhotoFileSniffer.vala src/photos/PhotoMetadata.vala src/photos/GRaw.vala src/photos/GdkSupport.vala src/photos/JfifSupport.vala src/photos/BmpSupport.vala src/photos/RawSupport.vala src/photos/PngSupport.vala src/photos/TiffSupport.vala src/plugins/Plugins.vala src/plugins/StandardHostInterface.vala src/plugins/ManifestWidget.vala src/publishing/Publishing.vala src/publishing/PublishingUI.vala src/publishing/PublishingPluginHost.vala src/publishing/APIGlue.vala src/library/Library.vala src/library/LibraryWindow.vala src/library/LibraryBranch.vala src/library/TrashSidebarEntry.vala src/library/OfflineSidebarEntry.vala src/library/FlaggedSidebarEntry.vala src/library/LastImportSidebarEntry.vala src/library/ImportQueueSidebarEntry.vala src/library/FlaggedPage.vala src/library/ImportQueuePage.vala src/library/LastImportPage.vala src/library/OfflinePage.vala src/library/TrashPage.vala src/direct/Direct.vala src/direct/DirectWindow.vala src/direct/DirectPhoto.vala src/direct/DirectPhotoPage.vala src/direct/DirectView.vala src/core/Core.vala src/core/DataCollection.vala src/core/DataSet.vala src/core/util.vala src/core/SourceCollection.vala src/core/SourceHoldingTank.vala src/core/DatabaseSourceCollection.vala src/core/ContainerSourceCollection.vala src/core/ViewCollection.vala src/core/DataObject.vala src/core/Alteration.vala src/core/DataSource.vala src/core/DataSourceTypes.vala src/core/DataView.vala src/core/DataViewTypes.vala src/core/Tracker.vala src/core/SourceInterfaces.vala src/sidebar/Sidebar.vala src/sidebar/Branch.vala src/sidebar/Entry.vala src/sidebar/Tree.vala src/sidebar/common.vala src/events/Events.vala src/events/EventsBranch.vala src/events/EventsDirectoryPage.vala src/events/EventPage.vala src/events/EventDirectoryItem.vala src/tags/Tags.vala src/tags/TagsBranch.vala src/tags/TagPage.vala src/tags/HierarchicalTagIndex.vala src/tags/HierarchicalTagUtilities.vala src/camera/Camera.vala src/camera/CameraBranch.vala src/camera/CameraTable.vala src/camera/GPhoto.vala src/camera/ImportPage.vala src/searches/Searches.vala src/searches/SearchesBranch.vala src/searches/SearchBoolean.vala src/searches/SavedSearchPage.vala src/searches/SavedSearchDialog.vala src/config/Config.vala src/config/ConfigurationInterfaces.vala src/config/GSettingsEngine.vala src/data_imports/DataImports.vala src/data_imports/DataImportsPluginHost.vala src/data_imports/DataImportsUI.vala src/data_imports/DataImportJob.vala src/data_imports/DataImportSource.vala src/folders/Folders.vala src/folders/FoldersBranch.vala src/folders/FoldersPage.vala src/main.vala src/AppWindow.vala src/CollectionPage.vala src/NaturalCollate.vala src/Thumbnail.vala src/ThumbnailCache.vala src/CheckerboardLayout.vala src/PhotoPage.vala src/Page.vala src/SortedList.vala src/Dimensions.vala src/Box.vala src/Photo.vala src/Orientation.vala src/BatchImport.vala src/Dialogs.vala src/Resources.vala src/Debug.vala src/Properties.vala src/Event.vala src/International.vala src/AppDirs.vala src/PixbufCache.vala src/CommandManager.vala src/Commands.vala src/SlideshowPage.vala src/LibraryFiles.vala src/Printing.vala src/Tag.vala src/Screensaver.vala src/Exporter.vala src/DirectoryMonitor.vala src/LibraryMonitor.vala src/VideoSupport.vala src/Tombstone.vala src/MetadataWriter.vala src/Application.vala src/TimedQueue.vala src/MediaPage.vala src/MediaDataRepresentation.vala src/DesktopIntegration.vala src/MediaInterfaces.vala src/MediaMetadata.vala src/VideoMetadata.vala src/MediaMonitor.vala src/PhotoMonitor.vala src/VideoMonitor.vala src/SearchFilter.vala src/MediaViewTracker.vala src/UnityProgressBar.vala src/Upgrades.vala src/.unitize/_UnitInternals.vala src/.unitize/_UtilInternals.vala src/.unitize/_ThreadsInternals.vala src/.unitize/_DbInternals.vala src/.unitize/_EditingToolsInternals.vala src/.unitize/_PluginsInternals.vala src/.unitize/_SlideshowInternals.vala src/.unitize/_PhotosInternals.vala src/.unitize/_PublishingInternals.vala src/.unitize/_LibraryInternals.vala src/.unitize/_DirectInternals.vala src/.unitize/_CoreInternals.vala src/.unitize/_SidebarInternals.vala src/.unitize/_EventsInternals.vala src/.unitize/_TagsInternals.vala src/.unitize/_CameraInternals.vala src/.unitize/_SearchesInternals.vala src/.unitize/_ConfigInternals.vala src/.unitize/_DataImportsInternals.vala src/.unitize/_FoldersInternals.vala src/.unitize/_Library_unitize_entry.vala src/.unitize/_Direct_unitize_entry.vala plugins/shotwell-plugin-dev-1.0.vapi src/shotwell-graphics-processor.vapi - $(AM_V_at)mv -f $@-t $@ -$(srcdir)/src/graphics-processor.c: $(srcdir)/src_shotwell_graphics_processor_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/src_shotwell_graphics_processor_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/src_shotwell_graphics_processor_vala.stamp; \ - fi -$(srcdir)/src_shotwell_graphics_processor_vala.stamp: src/graphics-processor.vala src/shotwell-graphics-processor.vapi - $(AM_V_at)rm -f $@ && echo stamp > $@-t - $(AM_V_VALAC)$(am__cd) $(srcdir) && $(VALAC) $(src_shotwell_graphics_processor_VALAFLAGS) $(VALAFLAGS) -C src/graphics-processor.vala src/shotwell-graphics-processor.vapi - $(AM_V_at)mv -f $@-t $@ -$(srcdir)/thumbnailer/shotwell-video-thumbnailer.c: $(srcdir)/thumbnailer_shotwell_video_thumbnailer_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/thumbnailer_shotwell_video_thumbnailer_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/thumbnailer_shotwell_video_thumbnailer_vala.stamp; \ - fi -$(srcdir)/thumbnailer_shotwell_video_thumbnailer_vala.stamp: thumbnailer/shotwell-video-thumbnailer.vala - $(AM_V_at)rm -f $@ && echo stamp > $@-t - $(AM_V_VALAC)$(am__cd) $(srcdir) && $(VALAC) $(thumbnailer_shotwell_video_thumbnailer_VALAFLAGS) $(VALAFLAGS) -C thumbnailer/shotwell-video-thumbnailer.vala - $(AM_V_at)mv -f $@-t $@ -$(srcdir)/src/ColorTransformation.c: $(srcdir)/src_libgraphics_processor_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/src_libgraphics_processor_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/src_libgraphics_processor_la_vala.stamp; \ - fi -$(srcdir)/src/util/KeyValueMap.c: $(srcdir)/src_libgraphics_processor_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/src_libgraphics_processor_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/src_libgraphics_processor_la_vala.stamp; \ - fi -$(srcdir)/src_libgraphics_processor_la_vala.stamp: src/ColorTransformation.vala src/util/KeyValueMap.vala - $(AM_V_at)rm -f $@ && echo stamp > $@-t - $(AM_V_VALAC)$(am__cd) $(srcdir) && $(VALAC) $(src_libgraphics_processor_la_VALAFLAGS) $(VALAFLAGS) -C src/ColorTransformation.vala src/util/KeyValueMap.vala - $(AM_V_at)mv -f $@-t $@ -$(srcdir)/plugins/common/RESTSupport.c: $(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp; \ - fi -$(srcdir)/plugins/common/OAuth1Support.c: $(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp; \ - fi -$(srcdir)/plugins/common/Resources.c: $(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp; \ - fi -$(srcdir)/plugins/common/WebAuthenticationPane.c: $(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp; \ - fi -$(srcdir)/plugins/common/BuilderPane.c: $(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp; \ - fi -$(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp: plugins/common/RESTSupport.vala plugins/common/OAuth1Support.vala plugins/common/Resources.vala plugins/common/WebAuthenticationPane.vala plugins/common/BuilderPane.vala plugins/shotwell-plugin-dev-1.0.vapi - $(AM_V_at)rm -f $@ && echo stamp > $@-t - $(AM_V_VALAC)$(am__cd) $(srcdir) && $(VALAC) $(plugins_common_libshotwell_plugin_common_la_VALAFLAGS) $(VALAFLAGS) -C plugins/common/RESTSupport.vala plugins/common/OAuth1Support.vala plugins/common/Resources.vala plugins/common/WebAuthenticationPane.vala plugins/common/BuilderPane.vala plugins/shotwell-plugin-dev-1.0.vapi - $(AM_V_at)mv -f $@-t $@ -$(srcdir)/src/plugins/SpitInterfaces.c: $(srcdir)/src_plugins_libplugin_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/src_plugins_libplugin_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/src_plugins_libplugin_la_vala.stamp; \ - fi -$(srcdir)/src/plugins/TransitionsInterfaces.c: $(srcdir)/src_plugins_libplugin_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/src_plugins_libplugin_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/src_plugins_libplugin_la_vala.stamp; \ - fi -$(srcdir)/src/plugins/PublishingInterfaces.c: $(srcdir)/src_plugins_libplugin_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/src_plugins_libplugin_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/src_plugins_libplugin_la_vala.stamp; \ - fi -$(srcdir)/src/plugins/DataImportsInterfaces.c: $(srcdir)/src_plugins_libplugin_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/src_plugins_libplugin_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/src_plugins_libplugin_la_vala.stamp; \ - fi -$(srcdir)/src_plugins_libplugin_la_vala.stamp: src/plugins/SpitInterfaces.vala src/plugins/TransitionsInterfaces.vala src/plugins/PublishingInterfaces.vala src/plugins/DataImportsInterfaces.vala - $(AM_V_at)rm -f $@ && echo stamp > $@-t - $(AM_V_VALAC)$(am__cd) $(srcdir) && $(VALAC) $(src_plugins_libplugin_la_VALAFLAGS) $(VALAFLAGS) -C src/plugins/SpitInterfaces.vala src/plugins/TransitionsInterfaces.vala src/plugins/PublishingInterfaces.vala src/plugins/DataImportsInterfaces.vala - $(AM_V_at)mv -f $@-t $@ -$(srcdir)/plugins/shotwell-publishing/shotwell-publishing.c: $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-publishing/FacebookPublishing.c: $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-publishing/PicasaPublishing.c: $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-publishing/FlickrPublishing.c: $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-publishing/TumblrPublishing.c: $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-publishing/YouTubePublishing.c: $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-publishing/PiwigoPublishing.c: $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp; \ - fi -$(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp: plugins/shotwell-publishing/shotwell-publishing.vala plugins/shotwell-publishing/FacebookPublishing.vala plugins/shotwell-publishing/PicasaPublishing.vala plugins/shotwell-publishing/FlickrPublishing.vala plugins/shotwell-publishing/TumblrPublishing.vala plugins/shotwell-publishing/YouTubePublishing.vala plugins/shotwell-publishing/PiwigoPublishing.vala plugins/shotwell-plugin-common.vapi plugins/authenticator/shotwell-authenticator.vapi vapi/libgdata.vapi - $(AM_V_at)rm -f $@ && echo stamp > $@-t - $(AM_V_VALAC)$(am__cd) $(srcdir) && $(VALAC) $(plugins_shotwell_publishing_shotwell_publishing_la_VALAFLAGS) $(VALAFLAGS) -C plugins/shotwell-publishing/shotwell-publishing.vala plugins/shotwell-publishing/FacebookPublishing.vala plugins/shotwell-publishing/PicasaPublishing.vala plugins/shotwell-publishing/FlickrPublishing.vala plugins/shotwell-publishing/TumblrPublishing.vala plugins/shotwell-publishing/YouTubePublishing.vala plugins/shotwell-publishing/PiwigoPublishing.vala plugins/shotwell-plugin-common.vapi plugins/authenticator/shotwell-authenticator.vapi vapi/libgdata.vapi - $(AM_V_at)mv -f $@-t $@ -$(srcdir)/plugins/shotwell-transitions/BlindsEffect.c: $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-transitions/ChessEffect.c: $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-transitions/CircleEffect.c: $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-transitions/CirclesEffect.c: $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-transitions/ClockEffect.c: $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-transitions/CrumbleEffect.c: $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-transitions/FadeEffect.c: $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-transitions/shotwell-transitions.c: $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-transitions/SlideEffect.c: $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-transitions/SquaresEffect.c: $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-transitions/StripesEffect.c: $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp; \ - fi -$(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp: plugins/shotwell-transitions/BlindsEffect.vala plugins/shotwell-transitions/ChessEffect.vala plugins/shotwell-transitions/CircleEffect.vala plugins/shotwell-transitions/CirclesEffect.vala plugins/shotwell-transitions/ClockEffect.vala plugins/shotwell-transitions/CrumbleEffect.vala plugins/shotwell-transitions/FadeEffect.vala plugins/shotwell-transitions/shotwell-transitions.vala plugins/shotwell-transitions/SlideEffect.vala plugins/shotwell-transitions/SquaresEffect.vala plugins/shotwell-transitions/StripesEffect.vala plugins/shotwell-plugin-common.vapi - $(AM_V_at)rm -f $@ && echo stamp > $@-t - $(AM_V_VALAC)$(am__cd) $(srcdir) && $(VALAC) $(plugins_shotwell_transitions_shotwell_transitions_la_VALAFLAGS) $(VALAFLAGS) -C plugins/shotwell-transitions/BlindsEffect.vala plugins/shotwell-transitions/ChessEffect.vala plugins/shotwell-transitions/CircleEffect.vala plugins/shotwell-transitions/CirclesEffect.vala plugins/shotwell-transitions/ClockEffect.vala plugins/shotwell-transitions/CrumbleEffect.vala plugins/shotwell-transitions/FadeEffect.vala plugins/shotwell-transitions/shotwell-transitions.vala plugins/shotwell-transitions/SlideEffect.vala plugins/shotwell-transitions/SquaresEffect.vala plugins/shotwell-transitions/StripesEffect.vala plugins/shotwell-plugin-common.vapi - $(AM_V_at)mv -f $@-t $@ -$(srcdir)/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c: $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp; \ - fi -$(srcdir)/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c: $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp; \ - fi -$(srcdir)/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c: $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp; \ - fi -$(srcdir)/plugins/authenticator/shotwell/GoogleAuthenticator.c: $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp; \ - fi -$(srcdir)/plugins/authenticator/shotwell/OAuth1Authenticator.c: $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp; \ - fi -$(srcdir)/plugins/authenticator/shotwell/TumblrAuthenticator.c: $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp; \ - fi -$(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp: plugins/shotwell-plugin-common.vapi plugins/shotwell-plugin-dev-1.0.vapi plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala plugins/authenticator/shotwell/GoogleAuthenticator.vala plugins/authenticator/shotwell/OAuth1Authenticator.vala plugins/authenticator/shotwell/TumblrAuthenticator.vala - $(AM_V_at)rm -f $@ && echo stamp > $@-t - $(AM_V_VALAC)$(am__cd) $(srcdir) && $(VALAC) $(plugins_authenticator_libshotwell_authenticator_la_VALAFLAGS) $(VALAFLAGS) -C plugins/shotwell-plugin-common.vapi plugins/shotwell-plugin-dev-1.0.vapi plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala plugins/authenticator/shotwell/GoogleAuthenticator.vala plugins/authenticator/shotwell/OAuth1Authenticator.vala plugins/authenticator/shotwell/TumblrAuthenticator.vala - $(AM_V_at)mv -f $@-t $@ -$(srcdir)/plugins/shotwell-publishing-extras/GalleryConnector.c: $(srcdir)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-publishing-extras/RajcePublishing.c: $(srcdir)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-publishing-extras/shotwell-publishing-extras.c: $(srcdir)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp; \ - fi -$(srcdir)/plugins/shotwell-publishing-extras/YandexPublishing.c: $(srcdir)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp; \ - fi -$(srcdir)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp: plugins/shotwell-publishing-extras/GalleryConnector.vala plugins/shotwell-publishing-extras/RajcePublishing.vala plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala plugins/shotwell-publishing-extras/YandexPublishing.vala plugins/shotwell-plugin-common.vapi - $(AM_V_at)rm -f $@ && echo stamp > $@-t - $(AM_V_VALAC)$(am__cd) $(srcdir) && $(VALAC) $(plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_VALAFLAGS) $(VALAFLAGS) -C plugins/shotwell-publishing-extras/GalleryConnector.vala plugins/shotwell-publishing-extras/RajcePublishing.vala plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala plugins/shotwell-publishing-extras/YandexPublishing.vala plugins/shotwell-plugin-common.vapi - $(AM_V_at)mv -f $@-t $@ - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -rm -rf plugins/authenticator/.libs plugins/authenticator/_libs - -rm -rf plugins/authenticator/shotwell/.libs plugins/authenticator/shotwell/_libs - -rm -rf plugins/common/.libs plugins/common/_libs - -rm -rf plugins/shotwell-publishing/.libs plugins/shotwell-publishing/_libs - -rm -rf plugins/shotwell-publishing-extras/.libs plugins/shotwell-publishing-extras/_libs - -rm -rf plugins/shotwell-transitions/.libs plugins/shotwell-transitions/_libs - -rm -rf src/.libs src/_libs - -rm -rf src/plugins/.libs src/plugins/_libs - -rm -rf src/util/.libs src/util/_libs - -rm -rf thumbnailer/.libs thumbnailer/_libs - -distclean-libtool: - -rm -f libtool config.lt -install-dist_pluginDATA: $(dist_plugin_DATA) - @$(NORMAL_INSTALL) - @list='$(dist_plugin_DATA)'; test -n "$(plugindir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(plugindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(plugindir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(plugindir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(plugindir)" || exit $$?; \ - done - -uninstall-dist_pluginDATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_plugin_DATA)'; test -n "$(plugindir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(plugindir)'; $(am__uninstall_files_from_dir) - -# This directory's subdirectories are mostly independent; you can cd -# into them and run 'make' without going through this Makefile. -# To change the values of 'make' variables: instead of editing Makefiles, -# (1) if the variable is set in 'config.status', edit 'config.status' -# (which will cause the Makefiles to be regenerated when you run 'make'); -# (2) otherwise, pass the desired values on the 'make' command line. -$(am__recursive_targets): - @fail=; \ - if $(am__make_keepgoing); then \ - failcom='fail=yes'; \ - else \ - failcom='exit 1'; \ - fi; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-recursive -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - $(am__define_uniq_tagged_files); \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: ctags-recursive - -CTAGS: ctags -ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - $(am__define_uniq_tagged_files); \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" -cscope: cscope.files - test ! -s cscope.files \ - || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) -clean-cscope: - -rm -f cscope.files -cscope.files: clean-cscope cscopelist -cscopelist: cscopelist-recursive - -cscopelist-am: $(am__tagged_files) - list='$(am__tagged_files)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -rm -f cscope.out cscope.in.out cscope.po.out cscope.files - -distdir: $(DISTFILES) - $(am__remove_distdir) - test -d "$(distdir)" || mkdir "$(distdir)" - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done - @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - $(am__make_dryrun) \ - || test -d "$(distdir)/$$subdir" \ - || $(MKDIR_P) "$(distdir)/$$subdir" \ - || exit 1; \ - dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ - $(am__relativize); \ - new_distdir=$$reldir; \ - dir1=$$subdir; dir2="$(top_distdir)"; \ - $(am__relativize); \ - new_top_distdir=$$reldir; \ - echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ - echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ - ($(am__cd) $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$new_top_distdir" \ - distdir="$$new_distdir" \ - am__remove_distdir=: \ - am__skip_length_check=: \ - am__skip_mode_fix=: \ - distdir) \ - || exit 1; \ - fi; \ - done - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$(top_distdir)" distdir="$(distdir)" \ - dist-hook - -test -n "$(am__skip_mode_fix)" \ - || find "$(distdir)" -type d ! -perm -755 \ - -exec chmod u+rwx,go+rx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r "$(distdir)" -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz - $(am__post_remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 - $(am__post_remove_distdir) - -dist-lzip: distdir - tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz - $(am__post_remove_distdir) -dist-xz: distdir - tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz - $(am__post_remove_distdir) - -dist-tarZ: distdir - @echo WARNING: "Support for distribution archives compressed with" \ - "legacy program 'compress' is deprecated." >&2 - @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__post_remove_distdir) - -dist-shar: distdir - @echo WARNING: "Support for shar distribution archives is" \ - "deprecated." >&2 - @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 - shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz - $(am__post_remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__post_remove_distdir) - -dist dist-all: - $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' - $(am__post_remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.lz*) \ - lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ - *.tar.xz*) \ - xz -dc $(distdir).tar.xz | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir) - chmod u+w $(distdir) - mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst - chmod a-w $(distdir) - test -d $(distdir)/_build || exit 0; \ - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && am__cwd=`pwd` \ - && $(am__cd) $(distdir)/_build/sub \ - && ../../configure \ - $(AM_DISTCHECK_CONFIGURE_FLAGS) \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - --srcdir=../.. --prefix="$$dc_install_base" \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ - && cd "$$am__cwd" \ - || exit 1 - $(am__post_remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' -distuninstallcheck: - @test -n '$(distuninstallcheck_dir)' || { \ - echo 'ERROR: trying to run $@ with an empty' \ - '$$(distuninstallcheck_dir)' >&2; \ - exit 1; \ - }; \ - $(am__cd) '$(distuninstallcheck_dir)' || { \ - echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ - exit 1; \ - }; \ - test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-recursive -all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(DATA) \ - config.h -install-binPROGRAMS: install-libLTLIBRARIES - -installdirs: installdirs-recursive -installdirs-am: - for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkglibexecdir)" "$(DESTDIR)$(pkglibexecdir)" "$(DESTDIR)$(plugindir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -rm -f plugins/authenticator/$(DEPDIR)/$(am__dirstamp) - -rm -f plugins/authenticator/$(am__dirstamp) - -rm -f plugins/authenticator/shotwell/$(DEPDIR)/$(am__dirstamp) - -rm -f plugins/authenticator/shotwell/$(am__dirstamp) - -rm -f plugins/common/$(DEPDIR)/$(am__dirstamp) - -rm -f plugins/common/$(am__dirstamp) - -rm -f plugins/shotwell-publishing-extras/$(DEPDIR)/$(am__dirstamp) - -rm -f plugins/shotwell-publishing-extras/$(am__dirstamp) - -rm -f plugins/shotwell-publishing/$(DEPDIR)/$(am__dirstamp) - -rm -f plugins/shotwell-publishing/$(am__dirstamp) - -rm -f plugins/shotwell-transitions/$(DEPDIR)/$(am__dirstamp) - -rm -f plugins/shotwell-transitions/$(am__dirstamp) - -rm -f src/$(DEPDIR)/$(am__dirstamp) - -rm -f src/$(am__dirstamp) - -rm -f src/.unitize/$(DEPDIR)/$(am__dirstamp) - -rm -f src/.unitize/$(am__dirstamp) - -rm -f src/camera/$(DEPDIR)/$(am__dirstamp) - -rm -f src/camera/$(am__dirstamp) - -rm -f src/config/$(DEPDIR)/$(am__dirstamp) - -rm -f src/config/$(am__dirstamp) - -rm -f src/core/$(DEPDIR)/$(am__dirstamp) - -rm -f src/core/$(am__dirstamp) - -rm -f src/data_imports/$(DEPDIR)/$(am__dirstamp) - -rm -f src/data_imports/$(am__dirstamp) - -rm -f src/db/$(DEPDIR)/$(am__dirstamp) - -rm -f src/db/$(am__dirstamp) - -rm -f src/dialogs/$(DEPDIR)/$(am__dirstamp) - -rm -f src/dialogs/$(am__dirstamp) - -rm -f src/direct/$(DEPDIR)/$(am__dirstamp) - -rm -f src/direct/$(am__dirstamp) - -rm -f src/editing_tools/$(DEPDIR)/$(am__dirstamp) - -rm -f src/editing_tools/$(am__dirstamp) - -rm -f src/events/$(DEPDIR)/$(am__dirstamp) - -rm -f src/events/$(am__dirstamp) - -rm -f src/folders/$(DEPDIR)/$(am__dirstamp) - -rm -f src/folders/$(am__dirstamp) - -rm -f src/library/$(DEPDIR)/$(am__dirstamp) - -rm -f src/library/$(am__dirstamp) - -rm -f src/photos/$(DEPDIR)/$(am__dirstamp) - -rm -f src/photos/$(am__dirstamp) - -rm -f src/plugins/$(DEPDIR)/$(am__dirstamp) - -rm -f src/plugins/$(am__dirstamp) - -rm -f src/publishing/$(DEPDIR)/$(am__dirstamp) - -rm -f src/publishing/$(am__dirstamp) - -rm -f src/searches/$(DEPDIR)/$(am__dirstamp) - -rm -f src/searches/$(am__dirstamp) - -rm -f src/sidebar/$(DEPDIR)/$(am__dirstamp) - -rm -f src/sidebar/$(am__dirstamp) - -rm -f src/slideshow/$(DEPDIR)/$(am__dirstamp) - -rm -f src/slideshow/$(am__dirstamp) - -rm -f src/tags/$(DEPDIR)/$(am__dirstamp) - -rm -f src/tags/$(am__dirstamp) - -rm -f src/threads/$(DEPDIR)/$(am__dirstamp) - -rm -f src/threads/$(am__dirstamp) - -rm -f src/unit/$(DEPDIR)/$(am__dirstamp) - -rm -f src/unit/$(am__dirstamp) - -rm -f src/util/$(DEPDIR)/$(am__dirstamp) - -rm -f src/util/$(am__dirstamp) - -rm -f thumbnailer/$(DEPDIR)/$(am__dirstamp) - -rm -f thumbnailer/$(am__dirstamp) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." - -rm -f $(srcdir)/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c - -rm -f $(srcdir)/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c - -rm -f $(srcdir)/plugins/authenticator/shotwell/GoogleAuthenticator.c - -rm -f $(srcdir)/plugins/authenticator/shotwell/OAuth1Authenticator.c - -rm -f $(srcdir)/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c - -rm -f $(srcdir)/plugins/authenticator/shotwell/TumblrAuthenticator.c - -rm -f $(srcdir)/plugins/common/BuilderPane.c - -rm -f $(srcdir)/plugins/common/OAuth1Support.c - -rm -f $(srcdir)/plugins/common/RESTSupport.c - -rm -f $(srcdir)/plugins/common/Resources.c - -rm -f $(srcdir)/plugins/common/WebAuthenticationPane.c - -rm -f $(srcdir)/plugins/shotwell-publishing-extras/GalleryConnector.c - -rm -f $(srcdir)/plugins/shotwell-publishing-extras/RajcePublishing.c - -rm -f $(srcdir)/plugins/shotwell-publishing-extras/YandexPublishing.c - -rm -f $(srcdir)/plugins/shotwell-publishing-extras/shotwell-publishing-extras.c - -rm -f $(srcdir)/plugins/shotwell-publishing/FacebookPublishing.c - -rm -f $(srcdir)/plugins/shotwell-publishing/FlickrPublishing.c - -rm -f $(srcdir)/plugins/shotwell-publishing/PicasaPublishing.c - -rm -f $(srcdir)/plugins/shotwell-publishing/PiwigoPublishing.c - -rm -f $(srcdir)/plugins/shotwell-publishing/TumblrPublishing.c - -rm -f $(srcdir)/plugins/shotwell-publishing/YouTubePublishing.c - -rm -f $(srcdir)/plugins/shotwell-publishing/shotwell-publishing.c - -rm -f $(srcdir)/plugins/shotwell-transitions/BlindsEffect.c - -rm -f $(srcdir)/plugins/shotwell-transitions/ChessEffect.c - -rm -f $(srcdir)/plugins/shotwell-transitions/CircleEffect.c - -rm -f $(srcdir)/plugins/shotwell-transitions/CirclesEffect.c - -rm -f $(srcdir)/plugins/shotwell-transitions/ClockEffect.c - -rm -f $(srcdir)/plugins/shotwell-transitions/CrumbleEffect.c - -rm -f $(srcdir)/plugins/shotwell-transitions/FadeEffect.c - -rm -f $(srcdir)/plugins/shotwell-transitions/SlideEffect.c - -rm -f $(srcdir)/plugins/shotwell-transitions/SquaresEffect.c - -rm -f $(srcdir)/plugins/shotwell-transitions/StripesEffect.c - -rm -f $(srcdir)/plugins/shotwell-transitions/shotwell-transitions.c - -rm -f $(srcdir)/plugins_authenticator_libshotwell_authenticator_la_vala.stamp - -rm -f $(srcdir)/plugins_common_libshotwell_plugin_common_la_vala.stamp - -rm -f $(srcdir)/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp - -rm -f $(srcdir)/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp - -rm -f $(srcdir)/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp - -rm -f $(srcdir)/shotwell_vala.stamp - -rm -f $(srcdir)/src/.unitize/_CameraInternals.c - -rm -f $(srcdir)/src/.unitize/_ConfigInternals.c - -rm -f $(srcdir)/src/.unitize/_CoreInternals.c - -rm -f $(srcdir)/src/.unitize/_DataImportsInternals.c - -rm -f $(srcdir)/src/.unitize/_DbInternals.c - -rm -f $(srcdir)/src/.unitize/_DirectInternals.c - -rm -f $(srcdir)/src/.unitize/_Direct_unitize_entry.c - -rm -f $(srcdir)/src/.unitize/_EditingToolsInternals.c - -rm -f $(srcdir)/src/.unitize/_EventsInternals.c - -rm -f $(srcdir)/src/.unitize/_FoldersInternals.c - -rm -f $(srcdir)/src/.unitize/_LibraryInternals.c - -rm -f $(srcdir)/src/.unitize/_Library_unitize_entry.c - -rm -f $(srcdir)/src/.unitize/_PhotosInternals.c - -rm -f $(srcdir)/src/.unitize/_PluginsInternals.c - -rm -f $(srcdir)/src/.unitize/_PublishingInternals.c - -rm -f $(srcdir)/src/.unitize/_SearchesInternals.c - -rm -f $(srcdir)/src/.unitize/_SidebarInternals.c - -rm -f $(srcdir)/src/.unitize/_SlideshowInternals.c - -rm -f $(srcdir)/src/.unitize/_TagsInternals.c - -rm -f $(srcdir)/src/.unitize/_ThreadsInternals.c - -rm -f $(srcdir)/src/.unitize/_UnitInternals.c - -rm -f $(srcdir)/src/.unitize/_UtilInternals.c - -rm -f $(srcdir)/src/AppDirs.c - -rm -f $(srcdir)/src/AppWindow.c - -rm -f $(srcdir)/src/Application.c - -rm -f $(srcdir)/src/BatchImport.c - -rm -f $(srcdir)/src/Box.c - -rm -f $(srcdir)/src/CheckerboardLayout.c - -rm -f $(srcdir)/src/CollectionPage.c - -rm -f $(srcdir)/src/ColorTransformation.c - -rm -f $(srcdir)/src/CommandManager.c - -rm -f $(srcdir)/src/Commands.c - -rm -f $(srcdir)/src/Debug.c - -rm -f $(srcdir)/src/DesktopIntegration.c - -rm -f $(srcdir)/src/Dialogs.c - -rm -f $(srcdir)/src/Dimensions.c - -rm -f $(srcdir)/src/DirectoryMonitor.c - -rm -f $(srcdir)/src/Event.c - -rm -f $(srcdir)/src/Exporter.c - -rm -f $(srcdir)/src/International.c - -rm -f $(srcdir)/src/LibraryFiles.c - -rm -f $(srcdir)/src/LibraryMonitor.c - -rm -f $(srcdir)/src/MediaDataRepresentation.c - -rm -f $(srcdir)/src/MediaInterfaces.c - -rm -f $(srcdir)/src/MediaMetadata.c - -rm -f $(srcdir)/src/MediaMonitor.c - -rm -f $(srcdir)/src/MediaPage.c - -rm -f $(srcdir)/src/MediaViewTracker.c - -rm -f $(srcdir)/src/MetadataWriter.c - -rm -f $(srcdir)/src/NaturalCollate.c - -rm -f $(srcdir)/src/Orientation.c - -rm -f $(srcdir)/src/Page.c - -rm -f $(srcdir)/src/Photo.c - -rm -f $(srcdir)/src/PhotoMonitor.c - -rm -f $(srcdir)/src/PhotoPage.c - -rm -f $(srcdir)/src/PixbufCache.c - -rm -f $(srcdir)/src/Printing.c - -rm -f $(srcdir)/src/Properties.c - -rm -f $(srcdir)/src/Resources.c - -rm -f $(srcdir)/src/Screensaver.c - -rm -f $(srcdir)/src/SearchFilter.c - -rm -f $(srcdir)/src/SlideshowPage.c - -rm -f $(srcdir)/src/SortedList.c - -rm -f $(srcdir)/src/Tag.c - -rm -f $(srcdir)/src/Thumbnail.c - -rm -f $(srcdir)/src/ThumbnailCache.c - -rm -f $(srcdir)/src/TimedQueue.c - -rm -f $(srcdir)/src/Tombstone.c - -rm -f $(srcdir)/src/UnityProgressBar.c - -rm -f $(srcdir)/src/Upgrades.c - -rm -f $(srcdir)/src/VideoMetadata.c - -rm -f $(srcdir)/src/VideoMonitor.c - -rm -f $(srcdir)/src/VideoSupport.c - -rm -f $(srcdir)/src/camera/Camera.c - -rm -f $(srcdir)/src/camera/CameraBranch.c - -rm -f $(srcdir)/src/camera/CameraTable.c - -rm -f $(srcdir)/src/camera/GPhoto.c - -rm -f $(srcdir)/src/camera/ImportPage.c - -rm -f $(srcdir)/src/config/Config.c - -rm -f $(srcdir)/src/config/ConfigurationInterfaces.c - -rm -f $(srcdir)/src/config/GSettingsEngine.c - -rm -f $(srcdir)/src/core/Alteration.c - -rm -f $(srcdir)/src/core/ContainerSourceCollection.c - -rm -f $(srcdir)/src/core/Core.c - -rm -f $(srcdir)/src/core/DataCollection.c - -rm -f $(srcdir)/src/core/DataObject.c - -rm -f $(srcdir)/src/core/DataSet.c - -rm -f $(srcdir)/src/core/DataSource.c - -rm -f $(srcdir)/src/core/DataSourceTypes.c - -rm -f $(srcdir)/src/core/DataView.c - -rm -f $(srcdir)/src/core/DataViewTypes.c - -rm -f $(srcdir)/src/core/DatabaseSourceCollection.c - -rm -f $(srcdir)/src/core/SourceCollection.c - -rm -f $(srcdir)/src/core/SourceHoldingTank.c - -rm -f $(srcdir)/src/core/SourceInterfaces.c - -rm -f $(srcdir)/src/core/Tracker.c - -rm -f $(srcdir)/src/core/ViewCollection.c - -rm -f $(srcdir)/src/core/util.c - -rm -f $(srcdir)/src/data_imports/DataImportJob.c - -rm -f $(srcdir)/src/data_imports/DataImportSource.c - -rm -f $(srcdir)/src/data_imports/DataImports.c - -rm -f $(srcdir)/src/data_imports/DataImportsPluginHost.c - -rm -f $(srcdir)/src/data_imports/DataImportsUI.c - -rm -f $(srcdir)/src/db/DatabaseTable.c - -rm -f $(srcdir)/src/db/Db.c - -rm -f $(srcdir)/src/db/EventTable.c - -rm -f $(srcdir)/src/db/PhotoTable.c - -rm -f $(srcdir)/src/db/SavedSearchDBTable.c - -rm -f $(srcdir)/src/db/TagTable.c - -rm -f $(srcdir)/src/db/TombstoneTable.c - -rm -f $(srcdir)/src/db/VersionTable.c - -rm -f $(srcdir)/src/db/VideoTable.c - -rm -f $(srcdir)/src/dialogs/AdjustDateTimeDialog.c - -rm -f $(srcdir)/src/dialogs/EntryMultiCompletion.c - -rm -f $(srcdir)/src/dialogs/ExportDialog.c - -rm -f $(srcdir)/src/dialogs/MultiTextEntryDialog.c - -rm -f $(srcdir)/src/dialogs/Preferences.c - -rm -f $(srcdir)/src/dialogs/ProgressDialog.c - -rm -f $(srcdir)/src/dialogs/SetBackground.c - -rm -f $(srcdir)/src/dialogs/SetBackgroundSlideshow.c - -rm -f $(srcdir)/src/dialogs/TextEntry.c - -rm -f $(srcdir)/src/dialogs/WelcomeDialog.c - -rm -f $(srcdir)/src/direct/Direct.c - -rm -f $(srcdir)/src/direct/DirectPhoto.c - -rm -f $(srcdir)/src/direct/DirectPhotoPage.c - -rm -f $(srcdir)/src/direct/DirectView.c - -rm -f $(srcdir)/src/direct/DirectWindow.c - -rm -f $(srcdir)/src/editing_tools/EditingTools.c - -rm -f $(srcdir)/src/editing_tools/RGBHistogramManipulator.c - -rm -f $(srcdir)/src/editing_tools/StraightenTool.c - -rm -f $(srcdir)/src/events/EventDirectoryItem.c - -rm -f $(srcdir)/src/events/EventPage.c - -rm -f $(srcdir)/src/events/Events.c - -rm -f $(srcdir)/src/events/EventsBranch.c - -rm -f $(srcdir)/src/events/EventsDirectoryPage.c - -rm -f $(srcdir)/src/folders/Folders.c - -rm -f $(srcdir)/src/folders/FoldersBranch.c - -rm -f $(srcdir)/src/folders/FoldersPage.c - -rm -f $(srcdir)/src/graphics-processor.c - -rm -f $(srcdir)/src/library/FlaggedPage.c - -rm -f $(srcdir)/src/library/FlaggedSidebarEntry.c - -rm -f $(srcdir)/src/library/ImportQueuePage.c - -rm -f $(srcdir)/src/library/ImportQueueSidebarEntry.c - -rm -f $(srcdir)/src/library/LastImportPage.c - -rm -f $(srcdir)/src/library/LastImportSidebarEntry.c - -rm -f $(srcdir)/src/library/Library.c - -rm -f $(srcdir)/src/library/LibraryBranch.c - -rm -f $(srcdir)/src/library/LibraryWindow.c - -rm -f $(srcdir)/src/library/OfflinePage.c - -rm -f $(srcdir)/src/library/OfflineSidebarEntry.c - -rm -f $(srcdir)/src/library/TrashPage.c - -rm -f $(srcdir)/src/library/TrashSidebarEntry.c - -rm -f $(srcdir)/src/main.c - -rm -f $(srcdir)/src/photos/BmpSupport.c - -rm -f $(srcdir)/src/photos/GRaw.c - -rm -f $(srcdir)/src/photos/GdkSupport.c - -rm -f $(srcdir)/src/photos/JfifSupport.c - -rm -f $(srcdir)/src/photos/PhotoFileAdapter.c - -rm -f $(srcdir)/src/photos/PhotoFileFormat.c - -rm -f $(srcdir)/src/photos/PhotoFileSniffer.c - -rm -f $(srcdir)/src/photos/PhotoMetadata.c - -rm -f $(srcdir)/src/photos/Photos.c - -rm -f $(srcdir)/src/photos/PngSupport.c - -rm -f $(srcdir)/src/photos/RawSupport.c - -rm -f $(srcdir)/src/photos/TiffSupport.c - -rm -f $(srcdir)/src/plugins/DataImportsInterfaces.c - -rm -f $(srcdir)/src/plugins/ManifestWidget.c - -rm -f $(srcdir)/src/plugins/Plugins.c - -rm -f $(srcdir)/src/plugins/PublishingInterfaces.c - -rm -f $(srcdir)/src/plugins/SpitInterfaces.c - -rm -f $(srcdir)/src/plugins/StandardHostInterface.c - -rm -f $(srcdir)/src/plugins/TransitionsInterfaces.c - -rm -f $(srcdir)/src/publishing/APIGlue.c - -rm -f $(srcdir)/src/publishing/Publishing.c - -rm -f $(srcdir)/src/publishing/PublishingPluginHost.c - -rm -f $(srcdir)/src/publishing/PublishingUI.c - -rm -f $(srcdir)/src/searches/SavedSearchDialog.c - -rm -f $(srcdir)/src/searches/SavedSearchPage.c - -rm -f $(srcdir)/src/searches/SearchBoolean.c - -rm -f $(srcdir)/src/searches/Searches.c - -rm -f $(srcdir)/src/searches/SearchesBranch.c - -rm -f $(srcdir)/src/sidebar/Branch.c - -rm -f $(srcdir)/src/sidebar/Entry.c - -rm -f $(srcdir)/src/sidebar/Sidebar.c - -rm -f $(srcdir)/src/sidebar/Tree.c - -rm -f $(srcdir)/src/sidebar/common.c - -rm -f $(srcdir)/src/slideshow/Slideshow.c - -rm -f $(srcdir)/src/slideshow/TransitionEffects.c - -rm -f $(srcdir)/src/tags/HierarchicalTagIndex.c - -rm -f $(srcdir)/src/tags/HierarchicalTagUtilities.c - -rm -f $(srcdir)/src/tags/TagPage.c - -rm -f $(srcdir)/src/tags/Tags.c - -rm -f $(srcdir)/src/tags/TagsBranch.c - -rm -f $(srcdir)/src/threads/BackgroundJob.c - -rm -f $(srcdir)/src/threads/Semaphore.c - -rm -f $(srcdir)/src/threads/Threads.c - -rm -f $(srcdir)/src/threads/Workers.c - -rm -f $(srcdir)/src/unit/Unit.c - -rm -f $(srcdir)/src/util/KeyValueMap.c - -rm -f $(srcdir)/src/util/Util.c - -rm -f $(srcdir)/src/util/file.c - -rm -f $(srcdir)/src/util/image.c - -rm -f $(srcdir)/src/util/misc.c - -rm -f $(srcdir)/src/util/string.c - -rm -f $(srcdir)/src/util/system.c - -rm -f $(srcdir)/src/util/ui.c - -rm -f $(srcdir)/src_libgraphics_processor_la_vala.stamp - -rm -f $(srcdir)/src_plugins_libplugin_la_vala.stamp - -rm -f $(srcdir)/src_shotwell_graphics_processor_vala.stamp - -rm -f $(srcdir)/thumbnailer/shotwell-video-thumbnailer.c - -rm -f $(srcdir)/thumbnailer_shotwell_video_thumbnailer_vala.stamp - -rm -f plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c - -rm -f plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c - -rm -f plugins/authenticator/shotwell/GoogleAuthenticator.c - -rm -f plugins/authenticator/shotwell/OAuth1Authenticator.c - -rm -f plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c - -rm -f plugins/authenticator/shotwell/TumblrAuthenticator.c - -rm -f plugins/common/BuilderPane.c - -rm -f plugins/common/OAuth1Support.c - -rm -f plugins/common/RESTSupport.c - -rm -f plugins/common/Resources.c - -rm -f plugins/common/WebAuthenticationPane.c - -rm -f plugins/shotwell-publishing-extras/GalleryConnector.c - -rm -f plugins/shotwell-publishing-extras/RajcePublishing.c - -rm -f plugins/shotwell-publishing-extras/YandexPublishing.c - -rm -f plugins/shotwell-publishing-extras/shotwell-publishing-extras.c - -rm -f plugins/shotwell-publishing/FacebookPublishing.c - -rm -f plugins/shotwell-publishing/FlickrPublishing.c - -rm -f plugins/shotwell-publishing/PicasaPublishing.c - -rm -f plugins/shotwell-publishing/PiwigoPublishing.c - -rm -f plugins/shotwell-publishing/TumblrPublishing.c - -rm -f plugins/shotwell-publishing/YouTubePublishing.c - -rm -f plugins/shotwell-publishing/shotwell-publishing.c - -rm -f plugins/shotwell-transitions/BlindsEffect.c - -rm -f plugins/shotwell-transitions/ChessEffect.c - -rm -f plugins/shotwell-transitions/CircleEffect.c - -rm -f plugins/shotwell-transitions/CirclesEffect.c - -rm -f plugins/shotwell-transitions/ClockEffect.c - -rm -f plugins/shotwell-transitions/CrumbleEffect.c - -rm -f plugins/shotwell-transitions/FadeEffect.c - -rm -f plugins/shotwell-transitions/SlideEffect.c - -rm -f plugins/shotwell-transitions/SquaresEffect.c - -rm -f plugins/shotwell-transitions/StripesEffect.c - -rm -f plugins/shotwell-transitions/shotwell-transitions.c - -rm -f src/.unitize/_CameraInternals.c - -rm -f src/.unitize/_ConfigInternals.c - -rm -f src/.unitize/_CoreInternals.c - -rm -f src/.unitize/_DataImportsInternals.c - -rm -f src/.unitize/_DbInternals.c - -rm -f src/.unitize/_DirectInternals.c - -rm -f src/.unitize/_Direct_unitize_entry.c - -rm -f src/.unitize/_EditingToolsInternals.c - -rm -f src/.unitize/_EventsInternals.c - -rm -f src/.unitize/_FoldersInternals.c - -rm -f src/.unitize/_LibraryInternals.c - -rm -f src/.unitize/_Library_unitize_entry.c - -rm -f src/.unitize/_PhotosInternals.c - -rm -f src/.unitize/_PluginsInternals.c - -rm -f src/.unitize/_PublishingInternals.c - -rm -f src/.unitize/_SearchesInternals.c - -rm -f src/.unitize/_SidebarInternals.c - -rm -f src/.unitize/_SlideshowInternals.c - -rm -f src/.unitize/_TagsInternals.c - -rm -f src/.unitize/_ThreadsInternals.c - -rm -f src/.unitize/_UnitInternals.c - -rm -f src/.unitize/_UtilInternals.c - -rm -f src/AppDirs.c - -rm -f src/AppWindow.c - -rm -f src/Application.c - -rm -f src/BatchImport.c - -rm -f src/Box.c - -rm -f src/CheckerboardLayout.c - -rm -f src/CollectionPage.c - -rm -f src/ColorTransformation.c - -rm -f src/CommandManager.c - -rm -f src/Commands.c - -rm -f src/Debug.c - -rm -f src/DesktopIntegration.c - -rm -f src/Dialogs.c - -rm -f src/Dimensions.c - -rm -f src/DirectoryMonitor.c - -rm -f src/Event.c - -rm -f src/Exporter.c - -rm -f src/International.c - -rm -f src/LibraryFiles.c - -rm -f src/LibraryMonitor.c - -rm -f src/MediaDataRepresentation.c - -rm -f src/MediaInterfaces.c - -rm -f src/MediaMetadata.c - -rm -f src/MediaMonitor.c - -rm -f src/MediaPage.c - -rm -f src/MediaViewTracker.c - -rm -f src/MetadataWriter.c - -rm -f src/NaturalCollate.c - -rm -f src/Orientation.c - -rm -f src/Page.c - -rm -f src/Photo.c - -rm -f src/PhotoMonitor.c - -rm -f src/PhotoPage.c - -rm -f src/PixbufCache.c - -rm -f src/Printing.c - -rm -f src/Properties.c - -rm -f src/Resources.c - -rm -f src/Screensaver.c - -rm -f src/SearchFilter.c - -rm -f src/SlideshowPage.c - -rm -f src/SortedList.c - -rm -f src/Tag.c - -rm -f src/Thumbnail.c - -rm -f src/ThumbnailCache.c - -rm -f src/TimedQueue.c - -rm -f src/Tombstone.c - -rm -f src/UnityProgressBar.c - -rm -f src/Upgrades.c - -rm -f src/VideoMetadata.c - -rm -f src/VideoMonitor.c - -rm -f src/VideoSupport.c - -rm -f src/camera/Camera.c - -rm -f src/camera/CameraBranch.c - -rm -f src/camera/CameraTable.c - -rm -f src/camera/GPhoto.c - -rm -f src/camera/ImportPage.c - -rm -f src/config/Config.c - -rm -f src/config/ConfigurationInterfaces.c - -rm -f src/config/GSettingsEngine.c - -rm -f src/core/Alteration.c - -rm -f src/core/ContainerSourceCollection.c - -rm -f src/core/Core.c - -rm -f src/core/DataCollection.c - -rm -f src/core/DataObject.c - -rm -f src/core/DataSet.c - -rm -f src/core/DataSource.c - -rm -f src/core/DataSourceTypes.c - -rm -f src/core/DataView.c - -rm -f src/core/DataViewTypes.c - -rm -f src/core/DatabaseSourceCollection.c - -rm -f src/core/SourceCollection.c - -rm -f src/core/SourceHoldingTank.c - -rm -f src/core/SourceInterfaces.c - -rm -f src/core/Tracker.c - -rm -f src/core/ViewCollection.c - -rm -f src/core/util.c - -rm -f src/data_imports/DataImportJob.c - -rm -f src/data_imports/DataImportSource.c - -rm -f src/data_imports/DataImports.c - -rm -f src/data_imports/DataImportsPluginHost.c - -rm -f src/data_imports/DataImportsUI.c - -rm -f src/db/DatabaseTable.c - -rm -f src/db/Db.c - -rm -f src/db/EventTable.c - -rm -f src/db/PhotoTable.c - -rm -f src/db/SavedSearchDBTable.c - -rm -f src/db/TagTable.c - -rm -f src/db/TombstoneTable.c - -rm -f src/db/VersionTable.c - -rm -f src/db/VideoTable.c - -rm -f src/dialogs/AdjustDateTimeDialog.c - -rm -f src/dialogs/EntryMultiCompletion.c - -rm -f src/dialogs/ExportDialog.c - -rm -f src/dialogs/MultiTextEntryDialog.c - -rm -f src/dialogs/Preferences.c - -rm -f src/dialogs/ProgressDialog.c - -rm -f src/dialogs/SetBackground.c - -rm -f src/dialogs/SetBackgroundSlideshow.c - -rm -f src/dialogs/TextEntry.c - -rm -f src/dialogs/WelcomeDialog.c - -rm -f src/direct/Direct.c - -rm -f src/direct/DirectPhoto.c - -rm -f src/direct/DirectPhotoPage.c - -rm -f src/direct/DirectView.c - -rm -f src/direct/DirectWindow.c - -rm -f src/editing_tools/EditingTools.c - -rm -f src/editing_tools/RGBHistogramManipulator.c - -rm -f src/editing_tools/StraightenTool.c - -rm -f src/events/EventDirectoryItem.c - -rm -f src/events/EventPage.c - -rm -f src/events/Events.c - -rm -f src/events/EventsBranch.c - -rm -f src/events/EventsDirectoryPage.c - -rm -f src/folders/Folders.c - -rm -f src/folders/FoldersBranch.c - -rm -f src/folders/FoldersPage.c - -rm -f src/graphics-processor.c - -rm -f src/library/FlaggedPage.c - -rm -f src/library/FlaggedSidebarEntry.c - -rm -f src/library/ImportQueuePage.c - -rm -f src/library/ImportQueueSidebarEntry.c - -rm -f src/library/LastImportPage.c - -rm -f src/library/LastImportSidebarEntry.c - -rm -f src/library/Library.c - -rm -f src/library/LibraryBranch.c - -rm -f src/library/LibraryWindow.c - -rm -f src/library/OfflinePage.c - -rm -f src/library/OfflineSidebarEntry.c - -rm -f src/library/TrashPage.c - -rm -f src/library/TrashSidebarEntry.c - -rm -f src/main.c - -rm -f src/photos/BmpSupport.c - -rm -f src/photos/GRaw.c - -rm -f src/photos/GdkSupport.c - -rm -f src/photos/JfifSupport.c - -rm -f src/photos/PhotoFileAdapter.c - -rm -f src/photos/PhotoFileFormat.c - -rm -f src/photos/PhotoFileSniffer.c - -rm -f src/photos/PhotoMetadata.c - -rm -f src/photos/Photos.c - -rm -f src/photos/PngSupport.c - -rm -f src/photos/RawSupport.c - -rm -f src/photos/TiffSupport.c - -rm -f src/plugins/DataImportsInterfaces.c - -rm -f src/plugins/ManifestWidget.c - -rm -f src/plugins/Plugins.c - -rm -f src/plugins/PublishingInterfaces.c - -rm -f src/plugins/SpitInterfaces.c - -rm -f src/plugins/StandardHostInterface.c - -rm -f src/plugins/TransitionsInterfaces.c - -rm -f src/publishing/APIGlue.c - -rm -f src/publishing/Publishing.c - -rm -f src/publishing/PublishingPluginHost.c - -rm -f src/publishing/PublishingUI.c - -rm -f src/searches/SavedSearchDialog.c - -rm -f src/searches/SavedSearchPage.c - -rm -f src/searches/SearchBoolean.c - -rm -f src/searches/Searches.c - -rm -f src/searches/SearchesBranch.c - -rm -f src/sidebar/Branch.c - -rm -f src/sidebar/Entry.c - -rm -f src/sidebar/Sidebar.c - -rm -f src/sidebar/Tree.c - -rm -f src/sidebar/common.c - -rm -f src/slideshow/Slideshow.c - -rm -f src/slideshow/TransitionEffects.c - -rm -f src/tags/HierarchicalTagIndex.c - -rm -f src/tags/HierarchicalTagUtilities.c - -rm -f src/tags/TagPage.c - -rm -f src/tags/Tags.c - -rm -f src/tags/TagsBranch.c - -rm -f src/threads/BackgroundJob.c - -rm -f src/threads/Semaphore.c - -rm -f src/threads/Threads.c - -rm -f src/threads/Workers.c - -rm -f src/unit/Unit.c - -rm -f src/util/KeyValueMap.c - -rm -f src/util/Util.c - -rm -f src/util/file.c - -rm -f src/util/image.c - -rm -f src/util/misc.c - -rm -f src/util/string.c - -rm -f src/util/system.c - -rm -f src/util/ui.c - -rm -f thumbnailer/shotwell-video-thumbnailer.c - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) -clean: clean-recursive - -clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ - clean-libtool clean-noinstLTLIBRARIES clean-noinstPROGRAMS \ - clean-pkglibexecPROGRAMS clean-pluginLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf ./$(DEPDIR) plugins/authenticator/$(DEPDIR) plugins/authenticator/shotwell/$(DEPDIR) plugins/common/$(DEPDIR) plugins/shotwell-publishing-extras/$(DEPDIR) plugins/shotwell-publishing/$(DEPDIR) plugins/shotwell-transitions/$(DEPDIR) src/$(DEPDIR) src/.unitize/$(DEPDIR) src/camera/$(DEPDIR) src/config/$(DEPDIR) src/core/$(DEPDIR) src/data_imports/$(DEPDIR) src/db/$(DEPDIR) src/dialogs/$(DEPDIR) src/direct/$(DEPDIR) src/editing_tools/$(DEPDIR) src/events/$(DEPDIR) src/folders/$(DEPDIR) src/library/$(DEPDIR) src/photos/$(DEPDIR) src/plugins/$(DEPDIR) src/publishing/$(DEPDIR) src/searches/$(DEPDIR) src/sidebar/$(DEPDIR) src/slideshow/$(DEPDIR) src/tags/$(DEPDIR) src/threads/$(DEPDIR) src/unit/$(DEPDIR) src/util/$(DEPDIR) thumbnailer/$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-hdr distclean-libtool distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -html-am: - -info: info-recursive - -info-am: - -install-data-am: install-dist_pluginDATA install-pluginLTLIBRARIES - -install-dvi: install-dvi-recursive - -install-dvi-am: - -install-exec-am: install-binPROGRAMS install-dist_pkglibexecSCRIPTS \ - install-libLTLIBRARIES install-pkglibexecPROGRAMS - -install-html: install-html-recursive - -install-html-am: - -install-info: install-info-recursive - -install-info-am: - -install-man: - -install-pdf: install-pdf-recursive - -install-pdf-am: - -install-ps: install-ps-recursive - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -rf ./$(DEPDIR) plugins/authenticator/$(DEPDIR) plugins/authenticator/shotwell/$(DEPDIR) plugins/common/$(DEPDIR) plugins/shotwell-publishing-extras/$(DEPDIR) plugins/shotwell-publishing/$(DEPDIR) plugins/shotwell-transitions/$(DEPDIR) src/$(DEPDIR) src/.unitize/$(DEPDIR) src/camera/$(DEPDIR) src/config/$(DEPDIR) src/core/$(DEPDIR) src/data_imports/$(DEPDIR) src/db/$(DEPDIR) src/dialogs/$(DEPDIR) src/direct/$(DEPDIR) src/editing_tools/$(DEPDIR) src/events/$(DEPDIR) src/folders/$(DEPDIR) src/library/$(DEPDIR) src/photos/$(DEPDIR) src/plugins/$(DEPDIR) src/publishing/$(DEPDIR) src/searches/$(DEPDIR) src/sidebar/$(DEPDIR) src/slideshow/$(DEPDIR) src/tags/$(DEPDIR) src/threads/$(DEPDIR) src/unit/$(DEPDIR) src/util/$(DEPDIR) thumbnailer/$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-binPROGRAMS uninstall-dist_pkglibexecSCRIPTS \ - uninstall-dist_pluginDATA uninstall-libLTLIBRARIES \ - uninstall-pkglibexecPROGRAMS uninstall-pluginLTLIBRARIES - -.MAKE: $(am__recursive_targets) all install-am install-strip - -.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ - am--refresh check check-am clean clean-binPROGRAMS \ - clean-cscope clean-generic clean-libLTLIBRARIES clean-libtool \ - clean-noinstLTLIBRARIES clean-noinstPROGRAMS \ - clean-pkglibexecPROGRAMS clean-pluginLTLIBRARIES cscope \ - cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ - dist-gzip dist-hook dist-lzip dist-shar dist-tarZ dist-xz \ - dist-zip distcheck distclean distclean-compile \ - distclean-generic distclean-hdr distclean-libtool \ - distclean-tags distcleancheck distdir distuninstallcheck dvi \ - dvi-am html html-am info info-am install install-am \ - install-binPROGRAMS install-data install-data-am \ - install-dist_pkglibexecSCRIPTS install-dist_pluginDATA \ - install-dvi install-dvi-am install-exec install-exec-am \ - install-html install-html-am install-info install-info-am \ - install-libLTLIBRARIES install-man install-pdf install-pdf-am \ - install-pkglibexecPROGRAMS install-pluginLTLIBRARIES \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am uninstall-binPROGRAMS \ - uninstall-dist_pkglibexecSCRIPTS uninstall-dist_pluginDATA \ - uninstall-libLTLIBRARIES uninstall-pkglibexecPROGRAMS \ - uninstall-pluginLTLIBRARIES - -.PRECIOUS: Makefile - - -AUTHORS: - $(AM_V_GEN)if test -d "$(srcdir)/.git"; \ - then \ - echo Creating $@ && \ - ( cd "$(top_srcdir)" && \ - echo '# Generated by Makefile. Do not edit.'; echo; \ - git log --no-merges --pretty=format:"%an" $(SUBDIRS) \ - | sort | uniq ) > $@.tmp \ - && mv -f $@.tmp $@ \ - || ( rm -f $@.tmp ; \ - echo Failed to generate $@ >&2 ); \ - else touch $@; fi - -# Generate the ChangeLog and clean the dist tarball -@GENERATE_CHANGELOG_RULES@ - -dist-hook: dist-ChangeLog - -$(top_srcdir)/plugins/shotwell-plugin-common.vapi plugins/shotwell-plugin-common.h: \ - plugins_common_libshotwell_plugin_common_la_vala.stamp - -plugins/shotwell-plugin-dev-1.0.vapi plugins/shotwell-plugin-dev-1.0.h: src_plugins_libplugin_la_vala.stamp - --include $(top_srcdir)/git.mk -src/shotwell-graphics-processor.vapi src/shotwell-graphics-processor.h: \ - src_libgraphics_processor_la_vala.stamp - -I$(abs_top_builddir)/src - -resource.c: org.gnome.Shotwell.gresource.xml $(shotwell_resource_deps) - $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ \ - --sourcedir=$(abs_top_srcdir) \ - --generate $(abs_top_srcdir)/org.gnome.Shotwell.gresource.xml - -plugins/authenticator/shotwell-authenticator.vapi plugins/authenticator/shotwell-authenticator.h: \ - plugins_authenticator_libshotwell_authenticator_la_vala.stamp - -plugins/authenticator/resource.c: $(AUTHENTICATOR_RESOURCE_DEPS) $(AUTHENTICATOR_RESOURCE_FILE) - $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) \ - --target=$@ \ - --sourcedir=$(AUTHENTICATOR_RESOURCE_SOURCEDIR) \ - --generate $(AUTHENTICATOR_RESOURCE_FILE) - -plugins/shotwell-publishing/resource.c: $(PUBLISHING_RESOURCE_DEPS) $(PUBLISHING_RESOURCE_FILE) - $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) \ - --target=$@ \ - --sourcedir=$(abs_top_srcdir)/plugins/shotwell-publishing \ - --generate $(PUBLISHING_RESOURCE_FILE) - -@HAVE_EXTRA_PLUGINS_TRUE@plugins/shotwell-publishing-extras/resource.c: plugins/shotwell-publishing-extras/org.gnome.Shotwell.Publishing.Extras.gresource.xml -@HAVE_EXTRA_PLUGINS_TRUE@ $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(abs_top_srcdir)/plugins/shotwell-publishing-extras --generate $< - -plugins/shotwell-transitions/resource.c: plugins/shotwell-transitions/org.gnome.Shotwell.Transitions.gresource.xml - $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(abs_top_srcdir)/plugins/shotwell-transitions --generate $< - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/NEWS b/NEWS index 0156cee..d682150 100644 --- a/NEWS +++ b/NEWS @@ -1,62 +1,205 @@ -Shotwell 0.28.4 - 14 Jul 2018 - * Fix slideshow settings dialog - * Fix Google login sequence - * Fix MTP device unmounting - * Work-around issue where PTP cameras would not be recognized anymore +Shotwell 0.30.1 - 29 Sep 2018 + * Fix appdata URLs + * Fix "Show in file manager" issues with single quotes + * Fix cancelling in sharing dialog + * Fix progress bar in sharing dialog + * Piwigo: Fix issue with empty dialog after cancelling upload + * Fix setting the slideshow delay with the spinner + * Fix icon fall-back for extensions + * Fix a critical when an image does not have any meta-data + * Fix GPS coordinate link in extended information for western longitudes Bugs fixed in this release: - - https://bugzilla.gnome.org/show_bug.cgi?id=796370 - - https://gitlab.gnome.org/GNOME/shotwell/issues/12 + - https://bugzilla.gnome.org/show_bug.cgi?id=718676 + - https://gitlab.gnome.org/GNOME/shotwell/issues/22 + - https://gitlab.gnome.org/GNOME/shotwell/issues/53 + - https://gitlab.gnome.org/GNOME/shotwell/issues/56 All contributors to this release: - Jens Georg - - Piotr Drąg + +Shotwell 0.30.0 "Celle" - 10 Sep 2018 + * Translation updates + * Last-minute fix for random segfaults in GSettings + +Bugs fixed in this release: + https://gitlab.gnome.org/GNOME/shotwell/issues/34 + +All contributors to this release: + - Jens Georg + - Anders Jonsson + - Rūdolfs Mazurs + - gogo + - Balázs Meskó Added/updated translations + - hr, courtesy of gogo + - hu, courtesy of Meskó Balázs + - lv, courtesy of Rūdolfs Mazurs + - sv, courtesy of Anders Jonsson + +Shotwell 0.29.92 - 02 Sep 2018 + * Translation updates and build fixes + +All contributors to this release: + - Jens Georg + - Kukuh Syafaat + - Chris Ladd + - Cheng-Chia Tseng + - Andre Klapper + +Added/updated translations + - fr, courtesy of arverne73 + - id, courtesy of Kukuh Syafaat + - zh_TW, courtesy of Cheng-Chia Tseng + +Shotwell 0.29.91 - 16 Aug 2018 + * Add unstable release flatpakref file + * Remove use of stderr in thumbnailer + * Remove Facebook publishing plugin from list of default + plugins + * Translation updates + +All contributors to this release: + - Jens Georg + - NarendraMA + - Jiri Grönroos + - Emin Tufan Çetin + - Daniel Mustieles + +Added/updated translations + - es, courtesy of Daniel Mustieles + - fi, courtesy of Jiri Grönroos - tr, courtesy of Emin Tufan Çetin -Shotwell 0.28.3 - 7 May 2018 - * Fix spacings in search toolbar - * Fix "Out of memory" issues when scrolling through large collections +Shotwell 0.29.4 - 20 Jul 2018 + * Fix unmounting of MTP devices + * Add work-around for PTP devices not showing up anymore + * Minor visual fixes for new extended properties view + * Make it possible to override plugin search path + * Some icon fixes + * Add feature to flick through the images of an event + by mouse hover + * Remove video sprockets + * Update libraw in flatpak to 0.18.13 + * Leave import-roll sidebar closed by default + * French translation of shotwell's help + +All contributors to this release: + - Jens Georg + - Carsten Csiky (csicar) + - Claude Paroz + - Yi-Soo An + - Mario Blättermann + +Added/updated translations + - de, courtesy of Mario Blättermann + - fr, courtesy of arverne73 + - fr, courtesy of Claude Paroz + +Shotwell 0.29.3 - 20 Jun 2018 + * Fix Slideshow settings dialog + * Re-merge faces branch to master + * Introduce flatpak infrastructure + * Fix OAuth2 token fetching from Google login + * Move extended properties into a sidebar + Bugs fixed in this release: - - https://bugzilla.gnome.org/show_bug.cgi?id=786702 + - https://bugzilla.gnome.org/show_bug.cgi?id=716192 + - https://bugzilla.gnome.org/show_bug.cgi?id=716704 + - https://bugzilla.gnome.org/show_bug.cgi?id=772339 + - https://bugzilla.gnome.org/show_bug.cgi?id=796370 + - https://gitlab.gnome.org/GNOME/shotwell/issues/10 + - https://gitlab.gnome.org/GNOME/shotwell/issues/12 All contributors to this release: - Jens Georg + - Ricardo Fantin da Costa - Piotr Drąg + - Yi-Jyun Pan + - Rafael Fontenelle + - Claude Paroz Added/updated translations + - fr, courtesy of arverne73 - pl, courtesy of Piotr Drąg - -Shotwell 0.28.2 - 9 Apr 2018 - * Fix saved search dialog on Gtk 3.18 - * Fix crash when editing images with alpha channel - * Fix logging in to Piwigo when password contains & + - pt_BR, courtesy of Rafael Fontenelle + - tr, courtesy of Emin Tufan Çetin + - zh_TW, courtesy of pan93412 + +Shotwell 0.29.2 - 22 May 2018 + * Fix "out of memory issue" on HiDPI screens + * Replace all icons with their symbolic variant + * General icon clean-up + * Render CheckerboardLayout with theme colors_changed + * Remove possibility for custom background color in library + * Enable dark theme by default (can be switched off in settings) + * Fix linked tags (broken by out-of-memory fix) + * Translation updates Bugs fixed in this release: - - https://bugzilla.gnome.org/show_bug.cgi?id=718742 - - https://bugzilla.gnome.org/show_bug.cgi?id=794673 + - https://bugzilla.gnome.org/show_bug.cgi?id=718212 + - https://bugzilla.gnome.org/show_bug.cgi?id=772339 + - https://bugzilla.gnome.org/show_bug.cgi?id=786702 + - https://bugzilla.gnome.org/show_bug.cgi?id=795719 + - See https://developer.gnome.org/hig/stable/typography.html All contributors to this release: - Jens Georg + - Piotr Drąg + - Marek Černocký + - Marcos Lans + - Joerg C. Frings-Fuerst + - Jens Georg -Shotwell 0.28.1 - 25 Mar 2018 - * The paperbag. Unbreak all publishers - * Translation updates - * Fix a missing symbol error +Added/updated translations + - cs, courtesy of Marek Černocký + - gl, courtesy of marcos + - pl, courtesy of Piotr Drąg + +Shotwell 0.29.1 - 24 Apr 2018 + * Fix issue with meson dist tarball generation + +Shotwell 0.29.0 - 24 Apr 2018 + * Fix an issue with undefined symbols with certain compilers + * Remove autotools supports + * Add GIF support (read-only, animations not supported) + * Bump GTK requirement to 3.22 and remove deprecated function calls + * Change some internal drawing to use GTK+ API instead of using Cairo directly + * Add import rolls + * Minor visual improvements + * Dead code and asset removal Bugs fixed in this release: + - https://bugzilla.gnome.org/show_bug.cgi?id=716284 + - https://bugzilla.gnome.org/show_bug.cgi?id=717833 + - https://bugzilla.gnome.org/show_bug.cgi?id=718742 + - https://bugzilla.gnome.org/show_bug.cgi?id=772339 + - https://bugzilla.gnome.org/show_bug.cgi?id=783268 - https://bugzilla.gnome.org/show_bug.cgi?id=794293 + - https://bugzilla.gnome.org/show_bug.cgi?id=794456 + - https://bugzilla.gnome.org/show_bug.cgi?id=794673 All contributors to this release: - Jens Georg - - Rūdolfs Mazurs + - Piotr Drąg + - Jens Georg - gogo + - Rūdolfs Mazurs + - Marek Černocký + - Josef Andersson + - Boyuan Yang <073plan@gmail.com> + - Alan Mortensen Added/updated translations + - cs, courtesy of Marek Černocký + - da, courtesy of Alan Mortensen - hr, courtesy of gogo - lv, courtesy of Rūdolfs Mazurs + - pl, courtesy of Piotr Drąg + - sv, courtesy of Josef Andersson + - zh_CN, courtesy of Boyuan Yang Shotwell 0.28.0 - 12 Mar 2018 * Translation updates diff --git a/README b/README deleted file mode 100644 index 65baeea..0000000 --- a/README +++ /dev/null @@ -1,58 +0,0 @@ - - Shotwell Photo Manager - ---------------------- - - * Introduction - - Shotwell is a digital photo manager designed for the GNOME desktop - environment. It allows you to import photos from disk or camera, - organize them by keywords and events, view them in full-window or fullscreen - mode, and share them with others via social networking and more. - - Visit https://wiki.gnome.org/Apps/Shotwell to read about the current state of - Shotwell's development and to make sure you're running the latest version. - - - * Installation & Licensing - - Please consult the INSTALL and COPYING files for more information. - - - * Quick Start - - There are three ways to import photos: via drag-and-drop, from a digital - camera, and from the File menu. - - * Drag-and-drop: Simply drag photos from your file manager and drop them - onto the Shotwell window. You may drag files or directories. The photos - will be imported into the library. - - * Camera: Connect your digital camera to your computer. Shotwell will - detect it and list it in the sidebar. When you select the camera, Shotwell - will load previews of each photo. You may choose specific photos to - import or to import them all. - - Shotwell uses gPhoto to communicate with digital cameras. If your camera - does not appear in Shotwell's sidebar or there is a problem importing - photos, visit http://www.gphoto.org to see if it is supported. - - * File menu: Select File -> Import From Folder ... and select a directory - from the chooser dialog box. Shotwell will scan the directory and all - sub-directories for photo files and automatically import them. - - Once your photos are in Shotwell's library, you can view, edit, and export - them. More features are planned, so check http://www.yorba.org/shotwell - regularly for updates. - - - Shotwell project page: https://wiki.gnome.org/Apps/Shotwell - Shotwell documentation: http://shotwell-project.org/doc/html/ - - We also encourage you to join the Shotwell mailing list. See - https://mail.gnome.org/mailman/listinfo/shotwell-list for how to subscribe - to the mailing list. - - - - Copyright 2016 Software Freedom Conservancy Inc. - diff --git a/README.md b/README.md new file mode 100644 index 0000000..997e3bf --- /dev/null +++ b/README.md @@ -0,0 +1,51 @@ +# Shotwell Photo Manager +---------------------- + +## Introduction +Shotwell is a digital photo manager designed for the GNOME desktop +environment. It allows you to import photos from disk or camera, +organize them by keywords and events, view them in full-window or fullscreen +mode, and share them with others via social networking and more. + +Visit https://wiki.gnome.org/Apps/Shotwell to read about the current state of +Shotwell's development and to make sure you're running the latest version. + +## Installation & Licensing +Please consult the (INSTALL) and (COPYING) files for more information. + +## Quick Start + +There are three ways to import photos: via drag-and-drop, from a digital +camera, and from the File menu. + +* Drag-and-drop: Simply drag photos from your file manager and drop them +onto the Shotwell window. You may drag files or directories. The photos +will be imported into the library. + +* Camera: Connect your digital camera to your computer. Shotwell will +detect it and list it in the sidebar. When you select the camera, Shotwell +will load previews of each photo. You may choose specific photos to +import or to import them all. +Shotwell uses gPhoto2 to communicate with digital cameras. If your camera +does not appear in Shotwell's sidebar or there is a problem importing +photos, visit http://www.gphoto.org to see if it is supported. + +* File menu: Select File -> Import From Folder ... and select a directory +from the chooser dialog box. Shotwell will scan the directory and all +sub-directories for photo files and automatically import them. + +Once your photos are in Shotwell's library, you can view, edit, and export +them. More features are planned, so check http://www.yorba.org/shotwell +regularly for updates. + + +Shotwell project page: https://wiki.gnome.org/Apps/Shotwell +Shotwell documentation: http://shotwell-project.org/doc/html/ + +We also encourage you to join the Shotwell mailing list. See +https://mail.gnome.org/mailman/listinfo/shotwell-list for how to subscribe +to the mailing list. + + Copyright 2016 Software Freedom Conservancy Inc. + + diff --git a/aclocal.m4 b/aclocal.m4 deleted file mode 100644 index 6c0c961..0000000 --- a/aclocal.m4 +++ /dev/null @@ -1,1247 +0,0 @@ -# generated automatically by aclocal 1.15.1 -*- Autoconf -*- - -# Copyright (C) 1996-2017 Free Software Foundation, Inc. - -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) -m4_ifndef([AC_AUTOCONF_VERSION], - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, -[m4_warning([this file was generated for autoconf 2.69. -You have another version of autoconf. It may work, but is not guaranteed to. -If you have problems, you may need to regenerate the build system entirely. -To do so, use the procedure documented by the package, typically 'autoreconf'.])]) - -# Copyright (C) 2002-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -# (This private macro should not be called outside this file.) -AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.15' -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to -dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.15.1], [], - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl -]) - -# _AM_AUTOCONF_VERSION(VERSION) -# ----------------------------- -# aclocal traces this macro to find the Autoconf version. -# This is a private macro too. Using m4_define simplifies -# the logic in aclocal, which can simply ignore this definition. -m4_define([_AM_AUTOCONF_VERSION], []) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.15.1])dnl -m4_ifndef([AC_AUTOCONF_VERSION], - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to -# '$srcdir', '$srcdir/..', or '$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is '.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -# Expand $ac_aux_dir to an absolute path. -am_aux_dir=`cd "$ac_aux_dir" && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ([2.52])dnl - m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE])dnl -AC_SUBST([$1_FALSE])dnl -_AM_SUBST_NOTMAKE([$1_TRUE])dnl -_AM_SUBST_NOTMAKE([$1_FALSE])dnl -m4_define([_AM_COND_VALUE_$1], [$2])dnl -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - -# Copyright (C) 1999-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - - -# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], - [$1], [CXX], [depcc="$CXX" am_compiler_list=], - [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], - [$1], [UPC], [depcc="$UPC" am_compiler_list=], - [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named 'D' -- because '-MD' means "put the output - # in D". - rm -rf conftest.dir - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi - am__universal=false - m4_case([$1], [CC], - [case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac], - [CXX], - [case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac]) - - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with - # Solaris 10 /bin/sh. - echo '/* dummy */' > sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - # We check with '-c' and '-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle '-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs. - am__obj=sub/conftest.${OBJEXT-o} - am__minus_obj="-o $am__obj" - case $depmode in - gcc) - # This depmode causes a compiler race in universal mode. - test "$am__universal" = false || continue - ;; - nosideeffect) - # After this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested. - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - msvc7 | msvc7msys | msvisualcpp | msvcmsys) - # This compiler won't grok '-c -o', but also, the minuso test has - # not run yet. These depmodes are late enough in the game, and - # so weak that their functioning should not be impacted. - am__obj=conftest.${OBJEXT-o} - am__minus_obj= - ;; - none) break ;; - esac - if depmode=$depmode \ - source=sub/conftest.c object=$am__obj \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES. -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE([dependency-tracking], [dnl -AS_HELP_STRING( - [--enable-dependency-tracking], - [do not reject slow dependency extractors]) -AS_HELP_STRING( - [--disable-dependency-tracking], - [speeds up one-time build])]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' - am__nodep='_no' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH])dnl -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl -AC_SUBST([am__nodep])dnl -_AM_SUBST_NOTMAKE([am__nodep])dnl -]) - -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright (C) 1999-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[{ - # Older Autoconf quotes --file arguments for eval, but not when files - # are listed without --file. Let's play safe and only enable the eval - # if we detect the quoting. - case $CONFIG_FILES in - *\'*) eval set x "$CONFIG_FILES" ;; - *) set x $CONFIG_FILES ;; - esac - shift - for mf - do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named 'Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running 'make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "$am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done - done -} -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each '.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. -m4_define([AC_PROG_CC], -m4_defn([AC_PROG_CC]) -[_AM_PROG_CC_C_O -]) - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.65])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[AC_DIAGNOSE([obsolete], - [$0: two- and three-arguments forms are deprecated.]) -m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if( - m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), - [ok:ok],, - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) - AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) -AM_MISSING_PROG([AUTOCONF], [autoconf]) -AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) -AM_MISSING_PROG([AUTOHEADER], [autoheader]) -AM_MISSING_PROG([MAKEINFO], [makeinfo]) -AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -# For better backward compatibility. To be removed once Automake 1.9.x -# dies out for good. For more background, see: -# -# -AC_SUBST([mkdir_p], ['$(MKDIR_P)']) -# We need awk for the "check" target (and possibly the TAP driver). The -# system "awk" is bad on some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES([CC])], - [m4_define([AC_PROG_CC], - m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES([CXX])], - [m4_define([AC_PROG_CXX], - m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES([OBJC])], - [m4_define([AC_PROG_OBJC], - m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], - [_AM_DEPENDENCIES([OBJCXX])], - [m4_define([AC_PROG_OBJCXX], - m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl -]) -AC_REQUIRE([AM_SILENT_RULES])dnl -dnl The testsuite driver may need to know about EXEEXT, so add the -dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This -dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. -AC_CONFIG_COMMANDS_PRE(dnl -[m4_provide_if([_AM_COMPILER_EXEEXT], - [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl - -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! - -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contrary -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: - -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. - -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. - -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . - -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. - -END - AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) - fi -fi -dnl The trailing newline in this macro's definition is deliberate, for -dnl backward compatibility and to allow trailing 'dnl'-style comments -dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. -]) - -dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not -dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further -dnl mangled by Autoconf and run in a shell conditional statement. -m4_define([_AC_COMPILER_EXEEXT], -m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_arg=$1 -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $_am_arg | $_am_arg:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -if test x"${install_sh+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; - *) - install_sh="\${SHELL} $am_aux_dir/install-sh" - esac -fi -AC_SUBST([install_sh])]) - -# Copyright (C) 2003-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- -# From Jim Meyering - -# Copyright (C) 1996-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_MAINTAINER_MODE([DEFAULT-MODE]) -# ---------------------------------- -# Control maintainer-specific portions of Makefiles. -# Default is to disable them, unless 'enable' is passed literally. -# For symmetry, 'disable' may be passed as well. Anyway, the user -# can override the default with the --enable/--disable switch. -AC_DEFUN([AM_MAINTAINER_MODE], -[m4_case(m4_default([$1], [disable]), - [enable], [m4_define([am_maintainer_other], [disable])], - [disable], [m4_define([am_maintainer_other], [enable])], - [m4_define([am_maintainer_other], [enable]) - m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) -AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) - dnl maintainer-mode's default is 'disable' unless 'enable' is passed - AC_ARG_ENABLE([maintainer-mode], - [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], - am_maintainer_other[ make rules and dependencies not useful - (and sometimes confusing) to the casual installer])], - [USE_MAINTAINER_MODE=$enableval], - [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) - AC_MSG_RESULT([$USE_MAINTAINER_MODE]) - AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) - MAINT=$MAINTAINER_MODE_TRUE - AC_SUBST([MAINT])dnl -] -) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo this is the am__doit target -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# Ignore all kinds of additional output from 'make'. -case `$am_make -s -f confmf 2> /dev/null` in #( -*the\ am__doit\ target*) - am__include=include - am__quote= - _am_result=GNU - ;; -esac -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - case `$am_make -s -f confmf 2> /dev/null` in #( - *the\ am__doit\ target*) - am__include=.include - am__quote="\"" - _am_result=BSD - ;; - esac -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it is modern enough. -# If it is, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([missing])dnl -if test x"${MISSING+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac -fi -# Use eval to expand $SHELL -if eval "$MISSING --is-lightweight"; then - am_missing_run="$MISSING " -else - am_missing_run= - AC_MSG_WARN(['missing' script is too old or missing]) -fi -]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# -------------------- -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) - -# _AM_SET_OPTIONS(OPTIONS) -# ------------------------ -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Copyright (C) 1999-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_PROG_CC_C_O -# --------------- -# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC -# to automatically call this. -AC_DEFUN([_AM_PROG_CC_C_O], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([compile])dnl -AC_LANG_PUSH([C])dnl -AC_CACHE_CHECK( - [whether $CC understands -c and -o together], - [am_cv_prog_cc_c_o], - [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) - # Make sure it works both with $CC and with simple cc. - # Following AC_PROG_CC_C_O, we do the test twice because some - # compilers refuse to overwrite an existing .o file with -o, - # though they will create one. - am_cv_prog_cc_c_o=yes - for am_i in 1 2; do - if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ - && test -f conftest2.$ac_objext; then - : OK - else - am_cv_prog_cc_c_o=no - break - fi - done - rm -f core conftest* - unset am_i]) -if test "$am_cv_prog_cc_c_o" != yes; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" - CC="$am_aux_dir/compile $CC" -fi -AC_LANG_POP([C])]) - -# For backward compatibility. -AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_RUN_LOG(COMMAND) -# ------------------- -# Run COMMAND, save the exit status in ac_status, and log it. -# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) -AC_DEFUN([AM_RUN_LOG], -[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD - ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - (exit $ac_status); }]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' -' -case `pwd` in - *[[\\\"\#\$\&\'\`$am_lf]]*) - AC_MSG_ERROR([unsafe absolute working directory name]);; -esac -case $srcdir in - *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) - AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; -esac - -# Do 'set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken - alias in your environment]) - fi - if test "$[2]" = conftest.file || test $am_try -eq 2; then - break - fi - # Just in case. - sleep 1 - am_has_slept=yes - done - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT([yes]) -# If we didn't sleep, we still need to ensure time stamps of config.status and -# generated files are strictly newer. -am_sleep_pid= -if grep 'slept: no' conftest.file >/dev/null 2>&1; then - ( sleep 1 ) & - am_sleep_pid=$! -fi -AC_CONFIG_COMMANDS_PRE( - [AC_MSG_CHECKING([that generated files are newer than configure]) - if test -n "$am_sleep_pid"; then - # Hide warnings about reused PIDs. - wait $am_sleep_pid 2>/dev/null - fi - AC_MSG_RESULT([done])]) -rm -f conftest.file -]) - -# Copyright (C) 2009-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_SILENT_RULES([DEFAULT]) -# -------------------------- -# Enable less verbose build rules; with the default set to DEFAULT -# ("yes" being less verbose, "no" or empty being verbose). -AC_DEFUN([AM_SILENT_RULES], -[AC_ARG_ENABLE([silent-rules], [dnl -AS_HELP_STRING( - [--enable-silent-rules], - [less verbose build output (undo: "make V=1")]) -AS_HELP_STRING( - [--disable-silent-rules], - [verbose build output (undo: "make V=0")])dnl -]) -case $enable_silent_rules in @%:@ ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; -esac -dnl -dnl A few 'make' implementations (e.g., NonStop OS and NextStep) -dnl do not support nested variable expansions. -dnl See automake bug#9928 and bug#10237. -am_make=${MAKE-make} -AC_CACHE_CHECK([whether $am_make supports nested variables], - [am_cv_make_support_nested_variables], - [if AS_ECHO([['TRUE=$(BAR$(V)) -BAR0=false -BAR1=true -V=1 -am__doit: - @$(TRUE) -.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then - am_cv_make_support_nested_variables=yes -else - am_cv_make_support_nested_variables=no -fi]) -if test $am_cv_make_support_nested_variables = yes; then - dnl Using '$V' instead of '$(V)' breaks IRIX make. - AM_V='$(V)' - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' -else - AM_V=$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY -fi -AC_SUBST([AM_V])dnl -AM_SUBST_NOTMAKE([AM_V])dnl -AC_SUBST([AM_DEFAULT_V])dnl -AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl -AC_SUBST([AM_DEFAULT_VERBOSITY])dnl -AM_BACKSLASH='\' -AC_SUBST([AM_BACKSLASH])dnl -_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl -]) - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor 'install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in "make install-strip", and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using 'strip' when the user -# run "make install-strip". However 'strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the 'STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Copyright (C) 2006-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- -# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. -# This macro is traced by Automake. -AC_DEFUN([_AM_SUBST_NOTMAKE]) - -# AM_SUBST_NOTMAKE(VARIABLE) -# -------------------------- -# Public sister of _AM_SUBST_NOTMAKE. -AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of 'v7', 'ustar', or 'pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -# -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. Yes, it's still used -# in the wild :-( We should find a proper way to deprecate it ... -AC_SUBST([AMTAR], ['$${TAR-tar}']) - -# We'll loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' - -m4_if([$1], [v7], - [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], - - [m4_case([$1], - [ustar], - [# The POSIX 1988 'ustar' format is defined with fixed-size fields. - # There is notably a 21 bits limit for the UID and the GID. In fact, - # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 - # and bug#13588). - am_max_uid=2097151 # 2^21 - 1 - am_max_gid=$am_max_uid - # The $UID and $GID variables are not portable, so we need to resort - # to the POSIX-mandated id(1) utility. Errors in the 'id' calls - # below are definitely unexpected, so allow the users to see them - # (that is, avoid stderr redirection). - am_uid=`id -u || echo unknown` - am_gid=`id -g || echo unknown` - AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) - if test $am_uid -le $am_max_uid; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - _am_tools=none - fi - AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) - if test $am_gid -le $am_max_gid; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - _am_tools=none - fi], - - [pax], - [], - - [m4_fatal([Unknown tar format])]) - - AC_MSG_CHECKING([how to create a $1 tar archive]) - - # Go ahead even if we have the value already cached. We do so because we - # need to set the values for the 'am__tar' and 'am__untar' variables. - _am_tools=${am_cv_prog_tar_$1-$_am_tools} - - for _am_tool in $_am_tools; do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works. - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi - done - rm -rf conftest.dir - - AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) - AC_MSG_RESULT([$am_cv_prog_tar_$1])]) - -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - -# Autoconf support for the Vala compiler - -# Copyright (C) 2008-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# Check whether the Vala compiler exists in $PATH. If it is found, the -# variable VALAC is set pointing to its absolute path. Otherwise, it is -# simply set to 'valac'. -# Optionally a minimum release number of the compiler can be requested. -# If the ACTION-IF-FOUND parameter is given, it will be run if a proper -# Vala compiler is found. -# Similarly, if the ACTION-IF-FOUND is given, it will be run if no proper -# Vala compiler is found. It defaults to simply print a warning about the -# situation, but otherwise proceeding with the configuration. -# -# AM_PROG_VALAC([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -# -------------------------------------------------------------------------- -AC_DEFUN([AM_PROG_VALAC], - [AC_PATH_PROG([VALAC], [valac], [valac]) - AS_IF([test "$VALAC" != valac && test -n "$1"], - [AC_MSG_CHECKING([whether $VALAC is at least version $1]) - am__vala_version=`$VALAC --version | sed 's/Vala *//'` - AS_VERSION_COMPARE([$1], ["$am__vala_version"], - [AC_MSG_RESULT([yes])], - [AC_MSG_RESULT([yes])], - [AC_MSG_RESULT([no]) - VALAC=valac])]) - if test "$VALAC" = valac; then - m4_default([$3], - [AC_MSG_WARN([no proper vala compiler found]) - AC_MSG_WARN([you will not be able to compile vala source files])]) - else - m4_default([$2], [:]) - fi]) - -m4_include([m4/appstream-xml.m4]) -m4_include([m4/ax_generate_changelog.m4]) -m4_include([m4/ax_is_release.m4]) -m4_include([m4/ax_require_defined.m4]) -m4_include([m4/gettext.m4]) -m4_include([m4/gsettings.m4]) -m4_include([m4/iconv.m4]) -m4_include([m4/intlmacosx.m4]) -m4_include([m4/lib-ld.m4]) -m4_include([m4/lib-link.m4]) -m4_include([m4/lib-prefix.m4]) -m4_include([m4/libtool.m4]) -m4_include([m4/ltoptions.m4]) -m4_include([m4/ltsugar.m4]) -m4_include([m4/ltversion.m4]) -m4_include([m4/lt~obsolete.m4]) -m4_include([m4/nls.m4]) -m4_include([m4/pkg.m4]) -m4_include([m4/po.m4]) -m4_include([m4/progtest.m4]) -m4_include([m4/yelp.m4]) diff --git a/app-icons/Makefile.am b/app-icons/Makefile.am deleted file mode 100644 index 703705c..0000000 --- a/app-icons/Makefile.am +++ /dev/null @@ -1,41 +0,0 @@ -iconthemedir = $(datadir)/icons/hicolor - -appicon16dir = $(iconthemedir)/16x16/apps -appicon22dir = $(iconthemedir)/22x22/apps -appicon24dir = $(iconthemedir)/24x24/apps -appicon32dir = $(iconthemedir)/32x32/apps -appicon48dir = $(iconthemedir)/48x48/apps -appicon256dir = $(iconthemedir)/256x256/apps -appiconscalabledir = $(iconthemedir)/scalable/apps -appiconsymbolicdir = $(iconthemedir)/symbolic/apps - -dist_appicon16_DATA = \ - 16x16/apps/shotwell.png -dist_appicon22_DATA = \ - 22x22/apps/shotwell.png -dist_appicon24_DATA = \ - 24x24/apps/shotwell.png -dist_appicon32_DATA = \ - 32x32/apps/shotwell.png -dist_appicon48_DATA = \ - 48x48/apps/shotwell.png -dist_appicon256_DATA = \ - 256x256/apps/shotwell.png -dist_appiconsymbolic_DATA = \ - symbolic/apps/shotwell-symbolic.svg - -UPDATE_ICON_CACHE = gtk-update-icon-cache --ignore-theme-index --force - -install-data-hook: install-update-icon-cache -uninstall-hook: uninstall-update-icon-cache - -install-update-icon-cache: - $(AM_V_at)$(POST_INSTALL) - test -n "$(DESTDIR)" || $(UPDATE_ICON_CACHE) "$(iconthemedir)" - -uninstall-update-icon-cache: - $(AM_V_at)$(POST_UNINSTALL) - test -n "$(DESTDIR)" || $(UPDATE_ICON_CACHE) "$(iconthemedir)" - - --include $(top_srcdir)/git.mk diff --git a/app-icons/Makefile.in b/app-icons/Makefile.in deleted file mode 100644 index e4d5a51..0000000 --- a/app-icons/Makefile.in +++ /dev/null @@ -1,758 +0,0 @@ -# Makefile.in generated by automake 1.15.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2017 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -am__is_gnu_make = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = app-icons -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/appstream-xml.m4 \ - $(top_srcdir)/m4/ax_generate_changelog.m4 \ - $(top_srcdir)/m4/ax_is_release.m4 \ - $(top_srcdir)/m4/ax_require_defined.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gsettings.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/yelp.m4 $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(dist_appicon16_DATA) \ - $(dist_appicon22_DATA) $(dist_appicon24_DATA) \ - $(dist_appicon256_DATA) $(dist_appicon32_DATA) \ - $(dist_appicon48_DATA) $(dist_appiconsymbolic_DATA) \ - $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -SOURCES = -DIST_SOURCES = -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -am__installdirs = "$(DESTDIR)$(appicon16dir)" \ - "$(DESTDIR)$(appicon22dir)" "$(DESTDIR)$(appicon24dir)" \ - "$(DESTDIR)$(appicon256dir)" "$(DESTDIR)$(appicon32dir)" \ - "$(DESTDIR)$(appicon48dir)" "$(DESTDIR)$(appiconsymbolicdir)" -DATA = $(dist_appicon16_DATA) $(dist_appicon22_DATA) \ - $(dist_appicon24_DATA) $(dist_appicon256_DATA) \ - $(dist_appicon32_DATA) $(dist_appicon48_DATA) \ - $(dist_appiconsymbolic_DATA) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -API_VERSION = @API_VERSION@ -APPSTREAM_UTIL = @APPSTREAM_UTIL@ -AR = @AR@ -AUTHENTICATOR_CFLAGS = @AUTHENTICATOR_CFLAGS@ -AUTHENTICATOR_LIBS = @AUTHENTICATOR_LIBS@ -AUTHENTICATOR_PACKAGES = @AUTHENTICATOR_PACKAGES@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GIT = @GIT@ -GITVER = @GITVER@ -GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -HAVE_EXTRA_PLUGINS = @HAVE_EXTRA_PLUGINS@ -HAVE_UNITY = @HAVE_UNITY@ -HELP_DIR = @HELP_DIR@ -IMPORT_CFLAGS = @IMPORT_CFLAGS@ -IMPORT_LIBS = @IMPORT_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -ITSTOOL = @ITSTOOL@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAJOR_VERSION = @MAJOR_VERSION@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MICRO_VERSION = @MICRO_VERSION@ -MINOR_VERSION = @MINOR_VERSION@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -PLUGIN_CFLAGS = @PLUGIN_CFLAGS@ -PLUGIN_LIBS = @PLUGIN_LIBS@ -POSUB = @POSUB@ -PUBLISHER_VALAFLAGS = @PUBLISHER_VALAFLAGS@ -PUBLISHING_CFLAGS = @PUBLISHING_CFLAGS@ -PUBLISHING_LIBS = @PUBLISHING_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SHOTWELL_CFLAGS = @SHOTWELL_CFLAGS@ -SHOTWELL_LIBS = @SHOTWELL_LIBS@ -STRIP = @STRIP@ -THUMBNAILER_CFLAGS = @THUMBNAILER_CFLAGS@ -THUMBNAILER_LIBS = @THUMBNAILER_LIBS@ -TRANSITIONS_CFLAGS = @TRANSITIONS_CFLAGS@ -TRANSITIONS_LIBS = @TRANSITIONS_LIBS@ -UNITY_CFLAGS = @UNITY_CFLAGS@ -UNITY_LIBS = @UNITY_LIBS@ -UNITY_VALAFLAGS = @UNITY_VALAFLAGS@ -USE_NLS = @USE_NLS@ -VALAC = @VALAC@ -VALAFLAGS = @VALAFLAGS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMLLINT = @XMLLINT@ -YELP_LC_DIST = @YELP_LC_DIST@ -YELP_LC_MEDIA_LINKS = @YELP_LC_MEDIA_LINKS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -appstreamxmldir = @appstreamxmldir@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -gsettingsschemadir = @gsettingsschemadir@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -runstatedir = @runstatedir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -iconthemedir = $(datadir)/icons/hicolor -appicon16dir = $(iconthemedir)/16x16/apps -appicon22dir = $(iconthemedir)/22x22/apps -appicon24dir = $(iconthemedir)/24x24/apps -appicon32dir = $(iconthemedir)/32x32/apps -appicon48dir = $(iconthemedir)/48x48/apps -appicon256dir = $(iconthemedir)/256x256/apps -appiconscalabledir = $(iconthemedir)/scalable/apps -appiconsymbolicdir = $(iconthemedir)/symbolic/apps -dist_appicon16_DATA = \ - 16x16/apps/shotwell.png - -dist_appicon22_DATA = \ - 22x22/apps/shotwell.png - -dist_appicon24_DATA = \ - 24x24/apps/shotwell.png - -dist_appicon32_DATA = \ - 32x32/apps/shotwell.png - -dist_appicon48_DATA = \ - 48x48/apps/shotwell.png - -dist_appicon256_DATA = \ - 256x256/apps/shotwell.png - -dist_appiconsymbolic_DATA = \ - symbolic/apps/shotwell-symbolic.svg - -UPDATE_ICON_CACHE = gtk-update-icon-cache --ignore-theme-index --force -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign app-icons/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign app-icons/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-dist_appicon16DATA: $(dist_appicon16_DATA) - @$(NORMAL_INSTALL) - @list='$(dist_appicon16_DATA)'; test -n "$(appicon16dir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(appicon16dir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(appicon16dir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appicon16dir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(appicon16dir)" || exit $$?; \ - done - -uninstall-dist_appicon16DATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_appicon16_DATA)'; test -n "$(appicon16dir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(appicon16dir)'; $(am__uninstall_files_from_dir) -install-dist_appicon22DATA: $(dist_appicon22_DATA) - @$(NORMAL_INSTALL) - @list='$(dist_appicon22_DATA)'; test -n "$(appicon22dir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(appicon22dir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(appicon22dir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appicon22dir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(appicon22dir)" || exit $$?; \ - done - -uninstall-dist_appicon22DATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_appicon22_DATA)'; test -n "$(appicon22dir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(appicon22dir)'; $(am__uninstall_files_from_dir) -install-dist_appicon24DATA: $(dist_appicon24_DATA) - @$(NORMAL_INSTALL) - @list='$(dist_appicon24_DATA)'; test -n "$(appicon24dir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(appicon24dir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(appicon24dir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appicon24dir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(appicon24dir)" || exit $$?; \ - done - -uninstall-dist_appicon24DATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_appicon24_DATA)'; test -n "$(appicon24dir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(appicon24dir)'; $(am__uninstall_files_from_dir) -install-dist_appicon256DATA: $(dist_appicon256_DATA) - @$(NORMAL_INSTALL) - @list='$(dist_appicon256_DATA)'; test -n "$(appicon256dir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(appicon256dir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(appicon256dir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appicon256dir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(appicon256dir)" || exit $$?; \ - done - -uninstall-dist_appicon256DATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_appicon256_DATA)'; test -n "$(appicon256dir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(appicon256dir)'; $(am__uninstall_files_from_dir) -install-dist_appicon32DATA: $(dist_appicon32_DATA) - @$(NORMAL_INSTALL) - @list='$(dist_appicon32_DATA)'; test -n "$(appicon32dir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(appicon32dir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(appicon32dir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appicon32dir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(appicon32dir)" || exit $$?; \ - done - -uninstall-dist_appicon32DATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_appicon32_DATA)'; test -n "$(appicon32dir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(appicon32dir)'; $(am__uninstall_files_from_dir) -install-dist_appicon48DATA: $(dist_appicon48_DATA) - @$(NORMAL_INSTALL) - @list='$(dist_appicon48_DATA)'; test -n "$(appicon48dir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(appicon48dir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(appicon48dir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appicon48dir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(appicon48dir)" || exit $$?; \ - done - -uninstall-dist_appicon48DATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_appicon48_DATA)'; test -n "$(appicon48dir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(appicon48dir)'; $(am__uninstall_files_from_dir) -install-dist_appiconsymbolicDATA: $(dist_appiconsymbolic_DATA) - @$(NORMAL_INSTALL) - @list='$(dist_appiconsymbolic_DATA)'; test -n "$(appiconsymbolicdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(appiconsymbolicdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(appiconsymbolicdir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appiconsymbolicdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(appiconsymbolicdir)" || exit $$?; \ - done - -uninstall-dist_appiconsymbolicDATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_appiconsymbolic_DATA)'; test -n "$(appiconsymbolicdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(appiconsymbolicdir)'; $(am__uninstall_files_from_dir) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(DATA) -installdirs: - for dir in "$(DESTDIR)$(appicon16dir)" "$(DESTDIR)$(appicon22dir)" "$(DESTDIR)$(appicon24dir)" "$(DESTDIR)$(appicon256dir)" "$(DESTDIR)$(appicon32dir)" "$(DESTDIR)$(appicon48dir)" "$(DESTDIR)$(appiconsymbolicdir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-dist_appicon16DATA install-dist_appicon22DATA \ - install-dist_appicon24DATA install-dist_appicon256DATA \ - install-dist_appicon32DATA install-dist_appicon48DATA \ - install-dist_appiconsymbolicDATA - @$(NORMAL_INSTALL) - $(MAKE) $(AM_MAKEFLAGS) install-data-hook -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-dist_appicon16DATA \ - uninstall-dist_appicon22DATA uninstall-dist_appicon24DATA \ - uninstall-dist_appicon256DATA uninstall-dist_appicon32DATA \ - uninstall-dist_appicon48DATA \ - uninstall-dist_appiconsymbolicDATA - @$(NORMAL_INSTALL) - $(MAKE) $(AM_MAKEFLAGS) uninstall-hook -.MAKE: install-am install-data-am install-strip uninstall-am - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am \ - install-data-hook install-dist_appicon16DATA \ - install-dist_appicon22DATA install-dist_appicon24DATA \ - install-dist_appicon256DATA install-dist_appicon32DATA \ - install-dist_appicon48DATA install-dist_appiconsymbolicDATA \ - install-dvi install-dvi-am install-exec install-exec-am \ - install-html install-html-am install-info install-info-am \ - install-man install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am \ - uninstall-dist_appicon16DATA uninstall-dist_appicon22DATA \ - uninstall-dist_appicon24DATA uninstall-dist_appicon256DATA \ - uninstall-dist_appicon32DATA uninstall-dist_appicon48DATA \ - uninstall-dist_appiconsymbolicDATA uninstall-hook - -.PRECIOUS: Makefile - - -install-data-hook: install-update-icon-cache -uninstall-hook: uninstall-update-icon-cache - -install-update-icon-cache: - $(AM_V_at)$(POST_INSTALL) - test -n "$(DESTDIR)" || $(UPDATE_ICON_CACHE) "$(iconthemedir)" - -uninstall-update-icon-cache: - $(AM_V_at)$(POST_UNINSTALL) - test -n "$(DESTDIR)" || $(UPDATE_ICON_CACHE) "$(iconthemedir)" - --include $(top_srcdir)/git.mk - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/app-icons/shotwell-source.svg b/app-icons/shotwell-source.svg new file mode 100644 index 0000000..814835d --- /dev/null +++ b/app-icons/shotwell-source.svg @@ -0,0 +1,5248 @@ + + + + + Shotwell + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + Jakub Steiner + + + http://jimmac.musichall.cz + + Shotwell + + + shotwell + photo + management + darkroom + + + + + + + + + + + + + + + + + + + + + Lapo Calamandrei + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apport/Makefile.am b/apport/Makefile.am deleted file mode 100644 index 2d38c50..0000000 --- a/apport/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -apportdir = $(datadir)/apport/package-hooks -apport_DATA = shotwell.py diff --git a/apport/Makefile.in b/apport/Makefile.in deleted file mode 100644 index 54cdda8..0000000 --- a/apport/Makefile.in +++ /dev/null @@ -1,564 +0,0 @@ -# Makefile.in generated by automake 1.15.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2017 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -am__is_gnu_make = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = apport -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/appstream-xml.m4 \ - $(top_srcdir)/m4/ax_generate_changelog.m4 \ - $(top_srcdir)/m4/ax_is_release.m4 \ - $(top_srcdir)/m4/ax_require_defined.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gsettings.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/yelp.m4 $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -SOURCES = -DIST_SOURCES = -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -am__installdirs = "$(DESTDIR)$(apportdir)" -DATA = $(apport_DATA) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -API_VERSION = @API_VERSION@ -APPSTREAM_UTIL = @APPSTREAM_UTIL@ -AR = @AR@ -AUTHENTICATOR_CFLAGS = @AUTHENTICATOR_CFLAGS@ -AUTHENTICATOR_LIBS = @AUTHENTICATOR_LIBS@ -AUTHENTICATOR_PACKAGES = @AUTHENTICATOR_PACKAGES@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GIT = @GIT@ -GITVER = @GITVER@ -GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -HAVE_EXTRA_PLUGINS = @HAVE_EXTRA_PLUGINS@ -HAVE_UNITY = @HAVE_UNITY@ -HELP_DIR = @HELP_DIR@ -IMPORT_CFLAGS = @IMPORT_CFLAGS@ -IMPORT_LIBS = @IMPORT_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -ITSTOOL = @ITSTOOL@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAJOR_VERSION = @MAJOR_VERSION@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MICRO_VERSION = @MICRO_VERSION@ -MINOR_VERSION = @MINOR_VERSION@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -PLUGIN_CFLAGS = @PLUGIN_CFLAGS@ -PLUGIN_LIBS = @PLUGIN_LIBS@ -POSUB = @POSUB@ -PUBLISHER_VALAFLAGS = @PUBLISHER_VALAFLAGS@ -PUBLISHING_CFLAGS = @PUBLISHING_CFLAGS@ -PUBLISHING_LIBS = @PUBLISHING_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SHOTWELL_CFLAGS = @SHOTWELL_CFLAGS@ -SHOTWELL_LIBS = @SHOTWELL_LIBS@ -STRIP = @STRIP@ -THUMBNAILER_CFLAGS = @THUMBNAILER_CFLAGS@ -THUMBNAILER_LIBS = @THUMBNAILER_LIBS@ -TRANSITIONS_CFLAGS = @TRANSITIONS_CFLAGS@ -TRANSITIONS_LIBS = @TRANSITIONS_LIBS@ -UNITY_CFLAGS = @UNITY_CFLAGS@ -UNITY_LIBS = @UNITY_LIBS@ -UNITY_VALAFLAGS = @UNITY_VALAFLAGS@ -USE_NLS = @USE_NLS@ -VALAC = @VALAC@ -VALAFLAGS = @VALAFLAGS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMLLINT = @XMLLINT@ -YELP_LC_DIST = @YELP_LC_DIST@ -YELP_LC_MEDIA_LINKS = @YELP_LC_MEDIA_LINKS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -appstreamxmldir = @appstreamxmldir@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -gsettingsschemadir = @gsettingsschemadir@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -runstatedir = @runstatedir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -apportdir = $(datadir)/apport/package-hooks -apport_DATA = shotwell.py -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign apport/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign apport/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-apportDATA: $(apport_DATA) - @$(NORMAL_INSTALL) - @list='$(apport_DATA)'; test -n "$(apportdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(apportdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(apportdir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(apportdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(apportdir)" || exit $$?; \ - done - -uninstall-apportDATA: - @$(NORMAL_UNINSTALL) - @list='$(apport_DATA)'; test -n "$(apportdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(apportdir)'; $(am__uninstall_files_from_dir) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(DATA) -installdirs: - for dir in "$(DESTDIR)$(apportdir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-apportDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-apportDATA - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-apportDATA install-data \ - install-data-am install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ - uninstall-am uninstall-apportDATA - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/apport/git.mk b/apport/git.mk new file mode 100644 index 0000000..facca55 --- /dev/null +++ b/apport/git.mk @@ -0,0 +1,359 @@ +# git.mk, a small Makefile to autogenerate .gitignore files +# for autotools-based projects. +# +# Copyright 2009, Red Hat, Inc. +# Copyright 2010,2011,2012,2013 Behdad Esfahbod +# Written by Behdad Esfahbod +# +# Copying and distribution of this file, with or without modification, +# is permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. +# +# The latest version of this file can be downloaded from: +GIT_MK_URL = https://raw.githubusercontent.com/behdad/git.mk/master/git.mk +# +# Bugs, etc, should be reported upstream at: +# https://github.com/behdad/git.mk +# +# To use in your project, import this file in your git repo's toplevel, +# then do "make -f git.mk". This modifies all Makefile.am files in +# your project to -include git.mk. Remember to add that line to new +# Makefile.am files you create in your project, or just rerun the +# "make -f git.mk". +# +# This enables automatic .gitignore generation. If you need to ignore +# more files, add them to the GITIGNOREFILES variable in your Makefile.am. +# But think twice before doing that. If a file has to be in .gitignore, +# chances are very high that it's a generated file and should be in one +# of MOSTLYCLEANFILES, CLEANFILES, DISTCLEANFILES, or MAINTAINERCLEANFILES. +# +# The only case that you need to manually add a file to GITIGNOREFILES is +# when remove files in one of mostlyclean-local, clean-local, distclean-local, +# or maintainer-clean-local make targets. +# +# Note that for files like editor backup, etc, there are better places to +# ignore them. See "man gitignore". +# +# If "make maintainer-clean" removes the files but they are not recognized +# by this script (that is, if "git status" shows untracked files still), send +# me the output of "git status" as well as your Makefile.am and Makefile for +# the directories involved and I'll diagnose. +# +# For a list of toplevel files that should be in MAINTAINERCLEANFILES, see +# Makefile.am.sample in the git.mk git repo. +# +# Don't EXTRA_DIST this file. It is supposed to only live in git clones, +# not tarballs. It serves no useful purpose in tarballs and clutters the +# build dir. +# +# This file knows how to handle autoconf, automake, libtool, gtk-doc, +# gnome-doc-utils, yelp.m4, mallard, intltool, gsettings, dejagnu, appdata, +# appstream, hotdoc. +# +# This makefile provides the following targets: +# +# - all: "make all" will build all gitignore files. +# - gitignore: makes all gitignore files in the current dir and subdirs. +# - .gitignore: make gitignore file for the current dir. +# - gitignore-recurse: makes all gitignore files in the subdirs. +# +# KNOWN ISSUES: +# +# - Recursive configure doesn't work as $(top_srcdir)/git.mk inside the +# submodule doesn't find us. If you have configure.{in,ac} files in +# subdirs, add a proxy git.mk file in those dirs that simply does: +# "include $(top_srcdir)/../git.mk". Add more ..'s to your taste. +# And add those files to git. See vte/gnome-pty-helper/git.mk for +# example. +# + + + +############################################################################### +# Variables user modules may want to add to toplevel MAINTAINERCLEANFILES: +############################################################################### + +# +# Most autotools-using modules should be fine including this variable in their +# toplevel MAINTAINERCLEANFILES: +GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL = \ + $(srcdir)/aclocal.m4 \ + $(srcdir)/autoscan.log \ + $(srcdir)/configure.scan \ + `AUX_DIR=$(srcdir)/$$(cd $(top_srcdir); $(AUTOCONF) --trace 'AC_CONFIG_AUX_DIR:$$1' ./configure.ac); \ + test "x$$AUX_DIR" = "x$(srcdir)/" && AUX_DIR=$(srcdir); \ + for x in \ + ar-lib \ + compile \ + config.guess \ + config.rpath \ + config.sub \ + depcomp \ + install-sh \ + ltmain.sh \ + missing \ + mkinstalldirs \ + test-driver \ + ylwrap \ + ; do echo "$$AUX_DIR/$$x"; done` \ + `cd $(top_srcdir); $(AUTOCONF) --trace 'AC_CONFIG_HEADERS:$$1' ./configure.ac | \ + head -n 1 | while read f; do echo "$(srcdir)/$$f.in"; done` +# +# All modules should also be fine including the following variable, which +# removes automake-generated Makefile.in files: +GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN = \ + `cd $(top_srcdir); $(AUTOCONF) --trace 'AC_CONFIG_FILES:$$1' ./configure.ac | \ + while read f; do \ + case $$f in Makefile|*/Makefile) \ + test -f "$(srcdir)/$$f.am" && echo "$(srcdir)/$$f.in";; esac; \ + done` +# +# Modules that use libtool and use AC_CONFIG_MACRO_DIR() may also include this, +# though it's harmless to include regardless. +GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL = \ + `MACRO_DIR=$(srcdir)/$$(cd $(top_srcdir); $(AUTOCONF) --trace 'AC_CONFIG_MACRO_DIR:$$1' ./configure.ac); \ + if test "x$$MACRO_DIR" != "x$(srcdir)/"; then \ + for x in \ + libtool.m4 \ + ltoptions.m4 \ + ltsugar.m4 \ + ltversion.m4 \ + lt~obsolete.m4 \ + ; do echo "$$MACRO_DIR/$$x"; done; \ + fi` + + + +############################################################################### +# Default rule is to install ourselves in all Makefile.am files: +############################################################################### + +git-all: git-mk-install + +git-mk-install: + @echo "Installing git makefile" + @any_failed=; \ + find "`test -z "$(top_srcdir)" && echo . || echo "$(top_srcdir)"`" -name Makefile.am | while read x; do \ + if grep 'include .*/git.mk' $$x >/dev/null; then \ + echo "$$x already includes git.mk"; \ + else \ + failed=; \ + echo "Updating $$x"; \ + { cat $$x; \ + echo ''; \ + echo '-include $$(top_srcdir)/git.mk'; \ + } > $$x.tmp || failed=1; \ + if test x$$failed = x; then \ + mv $$x.tmp $$x || failed=1; \ + fi; \ + if test x$$failed = x; then : else \ + echo "Failed updating $$x"; >&2 \ + any_failed=1; \ + fi; \ + fi; done; test -z "$$any_failed" + +git-mk-update: + wget $(GIT_MK_URL) -O $(top_srcdir)/git.mk + +.PHONY: git-all git-mk-install git-mk-update + + + +############################################################################### +# Actual .gitignore generation: +############################################################################### + +$(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk + @echo "git.mk: Generating $@" + @{ \ + if test "x$(DOC_MODULE)" = x -o "x$(DOC_MAIN_SGML_FILE)" = x; then :; else \ + for x in \ + $(DOC_MODULE)-decl-list.txt \ + $(DOC_MODULE)-decl.txt \ + tmpl/$(DOC_MODULE)-unused.sgml \ + "tmpl/*.bak" \ + $(REPORT_FILES) \ + $(DOC_MODULE).pdf \ + xml html \ + ; do echo "/$$x"; done; \ + FLAVOR=$$(cd $(top_srcdir); $(AUTOCONF) --trace 'GTK_DOC_CHECK:$$2' ./configure.ac); \ + case $$FLAVOR in *no-tmpl*) echo /tmpl;; esac; \ + if echo "$(SCAN_OPTIONS)" | grep -q "\-\-rebuild-types"; then \ + echo "/$(DOC_MODULE).types"; \ + fi; \ + if echo "$(SCAN_OPTIONS)" | grep -q "\-\-rebuild-sections"; then \ + echo "/$(DOC_MODULE)-sections.txt"; \ + fi; \ + if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ + for x in \ + $(SETUP_FILES) \ + $(DOC_MODULE).types \ + ; do echo "/$$x"; done; \ + fi; \ + fi; \ + if test "x$(DOC_MODULE)$(DOC_ID)" = x -o "x$(DOC_LINGUAS)" = x; then :; else \ + for lc in $(DOC_LINGUAS); do \ + for x in \ + $(if $(DOC_MODULE),$(DOC_MODULE).xml) \ + $(DOC_PAGES) \ + $(DOC_INCLUDES) \ + ; do echo "/$$lc/$$x"; done; \ + done; \ + for x in \ + $(_DOC_OMF_ALL) \ + $(_DOC_DSK_ALL) \ + $(_DOC_HTML_ALL) \ + $(_DOC_MOFILES) \ + $(DOC_H_FILE) \ + "*/.xml2po.mo" \ + "*/*.omf.out" \ + ; do echo /$$x; done; \ + fi; \ + if test "x$(HOTDOC)" = x; then :; else \ + $(foreach project, $(HOTDOC_PROJECTS),echo "/$(call HOTDOC_TARGET,$(project))"; \ + echo "/$(shell $(call HOTDOC_PROJECT_COMMAND,$(project)) --get-conf-path output)" ; \ + echo "/$(shell $(call HOTDOC_PROJECT_COMMAND,$(project)) --get-private-folder)" ; \ + ) \ + for x in \ + .hotdoc.d \ + ; do echo "/$$x"; done; \ + fi; \ + if test "x$(HELP_ID)" = x -o "x$(HELP_LINGUAS)" = x; then :; else \ + for lc in $(HELP_LINGUAS); do \ + for x in \ + $(HELP_FILES) \ + "$$lc.stamp" \ + "$$lc.mo" \ + ; do echo "/$$lc/$$x"; done; \ + done; \ + fi; \ + if test "x$(gsettings_SCHEMAS)" = x; then :; else \ + for x in \ + $(gsettings_SCHEMAS:.xml=.valid) \ + $(gsettings__enum_file) \ + ; do echo "/$$x"; done; \ + fi; \ + if test "x$(appdata_XML)" = x; then :; else \ + for x in \ + $(appdata_XML:.xml=.valid) \ + ; do echo "/$$x"; done; \ + fi; \ + if test "x$(appstream_XML)" = x; then :; else \ + for x in \ + $(appstream_XML:.xml=.valid) \ + ; do echo "/$$x"; done; \ + fi; \ + if test -f $(srcdir)/po/Makefile.in.in; then \ + for x in \ + ABOUT-NLS \ + po/Makefile.in.in \ + po/Makefile.in.in~ \ + po/Makefile.in \ + po/Makefile \ + po/Makevars.template \ + po/POTFILES \ + po/Rules-quot \ + po/stamp-it \ + po/stamp-po \ + po/.intltool-merge-cache \ + "po/*.gmo" \ + "po/*.header" \ + "po/*.mo" \ + "po/*.sed" \ + "po/*.sin" \ + po/$(GETTEXT_PACKAGE).pot \ + intltool-extract.in \ + intltool-merge.in \ + intltool-update.in \ + ; do echo "/$$x"; done; \ + fi; \ + if test -f $(srcdir)/configure; then \ + for x in \ + autom4te.cache \ + configure \ + config.h \ + stamp-h1 \ + libtool \ + config.lt \ + ; do echo "/$$x"; done; \ + fi; \ + if test "x$(DEJATOOL)" = x; then :; else \ + for x in \ + $(DEJATOOL) \ + ; do echo "/$$x.sum"; echo "/$$x.log"; done; \ + echo /site.exp; \ + fi; \ + if test "x$(am__dirstamp)" = x; then :; else \ + echo "$(am__dirstamp)"; \ + fi; \ + if test "x$(findstring libtool,$(LTCOMPILE))" = x -a "x$(findstring libtool,$(LTCXXCOMPILE))" = x -a "x$(GTKDOC_RUN)" = x; then :; else \ + for x in \ + "*.lo" \ + ".libs" "_libs" \ + ; do echo "$$x"; done; \ + fi; \ + for x in \ + .gitignore \ + $(GITIGNOREFILES) \ + $(CLEANFILES) \ + $(PROGRAMS) $(check_PROGRAMS) $(EXTRA_PROGRAMS) \ + $(LIBRARIES) $(check_LIBRARIES) $(EXTRA_LIBRARIES) \ + $(LTLIBRARIES) $(check_LTLIBRARIES) $(EXTRA_LTLIBRARIES) \ + so_locations \ + $(MOSTLYCLEANFILES) \ + $(TEST_LOGS) \ + $(TEST_LOGS:.log=.trs) \ + $(TEST_SUITE_LOG) \ + $(TESTS:=.test) \ + "*.gcda" \ + "*.gcno" \ + $(DISTCLEANFILES) \ + $(am__CONFIG_DISTCLEAN_FILES) \ + $(CONFIG_CLEAN_FILES) \ + TAGS ID GTAGS GRTAGS GSYMS GPATH tags \ + "*.tab.c" \ + $(MAINTAINERCLEANFILES) \ + $(BUILT_SOURCES) \ + $(patsubst %.vala,%.c,$(filter %.vala,$(SOURCES))) \ + $(filter %_vala.stamp,$(DIST_COMMON)) \ + $(filter %.vapi,$(DIST_COMMON)) \ + $(filter $(addprefix %,$(notdir $(patsubst %.vapi,%.h,$(filter %.vapi,$(DIST_COMMON))))),$(DIST_COMMON)) \ + Makefile \ + Makefile.in \ + "*.orig" \ + "*.rej" \ + "*.bak" \ + "*~" \ + ".*.sw[nop]" \ + ".dirstamp" \ + ; do echo "/$$x"; done; \ + for x in \ + "*.$(OBJEXT)" \ + $(DEPDIR) \ + ; do echo "$$x"; done; \ + } | \ + sed "s@^/`echo "$(srcdir)" | sed 's/\(.\)/[\1]/g'`/@/@" | \ + sed 's@/[.]/@/@g' | \ + LC_ALL=C sort | uniq > $@.tmp && \ + mv $@.tmp $@; + +all: $(srcdir)/.gitignore gitignore-recurse-maybe +gitignore: $(srcdir)/.gitignore gitignore-recurse + +gitignore-recurse-maybe: + @for subdir in $(DIST_SUBDIRS); do \ + case " $(SUBDIRS) " in \ + *" $$subdir "*) :;; \ + *) test "$$subdir" = . -o -e "$$subdir/.git" || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) gitignore || echo "Skipping $$subdir");; \ + esac; \ + done +gitignore-recurse: + @for subdir in $(DIST_SUBDIRS); do \ + test "$$subdir" = . -o -e "$$subdir/.git" || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) gitignore || echo "Skipping $$subdir"); \ + done + +maintainer-clean: gitignore-clean +gitignore-clean: + -rm -f $(srcdir)/.gitignore + +.PHONY: gitignore-clean gitignore gitignore-recurse gitignore-recurse-maybe diff --git a/authenticator.am b/authenticator.am deleted file mode 100644 index 2de83ed..0000000 --- a/authenticator.am +++ /dev/null @@ -1,60 +0,0 @@ -lib_LTLIBRARIES += plugins/authenticator/libshotwell-authenticator.la - -dist_noinst_DATA += \ - plugins/authenticator/shotwell/tumblr_authentication_pane.ui \ - plugins/authenticator/shotwell/org.gnome.Shotwell.Authenticator.gresource.xml \ - plugins/authenticator/shotwell-authenticator.h - -plugins/authenticator/shotwell-authenticator.vapi plugins/authenticator/shotwell-authenticator.h: \ - plugins_authenticator_libshotwell_authenticator_la_vala.stamp - -plugins_authenticator_libshotwell_authenticator_la_SOURCES = \ - plugins/shotwell-plugin-common.vapi \ - plugins/shotwell-plugin-dev-1.0.vapi - -plugins_authenticator_libshotwell_authenticator_la_VALAFLAGS = \ - $(COMMON_VALAFLAGS) \ - --library shotwell-authenticator \ - --vapi=plugins/authenticator/shotwell-authenticator.vapi \ - --header=plugins/authenticator/shotwell-authenticator.h \ - $(AUTHENTICATOR_PACKAGES) \ - --vapidir $(abs_top_srcdir)/plugins - -plugins_authenticator_libshotwell_authenticator_la_LIBADD = \ - $(AUTHENTICATOR_LIBS) \ - $(top_builddir)/plugins/common/libshotwell-plugin-common.la - -plugins_authenticator_libshotwell_authenticator_la_CFLAGS = \ - $(COMMON_CFLAGS) \ - $(AUTHENTICATOR_CFLAGS) \ - -I $(top_srcdir)/plugins \ - -DPLUGIN_RESOURCE_PATH='"/org/gnome/Shotwell/Authenticator"' - -## Resource handling - -nodist_plugins_authenticator_libshotwell_authenticator_la_SOURCES = \ - plugins/authenticator/resource.c -MOSTLYCLEANFILES += plugins/authenticator/resource.c - -AUTHENTICATOR_RESOURCE_DEPS = $(shell $(GLIB_COMPILE_RESOURCES) \ - --sourcedir=$(AUTHENTICATOR_RESOURCE_SOURCEDIR) \ - --generate-dependencies $(AUTHENTICATOR_RESOURCE_FILE)) - -plugins/authenticator/resource.c: $(AUTHENTICATOR_RESOURCE_DEPS) $(AUTHENTICATOR_RESOURCE_FILE) - $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) \ - --target=$@ \ - --sourcedir=$(AUTHENTICATOR_RESOURCE_SOURCEDIR) \ - --generate $(AUTHENTICATOR_RESOURCE_FILE) - -if AUTHENTICATOR_SHOTWELL -AUTHENTICATOR_RESOURCE_FILE := $(abs_top_srcdir)/plugins/authenticator/shotwell/org.gnome.Shotwell.Authenticator.gresource.xml -AUTHENTICATOR_RESOURCE_SOURCEDIR := $(abs_top_srcdir)/plugins/authenticator/shotwell - -plugins_authenticator_libshotwell_authenticator_la_SOURCES += \ - plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala \ - plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala \ - plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala \ - plugins/authenticator/shotwell/GoogleAuthenticator.vala \ - plugins/authenticator/shotwell/OAuth1Authenticator.vala \ - plugins/authenticator/shotwell/TumblrAuthenticator.vala -endif diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index 988d5bc..0000000 --- a/autogen.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -# Run this to generate all the initial makefiles, etc. -test -n "$srcdir" || srcdir=$(dirname "$0") -test -n "$srcdir" || srcdir=. - -olddir=$(pwd) - -cd $srcdir - -(test -f configure.ac) || { - echo "*** ERROR: Directory '$srcdir' does not look like the top-level project directory ***" - exit 1 -} - -# shellcheck disable=SC2016 -PKG_NAME=$(autoconf --trace 'AC_INIT:$1' configure.ac) - -if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then - echo "*** WARNING: I am going to run 'configure' with no arguments." >&2 - echo "*** If you wish to pass any to it, please specify them on the" >&2 - echo "*** '$0' command line." >&2 - echo "" >&2 -fi - -autoreconf --verbose --force --install || exit 1 - -cd "$olddir" -if [ "$NOCONFIGURE" = "" ]; then - $srcdir/configure "$@" || exit 1 - - if [ "$1" = "--help" ]; then exit 0 else - echo "Now type 'make' to compile $PKG_NAME" || exit 1 - fi -else - echo "Skipping configure process." -fi diff --git a/build-aux/compile b/build-aux/compile deleted file mode 100755 index a85b723..0000000 --- a/build-aux/compile +++ /dev/null @@ -1,347 +0,0 @@ -#! /bin/sh -# Wrapper for compilers which do not understand '-c -o'. - -scriptversion=2012-10-14.11; # UTC - -# Copyright (C) 1999-2014 Free Software Foundation, Inc. -# Written by Tom Tromey . -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# This file is maintained in Automake, please report -# bugs to or send patches to -# . - -nl=' -' - -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent tools from complaining about whitespace usage. -IFS=" "" $nl" - -file_conv= - -# func_file_conv build_file lazy -# Convert a $build file to $host form and store it in $file -# Currently only supports Windows hosts. If the determined conversion -# type is listed in (the comma separated) LAZY, no conversion will -# take place. -func_file_conv () -{ - file=$1 - case $file in - / | /[!/]*) # absolute file, and not a UNC file - if test -z "$file_conv"; then - # lazily determine how to convert abs files - case `uname -s` in - MINGW*) - file_conv=mingw - ;; - CYGWIN*) - file_conv=cygwin - ;; - *) - file_conv=wine - ;; - esac - fi - case $file_conv/,$2, in - *,$file_conv,*) - ;; - mingw/*) - file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` - ;; - cygwin/*) - file=`cygpath -m "$file" || echo "$file"` - ;; - wine/*) - file=`winepath -w "$file" || echo "$file"` - ;; - esac - ;; - esac -} - -# func_cl_dashL linkdir -# Make cl look for libraries in LINKDIR -func_cl_dashL () -{ - func_file_conv "$1" - if test -z "$lib_path"; then - lib_path=$file - else - lib_path="$lib_path;$file" - fi - linker_opts="$linker_opts -LIBPATH:$file" -} - -# func_cl_dashl library -# Do a library search-path lookup for cl -func_cl_dashl () -{ - lib=$1 - found=no - save_IFS=$IFS - IFS=';' - for dir in $lib_path $LIB - do - IFS=$save_IFS - if $shared && test -f "$dir/$lib.dll.lib"; then - found=yes - lib=$dir/$lib.dll.lib - break - fi - if test -f "$dir/$lib.lib"; then - found=yes - lib=$dir/$lib.lib - break - fi - if test -f "$dir/lib$lib.a"; then - found=yes - lib=$dir/lib$lib.a - break - fi - done - IFS=$save_IFS - - if test "$found" != yes; then - lib=$lib.lib - fi -} - -# func_cl_wrapper cl arg... -# Adjust compile command to suit cl -func_cl_wrapper () -{ - # Assume a capable shell - lib_path= - shared=: - linker_opts= - for arg - do - if test -n "$eat"; then - eat= - else - case $1 in - -o) - # configure might choose to run compile as 'compile cc -o foo foo.c'. - eat=1 - case $2 in - *.o | *.[oO][bB][jJ]) - func_file_conv "$2" - set x "$@" -Fo"$file" - shift - ;; - *) - func_file_conv "$2" - set x "$@" -Fe"$file" - shift - ;; - esac - ;; - -I) - eat=1 - func_file_conv "$2" mingw - set x "$@" -I"$file" - shift - ;; - -I*) - func_file_conv "${1#-I}" mingw - set x "$@" -I"$file" - shift - ;; - -l) - eat=1 - func_cl_dashl "$2" - set x "$@" "$lib" - shift - ;; - -l*) - func_cl_dashl "${1#-l}" - set x "$@" "$lib" - shift - ;; - -L) - eat=1 - func_cl_dashL "$2" - ;; - -L*) - func_cl_dashL "${1#-L}" - ;; - -static) - shared=false - ;; - -Wl,*) - arg=${1#-Wl,} - save_ifs="$IFS"; IFS=',' - for flag in $arg; do - IFS="$save_ifs" - linker_opts="$linker_opts $flag" - done - IFS="$save_ifs" - ;; - -Xlinker) - eat=1 - linker_opts="$linker_opts $2" - ;; - -*) - set x "$@" "$1" - shift - ;; - *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) - func_file_conv "$1" - set x "$@" -Tp"$file" - shift - ;; - *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) - func_file_conv "$1" mingw - set x "$@" "$file" - shift - ;; - *) - set x "$@" "$1" - shift - ;; - esac - fi - shift - done - if test -n "$linker_opts"; then - linker_opts="-link$linker_opts" - fi - exec "$@" $linker_opts - exit 1 -} - -eat= - -case $1 in - '') - echo "$0: No command. Try '$0 --help' for more information." 1>&2 - exit 1; - ;; - -h | --h*) - cat <<\EOF -Usage: compile [--help] [--version] PROGRAM [ARGS] - -Wrapper for compilers which do not understand '-c -o'. -Remove '-o dest.o' from ARGS, run PROGRAM with the remaining -arguments, and rename the output as expected. - -If you are trying to build a whole package this is not the -right script to run: please start by reading the file 'INSTALL'. - -Report bugs to . -EOF - exit $? - ;; - -v | --v*) - echo "compile $scriptversion" - exit $? - ;; - cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) - func_cl_wrapper "$@" # Doesn't return... - ;; -esac - -ofile= -cfile= - -for arg -do - if test -n "$eat"; then - eat= - else - case $1 in - -o) - # configure might choose to run compile as 'compile cc -o foo foo.c'. - # So we strip '-o arg' only if arg is an object. - eat=1 - case $2 in - *.o | *.obj) - ofile=$2 - ;; - *) - set x "$@" -o "$2" - shift - ;; - esac - ;; - *.c) - cfile=$1 - set x "$@" "$1" - shift - ;; - *) - set x "$@" "$1" - shift - ;; - esac - fi - shift -done - -if test -z "$ofile" || test -z "$cfile"; then - # If no '-o' option was seen then we might have been invoked from a - # pattern rule where we don't need one. That is ok -- this is a - # normal compilation that the losing compiler can handle. If no - # '.c' file was seen then we are probably linking. That is also - # ok. - exec "$@" -fi - -# Name of file we expect compiler to create. -cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` - -# Create the lock directory. -# Note: use '[/\\:.-]' here to ensure that we don't use the same name -# that we are using for the .o file. Also, base the name on the expected -# object file name, since that is what matters with a parallel build. -lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d -while true; do - if mkdir "$lockdir" >/dev/null 2>&1; then - break - fi - sleep 1 -done -# FIXME: race condition here if user kills between mkdir and trap. -trap "rmdir '$lockdir'; exit 1" 1 2 15 - -# Run the compile. -"$@" -ret=$? - -if test -f "$cofile"; then - test "$cofile" = "$ofile" || mv "$cofile" "$ofile" -elif test -f "${cofile}bj"; then - test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" -fi - -rmdir "$lockdir" -exit $ret - -# Local Variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff --git a/build-aux/config.guess b/build-aux/config.guess deleted file mode 100755 index f50dcdb..0000000 --- a/build-aux/config.guess +++ /dev/null @@ -1,1480 +0,0 @@ -#! /bin/sh -# Attempt to guess a canonical system name. -# Copyright 1992-2018 Free Software Foundation, Inc. - -timestamp='2018-02-24' - -# This file is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, see . -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that -# program. This Exception is an additional permission under section 7 -# of the GNU General Public License, version 3 ("GPLv3"). -# -# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. -# -# You can get the latest version of this script from: -# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess -# -# Please send patches to . - - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] - -Output the configuration name of the system \`$me' is run on. - -Options: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to ." - -version="\ -GNU config.guess ($timestamp) - -Originally written by Per Bothner. -Copyright 1992-2018 Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit ;; - --version | -v ) - echo "$version" ; exit ;; - --help | --h* | -h ) - echo "$usage"; exit ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" >&2 - exit 1 ;; - * ) - break ;; - esac -done - -if test $# != 0; then - echo "$me: too many arguments$help" >&2 - exit 1 -fi - -trap 'exit 1' 1 2 15 - -# CC_FOR_BUILD -- compiler used by this script. Note that the use of a -# compiler to aid in system detection is discouraged as it requires -# temporary files to be created and, as you can see below, it is a -# headache to deal with in a portable fashion. - -# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still -# use `HOST_CC' if defined, but it is deprecated. - -# Portable tmp directory creation inspired by the Autoconf team. - -set_cc_for_build=' -trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; -: ${TMPDIR=/tmp} ; - { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || - { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || - { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || - { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; -dummy=$tmp/dummy ; -tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; -case $CC_FOR_BUILD,$HOST_CC,$CC in - ,,) echo "int x;" > "$dummy.c" ; - for c in cc gcc c89 c99 ; do - if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then - CC_FOR_BUILD="$c"; break ; - fi ; - done ; - if test x"$CC_FOR_BUILD" = x ; then - CC_FOR_BUILD=no_compiler_found ; - fi - ;; - ,,*) CC_FOR_BUILD=$CC ;; - ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac ; set_cc_for_build= ;' - -# This is needed to find uname on a Pyramid OSx when run in the BSD universe. -# (ghazi@noc.rutgers.edu 1994-08-24) -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then - PATH=$PATH:/.attbin ; export PATH -fi - -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown - -case "$UNAME_SYSTEM" in -Linux|GNU|GNU/*) - # If the system lacks a compiler, then just pick glibc. - # We could probably try harder. - LIBC=gnu - - eval "$set_cc_for_build" - cat <<-EOF > "$dummy.c" - #include - #if defined(__UCLIBC__) - LIBC=uclibc - #elif defined(__dietlibc__) - LIBC=dietlibc - #else - LIBC=gnu - #endif - EOF - eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" - - # If ldd exists, use it to detect musl libc. - if command -v ldd >/dev/null && \ - ldd --version 2>&1 | grep -q ^musl - then - LIBC=musl - fi - ;; -esac - -# Note: order is significant - the case branches are not exclusive. - -case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in - *:NetBSD:*:*) - # NetBSD (nbsd) targets should (where applicable) match one or - # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, - # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently - # switched to ELF, *-*-netbsd* would select the old - # object file format. This provides both forward - # compatibility and a consistent mechanism for selecting the - # object file format. - # - # Note: NetBSD doesn't particularly care about the vendor - # portion of the name. We always set it to "unknown". - sysctl="sysctl -n hw.machine_arch" - UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ - "/sbin/$sysctl" 2>/dev/null || \ - "/usr/sbin/$sysctl" 2>/dev/null || \ - echo unknown)` - case "$UNAME_MACHINE_ARCH" in - armeb) machine=armeb-unknown ;; - arm*) machine=arm-unknown ;; - sh3el) machine=shl-unknown ;; - sh3eb) machine=sh-unknown ;; - sh5el) machine=sh5le-unknown ;; - earmv*) - arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` - endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` - machine="${arch}${endian}"-unknown - ;; - *) machine="$UNAME_MACHINE_ARCH"-unknown ;; - esac - # The Operating System including object format, if it has switched - # to ELF recently (or will in the future) and ABI. - case "$UNAME_MACHINE_ARCH" in - earm*) - os=netbsdelf - ;; - arm*|i386|m68k|ns32k|sh3*|sparc|vax) - eval "$set_cc_for_build" - if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ELF__ - then - # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). - # Return netbsd for either. FIX? - os=netbsd - else - os=netbsdelf - fi - ;; - *) - os=netbsd - ;; - esac - # Determine ABI tags. - case "$UNAME_MACHINE_ARCH" in - earm*) - expr='s/^earmv[0-9]/-eabi/;s/eb$//' - abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` - ;; - esac - # The OS release - # Debian GNU/NetBSD machines have a different userland, and - # thus, need a distinct triplet. However, they do not need - # kernel version information, so it can be replaced with a - # suitable tag, in the style of linux-gnu. - case "$UNAME_VERSION" in - Debian*) - release='-gnu' - ;; - *) - release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` - ;; - esac - # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: - # contains redundant information, the shorter form: - # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. - echo "$machine-${os}${release}${abi}" - exit ;; - *:Bitrig:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` - echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" - exit ;; - *:OpenBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` - echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" - exit ;; - *:LibertyBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` - echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" - exit ;; - *:MidnightBSD:*:*) - echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" - exit ;; - *:ekkoBSD:*:*) - echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" - exit ;; - *:SolidBSD:*:*) - echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" - exit ;; - macppc:MirBSD:*:*) - echo powerpc-unknown-mirbsd"$UNAME_RELEASE" - exit ;; - *:MirBSD:*:*) - echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" - exit ;; - *:Sortix:*:*) - echo "$UNAME_MACHINE"-unknown-sortix - exit ;; - *:Redox:*:*) - echo "$UNAME_MACHINE"-unknown-redox - exit ;; - mips:OSF1:*.*) - echo mips-dec-osf1 - exit ;; - alpha:OSF1:*:*) - case $UNAME_RELEASE in - *4.0) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` - ;; - *5.*) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` - ;; - esac - # According to Compaq, /usr/sbin/psrinfo has been available on - # OSF/1 and Tru64 systems produced since 1995. I hope that - # covers most systems running today. This code pipes the CPU - # types through head -n 1, so we only detect the type of CPU 0. - ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` - case "$ALPHA_CPU_TYPE" in - "EV4 (21064)") - UNAME_MACHINE=alpha ;; - "EV4.5 (21064)") - UNAME_MACHINE=alpha ;; - "LCA4 (21066/21068)") - UNAME_MACHINE=alpha ;; - "EV5 (21164)") - UNAME_MACHINE=alphaev5 ;; - "EV5.6 (21164A)") - UNAME_MACHINE=alphaev56 ;; - "EV5.6 (21164PC)") - UNAME_MACHINE=alphapca56 ;; - "EV5.7 (21164PC)") - UNAME_MACHINE=alphapca57 ;; - "EV6 (21264)") - UNAME_MACHINE=alphaev6 ;; - "EV6.7 (21264A)") - UNAME_MACHINE=alphaev67 ;; - "EV6.8CB (21264C)") - UNAME_MACHINE=alphaev68 ;; - "EV6.8AL (21264B)") - UNAME_MACHINE=alphaev68 ;; - "EV6.8CX (21264D)") - UNAME_MACHINE=alphaev68 ;; - "EV6.9A (21264/EV69A)") - UNAME_MACHINE=alphaev69 ;; - "EV7 (21364)") - UNAME_MACHINE=alphaev7 ;; - "EV7.9 (21364A)") - UNAME_MACHINE=alphaev79 ;; - esac - # A Pn.n version is a patched version. - # A Vn.n version is a released version. - # A Tn.n version is a released field test version. - # A Xn.n version is an unreleased experimental baselevel. - # 1.2 uses "1.2" for uname -r. - echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" - # Reset EXIT trap before exiting to avoid spurious non-zero exit code. - exitcode=$? - trap '' 0 - exit $exitcode ;; - Amiga*:UNIX_System_V:4.0:*) - echo m68k-unknown-sysv4 - exit ;; - *:[Aa]miga[Oo][Ss]:*:*) - echo "$UNAME_MACHINE"-unknown-amigaos - exit ;; - *:[Mm]orph[Oo][Ss]:*:*) - echo "$UNAME_MACHINE"-unknown-morphos - exit ;; - *:OS/390:*:*) - echo i370-ibm-openedition - exit ;; - *:z/VM:*:*) - echo s390-ibm-zvmoe - exit ;; - *:OS400:*:*) - echo powerpc-ibm-os400 - exit ;; - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix"$UNAME_RELEASE" - exit ;; - arm*:riscos:*:*|arm*:RISCOS:*:*) - echo arm-unknown-riscos - exit ;; - SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) - echo hppa1.1-hitachi-hiuxmpp - exit ;; - Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then - echo pyramid-pyramid-sysv3 - else - echo pyramid-pyramid-bsd - fi - exit ;; - NILE*:*:*:dcosx) - echo pyramid-pyramid-svr4 - exit ;; - DRS?6000:unix:4.0:6*) - echo sparc-icl-nx6 - exit ;; - DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) - case `/usr/bin/uname -p` in - sparc) echo sparc-icl-nx7; exit ;; - esac ;; - s390x:SunOS:*:*) - echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" - exit ;; - sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" - exit ;; - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" - exit ;; - i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) - echo i386-pc-auroraux"$UNAME_RELEASE" - exit ;; - i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) - eval "$set_cc_for_build" - SUN_ARCH=i386 - # If there is a compiler, see if it is configured for 64-bit objects. - # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. - # This test works for both compilers. - if [ "$CC_FOR_BUILD" != no_compiler_found ]; then - if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_64BIT_ARCH >/dev/null - then - SUN_ARCH=x86_64 - fi - fi - echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" - exit ;; - sun4*:SunOS:6*:*) - # According to config.sub, this is the proper way to canonicalize - # SunOS6. Hard to guess exactly what SunOS6 will be like, but - # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" - exit ;; - sun4*:SunOS:*:*) - case "`/usr/bin/arch -k`" in - Series*|S4*) - UNAME_RELEASE=`uname -v` - ;; - esac - # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" - exit ;; - sun3*:SunOS:*:*) - echo m68k-sun-sunos"$UNAME_RELEASE" - exit ;; - sun*:*:4.2BSD:*) - UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` - test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 - case "`/bin/arch`" in - sun3) - echo m68k-sun-sunos"$UNAME_RELEASE" - ;; - sun4) - echo sparc-sun-sunos"$UNAME_RELEASE" - ;; - esac - exit ;; - aushp:SunOS:*:*) - echo sparc-auspex-sunos"$UNAME_RELEASE" - exit ;; - # The situation for MiNT is a little confusing. The machine name - # can be virtually everything (everything which is not - # "atarist" or "atariste" at least should have a processor - # > m68000). The system name ranges from "MiNT" over "FreeMiNT" - # to the lowercase version "mint" (or "freemint"). Finally - # the system name "TOS" denotes a system which is actually not - # MiNT. But MiNT is downward compatible to TOS, so this should - # be no problem. - atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint"$UNAME_RELEASE" - exit ;; - atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint"$UNAME_RELEASE" - exit ;; - *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint"$UNAME_RELEASE" - exit ;; - milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint"$UNAME_RELEASE" - exit ;; - hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint"$UNAME_RELEASE" - exit ;; - *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint"$UNAME_RELEASE" - exit ;; - m68k:machten:*:*) - echo m68k-apple-machten"$UNAME_RELEASE" - exit ;; - powerpc:machten:*:*) - echo powerpc-apple-machten"$UNAME_RELEASE" - exit ;; - RISC*:Mach:*:*) - echo mips-dec-mach_bsd4.3 - exit ;; - RISC*:ULTRIX:*:*) - echo mips-dec-ultrix"$UNAME_RELEASE" - exit ;; - VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix"$UNAME_RELEASE" - exit ;; - 2020:CLIX:*:* | 2430:CLIX:*:*) - echo clipper-intergraph-clix"$UNAME_RELEASE" - exit ;; - mips:*:*:UMIPS | mips:*:*:RISCos) - eval "$set_cc_for_build" - sed 's/^ //' << EOF > "$dummy.c" -#ifdef __cplusplus -#include /* for printf() prototype */ - int main (int argc, char *argv[]) { -#else - int main (argc, argv) int argc; char *argv[]; { -#endif - #if defined (host_mips) && defined (MIPSEB) - #if defined (SYSTYPE_SYSV) - printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_SVR4) - printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) - printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); - #endif - #endif - exit (-1); - } -EOF - $CC_FOR_BUILD -o "$dummy" "$dummy.c" && - dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && - SYSTEM_NAME=`"$dummy" "$dummyarg"` && - { echo "$SYSTEM_NAME"; exit; } - echo mips-mips-riscos"$UNAME_RELEASE" - exit ;; - Motorola:PowerMAX_OS:*:*) - echo powerpc-motorola-powermax - exit ;; - Motorola:*:4.3:PL8-*) - echo powerpc-harris-powermax - exit ;; - Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) - echo powerpc-harris-powermax - exit ;; - Night_Hawk:Power_UNIX:*:*) - echo powerpc-harris-powerunix - exit ;; - m88k:CX/UX:7*:*) - echo m88k-harris-cxux7 - exit ;; - m88k:*:4*:R4*) - echo m88k-motorola-sysv4 - exit ;; - m88k:*:3*:R3*) - echo m88k-motorola-sysv3 - exit ;; - AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] - then - if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ - [ "$TARGET_BINARY_INTERFACE"x = x ] - then - echo m88k-dg-dgux"$UNAME_RELEASE" - else - echo m88k-dg-dguxbcs"$UNAME_RELEASE" - fi - else - echo i586-dg-dgux"$UNAME_RELEASE" - fi - exit ;; - M88*:DolphinOS:*:*) # DolphinOS (SVR3) - echo m88k-dolphin-sysv3 - exit ;; - M88*:*:R3*:*) - # Delta 88k system running SVR3 - echo m88k-motorola-sysv3 - exit ;; - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) - echo m88k-tektronix-sysv3 - exit ;; - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) - echo m68k-tektronix-bsd - exit ;; - *:IRIX*:*:*) - echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" - exit ;; - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' - i*86:AIX:*:*) - echo i386-ibm-aix - exit ;; - ia64:AIX:*:*) - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" - fi - echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" - exit ;; - *:AIX:2:3) - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - eval "$set_cc_for_build" - sed 's/^ //' << EOF > "$dummy.c" - #include - - main() - { - if (!__power_pc()) - exit(1); - puts("powerpc-ibm-aix3.2.5"); - exit(0); - } -EOF - if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` - then - echo "$SYSTEM_NAME" - else - echo rs6000-ibm-aix3.2.5 - fi - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then - echo rs6000-ibm-aix3.2.4 - else - echo rs6000-ibm-aix3.2 - fi - exit ;; - *:AIX:*:[4567]) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` - if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then - IBM_ARCH=rs6000 - else - IBM_ARCH=powerpc - fi - if [ -x /usr/bin/lslpp ] ; then - IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | - awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` - else - IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" - fi - echo "$IBM_ARCH"-ibm-aix"$IBM_REV" - exit ;; - *:AIX:*:*) - echo rs6000-ibm-aix - exit ;; - ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) - echo romp-ibm-bsd4.4 - exit ;; - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and - echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to - exit ;; # report: romp-ibm BSD 4.3 - *:BOSX:*:*) - echo rs6000-bull-bosx - exit ;; - DPX/2?00:B.O.S.:*:*) - echo m68k-bull-sysv3 - exit ;; - 9000/[34]??:4.3bsd:1.*:*) - echo m68k-hp-bsd - exit ;; - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) - echo m68k-hp-bsd4.4 - exit ;; - 9000/[34678]??:HP-UX:*:*) - HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` - case "$UNAME_MACHINE" in - 9000/31?) HP_ARCH=m68000 ;; - 9000/[34]??) HP_ARCH=m68k ;; - 9000/[678][0-9][0-9]) - if [ -x /usr/bin/getconf ]; then - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "$sc_cpu_version" in - 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 - 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 - 532) # CPU_PA_RISC2_0 - case "$sc_kernel_bits" in - 32) HP_ARCH=hppa2.0n ;; - 64) HP_ARCH=hppa2.0w ;; - '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 - esac ;; - esac - fi - if [ "$HP_ARCH" = "" ]; then - eval "$set_cc_for_build" - sed 's/^ //' << EOF > "$dummy.c" - - #define _HPUX_SOURCE - #include - #include - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } -EOF - (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` - test -z "$HP_ARCH" && HP_ARCH=hppa - fi ;; - esac - if [ "$HP_ARCH" = hppa2.0w ] - then - eval "$set_cc_for_build" - - # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating - # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler - # generating 64-bit code. GNU and HP use different nomenclature: - # - # $ CC_FOR_BUILD=cc ./config.guess - # => hppa2.0w-hp-hpux11.23 - # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess - # => hppa64-hp-hpux11.23 - - if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | - grep -q __LP64__ - then - HP_ARCH=hppa2.0w - else - HP_ARCH=hppa64 - fi - fi - echo "$HP_ARCH"-hp-hpux"$HPUX_REV" - exit ;; - ia64:HP-UX:*:*) - HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` - echo ia64-hp-hpux"$HPUX_REV" - exit ;; - 3050*:HI-UX:*:*) - eval "$set_cc_for_build" - sed 's/^ //' << EOF > "$dummy.c" - #include - int - main () - { - long cpu = sysconf (_SC_CPU_VERSION); - /* The order matters, because CPU_IS_HP_MC68K erroneously returns - true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct - results, however. */ - if (CPU_IS_PA_RISC (cpu)) - { - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; - case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; - default: puts ("hppa-hitachi-hiuxwe2"); break; - } - } - else if (CPU_IS_HP_MC68K (cpu)) - puts ("m68k-hitachi-hiuxwe2"); - else puts ("unknown-hitachi-hiuxwe2"); - exit (0); - } -EOF - $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && - { echo "$SYSTEM_NAME"; exit; } - echo unknown-hitachi-hiuxwe2 - exit ;; - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) - echo hppa1.1-hp-bsd - exit ;; - 9000/8??:4.3bsd:*:*) - echo hppa1.0-hp-bsd - exit ;; - *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) - echo hppa1.0-hp-mpeix - exit ;; - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) - echo hppa1.1-hp-osf - exit ;; - hp8??:OSF1:*:*) - echo hppa1.0-hp-osf - exit ;; - i*86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then - echo "$UNAME_MACHINE"-unknown-osf1mk - else - echo "$UNAME_MACHINE"-unknown-osf1 - fi - exit ;; - parisc*:Lites*:*:*) - echo hppa1.1-hp-lites - exit ;; - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) - echo c1-convex-bsd - exit ;; - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit ;; - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) - echo c34-convex-bsd - exit ;; - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) - echo c38-convex-bsd - exit ;; - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) - echo c4-convex-bsd - exit ;; - CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*[A-Z]90:*:*:*) - echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ - | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ - -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*TS:*:*:*) - echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*T3E:*:*:*) - echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*SV1:*:*:*) - echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' - exit ;; - *:UNICOS/mp:*:*) - echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' - exit ;; - F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) - FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` - FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` - FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; - 5000:UNIX_System_V:4.*:*) - FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` - FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; - i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) - echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" - exit ;; - sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi"$UNAME_RELEASE" - exit ;; - *:BSD/OS:*:*) - echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" - exit ;; - *:FreeBSD:*:*) - UNAME_PROCESSOR=`/usr/bin/uname -p` - case "$UNAME_PROCESSOR" in - amd64) - UNAME_PROCESSOR=x86_64 ;; - i386) - UNAME_PROCESSOR=i586 ;; - esac - echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" - exit ;; - i*:CYGWIN*:*) - echo "$UNAME_MACHINE"-pc-cygwin - exit ;; - *:MINGW64*:*) - echo "$UNAME_MACHINE"-pc-mingw64 - exit ;; - *:MINGW*:*) - echo "$UNAME_MACHINE"-pc-mingw32 - exit ;; - *:MSYS*:*) - echo "$UNAME_MACHINE"-pc-msys - exit ;; - i*:PW*:*) - echo "$UNAME_MACHINE"-pc-pw32 - exit ;; - *:Interix*:*) - case "$UNAME_MACHINE" in - x86) - echo i586-pc-interix"$UNAME_RELEASE" - exit ;; - authenticamd | genuineintel | EM64T) - echo x86_64-unknown-interix"$UNAME_RELEASE" - exit ;; - IA64) - echo ia64-unknown-interix"$UNAME_RELEASE" - exit ;; - esac ;; - i*:UWIN*:*) - echo "$UNAME_MACHINE"-pc-uwin - exit ;; - amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) - echo x86_64-unknown-cygwin - exit ;; - prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" - exit ;; - *:GNU:*:*) - # the GNU system - echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" - exit ;; - *:GNU/*:*:*) - # other systems with GNU libc and userland - echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" - exit ;; - i*86:Minix:*:*) - echo "$UNAME_MACHINE"-pc-minix - exit ;; - aarch64:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - aarch64_be:Linux:*:*) - UNAME_MACHINE=aarch64_be - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in - EV5) UNAME_MACHINE=alphaev5 ;; - EV56) UNAME_MACHINE=alphaev56 ;; - PCA56) UNAME_MACHINE=alphapca56 ;; - PCA57) UNAME_MACHINE=alphapca56 ;; - EV6) UNAME_MACHINE=alphaev6 ;; - EV67) UNAME_MACHINE=alphaev67 ;; - EV68*) UNAME_MACHINE=alphaev68 ;; - esac - objdump --private-headers /bin/sh | grep -q ld.so.1 - if test "$?" = 0 ; then LIBC=gnulibc1 ; fi - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - arc:Linux:*:* | arceb:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - arm*:Linux:*:*) - eval "$set_cc_for_build" - if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ARM_EABI__ - then - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - else - if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ARM_PCS_VFP - then - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi - else - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf - fi - fi - exit ;; - avr32*:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - cris:Linux:*:*) - echo "$UNAME_MACHINE"-axis-linux-"$LIBC" - exit ;; - crisv32:Linux:*:*) - echo "$UNAME_MACHINE"-axis-linux-"$LIBC" - exit ;; - e2k:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - frv:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - hexagon:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - i*86:Linux:*:*) - echo "$UNAME_MACHINE"-pc-linux-"$LIBC" - exit ;; - ia64:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - k1om:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - m32r*:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - m68*:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - mips:Linux:*:* | mips64:Linux:*:*) - eval "$set_cc_for_build" - sed 's/^ //' << EOF > "$dummy.c" - #undef CPU - #undef ${UNAME_MACHINE} - #undef ${UNAME_MACHINE}el - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=${UNAME_MACHINE}el - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=${UNAME_MACHINE} - #else - CPU= - #endif - #endif -EOF - eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" - test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } - ;; - mips64el:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - openrisc*:Linux:*:*) - echo or1k-unknown-linux-"$LIBC" - exit ;; - or32:Linux:*:* | or1k*:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - padre:Linux:*:*) - echo sparc-unknown-linux-"$LIBC" - exit ;; - parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-"$LIBC" - exit ;; - parisc:Linux:*:* | hppa:Linux:*:*) - # Look for CPU level - case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; - PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; - *) echo hppa-unknown-linux-"$LIBC" ;; - esac - exit ;; - ppc64:Linux:*:*) - echo powerpc64-unknown-linux-"$LIBC" - exit ;; - ppc:Linux:*:*) - echo powerpc-unknown-linux-"$LIBC" - exit ;; - ppc64le:Linux:*:*) - echo powerpc64le-unknown-linux-"$LIBC" - exit ;; - ppcle:Linux:*:*) - echo powerpcle-unknown-linux-"$LIBC" - exit ;; - riscv32:Linux:*:* | riscv64:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - s390:Linux:*:* | s390x:Linux:*:*) - echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" - exit ;; - sh64*:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - sh*:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - sparc:Linux:*:* | sparc64:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - tile*:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - vax:Linux:*:*) - echo "$UNAME_MACHINE"-dec-linux-"$LIBC" - exit ;; - x86_64:Linux:*:*) - if objdump -f /bin/sh | grep -q elf32-x86-64; then - echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32 - else - echo "$UNAME_MACHINE"-pc-linux-"$LIBC" - fi - exit ;; - xtensa*:Linux:*:*) - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" - exit ;; - i*86:DYNIX/ptx:4*:*) - # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. - # earlier versions are messed up and put the nodename in both - # sysname and nodename. - echo i386-sequent-sysv4 - exit ;; - i*86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, - # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. - echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" - exit ;; - i*86:OS/2:*:*) - # If we were able to find `uname', then EMX Unix compatibility - # is probably installed. - echo "$UNAME_MACHINE"-pc-os2-emx - exit ;; - i*86:XTS-300:*:STOP) - echo "$UNAME_MACHINE"-unknown-stop - exit ;; - i*86:atheos:*:*) - echo "$UNAME_MACHINE"-unknown-atheos - exit ;; - i*86:syllable:*:*) - echo "$UNAME_MACHINE"-pc-syllable - exit ;; - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) - echo i386-unknown-lynxos"$UNAME_RELEASE" - exit ;; - i*86:*DOS:*:*) - echo "$UNAME_MACHINE"-pc-msdosdjgpp - exit ;; - i*86:*:4.*:*) - UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" - else - echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" - fi - exit ;; - i*86:*:5:[678]*) - # UnixWare 7.x, OpenUNIX and OpenServer 6. - case `/bin/uname -X | grep "^Machine"` in - *486*) UNAME_MACHINE=i486 ;; - *Pentium) UNAME_MACHINE=i586 ;; - *Pent*|*Celeron) UNAME_MACHINE=i686 ;; - esac - echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" - exit ;; - i*86:*:3.2:*) - if test -f /usr/options/cb.name; then - UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then - UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` - (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 - (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ - && UNAME_MACHINE=i586 - (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ - && UNAME_MACHINE=i686 - (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ - && UNAME_MACHINE=i686 - echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" - else - echo "$UNAME_MACHINE"-pc-sysv32 - fi - exit ;; - pc:*:*:*) - # Left here for compatibility: - # uname -m prints for DJGPP always 'pc', but it prints nothing about - # the processor, so we play safe by assuming i586. - # Note: whatever this is, it MUST be the same as what config.sub - # prints for the "djgpp" host, or else GDB configure will decide that - # this is a cross-build. - echo i586-pc-msdosdjgpp - exit ;; - Intel:Mach:3*:*) - echo i386-pc-mach3 - exit ;; - paragon:*:*:*) - echo i860-intel-osf1 - exit ;; - i860:*:4.*:*) # i860-SVR4 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 - else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 - fi - exit ;; - mini*:CTIX:SYS*5:*) - # "miniframe" - echo m68010-convergent-sysv - exit ;; - mc68k:UNIX:SYSTEM5:3.51m) - echo m68k-convergent-sysv - exit ;; - M680?0:D-NIX:5.3:*) - echo m68k-diab-dnix - exit ;; - M68*:*:R3V[5678]*:*) - test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; - 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) - OS_REL='' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; - 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4; exit; } ;; - NCR*:*:4.2:* | MPRAS*:*:4.2:*) - OS_REL='.3' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } - /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ - && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; - m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) - echo m68k-unknown-lynxos"$UNAME_RELEASE" - exit ;; - mc68030:UNIX_System_V:4.*:*) - echo m68k-atari-sysv4 - exit ;; - TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos"$UNAME_RELEASE" - exit ;; - rs6000:LynxOS:2.*:*) - echo rs6000-unknown-lynxos"$UNAME_RELEASE" - exit ;; - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) - echo powerpc-unknown-lynxos"$UNAME_RELEASE" - exit ;; - SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv"$UNAME_RELEASE" - exit ;; - RM*:ReliantUNIX-*:*:*) - echo mips-sni-sysv4 - exit ;; - RM*:SINIX-*:*:*) - echo mips-sni-sysv4 - exit ;; - *:SINIX-*:*:*) - if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo "$UNAME_MACHINE"-sni-sysv4 - else - echo ns32k-sni-sysv - fi - exit ;; - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says - echo i586-unisys-sysv4 - exit ;; - *:UNIX_System_V:4*:FTX*) - # From Gerald Hewes . - # How about differentiating between stratus architectures? -djm - echo hppa1.1-stratus-sysv4 - exit ;; - *:*:*:FTX*) - # From seanf@swdc.stratus.com. - echo i860-stratus-sysv4 - exit ;; - i*86:VOS:*:*) - # From Paul.Green@stratus.com. - echo "$UNAME_MACHINE"-stratus-vos - exit ;; - *:VOS:*:*) - # From Paul.Green@stratus.com. - echo hppa1.1-stratus-vos - exit ;; - mc68*:A/UX:*:*) - echo m68k-apple-aux"$UNAME_RELEASE" - exit ;; - news*:NEWS-OS:6*:*) - echo mips-sony-newsos6 - exit ;; - R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then - echo mips-nec-sysv"$UNAME_RELEASE" - else - echo mips-unknown-sysv"$UNAME_RELEASE" - fi - exit ;; - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. - echo powerpc-be-beos - exit ;; - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. - echo powerpc-apple-beos - exit ;; - BePC:BeOS:*:*) # BeOS running on Intel PC compatible. - echo i586-pc-beos - exit ;; - BePC:Haiku:*:*) # Haiku running on Intel PC compatible. - echo i586-pc-haiku - exit ;; - x86_64:Haiku:*:*) - echo x86_64-unknown-haiku - exit ;; - SX-4:SUPER-UX:*:*) - echo sx4-nec-superux"$UNAME_RELEASE" - exit ;; - SX-5:SUPER-UX:*:*) - echo sx5-nec-superux"$UNAME_RELEASE" - exit ;; - SX-6:SUPER-UX:*:*) - echo sx6-nec-superux"$UNAME_RELEASE" - exit ;; - SX-7:SUPER-UX:*:*) - echo sx7-nec-superux"$UNAME_RELEASE" - exit ;; - SX-8:SUPER-UX:*:*) - echo sx8-nec-superux"$UNAME_RELEASE" - exit ;; - SX-8R:SUPER-UX:*:*) - echo sx8r-nec-superux"$UNAME_RELEASE" - exit ;; - SX-ACE:SUPER-UX:*:*) - echo sxace-nec-superux"$UNAME_RELEASE" - exit ;; - Power*:Rhapsody:*:*) - echo powerpc-apple-rhapsody"$UNAME_RELEASE" - exit ;; - *:Rhapsody:*:*) - echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" - exit ;; - *:Darwin:*:*) - UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown - eval "$set_cc_for_build" - if test "$UNAME_PROCESSOR" = unknown ; then - UNAME_PROCESSOR=powerpc - fi - if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then - if [ "$CC_FOR_BUILD" != no_compiler_found ]; then - if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_64BIT_ARCH >/dev/null - then - case $UNAME_PROCESSOR in - i386) UNAME_PROCESSOR=x86_64 ;; - powerpc) UNAME_PROCESSOR=powerpc64 ;; - esac - fi - # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc - if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ - (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_PPC >/dev/null - then - UNAME_PROCESSOR=powerpc - fi - fi - elif test "$UNAME_PROCESSOR" = i386 ; then - # Avoid executing cc on OS X 10.9, as it ships with a stub - # that puts up a graphical alert prompting to install - # developer tools. Any system running Mac OS X 10.7 or - # later (Darwin 11 and later) is required to have a 64-bit - # processor. This is not true of the ARM version of Darwin - # that Apple uses in portable devices. - UNAME_PROCESSOR=x86_64 - fi - echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" - exit ;; - *:procnto*:*:* | *:QNX:[0123456789]*:*) - UNAME_PROCESSOR=`uname -p` - if test "$UNAME_PROCESSOR" = x86; then - UNAME_PROCESSOR=i386 - UNAME_MACHINE=pc - fi - echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" - exit ;; - *:QNX:*:4*) - echo i386-pc-qnx - exit ;; - NEO-*:NONSTOP_KERNEL:*:*) - echo neo-tandem-nsk"$UNAME_RELEASE" - exit ;; - NSE-*:NONSTOP_KERNEL:*:*) - echo nse-tandem-nsk"$UNAME_RELEASE" - exit ;; - NSR-*:NONSTOP_KERNEL:*:*) - echo nsr-tandem-nsk"$UNAME_RELEASE" - exit ;; - NSV-*:NONSTOP_KERNEL:*:*) - echo nsv-tandem-nsk"$UNAME_RELEASE" - exit ;; - NSX-*:NONSTOP_KERNEL:*:*) - echo nsx-tandem-nsk"$UNAME_RELEASE" - exit ;; - *:NonStop-UX:*:*) - echo mips-compaq-nonstopux - exit ;; - BS2000:POSIX*:*:*) - echo bs2000-siemens-sysv - exit ;; - DS/*:UNIX_System_V:*:*) - echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" - exit ;; - *:Plan9:*:*) - # "uname -m" is not consistent, so use $cputype instead. 386 - # is converted to i386 for consistency with other x86 - # operating systems. - if test "$cputype" = 386; then - UNAME_MACHINE=i386 - else - UNAME_MACHINE="$cputype" - fi - echo "$UNAME_MACHINE"-unknown-plan9 - exit ;; - *:TOPS-10:*:*) - echo pdp10-unknown-tops10 - exit ;; - *:TENEX:*:*) - echo pdp10-unknown-tenex - exit ;; - KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) - echo pdp10-dec-tops20 - exit ;; - XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) - echo pdp10-xkl-tops20 - exit ;; - *:TOPS-20:*:*) - echo pdp10-unknown-tops20 - exit ;; - *:ITS:*:*) - echo pdp10-unknown-its - exit ;; - SEI:*:*:SEIUX) - echo mips-sei-seiux"$UNAME_RELEASE" - exit ;; - *:DragonFly:*:*) - echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" - exit ;; - *:*VMS:*:*) - UNAME_MACHINE=`(uname -p) 2>/dev/null` - case "$UNAME_MACHINE" in - A*) echo alpha-dec-vms ; exit ;; - I*) echo ia64-dec-vms ; exit ;; - V*) echo vax-dec-vms ; exit ;; - esac ;; - *:XENIX:*:SysV) - echo i386-pc-xenix - exit ;; - i*86:skyos:*:*) - echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" - exit ;; - i*86:rdos:*:*) - echo "$UNAME_MACHINE"-pc-rdos - exit ;; - i*86:AROS:*:*) - echo "$UNAME_MACHINE"-pc-aros - exit ;; - x86_64:VMkernel:*:*) - echo "$UNAME_MACHINE"-unknown-esx - exit ;; - amd64:Isilon\ OneFS:*:*) - echo x86_64-unknown-onefs - exit ;; -esac - -echo "$0: unable to guess system type" >&2 - -case "$UNAME_MACHINE:$UNAME_SYSTEM" in - mips:Linux | mips64:Linux) - # If we got here on MIPS GNU/Linux, output extra information. - cat >&2 <&2 </dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null` - -hostinfo = `(hostinfo) 2>/dev/null` -/bin/universe = `(/bin/universe) 2>/dev/null` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` -/bin/arch = `(/bin/arch) 2>/dev/null` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` - -UNAME_MACHINE = "$UNAME_MACHINE" -UNAME_RELEASE = "$UNAME_RELEASE" -UNAME_SYSTEM = "$UNAME_SYSTEM" -UNAME_VERSION = "$UNAME_VERSION" -EOF - -exit 1 - -# Local variables: -# eval: (add-hook 'write-file-functions 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff --git a/build-aux/config.rpath b/build-aux/config.rpath deleted file mode 100755 index a3e25c8..0000000 --- a/build-aux/config.rpath +++ /dev/null @@ -1,684 +0,0 @@ -#! /bin/sh -# Output a system dependent set of variables, describing how to set the -# run time search path of shared libraries in an executable. -# -# Copyright 1996-2015 Free Software Foundation, Inc. -# Taken from GNU libtool, 2001 -# Originally by Gordon Matzigkeit , 1996 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. -# -# The first argument passed to this file is the canonical host specification, -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -# or -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld -# should be set by the caller. -# -# The set of defined variables is at the end of this script. - -# Known limitations: -# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer -# than 256 bytes, otherwise the compiler driver will dump core. The only -# known workaround is to choose shorter directory names for the build -# directory and/or the installation directory. - -# All known linkers require a '.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a -shrext=.so - -host="$1" -host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` - -# Code taken from libtool.m4's _LT_CC_BASENAME. - -for cc_temp in $CC""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` - -# Code taken from libtool.m4's _LT_COMPILER_PIC. - -wl= -if test "$GCC" = yes; then - wl='-Wl,' -else - case "$host_os" in - aix*) - wl='-Wl,' - ;; - mingw* | cygwin* | pw32* | os2* | cegcc*) - ;; - hpux9* | hpux10* | hpux11*) - wl='-Wl,' - ;; - irix5* | irix6* | nonstopux*) - wl='-Wl,' - ;; - linux* | k*bsd*-gnu | kopensolaris*-gnu) - case $cc_basename in - ecc*) - wl='-Wl,' - ;; - icc* | ifort*) - wl='-Wl,' - ;; - lf95*) - wl='-Wl,' - ;; - nagfor*) - wl='-Wl,-Wl,,' - ;; - pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) - wl='-Wl,' - ;; - ccc*) - wl='-Wl,' - ;; - xl* | bgxl* | bgf* | mpixl*) - wl='-Wl,' - ;; - como) - wl='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ F* | *Sun*Fortran*) - wl= - ;; - *Sun\ C*) - wl='-Wl,' - ;; - esac - ;; - esac - ;; - newsos6) - ;; - *nto* | *qnx*) - ;; - osf3* | osf4* | osf5*) - wl='-Wl,' - ;; - rdos*) - ;; - solaris*) - case $cc_basename in - f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) - wl='-Qoption ld ' - ;; - *) - wl='-Wl,' - ;; - esac - ;; - sunos4*) - wl='-Qoption ld ' - ;; - sysv4 | sysv4.2uw2* | sysv4.3*) - wl='-Wl,' - ;; - sysv4*MP*) - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - wl='-Wl,' - ;; - unicos*) - wl='-Wl,' - ;; - uts4*) - ;; - esac -fi - -# Code taken from libtool.m4's _LT_LINKER_SHLIBS. - -hardcode_libdir_flag_spec= -hardcode_libdir_separator= -hardcode_direct=no -hardcode_minus_L=no - -case "$host_os" in - cygwin* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; -esac - -ld_shlibs=yes -if test "$with_gnu_ld" = yes; then - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - # Unlike libtool, we use -rpath here, not --rpath, since the documented - # option of GNU ld is called -rpath, not --rpath. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - case "$host_os" in - aix[3-9]*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs=no - fi - ;; - amigaos*) - case "$host_cpu" in - powerpc) - ;; - m68k) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - ;; - esac - ;; - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - : - else - ld_shlibs=no - fi - ;; - cygwin* | mingw* | pw32* | cegcc*) - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - : - else - ld_shlibs=no - fi - ;; - haiku*) - ;; - interix[3-9]*) - hardcode_direct=no - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - ;; - gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - : - else - ld_shlibs=no - fi - ;; - netbsd*) - ;; - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - : - else - ld_shlibs=no - fi - ;; - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs=no - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - else - ld_shlibs=no - fi - ;; - esac - ;; - sunos4*) - hardcode_direct=yes - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - : - else - ld_shlibs=no - fi - ;; - esac - if test "$ld_shlibs" = no; then - hardcode_libdir_flag_spec= - fi -else - case "$host_os" in - aix3*) - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L=yes - if test "$GCC" = yes; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct=unsupported - fi - ;; - aix[4-9]*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - else - aix_use_runtimelinking=no - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - fi - hardcode_direct=yes - hardcode_libdir_separator=':' - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct=unsupported - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= - fi - ;; - esac - fi - # Begin _LT_AC_SYS_LIBPATH_AIX. - echo 'int main () { return 0; }' > conftest.c - ${CC} ${LDFLAGS} conftest.c -o conftest - aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } -}'` - if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } -}'` - fi - if test -z "$aix_libpath"; then - aix_libpath="/usr/lib:/lib" - fi - rm -f conftest.c conftest - # End _LT_AC_SYS_LIBPATH_AIX. - if test "$aix_use_runtimelinking" = yes; then - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' - else - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - fi - fi - ;; - amigaos*) - case "$host_cpu" in - powerpc) - ;; - m68k) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - ;; - esac - ;; - bsdi[45]*) - ;; - cygwin* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec=' ' - libext=lib - ;; - darwin* | rhapsody*) - hardcode_direct=no - if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then - : - else - ld_shlibs=no - fi - ;; - dgux*) - hardcode_libdir_flag_spec='-L$libdir' - ;; - freebsd2.[01]*) - hardcode_direct=yes - hardcode_minus_L=yes - ;; - freebsd* | dragonfly*) - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - ;; - hpux9*) - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - hpux10*) - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - fi - ;; - hpux11*) - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - case $host_cpu in - hppa*64*|ia64*) - hardcode_direct=no - ;; - *) - hardcode_direct=yes - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - esac - fi - ;; - irix5* | irix6* | nonstopux*) - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - netbsd*) - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - ;; - newsos6) - hardcode_direct=yes - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - *nto* | *qnx*) - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct=yes - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - else - case "$host_os" in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - hardcode_libdir_flag_spec='-R$libdir' - ;; - *) - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs=no - fi - ;; - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - ;; - osf3*) - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - osf4* | osf5*) - if test "$GCC" = yes; then - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - else - # Both cc and cxx compiler support -rpath directly - hardcode_libdir_flag_spec='-rpath $libdir' - fi - hardcode_libdir_separator=: - ;; - solaris*) - hardcode_libdir_flag_spec='-R$libdir' - ;; - sunos4*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_direct=yes - hardcode_minus_L=yes - ;; - sysv4) - case $host_vendor in - sni) - hardcode_direct=yes # is this really true??? - ;; - siemens) - hardcode_direct=no - ;; - motorola) - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - ;; - esac - ;; - sysv4.3*) - ;; - sysv4*MP*) - if test -d /usr/nec; then - ld_shlibs=yes - fi - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - ;; - sysv5* | sco3.2v5* | sco5v6*) - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator=':' - ;; - uts4*) - hardcode_libdir_flag_spec='-L$libdir' - ;; - *) - ld_shlibs=no - ;; - esac -fi - -# Check dynamic linker characteristics -# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. -# Unlike libtool.m4, here we don't care about _all_ names of the library, but -# only about the one the linker finds when passed -lNAME. This is the last -# element of library_names_spec in libtool.m4, or possibly two of them if the -# linker has special search rules. -library_names_spec= # the last element of library_names_spec in libtool.m4 -libname_spec='lib$name' -case "$host_os" in - aix3*) - library_names_spec='$libname.a' - ;; - aix[4-9]*) - library_names_spec='$libname$shrext' - ;; - amigaos*) - case "$host_cpu" in - powerpc*) - library_names_spec='$libname$shrext' ;; - m68k) - library_names_spec='$libname.a' ;; - esac - ;; - beos*) - library_names_spec='$libname$shrext' - ;; - bsdi[45]*) - library_names_spec='$libname$shrext' - ;; - cygwin* | mingw* | pw32* | cegcc*) - shrext=.dll - library_names_spec='$libname.dll.a $libname.lib' - ;; - darwin* | rhapsody*) - shrext=.dylib - library_names_spec='$libname$shrext' - ;; - dgux*) - library_names_spec='$libname$shrext' - ;; - freebsd[23].*) - library_names_spec='$libname$shrext$versuffix' - ;; - freebsd* | dragonfly*) - library_names_spec='$libname$shrext' - ;; - gnu*) - library_names_spec='$libname$shrext' - ;; - haiku*) - library_names_spec='$libname$shrext' - ;; - hpux9* | hpux10* | hpux11*) - case $host_cpu in - ia64*) - shrext=.so - ;; - hppa*64*) - shrext=.sl - ;; - *) - shrext=.sl - ;; - esac - library_names_spec='$libname$shrext' - ;; - interix[3-9]*) - library_names_spec='$libname$shrext' - ;; - irix5* | irix6* | nonstopux*) - library_names_spec='$libname$shrext' - case "$host_os" in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; - *) libsuff= shlibsuff= ;; - esac - ;; - esac - ;; - linux*oldld* | linux*aout* | linux*coff*) - ;; - linux* | k*bsd*-gnu | kopensolaris*-gnu) - library_names_spec='$libname$shrext' - ;; - knetbsd*-gnu) - library_names_spec='$libname$shrext' - ;; - netbsd*) - library_names_spec='$libname$shrext' - ;; - newsos6) - library_names_spec='$libname$shrext' - ;; - *nto* | *qnx*) - library_names_spec='$libname$shrext' - ;; - openbsd*) - library_names_spec='$libname$shrext$versuffix' - ;; - os2*) - libname_spec='$name' - shrext=.dll - library_names_spec='$libname.a' - ;; - osf3* | osf4* | osf5*) - library_names_spec='$libname$shrext' - ;; - rdos*) - ;; - solaris*) - library_names_spec='$libname$shrext' - ;; - sunos4*) - library_names_spec='$libname$shrext$versuffix' - ;; - sysv4 | sysv4.3*) - library_names_spec='$libname$shrext' - ;; - sysv4*MP*) - library_names_spec='$libname$shrext' - ;; - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - library_names_spec='$libname$shrext' - ;; - tpf*) - library_names_spec='$libname$shrext' - ;; - uts4*) - library_names_spec='$libname$shrext' - ;; -esac - -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' -escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` -shlibext=`echo "$shrext" | sed -e 's,^\.,,'` -escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` -escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` -escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` - -LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that -# program. This Exception is an additional permission under section 7 -# of the GNU General Public License, version 3 ("GPLv3"). - - -# Please send patches to . -# -# Configuration subroutine to validate and canonicalize a configuration type. -# Supply the specified configuration type as an argument. -# If it is invalid, we print an error message on stderr and exit with code 1. -# Otherwise, we print the canonical config type on stdout and succeed. - -# You can get the latest version of this script from: -# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub - -# This file is supposed to be the same for all GNU packages -# and recognize all the CPU types, system types and aliases -# that are meaningful with *any* GNU software. -# Each package is responsible for reporting which valid configurations -# it does not support. The user should be able to distinguish -# a failure to support a valid configuration from a meaningless -# configuration. - -# The goal of this file is to map all the various variations of a given -# machine specification into a single specification in the form: -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -# or in some cases, the newer four-part form: -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -# It is wrong to echo any other type of specification. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS - -Canonicalize a configuration name. - -Options: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to ." - -version="\ -GNU config.sub ($timestamp) - -Copyright 1992-2018 Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit ;; - --version | -v ) - echo "$version" ; exit ;; - --help | --h* | -h ) - echo "$usage"; exit ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" - exit 1 ;; - - *local*) - # First pass through any local machine types. - echo "$1" - exit ;; - - * ) - break ;; - esac -done - -case $# in - 0) echo "$me: missing argument$help" >&2 - exit 1;; - 1) ;; - *) echo "$me: too many arguments$help" >&2 - exit 1;; -esac - -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). -# Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` -case $maybe_os in - nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ - linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ - knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ - kopensolaris*-gnu* | cloudabi*-eabi* | \ - storm-chaos* | os2-emx* | rtmk-nova*) - os=-$maybe_os - basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` - ;; - android-linux) - os=-linux-android - basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown - ;; - *) - basic_machine=`echo "$1" | sed 's/-[^-]*$//'` - if [ "$basic_machine" != "$1" ] - then os=`echo "$1" | sed 's/.*-/-/'` - else os=; fi - ;; -esac - -### Let's recognize common machines as not being operating systems so -### that things like config.sub decstation-3100 work. We also -### recognize some manufacturers as not being operating systems, so we -### can provide default operating systems below. -case $os in - -sun*os*) - # Prevent following clause from handling this invalid input. - ;; - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis | -knuth | -cray | -microblaze*) - os= - basic_machine=$1 - ;; - -bluegene*) - os=-cnk - ;; - -sim | -cisco | -oki | -wec | -winbond) - os= - basic_machine=$1 - ;; - -scout) - ;; - -wrs) - os=-vxworks - basic_machine=$1 - ;; - -chorusos*) - os=-chorusos - basic_machine=$1 - ;; - -chorusrdb) - os=-chorusrdb - basic_machine=$1 - ;; - -hiux*) - os=-hiuxwe2 - ;; - -sco6) - os=-sco5v6 - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -sco5) - os=-sco3.2v5 - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -sco4) - os=-sco3.2v4 - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2.[4-9]*) - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2v[4-9]*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -sco5v6*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -sco*) - os=-sco3.2v2 - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -udk*) - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -isc) - os=-isc2.2 - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -clix*) - basic_machine=clipper-intergraph - ;; - -isc*) - basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` - ;; - -lynx*178) - os=-lynxos178 - ;; - -lynx*5) - os=-lynxos5 - ;; - -lynx*) - os=-lynxos - ;; - -ptx*) - basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'` - ;; - -psos*) - os=-psos - ;; - -mint | -mint[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; -esac - -# Decode aliases for certain CPU-COMPANY combinations. -case $basic_machine in - # Recognize the basic CPU types without company name. - # Some are omitted here because they have special meanings below. - 1750a | 580 \ - | a29k \ - | aarch64 | aarch64_be \ - | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ - | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ - | am33_2.0 \ - | arc | arceb \ - | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ - | avr | avr32 \ - | ba \ - | be32 | be64 \ - | bfin \ - | c4x | c8051 | clipper \ - | d10v | d30v | dlx | dsp16xx \ - | e2k | epiphany \ - | fido | fr30 | frv | ft32 \ - | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ - | hexagon \ - | i370 | i860 | i960 | ia16 | ia64 \ - | ip2k | iq2000 \ - | k1om \ - | le32 | le64 \ - | lm32 \ - | m32c | m32r | m32rle | m68000 | m68k | m88k \ - | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ - | mips | mipsbe | mipseb | mipsel | mipsle \ - | mips16 \ - | mips64 | mips64el \ - | mips64octeon | mips64octeonel \ - | mips64orion | mips64orionel \ - | mips64r5900 | mips64r5900el \ - | mips64vr | mips64vrel \ - | mips64vr4100 | mips64vr4100el \ - | mips64vr4300 | mips64vr4300el \ - | mips64vr5000 | mips64vr5000el \ - | mips64vr5900 | mips64vr5900el \ - | mipsisa32 | mipsisa32el \ - | mipsisa32r2 | mipsisa32r2el \ - | mipsisa32r6 | mipsisa32r6el \ - | mipsisa64 | mipsisa64el \ - | mipsisa64r2 | mipsisa64r2el \ - | mipsisa64r6 | mipsisa64r6el \ - | mipsisa64sb1 | mipsisa64sb1el \ - | mipsisa64sr71k | mipsisa64sr71kel \ - | mipsr5900 | mipsr5900el \ - | mipstx39 | mipstx39el \ - | mn10200 | mn10300 \ - | moxie \ - | mt \ - | msp430 \ - | nds32 | nds32le | nds32be \ - | nios | nios2 | nios2eb | nios2el \ - | ns16k | ns32k \ - | open8 | or1k | or1knd | or32 \ - | pdp10 | pj | pjl \ - | powerpc | powerpc64 | powerpc64le | powerpcle \ - | pru \ - | pyramid \ - | riscv32 | riscv64 \ - | rl78 | rx \ - | score \ - | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ - | sh64 | sh64le \ - | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ - | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ - | spu \ - | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ - | ubicom32 \ - | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ - | visium \ - | wasm32 \ - | x86 | xc16x | xstormy16 | xtensa \ - | z8k | z80) - basic_machine=$basic_machine-unknown - ;; - c54x) - basic_machine=tic54x-unknown - ;; - c55x) - basic_machine=tic55x-unknown - ;; - c6x) - basic_machine=tic6x-unknown - ;; - leon|leon[3-9]) - basic_machine=sparc-$basic_machine - ;; - m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) - basic_machine=$basic_machine-unknown - os=-none - ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) - ;; - ms1) - basic_machine=mt-unknown - ;; - - strongarm | thumb | xscale) - basic_machine=arm-unknown - ;; - xgate) - basic_machine=$basic_machine-unknown - os=-none - ;; - xscaleeb) - basic_machine=armeb-unknown - ;; - - xscaleel) - basic_machine=armel-unknown - ;; - - # We use `pc' rather than `unknown' - # because (1) that's what they normally are, and - # (2) the word "unknown" tends to confuse beginning users. - i*86 | x86_64) - basic_machine=$basic_machine-pc - ;; - # Object if more than one company name word. - *-*-*) - echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 - exit 1 - ;; - # Recognize the basic CPU types with company name. - 580-* \ - | a29k-* \ - | aarch64-* | aarch64_be-* \ - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ - | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ - | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ - | avr-* | avr32-* \ - | ba-* \ - | be32-* | be64-* \ - | bfin-* | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c4x-* \ - | c8051-* | clipper-* | craynv-* | cydra-* \ - | d10v-* | d30v-* | dlx-* \ - | e2k-* | elxsi-* \ - | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ - | h8300-* | h8500-* \ - | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ - | hexagon-* \ - | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ - | ip2k-* | iq2000-* \ - | k1om-* \ - | le32-* | le64-* \ - | lm32-* \ - | m32c-* | m32r-* | m32rle-* \ - | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ - | microblaze-* | microblazeel-* \ - | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ - | mips16-* \ - | mips64-* | mips64el-* \ - | mips64octeon-* | mips64octeonel-* \ - | mips64orion-* | mips64orionel-* \ - | mips64r5900-* | mips64r5900el-* \ - | mips64vr-* | mips64vrel-* \ - | mips64vr4100-* | mips64vr4100el-* \ - | mips64vr4300-* | mips64vr4300el-* \ - | mips64vr5000-* | mips64vr5000el-* \ - | mips64vr5900-* | mips64vr5900el-* \ - | mipsisa32-* | mipsisa32el-* \ - | mipsisa32r2-* | mipsisa32r2el-* \ - | mipsisa32r6-* | mipsisa32r6el-* \ - | mipsisa64-* | mipsisa64el-* \ - | mipsisa64r2-* | mipsisa64r2el-* \ - | mipsisa64r6-* | mipsisa64r6el-* \ - | mipsisa64sb1-* | mipsisa64sb1el-* \ - | mipsisa64sr71k-* | mipsisa64sr71kel-* \ - | mipsr5900-* | mipsr5900el-* \ - | mipstx39-* | mipstx39el-* \ - | mmix-* \ - | mt-* \ - | msp430-* \ - | nds32-* | nds32le-* | nds32be-* \ - | nios-* | nios2-* | nios2eb-* | nios2el-* \ - | none-* | np1-* | ns16k-* | ns32k-* \ - | open8-* \ - | or1k*-* \ - | orion-* \ - | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ - | pru-* \ - | pyramid-* \ - | riscv32-* | riscv64-* \ - | rl78-* | romp-* | rs6000-* | rx-* \ - | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ - | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ - | sparclite-* \ - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ - | tahoe-* \ - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ - | tile*-* \ - | tron-* \ - | ubicom32-* \ - | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ - | vax-* \ - | visium-* \ - | wasm32-* \ - | we32k-* \ - | x86-* | x86_64-* | xc16x-* | xps100-* \ - | xstormy16-* | xtensa*-* \ - | ymp-* \ - | z8k-* | z80-*) - ;; - # Recognize the basic CPU types without company name, with glob match. - xtensa*) - basic_machine=$basic_machine-unknown - ;; - # Recognize the various machine names and aliases which stand - # for a CPU type and a company and sometimes even an OS. - 386bsd) - basic_machine=i386-pc - os=-bsd - ;; - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) - basic_machine=m68000-att - ;; - 3b*) - basic_machine=we32k-att - ;; - a29khif) - basic_machine=a29k-amd - os=-udi - ;; - abacus) - basic_machine=abacus-unknown - ;; - adobe68k) - basic_machine=m68010-adobe - os=-scout - ;; - alliant | fx80) - basic_machine=fx80-alliant - ;; - altos | altos3068) - basic_machine=m68k-altos - ;; - am29k) - basic_machine=a29k-none - os=-bsd - ;; - amd64) - basic_machine=x86_64-pc - ;; - amd64-*) - basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - amdahl) - basic_machine=580-amdahl - os=-sysv - ;; - amiga | amiga-*) - basic_machine=m68k-unknown - ;; - amigaos | amigados) - basic_machine=m68k-unknown - os=-amigaos - ;; - amigaunix | amix) - basic_machine=m68k-unknown - os=-sysv4 - ;; - apollo68) - basic_machine=m68k-apollo - os=-sysv - ;; - apollo68bsd) - basic_machine=m68k-apollo - os=-bsd - ;; - aros) - basic_machine=i386-pc - os=-aros - ;; - asmjs) - basic_machine=asmjs-unknown - ;; - aux) - basic_machine=m68k-apple - os=-aux - ;; - balance) - basic_machine=ns32k-sequent - os=-dynix - ;; - blackfin) - basic_machine=bfin-unknown - os=-linux - ;; - blackfin-*) - basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` - os=-linux - ;; - bluegene*) - basic_machine=powerpc-ibm - os=-cnk - ;; - c54x-*) - basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - c55x-*) - basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - c6x-*) - basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - c90) - basic_machine=c90-cray - os=-unicos - ;; - cegcc) - basic_machine=arm-unknown - os=-cegcc - ;; - convex-c1) - basic_machine=c1-convex - os=-bsd - ;; - convex-c2) - basic_machine=c2-convex - os=-bsd - ;; - convex-c32) - basic_machine=c32-convex - os=-bsd - ;; - convex-c34) - basic_machine=c34-convex - os=-bsd - ;; - convex-c38) - basic_machine=c38-convex - os=-bsd - ;; - cray | j90) - basic_machine=j90-cray - os=-unicos - ;; - craynv) - basic_machine=craynv-cray - os=-unicosmp - ;; - cr16 | cr16-*) - basic_machine=cr16-unknown - os=-elf - ;; - crds | unos) - basic_machine=m68k-crds - ;; - crisv32 | crisv32-* | etraxfs*) - basic_machine=crisv32-axis - ;; - cris | cris-* | etrax*) - basic_machine=cris-axis - ;; - crx) - basic_machine=crx-unknown - os=-elf - ;; - da30 | da30-*) - basic_machine=m68k-da30 - ;; - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) - basic_machine=mips-dec - ;; - decsystem10* | dec10*) - basic_machine=pdp10-dec - os=-tops10 - ;; - decsystem20* | dec20*) - basic_machine=pdp10-dec - os=-tops20 - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - basic_machine=m68k-motorola - ;; - delta88) - basic_machine=m88k-motorola - os=-sysv3 - ;; - dicos) - basic_machine=i686-pc - os=-dicos - ;; - djgpp) - basic_machine=i586-pc - os=-msdosdjgpp - ;; - dpx20 | dpx20-*) - basic_machine=rs6000-bull - os=-bosx - ;; - dpx2*) - basic_machine=m68k-bull - os=-sysv3 - ;; - e500v[12]) - basic_machine=powerpc-unknown - os=$os"spe" - ;; - e500v[12]-*) - basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` - os=$os"spe" - ;; - ebmon29k) - basic_machine=a29k-amd - os=-ebmon - ;; - elxsi) - basic_machine=elxsi-elxsi - os=-bsd - ;; - encore | umax | mmax) - basic_machine=ns32k-encore - ;; - es1800 | OSE68k | ose68k | ose | OSE) - basic_machine=m68k-ericsson - os=-ose - ;; - fx2800) - basic_machine=i860-alliant - ;; - genix) - basic_machine=ns32k-ns - ;; - gmicro) - basic_machine=tron-gmicro - os=-sysv - ;; - go32) - basic_machine=i386-pc - os=-go32 - ;; - h3050r* | hiux*) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - h8300hms) - basic_machine=h8300-hitachi - os=-hms - ;; - h8300xray) - basic_machine=h8300-hitachi - os=-xray - ;; - h8500hms) - basic_machine=h8500-hitachi - os=-hms - ;; - harris) - basic_machine=m88k-harris - os=-sysv3 - ;; - hp300-*) - basic_machine=m68k-hp - ;; - hp300bsd) - basic_machine=m68k-hp - os=-bsd - ;; - hp300hpux) - basic_machine=m68k-hp - os=-hpux - ;; - hp3k9[0-9][0-9] | hp9[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k2[0-9][0-9] | hp9k31[0-9]) - basic_machine=m68000-hp - ;; - hp9k3[2-9][0-9]) - basic_machine=m68k-hp - ;; - hp9k6[0-9][0-9] | hp6[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k7[0-79][0-9] | hp7[0-79][0-9]) - basic_machine=hppa1.1-hp - ;; - hp9k78[0-9] | hp78[0-9]) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][13679] | hp8[0-9][13679]) - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][0-9] | hp8[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hppaosf) - basic_machine=hppa1.1-hp - os=-osf - ;; - hppro) - basic_machine=hppa1.1-hp - os=-proelf - ;; - i370-ibm* | ibm*) - basic_machine=i370-ibm - ;; - i*86v32) - basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` - os=-sysv32 - ;; - i*86v4*) - basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` - os=-sysv4 - ;; - i*86v) - basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` - os=-sysv - ;; - i*86sol2) - basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` - os=-solaris2 - ;; - i386mach) - basic_machine=i386-mach - os=-mach - ;; - vsta) - basic_machine=i386-unknown - os=-vsta - ;; - iris | iris4d) - basic_machine=mips-sgi - case $os in - -irix*) - ;; - *) - os=-irix4 - ;; - esac - ;; - isi68 | isi) - basic_machine=m68k-isi - os=-sysv - ;; - leon-*|leon[3-9]-*) - basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` - ;; - m68knommu) - basic_machine=m68k-unknown - os=-linux - ;; - m68knommu-*) - basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` - os=-linux - ;; - magnum | m3230) - basic_machine=mips-mips - os=-sysv - ;; - merlin) - basic_machine=ns32k-utek - os=-sysv - ;; - microblaze*) - basic_machine=microblaze-xilinx - ;; - mingw64) - basic_machine=x86_64-pc - os=-mingw64 - ;; - mingw32) - basic_machine=i686-pc - os=-mingw32 - ;; - mingw32ce) - basic_machine=arm-unknown - os=-mingw32ce - ;; - miniframe) - basic_machine=m68000-convergent - ;; - *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; - mips3*-*) - basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'` - ;; - mips3*) - basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown - ;; - monitor) - basic_machine=m68k-rom68k - os=-coff - ;; - morphos) - basic_machine=powerpc-unknown - os=-morphos - ;; - moxiebox) - basic_machine=moxie-unknown - os=-moxiebox - ;; - msdos) - basic_machine=i386-pc - os=-msdos - ;; - ms1-*) - basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` - ;; - msys) - basic_machine=i686-pc - os=-msys - ;; - mvs) - basic_machine=i370-ibm - os=-mvs - ;; - nacl) - basic_machine=le32-unknown - os=-nacl - ;; - ncr3000) - basic_machine=i486-ncr - os=-sysv4 - ;; - netbsd386) - basic_machine=i386-unknown - os=-netbsd - ;; - netwinder) - basic_machine=armv4l-rebel - os=-linux - ;; - news | news700 | news800 | news900) - basic_machine=m68k-sony - os=-newsos - ;; - news1000) - basic_machine=m68030-sony - os=-newsos - ;; - news-3600 | risc-news) - basic_machine=mips-sony - os=-newsos - ;; - necv70) - basic_machine=v70-nec - os=-sysv - ;; - next | m*-next) - basic_machine=m68k-next - case $os in - -nextstep* ) - ;; - -ns2*) - os=-nextstep2 - ;; - *) - os=-nextstep3 - ;; - esac - ;; - nh3000) - basic_machine=m68k-harris - os=-cxux - ;; - nh[45]000) - basic_machine=m88k-harris - os=-cxux - ;; - nindy960) - basic_machine=i960-intel - os=-nindy - ;; - mon960) - basic_machine=i960-intel - os=-mon960 - ;; - nonstopux) - basic_machine=mips-compaq - os=-nonstopux - ;; - np1) - basic_machine=np1-gould - ;; - neo-tandem) - basic_machine=neo-tandem - ;; - nse-tandem) - basic_machine=nse-tandem - ;; - nsr-tandem) - basic_machine=nsr-tandem - ;; - nsv-tandem) - basic_machine=nsv-tandem - ;; - nsx-tandem) - basic_machine=nsx-tandem - ;; - op50n-* | op60c-*) - basic_machine=hppa1.1-oki - os=-proelf - ;; - openrisc | openrisc-*) - basic_machine=or32-unknown - ;; - os400) - basic_machine=powerpc-ibm - os=-os400 - ;; - OSE68000 | ose68000) - basic_machine=m68000-ericsson - os=-ose - ;; - os68k) - basic_machine=m68k-none - os=-os68k - ;; - pa-hitachi) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - paragon) - basic_machine=i860-intel - os=-osf - ;; - parisc) - basic_machine=hppa-unknown - os=-linux - ;; - parisc-*) - basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'` - os=-linux - ;; - pbd) - basic_machine=sparc-tti - ;; - pbb) - basic_machine=m68k-tti - ;; - pc532 | pc532-*) - basic_machine=ns32k-pc532 - ;; - pc98) - basic_machine=i386-pc - ;; - pc98-*) - basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - pentium | p5 | k5 | k6 | nexgen | viac3) - basic_machine=i586-pc - ;; - pentiumpro | p6 | 6x86 | athlon | athlon_*) - basic_machine=i686-pc - ;; - pentiumii | pentium2 | pentiumiii | pentium3) - basic_machine=i686-pc - ;; - pentium4) - basic_machine=i786-pc - ;; - pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) - basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - pentiumpro-* | p6-* | 6x86-* | athlon-*) - basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) - basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - pentium4-*) - basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - pn) - basic_machine=pn-gould - ;; - power) basic_machine=power-ibm - ;; - ppc | ppcbe) basic_machine=powerpc-unknown - ;; - ppc-* | ppcbe-*) - basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - ppcle | powerpclittle) - basic_machine=powerpcle-unknown - ;; - ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - ppc64) basic_machine=powerpc64-unknown - ;; - ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - ppc64le | powerpc64little) - basic_machine=powerpc64le-unknown - ;; - ppc64le-* | powerpc64little-*) - basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - ps2) - basic_machine=i386-ibm - ;; - pw32) - basic_machine=i586-unknown - os=-pw32 - ;; - rdos | rdos64) - basic_machine=x86_64-pc - os=-rdos - ;; - rdos32) - basic_machine=i386-pc - os=-rdos - ;; - rom68k) - basic_machine=m68k-rom68k - os=-coff - ;; - rm[46]00) - basic_machine=mips-siemens - ;; - rtpc | rtpc-*) - basic_machine=romp-ibm - ;; - s390 | s390-*) - basic_machine=s390-ibm - ;; - s390x | s390x-*) - basic_machine=s390x-ibm - ;; - sa29200) - basic_machine=a29k-amd - os=-udi - ;; - sb1) - basic_machine=mipsisa64sb1-unknown - ;; - sb1el) - basic_machine=mipsisa64sb1el-unknown - ;; - sde) - basic_machine=mipsisa32-sde - os=-elf - ;; - sei) - basic_machine=mips-sei - os=-seiux - ;; - sequent) - basic_machine=i386-sequent - ;; - sh5el) - basic_machine=sh5le-unknown - ;; - simso-wrs) - basic_machine=sparclite-wrs - os=-vxworks - ;; - sps7) - basic_machine=m68k-bull - os=-sysv2 - ;; - spur) - basic_machine=spur-unknown - ;; - st2000) - basic_machine=m68k-tandem - ;; - stratus) - basic_machine=i860-stratus - os=-sysv4 - ;; - strongarm-* | thumb-*) - basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` - ;; - sun2) - basic_machine=m68000-sun - ;; - sun2os3) - basic_machine=m68000-sun - os=-sunos3 - ;; - sun2os4) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun3os3) - basic_machine=m68k-sun - os=-sunos3 - ;; - sun3os4) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun4os3) - basic_machine=sparc-sun - os=-sunos3 - ;; - sun4os4) - basic_machine=sparc-sun - os=-sunos4 - ;; - sun4sol2) - basic_machine=sparc-sun - os=-solaris2 - ;; - sun3 | sun3-*) - basic_machine=m68k-sun - ;; - sun4) - basic_machine=sparc-sun - ;; - sun386 | sun386i | roadrunner) - basic_machine=i386-sun - ;; - sv1) - basic_machine=sv1-cray - os=-unicos - ;; - symmetry) - basic_machine=i386-sequent - os=-dynix - ;; - t3e) - basic_machine=alphaev5-cray - os=-unicos - ;; - t90) - basic_machine=t90-cray - os=-unicos - ;; - tile*) - basic_machine=$basic_machine-unknown - os=-linux-gnu - ;; - tx39) - basic_machine=mipstx39-unknown - ;; - tx39el) - basic_machine=mipstx39el-unknown - ;; - toad1) - basic_machine=pdp10-xkl - os=-tops20 - ;; - tower | tower-32) - basic_machine=m68k-ncr - ;; - tpf) - basic_machine=s390x-ibm - os=-tpf - ;; - udi29k) - basic_machine=a29k-amd - os=-udi - ;; - ultra3) - basic_machine=a29k-nyu - os=-sym1 - ;; - v810 | necv810) - basic_machine=v810-nec - os=-none - ;; - vaxv) - basic_machine=vax-dec - os=-sysv - ;; - vms) - basic_machine=vax-dec - os=-vms - ;; - vpp*|vx|vx-*) - basic_machine=f301-fujitsu - ;; - vxworks960) - basic_machine=i960-wrs - os=-vxworks - ;; - vxworks68) - basic_machine=m68k-wrs - os=-vxworks - ;; - vxworks29k) - basic_machine=a29k-wrs - os=-vxworks - ;; - w65*) - basic_machine=w65-wdc - os=-none - ;; - w89k-*) - basic_machine=hppa1.1-winbond - os=-proelf - ;; - x64) - basic_machine=x86_64-pc - ;; - xbox) - basic_machine=i686-pc - os=-mingw32 - ;; - xps | xps100) - basic_machine=xps100-honeywell - ;; - xscale-* | xscalee[bl]-*) - basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` - ;; - ymp) - basic_machine=ymp-cray - os=-unicos - ;; - none) - basic_machine=none-none - os=-none - ;; - -# Here we handle the default manufacturer of certain CPU types. It is in -# some cases the only manufacturer, in others, it is the most popular. - w89k) - basic_machine=hppa1.1-winbond - ;; - op50n) - basic_machine=hppa1.1-oki - ;; - op60c) - basic_machine=hppa1.1-oki - ;; - romp) - basic_machine=romp-ibm - ;; - mmix) - basic_machine=mmix-knuth - ;; - rs6000) - basic_machine=rs6000-ibm - ;; - vax) - basic_machine=vax-dec - ;; - pdp11) - basic_machine=pdp11-dec - ;; - we32k) - basic_machine=we32k-att - ;; - sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) - basic_machine=sh-unknown - ;; - cydra) - basic_machine=cydra-cydrome - ;; - orion) - basic_machine=orion-highlevel - ;; - orion105) - basic_machine=clipper-highlevel - ;; - mac | mpw | mac-mpw) - basic_machine=m68k-apple - ;; - pmac | pmac-mpw) - basic_machine=powerpc-apple - ;; - *-unknown) - # Make sure to match an already-canonicalized machine name. - ;; - *) - echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 - exit 1 - ;; -esac - -# Here we canonicalize certain aliases for manufacturers. -case $basic_machine in - *-digital*) - basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'` - ;; - *-commodore*) - basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'` - ;; - *) - ;; -esac - -# Decode manufacturer-specific aliases for certain operating systems. - -if [ x"$os" != x"" ] -then -case $os in - # First match some system type aliases that might get confused - # with valid system types. - # -solaris* is a basic system type, with this one exception. - -auroraux) - os=-auroraux - ;; - -solaris1 | -solaris1.*) - os=`echo $os | sed -e 's|solaris1|sunos4|'` - ;; - -solaris) - os=-solaris2 - ;; - -unixware*) - os=-sysv4.2uw - ;; - -gnu/linux*) - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` - ;; - # es1800 is here to avoid being matched by es* (a different OS) - -es1800*) - os=-ose - ;; - # Now accept the basic system types. - # The portable systems comes first. - # Each alternative MUST end in a * to match a version number. - # -sysv* is not here because it comes later, after sysvr4. - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ - | -sym* | -kopensolaris* | -plan9* \ - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* | -aros* | -cloudabi* | -sortix* \ - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \ - | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ - | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ - | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \ - | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ - | -linux-newlib* | -linux-musl* | -linux-uclibc* \ - | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \ - | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ - | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ - | -morphos* | -superux* | -rtmk* | -windiss* \ - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ - | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ - | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \ - | -midnightbsd*) - # Remember, each alternative MUST END IN *, to match a version number. - ;; - -qnx*) - case $basic_machine in - x86-* | i*86-*) - ;; - *) - os=-nto$os - ;; - esac - ;; - -nto-qnx*) - ;; - -nto*) - os=`echo $os | sed -e 's|nto|nto-qnx|'` - ;; - -sim | -xray | -os68k* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* \ - | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) - ;; - -mac*) - os=`echo "$os" | sed -e 's|mac|macos|'` - ;; - -linux-dietlibc) - os=-linux-dietlibc - ;; - -linux*) - os=`echo $os | sed -e 's|linux|linux-gnu|'` - ;; - -sunos5*) - os=`echo "$os" | sed -e 's|sunos5|solaris2|'` - ;; - -sunos6*) - os=`echo "$os" | sed -e 's|sunos6|solaris3|'` - ;; - -opened*) - os=-openedition - ;; - -os400*) - os=-os400 - ;; - -wince*) - os=-wince - ;; - -utek*) - os=-bsd - ;; - -dynix*) - os=-bsd - ;; - -acis*) - os=-aos - ;; - -atheos*) - os=-atheos - ;; - -syllable*) - os=-syllable - ;; - -386bsd) - os=-bsd - ;; - -ctix* | -uts*) - os=-sysv - ;; - -nova*) - os=-rtmk-nova - ;; - -ns2) - os=-nextstep2 - ;; - -nsk*) - os=-nsk - ;; - # Preserve the version number of sinix5. - -sinix5.*) - os=`echo $os | sed -e 's|sinix|sysv|'` - ;; - -sinix*) - os=-sysv4 - ;; - -tpf*) - os=-tpf - ;; - -triton*) - os=-sysv3 - ;; - -oss*) - os=-sysv3 - ;; - -svr4*) - os=-sysv4 - ;; - -svr3) - os=-sysv3 - ;; - -sysvr4) - os=-sysv4 - ;; - # This must come after -sysvr4. - -sysv*) - ;; - -ose*) - os=-ose - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - os=-mint - ;; - -zvmoe) - os=-zvmoe - ;; - -dicos*) - os=-dicos - ;; - -pikeos*) - # Until real need of OS specific support for - # particular features comes up, bare metal - # configurations are quite functional. - case $basic_machine in - arm*) - os=-eabi - ;; - *) - os=-elf - ;; - esac - ;; - -nacl*) - ;; - -ios) - ;; - -none) - ;; - *) - # Get rid of the `-' at the beginning of $os. - os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2 - exit 1 - ;; -esac -else - -# Here we handle the default operating systems that come with various machines. -# The value should be what the vendor currently ships out the door with their -# machine or put another way, the most popular os provided with the machine. - -# Note that if you're going to try to match "-MANUFACTURER" here (say, -# "-sun"), then you have to tell the case statement up towards the top -# that MANUFACTURER isn't an operating system. Otherwise, code above -# will signal an error saying that MANUFACTURER isn't an operating -# system, and we'll never get to this point. - -case $basic_machine in - score-*) - os=-elf - ;; - spu-*) - os=-elf - ;; - *-acorn) - os=-riscix1.2 - ;; - arm*-rebel) - os=-linux - ;; - arm*-semi) - os=-aout - ;; - c4x-* | tic4x-*) - os=-coff - ;; - c8051-*) - os=-elf - ;; - hexagon-*) - os=-elf - ;; - tic54x-*) - os=-coff - ;; - tic55x-*) - os=-coff - ;; - tic6x-*) - os=-coff - ;; - # This must come before the *-dec entry. - pdp10-*) - os=-tops20 - ;; - pdp11-*) - os=-none - ;; - *-dec | vax-*) - os=-ultrix4.2 - ;; - m68*-apollo) - os=-domain - ;; - i386-sun) - os=-sunos4.0.2 - ;; - m68000-sun) - os=-sunos3 - ;; - m68*-cisco) - os=-aout - ;; - mep-*) - os=-elf - ;; - mips*-cisco) - os=-elf - ;; - mips*-*) - os=-elf - ;; - or32-*) - os=-coff - ;; - *-tti) # must be before sparc entry or we get the wrong os. - os=-sysv3 - ;; - sparc-* | *-sun) - os=-sunos4.1.1 - ;; - pru-*) - os=-elf - ;; - *-be) - os=-beos - ;; - *-ibm) - os=-aix - ;; - *-knuth) - os=-mmixware - ;; - *-wec) - os=-proelf - ;; - *-winbond) - os=-proelf - ;; - *-oki) - os=-proelf - ;; - *-hp) - os=-hpux - ;; - *-hitachi) - os=-hiux - ;; - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) - os=-sysv - ;; - *-cbm) - os=-amigaos - ;; - *-dg) - os=-dgux - ;; - *-dolphin) - os=-sysv3 - ;; - m68k-ccur) - os=-rtu - ;; - m88k-omron*) - os=-luna - ;; - *-next) - os=-nextstep - ;; - *-sequent) - os=-ptx - ;; - *-crds) - os=-unos - ;; - *-ns) - os=-genix - ;; - i370-*) - os=-mvs - ;; - *-gould) - os=-sysv - ;; - *-highlevel) - os=-bsd - ;; - *-encore) - os=-bsd - ;; - *-sgi) - os=-irix - ;; - *-siemens) - os=-sysv4 - ;; - *-masscomp) - os=-rtu - ;; - f30[01]-fujitsu | f700-fujitsu) - os=-uxpv - ;; - *-rom68k) - os=-coff - ;; - *-*bug) - os=-coff - ;; - *-apple) - os=-macos - ;; - *-atari*) - os=-mint - ;; - *) - os=-none - ;; -esac -fi - -# Here we handle the case where we know the os, and the CPU type, but not the -# manufacturer. We pick the logical manufacturer. -vendor=unknown -case $basic_machine in - *-unknown) - case $os in - -riscix*) - vendor=acorn - ;; - -sunos*) - vendor=sun - ;; - -cnk*|-aix*) - vendor=ibm - ;; - -beos*) - vendor=be - ;; - -hpux*) - vendor=hp - ;; - -mpeix*) - vendor=hp - ;; - -hiux*) - vendor=hitachi - ;; - -unos*) - vendor=crds - ;; - -dgux*) - vendor=dg - ;; - -luna*) - vendor=omron - ;; - -genix*) - vendor=ns - ;; - -mvs* | -opened*) - vendor=ibm - ;; - -os400*) - vendor=ibm - ;; - -ptx*) - vendor=sequent - ;; - -tpf*) - vendor=ibm - ;; - -vxsim* | -vxworks* | -windiss*) - vendor=wrs - ;; - -aux*) - vendor=apple - ;; - -hms*) - vendor=hitachi - ;; - -mpw* | -macos*) - vendor=apple - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - vendor=atari - ;; - -vos*) - vendor=stratus - ;; - esac - basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"` - ;; -esac - -echo "$basic_machine$os" -exit - -# Local variables: -# eval: (add-hook 'write-file-functions 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff --git a/build-aux/depcomp b/build-aux/depcomp deleted file mode 100755 index b39f98f..0000000 --- a/build-aux/depcomp +++ /dev/null @@ -1,791 +0,0 @@ -#! /bin/sh -# depcomp - compile a program generating dependencies as side-effects - -scriptversion=2016-01-11.22; # UTC - -# Copyright (C) 1999-2017 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Originally written by Alexandre Oliva . - -case $1 in - '') - echo "$0: No command. Try '$0 --help' for more information." 1>&2 - exit 1; - ;; - -h | --h*) - cat <<\EOF -Usage: depcomp [--help] [--version] PROGRAM [ARGS] - -Run PROGRAMS ARGS to compile a file, generating dependencies -as side-effects. - -Environment variables: - depmode Dependency tracking mode. - source Source file read by 'PROGRAMS ARGS'. - object Object file output by 'PROGRAMS ARGS'. - DEPDIR directory where to store dependencies. - depfile Dependency file to output. - tmpdepfile Temporary file to use when outputting dependencies. - libtool Whether libtool is used (yes/no). - -Report bugs to . -EOF - exit $? - ;; - -v | --v*) - echo "depcomp $scriptversion" - exit $? - ;; -esac - -# Get the directory component of the given path, and save it in the -# global variables '$dir'. Note that this directory component will -# be either empty or ending with a '/' character. This is deliberate. -set_dir_from () -{ - case $1 in - */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; - *) dir=;; - esac -} - -# Get the suffix-stripped basename of the given path, and save it the -# global variable '$base'. -set_base_from () -{ - base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` -} - -# If no dependency file was actually created by the compiler invocation, -# we still have to create a dummy depfile, to avoid errors with the -# Makefile "include basename.Plo" scheme. -make_dummy_depfile () -{ - echo "#dummy" > "$depfile" -} - -# Factor out some common post-processing of the generated depfile. -# Requires the auxiliary global variable '$tmpdepfile' to be set. -aix_post_process_depfile () -{ - # If the compiler actually managed to produce a dependency file, - # post-process it. - if test -f "$tmpdepfile"; then - # Each line is of the form 'foo.o: dependency.h'. - # Do two passes, one to just change these to - # $object: dependency.h - # and one to simply output - # dependency.h: - # which is needed to avoid the deleted-header problem. - { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" - sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" - } > "$depfile" - rm -f "$tmpdepfile" - else - make_dummy_depfile - fi -} - -# A tabulation character. -tab=' ' -# A newline character. -nl=' -' -# Character ranges might be problematic outside the C locale. -# These definitions help. -upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ -lower=abcdefghijklmnopqrstuvwxyz -digits=0123456789 -alpha=${upper}${lower} - -if test -z "$depmode" || test -z "$source" || test -z "$object"; then - echo "depcomp: Variables source, object and depmode must be set" 1>&2 - exit 1 -fi - -# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. -depfile=${depfile-`echo "$object" | - sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} -tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} - -rm -f "$tmpdepfile" - -# Avoid interferences from the environment. -gccflag= dashmflag= - -# Some modes work just like other modes, but use different flags. We -# parameterize here, but still list the modes in the big case below, -# to make depend.m4 easier to write. Note that we *cannot* use a case -# here, because this file can only contain one case statement. -if test "$depmode" = hp; then - # HP compiler uses -M and no extra arg. - gccflag=-M - depmode=gcc -fi - -if test "$depmode" = dashXmstdout; then - # This is just like dashmstdout with a different argument. - dashmflag=-xM - depmode=dashmstdout -fi - -cygpath_u="cygpath -u -f -" -if test "$depmode" = msvcmsys; then - # This is just like msvisualcpp but w/o cygpath translation. - # Just convert the backslash-escaped backslashes to single forward - # slashes to satisfy depend.m4 - cygpath_u='sed s,\\\\,/,g' - depmode=msvisualcpp -fi - -if test "$depmode" = msvc7msys; then - # This is just like msvc7 but w/o cygpath translation. - # Just convert the backslash-escaped backslashes to single forward - # slashes to satisfy depend.m4 - cygpath_u='sed s,\\\\,/,g' - depmode=msvc7 -fi - -if test "$depmode" = xlc; then - # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. - gccflag=-qmakedep=gcc,-MF - depmode=gcc -fi - -case "$depmode" in -gcc3) -## gcc 3 implements dependency tracking that does exactly what -## we want. Yay! Note: for some reason libtool 1.4 doesn't like -## it if -MD -MP comes after the -MF stuff. Hmm. -## Unfortunately, FreeBSD c89 acceptance of flags depends upon -## the command line argument order; so add the flags where they -## appear in depend2.am. Note that the slowdown incurred here -## affects only configure: in makefiles, %FASTDEP% shortcuts this. - for arg - do - case $arg in - -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; - *) set fnord "$@" "$arg" ;; - esac - shift # fnord - shift # $arg - done - "$@" - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - mv "$tmpdepfile" "$depfile" - ;; - -gcc) -## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. -## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. -## (see the conditional assignment to $gccflag above). -## There are various ways to get dependency output from gcc. Here's -## why we pick this rather obscure method: -## - Don't want to use -MD because we'd like the dependencies to end -## up in a subdir. Having to rename by hand is ugly. -## (We might end up doing this anyway to support other compilers.) -## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like -## -MM, not -M (despite what the docs say). Also, it might not be -## supported by the other compilers which use the 'gcc' depmode. -## - Using -M directly means running the compiler twice (even worse -## than renaming). - if test -z "$gccflag"; then - gccflag=-MD, - fi - "$@" -Wp,"$gccflag$tmpdepfile" - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - echo "$object : \\" > "$depfile" - # The second -e expression handles DOS-style file names with drive - # letters. - sed -e 's/^[^:]*: / /' \ - -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" -## This next piece of magic avoids the "deleted header file" problem. -## The problem is that when a header file which appears in a .P file -## is deleted, the dependency causes make to die (because there is -## typically no way to rebuild the header). We avoid this by adding -## dummy dependencies for each header file. Too bad gcc doesn't do -## this for us directly. -## Some versions of gcc put a space before the ':'. On the theory -## that the space means something, we add a space to the output as -## well. hp depmode also adds that space, but also prefixes the VPATH -## to the object. Take care to not repeat it in the output. -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -hp) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -sgi) - if test "$libtool" = yes; then - "$@" "-Wp,-MDupdate,$tmpdepfile" - else - "$@" -MDupdate "$tmpdepfile" - fi - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - - if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files - echo "$object : \\" > "$depfile" - # Clip off the initial element (the dependent). Don't try to be - # clever and replace this with sed code, as IRIX sed won't handle - # lines with more than a fixed number of characters (4096 in - # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; - # the IRIX cc adds comments like '#:fec' to the end of the - # dependency line. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ - | tr "$nl" ' ' >> "$depfile" - echo >> "$depfile" - # The second pass generates a dummy entry for each header file. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ - >> "$depfile" - else - make_dummy_depfile - fi - rm -f "$tmpdepfile" - ;; - -xlc) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -aix) - # The C for AIX Compiler uses -M and outputs the dependencies - # in a .u file. In older versions, this file always lives in the - # current directory. Also, the AIX compiler puts '$object:' at the - # start of each line; $object doesn't have directory information. - # Version 6 uses the directory in both cases. - set_dir_from "$object" - set_base_from "$object" - if test "$libtool" = yes; then - tmpdepfile1=$dir$base.u - tmpdepfile2=$base.u - tmpdepfile3=$dir.libs/$base.u - "$@" -Wc,-M - else - tmpdepfile1=$dir$base.u - tmpdepfile2=$dir$base.u - tmpdepfile3=$dir$base.u - "$@" -M - fi - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - do - test -f "$tmpdepfile" && break - done - aix_post_process_depfile - ;; - -tcc) - # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 - # FIXME: That version still under development at the moment of writing. - # Make that this statement remains true also for stable, released - # versions. - # It will wrap lines (doesn't matter whether long or short) with a - # trailing '\', as in: - # - # foo.o : \ - # foo.c \ - # foo.h \ - # - # It will put a trailing '\' even on the last line, and will use leading - # spaces rather than leading tabs (at least since its commit 0394caf7 - # "Emit spaces for -MD"). - "$@" -MD -MF "$tmpdepfile" - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. - # We have to change lines of the first kind to '$object: \'. - sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" - # And for each line of the second kind, we have to emit a 'dep.h:' - # dummy dependency, to avoid the deleted-header problem. - sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" - rm -f "$tmpdepfile" - ;; - -## The order of this option in the case statement is important, since the -## shell code in configure will try each of these formats in the order -## listed in this file. A plain '-MD' option would be understood by many -## compilers, so we must ensure this comes after the gcc and icc options. -pgcc) - # Portland's C compiler understands '-MD'. - # Will always output deps to 'file.d' where file is the root name of the - # source file under compilation, even if file resides in a subdirectory. - # The object file name does not affect the name of the '.d' file. - # pgcc 10.2 will output - # foo.o: sub/foo.c sub/foo.h - # and will wrap long lines using '\' : - # foo.o: sub/foo.c ... \ - # sub/foo.h ... \ - # ... - set_dir_from "$object" - # Use the source, not the object, to determine the base name, since - # that's sadly what pgcc will do too. - set_base_from "$source" - tmpdepfile=$base.d - - # For projects that build the same source file twice into different object - # files, the pgcc approach of using the *source* file root name can cause - # problems in parallel builds. Use a locking strategy to avoid stomping on - # the same $tmpdepfile. - lockdir=$base.d-lock - trap " - echo '$0: caught signal, cleaning up...' >&2 - rmdir '$lockdir' - exit 1 - " 1 2 13 15 - numtries=100 - i=$numtries - while test $i -gt 0; do - # mkdir is a portable test-and-set. - if mkdir "$lockdir" 2>/dev/null; then - # This process acquired the lock. - "$@" -MD - stat=$? - # Release the lock. - rmdir "$lockdir" - break - else - # If the lock is being held by a different process, wait - # until the winning process is done or we timeout. - while test -d "$lockdir" && test $i -gt 0; do - sleep 1 - i=`expr $i - 1` - done - fi - i=`expr $i - 1` - done - trap - 1 2 13 15 - if test $i -le 0; then - echo "$0: failed to acquire lock after $numtries attempts" >&2 - echo "$0: check lockdir '$lockdir'" >&2 - exit 1 - fi - - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - # Each line is of the form `foo.o: dependent.h', - # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. - # Do two passes, one to just change these to - # `$object: dependent.h' and one to simply `dependent.h:'. - sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" - # Some versions of the HPUX 10.20 sed can't process this invocation - # correctly. Breaking it into two sed invocations is a workaround. - sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -hp2) - # The "hp" stanza above does not work with aCC (C++) and HP's ia64 - # compilers, which have integrated preprocessors. The correct option - # to use with these is +Maked; it writes dependencies to a file named - # 'foo.d', which lands next to the object file, wherever that - # happens to be. - # Much of this is similar to the tru64 case; see comments there. - set_dir_from "$object" - set_base_from "$object" - if test "$libtool" = yes; then - tmpdepfile1=$dir$base.d - tmpdepfile2=$dir.libs/$base.d - "$@" -Wc,+Maked - else - tmpdepfile1=$dir$base.d - tmpdepfile2=$dir$base.d - "$@" +Maked - fi - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile1" "$tmpdepfile2" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" - do - test -f "$tmpdepfile" && break - done - if test -f "$tmpdepfile"; then - sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" - # Add 'dependent.h:' lines. - sed -ne '2,${ - s/^ *// - s/ \\*$// - s/$/:/ - p - }' "$tmpdepfile" >> "$depfile" - else - make_dummy_depfile - fi - rm -f "$tmpdepfile" "$tmpdepfile2" - ;; - -tru64) - # The Tru64 compiler uses -MD to generate dependencies as a side - # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. - # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put - # dependencies in 'foo.d' instead, so we check for that too. - # Subdirectories are respected. - set_dir_from "$object" - set_base_from "$object" - - if test "$libtool" = yes; then - # Libtool generates 2 separate objects for the 2 libraries. These - # two compilations output dependencies in $dir.libs/$base.o.d and - # in $dir$base.o.d. We have to check for both files, because - # one of the two compilations can be disabled. We should prefer - # $dir$base.o.d over $dir.libs/$base.o.d because the latter is - # automatically cleaned when .libs/ is deleted, while ignoring - # the former would cause a distcleancheck panic. - tmpdepfile1=$dir$base.o.d # libtool 1.5 - tmpdepfile2=$dir.libs/$base.o.d # Likewise. - tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 - "$@" -Wc,-MD - else - tmpdepfile1=$dir$base.d - tmpdepfile2=$dir$base.d - tmpdepfile3=$dir$base.d - "$@" -MD - fi - - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - do - test -f "$tmpdepfile" && break - done - # Same post-processing that is required for AIX mode. - aix_post_process_depfile - ;; - -msvc7) - if test "$libtool" = yes; then - showIncludes=-Wc,-showIncludes - else - showIncludes=-showIncludes - fi - "$@" $showIncludes > "$tmpdepfile" - stat=$? - grep -v '^Note: including file: ' "$tmpdepfile" - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - echo "$object : \\" > "$depfile" - # The first sed program below extracts the file names and escapes - # backslashes for cygpath. The second sed program outputs the file - # name when reading, but also accumulates all include files in the - # hold buffer in order to output them again at the end. This only - # works with sed implementations that can handle large buffers. - sed < "$tmpdepfile" -n ' -/^Note: including file: *\(.*\)/ { - s//\1/ - s/\\/\\\\/g - p -}' | $cygpath_u | sort -u | sed -n ' -s/ /\\ /g -s/\(.*\)/'"$tab"'\1 \\/p -s/.\(.*\) \\/\1:/ -H -$ { - s/.*/'"$tab"'/ - G - p -}' >> "$depfile" - echo >> "$depfile" # make sure the fragment doesn't end with a backslash - rm -f "$tmpdepfile" - ;; - -msvc7msys) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -#nosideeffect) - # This comment above is used by automake to tell side-effect - # dependency tracking mechanisms from slower ones. - -dashmstdout) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout, regardless of -o. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - # Remove '-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - test -z "$dashmflag" && dashmflag=-M - # Require at least two characters before searching for ':' - # in the target name. This is to cope with DOS-style filenames: - # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. - "$@" $dashmflag | - sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" - rm -f "$depfile" - cat < "$tmpdepfile" > "$depfile" - # Some versions of the HPUX 10.20 sed can't process this sed invocation - # correctly. Breaking it into two sed invocations is a workaround. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -dashXmstdout) - # This case only exists to satisfy depend.m4. It is never actually - # run, as this mode is specially recognized in the preamble. - exit 1 - ;; - -makedepend) - "$@" || exit $? - # Remove any Libtool call - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - # X makedepend - shift - cleared=no eat=no - for arg - do - case $cleared in - no) - set ""; shift - cleared=yes ;; - esac - if test $eat = yes; then - eat=no - continue - fi - case "$arg" in - -D*|-I*) - set fnord "$@" "$arg"; shift ;; - # Strip any option that makedepend may not understand. Remove - # the object too, otherwise makedepend will parse it as a source file. - -arch) - eat=yes ;; - -*|$object) - ;; - *) - set fnord "$@" "$arg"; shift ;; - esac - done - obj_suffix=`echo "$object" | sed 's/^.*\././'` - touch "$tmpdepfile" - ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" - rm -f "$depfile" - # makedepend may prepend the VPATH from the source file name to the object. - # No need to regex-escape $object, excess matching of '.' is harmless. - sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" - # Some versions of the HPUX 10.20 sed can't process the last invocation - # correctly. Breaking it into two sed invocations is a workaround. - sed '1,2d' "$tmpdepfile" \ - | tr ' ' "$nl" \ - | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" "$tmpdepfile".bak - ;; - -cpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - # Remove '-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - "$@" -E \ - | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ - -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ - | sed '$ s: \\$::' > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - cat < "$tmpdepfile" >> "$depfile" - sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvisualcpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - IFS=" " - for arg - do - case "$arg" in - -o) - shift - ;; - $object) - shift - ;; - "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") - set fnord "$@" - shift - shift - ;; - *) - set fnord "$@" "$arg" - shift - shift - ;; - esac - done - "$@" -E 2>/dev/null | - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" - echo "$tab" >> "$depfile" - sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvcmsys) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -none) - exec "$@" - ;; - -*) - echo "Unknown depmode $depmode" 1>&2 - exit 1 - ;; -esac - -exit 0 - -# Local Variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC0" -# time-stamp-end: "; # UTC" -# End: diff --git a/build-aux/install-sh b/build-aux/install-sh deleted file mode 100755 index 59990a1..0000000 --- a/build-aux/install-sh +++ /dev/null @@ -1,508 +0,0 @@ -#!/bin/sh -# install - install a program, script, or datafile - -scriptversion=2014-09-12.12; # UTC - -# This originates from X11R5 (mit/util/scripts/install.sh), which was -# later released in X11R6 (xc/config/util/install.sh) with the -# following copyright and license. -# -# Copyright (C) 1994 X Consortium -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- -# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# -# Except as contained in this notice, the name of the X Consortium shall not -# be used in advertising or otherwise to promote the sale, use or other deal- -# ings in this Software without prior written authorization from the X Consor- -# tium. -# -# -# FSF changes to this file are in the public domain. -# -# Calling this script install-sh is preferred over install.sh, to prevent -# 'make' implicit rules from creating a file called install from it -# when there is no Makefile. -# -# This script is compatible with the BSD install script, but was written -# from scratch. - -tab=' ' -nl=' -' -IFS=" $tab$nl" - -# Set DOITPROG to "echo" to test this script. - -doit=${DOITPROG-} -doit_exec=${doit:-exec} - -# Put in absolute file names if you don't have them in your path; -# or use environment vars. - -chgrpprog=${CHGRPPROG-chgrp} -chmodprog=${CHMODPROG-chmod} -chownprog=${CHOWNPROG-chown} -cmpprog=${CMPPROG-cmp} -cpprog=${CPPROG-cp} -mkdirprog=${MKDIRPROG-mkdir} -mvprog=${MVPROG-mv} -rmprog=${RMPROG-rm} -stripprog=${STRIPPROG-strip} - -posix_mkdir= - -# Desired mode of installed file. -mode=0755 - -chgrpcmd= -chmodcmd=$chmodprog -chowncmd= -mvcmd=$mvprog -rmcmd="$rmprog -f" -stripcmd= - -src= -dst= -dir_arg= -dst_arg= - -copy_on_change=false -is_target_a_directory=possibly - -usage="\ -Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE - or: $0 [OPTION]... SRCFILES... DIRECTORY - or: $0 [OPTION]... -t DIRECTORY SRCFILES... - or: $0 [OPTION]... -d DIRECTORIES... - -In the 1st form, copy SRCFILE to DSTFILE. -In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. -In the 4th, create DIRECTORIES. - -Options: - --help display this help and exit. - --version display version info and exit. - - -c (ignored) - -C install only if different (preserve the last data modification time) - -d create directories instead of installing files. - -g GROUP $chgrpprog installed files to GROUP. - -m MODE $chmodprog installed files to MODE. - -o USER $chownprog installed files to USER. - -s $stripprog installed files. - -t DIRECTORY install into DIRECTORY. - -T report an error if DSTFILE is a directory. - -Environment variables override the default commands: - CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG - RMPROG STRIPPROG -" - -while test $# -ne 0; do - case $1 in - -c) ;; - - -C) copy_on_change=true;; - - -d) dir_arg=true;; - - -g) chgrpcmd="$chgrpprog $2" - shift;; - - --help) echo "$usage"; exit $?;; - - -m) mode=$2 - case $mode in - *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) - echo "$0: invalid mode: $mode" >&2 - exit 1;; - esac - shift;; - - -o) chowncmd="$chownprog $2" - shift;; - - -s) stripcmd=$stripprog;; - - -t) - is_target_a_directory=always - dst_arg=$2 - # Protect names problematic for 'test' and other utilities. - case $dst_arg in - -* | [=\(\)!]) dst_arg=./$dst_arg;; - esac - shift;; - - -T) is_target_a_directory=never;; - - --version) echo "$0 $scriptversion"; exit $?;; - - --) shift - break;; - - -*) echo "$0: invalid option: $1" >&2 - exit 1;; - - *) break;; - esac - shift -done - -# We allow the use of options -d and -T together, by making -d -# take the precedence; this is for compatibility with GNU install. - -if test -n "$dir_arg"; then - if test -n "$dst_arg"; then - echo "$0: target directory not allowed when installing a directory." >&2 - exit 1 - fi -fi - -if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then - # When -d is used, all remaining arguments are directories to create. - # When -t is used, the destination is already specified. - # Otherwise, the last argument is the destination. Remove it from $@. - for arg - do - if test -n "$dst_arg"; then - # $@ is not empty: it contains at least $arg. - set fnord "$@" "$dst_arg" - shift # fnord - fi - shift # arg - dst_arg=$arg - # Protect names problematic for 'test' and other utilities. - case $dst_arg in - -* | [=\(\)!]) dst_arg=./$dst_arg;; - esac - done -fi - -if test $# -eq 0; then - if test -z "$dir_arg"; then - echo "$0: no input file specified." >&2 - exit 1 - fi - # It's OK to call 'install-sh -d' without argument. - # This can happen when creating conditional directories. - exit 0 -fi - -if test -z "$dir_arg"; then - if test $# -gt 1 || test "$is_target_a_directory" = always; then - if test ! -d "$dst_arg"; then - echo "$0: $dst_arg: Is not a directory." >&2 - exit 1 - fi - fi -fi - -if test -z "$dir_arg"; then - do_exit='(exit $ret); exit $ret' - trap "ret=129; $do_exit" 1 - trap "ret=130; $do_exit" 2 - trap "ret=141; $do_exit" 13 - trap "ret=143; $do_exit" 15 - - # Set umask so as not to create temps with too-generous modes. - # However, 'strip' requires both read and write access to temps. - case $mode in - # Optimize common cases. - *644) cp_umask=133;; - *755) cp_umask=22;; - - *[0-7]) - if test -z "$stripcmd"; then - u_plus_rw= - else - u_plus_rw='% 200' - fi - cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; - *) - if test -z "$stripcmd"; then - u_plus_rw= - else - u_plus_rw=,u+rw - fi - cp_umask=$mode$u_plus_rw;; - esac -fi - -for src -do - # Protect names problematic for 'test' and other utilities. - case $src in - -* | [=\(\)!]) src=./$src;; - esac - - if test -n "$dir_arg"; then - dst=$src - dstdir=$dst - test -d "$dstdir" - dstdir_status=$? - else - - # Waiting for this to be detected by the "$cpprog $src $dsttmp" command - # might cause directories to be created, which would be especially bad - # if $src (and thus $dsttmp) contains '*'. - if test ! -f "$src" && test ! -d "$src"; then - echo "$0: $src does not exist." >&2 - exit 1 - fi - - if test -z "$dst_arg"; then - echo "$0: no destination specified." >&2 - exit 1 - fi - dst=$dst_arg - - # If destination is a directory, append the input filename; won't work - # if double slashes aren't ignored. - if test -d "$dst"; then - if test "$is_target_a_directory" = never; then - echo "$0: $dst_arg: Is a directory" >&2 - exit 1 - fi - dstdir=$dst - dst=$dstdir/`basename "$src"` - dstdir_status=0 - else - dstdir=`dirname "$dst"` - test -d "$dstdir" - dstdir_status=$? - fi - fi - - obsolete_mkdir_used=false - - if test $dstdir_status != 0; then - case $posix_mkdir in - '') - # Create intermediate dirs using mode 755 as modified by the umask. - # This is like FreeBSD 'install' as of 1997-10-28. - umask=`umask` - case $stripcmd.$umask in - # Optimize common cases. - *[2367][2367]) mkdir_umask=$umask;; - .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; - - *[0-7]) - mkdir_umask=`expr $umask + 22 \ - - $umask % 100 % 40 + $umask % 20 \ - - $umask % 10 % 4 + $umask % 2 - `;; - *) mkdir_umask=$umask,go-w;; - esac - - # With -d, create the new directory with the user-specified mode. - # Otherwise, rely on $mkdir_umask. - if test -n "$dir_arg"; then - mkdir_mode=-m$mode - else - mkdir_mode= - fi - - posix_mkdir=false - case $umask in - *[123567][0-7][0-7]) - # POSIX mkdir -p sets u+wx bits regardless of umask, which - # is incompatible with FreeBSD 'install' when (umask & 300) != 0. - ;; - *) - # $RANDOM is not portable (e.g. dash); use it when possible to - # lower collision chance - tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ - trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 - - # As "mkdir -p" follows symlinks and we work in /tmp possibly; so - # create the $tmpdir first (and fail if unsuccessful) to make sure - # that nobody tries to guess the $tmpdir name. - if (umask $mkdir_umask && - $mkdirprog $mkdir_mode "$tmpdir" && - exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 - then - if test -z "$dir_arg" || { - # Check for POSIX incompatibilities with -m. - # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or - # other-writable bit of parent directory when it shouldn't. - # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. - test_tmpdir="$tmpdir/a" - ls_ld_tmpdir=`ls -ld "$test_tmpdir"` - case $ls_ld_tmpdir in - d????-?r-*) different_mode=700;; - d????-?--*) different_mode=755;; - *) false;; - esac && - $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { - ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` - test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" - } - } - then posix_mkdir=: - fi - rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" - else - # Remove any dirs left behind by ancient mkdir implementations. - rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null - fi - trap '' 0;; - esac;; - esac - - if - $posix_mkdir && ( - umask $mkdir_umask && - $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" - ) - then : - else - - # The umask is ridiculous, or mkdir does not conform to POSIX, - # or it failed possibly due to a race condition. Create the - # directory the slow way, step by step, checking for races as we go. - - case $dstdir in - /*) prefix='/';; - [-=\(\)!]*) prefix='./';; - *) prefix='';; - esac - - oIFS=$IFS - IFS=/ - set -f - set fnord $dstdir - shift - set +f - IFS=$oIFS - - prefixes= - - for d - do - test X"$d" = X && continue - - prefix=$prefix$d - if test -d "$prefix"; then - prefixes= - else - if $posix_mkdir; then - (umask=$mkdir_umask && - $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break - # Don't fail if two instances are running concurrently. - test -d "$prefix" || exit 1 - else - case $prefix in - *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; - *) qprefix=$prefix;; - esac - prefixes="$prefixes '$qprefix'" - fi - fi - prefix=$prefix/ - done - - if test -n "$prefixes"; then - # Don't fail if two instances are running concurrently. - (umask $mkdir_umask && - eval "\$doit_exec \$mkdirprog $prefixes") || - test -d "$dstdir" || exit 1 - obsolete_mkdir_used=true - fi - fi - fi - - if test -n "$dir_arg"; then - { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && - { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && - { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || - test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 - else - - # Make a couple of temp file names in the proper directory. - dsttmp=$dstdir/_inst.$$_ - rmtmp=$dstdir/_rm.$$_ - - # Trap to clean up those temp files at exit. - trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 - - # Copy the file name to the temp name. - (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && - - # and set any options; do chmod last to preserve setuid bits. - # - # If any of these fail, we abort the whole thing. If we want to - # ignore errors from any of these, just make sure not to ignore - # errors from the above "$doit $cpprog $src $dsttmp" command. - # - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && - { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && - { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && - { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && - - # If -C, don't bother to copy if it wouldn't change the file. - if $copy_on_change && - old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && - new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && - set -f && - set X $old && old=:$2:$4:$5:$6 && - set X $new && new=:$2:$4:$5:$6 && - set +f && - test "$old" = "$new" && - $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 - then - rm -f "$dsttmp" - else - # Rename the file to the real destination. - $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || - - # The rename failed, perhaps because mv can't rename something else - # to itself, or perhaps because mv is so ancient that it does not - # support -f. - { - # Now remove or move aside any old file at destination location. - # We try this two ways since rm can't unlink itself on some - # systems and the destination file might be busy for other - # reasons. In this case, the final cleanup might fail but the new - # file should still install successfully. - { - test ! -f "$dst" || - $doit $rmcmd -f "$dst" 2>/dev/null || - { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && - { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } - } || - { echo "$0: cannot unlink or rename $dst" >&2 - (exit 1); exit 1 - } - } && - - # Now rename the file to the real destination. - $doit $mvcmd "$dsttmp" "$dst" - } - fi || exit 1 - - trap '' 0 - fi -done - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh deleted file mode 100644 index a736cf9..0000000 --- a/build-aux/ltmain.sh +++ /dev/null @@ -1,11156 +0,0 @@ -#! /bin/sh -## DO NOT EDIT - This file generated from ./build-aux/ltmain.in -## by inline-source v2014-01-03.01 - -# libtool (GNU libtool) 2.4.6 -# Provide generalized library-building support services. -# Written by Gordon Matzigkeit , 1996 - -# Copyright (C) 1996-2015 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. There is NO -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -# GNU Libtool is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# As a special exception to the GNU General Public License, -# if you distribute this file as part of a program or library that -# is built using GNU Libtool, you may include this file under the -# same distribution terms that you use for the rest of that program. -# -# GNU Libtool is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - - -PROGRAM=libtool -PACKAGE=libtool -VERSION="2.4.6 Debian-2.4.6-2" -package_revision=2.4.6 - - -## ------ ## -## Usage. ## -## ------ ## - -# Run './libtool --help' for help with using this script from the -# command line. - - -## ------------------------------- ## -## User overridable command paths. ## -## ------------------------------- ## - -# After configure completes, it has a better idea of some of the -# shell tools we need than the defaults used by the functions shared -# with bootstrap, so set those here where they can still be over- -# ridden by the user, but otherwise take precedence. - -: ${AUTOCONF="autoconf"} -: ${AUTOMAKE="automake"} - - -## -------------------------- ## -## Source external libraries. ## -## -------------------------- ## - -# Much of our low-level functionality needs to be sourced from external -# libraries, which are installed to $pkgauxdir. - -# Set a version string for this script. -scriptversion=2015-01-20.17; # UTC - -# General shell script boiler plate, and helper functions. -# Written by Gary V. Vaughan, 2004 - -# Copyright (C) 2004-2015 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. There is NO -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. - -# As a special exception to the GNU General Public License, if you distribute -# this file as part of a program or library that is built using GNU Libtool, -# you may include this file under the same distribution terms that you use -# for the rest of that program. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -# Please report bugs or propose patches to gary@gnu.org. - - -## ------ ## -## Usage. ## -## ------ ## - -# Evaluate this file near the top of your script to gain access to -# the functions and variables defined here: -# -# . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh -# -# If you need to override any of the default environment variable -# settings, do that before evaluating this file. - - -## -------------------- ## -## Shell normalisation. ## -## -------------------- ## - -# Some shells need a little help to be as Bourne compatible as possible. -# Before doing anything else, make sure all that help has been provided! - -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac -fi - -# NLS nuisances: We save the old values in case they are required later. -_G_user_locale= -_G_safe_locale= -for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES -do - eval "if test set = \"\${$_G_var+set}\"; then - save_$_G_var=\$$_G_var - $_G_var=C - export $_G_var - _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\" - _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\" - fi" -done - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# Make sure IFS has a sensible default -sp=' ' -nl=' -' -IFS="$sp $nl" - -# There are apparently some retarded systems that use ';' as a PATH separator! -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - - -## ------------------------- ## -## Locate command utilities. ## -## ------------------------- ## - - -# func_executable_p FILE -# ---------------------- -# Check that FILE is an executable regular file. -func_executable_p () -{ - test -f "$1" && test -x "$1" -} - - -# func_path_progs PROGS_LIST CHECK_FUNC [PATH] -# -------------------------------------------- -# Search for either a program that responds to --version with output -# containing "GNU", or else returned by CHECK_FUNC otherwise, by -# trying all the directories in PATH with each of the elements of -# PROGS_LIST. -# -# CHECK_FUNC should accept the path to a candidate program, and -# set $func_check_prog_result if it truncates its output less than -# $_G_path_prog_max characters. -func_path_progs () -{ - _G_progs_list=$1 - _G_check_func=$2 - _G_PATH=${3-"$PATH"} - - _G_path_prog_max=0 - _G_path_prog_found=false - _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:} - for _G_dir in $_G_PATH; do - IFS=$_G_save_IFS - test -z "$_G_dir" && _G_dir=. - for _G_prog_name in $_G_progs_list; do - for _exeext in '' .EXE; do - _G_path_prog=$_G_dir/$_G_prog_name$_exeext - func_executable_p "$_G_path_prog" || continue - case `"$_G_path_prog" --version 2>&1` in - *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;; - *) $_G_check_func $_G_path_prog - func_path_progs_result=$func_check_prog_result - ;; - esac - $_G_path_prog_found && break 3 - done - done - done - IFS=$_G_save_IFS - test -z "$func_path_progs_result" && { - echo "no acceptable sed could be found in \$PATH" >&2 - exit 1 - } -} - - -# We want to be able to use the functions in this file before configure -# has figured out where the best binaries are kept, which means we have -# to search for them ourselves - except when the results are already set -# where we skip the searches. - -# Unless the user overrides by setting SED, search the path for either GNU -# sed, or the sed that truncates its output the least. -test -z "$SED" && { - _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ - for _G_i in 1 2 3 4 5 6 7; do - _G_sed_script=$_G_sed_script$nl$_G_sed_script - done - echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed - _G_sed_script= - - func_check_prog_sed () - { - _G_path_prog=$1 - - _G_count=0 - printf 0123456789 >conftest.in - while : - do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo '' >> conftest.nl - "$_G_path_prog" -f conftest.sed conftest.out 2>/dev/null || break - diff conftest.out conftest.nl >/dev/null 2>&1 || break - _G_count=`expr $_G_count + 1` - if test "$_G_count" -gt "$_G_path_prog_max"; then - # Best one so far, save it but keep looking for a better one - func_check_prog_result=$_G_path_prog - _G_path_prog_max=$_G_count - fi - # 10*(2^10) chars as input seems more than enough - test 10 -lt "$_G_count" && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out - } - - func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin - rm -f conftest.sed - SED=$func_path_progs_result -} - - -# Unless the user overrides by setting GREP, search the path for either GNU -# grep, or the grep that truncates its output the least. -test -z "$GREP" && { - func_check_prog_grep () - { - _G_path_prog=$1 - - _G_count=0 - _G_path_prog_max=0 - printf 0123456789 >conftest.in - while : - do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo 'GREP' >> conftest.nl - "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' conftest.out 2>/dev/null || break - diff conftest.out conftest.nl >/dev/null 2>&1 || break - _G_count=`expr $_G_count + 1` - if test "$_G_count" -gt "$_G_path_prog_max"; then - # Best one so far, save it but keep looking for a better one - func_check_prog_result=$_G_path_prog - _G_path_prog_max=$_G_count - fi - # 10*(2^10) chars as input seems more than enough - test 10 -lt "$_G_count" && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out - } - - func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin - GREP=$func_path_progs_result -} - - -## ------------------------------- ## -## User overridable command paths. ## -## ------------------------------- ## - -# All uppercase variable names are used for environment variables. These -# variables can be overridden by the user before calling a script that -# uses them if a suitable command of that name is not already available -# in the command search PATH. - -: ${CP="cp -f"} -: ${ECHO="printf %s\n"} -: ${EGREP="$GREP -E"} -: ${FGREP="$GREP -F"} -: ${LN_S="ln -s"} -: ${MAKE="make"} -: ${MKDIR="mkdir"} -: ${MV="mv -f"} -: ${RM="rm -f"} -: ${SHELL="${CONFIG_SHELL-/bin/sh}"} - - -## -------------------- ## -## Useful sed snippets. ## -## -------------------- ## - -sed_dirname='s|/[^/]*$||' -sed_basename='s|^.*/||' - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -sed_quote_subst='s|\([`"$\\]\)|\\\1|g' - -# Same as above, but do not quote variable references. -sed_double_quote_subst='s/\(["`\\]\)/\\\1/g' - -# Sed substitution that turns a string into a regex matching for the -# string literally. -sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g' - -# Sed substitution that converts a w32 file name or path -# that contains forward slashes, into one that contains -# (escaped) backslashes. A very naive implementation. -sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' - -# Re-'\' parameter expansions in output of sed_double_quote_subst that -# were '\'-ed in input to the same. If an odd number of '\' preceded a -# '$' in input to sed_double_quote_subst, that '$' was protected from -# expansion. Since each input '\' is now two '\'s, look for any number -# of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'. -_G_bs='\\' -_G_bs2='\\\\' -_G_bs4='\\\\\\\\' -_G_dollar='\$' -sed_double_backslash="\ - s/$_G_bs4/&\\ -/g - s/^$_G_bs2$_G_dollar/$_G_bs&/ - s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g - s/\n//g" - - -## ----------------- ## -## Global variables. ## -## ----------------- ## - -# Except for the global variables explicitly listed below, the following -# functions in the '^func_' namespace, and the '^require_' namespace -# variables initialised in the 'Resource management' section, sourcing -# this file will not pollute your global namespace with anything -# else. There's no portable way to scope variables in Bourne shell -# though, so actually running these functions will sometimes place -# results into a variable named after the function, and often use -# temporary variables in the '^_G_' namespace. If you are careful to -# avoid using those namespaces casually in your sourcing script, things -# should continue to work as you expect. And, of course, you can freely -# overwrite any of the functions or variables defined here before -# calling anything to customize them. - -EXIT_SUCCESS=0 -EXIT_FAILURE=1 -EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. -EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. - -# Allow overriding, eg assuming that you follow the convention of -# putting '$debug_cmd' at the start of all your functions, you can get -# bash to show function call trace with: -# -# debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name -debug_cmd=${debug_cmd-":"} -exit_cmd=: - -# By convention, finish your script with: -# -# exit $exit_status -# -# so that you can set exit_status to non-zero if you want to indicate -# something went wrong during execution without actually bailing out at -# the point of failure. -exit_status=$EXIT_SUCCESS - -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh -# is ksh but when the shell is invoked as "sh" and the current value of -# the _XPG environment variable is not equal to 1 (one), the special -# positional parameter $0, within a function call, is the name of the -# function. -progpath=$0 - -# The name of this program. -progname=`$ECHO "$progpath" |$SED "$sed_basename"` - -# Make sure we have an absolute progpath for reexecution: -case $progpath in - [\\/]*|[A-Za-z]:\\*) ;; - *[\\/]*) - progdir=`$ECHO "$progpath" |$SED "$sed_dirname"` - progdir=`cd "$progdir" && pwd` - progpath=$progdir/$progname - ;; - *) - _G_IFS=$IFS - IFS=${PATH_SEPARATOR-:} - for progdir in $PATH; do - IFS=$_G_IFS - test -x "$progdir/$progname" && break - done - IFS=$_G_IFS - test -n "$progdir" || progdir=`pwd` - progpath=$progdir/$progname - ;; -esac - - -## ----------------- ## -## Standard options. ## -## ----------------- ## - -# The following options affect the operation of the functions defined -# below, and should be set appropriately depending on run-time para- -# meters passed on the command line. - -opt_dry_run=false -opt_quiet=false -opt_verbose=false - -# Categories 'all' and 'none' are always available. Append any others -# you will pass as the first argument to func_warning from your own -# code. -warning_categories= - -# By default, display warnings according to 'opt_warning_types'. Set -# 'warning_func' to ':' to elide all warnings, or func_fatal_error to -# treat the next displayed warning as a fatal error. -warning_func=func_warn_and_continue - -# Set to 'all' to display all warnings, 'none' to suppress all -# warnings, or a space delimited list of some subset of -# 'warning_categories' to display only the listed warnings. -opt_warning_types=all - - -## -------------------- ## -## Resource management. ## -## -------------------- ## - -# This section contains definitions for functions that each ensure a -# particular resource (a file, or a non-empty configuration variable for -# example) is available, and if appropriate to extract default values -# from pertinent package files. Call them using their associated -# 'require_*' variable to ensure that they are executed, at most, once. -# -# It's entirely deliberate that calling these functions can set -# variables that don't obey the namespace limitations obeyed by the rest -# of this file, in order that that they be as useful as possible to -# callers. - - -# require_term_colors -# ------------------- -# Allow display of bold text on terminals that support it. -require_term_colors=func_require_term_colors -func_require_term_colors () -{ - $debug_cmd - - test -t 1 && { - # COLORTERM and USE_ANSI_COLORS environment variables take - # precedence, because most terminfo databases neglect to describe - # whether color sequences are supported. - test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"} - - if test 1 = "$USE_ANSI_COLORS"; then - # Standard ANSI escape sequences - tc_reset='' - tc_bold=''; tc_standout='' - tc_red=''; tc_green='' - tc_blue=''; tc_cyan='' - else - # Otherwise trust the terminfo database after all. - test -n "`tput sgr0 2>/dev/null`" && { - tc_reset=`tput sgr0` - test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold` - tc_standout=$tc_bold - test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso` - test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1` - test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2` - test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4` - test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5` - } - fi - } - - require_term_colors=: -} - - -## ----------------- ## -## Function library. ## -## ----------------- ## - -# This section contains a variety of useful functions to call in your -# scripts. Take note of the portable wrappers for features provided by -# some modern shells, which will fall back to slower equivalents on -# less featureful shells. - - -# func_append VAR VALUE -# --------------------- -# Append VALUE onto the existing contents of VAR. - - # We should try to minimise forks, especially on Windows where they are - # unreasonably slow, so skip the feature probes when bash or zsh are - # being used: - if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then - : ${_G_HAVE_ARITH_OP="yes"} - : ${_G_HAVE_XSI_OPS="yes"} - # The += operator was introduced in bash 3.1 - case $BASH_VERSION in - [12].* | 3.0 | 3.0*) ;; - *) - : ${_G_HAVE_PLUSEQ_OP="yes"} - ;; - esac - fi - - # _G_HAVE_PLUSEQ_OP - # Can be empty, in which case the shell is probed, "yes" if += is - # useable or anything else if it does not work. - test -z "$_G_HAVE_PLUSEQ_OP" \ - && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \ - && _G_HAVE_PLUSEQ_OP=yes - -if test yes = "$_G_HAVE_PLUSEQ_OP" -then - # This is an XSI compatible shell, allowing a faster implementation... - eval 'func_append () - { - $debug_cmd - - eval "$1+=\$2" - }' -else - # ...otherwise fall back to using expr, which is often a shell builtin. - func_append () - { - $debug_cmd - - eval "$1=\$$1\$2" - } -fi - - -# func_append_quoted VAR VALUE -# ---------------------------- -# Quote VALUE and append to the end of shell variable VAR, separated -# by a space. -if test yes = "$_G_HAVE_PLUSEQ_OP"; then - eval 'func_append_quoted () - { - $debug_cmd - - func_quote_for_eval "$2" - eval "$1+=\\ \$func_quote_for_eval_result" - }' -else - func_append_quoted () - { - $debug_cmd - - func_quote_for_eval "$2" - eval "$1=\$$1\\ \$func_quote_for_eval_result" - } -fi - - -# func_append_uniq VAR VALUE -# -------------------------- -# Append unique VALUE onto the existing contents of VAR, assuming -# entries are delimited by the first character of VALUE. For example: -# -# func_append_uniq options " --another-option option-argument" -# -# will only append to $options if " --another-option option-argument " -# is not already present somewhere in $options already (note spaces at -# each end implied by leading space in second argument). -func_append_uniq () -{ - $debug_cmd - - eval _G_current_value='`$ECHO $'$1'`' - _G_delim=`expr "$2" : '\(.\)'` - - case $_G_delim$_G_current_value$_G_delim in - *"$2$_G_delim"*) ;; - *) func_append "$@" ;; - esac -} - - -# func_arith TERM... -# ------------------ -# Set func_arith_result to the result of evaluating TERMs. - test -z "$_G_HAVE_ARITH_OP" \ - && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \ - && _G_HAVE_ARITH_OP=yes - -if test yes = "$_G_HAVE_ARITH_OP"; then - eval 'func_arith () - { - $debug_cmd - - func_arith_result=$(( $* )) - }' -else - func_arith () - { - $debug_cmd - - func_arith_result=`expr "$@"` - } -fi - - -# func_basename FILE -# ------------------ -# Set func_basename_result to FILE with everything up to and including -# the last / stripped. -if test yes = "$_G_HAVE_XSI_OPS"; then - # If this shell supports suffix pattern removal, then use it to avoid - # forking. Hide the definitions single quotes in case the shell chokes - # on unsupported syntax... - _b='func_basename_result=${1##*/}' - _d='case $1 in - */*) func_dirname_result=${1%/*}$2 ;; - * ) func_dirname_result=$3 ;; - esac' - -else - # ...otherwise fall back to using sed. - _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`' - _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"` - if test "X$func_dirname_result" = "X$1"; then - func_dirname_result=$3 - else - func_append func_dirname_result "$2" - fi' -fi - -eval 'func_basename () -{ - $debug_cmd - - '"$_b"' -}' - - -# func_dirname FILE APPEND NONDIR_REPLACEMENT -# ------------------------------------------- -# Compute the dirname of FILE. If nonempty, add APPEND to the result, -# otherwise set result to NONDIR_REPLACEMENT. -eval 'func_dirname () -{ - $debug_cmd - - '"$_d"' -}' - - -# func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT -# -------------------------------------------------------- -# Perform func_basename and func_dirname in a single function -# call: -# dirname: Compute the dirname of FILE. If nonempty, -# add APPEND to the result, otherwise set result -# to NONDIR_REPLACEMENT. -# value returned in "$func_dirname_result" -# basename: Compute filename of FILE. -# value retuned in "$func_basename_result" -# For efficiency, we do not delegate to the functions above but instead -# duplicate the functionality here. -eval 'func_dirname_and_basename () -{ - $debug_cmd - - '"$_b"' - '"$_d"' -}' - - -# func_echo ARG... -# ---------------- -# Echo program name prefixed message. -func_echo () -{ - $debug_cmd - - _G_message=$* - - func_echo_IFS=$IFS - IFS=$nl - for _G_line in $_G_message; do - IFS=$func_echo_IFS - $ECHO "$progname: $_G_line" - done - IFS=$func_echo_IFS -} - - -# func_echo_all ARG... -# -------------------- -# Invoke $ECHO with all args, space-separated. -func_echo_all () -{ - $ECHO "$*" -} - - -# func_echo_infix_1 INFIX ARG... -# ------------------------------ -# Echo program name, followed by INFIX on the first line, with any -# additional lines not showing INFIX. -func_echo_infix_1 () -{ - $debug_cmd - - $require_term_colors - - _G_infix=$1; shift - _G_indent=$_G_infix - _G_prefix="$progname: $_G_infix: " - _G_message=$* - - # Strip color escape sequences before counting printable length - for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan" - do - test -n "$_G_tc" && { - _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"` - _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"` - } - done - _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes - - func_echo_infix_1_IFS=$IFS - IFS=$nl - for _G_line in $_G_message; do - IFS=$func_echo_infix_1_IFS - $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2 - _G_prefix=$_G_indent - done - IFS=$func_echo_infix_1_IFS -} - - -# func_error ARG... -# ----------------- -# Echo program name prefixed message to standard error. -func_error () -{ - $debug_cmd - - $require_term_colors - - func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2 -} - - -# func_fatal_error ARG... -# ----------------------- -# Echo program name prefixed message to standard error, and exit. -func_fatal_error () -{ - $debug_cmd - - func_error "$*" - exit $EXIT_FAILURE -} - - -# func_grep EXPRESSION FILENAME -# ----------------------------- -# Check whether EXPRESSION matches any line of FILENAME, without output. -func_grep () -{ - $debug_cmd - - $GREP "$1" "$2" >/dev/null 2>&1 -} - - -# func_len STRING -# --------------- -# Set func_len_result to the length of STRING. STRING may not -# start with a hyphen. - test -z "$_G_HAVE_XSI_OPS" \ - && (eval 'x=a/b/c; - test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ - && _G_HAVE_XSI_OPS=yes - -if test yes = "$_G_HAVE_XSI_OPS"; then - eval 'func_len () - { - $debug_cmd - - func_len_result=${#1} - }' -else - func_len () - { - $debug_cmd - - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` - } -fi - - -# func_mkdir_p DIRECTORY-PATH -# --------------------------- -# Make sure the entire path to DIRECTORY-PATH is available. -func_mkdir_p () -{ - $debug_cmd - - _G_directory_path=$1 - _G_dir_list= - - if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then - - # Protect directory names starting with '-' - case $_G_directory_path in - -*) _G_directory_path=./$_G_directory_path ;; - esac - - # While some portion of DIR does not yet exist... - while test ! -d "$_G_directory_path"; do - # ...make a list in topmost first order. Use a colon delimited - # list incase some portion of path contains whitespace. - _G_dir_list=$_G_directory_path:$_G_dir_list - - # If the last portion added has no slash in it, the list is done - case $_G_directory_path in */*) ;; *) break ;; esac - - # ...otherwise throw away the child directory and loop - _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"` - done - _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'` - - func_mkdir_p_IFS=$IFS; IFS=: - for _G_dir in $_G_dir_list; do - IFS=$func_mkdir_p_IFS - # mkdir can fail with a 'File exist' error if two processes - # try to create one of the directories concurrently. Don't - # stop in that case! - $MKDIR "$_G_dir" 2>/dev/null || : - done - IFS=$func_mkdir_p_IFS - - # Bail out if we (or some other process) failed to create a directory. - test -d "$_G_directory_path" || \ - func_fatal_error "Failed to create '$1'" - fi -} - - -# func_mktempdir [BASENAME] -# ------------------------- -# Make a temporary directory that won't clash with other running -# libtool processes, and avoids race conditions if possible. If -# given, BASENAME is the basename for that directory. -func_mktempdir () -{ - $debug_cmd - - _G_template=${TMPDIR-/tmp}/${1-$progname} - - if test : = "$opt_dry_run"; then - # Return a directory name, but don't create it in dry-run mode - _G_tmpdir=$_G_template-$$ - else - - # If mktemp works, use that first and foremost - _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null` - - if test ! -d "$_G_tmpdir"; then - # Failing that, at least try and use $RANDOM to avoid a race - _G_tmpdir=$_G_template-${RANDOM-0}$$ - - func_mktempdir_umask=`umask` - umask 0077 - $MKDIR "$_G_tmpdir" - umask $func_mktempdir_umask - fi - - # If we're not in dry-run mode, bomb out on failure - test -d "$_G_tmpdir" || \ - func_fatal_error "cannot create temporary directory '$_G_tmpdir'" - fi - - $ECHO "$_G_tmpdir" -} - - -# func_normal_abspath PATH -# ------------------------ -# Remove doubled-up and trailing slashes, "." path components, -# and cancel out any ".." path components in PATH after making -# it an absolute path. -func_normal_abspath () -{ - $debug_cmd - - # These SED scripts presuppose an absolute path with a trailing slash. - _G_pathcar='s|^/\([^/]*\).*$|\1|' - _G_pathcdr='s|^/[^/]*||' - _G_removedotparts=':dotsl - s|/\./|/|g - t dotsl - s|/\.$|/|' - _G_collapseslashes='s|/\{1,\}|/|g' - _G_finalslash='s|/*$|/|' - - # Start from root dir and reassemble the path. - func_normal_abspath_result= - func_normal_abspath_tpath=$1 - func_normal_abspath_altnamespace= - case $func_normal_abspath_tpath in - "") - # Empty path, that just means $cwd. - func_stripname '' '/' "`pwd`" - func_normal_abspath_result=$func_stripname_result - return - ;; - # The next three entries are used to spot a run of precisely - # two leading slashes without using negated character classes; - # we take advantage of case's first-match behaviour. - ///*) - # Unusual form of absolute path, do nothing. - ;; - //*) - # Not necessarily an ordinary path; POSIX reserves leading '//' - # and for example Cygwin uses it to access remote file shares - # over CIFS/SMB, so we conserve a leading double slash if found. - func_normal_abspath_altnamespace=/ - ;; - /*) - # Absolute path, do nothing. - ;; - *) - # Relative path, prepend $cwd. - func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath - ;; - esac - - # Cancel out all the simple stuff to save iterations. We also want - # the path to end with a slash for ease of parsing, so make sure - # there is one (and only one) here. - func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ - -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"` - while :; do - # Processed it all yet? - if test / = "$func_normal_abspath_tpath"; then - # If we ascended to the root using ".." the result may be empty now. - if test -z "$func_normal_abspath_result"; then - func_normal_abspath_result=/ - fi - break - fi - func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ - -e "$_G_pathcar"` - func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ - -e "$_G_pathcdr"` - # Figure out what to do with it - case $func_normal_abspath_tcomponent in - "") - # Trailing empty path component, ignore it. - ;; - ..) - # Parent dir; strip last assembled component from result. - func_dirname "$func_normal_abspath_result" - func_normal_abspath_result=$func_dirname_result - ;; - *) - # Actual path component, append it. - func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent" - ;; - esac - done - # Restore leading double-slash if one was found on entry. - func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result -} - - -# func_notquiet ARG... -# -------------------- -# Echo program name prefixed message only when not in quiet mode. -func_notquiet () -{ - $debug_cmd - - $opt_quiet || func_echo ${1+"$@"} - - # A bug in bash halts the script if the last line of a function - # fails when set -e is in force, so we need another command to - # work around that: - : -} - - -# func_relative_path SRCDIR DSTDIR -# -------------------------------- -# Set func_relative_path_result to the relative path from SRCDIR to DSTDIR. -func_relative_path () -{ - $debug_cmd - - func_relative_path_result= - func_normal_abspath "$1" - func_relative_path_tlibdir=$func_normal_abspath_result - func_normal_abspath "$2" - func_relative_path_tbindir=$func_normal_abspath_result - - # Ascend the tree starting from libdir - while :; do - # check if we have found a prefix of bindir - case $func_relative_path_tbindir in - $func_relative_path_tlibdir) - # found an exact match - func_relative_path_tcancelled= - break - ;; - $func_relative_path_tlibdir*) - # found a matching prefix - func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" - func_relative_path_tcancelled=$func_stripname_result - if test -z "$func_relative_path_result"; then - func_relative_path_result=. - fi - break - ;; - *) - func_dirname $func_relative_path_tlibdir - func_relative_path_tlibdir=$func_dirname_result - if test -z "$func_relative_path_tlibdir"; then - # Have to descend all the way to the root! - func_relative_path_result=../$func_relative_path_result - func_relative_path_tcancelled=$func_relative_path_tbindir - break - fi - func_relative_path_result=../$func_relative_path_result - ;; - esac - done - - # Now calculate path; take care to avoid doubling-up slashes. - func_stripname '' '/' "$func_relative_path_result" - func_relative_path_result=$func_stripname_result - func_stripname '/' '/' "$func_relative_path_tcancelled" - if test -n "$func_stripname_result"; then - func_append func_relative_path_result "/$func_stripname_result" - fi - - # Normalisation. If bindir is libdir, return '.' else relative path. - if test -n "$func_relative_path_result"; then - func_stripname './' '' "$func_relative_path_result" - func_relative_path_result=$func_stripname_result - fi - - test -n "$func_relative_path_result" || func_relative_path_result=. - - : -} - - -# func_quote_for_eval ARG... -# -------------------------- -# Aesthetically quote ARGs to be evaled later. -# This function returns two values: -# i) func_quote_for_eval_result -# double-quoted, suitable for a subsequent eval -# ii) func_quote_for_eval_unquoted_result -# has all characters that are still active within double -# quotes backslashified. -func_quote_for_eval () -{ - $debug_cmd - - func_quote_for_eval_unquoted_result= - func_quote_for_eval_result= - while test 0 -lt $#; do - case $1 in - *[\\\`\"\$]*) - _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;; - *) - _G_unquoted_arg=$1 ;; - esac - if test -n "$func_quote_for_eval_unquoted_result"; then - func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg" - else - func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg" - fi - - case $_G_unquoted_arg in - # Double-quote args containing shell metacharacters to delay - # word splitting, command substitution and variable expansion - # for a subsequent eval. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - _G_quoted_arg=\"$_G_unquoted_arg\" - ;; - *) - _G_quoted_arg=$_G_unquoted_arg - ;; - esac - - if test -n "$func_quote_for_eval_result"; then - func_append func_quote_for_eval_result " $_G_quoted_arg" - else - func_append func_quote_for_eval_result "$_G_quoted_arg" - fi - shift - done -} - - -# func_quote_for_expand ARG -# ------------------------- -# Aesthetically quote ARG to be evaled later; same as above, -# but do not quote variable references. -func_quote_for_expand () -{ - $debug_cmd - - case $1 in - *[\\\`\"]*) - _G_arg=`$ECHO "$1" | $SED \ - -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;; - *) - _G_arg=$1 ;; - esac - - case $_G_arg in - # Double-quote args containing shell metacharacters to delay - # word splitting and command substitution for a subsequent eval. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - _G_arg=\"$_G_arg\" - ;; - esac - - func_quote_for_expand_result=$_G_arg -} - - -# func_stripname PREFIX SUFFIX NAME -# --------------------------------- -# strip PREFIX and SUFFIX from NAME, and store in func_stripname_result. -# PREFIX and SUFFIX must not contain globbing or regex special -# characters, hashes, percent signs, but SUFFIX may contain a leading -# dot (in which case that matches only a dot). -if test yes = "$_G_HAVE_XSI_OPS"; then - eval 'func_stripname () - { - $debug_cmd - - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are - # positional parameters, so assign one to ordinary variable first. - func_stripname_result=$3 - func_stripname_result=${func_stripname_result#"$1"} - func_stripname_result=${func_stripname_result%"$2"} - }' -else - func_stripname () - { - $debug_cmd - - case $2 in - .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;; - *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;; - esac - } -fi - - -# func_show_eval CMD [FAIL_EXP] -# ----------------------------- -# Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is -# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP -# is given, then evaluate it. -func_show_eval () -{ - $debug_cmd - - _G_cmd=$1 - _G_fail_exp=${2-':'} - - func_quote_for_expand "$_G_cmd" - eval "func_notquiet $func_quote_for_expand_result" - - $opt_dry_run || { - eval "$_G_cmd" - _G_status=$? - if test 0 -ne "$_G_status"; then - eval "(exit $_G_status); $_G_fail_exp" - fi - } -} - - -# func_show_eval_locale CMD [FAIL_EXP] -# ------------------------------------ -# Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is -# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP -# is given, then evaluate it. Use the saved locale for evaluation. -func_show_eval_locale () -{ - $debug_cmd - - _G_cmd=$1 - _G_fail_exp=${2-':'} - - $opt_quiet || { - func_quote_for_expand "$_G_cmd" - eval "func_echo $func_quote_for_expand_result" - } - - $opt_dry_run || { - eval "$_G_user_locale - $_G_cmd" - _G_status=$? - eval "$_G_safe_locale" - if test 0 -ne "$_G_status"; then - eval "(exit $_G_status); $_G_fail_exp" - fi - } -} - - -# func_tr_sh -# ---------- -# Turn $1 into a string suitable for a shell variable name. -# Result is stored in $func_tr_sh_result. All characters -# not in the set a-zA-Z0-9_ are replaced with '_'. Further, -# if $1 begins with a digit, a '_' is prepended as well. -func_tr_sh () -{ - $debug_cmd - - case $1 in - [0-9]* | *[!a-zA-Z0-9_]*) - func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'` - ;; - * ) - func_tr_sh_result=$1 - ;; - esac -} - - -# func_verbose ARG... -# ------------------- -# Echo program name prefixed message in verbose mode only. -func_verbose () -{ - $debug_cmd - - $opt_verbose && func_echo "$*" - - : -} - - -# func_warn_and_continue ARG... -# ----------------------------- -# Echo program name prefixed warning message to standard error. -func_warn_and_continue () -{ - $debug_cmd - - $require_term_colors - - func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2 -} - - -# func_warning CATEGORY ARG... -# ---------------------------- -# Echo program name prefixed warning message to standard error. Warning -# messages can be filtered according to CATEGORY, where this function -# elides messages where CATEGORY is not listed in the global variable -# 'opt_warning_types'. -func_warning () -{ - $debug_cmd - - # CATEGORY must be in the warning_categories list! - case " $warning_categories " in - *" $1 "*) ;; - *) func_internal_error "invalid warning category '$1'" ;; - esac - - _G_category=$1 - shift - - case " $opt_warning_types " in - *" $_G_category "*) $warning_func ${1+"$@"} ;; - esac -} - - -# func_sort_ver VER1 VER2 -# ----------------------- -# 'sort -V' is not generally available. -# Note this deviates from the version comparison in automake -# in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a -# but this should suffice as we won't be specifying old -# version formats or redundant trailing .0 in bootstrap.conf. -# If we did want full compatibility then we should probably -# use m4_version_compare from autoconf. -func_sort_ver () -{ - $debug_cmd - - printf '%s\n%s\n' "$1" "$2" \ - | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n -} - -# func_lt_ver PREV CURR -# --------------------- -# Return true if PREV and CURR are in the correct order according to -# func_sort_ver, otherwise false. Use it like this: -# -# func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..." -func_lt_ver () -{ - $debug_cmd - - test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q` -} - - -# Local variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'before-save-hook 'time-stamp) -# time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" -# time-stamp-time-zone: "UTC" -# End: -#! /bin/sh - -# Set a version string for this script. -scriptversion=2014-01-07.03; # UTC - -# A portable, pluggable option parser for Bourne shell. -# Written by Gary V. Vaughan, 2010 - -# Copyright (C) 2010-2015 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. There is NO -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -# Please report bugs or propose patches to gary@gnu.org. - - -## ------ ## -## Usage. ## -## ------ ## - -# This file is a library for parsing options in your shell scripts along -# with assorted other useful supporting features that you can make use -# of too. -# -# For the simplest scripts you might need only: -# -# #!/bin/sh -# . relative/path/to/funclib.sh -# . relative/path/to/options-parser -# scriptversion=1.0 -# func_options ${1+"$@"} -# eval set dummy "$func_options_result"; shift -# ...rest of your script... -# -# In order for the '--version' option to work, you will need to have a -# suitably formatted comment like the one at the top of this file -# starting with '# Written by ' and ending with '# warranty; '. -# -# For '-h' and '--help' to work, you will also need a one line -# description of your script's purpose in a comment directly above the -# '# Written by ' line, like the one at the top of this file. -# -# The default options also support '--debug', which will turn on shell -# execution tracing (see the comment above debug_cmd below for another -# use), and '--verbose' and the func_verbose function to allow your script -# to display verbose messages only when your user has specified -# '--verbose'. -# -# After sourcing this file, you can plug processing for additional -# options by amending the variables from the 'Configuration' section -# below, and following the instructions in the 'Option parsing' -# section further down. - -## -------------- ## -## Configuration. ## -## -------------- ## - -# You should override these variables in your script after sourcing this -# file so that they reflect the customisations you have added to the -# option parser. - -# The usage line for option parsing errors and the start of '-h' and -# '--help' output messages. You can embed shell variables for delayed -# expansion at the time the message is displayed, but you will need to -# quote other shell meta-characters carefully to prevent them being -# expanded when the contents are evaled. -usage='$progpath [OPTION]...' - -# Short help message in response to '-h' and '--help'. Add to this or -# override it after sourcing this library to reflect the full set of -# options your script accepts. -usage_message="\ - --debug enable verbose shell tracing - -W, --warnings=CATEGORY - report the warnings falling in CATEGORY [all] - -v, --verbose verbosely report processing - --version print version information and exit - -h, --help print short or long help message and exit -" - -# Additional text appended to 'usage_message' in response to '--help'. -long_help_message=" -Warning categories include: - 'all' show all warnings - 'none' turn off all the warnings - 'error' warnings are treated as fatal errors" - -# Help message printed before fatal option parsing errors. -fatal_help="Try '\$progname --help' for more information." - - - -## ------------------------- ## -## Hook function management. ## -## ------------------------- ## - -# This section contains functions for adding, removing, and running hooks -# to the main code. A hook is just a named list of of function, that can -# be run in order later on. - -# func_hookable FUNC_NAME -# ----------------------- -# Declare that FUNC_NAME will run hooks added with -# 'func_add_hook FUNC_NAME ...'. -func_hookable () -{ - $debug_cmd - - func_append hookable_fns " $1" -} - - -# func_add_hook FUNC_NAME HOOK_FUNC -# --------------------------------- -# Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must -# first have been declared "hookable" by a call to 'func_hookable'. -func_add_hook () -{ - $debug_cmd - - case " $hookable_fns " in - *" $1 "*) ;; - *) func_fatal_error "'$1' does not accept hook functions." ;; - esac - - eval func_append ${1}_hooks '" $2"' -} - - -# func_remove_hook FUNC_NAME HOOK_FUNC -# ------------------------------------ -# Remove HOOK_FUNC from the list of functions called by FUNC_NAME. -func_remove_hook () -{ - $debug_cmd - - eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`' -} - - -# func_run_hooks FUNC_NAME [ARG]... -# --------------------------------- -# Run all hook functions registered to FUNC_NAME. -# It is assumed that the list of hook functions contains nothing more -# than a whitespace-delimited list of legal shell function names, and -# no effort is wasted trying to catch shell meta-characters or preserve -# whitespace. -func_run_hooks () -{ - $debug_cmd - - case " $hookable_fns " in - *" $1 "*) ;; - *) func_fatal_error "'$1' does not support hook funcions.n" ;; - esac - - eval _G_hook_fns=\$$1_hooks; shift - - for _G_hook in $_G_hook_fns; do - eval $_G_hook '"$@"' - - # store returned options list back into positional - # parameters for next 'cmd' execution. - eval _G_hook_result=\$${_G_hook}_result - eval set dummy "$_G_hook_result"; shift - done - - func_quote_for_eval ${1+"$@"} - func_run_hooks_result=$func_quote_for_eval_result -} - - - -## --------------- ## -## Option parsing. ## -## --------------- ## - -# In order to add your own option parsing hooks, you must accept the -# full positional parameter list in your hook function, remove any -# options that you action, and then pass back the remaining unprocessed -# options in '_result', escaped suitably for -# 'eval'. Like this: -# -# my_options_prep () -# { -# $debug_cmd -# -# # Extend the existing usage message. -# usage_message=$usage_message' -# -s, --silent don'\''t print informational messages -# ' -# -# func_quote_for_eval ${1+"$@"} -# my_options_prep_result=$func_quote_for_eval_result -# } -# func_add_hook func_options_prep my_options_prep -# -# -# my_silent_option () -# { -# $debug_cmd -# -# # Note that for efficiency, we parse as many options as we can -# # recognise in a loop before passing the remainder back to the -# # caller on the first unrecognised argument we encounter. -# while test $# -gt 0; do -# opt=$1; shift -# case $opt in -# --silent|-s) opt_silent=: ;; -# # Separate non-argument short options: -# -s*) func_split_short_opt "$_G_opt" -# set dummy "$func_split_short_opt_name" \ -# "-$func_split_short_opt_arg" ${1+"$@"} -# shift -# ;; -# *) set dummy "$_G_opt" "$*"; shift; break ;; -# esac -# done -# -# func_quote_for_eval ${1+"$@"} -# my_silent_option_result=$func_quote_for_eval_result -# } -# func_add_hook func_parse_options my_silent_option -# -# -# my_option_validation () -# { -# $debug_cmd -# -# $opt_silent && $opt_verbose && func_fatal_help "\ -# '--silent' and '--verbose' options are mutually exclusive." -# -# func_quote_for_eval ${1+"$@"} -# my_option_validation_result=$func_quote_for_eval_result -# } -# func_add_hook func_validate_options my_option_validation -# -# You'll alse need to manually amend $usage_message to reflect the extra -# options you parse. It's preferable to append if you can, so that -# multiple option parsing hooks can be added safely. - - -# func_options [ARG]... -# --------------------- -# All the functions called inside func_options are hookable. See the -# individual implementations for details. -func_hookable func_options -func_options () -{ - $debug_cmd - - func_options_prep ${1+"$@"} - eval func_parse_options \ - ${func_options_prep_result+"$func_options_prep_result"} - eval func_validate_options \ - ${func_parse_options_result+"$func_parse_options_result"} - - eval func_run_hooks func_options \ - ${func_validate_options_result+"$func_validate_options_result"} - - # save modified positional parameters for caller - func_options_result=$func_run_hooks_result -} - - -# func_options_prep [ARG]... -# -------------------------- -# All initialisations required before starting the option parse loop. -# Note that when calling hook functions, we pass through the list of -# positional parameters. If a hook function modifies that list, and -# needs to propogate that back to rest of this script, then the complete -# modified list must be put in 'func_run_hooks_result' before -# returning. -func_hookable func_options_prep -func_options_prep () -{ - $debug_cmd - - # Option defaults: - opt_verbose=false - opt_warning_types= - - func_run_hooks func_options_prep ${1+"$@"} - - # save modified positional parameters for caller - func_options_prep_result=$func_run_hooks_result -} - - -# func_parse_options [ARG]... -# --------------------------- -# The main option parsing loop. -func_hookable func_parse_options -func_parse_options () -{ - $debug_cmd - - func_parse_options_result= - - # this just eases exit handling - while test $# -gt 0; do - # Defer to hook functions for initial option parsing, so they - # get priority in the event of reusing an option name. - func_run_hooks func_parse_options ${1+"$@"} - - # Adjust func_parse_options positional parameters to match - eval set dummy "$func_run_hooks_result"; shift - - # Break out of the loop if we already parsed every option. - test $# -gt 0 || break - - _G_opt=$1 - shift - case $_G_opt in - --debug|-x) debug_cmd='set -x' - func_echo "enabling shell trace mode" - $debug_cmd - ;; - - --no-warnings|--no-warning|--no-warn) - set dummy --warnings none ${1+"$@"} - shift - ;; - - --warnings|--warning|-W) - test $# = 0 && func_missing_arg $_G_opt && break - case " $warning_categories $1" in - *" $1 "*) - # trailing space prevents matching last $1 above - func_append_uniq opt_warning_types " $1" - ;; - *all) - opt_warning_types=$warning_categories - ;; - *none) - opt_warning_types=none - warning_func=: - ;; - *error) - opt_warning_types=$warning_categories - warning_func=func_fatal_error - ;; - *) - func_fatal_error \ - "unsupported warning category: '$1'" - ;; - esac - shift - ;; - - --verbose|-v) opt_verbose=: ;; - --version) func_version ;; - -\?|-h) func_usage ;; - --help) func_help ;; - - # Separate optargs to long options (plugins may need this): - --*=*) func_split_equals "$_G_opt" - set dummy "$func_split_equals_lhs" \ - "$func_split_equals_rhs" ${1+"$@"} - shift - ;; - - # Separate optargs to short options: - -W*) - func_split_short_opt "$_G_opt" - set dummy "$func_split_short_opt_name" \ - "$func_split_short_opt_arg" ${1+"$@"} - shift - ;; - - # Separate non-argument short options: - -\?*|-h*|-v*|-x*) - func_split_short_opt "$_G_opt" - set dummy "$func_split_short_opt_name" \ - "-$func_split_short_opt_arg" ${1+"$@"} - shift - ;; - - --) break ;; - -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; - *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; - esac - done - - # save modified positional parameters for caller - func_quote_for_eval ${1+"$@"} - func_parse_options_result=$func_quote_for_eval_result -} - - -# func_validate_options [ARG]... -# ------------------------------ -# Perform any sanity checks on option settings and/or unconsumed -# arguments. -func_hookable func_validate_options -func_validate_options () -{ - $debug_cmd - - # Display all warnings if -W was not given. - test -n "$opt_warning_types" || opt_warning_types=" $warning_categories" - - func_run_hooks func_validate_options ${1+"$@"} - - # Bail if the options were screwed! - $exit_cmd $EXIT_FAILURE - - # save modified positional parameters for caller - func_validate_options_result=$func_run_hooks_result -} - - - -## ----------------- ## -## Helper functions. ## -## ----------------- ## - -# This section contains the helper functions used by the rest of the -# hookable option parser framework in ascii-betical order. - - -# func_fatal_help ARG... -# ---------------------- -# Echo program name prefixed message to standard error, followed by -# a help hint, and exit. -func_fatal_help () -{ - $debug_cmd - - eval \$ECHO \""Usage: $usage"\" - eval \$ECHO \""$fatal_help"\" - func_error ${1+"$@"} - exit $EXIT_FAILURE -} - - -# func_help -# --------- -# Echo long help message to standard output and exit. -func_help () -{ - $debug_cmd - - func_usage_message - $ECHO "$long_help_message" - exit 0 -} - - -# func_missing_arg ARGNAME -# ------------------------ -# Echo program name prefixed message to standard error and set global -# exit_cmd. -func_missing_arg () -{ - $debug_cmd - - func_error "Missing argument for '$1'." - exit_cmd=exit -} - - -# func_split_equals STRING -# ------------------------ -# Set func_split_equals_lhs and func_split_equals_rhs shell variables after -# splitting STRING at the '=' sign. -test -z "$_G_HAVE_XSI_OPS" \ - && (eval 'x=a/b/c; - test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ - && _G_HAVE_XSI_OPS=yes - -if test yes = "$_G_HAVE_XSI_OPS" -then - # This is an XSI compatible shell, allowing a faster implementation... - eval 'func_split_equals () - { - $debug_cmd - - func_split_equals_lhs=${1%%=*} - func_split_equals_rhs=${1#*=} - test "x$func_split_equals_lhs" = "x$1" \ - && func_split_equals_rhs= - }' -else - # ...otherwise fall back to using expr, which is often a shell builtin. - func_split_equals () - { - $debug_cmd - - func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'` - func_split_equals_rhs= - test "x$func_split_equals_lhs" = "x$1" \ - || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'` - } -fi #func_split_equals - - -# func_split_short_opt SHORTOPT -# ----------------------------- -# Set func_split_short_opt_name and func_split_short_opt_arg shell -# variables after splitting SHORTOPT after the 2nd character. -if test yes = "$_G_HAVE_XSI_OPS" -then - # This is an XSI compatible shell, allowing a faster implementation... - eval 'func_split_short_opt () - { - $debug_cmd - - func_split_short_opt_arg=${1#??} - func_split_short_opt_name=${1%"$func_split_short_opt_arg"} - }' -else - # ...otherwise fall back to using expr, which is often a shell builtin. - func_split_short_opt () - { - $debug_cmd - - func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'` - func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'` - } -fi #func_split_short_opt - - -# func_usage -# ---------- -# Echo short help message to standard output and exit. -func_usage () -{ - $debug_cmd - - func_usage_message - $ECHO "Run '$progname --help |${PAGER-more}' for full usage" - exit 0 -} - - -# func_usage_message -# ------------------ -# Echo short help message to standard output. -func_usage_message () -{ - $debug_cmd - - eval \$ECHO \""Usage: $usage"\" - echo - $SED -n 's|^# || - /^Written by/{ - x;p;x - } - h - /^Written by/q' < "$progpath" - echo - eval \$ECHO \""$usage_message"\" -} - - -# func_version -# ------------ -# Echo version message to standard output and exit. -func_version () -{ - $debug_cmd - - printf '%s\n' "$progname $scriptversion" - $SED -n ' - /(C)/!b go - :more - /\./!{ - N - s|\n# | | - b more - } - :go - /^# Written by /,/# warranty; / { - s|^# || - s|^# *$|| - s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| - p - } - /^# Written by / { - s|^# || - p - } - /^warranty; /q' < "$progpath" - - exit $? -} - - -# Local variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'before-save-hook 'time-stamp) -# time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" -# time-stamp-time-zone: "UTC" -# End: - -# Set a version string. -scriptversion='(GNU libtool) 2.4.6' - - -# func_echo ARG... -# ---------------- -# Libtool also displays the current mode in messages, so override -# funclib.sh func_echo with this custom definition. -func_echo () -{ - $debug_cmd - - _G_message=$* - - func_echo_IFS=$IFS - IFS=$nl - for _G_line in $_G_message; do - IFS=$func_echo_IFS - $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line" - done - IFS=$func_echo_IFS -} - - -# func_warning ARG... -# ------------------- -# Libtool warnings are not categorized, so override funclib.sh -# func_warning with this simpler definition. -func_warning () -{ - $debug_cmd - - $warning_func ${1+"$@"} -} - - -## ---------------- ## -## Options parsing. ## -## ---------------- ## - -# Hook in the functions to make sure our own options are parsed during -# the option parsing loop. - -usage='$progpath [OPTION]... [MODE-ARG]...' - -# Short help message in response to '-h'. -usage_message="Options: - --config show all configuration variables - --debug enable verbose shell tracing - -n, --dry-run display commands without modifying any files - --features display basic configuration information and exit - --mode=MODE use operation mode MODE - --no-warnings equivalent to '-Wnone' - --preserve-dup-deps don't remove duplicate dependency libraries - --quiet, --silent don't print informational messages - --tag=TAG use configuration variables from tag TAG - -v, --verbose print more informational messages than default - --version print version information - -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] - -h, --help, --help-all print short, long, or detailed help message -" - -# Additional text appended to 'usage_message' in response to '--help'. -func_help () -{ - $debug_cmd - - func_usage_message - $ECHO "$long_help_message - -MODE must be one of the following: - - clean remove files from the build directory - compile compile a source file into a libtool object - execute automatically set library path, then run a program - finish complete the installation of libtool libraries - install install libraries or executables - link create a library or an executable - uninstall remove libraries from an installed directory - -MODE-ARGS vary depending on the MODE. When passed as first option, -'--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that. -Try '$progname --help --mode=MODE' for a more detailed description of MODE. - -When reporting a bug, please describe a test case to reproduce it and -include the following information: - - host-triplet: $host - shell: $SHELL - compiler: $LTCC - compiler flags: $LTCFLAGS - linker: $LD (gnu? $with_gnu_ld) - version: $progname $scriptversion Debian-2.4.6-2 - automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` - autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` - -Report bugs to . -GNU libtool home page: . -General help using GNU software: ." - exit 0 -} - - -# func_lo2o OBJECT-NAME -# --------------------- -# Transform OBJECT-NAME from a '.lo' suffix to the platform specific -# object suffix. - -lo2o=s/\\.lo\$/.$objext/ -o2lo=s/\\.$objext\$/.lo/ - -if test yes = "$_G_HAVE_XSI_OPS"; then - eval 'func_lo2o () - { - case $1 in - *.lo) func_lo2o_result=${1%.lo}.$objext ;; - * ) func_lo2o_result=$1 ;; - esac - }' - - # func_xform LIBOBJ-OR-SOURCE - # --------------------------- - # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise) - # suffix to a '.lo' libtool-object suffix. - eval 'func_xform () - { - func_xform_result=${1%.*}.lo - }' -else - # ...otherwise fall back to using sed. - func_lo2o () - { - func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"` - } - - func_xform () - { - func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'` - } -fi - - -# func_fatal_configuration ARG... -# ------------------------------- -# Echo program name prefixed message to standard error, followed by -# a configuration failure hint, and exit. -func_fatal_configuration () -{ - func__fatal_error ${1+"$@"} \ - "See the $PACKAGE documentation for more information." \ - "Fatal configuration error." -} - - -# func_config -# ----------- -# Display the configuration for all the tags in this script. -func_config () -{ - re_begincf='^# ### BEGIN LIBTOOL' - re_endcf='^# ### END LIBTOOL' - - # Default configuration. - $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" - - # Now print the configurations for the tags. - for tagname in $taglist; do - $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" - done - - exit $? -} - - -# func_features -# ------------- -# Display the features supported by this script. -func_features () -{ - echo "host: $host" - if test yes = "$build_libtool_libs"; then - echo "enable shared libraries" - else - echo "disable shared libraries" - fi - if test yes = "$build_old_libs"; then - echo "enable static libraries" - else - echo "disable static libraries" - fi - - exit $? -} - - -# func_enable_tag TAGNAME -# ----------------------- -# Verify that TAGNAME is valid, and either flag an error and exit, or -# enable the TAGNAME tag. We also add TAGNAME to the global $taglist -# variable here. -func_enable_tag () -{ - # Global variable: - tagname=$1 - - re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" - re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" - sed_extractcf=/$re_begincf/,/$re_endcf/p - - # Validate tagname. - case $tagname in - *[!-_A-Za-z0-9,/]*) - func_fatal_error "invalid tag name: $tagname" - ;; - esac - - # Don't test for the "default" C tag, as we know it's - # there but not specially marked. - case $tagname in - CC) ;; - *) - if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then - taglist="$taglist $tagname" - - # Evaluate the configuration. Be careful to quote the path - # and the sed script, to avoid splitting on whitespace, but - # also don't use non-portable quotes within backquotes within - # quotes we have to do it in 2 steps: - extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` - eval "$extractedcf" - else - func_error "ignoring unknown tag $tagname" - fi - ;; - esac -} - - -# func_check_version_match -# ------------------------ -# Ensure that we are using m4 macros, and libtool script from the same -# release of libtool. -func_check_version_match () -{ - if test "$package_revision" != "$macro_revision"; then - if test "$VERSION" != "$macro_version"; then - if test -z "$macro_version"; then - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the -$progname: definition of this LT_INIT comes from an older release. -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION -$progname: and run autoconf again. -_LT_EOF - else - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the -$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION -$progname: and run autoconf again. -_LT_EOF - fi - else - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, -$progname: but the definition of this LT_INIT comes from revision $macro_revision. -$progname: You should recreate aclocal.m4 with macros from revision $package_revision -$progname: of $PACKAGE $VERSION and run autoconf again. -_LT_EOF - fi - - exit $EXIT_MISMATCH - fi -} - - -# libtool_options_prep [ARG]... -# ----------------------------- -# Preparation for options parsed by libtool. -libtool_options_prep () -{ - $debug_mode - - # Option defaults: - opt_config=false - opt_dlopen= - opt_dry_run=false - opt_help=false - opt_mode= - opt_preserve_dup_deps=false - opt_quiet=false - - nonopt= - preserve_args= - - # Shorthand for --mode=foo, only valid as the first argument - case $1 in - clean|clea|cle|cl) - shift; set dummy --mode clean ${1+"$@"}; shift - ;; - compile|compil|compi|comp|com|co|c) - shift; set dummy --mode compile ${1+"$@"}; shift - ;; - execute|execut|execu|exec|exe|ex|e) - shift; set dummy --mode execute ${1+"$@"}; shift - ;; - finish|finis|fini|fin|fi|f) - shift; set dummy --mode finish ${1+"$@"}; shift - ;; - install|instal|insta|inst|ins|in|i) - shift; set dummy --mode install ${1+"$@"}; shift - ;; - link|lin|li|l) - shift; set dummy --mode link ${1+"$@"}; shift - ;; - uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) - shift; set dummy --mode uninstall ${1+"$@"}; shift - ;; - esac - - # Pass back the list of options. - func_quote_for_eval ${1+"$@"} - libtool_options_prep_result=$func_quote_for_eval_result -} -func_add_hook func_options_prep libtool_options_prep - - -# libtool_parse_options [ARG]... -# --------------------------------- -# Provide handling for libtool specific options. -libtool_parse_options () -{ - $debug_cmd - - # Perform our own loop to consume as many options as possible in - # each iteration. - while test $# -gt 0; do - _G_opt=$1 - shift - case $_G_opt in - --dry-run|--dryrun|-n) - opt_dry_run=: - ;; - - --config) func_config ;; - - --dlopen|-dlopen) - opt_dlopen="${opt_dlopen+$opt_dlopen -}$1" - shift - ;; - - --preserve-dup-deps) - opt_preserve_dup_deps=: ;; - - --features) func_features ;; - - --finish) set dummy --mode finish ${1+"$@"}; shift ;; - - --help) opt_help=: ;; - - --help-all) opt_help=': help-all' ;; - - --mode) test $# = 0 && func_missing_arg $_G_opt && break - opt_mode=$1 - case $1 in - # Valid mode arguments: - clean|compile|execute|finish|install|link|relink|uninstall) ;; - - # Catch anything else as an error - *) func_error "invalid argument for $_G_opt" - exit_cmd=exit - break - ;; - esac - shift - ;; - - --no-silent|--no-quiet) - opt_quiet=false - func_append preserve_args " $_G_opt" - ;; - - --no-warnings|--no-warning|--no-warn) - opt_warning=false - func_append preserve_args " $_G_opt" - ;; - - --no-verbose) - opt_verbose=false - func_append preserve_args " $_G_opt" - ;; - - --silent|--quiet) - opt_quiet=: - opt_verbose=false - func_append preserve_args " $_G_opt" - ;; - - --tag) test $# = 0 && func_missing_arg $_G_opt && break - opt_tag=$1 - func_append preserve_args " $_G_opt $1" - func_enable_tag "$1" - shift - ;; - - --verbose|-v) opt_quiet=false - opt_verbose=: - func_append preserve_args " $_G_opt" - ;; - - # An option not handled by this hook function: - *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; - esac - done - - - # save modified positional parameters for caller - func_quote_for_eval ${1+"$@"} - libtool_parse_options_result=$func_quote_for_eval_result -} -func_add_hook func_parse_options libtool_parse_options - - - -# libtool_validate_options [ARG]... -# --------------------------------- -# Perform any sanity checks on option settings and/or unconsumed -# arguments. -libtool_validate_options () -{ - # save first non-option argument - if test 0 -lt $#; then - nonopt=$1 - shift - fi - - # preserve --debug - test : = "$debug_cmd" || func_append preserve_args " --debug" - - case $host in - # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 - # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 - *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*) - # don't eliminate duplications in $postdeps and $predeps - opt_duplicate_compiler_generated_deps=: - ;; - *) - opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps - ;; - esac - - $opt_help || { - # Sanity checks first: - func_check_version_match - - test yes != "$build_libtool_libs" \ - && test yes != "$build_old_libs" \ - && func_fatal_configuration "not configured to build any kind of library" - - # Darwin sucks - eval std_shrext=\"$shrext_cmds\" - - # Only execute mode is allowed to have -dlopen flags. - if test -n "$opt_dlopen" && test execute != "$opt_mode"; then - func_error "unrecognized option '-dlopen'" - $ECHO "$help" 1>&2 - exit $EXIT_FAILURE - fi - - # Change the help message to a mode-specific one. - generic_help=$help - help="Try '$progname --help --mode=$opt_mode' for more information." - } - - # Pass back the unparsed argument list - func_quote_for_eval ${1+"$@"} - libtool_validate_options_result=$func_quote_for_eval_result -} -func_add_hook func_validate_options libtool_validate_options - - -# Process options as early as possible so that --help and --version -# can return quickly. -func_options ${1+"$@"} -eval set dummy "$func_options_result"; shift - - - -## ----------- ## -## Main. ## -## ----------- ## - -magic='%%%MAGIC variable%%%' -magic_exe='%%%MAGIC EXE variable%%%' - -# Global variables. -extracted_archives= -extracted_serial=0 - -# If this variable is set in any of the actions, the command in it -# will be execed at the end. This prevents here-documents from being -# left over by shells. -exec_cmd= - - -# A function that is used when there is no print builtin or printf. -func_fallback_echo () -{ - eval 'cat <<_LTECHO_EOF -$1 -_LTECHO_EOF' -} - -# func_generated_by_libtool -# True iff stdin has been generated by Libtool. This function is only -# a basic sanity check; it will hardly flush out determined imposters. -func_generated_by_libtool_p () -{ - $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 -} - -# func_lalib_p file -# True iff FILE is a libtool '.la' library or '.lo' object file. -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_lalib_p () -{ - test -f "$1" && - $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p -} - -# func_lalib_unsafe_p file -# True iff FILE is a libtool '.la' library or '.lo' object file. -# This function implements the same check as func_lalib_p without -# resorting to external programs. To this end, it redirects stdin and -# closes it afterwards, without saving the original file descriptor. -# As a safety measure, use it only where a negative result would be -# fatal anyway. Works if 'file' does not exist. -func_lalib_unsafe_p () -{ - lalib_p=no - if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then - for lalib_p_l in 1 2 3 4 - do - read lalib_p_line - case $lalib_p_line in - \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; - esac - done - exec 0<&5 5<&- - fi - test yes = "$lalib_p" -} - -# func_ltwrapper_script_p file -# True iff FILE is a libtool wrapper script -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_ltwrapper_script_p () -{ - test -f "$1" && - $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p -} - -# func_ltwrapper_executable_p file -# True iff FILE is a libtool wrapper executable -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_ltwrapper_executable_p () -{ - func_ltwrapper_exec_suffix= - case $1 in - *.exe) ;; - *) func_ltwrapper_exec_suffix=.exe ;; - esac - $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 -} - -# func_ltwrapper_scriptname file -# Assumes file is an ltwrapper_executable -# uses $file to determine the appropriate filename for a -# temporary ltwrapper_script. -func_ltwrapper_scriptname () -{ - func_dirname_and_basename "$1" "" "." - func_stripname '' '.exe' "$func_basename_result" - func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper -} - -# func_ltwrapper_p file -# True iff FILE is a libtool wrapper script or wrapper executable -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_ltwrapper_p () -{ - func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" -} - - -# func_execute_cmds commands fail_cmd -# Execute tilde-delimited COMMANDS. -# If FAIL_CMD is given, eval that upon failure. -# FAIL_CMD may read-access the current command in variable CMD! -func_execute_cmds () -{ - $debug_cmd - - save_ifs=$IFS; IFS='~' - for cmd in $1; do - IFS=$sp$nl - eval cmd=\"$cmd\" - IFS=$save_ifs - func_show_eval "$cmd" "${2-:}" - done - IFS=$save_ifs -} - - -# func_source file -# Source FILE, adding directory component if necessary. -# Note that it is not necessary on cygwin/mingw to append a dot to -# FILE even if both FILE and FILE.exe exist: automatic-append-.exe -# behavior happens only for exec(3), not for open(2)! Also, sourcing -# 'FILE.' does not work on cygwin managed mounts. -func_source () -{ - $debug_cmd - - case $1 in - */* | *\\*) . "$1" ;; - *) . "./$1" ;; - esac -} - - -# func_resolve_sysroot PATH -# Replace a leading = in PATH with a sysroot. Store the result into -# func_resolve_sysroot_result -func_resolve_sysroot () -{ - func_resolve_sysroot_result=$1 - case $func_resolve_sysroot_result in - =*) - func_stripname '=' '' "$func_resolve_sysroot_result" - func_resolve_sysroot_result=$lt_sysroot$func_stripname_result - ;; - esac -} - -# func_replace_sysroot PATH -# If PATH begins with the sysroot, replace it with = and -# store the result into func_replace_sysroot_result. -func_replace_sysroot () -{ - case $lt_sysroot:$1 in - ?*:"$lt_sysroot"*) - func_stripname "$lt_sysroot" '' "$1" - func_replace_sysroot_result='='$func_stripname_result - ;; - *) - # Including no sysroot. - func_replace_sysroot_result=$1 - ;; - esac -} - -# func_infer_tag arg -# Infer tagged configuration to use if any are available and -# if one wasn't chosen via the "--tag" command line option. -# Only attempt this if the compiler in the base compile -# command doesn't match the default compiler. -# arg is usually of the form 'gcc ...' -func_infer_tag () -{ - $debug_cmd - - if test -n "$available_tags" && test -z "$tagname"; then - CC_quoted= - for arg in $CC; do - func_append_quoted CC_quoted "$arg" - done - CC_expanded=`func_echo_all $CC` - CC_quoted_expanded=`func_echo_all $CC_quoted` - case $@ in - # Blanks in the command may have been stripped by the calling shell, - # but not from the CC environment variable when configure was run. - " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ - " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; - # Blanks at the start of $base_compile will cause this to fail - # if we don't check for them as well. - *) - for z in $available_tags; do - if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then - # Evaluate the configuration. - eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" - CC_quoted= - for arg in $CC; do - # Double-quote args containing other shell metacharacters. - func_append_quoted CC_quoted "$arg" - done - CC_expanded=`func_echo_all $CC` - CC_quoted_expanded=`func_echo_all $CC_quoted` - case "$@ " in - " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ - " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) - # The compiler in the base compile command matches - # the one in the tagged configuration. - # Assume this is the tagged configuration we want. - tagname=$z - break - ;; - esac - fi - done - # If $tagname still isn't set, then no tagged configuration - # was found and let the user know that the "--tag" command - # line option must be used. - if test -z "$tagname"; then - func_echo "unable to infer tagged configuration" - func_fatal_error "specify a tag with '--tag'" -# else -# func_verbose "using $tagname tagged configuration" - fi - ;; - esac - fi -} - - - -# func_write_libtool_object output_name pic_name nonpic_name -# Create a libtool object file (analogous to a ".la" file), -# but don't create it if we're doing a dry run. -func_write_libtool_object () -{ - write_libobj=$1 - if test yes = "$build_libtool_libs"; then - write_lobj=\'$2\' - else - write_lobj=none - fi - - if test yes = "$build_old_libs"; then - write_oldobj=\'$3\' - else - write_oldobj=none - fi - - $opt_dry_run || { - cat >${write_libobj}T </dev/null` - if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then - func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | - $SED -e "$sed_naive_backslashify"` - else - func_convert_core_file_wine_to_w32_result= - fi - fi -} -# end: func_convert_core_file_wine_to_w32 - - -# func_convert_core_path_wine_to_w32 ARG -# Helper function used by path conversion functions when $build is *nix, and -# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly -# configured wine environment available, with the winepath program in $build's -# $PATH. Assumes ARG has no leading or trailing path separator characters. -# -# ARG is path to be converted from $build format to win32. -# Result is available in $func_convert_core_path_wine_to_w32_result. -# Unconvertible file (directory) names in ARG are skipped; if no directory names -# are convertible, then the result may be empty. -func_convert_core_path_wine_to_w32 () -{ - $debug_cmd - - # unfortunately, winepath doesn't convert paths, only file names - func_convert_core_path_wine_to_w32_result= - if test -n "$1"; then - oldIFS=$IFS - IFS=: - for func_convert_core_path_wine_to_w32_f in $1; do - IFS=$oldIFS - func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" - if test -n "$func_convert_core_file_wine_to_w32_result"; then - if test -z "$func_convert_core_path_wine_to_w32_result"; then - func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result - else - func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" - fi - fi - done - IFS=$oldIFS - fi -} -# end: func_convert_core_path_wine_to_w32 - - -# func_cygpath ARGS... -# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when -# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) -# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or -# (2), returns the Cygwin file name or path in func_cygpath_result (input -# file name or path is assumed to be in w32 format, as previously converted -# from $build's *nix or MSYS format). In case (3), returns the w32 file name -# or path in func_cygpath_result (input file name or path is assumed to be in -# Cygwin format). Returns an empty string on error. -# -# ARGS are passed to cygpath, with the last one being the file name or path to -# be converted. -# -# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH -# environment variable; do not put it in $PATH. -func_cygpath () -{ - $debug_cmd - - if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then - func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` - if test "$?" -ne 0; then - # on failure, ensure result is empty - func_cygpath_result= - fi - else - func_cygpath_result= - func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'" - fi -} -#end: func_cygpath - - -# func_convert_core_msys_to_w32 ARG -# Convert file name or path ARG from MSYS format to w32 format. Return -# result in func_convert_core_msys_to_w32_result. -func_convert_core_msys_to_w32 () -{ - $debug_cmd - - # awkward: cmd appends spaces to result - func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | - $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"` -} -#end: func_convert_core_msys_to_w32 - - -# func_convert_file_check ARG1 ARG2 -# Verify that ARG1 (a file name in $build format) was converted to $host -# format in ARG2. Otherwise, emit an error message, but continue (resetting -# func_to_host_file_result to ARG1). -func_convert_file_check () -{ - $debug_cmd - - if test -z "$2" && test -n "$1"; then - func_error "Could not determine host file name corresponding to" - func_error " '$1'" - func_error "Continuing, but uninstalled executables may not work." - # Fallback: - func_to_host_file_result=$1 - fi -} -# end func_convert_file_check - - -# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH -# Verify that FROM_PATH (a path in $build format) was converted to $host -# format in TO_PATH. Otherwise, emit an error message, but continue, resetting -# func_to_host_file_result to a simplistic fallback value (see below). -func_convert_path_check () -{ - $debug_cmd - - if test -z "$4" && test -n "$3"; then - func_error "Could not determine the host path corresponding to" - func_error " '$3'" - func_error "Continuing, but uninstalled executables may not work." - # Fallback. This is a deliberately simplistic "conversion" and - # should not be "improved". See libtool.info. - if test "x$1" != "x$2"; then - lt_replace_pathsep_chars="s|$1|$2|g" - func_to_host_path_result=`echo "$3" | - $SED -e "$lt_replace_pathsep_chars"` - else - func_to_host_path_result=$3 - fi - fi -} -# end func_convert_path_check - - -# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG -# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT -# and appending REPL if ORIG matches BACKPAT. -func_convert_path_front_back_pathsep () -{ - $debug_cmd - - case $4 in - $1 ) func_to_host_path_result=$3$func_to_host_path_result - ;; - esac - case $4 in - $2 ) func_append func_to_host_path_result "$3" - ;; - esac -} -# end func_convert_path_front_back_pathsep - - -################################################## -# $build to $host FILE NAME CONVERSION FUNCTIONS # -################################################## -# invoked via '$to_host_file_cmd ARG' -# -# In each case, ARG is the path to be converted from $build to $host format. -# Result will be available in $func_to_host_file_result. - - -# func_to_host_file ARG -# Converts the file name ARG from $build format to $host format. Return result -# in func_to_host_file_result. -func_to_host_file () -{ - $debug_cmd - - $to_host_file_cmd "$1" -} -# end func_to_host_file - - -# func_to_tool_file ARG LAZY -# converts the file name ARG from $build format to toolchain format. Return -# result in func_to_tool_file_result. If the conversion in use is listed -# in (the comma separated) LAZY, no conversion takes place. -func_to_tool_file () -{ - $debug_cmd - - case ,$2, in - *,"$to_tool_file_cmd",*) - func_to_tool_file_result=$1 - ;; - *) - $to_tool_file_cmd "$1" - func_to_tool_file_result=$func_to_host_file_result - ;; - esac -} -# end func_to_tool_file - - -# func_convert_file_noop ARG -# Copy ARG to func_to_host_file_result. -func_convert_file_noop () -{ - func_to_host_file_result=$1 -} -# end func_convert_file_noop - - -# func_convert_file_msys_to_w32 ARG -# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic -# conversion to w32 is not available inside the cwrapper. Returns result in -# func_to_host_file_result. -func_convert_file_msys_to_w32 () -{ - $debug_cmd - - func_to_host_file_result=$1 - if test -n "$1"; then - func_convert_core_msys_to_w32 "$1" - func_to_host_file_result=$func_convert_core_msys_to_w32_result - fi - func_convert_file_check "$1" "$func_to_host_file_result" -} -# end func_convert_file_msys_to_w32 - - -# func_convert_file_cygwin_to_w32 ARG -# Convert file name ARG from Cygwin to w32 format. Returns result in -# func_to_host_file_result. -func_convert_file_cygwin_to_w32 () -{ - $debug_cmd - - func_to_host_file_result=$1 - if test -n "$1"; then - # because $build is cygwin, we call "the" cygpath in $PATH; no need to use - # LT_CYGPATH in this case. - func_to_host_file_result=`cygpath -m "$1"` - fi - func_convert_file_check "$1" "$func_to_host_file_result" -} -# end func_convert_file_cygwin_to_w32 - - -# func_convert_file_nix_to_w32 ARG -# Convert file name ARG from *nix to w32 format. Requires a wine environment -# and a working winepath. Returns result in func_to_host_file_result. -func_convert_file_nix_to_w32 () -{ - $debug_cmd - - func_to_host_file_result=$1 - if test -n "$1"; then - func_convert_core_file_wine_to_w32 "$1" - func_to_host_file_result=$func_convert_core_file_wine_to_w32_result - fi - func_convert_file_check "$1" "$func_to_host_file_result" -} -# end func_convert_file_nix_to_w32 - - -# func_convert_file_msys_to_cygwin ARG -# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. -# Returns result in func_to_host_file_result. -func_convert_file_msys_to_cygwin () -{ - $debug_cmd - - func_to_host_file_result=$1 - if test -n "$1"; then - func_convert_core_msys_to_w32 "$1" - func_cygpath -u "$func_convert_core_msys_to_w32_result" - func_to_host_file_result=$func_cygpath_result - fi - func_convert_file_check "$1" "$func_to_host_file_result" -} -# end func_convert_file_msys_to_cygwin - - -# func_convert_file_nix_to_cygwin ARG -# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed -# in a wine environment, working winepath, and LT_CYGPATH set. Returns result -# in func_to_host_file_result. -func_convert_file_nix_to_cygwin () -{ - $debug_cmd - - func_to_host_file_result=$1 - if test -n "$1"; then - # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. - func_convert_core_file_wine_to_w32 "$1" - func_cygpath -u "$func_convert_core_file_wine_to_w32_result" - func_to_host_file_result=$func_cygpath_result - fi - func_convert_file_check "$1" "$func_to_host_file_result" -} -# end func_convert_file_nix_to_cygwin - - -############################################# -# $build to $host PATH CONVERSION FUNCTIONS # -############################################# -# invoked via '$to_host_path_cmd ARG' -# -# In each case, ARG is the path to be converted from $build to $host format. -# The result will be available in $func_to_host_path_result. -# -# Path separators are also converted from $build format to $host format. If -# ARG begins or ends with a path separator character, it is preserved (but -# converted to $host format) on output. -# -# All path conversion functions are named using the following convention: -# file name conversion function : func_convert_file_X_to_Y () -# path conversion function : func_convert_path_X_to_Y () -# where, for any given $build/$host combination the 'X_to_Y' value is the -# same. If conversion functions are added for new $build/$host combinations, -# the two new functions must follow this pattern, or func_init_to_host_path_cmd -# will break. - - -# func_init_to_host_path_cmd -# Ensures that function "pointer" variable $to_host_path_cmd is set to the -# appropriate value, based on the value of $to_host_file_cmd. -to_host_path_cmd= -func_init_to_host_path_cmd () -{ - $debug_cmd - - if test -z "$to_host_path_cmd"; then - func_stripname 'func_convert_file_' '' "$to_host_file_cmd" - to_host_path_cmd=func_convert_path_$func_stripname_result - fi -} - - -# func_to_host_path ARG -# Converts the path ARG from $build format to $host format. Return result -# in func_to_host_path_result. -func_to_host_path () -{ - $debug_cmd - - func_init_to_host_path_cmd - $to_host_path_cmd "$1" -} -# end func_to_host_path - - -# func_convert_path_noop ARG -# Copy ARG to func_to_host_path_result. -func_convert_path_noop () -{ - func_to_host_path_result=$1 -} -# end func_convert_path_noop - - -# func_convert_path_msys_to_w32 ARG -# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic -# conversion to w32 is not available inside the cwrapper. Returns result in -# func_to_host_path_result. -func_convert_path_msys_to_w32 () -{ - $debug_cmd - - func_to_host_path_result=$1 - if test -n "$1"; then - # Remove leading and trailing path separator characters from ARG. MSYS - # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; - # and winepath ignores them completely. - func_stripname : : "$1" - func_to_host_path_tmp1=$func_stripname_result - func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" - func_to_host_path_result=$func_convert_core_msys_to_w32_result - func_convert_path_check : ";" \ - "$func_to_host_path_tmp1" "$func_to_host_path_result" - func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" - fi -} -# end func_convert_path_msys_to_w32 - - -# func_convert_path_cygwin_to_w32 ARG -# Convert path ARG from Cygwin to w32 format. Returns result in -# func_to_host_file_result. -func_convert_path_cygwin_to_w32 () -{ - $debug_cmd - - func_to_host_path_result=$1 - if test -n "$1"; then - # See func_convert_path_msys_to_w32: - func_stripname : : "$1" - func_to_host_path_tmp1=$func_stripname_result - func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` - func_convert_path_check : ";" \ - "$func_to_host_path_tmp1" "$func_to_host_path_result" - func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" - fi -} -# end func_convert_path_cygwin_to_w32 - - -# func_convert_path_nix_to_w32 ARG -# Convert path ARG from *nix to w32 format. Requires a wine environment and -# a working winepath. Returns result in func_to_host_file_result. -func_convert_path_nix_to_w32 () -{ - $debug_cmd - - func_to_host_path_result=$1 - if test -n "$1"; then - # See func_convert_path_msys_to_w32: - func_stripname : : "$1" - func_to_host_path_tmp1=$func_stripname_result - func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" - func_to_host_path_result=$func_convert_core_path_wine_to_w32_result - func_convert_path_check : ";" \ - "$func_to_host_path_tmp1" "$func_to_host_path_result" - func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" - fi -} -# end func_convert_path_nix_to_w32 - - -# func_convert_path_msys_to_cygwin ARG -# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. -# Returns result in func_to_host_file_result. -func_convert_path_msys_to_cygwin () -{ - $debug_cmd - - func_to_host_path_result=$1 - if test -n "$1"; then - # See func_convert_path_msys_to_w32: - func_stripname : : "$1" - func_to_host_path_tmp1=$func_stripname_result - func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" - func_cygpath -u -p "$func_convert_core_msys_to_w32_result" - func_to_host_path_result=$func_cygpath_result - func_convert_path_check : : \ - "$func_to_host_path_tmp1" "$func_to_host_path_result" - func_convert_path_front_back_pathsep ":*" "*:" : "$1" - fi -} -# end func_convert_path_msys_to_cygwin - - -# func_convert_path_nix_to_cygwin ARG -# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a -# a wine environment, working winepath, and LT_CYGPATH set. Returns result in -# func_to_host_file_result. -func_convert_path_nix_to_cygwin () -{ - $debug_cmd - - func_to_host_path_result=$1 - if test -n "$1"; then - # Remove leading and trailing path separator characters from - # ARG. msys behavior is inconsistent here, cygpath turns them - # into '.;' and ';.', and winepath ignores them completely. - func_stripname : : "$1" - func_to_host_path_tmp1=$func_stripname_result - func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" - func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" - func_to_host_path_result=$func_cygpath_result - func_convert_path_check : : \ - "$func_to_host_path_tmp1" "$func_to_host_path_result" - func_convert_path_front_back_pathsep ":*" "*:" : "$1" - fi -} -# end func_convert_path_nix_to_cygwin - - -# func_dll_def_p FILE -# True iff FILE is a Windows DLL '.def' file. -# Keep in sync with _LT_DLL_DEF_P in libtool.m4 -func_dll_def_p () -{ - $debug_cmd - - func_dll_def_p_tmp=`$SED -n \ - -e 's/^[ ]*//' \ - -e '/^\(;.*\)*$/d' \ - -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \ - -e q \ - "$1"` - test DEF = "$func_dll_def_p_tmp" -} - - -# func_mode_compile arg... -func_mode_compile () -{ - $debug_cmd - - # Get the compilation command and the source file. - base_compile= - srcfile=$nonopt # always keep a non-empty value in "srcfile" - suppress_opt=yes - suppress_output= - arg_mode=normal - libobj= - later= - pie_flag= - - for arg - do - case $arg_mode in - arg ) - # do not "continue". Instead, add this to base_compile - lastarg=$arg - arg_mode=normal - ;; - - target ) - libobj=$arg - arg_mode=normal - continue - ;; - - normal ) - # Accept any command-line options. - case $arg in - -o) - test -n "$libobj" && \ - func_fatal_error "you cannot specify '-o' more than once" - arg_mode=target - continue - ;; - - -pie | -fpie | -fPIE) - func_append pie_flag " $arg" - continue - ;; - - -shared | -static | -prefer-pic | -prefer-non-pic) - func_append later " $arg" - continue - ;; - - -no-suppress) - suppress_opt=no - continue - ;; - - -Xcompiler) - arg_mode=arg # the next one goes into the "base_compile" arg list - continue # The current "srcfile" will either be retained or - ;; # replaced later. I would guess that would be a bug. - - -Wc,*) - func_stripname '-Wc,' '' "$arg" - args=$func_stripname_result - lastarg= - save_ifs=$IFS; IFS=, - for arg in $args; do - IFS=$save_ifs - func_append_quoted lastarg "$arg" - done - IFS=$save_ifs - func_stripname ' ' '' "$lastarg" - lastarg=$func_stripname_result - - # Add the arguments to base_compile. - func_append base_compile " $lastarg" - continue - ;; - - *) - # Accept the current argument as the source file. - # The previous "srcfile" becomes the current argument. - # - lastarg=$srcfile - srcfile=$arg - ;; - esac # case $arg - ;; - esac # case $arg_mode - - # Aesthetically quote the previous argument. - func_append_quoted base_compile "$lastarg" - done # for arg - - case $arg_mode in - arg) - func_fatal_error "you must specify an argument for -Xcompile" - ;; - target) - func_fatal_error "you must specify a target with '-o'" - ;; - *) - # Get the name of the library object. - test -z "$libobj" && { - func_basename "$srcfile" - libobj=$func_basename_result - } - ;; - esac - - # Recognize several different file suffixes. - # If the user specifies -o file.o, it is replaced with file.lo - case $libobj in - *.[cCFSifmso] | \ - *.ada | *.adb | *.ads | *.asm | \ - *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ - *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) - func_xform "$libobj" - libobj=$func_xform_result - ;; - esac - - case $libobj in - *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; - *) - func_fatal_error "cannot determine name of library object from '$libobj'" - ;; - esac - - func_infer_tag $base_compile - - for arg in $later; do - case $arg in - -shared) - test yes = "$build_libtool_libs" \ - || func_fatal_configuration "cannot build a shared library" - build_old_libs=no - continue - ;; - - -static) - build_libtool_libs=no - build_old_libs=yes - continue - ;; - - -prefer-pic) - pic_mode=yes - continue - ;; - - -prefer-non-pic) - pic_mode=no - continue - ;; - esac - done - - func_quote_for_eval "$libobj" - test "X$libobj" != "X$func_quote_for_eval_result" \ - && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ - && func_warning "libobj name '$libobj' may not contain shell special characters." - func_dirname_and_basename "$obj" "/" "" - objname=$func_basename_result - xdir=$func_dirname_result - lobj=$xdir$objdir/$objname - - test -z "$base_compile" && \ - func_fatal_help "you must specify a compilation command" - - # Delete any leftover library objects. - if test yes = "$build_old_libs"; then - removelist="$obj $lobj $libobj ${libobj}T" - else - removelist="$lobj $libobj ${libobj}T" - fi - - # On Cygwin there's no "real" PIC flag so we must build both object types - case $host_os in - cygwin* | mingw* | pw32* | os2* | cegcc*) - pic_mode=default - ;; - esac - if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then - # non-PIC code in shared libraries is not supported - pic_mode=default - fi - - # Calculate the filename of the output object if compiler does - # not support -o with -c - if test no = "$compiler_c_o"; then - output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext - lockfile=$output_obj.lock - else - output_obj= - need_locks=no - lockfile= - fi - - # Lock this critical section if it is needed - # We use this script file to make the link, it avoids creating a new file - if test yes = "$need_locks"; then - until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do - func_echo "Waiting for $lockfile to be removed" - sleep 2 - done - elif test warn = "$need_locks"; then - if test -f "$lockfile"; then - $ECHO "\ -*** ERROR, $lockfile exists and contains: -`cat $lockfile 2>/dev/null` - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support '-c' and '-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $opt_dry_run || $RM $removelist - exit $EXIT_FAILURE - fi - func_append removelist " $output_obj" - $ECHO "$srcfile" > "$lockfile" - fi - - $opt_dry_run || $RM $removelist - func_append removelist " $lockfile" - trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 - - func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 - srcfile=$func_to_tool_file_result - func_quote_for_eval "$srcfile" - qsrcfile=$func_quote_for_eval_result - - # Only build a PIC object if we are building libtool libraries. - if test yes = "$build_libtool_libs"; then - # Without this assignment, base_compile gets emptied. - fbsd_hideous_sh_bug=$base_compile - - if test no != "$pic_mode"; then - command="$base_compile $qsrcfile $pic_flag" - else - # Don't build PIC code - command="$base_compile $qsrcfile" - fi - - func_mkdir_p "$xdir$objdir" - - if test -z "$output_obj"; then - # Place PIC objects in $objdir - func_append command " -o $lobj" - fi - - func_show_eval_locale "$command" \ - 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' - - if test warn = "$need_locks" && - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then - $ECHO "\ -*** ERROR, $lockfile contains: -`cat $lockfile 2>/dev/null` - -but it should contain: -$srcfile - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support '-c' and '-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $opt_dry_run || $RM $removelist - exit $EXIT_FAILURE - fi - - # Just move the object if needed, then go on to compile the next one - if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then - func_show_eval '$MV "$output_obj" "$lobj"' \ - 'error=$?; $opt_dry_run || $RM $removelist; exit $error' - fi - - # Allow error messages only from the first compilation. - if test yes = "$suppress_opt"; then - suppress_output=' >/dev/null 2>&1' - fi - fi - - # Only build a position-dependent object if we build old libraries. - if test yes = "$build_old_libs"; then - if test yes != "$pic_mode"; then - # Don't build PIC code - command="$base_compile $qsrcfile$pie_flag" - else - command="$base_compile $qsrcfile $pic_flag" - fi - if test yes = "$compiler_c_o"; then - func_append command " -o $obj" - fi - - # Suppress compiler output if we already did a PIC compilation. - func_append command "$suppress_output" - func_show_eval_locale "$command" \ - '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' - - if test warn = "$need_locks" && - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then - $ECHO "\ -*** ERROR, $lockfile contains: -`cat $lockfile 2>/dev/null` - -but it should contain: -$srcfile - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support '-c' and '-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $opt_dry_run || $RM $removelist - exit $EXIT_FAILURE - fi - - # Just move the object if needed - if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then - func_show_eval '$MV "$output_obj" "$obj"' \ - 'error=$?; $opt_dry_run || $RM $removelist; exit $error' - fi - fi - - $opt_dry_run || { - func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" - - # Unlock the critical section if it was locked - if test no != "$need_locks"; then - removelist=$lockfile - $RM "$lockfile" - fi - } - - exit $EXIT_SUCCESS -} - -$opt_help || { - test compile = "$opt_mode" && func_mode_compile ${1+"$@"} -} - -func_mode_help () -{ - # We need to display help for each of the modes. - case $opt_mode in - "") - # Generic help is extracted from the usage comments - # at the start of this file. - func_help - ;; - - clean) - $ECHO \ -"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... - -Remove files from the build directory. - -RM is the name of the program to use to delete files associated with each FILE -(typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed -to RM. - -If FILE is a libtool library, object or program, all the files associated -with it are deleted. Otherwise, only FILE itself is deleted using RM." - ;; - - compile) - $ECHO \ -"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE - -Compile a source file into a libtool library object. - -This mode accepts the following additional options: - - -o OUTPUT-FILE set the output file name to OUTPUT-FILE - -no-suppress do not suppress compiler output for multiple passes - -prefer-pic try to build PIC objects only - -prefer-non-pic try to build non-PIC objects only - -shared do not build a '.o' file suitable for static linking - -static only build a '.o' file suitable for static linking - -Wc,FLAG pass FLAG directly to the compiler - -COMPILE-COMMAND is a command to be used in creating a 'standard' object file -from the given SOURCEFILE. - -The output file name is determined by removing the directory component from -SOURCEFILE, then substituting the C source code suffix '.c' with the -library object suffix, '.lo'." - ;; - - execute) - $ECHO \ -"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... - -Automatically set library path, then run a program. - -This mode accepts the following additional options: - - -dlopen FILE add the directory containing FILE to the library path - -This mode sets the library path environment variable according to '-dlopen' -flags. - -If any of the ARGS are libtool executable wrappers, then they are translated -into their corresponding uninstalled binary, and any of their required library -directories are added to the library path. - -Then, COMMAND is executed, with ARGS as arguments." - ;; - - finish) - $ECHO \ -"Usage: $progname [OPTION]... --mode=finish [LIBDIR]... - -Complete the installation of libtool libraries. - -Each LIBDIR is a directory that contains libtool libraries. - -The commands that this mode executes may require superuser privileges. Use -the '--dry-run' option if you just want to see what would be executed." - ;; - - install) - $ECHO \ -"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... - -Install executables or libraries. - -INSTALL-COMMAND is the installation command. The first component should be -either the 'install' or 'cp' program. - -The following components of INSTALL-COMMAND are treated specially: - - -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation - -The rest of the components are interpreted as arguments to that command (only -BSD-compatible install options are recognized)." - ;; - - link) - $ECHO \ -"Usage: $progname [OPTION]... --mode=link LINK-COMMAND... - -Link object files or libraries together to form another library, or to -create an executable program. - -LINK-COMMAND is a command using the C compiler that you would use to create -a program from several object files. - -The following components of LINK-COMMAND are treated specially: - - -all-static do not do any dynamic linking at all - -avoid-version do not add a version suffix if possible - -bindir BINDIR specify path to binaries directory (for systems where - libraries must be found in the PATH setting at runtime) - -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) - -export-symbols SYMFILE - try to export only the symbols listed in SYMFILE - -export-symbols-regex REGEX - try to export only the symbols matching REGEX - -LLIBDIR search LIBDIR for required installed libraries - -lNAME OUTPUT-FILE requires the installed library libNAME - -module build a library that can dlopened - -no-fast-install disable the fast-install mode - -no-install link a not-installable executable - -no-undefined declare that a library does not refer to external symbols - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects - -objectlist FILE use a list of object files found in FILE to specify objects - -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes) - -precious-files-regex REGEX - don't remove output files matching REGEX - -release RELEASE specify package release information - -rpath LIBDIR the created library will eventually be installed in LIBDIR - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries - -shared only do dynamic linking of libtool libraries - -shrext SUFFIX override the standard shared library file extension - -static do not do any dynamic linking of uninstalled libtool libraries - -static-libtool-libs - do not do any dynamic linking of libtool libraries - -version-info CURRENT[:REVISION[:AGE]] - specify library version info [each variable defaults to 0] - -weak LIBNAME declare that the target provides the LIBNAME interface - -Wc,FLAG - -Xcompiler FLAG pass linker-specific FLAG directly to the compiler - -Wl,FLAG - -Xlinker FLAG pass linker-specific FLAG directly to the linker - -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) - -All other options (arguments beginning with '-') are ignored. - -Every other argument is treated as a filename. Files ending in '.la' are -treated as uninstalled libtool libraries, other files are standard or library -object files. - -If the OUTPUT-FILE ends in '.la', then a libtool library is created, -only library objects ('.lo' files) may be specified, and '-rpath' is -required, except when creating a convenience library. - -If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created -using 'ar' and 'ranlib', or on Windows using 'lib'. - -If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file -is created, otherwise an executable program is created." - ;; - - uninstall) - $ECHO \ -"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... - -Remove libraries from an installation directory. - -RM is the name of the program to use to delete files associated with each FILE -(typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed -to RM. - -If FILE is a libtool library, all the files associated with it are deleted. -Otherwise, only FILE itself is deleted using RM." - ;; - - *) - func_fatal_help "invalid operation mode '$opt_mode'" - ;; - esac - - echo - $ECHO "Try '$progname --help' for more information about other modes." -} - -# Now that we've collected a possible --mode arg, show help if necessary -if $opt_help; then - if test : = "$opt_help"; then - func_mode_help - else - { - func_help noexit - for opt_mode in compile link execute install finish uninstall clean; do - func_mode_help - done - } | $SED -n '1p; 2,$s/^Usage:/ or: /p' - { - func_help noexit - for opt_mode in compile link execute install finish uninstall clean; do - echo - func_mode_help - done - } | - $SED '1d - /^When reporting/,/^Report/{ - H - d - } - $x - /information about other modes/d - /more detailed .*MODE/d - s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' - fi - exit $? -fi - - -# func_mode_execute arg... -func_mode_execute () -{ - $debug_cmd - - # The first argument is the command name. - cmd=$nonopt - test -z "$cmd" && \ - func_fatal_help "you must specify a COMMAND" - - # Handle -dlopen flags immediately. - for file in $opt_dlopen; do - test -f "$file" \ - || func_fatal_help "'$file' is not a file" - - dir= - case $file in - *.la) - func_resolve_sysroot "$file" - file=$func_resolve_sysroot_result - - # Check to see that this really is a libtool archive. - func_lalib_unsafe_p "$file" \ - || func_fatal_help "'$lib' is not a valid libtool archive" - - # Read the libtool library. - dlname= - library_names= - func_source "$file" - - # Skip this library if it cannot be dlopened. - if test -z "$dlname"; then - # Warn if it was a shared library. - test -n "$library_names" && \ - func_warning "'$file' was not linked with '-export-dynamic'" - continue - fi - - func_dirname "$file" "" "." - dir=$func_dirname_result - - if test -f "$dir/$objdir/$dlname"; then - func_append dir "/$objdir" - else - if test ! -f "$dir/$dlname"; then - func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'" - fi - fi - ;; - - *.lo) - # Just add the directory containing the .lo file. - func_dirname "$file" "" "." - dir=$func_dirname_result - ;; - - *) - func_warning "'-dlopen' is ignored for non-libtool libraries and objects" - continue - ;; - esac - - # Get the absolute pathname. - absdir=`cd "$dir" && pwd` - test -n "$absdir" && dir=$absdir - - # Now add the directory to shlibpath_var. - if eval "test -z \"\$$shlibpath_var\""; then - eval "$shlibpath_var=\"\$dir\"" - else - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" - fi - done - - # This variable tells wrapper scripts just to set shlibpath_var - # rather than running their programs. - libtool_execute_magic=$magic - - # Check if any of the arguments is a wrapper script. - args= - for file - do - case $file in - -* | *.la | *.lo ) ;; - *) - # Do a test to see if this is really a libtool program. - if func_ltwrapper_script_p "$file"; then - func_source "$file" - # Transform arg to wrapped name. - file=$progdir/$program - elif func_ltwrapper_executable_p "$file"; then - func_ltwrapper_scriptname "$file" - func_source "$func_ltwrapper_scriptname_result" - # Transform arg to wrapped name. - file=$progdir/$program - fi - ;; - esac - # Quote arguments (to preserve shell metacharacters). - func_append_quoted args "$file" - done - - if $opt_dry_run; then - # Display what would be done. - if test -n "$shlibpath_var"; then - eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" - echo "export $shlibpath_var" - fi - $ECHO "$cmd$args" - exit $EXIT_SUCCESS - else - if test -n "$shlibpath_var"; then - # Export the shlibpath_var. - eval "export $shlibpath_var" - fi - - # Restore saved environment variables - for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES - do - eval "if test \"\${save_$lt_var+set}\" = set; then - $lt_var=\$save_$lt_var; export $lt_var - else - $lt_unset $lt_var - fi" - done - - # Now prepare to actually exec the command. - exec_cmd=\$cmd$args - fi -} - -test execute = "$opt_mode" && func_mode_execute ${1+"$@"} - - -# func_mode_finish arg... -func_mode_finish () -{ - $debug_cmd - - libs= - libdirs= - admincmds= - - for opt in "$nonopt" ${1+"$@"} - do - if test -d "$opt"; then - func_append libdirs " $opt" - - elif test -f "$opt"; then - if func_lalib_unsafe_p "$opt"; then - func_append libs " $opt" - else - func_warning "'$opt' is not a valid libtool archive" - fi - - else - func_fatal_error "invalid argument '$opt'" - fi - done - - if test -n "$libs"; then - if test -n "$lt_sysroot"; then - sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` - sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" - else - sysroot_cmd= - fi - - # Remove sysroot references - if $opt_dry_run; then - for lib in $libs; do - echo "removing references to $lt_sysroot and '=' prefixes from $lib" - done - else - tmpdir=`func_mktempdir` - for lib in $libs; do - $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ - > $tmpdir/tmp-la - mv -f $tmpdir/tmp-la $lib - done - ${RM}r "$tmpdir" - fi - fi - - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then - for libdir in $libdirs; do - if test -n "$finish_cmds"; then - # Do each command in the finish commands. - func_execute_cmds "$finish_cmds" 'admincmds="$admincmds -'"$cmd"'"' - fi - if test -n "$finish_eval"; then - # Do the single finish_eval. - eval cmds=\"$finish_eval\" - $opt_dry_run || eval "$cmds" || func_append admincmds " - $cmds" - fi - done - fi - - # Exit here if they wanted silent mode. - $opt_quiet && exit $EXIT_SUCCESS - - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then - echo "----------------------------------------------------------------------" - echo "Libraries have been installed in:" - for libdir in $libdirs; do - $ECHO " $libdir" - done - echo - echo "If you ever happen to want to link against installed libraries" - echo "in a given directory, LIBDIR, you must either use libtool, and" - echo "specify the full pathname of the library, or use the '-LLIBDIR'" - echo "flag during linking and do at least one of the following:" - if test -n "$shlibpath_var"; then - echo " - add LIBDIR to the '$shlibpath_var' environment variable" - echo " during execution" - fi - if test -n "$runpath_var"; then - echo " - add LIBDIR to the '$runpath_var' environment variable" - echo " during linking" - fi - if test -n "$hardcode_libdir_flag_spec"; then - libdir=LIBDIR - eval flag=\"$hardcode_libdir_flag_spec\" - - $ECHO " - use the '$flag' linker flag" - fi - if test -n "$admincmds"; then - $ECHO " - have your system administrator run these commands:$admincmds" - fi - if test -f /etc/ld.so.conf; then - echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'" - fi - echo - - echo "See any operating system documentation about shared libraries for" - case $host in - solaris2.[6789]|solaris2.1[0-9]) - echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" - echo "pages." - ;; - *) - echo "more information, such as the ld(1) and ld.so(8) manual pages." - ;; - esac - echo "----------------------------------------------------------------------" - fi - exit $EXIT_SUCCESS -} - -test finish = "$opt_mode" && func_mode_finish ${1+"$@"} - - -# func_mode_install arg... -func_mode_install () -{ - $debug_cmd - - # There may be an optional sh(1) argument at the beginning of - # install_prog (especially on Windows NT). - if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" || - # Allow the use of GNU shtool's install command. - case $nonopt in *shtool*) :;; *) false;; esac - then - # Aesthetically quote it. - func_quote_for_eval "$nonopt" - install_prog="$func_quote_for_eval_result " - arg=$1 - shift - else - install_prog= - arg=$nonopt - fi - - # The real first argument should be the name of the installation program. - # Aesthetically quote it. - func_quote_for_eval "$arg" - func_append install_prog "$func_quote_for_eval_result" - install_shared_prog=$install_prog - case " $install_prog " in - *[\\\ /]cp\ *) install_cp=: ;; - *) install_cp=false ;; - esac - - # We need to accept at least all the BSD install flags. - dest= - files= - opts= - prev= - install_type= - isdir=false - stripme= - no_mode=: - for arg - do - arg2= - if test -n "$dest"; then - func_append files " $dest" - dest=$arg - continue - fi - - case $arg in - -d) isdir=: ;; - -f) - if $install_cp; then :; else - prev=$arg - fi - ;; - -g | -m | -o) - prev=$arg - ;; - -s) - stripme=" -s" - continue - ;; - -*) - ;; - *) - # If the previous option needed an argument, then skip it. - if test -n "$prev"; then - if test X-m = "X$prev" && test -n "$install_override_mode"; then - arg2=$install_override_mode - no_mode=false - fi - prev= - else - dest=$arg - continue - fi - ;; - esac - - # Aesthetically quote the argument. - func_quote_for_eval "$arg" - func_append install_prog " $func_quote_for_eval_result" - if test -n "$arg2"; then - func_quote_for_eval "$arg2" - fi - func_append install_shared_prog " $func_quote_for_eval_result" - done - - test -z "$install_prog" && \ - func_fatal_help "you must specify an install program" - - test -n "$prev" && \ - func_fatal_help "the '$prev' option requires an argument" - - if test -n "$install_override_mode" && $no_mode; then - if $install_cp; then :; else - func_quote_for_eval "$install_override_mode" - func_append install_shared_prog " -m $func_quote_for_eval_result" - fi - fi - - if test -z "$files"; then - if test -z "$dest"; then - func_fatal_help "no file or destination specified" - else - func_fatal_help "you must specify a destination" - fi - fi - - # Strip any trailing slash from the destination. - func_stripname '' '/' "$dest" - dest=$func_stripname_result - - # Check to see that the destination is a directory. - test -d "$dest" && isdir=: - if $isdir; then - destdir=$dest - destname= - else - func_dirname_and_basename "$dest" "" "." - destdir=$func_dirname_result - destname=$func_basename_result - - # Not a directory, so check to see that there is only one file specified. - set dummy $files; shift - test "$#" -gt 1 && \ - func_fatal_help "'$dest' is not a directory" - fi - case $destdir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - for file in $files; do - case $file in - *.lo) ;; - *) - func_fatal_help "'$destdir' must be an absolute directory name" - ;; - esac - done - ;; - esac - - # This variable tells wrapper scripts just to set variables rather - # than running their programs. - libtool_install_magic=$magic - - staticlibs= - future_libdirs= - current_libdirs= - for file in $files; do - - # Do each installation. - case $file in - *.$libext) - # Do the static libraries later. - func_append staticlibs " $file" - ;; - - *.la) - func_resolve_sysroot "$file" - file=$func_resolve_sysroot_result - - # Check to see that this really is a libtool archive. - func_lalib_unsafe_p "$file" \ - || func_fatal_help "'$file' is not a valid libtool archive" - - library_names= - old_library= - relink_command= - func_source "$file" - - # Add the libdir to current_libdirs if it is the destination. - if test "X$destdir" = "X$libdir"; then - case "$current_libdirs " in - *" $libdir "*) ;; - *) func_append current_libdirs " $libdir" ;; - esac - else - # Note the libdir as a future libdir. - case "$future_libdirs " in - *" $libdir "*) ;; - *) func_append future_libdirs " $libdir" ;; - esac - fi - - func_dirname "$file" "/" "" - dir=$func_dirname_result - func_append dir "$objdir" - - if test -n "$relink_command"; then - # Determine the prefix the user has applied to our future dir. - inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` - - # Don't allow the user to place us outside of our expected - # location b/c this prevents finding dependent libraries that - # are installed to the same prefix. - # At present, this check doesn't affect windows .dll's that - # are installed into $libdir/../bin (currently, that works fine) - # but it's something to keep an eye on. - test "$inst_prefix_dir" = "$destdir" && \ - func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir" - - if test -n "$inst_prefix_dir"; then - # Stick the inst_prefix_dir data into the link command. - relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` - else - relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` - fi - - func_warning "relinking '$file'" - func_show_eval "$relink_command" \ - 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"' - fi - - # See the names of the shared library. - set dummy $library_names; shift - if test -n "$1"; then - realname=$1 - shift - - srcname=$realname - test -n "$relink_command" && srcname=${realname}T - - # Install the shared library and build the symlinks. - func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ - 'exit $?' - tstripme=$stripme - case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - case $realname in - *.dll.a) - tstripme= - ;; - esac - ;; - os2*) - case $realname in - *_dll.a) - tstripme= - ;; - esac - ;; - esac - if test -n "$tstripme" && test -n "$striplib"; then - func_show_eval "$striplib $destdir/$realname" 'exit $?' - fi - - if test "$#" -gt 0; then - # Delete the old symlinks, and create new ones. - # Try 'ln -sf' first, because the 'ln' binary might depend on - # the symlink we replace! Solaris /bin/ln does not understand -f, - # so we also need to try rm && ln -s. - for linkname - do - test "$linkname" != "$realname" \ - && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" - done - fi - - # Do each command in the postinstall commands. - lib=$destdir/$realname - func_execute_cmds "$postinstall_cmds" 'exit $?' - fi - - # Install the pseudo-library for information purposes. - func_basename "$file" - name=$func_basename_result - instname=$dir/${name}i - func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' - - # Maybe install the static library, too. - test -n "$old_library" && func_append staticlibs " $dir/$old_library" - ;; - - *.lo) - # Install (i.e. copy) a libtool object. - - # Figure out destination file name, if it wasn't already specified. - if test -n "$destname"; then - destfile=$destdir/$destname - else - func_basename "$file" - destfile=$func_basename_result - destfile=$destdir/$destfile - fi - - # Deduce the name of the destination old-style object file. - case $destfile in - *.lo) - func_lo2o "$destfile" - staticdest=$func_lo2o_result - ;; - *.$objext) - staticdest=$destfile - destfile= - ;; - *) - func_fatal_help "cannot copy a libtool object to '$destfile'" - ;; - esac - - # Install the libtool object if requested. - test -n "$destfile" && \ - func_show_eval "$install_prog $file $destfile" 'exit $?' - - # Install the old object if enabled. - if test yes = "$build_old_libs"; then - # Deduce the name of the old-style object file. - func_lo2o "$file" - staticobj=$func_lo2o_result - func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' - fi - exit $EXIT_SUCCESS - ;; - - *) - # Figure out destination file name, if it wasn't already specified. - if test -n "$destname"; then - destfile=$destdir/$destname - else - func_basename "$file" - destfile=$func_basename_result - destfile=$destdir/$destfile - fi - - # If the file is missing, and there is a .exe on the end, strip it - # because it is most likely a libtool script we actually want to - # install - stripped_ext= - case $file in - *.exe) - if test ! -f "$file"; then - func_stripname '' '.exe' "$file" - file=$func_stripname_result - stripped_ext=.exe - fi - ;; - esac - - # Do a test to see if this is really a libtool program. - case $host in - *cygwin* | *mingw*) - if func_ltwrapper_executable_p "$file"; then - func_ltwrapper_scriptname "$file" - wrapper=$func_ltwrapper_scriptname_result - else - func_stripname '' '.exe' "$file" - wrapper=$func_stripname_result - fi - ;; - *) - wrapper=$file - ;; - esac - if func_ltwrapper_script_p "$wrapper"; then - notinst_deplibs= - relink_command= - - func_source "$wrapper" - - # Check the variables that should have been set. - test -z "$generated_by_libtool_version" && \ - func_fatal_error "invalid libtool wrapper script '$wrapper'" - - finalize=: - for lib in $notinst_deplibs; do - # Check to see that each library is installed. - libdir= - if test -f "$lib"; then - func_source "$lib" - fi - libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'` - if test -n "$libdir" && test ! -f "$libfile"; then - func_warning "'$lib' has not been installed in '$libdir'" - finalize=false - fi - done - - relink_command= - func_source "$wrapper" - - outputname= - if test no = "$fast_install" && test -n "$relink_command"; then - $opt_dry_run || { - if $finalize; then - tmpdir=`func_mktempdir` - func_basename "$file$stripped_ext" - file=$func_basename_result - outputname=$tmpdir/$file - # Replace the output file specification. - relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` - - $opt_quiet || { - func_quote_for_expand "$relink_command" - eval "func_echo $func_quote_for_expand_result" - } - if eval "$relink_command"; then : - else - func_error "error: relink '$file' with the above command before installing it" - $opt_dry_run || ${RM}r "$tmpdir" - continue - fi - file=$outputname - else - func_warning "cannot relink '$file'" - fi - } - else - # Install the binary that we compiled earlier. - file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` - fi - fi - - # remove .exe since cygwin /usr/bin/install will append another - # one anyway - case $install_prog,$host in - */usr/bin/install*,*cygwin*) - case $file:$destfile in - *.exe:*.exe) - # this is ok - ;; - *.exe:*) - destfile=$destfile.exe - ;; - *:*.exe) - func_stripname '' '.exe' "$destfile" - destfile=$func_stripname_result - ;; - esac - ;; - esac - func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' - $opt_dry_run || if test -n "$outputname"; then - ${RM}r "$tmpdir" - fi - ;; - esac - done - - for file in $staticlibs; do - func_basename "$file" - name=$func_basename_result - - # Set up the ranlib parameters. - oldlib=$destdir/$name - func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 - tool_oldlib=$func_to_tool_file_result - - func_show_eval "$install_prog \$file \$oldlib" 'exit $?' - - if test -n "$stripme" && test -n "$old_striplib"; then - func_show_eval "$old_striplib $tool_oldlib" 'exit $?' - fi - - # Do each command in the postinstall commands. - func_execute_cmds "$old_postinstall_cmds" 'exit $?' - done - - test -n "$future_libdirs" && \ - func_warning "remember to run '$progname --finish$future_libdirs'" - - if test -n "$current_libdirs"; then - # Maybe just do a dry run. - $opt_dry_run && current_libdirs=" -n$current_libdirs" - exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs' - else - exit $EXIT_SUCCESS - fi -} - -test install = "$opt_mode" && func_mode_install ${1+"$@"} - - -# func_generate_dlsyms outputname originator pic_p -# Extract symbols from dlprefiles and create ${outputname}S.o with -# a dlpreopen symbol table. -func_generate_dlsyms () -{ - $debug_cmd - - my_outputname=$1 - my_originator=$2 - my_pic_p=${3-false} - my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'` - my_dlsyms= - - if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then - if test -n "$NM" && test -n "$global_symbol_pipe"; then - my_dlsyms=${my_outputname}S.c - else - func_error "not configured to extract global symbols from dlpreopened files" - fi - fi - - if test -n "$my_dlsyms"; then - case $my_dlsyms in - "") ;; - *.c) - # Discover the nlist of each of the dlfiles. - nlist=$output_objdir/$my_outputname.nm - - func_show_eval "$RM $nlist ${nlist}S ${nlist}T" - - # Parse the name list into a source file. - func_verbose "creating $output_objdir/$my_dlsyms" - - $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ -/* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */ -/* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */ - -#ifdef __cplusplus -extern \"C\" { -#endif - -#if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) -#pragma GCC diagnostic ignored \"-Wstrict-prototypes\" -#endif - -/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ -#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE -/* DATA imports from DLLs on WIN32 can't be const, because runtime - relocations are performed -- see ld's documentation on pseudo-relocs. */ -# define LT_DLSYM_CONST -#elif defined __osf__ -/* This system does not cope well with relocations in const data. */ -# define LT_DLSYM_CONST -#else -# define LT_DLSYM_CONST const -#endif - -#define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) - -/* External symbol declarations for the compiler. */\ -" - - if test yes = "$dlself"; then - func_verbose "generating symbol list for '$output'" - - $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" - - # Add our own program objects to the symbol list. - progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` - for progfile in $progfiles; do - func_to_tool_file "$progfile" func_convert_file_msys_to_w32 - func_verbose "extracting global C symbols from '$func_to_tool_file_result'" - $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" - done - - if test -n "$exclude_expsyms"; then - $opt_dry_run || { - eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' - eval '$MV "$nlist"T "$nlist"' - } - fi - - if test -n "$export_symbols_regex"; then - $opt_dry_run || { - eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' - eval '$MV "$nlist"T "$nlist"' - } - fi - - # Prepare the list of exported symbols - if test -z "$export_symbols"; then - export_symbols=$output_objdir/$outputname.exp - $opt_dry_run || { - $RM $export_symbols - eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' - case $host in - *cygwin* | *mingw* | *cegcc* ) - eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' - eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' - ;; - esac - } - else - $opt_dry_run || { - eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' - eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' - eval '$MV "$nlist"T "$nlist"' - case $host in - *cygwin* | *mingw* | *cegcc* ) - eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' - eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' - ;; - esac - } - fi - fi - - for dlprefile in $dlprefiles; do - func_verbose "extracting global C symbols from '$dlprefile'" - func_basename "$dlprefile" - name=$func_basename_result - case $host in - *cygwin* | *mingw* | *cegcc* ) - # if an import library, we need to obtain dlname - if func_win32_import_lib_p "$dlprefile"; then - func_tr_sh "$dlprefile" - eval "curr_lafile=\$libfile_$func_tr_sh_result" - dlprefile_dlbasename= - if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then - # Use subshell, to avoid clobbering current variable values - dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` - if test -n "$dlprefile_dlname"; then - func_basename "$dlprefile_dlname" - dlprefile_dlbasename=$func_basename_result - else - # no lafile. user explicitly requested -dlpreopen . - $sharedlib_from_linklib_cmd "$dlprefile" - dlprefile_dlbasename=$sharedlib_from_linklib_result - fi - fi - $opt_dry_run || { - if test -n "$dlprefile_dlbasename"; then - eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' - else - func_warning "Could not compute DLL name from $name" - eval '$ECHO ": $name " >> "$nlist"' - fi - func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 - eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | - $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" - } - else # not an import lib - $opt_dry_run || { - eval '$ECHO ": $name " >> "$nlist"' - func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 - eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" - } - fi - ;; - *) - $opt_dry_run || { - eval '$ECHO ": $name " >> "$nlist"' - func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 - eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" - } - ;; - esac - done - - $opt_dry_run || { - # Make sure we have at least an empty file. - test -f "$nlist" || : > "$nlist" - - if test -n "$exclude_expsyms"; then - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T - $MV "$nlist"T "$nlist" - fi - - # Try sorting and uniquifying the output. - if $GREP -v "^: " < "$nlist" | - if sort -k 3 /dev/null 2>&1; then - sort -k 3 - else - sort +2 - fi | - uniq > "$nlist"S; then - : - else - $GREP -v "^: " < "$nlist" > "$nlist"S - fi - - if test -f "$nlist"S; then - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' - else - echo '/* NONE */' >> "$output_objdir/$my_dlsyms" - fi - - func_show_eval '$RM "${nlist}I"' - if test -n "$global_symbol_to_import"; then - eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I' - fi - - echo >> "$output_objdir/$my_dlsyms" "\ - -/* The mapping between symbol names and symbols. */ -typedef struct { - const char *name; - void *address; -} lt_dlsymlist; -extern LT_DLSYM_CONST lt_dlsymlist -lt_${my_prefix}_LTX_preloaded_symbols[];\ -" - - if test -s "$nlist"I; then - echo >> "$output_objdir/$my_dlsyms" "\ -static void lt_syminit(void) -{ - LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols; - for (; symbol->name; ++symbol) - {" - $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms" - echo >> "$output_objdir/$my_dlsyms" "\ - } -}" - fi - echo >> "$output_objdir/$my_dlsyms" "\ -LT_DLSYM_CONST lt_dlsymlist -lt_${my_prefix}_LTX_preloaded_symbols[] = -{ {\"$my_originator\", (void *) 0}," - - if test -s "$nlist"I; then - echo >> "$output_objdir/$my_dlsyms" "\ - {\"@INIT@\", (void *) <_syminit}," - fi - - case $need_lib_prefix in - no) - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" - ;; - *) - eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" - ;; - esac - echo >> "$output_objdir/$my_dlsyms" "\ - {0, (void *) 0} -}; - -/* This works around a problem in FreeBSD linker */ -#ifdef FREEBSD_WORKAROUND -static const void *lt_preloaded_setup() { - return lt_${my_prefix}_LTX_preloaded_symbols; -} -#endif - -#ifdef __cplusplus -} -#endif\ -" - } # !$opt_dry_run - - pic_flag_for_symtable= - case "$compile_command " in - *" -static "*) ;; - *) - case $host in - # compiling the symbol table file with pic_flag works around - # a FreeBSD bug that causes programs to crash when -lm is - # linked before any other PIC object. But we must not use - # pic_flag when linking with -static. The problem exists in - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. - *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) - pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; - *-*-hpux*) - pic_flag_for_symtable=" $pic_flag" ;; - *) - $my_pic_p && pic_flag_for_symtable=" $pic_flag" - ;; - esac - ;; - esac - symtab_cflags= - for arg in $LTCFLAGS; do - case $arg in - -pie | -fpie | -fPIE) ;; - *) func_append symtab_cflags " $arg" ;; - esac - done - - # Now compile the dynamic symbol file. - func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' - - # Clean up the generated files. - func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"' - - # Transform the symbol file into the correct name. - symfileobj=$output_objdir/${my_outputname}S.$objext - case $host in - *cygwin* | *mingw* | *cegcc* ) - if test -f "$output_objdir/$my_outputname.def"; then - compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` - finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` - else - compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` - finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` - fi - ;; - *) - compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` - finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` - ;; - esac - ;; - *) - func_fatal_error "unknown suffix for '$my_dlsyms'" - ;; - esac - else - # We keep going just in case the user didn't refer to - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe - # really was required. - - # Nullify the symbol file. - compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` - finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` - fi -} - -# func_cygming_gnu_implib_p ARG -# This predicate returns with zero status (TRUE) if -# ARG is a GNU/binutils-style import library. Returns -# with nonzero status (FALSE) otherwise. -func_cygming_gnu_implib_p () -{ - $debug_cmd - - func_to_tool_file "$1" func_convert_file_msys_to_w32 - func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` - test -n "$func_cygming_gnu_implib_tmp" -} - -# func_cygming_ms_implib_p ARG -# This predicate returns with zero status (TRUE) if -# ARG is an MS-style import library. Returns -# with nonzero status (FALSE) otherwise. -func_cygming_ms_implib_p () -{ - $debug_cmd - - func_to_tool_file "$1" func_convert_file_msys_to_w32 - func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` - test -n "$func_cygming_ms_implib_tmp" -} - -# func_win32_libid arg -# return the library type of file 'arg' -# -# Need a lot of goo to handle *both* DLLs and import libs -# Has to be a shell function in order to 'eat' the argument -# that is supplied when $file_magic_command is called. -# Despite the name, also deal with 64 bit binaries. -func_win32_libid () -{ - $debug_cmd - - win32_libid_type=unknown - win32_fileres=`file -L $1 2>/dev/null` - case $win32_fileres in - *ar\ archive\ import\ library*) # definitely import - win32_libid_type="x86 archive import" - ;; - *ar\ archive*) # could be an import, or static - # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | - $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then - case $nm_interface in - "MS dumpbin") - if func_cygming_ms_implib_p "$1" || - func_cygming_gnu_implib_p "$1" - then - win32_nmres=import - else - win32_nmres= - fi - ;; - *) - func_to_tool_file "$1" func_convert_file_msys_to_w32 - win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | - $SED -n -e ' - 1,100{ - / I /{ - s|.*|import| - p - q - } - }'` - ;; - esac - case $win32_nmres in - import*) win32_libid_type="x86 archive import";; - *) win32_libid_type="x86 archive static";; - esac - fi - ;; - *DLL*) - win32_libid_type="x86 DLL" - ;; - *executable*) # but shell scripts are "executable" too... - case $win32_fileres in - *MS\ Windows\ PE\ Intel*) - win32_libid_type="x86 DLL" - ;; - esac - ;; - esac - $ECHO "$win32_libid_type" -} - -# func_cygming_dll_for_implib ARG -# -# Platform-specific function to extract the -# name of the DLL associated with the specified -# import library ARG. -# Invoked by eval'ing the libtool variable -# $sharedlib_from_linklib_cmd -# Result is available in the variable -# $sharedlib_from_linklib_result -func_cygming_dll_for_implib () -{ - $debug_cmd - - sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` -} - -# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs -# -# The is the core of a fallback implementation of a -# platform-specific function to extract the name of the -# DLL associated with the specified import library LIBNAME. -# -# SECTION_NAME is either .idata$6 or .idata$7, depending -# on the platform and compiler that created the implib. -# -# Echos the name of the DLL associated with the -# specified import library. -func_cygming_dll_for_implib_fallback_core () -{ - $debug_cmd - - match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` - $OBJDUMP -s --section "$1" "$2" 2>/dev/null | - $SED '/^Contents of section '"$match_literal"':/{ - # Place marker at beginning of archive member dllname section - s/.*/====MARK====/ - p - d - } - # These lines can sometimes be longer than 43 characters, but - # are always uninteresting - /:[ ]*file format pe[i]\{,1\}-/d - /^In archive [^:]*:/d - # Ensure marker is printed - /^====MARK====/p - # Remove all lines with less than 43 characters - /^.\{43\}/!d - # From remaining lines, remove first 43 characters - s/^.\{43\}//' | - $SED -n ' - # Join marker and all lines until next marker into a single line - /^====MARK====/ b para - H - $ b para - b - :para - x - s/\n//g - # Remove the marker - s/^====MARK====// - # Remove trailing dots and whitespace - s/[\. \t]*$// - # Print - /./p' | - # we now have a list, one entry per line, of the stringified - # contents of the appropriate section of all members of the - # archive that possess that section. Heuristic: eliminate - # all those that have a first or second character that is - # a '.' (that is, objdump's representation of an unprintable - # character.) This should work for all archives with less than - # 0x302f exports -- but will fail for DLLs whose name actually - # begins with a literal '.' or a single character followed by - # a '.'. - # - # Of those that remain, print the first one. - $SED -e '/^\./d;/^.\./d;q' -} - -# func_cygming_dll_for_implib_fallback ARG -# Platform-specific function to extract the -# name of the DLL associated with the specified -# import library ARG. -# -# This fallback implementation is for use when $DLLTOOL -# does not support the --identify-strict option. -# Invoked by eval'ing the libtool variable -# $sharedlib_from_linklib_cmd -# Result is available in the variable -# $sharedlib_from_linklib_result -func_cygming_dll_for_implib_fallback () -{ - $debug_cmd - - if func_cygming_gnu_implib_p "$1"; then - # binutils import library - sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` - elif func_cygming_ms_implib_p "$1"; then - # ms-generated import library - sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` - else - # unknown - sharedlib_from_linklib_result= - fi -} - - -# func_extract_an_archive dir oldlib -func_extract_an_archive () -{ - $debug_cmd - - f_ex_an_ar_dir=$1; shift - f_ex_an_ar_oldlib=$1 - if test yes = "$lock_old_archive_extraction"; then - lockfile=$f_ex_an_ar_oldlib.lock - until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do - func_echo "Waiting for $lockfile to be removed" - sleep 2 - done - fi - func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ - 'stat=$?; rm -f "$lockfile"; exit $stat' - if test yes = "$lock_old_archive_extraction"; then - $opt_dry_run || rm -f "$lockfile" - fi - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then - : - else - func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" - fi -} - - -# func_extract_archives gentop oldlib ... -func_extract_archives () -{ - $debug_cmd - - my_gentop=$1; shift - my_oldlibs=${1+"$@"} - my_oldobjs= - my_xlib= - my_xabs= - my_xdir= - - for my_xlib in $my_oldlibs; do - # Extract the objects. - case $my_xlib in - [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;; - *) my_xabs=`pwd`"/$my_xlib" ;; - esac - func_basename "$my_xlib" - my_xlib=$func_basename_result - my_xlib_u=$my_xlib - while :; do - case " $extracted_archives " in - *" $my_xlib_u "*) - func_arith $extracted_serial + 1 - extracted_serial=$func_arith_result - my_xlib_u=lt$extracted_serial-$my_xlib ;; - *) break ;; - esac - done - extracted_archives="$extracted_archives $my_xlib_u" - my_xdir=$my_gentop/$my_xlib_u - - func_mkdir_p "$my_xdir" - - case $host in - *-darwin*) - func_verbose "Extracting $my_xabs" - # Do not bother doing anything if just a dry run - $opt_dry_run || { - darwin_orig_dir=`pwd` - cd $my_xdir || exit $? - darwin_archive=$my_xabs - darwin_curdir=`pwd` - func_basename "$darwin_archive" - darwin_base_archive=$func_basename_result - darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` - if test -n "$darwin_arches"; then - darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` - darwin_arch= - func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" - for darwin_arch in $darwin_arches; do - func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch" - $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive" - cd "unfat-$$/$darwin_base_archive-$darwin_arch" - func_extract_an_archive "`pwd`" "$darwin_base_archive" - cd "$darwin_curdir" - $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" - done # $darwin_arches - ## Okay now we've a bunch of thin objects, gotta fatten them up :) - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u` - darwin_file= - darwin_files= - for darwin_file in $darwin_filelist; do - darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` - $LIPO -create -output "$darwin_file" $darwin_files - done # $darwin_filelist - $RM -rf unfat-$$ - cd "$darwin_orig_dir" - else - cd $darwin_orig_dir - func_extract_an_archive "$my_xdir" "$my_xabs" - fi # $darwin_arches - } # !$opt_dry_run - ;; - *) - func_extract_an_archive "$my_xdir" "$my_xabs" - ;; - esac - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` - done - - func_extract_archives_result=$my_oldobjs -} - - -# func_emit_wrapper [arg=no] -# -# Emit a libtool wrapper script on stdout. -# Don't directly open a file because we may want to -# incorporate the script contents within a cygwin/mingw -# wrapper executable. Must ONLY be called from within -# func_mode_link because it depends on a number of variables -# set therein. -# -# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR -# variable will take. If 'yes', then the emitted script -# will assume that the directory where it is stored is -# the $objdir directory. This is a cygwin/mingw-specific -# behavior. -func_emit_wrapper () -{ - func_emit_wrapper_arg1=${1-no} - - $ECHO "\ -#! $SHELL - -# $output - temporary wrapper script for $objdir/$outputname -# Generated by $PROGRAM (GNU $PACKAGE) $VERSION -# -# The $output program cannot be directly executed until all the libtool -# libraries that it depends on are installed. -# -# This wrapper script should never be moved out of the build directory. -# If it is, it will not operate correctly. - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -sed_quote_subst='$sed_quote_subst' - -# Be Bourne compatible -if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which - # is contrary to our usage. Disable this feature. - alias -g '\${1+\"\$@\"}'='\"\$@\"' - setopt NO_GLOB_SUBST -else - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac -fi -BIN_SH=xpg4; export BIN_SH # for Tru64 -DUALCASE=1; export DUALCASE # for MKS sh - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -relink_command=\"$relink_command\" - -# This environment variable determines our operation mode. -if test \"\$libtool_install_magic\" = \"$magic\"; then - # install mode needs the following variables: - generated_by_libtool_version='$macro_version' - notinst_deplibs='$notinst_deplibs' -else - # When we are sourced in execute mode, \$file and \$ECHO are already set. - if test \"\$libtool_execute_magic\" != \"$magic\"; then - file=\"\$0\"" - - qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` - $ECHO "\ - -# A function that is used when there is no print builtin or printf. -func_fallback_echo () -{ - eval 'cat <<_LTECHO_EOF -\$1 -_LTECHO_EOF' -} - ECHO=\"$qECHO\" - fi - -# Very basic option parsing. These options are (a) specific to -# the libtool wrapper, (b) are identical between the wrapper -# /script/ and the wrapper /executable/ that is used only on -# windows platforms, and (c) all begin with the string "--lt-" -# (application programs are unlikely to have options that match -# this pattern). -# -# There are only two supported options: --lt-debug and -# --lt-dump-script. There is, deliberately, no --lt-help. -# -# The first argument to this parsing function should be the -# script's $0 value, followed by "$@". -lt_option_debug= -func_parse_lt_options () -{ - lt_script_arg0=\$0 - shift - for lt_opt - do - case \"\$lt_opt\" in - --lt-debug) lt_option_debug=1 ;; - --lt-dump-script) - lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` - test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. - lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` - cat \"\$lt_dump_D/\$lt_dump_F\" - exit 0 - ;; - --lt-*) - \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 - exit 1 - ;; - esac - done - - # Print the debug banner immediately: - if test -n \"\$lt_option_debug\"; then - echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2 - fi -} - -# Used when --lt-debug. Prints its arguments to stdout -# (redirection is the responsibility of the caller) -func_lt_dump_args () -{ - lt_dump_args_N=1; - for lt_arg - do - \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\" - lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` - done -} - -# Core function for launching the target application -func_exec_program_core () -{ -" - case $host in - # Backslashes separate directories on plain windows - *-*-mingw | *-*-os2* | *-cegcc*) - $ECHO "\ - if test -n \"\$lt_option_debug\"; then - \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2 - func_lt_dump_args \${1+\"\$@\"} 1>&2 - fi - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} -" - ;; - - *) - $ECHO "\ - if test -n \"\$lt_option_debug\"; then - \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2 - func_lt_dump_args \${1+\"\$@\"} 1>&2 - fi - exec \"\$progdir/\$program\" \${1+\"\$@\"} -" - ;; - esac - $ECHO "\ - \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 - exit 1 -} - -# A function to encapsulate launching the target application -# Strips options in the --lt-* namespace from \$@ and -# launches target application with the remaining arguments. -func_exec_program () -{ - case \" \$* \" in - *\\ --lt-*) - for lt_wr_arg - do - case \$lt_wr_arg in - --lt-*) ;; - *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; - esac - shift - done ;; - esac - func_exec_program_core \${1+\"\$@\"} -} - - # Parse options - func_parse_lt_options \"\$0\" \${1+\"\$@\"} - - # Find the directory that this script lives in. - thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` - test \"x\$thisdir\" = \"x\$file\" && thisdir=. - - # Follow symbolic links until we get to the real thisdir. - file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` - while test -n \"\$file\"; do - destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` - - # If there was a directory component, then change thisdir. - if test \"x\$destdir\" != \"x\$file\"; then - case \"\$destdir\" in - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; - *) thisdir=\"\$thisdir/\$destdir\" ;; - esac - fi - - file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` - file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` - done - - # Usually 'no', except on cygwin/mingw when embedded into - # the cwrapper. - WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 - if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then - # special case for '.' - if test \"\$thisdir\" = \".\"; then - thisdir=\`pwd\` - fi - # remove .libs from thisdir - case \"\$thisdir\" in - *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; - $objdir ) thisdir=. ;; - esac - fi - - # Try to get the absolute directory name. - absdir=\`cd \"\$thisdir\" && pwd\` - test -n \"\$absdir\" && thisdir=\"\$absdir\" -" - - if test yes = "$fast_install"; then - $ECHO "\ - program=lt-'$outputname'$exeext - progdir=\"\$thisdir/$objdir\" - - if test ! -f \"\$progdir/\$program\" || - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\ - test \"X\$file\" != \"X\$progdir/\$program\"; }; then - - file=\"\$\$-\$program\" - - if test ! -d \"\$progdir\"; then - $MKDIR \"\$progdir\" - else - $RM \"\$progdir/\$file\" - fi" - - $ECHO "\ - - # relink executable if necessary - if test -n \"\$relink_command\"; then - if relink_command_output=\`eval \$relink_command 2>&1\`; then : - else - \$ECHO \"\$relink_command_output\" >&2 - $RM \"\$progdir/\$file\" - exit 1 - fi - fi - - $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || - { $RM \"\$progdir/\$program\"; - $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } - $RM \"\$progdir/\$file\" - fi" - else - $ECHO "\ - program='$outputname' - progdir=\"\$thisdir/$objdir\" -" - fi - - $ECHO "\ - - if test -f \"\$progdir/\$program\"; then" - - # fixup the dll searchpath if we need to. - # - # Fix the DLL searchpath if we need to. Do this before prepending - # to shlibpath, because on Windows, both are PATH and uninstalled - # libraries must come first. - if test -n "$dllsearchpath"; then - $ECHO "\ - # Add the dll search path components to the executable PATH - PATH=$dllsearchpath:\$PATH -" - fi - - # Export our shlibpath_var if we have one. - if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then - $ECHO "\ - # Add our own library path to $shlibpath_var - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" - - # Some systems cannot cope with colon-terminated $shlibpath_var - # The second colon is a workaround for a bug in BeOS R4 sed - $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` - - export $shlibpath_var -" - fi - - $ECHO "\ - if test \"\$libtool_execute_magic\" != \"$magic\"; then - # Run the actual program with our arguments. - func_exec_program \${1+\"\$@\"} - fi - else - # The program doesn't exist. - \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2 - \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 - \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 - exit 1 - fi -fi\ -" -} - - -# func_emit_cwrapperexe_src -# emit the source code for a wrapper executable on stdout -# Must ONLY be called from within func_mode_link because -# it depends on a number of variable set therein. -func_emit_cwrapperexe_src () -{ - cat < -#include -#ifdef _MSC_VER -# include -# include -# include -#else -# include -# include -# ifdef __CYGWIN__ -# include -# endif -#endif -#include -#include -#include -#include -#include -#include -#include -#include - -#define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) - -/* declarations of non-ANSI functions */ -#if defined __MINGW32__ -# ifdef __STRICT_ANSI__ -int _putenv (const char *); -# endif -#elif defined __CYGWIN__ -# ifdef __STRICT_ANSI__ -char *realpath (const char *, char *); -int putenv (char *); -int setenv (const char *, const char *, int); -# endif -/* #elif defined other_platform || defined ... */ -#endif - -/* portability defines, excluding path handling macros */ -#if defined _MSC_VER -# define setmode _setmode -# define stat _stat -# define chmod _chmod -# define getcwd _getcwd -# define putenv _putenv -# define S_IXUSR _S_IEXEC -#elif defined __MINGW32__ -# define setmode _setmode -# define stat _stat -# define chmod _chmod -# define getcwd _getcwd -# define putenv _putenv -#elif defined __CYGWIN__ -# define HAVE_SETENV -# define FOPEN_WB "wb" -/* #elif defined other platforms ... */ -#endif - -#if defined PATH_MAX -# define LT_PATHMAX PATH_MAX -#elif defined MAXPATHLEN -# define LT_PATHMAX MAXPATHLEN -#else -# define LT_PATHMAX 1024 -#endif - -#ifndef S_IXOTH -# define S_IXOTH 0 -#endif -#ifndef S_IXGRP -# define S_IXGRP 0 -#endif - -/* path handling portability macros */ -#ifndef DIR_SEPARATOR -# define DIR_SEPARATOR '/' -# define PATH_SEPARATOR ':' -#endif - -#if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \ - defined __OS2__ -# define HAVE_DOS_BASED_FILE_SYSTEM -# define FOPEN_WB "wb" -# ifndef DIR_SEPARATOR_2 -# define DIR_SEPARATOR_2 '\\' -# endif -# ifndef PATH_SEPARATOR_2 -# define PATH_SEPARATOR_2 ';' -# endif -#endif - -#ifndef DIR_SEPARATOR_2 -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) -#else /* DIR_SEPARATOR_2 */ -# define IS_DIR_SEPARATOR(ch) \ - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) -#endif /* DIR_SEPARATOR_2 */ - -#ifndef PATH_SEPARATOR_2 -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) -#else /* PATH_SEPARATOR_2 */ -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) -#endif /* PATH_SEPARATOR_2 */ - -#ifndef FOPEN_WB -# define FOPEN_WB "w" -#endif -#ifndef _O_BINARY -# define _O_BINARY 0 -#endif - -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) -#define XFREE(stale) do { \ - if (stale) { free (stale); stale = 0; } \ -} while (0) - -#if defined LT_DEBUGWRAPPER -static int lt_debug = 1; -#else -static int lt_debug = 0; -#endif - -const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ - -void *xmalloc (size_t num); -char *xstrdup (const char *string); -const char *base_name (const char *name); -char *find_executable (const char *wrapper); -char *chase_symlinks (const char *pathspec); -int make_executable (const char *path); -int check_executable (const char *path); -char *strendzap (char *str, const char *pat); -void lt_debugprintf (const char *file, int line, const char *fmt, ...); -void lt_fatal (const char *file, int line, const char *message, ...); -static const char *nonnull (const char *s); -static const char *nonempty (const char *s); -void lt_setenv (const char *name, const char *value); -char *lt_extend_str (const char *orig_value, const char *add, int to_end); -void lt_update_exe_path (const char *name, const char *value); -void lt_update_lib_path (const char *name, const char *value); -char **prepare_spawn (char **argv); -void lt_dump_script (FILE *f); -EOF - - cat <= 0) - && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) - return 1; - else - return 0; -} - -int -make_executable (const char *path) -{ - int rval = 0; - struct stat st; - - lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", - nonempty (path)); - if ((!path) || (!*path)) - return 0; - - if (stat (path, &st) >= 0) - { - rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); - } - return rval; -} - -/* Searches for the full path of the wrapper. Returns - newly allocated full path name if found, NULL otherwise - Does not chase symlinks, even on platforms that support them. -*/ -char * -find_executable (const char *wrapper) -{ - int has_slash = 0; - const char *p; - const char *p_next; - /* static buffer for getcwd */ - char tmp[LT_PATHMAX + 1]; - size_t tmp_len; - char *concat_name; - - lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", - nonempty (wrapper)); - - if ((wrapper == NULL) || (*wrapper == '\0')) - return NULL; - - /* Absolute path? */ -#if defined HAVE_DOS_BASED_FILE_SYSTEM - if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') - { - concat_name = xstrdup (wrapper); - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - } - else - { -#endif - if (IS_DIR_SEPARATOR (wrapper[0])) - { - concat_name = xstrdup (wrapper); - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - } -#if defined HAVE_DOS_BASED_FILE_SYSTEM - } -#endif - - for (p = wrapper; *p; p++) - if (*p == '/') - { - has_slash = 1; - break; - } - if (!has_slash) - { - /* no slashes; search PATH */ - const char *path = getenv ("PATH"); - if (path != NULL) - { - for (p = path; *p; p = p_next) - { - const char *q; - size_t p_len; - for (q = p; *q; q++) - if (IS_PATH_SEPARATOR (*q)) - break; - p_len = (size_t) (q - p); - p_next = (*q == '\0' ? q : q + 1); - if (p_len == 0) - { - /* empty path: current directory */ - if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", - nonnull (strerror (errno))); - tmp_len = strlen (tmp); - concat_name = - XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); - memcpy (concat_name, tmp, tmp_len); - concat_name[tmp_len] = '/'; - strcpy (concat_name + tmp_len + 1, wrapper); - } - else - { - concat_name = - XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); - memcpy (concat_name, p, p_len); - concat_name[p_len] = '/'; - strcpy (concat_name + p_len + 1, wrapper); - } - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - } - } - /* not found in PATH; assume curdir */ - } - /* Relative path | not found in path: prepend cwd */ - if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", - nonnull (strerror (errno))); - tmp_len = strlen (tmp); - concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); - memcpy (concat_name, tmp, tmp_len); - concat_name[tmp_len] = '/'; - strcpy (concat_name + tmp_len + 1, wrapper); - - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - return NULL; -} - -char * -chase_symlinks (const char *pathspec) -{ -#ifndef S_ISLNK - return xstrdup (pathspec); -#else - char buf[LT_PATHMAX]; - struct stat s; - char *tmp_pathspec = xstrdup (pathspec); - char *p; - int has_symlinks = 0; - while (strlen (tmp_pathspec) && !has_symlinks) - { - lt_debugprintf (__FILE__, __LINE__, - "checking path component for symlinks: %s\n", - tmp_pathspec); - if (lstat (tmp_pathspec, &s) == 0) - { - if (S_ISLNK (s.st_mode) != 0) - { - has_symlinks = 1; - break; - } - - /* search backwards for last DIR_SEPARATOR */ - p = tmp_pathspec + strlen (tmp_pathspec) - 1; - while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) - p--; - if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) - { - /* no more DIR_SEPARATORS left */ - break; - } - *p = '\0'; - } - else - { - lt_fatal (__FILE__, __LINE__, - "error accessing file \"%s\": %s", - tmp_pathspec, nonnull (strerror (errno))); - } - } - XFREE (tmp_pathspec); - - if (!has_symlinks) - { - return xstrdup (pathspec); - } - - tmp_pathspec = realpath (pathspec, buf); - if (tmp_pathspec == 0) - { - lt_fatal (__FILE__, __LINE__, - "could not follow symlinks for %s", pathspec); - } - return xstrdup (tmp_pathspec); -#endif -} - -char * -strendzap (char *str, const char *pat) -{ - size_t len, patlen; - - assert (str != NULL); - assert (pat != NULL); - - len = strlen (str); - patlen = strlen (pat); - - if (patlen <= len) - { - str += len - patlen; - if (STREQ (str, pat)) - *str = '\0'; - } - return str; -} - -void -lt_debugprintf (const char *file, int line, const char *fmt, ...) -{ - va_list args; - if (lt_debug) - { - (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); - va_start (args, fmt); - (void) vfprintf (stderr, fmt, args); - va_end (args); - } -} - -static void -lt_error_core (int exit_status, const char *file, - int line, const char *mode, - const char *message, va_list ap) -{ - fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); - vfprintf (stderr, message, ap); - fprintf (stderr, ".\n"); - - if (exit_status >= 0) - exit (exit_status); -} - -void -lt_fatal (const char *file, int line, const char *message, ...) -{ - va_list ap; - va_start (ap, message); - lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); - va_end (ap); -} - -static const char * -nonnull (const char *s) -{ - return s ? s : "(null)"; -} - -static const char * -nonempty (const char *s) -{ - return (s && !*s) ? "(empty)" : nonnull (s); -} - -void -lt_setenv (const char *name, const char *value) -{ - lt_debugprintf (__FILE__, __LINE__, - "(lt_setenv) setting '%s' to '%s'\n", - nonnull (name), nonnull (value)); - { -#ifdef HAVE_SETENV - /* always make a copy, for consistency with !HAVE_SETENV */ - char *str = xstrdup (value); - setenv (name, str, 1); -#else - size_t len = strlen (name) + 1 + strlen (value) + 1; - char *str = XMALLOC (char, len); - sprintf (str, "%s=%s", name, value); - if (putenv (str) != EXIT_SUCCESS) - { - XFREE (str); - } -#endif - } -} - -char * -lt_extend_str (const char *orig_value, const char *add, int to_end) -{ - char *new_value; - if (orig_value && *orig_value) - { - size_t orig_value_len = strlen (orig_value); - size_t add_len = strlen (add); - new_value = XMALLOC (char, add_len + orig_value_len + 1); - if (to_end) - { - strcpy (new_value, orig_value); - strcpy (new_value + orig_value_len, add); - } - else - { - strcpy (new_value, add); - strcpy (new_value + add_len, orig_value); - } - } - else - { - new_value = xstrdup (add); - } - return new_value; -} - -void -lt_update_exe_path (const char *name, const char *value) -{ - lt_debugprintf (__FILE__, __LINE__, - "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", - nonnull (name), nonnull (value)); - - if (name && *name && value && *value) - { - char *new_value = lt_extend_str (getenv (name), value, 0); - /* some systems can't cope with a ':'-terminated path #' */ - size_t len = strlen (new_value); - while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1])) - { - new_value[--len] = '\0'; - } - lt_setenv (name, new_value); - XFREE (new_value); - } -} - -void -lt_update_lib_path (const char *name, const char *value) -{ - lt_debugprintf (__FILE__, __LINE__, - "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", - nonnull (name), nonnull (value)); - - if (name && *name && value && *value) - { - char *new_value = lt_extend_str (getenv (name), value, 0); - lt_setenv (name, new_value); - XFREE (new_value); - } -} - -EOF - case $host_os in - mingw*) - cat <<"EOF" - -/* Prepares an argument vector before calling spawn(). - Note that spawn() does not by itself call the command interpreter - (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : - ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); - GetVersionEx(&v); - v.dwPlatformId == VER_PLATFORM_WIN32_NT; - }) ? "cmd.exe" : "command.com"). - Instead it simply concatenates the arguments, separated by ' ', and calls - CreateProcess(). We must quote the arguments since Win32 CreateProcess() - interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a - special way: - - Space and tab are interpreted as delimiters. They are not treated as - delimiters if they are surrounded by double quotes: "...". - - Unescaped double quotes are removed from the input. Their only effect is - that within double quotes, space and tab are treated like normal - characters. - - Backslashes not followed by double quotes are not special. - - But 2*n+1 backslashes followed by a double quote become - n backslashes followed by a double quote (n >= 0): - \" -> " - \\\" -> \" - \\\\\" -> \\" - */ -#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" -#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" -char ** -prepare_spawn (char **argv) -{ - size_t argc; - char **new_argv; - size_t i; - - /* Count number of arguments. */ - for (argc = 0; argv[argc] != NULL; argc++) - ; - - /* Allocate new argument vector. */ - new_argv = XMALLOC (char *, argc + 1); - - /* Put quoted arguments into the new argument vector. */ - for (i = 0; i < argc; i++) - { - const char *string = argv[i]; - - if (string[0] == '\0') - new_argv[i] = xstrdup ("\"\""); - else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) - { - int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); - size_t length; - unsigned int backslashes; - const char *s; - char *quoted_string; - char *p; - - length = 0; - backslashes = 0; - if (quote_around) - length++; - for (s = string; *s != '\0'; s++) - { - char c = *s; - if (c == '"') - length += backslashes + 1; - length++; - if (c == '\\') - backslashes++; - else - backslashes = 0; - } - if (quote_around) - length += backslashes + 1; - - quoted_string = XMALLOC (char, length + 1); - - p = quoted_string; - backslashes = 0; - if (quote_around) - *p++ = '"'; - for (s = string; *s != '\0'; s++) - { - char c = *s; - if (c == '"') - { - unsigned int j; - for (j = backslashes + 1; j > 0; j--) - *p++ = '\\'; - } - *p++ = c; - if (c == '\\') - backslashes++; - else - backslashes = 0; - } - if (quote_around) - { - unsigned int j; - for (j = backslashes; j > 0; j--) - *p++ = '\\'; - *p++ = '"'; - } - *p = '\0'; - - new_argv[i] = quoted_string; - } - else - new_argv[i] = (char *) string; - } - new_argv[argc] = NULL; - - return new_argv; -} -EOF - ;; - esac - - cat <<"EOF" -void lt_dump_script (FILE* f) -{ -EOF - func_emit_wrapper yes | - $SED -n -e ' -s/^\(.\{79\}\)\(..*\)/\1\ -\2/ -h -s/\([\\"]\)/\\\1/g -s/$/\\n/ -s/\([^\n]*\).*/ fputs ("\1", f);/p -g -D' - cat <<"EOF" -} -EOF -} -# end: func_emit_cwrapperexe_src - -# func_win32_import_lib_p ARG -# True if ARG is an import lib, as indicated by $file_magic_cmd -func_win32_import_lib_p () -{ - $debug_cmd - - case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in - *import*) : ;; - *) false ;; - esac -} - -# func_suncc_cstd_abi -# !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!! -# Several compiler flags select an ABI that is incompatible with the -# Cstd library. Avoid specifying it if any are in CXXFLAGS. -func_suncc_cstd_abi () -{ - $debug_cmd - - case " $compile_command " in - *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*) - suncc_use_cstd_abi=no - ;; - *) - suncc_use_cstd_abi=yes - ;; - esac -} - -# func_mode_link arg... -func_mode_link () -{ - $debug_cmd - - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - # It is impossible to link a dll without this setting, and - # we shouldn't force the makefile maintainer to figure out - # what system we are compiling for in order to pass an extra - # flag for every libtool invocation. - # allow_undefined=no - - # FIXME: Unfortunately, there are problems with the above when trying - # to make a dll that has undefined symbols, in which case not - # even a static library is built. For now, we need to specify - # -no-undefined on the libtool link line when we can be certain - # that all symbols are satisfied, otherwise we get a static library. - allow_undefined=yes - ;; - *) - allow_undefined=yes - ;; - esac - libtool_args=$nonopt - base_compile="$nonopt $@" - compile_command=$nonopt - finalize_command=$nonopt - - compile_rpath= - finalize_rpath= - compile_shlibpath= - finalize_shlibpath= - convenience= - old_convenience= - deplibs= - old_deplibs= - compiler_flags= - linker_flags= - dllsearchpath= - lib_search_path=`pwd` - inst_prefix_dir= - new_inherited_linker_flags= - - avoid_version=no - bindir= - dlfiles= - dlprefiles= - dlself=no - export_dynamic=no - export_symbols= - export_symbols_regex= - generated= - libobjs= - ltlibs= - module=no - no_install=no - objs= - os2dllname= - non_pic_objects= - precious_files_regex= - prefer_static_libs=no - preload=false - prev= - prevarg= - release= - rpath= - xrpath= - perm_rpath= - temp_rpath= - thread_safe=no - vinfo= - vinfo_number=no - weak_libs= - single_module=$wl-single_module - func_infer_tag $base_compile - - # We need to know -static, to get the right output filenames. - for arg - do - case $arg in - -shared) - test yes != "$build_libtool_libs" \ - && func_fatal_configuration "cannot build a shared library" - build_old_libs=no - break - ;; - -all-static | -static | -static-libtool-libs) - case $arg in - -all-static) - if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then - func_warning "complete static linking is impossible in this configuration" - fi - if test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=yes - ;; - -static) - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=built - ;; - -static-libtool-libs) - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=yes - ;; - esac - build_libtool_libs=no - build_old_libs=yes - break - ;; - esac - done - - # See if our shared archives depend on static archives. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes - - # Go through the arguments, transforming them on the way. - while test "$#" -gt 0; do - arg=$1 - shift - func_quote_for_eval "$arg" - qarg=$func_quote_for_eval_unquoted_result - func_append libtool_args " $func_quote_for_eval_result" - - # If the previous option needs an argument, assign it. - if test -n "$prev"; then - case $prev in - output) - func_append compile_command " @OUTPUT@" - func_append finalize_command " @OUTPUT@" - ;; - esac - - case $prev in - bindir) - bindir=$arg - prev= - continue - ;; - dlfiles|dlprefiles) - $preload || { - # Add the symbol object into the linking commands. - func_append compile_command " @SYMFILE@" - func_append finalize_command " @SYMFILE@" - preload=: - } - case $arg in - *.la | *.lo) ;; # We handle these cases below. - force) - if test no = "$dlself"; then - dlself=needless - export_dynamic=yes - fi - prev= - continue - ;; - self) - if test dlprefiles = "$prev"; then - dlself=yes - elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then - dlself=yes - else - dlself=needless - export_dynamic=yes - fi - prev= - continue - ;; - *) - if test dlfiles = "$prev"; then - func_append dlfiles " $arg" - else - func_append dlprefiles " $arg" - fi - prev= - continue - ;; - esac - ;; - expsyms) - export_symbols=$arg - test -f "$arg" \ - || func_fatal_error "symbol file '$arg' does not exist" - prev= - continue - ;; - expsyms_regex) - export_symbols_regex=$arg - prev= - continue - ;; - framework) - case $host in - *-*-darwin*) - case "$deplibs " in - *" $qarg.ltframework "*) ;; - *) func_append deplibs " $qarg.ltframework" # this is fixed later - ;; - esac - ;; - esac - prev= - continue - ;; - inst_prefix) - inst_prefix_dir=$arg - prev= - continue - ;; - mllvm) - # Clang does not use LLVM to link, so we can simply discard any - # '-mllvm $arg' options when doing the link step. - prev= - continue - ;; - objectlist) - if test -f "$arg"; then - save_arg=$arg - moreargs= - for fil in `cat "$save_arg"` - do -# func_append moreargs " $fil" - arg=$fil - # A libtool-controlled object. - - # Check to see that this really is a libtool object. - if func_lalib_unsafe_p "$arg"; then - pic_object= - non_pic_object= - - # Read the .lo file - func_source "$arg" - - if test -z "$pic_object" || - test -z "$non_pic_object" || - test none = "$pic_object" && - test none = "$non_pic_object"; then - func_fatal_error "cannot find name of object for '$arg'" - fi - - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir=$func_dirname_result - - if test none != "$pic_object"; then - # Prepend the subdirectory the object is found in. - pic_object=$xdir$pic_object - - if test dlfiles = "$prev"; then - if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then - func_append dlfiles " $pic_object" - prev= - continue - else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi - - # CHECK ME: I think I busted this. -Ossama - if test dlprefiles = "$prev"; then - # Preload the old-style object. - func_append dlprefiles " $pic_object" - prev= - fi - - # A PIC object. - func_append libobjs " $pic_object" - arg=$pic_object - fi - - # Non-PIC object. - if test none != "$non_pic_object"; then - # Prepend the subdirectory the object is found in. - non_pic_object=$xdir$non_pic_object - - # A standard non-PIC object - func_append non_pic_objects " $non_pic_object" - if test -z "$pic_object" || test none = "$pic_object"; then - arg=$non_pic_object - fi - else - # If the PIC object exists, use it instead. - # $xdir was prepended to $pic_object above. - non_pic_object=$pic_object - func_append non_pic_objects " $non_pic_object" - fi - else - # Only an error if not doing a dry-run. - if $opt_dry_run; then - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir=$func_dirname_result - - func_lo2o "$arg" - pic_object=$xdir$objdir/$func_lo2o_result - non_pic_object=$xdir$func_lo2o_result - func_append libobjs " $pic_object" - func_append non_pic_objects " $non_pic_object" - else - func_fatal_error "'$arg' is not a valid libtool object" - fi - fi - done - else - func_fatal_error "link input file '$arg' does not exist" - fi - arg=$save_arg - prev= - continue - ;; - os2dllname) - os2dllname=$arg - prev= - continue - ;; - precious_regex) - precious_files_regex=$arg - prev= - continue - ;; - release) - release=-$arg - prev= - continue - ;; - rpath | xrpath) - # We need an absolute path. - case $arg in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - func_fatal_error "only absolute run-paths are allowed" - ;; - esac - if test rpath = "$prev"; then - case "$rpath " in - *" $arg "*) ;; - *) func_append rpath " $arg" ;; - esac - else - case "$xrpath " in - *" $arg "*) ;; - *) func_append xrpath " $arg" ;; - esac - fi - prev= - continue - ;; - shrext) - shrext_cmds=$arg - prev= - continue - ;; - weak) - func_append weak_libs " $arg" - prev= - continue - ;; - xcclinker) - func_append linker_flags " $qarg" - func_append compiler_flags " $qarg" - prev= - func_append compile_command " $qarg" - func_append finalize_command " $qarg" - continue - ;; - xcompiler) - func_append compiler_flags " $qarg" - prev= - func_append compile_command " $qarg" - func_append finalize_command " $qarg" - continue - ;; - xlinker) - func_append linker_flags " $qarg" - func_append compiler_flags " $wl$qarg" - prev= - func_append compile_command " $wl$qarg" - func_append finalize_command " $wl$qarg" - continue - ;; - *) - eval "$prev=\"\$arg\"" - prev= - continue - ;; - esac - fi # test -n "$prev" - - prevarg=$arg - - case $arg in - -all-static) - if test -n "$link_static_flag"; then - # See comment for -static flag below, for more details. - func_append compile_command " $link_static_flag" - func_append finalize_command " $link_static_flag" - fi - continue - ;; - - -allow-undefined) - # FIXME: remove this flag sometime in the future. - func_fatal_error "'-allow-undefined' must not be used because it is the default" - ;; - - -avoid-version) - avoid_version=yes - continue - ;; - - -bindir) - prev=bindir - continue - ;; - - -dlopen) - prev=dlfiles - continue - ;; - - -dlpreopen) - prev=dlprefiles - continue - ;; - - -export-dynamic) - export_dynamic=yes - continue - ;; - - -export-symbols | -export-symbols-regex) - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then - func_fatal_error "more than one -exported-symbols argument is not allowed" - fi - if test X-export-symbols = "X$arg"; then - prev=expsyms - else - prev=expsyms_regex - fi - continue - ;; - - -framework) - prev=framework - continue - ;; - - -inst-prefix-dir) - prev=inst_prefix - continue - ;; - - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* - # so, if we see these flags be careful not to treat them like -L - -L[A-Z][A-Z]*:*) - case $with_gcc/$host in - no/*-*-irix* | /*-*-irix*) - func_append compile_command " $arg" - func_append finalize_command " $arg" - ;; - esac - continue - ;; - - -L*) - func_stripname "-L" '' "$arg" - if test -z "$func_stripname_result"; then - if test "$#" -gt 0; then - func_fatal_error "require no space between '-L' and '$1'" - else - func_fatal_error "need path for '-L' option" - fi - fi - func_resolve_sysroot "$func_stripname_result" - dir=$func_resolve_sysroot_result - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - absdir=`cd "$dir" && pwd` - test -z "$absdir" && \ - func_fatal_error "cannot determine absolute directory name of '$dir'" - dir=$absdir - ;; - esac - case "$deplibs " in - *" -L$dir "* | *" $arg "*) - # Will only happen for absolute or sysroot arguments - ;; - *) - # Preserve sysroot, but never include relative directories - case $dir in - [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; - *) func_append deplibs " -L$dir" ;; - esac - func_append lib_search_path " $dir" - ;; - esac - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$dir:"*) ;; - ::) dllsearchpath=$dir;; - *) func_append dllsearchpath ":$dir";; - esac - case :$dllsearchpath: in - *":$testbindir:"*) ;; - ::) dllsearchpath=$testbindir;; - *) func_append dllsearchpath ":$testbindir";; - esac - ;; - esac - continue - ;; - - -l*) - if test X-lc = "X$arg" || test X-lm = "X$arg"; then - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) - # These systems don't actually have a C or math library (as such) - continue - ;; - *-*-os2*) - # These systems don't actually have a C library (as such) - test X-lc = "X$arg" && continue - ;; - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) - # Do not include libc due to us having libc/libc_r. - test X-lc = "X$arg" && continue - ;; - *-*-rhapsody* | *-*-darwin1.[012]) - # Rhapsody C and math libraries are in the System framework - func_append deplibs " System.ltframework" - continue - ;; - *-*-sco3.2v5* | *-*-sco5v6*) - # Causes problems with __ctype - test X-lc = "X$arg" && continue - ;; - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) - # Compiler inserts libc in the correct place for threads to work - test X-lc = "X$arg" && continue - ;; - esac - elif test X-lc_r = "X$arg"; then - case $host in - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) - # Do not include libc_r directly, use -pthread flag. - continue - ;; - esac - fi - func_append deplibs " $arg" - continue - ;; - - -mllvm) - prev=mllvm - continue - ;; - - -module) - module=yes - continue - ;; - - # Tru64 UNIX uses -model [arg] to determine the layout of C++ - # classes, name mangling, and exception handling. - # Darwin uses the -arch flag to determine output architecture. - -model|-arch|-isysroot|--sysroot) - func_append compiler_flags " $arg" - func_append compile_command " $arg" - func_append finalize_command " $arg" - prev=xcompiler - continue - ;; - - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ - |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) - func_append compiler_flags " $arg" - func_append compile_command " $arg" - func_append finalize_command " $arg" - case "$new_inherited_linker_flags " in - *" $arg "*) ;; - * ) func_append new_inherited_linker_flags " $arg" ;; - esac - continue - ;; - - -multi_module) - single_module=$wl-multi_module - continue - ;; - - -no-fast-install) - fast_install=no - continue - ;; - - -no-install) - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) - # The PATH hackery in wrapper scripts is required on Windows - # and Darwin in order for the loader to find any dlls it needs. - func_warning "'-no-install' is ignored for $host" - func_warning "assuming '-no-fast-install' instead" - fast_install=no - ;; - *) no_install=yes ;; - esac - continue - ;; - - -no-undefined) - allow_undefined=no - continue - ;; - - -objectlist) - prev=objectlist - continue - ;; - - -os2dllname) - prev=os2dllname - continue - ;; - - -o) prev=output ;; - - -precious-files-regex) - prev=precious_regex - continue - ;; - - -release) - prev=release - continue - ;; - - -rpath) - prev=rpath - continue - ;; - - -R) - prev=xrpath - continue - ;; - - -R*) - func_stripname '-R' '' "$arg" - dir=$func_stripname_result - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - =*) - func_stripname '=' '' "$dir" - dir=$lt_sysroot$func_stripname_result - ;; - *) - func_fatal_error "only absolute run-paths are allowed" - ;; - esac - case "$xrpath " in - *" $dir "*) ;; - *) func_append xrpath " $dir" ;; - esac - continue - ;; - - -shared) - # The effects of -shared are defined in a previous loop. - continue - ;; - - -shrext) - prev=shrext - continue - ;; - - -static | -static-libtool-libs) - # The effects of -static are defined in a previous loop. - # We used to do the same as -all-static on platforms that - # didn't have a PIC flag, but the assumption that the effects - # would be equivalent was wrong. It would break on at least - # Digital Unix and AIX. - continue - ;; - - -thread-safe) - thread_safe=yes - continue - ;; - - -version-info) - prev=vinfo - continue - ;; - - -version-number) - prev=vinfo - vinfo_number=yes - continue - ;; - - -weak) - prev=weak - continue - ;; - - -Wc,*) - func_stripname '-Wc,' '' "$arg" - args=$func_stripname_result - arg= - save_ifs=$IFS; IFS=, - for flag in $args; do - IFS=$save_ifs - func_quote_for_eval "$flag" - func_append arg " $func_quote_for_eval_result" - func_append compiler_flags " $func_quote_for_eval_result" - done - IFS=$save_ifs - func_stripname ' ' '' "$arg" - arg=$func_stripname_result - ;; - - -Wl,*) - func_stripname '-Wl,' '' "$arg" - args=$func_stripname_result - arg= - save_ifs=$IFS; IFS=, - for flag in $args; do - IFS=$save_ifs - func_quote_for_eval "$flag" - func_append arg " $wl$func_quote_for_eval_result" - func_append compiler_flags " $wl$func_quote_for_eval_result" - func_append linker_flags " $func_quote_for_eval_result" - done - IFS=$save_ifs - func_stripname ' ' '' "$arg" - arg=$func_stripname_result - ;; - - -Xcompiler) - prev=xcompiler - continue - ;; - - -Xlinker) - prev=xlinker - continue - ;; - - -XCClinker) - prev=xcclinker - continue - ;; - - # -msg_* for osf cc - -msg_*) - func_quote_for_eval "$arg" - arg=$func_quote_for_eval_result - ;; - - # Flags to be passed through unchanged, with rationale: - # -64, -mips[0-9] enable 64-bit mode for the SGI compiler - # -r[0-9][0-9]* specify processor for the SGI compiler - # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler - # +DA*, +DD* enable 64-bit mode for the HP compiler - # -q* compiler args for the IBM compiler - # -m*, -t[45]*, -txscale* architecture-specific flags for GCC - # -F/path path to uninstalled frameworks, gcc on darwin - # -p, -pg, --coverage, -fprofile-* profiling flags for GCC - # -fstack-protector* stack protector flags for GCC - # @file GCC response files - # -tp=* Portland pgcc target processor selection - # --sysroot=* for sysroot support - # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization - # -specs=* GCC specs files - # -stdlib=* select c++ std lib with clang - # -fsanitize=* Clang/GCC memory and address sanitizer - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ - -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ - -specs=*|-fsanitize=*) - func_quote_for_eval "$arg" - arg=$func_quote_for_eval_result - func_append compile_command " $arg" - func_append finalize_command " $arg" - func_append compiler_flags " $arg" - continue - ;; - - -Z*) - if test os2 = "`expr $host : '.*\(os2\)'`"; then - # OS/2 uses -Zxxx to specify OS/2-specific options - compiler_flags="$compiler_flags $arg" - func_append compile_command " $arg" - func_append finalize_command " $arg" - case $arg in - -Zlinker | -Zstack) - prev=xcompiler - ;; - esac - continue - else - # Otherwise treat like 'Some other compiler flag' below - func_quote_for_eval "$arg" - arg=$func_quote_for_eval_result - fi - ;; - - # Some other compiler flag. - -* | +*) - func_quote_for_eval "$arg" - arg=$func_quote_for_eval_result - ;; - - *.$objext) - # A standard object. - func_append objs " $arg" - ;; - - *.lo) - # A libtool-controlled object. - - # Check to see that this really is a libtool object. - if func_lalib_unsafe_p "$arg"; then - pic_object= - non_pic_object= - - # Read the .lo file - func_source "$arg" - - if test -z "$pic_object" || - test -z "$non_pic_object" || - test none = "$pic_object" && - test none = "$non_pic_object"; then - func_fatal_error "cannot find name of object for '$arg'" - fi - - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir=$func_dirname_result - - test none = "$pic_object" || { - # Prepend the subdirectory the object is found in. - pic_object=$xdir$pic_object - - if test dlfiles = "$prev"; then - if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then - func_append dlfiles " $pic_object" - prev= - continue - else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi - - # CHECK ME: I think I busted this. -Ossama - if test dlprefiles = "$prev"; then - # Preload the old-style object. - func_append dlprefiles " $pic_object" - prev= - fi - - # A PIC object. - func_append libobjs " $pic_object" - arg=$pic_object - } - - # Non-PIC object. - if test none != "$non_pic_object"; then - # Prepend the subdirectory the object is found in. - non_pic_object=$xdir$non_pic_object - - # A standard non-PIC object - func_append non_pic_objects " $non_pic_object" - if test -z "$pic_object" || test none = "$pic_object"; then - arg=$non_pic_object - fi - else - # If the PIC object exists, use it instead. - # $xdir was prepended to $pic_object above. - non_pic_object=$pic_object - func_append non_pic_objects " $non_pic_object" - fi - else - # Only an error if not doing a dry-run. - if $opt_dry_run; then - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir=$func_dirname_result - - func_lo2o "$arg" - pic_object=$xdir$objdir/$func_lo2o_result - non_pic_object=$xdir$func_lo2o_result - func_append libobjs " $pic_object" - func_append non_pic_objects " $non_pic_object" - else - func_fatal_error "'$arg' is not a valid libtool object" - fi - fi - ;; - - *.$libext) - # An archive. - func_append deplibs " $arg" - func_append old_deplibs " $arg" - continue - ;; - - *.la) - # A libtool-controlled library. - - func_resolve_sysroot "$arg" - if test dlfiles = "$prev"; then - # This library was specified with -dlopen. - func_append dlfiles " $func_resolve_sysroot_result" - prev= - elif test dlprefiles = "$prev"; then - # The library was specified with -dlpreopen. - func_append dlprefiles " $func_resolve_sysroot_result" - prev= - else - func_append deplibs " $func_resolve_sysroot_result" - fi - continue - ;; - - # Some other compiler argument. - *) - # Unknown arguments in both finalize_command and compile_command need - # to be aesthetically quoted because they are evaled later. - func_quote_for_eval "$arg" - arg=$func_quote_for_eval_result - ;; - esac # arg - - # Now actually substitute the argument into the commands. - if test -n "$arg"; then - func_append compile_command " $arg" - func_append finalize_command " $arg" - fi - done # argument parsing loop - - test -n "$prev" && \ - func_fatal_help "the '$prevarg' option requires an argument" - - if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then - eval arg=\"$export_dynamic_flag_spec\" - func_append compile_command " $arg" - func_append finalize_command " $arg" - fi - - oldlibs= - # calculate the name of the file, without its directory - func_basename "$output" - outputname=$func_basename_result - libobjs_save=$libobjs - - if test -n "$shlibpath_var"; then - # get the directories listed in $shlibpath_var - eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\` - else - shlib_search_path= - fi - eval sys_lib_search_path=\"$sys_lib_search_path_spec\" - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" - - # Definition is injected by LT_CONFIG during libtool generation. - func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH" - - func_dirname "$output" "/" "" - output_objdir=$func_dirname_result$objdir - func_to_tool_file "$output_objdir/" - tool_output_objdir=$func_to_tool_file_result - # Create the object directory. - func_mkdir_p "$output_objdir" - - # Determine the type of output - case $output in - "") - func_fatal_help "you must specify an output file" - ;; - *.$libext) linkmode=oldlib ;; - *.lo | *.$objext) linkmode=obj ;; - *.la) linkmode=lib ;; - *) linkmode=prog ;; # Anything else should be a program. - esac - - specialdeplibs= - - libs= - # Find all interdependent deplibs by searching for libraries - # that are linked more than once (e.g. -la -lb -la) - for deplib in $deplibs; do - if $opt_preserve_dup_deps; then - case "$libs " in - *" $deplib "*) func_append specialdeplibs " $deplib" ;; - esac - fi - func_append libs " $deplib" - done - - if test lib = "$linkmode"; then - libs="$predeps $libs $compiler_lib_search_path $postdeps" - - # Compute libraries that are listed more than once in $predeps - # $postdeps and mark them as special (i.e., whose duplicates are - # not to be eliminated). - pre_post_deps= - if $opt_duplicate_compiler_generated_deps; then - for pre_post_dep in $predeps $postdeps; do - case "$pre_post_deps " in - *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; - esac - func_append pre_post_deps " $pre_post_dep" - done - fi - pre_post_deps= - fi - - deplibs= - newdependency_libs= - newlib_search_path= - need_relink=no # whether we're linking any uninstalled libtool libraries - notinst_deplibs= # not-installed libtool libraries - notinst_path= # paths that contain not-installed libtool libraries - - case $linkmode in - lib) - passes="conv dlpreopen link" - for file in $dlfiles $dlprefiles; do - case $file in - *.la) ;; - *) - func_fatal_help "libraries can '-dlopen' only libtool libraries: $file" - ;; - esac - done - ;; - prog) - compile_deplibs= - finalize_deplibs= - alldeplibs=false - newdlfiles= - newdlprefiles= - passes="conv scan dlopen dlpreopen link" - ;; - *) passes="conv" - ;; - esac - - for pass in $passes; do - # The preopen pass in lib mode reverses $deplibs; put it back here - # so that -L comes before libs that need it for instance... - if test lib,link = "$linkmode,$pass"; then - ## FIXME: Find the place where the list is rebuilt in the wrong - ## order, and fix it there properly - tmp_deplibs= - for deplib in $deplibs; do - tmp_deplibs="$deplib $tmp_deplibs" - done - deplibs=$tmp_deplibs - fi - - if test lib,link = "$linkmode,$pass" || - test prog,scan = "$linkmode,$pass"; then - libs=$deplibs - deplibs= - fi - if test prog = "$linkmode"; then - case $pass in - dlopen) libs=$dlfiles ;; - dlpreopen) libs=$dlprefiles ;; - link) - libs="$deplibs %DEPLIBS%" - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" - ;; - esac - fi - if test lib,dlpreopen = "$linkmode,$pass"; then - # Collect and forward deplibs of preopened libtool libs - for lib in $dlprefiles; do - # Ignore non-libtool-libs - dependency_libs= - func_resolve_sysroot "$lib" - case $lib in - *.la) func_source "$func_resolve_sysroot_result" ;; - esac - - # Collect preopened libtool deplibs, except any this library - # has declared as weak libs - for deplib in $dependency_libs; do - func_basename "$deplib" - deplib_base=$func_basename_result - case " $weak_libs " in - *" $deplib_base "*) ;; - *) func_append deplibs " $deplib" ;; - esac - done - done - libs=$dlprefiles - fi - if test dlopen = "$pass"; then - # Collect dlpreopened libraries - save_deplibs=$deplibs - deplibs= - fi - - for deplib in $libs; do - lib= - found=false - case $deplib in - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ - |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) - if test prog,link = "$linkmode,$pass"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - func_append compiler_flags " $deplib" - if test lib = "$linkmode"; then - case "$new_inherited_linker_flags " in - *" $deplib "*) ;; - * ) func_append new_inherited_linker_flags " $deplib" ;; - esac - fi - fi - continue - ;; - -l*) - if test lib != "$linkmode" && test prog != "$linkmode"; then - func_warning "'-l' is ignored for archives/objects" - continue - fi - func_stripname '-l' '' "$deplib" - name=$func_stripname_result - if test lib = "$linkmode"; then - searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" - else - searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" - fi - for searchdir in $searchdirs; do - for search_ext in .la $std_shrext .so .a; do - # Search the libtool library - lib=$searchdir/lib$name$search_ext - if test -f "$lib"; then - if test .la = "$search_ext"; then - found=: - else - found=false - fi - break 2 - fi - done - done - if $found; then - # deplib is a libtool library - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, - # We need to do some special things here, and not later. - if test yes = "$allow_libtool_libs_with_static_runtimes"; then - case " $predeps $postdeps " in - *" $deplib "*) - if func_lalib_p "$lib"; then - library_names= - old_library= - func_source "$lib" - for l in $old_library $library_names; do - ll=$l - done - if test "X$ll" = "X$old_library"; then # only static version available - found=false - func_dirname "$lib" "" "." - ladir=$func_dirname_result - lib=$ladir/$old_library - if test prog,link = "$linkmode,$pass"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" - fi - continue - fi - fi - ;; - *) ;; - esac - fi - else - # deplib doesn't seem to be a libtool library - if test prog,link = "$linkmode,$pass"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" - fi - continue - fi - ;; # -l - *.ltframework) - if test prog,link = "$linkmode,$pass"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - if test lib = "$linkmode"; then - case "$new_inherited_linker_flags " in - *" $deplib "*) ;; - * ) func_append new_inherited_linker_flags " $deplib" ;; - esac - fi - fi - continue - ;; - -L*) - case $linkmode in - lib) - deplibs="$deplib $deplibs" - test conv = "$pass" && continue - newdependency_libs="$deplib $newdependency_libs" - func_stripname '-L' '' "$deplib" - func_resolve_sysroot "$func_stripname_result" - func_append newlib_search_path " $func_resolve_sysroot_result" - ;; - prog) - if test conv = "$pass"; then - deplibs="$deplib $deplibs" - continue - fi - if test scan = "$pass"; then - deplibs="$deplib $deplibs" - else - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - fi - func_stripname '-L' '' "$deplib" - func_resolve_sysroot "$func_stripname_result" - func_append newlib_search_path " $func_resolve_sysroot_result" - ;; - *) - func_warning "'-L' is ignored for archives/objects" - ;; - esac # linkmode - continue - ;; # -L - -R*) - if test link = "$pass"; then - func_stripname '-R' '' "$deplib" - func_resolve_sysroot "$func_stripname_result" - dir=$func_resolve_sysroot_result - # Make sure the xrpath contains only unique directories. - case "$xrpath " in - *" $dir "*) ;; - *) func_append xrpath " $dir" ;; - esac - fi - deplibs="$deplib $deplibs" - continue - ;; - *.la) - func_resolve_sysroot "$deplib" - lib=$func_resolve_sysroot_result - ;; - *.$libext) - if test conv = "$pass"; then - deplibs="$deplib $deplibs" - continue - fi - case $linkmode in - lib) - # Linking convenience modules into shared libraries is allowed, - # but linking other static libraries is non-portable. - case " $dlpreconveniencelibs " in - *" $deplib "*) ;; - *) - valid_a_lib=false - case $deplibs_check_method in - match_pattern*) - set dummy $deplibs_check_method; shift - match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` - if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ - | $EGREP "$match_pattern_regex" > /dev/null; then - valid_a_lib=: - fi - ;; - pass_all) - valid_a_lib=: - ;; - esac - if $valid_a_lib; then - echo - $ECHO "*** Warning: Linking the shared library $output against the" - $ECHO "*** static library $deplib is not portable!" - deplibs="$deplib $deplibs" - else - echo - $ECHO "*** Warning: Trying to link with static lib archive $deplib." - echo "*** I have the capability to make that library automatically link in when" - echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have" - echo "*** because the file extensions .$libext of this argument makes me believe" - echo "*** that it is just a static archive that I should not use here." - fi - ;; - esac - continue - ;; - prog) - if test link != "$pass"; then - deplibs="$deplib $deplibs" - else - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - fi - continue - ;; - esac # linkmode - ;; # *.$libext - *.lo | *.$objext) - if test conv = "$pass"; then - deplibs="$deplib $deplibs" - elif test prog = "$linkmode"; then - if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then - # If there is no dlopen support or we're linking statically, - # we need to preload. - func_append newdlprefiles " $deplib" - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - func_append newdlfiles " $deplib" - fi - fi - continue - ;; - %DEPLIBS%) - alldeplibs=: - continue - ;; - esac # case $deplib - - $found || test -f "$lib" \ - || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'" - - # Check to see that this really is a libtool archive. - func_lalib_unsafe_p "$lib" \ - || func_fatal_error "'$lib' is not a valid libtool archive" - - func_dirname "$lib" "" "." - ladir=$func_dirname_result - - dlname= - dlopen= - dlpreopen= - libdir= - library_names= - old_library= - inherited_linker_flags= - # If the library was installed with an old release of libtool, - # it will not redefine variables installed, or shouldnotlink - installed=yes - shouldnotlink=no - avoidtemprpath= - - - # Read the .la file - func_source "$lib" - - # Convert "-framework foo" to "foo.ltframework" - if test -n "$inherited_linker_flags"; then - tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` - for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do - case " $new_inherited_linker_flags " in - *" $tmp_inherited_linker_flag "*) ;; - *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; - esac - done - fi - dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - if test lib,link = "$linkmode,$pass" || - test prog,scan = "$linkmode,$pass" || - { test prog != "$linkmode" && test lib != "$linkmode"; }; then - test -n "$dlopen" && func_append dlfiles " $dlopen" - test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" - fi - - if test conv = "$pass"; then - # Only check for convenience libraries - deplibs="$lib $deplibs" - if test -z "$libdir"; then - if test -z "$old_library"; then - func_fatal_error "cannot find name of link library for '$lib'" - fi - # It is a libtool convenience library, so add in its objects. - func_append convenience " $ladir/$objdir/$old_library" - func_append old_convenience " $ladir/$objdir/$old_library" - tmp_libs= - for deplib in $dependency_libs; do - deplibs="$deplib $deplibs" - if $opt_preserve_dup_deps; then - case "$tmp_libs " in - *" $deplib "*) func_append specialdeplibs " $deplib" ;; - esac - fi - func_append tmp_libs " $deplib" - done - elif test prog != "$linkmode" && test lib != "$linkmode"; then - func_fatal_error "'$lib' is not a convenience library" - fi - continue - fi # $pass = conv - - - # Get the name of the library we link against. - linklib= - if test -n "$old_library" && - { test yes = "$prefer_static_libs" || - test built,no = "$prefer_static_libs,$installed"; }; then - linklib=$old_library - else - for l in $old_library $library_names; do - linklib=$l - done - fi - if test -z "$linklib"; then - func_fatal_error "cannot find name of link library for '$lib'" - fi - - # This library was specified with -dlopen. - if test dlopen = "$pass"; then - test -z "$libdir" \ - && func_fatal_error "cannot -dlopen a convenience library: '$lib'" - if test -z "$dlname" || - test yes != "$dlopen_support" || - test no = "$build_libtool_libs" - then - # If there is no dlname, no dlopen support or we're linking - # statically, we need to preload. We also need to preload any - # dependent libraries so libltdl's deplib preloader doesn't - # bomb out in the load deplibs phase. - func_append dlprefiles " $lib $dependency_libs" - else - func_append newdlfiles " $lib" - fi - continue - fi # $pass = dlopen - - # We need an absolute path. - case $ladir in - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;; - *) - abs_ladir=`cd "$ladir" && pwd` - if test -z "$abs_ladir"; then - func_warning "cannot determine absolute directory name of '$ladir'" - func_warning "passing it literally to the linker, although it might fail" - abs_ladir=$ladir - fi - ;; - esac - func_basename "$lib" - laname=$func_basename_result - - # Find the relevant object directory and library name. - if test yes = "$installed"; then - if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then - func_warning "library '$lib' was moved." - dir=$ladir - absdir=$abs_ladir - libdir=$abs_ladir - else - dir=$lt_sysroot$libdir - absdir=$lt_sysroot$libdir - fi - test yes = "$hardcode_automatic" && avoidtemprpath=yes - else - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then - dir=$ladir - absdir=$abs_ladir - # Remove this search path later - func_append notinst_path " $abs_ladir" - else - dir=$ladir/$objdir - absdir=$abs_ladir/$objdir - # Remove this search path later - func_append notinst_path " $abs_ladir" - fi - fi # $installed = yes - func_stripname 'lib' '.la' "$laname" - name=$func_stripname_result - - # This library was specified with -dlpreopen. - if test dlpreopen = "$pass"; then - if test -z "$libdir" && test prog = "$linkmode"; then - func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'" - fi - case $host in - # special handling for platforms with PE-DLLs. - *cygwin* | *mingw* | *cegcc* ) - # Linker will automatically link against shared library if both - # static and shared are present. Therefore, ensure we extract - # symbols from the import library if a shared library is present - # (otherwise, the dlopen module name will be incorrect). We do - # this by putting the import library name into $newdlprefiles. - # We recover the dlopen module name by 'saving' the la file - # name in a special purpose variable, and (later) extracting the - # dlname from the la file. - if test -n "$dlname"; then - func_tr_sh "$dir/$linklib" - eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" - func_append newdlprefiles " $dir/$linklib" - else - func_append newdlprefiles " $dir/$old_library" - # Keep a list of preopened convenience libraries to check - # that they are being used correctly in the link pass. - test -z "$libdir" && \ - func_append dlpreconveniencelibs " $dir/$old_library" - fi - ;; - * ) - # Prefer using a static library (so that no silly _DYNAMIC symbols - # are required to link). - if test -n "$old_library"; then - func_append newdlprefiles " $dir/$old_library" - # Keep a list of preopened convenience libraries to check - # that they are being used correctly in the link pass. - test -z "$libdir" && \ - func_append dlpreconveniencelibs " $dir/$old_library" - # Otherwise, use the dlname, so that lt_dlopen finds it. - elif test -n "$dlname"; then - func_append newdlprefiles " $dir/$dlname" - else - func_append newdlprefiles " $dir/$linklib" - fi - ;; - esac - fi # $pass = dlpreopen - - if test -z "$libdir"; then - # Link the convenience library - if test lib = "$linkmode"; then - deplibs="$dir/$old_library $deplibs" - elif test prog,link = "$linkmode,$pass"; then - compile_deplibs="$dir/$old_library $compile_deplibs" - finalize_deplibs="$dir/$old_library $finalize_deplibs" - else - deplibs="$lib $deplibs" # used for prog,scan pass - fi - continue - fi - - - if test prog = "$linkmode" && test link != "$pass"; then - func_append newlib_search_path " $ladir" - deplibs="$lib $deplibs" - - linkalldeplibs=false - if test no != "$link_all_deplibs" || test -z "$library_names" || - test no = "$build_libtool_libs"; then - linkalldeplibs=: - fi - - tmp_libs= - for deplib in $dependency_libs; do - case $deplib in - -L*) func_stripname '-L' '' "$deplib" - func_resolve_sysroot "$func_stripname_result" - func_append newlib_search_path " $func_resolve_sysroot_result" - ;; - esac - # Need to link against all dependency_libs? - if $linkalldeplibs; then - deplibs="$deplib $deplibs" - else - # Need to hardcode shared library paths - # or/and link against static libraries - newdependency_libs="$deplib $newdependency_libs" - fi - if $opt_preserve_dup_deps; then - case "$tmp_libs " in - *" $deplib "*) func_append specialdeplibs " $deplib" ;; - esac - fi - func_append tmp_libs " $deplib" - done # for deplib - continue - fi # $linkmode = prog... - - if test prog,link = "$linkmode,$pass"; then - if test -n "$library_names" && - { { test no = "$prefer_static_libs" || - test built,yes = "$prefer_static_libs,$installed"; } || - test -z "$old_library"; }; then - # We need to hardcode the library path - if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then - # Make sure the rpath contains only unique directories. - case $temp_rpath: in - *"$absdir:"*) ;; - *) func_append temp_rpath "$absdir:" ;; - esac - fi - - # Hardcode the library path. - # Skip directories that are in the system default run-time - # search path. - case " $sys_lib_dlsearch_path " in - *" $absdir "*) ;; - *) - case "$compile_rpath " in - *" $absdir "*) ;; - *) func_append compile_rpath " $absdir" ;; - esac - ;; - esac - case " $sys_lib_dlsearch_path " in - *" $libdir "*) ;; - *) - case "$finalize_rpath " in - *" $libdir "*) ;; - *) func_append finalize_rpath " $libdir" ;; - esac - ;; - esac - fi # $linkmode,$pass = prog,link... - - if $alldeplibs && - { test pass_all = "$deplibs_check_method" || - { test yes = "$build_libtool_libs" && - test -n "$library_names"; }; }; then - # We only need to search for static libraries - continue - fi - fi - - link_static=no # Whether the deplib will be linked statically - use_static_libs=$prefer_static_libs - if test built = "$use_static_libs" && test yes = "$installed"; then - use_static_libs=no - fi - if test -n "$library_names" && - { test no = "$use_static_libs" || test -z "$old_library"; }; then - case $host in - *cygwin* | *mingw* | *cegcc* | *os2*) - # No point in relinking DLLs because paths are not encoded - func_append notinst_deplibs " $lib" - need_relink=no - ;; - *) - if test no = "$installed"; then - func_append notinst_deplibs " $lib" - need_relink=yes - fi - ;; - esac - # This is a shared library - - # Warn about portability, can't link against -module's on some - # systems (darwin). Don't bleat about dlopened modules though! - dlopenmodule= - for dlpremoduletest in $dlprefiles; do - if test "X$dlpremoduletest" = "X$lib"; then - dlopenmodule=$dlpremoduletest - break - fi - done - if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then - echo - if test prog = "$linkmode"; then - $ECHO "*** Warning: Linking the executable $output against the loadable module" - else - $ECHO "*** Warning: Linking the shared library $output against the loadable module" - fi - $ECHO "*** $linklib is not portable!" - fi - if test lib = "$linkmode" && - test yes = "$hardcode_into_libs"; then - # Hardcode the library path. - # Skip directories that are in the system default run-time - # search path. - case " $sys_lib_dlsearch_path " in - *" $absdir "*) ;; - *) - case "$compile_rpath " in - *" $absdir "*) ;; - *) func_append compile_rpath " $absdir" ;; - esac - ;; - esac - case " $sys_lib_dlsearch_path " in - *" $libdir "*) ;; - *) - case "$finalize_rpath " in - *" $libdir "*) ;; - *) func_append finalize_rpath " $libdir" ;; - esac - ;; - esac - fi - - if test -n "$old_archive_from_expsyms_cmds"; then - # figure out the soname - set dummy $library_names - shift - realname=$1 - shift - libname=`eval "\\$ECHO \"$libname_spec\""` - # use dlname if we got it. it's perfectly good, no? - if test -n "$dlname"; then - soname=$dlname - elif test -n "$soname_spec"; then - # bleh windows - case $host in - *cygwin* | mingw* | *cegcc* | *os2*) - func_arith $current - $age - major=$func_arith_result - versuffix=-$major - ;; - esac - eval soname=\"$soname_spec\" - else - soname=$realname - fi - - # Make a new name for the extract_expsyms_cmds to use - soroot=$soname - func_basename "$soroot" - soname=$func_basename_result - func_stripname 'lib' '.dll' "$soname" - newlib=libimp-$func_stripname_result.a - - # If the library has no export list, then create one now - if test -f "$output_objdir/$soname-def"; then : - else - func_verbose "extracting exported symbol list from '$soname'" - func_execute_cmds "$extract_expsyms_cmds" 'exit $?' - fi - - # Create $newlib - if test -f "$output_objdir/$newlib"; then :; else - func_verbose "generating import library for '$soname'" - func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' - fi - # make sure the library variables are pointing to the new library - dir=$output_objdir - linklib=$newlib - fi # test -n "$old_archive_from_expsyms_cmds" - - if test prog = "$linkmode" || test relink != "$opt_mode"; then - add_shlibpath= - add_dir= - add= - lib_linked=yes - case $hardcode_action in - immediate | unsupported) - if test no = "$hardcode_direct"; then - add=$dir/$linklib - case $host in - *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;; - *-*-sysv4*uw2*) add_dir=-L$dir ;; - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ - *-*-unixware7*) add_dir=-L$dir ;; - *-*-darwin* ) - # if the lib is a (non-dlopened) module then we cannot - # link against it, someone is ignoring the earlier warnings - if /usr/bin/file -L $add 2> /dev/null | - $GREP ": [^:]* bundle" >/dev/null; then - if test "X$dlopenmodule" != "X$lib"; then - $ECHO "*** Warning: lib $linklib is a module, not a shared library" - if test -z "$old_library"; then - echo - echo "*** And there doesn't seem to be a static archive available" - echo "*** The link will probably fail, sorry" - else - add=$dir/$old_library - fi - elif test -n "$old_library"; then - add=$dir/$old_library - fi - fi - esac - elif test no = "$hardcode_minus_L"; then - case $host in - *-*-sunos*) add_shlibpath=$dir ;; - esac - add_dir=-L$dir - add=-l$name - elif test no = "$hardcode_shlibpath_var"; then - add_shlibpath=$dir - add=-l$name - else - lib_linked=no - fi - ;; - relink) - if test yes = "$hardcode_direct" && - test no = "$hardcode_direct_absolute"; then - add=$dir/$linklib - elif test yes = "$hardcode_minus_L"; then - add_dir=-L$absdir - # Try looking first in the location we're being installed to. - if test -n "$inst_prefix_dir"; then - case $libdir in - [\\/]*) - func_append add_dir " -L$inst_prefix_dir$libdir" - ;; - esac - fi - add=-l$name - elif test yes = "$hardcode_shlibpath_var"; then - add_shlibpath=$dir - add=-l$name - else - lib_linked=no - fi - ;; - *) lib_linked=no ;; - esac - - if test yes != "$lib_linked"; then - func_fatal_configuration "unsupported hardcode properties" - fi - - if test -n "$add_shlibpath"; then - case :$compile_shlibpath: in - *":$add_shlibpath:"*) ;; - *) func_append compile_shlibpath "$add_shlibpath:" ;; - esac - fi - if test prog = "$linkmode"; then - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" - test -n "$add" && compile_deplibs="$add $compile_deplibs" - else - test -n "$add_dir" && deplibs="$add_dir $deplibs" - test -n "$add" && deplibs="$add $deplibs" - if test yes != "$hardcode_direct" && - test yes != "$hardcode_minus_L" && - test yes = "$hardcode_shlibpath_var"; then - case :$finalize_shlibpath: in - *":$libdir:"*) ;; - *) func_append finalize_shlibpath "$libdir:" ;; - esac - fi - fi - fi - - if test prog = "$linkmode" || test relink = "$opt_mode"; then - add_shlibpath= - add_dir= - add= - # Finalize command for both is simple: just hardcode it. - if test yes = "$hardcode_direct" && - test no = "$hardcode_direct_absolute"; then - add=$libdir/$linklib - elif test yes = "$hardcode_minus_L"; then - add_dir=-L$libdir - add=-l$name - elif test yes = "$hardcode_shlibpath_var"; then - case :$finalize_shlibpath: in - *":$libdir:"*) ;; - *) func_append finalize_shlibpath "$libdir:" ;; - esac - add=-l$name - elif test yes = "$hardcode_automatic"; then - if test -n "$inst_prefix_dir" && - test -f "$inst_prefix_dir$libdir/$linklib"; then - add=$inst_prefix_dir$libdir/$linklib - else - add=$libdir/$linklib - fi - else - # We cannot seem to hardcode it, guess we'll fake it. - add_dir=-L$libdir - # Try looking first in the location we're being installed to. - if test -n "$inst_prefix_dir"; then - case $libdir in - [\\/]*) - func_append add_dir " -L$inst_prefix_dir$libdir" - ;; - esac - fi - add=-l$name - fi - - if test prog = "$linkmode"; then - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" - test -n "$add" && finalize_deplibs="$add $finalize_deplibs" - else - test -n "$add_dir" && deplibs="$add_dir $deplibs" - test -n "$add" && deplibs="$add $deplibs" - fi - fi - elif test prog = "$linkmode"; then - # Here we assume that one of hardcode_direct or hardcode_minus_L - # is not unsupported. This is valid on all known static and - # shared platforms. - if test unsupported != "$hardcode_direct"; then - test -n "$old_library" && linklib=$old_library - compile_deplibs="$dir/$linklib $compile_deplibs" - finalize_deplibs="$dir/$linklib $finalize_deplibs" - else - compile_deplibs="-l$name -L$dir $compile_deplibs" - finalize_deplibs="-l$name -L$dir $finalize_deplibs" - fi - elif test yes = "$build_libtool_libs"; then - # Not a shared library - if test pass_all != "$deplibs_check_method"; then - # We're trying link a shared library against a static one - # but the system doesn't support it. - - # Just print a warning and add the library to dependency_libs so - # that the program can be linked against the static library. - echo - $ECHO "*** Warning: This system cannot link to static lib archive $lib." - echo "*** I have the capability to make that library automatically link in when" - echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have." - if test yes = "$module"; then - echo "*** But as you try to build a module library, libtool will still create " - echo "*** a static module, that should work as long as the dlopening application" - echo "*** is linked with the -dlopen flag to resolve symbols at runtime." - if test -z "$global_symbol_pipe"; then - echo - echo "*** However, this would only work if libtool was able to extract symbol" - echo "*** lists from a program, using 'nm' or equivalent, but libtool could" - echo "*** not find such a program. So, this module is probably useless." - echo "*** 'nm' from GNU binutils and a full rebuild may help." - fi - if test no = "$build_old_libs"; then - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - fi - else - deplibs="$dir/$old_library $deplibs" - link_static=yes - fi - fi # link shared/static library? - - if test lib = "$linkmode"; then - if test -n "$dependency_libs" && - { test yes != "$hardcode_into_libs" || - test yes = "$build_old_libs" || - test yes = "$link_static"; }; then - # Extract -R from dependency_libs - temp_deplibs= - for libdir in $dependency_libs; do - case $libdir in - -R*) func_stripname '-R' '' "$libdir" - temp_xrpath=$func_stripname_result - case " $xrpath " in - *" $temp_xrpath "*) ;; - *) func_append xrpath " $temp_xrpath";; - esac;; - *) func_append temp_deplibs " $libdir";; - esac - done - dependency_libs=$temp_deplibs - fi - - func_append newlib_search_path " $absdir" - # Link against this library - test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs" - # ... and its dependency_libs - tmp_libs= - for deplib in $dependency_libs; do - newdependency_libs="$deplib $newdependency_libs" - case $deplib in - -L*) func_stripname '-L' '' "$deplib" - func_resolve_sysroot "$func_stripname_result";; - *) func_resolve_sysroot "$deplib" ;; - esac - if $opt_preserve_dup_deps; then - case "$tmp_libs " in - *" $func_resolve_sysroot_result "*) - func_append specialdeplibs " $func_resolve_sysroot_result" ;; - esac - fi - func_append tmp_libs " $func_resolve_sysroot_result" - done - - if test no != "$link_all_deplibs"; then - # Add the search paths of all dependency libraries - for deplib in $dependency_libs; do - path= - case $deplib in - -L*) path=$deplib ;; - *.la) - func_resolve_sysroot "$deplib" - deplib=$func_resolve_sysroot_result - func_dirname "$deplib" "" "." - dir=$func_dirname_result - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;; - *) - absdir=`cd "$dir" && pwd` - if test -z "$absdir"; then - func_warning "cannot determine absolute directory name of '$dir'" - absdir=$dir - fi - ;; - esac - if $GREP "^installed=no" $deplib > /dev/null; then - case $host in - *-*-darwin*) - depdepl= - eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` - if test -n "$deplibrary_names"; then - for tmp in $deplibrary_names; do - depdepl=$tmp - done - if test -f "$absdir/$objdir/$depdepl"; then - depdepl=$absdir/$objdir/$depdepl - darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` - if test -z "$darwin_install_name"; then - darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` - fi - func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl" - func_append linker_flags " -dylib_file $darwin_install_name:$depdepl" - path= - fi - fi - ;; - *) - path=-L$absdir/$objdir - ;; - esac - else - eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` - test -z "$libdir" && \ - func_fatal_error "'$deplib' is not a valid libtool archive" - test "$absdir" != "$libdir" && \ - func_warning "'$deplib' seems to be moved" - - path=-L$absdir - fi - ;; - esac - case " $deplibs " in - *" $path "*) ;; - *) deplibs="$path $deplibs" ;; - esac - done - fi # link_all_deplibs != no - fi # linkmode = lib - done # for deplib in $libs - if test link = "$pass"; then - if test prog = "$linkmode"; then - compile_deplibs="$new_inherited_linker_flags $compile_deplibs" - finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" - else - compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - fi - fi - dependency_libs=$newdependency_libs - if test dlpreopen = "$pass"; then - # Link the dlpreopened libraries before other libraries - for deplib in $save_deplibs; do - deplibs="$deplib $deplibs" - done - fi - if test dlopen != "$pass"; then - test conv = "$pass" || { - # Make sure lib_search_path contains only unique directories. - lib_search_path= - for dir in $newlib_search_path; do - case "$lib_search_path " in - *" $dir "*) ;; - *) func_append lib_search_path " $dir" ;; - esac - done - newlib_search_path= - } - - if test prog,link = "$linkmode,$pass"; then - vars="compile_deplibs finalize_deplibs" - else - vars=deplibs - fi - for var in $vars dependency_libs; do - # Add libraries to $var in reverse order - eval tmp_libs=\"\$$var\" - new_libs= - for deplib in $tmp_libs; do - # FIXME: Pedantically, this is the right thing to do, so - # that some nasty dependency loop isn't accidentally - # broken: - #new_libs="$deplib $new_libs" - # Pragmatically, this seems to cause very few problems in - # practice: - case $deplib in - -L*) new_libs="$deplib $new_libs" ;; - -R*) ;; - *) - # And here is the reason: when a library appears more - # than once as an explicit dependence of a library, or - # is implicitly linked in more than once by the - # compiler, it is considered special, and multiple - # occurrences thereof are not removed. Compare this - # with having the same library being listed as a - # dependency of multiple other libraries: in this case, - # we know (pedantically, we assume) the library does not - # need to be listed more than once, so we keep only the - # last copy. This is not always right, but it is rare - # enough that we require users that really mean to play - # such unportable linking tricks to link the library - # using -Wl,-lname, so that libtool does not consider it - # for duplicate removal. - case " $specialdeplibs " in - *" $deplib "*) new_libs="$deplib $new_libs" ;; - *) - case " $new_libs " in - *" $deplib "*) ;; - *) new_libs="$deplib $new_libs" ;; - esac - ;; - esac - ;; - esac - done - tmp_libs= - for deplib in $new_libs; do - case $deplib in - -L*) - case " $tmp_libs " in - *" $deplib "*) ;; - *) func_append tmp_libs " $deplib" ;; - esac - ;; - *) func_append tmp_libs " $deplib" ;; - esac - done - eval $var=\"$tmp_libs\" - done # for var - fi - - # Add Sun CC postdeps if required: - test CXX = "$tagname" && { - case $host_os in - linux*) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C++ 5.9 - func_suncc_cstd_abi - - if test no != "$suncc_use_cstd_abi"; then - func_append postdeps ' -library=Cstd -library=Crun' - fi - ;; - esac - ;; - - solaris*) - func_cc_basename "$CC" - case $func_cc_basename_result in - CC* | sunCC*) - func_suncc_cstd_abi - - if test no != "$suncc_use_cstd_abi"; then - func_append postdeps ' -library=Cstd -library=Crun' - fi - ;; - esac - ;; - esac - } - - # Last step: remove runtime libs from dependency_libs - # (they stay in deplibs) - tmp_libs= - for i in $dependency_libs; do - case " $predeps $postdeps $compiler_lib_search_path " in - *" $i "*) - i= - ;; - esac - if test -n "$i"; then - func_append tmp_libs " $i" - fi - done - dependency_libs=$tmp_libs - done # for pass - if test prog = "$linkmode"; then - dlfiles=$newdlfiles - fi - if test prog = "$linkmode" || test lib = "$linkmode"; then - dlprefiles=$newdlprefiles - fi - - case $linkmode in - oldlib) - if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then - func_warning "'-dlopen' is ignored for archives" - fi - - case " $deplibs" in - *\ -l* | *\ -L*) - func_warning "'-l' and '-L' are ignored for archives" ;; - esac - - test -n "$rpath" && \ - func_warning "'-rpath' is ignored for archives" - - test -n "$xrpath" && \ - func_warning "'-R' is ignored for archives" - - test -n "$vinfo" && \ - func_warning "'-version-info/-version-number' is ignored for archives" - - test -n "$release" && \ - func_warning "'-release' is ignored for archives" - - test -n "$export_symbols$export_symbols_regex" && \ - func_warning "'-export-symbols' is ignored for archives" - - # Now set the variables for building old libraries. - build_libtool_libs=no - oldlibs=$output - func_append objs "$old_deplibs" - ;; - - lib) - # Make sure we only generate libraries of the form 'libNAME.la'. - case $outputname in - lib*) - func_stripname 'lib' '.la' "$outputname" - name=$func_stripname_result - eval shared_ext=\"$shrext_cmds\" - eval libname=\"$libname_spec\" - ;; - *) - test no = "$module" \ - && func_fatal_help "libtool library '$output' must begin with 'lib'" - - if test no != "$need_lib_prefix"; then - # Add the "lib" prefix for modules if required - func_stripname '' '.la' "$outputname" - name=$func_stripname_result - eval shared_ext=\"$shrext_cmds\" - eval libname=\"$libname_spec\" - else - func_stripname '' '.la' "$outputname" - libname=$func_stripname_result - fi - ;; - esac - - if test -n "$objs"; then - if test pass_all != "$deplibs_check_method"; then - func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs" - else - echo - $ECHO "*** Warning: Linking the shared library $output against the non-libtool" - $ECHO "*** objects $objs is not portable!" - func_append libobjs " $objs" - fi - fi - - test no = "$dlself" \ - || func_warning "'-dlopen self' is ignored for libtool libraries" - - set dummy $rpath - shift - test 1 -lt "$#" \ - && func_warning "ignoring multiple '-rpath's for a libtool library" - - install_libdir=$1 - - oldlibs= - if test -z "$rpath"; then - if test yes = "$build_libtool_libs"; then - # Building a libtool convenience library. - # Some compilers have problems with a '.al' extension so - # convenience libraries should have the same extension an - # archive normally would. - oldlibs="$output_objdir/$libname.$libext $oldlibs" - build_libtool_libs=convenience - build_old_libs=yes - fi - - test -n "$vinfo" && \ - func_warning "'-version-info/-version-number' is ignored for convenience libraries" - - test -n "$release" && \ - func_warning "'-release' is ignored for convenience libraries" - else - - # Parse the version information argument. - save_ifs=$IFS; IFS=: - set dummy $vinfo 0 0 0 - shift - IFS=$save_ifs - - test -n "$7" && \ - func_fatal_help "too many parameters to '-version-info'" - - # convert absolute version numbers to libtool ages - # this retains compatibility with .la files and attempts - # to make the code below a bit more comprehensible - - case $vinfo_number in - yes) - number_major=$1 - number_minor=$2 - number_revision=$3 - # - # There are really only two kinds -- those that - # use the current revision as the major version - # and those that subtract age and use age as - # a minor version. But, then there is irix - # that has an extra 1 added just for fun - # - case $version_type in - # correct linux to gnu/linux during the next big refactor - darwin|freebsd-elf|linux|osf|windows|none) - func_arith $number_major + $number_minor - current=$func_arith_result - age=$number_minor - revision=$number_revision - ;; - freebsd-aout|qnx|sunos) - current=$number_major - revision=$number_minor - age=0 - ;; - irix|nonstopux) - func_arith $number_major + $number_minor - current=$func_arith_result - age=$number_minor - revision=$number_minor - lt_irix_increment=no - ;; - *) - func_fatal_configuration "$modename: unknown library version type '$version_type'" - ;; - esac - ;; - no) - current=$1 - revision=$2 - age=$3 - ;; - esac - - # Check that each of the things are valid numbers. - case $current in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - func_error "CURRENT '$current' must be a nonnegative integer" - func_fatal_error "'$vinfo' is not valid version information" - ;; - esac - - case $revision in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - func_error "REVISION '$revision' must be a nonnegative integer" - func_fatal_error "'$vinfo' is not valid version information" - ;; - esac - - case $age in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - func_error "AGE '$age' must be a nonnegative integer" - func_fatal_error "'$vinfo' is not valid version information" - ;; - esac - - if test "$age" -gt "$current"; then - func_error "AGE '$age' is greater than the current interface number '$current'" - func_fatal_error "'$vinfo' is not valid version information" - fi - - # Calculate the version variables. - major= - versuffix= - verstring= - case $version_type in - none) ;; - - darwin) - # Like Linux, but with the current version available in - # verstring for coding it into the library header - func_arith $current - $age - major=.$func_arith_result - versuffix=$major.$age.$revision - # Darwin ld doesn't like 0 for these options... - func_arith $current + 1 - minor_current=$func_arith_result - xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" - # On Darwin other compilers - case $CC in - nagfor*) - verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" - ;; - *) - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" - ;; - esac - ;; - - freebsd-aout) - major=.$current - versuffix=.$current.$revision - ;; - - freebsd-elf) - func_arith $current - $age - major=.$func_arith_result - versuffix=$major.$age.$revision - ;; - - irix | nonstopux) - if test no = "$lt_irix_increment"; then - func_arith $current - $age - else - func_arith $current - $age + 1 - fi - major=$func_arith_result - - case $version_type in - nonstopux) verstring_prefix=nonstopux ;; - *) verstring_prefix=sgi ;; - esac - verstring=$verstring_prefix$major.$revision - - # Add in all the interfaces that we are compatible with. - loop=$revision - while test 0 -ne "$loop"; do - func_arith $revision - $loop - iface=$func_arith_result - func_arith $loop - 1 - loop=$func_arith_result - verstring=$verstring_prefix$major.$iface:$verstring - done - - # Before this point, $major must not contain '.'. - major=.$major - versuffix=$major.$revision - ;; - - linux) # correct to gnu/linux during the next big refactor - func_arith $current - $age - major=.$func_arith_result - versuffix=$major.$age.$revision - ;; - - osf) - func_arith $current - $age - major=.$func_arith_result - versuffix=.$current.$age.$revision - verstring=$current.$age.$revision - - # Add in all the interfaces that we are compatible with. - loop=$age - while test 0 -ne "$loop"; do - func_arith $current - $loop - iface=$func_arith_result - func_arith $loop - 1 - loop=$func_arith_result - verstring=$verstring:$iface.0 - done - - # Make executables depend on our current version. - func_append verstring ":$current.0" - ;; - - qnx) - major=.$current - versuffix=.$current - ;; - - sco) - major=.$current - versuffix=.$current - ;; - - sunos) - major=.$current - versuffix=.$current.$revision - ;; - - windows) - # Use '-' rather than '.', since we only want one - # extension on DOS 8.3 file systems. - func_arith $current - $age - major=$func_arith_result - versuffix=-$major - ;; - - *) - func_fatal_configuration "unknown library version type '$version_type'" - ;; - esac - - # Clear the version info if we defaulted, and they specified a release. - if test -z "$vinfo" && test -n "$release"; then - major= - case $version_type in - darwin) - # we can't check for "0.0" in archive_cmds due to quoting - # problems, so we reset it completely - verstring= - ;; - *) - verstring=0.0 - ;; - esac - if test no = "$need_version"; then - versuffix= - else - versuffix=.0.0 - fi - fi - - # Remove version info from name if versioning should be avoided - if test yes,no = "$avoid_version,$need_version"; then - major= - versuffix= - verstring= - fi - - # Check to see if the archive will have undefined symbols. - if test yes = "$allow_undefined"; then - if test unsupported = "$allow_undefined_flag"; then - if test yes = "$build_old_libs"; then - func_warning "undefined symbols not allowed in $host shared libraries; building static only" - build_libtool_libs=no - else - func_fatal_error "can't build $host shared library unless -no-undefined is specified" - fi - fi - else - # Don't allow undefined symbols. - allow_undefined_flag=$no_undefined_flag - fi - - fi - - func_generate_dlsyms "$libname" "$libname" : - func_append libobjs " $symfileobj" - test " " = "$libobjs" && libobjs= - - if test relink != "$opt_mode"; then - # Remove our outputs, but don't remove object files since they - # may have been created when compiling PIC objects. - removelist= - tempremovelist=`$ECHO "$output_objdir/*"` - for p in $tempremovelist; do - case $p in - *.$objext | *.gcno) - ;; - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*) - if test -n "$precious_files_regex"; then - if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 - then - continue - fi - fi - func_append removelist " $p" - ;; - *) ;; - esac - done - test -n "$removelist" && \ - func_show_eval "${RM}r \$removelist" - fi - - # Now set the variables for building old libraries. - if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then - func_append oldlibs " $output_objdir/$libname.$libext" - - # Transform .lo files to .o files. - oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP` - fi - - # Eliminate all temporary directories. - #for path in $notinst_path; do - # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` - # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` - # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` - #done - - if test -n "$xrpath"; then - # If the user specified any rpath flags, then add them. - temp_xrpath= - for libdir in $xrpath; do - func_replace_sysroot "$libdir" - func_append temp_xrpath " -R$func_replace_sysroot_result" - case "$finalize_rpath " in - *" $libdir "*) ;; - *) func_append finalize_rpath " $libdir" ;; - esac - done - if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then - dependency_libs="$temp_xrpath $dependency_libs" - fi - fi - - # Make sure dlfiles contains only unique files that won't be dlpreopened - old_dlfiles=$dlfiles - dlfiles= - for lib in $old_dlfiles; do - case " $dlprefiles $dlfiles " in - *" $lib "*) ;; - *) func_append dlfiles " $lib" ;; - esac - done - - # Make sure dlprefiles contains only unique files - old_dlprefiles=$dlprefiles - dlprefiles= - for lib in $old_dlprefiles; do - case "$dlprefiles " in - *" $lib "*) ;; - *) func_append dlprefiles " $lib" ;; - esac - done - - if test yes = "$build_libtool_libs"; then - if test -n "$rpath"; then - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) - # these systems don't actually have a c library (as such)! - ;; - *-*-rhapsody* | *-*-darwin1.[012]) - # Rhapsody C library is in the System framework - func_append deplibs " System.ltframework" - ;; - *-*-netbsd*) - # Don't link with libc until the a.out ld.so is fixed. - ;; - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) - # Do not include libc due to us having libc/libc_r. - ;; - *-*-sco3.2v5* | *-*-sco5v6*) - # Causes problems with __ctype - ;; - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) - # Compiler inserts libc in the correct place for threads to work - ;; - *) - # Add libc to deplibs on all other systems if necessary. - if test yes = "$build_libtool_need_lc"; then - func_append deplibs " -lc" - fi - ;; - esac - fi - - # Transform deplibs into only deplibs that can be linked in shared. - name_save=$name - libname_save=$libname - release_save=$release - versuffix_save=$versuffix - major_save=$major - # I'm not sure if I'm treating the release correctly. I think - # release should show up in the -l (ie -lgmp5) so we don't want to - # add it in twice. Is that correct? - release= - versuffix= - major= - newdeplibs= - droppeddeps=no - case $deplibs_check_method in - pass_all) - # Don't check for shared/static. Everything works. - # This might be a little naive. We might want to check - # whether the library exists or not. But this is on - # osf3 & osf4 and I'm not really sure... Just - # implementing what was already the behavior. - newdeplibs=$deplibs - ;; - test_compile) - # This code stresses the "libraries are programs" paradigm to its - # limits. Maybe even breaks it. We compile a program, linking it - # against the deplibs as a proxy for the library. Then we can check - # whether they linked in statically or dynamically with ldd. - $opt_dry_run || $RM conftest.c - cat > conftest.c </dev/null` - $nocaseglob - else - potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` - fi - for potent_lib in $potential_libs; do - # Follow soft links. - if ls -lLd "$potent_lib" 2>/dev/null | - $GREP " -> " >/dev/null; then - continue - fi - # The statement above tries to avoid entering an - # endless loop below, in case of cyclic links. - # We might still enter an endless loop, since a link - # loop can be closed while we follow links, - # but so what? - potlib=$potent_lib - while test -h "$potlib" 2>/dev/null; do - potliblink=`ls -ld $potlib | $SED 's/.* -> //'` - case $potliblink in - [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;; - *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";; - esac - done - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | - $SED -e 10q | - $EGREP "$file_magic_regex" > /dev/null; then - func_append newdeplibs " $a_deplib" - a_deplib= - break 2 - fi - done - done - fi - if test -n "$a_deplib"; then - droppeddeps=yes - echo - $ECHO "*** Warning: linker path does not have real file for library $a_deplib." - echo "*** I have the capability to make that library automatically link in when" - echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have" - echo "*** because I did check the linker path looking for a file starting" - if test -z "$potlib"; then - $ECHO "*** with $libname but no candidates were found. (...for file magic test)" - else - $ECHO "*** with $libname and none of the candidates passed a file format test" - $ECHO "*** using a file magic. Last file checked: $potlib" - fi - fi - ;; - *) - # Add a -L argument. - func_append newdeplibs " $a_deplib" - ;; - esac - done # Gone through all deplibs. - ;; - match_pattern*) - set dummy $deplibs_check_method; shift - match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` - for a_deplib in $deplibs; do - case $a_deplib in - -l*) - func_stripname -l '' "$a_deplib" - name=$func_stripname_result - if test yes = "$allow_libtool_libs_with_static_runtimes"; then - case " $predeps $postdeps " in - *" $a_deplib "*) - func_append newdeplibs " $a_deplib" - a_deplib= - ;; - esac - fi - if test -n "$a_deplib"; then - libname=`eval "\\$ECHO \"$libname_spec\""` - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do - potential_libs=`ls $i/$libname[.-]* 2>/dev/null` - for potent_lib in $potential_libs; do - potlib=$potent_lib # see symlink-check above in file_magic test - if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ - $EGREP "$match_pattern_regex" > /dev/null; then - func_append newdeplibs " $a_deplib" - a_deplib= - break 2 - fi - done - done - fi - if test -n "$a_deplib"; then - droppeddeps=yes - echo - $ECHO "*** Warning: linker path does not have real file for library $a_deplib." - echo "*** I have the capability to make that library automatically link in when" - echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have" - echo "*** because I did check the linker path looking for a file starting" - if test -z "$potlib"; then - $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" - else - $ECHO "*** with $libname and none of the candidates passed a file format test" - $ECHO "*** using a regex pattern. Last file checked: $potlib" - fi - fi - ;; - *) - # Add a -L argument. - func_append newdeplibs " $a_deplib" - ;; - esac - done # Gone through all deplibs. - ;; - none | unknown | *) - newdeplibs= - tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` - if test yes = "$allow_libtool_libs_with_static_runtimes"; then - for i in $predeps $postdeps; do - # can't use Xsed below, because $i might contain '/' - tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"` - done - fi - case $tmp_deplibs in - *[!\ \ ]*) - echo - if test none = "$deplibs_check_method"; then - echo "*** Warning: inter-library dependencies are not supported in this platform." - else - echo "*** Warning: inter-library dependencies are not known to be supported." - fi - echo "*** All declared inter-library dependencies are being dropped." - droppeddeps=yes - ;; - esac - ;; - esac - versuffix=$versuffix_save - major=$major_save - release=$release_save - libname=$libname_save - name=$name_save - - case $host in - *-*-rhapsody* | *-*-darwin1.[012]) - # On Rhapsody replace the C library with the System framework - newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` - ;; - esac - - if test yes = "$droppeddeps"; then - if test yes = "$module"; then - echo - echo "*** Warning: libtool could not satisfy all declared inter-library" - $ECHO "*** dependencies of module $libname. Therefore, libtool will create" - echo "*** a static module, that should work as long as the dlopening" - echo "*** application is linked with the -dlopen flag." - if test -z "$global_symbol_pipe"; then - echo - echo "*** However, this would only work if libtool was able to extract symbol" - echo "*** lists from a program, using 'nm' or equivalent, but libtool could" - echo "*** not find such a program. So, this module is probably useless." - echo "*** 'nm' from GNU binutils and a full rebuild may help." - fi - if test no = "$build_old_libs"; then - oldlibs=$output_objdir/$libname.$libext - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - else - echo "*** The inter-library dependencies that have been dropped here will be" - echo "*** automatically added whenever a program is linked with this library" - echo "*** or is declared to -dlopen it." - - if test no = "$allow_undefined"; then - echo - echo "*** Since this library must not contain undefined symbols," - echo "*** because either the platform does not support them or" - echo "*** it was explicitly requested with -no-undefined," - echo "*** libtool will only create a static version of it." - if test no = "$build_old_libs"; then - oldlibs=$output_objdir/$libname.$libext - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - fi - fi - fi - # Done checking deplibs! - deplibs=$newdeplibs - fi - # Time to change all our "foo.ltframework" stuff back to "-framework foo" - case $host in - *-*-darwin*) - newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - ;; - esac - - # move library search paths that coincide with paths to not yet - # installed libraries to the beginning of the library search list - new_libs= - for path in $notinst_path; do - case " $new_libs " in - *" -L$path/$objdir "*) ;; - *) - case " $deplibs " in - *" -L$path/$objdir "*) - func_append new_libs " -L$path/$objdir" ;; - esac - ;; - esac - done - for deplib in $deplibs; do - case $deplib in - -L*) - case " $new_libs " in - *" $deplib "*) ;; - *) func_append new_libs " $deplib" ;; - esac - ;; - *) func_append new_libs " $deplib" ;; - esac - done - deplibs=$new_libs - - # All the library-specific variables (install_libdir is set above). - library_names= - old_library= - dlname= - - # Test again, we may have decided not to build it any more - if test yes = "$build_libtool_libs"; then - # Remove $wl instances when linking with ld. - # FIXME: should test the right _cmds variable. - case $archive_cmds in - *\$LD\ *) wl= ;; - esac - if test yes = "$hardcode_into_libs"; then - # Hardcode the library paths - hardcode_libdirs= - dep_rpath= - rpath=$finalize_rpath - test relink = "$opt_mode" || rpath=$compile_rpath$rpath - for libdir in $rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - func_replace_sysroot "$libdir" - libdir=$func_replace_sysroot_result - if test -z "$hardcode_libdirs"; then - hardcode_libdirs=$libdir - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - func_append dep_rpath " $flag" - fi - elif test -n "$runpath_var"; then - case "$perm_rpath " in - *" $libdir "*) ;; - *) func_append perm_rpath " $libdir" ;; - esac - fi - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir=$hardcode_libdirs - eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" - fi - if test -n "$runpath_var" && test -n "$perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $perm_rpath; do - func_append rpath "$dir:" - done - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" - fi - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" - fi - - shlibpath=$finalize_shlibpath - test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath - if test -n "$shlibpath"; then - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" - fi - - # Get the real and link names of the library. - eval shared_ext=\"$shrext_cmds\" - eval library_names=\"$library_names_spec\" - set dummy $library_names - shift - realname=$1 - shift - - if test -n "$soname_spec"; then - eval soname=\"$soname_spec\" - else - soname=$realname - fi - if test -z "$dlname"; then - dlname=$soname - fi - - lib=$output_objdir/$realname - linknames= - for link - do - func_append linknames " $link" - done - - # Use standard objects if they are pic - test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` - test "X$libobjs" = "X " && libobjs= - - delfiles= - if test -n "$export_symbols" && test -n "$include_expsyms"; then - $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" - export_symbols=$output_objdir/$libname.uexp - func_append delfiles " $export_symbols" - fi - - orig_export_symbols= - case $host_os in - cygwin* | mingw* | cegcc*) - if test -n "$export_symbols" && test -z "$export_symbols_regex"; then - # exporting using user supplied symfile - func_dll_def_p "$export_symbols" || { - # and it's NOT already a .def file. Must figure out - # which of the given symbols are data symbols and tag - # them as such. So, trigger use of export_symbols_cmds. - # export_symbols gets reassigned inside the "prepare - # the list of exported symbols" if statement, so the - # include_expsyms logic still works. - orig_export_symbols=$export_symbols - export_symbols= - always_export_symbols=yes - } - fi - ;; - esac - - # Prepare the list of exported symbols - if test -z "$export_symbols"; then - if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then - func_verbose "generating symbol list for '$libname.la'" - export_symbols=$output_objdir/$libname.exp - $opt_dry_run || $RM $export_symbols - cmds=$export_symbols_cmds - save_ifs=$IFS; IFS='~' - for cmd1 in $cmds; do - IFS=$save_ifs - # Take the normal branch if the nm_file_list_spec branch - # doesn't work or if tool conversion is not needed. - case $nm_file_list_spec~$to_tool_file_cmd in - *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) - try_normal_branch=yes - eval cmd=\"$cmd1\" - func_len " $cmd" - len=$func_len_result - ;; - *) - try_normal_branch=no - ;; - esac - if test yes = "$try_normal_branch" \ - && { test "$len" -lt "$max_cmd_len" \ - || test "$max_cmd_len" -le -1; } - then - func_show_eval "$cmd" 'exit $?' - skipped_export=false - elif test -n "$nm_file_list_spec"; then - func_basename "$output" - output_la=$func_basename_result - save_libobjs=$libobjs - save_output=$output - output=$output_objdir/$output_la.nm - func_to_tool_file "$output" - libobjs=$nm_file_list_spec$func_to_tool_file_result - func_append delfiles " $output" - func_verbose "creating $NM input file list: $output" - for obj in $save_libobjs; do - func_to_tool_file "$obj" - $ECHO "$func_to_tool_file_result" - done > "$output" - eval cmd=\"$cmd1\" - func_show_eval "$cmd" 'exit $?' - output=$save_output - libobjs=$save_libobjs - skipped_export=false - else - # The command line is too long to execute in one step. - func_verbose "using reloadable object file for export list..." - skipped_export=: - # Break out early, otherwise skipped_export may be - # set to false by a later but shorter cmd. - break - fi - done - IFS=$save_ifs - if test -n "$export_symbols_regex" && test : != "$skipped_export"; then - func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' - func_show_eval '$MV "${export_symbols}T" "$export_symbols"' - fi - fi - fi - - if test -n "$export_symbols" && test -n "$include_expsyms"; then - tmp_export_symbols=$export_symbols - test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols - $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' - fi - - if test : != "$skipped_export" && test -n "$orig_export_symbols"; then - # The given exports_symbols file has to be filtered, so filter it. - func_verbose "filter symbol list for '$libname.la' to tag DATA exports" - # FIXME: $output_objdir/$libname.filter potentially contains lots of - # 's' commands, which not all seds can handle. GNU sed should be fine - # though. Also, the filter scales superlinearly with the number of - # global variables. join(1) would be nice here, but unfortunately - # isn't a blessed tool. - $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter - func_append delfiles " $export_symbols $output_objdir/$libname.filter" - export_symbols=$output_objdir/$libname.def - $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols - fi - - tmp_deplibs= - for test_deplib in $deplibs; do - case " $convenience " in - *" $test_deplib "*) ;; - *) - func_append tmp_deplibs " $test_deplib" - ;; - esac - done - deplibs=$tmp_deplibs - - if test -n "$convenience"; then - if test -n "$whole_archive_flag_spec" && - test yes = "$compiler_needs_object" && - test -z "$libobjs"; then - # extract the archives, so we have objects to list. - # TODO: could optimize this to just extract one archive. - whole_archive_flag_spec= - fi - if test -n "$whole_archive_flag_spec"; then - save_libobjs=$libobjs - eval libobjs=\"\$libobjs $whole_archive_flag_spec\" - test "X$libobjs" = "X " && libobjs= - else - gentop=$output_objdir/${outputname}x - func_append generated " $gentop" - - func_extract_archives $gentop $convenience - func_append libobjs " $func_extract_archives_result" - test "X$libobjs" = "X " && libobjs= - fi - fi - - if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then - eval flag=\"$thread_safe_flag_spec\" - func_append linker_flags " $flag" - fi - - # Make a backup of the uninstalled library when relinking - if test relink = "$opt_mode"; then - $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? - fi - - # Do each of the archive commands. - if test yes = "$module" && test -n "$module_cmds"; then - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then - eval test_cmds=\"$module_expsym_cmds\" - cmds=$module_expsym_cmds - else - eval test_cmds=\"$module_cmds\" - cmds=$module_cmds - fi - else - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then - eval test_cmds=\"$archive_expsym_cmds\" - cmds=$archive_expsym_cmds - else - eval test_cmds=\"$archive_cmds\" - cmds=$archive_cmds - fi - fi - - if test : != "$skipped_export" && - func_len " $test_cmds" && - len=$func_len_result && - test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then - : - else - # The command line is too long to link in one step, link piecewise - # or, if using GNU ld and skipped_export is not :, use a linker - # script. - - # Save the value of $output and $libobjs because we want to - # use them later. If we have whole_archive_flag_spec, we - # want to use save_libobjs as it was before - # whole_archive_flag_spec was expanded, because we can't - # assume the linker understands whole_archive_flag_spec. - # This may have to be revisited, in case too many - # convenience libraries get linked in and end up exceeding - # the spec. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then - save_libobjs=$libobjs - fi - save_output=$output - func_basename "$output" - output_la=$func_basename_result - - # Clear the reloadable object creation command queue and - # initialize k to one. - test_cmds= - concat_cmds= - objlist= - last_robj= - k=1 - - if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then - output=$output_objdir/$output_la.lnkscript - func_verbose "creating GNU ld script: $output" - echo 'INPUT (' > $output - for obj in $save_libobjs - do - func_to_tool_file "$obj" - $ECHO "$func_to_tool_file_result" >> $output - done - echo ')' >> $output - func_append delfiles " $output" - func_to_tool_file "$output" - output=$func_to_tool_file_result - elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then - output=$output_objdir/$output_la.lnk - func_verbose "creating linker input file list: $output" - : > $output - set x $save_libobjs - shift - firstobj= - if test yes = "$compiler_needs_object"; then - firstobj="$1 " - shift - fi - for obj - do - func_to_tool_file "$obj" - $ECHO "$func_to_tool_file_result" >> $output - done - func_append delfiles " $output" - func_to_tool_file "$output" - output=$firstobj\"$file_list_spec$func_to_tool_file_result\" - else - if test -n "$save_libobjs"; then - func_verbose "creating reloadable object files..." - output=$output_objdir/$output_la-$k.$objext - eval test_cmds=\"$reload_cmds\" - func_len " $test_cmds" - len0=$func_len_result - len=$len0 - - # Loop over the list of objects to be linked. - for obj in $save_libobjs - do - func_len " $obj" - func_arith $len + $func_len_result - len=$func_arith_result - if test -z "$objlist" || - test "$len" -lt "$max_cmd_len"; then - func_append objlist " $obj" - else - # The command $test_cmds is almost too long, add a - # command to the queue. - if test 1 -eq "$k"; then - # The first file doesn't have a previous command to add. - reload_objs=$objlist - eval concat_cmds=\"$reload_cmds\" - else - # All subsequent reloadable object files will link in - # the last one created. - reload_objs="$objlist $last_robj" - eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" - fi - last_robj=$output_objdir/$output_la-$k.$objext - func_arith $k + 1 - k=$func_arith_result - output=$output_objdir/$output_la-$k.$objext - objlist=" $obj" - func_len " $last_robj" - func_arith $len0 + $func_len_result - len=$func_arith_result - fi - done - # Handle the remaining objects by creating one last - # reloadable object file. All subsequent reloadable object - # files will link in the last one created. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - reload_objs="$objlist $last_robj" - eval concat_cmds=\"\$concat_cmds$reload_cmds\" - if test -n "$last_robj"; then - eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" - fi - func_append delfiles " $output" - - else - output= - fi - - ${skipped_export-false} && { - func_verbose "generating symbol list for '$libname.la'" - export_symbols=$output_objdir/$libname.exp - $opt_dry_run || $RM $export_symbols - libobjs=$output - # Append the command to create the export file. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" - if test -n "$last_robj"; then - eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" - fi - } - - test -n "$save_libobjs" && - func_verbose "creating a temporary reloadable object file: $output" - - # Loop through the commands generated above and execute them. - save_ifs=$IFS; IFS='~' - for cmd in $concat_cmds; do - IFS=$save_ifs - $opt_quiet || { - func_quote_for_expand "$cmd" - eval "func_echo $func_quote_for_expand_result" - } - $opt_dry_run || eval "$cmd" || { - lt_exit=$? - - # Restore the uninstalled library and exit - if test relink = "$opt_mode"; then - ( cd "$output_objdir" && \ - $RM "${realname}T" && \ - $MV "${realname}U" "$realname" ) - fi - - exit $lt_exit - } - done - IFS=$save_ifs - - if test -n "$export_symbols_regex" && ${skipped_export-false}; then - func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' - func_show_eval '$MV "${export_symbols}T" "$export_symbols"' - fi - fi - - ${skipped_export-false} && { - if test -n "$export_symbols" && test -n "$include_expsyms"; then - tmp_export_symbols=$export_symbols - test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols - $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' - fi - - if test -n "$orig_export_symbols"; then - # The given exports_symbols file has to be filtered, so filter it. - func_verbose "filter symbol list for '$libname.la' to tag DATA exports" - # FIXME: $output_objdir/$libname.filter potentially contains lots of - # 's' commands, which not all seds can handle. GNU sed should be fine - # though. Also, the filter scales superlinearly with the number of - # global variables. join(1) would be nice here, but unfortunately - # isn't a blessed tool. - $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter - func_append delfiles " $export_symbols $output_objdir/$libname.filter" - export_symbols=$output_objdir/$libname.def - $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols - fi - } - - libobjs=$output - # Restore the value of output. - output=$save_output - - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then - eval libobjs=\"\$libobjs $whole_archive_flag_spec\" - test "X$libobjs" = "X " && libobjs= - fi - # Expand the library linking commands again to reset the - # value of $libobjs for piecewise linking. - - # Do each of the archive commands. - if test yes = "$module" && test -n "$module_cmds"; then - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then - cmds=$module_expsym_cmds - else - cmds=$module_cmds - fi - else - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then - cmds=$archive_expsym_cmds - else - cmds=$archive_cmds - fi - fi - fi - - if test -n "$delfiles"; then - # Append the command to remove temporary files to $cmds. - eval cmds=\"\$cmds~\$RM $delfiles\" - fi - - # Add any objects from preloaded convenience libraries - if test -n "$dlprefiles"; then - gentop=$output_objdir/${outputname}x - func_append generated " $gentop" - - func_extract_archives $gentop $dlprefiles - func_append libobjs " $func_extract_archives_result" - test "X$libobjs" = "X " && libobjs= - fi - - save_ifs=$IFS; IFS='~' - for cmd in $cmds; do - IFS=$sp$nl - eval cmd=\"$cmd\" - IFS=$save_ifs - $opt_quiet || { - func_quote_for_expand "$cmd" - eval "func_echo $func_quote_for_expand_result" - } - $opt_dry_run || eval "$cmd" || { - lt_exit=$? - - # Restore the uninstalled library and exit - if test relink = "$opt_mode"; then - ( cd "$output_objdir" && \ - $RM "${realname}T" && \ - $MV "${realname}U" "$realname" ) - fi - - exit $lt_exit - } - done - IFS=$save_ifs - - # Restore the uninstalled library and exit - if test relink = "$opt_mode"; then - $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? - - if test -n "$convenience"; then - if test -z "$whole_archive_flag_spec"; then - func_show_eval '${RM}r "$gentop"' - fi - fi - - exit $EXIT_SUCCESS - fi - - # Create links to the real library. - for linkname in $linknames; do - if test "$realname" != "$linkname"; then - func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' - fi - done - - # If -module or -export-dynamic was specified, set the dlname. - if test yes = "$module" || test yes = "$export_dynamic"; then - # On all known operating systems, these are identical. - dlname=$soname - fi - fi - ;; - - obj) - if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then - func_warning "'-dlopen' is ignored for objects" - fi - - case " $deplibs" in - *\ -l* | *\ -L*) - func_warning "'-l' and '-L' are ignored for objects" ;; - esac - - test -n "$rpath" && \ - func_warning "'-rpath' is ignored for objects" - - test -n "$xrpath" && \ - func_warning "'-R' is ignored for objects" - - test -n "$vinfo" && \ - func_warning "'-version-info' is ignored for objects" - - test -n "$release" && \ - func_warning "'-release' is ignored for objects" - - case $output in - *.lo) - test -n "$objs$old_deplibs" && \ - func_fatal_error "cannot build library object '$output' from non-libtool objects" - - libobj=$output - func_lo2o "$libobj" - obj=$func_lo2o_result - ;; - *) - libobj= - obj=$output - ;; - esac - - # Delete the old objects. - $opt_dry_run || $RM $obj $libobj - - # Objects from convenience libraries. This assumes - # single-version convenience libraries. Whenever we create - # different ones for PIC/non-PIC, this we'll have to duplicate - # the extraction. - reload_conv_objs= - gentop= - # if reload_cmds runs $LD directly, get rid of -Wl from - # whole_archive_flag_spec and hope we can get by with turning comma - # into space. - case $reload_cmds in - *\$LD[\ \$]*) wl= ;; - esac - if test -n "$convenience"; then - if test -n "$whole_archive_flag_spec"; then - eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" - test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` - reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags - else - gentop=$output_objdir/${obj}x - func_append generated " $gentop" - - func_extract_archives $gentop $convenience - reload_conv_objs="$reload_objs $func_extract_archives_result" - fi - fi - - # If we're not building shared, we need to use non_pic_objs - test yes = "$build_libtool_libs" || libobjs=$non_pic_objects - - # Create the old-style object. - reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs - - output=$obj - func_execute_cmds "$reload_cmds" 'exit $?' - - # Exit if we aren't doing a library object file. - if test -z "$libobj"; then - if test -n "$gentop"; then - func_show_eval '${RM}r "$gentop"' - fi - - exit $EXIT_SUCCESS - fi - - test yes = "$build_libtool_libs" || { - if test -n "$gentop"; then - func_show_eval '${RM}r "$gentop"' - fi - - # Create an invalid libtool object if no PIC, so that we don't - # accidentally link it into a program. - # $show "echo timestamp > $libobj" - # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? - exit $EXIT_SUCCESS - } - - if test -n "$pic_flag" || test default != "$pic_mode"; then - # Only do commands if we really have different PIC objects. - reload_objs="$libobjs $reload_conv_objs" - output=$libobj - func_execute_cmds "$reload_cmds" 'exit $?' - fi - - if test -n "$gentop"; then - func_show_eval '${RM}r "$gentop"' - fi - - exit $EXIT_SUCCESS - ;; - - prog) - case $host in - *cygwin*) func_stripname '' '.exe' "$output" - output=$func_stripname_result.exe;; - esac - test -n "$vinfo" && \ - func_warning "'-version-info' is ignored for programs" - - test -n "$release" && \ - func_warning "'-release' is ignored for programs" - - $preload \ - && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \ - && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support." - - case $host in - *-*-rhapsody* | *-*-darwin1.[012]) - # On Rhapsody replace the C library is the System framework - compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` - finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` - ;; - esac - - case $host in - *-*-darwin*) - # Don't allow lazy linking, it breaks C++ global constructors - # But is supposedly fixed on 10.4 or later (yay!). - if test CXX = "$tagname"; then - case ${MACOSX_DEPLOYMENT_TARGET-10.0} in - 10.[0123]) - func_append compile_command " $wl-bind_at_load" - func_append finalize_command " $wl-bind_at_load" - ;; - esac - fi - # Time to change all our "foo.ltframework" stuff back to "-framework foo" - compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - ;; - esac - - - # move library search paths that coincide with paths to not yet - # installed libraries to the beginning of the library search list - new_libs= - for path in $notinst_path; do - case " $new_libs " in - *" -L$path/$objdir "*) ;; - *) - case " $compile_deplibs " in - *" -L$path/$objdir "*) - func_append new_libs " -L$path/$objdir" ;; - esac - ;; - esac - done - for deplib in $compile_deplibs; do - case $deplib in - -L*) - case " $new_libs " in - *" $deplib "*) ;; - *) func_append new_libs " $deplib" ;; - esac - ;; - *) func_append new_libs " $deplib" ;; - esac - done - compile_deplibs=$new_libs - - - func_append compile_command " $compile_deplibs" - func_append finalize_command " $finalize_deplibs" - - if test -n "$rpath$xrpath"; then - # If the user specified any rpath flags, then add them. - for libdir in $rpath $xrpath; do - # This is the magic to use -rpath. - case "$finalize_rpath " in - *" $libdir "*) ;; - *) func_append finalize_rpath " $libdir" ;; - esac - done - fi - - # Now hardcode the library paths - rpath= - hardcode_libdirs= - for libdir in $compile_rpath $finalize_rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs=$libdir - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - func_append rpath " $flag" - fi - elif test -n "$runpath_var"; then - case "$perm_rpath " in - *" $libdir "*) ;; - *) func_append perm_rpath " $libdir" ;; - esac - fi - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$libdir:"*) ;; - ::) dllsearchpath=$libdir;; - *) func_append dllsearchpath ":$libdir";; - esac - case :$dllsearchpath: in - *":$testbindir:"*) ;; - ::) dllsearchpath=$testbindir;; - *) func_append dllsearchpath ":$testbindir";; - esac - ;; - esac - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir=$hardcode_libdirs - eval rpath=\" $hardcode_libdir_flag_spec\" - fi - compile_rpath=$rpath - - rpath= - hardcode_libdirs= - for libdir in $finalize_rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs=$libdir - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - func_append rpath " $flag" - fi - elif test -n "$runpath_var"; then - case "$finalize_perm_rpath " in - *" $libdir "*) ;; - *) func_append finalize_perm_rpath " $libdir" ;; - esac - fi - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir=$hardcode_libdirs - eval rpath=\" $hardcode_libdir_flag_spec\" - fi - finalize_rpath=$rpath - - if test -n "$libobjs" && test yes = "$build_old_libs"; then - # Transform all the library objects into standard objects. - compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` - finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` - fi - - func_generate_dlsyms "$outputname" "@PROGRAM@" false - - # template prelinking step - if test -n "$prelink_cmds"; then - func_execute_cmds "$prelink_cmds" 'exit $?' - fi - - wrappers_required=: - case $host in - *cegcc* | *mingw32ce*) - # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. - wrappers_required=false - ;; - *cygwin* | *mingw* ) - test yes = "$build_libtool_libs" || wrappers_required=false - ;; - *) - if test no = "$need_relink" || test yes != "$build_libtool_libs"; then - wrappers_required=false - fi - ;; - esac - $wrappers_required || { - # Replace the output file specification. - compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` - link_command=$compile_command$compile_rpath - - # We have no uninstalled library dependencies, so finalize right now. - exit_status=0 - func_show_eval "$link_command" 'exit_status=$?' - - if test -n "$postlink_cmds"; then - func_to_tool_file "$output" - postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` - func_execute_cmds "$postlink_cmds" 'exit $?' - fi - - # Delete the generated files. - if test -f "$output_objdir/${outputname}S.$objext"; then - func_show_eval '$RM "$output_objdir/${outputname}S.$objext"' - fi - - exit $exit_status - } - - if test -n "$compile_shlibpath$finalize_shlibpath"; then - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" - fi - if test -n "$finalize_shlibpath"; then - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" - fi - - compile_var= - finalize_var= - if test -n "$runpath_var"; then - if test -n "$perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $perm_rpath; do - func_append rpath "$dir:" - done - compile_var="$runpath_var=\"$rpath\$$runpath_var\" " - fi - if test -n "$finalize_perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $finalize_perm_rpath; do - func_append rpath "$dir:" - done - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " - fi - fi - - if test yes = "$no_install"; then - # We don't need to create a wrapper script. - link_command=$compile_var$compile_command$compile_rpath - # Replace the output file specification. - link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` - # Delete the old output file. - $opt_dry_run || $RM $output - # Link the executable and exit - func_show_eval "$link_command" 'exit $?' - - if test -n "$postlink_cmds"; then - func_to_tool_file "$output" - postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` - func_execute_cmds "$postlink_cmds" 'exit $?' - fi - - exit $EXIT_SUCCESS - fi - - case $hardcode_action,$fast_install in - relink,*) - # Fast installation is not supported - link_command=$compile_var$compile_command$compile_rpath - relink_command=$finalize_var$finalize_command$finalize_rpath - - func_warning "this platform does not like uninstalled shared libraries" - func_warning "'$output' will be relinked during installation" - ;; - *,yes) - link_command=$finalize_var$compile_command$finalize_rpath - relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` - ;; - *,no) - link_command=$compile_var$compile_command$compile_rpath - relink_command=$finalize_var$finalize_command$finalize_rpath - ;; - *,needless) - link_command=$finalize_var$compile_command$finalize_rpath - relink_command= - ;; - esac - - # Replace the output file specification. - link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` - - # Delete the old output files. - $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname - - func_show_eval "$link_command" 'exit $?' - - if test -n "$postlink_cmds"; then - func_to_tool_file "$output_objdir/$outputname" - postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` - func_execute_cmds "$postlink_cmds" 'exit $?' - fi - - # Now create the wrapper script. - func_verbose "creating $output" - - # Quote the relink command for shipping. - if test -n "$relink_command"; then - # Preserve any variables that may affect compiler behavior - for var in $variables_saved_for_relink; do - if eval test -z \"\${$var+set}\"; then - relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" - elif eval var_value=\$$var; test -z "$var_value"; then - relink_command="$var=; export $var; $relink_command" - else - func_quote_for_eval "$var_value" - relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" - fi - done - relink_command="(cd `pwd`; $relink_command)" - relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` - fi - - # Only actually do things if not in dry run mode. - $opt_dry_run || { - # win32 will think the script is a binary if it has - # a .exe suffix, so we strip it off here. - case $output in - *.exe) func_stripname '' '.exe' "$output" - output=$func_stripname_result ;; - esac - # test for cygwin because mv fails w/o .exe extensions - case $host in - *cygwin*) - exeext=.exe - func_stripname '' '.exe' "$outputname" - outputname=$func_stripname_result ;; - *) exeext= ;; - esac - case $host in - *cygwin* | *mingw* ) - func_dirname_and_basename "$output" "" "." - output_name=$func_basename_result - output_path=$func_dirname_result - cwrappersource=$output_path/$objdir/lt-$output_name.c - cwrapper=$output_path/$output_name.exe - $RM $cwrappersource $cwrapper - trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 - - func_emit_cwrapperexe_src > $cwrappersource - - # The wrapper executable is built using the $host compiler, - # because it contains $host paths and files. If cross- - # compiling, it, like the target executable, must be - # executed on the $host or under an emulation environment. - $opt_dry_run || { - $LTCC $LTCFLAGS -o $cwrapper $cwrappersource - $STRIP $cwrapper - } - - # Now, create the wrapper script for func_source use: - func_ltwrapper_scriptname $cwrapper - $RM $func_ltwrapper_scriptname_result - trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 - $opt_dry_run || { - # note: this script will not be executed, so do not chmod. - if test "x$build" = "x$host"; then - $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result - else - func_emit_wrapper no > $func_ltwrapper_scriptname_result - fi - } - ;; - * ) - $RM $output - trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 - - func_emit_wrapper no > $output - chmod +x $output - ;; - esac - } - exit $EXIT_SUCCESS - ;; - esac - - # See if we need to build an old-fashioned archive. - for oldlib in $oldlibs; do - - case $build_libtool_libs in - convenience) - oldobjs="$libobjs_save $symfileobj" - addlibs=$convenience - build_libtool_libs=no - ;; - module) - oldobjs=$libobjs_save - addlibs=$old_convenience - build_libtool_libs=no - ;; - *) - oldobjs="$old_deplibs $non_pic_objects" - $preload && test -f "$symfileobj" \ - && func_append oldobjs " $symfileobj" - addlibs=$old_convenience - ;; - esac - - if test -n "$addlibs"; then - gentop=$output_objdir/${outputname}x - func_append generated " $gentop" - - func_extract_archives $gentop $addlibs - func_append oldobjs " $func_extract_archives_result" - fi - - # Do each command in the archive commands. - if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then - cmds=$old_archive_from_new_cmds - else - - # Add any objects from preloaded convenience libraries - if test -n "$dlprefiles"; then - gentop=$output_objdir/${outputname}x - func_append generated " $gentop" - - func_extract_archives $gentop $dlprefiles - func_append oldobjs " $func_extract_archives_result" - fi - - # POSIX demands no paths to be encoded in archives. We have - # to avoid creating archives with duplicate basenames if we - # might have to extract them afterwards, e.g., when creating a - # static archive out of a convenience library, or when linking - # the entirety of a libtool archive into another (currently - # not supported by libtool). - if (for obj in $oldobjs - do - func_basename "$obj" - $ECHO "$func_basename_result" - done | sort | sort -uc >/dev/null 2>&1); then - : - else - echo "copying selected object files to avoid basename conflicts..." - gentop=$output_objdir/${outputname}x - func_append generated " $gentop" - func_mkdir_p "$gentop" - save_oldobjs=$oldobjs - oldobjs= - counter=1 - for obj in $save_oldobjs - do - func_basename "$obj" - objbase=$func_basename_result - case " $oldobjs " in - " ") oldobjs=$obj ;; - *[\ /]"$objbase "*) - while :; do - # Make sure we don't pick an alternate name that also - # overlaps. - newobj=lt$counter-$objbase - func_arith $counter + 1 - counter=$func_arith_result - case " $oldobjs " in - *[\ /]"$newobj "*) ;; - *) if test ! -f "$gentop/$newobj"; then break; fi ;; - esac - done - func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" - func_append oldobjs " $gentop/$newobj" - ;; - *) func_append oldobjs " $obj" ;; - esac - done - fi - func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 - tool_oldlib=$func_to_tool_file_result - eval cmds=\"$old_archive_cmds\" - - func_len " $cmds" - len=$func_len_result - if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then - cmds=$old_archive_cmds - elif test -n "$archiver_list_spec"; then - func_verbose "using command file archive linking..." - for obj in $oldobjs - do - func_to_tool_file "$obj" - $ECHO "$func_to_tool_file_result" - done > $output_objdir/$libname.libcmd - func_to_tool_file "$output_objdir/$libname.libcmd" - oldobjs=" $archiver_list_spec$func_to_tool_file_result" - cmds=$old_archive_cmds - else - # the command line is too long to link in one step, link in parts - func_verbose "using piecewise archive linking..." - save_RANLIB=$RANLIB - RANLIB=: - objlist= - concat_cmds= - save_oldobjs=$oldobjs - oldobjs= - # Is there a better way of finding the last object in the list? - for obj in $save_oldobjs - do - last_oldobj=$obj - done - eval test_cmds=\"$old_archive_cmds\" - func_len " $test_cmds" - len0=$func_len_result - len=$len0 - for obj in $save_oldobjs - do - func_len " $obj" - func_arith $len + $func_len_result - len=$func_arith_result - func_append objlist " $obj" - if test "$len" -lt "$max_cmd_len"; then - : - else - # the above command should be used before it gets too long - oldobjs=$objlist - if test "$obj" = "$last_oldobj"; then - RANLIB=$save_RANLIB - fi - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\$concat_cmds$old_archive_cmds\" - objlist= - len=$len0 - fi - done - RANLIB=$save_RANLIB - oldobjs=$objlist - if test -z "$oldobjs"; then - eval cmds=\"\$concat_cmds\" - else - eval cmds=\"\$concat_cmds~\$old_archive_cmds\" - fi - fi - fi - func_execute_cmds "$cmds" 'exit $?' - done - - test -n "$generated" && \ - func_show_eval "${RM}r$generated" - - # Now create the libtool archive. - case $output in - *.la) - old_library= - test yes = "$build_old_libs" && old_library=$libname.$libext - func_verbose "creating $output" - - # Preserve any variables that may affect compiler behavior - for var in $variables_saved_for_relink; do - if eval test -z \"\${$var+set}\"; then - relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" - elif eval var_value=\$$var; test -z "$var_value"; then - relink_command="$var=; export $var; $relink_command" - else - func_quote_for_eval "$var_value" - relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" - fi - done - # Quote the link command for shipping. - relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" - relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` - if test yes = "$hardcode_automatic"; then - relink_command= - fi - - # Only create the output if not a dry run. - $opt_dry_run || { - for installed in no yes; do - if test yes = "$installed"; then - if test -z "$install_libdir"; then - break - fi - output=$output_objdir/${outputname}i - # Replace all uninstalled libtool libraries with the installed ones - newdependency_libs= - for deplib in $dependency_libs; do - case $deplib in - *.la) - func_basename "$deplib" - name=$func_basename_result - func_resolve_sysroot "$deplib" - eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` - test -z "$libdir" && \ - func_fatal_error "'$deplib' is not a valid libtool archive" - func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" - ;; - -L*) - func_stripname -L '' "$deplib" - func_replace_sysroot "$func_stripname_result" - func_append newdependency_libs " -L$func_replace_sysroot_result" - ;; - -R*) - func_stripname -R '' "$deplib" - func_replace_sysroot "$func_stripname_result" - func_append newdependency_libs " -R$func_replace_sysroot_result" - ;; - *) func_append newdependency_libs " $deplib" ;; - esac - done - dependency_libs=$newdependency_libs - newdlfiles= - - for lib in $dlfiles; do - case $lib in - *.la) - func_basename "$lib" - name=$func_basename_result - eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` - test -z "$libdir" && \ - func_fatal_error "'$lib' is not a valid libtool archive" - func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" - ;; - *) func_append newdlfiles " $lib" ;; - esac - done - dlfiles=$newdlfiles - newdlprefiles= - for lib in $dlprefiles; do - case $lib in - *.la) - # Only pass preopened files to the pseudo-archive (for - # eventual linking with the app. that links it) if we - # didn't already link the preopened objects directly into - # the library: - func_basename "$lib" - name=$func_basename_result - eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` - test -z "$libdir" && \ - func_fatal_error "'$lib' is not a valid libtool archive" - func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" - ;; - esac - done - dlprefiles=$newdlprefiles - else - newdlfiles= - for lib in $dlfiles; do - case $lib in - [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; - *) abs=`pwd`"/$lib" ;; - esac - func_append newdlfiles " $abs" - done - dlfiles=$newdlfiles - newdlprefiles= - for lib in $dlprefiles; do - case $lib in - [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; - *) abs=`pwd`"/$lib" ;; - esac - func_append newdlprefiles " $abs" - done - dlprefiles=$newdlprefiles - fi - $RM $output - # place dlname in correct position for cygwin - # In fact, it would be nice if we could use this code for all target - # systems that can't hard-code library paths into their executables - # and that have no shared library path variable independent of PATH, - # but it turns out we can't easily determine that from inspecting - # libtool variables, so we have to hard-code the OSs to which it - # applies here; at the moment, that means platforms that use the PE - # object format with DLL files. See the long comment at the top of - # tests/bindir.at for full details. - tdlname=$dlname - case $host,$output,$installed,$module,$dlname in - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) - # If a -bindir argument was supplied, place the dll there. - if test -n "$bindir"; then - func_relative_path "$install_libdir" "$bindir" - tdlname=$func_relative_path_result/$dlname - else - # Otherwise fall back on heuristic. - tdlname=../bin/$dlname - fi - ;; - esac - $ECHO > $output "\ -# $outputname - a libtool library file -# Generated by $PROGRAM (GNU $PACKAGE) $VERSION -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='$tdlname' - -# Names of this library. -library_names='$library_names' - -# The name of the static archive. -old_library='$old_library' - -# Linker flags that cannot go in dependency_libs. -inherited_linker_flags='$new_inherited_linker_flags' - -# Libraries that this one depends upon. -dependency_libs='$dependency_libs' - -# Names of additional weak libraries provided by this library -weak_library_names='$weak_libs' - -# Version information for $libname. -current=$current -age=$age -revision=$revision - -# Is this an already installed library? -installed=$installed - -# Should we warn about portability when linking against -modules? -shouldnotlink=$module - -# Files to dlopen/dlpreopen -dlopen='$dlfiles' -dlpreopen='$dlprefiles' - -# Directory that this library needs to be installed in: -libdir='$install_libdir'" - if test no,yes = "$installed,$need_relink"; then - $ECHO >> $output "\ -relink_command=\"$relink_command\"" - fi - done - } - - # Do a symbolic link so that the libtool archive can be found in - # LD_LIBRARY_PATH before the program is installed. - func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' - ;; - esac - exit $EXIT_SUCCESS -} - -if test link = "$opt_mode" || test relink = "$opt_mode"; then - func_mode_link ${1+"$@"} -fi - - -# func_mode_uninstall arg... -func_mode_uninstall () -{ - $debug_cmd - - RM=$nonopt - files= - rmforce=false - exit_status=0 - - # This variable tells wrapper scripts just to set variables rather - # than running their programs. - libtool_install_magic=$magic - - for arg - do - case $arg in - -f) func_append RM " $arg"; rmforce=: ;; - -*) func_append RM " $arg" ;; - *) func_append files " $arg" ;; - esac - done - - test -z "$RM" && \ - func_fatal_help "you must specify an RM program" - - rmdirs= - - for file in $files; do - func_dirname "$file" "" "." - dir=$func_dirname_result - if test . = "$dir"; then - odir=$objdir - else - odir=$dir/$objdir - fi - func_basename "$file" - name=$func_basename_result - test uninstall = "$opt_mode" && odir=$dir - - # Remember odir for removal later, being careful to avoid duplicates - if test clean = "$opt_mode"; then - case " $rmdirs " in - *" $odir "*) ;; - *) func_append rmdirs " $odir" ;; - esac - fi - - # Don't error if the file doesn't exist and rm -f was used. - if { test -L "$file"; } >/dev/null 2>&1 || - { test -h "$file"; } >/dev/null 2>&1 || - test -f "$file"; then - : - elif test -d "$file"; then - exit_status=1 - continue - elif $rmforce; then - continue - fi - - rmfiles=$file - - case $name in - *.la) - # Possibly a libtool archive, so verify it. - if func_lalib_p "$file"; then - func_source $dir/$name - - # Delete the libtool libraries and symlinks. - for n in $library_names; do - func_append rmfiles " $odir/$n" - done - test -n "$old_library" && func_append rmfiles " $odir/$old_library" - - case $opt_mode in - clean) - case " $library_names " in - *" $dlname "*) ;; - *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; - esac - test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" - ;; - uninstall) - if test -n "$library_names"; then - # Do each command in the postuninstall commands. - func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1' - fi - - if test -n "$old_library"; then - # Do each command in the old_postuninstall commands. - func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1' - fi - # FIXME: should reinstall the best remaining shared library. - ;; - esac - fi - ;; - - *.lo) - # Possibly a libtool object, so verify it. - if func_lalib_p "$file"; then - - # Read the .lo file - func_source $dir/$name - - # Add PIC object to the list of files to remove. - if test -n "$pic_object" && test none != "$pic_object"; then - func_append rmfiles " $dir/$pic_object" - fi - - # Add non-PIC object to the list of files to remove. - if test -n "$non_pic_object" && test none != "$non_pic_object"; then - func_append rmfiles " $dir/$non_pic_object" - fi - fi - ;; - - *) - if test clean = "$opt_mode"; then - noexename=$name - case $file in - *.exe) - func_stripname '' '.exe' "$file" - file=$func_stripname_result - func_stripname '' '.exe' "$name" - noexename=$func_stripname_result - # $file with .exe has already been added to rmfiles, - # add $file without .exe - func_append rmfiles " $file" - ;; - esac - # Do a test to see if this is a libtool program. - if func_ltwrapper_p "$file"; then - if func_ltwrapper_executable_p "$file"; then - func_ltwrapper_scriptname "$file" - relink_command= - func_source $func_ltwrapper_scriptname_result - func_append rmfiles " $func_ltwrapper_scriptname_result" - else - relink_command= - func_source $dir/$noexename - fi - - # note $name still contains .exe if it was in $file originally - # as does the version of $file that was added into $rmfiles - func_append rmfiles " $odir/$name $odir/${name}S.$objext" - if test yes = "$fast_install" && test -n "$relink_command"; then - func_append rmfiles " $odir/lt-$name" - fi - if test "X$noexename" != "X$name"; then - func_append rmfiles " $odir/lt-$noexename.c" - fi - fi - fi - ;; - esac - func_show_eval "$RM $rmfiles" 'exit_status=1' - done - - # Try to remove the $objdir's in the directories where we deleted files - for dir in $rmdirs; do - if test -d "$dir"; then - func_show_eval "rmdir $dir >/dev/null 2>&1" - fi - done - - exit $exit_status -} - -if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then - func_mode_uninstall ${1+"$@"} -fi - -test -z "$opt_mode" && { - help=$generic_help - func_fatal_help "you must specify a MODE" -} - -test -z "$exec_cmd" && \ - func_fatal_help "invalid operation mode '$opt_mode'" - -if test -n "$exec_cmd"; then - eval exec "$exec_cmd" - exit $EXIT_FAILURE -fi - -exit $exit_status - - -# The TAGs below are defined such that we never get into a situation -# where we disable both kinds of libraries. Given conflicting -# choices, we go for a static library, that is the most portable, -# since we can't tell whether shared libraries were disabled because -# the user asked for that or because the platform doesn't support -# them. This is particularly important on AIX, because we don't -# support having both static and shared libraries enabled at the same -# time on that platform, so we default to a shared-only configuration. -# If a disable-shared tag is given, we'll fallback to a static-only -# configuration. But we'll never go from static-only to shared-only. - -# ### BEGIN LIBTOOL TAG CONFIG: disable-shared -build_libtool_libs=no -build_old_libs=yes -# ### END LIBTOOL TAG CONFIG: disable-shared - -# ### BEGIN LIBTOOL TAG CONFIG: disable-static -build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` -# ### END LIBTOOL TAG CONFIG: disable-static - -# Local Variables: -# mode:shell-script -# sh-indentation:2 -# End: diff --git a/build-aux/meson/postinstall.py b/build-aux/meson/postinstall.py new file mode 100755 index 0000000..6a3ea97 --- /dev/null +++ b/build-aux/meson/postinstall.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 + +from os import environ, path +from subprocess import call + +prefix = environ.get('MESON_INSTALL_PREFIX', '/usr/local') +datadir = path.join(prefix, 'share') +destdir = environ.get('DESTDIR', '') + +# Package managers set this so we don't need to run +if not destdir: + print('Updating icon cache...') + call(['gtk-update-icon-cache', '-qtf', path.join(datadir, 'icons', 'hicolor')]) + + print('Updating desktop database...') + call(['update-desktop-database', '-q', path.join(datadir, 'applications')]) + + print('Compiling GSettings schemas...') + call(['glib-compile-schemas', path.join(datadir, 'glib-2.0', 'schemas')]) + + diff --git a/build-aux/missing b/build-aux/missing deleted file mode 100755 index f62bbae..0000000 --- a/build-aux/missing +++ /dev/null @@ -1,215 +0,0 @@ -#! /bin/sh -# Common wrapper for a few potentially missing GNU programs. - -scriptversion=2013-10-28.13; # UTC - -# Copyright (C) 1996-2014 Free Software Foundation, Inc. -# Originally written by Fran,cois Pinard , 1996. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -if test $# -eq 0; then - echo 1>&2 "Try '$0 --help' for more information" - exit 1 -fi - -case $1 in - - --is-lightweight) - # Used by our autoconf macros to check whether the available missing - # script is modern enough. - exit 0 - ;; - - --run) - # Back-compat with the calling convention used by older automake. - shift - ;; - - -h|--h|--he|--hel|--help) - echo "\ -$0 [OPTION]... PROGRAM [ARGUMENT]... - -Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due -to PROGRAM being missing or too old. - -Options: - -h, --help display this help and exit - -v, --version output version information and exit - -Supported PROGRAM values: - aclocal autoconf autoheader autom4te automake makeinfo - bison yacc flex lex help2man - -Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and -'g' are ignored when checking the name. - -Send bug reports to ." - exit $? - ;; - - -v|--v|--ve|--ver|--vers|--versi|--versio|--version) - echo "missing $scriptversion (GNU Automake)" - exit $? - ;; - - -*) - echo 1>&2 "$0: unknown '$1' option" - echo 1>&2 "Try '$0 --help' for more information" - exit 1 - ;; - -esac - -# Run the given program, remember its exit status. -"$@"; st=$? - -# If it succeeded, we are done. -test $st -eq 0 && exit 0 - -# Also exit now if we it failed (or wasn't found), and '--version' was -# passed; such an option is passed most likely to detect whether the -# program is present and works. -case $2 in --version|--help) exit $st;; esac - -# Exit code 63 means version mismatch. This often happens when the user -# tries to use an ancient version of a tool on a file that requires a -# minimum version. -if test $st -eq 63; then - msg="probably too old" -elif test $st -eq 127; then - # Program was missing. - msg="missing on your system" -else - # Program was found and executed, but failed. Give up. - exit $st -fi - -perl_URL=http://www.perl.org/ -flex_URL=http://flex.sourceforge.net/ -gnu_software_URL=http://www.gnu.org/software - -program_details () -{ - case $1 in - aclocal|automake) - echo "The '$1' program is part of the GNU Automake package:" - echo "<$gnu_software_URL/automake>" - echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" - echo "<$gnu_software_URL/autoconf>" - echo "<$gnu_software_URL/m4/>" - echo "<$perl_URL>" - ;; - autoconf|autom4te|autoheader) - echo "The '$1' program is part of the GNU Autoconf package:" - echo "<$gnu_software_URL/autoconf/>" - echo "It also requires GNU m4 and Perl in order to run:" - echo "<$gnu_software_URL/m4/>" - echo "<$perl_URL>" - ;; - esac -} - -give_advice () -{ - # Normalize program name to check for. - normalized_program=`echo "$1" | sed ' - s/^gnu-//; t - s/^gnu//; t - s/^g//; t'` - - printf '%s\n' "'$1' is $msg." - - configure_deps="'configure.ac' or m4 files included by 'configure.ac'" - case $normalized_program in - autoconf*) - echo "You should only need it if you modified 'configure.ac'," - echo "or m4 files included by it." - program_details 'autoconf' - ;; - autoheader*) - echo "You should only need it if you modified 'acconfig.h' or" - echo "$configure_deps." - program_details 'autoheader' - ;; - automake*) - echo "You should only need it if you modified 'Makefile.am' or" - echo "$configure_deps." - program_details 'automake' - ;; - aclocal*) - echo "You should only need it if you modified 'acinclude.m4' or" - echo "$configure_deps." - program_details 'aclocal' - ;; - autom4te*) - echo "You might have modified some maintainer files that require" - echo "the 'autom4te' program to be rebuilt." - program_details 'autom4te' - ;; - bison*|yacc*) - echo "You should only need it if you modified a '.y' file." - echo "You may want to install the GNU Bison package:" - echo "<$gnu_software_URL/bison/>" - ;; - lex*|flex*) - echo "You should only need it if you modified a '.l' file." - echo "You may want to install the Fast Lexical Analyzer package:" - echo "<$flex_URL>" - ;; - help2man*) - echo "You should only need it if you modified a dependency" \ - "of a man page." - echo "You may want to install the GNU Help2man package:" - echo "<$gnu_software_URL/help2man/>" - ;; - makeinfo*) - echo "You should only need it if you modified a '.texi' file, or" - echo "any other file indirectly affecting the aspect of the manual." - echo "You might want to install the Texinfo package:" - echo "<$gnu_software_URL/texinfo/>" - echo "The spurious makeinfo call might also be the consequence of" - echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" - echo "want to install GNU make:" - echo "<$gnu_software_URL/make/>" - ;; - *) - echo "You might have modified some files without having the proper" - echo "tools for further handling them. Check the 'README' file, it" - echo "often tells you about the needed prerequisites for installing" - echo "this package. You may also peek at any GNU archive site, in" - echo "case some other package contains this missing '$1' program." - ;; - esac -} - -give_advice "$1" | sed -e '1s/^/WARNING: /' \ - -e '2,$s/^/ /' >&2 - -# Propagate the correct exit status (expected to be 127 for a program -# not found, 63 for a program that failed due to version mismatch). -exit $st - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End: diff --git a/common.am b/common.am deleted file mode 100644 index da05cba..0000000 --- a/common.am +++ /dev/null @@ -1,22 +0,0 @@ -# --enable-checking needs to come first to not trigger -# https://debbugs.gnu.org/cgi/bugreport.cgi?bug=18734 -COMMON_VALAFLAGS = \ - --enable-checking --target-glib=2.40 --thread --fatal-warnings \ - --enable-experimental --enable-deprecated - -COMMON_CFLAGS = \ - -I$(top_srcdir)/vapi \ - -D_PREFIX='"$(prefix)"' \ - -Wno-incompatible-pointer-types -Wno-discarded-qualifiers \ - -D_VERSION='"$(VERSION)"' \ - -DGETTEXT_PACKAGE='"$(GETTEXT_PACKAGE)"' \ - -D_LANG_SUPPORT_DIR='"$(prefix)/share/locale"' \ - -D_LIBEXECDIR='"$(libexecdir)"' \ - -D_LIB='"$(libdir)"' \ - -Wno-incompatible-pointer-types \ - -Wno-discarded-qualifiers - -if IS_GITVERSION -COMMON_CFLAGS += -D_GIT_VERSION='"@GITVER@"' -COMMON_VALAFLAGS += --define=_GITVERSION -endif diff --git a/config.h.in b/config.h.in deleted file mode 100644 index 24f46a9..0000000 --- a/config.h.in +++ /dev/null @@ -1,86 +0,0 @@ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* Define to 1 if translation of program messages to the user's native - language is requested. */ -#undef ENABLE_NLS - -/* GETTEXT package name */ -#undef GETTEXT_PACKAGE - -/* Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the - CoreFoundation framework. */ -#undef HAVE_CFLOCALECOPYCURRENT - -/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in - the CoreFoundation framework. */ -#undef HAVE_CFPREFERENCESCOPYAPPVALUE - -/* Define if the GNU dcgettext() function is already present or preinstalled. - */ -#undef HAVE_DCGETTEXT - -/* Define to 1 if you have the header file. */ -#undef HAVE_DLFCN_H - -/* Define if the GNU gettext() function is already present or preinstalled. */ -#undef HAVE_GETTEXT - -/* Define if you have the iconv() function and it works. */ -#undef HAVE_ICONV - -/* Define to 1 if you have the header file. */ -#undef HAVE_INTTYPES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_MEMORY_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDLIB_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRINGS_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRING_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_UNISTD_H - -/* Define to the sub-directory where libtool stores uninstalled libraries. */ -#undef LT_OBJDIR - -/* Name of package */ -#undef PACKAGE - -/* Define to the address where bug reports for this package should be sent. */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the home page for this package. */ -#undef PACKAGE_URL - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Version number of package */ -#undef VERSION diff --git a/configure b/configure deleted file mode 100755 index 35254d5..0000000 --- a/configure +++ /dev/null @@ -1,19681 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for shotwell 0.28.4. -# -# Report bugs to . -# -# -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. -# -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi - - -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -as_myself= -case $0 in #(( - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break - done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# Use a proper internal environment variable to ensure we don't fall - # into an infinite loop, continuously re-executing ourselves. - if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then - _as_can_reexec=no; export _as_can_reexec; - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in # (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_exit 255 - fi - # We don't want this to propagate to other subprocesses. - { _as_can_reexec=; unset _as_can_reexec;} -if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which - # is contrary to our usage. Disable this feature. - alias -g '\${1+\"\$@\"}'='\"\$@\"' - setopt NO_GLOB_SUBST -else - case \`(set -o) 2>/dev/null\` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi -" - as_required="as_fn_return () { (exit \$1); } -as_fn_success () { as_fn_return 0; } -as_fn_failure () { as_fn_return 1; } -as_fn_ret_success () { return 0; } -as_fn_ret_failure () { return 1; } - -exitcode=0 -as_fn_success || { exitcode=1; echo as_fn_success failed.; } -as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } -as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } -as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : - -else - exitcode=1; echo positional parameters were not saved. -fi -test x\$exitcode = x0 || exit 1 -test -x / || exit 1" - as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO - as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO - eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && - test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 -test \$(( 1 + 1 )) = 2 || exit 1 - - test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( - ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' - ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO - ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO - PATH=/empty FPATH=/empty; export PATH FPATH - test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ - || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" - if (eval "$as_required") 2>/dev/null; then : - as_have_required=yes -else - as_have_required=no -fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : - -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -as_found=false -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - as_found=: - case $as_dir in #( - /*) - for as_base in sh bash ksh sh5; do - # Try only shells that exist, to save several forks. - as_shell=$as_dir/$as_base - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : - CONFIG_SHELL=$as_shell as_have_required=yes - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : - break 2 -fi -fi - done;; - esac - as_found=false -done -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : - CONFIG_SHELL=$SHELL as_have_required=yes -fi; } -IFS=$as_save_IFS - - - if test "x$CONFIG_SHELL" != x; then : - export CONFIG_SHELL - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in # (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -exit 255 -fi - - if test x$as_have_required = xno; then : - $as_echo "$0: This script requires a shell more modern than all" - $as_echo "$0: the shells that I found on your system." - if test x${ZSH_VERSION+set} = xset ; then - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" - $as_echo "$0: be upgraded to zsh 4.3.4 or later." - else - $as_echo "$0: Please tell bug-autoconf@gnu.org and https://bugzilla.gnome.org/enter_bug.cgi?product=shotwell -$0: about your system, including any error possibly output -$0: before this message. Then install a modern shell, or -$0: manually run the script under such a shell if you do -$0: have one." - fi - exit 1 -fi -fi -fi -SHELL=${CONFIG_SHELL-/bin/sh} -export SHELL -# Unset more variables known to interfere with behavior of common tools. -CLICOLOR_FORCE= GREP_OPTIONS= -unset CLICOLOR_FORCE GREP_OPTIONS - -## --------------------- ## -## M4sh Shell Functions. ## -## --------------------- ## -# as_fn_unset VAR -# --------------- -# Portably unset VAR. -as_fn_unset () -{ - { eval $1=; unset $1;} -} -as_unset=as_fn_unset - -# as_fn_set_status STATUS -# ----------------------- -# Set $? to STATUS, without forking. -as_fn_set_status () -{ - return $1 -} # as_fn_set_status - -# as_fn_exit STATUS -# ----------------- -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. -as_fn_exit () -{ - set +e - as_fn_set_status $1 - exit $1 -} # as_fn_exit - -# as_fn_mkdir_p -# ------------- -# Create "$as_dir" as a directory, including parents if necessary. -as_fn_mkdir_p () -{ - - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || eval $as_mkdir_p || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" - - -} # as_fn_mkdir_p - -# as_fn_executable_p FILE -# ----------------------- -# Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} # as_fn_executable_p -# as_fn_append VAR VALUE -# ---------------------- -# Append the text in VALUE to the end of the definition contained in VAR. Take -# advantage of any shell optimizations that allow amortized linear growth over -# repeated appends, instead of the typical quadratic growth present in naive -# implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : - eval 'as_fn_append () - { - eval $1+=\$2 - }' -else - as_fn_append () - { - eval $1=\$$1\$2 - } -fi # as_fn_append - -# as_fn_arith ARG... -# ------------------ -# Perform arithmetic evaluation on the ARGs, and store the result in the -# global $as_val. Take advantage of shells that can avoid forks. The arguments -# must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : - eval 'as_fn_arith () - { - as_val=$(( $* )) - }' -else - as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } -fi # as_fn_arith - - -# as_fn_error STATUS ERROR [LINENO LOG_FD] -# ---------------------------------------- -# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are -# provided, also output the error to LOG_FD, referencing LINENO. Then exit the -# script with STATUS, using 1 if that was 0. -as_fn_error () -{ - as_status=$1; test $as_status -eq 0 && as_status=1 - if test "$4"; then - as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 - fi - $as_echo "$as_me: error: $2" >&2 - as_fn_exit $as_status -} # as_fn_error - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - - - as_lineno_1=$LINENO as_lineno_1a=$LINENO - as_lineno_2=$LINENO as_lineno_2a=$LINENO - eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && - test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { - # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } - - # If we had to re-execute with $CONFIG_SHELL, we're ensured to have - # already done that, so ensure we don't try to do so again and fall - # in an infinite loop. This has already happened in practice. - _as_can_reexec=no; export _as_can_reexec - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in #((((( --n*) - case `echo 'xy\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - xy) ECHO_C='\c';; - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null - ECHO_T=' ';; - esac;; -*) - ECHO_N='-n';; -esac - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -pR' - elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln - else - as_ln_s='cp -pR' - fi -else - as_ln_s='cp -pR' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p='mkdir -p "$as_dir"' -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -as_test_x='test -x' -as_executable_p=as_fn_executable_p - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - -as_awk_strverscmp=' - # Use only awk features that work with 7th edition Unix awk (1978). - # My, what an old awk you have, Mr. Solaris! - END { - while (length(v1) && length(v2)) { - # Set d1 to be the next thing to compare from v1, and likewise for d2. - # Normally this is a single character, but if v1 and v2 contain digits, - # compare them as integers and fractions as strverscmp does. - if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { - # Split v1 and v2 into their leading digit string components d1 and d2, - # and advance v1 and v2 past the leading digit strings. - for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue - for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue - d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) - d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) - if (d1 ~ /^0/) { - if (d2 ~ /^0/) { - # Compare two fractions. - while (d1 ~ /^0/ && d2 ~ /^0/) { - d1 = substr(d1, 2); len1-- - d2 = substr(d2, 2); len2-- - } - if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { - # The two components differ in length, and the common prefix - # contains only leading zeros. Consider the longer to be less. - d1 = -len1 - d2 = -len2 - } else { - # Otherwise, compare as strings. - d1 = "x" d1 - d2 = "x" d2 - } - } else { - # A fraction is less than an integer. - exit 1 - } - } else { - if (d2 ~ /^0/) { - # An integer is greater than a fraction. - exit 2 - } else { - # Compare two integers. - d1 += 0 - d2 += 0 - } - } - } else { - # The normal case, without worrying about digits. - d1 = substr(v1, 1, 1); v1 = substr(v1, 2) - d2 = substr(v2, 1, 1); v2 = substr(v2, 2) - } - if (d1 < d2) exit 1 - if (d1 > d2) exit 2 - } - # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), - # which mishandles some comparisons of empty strings to integers. - if (length(v2)) exit 1 - if (length(v1)) exit 2 - } -' -SHELL=${CONFIG_SHELL-/bin/sh} - - -test -n "$DJDIR" || exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= - -# Identity of this package. -PACKAGE_NAME='shotwell' -PACKAGE_TARNAME='shotwell' -PACKAGE_VERSION='0.28.4' -PACKAGE_STRING='shotwell 0.28.4' -PACKAGE_BUGREPORT='https://bugzilla.gnome.org/enter_bug.cgi?product=shotwell' -PACKAGE_URL='' - -ac_unique_file="NEWS" -gt_needs= -# Factoring default headers for most tests. -ac_includes_default="\ -#include -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include -#endif -#ifdef STDC_HEADERS -# include -# include -#else -# ifdef HAVE_STDLIB_H -# include -# endif -#endif -#ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include -# endif -# include -#endif -#ifdef HAVE_STRINGS_H -# include -#endif -#ifdef HAVE_INTTYPES_H -# include -#endif -#ifdef HAVE_STDINT_H -# include -#endif -#ifdef HAVE_UNISTD_H -# include -#endif" - -ac_subst_vars='am__EXEEXT_FALSE -am__EXEEXT_TRUE -LTLIBOBJS -LIBOBJS -GLIB_COMPILE_RESOURCES -APPSTREAM_XML_RULES -appstreamxmldir -APPSTREAM_UTIL -YELP_HELP_RULES -XMLLINT -ITSTOOL -HELP_DIR -YELP_LC_DIST -YELP_LC_MEDIA_LINKS -LT_SYS_LIBRARY_PATH -OTOOL64 -OTOOL -LIPO -NMEDIT -DSYMUTIL -MANIFEST_TOOL -RANLIB -ac_ct_AR -AR -DLLTOOL -OBJDUMP -LN_S -NM -ac_ct_DUMPBIN -DUMPBIN -LD -FGREP -LIBTOOL -HAVE_EXTRA_PLUGINS_FALSE -HAVE_EXTRA_PLUGINS_TRUE -HAVE_EXTRA_PLUGINS -PUBLISHER_VALAFLAGS -INSTALL_APPORT_HOOK_FALSE -INSTALL_APPORT_HOOK_TRUE -HAVE_UNITY_FALSE -HAVE_UNITY_TRUE -HAVE_UNITY -UNITY_VALAFLAGS -UNITY_LIBS -UNITY_CFLAGS -AUTHENTICATOR_PACKAGES -AUTHENTICATOR_LIBS -AUTHENTICATOR_CFLAGS -TRANSITIONS_LIBS -TRANSITIONS_CFLAGS -PUBLISHING_LIBS -PUBLISHING_CFLAGS -IMPORT_LIBS -IMPORT_CFLAGS -PLUGIN_LIBS -PLUGIN_CFLAGS -THUMBNAILER_LIBS -THUMBNAILER_CFLAGS -SHOTWELL_LIBS -SHOTWELL_CFLAGS -AUTHENTICATOR_UOA_FALSE -AUTHENTICATOR_UOA_TRUE -AUTHENTICATOR_GOA_FALSE -AUTHENTICATOR_GOA_TRUE -AUTHENTICATOR_SHOTWELL_FALSE -AUTHENTICATOR_SHOTWELL_TRUE -VALAFLAGS -GSETTINGS_RULES -GLIB_COMPILE_SCHEMAS -gsettingsschemadir -GSETTINGS_DISABLE_SCHEMAS_COMPILE -PKG_CONFIG_LIBDIR -PKG_CONFIG_PATH -PKG_CONFIG -VALAC -POSUB -LTLIBINTL -LIBINTL -INTLLIBS -LTLIBICONV -LIBICONV -INTL_MACOSX_LIBS -EGREP -GREP -CPP -am__fastdepCC_FALSE -am__fastdepCC_TRUE -CCDEPMODE -am__nodep -AMDEPBACKSLASH -AMDEP_FALSE -AMDEP_TRUE -am__quote -am__include -DEPDIR -OBJEXT -EXEEXT -ac_ct_CC -CPPFLAGS -LDFLAGS -CFLAGS -CC -XGETTEXT_EXTRA_OPTIONS -MSGMERGE -XGETTEXT_015 -XGETTEXT -GMSGFMT_015 -MSGFMT_015 -GMSGFMT -MSGFMT -GETTEXT_MACRO_VERSION -USE_NLS -SED -GETTEXT_PACKAGE -IS_NDEBUG_FALSE -IS_NDEBUG_TRUE -GENERATE_CHANGELOG_RULES -GIT -MAINT -MAINTAINER_MODE_FALSE -MAINTAINER_MODE_TRUE -am__untar -am__tar -AMTAR -am__leading_dot -SET_MAKE -AWK -mkdir_p -MKDIR_P -INSTALL_STRIP_PROGRAM -STRIP -install_sh -MAKEINFO -AUTOHEADER -AUTOMAKE -AUTOCONF -ACLOCAL -VERSION -PACKAGE -CYGPATH_W -am__isrc -INSTALL_DATA -INSTALL_SCRIPT -INSTALL_PROGRAM -AM_BACKSLASH -AM_DEFAULT_VERBOSITY -AM_DEFAULT_V -AM_V -IS_GITVERSION_FALSE -IS_GITVERSION_TRUE -GITVER -API_VERSION -MICRO_VERSION -MINOR_VERSION -MAJOR_VERSION -host_os -host_vendor -host_cpu -host -build_os -build_vendor -build_cpu -build -ACLOCAL_AMFLAGS -target_alias -host_alias -build_alias -LIBS -ECHO_T -ECHO_N -ECHO_C -DEFS -mandir -localedir -libdir -psdir -pdfdir -dvidir -htmldir -infodir -docdir -oldincludedir -includedir -runstatedir -localstatedir -sharedstatedir -sysconfdir -datadir -datarootdir -libexecdir -sbindir -bindir -program_transform_name -prefix -exec_prefix -PACKAGE_URL -PACKAGE_BUGREPORT -PACKAGE_STRING -PACKAGE_VERSION -PACKAGE_TARNAME -PACKAGE_NAME -PATH_SEPARATOR -SHELL' -ac_subst_files='' -ac_user_opts=' -enable_option_checking -enable_silent_rules -enable_maintainer_mode -enable_debug -enable_nls -enable_dependency_tracking -with_gnu_ld -enable_rpath -with_libiconv_prefix -with_libintl_prefix -enable_schemas_compile -with_authenticator -enable_unity_support -enable_apport_hook -enable_publishers -enable_extra_plugins -enable_shared -enable_static -with_pic -enable_fast_install -with_aix_soname -with_sysroot -enable_libtool_lock -with_help_dir -enable_appstream_util -' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS -CPP -PKG_CONFIG -PKG_CONFIG_PATH -PKG_CONFIG_LIBDIR -SHOTWELL_CFLAGS -SHOTWELL_LIBS -THUMBNAILER_CFLAGS -THUMBNAILER_LIBS -PLUGIN_CFLAGS -PLUGIN_LIBS -IMPORT_CFLAGS -IMPORT_LIBS -PUBLISHING_CFLAGS -PUBLISHING_LIBS -TRANSITIONS_CFLAGS -TRANSITIONS_LIBS -AUTHENTICATOR_CFLAGS -AUTHENTICATOR_LIBS -UNITY_CFLAGS -UNITY_LIBS -LT_SYS_LIBRARY_PATH -ITSTOOL -XMLLINT' - - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -ac_unrecognized_opts= -ac_unrecognized_sep= -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -runstatedir='${localstatedir}/run' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *=) ac_optarg= ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"enable_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval enable_$ac_useropt=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"enable_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval enable_$ac_useropt=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -runstatedir | --runstatedir | --runstatedi | --runstated \ - | --runstate | --runstat | --runsta | --runst | --runs \ - | --run | --ru | --r) - ac_prev=runstatedir ;; - -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ - | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ - | --run=* | --ru=* | --r=*) - runstatedir=$ac_optarg ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"with_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval with_$ac_useropt=\$ac_optarg ;; - - -without-* | --without-*) - ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"with_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval with_$ac_useropt=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) as_fn_error $? "unrecognized option: \`$ac_option' -Try \`$0 --help' for more information" - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - case $ac_envvar in #( - '' | [0-9]* | *[!_$as_cr_alnum]* ) - as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; - esac - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - as_fn_error $? "missing argument to $ac_option" -fi - -if test -n "$ac_unrecognized_opts"; then - case $enable_option_checking in - no) ;; - fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; - esac -fi - -# Check all directory arguments for consistency. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir runstatedir -do - eval ac_val=\$$ac_var - # Remove trailing slashes. - case $ac_val in - */ ) - ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` - eval $ac_var=\$ac_val;; - esac - # Be sure to have absolute directory names. - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - as_fn_error $? "working directory cannot be determined" -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - as_fn_error $? "pwd does not report name of working directory" - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$as_myself" || -$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_myself" : 'X\(//\)[^/]' \| \ - X"$as_myself" : 'X\(//\)$' \| \ - X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_myself" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures shotwell 0.28.4 to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking ...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/shotwell] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - case $ac_init_help in - short | recursive ) echo "Configuration of shotwell 0.28.4:";; - esac - cat <<\_ACEOF - -Optional Features: - --disable-option-checking ignore unrecognized --enable/--with options - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-silent-rules less verbose build output (undo: "make V=1") - --disable-silent-rules verbose build output (undo: "make V=0") - --disable-maintainer-mode - disable make rules and dependencies not useful (and - sometimes confusing) to the casual installer - --enable-debug compile with debugging, - , enable_debug=no - --disable-nls do not use Native Language Support - --enable-dependency-tracking - do not reject slow dependency extractors - --disable-dependency-tracking - speeds up one-time build - --disable-rpath do not hardcode runtime library paths - --disable-schemas-compile - Disable regeneration of gschemas.compiled on install - --enable-unity-support Enable Ubuntu Unity integration - --enable-apport-hook Install apport hook - --enable-publishers=[list-of-publishers or all] - A comma-separated list of publishers from - facebook, flickr, picasa, piwigo, youtube, gallery3, tumblr - --disable-extra-plugins Enable building and installation of extra publishing - plugins - --enable-shared[=PKGS] build shared libraries [default=yes] - --enable-static[=PKGS] build static libraries [default=yes] - --enable-fast-install[=PKGS] - optimize for fast installation [default=yes] - --disable-libtool-lock avoid locking (might break parallel builds) - --disable-appstream-util - Disable validating AppData XML files during check - phase - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-gnu-ld assume the C compiler uses GNU ld [default=no] - --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib - --without-libiconv-prefix don't search for libiconv in includedir and libdir - --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib - --without-libintl-prefix don't search for libintl in includedir and libdir - --with-authenticator=[shotwell] - Which authentication back-end to use (defaul: shotwell) - - --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use - both] - --with-aix-soname=aix|svr4|both - shared library versioning (aka "SONAME") variant to - provide on AIX, [default=aix]. - --with-gnu-ld assume the C compiler uses GNU ld [default=no] - --with-sysroot[=DIR] Search for dependent libraries within DIR (or the - compiler's sysroot if not specified). - --with-help-dir=DIR path where help files are installed - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - CPP C preprocessor - PKG_CONFIG path to pkg-config utility - PKG_CONFIG_PATH - directories to add to pkg-config's search path - PKG_CONFIG_LIBDIR - path overriding pkg-config's built-in search path - SHOTWELL_CFLAGS - C compiler flags for SHOTWELL, overriding pkg-config - SHOTWELL_LIBS - linker flags for SHOTWELL, overriding pkg-config - THUMBNAILER_CFLAGS - C compiler flags for THUMBNAILER, overriding pkg-config - THUMBNAILER_LIBS - linker flags for THUMBNAILER, overriding pkg-config - PLUGIN_CFLAGS - C compiler flags for PLUGIN, overriding pkg-config - PLUGIN_LIBS linker flags for PLUGIN, overriding pkg-config - IMPORT_CFLAGS - C compiler flags for IMPORT, overriding pkg-config - IMPORT_LIBS linker flags for IMPORT, overriding pkg-config - PUBLISHING_CFLAGS - C compiler flags for PUBLISHING, overriding pkg-config - PUBLISHING_LIBS - linker flags for PUBLISHING, overriding pkg-config - TRANSITIONS_CFLAGS - C compiler flags for TRANSITIONS, overriding pkg-config - TRANSITIONS_LIBS - linker flags for TRANSITIONS, overriding pkg-config - AUTHENTICATOR_CFLAGS - C compiler flags for AUTHENTICATOR, overriding pkg-config - AUTHENTICATOR_LIBS - linker flags for AUTHENTICATOR, overriding pkg-config - UNITY_CFLAGS - C compiler flags for UNITY, overriding pkg-config - UNITY_LIBS linker flags for UNITY, overriding pkg-config - LT_SYS_LIBRARY_PATH - User-defined run-time library search path. - ITSTOOL Path to the `itstool` command - XMLLINT Path to the `xmllint` command - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -Report bugs to . -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || - { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || - continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -shotwell configure 0.28.4 -generated by GNU Autoconf 2.69 - -Copyright (C) 2012 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi - -## ------------------------ ## -## Autoconf initialization. ## -## ------------------------ ## - -# ac_fn_c_try_compile LINENO -# -------------------------- -# Try to compile conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_compile () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext - if { { ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compile") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_compile - -# ac_fn_c_try_cpp LINENO -# ---------------------- -# Try to preprocess conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_cpp () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } > conftest.i && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_cpp - -# ac_fn_c_try_link LINENO -# ----------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_link () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - test -x conftest$ac_exeext - }; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would - # interfere with the next link command; also delete a directory that is - # left behind by Apple's compiler. We do this before executing the actions. - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_link - -# ac_fn_c_try_run LINENO -# ---------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes -# that executables *can* be run. -ac_fn_c_try_run () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' - { { case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then : - ac_retval=0 -else - $as_echo "$as_me: program exited with status $ac_status" >&5 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=$ac_status -fi - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_run - -# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES -# ------------------------------------------------------- -# Tests whether HEADER exists and can be compiled using the include files in -# INCLUDES, setting the cache variable VAR accordingly. -ac_fn_c_check_header_compile () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -#include <$2> -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - eval "$3=yes" -else - eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_header_compile - -# ac_fn_c_check_func LINENO FUNC VAR -# ---------------------------------- -# Tests whether FUNC exists, setting the cache variable VAR accordingly -ac_fn_c_check_func () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -/* Define $2 to an innocuous variant, in case declares $2. - For example, HP-UX 11i declares gettimeofday. */ -#define $2 innocuous_$2 - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $2 - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $2 (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$2 || defined __stub___$2 -choke me -#endif - -int -main () -{ -return $2 (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - eval "$3=yes" -else - eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_func -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by shotwell $as_me 0.28.4, which was -generated by GNU Autoconf 2.69. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" - done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; - 2) - as_fn_append ac_configure_args1 " '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - as_fn_append ac_configure_args " '$ac_arg'" - ;; - esac - done -done -{ ac_configure_args0=; unset ac_configure_args0;} -{ ac_configure_args1=; unset ac_configure_args1;} - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - $as_echo "## ---------------- ## -## Cache variables. ## -## ---------------- ##" - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) { eval $ac_var=; unset $ac_var;} ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - $as_echo "## ----------------- ## -## Output variables. ## -## ----------------- ##" - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - $as_echo "## ------------------- ## -## File substitutions. ## -## ------------------- ##" - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - $as_echo "## ----------- ## -## confdefs.h. ## -## ----------- ##" - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -$as_echo "/* confdefs.h */" > confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_URL "$PACKAGE_URL" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer an explicitly selected file to automatically selected ones. -ac_site_file1=NONE -ac_site_file2=NONE -if test -n "$CONFIG_SITE"; then - # We do not want a PATH search for config.site. - case $CONFIG_SITE in #(( - -*) ac_site_file1=./$CONFIG_SITE;; - */*) ac_site_file1=$CONFIG_SITE;; - *) ac_site_file1=./$CONFIG_SITE;; - esac -elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site -else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site -fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" -do - test "x$ac_site_file" = xNONE && continue - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 -$as_echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" \ - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special files - # actually), so we avoid doing that. DJGPP emulates it as a regular file. - if test /dev/null != "$cache_file" && test -f "$cache_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 -$as_echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 -$as_echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -gt_needs="$gt_needs " -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - # differences in whitespace do not lead to failure. - ac_old_val_w=`echo x $ac_old_val` - ac_new_val_w=`echo x $ac_new_val` - if test "$ac_old_val_w" != "$ac_new_val_w"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - ac_cache_corrupted=: - else - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} - eval $ac_var=\$ac_old_val - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) as_fn_append ac_configure_args " '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 -fi -## -------------------- ## -## Main body of script. ## -## -------------------- ## - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -ac_config_headers="$ac_config_headers config.h" - - - -ac_aux_dir= -for ac_dir in build-aux "$srcdir"/build-aux; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -ACLOCAL_AMFLAGS="-I m4" - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -$as_echo_n "checking build system type... " >&6; } -if ${ac_cv_build+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -$as_echo "$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -$as_echo_n "checking host system type... " >&6; } -if ${ac_cv_host+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -$as_echo "$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - - -MAJOR_VERSION=0 - -MINOR_VERSION=28 - -MICRO_VERSION=4 - -API_VERSION=0 - - -GITVER=921ff14cdaf58f804ab1f5a2f9abd15ee5ffa19c - - - if test "x$GITVER" != "x"; then - IS_GITVERSION_TRUE= - IS_GITVERSION_FALSE='#' -else - IS_GITVERSION_TRUE='#' - IS_GITVERSION_FALSE= -fi - - -# Check whether --enable-silent-rules was given. -if test "${enable_silent_rules+set}" = set; then : - enableval=$enable_silent_rules; -fi - -case $enable_silent_rules in # ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=0;; -esac -am_make=${MAKE-make} -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 -$as_echo_n "checking whether $am_make supports nested variables... " >&6; } -if ${am_cv_make_support_nested_variables+:} false; then : - $as_echo_n "(cached) " >&6 -else - if $as_echo 'TRUE=$(BAR$(V)) -BAR0=false -BAR1=true -V=1 -am__doit: - @$(TRUE) -.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then - am_cv_make_support_nested_variables=yes -else - am_cv_make_support_nested_variables=no -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 -$as_echo "$am_cv_make_support_nested_variables" >&6; } -if test $am_cv_make_support_nested_variables = yes; then - AM_V='$(V)' - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' -else - AM_V=$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY -fi -AM_BACKSLASH='\' - -am__api_version='1.15' - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -# Reject install programs that cannot install multiple files. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if ${ac_cv_path_install+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in #(( - ./ | .// | /[cC]/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - rm -rf conftest.one conftest.two conftest.dir - echo one > conftest.one - echo two > conftest.two - mkdir conftest.dir - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && - test -s conftest.one && test -s conftest.two && - test -s conftest.dir/conftest.one && - test -s conftest.dir/conftest.two - then - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - fi - done - done - ;; -esac - - done -IFS=$as_save_IFS - -rm -rf conftest.one conftest.two conftest.dir - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 -$as_echo_n "checking whether build environment is sane... " >&6; } -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' -' -case `pwd` in - *[\\\"\#\$\&\'\`$am_lf]*) - as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; -esac -case $srcdir in - *[\\\"\#\$\&\'\`$am_lf\ \ ]*) - as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; -esac - -# Do 'set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - as_fn_error $? "ls -t appears to fail. Make sure there is not a broken - alias in your environment" "$LINENO" 5 - fi - if test "$2" = conftest.file || test $am_try -eq 2; then - break - fi - # Just in case. - sleep 1 - am_has_slept=yes - done - test "$2" = conftest.file - ) -then - # Ok. - : -else - as_fn_error $? "newly created file is older than distributed files! -Check your system clock" "$LINENO" 5 -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -# If we didn't sleep, we still need to ensure time stamps of config.status and -# generated files are strictly newer. -am_sleep_pid= -if grep 'slept: no' conftest.file >/dev/null 2>&1; then - ( sleep 1 ) & - am_sleep_pid=$! -fi - -rm -f conftest.file - -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. -# By default was `s,x,x', remove it if useless. -ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' -program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` - -# Expand $ac_aux_dir to an absolute path. -am_aux_dir=`cd "$ac_aux_dir" && pwd` - -if test x"${MISSING+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac -fi -# Use eval to expand $SHELL -if eval "$MISSING --is-lightweight"; then - am_missing_run="$MISSING " -else - am_missing_run= - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 -$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} -fi - -if test x"${install_sh+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; - *) - install_sh="\${SHELL} $am_aux_dir/install-sh" - esac -fi - -# Installed binaries are usually stripped using 'strip' when the user -# run "make install-strip". However 'strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the 'STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_STRIP="strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 -$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } -if test -z "$MKDIR_P"; then - if ${ac_cv_path_mkdir+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done - done -IFS=$as_save_IFS - -fi - - test -d ./--version && rmdir ./--version - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - MKDIR_P="$ac_install_sh -d" - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 -$as_echo "$MKDIR_P" >&6; } - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AWK+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_AWK="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 -$as_echo "$AWK" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } -set x ${MAKE-make} -ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - SET_MAKE= -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE='shotwell' - VERSION='0.28.4' - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -# For better backward compatibility. To be removed once Automake 1.9.x -# dies out for good. For more background, see: -# -# -mkdir_p='$(MKDIR_P)' - -# We need awk for the "check" target (and possibly the TAP driver). The -# system "awk" is bad on some platforms. -# Always define AMTAR for backward compatibility. Yes, it's still used -# in the wild :-( We should find a proper way to deprecate it ... -AMTAR='$${TAR-tar}' - - -# We'll loop over all known methods to create a tar archive until one works. -_am_tools='gnutar plaintar pax cpio none' - -# The POSIX 1988 'ustar' format is defined with fixed-size fields. - # There is notably a 21 bits limit for the UID and the GID. In fact, - # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 - # and bug#13588). - am_max_uid=2097151 # 2^21 - 1 - am_max_gid=$am_max_uid - # The $UID and $GID variables are not portable, so we need to resort - # to the POSIX-mandated id(1) utility. Errors in the 'id' calls - # below are definitely unexpected, so allow the users to see them - # (that is, avoid stderr redirection). - am_uid=`id -u || echo unknown` - am_gid=`id -g || echo unknown` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 -$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } - if test $am_uid -le $am_max_uid; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - _am_tools=none - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 -$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } - if test $am_gid -le $am_max_gid; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - _am_tools=none - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 -$as_echo_n "checking how to create a ustar tar archive... " >&6; } - - # Go ahead even if we have the value already cached. We do so because we - # need to set the values for the 'am__tar' and 'am__untar' variables. - _am_tools=${am_cv_prog_tar_ustar-$_am_tools} - - for _am_tool in $_am_tools; do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; do - { echo "$as_me:$LINENO: $_am_tar --version" >&5 - ($_am_tar --version) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && break - done - am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x ustar -w "$$tardir"' - am__tar_='pax -L -x ustar -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H ustar -L' - am__tar_='find "$tardir" -print | cpio -o -H ustar -L' - am__untar='cpio -i -H ustar -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_ustar}" && break - - # tar/untar a dummy directory, and stop if the command works. - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 - (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - rm -rf conftest.dir - if test -s conftest.tar; then - { echo "$as_me:$LINENO: $am__untar &5 - ($am__untar &5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 - (cat conftest.dir/file) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - grep GrepMe conftest.dir/file >/dev/null 2>&1 && break - fi - done - rm -rf conftest.dir - - if ${am_cv_prog_tar_ustar+:} false; then : - $as_echo_n "(cached) " >&6 -else - am_cv_prog_tar_ustar=$_am_tool -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 -$as_echo "$am_cv_prog_tar_ustar" >&6; } - - - - - - -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! - -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contrary -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: - -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. - -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. - -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . - -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. - -END - as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 - fi -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 -$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } - # Check whether --enable-maintainer-mode was given. -if test "${enable_maintainer_mode+set}" = set; then : - enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval -else - USE_MAINTAINER_MODE=yes -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 -$as_echo "$USE_MAINTAINER_MODE" >&6; } - if test $USE_MAINTAINER_MODE = yes; then - MAINTAINER_MODE_TRUE= - MAINTAINER_MODE_FALSE='#' -else - MAINTAINER_MODE_TRUE='#' - MAINTAINER_MODE_FALSE= -fi - - MAINT=$MAINTAINER_MODE_TRUE - - - - # Find git, defaulting to the 'missing' script so the user gets a nice - # message if git is missing, rather than a plain 'command not found'. - # Extract the first word of "git", so it can be a program name with args. -set dummy git; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_GIT+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $GIT in - [\\/]* | ?:[\\/]*) - ac_cv_path_GIT="$GIT" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_path_GIT" && ac_cv_path_GIT="${am_missing_run}git" - ;; -esac -fi -GIT=$ac_cv_path_GIT -if test -n "$GIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 -$as_echo "$GIT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - - - # Build the ChangeLog rules. - -GENERATE_CHANGELOG_RULES=' -# Generate ChangeLog -# -# Optional: -# - CHANGELOG_START: git commit ID or tag name to output changelogs from -# (exclusive). (Default: include all commits) -# - CHANGELOG_GIT_FLAGS: General flags to pass to git-log when generating the -# ChangeLog. (Default: various) -# - CHANGELOG_GIT_DIR: .git directory to use. (Default: $(top_srcdir)/.git) - -# git-specific -CHANGELOG_GIT_FLAGS ?= --stat -M -C --name-status --no-color -CHANGELOG_GIT_DIR ?= $(top_srcdir)/.git - -ifeq ($(CHANGELOG_START),) -CHANGELOG_GIT_RANGE = -else -CHANGELOG_GIT_RANGE = $(CHANGELOG_START).. -endif - -# Generate a ChangeLog in $(top_distdir) -dist-ChangeLog: - $(AM_V_GEN)if $(GIT) \ - --git-dir=$(CHANGELOG_GIT_DIR) --work-tree=$(top_srcdir) log \ - $(CHANGELOG_GIT_FLAGS) $(CHANGELOG_GIT_RANGE) \ - | fmt --split-only >.ChangeLog.tmp; \ - then mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \ - else rm -f .ChangeLog.tmp; exit 1; fi - -.PHONY: dist-ChangeLog -' - - - - - - -# Check whether --enable-debug was given. -if test "${enable_debug+set}" = set; then : - enableval=$enable_debug; -fi - -enable_debug=${enable_debug-no} -if test "x$enable_debug" = "xyes"; then : - CFLAGS="${CFLAGS} -g -O0" -fi - if test "x$enable_debug" != "xyes"; then - IS_NDEBUG_TRUE= - IS_NDEBUG_FALSE='#' -else - IS_NDEBUG_TRUE='#' - IS_NDEBUG_FALSE= -fi - - -GETTEXT_PACKAGE=shotwell - - -cat >>confdefs.h <<_ACEOF -#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" -_ACEOF - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -$as_echo_n "checking for a sed that does not truncate output... " >&6; } -if ${ac_cv_path_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ - for ac_i in 1 2 3 4 5 6 7; do - ac_script="$ac_script$as_nl$ac_script" - done - echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed - { ac_script=; unset ac_script;} - if test -z "$SED"; then - ac_path_SED_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_SED" || continue -# Check for GNU ac_path_SED and select it if it is found. - # Check for GNU $ac_path_SED -case `"$ac_path_SED" --version 2>&1` in -*GNU*) - ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo '' >> "conftest.nl" - "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_SED_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_SED="$ac_path_SED" - ac_path_SED_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_SED_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_SED"; then - as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 - fi -else - ac_cv_path_SED=$SED -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -$as_echo "$ac_cv_path_SED" >&6; } - SED="$ac_cv_path_SED" - rm -f conftest.sed - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 -$as_echo_n "checking whether NLS is requested... " >&6; } - # Check whether --enable-nls was given. -if test "${enable_nls+set}" = set; then : - enableval=$enable_nls; USE_NLS=$enableval -else - USE_NLS=yes -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 -$as_echo "$USE_NLS" >&6; } - - - - - GETTEXT_MACRO_VERSION=0.19 - - - - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which - # contains only /bin. Note that ksh looks also at the FPATH variable, - # so we have to set that as well for the test. - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ - && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ - || PATH_SEPARATOR=';' - } -fi - -# Find out how to test for executable files. Don't use a zero-byte file, -# as systems may use methods other than mode bits to determine executability. -cat >conf$$.file <<_ASEOF -#! /bin/sh -exit 0 -_ASEOF -chmod +x conf$$.file -if test -x conf$$.file >/dev/null 2>&1; then - ac_executable_p="test -x" -else - ac_executable_p="test -f" -fi -rm -f conf$$.file - -# Extract the first word of "msgfmt", so it can be a program name with args. -set dummy msgfmt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MSGFMT+:} false; then : - $as_echo_n "(cached) " >&6 -else - case "$MSGFMT" in - [\\/]* | ?:[\\/]*) - ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. - ;; - *) - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$ac_save_IFS" - test -z "$ac_dir" && ac_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then - echo "$as_me: trying $ac_dir/$ac_word..." >&5 - if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && - (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then - ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" - break 2 - fi - fi - done - done - IFS="$ac_save_IFS" - test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" - ;; -esac -fi -MSGFMT="$ac_cv_path_MSGFMT" -if test "$MSGFMT" != ":"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 -$as_echo "$MSGFMT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - # Extract the first word of "gmsgfmt", so it can be a program name with args. -set dummy gmsgfmt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_GMSGFMT+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $GMSGFMT in - [\\/]* | ?:[\\/]*) - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" - ;; -esac -fi -GMSGFMT=$ac_cv_path_GMSGFMT -if test -n "$GMSGFMT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 -$as_echo "$GMSGFMT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - - case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; - *) MSGFMT_015=$MSGFMT ;; - esac - - case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; - *) GMSGFMT_015=$GMSGFMT ;; - esac - - - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which - # contains only /bin. Note that ksh looks also at the FPATH variable, - # so we have to set that as well for the test. - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ - && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ - || PATH_SEPARATOR=';' - } -fi - -# Find out how to test for executable files. Don't use a zero-byte file, -# as systems may use methods other than mode bits to determine executability. -cat >conf$$.file <<_ASEOF -#! /bin/sh -exit 0 -_ASEOF -chmod +x conf$$.file -if test -x conf$$.file >/dev/null 2>&1; then - ac_executable_p="test -x" -else - ac_executable_p="test -f" -fi -rm -f conf$$.file - -# Extract the first word of "xgettext", so it can be a program name with args. -set dummy xgettext; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_XGETTEXT+:} false; then : - $as_echo_n "(cached) " >&6 -else - case "$XGETTEXT" in - [\\/]* | ?:[\\/]*) - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. - ;; - *) - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$ac_save_IFS" - test -z "$ac_dir" && ac_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then - echo "$as_me: trying $ac_dir/$ac_word..." >&5 - if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && - (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then - ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" - break 2 - fi - fi - done - done - IFS="$ac_save_IFS" - test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" - ;; -esac -fi -XGETTEXT="$ac_cv_path_XGETTEXT" -if test "$XGETTEXT" != ":"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 -$as_echo "$XGETTEXT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - rm -f messages.po - - case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; - *) XGETTEXT_015=$XGETTEXT ;; - esac - - - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which - # contains only /bin. Note that ksh looks also at the FPATH variable, - # so we have to set that as well for the test. - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ - && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ - || PATH_SEPARATOR=';' - } -fi - -# Find out how to test for executable files. Don't use a zero-byte file, -# as systems may use methods other than mode bits to determine executability. -cat >conf$$.file <<_ASEOF -#! /bin/sh -exit 0 -_ASEOF -chmod +x conf$$.file -if test -x conf$$.file >/dev/null 2>&1; then - ac_executable_p="test -x" -else - ac_executable_p="test -f" -fi -rm -f conf$$.file - -# Extract the first word of "msgmerge", so it can be a program name with args. -set dummy msgmerge; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MSGMERGE+:} false; then : - $as_echo_n "(cached) " >&6 -else - case "$MSGMERGE" in - [\\/]* | ?:[\\/]*) - ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. - ;; - *) - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$ac_save_IFS" - test -z "$ac_dir" && ac_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then - echo "$as_me: trying $ac_dir/$ac_word..." >&5 - if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then - ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" - break 2 - fi - fi - done - done - IFS="$ac_save_IFS" - test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" - ;; -esac -fi -MSGMERGE="$ac_cv_path_MSGMERGE" -if test "$MSGMERGE" != ":"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 -$as_echo "$MSGMERGE" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$localedir" || localedir='${datadir}/locale' - - - test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= - - - ac_config_commands="$ac_config_commands po-directories" - - - - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" - -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo this is the am__doit target -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 -$as_echo_n "checking for style of include used by $am_make... " >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# Ignore all kinds of additional output from 'make'. -case `$am_make -s -f confmf 2> /dev/null` in #( -*the\ am__doit\ target*) - am__include=include - am__quote= - _am_result=GNU - ;; -esac -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - case `$am_make -s -f confmf 2> /dev/null` in #( - *the\ am__doit\ target*) - am__include=.include - am__quote="\"" - _am_result=BSD - ;; - esac -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 -$as_echo "$_am_result" >&6; } -rm -f confinc confmf - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then : - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' - am__nodep='_no' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } - -# Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 -set X $ac_compile -ac_compiler=$2 -for ac_option in --version -v -V -qversion; do - { { ac_try="$ac_compiler $ac_option >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compiler $ac_option >&5") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - sed '10a\ -... rest of stderr output deleted ... - 10q' conftest.err >conftest.er1 - cat conftest.er1 >&5 - fi - rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -done - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 -$as_echo_n "checking whether the C compiler works... " >&6; } -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` - -# The possible output files: -ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" - -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { { ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi -if test -z "$ac_file"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "C compiler cannot create executables -See \`config.log' for more details" "$LINENO" 5; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 -$as_echo_n "checking for C compiler default output file name... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 -$as_echo "$ac_file" >&6; } -ac_exeext=$ac_cv_exeext - -rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 -$as_echo_n "checking for suffix of executables... " >&6; } -if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5; } -fi -rm -f conftest conftest$ac_cv_exeext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 -$as_echo "$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -FILE *f = fopen ("conftest.out", "w"); - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_ACEOF -ac_clean_files="$ac_clean_files conftest.out" -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 -$as_echo_n "checking whether we are cross compiling... " >&6; } -if test "$cross_compiling" != yes; then - { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - if { ac_try='./conftest$ac_cv_exeext' - { { case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5; } - fi - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } - -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out -ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 -$as_echo_n "checking for suffix of object files... " >&6; } -if ${ac_cv_objext+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { { ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } -fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 -$as_echo "$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if ${ac_cv_c_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_compiler_gnu=yes -else - ac_compiler_gnu=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= -fi -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -else - CFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if ${ac_cv_prog_cc_c89+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -struct stat; -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_c89=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c89" != xno; then : - -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 -$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } -if ${am_cv_prog_cc_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF - # Make sure it works both with $CC and with simple cc. - # Following AC_PROG_CC_C_O, we do the test twice because some - # compilers refuse to overwrite an existing .o file with -o, - # though they will create one. - am_cv_prog_cc_c_o=yes - for am_i in 1 2; do - if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 - ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } \ - && test -f conftest2.$ac_objext; then - : OK - else - am_cv_prog_cc_c_o=no - break - fi - done - rm -f core conftest* - unset am_i -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 -$as_echo "$am_cv_prog_cc_c_o" >&6; } -if test "$am_cv_prog_cc_c_o" != yes; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" - CC="$am_aux_dir/compile $CC" -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -depcc="$CC" am_compiler_list= - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if ${am_cv_CC_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named 'D' -- because '-MD' means "put the output - # in D". - rm -rf conftest.dir - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - am__universal=false - case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac - - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with - # Solaris 10 /bin/sh. - echo '/* dummy */' > sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - # We check with '-c' and '-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle '-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs. - am__obj=sub/conftest.${OBJEXT-o} - am__minus_obj="-o $am__obj" - case $depmode in - gcc) - # This depmode causes a compiler race in universal mode. - test "$am__universal" = false || continue - ;; - nosideeffect) - # After this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested. - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - msvc7 | msvc7msys | msvisualcpp | msvcmsys) - # This compiler won't grok '-c -o', but also, the minuso test has - # not run yet. These depmodes are late enough in the game, and - # so weak that their functioning should not be impacted. - am__obj=conftest.${OBJEXT-o} - am__minus_obj= - ;; - none) break ;; - esac - if depmode=$depmode \ - source=sub/conftest.c object=$am__obj \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which - # contains only /bin. Note that ksh looks also at the FPATH variable, - # so we have to set that as well for the test. - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ - && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ - || PATH_SEPARATOR=';' - } -fi - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` - while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } -fi -if ${acl_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$LD"; then - acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$acl_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 &5 -$as_echo "$LD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if ${acl_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -$as_echo "$acl_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$acl_cv_prog_gnu_ld - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 -$as_echo_n "checking for shared library run path origin... " >&6; } -if ${acl_cv_rpath+:} false; then : - $as_echo_n "(cached) " >&6 -else - - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 -$as_echo "$acl_cv_rpath" >&6; } - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then : - enableval=$enable_rpath; : -else - enable_rpath=yes -fi - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if ${ac_cv_prog_CPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -$as_echo "$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -$as_echo_n "checking for grep that handles long lines and -e... " >&6; } -if ${ac_cv_path_GREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$GREP"; then - ac_path_GREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_GREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_GREP=$GREP -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -$as_echo_n "checking for egrep... " >&6; } -if ${ac_cv_path_EGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - - - - acl_libdirstem=lib - acl_libdirstem2= - case "$host_os" in - solaris*) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 -$as_echo_n "checking for 64-bit host... " >&6; } -if ${gl_cv_solaris_64bit+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#ifdef _LP64 -sixtyfour bits -#endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "sixtyfour bits" >/dev/null 2>&1; then : - gl_cv_solaris_64bit=yes -else - gl_cv_solaris_64bit=no -fi -rm -f conftest* - - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 -$as_echo "$gl_cv_solaris_64bit" >&6; } - if test $gl_cv_solaris_64bit = yes; then - acl_libdirstem=lib/64 - case "$host_cpu" in - sparc*) acl_libdirstem2=lib/sparcv9 ;; - i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; - esac - fi - ;; - *) - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - */../ | */.. ) - # Better ignore directories of this form. They are misleading. - ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi - ;; - esac - test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" - - - - - - - - - - - - - use_additional=yes - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - -# Check whether --with-libiconv-prefix was given. -if test "${with_libiconv_prefix+set}" = set; then : - withval=$with_libiconv_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - if test "$acl_libdirstem2" != "$acl_libdirstem" \ - && ! test -d "$withval/$acl_libdirstem"; then - additional_libdir="$withval/$acl_libdirstem2" - fi - fi - fi - -fi - - LIBICONV= - LTLIBICONV= - INCICONV= - LIBICONV_PREFIX= - HAVE_LIBICONV= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='iconv ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBICONV; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no \ - || test "X$found_dir" = "X/usr/$acl_libdirstem" \ - || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBICONV; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" - else - LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" - else - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - if test "$name" = 'iconv'; then - LIBICONV_PREFIX="$basedir" - fi - additional_includedir="$basedir/include" - ;; - */$acl_libdirstem2 | */$acl_libdirstem2/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` - if test "$name" = 'iconv'; then - LIBICONV_PREFIX="$basedir" - fi - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCICONV; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ - && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ - || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBICONV; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBICONV; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" - ;; - esac - done - fi - else - LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" - done - fi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 -$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } -if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : - $as_echo_n "(cached) " >&6 -else - gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -CFPreferencesCopyAppValue(NULL, NULL) - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - gt_cv_func_CFPreferencesCopyAppValue=yes -else - gt_cv_func_CFPreferencesCopyAppValue=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gt_save_LIBS" -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 -$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } - if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then - -$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h - - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 -$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } -if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : - $as_echo_n "(cached) " >&6 -else - gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -CFLocaleCopyCurrent(); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - gt_cv_func_CFLocaleCopyCurrent=yes -else - gt_cv_func_CFLocaleCopyCurrent=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gt_save_LIBS" -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 -$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } - if test $gt_cv_func_CFLocaleCopyCurrent = yes; then - -$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h - - fi - INTL_MACOSX_LIBS= - if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then - INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" - fi - - - - - - - LIBINTL= - LTLIBINTL= - POSUB= - - case " $gt_needs " in - *" need-formatstring-macros "*) gt_api_version=3 ;; - *" need-ngettext "*) gt_api_version=2 ;; - *) gt_api_version=1 ;; - esac - gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" - gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" - - if test "$USE_NLS" = "yes"; then - gt_use_preinstalled_gnugettext=no - - - if test $gt_api_version -ge 3; then - gt_revision_test_code=' -#ifndef __GNU_GETTEXT_SUPPORTED_REVISION -#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) -#endif -typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; -' - else - gt_revision_test_code= - fi - if test $gt_api_version -ge 2; then - gt_expression_test_code=' + * ngettext ("", "", 0)' - else - gt_expression_test_code= - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 -$as_echo_n "checking for GNU gettext in libc... " >&6; } -if eval \${$gt_func_gnugettext_libc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -$gt_revision_test_code -extern int _nl_msg_cat_cntr; -extern int *_nl_domain_bindings; - -int -main () -{ - -bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - eval "$gt_func_gnugettext_libc=yes" -else - eval "$gt_func_gnugettext_libc=no" -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -eval ac_res=\$$gt_func_gnugettext_libc - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - - if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then - - - - - - am_save_CPPFLAGS="$CPPFLAGS" - - for element in $INCICONV; do - haveit= - for x in $CPPFLAGS; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 -$as_echo_n "checking for iconv... " >&6; } -if ${am_cv_func_iconv+:} false; then : - $as_echo_n "(cached) " >&6 -else - - am_cv_func_iconv="no, consider installing GNU libiconv" - am_cv_lib_iconv=no - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#include - -int -main () -{ -iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - am_cv_func_iconv=yes -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - if test "$am_cv_func_iconv" != yes; then - am_save_LIBS="$LIBS" - LIBS="$LIBS $LIBICONV" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#include - -int -main () -{ -iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - am_cv_lib_iconv=yes - am_cv_func_iconv=yes -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$am_save_LIBS" - fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 -$as_echo "$am_cv_func_iconv" >&6; } - if test "$am_cv_func_iconv" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 -$as_echo_n "checking for working iconv... " >&6; } -if ${am_cv_func_iconv_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - - am_save_LIBS="$LIBS" - if test $am_cv_lib_iconv = yes; then - LIBS="$LIBS $LIBICONV" - fi - am_cv_func_iconv_works=no - for ac_iconv_const in '' 'const'; do - if test "$cross_compiling" = yes; then : - case "$host_os" in - aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; - *) am_cv_func_iconv_works="guessing yes" ;; - esac -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#include - -#ifndef ICONV_CONST -# define ICONV_CONST $ac_iconv_const -#endif - -int -main () -{ -int result = 0; - /* Test against AIX 5.1 bug: Failures are not distinguishable from successful - returns. */ - { - iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); - if (cd_utf8_to_88591 != (iconv_t)(-1)) - { - static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ - char buf[10]; - ICONV_CONST char *inptr = input; - size_t inbytesleft = strlen (input); - char *outptr = buf; - size_t outbytesleft = sizeof (buf); - size_t res = iconv (cd_utf8_to_88591, - &inptr, &inbytesleft, - &outptr, &outbytesleft); - if (res == 0) - result |= 1; - iconv_close (cd_utf8_to_88591); - } - } - /* Test against Solaris 10 bug: Failures are not distinguishable from - successful returns. */ - { - iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); - if (cd_ascii_to_88591 != (iconv_t)(-1)) - { - static ICONV_CONST char input[] = "\263"; - char buf[10]; - ICONV_CONST char *inptr = input; - size_t inbytesleft = strlen (input); - char *outptr = buf; - size_t outbytesleft = sizeof (buf); - size_t res = iconv (cd_ascii_to_88591, - &inptr, &inbytesleft, - &outptr, &outbytesleft); - if (res == 0) - result |= 2; - iconv_close (cd_ascii_to_88591); - } - } - /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ - { - iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); - if (cd_88591_to_utf8 != (iconv_t)(-1)) - { - static ICONV_CONST char input[] = "\304"; - static char buf[2] = { (char)0xDE, (char)0xAD }; - ICONV_CONST char *inptr = input; - size_t inbytesleft = 1; - char *outptr = buf; - size_t outbytesleft = 1; - size_t res = iconv (cd_88591_to_utf8, - &inptr, &inbytesleft, - &outptr, &outbytesleft); - if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) - result |= 4; - iconv_close (cd_88591_to_utf8); - } - } -#if 0 /* This bug could be worked around by the caller. */ - /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ - { - iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); - if (cd_88591_to_utf8 != (iconv_t)(-1)) - { - static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; - char buf[50]; - ICONV_CONST char *inptr = input; - size_t inbytesleft = strlen (input); - char *outptr = buf; - size_t outbytesleft = sizeof (buf); - size_t res = iconv (cd_88591_to_utf8, - &inptr, &inbytesleft, - &outptr, &outbytesleft); - if ((int)res > 0) - result |= 8; - iconv_close (cd_88591_to_utf8); - } - } -#endif - /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is - provided. */ - if (/* Try standardized names. */ - iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) - /* Try IRIX, OSF/1 names. */ - && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) - /* Try AIX names. */ - && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) - /* Try HP-UX names. */ - && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) - result |= 16; - return result; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - am_cv_func_iconv_works=yes -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - - test "$am_cv_func_iconv_works" = no || break - done - LIBS="$am_save_LIBS" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 -$as_echo "$am_cv_func_iconv_works" >&6; } - case "$am_cv_func_iconv_works" in - *no) am_func_iconv=no am_cv_lib_iconv=no ;; - *) am_func_iconv=yes ;; - esac - else - am_func_iconv=no am_cv_lib_iconv=no - fi - if test "$am_func_iconv" = yes; then - -$as_echo "#define HAVE_ICONV 1" >>confdefs.h - - fi - if test "$am_cv_lib_iconv" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 -$as_echo_n "checking how to link with libiconv... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 -$as_echo "$LIBICONV" >&6; } - else - CPPFLAGS="$am_save_CPPFLAGS" - LIBICONV= - LTLIBICONV= - fi - - - - - - - - - - - - use_additional=yes - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - -# Check whether --with-libintl-prefix was given. -if test "${with_libintl_prefix+set}" = set; then : - withval=$with_libintl_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - if test "$acl_libdirstem2" != "$acl_libdirstem" \ - && ! test -d "$withval/$acl_libdirstem"; then - additional_libdir="$withval/$acl_libdirstem2" - fi - fi - fi - -fi - - LIBINTL= - LTLIBINTL= - INCINTL= - LIBINTL_PREFIX= - HAVE_LIBINTL= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='intl ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBINTL; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no \ - || test "X$found_dir" = "X/usr/$acl_libdirstem" \ - || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBINTL; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" - else - LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" - else - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - if test "$name" = 'intl'; then - LIBINTL_PREFIX="$basedir" - fi - additional_includedir="$basedir/include" - ;; - */$acl_libdirstem2 | */$acl_libdirstem2/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` - if test "$name" = 'intl'; then - LIBINTL_PREFIX="$basedir" - fi - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCINTL; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ - && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ - || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBINTL; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBINTL; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" - ;; - esac - done - fi - else - LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" - done - fi - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 -$as_echo_n "checking for GNU gettext in libintl... " >&6; } -if eval \${$gt_func_gnugettext_libintl+:} false; then : - $as_echo_n "(cached) " >&6 -else - gt_save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $INCINTL" - gt_save_LIBS="$LIBS" - LIBS="$LIBS $LIBINTL" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -$gt_revision_test_code -extern int _nl_msg_cat_cntr; -extern -#ifdef __cplusplus -"C" -#endif -const char *_nl_expand_alias (const char *); - -int -main () -{ - -bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - eval "$gt_func_gnugettext_libintl=yes" -else - eval "$gt_func_gnugettext_libintl=no" -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then - LIBS="$LIBS $LIBICONV" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -$gt_revision_test_code -extern int _nl_msg_cat_cntr; -extern -#ifdef __cplusplus -"C" -#endif -const char *_nl_expand_alias (const char *); - -int -main () -{ - -bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - LIBINTL="$LIBINTL $LIBICONV" - LTLIBINTL="$LTLIBINTL $LTLIBICONV" - eval "$gt_func_gnugettext_libintl=yes" - -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - fi - CPPFLAGS="$gt_save_CPPFLAGS" - LIBS="$gt_save_LIBS" -fi -eval ac_res=\$$gt_func_gnugettext_libintl - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - fi - - if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ - || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ - && test "$PACKAGE" != gettext-runtime \ - && test "$PACKAGE" != gettext-tools; }; then - gt_use_preinstalled_gnugettext=yes - else - LIBINTL= - LTLIBINTL= - INCINTL= - fi - - - - if test -n "$INTL_MACOSX_LIBS"; then - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then - LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" - LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" - fi - fi - - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then - -$as_echo "#define ENABLE_NLS 1" >>confdefs.h - - else - USE_NLS=no - fi - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 -$as_echo_n "checking whether to use NLS... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 -$as_echo "$USE_NLS" >&6; } - if test "$USE_NLS" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 -$as_echo_n "checking where the gettext function comes from... " >&6; } - if test "$gt_use_preinstalled_gnugettext" = "yes"; then - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then - gt_source="external libintl" - else - gt_source="libc" - fi - else - gt_source="included intl directory" - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 -$as_echo "$gt_source" >&6; } - fi - - if test "$USE_NLS" = "yes"; then - - if test "$gt_use_preinstalled_gnugettext" = "yes"; then - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 -$as_echo_n "checking how to link with libintl... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 -$as_echo "$LIBINTL" >&6; } - - for element in $INCINTL; do - haveit= - for x in $CPPFLAGS; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - - fi - - -$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h - - -$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h - - fi - - POSUB=po - fi - - - - INTLLIBS="$LIBINTL" - - - - - - - - -# Extract the first word of "valac", so it can be a program name with args. -set dummy valac; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_VALAC+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $VALAC in - [\\/]* | ?:[\\/]*) - ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_path_VALAC" && ac_cv_path_VALAC="valac" - ;; -esac -fi -VALAC=$ac_cv_path_VALAC -if test -n "$VALAC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5 -$as_echo "$VALAC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - if test "$VALAC" != valac && test -n "0.28"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $VALAC is at least version 0.28" >&5 -$as_echo_n "checking whether $VALAC is at least version 0.28... " >&6; } - am__vala_version=`$VALAC --version | sed 's/Vala *//'` - as_arg_v1=0.28 -as_arg_v2="$am__vala_version" -awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null -case $? in #( - 1) : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } ;; #( - 0) : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } ;; #( - 2) : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - VALAC=valac ;; #( - *) : - ;; -esac -fi - if test "$VALAC" = valac; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no proper vala compiler found" >&5 -$as_echo "$as_me: WARNING: no proper vala compiler found" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: you will not be able to compile vala source files" >&5 -$as_echo "$as_me: WARNING: you will not be able to compile vala source files" >&2;} - else - : - fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } - -# Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 -set X $ac_compile -ac_compiler=$2 -for ac_option in --version -v -V -qversion; do - { { ac_try="$ac_compiler $ac_option >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compiler $ac_option >&5") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - sed '10a\ -... rest of stderr output deleted ... - 10q' conftest.err >conftest.er1 - cat conftest.er1 >&5 - fi - rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if ${ac_cv_c_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_compiler_gnu=yes -else - ac_compiler_gnu=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= -fi -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -else - CFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if ${ac_cv_prog_cc_c89+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -struct stat; -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_c89=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c89" != xno; then : - -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 -$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } -if ${am_cv_prog_cc_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF - # Make sure it works both with $CC and with simple cc. - # Following AC_PROG_CC_C_O, we do the test twice because some - # compilers refuse to overwrite an existing .o file with -o, - # though they will create one. - am_cv_prog_cc_c_o=yes - for am_i in 1 2; do - if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 - ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } \ - && test -f conftest2.$ac_objext; then - : OK - else - am_cv_prog_cc_c_o=no - break - fi - done - rm -f core conftest* - unset am_i -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 -$as_echo "$am_cv_prog_cc_c_o" >&6; } -if test "$am_cv_prog_cc_c_o" != yes; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" - CC="$am_aux_dir/compile $CC" -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -depcc="$CC" am_compiler_list= - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if ${am_cv_CC_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named 'D' -- because '-MD' means "put the output - # in D". - rm -rf conftest.dir - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - am__universal=false - case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac - - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with - # Solaris 10 /bin/sh. - echo '/* dummy */' > sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - # We check with '-c' and '-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle '-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs. - am__obj=sub/conftest.${OBJEXT-o} - am__minus_obj="-o $am__obj" - case $depmode in - gcc) - # This depmode causes a compiler race in universal mode. - test "$am__universal" = false || continue - ;; - nosideeffect) - # After this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested. - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - msvc7 | msvc7msys | msvisualcpp | msvcmsys) - # This compiler won't grok '-c -o', but also, the minuso test has - # not run yet. These depmodes are late enough in the game, and - # so weak that their functioning should not be impacted. - am__obj=conftest.${OBJEXT-o} - am__minus_obj= - ;; - none) break ;; - esac - if depmode=$depmode \ - source=sub/conftest.c object=$am__obj \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - - - - - - - - - -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_PKG_CONFIG"; then - ac_pt_PKG_CONFIG=$PKG_CONFIG - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $ac_pt_PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG -if test -n "$ac_pt_PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 -$as_echo "$ac_pt_PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_pt_PKG_CONFIG" = x; then - PKG_CONFIG="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - PKG_CONFIG=$ac_pt_PKG_CONFIG - fi -else - PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -fi - -fi -if test -n "$PKG_CONFIG"; then - _pkg_min_version=0.22 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 -$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - PKG_CONFIG="" - fi -fi - - - - - # Check whether --enable-schemas-compile was given. -if test "${enable_schemas_compile+set}" = set; then : - enableval=$enable_schemas_compile; case ${enableval} in - yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;; - no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;; - *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;; - esac -fi - - - - - - - - - -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_PKG_CONFIG"; then - ac_pt_PKG_CONFIG=$PKG_CONFIG - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $ac_pt_PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG -if test -n "$ac_pt_PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 -$as_echo "$ac_pt_PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_pt_PKG_CONFIG" = x; then - PKG_CONFIG="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - PKG_CONFIG=$ac_pt_PKG_CONFIG - fi -else - PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -fi - -fi -if test -n "$PKG_CONFIG"; then - _pkg_min_version=0.16 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 -$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - PKG_CONFIG="" - fi -fi - gsettingsschemadir=${datadir}/glib-2.0/schemas - - if test x$cross_compiling != xyes; then - GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0` - else - # Extract the first word of "glib-compile-schemas", so it can be a program name with args. -set dummy glib-compile-schemas; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $GLIB_COMPILE_SCHEMAS in - [\\/]* | ?:[\\/]*) - ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS -if test -n "$GLIB_COMPILE_SCHEMAS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5 -$as_echo "$GLIB_COMPILE_SCHEMAS" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - fi - - if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then - as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5 - else - : - fi - - GSETTINGS_RULES=' -.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas - -mostlyclean-am: clean-gsettings-schemas - -gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE)) - -%.gschema.valid: %.gschema.xml $(gsettings__enum_file) - $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p $(@D) && touch $@ - -all-am: $(gsettings_SCHEMAS:.xml=.valid) -uninstall-am: uninstall-gsettings-schemas -install-data-am: install-gsettings-schemas - -.SECONDARY: $(gsettings_SCHEMAS) - -install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file) - @$(NORMAL_INSTALL) - if test -n "$^"; then \ - test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \ - $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \ - test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \ - fi - -uninstall-gsettings-schemas: - @$(NORMAL_UNINSTALL) - @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files - test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir) - -clean-gsettings-schemas: - rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file) - -ifdef gsettings_ENUM_NAMESPACE -$(gsettings__enum_file): $(gsettings_ENUM_FILES) - $(AM_V_GEN) glib-mkenums --comments '\'''\'' --fhead "" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " " --vtail " " --ftail "" $^ > $@.tmp && mv $@.tmp $@ -endif -' - - - - - - - -# Using -g in target's _VALAFLAGS triggers a bug in Vala's automake integration -# that causes invalid makefile generation, so we put it into global VALAFLAGS -VALAFLAGS="-g" - - - -# Check whether --with-authenticator was given. -if test "${with_authenticator+set}" = set; then : - withval=$with_authenticator; with_authenticator=$withval -else - with_authenticator=shotwell -fi - -if test "x$with_authenticator" != "xshotwell"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown authenticator $with_authenticator, using shotwell" >&5 -$as_echo "$as_me: Unknown authenticator $with_authenticator, using shotwell" >&6;} - with_authenticator="shotwell" - -fi - - if test "x$with_authenticator" = "xshotwell"; then - AUTHENTICATOR_SHOTWELL_TRUE= - AUTHENTICATOR_SHOTWELL_FALSE='#' -else - AUTHENTICATOR_SHOTWELL_TRUE='#' - AUTHENTICATOR_SHOTWELL_FALSE= -fi - - if test "x$with_authenticator" = "xgoa"; then - AUTHENTICATOR_GOA_TRUE= - AUTHENTICATOR_GOA_FALSE='#' -else - AUTHENTICATOR_GOA_TRUE='#' - AUTHENTICATOR_GOA_FALSE= -fi - - if test "x$with_authenticator" = "xuoa"; then - AUTHENTICATOR_UOA_TRUE= - AUTHENTICATOR_UOA_FALSE='#' -else - AUTHENTICATOR_UOA_TRUE='#' - AUTHENTICATOR_UOA_FALSE= -fi - - - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHOTWELL" >&5 -$as_echo_n "checking for SHOTWELL... " >&6; } - -if test -n "$SHOTWELL_CFLAGS"; then - pkg_cv_SHOTWELL_CFLAGS="$SHOTWELL_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" - gee-0.8 >= 0.8.5 - gexiv2 >= 0.10.4 - gio-unix-2.0 >= 2.20 - glib-2.0 >= 2.40.0 - gmodule-2.0 >= 2.24.0 - gstreamer-1.0 >= 1.0.0 - gstreamer-base-1.0 >= 1.0.0 - gstreamer-plugins-base-1.0 >= 1.0.0 - gstreamer-pbutils-1.0 >= 1.0.0 - gtk+-3.0 >= 3.18.0 - gudev-1.0 >= 145 - libexif >= 0.6.16 - libgphoto2 >= 2.5.0 - libraw >= 0.13.2 - libxml-2.0 >= 2.6.32 - sqlite3 >= 3.5.9 - \""; } >&5 - ($PKG_CONFIG --exists --print-errors " - gee-0.8 >= 0.8.5 - gexiv2 >= 0.10.4 - gio-unix-2.0 >= 2.20 - glib-2.0 >= 2.40.0 - gmodule-2.0 >= 2.24.0 - gstreamer-1.0 >= 1.0.0 - gstreamer-base-1.0 >= 1.0.0 - gstreamer-plugins-base-1.0 >= 1.0.0 - gstreamer-pbutils-1.0 >= 1.0.0 - gtk+-3.0 >= 3.18.0 - gudev-1.0 >= 145 - libexif >= 0.6.16 - libgphoto2 >= 2.5.0 - libraw >= 0.13.2 - libxml-2.0 >= 2.6.32 - sqlite3 >= 3.5.9 - ") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_SHOTWELL_CFLAGS=`$PKG_CONFIG --cflags " - gee-0.8 >= 0.8.5 - gexiv2 >= 0.10.4 - gio-unix-2.0 >= 2.20 - glib-2.0 >= 2.40.0 - gmodule-2.0 >= 2.24.0 - gstreamer-1.0 >= 1.0.0 - gstreamer-base-1.0 >= 1.0.0 - gstreamer-plugins-base-1.0 >= 1.0.0 - gstreamer-pbutils-1.0 >= 1.0.0 - gtk+-3.0 >= 3.18.0 - gudev-1.0 >= 145 - libexif >= 0.6.16 - libgphoto2 >= 2.5.0 - libraw >= 0.13.2 - libxml-2.0 >= 2.6.32 - sqlite3 >= 3.5.9 - " 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$SHOTWELL_LIBS"; then - pkg_cv_SHOTWELL_LIBS="$SHOTWELL_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" - gee-0.8 >= 0.8.5 - gexiv2 >= 0.10.4 - gio-unix-2.0 >= 2.20 - glib-2.0 >= 2.40.0 - gmodule-2.0 >= 2.24.0 - gstreamer-1.0 >= 1.0.0 - gstreamer-base-1.0 >= 1.0.0 - gstreamer-plugins-base-1.0 >= 1.0.0 - gstreamer-pbutils-1.0 >= 1.0.0 - gtk+-3.0 >= 3.18.0 - gudev-1.0 >= 145 - libexif >= 0.6.16 - libgphoto2 >= 2.5.0 - libraw >= 0.13.2 - libxml-2.0 >= 2.6.32 - sqlite3 >= 3.5.9 - \""; } >&5 - ($PKG_CONFIG --exists --print-errors " - gee-0.8 >= 0.8.5 - gexiv2 >= 0.10.4 - gio-unix-2.0 >= 2.20 - glib-2.0 >= 2.40.0 - gmodule-2.0 >= 2.24.0 - gstreamer-1.0 >= 1.0.0 - gstreamer-base-1.0 >= 1.0.0 - gstreamer-plugins-base-1.0 >= 1.0.0 - gstreamer-pbutils-1.0 >= 1.0.0 - gtk+-3.0 >= 3.18.0 - gudev-1.0 >= 145 - libexif >= 0.6.16 - libgphoto2 >= 2.5.0 - libraw >= 0.13.2 - libxml-2.0 >= 2.6.32 - sqlite3 >= 3.5.9 - ") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_SHOTWELL_LIBS=`$PKG_CONFIG --libs " - gee-0.8 >= 0.8.5 - gexiv2 >= 0.10.4 - gio-unix-2.0 >= 2.20 - glib-2.0 >= 2.40.0 - gmodule-2.0 >= 2.24.0 - gstreamer-1.0 >= 1.0.0 - gstreamer-base-1.0 >= 1.0.0 - gstreamer-plugins-base-1.0 >= 1.0.0 - gstreamer-pbutils-1.0 >= 1.0.0 - gtk+-3.0 >= 3.18.0 - gudev-1.0 >= 145 - libexif >= 0.6.16 - libgphoto2 >= 2.5.0 - libraw >= 0.13.2 - libxml-2.0 >= 2.6.32 - sqlite3 >= 3.5.9 - " 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - SHOTWELL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " - gee-0.8 >= 0.8.5 - gexiv2 >= 0.10.4 - gio-unix-2.0 >= 2.20 - glib-2.0 >= 2.40.0 - gmodule-2.0 >= 2.24.0 - gstreamer-1.0 >= 1.0.0 - gstreamer-base-1.0 >= 1.0.0 - gstreamer-plugins-base-1.0 >= 1.0.0 - gstreamer-pbutils-1.0 >= 1.0.0 - gtk+-3.0 >= 3.18.0 - gudev-1.0 >= 145 - libexif >= 0.6.16 - libgphoto2 >= 2.5.0 - libraw >= 0.13.2 - libxml-2.0 >= 2.6.32 - sqlite3 >= 3.5.9 - " 2>&1` - else - SHOTWELL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " - gee-0.8 >= 0.8.5 - gexiv2 >= 0.10.4 - gio-unix-2.0 >= 2.20 - glib-2.0 >= 2.40.0 - gmodule-2.0 >= 2.24.0 - gstreamer-1.0 >= 1.0.0 - gstreamer-base-1.0 >= 1.0.0 - gstreamer-plugins-base-1.0 >= 1.0.0 - gstreamer-pbutils-1.0 >= 1.0.0 - gtk+-3.0 >= 3.18.0 - gudev-1.0 >= 145 - libexif >= 0.6.16 - libgphoto2 >= 2.5.0 - libraw >= 0.13.2 - libxml-2.0 >= 2.6.32 - sqlite3 >= 3.5.9 - " 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$SHOTWELL_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements ( - gee-0.8 >= 0.8.5 - gexiv2 >= 0.10.4 - gio-unix-2.0 >= 2.20 - glib-2.0 >= 2.40.0 - gmodule-2.0 >= 2.24.0 - gstreamer-1.0 >= 1.0.0 - gstreamer-base-1.0 >= 1.0.0 - gstreamer-plugins-base-1.0 >= 1.0.0 - gstreamer-pbutils-1.0 >= 1.0.0 - gtk+-3.0 >= 3.18.0 - gudev-1.0 >= 145 - libexif >= 0.6.16 - libgphoto2 >= 2.5.0 - libraw >= 0.13.2 - libxml-2.0 >= 2.6.32 - sqlite3 >= 3.5.9 - ) were not met: - -$SHOTWELL_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables SHOTWELL_CFLAGS -and SHOTWELL_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables SHOTWELL_CFLAGS -and SHOTWELL_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - SHOTWELL_CFLAGS=$pkg_cv_SHOTWELL_CFLAGS - SHOTWELL_LIBS=$pkg_cv_SHOTWELL_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for THUMBNAILER" >&5 -$as_echo_n "checking for THUMBNAILER... " >&6; } - -if test -n "$THUMBNAILER_CFLAGS"; then - pkg_cv_THUMBNAILER_CFLAGS="$THUMBNAILER_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-0.8 >= 0.8.5 gtk+-3.0 >= 3.18.0 - gstreamer-base-1.0 >= 1.0.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gee-0.8 >= 0.8.5 gtk+-3.0 >= 3.18.0 - gstreamer-base-1.0 >= 1.0.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_THUMBNAILER_CFLAGS=`$PKG_CONFIG --cflags "gee-0.8 >= 0.8.5 gtk+-3.0 >= 3.18.0 - gstreamer-base-1.0 >= 1.0.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$THUMBNAILER_LIBS"; then - pkg_cv_THUMBNAILER_LIBS="$THUMBNAILER_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-0.8 >= 0.8.5 gtk+-3.0 >= 3.18.0 - gstreamer-base-1.0 >= 1.0.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gee-0.8 >= 0.8.5 gtk+-3.0 >= 3.18.0 - gstreamer-base-1.0 >= 1.0.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_THUMBNAILER_LIBS=`$PKG_CONFIG --libs "gee-0.8 >= 0.8.5 gtk+-3.0 >= 3.18.0 - gstreamer-base-1.0 >= 1.0.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - THUMBNAILER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gee-0.8 >= 0.8.5 gtk+-3.0 >= 3.18.0 - gstreamer-base-1.0 >= 1.0.0" 2>&1` - else - THUMBNAILER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gee-0.8 >= 0.8.5 gtk+-3.0 >= 3.18.0 - gstreamer-base-1.0 >= 1.0.0" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$THUMBNAILER_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (gee-0.8 >= 0.8.5 gtk+-3.0 >= 3.18.0 - gstreamer-base-1.0 >= 1.0.0) were not met: - -$THUMBNAILER_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables THUMBNAILER_CFLAGS -and THUMBNAILER_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables THUMBNAILER_CFLAGS -and THUMBNAILER_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - THUMBNAILER_CFLAGS=$pkg_cv_THUMBNAILER_CFLAGS - THUMBNAILER_LIBS=$pkg_cv_THUMBNAILER_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PLUGIN" >&5 -$as_echo_n "checking for PLUGIN... " >&6; } - -if test -n "$PLUGIN_CFLAGS"; then - pkg_cv_PLUGIN_CFLAGS="$PLUGIN_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0 json-glib-1.0 libxml-2.0 - libsoup-2.4 webkit2gtk-4.0 gee-0.8\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0 json-glib-1.0 libxml-2.0 - libsoup-2.4 webkit2gtk-4.0 gee-0.8") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_PLUGIN_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0 json-glib-1.0 libxml-2.0 - libsoup-2.4 webkit2gtk-4.0 gee-0.8" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$PLUGIN_LIBS"; then - pkg_cv_PLUGIN_LIBS="$PLUGIN_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0 json-glib-1.0 libxml-2.0 - libsoup-2.4 webkit2gtk-4.0 gee-0.8\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0 json-glib-1.0 libxml-2.0 - libsoup-2.4 webkit2gtk-4.0 gee-0.8") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_PLUGIN_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0 json-glib-1.0 libxml-2.0 - libsoup-2.4 webkit2gtk-4.0 gee-0.8" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - PLUGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 glib-2.0 json-glib-1.0 libxml-2.0 - libsoup-2.4 webkit2gtk-4.0 gee-0.8" 2>&1` - else - PLUGIN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 glib-2.0 json-glib-1.0 libxml-2.0 - libsoup-2.4 webkit2gtk-4.0 gee-0.8" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$PLUGIN_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (gobject-2.0 glib-2.0 json-glib-1.0 libxml-2.0 - libsoup-2.4 webkit2gtk-4.0 gee-0.8) were not met: - -$PLUGIN_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables PLUGIN_CFLAGS -and PLUGIN_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables PLUGIN_CFLAGS -and PLUGIN_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - PLUGIN_CFLAGS=$pkg_cv_PLUGIN_CFLAGS - PLUGIN_LIBS=$pkg_cv_PLUGIN_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMPORT" >&5 -$as_echo_n "checking for IMPORT... " >&6; } - -if test -n "$IMPORT_CFLAGS"; then - pkg_cv_IMPORT_CFLAGS="$IMPORT_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-0.8 >= 0.8.5 glib-2.0 gio-2.0 sqlite3\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gee-0.8 >= 0.8.5 glib-2.0 gio-2.0 sqlite3") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_IMPORT_CFLAGS=`$PKG_CONFIG --cflags "gee-0.8 >= 0.8.5 glib-2.0 gio-2.0 sqlite3" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$IMPORT_LIBS"; then - pkg_cv_IMPORT_LIBS="$IMPORT_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-0.8 >= 0.8.5 glib-2.0 gio-2.0 sqlite3\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gee-0.8 >= 0.8.5 glib-2.0 gio-2.0 sqlite3") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_IMPORT_LIBS=`$PKG_CONFIG --libs "gee-0.8 >= 0.8.5 glib-2.0 gio-2.0 sqlite3" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - IMPORT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gee-0.8 >= 0.8.5 glib-2.0 gio-2.0 sqlite3" 2>&1` - else - IMPORT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gee-0.8 >= 0.8.5 glib-2.0 gio-2.0 sqlite3" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$IMPORT_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (gee-0.8 >= 0.8.5 glib-2.0 gio-2.0 sqlite3) were not met: - -$IMPORT_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables IMPORT_CFLAGS -and IMPORT_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables IMPORT_CFLAGS -and IMPORT_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - IMPORT_CFLAGS=$pkg_cv_IMPORT_CFLAGS - IMPORT_LIBS=$pkg_cv_IMPORT_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PUBLISHING" >&5 -$as_echo_n "checking for PUBLISHING... " >&6; } - -if test -n "$PUBLISHING_CFLAGS"; then - pkg_cv_PUBLISHING_CFLAGS="$PUBLISHING_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0 gexiv2 json-glib-1.0 - gee-0.8 libsoup-2.4 libxml-2.0 gtk+-3.0 - webkit2gtk-4.0 gcr-3 gcr-ui-3 libgdata\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0 gexiv2 json-glib-1.0 - gee-0.8 libsoup-2.4 libxml-2.0 gtk+-3.0 - webkit2gtk-4.0 gcr-3 gcr-ui-3 libgdata") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_PUBLISHING_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0 gexiv2 json-glib-1.0 - gee-0.8 libsoup-2.4 libxml-2.0 gtk+-3.0 - webkit2gtk-4.0 gcr-3 gcr-ui-3 libgdata" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$PUBLISHING_LIBS"; then - pkg_cv_PUBLISHING_LIBS="$PUBLISHING_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0 gexiv2 json-glib-1.0 - gee-0.8 libsoup-2.4 libxml-2.0 gtk+-3.0 - webkit2gtk-4.0 gcr-3 gcr-ui-3 libgdata\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0 gexiv2 json-glib-1.0 - gee-0.8 libsoup-2.4 libxml-2.0 gtk+-3.0 - webkit2gtk-4.0 gcr-3 gcr-ui-3 libgdata") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_PUBLISHING_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0 gexiv2 json-glib-1.0 - gee-0.8 libsoup-2.4 libxml-2.0 gtk+-3.0 - webkit2gtk-4.0 gcr-3 gcr-ui-3 libgdata" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - PUBLISHING_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 glib-2.0 gexiv2 json-glib-1.0 - gee-0.8 libsoup-2.4 libxml-2.0 gtk+-3.0 - webkit2gtk-4.0 gcr-3 gcr-ui-3 libgdata" 2>&1` - else - PUBLISHING_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 glib-2.0 gexiv2 json-glib-1.0 - gee-0.8 libsoup-2.4 libxml-2.0 gtk+-3.0 - webkit2gtk-4.0 gcr-3 gcr-ui-3 libgdata" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$PUBLISHING_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (gobject-2.0 glib-2.0 gexiv2 json-glib-1.0 - gee-0.8 libsoup-2.4 libxml-2.0 gtk+-3.0 - webkit2gtk-4.0 gcr-3 gcr-ui-3 libgdata) were not met: - -$PUBLISHING_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables PUBLISHING_CFLAGS -and PUBLISHING_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables PUBLISHING_CFLAGS -and PUBLISHING_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - PUBLISHING_CFLAGS=$pkg_cv_PUBLISHING_CFLAGS - PUBLISHING_LIBS=$pkg_cv_PUBLISHING_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TRANSITIONS" >&5 -$as_echo_n "checking for TRANSITIONS... " >&6; } - -if test -n "$TRANSITIONS_CFLAGS"; then - pkg_cv_TRANSITIONS_CFLAGS="$TRANSITIONS_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 cairo gio-2.0 gdk-pixbuf-2.0 - gdk-3.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gobject-2.0 cairo gio-2.0 gdk-pixbuf-2.0 - gdk-3.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_TRANSITIONS_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 cairo gio-2.0 gdk-pixbuf-2.0 - gdk-3.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$TRANSITIONS_LIBS"; then - pkg_cv_TRANSITIONS_LIBS="$TRANSITIONS_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 cairo gio-2.0 gdk-pixbuf-2.0 - gdk-3.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gobject-2.0 cairo gio-2.0 gdk-pixbuf-2.0 - gdk-3.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_TRANSITIONS_LIBS=`$PKG_CONFIG --libs "gobject-2.0 cairo gio-2.0 gdk-pixbuf-2.0 - gdk-3.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - TRANSITIONS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 cairo gio-2.0 gdk-pixbuf-2.0 - gdk-3.0" 2>&1` - else - TRANSITIONS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 cairo gio-2.0 gdk-pixbuf-2.0 - gdk-3.0" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$TRANSITIONS_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (gobject-2.0 cairo gio-2.0 gdk-pixbuf-2.0 - gdk-3.0) were not met: - -$TRANSITIONS_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables TRANSITIONS_CFLAGS -and TRANSITIONS_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables TRANSITIONS_CFLAGS -and TRANSITIONS_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - TRANSITIONS_CFLAGS=$pkg_cv_TRANSITIONS_CFLAGS - TRANSITIONS_LIBS=$pkg_cv_TRANSITIONS_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - -if test "x$with_authenticator" = "xshotwell"; then : - - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTHENTICATOR" >&5 -$as_echo_n "checking for AUTHENTICATOR... " >&6; } - -if test -n "$AUTHENTICATOR_CFLAGS"; then - pkg_cv_AUTHENTICATOR_CFLAGS="$AUTHENTICATOR_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0 libsoup-2.4 - webkit2gtk-4.0 gee-0.8 gtk+-3.0 - libxml-2.0 json-glib-1.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0 libsoup-2.4 - webkit2gtk-4.0 gee-0.8 gtk+-3.0 - libxml-2.0 json-glib-1.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_AUTHENTICATOR_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0 libsoup-2.4 - webkit2gtk-4.0 gee-0.8 gtk+-3.0 - libxml-2.0 json-glib-1.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$AUTHENTICATOR_LIBS"; then - pkg_cv_AUTHENTICATOR_LIBS="$AUTHENTICATOR_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0 libsoup-2.4 - webkit2gtk-4.0 gee-0.8 gtk+-3.0 - libxml-2.0 json-glib-1.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0 libsoup-2.4 - webkit2gtk-4.0 gee-0.8 gtk+-3.0 - libxml-2.0 json-glib-1.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_AUTHENTICATOR_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0 libsoup-2.4 - webkit2gtk-4.0 gee-0.8 gtk+-3.0 - libxml-2.0 json-glib-1.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - AUTHENTICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 glib-2.0 libsoup-2.4 - webkit2gtk-4.0 gee-0.8 gtk+-3.0 - libxml-2.0 json-glib-1.0" 2>&1` - else - AUTHENTICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 glib-2.0 libsoup-2.4 - webkit2gtk-4.0 gee-0.8 gtk+-3.0 - libxml-2.0 json-glib-1.0" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$AUTHENTICATOR_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (gobject-2.0 glib-2.0 libsoup-2.4 - webkit2gtk-4.0 gee-0.8 gtk+-3.0 - libxml-2.0 json-glib-1.0) were not met: - -$AUTHENTICATOR_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables AUTHENTICATOR_CFLAGS -and AUTHENTICATOR_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables AUTHENTICATOR_CFLAGS -and AUTHENTICATOR_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - AUTHENTICATOR_CFLAGS=$pkg_cv_AUTHENTICATOR_CFLAGS - AUTHENTICATOR_LIBS=$pkg_cv_AUTHENTICATOR_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - AUTHENTICATOR_PACKAGES="--pkg webkit2gtk-4.0 --pkg gtk+-3.0 --pkg libsoup-2.4 --pkg gee-0.8 --pkg libxml-2.0 --pkg json-glib-1.0" - - -fi - -# Check whether --enable-unity-support was given. -if test "${enable_unity_support+set}" = set; then : - enableval=$enable_unity_support; -else - enable_unity_support=no -fi - - -if test "x$enable_unity_support" = "xyes"; then : - - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNITY" >&5 -$as_echo_n "checking for UNITY... " >&6; } - -if test -n "$UNITY_CFLAGS"; then - pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity\""; } >&5 - ($PKG_CONFIG --exists --print-errors "unity") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_UNITY_CFLAGS=`$PKG_CONFIG --cflags "unity" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$UNITY_LIBS"; then - pkg_cv_UNITY_LIBS="$UNITY_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity\""; } >&5 - ($PKG_CONFIG --exists --print-errors "unity") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unity" 2>&1` - else - UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unity" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$UNITY_PKG_ERRORS" >&5 - - HAVE_UNITY=no -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - HAVE_UNITY=no -else - UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS - UNITY_LIBS=$pkg_cv_UNITY_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - - HAVE_UNITY=yes - UNITY_VALAFLAGS="--pkg unity --define UNITY_SUPPORT" - - -fi - -else - HAVE_UNITY=no -fi - - if test "x$HAVE_UNITY" = "xyes"; then - HAVE_UNITY_TRUE= - HAVE_UNITY_FALSE='#' -else - HAVE_UNITY_TRUE='#' - HAVE_UNITY_FALSE= -fi - - -# Check whether --enable-apport-hook was given. -if test "${enable_apport_hook+set}" = set; then : - enableval=$enable_apport_hook; -else - enable_apport_hook=no -fi - - - if test "x$enable_apport_hook" != "xno"; then - INSTALL_APPORT_HOOK_TRUE= - INSTALL_APPORT_HOOK_FALSE='#' -else - INSTALL_APPORT_HOOK_TRUE='#' - INSTALL_APPORT_HOOK_FALSE= -fi - - - - -# Check whether --enable-publishers was given. -if test "${enable_publishers+set}" = set; then : - enableval=$enable_publishers; -else - enable_publishers="facebook, flickr, picasa, piwigo, youtube, gallery3, tumblr" -fi - - -if test "$xenable_publishers" = "xall"; then : - enable_publishers="facebook, flickr, picasa, piwigo, youtube, gallery3, tumblr" -fi - -save_ifs=$IFS -IFS=, -PUBLISHER_VALAFLAGS="" -ENABLED_PUBLISHERS="" -for publisher in $enable_publishers; do - case $publisher in - *facebook*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_FACEBOOK" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS facebook" - ;; - *flickr*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_FLICKR" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS flickr" - ;; - *picasa*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_PICASA" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS picasa" - ;; - *piwigo*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_PIWIGO" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS piwigo" - ;; - *youtube*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_YOUTUBE" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS youtube" - ;; - *gallery3*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_GALLERY3" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS gallery3" - ;; - *rajce*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_RAJCE" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS rajce" - ;; - *tumblr*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_TUMBLR" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS tumblr" - ;; - *yandex*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_YANDEX" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS yandex" - ;; - *) - ;; - esac -done -IFS=$save_ifs - - - -# Check whether --enable-extra-plugins was given. -if test "${enable_extra_plugins+set}" = set; then : - enableval=$enable_extra_plugins; -else - enable_extra_plugins=yes -fi - -if test "x$enable_extra_plugins" = "xyes"; then : - HAVE_EXTRA_PLUGINS=yes -else - HAVE_EXTRA_PLUGINS=no -fi - - if test "x$HAVE_EXTRA_PLUGINS" = "xyes"; then - HAVE_EXTRA_PLUGINS_TRUE= - HAVE_EXTRA_PLUGINS_FALSE='#' -else - HAVE_EXTRA_PLUGINS_TRUE='#' - HAVE_EXTRA_PLUGINS_FALSE= -fi - - - -case `pwd` in - *\ * | *\ *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 -$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; -esac - - - -macro_version='2.4.6' -macro_revision='2.4.6' - - - - - - - - - - - - - -ltmain=$ac_aux_dir/ltmain.sh - -# Backslashify metacharacters that are still active within -# double-quoted strings. -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\(["`\\]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to delay expansion of an escaped single quote. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 -$as_echo_n "checking how to print strings... " >&6; } -# Test print first, because it will be a builtin if present. -if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ - test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='print -r --' -elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='printf %s\n' -else - # Use this function as a fallback that always works. - func_fallback_echo () - { - eval 'cat <<_LTECHO_EOF -$1 -_LTECHO_EOF' - } - ECHO='func_fallback_echo' -fi - -# func_echo_all arg... -# Invoke $ECHO with all args, space-separated. -func_echo_all () -{ - $ECHO "" -} - -case $ECHO in - printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 -$as_echo "printf" >&6; } ;; - print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 -$as_echo "print -r" >&6; } ;; - *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 -$as_echo "cat" >&6; } ;; -esac - - - - - - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -$as_echo_n "checking for a sed that does not truncate output... " >&6; } -if ${ac_cv_path_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ - for ac_i in 1 2 3 4 5 6 7; do - ac_script="$ac_script$as_nl$ac_script" - done - echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed - { ac_script=; unset ac_script;} - if test -z "$SED"; then - ac_path_SED_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_SED" || continue -# Check for GNU ac_path_SED and select it if it is found. - # Check for GNU $ac_path_SED -case `"$ac_path_SED" --version 2>&1` in -*GNU*) - ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo '' >> "conftest.nl" - "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_SED_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_SED="$ac_path_SED" - ac_path_SED_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_SED_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_SED"; then - as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 - fi -else - ac_cv_path_SED=$SED -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -$as_echo "$ac_cv_path_SED" >&6; } - SED="$ac_cv_path_SED" - rm -f conftest.sed - -test -z "$SED" && SED=sed -Xsed="$SED -e 1s/^X//" - - - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 -$as_echo_n "checking for fgrep... " >&6; } -if ${ac_cv_path_FGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 - then ac_cv_path_FGREP="$GREP -F" - else - if test -z "$FGREP"; then - ac_path_FGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in fgrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_FGREP" || continue -# Check for GNU ac_path_FGREP and select it if it is found. - # Check for GNU $ac_path_FGREP -case `"$ac_path_FGREP" --version 2>&1` in -*GNU*) - ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'FGREP' >> "conftest.nl" - "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_FGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_FGREP="$ac_path_FGREP" - ac_path_FGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_FGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_FGREP"; then - as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_FGREP=$FGREP -fi - - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 -$as_echo "$ac_cv_path_FGREP" >&6; } - FGREP="$ac_cv_path_FGREP" - - -test -z "$GREP" && GREP=grep - - - - - - - - - - - - - - - - - - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : - withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test yes = "$GCC"; then - # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return, which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` - while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do - ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD=$ac_prog - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test yes = "$with_gnu_ld"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } -fi -if ${lt_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$LD"; then - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD=$ac_dir/$ac_prog - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -$as_echo "$LD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if ${lt_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -$as_echo "$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 -$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } -if ${lt_cv_path_NM+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM=$NM -else - lt_nm_to_check=${ac_tool_prefix}nm - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - tmp_nm=$ac_dir/$lt_tmp_nm - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the 'sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty - case $build_os in - mingw*) lt_bad_file=conftest.nm/nofile ;; - *) lt_bad_file=/dev/null ;; - esac - case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in - *$lt_bad_file* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break 2 - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break 2 - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS=$lt_save_ifs - done - : ${lt_cv_path_NM=no} -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 -$as_echo "$lt_cv_path_NM" >&6; } -if test no != "$lt_cv_path_NM"; then - NM=$lt_cv_path_NM -else - # Didn't find any BSD compatible name lister, look for dumpbin. - if test -n "$DUMPBIN"; then : - # Let the user override the test. - else - if test -n "$ac_tool_prefix"; then - for ac_prog in dumpbin "link -dump" - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DUMPBIN+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$DUMPBIN"; then - ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -DUMPBIN=$ac_cv_prog_DUMPBIN -if test -n "$DUMPBIN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 -$as_echo "$DUMPBIN" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$DUMPBIN" && break - done -fi -if test -z "$DUMPBIN"; then - ac_ct_DUMPBIN=$DUMPBIN - for ac_prog in dumpbin "link -dump" -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_DUMPBIN"; then - ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN -if test -n "$ac_ct_DUMPBIN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 -$as_echo "$ac_ct_DUMPBIN" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_DUMPBIN" && break -done - - if test "x$ac_ct_DUMPBIN" = x; then - DUMPBIN=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DUMPBIN=$ac_ct_DUMPBIN - fi -fi - - case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in - *COFF*) - DUMPBIN="$DUMPBIN -symbols -headers" - ;; - *) - DUMPBIN=: - ;; - esac - fi - - if test : != "$DUMPBIN"; then - NM=$DUMPBIN - fi -fi -test -z "$NM" && NM=nm - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 -$as_echo_n "checking the name lister ($NM) interface... " >&6; } -if ${lt_cv_nm_interface+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_nm_interface="BSD nm" - echo "int some_variable = 0;" > conftest.$ac_ext - (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) - (eval "$ac_compile" 2>conftest.err) - cat conftest.err >&5 - (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) - (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) - cat conftest.err >&5 - (eval echo "\"\$as_me:$LINENO: output\"" >&5) - cat conftest.out >&5 - if $GREP 'External.*some_variable' conftest.out > /dev/null; then - lt_cv_nm_interface="MS dumpbin" - fi - rm -f conftest* -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 -$as_echo "$lt_cv_nm_interface" >&6; } - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 -$as_echo_n "checking whether ln -s works... " >&6; } -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 -$as_echo "no, using $LN_S" >&6; } -fi - -# find the maximum length of command line arguments -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 -$as_echo_n "checking the maximum length of command line arguments... " >&6; } -if ${lt_cv_sys_max_cmd_len+:} false; then : - $as_echo_n "(cached) " >&6 -else - i=0 - teststring=ABCD - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - mint*) - # On MiNT this can take a long time and run out of memory. - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - os2*) - # The test takes a long time on OS/2. - lt_cv_sys_max_cmd_len=8192 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len" && \ - test undefined != "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - # Make teststring a little bigger before we do anything with it. - # a 1K string should be a reasonable start. - for i in 1 2 3 4 5 6 7 8; do - teststring=$teststring$teststring - done - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - # If test is not a shell built-in, we'll probably end up computing a - # maximum length that is only half of the actual maximum length, but - # we can't tell. - while { test X`env echo "$teststring$teststring" 2>/dev/null` \ - = "X$teststring$teststring"; } >/dev/null 2>&1 && - test 17 != "$i" # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - # Only check the string length outside the loop. - lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` - teststring= - # Add a significant safety factor because C++ compilers can tack on - # massive amounts of additional arguments before passing them to the - # linker. It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac - -fi - -if test -n "$lt_cv_sys_max_cmd_len"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 -$as_echo "$lt_cv_sys_max_cmd_len" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 -$as_echo "none" >&6; } -fi -max_cmd_len=$lt_cv_sys_max_cmd_len - - - - - - -: ${CP="cp -f"} -: ${MV="mv -f"} -: ${RM="rm -f"} - -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - lt_unset=unset -else - lt_unset=false -fi - - - - - -# test EBCDIC or ASCII -case `echo X|tr X '\101'` in - A) # ASCII based system - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr - lt_SP2NL='tr \040 \012' - lt_NL2SP='tr \015\012 \040\040' - ;; - *) # EBCDIC based system - lt_SP2NL='tr \100 \n' - lt_NL2SP='tr \r\n \100\100' - ;; -esac - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 -$as_echo_n "checking how to convert $build file names to $host format... " >&6; } -if ${lt_cv_to_host_file_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 - ;; - esac - ;; - *-*-cygwin* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin - ;; - esac - ;; - * ) # unhandled hosts (and "normal" native builds) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; -esac - -fi - -to_host_file_cmd=$lt_cv_to_host_file_cmd -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 -$as_echo "$lt_cv_to_host_file_cmd" >&6; } - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 -$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } -if ${lt_cv_to_tool_file_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else - #assume ordinary cross tools, or native build. -lt_cv_to_tool_file_cmd=func_convert_file_noop -case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 - ;; - esac - ;; -esac - -fi - -to_tool_file_cmd=$lt_cv_to_tool_file_cmd -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 -$as_echo "$lt_cv_to_tool_file_cmd" >&6; } - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 -$as_echo_n "checking for $LD option to reload object files... " >&6; } -if ${lt_cv_ld_reload_flag+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ld_reload_flag='-r' -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 -$as_echo "$lt_cv_ld_reload_flag" >&6; } -reload_flag=$lt_cv_ld_reload_flag -case $reload_flag in -"" | " "*) ;; -*) reload_flag=" $reload_flag" ;; -esac -reload_cmds='$LD$reload_flag -o $output$reload_objs' -case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - if test yes != "$GCC"; then - reload_cmds=false - fi - ;; - darwin*) - if test yes = "$GCC"; then - reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' - else - reload_cmds='$LD$reload_flag -o $output$reload_objs' - fi - ;; -esac - - - - - - - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. -set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$OBJDUMP"; then - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -$as_echo "$OBJDUMP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_OBJDUMP"; then - ac_ct_OBJDUMP=$OBJDUMP - # Extract the first word of "objdump", so it can be a program name with args. -set dummy objdump; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_OBJDUMP"; then - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_OBJDUMP="objdump" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -if test -n "$ac_ct_OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -$as_echo "$ac_ct_OBJDUMP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_OBJDUMP" = x; then - OBJDUMP="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - OBJDUMP=$ac_ct_OBJDUMP - fi -else - OBJDUMP="$ac_cv_prog_OBJDUMP" -fi - -test -z "$OBJDUMP" && OBJDUMP=objdump - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 -$as_echo_n "checking how to recognize dependent libraries... " >&6; } -if ${lt_cv_deplibs_check_method+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# 'unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# that responds to the $file_magic_cmd with a given extended regex. -# If you have 'file' or equivalent on your system and you're not sure -# whether 'pass_all' will *always* work, you probably want this one. - -case $host_os in -aix[4-9]*) - lt_cv_deplibs_check_method=pass_all - ;; - -beos*) - lt_cv_deplibs_check_method=pass_all - ;; - -bsdi[45]*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - -cygwin*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - ;; - -mingw* | pw32*) - # Base MSYS/MinGW do not provide the 'file' command needed by - # func_win32_libid shell function, so use a weaker test based on 'objdump', - # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - # Keep this pattern in sync with the one in func_win32_libid. - lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -cegcc*) - # use the weaker test based on 'objdump'. See mingw*. - lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -haiku*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[3-9]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -*nto* | *qnx*) - lt_cv_deplibs_check_method=pass_all - ;; - -openbsd* | bitrig*) - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - fi - ;; - -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; - -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -tpf*) - lt_cv_deplibs_check_method=pass_all - ;; -os2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 -$as_echo "$lt_cv_deplibs_check_method" >&6; } - -file_magic_glob= -want_nocaseglob=no -if test "$build" = "$host"; then - case $host_os in - mingw* | pw32*) - if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then - want_nocaseglob=yes - else - file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` - fi - ;; - esac -fi - -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown - - - - - - - - - - - - - - - - - - - - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. -set dummy ${ac_tool_prefix}dlltool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$DLLTOOL"; then - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -$as_echo "$DLLTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_DLLTOOL"; then - ac_ct_DLLTOOL=$DLLTOOL - # Extract the first word of "dlltool", so it can be a program name with args. -set dummy dlltool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_DLLTOOL"; then - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_DLLTOOL="dlltool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -$as_echo "$ac_ct_DLLTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_DLLTOOL" = x; then - DLLTOOL="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DLLTOOL=$ac_ct_DLLTOOL - fi -else - DLLTOOL="$ac_cv_prog_DLLTOOL" -fi - -test -z "$DLLTOOL" && DLLTOOL=dlltool - - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 -$as_echo_n "checking how to associate runtime and link libraries... " >&6; } -if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_sharedlib_from_linklib_cmd='unknown' - -case $host_os in -cygwin* | mingw* | pw32* | cegcc*) - # two different shell functions defined in ltmain.sh; - # decide which one to use based on capabilities of $DLLTOOL - case `$DLLTOOL --help 2>&1` in - *--identify-strict*) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib - ;; - *) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback - ;; - esac - ;; -*) - # fallback: assume linklib IS sharedlib - lt_cv_sharedlib_from_linklib_cmd=$ECHO - ;; -esac - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 -$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } -sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd -test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO - - - - - - - -if test -n "$ac_tool_prefix"; then - for ac_prog in ar - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_AR="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$AR" && break - done -fi -if test -z "$AR"; then - ac_ct_AR=$AR - for ac_prog in ar -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_AR="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -$as_echo "$ac_ct_AR" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_AR" && break -done - - if test "x$ac_ct_AR" = x; then - AR="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - AR=$ac_ct_AR - fi -fi - -: ${AR=ar} -: ${AR_FLAGS=cru} - - - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 -$as_echo_n "checking for archiver @FILE support... " >&6; } -if ${lt_cv_ar_at_file+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ar_at_file=no - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - echo conftest.$ac_objext > conftest.lst - lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 - (eval $lt_ar_try) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - if test 0 -eq "$ac_status"; then - # Ensure the archiver fails upon bogus file names. - rm -f conftest.$ac_objext libconftest.a - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 - (eval $lt_ar_try) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - if test 0 -ne "$ac_status"; then - lt_cv_ar_at_file=@ - fi - fi - rm -f conftest.* libconftest.a - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 -$as_echo "$lt_cv_ar_at_file" >&6; } - -if test no = "$lt_cv_ar_at_file"; then - archiver_list_spec= -else - archiver_list_spec=$lt_cv_ar_at_file -fi - - - - - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_STRIP="strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -test -z "$STRIP" && STRIP=: - - - - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 -$as_echo "$ac_ct_RANLIB" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - RANLIB=$ac_ct_RANLIB - fi -else - RANLIB="$ac_cv_prog_RANLIB" -fi - -test -z "$RANLIB" && RANLIB=: - - - - - - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - bitrig* | openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" -fi - -case $host_os in - darwin*) - lock_old_archive_extraction=yes ;; - *) - lock_old_archive_extraction=no ;; -esac - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# Check for command to grab the raw symbol name followed by C symbol from nm. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 -$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } -if ${lt_cv_sys_global_symbol_pipe+:} false; then : - $as_echo_n "(cached) " >&6 -else - -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[BCDEGRST]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)' - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[BCDT]' - ;; -cygwin* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; -hpux*) - if test ia64 = "$host_cpu"; then - symcode='[ABCDEGRST]' - fi - ;; -irix* | nonstopux*) - symcode='[BCDEGRST]' - ;; -osf*) - symcode='[BCDEGQRST]' - ;; -solaris*) - symcode='[BDRT]' - ;; -sco3.2v5*) - symcode='[DT]' - ;; -sysv4.2uw2*) - symcode='[DT]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[ABDT]' - ;; -sysv4) - symcode='[DFNSTU]' - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[ABCDGIRSTW]' ;; -esac - -if test "$lt_cv_nm_interface" = "MS dumpbin"; then - # Gets list of data symbols to import. - lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" - # Adjust the below global symbol transforms to fixup imported variables. - lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" - lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" - lt_c_name_lib_hook="\ - -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ - -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" -else - # Disable hooks by default. - lt_cv_sys_global_symbol_to_import= - lt_cdecl_hook= - lt_c_name_hook= - lt_c_name_lib_hook= -fi - -# Transform an extracted symbol line into a proper C declaration. -# Some systems (esp. on ia64) link data and code symbols differently, -# so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="sed -n"\ -$lt_cdecl_hook\ -" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ -" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ -$lt_c_name_hook\ -" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ -" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" - -# Transform an extracted symbol line into symbol name with lib prefix and -# symbol address. -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ -$lt_c_name_lib_hook\ -" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ -" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ -" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# Try without a prefix underscore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - if test "$lt_cv_nm_interface" = "MS dumpbin"; then - # Fake it for dumpbin and say T for any non-static function, - # D for any global variable and I for any imported variable. - # Also find C++ and __fastcall symbols from MSVC++, - # which start with @ or ?. - lt_cv_sys_global_symbol_pipe="$AWK '"\ -" {last_section=section; section=\$ 3};"\ -" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ -" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ -" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ -" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ -" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ -" \$ 0!~/External *\|/{next};"\ -" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ -" {if(hide[section]) next};"\ -" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ -" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ -" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ -" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ -" ' prfx=^$ac_symprfx" - else - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - fi - lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext <<_LT_EOF -#ifdef __cplusplus -extern "C" { -#endif -char nm_test_var; -void nm_test_func(void); -void nm_test_func(void){} -#ifdef __cplusplus -} -#endif -int main(){nm_test_var='a';nm_test_func();return(0);} -_LT_EOF - - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - # Now try to grab the symbols. - nlist=conftest.nm - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 - (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if $GREP ' nm_test_var$' "$nlist" >/dev/null; then - if $GREP ' nm_test_func$' "$nlist" >/dev/null; then - cat <<_LT_EOF > conftest.$ac_ext -/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ -#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE -/* DATA imports from DLLs on WIN32 can't be const, because runtime - relocations are performed -- see ld's documentation on pseudo-relocs. */ -# define LT_DLSYM_CONST -#elif defined __osf__ -/* This system does not cope well with relocations in const data. */ -# define LT_DLSYM_CONST -#else -# define LT_DLSYM_CONST const -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -_LT_EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' - - cat <<_LT_EOF >> conftest.$ac_ext - -/* The mapping between symbol names and symbols. */ -LT_DLSYM_CONST struct { - const char *name; - void *address; -} -lt__PROGRAM__LTX_preloaded_symbols[] = -{ - { "@PROGRAM@", (void *) 0 }, -_LT_EOF - $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext - cat <<\_LT_EOF >> conftest.$ac_ext - {0, (void *) 0} -}; - -/* This works around a problem in FreeBSD linker */ -#ifdef FREEBSD_WORKAROUND -static const void *lt_preloaded_setup() { - return lt__PROGRAM__LTX_preloaded_symbols; -} -#endif - -#ifdef __cplusplus -} -#endif -_LT_EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_globsym_save_LIBS=$LIBS - lt_globsym_save_CFLAGS=$CFLAGS - LIBS=conftstm.$ac_objext - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 - (eval $ac_link) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s conftest$ac_exeext; then - pipe_works=yes - fi - LIBS=$lt_globsym_save_LIBS - CFLAGS=$lt_globsym_save_CFLAGS - else - echo "cannot find nm_test_func in $nlist" >&5 - fi - else - echo "cannot find nm_test_var in $nlist" >&5 - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 - fi - else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - fi - rm -rf conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test yes = "$pipe_works"; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done - -fi - -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 -$as_echo "failed" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 -$as_echo "ok" >&6; } -fi - -# Response file support. -if test "$lt_cv_nm_interface" = "MS dumpbin"; then - nm_file_list_spec='@' -elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then - nm_file_list_spec='@' -fi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 -$as_echo_n "checking for sysroot... " >&6; } - -# Check whether --with-sysroot was given. -if test "${with_sysroot+set}" = set; then : - withval=$with_sysroot; -else - with_sysroot=no -fi - - -lt_sysroot= -case $with_sysroot in #( - yes) - if test yes = "$GCC"; then - lt_sysroot=`$CC --print-sysroot 2>/dev/null` - fi - ;; #( - /*) - lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` - ;; #( - no|'') - ;; #( - *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 -$as_echo "$with_sysroot" >&6; } - as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 - ;; -esac - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 -$as_echo "${lt_sysroot:-no}" >&6; } - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 -$as_echo_n "checking for a working dd... " >&6; } -if ${ac_cv_path_lt_DD+:} false; then : - $as_echo_n "(cached) " >&6 -else - printf 0123456789abcdef0123456789abcdef >conftest.i -cat conftest.i conftest.i >conftest2.i -: ${lt_DD:=$DD} -if test -z "$lt_DD"; then - ac_path_lt_DD_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in dd; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_lt_DD" || continue -if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then - cmp -s conftest.i conftest.out \ - && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: -fi - $ac_path_lt_DD_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_lt_DD"; then - : - fi -else - ac_cv_path_lt_DD=$lt_DD -fi - -rm -f conftest.i conftest2.i conftest.out -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 -$as_echo "$ac_cv_path_lt_DD" >&6; } - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 -$as_echo_n "checking how to truncate binary pipes... " >&6; } -if ${lt_cv_truncate_bin+:} false; then : - $as_echo_n "(cached) " >&6 -else - printf 0123456789abcdef0123456789abcdef >conftest.i -cat conftest.i conftest.i >conftest2.i -lt_cv_truncate_bin= -if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then - cmp -s conftest.i conftest.out \ - && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" -fi -rm -f conftest.i conftest2.i conftest.out -test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 -$as_echo "$lt_cv_truncate_bin" >&6; } - - - - - - - -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -func_cc_basename () -{ - for cc_temp in $*""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac - done - func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` -} - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then : - enableval=$enable_libtool_lock; -fi - -test no = "$enable_libtool_lock" || enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out what ABI is being produced by ac_compile, and set mode - # options accordingly. - echo 'int i;' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE=32 - ;; - *ELF-64*) - HPUX_IA64_MODE=64 - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. - echo '#line '$LINENO' "configure"' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - if test yes = "$lt_cv_prog_gnu_ld"; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -mips64*-*linux*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. - echo '#line '$LINENO' "configure"' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - emul=elf - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - emul="${emul}32" - ;; - *64-bit*) - emul="${emul}64" - ;; - esac - case `/usr/bin/file conftest.$ac_objext` in - *MSB*) - emul="${emul}btsmip" - ;; - *LSB*) - emul="${emul}ltsmip" - ;; - esac - case `/usr/bin/file conftest.$ac_objext` in - *N32*) - emul="${emul}n32" - ;; - esac - LD="${LD-ld} -m $emul" - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ -s390*-*linux*|s390*-*tpf*|sparc*-*linux*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. Note that the listed cases only cover the - # situations where additional linker options are needed (such as when - # doing 32-bit compilation for a host where ld defaults to 64-bit, or - # vice versa); the common cases where no linker options are needed do - # not appear in the list. - echo 'int i;' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - case `/usr/bin/file conftest.o` in - *x86-64*) - LD="${LD-ld} -m elf32_x86_64" - ;; - *) - LD="${LD-ld} -m elf_i386" - ;; - esac - ;; - powerpc64le-*linux*) - LD="${LD-ld} -m elf32lppclinux" - ;; - powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - powerpcle-*linux*) - LD="${LD-ld} -m elf64lppc" - ;; - powerpc-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*|s390*-*tpf*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS -belf" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 -$as_echo_n "checking whether the C compiler needs -belf... " >&6; } -if ${lt_cv_cc_needs_belf+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - lt_cv_cc_needs_belf=yes -else - lt_cv_cc_needs_belf=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 -$as_echo "$lt_cv_cc_needs_belf" >&6; } - if test yes != "$lt_cv_cc_needs_belf"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS=$SAVE_CFLAGS - fi - ;; -*-*solaris*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. - echo 'int i;' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) - case $host in - i?86-*-solaris*|x86_64-*-solaris*) - LD="${LD-ld} -m elf_x86_64" - ;; - sparc*-*-solaris*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - # GNU ld 2.21 introduced _sol2 emulations. Use them if available. - if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then - LD=${LD-ld}_sol2 - fi - ;; - *) - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then - LD="${LD-ld} -64" - fi - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; -esac - -need_locks=$enable_libtool_lock - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. -set dummy ${ac_tool_prefix}mt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$MANIFEST_TOOL"; then - ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL -if test -n "$MANIFEST_TOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 -$as_echo "$MANIFEST_TOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_MANIFEST_TOOL"; then - ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL - # Extract the first word of "mt", so it can be a program name with args. -set dummy mt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_MANIFEST_TOOL"; then - ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL -if test -n "$ac_ct_MANIFEST_TOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 -$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_MANIFEST_TOOL" = x; then - MANIFEST_TOOL=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL - fi -else - MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" -fi - -test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 -$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } -if ${lt_cv_path_mainfest_tool+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_path_mainfest_tool=no - echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 - $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out - cat conftest.err >&5 - if $GREP 'Manifest Tool' conftest.out > /dev/null; then - lt_cv_path_mainfest_tool=yes - fi - rm -f conftest* -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 -$as_echo "$lt_cv_path_mainfest_tool" >&6; } -if test yes != "$lt_cv_path_mainfest_tool"; then - MANIFEST_TOOL=: -fi - - - - - - - case $host_os in - rhapsody* | darwin*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. -set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$DSYMUTIL"; then - ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -DSYMUTIL=$ac_cv_prog_DSYMUTIL -if test -n "$DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 -$as_echo "$DSYMUTIL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_DSYMUTIL"; then - ac_ct_DSYMUTIL=$DSYMUTIL - # Extract the first word of "dsymutil", so it can be a program name with args. -set dummy dsymutil; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_DSYMUTIL"; then - ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL -if test -n "$ac_ct_DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 -$as_echo "$ac_ct_DSYMUTIL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_DSYMUTIL" = x; then - DSYMUTIL=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DSYMUTIL=$ac_ct_DSYMUTIL - fi -else - DSYMUTIL="$ac_cv_prog_DSYMUTIL" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. -set dummy ${ac_tool_prefix}nmedit; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$NMEDIT"; then - ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -NMEDIT=$ac_cv_prog_NMEDIT -if test -n "$NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 -$as_echo "$NMEDIT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_NMEDIT"; then - ac_ct_NMEDIT=$NMEDIT - # Extract the first word of "nmedit", so it can be a program name with args. -set dummy nmedit; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_NMEDIT"; then - ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_NMEDIT="nmedit" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT -if test -n "$ac_ct_NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 -$as_echo "$ac_ct_NMEDIT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_NMEDIT" = x; then - NMEDIT=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - NMEDIT=$ac_ct_NMEDIT - fi -else - NMEDIT="$ac_cv_prog_NMEDIT" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. -set dummy ${ac_tool_prefix}lipo; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_LIPO+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$LIPO"; then - ac_cv_prog_LIPO="$LIPO" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_LIPO="${ac_tool_prefix}lipo" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -LIPO=$ac_cv_prog_LIPO -if test -n "$LIPO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 -$as_echo "$LIPO" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_LIPO"; then - ac_ct_LIPO=$LIPO - # Extract the first word of "lipo", so it can be a program name with args. -set dummy lipo; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_LIPO+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_LIPO"; then - ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_LIPO="lipo" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO -if test -n "$ac_ct_LIPO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 -$as_echo "$ac_ct_LIPO" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_LIPO" = x; then - LIPO=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - LIPO=$ac_ct_LIPO - fi -else - LIPO="$ac_cv_prog_LIPO" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. -set dummy ${ac_tool_prefix}otool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$OTOOL"; then - ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_OTOOL="${ac_tool_prefix}otool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -OTOOL=$ac_cv_prog_OTOOL -if test -n "$OTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 -$as_echo "$OTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_OTOOL"; then - ac_ct_OTOOL=$OTOOL - # Extract the first word of "otool", so it can be a program name with args. -set dummy otool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_OTOOL"; then - ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_OTOOL="otool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL -if test -n "$ac_ct_OTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 -$as_echo "$ac_ct_OTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_OTOOL" = x; then - OTOOL=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - OTOOL=$ac_ct_OTOOL - fi -else - OTOOL="$ac_cv_prog_OTOOL" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. -set dummy ${ac_tool_prefix}otool64; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OTOOL64+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$OTOOL64"; then - ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -OTOOL64=$ac_cv_prog_OTOOL64 -if test -n "$OTOOL64"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 -$as_echo "$OTOOL64" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_OTOOL64"; then - ac_ct_OTOOL64=$OTOOL64 - # Extract the first word of "otool64", so it can be a program name with args. -set dummy otool64; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_OTOOL64"; then - ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_OTOOL64="otool64" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 -if test -n "$ac_ct_OTOOL64"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 -$as_echo "$ac_ct_OTOOL64" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_OTOOL64" = x; then - OTOOL64=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - OTOOL64=$ac_ct_OTOOL64 - fi -else - OTOOL64="$ac_cv_prog_OTOOL64" -fi - - - - - - - - - - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 -$as_echo_n "checking for -single_module linker flag... " >&6; } -if ${lt_cv_apple_cc_single_mod+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_apple_cc_single_mod=no - if test -z "$LT_MULTI_MODULE"; then - # By default we will add the -single_module flag. You can override - # by either setting the environment variable LT_MULTI_MODULE - # non-empty at configure time, or by adding -multi_module to the - # link flags. - rm -rf libconftest.dylib* - echo "int foo(void){return 1;}" > conftest.c - echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ --dynamiclib -Wl,-single_module conftest.c" >&5 - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ - -dynamiclib -Wl,-single_module conftest.c 2>conftest.err - _lt_result=$? - # If there is a non-empty error log, and "single_module" - # appears in it, assume the flag caused a linker warning - if test -s conftest.err && $GREP single_module conftest.err; then - cat conftest.err >&5 - # Otherwise, if the output was created with a 0 exit code from - # the compiler, it worked. - elif test -f libconftest.dylib && test 0 = "$_lt_result"; then - lt_cv_apple_cc_single_mod=yes - else - cat conftest.err >&5 - fi - rm -rf libconftest.dylib* - rm -f conftest.* - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 -$as_echo "$lt_cv_apple_cc_single_mod" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 -$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } -if ${lt_cv_ld_exported_symbols_list+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ld_exported_symbols_list=no - save_LDFLAGS=$LDFLAGS - echo "_main" > conftest.sym - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - lt_cv_ld_exported_symbols_list=yes -else - lt_cv_ld_exported_symbols_list=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 -$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 -$as_echo_n "checking for -force_load linker flag... " >&6; } -if ${lt_cv_ld_force_load+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ld_force_load=no - cat > conftest.c << _LT_EOF -int forced_loaded() { return 2;} -_LT_EOF - echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 - $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 - echo "$AR cru libconftest.a conftest.o" >&5 - $AR cru libconftest.a conftest.o 2>&5 - echo "$RANLIB libconftest.a" >&5 - $RANLIB libconftest.a 2>&5 - cat > conftest.c << _LT_EOF -int main() { return 0;} -_LT_EOF - echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 - $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err - _lt_result=$? - if test -s conftest.err && $GREP force_load conftest.err; then - cat conftest.err >&5 - elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then - lt_cv_ld_force_load=yes - else - cat conftest.err >&5 - fi - rm -f conftest.err libconftest.a conftest conftest.c - rm -rf conftest.dSYM - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 -$as_echo "$lt_cv_ld_force_load" >&6; } - case $host_os in - rhapsody* | darwin1.[012]) - _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; - darwin1.*) - _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - darwin*) # darwin 5.x on - # if running on 10.5 or later, the deployment target defaults - # to the OS version, if on x86, and 10.4, the deployment - # target defaults to 10.4. Don't you love it? - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in - 10.0,*86*-darwin8*|10.0,*-darwin[91]*) - _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; - 10.[012][,.]*) - _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - 10.*) - _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; - esac - ;; - esac - if test yes = "$lt_cv_apple_cc_single_mod"; then - _lt_dar_single_mod='$single_module' - fi - if test yes = "$lt_cv_ld_exported_symbols_list"; then - _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' - else - _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' - fi - if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then - _lt_dsymutil='~$DSYMUTIL $lib || :' - else - _lt_dsymutil= - fi - ;; - esac - -# func_munge_path_list VARIABLE PATH -# ----------------------------------- -# VARIABLE is name of variable containing _space_ separated list of -# directories to be munged by the contents of PATH, which is string -# having a format: -# "DIR[:DIR]:" -# string "DIR[ DIR]" will be prepended to VARIABLE -# ":DIR[:DIR]" -# string "DIR[ DIR]" will be appended to VARIABLE -# "DIRP[:DIRP]::[DIRA:]DIRA" -# string "DIRP[ DIRP]" will be prepended to VARIABLE and string -# "DIRA[ DIRA]" will be appended to VARIABLE -# "DIR[:DIR]" -# VARIABLE will be replaced by "DIR[ DIR]" -func_munge_path_list () -{ - case x$2 in - x) - ;; - *:) - eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" - ;; - x:*) - eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" - ;; - *::*) - eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" - eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" - ;; - *) - eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" - ;; - esac -} - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - -else - ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -$as_echo "#define STDC_HEADERS 1" >>confdefs.h - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -for ac_header in dlfcn.h -do : - ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default -" -if test "x$ac_cv_header_dlfcn_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_DLFCN_H 1 -_ACEOF - -fi - -done - - - - - -# Set options - - - - enable_dlopen=no - - - enable_win32_dll=no - - - # Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then : - enableval=$enable_shared; p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else - enable_shared=yes -fi - - - - - - - - - - # Check whether --enable-static was given. -if test "${enable_static+set}" = set; then : - enableval=$enable_static; p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else - enable_static=yes -fi - - - - - - - - - - -# Check whether --with-pic was given. -if test "${with_pic+set}" = set; then : - withval=$with_pic; lt_p=${PACKAGE-default} - case $withval in - yes|no) pic_mode=$withval ;; - *) - pic_mode=default - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for lt_pkg in $withval; do - IFS=$lt_save_ifs - if test "X$lt_pkg" = "X$lt_p"; then - pic_mode=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else - pic_mode=default -fi - - - - - - - - - # Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then : - enableval=$enable_fast_install; p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else - enable_fast_install=yes -fi - - - - - - - - - shared_archive_member_spec= -case $host,$enable_shared in -power*-*-aix[5-9]*,yes) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 -$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } - -# Check whether --with-aix-soname was given. -if test "${with_aix_soname+set}" = set; then : - withval=$with_aix_soname; case $withval in - aix|svr4|both) - ;; - *) - as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 - ;; - esac - lt_cv_with_aix_soname=$with_aix_soname -else - if ${lt_cv_with_aix_soname+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_with_aix_soname=aix -fi - - with_aix_soname=$lt_cv_with_aix_soname -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 -$as_echo "$with_aix_soname" >&6; } - if test aix != "$with_aix_soname"; then - # For the AIX way of multilib, we name the shared archive member - # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', - # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. - # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, - # the AIX toolchain works better with OBJECT_MODE set (default 32). - if test 64 = "${OBJECT_MODE-32}"; then - shared_archive_member_spec=shr_64 - else - shared_archive_member_spec=shr - fi - fi - ;; -*) - with_aix_soname=aix - ;; -esac - - - - - - - - - - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS=$ltmain - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -test -z "$LN_S" && LN_S="ln -s" - - - - - - - - - - - - - - -if test -n "${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 -$as_echo_n "checking for objdir... " >&6; } -if ${lt_cv_objdir+:} false; then : - $as_echo_n "(cached) " >&6 -else - rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 -$as_echo "$lt_cv_objdir" >&6; } -objdir=$lt_cv_objdir - - - - - -cat >>confdefs.h <<_ACEOF -#define LT_OBJDIR "$lt_cv_objdir/" -_ACEOF - - - - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test set != "${COLLECT_NAMES+set}"; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Global variables: -ofile=libtool -can_build_shared=yes - -# All known linkers require a '.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a - -with_gnu_ld=$lt_cv_prog_gnu_ld - -old_CC=$CC -old_CFLAGS=$CFLAGS - -# Set sane defaults for various variables -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$LD" && LD=ld -test -z "$ac_objext" && ac_objext=o - -func_cc_basename $compiler -cc_basename=$func_cc_basename_result - - -# Only perform the check for file, if the check method requires it -test -z "$MAGIC_CMD" && MAGIC_CMD=file -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 -$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD=$MAGIC_CMD - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/${ac_tool_prefix}file"; then - lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD=$lt_cv_path_MAGIC_CMD - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <<_LT_EOF 1>&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -_LT_EOF - fi ;; - esac - fi - break - fi - done - IFS=$lt_save_ifs - MAGIC_CMD=$lt_save_MAGIC_CMD - ;; -esac -fi - -MAGIC_CMD=$lt_cv_path_MAGIC_CMD -if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - - - -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 -$as_echo_n "checking for file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD=$MAGIC_CMD - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/file"; then - lt_cv_path_MAGIC_CMD=$ac_dir/"file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD=$lt_cv_path_MAGIC_CMD - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <<_LT_EOF 1>&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -_LT_EOF - fi ;; - esac - fi - break - fi - done - IFS=$lt_save_ifs - MAGIC_CMD=$lt_save_MAGIC_CMD - ;; -esac -fi - -MAGIC_CMD=$lt_cv_path_MAGIC_CMD -if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - else - MAGIC_CMD=: - fi -fi - - fi - ;; -esac - -# Use C for the default configuration in the libtool script - -lt_save_CC=$CC -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -objext=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - - - - - - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - -# Save the default compiler, since it gets overwritten when the other -# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. -compiler_DEFAULT=$CC - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$RM conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$RM -r conftest* - - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - -lt_prog_compiler_no_builtin_flag= - -if test yes = "$GCC"; then - case $cc_basename in - nvcc*) - lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; - *) - lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; - esac - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } -if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } - -if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" -else - : -fi - -fi - - - - - - - lt_prog_compiler_wl= -lt_prog_compiler_pic= -lt_prog_compiler_static= - - - if test yes = "$GCC"; then - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_static='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test ia64 = "$host_cpu"; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - fi - lt_prog_compiler_pic='-fPIC' - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - lt_prog_compiler_pic='-fPIC' - ;; - m68k) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the '-m68020' flag to GCC prevents building anything better, - # like '-m68040'. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' - ;; - esac - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic='-DDLL_EXPORT' - case $host_os in - os2*) - lt_prog_compiler_static='$wl-static' - ;; - esac - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic='-fno-common' - ;; - - haiku*) - # PIC is the default for Haiku. - # The "-static" flag exists, but is broken. - lt_prog_compiler_static= - ;; - - hpux*) - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag - # sets the default TLS model and affects inlining. - case $host_cpu in - hppa*64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared=no - enable_shared=no - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - lt_prog_compiler_pic='-fPIC -shared' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic=-Kconform_pic - fi - ;; - - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - - case $cc_basename in - nvcc*) # Cuda Compiler Driver 2.2 - lt_prog_compiler_wl='-Xlinker ' - if test -n "$lt_prog_compiler_pic"; then - lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" - fi - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl='-Wl,' - if test ia64 = "$host_cpu"; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - else - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' - fi - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic='-fno-common' - case $cc_basename in - nagfor*) - # NAG Fortran compiler - lt_prog_compiler_wl='-Wl,-Wl,,' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' - case $host_os in - os2*) - lt_prog_compiler_static='$wl-static' - ;; - esac - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static='$wl-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static='-non_shared' - ;; - - linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - case $cc_basename in - # old Intel for x86_64, which still supported -KPIC. - ecc*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-static' - ;; - # icc used to be incompatible with GCC. - # ICC 10 doesn't accept -KPIC any more. - icc* | ifort*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fPIC' - lt_prog_compiler_static='-static' - ;; - # Lahey Fortran 8.1. - lf95*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='--shared' - lt_prog_compiler_static='--static' - ;; - nagfor*) - # NAG Fortran compiler - lt_prog_compiler_wl='-Wl,-Wl,,' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; - tcc*) - # Fabrice Bellard et al's Tiny C Compiler - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fPIC' - lt_prog_compiler_static='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fpic' - lt_prog_compiler_static='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - xl* | bgxl* | bgf* | mpixl*) - # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-qpic' - lt_prog_compiler_static='-qstaticlink' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='' - ;; - *Sun\ F* | *Sun*Fortran*) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='-Qoption ld ' - ;; - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='-Wl,' - ;; - *Intel*\ [CF]*Compiler*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fPIC' - lt_prog_compiler_static='-static' - ;; - *Portland\ Group*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fpic' - lt_prog_compiler_static='-Bstatic' - ;; - esac - ;; - esac - ;; - - newsos6) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - lt_prog_compiler_pic='-fPIC -shared' - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - case $cc_basename in - f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) - lt_prog_compiler_wl='-Qoption ld ';; - *) - lt_prog_compiler_wl='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl='-Qoption ld ' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic='-Kconform_pic' - lt_prog_compiler_static='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_can_build_shared=no - ;; - - uts4*) - lt_prog_compiler_pic='-pic' - lt_prog_compiler_static='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared=no - ;; - esac - fi - -case $host_os in - # For platforms that do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic= - ;; - *) - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" - ;; -esac - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } -if ${lt_cv_prog_compiler_pic+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_pic=$lt_prog_compiler_pic -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 -$as_echo "$lt_cv_prog_compiler_pic" >&6; } -lt_prog_compiler_pic=$lt_cv_prog_compiler_pic - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } -if ${lt_cv_prog_compiler_pic_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_pic_works=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_pic_works=yes - fi - fi - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 -$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } - -if test yes = "$lt_cv_prog_compiler_pic_works"; then - case $lt_prog_compiler_pic in - "" | " "*) ;; - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; - esac -else - lt_prog_compiler_pic= - lt_prog_compiler_can_build_shared=no -fi - -fi - - - - - - - - - - - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } -if ${lt_cv_prog_compiler_static_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_static_works=no - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_static_works=yes - fi - else - lt_cv_prog_compiler_static_works=yes - fi - fi - $RM -r conftest* - LDFLAGS=$save_LDFLAGS - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 -$as_echo "$lt_cv_prog_compiler_static_works" >&6; } - -if test yes = "$lt_cv_prog_compiler_static_works"; then - : -else - lt_prog_compiler_static= -fi - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_c_o=no - $RM -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o=yes - fi - fi - chmod u+w . 2>&5 - $RM conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files - $RM out/* && rmdir out - cd .. - $RM -r conftest - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_c_o=no - $RM -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o=yes - fi - fi - chmod u+w . 2>&5 - $RM conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files - $RM out/* && rmdir out - cd .. - $RM -r conftest - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } - - - - -hard_links=nottested -if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then - # do not overwrite the value of need_locks provided by the user - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 -$as_echo_n "checking if we can lock with hard links... " >&6; } - hard_links=yes - $RM conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 -$as_echo "$hard_links" >&6; } - if test no = "$hard_links"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 -$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } - - runpath_var= - allow_undefined_flag= - always_export_symbols=no - archive_cmds= - archive_expsym_cmds= - compiler_needs_object=no - enable_shared_with_static_runtimes=no - export_dynamic_flag_spec= - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - hardcode_automatic=no - hardcode_direct=no - hardcode_direct_absolute=no - hardcode_libdir_flag_spec= - hardcode_libdir_separator= - hardcode_minus_L=no - hardcode_shlibpath_var=unsupported - inherit_rpath=no - link_all_deplibs=unknown - module_cmds= - module_expsym_cmds= - old_archive_from_new_cmds= - old_archive_from_expsyms_cmds= - thread_safe_flag_spec= - whole_archive_flag_spec= - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ' (' and ')$', so one must not match beginning or - # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', - # as well as any symbol that contains 'd'. - exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - # Exclude shared library initialization/finalization symbols. - extract_expsyms_cmds= - - case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test yes != "$GCC"; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd* | bitrig*) - with_gnu_ld=no - ;; - linux* | k*bsd*-gnu | gnu*) - link_all_deplibs=no - ;; - esac - - ld_shlibs=yes - - # On some targets, GNU ld is compatible enough with the native linker - # that we're better off using the native interface for both. - lt_use_gnu_ld_interface=no - if test yes = "$with_gnu_ld"; then - case $host_os in - aix*) - # The AIX port of GNU ld has always aspired to compatibility - # with the native linker. However, as the warning in the GNU ld - # block says, versions before 2.19.5* couldn't really create working - # shared libraries, regardless of the interface used. - case `$LD -v 2>&1` in - *\ \(GNU\ Binutils\)\ 2.19.5*) ;; - *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; - *\ \(GNU\ Binutils\)\ [3-9]*) ;; - *) - lt_use_gnu_ld_interface=yes - ;; - esac - ;; - *) - lt_use_gnu_ld_interface=yes - ;; - esac - fi - - if test yes = "$lt_use_gnu_ld_interface"; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='$wl' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - export_dynamic_flag_spec='$wl--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' - else - whole_archive_flag_spec= - fi - supports_anon_versioning=no - case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in - *GNU\ gold*) supports_anon_versioning=yes ;; - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix[3-9]*) - # On AIX/PPC, the GNU linker is very broken - if test ia64 != "$host_cpu"; then - ld_shlibs=no - cat <<_LT_EOF 1>&2 - -*** Warning: the GNU linker, at least up to release 2.19, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to install binutils -*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. -*** You will then need to restart the configuration process. - -_LT_EOF - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='' - ;; - m68k) - archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - ;; - esac - ;; - - beos*) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - else - ld_shlibs=no - fi - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - export_dynamic_flag_spec='$wl--export-all-symbols' - allow_undefined_flag=unsupported - always_export_symbols=no - enable_shared_with_static_runtimes=yes - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' - exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' - - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file, use it as - # is; otherwise, prepend EXPORTS... - archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs=no - fi - ;; - - haiku*) - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - link_all_deplibs=yes - ;; - - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - allow_undefined_flag=unsupported - shrext_cmds=.dll - archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - prefix_cmds="$SED"~ - if test EXPORTS = "`$SED 1q $export_symbols`"; then - prefix_cmds="$prefix_cmds -e 1d"; - fi~ - prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ - cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' - enable_shared_with_static_runtimes=yes - ;; - - interix[3-9]*) - hardcode_direct=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='$wl-rpath,$libdir' - export_dynamic_flag_spec='$wl-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) - tmp_diet=no - if test linux-dietlibc = "$host_os"; then - case $cc_basename in - diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) - esac - fi - if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ - && test no = "$tmp_diet" - then - tmp_addflag=' $pic_flag' - tmp_sharedflag='-shared' - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95* | pgfortran*) - # Portland Group f77 and f90 compilers - whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - lf95*) # Lahey Fortran 8.1 - whole_archive_flag_spec= - tmp_sharedflag='--shared' ;; - nagfor*) # NAGFOR 5.3 - tmp_sharedflag='-Wl,-shared' ;; - xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) - tmp_sharedflag='-qmkshrobj' - tmp_addflag= ;; - nvcc*) # Cuda Compiler Driver 2.2 - whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - compiler_needs_object=yes - ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - compiler_needs_object=yes - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - esac - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - - if test yes = "$supports_anon_versioning"; then - archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' - fi - - case $cc_basename in - tcc*) - export_dynamic_flag_spec='-rdynamic' - ;; - xlf* | bgf* | bgxlf* | mpixlf*) - # IBM XL Fortran 10.1 on PPC cannot create shared libs itself - whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' - if test yes = "$supports_anon_versioning"; then - archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' - fi - ;; - esac - else - ld_shlibs=no - fi - ;; - - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - cat <<_LT_EOF 1>&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - *) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - - if test no = "$ld_shlibs"; then - runpath_var= - hardcode_libdir_flag_spec= - export_dynamic_flag_spec= - whole_archive_flag_spec= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag=unsupported - always_export_symbols=yes - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L=yes - if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct=unsupported - fi - ;; - - aix[4-9]*) - if test ia64 = "$host_cpu"; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag= - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to GNU nm, but means don't demangle to AIX nm. - # Without the "-l" option, or with the "-B" option, AIX nm treats - # weak defined symbols like other global defined symbols, whereas - # GNU nm marks them as "W". - # While the 'weak' keyword is ignored in the Export File, we need - # it in the Import File for the 'aix-soname' feature, so we have - # to replace the "-B" option with "-P" for AIX nm. - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # have runtime linking enabled, and use it for executables. - # For shared libraries, we enable/disable runtime linking - # depending on the kind of the shared library created - - # when "with_aix_soname,aix_use_runtimelinking" is: - # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables - # "aix,yes" lib.so shared, rtl:yes, for executables - # lib.a static archive - # "both,no" lib.so.V(shr.o) shared, rtl:yes - # lib.a(lib.so.V) shared, rtl:no, for executables - # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables - # lib.a(lib.so.V) shared, rtl:no - # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables - # lib.a static archive - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) - for ld_flag in $LDFLAGS; do - if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then - aix_use_runtimelinking=yes - break - fi - done - if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then - # With aix-soname=svr4, we create the lib.so.V shared archives only, - # so we don't have lib.a shared libs to link our executables. - # We have to force runtime linking in this case. - aix_use_runtimelinking=yes - LDFLAGS="$LDFLAGS -Wl,-brtl" - fi - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds='' - hardcode_direct=yes - hardcode_direct_absolute=yes - hardcode_libdir_separator=':' - link_all_deplibs=yes - file_list_spec='$wl-f,' - case $with_aix_soname,$aix_use_runtimelinking in - aix,*) ;; # traditional, no import file - svr4,* | *,yes) # use import file - # The Import File defines what to hardcode. - hardcode_direct=no - hardcode_direct_absolute=no - ;; - esac - - if test yes = "$GCC"; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`$CC -print-prog-name=collect2` - if test -f "$collect2name" && - strings "$collect2name" | $GREP resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= - fi - ;; - esac - shared_flag='-shared' - if test yes = "$aix_use_runtimelinking"; then - shared_flag="$shared_flag "'$wl-G' - fi - # Need to ensure runtime linking is disabled for the traditional - # shared library, or the linker may eventually find shared libraries - # /with/ Import File - we do not want to mix them. - shared_flag_aix='-shared' - shared_flag_svr4='-shared $wl-G' - else - # not using gcc - if test ia64 = "$host_cpu"; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test yes = "$aix_use_runtimelinking"; then - shared_flag='$wl-G' - else - shared_flag='$wl-bM:SRE' - fi - shared_flag_aix='$wl-bM:SRE' - shared_flag_svr4='$wl-G' - fi - fi - - export_dynamic_flag_spec='$wl-bexpall' - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols=yes - if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag='-berok' - # Determine the default libpath from the value encoded in an - # empty executable. - if test set = "${lt_cv_aix_libpath+set}"; then - aix_libpath=$lt_cv_aix_libpath -else - if ${lt_cv_aix_libpath_+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - - lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\([^ ]*\) *$/\1/ - p - } - }' - lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - # Check for a 64-bit object if we didn't find anything. - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - fi -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_=/usr/lib:/lib - fi - -fi - - aix_libpath=$lt_cv_aix_libpath_ -fi - - hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag - else - if test ia64 = "$host_cpu"; then - hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' - allow_undefined_flag="-z nodefs" - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an - # empty executable. - if test set = "${lt_cv_aix_libpath+set}"; then - aix_libpath=$lt_cv_aix_libpath -else - if ${lt_cv_aix_libpath_+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - - lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\([^ ]*\) *$/\1/ - p - } - }' - lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - # Check for a 64-bit object if we didn't find anything. - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - fi -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_=/usr/lib:/lib - fi - -fi - - aix_libpath=$lt_cv_aix_libpath_ -fi - - hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag=' $wl-bernotok' - allow_undefined_flag=' $wl-berok' - if test yes = "$with_gnu_ld"; then - # We only use this code for GNU lds that support --whole-archive. - whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' - else - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec='$convenience' - fi - archive_cmds_need_lc=yes - archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' - # -brtl affects multiple linker settings, -berok does not and is overridden later - compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' - if test svr4 != "$with_aix_soname"; then - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' - fi - if test aix != "$with_aix_soname"; then - archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' - else - # used by -dlpreopen to get the symbols - archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' - fi - archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' - fi - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='' - ;; - m68k) - archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - ;; - esac - ;; - - bsdi[45]*) - export_dynamic_flag_spec=-rdynamic - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - case $cc_basename in - cl*) - # Native MSVC - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - always_export_symbols=yes - file_list_spec='@' - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=.dll - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' - archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then - cp "$export_symbols" "$output_objdir/$soname.def"; - echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; - else - $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; - fi~ - $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ - linknames=' - # The linker will not automatically build a static lib if we build a DLL. - # _LT_TAGVAR(old_archive_from_new_cmds, )='true' - enable_shared_with_static_runtimes=yes - exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - # Don't use ranlib - old_postinstall_cmds='chmod 644 $oldlib' - postlink_cmds='lt_outputfile="@OUTPUT@"~ - lt_tool_outputfile="@TOOL_OUTPUT@"~ - case $lt_outputfile in - *.exe|*.EXE) ;; - *) - lt_outputfile=$lt_outputfile.exe - lt_tool_outputfile=$lt_tool_outputfile.exe - ;; - esac~ - if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then - $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; - $RM "$lt_outputfile.manifest"; - fi' - ;; - *) - # Assume MSVC wrapper - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=.dll - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_from_new_cmds='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' - enable_shared_with_static_runtimes=yes - ;; - esac - ;; - - darwin* | rhapsody*) - - - archive_cmds_need_lc=no - hardcode_direct=no - hardcode_automatic=yes - hardcode_shlibpath_var=unsupported - if test yes = "$lt_cv_ld_force_load"; then - whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' - - else - whole_archive_flag_spec='' - fi - link_all_deplibs=yes - allow_undefined_flag=$_lt_dar_allow_undefined - case $cc_basename in - ifort*|nagfor*) _lt_dar_can_shared=yes ;; - *) _lt_dar_can_shared=$GCC ;; - esac - if test yes = "$_lt_dar_can_shared"; then - output_verbose_link_cmd=func_echo_all - archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" - module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" - archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" - module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" - - else - ld_shlibs=no - fi - - ;; - - dgux*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2.*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - hpux9*) - if test yes = "$GCC"; then - archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' - else - archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec='$wl+b $wl$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - export_dynamic_flag_spec='$wl-E' - ;; - - hpux10*) - if test yes,no = "$GCC,$with_gnu_ld"; then - archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test no = "$with_gnu_ld"; then - hardcode_libdir_flag_spec='$wl+b $wl$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - hardcode_direct_absolute=yes - export_dynamic_flag_spec='$wl-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - fi - ;; - - hpux11*) - if test yes,no = "$GCC,$with_gnu_ld"; then - case $host_cpu in - hppa*64*) - archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - - # Older versions of the 11.00 compiler do not understand -b yet - # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 -$as_echo_n "checking if $CC understands -b... " >&6; } -if ${lt_cv_prog_compiler__b+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler__b=no - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS -b" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler__b=yes - fi - else - lt_cv_prog_compiler__b=yes - fi - fi - $RM -r conftest* - LDFLAGS=$save_LDFLAGS - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 -$as_echo "$lt_cv_prog_compiler__b" >&6; } - -if test yes = "$lt_cv_prog_compiler__b"; then - archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' -else - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' -fi - - ;; - esac - fi - if test no = "$with_gnu_ld"; then - hardcode_libdir_flag_spec='$wl+b $wl$libdir' - hardcode_libdir_separator=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_direct=no - hardcode_shlibpath_var=no - ;; - *) - hardcode_direct=yes - hardcode_direct_absolute=yes - export_dynamic_flag_spec='$wl-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test yes = "$GCC"; then - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - # Try to use the -exported_symbol ld option, if it does not - # work, assume that -exports_file does not work either and - # implicitly export all symbols. - # This should be the same for all languages, so no per-tag cache variable. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 -$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } -if ${lt_cv_irix_exported_symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -int foo (void) { return 0; } -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - lt_cv_irix_exported_symbol=yes -else - lt_cv_irix_exported_symbol=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 -$as_echo "$lt_cv_irix_exported_symbol" >&6; } - if test yes = "$lt_cv_irix_exported_symbol"; then - archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' - fi - link_all_deplibs=no - else - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' - fi - archive_cmds_need_lc='no' - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - hardcode_libdir_separator=: - inherit_rpath=yes - link_all_deplibs=yes - ;; - - linux*) - case $cc_basename in - tcc*) - # Fabrice Bellard et al's Tiny C Compiler - ld_shlibs=yes - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - newsos6) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - hardcode_libdir_separator=: - hardcode_shlibpath_var=no - ;; - - *nto* | *qnx*) - ;; - - openbsd* | bitrig*) - if test -f /usr/libexec/ld.so; then - hardcode_direct=yes - hardcode_shlibpath_var=no - hardcode_direct_absolute=yes - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec='$wl-rpath,$libdir' - export_dynamic_flag_spec='$wl-E' - else - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='$wl-rpath,$libdir' - fi - else - ld_shlibs=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - allow_undefined_flag=unsupported - shrext_cmds=.dll - archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - prefix_cmds="$SED"~ - if test EXPORTS = "`$SED 1q $export_symbols`"; then - prefix_cmds="$prefix_cmds -e 1d"; - fi~ - prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ - cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' - enable_shared_with_static_runtimes=yes - ;; - - osf3*) - if test yes = "$GCC"; then - allow_undefined_flag=' $wl-expect_unresolved $wl\*' - archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - fi - archive_cmds_need_lc='no' - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - hardcode_libdir_separator=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test yes = "$GCC"; then - allow_undefined_flag=' $wl-expect_unresolved $wl\*' - archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec='-rpath $libdir' - fi - archive_cmds_need_lc='no' - hardcode_libdir_separator=: - ;; - - solaris*) - no_undefined_flag=' -z defs' - if test yes = "$GCC"; then - wlarc='$wl' - archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - else - case `$CC -V 2>&1` in - *"Compilers 5.0"*) - wlarc='' - archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' - ;; - *) - wlarc='$wl' - archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - ;; - esac - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_shlibpath_var=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands '-z linker_flag'. GCC discards it without '$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test yes = "$GCC"; then - whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' - else - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs=yes - ;; - - sunos4*) - if test sequent = "$host_vendor"; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec='-L$libdir' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds='$CC -r -o $output$reload_objs' - hardcode_direct=no - ;; - motorola) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - ;; - - sysv4.3*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - export_dynamic_flag_spec='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag='$wl-z,text' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - runpath_var='LD_RUN_PATH' - - if test yes = "$GCC"; then - archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We CANNOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag='$wl-z,text' - allow_undefined_flag='$wl-z,nodefs' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='$wl-R,$libdir' - hardcode_libdir_separator=':' - link_all_deplibs=yes - export_dynamic_flag_spec='$wl-Bexport' - runpath_var='LD_RUN_PATH' - - if test yes = "$GCC"; then - archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - *) - ld_shlibs=no - ;; - esac - - if test sni = "$host_vendor"; then - case $host in - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) - export_dynamic_flag_spec='$wl-Blargedynsym' - ;; - esac - fi - fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 -$as_echo "$ld_shlibs" >&6; } -test no = "$ld_shlibs" && can_build_shared=no - -with_gnu_ld=$with_gnu_ld - - - - - - - - - - - - - - - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc=yes - - if test yes,yes = "$GCC,$enable_shared"; then - case $archive_cmds in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } -if ${lt_cv_archive_cmds_need_lc+:} false; then : - $as_echo_n "(cached) " >&6 -else - $RM conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl - pic_flag=$lt_prog_compiler_pic - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag - allow_undefined_flag= - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 - (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - then - lt_cv_archive_cmds_need_lc=no - else - lt_cv_archive_cmds_need_lc=yes - fi - allow_undefined_flag=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 -$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } - archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc - ;; - esac - fi - ;; -esac - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 -$as_echo_n "checking dynamic linker characteristics... " >&6; } - -if test yes = "$GCC"; then - case $host_os in - darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; - *) lt_awk_arg='/^libraries:/' ;; - esac - case $host_os in - mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; - *) lt_sed_strip_eq='s|=/|/|g' ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` - case $lt_search_path_spec in - *\;*) - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` - ;; - *) - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` - ;; - esac - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary... - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - # ...but if some path component already ends with the multilib dir we assume - # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). - case "$lt_multi_os_dir; $lt_search_path_spec " in - "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) - lt_multi_os_dir= - ;; - esac - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" - elif test -n "$lt_multi_os_dir"; then - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' -BEGIN {RS = " "; FS = "/|\n";} { - lt_foo = ""; - lt_count = 0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo = "/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[lt_foo]++; } - if (lt_freq[lt_foo] == 1) { print lt_foo; } -}'` - # AWK program above erroneously prepends '/' to C:/dos/paths - # for these hosts. - case $host_os in - mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ - $SED 's|/\([A-Za-z]:\)|\1|g'` ;; - esac - sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=.so -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - - - -case $host_os in -aix3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='$libname$release$shared_ext$major' - ;; - -aix[4-9]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test ia64 = "$host_cpu"; then - # AIX 5 supports IA64 - library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line '#! .'. This would cause the generated library to - # depend on '.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # Using Import Files as archive members, it is possible to support - # filename-based versioning of shared library archives on AIX. While - # this would work for both with and without runtime linking, it will - # prevent static linking of such archives. So we do filename-based - # shared library versioning with .so extension only, which is used - # when both runtime linking and shared linking is enabled. - # Unfortunately, runtime linking may impact performance, so we do - # not want this to be the default eventually. Also, we use the - # versioned .so libs for executables only if there is the -brtl - # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. - # To allow for filename-based versioning support, we need to create - # libNAME.so.V as an archive file, containing: - # *) an Import File, referring to the versioned filename of the - # archive as well as the shared archive member, telling the - # bitwidth (32 or 64) of that shared object, and providing the - # list of exported symbols of that shared object, eventually - # decorated with the 'weak' keyword - # *) the shared object with the F_LOADONLY flag set, to really avoid - # it being seen by the linker. - # At run time we better use the real file rather than another symlink, - # but for link time we create the symlink libNAME.so -> libNAME.so.V - - case $with_aix_soname,$aix_use_runtimelinking in - # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - aix,yes) # traditional libtool - dynamic_linker='AIX unversionable lib.so' - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - ;; - aix,no) # traditional AIX only - dynamic_linker='AIX lib.a(lib.so.V)' - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='$libname$release.a $libname.a' - soname_spec='$libname$release$shared_ext$major' - ;; - svr4,*) # full svr4 only - dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" - library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' - # We do not specify a path in Import Files, so LIBPATH fires. - shlibpath_overrides_runpath=yes - ;; - *,yes) # both, prefer svr4 - dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" - library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' - # unpreferred sharedlib libNAME.a needs extra handling - postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' - postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' - # We do not specify a path in Import Files, so LIBPATH fires. - shlibpath_overrides_runpath=yes - ;; - *,no) # both, prefer aix - dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" - library_names_spec='$libname$release.a $libname.a' - soname_spec='$libname$release$shared_ext$major' - # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling - postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' - postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' - ;; - esac - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - case $host_cpu in - powerpc) - # Since July 2007 AmigaOS4 officially supports .so libraries. - # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - ;; - m68k) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - esac - ;; - -beos*) - library_names_spec='$libname$shared_ext' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=.dll - need_version=no - need_lib_prefix=no - - case $GCC,$cc_basename in - yes,*) - # gcc - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname~ - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; - fi' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' - ;; - esac - dynamic_linker='Win32 ld.exe' - ;; - - *,cl*) - # Native MSVC - libname_spec='$name' - soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' - library_names_spec='$libname.dll.lib' - - case $build_os in - mingw*) - sys_lib_search_path_spec= - lt_save_ifs=$IFS - IFS=';' - for lt_path in $LIB - do - IFS=$lt_save_ifs - # Let DOS variable expansion print the short 8.3 style file name. - lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` - sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" - done - IFS=$lt_save_ifs - # Convert to MSYS style. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` - ;; - cygwin*) - # Convert to unix form, then to dos form, then back to unix form - # but this time dos style (no spaces!) so that the unix form looks - # like /cygdrive/c/PROGRA~1:/cygdr... - sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` - sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` - sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - ;; - *) - sys_lib_search_path_spec=$LIB - if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # FIXME: find the short name or the path components, as spaces are - # common. (e.g. "Program Files" -> "PROGRA~1") - ;; - esac - - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - dynamic_linker='Win32 link.exe' - ;; - - *) - # Assume MSVC wrapper - library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' - dynamic_linker='Win32 ld.exe' - ;; - esac - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' - soname_spec='$libname$release$major$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[23].*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2.*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -haiku*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - dynamic_linker="$host_os runtime_loader" - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LIBRARY_PATH - shlibpath_overrides_runpath=no - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - if test 32 = "$HPUX_IA64_MODE"; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - sys_lib_dlsearch_path_spec=/usr/lib/hpux32 - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - sys_lib_dlsearch_path_spec=/usr/lib/hpux64 - fi - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555, ... - postinstall_cmds='chmod 555 $lib' - # or fails outright, so override atomically: - install_override_mode=555 - ;; - -interix[3-9]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test yes = "$lt_cv_prog_gnu_ld"; then - version_type=linux # correct to gnu/linux during the next big refactor - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='$libname$release$shared_ext$major' - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" - sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -linux*android*) - version_type=none # Android doesn't support versioned libraries. - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext' - soname_spec='$libname$release$shared_ext' - finish_cmds= - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - dynamic_linker='Android linker' - # Don't embed -rpath directories since the linker doesn't support them. - hardcode_libdir_flag_spec='-L$libdir' - ;; - -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - - # Some binutils ld are patched to set DT_RUNPATH - if ${lt_cv_shlibpath_overrides_runpath+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_shlibpath_overrides_runpath=no - save_LDFLAGS=$LDFLAGS - save_libdir=$libdir - eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ - LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : - lt_cv_shlibpath_overrides_runpath=yes -fi -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS - libdir=$save_libdir - -fi - - shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath - - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Ideally, we could use ldconfig to report *all* directores which are - # searched for libraries, however this is still not possible. Aside from not - # being certain /sbin/ldconfig is available, command - # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, - # even though it is searched at run-time. Try to do the best guess by - # appending ld.so.conf contents (and includes) to the search path. - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsdelf*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='NetBSD ld.elf_so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -*nto* | *qnx*) - version_type=qnx - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='ldqnx.so' - ;; - -openbsd* | bitrig*) - version_type=sunos - sys_lib_dlsearch_path_spec=/usr/lib - need_lib_prefix=no - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then - need_version=no - else - need_version=yes - fi - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -os2*) - libname_spec='$name' - version_type=windows - shrext_cmds=.dll - need_version=no - need_lib_prefix=no - # OS/2 can only load a DLL with a base name of 8 characters or less. - soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; - v=$($ECHO $release$versuffix | tr -d .-); - n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); - $ECHO $n$v`$shared_ext' - library_names_spec='${libname}_dll.$libext' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=BEGINLIBPATH - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname~ - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; - fi' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='$libname$release$shared_ext$major' - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test yes = "$with_gnu_ld"; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec; then - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' - soname_spec='$libname$shared_ext.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=sco - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - if test yes = "$with_gnu_ld"; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -tpf*) - # TPF is a cross-target only. Preferred cross-host = GNU/Linux. - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -uts4*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 -$as_echo "$dynamic_linker" >&6; } -test no = "$dynamic_linker" && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test yes = "$GCC"; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then - sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec -fi - -if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then - sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec -fi - -# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... -configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec - -# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code -func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" - -# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool -configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 -$as_echo_n "checking how to hardcode library paths into programs... " >&6; } -hardcode_action= -if test -n "$hardcode_libdir_flag_spec" || - test -n "$runpath_var" || - test yes = "$hardcode_automatic"; then - - # We can hardcode non-existent directories. - if test no != "$hardcode_direct" && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && - test no != "$hardcode_minus_L"; then - # Linking always hardcodes the temporary library directory. - hardcode_action=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action=unsupported -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 -$as_echo "$hardcode_action" >&6; } - -if test relink = "$hardcode_action" || - test yes = "$inherit_rpath"; then - # Fast installation is not supported - enable_fast_install=no -elif test yes = "$shlibpath_overrides_runpath" || - test no = "$enable_shared"; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - - - - - - if test yes != "$enable_dlopen"; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - - case $host_os in - beos*) - lt_cv_dlopen=load_add_on - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - - mingw* | pw32* | cegcc*) - lt_cv_dlopen=LoadLibrary - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen=dlopen - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_dl_dlopen=yes -else - ac_cv_lib_dl_dlopen=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : - lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else - - lt_cv_dlopen=dyld - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - -fi - - ;; - - tpf*) - # Don't try to run any link tests for TPF. We know it's impossible - # because TPF is a cross-compiler, and we know how we open DSOs. - lt_cv_dlopen=dlopen - lt_cv_dlopen_libs= - lt_cv_dlopen_self=no - ;; - - *) - ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" -if test "x$ac_cv_func_shl_load" = xyes; then : - lt_cv_dlopen=shl_load -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 -$as_echo_n "checking for shl_load in -ldld... " >&6; } -if ${ac_cv_lib_dld_shl_load+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_dld_shl_load=yes -else - ac_cv_lib_dld_shl_load=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 -$as_echo "$ac_cv_lib_dld_shl_load" >&6; } -if test "x$ac_cv_lib_dld_shl_load" = xyes; then : - lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld -else - ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" -if test "x$ac_cv_func_dlopen" = xyes; then : - lt_cv_dlopen=dlopen -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_dl_dlopen=yes -else - ac_cv_lib_dl_dlopen=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : - lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 -$as_echo_n "checking for dlopen in -lsvld... " >&6; } -if ${ac_cv_lib_svld_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsvld $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_svld_dlopen=yes -else - ac_cv_lib_svld_dlopen=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 -$as_echo "$ac_cv_lib_svld_dlopen" >&6; } -if test "x$ac_cv_lib_svld_dlopen" = xyes; then : - lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 -$as_echo_n "checking for dld_link in -ldld... " >&6; } -if ${ac_cv_lib_dld_dld_link+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dld_link (); -int -main () -{ -return dld_link (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_dld_dld_link=yes -else - ac_cv_lib_dld_dld_link=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 -$as_echo "$ac_cv_lib_dld_dld_link" >&6; } -if test "x$ac_cv_lib_dld_dld_link" = xyes; then : - lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld -fi - - -fi - - -fi - - -fi - - -fi - - -fi - - ;; - esac - - if test no = "$lt_cv_dlopen"; then - enable_dlopen=no - else - enable_dlopen=yes - fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS=$CPPFLAGS - test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS=$LDFLAGS - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS=$LIBS - LIBS="$lt_cv_dlopen_libs $LIBS" - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 -$as_echo_n "checking whether a program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test yes = "$cross_compiling"; then : - lt_cv_dlopen_self=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext <<_LT_EOF -#line $LINENO "configure" -#include "confdefs.h" - -#if HAVE_DLFCN_H -#include -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -/* When -fvisibility=hidden is used, assume the code has been annotated - correspondingly for the symbols needed. */ -#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) -int fnord () __attribute__((visibility("default"))); -#endif - -int fnord () { return 42; } -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else - { - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - else puts (dlerror ()); - } - /* dlclose (self); */ - } - else - puts (dlerror ()); - - return status; -} -_LT_EOF - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 - (eval $ac_link) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self=no - fi -fi -rm -fr conftest* - - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 -$as_echo "$lt_cv_dlopen_self" >&6; } - - if test yes = "$lt_cv_dlopen_self"; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 -$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self_static+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test yes = "$cross_compiling"; then : - lt_cv_dlopen_self_static=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext <<_LT_EOF -#line $LINENO "configure" -#include "confdefs.h" - -#if HAVE_DLFCN_H -#include -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -/* When -fvisibility=hidden is used, assume the code has been annotated - correspondingly for the symbols needed. */ -#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) -int fnord () __attribute__((visibility("default"))); -#endif - -int fnord () { return 42; } -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else - { - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - else puts (dlerror ()); - } - /* dlclose (self); */ - } - else - puts (dlerror ()); - - return status; -} -_LT_EOF - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 - (eval $ac_link) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self_static=no - fi -fi -rm -fr conftest* - - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 -$as_echo "$lt_cv_dlopen_self_static" >&6; } - fi - - CPPFLAGS=$save_CPPFLAGS - LDFLAGS=$save_LDFLAGS - LIBS=$save_LIBS - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi - - - - - - - - - - - - - - - - - -striplib= -old_striplib= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 -$as_echo_n "checking whether stripping libraries is possible... " >&6; } -if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP"; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - fi - ;; - *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ;; - esac -fi - - - - - - - - - - - - - # Report what library types will actually be built - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 -$as_echo_n "checking if libtool supports shared libraries... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 -$as_echo "$can_build_shared" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 -$as_echo_n "checking whether to build shared libraries... " >&6; } - test no = "$can_build_shared" && enable_shared=no - - # On AIX, shared libraries and static libraries use the same namespace, and - # are all built from PIC. - case $host_os in - aix3*) - test yes = "$enable_shared" && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - - aix[4-9]*) - if test ia64 != "$host_cpu"; then - case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in - yes,aix,yes) ;; # shared object as lib.so file only - yes,svr4,*) ;; # shared object as lib.so archive member only - yes,*) enable_static=no ;; # shared object in lib.a archive as well - esac - fi - ;; - esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 -$as_echo "$enable_shared" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 -$as_echo_n "checking whether to build static libraries... " >&6; } - # Make sure either enable_shared or enable_static is yes. - test yes = "$enable_shared" || enable_static=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 -$as_echo "$enable_static" >&6; } - - - - -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC=$lt_save_CC - - - - - - - - - - - - - - - - ac_config_commands="$ac_config_commands libtool" - - - - -# Only expand once: - - - - - - - - - - - -YELP_LC_MEDIA_LINKS=true -YELP_LC_DIST=true - -for yelpopt in ; do - case $yelpopt in - lc-media-links) YELP_LC_MEDIA_LINKS=true ;; - no-lc-media-links) YELP_LC_MEDIA_LINKS= ;; - lc-dist) YELP_LC_DIST=true ;; - no-lc-dist) YELP_LC_DIST= ;; - *) as_fn_error $? "Unrecognized YELP_HELP_INIT option $yelpopt\"" "$LINENO" 5 ;; - esac -done; - - - - -# Check whether --with-help-dir was given. -if test "${with_help_dir+set}" = set; then : - withval=$with_help_dir; -else - with_help_dir='${datadir}/help' -fi - -HELP_DIR="$with_help_dir" - - - -# Extract the first word of "itstool", so it can be a program name with args. -set dummy itstool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ITSTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ITSTOOL"; then - ac_cv_prog_ITSTOOL="$ITSTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ITSTOOL="itstool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ITSTOOL=$ac_cv_prog_ITSTOOL -if test -n "$ITSTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ITSTOOL" >&5 -$as_echo "$ITSTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -if test x"$ITSTOOL" = x; then - as_fn_error $? "itstool not found" "$LINENO" 5 -fi - - -# Extract the first word of "xmllint", so it can be a program name with args. -set dummy xmllint; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_XMLLINT+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$XMLLINT"; then - ac_cv_prog_XMLLINT="$XMLLINT" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_XMLLINT="xmllint" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -XMLLINT=$ac_cv_prog_XMLLINT -if test -n "$XMLLINT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5 -$as_echo "$XMLLINT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -if test x"$XMLLINT" = x; then - as_fn_error $? "xmllint not found" "$LINENO" 5 -fi - -YELP_HELP_RULES=' -HELP_ID ?= -HELP_POT ?= -HELP_FILES ?= -HELP_EXTRA ?= -HELP_MEDIA ?= -HELP_LINGUAS ?= - -_HELP_LINGUAS = $(if $(filter environment,$(origin LINGUAS)),$(filter $(LINGUAS),$(HELP_LINGUAS)),$(HELP_LINGUAS)) -_HELP_POTFILE = $(if $(HELP_POT),$(HELP_POT),$(if $(HELP_ID),$(HELP_ID).pot)) -_HELP_POFILES = $(if $(HELP_ID),$(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).po)) -_HELP_MOFILES = $(patsubst %.po,%.mo,$(_HELP_POFILES)) -_HELP_C_FILES = $(foreach f,$(HELP_FILES),C/$(f)) -_HELP_C_EXTRA = $(foreach f,$(HELP_EXTRA),C/$(f)) -_HELP_C_MEDIA = $(foreach f,$(HELP_MEDIA),C/$(f)) -_HELP_LC_FILES = $(foreach lc,$(_HELP_LINGUAS),$(foreach f,$(HELP_FILES),$(lc)/$(f))) -_HELP_LC_STAMPS = $(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).stamp) - -_HELP_DEFAULT_V = $(if $(AM_DEFAULT_VERBOSITY),$(AM_DEFAULT_VERBOSITY),1) -_HELP_V = $(if $(V),$(V),$(_HELP_DEFAULT_V)) -_HELP_LC_VERBOSE = $(_HELP_LC_VERBOSE_$(_HELP_V)) -_HELP_LC_VERBOSE_ = $(_HELP_LC_VERBOSE_$(_HELP_DEFAULT_V)) -_HELP_LC_VERBOSE_0 = @echo " GEN "$(dir $@); - -all: $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) $(_HELP_LC_FILES) $(_HELP_POFILES) - -.PHONY: pot -pot: $(_HELP_POTFILE) -$(_HELP_POTFILE): $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) - $(AM_V_GEN)if test -d "C"; then d=; else d="$(srcdir)/"; fi; \ - $(ITSTOOL) -o "$@" $(foreach f,$(_HELP_C_FILES),"$${d}$(f)") - -.PHONY: repo -repo: $(_HELP_POTFILE) - $(AM_V_at)for po in $(_HELP_POFILES); do \ - if test "x$(_HELP_V)" = "x0"; then echo " GEN $${po}"; fi; \ - msgmerge -q -o "$${po}" "$${po}" "$(_HELP_POTFILE)"; \ - done - -$(_HELP_POFILES): - $(AM_V_at)if ! test -d "$(dir $@)"; then mkdir "$(dir $@)"; fi - $(AM_V_at)if test ! -f "$@" -a -f "$(srcdir)/$@"; then cp "$(srcdir)/$@" "$@"; fi - $(AM_V_GEN)if ! test -f "$@"; then \ - (cd "$(dir $@)" && \ - $(ITSTOOL) -o "$(notdir $@).tmp" $(_HELP_C_FILES) && \ - mv "$(notdir $@).tmp" "$(notdir $@)"); \ - else \ - (cd "$(dir $@)" && \ - $(ITSTOOL) -o "$(notdir $@).tmp" $(_HELP_C_FILES) && \ - msgmerge -o "$(notdir $@)" "$(notdir $@)" "$(notdir $@).tmp" && \ - rm "$(notdir $@).tmp"); \ - fi - -$(_HELP_MOFILES): %.mo: %.po - $(AM_V_at)if ! test -d "$(dir $@)"; then mkdir "$(dir $@)"; fi - $(AM_V_GEN)msgfmt -o "$@" "$<" - -$(_HELP_LC_FILES): $(_HELP_LINGUAS) -$(_HELP_LINGUAS): $(_HELP_LC_STAMPS) -$(_HELP_LC_STAMPS): %.stamp: %.mo -$(_HELP_LC_STAMPS): $(_HELP_C_FILES) $(_HELP_C_EXTRA) - $(AM_V_at)if ! test -d "$(dir $@)"; then mkdir "$(dir $@)"; fi - $(_HELP_LC_VERBOSE)if test -d "C"; then d="../"; else d="$(abs_srcdir)/"; fi; \ - mo="$(dir $@)$(patsubst %/$(notdir $@),%,$@).mo"; \ - if test -f "$${mo}"; then mo="../$${mo}"; else mo="$(abs_srcdir)/$${mo}"; fi; \ - (cd "$(dir $@)" && $(ITSTOOL) -m "$${mo}" $(foreach f,$(_HELP_C_FILES),$${d}/$(f))) && \ - touch "$@" - -.PHONY: clean-help -mostlyclean-am: $(if $(HELP_ID),clean-help) -clean-help: - rm -f $(_HELP_LC_FILES) $(_HELP_LC_STAMPS) $(_HELP_MOFILES) - -EXTRA_DIST ?= -EXTRA_DIST += $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) -EXTRA_DIST += $(if $(YELP_LC_DIST),$(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).stamp)) -EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).po) -EXTRA_DIST += $(foreach f,$(HELP_MEDIA),$(foreach lc,$(HELP_LINGUAS),$(wildcard $(lc)/$(f)))) - -distdir: distdir-help-files -distdir-help-files: $(_HELP_LC_FILES) - @for lc in C $(if $(YELP_LC_DIST),$(HELP_LINGUAS)) ; do \ - $(MKDIR_P) "$(distdir)/$$lc"; \ - for file in $(HELP_FILES); do \ - if test -f "$$lc/$$file"; then d=./; else d=$(srcdir)/; fi; \ - cp -p "$$d$$lc/$$file" "$(distdir)/$$lc/" || exit 1; \ - done; \ - done; \ - -.PHONY: check-help -check: check-help -check-help: - for lc in C $(_HELP_LINGUAS); do \ - if test -d "$$lc"; \ - then d=; \ - xmlpath="$$lc"; \ - else \ - d="$(srcdir)/"; \ - xmlpath="$$lc:$(srcdir)/$$lc"; \ - fi; \ - for page in $(HELP_FILES); do \ - echo "$(XMLLINT) --noout --noent --path $$xmlpath --xinclude $$d$$lc/$$page"; \ - $(XMLLINT) --noout --noent --path "$$xmlpath" --xinclude "$$d$$lc/$$page"; \ - done; \ - done - - -.PHONY: install-help -install-data-am: $(if $(HELP_ID),install-help) -install-help: $(_HELP_LC_FILES) - @for lc in C $(_HELP_LINGUAS); do \ - $(mkinstalldirs) "$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)" || exit 1; \ - done - @for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \ - if test -f "$$lc/$$f"; then d=; else d="$(srcdir)/"; fi; \ - helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ - if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \ - echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir`basename $$f`"; \ - $(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir`basename $$f`" || exit 1; \ - done; done - @for f in $(_HELP_C_EXTRA); do \ - lc=`dirname "$$f"`; lc=`basename "$$lc"`; \ - if test -f "$$f"; then d=; else d="$(srcdir)/"; fi; \ - helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ - if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \ - echo "$(INSTALL_DATA) $$d$$f $$helpdir`basename $$f`"; \ - $(INSTALL_DATA) "$$d$$f" "$$helpdir`basename $$f`" || exit 1; \ - done - @for f in $(HELP_MEDIA); do \ - for lc in C $(_HELP_LINGUAS); do \ - if test -f "$$lc$$f"; then d=; else d="$(srcdir)/"; fi; \ - helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ - mdir=`dirname "$$f"`; \ - if test "x$mdir" = "x."; then mdir=""; fi; \ - if ! test -d "$$helpdir$$mdir"; then $(mkinstalldirs) "$$helpdir$$mdir"; fi; \ - if test -f "$$d$$lc/$$f"; then \ - echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir$$f"; \ - $(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir$$f" || exit 1; \ - elif test "x$$lc" != "xC"; then \ - if test "x$(YELP_LC_MEDIA_LINKS)" != "x"; then \ - echo "$(LN_S) -f $(HELP_DIR)/C/$(HELP_ID)/$$f $$helpdir$$f"; \ - dname="$$f"; \ - pars="../"; \ - while test "$$dname" != "." -a "$$dname" != "/"; do \ - pars="../$$pars"; \ - dname=$$(dirname "$$dname"); \ - done; \ - $(LN_S) -f $$pars"C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \ - fi; \ - fi; \ - done; \ - done - -.PHONY: uninstall-help -uninstall-am: $(if $(HELP_ID),uninstall-help) -uninstall-help: - for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \ - helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ - echo "rm -f $$helpdir`basename $$f`"; \ - rm -f "$$helpdir`basename $$f`"; \ - done; done - @for f in $(_HELP_C_EXTRA); do \ - lc=`dirname "$$f"`; lc=`basename "$$lc"`; \ - helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ - echo "rm -f $$helpdir`basename $$f`"; \ - rm -f "$$helpdir`basename $$f`"; \ - done - @for f in $(HELP_MEDIA); do \ - for lc in C $(_HELP_LINGUAS); do \ - helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ - echo "rm -f $$helpdir$$f"; \ - rm -f "$$helpdir$$f"; \ - done; \ - done; -' - - - - - - - - - # Check whether --enable-appstream-util was given. -if test "${enable_appstream_util+set}" = set; then : - enableval=$enable_appstream_util; -fi - - - if test "x$enable_appstream_validate" != "xno"; then : - # Extract the first word of "appstream-util", so it can be a program name with args. -set dummy appstream-util; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_APPSTREAM_UTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $APPSTREAM_UTIL in - [\\/]* | ?:[\\/]*) - ac_cv_path_APPSTREAM_UTIL="$APPSTREAM_UTIL" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_APPSTREAM_UTIL="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -APPSTREAM_UTIL=$ac_cv_path_APPSTREAM_UTIL -if test -n "$APPSTREAM_UTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPSTREAM_UTIL" >&5 -$as_echo "$APPSTREAM_UTIL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - if test "x$APPSTREAM_UTIL" = "x"; then : - have_appstream_validate=no -else - have_appstream_validate=yes - -fi -else - have_appstream_validate=no -fi - - if test "x$have_appstream_validate" != "xno"; then : - appstream_validate=yes -else - appstream_validate=no - if test "x$enable_appstream_validate" = "xyes"; then : - as_fn_error $? "AppData validation was requested but appstream-util was not found" "$LINENO" 5 -fi -fi - - appstreamxmldir=${datadir}/metainfo - - - APPSTREAM_XML_RULES=' -.PHONY : uninstall-appstream-xml install-appstream-xml clean-appstream-xml - -mostlyclean-am: clean-appstream-xml - -%.appdata.valid: %.appdata.xml - $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; \ - if test -n "$(APPSTREAM_UTIL)"; \ - then $(APPSTREAM_UTIL) --nonet validate $${d}$<; fi \ - && touch $@ - -check-am: $(appstream_XML:.appdata.xml=.appdata.valid) -uninstall-am: uninstall-appstream-xml -install-data-am: install-appstream-xml - -.SECONDARY: $(appstream_XML) - -install-appstream-xml: $(appstream_XML) - @$(NORMAL_INSTALL) - if test -n "$^"; then \ - test -z "$(appstreamxmldir)" || $(MKDIR_P) "$(DESTDIR)$(appstreamxmldir)"; \ - $(INSTALL_DATA) $^ "$(DESTDIR)$(appstreamxmldir)"; \ - fi - -uninstall-appstream-xml: - @$(NORMAL_UNINSTALL) - @list='\''$(appstream_XML)'\''; test -n "$(appstreamxmldir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '\''$(DESTDIR)$(appstreamxmldir)'\'' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(appstreamxmldir)" && rm -f $$files - -clean-appstream-xml: - rm -f $(appstream_XML:.appdata.xml=.appdata.valid) -' - - - - - - - -GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0` - - -ac_config_files="$ac_config_files Makefile misc/Makefile po/Makefile.in help/Makefile app-icons/Makefile icons/Makefile ui/Makefile apport/Makefile" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) { eval $ac_var=; unset $ac_var;} ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \. - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - if test "x$cache_file" != "x/dev/null"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 -$as_echo "$as_me: updating cache $cache_file" >&6;} - if test ! -f "$cache_file" || test -h "$cache_file"; then - cat confcache >"$cache_file" - else - case $cache_file in #( - */* | ?:*) - mv -f confcache "$cache_file"$$ && - mv -f "$cache_file"$$ "$cache_file" ;; #( - *) - mv -f confcache "$cache_file" ;; - esac - fi - fi - else - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -DEFS=-DHAVE_CONFIG_H - -ac_libobjs= -ac_ltlibobjs= -U= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`$as_echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" - as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - -if test -z "${IS_GITVERSION_TRUE}" && test -z "${IS_GITVERSION_FALSE}"; then - as_fn_error $? "conditional \"IS_GITVERSION\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 -$as_echo_n "checking that generated files are newer than configure... " >&6; } - if test -n "$am_sleep_pid"; then - # Hide warnings about reused PIDs. - wait $am_sleep_pid 2>/dev/null - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 -$as_echo "done" >&6; } - if test -n "$EXEEXT"; then - am__EXEEXT_TRUE= - am__EXEEXT_FALSE='#' -else - am__EXEEXT_TRUE='#' - am__EXEEXT_FALSE= -fi - -if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then - as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${IS_NDEBUG_TRUE}" && test -z "${IS_NDEBUG_FALSE}"; then - as_fn_error $? "conditional \"IS_NDEBUG\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - as_fn_error $? "conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - as_fn_error $? "conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - as_fn_error $? "conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${AUTHENTICATOR_SHOTWELL_TRUE}" && test -z "${AUTHENTICATOR_SHOTWELL_FALSE}"; then - as_fn_error $? "conditional \"AUTHENTICATOR_SHOTWELL\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${AUTHENTICATOR_GOA_TRUE}" && test -z "${AUTHENTICATOR_GOA_FALSE}"; then - as_fn_error $? "conditional \"AUTHENTICATOR_GOA\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${AUTHENTICATOR_UOA_TRUE}" && test -z "${AUTHENTICATOR_UOA_FALSE}"; then - as_fn_error $? "conditional \"AUTHENTICATOR_UOA\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${HAVE_UNITY_TRUE}" && test -z "${HAVE_UNITY_FALSE}"; then - as_fn_error $? "conditional \"HAVE_UNITY\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${INSTALL_APPORT_HOOK_TRUE}" && test -z "${INSTALL_APPORT_HOOK_FALSE}"; then - as_fn_error $? "conditional \"INSTALL_APPORT_HOOK\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${HAVE_EXTRA_PLUGINS_TRUE}" && test -z "${HAVE_EXTRA_PLUGINS_FALSE}"; then - as_fn_error $? "conditional \"HAVE_EXTRA_PLUGINS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi - -: "${CONFIG_STATUS=./config.status}" -ac_write_fail=0 -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} -as_write_fail=0 -cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false - -SHELL=\${CONFIG_SHELL-$SHELL} -export SHELL -_ASEOF -cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi - - -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -as_myself= -case $0 in #(( - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break - done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - - -# as_fn_error STATUS ERROR [LINENO LOG_FD] -# ---------------------------------------- -# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are -# provided, also output the error to LOG_FD, referencing LINENO. Then exit the -# script with STATUS, using 1 if that was 0. -as_fn_error () -{ - as_status=$1; test $as_status -eq 0 && as_status=1 - if test "$4"; then - as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 - fi - $as_echo "$as_me: error: $2" >&2 - as_fn_exit $as_status -} # as_fn_error - - -# as_fn_set_status STATUS -# ----------------------- -# Set $? to STATUS, without forking. -as_fn_set_status () -{ - return $1 -} # as_fn_set_status - -# as_fn_exit STATUS -# ----------------- -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. -as_fn_exit () -{ - set +e - as_fn_set_status $1 - exit $1 -} # as_fn_exit - -# as_fn_unset VAR -# --------------- -# Portably unset VAR. -as_fn_unset () -{ - { eval $1=; unset $1;} -} -as_unset=as_fn_unset -# as_fn_append VAR VALUE -# ---------------------- -# Append the text in VALUE to the end of the definition contained in VAR. Take -# advantage of any shell optimizations that allow amortized linear growth over -# repeated appends, instead of the typical quadratic growth present in naive -# implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : - eval 'as_fn_append () - { - eval $1+=\$2 - }' -else - as_fn_append () - { - eval $1=\$$1\$2 - } -fi # as_fn_append - -# as_fn_arith ARG... -# ------------------ -# Perform arithmetic evaluation on the ARGs, and store the result in the -# global $as_val. Take advantage of shells that can avoid forks. The arguments -# must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : - eval 'as_fn_arith () - { - as_val=$(( $* )) - }' -else - as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } -fi # as_fn_arith - - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in #((((( --n*) - case `echo 'xy\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - xy) ECHO_C='\c';; - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null - ECHO_T=' ';; - esac;; -*) - ECHO_N='-n';; -esac - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -pR' - elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln - else - as_ln_s='cp -pR' - fi -else - as_ln_s='cp -pR' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - - -# as_fn_mkdir_p -# ------------- -# Create "$as_dir" as a directory, including parents if necessary. -as_fn_mkdir_p () -{ - - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || eval $as_mkdir_p || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" - - -} # as_fn_mkdir_p -if mkdir -p . 2>/dev/null; then - as_mkdir_p='mkdir -p "$as_dir"' -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - - -# as_fn_executable_p FILE -# ----------------------- -# Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} # as_fn_executable_p -as_test_x='test -x' -as_executable_p=as_fn_executable_p - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 -## ----------------------------------- ## -## Main body of $CONFIG_STATUS script. ## -## ----------------------------------- ## -_ASEOF -test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# Save the log message, to keep $0 and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by shotwell $as_me 0.28.4, which was -generated by GNU Autoconf 2.69. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -case $ac_config_files in *" -"*) set x $ac_config_files; shift; ac_config_files=$*;; -esac - -case $ac_config_headers in *" -"*) set x $ac_config_headers; shift; ac_config_headers=$*;; -esac - - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -# Files that config.status was made for. -config_files="$ac_config_files" -config_headers="$ac_config_headers" -config_commands="$ac_config_commands" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -ac_cs_usage="\ -\`$as_me' instantiates files and other configuration actions -from templates according to the current configuration. Unless the files -and actions are specified as TAGs, all are instantiated by default. - -Usage: $0 [OPTION]... [TAG]... - - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - --config print configuration, then exit - -q, --quiet, --silent - do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - --header=FILE[:TEMPLATE] - instantiate the configuration header FILE - -Configuration files: -$config_files - -Configuration headers: -$config_headers - -Configuration commands: -$config_commands - -Report bugs to ." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" -ac_cs_version="\\ -shotwell config.status 0.28.4 -configured by $0, generated by GNU Autoconf 2.69, - with options \\"\$ac_cs_config\\" - -Copyright (C) 2012 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -MKDIR_P='$MKDIR_P' -AWK='$AWK' -test -n "\$AWK" || AWK=awk -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# The default lists apply if the user does not specify any file. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=?*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - --*=) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg= - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - $as_echo "$ac_cs_version"; exit ;; - --config | --confi | --conf | --con | --co | --c ) - $as_echo "$ac_cs_config"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; - '') as_fn_error $? "missing file argument" ;; - esac - as_fn_append CONFIG_FILES " '$ac_optarg'" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - $ac_shift - case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - as_fn_append CONFIG_HEADERS " '$ac_optarg'" - ac_need_defaults=false;; - --he | --h) - # Conflict between --help and --header - as_fn_error $? "ambiguous option: \`$1' -Try \`$0 --help' for more information.";; - --help | --hel | -h ) - $as_echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) as_fn_error $? "unrecognized option: \`$1' -Try \`$0 --help' for more information." ;; - - *) as_fn_append ac_config_targets " $1" - ac_need_defaults=false ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -if \$ac_cs_recheck; then - set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion - shift - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 - CONFIG_SHELL='$SHELL' - export CONFIG_SHELL - exec "\$@" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - $as_echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -# -# INIT-COMMANDS -# -# Capture the value of obsolete ALL_LINGUAS because we need it to compute - # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it - # from automake < 1.5. - eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' - # Capture the value of LINGUAS because we need it to compute CATALOGS. - LINGUAS="${LINGUAS-%UNSET%}" - -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" - - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -sed_quote_subst='$sed_quote_subst' -double_quote_subst='$double_quote_subst' -delay_variable_subst='$delay_variable_subst' -macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' -macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' -enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' -enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' -pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' -enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' -shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' -SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' -ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' -PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' -host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' -host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' -host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' -build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' -build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' -build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' -SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' -Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' -GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' -EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' -FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' -LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' -NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' -LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' -max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' -ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' -exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' -lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' -lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' -lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' -lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' -lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' -reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' -reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' -OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' -deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' -file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' -file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' -want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' -DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' -sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' -AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' -AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' -archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' -STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' -RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' -old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' -old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' -old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' -lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' -CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' -CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' -compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' -GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' -lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' -nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' -lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' -lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' -objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' -MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' -lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' -need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' -MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' -DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' -NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' -LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' -OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' -OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' -libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' -shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' -extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' -archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' -enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' -export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' -whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' -compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' -old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' -old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' -archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' -archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' -module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' -module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' -with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' -allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' -no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' -hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' -hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' -hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' -hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' -hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' -hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' -hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' -inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' -link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' -always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' -export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' -exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' -include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' -prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' -postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' -file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' -variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' -need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' -need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' -version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' -runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' -shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' -shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' -libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' -library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' -soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' -install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' -postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' -postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' -finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' -finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' -hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' -sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' -configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' -configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' -hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' -enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' -enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' -enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' -old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' -striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' - -LTCC='$LTCC' -LTCFLAGS='$LTCFLAGS' -compiler='$compiler_DEFAULT' - -# A function that is used when there is no print builtin or printf. -func_fallback_echo () -{ - eval 'cat <<_LTECHO_EOF -\$1 -_LTECHO_EOF' -} - -# Quote evaled strings. -for var in SHELL \ -ECHO \ -PATH_SEPARATOR \ -SED \ -GREP \ -EGREP \ -FGREP \ -LD \ -NM \ -LN_S \ -lt_SP2NL \ -lt_NL2SP \ -reload_flag \ -OBJDUMP \ -deplibs_check_method \ -file_magic_cmd \ -file_magic_glob \ -want_nocaseglob \ -DLLTOOL \ -sharedlib_from_linklib_cmd \ -AR \ -AR_FLAGS \ -archiver_list_spec \ -STRIP \ -RANLIB \ -CC \ -CFLAGS \ -compiler \ -lt_cv_sys_global_symbol_pipe \ -lt_cv_sys_global_symbol_to_cdecl \ -lt_cv_sys_global_symbol_to_import \ -lt_cv_sys_global_symbol_to_c_name_address \ -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ -lt_cv_nm_interface \ -nm_file_list_spec \ -lt_cv_truncate_bin \ -lt_prog_compiler_no_builtin_flag \ -lt_prog_compiler_pic \ -lt_prog_compiler_wl \ -lt_prog_compiler_static \ -lt_cv_prog_compiler_c_o \ -need_locks \ -MANIFEST_TOOL \ -DSYMUTIL \ -NMEDIT \ -LIPO \ -OTOOL \ -OTOOL64 \ -shrext_cmds \ -export_dynamic_flag_spec \ -whole_archive_flag_spec \ -compiler_needs_object \ -with_gnu_ld \ -allow_undefined_flag \ -no_undefined_flag \ -hardcode_libdir_flag_spec \ -hardcode_libdir_separator \ -exclude_expsyms \ -include_expsyms \ -file_list_spec \ -variables_saved_for_relink \ -libname_spec \ -library_names_spec \ -soname_spec \ -install_override_mode \ -finish_eval \ -old_striplib \ -striplib; do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[\\\\\\\`\\"\\\$]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -# Double-quote double-evaled strings. -for var in reload_cmds \ -old_postinstall_cmds \ -old_postuninstall_cmds \ -old_archive_cmds \ -extract_expsyms_cmds \ -old_archive_from_new_cmds \ -old_archive_from_expsyms_cmds \ -archive_cmds \ -archive_expsym_cmds \ -module_cmds \ -module_expsym_cmds \ -export_symbols_cmds \ -prelink_cmds \ -postlink_cmds \ -postinstall_cmds \ -postuninstall_cmds \ -finish_cmds \ -sys_lib_search_path_spec \ -configure_time_dlsearch_path \ -configure_time_lt_sys_library_path; do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[\\\\\\\`\\"\\\$]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -ac_aux_dir='$ac_aux_dir' - -# See if we are running on zsh, and set the options that allow our -# commands through without removal of \ escapes INIT. -if test -n "\${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST -fi - - - PACKAGE='$PACKAGE' - VERSION='$VERSION' - RM='$RM' - ofile='$ofile' - - - -API_VERSION='$API_VERSION' - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 - -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; - "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;; - "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; - "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; - "app-icons/Makefile") CONFIG_FILES="$CONFIG_FILES app-icons/Makefile" ;; - "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;; - "ui/Makefile") CONFIG_FILES="$CONFIG_FILES ui/Makefile" ;; - "apport/Makefile") CONFIG_FILES="$CONFIG_FILES apport/Makefile" ;; - - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || -{ - tmp= ac_tmp= - trap 'exit_status=$? - : "${ac_tmp:=$tmp}" - { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status -' 0 - trap 'as_fn_exit 1' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 -ac_tmp=$tmp - -# Set up the scripts for CONFIG_FILES section. -# No need to generate them if there are no CONFIG_FILES. -# This happens for instance with `./config.status config.h'. -if test -n "$CONFIG_FILES"; then - - -ac_cr=`echo X | tr X '\015'` -# On cygwin, bash can eat \r inside `` if the user requested igncr. -# But we know of no other shell where ac_cr would be empty at this -# point, so we can use a bashism as a fallback. -if test "x$ac_cr" = x; then - eval ac_cr=\$\'\\r\' -fi -ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` -if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then - ac_cs_awk_cr='\\r' -else - ac_cs_awk_cr=$ac_cr -fi - -echo 'BEGIN {' >"$ac_tmp/subs1.awk" && -_ACEOF - - -{ - echo "cat >conf$$subs.awk <<_ACEOF" && - echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && - echo "_ACEOF" -} >conf$$subs.sh || - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 -ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - . ./conf$$subs.sh || - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 - - ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` - if test $ac_delim_n = $ac_delim_num; then - break - elif $ac_last_try; then - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done -rm -f conf$$subs.sh - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && -_ACEOF -sed -n ' -h -s/^/S["/; s/!.*/"]=/ -p -g -s/^[^!]*!// -:repl -t repl -s/'"$ac_delim"'$// -t delim -:nl -h -s/\(.\{148\}\)..*/\1/ -t more1 -s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ -p -n -b repl -:more1 -s/["\\]/\\&/g; s/^/"/; s/$/"\\/ -p -g -s/.\{148\}// -t nl -:delim -h -s/\(.\{148\}\)..*/\1/ -t more2 -s/["\\]/\\&/g; s/^/"/; s/$/"/ -p -b -:more2 -s/["\\]/\\&/g; s/^/"/; s/$/"\\/ -p -g -s/.\{148\}// -t delim -' >$CONFIG_STATUS || ac_write_fail=1 -rm -f conf$$subs.awk -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -_ACAWK -cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && - for (key in S) S_is_set[key] = 1 - FS = "" - -} -{ - line = $ 0 - nfields = split(line, field, "@") - substed = 0 - len = length(field[1]) - for (i = 2; i < nfields; i++) { - key = field[i] - keylen = length(key) - if (S_is_set[key]) { - value = S[key] - line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) - len += length(value) + length(field[++i]) - substed = 1 - } else - len += 1 + keylen - } - - print line -} - -_ACAWK -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then - sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" -else - cat -fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ - || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 -_ACEOF - -# VPATH may cause trouble with some makes, so we remove sole $(srcdir), -# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ -h -s/// -s/^/:/ -s/[ ]*$/:/ -s/:\$(srcdir):/:/g -s/:\${srcdir}:/:/g -s/:@srcdir@:/:/g -s/^:*// -s/:*$// -x -s/\(=[ ]*\).*/\1/ -G -s/\n// -s/^[^=]*=[ ]*$// -}' -fi - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -fi # test -n "$CONFIG_FILES" - -# Set up the scripts for CONFIG_HEADERS section. -# No need to generate them if there are no CONFIG_HEADERS. -# This happens for instance with `./config.status Makefile'. -if test -n "$CONFIG_HEADERS"; then -cat >"$ac_tmp/defines.awk" <<\_ACAWK || -BEGIN { -_ACEOF - -# Transform confdefs.h into an awk script `defines.awk', embedded as -# here-document in config.status, that substitutes the proper values into -# config.h.in to produce config.h. - -# Create a delimiter string that does not exist in confdefs.h, to ease -# handling of long lines. -ac_delim='%!_!# ' -for ac_last_try in false false :; do - ac_tt=`sed -n "/$ac_delim/p" confdefs.h` - if test -z "$ac_tt"; then - break - elif $ac_last_try; then - as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -# For the awk script, D is an array of macro values keyed by name, -# likewise P contains macro parameters if any. Preserve backslash -# newline sequences. - -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* -sed -n ' -s/.\{148\}/&'"$ac_delim"'/g -t rset -:rset -s/^[ ]*#[ ]*define[ ][ ]*/ / -t def -d -:def -s/\\$// -t bsnl -s/["\\]/\\&/g -s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ -D["\1"]=" \3"/p -s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p -d -:bsnl -s/["\\]/\\&/g -s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ -D["\1"]=" \3\\\\\\n"\\/p -t cont -s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p -t cont -d -:cont -n -s/.\{148\}/&'"$ac_delim"'/g -t clear -:clear -s/\\$// -t bsnlc -s/["\\]/\\&/g; s/^/"/; s/$/"/p -d -:bsnlc -s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p -b cont -' >$CONFIG_STATUS || ac_write_fail=1 - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 - for (key in D) D_is_set[key] = 1 - FS = "" -} -/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { - line = \$ 0 - split(line, arg, " ") - if (arg[1] == "#") { - defundef = arg[2] - mac1 = arg[3] - } else { - defundef = substr(arg[1], 2) - mac1 = arg[2] - } - split(mac1, mac2, "(") #) - macro = mac2[1] - prefix = substr(line, 1, index(line, defundef) - 1) - if (D_is_set[macro]) { - # Preserve the white space surrounding the "#". - print prefix "define", macro P[macro] D[macro] - next - } else { - # Replace #undef with comments. This is necessary, for example, - # in the case of _POSIX_SOURCE, which is predefined and required - # on some systems where configure will not decide to define it. - if (defundef == "undef") { - print "/*", prefix defundef, macro, "*/" - next - } - } -} -{ print } -_ACAWK -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 - as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 -fi # test -n "$CONFIG_HEADERS" - - -eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" -shift -for ac_tag -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift - - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$ac_tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; - esac - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac - as_fn_append ac_file_inputs " '$ac_f'" - done - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input='Generated from '` - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' - `' by configure.' - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 -$as_echo "$as_me: creating $ac_file" >&6;} - fi - # Neutralize special characters interpreted by sed in replacement strings. - case $configure_input in #( - *\&* | *\|* | *\\* ) - ac_sed_conf_input=`$as_echo "$configure_input" | - sed 's/[\\\\&|]/\\\\&/g'`;; #( - *) ac_sed_conf_input=$configure_input;; - esac - - case $ac_tag in - *:-:* | *:-) cat >"$ac_tmp/stdin" \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; - esac - ;; - esac - - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - as_dir="$ac_dir"; as_fn_mkdir_p - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - case $ac_mode in - :F) - # - # CONFIG_FILE - # - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac - ac_MKDIR_P=$MKDIR_P - case $MKDIR_P in - [\\/$]* | ?:[\\/]* ) ;; - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; - esac -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= -ac_sed_dataroot=' -/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p' -case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF - -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_sed_extra="$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s|@configure_input@|$ac_sed_conf_input|;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@top_build_prefix@&$ac_top_build_prefix&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -s&@MKDIR_P@&$ac_MKDIR_P&;t t -$ac_datarootdir_hack -" -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ - >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ - "$ac_tmp/out"`; test -z "$ac_out"; } && - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined" >&5 -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined" >&2;} - - rm -f "$ac_tmp/stdin" - case $ac_file in - -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; - *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; - esac \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - ;; - :H) - # - # CONFIG_HEADER - # - if test x"$ac_file" != x-; then - { - $as_echo "/* $configure_input */" \ - && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" - } >"$ac_tmp/config.h" \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 -$as_echo "$as_me: $ac_file is unchanged" >&6;} - else - rm -f "$ac_file" - mv "$ac_tmp/config.h" "$ac_file" \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - fi - else - $as_echo "/* $configure_input */" \ - && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ - || as_fn_error $? "could not create -" "$LINENO" 5 - fi -# Compute "$ac_file"'s index in $config_headers. -_am_arg="$ac_file" -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $_am_arg | $_am_arg:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || -$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$_am_arg" : 'X\(//\)[^/]' \| \ - X"$_am_arg" : 'X\(//\)$' \| \ - X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$_am_arg" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'`/stamp-h$_am_stamp_count - ;; - - :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 -$as_echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac - - - case $ac_file$ac_mode in - "po-directories":C) - for ac_file in $CONFIG_FILES; do - # Support "outfile[:infile[:infile...]]" - case "$ac_file" in - *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - esac - # PO directories have a Makefile.in generated from Makefile.in.in. - case "$ac_file" in */Makefile.in) - # Adjust a relative srcdir. - ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` - ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` - ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` - # In autoconf-2.13 it is called $ac_given_srcdir. - # In autoconf-2.50 it is called $srcdir. - test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" - case "$ac_given_srcdir" in - .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; - /*) top_srcdir="$ac_given_srcdir" ;; - *) top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - # Treat a directory as a PO directory if and only if it has a - # POTFILES.in file. This allows packages to have multiple PO - # directories under different names or in different locations. - if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then - rm -f "$ac_dir/POTFILES" - test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" - gt_tab=`printf '\t'` - cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" - POMAKEFILEDEPS="POTFILES.in" - # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend - # on $ac_dir but don't depend on user-specified configuration - # parameters. - if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then - # The LINGUAS file contains the set of available languages. - if test -n "$OBSOLETE_ALL_LINGUAS"; then - test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" - fi - ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` - # Hide the ALL_LINGUAS assignment from automake < 1.5. - eval 'ALL_LINGUAS''=$ALL_LINGUAS_' - POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" - else - # The set of available languages was given in configure.in. - # Hide the ALL_LINGUAS assignment from automake < 1.5. - eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' - fi - # Compute POFILES - # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) - # Compute UPDATEPOFILES - # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) - # Compute DUMMYPOFILES - # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) - # Compute GMOFILES - # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) - case "$ac_given_srcdir" in - .) srcdirpre= ;; - *) srcdirpre='$(srcdir)/' ;; - esac - POFILES= - UPDATEPOFILES= - DUMMYPOFILES= - GMOFILES= - for lang in $ALL_LINGUAS; do - POFILES="$POFILES $srcdirpre$lang.po" - UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" - DUMMYPOFILES="$DUMMYPOFILES $lang.nop" - GMOFILES="$GMOFILES $srcdirpre$lang.gmo" - done - # CATALOGS depends on both $ac_dir and the user's LINGUAS - # environment variable. - INST_LINGUAS= - if test -n "$ALL_LINGUAS"; then - for presentlang in $ALL_LINGUAS; do - useit=no - if test "%UNSET%" != "$LINGUAS"; then - desiredlanguages="$LINGUAS" - else - desiredlanguages="$ALL_LINGUAS" - fi - for desiredlang in $desiredlanguages; do - # Use the presentlang catalog if desiredlang is - # a. equal to presentlang, or - # b. a variant of presentlang (because in this case, - # presentlang can be used as a fallback for messages - # which are not translated in the desiredlang catalog). - case "$desiredlang" in - "$presentlang"*) useit=yes;; - esac - done - if test $useit = yes; then - INST_LINGUAS="$INST_LINGUAS $presentlang" - fi - done - fi - CATALOGS= - if test -n "$INST_LINGUAS"; then - for lang in $INST_LINGUAS; do - CATALOGS="$CATALOGS $lang.gmo" - done - fi - test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" - sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" - for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do - if test -f "$f"; then - case "$f" in - *.orig | *.bak | *~) ;; - *) cat "$f" >> "$ac_dir/Makefile" ;; - esac - fi - done - fi - ;; - esac - done ;; - "depfiles":C) test x"$AMDEP_TRUE" != x"" || { - # Older Autoconf quotes --file arguments for eval, but not when files - # are listed without --file. Let's play safe and only enable the eval - # if we detect the quoting. - case $CONFIG_FILES in - *\'*) eval set x "$CONFIG_FILES" ;; - *) set x $CONFIG_FILES ;; - esac - shift - for mf - do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named 'Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running 'make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "$am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - as_dir=$dirpart/$fdir; as_fn_mkdir_p - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done - done -} - ;; - "libtool":C) - - # See if we are running on zsh, and set the options that allow our - # commands through without removal of \ escapes. - if test -n "${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST - fi - - cfgfile=${ofile}T - trap "$RM \"$cfgfile\"; exit 1" 1 2 15 - $RM "$cfgfile" - - cat <<_LT_EOF >> "$cfgfile" -#! $SHELL -# Generated automatically by $as_me ($PACKAGE) $VERSION -# NOTE: Changes made to this file will be lost: look at ltmain.sh. - -# Provide generalized library-building support services. -# Written by Gordon Matzigkeit, 1996 - -# Copyright (C) 2014 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. There is NO -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -# GNU Libtool is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of of the License, or -# (at your option) any later version. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program or library that is built -# using GNU Libtool, you may include this file under the same -# distribution terms that you use for the rest of that program. -# -# GNU Libtool is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - - -# The names of the tagged configurations supported by this script. -available_tags='' - -# Configured defaults for sys_lib_dlsearch_path munging. -: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} - -# ### BEGIN LIBTOOL CONFIG - -# Which release of libtool.m4 was used? -macro_version=$macro_version -macro_revision=$macro_revision - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# What type of objects to build. -pic_mode=$pic_mode - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# Shared archive member basename,for filename based shared library versioning on AIX. -shared_archive_member_spec=$shared_archive_member_spec - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# An echo program that protects backslashes. -ECHO=$lt_ECHO - -# The PATH separator for the build system. -PATH_SEPARATOR=$lt_PATH_SEPARATOR - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# A sed program that does not truncate output. -SED=$lt_SED - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="\$SED -e 1s/^X//" - -# A grep program that handles long lines. -GREP=$lt_GREP - -# An ERE matcher. -EGREP=$lt_EGREP - -# A literal string matcher. -FGREP=$lt_FGREP - -# A BSD- or MS-compatible name lister. -NM=$lt_NM - -# Whether we need soft or hard links. -LN_S=$lt_LN_S - -# What is the maximum length of a command? -max_cmd_len=$max_cmd_len - -# Object file suffix (normally "o"). -objext=$ac_objext - -# Executable file suffix (normally ""). -exeext=$exeext - -# whether the shell understands "unset". -lt_unset=$lt_unset - -# turn spaces into newlines. -SP2NL=$lt_lt_SP2NL - -# turn newlines into spaces. -NL2SP=$lt_lt_NL2SP - -# convert \$build file names to \$host format. -to_host_file_cmd=$lt_cv_to_host_file_cmd - -# convert \$build files to toolchain format. -to_tool_file_cmd=$lt_cv_to_tool_file_cmd - -# An object symbol dumper. -OBJDUMP=$lt_OBJDUMP - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method = "file_magic". -file_magic_cmd=$lt_file_magic_cmd - -# How to find potential files when deplibs_check_method = "file_magic". -file_magic_glob=$lt_file_magic_glob - -# Find potential files using nocaseglob when deplibs_check_method = "file_magic". -want_nocaseglob=$lt_want_nocaseglob - -# DLL creation program. -DLLTOOL=$lt_DLLTOOL - -# Command to associate shared and link libraries. -sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd - -# The archiver. -AR=$lt_AR - -# Flags to create an archive. -AR_FLAGS=$lt_AR_FLAGS - -# How to feed a file listing to the archiver. -archiver_list_spec=$lt_archiver_list_spec - -# A symbol stripping program. -STRIP=$lt_STRIP - -# Commands used to install an old-style archive. -RANLIB=$lt_RANLIB -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Whether to use a lock for old archive extraction. -lock_old_archive_extraction=$lock_old_archive_extraction - -# A C compiler. -LTCC=$lt_CC - -# LTCC compiler flags. -LTCFLAGS=$lt_CFLAGS - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm into a list of symbols to manually relocate. -global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import - -# Transform the output of nm in a C name address pair. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# Transform the output of nm in a C name address pair when lib prefix is needed. -global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix - -# The name lister interface. -nm_interface=$lt_lt_cv_nm_interface - -# Specify filename containing input files for \$NM. -nm_file_list_spec=$lt_nm_file_list_spec - -# The root where to search for dependent libraries,and where our libraries should be installed. -lt_sysroot=$lt_sysroot - -# Command to truncate a binary pipe. -lt_truncate_bin=$lt_lt_cv_truncate_bin - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# Used to examine libraries when file_magic_cmd begins with "file". -MAGIC_CMD=$MAGIC_CMD - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Manifest tool. -MANIFEST_TOOL=$lt_MANIFEST_TOOL - -# Tool to manipulate archived DWARF debug symbol files on Mac OS X. -DSYMUTIL=$lt_DSYMUTIL - -# Tool to change global to local symbols on Mac OS X. -NMEDIT=$lt_NMEDIT - -# Tool to manipulate fat objects and archives on Mac OS X. -LIPO=$lt_LIPO - -# ldd/readelf like tool for Mach-O binaries on Mac OS X. -OTOOL=$lt_OTOOL - -# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. -OTOOL64=$lt_OTOOL64 - -# Old archive suffix (normally "a"). -libext=$libext - -# Shared library suffix (normally ".so"). -shrext_cmds=$lt_shrext_cmds - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at link time. -variables_saved_for_relink=$lt_variables_saved_for_relink - -# Do we need the "lib" prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Library versioning type. -version_type=$version_type - -# Shared library runtime path variable. -runpath_var=$runpath_var - -# Shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Permission mode override for installation of shared libraries. -install_override_mode=$lt_install_override_mode - -# Command to use after installation of a shared archive. -postinstall_cmds=$lt_postinstall_cmds - -# Command to use after uninstallation of a shared archive. -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# As "finish_cmds", except a single script fragment to be evaled but -# not shown. -finish_eval=$lt_finish_eval - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Compile-time system search path for libraries. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Detected run-time system search path for libraries. -sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path - -# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. -configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - - -# The linker used to build libraries. -LD=$lt_LD - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# Commands used to build an old-style archive. -old_archive_cmds=$lt_old_archive_cmds - -# A language specific compiler. -CC=$lt_compiler - -# Is the compiler the GNU compiler? -with_gcc=$GCC - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc - -# Whether or not to disallow shared libs when runtime libs are static. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec - -# Whether the compiler copes with passing no objects directly. -compiler_needs_object=$lt_compiler_needs_object - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds - -# Commands used to build a shared archive. -archive_cmds=$lt_archive_cmds -archive_expsym_cmds=$lt_archive_expsym_cmds - -# Commands used to build a loadable module if different from building -# a shared archive. -module_cmds=$lt_module_cmds -module_expsym_cmds=$lt_module_expsym_cmds - -# Whether we are building with GNU ld or not. -with_gnu_ld=$lt_with_gnu_ld - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag - -# Flag that enforces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec - -# Whether we need a single "-rpath" flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator - -# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes -# DIR into the resulting binary. -hardcode_direct=$hardcode_direct - -# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes -# DIR into the resulting binary and the resulting library dependency is -# "absolute",i.e impossible to change by setting \$shlibpath_var if the -# library is relocated. -hardcode_direct_absolute=$hardcode_direct_absolute - -# Set to "yes" if using the -LDIR flag during linking hardcodes DIR -# into the resulting binary. -hardcode_minus_L=$hardcode_minus_L - -# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR -# into the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var - -# Set to "yes" if building a shared library automatically hardcodes DIR -# into the library and all subsequent libraries and executables linked -# against it. -hardcode_automatic=$hardcode_automatic - -# Set to yes if linker adds runtime paths of dependent libraries -# to runtime path list. -inherit_rpath=$inherit_rpath - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs - -# Set to "yes" if exported symbols are required. -always_export_symbols=$always_export_symbols - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms - -# Commands necessary for linking programs (against libraries) with templates. -prelink_cmds=$lt_prelink_cmds - -# Commands necessary for finishing linking programs. -postlink_cmds=$lt_postlink_cmds - -# Specify filename containing input files. -file_list_spec=$lt_file_list_spec - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action - -# ### END LIBTOOL CONFIG - -_LT_EOF - - cat <<'_LT_EOF' >> "$cfgfile" - -# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE - -# func_munge_path_list VARIABLE PATH -# ----------------------------------- -# VARIABLE is name of variable containing _space_ separated list of -# directories to be munged by the contents of PATH, which is string -# having a format: -# "DIR[:DIR]:" -# string "DIR[ DIR]" will be prepended to VARIABLE -# ":DIR[:DIR]" -# string "DIR[ DIR]" will be appended to VARIABLE -# "DIRP[:DIRP]::[DIRA:]DIRA" -# string "DIRP[ DIRP]" will be prepended to VARIABLE and string -# "DIRA[ DIRA]" will be appended to VARIABLE -# "DIR[:DIR]" -# VARIABLE will be replaced by "DIR[ DIR]" -func_munge_path_list () -{ - case x$2 in - x) - ;; - *:) - eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" - ;; - x:*) - eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" - ;; - *::*) - eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" - eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" - ;; - *) - eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" - ;; - esac -} - - -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -func_cc_basename () -{ - for cc_temp in $*""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac - done - func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` -} - - -# ### END FUNCTIONS SHARED WITH CONFIGURE - -_LT_EOF - - case $host_os in - aix3*) - cat <<\_LT_EOF >> "$cfgfile" -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test set != "${COLLECT_NAMES+set}"; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -_LT_EOF - ;; - esac - - -ltmain=$ac_aux_dir/ltmain.sh - - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" \ - || (rm -f "$cfgfile"; exit 1) - - mv -f "$cfgfile" "$ofile" || - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" - - ;; - - esac -done # for ac_tag - - -as_fn_exit 0 -_ACEOF -ac_clean_files=$ac_clean_files_save - -test $ac_write_fail = 0 || - as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || as_fn_exit 1 -fi -if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} -fi - - -echo "" -echo " ${PACKAGE} - ${VERSION}" -echo "" -echo " Options" -echo "" -echo " Prefix ............................... : ${prefix}" -echo " Libdir ............................... : ${libdir}" -echo " Unity support ........................ : ${HAVE_UNITY}" -echo " Additional publishing plugins ........ : ${HAVE_EXTRA_PLUGINS}" -echo " Authentication library ............... : ${with_authenticator}" -echo " Publishers ........................... : ${ENABLED_PUBLISHERS}" -echo "" diff --git a/configure.ac b/configure.ac deleted file mode 100644 index 872bf7e..0000000 --- a/configure.ac +++ /dev/null @@ -1,305 +0,0 @@ -AC_PREREQ([2.69]) - - -dnl *********************************************************************** -dnl Define Versioning Information -dnl *********************************************************************** -m4_define([major_version],[0]) -m4_define([minor_version],[28]) -m4_define([micro_version],[4]) -m4_define([package_version],[major_version.minor_version.micro_version]) -m4_define([bug_report_url],[https://bugzilla.gnome.org/enter_bug.cgi?product=shotwell]) -m4_define([api_version],[major_version]) - -AX_IS_RELEASE([git-directory]) - -m4_define([git_version],[m4_esyscmd(git rev-parse HEAD 2>/dev/null)]) - -dnl *********************************************************************** -dnl Initialize autoconf -dnl *********************************************************************** -AC_INIT([shotwell],[package_version],[bug_report_url]) -AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_SRCDIR([NEWS]) -AC_CONFIG_MACRO_DIR([m4]) -AC_CONFIG_AUX_DIR([build-aux]) -AC_SUBST([ACLOCAL_AMFLAGS], "-I m4") -AC_CANONICAL_HOST - - -dnl *********************************************************************** -dnl Make version information available to autoconf files -dnl *********************************************************************** -AC_SUBST([MAJOR_VERSION],major_version) -AC_SUBST([MINOR_VERSION],minor_version) -AC_SUBST([MICRO_VERSION],micro_version) -AC_SUBST([API_VERSION],api_version) - -AC_SUBST([GITVER],git_version) -AM_CONDITIONAL([IS_GITVERSION],[test "x$GITVER" != "x"]) - -dnl *********************************************************************** -dnl Initialize automake -dnl *********************************************************************** -AM_SILENT_RULES([yes]) -AM_INIT_AUTOMAKE([1.11 foreign subdir-objects tar-ustar no-dist-gzip dist-xz -Wno-portability]) -AM_MAINTAINER_MODE([enable]) -AX_GENERATE_CHANGELOG - - -dnl *********************************************************************** -dnl Add extra debugging with --enable-debug and --enable-compile-warnings -dnl *********************************************************************** -AC_ARG_ENABLE(debug, - [AS_HELP_STRING([--enable-debug],[compile with debugging]), - [], enable_debug=no]) -enable_debug=${enable_debug-no} -AS_IF([test "x$enable_debug" = "xyes"],[CFLAGS="${CFLAGS} -g -O0"]) -AM_CONDITIONAL([IS_NDEBUG], [test "x$enable_debug" != "xyes"]) - -dnl *********************************************************************** -dnl Internationalization -dnl *********************************************************************** -GETTEXT_PACKAGE=AC_PACKAGE_TARNAME -AC_SUBST([GETTEXT_PACKAGE]) -AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [GETTEXT package name]) - -AM_GNU_GETTEXT_VERSION([0.19.7]) -AM_GNU_GETTEXT([external]) - - -dnl *********************************************************************** -dnl Check for required programs -dnl *********************************************************************** -AM_PROG_VALAC([0.28]) -AC_PROG_CC -AC_PROG_INSTALL -PKG_PROG_PKG_CONFIG([0.22]) -AX_REQUIRE_DEFINED([GLIB_GSETTINGS]) -GLIB_GSETTINGS - -# Using -g in target's _VALAFLAGS triggers a bug in Vala's automake integration -# that causes invalid makefile generation, so we put it into global VALAFLAGS -VALAFLAGS="-g" -AC_SUBST([VALAFLAGS]) - -dnl *********************************************************************** -dnl Check for authenticator -dnl *********************************************************************** -AC_ARG_WITH([authenticator], - AS_HELP_STRING([--with-authenticator=@<:@shotwell@:>@] - [Which authentication back-end to use (defaul: shotwell)]), - [with_authenticator=$withval], - [with_authenticator=shotwell]) -AS_IF([test "x$with_authenticator" != "xshotwell"], - [AC_MSG_NOTICE([Unknown authenticator $[]with_authenticator, using shotwell]) - with_authenticator="shotwell" - ]) - -AM_CONDITIONAL([AUTHENTICATOR_SHOTWELL],[test "x$with_authenticator" = "xshotwell"]) -AM_CONDITIONAL([AUTHENTICATOR_GOA],[test "x$with_authenticator" = "xgoa"]) -AM_CONDITIONAL([AUTHENTICATOR_UOA],[test "x$with_authenticator" = "xuoa"]) - -dnl *********************************************************************** -dnl Check for required packages -dnl *********************************************************************** -PKG_CHECK_MODULES(SHOTWELL, [ - gee-0.8 >= 0.8.5 - gexiv2 >= 0.10.4 - gio-unix-2.0 >= 2.20 - glib-2.0 >= 2.40.0 - gmodule-2.0 >= 2.24.0 - gstreamer-1.0 >= 1.0.0 - gstreamer-base-1.0 >= 1.0.0 - gstreamer-plugins-base-1.0 >= 1.0.0 - gstreamer-pbutils-1.0 >= 1.0.0 - gtk+-3.0 >= 3.18.0 - gudev-1.0 >= 145 - libexif >= 0.6.16 - libgphoto2 >= 2.5.0 - libraw >= 0.13.2 - libxml-2.0 >= 2.6.32 - sqlite3 >= 3.5.9 - ]) -PKG_CHECK_MODULES(THUMBNAILER, [gee-0.8 >= 0.8.5 gtk+-3.0 >= 3.18.0 - gstreamer-base-1.0 >= 1.0.0]) - -PKG_CHECK_MODULES(PLUGIN, [gobject-2.0 glib-2.0 json-glib-1.0 libxml-2.0 - libsoup-2.4 webkit2gtk-4.0 gee-0.8]) - -PKG_CHECK_MODULES(IMPORT, [gee-0.8 >= 0.8.5 glib-2.0 gio-2.0 sqlite3]) - -PKG_CHECK_MODULES(PUBLISHING, [gobject-2.0 glib-2.0 gexiv2 json-glib-1.0 - gee-0.8 libsoup-2.4 libxml-2.0 gtk+-3.0 - webkit2gtk-4.0 gcr-3 gcr-ui-3 libgdata]) - -PKG_CHECK_MODULES(TRANSITIONS, [gobject-2.0 cairo gio-2.0 gdk-pixbuf-2.0 - gdk-3.0]) - -AS_IF([test "x$with_authenticator" = "xshotwell"], - [ - PKG_CHECK_MODULES(AUTHENTICATOR, [gobject-2.0 glib-2.0 libsoup-2.4 - webkit2gtk-4.0 gee-0.8 gtk+-3.0 - libxml-2.0 json-glib-1.0]) - AC_SUBST(AUTHENTICATOR_PACKAGES, ["--pkg webkit2gtk-4.0 --pkg gtk+-3.0 --pkg libsoup-2.4 --pkg gee-0.8 --pkg libxml-2.0 --pkg json-glib-1.0"]) - ]) - -dnl *********************************************************************** -dnl Unity support -dnl *********************************************************************** -AC_ARG_ENABLE([unity-support], - AS_HELP_STRING([--enable-unity-support], - [Enable Ubuntu Unity integration]), - [], - [enable_unity_support=no]) - -AS_IF([test "x$enable_unity_support" = "xyes"], - [ - PKG_CHECK_MODULES(UNITY, [unity], - [ - HAVE_UNITY=yes - UNITY_VALAFLAGS="--pkg unity --define UNITY_SUPPORT" - AC_SUBST([UNITY_VALAFLAGS]) - ], [HAVE_UNITY=no]) - ], [HAVE_UNITY=no]) -AC_SUBST([HAVE_UNITY]) -AM_CONDITIONAL([HAVE_UNITY],[test "x$HAVE_UNITY" = "xyes"]) - -dnl *********************************************************************** -dnl Ubuntu apport hook -dnl *********************************************************************** -AC_ARG_ENABLE([apport-hook], - AS_HELP_STRING([--enable-apport-hook], - [Install apport hook]), - [], - [enable_apport_hook=no]) - -AM_CONDITIONAL([INSTALL_APPORT_HOOK], [test "x$enable_apport_hook" != "xno"]) - -dnl *********************************************************************** -dnl Publishers -dnl *********************************************************************** - -m4_define(ALL_PUBLISHERS, [facebook, flickr, picasa, piwigo, youtube, gallery3, tumblr]) -AC_ARG_ENABLE([publishers], - AS_HELP_STRING([--enable-publishers=@<:@list-of-publishers or all@:>@], - [A comma-separated list of publishers from ALL_PUBLISHERS]), - [],[enable_publishers="ALL_PUBLISHERS"]) - -AS_IF([test "$xenable_publishers" = "xall"], - [enable_publishers="ALL_PUBLISHERS"],[]) - -save_ifs=$IFS -IFS=, -PUBLISHER_VALAFLAGS="" -ENABLED_PUBLISHERS="" -for publisher in $enable_publishers; do - case $publisher in - *facebook*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_FACEBOOK" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS facebook" - ;; - *flickr*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_FLICKR" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS flickr" - ;; - *picasa*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_PICASA" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS picasa" - ;; - *piwigo*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_PIWIGO" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS piwigo" - ;; - *youtube*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_YOUTUBE" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS youtube" - ;; - *gallery3*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_GALLERY3" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS gallery3" - ;; - *rajce*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_RAJCE" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS rajce" - ;; - *tumblr*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_TUMBLR" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS tumblr" - ;; - *yandex*) - PUBLISHER_VALAFLAGS="$PUBLISHER_VALAFLAGS --define HAVE_YANDEX" - ENABLED_PUBLISHERS="$ENABLED_PUBLISHERS yandex" - ;; - *) - ;; - esac -done -IFS=$save_ifs -AC_SUBST([PUBLISHER_VALAFLAGS]) - - -dnl *********************************************************************** -dnl Extra publishing plugins -dnl *********************************************************************** -AC_ARG_ENABLE([extra-plugins], - AS_HELP_STRING([--disable-extra-plugins], - [Enable building and installation of extra - publishing plugins]), - [],[enable_extra_plugins=yes]) -AS_IF([test "x$enable_extra_plugins" = "xyes"], - [HAVE_EXTRA_PLUGINS=yes], [HAVE_EXTRA_PLUGINS=no]) -AC_SUBST([HAVE_EXTRA_PLUGINS]) -AM_CONDITIONAL([HAVE_EXTRA_PLUGINS], [test "x$HAVE_EXTRA_PLUGINS" = "xyes"]) - -dnl *********************************************************************** -dnl Initialize Libtool -dnl *********************************************************************** -LT_PREREQ([2.2]) -LT_INIT - -dnl *********************************************************************** -dnl Help processing -dnl *********************************************************************** -AX_REQUIRE_DEFINED([YELP_HELP_INIT]) -YELP_HELP_INIT - -dnl *********************************************************************** -dnl AppData support -dnl *********************************************************************** -AX_REQUIRE_DEFINED([APPSTREAM_XML]) -APPSTREAM_XML - -dnl *********************************************************************** -dnl GResource compiler -dnl *********************************************************************** -AC_SUBST([GLIB_COMPILE_RESOURCES], [`$PKG_CONFIG --variable glib_compile_resources gio-2.0`]) - -dnl *********************************************************************** -dnl Process .in Files -dnl *********************************************************************** -AC_CONFIG_FILES([ - Makefile - misc/Makefile - po/Makefile.in - help/Makefile - app-icons/Makefile - icons/Makefile - ui/Makefile - apport/Makefile -],[], -[API_VERSION='$API_VERSION']) -AC_OUTPUT - -echo "" -echo " ${PACKAGE} - ${VERSION}" -echo "" -echo " Options" -echo "" -echo " Prefix ............................... : ${prefix}" -echo " Libdir ............................... : ${libdir}" -echo " Unity support ........................ : ${HAVE_UNITY}" -echo " Additional publishing plugins ........ : ${HAVE_EXTRA_PLUGINS}" -echo " Authentication library ............... : ${with_authenticator}" -echo " Publishers ........................... : ${ENABLED_PUBLISHERS}" -echo "" diff --git a/data/appdata/edit.png b/data/appdata/edit.png new file mode 100644 index 0000000..8309470 Binary files /dev/null and b/data/appdata/edit.png differ diff --git a/data/appdata/harbor.png b/data/appdata/harbor.png new file mode 100644 index 0000000..5e2f5d1 Binary files /dev/null and b/data/appdata/harbor.png differ diff --git a/data/appdata/import.png b/data/appdata/import.png new file mode 100644 index 0000000..428775f Binary files /dev/null and b/data/appdata/import.png differ diff --git a/data/appdata/organize.png b/data/appdata/organize.png new file mode 100644 index 0000000..1743dcc Binary files /dev/null and b/data/appdata/organize.png differ diff --git a/data/appdata/publish.png b/data/appdata/publish.png new file mode 100644 index 0000000..a21d0b8 Binary files /dev/null and b/data/appdata/publish.png differ diff --git a/dist/debian/changelog b/dist/debian/changelog new file mode 100644 index 0000000..1ed41f1 --- /dev/null +++ b/dist/debian/changelog @@ -0,0 +1,997 @@ +shotwell (0.27.0-0~jensge1~artful1) artful; urgency=medium + + * Remove F-Spot import support + * Create a commandline utility to test image transformations + * Speed up color transformations a bit + * Bump GTK+ requirement to 3.18 and remove deprecated functions + * Clean-up histogram drawing code + * Run thumbnailer with nice 19 + * Update VAAPI blacklisting for video thumbnailer and new plugin structure + * Add configurable image background + * Split several dialogs from shotwell.ui file + * Move Tumblr to default plugin set + * Remove some unnecessary memcpys on import + * Add Meson build support + * Some more ngettext for plurals + * Add --fullscreen/-f option for viewer + * Add option to install Ubuntu apport hook + * Fix issue when importing to NTFS-backed vboxfs + * Fix GSettings schema search path for running out-of-tree + * Work around "Camera locked: -53" error on GNOME + * Fix issue with missing highlight on dnd actions + + -- Jens Georg Wed, 21 Jun 2017 08:17:24 +0200 + +shotwell (0.26.0-0~jensge1~zesty1) zesty; urgency=medium + + * Translation updates + * Fix build on non-glibc systems + * Fix missing optimisation in standard configure call + + -- Jens Georg Mon, 20 Mar 2017 13:40:51 +0100 + +shotwell (0.25.92-0~jensge1~zesty1) zesty; urgency=medium + + * Fix navigation issue when deleting image in fullscreen view + * Fix toolbox not visible on Mate in fullscreen view + * Fix navigation in viewer when saving modified photo + * Fix wrong macro in manpage + * Clean-up some dependencies + * Make it possible to enable/disable individual publishers + * Remove obsolete UI file + * Move all icons in the resource file + * Move ui files into resources + * Remove obsolete Glade helpers + * Clean-up printing dialog a little + * Piwigo: Append .jpg extension to published raw files + * Fix keyboard accessability of CCW rotation + * Fix massive memory consumption when importing videos + * Fix context menu of viewer + * Fix a useless string copy + * Use defalt measurements depending on locale when none are set + * Translation updates + + -- Jens Georg Thu, 16 Mar 2017 20:01:59 +0100 + +shotwell (0.25.90-0~jensge1~xenial1) xenial; urgency=medium + + * Remove obsolete option to create new folders on Picasa web albums + * Update Google API keys + * Fix Youtube upload by porting to libgdata + * Use embedded thumbnails in RAW files when default developer is set to + Camera + * Remove accidental raw development while importing + * Fix "Export" menu accidently being labelled as "Save As" + + -- Jens Georg Mon, 27 Feb 2017 20:38:51 +0100 + +shotwell (0.25.5-0~jensge1~yakkety1) yakkety; urgency=medium + + * Fix setting of gamma value and color matrix in libraw + * Extract web publishing authenticators into separate library. That should + make it possible to easily support UOA and GOA without patching Shotwell. + * Translation updates + + -- Jens Georg Thu, 23 Feb 2017 18:06:00 +0100 + +shotwell (0.25.4-0~jensge1~yakkety1) yakkety; urgency=high + + * Publishing: Use HTTPS everywhere + * Translation updates + + -- Jens Georg Tue, 31 Jan 2017 21:24:30 +0100 + +shotwell (0.25.3-0~jensge1~yakkety1) yakkety; urgency=medium + + * Fix event page context menu + * Try to guess character set of string when UTF-8 validation fails + * Fix tags context menu + * Properly switch menu bar when changing pages + * Fix rating + * Fix a critical about reparenting a popup menu + * Fix sidebar context menu + * Fix toolbar in camera import page + * Update glade files for all publishers + * Flickr: Simplify OAuth parsing by using libsoup + * Fix accellerators not coming from menu model + * Add -f as shortcut for search bar + * Remove AppMenu, needs more thinking about the design. + * Flickr: Use human-readable size of upload quota + * Fix leave fullscreen option + * Fix upload issues with flickr + * Fix several disabled actions when switching away from pages + * Fix actions in fullscreen + * Fix several typos + * Piwigo: Fix title and comments on upload + * Improved duplicate detection + * Updated translations + + -- Jens Georg Wed, 18 Jan 2017 23:21:38 +0100 + +shotwell (0.25.2-0~jensge1~xenial1) xenial; urgency=medium + + * Fix missing About action + * Fix setting of initial action state + * Fix missing initialzation of several states + * Fix sort order not working + * Fix a critical on startup + * Fix initial sort order + * Fix hiding of search toolbar + * Fix rating filter menu initially being disabled + * Use Gtk.Revealer for bottom toolbar + * Fix a copy and paste error in the publishing result + * Use Application menu + * Fix debian scripts + * Fix filter actions not being active + * Fix initial search bar state not being persisted + * Remove deprecated Gtk.IconFactory + * Add missing keyboard shortcut for setting the background + * Move some dialogs to GtkTemplate, preparing for issues with valac master + * Fix context-sensitive label of background menu + * Fix context-sensitive label of Undo and Redo menu + * Fix context menu on import page + + -- Jens Georg Mon, 12 Dec 2016 18:18:45 +0100 + +shotwell (0.25.1-0~jensge1~xenial1) xenial; urgency=medium + + * Remove deprecated libsoup API + * Remove extra box around WebKit authenticator view + * Tumblr: Fix compile error with recent vala compiler + * Thumbnailer: Fix an issue with accidental closing of file descriptors + * Distribute misc.vapi + * Use proper ngettext for plurals instead of hard-coded >1 + * Fix issue with unique index on MD5 and Format + * Update Piwigo dialogs + * Remove most of the deprecated API calls for GTK+ <= 3.14 + * Remove some useless warnings generated by Vala + * Refactor Plugins to use a common aproach to load panes from glade + * Piwigo: Simplify category parsing + * Remove GtkUIManager and Gtk*Action* from code + * Fix a crash when clicking on tool window under Wayland + * Translation updates + + -- Jens Georg Mon, 21 Nov 2016 20:28:43 +0100 + +shotwell (0.25.0-0~jensge1~xenial1) xenial; urgency=medium + + * Add contrast to improvements + * Add a log when shifting events + * Add a debug output of the current timezone + * Fix compilation with recent Vala compiler + * Fix focus handling of full-screen viewer + * Remove obsolete CSS style property + * Support ACDSEE tags + * Use unicode characters + * Remove deprecated calls + * Silence two C warnings that are usually caused by valac + * Refactor web authenticator + * Spelling fixes + * Piwigo: Add option to override SSL certificate handling + * Piwigo: Add option to show the SSL certificate + * Remove an old GTK+ work-around + * Remove deprecated GSettings calls + * Persist export dialog settings + * Remove deprecated elements from export dialog + * Port web plugins to new libsoup API + * Fix libraw binding + * Piwigo: Fix new album creation + * Blacklist vaapi decoder to prevent crashes in video meta data extraction + * Hide "Folder" side-bar when empty + * Enable SQL debugging through environment variable + + + -- Jens Georg Mon, 24 Oct 2016 20:07:30 +0200 + +shotwell (0.23.7-1~jensge1~xenial1) xenial; urgency=medium + + * Language updates + + -- Jens Georg Mon, 12 Sep 2016 20:10:26 +0200 + +shotwell (0.23.6-1~jensge1~xenial1) xenial; urgency=medium + + * Fix locale-dependent times + * Use nl_langinfo instead of custom LConv + * Fix renaming of tags and saved searches + * Improve message shown on empty camera + * Make thm a recognized extension for JPEG files + + -- Jens Georg Mon, 29 Aug 2016 21:26:10 +0200 + +shotwell (0.23.5-1~jensge1~xenial2) xenial; urgency=medium + + * Plugins: Load icons and GtkBuilder files from GResource + * Offer a way to hide the bottom toolbar + * Fix .desktop file generation + * Use Gtk.MessageDialog's printf-style API for strings + * Add SQL indexes to PhotoTable + * Add Language headers to po files + * Update INSTALL file + * Really remove reference to external hmac_sha1 + * Disambiguate strings for time ranges + * Implement linked tags + * Make it more clear that something failed if SSL conncetion was not + possible + * Add option to filter by saved search + * Explicitly link plugins to their dependencies + * Fix typo in GSettings schema + * Re-add --disable-extra-plugins configure option + * Fix settings migrator and thumbnailer path + * Bump debian compat for proper --libexecdir parameter + + -- Jens Georg Tue, 16 Aug 2016 12:57:15 +0200 + +shotwell (0.23.4-1~jensge1~xenial1) xenial; urgency=medium + + * libraw: Fix binding of ProcessedImage.data + * graw: Prevent needless array duplication + * Fix screenshot URLs in appdata + * db: Add option to trace SQL statements + * Change build system to autotools + * Add help, appdata, gsettings and desktop files to translation system + * Change way help is built and installed + * Always install the manpage + * Several translation fixes + * Make message more clear that there are no photos matching a filter + + -- Jens Georg Sun, 24 Jul 2016 18:43:30 +0200 + +shotwell (0.23.2-1~jensge2~xenial1) xenial; urgency=medium + + * Use yelp-build to generate HTML docs + * Remove gphoto-2.4 support + * Fix background color drawing (#766864) + * Port GtkNotebook to GtkStack (#744289) + * Fix missing scroll bars in events (#766864) + * Fix URLs in manpage + * Clean up external functions + * Port librest's internal hmac_sha1 implementation to Vala + * Fix multiplication of symbols in plugins + * Request "popup" login in Facebook + * Update help regarding publishing permissions in Facebook (#766919) + * Add source SVG for new app icons + * Update logo for help + * Remove executable flag on images + * Piwigo: Let libsoup parse the cookie + * Remove string utility functions in publishing plugins + * Remove a libgee work-around, bump to 0.10 minimum version + * Make filter toolbar buttons contain text and image + * Move commonly used functions into shared library to prevent multiple + definition of symbols + + -- Jens Georg Mon, 04 Jul 2016 22:06:16 +0200 + +shotwell (0.23.1-1~jensge2~xenial1) xenial; urgency=medium + + * Update Facebook application id. Facebook integration works again (#748991) + * Remove obsolete VAPIs + * Remove custom WEXITSTATUS implementation + * Fix an assert in file monitor caused by renaming a file (#759403) + * Rename "Yorba website" to "Shotwell website" in About dialog so it + actually says what it does. + * Change the way how shotwell checks whether it runs uninstalled to allow + running with symlinks (#747374) + * Copyright was transferred from Yorba to SFC + * Do not block closing the viewer if there was an issue loading the photo + (#740436) + * Remove remaining references to .gnome2 directory (#766339) + * Update icons to hires versions and add a symbolic one (#717326) + * If we can't find any pixbuf representation of the Photo, push an empty + pixmap to force the display of the error message (#766338) + * Fix a critical when get_metadata returns null + * Remove deprecated calls to gtk_widget_render_icon() (#719188) + * Panic out if we cannot open the file in the viewer + * Make toolbar use GtkOverlay instead of implementing a custom pop-up to + prevent all kinds of issues with overlaying other applications or + toolboxes (#756126) + * Remove criticals caused by mouse hiding algorithm + + -- Jens Georg Mon, 23 May 2016 21:04:00 +0200 + +shotwell (0.23.0-1~xenial1) xenial; urgency=medium + + * Allow thinner minimum sidebar (#718611) + * Check .cache directory for read/write permissions (#737747) + * Fix crash during metadata update (#739917) + * Fixed Crop Ribbon / Control not visible (#747201) + * Port to webkit2gtk-4.0 (#751709) + * Have all soup sessions validate TLS certificates + * Remove shell magic from Makefile + * Remove calls to Posix.system() + * Documentation fixes and improvements (#764800) + * Fix CSS issue introduced with previous CSS improvements (#747637) + * Don't use GtkHeaderBar on dialogs if the gtk-dialogs-use-header setting is + not set (#749874) + * Use proper umask to create XDG_USER_CACHE and XDG_USER_DATA when they not + exist (#765182) + * Don't build the plugin twice + * Call pkg-config only once, not every compiler call + * Fix parallel builds not to build plugins several times over + * Fix contradicting license in rejected.svg (#757643) + + -- Jens Georg Tue, 26 Apr 2016 18:50:55 +0200 + +shotwell (0.22.0-1~vivid1) vivid; urgency=low + + * Improved metadata support for Facebook upload (#742163) + * Saved search now properly supports text is-set, not-set (#743924, #743923) + * Import title, exposure time when available + * User interface improvements (#744291, #719284, more) + * Sort photos by filename (#717878) + * Updated translations + + -- Jim Nelson Mon, 02 Feb 2015 18:24:34 -0800 + + +shotwell (0.21.0-1~utopic1) utopic; urgency=low + + * User interface refresh (#742326, #742443) + * Fix Shotwell Viewer .desktop file (#743799) + * Natural sorting of photo titles (#717960) + * Improved video thumbnailer (#739396, #741821) + * Updated translations + + -- Jim Nelson Mon, 02 Feb 2015 18:24:34 -0800 + + +shotwell (0.20.2-1~trusty2) trusty; urgency=low + + * Mark as Conflicts/Replaces Ubuntu's shotwell-common package (#724080) + + -- Jim Nelson Thu, 13 Nov 2014 19:12:06 -0800 + + +shotwell (0.20.2-1~trusty1) trusty; urgency=low + + * Set Desktop Slideshow dialog resource now included in distribution (#739095) + * Check for rendering failure in video thumbnailer (#738245) + * Updated translations + + -- Jim Nelson Fri, 31 Oct 2014 14:30:15 -0700 + + +shotwell (0.20.1-1~utopic1) utopic; urgency=low + + * Corrects problems with navigating photos in full-screen mode (#737092) + * Better memory utilization via more conservative pixbuf cache (#715198) + * Fixes minor bugs detected by better Vala code analysis + + -- Jim Nelson Thu, 02 Oct 2014 13:08:22 -0700 + + +shotwell (0.20.0-1~trusty1) trusty; urgency=low + + * Fix crash when deleting a photo in Shotwell Photo Viewer + * Fix crash when deleting a photo + * Better detection of corrupt files while importing + * Updated translations + + -- Jim Nelson Tue, 16 Sep 2014 15:36:44 -0700 + + +shotwell (0.19.0-1~saucy1) saucy; urgency=low + + * Support for Rajce.net and Gallery 3 photo services added + * Set background image for lock screen + * Better detection of corrupt images during import + * Various bug fixes + * Updated translations + + -- Jim Nelson Thu, 21 Aug 2014 13:59:52 -0700 + + +shotwell (0.18.1-1~saucy1) saucy; urgency=low + + * Fix Flickr publishing errors due to Flickr moving to HTTPs-only + * Fix crash when updating photo data/time + * Fix crash due to nested tag and changing sidebar selection + * Corrected URLs to point to new gnome.org pages + + -- Jim Nelson Mon, 30 Jun 2014 15:11:13 -0700 + + +shotwell (0.18.0-1~saucy1) saucy; urgency=low + + * Tumblr publishing fixed + * UNIX pipe unnecessarily left open for each imported video + * Improved searching for event comments and diacritics + * Bug fixes + * Compile and install translated help files + * Updated translations + + -- Jim Nelson Mon, 17 Mar 2014 15:56:49 -0700 + + +shotwell (0.15.1-1~raring1) raring; urgency=low + + * Install Tumblr plugin resources + * Fix crash when video thumbnails are being inspected and created + + -- Jim Nelson Tue, 19 Nov 2013 16:28:43 -0800 + + +shotwell (0.15.0-2~raring1) raring; urgency=low + + * Update to latest gexiv2 + + -- Charles Lindsay Fri, 04 Oct 2013 12:51:06 -0700 + +shotwell (0.15.0-1~raring2) raring; urgency=low + + * Copy and paste color adjustments between photos + * Highlights detail adjustment + * YouTube plugin now uses OAuth / OpenID + * Videos in Missing Files now re-import properly + * Improvements when thumbnailing videos + * Numerous bug fixes + + -- Jim Nelson Thu, 03 Oct 2013 16:33:28 -0700 + + +shotwell (0.14.1-1~quantal1) quantal; urgency=low + + * Fixes a critical issue where Shotwell could + close unexpectedly when working with RAW photos + in direct-edit mode + * The Facebook Connector now recovers smoothly + from type 7 errors + * EXIF-oriented photos uploaded to Facebook now + appear in their correct orientation, even when + the strip metadata option is turned on + * Fixes an issue where incorrect view filter + settings were applied on tag and event pages + * The Camera Developer is now disabled for RAW + images that lack a suitable paired or embedded + JPEG preview + * Updated translations for many languages, + including an updated Catalan translation that + corrects a problem where incorrect event dates + were displayed + * Assorted other bug fixes + + -- Lucas Beeler Wed, 3 Apr 2013 10:59:20 -0700 + + +shotwell (0.14.0-1~quantal1) quantal; urgency=low + + * A folder tree in the sidebar provides a directory- + hierarchy view of your Shotwell library. + * Dramatically improved user experience for RAW + photographers: long-standing bugs involving RAW + developer switching have been fixed. + * Comprehensive logging of photo and video import, + including the ability to save an import log file + to disk. The log tracks which files were detected + as duplicates as well as files that couldn't be + imported due to disk or camera problems. + * The Facebook Connector now uses the Facebook + Graph API, resulting in a smoother, more stable + experience uploading photos and videos to Facebook. + As a bonus, Shotwell photo titles now appear as + Facebook photo captions! + * The Shotwell video subsystem now relies on + GStreamer 1.0, making for easier, more stable video + import, better video thumbnails, and better handling + of video metadata. + * New slideshow effects, improved Piwigo support, + the ability to show and hide the main Shotwell sidebar, + and numerous bug fixes and translation updates! + + -- Lucas Beeler Mon, 18 Mar 2013 12:15:51 -0700 + + +shotwell (0.14.0pr1-1~precise1) precise; urgency=low + + * 0.14.0 pre-release + + -- Jim Nelson Wed, 06 Mar 2013 12:27:58 -0800 + + +shotwell (0.13.1-1~precise1) precise; urgency=low + + * Fixes an issue in which Shotwell would crash after deleting + all photos present in a view + * Fixes an issue where Shotwell would not include all + selected photos during a Nautilus "Send To..." export + operation + * Corrects a problem in which the file chooser dialog + used to select Shotwell's library location would + inappropriately select the parent directory of the chosen + directory + * Shotwell now properly inhibits the system screensaver when + playing a slideshow + * Fixes an issue in which the search filter bar could become + invisible even though a filter was being applied + * A progress bar now correctly appears during long batch + rotate and auto-enhance operations + * Shotwell no longer crashes when certain kinds of malformed + responses are received from remote servers during photo + publishing + * Corrected translation and desktop integration errors + + -- Lucas Beeler Fri, 5 Oct 2012 11:09:17 -0700 + + +shotwell (0.13.0-1~precise1) precise; urgency=low + + * The Shotwell Extras plugins now include support for + publishing photos to Tumblr + * Shotwell correctly handles dates before 1969 + * Shotwell lets you remove sensitive information from photos + before publishing them to social media sites + * Shotwell regenerates thumbnails automatically, making + migrating libraries between computers easier + * The Picasa connector now uses OAuth authentication for + enhanced security + * Bug fixes and translation updates + + -- Lucas Beeler Wed, 19 Sep 2012 16:08:22 -0700 + + +shotwell (0.12.3-1~oneiric1) oneiric; urgency=low + + * Corrects an issue where tags could be inappropriately removed from a + library. + * Enhances support for AVCHD-capable cameras. + * Prevents a soft lockup that could occur when certain very dark images + were autoenhanced. + * Corrects an issue where pressing the zoom hotkeys in certain parts + of the application could cause a crash. + + -- Clint Rogers Wed, 9 May 2012 11:22:00 -0700 + + +shotwell (0.12.2-1~oneiric1) oneiric; urgency=low + + * Corrects an issue where graphical corruption of the UI could + occur if the user navigated away from a camera page while camera + previews were being generated. + * Adds enhanced support for the Unity desktop environment. + * Clarified several strings. + * The application now recovers gracefully from corrupted tag data. + + -- Clint Rogers Tue, 11 Apr 2012 11:22:00 -0700 + + +shotwell (0.12.1-2~oneiric1) oneiric; urgency=low + + * Rebuild 0.12.1 for Oneiric with updated gexiv2. + + -- Adam Dingle Sat, 31 Mar 2012 12:56:39 -0700 + + +shotwell (0.12.1-1~oneiric1) oneiric; urgency=low + + * Corrects a critical issue where the application could + not be started in direct-edit mode. + + -- Clint Rogers Tue, 28 Mar 2012 12:18:54 -0700 + + +shotwell (0.12.0+trunk-1~oneiric1) oneiric; urgency=low + + * Adds straighten tool + * Ported from GTK 2 to GTK 3 + * Better handling of importing from Android devices + * Facebook and Flickr login now use OAuth authentication + * Numerous enhancements to the plugin subsystem + * The F-Spot importer is now implemented as a plugin + * Many, many bugfixes and stability enhancements + + -- Clint Rogers Tue, 27 Mar 2012 12:18:54 -0700 + + +shotwell (0.11.6+trunk-1~oneiric1) oneiric; urgency=low + + * Fixes a critical bug in which adding or modifying + tags in the single-photo view could result in the + loss of tag data. + + -- Lucas Beeler Thu, 3 Nov 2011 14:57:12 -0800 + + +shotwell (0.11.5+trunk-1~oneiric) oneiric; urgency=low + + * Trunk build for Oneiric. + + -- Eric Gregory Mon, 24 Oct 2011 11:38:45 -0700 + + +shotwell (0.11.5-1~natty1) natty; urgency=low + + * Fixes a collection concurrent access issue that could cause + Shotwell to crash during F-Spot import for users still + affected by this issue even after installing the Shotwell + 0.11.4 update. + + -- Lucas Beeler Tue, 18 Oct 2011 12:02:25 -0800 + + +shotwell (0.11.4-1~natty1) natty; urgency=low + + * Fixes two collection concurrent access issues that could cause + Shotwell to crash during F-Spot import. + + -- Lucas Beeler Tue, 13 Oct 2011 13:43:11 -0800 + + +shotwell (0.11.3-1~natty1) natty; urgency=low + + * Fixes a critical issue where Shotwell could crash immediately + following a photo import + * Fixes a critical issue where Shotwell could crash if the user + entered a tag name containing a slash ("/") character + * Long error messages in the Publishing dialog box are now wrapped + correctly + + -- Lucas Beeler Tue, 11 Oct 2011 14:20:00 -0800 + + +shotwell (0.11.2-1~natty1) natty; urgency=low + + * Increases stability working with hierarchical tags + * Importing hierarchical tags from F-Spot now works properly + * Fixes "server redirect contained no session key" errors in + the Facebook Connector + * Corrects problems with item counts over mixed media + * Various small fixes and enhancements + + -- Lucas Beeler Tue, 20 Sep 2011 15:00:00 -0800 + + +shotwell (0.11.1-1~natty1) natty; urgency=low + + * RAW+JPEG pairing now works on file import + * Startup crashes fixed + * Hierarchical tag issues resolved + * RAW developer bugs fixed + * Resolved internationalization problems + * Various small fixes and enhancements + + -- Eric Gregory Thu, 8 Sep 2011 13:00:00 -0800 + + +shotwell (0.11.0-1~natty1) natty; urgency=low + + * Hierarchical tags + * Support for RAW+JPEG and selectable RAW developer + * Switched from GConf to GSettings + * "Hide Photos Already Imported" is now persistent + * New Saved Search options + * Mimics no longer stored in home directory + * Added support for BMP format + * Many, many bugfixes + + -- Eric Gregory Tue, 23 Aug 2011 13:00:00 -0800 + + +shotwell (0.10.1-1~natty1) natty; urgency=low + + * Fixes "Hide Photos Already Imported" + * Multiple editing bugs fixed + * Resolves crash when two or more cameras have the same name + * Documentation now includes saved searches + * Piwigo bugs fixed + * Translation updates + + -- Eric Gregory Fri, 3 Jun 2011 13:00:00 -0800 + + +shotwell (0.10.0-1~natty1) natty; urgency=low + + * Dynamic view of photo library through saved search feature + * Automatic database backup + * Adjust date/time for videos + * Added Valadate testing framework + * Shotwell video thumbnailer eliminates Totem dependency + * Crop tool is now more flexible + * Filenames no longer used as titles on Facebook and Picasa uploads + * Translation corrections + * Many bug fixes + + -- Eric Gregory Thu, 26 May 2011 13:00:00 -0800 + + +shotwell (0.9.3-1~maverick1) maverick; urgency=low + + * Resolves issue where setting the desktop background didn't work in Gnome3 + * Mimics are now deleted when a RAW photo is removed + * Event dates are now only shown once in the Event view + * Fixes a number of translation issues + + -- Eric Gregory Wed, 21 Apr 2011 15:00:00 -0800 + + +shotwell (0.9.2-1~maverick1) maverick; urgency=low + + * Resolves translation issue where shotwell.mo is installed in wrong location + * Fixes issue where cancelling Flickr upload can crash Shotwell + * Fixes issue where creating a Picasa Web album with an ampersand in the name + crashes Shotwell + * Resolves bug where selecting "Publish" in single photo mode publishes the + entire library instead of the selected photo + * Async I/O in publishing operations is now stopped when the user cancels the + operation + * Issue fixed on Fedora where the text was cut off in publishing dialog + * Fixes issue with ratings filter where it didn't function when the search bar + was hidden + + -- Eric Gregory Mon, 11 Feb 2011 15:00:00 -0800 + + +shotwell (0.9.1-1~maverick1) maverick; urgency=low + + * Fixes many crashes and other issues in publishing plugins. + * Fixes issues where paths and filenames are not displayed correctly after a + failed import. + * Fixed issue where text search in event and camera import pages was a string + match instead of a keyword match. + * For enhanced compatibility with GNOME 3, the desktop name of the Shotwell + application has changed from "Shotwell Photo Manager" to simply "Shotwell". + * Shotwell now provides a configure script option to set the name of the system + library directory to either lib or lib64. + * Enhanced visibility of red-eye reticle. + * Fixed issue where the Adjust palette could be positioned partially off-screen + * Plugins now respect --debug switch in configure script. + * The event containing undated photos could be incorrectly labelled "(null)" in + the events directory page. + + -- Eric Gregory Mon, 4 Feb 2011 12:00:00 -0800 + + +shotwell (0.9.0-1~maverick1) maverick; urgency=low + + * New search bar can filter by media type, rating, and text matching. + (Titles, filename, tag and event names are searched.) + * TIFF support + * Extensible plugin framework for Web publishing and slideshow transitions. + * Print multiple photos, and multiple photos per page. + * Configurable user directory pattern during import. + * Edit multiple photo titles at once. + * Improved rendering of underexposed RAW photos. + * Various improvements and bug fixes. + + -- Eric Gregory Fri, 18 Mar 2011 18:14:31 -0800 + + +shotwell (0.8.1-1~maverick1) maverick; urgency=low + + * Fixes a problem where Shotwell could crash unexpectedly at + startup or when reading/writing metadata to files. + * Fixes a problem where Shotwell could hang when importing + voice-annotated videos. + * Fixes a problem where Shotwell failed to import date and time + information for some camera-generated MP4 videos. + * Shotwell can now delete video files from camera memory. + * Shotwell now supports the 3GP video format common on mobile + phones and RAW files with the SRW suffix generated by Samsung + cameras. + * Translation fixes and updates. + + -- Lucas Beeler Mon, 10 Jan 2011 15:07:31 -0800 + + +shotwell (0.8.0-1~maverick1) maverick; urgency=low + + * Video support for Ogg, AVI, MP4, Quicktime, and WMV files. + * Upload videos to major Web services, including YouTube, Facebook, Flickr, + and PicasaWeb. + * Runtime monitoring of library directory and auto-import of newly created + files. + * Background writing of metadata (tags, titles, rating, orientation, exposure + date) to master files (user configurable). + * Flagging of photos for batch operations. + * Set multiple photos to desktop background slideshow. + * Numerous translation updates. + * Various bug fixes. + + -- Jim Nelson Thu, 23 Dec 2010 12:22:14 -0800 + + +shotwell (0.7.2-1~lucid1) lucid; urgency=low + + * Fixed major startup problem when the user's Pictures directory is actually + a symbolic link. + * Fixed potential crasher when the user's Pictures directory contains a + large number of subdirectories. + * No longer asking if copying or linking if importing from Pictures directory + (which will always be linked). + * Fixed issue when logging in to PicasaWeb with a password with a '+' + character. + * Fixed update problem when using an external editor on a photo that was + edited externally in an earlier session. + * Various bug fixes. + * Numerous translation updates. + + -- Jim Nelson Fri, 10 Sep 2010 15:52:16 -0700 + + +shotwell (0.7.1-1~lucid1) lucid; urgency=low + + * Fixed a critical bug that caused Shotwell to crash when + deleting the only photo in an event + * F-Spot import now correctly interprets older databases + * Fixed an issue where pressing F11 would not exit full-screen + mode + * Translation updates for several languages + * Updated documentation + + -- Lucas Beeler Thu, 26 Aug 2010 12:32:09 -0700 + + +shotwell (0.7.0-1~lucid1) lucid; urgency=low + + * Migration support for F-Spot users: Shotwell can import + photos directly from your F-Spot library, preserving tags + and ratings + * Photos can be rated on a 1-5 star scale or marked as rejected. + A filter button supports viewing only photos of a specified + rating or better + * A new Last Import page in the sidebar gives you instant access + to your most recently imported photo roll + * Sidebar functionality and appearance have been improved with + new icons and inline renaming + * Shotwell scans your library files at startup, looking for + changes. Maintains library consistency when working with + photos in other applications + + -- Lucas Beeler Fri, 20 Aug 2010 13:40:54 -0700 + + +shotwell (0.6.1-1~lucid1) lucid; urgency=low + + * Added Lithuanian and Serbian translations, updated Italian + and Spanish translations + * Fixed a problem with reverting to the default library + directory + * Added more zooming shorcuts + * Shotwell no longer offers to delete photos that failed to + import from a camera + * Photos emptied from trash no longer reappear + + -- Allison Barlow Wed, 30 Jun 2010 09:31:31 -0700 + + +shotwell (0.6.0-1~lucid1) lucid; urgency=low + + * Basic support for RAW images, including import support for + all common formats like CR2 and DNG + * Full support for working with PNG images + * Users can now zoom into photos to reveal latent detail + * A new preferences dialog gives users exceptional control + over Shotwell's functionality and appearance + * Users can now open photos in an external editor, such as the + GIMP, from within Shotwell + * Photo tags and titles are imported automatically from XMP and + IPTC metadata + * A new photo trash can + + -- Lucas Beeler Mon, 28 Jun 2010 12:48:30 -0700 + + +shotwell (0.5.0-1~karmic3) karmic; urgency=low + + * Photos can be tagged and organized by tag, creating a new + tool for managing your photo collection + * Printing + * Photos can now be published to Google's Picasa Web Albums + service + * Photo exposure date and time can be set and shifted + * Photos can be set as your desktop background directly + from Shotwell + * Photo import runs in the background, making imports smoother + and more fluid + * Publishing photos to web services is more responsive + + -- Lucas Beeler Thu, 11 Mar 2010 13:36:24 -0800 + + +shotwell (0.4.3-1~karmic1) karmic; urgency=low + + * Updated Italian and French translations. + * Windows theme installed correctly. + * Problems unmounting camera fixed. + + -- Jim Nelson Mon, 18 Jan 2010 14:09:39 -0800 + + +shotwell (0.4.2-1~karmic1) karmic; urgency=low + + * Added Bulgarian, Portuguese, and Slovak translations. Updated + German translation. + * Windows installation fixed. + * Crash when deleting photos from camera fixed. + + -- Jim Nelson Mon, 04 Jan 2010 15:02:42 -0800 + + +shotwell (0.4.1-1~jaunty1) jaunty; urgency=low + + * Minor update adding a script missing in the 0.4.0 release. + + -- Adam Dingle Thu, 24 Dec 2009 08:07:04 -0500 + + +shotwell (0.4.0-1~jaunty1) jaunty; urgency=low + * Facebook and Flickr publishing. + * Events may now be split and merged. + * Alpha-release of Windows port now available. + * Undo/redo. + * Mark photos as favorite or hidden. View only favorites or show hidden + photos. + * Duplicate photos. + * Numerous bug fixes. + + -- Jim Nelson Wed, 23 Dec 2009 14:37:49 -0800 + + +shotwell (0.3.2-1~jaunty1) jaunty; urgency=low + + * Loosened photo pipeline assertion that checked for pixbuf scaling. + * Better error handling for situation where the HAL daemon (hald) is not + running or ready. + + -- Jim Nelson Wed, 11 Nov 2009 15:16:34 -0800 + + +shotwell (0.3.1-1~jaunty1) jaunty; urgency=low + + * Makefile changes to facilitate packaging. + * Warnings caught by Vala 0.7.8 corrected. + * Toolbar items now marked "important" where appropriate. + * Binary dependencies corrected in Debian packaging. + + -- Jim Nelson Mon, 09 Nov 2009 14:25:31 -0800 + + +shotwell (0.3.0-1~jaunty1) jaunty; urgency=low + + * Major update with numerous feature additions and performance and + scalability enhancements. + * Auto enhance button, shadows control, and histogram contrast expansion now + available. + * Hierarchical event tree in sidebar. Events can now be renamed. + * Background readahead to display full-window and fullscreen photos faster. + * Crop aspect ratios. + * Basic information pane to display photo title, exposure time, dimensions, + and file size. + * Configurable slideshow delay. + * Direct edit mode. Shotwell can open any JPEG file, move between other + JPEGS in the same directory, and edit them with the same tools available in + the photo manager. + * Better keyboard handling for selecting photos and moving between pages on + the sidebar. + * In camera view, option to hide photos already imported into Shotwell. + User now offered full report of imported photos and asked if they wish to + delete the photos from the camera. + * User-configurable items now stored persistently via GConf. + * Code internationalized. Partial French translation now available. + + -- Jim Nelson Mon, 02 Nov 2009 13:40:58 -0800 + + +shotwell (0.2.0-1~jaunty1) jaunty; urgency=low + + * Color histogram now available in adjustment tool. + * Drag-and-drop now supports the modifier keys for linking and asking + which operation to perform. + * Shotwell no longer uses a hardcoded directory for storing imported + photos. + * A nasty bug causing the X server to crash under compiz was fixed. + (#380) + * Support for libgee-0.3.0. + + -- Jim Nelson Wed, 05 Aug 2009 16:02:02 -0700 + + +shotwell (0.1.2-1) jaunty; urgency=low + + * Red-eye reduction feature now available. + * File/Import From Folder offers one more way to import photos into the + library. + * Color adjustment (exposure/saturation/tint/temperature) now available. + * Support for Vala 0.7.5. + + -- Jim Nelson Mon, 03 Aug 2009 11:27:11 -0700 + diff --git a/dist/debian/compat b/dist/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/dist/debian/compat @@ -0,0 +1 @@ +9 diff --git a/dist/debian/control b/dist/debian/control new file mode 100644 index 0000000..c961d6d --- /dev/null +++ b/dist/debian/control @@ -0,0 +1,67 @@ +Source: shotwell +Section: gnome +Priority: optional +Maintainer: Jens Georg +Build-Depends: debhelper (>= 9), + desktop-file-utils (>= 0.13), + libatk1.0-dev (>= 1.30.0), + libexif-dev (>= 0.6.16), + libgee-0.8-dev (>= 0.8.5), + libgexiv2-dev (>= 0.10.4), + libexiv2-dev, + libglib2.0-dev (>= 2.30.0), + libgphoto2-dev (>= 2.5.0), + libgstreamer1.0-dev (>= 1.0.0), + libgstreamer-plugins-base1.0-dev (>= 1.0.0), + libgtk-3-dev (>= 3.12.2), + libgudev-1.0-dev (>= 145), + libjson-glib-dev (>= 0.10.0), + libraw-dev (>= 0.13.2), + libsoup2.4-dev (>= 2.26.0), + libsqlite3-dev (>= 3.5.9), + libunity-dev (>= 5.10.0), + libwebkit2gtk-4.0-dev, + libxml2 (>= 2.6.32), + m4 (>= 1.4.13), + valac (>= 0.20.1), + gnome-doc-utils, + yelp-tools, + appstream-util, + gettext ( >= 0.19.8), + libgcr-3-dev ( >= 3.18), + libgdata-dev, + meson, + ninja-build, + gnome-pkg-tools +Standards-Version: 3.9.8 +Homepage: https://wiki.gnome.org/Apps/Shotwell/ + +Package: shotwell +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, librsvg2-common, dbus-x11, dconf-tools +Recommends: desktop-file-utils +Conflicts: shotwell-common +Replaces: shotwell-common +Description: Digital photo manager + Shotwell is a digital photo manager designed for the GNOME desktop + environment. It allows you to import photos from disk or camera, organize + them in various ways, view them in full-window or fullscreen mode, and + export and share them with others by publishing them to popular web + services. + . + Visit https://wiki.gnome.org/Apps/Shotwell to read about the current state of + Shotwell's development. + +Package: shotwell-dbg +Section: debug +Architecture: any +Depends: shotwell (= ${binary:Version}), ${misc:Depends} +Description: Digital photo manager + Shotwell is a digital photo manager designed for the GNOME desktop + environment. It allows you to import photos from disk or camera, organize + them in various ways, view them in full-window or fullscreen mode, and + export and share them with others by publishing them to popular web + services. + . + Visit https://wiki.gnome.org/Apps/Shotwell to read about the current state of + Shotwell's development. diff --git a/dist/debian/copyright b/dist/debian/copyright new file mode 100644 index 0000000..9834d21 --- /dev/null +++ b/dist/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by Jim Nelson on +Wed, 23 Dec 2009 14:47:44 -0800. + +It was downloaded from http://yorba.org/download/shotwell/ + +Upstream Author: + + Jim Nelson + +Copyright: + + Copyright 2016 Software Freedom Conservancy Inc. + +License: + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + On Debian systems, the complete text of the GNU Lesser General Public + License 2.1, can be found in /usr/share/common-licenses/LGPL-2.1. + +The Debian packaging is copyright 2016 Software Freedom Conservancy Inc. and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + diff --git a/dist/debian/dirs b/dist/debian/dirs new file mode 100644 index 0000000..5e51d8a --- /dev/null +++ b/dist/debian/dirs @@ -0,0 +1,6 @@ +/usr +/usr/bin +/usr/lib/shotwell/plugins/builtin +/usr/share/applications +/usr/share/locale-langpack +/usr/share/gnome/help/shotwell diff --git a/dist/debian/docs b/dist/debian/docs new file mode 100644 index 0000000..ffe5fe2 --- /dev/null +++ b/dist/debian/docs @@ -0,0 +1,3 @@ +NEWS +README +THANKS diff --git a/dist/debian/menu b/dist/debian/menu new file mode 100644 index 0000000..a9e689e --- /dev/null +++ b/dist/debian/menu @@ -0,0 +1,2 @@ +?package(shotwell):needs="X11" section="Applications/Viewers"\ + title="Shotwell" command="/usr/bin/shotwell" diff --git a/dist/debian/rules b/dist/debian/rules new file mode 100755 index 0000000..0d1d5a6 --- /dev/null +++ b/dist/debian/rules @@ -0,0 +1,16 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +%: + dh $@ --parallel --with gnome --buildsystem=meson + +override_dh_auto_configure: + dh_auto_configure -- \ + --libexec=/usr/lib \ + -Dunity-support=true \ + -Dinstall-apport-hook=true + +override_dh_gnome_clean: + dh_gnome_clean --no-control + diff --git a/dist/debian/shotwell.install b/dist/debian/shotwell.install new file mode 100644 index 0000000..ee94136 --- /dev/null +++ b/dist/debian/shotwell.install @@ -0,0 +1,3 @@ +usr/bin +usr/lib +usr/share diff --git a/dist/debian/watch b/dist/debian/watch new file mode 100644 index 0000000..329f877 --- /dev/null +++ b/dist/debian/watch @@ -0,0 +1,3 @@ +# watch control file for uscan +version=3 +http://yorba.org/download/shotwell/([\d\.]+)/shotwell-(.*)\.tar\.gz diff --git a/facedetect/facedetect-haarcascade.xml b/facedetect/facedetect-haarcascade.xml new file mode 100644 index 0000000..5a6f275 --- /dev/null +++ b/facedetect/facedetect-haarcascade.xml @@ -0,0 +1,26161 @@ + + + + + 20 20 + + <_> + + + <_> + + <_> + + + + <_>3 7 14 4 -1. + <_>3 9 14 2 2. + 0 + 4.0141958743333817e-003 + 0.0337941907346249 + 0.8378106951713562 + <_> + + <_> + + + + <_>1 2 18 4 -1. + <_>7 2 6 4 3. + 0 + 0.0151513395830989 + 0.1514132022857666 + 0.7488812208175659 + <_> + + <_> + + + + <_>1 7 15 9 -1. + <_>1 10 15 3 3. + 0 + 4.2109931819140911e-003 + 0.0900492817163467 + 0.6374819874763489 + 0.8226894140243530 + -1 + -1 + <_> + + + <_> + + <_> + + + + <_>5 6 2 6 -1. + <_>5 9 2 3 2. + 0 + 1.6227109590545297e-003 + 0.0693085864186287 + 0.7110946178436279 + <_> + + <_> + + + + <_>7 5 6 3 -1. + <_>9 5 2 3 3. + 0 + 2.2906649392098188e-003 + 0.1795803010463715 + 0.6668692231178284 + <_> + + <_> + + + + <_>4 0 12 9 -1. + <_>4 3 12 3 3. + 0 + 5.0025708042085171e-003 + 0.1693672984838486 + 0.6554006934165955 + <_> + + <_> + + + + <_>6 9 10 8 -1. + <_>6 13 10 4 2. + 0 + 7.9659894108772278e-003 + 0.5866332054138184 + 0.0914145186543465 + <_> + + <_> + + + + <_>3 6 14 8 -1. + <_>3 10 14 4 2. + 0 + -3.5227010957896709e-003 + 0.1413166970014572 + 0.6031895875930786 + <_> + + <_> + + + + <_>14 1 6 10 -1. + <_>14 1 3 10 2. + 0 + 0.0366676896810532 + 0.3675672113895416 + 0.7920318245887756 + <_> + + <_> + + + + <_>7 8 5 12 -1. + <_>7 12 5 4 3. + 0 + 9.3361474573612213e-003 + 0.6161385774612427 + 0.2088509947061539 + <_> + + <_> + + + + <_>1 1 18 3 -1. + <_>7 1 6 3 3. + 0 + 8.6961314082145691e-003 + 0.2836230993270874 + 0.6360273957252502 + <_> + + <_> + + + + <_>1 8 17 2 -1. + <_>1 9 17 1 2. + 0 + 1.1488880263641477e-003 + 0.2223580926656723 + 0.5800700783729553 + <_> + + <_> + + + + <_>16 6 4 2 -1. + <_>16 7 4 1 2. + 0 + -2.1484689787030220e-003 + 0.2406464070081711 + 0.5787054896354675 + <_> + + <_> + + + + <_>5 17 2 2 -1. + <_>5 18 2 1 2. + 0 + 2.1219060290604830e-003 + 0.5559654831886292 + 0.1362237036228180 + <_> + + <_> + + + + <_>14 2 6 12 -1. + <_>14 2 3 12 2. + 0 + -0.0939491465687752 + 0.8502737283706665 + 0.4717740118503571 + <_> + + <_> + + + + <_>4 0 4 12 -1. + <_>4 0 2 6 2. + <_>6 6 2 6 2. + 0 + 1.3777789426967502e-003 + 0.5993673801422119 + 0.2834529876708984 + <_> + + <_> + + + + <_>2 11 18 8 -1. + <_>8 11 6 8 3. + 0 + 0.0730631574988365 + 0.4341886043548584 + 0.7060034275054932 + <_> + + <_> + + + + <_>5 7 10 2 -1. + <_>5 8 10 1 2. + 0 + 3.6767389974556863e-004 + 0.3027887940406799 + 0.6051574945449829 + <_> + + <_> + + + + <_>15 11 5 3 -1. + <_>15 12 5 1 3. + 0 + -6.0479710809886456e-003 + 0.1798433959484100 + 0.5675256848335266 + 6.9566087722778320 + 0 + -1 + <_> + + + <_> + + <_> + + + + <_>5 3 10 9 -1. + <_>5 6 10 3 3. + 0 + -0.0165106896311045 + 0.6644225120544434 + 0.1424857974052429 + <_> + + <_> + + + + <_>9 4 2 14 -1. + <_>9 11 2 7 2. + 0 + 2.7052499353885651e-003 + 0.6325352191925049 + 0.1288477033376694 + <_> + + <_> + + + + <_>3 5 4 12 -1. + <_>3 9 4 4 3. + 0 + 2.8069869149476290e-003 + 0.1240288019180298 + 0.6193193197250366 + <_> + + <_> + + + + <_>4 5 12 5 -1. + <_>8 5 4 5 3. + 0 + -1.5402400167658925e-003 + 0.1432143002748489 + 0.5670015811920166 + <_> + + <_> + + + + <_>5 6 10 8 -1. + <_>5 10 10 4 2. + 0 + -5.6386279175058007e-004 + 0.1657433062791824 + 0.5905207991600037 + <_> + + <_> + + + + <_>8 0 6 9 -1. + <_>8 3 6 3 3. + 0 + 1.9253729842603207e-003 + 0.2695507109165192 + 0.5738824009895325 + <_> + + <_> + + + + <_>9 12 1 8 -1. + <_>9 16 1 4 2. + 0 + -5.0214841030538082e-003 + 0.1893538981676102 + 0.5782774090766907 + <_> + + <_> + + + + <_>0 7 20 6 -1. + <_>0 9 20 2 3. + 0 + 2.6365420781075954e-003 + 0.2309329062700272 + 0.5695425868034363 + <_> + + <_> + + + + <_>7 0 6 17 -1. + <_>9 0 2 17 3. + 0 + -1.5127769438549876e-003 + 0.2759602069854736 + 0.5956642031669617 + <_> + + <_> + + + + <_>9 0 6 4 -1. + <_>11 0 2 4 3. + 0 + -0.0101574398577213 + 0.1732538044452667 + 0.5522047281265259 + <_> + + <_> + + + + <_>5 1 6 4 -1. + <_>7 1 2 4 3. + 0 + -0.0119536602869630 + 0.1339409947395325 + 0.5559014081954956 + <_> + + <_> + + + + <_>12 1 6 16 -1. + <_>14 1 2 16 3. + 0 + 4.8859491944313049e-003 + 0.3628703951835632 + 0.6188849210739136 + <_> + + <_> + + + + <_>0 5 18 8 -1. + <_>0 5 9 4 2. + <_>9 9 9 4 2. + 0 + -0.0801329165697098 + 0.0912110507488251 + 0.5475944876670837 + <_> + + <_> + + + + <_>8 15 10 4 -1. + <_>13 15 5 2 2. + <_>8 17 5 2 2. + 0 + 1.0643280111253262e-003 + 0.3715142905712128 + 0.5711399912834168 + <_> + + <_> + + + + <_>3 1 4 8 -1. + <_>3 1 2 4 2. + <_>5 5 2 4 2. + 0 + -1.3419450260698795e-003 + 0.5953313708305359 + 0.3318097889423370 + <_> + + <_> + + + + <_>3 6 14 10 -1. + <_>10 6 7 5 2. + <_>3 11 7 5 2. + 0 + -0.0546011403203011 + 0.1844065934419632 + 0.5602846145629883 + <_> + + <_> + + + + <_>2 1 6 16 -1. + <_>4 1 2 16 3. + 0 + 2.9071690514683723e-003 + 0.3594244122505188 + 0.6131715178489685 + <_> + + <_> + + + + <_>0 18 20 2 -1. + <_>0 19 20 1 2. + 0 + 7.4718717951327562e-004 + 0.5994353294372559 + 0.3459562957286835 + <_> + + <_> + + + + <_>8 13 4 3 -1. + <_>8 14 4 1 3. + 0 + 4.3013808317482471e-003 + 0.4172652065753937 + 0.6990845203399658 + <_> + + <_> + + + + <_>9 14 2 3 -1. + <_>9 15 2 1 3. + 0 + 4.5017572119832039e-003 + 0.4509715139865875 + 0.7801457047462463 + <_> + + <_> + + + + <_>0 12 9 6 -1. + <_>0 14 9 2 3. + 0 + 0.0241385009139776 + 0.5438212752342224 + 0.1319826990365982 + 9.4985427856445313 + 1 + -1 + <_> + + + <_> + + <_> + + + + <_>5 7 3 4 -1. + <_>5 9 3 2 2. + 0 + 1.9212230108678341e-003 + 0.1415266990661621 + 0.6199870705604553 + <_> + + <_> + + + + <_>9 3 2 16 -1. + <_>9 11 2 8 2. + 0 + -1.2748669541906565e-004 + 0.6191074252128601 + 0.1884928941726685 + <_> + + <_> + + + + <_>3 6 13 8 -1. + <_>3 10 13 4 2. + 0 + 5.1409931620582938e-004 + 0.1487396955490112 + 0.5857927799224854 + <_> + + <_> + + + + <_>12 3 8 2 -1. + <_>12 3 4 2 2. + 0 + 4.1878609918057919e-003 + 0.2746909856796265 + 0.6359239816665649 + <_> + + <_> + + + + <_>8 8 4 12 -1. + <_>8 12 4 4 3. + 0 + 5.1015717908740044e-003 + 0.5870851278305054 + 0.2175628989934921 + <_> + + <_> + + + + <_>11 3 8 6 -1. + <_>15 3 4 3 2. + <_>11 6 4 3 2. + 0 + -2.1448440384119749e-003 + 0.5880944728851318 + 0.2979590892791748 + <_> + + <_> + + + + <_>7 1 6 19 -1. + <_>9 1 2 19 3. + 0 + -2.8977119363844395e-003 + 0.2373327016830444 + 0.5876647233963013 + <_> + + <_> + + + + <_>9 0 6 4 -1. + <_>11 0 2 4 3. + 0 + -0.0216106791049242 + 0.1220654994249344 + 0.5194202065467835 + <_> + + <_> + + + + <_>3 1 9 3 -1. + <_>6 1 3 3 3. + 0 + -4.6299318782985210e-003 + 0.2631230950355530 + 0.5817409157752991 + <_> + + <_> + + + + <_>8 15 10 4 -1. + <_>13 15 5 2 2. + <_>8 17 5 2 2. + 0 + 5.9393711853772402e-004 + 0.3638620078563690 + 0.5698544979095459 + <_> + + <_> + + + + <_>0 3 6 10 -1. + <_>3 3 3 10 2. + 0 + 0.0538786612451077 + 0.4303531050682068 + 0.7559366226196289 + <_> + + <_> + + + + <_>3 4 15 15 -1. + <_>3 9 15 5 3. + 0 + 1.8887349870055914e-003 + 0.2122603058815002 + 0.5613427162170410 + <_> + + <_> + + + + <_>6 5 8 6 -1. + <_>6 7 8 2 3. + 0 + -2.3635339457541704e-003 + 0.5631849169731140 + 0.2642767131328583 + <_> + + <_> + + + + <_>4 4 12 10 -1. + <_>10 4 6 5 2. + <_>4 9 6 5 2. + 0 + 0.0240177996456623 + 0.5797107815742493 + 0.2751705944538117 + <_> + + <_> + + + + <_>6 4 4 4 -1. + <_>8 4 2 4 2. + 0 + 2.0543030404951423e-004 + 0.2705242037773132 + 0.5752568840980530 + <_> + + <_> + + + + <_>15 11 1 2 -1. + <_>15 12 1 1 2. + 0 + 8.4790197433903813e-004 + 0.5435624718666077 + 0.2334876954555512 + <_> + + <_> + + + + <_>3 11 2 2 -1. + <_>3 12 2 1 2. + 0 + 1.4091329649090767e-003 + 0.5319424867630005 + 0.2063155025243759 + <_> + + <_> + + + + <_>16 11 1 3 -1. + <_>16 12 1 1 3. + 0 + 1.4642629539594054e-003 + 0.5418980717658997 + 0.3068861067295075 + <_> + + <_> + + + + <_>3 15 6 4 -1. + <_>3 15 3 2 2. + <_>6 17 3 2 2. + 0 + 1.6352549428120255e-003 + 0.3695372939109802 + 0.6112868189811707 + <_> + + <_> + + + + <_>6 7 8 2 -1. + <_>6 8 8 1 2. + 0 + 8.3172752056270838e-004 + 0.3565036952495575 + 0.6025236248970032 + <_> + + <_> + + + + <_>3 11 1 3 -1. + <_>3 12 1 1 3. + 0 + -2.0998890977352858e-003 + 0.1913982033729553 + 0.5362827181816101 + <_> + + <_> + + + + <_>6 0 12 2 -1. + <_>6 1 12 1 2. + 0 + -7.4213981861248612e-004 + 0.3835555016994476 + 0.5529310107231140 + <_> + + <_> + + + + <_>9 14 2 3 -1. + <_>9 15 2 1 3. + 0 + 3.2655049581080675e-003 + 0.4312896132469177 + 0.7101895809173584 + <_> + + <_> + + + + <_>7 15 6 2 -1. + <_>7 16 6 1 2. + 0 + 8.9134991867467761e-004 + 0.3984830975532532 + 0.6391963958740234 + <_> + + <_> + + + + <_>0 5 4 6 -1. + <_>0 7 4 2 3. + 0 + -0.0152841797098517 + 0.2366732954978943 + 0.5433713793754578 + <_> + + <_> + + + + <_>4 12 12 2 -1. + <_>8 12 4 2 3. + 0 + 4.8381411470472813e-003 + 0.5817500948905945 + 0.3239189088344574 + <_> + + <_> + + + + <_>6 3 1 9 -1. + <_>6 6 1 3 3. + 0 + -9.1093179071322083e-004 + 0.5540593862533569 + 0.2911868989467621 + <_> + + <_> + + + + <_>10 17 3 2 -1. + <_>11 17 1 2 3. + 0 + -6.1275060288608074e-003 + 0.1775255054235458 + 0.5196629166603088 + <_> + + <_> + + + + <_>9 9 2 2 -1. + <_>9 10 2 1 2. + 0 + -4.4576259097084403e-004 + 0.3024170100688934 + 0.5533593893051148 + <_> + + <_> + + + + <_>7 6 6 4 -1. + <_>9 6 2 4 3. + 0 + 0.0226465407758951 + 0.4414930939674377 + 0.6975377202033997 + <_> + + <_> + + + + <_>7 17 3 2 -1. + <_>8 17 1 2 3. + 0 + -1.8804960418492556e-003 + 0.2791394889354706 + 0.5497952103614807 + <_> + + <_> + + + + <_>10 17 3 3 -1. + <_>11 17 1 3 3. + 0 + 7.0889107882976532e-003 + 0.5263199210166931 + 0.2385547012090683 + <_> + + <_> + + + + <_>8 12 3 2 -1. + <_>8 13 3 1 2. + 0 + 1.7318050377070904e-003 + 0.4319379031658173 + 0.6983600854873657 + <_> + + <_> + + + + <_>9 3 6 2 -1. + <_>11 3 2 2 3. + 0 + -6.8482700735330582e-003 + 0.3082042932510376 + 0.5390920042991638 + <_> + + <_> + + + + <_>3 11 14 4 -1. + <_>3 13 14 2 2. + 0 + -1.5062530110299122e-005 + 0.5521922111511231 + 0.3120366036891937 + <_> + + <_> + + + + <_>1 10 18 4 -1. + <_>10 10 9 2 2. + <_>1 12 9 2 2. + 0 + 0.0294755697250366 + 0.5401322841644287 + 0.1770603060722351 + <_> + + <_> + + + + <_>0 10 3 3 -1. + <_>0 11 3 1 3. + 0 + 8.1387329846620560e-003 + 0.5178617835044861 + 0.1211019009351730 + <_> + + <_> + + + + <_>9 1 6 6 -1. + <_>11 1 2 6 3. + 0 + 0.0209429506212473 + 0.5290294289588928 + 0.3311221897602081 + <_> + + <_> + + + + <_>8 7 3 6 -1. + <_>9 7 1 6 3. + 0 + -9.5665529370307922e-003 + 0.7471994161605835 + 0.4451968967914581 + 18.4129695892333980 + 2 + -1 + <_> + + + <_> + + <_> + + + + <_>1 0 18 9 -1. + <_>1 3 18 3 3. + 0 + -2.8206960996612906e-004 + 0.2064086049795151 + 0.6076732277870178 + <_> + + <_> + + + + <_>12 10 2 6 -1. + <_>12 13 2 3 2. + 0 + 1.6790600493550301e-003 + 0.5851997137069702 + 0.1255383938550949 + <_> + + <_> + + + + <_>0 5 19 8 -1. + <_>0 9 19 4 2. + 0 + 6.9827912375330925e-004 + 0.0940184295177460 + 0.5728961229324341 + <_> + + <_> + + + + <_>7 0 6 9 -1. + <_>9 0 2 9 3. + 0 + 7.8959012171253562e-004 + 0.1781987994909287 + 0.5694308876991272 + <_> + + <_> + + + + <_>5 3 6 1 -1. + <_>7 3 2 1 3. + 0 + -2.8560499195009470e-003 + 0.1638399064540863 + 0.5788664817810059 + <_> + + <_> + + + + <_>11 3 6 1 -1. + <_>13 3 2 1 3. + 0 + -3.8122469559311867e-003 + 0.2085440009832382 + 0.5508564710617065 + <_> + + <_> + + + + <_>5 10 4 6 -1. + <_>5 13 4 3 2. + 0 + 1.5896620461717248e-003 + 0.5702760815620422 + 0.1857215017080307 + <_> + + <_> + + + + <_>11 3 6 1 -1. + <_>13 3 2 1 3. + 0 + 0.0100783398374915 + 0.5116943120956421 + 0.2189770042896271 + <_> + + <_> + + + + <_>4 4 12 6 -1. + <_>4 6 12 2 3. + 0 + -0.0635263025760651 + 0.7131379842758179 + 0.4043813049793243 + <_> + + <_> + + + + <_>15 12 2 6 -1. + <_>15 14 2 2 3. + 0 + -9.1031491756439209e-003 + 0.2567181885242462 + 0.5463973283767700 + <_> + + <_> + + + + <_>9 3 2 2 -1. + <_>10 3 1 2 2. + 0 + -2.4035000242292881e-003 + 0.1700665950775147 + 0.5590974092483521 + <_> + + <_> + + + + <_>9 3 3 1 -1. + <_>10 3 1 1 3. + 0 + 1.5226360410451889e-003 + 0.5410556793212891 + 0.2619054019451141 + <_> + + <_> + + + + <_>1 1 4 14 -1. + <_>3 1 2 14 2. + 0 + 0.0179974399507046 + 0.3732436895370483 + 0.6535220742225647 + <_> + + <_> + + + + <_>9 0 4 4 -1. + <_>11 0 2 2 2. + <_>9 2 2 2 2. + 0 + -6.4538191072642803e-003 + 0.2626481950283051 + 0.5537446141242981 + <_> + + <_> + + + + <_>7 5 1 14 -1. + <_>7 12 1 7 2. + 0 + -0.0118807600811124 + 0.2003753930330277 + 0.5544745922088623 + <_> + + <_> + + + + <_>19 0 1 4 -1. + <_>19 2 1 2 2. + 0 + 1.2713660253211856e-003 + 0.5591902732849121 + 0.3031975924968720 + <_> + + <_> + + + + <_>5 5 6 4 -1. + <_>8 5 3 4 2. + 0 + 1.1376109905540943e-003 + 0.2730407118797302 + 0.5646508932113648 + <_> + + <_> + + + + <_>9 18 3 2 -1. + <_>10 18 1 2 3. + 0 + -4.2651998810470104e-003 + 0.1405909061431885 + 0.5461820960044861 + <_> + + <_> + + + + <_>8 18 3 2 -1. + <_>9 18 1 2 3. + 0 + -2.9602861031889915e-003 + 0.1795035004615784 + 0.5459290146827698 + <_> + + <_> + + + + <_>4 5 12 6 -1. + <_>4 7 12 2 3. + 0 + -8.8448226451873779e-003 + 0.5736783146858215 + 0.2809219956398010 + <_> + + <_> + + + + <_>3 12 2 6 -1. + <_>3 14 2 2 3. + 0 + -6.6430689767003059e-003 + 0.2370675951242447 + 0.5503826141357422 + <_> + + <_> + + + + <_>10 8 2 12 -1. + <_>10 12 2 4 3. + 0 + 3.9997808635234833e-003 + 0.5608199834823608 + 0.3304282128810883 + <_> + + <_> + + + + <_>7 18 3 2 -1. + <_>8 18 1 2 3. + 0 + -4.1221720166504383e-003 + 0.1640105992555618 + 0.5378993153572083 + <_> + + <_> + + + + <_>9 0 6 2 -1. + <_>11 0 2 2 3. + 0 + 0.0156249096617103 + 0.5227649211883545 + 0.2288603931665421 + <_> + + <_> + + + + <_>5 11 9 3 -1. + <_>5 12 9 1 3. + 0 + -0.0103564197197557 + 0.7016193866729736 + 0.4252927899360657 + <_> + + <_> + + + + <_>9 0 6 2 -1. + <_>11 0 2 2 3. + 0 + -8.7960809469223022e-003 + 0.2767347097396851 + 0.5355830192565918 + <_> + + <_> + + + + <_>1 1 18 5 -1. + <_>7 1 6 5 3. + 0 + 0.1622693985700607 + 0.4342240095138550 + 0.7442579269409180 + <_> + + <_> + + + + <_>8 0 4 4 -1. + <_>10 0 2 2 2. + <_>8 2 2 2 2. + 0 + 4.5542530715465546e-003 + 0.5726485848426819 + 0.2582125067710877 + <_> + + <_> + + + + <_>3 12 1 3 -1. + <_>3 13 1 1 3. + 0 + -2.1309209987521172e-003 + 0.2106848061084747 + 0.5361018776893616 + <_> + + <_> + + + + <_>8 14 5 3 -1. + <_>8 15 5 1 3. + 0 + -0.0132084200158715 + 0.7593790888786316 + 0.4552468061447144 + <_> + + <_> + + + + <_>5 4 10 12 -1. + <_>5 4 5 6 2. + <_>10 10 5 6 2. + 0 + -0.0659966766834259 + 0.1252475976943970 + 0.5344039797782898 + <_> + + <_> + + + + <_>9 6 9 12 -1. + <_>9 10 9 4 3. + 0 + 7.9142656177282333e-003 + 0.3315384089946747 + 0.5601043105125427 + <_> + + <_> + + + + <_>2 2 12 14 -1. + <_>2 2 6 7 2. + <_>8 9 6 7 2. + 0 + 0.0208942797034979 + 0.5506049990653992 + 0.2768838107585907 + 15.3241395950317380 + 3 + -1 + <_> + + + <_> + + <_> + + + + <_>4 7 12 2 -1. + <_>8 7 4 2 3. + 0 + 1.1961159761995077e-003 + 0.1762690991163254 + 0.6156241297721863 + <_> + + <_> + + + + <_>7 4 6 4 -1. + <_>7 6 6 2 2. + 0 + -1.8679830245673656e-003 + 0.6118106842041016 + 0.1832399964332581 + <_> + + <_> + + + + <_>4 5 11 8 -1. + <_>4 9 11 4 2. + 0 + -1.9579799845814705e-004 + 0.0990442633628845 + 0.5723816156387329 + <_> + + <_> + + + + <_>3 10 16 4 -1. + <_>3 12 16 2 2. + 0 + -8.0255657667294145e-004 + 0.5579879879951477 + 0.2377282977104187 + <_> + + <_> + + + + <_>0 0 16 2 -1. + <_>0 1 16 1 2. + 0 + -2.4510810617357492e-003 + 0.2231457978487015 + 0.5858935117721558 + <_> + + <_> + + + + <_>7 5 6 2 -1. + <_>9 5 2 2 3. + 0 + 5.0361850298941135e-004 + 0.2653993964195252 + 0.5794103741645813 + <_> + + <_> + + + + <_>3 2 6 10 -1. + <_>3 2 3 5 2. + <_>6 7 3 5 2. + 0 + 4.0293349884450436e-003 + 0.5803827047348023 + 0.2484865039587021 + <_> + + <_> + + + + <_>10 5 8 15 -1. + <_>10 10 8 5 3. + 0 + -0.0144517095759511 + 0.1830351948738098 + 0.5484204888343811 + <_> + + <_> + + + + <_>3 14 8 6 -1. + <_>3 14 4 3 2. + <_>7 17 4 3 2. + 0 + 2.0380979403853416e-003 + 0.3363558948040009 + 0.6051092743873596 + <_> + + <_> + + + + <_>14 2 2 2 -1. + <_>14 3 2 1 2. + 0 + -1.6155190533027053e-003 + 0.2286642044782639 + 0.5441246032714844 + <_> + + <_> + + + + <_>1 10 7 6 -1. + <_>1 13 7 3 2. + 0 + 3.3458340913057327e-003 + 0.5625913143157959 + 0.2392338067293167 + <_> + + <_> + + + + <_>15 4 4 3 -1. + <_>15 4 2 3 2. + 0 + 1.6379579901695251e-003 + 0.3906993865966797 + 0.5964621901512146 + <_> + + <_> + + + + <_>2 9 14 6 -1. + <_>2 9 7 3 2. + <_>9 12 7 3 2. + 0 + 0.0302512105554342 + 0.5248482227325440 + 0.1575746983289719 + <_> + + <_> + + + + <_>5 7 10 4 -1. + <_>5 9 10 2 2. + 0 + 0.0372519902884960 + 0.4194310903549194 + 0.6748418807983398 + <_> + + <_> + + + + <_>6 9 8 8 -1. + <_>6 9 4 4 2. + <_>10 13 4 4 2. + 0 + -0.0251097902655602 + 0.1882549971342087 + 0.5473451018333435 + <_> + + <_> + + + + <_>14 1 3 2 -1. + <_>14 2 3 1 2. + 0 + -5.3099058568477631e-003 + 0.1339973062276840 + 0.5227110981941223 + <_> + + <_> + + + + <_>1 4 4 2 -1. + <_>3 4 2 2 2. + 0 + 1.2086479691788554e-003 + 0.3762088119983673 + 0.6109635829925537 + <_> + + <_> + + + + <_>11 10 2 8 -1. + <_>11 14 2 4 2. + 0 + -0.0219076797366142 + 0.2663142979145050 + 0.5404006838798523 + <_> + + <_> + + + + <_>0 0 5 3 -1. + <_>0 1 5 1 3. + 0 + 5.4116579703986645e-003 + 0.5363578796386719 + 0.2232273072004318 + <_> + + <_> + + + + <_>2 5 18 8 -1. + <_>11 5 9 4 2. + <_>2 9 9 4 2. + 0 + 0.0699463263154030 + 0.5358232855796814 + 0.2453698068857193 + <_> + + <_> + + + + <_>6 6 1 6 -1. + <_>6 9 1 3 2. + 0 + 3.4520021290518343e-004 + 0.2409671992063522 + 0.5376930236816406 + <_> + + <_> + + + + <_>19 1 1 3 -1. + <_>19 2 1 1 3. + 0 + 1.2627709656953812e-003 + 0.5425856709480286 + 0.3155693113803864 + <_> + + <_> + + + + <_>7 6 6 6 -1. + <_>9 6 2 6 3. + 0 + 0.0227195098996162 + 0.4158405959606171 + 0.6597865223884583 + <_> + + <_> + + + + <_>19 1 1 3 -1. + <_>19 2 1 1 3. + 0 + -1.8111000536009669e-003 + 0.2811253070831299 + 0.5505244731903076 + <_> + + <_> + + + + <_>3 13 2 3 -1. + <_>3 14 2 1 3. + 0 + 3.3469670452177525e-003 + 0.5260028243064880 + 0.1891465038061142 + <_> + + <_> + + + + <_>8 4 8 12 -1. + <_>12 4 4 6 2. + <_>8 10 4 6 2. + 0 + 4.0791751234792173e-004 + 0.5673509240150452 + 0.3344210088253021 + <_> + + <_> + + + + <_>5 2 6 3 -1. + <_>7 2 2 3 3. + 0 + 0.0127347996458411 + 0.5343592166900635 + 0.2395612001419067 + <_> + + <_> + + + + <_>6 1 9 10 -1. + <_>6 6 9 5 2. + 0 + -7.3119727894663811e-003 + 0.6010890007019043 + 0.4022207856178284 + <_> + + <_> + + + + <_>0 4 6 12 -1. + <_>2 4 2 12 3. + 0 + -0.0569487512111664 + 0.8199151158332825 + 0.4543190896511078 + <_> + + <_> + + + + <_>15 13 2 3 -1. + <_>15 14 2 1 3. + 0 + -5.0116591155529022e-003 + 0.2200281023979187 + 0.5357710719108582 + <_> + + <_> + + + + <_>7 14 5 3 -1. + <_>7 15 5 1 3. + 0 + 6.0334368608891964e-003 + 0.4413081109523773 + 0.7181751132011414 + <_> + + <_> + + + + <_>15 13 3 3 -1. + <_>15 14 3 1 3. + 0 + 3.9437441155314445e-003 + 0.5478860735893250 + 0.2791733145713806 + <_> + + <_> + + + + <_>6 14 8 3 -1. + <_>6 15 8 1 3. + 0 + -3.6591119132936001e-003 + 0.6357867717742920 + 0.3989723920822144 + <_> + + <_> + + + + <_>15 13 3 3 -1. + <_>15 14 3 1 3. + 0 + -3.8456181064248085e-003 + 0.3493686020374298 + 0.5300664901733398 + <_> + + <_> + + + + <_>2 13 3 3 -1. + <_>2 14 3 1 3. + 0 + -7.1926261298358440e-003 + 0.1119614988565445 + 0.5229672789573669 + <_> + + <_> + + + + <_>4 7 12 12 -1. + <_>10 7 6 6 2. + <_>4 13 6 6 2. + 0 + -0.0527989417314529 + 0.2387102991342545 + 0.5453451275825501 + <_> + + <_> + + + + <_>9 7 2 6 -1. + <_>10 7 1 6 2. + 0 + -7.9537667334079742e-003 + 0.7586917877197266 + 0.4439376890659332 + <_> + + <_> + + + + <_>8 9 5 2 -1. + <_>8 10 5 1 2. + 0 + -2.7344180271029472e-003 + 0.2565476894378662 + 0.5489321947097778 + <_> + + <_> + + + + <_>8 6 3 4 -1. + <_>9 6 1 4 3. + 0 + -1.8507939530536532e-003 + 0.6734347939491272 + 0.4252474904060364 + <_> + + <_> + + + + <_>9 6 2 8 -1. + <_>9 10 2 4 2. + 0 + 0.0159189198166132 + 0.5488352775573731 + 0.2292661964893341 + <_> + + <_> + + + + <_>7 7 3 6 -1. + <_>8 7 1 6 3. + 0 + -1.2687679845839739e-003 + 0.6104331016540527 + 0.4022389948368073 + <_> + + <_> + + + + <_>11 3 3 3 -1. + <_>12 3 1 3 3. + 0 + 6.2883910723030567e-003 + 0.5310853123664856 + 0.1536193042993546 + <_> + + <_> + + + + <_>5 4 6 1 -1. + <_>7 4 2 1 3. + 0 + -6.2259892001748085e-003 + 0.1729111969470978 + 0.5241606235504150 + <_> + + <_> + + + + <_>5 6 10 3 -1. + <_>5 7 10 1 3. + 0 + -0.0121325999498367 + 0.6597759723663330 + 0.4325182139873505 + 21.0106391906738280 + 4 + -1 + <_> + + + <_> + + <_> + + + + <_>7 3 6 9 -1. + <_>7 6 6 3 3. + 0 + -3.9184908382594585e-003 + 0.6103435158729553 + 0.1469330936670303 + <_> + + <_> + + + + <_>6 7 9 1 -1. + <_>9 7 3 1 3. + 0 + 1.5971299726516008e-003 + 0.2632363140583038 + 0.5896466970443726 + <_> + + <_> + + + + <_>2 8 16 8 -1. + <_>2 12 16 4 2. + 0 + 0.0177801102399826 + 0.5872874259948731 + 0.1760361939668655 + <_> + + <_> + + + + <_>14 6 2 6 -1. + <_>14 9 2 3 2. + 0 + 6.5334769897162914e-004 + 0.1567801982164383 + 0.5596066117286682 + <_> + + <_> + + + + <_>1 5 6 15 -1. + <_>1 10 6 5 3. + 0 + -2.8353091329336166e-004 + 0.1913153976202011 + 0.5732036232948303 + <_> + + <_> + + + + <_>10 0 6 9 -1. + <_>10 3 6 3 3. + 0 + 1.6104689566418529e-003 + 0.2914913892745972 + 0.5623080730438232 + <_> + + <_> + + + + <_>6 6 7 14 -1. + <_>6 13 7 7 2. + 0 + -0.0977506190538406 + 0.1943476945161820 + 0.5648233294487000 + <_> + + <_> + + + + <_>13 7 3 6 -1. + <_>13 9 3 2 3. + 0 + 5.5182358482852578e-004 + 0.3134616911411285 + 0.5504639744758606 + <_> + + <_> + + + + <_>1 8 15 4 -1. + <_>6 8 5 4 3. + 0 + -0.0128582203760743 + 0.2536481916904450 + 0.5760142803192139 + <_> + + <_> + + + + <_>11 2 3 10 -1. + <_>11 7 3 5 2. + 0 + 4.1530239395797253e-003 + 0.5767722129821777 + 0.3659774065017700 + <_> + + <_> + + + + <_>3 7 4 6 -1. + <_>3 9 4 2 3. + 0 + 1.7092459602281451e-003 + 0.2843191027641296 + 0.5918939113616943 + <_> + + <_> + + + + <_>13 3 6 10 -1. + <_>15 3 2 10 3. + 0 + 7.5217359699308872e-003 + 0.4052427113056183 + 0.6183109283447266 + <_> + + <_> + + + + <_>5 7 8 10 -1. + <_>5 7 4 5 2. + <_>9 12 4 5 2. + 0 + 2.2479810286313295e-003 + 0.5783755183219910 + 0.3135401010513306 + <_> + + <_> + + + + <_>4 4 12 12 -1. + <_>10 4 6 6 2. + <_>4 10 6 6 2. + 0 + 0.0520062111318111 + 0.5541312098503113 + 0.1916636973619461 + <_> + + <_> + + + + <_>1 4 6 9 -1. + <_>3 4 2 9 3. + 0 + 0.0120855299755931 + 0.4032655954360962 + 0.6644591093063355 + <_> + + <_> + + + + <_>11 3 2 5 -1. + <_>11 3 1 5 2. + 0 + 1.4687820112158079e-005 + 0.3535977900028229 + 0.5709382891654968 + <_> + + <_> + + + + <_>7 3 2 5 -1. + <_>8 3 1 5 2. + 0 + 7.1395188570022583e-006 + 0.3037444949150085 + 0.5610269904136658 + <_> + + <_> + + + + <_>10 14 2 3 -1. + <_>10 15 2 1 3. + 0 + -4.6001640148460865e-003 + 0.7181087136268616 + 0.4580326080322266 + <_> + + <_> + + + + <_>5 12 6 2 -1. + <_>8 12 3 2 2. + 0 + 2.0058949012309313e-003 + 0.5621951818466187 + 0.2953684031963348 + <_> + + <_> + + + + <_>9 14 2 3 -1. + <_>9 15 2 1 3. + 0 + 4.5050270855426788e-003 + 0.4615387916564941 + 0.7619017958641052 + <_> + + <_> + + + + <_>4 11 12 6 -1. + <_>4 14 12 3 2. + 0 + 0.0117468303069472 + 0.5343837141990662 + 0.1772529035806656 + <_> + + <_> + + + + <_>11 11 5 9 -1. + <_>11 14 5 3 3. + 0 + -0.0583163388073444 + 0.1686245948076248 + 0.5340772271156311 + <_> + + <_> + + + + <_>6 15 3 2 -1. + <_>6 16 3 1 2. + 0 + 2.3629379575140774e-004 + 0.3792056143283844 + 0.6026803851127625 + <_> + + <_> + + + + <_>11 0 3 5 -1. + <_>12 0 1 5 3. + 0 + -7.8156180679798126e-003 + 0.1512867063283920 + 0.5324323773384094 + <_> + + <_> + + + + <_>5 5 6 7 -1. + <_>8 5 3 7 2. + 0 + -0.0108761601150036 + 0.2081822007894516 + 0.5319945216178894 + <_> + + <_> + + + + <_>13 0 1 9 -1. + <_>13 3 1 3 3. + 0 + -2.7745519764721394e-003 + 0.4098246991634369 + 0.5210328102111816 + <_> + + <_> + + + + <_>3 2 4 8 -1. + <_>3 2 2 4 2. + <_>5 6 2 4 2. + 0 + -7.8276381827890873e-004 + 0.5693274140357971 + 0.3478842079639435 + <_> + + <_> + + + + <_>13 12 4 6 -1. + <_>13 14 4 2 3. + 0 + 0.0138704096898437 + 0.5326750874519348 + 0.2257698029279709 + <_> + + <_> + + + + <_>3 12 4 6 -1. + <_>3 14 4 2 3. + 0 + -0.0236749108880758 + 0.1551305055618286 + 0.5200707912445068 + <_> + + <_> + + + + <_>13 11 3 4 -1. + <_>13 13 3 2 2. + 0 + -1.4879409718560055e-005 + 0.5500566959381104 + 0.3820176124572754 + <_> + + <_> + + + + <_>4 4 4 3 -1. + <_>4 5 4 1 3. + 0 + 3.6190641112625599e-003 + 0.4238683879375458 + 0.6639748215675354 + <_> + + <_> + + + + <_>7 5 11 8 -1. + <_>7 9 11 4 2. + 0 + -0.0198171101510525 + 0.2150038033723831 + 0.5382357835769653 + <_> + + <_> + + + + <_>7 8 3 4 -1. + <_>8 8 1 4 3. + 0 + -3.8154039066284895e-003 + 0.6675711274147034 + 0.4215297102928162 + <_> + + <_> + + + + <_>9 1 6 1 -1. + <_>11 1 2 1 3. + 0 + -4.9775829538702965e-003 + 0.2267289012670517 + 0.5386328101158142 + <_> + + <_> + + + + <_>5 5 3 3 -1. + <_>5 6 3 1 3. + 0 + 2.2441020701080561e-003 + 0.4308691024780273 + 0.6855735778808594 + <_> + + <_> + + + + <_>0 9 20 6 -1. + <_>10 9 10 3 2. + <_>0 12 10 3 2. + 0 + 0.0122824599966407 + 0.5836614966392517 + 0.3467479050159454 + <_> + + <_> + + + + <_>8 6 3 5 -1. + <_>9 6 1 5 3. + 0 + -2.8548699337989092e-003 + 0.7016944885253906 + 0.4311453998088837 + <_> + + <_> + + + + <_>11 0 1 3 -1. + <_>11 1 1 1 3. + 0 + -3.7875669077038765e-003 + 0.2895345091819763 + 0.5224946141242981 + <_> + + <_> + + + + <_>4 2 4 2 -1. + <_>4 3 4 1 2. + 0 + -1.2201230274513364e-003 + 0.2975570857524872 + 0.5481644868850708 + <_> + + <_> + + + + <_>12 6 4 3 -1. + <_>12 7 4 1 3. + 0 + 0.0101605998352170 + 0.4888817965984345 + 0.8182697892189026 + <_> + + <_> + + + + <_>5 0 6 4 -1. + <_>7 0 2 4 3. + 0 + -0.0161745697259903 + 0.1481492966413498 + 0.5239992737770081 + <_> + + <_> + + + + <_>9 7 3 8 -1. + <_>10 7 1 8 3. + 0 + 0.0192924607545137 + 0.4786309897899628 + 0.7378190755844116 + <_> + + <_> + + + + <_>9 7 2 2 -1. + <_>10 7 1 2 2. + 0 + -3.2479539513587952e-003 + 0.7374222874641419 + 0.4470643997192383 + <_> + + <_> + + + + <_>6 7 14 4 -1. + <_>13 7 7 2 2. + <_>6 9 7 2 2. + 0 + -9.3803480267524719e-003 + 0.3489154875278473 + 0.5537996292114258 + <_> + + <_> + + + + <_>0 5 3 6 -1. + <_>0 7 3 2 3. + 0 + -0.0126061299815774 + 0.2379686981439591 + 0.5315443277359009 + <_> + + <_> + + + + <_>13 11 3 4 -1. + <_>13 13 3 2 2. + 0 + -0.0256219301372766 + 0.1964688003063202 + 0.5138769745826721 + <_> + + <_> + + + + <_>4 11 3 4 -1. + <_>4 13 3 2 2. + 0 + -7.5741496402770281e-005 + 0.5590522885322571 + 0.3365853130817413 + <_> + + <_> + + + + <_>5 9 12 8 -1. + <_>11 9 6 4 2. + <_>5 13 6 4 2. + 0 + -0.0892108827829361 + 0.0634046569466591 + 0.5162634849548340 + <_> + + <_> + + + + <_>9 12 1 3 -1. + <_>9 13 1 1 3. + 0 + -2.7670480776578188e-003 + 0.7323467731475830 + 0.4490706026554108 + <_> + + <_> + + + + <_>10 15 2 4 -1. + <_>10 17 2 2 2. + 0 + 2.7152578695677221e-004 + 0.4114834964275360 + 0.5985518097877502 + 23.9187908172607420 + 5 + -1 + <_> + + + <_> + + <_> + + + + <_>7 7 6 1 -1. + <_>9 7 2 1 3. + 0 + 1.4786219689995050e-003 + 0.2663545012474060 + 0.6643316745758057 + <_> + + <_> + + + + <_>12 3 6 6 -1. + <_>15 3 3 3 2. + <_>12 6 3 3 2. + 0 + -1.8741659587249160e-003 + 0.6143848896026611 + 0.2518512904644013 + <_> + + <_> + + + + <_>0 4 10 6 -1. + <_>0 6 10 2 3. + 0 + -1.7151009524241090e-003 + 0.5766341090202332 + 0.2397463023662567 + <_> + + <_> + + + + <_>8 3 8 14 -1. + <_>12 3 4 7 2. + <_>8 10 4 7 2. + 0 + -1.8939269939437509e-003 + 0.5682045817375183 + 0.2529144883155823 + <_> + + <_> + + + + <_>4 4 7 15 -1. + <_>4 9 7 5 3. + 0 + -5.3006052039563656e-003 + 0.1640675961971283 + 0.5556079745292664 + <_> + + <_> + + + + <_>12 2 6 8 -1. + <_>15 2 3 4 2. + <_>12 6 3 4 2. + 0 + -0.0466625317931175 + 0.6123154163360596 + 0.4762830138206482 + <_> + + <_> + + + + <_>2 2 6 8 -1. + <_>2 2 3 4 2. + <_>5 6 3 4 2. + 0 + -7.9431332414969802e-004 + 0.5707858800888062 + 0.2839404046535492 + <_> + + <_> + + + + <_>2 13 18 7 -1. + <_>8 13 6 7 3. + 0 + 0.0148916700854898 + 0.4089672863483429 + 0.6006367206573486 + <_> + + <_> + + + + <_>4 3 8 14 -1. + <_>4 3 4 7 2. + <_>8 10 4 7 2. + 0 + -1.2046529445797205e-003 + 0.5712450742721558 + 0.2705289125442505 + <_> + + <_> + + + + <_>18 1 2 6 -1. + <_>18 3 2 2 3. + 0 + 6.0619381256401539e-003 + 0.5262504220008850 + 0.3262225985527039 + <_> + + <_> + + + + <_>9 11 2 3 -1. + <_>9 12 2 1 3. + 0 + -2.5286648888140917e-003 + 0.6853830814361572 + 0.4199256896972656 + <_> + + <_> + + + + <_>18 1 2 6 -1. + <_>18 3 2 2 3. + 0 + -5.9010218828916550e-003 + 0.3266282081604004 + 0.5434812903404236 + <_> + + <_> + + + + <_>0 1 2 6 -1. + <_>0 3 2 2 3. + 0 + 5.6702760048210621e-003 + 0.5468410849571228 + 0.2319003939628601 + <_> + + <_> + + + + <_>1 5 18 6 -1. + <_>1 7 18 2 3. + 0 + -3.0304100364446640e-003 + 0.5570667982101440 + 0.2708238065242767 + <_> + + <_> + + + + <_>0 2 6 7 -1. + <_>3 2 3 7 2. + 0 + 2.9803649522364140e-003 + 0.3700568974018097 + 0.5890625715255737 + <_> + + <_> + + + + <_>7 3 6 14 -1. + <_>7 10 6 7 2. + 0 + -0.0758405104279518 + 0.2140070050954819 + 0.5419948101043701 + <_> + + <_> + + + + <_>3 7 13 10 -1. + <_>3 12 13 5 2. + 0 + 0.0192625392228365 + 0.5526772141456604 + 0.2726590037345886 + <_> + + <_> + + + + <_>11 15 2 2 -1. + <_>11 16 2 1 2. + 0 + 1.8888259364757687e-004 + 0.3958011865615845 + 0.6017209887504578 + <_> + + <_> + + + + <_>2 11 16 4 -1. + <_>2 11 8 2 2. + <_>10 13 8 2 2. + 0 + 0.0293695498257875 + 0.5241373777389526 + 0.1435758024454117 + <_> + + <_> + + + + <_>13 7 6 4 -1. + <_>16 7 3 2 2. + <_>13 9 3 2 2. + 0 + 1.0417619487270713e-003 + 0.3385409116744995 + 0.5929983258247376 + <_> + + <_> + + + + <_>6 10 3 9 -1. + <_>6 13 3 3 3. + 0 + 2.6125640142709017e-003 + 0.5485377907752991 + 0.3021597862243652 + <_> + + <_> + + + + <_>14 6 1 6 -1. + <_>14 9 1 3 2. + 0 + 9.6977467183023691e-004 + 0.3375276029109955 + 0.5532032847404480 + <_> + + <_> + + + + <_>5 10 4 1 -1. + <_>7 10 2 1 2. + 0 + 5.9512659208849072e-004 + 0.5631743073463440 + 0.3359399139881134 + <_> + + <_> + + + + <_>3 8 15 5 -1. + <_>8 8 5 5 3. + 0 + -0.1015655994415283 + 0.0637350380420685 + 0.5230425000190735 + <_> + + <_> + + + + <_>1 6 5 4 -1. + <_>1 8 5 2 2. + 0 + 0.0361566990613937 + 0.5136963129043579 + 0.1029528975486755 + <_> + + <_> + + + + <_>3 1 17 6 -1. + <_>3 3 17 2 3. + 0 + 3.4624140243977308e-003 + 0.3879320025444031 + 0.5558289289474487 + <_> + + <_> + + + + <_>6 7 8 2 -1. + <_>10 7 4 2 2. + 0 + 0.0195549800992012 + 0.5250086784362793 + 0.1875859946012497 + <_> + + <_> + + + + <_>9 7 3 2 -1. + <_>10 7 1 2 3. + 0 + -2.3121440317481756e-003 + 0.6672028899192810 + 0.4679641127586365 + <_> + + <_> + + + + <_>8 7 3 2 -1. + <_>9 7 1 2 3. + 0 + -1.8605289515107870e-003 + 0.7163379192352295 + 0.4334670901298523 + <_> + + <_> + + + + <_>8 9 4 2 -1. + <_>8 10 4 1 2. + 0 + -9.4026362057775259e-004 + 0.3021360933780670 + 0.5650203227996826 + <_> + + <_> + + + + <_>8 8 4 3 -1. + <_>8 9 4 1 3. + 0 + -5.2418331615626812e-003 + 0.1820009052753449 + 0.5250256061553955 + <_> + + <_> + + + + <_>9 5 6 4 -1. + <_>9 5 3 4 2. + 0 + 1.1729019752237946e-004 + 0.3389188051223755 + 0.5445973277091980 + <_> + + <_> + + + + <_>8 13 4 3 -1. + <_>8 14 4 1 3. + 0 + 1.1878840159624815e-003 + 0.4085349142551422 + 0.6253563165664673 + <_> + + <_> + + + + <_>4 7 12 6 -1. + <_>10 7 6 3 2. + <_>4 10 6 3 2. + 0 + -0.0108813596889377 + 0.3378399014472961 + 0.5700082778930664 + <_> + + <_> + + + + <_>8 14 4 3 -1. + <_>8 15 4 1 3. + 0 + 1.7354859737679362e-003 + 0.4204635918140411 + 0.6523038744926453 + <_> + + <_> + + + + <_>9 7 3 3 -1. + <_>9 8 3 1 3. + 0 + -6.5119052305817604e-003 + 0.2595216035842896 + 0.5428143739700317 + <_> + + <_> + + + + <_>7 4 3 8 -1. + <_>8 4 1 8 3. + 0 + -1.2136430013924837e-003 + 0.6165143847465515 + 0.3977893888950348 + <_> + + <_> + + + + <_>10 0 3 6 -1. + <_>11 0 1 6 3. + 0 + -0.0103542404249310 + 0.1628028005361557 + 0.5219504833221436 + <_> + + <_> + + + + <_>6 3 4 8 -1. + <_>8 3 2 8 2. + 0 + 5.5858830455690622e-004 + 0.3199650943279266 + 0.5503574013710022 + <_> + + <_> + + + + <_>14 3 6 13 -1. + <_>14 3 3 13 2. + 0 + 0.0152996499091387 + 0.4103994071483612 + 0.6122388243675232 + <_> + + <_> + + + + <_>8 13 3 6 -1. + <_>8 16 3 3 2. + 0 + -0.0215882100164890 + 0.1034912988543510 + 0.5197384953498840 + <_> + + <_> + + + + <_>14 3 6 13 -1. + <_>14 3 3 13 2. + 0 + -0.1283462941646576 + 0.8493865132331848 + 0.4893102943897247 + <_> + + <_> + + + + <_>0 7 10 4 -1. + <_>0 7 5 2 2. + <_>5 9 5 2 2. + 0 + -2.2927189711481333e-003 + 0.3130157887935638 + 0.5471575260162354 + <_> + + <_> + + + + <_>14 3 6 13 -1. + <_>14 3 3 13 2. + 0 + 0.0799151062965393 + 0.4856320917606354 + 0.6073989272117615 + <_> + + <_> + + + + <_>0 3 6 13 -1. + <_>3 3 3 13 2. + 0 + -0.0794410929083824 + 0.8394674062728882 + 0.4624533057212830 + <_> + + <_> + + + + <_>9 1 4 1 -1. + <_>9 1 2 1 2. + 0 + -5.2800010889768600e-003 + 0.1881695985794067 + 0.5306698083877564 + <_> + + <_> + + + + <_>8 0 2 1 -1. + <_>9 0 1 1 2. + 0 + 1.0463109938427806e-003 + 0.5271229147911072 + 0.2583065927028656 + <_> + + <_> + + + + <_>10 16 4 4 -1. + <_>12 16 2 2 2. + <_>10 18 2 2 2. + 0 + 2.6317298761568964e-004 + 0.4235304892063141 + 0.5735440850257874 + <_> + + <_> + + + + <_>9 6 2 3 -1. + <_>10 6 1 3 2. + 0 + -3.6173160187900066e-003 + 0.6934396028518677 + 0.4495444893836975 + <_> + + <_> + + + + <_>4 5 12 2 -1. + <_>8 5 4 2 3. + 0 + 0.0114218797534704 + 0.5900921225547791 + 0.4138193130493164 + <_> + + <_> + + + + <_>8 7 3 5 -1. + <_>9 7 1 5 3. + 0 + -1.9963278900831938e-003 + 0.6466382741928101 + 0.4327239990234375 + 24.5278797149658200 + 6 + -1 + <_> + + + <_> + + <_> + + + + <_>6 4 8 6 -1. + <_>6 6 8 2 3. + 0 + -9.9691245704889297e-003 + 0.6142324209213257 + 0.2482212036848068 + <_> + + <_> + + + + <_>9 5 2 12 -1. + <_>9 11 2 6 2. + 0 + 7.3073059320449829e-004 + 0.5704951882362366 + 0.2321965992450714 + <_> + + <_> + + + + <_>4 6 6 8 -1. + <_>4 10 6 4 2. + 0 + 6.4045301405712962e-004 + 0.2112251967191696 + 0.5814933180809021 + <_> + + <_> + + + + <_>12 2 8 5 -1. + <_>12 2 4 5 2. + 0 + 4.5424019917845726e-003 + 0.2950482070446014 + 0.5866311788558960 + <_> + + <_> + + + + <_>0 8 18 3 -1. + <_>0 9 18 1 3. + 0 + 9.2477443104144186e-005 + 0.2990990877151489 + 0.5791326761245728 + <_> + + <_> + + + + <_>8 12 4 8 -1. + <_>8 16 4 4 2. + 0 + -8.6603146046400070e-003 + 0.2813029885292053 + 0.5635542273521423 + <_> + + <_> + + + + <_>0 2 8 5 -1. + <_>4 2 4 5 2. + 0 + 8.0515816807746887e-003 + 0.3535369038581848 + 0.6054757237434387 + <_> + + <_> + + + + <_>13 11 3 4 -1. + <_>13 13 3 2 2. + 0 + 4.3835240649059415e-004 + 0.5596532225608826 + 0.2731510996818543 + <_> + + <_> + + + + <_>5 11 6 1 -1. + <_>7 11 2 1 3. + 0 + -9.8168973636347800e-005 + 0.5978031754493713 + 0.3638561069965363 + <_> + + <_> + + + + <_>11 3 3 1 -1. + <_>12 3 1 1 3. + 0 + -1.1298790341243148e-003 + 0.2755252122879028 + 0.5432729125022888 + <_> + + <_> + + + + <_>7 13 5 3 -1. + <_>7 14 5 1 3. + 0 + 6.4356150105595589e-003 + 0.4305641949176788 + 0.7069833278656006 + <_> + + <_> + + + + <_>11 11 7 6 -1. + <_>11 14 7 3 2. + 0 + -0.0568293295800686 + 0.2495242953300476 + 0.5294997096061707 + <_> + + <_> + + + + <_>2 11 7 6 -1. + <_>2 14 7 3 2. + 0 + 4.0668169967830181e-003 + 0.5478553175926209 + 0.2497723996639252 + <_> + + <_> + + + + <_>12 14 2 6 -1. + <_>12 16 2 2 3. + 0 + 4.8164798499783501e-005 + 0.3938601016998291 + 0.5706356167793274 + <_> + + <_> + + + + <_>8 14 3 3 -1. + <_>8 15 3 1 3. + 0 + 6.1795017682015896e-003 + 0.4407606124877930 + 0.7394766807556152 + <_> + + <_> + + + + <_>11 0 3 5 -1. + <_>12 0 1 5 3. + 0 + 6.4985752105712891e-003 + 0.5445243120193481 + 0.2479152977466583 + <_> + + <_> + + + + <_>6 1 4 9 -1. + <_>8 1 2 9 2. + 0 + -1.0211090557277203e-003 + 0.2544766962528229 + 0.5338971018791199 + <_> + + <_> + + + + <_>10 3 6 1 -1. + <_>12 3 2 1 3. + 0 + -5.4247528314590454e-003 + 0.2718858122825623 + 0.5324069261550903 + <_> + + <_> + + + + <_>8 8 3 4 -1. + <_>8 10 3 2 2. + 0 + -1.0559899965301156e-003 + 0.3178288042545319 + 0.5534508824348450 + <_> + + <_> + + + + <_>8 12 4 2 -1. + <_>8 13 4 1 2. + 0 + 6.6465808777138591e-004 + 0.4284219145774841 + 0.6558194160461426 + <_> + + <_> + + + + <_>5 18 4 2 -1. + <_>5 19 4 1 2. + 0 + -2.7524109464138746e-004 + 0.5902860760688782 + 0.3810262978076935 + <_> + + <_> + + + + <_>2 1 18 6 -1. + <_>2 3 18 2 3. + 0 + 4.2293202131986618e-003 + 0.3816489875316620 + 0.5709385871887207 + <_> + + <_> + + + + <_>6 0 3 2 -1. + <_>7 0 1 2 3. + 0 + -3.2868210691958666e-003 + 0.1747743934392929 + 0.5259544253349304 + <_> + + <_> + + + + <_>13 8 6 2 -1. + <_>16 8 3 1 2. + <_>13 9 3 1 2. + 0 + 1.5611879643984139e-004 + 0.3601722121238709 + 0.5725612044334412 + <_> + + <_> + + + + <_>6 10 3 6 -1. + <_>6 13 3 3 2. + 0 + -7.3621381488919724e-006 + 0.5401858091354370 + 0.3044497072696686 + <_> + + <_> + + + + <_>0 13 20 4 -1. + <_>10 13 10 2 2. + <_>0 15 10 2 2. + 0 + -0.0147672500461340 + 0.3220770061016083 + 0.5573434829711914 + <_> + + <_> + + + + <_>7 7 6 5 -1. + <_>9 7 2 5 3. + 0 + 0.0244895908981562 + 0.4301528036594391 + 0.6518812775611877 + <_> + + <_> + + + + <_>11 0 2 2 -1. + <_>11 1 2 1 2. + 0 + -3.7652091123163700e-004 + 0.3564583063125610 + 0.5598236918449402 + <_> + + <_> + + + + <_>1 8 6 2 -1. + <_>1 8 3 1 2. + <_>4 9 3 1 2. + 0 + 7.3657688517414499e-006 + 0.3490782976150513 + 0.5561897754669190 + <_> + + <_> + + + + <_>0 2 20 2 -1. + <_>10 2 10 1 2. + <_>0 3 10 1 2. + 0 + -0.0150999398902059 + 0.1776272058486939 + 0.5335299968719482 + <_> + + <_> + + + + <_>7 14 5 3 -1. + <_>7 15 5 1 3. + 0 + -3.8316650316119194e-003 + 0.6149687767028809 + 0.4221394062042236 + <_> + + <_> + + + + <_>7 13 6 6 -1. + <_>10 13 3 3 2. + <_>7 16 3 3 2. + 0 + 0.0169254001230001 + 0.5413014888763428 + 0.2166585028171539 + <_> + + <_> + + + + <_>9 12 2 3 -1. + <_>9 13 2 1 3. + 0 + -3.0477850232273340e-003 + 0.6449490785598755 + 0.4354617893695831 + <_> + + <_> + + + + <_>16 11 1 6 -1. + <_>16 13 1 2 3. + 0 + 3.2140589319169521e-003 + 0.5400155186653137 + 0.3523217141628265 + <_> + + <_> + + + + <_>3 11 1 6 -1. + <_>3 13 1 2 3. + 0 + -4.0023201145231724e-003 + 0.2774524092674255 + 0.5338417291641235 + <_> + + <_> + + + + <_>4 4 14 12 -1. + <_>11 4 7 6 2. + <_>4 10 7 6 2. + 0 + 7.4182129465043545e-003 + 0.5676739215850830 + 0.3702817857265472 + <_> + + <_> + + + + <_>5 4 3 3 -1. + <_>5 5 3 1 3. + 0 + -8.8764587417244911e-003 + 0.7749221920967102 + 0.4583688974380493 + <_> + + <_> + + + + <_>12 3 3 3 -1. + <_>13 3 1 3 3. + 0 + 2.7311739977449179e-003 + 0.5338721871376038 + 0.3996661007404327 + <_> + + <_> + + + + <_>6 6 8 3 -1. + <_>6 7 8 1 3. + 0 + -2.5082379579544067e-003 + 0.5611963272094727 + 0.3777498900890350 + <_> + + <_> + + + + <_>12 3 3 3 -1. + <_>13 3 1 3 3. + 0 + -8.0541074275970459e-003 + 0.2915228903293610 + 0.5179182887077332 + <_> + + <_> + + + + <_>3 1 4 10 -1. + <_>3 1 2 5 2. + <_>5 6 2 5 2. + 0 + -9.7938813269138336e-004 + 0.5536432862281799 + 0.3700192868709564 + <_> + + <_> + + + + <_>5 7 10 2 -1. + <_>5 7 5 2 2. + 0 + -5.8745909482240677e-003 + 0.3754391074180603 + 0.5679376125335693 + <_> + + <_> + + + + <_>8 7 3 3 -1. + <_>9 7 1 3 3. + 0 + -4.4936719350516796e-003 + 0.7019699215888977 + 0.4480949938297272 + <_> + + <_> + + + + <_>15 12 2 3 -1. + <_>15 13 2 1 3. + 0 + -5.4389229044318199e-003 + 0.2310364991426468 + 0.5313386917114258 + <_> + + <_> + + + + <_>7 8 3 4 -1. + <_>8 8 1 4 3. + 0 + -7.5094640487805009e-004 + 0.5864868760108948 + 0.4129343032836914 + <_> + + <_> + + + + <_>13 4 1 12 -1. + <_>13 10 1 6 2. + 0 + 1.4528800420521293e-005 + 0.3732407093048096 + 0.5619621276855469 + <_> + + <_> + + + + <_>4 5 12 12 -1. + <_>4 5 6 6 2. + <_>10 11 6 6 2. + 0 + 0.0407580696046352 + 0.5312091112136841 + 0.2720521986484528 + <_> + + <_> + + + + <_>7 14 7 3 -1. + <_>7 15 7 1 3. + 0 + 6.6505931317806244e-003 + 0.4710015952587128 + 0.6693493723869324 + <_> + + <_> + + + + <_>3 12 2 3 -1. + <_>3 13 2 1 3. + 0 + 4.5759351924061775e-003 + 0.5167819261550903 + 0.1637275964021683 + <_> + + <_> + + + + <_>3 2 14 2 -1. + <_>10 2 7 1 2. + <_>3 3 7 1 2. + 0 + 6.5269311890006065e-003 + 0.5397608876228333 + 0.2938531935214996 + <_> + + <_> + + + + <_>0 1 3 10 -1. + <_>1 1 1 10 3. + 0 + -0.0136603796854615 + 0.7086488008499146 + 0.4532200098037720 + <_> + + <_> + + + + <_>9 0 6 5 -1. + <_>11 0 2 5 3. + 0 + 0.0273588690906763 + 0.5206481218338013 + 0.3589231967926025 + <_> + + <_> + + + + <_>5 7 6 2 -1. + <_>8 7 3 2 2. + 0 + 6.2197551596909761e-004 + 0.3507075905799866 + 0.5441123247146606 + <_> + + <_> + + + + <_>7 1 6 10 -1. + <_>7 6 6 5 2. + 0 + -3.3077080734074116e-003 + 0.5859522819519043 + 0.4024891853332520 + <_> + + <_> + + + + <_>1 1 18 3 -1. + <_>7 1 6 3 3. + 0 + -0.0106311095878482 + 0.6743267178535461 + 0.4422602951526642 + <_> + + <_> + + + + <_>16 3 3 6 -1. + <_>16 5 3 2 3. + 0 + 0.0194416493177414 + 0.5282716155052185 + 0.1797904968261719 + 27.1533508300781250 + 7 + -1 + <_> + + + <_> + + <_> + + + + <_>6 3 7 6 -1. + <_>6 6 7 3 2. + 0 + -5.5052167735993862e-003 + 0.5914731025695801 + 0.2626559138298035 + <_> + + <_> + + + + <_>4 7 12 2 -1. + <_>8 7 4 2 3. + 0 + 1.9562279339879751e-003 + 0.2312581986188889 + 0.5741627216339111 + <_> + + <_> + + + + <_>0 4 17 10 -1. + <_>0 9 17 5 2. + 0 + -8.8924784213304520e-003 + 0.1656530052423477 + 0.5626654028892517 + <_> + + <_> + + + + <_>3 4 15 16 -1. + <_>3 12 15 8 2. + 0 + 0.0836383774876595 + 0.5423449873924255 + 0.1957294940948486 + <_> + + <_> + + + + <_>7 15 6 4 -1. + <_>7 17 6 2 2. + 0 + 1.2282270472496748e-003 + 0.3417904078960419 + 0.5992503762245178 + <_> + + <_> + + + + <_>15 2 4 9 -1. + <_>15 2 2 9 2. + 0 + 5.7629169896245003e-003 + 0.3719581961631775 + 0.6079903841018677 + <_> + + <_> + + + + <_>2 3 3 2 -1. + <_>2 4 3 1 2. + 0 + -1.6417410224676132e-003 + 0.2577486038208008 + 0.5576915740966797 + <_> + + <_> + + + + <_>13 6 7 9 -1. + <_>13 9 7 3 3. + 0 + 3.4113149158656597e-003 + 0.2950749099254608 + 0.5514171719551086 + <_> + + <_> + + + + <_>8 11 4 3 -1. + <_>8 12 4 1 3. + 0 + -0.0110693201422691 + 0.7569358944892883 + 0.4477078914642334 + <_> + + <_> + + + + <_>0 2 20 6 -1. + <_>10 2 10 3 2. + <_>0 5 10 3 2. + 0 + 0.0348659716546535 + 0.5583708882331848 + 0.2669621109962463 + <_> + + <_> + + + + <_>3 2 6 10 -1. + <_>3 2 3 5 2. + <_>6 7 3 5 2. + 0 + 6.5701099811121821e-004 + 0.5627313256263733 + 0.2988890111446381 + <_> + + <_> + + + + <_>13 10 3 4 -1. + <_>13 12 3 2 2. + 0 + -0.0243391301482916 + 0.2771185040473938 + 0.5108863115310669 + <_> + + <_> + + + + <_>4 10 3 4 -1. + <_>4 12 3 2 2. + 0 + 5.9435202274471521e-004 + 0.5580651760101318 + 0.3120341897010803 + <_> + + <_> + + + + <_>7 5 6 3 -1. + <_>9 5 2 3 3. + 0 + 2.2971509024500847e-003 + 0.3330250084400177 + 0.5679075717926025 + <_> + + <_> + + + + <_>7 6 6 8 -1. + <_>7 10 6 4 2. + 0 + -3.7801829166710377e-003 + 0.2990534901618958 + 0.5344808101654053 + <_> + + <_> + + + + <_>0 11 20 6 -1. + <_>0 14 20 3 2. + 0 + -0.1342066973447800 + 0.1463858932256699 + 0.5392568111419678 + <_> + + <_> + + + + <_>4 13 4 6 -1. + <_>4 13 2 3 2. + <_>6 16 2 3 2. + 0 + 7.5224548345431685e-004 + 0.3746953904628754 + 0.5692734718322754 + <_> + + <_> + + + + <_>6 0 8 12 -1. + <_>10 0 4 6 2. + <_>6 6 4 6 2. + 0 + -0.0405455417931080 + 0.2754747867584229 + 0.5484297871589661 + <_> + + <_> + + + + <_>2 0 15 2 -1. + <_>2 1 15 1 2. + 0 + 1.2572970008477569e-003 + 0.3744584023952484 + 0.5756075978279114 + <_> + + <_> + + + + <_>9 12 2 3 -1. + <_>9 13 2 1 3. + 0 + -7.4249948374927044e-003 + 0.7513859272003174 + 0.4728231132030487 + <_> + + <_> + + + + <_>3 12 1 2 -1. + <_>3 13 1 1 2. + 0 + 5.0908129196614027e-004 + 0.5404896736145020 + 0.2932321131229401 + <_> + + <_> + + + + <_>9 11 2 3 -1. + <_>9 12 2 1 3. + 0 + -1.2808450264856219e-003 + 0.6169779896736145 + 0.4273349046707153 + <_> + + <_> + + + + <_>7 3 3 1 -1. + <_>8 3 1 1 3. + 0 + -1.8348860321566463e-003 + 0.2048496007919312 + 0.5206472277641296 + <_> + + <_> + + + + <_>17 7 3 6 -1. + <_>17 9 3 2 3. + 0 + 0.0274848695844412 + 0.5252984762191773 + 0.1675522029399872 + <_> + + <_> + + + + <_>7 2 3 2 -1. + <_>8 2 1 2 3. + 0 + 2.2372419480234385e-003 + 0.5267782807350159 + 0.2777658104896545 + <_> + + <_> + + + + <_>11 4 5 3 -1. + <_>11 5 5 1 3. + 0 + -8.8635291904211044e-003 + 0.6954557895660400 + 0.4812048971652985 + <_> + + <_> + + + + <_>4 4 5 3 -1. + <_>4 5 5 1 3. + 0 + 4.1753971017897129e-003 + 0.4291887879371643 + 0.6349195837974548 + <_> + + <_> + + + + <_>19 3 1 2 -1. + <_>19 4 1 1 2. + 0 + -1.7098189564421773e-003 + 0.2930536866188049 + 0.5361248850822449 + <_> + + <_> + + + + <_>5 5 4 3 -1. + <_>5 6 4 1 3. + 0 + 6.5328548662364483e-003 + 0.4495325088500977 + 0.7409694194793701 + <_> + + <_> + + + + <_>17 7 3 6 -1. + <_>17 9 3 2 3. + 0 + -9.5372907817363739e-003 + 0.3149119913578033 + 0.5416501760482788 + <_> + + <_> + + + + <_>0 7 3 6 -1. + <_>0 9 3 2 3. + 0 + 0.0253109894692898 + 0.5121892094612122 + 0.1311707943677902 + <_> + + <_> + + + + <_>14 2 6 9 -1. + <_>14 5 6 3 3. + 0 + 0.0364609695971012 + 0.5175911784172058 + 0.2591339945793152 + <_> + + <_> + + + + <_>0 4 5 6 -1. + <_>0 6 5 2 3. + 0 + 0.0208543296903372 + 0.5137140154838562 + 0.1582316011190414 + <_> + + <_> + + + + <_>10 5 6 2 -1. + <_>12 5 2 2 3. + 0 + -8.7207747856155038e-004 + 0.5574309825897217 + 0.4398978948593140 + <_> + + <_> + + + + <_>4 5 6 2 -1. + <_>6 5 2 2 3. + 0 + -1.5227000403683633e-005 + 0.5548940896987915 + 0.3708069920539856 + <_> + + <_> + + + + <_>8 1 4 6 -1. + <_>8 3 4 2 3. + 0 + -8.4316509310156107e-004 + 0.3387419879436493 + 0.5554211139678955 + <_> + + <_> + + + + <_>0 2 3 6 -1. + <_>0 4 3 2 3. + 0 + 3.6037859972566366e-003 + 0.5358061790466309 + 0.3411171138286591 + <_> + + <_> + + + + <_>6 6 8 3 -1. + <_>6 7 8 1 3. + 0 + -6.8057891912758350e-003 + 0.6125202775001526 + 0.4345862865447998 + <_> + + <_> + + + + <_>0 1 5 9 -1. + <_>0 4 5 3 3. + 0 + -0.0470216609537601 + 0.2358165979385376 + 0.5193738937377930 + <_> + + <_> + + + + <_>16 0 4 15 -1. + <_>16 0 2 15 2. + 0 + -0.0369541086256504 + 0.7323111295700073 + 0.4760943949222565 + <_> + + <_> + + + + <_>1 10 3 2 -1. + <_>1 11 3 1 2. + 0 + 1.0439479956403375e-003 + 0.5419455170631409 + 0.3411330878734589 + <_> + + <_> + + + + <_>14 4 1 10 -1. + <_>14 9 1 5 2. + 0 + -2.1050689974799752e-004 + 0.2821694016456604 + 0.5554947257041931 + <_> + + <_> + + + + <_>0 1 4 12 -1. + <_>2 1 2 12 2. + 0 + -0.0808315873146057 + 0.9129930138587952 + 0.4697434902191162 + <_> + + <_> + + + + <_>11 11 4 2 -1. + <_>11 11 2 2 2. + 0 + -3.6579059087671340e-004 + 0.6022670269012451 + 0.3978292942047119 + <_> + + <_> + + + + <_>5 11 4 2 -1. + <_>7 11 2 2 2. + 0 + -1.2545920617412776e-004 + 0.5613213181495667 + 0.3845539987087250 + <_> + + <_> + + + + <_>3 8 15 5 -1. + <_>8 8 5 5 3. + 0 + -0.0687864869832993 + 0.2261611968278885 + 0.5300496816635132 + <_> + + <_> + + + + <_>0 0 6 10 -1. + <_>3 0 3 10 2. + 0 + 0.0124157899990678 + 0.4075691998004913 + 0.5828812122344971 + <_> + + <_> + + + + <_>11 4 3 2 -1. + <_>12 4 1 2 3. + 0 + -4.7174817882478237e-003 + 0.2827253937721252 + 0.5267757773399353 + <_> + + <_> + + + + <_>8 12 3 8 -1. + <_>8 16 3 4 2. + 0 + 0.0381368584930897 + 0.5074741244316101 + 0.1023615971207619 + <_> + + <_> + + + + <_>8 14 5 3 -1. + <_>8 15 5 1 3. + 0 + -2.8168049175292253e-003 + 0.6169006824493408 + 0.4359692931175232 + <_> + + <_> + + + + <_>7 14 4 3 -1. + <_>7 15 4 1 3. + 0 + 8.1303603947162628e-003 + 0.4524433016777039 + 0.7606095075607300 + <_> + + <_> + + + + <_>11 4 3 2 -1. + <_>12 4 1 2 3. + 0 + 6.0056019574403763e-003 + 0.5240408778190613 + 0.1859712004661560 + <_> + + <_> + + + + <_>3 15 14 4 -1. + <_>3 15 7 2 2. + <_>10 17 7 2 2. + 0 + 0.0191393196582794 + 0.5209379196166992 + 0.2332071959972382 + <_> + + <_> + + + + <_>2 2 16 4 -1. + <_>10 2 8 2 2. + <_>2 4 8 2 2. + 0 + 0.0164457596838474 + 0.5450702905654907 + 0.3264234960079193 + <_> + + <_> + + + + <_>0 8 6 12 -1. + <_>3 8 3 12 2. + 0 + -0.0373568907380104 + 0.6999046802520752 + 0.4533241987228394 + <_> + + <_> + + + + <_>5 7 10 2 -1. + <_>5 7 5 2 2. + 0 + -0.0197279006242752 + 0.2653664946556091 + 0.5412809848785400 + <_> + + <_> + + + + <_>9 7 2 5 -1. + <_>10 7 1 5 2. + 0 + 6.6972579807043076e-003 + 0.4480566084384918 + 0.7138652205467224 + <_> + + <_> + + + + <_>13 7 6 4 -1. + <_>16 7 3 2 2. + <_>13 9 3 2 2. + 0 + 7.4457528535276651e-004 + 0.4231350123882294 + 0.5471320152282715 + <_> + + <_> + + + + <_>0 13 8 2 -1. + <_>0 14 8 1 2. + 0 + 1.1790640419349074e-003 + 0.5341702103614807 + 0.3130455017089844 + <_> + + <_> + + + + <_>13 7 6 4 -1. + <_>16 7 3 2 2. + <_>13 9 3 2 2. + 0 + 0.0349806100130081 + 0.5118659734725952 + 0.3430530130863190 + <_> + + <_> + + + + <_>1 7 6 4 -1. + <_>1 7 3 2 2. + <_>4 9 3 2 2. + 0 + 5.6859792675822973e-004 + 0.3532187044620514 + 0.5468639731407166 + <_> + + <_> + + + + <_>12 6 1 12 -1. + <_>12 12 1 6 2. + 0 + -0.0113406497985125 + 0.2842353880405426 + 0.5348700881004334 + <_> + + <_> + + + + <_>9 5 2 6 -1. + <_>10 5 1 6 2. + 0 + -6.6228108480572701e-003 + 0.6883640289306641 + 0.4492664933204651 + <_> + + <_> + + + + <_>14 12 2 3 -1. + <_>14 13 2 1 3. + 0 + -8.0160330981016159e-003 + 0.1709893941879273 + 0.5224308967590332 + <_> + + <_> + + + + <_>4 12 2 3 -1. + <_>4 13 2 1 3. + 0 + 1.4206819469109178e-003 + 0.5290846228599548 + 0.2993383109569550 + <_> + + <_> + + + + <_>8 12 4 3 -1. + <_>8 13 4 1 3. + 0 + -2.7801711112260818e-003 + 0.6498854160308838 + 0.4460499882698059 + <_> + + <_> + + + + <_>5 2 2 4 -1. + <_>5 2 1 2 2. + <_>6 4 1 2 2. + 0 + -1.4747589593753219e-003 + 0.3260438144207001 + 0.5388113260269165 + <_> + + <_> + + + + <_>5 5 11 3 -1. + <_>5 6 11 1 3. + 0 + -0.0238303393125534 + 0.7528941035270691 + 0.4801219999790192 + <_> + + <_> + + + + <_>7 6 4 12 -1. + <_>7 12 4 6 2. + 0 + 6.9369790144264698e-003 + 0.5335165858268738 + 0.3261427879333496 + <_> + + <_> + + + + <_>12 13 8 5 -1. + <_>12 13 4 5 2. + 0 + 8.2806255668401718e-003 + 0.4580394029617310 + 0.5737829804420471 + <_> + + <_> + + + + <_>7 6 1 12 -1. + <_>7 12 1 6 2. + 0 + -0.0104395002126694 + 0.2592320144176483 + 0.5233827829360962 + 34.5541114807128910 + 8 + -1 + <_> + + + <_> + + <_> + + + + <_>1 2 6 3 -1. + <_>4 2 3 3 2. + 0 + 7.2006587870419025e-003 + 0.3258886039257050 + 0.6849808096885681 + <_> + + <_> + + + + <_>9 5 6 10 -1. + <_>12 5 3 5 2. + <_>9 10 3 5 2. + 0 + -2.8593589086085558e-003 + 0.5838881134986877 + 0.2537829875946045 + <_> + + <_> + + + + <_>5 5 8 12 -1. + <_>5 5 4 6 2. + <_>9 11 4 6 2. + 0 + 6.8580528022721410e-004 + 0.5708081722259522 + 0.2812424004077911 + <_> + + <_> + + + + <_>0 7 20 6 -1. + <_>0 9 20 2 3. + 0 + 7.9580191522836685e-003 + 0.2501051127910614 + 0.5544260740280151 + <_> + + <_> + + + + <_>4 2 2 2 -1. + <_>4 3 2 1 2. + 0 + -1.2124150525778532e-003 + 0.2385368049144745 + 0.5433350205421448 + <_> + + <_> + + + + <_>4 18 12 2 -1. + <_>8 18 4 2 3. + 0 + 7.9426132142543793e-003 + 0.3955070972442627 + 0.6220757961273193 + <_> + + <_> + + + + <_>7 4 4 16 -1. + <_>7 12 4 8 2. + 0 + 2.4630590341985226e-003 + 0.5639708042144775 + 0.2992357909679413 + <_> + + <_> + + + + <_>7 6 7 8 -1. + <_>7 10 7 4 2. + 0 + -6.0396599583327770e-003 + 0.2186512947082520 + 0.5411676764488220 + <_> + + <_> + + + + <_>6 3 3 1 -1. + <_>7 3 1 1 3. + 0 + -1.2988339876756072e-003 + 0.2350706011056900 + 0.5364584922790527 + <_> + + <_> + + + + <_>11 15 2 4 -1. + <_>11 17 2 2 2. + 0 + 2.2299369447864592e-004 + 0.3804112970829010 + 0.5729606151580811 + <_> + + <_> + + + + <_>3 5 4 8 -1. + <_>3 9 4 4 2. + 0 + 1.4654280385002494e-003 + 0.2510167956352234 + 0.5258268713951111 + <_> + + <_> + + + + <_>7 1 6 12 -1. + <_>7 7 6 6 2. + 0 + -8.1210042117163539e-004 + 0.5992823839187622 + 0.3851158916950226 + <_> + + <_> + + + + <_>4 6 6 2 -1. + <_>6 6 2 2 3. + 0 + -1.3836020370945334e-003 + 0.5681396126747131 + 0.3636586964130402 + <_> + + <_> + + + + <_>16 4 4 6 -1. + <_>16 6 4 2 3. + 0 + -0.0279364492744207 + 0.1491317003965378 + 0.5377560257911682 + <_> + + <_> + + + + <_>3 3 5 2 -1. + <_>3 4 5 1 2. + 0 + -4.6919551095925272e-004 + 0.3692429959774017 + 0.5572484731674194 + <_> + + <_> + + + + <_>9 11 2 3 -1. + <_>9 12 2 1 3. + 0 + -4.9829659983515739e-003 + 0.6758509278297424 + 0.4532504081726074 + <_> + + <_> + + + + <_>2 16 4 2 -1. + <_>2 17 4 1 2. + 0 + 1.8815309740602970e-003 + 0.5368022918701172 + 0.2932539880275726 + <_> + + <_> + + + + <_>7 13 6 6 -1. + <_>10 13 3 3 2. + <_>7 16 3 3 2. + 0 + -0.0190675500780344 + 0.1649377048015595 + 0.5330067276954651 + <_> + + <_> + + + + <_>7 0 3 4 -1. + <_>8 0 1 4 3. + 0 + -4.6906559728085995e-003 + 0.1963925957679749 + 0.5119361877441406 + <_> + + <_> + + + + <_>8 15 4 3 -1. + <_>8 16 4 1 3. + 0 + 5.9777139686048031e-003 + 0.4671171903610230 + 0.7008398175239563 + <_> + + <_> + + + + <_>0 4 4 6 -1. + <_>0 6 4 2 3. + 0 + -0.0333031304180622 + 0.1155416965484619 + 0.5104162096977234 + <_> + + <_> + + + + <_>5 6 12 3 -1. + <_>9 6 4 3 3. + 0 + 0.0907441079616547 + 0.5149660110473633 + 0.1306173056364059 + <_> + + <_> + + + + <_>7 6 6 14 -1. + <_>9 6 2 14 3. + 0 + 9.3555898638442159e-004 + 0.3605481088161469 + 0.5439859032630920 + <_> + + <_> + + + + <_>9 7 3 3 -1. + <_>10 7 1 3 3. + 0 + 0.0149016501381993 + 0.4886212050914764 + 0.7687569856643677 + <_> + + <_> + + + + <_>6 12 2 4 -1. + <_>6 14 2 2 2. + 0 + 6.1594118596985936e-004 + 0.5356813073158264 + 0.3240939080715179 + <_> + + <_> + + + + <_>10 12 7 6 -1. + <_>10 14 7 2 3. + 0 + -0.0506709888577461 + 0.1848621964454651 + 0.5230404138565064 + <_> + + <_> + + + + <_>1 0 15 2 -1. + <_>1 1 15 1 2. + 0 + 6.8665749859064817e-004 + 0.3840579986572266 + 0.5517945885658264 + <_> + + <_> + + + + <_>14 0 6 6 -1. + <_>14 0 3 6 2. + 0 + 8.3712432533502579e-003 + 0.4288564026355743 + 0.6131753921508789 + <_> + + <_> + + + + <_>5 3 3 1 -1. + <_>6 3 1 1 3. + 0 + -1.2953069526702166e-003 + 0.2913674116134644 + 0.5280737876892090 + <_> + + <_> + + + + <_>14 0 6 6 -1. + <_>14 0 3 6 2. + 0 + -0.0419416800141335 + 0.7554799914360046 + 0.4856030941009522 + <_> + + <_> + + + + <_>0 3 20 10 -1. + <_>0 8 20 5 2. + 0 + -0.0235293805599213 + 0.2838279902935028 + 0.5256081223487854 + <_> + + <_> + + + + <_>14 0 6 6 -1. + <_>14 0 3 6 2. + 0 + 0.0408574491739273 + 0.4870935082435608 + 0.6277297139167786 + <_> + + <_> + + + + <_>0 0 6 6 -1. + <_>3 0 3 6 2. + 0 + -0.0254068691283464 + 0.7099707722663879 + 0.4575029015541077 + <_> + + <_> + + + + <_>19 15 1 2 -1. + <_>19 16 1 1 2. + 0 + -4.1415440500713885e-004 + 0.4030886888504028 + 0.5469412207603455 + <_> + + <_> + + + + <_>0 2 4 8 -1. + <_>2 2 2 8 2. + 0 + 0.0218241196125746 + 0.4502024054527283 + 0.6768701076507568 + <_> + + <_> + + + + <_>2 1 18 4 -1. + <_>11 1 9 2 2. + <_>2 3 9 2 2. + 0 + 0.0141140399500728 + 0.5442860722541809 + 0.3791700005531311 + <_> + + <_> + + + + <_>8 12 1 2 -1. + <_>8 13 1 1 2. + 0 + 6.7214590671937913e-005 + 0.4200463891029358 + 0.5873476266860962 + <_> + + <_> + + + + <_>5 2 10 6 -1. + <_>10 2 5 3 2. + <_>5 5 5 3 2. + 0 + -7.9417638480663300e-003 + 0.3792561888694763 + 0.5585265755653381 + <_> + + <_> + + + + <_>9 7 2 4 -1. + <_>10 7 1 4 2. + 0 + -7.2144409641623497e-003 + 0.7253103852272034 + 0.4603548943996429 + <_> + + <_> + + + + <_>9 7 3 3 -1. + <_>10 7 1 3 3. + 0 + 2.5817339774221182e-003 + 0.4693301916122437 + 0.5900238752365112 + <_> + + <_> + + + + <_>4 5 12 8 -1. + <_>8 5 4 8 3. + 0 + 0.1340931951999664 + 0.5149213075637817 + 0.1808844953775406 + <_> + + <_> + + + + <_>15 15 4 3 -1. + <_>15 16 4 1 3. + 0 + 2.2962710354477167e-003 + 0.5399743914604187 + 0.3717867136001587 + <_> + + <_> + + + + <_>8 18 3 1 -1. + <_>9 18 1 1 3. + 0 + -2.1575849968940020e-003 + 0.2408495992422104 + 0.5148863792419434 + <_> + + <_> + + + + <_>9 13 4 3 -1. + <_>9 14 4 1 3. + 0 + -4.9196188338100910e-003 + 0.6573588252067566 + 0.4738740026950836 + <_> + + <_> + + + + <_>7 13 4 3 -1. + <_>7 14 4 1 3. + 0 + 1.6267469618469477e-003 + 0.4192821979522705 + 0.6303114295005798 + <_> + + <_> + + + + <_>19 15 1 2 -1. + <_>19 16 1 1 2. + 0 + 3.3413388882763684e-004 + 0.5540298223495483 + 0.3702101111412048 + <_> + + <_> + + + + <_>0 15 8 4 -1. + <_>0 17 8 2 2. + 0 + -0.0266980808228254 + 0.1710917949676514 + 0.5101410746574402 + <_> + + <_> + + + + <_>9 3 6 4 -1. + <_>11 3 2 4 3. + 0 + -0.0305618792772293 + 0.1904218047857285 + 0.5168793797492981 + <_> + + <_> + + + + <_>8 14 4 3 -1. + <_>8 15 4 1 3. + 0 + 2.8511548880487680e-003 + 0.4447506964206696 + 0.6313853859901428 + <_> + + <_> + + + + <_>3 14 14 6 -1. + <_>3 16 14 2 3. + 0 + -0.0362114794552326 + 0.2490727007389069 + 0.5377349257469177 + <_> + + <_> + + + + <_>6 3 6 6 -1. + <_>6 6 6 3 2. + 0 + -2.4115189444273710e-003 + 0.5381243228912354 + 0.3664236962795258 + <_> + + <_> + + + + <_>5 11 10 6 -1. + <_>5 14 10 3 2. + 0 + -7.7253201743587852e-004 + 0.5530232191085815 + 0.3541550040245056 + <_> + + <_> + + + + <_>3 10 3 4 -1. + <_>4 10 1 4 3. + 0 + 2.9481729143299162e-004 + 0.4132699072360992 + 0.5667243003845215 + <_> + + <_> + + + + <_>13 9 2 2 -1. + <_>13 9 1 2 2. + 0 + -6.2334560789167881e-003 + 0.0987872332334518 + 0.5198668837547302 + <_> + + <_> + + + + <_>5 3 6 4 -1. + <_>7 3 2 4 3. + 0 + -0.0262747295200825 + 0.0911274924874306 + 0.5028107166290283 + <_> + + <_> + + + + <_>9 7 3 3 -1. + <_>10 7 1 3 3. + 0 + 5.3212260827422142e-003 + 0.4726648926734924 + 0.6222720742225647 + <_> + + <_> + + + + <_>2 12 2 3 -1. + <_>2 13 2 1 3. + 0 + -4.1129058226943016e-003 + 0.2157457023859024 + 0.5137804746627808 + <_> + + <_> + + + + <_>9 8 3 12 -1. + <_>9 12 3 4 3. + 0 + 3.2457809429615736e-003 + 0.5410770773887634 + 0.3721776902675629 + <_> + + <_> + + + + <_>3 14 4 6 -1. + <_>3 14 2 3 2. + <_>5 17 2 3 2. + 0 + -0.0163597092032433 + 0.7787874937057495 + 0.4685291945934296 + <_> + + <_> + + + + <_>16 15 2 2 -1. + <_>16 16 2 1 2. + 0 + 3.2166109303943813e-004 + 0.5478987097740173 + 0.4240373969078064 + <_> + + <_> + + + + <_>2 15 2 2 -1. + <_>2 16 2 1 2. + 0 + 6.4452440710738301e-004 + 0.5330560803413391 + 0.3501324951648712 + <_> + + <_> + + + + <_>8 12 4 3 -1. + <_>8 13 4 1 3. + 0 + -7.8909732401371002e-003 + 0.6923521161079407 + 0.4726569056510925 + <_> + + <_> + + + + <_>0 7 20 1 -1. + <_>10 7 10 1 2. + 0 + 0.0483362115919590 + 0.5055900216102600 + 0.0757492035627365 + <_> + + <_> + + + + <_>7 6 8 3 -1. + <_>7 6 4 3 2. + 0 + -7.5178127735853195e-004 + 0.3783741891384125 + 0.5538573861122131 + <_> + + <_> + + + + <_>5 7 8 2 -1. + <_>9 7 4 2 2. + 0 + -2.4953910615295172e-003 + 0.3081651031970978 + 0.5359612107276917 + <_> + + <_> + + + + <_>9 7 3 5 -1. + <_>10 7 1 5 3. + 0 + -2.2385010961443186e-003 + 0.6633958816528320 + 0.4649342894554138 + <_> + + <_> + + + + <_>8 7 3 5 -1. + <_>9 7 1 5 3. + 0 + -1.7988430336117744e-003 + 0.6596844792366028 + 0.4347187876701355 + <_> + + <_> + + + + <_>11 1 3 5 -1. + <_>12 1 1 5 3. + 0 + 8.7860915809869766e-003 + 0.5231832861900330 + 0.2315579950809479 + <_> + + <_> + + + + <_>6 2 3 6 -1. + <_>7 2 1 6 3. + 0 + 3.6715380847454071e-003 + 0.5204250216484070 + 0.2977376878261566 + <_> + + <_> + + + + <_>14 14 6 5 -1. + <_>14 14 3 5 2. + 0 + -0.0353364497423172 + 0.7238878011703491 + 0.4861505031585693 + <_> + + <_> + + + + <_>9 8 2 2 -1. + <_>9 9 2 1 2. + 0 + -6.9189240457490087e-004 + 0.3105022013187408 + 0.5229824781417847 + <_> + + <_> + + + + <_>10 7 1 3 -1. + <_>10 8 1 1 3. + 0 + -3.3946109469980001e-003 + 0.3138968050479889 + 0.5210173726081848 + <_> + + <_> + + + + <_>6 6 2 2 -1. + <_>6 6 1 1 2. + <_>7 7 1 1 2. + 0 + 9.8569283727556467e-004 + 0.4536580145359039 + 0.6585097908973694 + <_> + + <_> + + + + <_>2 11 18 4 -1. + <_>11 11 9 2 2. + <_>2 13 9 2 2. + 0 + -0.0501631014049053 + 0.1804454028606415 + 0.5198916792869568 + <_> + + <_> + + + + <_>6 6 2 2 -1. + <_>6 6 1 1 2. + <_>7 7 1 1 2. + 0 + -2.2367259953171015e-003 + 0.7255702018737793 + 0.4651359021663666 + <_> + + <_> + + + + <_>0 15 20 2 -1. + <_>0 16 20 1 2. + 0 + 7.4326287722215056e-004 + 0.4412921071052551 + 0.5898545980453491 + <_> + + <_> + + + + <_>4 14 2 3 -1. + <_>4 15 2 1 3. + 0 + -9.3485182151198387e-004 + 0.3500052988529205 + 0.5366017818450928 + <_> + + <_> + + + + <_>8 14 4 3 -1. + <_>8 15 4 1 3. + 0 + 0.0174979399889708 + 0.4912194907665253 + 0.8315284848213196 + <_> + + <_> + + + + <_>8 7 2 3 -1. + <_>8 8 2 1 3. + 0 + -1.5200000489130616e-003 + 0.3570275902748108 + 0.5370560288429260 + <_> + + <_> + + + + <_>9 10 2 3 -1. + <_>9 11 2 1 3. + 0 + 7.8003940870985389e-004 + 0.4353772103786469 + 0.5967335104942322 + 39.1072883605957030 + 9 + -1 + <_> + + + <_> + + <_> + + + + <_>5 4 10 4 -1. + <_>5 6 10 2 2. + 0 + -9.9945552647113800e-003 + 0.6162583231925964 + 0.3054533004760742 + <_> + + <_> + + + + <_>9 7 6 4 -1. + <_>12 7 3 2 2. + <_>9 9 3 2 2. + 0 + -1.1085229925811291e-003 + 0.5818294882774353 + 0.3155578076839447 + <_> + + <_> + + + + <_>4 7 3 6 -1. + <_>4 9 3 2 3. + 0 + 1.0364380432292819e-003 + 0.2552052140235901 + 0.5692911744117737 + <_> + + <_> + + + + <_>11 15 4 4 -1. + <_>13 15 2 2 2. + <_>11 17 2 2 2. + 0 + 6.8211311008781195e-004 + 0.3685089945793152 + 0.5934931039810181 + <_> + + <_> + + + + <_>7 8 4 2 -1. + <_>7 9 4 1 2. + 0 + -6.8057340104132891e-004 + 0.2332392036914825 + 0.5474792122840881 + <_> + + <_> + + + + <_>13 1 4 3 -1. + <_>13 1 2 3 2. + 0 + 2.6068789884448051e-004 + 0.3257457017898560 + 0.5667545795440674 + <_> + + <_> + + + + <_>5 15 4 4 -1. + <_>5 15 2 2 2. + <_>7 17 2 2 2. + 0 + 5.1607372006401420e-004 + 0.3744716942310333 + 0.5845472812652588 + <_> + + <_> + + + + <_>9 5 4 7 -1. + <_>9 5 2 7 2. + 0 + 8.5007521556690335e-004 + 0.3420371115207672 + 0.5522807240486145 + <_> + + <_> + + + + <_>5 6 8 3 -1. + <_>9 6 4 3 2. + 0 + -1.8607829697430134e-003 + 0.2804419994354248 + 0.5375424027442932 + <_> + + <_> + + + + <_>9 9 2 2 -1. + <_>9 10 2 1 2. + 0 + -1.5033970121294260e-003 + 0.2579050958156586 + 0.5498952269554138 + <_> + + <_> + + + + <_>7 15 5 3 -1. + <_>7 16 5 1 3. + 0 + 2.3478909861296415e-003 + 0.4175156056880951 + 0.6313710808753967 + <_> + + <_> + + + + <_>11 10 4 3 -1. + <_>11 10 2 3 2. + 0 + -2.8880240279249847e-004 + 0.5865169763565064 + 0.4052666127681732 + <_> + + <_> + + + + <_>6 9 8 10 -1. + <_>6 14 8 5 2. + 0 + 8.9405477046966553e-003 + 0.5211141109466553 + 0.2318654060363770 + <_> + + <_> + + + + <_>10 11 6 2 -1. + <_>10 11 3 2 2. + 0 + -0.0193277392536402 + 0.2753432989120483 + 0.5241525769233704 + <_> + + <_> + + + + <_>4 11 6 2 -1. + <_>7 11 3 2 2. + 0 + -2.0202060113660991e-004 + 0.5722978711128235 + 0.3677195906639099 + <_> + + <_> + + + + <_>11 3 8 1 -1. + <_>11 3 4 1 2. + 0 + 2.1179069299250841e-003 + 0.4466108083724976 + 0.5542430877685547 + <_> + + <_> + + + + <_>6 3 3 2 -1. + <_>7 3 1 2 3. + 0 + -1.7743760254234076e-003 + 0.2813253104686737 + 0.5300959944725037 + <_> + + <_> + + + + <_>14 5 6 5 -1. + <_>14 5 3 5 2. + 0 + 4.2234458960592747e-003 + 0.4399709999561310 + 0.5795428156852722 + <_> + + <_> + + + + <_>7 5 2 12 -1. + <_>7 11 2 6 2. + 0 + -0.0143752200528979 + 0.2981117963790894 + 0.5292059183120728 + <_> + + <_> + + + + <_>8 11 4 3 -1. + <_>8 12 4 1 3. + 0 + -0.0153491804376245 + 0.7705215215682983 + 0.4748171865940094 + <_> + + <_> + + + + <_>4 1 2 3 -1. + <_>5 1 1 3 2. + 0 + 1.5152279956964776e-005 + 0.3718844056129456 + 0.5576897263526917 + <_> + + <_> + + + + <_>18 3 2 6 -1. + <_>18 5 2 2 3. + 0 + -9.1293919831514359e-003 + 0.3615196049213409 + 0.5286766886711121 + <_> + + <_> + + + + <_>0 3 2 6 -1. + <_>0 5 2 2 3. + 0 + 2.2512159775942564e-003 + 0.5364704728126526 + 0.3486298024654388 + <_> + + <_> + + + + <_>9 12 2 3 -1. + <_>9 13 2 1 3. + 0 + -4.9696918576955795e-003 + 0.6927651762962341 + 0.4676836133003235 + <_> + + <_> + + + + <_>7 13 4 3 -1. + <_>7 14 4 1 3. + 0 + -0.0128290103748441 + 0.7712153792381287 + 0.4660735130310059 + <_> + + <_> + + + + <_>18 0 2 6 -1. + <_>18 2 2 2 3. + 0 + -9.3660065904259682e-003 + 0.3374983966350555 + 0.5351287722587585 + <_> + + <_> + + + + <_>0 0 2 6 -1. + <_>0 2 2 2 3. + 0 + 3.2452319283038378e-003 + 0.5325189828872681 + 0.3289610147476196 + <_> + + <_> + + + + <_>8 14 6 3 -1. + <_>8 15 6 1 3. + 0 + -0.0117235602810979 + 0.6837652921676636 + 0.4754300117492676 + <_> + + <_> + + + + <_>7 4 2 4 -1. + <_>8 4 1 4 2. + 0 + 2.9257940695970319e-005 + 0.3572087883949280 + 0.5360502004623413 + <_> + + <_> + + + + <_>8 5 4 6 -1. + <_>8 7 4 2 3. + 0 + -2.2244219508138485e-005 + 0.5541427135467529 + 0.3552064001560211 + <_> + + <_> + + + + <_>6 4 2 2 -1. + <_>7 4 1 2 2. + 0 + 5.0881509669125080e-003 + 0.5070844292640686 + 0.1256462037563324 + <_> + + <_> + + + + <_>3 14 14 4 -1. + <_>10 14 7 2 2. + <_>3 16 7 2 2. + 0 + 0.0274296794086695 + 0.5269560217857361 + 0.1625818014144898 + <_> + + <_> + + + + <_>6 15 6 2 -1. + <_>6 15 3 1 2. + <_>9 16 3 1 2. + 0 + -6.4142867922782898e-003 + 0.7145588994026184 + 0.4584197103977203 + <_> + + <_> + + + + <_>14 15 6 2 -1. + <_>14 16 6 1 2. + 0 + 3.3479959238320589e-003 + 0.5398612022399902 + 0.3494696915149689 + <_> + + <_> + + + + <_>2 12 12 8 -1. + <_>2 16 12 4 2. + 0 + -0.0826354920864105 + 0.2439192980527878 + 0.5160226225852966 + <_> + + <_> + + + + <_>7 7 7 2 -1. + <_>7 8 7 1 2. + 0 + 1.0261740535497665e-003 + 0.3886891901493073 + 0.5767908096313477 + <_> + + <_> + + + + <_>0 2 18 2 -1. + <_>0 3 18 1 2. + 0 + -1.6307090409100056e-003 + 0.3389458060264587 + 0.5347700715065002 + <_> + + <_> + + + + <_>9 6 2 5 -1. + <_>9 6 1 5 2. + 0 + 2.4546680506318808e-003 + 0.4601413905620575 + 0.6387246847152710 + <_> + + <_> + + + + <_>7 5 3 8 -1. + <_>8 5 1 8 3. + 0 + -9.9476519972085953e-004 + 0.5769879221916199 + 0.4120396077632904 + <_> + + <_> + + + + <_>9 6 3 4 -1. + <_>10 6 1 4 3. + 0 + 0.0154091902077198 + 0.4878709018230438 + 0.7089822292327881 + <_> + + <_> + + + + <_>4 13 3 2 -1. + <_>4 14 3 1 2. + 0 + 1.1784400558099151e-003 + 0.5263553261756897 + 0.2895244956016541 + <_> + + <_> + + + + <_>9 4 6 3 -1. + <_>11 4 2 3 3. + 0 + -0.0277019198983908 + 0.1498828977346420 + 0.5219606757164002 + <_> + + <_> + + + + <_>5 4 6 3 -1. + <_>7 4 2 3 3. + 0 + -0.0295053999871016 + 0.0248933192342520 + 0.4999816119670868 + <_> + + <_> + + + + <_>14 11 5 2 -1. + <_>14 12 5 1 2. + 0 + 4.5159430010244250e-004 + 0.5464622974395752 + 0.4029662907123566 + <_> + + <_> + + + + <_>1 2 6 9 -1. + <_>3 2 2 9 3. + 0 + 7.1772639639675617e-003 + 0.4271056950092316 + 0.5866296887397766 + <_> + + <_> + + + + <_>14 6 6 13 -1. + <_>14 6 3 13 2. + 0 + -0.0741820484399796 + 0.6874179244041443 + 0.4919027984142304 + <_> + + <_> + + + + <_>3 6 14 8 -1. + <_>3 6 7 4 2. + <_>10 10 7 4 2. + 0 + -0.0172541607171297 + 0.3370676040649414 + 0.5348739027976990 + <_> + + <_> + + + + <_>16 0 4 11 -1. + <_>16 0 2 11 2. + 0 + 0.0148515598848462 + 0.4626792967319489 + 0.6129904985427856 + <_> + + <_> + + + + <_>3 4 12 12 -1. + <_>3 4 6 6 2. + <_>9 10 6 6 2. + 0 + 0.0100020002573729 + 0.5346122980117798 + 0.3423453867435455 + <_> + + <_> + + + + <_>11 4 5 3 -1. + <_>11 5 5 1 3. + 0 + 2.0138120744377375e-003 + 0.4643830060958862 + 0.5824304223060608 + <_> + + <_> + + + + <_>4 11 4 2 -1. + <_>4 12 4 1 2. + 0 + 1.5135470312088728e-003 + 0.5196396112442017 + 0.2856149971485138 + <_> + + <_> + + + + <_>10 7 2 2 -1. + <_>10 7 1 2 2. + 0 + 3.1381431035697460e-003 + 0.4838162958621979 + 0.5958529710769653 + <_> + + <_> + + + + <_>8 7 2 2 -1. + <_>9 7 1 2 2. + 0 + -5.1450440660119057e-003 + 0.8920302987098694 + 0.4741412103176117 + <_> + + <_> + + + + <_>9 17 3 2 -1. + <_>10 17 1 2 3. + 0 + -4.4736708514392376e-003 + 0.2033942937850952 + 0.5337278842926025 + <_> + + <_> + + + + <_>5 6 3 3 -1. + <_>5 7 3 1 3. + 0 + 1.9628470763564110e-003 + 0.4571633934974670 + 0.6725863218307495 + <_> + + <_> + + + + <_>10 0 3 3 -1. + <_>11 0 1 3 3. + 0 + 5.4260450415313244e-003 + 0.5271108150482178 + 0.2845670878887177 + <_> + + <_> + + + + <_>5 6 6 2 -1. + <_>5 6 3 1 2. + <_>8 7 3 1 2. + 0 + 4.9611460417509079e-004 + 0.4138312935829163 + 0.5718597769737244 + <_> + + <_> + + + + <_>12 16 4 3 -1. + <_>12 17 4 1 3. + 0 + 9.3728788197040558e-003 + 0.5225151181221008 + 0.2804847061634064 + <_> + + <_> + + + + <_>3 12 3 2 -1. + <_>3 13 3 1 2. + 0 + 6.0500897234305739e-004 + 0.5236768722534180 + 0.3314523994922638 + <_> + + <_> + + + + <_>9 12 3 2 -1. + <_>9 13 3 1 2. + 0 + 5.6792551185935736e-004 + 0.4531059861183167 + 0.6276971101760864 + <_> + + <_> + + + + <_>1 11 16 4 -1. + <_>1 11 8 2 2. + <_>9 13 8 2 2. + 0 + 0.0246443394571543 + 0.5130851864814758 + 0.2017143964767456 + <_> + + <_> + + + + <_>12 4 3 3 -1. + <_>12 5 3 1 3. + 0 + -0.0102904504165053 + 0.7786595225334168 + 0.4876641035079956 + <_> + + <_> + + + + <_>4 4 5 3 -1. + <_>4 5 5 1 3. + 0 + 2.0629419013857841e-003 + 0.4288598895072937 + 0.5881264209747315 + <_> + + <_> + + + + <_>12 16 4 3 -1. + <_>12 17 4 1 3. + 0 + -5.0519481301307678e-003 + 0.3523977994918823 + 0.5286008715629578 + <_> + + <_> + + + + <_>5 4 3 3 -1. + <_>5 5 3 1 3. + 0 + -5.7692620903253555e-003 + 0.6841086149215698 + 0.4588094055652618 + <_> + + <_> + + + + <_>9 0 2 2 -1. + <_>9 1 2 1 2. + 0 + -4.5789941214025021e-004 + 0.3565520048141480 + 0.5485978126525879 + <_> + + <_> + + + + <_>8 9 4 2 -1. + <_>8 10 4 1 2. + 0 + -7.5918837683275342e-004 + 0.3368793129920960 + 0.5254197120666504 + <_> + + <_> + + + + <_>8 8 4 3 -1. + <_>8 9 4 1 3. + 0 + -1.7737259622663260e-003 + 0.3422161042690277 + 0.5454015135765076 + <_> + + <_> + + + + <_>0 13 6 3 -1. + <_>2 13 2 3 3. + 0 + -8.5610467940568924e-003 + 0.6533612012863159 + 0.4485856890678406 + <_> + + <_> + + + + <_>16 14 3 2 -1. + <_>16 15 3 1 2. + 0 + 1.7277270089834929e-003 + 0.5307580232620239 + 0.3925352990627289 + <_> + + <_> + + + + <_>1 18 18 2 -1. + <_>7 18 6 2 3. + 0 + -0.0281996093690395 + 0.6857458949089050 + 0.4588584005832672 + <_> + + <_> + + + + <_>16 14 3 2 -1. + <_>16 15 3 1 2. + 0 + -1.7781109781935811e-003 + 0.4037851095199585 + 0.5369856953620911 + <_> + + <_> + + + + <_>1 14 3 2 -1. + <_>1 15 3 1 2. + 0 + 3.3177141449414194e-004 + 0.5399798750877380 + 0.3705750107765198 + <_> + + <_> + + + + <_>7 14 6 3 -1. + <_>7 15 6 1 3. + 0 + 2.6385399978607893e-003 + 0.4665437042713165 + 0.6452730894088745 + <_> + + <_> + + + + <_>5 14 8 3 -1. + <_>5 15 8 1 3. + 0 + -2.1183069329708815e-003 + 0.5914781093597412 + 0.4064677059650421 + <_> + + <_> + + + + <_>10 6 4 14 -1. + <_>10 6 2 14 2. + 0 + -0.0147732896730304 + 0.3642038106918335 + 0.5294762849807739 + <_> + + <_> + + + + <_>6 6 4 14 -1. + <_>8 6 2 14 2. + 0 + -0.0168154407292604 + 0.2664231956005096 + 0.5144972801208496 + <_> + + <_> + + + + <_>13 5 2 3 -1. + <_>13 6 2 1 3. + 0 + -6.3370140269398689e-003 + 0.6779531240463257 + 0.4852097928524017 + <_> + + <_> + + + + <_>7 16 6 1 -1. + <_>9 16 2 1 3. + 0 + -4.4560048991115764e-005 + 0.5613964796066284 + 0.4153054058551788 + <_> + + <_> + + + + <_>9 12 3 3 -1. + <_>9 13 3 1 3. + 0 + -1.0240620467811823e-003 + 0.5964478254318237 + 0.4566304087638855 + <_> + + <_> + + + + <_>7 0 3 3 -1. + <_>8 0 1 3 3. + 0 + -2.3161689750850201e-003 + 0.2976115047931671 + 0.5188159942626953 + <_> + + <_> + + + + <_>4 0 16 18 -1. + <_>4 9 16 9 2. + 0 + 0.5321757197380066 + 0.5187839269638062 + 0.2202631980180740 + <_> + + <_> + + + + <_>1 1 16 14 -1. + <_>1 8 16 7 2. + 0 + -0.1664305031299591 + 0.1866022944450378 + 0.5060343146324158 + <_> + + <_> + + + + <_>3 9 15 4 -1. + <_>8 9 5 4 3. + 0 + 0.1125352978706360 + 0.5212125182151794 + 0.1185022965073586 + <_> + + <_> + + + + <_>6 12 7 3 -1. + <_>6 13 7 1 3. + 0 + 9.3046864494681358e-003 + 0.4589937031269074 + 0.6826149225234985 + <_> + + <_> + + + + <_>14 15 2 3 -1. + <_>14 16 2 1 3. + 0 + -4.6255099587142467e-003 + 0.3079940974712372 + 0.5225008726119995 + <_> + + <_> + + + + <_>2 3 16 14 -1. + <_>2 3 8 7 2. + <_>10 10 8 7 2. + 0 + -0.1111646965146065 + 0.2101044058799744 + 0.5080801844596863 + <_> + + <_> + + + + <_>16 2 4 18 -1. + <_>18 2 2 9 2. + <_>16 11 2 9 2. + 0 + -0.0108884396031499 + 0.5765355229377747 + 0.4790464043617249 + <_> + + <_> + + + + <_>4 15 2 3 -1. + <_>4 16 2 1 3. + 0 + 5.8564301580190659e-003 + 0.5065100193023682 + 0.1563598960638046 + <_> + + <_> + + + + <_>16 2 4 18 -1. + <_>18 2 2 9 2. + <_>16 11 2 9 2. + 0 + 0.0548543892800808 + 0.4966914951801300 + 0.7230510711669922 + <_> + + <_> + + + + <_>1 1 8 3 -1. + <_>1 2 8 1 3. + 0 + -0.0111973397433758 + 0.2194979041814804 + 0.5098798274993897 + <_> + + <_> + + + + <_>8 11 4 3 -1. + <_>8 12 4 1 3. + 0 + 4.4069071300327778e-003 + 0.4778401851654053 + 0.6770902872085571 + <_> + + <_> + + + + <_>5 11 5 9 -1. + <_>5 14 5 3 3. + 0 + -0.0636652931571007 + 0.1936362981796265 + 0.5081024169921875 + <_> + + <_> + + + + <_>16 0 4 11 -1. + <_>16 0 2 11 2. + 0 + -9.8081491887569427e-003 + 0.5999063253402710 + 0.4810341000556946 + <_> + + <_> + + + + <_>7 0 6 1 -1. + <_>9 0 2 1 3. + 0 + -2.1717099007219076e-003 + 0.3338333964347839 + 0.5235472917556763 + <_> + + <_> + + + + <_>16 3 3 7 -1. + <_>17 3 1 7 3. + 0 + -0.0133155202493072 + 0.6617069840431213 + 0.4919213056564331 + <_> + + <_> + + + + <_>1 3 3 7 -1. + <_>2 3 1 7 3. + 0 + 2.5442079640924931e-003 + 0.4488744139671326 + 0.6082184910774231 + <_> + + <_> + + + + <_>7 8 6 12 -1. + <_>7 12 6 4 3. + 0 + 0.0120378397405148 + 0.5409392118453980 + 0.3292432129383087 + <_> + + <_> + + + + <_>0 0 4 11 -1. + <_>2 0 2 11 2. + 0 + -0.0207010507583618 + 0.6819120049476624 + 0.4594995975494385 + <_> + + <_> + + + + <_>14 0 6 20 -1. + <_>14 0 3 20 2. + 0 + 0.0276082791388035 + 0.4630792140960693 + 0.5767282843589783 + <_> + + <_> + + + + <_>0 3 1 2 -1. + <_>0 4 1 1 2. + 0 + 1.2370620388537645e-003 + 0.5165379047393799 + 0.2635016143321991 + <_> + + <_> + + + + <_>5 5 10 8 -1. + <_>10 5 5 4 2. + <_>5 9 5 4 2. + 0 + -0.0376693382859230 + 0.2536393105983734 + 0.5278980135917664 + <_> + + <_> + + + + <_>4 7 12 4 -1. + <_>4 7 6 2 2. + <_>10 9 6 2 2. + 0 + -1.8057259730994701e-003 + 0.3985156118869782 + 0.5517500042915344 + 50.6104812622070310 + 10 + -1 + <_> + + + <_> + + <_> + + + + <_>2 1 6 4 -1. + <_>5 1 3 4 2. + 0 + 4.4299028813838959e-003 + 0.2891018092632294 + 0.6335226297378540 + <_> + + <_> + + + + <_>9 7 6 4 -1. + <_>12 7 3 2 2. + <_>9 9 3 2 2. + 0 + -2.3813319858163595e-003 + 0.6211789250373840 + 0.3477487862110138 + <_> + + <_> + + + + <_>5 6 2 6 -1. + <_>5 9 2 3 2. + 0 + 2.2915711160749197e-003 + 0.2254412025213242 + 0.5582118034362793 + <_> + + <_> + + + + <_>9 16 6 4 -1. + <_>12 16 3 2 2. + <_>9 18 3 2 2. + 0 + 9.9457940086722374e-004 + 0.3711710870265961 + 0.5930070877075195 + <_> + + <_> + + + + <_>9 4 2 12 -1. + <_>9 10 2 6 2. + 0 + 7.7164667891338468e-004 + 0.5651720166206360 + 0.3347995877265930 + <_> + + <_> + + + + <_>7 1 6 18 -1. + <_>9 1 2 18 3. + 0 + -1.1386410333216190e-003 + 0.3069126009941101 + 0.5508630871772766 + <_> + + <_> + + + + <_>4 12 12 2 -1. + <_>8 12 4 2 3. + 0 + -1.6403039626311511e-004 + 0.5762827992439270 + 0.3699047863483429 + <_> + + <_> + + + + <_>8 8 6 2 -1. + <_>8 9 6 1 2. + 0 + 2.9793529392918572e-005 + 0.2644244134426117 + 0.5437911152839661 + <_> + + <_> + + + + <_>8 0 3 6 -1. + <_>9 0 1 6 3. + 0 + 8.5774902254343033e-003 + 0.5051138997077942 + 0.1795724928379059 + <_> + + <_> + + + + <_>11 18 3 2 -1. + <_>11 19 3 1 2. + 0 + -2.6032689493149519e-004 + 0.5826969146728516 + 0.4446826875209808 + <_> + + <_> + + + + <_>1 1 17 4 -1. + <_>1 3 17 2 2. + 0 + -6.1404630541801453e-003 + 0.3113852143287659 + 0.5346971750259399 + <_> + + <_> + + + + <_>11 8 4 12 -1. + <_>11 8 2 12 2. + 0 + -0.0230869501829147 + 0.3277946114540100 + 0.5331197977066040 + <_> + + <_> + + + + <_>8 14 4 3 -1. + <_>8 15 4 1 3. + 0 + -0.0142436502501369 + 0.7381709814071655 + 0.4588063061237335 + <_> + + <_> + + + + <_>12 3 2 17 -1. + <_>12 3 1 17 2. + 0 + 0.0194871295243502 + 0.5256630778312683 + 0.2274471968412399 + <_> + + <_> + + + + <_>4 7 6 1 -1. + <_>6 7 2 1 3. + 0 + -9.6681108698248863e-004 + 0.5511230826377869 + 0.3815006911754608 + <_> + + <_> + + + + <_>18 3 2 3 -1. + <_>18 4 2 1 3. + 0 + 3.1474709976464510e-003 + 0.5425636768341065 + 0.2543726861476898 + <_> + + <_> + + + + <_>8 4 3 4 -1. + <_>8 6 3 2 2. + 0 + -1.8026070029009134e-004 + 0.5380191802978516 + 0.3406304121017456 + <_> + + <_> + + + + <_>4 5 12 10 -1. + <_>4 10 12 5 2. + 0 + -6.0266260989010334e-003 + 0.3035801947116852 + 0.5420572161674500 + <_> + + <_> + + + + <_>5 18 4 2 -1. + <_>7 18 2 2 2. + 0 + 4.4462960795499384e-004 + 0.3990997076034546 + 0.5660110116004944 + <_> + + <_> + + + + <_>17 2 3 6 -1. + <_>17 4 3 2 3. + 0 + 2.2609760053455830e-003 + 0.5562806725502014 + 0.3940688073635101 + <_> + + <_> + + + + <_>7 7 6 6 -1. + <_>9 7 2 6 3. + 0 + 0.0511330589652061 + 0.4609653949737549 + 0.7118561863899231 + <_> + + <_> + + + + <_>17 2 3 6 -1. + <_>17 4 3 2 3. + 0 + -0.0177863091230392 + 0.2316166013479233 + 0.5322144031524658 + <_> + + <_> + + + + <_>8 0 3 4 -1. + <_>9 0 1 4 3. + 0 + -4.9679628573358059e-003 + 0.2330771982669830 + 0.5122029185295105 + <_> + + <_> + + + + <_>9 14 2 3 -1. + <_>9 15 2 1 3. + 0 + 2.0667689386755228e-003 + 0.4657444059848785 + 0.6455488204956055 + <_> + + <_> + + + + <_>0 12 6 3 -1. + <_>0 13 6 1 3. + 0 + 7.4413768015801907e-003 + 0.5154392123222351 + 0.2361633926630020 + <_> + + <_> + + + + <_>8 14 4 3 -1. + <_>8 15 4 1 3. + 0 + -3.6277279723435640e-003 + 0.6219773292541504 + 0.4476661086082459 + <_> + + <_> + + + + <_>3 12 2 3 -1. + <_>3 13 2 1 3. + 0 + -5.3530759178102016e-003 + 0.1837355047464371 + 0.5102208256721497 + <_> + + <_> + + + + <_>5 6 12 7 -1. + <_>9 6 4 7 3. + 0 + 0.1453091949224472 + 0.5145987272262573 + 0.1535930931568146 + <_> + + <_> + + + + <_>0 2 3 6 -1. + <_>0 4 3 2 3. + 0 + 2.4394490756094456e-003 + 0.5343660116195679 + 0.3624661862850189 + <_> + + <_> + + + + <_>14 6 1 3 -1. + <_>14 7 1 1 3. + 0 + -3.1283390708267689e-003 + 0.6215007901191711 + 0.4845592081546783 + <_> + + <_> + + + + <_>2 0 3 14 -1. + <_>3 0 1 14 3. + 0 + 1.7940260004252195e-003 + 0.4299261868000031 + 0.5824198126792908 + <_> + + <_> + + + + <_>12 14 5 6 -1. + <_>12 16 5 2 3. + 0 + 0.0362538211047649 + 0.5260334014892578 + 0.1439467966556549 + <_> + + <_> + + + + <_>4 14 5 6 -1. + <_>4 16 5 2 3. + 0 + -5.1746722310781479e-003 + 0.3506538867950440 + 0.5287045240402222 + <_> + + <_> + + + + <_>11 10 2 2 -1. + <_>12 10 1 1 2. + <_>11 11 1 1 2. + 0 + 6.5383297624066472e-004 + 0.4809640944004059 + 0.6122040152549744 + <_> + + <_> + + + + <_>5 0 3 14 -1. + <_>6 0 1 14 3. + 0 + -0.0264802295714617 + 0.1139362007379532 + 0.5045586228370667 + <_> + + <_> + + + + <_>10 15 2 3 -1. + <_>10 16 2 1 3. + 0 + -3.0440660193562508e-003 + 0.6352095007896423 + 0.4794734120368958 + <_> + + <_> + + + + <_>0 2 2 3 -1. + <_>0 3 2 1 3. + 0 + 3.6993520334362984e-003 + 0.5131118297576904 + 0.2498510926961899 + <_> + + <_> + + + + <_>5 11 12 6 -1. + <_>5 14 12 3 2. + 0 + -3.6762931267730892e-004 + 0.5421394705772400 + 0.3709532022476196 + <_> + + <_> + + + + <_>6 11 3 9 -1. + <_>6 14 3 3 3. + 0 + -0.0413822606205940 + 0.1894959956407547 + 0.5081691741943359 + <_> + + <_> + + + + <_>11 10 2 2 -1. + <_>12 10 1 1 2. + <_>11 11 1 1 2. + 0 + -1.0532729793339968e-003 + 0.6454367041587830 + 0.4783608913421631 + <_> + + <_> + + + + <_>5 6 1 3 -1. + <_>5 7 1 1 3. + 0 + -2.1648600231856108e-003 + 0.6215031147003174 + 0.4499826133251190 + <_> + + <_> + + + + <_>4 9 13 3 -1. + <_>4 10 13 1 3. + 0 + -5.6747748749330640e-004 + 0.3712610900402069 + 0.5419334769248962 + <_> + + <_> + + + + <_>1 7 15 6 -1. + <_>6 7 5 6 3. + 0 + 0.1737584024667740 + 0.5023643970489502 + 0.1215742006897926 + <_> + + <_> + + + + <_>4 5 12 6 -1. + <_>8 5 4 6 3. + 0 + -2.9049699660390615e-003 + 0.3240267932415009 + 0.5381883978843689 + <_> + + <_> + + + + <_>8 10 4 3 -1. + <_>8 11 4 1 3. + 0 + 1.2299539521336555e-003 + 0.4165507853031158 + 0.5703486204147339 + <_> + + <_> + + + + <_>15 14 1 3 -1. + <_>15 15 1 1 3. + 0 + -5.4329237900674343e-004 + 0.3854042887687683 + 0.5547549128532410 + <_> + + <_> + + + + <_>1 11 5 3 -1. + <_>1 12 5 1 3. + 0 + -8.3297258242964745e-003 + 0.2204494029283524 + 0.5097082853317261 + <_> + + <_> + + + + <_>7 1 7 12 -1. + <_>7 7 7 6 2. + 0 + -1.0417630255687982e-004 + 0.5607066154479981 + 0.4303036034107208 + <_> + + <_> + + + + <_>0 1 6 10 -1. + <_>0 1 3 5 2. + <_>3 6 3 5 2. + 0 + 0.0312047004699707 + 0.4621657133102417 + 0.6982004046440125 + <_> + + <_> + + + + <_>16 1 4 3 -1. + <_>16 2 4 1 3. + 0 + 7.8943502157926559e-003 + 0.5269594192504883 + 0.2269068062305450 + <_> + + <_> + + + + <_>5 5 2 3 -1. + <_>5 6 2 1 3. + 0 + -4.3645310215651989e-003 + 0.6359223127365112 + 0.4537956118583679 + <_> + + <_> + + + + <_>12 2 3 5 -1. + <_>13 2 1 5 3. + 0 + 7.6793059706687927e-003 + 0.5274767875671387 + 0.2740483880043030 + <_> + + <_> + + + + <_>0 3 4 6 -1. + <_>0 5 4 2 3. + 0 + -0.0254311393946409 + 0.2038519978523254 + 0.5071732997894287 + <_> + + <_> + + + + <_>8 12 4 2 -1. + <_>8 13 4 1 2. + 0 + 8.2000601105391979e-004 + 0.4587455093860626 + 0.6119868159294128 + <_> + + <_> + + + + <_>8 18 3 1 -1. + <_>9 18 1 1 3. + 0 + 2.9284600168466568e-003 + 0.5071274042129517 + 0.2028204947710037 + <_> + + <_> + + + + <_>11 10 2 2 -1. + <_>12 10 1 1 2. + <_>11 11 1 1 2. + 0 + 4.5256470912136137e-005 + 0.4812104105949402 + 0.5430821776390076 + <_> + + <_> + + + + <_>7 10 2 2 -1. + <_>7 10 1 1 2. + <_>8 11 1 1 2. + 0 + 1.3158309739083052e-003 + 0.4625813961029053 + 0.6779323220252991 + <_> + + <_> + + + + <_>11 11 4 4 -1. + <_>11 13 4 2 2. + 0 + 1.5870389761403203e-003 + 0.5386291742324829 + 0.3431465029716492 + <_> + + <_> + + + + <_>8 12 3 8 -1. + <_>9 12 1 8 3. + 0 + -0.0215396601706743 + 0.0259425006806850 + 0.5003222823143005 + <_> + + <_> + + + + <_>13 0 6 3 -1. + <_>13 1 6 1 3. + 0 + 0.0143344802781940 + 0.5202844738960266 + 0.1590632945299149 + <_> + + <_> + + + + <_>8 8 3 4 -1. + <_>9 8 1 4 3. + 0 + -8.3881383761763573e-003 + 0.7282481193542481 + 0.4648044109344482 + <_> + + <_> + + + + <_>5 7 10 10 -1. + <_>10 7 5 5 2. + <_>5 12 5 5 2. + 0 + 9.1906841844320297e-003 + 0.5562356710433960 + 0.3923191130161285 + <_> + + <_> + + + + <_>3 18 8 2 -1. + <_>3 18 4 1 2. + <_>7 19 4 1 2. + 0 + -5.8453059755265713e-003 + 0.6803392767906189 + 0.4629127979278565 + <_> + + <_> + + + + <_>10 2 6 8 -1. + <_>12 2 2 8 3. + 0 + -0.0547077991068363 + 0.2561671137809753 + 0.5206125974655151 + <_> + + <_> + + + + <_>4 2 6 8 -1. + <_>6 2 2 8 3. + 0 + 9.1142775490880013e-003 + 0.5189620256423950 + 0.3053877055644989 + <_> + + <_> + + + + <_>11 0 3 7 -1. + <_>12 0 1 7 3. + 0 + -0.0155750000849366 + 0.1295074969530106 + 0.5169094800949097 + <_> + + <_> + + + + <_>7 11 2 1 -1. + <_>8 11 1 1 2. + 0 + -1.2050600344082341e-004 + 0.5735098123550415 + 0.4230825006961823 + <_> + + <_> + + + + <_>15 14 1 3 -1. + <_>15 15 1 1 3. + 0 + 1.2273970060050488e-003 + 0.5289878249168396 + 0.4079791903495789 + <_> + + <_> + + + + <_>7 15 2 2 -1. + <_>7 15 1 1 2. + <_>8 16 1 1 2. + 0 + -1.2186600361019373e-003 + 0.6575639843940735 + 0.4574409127235413 + <_> + + <_> + + + + <_>15 14 1 3 -1. + <_>15 15 1 1 3. + 0 + -3.3256649039685726e-003 + 0.3628047108650208 + 0.5195019841194153 + <_> + + <_> + + + + <_>6 0 3 7 -1. + <_>7 0 1 7 3. + 0 + -0.0132883097976446 + 0.1284265965223312 + 0.5043488740921021 + <_> + + <_> + + + + <_>18 1 2 7 -1. + <_>18 1 1 7 2. + 0 + -3.3839771058410406e-003 + 0.6292240023612976 + 0.4757505953311920 + <_> + + <_> + + + + <_>2 0 8 20 -1. + <_>2 10 8 10 2. + 0 + -0.2195422053337097 + 0.1487731933593750 + 0.5065013766288757 + <_> + + <_> + + + + <_>3 0 15 6 -1. + <_>3 2 15 2 3. + 0 + 4.9111708067357540e-003 + 0.4256102144718170 + 0.5665838718414307 + <_> + + <_> + + + + <_>4 3 12 2 -1. + <_>4 4 12 1 2. + 0 + -1.8744950648397207e-004 + 0.4004144072532654 + 0.5586857199668884 + <_> + + <_> + + + + <_>16 0 4 5 -1. + <_>16 0 2 5 2. + 0 + -5.2178641781210899e-003 + 0.6009116172790527 + 0.4812706112861633 + <_> + + <_> + + + + <_>7 0 3 4 -1. + <_>8 0 1 4 3. + 0 + -1.1111519997939467e-003 + 0.3514933884143829 + 0.5287089943885803 + <_> + + <_> + + + + <_>16 0 4 5 -1. + <_>16 0 2 5 2. + 0 + 4.4036400504410267e-003 + 0.4642275869846344 + 0.5924085974693298 + <_> + + <_> + + + + <_>1 7 6 13 -1. + <_>3 7 2 13 3. + 0 + 0.1229949966073036 + 0.5025529265403748 + 0.0691524818539619 + <_> + + <_> + + + + <_>16 0 4 5 -1. + <_>16 0 2 5 2. + 0 + -0.0123135102912784 + 0.5884591937065125 + 0.4934012889862061 + <_> + + <_> + + + + <_>0 0 4 5 -1. + <_>2 0 2 5 2. + 0 + 4.1471039876341820e-003 + 0.4372239112854004 + 0.5893477797508240 + <_> + + <_> + + + + <_>14 12 3 6 -1. + <_>14 14 3 2 3. + 0 + -3.5502649843692780e-003 + 0.4327551126480103 + 0.5396270155906677 + <_> + + <_> + + + + <_>3 12 3 6 -1. + <_>3 14 3 2 3. + 0 + -0.0192242693156004 + 0.1913134008646011 + 0.5068330764770508 + <_> + + <_> + + + + <_>16 1 4 3 -1. + <_>16 2 4 1 3. + 0 + 1.4395059552043676e-003 + 0.5308178067207336 + 0.4243533015251160 + <_> + + <_> + + + + <_>8 7 2 10 -1. + <_>8 7 1 5 2. + <_>9 12 1 5 2. + 0 + -6.7751999013125896e-003 + 0.6365395784378052 + 0.4540086090564728 + <_> + + <_> + + + + <_>11 11 4 4 -1. + <_>11 13 4 2 2. + 0 + 7.0119630545377731e-003 + 0.5189834237098694 + 0.3026199936866760 + <_> + + <_> + + + + <_>0 1 4 3 -1. + <_>0 2 4 1 3. + 0 + 5.4014651104807854e-003 + 0.5105062127113342 + 0.2557682991027832 + <_> + + <_> + + + + <_>13 4 1 3 -1. + <_>13 5 1 1 3. + 0 + 9.0274988906458020e-004 + 0.4696914851665497 + 0.5861827731132507 + <_> + + <_> + + + + <_>7 15 3 5 -1. + <_>8 15 1 5 3. + 0 + 0.0114744501188397 + 0.5053645968437195 + 0.1527177989482880 + <_> + + <_> + + + + <_>9 7 3 5 -1. + <_>10 7 1 5 3. + 0 + -6.7023430019617081e-003 + 0.6508980989456177 + 0.4890604019165039 + <_> + + <_> + + + + <_>8 7 3 5 -1. + <_>9 7 1 5 3. + 0 + -2.0462959073483944e-003 + 0.6241816878318787 + 0.4514600038528442 + <_> + + <_> + + + + <_>10 6 4 14 -1. + <_>10 6 2 14 2. + 0 + -9.9951568990945816e-003 + 0.3432781100273132 + 0.5400953888893127 + <_> + + <_> + + + + <_>0 5 5 6 -1. + <_>0 7 5 2 3. + 0 + -0.0357007086277008 + 0.1878059059381485 + 0.5074077844619751 + <_> + + <_> + + + + <_>9 5 6 4 -1. + <_>9 5 3 4 2. + 0 + 4.5584561303257942e-004 + 0.3805277049541473 + 0.5402569770812988 + <_> + + <_> + + + + <_>0 0 18 10 -1. + <_>6 0 6 10 3. + 0 + -0.0542606003582478 + 0.6843714714050293 + 0.4595097005367279 + <_> + + <_> + + + + <_>10 6 4 14 -1. + <_>10 6 2 14 2. + 0 + 6.0600461438298225e-003 + 0.5502905249595642 + 0.4500527977943420 + <_> + + <_> + + + + <_>6 6 4 14 -1. + <_>8 6 2 14 2. + 0 + -6.4791832119226456e-003 + 0.3368858098983765 + 0.5310757160186768 + <_> + + <_> + + + + <_>13 4 1 3 -1. + <_>13 5 1 1 3. + 0 + -1.4939469983801246e-003 + 0.6487640142440796 + 0.4756175875663757 + <_> + + <_> + + + + <_>5 1 2 3 -1. + <_>6 1 1 3 2. + 0 + 1.4610530342906713e-005 + 0.4034579098224640 + 0.5451064109802246 + <_> + + <_> + + + + <_>18 1 2 18 -1. + <_>19 1 1 9 2. + <_>18 10 1 9 2. + 0 + -7.2321938350796700e-003 + 0.6386873722076416 + 0.4824739992618561 + <_> + + <_> + + + + <_>2 1 4 3 -1. + <_>2 2 4 1 3. + 0 + -4.0645818226039410e-003 + 0.2986421883106232 + 0.5157335996627808 + <_> + + <_> + + + + <_>18 1 2 18 -1. + <_>19 1 1 9 2. + <_>18 10 1 9 2. + 0 + 0.0304630808532238 + 0.5022199749946594 + 0.7159956097602844 + <_> + + <_> + + + + <_>1 14 4 6 -1. + <_>1 14 2 3 2. + <_>3 17 2 3 2. + 0 + -8.0544911324977875e-003 + 0.6492452025413513 + 0.4619275033473969 + <_> + + <_> + + + + <_>10 11 7 6 -1. + <_>10 13 7 2 3. + 0 + 0.0395051389932632 + 0.5150570869445801 + 0.2450613975524902 + <_> + + <_> + + + + <_>0 10 6 10 -1. + <_>0 10 3 5 2. + <_>3 15 3 5 2. + 0 + 8.4530208259820938e-003 + 0.4573669135570526 + 0.6394037008285523 + <_> + + <_> + + + + <_>11 0 3 4 -1. + <_>12 0 1 4 3. + 0 + -1.1688120430335402e-003 + 0.3865512013435364 + 0.5483661293983460 + <_> + + <_> + + + + <_>5 10 5 6 -1. + <_>5 13 5 3 2. + 0 + 2.8070670086890459e-003 + 0.5128579139709473 + 0.2701480090618134 + <_> + + <_> + + + + <_>14 6 1 8 -1. + <_>14 10 1 4 2. + 0 + 4.7365209320560098e-004 + 0.4051581919193268 + 0.5387461185455322 + <_> + + <_> + + + + <_>1 7 18 6 -1. + <_>1 7 9 3 2. + <_>10 10 9 3 2. + 0 + 0.0117410803213716 + 0.5295950174331665 + 0.3719413876533508 + <_> + + <_> + + + + <_>9 7 2 2 -1. + <_>9 7 1 2 2. + 0 + 3.1833238899707794e-003 + 0.4789406955242157 + 0.6895126104354858 + <_> + + <_> + + + + <_>5 9 4 5 -1. + <_>7 9 2 5 2. + 0 + 7.0241501089185476e-004 + 0.5384489297866821 + 0.3918080925941467 + 54.6200714111328130 + 11 + -1 + <_> + + + <_> + + <_> + + + + <_>7 6 6 3 -1. + <_>9 6 2 3 3. + 0 + 0.0170599296689034 + 0.3948527872562408 + 0.7142534852027893 + <_> + + <_> + + + + <_>1 0 18 4 -1. + <_>7 0 6 4 3. + 0 + 0.0218408405780792 + 0.3370316028594971 + 0.6090016961097717 + <_> + + <_> + + + + <_>7 15 2 4 -1. + <_>7 17 2 2 2. + 0 + 2.4520049919374287e-004 + 0.3500576019287109 + 0.5987902283668518 + <_> + + <_> + + + + <_>1 0 19 9 -1. + <_>1 3 19 3 3. + 0 + 8.3272606134414673e-003 + 0.3267528116703033 + 0.5697240829467773 + <_> + + <_> + + + + <_>3 7 3 6 -1. + <_>3 9 3 2 3. + 0 + 5.7148298947140574e-004 + 0.3044599890708923 + 0.5531656742095947 + <_> + + <_> + + + + <_>13 7 4 4 -1. + <_>15 7 2 2 2. + <_>13 9 2 2 2. + 0 + 6.7373987985774875e-004 + 0.3650012016296387 + 0.5672631263732910 + <_> + + <_> + + + + <_>3 7 4 4 -1. + <_>3 7 2 2 2. + <_>5 9 2 2 2. + 0 + 3.4681590477703139e-005 + 0.3313541114330292 + 0.5388727188110352 + <_> + + <_> + + + + <_>9 6 10 8 -1. + <_>9 10 10 4 2. + 0 + -5.8563398197293282e-003 + 0.2697942852973938 + 0.5498778820037842 + <_> + + <_> + + + + <_>3 8 14 12 -1. + <_>3 14 14 6 2. + 0 + 8.5102273151278496e-003 + 0.5269358158111572 + 0.2762879133224487 + <_> + + <_> + + + + <_>6 5 10 12 -1. + <_>11 5 5 6 2. + <_>6 11 5 6 2. + 0 + -0.0698172077536583 + 0.2909603118896484 + 0.5259246826171875 + <_> + + <_> + + + + <_>9 11 2 3 -1. + <_>9 12 2 1 3. + 0 + -8.6113670840859413e-004 + 0.5892577171325684 + 0.4073697924613953 + <_> + + <_> + + + + <_>9 5 6 5 -1. + <_>9 5 3 5 2. + 0 + 9.7149249631911516e-004 + 0.3523564040660858 + 0.5415862202644348 + <_> + + <_> + + + + <_>9 4 2 4 -1. + <_>9 6 2 2 2. + 0 + -1.4727490452060010e-005 + 0.5423017740249634 + 0.3503156006336212 + <_> + + <_> + + + + <_>9 5 6 5 -1. + <_>9 5 3 5 2. + 0 + 0.0484202913939953 + 0.5193945765495300 + 0.3411195874214172 + <_> + + <_> + + + + <_>5 5 6 5 -1. + <_>8 5 3 5 2. + 0 + 1.3257140526548028e-003 + 0.3157769143581390 + 0.5335376262664795 + <_> + + <_> + + + + <_>11 2 6 1 -1. + <_>13 2 2 1 3. + 0 + 1.4922149603080470e-005 + 0.4451299905776978 + 0.5536553859710693 + <_> + + <_> + + + + <_>3 2 6 1 -1. + <_>5 2 2 1 3. + 0 + -2.7173398993909359e-003 + 0.3031741976737976 + 0.5248088836669922 + <_> + + <_> + + + + <_>13 5 2 3 -1. + <_>13 6 2 1 3. + 0 + 2.9219500720500946e-003 + 0.4781453013420105 + 0.6606041789054871 + <_> + + <_> + + + + <_>0 10 1 4 -1. + <_>0 12 1 2 2. + 0 + -1.9804988987743855e-003 + 0.3186308145523071 + 0.5287625193595886 + <_> + + <_> + + + + <_>13 5 2 3 -1. + <_>13 6 2 1 3. + 0 + -4.0012109093368053e-003 + 0.6413596868515015 + 0.4749928116798401 + <_> + + <_> + + + + <_>8 18 3 2 -1. + <_>9 18 1 2 3. + 0 + -4.3491991236805916e-003 + 0.1507498025894165 + 0.5098996758460999 + <_> + + <_> + + + + <_>6 15 9 2 -1. + <_>6 16 9 1 2. + 0 + 1.3490889687091112e-003 + 0.4316158890724182 + 0.5881167054176331 + <_> + + <_> + + + + <_>8 14 4 3 -1. + <_>8 15 4 1 3. + 0 + 0.0185970701277256 + 0.4735553860664368 + 0.9089794158935547 + <_> + + <_> + + + + <_>18 4 2 4 -1. + <_>18 6 2 2 2. + 0 + -1.8562379991635680e-003 + 0.3553189039230347 + 0.5577837228775024 + <_> + + <_> + + + + <_>5 5 2 3 -1. + <_>5 6 2 1 3. + 0 + 2.2940430790185928e-003 + 0.4500094950199127 + 0.6580877900123596 + <_> + + <_> + + + + <_>15 16 3 2 -1. + <_>15 17 3 1 2. + 0 + 2.9982850537635386e-004 + 0.5629242062568665 + 0.3975878953933716 + <_> + + <_> + + + + <_>0 0 3 9 -1. + <_>0 3 3 3 3. + 0 + 3.5455459728837013e-003 + 0.5381547212600708 + 0.3605485856533051 + <_> + + <_> + + + + <_>9 7 3 3 -1. + <_>9 8 3 1 3. + 0 + 9.6104722470045090e-003 + 0.5255997180938721 + 0.1796745955944061 + <_> + + <_> + + + + <_>8 7 3 3 -1. + <_>8 8 3 1 3. + 0 + -6.2783220782876015e-003 + 0.2272856980562210 + 0.5114030241966248 + <_> + + <_> + + + + <_>9 5 2 6 -1. + <_>9 5 1 6 2. + 0 + 3.4598479978740215e-003 + 0.4626308083534241 + 0.6608219146728516 + <_> + + <_> + + + + <_>8 6 3 4 -1. + <_>9 6 1 4 3. + 0 + -1.3112019514665008e-003 + 0.6317539811134338 + 0.4436857998371124 + <_> + + <_> + + + + <_>7 6 8 12 -1. + <_>11 6 4 6 2. + <_>7 12 4 6 2. + 0 + 2.6876179035753012e-003 + 0.5421109795570374 + 0.4054022133350372 + <_> + + <_> + + + + <_>5 6 8 12 -1. + <_>5 6 4 6 2. + <_>9 12 4 6 2. + 0 + 3.9118169806897640e-003 + 0.5358477830886841 + 0.3273454904556274 + <_> + + <_> + + + + <_>12 4 3 3 -1. + <_>12 5 3 1 3. + 0 + -0.0142064504325390 + 0.7793576717376709 + 0.4975781142711639 + <_> + + <_> + + + + <_>2 16 3 2 -1. + <_>2 17 3 1 2. + 0 + 7.1705528534948826e-004 + 0.5297319889068604 + 0.3560903966426849 + <_> + + <_> + + + + <_>12 4 3 3 -1. + <_>12 5 3 1 3. + 0 + 1.6635019565001130e-003 + 0.4678094089031220 + 0.5816481709480286 + <_> + + <_> + + + + <_>2 12 6 6 -1. + <_>2 14 6 2 3. + 0 + 3.3686188980937004e-003 + 0.5276734232902527 + 0.3446420133113861 + <_> + + <_> + + + + <_>7 13 6 3 -1. + <_>7 14 6 1 3. + 0 + 0.0127995302900672 + 0.4834679961204529 + 0.7472159266471863 + <_> + + <_> + + + + <_>6 14 6 3 -1. + <_>6 15 6 1 3. + 0 + 3.3901201095432043e-003 + 0.4511859118938446 + 0.6401721239089966 + <_> + + <_> + + + + <_>14 15 5 3 -1. + <_>14 16 5 1 3. + 0 + 4.7070779837667942e-003 + 0.5335658788681030 + 0.3555220961570740 + <_> + + <_> + + + + <_>5 4 3 3 -1. + <_>5 5 3 1 3. + 0 + 1.4819339849054813e-003 + 0.4250707030296326 + 0.5772724151611328 + <_> + + <_> + + + + <_>14 15 5 3 -1. + <_>14 16 5 1 3. + 0 + -6.9995759986341000e-003 + 0.3003320097923279 + 0.5292900204658508 + <_> + + <_> + + + + <_>5 3 6 2 -1. + <_>7 3 2 2 3. + 0 + 0.0159390103071928 + 0.5067319273948669 + 0.1675581932067871 + <_> + + <_> + + + + <_>8 15 4 3 -1. + <_>8 16 4 1 3. + 0 + 7.6377349905669689e-003 + 0.4795069992542267 + 0.7085601091384888 + <_> + + <_> + + + + <_>1 15 5 3 -1. + <_>1 16 5 1 3. + 0 + 6.7334040068089962e-003 + 0.5133113265037537 + 0.2162470072507858 + <_> + + <_> + + + + <_>8 13 4 6 -1. + <_>10 13 2 3 2. + <_>8 16 2 3 2. + 0 + -0.0128588099032640 + 0.1938841938972473 + 0.5251371860504150 + <_> + + <_> + + + + <_>7 8 3 3 -1. + <_>8 8 1 3 3. + 0 + -6.2270800117403269e-004 + 0.5686538219451904 + 0.4197868108749390 + <_> + + <_> + + + + <_>12 0 5 4 -1. + <_>12 2 5 2 2. + 0 + -5.2651681471616030e-004 + 0.4224168956279755 + 0.5429695844650269 + <_> + + <_> + + + + <_>0 2 20 2 -1. + <_>0 2 10 1 2. + <_>10 3 10 1 2. + 0 + 0.0110750999301672 + 0.5113775134086609 + 0.2514517903327942 + <_> + + <_> + + + + <_>1 0 18 4 -1. + <_>7 0 6 4 3. + 0 + -0.0367282517254353 + 0.7194662094116211 + 0.4849618971347809 + <_> + + <_> + + + + <_>4 3 6 1 -1. + <_>6 3 2 1 3. + 0 + -2.8207109426148236e-004 + 0.3840261995792389 + 0.5394446253776550 + <_> + + <_> + + + + <_>4 18 13 2 -1. + <_>4 19 13 1 2. + 0 + -2.7489690110087395e-003 + 0.5937088727951050 + 0.4569182097911835 + <_> + + <_> + + + + <_>2 10 3 6 -1. + <_>2 12 3 2 3. + 0 + 0.0100475195795298 + 0.5138576030731201 + 0.2802298069000244 + <_> + + <_> + + + + <_>14 12 6 8 -1. + <_>17 12 3 4 2. + <_>14 16 3 4 2. + 0 + -8.1497840583324432e-003 + 0.6090037226676941 + 0.4636121094226837 + <_> + + <_> + + + + <_>4 13 10 6 -1. + <_>4 13 5 3 2. + <_>9 16 5 3 2. + 0 + -6.8833888508379459e-003 + 0.3458611071109772 + 0.5254660248756409 + <_> + + <_> + + + + <_>14 12 1 2 -1. + <_>14 13 1 1 2. + 0 + -1.4039360394235700e-005 + 0.5693104267120361 + 0.4082083106040955 + <_> + + <_> + + + + <_>8 13 4 3 -1. + <_>8 14 4 1 3. + 0 + 1.5498419525101781e-003 + 0.4350537061691284 + 0.5806517004966736 + <_> + + <_> + + + + <_>14 12 2 2 -1. + <_>14 13 2 1 2. + 0 + -6.7841499112546444e-003 + 0.1468873023986816 + 0.5182775259017944 + <_> + + <_> + + + + <_>4 12 2 2 -1. + <_>4 13 2 1 2. + 0 + 2.1705629478674382e-004 + 0.5293524265289307 + 0.3456174135208130 + <_> + + <_> + + + + <_>8 12 9 2 -1. + <_>8 13 9 1 2. + 0 + 3.1198898795992136e-004 + 0.4652450978755951 + 0.5942413806915283 + <_> + + <_> + + + + <_>9 14 2 3 -1. + <_>9 15 2 1 3. + 0 + 5.4507530294358730e-003 + 0.4653508961200714 + 0.7024846076965332 + <_> + + <_> + + + + <_>11 10 3 6 -1. + <_>11 13 3 3 2. + 0 + -2.5818689027801156e-004 + 0.5497295260429382 + 0.3768967092037201 + <_> + + <_> + + + + <_>5 6 9 12 -1. + <_>5 12 9 6 2. + 0 + -0.0174425393342972 + 0.3919087946414948 + 0.5457497835159302 + <_> + + <_> + + + + <_>11 10 3 6 -1. + <_>11 13 3 3 2. + 0 + -0.0453435294330120 + 0.1631357073783875 + 0.5154908895492554 + <_> + + <_> + + + + <_>6 10 3 6 -1. + <_>6 13 3 3 2. + 0 + 1.9190689781680703e-003 + 0.5145897865295410 + 0.2791895866394043 + <_> + + <_> + + + + <_>5 4 11 3 -1. + <_>5 5 11 1 3. + 0 + -6.0177869163453579e-003 + 0.6517636179924011 + 0.4756332933902741 + <_> + + <_> + + + + <_>7 1 5 10 -1. + <_>7 6 5 5 2. + 0 + -4.0720738470554352e-003 + 0.5514652729034424 + 0.4092685878276825 + <_> + + <_> + + + + <_>2 8 18 2 -1. + <_>2 9 18 1 2. + 0 + 3.9855059003457427e-004 + 0.3165240883827210 + 0.5285550951957703 + <_> + + <_> + + + + <_>7 17 5 3 -1. + <_>7 18 5 1 3. + 0 + -6.5418570302426815e-003 + 0.6853377819061279 + 0.4652808904647827 + <_> + + <_> + + + + <_>5 9 12 1 -1. + <_>9 9 4 1 3. + 0 + 3.4845089539885521e-003 + 0.5484588146209717 + 0.4502759873867035 + <_> + + <_> + + + + <_>0 14 6 6 -1. + <_>0 14 3 3 2. + <_>3 17 3 3 2. + 0 + -0.0136967804282904 + 0.6395779848098755 + 0.4572555124759674 + <_> + + <_> + + + + <_>5 9 12 1 -1. + <_>9 9 4 1 3. + 0 + -0.0173471402376890 + 0.2751072943210602 + 0.5181614756584168 + <_> + + <_> + + + + <_>3 9 12 1 -1. + <_>7 9 4 1 3. + 0 + -4.0885428898036480e-003 + 0.3325636088848114 + 0.5194984078407288 + <_> + + <_> + + + + <_>14 10 6 7 -1. + <_>14 10 3 7 2. + 0 + -9.4687901437282562e-003 + 0.5942280888557434 + 0.4851819872856140 + <_> + + <_> + + + + <_>1 0 16 2 -1. + <_>1 1 16 1 2. + 0 + 1.7084840219467878e-003 + 0.4167110919952393 + 0.5519806146621704 + <_> + + <_> + + + + <_>10 9 10 9 -1. + <_>10 12 10 3 3. + 0 + 9.4809094443917274e-003 + 0.5433894991874695 + 0.4208514988422394 + <_> + + <_> + + + + <_>0 1 10 2 -1. + <_>5 1 5 2 2. + 0 + -4.7389650717377663e-003 + 0.6407189965248108 + 0.4560655057430267 + <_> + + <_> + + + + <_>17 3 2 3 -1. + <_>17 4 2 1 3. + 0 + 6.5761050209403038e-003 + 0.5214555263519287 + 0.2258227020502091 + <_> + + <_> + + + + <_>1 3 2 3 -1. + <_>1 4 2 1 3. + 0 + -2.1690549328923225e-003 + 0.3151527941226959 + 0.5156704783439636 + <_> + + <_> + + + + <_>9 7 3 6 -1. + <_>10 7 1 6 3. + 0 + 0.0146601703017950 + 0.4870837032794952 + 0.6689941287040710 + <_> + + <_> + + + + <_>6 5 4 3 -1. + <_>8 5 2 3 2. + 0 + 1.7231999663636088e-004 + 0.3569748997688294 + 0.5251078009605408 + <_> + + <_> + + + + <_>7 5 6 6 -1. + <_>9 5 2 6 3. + 0 + -0.0218037609010935 + 0.8825920820236206 + 0.4966329932212830 + <_> + + <_> + + + + <_>3 4 12 12 -1. + <_>3 4 6 6 2. + <_>9 10 6 6 2. + 0 + -0.0947361066937447 + 0.1446162015199661 + 0.5061113834381104 + <_> + + <_> + + + + <_>9 2 6 15 -1. + <_>11 2 2 15 3. + 0 + 5.5825551971793175e-003 + 0.5396478772163391 + 0.4238066077232361 + <_> + + <_> + + + + <_>2 2 6 17 -1. + <_>4 2 2 17 3. + 0 + 1.9517090404406190e-003 + 0.4170410931110382 + 0.5497786998748779 + <_> + + <_> + + + + <_>14 10 6 7 -1. + <_>14 10 3 7 2. + 0 + 0.0121499001979828 + 0.4698367118835449 + 0.5664274096488953 + <_> + + <_> + + + + <_>0 10 6 7 -1. + <_>3 10 3 7 2. + 0 + -7.5169620104134083e-003 + 0.6267772912979126 + 0.4463135898113251 + <_> + + <_> + + + + <_>9 2 6 15 -1. + <_>11 2 2 15 3. + 0 + -0.0716679096221924 + 0.3097011148929596 + 0.5221003293991089 + <_> + + <_> + + + + <_>5 2 6 15 -1. + <_>7 2 2 15 3. + 0 + -0.0882924199104309 + 0.0811238884925842 + 0.5006365180015564 + <_> + + <_> + + + + <_>17 9 3 6 -1. + <_>17 11 3 2 3. + 0 + 0.0310630798339844 + 0.5155503749847412 + 0.1282255947589874 + <_> + + <_> + + + + <_>6 7 6 6 -1. + <_>8 7 2 6 3. + 0 + 0.0466218404471874 + 0.4699777960777283 + 0.7363960742950440 + <_> + + <_> + + + + <_>1 10 18 6 -1. + <_>10 10 9 3 2. + <_>1 13 9 3 2. + 0 + -0.0121894897893071 + 0.3920530080795288 + 0.5518996715545654 + <_> + + <_> + + + + <_>0 9 10 9 -1. + <_>0 12 10 3 3. + 0 + 0.0130161102861166 + 0.5260658264160156 + 0.3685136139392853 + <_> + + <_> + + + + <_>8 15 4 3 -1. + <_>8 16 4 1 3. + 0 + -3.4952899441123009e-003 + 0.6339294910430908 + 0.4716280996799469 + <_> + + <_> + + + + <_>5 12 3 4 -1. + <_>5 14 3 2 2. + 0 + -4.4015039748046547e-005 + 0.5333027243614197 + 0.3776184916496277 + <_> + + <_> + + + + <_>3 3 16 12 -1. + <_>3 9 16 6 2. + 0 + -0.1096649020910263 + 0.1765342056751251 + 0.5198346972465515 + <_> + + <_> + + + + <_>1 1 12 12 -1. + <_>1 1 6 6 2. + <_>7 7 6 6 2. + 0 + -9.0279558207839727e-004 + 0.5324159860610962 + 0.3838908076286316 + <_> + + <_> + + + + <_>10 4 2 4 -1. + <_>11 4 1 2 2. + <_>10 6 1 2 2. + 0 + 7.1126641705632210e-004 + 0.4647929966449738 + 0.5755224227905273 + <_> + + <_> + + + + <_>0 9 10 2 -1. + <_>0 9 5 1 2. + <_>5 10 5 1 2. + 0 + -3.1250279862433672e-003 + 0.3236708939075470 + 0.5166770815849304 + <_> + + <_> + + + + <_>9 11 3 3 -1. + <_>9 12 3 1 3. + 0 + 2.4144679773598909e-003 + 0.4787439107894898 + 0.6459717750549316 + <_> + + <_> + + + + <_>3 12 9 2 -1. + <_>3 13 9 1 2. + 0 + 4.4391240226104856e-004 + 0.4409308135509491 + 0.6010255813598633 + <_> + + <_> + + + + <_>9 9 2 2 -1. + <_>9 10 2 1 2. + 0 + -2.2611189342569560e-004 + 0.4038113951683044 + 0.5493255853652954 + 50.1697311401367190 + 12 + -1 + <_> + + + <_> + + <_> + + + + <_>3 4 13 6 -1. + <_>3 6 13 2 3. + 0 + -0.0469012893736362 + 0.6600171923637390 + 0.3743801116943359 + <_> + + <_> + + + + <_>9 7 6 4 -1. + <_>12 7 3 2 2. + <_>9 9 3 2 2. + 0 + -1.4568349579349160e-003 + 0.5783991217613220 + 0.3437797129154205 + <_> + + <_> + + + + <_>1 0 6 8 -1. + <_>4 0 3 8 2. + 0 + 5.5598369799554348e-003 + 0.3622266948223114 + 0.5908216238021851 + <_> + + <_> + + + + <_>9 5 2 12 -1. + <_>9 11 2 6 2. + 0 + 7.3170487303286791e-004 + 0.5500419139862061 + 0.2873558104038239 + <_> + + <_> + + + + <_>4 4 3 10 -1. + <_>4 9 3 5 2. + 0 + 1.3318009441718459e-003 + 0.2673169970512390 + 0.5431019067764282 + <_> + + <_> + + + + <_>6 17 8 3 -1. + <_>6 18 8 1 3. + 0 + 2.4347059661522508e-004 + 0.3855027854442596 + 0.5741388797760010 + <_> + + <_> + + + + <_>0 5 10 6 -1. + <_>0 7 10 2 3. + 0 + -3.0512469820678234e-003 + 0.5503209829330444 + 0.3462845087051392 + <_> + + <_> + + + + <_>13 2 3 2 -1. + <_>13 3 3 1 2. + 0 + -6.8657199153676629e-004 + 0.3291221857070923 + 0.5429509282112122 + <_> + + <_> + + + + <_>7 5 4 5 -1. + <_>9 5 2 5 2. + 0 + 1.4668200165033340e-003 + 0.3588382005691528 + 0.5351811051368713 + <_> + + <_> + + + + <_>12 14 3 6 -1. + <_>12 16 3 2 3. + 0 + 3.2021870720200241e-004 + 0.4296841919422150 + 0.5700234174728394 + <_> + + <_> + + + + <_>1 11 8 2 -1. + <_>1 12 8 1 2. + 0 + 7.4122188379988074e-004 + 0.5282164812088013 + 0.3366870880126953 + <_> + + <_> + + + + <_>7 13 6 3 -1. + <_>7 14 6 1 3. + 0 + 3.8330298848450184e-003 + 0.4559567868709564 + 0.6257336139678955 + <_> + + <_> + + + + <_>0 5 3 6 -1. + <_>0 7 3 2 3. + 0 + -0.0154564399272203 + 0.2350116968154907 + 0.5129452943801880 + <_> + + <_> + + + + <_>13 2 3 2 -1. + <_>13 3 3 1 2. + 0 + 2.6796779129654169e-003 + 0.5329415202140808 + 0.4155062139034271 + <_> + + <_> + + + + <_>4 14 4 6 -1. + <_>4 14 2 3 2. + <_>6 17 2 3 2. + 0 + 2.8296569362282753e-003 + 0.4273087978363037 + 0.5804538130760193 + <_> + + <_> + + + + <_>13 2 3 2 -1. + <_>13 3 3 1 2. + 0 + -3.9444249123334885e-003 + 0.2912611961364746 + 0.5202686190605164 + <_> + + <_> + + + + <_>8 2 4 12 -1. + <_>8 6 4 4 3. + 0 + 2.7179559692740440e-003 + 0.5307688117027283 + 0.3585677146911621 + <_> + + <_> + + + + <_>14 0 6 8 -1. + <_>17 0 3 4 2. + <_>14 4 3 4 2. + 0 + 5.9077627956867218e-003 + 0.4703775048255920 + 0.5941585898399353 + <_> + + <_> + + + + <_>7 17 3 2 -1. + <_>8 17 1 2 3. + 0 + -4.2240349575877190e-003 + 0.2141567021608353 + 0.5088796019554138 + <_> + + <_> + + + + <_>8 12 4 2 -1. + <_>8 13 4 1 2. + 0 + 4.0725888684391975e-003 + 0.4766413867473602 + 0.6841061115264893 + <_> + + <_> + + + + <_>6 0 8 12 -1. + <_>6 0 4 6 2. + <_>10 6 4 6 2. + 0 + 0.0101495301350951 + 0.5360798835754395 + 0.3748497068881989 + <_> + + <_> + + + + <_>14 0 2 10 -1. + <_>15 0 1 5 2. + <_>14 5 1 5 2. + 0 + -1.8864999583456665e-004 + 0.5720130205154419 + 0.3853805065155029 + <_> + + <_> + + + + <_>5 3 8 6 -1. + <_>5 3 4 3 2. + <_>9 6 4 3 2. + 0 + -4.8864358104765415e-003 + 0.3693122863769531 + 0.5340958833694458 + <_> + + <_> + + + + <_>14 0 6 10 -1. + <_>17 0 3 5 2. + <_>14 5 3 5 2. + 0 + 0.0261584799736738 + 0.4962374866008759 + 0.6059989929199219 + <_> + + <_> + + + + <_>9 14 1 2 -1. + <_>9 15 1 1 2. + 0 + 4.8560759751126170e-004 + 0.4438945949077606 + 0.6012468934059143 + <_> + + <_> + + + + <_>15 10 4 3 -1. + <_>15 11 4 1 3. + 0 + 0.0112687097862363 + 0.5244250297546387 + 0.1840388029813767 + <_> + + <_> + + + + <_>8 14 2 3 -1. + <_>8 15 2 1 3. + 0 + -2.8114619199186563e-003 + 0.6060283780097961 + 0.4409897029399872 + <_> + + <_> + + + + <_>3 13 14 4 -1. + <_>10 13 7 2 2. + <_>3 15 7 2 2. + 0 + -5.6112729944288731e-003 + 0.3891170918941498 + 0.5589237213134766 + <_> + + <_> + + + + <_>1 10 4 3 -1. + <_>1 11 4 1 3. + 0 + 8.5680093616247177e-003 + 0.5069345831871033 + 0.2062619030475617 + <_> + + <_> + + + + <_>9 11 6 1 -1. + <_>11 11 2 1 3. + 0 + -3.8172779022715986e-004 + 0.5882201790809631 + 0.4192610979080200 + <_> + + <_> + + + + <_>5 11 6 1 -1. + <_>7 11 2 1 3. + 0 + -1.7680290329735726e-004 + 0.5533605813980103 + 0.4003368914127350 + <_> + + <_> + + + + <_>3 5 16 15 -1. + <_>3 10 16 5 3. + 0 + 6.5112537704408169e-003 + 0.3310146927833557 + 0.5444191098213196 + <_> + + <_> + + + + <_>6 12 4 2 -1. + <_>8 12 2 2 2. + 0 + -6.5948683186434209e-005 + 0.5433831810951233 + 0.3944905996322632 + <_> + + <_> + + + + <_>4 4 12 10 -1. + <_>10 4 6 5 2. + <_>4 9 6 5 2. + 0 + 6.9939051754772663e-003 + 0.5600358247756958 + 0.4192714095115662 + <_> + + <_> + + + + <_>8 6 3 4 -1. + <_>9 6 1 4 3. + 0 + -4.6744439750909805e-003 + 0.6685466766357422 + 0.4604960978031158 + <_> + + <_> + + + + <_>8 12 4 8 -1. + <_>10 12 2 4 2. + <_>8 16 2 4 2. + 0 + 0.0115898502990603 + 0.5357121229171753 + 0.2926830053329468 + <_> + + <_> + + + + <_>8 14 4 3 -1. + <_>8 15 4 1 3. + 0 + 0.0130078401416540 + 0.4679817855358124 + 0.7307463288307190 + <_> + + <_> + + + + <_>12 2 3 2 -1. + <_>13 2 1 2 3. + 0 + -1.1008579749614000e-003 + 0.3937501013278961 + 0.5415065288543701 + <_> + + <_> + + + + <_>8 15 3 2 -1. + <_>8 16 3 1 2. + 0 + 6.0472649056464434e-004 + 0.4242376089096069 + 0.5604041218757629 + <_> + + <_> + + + + <_>6 0 9 14 -1. + <_>9 0 3 14 3. + 0 + -0.0144948400557041 + 0.3631210029125214 + 0.5293182730674744 + <_> + + <_> + + + + <_>9 6 2 3 -1. + <_>10 6 1 3 2. + 0 + -5.3056948818266392e-003 + 0.6860452294349670 + 0.4621821045875549 + <_> + + <_> + + + + <_>10 8 2 3 -1. + <_>10 9 2 1 3. + 0 + -8.1829127157106996e-004 + 0.3944096863269806 + 0.5420439243316650 + <_> + + <_> + + + + <_>0 9 4 6 -1. + <_>0 11 4 2 3. + 0 + -0.0190775208175182 + 0.1962621957063675 + 0.5037891864776611 + <_> + + <_> + + + + <_>6 0 8 2 -1. + <_>6 1 8 1 2. + 0 + 3.5549470339901745e-004 + 0.4086259007453919 + 0.5613973140716553 + <_> + + <_> + + + + <_>6 14 7 3 -1. + <_>6 15 7 1 3. + 0 + 1.9679730758070946e-003 + 0.4489121139049530 + 0.5926123261451721 + <_> + + <_> + + + + <_>8 10 8 9 -1. + <_>8 13 8 3 3. + 0 + 6.9189141504466534e-003 + 0.5335925817489624 + 0.3728385865688324 + <_> + + <_> + + + + <_>5 2 3 2 -1. + <_>6 2 1 2 3. + 0 + 2.9872779268771410e-003 + 0.5111321210861206 + 0.2975643873214722 + <_> + + <_> + + + + <_>14 1 6 8 -1. + <_>17 1 3 4 2. + <_>14 5 3 4 2. + 0 + -6.2264618463814259e-003 + 0.5541489720344544 + 0.4824537932872772 + <_> + + <_> + + + + <_>0 1 6 8 -1. + <_>0 1 3 4 2. + <_>3 5 3 4 2. + 0 + 0.0133533002808690 + 0.4586423933506012 + 0.6414797902107239 + <_> + + <_> + + + + <_>1 2 18 6 -1. + <_>10 2 9 3 2. + <_>1 5 9 3 2. + 0 + 0.0335052385926247 + 0.5392425060272217 + 0.3429994881153107 + <_> + + <_> + + + + <_>9 3 2 1 -1. + <_>10 3 1 1 2. + 0 + -2.5294460356235504e-003 + 0.1703713983297348 + 0.5013315081596375 + <_> + + <_> + + + + <_>13 2 4 6 -1. + <_>15 2 2 3 2. + <_>13 5 2 3 2. + 0 + -1.2801629491150379e-003 + 0.5305461883544922 + 0.4697405099868774 + <_> + + <_> + + + + <_>5 4 3 3 -1. + <_>5 5 3 1 3. + 0 + 7.0687388069927692e-003 + 0.4615545868873596 + 0.6436504721641541 + <_> + + <_> + + + + <_>13 5 1 3 -1. + <_>13 6 1 1 3. + 0 + 9.6880499040707946e-004 + 0.4833599030971527 + 0.6043894290924072 + <_> + + <_> + + + + <_>2 16 5 3 -1. + <_>2 17 5 1 3. + 0 + 3.9647659286856651e-003 + 0.5187637209892273 + 0.3231816887855530 + <_> + + <_> + + + + <_>13 2 4 6 -1. + <_>15 2 2 3 2. + <_>13 5 2 3 2. + 0 + -0.0220577307045460 + 0.4079256951808929 + 0.5200980901718140 + <_> + + <_> + + + + <_>3 2 4 6 -1. + <_>3 2 2 3 2. + <_>5 5 2 3 2. + 0 + -6.6906312713399529e-004 + 0.5331609249114990 + 0.3815600872039795 + <_> + + <_> + + + + <_>13 5 1 2 -1. + <_>13 6 1 1 2. + 0 + -6.7009328631684184e-004 + 0.5655422210693359 + 0.4688901901245117 + <_> + + <_> + + + + <_>5 5 2 2 -1. + <_>5 6 2 1 2. + 0 + 7.4284552829340100e-004 + 0.4534381031990051 + 0.6287400126457214 + <_> + + <_> + + + + <_>13 9 2 2 -1. + <_>13 9 1 2 2. + 0 + 2.2227810695767403e-003 + 0.5350633263587952 + 0.3303655982017517 + <_> + + <_> + + + + <_>5 9 2 2 -1. + <_>6 9 1 2 2. + 0 + -5.4130521602928638e-003 + 0.1113687008619309 + 0.5005434751510620 + <_> + + <_> + + + + <_>13 17 3 2 -1. + <_>13 18 3 1 2. + 0 + -1.4520040167553816e-005 + 0.5628737807273865 + 0.4325133860111237 + <_> + + <_> + + + + <_>6 16 4 4 -1. + <_>6 16 2 2 2. + <_>8 18 2 2 2. + 0 + 2.3369169502984732e-004 + 0.4165835082530975 + 0.5447791218757629 + <_> + + <_> + + + + <_>9 16 2 3 -1. + <_>9 17 2 1 3. + 0 + 4.2894547805190086e-003 + 0.4860391020774841 + 0.6778649091720581 + <_> + + <_> + + + + <_>0 13 9 6 -1. + <_>0 15 9 2 3. + 0 + 5.9103150852024555e-003 + 0.5262305140495300 + 0.3612113893032074 + <_> + + <_> + + + + <_>9 14 2 6 -1. + <_>9 17 2 3 2. + 0 + 0.0129005396738648 + 0.5319377183914185 + 0.3250288069248200 + <_> + + <_> + + + + <_>9 15 2 3 -1. + <_>9 16 2 1 3. + 0 + 4.6982979401946068e-003 + 0.4618245065212250 + 0.6665925979614258 + <_> + + <_> + + + + <_>1 10 18 6 -1. + <_>1 12 18 2 3. + 0 + 0.0104398597031832 + 0.5505670905113220 + 0.3883604109287262 + <_> + + <_> + + + + <_>8 11 4 2 -1. + <_>8 12 4 1 2. + 0 + 3.0443191062659025e-003 + 0.4697853028774262 + 0.7301844954490662 + <_> + + <_> + + + + <_>7 9 6 2 -1. + <_>7 10 6 1 2. + 0 + -6.1593751888722181e-004 + 0.3830839097499847 + 0.5464984178543091 + <_> + + <_> + + + + <_>8 8 2 3 -1. + <_>8 9 2 1 3. + 0 + -3.4247159492224455e-003 + 0.2566300034523010 + 0.5089530944824219 + <_> + + <_> + + + + <_>17 5 3 4 -1. + <_>18 5 1 4 3. + 0 + -9.3538565561175346e-003 + 0.6469966173171997 + 0.4940795898437500 + <_> + + <_> + + + + <_>1 19 18 1 -1. + <_>7 19 6 1 3. + 0 + 0.0523389987647533 + 0.4745982885360718 + 0.7878770828247070 + <_> + + <_> + + + + <_>9 0 3 2 -1. + <_>10 0 1 2 3. + 0 + 3.5765620414167643e-003 + 0.5306664705276489 + 0.2748498022556305 + <_> + + <_> + + + + <_>1 8 1 6 -1. + <_>1 10 1 2 3. + 0 + 7.1555317845195532e-004 + 0.5413125753402710 + 0.4041908979415894 + <_> + + <_> + + + + <_>12 17 8 3 -1. + <_>12 17 4 3 2. + 0 + -0.0105166798457503 + 0.6158512234687805 + 0.4815283119678497 + <_> + + <_> + + + + <_>0 5 3 4 -1. + <_>1 5 1 4 3. + 0 + 7.7347927726805210e-003 + 0.4695805907249451 + 0.7028980851173401 + <_> + + <_> + + + + <_>9 7 2 3 -1. + <_>9 8 2 1 3. + 0 + -4.3226778507232666e-003 + 0.2849566042423248 + 0.5304684042930603 + <_> + + <_> + + + + <_>7 11 2 2 -1. + <_>7 11 1 1 2. + <_>8 12 1 1 2. + 0 + -2.5534399319440126e-003 + 0.7056984901428223 + 0.4688892066478729 + <_> + + <_> + + + + <_>11 3 2 5 -1. + <_>11 3 1 5 2. + 0 + 1.0268510231981054e-004 + 0.3902932107448578 + 0.5573464035987854 + <_> + + <_> + + + + <_>7 3 2 5 -1. + <_>8 3 1 5 2. + 0 + 7.1395188570022583e-006 + 0.3684231936931610 + 0.5263987779617310 + <_> + + <_> + + + + <_>15 13 2 3 -1. + <_>15 14 2 1 3. + 0 + -1.6711989883333445e-003 + 0.3849175870418549 + 0.5387271046638489 + <_> + + <_> + + + + <_>5 6 2 3 -1. + <_>5 7 2 1 3. + 0 + 4.9260449595749378e-003 + 0.4729771912097931 + 0.7447251081466675 + <_> + + <_> + + + + <_>4 19 15 1 -1. + <_>9 19 5 1 3. + 0 + 4.3908702209591866e-003 + 0.4809181094169617 + 0.5591921806335449 + <_> + + <_> + + + + <_>1 19 15 1 -1. + <_>6 19 5 1 3. + 0 + -0.0177936293184757 + 0.6903678178787231 + 0.4676927030086517 + <_> + + <_> + + + + <_>15 13 2 3 -1. + <_>15 14 2 1 3. + 0 + 2.0469669252634048e-003 + 0.5370690226554871 + 0.3308162093162537 + <_> + + <_> + + + + <_>5 0 4 15 -1. + <_>7 0 2 15 2. + 0 + 0.0298914890736341 + 0.5139865279197693 + 0.3309059143066406 + <_> + + <_> + + + + <_>9 6 2 5 -1. + <_>9 6 1 5 2. + 0 + 1.5494900289922953e-003 + 0.4660237133502960 + 0.6078342795372009 + <_> + + <_> + + + + <_>9 5 2 7 -1. + <_>10 5 1 7 2. + 0 + 1.4956969534978271e-003 + 0.4404835999011993 + 0.5863919854164124 + <_> + + <_> + + + + <_>16 11 3 3 -1. + <_>16 12 3 1 3. + 0 + 9.5885928021743894e-004 + 0.5435971021652222 + 0.4208523035049439 + <_> + + <_> + + + + <_>1 11 3 3 -1. + <_>1 12 3 1 3. + 0 + 4.9643701640889049e-004 + 0.5370578169822693 + 0.4000622034072876 + <_> + + <_> + + + + <_>6 6 8 3 -1. + <_>6 7 8 1 3. + 0 + -2.7280810754746199e-003 + 0.5659412741661072 + 0.4259642958641052 + <_> + + <_> + + + + <_>0 15 6 2 -1. + <_>0 16 6 1 2. + 0 + 2.3026480339467525e-003 + 0.5161657929420471 + 0.3350869119167328 + <_> + + <_> + + + + <_>1 0 18 6 -1. + <_>7 0 6 6 3. + 0 + 0.2515163123607636 + 0.4869661927223206 + 0.7147309780120850 + <_> + + <_> + + + + <_>6 0 3 4 -1. + <_>7 0 1 4 3. + 0 + -4.6328022144734859e-003 + 0.2727448940277100 + 0.5083789825439453 + <_> + + <_> + + + + <_>14 10 4 10 -1. + <_>16 10 2 5 2. + <_>14 15 2 5 2. + 0 + -0.0404344908893108 + 0.6851438879966736 + 0.5021767020225525 + <_> + + <_> + + + + <_>3 2 3 2 -1. + <_>4 2 1 2 3. + 0 + 1.4972220014897175e-005 + 0.4284465014934540 + 0.5522555112838745 + <_> + + <_> + + + + <_>11 2 2 2 -1. + <_>11 3 2 1 2. + 0 + -2.4050309730228037e-004 + 0.4226118922233582 + 0.5390074849128723 + <_> + + <_> + + + + <_>2 10 4 10 -1. + <_>2 10 2 5 2. + <_>4 15 2 5 2. + 0 + 0.0236578397452831 + 0.4744631946086884 + 0.7504366040229797 + <_> + + <_> + + + + <_>0 13 20 6 -1. + <_>10 13 10 3 2. + <_>0 16 10 3 2. + 0 + -8.1449104472994804e-003 + 0.4245058894157410 + 0.5538362860679627 + <_> + + <_> + + + + <_>0 5 2 15 -1. + <_>1 5 1 15 2. + 0 + -3.6992130335420370e-003 + 0.5952357053756714 + 0.4529713094234467 + <_> + + <_> + + + + <_>1 7 18 4 -1. + <_>10 7 9 2 2. + <_>1 9 9 2 2. + 0 + -6.7718601785600185e-003 + 0.4137794077396393 + 0.5473399758338928 + <_> + + <_> + + + + <_>0 0 2 17 -1. + <_>1 0 1 17 2. + 0 + 4.2669530957937241e-003 + 0.4484114944934845 + 0.5797994136810303 + <_> + + <_> + + + + <_>2 6 16 6 -1. + <_>10 6 8 3 2. + <_>2 9 8 3 2. + 0 + 1.7791989957913756e-003 + 0.5624858736991882 + 0.4432444870471954 + <_> + + <_> + + + + <_>8 14 1 3 -1. + <_>8 15 1 1 3. + 0 + 1.6774770338088274e-003 + 0.4637751877307892 + 0.6364241838455200 + <_> + + <_> + + + + <_>8 15 4 2 -1. + <_>8 16 4 1 2. + 0 + 1.1732629500329494e-003 + 0.4544503092765808 + 0.5914415717124939 + <_> + + <_> + + + + <_>5 2 8 2 -1. + <_>5 2 4 1 2. + <_>9 3 4 1 2. + 0 + 8.6998171173036098e-004 + 0.5334752798080444 + 0.3885917961597443 + <_> + + <_> + + + + <_>6 11 8 6 -1. + <_>6 14 8 3 2. + 0 + 7.6378340600058436e-004 + 0.5398585200309753 + 0.3744941949844360 + <_> + + <_> + + + + <_>9 13 2 2 -1. + <_>9 14 2 1 2. + 0 + 1.5684569370932877e-004 + 0.4317873120307922 + 0.5614616274833679 + <_> + + <_> + + + + <_>18 4 2 6 -1. + <_>18 6 2 2 3. + 0 + -0.0215113703161478 + 0.1785925030708313 + 0.5185542702674866 + <_> + + <_> + + + + <_>9 12 2 2 -1. + <_>9 13 2 1 2. + 0 + 1.3081369979772717e-004 + 0.4342499077320099 + 0.5682849884033203 + <_> + + <_> + + + + <_>18 4 2 6 -1. + <_>18 6 2 2 3. + 0 + 0.0219920407980680 + 0.5161716938018799 + 0.2379394024610519 + <_> + + <_> + + + + <_>9 13 1 3 -1. + <_>9 14 1 1 3. + 0 + -8.0136500764638186e-004 + 0.5986763238906860 + 0.4466426968574524 + <_> + + <_> + + + + <_>18 4 2 6 -1. + <_>18 6 2 2 3. + 0 + -8.2736099138855934e-003 + 0.4108217954635620 + 0.5251057147979736 + <_> + + <_> + + + + <_>0 4 2 6 -1. + <_>0 6 2 2 3. + 0 + 3.6831789184361696e-003 + 0.5173814296722412 + 0.3397518098354340 + <_> + + <_> + + + + <_>9 12 3 3 -1. + <_>9 13 3 1 3. + 0 + -7.9525681212544441e-003 + 0.6888983249664307 + 0.4845924079418182 + <_> + + <_> + + + + <_>3 13 2 3 -1. + <_>3 14 2 1 3. + 0 + 1.5382299898192286e-003 + 0.5178567171096802 + 0.3454113900661469 + <_> + + <_> + + + + <_>13 13 4 3 -1. + <_>13 14 4 1 3. + 0 + -0.0140435304492712 + 0.1678421050310135 + 0.5188667774200440 + <_> + + <_> + + + + <_>5 4 3 3 -1. + <_>5 5 3 1 3. + 0 + 1.4315890148282051e-003 + 0.4368256926536560 + 0.5655773878097534 + <_> + + <_> + + + + <_>5 2 10 6 -1. + <_>5 4 10 2 3. + 0 + -0.0340142287313938 + 0.7802296280860901 + 0.4959217011928558 + <_> + + <_> + + + + <_>3 13 4 3 -1. + <_>3 14 4 1 3. + 0 + -0.0120272999629378 + 0.1585101038217545 + 0.5032231807708740 + <_> + + <_> + + + + <_>3 7 15 5 -1. + <_>8 7 5 5 3. + 0 + 0.1331661939620972 + 0.5163304805755615 + 0.2755128145217896 + <_> + + <_> + + + + <_>3 7 12 2 -1. + <_>7 7 4 2 3. + 0 + -1.5221949433907866e-003 + 0.3728317916393280 + 0.5214552283287048 + <_> + + <_> + + + + <_>10 3 3 9 -1. + <_>11 3 1 9 3. + 0 + -9.3929271679371595e-004 + 0.5838379263877869 + 0.4511165022850037 + <_> + + <_> + + + + <_>8 6 4 6 -1. + <_>10 6 2 6 2. + 0 + 0.0277197398245335 + 0.4728286862373352 + 0.7331544756889343 + <_> + + <_> + + + + <_>9 7 4 3 -1. + <_>9 8 4 1 3. + 0 + 3.1030150130391121e-003 + 0.5302202105522156 + 0.4101563096046448 + <_> + + <_> + + + + <_>0 9 4 9 -1. + <_>2 9 2 9 2. + 0 + 0.0778612196445465 + 0.4998334050178528 + 0.1272961944341660 + <_> + + <_> + + + + <_>9 13 3 5 -1. + <_>10 13 1 5 3. + 0 + -0.0158549398183823 + 0.0508333593606949 + 0.5165656208992004 + <_> + + <_> + + + + <_>7 7 6 3 -1. + <_>9 7 2 3 3. + 0 + -4.9725300632417202e-003 + 0.6798133850097656 + 0.4684231877326965 + <_> + + <_> + + + + <_>9 7 3 5 -1. + <_>10 7 1 5 3. + 0 + -9.7676506265997887e-004 + 0.6010771989822388 + 0.4788931906223297 + <_> + + <_> + + + + <_>5 7 8 2 -1. + <_>9 7 4 2 2. + 0 + -2.4647710379213095e-003 + 0.3393397927284241 + 0.5220503807067871 + <_> + + <_> + + + + <_>5 9 12 2 -1. + <_>9 9 4 2 3. + 0 + -6.7937700077891350e-003 + 0.4365136921405792 + 0.5239663124084473 + <_> + + <_> + + + + <_>5 6 10 3 -1. + <_>10 6 5 3 2. + 0 + 0.0326080210506916 + 0.5052723884582520 + 0.2425214946269989 + <_> + + <_> + + + + <_>10 12 3 1 -1. + <_>11 12 1 1 3. + 0 + -5.8514421107247472e-004 + 0.5733973979949951 + 0.4758574068546295 + <_> + + <_> + + + + <_>0 1 11 15 -1. + <_>0 6 11 5 3. + 0 + -0.0296326000243425 + 0.3892289102077484 + 0.5263597965240479 + 66.6691207885742190 + 13 + -1 + <_> + + + <_> + + <_> + + + + <_>1 0 18 6 -1. + <_>7 0 6 6 3. + 0 + 0.0465508513152599 + 0.3276950120925903 + 0.6240522861480713 + <_> + + <_> + + + + <_>7 7 6 1 -1. + <_>9 7 2 1 3. + 0 + 7.9537127166986465e-003 + 0.4256485104560852 + 0.6942939162254334 + <_> + + <_> + + + + <_>5 16 6 4 -1. + <_>5 16 3 2 2. + <_>8 18 3 2 2. + 0 + 6.8221561377868056e-004 + 0.3711487054824829 + 0.5900732874870300 + <_> + + <_> + + + + <_>6 5 9 8 -1. + <_>6 9 9 4 2. + 0 + -1.9348249770700932e-004 + 0.2041133940219879 + 0.5300545096397400 + <_> + + <_> + + + + <_>5 10 2 6 -1. + <_>5 13 2 3 2. + 0 + -2.6710508973337710e-004 + 0.5416126251220703 + 0.3103179037570953 + <_> + + <_> + + + + <_>7 6 8 10 -1. + <_>11 6 4 5 2. + <_>7 11 4 5 2. + 0 + 2.7818060480058193e-003 + 0.5277832746505737 + 0.3467069864273071 + <_> + + <_> + + + + <_>5 6 8 10 -1. + <_>5 6 4 5 2. + <_>9 11 4 5 2. + 0 + -4.6779078547842801e-004 + 0.5308231115341187 + 0.3294492065906525 + <_> + + <_> + + + + <_>9 5 2 2 -1. + <_>9 6 2 1 2. + 0 + -3.0335160772665404e-005 + 0.5773872733116150 + 0.3852097094058991 + <_> + + <_> + + + + <_>5 12 8 2 -1. + <_>5 13 8 1 2. + 0 + 7.8038009814918041e-004 + 0.4317438900470734 + 0.6150057911872864 + <_> + + <_> + + + + <_>10 2 8 2 -1. + <_>10 3 8 1 2. + 0 + -4.2553851380944252e-003 + 0.2933903932571411 + 0.5324292778968811 + <_> + + <_> + + + + <_>4 0 2 10 -1. + <_>4 0 1 5 2. + <_>5 5 1 5 2. + 0 + -2.4735610350035131e-004 + 0.5468844771385193 + 0.3843030035495758 + <_> + + <_> + + + + <_>9 10 2 2 -1. + <_>9 11 2 1 2. + 0 + -1.4724259381182492e-004 + 0.4281542897224426 + 0.5755587220191956 + <_> + + <_> + + + + <_>2 8 15 3 -1. + <_>2 9 15 1 3. + 0 + 1.1864770203828812e-003 + 0.3747301101684570 + 0.5471466183662415 + <_> + + <_> + + + + <_>8 13 4 3 -1. + <_>8 14 4 1 3. + 0 + 2.3936580400913954e-003 + 0.4537783861160278 + 0.6111528873443604 + <_> + + <_> + + + + <_>7 2 3 2 -1. + <_>8 2 1 2 3. + 0 + -1.5390539774671197e-003 + 0.2971341907978058 + 0.5189538002014160 + <_> + + <_> + + + + <_>7 13 6 3 -1. + <_>7 14 6 1 3. + 0 + -7.1968790143728256e-003 + 0.6699066758155823 + 0.4726476967334747 + <_> + + <_> + + + + <_>9 9 2 2 -1. + <_>9 10 2 1 2. + 0 + -4.1499789222143590e-004 + 0.3384954035282135 + 0.5260317921638489 + <_> + + <_> + + + + <_>17 2 3 6 -1. + <_>17 4 3 2 3. + 0 + 4.4359830208122730e-003 + 0.5399122238159180 + 0.3920140862464905 + <_> + + <_> + + + + <_>1 5 3 4 -1. + <_>2 5 1 4 3. + 0 + 2.6606200262904167e-003 + 0.4482578039169312 + 0.6119617819786072 + <_> + + <_> + + + + <_>14 8 4 6 -1. + <_>14 10 4 2 3. + 0 + -1.5287200221791863e-003 + 0.3711237907409668 + 0.5340266227722168 + <_> + + <_> + + + + <_>1 4 3 8 -1. + <_>2 4 1 8 3. + 0 + -4.7397250309586525e-003 + 0.6031088232994080 + 0.4455145001411438 + <_> + + <_> + + + + <_>8 13 4 6 -1. + <_>8 16 4 3 2. + 0 + -0.0148291299119592 + 0.2838754057884216 + 0.5341861844062805 + <_> + + <_> + + + + <_>3 14 2 2 -1. + <_>3 15 2 1 2. + 0 + 9.2275557108223438e-004 + 0.5209547281265259 + 0.3361653983592987 + <_> + + <_> + + + + <_>14 8 4 6 -1. + <_>14 10 4 2 3. + 0 + 0.0835298076272011 + 0.5119969844818115 + 0.0811644494533539 + <_> + + <_> + + + + <_>2 8 4 6 -1. + <_>2 10 4 2 3. + 0 + -7.5633148662745953e-004 + 0.3317120075225830 + 0.5189831256866455 + <_> + + <_> + + + + <_>10 14 1 6 -1. + <_>10 17 1 3 2. + 0 + 9.8403859883546829e-003 + 0.5247598290443420 + 0.2334959059953690 + <_> + + <_> + + + + <_>7 5 3 6 -1. + <_>8 5 1 6 3. + 0 + -1.5953830443322659e-003 + 0.5750094056129456 + 0.4295622110366821 + <_> + + <_> + + + + <_>11 2 2 6 -1. + <_>12 2 1 3 2. + <_>11 5 1 3 2. + 0 + 3.4766020689858124e-005 + 0.4342445135116577 + 0.5564029216766357 + <_> + + <_> + + + + <_>6 6 6 5 -1. + <_>8 6 2 5 3. + 0 + 0.0298629105091095 + 0.4579147100448608 + 0.6579188108444214 + <_> + + <_> + + + + <_>17 1 3 6 -1. + <_>17 3 3 2 3. + 0 + 0.0113255903124809 + 0.5274311900138855 + 0.3673888146877289 + <_> + + <_> + + + + <_>8 7 3 5 -1. + <_>9 7 1 5 3. + 0 + -8.7828645482659340e-003 + 0.7100368738174439 + 0.4642167091369629 + <_> + + <_> + + + + <_>9 18 3 2 -1. + <_>10 18 1 2 3. + 0 + 4.3639959767460823e-003 + 0.5279216170310974 + 0.2705877125263214 + <_> + + <_> + + + + <_>8 18 3 2 -1. + <_>9 18 1 2 3. + 0 + 4.1804728098213673e-003 + 0.5072525143623352 + 0.2449083030223846 + <_> + + <_> + + + + <_>12 3 5 2 -1. + <_>12 4 5 1 2. + 0 + -4.5668511302210391e-004 + 0.4283105134963989 + 0.5548691153526306 + <_> + + <_> + + + + <_>7 1 5 12 -1. + <_>7 7 5 6 2. + 0 + -3.7140368949621916e-003 + 0.5519387722015381 + 0.4103653132915497 + <_> + + <_> + + + + <_>1 0 18 4 -1. + <_>7 0 6 4 3. + 0 + -0.0253042895346880 + 0.6867002248764038 + 0.4869889020919800 + <_> + + <_> + + + + <_>4 2 2 2 -1. + <_>4 3 2 1 2. + 0 + -3.4454080741852522e-004 + 0.3728874027729034 + 0.5287693142890930 + <_> + + <_> + + + + <_>11 14 4 2 -1. + <_>13 14 2 1 2. + <_>11 15 2 1 2. + 0 + -8.3935231668874621e-004 + 0.6060152053833008 + 0.4616062045097351 + <_> + + <_> + + + + <_>0 2 3 6 -1. + <_>0 4 3 2 3. + 0 + 0.0172800496220589 + 0.5049635767936707 + 0.1819823980331421 + <_> + + <_> + + + + <_>9 7 2 3 -1. + <_>9 8 2 1 3. + 0 + -6.3595077954232693e-003 + 0.1631239950656891 + 0.5232778787612915 + <_> + + <_> + + + + <_>5 5 1 3 -1. + <_>5 6 1 1 3. + 0 + 1.0298109846189618e-003 + 0.4463278055191040 + 0.6176549196243286 + <_> + + <_> + + + + <_>10 10 6 1 -1. + <_>10 10 3 1 2. + 0 + 1.0117109632119536e-003 + 0.5473384857177734 + 0.4300698935985565 + <_> + + <_> + + + + <_>4 10 6 1 -1. + <_>7 10 3 1 2. + 0 + -0.0103088002651930 + 0.1166985034942627 + 0.5000867247581482 + <_> + + <_> + + + + <_>9 17 3 3 -1. + <_>9 18 3 1 3. + 0 + 5.4682018235325813e-003 + 0.4769287109375000 + 0.6719213724136353 + <_> + + <_> + + + + <_>4 14 1 3 -1. + <_>4 15 1 1 3. + 0 + -9.1696460731327534e-004 + 0.3471089899539948 + 0.5178164839744568 + <_> + + <_> + + + + <_>12 5 3 3 -1. + <_>12 6 3 1 3. + 0 + 2.3922820109874010e-003 + 0.4785236120223999 + 0.6216310858726502 + <_> + + <_> + + + + <_>4 5 12 3 -1. + <_>4 6 12 1 3. + 0 + -7.5573818758130074e-003 + 0.5814796090126038 + 0.4410085082054138 + <_> + + <_> + + + + <_>9 8 2 3 -1. + <_>9 9 2 1 3. + 0 + -7.7024032361805439e-004 + 0.3878000080585480 + 0.5465722084045410 + <_> + + <_> + + + + <_>4 9 3 3 -1. + <_>5 9 1 3 3. + 0 + -8.7125990539789200e-003 + 0.1660051047801971 + 0.4995836019515991 + <_> + + <_> + + + + <_>6 0 9 17 -1. + <_>9 0 3 17 3. + 0 + -0.0103063201531768 + 0.4093391001224518 + 0.5274233818054199 + <_> + + <_> + + + + <_>9 12 1 3 -1. + <_>9 13 1 1 3. + 0 + -2.0940979011356831e-003 + 0.6206194758415222 + 0.4572280049324036 + <_> + + <_> + + + + <_>9 5 2 15 -1. + <_>9 10 2 5 3. + 0 + 6.8099051713943481e-003 + 0.5567759275436401 + 0.4155600070953369 + <_> + + <_> + + + + <_>8 14 2 3 -1. + <_>8 15 2 1 3. + 0 + -1.0746059706434608e-003 + 0.5638927817344666 + 0.4353024959564209 + <_> + + <_> + + + + <_>10 14 1 3 -1. + <_>10 15 1 1 3. + 0 + 2.1550289820879698e-003 + 0.4826265871524811 + 0.6749758124351502 + <_> + + <_> + + + + <_>7 1 6 5 -1. + <_>9 1 2 5 3. + 0 + 0.0317423194646835 + 0.5048379898071289 + 0.1883248984813690 + <_> + + <_> + + + + <_>0 0 20 2 -1. + <_>0 0 10 2 2. + 0 + -0.0783827230334282 + 0.2369548976421356 + 0.5260158181190491 + <_> + + <_> + + + + <_>2 13 5 3 -1. + <_>2 14 5 1 3. + 0 + 5.7415119372308254e-003 + 0.5048828721046448 + 0.2776469886302948 + <_> + + <_> + + + + <_>9 11 2 3 -1. + <_>9 12 2 1 3. + 0 + -2.9014600440859795e-003 + 0.6238604784011841 + 0.4693317115306854 + <_> + + <_> + + + + <_>2 5 9 15 -1. + <_>2 10 9 5 3. + 0 + -2.6427931152284145e-003 + 0.3314141929149628 + 0.5169777274131775 + <_> + + <_> + + + + <_>5 0 12 10 -1. + <_>11 0 6 5 2. + <_>5 5 6 5 2. + 0 + -0.1094966009259224 + 0.2380045056343079 + 0.5183441042900085 + <_> + + <_> + + + + <_>5 1 2 3 -1. + <_>6 1 1 3 2. + 0 + 7.4075913289561868e-005 + 0.4069635868072510 + 0.5362150073051453 + <_> + + <_> + + + + <_>10 7 6 1 -1. + <_>12 7 2 1 3. + 0 + -5.0593802006915212e-004 + 0.5506706237792969 + 0.4374594092369080 + <_> + + <_> + + + + <_>3 1 2 10 -1. + <_>3 1 1 5 2. + <_>4 6 1 5 2. + 0 + -8.2131777890026569e-004 + 0.5525709986686707 + 0.4209375977516174 + <_> + + <_> + + + + <_>13 7 2 1 -1. + <_>13 7 1 1 2. + 0 + -6.0276539443293586e-005 + 0.5455474853515625 + 0.4748266041278839 + <_> + + <_> + + + + <_>4 13 4 6 -1. + <_>4 15 4 2 3. + 0 + 6.8065142259001732e-003 + 0.5157995820045471 + 0.3424577116966248 + <_> + + <_> + + + + <_>13 7 2 1 -1. + <_>13 7 1 1 2. + 0 + 1.7202789895236492e-003 + 0.5013207793235779 + 0.6331263780593872 + <_> + + <_> + + + + <_>5 7 2 1 -1. + <_>6 7 1 1 2. + 0 + -1.3016929733566940e-004 + 0.5539718270301819 + 0.4226869940757752 + <_> + + <_> + + + + <_>2 12 18 4 -1. + <_>11 12 9 2 2. + <_>2 14 9 2 2. + 0 + -4.8016388900578022e-003 + 0.4425095021724701 + 0.5430780053138733 + <_> + + <_> + + + + <_>5 7 2 2 -1. + <_>5 7 1 1 2. + <_>6 8 1 1 2. + 0 + -2.5399310979992151e-003 + 0.7145782113075256 + 0.4697605073451996 + <_> + + <_> + + + + <_>16 3 4 2 -1. + <_>16 4 4 1 2. + 0 + -1.4278929447755218e-003 + 0.4070445001125336 + 0.5399605035781860 + <_> + + <_> + + + + <_>0 2 2 18 -1. + <_>0 2 1 9 2. + <_>1 11 1 9 2. + 0 + -0.0251425504684448 + 0.7884690761566162 + 0.4747352004051209 + <_> + + <_> + + + + <_>1 2 18 4 -1. + <_>10 2 9 2 2. + <_>1 4 9 2 2. + 0 + -3.8899609353393316e-003 + 0.4296191930770874 + 0.5577110052108765 + <_> + + <_> + + + + <_>9 14 1 3 -1. + <_>9 15 1 1 3. + 0 + 4.3947459198534489e-003 + 0.4693162143230438 + 0.7023944258689880 + <_> + + <_> + + + + <_>2 12 18 4 -1. + <_>11 12 9 2 2. + <_>2 14 9 2 2. + 0 + 0.0246784202754498 + 0.5242322087287903 + 0.3812510073184967 + <_> + + <_> + + + + <_>0 12 18 4 -1. + <_>0 12 9 2 2. + <_>9 14 9 2 2. + 0 + 0.0380476787686348 + 0.5011739730834961 + 0.1687828004360199 + <_> + + <_> + + + + <_>11 4 5 3 -1. + <_>11 5 5 1 3. + 0 + 7.9424865543842316e-003 + 0.4828582108020783 + 0.6369568109512329 + <_> + + <_> + + + + <_>6 4 7 3 -1. + <_>6 5 7 1 3. + 0 + -1.5110049862414598e-003 + 0.5906485915184021 + 0.4487667977809906 + <_> + + <_> + + + + <_>13 17 3 3 -1. + <_>13 18 3 1 3. + 0 + 6.4201741479337215e-003 + 0.5241097807884216 + 0.2990570068359375 + <_> + + <_> + + + + <_>8 1 3 4 -1. + <_>9 1 1 4 3. + 0 + -2.9802159406244755e-003 + 0.3041465878486633 + 0.5078489780426025 + <_> + + <_> + + + + <_>11 4 2 4 -1. + <_>11 4 1 4 2. + 0 + -7.4580078944563866e-004 + 0.4128139019012451 + 0.5256826281547546 + <_> + + <_> + + + + <_>0 17 9 3 -1. + <_>3 17 3 3 3. + 0 + -0.0104709500446916 + 0.5808395147323608 + 0.4494296014308929 + <_> + + <_> + + + + <_>11 0 2 8 -1. + <_>12 0 1 4 2. + <_>11 4 1 4 2. + 0 + 9.3369204550981522e-003 + 0.5246552824974060 + 0.2658948898315430 + <_> + + <_> + + + + <_>0 8 6 12 -1. + <_>0 8 3 6 2. + <_>3 14 3 6 2. + 0 + 0.0279369000345469 + 0.4674955010414124 + 0.7087256908416748 + <_> + + <_> + + + + <_>10 7 4 12 -1. + <_>10 13 4 6 2. + 0 + 7.4277678504586220e-003 + 0.5409486889839172 + 0.3758518099784851 + <_> + + <_> + + + + <_>5 3 8 14 -1. + <_>5 10 8 7 2. + 0 + -0.0235845092684031 + 0.3758639991283417 + 0.5238550901412964 + <_> + + <_> + + + + <_>14 10 6 1 -1. + <_>14 10 3 1 2. + 0 + 1.1452640173956752e-003 + 0.4329578876495361 + 0.5804247260093689 + <_> + + <_> + + + + <_>0 4 10 4 -1. + <_>0 6 10 2 2. + 0 + -4.3468660442158580e-004 + 0.5280618071556091 + 0.3873069882392883 + <_> + + <_> + + + + <_>10 0 5 8 -1. + <_>10 4 5 4 2. + 0 + 0.0106485402211547 + 0.4902113080024719 + 0.5681251883506775 + <_> + + <_> + + + + <_>8 1 4 8 -1. + <_>8 1 2 4 2. + <_>10 5 2 4 2. + 0 + -3.9418050437234342e-004 + 0.5570880174636841 + 0.4318251013755798 + <_> + + <_> + + + + <_>9 11 6 1 -1. + <_>11 11 2 1 3. + 0 + -1.3270479394122958e-004 + 0.5658439993858337 + 0.4343554973602295 + <_> + + <_> + + + + <_>8 9 3 4 -1. + <_>9 9 1 4 3. + 0 + -2.0125510636717081e-003 + 0.6056739091873169 + 0.4537523984909058 + <_> + + <_> + + + + <_>18 4 2 6 -1. + <_>18 6 2 2 3. + 0 + 2.4854319635778666e-003 + 0.5390477180480957 + 0.4138010144233704 + <_> + + <_> + + + + <_>8 8 3 4 -1. + <_>9 8 1 4 3. + 0 + 1.8237880431115627e-003 + 0.4354828894138336 + 0.5717188715934753 + <_> + + <_> + + + + <_>7 1 13 3 -1. + <_>7 2 13 1 3. + 0 + -0.0166566595435143 + 0.3010913133621216 + 0.5216122865676880 + <_> + + <_> + + + + <_>7 13 6 1 -1. + <_>9 13 2 1 3. + 0 + 8.0349558265879750e-004 + 0.5300151109695435 + 0.3818396925926209 + <_> + + <_> + + + + <_>12 11 3 6 -1. + <_>12 13 3 2 3. + 0 + 3.4170378930866718e-003 + 0.5328028798103333 + 0.4241400063037872 + <_> + + <_> + + + + <_>5 11 6 1 -1. + <_>7 11 2 1 3. + 0 + -3.6222729249857366e-004 + 0.5491728186607361 + 0.4186977148056030 + <_> + + <_> + + + + <_>1 4 18 10 -1. + <_>10 4 9 5 2. + <_>1 9 9 5 2. + 0 + -0.1163002029061317 + 0.1440722048282623 + 0.5226451158523560 + <_> + + <_> + + + + <_>8 6 4 9 -1. + <_>8 9 4 3 3. + 0 + -0.0146950101479888 + 0.7747725248336792 + 0.4715717136859894 + <_> + + <_> + + + + <_>8 6 4 3 -1. + <_>8 7 4 1 3. + 0 + 2.1972130052745342e-003 + 0.5355433821678162 + 0.3315644860267639 + <_> + + <_> + + + + <_>8 7 3 3 -1. + <_>9 7 1 3 3. + 0 + -4.6965209185145795e-004 + 0.5767235159873962 + 0.4458136856555939 + <_> + + <_> + + + + <_>14 15 4 3 -1. + <_>14 16 4 1 3. + 0 + 6.5144998952746391e-003 + 0.5215674042701721 + 0.3647888898849487 + <_> + + <_> + + + + <_>5 10 3 10 -1. + <_>6 10 1 10 3. + 0 + 0.0213000606745481 + 0.4994204938411713 + 0.1567950993776321 + <_> + + <_> + + + + <_>8 15 4 3 -1. + <_>8 16 4 1 3. + 0 + 3.1881409231573343e-003 + 0.4742200076580048 + 0.6287270188331604 + <_> + + <_> + + + + <_>0 8 1 6 -1. + <_>0 10 1 2 3. + 0 + 9.0019777417182922e-004 + 0.5347954034805298 + 0.3943752050399780 + <_> + + <_> + + + + <_>10 15 1 3 -1. + <_>10 16 1 1 3. + 0 + -5.1772277802228928e-003 + 0.6727191805839539 + 0.5013138055801392 + <_> + + <_> + + + + <_>2 15 4 3 -1. + <_>2 16 4 1 3. + 0 + -4.3764649890363216e-003 + 0.3106675148010254 + 0.5128793120384216 + <_> + + <_> + + + + <_>18 3 2 8 -1. + <_>19 3 1 4 2. + <_>18 7 1 4 2. + 0 + 2.6299960445612669e-003 + 0.4886310100555420 + 0.5755215883255005 + <_> + + <_> + + + + <_>0 3 2 8 -1. + <_>0 3 1 4 2. + <_>1 7 1 4 2. + 0 + -2.0458688959479332e-003 + 0.6025794148445129 + 0.4558076858520508 + <_> + + <_> + + + + <_>3 7 14 10 -1. + <_>10 7 7 5 2. + <_>3 12 7 5 2. + 0 + 0.0694827064871788 + 0.5240747928619385 + 0.2185259014368057 + <_> + + <_> + + + + <_>0 7 19 3 -1. + <_>0 8 19 1 3. + 0 + 0.0240489393472672 + 0.5011867284774780 + 0.2090622037649155 + <_> + + <_> + + + + <_>12 6 3 3 -1. + <_>12 7 3 1 3. + 0 + 3.1095340382307768e-003 + 0.4866712093353272 + 0.7108548283576965 + <_> + + <_> + + + + <_>0 6 1 3 -1. + <_>0 7 1 1 3. + 0 + -1.2503260513767600e-003 + 0.3407891094684601 + 0.5156195163726807 + <_> + + <_> + + + + <_>12 6 3 3 -1. + <_>12 7 3 1 3. + 0 + -1.0281190043315291e-003 + 0.5575572252273560 + 0.4439432024955750 + <_> + + <_> + + + + <_>5 6 3 3 -1. + <_>5 7 3 1 3. + 0 + -8.8893622159957886e-003 + 0.6402000784873962 + 0.4620442092418671 + <_> + + <_> + + + + <_>8 2 4 2 -1. + <_>8 3 4 1 2. + 0 + -6.1094801640138030e-004 + 0.3766441941261292 + 0.5448899865150452 + <_> + + <_> + + + + <_>6 3 4 12 -1. + <_>8 3 2 12 2. + 0 + -5.7686357758939266e-003 + 0.3318648934364319 + 0.5133677124977112 + <_> + + <_> + + + + <_>13 6 2 3 -1. + <_>13 7 2 1 3. + 0 + 1.8506490159779787e-003 + 0.4903570115566254 + 0.6406934857368469 + <_> + + <_> + + + + <_>0 10 20 4 -1. + <_>0 12 20 2 2. + 0 + -0.0997994691133499 + 0.1536051034927368 + 0.5015562176704407 + <_> + + <_> + + + + <_>2 0 17 14 -1. + <_>2 7 17 7 2. + 0 + -0.3512834906578064 + 0.0588231310248375 + 0.5174378752708435 + <_> + + <_> + + + + <_>0 0 6 10 -1. + <_>0 0 3 5 2. + <_>3 5 3 5 2. + 0 + -0.0452445708215237 + 0.6961488723754883 + 0.4677872955799103 + <_> + + <_> + + + + <_>14 6 6 4 -1. + <_>14 6 3 4 2. + 0 + 0.0714815780520439 + 0.5167986154556274 + 0.1038092970848084 + <_> + + <_> + + + + <_>0 6 6 4 -1. + <_>3 6 3 4 2. + 0 + 2.1895780228078365e-003 + 0.4273078143596649 + 0.5532060861587524 + <_> + + <_> + + + + <_>13 2 7 2 -1. + <_>13 3 7 1 2. + 0 + -5.9242651332169771e-004 + 0.4638943970203400 + 0.5276389122009277 + <_> + + <_> + + + + <_>0 2 7 2 -1. + <_>0 3 7 1 2. + 0 + 1.6788389766588807e-003 + 0.5301648974418640 + 0.3932034969329834 + <_> + + <_> + + + + <_>6 11 14 2 -1. + <_>13 11 7 1 2. + <_>6 12 7 1 2. + 0 + -2.2163488902151585e-003 + 0.5630694031715393 + 0.4757033884525299 + <_> + + <_> + + + + <_>8 5 2 2 -1. + <_>8 5 1 1 2. + <_>9 6 1 1 2. + 0 + 1.1568699846975505e-004 + 0.4307535886764526 + 0.5535702705383301 + <_> + + <_> + + + + <_>13 9 2 3 -1. + <_>13 9 1 3 2. + 0 + -7.2017288766801357e-003 + 0.1444882005453110 + 0.5193064212799072 + <_> + + <_> + + + + <_>1 1 3 12 -1. + <_>2 1 1 12 3. + 0 + 8.9081272017210722e-004 + 0.4384432137012482 + 0.5593621134757996 + <_> + + <_> + + + + <_>17 4 1 3 -1. + <_>17 5 1 1 3. + 0 + 1.9605009583756328e-004 + 0.5340415835380554 + 0.4705956876277924 + <_> + + <_> + + + + <_>2 4 1 3 -1. + <_>2 5 1 1 3. + 0 + 5.2022142335772514e-004 + 0.5213856101036072 + 0.3810079097747803 + <_> + + <_> + + + + <_>14 5 1 3 -1. + <_>14 6 1 1 3. + 0 + 9.4588572392240167e-004 + 0.4769414961338043 + 0.6130738854408264 + <_> + + <_> + + + + <_>7 16 2 3 -1. + <_>7 17 2 1 3. + 0 + 9.1698471806012094e-005 + 0.4245009124279022 + 0.5429363250732422 + <_> + + <_> + + + + <_>8 13 4 6 -1. + <_>10 13 2 3 2. + <_>8 16 2 3 2. + 0 + 2.1833200007677078e-003 + 0.5457730889320374 + 0.4191075861454010 + <_> + + <_> + + + + <_>5 5 1 3 -1. + <_>5 6 1 1 3. + 0 + -8.6039671441540122e-004 + 0.5764588713645935 + 0.4471659958362579 + <_> + + <_> + + + + <_>16 0 4 20 -1. + <_>16 0 2 20 2. + 0 + -0.0132362395524979 + 0.6372823119163513 + 0.4695009887218475 + <_> + + <_> + + + + <_>5 1 2 6 -1. + <_>5 1 1 3 2. + <_>6 4 1 3 2. + 0 + 4.3376701069064438e-004 + 0.5317873954772949 + 0.3945829868316650 + 67.6989212036132810 + 14 + -1 + <_> + + + <_> + + <_> + + + + <_>5 4 10 4 -1. + <_>5 6 10 2 2. + 0 + -0.0248471498489380 + 0.6555516719818115 + 0.3873311877250671 + <_> + + <_> + + + + <_>15 2 4 12 -1. + <_>15 2 2 12 2. + 0 + 6.1348611488938332e-003 + 0.3748072087764740 + 0.5973997712135315 + <_> + + <_> + + + + <_>7 6 4 12 -1. + <_>7 12 4 6 2. + 0 + 6.4498498104512691e-003 + 0.5425491929054260 + 0.2548811137676239 + <_> + + <_> + + + + <_>14 5 1 8 -1. + <_>14 9 1 4 2. + 0 + 6.3491211039945483e-004 + 0.2462442070245743 + 0.5387253761291504 + <_> + + <_> + + + + <_>1 4 14 10 -1. + <_>1 4 7 5 2. + <_>8 9 7 5 2. + 0 + 1.4023890253156424e-003 + 0.5594322085380554 + 0.3528657853603363 + <_> + + <_> + + + + <_>11 6 6 14 -1. + <_>14 6 3 7 2. + <_>11 13 3 7 2. + 0 + 3.0044000595808029e-004 + 0.3958503901958466 + 0.5765938162803650 + <_> + + <_> + + + + <_>3 6 6 14 -1. + <_>3 6 3 7 2. + <_>6 13 3 7 2. + 0 + 1.0042409849120304e-004 + 0.3698996901512146 + 0.5534998178482056 + <_> + + <_> + + + + <_>4 9 15 2 -1. + <_>9 9 5 2 3. + 0 + -5.0841490738093853e-003 + 0.3711090981960297 + 0.5547800064086914 + <_> + + <_> + + + + <_>7 14 6 3 -1. + <_>7 15 6 1 3. + 0 + -0.0195372607558966 + 0.7492755055427551 + 0.4579297006130219 + <_> + + <_> + + + + <_>6 3 14 4 -1. + <_>13 3 7 2 2. + <_>6 5 7 2 2. + 0 + -7.4532740654831287e-006 + 0.5649787187576294 + 0.3904069960117340 + <_> + + <_> + + + + <_>1 9 15 2 -1. + <_>6 9 5 2 3. + 0 + -3.6079459823668003e-003 + 0.3381088078022003 + 0.5267801284790039 + <_> + + <_> + + + + <_>6 11 8 9 -1. + <_>6 14 8 3 3. + 0 + 2.0697501022368670e-003 + 0.5519291162490845 + 0.3714388906955719 + <_> + + <_> + + + + <_>7 4 3 8 -1. + <_>8 4 1 8 3. + 0 + -4.6463840408250690e-004 + 0.5608214735984802 + 0.4113566875457764 + <_> + + <_> + + + + <_>14 6 2 6 -1. + <_>14 9 2 3 2. + 0 + 7.5490452582016587e-004 + 0.3559206128120422 + 0.5329356193542481 + <_> + + <_> + + + + <_>5 7 6 4 -1. + <_>5 7 3 2 2. + <_>8 9 3 2 2. + 0 + -9.8322238773107529e-004 + 0.5414795875549316 + 0.3763205111026764 + <_> + + <_> + + + + <_>1 1 18 19 -1. + <_>7 1 6 19 3. + 0 + -0.0199406407773495 + 0.6347903013229370 + 0.4705299139022827 + <_> + + <_> + + + + <_>1 2 6 5 -1. + <_>4 2 3 5 2. + 0 + 3.7680300883948803e-003 + 0.3913489878177643 + 0.5563716292381287 + <_> + + <_> + + + + <_>12 17 6 2 -1. + <_>12 18 6 1 2. + 0 + -9.4528505578637123e-003 + 0.2554892897605896 + 0.5215116739273071 + <_> + + <_> + + + + <_>2 17 6 2 -1. + <_>2 18 6 1 2. + 0 + 2.9560849070549011e-003 + 0.5174679160118103 + 0.3063920140266419 + <_> + + <_> + + + + <_>17 3 3 6 -1. + <_>17 5 3 2 3. + 0 + 9.1078737750649452e-003 + 0.5388448238372803 + 0.2885963022708893 + <_> + + <_> + + + + <_>8 17 3 3 -1. + <_>8 18 3 1 3. + 0 + 1.8219229532405734e-003 + 0.4336043000221252 + 0.5852196812629700 + <_> + + <_> + + + + <_>10 13 2 6 -1. + <_>10 16 2 3 2. + 0 + 0.0146887395530939 + 0.5287361741065979 + 0.2870005965232849 + <_> + + <_> + + + + <_>7 13 6 3 -1. + <_>7 14 6 1 3. + 0 + -0.0143879903480411 + 0.7019448876380920 + 0.4647370874881744 + <_> + + <_> + + + + <_>17 3 3 6 -1. + <_>17 5 3 2 3. + 0 + -0.0189866498112679 + 0.2986552119255066 + 0.5247011780738831 + <_> + + <_> + + + + <_>8 13 2 3 -1. + <_>8 14 2 1 3. + 0 + 1.1527639580890536e-003 + 0.4323473870754242 + 0.5931661725044251 + <_> + + <_> + + + + <_>9 3 6 2 -1. + <_>11 3 2 2 3. + 0 + 0.0109336702153087 + 0.5286864042282105 + 0.3130319118499756 + <_> + + <_> + + + + <_>0 3 3 6 -1. + <_>0 5 3 2 3. + 0 + -0.0149327302351594 + 0.2658419013023377 + 0.5084077119827271 + <_> + + <_> + + + + <_>8 5 4 6 -1. + <_>8 7 4 2 3. + 0 + -2.9970539617352188e-004 + 0.5463526844978333 + 0.3740724027156830 + <_> + + <_> + + + + <_>5 5 3 2 -1. + <_>5 6 3 1 2. + 0 + 4.1677621193230152e-003 + 0.4703496992588043 + 0.7435721755027771 + <_> + + <_> + + + + <_>10 1 3 4 -1. + <_>11 1 1 4 3. + 0 + -6.3905320130288601e-003 + 0.2069258987903595 + 0.5280538201332092 + <_> + + <_> + + + + <_>1 2 5 9 -1. + <_>1 5 5 3 3. + 0 + 4.5029609464108944e-003 + 0.5182648897171021 + 0.3483543097972870 + <_> + + <_> + + + + <_>13 6 2 3 -1. + <_>13 7 2 1 3. + 0 + -9.2040365561842918e-003 + 0.6803777217864990 + 0.4932360053062439 + <_> + + <_> + + + + <_>0 6 14 3 -1. + <_>7 6 7 3 2. + 0 + 0.0813272595405579 + 0.5058398842811585 + 0.2253051996231079 + <_> + + <_> + + + + <_>2 11 18 8 -1. + <_>2 15 18 4 2. + 0 + -0.1507928073406220 + 0.2963424921035767 + 0.5264679789543152 + <_> + + <_> + + + + <_>5 6 2 3 -1. + <_>5 7 2 1 3. + 0 + 3.3179009333252907e-003 + 0.4655495882034302 + 0.7072932124137878 + <_> + + <_> + + + + <_>10 6 4 2 -1. + <_>12 6 2 1 2. + <_>10 7 2 1 2. + 0 + 7.7402801252901554e-004 + 0.4780347943305969 + 0.5668237805366516 + <_> + + <_> + + + + <_>6 6 4 2 -1. + <_>6 6 2 1 2. + <_>8 7 2 1 2. + 0 + 6.8199541419744492e-004 + 0.4286996126174927 + 0.5722156763076782 + <_> + + <_> + + + + <_>10 1 3 4 -1. + <_>11 1 1 4 3. + 0 + 5.3671570494771004e-003 + 0.5299307107925415 + 0.3114621937274933 + <_> + + <_> + + + + <_>7 1 2 7 -1. + <_>8 1 1 7 2. + 0 + 9.7018666565418243e-005 + 0.3674638867378235 + 0.5269461870193481 + <_> + + <_> + + + + <_>4 2 15 14 -1. + <_>4 9 15 7 2. + 0 + -0.1253408938646317 + 0.2351492047309876 + 0.5245791077613831 + <_> + + <_> + + + + <_>8 7 3 2 -1. + <_>9 7 1 2 3. + 0 + -5.2516269497573376e-003 + 0.7115936875343323 + 0.4693767130374908 + <_> + + <_> + + + + <_>2 3 18 4 -1. + <_>11 3 9 2 2. + <_>2 5 9 2 2. + 0 + -7.8342109918594360e-003 + 0.4462651014328003 + 0.5409085750579834 + <_> + + <_> + + + + <_>9 7 2 2 -1. + <_>10 7 1 2 2. + 0 + -1.1310069821774960e-003 + 0.5945618748664856 + 0.4417662024497986 + <_> + + <_> + + + + <_>13 9 2 3 -1. + <_>13 9 1 3 2. + 0 + 1.7601120052859187e-003 + 0.5353249907493591 + 0.3973453044891357 + <_> + + <_> + + + + <_>5 2 6 2 -1. + <_>7 2 2 2 3. + 0 + -8.1581249833106995e-004 + 0.3760268092155457 + 0.5264726877212524 + <_> + + <_> + + + + <_>9 5 2 7 -1. + <_>9 5 1 7 2. + 0 + -3.8687589112669230e-003 + 0.6309912800788879 + 0.4749819934368134 + <_> + + <_> + + + + <_>5 9 2 3 -1. + <_>6 9 1 3 2. + 0 + 1.5207129763439298e-003 + 0.5230181813240051 + 0.3361223936080933 + <_> + + <_> + + + + <_>6 0 14 18 -1. + <_>6 9 14 9 2. + 0 + 0.5458673834800720 + 0.5167139768600464 + 0.1172635033726692 + <_> + + <_> + + + + <_>2 16 6 3 -1. + <_>2 17 6 1 3. + 0 + 0.0156501904129982 + 0.4979439079761505 + 0.1393294930458069 + <_> + + <_> + + + + <_>9 7 3 6 -1. + <_>10 7 1 6 3. + 0 + -0.0117318602278829 + 0.7129650712013245 + 0.4921196103096008 + <_> + + <_> + + + + <_>7 8 4 3 -1. + <_>7 9 4 1 3. + 0 + -6.1765122227370739e-003 + 0.2288102954626083 + 0.5049701929092407 + <_> + + <_> + + + + <_>7 12 6 3 -1. + <_>7 13 6 1 3. + 0 + 2.2457661107182503e-003 + 0.4632433950901032 + 0.6048725843429565 + <_> + + <_> + + + + <_>9 12 2 3 -1. + <_>9 13 2 1 3. + 0 + -5.1915869116783142e-003 + 0.6467421054840088 + 0.4602192938327789 + <_> + + <_> + + + + <_>7 12 6 2 -1. + <_>9 12 2 2 3. + 0 + -0.0238278806209564 + 0.1482000946998596 + 0.5226079225540161 + <_> + + <_> + + + + <_>5 11 4 6 -1. + <_>5 14 4 3 2. + 0 + 1.0284580057486892e-003 + 0.5135489106178284 + 0.3375957012176514 + <_> + + <_> + + + + <_>11 12 7 2 -1. + <_>11 13 7 1 2. + 0 + -0.0100788502022624 + 0.2740561068058014 + 0.5303567051887512 + <_> + + <_> + + + + <_>6 10 8 6 -1. + <_>6 10 4 3 2. + <_>10 13 4 3 2. + 0 + 2.6168930344283581e-003 + 0.5332670807838440 + 0.3972454071044922 + <_> + + <_> + + + + <_>11 10 3 4 -1. + <_>11 12 3 2 2. + 0 + 5.4385367548093200e-004 + 0.5365604162216187 + 0.4063411951065064 + <_> + + <_> + + + + <_>9 16 2 3 -1. + <_>9 17 2 1 3. + 0 + 5.3510512225329876e-003 + 0.4653759002685547 + 0.6889045834541321 + <_> + + <_> + + + + <_>13 3 1 9 -1. + <_>13 6 1 3 3. + 0 + -1.5274790348485112e-003 + 0.5449501276016235 + 0.3624723851680756 + <_> + + <_> + + + + <_>1 13 14 6 -1. + <_>1 15 14 2 3. + 0 + -0.0806244164705276 + 0.1656087040901184 + 0.5000287294387817 + <_> + + <_> + + + + <_>13 6 1 6 -1. + <_>13 9 1 3 2. + 0 + 0.0221920292824507 + 0.5132731199264526 + 0.2002808004617691 + <_> + + <_> + + + + <_>0 4 3 8 -1. + <_>1 4 1 8 3. + 0 + 7.3100631125271320e-003 + 0.4617947936058044 + 0.6366536021232605 + <_> + + <_> + + + + <_>18 0 2 18 -1. + <_>18 0 1 18 2. + 0 + -6.4063072204589844e-003 + 0.5916250944137573 + 0.4867860972881317 + <_> + + <_> + + + + <_>2 3 6 2 -1. + <_>2 4 6 1 2. + 0 + -7.6415040530264378e-004 + 0.3888409137725830 + 0.5315797924995422 + <_> + + <_> + + + + <_>9 0 8 6 -1. + <_>9 2 8 2 3. + 0 + 7.6734489994123578e-004 + 0.4159064888954163 + 0.5605279803276062 + <_> + + <_> + + + + <_>6 6 1 6 -1. + <_>6 9 1 3 2. + 0 + 6.1474501853808761e-004 + 0.3089022040367127 + 0.5120148062705994 + <_> + + <_> + + + + <_>14 8 6 3 -1. + <_>14 9 6 1 3. + 0 + -5.0105270929634571e-003 + 0.3972199857234955 + 0.5207306146621704 + <_> + + <_> + + + + <_>0 0 2 18 -1. + <_>1 0 1 18 2. + 0 + -8.6909132078289986e-003 + 0.6257408261299133 + 0.4608575999736786 + <_> + + <_> + + + + <_>1 18 18 2 -1. + <_>10 18 9 1 2. + <_>1 19 9 1 2. + 0 + -0.0163914598524570 + 0.2085209935903549 + 0.5242266058921814 + <_> + + <_> + + + + <_>3 15 2 2 -1. + <_>3 16 2 1 2. + 0 + 4.0973909199237823e-004 + 0.5222427248954773 + 0.3780320882797241 + <_> + + <_> + + + + <_>8 14 5 3 -1. + <_>8 15 5 1 3. + 0 + -2.5242289993911982e-003 + 0.5803927183151245 + 0.4611890017986298 + <_> + + <_> + + + + <_>8 14 2 3 -1. + <_>8 15 2 1 3. + 0 + 5.0945312250405550e-004 + 0.4401271939277649 + 0.5846015810966492 + <_> + + <_> + + + + <_>12 3 3 3 -1. + <_>13 3 1 3 3. + 0 + 1.9656419754028320e-003 + 0.5322325229644775 + 0.4184590876102448 + <_> + + <_> + + + + <_>7 5 6 2 -1. + <_>9 5 2 2 3. + 0 + 5.6298897834494710e-004 + 0.3741844892501831 + 0.5234565734863281 + <_> + + <_> + + + + <_>15 5 5 2 -1. + <_>15 6 5 1 2. + 0 + -6.7946797935292125e-004 + 0.4631041884422302 + 0.5356478095054627 + <_> + + <_> + + + + <_>0 5 5 2 -1. + <_>0 6 5 1 2. + 0 + 7.2856349870562553e-003 + 0.5044670104980469 + 0.2377564013004303 + <_> + + <_> + + + + <_>17 14 1 6 -1. + <_>17 17 1 3 2. + 0 + -0.0174594894051552 + 0.7289121150970459 + 0.5050435066223145 + <_> + + <_> + + + + <_>2 9 9 3 -1. + <_>5 9 3 3 3. + 0 + -0.0254217498004436 + 0.6667134761810303 + 0.4678100049495697 + <_> + + <_> + + + + <_>12 3 3 3 -1. + <_>13 3 1 3 3. + 0 + -1.5647639520466328e-003 + 0.4391759037971497 + 0.5323626995086670 + <_> + + <_> + + + + <_>0 0 4 18 -1. + <_>2 0 2 18 2. + 0 + 0.0114443600177765 + 0.4346440136432648 + 0.5680012106895447 + <_> + + <_> + + + + <_>17 6 1 3 -1. + <_>17 7 1 1 3. + 0 + -6.7352550104260445e-004 + 0.4477140903472900 + 0.5296812057495117 + <_> + + <_> + + + + <_>2 14 1 6 -1. + <_>2 17 1 3 2. + 0 + 9.3194209039211273e-003 + 0.4740200042724609 + 0.7462607026100159 + <_> + + <_> + + + + <_>19 8 1 2 -1. + <_>19 9 1 1 2. + 0 + 1.3328490604180843e-004 + 0.5365061759948731 + 0.4752134978771210 + <_> + + <_> + + + + <_>5 3 3 3 -1. + <_>6 3 1 3 3. + 0 + -7.8815799206495285e-003 + 0.1752219051122665 + 0.5015255212783814 + <_> + + <_> + + + + <_>9 16 2 3 -1. + <_>9 17 2 1 3. + 0 + -5.7985680177807808e-003 + 0.7271236777305603 + 0.4896200895309448 + <_> + + <_> + + + + <_>2 6 1 3 -1. + <_>2 7 1 1 3. + 0 + -3.8922499516047537e-004 + 0.4003908932209015 + 0.5344941020011902 + <_> + + <_> + + + + <_>12 4 8 2 -1. + <_>16 4 4 1 2. + <_>12 5 4 1 2. + 0 + -1.9288610201328993e-003 + 0.5605612993240356 + 0.4803955852985382 + <_> + + <_> + + + + <_>0 4 8 2 -1. + <_>0 4 4 1 2. + <_>4 5 4 1 2. + 0 + 8.4214154630899429e-003 + 0.4753246903419495 + 0.7623608708381653 + <_> + + <_> + + + + <_>2 16 18 4 -1. + <_>2 18 18 2 2. + 0 + 8.1655876711010933e-003 + 0.5393261909484863 + 0.4191643893718720 + <_> + + <_> + + + + <_>7 15 2 4 -1. + <_>7 17 2 2 2. + 0 + 4.8280550981871784e-004 + 0.4240800142288208 + 0.5399821996688843 + <_> + + <_> + + + + <_>4 0 14 3 -1. + <_>4 1 14 1 3. + 0 + -2.7186630759388208e-003 + 0.4244599938392639 + 0.5424923896789551 + <_> + + <_> + + + + <_>0 0 4 20 -1. + <_>2 0 2 20 2. + 0 + -0.0125072300434113 + 0.5895841717720032 + 0.4550411105155945 + <_> + + <_> + + + + <_>12 4 4 8 -1. + <_>14 4 2 4 2. + <_>12 8 2 4 2. + 0 + -0.0242865197360516 + 0.2647134959697723 + 0.5189179778099060 + <_> + + <_> + + + + <_>6 7 2 2 -1. + <_>6 7 1 1 2. + <_>7 8 1 1 2. + 0 + -2.9676330741494894e-003 + 0.7347682714462280 + 0.4749749898910523 + <_> + + <_> + + + + <_>10 6 2 3 -1. + <_>10 7 2 1 3. + 0 + -0.0125289997085929 + 0.2756049931049347 + 0.5177599787712097 + <_> + + <_> + + + + <_>8 7 3 2 -1. + <_>8 8 3 1 2. + 0 + -1.0104000102728605e-003 + 0.3510560989379883 + 0.5144724249839783 + <_> + + <_> + + + + <_>8 2 6 12 -1. + <_>8 8 6 6 2. + 0 + -2.1348530426621437e-003 + 0.5637925863265991 + 0.4667319953441620 + <_> + + <_> + + + + <_>4 0 11 12 -1. + <_>4 4 11 4 3. + 0 + 0.0195642597973347 + 0.4614573121070862 + 0.6137639880180359 + <_> + + <_> + + + + <_>14 9 6 11 -1. + <_>16 9 2 11 3. + 0 + -0.0971463471651077 + 0.2998378872871399 + 0.5193555951118469 + <_> + + <_> + + + + <_>0 14 4 3 -1. + <_>0 15 4 1 3. + 0 + 4.5014568604528904e-003 + 0.5077884793281555 + 0.3045755922794342 + <_> + + <_> + + + + <_>9 10 2 3 -1. + <_>9 11 2 1 3. + 0 + 6.3706971704959869e-003 + 0.4861018955707550 + 0.6887500882148743 + <_> + + <_> + + + + <_>5 11 3 2 -1. + <_>5 12 3 1 2. + 0 + -9.0721528977155685e-003 + 0.1673395931720734 + 0.5017563104629517 + <_> + + <_> + + + + <_>9 15 3 3 -1. + <_>10 15 1 3 3. + 0 + -5.3537208586931229e-003 + 0.2692756950855255 + 0.5242633223533630 + <_> + + <_> + + + + <_>8 8 3 4 -1. + <_>9 8 1 4 3. + 0 + -0.0109328404068947 + 0.7183864116668701 + 0.4736028909683228 + <_> + + <_> + + + + <_>9 15 3 3 -1. + <_>10 15 1 3 3. + 0 + 8.2356072962284088e-003 + 0.5223966836929321 + 0.2389862984418869 + <_> + + <_> + + + + <_>7 7 3 2 -1. + <_>8 7 1 2 3. + 0 + -1.0038160253316164e-003 + 0.5719355940818787 + 0.4433943033218384 + <_> + + <_> + + + + <_>2 10 16 4 -1. + <_>10 10 8 2 2. + <_>2 12 8 2 2. + 0 + 4.0859128348529339e-003 + 0.5472841858863831 + 0.4148836135864258 + <_> + + <_> + + + + <_>2 3 4 17 -1. + <_>4 3 2 17 2. + 0 + 0.1548541933298111 + 0.4973812103271484 + 0.0610615983605385 + <_> + + <_> + + + + <_>15 13 2 7 -1. + <_>15 13 1 7 2. + 0 + 2.0897459762636572e-004 + 0.4709174036979675 + 0.5423889160156250 + <_> + + <_> + + + + <_>2 2 6 1 -1. + <_>5 2 3 1 2. + 0 + 3.3316991175524890e-004 + 0.4089626967906952 + 0.5300992131233215 + <_> + + <_> + + + + <_>5 2 12 4 -1. + <_>9 2 4 4 3. + 0 + -0.0108134001493454 + 0.6104369759559631 + 0.4957334101200104 + <_> + + <_> + + + + <_>6 0 8 12 -1. + <_>6 0 4 6 2. + <_>10 6 4 6 2. + 0 + 0.0456560105085373 + 0.5069689154624939 + 0.2866660058498383 + <_> + + <_> + + + + <_>13 7 2 2 -1. + <_>14 7 1 1 2. + <_>13 8 1 1 2. + 0 + 1.2569549726322293e-003 + 0.4846917092800140 + 0.6318171024322510 + <_> + + <_> + + + + <_>0 12 20 6 -1. + <_>0 14 20 2 3. + 0 + -0.1201507002115250 + 0.0605261400341988 + 0.4980959892272949 + <_> + + <_> + + + + <_>14 7 2 3 -1. + <_>14 7 1 3 2. + 0 + -1.0533799650147557e-004 + 0.5363109707832336 + 0.4708042144775391 + <_> + + <_> + + + + <_>0 8 9 12 -1. + <_>3 8 3 12 3. + 0 + -0.2070319056510925 + 0.0596603304147720 + 0.4979098141193390 + <_> + + <_> + + + + <_>3 0 16 2 -1. + <_>3 0 8 2 2. + 0 + 1.2909180077258497e-004 + 0.4712977111339569 + 0.5377997756004334 + <_> + + <_> + + + + <_>6 15 3 3 -1. + <_>6 16 3 1 3. + 0 + 3.8818528992123902e-004 + 0.4363538026809692 + 0.5534191131591797 + <_> + + <_> + + + + <_>8 15 6 3 -1. + <_>8 16 6 1 3. + 0 + -2.9243610333651304e-003 + 0.5811185836791992 + 0.4825215935707092 + <_> + + <_> + + + + <_>0 10 1 6 -1. + <_>0 12 1 2 3. + 0 + 8.3882332546636462e-004 + 0.5311700105667114 + 0.4038138985633850 + <_> + + <_> + + + + <_>10 9 4 3 -1. + <_>10 10 4 1 3. + 0 + -1.9061550265178084e-003 + 0.3770701885223389 + 0.5260015130043030 + <_> + + <_> + + + + <_>9 15 2 3 -1. + <_>9 16 2 1 3. + 0 + 8.9514348655939102e-003 + 0.4766167998313904 + 0.7682183980941773 + <_> + + <_> + + + + <_>5 7 10 1 -1. + <_>5 7 5 1 2. + 0 + 0.0130834598094225 + 0.5264462828636169 + 0.3062222003936768 + <_> + + <_> + + + + <_>4 0 12 19 -1. + <_>10 0 6 19 2. + 0 + -0.2115933001041412 + 0.6737198233604431 + 0.4695810079574585 + <_> + + <_> + + + + <_>0 6 20 6 -1. + <_>10 6 10 3 2. + <_>0 9 10 3 2. + 0 + 3.1493250280618668e-003 + 0.5644835233688355 + 0.4386953115463257 + <_> + + <_> + + + + <_>3 6 2 2 -1. + <_>3 6 1 1 2. + <_>4 7 1 1 2. + 0 + 3.9754100725986063e-004 + 0.4526061117649078 + 0.5895630121231079 + <_> + + <_> + + + + <_>15 6 2 2 -1. + <_>16 6 1 1 2. + <_>15 7 1 1 2. + 0 + -1.3814480043947697e-003 + 0.6070582270622253 + 0.4942413866519928 + <_> + + <_> + + + + <_>3 6 2 2 -1. + <_>3 6 1 1 2. + <_>4 7 1 1 2. + 0 + -5.8122188784182072e-004 + 0.5998213291168213 + 0.4508252143859863 + <_> + + <_> + + + + <_>14 4 1 12 -1. + <_>14 10 1 6 2. + 0 + -2.3905329871922731e-003 + 0.4205588996410370 + 0.5223848223686218 + <_> + + <_> + + + + <_>2 5 16 10 -1. + <_>2 5 8 5 2. + <_>10 10 8 5 2. + 0 + 0.0272689294070005 + 0.5206447243690491 + 0.3563301861286163 + <_> + + <_> + + + + <_>9 17 3 2 -1. + <_>10 17 1 2 3. + 0 + -3.7658358924090862e-003 + 0.3144704103469849 + 0.5218814015388489 + <_> + + <_> + + + + <_>1 4 2 2 -1. + <_>1 5 2 1 2. + 0 + -1.4903489500284195e-003 + 0.3380196094512940 + 0.5124437212944031 + <_> + + <_> + + + + <_>5 0 15 5 -1. + <_>10 0 5 5 3. + 0 + -0.0174282304942608 + 0.5829960703849793 + 0.4919725954532623 + <_> + + <_> + + + + <_>0 0 15 5 -1. + <_>5 0 5 5 3. + 0 + -0.0152780301868916 + 0.6163144707679749 + 0.4617887139320374 + <_> + + <_> + + + + <_>11 2 2 17 -1. + <_>11 2 1 17 2. + 0 + 0.0319956094026566 + 0.5166357159614563 + 0.1712764054536820 + <_> + + <_> + + + + <_>7 2 2 17 -1. + <_>8 2 1 17 2. + 0 + -3.8256710395216942e-003 + 0.3408012092113495 + 0.5131387710571289 + <_> + + <_> + + + + <_>15 11 2 9 -1. + <_>15 11 1 9 2. + 0 + -8.5186436772346497e-003 + 0.6105518937110901 + 0.4997941851615906 + <_> + + <_> + + + + <_>3 11 2 9 -1. + <_>4 11 1 9 2. + 0 + 9.0641621500253677e-004 + 0.4327270984649658 + 0.5582311153411865 + <_> + + <_> + + + + <_>5 16 14 4 -1. + <_>5 16 7 4 2. + 0 + 0.0103448498994112 + 0.4855653047561646 + 0.5452420115470886 + 69.2298736572265630 + 15 + -1 + <_> + + + <_> + + <_> + + + + <_>1 4 18 1 -1. + <_>7 4 6 1 3. + 0 + 7.8981826081871986e-003 + 0.3332524895668030 + 0.5946462154388428 + <_> + + <_> + + + + <_>13 7 6 4 -1. + <_>16 7 3 2 2. + <_>13 9 3 2 2. + 0 + 1.6170160379260778e-003 + 0.3490641117095947 + 0.5577868819236755 + <_> + + <_> + + + + <_>9 8 2 12 -1. + <_>9 12 2 4 3. + 0 + -5.5449741194024682e-004 + 0.5542566180229187 + 0.3291530013084412 + <_> + + <_> + + + + <_>12 1 6 6 -1. + <_>12 3 6 2 3. + 0 + 1.5428980113938451e-003 + 0.3612579107284546 + 0.5545979142189026 + <_> + + <_> + + + + <_>5 2 6 6 -1. + <_>5 2 3 3 2. + <_>8 5 3 3 2. + 0 + -1.0329450014978647e-003 + 0.3530139029026032 + 0.5576140284538269 + <_> + + <_> + + + + <_>9 16 6 4 -1. + <_>12 16 3 2 2. + <_>9 18 3 2 2. + 0 + 7.7698158565908670e-004 + 0.3916778862476349 + 0.5645321011543274 + <_> + + <_> + + + + <_>1 2 18 3 -1. + <_>7 2 6 3 3. + 0 + 0.1432030051946640 + 0.4667482078075409 + 0.7023633122444153 + <_> + + <_> + + + + <_>7 4 9 10 -1. + <_>7 9 9 5 2. + 0 + -7.3866490274667740e-003 + 0.3073684871196747 + 0.5289257764816284 + <_> + + <_> + + + + <_>5 9 4 4 -1. + <_>7 9 2 4 2. + 0 + -6.2936742324382067e-004 + 0.5622118115425110 + 0.4037049114704132 + <_> + + <_> + + + + <_>11 10 3 6 -1. + <_>11 13 3 3 2. + 0 + 7.8893528552725911e-004 + 0.5267661213874817 + 0.3557874858379364 + <_> + + <_> + + + + <_>7 11 5 3 -1. + <_>7 12 5 1 3. + 0 + -0.0122280502691865 + 0.6668320894241333 + 0.4625549912452698 + <_> + + <_> + + + + <_>7 11 6 6 -1. + <_>10 11 3 3 2. + <_>7 14 3 3 2. + 0 + 3.5420239437371492e-003 + 0.5521438121795654 + 0.3869673013687134 + <_> + + <_> + + + + <_>0 0 10 9 -1. + <_>0 3 10 3 3. + 0 + -1.0585320414975286e-003 + 0.3628678023815155 + 0.5320926904678345 + <_> + + <_> + + + + <_>13 14 1 6 -1. + <_>13 16 1 2 3. + 0 + 1.4935660146875307e-005 + 0.4632444977760315 + 0.5363323092460632 + <_> + + <_> + + + + <_>0 2 3 6 -1. + <_>0 4 3 2 3. + 0 + 5.2537708543241024e-003 + 0.5132231712341309 + 0.3265708982944489 + <_> + + <_> + + + + <_>8 14 4 3 -1. + <_>8 15 4 1 3. + 0 + -8.2338023930788040e-003 + 0.6693689823150635 + 0.4774140119552612 + <_> + + <_> + + + + <_>6 14 1 6 -1. + <_>6 16 1 2 3. + 0 + 2.1866810129722580e-005 + 0.4053862094879150 + 0.5457931160926819 + <_> + + <_> + + + + <_>9 15 2 3 -1. + <_>9 16 2 1 3. + 0 + -3.8150229956954718e-003 + 0.6454995870590210 + 0.4793178141117096 + <_> + + <_> + + + + <_>6 4 3 3 -1. + <_>7 4 1 3 3. + 0 + 1.1105879675596952e-003 + 0.5270407199859619 + 0.3529678881168366 + <_> + + <_> + + + + <_>9 0 11 3 -1. + <_>9 1 11 1 3. + 0 + -5.7707689702510834e-003 + 0.3803547024726868 + 0.5352957844734192 + <_> + + <_> + + + + <_>0 6 20 3 -1. + <_>0 7 20 1 3. + 0 + -3.0158339068293571e-003 + 0.5339403152465820 + 0.3887133002281189 + <_> + + <_> + + + + <_>10 1 1 2 -1. + <_>10 2 1 1 2. + 0 + -8.5453689098358154e-004 + 0.3564616143703461 + 0.5273603796958923 + <_> + + <_> + + + + <_>9 6 2 6 -1. + <_>10 6 1 6 2. + 0 + 0.0110505102202296 + 0.4671907126903534 + 0.6849737763404846 + <_> + + <_> + + + + <_>5 8 12 1 -1. + <_>9 8 4 1 3. + 0 + 0.0426058396697044 + 0.5151473283767700 + 0.0702200904488564 + <_> + + <_> + + + + <_>3 8 12 1 -1. + <_>7 8 4 1 3. + 0 + -3.0781750101596117e-003 + 0.3041661083698273 + 0.5152602195739746 + <_> + + <_> + + + + <_>9 7 3 5 -1. + <_>10 7 1 5 3. + 0 + -5.4815728217363358e-003 + 0.6430295705795288 + 0.4897229969501495 + <_> + + <_> + + + + <_>3 9 6 2 -1. + <_>6 9 3 2 2. + 0 + 3.1881860923022032e-003 + 0.5307493209838867 + 0.3826209902763367 + <_> + + <_> + + + + <_>12 9 3 3 -1. + <_>12 10 3 1 3. + 0 + 3.5947180003859103e-004 + 0.4650047123432159 + 0.5421904921531677 + <_> + + <_> + + + + <_>7 0 6 1 -1. + <_>9 0 2 1 3. + 0 + -4.0705031715333462e-003 + 0.2849679887294769 + 0.5079116225242615 + <_> + + <_> + + + + <_>12 9 3 3 -1. + <_>12 10 3 1 3. + 0 + -0.0145941702648997 + 0.2971645891666412 + 0.5128461718559265 + <_> + + <_> + + + + <_>7 10 2 1 -1. + <_>8 10 1 1 2. + 0 + -1.1947689927183092e-004 + 0.5631098151206970 + 0.4343082010746002 + <_> + + <_> + + + + <_>6 4 9 13 -1. + <_>9 4 3 13 3. + 0 + -6.9344649091362953e-004 + 0.4403578042984009 + 0.5359959006309509 + <_> + + <_> + + + + <_>6 8 4 2 -1. + <_>6 9 4 1 2. + 0 + 1.4834799912932795e-005 + 0.3421008884906769 + 0.5164697766304016 + <_> + + <_> + + + + <_>16 2 4 6 -1. + <_>16 2 2 6 2. + 0 + 9.0296985581517220e-003 + 0.4639343023300171 + 0.6114075183868408 + <_> + + <_> + + + + <_>0 17 6 3 -1. + <_>0 18 6 1 3. + 0 + -8.0640818923711777e-003 + 0.2820158898830414 + 0.5075494050979614 + <_> + + <_> + + + + <_>10 10 3 10 -1. + <_>10 15 3 5 2. + 0 + 0.0260621197521687 + 0.5208905935287476 + 0.2688778042793274 + <_> + + <_> + + + + <_>8 7 3 5 -1. + <_>9 7 1 5 3. + 0 + 0.0173146594315767 + 0.4663713872432709 + 0.6738539934158325 + <_> + + <_> + + + + <_>10 4 4 3 -1. + <_>10 4 2 3 2. + 0 + 0.0226666405797005 + 0.5209349989891052 + 0.2212723940610886 + <_> + + <_> + + + + <_>8 4 3 8 -1. + <_>9 4 1 8 3. + 0 + -2.1965929772704840e-003 + 0.6063101291656494 + 0.4538190066814423 + <_> + + <_> + + + + <_>6 6 9 13 -1. + <_>9 6 3 13 3. + 0 + -9.5282476395368576e-003 + 0.4635204970836639 + 0.5247430801391602 + <_> + + <_> + + + + <_>6 0 8 12 -1. + <_>6 0 4 6 2. + <_>10 6 4 6 2. + 0 + 8.0943619832396507e-003 + 0.5289440155029297 + 0.3913882076740265 + <_> + + <_> + + + + <_>14 2 6 8 -1. + <_>16 2 2 8 3. + 0 + -0.0728773325681686 + 0.7752001881599426 + 0.4990234971046448 + <_> + + <_> + + + + <_>6 0 3 6 -1. + <_>7 0 1 6 3. + 0 + -6.9009521976113319e-003 + 0.2428039014339447 + 0.5048090219497681 + <_> + + <_> + + + + <_>14 2 6 8 -1. + <_>16 2 2 8 3. + 0 + -0.0113082397729158 + 0.5734364986419678 + 0.4842376112937927 + <_> + + <_> + + + + <_>0 5 6 6 -1. + <_>0 8 6 3 2. + 0 + 0.0596132017672062 + 0.5029836297035217 + 0.2524977028369904 + <_> + + <_> + + + + <_>9 12 6 2 -1. + <_>12 12 3 1 2. + <_>9 13 3 1 2. + 0 + -2.8624620754271746e-003 + 0.6073045134544373 + 0.4898459911346436 + <_> + + <_> + + + + <_>8 17 3 2 -1. + <_>9 17 1 2 3. + 0 + 4.4781449250876904e-003 + 0.5015289187431335 + 0.2220316976308823 + <_> + + <_> + + + + <_>11 6 2 2 -1. + <_>12 6 1 1 2. + <_>11 7 1 1 2. + 0 + -1.7513240454718471e-003 + 0.6614428758621216 + 0.4933868944644928 + <_> + + <_> + + + + <_>1 9 18 2 -1. + <_>7 9 6 2 3. + 0 + 0.0401634201407433 + 0.5180878043174744 + 0.3741044998168945 + <_> + + <_> + + + + <_>11 6 2 2 -1. + <_>12 6 1 1 2. + <_>11 7 1 1 2. + 0 + 3.4768949262797832e-004 + 0.4720416963100433 + 0.5818032026290894 + <_> + + <_> + + + + <_>3 4 12 8 -1. + <_>7 4 4 8 3. + 0 + 2.6551650371402502e-003 + 0.3805010914802551 + 0.5221335887908936 + <_> + + <_> + + + + <_>13 11 5 3 -1. + <_>13 12 5 1 3. + 0 + -8.7706279009580612e-003 + 0.2944166064262390 + 0.5231295228004456 + <_> + + <_> + + + + <_>9 10 2 3 -1. + <_>9 11 2 1 3. + 0 + -5.5122091434895992e-003 + 0.7346177101135254 + 0.4722816944122315 + <_> + + <_> + + + + <_>14 7 2 3 -1. + <_>14 7 1 3 2. + 0 + 6.8672042107209563e-004 + 0.5452876091003418 + 0.4242413043975830 + <_> + + <_> + + + + <_>5 4 1 3 -1. + <_>5 5 1 1 3. + 0 + 5.6019669864326715e-004 + 0.4398862123489380 + 0.5601285099983215 + <_> + + <_> + + + + <_>13 4 2 3 -1. + <_>13 5 2 1 3. + 0 + 2.4143769405782223e-003 + 0.4741686880588532 + 0.6136621832847595 + <_> + + <_> + + + + <_>5 4 2 3 -1. + <_>5 5 2 1 3. + 0 + -1.5680900542065501e-003 + 0.6044552922248840 + 0.4516409933567047 + <_> + + <_> + + + + <_>9 8 2 3 -1. + <_>9 9 2 1 3. + 0 + -3.6827491130679846e-003 + 0.2452459037303925 + 0.5294982194900513 + <_> + + <_> + + + + <_>8 9 2 2 -1. + <_>8 10 2 1 2. + 0 + -2.9409190756268799e-004 + 0.3732838034629822 + 0.5251451134681702 + <_> + + <_> + + + + <_>15 14 1 4 -1. + <_>15 16 1 2 2. + 0 + 4.2847759323194623e-004 + 0.5498809814453125 + 0.4065535068511963 + <_> + + <_> + + + + <_>3 12 2 2 -1. + <_>3 13 2 1 2. + 0 + -4.8817070201039314e-003 + 0.2139908969402313 + 0.4999957084655762 + <_> + + <_> + + + + <_>12 15 2 2 -1. + <_>13 15 1 1 2. + <_>12 16 1 1 2. + 0 + 2.7272020815871656e-004 + 0.4650287032127380 + 0.5813428759574890 + <_> + + <_> + + + + <_>9 13 2 2 -1. + <_>9 14 2 1 2. + 0 + 2.0947199664078653e-004 + 0.4387486875057221 + 0.5572792887687683 + <_> + + <_> + + + + <_>4 11 14 9 -1. + <_>4 14 14 3 3. + 0 + 0.0485011897981167 + 0.5244972705841065 + 0.3212889134883881 + <_> + + <_> + + + + <_>7 13 4 3 -1. + <_>7 14 4 1 3. + 0 + -4.5166411437094212e-003 + 0.6056813001632690 + 0.4545882046222687 + <_> + + <_> + + + + <_>15 14 1 4 -1. + <_>15 16 1 2 2. + 0 + -0.0122916800901294 + 0.2040929049253464 + 0.5152214169502258 + <_> + + <_> + + + + <_>4 14 1 4 -1. + <_>4 16 1 2 2. + 0 + 4.8549679922871292e-004 + 0.5237604975700378 + 0.3739503026008606 + <_> + + <_> + + + + <_>14 0 6 13 -1. + <_>16 0 2 13 3. + 0 + 0.0305560491979122 + 0.4960533976554871 + 0.5938246250152588 + <_> + + <_> + + + + <_>4 1 2 12 -1. + <_>4 1 1 6 2. + <_>5 7 1 6 2. + 0 + -1.5105320198927075e-004 + 0.5351303815841675 + 0.4145204126834869 + <_> + + <_> + + + + <_>11 14 6 6 -1. + <_>14 14 3 3 2. + <_>11 17 3 3 2. + 0 + 2.4937440175563097e-003 + 0.4693366885185242 + 0.5514941215515137 + <_> + + <_> + + + + <_>3 14 6 6 -1. + <_>3 14 3 3 2. + <_>6 17 3 3 2. + 0 + -0.0123821301385760 + 0.6791396737098694 + 0.4681667983531952 + <_> + + <_> + + + + <_>14 17 3 2 -1. + <_>14 18 3 1 2. + 0 + -5.1333461888134480e-003 + 0.3608739078044891 + 0.5229160189628601 + <_> + + <_> + + + + <_>3 17 3 2 -1. + <_>3 18 3 1 2. + 0 + 5.1919277757406235e-004 + 0.5300073027610779 + 0.3633613884449005 + <_> + + <_> + + + + <_>14 0 6 13 -1. + <_>16 0 2 13 3. + 0 + 0.1506042033433914 + 0.5157316923141480 + 0.2211782038211823 + <_> + + <_> + + + + <_>0 0 6 13 -1. + <_>2 0 2 13 3. + 0 + 7.7144149690866470e-003 + 0.4410496950149536 + 0.5776609182357788 + <_> + + <_> + + + + <_>10 10 7 6 -1. + <_>10 12 7 2 3. + 0 + 9.4443522393703461e-003 + 0.5401855111122131 + 0.3756650090217590 + <_> + + <_> + + + + <_>6 15 2 2 -1. + <_>6 15 1 1 2. + <_>7 16 1 1 2. + 0 + 2.5006249779835343e-004 + 0.4368270933628082 + 0.5607374906539917 + <_> + + <_> + + + + <_>6 11 8 6 -1. + <_>10 11 4 3 2. + <_>6 14 4 3 2. + 0 + -3.3077150583267212e-003 + 0.4244799017906189 + 0.5518230795860291 + <_> + + <_> + + + + <_>7 6 2 2 -1. + <_>7 6 1 1 2. + <_>8 7 1 1 2. + 0 + 7.4048910755664110e-004 + 0.4496962130069733 + 0.5900576710700989 + <_> + + <_> + + + + <_>2 2 16 6 -1. + <_>10 2 8 3 2. + <_>2 5 8 3 2. + 0 + 0.0440920516848564 + 0.5293493270874023 + 0.3156355023384094 + <_> + + <_> + + + + <_>5 4 3 3 -1. + <_>5 5 3 1 3. + 0 + 3.3639909233897924e-003 + 0.4483296871185303 + 0.5848662257194519 + <_> + + <_> + + + + <_>11 7 3 10 -1. + <_>11 12 3 5 2. + 0 + -3.9760079234838486e-003 + 0.4559507071971893 + 0.5483639240264893 + <_> + + <_> + + + + <_>6 7 3 10 -1. + <_>6 12 3 5 2. + 0 + 2.7716930489987135e-003 + 0.5341786146163940 + 0.3792484104633331 + <_> + + <_> + + + + <_>10 7 3 2 -1. + <_>11 7 1 2 3. + 0 + -2.4123019829858094e-004 + 0.5667188763618469 + 0.4576973021030426 + <_> + + <_> + + + + <_>8 12 4 2 -1. + <_>8 13 4 1 2. + 0 + 4.9425667384639382e-004 + 0.4421244859695435 + 0.5628787279129028 + <_> + + <_> + + + + <_>10 1 1 3 -1. + <_>10 2 1 1 3. + 0 + -3.8876468897797167e-004 + 0.4288370907306671 + 0.5391063094139099 + <_> + + <_> + + + + <_>1 2 4 18 -1. + <_>1 2 2 9 2. + <_>3 11 2 9 2. + 0 + -0.0500488989055157 + 0.6899513006210327 + 0.4703742861747742 + <_> + + <_> + + + + <_>12 4 4 12 -1. + <_>12 10 4 6 2. + 0 + -0.0366354808211327 + 0.2217779010534287 + 0.5191826224327087 + <_> + + <_> + + + + <_>0 0 1 6 -1. + <_>0 2 1 2 3. + 0 + 2.4273579474538565e-003 + 0.5136224031448364 + 0.3497397899627686 + <_> + + <_> + + + + <_>9 11 2 3 -1. + <_>9 12 2 1 3. + 0 + 1.9558030180633068e-003 + 0.4826192855834961 + 0.6408380866050720 + <_> + + <_> + + + + <_>8 7 4 3 -1. + <_>8 8 4 1 3. + 0 + -1.7494610510766506e-003 + 0.3922835886478424 + 0.5272685289382935 + <_> + + <_> + + + + <_>10 7 3 2 -1. + <_>11 7 1 2 3. + 0 + 0.0139550799503922 + 0.5078201889991760 + 0.8416504859924316 + <_> + + <_> + + + + <_>7 7 3 2 -1. + <_>8 7 1 2 3. + 0 + -2.1896739781368524e-004 + 0.5520489811897278 + 0.4314234852790833 + <_> + + <_> + + + + <_>9 4 6 1 -1. + <_>11 4 2 1 3. + 0 + -1.5131309628486633e-003 + 0.3934605121612549 + 0.5382571220397949 + <_> + + <_> + + + + <_>8 7 2 3 -1. + <_>9 7 1 3 2. + 0 + -4.3622800149023533e-003 + 0.7370628714561462 + 0.4736475944519043 + <_> + + <_> + + + + <_>12 7 8 6 -1. + <_>16 7 4 3 2. + <_>12 10 4 3 2. + 0 + 0.0651605874300003 + 0.5159279704093933 + 0.3281595110893250 + <_> + + <_> + + + + <_>0 7 8 6 -1. + <_>0 7 4 3 2. + <_>4 10 4 3 2. + 0 + -2.3567399475723505e-003 + 0.3672826886177063 + 0.5172886252403259 + <_> + + <_> + + + + <_>18 2 2 10 -1. + <_>19 2 1 5 2. + <_>18 7 1 5 2. + 0 + 0.0151466596871614 + 0.5031493902206421 + 0.6687604188919067 + <_> + + <_> + + + + <_>0 2 6 4 -1. + <_>3 2 3 4 2. + 0 + -0.0228509604930878 + 0.6767519712448120 + 0.4709596931934357 + <_> + + <_> + + + + <_>9 4 6 1 -1. + <_>11 4 2 1 3. + 0 + 4.8867650330066681e-003 + 0.5257998108863831 + 0.4059878885746002 + <_> + + <_> + + + + <_>7 15 2 2 -1. + <_>7 15 1 1 2. + <_>8 16 1 1 2. + 0 + 1.7619599821045995e-003 + 0.4696272909641266 + 0.6688278913497925 + <_> + + <_> + + + + <_>11 13 1 6 -1. + <_>11 16 1 3 2. + 0 + -1.2942519970238209e-003 + 0.4320712983608246 + 0.5344281792640686 + <_> + + <_> + + + + <_>8 13 1 6 -1. + <_>8 16 1 3 2. + 0 + 0.0109299495816231 + 0.4997706115245819 + 0.1637486070394516 + <_> + + <_> + + + + <_>14 3 2 1 -1. + <_>14 3 1 1 2. + 0 + 2.9958489903947338e-005 + 0.4282417893409729 + 0.5633224248886108 + <_> + + <_> + + + + <_>8 15 2 3 -1. + <_>8 16 2 1 3. + 0 + -6.5884361974895000e-003 + 0.6772121191024780 + 0.4700526893138886 + <_> + + <_> + + + + <_>12 15 7 4 -1. + <_>12 17 7 2 2. + 0 + 3.2527779694646597e-003 + 0.5313397049903870 + 0.4536148905754089 + <_> + + <_> + + + + <_>4 14 12 3 -1. + <_>4 15 12 1 3. + 0 + -4.0435739792883396e-003 + 0.5660061836242676 + 0.4413388967514038 + <_> + + <_> + + + + <_>10 3 3 2 -1. + <_>11 3 1 2 3. + 0 + -1.2523540062829852e-003 + 0.3731913864612579 + 0.5356451869010925 + <_> + + <_> + + + + <_>4 12 2 2 -1. + <_>4 13 2 1 2. + 0 + 1.9246719602961093e-004 + 0.5189986228942871 + 0.3738811016082764 + <_> + + <_> + + + + <_>10 11 4 6 -1. + <_>10 14 4 3 2. + 0 + -0.0385896712541580 + 0.2956373989582062 + 0.5188810825347900 + <_> + + <_> + + + + <_>7 13 2 2 -1. + <_>7 13 1 1 2. + <_>8 14 1 1 2. + 0 + 1.5489870565943420e-004 + 0.4347135126590729 + 0.5509533286094666 + <_> + + <_> + + + + <_>4 11 14 4 -1. + <_>11 11 7 2 2. + <_>4 13 7 2 2. + 0 + -0.0337638482451439 + 0.3230330049991608 + 0.5195475816726685 + <_> + + <_> + + + + <_>1 18 18 2 -1. + <_>7 18 6 2 3. + 0 + -8.2657067105174065e-003 + 0.5975489020347595 + 0.4552114009857178 + <_> + + <_> + + + + <_>11 18 2 2 -1. + <_>12 18 1 1 2. + <_>11 19 1 1 2. + 0 + 1.4481440302915871e-005 + 0.4745678007602692 + 0.5497426986694336 + <_> + + <_> + + + + <_>7 18 2 2 -1. + <_>7 18 1 1 2. + <_>8 19 1 1 2. + 0 + 1.4951299817766994e-005 + 0.4324473142623901 + 0.5480644106864929 + <_> + + <_> + + + + <_>12 18 8 2 -1. + <_>12 19 8 1 2. + 0 + -0.0187417995184660 + 0.1580052971839905 + 0.5178533196449280 + <_> + + <_> + + + + <_>7 14 6 2 -1. + <_>7 15 6 1 2. + 0 + 1.7572239739820361e-003 + 0.4517636895179749 + 0.5773764252662659 + <_> + + <_> + + + + <_>8 12 4 8 -1. + <_>10 12 2 4 2. + <_>8 16 2 4 2. + 0 + -3.1391119118779898e-003 + 0.4149647951126099 + 0.5460842251777649 + <_> + + <_> + + + + <_>4 9 3 3 -1. + <_>4 10 3 1 3. + 0 + 6.6656779381446540e-005 + 0.4039090871810913 + 0.5293084979057312 + <_> + + <_> + + + + <_>7 10 6 2 -1. + <_>9 10 2 2 3. + 0 + 6.7743421532213688e-003 + 0.4767651855945587 + 0.6121956110000610 + <_> + + <_> + + + + <_>5 0 4 15 -1. + <_>7 0 2 15 2. + 0 + -7.3868161998689175e-003 + 0.3586258888244629 + 0.5187280774116516 + <_> + + <_> + + + + <_>8 6 12 14 -1. + <_>12 6 4 14 3. + 0 + 0.0140409301966429 + 0.4712139964103699 + 0.5576155781745911 + <_> + + <_> + + + + <_>5 16 3 3 -1. + <_>5 17 3 1 3. + 0 + -5.5258329957723618e-003 + 0.2661027014255524 + 0.5039281249046326 + <_> + + <_> + + + + <_>8 1 12 19 -1. + <_>12 1 4 19 3. + 0 + 0.3868423998355866 + 0.5144339799880981 + 0.2525899112224579 + <_> + + <_> + + + + <_>3 0 3 2 -1. + <_>3 1 3 1 2. + 0 + 1.1459240340627730e-004 + 0.4284994900226593 + 0.5423371195793152 + <_> + + <_> + + + + <_>10 12 4 5 -1. + <_>10 12 2 5 2. + 0 + -0.0184675697237253 + 0.3885835111141205 + 0.5213062167167664 + <_> + + <_> + + + + <_>6 12 4 5 -1. + <_>8 12 2 5 2. + 0 + -4.5907011372037232e-004 + 0.5412563085556030 + 0.4235909879207611 + <_> + + <_> + + + + <_>11 11 2 2 -1. + <_>12 11 1 1 2. + <_>11 12 1 1 2. + 0 + 1.2527540093287826e-003 + 0.4899305105209351 + 0.6624091267585754 + <_> + + <_> + + + + <_>0 2 3 6 -1. + <_>0 4 3 2 3. + 0 + 1.4910609461367130e-003 + 0.5286778211593628 + 0.4040051996707916 + <_> + + <_> + + + + <_>11 11 2 2 -1. + <_>12 11 1 1 2. + <_>11 12 1 1 2. + 0 + -7.5435562757775187e-004 + 0.6032990217208862 + 0.4795120060443878 + <_> + + <_> + + + + <_>7 6 4 10 -1. + <_>7 11 4 5 2. + 0 + -6.9478838704526424e-003 + 0.4084401130676270 + 0.5373504161834717 + <_> + + <_> + + + + <_>11 11 2 2 -1. + <_>12 11 1 1 2. + <_>11 12 1 1 2. + 0 + 2.8092920547351241e-004 + 0.4846062958240509 + 0.5759382247924805 + <_> + + <_> + + + + <_>2 13 5 2 -1. + <_>2 14 5 1 2. + 0 + 9.6073717577382922e-004 + 0.5164741277694702 + 0.3554979860782623 + <_> + + <_> + + + + <_>11 11 2 2 -1. + <_>12 11 1 1 2. + <_>11 12 1 1 2. + 0 + -2.6883929967880249e-004 + 0.5677582025527954 + 0.4731765985488892 + <_> + + <_> + + + + <_>7 11 2 2 -1. + <_>7 11 1 1 2. + <_>8 12 1 1 2. + 0 + 2.1599370520561934e-003 + 0.4731487035751343 + 0.7070567011833191 + <_> + + <_> + + + + <_>14 13 3 3 -1. + <_>14 14 3 1 3. + 0 + 5.6235301308333874e-003 + 0.5240243077278137 + 0.2781791985034943 + <_> + + <_> + + + + <_>3 13 3 3 -1. + <_>3 14 3 1 3. + 0 + -5.0243991427123547e-003 + 0.2837013900279999 + 0.5062304139137268 + <_> + + <_> + + + + <_>9 14 2 3 -1. + <_>9 15 2 1 3. + 0 + -9.7611639648675919e-003 + 0.7400717735290527 + 0.4934569001197815 + <_> + + <_> + + + + <_>8 7 3 3 -1. + <_>8 8 3 1 3. + 0 + 4.1515100747346878e-003 + 0.5119131207466126 + 0.3407008051872253 + <_> + + <_> + + + + <_>13 5 3 3 -1. + <_>13 6 3 1 3. + 0 + 6.2465080991387367e-003 + 0.4923788011074066 + 0.6579058766365051 + <_> + + <_> + + + + <_>0 9 5 3 -1. + <_>0 10 5 1 3. + 0 + -7.0597478188574314e-003 + 0.2434711009263992 + 0.5032842159271240 + <_> + + <_> + + + + <_>13 5 3 3 -1. + <_>13 6 3 1 3. + 0 + -2.0587709732353687e-003 + 0.5900310873985291 + 0.4695087075233460 + <_> + + <_> + + + + <_>9 12 2 8 -1. + <_>9 12 1 4 2. + <_>10 16 1 4 2. + 0 + -2.4146060459315777e-003 + 0.3647317886352539 + 0.5189201831817627 + <_> + + <_> + + + + <_>11 7 2 2 -1. + <_>12 7 1 1 2. + <_>11 8 1 1 2. + 0 + -1.4817609917372465e-003 + 0.6034948229789734 + 0.4940128028392792 + <_> + + <_> + + + + <_>0 16 6 4 -1. + <_>3 16 3 4 2. + 0 + -6.3016400672495365e-003 + 0.5818989872932434 + 0.4560427963733673 + <_> + + <_> + + + + <_>10 6 2 3 -1. + <_>10 7 2 1 3. + 0 + 3.4763428848236799e-003 + 0.5217475891113281 + 0.3483993113040924 + <_> + + <_> + + + + <_>9 5 2 6 -1. + <_>9 7 2 2 3. + 0 + -0.0222508702427149 + 0.2360700070858002 + 0.5032082796096802 + <_> + + <_> + + + + <_>12 15 8 4 -1. + <_>12 15 4 4 2. + 0 + -0.0306125506758690 + 0.6499186754226685 + 0.4914919137954712 + <_> + + <_> + + + + <_>0 14 8 6 -1. + <_>4 14 4 6 2. + 0 + 0.0130574796348810 + 0.4413323104381561 + 0.5683764219284058 + <_> + + <_> + + + + <_>9 0 3 2 -1. + <_>10 0 1 2 3. + 0 + -6.0095742810517550e-004 + 0.4359731078147888 + 0.5333483219146729 + <_> + + <_> + + + + <_>4 15 4 2 -1. + <_>6 15 2 2 2. + 0 + -4.1514250915497541e-004 + 0.5504062771797180 + 0.4326060116291046 + <_> + + <_> + + + + <_>12 7 3 13 -1. + <_>13 7 1 13 3. + 0 + -0.0137762902304530 + 0.4064112901687622 + 0.5201548933982849 + <_> + + <_> + + + + <_>5 7 3 13 -1. + <_>6 7 1 13 3. + 0 + -0.0322965085506439 + 0.0473519712686539 + 0.4977194964885712 + <_> + + <_> + + + + <_>9 6 3 9 -1. + <_>9 9 3 3 3. + 0 + 0.0535569787025452 + 0.4881733059883118 + 0.6666939258575440 + <_> + + <_> + + + + <_>4 4 7 12 -1. + <_>4 10 7 6 2. + 0 + 8.1889545544981956e-003 + 0.5400037169456482 + 0.4240820109844208 + <_> + + <_> + + + + <_>12 12 2 2 -1. + <_>13 12 1 1 2. + <_>12 13 1 1 2. + 0 + 2.1055320394225419e-004 + 0.4802047908306122 + 0.5563852787017822 + <_> + + <_> + + + + <_>6 12 2 2 -1. + <_>6 12 1 1 2. + <_>7 13 1 1 2. + 0 + -2.4382730480283499e-003 + 0.7387793064117432 + 0.4773685038089752 + <_> + + <_> + + + + <_>8 9 4 2 -1. + <_>10 9 2 1 2. + <_>8 10 2 1 2. + 0 + 3.2835570164024830e-003 + 0.5288546085357666 + 0.3171291947364807 + <_> + + <_> + + + + <_>3 6 2 2 -1. + <_>3 6 1 1 2. + <_>4 7 1 1 2. + 0 + 2.3729570675641298e-003 + 0.4750812947750092 + 0.7060170769691467 + <_> + + <_> + + + + <_>16 6 3 2 -1. + <_>16 7 3 1 2. + 0 + -1.4541699783876538e-003 + 0.3811730146408081 + 0.5330739021301270 + 79.2490768432617190 + 16 + -1 + <_> + + + <_> + + <_> + + + + <_>0 7 19 4 -1. + <_>0 9 19 2 2. + 0 + 0.0557552389800549 + 0.4019156992435455 + 0.6806036829948425 + <_> + + <_> + + + + <_>10 2 10 1 -1. + <_>10 2 5 1 2. + 0 + 2.4730248842388391e-003 + 0.3351148962974548 + 0.5965719819068909 + <_> + + <_> + + + + <_>9 4 2 12 -1. + <_>9 10 2 6 2. + 0 + -3.5031698644161224e-004 + 0.5557708144187927 + 0.3482286930084229 + <_> + + <_> + + + + <_>12 18 4 1 -1. + <_>12 18 2 1 2. + 0 + 5.4167630150914192e-004 + 0.4260858893394470 + 0.5693380832672119 + <_> + + <_> + + + + <_>1 7 6 4 -1. + <_>1 7 3 2 2. + <_>4 9 3 2 2. + 0 + 7.7193678589537740e-004 + 0.3494240045547485 + 0.5433688759803772 + <_> + + <_> + + + + <_>12 0 6 13 -1. + <_>14 0 2 13 3. + 0 + -1.5999219613149762e-003 + 0.4028499126434326 + 0.5484359264373779 + <_> + + <_> + + + + <_>2 0 6 13 -1. + <_>4 0 2 13 3. + 0 + -1.1832080053864047e-004 + 0.3806901872158051 + 0.5425465106964111 + <_> + + <_> + + + + <_>10 5 8 8 -1. + <_>10 9 8 4 2. + 0 + 3.2909031142480671e-004 + 0.2620100080966950 + 0.5429521799087524 + <_> + + <_> + + + + <_>8 3 2 5 -1. + <_>9 3 1 5 2. + 0 + 2.9518108931370080e-004 + 0.3799768984317780 + 0.5399264097213745 + <_> + + <_> + + + + <_>8 4 9 1 -1. + <_>11 4 3 1 3. + 0 + 9.0466710389591753e-005 + 0.4433645009994507 + 0.5440226197242737 + <_> + + <_> + + + + <_>3 4 9 1 -1. + <_>6 4 3 1 3. + 0 + 1.5007190086180344e-005 + 0.3719654977321625 + 0.5409119725227356 + <_> + + <_> + + + + <_>1 0 18 10 -1. + <_>7 0 6 10 3. + 0 + 0.1393561065196991 + 0.5525395870208740 + 0.4479042887687683 + <_> + + <_> + + + + <_>7 17 5 3 -1. + <_>7 18 5 1 3. + 0 + 1.6461990308016539e-003 + 0.4264501035213471 + 0.5772169828414917 + <_> + + <_> + + + + <_>7 11 6 1 -1. + <_>9 11 2 1 3. + 0 + 4.9984431825578213e-004 + 0.4359526038169861 + 0.5685871243476868 + <_> + + <_> + + + + <_>2 2 3 2 -1. + <_>2 3 3 1 2. + 0 + -1.0971280280500650e-003 + 0.3390136957168579 + 0.5205408930778503 + <_> + + <_> + + + + <_>8 12 4 2 -1. + <_>8 13 4 1 2. + 0 + 6.6919892560690641e-004 + 0.4557456076145172 + 0.5980659723281860 + <_> + + <_> + + + + <_>6 10 3 6 -1. + <_>6 13 3 3 2. + 0 + 8.6471042595803738e-004 + 0.5134841203689575 + 0.2944033145904541 + <_> + + <_> + + + + <_>11 4 2 4 -1. + <_>11 4 1 4 2. + 0 + -2.7182599296793342e-004 + 0.3906578123569489 + 0.5377181172370911 + <_> + + <_> + + + + <_>7 4 2 4 -1. + <_>8 4 1 4 2. + 0 + 3.0249499104684219e-005 + 0.3679609894752502 + 0.5225688815116882 + <_> + + <_> + + + + <_>9 6 2 4 -1. + <_>9 6 1 4 2. + 0 + -8.5225896909832954e-003 + 0.7293102145195007 + 0.4892365038394928 + <_> + + <_> + + + + <_>6 13 8 3 -1. + <_>6 14 8 1 3. + 0 + 1.6705560265108943e-003 + 0.4345324933528900 + 0.5696138143539429 + <_> + + <_> + + + + <_>9 15 3 4 -1. + <_>10 15 1 4 3. + 0 + -7.1433838456869125e-003 + 0.2591280043125153 + 0.5225623846054077 + <_> + + <_> + + + + <_>9 2 2 17 -1. + <_>10 2 1 17 2. + 0 + -0.0163193698972464 + 0.6922279000282288 + 0.4651575982570648 + <_> + + <_> + + + + <_>7 0 6 1 -1. + <_>9 0 2 1 3. + 0 + 4.8034260980784893e-003 + 0.5352262854576111 + 0.3286302983760834 + <_> + + <_> + + + + <_>8 15 3 4 -1. + <_>9 15 1 4 3. + 0 + -7.5421929359436035e-003 + 0.2040544003248215 + 0.5034546256065369 + <_> + + <_> + + + + <_>7 13 7 3 -1. + <_>7 14 7 1 3. + 0 + -0.0143631100654602 + 0.6804888844490051 + 0.4889059066772461 + <_> + + <_> + + + + <_>8 16 3 3 -1. + <_>9 16 1 3 3. + 0 + 8.9063588529825211e-004 + 0.5310695767402649 + 0.3895480930805206 + <_> + + <_> + + + + <_>6 2 8 10 -1. + <_>6 7 8 5 2. + 0 + -4.4060191139578819e-003 + 0.5741562843322754 + 0.4372426867485046 + <_> + + <_> + + + + <_>2 5 8 8 -1. + <_>2 9 8 4 2. + 0 + -1.8862540309783071e-004 + 0.2831785976886749 + 0.5098205208778381 + <_> + + <_> + + + + <_>14 16 2 2 -1. + <_>14 17 2 1 2. + 0 + -3.7979281041771173e-003 + 0.3372507989406586 + 0.5246580243110657 + <_> + + <_> + + + + <_>4 16 2 2 -1. + <_>4 17 2 1 2. + 0 + 1.4627049677073956e-004 + 0.5306674242019653 + 0.3911710083484650 + <_> + + <_> + + + + <_>10 11 4 6 -1. + <_>10 14 4 3 2. + 0 + -4.9164638767251745e-005 + 0.5462496280670166 + 0.3942720890045166 + <_> + + <_> + + + + <_>6 11 4 6 -1. + <_>6 14 4 3 2. + 0 + -0.0335825011134148 + 0.2157824039459229 + 0.5048211812973023 + <_> + + <_> + + + + <_>10 14 1 3 -1. + <_>10 15 1 1 3. + 0 + -3.5339309833943844e-003 + 0.6465312242507935 + 0.4872696995735169 + <_> + + <_> + + + + <_>8 14 4 3 -1. + <_>8 15 4 1 3. + 0 + 5.0144111737608910e-003 + 0.4617668092250824 + 0.6248074769973755 + <_> + + <_> + + + + <_>10 0 4 6 -1. + <_>12 0 2 3 2. + <_>10 3 2 3 2. + 0 + 0.0188173707574606 + 0.5220689177513123 + 0.2000052034854889 + <_> + + <_> + + + + <_>0 3 20 2 -1. + <_>0 4 20 1 2. + 0 + -1.3434339780360460e-003 + 0.4014537930488586 + 0.5301619768142700 + <_> + + <_> + + + + <_>12 0 8 2 -1. + <_>16 0 4 1 2. + <_>12 1 4 1 2. + 0 + 1.7557960236445069e-003 + 0.4794039130210877 + 0.5653169751167297 + <_> + + <_> + + + + <_>2 12 10 8 -1. + <_>2 16 10 4 2. + 0 + -0.0956374630331993 + 0.2034195065498352 + 0.5006706714630127 + <_> + + <_> + + + + <_>17 7 2 10 -1. + <_>18 7 1 5 2. + <_>17 12 1 5 2. + 0 + -0.0222412291914225 + 0.7672473192214966 + 0.5046340227127075 + <_> + + <_> + + + + <_>1 7 2 10 -1. + <_>1 7 1 5 2. + <_>2 12 1 5 2. + 0 + -0.0155758196488023 + 0.7490342259407044 + 0.4755851030349731 + <_> + + <_> + + + + <_>15 10 3 6 -1. + <_>15 12 3 2 3. + 0 + 5.3599118255078793e-003 + 0.5365303754806519 + 0.4004670977592468 + <_> + + <_> + + + + <_>4 4 6 2 -1. + <_>6 4 2 2 3. + 0 + -0.0217634998261929 + 0.0740154981613159 + 0.4964174926280975 + <_> + + <_> + + + + <_>0 5 20 6 -1. + <_>0 7 20 2 3. + 0 + -0.1656159013509750 + 0.2859103083610535 + 0.5218086242675781 + <_> + + <_> + + + + <_>0 0 8 2 -1. + <_>0 0 4 1 2. + <_>4 1 4 1 2. + 0 + 1.6461320046801120e-004 + 0.4191615879535675 + 0.5380793213844299 + <_> + + <_> + + + + <_>1 0 18 4 -1. + <_>7 0 6 4 3. + 0 + -8.9077502489089966e-003 + 0.6273192763328552 + 0.4877404868602753 + <_> + + <_> + + + + <_>1 13 6 2 -1. + <_>1 14 6 1 2. + 0 + 8.6346449097618461e-004 + 0.5159940719604492 + 0.3671025931835175 + <_> + + <_> + + + + <_>10 8 3 4 -1. + <_>11 8 1 4 3. + 0 + -1.3751760125160217e-003 + 0.5884376764297485 + 0.4579083919525147 + <_> + + <_> + + + + <_>6 1 6 1 -1. + <_>8 1 2 1 3. + 0 + -1.4081239933148026e-003 + 0.3560509979724884 + 0.5139945149421692 + <_> + + <_> + + + + <_>8 14 4 3 -1. + <_>8 15 4 1 3. + 0 + -3.9342888630926609e-003 + 0.5994288921356201 + 0.4664272069931030 + <_> + + <_> + + + + <_>1 6 18 2 -1. + <_>10 6 9 2 2. + 0 + -0.0319669283926487 + 0.3345462083816528 + 0.5144183039665222 + <_> + + <_> + + + + <_>15 11 1 2 -1. + <_>15 12 1 1 2. + 0 + -1.5089280168467667e-005 + 0.5582656264305115 + 0.4414057135581970 + <_> + + <_> + + + + <_>6 5 1 2 -1. + <_>6 6 1 1 2. + 0 + 5.1994470413774252e-004 + 0.4623680114746094 + 0.6168993711471558 + <_> + + <_> + + + + <_>13 4 1 3 -1. + <_>13 5 1 1 3. + 0 + -3.4220460802316666e-003 + 0.6557074785232544 + 0.4974805116653442 + <_> + + <_> + + + + <_>2 15 1 2 -1. + <_>2 16 1 1 2. + 0 + 1.7723299970384687e-004 + 0.5269501805305481 + 0.3901908099651337 + <_> + + <_> + + + + <_>12 4 4 3 -1. + <_>12 5 4 1 3. + 0 + 1.5716759953647852e-003 + 0.4633373022079468 + 0.5790457725524902 + <_> + + <_> + + + + <_>0 0 7 3 -1. + <_>0 1 7 1 3. + 0 + -8.9041329920291901e-003 + 0.2689608037471771 + 0.5053591132164002 + <_> + + <_> + + + + <_>9 12 6 2 -1. + <_>9 12 3 2 2. + 0 + 4.0677518700249493e-004 + 0.5456603169441223 + 0.4329898953437805 + <_> + + <_> + + + + <_>5 4 2 3 -1. + <_>5 5 2 1 3. + 0 + 6.7604780197143555e-003 + 0.4648993909358978 + 0.6689761877059937 + <_> + + <_> + + + + <_>18 4 2 3 -1. + <_>18 5 2 1 3. + 0 + 2.9100088868290186e-003 + 0.5309703946113586 + 0.3377839922904968 + <_> + + <_> + + + + <_>3 0 8 6 -1. + <_>3 2 8 2 3. + 0 + 1.3885459629818797e-003 + 0.4074738919734955 + 0.5349133014678955 + <_> + + <_> + + + + <_>0 2 20 6 -1. + <_>10 2 10 3 2. + <_>0 5 10 3 2. + 0 + -0.0767642632126808 + 0.1992176026105881 + 0.5228242278099060 + <_> + + <_> + + + + <_>4 7 2 4 -1. + <_>5 7 1 4 2. + 0 + -2.2688310127705336e-004 + 0.5438501834869385 + 0.4253072142601013 + <_> + + <_> + + + + <_>3 10 15 2 -1. + <_>8 10 5 2 3. + 0 + -6.3094152137637138e-003 + 0.4259178936481476 + 0.5378909707069397 + <_> + + <_> + + + + <_>3 0 12 11 -1. + <_>9 0 6 11 2. + 0 + -0.1100727990269661 + 0.6904156804084778 + 0.4721749126911163 + <_> + + <_> + + + + <_>13 0 2 6 -1. + <_>13 0 1 6 2. + 0 + 2.8619659133255482e-004 + 0.4524914920330048 + 0.5548306107521057 + <_> + + <_> + + + + <_>0 19 2 1 -1. + <_>1 19 1 1 2. + 0 + 2.9425329557852820e-005 + 0.5370373725891113 + 0.4236463904380798 + <_> + + <_> + + + + <_>16 10 4 10 -1. + <_>18 10 2 5 2. + <_>16 15 2 5 2. + 0 + -0.0248865708708763 + 0.6423557996749878 + 0.4969303905963898 + <_> + + <_> + + + + <_>4 8 10 3 -1. + <_>4 9 10 1 3. + 0 + 0.0331488512456417 + 0.4988475143909454 + 0.1613811999559403 + <_> + + <_> + + + + <_>14 12 3 3 -1. + <_>14 13 3 1 3. + 0 + 7.8491691965609789e-004 + 0.5416026115417481 + 0.4223009049892426 + <_> + + <_> + + + + <_>0 10 4 10 -1. + <_>0 10 2 5 2. + <_>2 15 2 5 2. + 0 + 4.7087189741432667e-003 + 0.4576328992843628 + 0.6027557849884033 + <_> + + <_> + + + + <_>18 3 2 6 -1. + <_>18 5 2 2 3. + 0 + 2.4144479539245367e-003 + 0.5308973193168640 + 0.4422498941421509 + <_> + + <_> + + + + <_>6 6 1 3 -1. + <_>6 7 1 1 3. + 0 + 1.9523180089890957e-003 + 0.4705634117126465 + 0.6663324832916260 + <_> + + <_> + + + + <_>7 7 7 2 -1. + <_>7 8 7 1 2. + 0 + 1.3031980488449335e-003 + 0.4406126141548157 + 0.5526962280273438 + <_> + + <_> + + + + <_>0 3 2 6 -1. + <_>0 5 2 2 3. + 0 + 4.4735497795045376e-003 + 0.5129023790359497 + 0.3301498889923096 + <_> + + <_> + + + + <_>11 1 3 1 -1. + <_>12 1 1 1 3. + 0 + -2.6652868837118149e-003 + 0.3135471045970917 + 0.5175036191940308 + <_> + + <_> + + + + <_>5 0 2 6 -1. + <_>6 0 1 6 2. + 0 + 1.3666770246345550e-004 + 0.4119370877742767 + 0.5306876897811890 + <_> + + <_> + + + + <_>1 1 18 14 -1. + <_>7 1 6 14 3. + 0 + -0.0171264503151178 + 0.6177806258201599 + 0.4836578965187073 + <_> + + <_> + + + + <_>4 6 8 3 -1. + <_>8 6 4 3 2. + 0 + -2.6601430727168918e-004 + 0.3654330968856812 + 0.5169736742973328 + <_> + + <_> + + + + <_>9 12 6 2 -1. + <_>9 12 3 2 2. + 0 + -0.0229323804378510 + 0.3490915000438690 + 0.5163992047309876 + <_> + + <_> + + + + <_>5 12 6 2 -1. + <_>8 12 3 2 2. + 0 + 2.3316550068557262e-003 + 0.5166299939155579 + 0.3709389865398407 + <_> + + <_> + + + + <_>10 7 3 5 -1. + <_>11 7 1 5 3. + 0 + 0.0169256608933210 + 0.5014736056327820 + 0.8053988218307495 + <_> + + <_> + + + + <_>7 7 3 5 -1. + <_>8 7 1 5 3. + 0 + -8.9858826249837875e-003 + 0.6470788717269898 + 0.4657020866870880 + <_> + + <_> + + + + <_>13 0 3 10 -1. + <_>14 0 1 10 3. + 0 + -0.0118746999651194 + 0.3246378898620606 + 0.5258755087852478 + <_> + + <_> + + + + <_>4 11 3 2 -1. + <_>4 12 3 1 2. + 0 + 1.9350569345988333e-004 + 0.5191941857337952 + 0.3839643895626068 + <_> + + <_> + + + + <_>17 3 3 6 -1. + <_>18 3 1 6 3. + 0 + 5.8713490143418312e-003 + 0.4918133914470673 + 0.6187043190002441 + <_> + + <_> + + + + <_>1 8 18 10 -1. + <_>1 13 18 5 2. + 0 + -0.2483879029750824 + 0.1836802959442139 + 0.4988150000572205 + <_> + + <_> + + + + <_>13 0 3 10 -1. + <_>14 0 1 10 3. + 0 + 0.0122560001909733 + 0.5227053761482239 + 0.3632029891014099 + <_> + + <_> + + + + <_>9 14 2 3 -1. + <_>9 15 2 1 3. + 0 + 8.3990179700776935e-004 + 0.4490250051021576 + 0.5774148106575012 + <_> + + <_> + + + + <_>16 3 3 7 -1. + <_>17 3 1 7 3. + 0 + 2.5407369248569012e-003 + 0.4804787039756775 + 0.5858299136161804 + <_> + + <_> + + + + <_>4 0 3 10 -1. + <_>5 0 1 10 3. + 0 + -0.0148224299773574 + 0.2521049976348877 + 0.5023537278175354 + <_> + + <_> + + + + <_>16 3 3 7 -1. + <_>17 3 1 7 3. + 0 + -5.7973959483206272e-003 + 0.5996695756912231 + 0.4853715002536774 + <_> + + <_> + + + + <_>0 9 1 2 -1. + <_>0 10 1 1 2. + 0 + 7.2662148158997297e-004 + 0.5153716802597046 + 0.3671779930591583 + <_> + + <_> + + + + <_>18 1 2 10 -1. + <_>18 1 1 10 2. + 0 + -0.0172325801104307 + 0.6621719002723694 + 0.4994656145572662 + <_> + + <_> + + + + <_>0 1 2 10 -1. + <_>1 1 1 10 2. + 0 + 7.8624086454510689e-003 + 0.4633395075798035 + 0.6256101727485657 + <_> + + <_> + + + + <_>10 16 3 4 -1. + <_>11 16 1 4 3. + 0 + -4.7343620099127293e-003 + 0.3615573048591614 + 0.5281885266304016 + <_> + + <_> + + + + <_>2 8 3 3 -1. + <_>3 8 1 3 3. + 0 + 8.3048478700220585e-004 + 0.4442889094352722 + 0.5550957918167114 + <_> + + <_> + + + + <_>11 0 2 6 -1. + <_>12 0 1 3 2. + <_>11 3 1 3 2. + 0 + 7.6602199114859104e-003 + 0.5162935256958008 + 0.2613354921340942 + <_> + + <_> + + + + <_>7 0 2 6 -1. + <_>7 0 1 3 2. + <_>8 3 1 3 2. + 0 + -4.1048377752304077e-003 + 0.2789632081985474 + 0.5019031763076782 + <_> + + <_> + + + + <_>16 3 3 7 -1. + <_>17 3 1 7 3. + 0 + 4.8512578941881657e-003 + 0.4968984127044678 + 0.5661668181419373 + <_> + + <_> + + + + <_>1 3 3 7 -1. + <_>2 3 1 7 3. + 0 + 9.9896453320980072e-004 + 0.4445607960224152 + 0.5551813244819641 + <_> + + <_> + + + + <_>14 1 6 16 -1. + <_>16 1 2 16 3. + 0 + -0.2702363133430481 + 0.0293882098048925 + 0.5151314139366150 + <_> + + <_> + + + + <_>0 1 6 16 -1. + <_>2 1 2 16 3. + 0 + -0.0130906803533435 + 0.5699399709701538 + 0.4447459876537323 + <_> + + <_> + + + + <_>2 0 16 8 -1. + <_>10 0 8 4 2. + <_>2 4 8 4 2. + 0 + -9.4342790544033051e-003 + 0.4305466115474701 + 0.5487895011901856 + <_> + + <_> + + + + <_>6 8 5 3 -1. + <_>6 9 5 1 3. + 0 + -1.5482039889320731e-003 + 0.3680317103862763 + 0.5128080844879150 + <_> + + <_> + + + + <_>9 7 3 3 -1. + <_>10 7 1 3 3. + 0 + 5.3746132180094719e-003 + 0.4838916957378388 + 0.6101555824279785 + <_> + + <_> + + + + <_>8 8 4 3 -1. + <_>8 9 4 1 3. + 0 + 1.5786769799888134e-003 + 0.5325223207473755 + 0.4118548035621643 + <_> + + <_> + + + + <_>9 6 2 4 -1. + <_>9 6 1 4 2. + 0 + 3.6856050137430429e-003 + 0.4810948073863983 + 0.6252303123474121 + <_> + + <_> + + + + <_>0 7 15 1 -1. + <_>5 7 5 1 3. + 0 + 9.3887019902467728e-003 + 0.5200229883193970 + 0.3629410862922669 + <_> + + <_> + + + + <_>8 2 7 9 -1. + <_>8 5 7 3 3. + 0 + 0.0127926301211119 + 0.4961709976196289 + 0.6738016009330750 + <_> + + <_> + + + + <_>1 7 16 4 -1. + <_>1 7 8 2 2. + <_>9 9 8 2 2. + 0 + -3.3661040943115950e-003 + 0.4060279130935669 + 0.5283598899841309 + <_> + + <_> + + + + <_>6 12 8 2 -1. + <_>6 13 8 1 2. + 0 + 3.9771420415490866e-004 + 0.4674113988876343 + 0.5900775194168091 + <_> + + <_> + + + + <_>8 11 3 3 -1. + <_>8 12 3 1 3. + 0 + 1.4868030557408929e-003 + 0.4519116878509522 + 0.6082053780555725 + <_> + + <_> + + + + <_>4 5 14 10 -1. + <_>11 5 7 5 2. + <_>4 10 7 5 2. + 0 + -0.0886867493391037 + 0.2807899117469788 + 0.5180991888046265 + <_> + + <_> + + + + <_>4 12 3 2 -1. + <_>4 13 3 1 2. + 0 + -7.4296112870797515e-005 + 0.5295584201812744 + 0.4087625145912170 + <_> + + <_> + + + + <_>9 11 6 1 -1. + <_>11 11 2 1 3. + 0 + -1.4932939848222304e-005 + 0.5461400151252747 + 0.4538542926311493 + <_> + + <_> + + + + <_>4 9 7 6 -1. + <_>4 11 7 2 3. + 0 + 5.9162238612771034e-003 + 0.5329161286354065 + 0.4192134141921997 + <_> + + <_> + + + + <_>7 10 6 3 -1. + <_>7 11 6 1 3. + 0 + 1.1141640134155750e-003 + 0.4512017965316773 + 0.5706217288970947 + <_> + + <_> + + + + <_>9 11 2 2 -1. + <_>9 12 2 1 2. + 0 + 8.9249362645205110e-005 + 0.4577805995941162 + 0.5897638201713562 + <_> + + <_> + + + + <_>0 5 20 6 -1. + <_>0 7 20 2 3. + 0 + 2.5319510605186224e-003 + 0.5299603939056397 + 0.3357639014720917 + <_> + + <_> + + + + <_>6 4 6 1 -1. + <_>8 4 2 1 3. + 0 + 0.0124262003228068 + 0.4959059059619904 + 0.1346601992845535 + <_> + + <_> + + + + <_>9 11 6 1 -1. + <_>11 11 2 1 3. + 0 + 0.0283357501029968 + 0.5117079019546509 + 6.1043637106195092e-004 + <_> + + <_> + + + + <_>5 11 6 1 -1. + <_>7 11 2 1 3. + 0 + 6.6165882162749767e-003 + 0.4736349880695343 + 0.7011628150939941 + <_> + + <_> + + + + <_>10 16 3 4 -1. + <_>11 16 1 4 3. + 0 + 8.0468766391277313e-003 + 0.5216417908668518 + 0.3282819986343384 + <_> + + <_> + + + + <_>8 7 3 3 -1. + <_>9 7 1 3 3. + 0 + -1.1193980462849140e-003 + 0.5809860825538635 + 0.4563739001750946 + <_> + + <_> + + + + <_>2 12 16 8 -1. + <_>2 16 16 4 2. + 0 + 0.0132775902748108 + 0.5398362278938294 + 0.4103901088237763 + <_> + + <_> + + + + <_>0 15 15 2 -1. + <_>0 16 15 1 2. + 0 + 4.8794739996083081e-004 + 0.4249286055564880 + 0.5410590767860413 + <_> + + <_> + + + + <_>15 4 5 6 -1. + <_>15 6 5 2 3. + 0 + 0.0112431701272726 + 0.5269963741302490 + 0.3438215851783752 + <_> + + <_> + + + + <_>9 5 2 4 -1. + <_>10 5 1 4 2. + 0 + -8.9896668214350939e-004 + 0.5633075833320618 + 0.4456613063812256 + <_> + + <_> + + + + <_>8 10 9 6 -1. + <_>8 12 9 2 3. + 0 + 6.6677159629762173e-003 + 0.5312889218330383 + 0.4362679123878479 + <_> + + <_> + + + + <_>2 19 15 1 -1. + <_>7 19 5 1 3. + 0 + 0.0289472993463278 + 0.4701794981956482 + 0.6575797796249390 + <_> + + <_> + + + + <_>10 16 3 4 -1. + <_>11 16 1 4 3. + 0 + -0.0234000496566296 + 0. + 0.5137398838996887 + <_> + + <_> + + + + <_>0 15 20 4 -1. + <_>0 17 20 2 2. + 0 + -0.0891170501708984 + 0.0237452797591686 + 0.4942430853843689 + <_> + + <_> + + + + <_>10 16 3 4 -1. + <_>11 16 1 4 3. + 0 + -0.0140546001493931 + 0.3127323091030121 + 0.5117511153221130 + <_> + + <_> + + + + <_>7 16 3 4 -1. + <_>8 16 1 4 3. + 0 + 8.1239398568868637e-003 + 0.5009049177169800 + 0.2520025968551636 + <_> + + <_> + + + + <_>9 16 3 3 -1. + <_>9 17 3 1 3. + 0 + -4.9964650534093380e-003 + 0.6387143731117249 + 0.4927811920642853 + <_> + + <_> + + + + <_>8 11 4 6 -1. + <_>8 14 4 3 2. + 0 + 3.1253970228135586e-003 + 0.5136849880218506 + 0.3680452108383179 + <_> + + <_> + + + + <_>9 6 2 12 -1. + <_>9 10 2 4 3. + 0 + 6.7669642157852650e-003 + 0.5509843826293945 + 0.4363631904125214 + <_> + + <_> + + + + <_>8 17 4 3 -1. + <_>8 18 4 1 3. + 0 + -2.3711440153419971e-003 + 0.6162335276603699 + 0.4586946964263916 + <_> + + <_> + + + + <_>9 18 8 2 -1. + <_>13 18 4 1 2. + <_>9 19 4 1 2. + 0 + -5.3522791713476181e-003 + 0.6185457706451416 + 0.4920490980148315 + <_> + + <_> + + + + <_>1 18 8 2 -1. + <_>1 19 8 1 2. + 0 + -0.0159688591957092 + 0.1382617950439453 + 0.4983252882957459 + <_> + + <_> + + + + <_>13 5 6 15 -1. + <_>15 5 2 15 3. + 0 + 4.7676060348749161e-003 + 0.4688057899475098 + 0.5490046143531799 + <_> + + <_> + + + + <_>9 8 2 2 -1. + <_>9 9 2 1 2. + 0 + -2.4714691098779440e-003 + 0.2368514984846115 + 0.5003952980041504 + <_> + + <_> + + + + <_>9 5 2 3 -1. + <_>9 5 1 3 2. + 0 + -7.1033788844943047e-004 + 0.5856394171714783 + 0.4721533060073853 + <_> + + <_> + + + + <_>1 5 6 15 -1. + <_>3 5 2 15 3. + 0 + -0.1411755979061127 + 0.0869000628590584 + 0.4961591064929962 + <_> + + <_> + + + + <_>4 1 14 8 -1. + <_>11 1 7 4 2. + <_>4 5 7 4 2. + 0 + 0.1065180972218514 + 0.5138837099075317 + 0.1741005033254623 + <_> + + <_> + + + + <_>2 4 4 16 -1. + <_>2 4 2 8 2. + <_>4 12 2 8 2. + 0 + -0.0527447499334812 + 0.7353636026382446 + 0.4772881865501404 + <_> + + <_> + + + + <_>12 4 3 12 -1. + <_>12 10 3 6 2. + 0 + -4.7431760467588902e-003 + 0.3884406089782715 + 0.5292701721191406 + <_> + + <_> + + + + <_>4 5 10 12 -1. + <_>4 5 5 6 2. + <_>9 11 5 6 2. + 0 + 9.9676765967160463e-004 + 0.5223492980003357 + 0.4003424048423767 + <_> + + <_> + + + + <_>9 14 2 3 -1. + <_>9 15 2 1 3. + 0 + 8.0284131690859795e-003 + 0.4959106147289276 + 0.7212964296340942 + <_> + + <_> + + + + <_>5 4 2 3 -1. + <_>5 5 2 1 3. + 0 + 8.6025858763605356e-004 + 0.4444884061813355 + 0.5538476109504700 + <_> + + <_> + + + + <_>12 2 4 10 -1. + <_>14 2 2 5 2. + <_>12 7 2 5 2. + 0 + 9.3191501218825579e-004 + 0.5398371219635010 + 0.4163244068622589 + <_> + + <_> + + + + <_>6 4 7 3 -1. + <_>6 5 7 1 3. + 0 + -2.5082060601562262e-003 + 0.5854265093803406 + 0.4562500119209290 + <_> + + <_> + + + + <_>2 0 18 2 -1. + <_>11 0 9 1 2. + <_>2 1 9 1 2. + 0 + -2.1378761157393456e-003 + 0.4608069062232971 + 0.5280259251594544 + <_> + + <_> + + + + <_>0 0 18 2 -1. + <_>0 0 9 1 2. + <_>9 1 9 1 2. + 0 + -2.1546049974858761e-003 + 0.3791126906871796 + 0.5255997180938721 + <_> + + <_> + + + + <_>13 13 4 6 -1. + <_>15 13 2 3 2. + <_>13 16 2 3 2. + 0 + -7.6214009895920753e-003 + 0.5998609066009522 + 0.4952073991298676 + <_> + + <_> + + + + <_>3 13 4 6 -1. + <_>3 13 2 3 2. + <_>5 16 2 3 2. + 0 + 2.2055360022932291e-003 + 0.4484206140041351 + 0.5588530898094177 + <_> + + <_> + + + + <_>10 12 2 6 -1. + <_>10 15 2 3 2. + 0 + 1.2586950324475765e-003 + 0.5450747013092041 + 0.4423840939998627 + <_> + + <_> + + + + <_>5 9 10 10 -1. + <_>5 9 5 5 2. + <_>10 14 5 5 2. + 0 + -5.0926720723509789e-003 + 0.4118275046348572 + 0.5263035893440247 + <_> + + <_> + + + + <_>11 4 4 2 -1. + <_>13 4 2 1 2. + <_>11 5 2 1 2. + 0 + -2.5095739401876926e-003 + 0.5787907838821411 + 0.4998494982719421 + <_> + + <_> + + + + <_>7 12 6 8 -1. + <_>10 12 3 8 2. + 0 + -0.0773275569081306 + 0.8397865891456604 + 0.4811120033264160 + <_> + + <_> + + + + <_>12 2 4 10 -1. + <_>14 2 2 5 2. + <_>12 7 2 5 2. + 0 + -0.0414858199656010 + 0.2408611029386520 + 0.5176993012428284 + <_> + + <_> + + + + <_>8 11 2 1 -1. + <_>9 11 1 1 2. + 0 + 1.0355669655837119e-004 + 0.4355360865592957 + 0.5417054295539856 + <_> + + <_> + + + + <_>10 5 1 12 -1. + <_>10 9 1 4 3. + 0 + 1.3255809899419546e-003 + 0.5453971028327942 + 0.4894095063209534 + <_> + + <_> + + + + <_>0 11 6 9 -1. + <_>3 11 3 9 2. + 0 + -8.0598732456564903e-003 + 0.5771024227142334 + 0.4577918946743012 + <_> + + <_> + + + + <_>12 2 4 10 -1. + <_>14 2 2 5 2. + <_>12 7 2 5 2. + 0 + 0.0190586205571890 + 0.5169867873191834 + 0.3400475084781647 + <_> + + <_> + + + + <_>4 2 4 10 -1. + <_>4 2 2 5 2. + <_>6 7 2 5 2. + 0 + -0.0350578911602497 + 0.2203243970870972 + 0.5000503063201904 + <_> + + <_> + + + + <_>11 4 4 2 -1. + <_>13 4 2 1 2. + <_>11 5 2 1 2. + 0 + 5.7296059094369411e-003 + 0.5043408274650574 + 0.6597570776939392 + <_> + + <_> + + + + <_>0 14 6 3 -1. + <_>0 15 6 1 3. + 0 + -0.0116483299061656 + 0.2186284959316254 + 0.4996652901172638 + <_> + + <_> + + + + <_>11 4 4 2 -1. + <_>13 4 2 1 2. + <_>11 5 2 1 2. + 0 + 1.4544479781761765e-003 + 0.5007681846618652 + 0.5503727793693543 + <_> + + <_> + + + + <_>6 1 3 2 -1. + <_>7 1 1 2 3. + 0 + -2.5030909455381334e-004 + 0.4129841029644013 + 0.5241670012474060 + <_> + + <_> + + + + <_>11 4 4 2 -1. + <_>13 4 2 1 2. + <_>11 5 2 1 2. + 0 + -8.2907272735610604e-004 + 0.5412868261337280 + 0.4974496066570282 + <_> + + <_> + + + + <_>5 4 4 2 -1. + <_>5 4 2 1 2. + <_>7 5 2 1 2. + 0 + 1.0862209601327777e-003 + 0.4605529904365540 + 0.5879228711128235 + <_> + + <_> + + + + <_>13 0 2 12 -1. + <_>14 0 1 6 2. + <_>13 6 1 6 2. + 0 + 2.0000500080641359e-004 + 0.5278854966163635 + 0.4705209136009216 + <_> + + <_> + + + + <_>6 0 3 10 -1. + <_>7 0 1 10 3. + 0 + 2.9212920926511288e-003 + 0.5129609704017639 + 0.3755536973476410 + <_> + + <_> + + + + <_>3 0 17 8 -1. + <_>3 4 17 4 2. + 0 + 0.0253874007612467 + 0.4822691977024078 + 0.5790768265724182 + <_> + + <_> + + + + <_>0 4 20 4 -1. + <_>0 6 20 2 2. + 0 + -3.1968469265848398e-003 + 0.5248395204544067 + 0.3962840139865875 + 87.6960296630859380 + 17 + -1 + <_> + + + <_> + + <_> + + + + <_>0 3 8 2 -1. + <_>4 3 4 2 2. + 0 + 5.8031738735735416e-003 + 0.3498983979225159 + 0.5961983203887940 + <_> + + <_> + + + + <_>8 11 4 3 -1. + <_>8 12 4 1 3. + 0 + -9.0003069490194321e-003 + 0.6816636919975281 + 0.4478552043437958 + <_> + + <_> + + + + <_>5 7 6 4 -1. + <_>5 7 3 2 2. + <_>8 9 3 2 2. + 0 + -1.1549659539014101e-003 + 0.5585706233978272 + 0.3578251004219055 + <_> + + <_> + + + + <_>8 3 4 9 -1. + <_>8 6 4 3 3. + 0 + -1.1069850297644734e-003 + 0.5365036129951477 + 0.3050428032875061 + <_> + + <_> + + + + <_>8 15 1 4 -1. + <_>8 17 1 2 2. + 0 + 1.0308309720130637e-004 + 0.3639095127582550 + 0.5344635844230652 + <_> + + <_> + + + + <_>4 5 12 7 -1. + <_>8 5 4 7 3. + 0 + -5.0984839908778667e-003 + 0.2859157025814056 + 0.5504264831542969 + <_> + + <_> + + + + <_>4 2 4 10 -1. + <_>4 2 2 5 2. + <_>6 7 2 5 2. + 0 + 8.2572200335562229e-004 + 0.5236523747444153 + 0.3476041853427887 + <_> + + <_> + + + + <_>3 0 17 2 -1. + <_>3 1 17 1 2. + 0 + 9.9783325567841530e-003 + 0.4750322103500366 + 0.6219646930694580 + <_> + + <_> + + + + <_>2 2 16 15 -1. + <_>2 7 16 5 3. + 0 + -0.0374025292694569 + 0.3343375921249390 + 0.5278062820434570 + <_> + + <_> + + + + <_>15 2 5 2 -1. + <_>15 3 5 1 2. + 0 + 4.8548257909715176e-003 + 0.5192180871963501 + 0.3700444102287293 + <_> + + <_> + + + + <_>9 3 2 2 -1. + <_>10 3 1 2 2. + 0 + -1.8664470408111811e-003 + 0.2929843962192535 + 0.5091944932937622 + <_> + + <_> + + + + <_>4 5 16 15 -1. + <_>4 10 16 5 3. + 0 + 0.0168888904154301 + 0.3686845898628235 + 0.5431225895881653 + <_> + + <_> + + + + <_>7 13 5 6 -1. + <_>7 16 5 3 2. + 0 + -5.8372621424496174e-003 + 0.3632183969020844 + 0.5221335887908936 + <_> + + <_> + + + + <_>10 7 3 2 -1. + <_>11 7 1 2 3. + 0 + -1.4713739510625601e-003 + 0.5870683789253235 + 0.4700650870800018 + <_> + + <_> + + + + <_>8 3 3 1 -1. + <_>9 3 1 1 3. + 0 + -1.1522950371727347e-003 + 0.3195894956588745 + 0.5140954256057739 + <_> + + <_> + + + + <_>9 16 3 3 -1. + <_>9 17 3 1 3. + 0 + -4.2560300789773464e-003 + 0.6301859021186829 + 0.4814921021461487 + <_> + + <_> + + + + <_>0 2 5 2 -1. + <_>0 3 5 1 2. + 0 + -6.7378291860222816e-003 + 0.1977048069238663 + 0.5025808215141296 + <_> + + <_> + + + + <_>12 5 4 3 -1. + <_>12 6 4 1 3. + 0 + 0.0113826701417565 + 0.4954132139682770 + 0.6867045760154724 + <_> + + <_> + + + + <_>1 7 12 1 -1. + <_>5 7 4 1 3. + 0 + 5.1794708706438541e-003 + 0.5164427757263184 + 0.3350647985935211 + <_> + + <_> + + + + <_>7 5 6 14 -1. + <_>7 12 6 7 2. + 0 + -0.1174378991127014 + 0.2315246015787125 + 0.5234413743019104 + <_> + + <_> + + + + <_>0 0 8 10 -1. + <_>0 0 4 5 2. + <_>4 5 4 5 2. + 0 + 0.0287034492939711 + 0.4664297103881836 + 0.6722521185874939 + <_> + + <_> + + + + <_>9 1 3 2 -1. + <_>10 1 1 2 3. + 0 + 4.8231030814349651e-003 + 0.5220875144004822 + 0.2723532915115356 + <_> + + <_> + + + + <_>8 1 3 2 -1. + <_>9 1 1 2 3. + 0 + 2.6798530016094446e-003 + 0.5079277157783508 + 0.2906948924064636 + <_> + + <_> + + + + <_>12 4 3 3 -1. + <_>12 5 3 1 3. + 0 + 8.0504082143306732e-003 + 0.4885950982570648 + 0.6395021080970764 + <_> + + <_> + + + + <_>7 4 6 16 -1. + <_>7 12 6 8 2. + 0 + 4.8054959625005722e-003 + 0.5197256803512573 + 0.3656663894653320 + <_> + + <_> + + + + <_>12 4 3 3 -1. + <_>12 5 3 1 3. + 0 + -2.2420159075409174e-003 + 0.6153467893600464 + 0.4763701856136322 + <_> + + <_> + + + + <_>2 3 2 6 -1. + <_>2 5 2 2 3. + 0 + -0.0137577103450894 + 0.2637344896793366 + 0.5030903220176697 + <_> + + <_> + + + + <_>14 2 6 9 -1. + <_>14 5 6 3 3. + 0 + -0.1033829972147942 + 0.2287521958351135 + 0.5182461142539978 + <_> + + <_> + + + + <_>5 4 3 3 -1. + <_>5 5 3 1 3. + 0 + -9.4432085752487183e-003 + 0.6953303813934326 + 0.4694949090480804 + <_> + + <_> + + + + <_>9 17 3 2 -1. + <_>10 17 1 2 3. + 0 + 8.0271181650459766e-004 + 0.5450655221939087 + 0.4268783926963806 + <_> + + <_> + + + + <_>5 5 2 3 -1. + <_>5 6 2 1 3. + 0 + -4.1945669800043106e-003 + 0.6091387867927551 + 0.4571642875671387 + <_> + + <_> + + + + <_>13 11 3 6 -1. + <_>13 13 3 2 3. + 0 + 0.0109422104433179 + 0.5241063237190247 + 0.3284547030925751 + <_> + + <_> + + + + <_>3 14 2 6 -1. + <_>3 17 2 3 2. + 0 + -5.7841069065034389e-004 + 0.5387929081916809 + 0.4179368913173676 + <_> + + <_> + + + + <_>14 3 6 2 -1. + <_>14 4 6 1 2. + 0 + -2.0888620056211948e-003 + 0.4292691051959992 + 0.5301715731620789 + <_> + + <_> + + + + <_>0 8 16 2 -1. + <_>0 9 16 1 2. + 0 + 3.2383969519287348e-003 + 0.3792347908020020 + 0.5220744013786316 + <_> + + <_> + + + + <_>14 3 6 2 -1. + <_>14 4 6 1 2. + 0 + 4.9075027927756310e-003 + 0.5237283110618591 + 0.4126757979393005 + <_> + + <_> + + + + <_>0 0 5 6 -1. + <_>0 2 5 2 3. + 0 + -0.0322779417037964 + 0.1947655975818634 + 0.4994502067565918 + <_> + + <_> + + + + <_>12 5 4 3 -1. + <_>12 6 4 1 3. + 0 + -8.9711230248212814e-003 + 0.6011285185813904 + 0.4929032027721405 + <_> + + <_> + + + + <_>4 11 3 6 -1. + <_>4 13 3 2 3. + 0 + 0.0153210898861289 + 0.5009753704071045 + 0.2039822041988373 + <_> + + <_> + + + + <_>12 5 4 3 -1. + <_>12 6 4 1 3. + 0 + 2.0855569746345282e-003 + 0.4862189888954163 + 0.5721694827079773 + <_> + + <_> + + + + <_>9 5 1 3 -1. + <_>9 6 1 1 3. + 0 + 5.0615021027624607e-003 + 0.5000218749046326 + 0.1801805943250656 + <_> + + <_> + + + + <_>12 5 4 3 -1. + <_>12 6 4 1 3. + 0 + -3.7174751050770283e-003 + 0.5530117154121399 + 0.4897592961788178 + <_> + + <_> + + + + <_>6 6 8 12 -1. + <_>6 12 8 6 2. + 0 + -0.0121705001220107 + 0.4178605973720551 + 0.5383723974227905 + <_> + + <_> + + + + <_>12 5 4 3 -1. + <_>12 6 4 1 3. + 0 + 4.6248398721218109e-003 + 0.4997169971466065 + 0.5761327147483826 + <_> + + <_> + + + + <_>5 12 9 2 -1. + <_>8 12 3 2 3. + 0 + -2.1040429419372231e-004 + 0.5331807136535645 + 0.4097681045532227 + <_> + + <_> + + + + <_>12 5 4 3 -1. + <_>12 6 4 1 3. + 0 + -0.0146417804062366 + 0.5755925178527832 + 0.5051776170730591 + <_> + + <_> + + + + <_>4 5 4 3 -1. + <_>4 6 4 1 3. + 0 + 3.3199489116668701e-003 + 0.4576976895332336 + 0.6031805872917175 + <_> + + <_> + + + + <_>6 6 9 2 -1. + <_>9 6 3 2 3. + 0 + 3.7236879579722881e-003 + 0.4380396902561188 + 0.5415883064270020 + <_> + + <_> + + + + <_>4 11 1 3 -1. + <_>4 12 1 1 3. + 0 + 8.2951161311939359e-004 + 0.5163031816482544 + 0.3702219128608704 + <_> + + <_> + + + + <_>14 12 6 6 -1. + <_>14 12 3 6 2. + 0 + -0.0114084901288152 + 0.6072946786880493 + 0.4862565100193024 + <_> + + <_> + + + + <_>7 0 3 7 -1. + <_>8 0 1 7 3. + 0 + -4.5320121571421623e-003 + 0.3292475938796997 + 0.5088962912559509 + <_> + + <_> + + + + <_>9 8 3 3 -1. + <_>10 8 1 3 3. + 0 + 5.1276017911732197e-003 + 0.4829767942428589 + 0.6122708916664124 + <_> + + <_> + + + + <_>8 8 3 3 -1. + <_>9 8 1 3 3. + 0 + 9.8583158105611801e-003 + 0.4660679996013641 + 0.6556177139282227 + <_> + + <_> + + + + <_>5 10 11 3 -1. + <_>5 11 11 1 3. + 0 + 0.0369859188795090 + 0.5204849243164063 + 0.1690472066402435 + <_> + + <_> + + + + <_>5 7 10 1 -1. + <_>10 7 5 1 2. + 0 + 4.6491161920130253e-003 + 0.5167322158813477 + 0.3725225031375885 + <_> + + <_> + + + + <_>9 7 3 2 -1. + <_>10 7 1 2 3. + 0 + -4.2664702050387859e-003 + 0.6406493186950684 + 0.4987342953681946 + <_> + + <_> + + + + <_>8 7 3 2 -1. + <_>9 7 1 2 3. + 0 + -4.7956590424291790e-004 + 0.5897293090820313 + 0.4464873969554901 + <_> + + <_> + + + + <_>11 9 4 2 -1. + <_>11 9 2 2 2. + 0 + 3.6827160511165857e-003 + 0.5441560745239258 + 0.3472662866115570 + <_> + + <_> + + + + <_>5 9 4 2 -1. + <_>7 9 2 2 2. + 0 + -0.0100598800927401 + 0.2143162935972214 + 0.5004829764366150 + <_> + + <_> + + + + <_>14 10 2 4 -1. + <_>14 12 2 2 2. + 0 + -3.0361840617842972e-004 + 0.5386424064636231 + 0.4590323865413666 + <_> + + <_> + + + + <_>7 7 3 2 -1. + <_>8 7 1 2 3. + 0 + -1.4545479789376259e-003 + 0.5751184225082398 + 0.4497095048427582 + <_> + + <_> + + + + <_>14 17 6 3 -1. + <_>14 18 6 1 3. + 0 + 1.6515209572389722e-003 + 0.5421937704086304 + 0.4238520860671997 + <_> + + <_> + + + + <_>4 5 12 12 -1. + <_>4 5 6 6 2. + <_>10 11 6 6 2. + 0 + -7.8468639403581619e-003 + 0.4077920913696289 + 0.5258157253265381 + <_> + + <_> + + + + <_>6 9 8 8 -1. + <_>10 9 4 4 2. + <_>6 13 4 4 2. + 0 + -5.1259850151836872e-003 + 0.4229275882244110 + 0.5479453206062317 + <_> + + <_> + + + + <_>0 4 15 4 -1. + <_>5 4 5 4 3. + 0 + -0.0368909612298012 + 0.6596375703811646 + 0.4674678146839142 + <_> + + <_> + + + + <_>13 2 4 1 -1. + <_>13 2 2 1 2. + 0 + 2.4035639944486320e-004 + 0.4251135885715485 + 0.5573202967643738 + <_> + + <_> + + + + <_>4 12 2 2 -1. + <_>4 13 2 1 2. + 0 + -1.5150169929256663e-005 + 0.5259246826171875 + 0.4074114859104157 + <_> + + <_> + + + + <_>8 13 4 3 -1. + <_>8 14 4 1 3. + 0 + 2.2108471021056175e-003 + 0.4671722948551178 + 0.5886352062225342 + <_> + + <_> + + + + <_>9 13 2 3 -1. + <_>9 14 2 1 3. + 0 + -1.1568620102480054e-003 + 0.5711066126823425 + 0.4487161934375763 + <_> + + <_> + + + + <_>13 11 2 3 -1. + <_>13 12 2 1 3. + 0 + 4.9996292218565941e-003 + 0.5264198184013367 + 0.2898327112197876 + <_> + + <_> + + + + <_>7 12 4 4 -1. + <_>7 12 2 2 2. + <_>9 14 2 2 2. + 0 + -1.4656189596280456e-003 + 0.3891738057136536 + 0.5197871923446655 + <_> + + <_> + + + + <_>10 11 2 2 -1. + <_>11 11 1 1 2. + <_>10 12 1 1 2. + 0 + -1.1975039960816503e-003 + 0.5795872807502747 + 0.4927955865859985 + <_> + + <_> + + + + <_>8 17 3 2 -1. + <_>9 17 1 2 3. + 0 + -4.4954330660402775e-003 + 0.2377603054046631 + 0.5012555122375488 + <_> + + <_> + + + + <_>10 11 2 2 -1. + <_>11 11 1 1 2. + <_>10 12 1 1 2. + 0 + 1.4997160178609192e-004 + 0.4876626133918762 + 0.5617607831954956 + <_> + + <_> + + + + <_>0 17 6 3 -1. + <_>0 18 6 1 3. + 0 + 2.6391509454697371e-003 + 0.5168088078498840 + 0.3765509128570557 + <_> + + <_> + + + + <_>10 11 2 2 -1. + <_>11 11 1 1 2. + <_>10 12 1 1 2. + 0 + -2.9368131072260439e-004 + 0.5446649193763733 + 0.4874630868434906 + <_> + + <_> + + + + <_>8 11 2 2 -1. + <_>8 11 1 1 2. + <_>9 12 1 1 2. + 0 + 1.4211760135367513e-003 + 0.4687897861003876 + 0.6691331863403320 + <_> + + <_> + + + + <_>12 5 8 4 -1. + <_>12 5 4 4 2. + 0 + 0.0794276371598244 + 0.5193443894386292 + 0.2732945978641510 + <_> + + <_> + + + + <_>0 5 8 4 -1. + <_>4 5 4 4 2. + 0 + 0.0799375027418137 + 0.4971731007099152 + 0.1782083958387375 + <_> + + <_> + + + + <_>13 2 4 1 -1. + <_>13 2 2 1 2. + 0 + 0.0110892597585917 + 0.5165994763374329 + 0.3209475874900818 + <_> + + <_> + + + + <_>3 2 4 1 -1. + <_>5 2 2 1 2. + 0 + 1.6560709627810866e-004 + 0.4058471918106079 + 0.5307276248931885 + <_> + + <_> + + + + <_>10 0 4 2 -1. + <_>12 0 2 1 2. + <_>10 1 2 1 2. + 0 + -5.3354292176663876e-003 + 0.3445056974887848 + 0.5158129930496216 + <_> + + <_> + + + + <_>7 12 3 1 -1. + <_>8 12 1 1 3. + 0 + 1.1287260567769408e-003 + 0.4594863057136536 + 0.6075533032417297 + <_> + + <_> + + + + <_>8 11 4 8 -1. + <_>10 11 2 4 2. + <_>8 15 2 4 2. + 0 + -0.0219692196696997 + 0.1680400967597961 + 0.5228595733642578 + <_> + + <_> + + + + <_>9 9 2 2 -1. + <_>9 10 2 1 2. + 0 + -2.1775320055894554e-004 + 0.3861596882343292 + 0.5215672850608826 + <_> + + <_> + + + + <_>3 18 15 2 -1. + <_>3 19 15 1 2. + 0 + 2.0200149447191507e-004 + 0.5517979264259338 + 0.4363039135932922 + <_> + + <_> + + + + <_>2 6 2 12 -1. + <_>2 6 1 6 2. + <_>3 12 1 6 2. + 0 + -0.0217331498861313 + 0.7999460101127625 + 0.4789851009845734 + <_> + + <_> + + + + <_>9 8 2 3 -1. + <_>9 9 2 1 3. + 0 + -8.4399932529777288e-004 + 0.4085975885391235 + 0.5374773144721985 + <_> + + <_> + + + + <_>7 10 3 2 -1. + <_>8 10 1 2 3. + 0 + -4.3895249837078154e-004 + 0.5470405220985413 + 0.4366143047809601 + <_> + + <_> + + + + <_>11 11 3 1 -1. + <_>12 11 1 1 3. + 0 + 1.5092400135472417e-003 + 0.4988996982574463 + 0.5842149257659912 + <_> + + <_> + + + + <_>6 11 3 1 -1. + <_>7 11 1 1 3. + 0 + -3.5547839943319559e-003 + 0.6753690242767334 + 0.4721005856990814 + <_> + + <_> + + + + <_>9 2 4 2 -1. + <_>11 2 2 1 2. + <_>9 3 2 1 2. + 0 + 4.8191400128416717e-004 + 0.5415853857994080 + 0.4357109069824219 + <_> + + <_> + + + + <_>4 12 2 3 -1. + <_>4 13 2 1 3. + 0 + -6.0264398343861103e-003 + 0.2258509993553162 + 0.4991880953311920 + <_> + + <_> + + + + <_>2 1 18 3 -1. + <_>8 1 6 3 3. + 0 + -0.0116681400686502 + 0.6256554722785950 + 0.4927498996257782 + <_> + + <_> + + + + <_>5 1 4 14 -1. + <_>7 1 2 14 2. + 0 + -2.8718370012938976e-003 + 0.3947784900665283 + 0.5245801806449890 + <_> + + <_> + + + + <_>8 16 12 3 -1. + <_>8 16 6 3 2. + 0 + 0.0170511696487665 + 0.4752511084079742 + 0.5794224143028259 + <_> + + <_> + + + + <_>1 17 18 3 -1. + <_>7 17 6 3 3. + 0 + -0.0133520802482963 + 0.6041104793548584 + 0.4544535875320435 + <_> + + <_> + + + + <_>9 14 2 6 -1. + <_>9 17 2 3 2. + 0 + -3.9301801007241011e-004 + 0.4258275926113129 + 0.5544905066490173 + <_> + + <_> + + + + <_>9 12 1 8 -1. + <_>9 16 1 4 2. + 0 + 3.0483349692076445e-003 + 0.5233420133590698 + 0.3780272901058197 + <_> + + <_> + + + + <_>9 14 2 3 -1. + <_>9 15 2 1 3. + 0 + -4.3579288758337498e-003 + 0.6371889114379883 + 0.4838674068450928 + <_> + + <_> + + + + <_>9 6 2 12 -1. + <_>9 10 2 4 3. + 0 + 5.6661018170416355e-003 + 0.5374705791473389 + 0.4163666069507599 + <_> + + <_> + + + + <_>12 9 3 3 -1. + <_>12 10 3 1 3. + 0 + 6.0677339206449687e-005 + 0.4638795852661133 + 0.5311625003814697 + <_> + + <_> + + + + <_>0 1 4 8 -1. + <_>2 1 2 8 2. + 0 + 0.0367381609976292 + 0.4688656032085419 + 0.6466524004936218 + <_> + + <_> + + + + <_>9 1 6 2 -1. + <_>12 1 3 1 2. + <_>9 2 3 1 2. + 0 + 8.6528137326240540e-003 + 0.5204318761825562 + 0.2188657969236374 + <_> + + <_> + + + + <_>1 3 12 14 -1. + <_>1 10 12 7 2. + 0 + -0.1537135988473892 + 0.1630371958017349 + 0.4958840012550354 + <_> + + <_> + + + + <_>8 12 4 2 -1. + <_>10 12 2 1 2. + <_>8 13 2 1 2. + 0 + -4.1560421232134104e-004 + 0.5774459242820740 + 0.4696458876132965 + <_> + + <_> + + + + <_>1 9 10 2 -1. + <_>1 9 5 1 2. + <_>6 10 5 1 2. + 0 + -1.2640169588848948e-003 + 0.3977175951004028 + 0.5217198133468628 + <_> + + <_> + + + + <_>8 15 4 3 -1. + <_>8 16 4 1 3. + 0 + -3.5473341122269630e-003 + 0.6046528220176697 + 0.4808315038681030 + <_> + + <_> + + + + <_>6 8 8 3 -1. + <_>6 9 8 1 3. + 0 + 3.0019069527043030e-005 + 0.3996723890304565 + 0.5228201150894165 + <_> + + <_> + + + + <_>9 15 5 3 -1. + <_>9 16 5 1 3. + 0 + 1.3113019522279501e-003 + 0.4712158143520355 + 0.5765997767448425 + <_> + + <_> + + + + <_>8 7 4 3 -1. + <_>8 8 4 1 3. + 0 + -1.3374709524214268e-003 + 0.4109584987163544 + 0.5253170132637024 + <_> + + <_> + + + + <_>7 7 6 2 -1. + <_>7 8 6 1 2. + 0 + 0.0208767093718052 + 0.5202993750572205 + 0.1757981926202774 + <_> + + <_> + + + + <_>5 7 8 2 -1. + <_>5 7 4 1 2. + <_>9 8 4 1 2. + 0 + -7.5497948564589024e-003 + 0.6566609740257263 + 0.4694975018501282 + <_> + + <_> + + + + <_>12 9 3 3 -1. + <_>12 10 3 1 3. + 0 + 0.0241885501891375 + 0.5128673911094666 + 0.3370220959186554 + <_> + + <_> + + + + <_>4 7 4 2 -1. + <_>4 8 4 1 2. + 0 + -2.9358828905969858e-003 + 0.6580786705017090 + 0.4694541096687317 + <_> + + <_> + + + + <_>14 2 6 9 -1. + <_>14 5 6 3 3. + 0 + 0.0575579293072224 + 0.5146445035934448 + 0.2775259912014008 + <_> + + <_> + + + + <_>4 9 3 3 -1. + <_>5 9 1 3 3. + 0 + -1.1343370424583554e-003 + 0.3836601972579956 + 0.5192667245864868 + <_> + + <_> + + + + <_>12 9 3 3 -1. + <_>12 10 3 1 3. + 0 + 0.0168169997632504 + 0.5085592865943909 + 0.6177260875701904 + <_> + + <_> + + + + <_>0 2 6 9 -1. + <_>0 5 6 3 3. + 0 + 5.0535178743302822e-003 + 0.5138763189315796 + 0.3684791922569275 + <_> + + <_> + + + + <_>17 3 3 6 -1. + <_>18 3 1 6 3. + 0 + -4.5874710194766521e-003 + 0.5989655256271362 + 0.4835202097892761 + <_> + + <_> + + + + <_>0 3 3 6 -1. + <_>1 3 1 6 3. + 0 + 1.6882460331544280e-003 + 0.4509486854076386 + 0.5723056793212891 + <_> + + <_> + + + + <_>17 14 1 2 -1. + <_>17 15 1 1 2. + 0 + -1.6554000321775675e-003 + 0.3496770858764648 + 0.5243319272994995 + <_> + + <_> + + + + <_>4 9 4 3 -1. + <_>6 9 2 3 2. + 0 + -0.0193738006055355 + 0.1120536997914314 + 0.4968712925910950 + <_> + + <_> + + + + <_>12 9 3 3 -1. + <_>12 10 3 1 3. + 0 + 0.0103744501248002 + 0.5148196816444397 + 0.4395213127136231 + <_> + + <_> + + + + <_>5 9 3 3 -1. + <_>5 10 3 1 3. + 0 + 1.4973050565458834e-004 + 0.4084999859333038 + 0.5269886851310730 + <_> + + <_> + + + + <_>9 5 6 8 -1. + <_>12 5 3 4 2. + <_>9 9 3 4 2. + 0 + -0.0429819300770760 + 0.6394104957580566 + 0.5018504261970520 + <_> + + <_> + + + + <_>5 5 6 8 -1. + <_>5 5 3 4 2. + <_>8 9 3 4 2. + 0 + 8.3065936341881752e-003 + 0.4707553982734680 + 0.6698353290557861 + <_> + + <_> + + + + <_>16 1 4 6 -1. + <_>16 4 4 3 2. + 0 + -4.1285790503025055e-003 + 0.4541369080543518 + 0.5323647260665894 + <_> + + <_> + + + + <_>1 0 6 20 -1. + <_>3 0 2 20 3. + 0 + 1.7399420030415058e-003 + 0.4333961904048920 + 0.5439866185188294 + <_> + + <_> + + + + <_>12 11 3 2 -1. + <_>13 11 1 2 3. + 0 + 1.1739750334527344e-004 + 0.4579687118530273 + 0.5543426275253296 + <_> + + <_> + + + + <_>5 11 3 2 -1. + <_>6 11 1 2 3. + 0 + 1.8585780344437808e-004 + 0.4324643909931183 + 0.5426754951477051 + <_> + + <_> + + + + <_>9 4 6 1 -1. + <_>11 4 2 1 3. + 0 + 5.5587692186236382e-003 + 0.5257220864295960 + 0.3550611138343811 + <_> + + <_> + + + + <_>0 0 8 3 -1. + <_>4 0 4 3 2. + 0 + -7.9851560294628143e-003 + 0.6043018102645874 + 0.4630635976791382 + <_> + + <_> + + + + <_>15 0 2 5 -1. + <_>15 0 1 5 2. + 0 + 6.0594122624024749e-004 + 0.4598254859447479 + 0.5533195137977600 + <_> + + <_> + + + + <_>4 1 3 2 -1. + <_>5 1 1 2 3. + 0 + -2.2983040253166109e-004 + 0.4130752086639404 + 0.5322461128234863 + <_> + + <_> + + + + <_>7 0 6 15 -1. + <_>9 0 2 15 3. + 0 + 4.3740210821852088e-004 + 0.4043039977550507 + 0.5409289002418518 + <_> + + <_> + + + + <_>6 11 3 1 -1. + <_>7 11 1 1 3. + 0 + 2.9482020181603730e-004 + 0.4494963884353638 + 0.5628852248191834 + <_> + + <_> + + + + <_>12 0 3 4 -1. + <_>13 0 1 4 3. + 0 + 0.0103126596659422 + 0.5177510976791382 + 0.2704316973686218 + <_> + + <_> + + + + <_>5 4 6 1 -1. + <_>7 4 2 1 3. + 0 + -7.7241109684109688e-003 + 0.1988019049167633 + 0.4980553984642029 + <_> + + <_> + + + + <_>12 7 3 2 -1. + <_>12 8 3 1 2. + 0 + -4.6797208487987518e-003 + 0.6644750237464905 + 0.5018296241760254 + <_> + + <_> + + + + <_>0 1 4 6 -1. + <_>0 4 4 3 2. + 0 + -5.0755459815263748e-003 + 0.3898304998874664 + 0.5185269117355347 + <_> + + <_> + + + + <_>12 7 3 2 -1. + <_>12 8 3 1 2. + 0 + 2.2479740437120199e-003 + 0.4801808893680573 + 0.5660336017608643 + <_> + + <_> + + + + <_>2 16 3 3 -1. + <_>2 17 3 1 3. + 0 + 8.3327008178457618e-004 + 0.5210919976234436 + 0.3957188129425049 + <_> + + <_> + + + + <_>13 8 6 10 -1. + <_>16 8 3 5 2. + <_>13 13 3 5 2. + 0 + -0.0412793308496475 + 0.6154541969299316 + 0.5007054209709168 + <_> + + <_> + + + + <_>0 9 5 2 -1. + <_>0 10 5 1 2. + 0 + -5.0930189900100231e-004 + 0.3975942134857178 + 0.5228403806686401 + <_> + + <_> + + + + <_>12 11 2 2 -1. + <_>13 11 1 1 2. + <_>12 12 1 1 2. + 0 + 1.2568780221045017e-003 + 0.4979138076305389 + 0.5939183235168457 + <_> + + <_> + + + + <_>3 15 3 3 -1. + <_>3 16 3 1 3. + 0 + 8.0048497766256332e-003 + 0.4984497129917145 + 0.1633366048336029 + <_> + + <_> + + + + <_>12 7 3 2 -1. + <_>12 8 3 1 2. + 0 + -1.1879300000146031e-003 + 0.5904964804649353 + 0.4942624866962433 + <_> + + <_> + + + + <_>5 7 3 2 -1. + <_>5 8 3 1 2. + 0 + 6.1948952497914433e-004 + 0.4199557900428772 + 0.5328726172447205 + <_> + + <_> + + + + <_>9 5 9 9 -1. + <_>9 8 9 3 3. + 0 + 6.6829859279096127e-003 + 0.5418602824211121 + 0.4905889034271240 + <_> + + <_> + + + + <_>5 0 3 7 -1. + <_>6 0 1 7 3. + 0 + -3.7062340416014194e-003 + 0.3725939095020294 + 0.5138000249862671 + <_> + + <_> + + + + <_>5 2 12 5 -1. + <_>9 2 4 5 3. + 0 + -0.0397394113242626 + 0.6478961110115051 + 0.5050346851348877 + <_> + + <_> + + + + <_>6 11 2 2 -1. + <_>6 11 1 1 2. + <_>7 12 1 1 2. + 0 + 1.4085009461268783e-003 + 0.4682339131832123 + 0.6377884149551392 + <_> + + <_> + + + + <_>15 15 3 2 -1. + <_>15 16 3 1 2. + 0 + 3.9322688826359808e-004 + 0.5458530187606812 + 0.4150482118129730 + <_> + + <_> + + + + <_>2 15 3 2 -1. + <_>2 16 3 1 2. + 0 + -1.8979819724336267e-003 + 0.3690159916877747 + 0.5149704217910767 + <_> + + <_> + + + + <_>14 12 6 8 -1. + <_>17 12 3 4 2. + <_>14 16 3 4 2. + 0 + -0.0139704402536154 + 0.6050562858581543 + 0.4811357855796814 + <_> + + <_> + + + + <_>2 8 15 6 -1. + <_>7 8 5 6 3. + 0 + -0.1010081991553307 + 0.2017080038785934 + 0.4992361962795258 + <_> + + <_> + + + + <_>2 2 18 17 -1. + <_>8 2 6 17 3. + 0 + -0.0173469204455614 + 0.5713148713111877 + 0.4899486005306244 + <_> + + <_> + + + + <_>5 1 4 1 -1. + <_>7 1 2 1 2. + 0 + 1.5619759506080300e-004 + 0.4215388894081116 + 0.5392642021179199 + <_> + + <_> + + + + <_>5 2 12 5 -1. + <_>9 2 4 5 3. + 0 + 0.1343892961740494 + 0.5136151909828186 + 0.3767612874507904 + <_> + + <_> + + + + <_>3 2 12 5 -1. + <_>7 2 4 5 3. + 0 + -0.0245822407305241 + 0.7027357816696167 + 0.4747906923294067 + <_> + + <_> + + + + <_>4 9 12 4 -1. + <_>10 9 6 2 2. + <_>4 11 6 2 2. + 0 + -3.8553720805794001e-003 + 0.4317409098148346 + 0.5427716970443726 + <_> + + <_> + + + + <_>5 15 6 2 -1. + <_>5 15 3 1 2. + <_>8 16 3 1 2. + 0 + -2.3165249731391668e-003 + 0.5942698717117310 + 0.4618647992610931 + <_> + + <_> + + + + <_>10 14 2 3 -1. + <_>10 15 2 1 3. + 0 + -4.8518120311200619e-003 + 0.6191568970680237 + 0.4884895086288452 + <_> + + <_> + + + + <_>0 13 20 2 -1. + <_>0 13 10 1 2. + <_>10 14 10 1 2. + 0 + 2.4699938949197531e-003 + 0.5256664752960205 + 0.4017199873924255 + <_> + + <_> + + + + <_>4 9 12 8 -1. + <_>10 9 6 4 2. + <_>4 13 6 4 2. + 0 + 0.0454969592392445 + 0.5237867832183838 + 0.2685773968696594 + <_> + + <_> + + + + <_>8 13 3 6 -1. + <_>8 16 3 3 2. + 0 + -0.0203195996582508 + 0.2130445986986160 + 0.4979738891124725 + <_> + + <_> + + + + <_>10 12 2 2 -1. + <_>10 13 2 1 2. + 0 + 2.6994998916052282e-004 + 0.4814041852951050 + 0.5543122291564941 + <_> + + <_> + + + + <_>9 12 2 2 -1. + <_>9 12 1 1 2. + <_>10 13 1 1 2. + 0 + -1.8232699949294329e-003 + 0.6482579708099365 + 0.4709989130496979 + <_> + + <_> + + + + <_>4 11 14 4 -1. + <_>11 11 7 2 2. + <_>4 13 7 2 2. + 0 + -6.3015790656208992e-003 + 0.4581927955150604 + 0.5306236147880554 + <_> + + <_> + + + + <_>8 5 4 2 -1. + <_>8 6 4 1 2. + 0 + -2.4139499873854220e-004 + 0.5232086777687073 + 0.4051763117313385 + <_> + + <_> + + + + <_>10 10 6 3 -1. + <_>12 10 2 3 3. + 0 + -1.0330369696021080e-003 + 0.5556201934814453 + 0.4789193868637085 + <_> + + <_> + + + + <_>2 14 1 2 -1. + <_>2 15 1 1 2. + 0 + 1.8041160365100950e-004 + 0.5229442715644836 + 0.4011810123920441 + <_> + + <_> + + + + <_>13 8 6 12 -1. + <_>16 8 3 6 2. + <_>13 14 3 6 2. + 0 + -0.0614078603684902 + 0.6298682093620300 + 0.5010703206062317 + <_> + + <_> + + + + <_>1 8 6 12 -1. + <_>1 8 3 6 2. + <_>4 14 3 6 2. + 0 + -0.0695439130067825 + 0.7228280901908875 + 0.4773184061050415 + <_> + + <_> + + + + <_>10 0 6 10 -1. + <_>12 0 2 10 3. + 0 + -0.0705426633358002 + 0.2269513010978699 + 0.5182529091835022 + <_> + + <_> + + + + <_>5 11 8 4 -1. + <_>5 11 4 2 2. + <_>9 13 4 2 2. + 0 + 2.4423799477517605e-003 + 0.5237097144126892 + 0.4098151028156281 + <_> + + <_> + + + + <_>10 16 8 4 -1. + <_>14 16 4 2 2. + <_>10 18 4 2 2. + 0 + 1.5494349645450711e-003 + 0.4773750901222229 + 0.5468043088912964 + <_> + + <_> + + + + <_>7 7 6 6 -1. + <_>9 7 2 6 3. + 0 + -0.0239142198115587 + 0.7146975994110107 + 0.4783824980258942 + <_> + + <_> + + + + <_>10 2 4 10 -1. + <_>10 2 2 10 2. + 0 + -0.0124536901712418 + 0.2635296881198883 + 0.5241122841835022 + <_> + + <_> + + + + <_>6 1 4 9 -1. + <_>8 1 2 9 2. + 0 + -2.0760179904755205e-004 + 0.3623757064342499 + 0.5113608837127686 + <_> + + <_> + + + + <_>12 19 2 1 -1. + <_>12 19 1 1 2. + 0 + 2.9781080229440704e-005 + 0.4705932140350342 + 0.5432801842689514 + 90.2533493041992190 + 18 + -1 + <_> + + + <_> + + <_> + + + + <_>1 2 4 9 -1. + <_>3 2 2 9 2. + 0 + 0.0117727499455214 + 0.3860518932342529 + 0.6421167254447937 + <_> + + <_> + + + + <_>7 5 6 4 -1. + <_>9 5 2 4 3. + 0 + 0.0270375702530146 + 0.4385654926300049 + 0.6754038929939270 + <_> + + <_> + + + + <_>9 4 2 4 -1. + <_>9 6 2 2 2. + 0 + -3.6419500247575343e-005 + 0.5487101078033447 + 0.3423315882682800 + <_> + + <_> + + + + <_>14 5 2 8 -1. + <_>14 9 2 4 2. + 0 + 1.9995409529656172e-003 + 0.3230532109737396 + 0.5400317907333374 + <_> + + <_> + + + + <_>7 6 5 12 -1. + <_>7 12 5 6 2. + 0 + 4.5278300531208515e-003 + 0.5091639757156372 + 0.2935043871402741 + <_> + + <_> + + + + <_>14 6 2 6 -1. + <_>14 9 2 3 2. + 0 + 4.7890920541249216e-004 + 0.4178153872489929 + 0.5344064235687256 + <_> + + <_> + + + + <_>4 6 2 6 -1. + <_>4 9 2 3 2. + 0 + 1.1720920447260141e-003 + 0.2899182140827179 + 0.5132070779800415 + <_> + + <_> + + + + <_>8 15 10 4 -1. + <_>13 15 5 2 2. + <_>8 17 5 2 2. + 0 + 9.5305702416226268e-004 + 0.4280124902725220 + 0.5560845136642456 + <_> + + <_> + + + + <_>6 18 2 2 -1. + <_>7 18 1 2 2. + 0 + 1.5099150004971307e-005 + 0.4044871926307678 + 0.5404760241508484 + <_> + + <_> + + + + <_>11 3 6 2 -1. + <_>11 4 6 1 2. + 0 + -6.0817901976406574e-004 + 0.4271768927574158 + 0.5503466129302979 + <_> + + <_> + + + + <_>2 0 16 6 -1. + <_>2 2 16 2 3. + 0 + 3.3224520739167929e-003 + 0.3962723910808563 + 0.5369734764099121 + <_> + + <_> + + + + <_>11 3 6 2 -1. + <_>11 4 6 1 2. + 0 + -1.1037490330636501e-003 + 0.4727177917957306 + 0.5237749814987183 + <_> + + <_> + + + + <_>4 11 10 3 -1. + <_>4 12 10 1 3. + 0 + -1.4350269921123981e-003 + 0.5603008270263672 + 0.4223509132862091 + <_> + + <_> + + + + <_>11 3 6 2 -1. + <_>11 4 6 1 2. + 0 + 2.0767399109899998e-003 + 0.5225917100906372 + 0.4732725918292999 + <_> + + <_> + + + + <_>3 3 6 2 -1. + <_>3 4 6 1 2. + 0 + -1.6412809782195836e-004 + 0.3999075889587402 + 0.5432739853858948 + <_> + + <_> + + + + <_>16 0 4 7 -1. + <_>16 0 2 7 2. + 0 + 8.8302437216043472e-003 + 0.4678385853767395 + 0.6027327179908752 + <_> + + <_> + + + + <_>0 14 9 6 -1. + <_>0 16 9 2 3. + 0 + -0.0105520701035857 + 0.3493967056274414 + 0.5213974714279175 + <_> + + <_> + + + + <_>9 16 3 3 -1. + <_>9 17 3 1 3. + 0 + -2.2731600329279900e-003 + 0.6185818910598755 + 0.4749062955379486 + <_> + + <_> + + + + <_>4 6 6 2 -1. + <_>6 6 2 2 3. + 0 + -8.4786332445219159e-004 + 0.5285341143608093 + 0.3843482136726379 + <_> + + <_> + + + + <_>15 11 1 3 -1. + <_>15 12 1 1 3. + 0 + 1.2081359745934606e-003 + 0.5360640883445740 + 0.3447335958480835 + <_> + + <_> + + + + <_>5 5 2 3 -1. + <_>5 6 2 1 3. + 0 + 2.6512730401009321e-003 + 0.4558292031288147 + 0.6193962097167969 + <_> + + <_> + + + + <_>10 9 2 2 -1. + <_>10 10 2 1 2. + 0 + -1.1012479662895203e-003 + 0.3680230081081390 + 0.5327628254890442 + <_> + + <_> + + + + <_>3 1 4 3 -1. + <_>5 1 2 3 2. + 0 + 4.9561518244445324e-004 + 0.3960595130920410 + 0.5274940729141235 + <_> + + <_> + + + + <_>16 0 4 7 -1. + <_>16 0 2 7 2. + 0 + -0.0439017713069916 + 0.7020444869995117 + 0.4992839097976685 + <_> + + <_> + + + + <_>0 0 20 1 -1. + <_>10 0 10 1 2. + 0 + 0.0346903502941132 + 0.5049164295196533 + 0.2766602933406830 + <_> + + <_> + + + + <_>15 11 1 3 -1. + <_>15 12 1 1 3. + 0 + -2.7442190330475569e-003 + 0.2672632932662964 + 0.5274971127510071 + <_> + + <_> + + + + <_>0 4 3 4 -1. + <_>1 4 1 4 3. + 0 + 3.3316588960587978e-003 + 0.4579482972621918 + 0.6001101732254028 + <_> + + <_> + + + + <_>16 3 3 6 -1. + <_>16 5 3 2 3. + 0 + -0.0200445707887411 + 0.3171594142913818 + 0.5235717892646790 + <_> + + <_> + + + + <_>1 3 3 6 -1. + <_>1 5 3 2 3. + 0 + 1.3492030557245016e-003 + 0.5265362858772278 + 0.4034324884414673 + <_> + + <_> + + + + <_>6 2 12 6 -1. + <_>12 2 6 3 2. + <_>6 5 6 3 2. + 0 + 2.9702018946409225e-003 + 0.5332456827163696 + 0.4571984112262726 + <_> + + <_> + + + + <_>8 10 4 3 -1. + <_>8 11 4 1 3. + 0 + 6.3039981760084629e-003 + 0.4593310952186585 + 0.6034635901451111 + <_> + + <_> + + + + <_>4 2 14 6 -1. + <_>11 2 7 3 2. + <_>4 5 7 3 2. + 0 + -0.0129365902394056 + 0.4437963962554932 + 0.5372971296310425 + <_> + + <_> + + + + <_>9 11 2 3 -1. + <_>9 12 2 1 3. + 0 + 4.0148729458451271e-003 + 0.4680323898792267 + 0.6437833905220032 + <_> + + <_> + + + + <_>15 13 2 3 -1. + <_>15 14 2 1 3. + 0 + -2.6401679497212172e-003 + 0.3709631860256195 + 0.5314332842826843 + <_> + + <_> + + + + <_>8 12 4 3 -1. + <_>8 13 4 1 3. + 0 + 0.0139184398576617 + 0.4723555147647858 + 0.7130808830261231 + <_> + + <_> + + + + <_>15 11 1 3 -1. + <_>15 12 1 1 3. + 0 + -4.5087869511917233e-004 + 0.4492394030094147 + 0.5370404124259949 + <_> + + <_> + + + + <_>7 13 5 2 -1. + <_>7 14 5 1 2. + 0 + 2.5384349282830954e-004 + 0.4406864047050476 + 0.5514402985572815 + <_> + + <_> + + + + <_>7 12 6 3 -1. + <_>7 13 6 1 3. + 0 + 2.2710000630468130e-003 + 0.4682416915893555 + 0.5967984199523926 + <_> + + <_> + + + + <_>5 11 4 4 -1. + <_>5 13 4 2 2. + 0 + 2.4120779708027840e-003 + 0.5079392194747925 + 0.3018598854541779 + <_> + + <_> + + + + <_>11 4 3 3 -1. + <_>12 4 1 3 3. + 0 + -3.6025670851813629e-005 + 0.5601037144660950 + 0.4471096992492676 + <_> + + <_> + + + + <_>6 4 3 3 -1. + <_>7 4 1 3 3. + 0 + -7.4905529618263245e-003 + 0.2207535058259964 + 0.4989944100379944 + <_> + + <_> + + + + <_>16 5 3 6 -1. + <_>17 5 1 6 3. + 0 + -0.0175131205469370 + 0.6531215906143189 + 0.5017648935317993 + <_> + + <_> + + + + <_>3 6 12 7 -1. + <_>7 6 4 7 3. + 0 + 0.1428163051605225 + 0.4967963099479675 + 0.1482062041759491 + <_> + + <_> + + + + <_>16 5 3 6 -1. + <_>17 5 1 6 3. + 0 + 5.5345268920063972e-003 + 0.4898946881294251 + 0.5954223871231079 + <_> + + <_> + + + + <_>3 13 2 3 -1. + <_>3 14 2 1 3. + 0 + -9.6323591424152255e-004 + 0.3927116990089417 + 0.5196074247360230 + <_> + + <_> + + + + <_>16 5 3 6 -1. + <_>17 5 1 6 3. + 0 + -2.0370010752230883e-003 + 0.5613325238227844 + 0.4884858131408691 + <_> + + <_> + + + + <_>1 5 3 6 -1. + <_>2 5 1 6 3. + 0 + 1.6614829655736685e-003 + 0.4472880065441132 + 0.5578880906105042 + <_> + + <_> + + + + <_>1 9 18 1 -1. + <_>7 9 6 1 3. + 0 + -3.1188090797513723e-003 + 0.3840532898902893 + 0.5397477746009827 + <_> + + <_> + + + + <_>0 9 8 7 -1. + <_>4 9 4 7 2. + 0 + -6.4000617712736130e-003 + 0.5843983888626099 + 0.4533218145370483 + <_> + + <_> + + + + <_>12 11 8 2 -1. + <_>12 12 8 1 2. + 0 + 3.1319601112045348e-004 + 0.5439221858978272 + 0.4234727919101715 + <_> + + <_> + + + + <_>0 11 8 2 -1. + <_>0 12 8 1 2. + 0 + -0.0182220991700888 + 0.1288464963436127 + 0.4958404898643494 + <_> + + <_> + + + + <_>9 13 2 3 -1. + <_>9 14 2 1 3. + 0 + 8.7969247251749039e-003 + 0.4951297938823700 + 0.7153480052947998 + <_> + + <_> + + + + <_>4 10 12 4 -1. + <_>4 10 6 2 2. + <_>10 12 6 2 2. + 0 + -4.2395070195198059e-003 + 0.3946599960327148 + 0.5194936990737915 + <_> + + <_> + + + + <_>9 3 3 7 -1. + <_>10 3 1 7 3. + 0 + 9.7086271271109581e-003 + 0.4897503852844238 + 0.6064900159835815 + <_> + + <_> + + + + <_>7 2 3 5 -1. + <_>8 2 1 5 3. + 0 + -3.9934171363711357e-003 + 0.3245440125465393 + 0.5060828924179077 + <_> + + <_> + + + + <_>9 12 4 6 -1. + <_>11 12 2 3 2. + <_>9 15 2 3 2. + 0 + -0.0167850591242313 + 0.1581953018903732 + 0.5203778743743897 + <_> + + <_> + + + + <_>8 7 3 6 -1. + <_>9 7 1 6 3. + 0 + 0.0182720907032490 + 0.4680935144424439 + 0.6626979112625122 + <_> + + <_> + + + + <_>15 4 4 2 -1. + <_>15 5 4 1 2. + 0 + 5.6872838176786900e-003 + 0.5211697816848755 + 0.3512184917926788 + <_> + + <_> + + + + <_>8 7 3 3 -1. + <_>9 7 1 3 3. + 0 + -1.0739039862528443e-003 + 0.5768386125564575 + 0.4529845118522644 + <_> + + <_> + + + + <_>14 2 6 4 -1. + <_>14 4 6 2 2. + 0 + -3.7093870341777802e-003 + 0.4507763087749481 + 0.5313581228256226 + <_> + + <_> + + + + <_>7 16 6 1 -1. + <_>9 16 2 1 3. + 0 + -2.1110709349159151e-004 + 0.5460820198059082 + 0.4333376884460449 + <_> + + <_> + + + + <_>15 13 2 3 -1. + <_>15 14 2 1 3. + 0 + 1.0670139454305172e-003 + 0.5371856093406677 + 0.4078390896320343 + <_> + + <_> + + + + <_>8 7 3 10 -1. + <_>9 7 1 10 3. + 0 + 3.5943021066486835e-003 + 0.4471287131309509 + 0.5643836259841919 + <_> + + <_> + + + + <_>11 10 2 6 -1. + <_>11 12 2 2 3. + 0 + -5.1776031032204628e-003 + 0.4499393105506897 + 0.5280330181121826 + <_> + + <_> + + + + <_>6 10 4 1 -1. + <_>8 10 2 1 2. + 0 + -2.5414369883947074e-004 + 0.5516173243522644 + 0.4407708048820496 + <_> + + <_> + + + + <_>10 9 2 2 -1. + <_>10 10 2 1 2. + 0 + 6.3522560521960258e-003 + 0.5194190144538879 + 0.2465227991342545 + <_> + + <_> + + + + <_>8 9 2 2 -1. + <_>8 10 2 1 2. + 0 + -4.4205080484971404e-004 + 0.3830705881118774 + 0.5139682292938232 + <_> + + <_> + + + + <_>12 7 2 2 -1. + <_>13 7 1 1 2. + <_>12 8 1 1 2. + 0 + 7.4488727841526270e-004 + 0.4891090989112854 + 0.5974786877632141 + <_> + + <_> + + + + <_>5 7 2 2 -1. + <_>5 7 1 1 2. + <_>6 8 1 1 2. + 0 + -3.5116379149258137e-003 + 0.7413681745529175 + 0.4768764972686768 + <_> + + <_> + + + + <_>13 0 3 14 -1. + <_>14 0 1 14 3. + 0 + -0.0125409103929996 + 0.3648819029331207 + 0.5252826809883118 + <_> + + <_> + + + + <_>4 0 3 14 -1. + <_>5 0 1 14 3. + 0 + 9.4931852072477341e-003 + 0.5100492835044861 + 0.3629586994647980 + <_> + + <_> + + + + <_>13 4 3 14 -1. + <_>14 4 1 14 3. + 0 + 0.0129611501470208 + 0.5232442021369934 + 0.4333561062812805 + <_> + + <_> + + + + <_>9 14 2 3 -1. + <_>9 15 2 1 3. + 0 + 4.7209449112415314e-003 + 0.4648149013519287 + 0.6331052780151367 + <_> + + <_> + + + + <_>8 14 4 3 -1. + <_>8 15 4 1 3. + 0 + -2.3119079414755106e-003 + 0.5930309891700745 + 0.4531058073043823 + <_> + + <_> + + + + <_>4 2 3 16 -1. + <_>5 2 1 16 3. + 0 + -2.8262299019843340e-003 + 0.3870477974414825 + 0.5257101058959961 + <_> + + <_> + + + + <_>7 2 8 10 -1. + <_>7 7 8 5 2. + 0 + -1.4311339473351836e-003 + 0.5522503256797791 + 0.4561854898929596 + <_> + + <_> + + + + <_>6 14 7 3 -1. + <_>6 15 7 1 3. + 0 + 1.9378310535103083e-003 + 0.4546220898628235 + 0.5736966729164124 + <_> + + <_> + + + + <_>9 2 10 12 -1. + <_>14 2 5 6 2. + <_>9 8 5 6 2. + 0 + 2.6343559147790074e-004 + 0.5345739126205444 + 0.4571875035762787 + <_> + + <_> + + + + <_>6 7 8 2 -1. + <_>6 8 8 1 2. + 0 + 7.8257522545754910e-004 + 0.3967815935611725 + 0.5220187902450562 + <_> + + <_> + + + + <_>8 13 4 6 -1. + <_>8 16 4 3 2. + 0 + -0.0195504408329725 + 0.2829642891883850 + 0.5243508219718933 + <_> + + <_> + + + + <_>6 6 1 3 -1. + <_>6 7 1 1 3. + 0 + 4.3914958951063454e-004 + 0.4590066969394684 + 0.5899090170860291 + <_> + + <_> + + + + <_>16 2 4 6 -1. + <_>16 4 4 2 3. + 0 + 0.0214520003646612 + 0.5231410861015320 + 0.2855378985404968 + <_> + + <_> + + + + <_>6 6 4 2 -1. + <_>6 6 2 1 2. + <_>8 7 2 1 2. + 0 + 5.8973580598831177e-004 + 0.4397256970405579 + 0.5506421923637390 + <_> + + <_> + + + + <_>16 2 4 6 -1. + <_>16 4 4 2 3. + 0 + -0.0261576101183891 + 0.3135079145431519 + 0.5189175009727478 + <_> + + <_> + + + + <_>0 2 4 6 -1. + <_>0 4 4 2 3. + 0 + -0.0139598604291677 + 0.3213272988796234 + 0.5040717720985413 + <_> + + <_> + + + + <_>9 6 2 6 -1. + <_>9 6 1 6 2. + 0 + -6.3699018210172653e-003 + 0.6387544870376587 + 0.4849506914615631 + <_> + + <_> + + + + <_>3 4 6 10 -1. + <_>3 9 6 5 2. + 0 + -8.5613820701837540e-003 + 0.2759132087230682 + 0.5032019019126892 + <_> + + <_> + + + + <_>9 5 2 6 -1. + <_>9 5 1 6 2. + 0 + 9.6622901037335396e-004 + 0.4685640931129456 + 0.5834879279136658 + <_> + + <_> + + + + <_>3 13 2 3 -1. + <_>3 14 2 1 3. + 0 + 7.6550268568098545e-004 + 0.5175207257270813 + 0.3896422088146210 + <_> + + <_> + + + + <_>13 13 3 2 -1. + <_>13 14 3 1 2. + 0 + -8.1833340227603912e-003 + 0.2069136947393417 + 0.5208122134208679 + <_> + + <_> + + + + <_>2 16 10 4 -1. + <_>2 16 5 2 2. + <_>7 18 5 2 2. + 0 + -9.3976939097046852e-003 + 0.6134091019630432 + 0.4641222953796387 + <_> + + <_> + + + + <_>5 6 10 6 -1. + <_>10 6 5 3 2. + <_>5 9 5 3 2. + 0 + 4.8028980381786823e-003 + 0.5454108119010925 + 0.4395219981670380 + <_> + + <_> + + + + <_>7 14 1 3 -1. + <_>7 15 1 1 3. + 0 + -3.5680569708347321e-003 + 0.6344485282897949 + 0.4681093990802765 + <_> + + <_> + + + + <_>14 16 6 3 -1. + <_>14 17 6 1 3. + 0 + 4.0733120404183865e-003 + 0.5292683243751526 + 0.4015620052814484 + <_> + + <_> + + + + <_>5 4 3 3 -1. + <_>5 5 3 1 3. + 0 + 1.2568129459396005e-003 + 0.4392988085746765 + 0.5452824831008911 + <_> + + <_> + + + + <_>7 4 10 3 -1. + <_>7 5 10 1 3. + 0 + -2.9065010603517294e-003 + 0.5898832082748413 + 0.4863379895687103 + <_> + + <_> + + + + <_>0 4 5 4 -1. + <_>0 6 5 2 2. + 0 + -2.4409340694546700e-003 + 0.4069364964962006 + 0.5247421860694885 + <_> + + <_> + + + + <_>13 11 3 9 -1. + <_>13 14 3 3 3. + 0 + 0.0248307008296251 + 0.5182725787162781 + 0.3682524859905243 + <_> + + <_> + + + + <_>4 11 3 9 -1. + <_>4 14 3 3 3. + 0 + -0.0488540083169937 + 0.1307577937841415 + 0.4961281120777130 + <_> + + <_> + + + + <_>9 7 2 1 -1. + <_>9 7 1 1 2. + 0 + -1.6110379947349429e-003 + 0.6421005725860596 + 0.4872662127017975 + <_> + + <_> + + + + <_>5 0 6 17 -1. + <_>7 0 2 17 3. + 0 + -0.0970094799995422 + 0.0477693490684032 + 0.4950988888740540 + <_> + + <_> + + + + <_>10 3 6 3 -1. + <_>10 3 3 3 2. + 0 + 1.1209240183234215e-003 + 0.4616267085075378 + 0.5354745984077454 + <_> + + <_> + + + + <_>2 2 15 4 -1. + <_>7 2 5 4 3. + 0 + -1.3064090162515640e-003 + 0.6261854171752930 + 0.4638805985450745 + <_> + + <_> + + + + <_>8 2 8 2 -1. + <_>12 2 4 1 2. + <_>8 3 4 1 2. + 0 + 4.5771620352752507e-004 + 0.5384417772293091 + 0.4646640121936798 + <_> + + <_> + + + + <_>8 1 3 6 -1. + <_>8 3 3 2 3. + 0 + -6.3149951165542006e-004 + 0.3804047107696533 + 0.5130257010459900 + <_> + + <_> + + + + <_>9 17 2 2 -1. + <_>9 18 2 1 2. + 0 + 1.4505970466416329e-004 + 0.4554310142993927 + 0.5664461851119995 + <_> + + <_> + + + + <_>0 0 2 14 -1. + <_>1 0 1 14 2. + 0 + -0.0164745505899191 + 0.6596958041191101 + 0.4715859889984131 + <_> + + <_> + + + + <_>12 0 7 3 -1. + <_>12 1 7 1 3. + 0 + 0.0133695797994733 + 0.5195466279983521 + 0.3035964965820313 + <_> + + <_> + + + + <_>1 14 1 2 -1. + <_>1 15 1 1 2. + 0 + 1.0271780047332868e-004 + 0.5229176282882690 + 0.4107066094875336 + <_> + + <_> + + + + <_>14 12 2 8 -1. + <_>15 12 1 4 2. + <_>14 16 1 4 2. + 0 + -5.5311559699475765e-003 + 0.6352887749671936 + 0.4960907101631165 + <_> + + <_> + + + + <_>1 0 7 3 -1. + <_>1 1 7 1 3. + 0 + -2.6187049224972725e-003 + 0.3824546039104462 + 0.5140984058380127 + <_> + + <_> + + + + <_>14 12 2 8 -1. + <_>15 12 1 4 2. + <_>14 16 1 4 2. + 0 + 5.0834268331527710e-003 + 0.4950439929962158 + 0.6220818758010864 + <_> + + <_> + + + + <_>6 0 8 12 -1. + <_>6 0 4 6 2. + <_>10 6 4 6 2. + 0 + 0.0798181593418121 + 0.4952335953712463 + 0.1322475969791412 + <_> + + <_> + + + + <_>6 1 8 9 -1. + <_>6 4 8 3 3. + 0 + -0.0992265865206718 + 0.7542728781700134 + 0.5008416771888733 + <_> + + <_> + + + + <_>5 2 2 2 -1. + <_>5 3 2 1 2. + 0 + -6.5174017800018191e-004 + 0.3699302971363068 + 0.5130121111869812 + <_> + + <_> + + + + <_>13 14 6 6 -1. + <_>16 14 3 3 2. + <_>13 17 3 3 2. + 0 + -0.0189968496561050 + 0.6689178943634033 + 0.4921202957630158 + <_> + + <_> + + + + <_>0 17 20 2 -1. + <_>0 17 10 1 2. + <_>10 18 10 1 2. + 0 + 0.0173468999564648 + 0.4983300864696503 + 0.1859198063611984 + <_> + + <_> + + + + <_>10 3 2 6 -1. + <_>11 3 1 3 2. + <_>10 6 1 3 2. + 0 + 5.5082101607695222e-004 + 0.4574424028396606 + 0.5522121787071228 + <_> + + <_> + + + + <_>5 12 6 2 -1. + <_>8 12 3 2 2. + 0 + 2.0056050270795822e-003 + 0.5131744742393494 + 0.3856469988822937 + <_> + + <_> + + + + <_>10 7 6 13 -1. + <_>10 7 3 13 2. + 0 + -7.7688191086053848e-003 + 0.4361700117588043 + 0.5434309244155884 + <_> + + <_> + + + + <_>5 15 10 5 -1. + <_>10 15 5 5 2. + 0 + 0.0508782789111137 + 0.4682720899581909 + 0.6840639710426331 + <_> + + <_> + + + + <_>10 4 4 10 -1. + <_>10 4 2 10 2. + 0 + -2.2901780903339386e-003 + 0.4329245090484619 + 0.5306099057197571 + <_> + + <_> + + + + <_>5 7 2 1 -1. + <_>6 7 1 1 2. + 0 + -1.5715380141045898e-004 + 0.5370057225227356 + 0.4378164112567902 + <_> + + <_> + + + + <_>10 3 6 7 -1. + <_>10 3 3 7 2. + 0 + 0.1051924005150795 + 0.5137274265289307 + 0.0673614665865898 + <_> + + <_> + + + + <_>4 3 6 7 -1. + <_>7 3 3 7 2. + 0 + 2.7198919560760260e-003 + 0.4112060964107513 + 0.5255665183067322 + <_> + + <_> + + + + <_>1 7 18 5 -1. + <_>7 7 6 5 3. + 0 + 0.0483377799391747 + 0.5404623746871948 + 0.4438967108726502 + <_> + + <_> + + + + <_>3 17 4 3 -1. + <_>5 17 2 3 2. + 0 + 9.5703761326149106e-004 + 0.4355969130992889 + 0.5399510860443115 + <_> + + <_> + + + + <_>8 14 12 6 -1. + <_>14 14 6 3 2. + <_>8 17 6 3 2. + 0 + -0.0253712590783834 + 0.5995175242424011 + 0.5031024813652039 + <_> + + <_> + + + + <_>0 13 20 4 -1. + <_>0 13 10 2 2. + <_>10 15 10 2 2. + 0 + 0.0524579510092735 + 0.4950287938117981 + 0.1398351043462753 + <_> + + <_> + + + + <_>4 5 14 2 -1. + <_>11 5 7 1 2. + <_>4 6 7 1 2. + 0 + -0.0123656298965216 + 0.6397299170494080 + 0.4964106082916260 + <_> + + <_> + + + + <_>1 2 10 12 -1. + <_>1 2 5 6 2. + <_>6 8 5 6 2. + 0 + -0.1458971947431564 + 0.1001669988036156 + 0.4946322143077850 + <_> + + <_> + + + + <_>6 1 14 3 -1. + <_>6 2 14 1 3. + 0 + -0.0159086007624865 + 0.3312329947948456 + 0.5208340883255005 + <_> + + <_> + + + + <_>8 16 2 3 -1. + <_>8 17 2 1 3. + 0 + 3.9486068999394774e-004 + 0.4406363964080811 + 0.5426102876663208 + <_> + + <_> + + + + <_>9 17 3 2 -1. + <_>10 17 1 2 3. + 0 + -5.2454001270234585e-003 + 0.2799589931964874 + 0.5189967155456543 + <_> + + <_> + + + + <_>5 15 4 2 -1. + <_>5 15 2 1 2. + <_>7 16 2 1 2. + 0 + -5.0421799533069134e-003 + 0.6987580060958862 + 0.4752142131328583 + <_> + + <_> + + + + <_>10 15 1 3 -1. + <_>10 16 1 1 3. + 0 + 2.9812189750373363e-003 + 0.4983288943767548 + 0.6307479739189148 + <_> + + <_> + + + + <_>8 16 4 4 -1. + <_>8 16 2 2 2. + <_>10 18 2 2 2. + 0 + -7.2884308174252510e-003 + 0.2982333004474640 + 0.5026869773864746 + <_> + + <_> + + + + <_>6 11 8 6 -1. + <_>6 14 8 3 2. + 0 + 1.5094350092113018e-003 + 0.5308442115783691 + 0.3832970857620239 + <_> + + <_> + + + + <_>2 13 5 2 -1. + <_>2 14 5 1 2. + 0 + -9.3340799212455750e-003 + 0.2037964016199112 + 0.4969817101955414 + <_> + + <_> + + + + <_>13 14 6 6 -1. + <_>16 14 3 3 2. + <_>13 17 3 3 2. + 0 + 0.0286671407520771 + 0.5025696754455566 + 0.6928027272224426 + <_> + + <_> + + + + <_>1 9 18 4 -1. + <_>7 9 6 4 3. + 0 + 0.1701968014240265 + 0.4960052967071533 + 0.1476442962884903 + <_> + + <_> + + + + <_>13 14 6 6 -1. + <_>16 14 3 3 2. + <_>13 17 3 3 2. + 0 + -3.2614478841423988e-003 + 0.5603063702583313 + 0.4826056063175201 + <_> + + <_> + + + + <_>0 2 1 6 -1. + <_>0 4 1 2 3. + 0 + 5.5769277969375253e-004 + 0.5205562114715576 + 0.4129633009433746 + <_> + + <_> + + + + <_>5 0 15 20 -1. + <_>5 10 15 10 2. + 0 + 0.3625833988189697 + 0.5221652984619141 + 0.3768612146377564 + <_> + + <_> + + + + <_>1 14 6 6 -1. + <_>1 14 3 3 2. + <_>4 17 3 3 2. + 0 + -0.0116151301190257 + 0.6022682785987854 + 0.4637489914894104 + <_> + + <_> + + + + <_>8 14 4 6 -1. + <_>10 14 2 3 2. + <_>8 17 2 3 2. + 0 + -4.0795197710394859e-003 + 0.4070447087287903 + 0.5337479114532471 + <_> + + <_> + + + + <_>7 11 2 1 -1. + <_>8 11 1 1 2. + 0 + 5.7204300537705421e-004 + 0.4601835012435913 + 0.5900393128395081 + <_> + + <_> + + + + <_>9 17 3 2 -1. + <_>10 17 1 2 3. + 0 + 6.7543348995968699e-004 + 0.5398252010345459 + 0.4345428943634033 + <_> + + <_> + + + + <_>8 17 3 2 -1. + <_>9 17 1 2 3. + 0 + 6.3295697327703238e-004 + 0.5201563239097595 + 0.4051358997821808 + <_> + + <_> + + + + <_>12 14 4 6 -1. + <_>14 14 2 3 2. + <_>12 17 2 3 2. + 0 + 1.2435320531949401e-003 + 0.4642387926578522 + 0.5547441244125366 + <_> + + <_> + + + + <_>4 14 4 6 -1. + <_>4 14 2 3 2. + <_>6 17 2 3 2. + 0 + -4.7363857738673687e-003 + 0.6198567152023315 + 0.4672552049160004 + <_> + + <_> + + + + <_>13 14 2 6 -1. + <_>14 14 1 3 2. + <_>13 17 1 3 2. + 0 + -6.4658462069928646e-003 + 0.6837332844734192 + 0.5019000768661499 + <_> + + <_> + + + + <_>5 14 2 6 -1. + <_>5 14 1 3 2. + <_>6 17 1 3 2. + 0 + 3.5017321351915598e-004 + 0.4344803094863892 + 0.5363622903823853 + <_> + + <_> + + + + <_>7 0 6 12 -1. + <_>7 4 6 4 3. + 0 + 1.5754920605104417e-004 + 0.4760079085826874 + 0.5732020735740662 + <_> + + <_> + + + + <_>0 7 12 2 -1. + <_>4 7 4 2 3. + 0 + 9.9774366244673729e-003 + 0.5090985894203186 + 0.3635039925575256 + <_> + + <_> + + + + <_>10 3 3 13 -1. + <_>11 3 1 13 3. + 0 + -4.1464529931545258e-004 + 0.5570064783096314 + 0.4593802094459534 + <_> + + <_> + + + + <_>7 3 3 13 -1. + <_>8 3 1 13 3. + 0 + -3.5888899583369493e-004 + 0.5356845855712891 + 0.4339134991168976 + <_> + + <_> + + + + <_>10 8 6 3 -1. + <_>10 9 6 1 3. + 0 + 4.0463250479660928e-004 + 0.4439803063869476 + 0.5436776876449585 + <_> + + <_> + + + + <_>3 11 3 2 -1. + <_>4 11 1 2 3. + 0 + -8.2184787606820464e-004 + 0.4042294919490814 + 0.5176299214363098 + <_> + + <_> + + + + <_>13 12 6 8 -1. + <_>16 12 3 4 2. + <_>13 16 3 4 2. + 0 + 5.9467419050633907e-003 + 0.4927651882171631 + 0.5633779764175415 + <_> + + <_> + + + + <_>7 6 6 5 -1. + <_>9 6 2 5 3. + 0 + -0.0217533893883228 + 0.8006293773651123 + 0.4800840914249420 + <_> + + <_> + + + + <_>17 11 2 7 -1. + <_>17 11 1 7 2. + 0 + -0.0145403798669577 + 0.3946054875850678 + 0.5182222723960877 + <_> + + <_> + + + + <_>3 13 8 2 -1. + <_>7 13 4 2 2. + 0 + -0.0405107699334621 + 0.0213249903172255 + 0.4935792982578278 + <_> + + <_> + + + + <_>6 9 8 3 -1. + <_>6 10 8 1 3. + 0 + -5.8458268176764250e-004 + 0.4012795984745026 + 0.5314025282859802 + <_> + + <_> + + + + <_>4 3 4 3 -1. + <_>4 4 4 1 3. + 0 + 5.5151800625026226e-003 + 0.4642418920993805 + 0.5896260738372803 + <_> + + <_> + + + + <_>11 3 4 3 -1. + <_>11 4 4 1 3. + 0 + -6.0626221820712090e-003 + 0.6502159237861633 + 0.5016477704048157 + <_> + + <_> + + + + <_>1 4 17 12 -1. + <_>1 8 17 4 3. + 0 + 0.0945358425378799 + 0.5264708995819092 + 0.4126827120780945 + <_> + + <_> + + + + <_>11 3 4 3 -1. + <_>11 4 4 1 3. + 0 + 4.7315051779150963e-003 + 0.4879199862480164 + 0.5892447829246521 + <_> + + <_> + + + + <_>4 8 6 3 -1. + <_>4 9 6 1 3. + 0 + -5.2571471314877272e-004 + 0.3917280137538910 + 0.5189412832260132 + <_> + + <_> + + + + <_>12 3 5 3 -1. + <_>12 4 5 1 3. + 0 + -2.5464049540460110e-003 + 0.5837599039077759 + 0.4985705912113190 + <_> + + <_> + + + + <_>1 11 2 7 -1. + <_>2 11 1 7 2. + 0 + -0.0260756891220808 + 0.1261983960866928 + 0.4955821931362152 + <_> + + <_> + + + + <_>15 12 2 8 -1. + <_>16 12 1 4 2. + <_>15 16 1 4 2. + 0 + -5.4779709316790104e-003 + 0.5722513794898987 + 0.5010265707969666 + <_> + + <_> + + + + <_>4 8 11 3 -1. + <_>4 9 11 1 3. + 0 + 5.1337741315364838e-003 + 0.5273262262344360 + 0.4226376116275787 + <_> + + <_> + + + + <_>9 13 6 2 -1. + <_>12 13 3 1 2. + <_>9 14 3 1 2. + 0 + 4.7944980906322598e-004 + 0.4450066983699799 + 0.5819587111473084 + <_> + + <_> + + + + <_>6 13 4 3 -1. + <_>6 14 4 1 3. + 0 + -2.1114079281687737e-003 + 0.5757653117179871 + 0.4511714875698090 + <_> + + <_> + + + + <_>9 12 3 3 -1. + <_>10 12 1 3 3. + 0 + -0.0131799904629588 + 0.1884381026029587 + 0.5160734057426453 + <_> + + <_> + + + + <_>5 3 3 3 -1. + <_>5 4 3 1 3. + 0 + -4.7968099825084209e-003 + 0.6589789986610413 + 0.4736118912696838 + <_> + + <_> + + + + <_>9 4 2 3 -1. + <_>9 5 2 1 3. + 0 + 6.7483168095350266e-003 + 0.5259429812431335 + 0.3356395065784454 + <_> + + <_> + + + + <_>0 2 16 3 -1. + <_>0 3 16 1 3. + 0 + 1.4623369788751006e-003 + 0.5355271100997925 + 0.4264092147350311 + <_> + + <_> + + + + <_>15 12 2 8 -1. + <_>16 12 1 4 2. + <_>15 16 1 4 2. + 0 + 4.7645159065723419e-003 + 0.5034406781196594 + 0.5786827802658081 + <_> + + <_> + + + + <_>3 12 2 8 -1. + <_>3 12 1 4 2. + <_>4 16 1 4 2. + 0 + 6.8066660314798355e-003 + 0.4756605029106140 + 0.6677829027175903 + <_> + + <_> + + + + <_>14 13 3 6 -1. + <_>14 15 3 2 3. + 0 + 3.6608621012419462e-003 + 0.5369611978530884 + 0.4311546981334686 + <_> + + <_> + + + + <_>3 13 3 6 -1. + <_>3 15 3 2 3. + 0 + 0.0214496403932571 + 0.4968641996383667 + 0.1888816058635712 + <_> + + <_> + + + + <_>6 5 10 2 -1. + <_>11 5 5 1 2. + <_>6 6 5 1 2. + 0 + 4.1678901761770248e-003 + 0.4930733144283295 + 0.5815368890762329 + <_> + + <_> + + + + <_>2 14 14 6 -1. + <_>2 17 14 3 2. + 0 + 8.6467564105987549e-003 + 0.5205205082893372 + 0.4132595062255859 + <_> + + <_> + + + + <_>10 14 1 3 -1. + <_>10 15 1 1 3. + 0 + -3.6114078829996288e-004 + 0.5483555197715759 + 0.4800927937030792 + <_> + + <_> + + + + <_>4 16 2 2 -1. + <_>4 16 1 1 2. + <_>5 17 1 1 2. + 0 + 1.0808729566633701e-003 + 0.4689902067184448 + 0.6041421294212341 + <_> + + <_> + + + + <_>10 6 2 3 -1. + <_>10 7 2 1 3. + 0 + 5.7719959877431393e-003 + 0.5171142220497131 + 0.3053277134895325 + <_> + + <_> + + + + <_>0 17 20 2 -1. + <_>0 17 10 1 2. + <_>10 18 10 1 2. + 0 + 1.5720770461484790e-003 + 0.5219978094100952 + 0.4178803861141205 + <_> + + <_> + + + + <_>13 6 1 3 -1. + <_>13 7 1 1 3. + 0 + -1.9307859474793077e-003 + 0.5860369801521301 + 0.4812920093536377 + <_> + + <_> + + + + <_>8 13 3 2 -1. + <_>9 13 1 2 3. + 0 + -7.8926272690296173e-003 + 0.1749276965856552 + 0.4971733987331390 + <_> + + <_> + + + + <_>12 2 3 3 -1. + <_>13 2 1 3 3. + 0 + -2.2224679123610258e-003 + 0.4342589080333710 + 0.5212848186492920 + <_> + + <_> + + + + <_>3 18 2 2 -1. + <_>3 18 1 1 2. + <_>4 19 1 1 2. + 0 + 1.9011989934369922e-003 + 0.4765186905860901 + 0.6892055273056030 + <_> + + <_> + + + + <_>9 16 3 4 -1. + <_>10 16 1 4 3. + 0 + 2.7576119173318148e-003 + 0.5262191295623779 + 0.4337486028671265 + <_> + + <_> + + + + <_>6 6 1 3 -1. + <_>6 7 1 1 3. + 0 + 5.1787449046969414e-003 + 0.4804069101810455 + 0.7843729257583618 + <_> + + <_> + + + + <_>13 1 5 2 -1. + <_>13 2 5 1 2. + 0 + -9.0273341629654169e-004 + 0.4120846986770630 + 0.5353423953056335 + <_> + + <_> + + + + <_>7 14 6 2 -1. + <_>7 14 3 1 2. + <_>10 15 3 1 2. + 0 + 5.1797959022223949e-003 + 0.4740372896194458 + 0.6425960063934326 + <_> + + <_> + + + + <_>11 3 3 4 -1. + <_>12 3 1 4 3. + 0 + -0.0101140001788735 + 0.2468792051076889 + 0.5175017714500427 + <_> + + <_> + + + + <_>1 13 12 6 -1. + <_>5 13 4 6 3. + 0 + -0.0186170600354671 + 0.5756294131278992 + 0.4628978967666626 + <_> + + <_> + + + + <_>14 11 5 2 -1. + <_>14 12 5 1 2. + 0 + 5.9225959703326225e-003 + 0.5169625878334045 + 0.3214271068572998 + <_> + + <_> + + + + <_>2 15 14 4 -1. + <_>2 15 7 2 2. + <_>9 17 7 2 2. + 0 + -6.2945079989731312e-003 + 0.3872014880180359 + 0.5141636729240418 + <_> + + <_> + + + + <_>3 7 14 2 -1. + <_>10 7 7 1 2. + <_>3 8 7 1 2. + 0 + 6.5353019163012505e-003 + 0.4853048920631409 + 0.6310489773750305 + <_> + + <_> + + + + <_>1 11 4 2 -1. + <_>1 12 4 1 2. + 0 + 1.0878399480134249e-003 + 0.5117315053939819 + 0.3723258972167969 + <_> + + <_> + + + + <_>14 0 6 14 -1. + <_>16 0 2 14 3. + 0 + -0.0225422400981188 + 0.5692740082740784 + 0.4887112975120544 + <_> + + <_> + + + + <_>4 11 1 3 -1. + <_>4 12 1 1 3. + 0 + -3.0065660830587149e-003 + 0.2556012868881226 + 0.5003992915153503 + <_> + + <_> + + + + <_>14 0 6 14 -1. + <_>16 0 2 14 3. + 0 + 7.4741272255778313e-003 + 0.4810872972011566 + 0.5675926804542542 + <_> + + <_> + + + + <_>1 10 3 7 -1. + <_>2 10 1 7 3. + 0 + 0.0261623207479715 + 0.4971194863319397 + 0.1777237057685852 + <_> + + <_> + + + + <_>8 12 9 2 -1. + <_>8 13 9 1 2. + 0 + 9.4352738233283162e-004 + 0.4940010905265808 + 0.5491250753402710 + <_> + + <_> + + + + <_>0 6 20 1 -1. + <_>10 6 10 1 2. + 0 + 0.0333632417023182 + 0.5007612109184265 + 0.2790724039077759 + <_> + + <_> + + + + <_>8 4 4 4 -1. + <_>8 4 2 4 2. + 0 + -0.0151186501607299 + 0.7059578895568848 + 0.4973031878471375 + <_> + + <_> + + + + <_>0 0 2 2 -1. + <_>0 1 2 1 2. + 0 + 9.8648946732282639e-004 + 0.5128620266914368 + 0.3776761889457703 + 104.7491989135742200 + 19 + -1 + <_> + + + <_> + + <_> + + + + <_>5 3 10 9 -1. + <_>5 6 10 3 3. + 0 + -0.0951507985591888 + 0.6470757126808167 + 0.4017286896705627 + <_> + + <_> + + + + <_>15 2 4 10 -1. + <_>15 2 2 10 2. + 0 + 6.2702340073883533e-003 + 0.3999822139739990 + 0.5746449232101440 + <_> + + <_> + + + + <_>8 2 2 7 -1. + <_>9 2 1 7 2. + 0 + 3.0018089455552399e-004 + 0.3558770120143890 + 0.5538809895515442 + <_> + + <_> + + + + <_>7 4 12 1 -1. + <_>11 4 4 1 3. + 0 + 1.1757409665733576e-003 + 0.4256534874439240 + 0.5382617712020874 + <_> + + <_> + + + + <_>3 4 9 1 -1. + <_>6 4 3 1 3. + 0 + 4.4235268433112651e-005 + 0.3682908117771149 + 0.5589926838874817 + <_> + + <_> + + + + <_>15 10 1 4 -1. + <_>15 12 1 2 2. + 0 + -2.9936920327600092e-005 + 0.5452470183372498 + 0.4020367860794067 + <_> + + <_> + + + + <_>4 10 6 4 -1. + <_>7 10 3 4 2. + 0 + 3.0073199886828661e-003 + 0.5239058136940002 + 0.3317843973636627 + <_> + + <_> + + + + <_>15 9 1 6 -1. + <_>15 12 1 3 2. + 0 + -0.0105138896033168 + 0.4320689141750336 + 0.5307983756065369 + <_> + + <_> + + + + <_>7 17 6 3 -1. + <_>7 18 6 1 3. + 0 + 8.3476826548576355e-003 + 0.4504637122154236 + 0.6453298926353455 + <_> + + <_> + + + + <_>14 3 2 16 -1. + <_>15 3 1 8 2. + <_>14 11 1 8 2. + 0 + -3.1492270063608885e-003 + 0.4313425123691559 + 0.5370525121688843 + <_> + + <_> + + + + <_>4 9 1 6 -1. + <_>4 12 1 3 2. + 0 + -1.4435649973165710e-005 + 0.5326603055000305 + 0.3817971944808960 + <_> + + <_> + + + + <_>12 1 5 2 -1. + <_>12 2 5 1 2. + 0 + -4.2855090578086674e-004 + 0.4305163919925690 + 0.5382009744644165 + <_> + + <_> + + + + <_>6 18 4 2 -1. + <_>6 18 2 1 2. + <_>8 19 2 1 2. + 0 + 1.5062429883982986e-004 + 0.4235970973968506 + 0.5544965267181397 + <_> + + <_> + + + + <_>2 4 16 10 -1. + <_>10 4 8 5 2. + <_>2 9 8 5 2. + 0 + 0.0715598315000534 + 0.5303059816360474 + 0.2678802907466888 + <_> + + <_> + + + + <_>6 5 1 10 -1. + <_>6 10 1 5 2. + 0 + 8.4095180500298738e-004 + 0.3557108938694000 + 0.5205433964729309 + <_> + + <_> + + + + <_>4 8 15 2 -1. + <_>9 8 5 2 3. + 0 + 0.0629865005612373 + 0.5225362777709961 + 0.2861376106739044 + <_> + + <_> + + + + <_>1 8 15 2 -1. + <_>6 8 5 2 3. + 0 + -3.3798629883676767e-003 + 0.3624185919761658 + 0.5201697945594788 + <_> + + <_> + + + + <_>9 5 3 6 -1. + <_>9 7 3 2 3. + 0 + -1.1810739670181647e-004 + 0.5474476814270020 + 0.3959893882274628 + <_> + + <_> + + + + <_>5 7 8 2 -1. + <_>9 7 4 2 2. + 0 + -5.4505601292476058e-004 + 0.3740422129631043 + 0.5215715765953064 + <_> + + <_> + + + + <_>9 11 2 3 -1. + <_>9 12 2 1 3. + 0 + -1.8454910023137927e-003 + 0.5893052220344544 + 0.4584448933601379 + <_> + + <_> + + + + <_>1 0 16 3 -1. + <_>1 1 16 1 3. + 0 + -4.3832371011376381e-004 + 0.4084582030773163 + 0.5385351181030273 + <_> + + <_> + + + + <_>11 2 7 2 -1. + <_>11 3 7 1 2. + 0 + -2.4000830017030239e-003 + 0.3777455091476440 + 0.5293580293655396 + <_> + + <_> + + + + <_>5 1 10 18 -1. + <_>5 7 10 6 3. + 0 + -0.0987957417964935 + 0.2963612079620361 + 0.5070089101791382 + <_> + + <_> + + + + <_>17 4 3 2 -1. + <_>18 4 1 2 3. + 0 + 3.1798239797353745e-003 + 0.4877632856369019 + 0.6726443767547607 + <_> + + <_> + + + + <_>8 13 1 3 -1. + <_>8 14 1 1 3. + 0 + 3.2406419632025063e-004 + 0.4366911053657532 + 0.5561109781265259 + <_> + + <_> + + + + <_>3 14 14 6 -1. + <_>3 16 14 2 3. + 0 + -0.0325472503900528 + 0.3128157854080200 + 0.5308616161346436 + <_> + + <_> + + + + <_>0 2 3 4 -1. + <_>1 2 1 4 3. + 0 + -7.7561130747199059e-003 + 0.6560224890708923 + 0.4639872014522553 + <_> + + <_> + + + + <_>12 1 5 2 -1. + <_>12 2 5 1 2. + 0 + 0.0160272493958473 + 0.5172680020332336 + 0.3141897916793823 + <_> + + <_> + + + + <_>3 1 5 2 -1. + <_>3 2 5 1 2. + 0 + 7.1002350523485802e-006 + 0.4084446132183075 + 0.5336294770240784 + <_> + + <_> + + + + <_>10 13 2 3 -1. + <_>10 14 2 1 3. + 0 + 7.3422808200120926e-003 + 0.4966922104358673 + 0.6603465080261231 + <_> + + <_> + + + + <_>8 13 2 3 -1. + <_>8 14 2 1 3. + 0 + -1.6970280557870865e-003 + 0.5908237099647522 + 0.4500182867050171 + <_> + + <_> + + + + <_>14 12 2 3 -1. + <_>14 13 2 1 3. + 0 + 2.4118260480463505e-003 + 0.5315160751342773 + 0.3599720895290375 + <_> + + <_> + + + + <_>7 2 2 3 -1. + <_>7 3 2 1 3. + 0 + -5.5300937965512276e-003 + 0.2334040999412537 + 0.4996814131736755 + <_> + + <_> + + + + <_>5 6 10 4 -1. + <_>10 6 5 2 2. + <_>5 8 5 2 2. + 0 + -2.6478730142116547e-003 + 0.5880935788154602 + 0.4684734046459198 + <_> + + <_> + + + + <_>9 13 1 6 -1. + <_>9 16 1 3 2. + 0 + 0.0112956296652555 + 0.4983777105808258 + 0.1884590983390808 + <_> + + <_> + + + + <_>10 12 2 2 -1. + <_>11 12 1 1 2. + <_>10 13 1 1 2. + 0 + -6.6952878842130303e-004 + 0.5872138142585754 + 0.4799019992351532 + <_> + + <_> + + + + <_>4 12 2 3 -1. + <_>4 13 2 1 3. + 0 + 1.4410680159926414e-003 + 0.5131189227104187 + 0.3501011133193970 + <_> + + <_> + + + + <_>14 4 6 6 -1. + <_>14 6 6 2 3. + 0 + 2.4637870956212282e-003 + 0.5339372158050537 + 0.4117639064788818 + <_> + + <_> + + + + <_>8 17 2 3 -1. + <_>8 18 2 1 3. + 0 + 3.3114518737420440e-004 + 0.4313383102416992 + 0.5398246049880981 + <_> + + <_> + + + + <_>16 4 4 6 -1. + <_>16 6 4 2 3. + 0 + -0.0335572697222233 + 0.2675336897373200 + 0.5179154872894287 + <_> + + <_> + + + + <_>0 4 4 6 -1. + <_>0 6 4 2 3. + 0 + 0.0185394193977118 + 0.4973869919776917 + 0.2317177057266235 + <_> + + <_> + + + + <_>14 6 2 3 -1. + <_>14 6 1 3 2. + 0 + -2.9698139405809343e-004 + 0.5529708266258240 + 0.4643664062023163 + <_> + + <_> + + + + <_>4 9 8 1 -1. + <_>8 9 4 1 2. + 0 + -4.5577259152196348e-004 + 0.5629584193229675 + 0.4469191133975983 + <_> + + <_> + + + + <_>8 12 4 3 -1. + <_>8 13 4 1 3. + 0 + -0.0101589802652597 + 0.6706212759017944 + 0.4925918877124786 + <_> + + <_> + + + + <_>5 12 10 6 -1. + <_>5 14 10 2 3. + 0 + -2.2413829356082715e-005 + 0.5239421725273132 + 0.3912901878356934 + <_> + + <_> + + + + <_>11 12 1 2 -1. + <_>11 13 1 1 2. + 0 + 7.2034963523037732e-005 + 0.4799438118934631 + 0.5501788854598999 + <_> + + <_> + + + + <_>8 15 4 2 -1. + <_>8 16 4 1 2. + 0 + -6.9267209619283676e-003 + 0.6930009722709656 + 0.4698084890842438 + <_> + + <_> + + + + <_>6 9 8 8 -1. + <_>10 9 4 4 2. + <_>6 13 4 4 2. + 0 + -7.6997838914394379e-003 + 0.4099623858928680 + 0.5480883121490479 + <_> + + <_> + + + + <_>7 12 4 6 -1. + <_>7 12 2 3 2. + <_>9 15 2 3 2. + 0 + -7.3130549862980843e-003 + 0.3283475935459137 + 0.5057886242866516 + <_> + + <_> + + + + <_>10 11 3 1 -1. + <_>11 11 1 1 3. + 0 + 1.9650589674711227e-003 + 0.4978047013282776 + 0.6398249864578247 + <_> + + <_> + + + + <_>9 7 2 10 -1. + <_>9 7 1 5 2. + <_>10 12 1 5 2. + 0 + 7.1647600270807743e-003 + 0.4661160111427307 + 0.6222137212753296 + <_> + + <_> + + + + <_>8 0 6 6 -1. + <_>10 0 2 6 3. + 0 + -0.0240786392241716 + 0.2334644943475723 + 0.5222162008285523 + <_> + + <_> + + + + <_>3 11 2 6 -1. + <_>3 13 2 2 3. + 0 + -0.0210279691964388 + 0.1183653995394707 + 0.4938226044178009 + <_> + + <_> + + + + <_>16 12 1 2 -1. + <_>16 13 1 1 2. + 0 + 3.6017020465806127e-004 + 0.5325019955635071 + 0.4116711020469666 + <_> + + <_> + + + + <_>1 14 6 6 -1. + <_>1 14 3 3 2. + <_>4 17 3 3 2. + 0 + -0.0172197297215462 + 0.6278762221336365 + 0.4664269089698792 + <_> + + <_> + + + + <_>13 1 3 6 -1. + <_>14 1 1 6 3. + 0 + -7.8672142699360847e-003 + 0.3403415083885193 + 0.5249736905097961 + <_> + + <_> + + + + <_>8 8 2 2 -1. + <_>8 9 2 1 2. + 0 + -4.4777389848604798e-004 + 0.3610411882400513 + 0.5086259245872498 + <_> + + <_> + + + + <_>9 9 3 3 -1. + <_>10 9 1 3 3. + 0 + 5.5486010387539864e-003 + 0.4884265959262848 + 0.6203498244285584 + <_> + + <_> + + + + <_>8 7 3 3 -1. + <_>8 8 3 1 3. + 0 + -6.9461148232221603e-003 + 0.2625930011272430 + 0.5011097192764282 + <_> + + <_> + + + + <_>14 0 2 3 -1. + <_>14 0 1 3 2. + 0 + 1.3569870498031378e-004 + 0.4340794980525971 + 0.5628312230110169 + <_> + + <_> + + + + <_>1 0 18 9 -1. + <_>7 0 6 9 3. + 0 + -0.0458802506327629 + 0.6507998704910278 + 0.4696274995803833 + <_> + + <_> + + + + <_>11 5 4 15 -1. + <_>11 5 2 15 2. + 0 + -0.0215825606137514 + 0.3826502859592438 + 0.5287616848945618 + <_> + + <_> + + + + <_>5 5 4 15 -1. + <_>7 5 2 15 2. + 0 + -0.0202095396816731 + 0.3233368098735809 + 0.5074477195739746 + <_> + + <_> + + + + <_>14 0 2 3 -1. + <_>14 0 1 3 2. + 0 + 5.8496710844337940e-003 + 0.5177603960037231 + 0.4489670991897583 + <_> + + <_> + + + + <_>4 0 2 3 -1. + <_>5 0 1 3 2. + 0 + -5.7476379879517481e-005 + 0.4020850956439972 + 0.5246363878250122 + <_> + + <_> + + + + <_>11 12 2 2 -1. + <_>12 12 1 1 2. + <_>11 13 1 1 2. + 0 + -1.1513100471347570e-003 + 0.6315072178840637 + 0.4905154109001160 + <_> + + <_> + + + + <_>7 12 2 2 -1. + <_>7 12 1 1 2. + <_>8 13 1 1 2. + 0 + 1.9862831104546785e-003 + 0.4702459871768951 + 0.6497151255607605 + <_> + + <_> + + + + <_>12 0 3 4 -1. + <_>13 0 1 4 3. + 0 + -5.2719512023031712e-003 + 0.3650383949279785 + 0.5227652788162231 + <_> + + <_> + + + + <_>4 11 3 3 -1. + <_>4 12 3 1 3. + 0 + 1.2662699446082115e-003 + 0.5166100859642029 + 0.3877618014812470 + <_> + + <_> + + + + <_>12 7 4 2 -1. + <_>12 8 4 1 2. + 0 + -6.2919440679252148e-003 + 0.7375894188880920 + 0.5023847818374634 + <_> + + <_> + + + + <_>8 10 3 2 -1. + <_>9 10 1 2 3. + 0 + 6.7360111279413104e-004 + 0.4423226118087769 + 0.5495585799217224 + <_> + + <_> + + + + <_>9 9 3 2 -1. + <_>10 9 1 2 3. + 0 + -1.0523450328037143e-003 + 0.5976396203041077 + 0.4859583079814911 + <_> + + <_> + + + + <_>8 9 3 2 -1. + <_>9 9 1 2 3. + 0 + -4.4216238893568516e-004 + 0.5955939292907715 + 0.4398930966854096 + <_> + + <_> + + + + <_>12 0 3 4 -1. + <_>13 0 1 4 3. + 0 + 1.1747940443456173e-003 + 0.5349888205528259 + 0.4605058133602142 + <_> + + <_> + + + + <_>5 0 3 4 -1. + <_>6 0 1 4 3. + 0 + 5.2457437850534916e-003 + 0.5049191117286682 + 0.2941577136516571 + <_> + + <_> + + + + <_>4 14 12 4 -1. + <_>10 14 6 2 2. + <_>4 16 6 2 2. + 0 + -0.0245397202670574 + 0.2550177872180939 + 0.5218586921691895 + <_> + + <_> + + + + <_>8 13 2 3 -1. + <_>8 14 2 1 3. + 0 + 7.3793041519820690e-004 + 0.4424861073493958 + 0.5490816235542297 + <_> + + <_> + + + + <_>10 10 3 8 -1. + <_>10 14 3 4 2. + 0 + 1.4233799884095788e-003 + 0.5319514274597168 + 0.4081355929374695 + <_> + + <_> + + + + <_>8 10 4 8 -1. + <_>8 10 2 4 2. + <_>10 14 2 4 2. + 0 + -2.4149110540747643e-003 + 0.4087659120559692 + 0.5238950252532959 + <_> + + <_> + + + + <_>10 8 3 1 -1. + <_>11 8 1 1 3. + 0 + -1.2165299849584699e-003 + 0.5674579143524170 + 0.4908052980899811 + <_> + + <_> + + + + <_>9 12 1 6 -1. + <_>9 15 1 3 2. + 0 + -1.2438809499144554e-003 + 0.4129425883293152 + 0.5256118178367615 + <_> + + <_> + + + + <_>10 8 3 1 -1. + <_>11 8 1 1 3. + 0 + 6.1942739412188530e-003 + 0.5060194134712219 + 0.7313653230667114 + <_> + + <_> + + + + <_>7 8 3 1 -1. + <_>8 8 1 1 3. + 0 + -1.6607169527560472e-003 + 0.5979632139205933 + 0.4596369862556458 + <_> + + <_> + + + + <_>5 2 15 14 -1. + <_>5 9 15 7 2. + 0 + -0.0273162592202425 + 0.4174365103244782 + 0.5308842062950134 + <_> + + <_> + + + + <_>2 1 2 10 -1. + <_>2 1 1 5 2. + <_>3 6 1 5 2. + 0 + -1.5845570014789701e-003 + 0.5615804791450501 + 0.4519486129283905 + <_> + + <_> + + + + <_>14 14 2 3 -1. + <_>14 15 2 1 3. + 0 + -1.5514739789068699e-003 + 0.4076187014579773 + 0.5360785126686096 + <_> + + <_> + + + + <_>2 7 3 3 -1. + <_>3 7 1 3 3. + 0 + 3.8446558755822480e-004 + 0.4347293972969055 + 0.5430442094802856 + <_> + + <_> + + + + <_>17 4 3 3 -1. + <_>17 5 3 1 3. + 0 + -0.0146722598001361 + 0.1659304946660996 + 0.5146093964576721 + <_> + + <_> + + + + <_>0 4 3 3 -1. + <_>0 5 3 1 3. + 0 + 8.1608882173895836e-003 + 0.4961819052696228 + 0.1884745955467224 + <_> + + <_> + + + + <_>13 5 6 2 -1. + <_>16 5 3 1 2. + <_>13 6 3 1 2. + 0 + 1.1121659772470593e-003 + 0.4868263900279999 + 0.6093816161155701 + <_> + + <_> + + + + <_>4 19 12 1 -1. + <_>8 19 4 1 3. + 0 + -7.2603770531713963e-003 + 0.6284325122833252 + 0.4690375924110413 + <_> + + <_> + + + + <_>12 12 2 4 -1. + <_>12 14 2 2 2. + 0 + -2.4046430189628154e-004 + 0.5575000047683716 + 0.4046044051647186 + <_> + + <_> + + + + <_>3 15 1 3 -1. + <_>3 16 1 1 3. + 0 + -2.3348190006799996e-004 + 0.4115762114524841 + 0.5252848267555237 + <_> + + <_> + + + + <_>11 16 6 4 -1. + <_>11 16 3 4 2. + 0 + 5.5736480280756950e-003 + 0.4730072915554047 + 0.5690100789070129 + <_> + + <_> + + + + <_>2 10 3 10 -1. + <_>3 10 1 10 3. + 0 + 0.0306237693876028 + 0.4971886873245239 + 0.1740095019340515 + <_> + + <_> + + + + <_>12 8 2 4 -1. + <_>12 8 1 4 2. + 0 + 9.2074798885732889e-004 + 0.5372117757797241 + 0.4354872107505798 + <_> + + <_> + + + + <_>6 8 2 4 -1. + <_>7 8 1 4 2. + 0 + -4.3550739064812660e-005 + 0.5366883873939514 + 0.4347316920757294 + <_> + + <_> + + + + <_>10 14 2 3 -1. + <_>10 14 1 3 2. + 0 + -6.6452710889279842e-003 + 0.3435518145561218 + 0.5160533189773560 + <_> + + <_> + + + + <_>5 1 10 3 -1. + <_>10 1 5 3 2. + 0 + 0.0432219989597797 + 0.4766792058944702 + 0.7293652892112732 + <_> + + <_> + + + + <_>10 7 3 2 -1. + <_>11 7 1 2 3. + 0 + 2.2331769578158855e-003 + 0.5029315948486328 + 0.5633171200752258 + <_> + + <_> + + + + <_>5 6 9 2 -1. + <_>8 6 3 2 3. + 0 + 3.1829739455133677e-003 + 0.4016092121601105 + 0.5192136764526367 + <_> + + <_> + + + + <_>9 8 2 2 -1. + <_>9 9 2 1 2. + 0 + -1.8027749320026487e-004 + 0.4088315963745117 + 0.5417919754981995 + <_> + + <_> + + + + <_>2 11 16 6 -1. + <_>2 11 8 3 2. + <_>10 14 8 3 2. + 0 + -5.2934689447283745e-003 + 0.4075677096843720 + 0.5243561863899231 + <_> + + <_> + + + + <_>12 7 2 2 -1. + <_>13 7 1 1 2. + <_>12 8 1 1 2. + 0 + 1.2750959722325206e-003 + 0.4913282990455627 + 0.6387010812759399 + <_> + + <_> + + + + <_>9 5 2 3 -1. + <_>9 6 2 1 3. + 0 + 4.3385322205722332e-003 + 0.5031672120094299 + 0.2947346866130829 + <_> + + <_> + + + + <_>9 7 3 2 -1. + <_>10 7 1 2 3. + 0 + 8.5250744596123695e-003 + 0.4949789047241211 + 0.6308869123458862 + <_> + + <_> + + + + <_>5 1 8 12 -1. + <_>5 7 8 6 2. + 0 + -9.4266352243721485e-004 + 0.5328366756439209 + 0.4285649955272675 + <_> + + <_> + + + + <_>13 5 2 2 -1. + <_>13 6 2 1 2. + 0 + 1.3609660090878606e-003 + 0.4991525113582611 + 0.5941501259803772 + <_> + + <_> + + + + <_>5 5 2 2 -1. + <_>5 6 2 1 2. + 0 + 4.4782509212382138e-004 + 0.4573504030704498 + 0.5854480862617493 + <_> + + <_> + + + + <_>12 4 3 3 -1. + <_>12 5 3 1 3. + 0 + 1.3360050506889820e-003 + 0.4604358971118927 + 0.5849052071571350 + <_> + + <_> + + + + <_>4 14 2 3 -1. + <_>4 15 2 1 3. + 0 + -6.0967548051849008e-004 + 0.3969388902187347 + 0.5229423046112061 + <_> + + <_> + + + + <_>12 4 3 3 -1. + <_>12 5 3 1 3. + 0 + -2.3656780831515789e-003 + 0.5808320045471191 + 0.4898357093334198 + <_> + + <_> + + + + <_>5 4 3 3 -1. + <_>5 5 3 1 3. + 0 + 1.0734340175986290e-003 + 0.4351210892200470 + 0.5470039248466492 + <_> + + <_> + + + + <_>9 14 2 6 -1. + <_>10 14 1 3 2. + <_>9 17 1 3 2. + 0 + 2.1923359017819166e-003 + 0.5355060100555420 + 0.3842903971672058 + <_> + + <_> + + + + <_>8 14 3 2 -1. + <_>9 14 1 2 3. + 0 + 5.4968618787825108e-003 + 0.5018138885498047 + 0.2827191948890686 + <_> + + <_> + + + + <_>9 5 6 6 -1. + <_>11 5 2 6 3. + 0 + -0.0753688216209412 + 0.1225076019763947 + 0.5148826837539673 + <_> + + <_> + + + + <_>5 5 6 6 -1. + <_>7 5 2 6 3. + 0 + 0.0251344703137875 + 0.4731766879558563 + 0.7025446295738220 + <_> + + <_> + + + + <_>13 13 1 2 -1. + <_>13 14 1 1 2. + 0 + -2.9358599931583740e-005 + 0.5430532097816467 + 0.4656086862087250 + <_> + + <_> + + + + <_>0 2 10 2 -1. + <_>0 3 10 1 2. + 0 + -5.8355910005047917e-004 + 0.4031040072441101 + 0.5190119743347168 + <_> + + <_> + + + + <_>13 13 1 2 -1. + <_>13 14 1 1 2. + 0 + -2.6639450807124376e-003 + 0.4308126866817474 + 0.5161771178245544 + <_> + + <_> + + + + <_>5 7 2 2 -1. + <_>5 7 1 1 2. + <_>6 8 1 1 2. + 0 + -1.3804089976474643e-003 + 0.6219829916954041 + 0.4695515930652618 + <_> + + <_> + + + + <_>13 5 2 7 -1. + <_>13 5 1 7 2. + 0 + 1.2313219485804439e-003 + 0.5379363894462585 + 0.4425831139087677 + <_> + + <_> + + + + <_>6 13 1 2 -1. + <_>6 14 1 1 2. + 0 + -1.4644179827882908e-005 + 0.5281640291213989 + 0.4222503006458283 + <_> + + <_> + + + + <_>11 0 3 7 -1. + <_>12 0 1 7 3. + 0 + -0.0128188095986843 + 0.2582092881202698 + 0.5179932713508606 + <_> + + <_> + + + + <_>0 3 2 16 -1. + <_>0 3 1 8 2. + <_>1 11 1 8 2. + 0 + 0.0228521898388863 + 0.4778693020343781 + 0.7609264254570007 + <_> + + <_> + + + + <_>11 0 3 7 -1. + <_>12 0 1 7 3. + 0 + 8.2305970136076212e-004 + 0.5340992212295532 + 0.4671724140644074 + <_> + + <_> + + + + <_>6 0 3 7 -1. + <_>7 0 1 7 3. + 0 + 0.0127701200544834 + 0.4965761005878449 + 0.1472366005182266 + <_> + + <_> + + + + <_>11 16 8 4 -1. + <_>11 16 4 4 2. + 0 + -0.0500515103340149 + 0.6414994001388550 + 0.5016592144966126 + <_> + + <_> + + + + <_>1 16 8 4 -1. + <_>5 16 4 4 2. + 0 + 0.0157752707600594 + 0.4522320032119751 + 0.5685362219810486 + <_> + + <_> + + + + <_>13 5 2 7 -1. + <_>13 5 1 7 2. + 0 + -0.0185016207396984 + 0.2764748930931091 + 0.5137959122657776 + <_> + + <_> + + + + <_>5 5 2 7 -1. + <_>6 5 1 7 2. + 0 + 2.4626250378787518e-003 + 0.5141941905021668 + 0.3795408010482788 + <_> + + <_> + + + + <_>18 6 2 14 -1. + <_>18 13 2 7 2. + 0 + 0.0629161670804024 + 0.5060648918151856 + 0.6580433845520020 + <_> + + <_> + + + + <_>6 10 3 4 -1. + <_>6 12 3 2 2. + 0 + -2.1648500478477217e-005 + 0.5195388197898865 + 0.4019886851310730 + <_> + + <_> + + + + <_>14 7 1 2 -1. + <_>14 8 1 1 2. + 0 + 2.1180990152060986e-003 + 0.4962365031242371 + 0.5954458713531494 + <_> + + <_> + + + + <_>0 1 18 6 -1. + <_>0 1 9 3 2. + <_>9 4 9 3 2. + 0 + -0.0166348908096552 + 0.3757933080196381 + 0.5175446867942810 + <_> + + <_> + + + + <_>14 7 1 2 -1. + <_>14 8 1 1 2. + 0 + -2.8899470344185829e-003 + 0.6624013781547546 + 0.5057178735733032 + <_> + + <_> + + + + <_>0 6 2 14 -1. + <_>0 13 2 7 2. + 0 + 0.0767832621932030 + 0.4795796871185303 + 0.8047714829444885 + <_> + + <_> + + + + <_>17 0 3 12 -1. + <_>18 0 1 12 3. + 0 + 3.9170677773654461e-003 + 0.4937882125377655 + 0.5719941854476929 + <_> + + <_> + + + + <_>0 6 18 3 -1. + <_>0 7 18 1 3. + 0 + -0.0726706013083458 + 0.0538945607841015 + 0.4943903982639313 + <_> + + <_> + + + + <_>6 0 14 16 -1. + <_>6 8 14 8 2. + 0 + 0.5403950214385986 + 0.5129774212837219 + 0.1143338978290558 + <_> + + <_> + + + + <_>0 0 3 12 -1. + <_>1 0 1 12 3. + 0 + 2.9510019812732935e-003 + 0.4528343975543976 + 0.5698574185371399 + <_> + + <_> + + + + <_>13 0 3 7 -1. + <_>14 0 1 7 3. + 0 + 3.4508369863033295e-003 + 0.5357726812362671 + 0.4218730926513672 + <_> + + <_> + + + + <_>5 7 1 2 -1. + <_>5 8 1 1 2. + 0 + -4.2077939724549651e-004 + 0.5916172862052918 + 0.4637925922870636 + <_> + + <_> + + + + <_>14 4 6 6 -1. + <_>14 6 6 2 3. + 0 + 3.3051050268113613e-003 + 0.5273385047912598 + 0.4382042884826660 + <_> + + <_> + + + + <_>5 7 7 2 -1. + <_>5 8 7 1 2. + 0 + 4.7735060798004270e-004 + 0.4046528041362763 + 0.5181884765625000 + <_> + + <_> + + + + <_>8 6 6 9 -1. + <_>8 9 6 3 3. + 0 + -0.0259285103529692 + 0.7452235817909241 + 0.5089386105537415 + <_> + + <_> + + + + <_>5 4 6 1 -1. + <_>7 4 2 1 3. + 0 + -2.9729790985584259e-003 + 0.3295435905456543 + 0.5058795213699341 + <_> + + <_> + + + + <_>13 0 6 4 -1. + <_>16 0 3 2 2. + <_>13 2 3 2 2. + 0 + 5.8508329093456268e-003 + 0.4857144057750702 + 0.5793024897575378 + <_> + + <_> + + + + <_>1 2 18 12 -1. + <_>1 6 18 4 3. + 0 + -0.0459675192832947 + 0.4312731027603149 + 0.5380653142929077 + <_> + + <_> + + + + <_>3 2 17 12 -1. + <_>3 6 17 4 3. + 0 + 0.1558596044778824 + 0.5196170210838318 + 0.1684713959693909 + <_> + + <_> + + + + <_>5 14 7 3 -1. + <_>5 15 7 1 3. + 0 + 0.0151648297905922 + 0.4735757112503052 + 0.6735026836395264 + <_> + + <_> + + + + <_>10 14 1 3 -1. + <_>10 15 1 1 3. + 0 + -1.0604249546304345e-003 + 0.5822926759719849 + 0.4775702953338623 + <_> + + <_> + + + + <_>3 14 3 3 -1. + <_>3 15 3 1 3. + 0 + 6.6476291976869106e-003 + 0.4999198913574219 + 0.2319535017013550 + <_> + + <_> + + + + <_>14 4 6 6 -1. + <_>14 6 6 2 3. + 0 + -0.0122311301529408 + 0.4750893115997315 + 0.5262982249259949 + <_> + + <_> + + + + <_>0 4 6 6 -1. + <_>0 6 6 2 3. + 0 + 5.6528882123529911e-003 + 0.5069767832756043 + 0.3561818897724152 + <_> + + <_> + + + + <_>12 5 4 3 -1. + <_>12 6 4 1 3. + 0 + 1.2977829901501536e-003 + 0.4875693917274475 + 0.5619062781333923 + <_> + + <_> + + + + <_>4 5 4 3 -1. + <_>4 6 4 1 3. + 0 + 0.0107815898954868 + 0.4750770032405853 + 0.6782308220863342 + <_> + + <_> + + + + <_>18 0 2 6 -1. + <_>18 2 2 2 3. + 0 + 2.8654779307544231e-003 + 0.5305461883544922 + 0.4290736019611359 + <_> + + <_> + + + + <_>8 1 4 9 -1. + <_>10 1 2 9 2. + 0 + 2.8663428965955973e-003 + 0.4518479108810425 + 0.5539351105690002 + <_> + + <_> + + + + <_>6 6 8 2 -1. + <_>6 6 4 2 2. + 0 + -5.1983320154249668e-003 + 0.4149119853973389 + 0.5434188842773438 + <_> + + <_> + + + + <_>6 5 4 2 -1. + <_>6 5 2 1 2. + <_>8 6 2 1 2. + 0 + 5.3739990107715130e-003 + 0.4717896878719330 + 0.6507657170295715 + <_> + + <_> + + + + <_>10 5 2 3 -1. + <_>10 6 2 1 3. + 0 + -0.0146415298804641 + 0.2172164022922516 + 0.5161777138710022 + <_> + + <_> + + + + <_>9 5 1 3 -1. + <_>9 6 1 1 3. + 0 + -1.5042580344015732e-005 + 0.5337383747100830 + 0.4298836886882782 + <_> + + <_> + + + + <_>9 10 2 2 -1. + <_>9 11 2 1 2. + 0 + -1.1875660129589960e-004 + 0.4604594111442566 + 0.5582447052001953 + <_> + + <_> + + + + <_>0 8 4 3 -1. + <_>0 9 4 1 3. + 0 + 0.0169955305755138 + 0.4945895075798035 + 0.0738800764083862 + <_> + + <_> + + + + <_>6 0 8 6 -1. + <_>6 3 8 3 2. + 0 + -0.0350959412753582 + 0.7005509138107300 + 0.4977591037750244 + <_> + + <_> + + + + <_>1 0 6 4 -1. + <_>1 0 3 2 2. + <_>4 2 3 2 2. + 0 + 2.4217350874096155e-003 + 0.4466265141963959 + 0.5477694272994995 + <_> + + <_> + + + + <_>13 0 3 7 -1. + <_>14 0 1 7 3. + 0 + -9.6340337768197060e-004 + 0.4714098870754242 + 0.5313338041305542 + <_> + + <_> + + + + <_>9 16 2 2 -1. + <_>9 17 2 1 2. + 0 + 1.6391130338888615e-004 + 0.4331546127796173 + 0.5342242121696472 + <_> + + <_> + + + + <_>11 4 6 10 -1. + <_>11 9 6 5 2. + 0 + -0.0211414601653814 + 0.2644700109958649 + 0.5204498767852783 + <_> + + <_> + + + + <_>0 10 19 2 -1. + <_>0 11 19 1 2. + 0 + 8.7775202700868249e-004 + 0.5208349823951721 + 0.4152742922306061 + <_> + + <_> + + + + <_>9 5 8 9 -1. + <_>9 8 8 3 3. + 0 + -0.0279439203441143 + 0.6344125270843506 + 0.5018811821937561 + <_> + + <_> + + + + <_>4 0 3 7 -1. + <_>5 0 1 7 3. + 0 + 6.7297378554940224e-003 + 0.5050438046455383 + 0.3500863909721375 + <_> + + <_> + + + + <_>8 6 4 12 -1. + <_>10 6 2 6 2. + <_>8 12 2 6 2. + 0 + 0.0232810396701097 + 0.4966318011283875 + 0.6968677043914795 + <_> + + <_> + + + + <_>0 2 6 4 -1. + <_>0 4 6 2 2. + 0 + -0.0116449799388647 + 0.3300260007381439 + 0.5049629807472229 + <_> + + <_> + + + + <_>8 15 4 3 -1. + <_>8 16 4 1 3. + 0 + 0.0157643090933561 + 0.4991598129272461 + 0.7321153879165649 + <_> + + <_> + + + + <_>8 0 3 7 -1. + <_>9 0 1 7 3. + 0 + -1.3611479662358761e-003 + 0.3911735117435455 + 0.5160670876502991 + <_> + + <_> + + + + <_>9 5 3 4 -1. + <_>10 5 1 4 3. + 0 + -8.1522337859496474e-004 + 0.5628911256790161 + 0.4949719011783600 + <_> + + <_> + + + + <_>8 5 3 4 -1. + <_>9 5 1 4 3. + 0 + -6.0066272271797061e-004 + 0.5853595137596130 + 0.4550595879554749 + <_> + + <_> + + + + <_>7 6 6 1 -1. + <_>9 6 2 1 3. + 0 + 4.9715518252924085e-004 + 0.4271470010280609 + 0.5443599224090576 + <_> + + <_> + + + + <_>7 14 4 4 -1. + <_>7 14 2 2 2. + <_>9 16 2 2 2. + 0 + 2.3475370835512877e-003 + 0.5143110752105713 + 0.3887656927108765 + <_> + + <_> + + + + <_>13 14 4 6 -1. + <_>15 14 2 3 2. + <_>13 17 2 3 2. + 0 + -8.9261569082736969e-003 + 0.6044502258300781 + 0.4971720874309540 + <_> + + <_> + + + + <_>7 8 1 8 -1. + <_>7 12 1 4 2. + 0 + -0.0139199104160070 + 0.2583160996437073 + 0.5000367760658264 + <_> + + <_> + + + + <_>16 0 2 8 -1. + <_>17 0 1 4 2. + <_>16 4 1 4 2. + 0 + 1.0209949687123299e-003 + 0.4857374131679535 + 0.5560358166694641 + <_> + + <_> + + + + <_>2 0 2 8 -1. + <_>2 0 1 4 2. + <_>3 4 1 4 2. + 0 + -2.7441629208624363e-003 + 0.5936884880065918 + 0.4645777046680450 + <_> + + <_> + + + + <_>6 1 14 3 -1. + <_>6 2 14 1 3. + 0 + -0.0162001308053732 + 0.3163014948368073 + 0.5193495154380798 + <_> + + <_> + + + + <_>7 9 3 10 -1. + <_>7 14 3 5 2. + 0 + 4.3331980705261230e-003 + 0.5061224102973938 + 0.3458878993988037 + <_> + + <_> + + + + <_>9 14 2 2 -1. + <_>9 15 2 1 2. + 0 + 5.8497930876910686e-004 + 0.4779017865657806 + 0.5870177745819092 + <_> + + <_> + + + + <_>7 7 6 8 -1. + <_>7 11 6 4 2. + 0 + -2.2466450463980436e-003 + 0.4297851026058197 + 0.5374773144721985 + <_> + + <_> + + + + <_>9 7 3 6 -1. + <_>9 10 3 3 2. + 0 + 2.3146099410951138e-003 + 0.5438671708106995 + 0.4640969932079315 + <_> + + <_> + + + + <_>7 13 3 3 -1. + <_>7 14 3 1 3. + 0 + 8.7679121643304825e-003 + 0.4726893007755280 + 0.6771789789199829 + <_> + + <_> + + + + <_>9 9 2 2 -1. + <_>9 10 2 1 2. + 0 + -2.2448020172305405e-004 + 0.4229173064231873 + 0.5428048968315125 + <_> + + <_> + + + + <_>0 1 18 2 -1. + <_>6 1 6 2 3. + 0 + -7.4336021207273006e-003 + 0.6098880767822266 + 0.4683673977851868 + <_> + + <_> + + + + <_>7 1 6 14 -1. + <_>7 8 6 7 2. + 0 + -2.3189240600913763e-003 + 0.5689436793327332 + 0.4424242079257965 + <_> + + <_> + + + + <_>1 9 18 1 -1. + <_>7 9 6 1 3. + 0 + -2.1042178850620985e-003 + 0.3762221038341522 + 0.5187087059020996 + <_> + + <_> + + + + <_>9 7 2 2 -1. + <_>9 7 1 2 2. + 0 + 4.6034841216169298e-004 + 0.4699405133724213 + 0.5771207213401794 + <_> + + <_> + + + + <_>9 3 2 9 -1. + <_>10 3 1 9 2. + 0 + 1.0547629790380597e-003 + 0.4465216994285584 + 0.5601701736450195 + <_> + + <_> + + + + <_>18 14 2 3 -1. + <_>18 15 2 1 3. + 0 + 8.7148818420246243e-004 + 0.5449805259704590 + 0.3914709091186523 + <_> + + <_> + + + + <_>7 11 3 1 -1. + <_>8 11 1 1 3. + 0 + 3.3364820410497487e-004 + 0.4564009010791779 + 0.5645738840103149 + <_> + + <_> + + + + <_>10 8 3 4 -1. + <_>11 8 1 4 3. + 0 + -1.4853250468149781e-003 + 0.5747377872467041 + 0.4692778885364533 + <_> + + <_> + + + + <_>7 14 3 6 -1. + <_>8 14 1 6 3. + 0 + 3.0251620337367058e-003 + 0.5166196823120117 + 0.3762814104557037 + <_> + + <_> + + + + <_>10 8 3 4 -1. + <_>11 8 1 4 3. + 0 + 5.0280741415917873e-003 + 0.5002111792564392 + 0.6151527166366577 + <_> + + <_> + + + + <_>7 8 3 4 -1. + <_>8 8 1 4 3. + 0 + -5.8164511574432254e-004 + 0.5394598245620728 + 0.4390751123428345 + <_> + + <_> + + + + <_>7 9 6 9 -1. + <_>7 12 6 3 3. + 0 + 0.0451415292918682 + 0.5188326835632324 + 0.2063035964965820 + <_> + + <_> + + + + <_>0 14 2 3 -1. + <_>0 15 2 1 3. + 0 + -1.0795620037242770e-003 + 0.3904685080051422 + 0.5137907266616821 + <_> + + <_> + + + + <_>11 12 1 2 -1. + <_>11 13 1 1 2. + 0 + 1.5995999274309725e-004 + 0.4895322918891907 + 0.5427504181861877 + <_> + + <_> + + + + <_>4 3 8 3 -1. + <_>8 3 4 3 2. + 0 + -0.0193592701107264 + 0.6975228786468506 + 0.4773507118225098 + <_> + + <_> + + + + <_>0 4 20 6 -1. + <_>0 4 10 6 2. + 0 + 0.2072550952434540 + 0.5233635902404785 + 0.3034991919994354 + <_> + + <_> + + + + <_>9 14 1 3 -1. + <_>9 15 1 1 3. + 0 + -4.1953290929086506e-004 + 0.5419396758079529 + 0.4460186064243317 + <_> + + <_> + + + + <_>8 14 4 3 -1. + <_>8 15 4 1 3. + 0 + 2.2582069505006075e-003 + 0.4815764129161835 + 0.6027408838272095 + <_> + + <_> + + + + <_>0 15 14 4 -1. + <_>0 17 14 2 2. + 0 + -6.7811207845807076e-003 + 0.3980278968811035 + 0.5183305740356445 + <_> + + <_> + + + + <_>1 14 18 6 -1. + <_>1 17 18 3 2. + 0 + 0.0111543098464608 + 0.5431231856346130 + 0.4188759922981262 + <_> + + <_> + + + + <_>0 0 10 6 -1. + <_>0 0 5 3 2. + <_>5 3 5 3 2. + 0 + 0.0431624315679073 + 0.4738228023052216 + 0.6522961258888245 + 105.7611007690429700 + 20 + -1 + diff --git a/facedetect/meson.build b/facedetect/meson.build new file mode 100644 index 0000000..6724abc --- /dev/null +++ b/facedetect/meson.build @@ -0,0 +1,10 @@ +subproject = ('facedetect') +add_languages('cpp') +facedetect_dep = dependency('opencv', version : ['>= 2.3.0'], required : true) +executable('shotwell-facedetect', + 'shotwell-facedetect.cpp', + dependencies : facedetect_dep, + install : true, + install_dir : join_paths(get_option('libexecdir'), 'shotwell')) +install_data('facedetect-haarcascade.xml', + install_dir : join_paths(get_option('datadir'), 'shotwell')) diff --git a/facedetect/shotwell-facedetect.cpp b/facedetect/shotwell-facedetect.cpp new file mode 100644 index 0000000..1b09379 --- /dev/null +++ b/facedetect/shotwell-facedetect.cpp @@ -0,0 +1,134 @@ +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * Copyright 2011 Valentín Barros Puertas + * Copyright 2018 Ricardo Fantin da Costa + * + * This software is licensed under the GNU LGPL (version 2.1 or later). + * See the COPYING file in this distribution. + */ + +#include "opencv2/objdetect/objdetect.hpp" +#include "opencv2/highgui/highgui.hpp" +#include "opencv2/imgproc/imgproc.hpp" + +#include +#include + +using namespace std; +using namespace cv; + +void help() { + + cout << + "Usage:" << endl << + "./facedetect --cascade= " + "--scale= " + "filename" << endl << endl << + "Example:" << endl << + "./facedetect --cascade=\"./data/haarcascades/haarcascade_frontalface_alt.xml\" " + "--scale=1.3 ./photo.jpg" << endl << endl << + "Using OpenCV version " << CV_VERSION << endl; + +} + +void detectFaces(Mat &img, CascadeClassifier &cascade, double scale) { + + Mat gray; + cvtColor(img, gray, CV_BGR2GRAY); + + Mat smallImg(cvRound(img.rows / scale), cvRound(img.cols / scale), CV_8UC1); + Size smallImgSize = smallImg.size(); + + resize(gray, smallImg, smallImgSize, 0, 0, INTER_LINEAR); + equalizeHist(smallImg, smallImg); + + vector faces; + cascade.detectMultiScale(smallImg, faces, 1.1, 2, CV_HAAR_SCALE_IMAGE, Size(30, 30)); + + int i = 0; + for (vector::const_iterator r = faces.begin(); r != faces.end(); r++, i++) { + + printf( + "face;x=%f&y=%f&width=%f&height=%f\n", + (float) r->x / smallImgSize.width, + (float) r->y / smallImgSize.height, + (float) r->width / smallImgSize.width, + (float) r->height / smallImgSize.height + ); + + } + +} + +int main(int argc, const char** argv) { + + const std::string scaleOpt = "--scale="; + size_t scaleOptLen = scaleOpt.length(); + const std::string cascadeOpt = "--cascade="; + size_t cascadeOptLen = cascadeOpt.length(); + + std::string cascadeName, inputName; + double scale = 1; + + for (int i = 1; i < argc; i++) { + + if (cascadeOpt.compare(0, cascadeOptLen, argv[i], cascadeOptLen) == 0) { + + cascadeName.assign(argv[i] + cascadeOptLen); + + } else if (scaleOpt.compare(0, scaleOptLen, argv[i], scaleOptLen) == 0) { + + if (!sscanf(argv[i] + scaleOpt.length(), "%lf", &scale) || scale < 1) + scale = 1; + + } else if (argv[i][0] == '-') { + + cout << "warning;Unknown option " << argv[i] << endl; + + } else + inputName.assign(argv[i]); + + } + + if (cascadeName.empty()) { + + cout << "error;You must specify the cascade." << endl; + help(); + + return -1; + + } + + CascadeClassifier cascade; + + if (!cascade.load(cascadeName)) { + + cout << "error;Could not load classifier cascade. Filename: \"" << cascadeName << "\"" << endl; + + return -1; + } + + if (inputName.empty()) { + + cout << "error;You must specify the file to process." << endl; + help(); + + return -1; + + } + + Mat image = imread(inputName, 1); + + if (image.empty()) { + + cout << "error;Could not load the file to process. Filename: \"" << inputName << "\"" << endl; + + return -1; + + } + + detectFaces(image, cascade, scale); + + return 0; + +} diff --git a/flatpak/org.gnome.Shotwell.json b/flatpak/org.gnome.Shotwell.json new file mode 100644 index 0000000..e6492f3 --- /dev/null +++ b/flatpak/org.gnome.Shotwell.json @@ -0,0 +1,170 @@ +{ + "app-id": "org.gnome.Shotwell", + "runtime": "org.gnome.Platform", + "runtime-version": "3.28", + "sdk": "org.gnome.Sdk", + "command" : "shotwell", + "rename-desktop-file" : "shotwell.desktop", + "rename-icon" : "shotwell", + "rename-appdata-file" : "shotwell.appdata.xml", + "tags": [ "nightly" ], + "desktop-file-name-prefix": "(Nightly) ", + "finish-args": [ + "--env=DCONF_USER_CONFIG_DIR=.config/dconf", + "--filesystem=~/.config/dconf:ro", + "--filesystem=xdg-download", + "--filesystem=xdg-pictures", + "--filesystem=xdg-run/dconf", + "--share=ipc", + "--share=network", + "--device=all", + "--socket=wayland", + "--socket=x11", + "--talk-name=ca.desrt.dconf", + "--talk-name=org.freedesktop.FileManager1", + "--talk-name=org.gnome.SettingsDaemon", + "--talk-name=org.gtk.vfs", + "--talk-name=org.gtk.vfs.*" + ], + + "cleanup" : ["/include", "/lib/pkconfig", "/share/pkgconfig", "/share/gtk-doc", "/share/man", "/share/vala", "/lib/girepository", "*.la", "*.a"], + + "modules" : [ + { + "name": "libgee", + "sources" : [ + { + "type" : "archive", + "url" : "https://download.gnome.org/sources/libgee/0.20/libgee-0.20.1.tar.xz", + "sha256" : "bb2802d29a518e8c6d2992884691f06ccfcc25792a5686178575c7111fea4630" + } + ], + "config-opts" : ["--disable-introspection", "--disable-docs"] + }, + { + "name": "libusb", + "sources" : [ + { + "type" : "archive", + "url" : "https://github.com/libusb/libusb/releases/download/v1.0.22/libusb-1.0.22.tar.bz2", + "sha256" : "75aeb9d59a4fdb800d329a545c2e6799f732362193b465ea198f2aa275518157" + } + ], + "config-opts" : ["--disable-udev"] + }, + { + "name": "libghoto2", + "cleanup" : ["/bin", "/lib/udev", "/share/doc"], + "sources" : [ + { + "type" : "archive", + "url" : "https://datapacket.dl.sourceforge.net/project/gphoto/libgphoto/2.5.18/libgphoto2-2.5.18.tar.bz2", + "sha256" : "5b17b89d7ca0ec35c72c94ac3701e87d49e52371f9509b8e5c08c913ae57a7ec" + } + ], + "config-opts" : ["--disable-introspection", "--disable-docs"] + }, + + { + "name": "liboauth", + "sources": [ + { + "type": "archive", + "url": "http://netix.dl.sourceforge.net/project/liboauth/liboauth-1.0.3.tar.gz", + "sha256": "0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f" + } + ] + }, + { + "name": "libgdata", + "cleanup": ["/share/gtk-doc"], + "config-opts": [ "--disable-always-build-tests", + "--disable-introspection", + "--disable-Werror", + "--disable-static", + "--disable-goa" ], + "sources": [ + { + "type": "archive", + "url": "https://download.gnome.org/sources/libgdata/0.17/libgdata-0.17.9.tar.xz", + "sha256": "85c4f7674c0098ffaf060ae01b6b832cb277b3673d54ace3bdedaad6b127453a" + } + ] + }, + + + { + "name": "exiv2", + "cleanup": [ "/bin" ], + "buildsystem": "cmake", + "sources": [ + { + "type": "git", + "url": "https://github.com/Exiv2/exiv2/", + "commit" : "e7ffd83af29187190da7f98dcbca8a4d70e19582" + } + ] + }, + { + "name": "gexiv2", + "cleanup" : ["/lib/girepository-1.0", "/share/gir-1.0"], + "config-opts" : ["--without-python2-girdir", "--without-python3-girdir"], + "build-options" : { + "env": { + "PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR": "/app/share/gir-1.0", + "PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR": "/app/lib/girepository-1.0" + } + }, + "sources": [ + { + "type": "git", + "url": "https://gitlab.gnome.org/GNOME/gexiv2.git/" + } + ] + }, + + { + "name": "libraw", + "config-opts": [ "--disable-examples", "--disable-static" ], + "cleanup": [ "/share/doc" ], + "sources": [ + { + "type": "archive", + "url": "https://www.libraw.org/data/LibRaw-0.18.13.tar.gz", + "sha256": "cb1f9d0d1fabc8967d501d95c05d2b53d97a2b917345c66553b1abbea06757ca" + }, + { + "type": "patch", + "path": "patches/libraw-pkgconfig.patch" + } + ] + }, + { + "name": "opencv", + "buildsystem": "cmake", + "builddir": true, + "cleanup" : ["/share/OpenCV/*.cmake", "/share/OpenCV/*.supp"], + "config-opts" : ["-DBUILD_TESTS=OFF", "-DBUILD_EXAMPLES=OFF", "-DBUILD_PERF_TESTS=OFF", "-DWITH_FFMPEG=OFF", "-DWITH_GTK=OFF", "-DWITH_GSTREAMER=OFF", "-DBUILD_opencv_apps=OFF"], + "sources": [ + { + "type": "git", + "tag": "3.4.1", + "commit" : "6ffc48769ac60d53c4bd1913eac15117c9b1c9f7", + "url": "https://github.com/opencv/opencv" + } + ] + }, + { + "name": "shotwell", + "buildsystem": "meson", + "config-opts" : ["-Dudev=false", "-Dinstall-apport-hook=false", "-Dface-detection=true"], + "sources" : [ + { + "type": "git", + "url" : "https://gitlab.gnome.org/GNOME/shotwell", + "branch" : "master" + } + ] + } + ] +} diff --git a/flatpak/org.gnome.Shotwell.nightly.flatpakref b/flatpak/org.gnome.Shotwell.nightly.flatpakref new file mode 100644 index 0000000..a589642 --- /dev/null +++ b/flatpak/org.gnome.Shotwell.nightly.flatpakref @@ -0,0 +1,8 @@ +[Flatpak Ref] +Name=org.gnome.Shotwell +Branch=master +Title=org.gnome.Shotwell from Shotwell nightly +Url=https://shotwell-project.org/flatpak/nightly +RuntimeRepo=https://dl.flathub.org/repo/flathub.flatpakrepo +IsRuntime=false +GPGKey=mQINBFsWRf8BEACldFkzCTUNq3D0RGYSRqQWiV3XYdzn18GANKZK7O/AJqFcV+PUjB/TvHCsIS7NEavjYJw4OA2NhpvujjMZn/uV40pZFcFJE3BuBntdzUfiZeGRx3lLDLW+d/JFqge9V2rnMBK22o0qP2TLBX6Uy0pBTM5/FvmiTyXGZnAvZtnuwIfI2cl4asQLwRAWzzuIGcOQHgr+HeALNRI5JUYJj8p8wSIymPYEYA663S7QID1RiC6amnHjMQ2GVDJw9s19t1nwSuK3nGWS4Mj+4+Yu1Ij9sHB8kyJCZ4xHoiSR440zoYbpmBCaEzYUMXUDy/rKzMk6ablcovbqX0wmLr011UQQXwz7DaWPqabon3OjaZFiXjiUk6J0zxXlLC4eLu8D+RDyAoVgjg70J4GlCNJ5ducbqIAHbvD4bNsMnwNGKKyguu4y65qmb+/JSe32f1AMLOky5ZiIONTgDgWZ87iIhhUxxoMgs65GlSU0pz2I/3ellh+dWLVMxAH8g9Yl0JlYR6vpi4BZfc7ZyMJDM+8ZrpseJPhej/XeGsVsRDVpQgRofG3DkEuA6cqh1iP+LmsVvTnvLv+YQ4DSREYAmm40VUGcqvh0PgL1EkVygYrZMvkBmTvry4rVBDxZ/6BfbzPDpfV2WAS/fBQPR6tIj99v6yYdsl3x8dJyMo9sQki1p1z2ywARAQABtIhTaG90d2VsbCBOaWdodGx5IEZsYXRwYWsgc2lnbmluZyBrZXkgKFRoaXMga2V5IGlzIHVzZWQgdG8gc2lnbiBTaG90d2VsbCdzIG5pZ2h0bHkgRmxhdHBhayBidWlsZHMpIDxmbGF0cGFrLW5pZ2h0bHlAc2hvdHdlbGwtcHJvamVjdC5vcmc+iQI9BBMBCAAnBQJbFkX/AhsDBQkB4TOABQsJCAcCBhUICQoLAgQWAgMBAh4BAheAAAoJEF8qOQMReaZwr5MP/2kYJninLDQcR/r3xZ8JS9kcQKFEnWu9c2IbaLu4rfXxTY2q+tJMfH9/OC0/0liVtp4FrFKiXIY5+tfnm0m/nEpVcPc4gvMPM4LkDF4WMhHlraxqr/X/AHa+oX0OfB3jW8lPlrRNxSBUGIorghM/S1H2otJC/CnLh5aJ2Xuh/YUoH1UuoShRsz9K7uRMRx/KdOcAwBJ1uxS3g9yIjFgBTyDZCZwtweMZOrZFejzxfDwQhxGFq5nI59mKH5yCajPzZoQj0SifimQvKi4Kwv3aPqrfm4aDKsgpTrdIZigHvu3Jt8f+NE9Svc0Fo4LUPHqVXkPuw9RBz0UTrwbjKIyDxQJrqRjjRCbUOAGDN6wenO3Pv3eikyflYLWLLW6sQG27ixZkf6+6icmDzPVGmeSXrROqwkr64MTFFFByBhO1b2sNoBtW9nIdnc3oH50p5W9pye6txQSiE3+yerYKgqOQmeq5gLhnh7jRMHQ2ubygrNG8caQWjx8LBZuL+bZcVPO8LunFLyU7J/4vDkn0HHt7r+RjPVqsNImzim4WI6Vhtt7RIxNMsyGThABchkTNslQrM2sKqebgVDL8BGnZed/que5dxkXeNqHH3JyzHDPtt3hlvhduxz3APFlvbg+rVkcXgy1frLWfno1C/nuz6FNRvz0QfUFHaR3FjSi/sasQ2TUdiQIzBBABCgAdFiEErJzU4y18f2NXuordEPbpcBddKeEFAlsXXvUACgkQEPbpcBddKeHT9g/+PGhNz6UnILWJcW8efENmNDXqN2rHm9MHwfoRiVwU6oCkMLNjPk+5AAXScOkjYNplTuTGfMxpmvNgZvjcbLiOg/I+e3hzhY2fjUyD57ORvkB7qsid0YzBGXS5lXnSUbegt7h7YSNd2oyqcrV27YCr+fdV1YwIqhD5zq7krVpVTyz2tKeR8I2w9iKmg3Ty4t2dX6MU+UVdcYWv+UbGJbJFHfDxombg415lhieUMQl9btMKyRilBij48Daauj/p4bYDFA4llHYNm7y6ocQzh04Ul2ZKnvmMlGntta15AP6BZpCCn5ICbN9zBxXlYCgjGIseuHbuAZZ3R0ynV3aet+DtS35ii1oBhwqKT2U4q6e5P3VeSe+Y6Gg2p2JruD3PezGS3wR3l231ThU/vcEVSmJzwW11q9qlf8RqR92vqmoy97addsaq/m3qCNuVk+1oJyD8cdJQ3Z7/nj+Qp0pxK9gjXxF+qPguVdYYf+JJRB9HVh1N2mkmMZkzROdd6q4/SGrhHzJj8i7SvYuHBWIW7n0qNkWB01iuduq3sK2WhlCD854X6sjQN5t3k4+Lit8O28BOK0hRNqAD/TplPc/QJEqpkRyp/wFIWnEmoHl5ZRBi0VSS7LAbdN/chJ9zGIqpNX4DHNuI7alTAccc6Sra8jLeBCVHtw36t2f5C/JjgtzqZdk= diff --git a/flatpak/org.gnome.Shotwell.unstable.flatpakref b/flatpak/org.gnome.Shotwell.unstable.flatpakref new file mode 100644 index 0000000..6ae8621 --- /dev/null +++ b/flatpak/org.gnome.Shotwell.unstable.flatpakref @@ -0,0 +1,8 @@ +[Flatpak Ref] +Name=org.gnome.Shotwell +Branch=unstable +Title=org.gnome.Shotwell from Shotwell unstable +Url=https://shotwell-project.org/flatpak/nightly +RuntimeRepo=https://dl.flathub.org/repo/flathub.flatpakrepo +IsRuntime=false +GPGKey=mQINBFsWRf8BEACldFkzCTUNq3D0RGYSRqQWiV3XYdzn18GANKZK7O/AJqFcV+PUjB/TvHCsIS7NEavjYJw4OA2NhpvujjMZn/uV40pZFcFJE3BuBntdzUfiZeGRx3lLDLW+d/JFqge9V2rnMBK22o0qP2TLBX6Uy0pBTM5/FvmiTyXGZnAvZtnuwIfI2cl4asQLwRAWzzuIGcOQHgr+HeALNRI5JUYJj8p8wSIymPYEYA663S7QID1RiC6amnHjMQ2GVDJw9s19t1nwSuK3nGWS4Mj+4+Yu1Ij9sHB8kyJCZ4xHoiSR440zoYbpmBCaEzYUMXUDy/rKzMk6ablcovbqX0wmLr011UQQXwz7DaWPqabon3OjaZFiXjiUk6J0zxXlLC4eLu8D+RDyAoVgjg70J4GlCNJ5ducbqIAHbvD4bNsMnwNGKKyguu4y65qmb+/JSe32f1AMLOky5ZiIONTgDgWZ87iIhhUxxoMgs65GlSU0pz2I/3ellh+dWLVMxAH8g9Yl0JlYR6vpi4BZfc7ZyMJDM+8ZrpseJPhej/XeGsVsRDVpQgRofG3DkEuA6cqh1iP+LmsVvTnvLv+YQ4DSREYAmm40VUGcqvh0PgL1EkVygYrZMvkBmTvry4rVBDxZ/6BfbzPDpfV2WAS/fBQPR6tIj99v6yYdsl3x8dJyMo9sQki1p1z2ywARAQABtIhTaG90d2VsbCBOaWdodGx5IEZsYXRwYWsgc2lnbmluZyBrZXkgKFRoaXMga2V5IGlzIHVzZWQgdG8gc2lnbiBTaG90d2VsbCdzIG5pZ2h0bHkgRmxhdHBhayBidWlsZHMpIDxmbGF0cGFrLW5pZ2h0bHlAc2hvdHdlbGwtcHJvamVjdC5vcmc+iQI9BBMBCAAnBQJbFkX/AhsDBQkB4TOABQsJCAcCBhUICQoLAgQWAgMBAh4BAheAAAoJEF8qOQMReaZwr5MP/2kYJninLDQcR/r3xZ8JS9kcQKFEnWu9c2IbaLu4rfXxTY2q+tJMfH9/OC0/0liVtp4FrFKiXIY5+tfnm0m/nEpVcPc4gvMPM4LkDF4WMhHlraxqr/X/AHa+oX0OfB3jW8lPlrRNxSBUGIorghM/S1H2otJC/CnLh5aJ2Xuh/YUoH1UuoShRsz9K7uRMRx/KdOcAwBJ1uxS3g9yIjFgBTyDZCZwtweMZOrZFejzxfDwQhxGFq5nI59mKH5yCajPzZoQj0SifimQvKi4Kwv3aPqrfm4aDKsgpTrdIZigHvu3Jt8f+NE9Svc0Fo4LUPHqVXkPuw9RBz0UTrwbjKIyDxQJrqRjjRCbUOAGDN6wenO3Pv3eikyflYLWLLW6sQG27ixZkf6+6icmDzPVGmeSXrROqwkr64MTFFFByBhO1b2sNoBtW9nIdnc3oH50p5W9pye6txQSiE3+yerYKgqOQmeq5gLhnh7jRMHQ2ubygrNG8caQWjx8LBZuL+bZcVPO8LunFLyU7J/4vDkn0HHt7r+RjPVqsNImzim4WI6Vhtt7RIxNMsyGThABchkTNslQrM2sKqebgVDL8BGnZed/que5dxkXeNqHH3JyzHDPtt3hlvhduxz3APFlvbg+rVkcXgy1frLWfno1C/nuz6FNRvz0QfUFHaR3FjSi/sasQ2TUdiQIzBBABCgAdFiEErJzU4y18f2NXuordEPbpcBddKeEFAlsXXvUACgkQEPbpcBddKeHT9g/+PGhNz6UnILWJcW8efENmNDXqN2rHm9MHwfoRiVwU6oCkMLNjPk+5AAXScOkjYNplTuTGfMxpmvNgZvjcbLiOg/I+e3hzhY2fjUyD57ORvkB7qsid0YzBGXS5lXnSUbegt7h7YSNd2oyqcrV27YCr+fdV1YwIqhD5zq7krVpVTyz2tKeR8I2w9iKmg3Ty4t2dX6MU+UVdcYWv+UbGJbJFHfDxombg415lhieUMQl9btMKyRilBij48Daauj/p4bYDFA4llHYNm7y6ocQzh04Ul2ZKnvmMlGntta15AP6BZpCCn5ICbN9zBxXlYCgjGIseuHbuAZZ3R0ynV3aet+DtS35ii1oBhwqKT2U4q6e5P3VeSe+Y6Gg2p2JruD3PezGS3wR3l231ThU/vcEVSmJzwW11q9qlf8RqR92vqmoy97addsaq/m3qCNuVk+1oJyD8cdJQ3Z7/nj+Qp0pxK9gjXxF+qPguVdYYf+JJRB9HVh1N2mkmMZkzROdd6q4/SGrhHzJj8i7SvYuHBWIW7n0qNkWB01iuduq3sK2WhlCD854X6sjQN5t3k4+Lit8O28BOK0hRNqAD/TplPc/QJEqpkRyp/wFIWnEmoHl5ZRBi0VSS7LAbdN/chJ9zGIqpNX4DHNuI7alTAccc6Sra8jLeBCVHtw36t2f5C/JjgtzqZdk= diff --git a/flatpak/patches/exiv2-no-builddir.patch b/flatpak/patches/exiv2-no-builddir.patch new file mode 100644 index 0000000..939a6d1 --- /dev/null +++ b/flatpak/patches/exiv2-no-builddir.patch @@ -0,0 +1,25 @@ +From ba7a8cfe30342592e277ad41837f0eb5c6e88648 Mon Sep 17 00:00:00 2001 +From: Emmanuele Bassi +Date: Wed, 20 Jan 2016 17:00:19 +0000 +Subject: [PATCH] Disable builddir for exiv2 + +It's not supported. +--- + configure | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/configure b/configure +index 4cd76eb..7848532 100755 +--- a/configure ++++ b/configure +@@ -19914,6 +19914,8 @@ fi + # Configuration summary. + # --------------------------------------------------------------------------- + ++echo \#buildapi-variable-no-builddir >/dev/null ++ + echo "" + echo "------------------------------------------------------------------" + echo "-- Exiv2 $VERSION feature configuration summary" +-- +2.5.0 diff --git a/flatpak/patches/libraw-pkgconfig.patch b/flatpak/patches/libraw-pkgconfig.patch new file mode 100644 index 0000000..8ef671a --- /dev/null +++ b/flatpak/patches/libraw-pkgconfig.patch @@ -0,0 +1,43 @@ +From bf4b0b6a3ec1579916475295ac42a5f98559a04b Mon Sep 17 00:00:00 2001 +From: Emmanuele Bassi +Date: Fri, 12 Feb 2016 18:29:35 +0000 +Subject: [PATCH] Add pkg-config file to LibRaw + +Taken from the Fedora package. +--- + libraw.pc.in | 5 +++-- + libraw_r.pc.in | 5 +++-- + 2 files changed, 6 insertions(+), 4 deletions(-) + +diff --git a/libraw.pc.in b/libraw.pc.in +index 0e530b2..0c635f0 100644 +--- a/libraw.pc.in ++++ b/libraw.pc.in +@@ -5,7 +5,8 @@ includedir=@includedir@ + + Name: libraw + Description: Raw image decoder library (non-thread-safe) +-Requires: @PACKAGE_REQUIRES@ ++Requires.private: @PACKAGE_REQUIRES@ + Version: @PACKAGE_VERSION@ +-Libs: -L${libdir} -lraw -lstdc++@PC_OPENMP@ ++Libs: -L${libdir} -lraw@PC_OPENMP@ ++Libs.private: -lstdc++ + Cflags: -I${includedir}/libraw +diff --git a/libraw_r.pc.in b/libraw_r.pc.in +index a7f4535..c4e6028 100644 +--- a/libraw_r.pc.in ++++ b/libraw_r.pc.in +@@ -5,7 +5,8 @@ includedir=@includedir@ + + Name: libraw + Description: Raw image decoder library (thread-safe) +-Requires: @PACKAGE_REQUIRES@ ++Requires.private: @PACKAGE_REQUIRES@ + Version: @PACKAGE_VERSION@ +-Libs: -L${libdir} -lraw_r -lstdc++@PC_OPENMP@ ++Libs: -L${libdir} -lraw_r@PC_OPENMP@ ++Libs.private: -lstdc++ + Cflags: -I${includedir}/libraw +-- +2.5.0 diff --git a/help/C/figures/trash_process.svg b/help/C/figures/trash_process.svg new file mode 100644 index 0000000..ca10913 --- /dev/null +++ b/help/C/figures/trash_process.svg @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + Shotwell photo library + Deletephoto + Shotwell trash + Computer trash + EmptyShotwelltrash + EmptyComputertrash(deleted from hard disk) + + Restore photo + ? + + \ No newline at end of file diff --git a/help/LINGUAS b/help/LINGUAS new file mode 100644 index 0000000..5bfd302 --- /dev/null +++ b/help/LINGUAS @@ -0,0 +1,9 @@ +cs +de +el +es +fr +hu +lv +pt_BR +sv diff --git a/help/Makefile.am b/help/Makefile.am deleted file mode 100644 index 834851f..0000000 --- a/help/Makefile.am +++ /dev/null @@ -1,58 +0,0 @@ -# Dummy Makefile.am to allow the help to be translated on l10n.gnome.org. -# This isn't actually processed by automake. - -dist_man1_MANS = shotwell.1 - -@YELP_HELP_RULES@ - -HELP_ID = shotwell - -HELP_MEDIA = \ - figures/crop_thirds.jpg \ - figures/editing_overview.png \ - figures/edit_toolbar.png \ - figures/shotwell_logo.png \ - figures/trash_process.png - -HELP_FILES = \ - edit-adjustments.page \ - edit-crop.page \ - edit-enhance.page \ - edit-external.page \ - edit-nondestructive.page \ - edit-redeye.page \ - edit-rotate.page \ - edit-straighten.page \ - edit-date-time.page \ - edit-undo.page \ - formats.page \ - import-camera.page \ - import-file.page \ - import-memorycard.page \ - index.page \ - organize-event.page \ - organize-flag.page \ - organize-rating.page \ - organize-remove.page \ - organize-search.page \ - organize-tag.page \ - organize-title.page \ - other-files.page \ - other-missing.page \ - other-multiple.page \ - other-plugins.page \ - raw.page \ - running.page \ - share-background.page \ - share-export.page \ - share-print.page \ - share-send.page \ - share-slideshow.page \ - share-upload.page \ - view-displaying.page \ - view-information.page \ - view-sidebar.page - -HELP_LINGUAS = cs de el es hu lv pt_BR sv - --include $(top_srcdir)/git.mk diff --git a/help/Makefile.in b/help/Makefile.in deleted file mode 100644 index 2689a86..0000000 --- a/help/Makefile.in +++ /dev/null @@ -1,641 +0,0 @@ -# Makefile.in generated by automake 1.15.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2017 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -# Dummy Makefile.am to allow the help to be translated on l10n.gnome.org. -# This isn't actually processed by automake. -VPATH = @srcdir@ -am__is_gnu_make = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = help -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/appstream-xml.m4 \ - $(top_srcdir)/m4/ax_generate_changelog.m4 \ - $(top_srcdir)/m4/ax_is_release.m4 \ - $(top_srcdir)/m4/ax_require_defined.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gsettings.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/yelp.m4 $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -SOURCES = -DIST_SOURCES = -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -man1dir = $(mandir)/man1 -am__installdirs = "$(DESTDIR)$(man1dir)" -NROFF = nroff -MANS = $(dist_man1_MANS) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(dist_man1_MANS) $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -API_VERSION = @API_VERSION@ -APPSTREAM_UTIL = @APPSTREAM_UTIL@ -AR = @AR@ -AUTHENTICATOR_CFLAGS = @AUTHENTICATOR_CFLAGS@ -AUTHENTICATOR_LIBS = @AUTHENTICATOR_LIBS@ -AUTHENTICATOR_PACKAGES = @AUTHENTICATOR_PACKAGES@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GIT = @GIT@ -GITVER = @GITVER@ -GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -HAVE_EXTRA_PLUGINS = @HAVE_EXTRA_PLUGINS@ -HAVE_UNITY = @HAVE_UNITY@ -HELP_DIR = @HELP_DIR@ -IMPORT_CFLAGS = @IMPORT_CFLAGS@ -IMPORT_LIBS = @IMPORT_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -ITSTOOL = @ITSTOOL@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAJOR_VERSION = @MAJOR_VERSION@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MICRO_VERSION = @MICRO_VERSION@ -MINOR_VERSION = @MINOR_VERSION@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -PLUGIN_CFLAGS = @PLUGIN_CFLAGS@ -PLUGIN_LIBS = @PLUGIN_LIBS@ -POSUB = @POSUB@ -PUBLISHER_VALAFLAGS = @PUBLISHER_VALAFLAGS@ -PUBLISHING_CFLAGS = @PUBLISHING_CFLAGS@ -PUBLISHING_LIBS = @PUBLISHING_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SHOTWELL_CFLAGS = @SHOTWELL_CFLAGS@ -SHOTWELL_LIBS = @SHOTWELL_LIBS@ -STRIP = @STRIP@ -THUMBNAILER_CFLAGS = @THUMBNAILER_CFLAGS@ -THUMBNAILER_LIBS = @THUMBNAILER_LIBS@ -TRANSITIONS_CFLAGS = @TRANSITIONS_CFLAGS@ -TRANSITIONS_LIBS = @TRANSITIONS_LIBS@ -UNITY_CFLAGS = @UNITY_CFLAGS@ -UNITY_LIBS = @UNITY_LIBS@ -UNITY_VALAFLAGS = @UNITY_VALAFLAGS@ -USE_NLS = @USE_NLS@ -VALAC = @VALAC@ -VALAFLAGS = @VALAFLAGS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMLLINT = @XMLLINT@ -YELP_LC_DIST = @YELP_LC_DIST@ -YELP_LC_MEDIA_LINKS = @YELP_LC_MEDIA_LINKS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -appstreamxmldir = @appstreamxmldir@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -gsettingsschemadir = @gsettingsschemadir@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -runstatedir = @runstatedir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -dist_man1_MANS = shotwell.1 -HELP_ID = shotwell -HELP_MEDIA = \ - figures/crop_thirds.jpg \ - figures/editing_overview.png \ - figures/edit_toolbar.png \ - figures/shotwell_logo.png \ - figures/trash_process.png - -HELP_FILES = \ - edit-adjustments.page \ - edit-crop.page \ - edit-enhance.page \ - edit-external.page \ - edit-nondestructive.page \ - edit-redeye.page \ - edit-rotate.page \ - edit-straighten.page \ - edit-date-time.page \ - edit-undo.page \ - formats.page \ - import-camera.page \ - import-file.page \ - import-memorycard.page \ - index.page \ - organize-event.page \ - organize-flag.page \ - organize-rating.page \ - organize-remove.page \ - organize-search.page \ - organize-tag.page \ - organize-title.page \ - other-files.page \ - other-missing.page \ - other-multiple.page \ - other-plugins.page \ - raw.page \ - running.page \ - share-background.page \ - share-export.page \ - share-print.page \ - share-send.page \ - share-slideshow.page \ - share-upload.page \ - view-displaying.page \ - view-information.page \ - view-sidebar.page - -HELP_LINGUAS = cs de el es hu lv pt_BR sv -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign help/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign help/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-man1: $(dist_man1_MANS) - @$(NORMAL_INSTALL) - @list1='$(dist_man1_MANS)'; \ - list2=''; \ - test -n "$(man1dir)" \ - && test -n "`echo $$list1$$list2`" \ - || exit 0; \ - echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ - { for i in $$list1; do echo "$$i"; done; \ - if test -n "$$list2"; then \ - for i in $$list2; do echo "$$i"; done \ - | sed -n '/\.1[a-z]*$$/p'; \ - fi; \ - } | while read p; do \ - if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; echo "$$p"; \ - done | \ - sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ - sed 'N;N;s,\n, ,g' | { \ - list=; while read file base inst; do \ - if test "$$base" = "$$inst"; then list="$$list $$file"; else \ - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ - fi; \ - done; \ - for i in $$list; do echo "$$i"; done | $(am__base_list) | \ - while read files; do \ - test -z "$$files" || { \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ - done; } - -uninstall-man1: - @$(NORMAL_UNINSTALL) - @list='$(dist_man1_MANS)'; test -n "$(man1dir)" || exit 0; \ - files=`{ for i in $$list; do echo "$$i"; done; \ - } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ - -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ - dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(MANS) -installdirs: - for dir in "$(DESTDIR)$(man1dir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-man - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: install-man1 - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-man - -uninstall-man: uninstall-man1 - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-man1 install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-man \ - uninstall-man1 - -.PRECIOUS: Makefile - - -@YELP_HELP_RULES@ - --include $(top_srcdir)/git.mk - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/help/cs/cs.stamp b/help/cs/cs.stamp deleted file mode 100644 index e69de29..0000000 diff --git a/help/cs/edit-adjustments.page b/help/cs/edit-adjustments.page deleted file mode 100644 index 5f4dc0c..0000000 --- a/help/cs/edit-adjustments.page +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - Jak změnit expozici, sytost, odstín a tónování fotografie. - - - - - Přizpůsobení barev - -

Tlačítko Upravit otevře plovoucí okno s histogramem a posuvníky sloužícími k úpravě expozice, sytosti, odstínu, teploty a tónů fotografie. Na histogramu je táhlo umožňující omezit horní a dolní práh intenzity, čímž se roztáhne kontrast ve střední části.

- -

Tlačítko Vylepšit upraví histogram a posun tónů tak, aby fotografie vypadala kvalitněji.

- -

Až barevnost a kontrast fotografie odpovídají vašim představám, zmáčkněte Budiž a změny se uloží. Tlačítko Původní vrací obrázek do původního stavu. Pomocí Zrušit se všechny provedené změny zahodí a s úpravami se skončí.

- -
- Co dělá která úprava barvy? - - - Expozice -

Mění jas, což funguje podobně, jako by byla fotografie exponována po delší nebo kratší čas. Použijte ke korekci podexponované nebo přeexponované fotografie.

-
- - Kontrast -

Mění kontrast fotografie. To můžete využít k opravě fotografií, které mají malou „hloubku“, nebo u kterých nedobře působí příliš velké rozdíly mezi světlými a tmavými plochami.

-
- - Sytost -

Mění, jak jasně vypadají barvy. Když vaše fotografie působí šedě a vybledle, zkuste zvýšit sytost. Když barvy naopak příliš křičí, zkuste ji snížit.

-
- - Odstín -

Mění barevný odstín fotografie. Hodí se ke korekci fotografií, které mají nastaveno nesprávné vyvážení bílé, což typicky působí nepřirozené barevné podání. Například fotografie pořízené v přírodě s nastavením vyvážení bílé na „žárovka“ mají modrý nádech.

-
- - Teplota -

Mění, jak „teple“ nebo naopak „studeně“ má obrázek působit. Můžete jej použít například k tomu, aby studené depresivní scény vypadaly více živě.

-
- - Tóny -

Dělá temné oblasti světlejšími. Použijte ke zviditelnění více detailů, když tonou v tmavých stínech.

-
- - Práh intenzity (táhla na histogramu) -

Tato táhla mění jak moc světlá je nejsvětlejší bílá a jak moc tmavá je nejtmavější černá. Použijte ke změně kontrastu fotografie. Změna tohoto nastavení může přinést výsledky u fotografií, které vypadají mdle a vybledle.

-
-
-
- -
diff --git a/help/cs/edit-crop.page b/help/cs/edit-crop.page deleted file mode 100644 index 69e6ae7..0000000 --- a/help/cs/edit-crop.page +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - Jak zdokonalit kompozici fotografie odříznutím některých částí. - - - - - Ořezání - -

Jestli chcete zmenšit plochu fotografie a zaměřit pohled jen na nějakou její část, použijte nástroj pro ořezání. Tento nástroj je přístupný jen v režimu celého okna nebo celé obrazovky.

- - - -

Dvojitým kliknutím na fotografii se přepněte do režimu celého okna a po té zmáčkněte na nástrojové liště tlačítko Oříznout.

-
- -

Přes fotografii se objeví ořezové hranice v podobě bílého obdélníku. Světlejší část uvnitř ořezového obdélníku odpovídá tomu, co z fotografie uvidíte po jejím ořezání.

-
- -

Když umístíte ukazatel do vnitřní části obdélníku, můžete obdélníkem posouvat. Přetahováním hran obdélníku můžete přizpůsobovat jeho velikost. Když obdélník přesouváte nebo měníte jeho velikost, uvidíte uvnitř něj mřížku. Ta odpovídá čárám pravidla třetin.

-

Obdélník můžete také upravit na některou z běžných velikostí. V rozbalovacím seznamu si zvolte velikost, kterou potřebujete. Zmáčknutím otáčecího tlačítka vedle tohoto výběru můžete změnit orientaci ořezu (z krajiny na portrét).

-
- -

Až jste s výběrem ořezávané části spokojeni, zmáčkněte tlačítko Oříznout. Shotwell zobrazí ořezanou fotografii.

-
- -

Pokud změníte ohledně ořezu názor, zmáčkněte tlačítko Oříznout znovu a ořez si dolaďte.

-

Při zmáčknutí Zrušit místo Použít vrátí Shotwell fotografie na původní ořezané rozměry.

-
-
- -
- Co je to pravidlo třetin? -

Pravidlo třetin pomáhá zvolit uspokojivou kompozici fotografie.

-

Pomyslně si scénu rozdělte do mřížky 3×3 pomocí dvou rovnoměrně rozmístěných svislých a dvou rovnoměrně rozmístěných vodorovných čar. Při dodržení tohoto pravidla spíše získáte uspokojivou kompozici, když hlavní objekty zájmu (jako je horizont nebo tělo osoby) umístíte k těmto čarám. Povšimněte si také možnosti přesunu jedné části mřížky do jiné, což může rovněž pomoci.

-

Oříznutí fotografie podle pravidla třetin čas přinese výsledek v podobě mnohem působivějšího obrázku.

- -

Ořezáním fotografie za pomocí „pravidla třetin“ můžete vylepšit její kompozici.

-
-
-
diff --git a/help/cs/edit-date-time.page b/help/cs/edit-date-time.page deleted file mode 100644 index bd8f1e7..0000000 --- a/help/cs/edit-date-time.page +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - Jak změnit datum a čas fotografií, když je tento údaj špatně. - - - - - Úprava data a času fotografií - -

Když chcete upravit čas a datum fotografie, vyberte ji a zvolte Fotografie Nastavit datum a čas… a vyberte nové datum a čas.

- -

Pokud měníte datum a čas u více fotografií naráz, můžete si zvolit stejný posun času u všech fotografií vůči stávajícímu nebo u všech nastavit ten samý čas.

- -

Standardně se mění datum a čas jen v rámci aplikace Shotwell. Můžete zadat, aby se změnily i v originálním souboru, ale po ukončení aplikace Shotwell to již není možné vrátit zpět.

- -
diff --git a/help/cs/edit-enhance.page b/help/cs/edit-enhance.page deleted file mode 100644 index dc69458..0000000 --- a/help/cs/edit-enhance.page +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - Jak nechat Shotwell automaticky zdokonalit jas a kontrast fotografií. - - - - - - - Automatické vylepšení - -

Kliknutí na tlačítko Vylepšit je nejrychlejší způsob, jak automaticky upravit jas a kontrast vaší fotografie. Často tím získáte fotografii, které vypadá správně exponovaná. Můžete to využít i jen jako počáteční krok a další zdokonalení provést ručně po kliknutí na tlačítko Upravit.

-
diff --git a/help/cs/edit-external.page b/help/cs/edit-external.page deleted file mode 100644 index ef0ac86..0000000 --- a/help/cs/edit-external.page +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - Jak použít k úpravě fotografií jiný program. - - - - - Úprava fotografií v externím programu - -

K dodatečným úpravám fotografie můžete chtít použít externí editor. Pokud máte nainstalovány GIMP a UFRaw, jsou zvoleny jako výchozí externí editory pro úpravy fotografií respektive surových fotografií. Pokud nainstalovány nejsou, musíte si upřednostňované editory zvolit pomocí Upravit Předvolby a výběrem v rozbalovacím seznamu nainstalovaných aplikací.

- -

Když máte editor nastavený, vyberte fotografii a zvolte Fotografie Otevřít v externím editoru a fotografie se otevře v nastaveném editoru. Obdobně, pokud se jedná o surovou fotografii RAW, vyberte Fotografie Otevřít v editoru RAW pro otevření v nastaveném editoru RAW.

- -

Až dokončíte své úpravy a soubor uložíte, Shotwell si změn povšimne a fotografii aktualizuje. Pokud je fotografie externě upravená, můžete se zmáčknutím a podržením klávesy Shift při zobrazení v celém okně podívat na původní verzi fotografie místo té upravené.

- -

Návrat k originálu smaže všechny externí úpravy.

- - -

Pokud provedete externí úpravu surové fotografie RAW a výsledek uložíte do jiného obrázku, jako je JPGE nebo PNG, nemůže Shotwell automaticky zjistit, že se mají původní RAW a nový obrázek spárovat.

- -

Jestli chcete s výsledným obrázkem pracovat v aplikaci Shotwell, musíte si jej sami naimportovat.

-
-
diff --git a/help/cs/edit-nondestructive.page b/help/cs/edit-nondestructive.page deleted file mode 100644 index 1b1b496..0000000 --- a/help/cs/edit-nondestructive.page +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - Shotwell je nedestruktivní fotoeditor – nemění originální fotografie. - - - - - Co se stane s originálem, když fotografii upravím? - -

Shotwell je nedestruktivní editor fotografií. Neprovádí žádné změny v originálních fotografiích. Když, řekněme, fotografii oříznete nebo upravíte její barvy, soubor s fotografií na disku zůstane nedotčen. Shotwell si uloží vaše změny do databáze a aplikuje je na obrázek za běhu podle potřeby. To znamená, že můžete vracet zpět změny, které jste ve fotografii provedli.

- -

Pokud chcete vidět, jak fotografie vypadala před provedením změn, zmáčkněte klávesu Shift. Dokud ji budete držet, bude zobrazena originální fotografie.

- -

Upozorňujeme ale, že volitelně může Shotwell do originálních souborů s fotografiemi zapisovat metadata (jako jsou štítky nebo názvy). Více informací najdete v oddíle Soubory s fotografiemi.

- -
diff --git a/help/cs/edit-redeye.page b/help/cs/edit-redeye.page deleted file mode 100644 index 1c4a908..0000000 --- a/help/cs/edit-redeye.page +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - Jak spravit fotografie, na kterých mají lidé kvůli blesku fotoaparátu červené oči. - - - - - Odstraňování červených očí - -

Efekt červených očí se objeví, když blesk fotoaparátu osvítí něčí oční zorničku. Pro odstranění tohoto neduhu slouží nástroj Červené oči.

- - -

Klikněte na Červené oči. Na fotografii se objeví kroužek.

-
- -

Přetáhněte kroužek na červenou zorničku, upravte pomocí posuvníku její velikost a zmáčkněte Použít. Červená zmizí.

-
- -

Tento postup zopakujte pro všechny červené oči ve fotografii. Po dokončení zmáčkněte Zavřít.

-
-
-
diff --git a/help/cs/edit-rotate.page b/help/cs/edit-rotate.page deleted file mode 100644 index b39b501..0000000 --- a/help/cs/edit-rotate.page +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - Klikněte na tlačítko Otočit nebo zvolte jeden z příkazů v nabídce Fotografie. - - - - - Otáčení a překlápění fotografií - -

Fotografii můžete otočit doleva a doprava (tj. proti směru a po směru hodinových ručiček) pomocí tlačítka Otočit na nástrojové liště u většiny zobrazení. Mimo to můžete fotografii zrcadlit.

- -

Otočení doprava provedete kliknutím na tlačítko Otočit. Pokud chcete otáčet doleva, zmáčkněte a držte klávesu Ctrl a teprve potom na tlačítko klikněte. Obě funkce jsou přístupné v nabídce Fotografie. Případně můžete použít následující klávesové zkratky:

- -

otočení vlevo: ShiftCtrlR nebo [

-

otočení vpravo: CtrlR nebo ]

-
-

Pro zrcadlení fotografie použijte příkaz Překlopit vodorovně v nabídce Fotografie. Pro zrcadlení ve svislém směru použijte Překlopit svisle tamtéž.

- - -

Když vyberete více než jeden obrázek, můžete je otočit všechny naráz.

-
- -
diff --git a/help/cs/edit-straighten.page b/help/cs/edit-straighten.page deleted file mode 100644 index 6450b01..0000000 --- a/help/cs/edit-straighten.page +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - Jak vyrovnat fotografii, která je nakřivo. - - - - - Vyrovnání fotografií - -

Nástroj pro vyrovnání umožňuje srovnat pootočenou fotografii do roviny. Dostupný je pouze v režimu celého okna.

- - - -

Klikněte na Vyrovnat a objeví se posuvník pro určení úhlu. Případně můžete použít klávesovou zkratku CtrlA.

-
- -

Posuňte táhlo tak, abyste dosáhli požadovaného narovnání.

-
- -

Až máte fotografii narovnanou, zmáčkněte Vyrovnat.

-
-
- -
diff --git a/help/cs/edit-undo.page b/help/cs/edit-undo.page deleted file mode 100644 index 42b3e35..0000000 --- a/help/cs/edit-undo.page +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - Jak vrátit fotografii do původní neupravené podoby. - - - - - - - Vracení změn - -

Díky tomu, že Shotwell je nedestruktivní editor, můžete změny provedené ve fotografiích vracet zpět.

- -

Pokud chcete vidět, jak fotografie vypadala před provedením změn, zmáčkněte klávesu Shift. Dokud ji budete držet, bude zobrazena originální fotografie.

- -

Abyste vrátily nazpět úplně všechny změny provedené u fotografie, klikněte na Fotografie Vráti zpět na původní. Jedinou výjimkou je změna data a času, které vráceny nebudou.

- -
diff --git a/help/cs/formats.page b/help/cs/formats.page deleted file mode 100644 index 5b81591..0000000 --- a/help/cs/formats.page +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - Shotwell podporuje soubory s formáty fotografií JPEG, PNG, TIFF, BMP a RAW a některé videosoubory. - - - - - Podporované formáty fotografií a videí - -

Shotwell podporuje soubory s fotografiemi ve formátech JPEG, PNG, TIFF, BMP a RAW. Zatím nepodporuje další formáty, jako je třeba GIF.

- -

Podpora RAW je v aplikaci Shotwell prozatím omezená. Když si zobrazíte surovou fotografii RAW, zobrazí se vám ve skutečnosti JPEG odvozený z RAW, ne přímo RAW. Navíc, propojovací roura k editoru není plně 16bitová – upravované fotografie můžete exportovat jen jako 8bitové soubory. K exportu mohou být použity všechny podporované formáty (JPEG, PNG, TIFF, BMP).

- -

Více informací o formátu fotografií RAW v aplikaci Shotwell najdete v oddíle RAW.

- -

Shotwell podporuje také videosoubory v libovolném formátu, který podporuje multimediální knihovna GStreamer na systému, ve kterém Shotwell běží. Typicky to představuje mimo jiné následující formáty:

- -

Formáty kontejnerů: Ogg, QuickTime, MP4, AVI.

-

Kodeky: Theora, Quicktime, MPEG-4, Motion JPEG. Upozorňujeme, že některé operační systémy nemusí obsahovat všechny uvedené kodeky z důvodů právních nebo licenčních omezení.

-
- -

Shotwell podporuje jak fotografie, tak videa, ale pro zjednodušení s v tomto dokumentu na většině míst používá jen výraz „fotografie“. Ale většina operací se v aplikaci Shotwell dá použít jak u fotografií, tak u videí. Například události, označování, hodnocení, štítky a zveřejňování fungují u fotografií i videí.

- -
diff --git a/help/cs/import-camera.page b/help/cs/import-camera.page deleted file mode 100644 index 713265f..0000000 --- a/help/cs/import-camera.page +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - Jak zkopírovat fotografie z digitálního fotoaparátu. - - - - - Import z fotoaparátu - -

Když chcete importovat fotografie z digitálního fotoaparátu:

- - - -

Připojte fotoaparát ke svému počítači a zapněte jej. Shotwell jej detekuje a zobrazí jej v postranním panelu.

-
- -

Vyberte fotoaparát v postranním panelu. Zobrazí se náhledy všech fotografií v něm uložených.

-
- -

Jestli chcete, můžete si k importu vybrat jen některé konkrétní fotografie. Stačí držet zmáčknutou klávesu Ctrl a na požadované fotografie klikat. Můžete také držet zmáčknutý Shift a kliknutím vybrat celý blok fotografií.

-
- -

Klikněte buď na Importovat vybrané nebo Importovat vše. Fotografie se z fotoaparátu zkopírují a uloží do vašeho počítače.

-
-
- -

Jakmile je import dokončen, můžete otevřít zobrazení Poslední import (v postranním panelu), abyste viděli všechny fotografie, které byly naimportovány. Seznam událostí (také v postranním panelu) rovněž zobrazí nové fotografie a to podle data.

-
diff --git a/help/cs/import-file.page b/help/cs/import-file.page deleted file mode 100644 index 8c4143f..0000000 --- a/help/cs/import-file.page +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Jak importovat fotografie, které jsou již uloženy ve vašem počítači. - - - - - Import z pevného disku - -

Pro naimportování souborů z pevného disku do aplikace Shotwell stačí soubory přetáhnout ze správce souborů do okna Shotwell.

- -

Případně můžete kliknout na Soubor Importovat ze složky… a vyberte složku obsahující fotografie, které chcete importovat. Jestliže nechcete, aby se Shotwell při importu zanořoval postupně do podsložek, můžete zrušit zaškrtnutí volby Zanořovat se do podsložek ve spodní části dialogového okna.

- -

Shotwell se vás dotáže, jestli chcete soubory s fotografiemi zkopírovat do složky knihovny (což je obvykle složka Obrázky ve vaší domovské složce) nebo je naimportovat s odkazem na stávající umístění, bez kopírování souborů.

- -

Pokud během přetahování fotografií držíte zmáčknutý Ctrl, Shotwell zkopíruje fotografie do vaší knihovny bez ptaní. Obdobně, pokud budete během přetahování držet zmáčknuté CtrlShift, Shotwell bude importovat fotografie bez kopírování.

- -

Po dokončení importu můžete v postranním panelu vybrat Poslední import, abyste viděli všechny fotografie, které se úspěšně naimportovaly. Rovněž v seznamu Události se objeví nové položky s daty odpovídajícími importovaným fotografiím.

- -
diff --git a/help/cs/import-memorycard.page b/help/cs/import-memorycard.page deleted file mode 100644 index ff1c77b..0000000 --- a/help/cs/import-memorycard.page +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - Jak importovat fotografie z paměťové karty z digitálního fotoaparátu. - - - - - Import z paměťové karty - -

Abyste naimportovali fotografie z paměťové karty fotoaparátu:

- - - -

Vložte kartu do čtečky karet. Ujistěte se, že je čtečka připojena k počítači a zapnutá.

-
- -

Čtečka karet a karta by měly být detekovány počítačem automaticky.

-
- -

Postupujte podle instrukcí pro import fotografií z pevného disku. Když kliknete na Soubor Importovat ze složky…, měla by být paměťová karta vidět mezi složkami v postranním panelu okna pro výběr souboru.

-
-
- -

Shotwell může importovat fotografie z libovolné paměťové karty, která je kompatibilní s vaší čtečkou karet.

- -

V případě, že se paměťová karta sama nedetekuje, možná nerozpoznal operační systém správně čtečku karet. Zkuste ji odpojit a znovu připojit. Pokud i přesto nebude fungovat, stále vám zůstává možnost importovat fotografie přímo připojením svého fotoaparátu k počítači.

- -
diff --git a/help/cs/index.page b/help/cs/index.page deleted file mode 100644 index 8fdf0f9..0000000 --- a/help/cs/index.page +++ /dev/null @@ -1,46 +0,0 @@ - - - - - Shotwell - - Jim Nelson - jim@yorba.org - Allison Barlow - allison@yorba.org - Robert Ancell - robert.ancell@canonical.com - Peter Smith - pdo.smith@gmail.com - Phil Bull - philbull@gmail.com - - - - - <media type="image" src="figures/shotwell_logo.png"/>Správce fotografií Shotwell - -
- Import fotografií -
- -
- Zobrazení fotografií -
- -
- Třídění fotografií -
- -
- Úprava fotografií -
- -
- Sdílení fotografií -
- -
- Ostatní funkce -
-
diff --git a/help/cs/organize-event.page b/help/cs/organize-event.page deleted file mode 100644 index 3041bb2..0000000 --- a/help/cs/organize-event.page +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - Jak seskupit dohromady fotografie, které byly pořízeny ve stejný čas. Zjistěte si jak přejmenovat, sloučit a třídit události. - - - - - Události - -

Událost je skupina fotografií, které byly pořízeny v přibližně stejnou dobu. Během importu fotografií Shotwell u každé fotografie kontroluje, kdy byla pořízena. Podle toho je pak seskupuje do událostí.

- -

Abyste viděli své fotografie roztříděné podle data, zvolte v postranním panelu Události. Když v postranním panelu vyberete měsíc nebo rok, zobrazí se v hlavním okně seznam událostí. Dvojitým kliknutím na událost si zobrazítek všechny fotografie, které byly pořízeny v rámci oné události.

- -

V případě, že fotografie nemá vložené informace o datu/času, nemůže ji Shotwell automaticky umístit do některé z událostí. Takováto fotografie se pak objeví v zobrazení Žádná událost přístupném v postranním panelu. Fotografii si pak můžete podle postupu uvedeného dále přesunou do libovolné události.

- -
- Přejmenování události - -

Pokud si nějakou událost chcete raději pojmenovat namísto toho, aby byla označena datem, vyberte ji, klikněte na UdálostiPřejmenovat událost… a zadejte nový název. Jiný možný postup je dvojitě kliknout na název události v postranním panelu, napsat nový název a zmáčknout Enter.

-
- -
- Přesouvání fotografií mezi událostmi - -

Ačkoliv jsou fotografie na začátku seskupeny do událostí podle data, můžete si je mezi událostmi libovolně přesouvat. Uděláte to jednoduše přetažením fotografie do postranního panelu a upuštěním na požadovanou událost.

-
- -
- Vytváření a slučování událostí -

Pokud chcete vytvořit novou událost, vyberte fotografie, které do ní chcete zahrnout a klikněte na UdálostiNová událost.

-

Když chcete události sloučit, vyberte v postranním panelu Události a pak za současného držení klávesy Ctrl klikejte v hlavní části okna na události, které chcete sloučit. Nakonec zvolte UdálostiSloučit události.

-
- -
- Řazení událostí - -

Události se zobrazují ve stromové struktuře v postranním panelu, roztříděné podle roku a měsíce nejstarší fotografie v události. Pokud chcete změnit pořadí řazení, klikněte na ZbrazitSeřadit události a vyberte, jestli vzestupně nebo sestupně.

- -
- -
- Změna fotografie, která událost reprezentuje - -

Když v postranním panelu vyberete Události, uvidíte jednotlivé fotografie reprezentující jednotlivé události. Tyto fotografie se nazývají klíčové.

- -

Jako výchozí klíčovou fotografii použije Shotwell u každé události první fotografii. Když chcete použít jinou, vyberte ji a zvolte FotografiePoužít jako klíčovou fotku pro událost.

- -
- -
diff --git a/help/cs/organize-flag.page b/help/cs/organize-flag.page deleted file mode 100644 index 4793378..0000000 --- a/help/cs/organize-flag.page +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - Jak můžete fotografie označit, že jsou významné nebo abyste s nimi mohli pracovat jako se sadou. - - - - - Označování fotografií - -

Shotwell vám umožňuje označit si důležité fotografie. U fotografie, která je označená, se pravém horním rohu objeví malá vlaječka. V postranním panelu pak můžete vybrat položku Označeno, aby se vám zobrazily všechny označeném fotografie.

- -

Vlaječkou si označte fotografie, které jsou něčím význačné. Záleží čistě na vás, k jakému účelu si to vyložíte. Například si můžete označit všechny fotografie, které budou potřebovat ručně doladit nebo všechny fotografie, které budete chtít poslat přátelům.

- -

U označování je užitečné, že s označenými fotografiemi můžete pracovat se všemi naráz jako sadou. Například můžete vybrat zobrazení Označeno a následně všechny označené fotografie odeslat na sdílecí server.

- -
- Označení nebo zrušení označení fotografie -

Když chcete fotografii označit nebo zrušit její označení, klikněte na ni pravým tlačítkem a zvolte Označit nebo Zrušit označení v kontextové nabídce. Nebo můžete použít klávesovou zkratku CtrlG nebo /.

-
- -
diff --git a/help/cs/organize-rating.page b/help/cs/organize-rating.page deleted file mode 100644 index d7c05b4..0000000 --- a/help/cs/organize-rating.page +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - Jak svým fotografiím přidělit hodnocení v rozsahu 1 až 5 hvězdiček. Můžete odmítnou špatné fotografie tak, že je skryjete ze zobrazení. - - - - - Hodnocení -

Každé z fotografií můžete přiřadit hodnocení od 1 do 5 hvězdiček, případně ji ohodnotit jako zamítnutou. Zamítnuté fotografie Shotwell při výchozím nastavení skrývá.

- -

Fotografii nebo sadu fotografií můžete hodnotit následujícími způsoby:

- - -

Vyberte fotografii či fotografie a zvolte hodnocení v nabídce Fotografie Hodnotit.

-

Klikněte na fotografii či fotografie pravým tlačítkem a zvolte hodnocení v kontextové nabídce Hodnotit.

-

Vyberte fotografii či více fotografií a následně zmáčkněte klávesu 1, 2, 3, 4 nebo 5 odpovídající hodnocení. Zmáčknutím 9 fotografii zamítnete, klávesou 0 hodnocení zrušíte.

-
- -

Normálně Shotwell zobrazuje všechny fotografie vyjma zamítnutých. Pomocí nabídky Zobrazit Filtrovat fotografie můžete nastavit jiný filtr hodnocení. Například si můžete zobrazit jen fotografie hodnocené 3 hvězdičkami a lépe nebo si můžete zobrazit úplně všechny fotografie včetně zamítnutých. Ikona Shotwell na nástrojové liště zobrazuje aktuální filtr hodnocení a lze ji použít k nastavení filtru.

- -

Normálně Shotwell zobrazuje hodnocení každé fotografie v jejím levém dolním rohu. Zobrazení hodnocení můžete vypnout pomocí položky nabídky ZobrazitHodnocení.

- -

Zvýšit, případně snížit, hodnocení fotografie můžete pomocí HodnotitZvýšit, respektive HodnotitSnížit, nebo klávesovými zkratkami < a >.

-
diff --git a/help/cs/organize-remove.page b/help/cs/organize-remove.page deleted file mode 100644 index 450a182..0000000 --- a/help/cs/organize-remove.page +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - Jak odebrat fotografie z knihovny nebo jak je zcela smazat z počítače. - - - - - Odstraňování a mazání fotografií - -

Fotografie můžete odebrat z knihovny a navíc i úplně smazat z pevného disku.

-

Postup mazání

-

Toto schéma ukazuje, jak je fotografie po smazání nejprve vložena do koše aplikace Shotwell. Po té, co ji smažete z koše v Shotwellu, je přesunuta do koše vašeho pracovního prostředí. Po smazání z tohoto koše je fotografie konečně a nevratně vymazána z vašeho počítače.

-
- Odebírání fotografií z knihovny -

Vyberte fotografie, které chcete odebrat a zvolte Upravit Přesunout do koše (můžete také zmáčknout klávesu Delete). Fotografie se přesunou z knihovny do koše aplikace Shotwell.

-

Pokud chcete fotografie odebrat z aplikace Shotwel bez mezikroku s košem, tak po jejich vybrání zvolte Upravit Odstranit z knihovny. Na disku zůstanou fotografie ponechány.

-
- -
- Vyprázdnění koše nebo obnovení jeho obsahu -

V postranním panelu vyberte Koš a Shotwell zobrazí všechny fotografie, které jsou připravené k odebrání nebo smazání. Když je koš zobrazen, jsou k dispozici následující příkazy:

- - Smazat

Smaže vybrané fotografie ze složky koše.

- Obnovit

Obnoví vybrané fotografie do knihovny Shotwell.

- Vyprázdnit koš

Smaže ze složky koše všechny fotografie.

-
-
- -
- Mazání a vyprazdňování koše -

Když ze složky koše mažete soubory, případně složku koše úplně vyprazdňujete, dostanete na výběr následující možnosti:

- - Jen odstranit

Odebere fotografie z knihovny, ale ponechá je na jejich místech v počítači.

- Přesunout do koše

Odebere fotografie z knihovny a rovněž je smaže z počítače.

- Zrušit

Neprovede se nic.

-
-
- -
diff --git a/help/cs/organize-search.page b/help/cs/organize-search.page deleted file mode 100644 index 578b65a..0000000 --- a/help/cs/organize-search.page +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Jak najít podle různých kritérií fotografie a videa ve své sbírce. - - - - - Hledání - -

V aplikaci Shotwell existují dva způsoby jak vyhledávat: filtrovací nástrojová lišta a uložená hledání. Na vyhledávací liště můžete rychle hledat v aktuálním zobrazení podle konkrétního kritéria. Uložená hledání jsou mnohem komplexnější v zadávání kritérií a nacházejí se v postranním panelu.

- - - -
- Uložené hledání -

Uložená hledání se uchovávají po všechna spuštění aplikace Shotwell a jsou aktualizována při přidání nebo odebrání fotografií a videí do nebo z knihovny Shotwell.

- -

Nové uložené hledání vytvoříte pomocí Upravit Nové uložené hledání… nebo zmáčknutím CtrlS. V dialogovém okně můžete zadat název hledání a vybrat, jestli se kritéria v následujících řádcích mají platit pro cokoliv, vše nebo nic.

- -

Každý řádek představuje jedno vyhledávací kritérium. Pro přidání dalších řádků použijte tlačítko +, pro odebrání konkrétního řádku tlačítko -. V rozbalovací nabídce po levé stráně každého řádku jsou typy kritérií. Aby bylo přístupné tlačítko Budiž, musí být kritéria zadána správně.

-
- -
diff --git a/help/cs/organize-tag.page b/help/cs/organize-tag.page deleted file mode 100644 index 50eed96..0000000 --- a/help/cs/organize-tag.page +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - Jak roztřídit fotografie pomocí štítků. - - - - - - - Přiřazení štítků fotografiím - -

Vybraným fotografiím můžete přiřadit jeden nebo více štítků. Štítkem může být jedno nebo i více slov, která přibližují obsah fotografie.

- -

Když chcete fotografii přidat nový štítek, vyberte ji a proveďte něco z následujícího:

- - -

Zvolte Štítky Přídat štítky…

-

Zmáčkněte CtrlT.

-

Přetáhněte fotografii na požadovaný štítek v postranním panelu.

-
- -

Když použijete Ctrl T nebo Štítky Přidat štítky…, můžete napsat název jednoho nebo i více štítků oddělených čárkami. Jakmile máte štítek jednou vytvořený, můžete jej přejmenovat tak, že jej vyberete v postranním panelu a zvolíte Štítky Přejmenovat štítek „[název]“ nebo pomocí pravého tlačítka a volbou Přejmenovat… nebo dvojitým kliknutím na něj v postranním panelu.

- -

V případě, že chcete změnit přidružení štítku k některé fotografii, vyberte danou fotografii, zvolte Štítky Změnit štítky… nebo použijte pravé tlačítko a zvolte Změnit štítky… a po té upravte seznam štítků oddělených čárkami. Pokud chcete štítek z jedné nebo více fotografií odstranit, nejprve štítek v postranním panelu vyberte, pak vyberte fotografii, ze které jej chcete odstranit a zvolte Štítky Odstranit z fotky štítek „[název]“ nebo na ni klikněte pravým tlačítkem a zvolte Odstranit z fotky štítek „[název]“.

- -

Jestli chcete smazat štítek kompletně, vyberte jej v postranním panelu a zvolte Štítky Smazat štítek „[název]“ nebo na něj klikněte pravým tlačítkem o zvolte Smazat štítek „[název]“.

- -

Jakmile vytvoříte štítek, objeví se v postranním panelu pod položkou Štítky, která je skrytá v případě, že žádné štítky neexistují. Ke každé fotografii může být přiřazeno i více štítků a když kliknete na název štítku v postranním panelu, uvidíte všechny fotografie, které mají štítek přiřazený.

- -
- Hierarchické štítky -

Shotwell rovněž podporuje hierarchické štítky. Pomocí přetažení štítku na jiný štítek můžete měnit uspořádání. Když chcete vytvořit nový podřízený štítek, klikněte pravým tlačítkem a zvolte Nový.

- -

Díky hierarchickým štítkům můžete svůj seznam štítků roztřídit způsobem, který lépe odpovídá vaší práci nebo myšlení. Například může uchovávat štítky jako „hory“ nebo „u moře“ pod společným štítkem „místa“, který sám může být umístěn pod štítkem „dovolené“.

- -

Vezměte na vědomí, že když smažete rodičovský štítek, smažou se i všichni jeho potomci.

-
-
diff --git a/help/cs/organize-title.page b/help/cs/organize-title.page deleted file mode 100644 index c0a5197..0000000 --- a/help/cs/organize-title.page +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - Jak přidělit svým fotografiím názvy. - - - - - Názvy - -

Zaškrtávací položka nabídky Zobrazit Názvy přepíná zobrazení názvů pod každou fotografií. Jako výchozí název fotografie se používá název jejího souboru.

- -

Název můžete změnit tak, že fotografii vyberete a kliknete na Fotografie Změnit název… nebo zmáčknete F2.

- -
diff --git a/help/cs/other-files.page b/help/cs/other-files.page deleted file mode 100644 index 4c09dc0..0000000 --- a/help/cs/other-files.page +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - Jak zachovat knihovnu Shotwell synchronizovanou se soubory s fotografiemi na disku. - - - - - Soubory s fotografiemi - -

Každá fotografie v knihovně Shotwell odpovídá souboru uloženému na vašem pevném disku. Shotwell má několik funkcí, které pomáhají udržet jeho knihovnu a soubory na disku synchronizované.

- - -
- Používání vlastního vzoru složky -

Shotwell umožňuje určit, jak má pojmenovávat složky ve vaší knihovně. Můžete tak učinit změnou nastavení Struktury složek a Vzoru v dialogovém okně Předvolby. K dispozici jsou předdefinované vzory nebo zvolte Vlastní a zapište svůj vlastní.

- -

Všechny symboly pro vzor složek začínají znakem % (procenta). Hodnoty těchto symbolů se vytváří na základě národního prostředí, takže to co uvidíte ve svém počítač se může lišit od příkladů níže.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

symbol

význam

příklad

%Y

rok: úplný

2011

%y

rok: dvě číslice

11

%d

den v měsíci dvojmístný s úvodní nulou

03

%A

název dne: úplný

Středa

%a

název dne: zkratka

St

%m

číslo měsíce dvojmístné s úvodní nulou

02

%b

název měsíce: zkratka

bře

%B

název měsíce: úplný

březen

%I

hodiny: 12hodinový formát

05

%H

hodiny: 24hodinový formát

17

%M

minuty

16

%S

sekundy

30

%p

odp. nebo dop.

odp.

- -

Existují ještě další symboly, které zde uvedené nejsou. Jestli vás zajímají, podívejte se do příručky k funkci strftime, stačí použít příkaz man strftime.

-
- -
- Automatický import fotografií - -

Shotwell může automaticky importovat nové fotografie, které se objeví ve složce knihovny. (Složkou knihovny je obvykle složka Obrázky ve vaší domovské složce. Toto umístění můžete změnit v okně Předvolby.)

- -

Pro zapnutí automatického importu zaškrtněte políčko Sledovat, jestli nejsou do knihovny přidány nové soubory v okně Předvolby.

- -

Shotwell také umí automaticky následovat symbolické odkazy v automaticky importovaných složkách.

- -
- -
- Automatické přejmenování importovaných fotografií na malá písmena - -

Shotwell může automaticky měnit názvy souborů importovaných fotografií na malá písmena. Pokud tomu tak chcete, zvolte Upravit Předvolby a v okně, které se objeví, zaškrtněte políčko Převádět názvy importovaných souborů na malá písmena.

- -
- -
- Zápis metadat za běhu - -

Standardně Shotwell nemění soubory s fotografiemi, i když fotografii upravíte nebo změníte její štítky nebo název. Tyto změny pouze zaznamená do své vlastní databáze.

- -

Pokud chcete toto chování změnit, zaškrtněte políčko Zapisovat štítky, názvy a další metadata do souborů s fotografiemi v dialogovém okně Předvolby. Jakmile je tato volba zapnutá, Shotwell bude zapisovat následující metadata do většiny souborů s fotografiemi, kdykoliv provedete změnu:

- - -

název

-

štítky

-

hodnocení

-

informace o otočení

-

datum/čas

-
- -

Shotwell ukládá tyto informace do souborů s fotografiemi pomocí formátů EXIF, IPTC a/nebo XMP. Upozorňujeme, že je umí zapisovat pouze do souborů ve formátu JPEG, PNG a TIFF, nikoliv do fotografií BMP a RAW a do videosouborů.

- -
- -
- Sledování běhu - -

Když Shotwell běží, přijímá upozornění o externích změnách v souborech s fotografiemi. Když se takovýto soubor změní, Shotwell jej znovu načte a aktualizuje zobrazení fotografie a metadata.

- -

Je třeba si uvědomit, že Shotwell při spuštění kontroluje všechny soubory s fotografiemi, ale jen soubory nacházející se ve složce knihovny jsou sledovány v reálném čase po spuštění. Autoři doufají, že v příštích vydáních bude toto omezení překonáno.

- -
- -
diff --git a/help/cs/other-missing.page b/help/cs/other-missing.page deleted file mode 100644 index c0956f2..0000000 --- a/help/cs/other-missing.page +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - Když Shotwell nemůže fotografii najít v knihovně, označí ji za chybějící. - - - - - Chybějící fotografie - -

Pokaždé, když je Shotwell spuštěn, prochází vaši knihovnu fotografií a ověřuje, jestli se všechny fotografie stále nachází na pevném disku. Pokud zjistí, že některé soubory s fotografiemi schází, nezobrazí je běžně v Fotografie, Události a Štítky, ale místo toho se objeví v zobrazení Chybějící soubory, které přibude v postranním panelu.

- -

Jestli již nechcete, aby takovéto chybějící soubory byly součástí vaší sbírky v aplikaci Shotwell (nejspíše proto, že jste je smazali), přejděte do zobrazení Chybějící soubory, fotografie vyberte a klikněte na Odstranit z knihovny.

- -

V případě, že máte fotografie na výměnném disku, jako je CD nebo USB Flashdisk a naimportujete je do aplikace Shotwell bez kopírování fotografií do svého počítače, objeví se jako chybějící soubory po té, co výměnný disk vyjmete. Viz na téma, jak zkopírovat soubory z výměnného disku do vašeho počítače.

- -

Pokud se některé chybějící soubory opět zpřístupní, Shotwell si toho při následujícím spuštění všimne. Fotografie se pak znovu objeví ve Fotografiích, Událostech a Štítcích.

- -
diff --git a/help/cs/other-multiple.page b/help/cs/other-multiple.page deleted file mode 100644 index a327725..0000000 --- a/help/cs/other-multiple.page +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - Jak otevřít Shotwell s jinou knihovnou fotografií pomocí příkazového řádku. - - - - - Více knihoven - -

Normálně Shotwell uchovává svoji databázi a náhledy fotografií ve složce ~/.shotwell. V této složce se nenachází přímo fotografie, ale databáze v této složce obsahuje seznam všech fotografií v knihovně Shotwell.

- -

Jak pokročilá funkce je k dispozici možnost mít více knihoven Shotwell, každou s vlastní sadou fotografií. Každá knihovna potřebuje svoji vlastní složku pro databázi. Abyste spustili Shotwell s alternativní knihovnou, zadejte alternativní složku s databází na příkazovém řádku tímto způsobem:

- - -shotwell -d [složka-knihovny] - - -
diff --git a/help/cs/other-plugins.page b/help/cs/other-plugins.page deleted file mode 100644 index c0c2318..0000000 --- a/help/cs/other-plugins.page +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Jak dynamicky rozšířit funkcionalitu aplikace Shotwell. - - - - - Zásuvné moduly -

Shotwell umí používat zásuvné moduly, což jsou přidružené sdílené knihovny, které přidávají podporu pro nová místa pro zveřejňování nebo nové přechody pro promítání.

- -

Abyste viděli seznam nainstalovaných zásuvných modulů, zvolte Upravit Předvolby a v okně předvoleb klikněte na kartu Zásuvné moduly. Zobrazí se vám seznam aktuálně nainstalovaných zásuvných modulů. Vedle každého je zaškrtávací políčko, pomocí kterého jej můžete povolit nebo zakázat.

- -

Kompletní dokumentace k tomu, jak vyvíjet nové zásuvné moduly je k dispozici na http://redmine.yorba.org/projects/shotwell/wiki/ShotwellArchWritingPlugins (odkazovaný text je v angličtině).

- -
diff --git a/help/cs/raw.page b/help/cs/raw.page deleted file mode 100644 index b70a397..0000000 --- a/help/cs/raw.page +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - Více o podpoře RAW v aplikaci Shotwell. - - - - - Podpora RAW v aplikaci Shotwell -

Některé fotoaparáty umí uložit data přímo ze snímače a to do souboru, který obsahuje dodatečné informace o barvě. Obecně jsou tyto soubory nazývány „RAW“ nebo „surové fotografie“ a Shotwell s nimi dokáže pracovat.

- -

Protože fotografie RAW nelze normálně zobrazit přímo, ale musí být nejprve vyvolány – tj. jejich dodatečné informace interpretovány a připraveny pro zobrazení – většina fotoaparátů při pořízení snímku buď do souboru ve formátu RAW vloží navíc JPEG nebo uloží JPEG zvlášť zvlášť vedle souboru RAW. Druhý způsob bude v tomto textu nadále označován jako RAW+JPEG. Když importujete pár RAW+JPEG, Shotwell je uchová spárované a v knihovně s nimi zachází jako s jedinou položkou.

- -

Když importujete soubor RAW, můžete si zvolit mezi interním kamerou vyvolaným formátem JPEG nebo jej nechat vyvolat aplikací Shotwell pomocí Fotografie Vývojka v nabídce.

- - -

Změna vývojky může způsobit, že všechny úpravy provedené ve fotografii budou zahozeny.

-
- -

Aby šla fotografie RAW zveřejnit nebo používat v jiném softwaru, musí být nejprve exportována. Shotwell umí vaše fotografie RAW exportovat do formátů JPEG, PNG, TIFF nebo BMP a když je publikujete, interně vám je exportuje do verze JPEG a tak je i zveřejní.

- -
diff --git a/help/cs/running.page b/help/cs/running.page deleted file mode 100644 index 9c19236..0000000 --- a/help/cs/running.page +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Jak najít Shotwell v nabídce aplikací nebo jak jej spouštět automaticky při zapojení fotoaparátu. - - - - - - - Spuštění aplikace Shotwell - -

Jakmile je Shotwell nainstalován, je k nalezení v nabídce Aplikace v oddíle Grafika nebo Fotografie.

- -

Shotwell se může také spouštět automaticky po té, co je k počítači připojen fotoaparát. Pokud si chcete zkontrolovat, jestli je váš systém nastaven, aby spustil Shotwell, když zjistí přitomnost fotoaparátu, jděte do Upravit Předvolby v okně aplikace Nautilus (správce souborů) a zvolte kartu Média. Uvidíte rozbalovací pole s popisem Fotografie:, ve kterém si můžete vybrat Shotwell jako aplikaci starající se o fotografie.

- - -

Shotwell je možné spusti i přímo ze složky, ve které byl sestaven, ale to má význam jen pro ty, kteří Shotwell testují nebo vyvíjí.

-
- -
diff --git a/help/cs/share-background.page b/help/cs/share-background.page deleted file mode 100644 index 325df50..0000000 --- a/help/cs/share-background.page +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - Jak nastavit pozadí své pracovní plochy na konkrétní fotografii nebo promítání více fotografií. - - - - - Nastavení obrázku nebo promítání na pozadí plochy - -

Pokud si chcete nastavit jednu nějakou fotografii jak pozadí své pracovní plochy, vyberte ji a zvolte SouborNastavit jako pozadí plochy.

- -

Pozadí své pracovní plochy můžete nastavit také na promítání fotografií. Stačí fotografie, které chcete promítat, vybrat a zvolit SouborNastavit jako prezentaci na ploše… Shotwell se vás dotáže na dobu zobrazení snímků, což může být libovolný čas až jeden den dlouhý. Promítání na pozadí bude probíhat, i když nebude Shotwell spuštěný.

- -
diff --git a/help/cs/share-export.page b/help/cs/share-export.page deleted file mode 100644 index 12a1a5f..0000000 --- a/help/cs/share-export.page +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - Jak zkopírovat fotografie mimo Shotwell, abyste je mohli umístit někam jinam. - - - - - Export fotografií - -

Pro export fotografií z aplikace Shotweel pomocí táhni a upusť, přetáhněte fotografie do okna správce souborů nebo na pracovní plochu. Nové soubory budou kopie fotografií v plné velikosti z vaší knihovny.

- -

Jinou možností exportu je vybrat sadu fotografií a zvolit Soubor Export… nebo zmáčknout ShiftCtrlE, čímž se fotografie exportují s poskytnutím volby jejich velikosti a rozměrů. Objeví se okno, ve kterém můžete provést tyto volby:

- - -

Formát exportu.

- -

Zvolte Beze změny, aby se fotografie exportovaly v původním formátu bez jakýchkoliv úprav provedených v rámci aplikace Shotwell. Fotografie RAW budou vyexportovány v původním formátu RAW.

-

Zvolte Stávající, aby se fotografie vyexportovaly včetně změn provedených v rámci aplikace Shotwell. Fotografie RAW budou vyexportovány ve formátu JPEG v případě, že u nich byly provedeny nějaké změny, v opačném případě v jejich původním formátu RAW.

-

Nebo můžete zvolit konkrétní formát obrázku (JPEG, PNG, TIFF, BMP), který se má k exportu použít. Případné úpravy provedené v rámci aplikace Shotwell budou jeho součástí a Shotwell provede převod do cílového formátu.

-
-
-

Kvalita exportovaného obrázku (nízká, střední, vysoká nebo maximální).

-

Pravidlo pro škálování (což znamená, jak se má Shotwell chovat při změně velikosti fotografie na menší rozměr) a požadovaná velikost v pixelech.

- -Původní velikost

Obrázek bude exportován bez použití změny velikosti

-Delší strana

Obrázek bude exportována tak, aby u delší strany došlo ke změně velikosti na Počet pixelů a u druhé úměrně tomu při zachování poměru stran.

-Šířka

U obrázku dojde ke změně šířky na zadaný počet pixelů a u výšky na úměrný počet pixelů tak, aby byl zachován počet stran. Výsledek je stejný, jako když použijete volbu Delší strana u obrázku otočeného na šířku.

-Výška

U obrázku dojde ke změně výšky na zadaný počet pixelů a u šiřky na úměrný počet pixelů tak, aby byl zachován počet stran. Výsledek je stejný, jako když použijete volbu Delší strana u obrázku otočeného na výšku.

-
-
-

Volba, jestli chcete exportovat i metadata, jako jsou štítky nebo hodnocení. To vám může pomoci v ochraně soukromí, pokud máte štítky s geolokačními údaji nebo jiné štítky, které nechcete, aby viděl někdo jiný.

-
- -

Pokud je vybráno, bude Shotwell do nových souborů zapisovat štítky, názvy a ostatní metadata.

- -
diff --git a/help/cs/share-print.page b/help/cs/share-print.page deleted file mode 100644 index 849d075..0000000 --- a/help/cs/share-print.page +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Klikněte na SouborTisk… Další volby tisku najdete na kartě Nastavení stránky v dialogovém okně Tisk. - - - - - Tisk - -

Když chcete fotografii vytisknout, vyberte ji a zvolte SouborTisk…

- -

Shotwell umí také tisknout více obrázků na jednu stránku. Udělá se to tak, že se vybere více obrázků, zvolí Soubor Tisk… a v dialogovém okně Tisk se vybere karta Nastavení obrázku. Tam ve volbě Automatická velikost vyberte jednu z možností „X obrázků na stránku“.

- -

Pokud potřebujete nastavit formátování, velikost papíru a jeho otočení, vyberte v dialogovém okně Tisk kartu Vzhled stránky.

-
diff --git a/help/cs/share-send.page b/help/cs/share-send.page deleted file mode 100644 index 431f89b..0000000 --- a/help/cs/share-send.page +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - Jak odeslat fotografie přes e-mail, rychlou komunikaci a dalšími způsoby. - - - - - Odesílání fotografií - -

Shotwell může odesílat fotografie pomocí mechanizmu Odeslat do v pracovním prostředí GNOME. Ten umožňuje odesílat přes e-mail, rychlou komunikaci a dalšími způsoby.

-

Když chcete fotografie odeslat, vyberte je v aplikaci Shotwell a zvolte Soubor Odeslat… nebo klikněte na fotografie pravým tlačítkem a zvolte Odeslat… v kontextové nabídce. Objeví se dialogové okno Odeslání, ve kterém si můžete zvolit způsob odeslání souborů (jako je e-mail nebo rychlá komunikace) a cíl. Volitelně si můžete vybrat, jestli chcete soubory v komprimovaném formátu.

- -
diff --git a/help/cs/share-slideshow.page b/help/cs/share-slideshow.page deleted file mode 100644 index b699f0c..0000000 --- a/help/cs/share-slideshow.page +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - Jak sledovat promítání svých fotografií. - - - - - Promítání - -

Abyste se mohli dívat na promítání sbírky fotografií v aplikaci Shotwell, přejděte na danou sbírku a vyberte ViewSlideshow nebo zmáčkněte F5.

- -

V běžícím promítání můžete měnit některá nastavení:

- - -

Dobu, po kterou má být obrázek zobrazen: 1 až 30 vteřin

-

Můžete vybírat z různých přechodových efektů

-

Dobu trvání přechodového efektu: 0,1 až 1,0 vteřiny

-
-
diff --git a/help/cs/share-upload.page b/help/cs/share-upload.page deleted file mode 100644 index 4651d33..0000000 --- a/help/cs/share-upload.page +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - Jak fotografie zveřejnit na Facebook, Flickr, Picasa Web Albums a jiné servery. - - - - - Publikování na web - -

Za pomoci zásuvných modulů umí Shotwell zveřejňovat fotografie a videa na následujících službách (na každé musíte mít zřízen účet):

- - -

Facebook

-

Flickr

-

Picasa Web Albums a Google+

-

YouTube (jen videa)

-

Tumblr (jen videa)

-

Libovolný server, na kterém běží software pro fotogralerie Piwigo (jen fotky)

-
- -

Když chcete zveřejnit vybrané fotografie ze sbírky, zvolte Upravit Předvolby a klikněte na kartu Zásuvné moduly, abyste povolili zásuvný modul pro službu, kterou chcete ke zveřejnění použít. Následně zvolte Soubor Zveřejnit nebo zmáčkněte tlačítko Zveřejnit na nástrojové liště nebo použijte klávesovou zkratku CtrlShiftP. Uvidíte dialogové okno, ve kterém si můžete vybrat požadovanou službu. Následně se k ní musíte přihlásit, připadně si vytvořit účet.

- -

Zveřejnění na Facebooku vyžaduje udělení určitých oprávnění aplikaci Shotwell Facebook. Tato oprávnění stačí přidělit jednou, když napoprvé přiřazujete Shotwell k účtu na Facebooku.

-

Budete moci zveřejňovat obrázky nanejvýše s oprávněními, které jste aplikaci Shotwell Facbook odsouhlasili.

- -

Podobně zveřejnění na Flickru vyžaduje přihlášení a oprávnění aplikaci Shotwell Connect k přístupu k vašemu účtu.

- -

Pokud máte účet Google, ale zatím jste nepoužili Picasa Web Albums, musíte se jednou pomocí prolížeče přihlásit ke službě Picasa, abyste na ní mohli zveřejňovat.

-
diff --git a/help/cs/view-displaying.page b/help/cs/view-displaying.page deleted file mode 100644 index 2166784..0000000 --- a/help/cs/view-displaying.page +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - Zjistěte si, jakými různými způsoby si můžete své fotografie zobrazit: v mřížce, přes celé hlavní okno nebo přes celou obrazovku. - - - - - Způsoby zobrazení fotografií - -

Když v postranním panelu vyberete sbírku, Shotwell zobrazí všechny její fotografie v hlavní části okna. V pravém dolním rohu je posuvník, kterým si můžete upravit velikost náhledů. Případně k tomu můžete použít klávesy plus a mínus (+ a -) nebo držet zmáčknutý Ctrl a použít kolečko myši.

- -

Dvojitým kliknutím na fotografii si ji zobrazíte v plné velikosti. Na další fotografie ve sbírce pak můžete přecházet pomocí tlačítek Zpět a Vpřed. Pro návrat do sbírky na fotografii opět dvojitě klikněte nebo zmáčkněte Esc.

- -

Když prohlížíte fotografii v režimu celého okna, posuvník na nástrojové liště řídí přiblížení. Fotografii můžete posouvat jejím chycením v kterékoliv části a tažením. Přibližovat můžete také pomocí kolečka myši nebo pomocí následujících klávesových zkratek: Ctrl0 pro obrázek v plné velikosti, Ctrl1 pro 100% (1 pixel fotografie = 1 pixel obrazovky) a Ctrl2 pro 200% (1 pixel obrazovky = 2×2 pixely obrazovky).

- -

Shotwell také nabízí k prohlížení fotografií režim celé obrazovky. Zvolte Zobrazit Celá obrazovka nebo zmáčkněte F11. Abyste v režimu celé obrazovky viděli nástrojovou lištu, musíte najet myší do spodní části obrazovky. Nástrojová lišta nabízí tlačítka pro pohyb ve sbírce, pro přišpendlení nástrojové lišty (aby se neskrývala, když myší odjedete) a k opuštění režimu celé obrazovky.

- -
-Zobrazování videí -

Když dvojitě kliknete na video, Shotwell spustí externí videopřehrávač, aby video přehrál. V současnosti není možné přehrát video v režimu celé obrazovky aplikace Shotwell nebo jinak přímo v rámci Shotwellu.

-
- -
diff --git a/help/cs/view-information.page b/help/cs/view-information.page deleted file mode 100644 index 21e8a8a..0000000 --- a/help/cs/view-information.page +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - Jak zobrazit více podrobných informací o fotografiích, jako je třeba režim expozice použitý ve fotoaparátu. - - - - - Základní a rozšiřující informace - -

Panel Základní informace se objevuje ve spodní části postranního panelu a zobrazuje stručný přehled o vybrané fotografii. Pokud není vybrána žádná fotografie, zobrazuje přehled o celé sbírce. Jestli má být tento panel zobrazen, můžete přepínat příkazem ZobrazitZákladní informace.

- -

Plovoucí okno Doplňující informace zobrazuje o vybrané fotografii více informací. K přepnutí zobrazení tohoto okna použijte příkaz ZobrazitDoplňující informace nebo klávesovou zkratku CtrlShiftX.

- -
diff --git a/help/cs/view-sidebar.page b/help/cs/view-sidebar.page deleted file mode 100644 index d830865..0000000 --- a/help/cs/view-sidebar.page +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Postranní panel na levé straně okna vypisuje různá zobrazení vaší knihovny. - - - - - - - - - - - - - Postranní panel - -

Postranní panel na levé straně okna Shotwell vypisuje různá zobrazení vaší knihovny. Ačkoliv můžete vidět tu samou fotografii ve více zobrazeních, na disku je uchována jen v jedné kopii.

- -

V zobrazení Poslední import jsou uvedeny fotografie, které byly naimportovány jako poslední, bez ohledu na to, zda z aplikace F-Spot, z fotoaparátu, z paměťové karty nebo z pevného disku.

- -

V Označeno jsou uvedeny všechny fotografie, které jste již dříve označili.

- -

Uložená hledání umožňují třídit vaši knihovnu podle řady kritérií.

- -

Ve složce Události jsou uvedeny všechny události z vaší knihovny. Událost je skupina fotografií, které byly pořízeny přibližně ve stejnou dobu.

- -

Ve složce Štítky jsou uvedeny všechny štítky, které jste fotografiím přiřadili. Každá fotografie může mít přiřazeno více štítků. Když kliknete na název štítku v postranním panelu, uvidíte všechny fotografie, které mají takovýto štítek přiřazený.

- -
diff --git a/help/de/de.stamp b/help/de/de.stamp deleted file mode 100644 index e69de29..0000000 diff --git a/help/de/edit-adjustments.page b/help/de/edit-adjustments.page deleted file mode 100644 index 7521d13..0000000 --- a/help/de/edit-adjustments.page +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - Belichtung, Sättigung, Farbton und Schatten eines Fotos ändern. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Farbanpassungen - -

Der Anpassen-Knopf öffnet ein schwebendes Fenster mit einem Histogramm und Schiebereglern zum Verändern der Belichtung, Sättigung, Farbton, Farbtemperatur und Schatten. Das Histogramm verfügt außerdem über Schieberegler zum Anpassen der oberen und unteren Intensitäts-Schwellwerte des Fotos, wodurch der Mittenkontrast erweitert wird.

- -

Der Verbessern-Knopf passt das Histogramm und die Schatten-Schieberegler an, um die Qualität eines Fotos zu verbessern.

- -

Wenn die Farben und der Kontrast des Fotos Ihren Vorstellungen entsprechen, klicken Sie auf OK, um die Änderungen zu speichern. Durch Zurücksetzen wird das Bild in seinen ursprünglichen Zustand zurückversetzt. Abbrechen verwirft alle von Ihnen vorgenommenen Änderungen.

- -
- Was bewirken die Farbregler? - - - Belichtung -

Änderung der Helligkeit, so dass es aussieht, also ob das Foto länger oder kürzer belichtet worden wäre. Verwenden Sie diese Möglichkeit, um über- und unterbelichtete Fotos zu korrigieren.

-
- - Kontrast -

Ändert den Kontrast eines Fotos. Verwenden Sie dies zur Korrektur von flau aussehenden Fotos oder wenn der Unterschied zwischen hellen und dunklen Bildbereichen zu groß ist.

-
- - Sättigung -

Dadurch wird bestimmt, wie lebendig Farben wirken. Wenn Ihr Foto grau und ausgewaschen erscheint, sollten Sie die Sättigung erhöhen. Wenn sich Farben zu sehr in den Vordergrund setzen, sollten Sie versuchen, die Sättigung zu verringern.

-
- - Farbton -

Dies färbt das Foto mit einer Farbe ein. Es ist sinnvoll beim Korrigieren von Fotos mit falschen Weißabgleich-Einstellungen, die typischerweise unnatürliche Farbstiche hervorrufen. Beispielsweise werden im Freien mit der Einstellung »Glühlampenlicht« aufgenommene Fotos einen Blaustich aufweisen.

-
- - Temperatur -

Dadurch wird bestimmt, wie »warm« oder »kühl« das Bild aussieht. Sie können damit beispielsweise kühle, depressive Szenen lebendiger wirken lassen.

-
- - Schatten -

Dadurch erscheinen Schattenbereiche heller. Sie können damit Strukturen hervorheben, die in einem Schattenbereich verdeckt sind.

-
- - Schwellwert der Intensität (Schieberegler im Histogramm) -

Diese Schieberegler bestimmen, wie hell das hellste Weiß und wie dunkel das dunkelste Schwarz dargestellt werden. Sie können damit den Kontrast eines Fotos verändern. Insbesondere ausgewaschen erscheinende Bilder werden von diesen Einstellungen profitieren.

-
-
-
- -
diff --git a/help/de/edit-crop.page b/help/de/edit-crop.page deleted file mode 100644 index d15605f..0000000 --- a/help/de/edit-crop.page +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - Verbessern Sie die Bildkomposition, indem Sie Teile davon herausschneiden. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Zuschneiden - -

Um den sichtbaren Bereich eines Bildes zu verkleinern und so das Interesse des Betrachters auf einen kleineren Bereich zu lenken, verwenden Sie das Zuschneidewerkzeug. Dieses Werkzeug ist nur im Vollfenster- oder Vollbildmodus verfügbar.

- - - -

Klicken Sie doppelt auf ein Foto, um den Vollfenstermodus zu aktivieren und klicken Sie anschließend auf den Zuschneiden-Knopf in der Werkzeugleiste.

-
- -

Ein weißer rechteckiger Zuschnittrahmen wird über das Foto gelegt. Der etwas hellere Bereich des Bildes innerhalb des Zuschnittrahmens repräsentiert das Foto, wie es nach dem Zuschneiden aussehen würde.

-
- -

Wenn Sie den Mauszeiger in der Mitte des Zuschnittrahmens platzieren, können Sie den gesamten Rahmen verschieben. Beim Ziehen der Rahmenecken mit der Maus wird dessen Größe verändert. Während Sie die Größe oder Lage des Zuschnittrahmens verändern, werden darin vier Linien wie in einem Tic-Tac-Toe-Spielfeld angezeigt. Diese entsprechen der Drittelregel.

-

Sie können den Zuschnittrahmen auf zahlreiche gängige Größen eingrenzen. Wählen Sie eine Größe aus der Auswahlliste, die Ihren Erfordernissen entspricht. Wenn Sie auf den Umdrehen-Knopf daneben klicken, wechselt die Ausrichtung der ausgewählten Form (von Quer- auf Hochformat).

-
- -

Sobald Sie mit Größe und Bereich des Zuschnittrahmens zufrieden sind, klicken Sie auf den Zuschneiden-Knopf. Shotwell zeigt nun das zugeschnittene Bild an.

-
- -

Sollten Sie noch etwas ändern wollen, klicken Sie nochmals auf den Zuschneiden-Knopf und passen den Rahmen erneut an.

-

Wenn Sie auf Abbrechen statt auf Anwenden klicken, kehrt Shotwell zu den vorherigen Abmessungen zurück.

-
-
- -
- Was ist die Drittelregel? -

Die Drittelregel hilft, ein Foto optisch ansprechend zu gestalten.

-

Gehen wir davon aus, dass die Szene durch zwei horizontale und zwei vertikale Linien in ein 3x3-Raster mit gleichen Flächen unterteilt ist. Entsprechend der Drittelregel erhalten Sie sehr wahrscheinlich eine ansprechendere Bildkomposition, wenn Sie bestimmte Anhaltspunkte, wie den Horizont oder den Körper einer Person, an einer dieser Linien ausrichten. Außerdem kann es hilfreich sein, darauf zu achten, wie markante Bildteile von einem Bereich des Rasters in einen anderen übergehen.

-

Das Zuschneiden eines Fotos so, dass die Bildobjekte der Drittelregel folgen, führt oft zu einem optisch ansprechenderen Bild.

- -

Schneiden Sie ein Foto mit den Hilfslinien der »Drittelregel« zu, um die Komposition zu verbessern.

-
-
-
diff --git a/help/de/edit-date-time.page b/help/de/edit-date-time.page deleted file mode 100644 index c596396..0000000 --- a/help/de/edit-date-time.page +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - Ändern Sie Datum und Zeit von Fotos, wenn diese nicht stimmen. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Datum und Zeit von Fotos anpassen - -

Wählen Sie die Fotos zum Anpassen aus und dann FotosDatum und Zeit anpassen …, um Datum und Zeit der gewählten Fotos anzupassen. Wählen Sie anschließend ein neues Datum und eine neue Zeit.

- -

Wenn Sie Datum und Zeit von mehreren Fotos gleichzeitig anpassen, so können Sie entweder alle Fotos auf die gleiche Zeit setzen oder bei allen Fotos die Zeit um den gleichen Betrag verschieben.

- -

Normalerweise werden Datum und Zeit nur innerhalb von Shotwell geändert. Sie können aber auch Datum und Zeit in der Originaldatei ändern. Dies kann jedoch nicht mehr rückgängig gemacht werden, nachdem Sie Shotwell beendet haben.

- -
diff --git a/help/de/edit-enhance.page b/help/de/edit-enhance.page deleted file mode 100644 index 03fe5cb..0000000 --- a/help/de/edit-enhance.page +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - Lassen Sie die Helligkeit und den Kontrast eines Fotos durch Shotwell automatisch anpassen. - - - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Automatisch verbessern - -

Ein Klick auf den Verbessern-Knopf ist eine schnelle Möglichkeit, die Helligkeit und den Kontrast eines Bildes automatisch anpassen zu lassen. Dadurch erhalten Sie in vielen Fällen bereits ein korrekt belichtetes Foto. Sie können dieses auch als Ausgangspunkt verwenden und weitere Anpassungen vornehmen, indem Sie auf den Anpassen-Knopf klicken.

-
diff --git a/help/de/edit-external.page b/help/de/edit-external.page deleted file mode 100644 index 40eaa8c..0000000 --- a/help/de/edit-external.page +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - Verwenden Sie ein anderes Programm zum Bearbeiten eines Fotos. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Bearbeiten von Fotos mit einem externen Programm - -

Gelegentlich wollen Sie vielleicht einen externen Editor verwenden, um ein Foto zu bearbeiten. Sofern installiert, sind Gimp und UFRaw die voreingestellten externen Programme für Foto- beziehungsweise RAW-Bearbeitung. Wenn diese Programme nicht installiert sind, müssen Sie Ihre bevorzugten Editoren selbst einrichten. Wählen Sie hierzu BearbeitenEinstellungen und wählen Sie die entsprechenden Programme aus der Auswahlliste der installierten Anwendungen aus.

- -

Sobald Ihre Editoren eingerichtet sind, wählen Sie ein Foto aus und wählen Sie Fotos Mit externem Editor öffnen. Wenn das Originalbild als RAW-Datei vorliegt, wählen Sie Fotos Mit RAW-Editor öffnen, um die RAW-Datei direkt mit dem gewählten RAW-Editor zu bearbeiten.

- -

Wenn Ihre Bearbeitungen abgeschlossen sind, erkennt Shotwell die Änderungen und aktualisiert das Foto. Wenn die Änderungen extern vorgenommen wurden, drücken Sie im Vollfenster-Modus die Umschalttaste und halten Sie diese gedrückt, um statt des extern bearbeiteten Bildes das Originalbild zu sehen.

- -

Zurücksetzen auf das Original löscht alle externen Bearbeitungsvorgänge.

- - -

Wenn Sie ein RAW-Foto extern bearbeiten und das Ergebnis in einem anderen Bildformat wie JPEG oder PNG speichern, kann Shotwell nicht automatisch erkennen, dass das ursprüngliche RAW-Bild und das neue Bild gepaart werden sollen.

- -

Wenn Sie das Ergebnisbild mit Shotwell bearbeiten wollen, werden Sie es selbst importieren müssen.

-
-
diff --git a/help/de/edit-nondestructive.page b/help/de/edit-nondestructive.page deleted file mode 100644 index dfe518f..0000000 --- a/help/de/edit-nondestructive.page +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - Shotwell ist ein zerstörungsfreier Fotoeditor – Ihre Originalbilder werden nicht verändert. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Was passiert mit dem Original, wenn ich ein Foto bearbeite? - -

Shotwell ist ein zerstörungsfreier Fotoeditor. Ihre Originalbilder werden nicht verändert. Wenn Sie beispielsweise ein Foto zuschneiden oder dessen Farben verändern, bleibt das eigentliche Bild auf dem Datenträger davon unberührt. Shotwell speichert Ihre Bearbeitungen in einer Datenbank und wendet diese erst an, wenn es erforderlich ist. Das bedeutet, dass Sie sämtliche von Ihnen an einem Foto vorgenommenen Änderungen rückgängig machen können.

- -

Wenn Sie sehen wollen, wie ein Foto vor Ihren Änderungen aussah, drücken Sie die Umschalttaste. Das Originalbild wird angezeigt, so lange Sie diese Taste gedrückt halten.

- -

Beachten Sie, dass Shotwell optional Metadaten, wie Stichwörter und Titel, in Fotodateien schreiben kann. Weitere Informationen finden Sie im Abschnitt Fotodateien.

- -
diff --git a/help/de/edit-redeye.page b/help/de/edit-redeye.page deleted file mode 100644 index dfc89d4..0000000 --- a/help/de/edit-redeye.page +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - Korrigieren Sie Fotos mit roten Augen, die durch den Kamerablitz verursacht wurden. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Rote Augen entfernen - -

Rote Augen erscheinen durch einen Reflex des Kamerablitzes auf der Netzhaut des Auges. Um dies in einem Foto zu korrigieren, verwenden Sie das Rote-Augen-Entfernungswerkzeug.

- - -

Klicken Sie auf Rote Augen. Ein Kreis erscheint im Foto.

-
- -

Ziehen Sie den Kreis über das betroffene Auge und passen Sie dessen Größe mit dem Schieberegler an. Klicken Sie dann auf Anwenden und die Rötung wird entfernt.

-
- -

Wiederholen Sie diesen Vorgang für alle roten Augen in Ihrem Foto. Klicken Sie auf Schließen, wenn Sie fertig sind.

-
-
-
diff --git a/help/de/edit-rotate.page b/help/de/edit-rotate.page deleted file mode 100644 index 146abac..0000000 --- a/help/de/edit-rotate.page +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - Klicken Sie auf Drehen oder wählen Sie einen der Befehle im Foto-Menü. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Ein Foto drehen oder spiegeln - -

Drehen Sie Ihre Fotos im oder gegen den Uhrzeigersinn mit dem Knopf Drehen in der Werkzeugleiste der meisten Ansichten. Sie können auch jedes beliebige Fotos spiegeln.

- -

Um im Uhrzeigersinn zu drehen klicken Sie auf den Drehen-Knopf. Um gegen den Uhrzeigersinn zu drehen halten Sie die Taste Strg gedrückt und klicken Sie auf den Knopf. Beide Befehle sind auch im Menü Fotos verfügbar. Alternativ können Sie die folgenden Tastenkombinationen verwenden:

- -

gegen den Uhrzeigersinn drehen: UmschalttasteStrgR oder [

-

im Uhrzeigersinn drehen: StrgR oder ]

-
-

Um ein seitenverkehrtes Bild zu erzeugen, wählen Sie Horizontal spiegeln im Menü Fotos. Um ein Bild vertikal zu spiegeln, wählen Sie Vertikal spiegeln im gleichen Menü.

- - -

Wenn Sie mehr als ein Bild auswählen, können Sie alle gleichzeitig drehen.

-
- -
diff --git a/help/de/edit-straighten.page b/help/de/edit-straighten.page deleted file mode 100644 index 2621593..0000000 --- a/help/de/edit-straighten.page +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - Ein Foto begradigen, so dass dessen Horizont in Waage erscheint. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Fotos ausrichten - -

Das Werkzeug zum Ausrichten ermöglicht das Begradigen und Ausrichten von Fotos. Das Werkzeug zum Ausrichten ist nur im Vollbild- oder Vollbildschirmmodus verfügbar.

- - - -

Klicken Sie auf Ausrichten. Daraufhin erscheint der Schieberegler zum Ausrichten. Drücken Sie alternativ die Tastenkombination StrgA.

-
- -

Positionieren Sie den Schieberegler so, dass die gewünschte Begradigung erzielt wird.

-
- -

Klicken Sie auf Ausrichten, sobald Sie fertig sind.

-
-
- -
diff --git a/help/de/edit-undo.page b/help/de/edit-undo.page deleted file mode 100644 index eed37da..0000000 --- a/help/de/edit-undo.page +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - Ein Foto in seinen ursprünglichen, unbearbeiteten Zustand zurückversetzen. - - - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Änderungen rückgängig machen - -

Weil Shotwell ein zerstörungsfreier Foto-Editor ist, können Sie alle Bearbeitungsschritte an einem Foto zurücknehmen.

- -

Wenn Sie sehen wollen, wie ein Foto vor Ihren Änderungen aussah, drücken Sie die Umschalttaste. Das Originalbild wird angezeigt, so lange Sie diese Taste gedrückt halten.

- -

Um alle von Ihnen an einem Foto vorgenommenen Änderungen zurückzunehmen, wählen Sie FotosZurück zum Original. Als einzige Ausnahme werden Anpassungen von Datum und Zeit nicht zurückgenommen.

- -
diff --git a/help/de/formats.page b/help/de/formats.page deleted file mode 100644 index 967514f..0000000 --- a/help/de/formats.page +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - Shotwell unterstützt JPEG, PNG, TIFF, BMP und RAW-Fotos ebenso wie Video-Dateien. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Unterstützte Foto- und Video-Formate - -

Shotwell unterstützt JPEG, PNG, TIFF, BMP und RAW-Fotodateien. Andere Grafikformate, wie beispielsweise GIF, unterstützt Shotwell noch nicht.

- -

Die Unterstützung des RAW-Formats in Shotwell ist derzeit eingeschränkt. Wenn Sie ein RAW-Foto betrachten, sehen Sie tatsächlich ein JPEG-Bild, das aus dem RAW-Foto abgeleitet wurde, und nicht das tatsächliche RAW-Bild. Darüber hinaus sind die Bearbeitungsschritte nicht vollständig in 16 Bit. Bearbeitete Fotos werden nur als 8-Bit-Dateien exportiert. Alle unterstützten Formate können exportiert werden (JPEG, PNG, TIFF, BMP).

- -

Für weiterführende Informationen über Fotos im RAW-Format in Shotwell lesen Sie bitte den Abschnitt RAW.

- -

Shotwell unterstützt Video-Dateien in jedem Format, das auch von der GStreamer Medienbibliothek auf dem System unterstützt wird, auf dem Shotwell ausgeführt wird. Typischerweise zählen dazu unter anderen folgende Formate:

- -

Containerformate: Ogg, QuickTime, MP4, AVI.

-

Codecs: Theora, Quicktime, MPEG-4 und Motion JPEG. Beachten Sie, dass einige Betriebssysteme aufgrund von gesetzlichen oder Lizenzbestimmungen eventuell nicht alle hier aufgeführten Codecs unterstützen.

-
- -

Shotwell unterstützt sowohl Fotos als auch Videos. Zur Vereinfachung verwendet dieses Handbuch überwiegend nur den Begriff »Foto« für beides. Viele Vorgänge in Shotwell funktionieren sowohl mit Fotos als auch mit Videos. Ereignisse, Markierungen, Bewertungen und Veröffentlichung funktionieren sowohl mit Fotos als auch mit Videos.

- -
diff --git a/help/de/import-camera.page b/help/de/import-camera.page deleted file mode 100644 index 1923412..0000000 --- a/help/de/import-camera.page +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - So kopieren Sie Fotos von einer Digitalkamera. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Importieren von einer Kamera - -

So importieren Sie Fotos von einer Digitalkamera:

- - - -

Verbinden Sie die Kamera mit Ihrem Rechner und schalten Sie sie ein. Shotwell wird sie erkennen und in der Seitenleiste anzeigen.

-
- -

Wählen Sie die Kamera in der Seitenleiste aus. Vorschaubilder werden für jedes der in der Kamera befindlichen Fotos angezeigt.

-
- -

Auf Wunsch können Sie eine Gruppe bestimmter Fotos zum Importieren auswählen. Halten Sie dazu die Strg-Taste gedrückt und wählen Sie anschließend die einzelnen Fotos aus. Halten Sie die Umschalttaste gedrückt, um eine Reihe aufeinander folgender Fotos auszuwählen.

-
- -

Klicken Sie auf Auswahl importieren oder Alles importieren. Die Fotos werden daraufhin aus der Kamera kopiert und auf Ihrem Rechner gespeichert.

-
-
- -

Sobald der Import abgeschlossen ist, öffnen Sie in der Seitenleiste die Ansicht Letzter Import, um alle importierten Fotos zu sehen. Die Ereignisliste in der Seitenleiste zeigt daraufhin auch alle neuen Fotos nach Datum kategorisiert.

-
diff --git a/help/de/import-file.page b/help/de/import-file.page deleted file mode 100644 index 2c81530..0000000 --- a/help/de/import-file.page +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - Fotos importieren, die bereits auf Ihrem Rechner gespeichert sind. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Importieren von Ihrer Festplatte - -

Um Fotodateien von Ihrer Festplatte in Shotwell zu importieren, ziehen Sie sie einfach aus der Dateiverwaltung in das Shotwell-Fenster.

- -

Wählen Sie alternativ DateiAus Ordner importieren … und wählen Sie den Ordner mit den Fotos aus, die Sie importieren wollen. Wenn Sie vermeiden wollen, dass Shotwell beim Import auch Unterordner mit einbezieht, dann deaktivieren Sie das Ankreuzfeld Unterordner einbeziehen unten im Dateiauswahldialog.

- -

Shotwell fragt, ob Sie die Fotodateien in Ihren Bibliotheksordner (normalerweise der Ordner Bilder in Ihrem persönlichen Ordner) kopieren möchten, oder ob Sie sie ohne Kopieren importieren wollen.

- -

Wenn Sie die Strg-Taste während des Ziehens von Fotos gedrückt halten, so kopiert Shotwell ohne Nachfrage die Fotos in Ihre Bibliothek. Wenn Sie StrgUmschalttaste während des Ziehens von Fotos gedrückt halten, so importiert Shotwell die Fotos ohne Nachfrage.

- -

Sobald der Import abgeschlossen ist, wählen Sie Letzter Import in der Seitenleiste, um alle erfolgreich importierten Fotos zu sehen. Die Ereignisliste zeigt auch neue Einträge für die importierten Fotos mit den zugehörigen Zeitstempeln.

- -
diff --git a/help/de/import-memorycard.page b/help/de/import-memorycard.page deleted file mode 100644 index c7fd217..0000000 --- a/help/de/import-memorycard.page +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - Fotos von der Speicherkarte einer Digitalkamera importieren. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Import von einer Speicherkarte - -

So importieren Sie Fotos von einer Speicherkarte:

- - - -

Schieben Sie die Karte in Ihren Kartenleser. Stellen Sie sicher, dass der Kartenleser an den Rechner angeschlossen und eingeschaltet ist.

-
- -

Der Kartenleser und die Karte sollten automatisch erkannt werden.

-
- -

Folgen Sie den Anweisungen zum Importieren von Fotos von Ihrer Festplatte. Wenn Sie DateiAus Ordner importieren … wählen, sollte die Speicherkarte als Ordner in der Seitenleiste des Dateiauswahlfensters sichtbar sein.

-
-
- -

Shotwell kann Fotos von jeder Speicherkarte importieren, die mit Ihrem Kartenleser kompatibel ist.

- -

Falls die Karte nicht automatisch erkannt wird, könnte Ihr Kartenleser diese nicht richtig erkannt haben. Versuchen sie, die Karte aus- und erneut einzustecken. Sollte dies nicht funktionieren, könnten Sie immer noch Fotos importieren, indem Sie die Kamera direkt an den Rechner anschließen.

- -
diff --git a/help/de/index.page b/help/de/index.page deleted file mode 100644 index 98fa6f6..0000000 --- a/help/de/index.page +++ /dev/null @@ -1,64 +0,0 @@ - - - - - Shotwell - - Jim Nelson - jim@yorba.org - Allison Barlow - allison@yorba.org - Robert Ancell - robert.ancell@canonical.com - Peter Smith - pdo.smith@gmail.com - Phil Bull - philbull@gmail.com - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - - <media type="image" src="figures/shotwell_logo.png"/>Shotwell Fotoverwaltung - -
- Fotos importieren -
- -
- Fotos ansehen -
- -
- Fotos organisieren -
- -
- Fotos bearbeiten -
- -
- Fotos teilen -
- -
- Weitere Funktionen -
-
diff --git a/help/de/organize-event.page b/help/de/organize-event.page deleted file mode 100644 index dcad6b4..0000000 --- a/help/de/organize-event.page +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - Gruppieren Sie Fotos, die etwa zur gleichen Zeit aufgenommen wurden. Erfahren Sie, wie Sie diese umbenennen, zusammenführen und nach Ereignissen sortieren. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Ereignisse - -

Ein Ereignis kennzeichnet eine Gruppe von Fotos, die etwa zur gleichen Zeit aufgenommen wurden. Beim Importieren von Fotos prüft Shotwell die Aufnahmezeitpunkte und gruppiert die Fotos in Ereignissen.

- -

Wählen Sie Ereignisse in der Seitenleiste, um Ihre Fotos nach Datum sortieren zu lassen. Wenn Sie in der Seitenleiste einen Monat oder ein Jahr auswählen, wird eine Liste der Ereignisse im Hauptfenster angezeigt. Durch Doppelklick auf ein Ereignis sehen Sie alle Fotos, die um diesen Zeitpunkt herum aufgenommen wurden.

- -

Falls ein Foto nicht über eingebettete Informationen zu Datum und Zeit verfügt, kann Shotwell es nicht automatisch in einem Ereignis ablegen. In diesem Fall erscheint es in der Ansicht Ereignislos, die über die Seitenleiste erreichbar ist. Sie können das Foto dennoch zu einem beliebigen Ereignis hinzufügen, wie nachfolgend beschrieben.

- -
- Ereignisse umbenennen - -

Zum Benennen eines Ereignisses wählen Sie das entsprechende Ereignis aus und wählen Sie dann EreignisseEreignis umbenennen … und geben Sie einen neuen Namen ein. Alternativ klicken Sie zum Umbenennen zweimal auf den Namen in der Seitenleiste, geben Sie den neuen Namen ein und drücken anschließend die Eingabetaste.

-
- -
- Fotos zwischen Ereignissen verschieben - -

Obwohl Fotos anfänglich anhand deren Zeitstempeln in Ereignisse eingeordnet werden, können Sie sie zwischen Ereignissen verschieben. Ziehen Sie dazu ein beliebiges Foto in die Seitenleiste und legen Sie es auf einem Ereignis ab.

-
- -
- Ereignisse erstellen und zusammenführen -

Um ein neues Ereignis zu erstellen, wählen Sie die gewünschten Fotos aus und wählen Sie EreignisseNeues Ereignis.

-

Wählen Sie zum Zusammenlegen von Ereignissen den Punkt Ereignisse in der Seitenleiste. Halten Sie anschließend Strg gedrückt und klicken Sie auf diejenigen Ereignisse, die Sie zusammenführen wollen. Wählen Sie abschließend EreignisseEreignisse zusammenführen.

-
- -
- Ereignisse sortieren - -

Ereignisse werden in einer Baumansicht in der Seitenleiste angezeigt, geordnet anhand der Jahres- und Monatsangabe des ältesten Fotos in dem Ereignis. Um die Sortierreihenfolge des Ereignisses zu ändern, wählen Sie AnsichtEreignisse sortieren. Wählen Sie dann die aufsteigende oder absteigende Sortierung aus.

- -
- -
- Das Foto ändern, welches das Ereignis repräsentiert - -

Wenn Sie den Menüpunkt Ereignisse in der Seitenleiste wählen, so wird für jedes Ereignis ein einzelnes Foto angezeigt. Dieses wird Hauptfoto genannt.

- -

In der Voreinstellung verwendet Shotwell des erste Foto in einem Ereignis als Schlüsselfoto. Um ein anderes Foto als Schlüsselfoto zu verwenden, wählen Sie das Foto aus und wählen Sie FotosZum Schlüsselfoto für dieses Ereignis machen.

- -
- -
diff --git a/help/de/organize-flag.page b/help/de/organize-flag.page deleted file mode 100644 index 1582044..0000000 --- a/help/de/organize-flag.page +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - Markieren Sie Fotos, um sie als besondere zu kennzeichnen oder mit diesen als Menge zu arbeiten. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Fotos markieren - -

In Shotwell können Sie Fotos markieren. Wenn ein Foto markiert ist, erscheint ein kleines Flaggensymbol in dessen oberer rechter Ecke. In der Seitenleiste finden Sie unter dem Eintrag Markiert alle Fotos, die bereits markiert sind.

- -

Eine Markierung hebt ein Foto besonders hervor. Sie können dies nach Belieben interpretieren, zum Beispiel alle Fotos markieren, die eine Nachbearbeitung benötigen, oder alle Fotos, die Sie mit Freunden teilen wollen.

- -

Markierungen sind auch sinnvoll, wenn Sie mit den markierten Fotos als Sammlung arbeiten wollen. Beispielsweise können Sie die Markiert-Ansicht öffnen und alle markierten Fotos zu einem Veröffentlichungsdienst übertragen.

- -
- So markieren Sie ein Foto oder heben die Markierung auf -

Um ein Foto zu markieren oder die Markierung zu entfernen, klicken Sie mit der rechten Maustaste auf das Foto und wählen Sie Markieren oder Markierung aufheben aus dem Kontextmenü. Alternativ können Sie die Tastenkombination StrgG oder einfach / drücken.

-
- -
diff --git a/help/de/organize-rating.page b/help/de/organize-rating.page deleted file mode 100644 index 7127266..0000000 --- a/help/de/organize-rating.page +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - Geben Sie Ihren Fotos eine Bewertung zwischen einem und fünf Sternen. Sie können schlechte Fotos ablehnen, wodurch sie in der Ansicht verborgen werden. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Bewertungen -

Sie können jedem Foto eine Bewertung zwischen einem und fünf Sternen zuweisen oder es alternativ als abgelehnt markieren, wodurch Shotwell dieses Foto in der Voreinstellung nicht mehr anzeigt.

- -

Sie bewerten ein Foto oder eine Gruppe von Fotos auf eine der folgenden Weisen:

- - -

Wählen Sie das Foto oder die Fotos aus, und wählen Sie dann eine Bewertung im Menü FotosBewerten.

-

Klicken Sie mit der rechten Maustaste auf das Foto oder die Fotogruppe und wählen Sie dann eine Bewertung im Kontextmenü »Bewerten«.

-

Wählen Sie das Fotos oder die Fotogruppe aus und drücken Sie dann eine der Tasten 1, 2, 3, 4 oder 5, um eine Bewertung zu geben. Drücken Sie 9, um das Foto oder die Gruppe abzuweisen. Drücken Sie 0, um die Bewertung zu löschen.

-
- -

Normalerweise zeigt Shotwell alle bis auf die abgelehnten Fotos an. Sie können im Menü AnsichtFotos filtern eine andere Filterung der Bewertungen festlegen. Beispielsweise können Sie nur Fotos anzeigen, die mit 3 Sternen oder höher bewertet sind, oder auch jene Fotos in der Anzeige erscheinen lassen, die als abgelehnt markiert sind. Das Shotwell-Symbol in der Werkzeugleiste zeigt den aktuellen Bewertungsfilter an und kann auch zum Einrichten des Filters verwendet werden.

- -

Shotwell zeigt normalerweise die Bewertung zu jedem Foto in dessen linker unterer Ecke an. Sie können diese Anzeige im Menü AnsichtBewertungen ausschalten.

- -

Die Bewertung eines Fotos können Sie mit BewertenAufwerten und BewertenAbwerten erhöhen beziehungsweise verringern. Alternativ können Sie hierzu die Tasten < und > drücken.

-
diff --git a/help/de/organize-remove.page b/help/de/organize-remove.page deleted file mode 100644 index 9339172..0000000 --- a/help/de/organize-remove.page +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - Fotos aus der Bibliothek entfernen oder ganz vom Rechner löschen. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Fotos entfernen und löschen - -

Sie können Fotos aus Ihrer Bibliothek entfernen und diese zusätzlich vollständig von der Festplatte löschen.

-

Löschvorgang

-

Das Diagramm zeigt, wie ein Foto beim Löschen zunächst in den Shotwell-eigenen Papierkorb verschoben wird. Wenn Sie es aus dem Papierkorb entfernen, wird es in den systemeigenen Papierkorb verschoben. Sobald Sie es aus diesem globalen Papierkorb entfernen, wird es unwiderruflich und endgültig von Ihrem Rechner entfernt.

-
- Fotos werden aus Bibliothek entfernt -

Wählen Sie die zu entfernenden Fotos aus udn wählen Sie BearbeitenIn den Papierkorb verschieben oder drücken Sie die Löschtaste. Die Fotos werden aus Ihrer Bibliothek in den Shotwell-eigenen Papierkorb verschoben.

-

Wenn Sie Fotos aus Shotwell entfernen und dabei den Papierkorb umgehen wollen, wählen Sie einfach die zu entfernenden Fotos aus und wählen Sie BearbeitenAus der Bibliothek entfernen. Die eigentlichen Fotodateien auf Ihrer Festplatte bleiben dabei erhalten.

-
- -
- Den Papierkorb leeren oder Fotos wiederherstellen -

Wählen Sie den Papierkorb-Eintrag in der Seitenleiste aus. Dadurch zeigt Shotwell alle Fotos an, die zum Entfernen oder Löschen markiert wurden. In der Papierkorb-Ansicht haben Sie folgende Möglichkeiten:

- - Löschen

Löschen der ausgewählten Fotos aus dem Papierkorb.

- Wiederherstellen

Wiederherstellen der gewählten Fotos in Shotwell.

- Papierkorb leeren

Löschen aller Fotos im Papierkorb.

-
-
- -
- Löschen oder Leeren des Papierkorbs -

Wenn Sie Dateien aus dem Papierkorb-Ordner löschen oder den Papierkorb-Ordner leeren, haben Sie folgende Möglichkeiten:

- - Nur entfernen

Dadurch werden die Dateien aus der Bibliothek entfernt, aber die eigentlichen Fotos verbleiben an deren Speicherorten auf Ihrem Rechner.

- Datei löschen

Dadurch werden die Dateien sowohl aus der Bibliothek entfernt als auch auf dem Rechner gelöscht.

- Abbrechen

Nichts tun.

-
-
- -
diff --git a/help/de/organize-search.page b/help/de/organize-search.page deleted file mode 100644 index 4d0860a..0000000 --- a/help/de/organize-search.page +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - So finden Sie Fotos und Videos in Ihrer Sammlung anhand einer Vielzahl von Kriterien. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Suchen - -

Es gibt zwei Suchmöglichkeiten in Shotwell: Die Filter-Werkzeugleiste und gespeicherte Suchen. Die Suchleiste ermöglicht eine schneller Suche in der aktuellen Ansicht nach einem bestimmten Kriterium. Gespeicherte Suchen bieten komplexere Suchkriterien und verbleiben über Sitzungen hinweg in der Seitenleiste.

- - - -
- Gespeicherte Suche -

Eine gespeicherte Suche bleibt auch für eine spätere Shotwell-Sitzung erhalten. Sie wird durch Hinzufügen und Entfernen von Fotos und Videos zur beziehungsweise aus der Shotwell-Bibliothek aktualisiert.

- -

Erstellen Sie eine neue gespeicherte Suche mit BearbeitenNeue gespeicherte Suche … oder durch Drücken von StrgS. Im Dialogfeld können Sie einen Namen für die Suche vergeben und entscheiden, ob beliebige, alle oder keine der Kriterien in den folgenden Zeilen angewendet werden sollen.

- -

Jede Zeile stellt ein Suchkriterium dar. Mit dem +-Knopf können Sie weitere Zeilen hinzufügen und mit dem --Knopf eine bestimmte Zeile entfernen. Das Kombinationsfeld links an jeder Zeile wählt das Suchkriterium aus. Die Kriterien müssen korrekt eingegeben werden, damit der OK-Knopf benutzbar wird.

-
- -
diff --git a/help/de/organize-tag.page b/help/de/organize-tag.page deleted file mode 100644 index e2e901e..0000000 --- a/help/de/organize-tag.page +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - Fotos durch Kennzeichnung organisieren. - - - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Fotos markieren - -

Sie können den ausgewählten Fotos eines oder mehrere Stichworte zuweisen. Ein Stichwort kann aus einem oder mehreren Wörtern bestehen, die Sie mit diesen Fotos verbinden.

- -

Um neue Stichworte zu Fotos hinzuzufügen, wählen Sie zunächst die gewünschten Fotos aus. Auf folgende Weise können Sie nun Stichworte zuweisen:

- - -

Wählen Sie StichworteStichworte hinzufügen ….

-

Drücken Sie StrgT.

-

Ziehen Sie die gewählten Fotos und legen Sie diese auf das gewünschte Stichwort ab.

-
- -

Wenn Sie StrgT oder StichworteStichworte hinzufügen … verwenden, so geben Sie anschließend ein oder mehrere Stichworte durch Kommata getrennt ein. Sofern Sie ein Stichwort erstellt haben, so benennen Sie es um, indem Sie es in der Seitenleiste auswählen und entweder StichworteStichwort »[Wort]« umbenennen … wählen, oder mit der rechten Maustaste darauf klicken und Umbenennen … wählen, oder wenn Sie zweimal auf das Stichwort in der Seitenleiste klicken.

- -

Um zu ändern, welche Stichworte einem bestimmten Foto zugeordnet sind, wählen Sie das Foto aus und wählen Sie StichworteStichworte ändern … oder klicken Sie mit der rechten Maustaste auf ein Foto und wählen Stichworte ändern …, um die durch Kommata getrennte Liste zu bearbeiten. Um ein Stichwort von einem oder mehreren Fotos zu entfernen, wählen Sie zunächst das Stichwort in der Seitenleiste aus und danach die Fotos, von denen Sie die Stichworte entfernen wollen. Wählen Sie dann StichworteStichwort »[Name]« von Fotos entfernen oder klicken Sie mit der rechten Maustaste auf die Fotos und wählen Stichwort »[Name]« von Fotos entfernen.

- -

Um ein Stichwort vollständig zu löschen, wählen Sie es in der Seitenleiste aus und wählen StichwortStichwort »[Name]« entfernen. Alternativ klicken Sie mit der rechten Maustaste darauf und wählen Stichwort »[Name]« entfernen.

- -

Wenn Sie ein neues Stichwort anlegen, so erscheint es in der Seitenleiste unter Stichworte, was nur bei bestehenden Stichworten dargestellt wird. Fotos können mit mehreren Stichworten verknüpft sein. Wenn Sie auf ein Stichwort in der Seitenleiste klicken, so erscheinen daraufhin alle Fotos, die mit diesem Stichwort verknüpft sind.

- -
- Hierarchische Stichworte -

Shotwell unterstützt auch verschachtelte Stichworte. Sie können Ihre Stichworte neu arrangieren, indem Sie sie durch Ziehen und Ablegen ineinander verschieben. Um ein neues untergeordnetes Stichwort zuzuweisen, klicken Sie mit der rechten Maustaste auf ein Stichwort und wählen Sie Neu.

- -

Verschachtelte Stichwörter sind hilfreich, wenn Sie die Sortierung Ihrer Stichwortliste besser an Ihre eigenen Bedürfnisse anpassen wollen. Beispielsweise können Sie ortsbezogene Stichworte wie »Berge« oder »Strand« dem Stichwort »Orte« unterordnen, welches seinerseits zum übergeordneten Stichwort »Sommerurlaub« gehören könnte.

- -

Beachten Sie, dass beim Löschen eines übergeordneten Stichworts auch sämtliche enthaltenen untergeordneten Stichworte gelöscht werden.

-
-
diff --git a/help/de/organize-title.page b/help/de/organize-title.page deleted file mode 100644 index 91ef214..0000000 --- a/help/de/organize-title.page +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - Betiteln Ihrer Fotos. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Titel - -

Das Ankreuzfeld in AnsichtTitel schaltet die Anzeige von Titeln neben jedem Foto an oder aus. In der Voreinstellung wird der Dateiname als Titel des Fotos verwendet.

- -

Um den Titel eines Fotos zu ändern, wählen Sie das Foto und anschließend FotosTitel bearbeiten … oder drücken Sie F2.

- -
diff --git a/help/de/other-files.page b/help/de/other-files.page deleted file mode 100644 index cbbee00..0000000 --- a/help/de/other-files.page +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - Halten Sie die Shotwell-Bibliothek auf dem gleichen Stand wie die Fotos auf Ihrer Festplatte. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Fotodateien - -

Jedes Foto in der Shotwell-Bibliothek entspricht einer auf Ihrer Festplatte gespeicherten Datei. Shotwell verfügt über verschiedene Funktionen, um die Shotwell-Bibliothek mit den Dateien auf der Festplatte synchron zu halten.

- - -
- Ein eigenes Namensschema verwenden -

Shotwell erlaubt es, ein eigenes Namensschema für Ihre Bibliothek zu verwenden. Passen Sie dazu die Einstellungen für Ordnerstruktur und Muster in den Einstellungen an. Verwenden Sie ein vorgewähltes Schema oder wählen Sie Benutzerdefiniert und tippen Sie Ihr eigenes ein.

- -

Die verfügbaren Symbole für das Ordnernamensmuster beginnen mit einem % (Prozentzeichen). Die Werte dieser Symbole sind von der Spracheinstellung abhängig. Folglich kann das Ergebnis auf Ihrem Rechner von den nachfolgenden Beispielen abweichen.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Symbol

Bedeutung

Beispiel

%Y

Jahr: lang

2011

%y

Jahr: kurz

11

%d

Tag des Monats mit führender Null

03

%A

Tag: lang

Mittwoch

%a

Tag: abgekürzt

Mi

%m

Monat als Zahl mit führender Null

02

%b

Monat: abgekürzt

Feb

%B

Monat: lang

Februar

%I

Stunde: 12-Stunden-Format

05

%H

Stunde: 24-Stunden-Format

17

%M

Minute

16

%S

Sekunde

30

%p

a. m. oder p. m.

p. m.

- -

Es sind weitere Symbole verfügbar. Bitte schauen Sie dazu im Handbuch von strftime nach, welches Sie mit dem Befehl man strftime ansehen können, falls ein benötigtes Symbol hier nicht aufgelistet ist.

-
- -
- Automatisch Fotos importieren - -

Shotwell kann Fotos automatisch importieren, die dann im Bibliotheksordner erscheinen. Der Bibliotheksordner befindet sich im Allgemeinen im Ordner Bilder in Ihrem persönlichen Ordner. Diesen Ort können Sie in den Einstellungen ändern.

- -

Um den automatischen Import zu aktivieren, aktivieren Sie das Ankreuzfeld Bibliotheksordner auf neue Dateien überwachen in den Einstellungen.

- -

Shotwell kann auch symbolischen Verknüpfungen innerhalb der automatisch importierten Ordner folgen.

- -
- -
- Umbenennen automatisch importierter Fotos in Kleinbuchstaben - -

Shotwell kann automatisch die Dateinamen importierter Fotos in Kleinbuchstaben ändern. Um dies zu aktivieren, wählen Sie BearbeitenEinstellungen und aktivieren Sie im Einstellungen-Fenster das Ankreuzfeld Namen von importierten Dateien in Kleinbuchstaben ändern.

- -
- -
- Metadaten unmittelbar ändern - -

In der Voreinstellung ändert Shotwell keine Fotos, selbst wenn Sie sie bearbeiten oder deren Stichworte und Titel ändern. Solche Änderungen werden lediglich in der Shotwell-eigenen Datenbank registriert.

- -

Um dieses Verhalten zu ändern, aktivieren Sie das Ankreuzfeld Stichworte, Titel und andere Metadaten in die Fotodateien schreiben im Einstellungen-Dialog. Wenn diese Option aktiviert ist, werden die folgenden Metadaten in die Fotodateien geschrieben, sobald Sie sie in Shotwell ändern:

- - -

Titel

-

Markierungen

-

Bewertungen

-

Ausrichtungsinformation

-

Uhrzeit/Datum

-
- -

Shotwell speichert diese Informationen in Fotodateien im EXIF-, IPTC- und/oder XMP-Format. Beachten Sie, dass Shotwell nur in Fotodateien in den Formaten JPEG, PNG und TIFF schreiben kann, nicht in BMP-Fotos, RAW-Fotos oder Videodateien.

- -
- -
- Laufzeitüberwachung - -

Wenn Shotwell ausgeführt wird, werden Änderungen an jeder Fotodatei extern gespeichert. Bei Änderungen an einer Fotodatei liest Shotwell diese erneut ein und aktualisiert die Bild- und Metadatenansicht.

- -

Beachten Sie, das Shotwell beim Start alle Fotodateien auf Änderungen prüft, jedoch nach dem Start nur die im Bibliotheksordner enthaltenen Fotodateien in Echtzeit überwacht werden. Wir hoffen, diese Einschränkung in einer zukünftigen Version dieses Programms beseitigen zu können.

- -
- -
diff --git a/help/de/other-missing.page b/help/de/other-missing.page deleted file mode 100644 index de8e2aa..0000000 --- a/help/de/other-missing.page +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - Falls Shotwell ein Foto in Ihrer Bibliothek nicht finden kann, wird dieses als fehlend markiert. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Fehlende Fotos - -

Bei jedem Programmstart liest Shotwell Ihre Fotobibliothek neu ein, um sicherzustellen, dass alle Fotodateien auf Ihrem Datenträger noch vorhanden sind. Falls festgestellt wird, dass Fotodateien fehlen, werden diese nicht in den gewöhnlichen Foto-, Ereignis- und Stichwortansichten angezeigt, sondern in einer separaten Ansicht für fehlende Dateien in der Seitenleiste dargestellt.

- -

Falls Sie die nicht mehr benötigten Dateien aus der Shotwell-Sammlung entfernen wollen (weil Sie beispielsweise die Dateien bewusst gelöscht haben), wählen Sie diese Fotos in der Ansicht für fehlende Dateien in der Seitenleiste aus und klicken Sie auf Aus der Bibliothek entfernen.

- -

Wenn Sie Fotos auf einem Wechseldatenträger haben, wie einer CD oder einem USB-Stick, und diese in Shotwell importieren, ohne dass die Fotos auf Ihren Rechner kopiert werden, werden diese Fotos als fehlend markiert, sobald Sie den Wechseldatenträger entfernen. In finden Sie eine Anleitung, wie Sie Dateien von Wechseldatenträgern auf Ihren Rechner kopieren.

- -

Wenn eines der fehlenden Fotos wieder verfügbar ist, bemerkt Shotwell dies, wenn es das nächste Mal gestartet wird. Die Fotos erscheinen wieder in den Foto-, Ereignis- und Stichwortansichten.

- -
diff --git a/help/de/other-multiple.page b/help/de/other-multiple.page deleted file mode 100644 index 8c40a63..0000000 --- a/help/de/other-multiple.page +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - Sie können Shotwell mit einer anderen Fotobibliothek öffnen, wenn Sie die Befehlszeile verwenden. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Mehrere Bibliotheken - -

Shotwell speichert normalerweise seine Datenbank und Vorschaubilder der Fotos im Ordner ~/.shotwell. Dieser Ordner enthält keine Fotos, sondern lediglich eine Datenbank mit einer Liste aller Fotos in der Shotwell-Bibliothek.

- -

Als erweitertes Funktionsmerkmal können Sie mehrere Shotwell-Bibliotheken mit jeweils eigenen Fotos haben. Dabei benötigt jede der Bibliotheken ihren eigenen Datenbankordner. Um Shotwell mit einer alternativen Bibliothek zu öffnen, geben Sie in der Befehlszeile den entsprechenden Datenbankordner wie folgt an:

- - -shotwell -d [Bibliothek-Ordner] - - -
diff --git a/help/de/other-plugins.page b/help/de/other-plugins.page deleted file mode 100644 index 4180d13..0000000 --- a/help/de/other-plugins.page +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - Die Funktionalität von Shotwell dynamisch erweitern. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Erweiterungen -

Shotwell bietet Unterstützung für Erweiterungen in Form von zusätzlichen Bibliotheken, mit deren Hilfe zusätzliche Funktionen wie beispielsweise neue Veröffentlichungsplattformen oder neue Diaschau-Übergänge bereit gestellt werden.

- -

Öffnen Sie BearbeitenEinstellungen, um eine Liste aller installierten Erweiterungen zu sehen. Klicken Sie im Fenster Einstellungen auf den Reiter Erweiterungen. Es wird daraufhin eine Liste aller derzeit installierten Erweiterungen angezeigt. Neben jeder Erweiterung befindet sich ein Ankreuzfeld, mit dessen Hilfe Sie die Erweiterung ein- und ausschalten können.

- -

Eine vollständige Dokumentation zum Entwickeln neuer Erweiterungen findet sich unter http://redmine.yorba.org/projects/shotwell/wiki/ShotwellArchWritingPlugins

- -
diff --git a/help/de/raw.page b/help/de/raw.page deleted file mode 100644 index c69e1dd..0000000 --- a/help/de/raw.page +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - Weiteres zur RAW-Unterstützung in Shotwell. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - RAW-Unterstützung in Shotwell -

Einige Kameras können die direkt vom Sensor ausgelesenen Daten mit zusätzlichen Farbinformationen versehen und in eine Datei schreiben. Diese werden allgemein als »RAW«-Dateien bezeichnet. Shotwell unterstützt diese Dateien.

- -

Weil RAW-Fotos normalerweise nicht direkt dargestellt werden können, müssen diese zunächst entwickelt werden. Das heißt, die zusätzlichen Informationen werden interpretiert und für die Anzeige vorbereitet. Die meisten Kameras betten bei einer Aufnahme ein JPEG in einer RAW-Datei ein oder erstellen eine zusätzliche JPEG-Datei. Letzteres Verfahren wird in diesem Dokument als RAW+JPEG bezeichnet. Wenn Sie ein RAW+JPEG-Paar importieren, wird Shotwell beide gemeinsam behalten und als ein Objekt in Ihrer Bibliothek führen.

- -

Beim Import einer RAW-Datei können Sie wählen, ob Sie das intern in der Kamera entwickelte JPEG-Bild oder das von Shotwell erzeugte Bild verwenden wollen. Wählen Sie hierzu FotosEntwickler im Menü.

- - -

Ein Wechsel zwischen Entwicklern führt zum Verlust aller Änderungen, die an einem Foto gemacht wurden.

-
- -

Um ein RAW-Bild zu veröffentlichen oder in einer anderen Software zu verwenden, muss es meist zunächst exportiert werden. Shotwell kann Ihre Fotos in die Formate JPEG, PNG, TIFF oder BMP exportieren. Beim Veröffentlichen wird intern eine JPEG-Datei exportiert und diese veröffentlicht.

- -
diff --git a/help/de/running.page b/help/de/running.page deleted file mode 100644 index ba8307b..0000000 --- a/help/de/running.page +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - So finden Sie Shotwell im Anwendungsmenü oder lassen Sie es automatisch starten, wenn eine Kamera angeschlossen wird. - - - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Shotwell ausführen - -

Sobald Shotwell installiert wurde, ist es in Ihrem Anwendungs-Menü verfügbar unter Grafik oder Fotografie.

- -

Shotwell kann automatisch gestartet werden, sobald eine Kamera an Ihren Rechner angeschlossen wird. Um zu prüfen, ob Ihr System so eingerichtet ist, dass Shotwell gestartet wird, sobald eine Kamera erkannt wird, öffnen Sie BearbeitenEinstellungen in der Dateiverwaltung Nautilus und wählen Sie den Reiter Medien. Dort finden Sie ein Auswahlfeld namens Fotos:, wo Sie Shotwell als die Vorgabe-Anwendung für Fotos festlegen.

- - -

Shotwell kann auch direkt im Erstellungsordner ausgeführt werden. Dies ist jedoch nur zum Testen von Shotwell und für Entwickler empfohlen.

-
- -
diff --git a/help/de/share-background.page b/help/de/share-background.page deleted file mode 100644 index 04c5bd7..0000000 --- a/help/de/share-background.page +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - Das Hintergrundbild als ein Foto oder eine Diaschau von Fotos festlegen. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Ein Schreibtisch-Hintergrund oder eine Diaschau festlegen - -

Wählen Sie DateiAls Hintergrundbild festlegen, um ein einzelnes Foto als Schreibtisch-Hintergrund festzulegen.

- -

Sie können den Hintergrund auch als Diaschau aus Ihren Fotos darstellen lassen. Wählen Sie hierzu die Fotos für die Diaschau aus und wählen Sie DateiAls Hintergrundbild-Vorführung setzen …. Shotwell fragt Sie nach der Verzögerung für den Bildwechsel, die bis zu einen Tag betragen kann. Die Diaschau wird auch dann weitergeführt, wenn Shotwell nicht läuft.

- -
diff --git a/help/de/share-export.page b/help/de/share-export.page deleted file mode 100644 index d97fea2..0000000 --- a/help/de/share-export.page +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - So kopieren Sie Fotos aus Shotwell heraus, um sie anderweitig abzulegen. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Fotos exportieren - -

Um Fotos aus Shotwell mittels Ziehen-und-Ablegen zu exportieren, ziehen Sie die Fotos aus Shotwell in das Fenster einer Dateiverwaltung oder auf Ihre Arbeitsfläche. Die neuen Dateien entsprechen dann einer Kopie der Fotos Ihrer Bibliothek in Originalgröße.

- -

Alternativ wählen Sie eine Fotogruppe und wählen Sie DateiExportieren oder drücken Sie UmschalttasteStrgE, um Fotos zu exportieren und dabei die Größe und Abmessung der Fotodateien zu bestimmen. Daraufhin erscheint ein Fenster mit mehreren Wahlmöglichkeiten:

- - -

Ein Format für den Export.

- -

Wählen Sie Unverändert, um Fotos im ursprünglichen Format ohne Veränderungen durch Shotwell zu exportieren. RAW-Fotos werden im ursprünglichen RAW-Format exportiert.

-

Wählen Sie Aktuell, um Fotos einschließlich aller in Shotwell gemachter Änderungen zu exportieren. RAW-Fotos werden im JPEG-Format exportiert, wenn sie diese in Shotwell bearbeitet haben, anderenfalls werden sie in ihren RAW-Format exportiert.

-

Alternativ wählen Sie ein bestimmtes Bildformat (JPEG, PNG, TIFF, BMP) für den Export. Alle in Shotwell getätigten Änderungen werden mit einbezogen und Shotwell wandelt die Fotos in das Zielformat um.

-
-
-

Die Bildqualität beim Exportieren (gering, mittel, hoch oder maximal).

-

Eine Skalierungsbeschränkung (sie legt fest, wie Shotwell entscheidet die Fotos zu skalieren) und die gewünschte Pixelgröße.

- -Ursprüngliche Größe

Das Bild wird ohne Skalierung exportiert

-Längste Seite

Die längste Seite des Bildes wird anhand der angegebenen Pixel skaliert und die andere Seite entsprechend dem Seitenverhältnis.

-Breite

Die Bildbreite wird anhand der angegebenen Pixel skaliert und die Bildhöhe entsprechend dem Seitenverhältnis. Dies entspricht der Längsten Seite bei Querformaten.

-Höhe

Die Bildhöhe wird anhand der angegebenen Pixel skaliert und die Bildbreite entsprechend dem Seitenverhältnis. Dies entspricht der Längsten Seite bei Hochformaten.

-
-
-

Legt fest, ob Metadaten wie beispielsweise Markierungen oder Bewertungen exportiert werden sollen. Im Falle von Metadaten für Ortsdienste oder anderweitiger privater Markierungen kann dies dabei helfen, Ihre Privatsphäre zu schützen.

-
- -

Legt fest, ob Shotwell Markierungen, Titel und andere Metadaten in die neuen Dateien schreiben soll.

- -
diff --git a/help/de/share-print.page b/help/de/share-print.page deleted file mode 100644 index cd20522..0000000 --- a/help/de/share-print.page +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - Klicken Sie auf DateiDrucken. Wählen Sie für weitere Druckeinstellungen den Reiter Seite einrichten im Dialog Drucken. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Drucken - -

Um ein Foto zu drucken, wählen Sie es aus und wählen Sie anschließend DateiDrucken.

- -

Shotwell kann mehrere Fotos auf eine Seite drucken. Wählen Sie dazu mehrere Bilder und dann DateiDrucken und anschließend im Dialog Drucken den Reiter Bildeinstellungen. Wählen Sie unter Bildeinstellungen eine der Einstellungen für mehrere Bilder pro Seite unter Automatische Größe.

- -

Zum Festlegen der Formatierung, der Papiergröße und der Ausrichtung verwenden Sie vor dem Drucken den Reiter Seite einrichten im Dialog Drucken.

-
diff --git a/help/de/share-send.page b/help/de/share-send.page deleted file mode 100644 index 5a02799..0000000 --- a/help/de/share-send.page +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - So verschicken Sie Fotos per E-Mail, Sofortnachricht oder auf andere Weisen. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Fotos versenden - -

Shotwell versendet Fotos mit dem Mechanismus Senden an der GNOME Arbeitsumgebung. So können Sie Fotos per E-Mail, Sofortnachricht oder auf andere Weisen verschicken.

-

Wählen Sie Fotos zum Verschicken in Shotwell aus und wählen Sie dann DateiSenden an, oder klicken Sie mit der rechten Maustaste auf das Foto und wählen Sie Senden an im Kontextmenü. Daraufhin erscheint der Dialog Senden an, wo Sie ein Verfahren zum Verschicken der Fotos (wie zum Beispiel E-Mail oder Sofortnachricht) und einen Empfänger festlegen. Optional können Sie Dateien komprimieren und versenden.

- -
diff --git a/help/de/share-slideshow.page b/help/de/share-slideshow.page deleted file mode 100644 index 7a1e4b2..0000000 --- a/help/de/share-slideshow.page +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - Eine Bildvorführung Ihrer Fotos ansehen. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Bildvorführungen - -

Um eine Diaschau einer Sammlung in Shotwell zu sehen, wählen Sie diese Sammlung und dann AnsichtDiaschau oder drücken Sie F5.

- -

Sie können folgende Einstellungen während einer Diaschau anpassen:

- - -

Die Darstellungsdauer eines Bildes: 1 - 30 Sekunden

-

Sie können verschiedene Übergangseffekte wählen.

-

Die Zeitdauer für jeden Übergangseffekt: 0,1 - 1 Sekunde

-
-
diff --git a/help/de/share-upload.page b/help/de/share-upload.page deleted file mode 100644 index 1681951..0000000 --- a/help/de/share-upload.page +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - So veröffentlichen Sie Fotos bei Facebook, Flickr, Picasa Webalben und anderen Seiten. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Ins Internet veröffentlichen - -

Mit Hilfe von Erweiterungen kann Shotwell Fotos und Videos bei den folgenden Diensten veröffentlichen. Jeder Dienst erfordert ein Benutzerkonto:

- - -

Facebook

-

Flickr

-

Picasa Webalben und Google+

-

YouTube (nur Videos)

-

YouTube (nur Videos)

-

Jede Internetseite, welche die Fotogalerie-Software Piwigo installiert hat (nur Fotos)

-
- -

Wählen Sie zum Veröffentlichen von gewählten Fotos einer Sammlung BearbeitenEinstellungen und dann den Reiter Erweiterungen zum Einschalten der Erweiterung für den Dienst, den Sie verwenden wollen. Wählen Sie anschließend DateiVeröffentlichen oder den Knopf Veröffentlichen in der Werkzeugleiste oder tippen Sie StrgUmschaltP. Daraufhin erscheint ein Fenster, in dem Sie den Dienst zur Veröffentlichung wählen. Sie müssen sich dann beim Dienst anmelden.

- -

Die Veröffentlichung auf Facebook erfordert es, der Anwendung »Shotwell Connect Facebook« verschiedene Rechte einzuräumen. Sie müssen diese Zugriffsrechte nur einmal gewähren, wenn Sie Shotwell zum ersten Mal mit Facebook verbinden.

-

Sie können Bilder nur mit höchstens den Zugriffsrechten veröffentlichen, die Sie der Shotwell Facebook-Anwendung gewährt haben.

- -

Ebenso erfordert es die Veröffentlichung auf Flickr, Shotwell Connect zu gestatten, auf Ihr Konto zuzugreifen.

- -

Wenn Sie über ein Google-Konto verfügen, aber die Picasa-Webalben noch nicht genutzt haben, müssen Sie sich zunächst in einem Browser bei Picasa anmelden, bevor Sie diesen Dienst zur Veröffentlichung nutzen können.

-
diff --git a/help/de/view-displaying.page b/help/de/view-displaying.page deleted file mode 100644 index 02ca27d..0000000 --- a/help/de/view-displaying.page +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - Erfahren Sie mehr über die verschiedenen Ansichtsmöglichkeiten Ihrer Fotos: Im Raster, im Hauptfenster oder Bildschirm füllend. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Fotos betrachten - -

Wenn Sie eine Sammlung in der Seitenleiste wählen, zeigt Shotwell alle Fotos der Sammlung im Hauptfenster an. Unten rechts befindet sich ein Schieberegler zur Anpassung der Größe der Vorschaubilder. Sie können ebenfalls die Größe der Vorschaubilder mit den Tasten + und - anpassen, oder indem Sie Strg gedrückt halten, während das Mausrad gedreht wird.

- -

Schauen Sie sich ein Foto im Vollbild an, indem Sie zweimal darauf klicken. Daraufhin wechseln Sie zu anderen Fotos Ihrer Sammlung mit den Tasten ← und →. Klicken Sie zweimal auf das Foto oder drücken Sie Esc, um zur Sammlung zurückzukehren.

- -

Beim Ansehen von Fotos im Vollbildmodus steuert der Regler in der Werkzeugleiste die Vergrößerung. Verschieben Sie das Foto, indem Sie die Maustaste gedrückt halten und die Maus bewegen. Sie können die Ansicht auch durch Drehen des Mausrads vergrößern und verkleinern, oder indem Sie die folgenden Tastenkürzel einsetzen: Strg0 für Vollansicht, Strg1 für 100% (1 Bildpunkt = 1 Bildschirmpunkt) und Strg2 für 200% (1 Bildpunkt = 2x2 Bildschirmpunkte).

- -

Shotwell kann Fotos auf dem gesamten Bildschirm darstellen. Wählen Sie dazu AnsichtBildschirmfüllend oder drücken Sie F11. Bewegen Sie den Mauszeiger unten auf den Bildschirm, um die Werkzeugleiste im Vollbildmodus einzublenden. Die Werkzeugleiste hat Knöpfe zum Blättern in der Sammlung, zum Anheften der Werkzeugleiste (so dass diese nicht mehr automatisch verborgen wird) und zum Verlassen des Vollbildmodus.

- -
-Videos ansehen -

Wenn Sie zweimal auf ein Video klicken, startet Shotwell ein externes Wiedergabeprogramm zum Abspielen. Es ist derzeit nicht möglich, ein Video im Vollbildmodus in Shotwell darzustellen oder das Video in Shotwell selbst anzuzeigen.

-
- -
diff --git a/help/de/view-information.page b/help/de/view-information.page deleted file mode 100644 index e4083a3..0000000 --- a/help/de/view-information.page +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - Sehen Sie sich weitere Details über Fotos an, wie das von der Kamera verwendete Belichtungsverfahren. - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Grundlegende und erweiterte Informationen - -

Das Teilfenster mit grundlegenden Informationen erscheint unten in der Seitenleiste und zeigt eine kurze Übersicht der von Ihnen gewählten Fotos. Wenn keine Fotos ausgewählt sind, wird eine Zusammenfassung der gesamten Sammlung angezeigt. Schalten Sie die Darstellung des Teilfensters mit AnsichtGrundlegende Informationen ein oder aus.

- -

Das schwebende Fenster »Erweiterte Informationen« zeigt weitere Informationen zu den gewählten Fotos. Mit AnsichtErweiterte Informationen oder StrgUmschalttasteX blenden Sie das Fenster ein oder aus.

- -
diff --git a/help/de/view-sidebar.page b/help/de/view-sidebar.page deleted file mode 100644 index 17fa1a6..0000000 --- a/help/de/view-sidebar.page +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - Die Seitenleiste links des Fensters zeigt verschiedene Ansichten Ihrer Bibliothek. - - - - - - - - - - - - - Mario Blättermann - mario.blaettermann@gmail.com - 2009, 2016-2017 - - - - Benjamin Steinwender - b@stbe.at - 2014-2015 - - - - Christian Kirbach - christian.kirbach@gmail.com - 2014, 2016, 2017 - - - - Die Seitenleiste - -

Die Seitenleiste links des Shotwell-Fensters zeigt verschiedene Ansichten Ihrer Bibliothek. Obwohl Sie eventuell das selbe Foto in mehreren Ansichten sehen, ist es tatsächlich nur einmal auf Ihrem System gespeichert.

- -

Die Ansicht Letzter Import zeigt die zuletzt importierten Fotos unabhängig von Ihrer Quelle wie F-Spot, Ihrer Kamera, einer Speicherkarte oder der Festplatte.

- -

Markiert listet alle zuvor markierten Fotos.

- -

Mit Gespeicherte Suchen sortieren Sie Ihre Bibliothek anhand von vielen verschiedenen Kriterien.

- -

Der Ordner Ereignisse listet alle Ereignisse Ihrer Bibliothek auf. Ein Ereignis ist eine Menge von Fotos, die ungefähr im gleichen Zeitraum aufgenommen wurden.

- -

Der Ordner Markierungen listet alle markierten Fotos auf. Fotos können mehrfach markiert sein. Klicken Sie auf den Namen einer Markierung in der Seitenleiste, um alle mit der entsprechenden Markierung zu sehen.

- -
diff --git a/help/el/edit-adjustments.page b/help/el/edit-adjustments.page deleted file mode 100644 index acb869d..0000000 --- a/help/el/edit-adjustments.page +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - Αλλαγή της έκθεσης, του κορεσμού, της απόχρωσης και των σκιών μιας φωτογραφίας. - - - - - Προσαρμογές χρώματος - -

Το πλήκτρο Ρύθμιση ανοίγει ένα αιωρούμενο παράθυρο με ένα ιστόγραμμα και ολισθητές για να ρυθμίσουν την έκθεση, τον κορεσμό, την απόχρωση, τη θερμοκρασία και τις σκιές μιας φωτογραφίας. Το ιστόγραμμα επίσης έχει ολισθητές που μειώνουν τα πάνω και κάτω κατώφλια έντασης της φωτογραφίας, επεκτείνοντας την αντίθεση της μεσαίας περιοχής.

- -

Το πλήκτρο Βελτίωση ρυθμίζει το ιστόγραμμα και τους ολισθητές σκιών για να βελτιώσουν την ποιότητα μιας φωτογραφίας.

- -

When the photo's colors and contrast are to your liking, press OK to save the changes. Reset will return the image to its original state. Cancel discards all changes you've made.

- -
- Τι κάνουν οι ρυθμίσεις χρώματος; - - - Έκθεση -

Αλλάζει τη φωτεινότητα κάνοντας τη φωτογραφία να φαίνεται ότι εκτέθηκε για μεγαλύτερο ή λιγότερο χρόνο. Χρησιμοποιήστε το για να διορθώσετε υποεκτεθειμένες ή υπερεκτεθειμένες φωτογραφίες.

-
- - Contrast -

Changes the contrast of a photo. Use it to correct flat-looking photos or photos where the difference between bright and dark spots seems to big.

-
- - Κορεσμός -

Αλλάζει τη ζωηρότητα των χρωμάτων. Αν η φωτογραφία φαίνεται γκρίζα και ξεθωριασμένη, δοκιμάστε να αυξήσετε τον κορεσμό. Αν τα χρώματα φαίνονται υπερβολικά έντονα, δοκιμάστε να τον μειώσετε.

-
- - Απόχρωση -

Αυτό χρωματίζει τη φωτογραφία με ένα χρώμα. Είναι χρήσιμη για διόρθωση φωτογραφιών που ελήφθησαν με εσφαλμένη ρύθμιση ισορροπίας λευκού, που τυπικά έχει μια αφύσικη απόχρωση χρώματος. Για παράδειγμα, οι φωτογραφίες που ελήφθησαν υπαίθρια με την λευκή ισορροπία ορισμένη σε "βολφράμιο" μπορεί να έχουν μια γαλάζια απόχρωση.

-
- - Θερμοκρασία -

Αλλάζει το πόσο "θερμή" ή "κρύα" φαίνεται η εικόνα. Χρησιμοποιήστε το για να κάνετε κρύα μειώνοντας τις σκηνές που φαίνονται πιο ζωντανές, για παράδειγμα.

-
- - Σκιές -

Αυτό κάνει σκιώδεις περιοχές να φαίνονται πιο ανοικτές. Χρησιμοποιήστε το για να κάνετε την λεπτομέρεια πιο ορατή αν καλύπτεται από τη σκοτεινότητα μιας σκιάς.

-
- - Κατώφλι έντασης (ολισθητές στο ιστόγραμμα) -

Αυτοί οι ολισθητές αλλάζουν το πόσο ανοικτό είναι το πιο φωτεινό λευκό και πόσο σκούρο το πιο σκοτεινό μαύρο. Χρησιμοποιήστε τα για να αλλάξετε την αντίθεση της φωτογραφίας. Οι φωτογραφίες που φαίνονται ξεθωριασμένες πρέπει να επωφελούνται ιδιαίτερα από την αλλαγή αυτών των ρυθμίσεων.

-
-
-
- -
diff --git a/help/el/edit-crop.page b/help/el/edit-crop.page deleted file mode 100644 index 3b5bd57..0000000 --- a/help/el/edit-crop.page +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - Βελτιώστε τη σύνθεση μιας φωτογραφίας περικόπτοντας τμήματά της. - - - - - Περικοπή - -

Για να μειώσετε την περιοχή μιας φωτογραφίας και να συγκεντρώσετε την προσοχή του θεατή σε ένα μικρότερο τμήμα της, χρησιμοποιήστε το εργαλείο περικοπής. Το εργαλείο περικοπής είναι διαθέσιμο μόνο σε πλήρες παράθυρο ή κατάσταση πλήρους οθόνης.

- - - -

Διπλοπατήστε μια φωτογραφία για να μπείτε στην κατάσταση πλήρους παραθύρου, έπειτα πατήστε το πλήκτρο Περικοπή στην εργαλειοθήκη.

-
- -

Ένα λευκό πλαίσιο, το ορθογώνιο περικοπής, θα εμφανιστεί πάνω από τη φωτογραφία. Το πιο φωτεινό τμήμα της φωτογραφίας μέσα στο ορθογώνιο περικοπής απεικονίζει πώς θα μοιάζει η φωτογραφία όταν την περικόψετε.

-
- -

Αν τοποθετήσετε τον δρομέα σας στη μέση του πλαισίου, μπορείτε να μετακινήσετε το πλαίσιο ολόγυρα. Αν σύρετε τις άκρες του πλαισίου, μπορείτε να ρυθμίσετε το μέγεθός της. Καθώς μετακινείτε και ρυθμίζετε το πλαίσιο περικοπής, θα δείτε τέσσερις γραμμές να εμφανίζονται μέσα της, όπως ένα πλέγμα τρίλιζας. Αυτές είναι γραμμές του κανόνα των τρίτων.

-

Μπορείτε επίσης να περιορίσετε το πλαίσιο περικοπής σε ένα από τα πολλά συνηθισμένα μεγέθη. Επιλέξτε ένα μέγεθος από τον πτυσσόμενο κατάλογο που ταιριάζει τις ανάγκες σας. Αν πατήσετε το κουμπί αναστροφής δίπλα του, ο προσανατολισμός του περιορισμού θα αλλάξει (από οριζόντιο σε κάθετο).

-
- -

When you're happy with your crop outline, apply it by pressing the Crop button. Shotwell will display the cropped photo.

-
- -

Αν αλλάξετε γνώμη, πατήστε το πλήκτρο Περικοπή ξανά και μικρορυθμίστε την περικοπή.

-

Αν πατήσετε Άκυρο αντί για Εφαρμογή, το Shotwell θα επιστρέψει στις διαστάσεις πριν την περικοπή της φωτογραφίας.

-
-
- -
- Τι είναι ο κανόνας των τρίτων; -

Ο κανόνας των τρίτων σας βοηθά να επιλέξετε μια καλύτερη σύνθεση για μια φωτογραφία.

-

Θεωρήστε ότι η σκηνή διαιρείται σε ένα πλέγμα 3x3 από δύο ισαπέχουσες κάθετες γραμμές και δύο ισαπέχουσες οριζόντιες γραμμές. Σύμφωνα με τον κανόνα, είναι πιο πιθανό να πάρετε μια καλύτερη σύνθεση αν στοιχίσετε τα μεγάλα γνωρίσματα (όπως τον ορίζοντα, ή το σώμα του ατόμου) με μια από αυτές τις γραμμές. Προσέχοντας τον τρόπο που τα γνωρίσματα ρέουν από το ένα μέρος του πλέγματος στο άλλο μπορεί επίσης να βοηθήσει.

-

Η περικοπή μιας φωτογραφίας έτσι ώστε να συμφωνεί με τον κανόνα των τρίτων καταλήγει συχνά σε μια περισσότερο ελκυστική οπτικά εικόνα.

- -

Περικοπή μιας φωτογραφίας, χρησιμοποιώντας τον "κανόνα των τρίτων" για να βελτιώσετε τη σύνθεση.

-
-
-
diff --git a/help/el/edit-date-time.page b/help/el/edit-date-time.page deleted file mode 100644 index d427509..0000000 --- a/help/el/edit-date-time.page +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - Change the date and time of photos if those details are incorrect. - - - - - Adjust the date and time of photos - -

To adjust the date and time of photos, select the photos you would like to adjust, choose PhotosAdjust Date and Time... and select a new date and time.

- -

Αν αλλάζετε την ημερομηνία και την ώρα πολλών φωτογραφιών μονομιάς, μπορείτε να επιλέξετε να μετατοπίσετε όλες τις φωτογραφίες κατά τον ίδιο χρόνο ή να ορίσετε όλες τις φωτογραφίες στην ίδια ώρα.

- -

By default, the date and time are only changed inside Shotwell. You can also choose to modify the date and time in the original file, but this cannot be undone once you exit Shotwell.

- -
diff --git a/help/el/edit-enhance.page b/help/el/edit-enhance.page deleted file mode 100644 index 82f4e60..0000000 --- a/help/el/edit-enhance.page +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - Αφήστε το Shotwell να βελτιώσει τη φωτεινότητα και την αντίθεση μιας φωτογραφίας αυτόματα. - - - - - - - Αυτόματη βελτίωση - -

Πατώντας το πλήκτρο Βελτίωση είναι ένας γρήγορος τρόπος για αυτόματη ρύθμιση της φωτεινότητας και της αντίθεσης της φωτογραφίας σας. Θα σας δώσει συχνά μια φωτογραφία με τη σωστή έκθεση. Μπορείτε επίσης να την χρησιμοποιήσετε ως αρχικό σημείο και έπειτα να βελτιώσετε τις ρυθμίσεις πατώντας στο πλήκτρο Προσαρμογή.

-
diff --git a/help/el/edit-external.page b/help/el/edit-external.page deleted file mode 100644 index c83aac4..0000000 --- a/help/el/edit-external.page +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - Χρησιμοποιήστε ένα διαφορετικό πρόγραμμα για να επεξεργαστείτε μια φωτογραφία. - - - - - Επεξεργασία φωτογραφιών με εξωτερικό πρόγραμμα - -

Μπορεί να θέλετε να χρησιμοποιήσετε έναν εξωτερικό επεξεργαστή για να κάνει επιπρόσθετη δουλειά σε μια φωτογραφία. Αν εγκατασταθεί, τα GIMP και UFRaw είναι οι προεπιλεγμένοι εξωτερικοί επεξεργαστές για φωτογραφίες και επεξεργασία RAW, αντίστοιχα. Αν αυτά τα προγράμματα δεν είναι εγκατεστημένα, πρέπει να επιλέξετε τους αγαπημένους σας επεξεργαστές επιλέγοντας ΕπεξεργασίαΠροτιμήσεις και επιλέγοντας επεξεργαστές από τα πτυσσόμενα μενού των εγκατεστημένων εφαρμογών.

- -

- Once your editors have been set, select a photo and choose Photos - Open With External Editor to open the photo with the external editor. - Likewise, if the original photo is a RAW file, select PhotosOpen - With RAW Editor to edit the RAW file directly with the set RAW editor. -

- -

Όταν ολοκληρώσετε τις επεξεργασίες σας και αποθηκεύσετε το αρχείο, το Shotwell θα αναγνωρίσει τις αλλαγές και θα ενημερώσει τη φωτογραφία. Όταν έχουν γίνει εξωτερικές επεξεργασίες, πατήστε και κρατήστε πατημένο το πλήκτρο Shift σε προβολή πλήρους παραθύρου για να εμφανίσετε την αρχική φωτογραφία αντί για την εξωτερικά επεξεργασμένη.

- -

Η επαναφορά στην αρχική θα σβήσει κάθε εξωτερική επεξεργασία.

- - -

Αν επεξεργαστείτε εξωτερικά μια φωτογραφία RAW και αποθηκεύσετε το αποτέλεσμα σε μια άλλη εικόνα, όπως JPEG ή PNG, το Shotwell δεν μπορεί να προσδιορίσει αυτόματα ότι η αρχική RAW και η νέα εικόνα πρέπει να συζευχθούν.

- -

Αν θέλετε να δουλέψετε μέσα στην τελική εικόνα μες το Shotwell, θα χρειαστείτε να την εισάγετε οι ίδιοι.

-
-
diff --git a/help/el/edit-nondestructive.page b/help/el/edit-nondestructive.page deleted file mode 100644 index aa6e1b3..0000000 --- a/help/el/edit-nondestructive.page +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - Το Shotwell είναι ένας μη καταστροφικός επεξεργαστής φωτογραφίας - δεν τροποποιεί τις αρχικές σας φωτογραφίες. - - - - - Τι συμβαίνει στην αρχική φωτογραφία όταν επεξεργάζεται μια φωτογραφία; - -

Το Shotwell είναι ένας μη καταστροφικός επεξεργαστής φωτογραφίας. Δεν τροποποιεί τις αρχικές σας φωτογραφίες. Δηλαδή, αν περικόψετε μια φωτογραφία ή ρυθμίσετε τα χρώματά της, το αρχείο φωτογραφίας στον δίσκο παραμένει ανέπαφο. Το Shotwell αποθηκεύει τις επεξεργασίες σας σε μια βάση δεδομένων και τις εφαρμόζει απευθείας όταν χρειάζεται. Αυτό σημαίνει ότι μπορείτε να αναιρέσετε οποιεσδήποτε αλλαγές κάνετε σε μια φωτογραφία.

- -

Αν θέλετε να δείτε πώς ήταν μια φωτογραφία πριν τις τροποποιήσεις σας, πατήστε το πλήκτρο Shift. Η αρχική φωτογραφία θα εμφανιστεί όσο κρατάτε πατημένο το πλήκτρο.

- -

Σημειώστε ότι το Shotwell μπορεί προαιρετικά να γράψει μεταδεδομένα (όπως ετικέτες και τίτλους) σε αρχεία φωτογραφίας. Για περισσότερες πληροφορίες, δείτε την ενότητα Αρχεία φωτογραφιών.

- -
diff --git a/help/el/edit-redeye.page b/help/el/edit-redeye.page deleted file mode 100644 index 0260478..0000000 --- a/help/el/edit-redeye.page +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - Διορθώστε τις φωτογραφίες όπου οι άνθρωποι έχουν κόκκινα μάτια λόγω της αναλαμπής της φωτογραφικής μηχανής. - - - - - Αφαίρεση κόκκινου ματιού - -

Το κόκκινο μάτι συμβαίνει όταν η αναλαμπή της φωτογραφικής μηχανής ανανακλά την κόρη του ματιού. Για να το εξουδετερώσετε αυτό σε μια φωτογραφία, χρησιμοποιήστε το εργαλείο κόκκινου ματιού.

- - -

Πατήστε Κόκκινο μάτι. Θα εμφανιστεί ένας κύκλος στη φωτογραφία.

-
- -

Μεταφέρτε τον κύκλο πάνω από την επηρεαζόμενη κόρη, ρυθμίστε το μέγεθός της με το στοιχείο ελέγχου ολισθητή και πατήστε Εφαρμογή. Η ερυθρότητα θα αφαιρεθεί.

-
- -

Επαναλάβετε αυτήν τη διεργασία για όλες τις κόκκινες κόρες στην φωτογραφία σας. Πατήστε κλείσιμο όταν τελειώσετε.

-
-
-
diff --git a/help/el/edit-rotate.page b/help/el/edit-rotate.page deleted file mode 100644 index 983e0f7..0000000 --- a/help/el/edit-rotate.page +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - Πατήστε το πλήκτρο Περιστροφή, ή επιλέξτε μια από τις εντολές στο μενού Φωτογραφία. - - - - - Περιστροφή ή αναστροφή φωτογραφίας - -

Μπορείτε να περιστρέψετε τις φωτογραφίες σας αριστερά και δεξιά (δεξιόστροφα και αριστερόστροφα) με το πλήκτρο Περιστροφή στην εργαλειοθήκη των περισσότερων προβολών. Μπορείτε επίσης να κάνετε μια κατοπτρική εικόνα κάθε φωτογραφίας.

- -

Για να περιστρέψετε δεξιά, πατήστε το πλήκτρο Περιστροφή. Για να περιστρέψετε αριστερά, πατήστε και κρατήστε πατημένο το πλήκτρο Ctrl και έπειτα πατήστε το πλήκτρο. Και οι δυο εντολές είναι διαθέσιμες επίσης στο μενού Φωτογραφίες. Εναλλακτικά, χρησιμοποιήστε τις παρακάτω συντομεύσεις πληκτρολογίου:

- -

αριστερή περιστροφή: ShiftCtrlR ή [

-

δεξιά περιστροφή: CtrlR ή ]

-
-

Για να δημιουργήσετε μια κατοπτρική εικόνα μιας φωτογραφίας, χρησιμοποιήστε την εντολή Οριζόντια αναστροφή στο μενού Φωτογραφίες. Για να αναστρέψετε μια εικόνα κάθετα, χρησιμοποιήστε την εντολή Κάθετη αναστροφή στο ίδιο μενού.

- - -

Αν επιλέξετε περισσότερες από μία εικόνες, μπορείτε να τις περιστρέψετε όλες ταυτόχρονα.

-
- -
diff --git a/help/el/edit-straighten.page b/help/el/edit-straighten.page deleted file mode 100644 index 2cb55ef..0000000 --- a/help/el/edit-straighten.page +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - Ευθυγράμμιση μιας φωτογραφίας έτσι ώστε ο ορίζοντας της να εμφανίζεται επίπεδος. - - - - - Ευθυγράμμιση φωτογραφιών - -

Τα εργαλεία ευθυγράμμισης επιτρέπουν την εξίσωση και ευθυγράμμιση των φωτογραφιών. Το εργαλείο ευθυγράμμισης είναι διαθέσιμο μόνο σε πλήρες παράθυρο ή σε κατάσταση πλήρους οθόνης.

- - - -

Πατήστε Ευθυγράμμιση. Ο ολισθητής ευθυγράμμισης θα εμφανιστεί. Εναλλακτικά, χρησιμοποιήστε τη συντόμευση πληκτρολογίου CtrlA.

-
- -

Μεταφέρτε τον ολισθητή για να πετύχετε τον επιθυμητό βαθμό ευθυγράμμισης.

-
- -

Press Straighten when finished.

-
-
- -
diff --git a/help/el/edit-undo.page b/help/el/edit-undo.page deleted file mode 100644 index 4ba1b9d..0000000 --- a/help/el/edit-undo.page +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - Επιστροφή μιας φωτογραφίας στην αρχική ανεπεξέργαστη μορφή. - - - - - - - Αναίρεση αλλαγών - -

Επειδή το Shotwell είναι ένας μη καταστροφικός επεξεργαστής φωτογραφίας, μπορείτε να αναιρέσετε οποιεσδήποτε αλλαγές κάνετε σε μια φωτογραφία.

- -

Αν θέλετε να δείτε πώς ήταν μια φωτογραφία πριν τις τροποποιήσεις σας, πατήστε το πλήκτρο Shift. Η αρχική φωτογραφία θα εμφανιστεί όσο κρατάτε πατημένο το πλήκτρο.

- -

Για να αναιρέσετε πλήρως όλες τις αλλαγές που έχετε κάνει σε μια φωτογραφία, πατήστε ΦωτογραφίεςΕπαναφορά στο αρχικό. Η μόνη εξαίρεση είναι ότι οι ρυθμίσεις ώρας και ημερομηνίας δεν θα μετατραπούν.

- -
diff --git a/help/el/el.stamp b/help/el/el.stamp deleted file mode 100644 index e69de29..0000000 diff --git a/help/el/formats.page b/help/el/formats.page deleted file mode 100644 index 6944c38..0000000 --- a/help/el/formats.page +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - Το Shotwell υποστηρίζει αρχεία φωτογραφίας JPEG, PNG, TIFF, BMP και RAW καθώς και αρχεία βίντεο. - - - - - Υποστηριζόμενες μορφές φωτογραφιών και βίντεο - -

Shotwell supports JPEG, PNG, TIFF, BMP and RAW photo files. Shotwell does not yet support other graphics format such as GIF.

- -

Η υποστήριξη της μορφής RAW του Shotwell είναι προς το παρόν περιορισμένη. Όταν προβάλετε μια φωτογραφία RAW, στην πραγματικότητα προβάλετε μια JPEG που παράγεται από τη φωτογραφία RAW, όχι την ίδια την εικόνα RAW. Επιπρόσθετα, η διοχέτευση επεξεργασίας RAW δεν είναι πλήρως 16-δυαδικών - μπορείτε μόνο να εξάγετε επεξεργασμένες φωτογραφίες ως αρχεία 8 δυαδικών. Όλες οι υποστηριζόμενες μορφές μπορούν να χρησιμοποιηθούν για εξαγωγή (JPEG, PNG, TIFF, BMP).

- -

For more information about RAW-format photos in Shotwell, please see -the RAW section. -

- -

Το Shotwell υποστηρίζει επίσης αρχεία βίντεο σε οποιαδήποτε υποστηριζόμενη μορφή από τη βιβλιοθήκη πολυμέσων GStreamer στο σύστημα όπου εκτελείται το Shotwell. Αυτό περιλαμβάνει τυπικά τις παρακάτω μορφές μεταξύ άλλων:

- -

Μορφές περιέκτη: Ogg, QuickTime, MP4, AVI.

-

Κωδικοποιητές: Theora, Quicktime, MPEG-4, Motion JPEG. Σημειώστε ότι κάποια λειτουργικά συστήματα μπορεί να μην περιλαμβάνουν όλους τους καταχωρισμένους κωδικοποιητές εδώ λόγω νομικών περιορισμών ή αδειοδότησης.

-
- -

Το Shotwell υποστηρίζει και φωτογραφίες και βίντεο, αλλά για απλότητα, αυτή η τεκμηρίωση χρησιμοποιεί απλά τον όρο "φωτογραφίες" στις περισσότερες τοποθεσίες. Πολλές λειτουργίες στο Shotwell εφαρμόζονται και στις φωτογραφίες και στα βίντεο. Ειδικά, τα συμβάντα, η προσθήκη σημαίας, η αξιολόγηση, οι ετικέτες και η δημοσίευση δουλεύουν και για φωτογραφίες και για βίντεο.

- -
diff --git a/help/el/import-camera.page b/help/el/import-camera.page deleted file mode 100644 index 34fc5c7..0000000 --- a/help/el/import-camera.page +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - Αντιγραφή φωτογραφιών από μια ψηφιακή φωτογραφική μηχανή. - - - - - Εισαγωγή από φωτογραφική μηχανή - -

Για να εισάγετε φωτογραφίες από μια ψηφιακή κάμερα:

- - - -

Συνδέστε τη φωτογραφική μηχανή στον υπολογιστή σας και ανοίξτε την. Το Shotwell θα την αναγνωρίσει και θα την καταχωρίσει στην πλευρική στήλη.

-
- -

Επιλέξτε τη φωτογραφική μηχανή στην πλευρική στήλη. Οι προεπισκοπήσεις κάθε φωτογραφίας στη φωτογραφική μηχανή θα εμφανιστούν.

-
- -

Αν θέλετε, μπορείτε να επιλέξετε ένα σύνολο ειδικών φωτογραφιών για εισαγωγή. Για να το κάνετε αυτό, κρατήστε πατημένο το πλήκτρο Ctrl και πατήστε για να επιλέξετε τις μεμονωμένες φωτογραφίες. Μπορείτε να κρατήσετε πατημένο το Shift και να πατήσετε να επιλέξετε μια περιοχή φωτογραφιών επίσης.

-
- -

Πατήστε ή Εισαγωγή επιλεγμένης ή Εισαγωγή όλων. Οι φωτογραφίες θα αντιγραφούν από τη φωτογραφική μηχανή και θα αποθηκευτούν στον υπολογιστή σας.

-
-
- -

Όταν ολοκληρωθεί η εισαγωγή, μπορείτε να ανοίξετε την προβολή Τελευταία εισαγωγή (στην πλευρική στήλη) για να δείτε όλες τις φωτογραφίες που εισήχθησαν. Ο κατάλογος συμβάντων (επίσης στην πλευρική στήλη) θα εμφανίσει τις νέες φωτογραφίες, οργανωμένες κατά ημερομηνία.

-
diff --git a/help/el/import-file.page b/help/el/import-file.page deleted file mode 100644 index 874c43a..0000000 --- a/help/el/import-file.page +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Για να εισάγετε φωτογραφίες που είναι ήδη αποθηκευμένες στον υπολογιστή σας. - - - - - Εισαγωγή από τον σκληρό δίσκο σας - -

Για να εισάγετε αρχεία φωτογραφιών από τον σκληρό δίσκο σας στο Shotwell, μεταφέρτε τα απλά από τον περιηγητή αρχείων σας στο παράθυρο Shotwell.

- -

Alternatively, click FileImport From Folder... and select the folder containing the photos you want to import. If you do not want Shotwell to recurse into subfolders while importing, you can uncheck the Recurse Into Subfolders checkbox on the bottom of the file dialog.

- -

Το Shotwell θα ρωτήσει αν θέλετε να αντιγράψετε τα αρχεία φωτογραφίας στον φάκελο βιβλιοθήκης (συνήθως αυτός είναι ο φάκελος Pictures στον προσωπικό σας κατάλογο) ή να τα εισάγετε επί τόπου χωρίς αντιγραφή των αρχείων.

- -

Αν κρατάτε πατημένο το Ctrl κατά τη μεταφορά των φωτογραφιών, το Shotwell θα αντιγράψει τις φωτογραφίες στον φάκελο βιβλιοθήκης χωρίς ειδοποίηση. Παρόμοια, αν κρατάτε πατημένα τα CtrlShift κατά τη μεταφορά φωτογραφιών, το Shotwell θα εισάγει τις φωτογραφίες χωρίς να τις αντιγράψει.

- -

Αφού συμπληρωθεί η εισαγωγή, μπορείτε να επιλέξετε Τελευταία εισαγωγή στην πλευρική στήλη για να δείτε όλες τις φωτογραφίες εισηγμένες με επιτυχία. Ο κατάλογος συμβάντων θα εμφανίσει επίσης νέες καταχωρίσεις για τις ημερομηνίες που αντιστοιχούν στις εισηγμένες φωτογραφίες.

- -
diff --git a/help/el/import-memorycard.page b/help/el/import-memorycard.page deleted file mode 100644 index 55a42f2..0000000 --- a/help/el/import-memorycard.page +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - Εισαγωγή φωτογραφιών από κάρτα μνήμης ψηφιακής φωτογραφικής μηχανής. - - - - - Εισαγωγή από μια κάρτα μνήμης - -

Για να εισάγετε φωτογραφίες από μια κάρτα μνήμης φωτογραφικής μηχανής:

- - - -

Βάλτε την κάρτα στον αναγνώστη καρτών σας. Βεβαιωθείτε ότι ο αναγνώστης καρτών είναι συνδεμένος με τον υπολογιστή και ενεργός.

-
- -

Ο αναγνώστης καρτών και η κάρτα πρέπει να ανιχνευτούν αυτόματα.

-
- -

Follow the instructions for importing photos from your hard disk. If you click FileImport From Folder..., the memory card should be visible as a folder in the side bar of the file selection window.

-
-
- -

Το Shotwell μπορεί να εισάγει φωτογραφίες από κάθε κάρτα μνήμης που είναι συμβατή με τον αναγνώστη της κάρτας σας.

- -

Αν η κάρτα δεν έχει αναγνωριστεί αυτόματα, ο αναγνώστης της κάρτας σας μπορεί να μην έχει αναγνωριστεί. Δοκιμάστε να την αποσυνδέσετε και έπειτα συνδέστε την πάλι. Αν αυτό δεν δουλέψει, θα πρέπει να μπορείτε ακόμα να εισάγετε φωτογραφίες συνδέοντας την φωτογραφική μηχανή σας άμεσα με τον υπολογιστή, όμως.

- -
diff --git a/help/el/index.page b/help/el/index.page deleted file mode 100644 index 8bcf8ff..0000000 --- a/help/el/index.page +++ /dev/null @@ -1,46 +0,0 @@ - - - - - Shotwell - - Jim Nelson - jim@yorba.org - Allison Barlow - allison@yorba.org - Robert Ancell - robert.ancell@canonical.com - Peter Smith - pdo.smith@gmail.com - Phil Bull - philbull@gmail.com - - - - - <media type="image" src="figures/shotwell_logo.png"/>Διαχειριστής φωτογραφιών Shotwell - -
- Εισαγωγή φωτογραφιών -
- -
- Προβολή φωτογραφιών -
- -
- Οργάνωση φωτογραφιών -
- -
- Επεξεργασία φωτογραφιών -
- -
- Μερισμός φωτογραφιών -
- -
- Άλλα χαρακτηριστικά -
-
diff --git a/help/el/organize-event.page b/help/el/organize-event.page deleted file mode 100644 index 0d57479..0000000 --- a/help/el/organize-event.page +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - Ομαδοποιήστε μαζί τις φωτογραφίες που ελήφθησαν ταυτόχρονα. Μάθετε πώς να μετονομάσετε, να συγχωνεύσετε και να ταξινομήσετε συμβάντα. - - - - - Συμβάντα - -

Ένα συμβάν είναι μια ομάδα φωτογραφιών που ελήφθησαν περίπου την ίδια ώρα. Όταν εισάγετε φωτογραφίες, το Shotwell ελέγχει πότε ελήφθη κάθε φωτογραφία. Έπειτα ομαδοποιεί τις φωτογραφίες σε συμβάντα.

- -

Επιλέξτε Συμβάντα από την πλευρική στήλη για να δείτε τις φωτογραφίες σας οργανωμένες κατά ημερομηνία. Αν επιλέξετε έναν μήνα ή έτος από την πλευρική στήλη, θα εμφανιστεί ένας κατάλογος συμβάντων στο κυρίως παράθυρο. Διπλοπατήστε όλες τις φωτογραφίες που ελήφθησαν περίπου την ίδια ώρα.

- -

Αν μια φωτογραφία δεν έχει ενσωματωμένες πληροφορίες ημερομηνίας/χρόνου, τότε το Shotwell δεν μπορεί να την βάλει αυτόματα σε κανένα συμβάν. Σε αυτήν την περίπτωση η φωτογραφία θα εμφανιστεί στην προβολή Κανένα συμβάν προσβάσιμη από την πλευρική στήλη. Μπορείτε ακόμα να μετακινήσετε την φωτογραφία σε οποιοδήποτε συμβάν θέλετε όπως περιγράφεται παρακάτω.

- -
- Μετονομασία συμβάντων - -

To give an event a name rather than referring to it by its date, select the event, click EventsRename Event... and enter a new name. Another way of renaming an event is to double-click its name in the sidebar; type a new name and then press Enter.

-
- -
- Μετακίνηση φωτογραφιών μεταξύ συμβάντων - -

Αν και οι φωτογραφίες είναι αρχικά ομαδοποιημένες σε συμβάντα με την ημερομηνία τους, μπορείτε να μετακινήσετε φωτογραφίες μεταξύ συμβάντων. Για να το κάνετε αυτό, μεταφέρτε κάθε φωτογραφία στην πλευρική στήλη και αποθέστε την σε ένα συμβάν.

-
- -
- Δημιουργία και συγχώνευση συμβάντων -

Για να δημιουργήσετε ένα νέο συμβάν, επιλέξτε τις φωτογραφίες που θα θέλατε στο νέο συμβάν και πατήστε ΣυμβάνταΝέο συμβάν.

-

Για να συγχωνεύσετε συμβάντα, επιλέξτε Συμβάντα από την πλευρική στήλη, έπειτα, ενώ κρατάτε πατημένο το Ctrl πατήστε στα συμβάντα που θέλετε να συγχωνεύσετε στην περιοχή του κυρίως παραθύρου. Τελικά, πατήστε ΣυμβάνταΣυγχώνευση συμβάντων.

-
- -
- Ταξινόμηση συμβάντων - -

Τα συμβάντα εμφανίζονται σε ένα δένδρο στην πλευρική στήλη, οργανωμένα σύμφωνα με το έτος και τον μήνα της πιο πρόσφατης φωτογραφίας στο συμβάν. Για να αλλάξετε τη σειρά ταξινόμησης του συμβάντος, πατήστε ΠροβολήΤαξινόμηση συμβάντων και επιλέξτε ή αύξουσα ή φθίνουσα.

- -
- -
- Αλλαγή της χρησιμοποιούμενης φωτογραφίας που θα αναπαραστήσει κάθε συμβάν - -

If you select the Events item in the sidebar, you'll see a single photo which represents each event. This is called the key photo.

- -

Από προεπιλογή, το Shotwell χρησιμοποιεί την πρώτη φωτογραφία σε κάθε συμβάν ως την βασική φωτογραφία. Για να χρησιμοποιήσετε μια διαφορετική φωτογραφία ως βασική, επιλέξτε την φωτογραφία και διαλέξτε ΦωτογραφίεςΟρισμός ως βασική φωτογραφία για το συμβάν.

- -
- -
diff --git a/help/el/organize-flag.page b/help/el/organize-flag.page deleted file mode 100644 index 09be2ee..0000000 --- a/help/el/organize-flag.page +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - Βάλτε σημαίες για να τις σημειώσετε ως ειδικές ή για να τις δουλέψετε ως σύνολο. - - - - - Προσθήκη σημαίας στις φωτογραφίες - -

Το Shotwell σας επιτρέπει να βάλετε σημαία στις φωτογραφίες. Όταν μια φωτογραφία είναι με σημαία, ένα μικρό εικονίδιο σημαίας εμφανίζεται στην πάνω δεξιά γωνία. Μπορείτε να επιλέξετε το στοιχείο με σημαία στην πλευρική στήλη για να δείτε όλες τις φωτογραφίες που έχουν σημαία.

- -

Η προσθήκη σημαίας σε μια φωτογραφία τη σημειώνει ως ειδική. Μπορείτε να το ερμηνεύσετε όπως θέλετε. Για παράδειγμα, μπορείτε να βάλετε σημαία σε όλες τις φωτογραφίες που χρειάζονται οπτική ρύθμιση, ή σε όλες τις φωτογραφίες που θέλετε να μοιραστείτε με έναν φίλο.

- -

Η προσθήκη σημαίας είναι επίσης χρήσιμη, επειδή μπορείτε να επεξεργαστείτε όλες τις φωτογραφίες με σημαία ως σύνολο. Για παράδειγμα, μπορείτε να επιλέξετε την προβολή με σημαία και έπειτα να μεταφορτώσετε όλες τις φωτογραφίες με σημαία σε μια υπηρεσία δημοσίευσης.

- -
- Προσθήκη ή αφαίρεση σημαίας σε φωτογραφία -

Για να προσθέσετε ή να αφαιρέσετε σημαία σε μια φωτογραφία, δεξιοπατήστε τη φωτογραφία και επιλέξτε Προσθήκη σημαίας ή Αφαίρεση σημαίας από το μενού περιεχομένων. Ή χρησιμοποιήστε τα πλήκτρα συντόμευσης CtrlG ή /.

-
- -
diff --git a/help/el/organize-rating.page b/help/el/organize-rating.page deleted file mode 100644 index 9f90bc0..0000000 --- a/help/el/organize-rating.page +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - Δώστε στις φωτογραφίες μια αξιολόγηση μεταξύ 1 και 5 αστεριών. Μπορείτε να απορρίψετε άσχημες φωτογραφίες, κρύβοντας τες από την προβολή. - - - - - Αξιολογήσεις -

Μπορείτε να δώσετε σε κάθε φωτογραφία μια βαθμολόγηση από 1-5 αστέρια, ή μπορείτε εναλλακτικά να την αξιολογήσετε ως απορριφθείσα, οπότε το Shotwell θα κρύψει την φωτογραφία από προεπιλογή.

- -

Μπορείτε να αξιολογήσετε μια φωτογραφία ή ένα σύνολο φωτογραφιών με οποιονδήποτε από αυτούς τους τρόπους:

- - -

Επιλέξτε τις φωτογραφίες, έπειτα επιλέξτε μια αξιολόγηση από το μενού ανωτάτου επιπέδου ΦωτογραφίεςΟρισμός αξιολόγησης.

-

Δεξιοπατήστε στις φωτογραφίες, έπειτα επιλέξτε μια αξιολόγηση από το μενού περιεχομένων αξιολόγησης.

-

Επιλέξτε τις φωτογραφίες, έπειτα πατήστε οποιαδήποτε από τα πλήκτρα συντόμευσης 1, 2, 3, 4 ή 5 για να δώσετε μια αξιολόγηση. Ή πατήστε 9 για να σημειώσετε τις φωτογραφίες ως απορριφθείσες ή 0 για να καθαρίσετε τις αξιολογήσεις.

-
- -

Κανονικά το Shotwell εμφανίζει όλες τις φωτογραφίες εκτός από τις απορριφθείσες. Μπορείτε να ορίσετε ένα διαφορετικό φίλτρο αξιολόγησης χρησιμοποιώντας το μενού ΠροβολήΦιλτράρισμα φωτογραφιών - για παράδειγμα, μπορείτε να εμφανίσετε μόνο φωτογραφίες που αξιολογούνται με 3 αστέρια ή περισσότερο, ή μπορείτε να εμφανίσετε όλες τις φωτογραφίες συμπεριλαμβανομένων αυτών που σημειώθηκαν ως απορριφθείσες. Το εικονίδιο Shotwell στην εργαλειοθήκη εμφανίζει το τρέχον φίλτρο αξιολόγησης και μπορεί επίσης να χρησιμοποιηθεί για να ορίσει το φίλτρο.

- -

Το Shotwell κανονικά εμφανίζει αξιολόγηση κάθε φωτογραφίας στην κάτω αριστερή γωνία. Μπορείτε να απενεργοποιήσετε την εμφάνιση των αξιολογήσεων χρησιμοποιώντας το στοιχείο μενού ΠροβολήΑξιολογήσεις.

- -

Μπορείτε να αυξήσετε ή να μειώσετε την αξιολόγηση μιας φωτογραφίας χρησιμοποιώντας τις εντολές Ορισμός αξιολόγησηςΑύξηση και Ορισμός αξιολόγησηςΜείωση, ή τις συντομεύσεις πληκτρολογίου < και >.

-
diff --git a/help/el/organize-remove.page b/help/el/organize-remove.page deleted file mode 100644 index 3bd3264..0000000 --- a/help/el/organize-remove.page +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - Αφαίρεση φωτογραφιών από τη βιβλιοθήκη, ή διαγραφή τους από τον υπολογιστή σας πλήρως. - - - - - Αφαίρεση και διαγραφή φωτογραφιών - -

Μπορείτε να αφαιρέσετε φωτογραφίες από τη βιβλιοθήκη σας και μπορείτε πρόσθετα να τις διαγράψετε πλήρως από τον σκληρό σας δίσκο.

-

Διαγραφή διεργασίας

-

Αυτό το διάγραμμα εμφανίζει πώς μια φωτογραφία, όταν διαγράφεται, μπαίνει πρώτα στα απορρίμματα του Shotwell. Αν την διαγράψετε από τα απορρίμματα του Shotwell, μπαίνει στα απορρίμματα του υπολογιστή σας. Αν την διαγράψετε από τα απορρίμματα του υπολογιστή σας η φωτογραφία διαγράφεται οριστικά και αμετάκλητα από τον υπολογιστή σας.

-
- Αφαίρεση φωτογραφιών από τη βιβλιοθήκη -

Επιλέξτε τις φωτογραφίες που θέλετε να αφαιρέσετε και επιλέξτε ΕπεξεργασίαΜετακίνηση στα απορρίμματα. (Μπορείτε επίσης να πατήσετε το πλήκτρο Διαγραφή.) Οι φωτογραφίες θα μετακινηθούν από τη βιβλιοθήκη σας στα απορρίμματα του Shotwell.

-

Αν θέλετε να αφαιρέσετε φωτογραφίες από το Shotwell χωρίς να τις περάσετε μέσα από τα απορρίμματα, επιλέξτε απλά τις φωτογραφίες που θα αφαιρεθούν και επιλέξτε ΕπεξεργασίαΑφαίρεση από τη βιβλιοθήκη. Τα αρχεία φωτογραφιών θα αφεθούν επί τόπου στον δίσκο.

-
- -
- Άδειασμα ή επαναφορά του φακέλου απορριμμάτων -

Επιλέξτε την καταχώριση απορριμμάτων στην πλευρική στήλη και το Shotwell θα εμφανίσει όλες τις φωτογραφίες που έχετε σημειώσει για αφαίρεση ή διαγραφή. Στην προβολή απορριμάτων, οι επόμενες εντολές είναι διαθέσιμες:

- - Διαγραφή

Διαγραφή των επιλεγμένων φωτογραφιών από τον φάκελο απορριμμάτων.

- Επαναφορά

Επαναφορά των επιλεγμένων φωτογραφιών στο Shotwell.

- Άδειασμα απορριμάτων

Διαγραφή όλων των φωτογραφιών από τον φάκελο απορριμμάτων.

-
-
- -
- Διαγραφή ή άδειασμα απορριμμάτων -

Όταν διαγράφετε αρχεία από τον φάκελο απορριμμάτων ή αδειάζετε τον φάκελο απορριμμάτων, θα σας δοθούν οι επόμενες επιλογές:

- - Μόνο αφαίρεση

Αφαιρεί τις φωτογραφίες από τη βιβλιοθήκη, αλλά τις αφήνει στη θέση τους στον υπολογιστή.

- Αρχείο απορριμμάτων

Αφαιρεί τις φωτογραφίες από τη βιβλιοθήκη και τις διαγράφει από τον υπολογιστή.

- Άκυρο

Καμία ενέργεια.

-
-
- -
diff --git a/help/el/organize-search.page b/help/el/organize-search.page deleted file mode 100644 index 833f57d..0000000 --- a/help/el/organize-search.page +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - Εύρεση φωτογραφιών και βίντεο στη συλλογή σας με διάφορα κριτήρια. - - - - - Αναζήτηση - -

Υπάρχουν δύο τρόποι αναζήτησης στο Shotwell: η εργαλειοθήκη φίλτρου και με μια αποθηκευμένη αναζήτηση. Η γραμμή αναζήτησης σας επιτρέπει να αναζητήσετε γρήγορα την τρέχουσα προβολή για συγκεκριμένα κριτήρια. Αποθηκευμένες αναζητήσεις χαρακτηρίζουν πιο σύνθετα κριτήρια αναζήτησης και παραμένουν στην πλευρική στήλη μεταξύ των συνεδριών.

- - - -
- Αποθηκευμένη αναζήτηση -

Μια αποθηκευμένη αναζήτηση παραμένει στις συνεδρίες του Shotwell και ενημερώνεται καθώς προστίθενται και αφαιρούνται φωτογραφίες και βίντεο από τη βιβλιοθήκη του Shotwell.

- -

- Create a new saved search with EditNew Saved Search... or by hitting - CtrlS. The dialog box allows you to enter a name for the - search and select whether you want to meet Any, All, or None of the criteria in the following rows. -

- -

- Each row represents a search criterion. Use the + button to add more rows, and the - - button to remove a specific row. The combo box on the left of each row selects the type - of criteria. Criteria must be entered correctly before the OK button becomes available. -

-
- -
diff --git a/help/el/organize-tag.page b/help/el/organize-tag.page deleted file mode 100644 index 42a8cf5..0000000 --- a/help/el/organize-tag.page +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - Οργάνωση φωτογραφιών βάζοντας ετικέτες. - - - - - - - Ονομασία φωτογραφιών - -

Μπορείτε να δώσετε μία ή περισσότερες ετικέτες σε επιλεγμένες φωτογραφίες. Μια ετικέτα μπορεί να έχει μία ή περισσότερες λέξεις που θέλετε να συσχετίσετε με αυτές τις φωτογραφίες.

- -

Για να προσθέσετε νέες ετικέτες στις φωτογραφίες, επιλέξτε τις φωτογραφίες στις οποίες θέλετε να βάλετε ετικέτες, έπειτα κάντε οποιοδήποτε από τα παρακάτω:

- - -

Choose TagsAdd Tags....

-

Πληκτρολογήστε CtrlT.

-

Μεταφέρτε τις επιλεγμένες φωτογραφίες και αποθέστε τες στην επιθυμητή ετικέτα.

-
- -

- When you use CtrlT or - TagsAdd Tags... you can type - in the names of one or more tags, separated by commas. - Once you have created a tag, you can rename it by selecting that - tag in the sidebar and choosing - TagsRename Tag "[name]"..., - by rightclicking on it and choose Rename... or - double-click on the tag in the sidebar. -

- -

- To change which tags are associated with a particular photo, - select that photo, choose - TagsModify Tags... or - right-click on a photo and select Modify Tags... and - edit the comma separated list. - To remove a tag from one or more photos, first select that tag - in the sidebar, then select the photos you would like to remove, - and choose - TagsRemove Tag "[name]" from Photos - or right-click on the photos an select - Remove Tag "[name]" from Photos. -

- -

Για να διαγράψετε μια ετικέτα πλήρως, επιλέξτε αυτήν την ετικέτα στην πλευρική στήλη και επιλέξτε ΕτικέτεςΔιαγραφή ετικέτας "[όνομα]" ή δεξιοπατήστε και επιλέξτε Διαγραφή ετικέτας "[όνομα]".

- -

- When you create a tag, it will appear in the sidebar under the - Tags item, which is hidden if there are no tags. Photos - can have multiple tags attached to them, and when you click on the - name of a given tag in the sidebar, you will see all the photos - associated with that tag. -

- -
- Ιεραρχικές ετικέτες -

Το Shotwell υποστηρίζει επίσης ιεραρχικές ετικέτες. Μπορείτε να αναδιατάξετε τις ετικέτες σας με μεταφορά και απόθεση μιας ετικέτας σε μια άλλη. Για να δημιουργήσετε μια νέα υποετικέτα δεξιοπατήστε σε μια ετικέτα και επιλέξτε Νέα.

- -

Οι ιεραρχικές ετικέτες μπορεί να σας βοηθήσουν να ταξινομήσετε τον κατάλογο ετικετών σας έτσι που να ταιριάζει καλύτερα με τον τρόπο εργασίας ή σκέψης σας· για παράδειγμα, μπορείτε να αποθηκεύσετε ετικέτες θέσης όπως "βουνά" ή "παραλίες" κάτω από μια γονική ετικέτα "Τοποθεσίες", που η ίδια μπορεί να τοποθετηθεί κάτω από την ετικέτα "καλοκαιρινές διακοπές".

- -

Σημειώστε ότι διαγράφοντας μια γονική ετικέτα διαγράφονται επίσης και οι θυγατρικές της ετικέτες.

-
-
diff --git a/help/el/organize-title.page b/help/el/organize-title.page deleted file mode 100644 index 1ab0a2c..0000000 --- a/help/el/organize-title.page +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Δώστε τίτλους στις φωτογραφίες σας. - - - - - Τίτλοι - -

Το πλαίσιο ελέγχου ΠροβολήΤίτλοι εναλλάσσει την εμφάνιση των τίτλων κάτω από κάθε φωτογραφία. Από προεπιλογή, ο τίτλος μιας φωτογραφίας είναι το όνομα του αρχείου της.

- -

To change a photo's title, -select the photo and click PhotosEdit Title..., or press F2.

- -
diff --git a/help/el/other-files.page b/help/el/other-files.page deleted file mode 100644 index 87af7b8..0000000 --- a/help/el/other-files.page +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - Διατηρείστε τη βιβλιοθήκη Shotwell σε συγχρονισμό με τα αρχεία φωτογραφιών στον δίσκο. - - - - - Αρχεία φωτογραφιών - -

Κάθε φωτογραφία στη βιβλιοθήκη Shotwell αντιστοιχεί σε ένα αποθηκευμένο αρχείο στον σκληρό σας δίσκο. Το Shotwell έχει πολλά γνωρίσματα που σας βοηθούν να κρατήσετε τη βιβλιοθήκη Shotwell και τα αρχεία στον δίσκο σε συγχρονισμό.

- - -
- Χρησιμοποιώντας ένα προσαρμοσμένο υπόδειγμα καταλόγου -

Το Shotwell σας επιτρέπει να ορίσετε τον τρόπο ονομασίας των καταλόγων στη βιβλιοθήκη σας. Μπορείτε να το κάνετε αλλάζοντας τις ρυθμίσεις Δομή καταλόγου και Υπόδειγμα στον διάλογο Προτιμήσεις. Μπορείτε να χρησιμοποιήσετε ένα προεπιλεγμένο υπόδειγμα, ή να επιλέξετε Προσαρμογή και να πληκτρολογήσετε το δικό σας.

- -

Τα διαθέσιμα σύμβολα για υπόδειγμα καταλόγου ξεκινά με ένα % (σύμβολο ποσοστού). Οι τιμές που αυτά τα σύμβολα παράγουν εξαρτώνται από τις τοπικές ρυθμίσεις, έτσι ό,τι βλέπετε στον υπολογιστή σας μπορεί να διαφέρει από τα παρακάτω παραδείγματα.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Symbol

Meaning

Example

%Y

Έτος: πλήρες

2011

%y

Έτος: δύο ψηφία

11

%d

Ημέρα του μήνα με αρχικό μηδέν

03

%A

Όνομα ημέρας: πλήρες

Τετάρτη

%a

Όνομα ημέρας: συντομευμένο

Τετ

%m

Αριθμός μήνα με αρχικό μηδέν

02

%b

Όνομα μήνα: συντομευμένο

Φεβ

%B

Όνομα μήνα: πλήρες

Φεβρουάριος

%I

Ώρα: 12ώρη μορφή

05

%H

Ώρα: 24ώρη μορφή

17

%M

Λεπτό

16

%S

Δευτερόλεπτο

30

%p

ΠΜ ή ΜΜ

ΜΜ

- -

- There are other symbols available; please check the manual for strftime by running - the command man strftime if you need one that isn't listed here. -

-
- -
- Αυτόματη εισαγωγή φωτογραφιών - -

Το Shotwell μπορεί να εισάγει αυτόματα νέες φωτογραφίες που εμφανίζονται στον κατάλογο βιβλιοθήκης. (Ο κατάλογος βιβλιοθήκης είναι συνήθως ο κατάλογος Εικόνες στον προσωπικό σας κατάλογο· μπορείτε να αλλάξετε την θέση του στο παράθυρο Προτιμήσεις.)

- -

Για την ενεργοποίηση της αυτόματης εισαγωγής, ελέγξτε το πλαίσιο Παρακολούθηση του καταλόγου βιβλιοθήκης για νέα αρχεία στο παράθυρο Προτιμήσεις.

- -

Το Shotwell μπορεί επίσης να ακολουθήσει τους συμβολικούς δεσμούς σε αυτόματα εισαγόμενους καταλόγους.

- -
- -
- Αυτόματη μετονομασία εισαγόμενων φωτογραφιών σε πεζά γράμματα - -

Το Shotwell μπορεί να αλλάξει αυτόματα τα ονόματα αρχείων των εισαγόμενων φωτογραφιών σε πεζά γράμματα. Για να το ενεργοποιήσετε αυτό, επιλέξτε ΕπεξεργασίαΠροτιμήσεις και στο παράθυρο Προτιμήσεις, σημειώστε το πλαίσιο Μετονομασία εισαγόμενων αρχείων σε πεζά γράμματα.

- -
- -
- Εγγραφή μεταδεδομένων απευθείας - -

Από προεπιλογή, το Shotwell δεν τροποποιεί αρχεία φωτογραφιών, ακόμα κι όταν επεξεργάζεστε φωτογραφίες ή αλλάζετε τις ετικέτες τους ή τίτλους τους. Το Shotwell καταγράφει αυτές τις αλλαγές μόνο στη δικιά του βάση δεδομένων.

- -

Για να αλλάξετε αυτήν την συμπεριφορά, μπορείτε να ενεργοποιήσετε το πλαίσιο ελέγχου Εγγραφή ετικετών, τίτλων και άλλων μεταδεδομένων σε αρχεία φωτογραφιών στον διάλογο Προτιμήσεις. Όταν αυτή η επιλογή είναι ενεργή, το Shotwell θα γράψει τα παρακάτω μεταδεδομένα στα περισσότερα αρχεία φωτογραφιών όποτε το αλλάζετε σε Shotwell:

- - -

τίτλοι

-

ετικέτες

-

αξιολογήσεις

-

πληροφορίες περιστροφής

-

χρόνος/ημερομηνία

-
- -

Το Shotwell αποθηκεύει αυτές τις πληροφορίες σε αρχεία φωτογραφιών σε μορφή EXIF, IPTC και/ή XMP. Σημειώστε ότι το Shotwell μπορεί να γράψει μόνο σε αρχεία φωτογραφιών σε μορφή JPEG, PNG και TIFF, όχι σε φωτογραφίες BMP, RAW ή σε αρχεία βίντεο.

- -
- -
- Παρακολούθηση χρόνου εκτέλεσης - -

Ενώ εκτελείται το Shotwell, σημειώνει αλλαγές που έγιναν σε οποιαδήποτε εξωτερικό αρχείο φωτογραφίας. Όταν ένα αρχείο φωτογραφίας αλλάζει, το Shotwell ξαναδιαβάζει το αρχείο και ενημερώνει την προβολή σας της φωτογραφίας και των μεταδεδομένων.

- -

Σημειώστε ότι το Shotwell ελέγχει όλα τα αρχεία φωτογραφιών για αλλαγές στην εκκίνηση, αλλά μόνο τα περιεχόμενα αρχεία φωτογραφίας στον κατάλογο βιβλιοθήκης παρακολουθούνται σε πραγματικό χρόνο μετά την εκκίνηση. Ελπίζουμε να αφαιρέσουμε αυτόν τον περιορισμό σε μια μεταγενέστερη έκδοση.

- -
- -
diff --git a/help/el/other-missing.page b/help/el/other-missing.page deleted file mode 100644 index 6ed4886..0000000 --- a/help/el/other-missing.page +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - Αν το Shotwell δεν μπορεί να βρει μια φωτογραφία στη βιβλιοθήκη σας, τη σημειώνει ως χαμένη. - - - - - Χαμένες φωτογραφίες - -

Κάθε φορά που το Shotwell ξεκινά, σαρώνει τη βιβλιοθήκη φωτογραφιών σας για να επιβεβαιώσει ότι όλα τα αρχεία φωτογραφιών υπάρχουν ακόμα στον σκληρό σας δίσκο. Αν το Shotwell βρει ότι οποιαδήποτε αρχεία φωτογραφιών λείπουν, δεν θα τα εμφανίσει στις κανονικές προβολές φωτογραφιών, συμβάντων και ετικετών, αλλά θα τα εμφανίσει σε μια ξεχωριστή προβολή χαμένων αρχείων που θα εμφανιστεί στην πλευρική στήλη.

- -

Αν δεν θέλετε πια τα χαμένα αρχεία να είναι μέρος της συλλογής σας Shotwell (ίσως επειδή τα διαγράψατε), πηγαίνετε στην προβολή χαμένα αρχεία, επιλέξτε τις φωτογραφίες και έπειτα πατήστε Αφαίρεση από τη βιβλιοθήκη.

- -

Αν έχετε φωτογραφίες σε έναν αφαιρούμενο δίσκο, όπως σε ένα CD ή USB και τα εισάγετε στο Shotwell χωρίς να αντιγράψετε τις φωτογραφίες στον υπολογιστή σας, θα εμφανιστούν ως χαμένα αρχεία αν έπειτα αποσυνδέσετε τον αφαιρούμενο δίσκο. Δείτε για να μάθετε πώς να αντιγράψετε αρχεία από αφαιρούμενους δίσκους στον υπολογιστή σας.

- -

Αν οποιαδήποτε χαμένα αρχεία φωτογραφιών γίνουν διαθέσιμα ξανά, το Shotwell θα το σημειώσει την επόμενη φορά που ξεκινά. Οι φωτογραφίες θα εμφανιστούν πάλι στις προβολές φωτογραφιών, συμβάντων και ετικετών.

- -
diff --git a/help/el/other-multiple.page b/help/el/other-multiple.page deleted file mode 100644 index 9fbf21c..0000000 --- a/help/el/other-multiple.page +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - Μπορείτε να ανοίξετε το Shotwell με μια διαφορετική βιβλιοθήκη φωτογραφιών χρησιμοποιώντας τη γραμμή εντολών. - - - - - Πολλαπλές βιβλιοθήκες - -

Το Shotwell κανονικά αποθηκεύει τη βάση δεδομένων του και τις μικρογραφίες φωτογραφιών στον κατάλογο ~/.shotwell. Αυτός ο κατάλογος δεν περιέχει φωτογραφίες, αλλά η βάση δεδομένων σε αυτόν τον κατάλογο περιέχει έναν κατάλογο όλων των φωτογραφιών στη βιβλιοθήκη Shotwell.

- -

Ως ένα προχωρημένο γνώρισμα, μπορείτε να έχετε πολλαπλές βιβλιοθήκες Shotwell, που καθεμιά τους έχει το δικό της σύνολο φωτογραφιών. Κάθε βιβλιοθήκη χρειάζεται το δικό του κατάλογο βάσης δεδομένων. Για να ξεκινήσετε το Shotwell με μια εναλλακτική βιβλιοθήκη, ορίστε έναν εναλλακτικό κατάλογο βάσης δεδομένων στη γραμμή εντολών ως εξής:

- - -shotwell -d [library-directory] - - -
diff --git a/help/el/other-plugins.page b/help/el/other-plugins.page deleted file mode 100644 index 82aa070..0000000 --- a/help/el/other-plugins.page +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Επέκταση της δυναμικής λειτουργικότητας του Shotwell. - - - - - Πρόσθετα -

Το Shotwell μπορεί να χρησιμοποιηθεί με πρόσθετα, που είναι συνοδοί κοινόχρηστων βιβλιοθηκών που μπορούν να προσθέσουν υποστήριξη για νεοδημοσιευόμενους προορισμούς ή νέες μεταβάσεις προβολής διαφανειών.

- -

Για να δείτε έναν κατάλογο εγκατεστημένων προσθέτων, επιλέξτε ΕπεξεργασίαΠροτιμήσεις και στο παράθυρο Προτιμήσεις, πατώντας στην καρτέλα Πρόσθετα. Θα δείτε έναν κατάλογο των εγκατεστημένων μέχρι τώρα προσθέτων, που το καθένα τους έχει ένα πλαίσιο ελέγχου και μπορείτε να ενεργοποιήσετε ή να απενεργοποιήσετε καθένα τους επιλέγοντας ή αποεπιλέγοντας το όνομά του.

- -

Η πλήρης τεκμηρίωση ανάπτυξης νέων προσθέτων είναι διαθέσιμη στο http://redmine.yorba.org/projects/shotwell/wiki/ShotwellArchWritingPlugins

- -
diff --git a/help/el/raw.page b/help/el/raw.page deleted file mode 100644 index cc2fe8c..0000000 --- a/help/el/raw.page +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - Περισσότερα για την υποστήριξη RAW στο Shotwell. - - - - - Υποστήριξη RAW (ακατέργαστο) στο Shotwell -

Κάποιες φωτογραφικές μηχανές έχουν τη δυνατότητα να αποθηκεύουν δεδομένα αμέσως από τον αισθητήρα και σε ένα αρχείο που περιέχει πρόσθετες πληροφορίες χρώματος· αυτό συνήθως αναφέρεται ως 'RAW' ή 'φωτογραφική μηχανή RAW' και το Shotwell υποστηρίζει αυτά τα αρχεία επίσης.

- -

Αφού οι φωτογραφίες RAW δεν μπορούν κανονικά να εμφανιστούν άμεσα, αλλά πρέπει πρώτα να αναπτυχθούν - δηλαδή, έχουν τις δικές τους πρόσθετες πληροφορίες να ερμηνευτούν και να διαβαστούν για να εμφανιστούν - οι περισσότερες φωτογραφικές μηχανές ή ενσωματώνουν μια JPEG μέσα σε ένα αρχείο μορφής RAW, ή παράγουν μια JPEG μαζί με το αρχείο RAW τη στιγμή λήψης του στιγμιοτύπου. Το δεύτερο αναφέρεται σε όλο αυτό το έγγραφο ως RAW+JPEG. Αν εισάγετε ένα ζεύγος RAW+JPEG, το Shotwell θα τα κρατήσει συζευγμένα και θα τα θεωρήσει ως ένα στοιχείο στη βιβλιοθήκη σας.

- -

Όταν εισάγετε ένα αρχείο RAW, μπορείτε να επιλέξετε ή να χρησιμοποιήσετε την εσωτερικά αναπτυγμένη JPEG της φωτογραφικής μηχανής ή του Shotwell επιλέγοντας ΦωτογραφίεςΑνάπτυξη στα μενού.

- - -

Η αλλαγή μεταξύ αναπτύξεων θα προκαλέσει την απόρριψη όλων των επεξεργασιών που έγιναν σε μια φωτογραφία.

-
- -

Για να δημοσιεύσετε ή να χρησιμοποιήσετε μια φωτογραφία RAW στα περισσότερα άλλα λογισμικά, πρέπει πρώτα να εξαχθεί. Το Shotwell μπορεί να εξάγει τις φωτογραφίες RAW σε μορφή JPEG, PNG, TIFF ή BMP και όταν δημοσιευτούν θα εξάγει εσωτερικά μια έκδοση JPEG για σας και θα την δημοσιεύσει.

- -
diff --git a/help/el/running.page b/help/el/running.page deleted file mode 100644 index 0bcc3ca..0000000 --- a/help/el/running.page +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Βρείτε το Shotwell στο μενού εφαρμογές, ή ξεκινήστε το αυτόματα όταν συνδέετε μια φωτογραφική μηχανή. - - - - - - - Εκτελώντας το Shotwell - -

Μόλις εγκατασταθεί το Shotwell είναι διαθέσιμο στο μενού Εφαρμογές κάτω από το Γραφικά ή Φωτογραφία.

- -

Το Shotwell μπορεί επίσης να εκτελεστεί αυτόματα όταν μια φωτογραφική μηχανή συνδέεται με τον υπολογιστή σας. Για να ελέγξετε ότι το σύστημά σας έχει ρυθμιστεί να εκτελέσει το Shotwell όταν μια φωτογραφική μηχανή ανιχνευτεί, πηγαίνετε στο ΑρχείοΠροτιμήσεις σε οποιοδήποτε παράθυρο Ναυτίλου (περιηγητής αρχείου) και επιλέξτε την καρτέλα Μέσα. Θα δείτε ένα πτυσσόμενο πλαίσιο με τίτλο Φωτογραφίες: που σας επιτρέπει να επιλέξετε το Shotwell ως την εφαρμογή διαχείρισης φωτογραφιών.

- - -

Το Shotwell μπορεί επίσης να εκτελεστεί άμεσα από το δομημένο κατάλογό του αν και αυτό συνιστάται μόνο για δοκιμή του Shotwell ή για προγραμματιστές.

-
- -
diff --git a/help/el/share-background.page b/help/el/share-background.page deleted file mode 100644 index bc1f815..0000000 --- a/help/el/share-background.page +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - Ορίστε το παρασκήνιο της επιφάνειας εργασίας σας σε μια μόνο φωτογραφία ή σε μια προβολή διαφανειών των φωτογραφιών. - - - - - Ορίστε ένα παρασκήνιο επιφάνειας εργασίας ή προβολής διαφανειών - -

Για να ορίσετε μια μόνο φωτογραφία ως παρασκήνιο της επιφάνειας εργασίας σας, επιλέξτε τη φωτογραφία και διαλέξτε ΑρχείοΟρισμός ως παρασκήνιο επιφάνειας εργασίας.

- -

You can also set your background to a slideshow of photos. To do this, select the photos for - the slideshow and choose FileSet as Desktop Slideshow.... - Shotwell will prompt you for a slideshow delay, which can be any interval up to one day in length. - The background slideshow will proceed even when Shotwell is not running. -

- -
diff --git a/help/el/share-export.page b/help/el/share-export.page deleted file mode 100644 index 62ee38e..0000000 --- a/help/el/share-export.page +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - Αντιγραφή φωτογραφιών από το Shotwell, έτσι ώστε να μπορείτε να τις βάλετε κάπου αλλού. - - - - - Εξαγωγή φωτογραφιών - -

Για να εξάγετε φωτογραφίες από το Shotwell μέσα από μεταφορά και απόθεση, μεταφέρτε τις φωτογραφίες από το Shotwell σε ένα παράθυρο διαχειριστή αρχείων ή στην επιφάνεια εργασίας σας. Τα νέα αρχεία θα είναι αντίγραφα πλήρους μεγέθους των φωτογραφιών στη βιβλιοθήκη σας.

- -

-Alternatively, select a set of photos and choose the FileExport... command or press ShiftCtrlE, which exports photos while letting you fine-tune the size and dimensions of your photo files. -A window will appear allowing you to make several choices: -

- - -

Μια μορφή για εξαγωγή.

- -

Επιλέξτε Ατροποποίητη για να εξάγετε φωτογραφίες στην αρχική τους μορφή χωρίς καμιά επεξεργασία που έγινε στο Shotwell. Οι ακατέργαστες φωτογραφίες θα εξαχθούν στην αρχική τους μορφή RAW.

-

Επιλέξτε Τρέχουσα για να εξάγετε τις φωτογραφίες συμπεριλαμβάνοντας τις επεξεργασίες που έγιναν στο Shotwell. Οι ακατέργαστες φωτογραφίες θα εξαχθούν σε μορφή JPEG αν τις έχετε επεξεργαστεί στο Shotwell και αλλιώς στην αρχική τους ακατέργαστη μορφή.

-

Ή μπορείτε να επιλέξετε μια ειδική μορφή εικόνας (JPEG, PNG, TIFF, BMP) που θα χρησιμοποιηθεί για εξαγωγή. Οποιαδήποτε επεξεργασία έγινε στο Shotwell θα συμπεριληφθεί και το Shotwell θα μετατρέψει τις φωτογραφίες στη μορφή προορισμού.

-
-
-

Η ποιότητα εικόνας για εξαγωγή (χαμηλή, μέτρια, υψηλή, ή μέγιστη).

-

Ένας περιορισμός κλιμάκωσης (που σημαίνει πώς θα αποφασίσει το Shotwell να σμικρύνει τις φωτογραφίες) και το επιθυμητό μέγεθος εικονοστοιχείων.

- -Original size

Image will be exported without any scaling applied

-Longest edge

Image will be exported by having its longest edge scaled to Pixels and the other according to the aspect ratio

-Width

The image width will have its width scaled to the given pixel size and its height according to the aspect ratio. This is equivalent to Longest Edge for landscape pictures.

-Height

The image height will have its height scaled to the given pixel size and its width according to the aspect ratio. This is equivalent to Longest Edge for portrait pictures.

-
-
-

Η επιλογή εξαγωγής μεταδεδομένων όπως ετικέτες ή αξιολογήσεις. Αυτό μπορεί να βοηθήσει στην αποθήκευση της ιδιωτικότητά σας αν έχετε ετικέτες γεωεντοπισμού ή ετικέτες που δεν θα έπρεπε να ιδωθούν από κάποιον.

-
- -

Αν επιλεγεί, το Shotwell θα γράψει ετικέτες, τίτλους και άλλα μεταδεδομένα στα νέα αρχεία.

- -
diff --git a/help/el/share-print.page b/help/el/share-print.page deleted file mode 100644 index 57c7197..0000000 --- a/help/el/share-print.page +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Click FilePrint.... For more printing options, select the Page Setup tab in the Print dialog. - - - - - Εκτύπωση - -

To print a photo, select it and choose FilePrint....

- -

- Shotwell can also print multiple images in one page; to do this, select multiple images, - choose FilePrint..., and in the Print dialog, - choose the Image Settings tab. In Image Settings, choose one of the - multiple-image-per-page options under Autosize. -

- -

Αν θα θέλατε να ορίσετε επιλογές μορφοποίηση, μέγεθος χαρτιού και προσανατολισμό, επιλέξτε την καρτέλα Διαμόρφωση σελίδας στον διάλογο Εκτύπωση πριν από την εκτύπωση.

-
diff --git a/help/el/share-send.page b/help/el/share-send.page deleted file mode 100644 index 79a1232..0000000 --- a/help/el/share-send.page +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - Αποστολή φωτογραφιών μέσα από ηλεκτρονική αλληλογραφία, άμεσα μηνύματα ή με άλλους τρόπους. - - - - - Αποστολή φωτογραφιών - -

Το Shotwell μπορεί να στείλει φωτογραφίες χρησιμοποιώντας τον μηχανισμό αποστολής προς της επιφάνειας εργασίας GNOME, που σας επιτρέπει να στέλνετε φωτογραφίες μέσα από ηλεκτρονική αλληλογραφία, άμεσα μηνύματα ή με άλλους τρόπους.

-

Για να στείλετε φωτογραφίες, επιλέξτε τες στο Shotwell και επιλέξτε ΑρχείοΑποστολή σε..., ή δεξιοπατήστε τις φωτογραφίες και επιλέξτε Αποστολή σε... από το μενού περιεχομένων. Ένα πλαίσιο διαλόγου Αποστολή προς θα εμφανιστεί που σας επιτρέπει να επιλέξετε έναν μηχανισμό για αποστολή των αρχείων (όπως ηλεκτρονική αλληλογραφία ή άμεσα μηνύματα) και έναν προορισμό. Μπορείτε προαιρετικά να επιλέξετε να στείλετε τα αρχεία σε συμπιεσμένη μορφή.

- -
diff --git a/help/el/share-slideshow.page b/help/el/share-slideshow.page deleted file mode 100644 index ac13cc9..0000000 --- a/help/el/share-slideshow.page +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - Παρακολούθηση μιας προβολής διαφανειών των φωτογραφιών σας. - - - - - Προβολές διαφανειών - -

Για να δείτε νια προβολή διαφανειών οποιασδήποτε συλλογής στο Shotwell, περιηγηθείτε σε αυτήν τη συλλογή και επιλέξτε ΠροβολήΠροβολή διαφανειών ή πατήστε F5.

- -

Μπορείτε να αλλάξετε κάποιες ρυθμίσεις σε μια εκτελούμενη προβολή διαφανειών:

- - -

Η διάρκεια χρόνου εμφάνισης μιας εικόνας πρέπει να είναι: 1 - 30 δευτερόλεπτα

-

Μπορείτε να επιλέξετε διαφορετικά εφέ μετάβασης.

-

Ο χρόνος για κάθε εφέ μετάβασης: 0.1 - 1.0 δευτερόλεπτα

-
-
diff --git a/help/el/share-upload.page b/help/el/share-upload.page deleted file mode 100644 index cbb6fb5..0000000 --- a/help/el/share-upload.page +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - Δημοσίευση φωτογραφιών στα Facebook, Flickr, συλλογές ιστού Picasa, ή άλλους τόπους. - - - - - Δημοσιεύοντας στον ιστό - -

Μέσα από τη χρήση προσθέτων, το Shotwell μπορεί να δημοσιεύσει φωτογραφίες και βίντεο στις ακόλουθες υπηρεσίες, που καθεμιά τους απαιτεί έναν λογαριασμό:

- - -

Facebook

-

Flickr

-

Picasa Web Albums and Google+

-

YouTube (videos only)

-

Tumblr (videos only)

-

Οποιονδήποτε τόπο που τρέχει το λογισμικό συλλογής φωτογραφιών Piwigo (μόνο φωτογραφίες)

-
- -

To publish selected photos in a collection, choose EditPreferences and - click on the Plugins tab to enable the plugin for the service you want to publish to. Next, choose, - FilePublish, press the Publish toolbar button or use CtrlShiftP. - You will see a dialog that lets you select a publishing service. You will then need to log in or create an account.

- -

Publishing to Facebook requires you to grant certain permissions to the Shotwell Facebook application. - You only need to grant these permissions once, when you first associate Shotwell with your Facebook account. -

-

You will be only able to publish images with at most the permission you granted to the Shotwell Facebook application

- -

Παρόμοια, η δημοσίευση στο Flickr απαιτεί να συνδεθείτε και να επιτρέψετε στο Shotwell Connect να προσπελάσει τον λογαριασμό σας.

- -

Αν έχετε έναν λογαριασμό Google, αλλά δεν έχετε ακόμα χρησιμοποιήσει τις συλλογές ιστού Picasa, θα χρειαστείτε να συνδεθείτε στο Picasa χρησιμοποιώντας έναν περιηγητή μια φορά πριν να μπορείτε να δημοσιεύετε σε αυτήν την υπηρεσία.

-
diff --git a/help/el/view-displaying.page b/help/el/view-displaying.page deleted file mode 100644 index 4fc46b5..0000000 --- a/help/el/view-displaying.page +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - Μάθετε για τους διαφορετικούς τρόπους προβολής των φωτογραφιών σας: σε ένα πλέγμα, με γεμάτο το κυρίως παράθυρο ή όλη την οθόνη. - - - - - Προβολές φωτογραφίας - -

Όταν επιλέγετε οποιαδήποτε συλλογή στην πλευρική στήλη, το Shotwell εμφανίζει όλες τις φωτογραφίες της συλλογής στην περιοχή του κυρίως παραθύρου. Στα κάτω δεξιά υπάρχει ένας ολισθητής που ρυθμίζει το μέγεθος προβολής των μικρογραφιών. Μπορείτε επίσης να ρυθμίσετε το μέγεθος μικρογραφιών χρησιμοποιώντας τα πλήκτρα συν και πλην (+ και -) ή πατώντας το Ctrl ενώ μετακινείτε τον τροχό κύλισης του ποντικιού.

- -

Μπορείτε να προβάλετε μια φωτογραφία σε πλήρες παράθυρο διπλοπατώντας την. Από εκεί μπορείτε να μετακινηθείτε σε άλλες φωτογραφίες στη συλλογή με τα πλήκτρα πίσω και μπροστά. Για να επιστρέψετε στη συλλογή, διπλοπατήστε στη φωτογραφία ή πατήστε το πλήκτρο Διαφυγής.

- -

Όταν προβάλετε μια φωτογραφία σε κατάσταση πλήρους παραθύρου, ο ολισθητής στην εργαλειοθήκη ελέγχει την εστίαση. Μπορείτε να μετακινηθείτε ολόγυρα συλλαμβάνοντας και μεταφέροντας οπουδήποτε στην φωτογραφία. Μπορείτε επίσης να εστιάσετε χρησιμοποιώντας τον τροχό κύλισης ή πατώντας τις παρακάτω συντομεύσεις πληκτρολογίου: Ctrl0 για την πλήρη εικόνα, Ctrl1 για 100% (1 εικονοστοιχείο φωτογραφίας = 1 εικονοστοιχείο οθόνης) και Ctrl2 για 200% (1 εικονοστοιχείο φωτογραφίας = 2x2 εικονοστοιχεία οθόνης).

- -

Το Shotwell προσφέρει μια κατάσταση πλήρους οθόνης για προβολή φωτογραφιών. Επιλέξτε ΠροβολήΠλήρης οθόνη ή πατήστε F11. Για να δείτε την εργαλειοθήκη πλήρης οθόνη, μετακινήστε το ποντίκι σας στο τέλος της οθόνης. Η εργαλειοθήκη προσφέρει πλήκτρα για μετακίνηση μέσα από τη συλλογή, για να προσδέσει την εργαλειοθήκη (έτσι δεν είναι κρυφή όταν μετακινείτε το ποντίκι μακριά) και για να αφήσετε την προβολή πλήρους οθόνης.

- -
-Προβολή βίντεο -

Όταν διπλοπατάτε ένα βίντεο, το Shotwell θα ξεκινήσει μια εξωτερική συσκευή βίντεο για να αναπαραγάγει το βίντεο. Δεν είναι προς το παρόν δυνατή η εμφάνιση ενός βίντεο σε κατάσταση πλήρους παραθύρου στο Shotwell ή η αναπαραγωγή του βίντεο στο ίδιο το Shotwell.

-
- -
diff --git a/help/el/view-information.page b/help/el/view-information.page deleted file mode 100644 index a8f2644..0000000 --- a/help/el/view-information.page +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - Προβολή περισσότερο λεπτομερών πληροφοριών για τις φωτογραφίες, όπως η κατάσταση έκθεσης που χρησιμοποιείται από τη φωτογραφική μηχανή. - - - - - Βασικές και εκτεταμένες πληροφορίες - -

Το βασικό φάτνωμα πληροφοριών εμφανίζεται στο τέλος της πλευρικής στήλης και εμφανίζει μια σύντομη περίληψη των φωτογραφιών που έχετε επιλέξει. Αν δεν επιλεγεί καμία φωτογραφία, εμφανίζει μια περίληψη ολόκληρης της συλλογής. Μπορείτε να εναλλάξετε την εμφάνιση αυτού του φατνώματος χρησιμοποιώντας την εντολή ΠροβολήΒασικές πληροφορίες.

- -

Το αιωρούμενο εκτεταμένο παράθυρο πληροφοριών εμφανίζει περισσότερες πληροφορίες για την επιλεγμένη φωτογραφία. Η εντολή ΠροβολήΕκτεταμένες πληροφορίες ή CtrlShiftX εναλλάσσει την εμφάνιση αυτού του παραθύρου.

- -
diff --git a/help/el/view-sidebar.page b/help/el/view-sidebar.page deleted file mode 100644 index 777590d..0000000 --- a/help/el/view-sidebar.page +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Η πλευρική στήλη στα αριστερά του παραθύρου καταχωρίζει ποικίλες προβολές της βιβλιοθήκης σας. - - - - - - - - - - - - - Η πλευρική στήλη - -

Η πλευρική στήλη στα αριστερά του παραθύρου Shotwell εμφανίζει ποικίλες προβολές της βιβλιοθήκης σας. Αν και μπορείτε να δείτε την ίδια φωτογραφία σε πολλές προβολές, είναι αποθηκευμένη μόνο μια φορά στον σκληρό σας δίσκο.

- -

Η προβολή Τελευταία εισαγωγή εμφανίζει τις τελευταίες εισηγμένες φωτογραφίες άσχετα με το αν εισήχθησαν από το F-Spot, τη κάμερά σας, μια κάρτα μνήμης ή τον σκληρό δίσκο.

- -

Το Με σημαία εμφανίζει όλες τις φωτογραφίες που είχατε προηγούμενων με σημαία.

- -

Το Αποθηκευμένη αναζήτηση σας επιτρέπει την ταξινόμηση της βιβλιοθήκης σας με πολλά κριτήρια.

- -

Ο φάκελος Συμβάντα εμφανίζει όλα τα συμβάντα στη βιβλιοθήκη σας. Ένα συμβάν είναι μια ομάδα φωτογραφιών που ελήφθησαν περίπου την ίδια ώρα.

- -

Ο φάκελος Ετικέτες εμφανίζει όλες τις ετικέτες που έχετε εκχωρήσει σε φωτογραφίες. Οι φωτογραφίες μπορούν να έχουν πολλαπλές ετικέτες συσχετισμένες με αυτές. Όταν πατήσετε σε ένα όνομα μιας ετικέτας στην πλευρική στήλη, θα δείτε όλες τις συσχετισμένες φωτογραφίες με αυτήν την ετικέτα.

- -
diff --git a/help/es/edit-adjustments.page b/help/es/edit-adjustments.page deleted file mode 100644 index f537ca5..0000000 --- a/help/es/edit-adjustments.page +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - Cambiar la exposición, saturación, matiz y sombras de una foto. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Ajustes del color - -

El botón Ajustes abre una ventana flotante con un histograma y el control deslizante para ajustar la exposición, la saturación, el matiz, la calidez y las sombras de una fotografía. El histograma también tiene control deslizante para reducir los umbrales de intensidad superior e inferior de la fotografía, ampliando el contraste de la gama media.

- -

El botón Mejorar ajusta el histograma y el control deslizante de las sombras para mejorar la calidad de una foto.

- -

Si los colores y el contraste de la foto son adecuados, pulse Aceptar para guardar los cambios. El botón Restablecer devolverá la imagen a su estado original. El botón Cancelar deshace todos los cambios realizados.

- -
- ¿Qué hacen los ajustes del color? - - - Exposición -

Cambia el brillo para que parezca que la foto se ha expuesto por un tiempo más o menos largo. Utilice esta opción para corregir las fotografías sobreexpuestas o excesivamente subexpuestas.

-
- - Contrast -

Changes the contrast of a photo. Use it to correct flat-looking photos or photos where the difference between bright and dark spots seems to big.

-
- - Saturación -

Cambia la intensidad de los colores. Si su foto parece gris y pálida, pruebe a aumentar la saturación. Si los colores se ven demasiado intensos, intente disminuirlos.

-
- - Matiz -

Esto matiza la foto con un color. Es útil para corregir fotos que se han tomado con el ajuste del balance de blancos erróneo, que normalmente tiene unas tonalidades de color poco naturales. Por ejemplo, las fotos tomadas en el exterior con el ajuste del balance de blancos en «Tungsten» pueden tener una tonalidad azulada.

-
- - Temperatura -

Cambia el aspecto «cálido» o «frío» de la imagen. Utilice esto, por ejemplo, para hacer que las escenas frías y tristes parezcan más alegres.

-
- - Sombras -

Esto hace que las áreas oscuras aparezcan más claras. Si los detalles se han oscurecido por las sombras, utilice esto para hacerlos más visibles.

-
- - Umbral de intensidad (control deslizante en el histograma) -

Estos controles deslizantes cambian cómo de claro es el blanco más brillante y cómo de oscuro es el negro más oscuro. Utilícelos para cambiar el contraste de la foto, sobre todo en las fotos que son pálidas.

-
-
-
- -
diff --git a/help/es/edit-crop.page b/help/es/edit-crop.page deleted file mode 100644 index c3fe4bf..0000000 --- a/help/es/edit-crop.page +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - Mejore la composición de una foto cortando partes de la misma. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Recortar - -

Para reducir el área de una foto y concentrar la atención del espectador en una parte más pequeña de ella, utilice la herramienta Recortar. La herramienta Recortar sólo está disponible en el modo a pantalla completa.

- - - -

Para entrar en el modo a pantalla completa, pulse dos veces en la foto y luego pulse el botón Recortar en la barra de herramientas.

-
- -

Unas líneas blancas, que representan el rectángulo de recorte, aparecerán sobre la foto. La parte más clara de la foto dentro del rectángulo de recorte representa cómo se verá la foto cuando la recorte.

-
- -

Si coloca el cursor en el centro del recuadro, podrá moverlo. Si arrastra los bordes del recuadro, puede ajustar su tamaño. Al mover y ajustar la caja de recorte, verá aparecer cuatro líneas en su interior, como las cuadrículas para el tres en raya. Estas son las líneas de la regla de los tercios.

-

También puede limitar el recuadro a uno de los tamaños más comunes. Elija un tamaño de la lista desplegable que se adapte a sus necesidades. Si pulsa el botón voltear situado junto a esta, la orientación de la restricción cambiará (de horizontal a vertical).

-
- -

Cuando esté satisfecho con su recorte, aplíquelo pulsando el botón Recortar. Shotwell mostrará la foto recortada.

-
- -

Si cambia de opinión, pulse el botón Recortar de nuevo y ajuste el recorte.

-

Si pulsa el botón Cancelar en vez del botón Aplicar, Shotwell devolverá a la foto las dimensiones anteriores del recorte.

-
-
- -
- ¿Qué es la regla de los tercios? -

La regla de los tercios le ayuda a elegir una composición satisfactoria para una foto.

-

Imagine que la escena se divide en una cuadrícula de 3x3 por dos líneas verticales espaciadas y por dos líneas horizontales igualmente espaciadas. De acuerdo con la regla, es más probable que obtenga una composición satisfactoria si alinea las características principales (como el horizonte o una persona) con una de estas líneas. Prestar atención a la forma en que las características van de una parte de la cuadrícula a la otra también puede ser de ayuda.

-

Recortar una foto siguiendo la regla de los tercios suele dar como resultado una imagen visualmente más satisfactoria.

- -

Recorte una foto siguiendo las líneas de la «regla de los tercios» para mejorar la composición.

-
-
-
diff --git a/help/es/edit-date-time.page b/help/es/edit-date-time.page deleted file mode 100644 index 98b49eb..0000000 --- a/help/es/edit-date-time.page +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - Cambiar la hora y la fecha de las fotos si son incorrectas. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Ajustar la hora y fecha de las fotos - -

Para ajustar la hora y fecha de las fotos, seleccione las fotos que quiere ajustar y pulse FotosAjustar fecha y hora... y seleccione una nueva fecha y hora.

- -

Si está cambiando la fecha y la hora de varias fotos a la vez, puede elegir cambiar todas las fotos en la misma cantidad de horas o establecer todas las fotos en la misma hora.

- -

De manera predeterminada, la fecha y la hora sólo se cambian dentro de Shotwell. También puede optar por modificar la fecha y la hora en el archivo original, pero esto no se puede deshacer una vez que salga de Shotwell.

- -
diff --git a/help/es/edit-enhance.page b/help/es/edit-enhance.page deleted file mode 100644 index 3e6a417..0000000 --- a/help/es/edit-enhance.page +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - Permita que Shotwell mejore el brillo y el contraste de una foto automáticamente. - - - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Mejora automática - -

Pulsar en el botón Mejorar es una forma rápida de ajustar automáticamente el brillo y el contraste de la foto. Normalmente le ofrecerá una foto que esté correctamente expuesta. También puede utilizarlo como punto de partida y luego mejorar los ajustes pulsando en el botón Ajustar.

-
diff --git a/help/es/edit-external.page b/help/es/edit-external.page deleted file mode 100644 index 6c1805e..0000000 --- a/help/es/edit-external.page +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - Usar un programa diferente para editar una foto. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Editar las fotos con un programa externo - -

Quizás quiera utilizar un editor externo para trabajar adicionalmente en una foto. Si están instalados, GIMP y UFRaw son los editores externos predeterminados para editar una foto o RAW, respectivamente. Si estos programas no están instalados, tiene que seleccionar sus editores preferidos eligiendo EditarPreferencias y seleccionar los editores del menú desplegable de las aplicaciones instaladas.

- -

Una vez que los editores se han establecido, seleccione una foto y elija Fotos Abrir con un editor externo para abrir la foto con un editor externo. De la misma manera, si la foto original es un archivo RAW, seleccione FotosAbrir con un editor RAW para editar el archivo RAW directamente con un editor RAW establecido.

- -

Cuando complete sus ediciones y guarde el archivo, Shotwell detectará los cambios y actualizará la foto. Cuando se hayan realizado ediciones externas, mantenga pulsada la tecla Mayús en la vista de la pantalla completa para mostrar la foto original en lugar de la editada externamente.

- -

Revertir al original borrará cualquier cambio externo.

- - -

Si edita de manera externa una foto RAW y guarda el resultado en otra imagen, como un archivo JPEG o PNG, Shotwell no puede determinar automáticamente que la RAW original y la nueva imagen deberían estar emparejadas.

- -

Si quiere trabajar sobre la imagen resultante con Shotwell, tendrá que importarla usted mismo.

-
-
diff --git a/help/es/edit-nondestructive.page b/help/es/edit-nondestructive.page deleted file mode 100644 index 7542fd1..0000000 --- a/help/es/edit-nondestructive.page +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - Shotwell es un editor de fotos no destructivo, es decir, no modifica sus fotos originales. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - ¿Qué sucede con el original cuando edito una foto? - -

Shotwell es un editor de fotos no destructivo. No modifica sus fotografías originales. Es decir, si recorta una foto o ajusta sus colores, el archivo de la foto del disco permanece intacto. Shotwell almacena sus ediciones en una base de datos y las aplica sobre la marcha, según sea necesario. Esto significa que puede deshacer cualquier alteración que realices en una fotografía.

- -

Si quiere ver qué aspecto tenía una foto antes de realizar las modificaciones, pulse la tecla Mayús. La foto original se mostrará siempre que mantenga pulsada esta tecla.

- -

Tenga en cuenta que Shotwell puede escribir metadatos opcionalmente (como etiquetas y títulos) en los archivos de fotos. Para obtener más información, consulte la sección Archivos de fotos.

- -
diff --git a/help/es/edit-redeye.page b/help/es/edit-redeye.page deleted file mode 100644 index 733d37b..0000000 --- a/help/es/edit-redeye.page +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - Corrige las fotos donde las personas tienen ojos rojos por el flash de la cámara. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Quitar los ojos rojos - -

Los ojos rojos aparecen cuando el flash de la cámara se refleja en las pupilas de los ojos. Para eliminar esto en una foto, utilice la herramienta Ojos rojos.

- - -

Pulse en Ojos Rojos. Un círculo aparecerá en la foto.

-
- -

Arrastre el círculo sobre la pupila afectada, ajuste su tamaño con el control deslizante y presione Aplicar. Se eliminará el color rojo.

-
- -

Repita este proceso para todas las pupilas rojas en su foto. Pulse Cerrar cuando haya terminado.

-
-
-
diff --git a/help/es/edit-rotate.page b/help/es/edit-rotate.page deleted file mode 100644 index b5edcf4..0000000 --- a/help/es/edit-rotate.page +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - Pulse el botón Girar, o elija uno de los comandos en el menú Foto. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Girar o voltear una foto - -

Puede girar las fotos a la izquierda y a la derecha con el botón Girar en la barra de herramientas de la mayoría de las vistas. También puede hacer una imagen reflejada de cualquier foto.

- -

Para girar hacia la derecha, pulse el botón Girar. Para girar hacia la izquierda, mantenga pulsada la tecla Ctrl y luego pulse el botón. Ambos comandos están disponibles en el menú Fotos. Como alternativa, utilice los siguientes atajos del teclado:

- -

rotar a la izquierda: MayúsCtrlR o [

-

rotar a la derecha: CtrlR or ]

-
-

Para crear una imagen reflejada de una foto, utilice el comando Voltear horizontalmente en el menú Fotos. Para voltear una imagen verticalmente, utilice el comando Voltear verticalmente en el mismo menú.

- - -

Si selecciona más de una imagen, puede girar todas ellas al mismo tiempo.

-
- -
diff --git a/help/es/edit-straighten.page b/help/es/edit-straighten.page deleted file mode 100644 index 4516d61..0000000 --- a/help/es/edit-straighten.page +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - Enderezar una foto tal que su horizonte aparezca nivelado. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Enderezar fotos - -

Las herramientas de enderezar permiten que las fotos se nivelen y enderecen. La herramienta de enderezado sólo está disponible en modo de pantalla completa.

- - - -

Pulse en Enderezar. Aparecerá el control deslizante de enderezamiento. También puede utilizar el atajo de teclado CtrlA.

-
- -

Arrastre el control deslizante para conseguir el grado que quiera de enderezamiento.

-
- -

Pulse Enderezar cuando haya acabado.

-
-
- -
diff --git a/help/es/edit-undo.page b/help/es/edit-undo.page deleted file mode 100644 index 854a08b..0000000 --- a/help/es/edit-undo.page +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - Restaurar una foto a su estado original, sin edición. - - - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Deshacer cambios - -

Gracias a que Shotwell es un editor de fotos no destructivo, puede deshacer cualquier alteración que realice en una foto.

- -

Si quiere ver qué aspecto tenía una foto antes de realizar las modificaciones, pulse la tecla Mayús. La foto original se mostrará siempre que mantenga pulsada esta tecla.

- -

Para deshacer por completo todos los cambios realizados en una foto, haga clic en FotosVolver al original. La única excepción es que los ajustes de hora y fecha no se revertirán.

- -
diff --git a/help/es/es.po b/help/es/es.po index 4ba89b6..40ae384 100644 --- a/help/es/es.po +++ b/help/es/es.po @@ -16,7 +16,7 @@ msgid "" msgstr "" "Project-Id-Version: shotwell master\n" -"POT-Creation-Date: 2017-03-15 21:36+0000\n" +"POT-Creation-Date: 2018-06-25 16:43+0000\n" "PO-Revision-Date: 2017-03-16 08:13+0100\n" "Last-Translator: Daniel Mustieles \n" "Language-Team: es \n" @@ -103,11 +103,23 @@ msgstr "" #. (itstool) path: item/title #: C/edit-adjustments.page:28 +msgid "Contrast" +msgstr "" + +#. (itstool) path: item/p +#: C/edit-adjustments.page:29 +msgid "" +"Changes the contrast of a photo. Use it to correct flat-looking photos or " +"photos where the difference between bright and dark spots seems to big." +msgstr "" + +#. (itstool) path: item/title +#: C/edit-adjustments.page:32 msgid "Saturation" msgstr "Saturación" #. (itstool) path: item/p -#: C/edit-adjustments.page:29 +#: C/edit-adjustments.page:33 msgid "" "Changes how vivid colors look. If your photo looks gray and washed out, try " "increasing the saturation. If colors look too bold, try decreasing it." @@ -117,12 +129,12 @@ msgstr "" "disminuirlos." #. (itstool) path: item/title -#: C/edit-adjustments.page:32 +#: C/edit-adjustments.page:36 msgid "Tint" msgstr "Matiz" #. (itstool) path: item/p -#: C/edit-adjustments.page:33 +#: C/edit-adjustments.page:37 msgid "" "This tints the photo with a color. It's useful for correcting photos taken " "with the wrong white balance setting, which typically have an unnatural " @@ -136,12 +148,12 @@ msgstr "" "una tonalidad azulada." #. (itstool) path: item/title -#: C/edit-adjustments.page:36 +#: C/edit-adjustments.page:40 msgid "Temperature" msgstr "Temperatura" #. (itstool) path: item/p -#: C/edit-adjustments.page:37 +#: C/edit-adjustments.page:41 msgid "" "Changes how \"warm\" or \"cool\" the picture looks. Use this to make cold, " "depressing scenes look more lively, for example." @@ -150,12 +162,12 @@ msgstr "" "para hacer que las escenas frías y tristes parezcan más alegres." #. (itstool) path: item/title -#: C/edit-adjustments.page:40 +#: C/edit-adjustments.page:44 msgid "Shadows" msgstr "Sombras" #. (itstool) path: item/p -#: C/edit-adjustments.page:41 +#: C/edit-adjustments.page:45 msgid "" "This makes shadowy areas appear lighter. Use this to make detail more " "visible if it's obscured by the darkness of a shadow." @@ -164,12 +176,12 @@ msgstr "" "oscurecido por las sombras, utilice esto para hacerlos más visibles." #. (itstool) path: item/title -#: C/edit-adjustments.page:44 +#: C/edit-adjustments.page:48 msgid "Intensity Threshold (sliders on the histogram)" msgstr "Umbral de intensidad (control deslizante en el histograma)" #. (itstool) path: item/p -#: C/edit-adjustments.page:45 +#: C/edit-adjustments.page:49 msgid "" "These sliders change how light the brightest white is and how dark the " "darkest black is. Use them to change the contrast of the photo. Photos which " @@ -336,6 +348,49 @@ msgstr "" "Recorte una foto siguiendo las líneas de la «regla de los tercios» para " "mejorar la composición." +#. (itstool) path: info/desc +#: C/edit-date-time.page:7 +msgid "Change the date and time of photos if those details are incorrect." +msgstr "Cambiar la hora y la fecha de las fotos si son incorrectas." + +#. (itstool) path: page/title +#: C/edit-date-time.page:12 +msgid "Adjust the date and time of photos" +msgstr "Ajustar la hora y fecha de las fotos" + +#. (itstool) path: page/p +#: C/edit-date-time.page:14 +msgid "" +"To adjust the date and time of photos, select the photos you would like to " +"adjust, choose PhotosAdjust Date and Time... and select a new date and time." +msgstr "" +"Para ajustar la hora y fecha de las fotos, seleccione las fotos que quiere " +"ajustar y pulse FotosAjustar fecha y hora... y seleccione una nueva fecha y hora." + +#. (itstool) path: page/p +#: C/edit-date-time.page:16 +msgid "" +"If you are changing the date and time of multiple photos at once, you can " +"choose to shift all the photos by the same amount of time or to set all the " +"photos to the same time." +msgstr "" +"Si está cambiando la fecha y la hora de varias fotos a la vez, puede elegir " +"cambiar todas las fotos en la misma cantidad de horas o establecer todas las " +"fotos en la misma hora." + +#. (itstool) path: page/p +#: C/edit-date-time.page:18 +msgid "" +"By default, the date and time are only changed inside Shotwell. You can also " +"choose to modify the date and time in the original file, but this cannot be " +"undone once you exit Shotwell." +msgstr "" +"De manera predeterminada, la fecha y la hora sólo se cambian dentro de " +"Shotwell. También puede optar por modificar la fecha y la hora en el archivo " +"original, pero esto no se puede deshacer una vez que salga de Shotwell." + #. (itstool) path: info/desc #: C/edit-enhance.page:7 msgid "" @@ -661,49 +716,6 @@ msgstr "" msgid "Press Straighten when finished." msgstr "Pulse Enderezar cuando haya acabado." -#. (itstool) path: info/desc -#: C/edit-date-time.page:7 -msgid "Change the date and time of photos if those details are incorrect." -msgstr "Cambiar la hora y la fecha de las fotos si son incorrectas." - -#. (itstool) path: page/title -#: C/edit-date-time.page:12 -msgid "Adjust the date and time of photos" -msgstr "Ajustar la hora y fecha de las fotos" - -#. (itstool) path: page/p -#: C/edit-date-time.page:14 -msgid "" -"To adjust the date and time of photos, select the photos you would like to " -"adjust, choose PhotosAdjust Date and Time... and select a new date and time." -msgstr "" -"Para ajustar la hora y fecha de las fotos, seleccione las fotos que quiere " -"ajustar y pulse FotosAjustar fecha y hora... y seleccione una nueva fecha y hora." - -#. (itstool) path: page/p -#: C/edit-date-time.page:16 -msgid "" -"If you are changing the date and time of multiple photos at once, you can " -"choose to shift all the photos by the same amount of time or to set all the " -"photos to the same time." -msgstr "" -"Si está cambiando la fecha y la hora de varias fotos a la vez, puede elegir " -"cambiar todas las fotos en la misma cantidad de horas o establecer todas las " -"fotos en la misma hora." - -#. (itstool) path: page/p -#: C/edit-date-time.page:18 -msgid "" -"By default, the date and time are only changed inside Shotwell. You can also " -"choose to modify the date and time in the original file, but this cannot be " -"undone once you exit Shotwell." -msgstr "" -"De manera predeterminada, la fecha y la hora sólo se cambian dentro de " -"Shotwell. También puede optar por modificar la fecha y la hora en el archivo " -"original, pero esto no se puede deshacer una vez que salga de Shotwell." - #. (itstool) path: info/desc #: C/edit-undo.page:7 msgid "Return a photo to its original, unedited form." @@ -750,10 +762,15 @@ msgstr "Formatos de foto y vídeo soportados" #. (itstool) path: page/p #: C/formats.page:14 +#, fuzzy +#| msgid "" +#| "Shotwell supports JPEG, PNG, TIFF, BMP and RAW photo files. Shotwell does not yet support other " +#| "graphics format such as GIF." msgid "" -"Shotwell supports JPEG, PNG, TIFF, BMP and RAW photo files. Shotwell does not yet support other graphics " -"format such as GIF." +"Shotwell supports JPEG, PNG, TIFF, BMP and RAW photo files. Shotwell does not yet support other graphics format such " +"as GIF." msgstr "" "Shotwell soporta archivos JPEG, PNG, TIFF, BMP y RAW. Shotwell todavía no soporta otros formatos " @@ -777,9 +794,13 @@ msgstr "" #. (itstool) path: page/p #: C/formats.page:18 +#, fuzzy +#| msgid "" +#| "For more information about RAW-format photos in Shotwell, please see the " +#| "RAW section." msgid "" "For more information about RAW-format photos in Shotwell, please see the " -"RAW section." +"RAW section." msgstr "" "Para obtener más información acerca de las fotos en formato RAW en Shotwell, " "consulte la sección RAW." @@ -913,9 +934,17 @@ msgstr "" #. (itstool) path: page/p #: C/import-file.page:16 +#, fuzzy +#| msgid "" +#| "Alternatively, click FileImport From Folder... and select the folder containing the photos you want to " +#| "import." msgid "" "Alternatively, click FileImport From Folder... and select the folder containing the photos you want to import." +"gui> and select the folder containing the photos you want to " +"import. If you do not want Shotwell to recurse into subfolders while " +"importing, you can uncheck the Recurse Into Subfolders checkbox " +"on the bottom of the file dialog." msgstr "" "Alternativamente, pulse ArchivoImportar desde la " "carpeta... y seleccione la carpeta que contiene las fotos que " @@ -958,57 +987,6 @@ msgstr "" "correctamente. La lista de Eventos también mostrará nuevas entradas para las " "fechas correspondientes a las fotos importadas." -#. (itstool) path: info/desc -#: C/import-f-spot.page:7 -msgid "" -"Shotwell can import all your photos and tags from the F-Spot photo manager." -msgstr "" -"Shotwell puede importar todas sus fotos y etiquetas desde el gestor de fotos " -"F-Spot." - -#. (itstool) path: page/title -#: C/import-f-spot.page:12 -msgid "Importing from F-Spot" -msgstr "Importar desde F-Spot" - -#. (itstool) path: page/p -#: C/import-f-spot.page:14 -msgid "To import an existing photo collection from F-Spot:" -msgstr "Para importar una colección de fotos existente desde F-Spot:" - -#. (itstool) path: item/p -#: C/import-f-spot.page:16 -msgid "Select FileImport From F-Spot." -msgstr "" -"Seleccione ArchivoImportar desde F-Spot." - -#. (itstool) path: item/p -#: C/import-f-spot.page:17 -msgid "" -"Now choose either the default F-Spot library or another F-Spot database. If " -"importing from another F-Spot database, select a directory and file from the " -"chooser dialog box." -msgstr "" -"Ahora elija la biblioteca predeterminada F-Spot u otra base de datos F-Spot. " -"Si quiere importar desde otra base de datos F-Spot, seleccione una carpeta y " -"un archivo en el cuadro de diálogo del selector." - -#. (itstool) path: page/p -#: C/import-f-spot.page:20 -msgid "" -"Shotwell will import your photos, together with their tags and other " -"information. Once the import is complete, you can select Last Import in the sidebar to see all photos successfully imported. The Events list " -"will also show new entries for the dates corresponding to the imported " -"photos." -msgstr "" -"Shotwell importará sus fotos, junto con sus etiquetas y otra información. " -"Una vez finalizada la importación, puede seleccionar Última " -"importación en la barra lateral para ver todas las fotos importadas " -"correctamente. La lista de Eventos también mostrará nuevas entradas para las " -"fechas correspondientes a las fotos importadas." - #. (itstool) path: info/desc #: C/import-memorycard.page:7 msgid "Import photos from a digital camera's memory card." @@ -1081,34 +1059,28 @@ msgctxt "link" msgid "Shotwell" msgstr "Shotwell" -#. (itstool) path: info/title -#: C/index.page:7 -msgctxt "text" -msgid "Shotwell" -msgstr "Shotwell" - #. (itstool) path: credit/name -#: C/index.page:9 +#: C/index.page:8 msgid "Jim Nelson" msgstr "Jim Nelson" #. (itstool) path: credit/name -#: C/index.page:11 +#: C/index.page:10 msgid "Allison Barlow" msgstr "Allison Barlow" #. (itstool) path: credit/name -#: C/index.page:13 +#: C/index.page:12 msgid "Robert Ancell" msgstr "Robert Ancell" #. (itstool) path: credit/name -#: C/index.page:15 +#: C/index.page:14 msgid "Peter Smith" msgstr "Peter Smith" #. (itstool) path: credit/name -#: C/index.page:17 +#: C/index.page:16 msgid "Phil Bull" msgstr "Phil Bull" @@ -1117,7 +1089,7 @@ msgstr "Phil Bull" #. the file changes, the md5 hash will change to let you know you need to #. update your localized copy. The msgstr is not used at all. Set it to #. whatever you like once you have updated your copy of the file. -#: C/index.page:23 +#: C/index.page:22 msgctxt "_" msgid "" "external ref='figures/shotwell_logo.png' " @@ -1127,7 +1099,7 @@ msgstr "" "md5='4b333499555b4e496b1a38f7899067f3'" #. (itstool) path: page/title -#: C/index.page:23 +#: C/index.page:22 msgid "" "Shotwell Photo " "Manager" @@ -1136,32 +1108,32 @@ msgstr "" "Shotwell" #. (itstool) path: section/title -#: C/index.page:26 +#: C/index.page:25 msgid "Importing Photos" msgstr "Importar fotos" #. (itstool) path: section/title -#: C/index.page:30 +#: C/index.page:29 msgid "Viewing Photos" msgstr "Ver fotos" #. (itstool) path: section/title -#: C/index.page:34 +#: C/index.page:33 msgid "Organizing Photos" msgstr "Organizar fotos" #. (itstool) path: section/title -#: C/index.page:38 +#: C/index.page:37 msgid "Editing Photos" msgstr "Editar fotos" #. (itstool) path: section/title -#: C/index.page:42 +#: C/index.page:41 msgid "Sharing Photos" msgstr "Compartir fotos" #. (itstool) path: section/title -#: C/index.page:46 +#: C/index.page:45 msgid "Other Features" msgstr "Otras características" @@ -1527,7 +1499,7 @@ msgstr "" "external ref='figures/trash_process.png' " "md5='ed596bda34c2f4a79a310fbc8bb51fd2'" -#. (itstool) path: page/media +#. (itstool) path: media/p #: C/organize-remove.page:15 msgid "Delete process" msgstr "Proceso de eliminado" @@ -2231,10 +2203,15 @@ msgstr "PM" #. (itstool) path: section/p #: C/other-files.page:72 +#, fuzzy +#| msgid "" +#| "There are other symbols available; please check the manual for strftime " +#| "by running the command man strftime if you need one that isn't " +#| "listed here." msgid "" -"There are other symbols available; please check the manual for strftime by " -"running the command man strftime if you need one that isn't " -"listed here." +"There are other symbols available; please check the manual for strftime by running the command man strftime " +"if you need one that isn't listed here." msgstr "" "Existen otros símbolos disponibles, revise el manual de strftime ejecutando " "el comando man strftime si necesita alguno que no esté listado " @@ -2742,7 +2719,7 @@ msgid "" "full-sized copies of the photos in your library." msgstr "" "Para exportar fotos desde Shotwell usando arrastrar y soltar, arrastre desde " -"Shotwell hacia una ventana de manejador de archivos o su escritorio. Los " +"Shotwell hacia una ventana de gestor de archivos o su escritorio. Los " "archivos nuevos serán copias de tamaño completo de las fotos de su " "biblioteca." @@ -2814,8 +2791,56 @@ msgstr "" "Una restricción de la escala (que significa cómo Shotwell va a decidir " "reducir la escala proporcionalmente), y el tamaño de píxel requerido." +#. (itstool) path: item/title +#: C/share-export.page:40 +msgid "Original size" +msgstr "" + #. (itstool) path: item/p -#: C/share-export.page:39 +#: C/share-export.page:40 +msgid "Image will be exported without any scaling applied" +msgstr "" + +#. (itstool) path: item/title +#: C/share-export.page:41 +msgid "Longest edge" +msgstr "" + +#. (itstool) path: item/p +#: C/share-export.page:41 +msgid "" +"Image will be exported by having its longest edge scaled to Pixels and the other according to the aspect ratio" +msgstr "" + +#. (itstool) path: item/title +#: C/share-export.page:42 +msgid "Width" +msgstr "" + +#. (itstool) path: item/p +#: C/share-export.page:42 +msgid "" +"The image width will have its width scaled to the given pixel size and its " +"height according to the aspect ratio. This is equivalent to Longest " +"Edge for landscape pictures." +msgstr "" + +#. (itstool) path: item/title +#: C/share-export.page:43 +msgid "Height" +msgstr "" + +#. (itstool) path: item/p +#: C/share-export.page:43 +msgid "" +"The image height will have its height scaled to the given pixel size and its " +"width according to the aspect ratio. This is equivalent to Longest " +"Edge for portrait pictures." +msgstr "" + +#. (itstool) path: item/p +#: C/share-export.page:46 msgid "" "The option whether you like to export metadatas such as tags or ratings. " "This can help to save your privacy if you have geolocation tags or tags " @@ -2826,7 +2851,7 @@ msgstr "" "etiquetas de geolocalización que nadie debería ver." #. (itstool) path: page/p -#: C/share-export.page:42 +#: C/share-export.page:49 msgid "" "If selected, Shotwell will write tags, titles, and other metadata to the new " "files." @@ -2991,18 +3016,26 @@ msgstr "" #. (itstool) path: item/p #: C/share-upload.page:18 -msgid "Facebook" +#, fuzzy +#| msgid "Facebook" +msgid "Facebook" msgstr "Facebook" #. (itstool) path: item/p #: C/share-upload.page:19 -msgid "Flickr" +#, fuzzy +#| msgid "Flickr" +msgid "Flickr" msgstr "Flickr" #. (itstool) path: item/p #: C/share-upload.page:20 +#, fuzzy +#| msgid "" +#| "Picasa Web Albums and " +#| "Google+" msgid "" -"Picasa Web Albums and " +"Picasa Web Albums and " "Google+" msgstr "" "Álbumes de Picasa Web y " @@ -3010,17 +3043,17 @@ msgstr "" #. (itstool) path: item/p #: C/share-upload.page:21 -msgid "YouTube (videos only)" +#, fuzzy +#| msgid "YouTube (videos only)" +msgid "YouTube (videos only)" msgstr "YouTube (sólo vídeos)" #. (itstool) path: item/p #: C/share-upload.page:22 -msgid "" -"Yandex.Fotki, a photo site " -"popular in Russia (photos only)" -msgstr "" -"Yandex.Fotki, una página de " -"fotos popular en Rusia (sólo fotos)" +#, fuzzy +#| msgid "YouTube (videos only)" +msgid "Tumblr (videos only)" +msgstr "YouTube (sólo vídeos)" #. (itstool) path: item/p #: C/share-upload.page:23 @@ -3033,14 +3066,23 @@ msgstr "" #. (itstool) path: page/p #: C/share-upload.page:26 +#, fuzzy +#| msgid "" +#| "To publish selected photos in a collection, choose EditPreferences and click on the Plugins " +#| "tab to enable the plugin for the service you want to publish to. Next, " +#| "choose, FilePublish, press the " +#| "Publish toolbar button or use CtrlP. You will see a dialog that lets you select a publishing " +#| "service. You will then need to log in or create an account." msgid "" "To publish selected photos in a collection, choose EditPreferences and click on the Plugins tab " "to enable the plugin for the service you want to publish to. Next, choose, " "FilePublish, press the Publish toolbar button or use CtrlP. You " -"will see a dialog that lets you select a publishing service. You will then " -"need to log in or create an account." +"gui> toolbar button or use CtrlShiftP. You will see a dialog that lets you select a publishing " +"service. You will then need to log in or create an account." msgstr "" "Para publicar las fotos seleccionadas en una colección, elija " "EditarPreferencias y pulse en la " @@ -3239,12 +3281,12 @@ msgstr "" "de su biblioteca." #. (itstool) path: page/title -#: C/view-sidebar.page:21 +#: C/view-sidebar.page:20 msgid "The sidebar" msgstr "La barra lateral" #. (itstool) path: page/p -#: C/view-sidebar.page:23 +#: C/view-sidebar.page:22 msgid "" "The sidebar on the left side of the Shotwell window lists various views of " "your library. Although you may see the same photo in multiple views, it's " @@ -3255,7 +3297,7 @@ msgstr "" "solo se almacena una en su disco duro" #. (itstool) path: page/p -#: C/view-sidebar.page:25 +#: C/view-sidebar.page:24 msgid "" "The Last Import view lists your last imported photos no matter if " "they are imported from F-Spot, your camera, a memory card or the hard disk." @@ -3265,14 +3307,14 @@ msgstr "" "o su disco duro." #. (itstool) path: page/p -#: C/view-sidebar.page:27 +#: C/view-sidebar.page:26 msgid "The Flagged lists all photos you had previous flagged." msgstr "" "La opción Marcada lista todas las fotos que ha marcado " "anteriormente." #. (itstool) path: page/p -#: C/view-sidebar.page:29 +#: C/view-sidebar.page:28 msgid "" "The Saved Search allows you to sort your library by many criteria." msgstr "" @@ -3280,7 +3322,7 @@ msgstr "" "diferentes criterios." #. (itstool) path: page/p -#: C/view-sidebar.page:31 +#: C/view-sidebar.page:30 msgid "" "The Events folder lists all events in your library. An event is a " "group of photos that were taken at approximately the same time." @@ -3289,7 +3331,7 @@ msgstr "" "evento es un grupo de fotos que se tomaron aproximadamente al mismo tiempo." #. (itstool) path: page/p -#: C/view-sidebar.page:33 +#: C/view-sidebar.page:32 msgid "" "The Tags folder lists all tags you've assigned to photos. Photos " "can have multiple tags attached to them. When you click on the name of a tag " @@ -3300,6 +3342,58 @@ msgstr "" "mismas. Cuando posiciona el cursor sobre el nombre de una etiqueta en la " "barra lateral, podrá ver todas las fotos asociadas a esa etiqueta." +#~ msgid "" +#~ "Shotwell can import all your photos and tags from the F-Spot photo " +#~ "manager." +#~ msgstr "" +#~ "Shotwell puede importar todas sus fotos y etiquetas desde el gestor de " +#~ "fotos F-Spot." + +#~ msgid "Importing from F-Spot" +#~ msgstr "Importar desde F-Spot" + +#~ msgid "To import an existing photo collection from F-Spot:" +#~ msgstr "Para importar una colección de fotos existente desde F-Spot:" + +#~ msgid "" +#~ "Select FileImport From F-Spot." +#~ msgstr "" +#~ "Seleccione ArchivoImportar desde F-Spot." + +#~ msgid "" +#~ "Now choose either the default F-Spot library or another F-Spot database. " +#~ "If importing from another F-Spot database, select a directory and file " +#~ "from the chooser dialog box." +#~ msgstr "" +#~ "Ahora elija la biblioteca predeterminada F-Spot u otra base de datos F-" +#~ "Spot. Si quiere importar desde otra base de datos F-Spot, seleccione una " +#~ "carpeta y un archivo en el cuadro de diálogo del selector." + +#~ msgid "" +#~ "Shotwell will import your photos, together with their tags and other " +#~ "information. Once the import is complete, you can select Last " +#~ "Import in the sidebar to see all photos successfully imported. The " +#~ "Events list will also show new entries for the dates corresponding to the " +#~ "imported photos." +#~ msgstr "" +#~ "Shotwell importará sus fotos, junto con sus etiquetas y otra información. " +#~ "Una vez finalizada la importación, puede seleccionar Última " +#~ "importación en la barra lateral para ver todas las fotos importadas " +#~ "correctamente. La lista de Eventos también mostrará nuevas entradas para " +#~ "las fechas correspondientes a las fotos importadas." + +#~ msgctxt "text" +#~ msgid "Shotwell" +#~ msgstr "Shotwell" + +#~ msgid "" +#~ "Yandex.Fotki, a photo site " +#~ "popular in Russia (photos only)" +#~ msgstr "" +#~ "Yandex.Fotki, una página de " +#~ "fotos popular en Rusia (sólo fotos)" + #~ msgid "Facebook" #~ msgstr "Facebook" diff --git a/help/es/es.stamp b/help/es/es.stamp deleted file mode 100644 index e69de29..0000000 diff --git a/help/es/formats.page b/help/es/formats.page deleted file mode 100644 index f41b301..0000000 --- a/help/es/formats.page +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - Shotwell soporta archivos JPEG, PNG, TIFF, BMP y RAW, así como archivos de vídeo. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Formatos de foto y vídeo soportados - -

Shotwell supports JPEG, PNG, TIFF, BMP and RAW photo files. Shotwell does not yet support other graphics format such as GIF.

- -

El soporte del formato RAW de Shotwell está actualmente limitado. Cuando ve una foto RAW, en realidad está viendo un JPEG derivado de la foto RAW, no la imagen RAW en sí. Además, la ruta de edición RAW no es completamente de 16 bits; sólo puede exportar las fotos editadas como archivos de 8 bits. Todos los formatos compatibles se pueden utilizar para la exportación (JPEG, PNG, TIFF, BMP).

- -

For more information about RAW-format photos in Shotwell, please see -the RAW section. -

- -

Shotwell también soporta archivos de vídeo en cualquier formato soportado por la biblioteca multimedia de GStreamer en el sistema donde Shotwell está funcionando. Esto normalmente incluye los siguientes formatos, entre otros:

- -

Formatos de contenedor: Ogg, QuickTime, MP4, AVI.

-

Códecs: Theora, Quicktime, MPEG-4, Motion JPEG. Tenga en cuenta que algunos sistemas operativos pueden no incluir todos los códecs que se enumeran aquí debido a restricciones legales o de licencia.

-
- -

Shotwell soporta fotos y vídeos, pero por simplicidad, esta documentación usa sólo el término «fotos» en la mayoría de ocasiones. Sin embargo, muchas operaciones en Shotwell se aplican tanto a fotos como a vídeos. En particular, los eventos, los marcados, las clasificaciones, los etiquetados y los trabajos publicados funcionan tanto para fotos como para vídeos.

- -
diff --git a/help/es/import-camera.page b/help/es/import-camera.page deleted file mode 100644 index 0f67e39..0000000 --- a/help/es/import-camera.page +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - Copiar fotos desde una cámara digital. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Importar desde una cámara - -

Para importar fotos desde una cámara digital:

- - - -

Conecte la cámara al equipo y enciéndala. Shotwell la detectará y la mostrará en la barra lateral.

-
- -

Seleccione la cámara en la barra lateral. Se mostrará la vista previa de cada una de las fotos de la cámara.

-
- -

Si quiere, puede elegir un conjunto de fotos específicas para importar. Para ello, mantenga presionada la tecla Ctrl y pulse para seleccionar las fotos individuales. Puede mantener pulsada la tecla Mayús y pulsar para seleccionar varias fotos también.

-
- -

Pulse Importar seleccionadas o Importar todo. Las fotos se copiarán de la cámara y se guardarán en el ordenador.

-
-
- -

Una vez finalizada la importación, puede abrir la vista Última importación (en la barra lateral) para ver todas las fotos que se importaron. La lista de Eventos (también en la barra lateral) también mostrará las nuevas fotos, organizadas por fecha.

-
diff --git a/help/es/import-file.page b/help/es/import-file.page deleted file mode 100644 index e20a680..0000000 --- a/help/es/import-file.page +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - Importar fotos que ya están en el equipo. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Importar desde su disco duro - -

Para importar fotos desde su disco duro a Shotwell, solo debe arrastrarlas desde su explorador a la ventana de Shotwell.

- -

Alternatively, click FileImport From Folder... and select the folder containing the photos you want to import. If you do not want Shotwell to recurse into subfolders while importing, you can uncheck the Recurse Into Subfolders checkbox on the bottom of the file dialog.

- -

Shotwell le preguntará si quiere copiar los archivos de fotos en su carpeta de la biblioteca (la carpeta de la biblioteca está normalmente en la carpeta Imágenes en su carpeta local) o importarlos en su lugar sin copiar los archivos.

- -

Si mantiene pulsada la tecla Ctrl mientras arrastra las fotos, Shotwell copiará las fotos en la carpeta de la biblioteca sin preguntar. Del mismo modo, si mantiene presionadas las teclas CtrlShift, Shotwell importará las fotos sin copiarlas.

- -

Una vez finalizada la importación, puede seleccionar Última importación en la barra lateral para ver todas las fotos importadas correctamente. La lista de Eventos también mostrará nuevas entradas para las fechas correspondientes a las fotos importadas.

- -
diff --git a/help/es/import-memorycard.page b/help/es/import-memorycard.page deleted file mode 100644 index 1623556..0000000 --- a/help/es/import-memorycard.page +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - Importar fotos desde una tarjeta de memoria de una cámara digital. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Importar desde una tarjeta de memoria - -

Para importar fotos desde una tarjeta de memoria de una cámara:

- - - -

Coloque la tarjeta en el lector de tarjetas. Asegúrese de que el lector está conectado al equipo y encendido.

-
- -

El lector de tarjetas y la tarjeta se deberían detectar automáticamente.

-
- -

Siga las instrucciones para importar fotos desde el disco duro. Si pulsa en ArchivoImportar desde la carpeta..., la tarjeta de memoria será visible como una carpeta en la barra lateral de la ventana de selección de archivos.

-
-
- -

Shotwell puede importar fotos de una tarjeta de memoria que sea compatible con su lector de tarjetas.

- -

Si la tarjeta no se detecta automáticamente, es posible que su lector de tarjetas no se haya reconocido. Intente desenchufarlo y vuelva a enchufarlo. Sin embargo, si eso no funciona, podrá importar fotos mediante conectar su cámara directamente al ordenador.

- -
diff --git a/help/es/index.page b/help/es/index.page deleted file mode 100644 index 1cd340f..0000000 --- a/help/es/index.page +++ /dev/null @@ -1,64 +0,0 @@ - - - - - Shotwell - - Jim Nelson - jim@yorba.org - Allison Barlow - allison@yorba.org - Robert Ancell - robert.ancell@canonical.com - Peter Smith - pdo.smith@gmail.com - Phil Bull - philbull@gmail.com - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - - <media type="image" src="figures/shotwell_logo.png"/>Gestor de fotos Shotwell - -
- Importar fotos -
- -
- Ver fotos -
- -
- Organizar fotos -
- -
- Editar fotos -
- -
- Compartir fotos -
- -
- Otras características -
-
diff --git a/help/es/organize-event.page b/help/es/organize-event.page deleted file mode 100644 index 552f677..0000000 --- a/help/es/organize-event.page +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - Agrupar fotos que se tomadron al mismo tiempo. Aprenda como renombrar, unir y ordenar eventos. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Eventos - -

Un evento es un grupo de fotos que se han hecho aproximadamente al mismo tiempo. Cuando importa fotos, Shotwell comprueba cuándo se hizo cada foto y las agrupa por eventos.

- -

Elija Eventos en la barra lateral para ver sus fotos organizadas por fecha. Si selecciona un mes o un año en la barra lateral, se mostrará una lista de eventos en la ventana principal. Pulse dos veces en un evento para ver todas las fotos tomadas en ese momento.

- -

Si una foto no tiene información insertada de la fecha o la hora, entonces Shotwell no puede colocarla automáticamente en ningún evento. En este caso, la foto aparecerá en la vista No hay eventos a la que se accede desde la barra lateral. Todavía puede mover la foto a cualquier evento que quiera como se describe a continuación.

- -
- Renombrar eventos - -

Para dar un nombre a un evento en lugar de referirse a él por su fecha, seleccione el evento, pulse en EventosRenombrar evento... e introduzca un nuevo nombre. Otra forma de cambiar el nombre de un evento es pulsar dos veces en su nombre en la barra lateral; Escriba un nuevo nombre y luego pulse Intro.

-
- -
- Mover fotos entre eventos - -

Aunque las fotos se agrupan inicialmente por eventos según su fecha, puede mover fotos entre eventos. Para ello, arrastre cualquier foto a la barra lateral y suéltela en un evento.

-
- -
- Crear y combinar eventos -

Para crear un evento nuevo, seleccione las fotos que quiere tener en el evento y pulse EventosNuevo evento.

-

Para combinar eventos, seleccione Eventos de la barra lateral, luego, mientras presiona Ctrl pulse en los eventos que quiere combinar en la ventana principal. Finalmente, pulse en EventosCombinar eventos.

-
- -
- Ordenar eventos - -

Los eventos se muestran en la estructura de árbol en la barra lateral, organizados por el año y el mes de la primera foto del evento. Para cambiar el orden de clasificación del evento, pulse en VistaOrdenar eventos y seleccione si quiere el orden ascendente o descendente.

- -
- -
- Cambiar la foto usada para representar cada evento - -

Si selecciona Eventos en la barra lateral, verá una única foto que representa cada evento. Esto se denomina «foto clave».

- -

De manera predeterminada, Shotwell utiliza la primera foto de cada evento como su vista de miniatura. Para utilizar una foto distinta, seleccione la foto y elija FotosDefinir vista de miniatura de eventos .

- -
- -
diff --git a/help/es/organize-flag.page b/help/es/organize-flag.page deleted file mode 100644 index 132117f..0000000 --- a/help/es/organize-flag.page +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - Marcar fotos para identificarlas como especiales o para trabajar con ellas como conjunto. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Marcar fotos - -

Shotwell le permite marcar sus fotos. Cuando se marca una foto, aparece un pequeño icono de una bandera en su esquina superior derecha. Puede seleccionar el elemento Marcada en la barra lateral para ver todas las fotos que se han marcado.

- -

Marcar una foto hace que esta sea especial. Puede interpretar esto de la manera que quiera. Por ejemplo, puede marcar todas las fotos que necesitan un ajuste visual o todas las fotos que quiere compartir con un amigo.

- -

Marcar fotos es útil porque también puede trabajar en todas las fotos marcadas como un conjunto. Por ejemplo, puede seleccionar la vista Marcada y luego subir todas las fotos marcadas a un servicio de publicación.

- -
- Para marcar o desmarcar una foto -

Para marcar o desmarcar una foto, pulse con el botón derecho en la foto y seleccione Marcar o Desmarcar desde el menú contextual. O pulse use los atajos del teclado CtrlG o /.

-
- -
diff --git a/help/es/organize-rating.page b/help/es/organize-rating.page deleted file mode 100644 index 41a0797..0000000 --- a/help/es/organize-rating.page +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - Asigne a las fotos una puntuación entre 1 y 5. Puede rechazar las fotos malas, ocultándolas en la vista. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Valoraciones -

Puede asignar a cada foto una puntuación entre 1 y 5, o marcarla como rechazada, en cuyo caso Shotwell la ocultará de manera predeterminada.

- -

Puede valorar una foto o un conjunto de fotos de cualquiera de estas maneras:

- - -

Seleccione las fotos y luego escoja una puntuación en el menú FotoEstablecer puntuación del nivel superior.

-

Pulse con el botón derecho en las fotos y luego escoja su puntuación en el menú contextual «Establecer puntuación».

-

Seleccione la foto o las fotos, luego pulse cualquiera de los atajos del teclado 1, 2, 3, 4 o 5 para asignar una puntuación. Pulse 9 para marcar las fotos como rechazadas o pulse 0 para borrar las puntuaciones.

-
- -

Normalmente, Shotwell muestra todas las fotos excepto las rechazadas. Puede establecer un filtro de puntuaciones diferente utilizando el menú VistaFiltrar fotos. Por ejemplo, puede mostrar sólo las fotos con puntuación de 3 estrellas o más, o puede mostrar todas las fotos, incluidas las marcadas como rechazadas. El icono Shotwell de la barra de herramientas muestra el filtro de puntuación actual y también se puede utilizar para configurar el filtro.

- -

Shotwell normalmente muestra la puntuación de cada foto en su esquina inferior izquierda. Puede desactivar la visualización de las puntuaciones utilzando el elemento del menú VistaValoraciones.

- -

Puede aumentar o disminuir la puntuación de una foto utilizando los comandos Establecer puntuaciónAumentar y Establecer puntuaciónDisminuir, o los atajos del teclado < y >.

-
diff --git a/help/es/organize-remove.page b/help/es/organize-remove.page deleted file mode 100644 index 7b4b40b..0000000 --- a/help/es/organize-remove.page +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - Quitar fotos de la biblioteca, o eliminarlas por completo del equipo. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Quitar y eliminar fotos - -

Puede eliminar las fotos de su biblioteca y también puede eliminarlas de su disco duro.

-

Proceso de eliminado

-

Este diagrama muestra cómo, cuando se elimina una foto, se pone primero en la papelera de Shotwell. Si la elimina de la papelera de Shotwell, se mueve a la papelera de su equipo. Si la elimina de la papelera del equipo, se eliminará permanentemente.

-
- Quitar fotos de la biblioteca -

Seleccione las fotos que quiere quitar y elija EditarMover a la papelera. (También puede pulsar la tecla Supr.) Las fotos se moverán de su biblioteca a la papelera de Shotwell.

-

Si quiere quitar las fotos de Shotwell sin tener que moverlas a la papelera, simplemente seleccione las fotos que va a quitar y elija EditarEliminar de la biblioteca. Los archivos de fotos se dejarán en su lugar en el disco.

-
- -
- Vaciar o restaurar la carpeta de la papelera -

Seleccione la entrada de la papelera en la barra lateral y Shotwell mostrará todas las fotos que se han marcado para quitar o eliminar. En la vista de la papelera están disponibles los siguientes comandos:

- - Eliminar

Eliminar las fotos seleccionadas de la carpeta de la papelera

- Restaurar

Restaurar las fotos seleccionadas en Shotwell.

- Vaciar la papelera

Eliminar todas las fotos de la papelera.

-
-
- -
- Eliminar o vaciar la papelera -

Cuando elimine archivos de la carpeta Papelera, o cuando la vacíe, se le ofrecerán las siguientes opciones:

- - Solo eliminar

Quitar fotos de la biblioteca pero mantener las fotos en su ubicación dentro del equipo.

- Archivo de Papelera

Quitar fotos de la biblioteca y eliminarlas del equipo.

- Cancelar

No hacer nada.

-
-
- -
diff --git a/help/es/organize-search.page b/help/es/organize-search.page deleted file mode 100644 index 013bfa7..0000000 --- a/help/es/organize-search.page +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - Buscar fotos y vídeos en su colección siguiendo varios criterios. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Búsqueda - -

Hay dos maneras de hacer una búsqueda en Shotwell: con la barra de herramientas de filtro, y con una búsqueda guardada. La barra de búsqueda le permite buscar rápidamente la vista actual para ciertos criterios. Las búsquedas guardadas tienen criterios de búsqueda más complejos y se mantienen en la barra lateral entre sesiones.

- - - -
- Búsqueda guardada -

Una búsqueda guardada se mantiene entre sesiones de Shotwell, y se actualiza con las fotos y vídeos que se añaden o quitan de su biblioteca de Shotwell.

- -

Cree una nueva búsqueda guardada con EditarNueva búsqueda guardada... o pulsando CtrlS. El cuadro de diálogo le permite introducir un nombre para la búsqueda y seleccionar si quiere marcar alguno, todos o ninguno de los criterios de las siguientes filas.

- -

Cada fila representa un criterio de búsqueda. Pulse el botón + para añadir más filas y el botón - para eliminar una fila específica. El cuadro combinado de la izquierda de cada fila selecciona el tipo de criterios. Los criterios se deben introducir correctamente antes de que el botón Aceptar esté disponible.

-
- -
diff --git a/help/es/organize-tag.page b/help/es/organize-tag.page deleted file mode 100644 index 686a6c2..0000000 --- a/help/es/organize-tag.page +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - Organizar las fotos etiquetándolas. - - - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Etiquetar fotos - -

Puede asignar una o más etiquetas a las fotos seleccionadas. Una etiqueta puede constar de una o más palabras que quiera asociar a esas fotos.

- -

Para añadir etiquetas nuevas a las fotos, seleccione las fotos que quiere etiquetar y siga estos pasos:

- - -

Elija EtiquetasAñadir etiquetas....

-

Pulse CtrlT.

-

Arrastre las fotos y suéltelas en la etiqueta que quiera.

-
- -

Cuando pulse CtrlT o EtiquetasAñadir etiquetas... puede escribir los nombres de una o más etiquetas, separadas por comas. Una vez que haya creado una etiqueta, puede renombrarla seleccionando esa etiqueta en la barra lateral y eligiendo EtiquetasRenombrar etiqueta "[nombre]"... pulsando con el botón derecho y eligiendo Renombrar... o pulsando dos veces en la etiqueta de la barra lateral.

- -

Para cambiar las etiquetas asociadas a una foto en particular, seleccione esa foto, elija EtiquetasModificar etiquetas... o pulse con el botón derecho en una foto y seleccione Modificar etiquetas... y edite la lista separada por comas. Para quitar una etiqueta de una o más fotos, primero seleccione esa etiqueta en la barra lateral, luego seleccione las fotos que quiere quitar y elija EtiquetasQuitar etiquetas "[nombre]" de fotos o pulse con el botón derecho en las fotos y seleccione Quitar etiquetas "[nombre]" de fotos.

- -

Para eliminar por completo una etiqueta, selecciónela en la barra latera y elija EtiquetasEliminar etiqueta «nombre» o púlsela con el botón derecho y elija Eliminar etiqueta «nombre».

- -

Cuando crea una etiqueta, aparecerá en la barra lateral bajo el elemento Etiquetas, que se oculta si no hay etiquetas. Las fotos pueden tener múltiples etiquetas relacionadas con las mismas. Cuando posiciona el cursor sobre el nombre de una etiqueta en la barra lateral, podrá ver todas las fotos asociadas a esa etiqueta.

- -
- Etiquetas jerárquicas -

Shotwell también soporta etiquetas jerárquicas. Puede reordenar sus etiquetas arrastrando y soltando una etiqueta sobre otra. Para crear una etiqueta hija nueva, pulse con el botón derecho sobre una etiqueta y elija Nuevo.

- -

Las etiquetas jerárquicas le pueden ayudar a ordenar su lista de etiquetas de manera que se ajuste a mejor a lo que necesita; por ejemplo, puede tener las etiquetas «Montañas» o «Playa» dentro de la etiqueta «Lugares», que a su vez puede estar dentro de la etiqueta «Vacaciones de verano».

- -

Tenga en cuenta que al eliminar una etiqueta padre también se eliminarán las etiquetas hijas.

-
-
diff --git a/help/es/organize-title.page b/help/es/organize-title.page deleted file mode 100644 index ae1e2b9..0000000 --- a/help/es/organize-title.page +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - Asignar títulos a las fotos. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Títulos - -

La casilla de VistaTítulos activa la visualización de títulos debajo de cada foto. De manera predeterminada, el título de la foto es su nombre de archivo.

- -

Para cambiar el título de una foto, selecciónela y pulse FotosEditar título, o pulse F2.

- -
diff --git a/help/es/other-files.page b/help/es/other-files.page deleted file mode 100644 index e6739f1..0000000 --- a/help/es/other-files.page +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - Mantener la biblioteca de Shotwell sincronizada con los archivos de fotos del disco. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Archivos de fotos - -

Cada foto de la biblioteca de Shotwell se corresponde con un archivo almacenado en su disco duro. Shotwell tienen varias características que le ayudan a mantener su biblioteca y los archivos del disco sincronizados.

- - -
- Usar un patrón de carpeta predeterminado -

Shotwell le permite especificar como llamar a sus carpetas en una biblioteca. Puede hacer esto cambiando las configuraciones de Estructura del directorio y Patrón en el cuadro de diálogo Preferencias. Puede utilizar un patrón preseleccionado, o escoger Personalizado y escribir el suyo.

- -

Los símbolos disponibles para los patrones de carpetas empiezan por «%» (signo de porcentaje). Los valores que estos símbolos producen dependen de la configuración regional, por lo que lo que vea en su equipo puede ser diferente a estos ejemplos.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Símbolo

Significado

Ejemplo

%Y

Año: completo

2011

%y

Año: dos dígitos

11

%d

Día del mes, empezando por cero

03

%A

Nombre del día: completo

Miércoles

%a

Nombre del día: abreviado

Mié

%m

Número de mes, empezando por cero

02

%b

Nombre del mes: abreviado

Feb

%B

Nombre del mes: completo

Febrero

%I

Hora: formato de 12 horas

05

%H

Hora: formato de 24 horas

17

%M

Minuto

16

%S

Segundo

30

%p

AM o PM

PM

- -

- There are other symbols available; please check the manual for strftime by running - the command man strftime if you need one that isn't listed here. -

-
- -
- Importar fotos automáticamente - -

Shotwell puede automáticamente importar nuevas fotos que aparezcan en la carpeta de la biblioteca. (La carpeta de la biblioteca está usualmente en la carpeta Imágenes en su carpeta local; puede cambiar esta ubicación en la ventana Preferencias.)

- -

Para activar la importación automática, marca la opción Vigilar mi colección en búsqueda de archivos nuevos en la ventana Preferencias.

- -

Shotwell también puede seguir los enlaces simbólicos en carpetas importadas automáticamente.

- -
- -
- Renombrar a minúsculas automáticamente las fotos importadas - -

Shotwell puede cambiar automáticamente los nombres de las fotos importadas a minúsculas. Para activar esto, escoja EditarPreferencias, y en la ventana de Preferencias, marque la casilla Renombrar los archivos importados a minúsculas.

- -
- -
- Escribir metadatos al vuelo - -

De manera predeterminada, Shotwell no modifica los archivos de fotos, aunque las edite o cambie sus etiquetas o títulos. Shotwell guardará estos cambios únicamente en su propia base de datos.

- -

Para cambiar este comportamiento, puede activar la casilla Escribir etiquetas, títulos y otros metadatos a los archivos en el cuadro de diálogo Preferencias. Cuando esta opción se activa, Shotwell escribirá los siguientes metadatos a la mayoría de los archivos cada vez que los modifique en Shotwell.

- - -

títulos

-

etiquetas

-

valoraciones

-

información de rotación

-

fecha/hora

-
- -

Shotwell almacena esta información en archivos de fotos en formato EXIF, IPTC y/o XMP. Tenga en cuenta que Shotwell sólo puede escribir en archivos de fotos en formato JPEG, PNG y TIFF, no en fotos en BMP, RAW o en archivos de vídeo.

- -
- -
- Monitorizazión en tiempo de ejecución - -

Mientras Shotwell está en ejecución, tiene en cuenta los cambios realizados en un archivo de una foto externamente. Cuando el archivo cambia, Shotwell vuelve a leer el archivo y actualiza la vista de la foto y sus metadatos.

- -

Tenga en cuenta que Shotwell comprueba todos los archivos de fotos para ver si hay cambios al inicio, pero sólo los archivos de fotos contenidos en la carpeta de la biblioteca se supervisan en tiempo real después del inicio. Esperamos eliminar esta limitación en una nueva versión.

- -
- -
diff --git a/help/es/other-missing.page b/help/es/other-missing.page deleted file mode 100644 index 511938d..0000000 --- a/help/es/other-missing.page +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - Si Shotwell no puede encontrar una foto en su biblioteca, la marca como ausente. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Fotos ausentes - -

Cada vez que Shotwell se inicia, analiza su biblioteca de fotos para verificar que todos los archivos de fotos siguen existiendo en el disco duro. Si Shotwell encuentra que falta alguna foto, no la mostrará en las vistas normales de Fotos, Eventos o Etiquetas, sino que la mostrará en una vista de Fotos ausentes separada que aparecerá en la barra lateral.

- -

Si ya no quiere que los archivos que faltan formen parte de su colección Shotwell (tal vez porque los ha eliminado), vaya a la vista de Fotos ausentes, seleccione las fotos y, a continuación, pulse en Eliminar de la biblioteca.

- -

Si tiene fotos en un disco externo, como un CD o un pendrive USB y las importa en Shotwell sin copiarlas al equipo, se mostrarán como archivos ausentes cuando desconecte el disco extraíble. Consulte la para aprender cómo copiar archivos desde discos extraíbles a su equipo.

- -

Si una foto ausente vuelve a estar disponible, Shotwell lo tendrá en cuenta la próxima vez que se inicie. Las fotos volverán a aparecer en las vistas de Fotos, Eventos y Etiquetas.

- -
diff --git a/help/es/other-multiple.page b/help/es/other-multiple.page deleted file mode 100644 index de127bd..0000000 --- a/help/es/other-multiple.page +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - Puede abrir Shotwell con una biblioteca de fotos diferente usando la línea de comandos. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Varias bibliotecas - -

Normalmente, Shotwell almacena su base de datos y miniaturas de fotos en la carpeta ~/.shotwell. Esta carpeta no contiene fotos, pero la base de datos de esta carpeta contiene una lista de todas las fotos de la biblioteca de Shotwell.

- -

Como característica avanzada, es posible tener varias bibliotecas de Shotwell, cada una de ellas con su propio conjunto de fotos. Cada biblioteca necesita su propia carpeta de base de datos. Para ejecutar Shotwell con una biblioteca diferente, especifique una base de datos alternativa en la línea de comandos como sigue:

- - -shotwell -d [carpeta-biblioteca] - - -
diff --git a/help/es/other-plugins.page b/help/es/other-plugins.page deleted file mode 100644 index b735060..0000000 --- a/help/es/other-plugins.page +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - Ampliar la funcionalidad de Shotwell dinámicamente. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Complementos -

Shotwell se puede usar con complementos, que son bibliotecas compartidas complementarias que pueden agregar soporte para nuevos destinos de publicación o nuevas transiciones de presentación de diapositivas.

- -

Para ver una lista de los complementos instalados, elija EditarPreferencias, y en la ventana de Preferencias pulse en la pestaña Complementos. Verá una lista de los complementos actualmente instalados, cada uno con una casilla mediante la que puede activarlos o desactivarlos por su nombre.

- -

La documentación completa sobre cómo desarrollar nuevos complementos está disponible en http://redmine.yorba.org/projects/shotwell/wiki/ShotwellArchWritingPlugins

- -
diff --git a/help/es/raw.page b/help/es/raw.page deleted file mode 100644 index d8604af..0000000 --- a/help/es/raw.page +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - Más sobre el soporte RAW en Shotwell. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Soporte de RAW en Shotwell -

Algunas cámaras tienen la capacidad de almacenar datos directamente del sensor y en un archivo que contiene información adicional de color; Esto se conoce comúnmente como «RAW» o «cámara RAW», y Shotwell soporta estos archivos también.

- -

Dado que las fotografías RAW normalmente no se pueden mostrar directamente, sino que deben ser desarrolladas por primera vez (se interpreta y se prepara su información adicional para mostrarse) la mayoría de las cámaras incorporarán un JPEG dentro de un archivo en formato RAW, o producirán un JPEG junto con el archivo RAW en el momento en que se toma la foto. Este último se refiere a todo este documento como RAW+JPEG. Si importa una pareja de RAW+JPEG, Shotwell los mantendrá sincronizados y los tratará como un elemento de su biblioteca.

- -

Al importar un archivo RAW, puede elegir entre usar el desarrollador JPEG interno de la cámara o el de Shotwell seleccionando FotosDesarrollador en los menús.

- - -

Cambiar entre desarrolladores hará que todas las ediciones hechas en una foto se descarten.

-
- -

Para publicar o usar una foto RAW en la mayoría de los programas, primero se debe exportar. Shotwell puede exportar sus fotos RAW en formato JPEG, PNG, TIFF o BMP y, al publicarlas, exportará internamente una versión JPEG para y la publicará.

- -
diff --git a/help/es/running.page b/help/es/running.page deleted file mode 100644 index 5a33ac4..0000000 --- a/help/es/running.page +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - Busque Shotwell en el menú Aplicaciones o haga que se inicie automáticamente cuando conecta una cámara. - - - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Ejecutar Shotwell - -

Una vez instalado, Shotwell estará disponible en su menú Aplicaciones, en Gráficos o en Fotografía.

- -

Shotwell también se puede ejecutar automáticamente cuando una cámara está conectada a su ordenador. Para comprobar que su sistema está configurado para ejecutar Shotwell cuando se detecta una cámara, pulse en EditarPreferencias en cualquier ventana de Nautilus (explorador) y elija la pestaña Media.Verá un cuadro desplegable titulado Fotos: que le permitirá elegir Shotwell como su aplicación de gestión de fotos.

- - -

También puede ejecutar Shotwell directamente desde la carpeta en la que se construyó, pero esto sólo se recomienda para probar Shotwell o para desarrolladores.

-
- -
diff --git a/help/es/share-background.page b/help/es/share-background.page deleted file mode 100644 index b0b852e..0000000 --- a/help/es/share-background.page +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - Configure su fondo de escritorio como una única foto o como una presentación de fotos. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Configurar un fondo de escritorio o presentación - -

Para establecer una única foto como fondo del escritorio, seleccione la foto y escriba ArchivoEstablecer como fondo del escritorio.

- -

También puede configurar su fondo para una presentación de fotos. Para ello, seleccione las fotos de la presentación y elija ArchivoEstablecer como presentación de diapositivas de escritorio.... Shotwell le pedirá el tiempo de duración de cada diapositiva, que puede ser desde cualquier intervalo de tiempo hasta un día. La presentación de diapositivas de fondo continuará incluso cuando Shotwell no esté funcionando.

- -
diff --git a/help/es/share-export.page b/help/es/share-export.page deleted file mode 100644 index 6a71941..0000000 --- a/help/es/share-export.page +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - Copiar fotos fuera Shotwell, para poder ponerlas en cualquier otro lugar. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Exportar fotos - -

Para exportar fotos desde Shotwell usando arrastrar y soltar, arrastre desde Shotwell hacia una ventana de manejador de archivos o su escritorio. Los archivos nuevos serán copias de tamaño completo de las fotos de su biblioteca.

- -

Alternativamente, seleccione un conjunto de fotos y elija el comando ArchivoExportar... o pulse ShiftCtrlE , para exportar las fotos y al mismo tiempo ajustar el tamaño y las dimensiones de sus archivos de fotos. Aparecerá una ventana que le permitirá realizar varias opciones:

- - -

Un formato al que exportar.

- -

Selecione Sin modificar para exportar las fotos en su formato original, sin ninguna modificación hecha en Shotwell. Las fotos en bruto se exportarán en su formato original.

-

Escoja Actual para exportar las fotos, incluyendo las editadas en Shotwell. Las fotos en bruto se exportarán en formato JPEG si las editó en Shotwell, y si no en su formato en bruto original.

-

O puede seleccionar un formato de imagen específico (JPEG, PNG,TIFF, BMP) para usar en la exportación. Cualquier edición hecha en Shotwell se incluirá, y Shotwel convertirá las fotos al formato de destino.

-
-
-

La calidad de la imagen al exportarla (baja, media, alta o máxima).

-

Una restricción de la escala (que significa cómo Shotwell va a decidir reducir la escala proporcionalmente), y el tamaño de píxel requerido.

- -Original size

Image will be exported without any scaling applied

-Longest edge

Image will be exported by having its longest edge scaled to Pixels and the other according to the aspect ratio

-Width

The image width will have its width scaled to the given pixel size and its height according to the aspect ratio. This is equivalent to Longest Edge for landscape pictures.

-Height

The image height will have its height scaled to the given pixel size and its width according to the aspect ratio. This is equivalent to Longest Edge for portrait pictures.

-
-
-

La opción de si quiere exportar metadatos como etiquetas o puntuaciones puede ayudar a preservar su privacidad en caso de que tenga etiquetas o etiquetas de geolocalización que nadie debería ver.

-
- -

Si está seleccionada, Shotwell escribirá etiquetas, títulos y otros metadatos a los nuevos archivos.

- -
diff --git a/help/es/share-print.page b/help/es/share-print.page deleted file mode 100644 index 5d583fa..0000000 --- a/help/es/share-print.page +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - Pulse ArchivoImprimir.... Para más opciones de impresión, seleccione la pestaña Configuración de página en el diálogo Imprimir. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Imprimir - -

Para imprimir una foto, selecciónela y elija ArchivoImprimir.

- -

Shotwell puede también imprimir varias imágenes en una página; para hacer esto, seleccione las imágenes, elija ArchivoImprimir y en el cuadro de diálogo Imprimir, seleccione la pestaña Configuraciones de la imagen. EnConfiguración de la imagen, elija una de las opciones múltiples imágenes por página en Tamaño automático.

- -

Si quiere establecer el formato, el tamaño del papel, y la orientación, seleccione la pestaña Configuración de la páginaen el cuadro de diálogo Imprimir antes de imprimir.

-
diff --git a/help/es/share-send.page b/help/es/share-send.page deleted file mode 100644 index dac2afa..0000000 --- a/help/es/share-send.page +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - Enviar fotos por correo-e, mensajería instantánea u otras maneras. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Enviar fotos - -

Shotwell puede enviar fotos usando el mecanismo de «Enviar a» de GNOME, lo que le permite enviar fotos por correo-e, mensajería instantánea u otras maneras.

-

Para enviar fotos, selecciónelas en Shotwell y después escojaArchivoEnviar a..., o pulse con el botón derecho en las fotos y escoja Enviar a ... del menú contextual. Aparecerá una caja de diálogo en donde puede escoger la forma para enviar los archivos (como correo electrónico o mensaje instantáneo) y el destino. Puede, opcionalmente, enviar los archivos en un formato comprimido.

- -
diff --git a/help/es/share-slideshow.page b/help/es/share-slideshow.page deleted file mode 100644 index 5118a26..0000000 --- a/help/es/share-slideshow.page +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - Ver sus fotos como diapositivas. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Diapositivas - -

Para ver una presentación de diapositivas en Shotwell, navegue hasta la colección y elija VerPresentación o pulse F5.

- -

Puede cambiar algunas configuraciones de una presentación de diapositivas en ejecución:

- - -

La duración de cuánto tiempo se debe mostrar una imagen: 1 - 30 segundos

-

Puede seleccionar diferentes efectos de transición.

-

El tiempo para cada efecto de transición: 0.1 - 1.0 segundos

-
-
diff --git a/help/es/share-upload.page b/help/es/share-upload.page deleted file mode 100644 index fbd0153..0000000 --- a/help/es/share-upload.page +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - Publica fotos en Facebook, Flickr, álbumes web de Picasa o en otros sitios. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Publicar en la web - -

Gracias al uso de complementos, Shotwell puede publicar fotos y vídeos en los siguientes servicios, para los que se requiere una cuenta.

- - -

Facebook

-

Flickr

-

Picasa Web Albums and Google+

-

YouTube (videos only)

-

Tumblr (videos only)

-

Cualquier sitio que ejecute el software de galería de fotos Piwigo (sólo fotos)

-
- -

To publish selected photos in a collection, choose EditPreferences and - click on the Plugins tab to enable the plugin for the service you want to publish to. Next, choose, - FilePublish, press the Publish toolbar button or use CtrlShiftP. - You will see a dialog that lets you select a publishing service. You will then need to log in or create an account.

- -

Publicar en Facebook requiere que conceda ciertos permisos a la aplicación Conectar Shotwell con Facebook. Solo necesita conceder los permisos una vez, la primera vez que asocie Shotwell con su cuenta de Facebook.

-

Solo podrá publicar imágenes con el permiso que concedió a la aplicación Facebook de Shotwell

- -

Del mismo modo, publicar en Flickr requiere que inicie sesión y permita que Shotwell Connect acceda a su cuenta.

- -

Si tiene una cuenta de Google, pero nunca ha usado los álbumes web de Picasa, necesitará iniciar sesión en Picasa usando un navegador antes de poder publicar algo en este servicio.

-
diff --git a/help/es/view-displaying.page b/help/es/view-displaying.page deleted file mode 100644 index 53ccf41..0000000 --- a/help/es/view-displaying.page +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - Aprenda sobre diferentes formas de ver sus fotos: en una cuadrícula, llenando la ventana principal o a pantalla completa. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Vistas de fotos - -

Cuando selecciona cualquier colección en la barra lateral, Shotwell muestra todas las fotos en esa colección en la ventana principal. En la esquina inferior derecha hay un control deslizante que puede ajustar el tamaño de las vistas miniatura. Puede ajustar el tamaño de las miniaturas usando las teclas más y menos (+ y -) o presionando Ctrl mientras mueve la rueda central del ratón.

- -

Puede ver la vista de la foto en pantalla completa pulsando dos veces. Desde ahí puede moverse a otras fotos en la colección con los botones de retroceso y avance. Puede regresar a la colección, pulsando dos veces en la foto o presionando Esc.

- -

Al visualizar una foto en pantalla completa, el control deslizante de la barra de herramientas controla el zoom. Puede desplazarse agarrando y arrastrando donde quiera en la foto. También puede hacer zoom utilizando la rueda de desplazamiento o pulsando los siguientes atajos de teclado: Ctrl0 para la imagen completa, Ctrl1 para el 100% (1 pixel de la foto = 1 pixel de la pantalla), y Ctrl2 para el 200% (1 pixel de la foto = 2x2 pixeles de la pantalla).

- -

Shotwell ofrece un modo de pantalla completa para mostrar las fotos. Escoja VerPantalla completa o presione F11. Para ver la barra de herramientas de pantalla completa, mueva su ratón a la parte inferior de la pantalla. La barra de herramientas le ofrece botones para moverse a través de la colección, para fijar la barra de herramientas (así esta no se ocultará cuando mueva el ratón), y dejar la vista de pantalla completa.

- -
-Ver vídeos -

Cuando pulse dos veces sobre un vídeo, Shotwell lanzará un reproductor de vídeo externo para reproducir el vídeo. Actualmente no es posible mostrar un vídeo en modo a pantalla completa o reproducirlo dentro del propio Shotwell

-
- -
diff --git a/help/es/view-information.page b/help/es/view-information.page deleted file mode 100644 index a8ce41d..0000000 --- a/help/es/view-information.page +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - Ver información más detallada sobre las fotos, como el modo de exposición usado por la cámara. - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - Información básica y extendida - -

El panel de información básica aparece en la parte inferior de la barra lateral, y muestra un breve resumen de las fotos que ha seleccionado. Si no se ha seleccionado ninguna foto, muestra un resumen de la colección completa. Puede cambiar la visibilidad de este panel usando el comando VerInformación básica.

- -

La ventana flotante de información extendida muestra más información sobre la foto seleccionada. El comando VistaInformación extendida o CtrlShiftX activa la visualización de esta ventana.

- -
diff --git a/help/es/view-sidebar.page b/help/es/view-sidebar.page deleted file mode 100644 index 958f5b5..0000000 --- a/help/es/view-sidebar.page +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - La barra lateral de la izquierda de la ventana lista varios tipos de vistas de su biblioteca. - - - - - - - - - - - - - Marina Prado - mapraro93@hotmail.com - 2016 - - - - Daniel Mustieles - daniel.mustieles@gmail.com - 2014 - 2016 - - - - Dámaris Letelier - dam.letelier@gmail.com - 2014 - - - - La barra lateral - -

La barra lateral a la izquierda de la ventana de Shotwell lista varias vistas de su biblioteca. Aunque puede ver muchas vistas de la misma foto, solo se almacena una en su disco duro

- -

La vista Última importación lista sus últimas fotos importadas no importa si estas se importaron de F-Spot, su cámara, una tarjeta de memoria o su disco duro.

- -

La opción Marcada lista todas las fotos que ha marcado anteriormente.

- -

La Búsqueda guardada le permite ordenar su biblioteca bajo diferentes criterios.

- -

La carpeta de Eventos lista todos los eventos en su biblioteca.Un evento es un grupo de fotos que se tomaron aproximadamente al mismo tiempo.

- -

La carpeta Etiquetas lista todas las etiquetas que ha asignado a sus fotos. Las fotos pueden tener múltiples etiquetas relacionadas con las mismas. Cuando posiciona el cursor sobre el nombre de una etiqueta en la barra lateral, podrá ver todas las fotos asociadas a esa etiqueta.

- -
diff --git a/help/fr/fr.po b/help/fr/fr.po new file mode 100644 index 0000000..48b9ee1 --- /dev/null +++ b/help/fr/fr.po @@ -0,0 +1,3340 @@ +# French translation for shotwell. +# Copyright (C) 2014-2018 shotwell's COPYRIGHT HOLDER +# This file is distributed under the same license as the shotwell package. +# Julien Hardelin , 2014. +# arverne73 , 2017. +# +msgid "" +msgstr "" +"Project-Id-Version: shotwell master\n" +"POT-Creation-Date: 2018-06-25 16:10+0000\n" +"PO-Revision-Date: 2018-07-05 15:01+0200\n" +"Last-Translator: arverne73 \n" +"Language-Team: GNOME French Team \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. Put one translator per line, in the form NAME , YEAR1, YEAR2 +msgctxt "_" +msgid "translator-credits" +msgstr "" +"Julien Hardelin , 2014\n" +"Jean-Paul Bérard , 2017,2018" + +#. (itstool) path: info/desc +#: C/edit-adjustments.page:7 +msgid "Change the exposure, saturation, tint, and shadows of a photo." +msgstr "" +"Modifier l’exposition, la saturation, la teinte et les ombres d’une photo." + +#. (itstool) path: page/title +#: C/edit-adjustments.page:12 +msgid "Color adjustments" +msgstr "Ajustements de couleurs" + +#. (itstool) path: page/p +#: C/edit-adjustments.page:14 +msgid "" +"The Adjust button opens a floating window with a histogram and " +"sliders to adjust a photo's exposure, saturation, tint, temperature, and " +"shadows. The histogram also has sliders to reduce the upper and lower " +"intensity thresholds of the photograph, expanding the contrast of the middle " +"range." +msgstr "" +"Le bouton Ajuster ouvre une fenêtre flottante avec un histogramme " +"et des curseurs pour ajuster l’exposition, la saturation, la teinte, la " +"température de couleur et les ombres d’une photo. L’histogramme possède " +"également des curseurs pour réduire les seuils d’intensité haut et bas, afin " +"d’étendre le contraste de l’intervalle médian." + +#. (itstool) path: page/p +#: C/edit-adjustments.page:16 +msgid "" +"The Enhance button adjusts the histogram and shadows sliders to " +"improve the quality of a photo." +msgstr "" +"Le bouton Améliorer ajuste l’histogramme et les curseurs d’ombre " +"pour améliorer la qualité de la photo." + +#. (itstool) path: page/p +#: C/edit-adjustments.page:18 +msgid "" +"When the photo's colors and contrast are to your liking, press OK " +"to save the changes. Reset will return the image to its original " +"state. Cancel discards all changes you've made." +msgstr "" +"Quand les couleurs et le contraste de la photo sont à votre convenance, " +"cliquez sur Valider pour enregistrer les modifications. " +"Réinitialiser restaure l’image à son état original. Annuler supprime tous les changements que vous avez apportés." + +#. (itstool) path: section/title +#: C/edit-adjustments.page:21 +msgid "What do the color adjustments do?" +msgstr "Rôle de l’ajustement de couleurs" + +#. (itstool) path: item/title +#: C/edit-adjustments.page:24 +msgid "Exposure" +msgstr "Exposition" + +#. (itstool) path: item/p +#: C/edit-adjustments.page:25 +msgid "" +"Changes the brightness to make it look like the photo was exposed for a " +"longer or shorter time. Use this to correct under- or over-exposed photos." +msgstr "" +"Modifie la luminosité pour que la photo paraisse avoir été exposée un temps " +"plus court ou plus long. Sert à corriger les photos sur ou sous-exposées." + +#. (itstool) path: item/title +#: C/edit-adjustments.page:28 +msgid "Contrast" +msgstr "Contraste" + +#. (itstool) path: item/p +#: C/edit-adjustments.page:29 +msgid "" +"Changes the contrast of a photo. Use it to correct flat-looking photos or " +"photos where the difference between bright and dark spots seems to big." +msgstr "" +"Modifie le contraste d’une photo. À utiliser pour corriger soit les photos " +"ternes soit les photos où la différence entre les points clairs et sombres " +"paraît trop importante." + +#. (itstool) path: item/title +#: C/edit-adjustments.page:32 +msgid "Saturation" +msgstr "Saturation" + +#. (itstool) path: item/p +#: C/edit-adjustments.page:33 +msgid "" +"Changes how vivid colors look. If your photo looks gray and washed out, try " +"increasing the saturation. If colors look too bold, try decreasing it." +msgstr "" +"Rend les couleurs plus ou moins éclatantes. Si votre photo paraît trop terne " +"et délavée, essayez d’augmenter la saturation. Si les couleurs sont trop " +"fortes, essayez de la diminuer." + +#. (itstool) path: item/title +#: C/edit-adjustments.page:36 +msgid "Tint" +msgstr "Teinte" + +#. (itstool) path: item/p +#: C/edit-adjustments.page:37 +msgid "" +"This tints the photo with a color. It's useful for correcting photos taken " +"with the wrong white balance setting, which typically have an unnatural " +"color cast. For example, photos taken outdoors with the white balance set to " +"\"Tungsten\" may have a blue cast." +msgstr "" +"Change la teinte, la nuance d’une couleur. C’est utile pour corriger des " +"photos prises avec un mauvais réglage de la balance des blancs qui ont une " +"dominante colorée non naturelle. Par exemple, des photos prises à " +"l’extérieur avec un réglage de la balance des blancs sur « Tungstène » ont " +"souvent une dominante bleue." + +#. (itstool) path: item/title +#: C/edit-adjustments.page:40 +msgid "Temperature" +msgstr "Température de couleur" + +#. (itstool) path: item/p +#: C/edit-adjustments.page:41 +msgid "" +"Changes how \"warm\" or \"cool\" the picture looks. Use this to make cold, " +"depressing scenes look more lively, for example." +msgstr "" +"Modifie l’aspect « chaud » ou « froid » de la photo. Utilisez-la, par " +"exemple, pour rendre des scènes froides et déprimantes plus vivantes." + +#. (itstool) path: item/title +#: C/edit-adjustments.page:44 +msgid "Shadows" +msgstr "Ombres" + +#. (itstool) path: item/p +#: C/edit-adjustments.page:45 +msgid "" +"This makes shadowy areas appear lighter. Use this to make detail more " +"visible if it's obscured by the darkness of a shadow." +msgstr "" +"Ceci permet de rendre des zones d’ombre plus claires. Â utiliser pour rendre " +"des détails plus visibles s’ils sont obscurcis par la noirceur d’une ombre." + +#. (itstool) path: item/title +#: C/edit-adjustments.page:48 +msgid "Intensity Threshold (sliders on the histogram)" +msgstr "Seuil d’intensité (curseurs dans l’histogramme)" + +#. (itstool) path: item/p +#: C/edit-adjustments.page:49 +msgid "" +"These sliders change how light the brightest white is and how dark the " +"darkest black is. Use them to change the contrast of the photo. Photos which " +"look washed out should particularly benefit from changing these settings." +msgstr "" +"Ces curseurs modifient la clarté des blancs clairs et la noirceur des noirs " +"profonds. Â utiliser pour modifier le contraste de la photo. Les photos qui " +"semblent délavées devraient bénéficier tout particulièrement de la " +"modification de ces paramètres." + +#. (itstool) path: info/desc +#: C/edit-crop.page:7 +msgid "Improve the composition of a photo by cutting out parts of it." +msgstr "Améliorer la composition d’une photo en la découpant." + +#. (itstool) path: page/title +#: C/edit-crop.page:12 +msgid "Cropping" +msgstr "Rognage" + +#. (itstool) path: page/p +#: C/edit-crop.page:14 +msgid "" +"To reduce the area of a photo and concentrate the viewer's attention on a " +"smaller portion of it, use the Crop tool. The crop tool is only available in " +"full-window or fullscreen mode." +msgstr "" +"Pour réduire la surface d’une photo et concentrer l’attention du spectateur " +"sur une petite partie, servez-vous de l’outil Rogner. Cet outil n’est " +"disponible qu’en mode pleine fenêtre ou plein écran." + +#. (itstool) path: item/p +#: C/edit-crop.page:19 +msgid "" +"Double-click on a photo to enter full-window mode, then press the Crop button on the toolbar." +msgstr "" +"Faites un double clic sur une photo pour passer en mode pleine fenêtre, puis " +"cliquez sur le bouton Rogner dans la barre d’outils." + +#. (itstool) path: item/p +#: C/edit-crop.page:22 +msgid "" +"A white box, the crop rectangle, will appear over the photo. The lighter " +"portion of the photo within the crop rectangle represents what the photo " +"will look like when you crop it." +msgstr "" +"Une boîte blanche, le rectangle de découpage, s’affiche par dessus la photo. " +"La partie la plus claire de la photo dans le rectangle de découpage " +"représente ce à quoi la photo ressemblera une fois rognée." + +#. (itstool) path: item/p +#: C/edit-crop.page:25 +msgid "" +"If you place your cursor in the middle of the box, you can move the box " +"around. If you drag the edges of the box, you can adjust its size. As you " +"move and adjust the crop box, you'll see four lines appear inside it, like a " +"tic-tac-toe grid. These are rule of thirds lines." +msgstr "" +"Si vous placez le pointeur de la souris au sein de la boîte, vous pouvez la " +"déplacer. Si vous tirez les bords du rectangle, vous pouvez ajuster sa " +"taille. Lors du déplacement ou de l’ajustement de la boîte, vous verrez " +"apparaître à l’intérieur 4 lignes qui forment un damier. Ce sont les lignes " +"de la règle des tiers." + +#. (itstool) path: item/p +#: C/edit-crop.page:26 +msgid "" +"You can also constrain the crop box to one of many common sizes. Choose a " +"size from the drop-down list that suits your needs. If you press the flip " +"button next to it, the orientation of the constraint will switch (from " +"landscape to portrait)." +msgstr "" +"Vous pouvez aussi imposer à la boîte de rognage une des multiples tailles " +"standards. Choisissez une taille qui vous convient dans la liste déroulante. " +"Si vous cliquez sur le bouton d’inversion à côté, l’orientation des " +"contraintes va s’inverser (de paysage à portrait)." + +#. (itstool) path: item/p +#: C/edit-crop.page:29 +msgid "" +"When you're happy with your crop outline, apply it by pressing the " +"Crop button. Shotwell will display the cropped photo." +msgstr "" +"Quand vous êtes satisfait de votre contour de rognage, cliquez sur le bouton " +"Rogner. Shotwell affiche la photo redécoupée." + +#. (itstool) path: item/p +#: C/edit-crop.page:32 +msgid "" +"If you change your mind, press the Crop button again and fine-" +"tune the crop." +msgstr "" +"Si vous changez d’avis, cliquez à nouveau le bouton Rogner et " +"réglez plus précisément le rognage." + +#. (itstool) path: item/p +#: C/edit-crop.page:33 +msgid "" +"If you press Cancel rather than Apply, Shotwell will " +"return to the photo's previous crop dimensions." +msgstr "" +"Si vous cliquez sur Annuler au lieu de Appliquer, " +"Shotwell revient aux dimensions d’avant le rognage de la photo." + +#. (itstool) path: section/title +#: C/edit-crop.page:38 +msgid "What is the rule of thirds?" +msgstr "Explications sur la règle des tiers" + +#. (itstool) path: section/p +#: C/edit-crop.page:39 +msgid "" +"The rule of thirds helps you to choose a pleasing composition for a " +"photo." +msgstr "" +"La règle des tiers est une aide à la composition des photos, " +"destinée à les rendre plus attrayantes." + +#. (itstool) path: section/p +#: C/edit-crop.page:40 +msgid "" +"Imagine that the scene is divided up into a 3x3 grid by two equally-spaced " +"vertical lines and two equally-spaced horizontal lines. According to the " +"rule, you're more likely to get a pleasing composition if you align major " +"features (like the horizon, or a person's body) with one of the lines. " +"Paying attention to the way features flow from one part of the grid to " +"another can also help." +msgstr "" +"Imaginez la scène divisée en neuf cases par deux lignes horizontales " +"régulièrement espacées et deux lignes horizontales régulièrement espacées. " +"Selon la règle, la composition a toutes les chances d’être attrayante en " +"plaçant les éléments importants d’une photo sur une ligne ou une " +"intersection. Par exemple, l’horizon sur la ligne de tiers inférieure pour " +"donner de l’importance au ciel, ou sur la ligne de tiers supérieure pour " +"donner de l’importance à la mer ; ou encore, les yeux d’un portrait sur la " +"ligne de tiers supérieure, des lignes de fuite dirigées vers l’intersection " +"ligne de tiers droite - ligne de tiers inférieure…" + +#. (itstool) path: section/p +#: C/edit-crop.page:41 +msgid "" +"Cropping a photo so that it conforms to the rule of thirds often results in " +"a more visually appealing image." +msgstr "" +"Rogner une photo pour qu’elle se conforme à la règle des tiers aboutit " +"souvent à la rendre plus attrayante." + +#. (itstool) path: section/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/edit-crop.page:42 +msgctxt "_" +msgid "" +"external ref='figures/crop_thirds.jpg' md5='4cf0a026bb812c7eab0c9db8210a9524'" +msgstr "" +"external ref='figures/crop_thirds.jpg' md5='4cf0a026bb812c7eab0c9db8210a9524'" + +#. (itstool) path: media/p +#: C/edit-crop.page:43 +msgid "" +"Cropping a photo, using the \"rule of thirds\" lines to improve the " +"composition." +msgstr "" +"Rognage d’une photo selon la « règle des tiers » pour améliorer la " +"composition." + +#. (itstool) path: info/desc +#: C/edit-date-time.page:7 +msgid "Change the date and time of photos if those details are incorrect." +msgstr "Changer l’heure et la date des photos si ces données sont inexactes." + +#. (itstool) path: page/title +#: C/edit-date-time.page:12 +msgid "Adjust the date and time of photos" +msgstr "Ajustement de l’heure et de la date des photos" + +#. (itstool) path: page/p +#: C/edit-date-time.page:14 +msgid "" +"To adjust the date and time of photos, select the photos you would like to " +"adjust, choose PhotosAdjust Date and Time... and select a new date and time." +msgstr "" +"Pour ajuster l’heure et la date des photos, sélectionnez les photos " +"voulues, choisissez PhotosAjuster la date et " +"l’heure et sélectionnez une heure et une date nouvelles." + +#. (itstool) path: page/p +#: C/edit-date-time.page:16 +msgid "" +"If you are changing the date and time of multiple photos at once, you can " +"choose to shift all the photos by the same amount of time or to set all the " +"photos to the same time." +msgstr "" +"Si vous changez l’heure et la date de plusieurs photos en même temps, vous " +"avez le choix entre décaler toutes les photos de la même durée, ou de mettre " +"toutes les photos à la même heure." + +#. (itstool) path: page/p +#: C/edit-date-time.page:18 +msgid "" +"By default, the date and time are only changed inside Shotwell. You can also " +"choose to modify the date and time in the original file, but this cannot be " +"undone once you exit Shotwell." +msgstr "" +"Par défaut, le changement d’heure et de date ne concerne que Shotwell. Vous " +"pouvez aussi modifier l’heure et la date du fichier d’origine, mais cela ne " +"peut pas être annulé après avoir quitté Shotwell." + +#. (itstool) path: info/desc +#: C/edit-enhance.page:7 +msgid "" +"Let Shotwell improve the brightness and contrast of a photo automatically." +msgstr "" +"Laisser Shotwell améliorer la luminosité et le contraste d’une photo " +"automatiquement." + +#. (itstool) path: page/title +#: C/edit-enhance.page:14 +msgid "Auto-enhance" +msgstr "Amélioration automatique" + +#. (itstool) path: page/p +#: C/edit-enhance.page:16 +msgid "" +"Clicking on the Enhance button is a quick way to automatically " +"adjust the brightness and contrast of your photo. It will often give you a " +"photo that is correctly exposed. You can also use it as a starting point and " +"then improve the adjustments by clicking on the Adjust button." +msgstr "" +"Cliquer sur le bouton Améliorer est une méthode rapide pour " +"automatiquement ajuster la luminosité et le contraste de votre photo. Vous " +"obtiendrez ainsi souvent une photo correctement exposée. Vous pouvez aussi " +"l’utiliser comme point de départ et ensuite améliorer les réglages en " +"cliquant sur le bouton Ajuster." + +#. (itstool) path: info/desc +#: C/edit-external.page:7 +msgid "Use a different program to edit a photo." +msgstr "Utiliser une autre application pour modifier une photo." + +#. (itstool) path: page/title +#: C/edit-external.page:12 +msgid "Edit photos with an external program" +msgstr "Modifier les photos avec une application externe" + +#. (itstool) path: page/p +#: C/edit-external.page:16 +msgid "" +"You might want to use an external editor to do additional work on a photo. " +"If installed, GIMP and UFRaw are the default external editors for photo and " +"RAW editing, respectively. If these programs are not installed, you must " +"select your preferred editors by choosing EditPreferences and selecting editors from drop-down " +"menus of installed applications." +msgstr "" +"Vous souhaitez peut-être utiliser un éditeur externe pour faire un travail " +"complémentaire sur votre photo. S’ils sont installés, GIMP et UFRaw sont les " +"éditeurs externes par défaut pour les photos et les images RAW " +"respectivement. Si ces applications ne sont pas installées, vous devez " +"sélectionner vos éditeurs préférés en choisissant ÉditionPréférences et en sélectionnant les éditeurs dans le " +"menu déroulant des applications installées." + +#. (itstool) path: page/p +#: C/edit-external.page:24 +msgid "" +"Once your editors have been set, select a photo and choose " +"Photos Open With External Editor to " +"open the photo with the external editor. Likewise, if the original photo is " +"a RAW file, select PhotosOpen With RAW Editor to edit the RAW file directly with the set RAW editor." +msgstr "" +"Une fois vos éditeurs choisis, sélectionnez une photo et choisissez " +"PhotosOuvrir avec un éditeur externe " +"pour ouvrir la photo avec l’application de modification externe. De la même " +"façon, si la photo originale est un fichier RAW, sélectionnez " +"PhotosOuvrir avec un éditeur RAW pour " +"modifier la fichier RAW directement avec l’application de modification RAW " +"choisie." + +#. (itstool) path: page/p +#: C/edit-external.page:31 +msgid "" +"When you complete your edits and save the file, Shotwell will detect the " +"changes and update the photo. When external edits have been made, press and " +"hold the Shift key in full-window view to show the original photo " +"rather than the externally-edited one." +msgstr "" +"Après avoir terminé les modifications et enregistré le fichier, Shotwell va " +"repérer les changements et mettre à jour la photo. Quand des modifications " +"externes ont été faites, tenez appuyée la touche Maj dans la vue " +"pleine fenêtre pour voir la photo originale plutôt que celle modifiée par " +"l’éditeur externe." + +#. (itstool) path: page/p +#: C/edit-external.page:38 +msgid "Reverting to original will erase any external edits." +msgstr "Revenir à l’original va effacer toutes les modifications externes." + +#. (itstool) path: note/p +#: C/edit-external.page:43 +msgid "" +"If you externally edit a RAW photo and save the result to another image, " +"such as a JPEG or PNG, Shotwell cannot automatically determine that the " +"original RAW and the new image should be paired." +msgstr "" +"Si vous modifiez en externe une photo RAW et enregistrez le résultat en JPEG " +"ou PNG, Shotwell ne peut pas déterminer automatiquement que l’original RAW " +"et la nouvelle image doivent être appairés." + +#. (itstool) path: note/p +#: C/edit-external.page:49 +msgid "" +"If you want to work within the resulting image within Shotwell, you'll need " +"to import it yourself." +msgstr "" +"Si vous voulez travailler sur l’image résultante dans Shotwell, vous devez " +"l’importer vous-même." + +#. (itstool) path: info/desc +#: C/edit-nondestructive.page:7 +msgid "" +"Shotwell is a non-destructive photo editor - it does not modify your " +"original photos." +msgstr "" +"Shotwell est un éditeur de photo non destructif : il ne modifie pas les photos " +"d’origine." + +#. (itstool) path: page/title +#: C/edit-nondestructive.page:12 +msgid "What happens to the original when I edit a photo?" +msgstr "Qu’arrive-t-il à la photo d’origine après sa modification ?" + +#. (itstool) path: page/p +#: C/edit-nondestructive.page:14 +msgid "" +"Shotwell is a non-destructive photo editor. It does not modify your original " +"photographs. That is to say, if you crop a photo or adjust its colors, the " +"photo file on disc remains untouched. Shotwell stores your edits in a " +"database and applies them on the fly as necessary. This means you can undo " +"any alterations you make to a photograph." +msgstr "" +"Shotwell est une éditeur de photo non destructif. Il ne modifie pas les " +"photos originales. Que vous rogniez une photo ou ajustiez ses couleurs, la " +"photo sur le disque reste inchangée. Shotwell enregistre vos modifications " +"dans une base de données et les applique à la volée si besoin. Cela signifie " +"que vous pouvez annuler toutes vos modifications." + +#. (itstool) path: page/p +#: C/edit-nondestructive.page:16 C/edit-undo.page:18 +msgid "" +"If you want to see what a photo looked like before your modifications, press " +"the Shift key. The original photo will be displayed as long as " +"you hold the key down." +msgstr "" +"Si vous voulez voir ce à quoi ressemblait la photo avant modifications, " +"appuyez sur la touche Maj. Tant que vous maintenez cet appui, " +"la photo sera affichée dans son état d’origine." + +#. (itstool) path: page/p +#: C/edit-nondestructive.page:18 +msgid "" +"Note that Shotwell can optionally write metadata (such as tags and titles) " +"to photo files. For more information, see the section Photo files." +msgstr "" +"Notez que Shotwell peut, sur option, enregistrer les métadonnées (comme les " +"étiquettes et les titres) dans les fichiers photographiques sur le disque. " +"Pour plus d’informations, référez-vous au chapitre Fichiers photographiques." + +#. (itstool) path: info/desc +#: C/edit-redeye.page:7 +msgid "" +"Correct photos where people have red eyes because of the camera's flash." +msgstr "Corriger les yeux rouges dus au flash de l’appareil photo." + +#. (itstool) path: page/title +#: C/edit-redeye.page:12 +msgid "Removing red-eye" +msgstr "Suppression des yeux rouges" + +#. (itstool) path: page/p +#: C/edit-redeye.page:14 +msgid "" +"Red-eye occurs when the camera's flash reflects off the pupil of someone's " +"eye. To eliminate this in a photo, use the Red-eye tool." +msgstr "" +"Les yeux rouges se produisent quand le flash de l’appareil photo se reflète " +"dans la pupille d’une personne. Pour l’éliminer d’une photo, servez-vous de " +"l’outil Yeux rouges." + +#. (itstool) path: item/p +#: C/edit-redeye.page:17 +msgid "Click Red-eye. A circle will appear on the photo." +msgstr "Cliquez sur Yeux rouges. Un cercle s’affiche sur la photo." + +#. (itstool) path: item/p +#: C/edit-redeye.page:20 +msgid "" +"Drag the circle over the affected pupil, adjust its size with the slider " +"control, and press Apply. The redness will be removed." +msgstr "" +"Faites glisser ce cercle sur la pupille concernée, ajustez sa taille avec le " +"curseur, et cliquez sur Appliquer. La rougeur disparaît." + +#. (itstool) path: item/p +#: C/edit-redeye.page:23 +msgid "" +"Repeat this process for all red pupils in your photo. Press Close " +"when finished." +msgstr "" +"Répétez la manœuvre pour toutes les pupilles rouges de la photo. Cliquez " +"sur Fermer pour terminer." + +#. (itstool) path: info/desc +#: C/edit-rotate.page:7 +msgid "" +"Click the Rotate button, or choose one of the commands in the " +"Photo menu." +msgstr "" +"Cliquez sur le bouton Rotation ou choisissez une des commandes " +"du menu Photo." + +#. (itstool) path: page/title +#: C/edit-rotate.page:12 +msgid "Rotate or flip a photo" +msgstr "Rotation ou retournement d’une photo" + +#. (itstool) path: page/p +#: C/edit-rotate.page:14 +msgid "" +"You can rotate your photos left and right (clockwise and counterclockwise) " +"with the Rotate button on the toolbar of most views. You can also " +"make a mirror image of any photo." +msgstr "" +"Vous pouvez tourner les photos vers la gauche ou la droite (sens horaire ou " +"anti-horaire), grâce au bouton Rotation présent dans la barre " +"d’outils de la plupart des fenêtres. Vous pouvez également obtenir une image " +"en miroir d’une photo." + +#. (itstool) path: page/p +#: C/edit-rotate.page:16 +msgid "" +"To rotate right, click on the Rotate button. To rotate left, " +"press and hold the Ctrl key and then click the button. Both " +"commands are available in the Photos menu too. Alternatively, use " +"the following keyboard shortcuts:" +msgstr "" +"Pour faire tourner vers la droite, cliquez sur le bouton Rotation. Pour faire tourner vers la gauche, tenir appuyé Ctrl et " +"cliquez sur le bouton. Ces deux commandes sont aussi disponibles dans le " +"menu Photos. Vous pouvez encore utiliser les raccourcis clavier " +"suivants :" + +#. (itstool) path: item/p +#: C/edit-rotate.page:18 +msgid "" +"rotate left: ShiftCtrlR or " +"[" +msgstr "" +"rotation gauche : MajCtrlR " +"ou Alt Gr[" + +#. (itstool) path: item/p +#: C/edit-rotate.page:19 +msgid "" +"rotate right: CtrlR or ]" +msgstr "" +"Rotation droite : CtrlR ou " +"Alt Gr]" + +#. (itstool) path: page/p +#: C/edit-rotate.page:21 +msgid "" +"To create a mirror image of a photo, use the Flip Horizontally " +"command in the Photos menu. To flip an image vertically, use the " +"Flip Vertically command in the same menu." +msgstr "" +"Pour créer une image en miroir horizontal d’une photo, utilisez la commande " +"Miroir horizontal dans le menu Photos. Pour un miroir " +"vertical, utilisez la commande Miroir vertical dans le même menu." + +#. (itstool) path: note/p +#: C/edit-rotate.page:24 +msgid "" +"If you select more than one image, you can rotate all of them at the same " +"time." +msgstr "" +"Si vous sélectionnez plusieurs photos, la rotation s’appliquera à toutes en " +"même temps." + +#. (itstool) path: info/desc +#: C/edit-straighten.page:7 +msgid "Straighten a photo so that its horizon appears level." +msgstr "Redresser une photo pour que son horizon se présente bien horizontal." + +#. (itstool) path: page/title +#: C/edit-straighten.page:12 +msgid "Straighten photos" +msgstr "Redressement de photos" + +#. (itstool) path: page/p +#: C/edit-straighten.page:14 +msgid "" +"The straighten tools allows photos to be leveled and straightened. The " +"straighten tool is only available in full-window or fullscreen mode." +msgstr "" +"L’outil de redressement de photos permet de mettre les photos bien " +"horizontales. Cet outil n’est disponible qu’en mode pleine fenêtre ou plein " +"écran." + +#. (itstool) path: item/p +#: C/edit-straighten.page:18 +msgid "" +"Click Straighten. The straighten slider will appear. " +"Alternatively, use the keyboard shortcut CtrlA." +msgstr "" +"Cliquez sur Redresser. Le curseur de redressement s’affiche. Vous " +"pouvez aussi utiliser le raccourci clavier CtrlA." + +#. (itstool) path: item/p +#: C/edit-straighten.page:21 +msgid "Drag the slider to achieve the desired degree of straightening." +msgstr "Faites glisser le curseur pour obtenir le degré de redressement voulu." + +#. (itstool) path: item/p +#: C/edit-straighten.page:24 +msgid "Press Straighten when finished." +msgstr "Cliquez sur Redresser pour terminer." + +#. (itstool) path: info/desc +#: C/edit-undo.page:7 +msgid "Return a photo to its original, unedited form." +msgstr "Remettre une photo dans son état d’origine, avant toute modification." + +#. (itstool) path: page/title +#: C/edit-undo.page:14 +msgid "Undoing changes" +msgstr "Annulation des modifications" + +#. (itstool) path: page/p +#: C/edit-undo.page:16 +msgid "" +"Because Shotwell is a non-destructive photo editor, you can undo any " +"alterations you make to a photograph." +msgstr "" +"Comme Shotwell est un éditeur de photos non destructif, vous pouvez " +"annuler toutes les modifications apportées à une photographie." + +#. (itstool) path: page/p +#: C/edit-undo.page:20 +msgid "" +"To completely undo all the changes you've made to a photo, click " +"PhotosRevert to Original. The only " +"exception is that time and date adjustments will not be reverted." +msgstr "" +"Pour annuler complètement les changements apportés à une image, cliquez sur " +"PhotosRevenir à l’original. La seule " +"exception est que l’heure et la date ne seront pas rétablies." + +#. (itstool) path: info/desc +#: C/formats.page:7 +msgid "" +"Shotwell supports JPEG, PNG, TIFF, BMP and RAW photo files as well as video " +"files." +msgstr "" +"Shotwell gère les fichiers photo JPEG, PNG, TIFF, BMP et RAW, ainsi que les " +"fichiers vidéo." + +#. (itstool) path: page/title +#: C/formats.page:12 +msgid "Supported photo and video formats" +msgstr "Formats photo et vidéo pris en charge" + +#. (itstool) path: page/p +#: C/formats.page:14 +msgid "" +"Shotwell supports JPEG, PNG, TIFF, BMP and RAW photo files. Shotwell does not yet support other graphics format such " +"as GIF." +msgstr "" +"Shotwell gère les fichiers photo JPEG, PNG, TIFF, BMP et RAW. Il ne prend pas encore en charge les autres formats " +"graphiques tels que GIF." + +#. (itstool) path: page/p +#: C/formats.page:16 +msgid "" +"Shotwell's RAW format support is currently limited. When you view a RAW " +"photo, you are actually viewing a JPEG derived from the RAW photo, not the " +"RAW image itself. Additionally, the RAW editing pipeline is not fully 16-bit " +"- you can only export edited photos as 8-bit files. All supported formats " +"can be used for export (JPEG, PNG, TIFF, BMP)." +msgstr "" +"La gestion du format RAW par Shotwell est actuellement limitée. Ce que vous " +"voyez quand vous affichez une photo RAW, c’est en fait un fichier JPEG " +"dérivé du RAW, pas le RAW lui-même. En outre, le pipeline de modification " +"n’est pas complètement 16 bits - la profondeur est limitée à 8 bits pour les " +"photos exportées. Tous les formats acceptés peuvent être utilisés pour " +"l’exportation (JPEG, PNG, TIFF, BMP)." + +#. (itstool) path: page/p +#: C/formats.page:18 +msgid "" +"For more information about RAW-format photos in Shotwell, please see the " +"RAW section." +msgstr "" +"Pour plus d’informations sur le format RAW dans Shotwell, référez-vous au " +"chapitre RAW." + +#. (itstool) path: page/p +#: C/formats.page:22 +msgid "" +"Shotwell also supports video files in any format supported by the GStreamer " +"media library on the system where Shotwell is running. This typically " +"includes the following formats among others:" +msgstr "" +"Shotwell gère aussi les fichiers vidéo dans les formats acceptés par la " +"bibliothèque logicielle GStreamer sur le système où Shotwell est exécuté. " +"Ceci inclut les formats suivants parmi d’autres :" + +#. (itstool) path: item/p +#: C/formats.page:25 +msgid "Container formats: Ogg, QuickTime, MP4, AVI." +msgstr "Formats conteneurs : Ogg, QuickTime, MP4, AVI." + +#. (itstool) path: item/p +#: C/formats.page:26 +msgid "" +"Codecs: Theora, Quicktime, MPEG-4, Motion JPEG. Note that some operating " +"systems may not include all codecs listed here due to legal or licensing " +"restrictions." +msgstr "" +"Codecs : Theora, Quicktime, MPEG-4, Motion JPEG. Notez que certains " +"systèmes d’exploitation n’incluent pas tous les codecs figurant dans cette " +"liste, en raison de restrictions légales ou de licence." + +#. (itstool) path: page/p +#: C/formats.page:30 +msgid "" +"Shotwell supports both photos and videos, but for simplicity, this " +"documentation uses just the term \"photos\" in most places. Many operations " +"in Shotwell apply to both photos and videos, however. In particular, events, " +"flagging, rating, tagging, and publishing work both for photos and for " +"videos." +msgstr "" +"Shotwell gère à la fois les photos et les vidéos, mais, par simplification, " +"cette documentation utilise le terme « photos » le plus souvent. Beaucoup " +"d’actions de Shotwell s’appliquent aux photos et aux vidéos. En particulier, " +"les événements, le marquage, la notation, l’étiquetage et la publication " +"fonctionnent à la fois pour les photos et pour les vidéos." + +#. (itstool) path: info/desc +#: C/import-camera.page:7 +msgid "Copy photos from a digital camera." +msgstr "Copier des photos depuis un appareil photo." + +#. (itstool) path: page/title +#: C/import-camera.page:12 +msgid "Importing from a camera" +msgstr "Importation depuis un appareil photo" + +#. (itstool) path: page/p +#: C/import-camera.page:14 +msgid "To import photos from a digital camera:" +msgstr "Pour importer des photos depuis un appareil photo :" + +#. (itstool) path: item/p +#: C/import-camera.page:18 +msgid "" +"Connect the camera to your computer and switch it on. Shotwell will detect " +"it and list it in the sidebar." +msgstr "" +"Connectez l’appareil à l’ordinateur et allumez-le. Shotwell le détecte et " +"l’affiche dans le panneau latéral." + +#. (itstool) path: item/p +#: C/import-camera.page:22 +msgid "" +"Select the camera in the sidebar. Previews of each photo on the camera will " +"be displayed." +msgstr "" +"Sélectionnez l’appareil photo dans le panneau latéral. Un aperçu des photos " +"de l’appareil photo s’affiche." + +#. (itstool) path: item/p +#: C/import-camera.page:25 +msgid "" +"If you like, you can choose a set of specific photos to import. To do this, " +"hold down the Ctrl key and click to select individual photos. You " +"can hold down Shift and click to select a range of photos too." +msgstr "" +"Si vous le désirez, vous pouvez choisir d’importer un lot de photos " +"particulier. Pour cela, maintenez enfoncée la touche Ctrl et " +"cliquez sur les photos à importer. Vous pouvez aussi choisir une suite de " +"photos en maintenant enfoncée la touche Maj et en cliquant sur la " +"première et la dernière." + +#. (itstool) path: item/p +#: C/import-camera.page:28 +msgid "" +"Click either Import Selected or Import All. The photos " +"will be copied from the camera and saved on your computer." +msgstr "" +"Cliquez sur Importer la sélection ou Tout importer. " +"Les photos seront copiées depuis l’appareil photo et enregistrées sur " +"l’ordinateur." + +#. (itstool) path: page/p +#: C/import-camera.page:32 +msgid "" +"Once the import is complete, you can open the Last Import view " +"(in the sidebar) to see all photos that were imported. The Events list (also " +"in the sidebar) will also show the new photos, organized by date." +msgstr "" +"Une fois l’importation terminée, ouvrez la rubrique Dernière " +"importation dans le panneau latéral pour afficher les photos " +"importées. La rubrique Événements, également dans le panneau latéral, donne " +"aussi la liste des nouvelles photos, classées par date." + +#. (itstool) path: info/desc +#: C/import-file.page:7 +msgid "Import photos that are already saved on your computer." +msgstr "Importer des photos déjà enregistrées sur votre ordinateur." + +#. (itstool) path: page/title +#: C/import-file.page:12 +msgid "Importing from your hard disk" +msgstr "Importation de photos depuis le disque dur" + +#. (itstool) path: page/p +#: C/import-file.page:14 +msgid "" +"To import photo files from your hard disk into Shotwell, just drag them from " +"your file browser into the Shotwell window." +msgstr "" +"Pour importer des photos depuis le disque dur dans Shotwell, glissez-les " +"tout simplement depuis le gestionnaire de fichiers et déposez-les dans la " +"fenêtre principale de Shotwell." + +#. (itstool) path: page/p +#: C/import-file.page:16 +msgid "" +"Alternatively, click FileImport From Folder... and select the folder containing the photos you want to " +"import. If you do not want Shotwell to recurse into subfolders while " +"importing, you can uncheck the Recurse Into Subfolders checkbox " +"on the bottom of the file dialog." +msgstr "" +"Ou cliquez sur FichierImportation d’un dossier… et sélectionnez le dossier contenant les photos à importer. Si " +"vous ne voulez pas que Shotwell cherche dans les sous-dossiers pendant " +"l’importation, vous pouvez décocher la case Inclure les sous-" +"dossiers en bas de la boîte de dialogue de fichiers." + +#. (itstool) path: page/p +#: C/import-file.page:18 +msgid "" +"Shotwell will ask whether you want to copy the photo files to your library " +"folder (usually this is the Pictures folder in your home " +"directory) or to import them in place without copying the files." +msgstr "" +"Shotwell demande si vous voulez copier les photos dans votre dossier de " +"photothèque, qui est habituellement le dossier Images dans " +"votre répertoire personnel, ou si vous voulez les importer dans Shotwell " +"sans copier les fichiers." + +#. (itstool) path: page/p +#: C/import-file.page:20 +msgid "" +"If you hold down Ctrl while dragging photos in, Shotwell will " +"copy the photos into your library folder without prompting. Similarly, if " +"you hold down CtrlShift while " +"dragging photos in, Shotwell will import the photos without copying them." +msgstr "" +"Si vous maintenez enfoncée la touche Ctrl pendant le glisser-" +"déposer, Shotwell copie les photos dans le dossier de photothèque sans rien " +"demander. De même, CtrlMaj importe " +"les photos sans les copier." + +#. (itstool) path: page/p +#: C/import-file.page:22 +msgid "" +"Once the import is complete, you can select Last Import in the " +"sidebar to see all photos successfully imported. The Events list will also " +"show new entries for the dates corresponding to the imported photos." +msgstr "" +"Une fois l’importation terminée, sélectionnez Dernière importation dans le panneau latéral si vous vous voulez voir toutes les photos " +"importées avec succès. La liste Événements affiche aussi les nouvelles entrées " +"pour les dates des photos importées." + +#. (itstool) path: info/desc +#: C/import-memorycard.page:7 +msgid "Import photos from a digital camera's memory card." +msgstr "" +"Importer des photos depuis la carte mémoire d’un appareil photo numérique." + +#. (itstool) path: page/title +#: C/import-memorycard.page:12 +msgid "Importing from a memory card" +msgstr "Importation depuis une carte mémoire" + +#. (itstool) path: page/p +#: C/import-memorycard.page:14 +msgid "To import photos from a camera memory card:" +msgstr "Pour importer des photos depuis une carte mémoire :" + +#. (itstool) path: item/p +#: C/import-memorycard.page:18 +msgid "" +"Put the card into your card reader. Make sure the card reader is plugged in " +"to the computer and switched on." +msgstr "" +"Placez la carte dans votre lecteur de carte. Assurez-vous que le lecteur de " +"carte est bien branché sur l’ordinateur et allumé." + +#. (itstool) path: item/p +#: C/import-memorycard.page:21 +msgid "The card reader and card should be detected automatically." +msgstr "" +"Le lecteur de carte et la carte devraient être détectés automatiquement." + +#. (itstool) path: item/p +#: C/import-memorycard.page:24 +msgid "" +"Follow the instructions for importing photos from " +"your hard disk. If you click FileImport From " +"Folder..., the memory card should be visible as a folder in " +"the side bar of the file selection window." +msgstr "" +"Suivez les instructions pour l’importation de " +"photos depuis le disque dur. Si vous cliquez sur " +"FichierImportation d’un dossier, la " +"carte mémoire devrait être visible en tant que dossier dans le panneau " +"latéral de la fenêtre de sélection de fichiers." + +#. (itstool) path: page/p +#: C/import-memorycard.page:28 +msgid "" +"Shotwell can import photos from any memory card that is compatible with your " +"card reader." +msgstr "" +"Shotwell peut importer des photos de toute carte mémoire compatible avec " +"votre lecteur de carte." + +#. (itstool) path: page/p +#: C/import-memorycard.page:30 +msgid "" +"If the card is not detected automatically, your card reader may not have " +"been recognized. Try unplugging it and then plugging it in again. If that " +"doesn't work, you should still be able to import photos by connecting your camera directly to the computer, " +"though." +msgstr "" +"Si la carte n’est pas détectée automatiquement, c’est que le lecteur de " +"carte peut ne pas avoir été reconnu. Essayez de le débrancher et de le " +"rebrancher. Si cela ne marche pas, vous devriez quand même pouvoir importer " +"les photos en connectant votre appareil photo " +"directement à l’ordinateur." + +#. (itstool) path: info/title +#: C/index.page:6 +msgctxt "link" +msgid "Shotwell" +msgstr "Shotwell" + +#. (itstool) path: credit/name +#: C/index.page:8 +msgid "Jim Nelson" +msgstr "Jim Nelson" + +#. (itstool) path: credit/name +#: C/index.page:10 +msgid "Allison Barlow" +msgstr "Allison Barlow" + +#. (itstool) path: credit/name +#: C/index.page:12 +msgid "Robert Ancell" +msgstr "Robert Ancell" + +#. (itstool) path: credit/name +#: C/index.page:14 +msgid "Peter Smith" +msgstr "Peter Smith" + +#. (itstool) path: credit/name +#: C/index.page:16 +msgid "Phil Bull" +msgstr "Phil Bull" + +#. (itstool) path: title/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/index.page:22 +msgctxt "_" +msgid "" +"external ref='figures/shotwell_logo.png' " +"md5='4b333499555b4e496b1a38f7899067f3'" +msgstr "" +"external ref='figures/shotwell_logo.png' " +"md5='4b333499555b4e496b1a38f7899067f3'" + +#. (itstool) path: page/title +#: C/index.page:22 +msgid "" +"Shotwell Photo " +"Manager" +msgstr "" +"Gestionnaire de " +"photos Shotwell" + +#. (itstool) path: section/title +#: C/index.page:25 +msgid "Importing Photos" +msgstr "Importation de photos" + +#. (itstool) path: section/title +#: C/index.page:29 +msgid "Viewing Photos" +msgstr "Affichage de photos" + +#. (itstool) path: section/title +#: C/index.page:33 +msgid "Organizing Photos" +msgstr "Classement des photos" + +#. (itstool) path: section/title +#: C/index.page:37 +msgid "Editing Photos" +msgstr "Modification des photos" + +#. (itstool) path: section/title +#: C/index.page:41 +msgid "Sharing Photos" +msgstr "Partage de photos" + +#. (itstool) path: section/title +#: C/index.page:45 +msgid "Other Features" +msgstr "Autres fonctionnalités" + +#. (itstool) path: info/desc +#: C/organize-event.page:7 +msgid "" +"Group photos together that were taken at the same time. Learn how to rename, " +"merge, and sort events." +msgstr "" +"Regrouper les photos prises au même moment. Apprenez à renommer, fusionner " +"et trier les événements." + +#. (itstool) path: page/title +#: C/organize-event.page:12 +msgid "Events" +msgstr "Événements" + +#. (itstool) path: page/p +#: C/organize-event.page:14 +msgid "" +"An event is a group of photos that were taken at approximately the same " +"time. When you import photos, Shotwell checks when each photo was taken. It " +"then groups the photos into events." +msgstr "" +"Un événement est un groupe de photos prises à peu près au même moment. Quand " +"vous importez des photos, Shotwell vérifie la date où elles ont été prises. " +"Il les regroupe alors en événements." + +#. (itstool) path: page/p +#: C/organize-event.page:16 +msgid "" +"Choose Events from the sidebar to see your photos organized by " +"date. If you select a month or year from the sidebar, a list of events will " +"be displayed in the main window. Double-click an event to see all the photos " +"that were taken around that time." +msgstr "" +"Choisissez Événements dans le panneau latéral pour voir vos " +"photos rangées par date. Si vous sélectionnez un mois ou une année dans la " +"barre latérale, une liste d’événements avec le nombre de photos qu’il " +"contient s’affiche dans la fenêtre principale. Double-cliquez sur un " +"événement pour rendre visibles les photos prises aux environs de cette date." + +#. (itstool) path: page/p +#: C/organize-event.page:18 +msgid "" +"If a photo has no embedded date/time information, then Shotwell can't " +"automatically place it in any event. In this case the photo will appear in " +"the No Event view accessible from the sidebar. You can still move " +"the photo to any event you like as described below." +msgstr "" +"Si une photo ne contient aucune information de date ou d’heure, Shotwell ne " +"peut pas la placer automatiquement dans un événement. La photo s’affiche " +"alors dans la rubrique Aucun événement dans le panneau latéral. " +"Vous avez la possibilité de déplacer la photo dans l’événement que vous " +"voulez comme décrit ci-dessous." + +#. (itstool) path: section/title +#: C/organize-event.page:25 +msgid "Renaming events" +msgstr "Renommage des événements" + +#. (itstool) path: section/p +#: C/organize-event.page:27 +msgid "" +"To give an event a name rather than referring to it by its date, select the " +"event, click EventsRename Event... " +"and enter a new name. Another way of renaming an event is to double-click " +"its name in the sidebar; type a new name and then press Enter." +msgstr "" +"Pour nommer un événement plutôt que de se référer à lui par sa date, " +"sélectionnez l’événement, cliquez ÉvénementsRenommer " +"l’événement… et entrez le nouveau nom. Une autre façon de " +"renommer un événement est de double cliquer sur son nom dans la barre " +"latérale, saisir un nouveau nom et valider par Entrée." + +#. (itstool) path: section/title +#: C/organize-event.page:31 +msgid "Moving photos between events" +msgstr "Déplacement des photos entre les événements" + +#. (itstool) path: section/p +#: C/organize-event.page:33 +msgid "" +"Even though photos are initially grouped into events by their date, you can " +"move photos between events. To do this, drag any photo to the sidebar and " +"drop it on an event." +msgstr "" +"Bien que les photos soient initialement groupées dans les événements par " +"dates, vous pouvez déplacer les photos entre les événements. Pour cela, " +"glissez une photo et déposez-la sur un événement dans le panneau latéral." + +#. (itstool) path: section/title +#: C/organize-event.page:37 +msgid "Creating and merging events" +msgstr "Création et fusion d’événements" + +#. (itstool) path: section/p +#: C/organize-event.page:38 +msgid "" +"To create a new event, select the photos you would like in the new event and " +"click EventsNew Event." +msgstr "" +"Pour créer un nouvel événement, sélectionnez les photos que vous désirez y " +"voir figurer et cliquez sur ÉvénementsNouvel " +"événement." + +# Traduction non conforme à l’original mais correspondant à la fonctionnalité réelle; +#. (itstool) path: section/p +#: C/organize-event.page:39 +msgid "" +"To merge events, select Events from the sidebar, " +"then, while holding down Ctrl click on the events you want to " +"merge in the main window area. Finally, click EventsMerge Events." +msgstr "" +"Pour fusionner des événements, sélectionnez Événements dans le " +"panneau latéral et, tout en maintenant la touche Ctrl enfoncée, " +"cliquez dans la fenêtre principale sur les événements que vous voulez " +"fusionner. Enfin, faites un clic droit sur un événement sélectionné et " +"choisissez Fusionner les événements dans le menu contextuel." + +#. (itstool) path: section/title +#: C/organize-event.page:43 +msgid "Sorting events" +msgstr "Tri des événements" + +#. (itstool) path: section/p +#: C/organize-event.page:45 +msgid "" +"Events are displayed in a tree in the sidebar, organized by the year and " +"month of the earliest photo in the event. To change the event sort order, " +"click ViewSort Events and select " +"either ascending or descending." +msgstr "" +"Les événements sont affichés en arborescence dans le panneau latéral, " +"classés par année et mois de la photo la plus ancienne de l’événement. Pour " +"modifier l’ordre de classement, cliquez sur AffichageTrier les événements et sélectionnez Ordre " +"croissant ou Ordre décroissant." + +#. (itstool) path: section/title +#: C/organize-event.page:51 +msgid "Change the photo used to represent each event" +msgstr "Changement de la photo représentant chaque événement" + +#. (itstool) path: section/p +#: C/organize-event.page:53 +msgid "" +"If you select the Events item in the sidebar, you'll see a single " +"photo which represents each event. This is called the key photo." +msgstr "" +"En sélectionnant Événements dans le panneau latéral, vous voyez " +"une photo qui représente l’événement. Elle est appelée la photo clé de " +"l’événement." + +# Traduction non conforme à l’original mais correspondant à la vraie fonctionnalité de la version 0.26 +#. (itstool) path: section/p +#: C/organize-event.page:55 +msgid "" +"By default, Shotwell uses the first photo in each event as its key photo. To " +"use a different key photo, select the photo and choose PhotosMake Key Photo for Event." +msgstr "" +"Par défaut, Shotwell utilise la première photo dans chaque événement comme " +"photo clé. Pour en changer, sélectionnez la photo voulue, faites un clic " +"droit et choisissez Faire de la photo la photo clé de l’événement." + +#. (itstool) path: info/desc +#: C/organize-flag.page:7 +msgid "Flag photos to mark them as special or to work with them as a set." +msgstr "" +"Marquer les photos comme spéciales ou pour agir dessus en tant que lot." + +#. (itstool) path: page/title +#: C/organize-flag.page:12 +msgid "Flagging photos" +msgstr "Marquage des photos" + +#. (itstool) path: page/p +#: C/organize-flag.page:14 +msgid "" +"Shotwell lets you flag photos. When a photo is flagged, a small " +"flag icon appears in its upper right corner. You can select the " +"Flagged item in the sidebar to see all photos which have been " +"flagged." +msgstr "" +"Sotwell permet de marquer les photos. Une petite icône en " +"forme de drapeau s’affiche alors dans leur coin en haut à gauche. Vous " +"pouvez sélectionner la rubrique Marquées pour découvrir toutes " +"les photos marquées." + +#. (itstool) path: page/p +#: C/organize-flag.page:18 +msgid "" +"Flagging a photo marks it as special. You can interpret this in any way you " +"like. For example, you might flag all photos which need visual adjustment, " +"or all photos which you want to share with a friend." +msgstr "" +"Le fait de marquer une photo la rend spéciale. Interprétez cela comme bon " +"vous semble. Par exemple, marquez les photos qui doivent être retouchées, ou " +"les photos que vous envisagez de partager avec un ami." + +#. (itstool) path: page/p +#: C/organize-flag.page:22 +msgid "" +"Flagging is also useful because you can operate on all flagged photos as a " +"set. For example, you can select the Flagged view and then upload " +"all flagged photos to a publishing service." +msgstr "" +"Le marquage est également utile car il vous permet d’agir par lot sur toutes " +"les photos marquées. Par exemple, sélectionnez la rubrique Marquées et téléversez toutes les photos marquées sur un site de partage." + +#. (itstool) path: section/title +#: C/organize-flag.page:27 +msgid "To flag or unflag a photo" +msgstr "Marquer une photo ou enlever sa marque" + +#. (itstool) path: section/p +#: C/organize-flag.page:28 +msgid "" +"To flag or unflag a photo, right-click the photo and choose Flag " +"or Unflag from the context menu. Or use the CtrlG or / shortcut keys." +msgstr "" +"Pour marquer une photo ou enlever sa marque, faites un clic droit sur la " +"photo et choisissez Marquer ou Enlever la marque dans " +"le menu contextuel. Ou bien utilisez les raccourcis clavier " +"CtrlG ou Maj/" +"." + +#. (itstool) path: info/desc +#: C/organize-rating.page:7 +msgid "" +"Give photos a rating between 1 and 5 stars. You can reject bad photos, " +"hiding them from view." +msgstr "" +"Donner aux photos une note entre 1 et 5 étoiles. Vous pouvez rejeter les " +"mauvaises photos, les masquer de l’affichage." + +#. (itstool) path: page/title +#: C/organize-rating.page:12 +msgid "Ratings" +msgstr "Notes" + +#. (itstool) path: page/p +#: C/organize-rating.page:13 +msgid "" +"You can assign each photo a rating from 1-5 stars, or may alternatively rate " +"it as Rejected, in which case Shotwell will hide the photo by default." +msgstr "" +"Vous pouvez attribuer aux photos une note entre 1 et 5 étoiles, ou les noter " +"comme Rejetées, auquel cas Shotwell les masquera par défaut." + +#. (itstool) path: page/p +#: C/organize-rating.page:15 +msgid "You can rate a photo or a set of photos in any of these ways:" +msgstr "" +"Vous pouvez noter une photos ou un lot de photos de différentes manières :" + +#. (itstool) path: item/p +#: C/organize-rating.page:18 +msgid "" +"Select the photo(s), then choose a rating from the top-level " +"PhotosSet Rating menu." +msgstr "" +"Sélectionnez la ou les photos, puis choisissez une note dans le menu " +"PhotosNoter." + +#. (itstool) path: item/p +#: C/organize-rating.page:19 +msgid "" +"Right-click on the photo(s), then choose a rating from the Set Rating " +"context menu." +msgstr "" +"Faites un clic droit sur la ou les photos, sélectionnez la commande " +"Noter dans le menu contextuel et choisissez une note." + +#. (itstool) path: item/p +#: C/organize-rating.page:20 +msgid "" +"Select the photo(s), then press any of the shortcut keys 1, " +"2, 3, 4 or 5 to assign a rating. " +"Or press 9 to mark the photo(s) as rejected or 0 to " +"clear the rating(s)." +msgstr "" +"Sélectionnez la ou les photos, puis appuyez sur l’un des raccourcis " +"clavier 1, 2, 3, 4 ou 5 pour donner une note. Ou appuyez sur 9 pour marquer la photo " +"comme rejetée ou 0 pour effacer la ou les notes." + +#. (itstool) path: page/p +#: C/organize-rating.page:23 +msgid "" +"Normally Shotwell displays all photos except rejected photos. You can set a " +"different rating filter using the ViewFilter Photos menu - for example, you can display only photos rated with 3 " +"stars or higher, or you can display all photos including those marked " +"rejected. The Shotwell icon on the toolbar displays the current rating " +"filter and can also be used to set the filter." +msgstr "" +"Normalement Shotwell affiche toutes les photos à l’exception des photos " +"rejetées. Vous pouvez définir un autre filtre de note à l’aide du menu " +"AffichageFiltrer les photos. Par " +"exemple, il est possible de n’afficher que les photos ayant 3 étoiles ou " +"plus, ou toutes les photos y compris celles marquées rejetées. L’icône " +"Shotwell dans la barre d’outils affiche le filtre de note actuel, et elle " +"peut aussi être utilisée pour régler le filtre, en cliquant dessus." + +#. (itstool) path: page/p +#: C/organize-rating.page:26 +msgid "" +"Shotwell normally displays each photo's rating in its lower left-hand " +"corner. You can turn off the display of ratings using the ViewRatings menu item." +msgstr "" +"Shotwell affiche normalement la note dans le coin inférieur gauche de chaque " +"photo. Vous pouvez annuler cet affichage en décochant l’élément de menu " +"AffichageNotes." + +#. (itstool) path: page/p +#: C/organize-rating.page:28 +msgid "" +"You can increase or decrease a photo's rating using the Set " +"RatingIncrease and Set RatingDecrease commands, or the keyboard shortcuts " +"< and >." +msgstr "" +"Vous pouvez augmenter ou diminuer la note d’une photo avec les commandes " +"NoterAugmenter et NoterDiminuer, ou les raccourcis clavier < " +"et >." + +#. (itstool) path: info/desc +#: C/organize-remove.page:7 +msgid "" +"Remove photos from the library, or delete them from your computer entirely." +msgstr "" +"Enlever des photos de votre photothèque, ou les supprimer complètement de " +"l’ordinateur." + +#. (itstool) path: page/title +#: C/organize-remove.page:12 +msgid "Removing and deleting photos" +msgstr "Retrait et suppression de photos" + +#. (itstool) path: page/p +#: C/organize-remove.page:14 +msgid "" +"You may remove photos from your library and you may additionally delete them " +"entirely from your hard disk." +msgstr "" +"Vous pouvez retirer des photos de votre photothèque et vous pouvez en plus " +"les supprimer complètement de l’ordinateur." + +#. (itstool) path: page/media +#. This is a reference to an external file such as an image or video. When +#. the file changes, the md5 hash will change to let you know you need to +#. update your localized copy. The msgstr is not used at all. Set it to +#. whatever you like once you have updated your copy of the file. +#: C/organize-remove.page:15 +msgctxt "_" +msgid "" +"external ref='figures/trash_process.png' " +"md5='ed596bda34c2f4a79a310fbc8bb51fd2'" +msgstr "" +"external ref='figures/trash_process.png' " +"md5='ed596bda34c2f4a79a310fbc8bb51fd2'" + +#. (itstool) path: media/p +#: C/organize-remove.page:15 +msgid "Delete process" +msgstr "Processus de suppression" + +#. (itstool) path: page/p +#: C/organize-remove.page:16 +msgid "" +"This diagram shows how a photo, when deleted, is first put into Shotwell's " +"trash. If you delete it from Shotwell's trash, it is put into your " +"computer's trash. If you delete it from your computer's trash the photo is " +"finally and irretrievably deleted from your computer." +msgstr "" +"Ce schéma montre comment une photo, lors de sa suppression, est d’abord " +"mise à la corbeille de Shotwell. Si vous la supprimez de la corbeille de " +"Shotwell, elle est mise à la corbeille de l’ordinateur. Si vous la " +"supprimez de la corbeille de l’ordinateur, elle est définitivement supprimée " +"de l’ordinateur." + +#. (itstool) path: section/title +#: C/organize-remove.page:18 +msgid "Removing photos from the library" +msgstr "Retrait de photos de la photothèque" + +#. (itstool) path: section/p +#: C/organize-remove.page:19 +msgid "" +"Select the photos to remove and choose EditMove to " +"Trash. (You can also press the Delete key.) The " +"photos will be moved from your library to Shotwell's Trash." +msgstr "" +"Sélectionnez les photos que vous désirez retirer et choisissez " +"ÉditionDéplacer dans la corbeille ou " +"appuyez sur la touche Suppr. Ces photos sont retirées de la " +"photothèque et mises dans la corbeille de Shotwell." + +#. (itstool) path: section/p +#: C/organize-remove.page:22 +msgid "" +"If you want to remove photos from Shotwell without having them pass through " +"the trash, simply select the photos to be removed and choose " +"EditRemove From Library. The photo " +"files will be left in place on disk." +msgstr "" +"Si vous voulez retirer des photos de Shotwell sans passer par la corbeille, " +"sélectionnez les photos voulues et choisissez ÉditionSupprimer de la photothèque. Les fichiers " +"photographiques resteront en place sur le disque dur." + +#. (itstool) path: section/title +#: C/organize-remove.page:26 +msgid "Emptying or restoring the trash folder" +msgstr "Vidage de la corbeille ou restauration" + +#. (itstool) path: section/p +#: C/organize-remove.page:27 +msgid "" +"Select the Trash entry in the Sidebar and Shotwell will display all photos " +"that have been marked for removal or deletion. In the Trash view, the " +"following commands are available:" +msgstr "" +"Sélectionnez l’élément Corbeille dans le panneau latéral : Shotwell affiche " +"toutes les photos marquées pour le retrait ou la suppression. Dans " +"l’affichage de la corbeille, les commandes suivantes sont disponibles :" + +#. (itstool) path: item/title +#: C/organize-remove.page:29 +msgid "Delete" +msgstr "Supprimer" + +#. (itstool) path: item/p +#: C/organize-remove.page:29 +msgid "Delete the selected photos from the trash folder." +msgstr "Supprimer les photos sélectionnées de la corbeille." + +#. (itstool) path: item/title +#: C/organize-remove.page:30 +msgid "Restore" +msgstr "Restaurer" + +#. (itstool) path: item/p +#: C/organize-remove.page:30 +msgid "Restore the selected photos into Shotwell." +msgstr "Restaurer les photos sélectionnées dans Shotwell." + +#. (itstool) path: item/title +#: C/organize-remove.page:31 +msgid "Empty trash" +msgstr "Vider la corbeille" + +#. (itstool) path: item/p +#: C/organize-remove.page:31 +msgid "Delete all photos from the trash folder." +msgstr "Supprimer toutes les photos du dossier Corbeille." + +#. (itstool) path: section/title +#: C/organize-remove.page:36 +msgid "Deleting or emptying Trash" +msgstr "Suppression ou vidage du dossier Corbeiile" + +#. (itstool) path: section/p +#: C/organize-remove.page:37 +msgid "" +"When you delete files from the Trash folder or empty the Trash folder, you " +"will be given the following choices:" +msgstr "" +"Quand vous supprimez les fichiers du dossier Corbeille ou videz ce dossier, " +"les choix suivants vous sont offerts :" + +#. (itstool) path: item/title +#: C/organize-remove.page:39 +msgid "Only Remove" +msgstr "Enlever seulement" + +#. (itstool) path: item/p +#: C/organize-remove.page:39 +msgid "" +"Remove photos from the library but leave the photos in their location on the " +"computer." +msgstr "" +"Enlever les photos de la photothèque mais les laisser en place sur " +"l’ordinateur." + +#. (itstool) path: item/title +#: C/organize-remove.page:40 +msgid "Trash file" +msgstr "Fichier à la Corbeille" + +#. (itstool) path: item/p +#: C/organize-remove.page:40 +msgid "Remove photos from the library and delete them from the computer." +msgstr "Enlever les photos de la photothèque et les supprimer de l’ordinateur." + +#. (itstool) path: item/title +#: C/organize-remove.page:41 +msgid "Cancel" +msgstr "Annuler" + +#. (itstool) path: item/p +#: C/organize-remove.page:41 +msgid "Do nothing." +msgstr "Ne rien faire." + +#. (itstool) path: info/desc +#: C/organize-search.page:7 +msgid "Find photos and videos in your collection by a variety of criteria." +msgstr "" +"Rechercher photos et vidéos dans votre collection selon divers critères." + +#. (itstool) path: page/title +#: C/organize-search.page:12 +msgid "Searching" +msgstr "Recherche" + +#. (itstool) path: page/p +#: C/organize-search.page:14 +msgid "" +"There are two ways to search in Shotwell: the filter toolbar, and with a " +"saved search. The search bar allows you to quickly search the current view " +"for certain criteria. Saved Searches feature more complex search criteria " +"and persist in the sidebar between sessions." +msgstr "" +"Il existe deux façons de faire une recherche dans Shotwell : la barre de " +"recherche et la recherche enregistrée. La barre de recherche permet une " +"recherche rapide au sein de l’affichage actuel selon certains critères. Les " +"recherches enregistrées se font selon des critères plus complexes et elles " +"persistent dans le panneau latéral entre les sessions." + +#. (itstool) path: section/title +#: C/organize-search.page:21 +msgid "Search bar" +msgstr "Barre de recherche" + +#. (itstool) path: section/p +#: C/organize-search.page:22 +msgid "" +"The ViewSearch Bar checkbox toggles " +"the display of the search bar. You can also hit CtrlF or F8 to bring up the search bar. From " +"this bar, you can find, show and hide photos and videos based on title, tag, " +"rating or other options." +msgstr "" +"La case à cocher AffichageBarre de recherche (dés)active l’affichage de la barre de recherche. Vous pouvez aussi " +"appuyer sur CtrlF ou F8 " +"pour la faire apparaître. Grâce à cette barre, vous pouvez rechercher, " +"afficher et masquer photos et vidéos sur la base du titre, de l’étiquette, " +"de la note ou d’autres options." + +#. (itstool) path: section/p +#: C/organize-search.page:29 +msgid "" +"To begin searching, simply enter a search keyword in the text box, or click " +"on Flagged, Rating or Type. The text search " +"matches your keywords across tag names, photo or video titles and photos' " +"original filenames. The Flagged, Rating and Type buttons allow you to filter your collection by whether photos are " +"flagged, their current number of stars, and whether the items shown are " +"images, videos, or raw camera files, respectively." +msgstr "" +"Pour lancer la recherche, saisissez un mot clé dans la zone de texte ou " +"cliquez sur Marqué, Note ou Type. La " +"recherche par texte filtre selon la correspondance entre les mots clés et " +"les noms d’étiquettes, les titres de photos ou de vidéos, les noms de " +"fichiers d’origine des photos. Les boutons Marqué, Note et Type permettent de filtrer la collection selon que les " +"photos sont marquées, leur nombre d’étoiles et selon qu’on désire des " +"photos, des vidéos ou des fichiers RAW, respectivement." + +#. (itstool) path: section/p +#: C/organize-search.page:38 +msgid "" +"Disabling the search bar or exiting Shotwell automatically resets the search " +"bar." +msgstr "" +"Désactiver la barre de recherche ou quitter Shotwell réinitialise " +"automatiquement la barre de recherche." + +#. (itstool) path: section/title +#: C/organize-search.page:44 +msgid "Saved search" +msgstr "Recherche enregistrée" + +#. (itstool) path: section/p +#: C/organize-search.page:45 +msgid "" +"A saved search persists across Shotwell sessions, and is updated as photos " +"and videos are added and removed from your Shotwell library." +msgstr "" +"Une recherche enregistrée persiste à travers les sessions Shotwell, et est " +"mise à jour quand des photos ou des vidéos sont ajoutées ou enlevées de " +"votre photothèque Shotwell." + +#. (itstool) path: section/p +#: C/organize-search.page:50 +msgid "" +"Create a new saved search with EditNew Saved " +"Search... or by hitting CtrlS. The dialog box allows you to enter a name for the search and select " +"whether you want to meet Any, All, or None of the criteria in the following " +"rows." +msgstr "" +"Créez une nouvelle recherche enregistrée avec ÉditionNouvelle recherche enregistrée ou en appuyant sur " +"CtrlS. La boîte de dialogue permet de " +"saisir un nom pour la recherche et de définir si vous voulez vous faire correspondre " +"N’importe quel, Toutes ou Aucune parmi les " +"critères des lignes suivantes." + +#. (itstool) path: section/p +#: C/organize-search.page:56 +msgid "" +"Each row represents a search criterion. Use the + button to add " +"more rows, and the - button to remove a specific row. The combo " +"box on the left of each row selects the type of criteria. Criteria must be " +"entered correctly before the OK button becomes available." +msgstr "" +"Chaque ligne correspond à un critère de recherche. Cliquez sur le bouton + pour ajouter des lignes et le bouton - pour supprimer une " +"ligne particulière. La liste déroulante à la gauche de chaque ligne désigne " +"le type de critère. Les critères doivent être saisis correctement pour que " +"le bouton Valider devienne actif." + +#. (itstool) path: info/desc +#: C/organize-tag.page:7 +msgid "Organize photos by labelling them." +msgstr "Classer les photos en les étiquetant." + +#. (itstool) path: page/title +#: C/organize-tag.page:14 +msgid "Tagging photos" +msgstr "Étiquetage des photos" + +#. (itstool) path: page/p +#: C/organize-tag.page:16 +msgid "" +"You can assign one or more tags to selected photos. A tag can be one or more " +"words that you want to associate with those photos." +msgstr "" +"Vous pouvez donner une ou plusieurs étiquettes aux photos sélectionnées. Une " +"étiquette peut être un ou plusieurs mots que vous voulez associer à ces " +"photos." + +#. (itstool) path: page/p +#: C/organize-tag.page:22 +msgid "" +"To add new tags to photos, select the photos you would like to tag, then do " +"any of the following:" +msgstr "" +"Pour ajouter de nouvelles étiquettes aux photos, sélectionnez les photos " +"voulues et réalisez une des actions suivantes :" + +#. (itstool) path: item/p +#: C/organize-tag.page:28 +msgid "Choose TagsAdd Tags...." +msgstr "" +"Sélectionnez ÉtiquettesAjouter des étiquettes…." + +#. (itstool) path: item/p +#: C/organize-tag.page:29 +msgid "Type CtrlT." +msgstr "Appuyez sur CtrlT." + +#. (itstool) path: item/p +#: C/organize-tag.page:30 +msgid "Drag the selected photos and drop them on the desired tag." +msgstr "" +"Glissez les photos sélectionnées et déposez-les sur l’étiquette voulue." + +#. (itstool) path: page/p +#: C/organize-tag.page:33 +msgid "" +"When you use CtrlT or " +"TagsAdd Tags... you can type in the " +"names of one or more tags, separated by commas. Once you have created a tag, " +"you can rename it by selecting that tag in the sidebar and choosing " +"TagsRename Tag \"[name]\"..., by " +"rightclicking on it and choose Rename... or double-click on the " +"tag in the sidebar." +msgstr "" +"Quand vous utilisez CtrlT ou " +"ÉtiquettesAjouter des étiquettes… " +"vous pouvez saisir les noms d’une ou plusieurs étiquettes, séparés par des " +"virgules. Une fois une étiquette créée, pour la renommer, sélectionnez-la " +"dans la barre latérale puis, par un clic droit, choisissez Renommer…, ou double-cliquez sur l’étiquette." + +#. (itstool) path: page/p +#: C/organize-tag.page:44 +msgid "" +"To change which tags are associated with a particular photo, select that " +"photo, choose TagsModify Tags... or " +"right-click on a photo and select Modify Tags... and edit the " +"comma separated list. To remove a tag from one or more photos, first select " +"that tag in the sidebar, then select the photos you would like to remove, " +"and choose TagsRemove Tag \"[name]\" from Photos or right-click on the photos an select Remove Tag " +"\"[name]\" from Photos." +msgstr "" +"Pour modifier les étiquettes associées à une photo particulière, " +"sélectionnez cette photo, choisissez ÉtiquettesModifier les étiquettes ou faites un clic droit sur " +"la photo et dans le menu contextuel sélectionnez Modifier les " +"étiquettes, puis rectifiez la liste séparée par des virgules. Pour " +"enlever une étiquette d’une ou plusieurs photos, sélectionnez cette étiquette " +"dans la barre latérale, puis sélectionnez les photos dont vous voulez enlever " +"l'étiquette et choisissez ÉtiquettesEnlever l’étiquette " +"« nom » des photos ou faites un clic droit sur une photo et " +"choisissez Enlever l’étiquette « nom » des photos." + +#. (itstool) path: page/p +#: C/organize-tag.page:58 +msgid "" +"To delete a tag entirely, select that tag in the sidebar and choose " +"TagsDelete Tag \"[name]\" or by right-" +"click and select Delete Tag \"[name]\"." +msgstr "" +"Pour supprimer totalement une étiquette, sélectionnez cette étiquette dans " +"le panneau latéral puis faites un clic droit sur cette étiquette et dans le " +"menu contextuel choisissez Supprimer." + +#. (itstool) path: page/p +#: C/organize-tag.page:64 +msgid "" +"When you create a tag, it will appear in the sidebar under the Tags item, which is hidden if there are no tags. Photos can have multiple " +"tags attached to them, and when you click on the name of a given tag in the " +"sidebar, you will see all the photos associated with that tag." +msgstr "" +"Quand vous créez une étiquette, elle s’affiche dans la barre latérale à la " +"rubrique Étiquettes qui n’existe pas en l’absence d’étiquette. " +"Les photos peuvent avoir plusieurs étiquettes rattachées et, si vous cliquez " +"sur le nom de l’une d’elles dans la barre latérale, toutes les photos " +"possédant cette étiquette sont affichées." + +#. (itstool) path: section/title +#: C/organize-tag.page:73 +msgid "Hierarchical Tags" +msgstr "Étiquettes hiérarchiques" + +#. (itstool) path: section/p +#: C/organize-tag.page:74 +msgid "" +"Shotwell supports also hierarchial tags. You can rearrange your tags by drag " +"and drop a tag onto another. To create a new subtag right-click on a tag and " +"select New." +msgstr "" +"Shotwell gère aussi les étiquettes hiérarchiques. Vous pouvez réarranger les " +"étiquettes par un glisser-déposer d’une étiquette sur une autre. Pour créer " +"une nouvelle sous-étiquette, faites un clic droit sur une étiquette et " +"sélectionnez Nouveau." + +#. (itstool) path: section/p +#: C/organize-tag.page:81 +msgid "" +"Hierarchial tags can help you to sort your tag list in ways that better " +"match how you work or think; for example, you can store location tags like " +"\"Mountains\" or \"Beach\" under a parent tag \"Places\", which itself can " +"be placed under the tag \"Summer Holidays\"." +msgstr "" +"Les étiquettes hiérarchiques facilitent le tri de la liste des étiquettes de " +"manière à ce qu’elle corresponde mieux à votre façon de travailler ou de " +"voir les choses. Par exemple, vous pouvez ranger les étiquettes « Montagne » " +"ou « Plage » sous un parent « Lieux de séjour », lui-même rangé sous " +"l’étiquette plus générale « Vacances d’été »." + +#. (itstool) path: section/p +#: C/organize-tag.page:89 +msgid "Note that deleting a parent tag will also delete its child tags." +msgstr "" +"Notez que la suppression d’une étiquette parente supprime aussi ses " +"étiquettes filles." + +#. (itstool) path: info/desc +#: C/organize-title.page:7 +msgid "Give titles to your photos." +msgstr "Donner un titre à vos photos." + +#. (itstool) path: page/title +#: C/organize-title.page:12 +msgid "Titles" +msgstr "Titres" + +#. (itstool) path: page/p +#: C/organize-title.page:14 +msgid "" +"The ViewTitles checkbox toggles the " +"display of titles beneath each photo. By default, a photo's title is its " +"filename." +msgstr "" +"La case à cocher AffichageTitres " +"(dés)active l’affichage des titres situés sous chaque photo. Par défaut, le " +"titre d’une photo est son nom de fichier." + +#. (itstool) path: page/p +#: C/organize-title.page:17 +msgid "" +"To change a photo's title, select the photo and click PhotosEdit Title..., or press F2." +msgstr "" +"Pour modifier le titre d’une photo, sélectionnez la photo et choisissez " +"PhotosModifier le titre…, ou " +"appuyez sur F2." + +#. (itstool) path: info/desc +#: C/other-files.page:7 +msgid "Keep the Shotwell library in sync with photo files on disk." +msgstr "" +"Garder la photothèque Shotwell synchronisée avec les fichiers " +"photographiques sur le disque dur." + +#. (itstool) path: page/title +#: C/other-files.page:12 +msgid "Photo files" +msgstr "Fichiers photographiques" + +#. (itstool) path: page/p +#: C/other-files.page:14 +msgid "" +"Every photo in the Shotwell library corresponds to a file stored on your " +"hard disk. Shotwell has several features which help you keep the Shotwell " +"library and files on disk in sync." +msgstr "" +"Chaque photo dans la photothèque Shotwell correspond à un fichier enregistré " +"sur le disque dur. Shotwell dispose de plusieurs fonctionnalités qui vous " +"aident à garder la photothèque Shotwell synchronisée avec les fichiers du " +"disque dur." + +#. (itstool) path: section/title +#: C/other-files.page:21 +msgid "Using a custom directory pattern" +msgstr "Utilisation d’un modèle de répertoire personnalisé" + +#. (itstool) path: section/p +#: C/other-files.page:22 +msgid "" +"Shotwell allows you to specify how it names directories in your library. You " +"can do this by changing the Directory Structure and Pattern settings in the Preferences dialog. You may use a " +"preselected pattern, or choose Custom and type in your own." +msgstr "" +"Shotwell permet de préciser comment il nomme les répertoires de la " +"photothèque. Pour cela, modifiez les paramètres de Structure de " +"dossier et Modèle dans la fenêtre des Préférences. Vous avez la possibilité d’utiliser un modèle présélectionné, ou de " +"choisir Personnalisé et de saisir le vôtre." + +#. (itstool) path: section/p +#: C/other-files.page:29 +msgid "" +"The available symbols for the directory pattern begin with a % (percent " +"sign). The values these symbols produce are locale-dependent, so what you " +"see on your computer may vary from the examples below." +msgstr "" +"Les symboles disponibles pour le modèle de dossier commencent par un « % ». " +"Les valeurs que ces symboles produisent dépendent de la langue utilisée par " +"le système, aussi ce que vous voyez sur votre ordinateur peut être différent " +"des exemples ci-dessous." + +#. (itstool) path: td/p +#: C/other-files.page:38 +msgid "Symbol" +msgstr "Symbole" + +#. (itstool) path: td/p +#: C/other-files.page:38 +msgid "Meaning" +msgstr "Signification" + +#. (itstool) path: td/p +#: C/other-files.page:38 +msgid "Example" +msgstr "Exemple" + +#. (itstool) path: td/p +#: C/other-files.page:43 +msgid "%Y" +msgstr "%Y" + +#. (itstool) path: td/p +#: C/other-files.page:43 +msgid "Year: full" +msgstr "Année : au complet" + +#. (itstool) path: td/p +#: C/other-files.page:43 +msgid "2011" +msgstr "2011" + +#. (itstool) path: td/p +#: C/other-files.page:46 +msgid "%y" +msgstr "%y" + +#. (itstool) path: td/p +#: C/other-files.page:46 +msgid "Year: two digit" +msgstr "Année : deux chiffres" + +#. (itstool) path: td/p +#: C/other-files.page:46 +msgid "11" +msgstr "11" + +#. (itstool) path: td/p +#: C/other-files.page:49 +msgid "%d" +msgstr "%d" + +#. (itstool) path: td/p +#: C/other-files.page:49 +msgid "Day of the month with leading zero" +msgstr "Jour du mois avec un zéro initial" + +#. (itstool) path: td/p +#: C/other-files.page:49 +msgid "03" +msgstr "03" + +#. (itstool) path: td/p +#: C/other-files.page:52 +msgid "%A" +msgstr "%A" + +#. (itstool) path: td/p +#: C/other-files.page:52 +msgid "Day name: full" +msgstr "Nom du jour : au complet" + +#. (itstool) path: td/p +#: C/other-files.page:52 +msgid "Wednesday" +msgstr "Mercredi" + +#. (itstool) path: td/p +#: C/other-files.page:55 +msgid "%a" +msgstr "%a" + +#. (itstool) path: td/p +#: C/other-files.page:55 +msgid "Day name: abbreviated" +msgstr "Nom du jour : en abrégé" + +#. (itstool) path: td/p +#: C/other-files.page:55 +msgid "Wed" +msgstr "Mer" + +#. (itstool) path: td/p +#: C/other-files.page:58 +msgid "%m" +msgstr "%m" + +#. (itstool) path: td/p +#: C/other-files.page:58 +msgid "Month number with leading zero" +msgstr "Numéro du mois avec un zéro initial" + +#. (itstool) path: td/p +#: C/other-files.page:58 +msgid "02" +msgstr "02" + +#. (itstool) path: td/p +#: C/other-files.page:60 +msgid "%b" +msgstr "%b" + +#. (itstool) path: td/p +#: C/other-files.page:60 +msgid "Month name: abbreviated" +msgstr "Nom du mois : en abrégé" + +#. (itstool) path: td/p +#: C/other-files.page:60 +msgid "Feb" +msgstr "Fév" + +#. (itstool) path: td/p +#: C/other-files.page:62 +msgid "%B" +msgstr "%B" + +#. (itstool) path: td/p +#: C/other-files.page:62 +msgid "Month name: full" +msgstr "Nom du mois : au complet" + +#. (itstool) path: td/p +#: C/other-files.page:62 +msgid "February" +msgstr "Février" + +#. (itstool) path: td/p +#: C/other-files.page:63 +msgid "%I" +msgstr "%I" + +#. (itstool) path: td/p +#: C/other-files.page:63 +msgid "Hour: 12 hour format" +msgstr "Heure : format 12 heures" + +#. (itstool) path: td/p +#: C/other-files.page:63 +msgid "05" +msgstr "05" + +#. (itstool) path: td/p +#: C/other-files.page:64 +msgid "%H" +msgstr "%H" + +#. (itstool) path: td/p +#: C/other-files.page:64 +msgid "Hour: 24 hour format" +msgstr "Heure : format 24 heures" + +#. (itstool) path: td/p +#: C/other-files.page:64 +msgid "17" +msgstr "17" + +#. (itstool) path: td/p +#: C/other-files.page:66 +msgid "%M" +msgstr "%M" + +#. (itstool) path: td/p +#: C/other-files.page:66 +msgid "Minute" +msgstr "Minute" + +#. (itstool) path: td/p +#: C/other-files.page:66 +msgid "16" +msgstr "16" + +#. (itstool) path: td/p +#: C/other-files.page:67 +msgid "%S" +msgstr "%S" + +#. (itstool) path: td/p +#: C/other-files.page:67 +msgid "Second" +msgstr "Seconde" + +#. (itstool) path: td/p +#: C/other-files.page:67 +msgid "30" +msgstr "30" + +#. (itstool) path: td/p +#: C/other-files.page:68 +msgid "%p" +msgstr "%p" + +#. (itstool) path: td/p +#: C/other-files.page:68 +msgid "AM or PM" +msgstr "AM ou PM" + +#. (itstool) path: td/p +#: C/other-files.page:68 +msgid "PM" +msgstr "PM" + +#. (itstool) path: section/p +#: C/other-files.page:72 +msgid "" +"There are other symbols available; please check the manual for strftime by running the command man strftime " +"if you need one that isn't listed here." +msgstr "" +"D’autres symboles sont disponibles; reportez-vous au manuel de strftime en exécutant la commande man strftime " +"si nécessaire." + +#. (itstool) path: section/title +#: C/other-files.page:79 +msgid "Automatically importing photos" +msgstr "Importation automatique de photos" + +#. (itstool) path: section/p +#: C/other-files.page:81 +msgid "" +"Shotwell can automatically import new photos which appear in the library " +"directory. (The library directory is usually the Pictures " +"directory in your home directory; you can change its location in in the " +"Preferences window.)" +msgstr "" +"Shotwell peut importer automatiquement les nouvelles photos ajoutées au " +"dossier de la photothèque. Le dossier de la photothèque est habituellement " +"le dossier Images du Dossier personnel. Vous pouvez modifier " +"cet emplacement dans la fenêtre des Préférences." + +#. (itstool) path: section/p +#: C/other-files.page:86 +msgid "" +"To enable auto-import, check the box Watch library directory for new " +"files in the Preferences window." +msgstr "" +"Pour activer l’importation automatique, cochez la case Détecter les " +"nouveaux fichiers dans le dossier de la photothèque dans la fenêtre " +"des Préférences." + +#. (itstool) path: note/p +#: C/other-files.page:90 +msgid "" +"Shotwell can also follow symbolic links inside automatically-imported " +"directories." +msgstr "" +"Shotwell peut aussi suivre les liens symboliques à l’intérieur des dossiers " +"automatiquement importés." + +#. (itstool) path: section/title +#: C/other-files.page:95 +msgid "Automatically renaming imported photos to lowercase" +msgstr "Mise en minuscules automatique des noms des photos importées" + +#. (itstool) path: section/p +#: C/other-files.page:97 +msgid "" +"Shotwell can automatically change the filenames of imported photos to " +"lowercase. To enable this, choose EditPreferences, and in the Preferences window, check the " +"Rename imported files to lowercase box." +msgstr "" +"Shotwell peut mettre automatiquement en minuscules les noms des photos " +"importées. Pour activer ce comportement, choisissez ÉditionPréférences, et dans la fenêtre Préférences, cochez la case Renommer les fichiers importés en minuscules." + +#. (itstool) path: section/title +#: C/other-files.page:107 +msgid "Writing metadata on the fly" +msgstr "Écriture des métadonnées à la volée" + +#. (itstool) path: section/p +#: C/other-files.page:109 +msgid "" +"By default, Shotwell does not modify photo files, even when you edit photos " +"or change their tags or titles. Shotwell records these changes in its own " +"database only." +msgstr "" +"Par défaut, les modifications apportées par Shotwell aux photos, étiquettes " +"et titres ne sont pas répercutées sur les fichiers photographiques du disque " +"dur. Shotwell enregistre ces modifications dans sa propre base de données." + +#. (itstool) path: section/p +#: C/other-files.page:112 +msgid "" +"To change this behavior, you can enable the checkbox Write tags, titles " +"and other metadata to photo files in the Preferences " +"dialog. When this option is enabled, Shotwell will write the following " +"metadata to most photo files whenever you change it in Shotwell:" +msgstr "" +"Pour changer ce comportement, cochez la case Écrire les étiquettes, " +"titres et autres métadonnées dans les fichiers des photos dans la " +"fenêtre des Préférences. Lorsque cette option est activée, " +"Shotwell inscrit les métadonnées suivantes dans les fichiers " +"photographiques, chaque fois que vous les modifiez dans Shotwell :" + +#. (itstool) path: item/p +#: C/other-files.page:118 +msgid "titles" +msgstr "titres" + +#. (itstool) path: item/p +#: C/other-files.page:119 +msgid "tags" +msgstr "étiquettes" + +#. (itstool) path: item/p +#: C/other-files.page:120 +msgid "ratings" +msgstr "notes" + +#. (itstool) path: item/p +#: C/other-files.page:121 +msgid "rotation information" +msgstr "informations de rotation" + +#. (itstool) path: item/p +#: C/other-files.page:122 +msgid "time/date" +msgstr "heure/date" + +#. (itstool) path: section/p +#: C/other-files.page:125 +msgid "" +"Shotwell stores this information in photo files in EXIF, IPTC and/or XMP " +"format. Note that Shotwell can write only to photo files in JPEG, PNG and " +"TIFF format, not to BMP photos, RAW photos or to video files." +msgstr "" +"Shotwell enregistre ces informations dans les fichiers photographiques au " +"format EXIF, IPTC et/ou XMP. Notez que Shotwell ne peut écrire que dans les " +"fichiers JPEG, PNG et TIFF, mais pas dans les fichiers BMP, RAW et vidéos." + +#. (itstool) path: section/title +#: C/other-files.page:133 +msgid "Runtime monitoring" +msgstr "Surveillance pendant l’exécution du programme" + +#. (itstool) path: section/p +#: C/other-files.page:135 +msgid "" +"While Shotwell is running, it notices changes made to any photo file " +"externally. When a photo file changes, Shotwell rereads the file and updates " +"your view of the photo and metadata." +msgstr "" +"Pendant son exécution, Shotwell note les modifications apportées en externe " +"aux fichiers photographiques. Quand un fichier photographique est modifié, " +"Shotwell relit le fichier et met à jour l’affichage de ses photos ainsi que " +"les métadonnées." + +#. (itstool) path: section/p +#: C/other-files.page:139 +msgid "" +"Note that Shotwell checks all photo files for changes at startup, but only " +"photo files contained in the library directory are monitored in real time " +"after startup. We hope to remove this limitation in a further release." +msgstr "" +"Notez que Shotwell vérifie, au démarrage, pour tous les fichiers " +"photographiques, si des modifications ont été effectuées. Mais après le " +"démarrage, seuls les fichiers photographiques du dossier photothèque sont " +"surveillés en temps réel. Nous espérons lever cette restriction dans une " +"prochaine version." + +#. (itstool) path: info/desc +#: C/other-missing.page:7 +msgid "If Shotwell can't find a photo in your library, it marks it as missing." +msgstr "" +"Si Shotwell ne trouve pas une photo dans la photothèque, il l’indique " +"comme manquante." + +#. (itstool) path: page/title +#: C/other-missing.page:12 +msgid "Missing photos" +msgstr "Photo manquantes" + +#. (itstool) path: page/p +#: C/other-missing.page:14 +msgid "" +"Each time Shotwell starts up, it scans your photo library to verify that all " +"photo files still exist on your hard drive. If Shotwell finds that any photo " +"files are missing, it will not display them in the normal Photos, Events and " +"Tags views, but will instead show them in a separate Missing Files view " +"which will appear in the sidebar." +msgstr "" +"Chaque fois que Shotwell démarre, il passe en revue votre photothèque pour " +"s’assurer que toutes les photos sont bien présentes sur le disque dur. Si " +"Shotwell trouve qu’une ou plusieurs photos sont absentes, il ne les affiche " +"pas dans les rubriques Photos, Événements et Étiquettes, mais les affiche " +"dans une rubrique séparée appelée « Fichiers manquants », dans le panneau " +"latéral." + +#. (itstool) path: page/p +#: C/other-missing.page:16 +msgid "" +"If you no longer want the missing files to be part of your Shotwell " +"collection (perhaps because you deleted them), go to the Missing Files view, " +"select the photos and then click Remove From Library." +msgstr "" +"Si vous ne voulez plus que les fichiers manquants figurent dans votre " +"photothèque (peut-être parce que vous les avez supprimés), allez dans la " +"rubrique Fichiers manquants, sélectionnez les photos en question et cliquez " +"sur Supprimer de la photothèque." + +#. (itstool) path: page/p +#: C/other-missing.page:18 +msgid "" +"If you have photos on a removable disk, such as a CD or USB flash drive, and " +"import them into Shotwell without copying the photos to your computer, they will show up as missing files " +"if you then disconnect the removable disk. See " +"to learn how to copy files from removable disks onto your computer." +msgstr "" +"Si vous disposez de photos sur un média amovible, tel un CD ou une clé USB, " +"et les importez dans Shotwell sans les copier sur l’ordinateur, elles apparaîtront comme des fichiers " +"manquants si vous retirez le média. Reportez-vous à pour savoir comment copier des fichiers depuis des médias amovibles " +"vers l’ordinateur." + +#. (itstool) path: page/p +#: C/other-missing.page:20 +msgid "" +"If any missing photo files become available again, Shotwell will notice this " +"the next time it starts. The photos will once again appear in the Photos, " +"Events and Tags views." +msgstr "" +"Si des photos redeviennent disponibles, Shotwell le notera à son prochain " +"démarrage. Les photos réapparaîtront dans les rubriques Photos, Événements " +"et Étiquettes." + +#. (itstool) path: info/desc +#: C/other-multiple.page:7 +msgid "" +"You can open Shotwell with a different photo library by using the command " +"line." +msgstr "" +"Vous pouvez ouvrir Shotwell avec une autre photothèque en utilisant la ligne " +"de commande." + +#. (itstool) path: page/title +#: C/other-multiple.page:12 +msgid "Multiple libraries" +msgstr "Photothèques multiples" + +#. (itstool) path: page/p +#: C/other-multiple.page:14 +msgid "" +"Shotwell normally stores its database and photo thumbnails in the directory " +"~/.shotwell . This directory does not hold photos, but the " +"database in this directory contains a list of all the photos in the Shotwell " +"library." +msgstr "" +"Shotwell enregistre habituellement sa base de données et les miniatures de " +"photos dans le répertoire ~/.shotwell. Ce répertoire ne " +"contient pas de photos, mais la base de données dans ce répertoire contient " +"une liste de toutes les photos de la photothèque Shotwell." + +#. (itstool) path: page/p +#: C/other-multiple.page:16 +msgid "" +"As an advanced feature, it's possible for you to have multiple Shotwell " +"libraries, each of which has its own set of photos. Each library needs its " +"own database directory. To launch Shotwell with an alternate library, " +"specify an alternate database directory on the command line as follows:" +msgstr "" +"En tant que fonctionnalité avancée, il est possible d’avoir de multiples " +"photothèques Shotwell, chacune avec son propre lot de photos. Chaque " +"photothèque doit disposer de son propre répertoire de base de données. Pour " +"lancer Shotwell avec une autre photothèque, définissez un autre répertoire " +"de base de données dans la ligne de commande de la manière suivante :" + +#. (itstool) path: page/screen +#: C/other-multiple.page:18 +#, no-wrap +msgid "" +"\n" +"shotwell -d [library-directory]\n" +msgstr "" +"\n" +"shotwell -d [répertoire-de-la-photothèque]\n" + +#. (itstool) path: info/desc +#: C/other-plugins.page:7 +msgid "Extend Shotwell's functionality dynamically." +msgstr "Accroître dynamiquement les fonctionnalités de Shotwell." + +#. (itstool) path: page/title +#: C/other-plugins.page:12 +msgid "Plugins" +msgstr "Greffons" + +#. (itstool) path: page/p +#: C/other-plugins.page:13 +msgid "" +"Shotwell can be used with plugins, which are companion shared " +"libraries that can add support for new publishing destinations or new " +"slideshow transitions." +msgstr "" +"Shotwell peut être utilisé avec des greffons, qui sont des " +"extensions logicielles qui peuvent ajouter de nouvelles destinations de " +"publication ou de nouvelles transitions de diaporama." + +#. (itstool) path: page/p +#: C/other-plugins.page:18 +msgid "" +"To see a list of installed plugins, choose EditPreferences, and in the Preferences " +"window, click on the Plugins tab. You'll see a list of currently-" +"installed plugins, each with a checkbox by it, and you may enable or disable " +"each by selecting or deselecting the checkbox by its name." +msgstr "" +"Pour afficher la liste des greffons installés, choisissez " +"ÉditionPréférences, et, dans la " +"fenêtre Préférences qui s’ouvre, cliquez sur l’onglet " +"Greffons. Vous voyez la liste des greffons actuellement " +"installés, avec chacun une case à cocher adjacente permettant de " +"sélectionner/désélectionner les greffons nominativement." + +# La référence anglais est obsolète. Mis à jour pour la traduction. +#. (itstool) path: note/p +#: C/other-plugins.page:25 +msgid "" +"Full documentation on how to develop new plugins is available at http://redmine.yorba.org/projects/shotwell/wiki/" +"ShotwellArchWritingPlugins" +msgstr "" +"Une documentation complète sur la façon de développer de nouveaux greffons " +"pour Shotwell se trouve sur le site http://redmine.yorba.org/" +"projects/shotwell/wiki/ShotwellArchWritingPlugins" + +#. (itstool) path: info/desc +#: C/raw.page:7 +msgid "More about RAW support in Shotwell." +msgstr "Plus d’informations sur la gestion de RAW dans Shotwell." + +#. (itstool) path: page/title +#: C/raw.page:12 +msgid "RAW support in Shotwell" +msgstr "Gestion du format RAW dans Shotwell" + +#. (itstool) path: page/p +#: C/raw.page:13 +msgid "" +"Some cameras have the ability to store data directly off the sensor and into " +"a file that contains extra color information; this is commonly referred to " +"as 'RAW' or 'camera RAW', and Shotwell supports these files as well." +msgstr "" +"Certains appareils photo ont la capacité d’enregistrer les données brutes, " +"provenant directement du capteur, dans un fichier contenant des informations " +"complémentaires sur la couleur. C’est ce qu’on appelle « RAW » (brut, en " +"anglais), ou « format RAW ». Shotwell prend en charge ce genre de fichiers." + +#. (itstool) path: page/p +#: C/raw.page:18 +msgid "" +"Since RAW photographs normally cannot be displayed directly, but must be " +"first developed - that is, have their extra information interpreted and " +"readied for displaying - most cameras will either embed a JPEG inside a RAW-" +"format file, or produce a JPEG alongside the RAW file at the time the " +"snapshot is taken. The latter is referred to throughout this document as RAW" +"+JPEG. If you import a RAW+JPEG pair, Shotwell will keep them paired and " +"treat them as one item in your library." +msgstr "" +"Comme les photographies RAW ne peuvent en principe pas être affichées " +"directement, mais doivent être développées préalablement - c.-à-d que leurs " +"informations complémentaires doivent être interprétées et préparées pour " +"l’affichage - la plupart des appareils photos intègrent un fichier JPEG dans " +"le fichier RAW, ou produisent un fichier JPEG associé au fichier RAW lors de " +"la prise de vue. Cette seconde possibilité est appelée « paire RAW+JPEG » " +"dans la suite de ce document. Si vous importez une paire RAW+JPEG, Shotwell " +"la conservera telle quelle et traitera les deux comme un seul élément dans " +"votre photothèque." + +#. (itstool) path: page/p +#: C/raw.page:27 +msgid "" +"When you import a RAW file, you can choose to either use the camera's " +"internally-developed JPEG or Shotwell's by selecting PhotosDeveloper in the menus." +msgstr "" +"Lors de l’importation d’un fichier RAW, vous pouvez choisir d’utiliser le " +"JPEG créé en interne par l’appareil photo ou celui de Shotwell en " +"sélectionnant PhotosRévélateur dans " +"la barre de menus." + +#. (itstool) path: note/p +#: C/raw.page:33 +msgid "" +"Changing between developers will cause all edits made to a photograph to be " +"discarded." +msgstr "" +"Le fait de changer de révélateur entraînera le rejet de toutes les " +"modifications apportées à une photographie." + +#. (itstool) path: page/p +#: C/raw.page:39 +msgid "" +"In order to publish or use a RAW photograph in most other software, it has " +"to be exported first. Shotwell can export your RAW photos in JPEG, PNG, TIFF " +"or BMP format, and, when publishing, will internally export a JPEG version " +"for you and publish that." +msgstr "" +"Pour pouvoir être publiée ou utilisée dans la plupart des autres " +"logiciels, une photographie RAW doit d’abord être exportée. Shotwell peut " +"exporter les photos RAW au format JPEG, PNG, TIFF ou BMP, et, lors de la " +"publication, il exportera une version JPEG pour vous et la publiera." + +#. (itstool) path: info/desc +#: C/running.page:7 +msgid "" +"Find Shotwell in the Applications menu, or have it start automatically when " +"you plug in a camera." +msgstr "" +"Accéder à Shotwell dans le menu des applications, ou faire qu’il démarre " +"automatiquement quand vous branchez un appareil photo." + +#. (itstool) path: page/title +#: C/running.page:14 +msgid "Running Shotwell" +msgstr "Démarrage de Shotwell" + +#. (itstool) path: page/p +#: C/running.page:16 +msgid "" +"Once installed, Shotwell is available in your Applications menu " +"under Graphics or Photography." +msgstr "" +"Après installation, Shotwell est disponible dans le menu Applications, éventuellement sous la rubrique Graphisme ou " +"Photographie." + +# L’accès décrit en français ne correspond pas à la version anglaise mais à ce qu’il faut réellement faire sous Ubuntu. +#. (itstool) path: page/p +#: C/running.page:18 +msgid "" +"Shotwell may also be executed automatically when a camera is plugged in to " +"your computer. To check that your system is set up to run Shotwell when a " +"camera is detected, go to EditPreferences in any Nautilus (file browser) window and choose the Media tab.  You'll see a dropdown box entitled Photos: which lets " +"you choose Shotwell as your photo handling application." +msgstr "" +"Shotwell peut aussi être exécuté automatiquement lors du branchement d’un " +"appareil photo à l’ordinateur. Pour configurer votre système de façon à ce " +"qu’il démarre Shotwell quand il détecte un appareil photo, sous un bureau " +"GNOME, allez dans ParamètresDétailsMédias " +"amovibles et, à la rubrique Photos, sélectionnez Shotwell " +"dans la liste déroulante, en vous assurant que la case Ne jamais " +"demander de lancer un programme à l’insertion d’un média, n’est pas " +"cochée." + +#. (itstool) path: note/p +#: C/running.page:25 +msgid "" +"Shotwell may also be executed directly from its build directory, although " +"this is only recommended for testing out Shotwell or for developers." +msgstr "" +"Shotwell peut aussi être exécuté directement depuis son répertoire de " +"compilation, bien que cela ne soit recommandé que pour les tests ou les " +"développeurs." + +#. (itstool) path: info/desc +#: C/share-background.page:7 +msgid "" +"Set your desktop background to a single photo or to a slideshow of photos." +msgstr "Définir une photo ou un diaporama de photos comme fond d’écran." + +#. (itstool) path: page/title +#: C/share-background.page:12 +msgid "Set a desktop background or slideshow" +msgstr "Définition d’un fond d’écran ou d’un diaporama d’écran" + +#. (itstool) path: page/p +#: C/share-background.page:14 +msgid "" +"To set a single photo as your desktop background, select the photo and " +"choose FileSet as Desktop Background." +msgstr "" +"Pour définir une photo comme fond d’écran, sélectionnez la photo et " +"choisissez FichierDéfinir comme fond d’écran." + +#. (itstool) path: page/p +#: C/share-background.page:16 +msgid "" +"You can also set your background to a slideshow of photos. To do this, " +"select the photos for the slideshow and choose FileSet as Desktop Slideshow.... Shotwell will prompt " +"you for a slideshow delay, which can be any interval up to one day in " +"length. The background slideshow will proceed even when Shotwell is not " +"running." +msgstr "" +"Vous pouvez aussi définir un diaporama de photos comme fond d’écran. Pour " +"cela, sélectionnez les photos constituant le diaporama et choisissez " +"FichierDéfinir comme diaporama d’écran. Shotwell vous demandera un délai entre les photos qui peut être " +"tout intervalle de temps jusqu’à un jour. Le diaporama d’écran fonctionnera " +"même si Shotwell n’est pas lancé." + +#. (itstool) path: info/desc +#: C/share-export.page:7 +msgid "Copy photos out of Shotwell so you can put them somewhere else." +msgstr "Copier des photos à partir de Shotwell pour les placer ailleurs." + +#. (itstool) path: page/title +#: C/share-export.page:12 +msgid "Exporting photos" +msgstr "Exportation de photos" + +#. (itstool) path: page/p +#: C/share-export.page:14 +msgid "" +"To export photos from Shotwell via drag and drop, drag the photos from " +"Shotwell onto a file manager window or your desktop. The new files will be " +"full-sized copies of the photos in your library." +msgstr "" +"Pour exporter des photos depuis Shotwell, faites les glisser jusqu’à une " +"fenêtre de gestionnaire de fichiers, ou jusqu’au bureau, pour les y coller. " +"Les nouveaux fichiers sont des copies pleine taille des photos de votre " +"photothèque." + +#. (itstool) path: page/p +#: C/share-export.page:18 +msgid "" +"Alternatively, select a set of photos and choose the FileExport... command or press ShiftCtrlE, which exports photos while letting " +"you fine-tune the size and dimensions of your photo files. A window will " +"appear allowing you to make several choices:" +msgstr "" +"Vous pouvez aussi sélectionner un jeu de photos et choisir la commande " +"FichierExporter, ou appuyez sur " +"MajCtrlE, ce qui vous " +"donne la possibilité de régler en finesse la taille et l’aspect de vos " +"fichiers photos. Une fenêtre s’affiche qui offre plusieurs options :" + +#. (itstool) path: item/p +#: C/share-export.page:24 +msgid "A format for export." +msgstr "Un format pour l’exportation." + +#. (itstool) path: item/p +#: C/share-export.page:27 +msgid "" +"Choose Unmodified to export photos in their original format " +"without any edits made in Shotwell. RAW photos will be exported in their " +"original RAW format." +msgstr "" +"Choisissez Non modifié pour exporter les photos dans leur format " +"d’origine sans modification effectuée dans Shotwell. Les photos RAW seront " +"exportées au format RAW d’origine." + +#. (itstool) path: item/p +#: C/share-export.page:29 +msgid "" +"Choose Current to export photos including edits made in Shotwell. " +"RAW photos will be exported in JPEG format if you have edited them in " +"Shotwell, and otherwise in their original RAW format." +msgstr "" +"Choisissez Actuel pour exporter les photos avec les modifications " +"effectuées dans Shotwell. Les photos RAW seront exportées au format JPEG si " +"vous les avez modifiées dans Shotwell, sinon elles le seront dans leur format " +"d’origine RAW." + +#. (itstool) path: item/p +#: C/share-export.page:31 +msgid "" +"Or you can choose a particular image format (JPEG, PNG, TIFF, BMP) to be " +"used for exporting. Any edits made in Shotwell will be included, and " +"Shotwell will convert photos to the destination format." +msgstr "" +"Vous pouvez aussi choisir un format particulier (JPEG, PNG, TIFF, BMP) pour " +"l’exportation. Les modifications effectuées dans Shotwell seront incluses et " +"Shotwell convertira les photos au format voulu." + +#. (itstool) path: item/p +#: C/share-export.page:37 +msgid "The image quality for exporting (Low, Medium, High, or Maximum)." +msgstr "" +"Qualité de l’image pour l’exportation (Faible, Moyenne, Forte, ou Maximum)." + +#. (itstool) path: item/p +#: C/share-export.page:38 +msgid "" +"A scaling constraint (which means how Shotwell will decide to scale the " +"photos down), and the desired pixel size." +msgstr "" +"Contrainte d’échelle (c’est la façon pour Shotwell de réduire l’échelle des " +"photos), et taille désirée en pixels." + +#. (itstool) path: item/title +#: C/share-export.page:40 +msgid "Original size" +msgstr "Taille originale" + +#. (itstool) path: item/p +#: C/share-export.page:40 +msgid "Image will be exported without any scaling applied" +msgstr "L’image sera exportée sans aucun redimensionnement" + +#. (itstool) path: item/title +#: C/share-export.page:41 +msgid "Longest edge" +msgstr "Bord le plus long" + +#. (itstool) path: item/p +#: C/share-export.page:41 +msgid "" +"Image will be exported by having its longest edge scaled to Pixels and the other according to the aspect ratio" +msgstr "" +"L’image sera exportée avec son bord le plus long retaillé à Pixels et l’autre proportionnellement" + +#. (itstool) path: item/title +#: C/share-export.page:42 +msgid "Width" +msgstr "Largeur" + +#. (itstool) path: item/p +#: C/share-export.page:42 +msgid "" +"The image width will have its width scaled to the given pixel size and its " +"height according to the aspect ratio. This is equivalent to Longest " +"Edge for landscape pictures." +msgstr "" +"La largeur de l’image sera ajustée à la taille donnée en pixels " +"et sa hauteur adaptée en proportion. Ceci est équivalent à Bord le plus " +"long pour les images en paysage." + +#. (itstool) path: item/title +#: C/share-export.page:43 +msgid "Height" +msgstr "Hauteur" + +#. (itstool) path: item/p +#: C/share-export.page:43 +msgid "" +"The image height will have its height scaled to the given pixel size and its " +"width according to the aspect ratio. This is equivalent to Longest " +"Edge for portrait pictures." +msgstr "" +"La hauteur de l’image sera ajustée à la hauteur donnée en pixels et sa " +"largeur adaptée en proportion. C’est équivalent à Bord le plus long " +"pour les images en portrait." + +#. (itstool) path: item/p +#: C/share-export.page:46 +msgid "" +"The option whether you like to export metadatas such as tags or ratings. " +"This can help to save your privacy if you have geolocation tags or tags " +"which shouldn't be seen by anyone." +msgstr "" +"Le bouton radio Exporter les métadonnées pour décider si vous " +"voulez exporter les métadonnées comme les étiquettes et les notes. Cela " +"facilite la préservation de votre vie privée si vous avez des étiquettes de " +"géolocalisation ou qui ne doivent pas êtres vues par tout le monde." + +#. (itstool) path: page/p +#: C/share-export.page:49 +msgid "" +"If selected, Shotwell will write tags, titles, and other metadata to the new " +"files." +msgstr "" +"Si cette option est sélectionnée, Shotwell inscrit les étiquettes, les " +"titres et les autres métadonnées dans les nouveaux fichiers." + +#. (itstool) path: info/desc +#: C/share-print.page:7 +msgid "" +"Click FilePrint.... For more printing " +"options, select the Page Setup tab in the Print dialog." +msgstr "" +"Cliquez sur FichierImprimer. Pour " +"plus d’options d’impression, sélectionnez l’onglet Mise en page " +"dans la fenêtre Imprimer." + +#. (itstool) path: page/title +#: C/share-print.page:12 +msgid "Printing" +msgstr "Impression" + +#. (itstool) path: page/p +#: C/share-print.page:14 +msgid "" +"To print a photo, select it and choose FilePrint...." +msgstr "" +"Pour imprimer une photo, sélectionnez-la et choisissez FichierImprimer." + +#. (itstool) path: page/p +#: C/share-print.page:16 +msgid "" +"Shotwell can also print multiple images in one page; to do this, select " +"multiple images, choose FilePrint..., " +"and in the Print dialog, choose the Image Settings " +"tab. In Image Settings, choose one of the multiple-image-per-page " +"options under Autosize." +msgstr "" +"Shotwell peut aussi imprimer plusieurs photos par page ; pour cela, " +"sélectionnez les images, choisissez FichierImprimer, et, dans la fenêtre, cliquez sur l’onglet Paramètres de " +"l’image. Dans la liste déroulante de l’option Taille automatique, choisissez alors l’une des options « images par page »." + +#. (itstool) path: page/p +#: C/share-print.page:23 +msgid "" +"If you would like to set formatting, paper size, and orientation options, " +"choose the Page Setup tab in the Print dialog prior to " +"printing." +msgstr "" +"Si vous désirez définir les options de formatage, de taille de papier et " +"d’orientation, cliquez sur l’onglet Mise en page dans la fenêtre " +"Imprimer." + +#. (itstool) path: info/desc +#: C/share-send.page:7 +msgid "Send photos via email, instant messaging or in other ways." +msgstr "" +"Envoyer des photos par courriel, messagerie instantanée ou d’autres façons." + +#. (itstool) path: page/title +#: C/share-send.page:12 +msgid "Sending photos" +msgstr "Envoi de photos" + +#. (itstool) path: page/p +#: C/share-send.page:14 +msgid "" +"Shotwell can send photos using the GNOME desktop's Send To mechanism, which " +"lets you send photos via email, instant messaging or in other ways." +msgstr "" +"Shotwell peut envoyer des photos en utilisant le mécanisme « Envoyer à » du " +"bureau GNOME qui permet d’envoyer des photos par courriel, messagerie " +"instantanée ou d’autres façons." + +#. (itstool) path: page/p +#: C/share-send.page:16 +msgid "" +"To send photos, select them in Shotwell and choose FileSend To..., or right-click the photos and choose " +"Send To... from the context menu. A Send To dialog box " +"will appear which lets you choose a mechanism for sending the files (such as " +"email or instant messaging) and a destination. You can optionally choose to " +"send the files in a compressed format." +msgstr "" +"Pour envoyer des photos, sélectionnez-les dans Shotwell et choisissez " +"FichierEnvoyer vers…, ou faites un " +"clic droit sur les photos et choisissez Envoyer vers… dans le " +"menu contextuel. Une boîte de dialogue Envoyer vers s’affiche et " +"vous permet de choisir un mécanisme d’envoi de fichiers (courriel ou " +"messagerie instantanée) et la destination. Vous avez la possibilité de " +"comprimer les fichiers à envoyer." + +#. (itstool) path: info/desc +#: C/share-slideshow.page:7 +msgid "Watch a slideshow of your photos." +msgstr "Visionner un diaporama de vos photos." + +#. (itstool) path: page/title +#: C/share-slideshow.page:12 +msgid "Slideshows" +msgstr "Diaporamas" + +#. (itstool) path: page/p +#: C/share-slideshow.page:14 +msgid "" +"To see a sideshow of any collection in Shotwell, navigate to that collection " +"and select ViewSlideshow or press " +"F5." +msgstr "" +"Pour voir un diaporama d’une collection dans Shotwell, naviguez jusqu’à " +"cette collection et sélectionnez AffichageDiaporama ou appuyez sur F5." + +#. (itstool) path: page/p +#: C/share-slideshow.page:16 +msgid "You can change some settings in a running slideshow:" +msgstr "Vous pouvez modifier certains paramètres dans un diaporama en cours :" + +#. (itstool) path: item/p +#: C/share-slideshow.page:19 +msgid "The duration how long an image should be shown: 1 - 30 seconds" +msgstr "Durée d’affichage d’une image : 1 -30 secondes" + +#. (itstool) path: item/p +#: C/share-slideshow.page:20 +msgid "You can select different transition effects." +msgstr "Vous pouvez sélectionner divers effets de transition." + +#. (itstool) path: item/p +#: C/share-slideshow.page:21 +msgid "The time for each transition effect: 0.1 - 1.0 seconds" +msgstr "Durée de chaque effet de transition : 0,1 - 1,0 seconde" + +#. (itstool) path: info/desc +#: C/share-upload.page:7 +msgid "Publish photos to Facebook, Flickr, Picasa Web Albums, or other sites." +msgstr "" +"Publier des photographies sur Facebook, Flickr, les albums Web Picasa, ou " +"d’autres sites." + +#. (itstool) path: page/title +#: C/share-upload.page:12 +msgid "Publishing to the Web" +msgstr "Publication sur le Web" + +#. (itstool) path: page/p +#: C/share-upload.page:14 +msgid "" +"Through the use of plugins, Shotwell can " +"publish photos and videos to the following services, each of which requires " +"an account:" +msgstr "" +"En se servant de greffons, Shotwell peut " +"publier des photos et des vidéos sur les services suivants, chacun d’eux " +"nécessitant un compte :" + +#. (itstool) path: item/p +#: C/share-upload.page:18 +msgid "Facebook" +msgstr "Facebook " + +#. (itstool) path: item/p +#: C/share-upload.page:19 +msgid "Flickr" +msgstr "Flickr " + +#. (itstool) path: item/p +#: C/share-upload.page:20 +msgid "" +"Picasa Web Albums and " +"Google+" +msgstr "" +"Albums Web Picasa et " +"Google+ " + +#. (itstool) path: item/p +#: C/share-upload.page:21 +msgid "YouTube (videos only)" +msgstr "" +"YouTube (seulement les vidéos)" + +#. (itstool) path: item/p +#: C/share-upload.page:22 +msgid "Tumblr (videos only)" +msgstr "Tumblr (seulement les vidéos)" + +#. (itstool) path: item/p +#: C/share-upload.page:23 +msgid "" +"Any site running the Piwigo photo " +"gallery software (photos only)" +msgstr "" +"Tout site exécutant le logiciel de galerie photo Piwigo (photos seulement)" + +#. (itstool) path: page/p +#: C/share-upload.page:26 +msgid "" +"To publish selected photos in a collection, choose EditPreferences and click on the Plugins tab " +"to enable the plugin for the service you want to publish to. Next, choose, " +"FilePublish, press the Publish toolbar button or use CtrlShiftP. You will see a dialog that lets you select a publishing " +"service. You will then need to log in or create an account." +msgstr "" +"Pour publier les photographies sélectionnées dans une collection, choisissez " +"ÉditionPréférences, et cliquez sur " +"l’onglet Greffons pour activer les greffons des services sur " +"lesquels vous voulez publier. Puis sélectionnez FichierPublier ou cliquez sur le bouton de la barre " +"d’outils Publier, ou encore appuyez sur CtrlShiftP. Une boîte de dialogue s’affiche " +"pour choisir le service sur lequel vous voulez publier. Vous devez alors " +"vous identifier ou créer un compte." + +#. (itstool) path: page/p +#: C/share-upload.page:31 +msgid "" +"Publishing to Facebook requires you to grant certain permissions to the " +"Shotwell Facebook application. You only need to grant these permissions " +"once, when you first associate Shotwell with your Facebook account." +msgstr "" +"Pour publier sur Facebook, il vous faut accorder certaines autorisations à " +"l’application Facebook « Shotwell Connect ». Ces autorisations ne sont " +"données qu’une seule fois, quand vous associez pour la première fois " +"Shotwell Connect à votre compte Facebook." + +#. (itstool) path: note/p +#: C/share-upload.page:34 +msgid "" +"You will be only able to publish images with at most the permission you " +"granted to the Shotwell Facebook application" +msgstr "" +"Vous ne pourrez publier les images qu’avec, au plus, l’autorisation accordée " +"à l’application Shotwell Connect pour Facebook" + +#. (itstool) path: page/p +#: C/share-upload.page:36 +msgid "" +"Similarly, publishing to Flickr requires you to log in and permit Shotwell " +"Connect to access your account." +msgstr "" +"De même, la publication sur Flickr nécessite de vous connecter et autoriser " +"Shotwell Connect à accéder à votre compte." + +#. (itstool) path: page/p +#: C/share-upload.page:38 +msgid "" +"If you have a Google account, but have not yet used Picasa Web Albums, you " +"will need to log in to Picasa using a browser once before you can publish to " +"this service." +msgstr "" +"Si vous avez un compte Google, mais que vous n’avez pas encore utilisé " +"Picasa Albums, vous devrez vous connecter une fois à Picasa en vous servant " +"d’un navigateur web avant de pouvoir publier sur ce service." + +#. (itstool) path: info/desc +#: C/view-displaying.page:7 +msgid "" +"Learn about different ways of viewing your photos: in a grid, filling the " +"main window, or filling the whole screen." +msgstr "" +"Apprendre plusieurs façons d’afficher vos photographies : selon une grille, " +"en remplissant toute la fenêtre principale, ou en plein écran." + +#. (itstool) path: page/title +#: C/view-displaying.page:12 +msgid "Photo views" +msgstr "Affichages de photographies" + +#. (itstool) path: page/p +#: C/view-displaying.page:14 +msgid "" +"When you select any collection in the sidebar, Shotwell displays all photos " +"in the collection in the main window area. At the bottom right is a slider " +"which adjusts the viewing size of the thumbnails. You may also adjust the " +"thumbnail size using the plus and minus keys (+ and -) " +"or by pressing Ctrl while moving your mouse scroll wheel." +msgstr "" +"Si vous sélectionnez une collection quelconque dans le panneau latéral, " +"Shotwell affiche toutes les photographies de la collection dans la fenêtre " +"principale sous forme de miniatures. En bas à droite se trouve un curseur " +"pour ajuster la taille de ces miniatures. Vous pouvez aussi régler cette " +"taille à l’aide des touches + et -, ou en maintenant " +"l’appui sur Ctrl tout en tournant la molette de votre souris." + +#. (itstool) path: page/p +#: C/view-displaying.page:16 +msgid "" +"You can view a photo full-window by double-clicking on it. From there you " +"may move to other photos in the collection with the Back and Forward " +"buttons. To return to the collection, double-click on the photo or press " +"Esc." +msgstr "" +"Vous pouvez visualiser une photographie en mode pleine fenêtre par un double " +"clic dans la fenêtre. Vous pouvez alors passer à d’autres photographies de la " +"collection à l’aide des touches fléchées gauche et droite. Pour revenir à la " +"collection, faites un double clic sur la photographie ou appuyez sur " +"Echap." + +#. (itstool) path: page/p +#: C/view-displaying.page:18 +msgid "" +"When viewing a photo in full-window mode, the slider on the toolbar controls " +"zoom. You can pan around by grabbing and dragging anywhere on the photo. You " +"can also zoom using your scroll wheel or by pressing the following keyboard " +"shortcuts: Ctrl0 for the full image, " +"Ctrl1 for 100% (1 photo pixel = 1 screen pixel), " +"and Ctrl2 for 200% (1 photo pixel = 2x2 screen " +"pixels)." +msgstr "" +"Lors de l’affichage d’une photographie en mode pleine fenêtre, le curseur " +"dans la barre d’outils contrôle le zoom. Vous pouvez effectuer un " +"panoramique par un cliquer-glisser n’importe où sur la photographie. Vous " +"pouvez aussi zoomer en utilisant la molette de la souris ou en appuyant sur " +"les raccourcis clavier suivants : Ctrl0 pour " +"l’image entière, Ctrl1 pour 100% (1 pixel photo " +"= 1 pixel écran), et Ctrl2 pour 200% (1 pixel " +"photo = 2x2 pixels écran)." + +#. (itstool) path: page/p +#: C/view-displaying.page:20 +msgid "" +"Shotwell offers a fullscreen mode to display photos. Choose " +"ViewFullscreen or press F11. To see the fullscreen toolbar, move your mouse to the bottom of the " +"screen. The toolbar offers buttons to move through the collection, to pin " +"the toolbar down (so it isn't hidden when you move the mouse away), and to " +"leave fullscreen view." +msgstr "" +"Shotwell offre un mode plein écran pour l’affichage des photographies. " +"Choisissez AffichagePlein écran ou " +"appuyez sur F11. Pour afficher la barre d’outils dans le mode " +"plein écran, déplacez le pointeur de la souris au bas de l’écran. Cette " +"barre d’outils offre des boutons pour se déplacer dans la collection, pour " +"immobiliser la barre d’outils en bas (de telle sorte qu’elle n’est pas " +"masquée lorsque vous déplacez la souris en dehors), et pour quitter le mode " +"plein écran." + +#. (itstool) path: section/title +#: C/view-displaying.page:23 +msgid "Viewing videos" +msgstr "Affichage de vidéos" + +#. (itstool) path: section/p +#: C/view-displaying.page:24 +msgid "" +"When you double-click a video, Shotwell will launch an external video player " +"to play the video. It's not currently possible to display a video in full-" +"window mode in Shotwell or to play the video within Shotwell itself." +msgstr "" +"Si vous faites un double clic sur une vidéo, Shotwell lance un lecteur de " +"vidéo externe. Il n’est pas possible actuellement d’afficher une vidéo en " +"mode pleine fenêtre ni de lire la vidéo dans Shotwell lui-même." + +#. (itstool) path: info/desc +#: C/view-information.page:7 +msgid "" +"View more detailed information about photos, like the exposure mode used by " +"the camera." +msgstr "" +"Obtenir plus d’informations sur les photographies, comme le mode " +"d’exposition utilisé par l’appareil photo." + +#. (itstool) path: page/title +#: C/view-information.page:12 +msgid "Basic and extended information" +msgstr "Informations de base et étendues" + +#. (itstool) path: page/p +#: C/view-information.page:14 +msgid "" +"The Basic Information pane appears at the bottom of the sidebar, and " +"displays a brief summary of the photos you've selected. If no photos are " +"selected, it displays a summary of the entire collection. You can toggle the " +"display of this pane using the ViewBasic " +"Information command." +msgstr "" +"Le panneau des Informations basiques se trouve en bas du panneau latéral, et " +"affiche un bref résumé des photographies sélectionnées. Si aucune " +"photographie n’est sélectionnée, il affiche un résumé de toute la " +"collection. Vous pouvez (dés)activer l’affichage de ce panneau avec la " +"commande AffichageInformations basiques." + +#. (itstool) path: page/p +#: C/view-information.page:16 +msgid "" +"The floating Extended Information window displays more information about the " +"selected photo. The ViewExtended Information command or CtrlShiftX toggles the display of this window." +msgstr "" +"La fenêtre flottante Informations étendues affiche des informations " +"supplémentaires sur les photographies sélectionnées. La commande " +"AffichageInformations étendues ou " +"CtrlMajX (dés)active " +"l’affichage de cette fenêtre." + +#. (itstool) path: info/desc +#: C/view-sidebar.page:7 +msgid "" +"The sidebar on the left of the window lists various views of your library." +msgstr "" +"Le panneau latéral à gauche de la fenêtre fournit une liste des différentes " +"rubriques de votre photothèque." + +#. (itstool) path: page/title +#: C/view-sidebar.page:20 +msgid "The sidebar" +msgstr "Le panneau latéral" + +#. (itstool) path: page/p +#: C/view-sidebar.page:22 +msgid "" +"The sidebar on the left side of the Shotwell window lists various views of " +"your library. Although you may see the same photo in multiple views, it's " +"only stored once on your hard drive." +msgstr "" +"Le panneau latéral sur la gauche de la fenêtre Shotwell fournit une liste " +"des différentes rubriques de votre photothèque. Bien que vous puissiez voir " +"la même photo dans plusieurs rubriques, elle n’est enregistrée qu’une seule " +"fois sur le disque dur." + +#. (itstool) path: page/p +#: C/view-sidebar.page:24 +msgid "" +"The Last Import view lists your last imported photos no matter if " +"they are imported from F-Spot, your camera, a memory card or the hard disk." +msgstr "" +"La rubrique Dernière importation affiche la liste des dernières " +"photographies importées, sans tenir compte de leur origine : F-Spot, votre " +"appareil photo, une carte mémoire ou le disque dur." + +#. (itstool) path: page/p +#: C/view-sidebar.page:26 +msgid "The Flagged lists all photos you had previous flagged." +msgstr "" +"La rubrique Marquées fournit la liste des photographies " +"précédemment marquées." + +#. (itstool) path: page/p +#: C/view-sidebar.page:28 +msgid "" +"The Saved Search allows you to sort your library by many criteria." +msgstr "" +"La rubrique Recherche enregistrée permet de trier la photothèque " +"selon plusieurs critères." + +#. (itstool) path: page/p +#: C/view-sidebar.page:30 +msgid "" +"The Events folder lists all events in your library. An event is a " +"group of photos that were taken at approximately the same time." +msgstr "" +"Le dossier Événements fournit la liste des Événements de " +"votre photothèque. Un événement est un groupe de photographies prises à peu " +"près au même moment." + +#. (itstool) path: page/p +#: C/view-sidebar.page:32 +msgid "" +"The Tags folder lists all tags you've assigned to photos. Photos " +"can have multiple tags attached to them. When you click on the name of a tag " +"in the sidebar, you will see all the photos associated with that tag." +msgstr "" +"Le dossier Étiquettes donne la liste des étiquettes attribuées " +"aux photographies. Plusieurs étiquettes peuvent être jointes aux " +"photographies. Si vous cliquez sur le nom d’une étiquette dans le panneau " +"latéral, vous voyez toutes les photographies associées à cette étiquette." diff --git a/help/hu/edit-adjustments.page b/help/hu/edit-adjustments.page deleted file mode 100644 index aeb0a31..0000000 --- a/help/hu/edit-adjustments.page +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - Change the exposure, saturation, tint, and shadows of a photo. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Color adjustments - -

The Adjust button opens a floating window with a histogram and sliders to adjust a photo's exposure, saturation, tint, temperature, and shadows. The histogram also has sliders to reduce the upper and lower intensity thresholds of the photograph, expanding the contrast of the middle range.

- -

The Enhance button adjusts the histogram and shadows sliders to improve the quality of a photo.

- -

When the photo's colors and contrast are to your liking, press OK to save the changes. Reset will return the image to its original state. Cancel discards all changes you've made.

- -
- What do the color adjustments do? - - - Expozíció -

Changes the brightness to make it look like the photo was exposed for a longer or shorter time. Use this to correct under- or over-exposed photos.

-
- - Contrast -

Changes the contrast of a photo. Use it to correct flat-looking photos or photos where the difference between bright and dark spots seems to big.

-
- - Telítettség -

Changes how vivid colors look. If your photo looks gray and washed out, try increasing the saturation. If colors look too bold, try decreasing it.

-
- - Árnyalat -

This tints the photo with a color. It's useful for correcting photos taken with the wrong white balance setting, which typically have an unnatural color cast. For example, photos taken outdoors with the white balance set to "Tungsten" may have a blue cast.

-
- - Hőmérséklet -

Changes how "warm" or "cool" the picture looks. Use this to make cold, depressing scenes look more lively, for example.

-
- - Árnyékok -

This makes shadowy areas appear lighter. Use this to make detail more visible if it's obscured by the darkness of a shadow.

-
- - Intensity Threshold (sliders on the histogram) -

These sliders change how light the brightest white is and how dark the darkest black is. Use them to change the contrast of the photo. Photos which look washed out should particularly benefit from changing these settings.

-
-
-
- -
diff --git a/help/hu/edit-crop.page b/help/hu/edit-crop.page deleted file mode 100644 index 6d64781..0000000 --- a/help/hu/edit-crop.page +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - Improve the composition of a photo by cutting out parts of it. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Vágás - -

To reduce the area of a photo and concentrate the viewer's attention on a smaller portion of it, use the Crop tool. - The crop tool is only available in full-window or fullscreen mode.

- - - -

Double-click on a photo to enter full-window mode, then press the Crop button on the toolbar.

-
- -

A white box, the crop rectangle, will appear over the photo. The lighter portion of the photo within the crop rectangle represents what the photo will look like when you crop it.

-
- -

If you place your cursor in the middle of the box, you can move the box around. If you drag the edges of the box, you can adjust its size. As you move and adjust the crop box, you'll see four lines appear inside it, like a tic-tac-toe grid. These are rule of thirds lines.

-

You can also constrain the crop box to one of many common sizes. Choose a size from the drop-down list that suits your needs. If you press the flip button next to it, the orientation of the constraint will switch (from landscape to portrait).

-
- -

When you're happy with your crop outline, apply it by pressing the Crop button. Shotwell will display the cropped photo.

-
- -

If you change your mind, press the Crop button again and fine-tune the crop.

-

If you press Cancel rather than Apply, Shotwell will return to the photo's previous crop dimensions.

-
-
- -
- What is the rule of thirds? -

The rule of thirds helps you to choose a pleasing composition for a photo.

-

Imagine that the scene is divided up into a 3x3 grid by two equally-spaced vertical lines and two equally-spaced horizontal lines. According to the rule, you're more likely to get a pleasing composition if you align major features (like the horizon, or a person's body) with one of the lines. Paying attention to the way features flow from one part of the grid to another can also help.

-

Cropping a photo so that it conforms to the rule of thirds often results in a more visually appealing image.

- -

Cropping a photo, using the "rule of thirds" lines to improve the composition.

-
-
-
diff --git a/help/hu/edit-date-time.page b/help/hu/edit-date-time.page deleted file mode 100644 index ca3a4dc..0000000 --- a/help/hu/edit-date-time.page +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - Change the date and time of photos if those details are incorrect. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Adjust the date and time of photos - -

To adjust the date and time of photos, select the photos you would like to adjust, choose PhotosAdjust Date and Time... and select a new date and time.

- -

If you are changing the date and time of multiple photos at once, you can choose to shift all the photos by the same amount of time or to set all the photos to the same time.

- -

By default, the date and time are only changed inside Shotwell. You can also choose to modify the date and time in the original file, but this cannot be undone once you exit Shotwell.

- -
diff --git a/help/hu/edit-enhance.page b/help/hu/edit-enhance.page deleted file mode 100644 index 4d69222..0000000 --- a/help/hu/edit-enhance.page +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - Let Shotwell improve the brightness and contrast of a photo automatically. - - - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Auto-enhance - -

Clicking on the Enhance button is a quick way to automatically adjust the brightness and contrast of your photo. It will often give you a photo that is correctly exposed. You can also use it as a starting point and then improve the adjustments by clicking on the Adjust button.

-
diff --git a/help/hu/edit-external.page b/help/hu/edit-external.page deleted file mode 100644 index 20b52c6..0000000 --- a/help/hu/edit-external.page +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - Use a different program to edit a photo. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - - Edit photos with an external program - - -

- You might want to use an external editor to do additional work on a photo. - If installed, GIMP and UFRaw are the default external editors for photo and RAW editing, - respectively. If these programs are not installed, you must select your preferred - editors by choosing EditPreferences and selecting - editors from drop-down menus of installed applications. -

- -

- Once your editors have been set, select a photo and choose Photos - Open With External Editor to open the photo with the external editor. - Likewise, if the original photo is a RAW file, select PhotosOpen - With RAW Editor to edit the RAW file directly with the set RAW editor. -

- -

- When you complete your edits and save the file, Shotwell will detect the changes and - update the photo. When external edits have been made, press and hold the - Shift key in full-window view to show the original photo rather than the - externally-edited one. -

- -

- Reverting to original will erase any external edits. -

- - -

- If you externally edit a RAW photo and save the result to another image, such as a - JPEG or PNG, Shotwell cannot automatically determine that the original RAW and the - new image should be paired. -

- -

- If you want to work within the resulting image within Shotwell, you'll need to - import it yourself. -

-
-
diff --git a/help/hu/edit-nondestructive.page b/help/hu/edit-nondestructive.page deleted file mode 100644 index 87a1fbe..0000000 --- a/help/hu/edit-nondestructive.page +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - Shotwell is a non-destructive photo editor - it does not modify your original photos. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - What happens to the original when I edit a photo? - -

Shotwell is a non-destructive photo editor. It does not modify your original photographs. That is to say, if you crop a photo or adjust its colors, the photo file on disc remains untouched. Shotwell stores your edits in a database and applies them on the fly as necessary. This means you can undo any alterations you make to a photograph.

- -

If you want to see what a photo looked like before your modifications, press the Shift key. The original photo will be displayed as long as you hold the key down.

- -

Note that Shotwell can optionally write metadata (such as tags and titles) to photo files. -For more information, see the section Photo files.

- -
diff --git a/help/hu/edit-redeye.page b/help/hu/edit-redeye.page deleted file mode 100644 index 660180a..0000000 --- a/help/hu/edit-redeye.page +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - Correct photos where people have red eyes because of the camera's flash. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Vörös szem eltávolítása - -

Red-eye occurs when the camera's flash reflects off the pupil of someone's eye. To eliminate this in a photo, use the Red-eye tool.

- - -

Click Red-eye. A circle will appear on the photo.

-
- -

Drag the circle over the affected pupil, adjust its size with the slider control, and press Apply. The redness will be removed.

-
- -

Repeat this process for all red pupils in your photo. Press Close when finished.

-
-
-
diff --git a/help/hu/edit-rotate.page b/help/hu/edit-rotate.page deleted file mode 100644 index 9d7840f..0000000 --- a/help/hu/edit-rotate.page +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - Click the Rotate button, or choose one of the commands in the Photo menu. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Rotate or flip a photo - -

You can rotate your photos left and right (clockwise and counterclockwise) with the Rotate button on the toolbar of most views. You can also make a mirror image of any photo.

- -

To rotate right, click on the Rotate button. To rotate left, press and hold the Ctrl key and then click the button. Both commands are available in the Photos menu too. Alternatively, use the following keyboard shortcuts:

- -

rotate left: ShiftCtrlR or [

-

rotate right: CtrlR or ]

-
-

To create a mirror image of a photo, use the Flip Horizontally command in the Photos menu. To flip an image vertically, use the Flip Vertically command in the same menu.

- - -

If you select more than one image, you can rotate all of them at the same time.

-
- -
diff --git a/help/hu/edit-straighten.page b/help/hu/edit-straighten.page deleted file mode 100644 index 44f529f..0000000 --- a/help/hu/edit-straighten.page +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - Straighten a photo so that its horizon appears level. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Straighten photos - -

The straighten tools allows photos to be leveled and straightened. The straighten tool is only available in full-window or fullscreen mode.

- - - -

Click Straighten. The straighten slider will appear. Alternatively, use the keyboard shortcut CtrlA.

-
- -

Drag the slider to achieve the desired degree of straightening.

-
- -

Press Straighten when finished.

-
-
- -
diff --git a/help/hu/edit-undo.page b/help/hu/edit-undo.page deleted file mode 100644 index 80f1dd4..0000000 --- a/help/hu/edit-undo.page +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Return a photo to its original, unedited form. - - - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - A változtatások visszavonása - -

Because Shotwell is a non-destructive photo editor, you can undo any alterations you make to a photograph.

- -

If you want to see what a photo looked like before your modifications, press the Shift key. The original photo will be displayed as long as you hold the key down.

- -

To completely undo all the changes you've made to a photo, click PhotosRevert to Original. The only exception is that time and date adjustments will not be reverted.

- -
diff --git a/help/hu/formats.page b/help/hu/formats.page deleted file mode 100644 index 614027c..0000000 --- a/help/hu/formats.page +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - Shotwell supports JPEG, PNG, TIFF, BMP and RAW photo files as well as video files. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Supported photo and video formats - -

Shotwell supports JPEG, PNG, TIFF, BMP and RAW photo files. Shotwell does not yet support other graphics format such as GIF.

- -

Shotwell's RAW format support is currently limited. When you view a RAW photo, you are actually viewing a JPEG derived from the RAW photo, not the RAW image itself. Additionally, the RAW editing pipeline is not fully 16-bit - you can only export edited photos as 8-bit files. All supported formats can be used for export (JPEG, PNG, TIFF, BMP).

- -

For more information about RAW-format photos in Shotwell, please see -the RAW section. -

- -

Shotwell also supports video files in any format supported by the GStreamer media library on the system where -Shotwell is running. This typically includes the following formats among others:

- -

Container formats: Ogg, QuickTime, MP4, AVI.

-

Codecs: Theora, Quicktime, MPEG-4, Motion JPEG. Note that some operating systems may not include all -codecs listed here due to legal or licensing restrictions.

-
- -

Shotwell supports both photos and videos, but for simplicity, this documentation uses just the term "photos" -in most places. Many operations in Shotwell apply to both photos and videos, however. In particular, events, -flagging, rating, tagging, and publishing work both for photos and for videos.

- -
diff --git a/help/hu/hu.stamp b/help/hu/hu.stamp deleted file mode 100644 index e69de29..0000000 diff --git a/help/hu/import-camera.page b/help/hu/import-camera.page deleted file mode 100644 index 777728b..0000000 --- a/help/hu/import-camera.page +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - Copy photos from a digital camera. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Importing from a camera - -

To import photos from a digital camera:

- - - -

Connect the camera to your computer and switch it on. - Shotwell will detect it and list it in the sidebar.

-
- -

Select the camera in the sidebar. Previews of each photo on the camera will be displayed.

-
- -

If you like, you can choose a set of specific photos to import. To do this, hold down the Ctrl key and click to select individual photos. You can hold down Shift and click to select a range of photos too.

-
- -

Click either Import Selected or Import All. The photos will be copied from the camera and saved on your computer.

-
-
- -

Once the import is complete, you can open the Last Import view (in the sidebar) to see all photos that were imported. The Events list (also in the sidebar) will also show the new photos, organized by date.

-
diff --git a/help/hu/import-file.page b/help/hu/import-file.page deleted file mode 100644 index 42f655d..0000000 --- a/help/hu/import-file.page +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - Import photos that are already saved on your computer. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Importing from your hard disk - -

To import photo files from your hard disk into Shotwell, just drag them from your file browser into the Shotwell window.

- -

Alternatively, click FileImport From Folder... and select the folder containing the photos you want to import. If you do not want Shotwell to recurse into subfolders while importing, you can uncheck the Recurse Into Subfolders checkbox on the bottom of the file dialog.

- -

Shotwell will ask whether you want to copy the photo files to your library folder (usually this is the Pictures folder in your home directory) or to import them in place without copying the files.

- -

If you hold down Ctrl while dragging photos in, Shotwell will copy the photos into your library folder without prompting. Similarly, if you hold down CtrlShift while dragging photos in, Shotwell will import the photos without copying them.

- -

Once the import is complete, you can select Last Import in the sidebar to see all photos successfully imported. The Events list will also show new entries for the dates corresponding to the imported photos.

- -
diff --git a/help/hu/import-memorycard.page b/help/hu/import-memorycard.page deleted file mode 100644 index dea850b..0000000 --- a/help/hu/import-memorycard.page +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - Fényképek importálása digitális fényképezőgép memóriakártyájáról. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Importálás memóriakártyáról - -

To import photos from a camera memory card:

- - - -

Put the card into your card reader. Make sure the card reader is plugged in to the computer and switched on.

-
- -

The card reader and card should be detected automatically.

-
- -

Follow the instructions for importing photos from your hard disk. If you click FileImport From Folder..., the memory card should be visible as a folder in the side bar of the file selection window.

-
-
- -

Shotwell can import photos from any memory card that is compatible with your card reader.

- -

If the card is not detected automatically, your card reader may not have been recognized. Try unplugging it and then plugging it in again. If that doesn't work, you should still be able to import photos by connecting your camera directly to the computer, though.

- -
diff --git a/help/hu/index.page b/help/hu/index.page deleted file mode 100644 index 8cdefe1..0000000 --- a/help/hu/index.page +++ /dev/null @@ -1,58 +0,0 @@ - - - - - Shotwell - - Jim Nelson - jim@yorba.org - Allison Barlow - allison@yorba.org - Robert Ancell - robert.ancell@canonical.com - Peter Smith - pdo.smith@gmail.com - Phil Bull - philbull@gmail.com - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - - <media type="image" src="figures/shotwell_logo.png"/>Shotwell fényképkezelő - -
- Fényképek importálása -
- -
- Fényképek megjelenítése -
- -
- Fényképek rendszerezése -
- -
- Fényképek szerkesztése -
- -
- Fényképek megosztása -
- -
- Más funkciók -
-
diff --git a/help/hu/organize-event.page b/help/hu/organize-event.page deleted file mode 100644 index 57d83f2..0000000 --- a/help/hu/organize-event.page +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - Group photos together that were taken at the same time. Learn how to rename, merge, and sort events. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Események - -

An event is a group of photos that were taken at approximately the same time. When you import photos, Shotwell checks when each photo was taken. It then groups the photos into events.

- -

Choose Events from the sidebar to see your photos organized by date. If you select a month or year from the sidebar, a list of events will be displayed in the main window. Double-click an event to see all the photos that were taken around that time.

- -

If a photo has no embedded date/time information, then Shotwell can't automatically - place it in any event. In this case the photo will appear in the No Event - view accessible from the sidebar. You can still move the photo to any event you like - as described below. -

- -
- Renaming events - -

To give an event a name rather than referring to it by its date, select the event, click EventsRename Event... and enter a new name. Another way of renaming an event is to double-click its name in the sidebar; type a new name and then press Enter.

-
- -
- Moving photos between events - -

Even though photos are initially grouped into events by their date, you can move photos between events. To do this, drag any photo to the sidebar and drop it on an event.

-
- -
- Creating and merging events -

To create a new event, select the photos you would like in the new event and click EventsNew Event.

-

To merge events, select Events from the sidebar, then, while holding down Ctrl click on the events you want to merge in the main window area. Finally, click EventsMerge Events.

-
- -
- Sorting events - -

Events are displayed in a tree in the sidebar, organized by the year and month of the earliest photo in the event. - To change the event sort order, click ViewSort Events and select either ascending or descending.

- -
- -
- Change the photo used to represent each event - -

If you select the Events item in the sidebar, you'll see a single photo which represents each event. This is called the key photo.

- -

By default, Shotwell uses the first photo in each event as its key photo. - To use a different key photo, select the photo and choose PhotosMake Key Photo for Event.

- -
- -
diff --git a/help/hu/organize-flag.page b/help/hu/organize-flag.page deleted file mode 100644 index 8c7265d..0000000 --- a/help/hu/organize-flag.page +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - Flag photos to mark them as special or to work with them as a set. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Flagging photos - -

Shotwell lets you flag photos. When a photo is flagged, a small flag icon - appears in its upper right corner. You can select the Flagged item in the sidebar to see - all photos which have been flagged.

- -

Flagging a photo marks it as special. You can interpret this in any way you like. For example, - you might flag all photos which need visual - adjustment, or all photos which you want to share with a friend.

- -

Flagging - is also useful because you can operate on all flagged photos as a set. For example, you can - select the Flagged view and then upload all flagged photos to a publishing service.

- -
- To flag or unflag a photo -

- To flag or unflag a photo, right-click the photo and choose Flag or Unflag - from the context menu. Or use the CtrlG or / - shortcut keys. -

-
- -
diff --git a/help/hu/organize-rating.page b/help/hu/organize-rating.page deleted file mode 100644 index 542e527..0000000 --- a/help/hu/organize-rating.page +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - Értékelje a fényképeket 1 és 5 csillag között. Elutasíthatja a rossz fényképeket, elrejtve azokat szem elől. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Értékelések -

You can assign each photo a rating from 1-5 stars, or may alternatively rate it as Rejected, in which case Shotwell will hide the photo by default.

- -

You can rate a photo or a set of photos in any of these ways:

- - -

Select the photo(s), then choose a rating from the top-level PhotosSet Rating menu.

-

Right-click on the photo(s), then choose a rating from the Set Rating context menu.

-

Select the photo(s), then press any of the shortcut keys 1, 2, 3, 4 or 5 to assign a rating. Or press 9 to mark the photo(s) as rejected or 0 to clear the rating(s).

-
- -

-Normally Shotwell displays all photos except rejected photos. You can set a different rating filter using the ViewFilter Photos menu - for example, you can display only photos rated with 3 stars or higher, or you can display all photos including those marked rejected. The Shotwell icon on the toolbar displays the current rating filter and can also be used to set the filter.

- -

Shotwell normally displays each photo's rating in its lower left-hand corner. You can turn off the display of ratings using the ViewRatings menu item.

- -

You can increase or decrease a photo's rating using the Set RatingIncrease and Set RatingDecrease commands, or the keyboard shortcuts < and >.

-
diff --git a/help/hu/organize-remove.page b/help/hu/organize-remove.page deleted file mode 100644 index 25fada1..0000000 --- a/help/hu/organize-remove.page +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - Remove photos from the library, or delete them from your computer entirely. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Removing and deleting photos - -

You may remove photos from your library and you may additionally delete them entirely from your hard disk.

-

Delete process

-

This diagram shows how a photo, when deleted, is first put into Shotwell's trash. If you delete it from Shotwell's trash, it is put into your computer's trash. If you delete it from your computer's trash the photo is finally and irretrievably deleted from your computer.

-
- Removing photos from the library -

Select the photos to remove and choose EditMove to Trash. - (You can also press the Delete key.) - The photos will be moved from your library to Shotwell's Trash.

-

If you want to remove photos from Shotwell without having them pass through the trash, simply select the photos to be removed and choose EditRemove From Library. The photo files will be left in place on disk.

-
- -
- Emptying or restoring the trash folder -

Select the Trash entry in the Sidebar and Shotwell will display all photos that have been marked for removal or deletion. In the Trash view, the following commands are available:

- - Törlés

A kijelölt fényképek törlése a Kuka mappából.

- Visszaállítás

A kijelölt fényképek visszaállítása a Shotwell programba.

- Kuka ürítése

Minden fénykép törlése a Kuka mappából.

-
-
- -
- Törlés vagy a Kuka ürítése -

Amikor fájlokat töröl a Kuka mappából, vagy kiüríti a Kuka mappát, akkor a következő választási lehetőségeket fogja kapni:

- - Csak eltávolítás

Fényképek eltávolítása a gyűjteményből, de megtartásuk a számítógépen lévő helyükön.

- Fájl kidobása

Fényképek eltávolítása a gyűjteményből, és azok törlése a számítógépről.

- Mégse

Ne tegyen semmit.

-
-
- -
diff --git a/help/hu/organize-search.page b/help/hu/organize-search.page deleted file mode 100644 index 8c7fda5..0000000 --- a/help/hu/organize-search.page +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - Fényképek és videók keresése a gyűjteményben különböző feltételek szerint. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Keresés - -

Két módon kereshet a Shotwell programban: a szűrő eszköztárral és a mentett kereséssel. A keresősáv lehetővé teszi az aktuális nézet gyors keresését egy adott feltétel szerint. A mentett keresések összetettebb keresési feltételeket tesznek elérhetővé, és megmaradnak az oldalsávon a programindítások között.

- - - -
- Mentett keresés -

A mentett keresés megmarad a Shotwell indítások között, és frissítve lesz, amikor fényképeket és videókat adnak hozzá vagy távolítanak el a Shotwell gyűjteményből.

- -

Új mentett keresés a SzerkesztésÚj mentett keresés… menüponttal, vagy a CtrlS lenyomásával hozható létre. Az ablak lehetővé teszi a keresés nevének megadását, és annak kiválasztását, hogy a következő sorban lévő bármely, az összes vagy egyik keresési feltételre se illeszkedjen.

- -

- Each row represents a search criterion. Use the + button to add more rows, and the - - button to remove a specific row. The combo box on the left of each row selects the type - of criteria. Criteria must be entered correctly before the OK button becomes available. -

-
- -
diff --git a/help/hu/organize-tag.page b/help/hu/organize-tag.page deleted file mode 100644 index 621b2b7..0000000 --- a/help/hu/organize-tag.page +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - Fényképek rendezése azok felcímkézésével. - - - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Fényképek címkézése - -

A kijelölt fényképekhez címkéket rendelhet. Egy címke lehet egy vagy több szó, amelyet hozzá szeretne rendelni azokhoz a fényképekhez.

- -

Új címkék fényképekhez adásához válassza ki a címkézendő fényképeket, majd tegye a következők egyikét:

- - -

Válassza a CímkékCímkék hozzáadása… menüpontot.

-

Nyomja le a CtrlT billentyűkombinációt.

-

Fogja meg a kijelölt fényképeket, és ejtse azokat a kívánt címkére.

-
- -

Ha a CtrlT billentyűket vagy a CímkékCímkék hozzáadása… menüpontot használja, akkor vesszővel elválasztva beírhat több címkenevet is. Ha létrehozott egy címkét, akkor átnevezheti azt az oldalsávon való kiválasztással, és a Címkék„[név]” címke átnevezése… menüpont választásával, ha a jobb egérgombbal kattint rá, és az Átnevezés… menüpontot választja, vagy duplán kattint a címkére az oldalsávon.

- -

Annak módosításához, hogy mely címkék legyenek hozzárendelve egy adott fényképhez, jelölje ki a fényképet, válassza a CímkékCímkék módosítása… menüpontot, vagy kattintson a jobb egérgombbal egy fényképre, és válassza a Címkék módosítása… lehetőséget, majd szerkessze a vesszővel elválasztott listát. Egy címke fényképekről eltávolításához először jelölje ki az adott címkét az oldalsávon, majd jelölje ki azokat a fényképeket, amelyekről el szeretné távolítani, és válassza a Címkék„[név]” címke eltávolítása a fényképekről menüpontot, vagy kattintson a jobb egérgombbal a fényképekre, és válassza a „[név]” címke eltávolítása a fényképekről menüpontot.

- -

Egy címke teljes törléséhez jelölje ki a címkét az oldalsávon, és válassza a Címkék„[név]” címke törlése menüpontot, vagy kattintson az egér jobb gombjával, és válassza a „[név]” címke törlése menüpontot.

- -

Ha létrehoz egy címkét, akkor az meg fog jelenni az oldalsávon a Címkék elem alatt, amely nem látható, ha nincsenek címkék. A fényképekhez több címkét is lehet csatolni, és amikor rákattint az oldalsávon egy adott címke nevére, akkor látni fogja az összes fényképet, amely ahhoz a címkéhez van rendelve.

- -
- Hierarchikus címkék -

A Shotwell támogatja a hierarchikus címkéket is. Újrarendezheti a címkéit fogd és vidd módon egymásra rakva. Egy új alcímke létrehozásához kattintson az egér jobb gombjával egy címkére, és válassza az Új menüpontot.

- -

A hierarchikus címkék segítségére lehetnek abban, hogy a címkelistáját oly módon rendezhesse, ahogy az a legjobban illeszkedik a gondolkodásához. Például hely címkéket tárolhat – mint „Hegyek” vagy „Tengerpart” – egy „Helyek” szülőcímke alatt, amely szintén el lehet helyezve a „Nyári szabadság” címke alatt.

- -

Ne feledje, hogy egy szülőcímke törlése törölni fogja annak gyermekcímkéit is.

-
-
diff --git a/help/hu/organize-title.page b/help/hu/organize-title.page deleted file mode 100644 index e84319b..0000000 --- a/help/hu/organize-title.page +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - Adjon címet a fényképeknek. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Címek - -

A NézetCímek jelölőnégyzet be- vagy kikapcsolja az egyes fényképek alatti címek megjelenítését. Alapértelmezésben egy fénykép címe annak fájlneve lesz.

- -

Egy fénykép címének módosításához válassza ki a fényképet, és válassza a FényképekCím szerkesztése… menüpontot, vagy nyomja meg az F2 billentyűt.

- -
diff --git a/help/hu/other-files.page b/help/hu/other-files.page deleted file mode 100644 index 947bb2d..0000000 --- a/help/hu/other-files.page +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - Keep the Shotwell library in sync with photo files on disk. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Photo files - -

- Every photo in the Shotwell library corresponds to a file stored on your hard disk. Shotwell has - several features which help you keep the Shotwell library and files on disk in sync. -

- - -
- Using a custom directory pattern -

- Shotwell allows you to specify how it names directories in your library. You can do this - by changing the Directory Structure and Pattern settings in the - Preferences dialog. You may use a preselected pattern, or choose Custom - and type in your own. -

- -

- The available symbols for the directory pattern begin with a % (percent sign). The values - these symbols produce are locale-dependent, so what you see on your computer may vary - from the examples below. -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Szimbólum

Jelentés

Példa

%Y

Év: teljes

2011

%y

Év: két számjeggyel

11

%d

Hónap napja kezdő nullával

03

%A

Nap neve: teljes

Szerda

%a

Nap neve: rövidített

Sze

%m

Hónap száma kezdő nullával

02

%b

Hónap neve: rövidített

Febr

%B

Hónap neve: teljes

Február

%I

Óra: 12 órás formátum

05

%H

Óra: 24 órás formátum

17

%M

Perc

16

%S

Másodperc

30

%p

DE/DU

DU

- -

- There are other symbols available; please check the manual for strftime by running - the command man strftime if you need one that isn't listed here. -

-
- -
- Fényképek automatikus importálása - -

A Shotwell képes azon új fényképek automatikus importálására, amelyek megjelennek a gyűjteménykönyvtárban. (A gyűjteménykönyvtár általában a saját könyvtárban lévő Képek könyvtár. Ennek helyét a Beállítások ablakban változtathatja meg.)

- -

Az automatikus importálás engedélyezéséhez jelölje be az Új fájlok figyelése a gyűjteménykönyvtárban lehetőséget a Beállítások ablakban.

- -

A Shotwell képes az automatikusan importált könyvtárakon belüli szimbolikus linkek követésére is.

- -
- -
- Importált fényképek automatikus átnevezése kisbetűsre - -

A Shotwell automatikusan kisbetűsre tudja változtatni az importált fényképek fájlneveit. Ennek engedélyezéséhez válassza a SzerkesztésBeállítások menüpontot, majd a Beállítások ablakban jelölje be az Importált fájlok átnevezése kisbetűssé lehetőséget.

- -
- -
- Metaadatok írása menet közben - -

Alapértelmezésben a Shotwell nem módosítja a fényképfájlokat még akkor sem, ha fényképeket szerkeszt, vagy megváltoztatja azok címkéit vagy címeit. A Shotwell ezeket a módosításokat csak a saját adatbázisában rögzíti.

- -

Ezen viselkedés megváltoztatásához bejelölheti a Címkék, címek és más metaadatok fényképfájlokba írása jelölőnégyzetet a Beállítások ablakban. Ha ez a lehetőség engedélyezve van, akkor a Shotwell a következő metaadatokat akkor fogja a legtöbb fényképfájlba írni, amikor megváltoztatja azokat:

- - -

címek

-

címkék

-

értékelések

-

forgatási információk

-

idő/dátum

-
- -

A Shotwell ezeket az információkat EXIF, IPTC és/vagy XMP formátumban tárolja a fényképfájlokban. Ne feledje, hogy a Shotwell csak JPEG, PNG és TIFF formátumú fényképfájlokba tud írni, BMP vagy RAW fényképekbe vagy videofájlokba nem.

- -
- -
- Futásidejű megfigyelés - -

A Shotwell futás közben észreveszi bármely fényképen a külsőleg elvégzett módosításokat. Amikor egy fényképfájl megváltozik, akkor a Shotwell újraolvassa a fájlt, és frissíti a fénykép megjelenítését és a metaadatokat.

- -

Ne feledje, hogy a Shotwell indításkor az összes fényképet ellenőrzi, hogy történt-e módosítás, de csak a gyűjteménykönyvárban lévő fényképeknél történik valós idejű megfigyelés az indítás után. Reméljük, hogy ez a korlátozás eltávolításra kerül egy későbbi kiadásban.

- -
- -
diff --git a/help/hu/other-missing.page b/help/hu/other-missing.page deleted file mode 100644 index bf6ba19..0000000 --- a/help/hu/other-missing.page +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - If Shotwell can't find a photo in your library, it marks it as missing. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Missing photos - -

Each time Shotwell starts up, it scans your photo library to verify that all photo files still exist on your hard drive. If Shotwell finds that any photo files are missing, it will not display them in the normal Photos, Events and Tags views, but will instead show them in a separate Missing Files view which will appear in the sidebar.

- -

If you no longer want the missing files to be part of your Shotwell collection (perhaps because you deleted them), go to the Missing Files view, select the photos and then click Remove From Library.

- -

If you have photos on a removable disk, such as a CD or USB flash drive, and import them into Shotwell without copying the photos to your computer, they will show up as missing files if you then disconnect the removable disk. See to learn how to copy files from removable disks onto your computer.

- -

If any missing photo files become available again, Shotwell will notice this the next time it starts. The photos will once again appear in the Photos, Events and Tags views.

- -
diff --git a/help/hu/other-multiple.page b/help/hu/other-multiple.page deleted file mode 100644 index f47d79e..0000000 --- a/help/hu/other-multiple.page +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - You can open Shotwell with a different photo library by using the command line. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Multiple libraries - -

Shotwell normally stores its database and photo thumbnails in the directory ~/.shotwell . This directory does not hold photos, but the database in this directory contains a list of all the photos in the Shotwell library.

- -

As an advanced feature, it's possible for you to have multiple Shotwell libraries, each of which has its own set of photos. Each library needs its own database directory. To launch Shotwell with an alternate library, specify an alternate database directory on the command line as follows:

- - -shotwell -d [gyűjtemény-könyvtára] - - -
diff --git a/help/hu/other-plugins.page b/help/hu/other-plugins.page deleted file mode 100644 index 4fc3d65..0000000 --- a/help/hu/other-plugins.page +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - Extend Shotwell's functionality dynamically. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Bővítmények -

- Shotwell can be used with plugins, which are companion shared libraries that can - add support for new publishing destinations or new slideshow transitions. -

- -

- To see a list of installed plugins, choose EditPreferences, - and in the Preferences window, click on the Plugins tab. You'll see a list - of currently-installed plugins, each with a checkbox by it, and you may enable or disable each by - selecting or deselecting the checkbox by its name. -

- -

Full documentation on how to develop new plugins is available at - http://redmine.yorba.org/projects/shotwell/wiki/ShotwellArchWritingPlugins

- -
diff --git a/help/hu/raw.page b/help/hu/raw.page deleted file mode 100644 index 7bc8273..0000000 --- a/help/hu/raw.page +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - More about RAW support in Shotwell. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - RAW support in Shotwell -

Some cameras have the ability to store data directly off the sensor - and into a file that contains extra color information; this is commonly - referred to as 'RAW' or 'camera RAW', and Shotwell supports these files - as well.

- -

Since RAW photographs normally cannot be displayed directly, but must - be first developed - that is, have their extra information interpreted and - readied for displaying - most cameras will either embed a JPEG inside a - RAW-format file, or produce a JPEG alongside the RAW file at the time the - snapshot is taken. The latter is referred to throughout this document as - RAW+JPEG. If you import a RAW+JPEG pair, Shotwell will - keep them paired and treat them as one item in your library. -

- -

When you import a RAW file, you can choose to either use the camera's - internally-developed JPEG or Shotwell's by selecting - PhotosDeveloper in the menus. -

- - -

- Changing between developers will cause all edits made to a photograph - to be discarded. -

-
- -

- In order to publish or use a RAW photograph in most other software, it has to be - exported first. Shotwell can export your RAW photos in JPEG, PNG, TIFF - or BMP format, and, when publishing, will internally export a JPEG version - for you and publish that. -

- -
diff --git a/help/hu/running.page b/help/hu/running.page deleted file mode 100644 index 05baf81..0000000 --- a/help/hu/running.page +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - Find Shotwell in the Applications menu, or have it start automatically when you plug in a camera. - - - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Running Shotwell - -

Once installed, Shotwell is available in your Applications menu under Graphics or Photography.

- -

Shotwell may also be executed automatically when a camera is plugged in to your computer. To check -that your system is set up to run Shotwell when a camera is detected, go to -EditPreferences in any -Nautilus (file browser) window and choose the Media tab.  You'll see a dropdown box -entitled Photos: which lets you choose Shotwell as your photo handling application.

- - -

Shotwell may also be executed directly from its build directory, although this is only recommended for testing out Shotwell or for developers.

-
- -
diff --git a/help/hu/share-background.page b/help/hu/share-background.page deleted file mode 100644 index 5b34641..0000000 --- a/help/hu/share-background.page +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Set your desktop background to a single photo or to a slideshow of photos. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Set a desktop background or slideshow - -

To set a single photo as your desktop background, select the photo and choose FileSet as Desktop Background.

- -

You can also set your background to a slideshow of photos. To do this, select the photos for - the slideshow and choose FileSet as Desktop Slideshow.... - Shotwell will prompt you for a slideshow delay, which can be any interval up to one day in length. - The background slideshow will proceed even when Shotwell is not running. -

- -
diff --git a/help/hu/share-export.page b/help/hu/share-export.page deleted file mode 100644 index f8e7ad5..0000000 --- a/help/hu/share-export.page +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - Másolja ki fényképeit a Shotwellből, hogy máshol is használhassa azokat. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Fényképek exportálása - -

A fényképek exportálásához fogd és vidd módszerrel húzza ki a fényképeket a Shotwellből egy fájlkezelő ablakba vagy az asztalra. Az új fájlok a gyűjteményében lévők teljes méretű másolatai lesznek.

- -

Ennek alternatívájaként válassza ki fényképek egy csoportját, és válassza a FájlExportálás… menüpontot, vagy nyomja meg a ShiftCtrlE kombinációt. Ezzel a fényképeket úgy exportálhatja, hogy közben a fájlok méretét és felbontását finomhangolhatja. A megjelenő ablakban több dolgot is kiválaszthat:

- - -

A formátumot az exportáláshoz.

- -

Válassza a Módosítatlan lehetőséget az eredeti formátumban való exportáláshoz, a Shotwellben végzett módosítások nélkül. A RAW képek az eredeti RAW formátumban kerülnek exportálásra.

-

Válassza a Jelenlegi lehetőséget a fényképek exportálásához a Shotwellben végzett módosításokkal együtt. A RAW fényképek JPEG formátumban kerülnek exportálásra, ha szerkesztette azokat a Shotwellben, egyébként pedig az eredeti RAW formátumukban.

-

Kiválaszthat egy adott képformátumot (JPEG, PNG, TIFF, BMP) is az exportáláshoz való használatra. A Shotwellben végzett minden módosítást tartalmazni fog, és a Shotwell a fényképeket átalakítja a cél formátumra.

-
-
-

Az exportáláshoz használandó képminőség (alacsony, közepes, magas vagy maximális).

-

Méretezési megszorítás (azaz a Shotwell eldönti, hogy a fényképeket le kell-e méretezni), és a kívánt képpontméret.

- -Original size

Image will be exported without any scaling applied

-Longest edge

Image will be exported by having its longest edge scaled to Pixels and the other according to the aspect ratio

-Width

The image width will have its width scaled to the given pixel size and its height according to the aspect ratio. This is equivalent to Longest Edge for landscape pictures.

-Height

The image height will have its height scaled to the given pixel size and its width according to the aspect ratio. This is equivalent to Longest Edge for portrait pictures.

-
-
-

The option whether you like to export metadatas such as tags or ratings. This can help to save your privacy if you have geolocation tags or tags which shouldn't be seen by anyone.

-
- -

If selected, Shotwell will write tags, titles, and other metadata to the new files.

- -
diff --git a/help/hu/share-print.page b/help/hu/share-print.page deleted file mode 100644 index 76ebe99..0000000 --- a/help/hu/share-print.page +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - Kattintson a FájlNyomtatás… menüpontra. További nyomtatási beállításokért válassza a Nyomtatás ablak Oldalbeállítás lapját. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Nyomtatás - -

Fénykép nyomtatásához válassza ki azt, majd a FájlNyomtatás… menüpontot.

- -

A Shotwell képes több képet is egy oldalra nyomtatni, ehhez válasszon ki több képet, majd a FájlNyomtatás… menüpontot, ezután a Nyomtatás ablakban válassza a Képbeállítások lapot. A Képbeállítások alatt válassza az egyik „több kép oldalanként” lehetőséget az Automatikus méret alatt.

- -

Ha szeretne megadni formázási, papírméret, és tájolási beállításokat, akkor nyomtatás előtt válassza a Nyomtatás ablak Oldalbeállítás lapját.

-
diff --git a/help/hu/share-send.page b/help/hu/share-send.page deleted file mode 100644 index e78a27d..0000000 --- a/help/hu/share-send.page +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - Fényképek küldése e-mailben, azonnali üzenetben vagy máshogy. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Fényképek küldése - -

A Shotwell képes fényképek elküldésére a GNOME asztali környezet Küldés szolgáltatásával, amely lehetővé teszi a fényképek elküldését e-mailben, azonnali üzenetként vagy más módszerekkel.

-

Fényképek küldéséhez válassza ki azokat a Shotwellben, és válassza a FájlKüldés menüpontot, vagy kattintson a jobb egérgombbal a fényképekre, és válassza a Küldés menüpontot. Megjelenik egy Küldés ablak, amelyben kiválaszthatja a fájlok küldésének módszerét (például e-mail vagy azonnali üzenet) és a célt. Kiválaszthatja azt is, hogy a fájlok tömörített formátumban kerüljenek elküldésre.

- -
diff --git a/help/hu/share-slideshow.page b/help/hu/share-slideshow.page deleted file mode 100644 index 3231f17..0000000 --- a/help/hu/share-slideshow.page +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - Diavetítés a fényképekből. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Diavetítések - -

A Shotwell bármely gyűjteményéből diavetítés megjelenítéséhez nyissa meg a kívánt gyűjteményt, és válassza a NézetDiavetítés menüpontot, vagy nyomja meg az F5 billentyűt.

- -

A folyamatban lévő diavetítésben megváltoztathat néhány beállítást:

- - -

Egy kép megjelenítésének hosszát: 1- 30 másodperc

-

Kiválaszthat különböző átmeneti effektusokat.

-

Az egyes átmeneti effektusok hossza: 0,1 - 1,0 másodperc

-
-
diff --git a/help/hu/share-upload.page b/help/hu/share-upload.page deleted file mode 100644 index f581e86..0000000 --- a/help/hu/share-upload.page +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - Tegye közzé fényképeit a Facebook, Flickr, Picasa Webalbumok vagy más oldalakon - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Közzététel a weben - -

A bővítmények használatával a Shotwell képes fényképeket és videókat közzétenni a következő szolgáltatásokon, amelyek mindegyike egy fiókot igényel:

- - -

Facebook

-

Flickr

-

Picasa Web Albums and Google+

-

YouTube (videos only)

-

Tumblr (videos only)

-

Bármeny oldal, amely a Piwigo fényképgaléria-szoftvert futtatja (csak fényképek)

-
- -

To publish selected photos in a collection, choose EditPreferences and - click on the Plugins tab to enable the plugin for the service you want to publish to. Next, choose, - FilePublish, press the Publish toolbar button or use CtrlShiftP. - You will see a dialog that lets you select a publishing service. You will then need to log in or create an account.

- -

A Facebookra való közzétételhez bizonyos jogosultságokat kell adnia a Shotwell Facebook alkalmazásnak. Ezeket a jogosultságokat csak egyszer kell megadnia, amikor a Shotwell programot először társítja a Facebook fiókjához.

-

You will be only able to publish images with at most the permission you granted to the Shotwell Facebook application

- -

Ehhez hasonlóan a Flickr-en való közzétételhez is be kell jelentkeznie, és engedélyeznie kell a Shotwell Connectnek a fiók elérését.

- -

Ha van Google fiókja, de még nem használta a Picasa Webalbumokat, akkor egyszer be kell jelentkeznie a Picasaba egy böngészőből mielőtt közzétehetne képeket ezen a szolgáltatáson.

-
diff --git a/help/hu/view-displaying.page b/help/hu/view-displaying.page deleted file mode 100644 index d6eed3d..0000000 --- a/help/hu/view-displaying.page +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - Ismerje meg a fényképek megjelenítésének különböző módjait: rácsban, a főablakot kitöltve vagy a teljes képernyőt kitöltve. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Fényképnézetek - -

Amikor kiválaszt egy gyűjteményt az oldalsávban, a Shotwell annak minden fényképét megjeleníti a fő ablakterületen. A jobb alsó sarokban lévő csúszka segítségével módosíthatja a bélyegképek megjelenítési méretét. A bélyegképek mérete a plusz és mínusz billentyűkkel (+ és -) vagy a Ctrl lenyomásával és az egérgörgő egyidejű mozgatásával is módosítható.

- -

Egy fényképet duplán rákattintva teljes képernyőn jeleníthet meg. Innen a gyűjtemény más fényképeire az Előre és Hátra gombokkal léphet. A gyűjteményhez való visszatéréshez kattintson duplán a fényképre, vagy nyomja meg az Esc billentyűt.

- -

Egy fénykép teljes képernyős módban való megjelenítésekor az eszköztáron lévő csúszka vezérli a nagyítást. A fénykép megfogásával és húzásával tetszőleges irányba görgetheti a fényképet. Nagyíthat is az egérgörgő használatával, vagy a következő gyorsbillentyűk megnyomásával: Ctrl0 a teljes képhez, Ctrl1 a 100%-hoz (1 képpont a fényképen = 1 képpont a képernyőn), és Ctrl2 a 200%-hoz (1 képpont a fényképen = 2x2 képpont a képernyőn).

- -

A Shotwell teljes képernyős módot is kínál a fényképek megjelenítéséhez. Válassza a NézetTeljes képernyő menüpontot, vagy nyomja meg az F11 billentyűt. A teljes képernyős eszköztár megjelenítéséhez vigye az egérmutatót a képernyő aljára. Az eszköztár a gyűjteményben mozgásra, az eszköztár rögzítésére (hogy ne tűnjön el) és a teljes képernyős nézet elhagyására használható gombokat kínál.

- -
-Videók megjelenítése -

Amikor duplán kattint egy videóra, a Shotwell egy külső videolejátszót indít el a videó lejátszásához. Jelenleg nem lehetséges videót lejátszani teljes ablakos módban a Shotwellben, vagy magán a Shotwellen belül.

-
- -
diff --git a/help/hu/view-information.page b/help/hu/view-information.page deleted file mode 100644 index c1072b4..0000000 --- a/help/hu/view-information.page +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - Részletesebb információk megjelenítése a fényképekről, mint a fényképezőgép által használt expozíciós mód. - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Alapvető és bővített információk - -

Az Alapvető információk panel az oldalsáv alján jelenik meg, és a kijelölt fényképek rövid összefoglalását jeleníti meg. Ha nincsenek kijelölve fényképek, akkor a teljes gyűjtemény összefoglalását jeleníti meg. A panel megjelenítését a NézetAlapvető információk parancs használatával lehet be- vagy kikapcsolni.

- -

A lebegő Bővített információk ablak további információkat jelenít meg a kijelölt fényképről. A NézetBővített információk parancs vagy a CtrlShiftX kombináció használatával lehet be- vagy kikapcsolni.

- -
diff --git a/help/hu/view-sidebar.page b/help/hu/view-sidebar.page deleted file mode 100644 index 41186ee..0000000 --- a/help/hu/view-sidebar.page +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - Az ablak bal oldalán lévő oldalsáv a gyűjtemény különböző nézeteit sorolja fel. - - - - - - - - - - - - - Kelemen Gábor - kelemeng at gnome dot hu - 2014. - - - - Úr Balázs - urbalazs at gmail dot hu - 2015, 2016. - - - - Az oldalsáv - -

A Shotwell bal oldalán lévő oldalsáv a gyűjtemény különböző nézeteit sorolja fel. Noha ugyanazt a fényképet több nézetben is láthatja, az a lemezen csak egyszer van tárolva.

- -

Az Utolsó importálás nézet az utoljára importált fényképeket sorolja fel, függetlenül attól, hogy az F-Spotból, fényképezőgépéről, memóriakártyáról vagy a merevlemezről importálta azokat.

- -

A Megjelölt a korábban megjelölt fényképeket sorolja fel.

- -

A Mentett keresés lehetővé teszi gyűjteménye rendezését több szempont szerint.

- -

Az Események mappa felsorolja a gyűjtemény összes eseményt. Az esemény a nagyjából egy időben készített fényképek csoportja.

- -

A Címkék mappa felsorolja a fényképekhez társított összes címkét. A fényképekhez több címke is csatolható. Amikor egy címke nevére kattint az oldalsávon, a címkéhez társított összes kép megjelenik.

- -
diff --git a/help/lv/edit-adjustments.page b/help/lv/edit-adjustments.page deleted file mode 100644 index 8958237..0000000 --- a/help/lv/edit-adjustments.page +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - Mainīt fotogrāfijas ekspozīciju, piesātinājumu, toni un ēnas. - - - - - Krāsu labojumi - -

Poga Pielāgot atver peldošu lodziņu ar histogrammu un slīdņiem, ar ko pielabot fotogrāfijas ekspozīciju, piesātinājumu, toni, temperatūru un ēnas. Histogrammai ir arī slīdņi, ar ko samazināt fotogrāfijas augšējo un apakšējo sliekšņu intensitāti, palielinot vidējā apgabala kontrastu.

- -

Poga Uzlabot pielāgot histogrammas un ēnu slīdņus, lai uzlabotu fotogrāfijas kvalitāti.

- -

Kad fotogrāfijas krāsas un kontrasts atbilst jūsu vēlmēm, spiediet Labi, lai saglabātu izmaiņas. Atiestatīt atgriezīs bildi tās sākotnējā stāvoklī. Atcelt atmetīs visas veiktās izmaiņas.

- -
- Ko dara krāsu pielabošana? - - - Ekspozīcija -

Maina gaišumu, lai izskatītos, ka fotogrāfijas ir eksponētas ilgāku vai īsāku laiku. Ar to var labot pāreksponētas vai nepietiekami eksponētas fotogrāfijas.

-
- - Contrast -

Changes the contrast of a photo. Use it to correct flat-looking photos or photos where the difference between bright and dark spots seems to big.

-
- - Piesātinājums -

Maina, cik spilgtas izskatās krāsas. Ja fotogrāfija izskatās pārāk pelēka vai izbalējusi, mēģiniet palielināt piesātinājumu. Ja krāsas ir pārāk izteiktas, samaziniet to.

-
- - Tonis -

Tonē fotogrāfiju ar noteiktu krāsu. Šī iespēja noder, ja fotogrāfija ir uzņemta ne nepareiziem baltās krāsas balansa iestatījumiem, kas rada nedabīgu nokrāsu. Piemēram, fotogrāfijas, kas uzņemtas ārtelpās ar “Tungsten” (volframs) baltās krāsas balansa iestatījumiem, var radīt zilu nokrāsu.

-
- - Temperatūra -

Maina, cik “silta” vai “auksta” izskatās bilde. Ar to aukstu un nomācošu ainu var padarīt dzīvīgāku.

-
- - Ēnas -

Tas liek tumšākām attēla daļām izskatīties gaišākām. Izmantojiet šo, lai padarītu redzamākas tās detaļas, kuras ir pārāk tumšas vai ir ēnā.

-
- - Intensitātes slieksnis (slīdņi pie histogrammas) -

Šie slīdņi maina, cik gaišs ir pats gaišākais punkts un cik tumšs ir pats tumšākais punkts. Tos varat izmantot, lai mainītu attēla kontrastu. Tas īpaši noderēs fotogrāfijām, kas izskatās izbalējušas vai miglainas.

-
-
-
- -
diff --git a/help/lv/edit-crop.page b/help/lv/edit-crop.page deleted file mode 100644 index d1a6adc..0000000 --- a/help/lv/edit-crop.page +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - Uzlabojiet fotogrāfijas kompozīciju, nogriežot nost tās daļas. - - - - - Kadrēšana - -

Lai samazinātu fotogrāfijas laukumu un virzītu skatītāja uzmanību uz mazāku tās daļu, izmantojiet Kadrēšanas rīku. Tas ir pieejams tikai pilna loga vai pilnekrāna režīmos.

- - - -

Dubultklikšķiniet uz fotogrāfijas, lai atvērtu to pilna loga režīmā, tad rīkjoslā spiediet pogu Kadrēt.

-
- -

Virs fotogrāfijas parādīsies balta kaste — kadrēšanas taisnstūris. Gaišākā fotogrāfijas daļa attēlo to attēla daļu, kas paliks pāri pēc kadrēšanas.

-
- -

Ja novietosiet kursoru kaste vidū, varēsiet to pārvietot uz citu bildes daļu. Ja vilksiet kastes malu, varēsiet pielāgot tās izmēru. Pārvietojot un pielāgojot kadrēšanas kasti, jūs tajā redzēsiet četras tievas līnijas, līdzīgi kā krustiņu-nullīšu spēles režģi. Tās ir trešdaļu likuma līnijas.

-

Jūs varat arī ierobežot kadrēšanas kasti uz kādu no daudziem biežāk izmantotajiem izmēriem. Izvēlieties izmēru no izkrītošās izvēlnes. Ja piespiedīsiet tai blakus esošo apmešanas pogu, ierobežojuma virziens mainīsies (no ainavas uz portreta orientāciju).

-
- -

Kad izvēlētā kadrēšanas kontūra jūs apmierina, spiediet poguKadrēt. Shotwell attēlos kadrēto fotogrāfiju.

-
- -

Ja pārdomāsiet, atkal spiediet pogu Kadrēt, un pielabojiet.

-

Ja spiedīsiet Atcelt nevis Pielietot, Shotwell atgriezīs fotogrāfiju uz tās iepriekšējo kadrējumu.

-
-
- -
- Kas ir trešdaļu likums? -

Trešdaļu likums jums palīdz izvēlēties patīkamu fotogrāfijas kompozīciju.

-

Iedomājieties ainu, kura ir sadalīta 3×3 režģī ar divām vienādā atstatumā esošām vertikālām un horizontālām līnijām. Vadoties pēc šī likuma, kompozīcija izskatīsies labāk, ja bildes galvenie elementi (horizonts, cilvēks) būs pie kādas no šīm līnijām. Pievērsiet uzmanību tam, kā elementi pāriet no vienas režģa daļas uz citu.

-

Fotogrāfijas kadrēšana, lai tā atbilstu trešdaļu likumam, bieži var uzlabot tās vizuālo pievilcību.

- -

Fotogrāfijas kadrēšana, izmantojot “trešdaļu likumu” līnijas, lai uzlabotu kompozīciju.

-
-
-
diff --git a/help/lv/edit-date-time.page b/help/lv/edit-date-time.page deleted file mode 100644 index 48428c0..0000000 --- a/help/lv/edit-date-time.page +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - Mainīt fotogrāfiju datumus un laikus, ja tie ir nepareizi. - - - - - Pielāgot fotogrāfiju datumus un laikus - -

Lai pielāgotu fotogrāfiju datumu un laiku, izvēlieties fotogrāfijas, izvēlieties FotogrāfijasPielāgot datumu un laiku... un iestatiet jaunu datumu un laiku.

- -

Ja maināt datumu un laiku vairākām fotogrāfijām uzreiz, varat to mainīt visām fotogrāfijām par vienādu laika nobīdi, vai arī visām iestatīt vienu un to pašu laiku.

- -

Pēc noklusējuma, datums un laiks tiek mainīts tikai pašā Shotwell. Jūs varat arī mainīt datumu un laiku oriģinālajā datnē, bet to nevar atsaukt, kad iziesiet ārā no Shotwell lietotnes.

- -
diff --git a/help/lv/edit-enhance.page b/help/lv/edit-enhance.page deleted file mode 100644 index 8ca3e5d..0000000 --- a/help/lv/edit-enhance.page +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - Ļauj Shotwell automātiski uzlabot fotogrāfiju gaišumu un kontrastu. - - - - - - - Automātiskā uzlabošana - -

Spiežot pogu Uzlabot, var ātri un automātiski pielabot fotogrāfijas gaišumu un kontrastu. Tas dos pareizi eksponētu fotogrāfiju. Jūs to varat arī izmantot kā sākuma punktu un pēc tam uzlabot attēlu ar pogu Pielāgot.

-
diff --git a/help/lv/edit-external.page b/help/lv/edit-external.page deleted file mode 100644 index 66b3fc5..0000000 --- a/help/lv/edit-external.page +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - Izmantot citu lietotni fotogrāfijas rediģēšanai. - - - - - Rediģēt fotogrāfijas ar ārēju programmu - -

Jūs varat izmantot ārēju redaktoru, lai veiktu papildu izmaiņās fotogrāfijā. Ja ir instalēts, GIMP un UFRaw ir noklusējuma ārējie redaktori attiecīgi fotogrāfijām un jēlajām datnēm. Ja šīs programmas nav instalētas, jums jāizvēlas vēlamie redaktori RediģētIestatījumi un jāizvēlas redaktori no instalēto lietotņu izkrītošajām izvēlnēm.

- -

Kad redaktors ir iestatīs, izvēlieties fotogrāfiju un izvēlietiesFotogrāfijas Atvērt ar ārēju redaktoru lai atvērtu fotogrāfiju ar ārēju redaktoru. Līdzīgi, ja fotogrāfija ir jēldatne, izvēlieties FotogrāfijasAtvērt ar RAW redaktoru, lai rediģētu jēldatni ar iestatīto RAW redaktoru.

- -

Kad beigsiet rediģēt un saglabāsiet datni, Shotwell pamanīs izmaiņas un atjauninās fotogrāfiju. Kad ārējās izmaiņas ir pabeigtas, spiediet taustiņu Shift pilnekrāna logā, lai rādītu sākotnējo fotogrāfiju, nevis ārēji rediģēto.

- -

Atjaunošana uz oriģinālu dzēsīs ārpusē veiktās izmaiņas.

- - -

Ja jūs ārēji rediģējat RAW fotogrāfiju un to saglabājat citā attēlā, piemēram, JPEG vai PNG, Shotwell nevar automātiski noteikt, ka oriģinālā RAW un jaunais attēls ir saistīti.

- -

Ja vēlaties Shotwell lietotnē strādāt ar iegūto attēlu, jums pašam tā būs jāimportē.

-
-
diff --git a/help/lv/edit-nondestructive.page b/help/lv/edit-nondestructive.page deleted file mode 100644 index 8a3e945..0000000 --- a/help/lv/edit-nondestructive.page +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - Shotwell ir nedestruktīvs fotogrāfiju redaktors — tas nemaina jūsu sākotnējās fotogrāfijas. - - - - - Kas notiek ar oriģinālu, kad es rediģēju fotogrāfiju? - -

Shotwell in neiznīcinošs fotogrāfiju redaktors. Tas nemaina jūsu sākotnējās fotogrāfijas. Tas nozīmē, ka, ka kadrējat attēlu vai maināt tā krāsas, fotogrāfijas datne uz diska netiek mainīta. Shotwell Saglabā jūsu veiktās izmaiņas datubāzē un tās vēlāk tiek pielietotas, kad tas ir vajadzīgs. Tas nozīmē,ka varat atsaukt jebkuras izmaiņas, ko veicāt ar fotogrāfiju.

- -

Ja vēlaties redzēt, kā attēls izskatījās pirs izmaiņu veikšanas, spiediet Shift taustiņu. Sākotnējā bilde būs redzama, kamēr vien būs piespiests taustiņš.

- -

Ņemiet vērā, ka Shotwell var ierakstīt metadatus (piemēram, tagus un nosaukumus) fotogrāfiju datnēs. Lai uzzinātu vairāk, skatiet nodaļu Fotogrāfiju datnes.

- -
diff --git a/help/lv/edit-redeye.page b/help/lv/edit-redeye.page deleted file mode 100644 index 523be5a..0000000 --- a/help/lv/edit-redeye.page +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - Labojiet fotogrāfijas, kur cilvēkiem ir sarkanas acis dēļ kameras zibspuldzes. - - - - - Sarkano acu noņemšana - -

Sarkano acu efekts notiek, kad kameras zibspuldze atspīd no acu zīlītes. Lai šo efektu novērstu fotogrāfijā, izmantojiet sarkano acu rīku.

- - -

Spiediet Sarkanās acis. Fotogrāfijā parādīsies aplis.

-
- -

Velciet apli virs sarkanās zīlītes, pielāgojiet tā izmēru ar slīdni un spiediet Pielietot. Sarkanums tiks noņemts.

-
- -

Atkārtojiet procesu visām sarkanajām acīm fotogrāfijā. Kad pabeidzat, spiediet Aizvērt.

-
-
-
diff --git a/help/lv/edit-rotate.page b/help/lv/edit-rotate.page deleted file mode 100644 index d0cedda..0000000 --- a/help/lv/edit-rotate.page +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - Spiediet pogu Pagriezt, vai izvēlieties vienu no komandām Fotogrāfiju izvēlnē. - - - - - Pagriezt vai apmest fotogrāfiju - -

Jūs varat pagriezt fotogrāfijas pa labi vai pa kreisi (pulksteņa rādītāja virzienā vai pretēji) ar pogu Pagriezt, kas ir pieejams rīkjoslā. Jūs varat arī iegūt jebkuras fotogrāfijas spoguļattēlu.

- -

Lai pagrieztu pa labi, spiediet pogu Pagriezt. Lai pagrieztu pa kreisi, turiet piespiestu Ctrl taustiņu un spiediet pagriešanas pogu. Abas komandas ir pieejamas arī Fotogrāfiju izvēlnē. Varat izmantot arī tastatūras saīsnes:

- -

pagriezt pa kreisi: ShiftCtrlR vai [

-

pagriezt pa labi: CtrlR vai ]

-
-

Lai izveidotu fotogrāfijas spoguļattēlu, izmantojiet Apmest horizontāli komandu Fotogrāfiju izvēlnē. Lai apmestu fotogrāfiju vertikāli, izmantojiet Apmest vertikāli komandu tajā pat izvēlnē.

- - -

Ja izvēlēsities vairāk kā vienu attēlu, varēsiet pagriezt tos visus uzreiz.

-
- -
diff --git a/help/lv/edit-straighten.page b/help/lv/edit-straighten.page deleted file mode 100644 index 5d42552..0000000 --- a/help/lv/edit-straighten.page +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - Iztaisnojiet fotogrāfijas, lai to horizonts izskatītos līdzens. - - - - - Iztaisnot fotogrāfijas - -

Iztaisnošanas rīks ļauj izlīdzināt un iztaisnot fotogrāfijas. Iztaisnošanas rīks ir pieejams tikai pilna loga un pilnekrāna režīmā.

- - - -

Spiediet Iztaisnot. Parādīsies iztaisnošanas slīdnis. Varat izmantot arī tastatūras saīsni CtrlA.

-
- -

Velciet slīdni, lai iegūtu vēlamo leņķi.

-
- -

Kad pabeigts, spiediet Iztaisnot.

-
-
- -
diff --git a/help/lv/edit-undo.page b/help/lv/edit-undo.page deleted file mode 100644 index 8d9061d..0000000 --- a/help/lv/edit-undo.page +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - Atjaunot fotogrāfiju tās sākotnējā, nerediģētā formā. - - - - - - - Atsaukt izmaiņas - -

Tā kā Shotwell ir nedestruktīvs fotogrāfiju redaktors, jūs varat atsaukt visas izmaiņas, kas ir veiktas ar fotogrāfiju.

- -

Ja vēlaties redzēt, kā attēls izskatījās pirs izmaiņu veikšanas, spiediet Shift taustiņu. Sākotnējā bilde būs redzama, kamēr vien būs piespiests taustiņš.

- -

Lai pilnībā atsauktu visas fotogrāfijā veiktās izmaiņas, spiediet FotogrāfijasAtgriezties pie oriģināla. Vienīgais izņēmums ir laiks un datums, tie netiks atjaunoti.

- -
diff --git a/help/lv/formats.page b/help/lv/formats.page deleted file mode 100644 index 6533271..0000000 --- a/help/lv/formats.page +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - Shotwell atbalsta JPEG, PNG, TIFF, BMP un RAW fotogrāfiju datnes, kā arī video datnes. - - - - - Atbalstītie fotogrāfiju un video formāti - -

Shotwell supports JPEG, PNG, TIFF, BMP and RAW photo files. Shotwell does not yet support other graphics format such as GIF.

- -

Pašlaik Shotwell jēlattēlu (RAW) formātu atbalsts ir ierobežots. Skatoties jēlattēlu, jūs redzat JPEG datni, kas ir izvilkta no jēlattēla, nevis pašu jēlattēlu. Bez tam, RAW rediģēšanas konveijers nav pilnībā 16 bitu — rediģētās fotogrāfijas var eksportēt tikai kā 8 bitu datnes. Eksportēšanai var izmantot visus atbalstītos formātus (JPEG, PNG, TIFF, BMP).

- -

For more information about RAW-format photos in Shotwell, please see -the RAW section. -

- -

Shotwell atbalsta arī video datnes visos formātos, ko atbalsta GStreamer multimediju bibliotēka sistēmā, uz kuras darbojas Shotwell. Tas parasti iekļauj šos formātus:

- -

Konteineru formāti: Ogg, QuickTime, MP4, AVI.

-

Kodeki: Theora, Quicktime, MPEG-4, Motion JPEG. Ņemiet vērā, ka dažas operētājsistēmas var neiekļaut visus šeit uzskaitītos kodekus dēļ juridiskiem vai licenču ierobežojumiem.

-
- -

Shotwell atbalsta gan fotogrāfijas, gan video, bet dokumentācijā vienkāršības labad tiek izmantots termins “fotogrāfijas”. Vairums darbību Shotwell var veikt gan ar fotogrāfijām, gan video, precīzāk, notikumi, atzīmēšana ar karogu, vērtēšana, tagošana un publicēšana darbojas vienlīdz labi ar fotogrāfijām un video.

- -
diff --git a/help/lv/import-camera.page b/help/lv/import-camera.page deleted file mode 100644 index 86e8800..0000000 --- a/help/lv/import-camera.page +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - Kopēt fotogrāfijas no ciparu kameras. - - - - - Importēšana no kameras - -

Lai importētu fotogrāfijas no ciparu kameras:

- - - -

Pievienojiet kameru savam datoram un ieslēdziet to. Shotwell to atpazīs un parādīs sānu joslā.

-
- -

Izvēlieties kameru sānu joslā. Tiks attēloti katras fotogrāfijas priekšskatījums.

-
- -

Ja vēlaties, varat izvēlēties, kuras tieši fotogrāfijas importēt. Lai to izdarītu, turiet piespiestu Ctrl taustiņu un spiediet uz attiecīgajām fotogrāfijām. Varat arī turēt piespiestu Shift taustiņu un spiest uz fotogrāfijām, lai izvēlētos virkni fotogrāfiju uzreiz.

-
- -

Spiediet vai nu Importēt izvēlētās vai Importēt visas. Fotogrāfijas tiks nokopētas no kameras un saglabātas datorā.

-
-
- -

Kad importēšana ir pabeigta, varat atvērt skatu Pēdējais imports (sānu joslā) un tur būs redzamas visas importētās fotogrāfijas. Notikumu saraksts (arī sānu joslā) arī saturēs jaunās fotogrāfijas, kas ir organizētas pēc datuma.

-
diff --git a/help/lv/import-file.page b/help/lv/import-file.page deleted file mode 100644 index d1a3eb7..0000000 --- a/help/lv/import-file.page +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Importēt fotogrāfijas, kas jau ir saglabātas datorā. - - - - - Importēt no cietā diska - -

Lai importētu datnes no cietā diska uz Shotwell, velciet tās no datņu pārlūka Shotwell logā.

- -

Alternatively, click FileImport From Folder... and select the folder containing the photos you want to import. If you do not want Shotwell to recurse into subfolders while importing, you can uncheck the Recurse Into Subfolders checkbox on the bottom of the file dialog.

- -

Shotwell jums prasīs, vai vēlaties kopēt fotogrāfiju datnes uz jūsu bibliotēkas mapi (parasti tā ir mape Attēli, kas atrodas jūsu mājas direktorijā), vai importējiet tās, nekopējot datnes.

- -

Ja turat piespiestu Ctrl taustiņu, kamēr velkat fotogrāfijas, Shotwell kopēs jūsu fotogrāfijas bez nejautājot. Līdzīgi, ja velkot turēsiet piespiestus taustiņus CtrlShift, Shotwell importēs fotogrāfijas tās nekopējot.

- -

Kad importēšana ir pabeigta, varat izvēlēties Pēdējais imports sānu joslā, lai redzētu visas veiksmīgi importētās fotogrāfijas. Notikumu saraksts arī attēlos jaunos ierakstus datumiem, kas atbilst importētajām fotogrāfijām.

- -
diff --git a/help/lv/import-memorycard.page b/help/lv/import-memorycard.page deleted file mode 100644 index b8cb84c..0000000 --- a/help/lv/import-memorycard.page +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - Importēt fotogrāfijas no ciparu kameras atmiņas kartes. - - - - - Importēšana no atmiņas kartes - -

Lai importētu fotogrāfijas no kameras atmiņas kartes:

- - - -

Ievietojiet atmiņas karti savā karšu lasītājā. Pārliecinieties, ka lasītājs ir pievienots datoram un ieslēdziet to.

-
- -

Karšu lasītāju un pašu karti datoram vajadzētu atpazīt automātiski.

-
- -

Sekojiet instrukcijām, kā importēt fotogrāfijas no cietā diska. Ja spiedīsiet DatneImportēt no mapes..., atmiņas karte būs redzama kā mape izvēlēs loga sānu joslā.

-
-
- -

Shotwell var importēt fotogrāfijas no jebkuras atmiņas kartes, kas ir savietojama ar jūsu karšu lasītāju.

- -

Ja karte nav automātiski atpazīta, iespējams, ka karšu lasītājs nav atpazīts. Mēģiniet to atvienot un atkal pievienot datoram. Ja tas nepalīdz jums vajadzētu varēt importēt fotogrāfijas, pievienojot datoram pašu kameru.

- -
diff --git a/help/lv/index.page b/help/lv/index.page deleted file mode 100644 index e275061..0000000 --- a/help/lv/index.page +++ /dev/null @@ -1,46 +0,0 @@ - - - - - Shotwell - - Jim Nelson - jim@yorba.org - Allison Barlow - allison@yorba.org - Robert Ancell - robert.ancell@canonical.com - Peter Smith - pdo.smith@gmail.com - Phil Bull - philbull@gmail.com - - - - - <media type="image" src="figures/shotwell_logo.png"/>Shotwell fotogrāfiju pārvaldnieks - -
- Fotogrāfiju importēšana -
- -
- Fotogrāfiju skatīšana -
- -
- Fotogrāfiju organizēšana -
- -
- Fotogrāfiju rediģēšana -
- -
- Dalīšanās ar fotogrāfijām -
- -
- Citas iespējas -
-
diff --git a/help/lv/lv.stamp b/help/lv/lv.stamp deleted file mode 100644 index e69de29..0000000 diff --git a/help/lv/organize-event.page b/help/lv/organize-event.page deleted file mode 100644 index 3877336..0000000 --- a/help/lv/organize-event.page +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - Grupēt kopā fotogrāfijas, kas ir uzņemtas tajā pašā laikā. Uzziniet, kā pārdēvēt, apvienot un kārtot notikumus. - - - - - Notikumi - -

Notikums ir virkne ar fotogrāfijām, kas ir uzņemtas aptuveni vienā laikā. Importējot fotogrāfijas, Shotwell pārbauda, kad katra fotogrāfija ir uzņemta. Tad tas sagrupē fotogrāfijas notikumos.

- -

Izvēlieties Notikumi sānu joslā, lai redzētu fotogrāfijas, kas ir organizētas pēc datumiem. Ja sānu joslā izvēlēsities mēnesi vai gadu, galvenajā logā parādīsies saraksts ar notikumiem. Dubultklikšķiniet uz notikuma, lai redzētu visas fotogrāfijas, kas tika uzņemtas ap to laiku.

- -

Ja fotogrāfijā nav iekļauta informācija par datumu un laiku, Shotwell nevar automātiski to novietot kādā notikumā. Šādā gadījumā fotogrāfija parādīsies Nav notikuma sadaļā sānu joslā. Jūs vēl aizvien varat pārvietot šādu fotogrāfiju uz jebkuru notikumu tāpat kā pārējās fotogrāfijas.

- -
- Notikumu pārdēvēšana - -

Lai notikumam piešķirtu nosaukumu, nevis norādīt uz to pēc datuma, izvēlieties notikumu, spiediet NotikumiPārdēvēt notikumu... un ievadiet jauno nosaukumu. Vēl notikumus var pārdēvēt, dubultklikšķinot uz to nosaukuma sānu joslā, ievadot jauno nosaukumu un spiežot Enter.

-
- -
- Fotogrāfiju pārvietošana starp notikumiem - -

Lai gan fotogrāfijas sākumā tiek grupētas notikumos pēc to datumiem, jūs varat pārvietot fotogrāfijas starp notikumiem. Lai to izdarītu, velciet jebkuru fotogrāfiju uz sānu joslu un nometiet to notikumā.

-
- -
- Notikumu izveidošana un apvienošana -

Lai izveidotu jaunu notikumu, izvēlieties fotogrāfijas, ko redzēt jaunajā notikumā un spiediet NotikumiJauni notikumi.

-

Lai apvienotu notikumus, izvēlieties Notikumi sānu joslā, tad, turot piespiestu Ctrl, spiediet uz notikumiem, kurus vēlaties apvienot galvenā loga laukumā. Visbeidzot, spiediet NotikumiApvienot notikumus.

-
- -
- Notikumu kārtošana - -

Notikumi tiek attēloti sānu joslas kokā, organizēti pa notikumiem, pēc vecākās fotogrāfijas datuma un mēneša. Lai mainītu notikumu kārtošanas secību, spiediet SkatsKārtot notikumus un izvēlieties kārtot vai nu augoši, vai dilstoši.

- -
- -
- Mainīt fotogrāfiju, kas reprezentē katru notikumu - -

Ja sānu joslā izvēlieties vienumu notikumi, redzēsiet vienu fotogrāfiju, kas reprezentē katru notikumu. To dēvē par atslēgas fotogrāfiju.

- -

Pēc noklusējuma, Shotwell izmanto pirmo fotogrāfiju kā atslēgas fotogrāfiju. Lai izmantotu citu atslēgas fotogrāfiju, izvēlieties vēlamo fotogrāfiju uz spiediet FotogrāfijasIzvēlēties kā atslēgas fotogrāfiju notikumam.

- -
- -
diff --git a/help/lv/organize-flag.page b/help/lv/organize-flag.page deleted file mode 100644 index f88f01b..0000000 --- a/help/lv/organize-flag.page +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - Atzīmēt fotogrāfijas, lai marķētu tās kā īpašas vai darbotos ar tām kā ar kopu. - - - - - Fotogrāfiju marķēšana - -

Shotwell jums ļauj marķēt fotogrāfijas. Kad fotogrāfija ir marķēta, tas augšējā labajā stūrī parādās maza karodziņa ikona. Jūs varat izvēlēties vienumu Ar karodziņu sānu joslā, lai redzētu visus marķētos vienumus.

- -

Fotogrāfiju marķēšana atzīmē tās kā īpašas. Jūs to varat interpretēt kā vien vēlaties. Piemēram, varat ar karodziņu atzīmēt visas fotogrāfijas, kurām jāveic vizuāla pielabošanas, vai visas fotogrāfijas, ar kurām vēlaties dalīties ar draugu.

- -

Marķēšana ir arī noderīga, jo varat darboties ar visām marķētajām fotogrāfijām kā ar vienu kopumu. Piemēram, varat izvēlēties Ar karodziņu skatu un augšupielādēt visas marķētās fotogrāfijas uz publicēšanas pakalpojumu.

- -
- Lai marķētu vai noņemtu marķējumu no fotogrāfijas -

Lai marķētu vai noņemtu marķējumu no fotogrāfijas, spiediet peles labo pogu uz fotogrāfijas, izvēlieties Marķēt vai Noņemt marķējumu konteksta izvēlnē. Vai lietojat tastatūras saīsnes CtrlG vai /.

-
- -
diff --git a/help/lv/organize-rating.page b/help/lv/organize-rating.page deleted file mode 100644 index 9b989f9..0000000 --- a/help/lv/organize-rating.page +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - Vērtējiet fotogrāfijas skalā no 1 līdz 5 zvaigznes. Jūs varat noraidīt sliktās fotogrāfijas, slēpjot tās no skata. - - - - - Vērtējumi -

Jūs varat katrai fotogrāfijai piešķirt vērtējumu no 1 līdz 5 zvaigznēm, vai arī tās noraidīt, kas pēc noklusējuma šīs bildes paslēps.

- -

Jūs varat novērtēt fotogrāfiju vai to kopumu šādos veidos:

- - -

Izvēlieties fotogrāfiju(-as), tad izvēlieties vērtējumu no izvēlnesFotogrāfijasIestatīt vērtējumu.

-

Spiediet labo peles pogu uz fotogrāfijas(-ām) un izvēlieties vērtējumu no “Iestatīt vērtējumu” konteksta izvēlnes.

-

Izvēlieties fotogrāfiju(-as), tad spiediet kādu no saīsnes taustiņiem 1, 2, 3, 4 vai 5, lai piešķirtu vērtējumu. Vai spiediet 9, lai atzīmētu fotogrāfiju kā noraidītu, vai 0, lai noņemtu vērtējumu.

-
- -

Parasti Shotwell attēlo visas fotogrāfijas, izņemot noraidītās. Jūs varat iestatīt citu vērtējumu filtru, piemēram, izmantojot SkatsFiltrēt attēlus izvēlni, jūs varat rādīt tikai attēlus ar vismaz 3 zvaigznēm vērtējumā, vai rādīt visas noraidītās fotogrāfijas. Shotwell ikona rīkjoslā attēlo aktuālo filtru un to var izmantot filtru iestatīšanai.

- -

Shotwell parasti attēlo katras fotogrāfijas vērtējumu tās apakšējā kreisajā stūrī. Jūs varat izslēgt vērtējumu attēlošanu, izmantojot SkatsVērtējumi izvēlni.

- -

Jūs varat palielināt vai samazināt fotogrāfijas vērtējumu, izmantojot komandas Iestatīt vērtējumuPalielināt un Iestatīt vērtējumusamazināt, vai ar tastatūras saīsnēm < un >.

-
diff --git a/help/lv/organize-remove.page b/help/lv/organize-remove.page deleted file mode 100644 index 5cf1790..0000000 --- a/help/lv/organize-remove.page +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - Izņemt fotogrāfijas no bibliotēkas vai pavisam izdzēst tās no datora. - - - - - Fotogrāfiju izņemšana un dzēšana - -

Jūs varat izņemt fotogrāfijas ārā no savas bibliotēkas un jūs varat tās pavisam izdzēst ārā no cietā diska.

-

Dzēšanas process

-

Šī diagramma rāda, kā dzēstā fotogrāfija vispirms tiek ievietota Shotwell miskastē. Ja izdzēsīsiet to ārā no Shotwell miskastes, tā tiks ievietota datora miskastē. Ja izdzēsīsiet to ārā no tās, fotogrāfija tiks neatgriezeniski izdzēsta no datora.

-
- Fotogrāfiju izņemšana no bibliotēkas -

Izvēlieties fotogrāfijas, kuras izņemt, izvēlieties RediģētPārvietot uz miskasti. (Jūs varat arī spiest taustiņu Dzēst.) Fotogrāfijas tiks pārvietotas no jūsu bibliotēkas uz Shotwell's miskasti.

-

Ja vēlaties izņemt fotogrāfijas no Shotwell, neizmetot tās miskastē, izvēlieties izņemamās fotogrāfijas un izvēlieties RediģētIzņemt no bibliotēkas. Fotogrāfiju datnes paliks uz diska.

-
- -
- Miskastes mapes iztukšošana vai atjaunošana -

Izvēlieties miskastes ierakstu sānu joslā un Shotwell parādīs visas fotogrāfijas, kas ir atzīmētas kā izņemamas vai dzēšamas. Miskastes skatā ir pieejamas šādas komandas:

- - Dzēst

Dzēst izvēlētās fotogrāfijas no miskastes mapes.

- Atjaunot

Atjaunot izvēlētās fotogrāfijas uz Shotwell.

- Iztukšot miskasti

Dzēst visas fotogrāfijas no miskastes mapes.

-
-
- -
- Dzēšana vai miskastes iztukšošana -

Kad dzēšat datnes no miskastes mapes, vai arī iztīrāt miskastes mapi, jums tiks dotas šādas izvēles:

- - Tikai izņemt

Fotogrāfiju izņemšana no bibliotēkas, bet uz datora atstāt fotogrāfijas turpat, kur tās bija.

- Izmest datni

Izņemt fotogrāfijas no bibliotēkas un izdzēst tās no datora.

- Atcelt

Nedarīt neko.

-
-
- -
diff --git a/help/lv/organize-search.page b/help/lv/organize-search.page deleted file mode 100644 index df525cf..0000000 --- a/help/lv/organize-search.page +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Savā kolekcijā meklēt fotogrāfijas un video pēc dažādiem kritērijiem. - - - - - Meklēšana - -

Shotwell var veikt divu veidu meklēšanu: ar filtru rīkjoslā un ar saglabātu meklēšanu. Meklēšanas josla jums ļauj ātri meklēt dotajā skatā pēc noteiktiem kritērijiem. Saglabātās meklēšanas sniedz kompleksākus meklēšanas kritērijus un paliek sānu joslā starp sesijām.

- - - -
- Saglabātie meklējumi -

Paplašinātā meklēšana saglabājas starp Shotwell sesijām un tiek atjaunināta, kad fotogrāfijas un video tiek pievienotas vai izņemtas no Shotwell bibliotēkas.

- -

Izveido saglabāto meklēšanu ar RediģētJauna saglabātā meklēšana... vai spiežot CtrlS. Dialoglodziņš jums ļauj ievadīt meklējuma nosaukuu un izvēlēties, vai sekojošajās rindās jāizpildās Kādam, Visiem vai Nevienam kritērijam.

- -

Katra rinda apzīmē meklēšanas kritēriju. Izmantojiet pogu +, lai pievienotu vairāk rindu, un pogu -, lai izņemtu attiecīgo rindu. Kombinētais lodziņš katras rindas kreisajā pusē izvēlas kritērija veidu. Kritērijam ir jābūt pareizi ievadītām, pirms kļūst pieejama poga Labi.

-
- -
diff --git a/help/lv/organize-tag.page b/help/lv/organize-tag.page deleted file mode 100644 index 46bff0c..0000000 --- a/help/lv/organize-tag.page +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - Organizēt fotogrāfijas, piešķirot tām etiķetes. - - - - - - - Fotogrāfiju tagošana - -

Jūs varat izvēlētajām fotogrāfijām piešķirt vienu vai vairākus tagus. Tags var būt viens vai vairāki vārdi, kurus varat saistīt ar šīm fotogrāfijām.

- -

Lai pievienotu jaunu tagu fotogrāfijām, izvēlieties attiecīgās fotogrāfijas un veiciet vienu no šīm darbībām:

- - -

Izvēlieties TagiPievienot tagus....

-

Spiediet CtrlT.

-

Velciet un nometiet izvēlētās fotogrāfijas uz vēlamā taga.

-
- -

Ja izmantojat CtrlT vai TagiPievienot tagus..., varat ierakstīt vienu vai vairāku tagu nosaukumus, atdalot tos ar komatiem. Kad tags ir izveidots, varat to pārdēvēt, izvēloties to tagu sānu joslā un izvēloties TagiPārdēvēt tagu "[nosaukums]"..., veicot labo klikšķi un izvēloties Pārdēvēt... vai dubultklikšķinot tagu sānu joslā.

- -

Lai mainītu, kuri tagi ir saistīti ar kurām fotogrāfijām, izvēlieties attiecīgo fotogrāfiju , izvēlieties TagiModificēt tagus... vai spiediet labo peles pogu uz fotogrāfijas un izvēlieties Modificēt tagus... un rediģējiet ar komatiem atdalīto sarakstu. Lai izņemtu tagu no vienas vai vairākām fotogrāfijām, vispirms izvēlieties attiecīgo tagu sānu joslā, tad izvēlieties fotogrāfijas, ko vēlaties izņemt un izvēlieties TagiIzņemt tagu "[nosaukums]" no fotogrāfijām vai spiediet labo peles pogu uz fotogrāfijām un izvēlieties Izņemt tagu "[nosaukums]" no fotogrāfijām.

- -

Lai pavisam izdzēstu tagu, izvēlieties to tagu sānu joslā un izvēlieties TagiDzēst tagu "[nosaukums]" vai spiediet labo peles pogu un izvēlieties Dzēst tagu "[nosaukums]".

- -

Izveidojot tagu, tas parādīsies sānu joslā sadaļā Tagi, kas ir slēpts, ja nav neviena taga. Fotogrāfijām var būt piesaistīti vairāki tagi. Sānu joslā, uzspiežot uz taga, redzēsiet visas fotogrāfijas, kurām ir šis tags.

- -
- Hierarhiskie tagi -

Shotwell atbalsta hierarhiskos tagus. Jūs varat pārkārtot tagus, velkot un nometot tos vienu otrā. Lai izveidotu jaunu apakštagu, spiediet labo peles pogu uz taga un izvēlieties Jauns.

- -

Hierarhiskie tagi jums palīdz kārtot tagu sarakstu tuvāk jūsu domāšanas veidam; piemēram, jūs varat saglabāt vietu tagus “Kalni” vai “Pludmale” zem taga “Vietas”, kas var būt zem taga “Vasaras brīvdienas”.

- -

Ņemiet vērā, ka virstaga dzēšana dzēsīs arī tā apakštagus.

-
-
diff --git a/help/lv/organize-title.page b/help/lv/organize-title.page deleted file mode 100644 index 42aa752..0000000 --- a/help/lv/organize-title.page +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - Dodiet nosaukumus savām fotogrāfijām. - - - - - Nosaukumi - -

SkatsNosaukumi izvēles rūtiņa pārslēdz nosaukumu rādīšanu zem katras fotogrāfijas. Pēc noklusējuma, fotogrāfijas nosaukums ir tās datnes nosaukums.

- -

Lai mainītu fotogrāfijas nosaukumu, izvēlieties fotogrāfiju un spiediet FotogrāfijasRediģēt nosaukumu..., vai spiediet F2.

- -
diff --git a/help/lv/other-files.page b/help/lv/other-files.page deleted file mode 100644 index f645a03..0000000 --- a/help/lv/other-files.page +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - Saglabāt Shotwell bibliotēku sinhronu ar datnēm diskā. - - - - - Fotogrāfiju datnes - -

Katra fotogrāfija Shotwell bibliotēkā atbilst datnei jūsu cietajā diskā. Shotwell ir vairākas iespējas, kas palīdz saglabāt sinhroni Shotwell bibliotēku un datnes diskā.

- - -
- Pielāgota direktoriju šablona izmantošana -

Shotwell jums ļauj norādīt, kā saglabāt direktorijas jūsu bibliotēkā. Jūs to varat izdarīt, mainot iestatījumus Direktoriju struktūra un Šablons dialoglodziņā Iestatījumi. Jūs varat izmantot iepriekš izveidotus šablonus vai izvēlēties Pielāgots un ievadīt paši savu.

- -

Pieejamie simboli direktoriju šablonam sākas ar % (procentu zīme). Vērtības, ko šie simboli veido, ir atkarīgi no lokalizācijas, tāpēc iegūtie rezultāti uz jūsu datoriem var atšķirties no piemēriem zemāk.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Simbols

Nozīme

Piemērs

%Y

Gads: pilns

2011

%y

Gads: divi cipari

11

%d

Mēneša diena, vienmēr divi cipari

03

%A

Dienas nosaukums: pilns

Trešdiena

%a

Dienas nosaukums: saīsināts

Tr

%m

Mēneša numurs, vienmēr divi cipari

02

%b

Mēneša nosaukums: saīsināts

Feb

%B

Mēneša nosaukums: pilns

Februāris

%I

Stunda: 12 stundu formāts

05

%H

Stunda: 24 stundu formāts

17

%M

Minūte

16

%S

Sekunde

30

%p

AM vai PM

PM

- -

- There are other symbols available; please check the manual for strftime by running - the command man strftime if you need one that isn't listed here. -

-
- -
- Automātiskā fotogrāfiju importēšana - -

Shotwell var automātiski importēt jaunās fotogrāfijas, kas parādās bibliotēkas direktorijā. Bibliotēkas direktorija parasti ir Attēli direktorija mājas mapē; jūs varat mainīt tās atrašanās vietu logā Iestatījumi.

- -

Lai ieslēgtu automātisko importēšanu, ieķeksējiet lodziņu Sekot līdzi jaunām datnēm manā bibliotēkā logā Iestatījumi.

- -

Shotwell var arī sekot simboliskajām saitēm automātiski importētajās direktorijās.

- -
- -
- Automātiskā importēto fotogrāfiju pārdēvēšana uz mazo burtu reģistru - -

Shotwell var automātiski mainīt importēto fotogrāfiju datņu nosaukumus uz mazo burtu reģistru. Lai to ieslēgtu, izvēlieties RediģētIestatījumi, logā Iestatījumi izvēlieties kasti Pārdēvēt importētās datnes uz mazajiem burtiem.

- -
- -
- Metadatu tūlītēja rakstīšana - -

Pēc noklusējuma Shotwell nemaina fotogrāfiju datnes, pat rediģējot fotogrāfijas vai mainot to tagus vai nosaukumus. Shotwell ieraksta šīs izmaiņas tikai savā datubāzē.

- -

Lai mainītu šo uzvedību, varat ieslēgt izvēles rūtiņu Rakstīt tagus, nosaukumus un citus metadatus fotogrāfiju datnēs dialoglodziņā Iestatījumi. Kad šī opcija ir ieslēgta, veicot izmaiņas fotogrāfijā, Shotwell ierakstīs sekojošos metadatus vairumā fotogrāfiju datēs:

- - -

nosaukumi

-

tagi

-

vērtējumi

-

rotācijas informācija

-

laiks/datums

-
- -

Shotwell saglabā šo informāciju fotogrāfiju datnēs EXIF, IPTC un / vai XMP formātos. Ņemiet vērā, ka Shotwell fotogrāfiju datnēs var rakstīt tikai JPEG, PNG un TIFF formātos, bet ne BMP, RAW vai video datnēs.

- -
- -
- Izpildlaika pārraudzīšana - -

Kamēr Shotwell ir palaists, tas pamana izmaiņas, kas no ārpuses notiek ar fotogrāfijām. Kad fotogrāfijas datnes mainās, Shotwell pārlasa datni un atjaunina jūsu fotogrāfijas skatu un metadatus.

- -

Ņemiet vērā, ka palaižoties Shotwell visās fotogrāfiju datnēs pārbauda, vai ir izmaiņas, bet pēc palaišanās tikai bibliotēkas direktorijas mape tiek uzraudzīta reālā laikā. Mēs ceram nākošajos laidienos šo ierobežojumu noņemt.

- -
- -
diff --git a/help/lv/other-missing.page b/help/lv/other-missing.page deleted file mode 100644 index 1a78703..0000000 --- a/help/lv/other-missing.page +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - Ja Shotwell nevar atrast fotogrāfiju bibliotēkā, tā tiek atzīmēta kā trūkstoša. - - - - - Trūkstošās fotogrāfijas - -

Katru reizi, kad Shotwell tiek palaists, tas skenē jūsu fotogrāfiju bibliotēku, lai pārliecinātos, ka fotogrāfijas vēl aizvien atrodas uz cietā diska. Ja Shotwell konstatē, ka kāda fotogrāfija trūkst, tā nebūs redzama parasto fotogrāfiju, notikumu un tagu skatos, bet tiks parādīta atsevišķā “Iztrūkstošās datnes” skatā, kas parādīsies sānu joslā.

- -

Ja vairs nevēlaties redzēt trūkstošās fotogrāfijas savā Shotwell kolekcijā (iespējams, tāpēc, ka esat tās izdzēsis), ejiet uz skatu “Iztrūkstošās datnes”, izvēlieties fotogrāfijas un spiediet Izņemt no bibliotēkas.

- -

Ja jūsu fotogrāfijas ir uz noņemamiem datu nesējiem, piemēram, CD vai USB zibatmiņām, un esat tās importējis Shotwell tās nekopējot uz savu datoru, tās parādīsies kā trūkstošas datnes, ja atvienojāt noņemamo disku. Skatiet , lai uzzinātu, kā kopēt datnes no noņemamiem diskiem uz savu datoru.

- -

Ja kāda no trūkstošajām fotogrāfijām atkal kļūs pieejama, Shotwell to pamanīs nākamajā startēšanās reizē. Šīs fotogrāfijas atkal parādīsies fotogrāfiju, notikumu un tagu skatos.

- -
diff --git a/help/lv/other-multiple.page b/help/lv/other-multiple.page deleted file mode 100644 index 57ac5a1..0000000 --- a/help/lv/other-multiple.page +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - Jūs varat atvērt Shotwell ar citu fotogrāfiju bibliotēku, izmantojot komandrindu. - - - - - Vairākas bibliotēkas - -

Shotwell parasti saglabā savu datubāzi un fotogrāfiju sīktēlus direktorijā ~/.shotwell . Šajā direktorijā nav fotogrāfiju, bet tajā esošā datubāze satur sarakstu ar visām fotogrāfijām Shotwell bibliotēkā.

- -

Šī iespēja ir domāta lietpratējiem — ir iespējams uzturēt vairākas Shotwell bibliotēkas, kur katrai no tām ir sava fotogrāfiju kopa. Katrai bibliotēkai ir vajadzīga sava datubāzes direktorija. Lai palaistu Shotwell ar citu bibliotēku, norādiet tās datubāzes direktoriju komandrindā šādi:

- - -shotwell -d [bibliotēkas-direktorija] - - -
diff --git a/help/lv/other-plugins.page b/help/lv/other-plugins.page deleted file mode 100644 index 0f10ab3..0000000 --- a/help/lv/other-plugins.page +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Dinamiski izvērst Shotwell funkcionalitāti. - - - - - Spraudņi -

Shotwell var lietot ar spraudņiem, kas ir koplietotās bibliotēkas, kas var pievienot atbalstu jauniem publicēšanas mērķiem vai jaunām slaidrādes pārejām.

- -

Lai redzētu instalēto spraudņu sarakstu, izvēlieties RediģētIestatījumi, un logā Iestatījumi spiediet uz cilni Spraudņi. Tur būs redzami pašlaik instalētie spraudņi un tiem blakus izvēles rūtiņu. Jūs varat ieslēgt vai izslēgt katru no tiem, ieķeksējot vai noņemot ķeksi no attiecīgās izvēles rūtiņas.

- -

Pilna informācija par to, kā izstrādāt spraudņus, ir pieejama http://redmine.yorba.org/projects/shotwell/wiki/ShotwellArchWritingPlugins

- -
diff --git a/help/lv/raw.page b/help/lv/raw.page deleted file mode 100644 index fc434a8..0000000 --- a/help/lv/raw.page +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - Vairāk par RAW atbalstu Shotwell lietotnē. - - - - - RAW atbalsts Shotwell lietotnē -

Dažas kameras var datus no sensora saglabāt pa tiešo datnē, kas satur papildu krāsu informāciju; tos parasti dēvē par “RAW” (jēlie) vai “kameras RAW”, un Shotwell atbalsta arī šīs datnes.

- -

Tā kā RAW fotogrāfijas nevar attēlot tiešā veidā, tās vispirms ir jāattīsta — tas ir, tās papildu informācija ir jālasa un jāinterpretē attēlošanai. Vairums kameru vai nu ieguls JPEG iekšā RAW datnē, vai izveidos gan RAW, gan JPEG datnes vienam un tam pašam kadram. Otrais risinājums šajā dokumentā tiks apzīmēts kā RAW+ JPEG. Ja importēsiet RAW+JPEG pāri, Shotwell tos paturēs sapārotus un bibliotēkā tie parādīsies kā viens vienums.

- -

Importējot RAW datni, jūs varat izvēlēties vai nu izmantot kameras iekšēji attīstīto JPEG vai Shotwell attīstīto, izvēlnēs izvēloties FotogrāfijasAttīstītājs.

- - -

Attīstītāju mainīšana var atcelt visas fotogrāfijās veiktās izmaiņas.

-
- -

Lai publicētu vai lietotu RAW fotogrāfijas vairumā lietotņu, tās vispirms ir jāeksportē. Shotwell var eksportēt RAW fotogrāfijas JPEG, PNG, TIFF un BMP formātos. Publicējot tās tiks eksportētas JPEG formātā.

- -
diff --git a/help/lv/running.page b/help/lv/running.page deleted file mode 100644 index 3f52af3..0000000 --- a/help/lv/running.page +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Atrodiet Shotwell lietotņu izvēlnē, vai arī palaidiet to, pievienojot kameru. - - - - - - - Shotwell darbināšana - -

Kad Shotwell ir uzinstalēts, tas ir pieejams izvēlnē Lietotnes zem Grafika vai Fotogrāfija.

- -

Shotwell var tikt palaist automātiski, kad kamera ir pievienota datoram. Lai pārbaudītu, vai sistēma palaidīs Shotwell, kad ir atklāta kamera, ejiet uz RediģētIestatījumi jebkurā Nautilus (datņu pārlūka) logā un izvēlieties cilni Datu nesēji. Tur būs redzams izkrītošais saraksts ar nosaukumu Fotogrāfijas:, kas ļauj izvēlēties Shotwell kā lietotni, kas apstrādā fotogrāfijas.

- - -

Shotwell var arī palaist no tās būvēšanas direktorijas, lai gan to iesaka darīt tikai Shotwell testēšanai vai izstrādāšanai.

-
- -
diff --git a/help/lv/share-background.page b/help/lv/share-background.page deleted file mode 100644 index c5ac640..0000000 --- a/help/lv/share-background.page +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - Iestatīt darbvirsmas fonā fotogrāfiju vai fotogrāfiju slaidrādi. - - - - - Iestatīt darbvirsmas fonu vai slaidrādi - -

Lai iestatītu vienu fotogrāfiju kā fona attēlu, izvēlieties fotogrāfiju un izvēlieties DatneIestatīt kā darbvirsmas fonu.

- -

Jūs varat arī iestatīt fonu kā fotogrāfiju slaidrādi. Lai to izdarītu, izvēlieties fotogrāfijas slaidrādei un izvēlieties DatneIestatīt kā darbvirsmas slaidrādi.... Shotwell vaicās, cik ilgai ir jābūt slaidrādes aizturei, kas var būt līdz vienai dienai. Fona slaidrāde strādās arī tad, kad Shotwell nav palaists.

- -
diff --git a/help/lv/share-export.page b/help/lv/share-export.page deleted file mode 100644 index 913b405..0000000 --- a/help/lv/share-export.page +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - Kopēt fotogrāfijas ārā no Shotwell, lai tās varētu novietot kur citur. - - - - - Fotogrāfiju eksportēšana - -

Lai eksportētu fotogrāfijas no Shotwell ar vilkšanas-nomešanas metodi, velciet fotogrāfijas no Shotwell uz datņu pārvaldnieka logu savā darbvirsmā. Jaunās datnes būs pilna izmēra kopijas fotogrāfijām bibliotēkā.

- -

Varat arī izvēlēties noteiktas fotogrāfijas un izvēlēties DatneEksportēt... komandu vai spiest ShiftCtrlE, kas eksportē fotogrāfijas, ļaujot precizēt foto datņu izmērus un dimensijas. Parādīsies logs, kas ļauj veikt vairākas izvēles:

- - -

Formāts, uz kuru eksportēt.

- -

Izvēlieties Nemainīts, lai eksportētu fotogrāfijas to sākotnējā formātā, bez izmaiņām, kas veiktas ar Shotwell. RAW fotogrāfijas tiks eksportētas RAW formātā.

-

Izvēlieties Pašreizējais lai eksportētu fotogrāfijas ar izmaiņām, kas veiktas Shotwell. RAW fotogrāfijas tiks eksportētas JPEG formātā, ja esat tās rediģējuši ar Shotwell, citādi tās paliks sākotnējā RAW formātā.

-

Jūs varat izvēlēties noteiktu attēlu formātu (JPEG, PNG, TIFF, BMP), ko izmantot eksportēšanā. Tiks iekļautas visas izmaiņas, kas ir veiktas ar Shotwell un fotogrāfijas tiks konvertētas uz mērķa formātu.

-
-
-

Attēlu kvalitāte eksportējot (zema, vidēja, augsta vai maksimāla).

-

Mēroga ierobežojums (kas norāda, kā Shotwell izlems samazināt fotogrāfijas) un vēlamais pikseļu izmērs.

- -Original size

Image will be exported without any scaling applied

-Longest edge

Image will be exported by having its longest edge scaled to Pixels and the other according to the aspect ratio

-Width

The image width will have its width scaled to the given pixel size and its height according to the aspect ratio. This is equivalent to Longest Edge for landscape pictures.

-Height

The image height will have its height scaled to the given pixel size and its width according to the aspect ratio. This is equivalent to Longest Edge for portrait pictures.

-
-
-

Opcija, vai vēlaties eksportēt metadatus, piemēram, tagus un vērtējumus. Tas var palīdzēt saglabāt privātumu, ja jums ir ģeolokācijas tagi vai tādi tagi, ko citiem nevajadzētu redzēt.

-
- -

Ja ir izvēlēts, Shotwell ierakstīs tagus, nosaukumus un citus metadatus jaunajās datnēs.

- -
diff --git a/help/lv/share-print.page b/help/lv/share-print.page deleted file mode 100644 index bae8538..0000000 --- a/help/lv/share-print.page +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Spiediet DatneDrukāt.... Lai piekļūtu papildu drukāšanas opcijām, dialoglodziņā Drukāt izvēlieties cilni Lappuses iestatīšana. - - - - - Drukāšana - -

Lai izdrukātu fotogrāfiju, atlasiet to un izvēlieties DatneDrukāt....

- -

Shotwell var arī izdrukāt vairākus attēlus vienā lappusē. Lai to izdarītu, izvēlieties vairākus attēlus, izvēlieties DatneDrukāt..., un dialoglodziņā Drukāt izvēlieties Attēla iestatījumi cilni. Šajā cilnē sadaļā Automātiskais izmērs izvēlieties kādu no vairāku attēlu izkārtošanas opcijām.

- -

Ja vēlaties iestatīt formatējumu, papīra izmēru un orientācijas opcijas, pirms drukāšanas dialoglodziņā Drukāt izvēlieties cilniLappuses iestatīšana.

-
diff --git a/help/lv/share-send.page b/help/lv/share-send.page deleted file mode 100644 index 828e41e..0000000 --- a/help/lv/share-send.page +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - Sūtīt fotogrāfijas pa e-pastu, tūlītējo ziņojumapmaiņu vai citos veidos. - - - - - Fotogrāfiju sūtīšana - -

Shotwell var sūtīt fotogrāfijas, izmantojot GNOME darbvirsmas “Sūtīt uz” mehānismu, kas jums ļauj sūtīt fotogrāfijas caur e-pastu, tūlītējo ziņojumapmaiņu un citos veidos.

-

Lai sūtītu fotogrāfijas, atlasiet tās Shotwell lietotnē un izvēlieties DatneSūtīt uz..., vai spiediet labo peles klikšķi uz fotogrāfijām un izvēlieties Sūtīt uz... konteksta izvēlnē. Parādīsies dialoglodziņš Sūtīt uz, kas ļauj izvēlēties datņu sūtīšanas mehānismu (piemēram, e-pasts vai tūlītējā ziņojumapmaiņa) un gala mērķi. Jūs varat arī izvēlēties sūtīt datnes saspiestā formātā.

- -
diff --git a/help/lv/share-slideshow.page b/help/lv/share-slideshow.page deleted file mode 100644 index ba3a4ce..0000000 --- a/help/lv/share-slideshow.page +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - Skatieties savu fotogrāfiju slaidrādi. - - - - - Slaidrādes - -

Lai Shotwell lietotnē redzētu kādas kolekcijas slaidrādi, ejiet uz kolekciju un izvēlieties SkatsSlaidrāde vai spiediet F5.

- -

Aktīvā slaidrādē varat mainīt dažus iestatījumus:

- - -

Laiku, cik ilgi būs redzams attēls: 1–30 sekundes

-

Varat izvēlēties dažādus pārejas efektus.

-

Laiks katram pārejas efektam: 0,1–1,0 sekundes

-
-
diff --git a/help/lv/share-upload.page b/help/lv/share-upload.page deleted file mode 100644 index d6217e1..0000000 --- a/help/lv/share-upload.page +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - Publicēt fotogrāfijas Facebook, Flickr, Picasa Web Albums un citās vietnēs. - - - - - Publicēšana tīmeklī - -

Izmantojot spraudņus, Shotwell var publicēt fotogrāfijas un video uz sekojošajiem pakalpojumiem, kur katram ir nepieciešams konts:

- - -

Facebook

-

Flickr

-

Picasa Web Albums and Google+

-

YouTube (videos only)

-

Tumblr (videos only)

-

Jebkura vietne, kas izmanto Piwigo fotogrāfiju galerijas programmatūru (tikai fotogrāfijas)

-
- -

To publish selected photos in a collection, choose EditPreferences and - click on the Plugins tab to enable the plugin for the service you want to publish to. Next, choose, - FilePublish, press the Publish toolbar button or use CtrlShiftP. - You will see a dialog that lets you select a publishing service. You will then need to log in or create an account.

- -

Lai publicētu Facebook vietnē Shotwell Facebook lietotnei vajag īpašas atļaujas. Šīs atļaujas ir jādod tikai vienreiz, kad asociējat Shotwell ar savu Facebook kontu.

-

Jūs varēsiet publicēt attēlus ar tām tiesībām, kādas sniedzāt Shotwell Facebook lietotnei

- -

Līdzīgi, publicēšanai Flickr vietnē vajag ierakstīties un ļaut Shotwell savienojumiem piekļūt jūsu kontam.

- -

Ja jums ir Google konts, bet vēl neesat izmantojis Picasa Web Albums, jums vienreiz jāierakstās Picasa, izmantojot pārlūku, pirms varēsiet publicēt šajā pakalpojumā.

-
diff --git a/help/lv/view-displaying.page b/help/lv/view-displaying.page deleted file mode 100644 index a7f2695..0000000 --- a/help/lv/view-displaying.page +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - Uzziniet par dažādiem veidiem, kā skatīt fotogrāfijas — režģī, aizpildot galveno logu vai aizpildot visu ekrānu. - - - - - Fotogrāfiju skati - -

Izvēloties kādu kolekciju sānu joslā, Shotwell attēlos visas šīs kolekcijas fotogrāfijas galvenajā loga daļā. Loga apakšējā labajā pusē ri slīdnis, ar ko var pielāgot sīktēlu izmēru. Varat sīktēlu izmēru pielāgot arī ar pluss un mīnuss taustiņiem (+ un -) vai spiežot Ctrl un kustinot peles riteni.

- -

Jūs varat arī skatīt fotogrāfijas pilnekrāna režīmā, uz tām dubultklikšķinot. Šajā režīmā jūs varat pāriet starp fotogrāfijām, izmantojot bultiņu pogas. Lai atgrieztos kolekcijā, dubultklikšķiniet uz fotogrāfijas vai spiediet Esc.

- -

Kad attēls tiek skatīts pilnekrāna režīmā, rīkjoslā esošais slīdnis nosaka tuvinājumu. Jūs varat panoramēt, sagrābjot un velkot jebkuru vietu fotogrāfijā. Jūs varat arī mainīt mērogu, izmantojot peles riteni vai spiežot šīs saīsnes: Ctrl0 lai redzētu pilnekrānā, Ctrl1 100% tuvinājumam (1 fotogrāfijas pikselis = 1 ekrāna pikseli), un Ctrl2 200% tuvinājumam (1 fotogrāfijas pikselis = 2x2 ekrāna pikseļiem).

- -

Shotwell piedāvā iespēju attēlot fotogrāfijas pilnekrāna režīmā. Izvēlieties SkatsPilnekrāns vai spiediet F11. Lai redzētu pilnekrāna rīkjoslu, novietojiet peli ekrāna apakšpusē. Rīkjosla piedāvā pogas, ar kurām var pārvietoties pa kolekciju, nofiksēt rīkjoslu (lai tā nepazūd, kad pārvietojat peli kur citur), un pamest pilnekrāna skatu.

- -
-Video atskaņošana -

Dubultklikšķinot uz video, Shotwell palaidīs ārējo video atskaņotāju, lai atskaņotu video. Pašlaik nevar attēlot video Shotwell pilnekrāna režīmā, vai atskaņot video pašā Shotwell.

-
- -
diff --git a/help/lv/view-information.page b/help/lv/view-information.page deleted file mode 100644 index ff77208..0000000 --- a/help/lv/view-information.page +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - Skatīt sīkāku informāciju par fotogrāfijām, piemēram, kameras ekspozīcijas režīmu. - - - - - Pamata un paplašinātā informācija - -

Pamatinformācijas rūts parādās sānu joslas apakšpusē un attēlo īsu kopsavilkumu par izvēlētajām fotogrāfijām. Ja nav izvēlētu fotogrāfiju, tas attēlo visas kolekcijas kopsavilkumu. Jūs varat pārslēgt šīs rūts attēlošanu, izmantojot komandu SkatsPamatinformācija

- -

Peldošais paplašinātās informācijas logs attēlo vairāk informācijas par izvēlēto fotogrāfiju. SkatsPaplašināta informācija komanda vai CtrlShiftX pārslēdz šī loga attēlošanu.

- -
diff --git a/help/lv/view-sidebar.page b/help/lv/view-sidebar.page deleted file mode 100644 index 16e5a45..0000000 --- a/help/lv/view-sidebar.page +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Sānjosla loga kreisajā pusē parāda dažādus jūsu bibliotēkas skatus. - - - - - - - - - - - - - Sānjosla - -

Sānjosla kreisajā Shotwell loga pusē uzskaita vairākus jūsu bibliotēkas skatus. Lai gan varat redzēt vienu un to pašu fotogrāfiju dažādos skatos, cietajā diskā tā tiek saglabāta tikai vienā vietā.

- -

Skatā Pēdējais imports ir redzamas fotogrāfijas, kas ir importētas neatkarīgi no tā, vai tās ir importētas no F-Spot, kameras, atmiņas kartes vai cietā diska.

- -

Ar karodziņu uzrāda visas fotogrāfijas, kas ir iepriekš atzīmētas ar karodziņu.

- -

Saglabātie meklējumi jums ļauj kārtot bibliotēku pēc vairākiem kritērijiem.

- -

Mapē Notikumi ir atrodami visi notikumi jūsu bibliotēkā. Notikums ir fotogrāfiju kopums, kas ir uzņemts aptuveni vienā laikā.

- -

Mapē Tagi ir visi tagi, kas ir piešķirti fotogrāfijām. Fotogrāfijām var būt piešķirti vairāki tagi. Sānu joslā spiežot uz taga nosaukuma, redzēsiet visas fotogrāfijas, kurām ir šie tagi.

- -
diff --git a/help/meson.build b/help/meson.build index 4d4a172..b5c15b4 100644 --- a/help/meson.build +++ b/help/meson.build @@ -49,5 +49,4 @@ yelp_media = [ gnome.yelp('shotwell', sources : yelp_pages, media : yelp_media, - symlink_media : true, - languages : [ 'cs', 'de', 'el', 'es', 'hu', 'lv', 'pt_BR', 'sv']) + symlink_media : true) diff --git a/help/pt_BR/edit-adjustments.page b/help/pt_BR/edit-adjustments.page deleted file mode 100644 index 1f5205f..0000000 --- a/help/pt_BR/edit-adjustments.page +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - Mude a exposição, saturação, matiz/coloração, temperatura, e sombras de uma foto. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Ajustes de cor - -

O botão Ajustar abre uma janela com um histograma e controles deslizantes para ajustar a exposição, saturação, matiz/coloração, temperatura, e sombras de uma foto. O histograma também tem controles deslizantes para reduzir os limiares de intensidade superior e inferior da fotografia, ampliando o contraste da faixa intermediária.

- -

O botão Melhorar ajusta o histograma e sombras automaticamente para melhorar a qualidade de uma foto.

- -

Após ajustar as cores e o contraste da foto, clique em OK para salvar as alterações. O botão Reiniciar irá retornar a imagem ao seu estado original. O botão Cancelar descarta todas as mudanças que você fez.

- -
- O que os ajustes fazem? - - - Exposição -

Altera o brilho para fazer parecer que a foto foi exposta por um tempo maior ou menor. Utilize este ajuste para corrigir fotografias sub ou sobre-expostas.

-
- - Contrast -

Changes the contrast of a photo. Use it to correct flat-looking photos or photos where the difference between bright and dark spots seems to big.

-
- - Saturação -

Ajusta o quanto vivas parecem as cores. Se a foto parece cinzenta e com cores pouco vivas, tente aumentar a saturação. Se as cores parecem muito ousadas, tente diminuí-la.

-
- - Colorir -

Este ajuste tinge a foto com uma cor. É útil para corrigir as fotos tiradas com a configuração de equilíbrio de brancos errado, que ficam com cores que não parecem naturais. Por exemplo, fotos tiradas ao ar livre com o balanço de brancos definido como "Incandescente" ficam com um tom azulado.

-
- - Temperatura -

Ajusta a forma como a foto parece "quente" ou "fria". Use-o para fazer que cenas frias e deprimentes pareçam mais animadas, por exemplo.

-
- - Sombras -

Esse ajuste faz com que áreas de sombra pareçam mais claras. Use-o para fazer os detalhes mais visíveis se eles estão sob de uma sombra.

-
- - Limiares de intensidade (cantos do histograma) -

Esses controles alteram a forma como o branco é claro e o quão escuro é o preto. Use-os para alterar o contraste da foto. Fotos que parecem desgastadas deverão se beneficiar muito com a alteração dessas configurações.

-
-
-
- -
diff --git a/help/pt_BR/edit-crop.page b/help/pt_BR/edit-crop.page deleted file mode 100644 index 7b9b602..0000000 --- a/help/pt_BR/edit-crop.page +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - Melhore a composição de uma foto cortando partes dela. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Cortando - -

Para reduzir a área de uma foto e concentrar a atenção do espectador em uma parte menor dela, use a ferramenta de cortar. A ferramenta de cortar estará disponível apenas nos modos de janela toda ou tela cheia.

- - - -

Clique duas vezes em uma foto para entrar no modo janela toda e use o botão Cortar na barra de ferramentas.

-
- -

Um retângulo branco, o "retângulo de corte", aparecerá sobre a foto. A parte mais clara da foto dentro do retângulo de corte representa o que a foto parecerá quando você cortá-la.

-
- -

Arraste o retângulo para posicioná-lo e ajuste seu tamanho, arrastando suas bordas. Quando você move ou ajustar o tamanho do retângulo de corte, aparecem quatro linhas dentro dele, como uma grade de jogo da velha: são as linhas da regra dos terços.

-

Você também pode restringir o retângulo de corte para um de muitos tamanhos comuns. Escolha um tamanho a partir da lista que se adapte às suas necessidades. Se você pressionar o botão ao lado da lista, a orientação da restrição irá mudar (de paisagem para retrato, e vice-versa).

-
- -

Após acertar o seu retângulo de corte, aplica a alteração pressionando o botão Cortar. O Shotwell irá mostrar a foto cortada.

-
- -

Se você mudar de ideia, pressione o botão Cortar novamente e ajuste o corte.

-

Se você pressionar Cancelar ao invés de Aplicar, o Shotwell voltará às dimensões anteriores da foto.

-
-
- -
- O que é a regra dos terços? -

A regra dos terços ajuda você a escolher uma composição agradável para uma foto.

-

Imagine que a cena é dividida em uma grade de 3x3 por duas linhas verticais igualmente espaçadas e duas linhas horizontais igualmente espaçadas. De acordo com a regra, você terá mais chances de obter uma composição agradável se você alinhar as características principais (como o horizonte, ou corpo de uma pessoa) com uma das linhas. Prestar atenção ao caminho que o fluxo de recursos faz de uma parte da grade para outra também pode ajudar.

-

Cortar uma foto de acordo com a regra dos terços geralmente resulta em uma imagem mais atraente.

- -

Recortar uma foto, usando a "regra dos terços" para melhorar a composição.

-
-
-
diff --git a/help/pt_BR/edit-date-time.page b/help/pt_BR/edit-date-time.page deleted file mode 100644 index 5fb1055..0000000 --- a/help/pt_BR/edit-date-time.page +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - Corrija a data e a hora de fotos, se essas informações estiverem incorretas. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Ajustando a data e a hora de fotos - -

Para ajustar a data e a hora das fotos, selecione as fotos que você gostaria de ajustar, use o item do menu FotosAjustar data e hora... e selecione uma nova data e hora.

- -

Se você estiver alterando a data e hora de várias fotos de uma só vez, você pode optar por mover a data e hora de todas as fotos pela mesma quantidade de tempo ou por definir todas as fotos na mesma data e hora.

- -

Por padrão, a data e a hora são só alterados dentro do Shotwell. Você também pode optar por modificar a data e hora no arquivo original, mas isso não pode ser desfeito depois de sair do Shotwell.

- -
diff --git a/help/pt_BR/edit-enhance.page b/help/pt_BR/edit-enhance.page deleted file mode 100644 index ad7de85..0000000 --- a/help/pt_BR/edit-enhance.page +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - Deixe o Shotwell melhorar o brilho e o contraste de uma foto automaticamente. - - - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Automelhoramento - -

Clicando no botão Melhorar é uma maneira rápida de ajustar automaticamente o brilho e o contraste da foto. O resultado, normalmente, será uma foto com exposição correta. Você também pode usá-la como ponto de partida e, em seguida, melhorar os ajustes clicando sobre o botão de Ajustar.

-
diff --git a/help/pt_BR/edit-external.page b/help/pt_BR/edit-external.page deleted file mode 100644 index 6c0fe3c..0000000 --- a/help/pt_BR/edit-external.page +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - Use um programa diferente para editar fotos. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Editando fotos com um programa externo - -

Você pode querer ou precisar usar um editor externo para fazer trabalhos adicionais nas fotos. Se instalados, GIMP e UFRaw são os editores externos padrão para edição de fotos e arquivos RAW, respectivamente. Se esses programas não estão instalados, você deve selecionar seus editores preferidos usando o item do menu EditarPreferências e selecionando editores na lista dos aplicativos instalados.

- -

Quando os editores forem definidos, selecione uma foto e use o item de menu FotosAbrir com o editor externo para abrir a foto com o editor externo. Da mesma forma, se a foto original é um arquivo RAW, use o item de menu FotosAbrir com editor de RAW para editar o arquivo RAW diretamente com o editor definido.

- -

Ao concluir suas edições e salvar o arquivo, o Shotwell irá detectar as alterações e atualizar a foto. Quando as edições externas forem feitas, mantenha pressionada a tecla Shift na vista de "toda janela" para mostrar a foto original, ao invés da editada.

- -

Revertendo à original vai apagar todas as edições externas.

- - -

Se você editar externamente uma foto RAW e salvar o resultado em outra imagem, tal como um JPEG ou PNG, o Shotwell não conseguirá determinar automaticamente que a foto RAW original e a nova imagem devem ser emparelhadas.

- -

Se você quer usar a imagem resultante dentro do Shotwell, você precisa importá-la.

-
-
diff --git a/help/pt_BR/edit-nondestructive.page b/help/pt_BR/edit-nondestructive.page deleted file mode 100644 index 9f5d2fd..0000000 --- a/help/pt_BR/edit-nondestructive.page +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - O Shotwell é um editor de foto não-destrutivo - ele não modifica suas fotos originais. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - O que acontece com o arquivo original quando eu editar uma foto no Shotwell? - -

O Shotwell é um editor de foto não-destrutivo. Ele não modifica suas fotos originais. Ou seja, se você cortar uma foto ou ajustar suas cores, o arquivo de foto no disco permanece não alterado. O Shotwell armazena as suas edições em um banco de dados os aplica em tempo real, quando necessário. Isto significa que você pode desfazer quaisquer alterações que você faz para uma foto.

- -

Para ver a foto antes de suas alterações, pressione a tecla Shift. A foto original será exibida enquanto você mantiver pressionada a tecla.

- -

Note que o Shotwell pode, opcionalmente, gravar metadados (como etiquetas e títulos) nos arquivos originais das fotos. Para obter mais informações, consulte a seção Arquivos de fotos.

- -
diff --git a/help/pt_BR/edit-redeye.page b/help/pt_BR/edit-redeye.page deleted file mode 100644 index 24c73cf..0000000 --- a/help/pt_BR/edit-redeye.page +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - Corrija fotos onde as pessoas ficam com os olhos vermelhos por causa do flash da câmera. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Removendo olhos vermelhos - -

Olhos vermelhos ocorrem quando o flash da câmera reflete a pupila do olho de alguém. Para eliminar este efeito em uma foto, use a ferramenta de remoção de olhos vermelhos.

- - -

Clique Olhos vermelhos. Um círculo aparecerá na foto.

-
- -

Posicione o círculo sobre a pupila afetada, ajuste seu tamanho com o controle deslizante, e pressione Aplicar. A vermelhidão será removida.

-
- -

Repita esse processo para todas as pupilas afetadas na foto. Clique em Fechar quando terminar.

-
-
-
diff --git a/help/pt_BR/edit-rotate.page b/help/pt_BR/edit-rotate.page deleted file mode 100644 index 98916f2..0000000 --- a/help/pt_BR/edit-rotate.page +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - Clique no botão Girar, ou use um dos comandos no menu Foto. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Girando ou invertendo uma foto - -

Você pode girar suas fotos para a esquerda e para a direita (sentido horário e anti-horário) com o botão Girar da barra de ferramentas da maioria das visões. Você também pode inverter/espelhar uma foto, tanto horizontalmente quanto verticalmente.

- -

Para girar à direita, clique no botão Girar. Para girar à esquerda, mantenha pressionada a tecla Ctrl e clique no botão Girar. Ambos os comandos estão disponíveis também no menu Fotos. Como alternativa, use os seguintes atalhos de teclado:

- -

girar à esquerda: ShiftCtrlR ou [

-

girar à direita: CtrlR ou ]

-
-

Para espelhar uma foto horizontalmente, use o item Inverter horizontalmente do menu Fotos. Para espelhar uma foto verticalmente, use o item Inverter verticalmente do mesmo menu.

- - -

Se você selecionar mais de uma foto, você pode girar todas ao mesmo tempo.

-
- -
diff --git a/help/pt_BR/edit-straighten.page b/help/pt_BR/edit-straighten.page deleted file mode 100644 index 1b588f4..0000000 --- a/help/pt_BR/edit-straighten.page +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Endireitar uma foto para que seu horizonte pareça nivelado. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Endireitando fotos - -

A ferramenta de endireitar permite que as fotos sejam nivelados e endireitadas. A ferramenta de endireitar só está disponível nos modos de janela toda ou tela cheia.

- - - -

Clique em Endireitar. O controle de endireitar aparecerá. Como alternativa, use o atalho de teclado CtrlA.

-
- -

Arraste o controle deslizante para atingir o grau desejado de endireitamento.

-
- -

Pressione Endireitar quando tiver terminado.

-
-
- -
diff --git a/help/pt_BR/edit-undo.page b/help/pt_BR/edit-undo.page deleted file mode 100644 index 32a2a50..0000000 --- a/help/pt_BR/edit-undo.page +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - Retorne uma foto para sua forma original, não editada. - - - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Desfazendo alterações - -

Como o Shotwell é um editor de foto não-destrutivo, você pode desfazer quaisquer alterações que você fez para uma foto.

- -

Para ver a foto antes de suas alterações, pressione a tecla Shift. A foto original será exibida enquanto você mantiver pressionada a tecla.

- -

Para desfazer todas as alterações feitas a uma foto, use o item de menu FotosReverter para o original. A única exceção é que os ajustes de hora e data não serão revertidos.

- -
diff --git a/help/pt_BR/formats.page b/help/pt_BR/formats.page deleted file mode 100644 index e20228e..0000000 --- a/help/pt_BR/formats.page +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - O Shotwell oferece suporte a arquivos de fotos JPEG, PNG, TIFF, BMP e RAW e arquivos de vídeo. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Suporte a formatos de foto e vídeo - -

Shotwell supports JPEG, PNG, TIFF, BMP and RAW photo files. Shotwell does not yet support other graphics format such as GIF.

- -

Suporte ao formato RAW do Shotwell é limitado. Quando você ver uma foto RAW, na verdade você está vendo um JPEG derivado da foto RAW, e não a imagem RAW. Além disso, o edição RAW não é totalmente de 16 bits - você só pode exportar fotos editadas como arquivos de 8 bits. Todos os formatos aos quais há suporte podem ser usados na exportação (JPEG, PNG, TIFF e BMP).

- -

For more information about RAW-format photos in Shotwell, please see -the RAW section. -

- -

O Shotwell também oferece suporte a arquivos de vídeo em qualquer formato reconhecido pela biblioteca de mídia GStreamer no sistema no qual o Shotwell está em execução. Isso normalmente inclui os seguintes formatos, entre outros:

- -

Formatos de contêineres: Ogg, QuickTime, MP4, AVI.

-

Codificadores: Theora, QuickTime, MPEG-4, Motion JPEG. Note que alguns sistemas operacionais podem não incluir todos os listados aqui devido a restrições legais ou de licenciamento.

-
- -

O Shotwell oferece suporte a arquivos de fotos e vídeos, mas, para simplificar, esta documentação utiliza apenas o termo "fotos" na maioria dos lugares. A maioria das operações no Shotwell se aplicam à fotos e vídeos, como eventos, marcações, avaliações, atribuição de etiquetas e publicações.

- -
diff --git a/help/pt_BR/import-camera.page b/help/pt_BR/import-camera.page deleted file mode 100644 index 43fbbab..0000000 --- a/help/pt_BR/import-camera.page +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - Copie fotos de uma câmera digital. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Importando fotos de uma câmera - -

Para importar fotos de uma câmera digital:

- - - -

Conecte a câmera ao computador e ligue-a. O Shotwell irá detectá-la e mostrá-la na barra lateral.

-
- -

Selecione a câmera na barra lateral. Pré-visualizações das fotos na câmera serão exibidas.

-
- -

Se preferir, você pode escolher um conjunto de fotos para importar. Para isso, mantenha pressionada a tecla Ctrl e clique para selecionar cada foto. Você pode segurar a tecla Shift e clicar para selecionar um intervalo de fotos.

-
- -

Clique em Importar selecionadas ou em Importar todas. As fotos serão copiadas da câmera e gravadas em seu computador.

-
-
- -

Quando importação estiver concluída, você pode selecionar Última importação na barra lateral para ver as fotos importadas. A lista de eventos também irá mostrar novas entradas para as datas correspondentes às fotos importadas.

-
diff --git a/help/pt_BR/import-file.page b/help/pt_BR/import-file.page deleted file mode 100644 index 29436ae..0000000 --- a/help/pt_BR/import-file.page +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - Importe fotos existentes no computador. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Importando de seu disco rígido - -

Para importar arquivos de seu disco rígido para o Shotwell, basta arrastá-los a partir do seu navegador de arquivos para a janela do Shotwell.

- -

Alternatively, click FileImport From Folder... and select the folder containing the photos you want to import. If you do not want Shotwell to recurse into subfolders while importing, you can uncheck the Recurse Into Subfolders checkbox on the bottom of the file dialog.

- -

O Shotwell irá perguntar se você deseja copiar os arquivos de fotos para a pasta de biblioteca (geralmente este é a pasta Imagens no seu diretório pessoal) ou importá-los do lugar, sem copiar os arquivos.

- -

Se você manter pressionada a tecla Ctrl enquanto arrasta as fotos para o Shotwell, ele irá copiar as fotos para a pasta de biblioteca sem te perguntar. Da mesma forma, se você segurar a tecla CtrlShift enquanto arrasta fotos para o Shotwell, ele vai importar as fotos do lugar sem copiá-las, sem te perguntar.

- -

Quando importação estiver concluída, você pode selecionar Última importação na barra lateral para ver as fotos importadas. A lista de eventos também irá mostrar novas entradas para as datas correspondentes às fotos importadas.

- -
diff --git a/help/pt_BR/import-memorycard.page b/help/pt_BR/import-memorycard.page deleted file mode 100644 index 49d1927..0000000 --- a/help/pt_BR/import-memorycard.page +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - Importe fotos do cartão de memória de uma câmera digital. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Importando fotos de um cartão de memória - -

Para importar fotos do cartão de memória de uma câmera:

- - - -

Coloque o cartão no leitor de cartões de memória do computador. Certifique-se de que o leitor de cartão está corretamente conectado ao computador e ligado.

-
- -

O cartão de memória será detectado automaticamente.

-
- -

Siga as instruções para importar fotos de seu disco rígido. Se você usar o menu ArquivoImportar da pasta..., o cartão de memória deve ser visível como uma pasta na barra lateral da janela de seleção de arquivos.

-
-
- -

O Shotwell pode importar fotos de qualquer cartão de memória compatível com o seu leitor de cartões.

- -

Se o cartão não for detectado automaticamente, o seu leitor de cartões pode não ter sido reconhecido. Tente desconectá-lo e, em seguida, ligá-lo novamente. Se isso não funcionar, você ainda deve conseguir importar fotos conectando sua câmera no computador.

- -
diff --git a/help/pt_BR/index.page b/help/pt_BR/index.page deleted file mode 100644 index 559ea15..0000000 --- a/help/pt_BR/index.page +++ /dev/null @@ -1,52 +0,0 @@ - - - - - Shotwell - - Jim Nelson - jim@yorba.org - Allison Barlow - allison@yorba.org - Robert Ancell - robert.ancell@canonical.com - Peter Smith - pdo.smith@gmail.com - Phil Bull - philbull@gmail.com - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - - <media type="image" src="figures/shotwell_logo.png"/>Gerenciador de fotos Shotwell - -
- Importando fotos -
- -
- Visualizando fotos -
- -
- Organizando as fotos -
- -
- Editando fotos -
- -
- Compartilhando fotos -
- -
- Outras funcionalidades -
-
diff --git a/help/pt_BR/organize-event.page b/help/pt_BR/organize-event.page deleted file mode 100644 index f7db72e..0000000 --- a/help/pt_BR/organize-event.page +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - Agrupa fotos que foram tiradas na mesma época. Saiba como mudar o nome, mesclar e classificar eventos. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Eventos - -

Um evento é um grupo de fotos que foram tiradas aproximadamente ao mesmo tempo. Quando você importar fotos, o Shotwell verifica a data em que cada foto foi tirada e agrupa as fotos em eventos.

- -

Clique na visão Eventos da barra lateral para ver as suas fotos organizadas por data. Se você selecionar um mês ou um ano a partir da barra lateral, uma lista de eventos será exibido na janela principal. Clique duas vezes em um evento para ver todas as fotos que dele.

- -

Se uma foto não tem nenhuma informação de data/hora incorporadas, o Shotwell não consegue colocá-la automaticamente em um evento. Neste caso, a foto aparecerá no item Nenhum Evento da visão de eventos, acessível na barra lateral. Você ainda pode mover a foto para outro evento, se necessário, como descrito abaixo.

- -
- Renomeando eventos - -

Para dar a um evento um nome ao invés de se referir a ele pela sua data, selecione o evento e use o item de menu EventosRenomear evento... e digite um novo nome para o evento. Outras formas de mudar o nome de um evento é pressionar a tecla F2 ou clicar com o botão direito (e usar o menu de contexto) em seu nome na barra lateral; digite um novo nome e pressione Enter.

-
- -
- Movendo fotos entre eventos - -

As fotos são inicialmente agrupadas em eventos por data, mas você pode mover fotos entre eventos. Para isso, arraste qualquer foto e solte-a sobre outro evento na barra lateral.

-
- -
- Criando e unindo eventos -

Para criar um novo evento, selecione as fotos dele o novo evento e use o item do menu EventosNovo evento.

-

Para unir eventos, selecione Eventos da barra lateral e, mantendo a tecla Ctrl pressionada clique sobre os eventos que deseja unir na janela principal. Com os eventos selecionados, use o item do menu EventosUnir eventos.

-
- -
- Ordenando Eventos - -

Os eventos são exibidos em uma árvore na barra lateral, organizados pelo ano e mês da foto mais antiga no evento. Para alterar a ordenação dos eventos, use o item do menu VerOrdenar eventos e selecione Ascendente ou Descendente.

- -
- -
- Mude a foto usada para representar cada evento - -

Se você selecionar o item Eventos na barra lateral, você verá uma única foto que representa cada evento. Ela é chamada de "foto chave" do evento (também chamada de "foto de capa" em alguns serviços de publicação).

- -

Por padrão, o Shotwell usa a primeira foto de cada evento como a sua foto chave. Para usar uma foto de chave diferente, selecione a foto e use o item do menu FotosDesignar foto como chave para evento.

- -
- -
diff --git a/help/pt_BR/organize-flag.page b/help/pt_BR/organize-flag.page deleted file mode 100644 index c1e757e..0000000 --- a/help/pt_BR/organize-flag.page +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - Marque fotos para sinalizá-las como algo especial ou para trabalhar com elas depois conjuntamente. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Marcando fotos - -

O Shotwell permite que você marque fotos. Quando uma foto é marcada, um pequeno ícone de bandeira aparece no canto superior direito dela. Você pode selecionar o item Marcada na barra lateral para ver todas as fotos que foram marcadas.

- -

Marcar uma foto a sinaliza como "especial". Você pode interpretar isso como quiser. Por exemplo, você pode marcar todas as fotos que precisam de ajuste visual ou todas as fotos que você deseja mandar para um amigo.

- -

Marcar também é útil para sinalizar todas as fotos conjunto a ser trabalhado. Por exemplo, você pode selecionar o modo de exibição de fotos Marcadas e, em seguida, enviar elas para um serviço de publicação.

- -
- Para marcar ou desmarcar uma foto -

Para marcar ou desmarcar de uma foto, clique com o botão direito do mouse na foto e use os itens Marcar ou Desmarcar do menu de contexto. Ou use as teclas de atalho CtrlG ou /.

-
- -
diff --git a/help/pt_BR/organize-rating.page b/help/pt_BR/organize-rating.page deleted file mode 100644 index d9f91fd..0000000 --- a/help/pt_BR/organize-rating.page +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Dê às fotos uma avaliação entre 1 e 5 estrelas. Você pode tirar fotos ruins da visão. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Avaliações -

Você pode atribuir a cada foto uma avaliação de 1-5 estrelas, ou pode classificá-la como Rejeitada, caso em que o Shotwell irá esconder a foto por padrão.

- -

Você pode avaliar uma foto ou um conjunto de fotos com uma das seguintes formas:

- - -

Selecione a(s) foto(s) e, em seguida, defina uma avaliação usando o item do menu FotosAvaliar.

-

Clique com o botão direito do mouse sobre a(s) foto(s) e use o item "Avaliar" do menu de contexto.

-

Selecione a(s) foto(s) e, em seguida, pressione qualquer uma das teclas de atalho 1, 2, 3, 4 ou 5 para atribuir uma avaliação. Ou pressione 9 para marcar a(s) foto(s) como "rejeitada(s)" ou 0 para apagar a(s) avaliações(s).

-
- -

Normalmente o Shotwell exibe todas as fotos exceto fotos rejeitadas. Você pode definir um filtro de classificação diferente usando o item de menu VerFiltrar fotos - por exemplo, você pode exibir somente fotos avaliado com 3 estrelas ou mais, ou você pode exibir todas as fotos, incluindo aquelas marcadas como "rejeitadas". A barra de pesquisa do Shotwell aparece mostrando o filtro atual e também pode ser usada para alterá-lo.

- -

O Shotwell normalmente exibe a avaliação de cada foto em seu canto inferior esquerdo. Você pode desativar a exibição das avaliações usando o a opção do menu VerAvaliações.

- -

Você pode aumentar ou diminuir a avaliação de uma foto usando o item do menu FotoAvaliarAumentar e FotoAvaliarDiminuir, ou os atalhos de teclado < e >.

-
diff --git a/help/pt_BR/organize-remove.page b/help/pt_BR/organize-remove.page deleted file mode 100644 index d55c9fc..0000000 --- a/help/pt_BR/organize-remove.page +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - Remova fotos da biblioteca, ou apague-as do seu computador. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Removendo e apagando fotos - -

Você pode remover fotos de sua biblioteca e/ou apagá-las de seu disco rígido.

-

Processo de exclusão

-

Este diagrama mostra como uma foto, quando excluída, é primeiro colocado na lixeira do Shotwell. Se você excluí-la da lixeira do Shotwell, ela é colocado na lixeira do computador. Se você apagá-la da lixeira do seu computador a foto é finalmente e irremediavelmente apagada do seu computador.

-
- Removendo fotos da biblioteca -

Selecione as fotos para remover use o item do menu EditarMover para a lixeira (você também pode pressionar a tecla Delete). As fotos serão movidos de sua biblioteca para a Lixeira do Shotwell.

-

Se você quiser remover fotos do Shotwell sem passar pela lixeira, basta selecionar as fotos a remover e usar o item do menu EditarRemover da biblioteca. Os arquivos vão continuar no seu disco rígido.

-
- -
- Esvaziando a lixeira ou restaurando itens -

Selecione a lixeira na barra lateral e o Shotwell exibirá todas as fotos que foram marcadas para remoção ou exclusão. Na visão da lixeira, os seguintes comandos estarão disponíveis:

- - Apagar

Remove as fotos selecionadas da lixeira.

- Restaurar

Restaura as fotos selecionada para biblioteca do Shotwell.

- Esvaziar lixeira

Remove todas as fotos da lixeira.

-
-
- -
- Excluindo arquivos ou limpando a lixeira -

Ao excluir arquivos da lixeira (ou esvaziá-la), você terá as seguintes opções:

- - Remover da biblioteca

Remove fotos da biblioteca, mas deixa seus arquivos em sua localização no computador.

- Remover e apagar arquivo(s)

Remove arquivos da biblioteca e apaga do seu computador.

- Cancelar

Não faz nada.

-
-
- -
diff --git a/help/pt_BR/organize-search.page b/help/pt_BR/organize-search.page deleted file mode 100644 index 52efa2b..0000000 --- a/help/pt_BR/organize-search.page +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - Encontre fotos e vídeos em sua coleção por vários critérios. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Pesquisando - -

Há duas maneiras de pesquisar no Shotwell: usando a barra de pesquisa, e com uma pesquisa salva. A barra de pesquisa permite-lhe filtrar rapidamente os itens da visão atual sob determinados critérios. As pesquisa salvas apresentam critérios de pesquisa mais complexos e ficam na barra lateral depois de criadas.

- - - -
- Pesquisa salva -

Uma pesquisa salva persiste entre as sessões do Shotwell, e é atualizada como fotos e vídeos adicionados, removidos ou alterados de sua biblioteca.

- -

Crie uma nova pesquisa salva usando o item do menu EditarNova pesquisa salva... ou pressionando as teclas CtrlS. A caixa de diálogo exibida permite que você digite um nome para a pesquisa e selecionar como são verificadas as combinações dos critérios nas linhas seguintes: "todos", "qualquer" ou "nenhum".

- -

Cada linha representa um critério de pesquisa. Use o botão + para adicionar mais linhas, e o botão - da direita das linhas para removê-las. Do lado esquerdo de cada linha há listas para selecionar o tipo da pesquisa. O botão OK só fica disponível quando os critérios são válidos.

-
- -
diff --git a/help/pt_BR/organize-tag.page b/help/pt_BR/organize-tag.page deleted file mode 100644 index 8b2fdf7..0000000 --- a/help/pt_BR/organize-tag.page +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - Organize suas fotos com rótulos. - - - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Etiquetando fotos - -

Você pode atribuir uma ou mais etiquetas para as fotos selecionadas. Uma etiqueta é composta de uma ou mais palavras que serão associadas às fotos.

- -

Para adicionar novas etiquetas nas fotos, selecione as fotos que você gostaria de etiquetar, e:

- - -

Use o item de menu EtiquetasAdicionar etiquetas....

-

Pressione as teclas CtrlT.

-

Arraste as fotos selecionadas até etiqueta desejada, na barra lateral.

-
- -

Quando você usa o CtrlT ou EtiquetasAdicionar etiquetas... você poderá digitar os nomes de uma ou mais etiquetas, separados por vírgulas. Depois de ter criado uma etiqueta, você pode renomeá-la selecionando essa etiqueta na barra lateral e escolher EtiquetasRenomear etiqueta "[nome]"..., ou clicar com o botão direito nela e usar o item Renomear... no menu de contexto, ou ainda clicar duas vezes sobre a etiqueta na barra lateral.

- -

Para alterar quais as etiquetas que estão associados a uma determinada foto, selecione a foto e use o item de menu EtiquetasModificar etiquetas... ou clique com o botão direito do mouse na foto e use o item do menu de contexto Modificar etiquetas... e altere a lista separada por vírgulas. Para remover uma etiqueta de uma ou mais fotos, selecione primeiro a etiqueta na barra lateral, em seguida selecione as fotos de que você deseja tirar a etiqueta, e use o item de menu EtiquetasRemover a etiqueta "[nome]" das fotos ou clique com o botão direito sobre as fotos e use o item Remover a etiqueta "[nome]" das fotos do menu de contexto.

- -

Para apagar uma etiqueta completamente, selecione a etiqueta na barra lateral e use o item de menu EtiquetasApagar etiqueta "[nome]" ou clique com o botão direito na etiqueta e use o item Apagar etiqueta "[nome] do menu de contexto.

- -

Quando você cria uma etiqueta, ela aparece na barra lateral sob o item Etiquetas, que não aparece se não existe pelo menos uma etiqueta. As fotos podem ter várias etiquetas associadas a elas, e quando você clicar sobre o nome de uma etiqueta na barra lateral, você vai ver todas as fotos associadas a essa etiqueta.

- -
- Etiquetas hierárquicas -

O Shotwell oferece suporte a hierarquia entre etiquetas. Você pode reorganizar suas etiquetas arrastando e soltando uma etiqueta sobre outra. Para criar uma nova subetiqueta clique com o botão direito numa etiqueta e use o item Nova no menu de contexto.

- -

Etiquetas hierárquica ajudam a organizar sua lista de etiquetas da forma que melhor corresponder à forma como você trabalha ou pensa; por exemplo, você pode armazenar a localização em etiquetas como "Montanha" ou "Praia" dentro de uma etiqueta-pai "Lugares", que podem ser colocados sob a etiqueta "Férias de Verão".

- -

Note que apagar uma etiqueta-pai também vai apagar suas etiquetas-filhas.

-
-
diff --git a/help/pt_BR/organize-title.page b/help/pt_BR/organize-title.page deleted file mode 100644 index 6db9e9b..0000000 --- a/help/pt_BR/organize-title.page +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Dê títulos às suas fotos. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Títulos - -

A caixa de seleção VerTítulos alterna a exibição de títulos abaixo de cada foto. Por padrão, o título de uma foto é seu nome de arquivo.

- -

Para alterar o título de uma foto, selecione a foto e clique em FotosEditar título..., ou pressione a tecla F2.

- -
diff --git a/help/pt_BR/other-files.page b/help/pt_BR/other-files.page deleted file mode 100644 index f1e85ab..0000000 --- a/help/pt_BR/other-files.page +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - Mantenha a biblioteca do Shotwell sincronizada com os arquivos de seu disco rígido. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Arquivos de fotos - -

Cada foto na biblioteca do Shotwell corresponde a um arquivo armazenado em seu disco rígido. O Shotwell tem várias funcionalidades que te ajudam a manter a biblioteca e os arquivos no disco sincronizados.

- - -
- Usando um padrão de diretórios personalizado -

O Shotwell permite especificar como chama diretórios em sua biblioteca. Você pode fazer isso alterando a Estrutura de diretório e as configurações Padrão na janela Preferências. Você pode usar um padrão na lista, ou escolher Personalizar e digitar o seu próprio.

- -

Os símbolos disponíveis para o padrão de diretório começam com uma % (sinal de porcentagem). Os valores produzidos são dependentes da idioma/região, de modo que você vê no seu computador pode se diferente dos exemplos abaixo.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Símbolo

Significado

Exemplo

%Y

Ano (completo)

2011

%y

Ano (dois dígitos)

11

%d

Dia do mês (com zero inicial)

03

%A

Nome do dia da semana (completo)

Quarta-feira

%a

Nome do dia da semana (abreviado)

Qua

%m

Mês (com zero inicial)

02

%b

Nome do mês (abreviado)

Fev

%B

Nome do mês (completo)

Fevereiro

%I

Hora (formato de 12h)

05

%H

Hora (formato de 24h)

17

%M

Minuto

16

%S

Segundo

30

%p

AM ou PM

PM

- -

- There are other symbols available; please check the manual for strftime by running - the command man strftime if you need one that isn't listed here. -

-
- -
- Importando fotos automaticamente - -

O Shotwell pode importar novas fotos que aparecem no diretório da biblioteca automaticamente. (O diretório da biblioteca é geralmente o diretório Imagens em seu diretório pessoal, você ajustar isso na janela de Preferências.)

- -

Para habilitar a importação automática, marque a opção Monitorar diretório de biblioteca por novos arquivos na janela de Preferências.

- -

O Shotwell também pode seguir links simbólicos dentro de diretórios automaticamente importados.

- -
- -
- Renomeando automaticamente fotos importadas para minúsculas - -

O Shotwell pode mudar automaticamente os nomes dos arquivos de fotos importadas para minúsculas. Para habilitar isso, escolha EditarPreferências e, na janela Preferências, marque a opção Renomear arquivos importados para letra minúscula.

- -
- -
- Gravando os metadados sob demanda - -

Por padrão, o Shotwell não modifica arquivos de fotos, mesmo quando você editar fotos ou alterar suas etiquetas ou títulos. O Shotwell registra essas mudanças apenas no seu próprio banco de dados.

- -

Para alterar esse comportamento, você pode marcar a opção Gravar etiquetas, títulos e outros metadados para arquivos de fotos na janela Preferências. Quando essa opção é ativada, o Shotwell grava os seguintes metadados para a maioria dos arquivos de fotos sempre que você alterá-la no Shotwell:

- - -

títulos

-

etiquetas

-

avaliações

-

informações sobre rotação

-

data/hora

-
- -

O Shotwell armazena essas informações em arquivos de fotos nos formatos EXIF, IPTC e/ou XMP. Note que o Shotwell pode escrever apenas em arquivos de fotos em JPEG, PNG e TIFF, e não em fotos BMP, em fotos RAW ou em arquivos de vídeo.

- -
- -
- Monitoramento em tempo de execução - -

Enquanto o Shotwell é executado, ele percebe as alterações feitas em arquivos de sua biblioteca externamente. Quando uma foto é alterada, o Shotwell relê o arquivo e atualiza a sua visão da foto e de seus metadados.

- -

Note que o Shotwell verifica todos os arquivos de sua biblioteca na inicialização, mas apenas arquivos de fotos contidas no diretório da biblioteca são monitorados em tempo real, após a inicialização. Esperamos remover esta limitação em uma nova versão.

- -
- -
diff --git a/help/pt_BR/other-missing.page b/help/pt_BR/other-missing.page deleted file mode 100644 index c5d9549..0000000 --- a/help/pt_BR/other-missing.page +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - Se o Shotwell não consegue encontrar uma foto em sua biblioteca, ele marca como "faltante" em seu banco de dados. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Fotos faltantes - -

Cada vez que o Shotwell é iniciado, ele verifica se os arquivos de sua biblioteca ainda existem no seu disco rígido. Se o Shotwell perceber que quaisquer arquivos da biblioteca não existem, ele não vai exibi-los nas visões normais eventos e marcações, mas em vez disso vai mostrá-los em uma visão Arquivos faltantes que aparecerá na barra lateral.

- -

Se você não quiser mais que os arquivos que faltam façam parte de sua coleção do Shotwell (talvez porque você os tenha excluídos), vá na visão de Arquivos faltantes, selecione os arquivos e clique em Remover da biblioteca.

- -

Se você tem fotos em um disco removível, como um CD ou pendrives USB, e importá-las para o Shotwell sem copiar os arquivos das fotos para o computador, elas vão ficar como arquivos faltantes se você retirar o disco removível. Consulte para saber como copiar os arquivos de discos removíveis para seu computador.

- -

Se quaisquer arquivos faltantes se tornarem disponíveis novamente, o Shotwell perceber isso na próxima vez que for iniciado. As arquivos vão aparecer novamente nas visões de eventos e marcações.

- -
diff --git a/help/pt_BR/other-multiple.page b/help/pt_BR/other-multiple.page deleted file mode 100644 index 9c33697..0000000 --- a/help/pt_BR/other-multiple.page +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - Você pode abrir o Shotwell com uma biblioteca diferente da normal, usando uma opção de linha de comando. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Múltiplas bibliotecas - -

O Shotwell normalmente armazena seus bancos de dados no diretório ~/.shotwell. Este diretório não contém as fotos, mas o banco de dados neste diretório contém a lista de todas as fotos na biblioteca do Shotwell.

- -

É possível ter várias bibliotecas do Shotwell, cada uma com seu próprio conjunto de fotos. Cada biblioteca tem seu próprio diretório de banco de dados. Para iniciar o Shotwell com uma biblioteca alternativa, basta especificar um diretório de banco de dados em sua linha de comando da seguinte forma:

- - -shotwell -d [diretório-do-banco-de-dados-da-biblioteca] - - -
diff --git a/help/pt_BR/other-plugins.page b/help/pt_BR/other-plugins.page deleted file mode 100644 index 15755ec..0000000 --- a/help/pt_BR/other-plugins.page +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - Estenda as funcionalidades do Shotwell dinamicamente. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Plug-ins -

O Shotwell pode ser usado com plug-ins, que são bibliotecas dinâmicas que podem adicionar suporte para novos destinos de publicação ou novas transições em exibições de slides.

- -

Para ver a lista dos plug-ins instalados, use o menu EditarPreferências e, na janela de Preferências, clique na aba Plug-ins. Você verá a lista dos plug-ins atualmente instalados, cada um com uma caixa de seleção para ativá-lo ou desativá-lo.

- -

A documentação completa de como desenvolver novos plug-ins está disponível em http://redmine.yorba.org/projects/shotwell/wiki/ShotwellArchWritingPlugins

- -
diff --git a/help/pt_BR/pt_BR.stamp b/help/pt_BR/pt_BR.stamp deleted file mode 100644 index e69de29..0000000 diff --git a/help/pt_BR/raw.page b/help/pt_BR/raw.page deleted file mode 100644 index c9b4941..0000000 --- a/help/pt_BR/raw.page +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - Mais informações sobre o suporte de arquivos RAW no Shotwell. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Suporte de arquivos RAW no Shotwell -

Algumas câmeras têm a capacidade de armazenar em um arquivo dados diretamente do sensor e que contém informações adicionais de cor; este formato de arquivo é comumente chamado de 'RAW' ou 'câmera RAW', e o Shotwell também oferece suporte a esse tipo de arquivo.

- -

Como fotos RAW normalmente não podem ser exibidas diretamente, mas precisam ser tratadas antes - precisam da sua informação adicional corretamente interpretada para possibilitar a exibição - a maioria das câmeras incorpora uma imagem JPEG dentro de um arquivo RAW, ou gera uma imagem JPEG junto com o arquivo RAW no momento em que foto é tirada. Este segundo formato é chamado ao longo deste documento como "RAW+JPEG". Se você importar um par de arquivos RAW+JPEG, o Shotwell irá mantê-los emparelhados e tratá-los como um único item na sua biblioteca.

- -

Quando você importa um arquivo RAW, você pode optar por usar a imagem JPEG gerada pela câmera ou uma gerada pelo Shotwell no menu em FotosDesenvolvedor.

- - -

Mudar o desenvolvedor de uma foto fará com que todas as alterações feitas nela pelo Shotwell sejam descartadas.

-
- -

Para publicar ou utilizar uma foto RAW na maioria dos outros softwares, você precisará antes exportá-la. O Shotwell pode exportar suas fotos RAW nos formatos JPEG, PNG, TIFF ou BMP, e, se uma foto RAW for publicada, ela será internamente exportada para JPEG e é imagem exportada que será publicada.

- -
diff --git a/help/pt_BR/running.page b/help/pt_BR/running.page deleted file mode 100644 index f72fe0d..0000000 --- a/help/pt_BR/running.page +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - Encontre o Shotwell no menu de aplicativos, ou inicie-o automaticamente quando você conecta uma câmera. - - - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Executando o Shotwell - -

Uma vez instalado, o Shotwell estará disponível no seu menu Aplicativos sob a categoria Gráficos ou Fotografia.

- -

O Shotwell também pode ser executado automaticamente quando uma câmera é conectada ao computador. Para verificar se o sistema está configurado para executar o Shotwell quando uma câmera é detectada, vá em EditarPreferências em qualquer janela do Nautilus (gerenciador de arquivos) e escolha a guia Mídia. Você verá uma caixa seleção intitulada Fotos: que permite escolher o Shotwell como seu aplicativo para manipular fotos.

- - -

O Shotwell também pode ser executado diretamente de seu diretório de compilação, embora isso só seja recomendado para testar o Shotwell ou para desenvolvedores.

-
- -
diff --git a/help/pt_BR/share-background.page b/help/pt_BR/share-background.page deleted file mode 100644 index b7d68e3..0000000 --- a/help/pt_BR/share-background.page +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Defina o pano de fundo de sua área de trabalho com uma única foto ou uma apresentação de slides de fotos. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Definindo o plano de fundo da área de trabalho - -

Para definir uma única foto como plano de fundo da área de trabalho, selecione a foto e use o item de menu ArquivoDefinir como plano de fundo da área de trabalho.

- -

Você também pode definir o plano de fundo da área de trabalho como uma apresentação de slides de fotos. Para fazer isso, selecione as fotos para a apresentação de slides e use o item de menu ArquivoDefinir apresentação de slides da área de trabalho.... O Shotwell pedirá um intervalo de tempo entre as fotos, que pode ser de até um dia de comprimento. A troca de fotos do fundo da área de trabalho funciona mesmo quando o Shotwell não está em execução.

- -
diff --git a/help/pt_BR/share-export.page b/help/pt_BR/share-export.page deleted file mode 100644 index d4b2144..0000000 --- a/help/pt_BR/share-export.page +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - Copie fotos fora do Shotwell para colocá-las em outro lugar. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Exportando fotos - -

Para exportar fotos do Shotwell via arrastar e soltar, arraste as fotos do Shotwell para uma janela do gerenciador de arquivos ou para sua área de trabalho. Os novos arquivos serão cópias das fotos em sua biblioteca.

- -

Como alternativa, selecione um conjunto de fotos e use o item de menu ArquivoExportar... ou pressione o conjunto de teclas CtrlShiftE. Aparecerá uma janela que lhe permite fazer várias escolhas:

- - -

Um formato para exportar.

- -

Escolha Não modificado para exportar fotos em seu formato original, sem qualquer alteração feita no Shotwell. Fotos RAW serão exportados no formato RAW original.

-

Escolha Atual para exportar fotos, incluindo as edições feitas no Shotwell. Fotos RAW serão exportadas em formato JPEG, se você tiver as editado no Shotwell, ou em seu formato RAW original, caso contrário.

-

Ou você pode escolher um formato de imagem (JPEG, PNG, TIFF, BMP) a ser utilizado para a exportação. As alterações feitas no Shotwell serão incluídas, e o Shotwell vai converter fotos para o formato escolhido.

-
-
-

A qualidade da imagem para a exportação (Baixo, Médio, Alto, ou Máximo).

-

Uma restrição de escala (como o que significa que o Shotwell irá diminuir as fotos quando se necessário), e o número de pixeis desejado.

- -Original size

Image will be exported without any scaling applied

-Longest edge

Image will be exported by having its longest edge scaled to Pixels and the other according to the aspect ratio

-Width

The image width will have its width scaled to the given pixel size and its height according to the aspect ratio. This is equivalent to Longest Edge for landscape pictures.

-Height

The image height will have its height scaled to the given pixel size and its width according to the aspect ratio. This is equivalent to Longest Edge for portrait pictures.

-
-
-

A opção se você deseja exportar metadados, como etiquetas ou avaliações. Isso pode ajudar a manter a sua privacidade, se você tem etiquetas de geolocalização que não devem ser vistas por qualquer um.

-
- -

Se selecionado, o Shotwell vai escrever as etiquetas, títulos e outros metadados nos arquivos criados na exportação.

- -
diff --git a/help/pt_BR/share-print.page b/help/pt_BR/share-print.page deleted file mode 100644 index 048c377..0000000 --- a/help/pt_BR/share-print.page +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - Use o item de menu ArquivoImprimir.... Para mais opções de impressão, use a guia Configurar Página na janela Imprimir. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Imprimindo - -

Para imprimir uma foto, selecione-a e use o menu ArquivoImprimir....

- -

O Shotwell também pode imprimir várias fotos em uma única página; para fazer isso, selecione múltiplas fotos e use o menu ArquivoImprimir... e, na caixa de diálogo de impressão, escolha a aba Configurações da imagem. Nela, escolha uma das várias opções de quantidade de imagens por página em Tamanho automático.

- -

Para definir a formatação da impressão, tamanho do papel e opções de orientação, escolha a aba Configurar página na caixa de diálogo Imprimir antes da impressão.

-
diff --git a/help/pt_BR/share-send.page b/help/pt_BR/share-send.page deleted file mode 100644 index 2e09851..0000000 --- a/help/pt_BR/share-send.page +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - Envie fotos por e-mail, mensageiro instantâneo (como MSN, Gtalk/Hangouts, ICQ, etc.) e outros. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Enviando fotos - -

O Shotwell pode enviar fotos usando o mecanismo 'Enviar Para' da área de trabalho GNOME, que permite o envio por e-mail, mensagens instantâneas e outras formas.

-

Para enviar fotos, selecione-as no Shotwell e escolha ArquivoEnviar para..., ou clique com o botão direito nas fotos e escolha Enviar para... no menu de contexto. A caixa de diálogo Enviar para permite que você escolha um mecanismo para o envio de arquivos (como e-mail ou mensageiro instantâneo) e um destino. É possível optar por enviar os arquivos em um formato compactado.

- -
diff --git a/help/pt_BR/share-slideshow.page b/help/pt_BR/share-slideshow.page deleted file mode 100644 index 3598fef..0000000 --- a/help/pt_BR/share-slideshow.page +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - Veja uma apresentação de slides de suas fotos. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Apresentação de slides - -

Para ver uma apresentação de slides de qualquer coleção no Shotwell, navegue até ela e use o menu VerApresentação de slides ou pressione a tecla F5.

- -

Você pode ajustar as configurações durante uma apresentação de slides:

- - -

A duração em que a mesma foto é exibida: de 1 a 30 segundos

-

Mudar os efeitos de transição entre as fotos.

-

A duração de cada efeito de transição: de 0,1 a 1,0 segundos

-
-
diff --git a/help/pt_BR/share-upload.page b/help/pt_BR/share-upload.page deleted file mode 100644 index 6a2f8af..0000000 --- a/help/pt_BR/share-upload.page +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - Publique fotos para o Facebook, Flickr, Picasa Web Albums, ou outros lugares. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Publicando para a web - -

Através do uso de plug-ins, o Shotwell pode publicar fotos e vídeos para os seguintes serviços (cada um necessita de uma conta):

- - -

Facebook

-

Flickr

-

Picasa Web Albums and Google+

-

YouTube (videos only)

-

Tumblr (videos only)

-

Qualquer site usando o software de galeria de fotos Piwigo (somente fotos)

-
- -

To publish selected photos in a collection, choose EditPreferences and - click on the Plugins tab to enable the plugin for the service you want to publish to. Next, choose, - FilePublish, press the Publish toolbar button or use CtrlShiftP. - You will see a dialog that lets you select a publishing service. You will then need to log in or create an account.

- -

Publicar para o Facebook necessita que você conceda algumas permissões para o aplicativo Facebook do Shotwell. Você só precisará conceder essas permissões quando usar o Shotwell para publicar fotos/vídeos no Facebook pela primeira vez.

-

Você apenas conseguirá publicar imagens com a permissão que você concedeu para o aplicativo Facebook do Shotwell

- -

De maneira parecida, publicar fotos/vídeos para o Flickr necessita que você conceda permissões de acesso à sua conta pelo aplicativo.

- -

Se você tiver uma conta Google, mas ainda não utilizou o Picasa Web Albums, você precisará acessá-lo primeiro usando um navegador uma vez antes de conseguir publicar pelo Shotwell.

-
diff --git a/help/pt_BR/view-displaying.page b/help/pt_BR/view-displaying.page deleted file mode 100644 index 317e3e4..0000000 --- a/help/pt_BR/view-displaying.page +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - Saiba mais sobre formas diferentes de ver suas fotos: em uma lista, na janela principal, ou em tela cheia. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Formas de visualização de fotos - -

Ao selecionar qualquer coleção na barra lateral, o Shotwell exibe todas as fotos dela na área da janela principal. No canto inferior direito há um controle deslizante que ajusta o tamanho das miniaturas. Você também pode ajustar o tamanho das miniaturas utilizando as teclas + e - ou pressionando a tecla Ctrl enquanto move a roda do mouse.

- -

Você pode ver uma foto na janela toda dando um clique duplo sobre ela. Lá, você pode mover para outras fotos da coleção com os botões Voltar e Avançar. Para retornar para a coleção, clique duas vezes sobre a foto ou pressione Esc.

- -

Ao visualizar uma foto na janela toda, existirá um controle deslizante no canto da tela para manipular o zoom da visualização. Você pode movimentar a visualização clicando e arrastando em qualquer lugar da foto. Você também pode aumentar o zoom usando a roda do mouse ou pressionando as teclas: Ctrl0 para mostrar toda a foto, Ctrl1 para 100% de zoom, e Ctrl2 para 200% de zoom.

- -

O Shotwell oferece um modo de tela cheia para visualizar fotos. Use o menu VerTela cheia ou pressione a tecla F11. Para ver a barra de ferramentas da visualização da tela cheia, mova o cursor do mouse para a parte inferior da tela. Essa barra de ferramentas oferece botões para percorrer a coleção, para fixar a barra de ferramentas (para que ela não fique oculta quando você tirar o cursor do mouse dela), e para sair dessa visualização.

- -
-Assistindo vídeos -

Ao dar duplo clique num vídeo, o Shotwell irá iniciar um reprodutor externo para exibi-lo. Não é possível, atualmente, mostrar o vídeo na janela toda no Shotwell ou reproduzir o vídeo no próprio Shotwell.

-
- -
diff --git a/help/pt_BR/view-information.page b/help/pt_BR/view-information.page deleted file mode 100644 index facffab..0000000 --- a/help/pt_BR/view-information.page +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Exibe informações detalhadas sobre fotos, como o modo de exposição usado pela câmera. - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - Informações básicas e estendidas - -

Um painel de informações básicas aparece na parte inferior da barra lateral, mostrando um resumo das fotos selecionadas. Se nenhuma foto estiver selecionada, ele exibe um resumo de toda a biblioteca. Você pode alternar a exibição deste painel usando o item de menu VerInformações Básicas.

- -

A janela de informações estendidas exibe mais informações sobre a foto selecionada. O item de menu VerInformações estendidas ou a combinação de teclas CtrlShiftX alterna a exibição desta janela.

- -
diff --git a/help/pt_BR/view-sidebar.page b/help/pt_BR/view-sidebar.page deleted file mode 100644 index a093208..0000000 --- a/help/pt_BR/view-sidebar.page +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - A barra lateral esquerda da janela lista várias visões da sua biblioteca. - - - - - - - - - - - - - Felipe Braga - fbobraga@gmail.com - 2015 - - - - A barra lateral - -

A barra lateral esquerda da janela lista várias visões da sua biblioteca. Embora você possa ver a mesma foto em várias visões, ela só é armazenada uma vez em seu disco rígido.

- -

A visão Última Importação mostra as últimas fotos importadas de qualquer lugar (câmera, cartão de memória, disco rígido ou do programa F-Spot).

- -

A visão Marcadas mostra suas fotos marcadas.

- -

A visão Pesquisa salva permite classificar sua biblioteca por vários critérios de pesquisa.

- -

A visão Eventos lista todos os eventos em sua biblioteca. Um evento é um grupo de fotos que foram tiradas em datas parecidas.

- -

A visão Etiquetas lista todas as etiquetas que você colocou nas fotos. Fotos podem ter várias etiquetas. Clicar no nome de uma etiqueta na barra lateral mostra todas as fotos associadas à ela.

- -
diff --git a/help/sv/edit-adjustments.page b/help/sv/edit-adjustments.page deleted file mode 100644 index b3e7a41..0000000 --- a/help/sv/edit-adjustments.page +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - Ändra exponering, mättnad, färgton och skuggorna för en bild. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Färgjusteringar - -

Knappen Justera öppnar ett fönster med ett histogram och skjutreglage för att justera en bilds exponering, mättnad, färgton, temperatur och skuggor. Histogrammet har också skjutreglaget för att minska de övre och lägre intensitetströsklarna för bilden, utökandes kontrasten för mittenområdet.

- -

Knappen Förbättra justerar histogram- och skuggskjutreglagen för att förbättra kvaliteten på en bild.

- -

När du är nöjd med bildens färg och kontrast, tryck OK för att spara ändringarna. Återställ kommer att återställa bilden till dess ursprungliga tillstånd. Avbryt förkastar alla ändringar du har gjort.

- -
- Vad gör färgjusteringarna? - - - Exponering -

Ändra ljusstyrkan för att få det att se ut som att bilden exponerades en längre eller kortare tid. Använd detta för att korrigera över- eller underexponerade bilder.

-
- - Contrast -

Changes the contrast of a photo. Use it to correct flat-looking photos or photos where the difference between bright and dark spots seems to big.

-
- - Mättnad -

Ändrar hur levande färger uppfattas. Om din bild ser grå och urblekt ut, prova att öka mättnaden. Om färgerna är för starka, prova att minska den.

-
- - Tint -

Tonar bilden med en färg. Användbart för att korrigera bilder tagna med fel vitbalansinställning, som vanligen har en onaturlig färg. Exempelvis, bilder tagna utomhus med vitbalansen inställd till ”Tungsten” kan ha en blå toning.

-
- - Temperatur -

Ändrar hur ”varm” eller ”kall” bilden ser ut. Använd exempelvis denna för att få kalla, deprimerande motiv att se mer levande ut.

-
- - Skuggor -

Får skuggområden att se ljusare ut. Använd denna för att få fram fler detaljer om något döljs av skuggor.

-
- - Intensitettröskelvärde (skjutreglage på histogrammet) -

Skjutreglagen ändrar hur ljus den ljusaste vit är, och hur mörk den mörkaste svarta är. Använd dem för att ändra kontrasten på en bild. Speciellt bilder som ser urblekta ut bör ha nytta av att ändra dessa inställningar.

-
-
-
- -
diff --git a/help/sv/edit-crop.page b/help/sv/edit-crop.page deleted file mode 100644 index 7e1c78a..0000000 --- a/help/sv/edit-crop.page +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - Förbättra sammansättningen för en bild genom att klippa bort delar från den. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Beskär - -

För att minska området för en bild och fånga betraktarens uppmärksamhet till ett mindre område, använd verktyget beskär. Verktyget beskär är endast tillgängligt i helfönster- eller helskärmsläge.

- - - -

Dubbelklicka på en bild för att ange helskärmsläge och tryck sedan på knappen Beskär i verktygsfältet.

-
- -

En vit ruta, beskärningsrektangeln kommer att visas på bilden. Den ljusare delen av bilden inuti beskärningsrektangeln representerar hur bilden kommer att se ut efter att den är beskuren.

-
- -

Om du placerar din markör i mitten på rutan kan du också flytta runt rutan. Om du drar i kanterna på rutan kan du justera dess storlek. När du flyttar runt och justerar rutan kommer du att se fyra linjer inuti den, ungefär som ett rutnät i luffarschack. Det är linjer för tredelningsregeln.

-

Du kan också begränsa beskärningsrutan till en av många vanliga storlekar. Välj en storlek från rullgardinsmenyn som passar dig. Om du trycker vändknappen bredvid den kommer riktningen av begränsningen att växla (från landskap till porträtt).

-
- -

Verkställ din beskärning när du är nöjd med den genom att trycka på knappen Beskär. Shotwell kommer att visa den beskurna bilden.

-
- -

Om du ändrar dig, tryck knappen Beskär igen och finjustera beskärningen.

-

Om du trycker Avbryt istället för Verkställ kommer Shotwell att återgå till en bilds tidigare dimensioner.

-
-
- -
- Vad är tredelningsregeln? -

Tredelningsregeln hjälper dig att välja en angenäm sammansättning för en bild.

-

Föreställ dig att en scen delas upp i ett 3x3-rutnät med två vertikala linjer och två horisontella linjer, alla med samma avstånd sinsemellan. Enligt regeln får du en bättre sammansättning om du justerar större egenskaper (som horisonten eller en persons kropp) med en av linjerna. Att observera sättet egenskaper flödar från en del av rutnätet till ett annat kan också hjälpa.

-

Att beskära en bild så att den passar under tredelningsregeln ger ofta en visuellt tilltalande bild.

- -

Att beskära en bild och använda ”tredelningsregeln” för att förbättra sammansättningen.

-
-
-
diff --git a/help/sv/edit-date-time.page b/help/sv/edit-date-time.page deleted file mode 100644 index 52d41b3..0000000 --- a/help/sv/edit-date-time.page +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - Ändra datum och tid för bilder om de inte stämmer. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Justera datum och tid för bilder - -

För att justera datum och tid för bilder, markera de bilder du vill justera, välj BilderJustera datum och tid… och markera nytt datum och tid.

- -

Om du ändrar datum och tid för flera bilder samtidigt kan du välja att ändra tiden för alla bilder eller ange samma tid för alla bilder samtidigt.

- -

Som standard ändras datum och tid endast i Shotwell. Du kan också välja att ändra datum och tid i originalfilen, men det kan inte ångras när du väl har avslutat Shotwell.

- -
diff --git a/help/sv/edit-enhance.page b/help/sv/edit-enhance.page deleted file mode 100644 index 65ca72a..0000000 --- a/help/sv/edit-enhance.page +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - Låt Shotwell förbättra ljusstyrka och kontrast för en bild automatiskt. - - - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Autoförbättra - -

Att klicka på knappen Förbättra är ett snabbt sätt att automatiskt justera ljusstyrkan och kontrasten för din bild. Det ger ofta en bild som är korrekt exponerad. Du kan också använda det som en startpunkt och sedan förbättra justeringarna genom att klicka på knappen Justera.

-
diff --git a/help/sv/edit-external.page b/help/sv/edit-external.page deleted file mode 100644 index 35f28e2..0000000 --- a/help/sv/edit-external.page +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - Använda ett annat program för att redigera en bild. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Redigera bilder med ett externt program - -

Du kan vilja använda en extern redigerare för att utföra ytterligare arbete på en bild. Om installerade så är GIMP och UFRaw de externa standardredigerarna för bilder och RAW-redigering. Om dessa program inte är installerade måste du välja dina föredragna redigerare genom att välja RedigeraInställningar och markera redigerare från rullgardinsmenyn för installerade program.

- -

När redigerare väl har angetts, markera en bild och väljs Bilder Öppna med extern redigerare för att öppna bilden med den externa redigeraren. På samma sätt, om originalbilden är en RAW-fil, välj BilderÖppna med RAW-redigerare för att redigera RAW-filen med den valda RAW-redigeraren.

- -

När du är klar med redigering och sparar filen kommer Shotwell att upptäcka ändringarna och uppdatera bilden. Om externa ändringar har skett, tryck och håll Skift-tangenten i helskärmsvyn för att visa originalbilden istället för den externt redigerade.

- -

Återställning till originalet kommer att radera externa ändringar.

- - -

Om du externt redigerar en RAW-bild och sparar resultatet till en annan bild, som JPEG eller PNG, kan inte Shotwell automatiskt bestämma att den ursprungliga RAW-filen och den nya bilden ska kopplas samman.

- -

Om du vill arbeta med bildresultatet i Shotwell måste du importera det.

-
-
diff --git a/help/sv/edit-nondestructive.page b/help/sv/edit-nondestructive.page deleted file mode 100644 index 1c8f713..0000000 --- a/help/sv/edit-nondestructive.page +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - Shotwell är en förlustfri bildredigerare - den ändrar inte dina originalbilder. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Vad händer med originalet när jag redigerar en bild? - -

Shotwell är en förlustfri bildredigerare. Det ändrar inte dina originalbilder. Det betyder att om du beskär en bild, eller ändrar dess färg kommer bildfilerna på disk att bevaras orörda. Shotwell lagrar dina ändringar i en databas och verkställer dem direkt eftersom. Det betyder att du kan ångra ändringar gjorda på en bild.

- -

Om du vill se hur en bild såg ut innan dina ändringar, tryck tangenten Skift. Originalbilden kommer att visas så länge tangenten hålls nere.

- -

Observera att Shotwell valfritt kan skriva metadata (som taggar och namn) till bildfiler. För mer information, se avsnittet Bildfiler.

- -
diff --git a/help/sv/edit-redeye.page b/help/sv/edit-redeye.page deleted file mode 100644 index 45a94d7..0000000 --- a/help/sv/edit-redeye.page +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - Rätta till bilder där personer har röda ögon på grund av kamerans blixt. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Ta bort röda ögon - -

Röda ögon uppstår när kamerans blixt reflekteras i pupillen i någons öga. För att ta bort detta ur en bild, använd verktyget röda ögon.

- - -

Klicka Röda ögon. En cirkel visas på bilden.

-
- -

Dra cirkeln över berörd pupill, justera dess storlek med skjutreglaget och tryck Verkställ. Rödheten kommer att tas bort.

-
- -

Upprepa processen för alla röda pupiller i din bild. Tryck Stäng när färdig.

-
-
-
diff --git a/help/sv/edit-rotate.page b/help/sv/edit-rotate.page deleted file mode 100644 index 6efbcfa..0000000 --- a/help/sv/edit-rotate.page +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - Klicka knappen Rotera eller välj en av kommandona i Bild-menyn. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Rotera eller vänd en bild - -

Du kan rotera dina bilder till vänster och höger (medurs eller moturs) med knappen Rotera i verktygsfältet för de flesta vyer. Du kan också skapa en spegelbild av en bild.

- -

För att rotera höger, klicka på knappen Rotera. För att rotera vänster, tryck och håll ner tangenten Ctrl och klicka sedan på knappen. Båda kommandona är också tillgängliga i menyn Bilder. Alternativt, använd följande tangentbordsgenvägar:

- -

rotera vänster: SkiftCtrlR eller [

-

rotera höger: CtrlR eller ]

-
-

För att skapa en spegelbild av en bild, använd Vänd horisontellt-kommandot i Bilder-menyn. För att vända en bild vertikalt, använd Vänd vertikalt-kommandot i samma meny.

- - -

Om du väljer mer än en bild så kan du rotera dem samtidigt.

-
- -
diff --git a/help/sv/edit-straighten.page b/help/sv/edit-straighten.page deleted file mode 100644 index f44b272..0000000 --- a/help/sv/edit-straighten.page +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - Räta ut en bild så att dess horisont blir rak. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Räta ut bilder - -

Verktygen för att räta ut bilder låter dem rätas ut och plattas till. Verktyget för att räta ut är endast tillgängligt i helskärms- eller helfönsterläge.

- - - -

Klicka Räta ut. Skjutreglaget för att räta ut visas. Alternativt, använd tangentbordskombinationen CtrlA.

-
- -

Dra i skjutreglaget för att uppnå önska grad av uträtning.

-
- -

Tryck Räta ut när klar.

-
-
- -
diff --git a/help/sv/edit-undo.page b/help/sv/edit-undo.page deleted file mode 100644 index 619628d..0000000 --- a/help/sv/edit-undo.page +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Återställa en bild till dess ursprungliga oredigerade skick. - - - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Ånga ändringar - -

Eftersom Shotwell är en förlustfri bildredigerare kan du ångra ändringar du gjort i en bild.

- -

Om du vill se hur en bild såg ut innan dina ändringar, tryck tangenten Skift. Originalbilden kommer att visas så länge tangenten hålls nere.

- -

För att helt ångra alla dina ändringar till en bild, klicka BilderÅterställ till original. Det enda undantaget är att tid- och datumjusteringar inte kommer att återställas.

- -
diff --git a/help/sv/formats.page b/help/sv/formats.page deleted file mode 100644 index e0a9a4b..0000000 --- a/help/sv/formats.page +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - Shotwell stödjer JPEG, PNG, TIFF, BMP och RAW-bilder såväl som filmfiler. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Bild- och videoformat som stöds - -

Shotwell stödjer JPEG, PNG, TIFF, BMP och RAW-bildfiler. Shotwell stödjer inte ännu andra grafikformat som GIF.

- -

Shotwells RAW-formatstöd är för tillfället begränsat. När du visar en RAW-bild visar du egentligen en JPEG som härstammar från RAW-bilden, inte själva RAW-bilden. Dessutom är RAW-redigeringsflödet inte helt 16-bitars - du kan bara exportera redigerade bilder som 8-bitars filer. Alla format som stöds kan användas för export (JPEG, PNG, TIFF, BMP).

- -

För mer information om RAW-formatbilder i Shotwell, se avsnittet RAW.

- -

Shotwell stödjer också filmfiler i format som GStreamer mediabibliotek stödjer, på systemet där Shotwell körs. Normalt inkluderar det följande format, bland andra:

- -

Behållarformat: Ogg, QuickTime, MP4, AVI.

-

Kodekar: Theora, Quicktime, MPEG-4, Motion JPEG. Observera att vissa operativsystem kanske inte inkluderar kodekarna listade här på grund av juridiska eller licensbaserade begränsningar.

-
- -

Shotwell stödjer både bilder och filmer, men för enkelhetens skull använder dokumentationen termen ”bilder” på de flesta ställen. Flera operationer i Shotwell gäller dock för bild och filmer. Speciellt händelser, att flagga, betygsätta, tagga och publicera fungerar för både bilder och filmer.

- -
diff --git a/help/sv/import-camera.page b/help/sv/import-camera.page deleted file mode 100644 index b8da370..0000000 --- a/help/sv/import-camera.page +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - Kopiera bilder från en digital kamera. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Importera från en kamera - -

Att importera bilder från en digitalkamera:

- - - -

Anslut kameran till din dator och slå på den. Shotwell kommer att upptäcka den och lista den i sidopanelen.

-
- -

Välj kameran i sidopanelen. Förhandsvisningar av varje bild på kameran kommer att visas.

-
- -

Om du vill kan du välja en samling specifika bilder att importera. För att göra detta, håll ner tangenten Ctrl och klicka för att markera individuella bilder. Du kan också hålla ner Skift och klicka för att markera ett intervall av bilder.

-
- -

Klicka antingen Importera markerade eller Importera alla. Bilderna kommer att kopieras från kameran och sparas på din dator.

-
-
- -

När importen är klar kan du öppna vyn Senast importerade (i sidopanelen) för att se alla bilder som importerades. Händelselistan (också i sidopanelen) kommer att visa de nya bilderna, ordnade efter datum.

-
diff --git a/help/sv/import-file.page b/help/sv/import-file.page deleted file mode 100644 index 1505b33..0000000 --- a/help/sv/import-file.page +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - Importera bilder som redan är sparade på din dator. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Importera från din hårddisk - -

För att importera bildfiler från din hårddisk till Shotwell, dra dem från din filhanterare till Shotwell-fönstret.

- -

Alternativt, klicka ArkivImportera från mapp… och markera mappen som innehåller de bilder du vill importera. Om du inte vill att Shotwell rekursivt ska gå in i undermappar under import kan du avmarkera kryssrutan Gå rekursivt in i undermappar längst ner i fildialogen.

- -

Shotwell kommer att fråga huruvida du vill kopiera bildfiler till din biblioteksmapp (vanligtvis mappen Bilder i din hemkatalog) eller importera dem direkt utan att kopiera filerna.

- -

Om du håller ner Ctrl när du drar in bilder kommer Shotwell att kopiera bilderna till din biblioteksmapp utan att fråga. På samma sätt, om du håller ner CtrlSkift medan du drar in bilder kommer Shotwell att importera bilderna utan att kopiera dem.

- -

När importen är färdig kan du välja Senaste import i sidopanelen för att se alla importerade bilder. Händelselistan kommer också att visa nya poster för datumen som motsvarar de importerade bilderna.

- -
diff --git a/help/sv/import-memorycard.page b/help/sv/import-memorycard.page deleted file mode 100644 index ca3c37a..0000000 --- a/help/sv/import-memorycard.page +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - Importera bilder från en digitalkameras minneskort. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Importera från ett minneskort - -

För att importera bilder från en kameras minneskort:

- - - -

Stoppa i kortet i din kortläsare. Försäkra dig om att kortläsaren är ansluten till datorn och påslagen.

-
- -

Kortläsaren och kortet bör upptäckas automatiskt.

-
- -

Följ instruktionerna för att importera bilder från din hårddisk. Om du klickar ArkivImportera från mapp… bör minneskortet synas som en mapp i sidopanelen för filväljarfönstret.

-
-
- -

Shotwell kan importera bilder från minneskort som är kompatibla med din kortläsare.

- -

Om kortet inte upptäcks automatiskt kanske din kortläsare inte kände igen det. Prova att koppla från det och sedan ansluta det igen. Om det inte fungerar bör du ändå kunna importera bilder genom att ansluta din kamera direkt till datorn .

- -
diff --git a/help/sv/index.page b/help/sv/index.page deleted file mode 100644 index 36b67ad..0000000 --- a/help/sv/index.page +++ /dev/null @@ -1,58 +0,0 @@ - - - - - Shotwell - - Jim Nelson - jim@yorba.org - Allison Barlow - allison@yorba.org - Robert Ancell - robert.ancell@canonical.com - Peter Smith - pdo.smith@gmail.com - Phil Bull - philbull@gmail.com - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - - <media type="image" src="figures/shotwell_logo.png"/>Shotwell bildhanterare - -
- Importera bilder -
- -
- Visa bilder -
- -
- Ordna bilder -
- -
- Redigera bilder -
- -
- Dela bilder -
- -
- Andra egenskaper -
-
diff --git a/help/sv/organize-event.page b/help/sv/organize-event.page deleted file mode 100644 index 05b6a1c..0000000 --- a/help/sv/organize-event.page +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - Gruppera bilder som tagits samtidigt. Lär dig att byta namn, sammanfoga och sortera händelser. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Händelser - -

En händelse är en grupp bilder som tagits ungefär samtidigt. När du importerar bilder kontrollerar Shotwell när varje bild tagits. Det grupperar sedan bilderna i händelser.

- -

Välj Händelser från sidopanelen för att se dina bilder ordnade efter datum. Om du väljer en månad eller ett år från sidopanelen visas en lista över händelser i huvudfönstret. Dubbelklicka på en händelse för att se alla bilder som togs vid den tiden.

- -

Om en bild inte har inbäddad datum/tid-information kan inte Shotwell automatiskt placera dem i någon händelse. I detta fall kommer bilden att visas i vyn Ingen händelse tillgänglig från sidopanelen. Du kan fortfarande flytta bilden till vilken händelse du vill, som beskrivs nedan.

- -
- Byta namn på händelser - -

För att ge en händelse ett namn istället för att hänvisa till den med datum, markera händelsen, klicka RedigeraByt namn på händelse… och ange ett nytt namn. Ett annat sätt att byta namn på en händelse är att dubbelklicka på dess namn i sidopanelen, skriva ett nytt namn och sedan trycka Retur.

-
- -
- Flytta bilder mellan händelser - -

Även om bilder inledningsvis grupperas i händelser efter datum kan du flytta bilder mellan händelser. För att göra detta, dra en bild till sidopanelen och släpp den på en händelse.

-
- -
- Skapa och sammanfoga händelser -

För att skapa nya händelser, markera de bilder du skulle vilja ha i en ny händelse och klicka HändelserNy händelse.

-

För att sammanfoga händelser, välj Händelser från sidopanelen och sedan, medan du håller ner Ctrl, klicka på händelserna du vill sammanfoga i huvudfönstret. Slutligen, klicka på HändelserSammanfoga händelser.

-
- -
- Sortera händelser - -

Händelser visas i ett träd i sidopanelen, ordnade efter år och månad efter de tidigaste bilderna i en händelse. För att ändra sorteringsordning, klicka VisaSortera händelser och välj antingen stigande eller fallande.

- -
- -
- Ändra bilden som representerar varje händelse - -

Om du väljer Händelser i sidopanelen kommer du att se en ensam bild som representerar var händelse. Det kallas nyckelbilden.

- -

Som standard använder Shotwell den första bilden i varje händelse som dess nyckelbild. För att använda en annan nyckelbild, markera bilden och välj BilderSkapa nyckelbild för händelse.

- -
- -
diff --git a/help/sv/organize-flag.page b/help/sv/organize-flag.page deleted file mode 100644 index 1115508..0000000 --- a/help/sv/organize-flag.page +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - Flagga bilder för att markera dem som speciella eller för att arbeta med dem som en samling. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Flagga bilder - -

Shotwell låter dig flagga bilder. När en bild flaggats kommer en liten flaggikon visas i dess övre högra hörn. Du kan markera Flaggade i sidopanelen för att se alla bilder som har flaggats.

- -

Att flagga en bild markerar den som speciell. Du kan tolka det som du vill. Till exempel kan du flagga alla bilder som kräver visuell justering, eller alla bilder som du vill dela med en vän.

- -

Att flagga är användbart eftersom du kan jobba med alla flaggade bilder som en samling. Till exempel kan du markera vyn Flaggade och sedan skicka upp alla flaggade bilder till en publiceringstjänst.

- -
- Att flagga eller flagga av en bild -

För att flagga eller flagga av en bild, högerklicka på bilden och välj Flagga eller Flagga av från snabbmenyn. Eller, använd snabbtangenterna CtrlG eller /.

-
- -
diff --git a/help/sv/organize-rating.page b/help/sv/organize-rating.page deleted file mode 100644 index bb3707e..0000000 --- a/help/sv/organize-rating.page +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - Ge bilderna ett betyg mellan en och fem stjärnor. Du kan avvisa dåliga bilder och dölja dem från visning. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Betyg -

Du kan ger varje bild ett betyg från 1-5 stjärnor, eller sätta den som avvisad, vilket medför att Shotwell som standard kommer att dölja bilden.

- -

Du kan betygsätta en bild eller en samling bilder på dessa sätt:

- - -

Markera bilden och välj sedan betygsätt från den översta menyn BilderBetygsätt.

-

Högerklicka på bilden/rna och välj sedan ett betyg från snabbmenyn Betygsätt.

-

Markera bilden/erna och tryck sedan på någon av snabbtangenterna 1, 2, 3, 4 eller 5 för att tilldela ett betyg. Eller, tryck 9 för att markera bilden/erna som avvisade eller 0 för att rensa betyg.

-
- -

Vanligtvis visar Shotwell alla bilder förutom avvisade bilder. Du kan ange ett annat betygsfilter genom att använda VisaFiltrera bilder-menyn - till exempel kan du visa bilder betygsatta med tre stjärnor eller högre, eller du kan visa alla bilder inklusive de som markerats avvisade. Shotwell-ikonen på verktygsfältet visar aktuellt betygsfilter och kan också användas för att aktivera filtret.

- -

Shotwell visar som standard varje bilds betyg i nedre vänstra hörnet, Du kan stänga av visningen av betyg genom att nyttja VisaBetyg-menyobjektet.

- -

Du kan öka eller minska en bilds betyg genom att använda BetygsättHöj och BetygsättSänk-kommandona, eller tangentbordsgenvägarna < och >.

-
diff --git a/help/sv/organize-remove.page b/help/sv/organize-remove.page deleted file mode 100644 index 6d4ead3..0000000 --- a/help/sv/organize-remove.page +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - Ta bort bilder från biblioteket eller radera dem fullständigt från din dator. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Ta bort och radera bilder - -

Du kan ta bort bilder från ditt bibliotek och du kan också radera dem fullständigt från din hårddisk.

-

Raderingsprocess

-

Diagrammet visar hur en bild, när den raderas, först läggs i Shotwells papperskorg. Om du raderar den från Shotwells papperskorg läggs den i datorns papperskorg. Om du raderar den från din dators papperskorg är bilden oåterkalleligen raderat från din dator.

-
- Ta bort bilder från biblioteket -

Markera bilder att ta bort och välj RedigeraFlytta till papperskorgen. (Du kan också trycka Delete-tangenten.) Bilderna kommer att flyttas från ditt bibliotek till Shotwells papperskorg.

-

Om du vill ta bort bilder från Shotwell utan att låta dem passera genom papperskorgen, markera bilderna att ta bort och välj RedigeraTa bort från bibliotek. Bildfilerna kommer att vara kvar på disken.

-
- -
- Rensa eller återställa papperskorgen -

Välj papperskorgen i sidopanelen och Shotwell kommer att visa alla bilder som har markerats för borttagning eller radering. I vyn för papperskorgen är följande kommandon tillgängliga:

- - Radera

Radera de markerade bilderna från papperskorgen.

- Återställ

Återställ de markerade bilderna till Shotwell.

- Töm papperskorgen

Radera alla bilder från papperskorgen.

-
-
- -
- Radera eller tömma papperskorgen -

När du raderar filer från papperskorgen, eller tömmer den, kommer du att ges följande val:

- - Endast ta bort

Tar bort bilder från biblioteket men lämnar kvar bilderna på deras plats i datorn.

- Radera fil

Tar bort bilder från biblioteket och raderar dem från datorn.

- Avbryt

Gör inget.

-
-
- -
diff --git a/help/sv/organize-search.page b/help/sv/organize-search.page deleted file mode 100644 index 56af52a..0000000 --- a/help/sv/organize-search.page +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - Hitta bilder och filmer i din samling med blandade kriterier. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Söka - -

Det finns två sätt att söka på i Shotwell: filterverktygsfältet och med en sparad sökning. Sökfältet låter dig snabbt söka aktuell vy efter specifika kriterier. Sparade sökningar erbjuder komplexare sökningskriterier och lagring i sidopanelen mellan sessioner.

- - - -
- Sparad sökning -

En sparad sökning lagras över Shotwell-sessioner och uppdateras då bilder och filmer läggs till och tas bort från ditt Shotwell-bibliotek.

- -

Skapa en ny sparad sökning med RedigeraNy sökning… eller genom att trycka CtrlS. Dialogrutan låter dig ange ett namn för sökningen och välja huruvida du vill uppfylla några, alla eller inga av kriterierna i följande rader.

- -

Varje rad representerar ett sökkriterium. Använd +-knappen för att lägga till flera rader och -knappen för att ta bort en specifik rad. Komborutan till vänster för varje rad väljer kriterietyp. Kriterier måste anges korrekt innan OK-knappen blir tillgänglig.

-
- -
diff --git a/help/sv/organize-tag.page b/help/sv/organize-tag.page deleted file mode 100644 index 6a378fa..0000000 --- a/help/sv/organize-tag.page +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - Organisera bilder genom att sätta taggar på dem. - - - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Tagga bilder - -

Du kan tilldela en eller fler taggar för att markera bilder. En tagg kan vara en eller flera ord som du vill associera med dessa bilder.

- -

För att lägga till taggar till bilder, markera bilderna du skulle vilja lägga tagga, och gör sedan följande:

- - -

Markera TaggarLägg till taggar….

-

Skriv in CtrlT.

-

Dra de markerade bilderna och släpp dem på den önskade taggen.

-
- -

När du använder CtrlT eller TaggarLägg till taggar… kan du skriva in namnen på en eller flera taggar separerade med komman. När du väl har skapat en tagg kan du byta namn på den genom att markera taggen i sidopanelen och välja TaggarByt namn på taggen "[namn]"… genom att högerklicka på den och markera Byt namn… eller dubbelklicka på taggen i sidopanelen.

- -

För att ändra taggar associerade med en speciell bild, markera bilden, välj TaggarÄndra taggar… eller högerklicka på en bild och markera Ändra taggar… och redigera den kommaseparerade listan. För att ta bort en tagg från en eller flera bilder, välj först taggen i sidopanelen och markera sedan de bilder du vill ta bort, samt välj TaggarTa bort taggen "[namn]" från bilderna eller högerklicka på bilderna och välj Ta bort taggen "[namn]" från bilderna.

- -

För att fullständigt ta bort en tagg, markera taggen i sidopanelen och välj TaggarTa bort tagg "[namn]" eller högerklicka och välj Ta bort tagg "[namn]".

- -

När du skapar en tagg kommer den att visas i sidopanelen under objektet Taggar, vilket döljs om det inte finns några taggar. Bilder kan ha flera taggar associerade med dem, och när du klickar på namnet för en given tagg i sidopanelen kommer du att se alla bilder associerade med denna tagg.

- -
- Hierarkiska taggar -

Shotwell stödjer också hierarkiska taggar. Du kan flytta om dina taggar genom att dra och släppa en tagg på en annan. För att skapa en ny undertagg, högerklicka på en tagg och markera Ny.

- -

Hierarkiska taggar kan hjälpa dig att sortera din tagglista på sätt som bättre matchar hur du tänker eller jobbar - exempelvis kan du lagra platstaggar som ”Berg” eller ”Strand” under en överordnad tagg ”Platser”, vilken i sig själv kan placeras under taggen ”Sommarsemester”.

- -

Observera att ta bort en överordnad tagg också kommer att bort underordnade taggar.

-
-
diff --git a/help/sv/organize-title.page b/help/sv/organize-title.page deleted file mode 100644 index ca71fd0..0000000 --- a/help/sv/organize-title.page +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - Namnge dina bilder. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Namn - -

Kryssrutan VisaTitlar aktiverar visningen av titlar under varje bild. Som standard är en bilds namn dess filnamn.

- -

För att ändra en bilds titel, markera bilden och klicka BilderRedigera titel… eller tryck F2.

- -
diff --git a/help/sv/other-files.page b/help/sv/other-files.page deleted file mode 100644 index 3252e6f..0000000 --- a/help/sv/other-files.page +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - Håll Shotwell-biblioteket i synk med bildfiler på disk. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Bildfiler - -

Varje bild i Shotwell-biblioteket motsvaras av en fil lagrad på din hårddisk. Shotwell har flera olika funktioner som hjälper dig att hålla Shotwell-biblioteket och filerna på disk i synk.

- - -
- Använda ett anpassat katalogmönster -

Shotwell låter dig ange hur det namnger kataloger i ditt bibliotek. Du kan göra detta genom att ändra inställningarna Katalogstruktur och Mönster i dialogen Inställningar. Du kan använda ett förvalt mönster, eller välja Anpassa och skriva in ditt eget.

- -

De tillgängliga symbolerna för katalogmönstren börjar med ett % (procenttecken). Värdena dessa symboler producerar är lokal-beroende, så vad du ser på din dator kan variera jämfört med följande exempel.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Symbol

Betydelse

Exempel

%Y

År: hela

2015

%y

År: tvåsiffrigt

15

%d

Månadsdag med inledande nolla

03

%A

Veckodag: hela

Onsdag

%a

Veckodag: förkortad

Ons

%m

Månadsnummer med inledande nolla

02

%b

Månadsnummer: förkortat

Feb

%B

Månadsnummer: helt

Februari

%I

Timme: 12-timmarsformat

05

%H

Timme: 24-timmarsformat

17

%M

Minut

16

%S

Sekund

30

%p

AM eller PM

PM

- -

Det finns andra symboler tillgängliga, se handboken för strftime genom att köra kommandot man strftime om du behöver en som inte listas här.

-
- -
- Importera bilder automatiskt - -

Shotwell kan automatiskt importera nya bilder som kommer att visas i bibliotekskatalogen. (Bibliotekskatalogen är vanligtvis katalogen Bilder i din hemkatalog - du kan ändra dess plats i fönstret Inställningar.)

- -

För att aktivera autoimport, kryssa i rutan Bevaka bibliotekskatalogen efter nya filer i fönstret Inställningar.

- -

Shotwell kan också följa symboliska länkar inuti automatiskt importerade kataloger.

- -
- -
- Automatiskt byta namn på importerade bilder till gemener - -

Shotwell kan automatiskt ändra filnamnen för importerade bilder till gemener. För att aktivera detta, välj RedigeraInställningar och i fönstret Inställningar, kryssa i rutan Byt namn på importerade filer till gemener.

- -
- -
- Skriva metadata direkt - -

Som standard ändrar inte Shotwell bildfiler, även om du redigerar bilder eller ändrar deras taggar och namn. Shotwell sparar endast dessa ändringar i sin databas.

- -

För att ändra detta beteende kan du aktivera kryssrutan Skriv taggar, namn och annan metadata till bildfiler i dialogen Inställningar. När detta alternativ är aktiverat kommer Shotwell att skriva följande metadata till de flesta bildfiler när du ändrar dem i Shotwell:

- - -

namn

-

taggar

-

betyg

-

riktningsinformation

-

tid/datum

-
- -

Shotwell lagrar denna information i bildfiler i EXIF, IPTC och/eller XMP-format. Observera att Shotwell endast kan skriva till bildfiler i JPEG, PNG och TIFF-format, inte till BMP-bilder, RAW-bilder eller till videofiler.

- -
- -
- Körtidsövervakning - -

När Shotwell körs märker det av ändringar gjorda till bildfiler externt. När en bildfil ändras läser Shotwell om filen och uppdaterar din vy över bilder och metadata.

- -

Observera att Shotwell kontrollerar alla bildfiler vid uppstart, men att endast bildfiler i bibliotekskatalogen övervakas i realtid efter uppstart. Vi hoppas kunna ta bort denna begränsning i en framtida utgåva.

- -
- -
diff --git a/help/sv/other-missing.page b/help/sv/other-missing.page deleted file mode 100644 index 1ba9201..0000000 --- a/help/sv/other-missing.page +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Om Shotwell inte kan hitta en bild i ditt bibliotek kommer det att markera den som saknad. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Saknade bilder - -

Var gång Shotwell startar söker det av ditt bildbibliotek för att verifiera att alla bilder fortfarande existerar på din hårddisk. Om Shotwell finner att det saknas filer, kommer dessa inte att visas i vyerna Bilder, Händelser eller Taggar, och istället visas de i separata vyn Saknade filer, vilken visas i sidopanelen.

- -

Om du inte längre vill att de saknade filerna ska vara en del av din Shotwell-samling (kanske för att du tog bort dem), gå till vyn Saknade filer, välj bilder och klicka sedan Ta bort från bibliotek.

- -

Om du har bilder på en flyttbar enhet, som en cd-skiva eller en usb-sticka, och importerar dem till Shotwell utan att kopiera bilderna till din dator, kommer de att visas som saknade filer om du kopplar från den flyttbara enheten. Se för att lära dig mer om att kopiera filer från en flyttbar enhet till din dator.

- -

Om några saknade bilder blir tillgängliga igen kommer Shotwell att märka det nästa gång programmet startar. Bilderna kommer åter igen att visas i vyerna Bilder, Händelser och Taggar.

- -
diff --git a/help/sv/other-multiple.page b/help/sv/other-multiple.page deleted file mode 100644 index 230e6c8..0000000 --- a/help/sv/other-multiple.page +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Du kan öppna Shotwell med ett annat bildbibliotek genom att använda kommandoraden. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Flera bibliotek - -

Shotwell lagrar normalt sin databas och sina miniatyrbilder i katalogen ~/.shotwell . Denna katalog innehåller inte bilder, men databasen i denna katalog innehåller en lista över alla bilder i Shotwell-biblioteket.

- -

Som en avancerad funktion är det möjligt för dig att ha flera Shotwell-bibliotek, var och en med dess egna grupp av bilder. Varje bibliotek behöver dess egna databaskatalog. För att starta Shotwell som ett alternativt bibliotek, ange en alternativ katalog på kommandoraden enligt:

- - -shotwell -d [bibliotekskatalog] - - -
diff --git a/help/sv/other-plugins.page b/help/sv/other-plugins.page deleted file mode 100644 index d8c1ac7..0000000 --- a/help/sv/other-plugins.page +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - Utöka Shotwells funktionalitet dynamiskt. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Insticksmoduler -

Shotwell kan användas med Insticksmoduler, vilket är delade bibliotek som kan lägga till stöd för nya publiceringstyper eller nya övergångar vid bildspel.

- -

För att se en lista över installerade insticksmoduler, välj RedigeraInställningar, och i fönstret Inställningar, klicka på fliken Insticksmoduler. Du kommer att se en lista av aktuella installerade insticksmoduler, var och en med en kryssruta vid sida av den, och du kan aktivera eller inaktivera var och en genom att kryssa eller kryssa av kryssrutan för dess namn.

- -

Fullständig dokumentation om hur du utvecklar nya insticksmoduler finns tillgänglig på http://redmine.yorba.org/projects/shotwell/wiki/ShotwellArchWritingPlugins

- -
diff --git a/help/sv/raw.page b/help/sv/raw.page deleted file mode 100644 index bc2aecf..0000000 --- a/help/sv/raw.page +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - Mer om RAW-stöd i Shotwell. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - RAW-stöd i Shotwell -

En del kameror har förmågan att lagra data direkt från sensorn till en fil som innehåller extra färginformation, känt som ”RAW” eller ”Kamera-RAW”, och Shotwell stödjer även dessa filer.

- -

Eftersom RAW-bilder vanligtvis endast kan visas direkt, men först måste framkallas - det vill säga, tolka deras extra information och göra klart den för visning - kommer de flesta kameror att bädda in en JPEG inuti RAW-formatfilen, eller skapa en JPEG vid sidan av RAW-filen då ögonblicksbilden tas. Det senare refereras till i detta dokument som RAW+JPEG. Om du importerar ett RAW+JPEG-par kommer Shotwell att hålla dem sammankopplade och behandla dem som ett objekt i ditt bibliotek.

- -

När du importerar en RAW-fil kan du välja att antingen använda kamerans inbyggda JPEG eller Shotwells egna genom att markera BilderFramkallare i menyerna.

- - -

Ändringar mellan framkallare kommer att göra att alla redigeringar gjorda till en bild förkastas.

-
- -

För att kunna publicera eller använda en RAW-bild i de flesta andra programmen måste den exporteras först. Shotwell kan exportera dina RAW-bilder i JPEG, PNG, TIFF eller BMP-format, och när du publicerar, exporterar de en JPEG-version för dig och publicerar den.

- -
diff --git a/help/sv/running.page b/help/sv/running.page deleted file mode 100644 index cfe592e..0000000 --- a/help/sv/running.page +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - Hitta Shotwell i programmenyn, eller låt det starta automatiskt när du stoppar i en kamera. - - - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Köra Shotwell - -

När det väl är installerat är Shotwell tillgängligt i menyn Program under Grafik eller Bilder.

- -

Shotwell kan också exekveras automatiskt när en kamera stoppas i din dator. För att kontrollera att ditt system är inställt på att köra Shotwell när en kamera upptäcks, gå till RedigeraInställningar i ett Nautilus(filhanterare)-fönster och markera fliken Media. Du kommer att se en rullgardinsmeny som heter Bilder: vilken låter dig välja Shotwell som ditt program för bildhantering.

- - -

Shotwell kan också exekveras direkt från dess byggkatalog, men det rekommenderas bara för testning av Shotwell eller för utvecklare.

-
- -
diff --git a/help/sv/share-background.page b/help/sv/share-background.page deleted file mode 100644 index 8f5e39a..0000000 --- a/help/sv/share-background.page +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - Ställ in din skrivbordsbakgrund till att använda en enstaka bild eller ett bildspel. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Ange en skrivbordsbakgrund eller ett bildspel - -

För att ange en bild som din skrivbordsbakgrund, markera bilden och välj sedan ArkivAnvänd som skrivbordsbakgrund.

- -

Du kan också sätta din bakgrund till ett bildspel. För att göra detta, markera bilderna för bildspel och välj ArkivAnvänd som bildspel för skrivbord…. Shotwell kommer att fråga om bildspelsfördröjning, vilket kan vara vilket intervall som helst upp till en dags längd. Bildspelet i bakgrunden kommer att fortsätta även när Shotwell inte körs.

- -
diff --git a/help/sv/share-export.page b/help/sv/share-export.page deleted file mode 100644 index b9e21fc..0000000 --- a/help/sv/share-export.page +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - Kopiera bilder från Shotwell så att du kan använda dem på andra ställen. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Exportera bilder - -

För att exportera bilder från Shotwell via dra-och-släpp, dra bilderna från Shotwell till ett filhanterarfönster eller ditt skrivbord. De nya filerna kommer att vara kopior av bilderna i ditt bibliotek.

- -

Alternativt kan du markera några bilder och välja ArkivExportera…-kommandot eller trycka SkiftCtrlE som exporterar bilderna under tiden du finjusterar storlek och dimensioner på dina bildfiler. Ett fönster visas och låter dig göra följande val:

- - -

Ett format för export.

- -

Välj Oförändrad för att exportera bilderna i deras originalformat utan redigeringar gjorda i Shotwell. RAW-bilder kommer att exporteras i deras original-RAW-format.

-

Välj Aktuellt för att exportera bilder med ändringar gjorda i Shotwell. RAW-bilder kommer att exporteras i JPEG-format om du har redigerat dem i Shotwell, annars i deras ursprungliga RAW-format.

-

Eller så kan du välja ett specifikt bildformat (JPEG, PNG, TIFF, BMP) för exporten. Ändringar gjorda i Shotwell kommer att inkluderas och Shotwell kommer att konvertera bilderna till målformatet.

-
-
-

Bildkvaliteten för export (låg, mellan, hög eller maximal)

-

En skalningsbegränsning (vilket betyder hur Shotwell bestämmer hur bilderna ska skalas) och önskad bildpunktsstorlek.

- -Original size

Image will be exported without any scaling applied

-Longest edge

Image will be exported by having its longest edge scaled to Pixels and the other according to the aspect ratio

-Width

The image width will have its width scaled to the given pixel size and its height according to the aspect ratio. This is equivalent to Longest Edge for landscape pictures.

-Height

The image height will have its height scaled to the given pixel size and its width according to the aspect ratio. This is equivalent to Longest Edge for portrait pictures.

-
-
-

Huruvida du vill exportera metadata som taggar eller betyg. Detta kan skydda din sekretess om du har geoplats-taggar eller taggar ingen bör se.

-
- -

Om valt kommer Shotwell att skriva taggar, titlar och annan metadata till de nya filerna.

- -
diff --git a/help/sv/share-print.page b/help/sv/share-print.page deleted file mode 100644 index 6b757de..0000000 --- a/help/sv/share-print.page +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - Välj ArkivSkriv ut…. För fler utskriftsalternativ, välj fliken Sidinställning i dialogen Skriv ut. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Skriva ut - -

För att skriva ut en bild, markera den och välj ArkivSkriv ut….

- -

Shotwell kan också skriva ut flera bilder på en sida - för att göra detta, markera flera bilder, välj ArkivSkriv ut… och i dialogen Skriv ut, välj fliken Bildinställningar. I Bildinställningar, välj ett av alternativen för flera-bilder-per-sida under Automatisk storlek.

- -

Om du vill ställa in formatering, pappersstorlek och riktningsalternativ, välj fliken Sidinställning i dialogen Skriv ut innan utskrift.

-
diff --git a/help/sv/share-send.page b/help/sv/share-send.page deleted file mode 100644 index 1a251f5..0000000 --- a/help/sv/share-send.page +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - Skicka bilder via e-post, snabbmeddelanden eller på andra sätt. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Skicka bilder - -

Shotwell kan skicka bilder genom GNOME-skrivbordets "Skicka till"-mekanism som låter dig skicka bilder via e-post, snabbmeddelanden eller på andra sätt.

-

För att skicka bilder, visa dem i Shotwell och välj ArkivSkicka till…, eller högerklicka på bilderna och välj Skicka till… från snabbmenyn. En Skicka till-dialog kommer att visas vilken låter dig välja olika sätt att skicka filerna på (som e-post eller snabbmeddelanden) och en destination. Du kan också välja att skicka filerna i ett komprimerat format.

- -
diff --git a/help/sv/share-slideshow.page b/help/sv/share-slideshow.page deleted file mode 100644 index b2bb3db..0000000 --- a/help/sv/share-slideshow.page +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - Se en bildpresentation av dina bilder. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Bildpresentationer - -

För att se ett bildspel över en samling i Shotwell, navigera över samlingen och markera VisaBildspel eller tryck F5.

- -

Du kan ändra en del inställningar i ett körande bildspel:

- - -

Hur länge en bild ska visas: 1 - 30 sekunder

-

Du kan välja olika övergångseffekter.

-

Tiden för övergångseffekter: 0,1 - 1,0 sekunder

-
-
diff --git a/help/sv/share-upload.page b/help/sv/share-upload.page deleted file mode 100644 index 8effa11..0000000 --- a/help/sv/share-upload.page +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - Publicera bilden till Facebook, Flickr, Picasa Web Albums eller andra webbplatser. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Publicera på webben - -

Genom att använda insticksmoduler kan Shotwell publicera bilder och filmer till följande tjänster, som var och en kräver ett konto:

- - -

Facebook

-

Flickr

-

Picasa Web Albums and Google+

-

YouTube (videos only)

-

Tumblr (videos only)

-

Vilken webbplats som helst som kör Piwigo-bildgalleriprogram (endast bilder)

-
- -

To publish selected photos in a collection, choose EditPreferences and - click on the Plugins tab to enable the plugin for the service you want to publish to. Next, choose, - FilePublish, press the Publish toolbar button or use CtrlShiftP. - You will see a dialog that lets you select a publishing service. You will then need to log in or create an account.

- -

Att publicera till Facebook kräver att du ger tillstånd för programmet Shotwell för Facebook. Du behöver bara ge dessa tillstånd en gång, då du först associerar Shotwell med ditt Facebook-konto.

-

Du kommer bara kunna publicera bilder med högst behörigheten du givit tillstånd till för programmet Shotwell för Facebook

- -

På liknande sätt kräver Flickr att du loggar in och tillåter Shotwell Connect att komma åt ditt konto.

- -

Om du har ett Google-konto, men ännu inte använt Picasa Web Albums behöver du logga in till Picasa med en webbläsare en gång innan du kan publicera till tjänsten.

-
diff --git a/help/sv/sv.po b/help/sv/sv.po index 7ad6c1b..4b46131 100644 --- a/help/sv/sv.po +++ b/help/sv/sv.po @@ -1,13 +1,13 @@ # Swedish translation for shotwell help -# Copyright © 2015, 2016, 2017 shotwell's COPYRIGHT HOLDER +# Copyright © 2015, 2016, 2017, 2018 shotwell's COPYRIGHT HOLDER # This file is distributed under the same license as the shotwell package. # Josef Andersson , 2015. -# Anders Jonsson , 2016, 2017. +# Anders Jonsson , 2016, 2017, 2018. msgid "" msgstr "" "Project-Id-Version: shotwell master\n" -"POT-Creation-Date: 2017-09-25 16:12+0000\n" -"PO-Revision-Date: 2017-09-28 22:48+0200\n" +"POT-Creation-Date: 2018-09-05 07:38+0000\n" +"PO-Revision-Date: 2018-09-05 22:19+0200\n" "Last-Translator: Anders Jonsson \n" "Language-Team: Swedish \n" "Language: sv\n" @@ -15,7 +15,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 2.0.3\n" +"X-Generator: Poedit 2.1.1\n" #. Put one translator per line, in the form NAME , YEAR1, YEAR2 msgctxt "_" @@ -92,11 +92,26 @@ msgstr "" #. (itstool) path: item/title #: C/edit-adjustments.page:28 +msgid "Contrast" +msgstr "Kontrast" + +#. (itstool) path: item/p +#: C/edit-adjustments.page:29 +msgid "" +"Changes the contrast of a photo. Use it to correct flat-looking photos or " +"photos where the difference between bright and dark spots seems to big." +msgstr "" +"Ändrar kontrasten för en bild. Använd det för att korrigera bilder som ser " +"platta ut eller bilder där skillnaden mellan ljusa och mörka partier verkar " +"för stor." + +#. (itstool) path: item/title +#: C/edit-adjustments.page:32 msgid "Saturation" msgstr "Mättnad" #. (itstool) path: item/p -#: C/edit-adjustments.page:29 +#: C/edit-adjustments.page:33 msgid "" "Changes how vivid colors look. If your photo looks gray and washed out, try " "increasing the saturation. If colors look too bold, try decreasing it." @@ -105,12 +120,12 @@ msgstr "" "prova att öka mättnaden. Om färgerna är för starka, prova att minska den." #. (itstool) path: item/title -#: C/edit-adjustments.page:32 +#: C/edit-adjustments.page:36 msgid "Tint" msgstr "Tint" #. (itstool) path: item/p -#: C/edit-adjustments.page:33 +#: C/edit-adjustments.page:37 msgid "" "This tints the photo with a color. It's useful for correcting photos taken " "with the wrong white balance setting, which typically have an unnatural " @@ -122,12 +137,12 @@ msgstr "" "tagna utomhus med vitbalansen inställd till ”Tungsten” kan ha en blå toning." #. (itstool) path: item/title -#: C/edit-adjustments.page:36 +#: C/edit-adjustments.page:40 msgid "Temperature" msgstr "Temperatur" #. (itstool) path: item/p -#: C/edit-adjustments.page:37 +#: C/edit-adjustments.page:41 msgid "" "Changes how \"warm\" or \"cool\" the picture looks. Use this to make cold, " "depressing scenes look more lively, for example." @@ -136,12 +151,12 @@ msgstr "" "att få kalla, deprimerande motiv att se mer levande ut." #. (itstool) path: item/title -#: C/edit-adjustments.page:40 +#: C/edit-adjustments.page:44 msgid "Shadows" msgstr "Skuggor" #. (itstool) path: item/p -#: C/edit-adjustments.page:41 +#: C/edit-adjustments.page:45 msgid "" "This makes shadowy areas appear lighter. Use this to make detail more " "visible if it's obscured by the darkness of a shadow." @@ -150,12 +165,12 @@ msgstr "" "detaljer om något döljs av skuggor." #. (itstool) path: item/title -#: C/edit-adjustments.page:44 +#: C/edit-adjustments.page:48 msgid "Intensity Threshold (sliders on the histogram)" msgstr "Intensitettröskelvärde (skjutreglage på histogrammet)" #. (itstool) path: item/p -#: C/edit-adjustments.page:45 +#: C/edit-adjustments.page:49 msgid "" "These sliders change how light the brightest white is and how dark the " "darkest black is. Use them to change the contrast of the photo. Photos which " @@ -321,6 +336,48 @@ msgstr "" "Att beskära en bild och använda ”tredelningsregeln” för att förbättra " "sammansättningen." +#. (itstool) path: info/desc +#: C/edit-date-time.page:7 +msgid "Change the date and time of photos if those details are incorrect." +msgstr "Ändra datum och tid för bilder om de inte stämmer." + +#. (itstool) path: page/title +#: C/edit-date-time.page:12 +msgid "Adjust the date and time of photos" +msgstr "Justera datum och tid för bilder" + +#. (itstool) path: page/p +#: C/edit-date-time.page:14 +msgid "" +"To adjust the date and time of photos, select the photos you would like to " +"adjust, choose PhotosAdjust Date and Time... and select a new date and time." +msgstr "" +"För att justera datum och tid för bilder, markera de bilder du vill justera, " +"välj BilderJustera datum och tid… och " +"markera nytt datum och tid." + +#. (itstool) path: page/p +#: C/edit-date-time.page:16 +msgid "" +"If you are changing the date and time of multiple photos at once, you can " +"choose to shift all the photos by the same amount of time or to set all the " +"photos to the same time." +msgstr "" +"Om du ändrar datum och tid för flera bilder samtidigt kan du välja att ändra " +"tiden för alla bilder eller ange samma tid för alla bilder samtidigt." + +#. (itstool) path: page/p +#: C/edit-date-time.page:18 +msgid "" +"By default, the date and time are only changed inside Shotwell. You can also " +"choose to modify the date and time in the original file, but this cannot be " +"undone once you exit Shotwell." +msgstr "" +"Som standard ändras datum och tid endast i Shotwell. Du kan också välja att " +"ändra datum och tid i originalfilen, men det kan inte ångras när du väl har " +"avslutat Shotwell." + #. (itstool) path: info/desc #: C/edit-enhance.page:7 msgid "" @@ -635,48 +692,6 @@ msgstr "Dra i skjutreglaget för att uppnå önska grad av uträtning." msgid "Press Straighten when finished." msgstr "Tryck Räta ut när klar." -#. (itstool) path: info/desc -#: C/edit-date-time.page:7 -msgid "Change the date and time of photos if those details are incorrect." -msgstr "Ändra datum och tid för bilder om de inte stämmer." - -#. (itstool) path: page/title -#: C/edit-date-time.page:12 -msgid "Adjust the date and time of photos" -msgstr "Justera datum och tid för bilder" - -#. (itstool) path: page/p -#: C/edit-date-time.page:14 -msgid "" -"To adjust the date and time of photos, select the photos you would like to " -"adjust, choose PhotosAdjust Date and Time... and select a new date and time." -msgstr "" -"För att justera datum och tid för bilder, markera de bilder du vill justera, " -"välj BilderJustera datum och tid… och " -"markera nytt datum och tid." - -#. (itstool) path: page/p -#: C/edit-date-time.page:16 -msgid "" -"If you are changing the date and time of multiple photos at once, you can " -"choose to shift all the photos by the same amount of time or to set all the " -"photos to the same time." -msgstr "" -"Om du ändrar datum och tid för flera bilder samtidigt kan du välja att ändra " -"tiden för alla bilder eller ange samma tid för alla bilder samtidigt." - -#. (itstool) path: page/p -#: C/edit-date-time.page:18 -msgid "" -"By default, the date and time are only changed inside Shotwell. You can also " -"choose to modify the date and time in the original file, but this cannot be " -"undone once you exit Shotwell." -msgstr "" -"Som standard ändras datum och tid endast i Shotwell. Du kan också välja att " -"ändra datum och tid i originalfilen, men det kan inte ångras när du väl har " -"avslutat Shotwell." - #. (itstool) path: info/desc #: C/edit-undo.page:7 msgid "Return a photo to its original, unedited form." @@ -2697,8 +2712,64 @@ msgstr "" "En skalningsbegränsning (vilket betyder hur Shotwell bestämmer hur bilderna " "ska skalas) och önskad bildpunktsstorlek." +#. (itstool) path: item/title +#: C/share-export.page:40 +msgid "Original size" +msgstr "Ursprungsstorlek" + +#. (itstool) path: item/p +#: C/share-export.page:40 +msgid "Image will be exported without any scaling applied" +msgstr "Bilden kommer att exporteras utan att någon skalning tillämpas" + +#. (itstool) path: item/title +#: C/share-export.page:41 +msgid "Longest edge" +msgstr "Längsta kanten" + +#. (itstool) path: item/p +#: C/share-export.page:41 +msgid "" +"Image will be exported by having its longest edge scaled to Pixels and the other according to the aspect ratio" +msgstr "" +"Bilden kommer att exporteras med sin längsta kant skalad till " +"Bildpunkter och den andra enligt bildförhållandet" + +#. (itstool) path: item/title +#: C/share-export.page:42 +msgid "Width" +msgstr "Bredd" + #. (itstool) path: item/p -#: C/share-export.page:39 +#: C/share-export.page:42 +msgid "" +"The image width will have its width scaled to the given pixel size and its " +"height according to the aspect ratio. This is equivalent to Longest " +"Edge for landscape pictures." +msgstr "" +"Bildens bredd kommer att skalas till det angivna antalet bildpunkter och " +"dess höjd enligt bildförhållandet. Detta är ekvivalent med Längsta " +"kanten för liggande bilder." + +#. (itstool) path: item/title +#: C/share-export.page:43 +msgid "Height" +msgstr "Höjd" + +#. (itstool) path: item/p +#: C/share-export.page:43 +msgid "" +"The image height will have its height scaled to the given pixel size and its " +"width according to the aspect ratio. This is equivalent to Longest " +"Edge for portrait pictures." +msgstr "" +"Bildens höjd kommer att skalas till det angivna antalet bildpunkter och dess " +"bredd enligt bildförhållandet. Detta är ekvivalent med Längsta kanten för stående bilder." + +#. (itstool) path: item/p +#: C/share-export.page:46 msgid "" "The option whether you like to export metadatas such as tags or ratings. " "This can help to save your privacy if you have geolocation tags or tags " @@ -2708,7 +2779,7 @@ msgstr "" "din sekretess om du har geoplats-taggar eller taggar ingen bör se." #. (itstool) path: page/p -#: C/share-export.page:42 +#: C/share-export.page:49 msgid "" "If selected, Shotwell will write tags, titles, and other metadata to the new " "files." @@ -2868,36 +2939,34 @@ msgstr "" #. (itstool) path: item/p #: C/share-upload.page:18 -msgid "Facebook" -msgstr "Facebook" +#| msgid "Facebook" +msgid "Facebook" +msgstr "Facebook" #. (itstool) path: item/p #: C/share-upload.page:19 -msgid "Flickr" -msgstr "Flickr" +#| msgid "Flickr" +msgid "Flickr" +msgstr "Flickr" #. (itstool) path: item/p #: C/share-upload.page:20 msgid "" -"Picasa Web Albums and " +"Picasa Web Albums and " "Google+" msgstr "" -"Picasa Web Albums och " +"Picasa Web Albums och " "Google+" #. (itstool) path: item/p #: C/share-upload.page:21 -msgid "YouTube (videos only)" -msgstr "YouTube (endast video)" +msgid "YouTube (videos only)" +msgstr "YouTube (endast video)" #. (itstool) path: item/p #: C/share-upload.page:22 -msgid "" -"Yandex.Fotki, a photo site " -"popular in Russia (photos only)" -msgstr "" -"Yandex.Fotki, en populär " -"webbplats i Ryssland (endast bilder)" +msgid "Tumblr (videos only)" +msgstr "Tumblr (endast video)" #. (itstool) path: item/p #: C/share-upload.page:23 @@ -2915,18 +2984,18 @@ msgid "" "gui>Preferences and click on the Plugins tab " "to enable the plugin for the service you want to publish to. Next, choose, " "FilePublish, press the Publish toolbar button or use CtrlP. You " -"will see a dialog that lets you select a publishing service. You will then " -"need to log in or create an account." +"gui> toolbar button or use CtrlShiftP. You will see a dialog that lets you select a publishing " +"service. You will then need to log in or create an account." msgstr "" "För att publicera markerade bilder i en samling, välj RedigeraInställningar och klicka på fliken " "Insticksmoduler för att aktivera insticket för tjänsten du vill " "publicera till. Välj sedan ArkivPublicera, tryck verktygsfältsknappen Publicera eller använd " -"CtrlP. Du får då upp en dialog som " -"låter dig välja en publiceringstjänst. Du måste sedan logga in eller skapa " -"ett konto." +"CtrlSkiftP. Du får då upp " +"en dialog som låter dig välja en publiceringstjänst. Du måste sedan logga in " +"eller skapa ett konto." #. (itstool) path: page/p #: C/share-upload.page:31 @@ -3171,6 +3240,13 @@ msgstr "" "kan ha flera taggar kopplade till dem. När du klickar på namnet på en tagg i " "sidopanelen kommer du att se alla bilder associerade med den taggen." +#~ msgid "" +#~ "Yandex.Fotki, a photo site " +#~ "popular in Russia (photos only)" +#~ msgstr "" +#~ "Yandex.Fotki, en populär " +#~ "webbplats i Ryssland (endast bilder)" + #~ msgctxt "text" #~ msgid "Shotwell" #~ msgstr "Shotwell" diff --git a/help/sv/sv.stamp b/help/sv/sv.stamp deleted file mode 100644 index e69de29..0000000 diff --git a/help/sv/view-displaying.page b/help/sv/view-displaying.page deleted file mode 100644 index 4a2ba95..0000000 --- a/help/sv/view-displaying.page +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - Lär dig olika sätt att visa dina bilder: i ett rutnät som fyller huvudfönstret eller hela skärmen. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Bildvyer - -

När du väljer en samling i sidopanelen visar Shotwell alla bilder i samlingen i huvudfönstret. Längst ned till höger finns ett skjutreglage som justerar vystorleken på miniatyrbilderna. Du kan också justera miniatyrbildsstorleken genom att använda plus och minustangenterna (+ och -) eller genom att trycka Ctrl medan du rör rullhjulet på musen.

- -

Du kan visa en bild i helskärm genom att dubbelklicka på det. Därifrån kan du gå vidare till andra bilden i samlingen med knapparna Bakåt och Framåt. För att återvända till samlingen, dubbelklicka på bilden eller tryck Esc.

- -

När du visar en bild i helskärmsläge blir skjutreglaget i verktygsfältet zoom. Du kan flytta runt genom att ta tag i och dra varsomhelst på bilden. Du kan också zooma med ditt rullhjul eller genom att trycka följande tangentbordsgenvägar:Ctrl0 för hela bilden, Ctrl1 för 100% (1 bildpunkt i bilden = 1 bildpunkt på skärm) och Ctrl2 för 200% (1 bildpunkt för skärm = 2x2 skärmbildpunkter).

- -

Shotwell erbjuder ett helskärmsläge för att visa bilden. Välj VisaHelskärm eller tryck F11. För att se verktygsfältet i helskärmsläge, flytta din mus till nedre delen av skärmen. Verktygsfältet har knappar för att flytta genom samlingen, att fästa verktygsfältet (så att det inte döljs när du flyttar musen) och för att lämna helskärmsvyn.

- -
-Visa filmer -

När du dubbelklickar på en film kommer Shotwell att starta en extern videospelare för att spela filmen. Det är för närvarande inte möjligt att visa en film i helskärmsläge i Shotwell, eller att spela upp en film i själva Shotwell.

-
- -
diff --git a/help/sv/view-information.page b/help/sv/view-information.page deleted file mode 100644 index 1daaac2..0000000 --- a/help/sv/view-information.page +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - Visa detaljerad information om bilder, som exponeringsläge använt av kameran. - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Grundläggande och utökad information - -

Panelen för grundläggande information visas längst ned i sidopanelen och ger en kortfattad sammanfattning av de bilder du har markerat. Om inga bilder är markerade visar den en sammanfattning av hela samlingen. Du kan växla visningen av denna panel genom att använda VisaGrundläggande information-kommandot.

- -

Fönstret Utökad information visar mer information om den markerade bilden. Kommandot VisaUtökad information eller CtrlSkiftX växlar visningen av detta fönster.

- -
diff --git a/help/sv/view-sidebar.page b/help/sv/view-sidebar.page deleted file mode 100644 index faac524..0000000 --- a/help/sv/view-sidebar.page +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - Sidopanelen till vänster om fönstret listar olika vyer över ditt bibliotek. - - - - - - - - - - - - - Josef Andersson - josef.andersson@fripost.org - 2015 - - - - Anders Jonsson - anders.jonsson@norsjovallen.se - 2016 - - - - Sidopanelen - -

Sidopanelen på den vänstra sidan av Shotwell-fönstret listar olika vyer över ditt bibliotek. Fastän du kan se samma bild i olika vyer är den endast lagrad en gång på din hårddisk.

- -

Vyn Senaste import listar dina senast importerade bilder oavsett om de är importerade från F-Spot, din kamera, ett minneskort eller hårddisken.

- -

Flaggade listar alla bilder du tidigare flaggat.

- -

Sparad sökning låter dig sortera ditt bibliotek efter flera kriterier.

- -

Mappen Händelser listar alla händelser i ditt bibliotek. En händelser är en grupp av bilder som tagits ungefär samtidigt.

- -

Mappen Taggar listar alla taggar du tilldelat till bilder. Bilder kan ha flera taggar kopplade till dem. När du klickar på namnet på en tagg i sidopanelen kommer du att se alla bilder associerade med den taggen.

- -
diff --git a/icons/Makefile.am b/icons/Makefile.am deleted file mode 100644 index 0c93e7a..0000000 --- a/icons/Makefile.am +++ /dev/null @@ -1,57 +0,0 @@ -dist_noinst_DATA = \ - about-braunschweig.jpg \ - all-rejected.png \ - crop-pivot-reticle.png \ - crop.svg \ - faces-tool.png \ - filter-flagged-disabled.png \ - filter-flagged.png \ - filter-photos-disabled.png \ - filter-photos.png \ - filter-raw-disabled.png \ - filter-raw.png \ - filter-videos-disabled.png \ - filter-videos.png \ - five-star-filter.svg \ - five-stars.svg \ - flag-page.png \ - flag-trinket.png \ - four-star-filter-plus.svg \ - four-stars.svg \ - generic-plugin.png \ - image-adjust.svg \ - import-all.png \ - import.svg \ - make-primary.svg \ - many-faces.png \ - merge.svg \ - multiple-events.png \ - multiple-tags.png \ - no-event.png \ - noninterpretable-video.png \ - one-event.png \ - one-face.png \ - one-star-filter-plus.svg \ - one-star.svg \ - one-tag.png \ - pin-toolbar.svg \ - publish.png \ - redeye.png \ - rejected.svg \ - shotwell-16.png \ - shotwell-auto-enhance.png \ - shotwell.png \ - shotwell.svg \ - shotwell-street.jpg \ - slideshow-extension-point.png \ - sprocket.png \ - straighten.svg \ - three-star-filter-plus.svg \ - three-stars.svg \ - two-star-filter-plus.svg \ - two-stars.svg \ - videos-page.png \ - zoom-in.png \ - zoom-out.png - --include $(top_srcdir)/git.mk diff --git a/icons/Makefile.in b/icons/Makefile.in deleted file mode 100644 index e3282cc..0000000 --- a/icons/Makefile.in +++ /dev/null @@ -1,568 +0,0 @@ -# Makefile.in generated by automake 1.15.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2017 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -am__is_gnu_make = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = icons -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/appstream-xml.m4 \ - $(top_srcdir)/m4/ax_generate_changelog.m4 \ - $(top_srcdir)/m4/ax_is_release.m4 \ - $(top_srcdir)/m4/ax_require_defined.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gsettings.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/yelp.m4 $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(dist_noinst_DATA) \ - $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -SOURCES = -DIST_SOURCES = -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -DATA = $(dist_noinst_DATA) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -API_VERSION = @API_VERSION@ -APPSTREAM_UTIL = @APPSTREAM_UTIL@ -AR = @AR@ -AUTHENTICATOR_CFLAGS = @AUTHENTICATOR_CFLAGS@ -AUTHENTICATOR_LIBS = @AUTHENTICATOR_LIBS@ -AUTHENTICATOR_PACKAGES = @AUTHENTICATOR_PACKAGES@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GIT = @GIT@ -GITVER = @GITVER@ -GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -HAVE_EXTRA_PLUGINS = @HAVE_EXTRA_PLUGINS@ -HAVE_UNITY = @HAVE_UNITY@ -HELP_DIR = @HELP_DIR@ -IMPORT_CFLAGS = @IMPORT_CFLAGS@ -IMPORT_LIBS = @IMPORT_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -ITSTOOL = @ITSTOOL@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAJOR_VERSION = @MAJOR_VERSION@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MICRO_VERSION = @MICRO_VERSION@ -MINOR_VERSION = @MINOR_VERSION@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -PLUGIN_CFLAGS = @PLUGIN_CFLAGS@ -PLUGIN_LIBS = @PLUGIN_LIBS@ -POSUB = @POSUB@ -PUBLISHER_VALAFLAGS = @PUBLISHER_VALAFLAGS@ -PUBLISHING_CFLAGS = @PUBLISHING_CFLAGS@ -PUBLISHING_LIBS = @PUBLISHING_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SHOTWELL_CFLAGS = @SHOTWELL_CFLAGS@ -SHOTWELL_LIBS = @SHOTWELL_LIBS@ -STRIP = @STRIP@ -THUMBNAILER_CFLAGS = @THUMBNAILER_CFLAGS@ -THUMBNAILER_LIBS = @THUMBNAILER_LIBS@ -TRANSITIONS_CFLAGS = @TRANSITIONS_CFLAGS@ -TRANSITIONS_LIBS = @TRANSITIONS_LIBS@ -UNITY_CFLAGS = @UNITY_CFLAGS@ -UNITY_LIBS = @UNITY_LIBS@ -UNITY_VALAFLAGS = @UNITY_VALAFLAGS@ -USE_NLS = @USE_NLS@ -VALAC = @VALAC@ -VALAFLAGS = @VALAFLAGS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMLLINT = @XMLLINT@ -YELP_LC_DIST = @YELP_LC_DIST@ -YELP_LC_MEDIA_LINKS = @YELP_LC_MEDIA_LINKS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -appstreamxmldir = @appstreamxmldir@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -gsettingsschemadir = @gsettingsschemadir@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -runstatedir = @runstatedir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -dist_noinst_DATA = \ - about-braunschweig.jpg \ - all-rejected.png \ - crop-pivot-reticle.png \ - crop.svg \ - faces-tool.png \ - filter-flagged-disabled.png \ - filter-flagged.png \ - filter-photos-disabled.png \ - filter-photos.png \ - filter-raw-disabled.png \ - filter-raw.png \ - filter-videos-disabled.png \ - filter-videos.png \ - five-star-filter.svg \ - five-stars.svg \ - flag-page.png \ - flag-trinket.png \ - four-star-filter-plus.svg \ - four-stars.svg \ - generic-plugin.png \ - image-adjust.svg \ - import-all.png \ - import.svg \ - make-primary.svg \ - many-faces.png \ - merge.svg \ - multiple-events.png \ - multiple-tags.png \ - no-event.png \ - noninterpretable-video.png \ - one-event.png \ - one-face.png \ - one-star-filter-plus.svg \ - one-star.svg \ - one-tag.png \ - pin-toolbar.svg \ - publish.png \ - redeye.png \ - rejected.svg \ - shotwell-16.png \ - shotwell-auto-enhance.png \ - shotwell.png \ - shotwell.svg \ - shotwell-street.jpg \ - slideshow-extension-point.png \ - sprocket.png \ - straighten.svg \ - three-star-filter-plus.svg \ - three-stars.svg \ - two-star-filter-plus.svg \ - two-stars.svg \ - videos-page.png \ - zoom-in.png \ - zoom-out.png - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign icons/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign icons/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(DATA) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags-am uninstall uninstall-am - -.PRECIOUS: Makefile - - --include $(top_srcdir)/git.mk - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/icons/about-braunschweig.jpg b/icons/about-braunschweig.jpg deleted file mode 100644 index dae41ae..0000000 Binary files a/icons/about-braunschweig.jpg and /dev/null differ diff --git a/icons/about-celle.jpg b/icons/about-celle.jpg new file mode 100644 index 0000000..288ba4f Binary files /dev/null and b/icons/about-celle.jpg differ diff --git a/icons/all-rejected.png b/icons/all-rejected.png deleted file mode 100644 index 2f36668..0000000 Binary files a/icons/all-rejected.png and /dev/null differ diff --git a/icons/avatar-default-symbolic.svg b/icons/avatar-default-symbolic.svg new file mode 100644 index 0000000..3af03a0 --- /dev/null +++ b/icons/avatar-default-symbolic.svg @@ -0,0 +1,32 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + diff --git a/icons/crop-pivot-reticle-symbolic.svg b/icons/crop-pivot-reticle-symbolic.svg new file mode 100644 index 0000000..b814737 --- /dev/null +++ b/icons/crop-pivot-reticle-symbolic.svg @@ -0,0 +1,207 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/crop-pivot-reticle.png b/icons/crop-pivot-reticle.png deleted file mode 100644 index 591235d..0000000 Binary files a/icons/crop-pivot-reticle.png and /dev/null differ diff --git a/icons/crop.svg b/icons/crop.svg deleted file mode 100644 index 39320d0..0000000 --- a/icons/crop.svg +++ /dev/null @@ -1,57 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/events-merge-symbolic.svg b/icons/events-merge-symbolic.svg new file mode 100644 index 0000000..2a524a9 --- /dev/null +++ b/icons/events-merge-symbolic.svg @@ -0,0 +1,122 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + diff --git a/icons/faces-tool.png b/icons/faces-tool.png deleted file mode 100644 index 5276ce2..0000000 Binary files a/icons/faces-tool.png and /dev/null differ diff --git a/icons/filter-flagged-disabled-symbolic.svg b/icons/filter-flagged-disabled-symbolic.svg new file mode 100644 index 0000000..986cc53 --- /dev/null +++ b/icons/filter-flagged-disabled-symbolic.svg @@ -0,0 +1,31 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + diff --git a/icons/filter-flagged-disabled.png b/icons/filter-flagged-disabled.png deleted file mode 100644 index e03284f..0000000 Binary files a/icons/filter-flagged-disabled.png and /dev/null differ diff --git a/icons/filter-flagged-symbolic.svg b/icons/filter-flagged-symbolic.svg new file mode 100644 index 0000000..0ecb44c --- /dev/null +++ b/icons/filter-flagged-symbolic.svg @@ -0,0 +1,31 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + diff --git a/icons/filter-flagged.png b/icons/filter-flagged.png deleted file mode 100644 index ad5db78..0000000 Binary files a/icons/filter-flagged.png and /dev/null differ diff --git a/icons/filter-photos-disabled-symbolic.svg b/icons/filter-photos-disabled-symbolic.svg new file mode 100644 index 0000000..f392cdb --- /dev/null +++ b/icons/filter-photos-disabled-symbolic.svg @@ -0,0 +1,33 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + + diff --git a/icons/filter-photos-disabled.png b/icons/filter-photos-disabled.png deleted file mode 100644 index a1dce74..0000000 Binary files a/icons/filter-photos-disabled.png and /dev/null differ diff --git a/icons/filter-photos-symbolic.svg b/icons/filter-photos-symbolic.svg new file mode 100644 index 0000000..11a2e77 --- /dev/null +++ b/icons/filter-photos-symbolic.svg @@ -0,0 +1,33 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + + diff --git a/icons/filter-photos.png b/icons/filter-photos.png deleted file mode 100644 index 355aa85..0000000 Binary files a/icons/filter-photos.png and /dev/null differ diff --git a/icons/filter-raw-disabled-symbolic.svg b/icons/filter-raw-disabled-symbolic.svg new file mode 100644 index 0000000..68c3957 --- /dev/null +++ b/icons/filter-raw-disabled-symbolic.svg @@ -0,0 +1,17 @@ + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + Gnome Symbolic Icon Theme + + + + diff --git a/icons/filter-raw-disabled.png b/icons/filter-raw-disabled.png deleted file mode 100644 index 63dfd5b..0000000 Binary files a/icons/filter-raw-disabled.png and /dev/null differ diff --git a/icons/filter-raw-symbolic.svg b/icons/filter-raw-symbolic.svg new file mode 100644 index 0000000..e8201f5 --- /dev/null +++ b/icons/filter-raw-symbolic.svg @@ -0,0 +1,17 @@ + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + Gnome Symbolic Icon Theme + + + + diff --git a/icons/filter-raw.png b/icons/filter-raw.png deleted file mode 100644 index 9d94946..0000000 Binary files a/icons/filter-raw.png and /dev/null differ diff --git a/icons/filter-videos-disabled-symbolic.svg b/icons/filter-videos-disabled-symbolic.svg new file mode 100644 index 0000000..25b81e3 --- /dev/null +++ b/icons/filter-videos-disabled-symbolic.svg @@ -0,0 +1,33 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + diff --git a/icons/filter-videos-disabled.png b/icons/filter-videos-disabled.png deleted file mode 100644 index 39a1bd5..0000000 Binary files a/icons/filter-videos-disabled.png and /dev/null differ diff --git a/icons/filter-videos-symbolic.svg b/icons/filter-videos-symbolic.svg new file mode 100644 index 0000000..fb1a406 --- /dev/null +++ b/icons/filter-videos-symbolic.svg @@ -0,0 +1,33 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + diff --git a/icons/filter-videos.png b/icons/filter-videos.png deleted file mode 100644 index 8634acd..0000000 Binary files a/icons/filter-videos.png and /dev/null differ diff --git a/icons/five-star-filter.svg b/icons/five-star-filter.svg deleted file mode 100644 index 2bc545a..0000000 --- a/icons/five-star-filter.svg +++ /dev/null @@ -1,432 +0,0 @@ - - - -image/svg+xml - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/five-stars.svg b/icons/five-stars.svg deleted file mode 100644 index ba450dc..0000000 --- a/icons/five-stars.svg +++ /dev/null @@ -1,314 +0,0 @@ - - - -image/svg+xml - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/flag-page.png b/icons/flag-page.png deleted file mode 100644 index 36e9491..0000000 Binary files a/icons/flag-page.png and /dev/null differ diff --git a/icons/flag-trinket.png b/icons/flag-trinket.png deleted file mode 100644 index a160b72..0000000 Binary files a/icons/flag-trinket.png and /dev/null differ diff --git a/icons/four-star-filter-plus.svg b/icons/four-star-filter-plus.svg deleted file mode 100644 index 9a4216c..0000000 --- a/icons/four-star-filter-plus.svg +++ /dev/null @@ -1,404 +0,0 @@ - - - -image/svg+xml - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/four-stars.svg b/icons/four-stars.svg deleted file mode 100644 index 04f85c4..0000000 --- a/icons/four-stars.svg +++ /dev/null @@ -1,274 +0,0 @@ - - - -image/svg+xml - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/generic-plugin.png b/icons/generic-plugin.png deleted file mode 100644 index 7ad74bd..0000000 Binary files a/icons/generic-plugin.png and /dev/null differ diff --git a/icons/image-adjust-color-symbolic.svg b/icons/image-adjust-color-symbolic.svg new file mode 100644 index 0000000..7b3f1d3 --- /dev/null +++ b/icons/image-adjust-color-symbolic.svg @@ -0,0 +1,28 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + diff --git a/icons/image-adjust.svg b/icons/image-adjust.svg deleted file mode 100644 index b9f130c..0000000 --- a/icons/image-adjust.svg +++ /dev/null @@ -1,369 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - diff --git a/icons/image-auto-adjust-symbolic.svg b/icons/image-auto-adjust-symbolic.svg new file mode 100644 index 0000000..b8953ac --- /dev/null +++ b/icons/image-auto-adjust-symbolic.svg @@ -0,0 +1,26 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + diff --git a/icons/image-crop-symbolic.svg b/icons/image-crop-symbolic.svg new file mode 100644 index 0000000..b44eebb --- /dev/null +++ b/icons/image-crop-symbolic.svg @@ -0,0 +1,32 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + diff --git a/icons/image-missing.png b/icons/image-missing.png new file mode 100644 index 0000000..b540330 Binary files /dev/null and b/icons/image-missing.png differ diff --git a/icons/image-zoom-in-symbolic.svg b/icons/image-zoom-in-symbolic.svg new file mode 100644 index 0000000..420c0ac --- /dev/null +++ b/icons/image-zoom-in-symbolic.svg @@ -0,0 +1,35 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + + + + diff --git a/icons/image-zoom-out-symbolic.svg b/icons/image-zoom-out-symbolic.svg new file mode 100644 index 0000000..8cdc35d --- /dev/null +++ b/icons/image-zoom-out-symbolic.svg @@ -0,0 +1,35 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + + + + diff --git a/icons/import-all.png b/icons/import-all.png deleted file mode 100644 index c9a24ec..0000000 Binary files a/icons/import-all.png and /dev/null differ diff --git a/icons/import.svg b/icons/import.svg deleted file mode 100644 index 64efde4..0000000 --- a/icons/import.svg +++ /dev/null @@ -1,55 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/make-primary.svg b/icons/make-primary.svg deleted file mode 100644 index 150e143..0000000 --- a/icons/make-primary.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/many-faces.png b/icons/many-faces.png deleted file mode 100644 index 8e3071c..0000000 Binary files a/icons/many-faces.png and /dev/null differ diff --git a/icons/merge.svg b/icons/merge.svg deleted file mode 100644 index a150871..0000000 --- a/icons/merge.svg +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/icons/multiple-events-symbolic.svg b/icons/multiple-events-symbolic.svg new file mode 100644 index 0000000..0b7545f --- /dev/null +++ b/icons/multiple-events-symbolic.svg @@ -0,0 +1,38 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/multiple-events.png b/icons/multiple-events.png deleted file mode 100644 index 17c8a4a..0000000 Binary files a/icons/multiple-events.png and /dev/null differ diff --git a/icons/multiple-tags-symbolic.svg b/icons/multiple-tags-symbolic.svg new file mode 100644 index 0000000..715ac8c --- /dev/null +++ b/icons/multiple-tags-symbolic.svg @@ -0,0 +1,36 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + + + + + diff --git a/icons/multiple-tags.png b/icons/multiple-tags.png deleted file mode 100644 index 5c09cf2..0000000 Binary files a/icons/multiple-tags.png and /dev/null differ diff --git a/icons/no-event-symbolic.svg b/icons/no-event-symbolic.svg new file mode 100644 index 0000000..9c27c3f --- /dev/null +++ b/icons/no-event-symbolic.svg @@ -0,0 +1,171 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + + + + + diff --git a/icons/no-event.png b/icons/no-event.png deleted file mode 100644 index d764c04..0000000 Binary files a/icons/no-event.png and /dev/null differ diff --git a/icons/one-event-symbolic.svg b/icons/one-event-symbolic.svg new file mode 100644 index 0000000..66856d7 --- /dev/null +++ b/icons/one-event-symbolic.svg @@ -0,0 +1,166 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + + + + diff --git a/icons/one-event.png b/icons/one-event.png deleted file mode 100644 index dadf2e6..0000000 Binary files a/icons/one-event.png and /dev/null differ diff --git a/icons/one-face.png b/icons/one-face.png deleted file mode 100644 index c3203bc..0000000 Binary files a/icons/one-face.png and /dev/null differ diff --git a/icons/one-star-filter-plus.svg b/icons/one-star-filter-plus.svg deleted file mode 100644 index a104e8d..0000000 --- a/icons/one-star-filter-plus.svg +++ /dev/null @@ -1,322 +0,0 @@ - - - -image/svg+xml - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/one-star.svg b/icons/one-star.svg deleted file mode 100644 index 35e36d8..0000000 --- a/icons/one-star.svg +++ /dev/null @@ -1,161 +0,0 @@ - - - -image/svg+xml - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/one-tag-symbolic.svg b/icons/one-tag-symbolic.svg new file mode 100644 index 0000000..8084b14 --- /dev/null +++ b/icons/one-tag-symbolic.svg @@ -0,0 +1,35 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + + + + diff --git a/icons/one-tag.png b/icons/one-tag.png deleted file mode 100644 index fb456c7..0000000 Binary files a/icons/one-tag.png and /dev/null differ diff --git a/icons/pin-toolbar.svg b/icons/pin-toolbar.svg deleted file mode 100644 index bdda67a..0000000 --- a/icons/pin-toolbar.svg +++ /dev/null @@ -1,528 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - diff --git a/icons/publish.png b/icons/publish.png deleted file mode 100644 index 1f414ea..0000000 Binary files a/icons/publish.png and /dev/null differ diff --git a/icons/redeye.png b/icons/redeye.png deleted file mode 100644 index 47b2ba6..0000000 Binary files a/icons/redeye.png and /dev/null differ diff --git a/icons/rejected.svg b/icons/rejected.svg deleted file mode 100644 index 979b53d..0000000 --- a/icons/rejected.svg +++ /dev/null @@ -1,451 +0,0 @@ - - - - - Breathe Icon Theme computer - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - Breathe Icon Team - - - - - Breathe Icon Theme icon - - - - - - - - - - - - - - - - - - - - - - Jakub Steiner, Cory Kontros, Oxygen and Breathe icon teams - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/icons/shotwell-16.png b/icons/shotwell-16.png deleted file mode 100644 index 546fdcb..0000000 Binary files a/icons/shotwell-16.png and /dev/null differ diff --git a/icons/shotwell-auto-enhance.png b/icons/shotwell-auto-enhance.png deleted file mode 100644 index 4f3dea1..0000000 Binary files a/icons/shotwell-auto-enhance.png and /dev/null differ diff --git a/icons/shotwell.png b/icons/shotwell.png deleted file mode 100644 index 546fdcb..0000000 Binary files a/icons/shotwell.png and /dev/null differ diff --git a/icons/sprocket.png b/icons/sprocket.png deleted file mode 100644 index 218dfbf..0000000 Binary files a/icons/sprocket.png and /dev/null differ diff --git a/icons/stock-eye-symbolic.svg b/icons/stock-eye-symbolic.svg new file mode 100644 index 0000000..759dc7e --- /dev/null +++ b/icons/stock-eye-symbolic.svg @@ -0,0 +1,109 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + diff --git a/icons/straighten-symbolic.svg b/icons/straighten-symbolic.svg new file mode 100644 index 0000000..256b23c --- /dev/null +++ b/icons/straighten-symbolic.svg @@ -0,0 +1,175 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + + + + + + diff --git a/icons/straighten.svg b/icons/straighten.svg deleted file mode 100644 index df4e8d5..0000000 --- a/icons/straighten.svg +++ /dev/null @@ -1,1238 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/icons/three-star-filter-plus.svg b/icons/three-star-filter-plus.svg deleted file mode 100644 index 550d6ab..0000000 --- a/icons/three-star-filter-plus.svg +++ /dev/null @@ -1,358 +0,0 @@ - - - -image/svg+xml - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/three-stars.svg b/icons/three-stars.svg deleted file mode 100644 index 4a0be5e..0000000 --- a/icons/three-stars.svg +++ /dev/null @@ -1,234 +0,0 @@ - - - -image/svg+xml - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/two-star-filter-plus.svg b/icons/two-star-filter-plus.svg deleted file mode 100644 index 3f6d717..0000000 --- a/icons/two-star-filter-plus.svg +++ /dev/null @@ -1,328 +0,0 @@ - - - -image/svg+xml - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/two-stars.svg b/icons/two-stars.svg deleted file mode 100644 index 65ac773..0000000 --- a/icons/two-stars.svg +++ /dev/null @@ -1,194 +0,0 @@ - - - -image/svg+xml - - - - - - - - - - - - - - \ No newline at end of file diff --git a/icons/videos-page.png b/icons/videos-page.png deleted file mode 100644 index 8aeb199..0000000 Binary files a/icons/videos-page.png and /dev/null differ diff --git a/icons/zoom-in.png b/icons/zoom-in.png deleted file mode 100644 index af84614..0000000 Binary files a/icons/zoom-in.png and /dev/null differ diff --git a/icons/zoom-out.png b/icons/zoom-out.png deleted file mode 100644 index 6c674df..0000000 Binary files a/icons/zoom-out.png and /dev/null differ diff --git a/m4/appstream-xml.m4 b/m4/appstream-xml.m4 deleted file mode 100644 index 11ed91a..0000000 --- a/m4/appstream-xml.m4 +++ /dev/null @@ -1,86 +0,0 @@ -# appstream-xml.m4 -# -# serial 6 - -dnl APPSTREAM_XML -dnl Installs and validates AppData XML files. -dnl -dnl Call APPSTREAM_XML in configure.ac to check for the appstream-util tool. -dnl Add @APPSTREAM_XML_RULES@ to a Makefile.am to substitute the make rules. Add -dnl .appdata.xml files to appstream_XML in Makefile.am and they will be validated -dnl at make check time, if appstream-util is installed, as well as installed -dnl to the correct location automatically. Add --enable-appstream-util to -dnl AM_DISTCHECK_CONFIGURE_FLAGS in Makefile.am to require valid AppData XML when -dnl doing a distcheck. -dnl -dnl Adding files to appstream_XML does not distribute them automatically. - -AC_DEFUN([APPSTREAM_XML], -[ - m4_pattern_allow([AM_V_GEN]) - AC_ARG_ENABLE([appstream-util], - [AS_HELP_STRING([--disable-appstream-util], - [Disable validating AppData XML files during check phase])]) - - AS_IF([test "x$enable_appstream_validate" != "xno"], - [AC_PATH_PROG([APPSTREAM_UTIL], [appstream-util]) - AS_IF([test "x$APPSTREAM_UTIL" = "x"], - [have_appstream_validate=no], - [have_appstream_validate=yes - AC_SUBST([APPSTREAM_UTIL])])], - [have_appstream_validate=no]) - - AS_IF([test "x$have_appstream_validate" != "xno"], - [appstream_validate=yes], - [appstream_validate=no - AS_IF([test "x$enable_appstream_validate" = "xyes"], - [AC_MSG_ERROR([AppData validation was requested but appstream-util was not found])])]) - - AC_SUBST([appstreamxmldir], [${datadir}/metainfo]) - - APPSTREAM_XML_RULES=' -.PHONY : uninstall-appstream-xml install-appstream-xml clean-appstream-xml - -mostlyclean-am: clean-appstream-xml - -%.appdata.valid: %.appdata.xml - $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; \ - if test -n "$(APPSTREAM_UTIL)"; \ - then $(APPSTREAM_UTIL) --nonet validate $${d}$<; fi \ - && touch [$]@ - -check-am: $(appstream_XML:.appdata.xml=.appdata.valid) -uninstall-am: uninstall-appstream-xml -install-data-am: install-appstream-xml - -.SECONDARY: $(appstream_XML) - -install-appstream-xml: $(appstream_XML) - @$(NORMAL_INSTALL) - if test -n "$^"; then \ - test -z "$(appstreamxmldir)" || $(MKDIR_P) "$(DESTDIR)$(appstreamxmldir)"; \ - $(INSTALL_DATA) $^ "$(DESTDIR)$(appstreamxmldir)"; \ - fi - -uninstall-appstream-xml: - @$(NORMAL_UNINSTALL) - @list='\''$(appstream_XML)'\''; test -n "$(appstreamxmldir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '\''$(DESTDIR)$(appstreamxmldir)'\'' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(appstreamxmldir)" && rm -f $$files - -clean-appstream-xml: - rm -f $(appstream_XML:.appdata.xml=.appdata.valid) -' - _APPSTREAM_XML_SUBST(APPSTREAM_XML_RULES) -]) - -dnl _APPSTREAM_XML_SUBST(VARIABLE) -dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST -AC_DEFUN([_APPSTREAM_XML_SUBST], -[ -AC_SUBST([$1]) -m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) -] -) diff --git a/m4/ax_generate_changelog.m4 b/m4/ax_generate_changelog.m4 deleted file mode 100644 index d9d5cd1..0000000 --- a/m4/ax_generate_changelog.m4 +++ /dev/null @@ -1,99 +0,0 @@ -# =========================================================================== -# http://www.gnu.org/software/autoconf-archive/ax_generate_changelog.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_GENERATE_CHANGELOG() -# -# DESCRIPTION -# -# Builds a rule for generating a ChangeLog file from version control -# system commit messages. Currently, the only supported VCS is git, but -# support for others could be added in future. -# -# Defines GENERATE_CHANGELOG_RULES which should be substituted in your -# Makefile. -# -# Usage example: -# -# configure.ac: -# -# AX_GENERATE_CHANGELOG -# -# Makefile.am: -# -# @GENERATE_CHANGELOG_RULES@ -# CHANGELOG_START = 0.2.3^ -# dist-hook: dist-ChangeLog -# -# ChangeLog (stub committed to VCS): -# -# The ChangeLog is auto-generated when releasing. -# If you are seeing this, use 'git log' for a detailed list of changes. -# -# This results in a "dist-ChangeLog" rule being added to the Makefile. -# When run, "dist-ChangeLog" will generate a ChangeLog in the -# $(top_distdir), using $(CHANGELOG_GIT_FLAGS) to format the output from -# "git log" being run in $(CHANGELOG_GIT_DIR). -# -# Unless Automake is initialised with the 'foreign' option, a dummy -# ChangeLog file must be committed to VCS in $(top_srcdir), containing the -# text above (for example). It will be substituted by the automatically -# generated ChangeLog during "make dist". -# -# LICENSE -# -# Copyright (c) 2015 David King -# Copyright (c) 2015 Philip Withnall -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. - -#serial 1 - -AC_DEFUN([AX_GENERATE_CHANGELOG],[ - # Find git, defaulting to the 'missing' script so the user gets a nice - # message if git is missing, rather than a plain 'command not found'. - AC_PATH_PROG([GIT],[git],[${am_missing_run}git]) - AC_SUBST([GIT]) - - # Build the ChangeLog rules. - m4_pattern_allow([AM_V_GEN]) -GENERATE_CHANGELOG_RULES=' -# Generate ChangeLog -# -# Optional: -# - CHANGELOG_START: git commit ID or tag name to output changelogs from -# (exclusive). (Default: include all commits) -# - CHANGELOG_GIT_FLAGS: General flags to pass to git-log when generating the -# ChangeLog. (Default: various) -# - CHANGELOG_GIT_DIR: .git directory to use. (Default: $(top_srcdir)/.git) - -# git-specific -CHANGELOG_GIT_FLAGS ?= --stat -M -C --name-status --no-color -CHANGELOG_GIT_DIR ?= $(top_srcdir)/.git - -ifeq ($(CHANGELOG_START),) -CHANGELOG_GIT_RANGE = -else -CHANGELOG_GIT_RANGE = $(CHANGELOG_START).. -endif - -# Generate a ChangeLog in $(top_distdir) -dist-ChangeLog: - $(AM_V_GEN)if $(GIT) \ - --git-dir=$(CHANGELOG_GIT_DIR) --work-tree=$(top_srcdir) log \ - $(CHANGELOG_GIT_FLAGS) $(CHANGELOG_GIT_RANGE) \ - | fmt --split-only >.ChangeLog.tmp; \ - then mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \ - else rm -f .ChangeLog.tmp; exit 1; fi - -.PHONY: dist-ChangeLog -' - - AC_SUBST([GENERATE_CHANGELOG_RULES]) - m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([GENERATE_CHANGELOG_RULES])]) -]) diff --git a/m4/ax_is_release.m4 b/m4/ax_is_release.m4 deleted file mode 100644 index 9ec6746..0000000 --- a/m4/ax_is_release.m4 +++ /dev/null @@ -1,69 +0,0 @@ -# =========================================================================== -# http://www.gnu.org/software/autoconf-archive/ax_is_release.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_IS_RELEASE(POLICY) -# -# DESCRIPTION -# -# Determine whether the code is being configured as a release, or from -# git. Set the ax_is_release variable to 'yes' or 'no'. -# -# If building a release version, it is recommended that the configure -# script disable compiler errors and debug features, by conditionalising -# them on the ax_is_release variable. If building from git, these -# features should be enabled. -# -# The POLICY parameter specifies how ax_is_release is determined. It can -# take the following values: -# -# * git-directory: ax_is_release will be 'no' if a '.git' directory exists -# * minor-version: ax_is_release will be 'no' if the minor version number -# in $PACKAGE_VERSION is odd; this assumes -# $PACKAGE_VERSION follows the 'major.minor.micro' scheme -# * micro-version: ax_is_release will be 'no' if the micro version number -# in $PACKAGE_VERSION is odd; this assumes -# $PACKAGE_VERSION follows the 'major.minor.micro' scheme -# * always: ax_is_release will always be 'yes' -# * never: ax_is_release will always be 'no' -# -# Other policies may be added in future. -# -# LICENSE -# -# Copyright (c) 2015 Philip Withnall -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. - -#serial 3 - -AC_DEFUN([AX_IS_RELEASE],[ - AC_BEFORE([AC_INIT],[$0]) - - m4_case([$1], - [git-directory],[ - # $is_release = (.git directory does not exist) - AS_IF([test -d .git],[ax_is_release=no],[ax_is_release=yes]) - ], - [minor-version],[ - # $is_release = ($minor_version is even) - minor_version=`echo "$PACKAGE_VERSION" | sed 's/[[^.]][[^.]]*.\([[^.]][[^.]]*\).*/\1/'` - AS_IF([test "$(( $minor_version % 2 ))" -ne 0], - [ax_is_release=no],[ax_is_release=yes]) - ], - [micro-version],[ - # $is_release = ($micro_version is even) - micro_version=`echo "$PACKAGE_VERSION" | sed 's/[[^.]]*\.[[^.]]*\.\([[^.]]*\).*/\1/'` - AS_IF([test "$(( $micro_version % 2 ))" -ne 0], - [ax_is_release=no],[ax_is_release=yes]) - ], - [always],[ax_is_release=yes], - [never],[ax_is_release=no], - [ - AC_MSG_ERROR([Invalid policy. Valid policies: git-directory, minor-version.]) - ]) -]) diff --git a/m4/ax_require_defined.m4 b/m4/ax_require_defined.m4 deleted file mode 100644 index cae1111..0000000 --- a/m4/ax_require_defined.m4 +++ /dev/null @@ -1,37 +0,0 @@ -# =========================================================================== -# http://www.gnu.org/software/autoconf-archive/ax_require_defined.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_REQUIRE_DEFINED(MACRO) -# -# DESCRIPTION -# -# AX_REQUIRE_DEFINED is a simple helper for making sure other macros have -# been defined and thus are available for use. This avoids random issues -# where a macro isn't expanded. Instead the configure script emits a -# non-fatal: -# -# ./configure: line 1673: AX_CFLAGS_WARN_ALL: command not found -# -# It's like AC_REQUIRE except it doesn't expand the required macro. -# -# Here's an example: -# -# AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) -# -# LICENSE -# -# Copyright (c) 2014 Mike Frysinger -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. - -#serial 1 - -AC_DEFUN([AX_REQUIRE_DEFINED], [dnl - m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])]) -])dnl AX_REQUIRE_DEFINED diff --git a/m4/gettext.m4 b/m4/gettext.m4 deleted file mode 100644 index da31efe..0000000 --- a/m4/gettext.m4 +++ /dev/null @@ -1,405 +0,0 @@ -# gettext.m4 serial 67 (gettext-0.19.6) -dnl Copyright (C) 1995-2014 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. -dnl -dnl This file can be used in projects which are not available under -dnl the GNU General Public License or the GNU Library General Public -dnl License but which still want to provide support for the GNU gettext -dnl functionality. -dnl Please note that the actual code of the GNU gettext library is covered -dnl by the GNU Library General Public License, and the rest of the GNU -dnl gettext package is covered by the GNU General Public License. -dnl They are *not* in the public domain. - -dnl Authors: -dnl Ulrich Drepper , 1995-2000. -dnl Bruno Haible , 2000-2006, 2008-2010. - -dnl Macro to add for using GNU gettext. - -dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). -dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The -dnl default (if it is not specified or empty) is 'no-libtool'. -dnl INTLSYMBOL should be 'external' for packages with no intl directory, -dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. -dnl If INTLSYMBOL is 'use-libtool', then a libtool library -dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, -dnl depending on --{enable,disable}-{shared,static} and on the presence of -dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library -dnl $(top_builddir)/intl/libintl.a will be created. -dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext -dnl implementations (in libc or libintl) without the ngettext() function -dnl will be ignored. If NEEDSYMBOL is specified and is -dnl 'need-formatstring-macros', then GNU gettext implementations that don't -dnl support the ISO C 99 formatstring macros will be ignored. -dnl INTLDIR is used to find the intl libraries. If empty, -dnl the value '$(top_builddir)/intl/' is used. -dnl -dnl The result of the configuration is one of three cases: -dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled -dnl and used. -dnl Catalog format: GNU --> install in $(datadir) -dnl Catalog extension: .mo after installation, .gmo in source tree -dnl 2) GNU gettext has been found in the system's C library. -dnl Catalog format: GNU --> install in $(datadir) -dnl Catalog extension: .mo after installation, .gmo in source tree -dnl 3) No internationalization, always use English msgid. -dnl Catalog format: none -dnl Catalog extension: none -dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. -dnl The use of .gmo is historical (it was needed to avoid overwriting the -dnl GNU format catalogs when building on a platform with an X/Open gettext), -dnl but we keep it in order not to force irrelevant filename changes on the -dnl maintainers. -dnl -AC_DEFUN([AM_GNU_GETTEXT], -[ - dnl Argument checking. - ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , - [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT -])])])])]) - ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], - [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])]) - ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , - [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT -])])])]) - define([gt_included_intl], - ifelse([$1], [external], - ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), - [yes])) - define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) - gt_NEEDS_INIT - AM_GNU_GETTEXT_NEED([$2]) - - AC_REQUIRE([AM_PO_SUBDIRS])dnl - ifelse(gt_included_intl, yes, [ - AC_REQUIRE([AM_INTL_SUBDIR])dnl - ]) - - dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - - dnl Sometimes libintl requires libiconv, so first search for libiconv. - dnl Ideally we would do this search only after the - dnl if test "$USE_NLS" = "yes"; then - dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then - dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT - dnl the configure script would need to contain the same shell code - dnl again, outside any 'if'. There are two solutions: - dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. - dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. - dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not - dnl documented, we avoid it. - ifelse(gt_included_intl, yes, , [ - AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) - ]) - - dnl Sometimes, on Mac OS X, libintl requires linking with CoreFoundation. - gt_INTL_MACOSX - - dnl Set USE_NLS. - AC_REQUIRE([AM_NLS]) - - ifelse(gt_included_intl, yes, [ - BUILD_INCLUDED_LIBINTL=no - USE_INCLUDED_LIBINTL=no - ]) - LIBINTL= - LTLIBINTL= - POSUB= - - dnl Add a version number to the cache macros. - case " $gt_needs " in - *" need-formatstring-macros "*) gt_api_version=3 ;; - *" need-ngettext "*) gt_api_version=2 ;; - *) gt_api_version=1 ;; - esac - gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" - gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" - - dnl If we use NLS figure out what method - if test "$USE_NLS" = "yes"; then - gt_use_preinstalled_gnugettext=no - ifelse(gt_included_intl, yes, [ - AC_MSG_CHECKING([whether included gettext is requested]) - AC_ARG_WITH([included-gettext], - [ --with-included-gettext use the GNU gettext library included here], - nls_cv_force_use_gnu_gettext=$withval, - nls_cv_force_use_gnu_gettext=no) - AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) - - nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" - if test "$nls_cv_force_use_gnu_gettext" != "yes"; then - ]) - dnl User does not insist on using GNU NLS library. Figure out what - dnl to use. If GNU gettext is available we use this. Else we have - dnl to fall back to GNU NLS library. - - if test $gt_api_version -ge 3; then - gt_revision_test_code=' -#ifndef __GNU_GETTEXT_SUPPORTED_REVISION -#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) -#endif -changequote(,)dnl -typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; -changequote([,])dnl -' - else - gt_revision_test_code= - fi - if test $gt_api_version -ge 2; then - gt_expression_test_code=' + * ngettext ("", "", 0)' - else - gt_expression_test_code= - fi - - AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], - [AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[ -#include -$gt_revision_test_code -extern int _nl_msg_cat_cntr; -extern int *_nl_domain_bindings; - ]], - [[ -bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings - ]])], - [eval "$gt_func_gnugettext_libc=yes"], - [eval "$gt_func_gnugettext_libc=no"])]) - - if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then - dnl Sometimes libintl requires libiconv, so first search for libiconv. - ifelse(gt_included_intl, yes, , [ - AM_ICONV_LINK - ]) - dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL - dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) - dnl because that would add "-liconv" to LIBINTL and LTLIBINTL - dnl even if libiconv doesn't exist. - AC_LIB_LINKFLAGS_BODY([intl]) - AC_CACHE_CHECK([for GNU gettext in libintl], - [$gt_func_gnugettext_libintl], - [gt_save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $INCINTL" - gt_save_LIBS="$LIBS" - LIBS="$LIBS $LIBINTL" - dnl Now see whether libintl exists and does not depend on libiconv. - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[ -#include -$gt_revision_test_code -extern int _nl_msg_cat_cntr; -extern -#ifdef __cplusplus -"C" -#endif -const char *_nl_expand_alias (const char *); - ]], - [[ -bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") - ]])], - [eval "$gt_func_gnugettext_libintl=yes"], - [eval "$gt_func_gnugettext_libintl=no"]) - dnl Now see whether libintl exists and depends on libiconv. - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then - LIBS="$LIBS $LIBICONV" - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[ -#include -$gt_revision_test_code -extern int _nl_msg_cat_cntr; -extern -#ifdef __cplusplus -"C" -#endif -const char *_nl_expand_alias (const char *); - ]], - [[ -bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") - ]])], - [LIBINTL="$LIBINTL $LIBICONV" - LTLIBINTL="$LTLIBINTL $LTLIBICONV" - eval "$gt_func_gnugettext_libintl=yes" - ]) - fi - CPPFLAGS="$gt_save_CPPFLAGS" - LIBS="$gt_save_LIBS"]) - fi - - dnl If an already present or preinstalled GNU gettext() is found, - dnl use it. But if this macro is used in GNU gettext, and GNU - dnl gettext is already preinstalled in libintl, we update this - dnl libintl. (Cf. the install rule in intl/Makefile.in.) - if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ - || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ - && test "$PACKAGE" != gettext-runtime \ - && test "$PACKAGE" != gettext-tools; }; then - gt_use_preinstalled_gnugettext=yes - else - dnl Reset the values set by searching for libintl. - LIBINTL= - LTLIBINTL= - INCINTL= - fi - - ifelse(gt_included_intl, yes, [ - if test "$gt_use_preinstalled_gnugettext" != "yes"; then - dnl GNU gettext is not found in the C library. - dnl Fall back on included GNU gettext library. - nls_cv_use_gnu_gettext=yes - fi - fi - - if test "$nls_cv_use_gnu_gettext" = "yes"; then - dnl Mark actions used to generate GNU NLS library. - BUILD_INCLUDED_LIBINTL=yes - USE_INCLUDED_LIBINTL=yes - LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" - LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" - LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` - fi - - CATOBJEXT= - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then - dnl Mark actions to use GNU gettext tools. - CATOBJEXT=.gmo - fi - ]) - - if test -n "$INTL_MACOSX_LIBS"; then - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then - dnl Some extra flags are needed during linking. - LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" - LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" - fi - fi - - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then - AC_DEFINE([ENABLE_NLS], [1], - [Define to 1 if translation of program messages to the user's native language - is requested.]) - else - USE_NLS=no - fi - fi - - AC_MSG_CHECKING([whether to use NLS]) - AC_MSG_RESULT([$USE_NLS]) - if test "$USE_NLS" = "yes"; then - AC_MSG_CHECKING([where the gettext function comes from]) - if test "$gt_use_preinstalled_gnugettext" = "yes"; then - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then - gt_source="external libintl" - else - gt_source="libc" - fi - else - gt_source="included intl directory" - fi - AC_MSG_RESULT([$gt_source]) - fi - - if test "$USE_NLS" = "yes"; then - - if test "$gt_use_preinstalled_gnugettext" = "yes"; then - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then - AC_MSG_CHECKING([how to link with libintl]) - AC_MSG_RESULT([$LIBINTL]) - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) - fi - - dnl For backward compatibility. Some packages may be using this. - AC_DEFINE([HAVE_GETTEXT], [1], - [Define if the GNU gettext() function is already present or preinstalled.]) - AC_DEFINE([HAVE_DCGETTEXT], [1], - [Define if the GNU dcgettext() function is already present or preinstalled.]) - fi - - dnl We need to process the po/ directory. - POSUB=po - fi - - ifelse(gt_included_intl, yes, [ - dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL - dnl to 'yes' because some of the testsuite requires it. - if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then - BUILD_INCLUDED_LIBINTL=yes - fi - - dnl Make all variables we use known to autoconf. - AC_SUBST([BUILD_INCLUDED_LIBINTL]) - AC_SUBST([USE_INCLUDED_LIBINTL]) - AC_SUBST([CATOBJEXT]) - - dnl For backward compatibility. Some configure.ins may be using this. - nls_cv_header_intl= - nls_cv_header_libgt= - - dnl For backward compatibility. Some Makefiles may be using this. - DATADIRNAME=share - AC_SUBST([DATADIRNAME]) - - dnl For backward compatibility. Some Makefiles may be using this. - INSTOBJEXT=.mo - AC_SUBST([INSTOBJEXT]) - - dnl For backward compatibility. Some Makefiles may be using this. - GENCAT=gencat - AC_SUBST([GENCAT]) - - dnl For backward compatibility. Some Makefiles may be using this. - INTLOBJS= - if test "$USE_INCLUDED_LIBINTL" = yes; then - INTLOBJS="\$(GETTOBJS)" - fi - AC_SUBST([INTLOBJS]) - - dnl Enable libtool support if the surrounding package wishes it. - INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix - AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX]) - ]) - - dnl For backward compatibility. Some Makefiles may be using this. - INTLLIBS="$LIBINTL" - AC_SUBST([INTLLIBS]) - - dnl Make all documented variables known to autoconf. - AC_SUBST([LIBINTL]) - AC_SUBST([LTLIBINTL]) - AC_SUBST([POSUB]) -]) - - -dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. -m4_define([gt_NEEDS_INIT], -[ - m4_divert_text([DEFAULTS], [gt_needs=]) - m4_define([gt_NEEDS_INIT], []) -]) - - -dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) -AC_DEFUN([AM_GNU_GETTEXT_NEED], -[ - m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) -]) - - -dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) -AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) - - -dnl Usage: AM_GNU_GETTEXT_REQUIRE_VERSION([gettext-version]) -AC_DEFUN([AM_GNU_GETTEXT_REQUIRE_VERSION], []) diff --git a/m4/gsettings.m4 b/m4/gsettings.m4 deleted file mode 100644 index 35ee5aa..0000000 --- a/m4/gsettings.m4 +++ /dev/null @@ -1,83 +0,0 @@ -dnl GLIB_GSETTINGS -dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether -dnl the schema should be compiled -dnl - -AC_DEFUN([GLIB_GSETTINGS], -[ - m4_pattern_allow([AM_V_GEN]) - AC_ARG_ENABLE(schemas-compile, - AS_HELP_STRING([--disable-schemas-compile], - [Disable regeneration of gschemas.compiled on install]), - [case ${enableval} in - yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;; - no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;; - *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;; - esac]) - AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE]) - PKG_PROG_PKG_CONFIG([0.16]) - AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas]) - if test x$cross_compiling != xyes; then - GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0` - else - AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas) - fi - AC_SUBST(GLIB_COMPILE_SCHEMAS) - if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then - ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2]) - else - ifelse([$1],,[:],[$1]) - fi - - GSETTINGS_RULES=' -.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas - -mostlyclean-am: clean-gsettings-schemas - -gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE)) - -%.gschema.valid: %.gschema.xml $(gsettings__enum_file) - $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p [$](@D) && touch [$]@ - -all-am: $(gsettings_SCHEMAS:.xml=.valid) -uninstall-am: uninstall-gsettings-schemas -install-data-am: install-gsettings-schemas - -.SECONDARY: $(gsettings_SCHEMAS) - -install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file) - @$(NORMAL_INSTALL) - if test -n "$^"; then \ - test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \ - $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \ - test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \ - fi - -uninstall-gsettings-schemas: - @$(NORMAL_UNINSTALL) - @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files - test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir) - -clean-gsettings-schemas: - rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file) - -ifdef gsettings_ENUM_NAMESPACE -$(gsettings__enum_file): $(gsettings_ENUM_FILES) - $(AM_V_GEN) glib-mkenums --comments '\'''\'' --fhead "" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " " --vtail " " --ftail "" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@ -endif -' - _GSETTINGS_SUBST(GSETTINGS_RULES) -]) - -dnl _GSETTINGS_SUBST(VARIABLE) -dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST -AC_DEFUN([_GSETTINGS_SUBST], -[ -AC_SUBST([$1]) -m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) -] -) diff --git a/m4/iconv.m4 b/m4/iconv.m4 deleted file mode 100644 index 4e37363..0000000 --- a/m4/iconv.m4 +++ /dev/null @@ -1,271 +0,0 @@ -# iconv.m4 serial 19 (gettext-0.18.2) -dnl Copyright (C) 2000-2002, 2007-2014 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], -[ - dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - - dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([iconv]) -]) - -AC_DEFUN([AM_ICONV_LINK], -[ - dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and - dnl those with the standalone portable GNU libiconv installed). - AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles - - dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV - dnl accordingly. - AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) - - dnl Add $INCICONV to CPPFLAGS before performing the following checks, - dnl because if the user has installed libiconv and not disabled its use - dnl via --without-libiconv-prefix, he wants to use it. The first - dnl AC_LINK_IFELSE will then fail, the second AC_LINK_IFELSE will succeed. - am_save_CPPFLAGS="$CPPFLAGS" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) - - AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [ - am_cv_func_iconv="no, consider installing GNU libiconv" - am_cv_lib_iconv=no - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[ -#include -#include - ]], - [[iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd);]])], - [am_cv_func_iconv=yes]) - if test "$am_cv_func_iconv" != yes; then - am_save_LIBS="$LIBS" - LIBS="$LIBS $LIBICONV" - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[ -#include -#include - ]], - [[iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd);]])], - [am_cv_lib_iconv=yes] - [am_cv_func_iconv=yes]) - LIBS="$am_save_LIBS" - fi - ]) - if test "$am_cv_func_iconv" = yes; then - AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ - dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11, - dnl Solaris 10. - am_save_LIBS="$LIBS" - if test $am_cv_lib_iconv = yes; then - LIBS="$LIBS $LIBICONV" - fi - am_cv_func_iconv_works=no - for ac_iconv_const in '' 'const'; do - AC_RUN_IFELSE( - [AC_LANG_PROGRAM( - [[ -#include -#include - -#ifndef ICONV_CONST -# define ICONV_CONST $ac_iconv_const -#endif - ]], - [[int result = 0; - /* Test against AIX 5.1 bug: Failures are not distinguishable from successful - returns. */ - { - iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); - if (cd_utf8_to_88591 != (iconv_t)(-1)) - { - static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ - char buf[10]; - ICONV_CONST char *inptr = input; - size_t inbytesleft = strlen (input); - char *outptr = buf; - size_t outbytesleft = sizeof (buf); - size_t res = iconv (cd_utf8_to_88591, - &inptr, &inbytesleft, - &outptr, &outbytesleft); - if (res == 0) - result |= 1; - iconv_close (cd_utf8_to_88591); - } - } - /* Test against Solaris 10 bug: Failures are not distinguishable from - successful returns. */ - { - iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); - if (cd_ascii_to_88591 != (iconv_t)(-1)) - { - static ICONV_CONST char input[] = "\263"; - char buf[10]; - ICONV_CONST char *inptr = input; - size_t inbytesleft = strlen (input); - char *outptr = buf; - size_t outbytesleft = sizeof (buf); - size_t res = iconv (cd_ascii_to_88591, - &inptr, &inbytesleft, - &outptr, &outbytesleft); - if (res == 0) - result |= 2; - iconv_close (cd_ascii_to_88591); - } - } - /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ - { - iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); - if (cd_88591_to_utf8 != (iconv_t)(-1)) - { - static ICONV_CONST char input[] = "\304"; - static char buf[2] = { (char)0xDE, (char)0xAD }; - ICONV_CONST char *inptr = input; - size_t inbytesleft = 1; - char *outptr = buf; - size_t outbytesleft = 1; - size_t res = iconv (cd_88591_to_utf8, - &inptr, &inbytesleft, - &outptr, &outbytesleft); - if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) - result |= 4; - iconv_close (cd_88591_to_utf8); - } - } -#if 0 /* This bug could be worked around by the caller. */ - /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ - { - iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); - if (cd_88591_to_utf8 != (iconv_t)(-1)) - { - static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; - char buf[50]; - ICONV_CONST char *inptr = input; - size_t inbytesleft = strlen (input); - char *outptr = buf; - size_t outbytesleft = sizeof (buf); - size_t res = iconv (cd_88591_to_utf8, - &inptr, &inbytesleft, - &outptr, &outbytesleft); - if ((int)res > 0) - result |= 8; - iconv_close (cd_88591_to_utf8); - } - } -#endif - /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is - provided. */ - if (/* Try standardized names. */ - iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) - /* Try IRIX, OSF/1 names. */ - && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) - /* Try AIX names. */ - && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) - /* Try HP-UX names. */ - && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) - result |= 16; - return result; -]])], - [am_cv_func_iconv_works=yes], , - [case "$host_os" in - aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; - *) am_cv_func_iconv_works="guessing yes" ;; - esac]) - test "$am_cv_func_iconv_works" = no || break - done - LIBS="$am_save_LIBS" - ]) - case "$am_cv_func_iconv_works" in - *no) am_func_iconv=no am_cv_lib_iconv=no ;; - *) am_func_iconv=yes ;; - esac - else - am_func_iconv=no am_cv_lib_iconv=no - fi - if test "$am_func_iconv" = yes; then - AC_DEFINE([HAVE_ICONV], [1], - [Define if you have the iconv() function and it works.]) - fi - if test "$am_cv_lib_iconv" = yes; then - AC_MSG_CHECKING([how to link with libiconv]) - AC_MSG_RESULT([$LIBICONV]) - else - dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV - dnl either. - CPPFLAGS="$am_save_CPPFLAGS" - LIBICONV= - LTLIBICONV= - fi - AC_SUBST([LIBICONV]) - AC_SUBST([LTLIBICONV]) -]) - -dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to -dnl avoid warnings like -dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". -dnl This is tricky because of the way 'aclocal' is implemented: -dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. -dnl Otherwise aclocal's initial scan pass would miss the macro definition. -dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. -dnl Otherwise aclocal would emit many "Use of uninitialized value $1" -dnl warnings. -m4_define([gl_iconv_AC_DEFUN], - m4_version_prereq([2.64], - [[AC_DEFUN_ONCE( - [$1], [$2])]], - [m4_ifdef([gl_00GNULIB], - [[AC_DEFUN_ONCE( - [$1], [$2])]], - [[AC_DEFUN( - [$1], [$2])]])])) -gl_iconv_AC_DEFUN([AM_ICONV], -[ - AM_ICONV_LINK - if test "$am_cv_func_iconv" = yes; then - AC_MSG_CHECKING([for iconv declaration]) - AC_CACHE_VAL([am_cv_proto_iconv], [ - AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( - [[ -#include -#include -extern -#ifdef __cplusplus -"C" -#endif -#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) -size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); -#else -size_t iconv(); -#endif - ]], - [[]])], - [am_cv_proto_iconv_arg1=""], - [am_cv_proto_iconv_arg1="const"]) - am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) - am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` - AC_MSG_RESULT([ - $am_cv_proto_iconv]) - AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], - [Define as const if the declaration of iconv() needs const.]) - dnl Also substitute ICONV_CONST in the gnulib generated . - m4_ifdef([gl_ICONV_H_DEFAULTS], - [AC_REQUIRE([gl_ICONV_H_DEFAULTS]) - if test -n "$am_cv_proto_iconv_arg1"; then - ICONV_CONST="const" - fi - ]) - fi -]) diff --git a/m4/intlmacosx.m4 b/m4/intlmacosx.m4 deleted file mode 100644 index bba7b3d..0000000 --- a/m4/intlmacosx.m4 +++ /dev/null @@ -1,56 +0,0 @@ -# intlmacosx.m4 serial 5 (gettext-0.18.2) -dnl Copyright (C) 2004-2014 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. -dnl -dnl This file can be used in projects which are not available under -dnl the GNU General Public License or the GNU Library General Public -dnl License but which still want to provide support for the GNU gettext -dnl functionality. -dnl Please note that the actual code of the GNU gettext library is covered -dnl by the GNU Library General Public License, and the rest of the GNU -dnl gettext package is covered by the GNU General Public License. -dnl They are *not* in the public domain. - -dnl Checks for special options needed on Mac OS X. -dnl Defines INTL_MACOSX_LIBS. -AC_DEFUN([gt_INTL_MACOSX], -[ - dnl Check for API introduced in Mac OS X 10.2. - AC_CACHE_CHECK([for CFPreferencesCopyAppValue], - [gt_cv_func_CFPreferencesCopyAppValue], - [gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[#include ]], - [[CFPreferencesCopyAppValue(NULL, NULL)]])], - [gt_cv_func_CFPreferencesCopyAppValue=yes], - [gt_cv_func_CFPreferencesCopyAppValue=no]) - LIBS="$gt_save_LIBS"]) - if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then - AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], - [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) - fi - dnl Check for API introduced in Mac OS X 10.3. - AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], - [gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[#include ]], - [[CFLocaleCopyCurrent();]])], - [gt_cv_func_CFLocaleCopyCurrent=yes], - [gt_cv_func_CFLocaleCopyCurrent=no]) - LIBS="$gt_save_LIBS"]) - if test $gt_cv_func_CFLocaleCopyCurrent = yes; then - AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1], - [Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) - fi - INTL_MACOSX_LIBS= - if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then - INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" - fi - AC_SUBST([INTL_MACOSX_LIBS]) -]) diff --git a/m4/lib-ld.m4 b/m4/lib-ld.m4 deleted file mode 100644 index 91ca911..0000000 --- a/m4/lib-ld.m4 +++ /dev/null @@ -1,119 +0,0 @@ -# lib-ld.m4 serial 6 -dnl Copyright (C) 1996-2003, 2009-2015 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Subroutines of libtool.m4, -dnl with replacements s/_*LT_PATH/AC_LIB_PROG/ and s/lt_/acl_/ to avoid -dnl collision with libtool.m4. - -dnl From libtool-2.4. Sets the variable with_gnu_ld to yes or no. -AC_DEFUN([AC_LIB_PROG_LD_GNU], -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], -[# I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 /dev/null 2>&1 \ - && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ - || PATH_SEPARATOR=';' - } -fi - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by $CC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]]* | ?:[[\\/]]*) - re_direlt='/[[^/]][[^/]]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` - while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL([acl_cv_path_LD], -[if test -z "$LD"; then - acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$acl_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 = 1.10 to complain if config.rpath is missing. - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir - AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [ - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - ]) - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - dnl Determine whether the user wants rpath handling at all. - AC_ARG_ENABLE([rpath], - [ --disable-rpath do not hardcode runtime library paths], - :, enable_rpath=yes) -]) - -dnl AC_LIB_FROMPACKAGE(name, package) -dnl declares that libname comes from the given package. The configure file -dnl will then not have a --with-libname-prefix option but a -dnl --with-package-prefix option. Several libraries can come from the same -dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar -dnl macro call that searches for libname. -AC_DEFUN([AC_LIB_FROMPACKAGE], -[ - pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) - define([acl_frompackage_]NAME, [$2]) - popdef([NAME]) - pushdef([PACK],[$2]) - pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) - define([acl_libsinpackage_]PACKUP, - m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1]) - popdef([PACKUP]) - popdef([PACK]) -]) - -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. -dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found -dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_LINKFLAGS_BODY], -[ - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) - pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) - pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) - pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) - dnl Autoconf >= 2.61 supports dots in --with options. - pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[m4_translit(PACK,[.],[_])],PACK)]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_ARG_WITH(P_A_C_K[-prefix], -[[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib - --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - if test "$acl_libdirstem2" != "$acl_libdirstem" \ - && ! test -d "$withval/$acl_libdirstem"; then - additional_libdir="$withval/$acl_libdirstem2" - fi - fi - fi -]) - dnl Search the library and its dependencies in $additional_libdir and - dnl $LDFLAGS. Using breadth-first-seach. - LIB[]NAME= - LTLIB[]NAME= - INC[]NAME= - LIB[]NAME[]_PREFIX= - dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been - dnl computed. So it has to be reset here. - HAVE_LIB[]NAME= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='$1 $2' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS - dnl or AC_LIB_HAVE_LINKFLAGS call. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" - else - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined - dnl that this library doesn't exist. So just drop it. - : - fi - else - dnl Search the library lib$name in $additional_libdir and $LDFLAGS - dnl and the already constructed $LIBNAME/$LTLIBNAME. - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - dnl The same code as in the loop below: - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - dnl Found the library. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - dnl Linking with a shared library. We attempt to hardcode its - dnl directory into the executable's runpath, unless it's the - dnl standard /usr/lib. - if test "$enable_rpath" = no \ - || test "X$found_dir" = "X/usr/$acl_libdirstem" \ - || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then - dnl No hardcoding is needed. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - dnl The hardcoding into $LIBNAME is system dependent. - if test "$acl_hardcode_direct" = yes; then - dnl Using DIR/libNAME.so during linking hardcodes DIR into the - dnl resulting binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - dnl Rely on "-L$found_dir". - dnl But don't add it if it's already contained in the LDFLAGS - dnl or the already constructed $LIBNAME - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH - dnl here, because this doesn't fit in flags passed to the - dnl compiler. So give up. No hardcoding. This affects only - dnl very old systems. - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - dnl Linking with a static library. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" - else - dnl We shouldn't come here, but anyway it's good to have a - dnl fallback. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" - fi - fi - dnl Assume the include files are nearby. - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - if test "$name" = '$1'; then - LIB[]NAME[]_PREFIX="$basedir" - fi - additional_includedir="$basedir/include" - ;; - */$acl_libdirstem2 | */$acl_libdirstem2/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` - if test "$name" = '$1'; then - LIB[]NAME[]_PREFIX="$basedir" - fi - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - dnl Potentially add $additional_includedir to $INCNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's /usr/local/include and we are using GCC on Linux, - dnl 3. if it's already present in $CPPFLAGS or the already - dnl constructed $INCNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INC[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $INCNAME. - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - dnl Look for dependencies. - if test -n "$found_la"; then - dnl Read the .la file. It defines the variables - dnl dlname, library_names, old_library, dependency_libs, current, - dnl age, revision, installed, dlopen, dlpreopen, libdir. - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - dnl We use only dependency_libs. - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's /usr/local/lib and we are using GCC on Linux, - dnl 3. if it's already present in $LDFLAGS or the already - dnl constructed $LIBNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ - && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ - || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LIBNAME. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LTLIBNAME. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - dnl Handle this in the next round. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - dnl Handle this in the next round. Throw away the .la's - dnl directory; it is already contained in a preceding -L - dnl option. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - dnl Most likely an immediate library name. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" - ;; - esac - done - fi - else - dnl Didn't find the library; assume it is in the system directories - dnl known to the linker and runtime loader. (All the system - dnl directories known to the linker should also be known to the - dnl runtime loader, otherwise the system is severely misconfigured.) - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user must - dnl pass all path elements in one option. We can arrange that for a - dnl single library, but not when more than one $LIBNAMEs are used. - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - else - dnl The -rpath options are cumulative. - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - dnl When using libtool, the option that works for both libraries and - dnl executables is -R. The -R options are cumulative. - for found_dir in $ltrpathdirs; do - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" - done - fi - popdef([P_A_C_K]) - popdef([PACKLIBS]) - popdef([PACKUP]) - popdef([PACK]) - popdef([NAME]) -]) - -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, -dnl unless already present in VAR. -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes -dnl contains two or three consecutive elements that belong together. -AC_DEFUN([AC_LIB_APPENDTOVAR], -[ - for element in [$2]; do - haveit= - for x in $[$1]; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - [$1]="${[$1]}${[$1]:+ }$element" - fi - done -]) - -dnl For those cases where a variable contains several -L and -l options -dnl referring to unknown libraries and directories, this macro determines the -dnl necessary additional linker options for the runtime path. -dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) -dnl sets LDADDVAR to linker options needed together with LIBSVALUE. -dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, -dnl otherwise linking without libtool is assumed. -AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], -[ - AC_REQUIRE([AC_LIB_RPATH]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - $1= - if test "$enable_rpath" != no; then - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode directories into the resulting - dnl binary. - rpathdirs= - next= - for opt in $2; do - if test -n "$next"; then - dir="$next" - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem" \ - && test "X$dir" != "X/usr/$acl_libdirstem2"; then - rpathdirs="$rpathdirs $dir" - fi - next= - else - case $opt in - -L) next=yes ;; - -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem" \ - && test "X$dir" != "X/usr/$acl_libdirstem2"; then - rpathdirs="$rpathdirs $dir" - fi - next= ;; - *) next= ;; - esac - fi - done - if test "X$rpathdirs" != "X"; then - if test -n ""$3""; then - dnl libtool is used for linking. Use -R options. - for dir in $rpathdirs; do - $1="${$1}${$1:+ }-R$dir" - done - else - dnl The linker is used for linking directly. - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user - dnl must pass all path elements in one option. - alldirs= - for dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="$flag" - else - dnl The -rpath options are cumulative. - for dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="${$1}${$1:+ }$flag" - done - fi - fi - fi - fi - fi - AC_SUBST([$1]) -]) diff --git a/m4/lib-prefix.m4 b/m4/lib-prefix.m4 deleted file mode 100644 index 0465f47..0000000 --- a/m4/lib-prefix.m4 +++ /dev/null @@ -1,224 +0,0 @@ -# lib-prefix.m4 serial 7 (gettext-0.18) -dnl Copyright (C) 2001-2005, 2008-2015 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't -dnl require excessive bracketing. -ifdef([AC_HELP_STRING], -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) - -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed -dnl to access previously installed libraries. The basic assumption is that -dnl a user will want packages to use other packages he previously installed -dnl with the same --prefix option. -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate -dnl libraries, but is otherwise very convenient. -AC_DEFUN([AC_LIB_PREFIX], -[ - AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) - AC_REQUIRE([AC_PROG_CC]) - AC_REQUIRE([AC_CANONICAL_HOST]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib-prefix], -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib - --without-lib-prefix don't search for libraries in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - if test $use_additional = yes; then - dnl Potentially add $additional_includedir to $CPPFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's already present in $CPPFLAGS, - dnl 3. if it's /usr/local/include and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - for x in $CPPFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $CPPFLAGS. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" - fi - fi - fi - fi - dnl Potentially add $additional_libdir to $LDFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's already present in $LDFLAGS, - dnl 3. if it's /usr/local/lib and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - for x in $LDFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux*) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LDFLAGS. - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" - fi - fi - fi - fi - fi -]) - -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, -dnl acl_final_exec_prefix, containing the values to which $prefix and -dnl $exec_prefix will expand at the end of the configure script. -AC_DEFUN([AC_LIB_PREPARE_PREFIX], -[ - dnl Unfortunately, prefix and exec_prefix get only finally determined - dnl at the end of configure. - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the -dnl variables prefix and exec_prefix bound to the values they will have -dnl at the end of the configure script. -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], -[ - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - $1 - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_PREPARE_MULTILIB creates -dnl - a variable acl_libdirstem, containing the basename of the libdir, either -dnl "lib" or "lib64" or "lib/64", -dnl - a variable acl_libdirstem2, as a secondary possible value for -dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or -dnl "lib/amd64". -AC_DEFUN([AC_LIB_PREPARE_MULTILIB], -[ - dnl There is no formal standard regarding lib and lib64. - dnl On glibc systems, the current practice is that on a system supporting - dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under - dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine - dnl the compiler's default mode by looking at the compiler's library search - dnl path. If at least one of its elements ends in /lib64 or points to a - dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI. - dnl Otherwise we use the default, namely "lib". - dnl On Solaris systems, the current practice is that on a system supporting - dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under - dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or - dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. - AC_REQUIRE([AC_CANONICAL_HOST]) - acl_libdirstem=lib - acl_libdirstem2= - case "$host_os" in - solaris*) - dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment - dnl . - dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." - dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the - dnl symlink is missing, so we set acl_libdirstem2 too. - AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit], - [AC_EGREP_CPP([sixtyfour bits], [ -#ifdef _LP64 -sixtyfour bits -#endif - ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no]) - ]) - if test $gl_cv_solaris_64bit = yes; then - acl_libdirstem=lib/64 - case "$host_cpu" in - sparc*) acl_libdirstem2=lib/sparcv9 ;; - i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; - esac - fi - ;; - *) - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - */../ | */.. ) - # Better ignore directories of this form. They are misleading. - ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi - ;; - esac - test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" -]) diff --git a/m4/libtool.m4 b/m4/libtool.m4 deleted file mode 100644 index ee80844..0000000 --- a/m4/libtool.m4 +++ /dev/null @@ -1,8387 +0,0 @@ -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- -# -# Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. -# Written by Gordon Matzigkeit, 1996 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -m4_define([_LT_COPYING], [dnl -# Copyright (C) 2014 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. There is NO -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -# GNU Libtool is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of of the License, or -# (at your option) any later version. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program or library that is built -# using GNU Libtool, you may include this file under the same -# distribution terms that you use for the rest of that program. -# -# GNU Libtool is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -]) - -# serial 58 LT_INIT - - -# LT_PREREQ(VERSION) -# ------------------ -# Complain and exit if this libtool version is less that VERSION. -m4_defun([LT_PREREQ], -[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, - [m4_default([$3], - [m4_fatal([Libtool version $1 or higher is required], - 63)])], - [$2])]) - - -# _LT_CHECK_BUILDDIR -# ------------------ -# Complain if the absolute build directory name contains unusual characters -m4_defun([_LT_CHECK_BUILDDIR], -[case `pwd` in - *\ * | *\ *) - AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; -esac -]) - - -# LT_INIT([OPTIONS]) -# ------------------ -AC_DEFUN([LT_INIT], -[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK -AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -AC_BEFORE([$0], [LT_LANG])dnl -AC_BEFORE([$0], [LT_OUTPUT])dnl -AC_BEFORE([$0], [LTDL_INIT])dnl -m4_require([_LT_CHECK_BUILDDIR])dnl - -dnl Autoconf doesn't catch unexpanded LT_ macros by default: -m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl -m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl -dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 -dnl unless we require an AC_DEFUNed macro: -AC_REQUIRE([LTOPTIONS_VERSION])dnl -AC_REQUIRE([LTSUGAR_VERSION])dnl -AC_REQUIRE([LTVERSION_VERSION])dnl -AC_REQUIRE([LTOBSOLETE_VERSION])dnl -m4_require([_LT_PROG_LTMAIN])dnl - -_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) - -dnl Parse OPTIONS -_LT_SET_OPTIONS([$0], [$1]) - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS=$ltmain - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' -AC_SUBST(LIBTOOL)dnl - -_LT_SETUP - -# Only expand once: -m4_define([LT_INIT]) -])# LT_INIT - -# Old names: -AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) -AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_PROG_LIBTOOL], []) -dnl AC_DEFUN([AM_PROG_LIBTOOL], []) - - -# _LT_PREPARE_CC_BASENAME -# ----------------------- -m4_defun([_LT_PREPARE_CC_BASENAME], [ -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -func_cc_basename () -{ - for cc_temp in @S|@*""; do - case $cc_temp in - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; - \-*) ;; - *) break;; - esac - done - func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` -} -])# _LT_PREPARE_CC_BASENAME - - -# _LT_CC_BASENAME(CC) -# ------------------- -# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, -# but that macro is also expanded into generated libtool script, which -# arranges for $SED and $ECHO to be set by different means. -m4_defun([_LT_CC_BASENAME], -[m4_require([_LT_PREPARE_CC_BASENAME])dnl -AC_REQUIRE([_LT_DECL_SED])dnl -AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl -func_cc_basename $1 -cc_basename=$func_cc_basename_result -]) - - -# _LT_FILEUTILS_DEFAULTS -# ---------------------- -# It is okay to use these file commands and assume they have been set -# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. -m4_defun([_LT_FILEUTILS_DEFAULTS], -[: ${CP="cp -f"} -: ${MV="mv -f"} -: ${RM="rm -f"} -])# _LT_FILEUTILS_DEFAULTS - - -# _LT_SETUP -# --------- -m4_defun([_LT_SETUP], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl -AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl - -_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl -dnl -_LT_DECL([], [host_alias], [0], [The host system])dnl -_LT_DECL([], [host], [0])dnl -_LT_DECL([], [host_os], [0])dnl -dnl -_LT_DECL([], [build_alias], [0], [The build system])dnl -_LT_DECL([], [build], [0])dnl -_LT_DECL([], [build_os], [0])dnl -dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([LT_PATH_LD])dnl -AC_REQUIRE([LT_PATH_NM])dnl -dnl -AC_REQUIRE([AC_PROG_LN_S])dnl -test -z "$LN_S" && LN_S="ln -s" -_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl -dnl -AC_REQUIRE([LT_CMD_MAX_LEN])dnl -_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl -_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl -dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_CHECK_SHELL_FEATURES])dnl -m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl -m4_require([_LT_CMD_RELOAD])dnl -m4_require([_LT_CHECK_MAGIC_METHOD])dnl -m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl -m4_require([_LT_CMD_OLD_ARCHIVE])dnl -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl -m4_require([_LT_WITH_SYSROOT])dnl -m4_require([_LT_CMD_TRUNCATE])dnl - -_LT_CONFIG_LIBTOOL_INIT([ -# See if we are running on zsh, and set the options that allow our -# commands through without removal of \ escapes INIT. -if test -n "\${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST -fi -]) -if test -n "${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST -fi - -_LT_CHECK_OBJDIR - -m4_require([_LT_TAG_COMPILER])dnl - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test set != "${COLLECT_NAMES+set}"; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Global variables: -ofile=libtool -can_build_shared=yes - -# All known linkers require a '.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a - -with_gnu_ld=$lt_cv_prog_gnu_ld - -old_CC=$CC -old_CFLAGS=$CFLAGS - -# Set sane defaults for various variables -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$LD" && LD=ld -test -z "$ac_objext" && ac_objext=o - -_LT_CC_BASENAME([$compiler]) - -# Only perform the check for file, if the check method requires it -test -z "$MAGIC_CMD" && MAGIC_CMD=file -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - _LT_PATH_MAGIC - fi - ;; -esac - -# Use C for the default configuration in the libtool script -LT_SUPPORTED_TAG([CC]) -_LT_LANG_C_CONFIG -_LT_LANG_DEFAULT_CONFIG -_LT_CONFIG_COMMANDS -])# _LT_SETUP - - -# _LT_PREPARE_SED_QUOTE_VARS -# -------------------------- -# Define a few sed substitution that help us do robust quoting. -m4_defun([_LT_PREPARE_SED_QUOTE_VARS], -[# Backslashify metacharacters that are still active within -# double-quoted strings. -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\([["`\\]]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to delay expansion of an escaped single quote. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' -]) - -# _LT_PROG_LTMAIN -# --------------- -# Note that this code is called both from 'configure', and 'config.status' -# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, -# 'config.status' has no value for ac_aux_dir unless we are using Automake, -# so we pass a copy along to make sure it has a sensible value anyway. -m4_defun([_LT_PROG_LTMAIN], -[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl -_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) -ltmain=$ac_aux_dir/ltmain.sh -])# _LT_PROG_LTMAIN - - -## ------------------------------------- ## -## Accumulate code for creating libtool. ## -## ------------------------------------- ## - -# So that we can recreate a full libtool script including additional -# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS -# in macros and then make a single call at the end using the 'libtool' -# label. - - -# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) -# ---------------------------------------- -# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. -m4_define([_LT_CONFIG_LIBTOOL_INIT], -[m4_ifval([$1], - [m4_append([_LT_OUTPUT_LIBTOOL_INIT], - [$1 -])])]) - -# Initialize. -m4_define([_LT_OUTPUT_LIBTOOL_INIT]) - - -# _LT_CONFIG_LIBTOOL([COMMANDS]) -# ------------------------------ -# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. -m4_define([_LT_CONFIG_LIBTOOL], -[m4_ifval([$1], - [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], - [$1 -])])]) - -# Initialize. -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) - - -# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) -# ----------------------------------------------------- -m4_defun([_LT_CONFIG_SAVE_COMMANDS], -[_LT_CONFIG_LIBTOOL([$1]) -_LT_CONFIG_LIBTOOL_INIT([$2]) -]) - - -# _LT_FORMAT_COMMENT([COMMENT]) -# ----------------------------- -# Add leading comment marks to the start of each line, and a trailing -# full-stop to the whole comment if one is not present already. -m4_define([_LT_FORMAT_COMMENT], -[m4_ifval([$1], [ -m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], - [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) -)]) - - - -## ------------------------ ## -## FIXME: Eliminate VARNAME ## -## ------------------------ ## - - -# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) -# ------------------------------------------------------------------- -# CONFIGNAME is the name given to the value in the libtool script. -# VARNAME is the (base) name used in the configure script. -# VALUE may be 0, 1 or 2 for a computed quote escaped value based on -# VARNAME. Any other value will be used directly. -m4_define([_LT_DECL], -[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], - [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], - [m4_ifval([$1], [$1], [$2])]) - lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) - m4_ifval([$4], - [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) - lt_dict_add_subkey([lt_decl_dict], [$2], - [tagged?], [m4_ifval([$5], [yes], [no])])]) -]) - - -# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) -# -------------------------------------------------------- -m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) - - -# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) -# ------------------------------------------------ -m4_define([lt_decl_tag_varnames], -[_lt_decl_filter([tagged?], [yes], $@)]) - - -# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) -# --------------------------------------------------------- -m4_define([_lt_decl_filter], -[m4_case([$#], - [0], [m4_fatal([$0: too few arguments: $#])], - [1], [m4_fatal([$0: too few arguments: $#: $1])], - [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], - [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], - [lt_dict_filter([lt_decl_dict], $@)])[]dnl -]) - - -# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) -# -------------------------------------------------- -m4_define([lt_decl_quote_varnames], -[_lt_decl_filter([value], [1], $@)]) - - -# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) -# --------------------------------------------------- -m4_define([lt_decl_dquote_varnames], -[_lt_decl_filter([value], [2], $@)]) - - -# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) -# --------------------------------------------------- -m4_define([lt_decl_varnames_tagged], -[m4_assert([$# <= 2])dnl -_$0(m4_quote(m4_default([$1], [[, ]])), - m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), - m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) -m4_define([_lt_decl_varnames_tagged], -[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) - - -# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) -# ------------------------------------------------ -m4_define([lt_decl_all_varnames], -[_$0(m4_quote(m4_default([$1], [[, ]])), - m4_if([$2], [], - m4_quote(lt_decl_varnames), - m4_quote(m4_shift($@))))[]dnl -]) -m4_define([_lt_decl_all_varnames], -[lt_join($@, lt_decl_varnames_tagged([$1], - lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl -]) - - -# _LT_CONFIG_STATUS_DECLARE([VARNAME]) -# ------------------------------------ -# Quote a variable value, and forward it to 'config.status' so that its -# declaration there will have the same value as in 'configure'. VARNAME -# must have a single quote delimited value for this to work. -m4_define([_LT_CONFIG_STATUS_DECLARE], -[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) - - -# _LT_CONFIG_STATUS_DECLARATIONS -# ------------------------------ -# We delimit libtool config variables with single quotes, so when -# we write them to config.status, we have to be sure to quote all -# embedded single quotes properly. In configure, this macro expands -# each variable declared with _LT_DECL (and _LT_TAGDECL) into: -# -# ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' -m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], -[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), - [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) - - -# _LT_LIBTOOL_TAGS -# ---------------- -# Output comment and list of tags supported by the script -m4_defun([_LT_LIBTOOL_TAGS], -[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl -available_tags='_LT_TAGS'dnl -]) - - -# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) -# ----------------------------------- -# Extract the dictionary values for VARNAME (optionally with TAG) and -# expand to a commented shell variable setting: -# -# # Some comment about what VAR is for. -# visible_name=$lt_internal_name -m4_define([_LT_LIBTOOL_DECLARE], -[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], - [description])))[]dnl -m4_pushdef([_libtool_name], - m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl -m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), - [0], [_libtool_name=[$]$1], - [1], [_libtool_name=$lt_[]$1], - [2], [_libtool_name=$lt_[]$1], - [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl -m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl -]) - - -# _LT_LIBTOOL_CONFIG_VARS -# ----------------------- -# Produce commented declarations of non-tagged libtool config variables -# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' -# script. Tagged libtool config variables (even for the LIBTOOL CONFIG -# section) are produced by _LT_LIBTOOL_TAG_VARS. -m4_defun([_LT_LIBTOOL_CONFIG_VARS], -[m4_foreach([_lt_var], - m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) - - -# _LT_LIBTOOL_TAG_VARS(TAG) -# ------------------------- -m4_define([_LT_LIBTOOL_TAG_VARS], -[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) - - -# _LT_TAGVAR(VARNAME, [TAGNAME]) -# ------------------------------ -m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) - - -# _LT_CONFIG_COMMANDS -# ------------------- -# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of -# variables for single and double quote escaping we saved from calls -# to _LT_DECL, we can put quote escaped variables declarations -# into 'config.status', and then the shell code to quote escape them in -# for loops in 'config.status'. Finally, any additional code accumulated -# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. -m4_defun([_LT_CONFIG_COMMANDS], -[AC_PROVIDE_IFELSE([LT_OUTPUT], - dnl If the libtool generation code has been placed in $CONFIG_LT, - dnl instead of duplicating it all over again into config.status, - dnl then we will have config.status run $CONFIG_LT later, so it - dnl needs to know what name is stored there: - [AC_CONFIG_COMMANDS([libtool], - [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], - dnl If the libtool generation code is destined for config.status, - dnl expand the accumulated commands and init code now: - [AC_CONFIG_COMMANDS([libtool], - [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) -])#_LT_CONFIG_COMMANDS - - -# Initialize. -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], -[ - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -sed_quote_subst='$sed_quote_subst' -double_quote_subst='$double_quote_subst' -delay_variable_subst='$delay_variable_subst' -_LT_CONFIG_STATUS_DECLARATIONS -LTCC='$LTCC' -LTCFLAGS='$LTCFLAGS' -compiler='$compiler_DEFAULT' - -# A function that is used when there is no print builtin or printf. -func_fallback_echo () -{ - eval 'cat <<_LTECHO_EOF -\$[]1 -_LTECHO_EOF' -} - -# Quote evaled strings. -for var in lt_decl_all_varnames([[ \ -]], lt_decl_quote_varnames); do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[[\\\\\\\`\\"\\\$]]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -# Double-quote double-evaled strings. -for var in lt_decl_all_varnames([[ \ -]], lt_decl_dquote_varnames); do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[[\\\\\\\`\\"\\\$]]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -_LT_OUTPUT_LIBTOOL_INIT -]) - -# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) -# ------------------------------------ -# Generate a child script FILE with all initialization necessary to -# reuse the environment learned by the parent script, and make the -# file executable. If COMMENT is supplied, it is inserted after the -# '#!' sequence but before initialization text begins. After this -# macro, additional text can be appended to FILE to form the body of -# the child script. The macro ends with non-zero status if the -# file could not be fully written (such as if the disk is full). -m4_ifdef([AS_INIT_GENERATED], -[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], -[m4_defun([_LT_GENERATED_FILE_INIT], -[m4_require([AS_PREPARE])]dnl -[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl -[lt_write_fail=0 -cat >$1 <<_ASEOF || lt_write_fail=1 -#! $SHELL -# Generated by $as_me. -$2 -SHELL=\${CONFIG_SHELL-$SHELL} -export SHELL -_ASEOF -cat >>$1 <<\_ASEOF || lt_write_fail=1 -AS_SHELL_SANITIZE -_AS_PREPARE -exec AS_MESSAGE_FD>&1 -_ASEOF -test 0 = "$lt_write_fail" && chmod +x $1[]dnl -m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT - -# LT_OUTPUT -# --------- -# This macro allows early generation of the libtool script (before -# AC_OUTPUT is called), incase it is used in configure for compilation -# tests. -AC_DEFUN([LT_OUTPUT], -[: ${CONFIG_LT=./config.lt} -AC_MSG_NOTICE([creating $CONFIG_LT]) -_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], -[# Run this file to recreate a libtool stub with the current configuration.]) - -cat >>"$CONFIG_LT" <<\_LTEOF -lt_cl_silent=false -exec AS_MESSAGE_LOG_FD>>config.log -{ - echo - AS_BOX([Running $as_me.]) -} >&AS_MESSAGE_LOG_FD - -lt_cl_help="\ -'$as_me' creates a local libtool stub from the current configuration, -for use in further configure time tests before the real libtool is -generated. - -Usage: $[0] [[OPTIONS]] - - -h, --help print this help, then exit - -V, --version print version number, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - -Report bugs to ." - -lt_cl_version="\ -m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl -m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) -configured by $[0], generated by m4_PACKAGE_STRING. - -Copyright (C) 2011 Free Software Foundation, Inc. -This config.lt script is free software; the Free Software Foundation -gives unlimited permision to copy, distribute and modify it." - -while test 0 != $[#] -do - case $[1] in - --version | --v* | -V ) - echo "$lt_cl_version"; exit 0 ;; - --help | --h* | -h ) - echo "$lt_cl_help"; exit 0 ;; - --debug | --d* | -d ) - debug=: ;; - --quiet | --q* | --silent | --s* | -q ) - lt_cl_silent=: ;; - - -*) AC_MSG_ERROR([unrecognized option: $[1] -Try '$[0] --help' for more information.]) ;; - - *) AC_MSG_ERROR([unrecognized argument: $[1] -Try '$[0] --help' for more information.]) ;; - esac - shift -done - -if $lt_cl_silent; then - exec AS_MESSAGE_FD>/dev/null -fi -_LTEOF - -cat >>"$CONFIG_LT" <<_LTEOF -_LT_OUTPUT_LIBTOOL_COMMANDS_INIT -_LTEOF - -cat >>"$CONFIG_LT" <<\_LTEOF -AC_MSG_NOTICE([creating $ofile]) -_LT_OUTPUT_LIBTOOL_COMMANDS -AS_EXIT(0) -_LTEOF -chmod +x "$CONFIG_LT" - -# configure is writing to config.log, but config.lt does its own redirection, -# appending to config.log, which fails on DOS, as config.log is still kept -# open by configure. Here we exec the FD to /dev/null, effectively closing -# config.log, so it can be properly (re)opened and appended to by config.lt. -lt_cl_success=: -test yes = "$silent" && - lt_config_lt_args="$lt_config_lt_args --quiet" -exec AS_MESSAGE_LOG_FD>/dev/null -$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false -exec AS_MESSAGE_LOG_FD>>config.log -$lt_cl_success || AS_EXIT(1) -])# LT_OUTPUT - - -# _LT_CONFIG(TAG) -# --------------- -# If TAG is the built-in tag, create an initial libtool script with a -# default configuration from the untagged config vars. Otherwise add code -# to config.status for appending the configuration named by TAG from the -# matching tagged config vars. -m4_defun([_LT_CONFIG], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -_LT_CONFIG_SAVE_COMMANDS([ - m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl - m4_if(_LT_TAG, [C], [ - # See if we are running on zsh, and set the options that allow our - # commands through without removal of \ escapes. - if test -n "${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST - fi - - cfgfile=${ofile}T - trap "$RM \"$cfgfile\"; exit 1" 1 2 15 - $RM "$cfgfile" - - cat <<_LT_EOF >> "$cfgfile" -#! $SHELL -# Generated automatically by $as_me ($PACKAGE) $VERSION -# NOTE: Changes made to this file will be lost: look at ltmain.sh. - -# Provide generalized library-building support services. -# Written by Gordon Matzigkeit, 1996 - -_LT_COPYING -_LT_LIBTOOL_TAGS - -# Configured defaults for sys_lib_dlsearch_path munging. -: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} - -# ### BEGIN LIBTOOL CONFIG -_LT_LIBTOOL_CONFIG_VARS -_LT_LIBTOOL_TAG_VARS -# ### END LIBTOOL CONFIG - -_LT_EOF - - cat <<'_LT_EOF' >> "$cfgfile" - -# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE - -_LT_PREPARE_MUNGE_PATH_LIST -_LT_PREPARE_CC_BASENAME - -# ### END FUNCTIONS SHARED WITH CONFIGURE - -_LT_EOF - - case $host_os in - aix3*) - cat <<\_LT_EOF >> "$cfgfile" -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test set != "${COLLECT_NAMES+set}"; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -_LT_EOF - ;; - esac - - _LT_PROG_LTMAIN - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" \ - || (rm -f "$cfgfile"; exit 1) - - mv -f "$cfgfile" "$ofile" || - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" -], -[cat <<_LT_EOF >> "$ofile" - -dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded -dnl in a comment (ie after a #). -# ### BEGIN LIBTOOL TAG CONFIG: $1 -_LT_LIBTOOL_TAG_VARS(_LT_TAG) -# ### END LIBTOOL TAG CONFIG: $1 -_LT_EOF -])dnl /m4_if -], -[m4_if([$1], [], [ - PACKAGE='$PACKAGE' - VERSION='$VERSION' - RM='$RM' - ofile='$ofile'], []) -])dnl /_LT_CONFIG_SAVE_COMMANDS -])# _LT_CONFIG - - -# LT_SUPPORTED_TAG(TAG) -# --------------------- -# Trace this macro to discover what tags are supported by the libtool -# --tag option, using: -# autoconf --trace 'LT_SUPPORTED_TAG:$1' -AC_DEFUN([LT_SUPPORTED_TAG], []) - - -# C support is built-in for now -m4_define([_LT_LANG_C_enabled], []) -m4_define([_LT_TAGS], []) - - -# LT_LANG(LANG) -# ------------- -# Enable libtool support for the given language if not already enabled. -AC_DEFUN([LT_LANG], -[AC_BEFORE([$0], [LT_OUTPUT])dnl -m4_case([$1], - [C], [_LT_LANG(C)], - [C++], [_LT_LANG(CXX)], - [Go], [_LT_LANG(GO)], - [Java], [_LT_LANG(GCJ)], - [Fortran 77], [_LT_LANG(F77)], - [Fortran], [_LT_LANG(FC)], - [Windows Resource], [_LT_LANG(RC)], - [m4_ifdef([_LT_LANG_]$1[_CONFIG], - [_LT_LANG($1)], - [m4_fatal([$0: unsupported language: "$1"])])])dnl -])# LT_LANG - - -# _LT_LANG(LANGNAME) -# ------------------ -m4_defun([_LT_LANG], -[m4_ifdef([_LT_LANG_]$1[_enabled], [], - [LT_SUPPORTED_TAG([$1])dnl - m4_append([_LT_TAGS], [$1 ])dnl - m4_define([_LT_LANG_]$1[_enabled], [])dnl - _LT_LANG_$1_CONFIG($1)])dnl -])# _LT_LANG - - -m4_ifndef([AC_PROG_GO], [ -############################################################ -# NOTE: This macro has been submitted for inclusion into # -# GNU Autoconf as AC_PROG_GO. When it is available in # -# a released version of Autoconf we should remove this # -# macro and use it instead. # -############################################################ -m4_defun([AC_PROG_GO], -[AC_LANG_PUSH(Go)dnl -AC_ARG_VAR([GOC], [Go compiler command])dnl -AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl -_AC_ARG_VAR_LDFLAGS()dnl -AC_CHECK_TOOL(GOC, gccgo) -if test -z "$GOC"; then - if test -n "$ac_tool_prefix"; then - AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) - fi -fi -if test -z "$GOC"; then - AC_CHECK_PROG(GOC, gccgo, gccgo, false) -fi -])#m4_defun -])#m4_ifndef - - -# _LT_LANG_DEFAULT_CONFIG -# ----------------------- -m4_defun([_LT_LANG_DEFAULT_CONFIG], -[AC_PROVIDE_IFELSE([AC_PROG_CXX], - [LT_LANG(CXX)], - [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) - -AC_PROVIDE_IFELSE([AC_PROG_F77], - [LT_LANG(F77)], - [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) - -AC_PROVIDE_IFELSE([AC_PROG_FC], - [LT_LANG(FC)], - [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) - -dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal -dnl pulling things in needlessly. -AC_PROVIDE_IFELSE([AC_PROG_GCJ], - [LT_LANG(GCJ)], - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], - [LT_LANG(GCJ)], - [AC_PROVIDE_IFELSE([LT_PROG_GCJ], - [LT_LANG(GCJ)], - [m4_ifdef([AC_PROG_GCJ], - [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) - m4_ifdef([A][M_PROG_GCJ], - [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) - m4_ifdef([LT_PROG_GCJ], - [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) - -AC_PROVIDE_IFELSE([AC_PROG_GO], - [LT_LANG(GO)], - [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) - -AC_PROVIDE_IFELSE([LT_PROG_RC], - [LT_LANG(RC)], - [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) -])# _LT_LANG_DEFAULT_CONFIG - -# Obsolete macros: -AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) -AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) -AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) -AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) -AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_CXX], []) -dnl AC_DEFUN([AC_LIBTOOL_F77], []) -dnl AC_DEFUN([AC_LIBTOOL_FC], []) -dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) -dnl AC_DEFUN([AC_LIBTOOL_RC], []) - - -# _LT_TAG_COMPILER -# ---------------- -m4_defun([_LT_TAG_COMPILER], -[AC_REQUIRE([AC_PROG_CC])dnl - -_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl -_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl -_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl -_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC -])# _LT_TAG_COMPILER - - -# _LT_COMPILER_BOILERPLATE -# ------------------------ -# Check for compiler boilerplate output or warnings with -# the simple compiler test code. -m4_defun([_LT_COMPILER_BOILERPLATE], -[m4_require([_LT_DECL_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$RM conftest* -])# _LT_COMPILER_BOILERPLATE - - -# _LT_LINKER_BOILERPLATE -# ---------------------- -# Check for linker boilerplate output or warnings with -# the simple link test code. -m4_defun([_LT_LINKER_BOILERPLATE], -[m4_require([_LT_DECL_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$RM -r conftest* -])# _LT_LINKER_BOILERPLATE - -# _LT_REQUIRED_DARWIN_CHECKS -# ------------------------- -m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ - case $host_os in - rhapsody* | darwin*) - AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) - AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) - AC_CHECK_TOOL([LIPO], [lipo], [:]) - AC_CHECK_TOOL([OTOOL], [otool], [:]) - AC_CHECK_TOOL([OTOOL64], [otool64], [:]) - _LT_DECL([], [DSYMUTIL], [1], - [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) - _LT_DECL([], [NMEDIT], [1], - [Tool to change global to local symbols on Mac OS X]) - _LT_DECL([], [LIPO], [1], - [Tool to manipulate fat objects and archives on Mac OS X]) - _LT_DECL([], [OTOOL], [1], - [ldd/readelf like tool for Mach-O binaries on Mac OS X]) - _LT_DECL([], [OTOOL64], [1], - [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) - - AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], - [lt_cv_apple_cc_single_mod=no - if test -z "$LT_MULTI_MODULE"; then - # By default we will add the -single_module flag. You can override - # by either setting the environment variable LT_MULTI_MODULE - # non-empty at configure time, or by adding -multi_module to the - # link flags. - rm -rf libconftest.dylib* - echo "int foo(void){return 1;}" > conftest.c - echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ --dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ - -dynamiclib -Wl,-single_module conftest.c 2>conftest.err - _lt_result=$? - # If there is a non-empty error log, and "single_module" - # appears in it, assume the flag caused a linker warning - if test -s conftest.err && $GREP single_module conftest.err; then - cat conftest.err >&AS_MESSAGE_LOG_FD - # Otherwise, if the output was created with a 0 exit code from - # the compiler, it worked. - elif test -f libconftest.dylib && test 0 = "$_lt_result"; then - lt_cv_apple_cc_single_mod=yes - else - cat conftest.err >&AS_MESSAGE_LOG_FD - fi - rm -rf libconftest.dylib* - rm -f conftest.* - fi]) - - AC_CACHE_CHECK([for -exported_symbols_list linker flag], - [lt_cv_ld_exported_symbols_list], - [lt_cv_ld_exported_symbols_list=no - save_LDFLAGS=$LDFLAGS - echo "_main" > conftest.sym - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], - [lt_cv_ld_exported_symbols_list=yes], - [lt_cv_ld_exported_symbols_list=no]) - LDFLAGS=$save_LDFLAGS - ]) - - AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], - [lt_cv_ld_force_load=no - cat > conftest.c << _LT_EOF -int forced_loaded() { return 2;} -_LT_EOF - echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD - $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD - echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD - $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD - echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD - $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD - cat > conftest.c << _LT_EOF -int main() { return 0;} -_LT_EOF - echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD - $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err - _lt_result=$? - if test -s conftest.err && $GREP force_load conftest.err; then - cat conftest.err >&AS_MESSAGE_LOG_FD - elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then - lt_cv_ld_force_load=yes - else - cat conftest.err >&AS_MESSAGE_LOG_FD - fi - rm -f conftest.err libconftest.a conftest conftest.c - rm -rf conftest.dSYM - ]) - case $host_os in - rhapsody* | darwin1.[[012]]) - _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; - darwin1.*) - _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - darwin*) # darwin 5.x on - # if running on 10.5 or later, the deployment target defaults - # to the OS version, if on x86, and 10.4, the deployment - # target defaults to 10.4. Don't you love it? - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) - _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; - 10.[[012]][[,.]]*) - _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - 10.*) - _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; - esac - ;; - esac - if test yes = "$lt_cv_apple_cc_single_mod"; then - _lt_dar_single_mod='$single_module' - fi - if test yes = "$lt_cv_ld_exported_symbols_list"; then - _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' - else - _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' - fi - if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then - _lt_dsymutil='~$DSYMUTIL $lib || :' - else - _lt_dsymutil= - fi - ;; - esac -]) - - -# _LT_DARWIN_LINKER_FEATURES([TAG]) -# --------------------------------- -# Checks for linker and compiler features on darwin -m4_defun([_LT_DARWIN_LINKER_FEATURES], -[ - m4_require([_LT_REQUIRED_DARWIN_CHECKS]) - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_automatic, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - if test yes = "$lt_cv_ld_force_load"; then - _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' - m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], - [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) - else - _LT_TAGVAR(whole_archive_flag_spec, $1)='' - fi - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined - case $cc_basename in - ifort*|nagfor*) _lt_dar_can_shared=yes ;; - *) _lt_dar_can_shared=$GCC ;; - esac - if test yes = "$_lt_dar_can_shared"; then - output_verbose_link_cmd=func_echo_all - _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" - _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" - _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" - _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" - m4_if([$1], [CXX], -[ if test yes != "$lt_cv_apple_cc_single_mod"; then - _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" - _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" - fi -],[]) - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi -]) - -# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) -# ---------------------------------- -# Links a minimal program and checks the executable -# for the system default hardcoded library path. In most cases, -# this is /usr/lib:/lib, but when the MPI compilers are used -# the location of the communication and MPI libs are included too. -# If we don't find anything, use the default library path according -# to the aix ld manual. -# Store the results from the different compilers for each TAGNAME. -# Allow to override them for all tags through lt_cv_aix_libpath. -m4_defun([_LT_SYS_MODULE_PATH_AIX], -[m4_require([_LT_DECL_SED])dnl -if test set = "${lt_cv_aix_libpath+set}"; then - aix_libpath=$lt_cv_aix_libpath -else - AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], - [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ - lt_aix_libpath_sed='[ - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\([^ ]*\) *$/\1/ - p - } - }]' - _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - # Check for a 64-bit object if we didn't find anything. - if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then - _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - fi],[]) - if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then - _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib - fi - ]) - aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) -fi -])# _LT_SYS_MODULE_PATH_AIX - - -# _LT_SHELL_INIT(ARG) -# ------------------- -m4_define([_LT_SHELL_INIT], -[m4_divert_text([M4SH-INIT], [$1 -])])# _LT_SHELL_INIT - - - -# _LT_PROG_ECHO_BACKSLASH -# ----------------------- -# Find how we can fake an echo command that does not interpret backslash. -# In particular, with Autoconf 2.60 or later we add some code to the start -# of the generated configure script that will find a shell with a builtin -# printf (that we can use as an echo command). -m4_defun([_LT_PROG_ECHO_BACKSLASH], -[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO - -AC_MSG_CHECKING([how to print strings]) -# Test print first, because it will be a builtin if present. -if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ - test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='print -r --' -elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='printf %s\n' -else - # Use this function as a fallback that always works. - func_fallback_echo () - { - eval 'cat <<_LTECHO_EOF -$[]1 -_LTECHO_EOF' - } - ECHO='func_fallback_echo' -fi - -# func_echo_all arg... -# Invoke $ECHO with all args, space-separated. -func_echo_all () -{ - $ECHO "$*" -} - -case $ECHO in - printf*) AC_MSG_RESULT([printf]) ;; - print*) AC_MSG_RESULT([print -r]) ;; - *) AC_MSG_RESULT([cat]) ;; -esac - -m4_ifdef([_AS_DETECT_SUGGESTED], -[_AS_DETECT_SUGGESTED([ - test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( - ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' - ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO - ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO - PATH=/empty FPATH=/empty; export PATH FPATH - test "X`printf %s $ECHO`" = "X$ECHO" \ - || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) - -_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) -_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) -])# _LT_PROG_ECHO_BACKSLASH - - -# _LT_WITH_SYSROOT -# ---------------- -AC_DEFUN([_LT_WITH_SYSROOT], -[AC_MSG_CHECKING([for sysroot]) -AC_ARG_WITH([sysroot], -[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], - [Search for dependent libraries within DIR (or the compiler's sysroot - if not specified).])], -[], [with_sysroot=no]) - -dnl lt_sysroot will always be passed unquoted. We quote it here -dnl in case the user passed a directory name. -lt_sysroot= -case $with_sysroot in #( - yes) - if test yes = "$GCC"; then - lt_sysroot=`$CC --print-sysroot 2>/dev/null` - fi - ;; #( - /*) - lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` - ;; #( - no|'') - ;; #( - *) - AC_MSG_RESULT([$with_sysroot]) - AC_MSG_ERROR([The sysroot must be an absolute path.]) - ;; -esac - - AC_MSG_RESULT([${lt_sysroot:-no}]) -_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl -[dependent libraries, and where our libraries should be installed.])]) - -# _LT_ENABLE_LOCK -# --------------- -m4_defun([_LT_ENABLE_LOCK], -[AC_ARG_ENABLE([libtool-lock], - [AS_HELP_STRING([--disable-libtool-lock], - [avoid locking (might break parallel builds)])]) -test no = "$enable_libtool_lock" || enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out what ABI is being produced by ac_compile, and set mode - # options accordingly. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE=32 - ;; - *ELF-64*) - HPUX_IA64_MODE=64 - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. - echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - if test yes = "$lt_cv_prog_gnu_ld"; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -mips64*-*linux*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. - echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - emul=elf - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - emul="${emul}32" - ;; - *64-bit*) - emul="${emul}64" - ;; - esac - case `/usr/bin/file conftest.$ac_objext` in - *MSB*) - emul="${emul}btsmip" - ;; - *LSB*) - emul="${emul}ltsmip" - ;; - esac - case `/usr/bin/file conftest.$ac_objext` in - *N32*) - emul="${emul}n32" - ;; - esac - LD="${LD-ld} -m $emul" - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ -s390*-*linux*|s390*-*tpf*|sparc*-*linux*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. Note that the listed cases only cover the - # situations where additional linker options are needed (such as when - # doing 32-bit compilation for a host where ld defaults to 64-bit, or - # vice versa); the common cases where no linker options are needed do - # not appear in the list. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - case `/usr/bin/file conftest.o` in - *x86-64*) - LD="${LD-ld} -m elf32_x86_64" - ;; - *) - LD="${LD-ld} -m elf_i386" - ;; - esac - ;; - powerpc64le-*linux*) - LD="${LD-ld} -m elf32lppclinux" - ;; - powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - powerpcle-*linux*) - LD="${LD-ld} -m elf64lppc" - ;; - powerpc-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*|s390*-*tpf*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS -belf" - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, - [AC_LANG_PUSH(C) - AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) - AC_LANG_POP]) - if test yes != "$lt_cv_cc_needs_belf"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS=$SAVE_CFLAGS - fi - ;; -*-*solaris*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) - case $host in - i?86-*-solaris*|x86_64-*-solaris*) - LD="${LD-ld} -m elf_x86_64" - ;; - sparc*-*-solaris*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - # GNU ld 2.21 introduced _sol2 emulations. Use them if available. - if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then - LD=${LD-ld}_sol2 - fi - ;; - *) - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then - LD="${LD-ld} -64" - fi - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; -esac - -need_locks=$enable_libtool_lock -])# _LT_ENABLE_LOCK - - -# _LT_PROG_AR -# ----------- -m4_defun([_LT_PROG_AR], -[AC_CHECK_TOOLS(AR, [ar], false) -: ${AR=ar} -: ${AR_FLAGS=cru} -_LT_DECL([], [AR], [1], [The archiver]) -_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) - -AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], - [lt_cv_ar_at_file=no - AC_COMPILE_IFELSE([AC_LANG_PROGRAM], - [echo conftest.$ac_objext > conftest.lst - lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' - AC_TRY_EVAL([lt_ar_try]) - if test 0 -eq "$ac_status"; then - # Ensure the archiver fails upon bogus file names. - rm -f conftest.$ac_objext libconftest.a - AC_TRY_EVAL([lt_ar_try]) - if test 0 -ne "$ac_status"; then - lt_cv_ar_at_file=@ - fi - fi - rm -f conftest.* libconftest.a - ]) - ]) - -if test no = "$lt_cv_ar_at_file"; then - archiver_list_spec= -else - archiver_list_spec=$lt_cv_ar_at_file -fi -_LT_DECL([], [archiver_list_spec], [1], - [How to feed a file listing to the archiver]) -])# _LT_PROG_AR - - -# _LT_CMD_OLD_ARCHIVE -# ------------------- -m4_defun([_LT_CMD_OLD_ARCHIVE], -[_LT_PROG_AR - -AC_CHECK_TOOL(STRIP, strip, :) -test -z "$STRIP" && STRIP=: -_LT_DECL([], [STRIP], [1], [A symbol stripping program]) - -AC_CHECK_TOOL(RANLIB, ranlib, :) -test -z "$RANLIB" && RANLIB=: -_LT_DECL([], [RANLIB], [1], - [Commands used to install an old-style archive]) - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - bitrig* | openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" -fi - -case $host_os in - darwin*) - lock_old_archive_extraction=yes ;; - *) - lock_old_archive_extraction=no ;; -esac -_LT_DECL([], [old_postinstall_cmds], [2]) -_LT_DECL([], [old_postuninstall_cmds], [2]) -_LT_TAGDECL([], [old_archive_cmds], [2], - [Commands used to build an old-style archive]) -_LT_DECL([], [lock_old_archive_extraction], [0], - [Whether to use a lock for old archive extraction]) -])# _LT_CMD_OLD_ARCHIVE - - -# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) -# ---------------------------------------------------------------- -# Check whether the given compiler option works -AC_DEFUN([_LT_COMPILER_OPTION], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_SED])dnl -AC_CACHE_CHECK([$1], [$2], - [$2=no - m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - fi - $RM conftest* -]) - -if test yes = "[$]$2"; then - m4_if([$5], , :, [$5]) -else - m4_if([$6], , :, [$6]) -fi -])# _LT_COMPILER_OPTION - -# Old name: -AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) - - -# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [ACTION-SUCCESS], [ACTION-FAILURE]) -# ---------------------------------------------------- -# Check whether the given linker option works -AC_DEFUN([_LT_LINKER_OPTION], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_SED])dnl -AC_CACHE_CHECK([$1], [$2], - [$2=no - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS $3" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&AS_MESSAGE_LOG_FD - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - else - $2=yes - fi - fi - $RM -r conftest* - LDFLAGS=$save_LDFLAGS -]) - -if test yes = "[$]$2"; then - m4_if([$4], , :, [$4]) -else - m4_if([$5], , :, [$5]) -fi -])# _LT_LINKER_OPTION - -# Old name: -AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) - - -# LT_CMD_MAX_LEN -#--------------- -AC_DEFUN([LT_CMD_MAX_LEN], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -# find the maximum length of command line arguments -AC_MSG_CHECKING([the maximum length of command line arguments]) -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl - i=0 - teststring=ABCD - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - mint*) - # On MiNT this can take a long time and run out of memory. - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - os2*) - # The test takes a long time on OS/2. - lt_cv_sys_max_cmd_len=8192 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len" && \ - test undefined != "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - # Make teststring a little bigger before we do anything with it. - # a 1K string should be a reasonable start. - for i in 1 2 3 4 5 6 7 8; do - teststring=$teststring$teststring - done - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - # If test is not a shell built-in, we'll probably end up computing a - # maximum length that is only half of the actual maximum length, but - # we can't tell. - while { test X`env echo "$teststring$teststring" 2>/dev/null` \ - = "X$teststring$teststring"; } >/dev/null 2>&1 && - test 17 != "$i" # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - # Only check the string length outside the loop. - lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` - teststring= - # Add a significant safety factor because C++ compilers can tack on - # massive amounts of additional arguments before passing them to the - # linker. It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac -]) -if test -n "$lt_cv_sys_max_cmd_len"; then - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) -else - AC_MSG_RESULT(none) -fi -max_cmd_len=$lt_cv_sys_max_cmd_len -_LT_DECL([], [max_cmd_len], [0], - [What is the maximum length of a command?]) -])# LT_CMD_MAX_LEN - -# Old name: -AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) - - -# _LT_HEADER_DLFCN -# ---------------- -m4_defun([_LT_HEADER_DLFCN], -[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl -])# _LT_HEADER_DLFCN - - -# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) -# ---------------------------------------------------------------- -m4_defun([_LT_TRY_DLOPEN_SELF], -[m4_require([_LT_HEADER_DLFCN])dnl -if test yes = "$cross_compiling"; then : - [$4] -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext <<_LT_EOF -[#line $LINENO "configure" -#include "confdefs.h" - -#if HAVE_DLFCN_H -#include -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -/* When -fvisibility=hidden is used, assume the code has been annotated - correspondingly for the symbols needed. */ -#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) -int fnord () __attribute__((visibility("default"))); -#endif - -int fnord () { return 42; } -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else - { - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - else puts (dlerror ()); - } - /* dlclose (self); */ - } - else - puts (dlerror ()); - - return status; -}] -_LT_EOF - if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) $1 ;; - x$lt_dlneed_uscore) $2 ;; - x$lt_dlunknown|x*) $3 ;; - esac - else : - # compilation failed - $3 - fi -fi -rm -fr conftest* -])# _LT_TRY_DLOPEN_SELF - - -# LT_SYS_DLOPEN_SELF -# ------------------ -AC_DEFUN([LT_SYS_DLOPEN_SELF], -[m4_require([_LT_HEADER_DLFCN])dnl -if test yes != "$enable_dlopen"; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - - case $host_os in - beos*) - lt_cv_dlopen=load_add_on - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - - mingw* | pw32* | cegcc*) - lt_cv_dlopen=LoadLibrary - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen=dlopen - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ - lt_cv_dlopen=dyld - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ]) - ;; - - tpf*) - # Don't try to run any link tests for TPF. We know it's impossible - # because TPF is a cross-compiler, and we know how we open DSOs. - lt_cv_dlopen=dlopen - lt_cv_dlopen_libs= - lt_cv_dlopen_self=no - ;; - - *) - AC_CHECK_FUNC([shl_load], - [lt_cv_dlopen=shl_load], - [AC_CHECK_LIB([dld], [shl_load], - [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], - [AC_CHECK_FUNC([dlopen], - [lt_cv_dlopen=dlopen], - [AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], - [AC_CHECK_LIB([svld], [dlopen], - [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], - [AC_CHECK_LIB([dld], [dld_link], - [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) - ]) - ]) - ]) - ]) - ]) - ;; - esac - - if test no = "$lt_cv_dlopen"; then - enable_dlopen=no - else - enable_dlopen=yes - fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS=$CPPFLAGS - test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS=$LDFLAGS - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS=$LIBS - LIBS="$lt_cv_dlopen_libs $LIBS" - - AC_CACHE_CHECK([whether a program can dlopen itself], - lt_cv_dlopen_self, [dnl - _LT_TRY_DLOPEN_SELF( - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) - ]) - - if test yes = "$lt_cv_dlopen_self"; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - AC_CACHE_CHECK([whether a statically linked program can dlopen itself], - lt_cv_dlopen_self_static, [dnl - _LT_TRY_DLOPEN_SELF( - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) - ]) - fi - - CPPFLAGS=$save_CPPFLAGS - LDFLAGS=$save_LDFLAGS - LIBS=$save_LIBS - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi -_LT_DECL([dlopen_support], [enable_dlopen], [0], - [Whether dlopen is supported]) -_LT_DECL([dlopen_self], [enable_dlopen_self], [0], - [Whether dlopen of programs is supported]) -_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], - [Whether dlopen of statically linked programs is supported]) -])# LT_SYS_DLOPEN_SELF - -# Old name: -AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) - - -# _LT_COMPILER_C_O([TAGNAME]) -# --------------------------- -# Check to see if options -c and -o are simultaneously supported by compiler. -# This macro does not hard code the compiler like AC_PROG_CC_C_O. -m4_defun([_LT_COMPILER_C_O], -[m4_require([_LT_DECL_SED])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_TAG_COMPILER])dnl -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no - $RM -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - fi - fi - chmod u+w . 2>&AS_MESSAGE_LOG_FD - $RM conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files - $RM out/* && rmdir out - cd .. - $RM -r conftest - $RM conftest* -]) -_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], - [Does compiler simultaneously support -c and -o options?]) -])# _LT_COMPILER_C_O - - -# _LT_COMPILER_FILE_LOCKS([TAGNAME]) -# ---------------------------------- -# Check to see if we can do hard links to lock some files if needed -m4_defun([_LT_COMPILER_FILE_LOCKS], -[m4_require([_LT_ENABLE_LOCK])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -_LT_COMPILER_C_O([$1]) - -hard_links=nottested -if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then - # do not overwrite the value of need_locks provided by the user - AC_MSG_CHECKING([if we can lock with hard links]) - hard_links=yes - $RM conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - AC_MSG_RESULT([$hard_links]) - if test no = "$hard_links"; then - AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) - need_locks=warn - fi -else - need_locks=no -fi -_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) -])# _LT_COMPILER_FILE_LOCKS - - -# _LT_CHECK_OBJDIR -# ---------------- -m4_defun([_LT_CHECK_OBJDIR], -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], -[rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null]) -objdir=$lt_cv_objdir -_LT_DECL([], [objdir], [0], - [The name of the directory that contains temporary libtool files])dnl -m4_pattern_allow([LT_OBJDIR])dnl -AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", - [Define to the sub-directory where libtool stores uninstalled libraries.]) -])# _LT_CHECK_OBJDIR - - -# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) -# -------------------------------------- -# Check hardcoding attributes. -m4_defun([_LT_LINKER_HARDCODE_LIBPATH], -[AC_MSG_CHECKING([how to hardcode library paths into programs]) -_LT_TAGVAR(hardcode_action, $1)= -if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || - test -n "$_LT_TAGVAR(runpath_var, $1)" || - test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then - - # We can hardcode non-existent directories. - if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && - test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then - # Linking always hardcodes the temporary library directory. - _LT_TAGVAR(hardcode_action, $1)=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - _LT_TAGVAR(hardcode_action, $1)=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - _LT_TAGVAR(hardcode_action, $1)=unsupported -fi -AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) - -if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || - test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then - # Fast installation is not supported - enable_fast_install=no -elif test yes = "$shlibpath_overrides_runpath" || - test no = "$enable_shared"; then - # Fast installation is not necessary - enable_fast_install=needless -fi -_LT_TAGDECL([], [hardcode_action], [0], - [How to hardcode a shared library path into an executable]) -])# _LT_LINKER_HARDCODE_LIBPATH - - -# _LT_CMD_STRIPLIB -# ---------------- -m4_defun([_LT_CMD_STRIPLIB], -[m4_require([_LT_DECL_EGREP]) -striplib= -old_striplib= -AC_MSG_CHECKING([whether stripping libraries is possible]) -if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - AC_MSG_RESULT([yes]) -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP"; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - fi - ;; - *) - AC_MSG_RESULT([no]) - ;; - esac -fi -_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) -_LT_DECL([], [striplib], [1]) -])# _LT_CMD_STRIPLIB - - -# _LT_PREPARE_MUNGE_PATH_LIST -# --------------------------- -# Make sure func_munge_path_list() is defined correctly. -m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], -[[# func_munge_path_list VARIABLE PATH -# ----------------------------------- -# VARIABLE is name of variable containing _space_ separated list of -# directories to be munged by the contents of PATH, which is string -# having a format: -# "DIR[:DIR]:" -# string "DIR[ DIR]" will be prepended to VARIABLE -# ":DIR[:DIR]" -# string "DIR[ DIR]" will be appended to VARIABLE -# "DIRP[:DIRP]::[DIRA:]DIRA" -# string "DIRP[ DIRP]" will be prepended to VARIABLE and string -# "DIRA[ DIRA]" will be appended to VARIABLE -# "DIR[:DIR]" -# VARIABLE will be replaced by "DIR[ DIR]" -func_munge_path_list () -{ - case x@S|@2 in - x) - ;; - *:) - eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" - ;; - x:*) - eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" - ;; - *::*) - eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" - eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" - ;; - *) - eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" - ;; - esac -} -]])# _LT_PREPARE_PATH_LIST - - -# _LT_SYS_DYNAMIC_LINKER([TAG]) -# ----------------------------- -# PORTME Fill in your ld.so characteristics -m4_defun([_LT_SYS_DYNAMIC_LINKER], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_OBJDUMP])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_CHECK_SHELL_FEATURES])dnl -m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl -AC_MSG_CHECKING([dynamic linker characteristics]) -m4_if([$1], - [], [ -if test yes = "$GCC"; then - case $host_os in - darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; - *) lt_awk_arg='/^libraries:/' ;; - esac - case $host_os in - mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; - *) lt_sed_strip_eq='s|=/|/|g' ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` - case $lt_search_path_spec in - *\;*) - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` - ;; - *) - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` - ;; - esac - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary... - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - # ...but if some path component already ends with the multilib dir we assume - # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). - case "$lt_multi_os_dir; $lt_search_path_spec " in - "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) - lt_multi_os_dir= - ;; - esac - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" - elif test -n "$lt_multi_os_dir"; then - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' -BEGIN {RS = " "; FS = "/|\n";} { - lt_foo = ""; - lt_count = 0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo = "/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[[lt_foo]]++; } - if (lt_freq[[lt_foo]] == 1) { print lt_foo; } -}'` - # AWK program above erroneously prepends '/' to C:/dos/paths - # for these hosts. - case $host_os in - mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ - $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; - esac - sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi]) -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=.so -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -AC_ARG_VAR([LT_SYS_LIBRARY_PATH], -[User-defined run-time library search path.]) - -case $host_os in -aix3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='$libname$release$shared_ext$major' - ;; - -aix[[4-9]]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test ia64 = "$host_cpu"; then - # AIX 5 supports IA64 - library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line '#! .'. This would cause the generated library to - # depend on '.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[[01]] | aix4.[[01]].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # Using Import Files as archive members, it is possible to support - # filename-based versioning of shared library archives on AIX. While - # this would work for both with and without runtime linking, it will - # prevent static linking of such archives. So we do filename-based - # shared library versioning with .so extension only, which is used - # when both runtime linking and shared linking is enabled. - # Unfortunately, runtime linking may impact performance, so we do - # not want this to be the default eventually. Also, we use the - # versioned .so libs for executables only if there is the -brtl - # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. - # To allow for filename-based versioning support, we need to create - # libNAME.so.V as an archive file, containing: - # *) an Import File, referring to the versioned filename of the - # archive as well as the shared archive member, telling the - # bitwidth (32 or 64) of that shared object, and providing the - # list of exported symbols of that shared object, eventually - # decorated with the 'weak' keyword - # *) the shared object with the F_LOADONLY flag set, to really avoid - # it being seen by the linker. - # At run time we better use the real file rather than another symlink, - # but for link time we create the symlink libNAME.so -> libNAME.so.V - - case $with_aix_soname,$aix_use_runtimelinking in - # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - aix,yes) # traditional libtool - dynamic_linker='AIX unversionable lib.so' - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - ;; - aix,no) # traditional AIX only - dynamic_linker='AIX lib.a[(]lib.so.V[)]' - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='$libname$release.a $libname.a' - soname_spec='$libname$release$shared_ext$major' - ;; - svr4,*) # full svr4 only - dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" - library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' - # We do not specify a path in Import Files, so LIBPATH fires. - shlibpath_overrides_runpath=yes - ;; - *,yes) # both, prefer svr4 - dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" - library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' - # unpreferred sharedlib libNAME.a needs extra handling - postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' - postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' - # We do not specify a path in Import Files, so LIBPATH fires. - shlibpath_overrides_runpath=yes - ;; - *,no) # both, prefer aix - dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" - library_names_spec='$libname$release.a $libname.a' - soname_spec='$libname$release$shared_ext$major' - # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling - postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' - postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' - ;; - esac - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - case $host_cpu in - powerpc) - # Since July 2007 AmigaOS4 officially supports .so libraries. - # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - ;; - m68k) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - esac - ;; - -beos*) - library_names_spec='$libname$shared_ext' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[[45]]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=.dll - need_version=no - need_lib_prefix=no - - case $GCC,$cc_basename in - yes,*) - # gcc - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname~ - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; - fi' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' -m4_if([$1], [],[ - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) - ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' - ;; - esac - dynamic_linker='Win32 ld.exe' - ;; - - *,cl*) - # Native MSVC - libname_spec='$name' - soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' - library_names_spec='$libname.dll.lib' - - case $build_os in - mingw*) - sys_lib_search_path_spec= - lt_save_ifs=$IFS - IFS=';' - for lt_path in $LIB - do - IFS=$lt_save_ifs - # Let DOS variable expansion print the short 8.3 style file name. - lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` - sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" - done - IFS=$lt_save_ifs - # Convert to MSYS style. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` - ;; - cygwin*) - # Convert to unix form, then to dos form, then back to unix form - # but this time dos style (no spaces!) so that the unix form looks - # like /cygdrive/c/PROGRA~1:/cygdr... - sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` - sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` - sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - ;; - *) - sys_lib_search_path_spec=$LIB - if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then - # It is most probably a Windows format PATH. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # FIXME: find the short name or the path components, as spaces are - # common. (e.g. "Program Files" -> "PROGRA~1") - ;; - esac - - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - dynamic_linker='Win32 link.exe' - ;; - - *) - # Assume MSVC wrapper - library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' - dynamic_linker='Win32 ld.exe' - ;; - esac - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' - soname_spec='$libname$release$major$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' -m4_if([$1], [],[ - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[[23]].*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2.*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[[01]]* | freebsdelf3.[[01]]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -haiku*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - dynamic_linker="$host_os runtime_loader" - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LIBRARY_PATH - shlibpath_overrides_runpath=no - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - if test 32 = "$HPUX_IA64_MODE"; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - sys_lib_dlsearch_path_spec=/usr/lib/hpux32 - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - sys_lib_dlsearch_path_spec=/usr/lib/hpux64 - fi - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555, ... - postinstall_cmds='chmod 555 $lib' - # or fails outright, so override atomically: - install_override_mode=555 - ;; - -interix[[3-9]]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test yes = "$lt_cv_prog_gnu_ld"; then - version_type=linux # correct to gnu/linux during the next big refactor - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='$libname$release$shared_ext$major' - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" - sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -linux*android*) - version_type=none # Android doesn't support versioned libraries. - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext' - soname_spec='$libname$release$shared_ext' - finish_cmds= - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - dynamic_linker='Android linker' - # Don't embed -rpath directories since the linker doesn't support them. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - ;; - -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - - # Some binutils ld are patched to set DT_RUNPATH - AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], - [lt_cv_shlibpath_overrides_runpath=no - save_LDFLAGS=$LDFLAGS - save_libdir=$libdir - eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ - LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], - [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], - [lt_cv_shlibpath_overrides_runpath=yes])]) - LDFLAGS=$save_LDFLAGS - libdir=$save_libdir - ]) - shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath - - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Ideally, we could use ldconfig to report *all* directores which are - # searched for libraries, however this is still not possible. Aside from not - # being certain /sbin/ldconfig is available, command - # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, - # even though it is searched at run-time. Try to do the best guess by - # appending ld.so.conf contents (and includes) to the search path. - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsdelf*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='NetBSD ld.elf_so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -*nto* | *qnx*) - version_type=qnx - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='ldqnx.so' - ;; - -openbsd* | bitrig*) - version_type=sunos - sys_lib_dlsearch_path_spec=/usr/lib - need_lib_prefix=no - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then - need_version=no - else - need_version=yes - fi - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -os2*) - libname_spec='$name' - version_type=windows - shrext_cmds=.dll - need_version=no - need_lib_prefix=no - # OS/2 can only load a DLL with a base name of 8 characters or less. - soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; - v=$($ECHO $release$versuffix | tr -d .-); - n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); - $ECHO $n$v`$shared_ext' - library_names_spec='${libname}_dll.$libext' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=BEGINLIBPATH - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname~ - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; - fi' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='$libname$release$shared_ext$major' - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test yes = "$with_gnu_ld"; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec; then - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' - soname_spec='$libname$shared_ext.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=sco - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - if test yes = "$with_gnu_ld"; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -tpf*) - # TPF is a cross-target only. Preferred cross-host = GNU/Linux. - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -uts4*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -AC_MSG_RESULT([$dynamic_linker]) -test no = "$dynamic_linker" && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test yes = "$GCC"; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then - sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec -fi - -if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then - sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec -fi - -# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... -configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec - -# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code -func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" - -# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool -configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH - -_LT_DECL([], [variables_saved_for_relink], [1], - [Variables whose values should be saved in libtool wrapper scripts and - restored at link time]) -_LT_DECL([], [need_lib_prefix], [0], - [Do we need the "lib" prefix for modules?]) -_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) -_LT_DECL([], [version_type], [0], [Library versioning type]) -_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) -_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) -_LT_DECL([], [shlibpath_overrides_runpath], [0], - [Is shlibpath searched before the hard-coded library search path?]) -_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) -_LT_DECL([], [library_names_spec], [1], - [[List of archive names. First name is the real one, the rest are links. - The last name is the one that the linker finds with -lNAME]]) -_LT_DECL([], [soname_spec], [1], - [[The coded name of the library, if different from the real name]]) -_LT_DECL([], [install_override_mode], [1], - [Permission mode override for installation of shared libraries]) -_LT_DECL([], [postinstall_cmds], [2], - [Command to use after installation of a shared archive]) -_LT_DECL([], [postuninstall_cmds], [2], - [Command to use after uninstallation of a shared archive]) -_LT_DECL([], [finish_cmds], [2], - [Commands used to finish a libtool library installation in a directory]) -_LT_DECL([], [finish_eval], [1], - [[As "finish_cmds", except a single script fragment to be evaled but - not shown]]) -_LT_DECL([], [hardcode_into_libs], [0], - [Whether we should hardcode library paths into libraries]) -_LT_DECL([], [sys_lib_search_path_spec], [2], - [Compile-time system search path for libraries]) -_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], - [Detected run-time system search path for libraries]) -_LT_DECL([], [configure_time_lt_sys_library_path], [2], - [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) -])# _LT_SYS_DYNAMIC_LINKER - - -# _LT_PATH_TOOL_PREFIX(TOOL) -# -------------------------- -# find a file program that can recognize shared library -AC_DEFUN([_LT_PATH_TOOL_PREFIX], -[m4_require([_LT_DECL_EGREP])dnl -AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, -[case $MAGIC_CMD in -[[\\/*] | ?:[\\/]*]) - lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD=$MAGIC_CMD - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR -dnl $ac_dummy forces splitting on constant user-supplied paths. -dnl POSIX.2 word splitting is done only on the output of word expansions, -dnl not every word. This closes a longstanding sh security hole. - ac_dummy="m4_if([$2], , $PATH, [$2])" - for ac_dir in $ac_dummy; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$1"; then - lt_cv_path_MAGIC_CMD=$ac_dir/"$1" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD=$lt_cv_path_MAGIC_CMD - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <<_LT_EOF 1>&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -_LT_EOF - fi ;; - esac - fi - break - fi - done - IFS=$lt_save_ifs - MAGIC_CMD=$lt_save_MAGIC_CMD - ;; -esac]) -MAGIC_CMD=$lt_cv_path_MAGIC_CMD -if test -n "$MAGIC_CMD"; then - AC_MSG_RESULT($MAGIC_CMD) -else - AC_MSG_RESULT(no) -fi -_LT_DECL([], [MAGIC_CMD], [0], - [Used to examine libraries when file_magic_cmd begins with "file"])dnl -])# _LT_PATH_TOOL_PREFIX - -# Old name: -AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) - - -# _LT_PATH_MAGIC -# -------------- -# find a file program that can recognize a shared library -m4_defun([_LT_PATH_MAGIC], -[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) - else - MAGIC_CMD=: - fi -fi -])# _LT_PATH_MAGIC - - -# LT_PATH_LD -# ---------- -# find the pathname to the GNU or non-GNU linker -AC_DEFUN([LT_PATH_LD], -[AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_PROG_ECHO_BACKSLASH])dnl - -AC_ARG_WITH([gnu-ld], - [AS_HELP_STRING([--with-gnu-ld], - [assume the C compiler uses GNU ld @<:@default=no@:>@])], - [test no = "$withval" || with_gnu_ld=yes], - [with_gnu_ld=no])dnl - -ac_prog=ld -if test yes = "$GCC"; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by $CC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return, which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]]* | ?:[[\\/]]*) - re_direlt='/[[^/]][[^/]]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` - while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do - ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD=$ac_prog - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test yes = "$with_gnu_ld"; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(lt_cv_path_LD, -[if test -z "$LD"; then - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD=$ac_dir/$ac_prog - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &1 conftest.i -cat conftest.i conftest.i >conftest2.i -: ${lt_DD:=$DD} -AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], -[if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then - cmp -s conftest.i conftest.out \ - && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: -fi]) -rm -f conftest.i conftest2.i conftest.out]) -])# _LT_PATH_DD - - -# _LT_CMD_TRUNCATE -# ---------------- -# find command to truncate a binary pipe -m4_defun([_LT_CMD_TRUNCATE], -[m4_require([_LT_PATH_DD]) -AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], -[printf 0123456789abcdef0123456789abcdef >conftest.i -cat conftest.i conftest.i >conftest2.i -lt_cv_truncate_bin= -if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then - cmp -s conftest.i conftest.out \ - && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" -fi -rm -f conftest.i conftest2.i conftest.out -test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) -_LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], - [Command to truncate a binary pipe]) -])# _LT_CMD_TRUNCATE - - -# _LT_CHECK_MAGIC_METHOD -# ---------------------- -# how to check for library dependencies -# -- PORTME fill in with the dynamic library characteristics -m4_defun([_LT_CHECK_MAGIC_METHOD], -[m4_require([_LT_DECL_EGREP]) -m4_require([_LT_DECL_OBJDUMP]) -AC_CACHE_CHECK([how to recognize dependent libraries], -lt_cv_deplibs_check_method, -[lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# 'unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# that responds to the $file_magic_cmd with a given extended regex. -# If you have 'file' or equivalent on your system and you're not sure -# whether 'pass_all' will *always* work, you probably want this one. - -case $host_os in -aix[[4-9]]*) - lt_cv_deplibs_check_method=pass_all - ;; - -beos*) - lt_cv_deplibs_check_method=pass_all - ;; - -bsdi[[45]]*) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - -cygwin*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - ;; - -mingw* | pw32*) - # Base MSYS/MinGW do not provide the 'file' command needed by - # func_win32_libid shell function, so use a weaker test based on 'objdump', - # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - # Keep this pattern in sync with the one in func_win32_libid. - lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -cegcc*) - # use the weaker test based on 'objdump'. See mingw*. - lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -haiku*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[[3-9]]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -*nto* | *qnx*) - lt_cv_deplibs_check_method=pass_all - ;; - -openbsd* | bitrig*) - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - fi - ;; - -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; - -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -tpf*) - lt_cv_deplibs_check_method=pass_all - ;; -os2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac -]) - -file_magic_glob= -want_nocaseglob=no -if test "$build" = "$host"; then - case $host_os in - mingw* | pw32*) - if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then - want_nocaseglob=yes - else - file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` - fi - ;; - esac -fi - -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown - -_LT_DECL([], [deplibs_check_method], [1], - [Method to check whether dependent libraries are shared objects]) -_LT_DECL([], [file_magic_cmd], [1], - [Command to use when deplibs_check_method = "file_magic"]) -_LT_DECL([], [file_magic_glob], [1], - [How to find potential files when deplibs_check_method = "file_magic"]) -_LT_DECL([], [want_nocaseglob], [1], - [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) -])# _LT_CHECK_MAGIC_METHOD - - -# LT_PATH_NM -# ---------- -# find the pathname to a BSD- or MS-compatible name lister -AC_DEFUN([LT_PATH_NM], -[AC_REQUIRE([AC_PROG_CC])dnl -AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, -[if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM=$NM -else - lt_nm_to_check=${ac_tool_prefix}nm - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - tmp_nm=$ac_dir/$lt_tmp_nm - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the 'sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty - case $build_os in - mingw*) lt_bad_file=conftest.nm/nofile ;; - *) lt_bad_file=/dev/null ;; - esac - case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in - *$lt_bad_file* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break 2 - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break 2 - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS=$lt_save_ifs - done - : ${lt_cv_path_NM=no} -fi]) -if test no != "$lt_cv_path_NM"; then - NM=$lt_cv_path_NM -else - # Didn't find any BSD compatible name lister, look for dumpbin. - if test -n "$DUMPBIN"; then : - # Let the user override the test. - else - AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) - case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in - *COFF*) - DUMPBIN="$DUMPBIN -symbols -headers" - ;; - *) - DUMPBIN=: - ;; - esac - fi - AC_SUBST([DUMPBIN]) - if test : != "$DUMPBIN"; then - NM=$DUMPBIN - fi -fi -test -z "$NM" && NM=nm -AC_SUBST([NM]) -_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl - -AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], - [lt_cv_nm_interface="BSD nm" - echo "int some_variable = 0;" > conftest.$ac_ext - (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$ac_compile" 2>conftest.err) - cat conftest.err >&AS_MESSAGE_LOG_FD - (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) - (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) - cat conftest.err >&AS_MESSAGE_LOG_FD - (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) - cat conftest.out >&AS_MESSAGE_LOG_FD - if $GREP 'External.*some_variable' conftest.out > /dev/null; then - lt_cv_nm_interface="MS dumpbin" - fi - rm -f conftest*]) -])# LT_PATH_NM - -# Old names: -AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) -AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AM_PROG_NM], []) -dnl AC_DEFUN([AC_PROG_NM], []) - -# _LT_CHECK_SHAREDLIB_FROM_LINKLIB -# -------------------------------- -# how to determine the name of the shared library -# associated with a specific link library. -# -- PORTME fill in with the dynamic library characteristics -m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], -[m4_require([_LT_DECL_EGREP]) -m4_require([_LT_DECL_OBJDUMP]) -m4_require([_LT_DECL_DLLTOOL]) -AC_CACHE_CHECK([how to associate runtime and link libraries], -lt_cv_sharedlib_from_linklib_cmd, -[lt_cv_sharedlib_from_linklib_cmd='unknown' - -case $host_os in -cygwin* | mingw* | pw32* | cegcc*) - # two different shell functions defined in ltmain.sh; - # decide which one to use based on capabilities of $DLLTOOL - case `$DLLTOOL --help 2>&1` in - *--identify-strict*) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib - ;; - *) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback - ;; - esac - ;; -*) - # fallback: assume linklib IS sharedlib - lt_cv_sharedlib_from_linklib_cmd=$ECHO - ;; -esac -]) -sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd -test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO - -_LT_DECL([], [sharedlib_from_linklib_cmd], [1], - [Command to associate shared and link libraries]) -])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB - - -# _LT_PATH_MANIFEST_TOOL -# ---------------------- -# locate the manifest tool -m4_defun([_LT_PATH_MANIFEST_TOOL], -[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) -test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt -AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], - [lt_cv_path_mainfest_tool=no - echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD - $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out - cat conftest.err >&AS_MESSAGE_LOG_FD - if $GREP 'Manifest Tool' conftest.out > /dev/null; then - lt_cv_path_mainfest_tool=yes - fi - rm -f conftest*]) -if test yes != "$lt_cv_path_mainfest_tool"; then - MANIFEST_TOOL=: -fi -_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl -])# _LT_PATH_MANIFEST_TOOL - - -# _LT_DLL_DEF_P([FILE]) -# --------------------- -# True iff FILE is a Windows DLL '.def' file. -# Keep in sync with func_dll_def_p in the libtool script -AC_DEFUN([_LT_DLL_DEF_P], -[dnl - test DEF = "`$SED -n dnl - -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace - -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments - -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl - -e q dnl Only consider the first "real" line - $1`" dnl -])# _LT_DLL_DEF_P - - -# LT_LIB_M -# -------- -# check for math library -AC_DEFUN([LT_LIB_M], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -LIBM= -case $host in -*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) - # These system don't have libm, or don't need it - ;; -*-ncr-sysv4.3*) - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") - ;; -*) - AC_CHECK_LIB(m, cos, LIBM=-lm) - ;; -esac -AC_SUBST([LIBM]) -])# LT_LIB_M - -# Old name: -AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_CHECK_LIBM], []) - - -# _LT_COMPILER_NO_RTTI([TAGNAME]) -# ------------------------------- -m4_defun([_LT_COMPILER_NO_RTTI], -[m4_require([_LT_TAG_COMPILER])dnl - -_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= - -if test yes = "$GCC"; then - case $cc_basename in - nvcc*) - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; - *) - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; - esac - - _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], - lt_cv_prog_compiler_rtti_exceptions, - [-fno-rtti -fno-exceptions], [], - [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) -fi -_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], - [Compiler flag to turn off builtin functions]) -])# _LT_COMPILER_NO_RTTI - - -# _LT_CMD_GLOBAL_SYMBOLS -# ---------------------- -m4_defun([_LT_CMD_GLOBAL_SYMBOLS], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([LT_PATH_NM])dnl -AC_REQUIRE([LT_PATH_LD])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_TAG_COMPILER])dnl - -# Check for command to grab the raw symbol name followed by C symbol from nm. -AC_MSG_CHECKING([command to parse $NM output from $compiler object]) -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], -[ -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[[BCDEGRST]]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[[BCDT]]' - ;; -cygwin* | mingw* | pw32* | cegcc*) - symcode='[[ABCDGISTW]]' - ;; -hpux*) - if test ia64 = "$host_cpu"; then - symcode='[[ABCDEGRST]]' - fi - ;; -irix* | nonstopux*) - symcode='[[BCDEGRST]]' - ;; -osf*) - symcode='[[BCDEGQRST]]' - ;; -solaris*) - symcode='[[BDRT]]' - ;; -sco3.2v5*) - symcode='[[DT]]' - ;; -sysv4.2uw2*) - symcode='[[DT]]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[[ABDT]]' - ;; -sysv4) - symcode='[[DFNSTU]]' - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[[ABCDGIRSTW]]' ;; -esac - -if test "$lt_cv_nm_interface" = "MS dumpbin"; then - # Gets list of data symbols to import. - lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" - # Adjust the below global symbol transforms to fixup imported variables. - lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" - lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" - lt_c_name_lib_hook="\ - -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ - -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" -else - # Disable hooks by default. - lt_cv_sys_global_symbol_to_import= - lt_cdecl_hook= - lt_c_name_hook= - lt_c_name_lib_hook= -fi - -# Transform an extracted symbol line into a proper C declaration. -# Some systems (esp. on ia64) link data and code symbols differently, -# so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="sed -n"\ -$lt_cdecl_hook\ -" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ -" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ -$lt_c_name_hook\ -" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ -" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" - -# Transform an extracted symbol line into symbol name with lib prefix and -# symbol address. -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ -$lt_c_name_lib_hook\ -" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ -" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ -" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# Try without a prefix underscore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - if test "$lt_cv_nm_interface" = "MS dumpbin"; then - # Fake it for dumpbin and say T for any non-static function, - # D for any global variable and I for any imported variable. - # Also find C++ and __fastcall symbols from MSVC++, - # which start with @ or ?. - lt_cv_sys_global_symbol_pipe="$AWK ['"\ -" {last_section=section; section=\$ 3};"\ -" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ -" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ -" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ -" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ -" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ -" \$ 0!~/External *\|/{next};"\ -" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ -" {if(hide[section]) next};"\ -" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ -" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ -" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ -" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ -" ' prfx=^$ac_symprfx]" - else - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - fi - lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext <<_LT_EOF -#ifdef __cplusplus -extern "C" { -#endif -char nm_test_var; -void nm_test_func(void); -void nm_test_func(void){} -#ifdef __cplusplus -} -#endif -int main(){nm_test_var='a';nm_test_func();return(0);} -_LT_EOF - - if AC_TRY_EVAL(ac_compile); then - # Now try to grab the symbols. - nlist=conftest.nm - if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if $GREP ' nm_test_var$' "$nlist" >/dev/null; then - if $GREP ' nm_test_func$' "$nlist" >/dev/null; then - cat <<_LT_EOF > conftest.$ac_ext -/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ -#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE -/* DATA imports from DLLs on WIN32 can't be const, because runtime - relocations are performed -- see ld's documentation on pseudo-relocs. */ -# define LT@&t@_DLSYM_CONST -#elif defined __osf__ -/* This system does not cope well with relocations in const data. */ -# define LT@&t@_DLSYM_CONST -#else -# define LT@&t@_DLSYM_CONST const -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -_LT_EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' - - cat <<_LT_EOF >> conftest.$ac_ext - -/* The mapping between symbol names and symbols. */ -LT@&t@_DLSYM_CONST struct { - const char *name; - void *address; -} -lt__PROGRAM__LTX_preloaded_symbols[[]] = -{ - { "@PROGRAM@", (void *) 0 }, -_LT_EOF - $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext - cat <<\_LT_EOF >> conftest.$ac_ext - {0, (void *) 0} -}; - -/* This works around a problem in FreeBSD linker */ -#ifdef FREEBSD_WORKAROUND -static const void *lt_preloaded_setup() { - return lt__PROGRAM__LTX_preloaded_symbols; -} -#endif - -#ifdef __cplusplus -} -#endif -_LT_EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_globsym_save_LIBS=$LIBS - lt_globsym_save_CFLAGS=$CFLAGS - LIBS=conftstm.$ac_objext - CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" - if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then - pipe_works=yes - fi - LIBS=$lt_globsym_save_LIBS - CFLAGS=$lt_globsym_save_CFLAGS - else - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD - fi - else - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD - cat conftest.$ac_ext >&5 - fi - rm -rf conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test yes = "$pipe_works"; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done -]) -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - AC_MSG_RESULT(failed) -else - AC_MSG_RESULT(ok) -fi - -# Response file support. -if test "$lt_cv_nm_interface" = "MS dumpbin"; then - nm_file_list_spec='@' -elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then - nm_file_list_spec='@' -fi - -_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], - [Take the output of nm and produce a listing of raw symbols and C names]) -_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], - [Transform the output of nm in a proper C declaration]) -_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], - [Transform the output of nm into a list of symbols to manually relocate]) -_LT_DECL([global_symbol_to_c_name_address], - [lt_cv_sys_global_symbol_to_c_name_address], [1], - [Transform the output of nm in a C name address pair]) -_LT_DECL([global_symbol_to_c_name_address_lib_prefix], - [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], - [Transform the output of nm in a C name address pair when lib prefix is needed]) -_LT_DECL([nm_interface], [lt_cv_nm_interface], [1], - [The name lister interface]) -_LT_DECL([], [nm_file_list_spec], [1], - [Specify filename containing input files for $NM]) -]) # _LT_CMD_GLOBAL_SYMBOLS - - -# _LT_COMPILER_PIC([TAGNAME]) -# --------------------------- -m4_defun([_LT_COMPILER_PIC], -[m4_require([_LT_TAG_COMPILER])dnl -_LT_TAGVAR(lt_prog_compiler_wl, $1)= -_LT_TAGVAR(lt_prog_compiler_pic, $1)= -_LT_TAGVAR(lt_prog_compiler_static, $1)= - -m4_if([$1], [CXX], [ - # C++ specific cases for pic, static, wl, etc. - if test yes = "$GXX"; then - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test ia64 = "$host_cpu"; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - m68k) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the '-m68020' flag to GCC prevents building anything better, - # like '-m68040'. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - esac - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - case $host_os in - os2*) - _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' - ;; - esac - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - haiku*) - # PIC is the default for Haiku. - # The "-static" flag exists, but is broken. - _LT_TAGVAR(lt_prog_compiler_static, $1)= - ;; - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag - # sets the default TLS model and affects inlining. - case $host_cpu in - hppa*64*) - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - *qnx* | *nto*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - else - case $host_os in - aix[[4-9]]*) - # All AIX code is PIC. - if test ia64 = "$host_cpu"; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" - ;; - esac - ;; - mingw* | cygwin* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - ;; - dgux*) - case $cc_basename in - ec++*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' - if test ia64 != "$host_cpu"; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - fi - ;; - aCC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - case $cc_basename in - KCC*) - # KAI C++ Compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - ecpc* ) - # old Intel C++ for x86_64, which still supported -KPIC. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - icpc* ) - # Intel C++, used to be incompatible with GCC. - # ICC 10 doesn't accept -KPIC any more. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - pgCC* | pgcpp*) - # Portland Group C++ compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) - # IBM XL 8.0, 9.0 on PPC and BlueGene - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd* | netbsdelf*-gnu) - ;; - *qnx* | *nto*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - cxx*) - # Digital/Compaq C++ - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC* | sunCC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - lcc*) - # Lucid - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - *) - ;; - esac - ;; - vxworks*) - ;; - *) - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -], -[ - if test yes = "$GCC"; then - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test ia64 = "$host_cpu"; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - m68k) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the '-m68020' flag to GCC prevents building anything better, - # like '-m68040'. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - esac - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - case $host_os in - os2*) - _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' - ;; - esac - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - - haiku*) - # PIC is the default for Haiku. - # The "-static" flag exists, but is broken. - _LT_TAGVAR(lt_prog_compiler_static, $1)= - ;; - - hpux*) - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag - # sets the default TLS model and affects inlining. - case $host_cpu in - hppa*64*) - # +Z the default - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - enable_shared=no - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - - case $cc_basename in - nvcc*) # Cuda Compiler Driver 2.2 - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' - if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" - fi - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - if test ia64 = "$host_cpu"; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - case $cc_basename in - nagfor*) - # NAG Fortran compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - case $host_os in - os2*) - _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' - ;; - esac - ;; - - hpux9* | hpux10* | hpux11*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC (with -KPIC) is the default. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - case $cc_basename in - # old Intel for x86_64, which still supported -KPIC. - ecc*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - # icc used to be incompatible with GCC. - # ICC 10 doesn't accept -KPIC any more. - icc* | ifort*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - # Lahey Fortran 8.1. - lf95*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' - _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' - ;; - nagfor*) - # NAG Fortran compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - tcc*) - # Fabrice Bellard et al's Tiny C Compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - ccc*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All Alpha code is PIC. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - xl* | bgxl* | bgf* | mpixl*) - # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='' - ;; - *Sun\ F* | *Sun*Fortran*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - *Sun\ C*) - # Sun C 5.9 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - *Intel*\ [[CF]]*Compiler*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - *Portland\ Group*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - esac - ;; - esac - ;; - - newsos6) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - - osf3* | osf4* | osf5*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All OSF/1 code is PIC. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - rdos*) - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - solaris*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - case $cc_basename in - f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; - *) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; - esac - ;; - - sunos4*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - unicos*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - - uts4*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - *) - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -]) -case $host_os in - # For platforms that do not support PIC, -DPIC is meaningless: - *djgpp*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" - ;; -esac - -AC_CACHE_CHECK([for $compiler option to produce PIC], - [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], - [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) -_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then - _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], - [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], - [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], - [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in - "" | " "*) ;; - *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; - esac], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) -fi -_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], - [Additional compiler flags for building library objects]) - -_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], - [How to pass a linker flag through the compiler]) -# -# Check to make sure the static flag actually works. -# -wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" -_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], - _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), - $lt_tmp_static_flag, - [], - [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) -_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], - [Compiler flag to prevent dynamic linking]) -])# _LT_COMPILER_PIC - - -# _LT_LINKER_SHLIBS([TAGNAME]) -# ---------------------------- -# See if the linker supports building shared libraries. -m4_defun([_LT_LINKER_SHLIBS], -[AC_REQUIRE([LT_PATH_LD])dnl -AC_REQUIRE([LT_PATH_NM])dnl -m4_require([_LT_PATH_MANIFEST_TOOL])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl -m4_require([_LT_TAG_COMPILER])dnl -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) -m4_if([$1], [CXX], [ - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] - case $host_os in - aix[[4-9]]*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to GNU nm, but means don't demangle to AIX nm. - # Without the "-l" option, or with the "-B" option, AIX nm treats - # weak defined symbols like other global defined symbols, whereas - # GNU nm marks them as "W". - # While the 'weak' keyword is ignored in the Export File, we need - # it in the Import File for the 'aix-soname' feature, so we have - # to replace the "-B" option with "-P" for AIX nm. - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' - else - _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' - fi - ;; - pw32*) - _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds - ;; - cygwin* | mingw* | cegcc*) - case $cc_basename in - cl*) - _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' - ;; - *) - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' - _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] - ;; - esac - ;; - linux* | k*bsd*-gnu | gnu*) - _LT_TAGVAR(link_all_deplibs, $1)=no - ;; - *) - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac -], [ - runpath_var= - _LT_TAGVAR(allow_undefined_flag, $1)= - _LT_TAGVAR(always_export_symbols, $1)=no - _LT_TAGVAR(archive_cmds, $1)= - _LT_TAGVAR(archive_expsym_cmds, $1)= - _LT_TAGVAR(compiler_needs_object, $1)=no - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - _LT_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - _LT_TAGVAR(hardcode_automatic, $1)=no - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_TAGVAR(hardcode_libdir_separator, $1)= - _LT_TAGVAR(hardcode_minus_L, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_TAGVAR(inherit_rpath, $1)=no - _LT_TAGVAR(link_all_deplibs, $1)=unknown - _LT_TAGVAR(module_cmds, $1)= - _LT_TAGVAR(module_expsym_cmds, $1)= - _LT_TAGVAR(old_archive_from_new_cmds, $1)= - _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= - _LT_TAGVAR(thread_safe_flag_spec, $1)= - _LT_TAGVAR(whole_archive_flag_spec, $1)= - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - _LT_TAGVAR(include_expsyms, $1)= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ' (' and ')$', so one must not match beginning or - # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', - # as well as any symbol that contains 'd'. - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - # Exclude shared library initialization/finalization symbols. -dnl Note also adjust exclude_expsyms for C++ above. - extract_expsyms_cmds= - - case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test yes != "$GCC"; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd* | bitrig*) - with_gnu_ld=no - ;; - linux* | k*bsd*-gnu | gnu*) - _LT_TAGVAR(link_all_deplibs, $1)=no - ;; - esac - - _LT_TAGVAR(ld_shlibs, $1)=yes - - # On some targets, GNU ld is compatible enough with the native linker - # that we're better off using the native interface for both. - lt_use_gnu_ld_interface=no - if test yes = "$with_gnu_ld"; then - case $host_os in - aix*) - # The AIX port of GNU ld has always aspired to compatibility - # with the native linker. However, as the warning in the GNU ld - # block says, versions before 2.19.5* couldn't really create working - # shared libraries, regardless of the interface used. - case `$LD -v 2>&1` in - *\ \(GNU\ Binutils\)\ 2.19.5*) ;; - *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; - *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; - *) - lt_use_gnu_ld_interface=yes - ;; - esac - ;; - *) - lt_use_gnu_ld_interface=yes - ;; - esac - fi - - if test yes = "$lt_use_gnu_ld_interface"; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='$wl' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then - _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' - else - _LT_TAGVAR(whole_archive_flag_spec, $1)= - fi - supports_anon_versioning=no - case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in - *GNU\ gold*) supports_anon_versioning=yes ;; - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix[[3-9]]*) - # On AIX/PPC, the GNU linker is very broken - if test ia64 != "$host_cpu"; then - _LT_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: the GNU linker, at least up to release 2.19, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to install binutils -*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. -*** You will then need to restart the configuration process. - -_LT_EOF - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='' - ;; - m68k) - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - ;; - - beos*) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=no - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' - _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] - - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file, use it as - # is; otherwise, prepend EXPORTS... - _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - haiku*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - os2*) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - shrext_cmds=.dll - _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - prefix_cmds="$SED"~ - if test EXPORTS = "`$SED 1q $export_symbols`"; then - prefix_cmds="$prefix_cmds -e 1d"; - fi~ - prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ - cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - ;; - - interix[[3-9]]*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) - tmp_diet=no - if test linux-dietlibc = "$host_os"; then - case $cc_basename in - diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) - esac - fi - if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ - && test no = "$tmp_diet" - then - tmp_addflag=' $pic_flag' - tmp_sharedflag='-shared' - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95* | pgfortran*) - # Portland Group f77 and f90 compilers - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - lf95*) # Lahey Fortran 8.1 - _LT_TAGVAR(whole_archive_flag_spec, $1)= - tmp_sharedflag='--shared' ;; - nagfor*) # NAGFOR 5.3 - tmp_sharedflag='-Wl,-shared' ;; - xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) - tmp_sharedflag='-qmkshrobj' - tmp_addflag= ;; - nvcc*) # Cuda Compiler Driver 2.2 - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - _LT_TAGVAR(compiler_needs_object, $1)=yes - ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - _LT_TAGVAR(compiler_needs_object, $1)=yes - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - esac - _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - - if test yes = "$supports_anon_versioning"; then - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' - fi - - case $cc_basename in - tcc*) - _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' - ;; - xlf* | bgf* | bgxlf* | mpixlf*) - # IBM XL Fortran 10.1 on PPC cannot create shared libs itself - _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' - if test yes = "$supports_anon_versioning"; then - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' - fi - ;; - esac - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then - _LT_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) - _LT_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - sunos4*) - _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - - if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then - runpath_var= - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=yes - _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - _LT_TAGVAR(hardcode_direct, $1)=unsupported - fi - ;; - - aix[[4-9]]*) - if test ia64 = "$host_cpu"; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag= - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to GNU nm, but means don't demangle to AIX nm. - # Without the "-l" option, or with the "-B" option, AIX nm treats - # weak defined symbols like other global defined symbols, whereas - # GNU nm marks them as "W". - # While the 'weak' keyword is ignored in the Export File, we need - # it in the Import File for the 'aix-soname' feature, so we have - # to replace the "-B" option with "-P" for AIX nm. - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' - else - _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # have runtime linking enabled, and use it for executables. - # For shared libraries, we enable/disable runtime linking - # depending on the kind of the shared library created - - # when "with_aix_soname,aix_use_runtimelinking" is: - # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables - # "aix,yes" lib.so shared, rtl:yes, for executables - # lib.a static archive - # "both,no" lib.so.V(shr.o) shared, rtl:yes - # lib.a(lib.so.V) shared, rtl:no, for executables - # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables - # lib.a(lib.so.V) shared, rtl:no - # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables - # lib.a static archive - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) - for ld_flag in $LDFLAGS; do - if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then - aix_use_runtimelinking=yes - break - fi - done - if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then - # With aix-soname=svr4, we create the lib.so.V shared archives only, - # so we don't have lib.a shared libs to link our executables. - # We have to force runtime linking in this case. - aix_use_runtimelinking=yes - LDFLAGS="$LDFLAGS -Wl,-brtl" - fi - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - _LT_TAGVAR(archive_cmds, $1)='' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='$wl-f,' - case $with_aix_soname,$aix_use_runtimelinking in - aix,*) ;; # traditional, no import file - svr4,* | *,yes) # use import file - # The Import File defines what to hardcode. - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=no - ;; - esac - - if test yes = "$GCC"; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`$CC -print-prog-name=collect2` - if test -f "$collect2name" && - strings "$collect2name" | $GREP resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)= - fi - ;; - esac - shared_flag='-shared' - if test yes = "$aix_use_runtimelinking"; then - shared_flag="$shared_flag "'$wl-G' - fi - # Need to ensure runtime linking is disabled for the traditional - # shared library, or the linker may eventually find shared libraries - # /with/ Import File - we do not want to mix them. - shared_flag_aix='-shared' - shared_flag_svr4='-shared $wl-G' - else - # not using gcc - if test ia64 = "$host_cpu"; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test yes = "$aix_use_runtimelinking"; then - shared_flag='$wl-G' - else - shared_flag='$wl-bM:SRE' - fi - shared_flag_aix='$wl-bM:SRE' - shared_flag_svr4='$wl-G' - fi - fi - - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - _LT_TAGVAR(always_export_symbols, $1)=yes - if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - _LT_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an - # empty executable. - _LT_SYS_MODULE_PATH_AIX([$1]) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag - else - if test ia64 = "$host_cpu"; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' - _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an - # empty executable. - _LT_SYS_MODULE_PATH_AIX([$1]) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' - _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' - if test yes = "$with_gnu_ld"; then - # We only use this code for GNU lds that support --whole-archive. - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' - else - # Exported symbols can be pulled into shared objects from archives - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' - # -brtl affects multiple linker settings, -berok does not and is overridden later - compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' - if test svr4 != "$with_aix_soname"; then - # This is similar to how AIX traditionally builds its shared libraries. - _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' - fi - if test aix != "$with_aix_soname"; then - _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' - else - # used by -dlpreopen to get the symbols - _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' - fi - _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' - fi - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='' - ;; - m68k) - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - ;; - - bsdi[[45]]*) - _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - case $cc_basename in - cl*) - # Native MSVC - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='@' - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=.dll - # FIXME: Setting linknames here is a bad hack. - _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' - _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then - cp "$export_symbols" "$output_objdir/$soname.def"; - echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; - else - $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; - fi~ - $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ - linknames=' - # The linker will not automatically build a static lib if we build a DLL. - # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' - # Don't use ranlib - _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' - _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ - lt_tool_outputfile="@TOOL_OUTPUT@"~ - case $lt_outputfile in - *.exe|*.EXE) ;; - *) - lt_outputfile=$lt_outputfile.exe - lt_tool_outputfile=$lt_tool_outputfile.exe - ;; - esac~ - if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then - $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; - $RM "$lt_outputfile.manifest"; - fi' - ;; - *) - # Assume MSVC wrapper - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=.dll - # FIXME: Setting linknames here is a bad hack. - _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' - # FIXME: Should let the user specify the lib program. - _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - ;; - esac - ;; - - darwin* | rhapsody*) - _LT_DARWIN_LINKER_FEATURES($1) - ;; - - dgux*) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2.*) - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - hpux9*) - if test yes = "$GCC"; then - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' - else - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(hardcode_direct, $1)=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - ;; - - hpux10*) - if test yes,no = "$GCC,$with_gnu_ld"; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test no = "$with_gnu_ld"; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - fi - ;; - - hpux11*) - if test yes,no = "$GCC,$with_gnu_ld"; then - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - m4_if($1, [], [ - # Older versions of the 11.00 compiler do not understand -b yet - # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) - _LT_LINKER_OPTION([if $CC understands -b], - _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], - [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], - [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], - [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) - ;; - esac - fi - if test no = "$with_gnu_ld"; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test yes = "$GCC"; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - # Try to use the -exported_symbol ld option, if it does not - # work, assume that -exports_file does not work either and - # implicitly export all symbols. - # This should be the same for all languages, so no per-tag cache variable. - AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], - [lt_cv_irix_exported_symbol], - [save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" - AC_LINK_IFELSE( - [AC_LANG_SOURCE( - [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], - [C++], [[int foo (void) { return 0; }]], - [Fortran 77], [[ - subroutine foo - end]], - [Fortran], [[ - subroutine foo - end]])])], - [lt_cv_irix_exported_symbol=yes], - [lt_cv_irix_exported_symbol=no]) - LDFLAGS=$save_LDFLAGS]) - if test yes = "$lt_cv_irix_exported_symbol"; then - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' - fi - _LT_TAGVAR(link_all_deplibs, $1)=no - else - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(inherit_rpath, $1)=yes - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - linux*) - case $cc_basename in - tcc*) - # Fabrice Bellard et al's Tiny C Compiler - _LT_TAGVAR(ld_shlibs, $1)=yes - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - - netbsd* | netbsdelf*-gnu) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - newsos6) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *nto* | *qnx*) - ;; - - openbsd* | bitrig*) - if test -f /usr/libexec/ld.so; then - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - else - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' - fi - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - os2*) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - shrext_cmds=.dll - _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - prefix_cmds="$SED"~ - if test EXPORTS = "`$SED 1q $export_symbols`"; then - prefix_cmds="$prefix_cmds -e 1d"; - fi~ - prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ - cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - ;; - - osf3*) - if test yes = "$GCC"; then - _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - else - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test yes = "$GCC"; then - _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - else - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' - - # Both c and cxx compiler support -rpath directly - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - solaris*) - _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' - if test yes = "$GCC"; then - wlarc='$wl' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - else - case `$CC -V 2>&1` in - *"Compilers 5.0"*) - wlarc='' - _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' - ;; - *) - wlarc='$wl' - _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - ;; - esac - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands '-z linker_flag'. GCC discards it without '$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test yes = "$GCC"; then - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' - else - _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - fi - ;; - esac - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - sunos4*) - if test sequent = "$host_vendor"; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4) - case $host_vendor in - sni) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' - _LT_TAGVAR(hardcode_direct, $1)=no - ;; - motorola) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4.3*) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - _LT_TAGVAR(ld_shlibs, $1)=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - if test yes = "$GCC"; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We CANNOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' - _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' - runpath_var='LD_RUN_PATH' - - if test yes = "$GCC"; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - - if test sni = "$host_vendor"; then - case $host in - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' - ;; - esac - fi - fi -]) -AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) -test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no - -_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld - -_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl -_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl -_LT_DECL([], [extract_expsyms_cmds], [2], - [The commands to extract the exported symbol list from a shared archive]) - -# -# Do we need to explicitly link libc? -# -case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in -x|xyes) - # Assume -lc should be added - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - - if test yes,yes = "$GCC,$enable_shared"; then - case $_LT_TAGVAR(archive_cmds, $1) in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - AC_CACHE_CHECK([whether -lc should be explicitly linked in], - [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), - [$RM conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) - pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) - _LT_TAGVAR(allow_undefined_flag, $1)= - if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) - then - lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no - else - lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes - fi - _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $RM conftest* - ]) - _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) - ;; - esac - fi - ;; -esac - -_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], - [Whether or not to add -lc for building shared libraries]) -_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], - [enable_shared_with_static_runtimes], [0], - [Whether or not to disallow shared libs when runtime libs are static]) -_LT_TAGDECL([], [export_dynamic_flag_spec], [1], - [Compiler flag to allow reflexive dlopens]) -_LT_TAGDECL([], [whole_archive_flag_spec], [1], - [Compiler flag to generate shared objects directly from archives]) -_LT_TAGDECL([], [compiler_needs_object], [1], - [Whether the compiler copes with passing no objects directly]) -_LT_TAGDECL([], [old_archive_from_new_cmds], [2], - [Create an old-style archive from a shared archive]) -_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], - [Create a temporary old-style archive to link instead of a shared archive]) -_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) -_LT_TAGDECL([], [archive_expsym_cmds], [2]) -_LT_TAGDECL([], [module_cmds], [2], - [Commands used to build a loadable module if different from building - a shared archive.]) -_LT_TAGDECL([], [module_expsym_cmds], [2]) -_LT_TAGDECL([], [with_gnu_ld], [1], - [Whether we are building with GNU ld or not]) -_LT_TAGDECL([], [allow_undefined_flag], [1], - [Flag that allows shared libraries with undefined symbols to be built]) -_LT_TAGDECL([], [no_undefined_flag], [1], - [Flag that enforces no undefined symbols]) -_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], - [Flag to hardcode $libdir into a binary during linking. - This must work even if $libdir does not exist]) -_LT_TAGDECL([], [hardcode_libdir_separator], [1], - [Whether we need a single "-rpath" flag with a separated argument]) -_LT_TAGDECL([], [hardcode_direct], [0], - [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes - DIR into the resulting binary]) -_LT_TAGDECL([], [hardcode_direct_absolute], [0], - [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes - DIR into the resulting binary and the resulting library dependency is - "absolute", i.e impossible to change by setting $shlibpath_var if the - library is relocated]) -_LT_TAGDECL([], [hardcode_minus_L], [0], - [Set to "yes" if using the -LDIR flag during linking hardcodes DIR - into the resulting binary]) -_LT_TAGDECL([], [hardcode_shlibpath_var], [0], - [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR - into the resulting binary]) -_LT_TAGDECL([], [hardcode_automatic], [0], - [Set to "yes" if building a shared library automatically hardcodes DIR - into the library and all subsequent libraries and executables linked - against it]) -_LT_TAGDECL([], [inherit_rpath], [0], - [Set to yes if linker adds runtime paths of dependent libraries - to runtime path list]) -_LT_TAGDECL([], [link_all_deplibs], [0], - [Whether libtool must link a program against all its dependency libraries]) -_LT_TAGDECL([], [always_export_symbols], [0], - [Set to "yes" if exported symbols are required]) -_LT_TAGDECL([], [export_symbols_cmds], [2], - [The commands to list exported symbols]) -_LT_TAGDECL([], [exclude_expsyms], [1], - [Symbols that should not be listed in the preloaded symbols]) -_LT_TAGDECL([], [include_expsyms], [1], - [Symbols that must always be exported]) -_LT_TAGDECL([], [prelink_cmds], [2], - [Commands necessary for linking programs (against libraries) with templates]) -_LT_TAGDECL([], [postlink_cmds], [2], - [Commands necessary for finishing linking programs]) -_LT_TAGDECL([], [file_list_spec], [1], - [Specify filename containing input files]) -dnl FIXME: Not yet implemented -dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], -dnl [Compiler flag to generate thread safe objects]) -])# _LT_LINKER_SHLIBS - - -# _LT_LANG_C_CONFIG([TAG]) -# ------------------------ -# Ensure that the configuration variables for a C compiler are suitably -# defined. These variables are subsequently used by _LT_CONFIG to write -# the compiler configuration to 'libtool'. -m4_defun([_LT_LANG_C_CONFIG], -[m4_require([_LT_DECL_EGREP])dnl -lt_save_CC=$CC -AC_LANG_PUSH(C) - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - -_LT_TAG_COMPILER -# Save the default compiler, since it gets overwritten when the other -# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. -compiler_DEFAULT=$CC - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - _LT_COMPILER_NO_RTTI($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - LT_SYS_DLOPEN_SELF - _LT_CMD_STRIPLIB - - # Report what library types will actually be built - AC_MSG_CHECKING([if libtool supports shared libraries]) - AC_MSG_RESULT([$can_build_shared]) - - AC_MSG_CHECKING([whether to build shared libraries]) - test no = "$can_build_shared" && enable_shared=no - - # On AIX, shared libraries and static libraries use the same namespace, and - # are all built from PIC. - case $host_os in - aix3*) - test yes = "$enable_shared" && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - - aix[[4-9]]*) - if test ia64 != "$host_cpu"; then - case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in - yes,aix,yes) ;; # shared object as lib.so file only - yes,svr4,*) ;; # shared object as lib.so archive member only - yes,*) enable_static=no ;; # shared object in lib.a archive as well - esac - fi - ;; - esac - AC_MSG_RESULT([$enable_shared]) - - AC_MSG_CHECKING([whether to build static libraries]) - # Make sure either enable_shared or enable_static is yes. - test yes = "$enable_shared" || enable_static=yes - AC_MSG_RESULT([$enable_static]) - - _LT_CONFIG($1) -fi -AC_LANG_POP -CC=$lt_save_CC -])# _LT_LANG_C_CONFIG - - -# _LT_LANG_CXX_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for a C++ compiler are suitably -# defined. These variables are subsequently used by _LT_CONFIG to write -# the compiler configuration to 'libtool'. -m4_defun([_LT_LANG_CXX_CONFIG], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_PATH_MANIFEST_TOOL])dnl -if test -n "$CXX" && ( test no != "$CXX" && - ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || - (test g++ != "$CXX"))); then - AC_PROG_CXXCPP -else - _lt_caught_CXX_error=yes -fi - -AC_LANG_PUSH(C++) -_LT_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_TAGVAR(allow_undefined_flag, $1)= -_LT_TAGVAR(always_export_symbols, $1)=no -_LT_TAGVAR(archive_expsym_cmds, $1)= -_LT_TAGVAR(compiler_needs_object, $1)=no -_LT_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_TAGVAR(hardcode_direct, $1)=no -_LT_TAGVAR(hardcode_direct_absolute, $1)=no -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_TAGVAR(hardcode_libdir_separator, $1)= -_LT_TAGVAR(hardcode_minus_L, $1)=no -_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported -_LT_TAGVAR(hardcode_automatic, $1)=no -_LT_TAGVAR(inherit_rpath, $1)=no -_LT_TAGVAR(module_cmds, $1)= -_LT_TAGVAR(module_expsym_cmds, $1)= -_LT_TAGVAR(link_all_deplibs, $1)=unknown -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds -_LT_TAGVAR(no_undefined_flag, $1)= -_LT_TAGVAR(whole_archive_flag_spec, $1)= -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for C++ test sources. -ac_ext=cpp - -# Object file extension for compiled C++ test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# No sense in running all these tests if we already determined that -# the CXX compiler isn't working. Some variables (like enable_shared) -# are currently assumed to apply to all compilers on this platform, -# and will be corrupted by setting them based on a non-working compiler. -if test yes != "$_lt_caught_CXX_error"; then - # Code to be used in simple compile tests - lt_simple_compile_test_code="int some_variable = 0;" - - # Code to be used in simple link tests - lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' - - # ltmain only uses $CC for tagged configurations so make sure $CC is set. - _LT_TAG_COMPILER - - # save warnings/boilerplate of simple test code - _LT_COMPILER_BOILERPLATE - _LT_LINKER_BOILERPLATE - - # Allow CC to be a program name with arguments. - lt_save_CC=$CC - lt_save_CFLAGS=$CFLAGS - lt_save_LD=$LD - lt_save_GCC=$GCC - GCC=$GXX - lt_save_with_gnu_ld=$with_gnu_ld - lt_save_path_LD=$lt_cv_path_LD - if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx - else - $as_unset lt_cv_prog_gnu_ld - fi - if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX - else - $as_unset lt_cv_path_LD - fi - test -z "${LDCXX+set}" || LD=$LDCXX - CC=${CXX-"c++"} - CFLAGS=$CXXFLAGS - compiler=$CC - _LT_TAGVAR(compiler, $1)=$CC - _LT_CC_BASENAME([$compiler]) - - if test -n "$compiler"; then - # We don't want -fno-exception when compiling C++ code, so set the - # no_builtin_flag separately - if test yes = "$GXX"; then - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' - else - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= - fi - - if test yes = "$GXX"; then - # Set up default GNU C++ configuration - - LT_PATH_LD - - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test yes = "$with_gnu_ld"; then - _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' - - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='$wl' - - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | - $GREP 'no-whole-archive' > /dev/null; then - _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' - else - _LT_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - with_gnu_ld=no - wlarc= - - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - - else - GXX=no - with_gnu_ld=no - wlarc= - fi - - # PORTME: fill in a description of your system's C++ link characteristics - AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) - _LT_TAGVAR(ld_shlibs, $1)=yes - case $host_os in - aix3*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - aix[[4-9]]*) - if test ia64 = "$host_cpu"; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag= - else - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # have runtime linking enabled, and use it for executables. - # For shared libraries, we enable/disable runtime linking - # depending on the kind of the shared library created - - # when "with_aix_soname,aix_use_runtimelinking" is: - # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables - # "aix,yes" lib.so shared, rtl:yes, for executables - # lib.a static archive - # "both,no" lib.so.V(shr.o) shared, rtl:yes - # lib.a(lib.so.V) shared, rtl:no, for executables - # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables - # lib.a(lib.so.V) shared, rtl:no - # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables - # lib.a static archive - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then - # With aix-soname=svr4, we create the lib.so.V shared archives only, - # so we don't have lib.a shared libs to link our executables. - # We have to force runtime linking in this case. - aix_use_runtimelinking=yes - LDFLAGS="$LDFLAGS -Wl,-brtl" - fi - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - _LT_TAGVAR(archive_cmds, $1)='' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='$wl-f,' - case $with_aix_soname,$aix_use_runtimelinking in - aix,*) ;; # no import file - svr4,* | *,yes) # use import file - # The Import File defines what to hardcode. - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=no - ;; - esac - - if test yes = "$GXX"; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`$CC -print-prog-name=collect2` - if test -f "$collect2name" && - strings "$collect2name" | $GREP resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)= - fi - esac - shared_flag='-shared' - if test yes = "$aix_use_runtimelinking"; then - shared_flag=$shared_flag' $wl-G' - fi - # Need to ensure runtime linking is disabled for the traditional - # shared library, or the linker may eventually find shared libraries - # /with/ Import File - we do not want to mix them. - shared_flag_aix='-shared' - shared_flag_svr4='-shared $wl-G' - else - # not using gcc - if test ia64 = "$host_cpu"; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test yes = "$aix_use_runtimelinking"; then - shared_flag='$wl-G' - else - shared_flag='$wl-bM:SRE' - fi - shared_flag_aix='$wl-bM:SRE' - shared_flag_svr4='$wl-G' - fi - fi - - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to - # export. - _LT_TAGVAR(always_export_symbols, $1)=yes - if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - # The "-G" linker flag allows undefined symbols. - _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' - # Determine the default libpath from the value encoded in an empty - # executable. - _LT_SYS_MODULE_PATH_AIX([$1]) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" - - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag - else - if test ia64 = "$host_cpu"; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' - _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an - # empty executable. - _LT_SYS_MODULE_PATH_AIX([$1]) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' - _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' - if test yes = "$with_gnu_ld"; then - # We only use this code for GNU lds that support --whole-archive. - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' - else - # Exported symbols can be pulled into shared objects from archives - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' - # -brtl affects multiple linker settings, -berok does not and is overridden later - compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' - if test svr4 != "$with_aix_soname"; then - # This is similar to how AIX traditionally builds its shared - # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. - _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' - fi - if test aix != "$with_aix_soname"; then - _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' - else - # used by -dlpreopen to get the symbols - _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' - fi - _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' - fi - fi - ;; - - beos*) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - cygwin* | mingw* | pw32* | cegcc*) - case $GXX,$cc_basename in - ,cl* | no,cl*) - # Native MSVC - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='@' - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=.dll - # FIXME: Setting linknames here is a bad hack. - _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' - _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then - cp "$export_symbols" "$output_objdir/$soname.def"; - echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; - else - $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; - fi~ - $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ - linknames=' - # The linker will not automatically build a static lib if we build a DLL. - # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - # Don't use ranlib - _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' - _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ - lt_tool_outputfile="@TOOL_OUTPUT@"~ - case $lt_outputfile in - *.exe|*.EXE) ;; - *) - lt_outputfile=$lt_outputfile.exe - lt_tool_outputfile=$lt_tool_outputfile.exe - ;; - esac~ - func_to_tool_file "$lt_outputfile"~ - if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then - $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; - $RM "$lt_outputfile.manifest"; - fi' - ;; - *) - # g++ - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=no - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file, use it as - # is; otherwise, prepend EXPORTS... - _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - darwin* | rhapsody*) - _LT_DARWIN_LINKER_FEATURES($1) - ;; - - os2*) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - shrext_cmds=.dll - _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - prefix_cmds="$SED"~ - if test EXPORTS = "`$SED 1q $export_symbols`"; then - prefix_cmds="$prefix_cmds -e 1d"; - fi~ - prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ - cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - ;; - - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - freebsd2.*) - # C++ shared libraries reported to be fairly broken before - # switch to ELF - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - freebsd-elf*) - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - ;; - - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - _LT_TAGVAR(ld_shlibs, $1)=yes - ;; - - haiku*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - hpux9*) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - ;; - *) - if test yes = "$GXX"; then - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' - else - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - hpux10*|hpux11*) - if test no = "$with_gnu_ld"; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - ;; - *) - if test yes = "$GXX"; then - if test no = "$with_gnu_ld"; then - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - interix[[3-9]]*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test yes = "$GXX"; then - if test no = "$with_gnu_ld"; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - else - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' - fi - fi - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - esac - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(inherit_rpath, $1)=yes - ;; - - linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc* | ecpc* ) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' - ;; - pgCC* | pgcpp*) - # Portland Group C++ compiler - case `$CC -V` in - *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) - _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ - compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' - _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ - $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ - $RANLIB $oldlib' - _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 6 and above use weak symbols - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - ;; - cxx*) - # Compaq C++ - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' - - runpath_var=LD_RUN_PATH - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' - ;; - xl* | mpixl* | bgxl*) - # IBM XL 8.0 on PPC, with GNU ld - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' - _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - if test yes = "$supports_anon_versioning"; then - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' - fi - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - _LT_TAGVAR(compiler_needs_object, $1)=yes - - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='func_echo_all' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - - lynxos*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - m88k*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - - *nto* | *qnx*) - _LT_TAGVAR(ld_shlibs, $1)=yes - ;; - - openbsd* | bitrig*) - if test -f /usr/libexec/ld.so; then - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' - fi - output_verbose_link_cmd=func_echo_all - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - case $host in - osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; - *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; - esac - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - cxx*) - case $host in - osf3*) - _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - ;; - *) - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ - $RM $lib.exp' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - ;; - esac - - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - ;; - *) - if test yes,no = "$GXX,$with_gnu_ld"; then - _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' - case $host in - osf3*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - ;; - esac - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - - else - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - psos*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - solaris*) - case $cc_basename in - CC* | sunCC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_TAGVAR(archive_cmds_need_lc,$1)=yes - _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands '-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - ;; - esac - _LT_TAGVAR(link_all_deplibs, $1)=yes - - output_verbose_link_cmd='func_echo_all' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' - - # The C++ compiler must be used to create the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test yes,no = "$GXX,$with_gnu_ld"; then - _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' - if $CC --version | $GREP -v '^2\.7' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - else - # g++ 2.7 appears to require '-G' NOT '-shared' on this - # platform. - _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - fi - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We CANNOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' - _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ - '"$_LT_TAGVAR(old_archive_cmds, $1)" - _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ - '"$_LT_TAGVAR(reload_cmds, $1)" - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - vxworks*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - - AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) - test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no - - _LT_TAGVAR(GCC, $1)=$GXX - _LT_TAGVAR(LD, $1)=$LD - - ## CAVEAT EMPTOR: - ## There is no encapsulation within the following macros, do not change - ## the running order or otherwise move them around unless you know exactly - ## what you are doing... - _LT_SYS_HIDDEN_LIBDEPS($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) - fi # test -n "$compiler" - - CC=$lt_save_CC - CFLAGS=$lt_save_CFLAGS - LDCXX=$LD - LD=$lt_save_LD - GCC=$lt_save_GCC - with_gnu_ld=$lt_save_with_gnu_ld - lt_cv_path_LDCXX=$lt_cv_path_LD - lt_cv_path_LD=$lt_save_path_LD - lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld - lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld -fi # test yes != "$_lt_caught_CXX_error" - -AC_LANG_POP -])# _LT_LANG_CXX_CONFIG - - -# _LT_FUNC_STRIPNAME_CNF -# ---------------------- -# func_stripname_cnf prefix suffix name -# strip PREFIX and SUFFIX off of NAME. -# PREFIX and SUFFIX must not contain globbing or regex special -# characters, hashes, percent signs, but SUFFIX may contain a leading -# dot (in which case that matches only a dot). -# -# This function is identical to the (non-XSI) version of func_stripname, -# except this one can be used by m4 code that may be executed by configure, -# rather than the libtool script. -m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl -AC_REQUIRE([_LT_DECL_SED]) -AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) -func_stripname_cnf () -{ - case @S|@2 in - .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; - *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; - esac -} # func_stripname_cnf -])# _LT_FUNC_STRIPNAME_CNF - - -# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) -# --------------------------------- -# Figure out "hidden" library dependencies from verbose -# compiler output when linking a shared library. -# Parse the compiler output and extract the necessary -# objects, libraries and library flags. -m4_defun([_LT_SYS_HIDDEN_LIBDEPS], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl -# Dependencies to place before and after the object being linked: -_LT_TAGVAR(predep_objects, $1)= -_LT_TAGVAR(postdep_objects, $1)= -_LT_TAGVAR(predeps, $1)= -_LT_TAGVAR(postdeps, $1)= -_LT_TAGVAR(compiler_lib_search_path, $1)= - -dnl we can't use the lt_simple_compile_test_code here, -dnl because it contains code intended for an executable, -dnl not a library. It's possible we should let each -dnl tag define a new lt_????_link_test_code variable, -dnl but it's only used here... -m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF -int a; -void foo (void) { a = 0; } -_LT_EOF -], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF -class Foo -{ -public: - Foo (void) { a = 0; } -private: - int a; -}; -_LT_EOF -], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF - subroutine foo - implicit none - integer*4 a - a=0 - return - end -_LT_EOF -], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF - subroutine foo - implicit none - integer a - a=0 - return - end -_LT_EOF -], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF -public class foo { - private int a; - public void bar (void) { - a = 0; - } -}; -_LT_EOF -], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF -package foo -func foo() { -} -_LT_EOF -]) - -_lt_libdeps_save_CFLAGS=$CFLAGS -case "$CC $CFLAGS " in #( -*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; -*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; -*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; -esac - -dnl Parse the compiler output and extract the necessary -dnl objects, libraries and library flags. -if AC_TRY_EVAL(ac_compile); then - # Parse the compiler output and extract the necessary - # objects, libraries and library flags. - - # Sentinel used to keep track of whether or not we are before - # the conftest object file. - pre_test_object_deps_done=no - - for p in `eval "$output_verbose_link_cmd"`; do - case $prev$p in - - -L* | -R* | -l*) - # Some compilers place space between "-{L,R}" and the path. - # Remove the space. - if test x-L = "$p" || - test x-R = "$p"; then - prev=$p - continue - fi - - # Expand the sysroot to ease extracting the directories later. - if test -z "$prev"; then - case $p in - -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; - -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; - -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; - esac - fi - case $p in - =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; - esac - if test no = "$pre_test_object_deps_done"; then - case $prev in - -L | -R) - # Internal compiler library paths should come after those - # provided the user. The postdeps already come after the - # user supplied libs so there is no need to process them. - if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then - _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p - else - _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" - fi - ;; - # The "-l" case would never come before the object being - # linked, so don't bother handling this case. - esac - else - if test -z "$_LT_TAGVAR(postdeps, $1)"; then - _LT_TAGVAR(postdeps, $1)=$prev$p - else - _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" - fi - fi - prev= - ;; - - *.lto.$objext) ;; # Ignore GCC LTO objects - *.$objext) - # This assumes that the test object file only shows up - # once in the compiler output. - if test "$p" = "conftest.$objext"; then - pre_test_object_deps_done=yes - continue - fi - - if test no = "$pre_test_object_deps_done"; then - if test -z "$_LT_TAGVAR(predep_objects, $1)"; then - _LT_TAGVAR(predep_objects, $1)=$p - else - _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" - fi - else - if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then - _LT_TAGVAR(postdep_objects, $1)=$p - else - _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" - fi - fi - ;; - - *) ;; # Ignore the rest. - - esac - done - - # Clean up. - rm -f a.out a.exe -else - echo "libtool.m4: error: problem compiling $1 test program" -fi - -$RM -f confest.$objext -CFLAGS=$_lt_libdeps_save_CFLAGS - -# PORTME: override above test on systems where it is broken -m4_if([$1], [CXX], -[case $host_os in -interix[[3-9]]*) - # Interix 3.5 installs completely hosed .la files for C++, so rather than - # hack all around it, let's just trust "g++" to DTRT. - _LT_TAGVAR(predep_objects,$1)= - _LT_TAGVAR(postdep_objects,$1)= - _LT_TAGVAR(postdeps,$1)= - ;; -esac -]) - -case " $_LT_TAGVAR(postdeps, $1) " in -*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; -esac - _LT_TAGVAR(compiler_lib_search_dirs, $1)= -if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then - _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` -fi -_LT_TAGDECL([], [compiler_lib_search_dirs], [1], - [The directories searched by this compiler when creating a shared library]) -_LT_TAGDECL([], [predep_objects], [1], - [Dependencies to place before and after the objects being linked to - create a shared library]) -_LT_TAGDECL([], [postdep_objects], [1]) -_LT_TAGDECL([], [predeps], [1]) -_LT_TAGDECL([], [postdeps], [1]) -_LT_TAGDECL([], [compiler_lib_search_path], [1], - [The library search path used internally by the compiler when linking - a shared library]) -])# _LT_SYS_HIDDEN_LIBDEPS - - -# _LT_LANG_F77_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for a Fortran 77 compiler are -# suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to 'libtool'. -m4_defun([_LT_LANG_F77_CONFIG], -[AC_LANG_PUSH(Fortran 77) -if test -z "$F77" || test no = "$F77"; then - _lt_disable_F77=yes -fi - -_LT_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_TAGVAR(allow_undefined_flag, $1)= -_LT_TAGVAR(always_export_symbols, $1)=no -_LT_TAGVAR(archive_expsym_cmds, $1)= -_LT_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_TAGVAR(hardcode_direct, $1)=no -_LT_TAGVAR(hardcode_direct_absolute, $1)=no -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_TAGVAR(hardcode_libdir_separator, $1)= -_LT_TAGVAR(hardcode_minus_L, $1)=no -_LT_TAGVAR(hardcode_automatic, $1)=no -_LT_TAGVAR(inherit_rpath, $1)=no -_LT_TAGVAR(module_cmds, $1)= -_LT_TAGVAR(module_expsym_cmds, $1)= -_LT_TAGVAR(link_all_deplibs, $1)=unknown -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds -_LT_TAGVAR(no_undefined_flag, $1)= -_LT_TAGVAR(whole_archive_flag_spec, $1)= -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for f77 test sources. -ac_ext=f - -# Object file extension for compiled f77 test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# No sense in running all these tests if we already determined that -# the F77 compiler isn't working. Some variables (like enable_shared) -# are currently assumed to apply to all compilers on this platform, -# and will be corrupted by setting them based on a non-working compiler. -if test yes != "$_lt_disable_F77"; then - # Code to be used in simple compile tests - lt_simple_compile_test_code="\ - subroutine t - return - end -" - - # Code to be used in simple link tests - lt_simple_link_test_code="\ - program t - end -" - - # ltmain only uses $CC for tagged configurations so make sure $CC is set. - _LT_TAG_COMPILER - - # save warnings/boilerplate of simple test code - _LT_COMPILER_BOILERPLATE - _LT_LINKER_BOILERPLATE - - # Allow CC to be a program name with arguments. - lt_save_CC=$CC - lt_save_GCC=$GCC - lt_save_CFLAGS=$CFLAGS - CC=${F77-"f77"} - CFLAGS=$FFLAGS - compiler=$CC - _LT_TAGVAR(compiler, $1)=$CC - _LT_CC_BASENAME([$compiler]) - GCC=$G77 - if test -n "$compiler"; then - AC_MSG_CHECKING([if libtool supports shared libraries]) - AC_MSG_RESULT([$can_build_shared]) - - AC_MSG_CHECKING([whether to build shared libraries]) - test no = "$can_build_shared" && enable_shared=no - - # On AIX, shared libraries and static libraries use the same namespace, and - # are all built from PIC. - case $host_os in - aix3*) - test yes = "$enable_shared" && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - aix[[4-9]]*) - if test ia64 != "$host_cpu"; then - case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in - yes,aix,yes) ;; # shared object as lib.so file only - yes,svr4,*) ;; # shared object as lib.so archive member only - yes,*) enable_static=no ;; # shared object in lib.a archive as well - esac - fi - ;; - esac - AC_MSG_RESULT([$enable_shared]) - - AC_MSG_CHECKING([whether to build static libraries]) - # Make sure either enable_shared or enable_static is yes. - test yes = "$enable_shared" || enable_static=yes - AC_MSG_RESULT([$enable_static]) - - _LT_TAGVAR(GCC, $1)=$G77 - _LT_TAGVAR(LD, $1)=$LD - - ## CAVEAT EMPTOR: - ## There is no encapsulation within the following macros, do not change - ## the running order or otherwise move them around unless you know exactly - ## what you are doing... - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) - fi # test -n "$compiler" - - GCC=$lt_save_GCC - CC=$lt_save_CC - CFLAGS=$lt_save_CFLAGS -fi # test yes != "$_lt_disable_F77" - -AC_LANG_POP -])# _LT_LANG_F77_CONFIG - - -# _LT_LANG_FC_CONFIG([TAG]) -# ------------------------- -# Ensure that the configuration variables for a Fortran compiler are -# suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to 'libtool'. -m4_defun([_LT_LANG_FC_CONFIG], -[AC_LANG_PUSH(Fortran) - -if test -z "$FC" || test no = "$FC"; then - _lt_disable_FC=yes -fi - -_LT_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_TAGVAR(allow_undefined_flag, $1)= -_LT_TAGVAR(always_export_symbols, $1)=no -_LT_TAGVAR(archive_expsym_cmds, $1)= -_LT_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_TAGVAR(hardcode_direct, $1)=no -_LT_TAGVAR(hardcode_direct_absolute, $1)=no -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_TAGVAR(hardcode_libdir_separator, $1)= -_LT_TAGVAR(hardcode_minus_L, $1)=no -_LT_TAGVAR(hardcode_automatic, $1)=no -_LT_TAGVAR(inherit_rpath, $1)=no -_LT_TAGVAR(module_cmds, $1)= -_LT_TAGVAR(module_expsym_cmds, $1)= -_LT_TAGVAR(link_all_deplibs, $1)=unknown -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds -_LT_TAGVAR(no_undefined_flag, $1)= -_LT_TAGVAR(whole_archive_flag_spec, $1)= -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for fc test sources. -ac_ext=${ac_fc_srcext-f} - -# Object file extension for compiled fc test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# No sense in running all these tests if we already determined that -# the FC compiler isn't working. Some variables (like enable_shared) -# are currently assumed to apply to all compilers on this platform, -# and will be corrupted by setting them based on a non-working compiler. -if test yes != "$_lt_disable_FC"; then - # Code to be used in simple compile tests - lt_simple_compile_test_code="\ - subroutine t - return - end -" - - # Code to be used in simple link tests - lt_simple_link_test_code="\ - program t - end -" - - # ltmain only uses $CC for tagged configurations so make sure $CC is set. - _LT_TAG_COMPILER - - # save warnings/boilerplate of simple test code - _LT_COMPILER_BOILERPLATE - _LT_LINKER_BOILERPLATE - - # Allow CC to be a program name with arguments. - lt_save_CC=$CC - lt_save_GCC=$GCC - lt_save_CFLAGS=$CFLAGS - CC=${FC-"f95"} - CFLAGS=$FCFLAGS - compiler=$CC - GCC=$ac_cv_fc_compiler_gnu - - _LT_TAGVAR(compiler, $1)=$CC - _LT_CC_BASENAME([$compiler]) - - if test -n "$compiler"; then - AC_MSG_CHECKING([if libtool supports shared libraries]) - AC_MSG_RESULT([$can_build_shared]) - - AC_MSG_CHECKING([whether to build shared libraries]) - test no = "$can_build_shared" && enable_shared=no - - # On AIX, shared libraries and static libraries use the same namespace, and - # are all built from PIC. - case $host_os in - aix3*) - test yes = "$enable_shared" && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - aix[[4-9]]*) - if test ia64 != "$host_cpu"; then - case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in - yes,aix,yes) ;; # shared object as lib.so file only - yes,svr4,*) ;; # shared object as lib.so archive member only - yes,*) enable_static=no ;; # shared object in lib.a archive as well - esac - fi - ;; - esac - AC_MSG_RESULT([$enable_shared]) - - AC_MSG_CHECKING([whether to build static libraries]) - # Make sure either enable_shared or enable_static is yes. - test yes = "$enable_shared" || enable_static=yes - AC_MSG_RESULT([$enable_static]) - - _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu - _LT_TAGVAR(LD, $1)=$LD - - ## CAVEAT EMPTOR: - ## There is no encapsulation within the following macros, do not change - ## the running order or otherwise move them around unless you know exactly - ## what you are doing... - _LT_SYS_HIDDEN_LIBDEPS($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) - fi # test -n "$compiler" - - GCC=$lt_save_GCC - CC=$lt_save_CC - CFLAGS=$lt_save_CFLAGS -fi # test yes != "$_lt_disable_FC" - -AC_LANG_POP -])# _LT_LANG_FC_CONFIG - - -# _LT_LANG_GCJ_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for the GNU Java Compiler compiler -# are suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to 'libtool'. -m4_defun([_LT_LANG_GCJ_CONFIG], -[AC_REQUIRE([LT_PROG_GCJ])dnl -AC_LANG_SAVE - -# Source file extension for Java test sources. -ac_ext=java - -# Object file extension for compiled Java test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" - -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_TAG_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_CFLAGS=$CFLAGS -lt_save_GCC=$GCC -GCC=yes -CC=${GCJ-"gcj"} -CFLAGS=$GCJFLAGS -compiler=$CC -_LT_TAGVAR(compiler, $1)=$CC -_LT_TAGVAR(LD, $1)=$LD -_LT_CC_BASENAME([$compiler]) - -# GCJ did not exist at the time GCC didn't implicitly link libc in. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no - -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - _LT_COMPILER_NO_RTTI($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) -fi - -AC_LANG_RESTORE - -GCC=$lt_save_GCC -CC=$lt_save_CC -CFLAGS=$lt_save_CFLAGS -])# _LT_LANG_GCJ_CONFIG - - -# _LT_LANG_GO_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for the GNU Go compiler -# are suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to 'libtool'. -m4_defun([_LT_LANG_GO_CONFIG], -[AC_REQUIRE([LT_PROG_GO])dnl -AC_LANG_SAVE - -# Source file extension for Go test sources. -ac_ext=go - -# Object file extension for compiled Go test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="package main; func main() { }" - -# Code to be used in simple link tests -lt_simple_link_test_code='package main; func main() { }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_TAG_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_CFLAGS=$CFLAGS -lt_save_GCC=$GCC -GCC=yes -CC=${GOC-"gccgo"} -CFLAGS=$GOFLAGS -compiler=$CC -_LT_TAGVAR(compiler, $1)=$CC -_LT_TAGVAR(LD, $1)=$LD -_LT_CC_BASENAME([$compiler]) - -# Go did not exist at the time GCC didn't implicitly link libc in. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no - -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - _LT_COMPILER_NO_RTTI($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) -fi - -AC_LANG_RESTORE - -GCC=$lt_save_GCC -CC=$lt_save_CC -CFLAGS=$lt_save_CFLAGS -])# _LT_LANG_GO_CONFIG - - -# _LT_LANG_RC_CONFIG([TAG]) -# ------------------------- -# Ensure that the configuration variables for the Windows resource compiler -# are suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to 'libtool'. -m4_defun([_LT_LANG_RC_CONFIG], -[AC_REQUIRE([LT_PROG_RC])dnl -AC_LANG_SAVE - -# Source file extension for RC test sources. -ac_ext=rc - -# Object file extension for compiled RC test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' - -# Code to be used in simple link tests -lt_simple_link_test_code=$lt_simple_compile_test_code - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_TAG_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_CFLAGS=$CFLAGS -lt_save_GCC=$GCC -GCC= -CC=${RC-"windres"} -CFLAGS= -compiler=$CC -_LT_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) -_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - -if test -n "$compiler"; then - : - _LT_CONFIG($1) -fi - -GCC=$lt_save_GCC -AC_LANG_RESTORE -CC=$lt_save_CC -CFLAGS=$lt_save_CFLAGS -])# _LT_LANG_RC_CONFIG - - -# LT_PROG_GCJ -# ----------- -AC_DEFUN([LT_PROG_GCJ], -[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], - [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], - [AC_CHECK_TOOL(GCJ, gcj,) - test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" - AC_SUBST(GCJFLAGS)])])[]dnl -]) - -# Old name: -AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([LT_AC_PROG_GCJ], []) - - -# LT_PROG_GO -# ---------- -AC_DEFUN([LT_PROG_GO], -[AC_CHECK_TOOL(GOC, gccgo,) -]) - - -# LT_PROG_RC -# ---------- -AC_DEFUN([LT_PROG_RC], -[AC_CHECK_TOOL(RC, windres,) -]) - -# Old name: -AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([LT_AC_PROG_RC], []) - - -# _LT_DECL_EGREP -# -------------- -# If we don't have a new enough Autoconf to choose the best grep -# available, choose the one first in the user's PATH. -m4_defun([_LT_DECL_EGREP], -[AC_REQUIRE([AC_PROG_EGREP])dnl -AC_REQUIRE([AC_PROG_FGREP])dnl -test -z "$GREP" && GREP=grep -_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) -_LT_DECL([], [EGREP], [1], [An ERE matcher]) -_LT_DECL([], [FGREP], [1], [A literal string matcher]) -dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too -AC_SUBST([GREP]) -]) - - -# _LT_DECL_OBJDUMP -# -------------- -# If we don't have a new enough Autoconf to choose the best objdump -# available, choose the one first in the user's PATH. -m4_defun([_LT_DECL_OBJDUMP], -[AC_CHECK_TOOL(OBJDUMP, objdump, false) -test -z "$OBJDUMP" && OBJDUMP=objdump -_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) -AC_SUBST([OBJDUMP]) -]) - -# _LT_DECL_DLLTOOL -# ---------------- -# Ensure DLLTOOL variable is set. -m4_defun([_LT_DECL_DLLTOOL], -[AC_CHECK_TOOL(DLLTOOL, dlltool, false) -test -z "$DLLTOOL" && DLLTOOL=dlltool -_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) -AC_SUBST([DLLTOOL]) -]) - -# _LT_DECL_SED -# ------------ -# Check for a fully-functional sed program, that truncates -# as few characters as possible. Prefer GNU sed if found. -m4_defun([_LT_DECL_SED], -[AC_PROG_SED -test -z "$SED" && SED=sed -Xsed="$SED -e 1s/^X//" -_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) -_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], - [Sed that helps us avoid accidentally triggering echo(1) options like -n]) -])# _LT_DECL_SED - -m4_ifndef([AC_PROG_SED], [ -############################################################ -# NOTE: This macro has been submitted for inclusion into # -# GNU Autoconf as AC_PROG_SED. When it is available in # -# a released version of Autoconf we should remove this # -# macro and use it instead. # -############################################################ - -m4_defun([AC_PROG_SED], -[AC_MSG_CHECKING([for a sed that does not truncate output]) -AC_CACHE_VAL(lt_cv_path_SED, -[# Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi - done - done -done -IFS=$as_save_IFS -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f "$lt_ac_sed" && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break - fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test 10 -lt "$lt_ac_count" && break - lt_ac_count=`expr $lt_ac_count + 1` - if test "$lt_ac_count" -gt "$lt_ac_max"; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed - fi - done -done -]) -SED=$lt_cv_path_SED -AC_SUBST([SED]) -AC_MSG_RESULT([$SED]) -])#AC_PROG_SED -])#m4_ifndef - -# Old name: -AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([LT_AC_PROG_SED], []) - - -# _LT_CHECK_SHELL_FEATURES -# ------------------------ -# Find out whether the shell is Bourne or XSI compatible, -# or has some other useful features. -m4_defun([_LT_CHECK_SHELL_FEATURES], -[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - lt_unset=unset -else - lt_unset=false -fi -_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl - -# test EBCDIC or ASCII -case `echo X|tr X '\101'` in - A) # ASCII based system - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr - lt_SP2NL='tr \040 \012' - lt_NL2SP='tr \015\012 \040\040' - ;; - *) # EBCDIC based system - lt_SP2NL='tr \100 \n' - lt_NL2SP='tr \r\n \100\100' - ;; -esac -_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl -_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl -])# _LT_CHECK_SHELL_FEATURES - - -# _LT_PATH_CONVERSION_FUNCTIONS -# ----------------------------- -# Determine what file name conversion functions should be used by -# func_to_host_file (and, implicitly, by func_to_host_path). These are needed -# for certain cross-compile configurations and native mingw. -m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_MSG_CHECKING([how to convert $build file names to $host format]) -AC_CACHE_VAL(lt_cv_to_host_file_cmd, -[case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 - ;; - esac - ;; - *-*-cygwin* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin - ;; - esac - ;; - * ) # unhandled hosts (and "normal" native builds) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; -esac -]) -to_host_file_cmd=$lt_cv_to_host_file_cmd -AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) -_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], - [0], [convert $build file names to $host format])dnl - -AC_MSG_CHECKING([how to convert $build file names to toolchain format]) -AC_CACHE_VAL(lt_cv_to_tool_file_cmd, -[#assume ordinary cross tools, or native build. -lt_cv_to_tool_file_cmd=func_convert_file_noop -case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 - ;; - esac - ;; -esac -]) -to_tool_file_cmd=$lt_cv_to_tool_file_cmd -AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) -_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], - [0], [convert $build files to toolchain format])dnl -])# _LT_PATH_CONVERSION_FUNCTIONS diff --git a/m4/ltoptions.m4 b/m4/ltoptions.m4 deleted file mode 100644 index 94b0829..0000000 --- a/m4/ltoptions.m4 +++ /dev/null @@ -1,437 +0,0 @@ -# Helper functions for option handling. -*- Autoconf -*- -# -# Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software -# Foundation, Inc. -# Written by Gary V. Vaughan, 2004 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# serial 8 ltoptions.m4 - -# This is to help aclocal find these macros, as it can't see m4_define. -AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) - - -# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) -# ------------------------------------------ -m4_define([_LT_MANGLE_OPTION], -[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) - - -# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) -# --------------------------------------- -# Set option OPTION-NAME for macro MACRO-NAME, and if there is a -# matching handler defined, dispatch to it. Other OPTION-NAMEs are -# saved as a flag. -m4_define([_LT_SET_OPTION], -[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl -m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), - _LT_MANGLE_DEFUN([$1], [$2]), - [m4_warning([Unknown $1 option '$2'])])[]dnl -]) - - -# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) -# ------------------------------------------------------------ -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -m4_define([_LT_IF_OPTION], -[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) - - -# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) -# ------------------------------------------------------- -# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME -# are set. -m4_define([_LT_UNLESS_OPTIONS], -[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), - [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), - [m4_define([$0_found])])])[]dnl -m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 -])[]dnl -]) - - -# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) -# ---------------------------------------- -# OPTION-LIST is a space-separated list of Libtool options associated -# with MACRO-NAME. If any OPTION has a matching handler declared with -# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about -# the unknown option and exit. -m4_defun([_LT_SET_OPTIONS], -[# Set options -m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), - [_LT_SET_OPTION([$1], _LT_Option)]) - -m4_if([$1],[LT_INIT],[ - dnl - dnl Simply set some default values (i.e off) if boolean options were not - dnl specified: - _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no - ]) - _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no - ]) - dnl - dnl If no reference was made to various pairs of opposing options, then - dnl we run the default mode handler for the pair. For example, if neither - dnl 'shared' nor 'disable-shared' was passed, we enable building of shared - dnl archives by default: - _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) - _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) - _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) - _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], - [_LT_ENABLE_FAST_INSTALL]) - _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], - [_LT_WITH_AIX_SONAME([aix])]) - ]) -])# _LT_SET_OPTIONS - - -## --------------------------------- ## -## Macros to handle LT_INIT options. ## -## --------------------------------- ## - -# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) -# ----------------------------------------- -m4_define([_LT_MANGLE_DEFUN], -[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) - - -# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) -# ----------------------------------------------- -m4_define([LT_OPTION_DEFINE], -[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl -])# LT_OPTION_DEFINE - - -# dlopen -# ------ -LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes -]) - -AU_DEFUN([AC_LIBTOOL_DLOPEN], -[_LT_SET_OPTION([LT_INIT], [dlopen]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you -put the 'dlopen' option into LT_INIT's first parameter.]) -]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) - - -# win32-dll -# --------- -# Declare package support for building win32 dll's. -LT_OPTION_DEFINE([LT_INIT], [win32-dll], -[enable_win32_dll=yes - -case $host in -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) - AC_CHECK_TOOL(AS, as, false) - AC_CHECK_TOOL(DLLTOOL, dlltool, false) - AC_CHECK_TOOL(OBJDUMP, objdump, false) - ;; -esac - -test -z "$AS" && AS=as -_LT_DECL([], [AS], [1], [Assembler program])dnl - -test -z "$DLLTOOL" && DLLTOOL=dlltool -_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl - -test -z "$OBJDUMP" && OBJDUMP=objdump -_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl -])# win32-dll - -AU_DEFUN([AC_LIBTOOL_WIN32_DLL], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -_LT_SET_OPTION([LT_INIT], [win32-dll]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you -put the 'win32-dll' option into LT_INIT's first parameter.]) -]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) - - -# _LT_ENABLE_SHARED([DEFAULT]) -# ---------------------------- -# implement the --enable-shared flag, and supports the 'shared' and -# 'disable-shared' LT_INIT options. -# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. -m4_define([_LT_ENABLE_SHARED], -[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl -AC_ARG_ENABLE([shared], - [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], - [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS=$lt_save_ifs - ;; - esac], - [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) - - _LT_DECL([build_libtool_libs], [enable_shared], [0], - [Whether or not to build shared libraries]) -])# _LT_ENABLE_SHARED - -LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) -LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) - -# Old names: -AC_DEFUN([AC_ENABLE_SHARED], -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) -]) - -AC_DEFUN([AC_DISABLE_SHARED], -[_LT_SET_OPTION([LT_INIT], [disable-shared]) -]) - -AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) -AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AM_ENABLE_SHARED], []) -dnl AC_DEFUN([AM_DISABLE_SHARED], []) - - - -# _LT_ENABLE_STATIC([DEFAULT]) -# ---------------------------- -# implement the --enable-static flag, and support the 'static' and -# 'disable-static' LT_INIT options. -# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. -m4_define([_LT_ENABLE_STATIC], -[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl -AC_ARG_ENABLE([static], - [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], - [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS=$lt_save_ifs - ;; - esac], - [enable_static=]_LT_ENABLE_STATIC_DEFAULT) - - _LT_DECL([build_old_libs], [enable_static], [0], - [Whether or not to build static libraries]) -])# _LT_ENABLE_STATIC - -LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) -LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) - -# Old names: -AC_DEFUN([AC_ENABLE_STATIC], -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) -]) - -AC_DEFUN([AC_DISABLE_STATIC], -[_LT_SET_OPTION([LT_INIT], [disable-static]) -]) - -AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) -AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AM_ENABLE_STATIC], []) -dnl AC_DEFUN([AM_DISABLE_STATIC], []) - - - -# _LT_ENABLE_FAST_INSTALL([DEFAULT]) -# ---------------------------------- -# implement the --enable-fast-install flag, and support the 'fast-install' -# and 'disable-fast-install' LT_INIT options. -# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. -m4_define([_LT_ENABLE_FAST_INSTALL], -[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl -AC_ARG_ENABLE([fast-install], - [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], - [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS=$lt_save_ifs - ;; - esac], - [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) - -_LT_DECL([fast_install], [enable_fast_install], [0], - [Whether or not to optimize for fast installation])dnl -])# _LT_ENABLE_FAST_INSTALL - -LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) -LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) - -# Old names: -AU_DEFUN([AC_ENABLE_FAST_INSTALL], -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you put -the 'fast-install' option into LT_INIT's first parameter.]) -]) - -AU_DEFUN([AC_DISABLE_FAST_INSTALL], -[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you put -the 'disable-fast-install' option into LT_INIT's first parameter.]) -]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) -dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) - - -# _LT_WITH_AIX_SONAME([DEFAULT]) -# ---------------------------------- -# implement the --with-aix-soname flag, and support the `aix-soname=aix' -# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT -# is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. -m4_define([_LT_WITH_AIX_SONAME], -[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl -shared_archive_member_spec= -case $host,$enable_shared in -power*-*-aix[[5-9]]*,yes) - AC_MSG_CHECKING([which variant of shared library versioning to provide]) - AC_ARG_WITH([aix-soname], - [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], - [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], - [case $withval in - aix|svr4|both) - ;; - *) - AC_MSG_ERROR([Unknown argument to --with-aix-soname]) - ;; - esac - lt_cv_with_aix_soname=$with_aix_soname], - [AC_CACHE_VAL([lt_cv_with_aix_soname], - [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) - with_aix_soname=$lt_cv_with_aix_soname]) - AC_MSG_RESULT([$with_aix_soname]) - if test aix != "$with_aix_soname"; then - # For the AIX way of multilib, we name the shared archive member - # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', - # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. - # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, - # the AIX toolchain works better with OBJECT_MODE set (default 32). - if test 64 = "${OBJECT_MODE-32}"; then - shared_archive_member_spec=shr_64 - else - shared_archive_member_spec=shr - fi - fi - ;; -*) - with_aix_soname=aix - ;; -esac - -_LT_DECL([], [shared_archive_member_spec], [0], - [Shared archive member basename, for filename based shared library versioning on AIX])dnl -])# _LT_WITH_AIX_SONAME - -LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) -LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) -LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) - - -# _LT_WITH_PIC([MODE]) -# -------------------- -# implement the --with-pic flag, and support the 'pic-only' and 'no-pic' -# LT_INIT options. -# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. -m4_define([_LT_WITH_PIC], -[AC_ARG_WITH([pic], - [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], - [lt_p=${PACKAGE-default} - case $withval in - yes|no) pic_mode=$withval ;; - *) - pic_mode=default - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for lt_pkg in $withval; do - IFS=$lt_save_ifs - if test "X$lt_pkg" = "X$lt_p"; then - pic_mode=yes - fi - done - IFS=$lt_save_ifs - ;; - esac], - [pic_mode=m4_default([$1], [default])]) - -_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl -])# _LT_WITH_PIC - -LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) -LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) - -# Old name: -AU_DEFUN([AC_LIBTOOL_PICMODE], -[_LT_SET_OPTION([LT_INIT], [pic-only]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you -put the 'pic-only' option into LT_INIT's first parameter.]) -]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) - -## ----------------- ## -## LTDL_INIT Options ## -## ----------------- ## - -m4_define([_LTDL_MODE], []) -LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], - [m4_define([_LTDL_MODE], [nonrecursive])]) -LT_OPTION_DEFINE([LTDL_INIT], [recursive], - [m4_define([_LTDL_MODE], [recursive])]) -LT_OPTION_DEFINE([LTDL_INIT], [subproject], - [m4_define([_LTDL_MODE], [subproject])]) - -m4_define([_LTDL_TYPE], []) -LT_OPTION_DEFINE([LTDL_INIT], [installable], - [m4_define([_LTDL_TYPE], [installable])]) -LT_OPTION_DEFINE([LTDL_INIT], [convenience], - [m4_define([_LTDL_TYPE], [convenience])]) diff --git a/m4/ltsugar.m4 b/m4/ltsugar.m4 deleted file mode 100644 index 48bc934..0000000 --- a/m4/ltsugar.m4 +++ /dev/null @@ -1,124 +0,0 @@ -# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- -# -# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software -# Foundation, Inc. -# Written by Gary V. Vaughan, 2004 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# serial 6 ltsugar.m4 - -# This is to help aclocal find these macros, as it can't see m4_define. -AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) - - -# lt_join(SEP, ARG1, [ARG2...]) -# ----------------------------- -# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their -# associated separator. -# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier -# versions in m4sugar had bugs. -m4_define([lt_join], -[m4_if([$#], [1], [], - [$#], [2], [[$2]], - [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) -m4_define([_lt_join], -[m4_if([$#$2], [2], [], - [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) - - -# lt_car(LIST) -# lt_cdr(LIST) -# ------------ -# Manipulate m4 lists. -# These macros are necessary as long as will still need to support -# Autoconf-2.59, which quotes differently. -m4_define([lt_car], [[$1]]) -m4_define([lt_cdr], -[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], - [$#], 1, [], - [m4_dquote(m4_shift($@))])]) -m4_define([lt_unquote], $1) - - -# lt_append(MACRO-NAME, STRING, [SEPARATOR]) -# ------------------------------------------ -# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. -# Note that neither SEPARATOR nor STRING are expanded; they are appended -# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). -# No SEPARATOR is output if MACRO-NAME was previously undefined (different -# than defined and empty). -# -# This macro is needed until we can rely on Autoconf 2.62, since earlier -# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. -m4_define([lt_append], -[m4_define([$1], - m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) - - - -# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) -# ---------------------------------------------------------- -# Produce a SEP delimited list of all paired combinations of elements of -# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list -# has the form PREFIXmINFIXSUFFIXn. -# Needed until we can rely on m4_combine added in Autoconf 2.62. -m4_define([lt_combine], -[m4_if(m4_eval([$# > 3]), [1], - [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl -[[m4_foreach([_Lt_prefix], [$2], - [m4_foreach([_Lt_suffix], - ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, - [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) - - -# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) -# ----------------------------------------------------------------------- -# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited -# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. -m4_define([lt_if_append_uniq], -[m4_ifdef([$1], - [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], - [lt_append([$1], [$2], [$3])$4], - [$5])], - [lt_append([$1], [$2], [$3])$4])]) - - -# lt_dict_add(DICT, KEY, VALUE) -# ----------------------------- -m4_define([lt_dict_add], -[m4_define([$1($2)], [$3])]) - - -# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) -# -------------------------------------------- -m4_define([lt_dict_add_subkey], -[m4_define([$1($2:$3)], [$4])]) - - -# lt_dict_fetch(DICT, KEY, [SUBKEY]) -# ---------------------------------- -m4_define([lt_dict_fetch], -[m4_ifval([$3], - m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), - m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) - - -# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) -# ----------------------------------------------------------------- -m4_define([lt_if_dict_fetch], -[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], - [$5], - [$6])]) - - -# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) -# -------------------------------------------------------------- -m4_define([lt_dict_filter], -[m4_if([$5], [], [], - [lt_join(m4_quote(m4_default([$4], [[, ]])), - lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), - [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl -]) diff --git a/m4/ltversion.m4 b/m4/ltversion.m4 deleted file mode 100644 index fa04b52..0000000 --- a/m4/ltversion.m4 +++ /dev/null @@ -1,23 +0,0 @@ -# ltversion.m4 -- version numbers -*- Autoconf -*- -# -# Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. -# Written by Scott James Remnant, 2004 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# @configure_input@ - -# serial 4179 ltversion.m4 -# This file is part of GNU Libtool - -m4_define([LT_PACKAGE_VERSION], [2.4.6]) -m4_define([LT_PACKAGE_REVISION], [2.4.6]) - -AC_DEFUN([LTVERSION_VERSION], -[macro_version='2.4.6' -macro_revision='2.4.6' -_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) -_LT_DECL(, macro_revision, 0) -]) diff --git a/m4/lt~obsolete.m4 b/m4/lt~obsolete.m4 deleted file mode 100644 index c6b26f8..0000000 --- a/m4/lt~obsolete.m4 +++ /dev/null @@ -1,99 +0,0 @@ -# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- -# -# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software -# Foundation, Inc. -# Written by Scott James Remnant, 2004. -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# serial 5 lt~obsolete.m4 - -# These exist entirely to fool aclocal when bootstrapping libtool. -# -# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), -# which have later been changed to m4_define as they aren't part of the -# exported API, or moved to Autoconf or Automake where they belong. -# -# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN -# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us -# using a macro with the same name in our local m4/libtool.m4 it'll -# pull the old libtool.m4 in (it doesn't see our shiny new m4_define -# and doesn't know about Autoconf macros at all.) -# -# So we provide this file, which has a silly filename so it's always -# included after everything else. This provides aclocal with the -# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything -# because those macros already exist, or will be overwritten later. -# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. -# -# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. -# Yes, that means every name once taken will need to remain here until -# we give up compatibility with versions before 1.7, at which point -# we need to keep only those names which we still refer to. - -# This is to help aclocal find these macros, as it can't see m4_define. -AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) - -m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) -m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) -m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) -m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) -m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) -m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) -m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) -m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) -m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) -m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) -m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) -m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) -m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) -m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) -m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) -m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) -m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) -m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) -m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) -m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) -m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) -m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) -m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) -m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) -m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) -m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) -m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) -m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) -m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) -m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) -m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) -m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) -m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) -m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) -m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) -m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) -m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) -m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) -m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) -m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) -m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) -m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) -m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) -m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) -m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) -m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) -m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) -m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) -m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) -m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) -m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) -m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) -m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) -m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) -m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) -m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) -m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) -m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) -m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) -m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) diff --git a/m4/nls.m4 b/m4/nls.m4 deleted file mode 100644 index 93df8d3..0000000 --- a/m4/nls.m4 +++ /dev/null @@ -1,32 +0,0 @@ -# nls.m4 serial 5 (gettext-0.18) -dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014 Free Software Foundation, -dnl Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. -dnl -dnl This file can be used in projects which are not available under -dnl the GNU General Public License or the GNU Library General Public -dnl License but which still want to provide support for the GNU gettext -dnl functionality. -dnl Please note that the actual code of the GNU gettext library is covered -dnl by the GNU Library General Public License, and the rest of the GNU -dnl gettext package is covered by the GNU General Public License. -dnl They are *not* in the public domain. - -dnl Authors: -dnl Ulrich Drepper , 1995-2000. -dnl Bruno Haible , 2000-2003. - -AC_PREREQ([2.50]) - -AC_DEFUN([AM_NLS], -[ - AC_MSG_CHECKING([whether NLS is requested]) - dnl Default is enabled NLS - AC_ARG_ENABLE([nls], - [ --disable-nls do not use Native Language Support], - USE_NLS=$enableval, USE_NLS=yes) - AC_MSG_RESULT([$USE_NLS]) - AC_SUBST([USE_NLS]) -]) diff --git a/m4/pkg.m4 b/m4/pkg.m4 deleted file mode 100644 index faea7f8..0000000 --- a/m4/pkg.m4 +++ /dev/null @@ -1,214 +0,0 @@ -# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- -# serial 1 (pkg-config-0.24) -# -# Copyright © 2004 Scott James Remnant . -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# PKG_PROG_PKG_CONFIG([MIN-VERSION]) -# ---------------------------------- -AC_DEFUN([PKG_PROG_PKG_CONFIG], -[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) -m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) -m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) -AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) -AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) -AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) - -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then - AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) -fi -if test -n "$PKG_CONFIG"; then - _pkg_min_version=m4_default([$1], [0.9.0]) - AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - PKG_CONFIG="" - fi -fi[]dnl -])# PKG_PROG_PKG_CONFIG - -# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -# -# Check to see whether a particular set of modules exists. Similar -# to PKG_CHECK_MODULES(), but does not set variables or print errors. -# -# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -# only at the first occurence in configure.ac, so if the first place -# it's called might be skipped (such as if it is within an "if", you -# have to call PKG_CHECK_EXISTS manually -# -------------------------------------------------------------- -AC_DEFUN([PKG_CHECK_EXISTS], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -if test -n "$PKG_CONFIG" && \ - AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then - m4_default([$2], [:]) -m4_ifvaln([$3], [else - $3])dnl -fi]) - -# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) -# --------------------------------------------- -m4_define([_PKG_CONFIG], -[if test -n "$$1"; then - pkg_cv_[]$1="$$1" - elif test -n "$PKG_CONFIG"; then - PKG_CHECK_EXISTS([$3], - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes ], - [pkg_failed=yes]) - else - pkg_failed=untried -fi[]dnl -])# _PKG_CONFIG - -# _PKG_SHORT_ERRORS_SUPPORTED -# ----------------------------- -AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi[]dnl -])# _PKG_SHORT_ERRORS_SUPPORTED - - -# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], -# [ACTION-IF-NOT-FOUND]) -# -# -# Note that if there is a possibility the first call to -# PKG_CHECK_MODULES might not happen, you should be sure to include an -# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac -# -# -# -------------------------------------------------------------- -AC_DEFUN([PKG_CHECK_MODULES], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl -AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl - -pkg_failed=no -AC_MSG_CHECKING([for $1]) - -_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) -_PKG_CONFIG([$1][_LIBS], [libs], [$2]) - -m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS -and $1[]_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details.]) - -if test $pkg_failed = yes; then - AC_MSG_RESULT([no]) - _PKG_SHORT_ERRORS_SUPPORTED - if test $_pkg_short_errors_supported = yes; then - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` - else - $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD - - m4_default([$4], [AC_MSG_ERROR( -[Package requirements ($2) were not met: - -$$1_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -_PKG_TEXT])[]dnl - ]) -elif test $pkg_failed = untried; then - AC_MSG_RESULT([no]) - m4_default([$4], [AC_MSG_FAILURE( -[The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -_PKG_TEXT - -To get pkg-config, see .])[]dnl - ]) -else - $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS - $1[]_LIBS=$pkg_cv_[]$1[]_LIBS - AC_MSG_RESULT([yes]) - $3 -fi[]dnl -])# PKG_CHECK_MODULES - - -# PKG_INSTALLDIR(DIRECTORY) -# ------------------------- -# Substitutes the variable pkgconfigdir as the location where a module -# should install pkg-config .pc files. By default the directory is -# $libdir/pkgconfig, but the default can be changed by passing -# DIRECTORY. The user can override through the --with-pkgconfigdir -# parameter. -AC_DEFUN([PKG_INSTALLDIR], -[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) -m4_pushdef([pkg_description], - [pkg-config installation directory @<:@]pkg_default[@:>@]) -AC_ARG_WITH([pkgconfigdir], - [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, - [with_pkgconfigdir=]pkg_default) -AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) -m4_popdef([pkg_default]) -m4_popdef([pkg_description]) -]) dnl PKG_INSTALLDIR - - -# PKG_NOARCH_INSTALLDIR(DIRECTORY) -# ------------------------- -# Substitutes the variable noarch_pkgconfigdir as the location where a -# module should install arch-independent pkg-config .pc files. By -# default the directory is $datadir/pkgconfig, but the default can be -# changed by passing DIRECTORY. The user can override through the -# --with-noarch-pkgconfigdir parameter. -AC_DEFUN([PKG_NOARCH_INSTALLDIR], -[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) -m4_pushdef([pkg_description], - [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) -AC_ARG_WITH([noarch-pkgconfigdir], - [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, - [with_noarch_pkgconfigdir=]pkg_default) -AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) -m4_popdef([pkg_default]) -m4_popdef([pkg_description]) -]) dnl PKG_NOARCH_INSTALLDIR - - -# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, -# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -# ------------------------------------------- -# Retrieves the value of the pkg-config variable for the given module. -AC_DEFUN([PKG_CHECK_VAR], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl - -_PKG_CONFIG([$1], [variable="][$3]["], [$2]) -AS_VAR_COPY([$1], [pkg_cv_][$1]) - -AS_VAR_IF([$1], [""], [$5], [$4])dnl -])# PKG_CHECK_VAR diff --git a/m4/po.m4 b/m4/po.m4 deleted file mode 100644 index d4bc262..0000000 --- a/m4/po.m4 +++ /dev/null @@ -1,453 +0,0 @@ -# po.m4 serial 24 (gettext-0.19) -dnl Copyright (C) 1995-2014 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. -dnl -dnl This file can be used in projects which are not available under -dnl the GNU General Public License or the GNU Library General Public -dnl License but which still want to provide support for the GNU gettext -dnl functionality. -dnl Please note that the actual code of the GNU gettext library is covered -dnl by the GNU Library General Public License, and the rest of the GNU -dnl gettext package is covered by the GNU General Public License. -dnl They are *not* in the public domain. - -dnl Authors: -dnl Ulrich Drepper , 1995-2000. -dnl Bruno Haible , 2000-2003. - -AC_PREREQ([2.60]) - -dnl Checks for all prerequisites of the po subdirectory. -AC_DEFUN([AM_PO_SUBDIRS], -[ - AC_REQUIRE([AC_PROG_MAKE_SET])dnl - AC_REQUIRE([AC_PROG_INSTALL])dnl - AC_REQUIRE([AC_PROG_MKDIR_P])dnl - AC_REQUIRE([AC_PROG_SED])dnl - AC_REQUIRE([AM_NLS])dnl - - dnl Release version of the gettext macros. This is used to ensure that - dnl the gettext macros and po/Makefile.in.in are in sync. - AC_SUBST([GETTEXT_MACRO_VERSION], [0.19]) - - dnl Perform the following tests also if --disable-nls has been given, - dnl because they are needed for "make dist" to work. - - dnl Search for GNU msgfmt in the PATH. - dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. - dnl The second test excludes FreeBSD msgfmt. - AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, - [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && - (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], - :) - AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) - - dnl Test whether it is GNU msgfmt >= 0.15. -changequote(,)dnl - case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; - *) MSGFMT_015=$MSGFMT ;; - esac -changequote([,])dnl - AC_SUBST([MSGFMT_015]) -changequote(,)dnl - case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; - *) GMSGFMT_015=$GMSGFMT ;; - esac -changequote([,])dnl - AC_SUBST([GMSGFMT_015]) - - dnl Search for GNU xgettext 0.12 or newer in the PATH. - dnl The first test excludes Solaris xgettext and early GNU xgettext versions. - dnl The second test excludes FreeBSD xgettext. - AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, - [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && - (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], - :) - dnl Remove leftover from FreeBSD xgettext call. - rm -f messages.po - - dnl Test whether it is GNU xgettext >= 0.15. -changequote(,)dnl - case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; - *) XGETTEXT_015=$XGETTEXT ;; - esac -changequote([,])dnl - AC_SUBST([XGETTEXT_015]) - - dnl Search for GNU msgmerge 0.11 or newer in the PATH. - AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, - [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) - - dnl Installation directories. - dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we - dnl have to define it here, so that it can be used in po/Makefile. - test -n "$localedir" || localedir='${datadir}/locale' - AC_SUBST([localedir]) - - dnl Support for AM_XGETTEXT_OPTION. - test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= - AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) - - AC_CONFIG_COMMANDS([po-directories], [[ - for ac_file in $CONFIG_FILES; do - # Support "outfile[:infile[:infile...]]" - case "$ac_file" in - *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - esac - # PO directories have a Makefile.in generated from Makefile.in.in. - case "$ac_file" in */Makefile.in) - # Adjust a relative srcdir. - ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` - ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` - ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` - # In autoconf-2.13 it is called $ac_given_srcdir. - # In autoconf-2.50 it is called $srcdir. - test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" - case "$ac_given_srcdir" in - .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; - /*) top_srcdir="$ac_given_srcdir" ;; - *) top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - # Treat a directory as a PO directory if and only if it has a - # POTFILES.in file. This allows packages to have multiple PO - # directories under different names or in different locations. - if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then - rm -f "$ac_dir/POTFILES" - test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" - gt_tab=`printf '\t'` - cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" - POMAKEFILEDEPS="POTFILES.in" - # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend - # on $ac_dir but don't depend on user-specified configuration - # parameters. - if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then - # The LINGUAS file contains the set of available languages. - if test -n "$OBSOLETE_ALL_LINGUAS"; then - test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" - fi - ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` - # Hide the ALL_LINGUAS assignment from automake < 1.5. - eval 'ALL_LINGUAS''=$ALL_LINGUAS_' - POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" - else - # The set of available languages was given in configure.in. - # Hide the ALL_LINGUAS assignment from automake < 1.5. - eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' - fi - # Compute POFILES - # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) - # Compute UPDATEPOFILES - # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) - # Compute DUMMYPOFILES - # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) - # Compute GMOFILES - # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) - case "$ac_given_srcdir" in - .) srcdirpre= ;; - *) srcdirpre='$(srcdir)/' ;; - esac - POFILES= - UPDATEPOFILES= - DUMMYPOFILES= - GMOFILES= - for lang in $ALL_LINGUAS; do - POFILES="$POFILES $srcdirpre$lang.po" - UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" - DUMMYPOFILES="$DUMMYPOFILES $lang.nop" - GMOFILES="$GMOFILES $srcdirpre$lang.gmo" - done - # CATALOGS depends on both $ac_dir and the user's LINGUAS - # environment variable. - INST_LINGUAS= - if test -n "$ALL_LINGUAS"; then - for presentlang in $ALL_LINGUAS; do - useit=no - if test "%UNSET%" != "$LINGUAS"; then - desiredlanguages="$LINGUAS" - else - desiredlanguages="$ALL_LINGUAS" - fi - for desiredlang in $desiredlanguages; do - # Use the presentlang catalog if desiredlang is - # a. equal to presentlang, or - # b. a variant of presentlang (because in this case, - # presentlang can be used as a fallback for messages - # which are not translated in the desiredlang catalog). - case "$desiredlang" in - "$presentlang"*) useit=yes;; - esac - done - if test $useit = yes; then - INST_LINGUAS="$INST_LINGUAS $presentlang" - fi - done - fi - CATALOGS= - if test -n "$INST_LINGUAS"; then - for lang in $INST_LINGUAS; do - CATALOGS="$CATALOGS $lang.gmo" - done - fi - test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" - sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" - for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do - if test -f "$f"; then - case "$f" in - *.orig | *.bak | *~) ;; - *) cat "$f" >> "$ac_dir/Makefile" ;; - esac - fi - done - fi - ;; - esac - done]], - [# Capture the value of obsolete ALL_LINGUAS because we need it to compute - # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it - # from automake < 1.5. - eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' - # Capture the value of LINGUAS because we need it to compute CATALOGS. - LINGUAS="${LINGUAS-%UNSET%}" - ]) -]) - -dnl Postprocesses a Makefile in a directory containing PO files. -AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], -[ - # When this code is run, in config.status, two variables have already been - # set: - # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, - # - LINGUAS is the value of the environment variable LINGUAS at configure - # time. - -changequote(,)dnl - # Adjust a relative srcdir. - ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` - ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` - ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` - # In autoconf-2.13 it is called $ac_given_srcdir. - # In autoconf-2.50 it is called $srcdir. - test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" - case "$ac_given_srcdir" in - .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; - /*) top_srcdir="$ac_given_srcdir" ;; - *) top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - # Find a way to echo strings without interpreting backslash. - if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then - gt_echo='echo' - else - if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then - gt_echo='printf %s\n' - else - echo_func () { - cat < "$ac_file.tmp" - tab=`printf '\t'` - if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then - # Add dependencies that cannot be formulated as a simple suffix rule. - for lang in $ALL_LINGUAS; do - frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` - cat >> "$ac_file.tmp" < /dev/null; then - # Add dependencies that cannot be formulated as a simple suffix rule. - for lang in $ALL_LINGUAS; do - frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` - cat >> "$ac_file.tmp" <> "$ac_file.tmp" <, 1996. - -AC_PREREQ([2.50]) - -# Search path for a program which passes the given test. - -dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, -dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) -AC_DEFUN([AM_PATH_PROG_WITH_TEST], -[ -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which - # contains only /bin. Note that ksh looks also at the FPATH variable, - # so we have to set that as well for the test. - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ - && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ - || PATH_SEPARATOR=';' - } -fi - -# Find out how to test for executable files. Don't use a zero-byte file, -# as systems may use methods other than mode bits to determine executability. -cat >conf$$.file <<_ASEOF -#! /bin/sh -exit 0 -_ASEOF -chmod +x conf$$.file -if test -x conf$$.file >/dev/null 2>&1; then - ac_executable_p="test -x" -else - ac_executable_p="test -f" -fi -rm -f conf$$.file - -# Extract the first word of "$2", so it can be a program name with args. -set dummy $2; ac_word=[$]2 -AC_MSG_CHECKING([for $ac_word]) -AC_CACHE_VAL([ac_cv_path_$1], -[case "[$]$1" in - [[\\/]]* | ?:[[\\/]]*) - ac_cv_path_$1="[$]$1" # Let the user override the test with a path. - ;; - *) - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in ifelse([$5], , $PATH, [$5]); do - IFS="$ac_save_IFS" - test -z "$ac_dir" && ac_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then - echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD - if [$3]; then - ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" - break 2 - fi - fi - done - done - IFS="$ac_save_IFS" -dnl If no 4th arg is given, leave the cache variable unset, -dnl so AC_PATH_PROGS will keep looking. -ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" -])dnl - ;; -esac])dnl -$1="$ac_cv_path_$1" -if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then - AC_MSG_RESULT([$][$1]) -else - AC_MSG_RESULT([no]) -fi -AC_SUBST([$1])dnl -]) diff --git a/m4/yelp.m4 b/m4/yelp.m4 deleted file mode 100644 index 709c48e..0000000 --- a/m4/yelp.m4 +++ /dev/null @@ -1,219 +0,0 @@ -AC_DEFUN([YELP_HELP_INIT], -[ -AC_REQUIRE([AC_PROG_LN_S]) -m4_pattern_allow([AM_V_at]) -m4_pattern_allow([AM_V_GEN]) -m4_pattern_allow([AM_DEFAULT_VERBOSITY]) - -YELP_LC_MEDIA_LINKS=true -YELP_LC_DIST=true - -for yelpopt in [$1]; do - case $yelpopt in - lc-media-links) YELP_LC_MEDIA_LINKS=true ;; - no-lc-media-links) YELP_LC_MEDIA_LINKS= ;; - lc-dist) YELP_LC_DIST=true ;; - no-lc-dist) YELP_LC_DIST= ;; - *) AC_MSG_ERROR([Unrecognized [YELP_HELP_INIT] option $yelpopt"]) ;; - esac -done; -AC_SUBST([YELP_LC_MEDIA_LINKS]) -AC_SUBST([YELP_LC_DIST]) - -AC_ARG_WITH([help-dir], - AS_HELP_STRING([--with-help-dir=DIR], - [path where help files are installed]),, - [with_help_dir='${datadir}/help']) -HELP_DIR="$with_help_dir" -AC_SUBST(HELP_DIR) - -AC_ARG_VAR([ITSTOOL], [Path to the `itstool` command]) -AC_CHECK_PROG([ITSTOOL], [itstool], [itstool]) -if test x"$ITSTOOL" = x; then - AC_MSG_ERROR([itstool not found]) -fi - -AC_ARG_VAR([XMLLINT], [Path to the `xmllint` command]) -AC_CHECK_PROG([XMLLINT], [xmllint], [xmllint]) -if test x"$XMLLINT" = x; then - AC_MSG_ERROR([xmllint not found]) -fi - -YELP_HELP_RULES=' -HELP_ID ?= -HELP_POT ?= -HELP_FILES ?= -HELP_EXTRA ?= -HELP_MEDIA ?= -HELP_LINGUAS ?= - -_HELP_LINGUAS = $(if $(filter environment,$(origin LINGUAS)),$(filter $(LINGUAS),$(HELP_LINGUAS)),$(HELP_LINGUAS)) -_HELP_POTFILE = $(if $(HELP_POT),$(HELP_POT),$(if $(HELP_ID),$(HELP_ID).pot)) -_HELP_POFILES = $(if $(HELP_ID),$(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).po)) -_HELP_MOFILES = $(patsubst %.po,%.mo,$(_HELP_POFILES)) -_HELP_C_FILES = $(foreach f,$(HELP_FILES),C/$(f)) -_HELP_C_EXTRA = $(foreach f,$(HELP_EXTRA),C/$(f)) -_HELP_C_MEDIA = $(foreach f,$(HELP_MEDIA),C/$(f)) -_HELP_LC_FILES = $(foreach lc,$(_HELP_LINGUAS),$(foreach f,$(HELP_FILES),$(lc)/$(f))) -_HELP_LC_STAMPS = $(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).stamp) - -_HELP_DEFAULT_V = $(if $(AM_DEFAULT_VERBOSITY),$(AM_DEFAULT_VERBOSITY),1) -_HELP_V = $(if $(V),$(V),$(_HELP_DEFAULT_V)) -_HELP_LC_VERBOSE = $(_HELP_LC_VERBOSE_$(_HELP_V)) -_HELP_LC_VERBOSE_ = $(_HELP_LC_VERBOSE_$(_HELP_DEFAULT_V)) -_HELP_LC_VERBOSE_0 = @echo " GEN "$(dir [$]@); - -all: $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) $(_HELP_LC_FILES) $(_HELP_POFILES) - -.PHONY: pot -pot: $(_HELP_POTFILE) -$(_HELP_POTFILE): $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) - $(AM_V_GEN)if test -d "C"; then d=; else d="$(srcdir)/"; fi; \ - $(ITSTOOL) -o "[$]@" $(foreach f,$(_HELP_C_FILES),"$${d}$(f)") - -.PHONY: repo -repo: $(_HELP_POTFILE) - $(AM_V_at)for po in $(_HELP_POFILES); do \ - if test "x[$](_HELP_V)" = "x0"; then echo " GEN $${po}"; fi; \ - msgmerge -q -o "$${po}" "$${po}" "$(_HELP_POTFILE)"; \ - done - -$(_HELP_POFILES): - $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi - $(AM_V_at)if test ! -f "[$]@" -a -f "$(srcdir)/[$]@"; then cp "$(srcdir)/[$]@" "[$]@"; fi - $(AM_V_GEN)if ! test -f "[$]@"; then \ - (cd "$(dir [$]@)" && \ - $(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \ - mv "$(notdir [$]@).tmp" "$(notdir [$]@)"); \ - else \ - (cd "$(dir [$]@)" && \ - $(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \ - msgmerge -o "$(notdir [$]@)" "$(notdir [$]@)" "$(notdir [$]@).tmp" && \ - rm "$(notdir [$]@).tmp"); \ - fi - -$(_HELP_MOFILES): %.mo: %.po - $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi - $(AM_V_GEN)msgfmt -o "[$]@" "$<" - -$(_HELP_LC_FILES): $(_HELP_LINGUAS) -$(_HELP_LINGUAS): $(_HELP_LC_STAMPS) -$(_HELP_LC_STAMPS): %.stamp: %.mo -$(_HELP_LC_STAMPS): $(_HELP_C_FILES) $(_HELP_C_EXTRA) - $(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi - $(_HELP_LC_VERBOSE)if test -d "C"; then d="../"; else d="$(abs_srcdir)/"; fi; \ - mo="$(dir [$]@)$(patsubst %/$(notdir [$]@),%,[$]@).mo"; \ - if test -f "$${mo}"; then mo="../$${mo}"; else mo="$(abs_srcdir)/$${mo}"; fi; \ - (cd "$(dir [$]@)" && $(ITSTOOL) -m "$${mo}" $(foreach f,$(_HELP_C_FILES),$${d}/$(f))) && \ - touch "[$]@" - -.PHONY: clean-help -mostlyclean-am: $(if $(HELP_ID),clean-help) -clean-help: - rm -f $(_HELP_LC_FILES) $(_HELP_LC_STAMPS) $(_HELP_MOFILES) - -EXTRA_DIST ?= -EXTRA_DIST += $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) -EXTRA_DIST += $(if $(YELP_LC_DIST),$(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).stamp)) -EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).po) -EXTRA_DIST += $(foreach f,$(HELP_MEDIA),$(foreach lc,$(HELP_LINGUAS),$(wildcard $(lc)/$(f)))) - -distdir: distdir-help-files -distdir-help-files: $(_HELP_LC_FILES) - @for lc in C $(if $(YELP_LC_DIST),$(HELP_LINGUAS)) ; do \ - $(MKDIR_P) "$(distdir)/$$lc"; \ - for file in $(HELP_FILES); do \ - if test -f "$$lc/$$file"; then d=./; else d=$(srcdir)/; fi; \ - cp -p "$$d$$lc/$$file" "$(distdir)/$$lc/" || exit 1; \ - done; \ - done; \ - -.PHONY: check-help -check: check-help -check-help: - for lc in C $(_HELP_LINGUAS); do \ - if test -d "$$lc"; \ - then d=; \ - xmlpath="$$lc"; \ - else \ - d="$(srcdir)/"; \ - xmlpath="$$lc:$(srcdir)/$$lc"; \ - fi; \ - for page in $(HELP_FILES); do \ - echo "$(XMLLINT) --noout --noent --path $$xmlpath --xinclude $$d$$lc/$$page"; \ - $(XMLLINT) --noout --noent --path "$$xmlpath" --xinclude "$$d$$lc/$$page"; \ - done; \ - done - - -.PHONY: install-help -install-data-am: $(if $(HELP_ID),install-help) -install-help: $(_HELP_LC_FILES) - @for lc in C $(_HELP_LINGUAS); do \ - $(mkinstalldirs) "$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)" || exit 1; \ - done - @for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \ - if test -f "$$lc/$$f"; then d=; else d="$(srcdir)/"; fi; \ - helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ - if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \ - echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir`basename $$f`"; \ - $(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir`basename $$f`" || exit 1; \ - done; done - @for f in $(_HELP_C_EXTRA); do \ - lc=`dirname "$$f"`; lc=`basename "$$lc"`; \ - if test -f "$$f"; then d=; else d="$(srcdir)/"; fi; \ - helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ - if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \ - echo "$(INSTALL_DATA) $$d$$f $$helpdir`basename $$f`"; \ - $(INSTALL_DATA) "$$d$$f" "$$helpdir`basename $$f`" || exit 1; \ - done - @for f in $(HELP_MEDIA); do \ - for lc in C $(_HELP_LINGUAS); do \ - if test -f "$$lc$$f"; then d=; else d="$(srcdir)/"; fi; \ - helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ - mdir=`dirname "$$f"`; \ - if test "x$mdir" = "x."; then mdir=""; fi; \ - if ! test -d "$$helpdir$$mdir"; then $(mkinstalldirs) "$$helpdir$$mdir"; fi; \ - if test -f "$$d$$lc/$$f"; then \ - echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir$$f"; \ - $(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir$$f" || exit 1; \ - elif test "x$$lc" != "xC"; then \ - if test "x$(YELP_LC_MEDIA_LINKS)" != "x"; then \ - echo "$(LN_S) -f $(HELP_DIR)/C/$(HELP_ID)/$$f $$helpdir$$f"; \ - dname="$$f"; \ - pars="../"; \ - while test "$$dname" != "." -a "$$dname" != "/"; do \ - pars="../$$pars"; \ - dname=$$(dirname "$$dname"); \ - done; \ - $(LN_S) -f $$pars"C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \ - fi; \ - fi; \ - done; \ - done - -.PHONY: uninstall-help -uninstall-am: $(if $(HELP_ID),uninstall-help) -uninstall-help: - for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \ - helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ - echo "rm -f $$helpdir`basename $$f`"; \ - rm -f "$$helpdir`basename $$f`"; \ - done; done - @for f in $(_HELP_C_EXTRA); do \ - lc=`dirname "$$f"`; lc=`basename "$$lc"`; \ - helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ - echo "rm -f $$helpdir`basename $$f`"; \ - rm -f "$$helpdir`basename $$f`"; \ - done - @for f in $(HELP_MEDIA); do \ - for lc in C $(_HELP_LINGUAS); do \ - helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ - echo "rm -f $$helpdir$$f"; \ - rm -f "$$helpdir$$f"; \ - done; \ - done; -' -AC_SUBST([YELP_HELP_RULES]) -m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([YELP_HELP_RULES])]) -]) diff --git a/meson.build b/meson.build index c3d8468..f75ad49 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,6 @@ -project('Shotwell', ['vala', 'c'], - version : '0.28.4', +project('shotwell', ['vala', 'c'], + version : '0.30.1', + meson_version : '>= 0.43.0', default_options : ['buildtype=debugoptimized']) gnome = import('gnome') @@ -35,7 +36,7 @@ if gitver.returncode() == 0 add_global_arguments(['--define=_GITVERSION'], language : 'vala') endif -gtk = dependency('gtk+-3.0', version : '>= 3.18') +gtk = dependency('gtk+-3.0', version : '>= 3.22') gio = dependency('gio-2.0', version: '>= 2.40') gmodule = dependency('gmodule-2.0', version: '>= 2.40') gio_unix = dependency('gio-unix-2.0', version: '>= 2.40') @@ -44,20 +45,20 @@ webkit = dependency('webkit2gtk-4.0', version: '>= 2.4') soup = dependency('libsoup-2.4') json_glib = dependency('json-glib-1.0') xml = dependency('libxml-2.0') -gdk = dependency('gdk-3.0', version : '>= 3.18') +gdk = dependency('gdk-3.0', version : '>= 3.22') gdk_pixbuf = dependency('gdk-pixbuf-2.0') sqlite = dependency('sqlite3', version : '>= 3.5.9') gstreamer = dependency('gstreamer-1.0', version : '>= 1.0') gstreamer_pbu = dependency('gstreamer-pbutils-1.0', version : '>= 1.0') gphoto2 = dependency('libgphoto2', version : '>= 2.5.0') -gudev = dependency('gudev-1.0', version : '>= 145') +gudev = dependency('gudev-1.0', version : '>= 145', required: false) gexiv2 = dependency('gexiv2', version: '>= 0.10.4') libraw = dependency('libraw', version : '>= 0.13.2') libexif = dependency('libexif', version : '>= 0.6.16') unity = dependency('unity', required : false) unity_available = false -if unity.found() and get_option('enable-unity-support') +if unity.found() and get_option('unity-support') unity_available = true add_global_arguments(['--define=UNITY_SUPPORT'], language : 'vala') endif @@ -77,8 +78,17 @@ foreach measure : get_option('measure').split(',') language : 'vala') endforeach -if get_option('disable-dupe-detection') - add_global_arguments(['--define=NO_DUPE_DETECTION'], language : vala) +if not get_option('dupe-detection') + add_global_arguments(['--define=NO_DUPE_DETECTION'], language : 'vala') +endif + +if get_option('udev') and gudev.found() + add_global_arguments(['--define=HAVE_UDEV'], language : 'vala') +endif + +if get_option('face-detection') + add_global_arguments(['--define=ENABLE_FACES'], language : 'vala') + subdir('facedetect') endif json_glib = dependency('json-glib-1.0') @@ -100,8 +110,10 @@ subdir('help') subdir('misc') subdir('thumbnailer') subdir('settings-migrator') +subdir('test') subdir('app-icons') +meson.add_install_script('build-aux/meson/postinstall.py') if get_option('install-apport-hook') subdir('apport') endif diff --git a/meson_options.txt b/meson_options.txt index 0bcab8b..30e3f3b 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,7 +1,9 @@ -option('enable-unity-support', type: 'boolean', value : 'false', description: 'Enable Ubuntu Unity support') -option('publishers', type: 'string', value : 'facebook,flickr,picasa,piwigo,youtube,gallery3,tumblr', description: 'The list of publishing plugins to build') -option('enable-extra-plugins', type : 'boolean', value : 'true', description: 'Enable building and installation of extra publishing plugins') +option('unity-support', type: 'boolean', value : 'false', description: 'Enable Ubuntu Unity support') +option('publishers', type: 'string', value : 'flickr,picasa,piwigo,youtube,gallery3,tumblr', description: 'The list of publishing plugins to build') +option('extra-plugins', type : 'boolean', value : 'true', description: 'Enable building and installation of extra publishing plugins') option('trace', type: 'string', value : '', description: 'Enable various trace options (available: dtors, import, md5, metadata-writer, monitoring, pixbuf-cache, reflow, reflow-items)') option('measure', type: 'string', value : '', description : 'Enable various timing measurements(available : enhance, import, pipeline, view-filtering, thumbnail-cache)') -option('disable-dupe-detection', type: 'boolean', value : 'false', description: 'Disable duplicate checks') +option('dupe-detection', type: 'boolean', value : 'true', description: 'Disable duplicate checks') +option('udev', type: 'boolean', value : 'true', description: 'Enable or disable udev support') option('install-apport-hook', type : 'boolean', value : 'true', description: 'Enable Ubuntu apport hook') +option('face-detection', type:'boolean', value:false) diff --git a/misc/Makefile.am b/misc/Makefile.am deleted file mode 100644 index 803697d..0000000 --- a/misc/Makefile.am +++ /dev/null @@ -1,29 +0,0 @@ -gsettings_SCHEMAS = \ - org.yorba.shotwell.gschema.xml \ - org.yorba.shotwell-extras.gschema.xml - -appstream_in_files = $(srcdir)/shotwell.appdata.xml.in -appstream_XML = \ - shotwell.appdata.xml - -desktopdir = $(datadir)/applications -desktop_DATA = shotwell.desktop shotwell-viewer.desktop - -$(appstream_XML) : $(appstream_in_files) - $(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@ - -%.desktop : %.desktop.in - $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ - -@GSETTINGS_RULES@ -@APPSTREAM_XML_RULES@ - -CLEANFILES = $(appstream_XML) $(desktop_DATA) $(desktop_in_files) - -dist_noinst_DATA = \ - $(srcdir)/shotwell.desktop.in \ - $(srcdir)/shotwell-viewer.desktop.in \ - $(gsettings_SCHEMAS) \ - $(appstream_in_files) - --include $(top_srcdir)/git.mk diff --git a/misc/Makefile.in b/misc/Makefile.in deleted file mode 100644 index 11e02ae..0000000 --- a/misc/Makefile.in +++ /dev/null @@ -1,592 +0,0 @@ -# Makefile.in generated by automake 1.15.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2017 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -am__is_gnu_make = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = misc -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/appstream-xml.m4 \ - $(top_srcdir)/m4/ax_generate_changelog.m4 \ - $(top_srcdir)/m4/ax_is_release.m4 \ - $(top_srcdir)/m4/ax_require_defined.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gsettings.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/yelp.m4 $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(dist_noinst_DATA) \ - $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -SOURCES = -DIST_SOURCES = -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -am__installdirs = "$(DESTDIR)$(desktopdir)" -DATA = $(desktop_DATA) $(dist_noinst_DATA) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -API_VERSION = @API_VERSION@ -APPSTREAM_UTIL = @APPSTREAM_UTIL@ -AR = @AR@ -AUTHENTICATOR_CFLAGS = @AUTHENTICATOR_CFLAGS@ -AUTHENTICATOR_LIBS = @AUTHENTICATOR_LIBS@ -AUTHENTICATOR_PACKAGES = @AUTHENTICATOR_PACKAGES@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GIT = @GIT@ -GITVER = @GITVER@ -GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -HAVE_EXTRA_PLUGINS = @HAVE_EXTRA_PLUGINS@ -HAVE_UNITY = @HAVE_UNITY@ -HELP_DIR = @HELP_DIR@ -IMPORT_CFLAGS = @IMPORT_CFLAGS@ -IMPORT_LIBS = @IMPORT_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -ITSTOOL = @ITSTOOL@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAJOR_VERSION = @MAJOR_VERSION@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MICRO_VERSION = @MICRO_VERSION@ -MINOR_VERSION = @MINOR_VERSION@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -PLUGIN_CFLAGS = @PLUGIN_CFLAGS@ -PLUGIN_LIBS = @PLUGIN_LIBS@ -POSUB = @POSUB@ -PUBLISHER_VALAFLAGS = @PUBLISHER_VALAFLAGS@ -PUBLISHING_CFLAGS = @PUBLISHING_CFLAGS@ -PUBLISHING_LIBS = @PUBLISHING_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SHOTWELL_CFLAGS = @SHOTWELL_CFLAGS@ -SHOTWELL_LIBS = @SHOTWELL_LIBS@ -STRIP = @STRIP@ -THUMBNAILER_CFLAGS = @THUMBNAILER_CFLAGS@ -THUMBNAILER_LIBS = @THUMBNAILER_LIBS@ -TRANSITIONS_CFLAGS = @TRANSITIONS_CFLAGS@ -TRANSITIONS_LIBS = @TRANSITIONS_LIBS@ -UNITY_CFLAGS = @UNITY_CFLAGS@ -UNITY_LIBS = @UNITY_LIBS@ -UNITY_VALAFLAGS = @UNITY_VALAFLAGS@ -USE_NLS = @USE_NLS@ -VALAC = @VALAC@ -VALAFLAGS = @VALAFLAGS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMLLINT = @XMLLINT@ -YELP_LC_DIST = @YELP_LC_DIST@ -YELP_LC_MEDIA_LINKS = @YELP_LC_MEDIA_LINKS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -appstreamxmldir = @appstreamxmldir@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -gsettingsschemadir = @gsettingsschemadir@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -runstatedir = @runstatedir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -gsettings_SCHEMAS = \ - org.yorba.shotwell.gschema.xml \ - org.yorba.shotwell-extras.gschema.xml - -appstream_in_files = $(srcdir)/shotwell.appdata.xml.in -appstream_XML = \ - shotwell.appdata.xml - -desktopdir = $(datadir)/applications -desktop_DATA = shotwell.desktop shotwell-viewer.desktop -CLEANFILES = $(appstream_XML) $(desktop_DATA) $(desktop_in_files) -dist_noinst_DATA = \ - $(srcdir)/shotwell.desktop.in \ - $(srcdir)/shotwell-viewer.desktop.in \ - $(gsettings_SCHEMAS) \ - $(appstream_in_files) - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign misc/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign misc/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-desktopDATA: $(desktop_DATA) - @$(NORMAL_INSTALL) - @list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(desktopdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(desktopdir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(desktopdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(desktopdir)" || exit $$?; \ - done - -uninstall-desktopDATA: - @$(NORMAL_UNINSTALL) - @list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(desktopdir)'; $(am__uninstall_files_from_dir) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(DATA) -installdirs: - for dir in "$(DESTDIR)$(desktopdir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-desktopDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-desktopDATA - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am \ - install-desktopDATA install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ - uninstall-am uninstall-desktopDATA - -.PRECIOUS: Makefile - - -$(appstream_XML) : $(appstream_in_files) - $(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@ - -%.desktop : %.desktop.in - $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ - -@GSETTINGS_RULES@ -@APPSTREAM_XML_RULES@ - --include $(top_srcdir)/git.mk - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/misc/org.gnome.Shotwell.css b/misc/org.gnome.Shotwell.css new file mode 100644 index 0000000..38192c5 --- /dev/null +++ b/misc/org.gnome.Shotwell.css @@ -0,0 +1,3 @@ +textview.shotwell-static text { + background-color: @theme_unfocused_bg_color; +} diff --git a/misc/org.yorba.shotwell.gschema.xml b/misc/org.yorba.shotwell.gschema.xml index 2bd9003..bc03007 100644 --- a/misc/org.yorba.shotwell.gschema.xml +++ b/misc/org.yorba.shotwell.gschema.xml @@ -156,10 +156,10 @@ Pin toolbar in fullscreen, or not.
- - '#444' - background color - A grayscale color for use as the background color. + + true + prefer GTK+’s dark theme + Whether to use the dark theme of GTK+ for Shotwell or not. diff --git a/misc/shotwell.appdata.xml.in b/misc/shotwell.appdata.xml.in index 15a8e92..4e7b38c 100644 --- a/misc/shotwell.appdata.xml.in +++ b/misc/shotwell.appdata.xml.in @@ -24,25 +24,26 @@

https://wiki.gnome.org/Apps/Shotwell + - http://shotwell-project.org/appdata/shotwell/harbor.png + https://gitlab.gnome.org/GNOME/shotwell/raw/master/data/appdata/harbor.png - http://shotwell-project.org/appdata/shotwell/import-300x155.png + https://gitlab.gnome.org/GNOME/shotwell/raw/master/data/appdata/import.png - http://shotwell-project.org/appdata/shotwell/organize-300x197.png + https://gitlab.gnome.org/GNOME/shotwell/raw/master/data/appdata/organize.png - http://shotwell-project.org/appdata/shotwell/edit-300x247.png + https://gitlab.gnome.org/GNOME/shotwell/raw/master/data/appdata/edit.png - http://shotwell-project.org/appdata/shotwell/publish-300x213.png + https://gitlab.gnome.org/GNOME/shotwell/raw/master/data/appdata/publish.png @@ -51,7 +52,7 @@ The Shotwell developers - https://bugzilla.gnome.org/enter_bug.cgi?product=shotwell + https://gitlab.gnome.org/GNOME/shotwell/issues http://www.gnome.org/friends/ diff --git a/misc/shotwell.convert b/misc/shotwell.convert new file mode 100644 index 0000000..2f972c1 --- /dev/null +++ b/misc/shotwell.convert @@ -0,0 +1,105 @@ +[org.yorba.shotwell.preferences.ui] +background-color = /apps/shotwell/preferences/ui/background_color +display-basic-properties = /apps/shotwell/preferences/ui/display_basic_properties +display-extended-properties = /apps/shotwell/preferences/ui/display_extended_properties +display-photo-ratings = /apps/shotwell/preferences/ui/display_photo_ratings +display-photo-tags = /apps/shotwell/preferences/ui/display_photo_tags +display-photo-titles = /apps/shotwell/preferences/ui/display_photo_titles +event-photos-sort-ascending = /apps/shotwell/preferences/ui/event_photos_sort_ascending +event-photos-sort-by = /apps/shotwell/preferences/ui/event_photos_sort_by +events-sort-ascending = /apps/shotwell/preferences/ui/events_sort_ascending +hide-photos-already-imported = /apps/shotwell/preferences/ui/hide_photos_already_imported +keep-relativity = /apps/shotwell/preferences/ui/keep_relativity +library-photos-sort-ascending = /apps/shotwell/preferences/ui/library_photos_sort_ascending +library-photos-sort-by = /apps/shotwell/preferences/ui/library_photos_sort_by +modify-originals = /apps/shotwell/preferences/ui/modify_originals +photo-thumbnail-scale = /apps/shotwell/preferences/ui/photo_thumbnail_scale +show-welcome-dialog = /apps/shotwell/preferences/ui/show_welcome_dialog +sidebar-position = /apps/shotwell/preferences/ui/pane_position +use-24-hour-time = /apps/shotwell/preferences/ui/twentyfour_hr_time + +[org.yorba.shotwell.preferences.slideshow] +delay = /apps/shotwell/preferences/slideshow/delay +transition-delay = /apps/shotwell/preferences/slideshow_transition/delay +transition-effect-id = /apps/shotwell/preferences/slideshow_transition/name +show-title = /apps/shotwell/preferences/slideshow/show-title + +[org.yorba.shotwell.preferences.window] +direct-height = /apps/shotwell/preferences/window/direct_height +direct-maximize = /apps/shotwell/preferences/window/direct_maximize +direct-width = /apps/shotwell/preferences/window/direct_width +library-height = /apps/shotwell/preferences/window/library_height +library-maximize = /apps/shotwell/preferences/window/library_maximize +library-width = /apps/shotwell/preferences/window/library_width + +[org.yorba.shotwell.preferences.files] +auto-import = /apps/shotwell/preferences/files/auto_import +commit-metadata = /apps/shotwell/preferences/files/commit_metadata +directory-pattern = /apps/shotwell/preferences/files/directory_pattern +directory-pattern-custom = /apps/shotwell/preferences/files/directory_pattern_custom +import-dir = /apps/shotwell/preferences/files/import_dir +use-lowercase-filenames = /apps/shotwell/preferences/files/use_lowercase_filenames +raw-developer-default = /apps/shotwell/preferences/files/raw_developer_default + +[org.yorba.shotwell.preferences.editing] +external-photo-editor = /apps/shotwell/preferences/editing/external_photo_editor +external-raw-editor = /apps/shotwell/preferences/editing/external_raw_editor + +[org.yorba.shotwell.video] +interpreter-state-cookie = /apps/shotwell/video/interpreter_state_cookie + +[org.yorba.shotwell.printing] +content-height = /apps/shotwell/printing/content_height +content-layout = /apps/shotwell/printing/content_layout +content-ppi = /apps/shotwell/printing/content_ppi +content-units = /apps/shotwell/printing/content_units +content-width = /apps/shotwell/printing/content_width +images-per-page = /apps/shotwell/printing/images_per_page_selection +match-aspect-ratio = /apps/shotwell/printing/match_aspect_ratio +print-titles = /apps/shotwell/printing/print_titles +size-selection = /apps/shotwell/printing/size_selection +titles-font = /apps/shotwell/printing/print_titles_font + +[org.yorba.shotwell.sharing] +default-service = /apps/shotwell/sharing/default_service +last-used-service = /apps/shotwell/sharing/last_used_service + +[org.yorba.shotwell.plugins.enable-state] +publishing-facebook = /apps/shotwell/plugins/org.yorba.shotwell.publishing.facebook/enabled +publishing-flickr = /apps/shotwell/plugins/org.yorba.shotwell.publishing.flickr/enabled +publishing-picasa = /apps/shotwell/plugins/org.yorba.shotwell.publishing.picasa/enabled +publishing-piwigo = /apps/shotwell/plugins/org.yorba.shotwell.publishing.piwigo/enabled +publishing-yandex-fotki = /apps/shotwell/plugins/org.yorba.shotwell.publishing.yandex-fotki/enabled +publishing-youtube = /apps/shotwell/plugins/org.yorba.shotwell.publishing.youtube/enabled +transitions-crumble = /apps/shotwell/plugins/org.yorba.shotwell.transitions.crumble/enabled +transitions-fade = /apps/shotwell/plugins/org.yorba.shotwell.transitions.fade/enabled +transitions-slide = /apps/shotwell/plugins/org.yorba.shotwell.transitions.slide/enabled + +[org.yorba.shotwell.sharing.facebook] +uid = /apps/shotwell/sharing/facebook/uid +user-name = /apps/shotwell/sharing/facebook/user_name +default-size = /apps/shotwell/sharing/facebook/default_size + +[org.yorba.shotwell.sharing.flickr] +default-size = /apps/shotwell/sharing/flickr/default_size +visibility = /apps/shotwell/sharing/flickr/visibility + +[org.yorba.shotwell.sharing.picasa] +default-size = /apps/shotwell/sharing/picasa/default_size +last-album = /apps/shotwell/sharing/picasa/last_album + +[org.yorba.shotwell.sharing.org-yorba-shotwell-publishing-piwigo] +url = /apps/shotwell/sharing/org.yorba.shotwell.publishing.piwigo/url +username = /apps/shotwell/sharing/org.yorba.shotwell.publishing.piwigo/username +password = /apps/shotwell/sharing/org.yorba.shotwell.publishing.piwigo/password +remember-password = /apps/shotwell/sharing/org.yorba.shotwell.publishing.piwigo/remember-password +last-category = /apps/shotwell/sharing/org.yorba.shotwell.publishing.piwigo/last-category +last-permission-level = /apps/shotwell/sharing/org.yorba.shotwell.publishing.piwigo/last-permission-level + +[org.yorba.shotwell.sharing.org-yorba-shotwell-publishing-yandex-fotki] +auth-token = /apps/shotwell/sharing/org.yorba.shotwell.publishing.yandex-fotki/auth_token + +[org.yorba.shotwell.sharing.youtube] +user-name = /apps/shotwell/sharing/youtube/user_name +auth-token = /apps/shotwell/sharing/youtube/auth_token + diff --git a/org.gnome.Shotwell.gresource.xml b/org.gnome.Shotwell.gresource.xml index ec04227..0520869 100644 --- a/org.gnome.Shotwell.gresource.xml +++ b/org.gnome.Shotwell.gresource.xml @@ -7,6 +7,7 @@ ui/direct.ui ui/events_directory.ui ui/event.ui + ui/faces.ui ui/fullscreen.ui ui/import_queue.ui ui/import.ui @@ -32,59 +33,35 @@ ui/textentrydialog.ui ui/trash.ui - icons/about-braunschweig.jpg - icons/all-rejected.png - icons/crop-pivot-reticle.png - icons/crop.svg - icons/faces-tool.png - icons/filter-flagged-disabled.png - icons/filter-flagged.png - icons/filter-photos-disabled.png - icons/filter-photos.png - icons/filter-raw-disabled.png - icons/filter-raw.png - icons/filter-videos-disabled.png - icons/filter-videos.png - icons/five-star-filter.svg - icons/five-stars.svg - icons/flag-page.png - icons/flag-trinket.png - icons/four-star-filter-plus.svg - icons/four-stars.svg - icons/generic-plugin.png - icons/image-adjust.svg - icons/import-all.png - icons/import.svg - icons/make-primary.svg - icons/many-faces.png - icons/merge.svg - icons/multiple-events.png - icons/multiple-tags.png - icons/no-event.png + icons/about-celle.jpg + icons/avatar-default-symbolic.svg + icons/image-missing.png + icons/crop-pivot-reticle-symbolic.svg + icons/events-merge-symbolic.svg + icons/filter-flagged-symbolic.svg + icons/filter-flagged-disabled-symbolic.svg + icons/filter-photos-symbolic.svg + icons/filter-photos-disabled-symbolic.svg + icons/filter-raw-symbolic.svg + icons/filter-raw-disabled-symbolic.svg + icons/filter-videos-disabled-symbolic.svg + icons/filter-videos-symbolic.svg + icons/image-crop-symbolic.svg + icons/image-auto-adjust-symbolic.svg + icons/image-adjust-color-symbolic.svg + icons/image-zoom-in-symbolic.svg + icons/image-zoom-out-symbolic.svg + icons/multiple-events-symbolic.svg + icons/multiple-tags-symbolic.svg + icons/no-event-symbolic.svg icons/noninterpretable-video.png - icons/one-event.png - icons/one-face.png - icons/one-star-filter-plus.svg - icons/one-star.svg - icons/one-tag.png - icons/pin-toolbar.svg - icons/publish.png - icons/redeye.png - icons/rejected.svg - icons/shotwell-16.png - icons/shotwell-auto-enhance.png - icons/shotwell.png + icons/one-event-symbolic.svg + icons/one-tag-symbolic.svg + icons/stock-eye-symbolic.svg icons/shotwell.svg icons/shotwell-street.jpg icons/slideshow-extension-point.png - icons/sprocket.png - icons/straighten.svg - icons/three-star-filter-plus.svg - icons/three-stars.svg - icons/two-star-filter-plus.svg - icons/two-stars.svg - icons/videos-page.png - icons/zoom-in.png - icons/zoom-out.png + icons/straighten-symbolic.svg + misc/org.gnome.Shotwell.css diff --git a/pipeline.am b/pipeline.am deleted file mode 100644 index 9f9969d..0000000 --- a/pipeline.am +++ /dev/null @@ -1,47 +0,0 @@ -src/shotwell-graphics-processor.vapi src/shotwell-graphics-processor.h: \ - src_libgraphics_processor_la_vala.stamp - -noinst_LTLIBRARIES += \ - src/libgraphics-processor.la - -src_libgraphics_processor_la_SOURCES = \ - src/ColorTransformation.vala \ - src/util/KeyValueMap.vala \ - src/_transformation.c - -src_libgraphics_processor_la_VALAFLAGS = \ - $(COMMON_VALAFLAGS) \ - --disable-assert \ - --pkg gio-2.0 \ - --pkg gdk-3.0 \ - --pkg gee-0.8 \ - --pkg gdk-pixbuf-2.0 \ - --vapi=src/shotwell-graphics-processor.vapi \ - --header=src/shotwell-graphics-processor.h - -dist_noinst_DATA += \ - src/shotwell-graphics-processor.vapi \ - src/shotwell-graphics-processor.h - -src_libgraphics_processor_la_CFLAGS = $(SHOTWELL_CFLAGS) $(COMMON_CFLAGS) -src_libgraphics_processor_la_CFLAGS += -DG_DISABLE_CAST_CHECKS - -noinst_PROGRAMS = \ - src/shotwell-graphics-processor - -src_shotwell_graphics_processor_SOURCES = \ - src/graphics-processor.vala \ - src/shotwell-graphics-processor.vapi - -src_shotwell_graphics_processor_VALAFLAGS = \ - $(COMMON_VALAFLAGS) \ - --pkg gio-2.0 \ - --pkg gdk-3.0 \ - --pkg gee-0.8 \ - --pkg gdk-pixbuf-2.0 - -src_shotwell_graphics_processor_CFLAGS = $(SHOTWELL_CFLAGS) $(COMMON_CFLAGS) - -src_shotwell_graphics_processor_LDADD = \ - src/libgraphics-processor.la \ - $(SHOTWELL_LIBS) diff --git a/plugins/authenticator/shotwell-authenticator.h b/plugins/authenticator/shotwell-authenticator.h deleted file mode 100644 index 969aca9..0000000 --- a/plugins/authenticator/shotwell-authenticator.h +++ /dev/null @@ -1,43 +0,0 @@ -/* shotwell-authenticator.h generated by valac 0.40.4, the Vala compiler, do not modify */ - - -#ifndef __PLUGINS_AUTHENTICATOR_SHOTWELL_AUTHENTICATOR_H__ -#define __PLUGINS_AUTHENTICATOR_SHOTWELL_AUTHENTICATOR_H__ - -#include -#include -#include "shotwell-plugin-dev-1.0.h" - -G_BEGIN_DECLS - - -#define PUBLISHING_AUTHENTICATOR_TYPE_FACTORY (publishing_authenticator_factory_get_type ()) -#define PUBLISHING_AUTHENTICATOR_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactory)) -#define PUBLISHING_AUTHENTICATOR_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactoryClass)) -#define PUBLISHING_AUTHENTICATOR_IS_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY)) -#define PUBLISHING_AUTHENTICATOR_IS_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY)) -#define PUBLISHING_AUTHENTICATOR_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactoryClass)) - -typedef struct _PublishingAuthenticatorFactory PublishingAuthenticatorFactory; -typedef struct _PublishingAuthenticatorFactoryClass PublishingAuthenticatorFactoryClass; -typedef struct _PublishingAuthenticatorFactoryPrivate PublishingAuthenticatorFactoryPrivate; - -struct _PublishingAuthenticatorFactory { - GObject parent_instance; - PublishingAuthenticatorFactoryPrivate * priv; -}; - -struct _PublishingAuthenticatorFactoryClass { - GObjectClass parent_class; -}; - - -GType publishing_authenticator_factory_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorFactory* publishing_authenticator_factory_get_instance (void); -PublishingAuthenticatorFactory* publishing_authenticator_factory_new (void); -PublishingAuthenticatorFactory* publishing_authenticator_factory_construct (GType object_type); - - -G_END_DECLS - -#endif diff --git a/plugins/authenticator/shotwell-authenticator.vapi b/plugins/authenticator/shotwell-authenticator.vapi deleted file mode 100644 index 7a1b202..0000000 --- a/plugins/authenticator/shotwell-authenticator.vapi +++ /dev/null @@ -1,23 +0,0 @@ -/* shotwell-authenticator.vapi generated by valac 0.40.4, do not modify. */ - -namespace Publishing { - namespace Authenticator { - namespace Shotwell { - namespace Facebook { - } - namespace Flickr { - } - namespace Google { - } - namespace OAuth1 { - } - namespace Tumblr { - } - } - [CCode (cheader_filename = "shotwell-authenticator.h")] - public class Factory : Spit.Publishing.AuthenticatorFactory, GLib.Object { - public Factory (); - public static Publishing.Authenticator.Factory get_instance (); - } - } -} diff --git a/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c b/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c deleted file mode 100644 index d1e2389..0000000 --- a/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c +++ /dev/null @@ -1,2419 +0,0 @@ -/* FacebookPublishingAuthenticator.c generated by valac 0.40.4, the Vala compiler - * generated from FacebookPublishingAuthenticator.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include - - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE (publishing_authenticator_shotwell_facebook_web_authentication_pane_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFacebookWebAuthenticationPane)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneClass)) - -typedef struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPane PublishingAuthenticatorShotwellFacebookWebAuthenticationPane; -typedef struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneClass PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneClass; -typedef struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPanePrivate PublishingAuthenticatorShotwellFacebookWebAuthenticationPanePrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_facebook_web_authentication_pane_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_NUM_PROPERTIES]; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP (publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOCALE_LOOKUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP, PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOCALE_LOOKUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP, PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_IS_LOCALE_LOOKUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_IS_LOCALE_LOOKUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOCALE_LOOKUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP, PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupClass)) - -typedef struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup; -typedef struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupClass PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupPrivate PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupPrivate; -#define _publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref0(var) ((var == NULL) ? NULL : (var = (publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -typedef struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneParamSpecLocaleLookup PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneParamSpecLocaleLookup; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOGIN_SUCCEEDED_SIGNAL, - PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOGIN_FAILED_SIGNAL, - PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_NUM_SIGNALS -}; -static guint publishing_authenticator_shotwell_facebook_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_NUM_SIGNALS] = {0}; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK (publishing_authenticator_shotwell_facebook_facebook_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebook)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebookClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebookClass)) - -typedef struct _PublishingAuthenticatorShotwellFacebookFacebook PublishingAuthenticatorShotwellFacebookFacebook; -typedef struct _PublishingAuthenticatorShotwellFacebookFacebookClass PublishingAuthenticatorShotwellFacebookFacebookClass; -typedef struct _PublishingAuthenticatorShotwellFacebookFacebookPrivate PublishingAuthenticatorShotwellFacebookFacebookPrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_facebook_facebook_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_NUM_PROPERTIES]; -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPane { - ShotwellPluginsCommonWebAuthenticationPane parent_instance; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPanePrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneClass { - ShotwellPluginsCommonWebAuthenticationPaneClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupPrivate * priv; - gchar* prefix; - gchar* translation; - gchar* exception_code; - gchar* exception_translation; - gchar* exception_code_2; - gchar* exception_translation_2; -}; - -struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupClass { - GTypeClass parent_class; - void (*finalize) (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup *self); -}; - -struct _PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneParamSpecLocaleLookup { - GParamSpec parent_instance; -}; - -struct _PublishingAuthenticatorShotwellFacebookFacebook { - GObject parent_instance; - PublishingAuthenticatorShotwellFacebookFacebookPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellFacebookFacebookClass { - GObjectClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellFacebookFacebookPrivate { - SpitPublishingPluginHost* host; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* web_auth_pane; - GHashTable* params; -}; - - -static gpointer publishing_authenticator_shotwell_facebook_web_authentication_pane_parent_class = NULL; -static gboolean publishing_authenticator_shotwell_facebook_web_authentication_pane_cache_dirty; -static gboolean publishing_authenticator_shotwell_facebook_web_authentication_pane_cache_dirty = FALSE; -static PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup** publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table; -static gint publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table_length1; -static PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup** publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table = NULL; -static gint publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table_length1 = 0; -static gint _publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table_size_ = 0; -static gpointer publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_facebook_facebook_parent_class = NULL; -static SpitPublishingAuthenticatorIface * publishing_authenticator_shotwell_facebook_facebook_spit_publishing_authenticator_parent_iface = NULL; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_APPLICATION_ID "1612018629063184" -GType publishing_authenticator_shotwell_facebook_web_authentication_pane_get_type (void) G_GNUC_CONST; -static gpointer publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref (gpointer instance); -static void publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref (gpointer instance); -static GParamSpec* publishing_authenticator_shotwell_facebook_web_authentication_pane_param_spec_locale_lookup (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void publishing_authenticator_shotwell_facebook_web_authentication_pane_value_set_locale_lookup (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void publishing_authenticator_shotwell_facebook_web_authentication_pane_value_take_locale_lookup (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer publishing_authenticator_shotwell_facebook_web_authentication_pane_value_get_locale_lookup (const GValue* value) G_GNUC_UNUSED; -static GType publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new (const gchar* prefix, - const gchar* translation, - const gchar* exception_code, - const gchar* exception_translation, - const gchar* exception_code_2, - const gchar* exception_translation_2); -static PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_construct (GType object_type, - const gchar* prefix, - const gchar* translation, - const gchar* exception_code, - const gchar* exception_translation, - const gchar* exception_code_2, - const gchar* exception_translation_2); -PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* publishing_authenticator_shotwell_facebook_web_authentication_pane_new (void); -PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* publishing_authenticator_shotwell_facebook_web_authentication_pane_construct (GType object_type); -static gchar* publishing_authenticator_shotwell_facebook_web_authentication_pane_get_login_url (void); -static gchar* publishing_authenticator_shotwell_facebook_web_authentication_pane_get_system_locale_as_facebook_locale (void); -static void publishing_authenticator_shotwell_facebook_web_authentication_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* base); -gboolean publishing_authenticator_shotwell_facebook_web_authentication_pane_is_cache_dirty (void); -static void publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_finalize (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * obj); -static void publishing_authenticator_shotwell_facebook_web_authentication_pane_finalize (GObject * obj); -GType publishing_authenticator_shotwell_facebook_facebook_get_type (void) G_GNUC_CONST; -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebookPrivate)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_SERVICE_WELCOME_MESSAGE _ ("You are not currently logged into Facebook.\n" \ -"\n" \ -"If you don’t yet have a Facebook account, you can create one during th" \ -"e login process. During login, Shotwell Connect may ask you for permis" \ -"sion to upload photos and publish to your feed. These permissions are " \ -"required for Shotwell Connect to function.") -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_RESTART_ERROR_MESSAGE _ ("You have already logged in and out of Facebook during this Shotwell se" \ -"ssion.\n" \ -"To continue publishing to Facebook, quit and restart Shotwell, then tr" \ -"y publishing again.") -PublishingAuthenticatorShotwellFacebookFacebook* publishing_authenticator_shotwell_facebook_facebook_new (SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellFacebookFacebook* publishing_authenticator_shotwell_facebook_facebook_construct (GType object_type, - SpitPublishingPluginHost* host); -static void _g_free0_ (gpointer var); -static void _g_variant_unref0_ (gpointer var); -static void publishing_authenticator_shotwell_facebook_facebook_real_authenticate (SpitPublishingAuthenticator* base); -static gboolean publishing_authenticator_shotwell_facebook_facebook_is_persistent_session_valid (PublishingAuthenticatorShotwellFacebookFacebook* self); -static gchar* publishing_authenticator_shotwell_facebook_facebook_get_persistent_access_token (PublishingAuthenticatorShotwellFacebookFacebook* self); -static void publishing_authenticator_shotwell_facebook_facebook_do_show_service_welcome_pane (PublishingAuthenticatorShotwellFacebookFacebook* self); -static gboolean publishing_authenticator_shotwell_facebook_facebook_real_can_logout (SpitPublishingAuthenticator* base); -static GHashTable* publishing_authenticator_shotwell_facebook_facebook_real_get_authentication_parameter (SpitPublishingAuthenticator* base); -void publishing_authenticator_shotwell_facebook_facebook_invalidate_persistent_session (PublishingAuthenticatorShotwellFacebookFacebook* self); -static void publishing_authenticator_shotwell_facebook_facebook_set_persistent_access_token (PublishingAuthenticatorShotwellFacebookFacebook* self, - const gchar* access_token); -static void publishing_authenticator_shotwell_facebook_facebook_real_logout (SpitPublishingAuthenticator* base); -static void publishing_authenticator_shotwell_facebook_facebook_real_refresh (SpitPublishingAuthenticator* base); -static void publishing_authenticator_shotwell_facebook_facebook_on_login_clicked (PublishingAuthenticatorShotwellFacebookFacebook* self); -static void _publishing_authenticator_shotwell_facebook_facebook_on_login_clicked_spit_publishing_login_callback (gpointer self); -static void publishing_authenticator_shotwell_facebook_facebook_do_hosted_web_authentication (PublishingAuthenticatorShotwellFacebookFacebook* self); -static void publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_succeeded (PublishingAuthenticatorShotwellFacebookFacebook* self, - const gchar* success_url); -static void _publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_succeeded_publishing_authenticator_shotwell_facebook_web_authentication_pane_login_succeeded (PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* _sender, - const gchar* success_url, - gpointer self); -static void publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_failed (PublishingAuthenticatorShotwellFacebookFacebook* self); -static void _publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_failed_publishing_authenticator_shotwell_facebook_web_authentication_pane_login_failed (PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* _sender, - gpointer self); -static void publishing_authenticator_shotwell_facebook_facebook_do_authenticate_session (PublishingAuthenticatorShotwellFacebookFacebook* self, - const gchar* good_login_uri); -static void publishing_authenticator_shotwell_facebook_facebook_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* -publishing_authenticator_shotwell_facebook_web_authentication_pane_construct (GType object_type) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPane * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_get_login_url (); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = _tmp0_; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = (PublishingAuthenticatorShotwellFacebookWebAuthenticationPane*) g_object_new (object_type, "login-uri", _tmp1_, NULL); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (_tmp1_); -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return self; -#line 238 "FacebookPublishingAuthenticator.c" -} - - -PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* -publishing_authenticator_shotwell_facebook_web_authentication_pane_new (void) -{ -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return publishing_authenticator_shotwell_facebook_web_authentication_pane_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE); -#line 247 "FacebookPublishingAuthenticator.c" -} - - -static gpointer -_publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref0 (gpointer self) -{ -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return self ? publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref (self) : NULL; -#line 256 "FacebookPublishingAuthenticator.c" -} - - -static gboolean -string_contains (const gchar* self, - const gchar* needle) -{ - gboolean result = FALSE; - gchar* _tmp0_; -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, FALSE); -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, FALSE); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr ((gchar*) self, (gchar*) needle); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_ != NULL; -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 276 "FacebookPublishingAuthenticator.c" -} - - -static gchar* -publishing_authenticator_shotwell_facebook_web_authentication_pane_get_system_locale_as_facebook_locale (void) -{ - gchar* result = NULL; - const gchar* raw_system_locale = NULL; - const gchar* _tmp0_; - gboolean _tmp1_ = FALSE; - const gchar* _tmp2_; - gchar* system_locale = NULL; - const gchar* _tmp5_; - gchar** _tmp6_; - gchar** _tmp7_; - gchar** _tmp8_; - gint _tmp8__length1; - const gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup** _tmp12_; - gint _tmp12__length1; - gchar* _tmp40_; -#line 93 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = setlocale (LC_ALL, ""); -#line 93 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - raw_system_locale = _tmp0_; -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = raw_system_locale; -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp2_ == NULL) { -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = TRUE; -#line 310 "FacebookPublishingAuthenticator.c" - } else { - const gchar* _tmp3_; -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = raw_system_locale; -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = g_strcmp0 (_tmp3_, "") == 0; -#line 317 "FacebookPublishingAuthenticator.c" - } -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp1_) { -#line 321 "FacebookPublishingAuthenticator.c" - gchar* _tmp4_; -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp4_ = g_strdup ("www"); -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp4_; -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 329 "FacebookPublishingAuthenticator.c" - } -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp5_ = raw_system_locale; -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp7_ = _tmp6_ = g_strsplit (_tmp5_, ".", 0); -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp8_ = _tmp7_; -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp8__length1 = _vala_array_length (_tmp6_); -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp9_ = _tmp8_[0]; -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp10_ = g_strdup (_tmp9_); -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp11_ = _tmp10_; -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp8_ = (_vala_array_free (_tmp8_, _tmp8__length1, (GDestroyNotify) g_free), NULL); -#line 97 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - system_locale = _tmp11_; -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp12_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table; -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp12__length1 = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table_length1; -#line 353 "FacebookPublishingAuthenticator.c" - { - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup** locale_lookup_collection = NULL; - gint locale_lookup_collection_length1 = 0; - gint _locale_lookup_collection_size_ = 0; - gint locale_lookup_it = 0; -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - locale_lookup_collection = _tmp12_; -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - locale_lookup_collection_length1 = _tmp12__length1; -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - for (locale_lookup_it = 0; locale_lookup_it < _tmp12__length1; locale_lookup_it = locale_lookup_it + 1) { -#line 365 "FacebookPublishingAuthenticator.c" - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp13_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* locale_lookup = NULL; -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp13_ = _publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref0 (locale_lookup_collection[locale_lookup_it]); -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - locale_lookup = _tmp13_; -#line 372 "FacebookPublishingAuthenticator.c" - { - const gchar* _tmp14_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp15_; - const gchar* _tmp16_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp17_; - const gchar* _tmp18_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp27_; - const gchar* _tmp28_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp37_; - const gchar* _tmp38_; - gchar* _tmp39_; -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp14_ = system_locale; -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp15_ = locale_lookup; -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp16_ = _tmp15_->prefix; -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (!g_str_has_prefix (_tmp14_, _tmp16_)) { -#line 101 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref0 (locale_lookup); -#line 101 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - continue; -#line 396 "FacebookPublishingAuthenticator.c" - } -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp17_ = locale_lookup; -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp18_ = _tmp17_->exception_code; -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp18_ != NULL) { -#line 404 "FacebookPublishingAuthenticator.c" - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp19_; - const gchar* _tmp20_; - const gchar* _tmp21_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp22_; - const gchar* _tmp23_; -#line 104 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp19_ = locale_lookup; -#line 104 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp20_ = _tmp19_->exception_translation; -#line 104 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _vala_assert (_tmp20_ != NULL, "locale_lookup.exception_translation != null"); -#line 106 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp21_ = system_locale; -#line 106 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp22_ = locale_lookup; -#line 106 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp23_ = _tmp22_->exception_code; -#line 106 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (string_contains (_tmp21_, _tmp23_)) { -#line 424 "FacebookPublishingAuthenticator.c" - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp24_; - const gchar* _tmp25_; - gchar* _tmp26_; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp24_ = locale_lookup; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp25_ = _tmp24_->exception_translation; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp26_ = g_strdup (_tmp25_); -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp26_; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref0 (locale_lookup); -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (system_locale); -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 442 "FacebookPublishingAuthenticator.c" - } - } -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp27_ = locale_lookup; -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp28_ = _tmp27_->exception_code_2; -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp28_ != NULL) { -#line 451 "FacebookPublishingAuthenticator.c" - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp29_; - const gchar* _tmp30_; - const gchar* _tmp31_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp32_; - const gchar* _tmp33_; -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp29_ = locale_lookup; -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp30_ = _tmp29_->exception_translation_2; -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _vala_assert (_tmp30_ != NULL, "locale_lookup.exception_translation_2 != null"); -#line 113 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp31_ = system_locale; -#line 113 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp32_ = locale_lookup; -#line 113 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp33_ = _tmp32_->exception_code_2; -#line 113 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (string_contains (_tmp31_, _tmp33_)) { -#line 471 "FacebookPublishingAuthenticator.c" - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp34_; - const gchar* _tmp35_; - gchar* _tmp36_; -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp34_ = locale_lookup; -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp35_ = _tmp34_->exception_translation_2; -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp36_ = g_strdup (_tmp35_); -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp36_; -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref0 (locale_lookup); -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (system_locale); -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 489 "FacebookPublishingAuthenticator.c" - } - } -#line 117 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp37_ = locale_lookup; -#line 117 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp38_ = _tmp37_->translation; -#line 117 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp39_ = g_strdup (_tmp38_); -#line 117 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp39_; -#line 117 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref0 (locale_lookup); -#line 117 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (system_locale); -#line 117 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 506 "FacebookPublishingAuthenticator.c" - } - } - } -#line 121 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp40_ = g_strdup ("www"); -#line 121 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp40_; -#line 121 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (system_locale); -#line 121 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 518 "FacebookPublishingAuthenticator.c" -} - - -static gchar* -publishing_authenticator_shotwell_facebook_web_authentication_pane_get_login_url (void) -{ - gchar* result = NULL; - gchar* facebook_locale = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 125 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_get_system_locale_as_facebook_locale (); -#line 125 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - facebook_locale = _tmp0_; -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = g_strdup_printf ("https://%s.facebook.com/dialog/oauth?client_id=%s&redirect_uri=https:/" \ -"/www.facebook.com/connect/login_success.html&display=popup&scope=publi" \ -"sh_actions,user_photos,user_videos&response_type=token", facebook_locale, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_APPLICATION_ID); -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp1_; -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (facebook_locale); -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 541 "FacebookPublishingAuthenticator.c" -} - - -static gint -string_index_of_char (const gchar* self, - gunichar c, - gint start_index) -{ - gint result = 0; - gchar* _result_ = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1045 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0); -#line 1046 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_utf8_strchr (((gchar*) self) + start_index, (gssize) -1, c); -#line 1046 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1048 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1048 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ != NULL) { -#line 564 "FacebookPublishingAuthenticator.c" - gchar* _tmp2_; -#line 1049 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _result_; -#line 1049 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gint) (_tmp2_ - ((gchar*) self)); -#line 1049 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 572 "FacebookPublishingAuthenticator.c" - } else { -#line 1051 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = -1; -#line 1051 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 578 "FacebookPublishingAuthenticator.c" - } -} - - -static gchar* -string_slice (const gchar* self, - glong start, - glong end) -{ - gchar* result = NULL; - glong string_length = 0L; - gint _tmp0_; - gint _tmp1_; - gboolean _tmp4_ = FALSE; - gboolean _tmp6_ = FALSE; - gchar* _tmp8_; -#line 1369 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp1_; -#line 1371 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (start < ((glong) 0)) { -#line 605 "FacebookPublishingAuthenticator.c" - glong _tmp2_; -#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = string_length; -#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - start = _tmp2_ + start; -#line 611 "FacebookPublishingAuthenticator.c" - } -#line 1374 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (end < ((glong) 0)) { -#line 615 "FacebookPublishingAuthenticator.c" - glong _tmp3_; -#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp3_ + end; -#line 621 "FacebookPublishingAuthenticator.c" - } -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (start >= ((glong) 0)) { -#line 625 "FacebookPublishingAuthenticator.c" - glong _tmp5_; -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = start <= _tmp5_; -#line 631 "FacebookPublishingAuthenticator.c" - } else { -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = FALSE; -#line 635 "FacebookPublishingAuthenticator.c" - } -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (_tmp4_, NULL); -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (end >= ((glong) 0)) { -#line 641 "FacebookPublishingAuthenticator.c" - glong _tmp7_; -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = string_length; -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = end <= _tmp7_; -#line 647 "FacebookPublishingAuthenticator.c" - } else { -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = FALSE; -#line 651 "FacebookPublishingAuthenticator.c" - } -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (_tmp6_, NULL); -#line 1379 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (start <= end, NULL); -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = g_strndup (((gchar*) self) + start, (gsize) (end - start)); -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp8_; -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 663 "FacebookPublishingAuthenticator.c" -} - - -static gchar* -string_replace (const gchar* self, - const gchar* old, - const gchar* replacement) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 686 "FacebookPublishingAuthenticator.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 690 "FacebookPublishingAuthenticator.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 696 "FacebookPublishingAuthenticator.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 700 "FacebookPublishingAuthenticator.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 704 "FacebookPublishingAuthenticator.c" - gchar* _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = g_strdup (self); -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 712 "FacebookPublishingAuthenticator.c" - } - { - GRegex* regex = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GRegex* _tmp5_; - GRegex* _tmp6_; - gchar* _tmp7_ = NULL; - GRegex* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_regex_escape_string (old, -1); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp5_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp4_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - regex = _tmp6_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 740 "FacebookPublishingAuthenticator.c" - goto __catch0_g_regex_error; - } -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 749 "FacebookPublishingAuthenticator.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = regex; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp9_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 763 "FacebookPublishingAuthenticator.c" - goto __catch0_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 774 "FacebookPublishingAuthenticator.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = _tmp7_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = NULL; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp10_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp7_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 788 "FacebookPublishingAuthenticator.c" - } - goto __finally0; - __catch0_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 802 "FacebookPublishingAuthenticator.c" - } - __finally0: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 813 "FacebookPublishingAuthenticator.c" - } -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* base) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPane * self; - gchar* loaded_url = NULL; - WebKitWebView* _tmp0_; - WebKitWebView* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - const gchar* _tmp9_; - const gchar* _tmp20_; - const gchar* _tmp25_; -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFacebookWebAuthenticationPane); -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = shotwell_plugins_common_web_authentication_pane_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane)); -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = _tmp0_; -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = webkit_web_view_get_uri (_tmp1_); -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp4_ = g_strdup (_tmp3_); -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp5_ = _tmp4_; -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_object_unref0 (_tmp1_); -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - loaded_url = _tmp5_; -#line 132 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp6_ = loaded_url; -#line 132 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp7_ = g_strconcat ("loaded url: ", _tmp6_, NULL); -#line 132 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp8_ = _tmp7_; -#line 132 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:132: %s", _tmp8_); -#line 132 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (_tmp8_); -#line 135 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp9_ = loaded_url; -#line 135 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (string_contains (_tmp9_, "?")) { -#line 867 "FacebookPublishingAuthenticator.c" - gint index = 0; - const gchar* _tmp10_; - gchar* params = NULL; - const gchar* _tmp11_; - gint _tmp12_; - const gchar* _tmp13_; - gint _tmp14_; - gint _tmp15_; - gchar* _tmp16_; - const gchar* _tmp17_; - const gchar* _tmp18_; - gchar* _tmp19_; -#line 136 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp10_ = loaded_url; -#line 136 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - index = string_index_of_char (_tmp10_, (gunichar) '?', 0); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp11_ = loaded_url; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp12_ = index; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp13_ = loaded_url; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp14_ = strlen (_tmp13_); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp15_ = _tmp14_; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp16_ = string_slice (_tmp11_, (glong) _tmp12_, (glong) _tmp15_); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - params = _tmp16_; -#line 138 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp17_ = loaded_url; -#line 138 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp18_ = params; -#line 138 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp19_ = string_replace (_tmp17_, _tmp18_, ""); -#line 138 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (loaded_url); -#line 138 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - loaded_url = _tmp19_; -#line 135 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (params); -#line 910 "FacebookPublishingAuthenticator.c" - } -#line 142 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp20_ = loaded_url; -#line 142 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (string_contains (_tmp20_, "login_success")) { -#line 916 "FacebookPublishingAuthenticator.c" - WebKitWebView* _tmp21_; - WebKitWebView* _tmp22_; - const gchar* _tmp23_; - const gchar* _tmp24_; -#line 143 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_cache_dirty = TRUE; -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp21_ = shotwell_plugins_common_web_authentication_pane_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane)); -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp22_ = _tmp21_; -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp23_ = webkit_web_view_get_uri (_tmp22_); -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp24_ = _tmp23_; -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_signal_emit (self, publishing_authenticator_shotwell_facebook_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOGIN_SUCCEEDED_SIGNAL], 0, _tmp24_); -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_object_unref0 (_tmp22_); -#line 145 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (loaded_url); -#line 145 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return; -#line 939 "FacebookPublishingAuthenticator.c" - } -#line 149 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp25_ = loaded_url; -#line 149 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (string_contains (_tmp25_, "login_failure")) { -#line 150 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_signal_emit (self, publishing_authenticator_shotwell_facebook_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOGIN_FAILED_SIGNAL], 0); -#line 151 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (loaded_url); -#line 151 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return; -#line 951 "FacebookPublishingAuthenticator.c" - } -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (loaded_url); -#line 955 "FacebookPublishingAuthenticator.c" -} - - -gboolean -publishing_authenticator_shotwell_facebook_web_authentication_pane_is_cache_dirty (void) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 156 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_cache_dirty; -#line 156 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp0_; -#line 156 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 970 "FacebookPublishingAuthenticator.c" -} - - -static PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* -publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_construct (GType object_type, - const gchar* prefix, - const gchar* translation, - const gchar* exception_code, - const gchar* exception_translation, - const gchar* exception_code_2, - const gchar* exception_translation_2) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 31 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_val_if_fail (prefix != NULL, NULL); -#line 31 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_val_if_fail (translation != NULL, NULL); -#line 31 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup*) g_type_create_instance (object_type); -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = g_strdup (prefix); -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->prefix); -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->prefix = _tmp0_; -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = g_strdup (translation); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->translation); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->translation = _tmp1_; -#line 36 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = g_strdup (exception_code); -#line 36 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->exception_code); -#line 36 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->exception_code = _tmp2_; -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = g_strdup (exception_translation); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->exception_translation); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->exception_translation = _tmp3_; -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp4_ = g_strdup (exception_code_2); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->exception_code_2); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->exception_code_2 = _tmp4_; -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp5_ = g_strdup (exception_translation_2); -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->exception_translation_2); -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->exception_translation_2 = _tmp5_; -#line 31 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return self; -#line 1034 "FacebookPublishingAuthenticator.c" -} - - -static PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* -publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new (const gchar* prefix, - const gchar* translation, - const gchar* exception_code, - const gchar* exception_translation, - const gchar* exception_code_2, - const gchar* exception_translation_2) -{ -#line 31 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP, prefix, translation, exception_code, exception_translation, exception_code_2, exception_translation_2); -#line 1048 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_init (GValue* value) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - value->data[0].v_pointer = NULL; -#line 1057 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_free_value (GValue* value) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (value->data[0].v_pointer) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref (value->data[0].v_pointer); -#line 1068 "FacebookPublishingAuthenticator.c" - } -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (src_value->data[0].v_pointer) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - dest_value->data[0].v_pointer = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref (src_value->data[0].v_pointer); -#line 1081 "FacebookPublishingAuthenticator.c" - } else { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - dest_value->data[0].v_pointer = NULL; -#line 1085 "FacebookPublishingAuthenticator.c" - } -} - - -static gpointer -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_peek_pointer (const GValue* value) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return value->data[0].v_pointer; -#line 1095 "FacebookPublishingAuthenticator.c" -} - - -static gchar* -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (collect_values[0].v_pointer) { -#line 1107 "FacebookPublishingAuthenticator.c" - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * object; - object = collect_values[0].v_pointer; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (object->parent_instance.g_class == NULL) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1114 "FacebookPublishingAuthenticator.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1118 "FacebookPublishingAuthenticator.c" - } -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - value->data[0].v_pointer = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref (object); -#line 1122 "FacebookPublishingAuthenticator.c" - } else { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - value->data[0].v_pointer = NULL; -#line 1126 "FacebookPublishingAuthenticator.c" - } -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return NULL; -#line 1130 "FacebookPublishingAuthenticator.c" -} - - -static gchar* -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup ** object_p; - object_p = collect_values[0].v_pointer; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (!object_p) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1146 "FacebookPublishingAuthenticator.c" - } -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (!value->data[0].v_pointer) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - *object_p = NULL; -#line 1152 "FacebookPublishingAuthenticator.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - *object_p = value->data[0].v_pointer; -#line 1156 "FacebookPublishingAuthenticator.c" - } else { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - *object_p = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref (value->data[0].v_pointer); -#line 1160 "FacebookPublishingAuthenticator.c" - } -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return NULL; -#line 1164 "FacebookPublishingAuthenticator.c" -} - - -static GParamSpec* -publishing_authenticator_shotwell_facebook_web_authentication_pane_param_spec_locale_lookup (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneParamSpecLocaleLookup* spec; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP), NULL); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return G_PARAM_SPEC (spec); -#line 1184 "FacebookPublishingAuthenticator.c" -} - - -static gpointer -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_get_locale_lookup (const GValue* value) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP), NULL); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return value->data[0].v_pointer; -#line 1195 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_set_locale_lookup (GValue* value, - gpointer v_object) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * old; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP)); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - old = value->data[0].v_pointer; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (v_object) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP)); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - value->data[0].v_pointer = v_object; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref (value->data[0].v_pointer); -#line 1218 "FacebookPublishingAuthenticator.c" - } else { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - value->data[0].v_pointer = NULL; -#line 1222 "FacebookPublishingAuthenticator.c" - } -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (old) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref (old); -#line 1228 "FacebookPublishingAuthenticator.c" - } -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_value_take_locale_lookup (GValue* value, - gpointer v_object) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * old; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP)); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - old = value->data[0].v_pointer; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (v_object) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP)); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - value->data[0].v_pointer = v_object; -#line 1250 "FacebookPublishingAuthenticator.c" - } else { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - value->data[0].v_pointer = NULL; -#line 1254 "FacebookPublishingAuthenticator.c" - } -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (old) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref (old); -#line 1260 "FacebookPublishingAuthenticator.c" - } -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_class_init (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupClass * klass) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_parent_class = g_type_class_peek_parent (klass); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - ((PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupClass *) klass)->finalize = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_finalize; -#line 1272 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_instance_init (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * self) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->ref_count = 1; -#line 1281 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_finalize (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * obj) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * self; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_TYPE_LOCALE_LOOKUP, PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_signal_handlers_destroy (self); -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->prefix); -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->translation); -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->exception_code); -#line 27 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->exception_translation); -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->exception_code_2); -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (self->exception_translation_2); -#line 1305 "FacebookPublishingAuthenticator.c" -} - - -static GType -publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_init, publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_free_value, publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_copy_value, publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_peek_pointer, "p", publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_collect_value, "p", publishing_authenticator_shotwell_facebook_web_authentication_pane_value_locale_lookup_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookupClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_type_id; - publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_type_id__volatile, publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_type_id); - } - return publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_type_id__volatile; -} - - -static gpointer -publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_ref (gpointer instance) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * self; - self = instance; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_atomic_int_inc (&self->ref_count); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return instance; -#line 1334 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_unref (gpointer instance) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup * self; - self = instance; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOCALE_LOOKUP_GET_CLASS (self)->finalize (self); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1349 "FacebookPublishingAuthenticator.c" - } -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_class_init (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneClass * klass) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp0_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp1_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp2_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp3_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp4_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp5_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp6_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp7_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp8_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp9_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp10_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp11_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp12_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp13_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp14_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp15_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp16_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp17_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp18_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp19_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp20_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp21_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp22_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp23_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp24_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp25_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp26_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp27_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp28_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp29_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp30_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp31_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp32_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp33_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp34_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp35_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp36_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp37_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp38_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp39_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp40_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp41_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp42_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp43_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup* _tmp44_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup** _tmp45_; -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_parent_class = g_type_class_peek_parent (klass); -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - ((ShotwellPluginsCommonWebAuthenticationPaneClass *) klass)->on_page_load = (void (*) (ShotwellPluginsCommonWebAuthenticationPane *)) publishing_authenticator_shotwell_facebook_web_authentication_pane_real_on_page_load; -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_authenticator_shotwell_facebook_web_authentication_pane_finalize; -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOGIN_SUCCEEDED_SIGNAL] = g_signal_new ("login-succeeded", PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_WEB_AUTHENTICATION_PANE_LOGIN_FAILED_SIGNAL] = g_signal_new ("login-failed", PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("es", "es-la", "ES", "es-es", NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("en", "en-gb", "US", "en-us", NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("fr", "fr-fr", "CA", "fr-ca", NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("pt", "pt-br", "PT", "pt-pt", NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp4_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("zh", "zh-cn", "HK", "zh-hk", "TW", "zh-tw"); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp5_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("af", "af-za", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp6_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ar", "ar-ar", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp7_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("nb", "nb-no", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp8_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("no", "nb-no", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp9_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("id", "id-id", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp10_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ms", "ms-my", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp11_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ca", "ca-es", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp12_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("cs", "cs-cz", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp13_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("cy", "cy-gb", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp14_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("da", "da-dk", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp15_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("de", "de-de", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp16_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("tl", "tl-ph", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp17_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ko", "ko-kr", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp18_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("hr", "hr-hr", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp19_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("it", "it-it", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp20_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("lt", "lt-lt", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp21_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("hu", "hu-hu", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp22_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("nl", "nl-nl", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp23_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ja", "ja-jp", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp24_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("nb", "nb-no", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp25_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("no", "nb-no", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp26_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("pl", "pl-pl", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp27_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ro", "ro-ro", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp28_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ru", "ru-ru", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp29_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("sk", "sk-sk", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp30_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("sl", "sl-si", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp31_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("sv", "sv-se", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp32_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("th", "th-th", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp33_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("vi", "vi-vn", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp34_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("tr", "tr-tr", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp35_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("el", "el-gr", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp36_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("bg", "bg-bg", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp37_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("sr", "sr-rs", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp38_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("he", "he-il", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp39_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("hi", "hi-in", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp40_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("bn", "bn-in", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp41_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("pa", "pa-in", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp42_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ta", "ta-in", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp43_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("te", "te-in", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp44_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_new ("ml", "ml-in", NULL, NULL, NULL, NULL); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_ = g_new0 (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneLocaleLookup*, 45 + 1); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[0] = _tmp0_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[1] = _tmp1_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[2] = _tmp2_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[3] = _tmp3_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[4] = _tmp4_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[5] = _tmp5_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[6] = _tmp6_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[7] = _tmp7_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[8] = _tmp8_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[9] = _tmp9_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[10] = _tmp10_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[11] = _tmp11_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[12] = _tmp12_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[13] = _tmp13_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[14] = _tmp14_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[15] = _tmp15_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[16] = _tmp16_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[17] = _tmp17_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[18] = _tmp18_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[19] = _tmp19_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[20] = _tmp20_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[21] = _tmp21_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[22] = _tmp22_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[23] = _tmp23_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[24] = _tmp24_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[25] = _tmp25_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[26] = _tmp26_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[27] = _tmp27_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[28] = _tmp28_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[29] = _tmp29_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[30] = _tmp30_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[31] = _tmp31_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[32] = _tmp32_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[33] = _tmp33_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[34] = _tmp34_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[35] = _tmp35_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[36] = _tmp36_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[37] = _tmp37_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[38] = _tmp38_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[39] = _tmp39_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[40] = _tmp40_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[41] = _tmp41_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[42] = _tmp42_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[43] = _tmp43_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp45_[44] = _tmp44_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table = _tmp45_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_web_authentication_pane_locale_lookup_table_length1 = 45; -#line 1599 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_instance_init (PublishingAuthenticatorShotwellFacebookWebAuthenticationPane * self) -{ -} - - -static void -publishing_authenticator_shotwell_facebook_web_authentication_pane_finalize (GObject * obj) -{ - PublishingAuthenticatorShotwellFacebookWebAuthenticationPane * self; -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFacebookWebAuthenticationPane); -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_facebook_web_authentication_pane_parent_class)->finalize (obj); -#line 1617 "FacebookPublishingAuthenticator.c" -} - - -GType -publishing_authenticator_shotwell_facebook_web_authentication_pane_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_facebook_web_authentication_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_facebook_web_authentication_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellFacebookWebAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_facebook_web_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellFacebookWebAuthenticationPane), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_facebook_web_authentication_pane_instance_init, NULL }; - GType publishing_authenticator_shotwell_facebook_web_authentication_pane_type_id; - publishing_authenticator_shotwell_facebook_web_authentication_pane_type_id = g_type_register_static (SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, "PublishingAuthenticatorShotwellFacebookWebAuthenticationPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_facebook_web_authentication_pane_type_id__volatile, publishing_authenticator_shotwell_facebook_web_authentication_pane_type_id); - } - return publishing_authenticator_shotwell_facebook_web_authentication_pane_type_id__volatile; -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 172 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return self ? g_object_ref (self) : NULL; -#line 1640 "FacebookPublishingAuthenticator.c" -} - - -static void -_g_free0_ (gpointer var) -{ -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - var = (g_free (var), NULL); -#line 1649 "FacebookPublishingAuthenticator.c" -} - - -static void -_g_variant_unref0_ (gpointer var) -{ -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - (var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)); -#line 1658 "FacebookPublishingAuthenticator.c" -} - - -PublishingAuthenticatorShotwellFacebookFacebook* -publishing_authenticator_shotwell_facebook_facebook_construct (GType object_type, - SpitPublishingPluginHost* host) -{ - PublishingAuthenticatorShotwellFacebookFacebook * self = NULL; - SpitPublishingPluginHost* _tmp0_; - GHashFunc _tmp1_; - GEqualFunc _tmp2_; - GHashTable* _tmp3_; -#line 171 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 171 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = (PublishingAuthenticatorShotwellFacebookFacebook*) g_object_new (object_type, NULL); -#line 172 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = _g_object_ref0 (host); -#line 172 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_object_unref0 (self->priv->host); -#line 172 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->priv->host = _tmp0_; -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = g_str_hash; -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = g_str_equal; -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = g_hash_table_new_full (_tmp1_, _tmp2_, _g_free0_, _g_variant_unref0_); -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_hash_table_unref0 (self->priv->params); -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->priv->params = _tmp3_; -#line 171 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return self; -#line 1693 "FacebookPublishingAuthenticator.c" -} - - -PublishingAuthenticatorShotwellFacebookFacebook* -publishing_authenticator_shotwell_facebook_facebook_new (SpitPublishingPluginHost* host) -{ -#line 171 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return publishing_authenticator_shotwell_facebook_facebook_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, host); -#line 1702 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_real_authenticate (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellFacebookFacebook * self; -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebook); -#line 180 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (publishing_authenticator_shotwell_facebook_facebook_is_persistent_session_valid (self)) { -#line 1714 "FacebookPublishingAuthenticator.c" - gchar* access_token = NULL; - gchar* _tmp0_; - GHashTable* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; - GVariant* _tmp4_; -#line 181 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = publishing_authenticator_shotwell_facebook_facebook_get_persistent_access_token (self); -#line 181 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - access_token = _tmp0_; -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = self->priv->params; -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = g_strdup ("AccessToken"); -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = access_token; -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp4_ = g_variant_new_string (_tmp3_); -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_variant_ref_sink (_tmp4_); -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_hash_table_insert (_tmp1_, _tmp2_, _tmp4_); -#line 183 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator), "authenticated"); -#line 184 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (access_token); -#line 184 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return; -#line 1743 "FacebookPublishingAuthenticator.c" - } -#line 188 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (publishing_authenticator_shotwell_facebook_web_authentication_pane_is_cache_dirty ()) { -#line 1747 "FacebookPublishingAuthenticator.c" - SpitPublishingPluginHost* _tmp5_; - SpitPublishingPluginHost* _tmp6_; -#line 189 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp5_ = self->priv->host; -#line 189 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp5_, FALSE); -#line 190 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp6_ = self->priv->host; -#line 190 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spit_publishing_plugin_host_install_static_message_pane (_tmp6_, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_RESTART_ERROR_MESSAGE, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 1758 "FacebookPublishingAuthenticator.c" - } else { -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_do_show_service_welcome_pane (self); -#line 1762 "FacebookPublishingAuthenticator.c" - } -} - - -static gboolean -publishing_authenticator_shotwell_facebook_facebook_real_can_logout (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellFacebookFacebook * self; - gboolean result = FALSE; -#line 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebook); -#line 198 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = TRUE; -#line 198 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 1778 "FacebookPublishingAuthenticator.c" -} - - -static gpointer -_g_hash_table_ref0 (gpointer self) -{ -#line 202 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return self ? g_hash_table_ref (self) : NULL; -#line 1787 "FacebookPublishingAuthenticator.c" -} - - -static GHashTable* -publishing_authenticator_shotwell_facebook_facebook_real_get_authentication_parameter (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellFacebookFacebook * self; - GHashTable* result = NULL; - GHashTable* _tmp0_; - GHashTable* _tmp1_; -#line 201 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebook); -#line 202 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = self->priv->params; -#line 202 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = _g_hash_table_ref0 (_tmp0_); -#line 202 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp1_; -#line 202 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 1808 "FacebookPublishingAuthenticator.c" -} - - -void -publishing_authenticator_shotwell_facebook_facebook_invalidate_persistent_session (PublishingAuthenticatorShotwellFacebookFacebook* self) -{ -#line 205 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self)); -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:206: invalidating saved Facebook " \ -"session."); -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_set_persistent_access_token (self, ""); -#line 1821 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_real_logout (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellFacebookFacebook * self; -#line 210 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebook); -#line 211 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_invalidate_persistent_session (self); -#line 1833 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_real_refresh (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellFacebookFacebook * self; -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebook); -#line 1843 "FacebookPublishingAuthenticator.c" -} - - -static gboolean -publishing_authenticator_shotwell_facebook_facebook_is_persistent_session_valid (PublishingAuthenticatorShotwellFacebookFacebook* self) -{ - gboolean result = FALSE; - gchar* token = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp3_; -#line 219 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self), FALSE); -#line 220 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = publishing_authenticator_shotwell_facebook_facebook_get_persistent_access_token (self); -#line 220 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - token = _tmp0_; -#line 222 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = token; -#line 222 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp1_ != NULL) { -#line 1865 "FacebookPublishingAuthenticator.c" - const gchar* _tmp2_; -#line 223 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = token; -#line 223 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:223: existing Facebook session fo" \ -"und in configuration database (access_token = %s).", _tmp2_); -#line 1871 "FacebookPublishingAuthenticator.c" - } else { -#line 226 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:226: no existing Facebook session" \ -" available."); -#line 1875 "FacebookPublishingAuthenticator.c" - } -#line 228 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = token; -#line 228 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp3_ != NULL; -#line 228 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (token); -#line 228 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 1885 "FacebookPublishingAuthenticator.c" -} - - -static gchar* -publishing_authenticator_shotwell_facebook_facebook_get_persistent_access_token (PublishingAuthenticatorShotwellFacebookFacebook* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 231 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self), NULL); -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_token", NULL); -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - result = _tmp1_; -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return result; -#line 1905 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_set_persistent_access_token (PublishingAuthenticatorShotwellFacebookFacebook* self, - const gchar* access_token) -{ - SpitPublishingPluginHost* _tmp0_; -#line 235 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self)); -#line 235 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (access_token != NULL); -#line 236 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 236 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_token", access_token); -#line 1922 "FacebookPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_facebook_facebook_on_login_clicked_spit_publishing_login_callback (gpointer self) -{ -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_on_login_clicked ((PublishingAuthenticatorShotwellFacebookFacebook*) self); -#line 1931 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_do_show_service_welcome_pane (PublishingAuthenticatorShotwellFacebookFacebook* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self)); -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:240: ACTION: showing service welc" \ -"ome pane."); -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spit_publishing_plugin_host_install_welcome_pane (_tmp0_, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_SERVICE_WELCOME_MESSAGE, _publishing_authenticator_shotwell_facebook_facebook_on_login_clicked_spit_publishing_login_callback, self); -#line 243 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = self->priv->host; -#line 243 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp1_, FALSE); -#line 1952 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_on_login_clicked (PublishingAuthenticatorShotwellFacebookFacebook* self) -{ -#line 246 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self)); -#line 247 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:247: EVENT: user clicked 'Login' " \ -"on welcome pane."); -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_do_hosted_web_authentication (self); -#line 1965 "FacebookPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_succeeded_publishing_authenticator_shotwell_facebook_web_authentication_pane_login_succeeded (PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* _sender, - const gchar* success_url, - gpointer self) -{ -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_succeeded ((PublishingAuthenticatorShotwellFacebookFacebook*) self, success_url); -#line 1976 "FacebookPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_failed_publishing_authenticator_shotwell_facebook_web_authentication_pane_login_failed (PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* _sender, - gpointer self) -{ -#line 259 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_failed ((PublishingAuthenticatorShotwellFacebookFacebook*) self); -#line 1986 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_do_hosted_web_authentication (PublishingAuthenticatorShotwellFacebookFacebook* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* _tmp1_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* _tmp2_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* _tmp3_; - SpitPublishingPluginHost* _tmp4_; - PublishingAuthenticatorShotwellFacebookWebAuthenticationPane* _tmp5_; -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self)); -#line 253 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:253: ACTION: doing hosted web aut" \ -"hentication."); -#line 255 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 255 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 257 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = publishing_authenticator_shotwell_facebook_web_authentication_pane_new (); -#line 257 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_object_unref0 (self->priv->web_auth_pane); -#line 257 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->priv->web_auth_pane = _tmp1_; -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = self->priv->web_auth_pane; -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_signal_connect_object (_tmp2_, "login-succeeded", (GCallback) _publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_succeeded_publishing_authenticator_shotwell_facebook_web_authentication_pane_login_succeeded, self, 0); -#line 259 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = self->priv->web_auth_pane; -#line 259 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_signal_connect_object (_tmp3_, "login-failed", (GCallback) _publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_failed_publishing_authenticator_shotwell_facebook_web_authentication_pane_login_failed, self, 0); -#line 261 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp4_ = self->priv->host; -#line 261 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp5_ = self->priv->web_auth_pane; -#line 261 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 2027 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_succeeded (PublishingAuthenticatorShotwellFacebookFacebook* self, - const gchar* success_url) -{ -#line 266 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self)); -#line 266 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (success_url != NULL); -#line 267 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:267: EVENT: hosted web login succ" \ -"eeded."); -#line 269 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_do_authenticate_session (self, success_url); -#line 2043 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_on_web_auth_pane_login_failed (PublishingAuthenticatorShotwellFacebookFacebook* self) -{ -#line 272 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self)); -#line 273 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:273: EVENT: hosted web login fail" \ -"ed."); -#line 281 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_do_show_service_welcome_pane (self); -#line 2056 "FacebookPublishingAuthenticator.c" -} - - -static gint -string_index_of (const gchar* self, - const gchar* needle, - gint start_index) -{ - gint result = 0; - gchar* _result_ = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1025 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0); -#line 1025 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, 0); -#line 1026 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr (((gchar*) self) + start_index, (gchar*) needle); -#line 1026 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1028 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1028 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ != NULL) { -#line 2081 "FacebookPublishingAuthenticator.c" - gchar* _tmp2_; -#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _result_; -#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gint) (_tmp2_ - ((gchar*) self)); -#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2089 "FacebookPublishingAuthenticator.c" - } else { -#line 1031 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = -1; -#line 1031 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2095 "FacebookPublishingAuthenticator.c" - } -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_do_authenticate_session (PublishingAuthenticatorShotwellFacebookFacebook* self, - const gchar* good_login_uri) -{ - gchar* decoded_uri = NULL; - gchar* _tmp0_; - gchar* access_token = NULL; - gint index = 0; - const gchar* _tmp1_; - gint _tmp2_; - const gchar* _tmp9_; - gchar* trailing_params = NULL; - const gchar* _tmp13_; - gint _tmp14_; - const gchar* _tmp21_; - const gchar* _tmp25_; - gchar* _tmp26_; - GHashTable* _tmp27_; - gchar* _tmp28_; - const gchar* _tmp29_; - GVariant* _tmp30_; - const gchar* _tmp31_; -#line 284 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK (self)); -#line 284 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_return_if_fail (good_login_uri != NULL); -#line 285 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_debug ("FacebookPublishingAuthenticator.vala:285: ACTION: preparing to extract" \ -" session information encoded in uri = '%s'", good_login_uri); -#line 289 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp0_ = soup_uri_decode (good_login_uri); -#line 289 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - decoded_uri = _tmp0_; -#line 292 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - access_token = NULL; -#line 293 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp1_ = decoded_uri; -#line 293 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - index = string_index_of (_tmp1_, "#access_token=", 0); -#line 294 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp2_ = index; -#line 294 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp2_ >= 0) { -#line 2142 "FacebookPublishingAuthenticator.c" - const gchar* _tmp3_; - gint _tmp4_; - const gchar* _tmp5_; - gint _tmp6_; - gint _tmp7_; - gchar* _tmp8_; -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp3_ = decoded_uri; -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp4_ = index; -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp5_ = decoded_uri; -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp6_ = strlen (_tmp5_); -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp7_ = _tmp6_; -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp8_ = string_slice (_tmp3_, (glong) _tmp4_, (glong) _tmp7_); -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (access_token); -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - access_token = _tmp8_; -#line 2165 "FacebookPublishingAuthenticator.c" - } -#line 296 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp9_ = access_token; -#line 296 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp9_ == NULL) { -#line 2171 "FacebookPublishingAuthenticator.c" - SpitPublishingPluginHost* _tmp10_; - GError* _tmp11_; - GError* _tmp12_; -#line 297 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp10_ = self->priv->host; -#line 297 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp11_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Server redirect URL contained no access token"); -#line 297 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp12_ = _tmp11_; -#line 297 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp10_, _tmp12_); -#line 297 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_error_free0 (_tmp12_); -#line 299 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (access_token); -#line 299 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (decoded_uri); -#line 299 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - return; -#line 2191 "FacebookPublishingAuthenticator.c" - } -#line 303 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - trailing_params = NULL; -#line 304 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp13_ = access_token; -#line 304 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - index = string_index_of_char (_tmp13_, (gunichar) '&', 0); -#line 305 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp14_ = index; -#line 305 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp14_ >= 0) { -#line 2203 "FacebookPublishingAuthenticator.c" - const gchar* _tmp15_; - gint _tmp16_; - const gchar* _tmp17_; - gint _tmp18_; - gint _tmp19_; - gchar* _tmp20_; -#line 306 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp15_ = access_token; -#line 306 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp16_ = index; -#line 306 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp17_ = access_token; -#line 306 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp18_ = strlen (_tmp17_); -#line 306 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp19_ = _tmp18_; -#line 306 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp20_ = string_slice (_tmp15_, (glong) _tmp16_, (glong) _tmp19_); -#line 306 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (trailing_params); -#line 306 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - trailing_params = _tmp20_; -#line 2226 "FacebookPublishingAuthenticator.c" - } -#line 307 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp21_ = trailing_params; -#line 307 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - if (_tmp21_ != NULL) { -#line 2232 "FacebookPublishingAuthenticator.c" - const gchar* _tmp22_; - const gchar* _tmp23_; - gchar* _tmp24_; -#line 308 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp22_ = access_token; -#line 308 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp23_ = trailing_params; -#line 308 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp24_ = string_replace (_tmp22_, _tmp23_, ""); -#line 308 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (access_token); -#line 308 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - access_token = _tmp24_; -#line 2246 "FacebookPublishingAuthenticator.c" - } -#line 311 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp25_ = access_token; -#line 311 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp26_ = string_replace (_tmp25_, "#access_token=", ""); -#line 311 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (access_token); -#line 311 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - access_token = _tmp26_; -#line 312 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp27_ = self->priv->params; -#line 312 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp28_ = g_strdup ("AccessToken"); -#line 312 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp29_ = access_token; -#line 312 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp30_ = g_variant_new_string (_tmp29_); -#line 312 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_variant_ref_sink (_tmp30_); -#line 312 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_hash_table_insert (_tmp27_, _tmp28_, _tmp30_); -#line 313 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _tmp31_ = access_token; -#line 313 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_set_persistent_access_token (self, _tmp31_); -#line 315 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator), "authenticated"); -#line 284 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (trailing_params); -#line 284 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (access_token); -#line 284 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_free0 (decoded_uri); -#line 2280 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_class_init (PublishingAuthenticatorShotwellFacebookFacebookClass * klass) -{ -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_parent_class = g_type_class_peek_parent (klass); -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - g_type_class_add_private (klass, sizeof (PublishingAuthenticatorShotwellFacebookFacebookPrivate)); -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_authenticator_shotwell_facebook_facebook_finalize; -#line 2293 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_spit_publishing_authenticator_interface_init (SpitPublishingAuthenticatorIface * iface) -{ -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - publishing_authenticator_shotwell_facebook_facebook_spit_publishing_authenticator_parent_iface = g_type_interface_peek_parent (iface); -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - iface->authenticate = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_facebook_facebook_real_authenticate; -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - iface->can_logout = (gboolean (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_facebook_facebook_real_can_logout; -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - iface->get_authentication_parameter = (GHashTable* (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_facebook_facebook_real_get_authentication_parameter; -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - iface->logout = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_facebook_facebook_real_logout; -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - iface->refresh = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_facebook_facebook_real_refresh; -#line 2312 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_instance_init (PublishingAuthenticatorShotwellFacebookFacebook * self) -{ -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->priv = PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_GET_PRIVATE (self); -#line 162 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self->priv->web_auth_pane = NULL; -#line 2323 "FacebookPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_facebook_facebook_finalize (GObject * obj) -{ - PublishingAuthenticatorShotwellFacebookFacebook * self; -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebook); -#line 161 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_object_unref0 (self->priv->host); -#line 162 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_object_unref0 (self->priv->web_auth_pane); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - _g_hash_table_unref0 (self->priv->params); -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_facebook_facebook_parent_class)->finalize (obj); -#line 2341 "FacebookPublishingAuthenticator.c" -} - - -GType -publishing_authenticator_shotwell_facebook_facebook_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_facebook_facebook_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_facebook_facebook_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellFacebookFacebookClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_facebook_facebook_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellFacebookFacebook), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_facebook_facebook_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_authenticator_info = { (GInterfaceInitFunc) publishing_authenticator_shotwell_facebook_facebook_spit_publishing_authenticator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_authenticator_shotwell_facebook_facebook_type_id; - publishing_authenticator_shotwell_facebook_facebook_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingAuthenticatorShotwellFacebookFacebook", &g_define_type_info, 0); - g_type_add_interface_static (publishing_authenticator_shotwell_facebook_facebook_type_id, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, &spit_publishing_authenticator_info); - g_once_init_leave (&publishing_authenticator_shotwell_facebook_facebook_type_id__volatile, publishing_authenticator_shotwell_facebook_facebook_type_id); - } - return publishing_authenticator_shotwell_facebook_facebook_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c b/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c deleted file mode 100644 index bdee2ff..0000000 --- a/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c +++ /dev/null @@ -1,1674 +0,0 @@ -/* FlickrPublishingAuthenticator.c generated by valac 0.40.4, the Vala compiler - * generated from FlickrPublishingAuthenticator.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" - - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION (publishing_authenticator_shotwell_flickr_authentication_request_transaction_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_AUTHENTICATION_REQUEST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION, PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_AUTHENTICATION_REQUEST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION, PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_AUTHENTICATION_REQUEST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_AUTHENTICATION_REQUEST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_AUTHENTICATION_REQUEST_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION, PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionClass)) - -typedef struct _PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction; -typedef struct _PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionClass PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionClass; -typedef struct _PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionPrivate PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionPrivate; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION (publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_ACCESS_TOKEN_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_ACCESS_TOKEN_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_ACCESS_TOKEN_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_ACCESS_TOKEN_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_ACCESS_TOKEN_FETCH_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionClass)) - -typedef struct _PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction; -typedef struct _PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionClass PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionClass; -typedef struct _PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionPrivate PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE (publishing_authenticator_shotwell_flickr_web_authentication_pane_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFlickrWebAuthenticationPane)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFlickrWebAuthenticationPaneClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFlickrWebAuthenticationPaneClass)) - -typedef struct _PublishingAuthenticatorShotwellFlickrWebAuthenticationPane PublishingAuthenticatorShotwellFlickrWebAuthenticationPane; -typedef struct _PublishingAuthenticatorShotwellFlickrWebAuthenticationPaneClass PublishingAuthenticatorShotwellFlickrWebAuthenticationPaneClass; -typedef struct _PublishingAuthenticatorShotwellFlickrWebAuthenticationPanePrivate PublishingAuthenticatorShotwellFlickrWebAuthenticationPanePrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_flickr_web_authentication_pane_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define __vala_SoupURI_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupURI_free (var), NULL))) -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_AUTHORIZED_SIGNAL, - PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_ERROR_SIGNAL, - PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_NUM_SIGNALS -}; -static guint publishing_authenticator_shotwell_flickr_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_NUM_SIGNALS] = {0}; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR (publishing_authenticator_shotwell_oauth1_authenticator_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1AuthenticatorClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1AuthenticatorClass)) - -typedef struct _PublishingAuthenticatorShotwellOAuth1Authenticator PublishingAuthenticatorShotwellOAuth1Authenticator; -typedef struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorClass PublishingAuthenticatorShotwellOAuth1AuthenticatorClass; -typedef struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR (publishing_authenticator_shotwell_flickr_flickr_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickr)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickrClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickrClass)) - -typedef struct _PublishingAuthenticatorShotwellFlickrFlickr PublishingAuthenticatorShotwellFlickrFlickr; -typedef struct _PublishingAuthenticatorShotwellFlickrFlickrClass PublishingAuthenticatorShotwellFlickrFlickrClass; -typedef struct _PublishingAuthenticatorShotwellFlickrFlickrPrivate PublishingAuthenticatorShotwellFlickrFlickrPrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_flickr_flickr_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR_NUM_PROPERTIES]; -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -struct _PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction { - PublishingRESTSupportOAuth1Transaction parent_instance; - PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionClass { - PublishingRESTSupportOAuth1TransactionClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction { - PublishingRESTSupportOAuth1Transaction parent_instance; - PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionClass { - PublishingRESTSupportOAuth1TransactionClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellFlickrWebAuthenticationPane { - ShotwellPluginsCommonWebAuthenticationPane parent_instance; - PublishingAuthenticatorShotwellFlickrWebAuthenticationPanePrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellFlickrWebAuthenticationPaneClass { - ShotwellPluginsCommonWebAuthenticationPaneClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellFlickrWebAuthenticationPanePrivate { - gchar* auth_code; -}; - -struct _PublishingAuthenticatorShotwellOAuth1Authenticator { - GObject parent_instance; - PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate * priv; - GHashTable* params; - PublishingRESTSupportOAuth1Session* session; - SpitPublishingPluginHost* host; -}; - -struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorClass { - GObjectClass parent_class; - void (*authenticate) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - gboolean (*can_logout) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - void (*logout) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - void (*refresh) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -}; - -struct _PublishingAuthenticatorShotwellFlickrFlickr { - PublishingAuthenticatorShotwellOAuth1Authenticator parent_instance; - PublishingAuthenticatorShotwellFlickrFlickrPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellFlickrFlickrClass { - PublishingAuthenticatorShotwellOAuth1AuthenticatorClass parent_class; -}; - - -static gpointer publishing_authenticator_shotwell_flickr_authentication_request_transaction_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_flickr_web_authentication_pane_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_flickr_flickr_parent_class = NULL; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_ENDPOINT_URL "https://api.flickr.com/services/rest" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_EXPIRED_SESSION_ERROR_CODE "98" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_API_KEY "60dd96d4a2ad04888b09c9e18d82c26f" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_API_SECRET "d0960565e03547c1" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_SERVICE_WELCOME_MESSAGE _ ("You are not currently logged into Flickr.\n" \ -"\n" \ -"Click Log in to log into Flickr in your Web browser. You will have to " \ -"authorize Shotwell Connect to link to your Flickr account.") -GType publishing_authenticator_shotwell_flickr_authentication_request_transaction_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction* publishing_authenticator_shotwell_flickr_authentication_request_transaction_new (PublishingRESTSupportOAuth1Session* session); -PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction* publishing_authenticator_shotwell_flickr_authentication_request_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session); -GType publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction* publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_new (PublishingRESTSupportOAuth1Session* session, - const gchar* user_verifier); -PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction* publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - const gchar* user_verifier); -GType publishing_authenticator_shotwell_flickr_web_authentication_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFlickrWebAuthenticationPanePrivate)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_LOGIN_URI "https://www.flickr.com/services/oauth/authorize?oauth_token=%s&perms=w" \ -"rite" -PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* publishing_authenticator_shotwell_flickr_web_authentication_pane_new (const gchar* token); -PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* publishing_authenticator_shotwell_flickr_web_authentication_pane_construct (GType object_type, - const gchar* token); -static void publishing_authenticator_shotwell_flickr_web_authentication_pane_real_constructed (GObject* base); -static void publishing_authenticator_shotwell_flickr_web_authentication_pane_on_shotwell_auth_request_cb (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* self, - WebKitURISchemeRequest* request); -static void _publishing_authenticator_shotwell_flickr_web_authentication_pane_on_shotwell_auth_request_cb_web_kit_uri_scheme_request_callback (WebKitURISchemeRequest* request, - gpointer self); -static void publishing_authenticator_shotwell_flickr_web_authentication_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* base); -static void _vala_SoupURI_free (SoupURI* self); -static guint8* _vala_array_dup1 (guint8* self, - int length); -static void publishing_authenticator_shotwell_flickr_web_authentication_pane_finalize (GObject * obj); -GType publishing_authenticator_shotwell_oauth1_authenticator_get_type (void) G_GNUC_CONST; -GType publishing_authenticator_shotwell_flickr_flickr_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellFlickrFlickr* publishing_authenticator_shotwell_flickr_flickr_new (SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellFlickrFlickr* publishing_authenticator_shotwell_flickr_flickr_construct (GType object_type, - SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellOAuth1Authenticator* publishing_authenticator_shotwell_oauth1_authenticator_construct (GType object_type, - const gchar* api_key, - const gchar* api_secret, - SpitPublishingPluginHost* host); -static void publishing_authenticator_shotwell_flickr_flickr_real_authenticate (PublishingAuthenticatorShotwellOAuth1Authenticator* base); -gboolean publishing_authenticator_shotwell_oauth1_authenticator_is_persistent_session_valid (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gchar* publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gchar* publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token_secret (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gchar* publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_username (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static void publishing_authenticator_shotwell_flickr_flickr_do_show_login_welcome_pane (PublishingAuthenticatorShotwellFlickrFlickr* self); -static gboolean publishing_authenticator_shotwell_flickr_flickr_real_can_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* base); -static void publishing_authenticator_shotwell_flickr_flickr_real_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* base); -void publishing_authenticator_shotwell_oauth1_authenticator_invalidate_persistent_session (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static void publishing_authenticator_shotwell_flickr_flickr_real_refresh (PublishingAuthenticatorShotwellOAuth1Authenticator* base); -static void publishing_authenticator_shotwell_flickr_flickr_on_welcome_pane_login_clicked (PublishingAuthenticatorShotwellFlickrFlickr* self); -static void _publishing_authenticator_shotwell_flickr_flickr_on_welcome_pane_login_clicked_spit_publishing_login_callback (gpointer self); -static void publishing_authenticator_shotwell_flickr_flickr_do_run_authentication_request_transaction (PublishingAuthenticatorShotwellFlickrFlickr* self); -static void publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_completed (PublishingAuthenticatorShotwellFlickrFlickr* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_error (PublishingAuthenticatorShotwellFlickrFlickr* self, - PublishingRESTSupportTransaction* txn, - GError* err); -static void _publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_authenticator_shotwell_flickr_flickr_do_parse_token_info_from_auth_request (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* response); -static void publishing_authenticator_shotwell_flickr_flickr_on_authentication_token_available (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* token, - const gchar* token_secret); -static void publishing_authenticator_shotwell_flickr_flickr_do_web_authentication (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* token); -static void publishing_authenticator_shotwell_flickr_flickr_do_verify_pin (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* pin); -static void _publishing_authenticator_shotwell_flickr_flickr_do_verify_pin_publishing_authenticator_shotwell_flickr_web_authentication_pane_authorized (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* _sender, - const gchar* auth_code, - gpointer self); -static void publishing_authenticator_shotwell_flickr_flickr_on_web_login_error (PublishingAuthenticatorShotwellFlickrFlickr* self); -static void _publishing_authenticator_shotwell_flickr_flickr_on_web_login_error_publishing_authenticator_shotwell_flickr_web_authentication_pane_error (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* _sender, - gpointer self); -static void publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_txn_completed (PublishingAuthenticatorShotwellFlickrFlickr* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_error (PublishingAuthenticatorShotwellFlickrFlickr* self, - PublishingRESTSupportTransaction* txn, - GError* err); -static void _publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_authenticator_shotwell_flickr_flickr_do_extract_access_phase_credentials_from_reponse (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* response); - - -PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction* -publishing_authenticator_shotwell_flickr_authentication_request_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session) -{ - PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction* self = NULL; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 21 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = (PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction*) publishing_rest_support_oauth1_transaction_construct_with_uri (object_type, session, "https://www.flickr.com/services/oauth/request_token", PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_callback", "shotwell-auth%3A%2F%2Flocal-callback"); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return self; -#line 268 "FlickrPublishingAuthenticator.c" -} - - -PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction* -publishing_authenticator_shotwell_flickr_authentication_request_transaction_new (PublishingRESTSupportOAuth1Session* session) -{ -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return publishing_authenticator_shotwell_flickr_authentication_request_transaction_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_AUTHENTICATION_REQUEST_TRANSACTION, session); -#line 277 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_authentication_request_transaction_class_init (PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionClass * klass) -{ -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_authentication_request_transaction_parent_class = g_type_class_peek_parent (klass); -#line 286 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_authentication_request_transaction_instance_init (PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction * self) -{ -} - - -GType -publishing_authenticator_shotwell_flickr_authentication_request_transaction_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_flickr_authentication_request_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_flickr_authentication_request_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_flickr_authentication_request_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_flickr_authentication_request_transaction_instance_init, NULL }; - GType publishing_authenticator_shotwell_flickr_authentication_request_transaction_type_id; - publishing_authenticator_shotwell_flickr_authentication_request_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, "PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_flickr_authentication_request_transaction_type_id__volatile, publishing_authenticator_shotwell_flickr_authentication_request_transaction_type_id); - } - return publishing_authenticator_shotwell_flickr_authentication_request_transaction_type_id__volatile; -} - - -PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction* -publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - const gchar* user_verifier) -{ - PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_val_if_fail (user_verifier != NULL, NULL); -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = (PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction*) publishing_rest_support_oauth1_transaction_construct_with_uri (object_type, session, "https://www.flickr.com/services/oauth/access_token", PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 31 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_verifier", user_verifier); -#line 32 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = publishing_rest_support_oauth1_session_get_request_phase_token (session); -#line 32 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = _tmp0_; -#line 32 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_token", _tmp1_); -#line 32 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (_tmp1_); -#line 33 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_callback", "shotwell-auth%3A%2F%2Flocal-callback"); -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return self; -#line 338 "FlickrPublishingAuthenticator.c" -} - - -PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction* -publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_new (PublishingRESTSupportOAuth1Session* session, - const gchar* user_verifier) -{ -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, session, user_verifier); -#line 348 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_class_init (PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionClass * klass) -{ -#line 27 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_parent_class = g_type_class_peek_parent (klass); -#line 357 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_instance_init (PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction * self) -{ -} - - -GType -publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_instance_init, NULL }; - GType publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_type_id; - publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, "PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_type_id__volatile, publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_type_id); - } - return publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_type_id__volatile; -} - - -PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* -publishing_authenticator_shotwell_flickr_web_authentication_pane_construct (GType object_type, - const gchar* token) -{ - PublishingAuthenticatorShotwellFlickrWebAuthenticationPane * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_val_if_fail (token != NULL, NULL); -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = g_strdup_printf (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_LOGIN_URI, token); -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = _tmp0_; -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane*) g_object_new (object_type, "login-uri", _tmp1_, NULL); -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (_tmp1_); -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return self; -#line 400 "FlickrPublishingAuthenticator.c" -} - - -PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* -publishing_authenticator_shotwell_flickr_web_authentication_pane_new (const gchar* token) -{ -#line 44 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return publishing_authenticator_shotwell_flickr_web_authentication_pane_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, token); -#line 409 "FlickrPublishingAuthenticator.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return self ? g_object_ref (self) : NULL; -#line 418 "FlickrPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_flickr_web_authentication_pane_on_shotwell_auth_request_cb_web_kit_uri_scheme_request_callback (WebKitURISchemeRequest* request, - gpointer self) -{ -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_web_authentication_pane_on_shotwell_auth_request_cb ((PublishingAuthenticatorShotwellFlickrWebAuthenticationPane*) self, request); -#line 428 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_web_authentication_pane_real_constructed (GObject* base) -{ - PublishingAuthenticatorShotwellFlickrWebAuthenticationPane * self; - WebKitWebContext* ctx = NULL; - WebKitWebContext* _tmp0_; - WebKitWebContext* _tmp1_; -#line 48 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFlickrWebAuthenticationPane); -#line 49 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_flickr_web_authentication_pane_parent_class)->constructed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane), G_TYPE_OBJECT, GObject)); -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = webkit_web_context_get_default (); -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - ctx = _tmp1_; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - webkit_web_context_register_uri_scheme (ctx, "shotwell-auth", _publishing_authenticator_shotwell_flickr_web_authentication_pane_on_shotwell_auth_request_cb_web_kit_uri_scheme_request_callback, g_object_ref (self), g_object_unref); -#line 48 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_object_unref0 (ctx); -#line 453 "FlickrPublishingAuthenticator.c" -} - - -static void -_vala_SoupURI_free (SoupURI* self) -{ -#line 55 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_boxed_free (soup_uri_get_type (), self); -#line 462 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_web_authentication_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* base) -{ - PublishingAuthenticatorShotwellFlickrWebAuthenticationPane * self; - SoupURI* uri = NULL; - WebKitWebView* _tmp0_; - WebKitWebView* _tmp1_; - const gchar* _tmp2_; - SoupURI* _tmp3_; - SoupURI* _tmp4_; - gboolean _tmp5_ = FALSE; - SoupURI* _tmp6_; - const gchar* _tmp7_; - const gchar* _tmp9_; -#line 55 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFlickrWebAuthenticationPane); -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = shotwell_plugins_common_web_authentication_pane_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane)); -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = _tmp0_; -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = webkit_web_view_get_uri (_tmp1_); -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = soup_uri_new (_tmp2_); -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp4_ = _tmp3_; -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_object_unref0 (_tmp1_); -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - uri = _tmp4_; -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp6_ = uri; -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp7_ = _tmp6_->scheme; -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (g_strcmp0 (_tmp7_, "shotwell-auth") == 0) { -#line 502 "FlickrPublishingAuthenticator.c" - const gchar* _tmp8_; -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp8_ = self->priv->auth_code; -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp5_ = _tmp8_ == NULL; -#line 508 "FlickrPublishingAuthenticator.c" - } else { -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp5_ = FALSE; -#line 512 "FlickrPublishingAuthenticator.c" - } -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_tmp5_) { -#line 58 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_emit (self, publishing_authenticator_shotwell_flickr_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_ERROR_SIGNAL], 0); -#line 518 "FlickrPublishingAuthenticator.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp9_ = self->priv->auth_code; -#line 61 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_tmp9_ != NULL) { -#line 524 "FlickrPublishingAuthenticator.c" - const gchar* _tmp10_; -#line 62 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp10_ = self->priv->auth_code; -#line 62 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_emit (self, publishing_authenticator_shotwell_flickr_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_AUTHORIZED_SIGNAL], 0, _tmp10_); -#line 530 "FlickrPublishingAuthenticator.c" - } -#line 55 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - __vala_SoupURI_free0 (uri); -#line 534 "FlickrPublishingAuthenticator.c" -} - - -static guint8* -string_get_data (const gchar* self, - int* result_length1) -{ - guint8* result; - guint8* res = NULL; - gint res_length1; - gint _res_size_; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - guint8* _tmp3_; - gint _tmp3__length1; - guint8* _tmp4_; - gint _tmp4__length1; -#line 1442 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = (guint8*) self; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = -1; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _res_size_ = res_length1; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = (gint) _tmp1_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = res; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3__length1 = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4__length1 = _tmp3__length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (result_length1) { -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result_length1 = _tmp4__length1; -#line 581 "FlickrPublishingAuthenticator.c" - } -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp4_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 587 "FlickrPublishingAuthenticator.c" -} - - -static guint8* -_vala_array_dup1 (guint8* self, - int length) -{ -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return g_memdup (self, length * sizeof (guint8)); -#line 597 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_web_authentication_pane_on_shotwell_auth_request_cb (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* self, - WebKitURISchemeRequest* request) -{ - SoupURI* uri = NULL; - const gchar* _tmp0_; - SoupURI* _tmp1_; - GHashTable* form_data = NULL; - const gchar* _tmp2_; - GHashTable* _tmp3_; - gconstpointer _tmp4_; - gchar* _tmp5_; - gchar* response = NULL; - gchar* _tmp6_; - GMemoryInputStream* mins = NULL; - guint8* _tmp7_; - gint _tmp7__length1; - guint8* _tmp8_; - gint _tmp8__length1; - guint8* _tmp9_; - gint _tmp9__length1; - GMemoryInputStream* _tmp10_; -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_WEB_AUTHENTICATION_PANE (self)); -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (WEBKIT_IS_URI_SCHEME_REQUEST (request)); -#line 67 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = webkit_uri_scheme_request_get_uri (request); -#line 67 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = soup_uri_new (_tmp0_); -#line 67 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - uri = _tmp1_; -#line 68 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = uri->query; -#line 68 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = soup_form_decode (_tmp2_); -#line 68 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - form_data = _tmp3_; -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp4_ = g_hash_table_lookup (form_data, "oauth_verifier"); -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp5_ = g_strdup ((const gchar*) _tmp4_); -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (self->priv->auth_code); -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self->priv->auth_code = _tmp5_; -#line 71 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp6_ = g_strdup (""); -#line 71 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - response = _tmp6_; -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp7_ = string_get_data (response, &_tmp7__length1); -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp8_ = _tmp7_; -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp8__length1 = _tmp7__length1; -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup1 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_); -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp9__length1 = _tmp8__length1; -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp10_ = (GMemoryInputStream*) g_memory_input_stream_new_from_data (_tmp9_, _tmp9__length1, NULL); -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - mins = _tmp10_; -#line 73 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - webkit_uri_scheme_request_finish (request, G_TYPE_CHECK_INSTANCE_CAST (mins, g_input_stream_get_type (), GInputStream), (gint64) -1, "text/plain"); -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_object_unref0 (mins); -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (response); -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_hash_table_unref0 (form_data); -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - __vala_SoupURI_free0 (uri); -#line 675 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_web_authentication_pane_class_init (PublishingAuthenticatorShotwellFlickrWebAuthenticationPaneClass * klass) -{ -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_web_authentication_pane_parent_class = g_type_class_peek_parent (klass); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_type_class_add_private (klass, sizeof (PublishingAuthenticatorShotwellFlickrWebAuthenticationPanePrivate)); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) publishing_authenticator_shotwell_flickr_web_authentication_pane_real_constructed; -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - ((ShotwellPluginsCommonWebAuthenticationPaneClass *) klass)->on_page_load = (void (*) (ShotwellPluginsCommonWebAuthenticationPane *)) publishing_authenticator_shotwell_flickr_web_authentication_pane_real_on_page_load; -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_authenticator_shotwell_flickr_web_authentication_pane_finalize; -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_AUTHORIZED_SIGNAL] = g_signal_new ("authorized", PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_ERROR_SIGNAL] = g_signal_new ("error", PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 696 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_web_authentication_pane_instance_init (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane * self) -{ -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self->priv = PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_WEB_AUTHENTICATION_PANE_GET_PRIVATE (self); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self->priv->auth_code = NULL; -#line 707 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_web_authentication_pane_finalize (GObject * obj) -{ - PublishingAuthenticatorShotwellFlickrWebAuthenticationPane * self; -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellFlickrWebAuthenticationPane); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (self->priv->auth_code); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_flickr_web_authentication_pane_parent_class)->finalize (obj); -#line 721 "FlickrPublishingAuthenticator.c" -} - - -GType -publishing_authenticator_shotwell_flickr_web_authentication_pane_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_flickr_web_authentication_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_flickr_web_authentication_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellFlickrWebAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_flickr_web_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_flickr_web_authentication_pane_instance_init, NULL }; - GType publishing_authenticator_shotwell_flickr_web_authentication_pane_type_id; - publishing_authenticator_shotwell_flickr_web_authentication_pane_type_id = g_type_register_static (SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, "PublishingAuthenticatorShotwellFlickrWebAuthenticationPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_flickr_web_authentication_pane_type_id__volatile, publishing_authenticator_shotwell_flickr_web_authentication_pane_type_id); - } - return publishing_authenticator_shotwell_flickr_web_authentication_pane_type_id__volatile; -} - - -PublishingAuthenticatorShotwellFlickrFlickr* -publishing_authenticator_shotwell_flickr_flickr_construct (GType object_type, - SpitPublishingPluginHost* host) -{ - PublishingAuthenticatorShotwellFlickrFlickr * self = NULL; -#line 78 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 79 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = (PublishingAuthenticatorShotwellFlickrFlickr*) publishing_authenticator_shotwell_oauth1_authenticator_construct (object_type, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_API_KEY, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_API_SECRET, host); -#line 78 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return self; -#line 750 "FlickrPublishingAuthenticator.c" -} - - -PublishingAuthenticatorShotwellFlickrFlickr* -publishing_authenticator_shotwell_flickr_flickr_new (SpitPublishingPluginHost* host) -{ -#line 78 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return publishing_authenticator_shotwell_flickr_flickr_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, host); -#line 759 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_real_authenticate (PublishingAuthenticatorShotwellOAuth1Authenticator* base) -{ - PublishingAuthenticatorShotwellFlickrFlickr * self; -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickr); -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (publishing_authenticator_shotwell_oauth1_authenticator_is_persistent_session_valid (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator))) { -#line 771 "FlickrPublishingAuthenticator.c" - PublishingRESTSupportOAuth1Session* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:84: attempt start: a persistent ses" \ -"sion is available; using it"); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = _tmp1_; -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token_secret (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp4_ = _tmp3_; -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp5_ = publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_username (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp6_ = _tmp5_; -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_oauth1_session_authenticate_from_persistent_credentials (_tmp0_, _tmp2_, _tmp4_, _tmp6_); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (_tmp6_); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (_tmp4_); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (_tmp2_); -#line 803 "FlickrPublishingAuthenticator.c" - } else { -#line 89 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:89: attempt start: no persistent se" \ -"ssion available; showing login welcome pane"); -#line 90 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_do_show_login_welcome_pane (self); -#line 809 "FlickrPublishingAuthenticator.c" - } -} - - -static gboolean -publishing_authenticator_shotwell_flickr_flickr_real_can_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* base) -{ - PublishingAuthenticatorShotwellFlickrFlickr * self; - gboolean result = FALSE; -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickr); -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - result = TRUE; -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return result; -#line 825 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_real_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* base) -{ - PublishingAuthenticatorShotwellFlickrFlickr * self; - PublishingRESTSupportOAuth1Session* _tmp0_; -#line 98 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickr); -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_oauth1_session_deauthenticate (_tmp0_); -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_invalidate_persistent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)); -#line 842 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_real_refresh (PublishingAuthenticatorShotwellOAuth1Authenticator* base) -{ - PublishingAuthenticatorShotwellFlickrFlickr * self; -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickr); -#line 852 "FlickrPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_flickr_flickr_on_welcome_pane_login_clicked_spit_publishing_login_callback (gpointer self) -{ -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_on_welcome_pane_login_clicked ((PublishingAuthenticatorShotwellFlickrFlickr*) self); -#line 861 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_do_show_login_welcome_pane (PublishingAuthenticatorShotwellFlickrFlickr* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 108 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:108: ACTION: installing login welco" \ -"me pane"); -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_install_welcome_pane (_tmp1_, PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_SERVICE_WELCOME_MESSAGE, _publishing_authenticator_shotwell_flickr_flickr_on_welcome_pane_login_clicked_spit_publishing_login_callback, self); -#line 882 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_on_welcome_pane_login_clicked (PublishingAuthenticatorShotwellFlickrFlickr* self) -{ -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 115 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:115: EVENT: user clicked 'Login' bu" \ -"tton in the welcome pane"); -#line 117 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_do_run_authentication_request_transaction (self); -#line 895 "FlickrPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_completed ((PublishingAuthenticatorShotwellFlickrFlickr*) self, _sender); -#line 905 "FlickrPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_error ((PublishingAuthenticatorShotwellFlickrFlickr*) self, _sender, err); -#line 916 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_do_run_authentication_request_transaction (PublishingAuthenticatorShotwellFlickrFlickr* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction* txn = NULL; - PublishingRESTSupportOAuth1Session* _tmp2_; - PublishingAuthenticatorShotwellFlickrAuthenticationRequestTransaction* _tmp3_; - GError * _inner_error_ = NULL; -#line 120 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 121 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:121: ACTION: running authentication" \ -" request transaction"); -#line 123 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 123 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 124 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 124 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_install_static_message_pane (_tmp1_, _ ("Preparing for login…"), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 126 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 126 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = publishing_authenticator_shotwell_flickr_authentication_request_transaction_new (_tmp2_); -#line 126 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - txn = _tmp3_; -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self, 0); -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self, 0); -#line 951 "FlickrPublishingAuthenticator.c" - { -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 959 "FlickrPublishingAuthenticator.c" - goto __catch1_spit_publishing_publishing_error; - } -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 131 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return; -#line 970 "FlickrPublishingAuthenticator.c" - } - } - goto __finally1; - __catch1_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp4_; - GError* _tmp5_; -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - err = _inner_error_; -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _inner_error_ = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 133 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp5_ = err; -#line 133 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp5_); -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_error_free0 (err); -#line 991 "FlickrPublishingAuthenticator.c" - } - __finally1: -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return; -#line 1004 "FlickrPublishingAuthenticator.c" - } -#line 120 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 1008 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_completed (PublishingAuthenticatorShotwellFlickrFlickr* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 138 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 138 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self); -#line 139 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 139 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self); -#line 141 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 141 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 141 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:141: EVENT: OAuth authentication re" \ -"quest transaction completed; response = '%s'", _tmp3_); -#line 141 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (_tmp3_); -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (txn); -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp5_ = _tmp4_; -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_do_parse_token_info_from_auth_request (self, _tmp5_); -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (_tmp5_); -#line 1050 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_error (PublishingAuthenticatorShotwellFlickrFlickr* self, - PublishingRESTSupportTransaction* txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - SpitPublishingPluginHost* _tmp2_; -#line 147 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 147 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 149 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 149 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self); -#line 150 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 150 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self); -#line 152 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:152: EVENT: OAuth authentication re" \ -"quest transaction caused a network error"); -#line 153 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 153 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp2_, err); -#line 155 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator), "authentication-failed"); -#line 1082 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_do_parse_token_info_from_auth_request (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* response) -{ - gchar* oauth_token = NULL; - gchar* oauth_token_secret = NULL; - GHashTable* data = NULL; - GHashTable* _tmp0_; - GHashTable* _tmp1_; - gconstpointer _tmp2_ = NULL; - gchar* _tmp3_; - GHashTable* _tmp4_; - gconstpointer _tmp5_ = NULL; - gchar* _tmp6_; - gboolean _tmp7_ = FALSE; - const gchar* _tmp8_; - const gchar* _tmp13_; - const gchar* _tmp14_; -#line 158 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 158 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (response != NULL); -#line 159 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:159: ACTION: parsing authorization " \ -"request response '%s' into token and secret", response); -#line 161 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - oauth_token = NULL; -#line 162 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - oauth_token_secret = NULL; -#line 164 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = soup_form_decode (response); -#line 164 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - data = _tmp0_; -#line 165 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = data; -#line 165 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_hash_table_lookup_extended (_tmp1_, "oauth_token", NULL, &_tmp2_); -#line 165 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (oauth_token); -#line 165 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 165 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - oauth_token = _tmp3_; -#line 166 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp4_ = data; -#line 166 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_hash_table_lookup_extended (_tmp4_, "oauth_token_secret", NULL, &_tmp5_); -#line 166 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (oauth_token_secret); -#line 166 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 166 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - oauth_token_secret = _tmp6_; -#line 168 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp8_ = oauth_token; -#line 168 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_tmp8_ == NULL) { -#line 168 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp7_ = TRUE; -#line 1144 "FlickrPublishingAuthenticator.c" - } else { - const gchar* _tmp9_; -#line 168 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp9_ = oauth_token_secret; -#line 168 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp7_ = _tmp9_ == NULL; -#line 1151 "FlickrPublishingAuthenticator.c" - } -#line 168 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_tmp7_) { -#line 1155 "FlickrPublishingAuthenticator.c" - SpitPublishingPluginHost* _tmp10_; - GError* _tmp11_; - GError* _tmp12_; -#line 169 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 169 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp11_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "'%s' isn't a valid response to an OAuth authentication request", response); -#line 169 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp12_ = _tmp11_; -#line 169 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp10_, _tmp12_); -#line 169 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_error_free0 (_tmp12_); -#line 1169 "FlickrPublishingAuthenticator.c" - } -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp13_ = oauth_token; -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp14_ = oauth_token_secret; -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_on_authentication_token_available (self, _tmp13_, _tmp14_); -#line 158 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_hash_table_unref0 (data); -#line 158 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (oauth_token_secret); -#line 158 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (oauth_token); -#line 1183 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_on_authentication_token_available (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* token, - const gchar* token_secret) -{ - PublishingRESTSupportOAuth1Session* _tmp0_; -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (token != NULL); -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (token_secret != NULL); -#line 177 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:177: EVENT: OAuth authentication to" \ -"ken (%s) and token secret (%s) available", token, token_secret); -#line 180 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 180 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_oauth1_session_set_request_phase_credentials (_tmp0_, token, token_secret); -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_do_web_authentication (self, token); -#line 1207 "FlickrPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_flickr_flickr_do_verify_pin_publishing_authenticator_shotwell_flickr_web_authentication_pane_authorized (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* _sender, - const gchar* auth_code, - gpointer self) -{ -#line 188 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_do_verify_pin ((PublishingAuthenticatorShotwellFlickrFlickr*) self, auth_code); -#line 1218 "FlickrPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_flickr_flickr_on_web_login_error_publishing_authenticator_shotwell_flickr_web_authentication_pane_error (PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* _sender, - gpointer self) -{ -#line 189 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_on_web_login_error ((PublishingAuthenticatorShotwellFlickrFlickr*) self); -#line 1228 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_do_web_authentication (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* token) -{ - PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* pane = NULL; - PublishingAuthenticatorShotwellFlickrWebAuthenticationPane* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 185 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 185 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (token != NULL); -#line 186 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = publishing_authenticator_shotwell_flickr_web_authentication_pane_new (token); -#line 186 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - pane = _tmp0_; -#line 187 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 187 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 188 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_connect_object (pane, "authorized", (GCallback) _publishing_authenticator_shotwell_flickr_flickr_do_verify_pin_publishing_authenticator_shotwell_flickr_web_authentication_pane_authorized, self, 0); -#line 189 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_connect_object (pane, "error", (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_web_login_error_publishing_authenticator_shotwell_flickr_web_authentication_pane_error, self, 0); -#line 185 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_object_unref0 (pane); -#line 1257 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_on_web_login_error (PublishingAuthenticatorShotwellFlickrFlickr* self) -{ - SpitPublishingPluginHost* _tmp0_; - GError* _tmp1_; - GError* _tmp2_; -#line 192 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR, _ ("Flickr authorization failed")); -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = _tmp1_; -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp0_, _tmp2_); -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_error_free0 (_tmp2_); -#line 1279 "FlickrPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 203 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_txn_completed ((PublishingAuthenticatorShotwellFlickrFlickr*) self, _sender); -#line 1289 "FlickrPublishingAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 204 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_error ((PublishingAuthenticatorShotwellFlickrFlickr*) self, _sender, err); -#line 1300 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_do_verify_pin (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* pin) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction* txn = NULL; - PublishingRESTSupportOAuth1Session* _tmp2_; - PublishingAuthenticatorShotwellFlickrAccessTokenFetchTransaction* _tmp3_; - GError * _inner_error_ = NULL; -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (pin != NULL); -#line 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:197: ACTION: validating authorizati" \ -"on PIN %s", pin); -#line 199 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 199 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 200 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 200 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_install_static_message_pane (_tmp1_, _ ("Verifying authorization…"), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 202 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 202 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = publishing_authenticator_shotwell_flickr_access_token_fetch_transaction_new (_tmp2_, pin); -#line 202 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - txn = _tmp3_; -#line 203 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_txn_completed_publishing_rest_support_transaction_completed, self, 0); -#line 204 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_error_publishing_rest_support_transaction_network_error, self, 0); -#line 1338 "FlickrPublishingAuthenticator.c" - { -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 1346 "FlickrPublishingAuthenticator.c" - goto __catch2_spit_publishing_publishing_error; - } -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return; -#line 1357 "FlickrPublishingAuthenticator.c" - } - } - goto __finally2; - __catch2_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp4_; - GError* _tmp5_; -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - err = _inner_error_; -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _inner_error_ = NULL; -#line 209 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 209 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp5_ = err; -#line 209 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp5_); -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_error_free0 (err); -#line 1378 "FlickrPublishingAuthenticator.c" - } - __finally2: -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - return; -#line 1391 "FlickrPublishingAuthenticator.c" - } -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 1395 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_txn_completed (PublishingAuthenticatorShotwellFlickrFlickr* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_txn_completed_publishing_rest_support_transaction_completed, self); -#line 215 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 215 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 217 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:217: EVENT: fetching OAuth access t" \ -"oken over the network succeeded"); -#line 219 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 219 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 219 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_do_extract_access_phase_credentials_from_reponse (self, _tmp3_); -#line 219 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (_tmp3_); -#line 1429 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_error (PublishingAuthenticatorShotwellFlickrFlickr* self, - PublishingRESTSupportTransaction* txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - SpitPublishingPluginHost* _tmp2_; -#line 222 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 222 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_txn_completed_publishing_rest_support_transaction_completed, self); -#line 225 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 225 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_flickr_flickr_on_access_token_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 227 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:227: EVENT: fetching OAuth access t" \ -"oken over the network caused an error."); -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp2_, err); -#line 230 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator), "authentication-failed"); -#line 1461 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_do_extract_access_phase_credentials_from_reponse (PublishingAuthenticatorShotwellFlickrFlickr* self, - const gchar* response) -{ - gchar* token = NULL; - gchar* token_secret = NULL; - gchar* username = NULL; - GHashTable* data = NULL; - GHashTable* _tmp0_; - GHashTable* _tmp1_; - gconstpointer _tmp2_ = NULL; - gchar* _tmp3_; - GHashTable* _tmp4_; - gconstpointer _tmp5_ = NULL; - gchar* _tmp6_; - GHashTable* _tmp7_; - gconstpointer _tmp8_ = NULL; - gchar* _tmp9_; - const gchar* _tmp10_; - const gchar* _tmp11_; - const gchar* _tmp12_; - gboolean _tmp13_ = FALSE; - gboolean _tmp14_ = FALSE; - const gchar* _tmp15_; -#line 233 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR (self)); -#line 233 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_return_if_fail (response != NULL); -#line 234 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:234: ACTION: extracting access phas" \ -"e credentials from '%s'", response); -#line 236 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - token = NULL; -#line 237 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - token_secret = NULL; -#line 238 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - username = NULL; -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp0_ = soup_form_decode (response); -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - data = _tmp0_; -#line 241 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp1_ = data; -#line 241 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_hash_table_lookup_extended (_tmp1_, "oauth_token", NULL, &_tmp2_); -#line 241 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (token); -#line 241 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 241 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - token = _tmp3_; -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp4_ = data; -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_hash_table_lookup_extended (_tmp4_, "oauth_token_secret", NULL, &_tmp5_); -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (token_secret); -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - token_secret = _tmp6_; -#line 243 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp7_ = data; -#line 243 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_hash_table_lookup_extended (_tmp7_, "username", NULL, &_tmp8_); -#line 243 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (username); -#line 243 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 243 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - username = _tmp9_; -#line 245 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp10_ = token; -#line 245 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp11_ = token_secret; -#line 245 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp12_ = username; -#line 245 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_debug ("FlickrPublishingAuthenticator.vala:245: access phase credentials: { to" \ -"ken = '%s'; token_secret = '%s'; username = '%s' }", _tmp10_, _tmp11_, _tmp12_); -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp15_ = token; -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_tmp15_ == NULL) { -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp14_ = TRUE; -#line 1549 "FlickrPublishingAuthenticator.c" - } else { - const gchar* _tmp16_; -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp16_ = token_secret; -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp14_ = _tmp16_ == NULL; -#line 1556 "FlickrPublishingAuthenticator.c" - } -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_tmp14_) { -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp13_ = TRUE; -#line 1562 "FlickrPublishingAuthenticator.c" - } else { - const gchar* _tmp17_; -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp17_ = username; -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp13_ = _tmp17_ == NULL; -#line 1569 "FlickrPublishingAuthenticator.c" - } -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - if (_tmp13_) { -#line 1573 "FlickrPublishingAuthenticator.c" - SpitPublishingPluginHost* _tmp18_; - GError* _tmp19_; - GError* _tmp20_; -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp18_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp19_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "expected " "access phase credentials to contain token, token secret, and username " \ -"but at " "least one of these is absent"); -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp20_ = _tmp19_; -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp18_, _tmp20_); -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_error_free0 (_tmp20_); -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator), "authentication-failed"); -#line 1589 "FlickrPublishingAuthenticator.c" - } else { - PublishingRESTSupportOAuth1Session* _tmp21_; - const gchar* _tmp22_; - const gchar* _tmp23_; - const gchar* _tmp24_; -#line 254 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp21_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 254 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp22_ = token; -#line 254 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp23_ = token_secret; -#line 254 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _tmp24_ = username; -#line 254 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_rest_support_oauth1_session_set_access_phase_credentials (_tmp21_, _tmp22_, _tmp23_, _tmp24_); -#line 1605 "FlickrPublishingAuthenticator.c" - } -#line 233 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_hash_table_unref0 (data); -#line 233 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (username); -#line 233 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (token_secret); -#line 233 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - _g_free0 (token); -#line 1615 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_class_init (PublishingAuthenticatorShotwellFlickrFlickrClass * klass) -{ -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - publishing_authenticator_shotwell_flickr_flickr_parent_class = g_type_class_peek_parent (klass); -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->authenticate = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_flickr_flickr_real_authenticate; -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->can_logout = (gboolean (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_flickr_flickr_real_can_logout; -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->logout = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_flickr_flickr_real_logout; -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->refresh = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_flickr_flickr_real_refresh; -#line 1632 "FlickrPublishingAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_flickr_flickr_instance_init (PublishingAuthenticatorShotwellFlickrFlickr * self) -{ -} - - -GType -publishing_authenticator_shotwell_flickr_flickr_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_flickr_flickr_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_flickr_flickr_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellFlickrFlickrClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_flickr_flickr_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellFlickrFlickr), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_flickr_flickr_instance_init, NULL }; - GType publishing_authenticator_shotwell_flickr_flickr_type_id; - publishing_authenticator_shotwell_flickr_flickr_type_id = g_type_register_static (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, "PublishingAuthenticatorShotwellFlickrFlickr", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_flickr_flickr_type_id__volatile, publishing_authenticator_shotwell_flickr_flickr_type_id); - } - return publishing_authenticator_shotwell_flickr_flickr_type_id__volatile; -} - - - diff --git a/plugins/authenticator/shotwell/GoogleAuthenticator.c b/plugins/authenticator/shotwell/GoogleAuthenticator.c deleted file mode 100644 index 2b09bab..0000000 --- a/plugins/authenticator/shotwell/GoogleAuthenticator.c +++ /dev/null @@ -1,2733 +0,0 @@ -/* GoogleAuthenticator.c generated by valac 0.40.4, the Vala compiler - * generated from GoogleAuthenticator.vala, do not modify */ - - - -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include - - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE (publishing_authenticator_shotwell_google_web_authentication_pane_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellGoogleWebAuthenticationPane)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellGoogleWebAuthenticationPaneClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellGoogleWebAuthenticationPaneClass)) - -typedef struct _PublishingAuthenticatorShotwellGoogleWebAuthenticationPane PublishingAuthenticatorShotwellGoogleWebAuthenticationPane; -typedef struct _PublishingAuthenticatorShotwellGoogleWebAuthenticationPaneClass PublishingAuthenticatorShotwellGoogleWebAuthenticationPaneClass; -typedef struct _PublishingAuthenticatorShotwellGoogleWebAuthenticationPanePrivate PublishingAuthenticatorShotwellGoogleWebAuthenticationPanePrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_google_web_authentication_pane_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define __vala_SoupURI_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupURI_free (var), NULL))) -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_ERROR_SIGNAL, - PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_AUTHORIZED_SIGNAL, - PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_NUM_SIGNALS -}; -static guint publishing_authenticator_shotwell_google_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_NUM_SIGNALS] = {0}; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION (publishing_authenticator_shotwell_google_session_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION, PublishingAuthenticatorShotwellGoogleSession)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION, PublishingAuthenticatorShotwellGoogleSessionClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION, PublishingAuthenticatorShotwellGoogleSessionClass)) - -typedef struct _PublishingAuthenticatorShotwellGoogleSession PublishingAuthenticatorShotwellGoogleSession; -typedef struct _PublishingAuthenticatorShotwellGoogleSessionClass PublishingAuthenticatorShotwellGoogleSessionClass; -typedef struct _PublishingAuthenticatorShotwellGoogleSessionPrivate PublishingAuthenticatorShotwellGoogleSessionPrivate; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GET_ACCESS_TOKENS_TRANSACTION (publishing_authenticator_shotwell_google_get_access_tokens_transaction_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GET_ACCESS_TOKENS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GET_ACCESS_TOKENS_TRANSACTION, PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GET_ACCESS_TOKENS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GET_ACCESS_TOKENS_TRANSACTION, PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GET_ACCESS_TOKENS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GET_ACCESS_TOKENS_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GET_ACCESS_TOKENS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GET_ACCESS_TOKENS_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GET_ACCESS_TOKENS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GET_ACCESS_TOKENS_TRANSACTION, PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionClass)) - -typedef struct _PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction; -typedef struct _PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionClass PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionClass; -typedef struct _PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionPrivate PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionPrivate; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION (publishing_authenticator_shotwell_google_refresh_access_token_transaction_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REFRESH_ACCESS_TOKEN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION, PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REFRESH_ACCESS_TOKEN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION, PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_REFRESH_ACCESS_TOKEN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_REFRESH_ACCESS_TOKEN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REFRESH_ACCESS_TOKEN_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION, PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionClass)) - -typedef struct _PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction; -typedef struct _PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionClass PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionClass; -typedef struct _PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionPrivate PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionPrivate; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_USERNAME_FETCH_TRANSACTION (publishing_authenticator_shotwell_google_username_fetch_transaction_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_USERNAME_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_USERNAME_FETCH_TRANSACTION, PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_USERNAME_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_USERNAME_FETCH_TRANSACTION, PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_USERNAME_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_USERNAME_FETCH_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_USERNAME_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_USERNAME_FETCH_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_USERNAME_FETCH_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_USERNAME_FETCH_TRANSACTION, PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionClass)) - -typedef struct _PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction; -typedef struct _PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionClass PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionClass; -typedef struct _PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionPrivate PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionPrivate; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE (publishing_authenticator_shotwell_google_google_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogle)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogleClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogleClass)) - -typedef struct _PublishingAuthenticatorShotwellGoogleGoogle PublishingAuthenticatorShotwellGoogleGoogle; -typedef struct _PublishingAuthenticatorShotwellGoogleGoogleClass PublishingAuthenticatorShotwellGoogleGoogleClass; -typedef struct _PublishingAuthenticatorShotwellGoogleGooglePrivate PublishingAuthenticatorShotwellGoogleGooglePrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_google_google_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_NUM_PROPERTIES]; -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _json_object_unref0(var) ((var == NULL) ? NULL : (var = (json_object_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PublishingAuthenticatorShotwellGoogleWebAuthenticationPane { - ShotwellPluginsCommonWebAuthenticationPane parent_instance; - PublishingAuthenticatorShotwellGoogleWebAuthenticationPanePrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellGoogleWebAuthenticationPaneClass { - ShotwellPluginsCommonWebAuthenticationPaneClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellGoogleWebAuthenticationPanePrivate { - gchar* auth_code; -}; - -struct _PublishingAuthenticatorShotwellGoogleSession { - PublishingRESTSupportSession parent_instance; - PublishingAuthenticatorShotwellGoogleSessionPrivate * priv; - gchar* access_token; - gchar* refresh_token; - gint64 expires_at; -}; - -struct _PublishingAuthenticatorShotwellGoogleSessionClass { - PublishingRESTSupportSessionClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellGoogleGoogle { - GObject parent_instance; - PublishingAuthenticatorShotwellGoogleGooglePrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellGoogleGoogleClass { - GObjectClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellGoogleGooglePrivate { - gchar* scope; - SpitPublishingPluginHost* host; - GHashTable* params; - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* web_auth_pane; - PublishingAuthenticatorShotwellGoogleSession* session; - gchar* welcome_message; -}; - - -static gpointer publishing_authenticator_shotwell_google_web_authentication_pane_parent_class = NULL; -extern gboolean publishing_authenticator_shotwell_google_web_authentication_pane_cache_dirty; -gboolean publishing_authenticator_shotwell_google_web_authentication_pane_cache_dirty = FALSE; -static gpointer publishing_authenticator_shotwell_google_session_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_google_get_access_tokens_transaction_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_google_refresh_access_token_transaction_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_google_username_fetch_transaction_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_google_google_parent_class = NULL; -static SpitPublishingAuthenticatorIface * publishing_authenticator_shotwell_google_google_spit_publishing_authenticator_parent_iface = NULL; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CLIENT_ID "534227538559-hvj2e8bj0vfv2f49r7gvjoq6jibfav67.apps.googleusercontent.c" \ -"om" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REVERSE_CLIENT_ID "com.googleusercontent.apps.534227538559-hvj2e8bj0vfv2f49r7gvjoq6jibfav" \ -"67" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CLIENT_SECRET "pwpzZ7W1TCcD5uIfYCu8sM7x" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CALLBACK_URI PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REVERSE_CLIENT_ID ":/auth-callback" -GType publishing_authenticator_shotwell_google_web_authentication_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellGoogleWebAuthenticationPanePrivate)) -static void publishing_authenticator_shotwell_google_web_authentication_pane_real_constructed (GObject* base); -static void publishing_authenticator_shotwell_google_web_authentication_pane_on_shotwell_auth_request_cb (PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* self, - WebKitURISchemeRequest* request); -static void _publishing_authenticator_shotwell_google_web_authentication_pane_on_shotwell_auth_request_cb_web_kit_uri_scheme_request_callback (WebKitURISchemeRequest* request, - gpointer self); -static void publishing_authenticator_shotwell_google_web_authentication_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* base); -static void _vala_SoupURI_free (SoupURI* self); -static guint8* _vala_array_dup2 (guint8* self, - int length); -PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* publishing_authenticator_shotwell_google_web_authentication_pane_new (const gchar* auth_sequence_start_url); -PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* publishing_authenticator_shotwell_google_web_authentication_pane_construct (GType object_type, - const gchar* auth_sequence_start_url); -gboolean publishing_authenticator_shotwell_google_web_authentication_pane_is_cache_dirty (void); -static void publishing_authenticator_shotwell_google_web_authentication_pane_finalize (GObject * obj); -GType publishing_authenticator_shotwell_google_session_get_type (void) G_GNUC_CONST; -static gboolean publishing_authenticator_shotwell_google_session_real_is_authenticated (PublishingRESTSupportSession* base); -void publishing_authenticator_shotwell_google_session_deauthenticate (PublishingAuthenticatorShotwellGoogleSession* self); -PublishingAuthenticatorShotwellGoogleSession* publishing_authenticator_shotwell_google_session_new (void); -PublishingAuthenticatorShotwellGoogleSession* publishing_authenticator_shotwell_google_session_construct (GType object_type); -static void publishing_authenticator_shotwell_google_session_finalize (PublishingRESTSupportSession * obj); -GType publishing_authenticator_shotwell_google_get_access_tokens_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GET_ACCESS_TOKENS_TRANSACTION_ENDPOINT_URL "https://accounts.google.com/o/oauth2/token" -PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction* publishing_authenticator_shotwell_google_get_access_tokens_transaction_new (PublishingAuthenticatorShotwellGoogleSession* session, - const gchar* auth_code); -PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction* publishing_authenticator_shotwell_google_get_access_tokens_transaction_construct (GType object_type, - PublishingAuthenticatorShotwellGoogleSession* session, - const gchar* auth_code); -GType publishing_authenticator_shotwell_google_refresh_access_token_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REFRESH_ACCESS_TOKEN_TRANSACTION_ENDPOINT_URL "https://accounts.google.com/o/oauth2/token" -PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction* publishing_authenticator_shotwell_google_refresh_access_token_transaction_new (PublishingAuthenticatorShotwellGoogleSession* session); -PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction* publishing_authenticator_shotwell_google_refresh_access_token_transaction_construct (GType object_type, - PublishingAuthenticatorShotwellGoogleSession* session); -GType publishing_authenticator_shotwell_google_username_fetch_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_USERNAME_FETCH_TRANSACTION_ENDPOINT_URL "https://www.googleapis.com/oauth2/v1/userinfo" -PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction* publishing_authenticator_shotwell_google_username_fetch_transaction_new (PublishingAuthenticatorShotwellGoogleSession* session); -PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction* publishing_authenticator_shotwell_google_username_fetch_transaction_construct (GType object_type, - PublishingAuthenticatorShotwellGoogleSession* session); -GType publishing_authenticator_shotwell_google_google_get_type (void) G_GNUC_CONST; -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGooglePrivate)) -PublishingAuthenticatorShotwellGoogleGoogle* publishing_authenticator_shotwell_google_google_new (const gchar* scope, - const gchar* welcome_message, - SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellGoogleGoogle* publishing_authenticator_shotwell_google_google_construct (GType object_type, - const gchar* scope, - const gchar* welcome_message, - SpitPublishingPluginHost* host); -static void _g_free0_ (gpointer var); -static void _g_variant_unref0_ (gpointer var); -static void publishing_authenticator_shotwell_google_google_real_authenticate (SpitPublishingAuthenticator* base); -static void publishing_authenticator_shotwell_google_google_on_refresh_token_available (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* token); -static void publishing_authenticator_shotwell_google_google_do_exchange_refresh_token_for_access_token (PublishingAuthenticatorShotwellGoogleGoogle* self); -static void publishing_authenticator_shotwell_google_google_do_show_service_welcome_pane (PublishingAuthenticatorShotwellGoogleGoogle* self); -static gboolean publishing_authenticator_shotwell_google_google_real_can_logout (SpitPublishingAuthenticator* base); -static GHashTable* publishing_authenticator_shotwell_google_google_real_get_authentication_parameter (SpitPublishingAuthenticator* base); -static void publishing_authenticator_shotwell_google_google_real_logout (SpitPublishingAuthenticator* base); -static void publishing_authenticator_shotwell_google_google_real_refresh (SpitPublishingAuthenticator* base); -static void publishing_authenticator_shotwell_google_google_do_hosted_web_authentication (PublishingAuthenticatorShotwellGoogleGoogle* self); -static void publishing_authenticator_shotwell_google_google_on_web_auth_pane_authorized (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* auth_code); -static void _publishing_authenticator_shotwell_google_google_on_web_auth_pane_authorized_publishing_authenticator_shotwell_google_web_authentication_pane_authorized (PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* _sender, - const gchar* auth_code, - gpointer self); -static void publishing_authenticator_shotwell_google_google_do_get_access_tokens (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* auth_code); -static void publishing_authenticator_shotwell_google_google_on_get_access_tokens_complete (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_authenticator_shotwell_google_google_on_get_access_tokens_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_authenticator_shotwell_google_google_on_get_access_tokens_error (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn, - GError* err); -static void _publishing_authenticator_shotwell_google_google_on_get_access_tokens_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_authenticator_shotwell_google_google_do_extract_tokens (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* response_body); -static void publishing_authenticator_shotwell_google_google_on_expiry_time_avilable (PublishingAuthenticatorShotwellGoogleGoogle* self, - gint64 abs_time); -static void publishing_authenticator_shotwell_google_google_on_access_token_available (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* token); -static void publishing_authenticator_shotwell_google_google_do_fetch_username (PublishingAuthenticatorShotwellGoogleGoogle* self); -static void publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_completed (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_error (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn, - GError* err); -static void _publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_authenticator_shotwell_google_google_do_extract_username (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* response_body); -static void publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_completed (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_error (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn, - GError* err); -static void _publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static gboolean ___lambda4_ (PublishingAuthenticatorShotwellGoogleGoogle* self); -static gboolean ____lambda4__gsource_func (gpointer self); -static void publishing_authenticator_shotwell_google_google_on_service_welcome_login (PublishingAuthenticatorShotwellGoogleGoogle* self); -static void _publishing_authenticator_shotwell_google_google_on_service_welcome_login_spit_publishing_login_callback (gpointer self); -static void publishing_authenticator_shotwell_google_google_finalize (GObject * obj); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self ? g_object_ref (self) : NULL; -#line 317 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_web_authentication_pane_on_shotwell_auth_request_cb_web_kit_uri_scheme_request_callback (WebKitURISchemeRequest* request, - gpointer self) -{ -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_web_authentication_pane_on_shotwell_auth_request_cb ((PublishingAuthenticatorShotwellGoogleWebAuthenticationPane*) self, request); -#line 327 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_web_authentication_pane_real_constructed (GObject* base) -{ - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane * self; - WebKitWebContext* ctx = NULL; - WebKitWebContext* _tmp0_; - WebKitWebContext* _tmp1_; -#line 16 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellGoogleWebAuthenticationPane); -#line 17 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_google_web_authentication_pane_parent_class)->constructed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane), G_TYPE_OBJECT, GObject)); -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = webkit_web_context_get_default (); -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - ctx = _tmp1_; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - webkit_web_context_register_uri_scheme (ctx, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REVERSE_CLIENT_ID, _publishing_authenticator_shotwell_google_web_authentication_pane_on_shotwell_auth_request_cb_web_kit_uri_scheme_request_callback, g_object_ref (self), g_object_unref); -#line 16 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (ctx); -#line 352 "GoogleAuthenticator.c" -} - - -static void -_vala_SoupURI_free (SoupURI* self) -{ -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_boxed_free (soup_uri_get_type (), self); -#line 361 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_web_authentication_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* base) -{ - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane * self; - SoupURI* uri = NULL; - WebKitWebView* _tmp0_; - WebKitWebView* _tmp1_; - const gchar* _tmp2_; - SoupURI* _tmp3_; - SoupURI* _tmp4_; - gboolean _tmp5_ = FALSE; - SoupURI* _tmp6_; - const gchar* _tmp7_; - const gchar* _tmp9_; -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellGoogleWebAuthenticationPane); -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = shotwell_plugins_common_web_authentication_pane_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane)); -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = _tmp0_; -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = webkit_web_view_get_uri (_tmp1_); -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = soup_uri_new (_tmp2_); -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = _tmp3_; -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (_tmp1_); -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - uri = _tmp4_; -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp6_ = uri; -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp7_ = _tmp6_->scheme; -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (g_strcmp0 (_tmp7_, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REVERSE_CLIENT_ID) == 0) { -#line 401 "GoogleAuthenticator.c" - const gchar* _tmp8_; -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp8_ = self->priv->auth_code; -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = _tmp8_ == NULL; -#line 407 "GoogleAuthenticator.c" - } else { -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = FALSE; -#line 411 "GoogleAuthenticator.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (_tmp5_) { -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_emit (self, publishing_authenticator_shotwell_google_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_ERROR_SIGNAL], 0); -#line 417 "GoogleAuthenticator.c" - } -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp9_ = self->priv->auth_code; -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (_tmp9_ != NULL) { -#line 423 "GoogleAuthenticator.c" - const gchar* _tmp10_; -#line 30 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp10_ = self->priv->auth_code; -#line 30 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_emit (self, publishing_authenticator_shotwell_google_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_AUTHORIZED_SIGNAL], 0, _tmp10_); -#line 429 "GoogleAuthenticator.c" - } -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - __vala_SoupURI_free0 (uri); -#line 433 "GoogleAuthenticator.c" -} - - -static guint8* -string_get_data (const gchar* self, - int* result_length1) -{ - guint8* result; - guint8* res = NULL; - gint res_length1; - gint _res_size_; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - guint8* _tmp3_; - gint _tmp3__length1; - guint8* _tmp4_; - gint _tmp4__length1; -#line 1442 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = (guint8*) self; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = -1; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _res_size_ = res_length1; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = (gint) _tmp1_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = res; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3__length1 = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4__length1 = _tmp3__length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (result_length1) { -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result_length1 = _tmp4__length1; -#line 480 "GoogleAuthenticator.c" - } -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp4_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 486 "GoogleAuthenticator.c" -} - - -static guint8* -_vala_array_dup2 (guint8* self, - int length) -{ -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return g_memdup (self, length * sizeof (guint8)); -#line 496 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_web_authentication_pane_on_shotwell_auth_request_cb (PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* self, - WebKitURISchemeRequest* request) -{ - SoupURI* uri = NULL; - const gchar* _tmp0_; - SoupURI* _tmp1_; - const gchar* _tmp2_; - GHashTable* form_data = NULL; - const gchar* _tmp3_; - GHashTable* _tmp4_; - gconstpointer _tmp5_; - gchar* _tmp6_; - gchar* response = NULL; - gchar* _tmp7_; - GMemoryInputStream* mins = NULL; - guint8* _tmp8_; - gint _tmp8__length1; - guint8* _tmp9_; - gint _tmp9__length1; - guint8* _tmp10_; - gint _tmp10__length1; - GMemoryInputStream* _tmp11_; -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_WEB_AUTHENTICATION_PANE (self)); -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (WEBKIT_IS_URI_SCHEME_REQUEST (request)); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = webkit_uri_scheme_request_get_uri (request); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = soup_uri_new (_tmp0_); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - uri = _tmp1_; -#line 36 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = webkit_uri_scheme_request_get_uri (request); -#line 36 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:36: URI: %s", _tmp2_); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = uri->query; -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = soup_form_decode (_tmp3_); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - form_data = _tmp4_; -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = g_hash_table_lookup (form_data, "code"); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp6_ = g_strdup ((const gchar*) _tmp5_); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->priv->auth_code); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->auth_code = _tmp6_; -#line 40 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp7_ = g_strdup (""); -#line 40 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - response = _tmp7_; -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp8_ = string_get_data (response, &_tmp8__length1); -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp9_ = _tmp8_; -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp9__length1 = _tmp8__length1; -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp10_ = (_tmp9_ != NULL) ? _vala_array_dup2 (_tmp9_, _tmp9__length1) : ((gpointer) _tmp9_); -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp10__length1 = _tmp9__length1; -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp11_ = (GMemoryInputStream*) g_memory_input_stream_new_from_data (_tmp10_, _tmp10__length1, NULL); -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - mins = _tmp11_; -#line 42 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - webkit_uri_scheme_request_finish (request, G_TYPE_CHECK_INSTANCE_CAST (mins, g_input_stream_get_type (), GInputStream), (gint64) -1, "text/plain"); -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (mins); -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (response); -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_hash_table_unref0 (form_data); -#line 34 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - __vala_SoupURI_free0 (uri); -#line 579 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* -publishing_authenticator_shotwell_google_web_authentication_pane_construct (GType object_type, - const gchar* auth_sequence_start_url) -{ - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane * self = NULL; -#line 47 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_val_if_fail (auth_sequence_start_url != NULL, NULL); -#line 48 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = (PublishingAuthenticatorShotwellGoogleWebAuthenticationPane*) g_object_new (object_type, "login-uri", auth_sequence_start_url, NULL); -#line 47 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self; -#line 594 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* -publishing_authenticator_shotwell_google_web_authentication_pane_new (const gchar* auth_sequence_start_url) -{ -#line 47 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return publishing_authenticator_shotwell_google_web_authentication_pane_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, auth_sequence_start_url); -#line 603 "GoogleAuthenticator.c" -} - - -gboolean -publishing_authenticator_shotwell_google_web_authentication_pane_is_cache_dirty (void) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = publishing_authenticator_shotwell_google_web_authentication_pane_cache_dirty; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - result = _tmp0_; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return result; -#line 618 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_web_authentication_pane_class_init (PublishingAuthenticatorShotwellGoogleWebAuthenticationPaneClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_web_authentication_pane_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_type_class_add_private (klass, sizeof (PublishingAuthenticatorShotwellGoogleWebAuthenticationPanePrivate)); -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) publishing_authenticator_shotwell_google_web_authentication_pane_real_constructed; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - ((ShotwellPluginsCommonWebAuthenticationPaneClass *) klass)->on_page_load = (void (*) (ShotwellPluginsCommonWebAuthenticationPane *)) publishing_authenticator_shotwell_google_web_authentication_pane_real_on_page_load; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_authenticator_shotwell_google_web_authentication_pane_finalize; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_ERROR_SIGNAL] = g_signal_new ("error", PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_web_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_AUTHORIZED_SIGNAL] = g_signal_new ("authorized", PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); -#line 639 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_web_authentication_pane_instance_init (PublishingAuthenticatorShotwellGoogleWebAuthenticationPane * self) -{ -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv = PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_WEB_AUTHENTICATION_PANE_GET_PRIVATE (self); -#line 12 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->auth_code = NULL; -#line 650 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_web_authentication_pane_finalize (GObject * obj) -{ - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane * self; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellGoogleWebAuthenticationPane); -#line 12 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->priv->auth_code); -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_google_web_authentication_pane_parent_class)->finalize (obj); -#line 664 "GoogleAuthenticator.c" -} - - -GType -publishing_authenticator_shotwell_google_web_authentication_pane_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_google_web_authentication_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_google_web_authentication_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellGoogleWebAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_google_web_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellGoogleWebAuthenticationPane), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_google_web_authentication_pane_instance_init, NULL }; - GType publishing_authenticator_shotwell_google_web_authentication_pane_type_id; - publishing_authenticator_shotwell_google_web_authentication_pane_type_id = g_type_register_static (SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, "PublishingAuthenticatorShotwellGoogleWebAuthenticationPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_google_web_authentication_pane_type_id__volatile, publishing_authenticator_shotwell_google_web_authentication_pane_type_id); - } - return publishing_authenticator_shotwell_google_web_authentication_pane_type_id__volatile; -} - - -static gboolean -publishing_authenticator_shotwell_google_session_real_is_authenticated (PublishingRESTSupportSession* base) -{ - PublishingAuthenticatorShotwellGoogleSession * self; - gboolean result = FALSE; - const gchar* _tmp0_; -#line 61 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION, PublishingAuthenticatorShotwellGoogleSession); -#line 62 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->access_token; -#line 62 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - result = _tmp0_ != NULL; -#line 62 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return result; -#line 696 "GoogleAuthenticator.c" -} - - -void -publishing_authenticator_shotwell_google_session_deauthenticate (PublishingAuthenticatorShotwellGoogleSession* self) -{ -#line 65 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_SESSION (self)); -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->access_token); -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->access_token = NULL; -#line 67 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->refresh_token); -#line 67 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->refresh_token = NULL; -#line 68 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->expires_at = (gint64) -1; -#line 715 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleSession* -publishing_authenticator_shotwell_google_session_construct (GType object_type) -{ - PublishingAuthenticatorShotwellGoogleSession* self = NULL; -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = (PublishingAuthenticatorShotwellGoogleSession*) publishing_rest_support_session_construct (object_type, NULL); -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self; -#line 727 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleSession* -publishing_authenticator_shotwell_google_session_new (void) -{ -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return publishing_authenticator_shotwell_google_session_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION); -#line 736 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_session_class_init (PublishingAuthenticatorShotwellGoogleSessionClass * klass) -{ -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_session_parent_class = g_type_class_peek_parent (klass); -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_authenticator_shotwell_google_session_finalize; -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = (gboolean (*) (PublishingRESTSupportSession *)) publishing_authenticator_shotwell_google_session_real_is_authenticated; -#line 749 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_session_instance_init (PublishingAuthenticatorShotwellGoogleSession * self) -{ -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->access_token = NULL; -#line 58 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->refresh_token = NULL; -#line 59 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->expires_at = (gint64) -1; -#line 762 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_session_finalize (PublishingRESTSupportSession * obj) -{ - PublishingAuthenticatorShotwellGoogleSession * self; -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_SESSION, PublishingAuthenticatorShotwellGoogleSession); -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->access_token); -#line 58 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->refresh_token); -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_authenticator_shotwell_google_session_parent_class)->finalize (obj); -#line 778 "GoogleAuthenticator.c" -} - - -GType -publishing_authenticator_shotwell_google_session_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_google_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_google_session_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellGoogleSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_google_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellGoogleSession), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_google_session_instance_init, NULL }; - GType publishing_authenticator_shotwell_google_session_type_id; - publishing_authenticator_shotwell_google_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingAuthenticatorShotwellGoogleSession", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_google_session_type_id__volatile, publishing_authenticator_shotwell_google_session_type_id); - } - return publishing_authenticator_shotwell_google_session_type_id__volatile; -} - - -PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction* -publishing_authenticator_shotwell_google_get_access_tokens_transaction_construct (GType object_type, - PublishingAuthenticatorShotwellGoogleSession* session, - const gchar* auth_code) -{ - PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction* self = NULL; -#line 75 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_SESSION (session), NULL); -#line 75 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_val_if_fail (auth_code != NULL, NULL); -#line 76 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = (PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GET_ACCESS_TOKENS_TRANSACTION_ENDPOINT_URL, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 78 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "code", auth_code); -#line 79 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "client_id", PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CLIENT_ID); -#line 80 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "client_secret", PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CLIENT_SECRET); -#line 81 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "redirect_uri", PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CALLBACK_URI); -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "grant_type", "authorization_code"); -#line 75 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self; -#line 820 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction* -publishing_authenticator_shotwell_google_get_access_tokens_transaction_new (PublishingAuthenticatorShotwellGoogleSession* session, - const gchar* auth_code) -{ -#line 75 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return publishing_authenticator_shotwell_google_get_access_tokens_transaction_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GET_ACCESS_TOKENS_TRANSACTION, session, auth_code); -#line 830 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_get_access_tokens_transaction_class_init (PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionClass * klass) -{ -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_get_access_tokens_transaction_parent_class = g_type_class_peek_parent (klass); -#line 839 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_get_access_tokens_transaction_instance_init (PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction * self) -{ -} - - -GType -publishing_authenticator_shotwell_google_get_access_tokens_transaction_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_google_get_access_tokens_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_google_get_access_tokens_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellGoogleGetAccessTokensTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_google_get_access_tokens_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_google_get_access_tokens_transaction_instance_init, NULL }; - GType publishing_authenticator_shotwell_google_get_access_tokens_transaction_type_id; - publishing_authenticator_shotwell_google_get_access_tokens_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_google_get_access_tokens_transaction_type_id__volatile, publishing_authenticator_shotwell_google_get_access_tokens_transaction_type_id); - } - return publishing_authenticator_shotwell_google_get_access_tokens_transaction_type_id__volatile; -} - - -PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction* -publishing_authenticator_shotwell_google_refresh_access_token_transaction_construct (GType object_type, - PublishingAuthenticatorShotwellGoogleSession* session) -{ - PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction* self = NULL; - const gchar* _tmp0_; -#line 89 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_SESSION (session), NULL); -#line 90 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = (PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_REFRESH_ACCESS_TOKEN_TRANSACTION_ENDPOINT_URL, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 92 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "client_id", PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CLIENT_ID); -#line 93 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "client_secret", PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CLIENT_SECRET); -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = session->refresh_token; -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "refresh_token", _tmp0_); -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "grant_type", "refresh_token"); -#line 89 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self; -#line 885 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction* -publishing_authenticator_shotwell_google_refresh_access_token_transaction_new (PublishingAuthenticatorShotwellGoogleSession* session) -{ -#line 89 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return publishing_authenticator_shotwell_google_refresh_access_token_transaction_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_REFRESH_ACCESS_TOKEN_TRANSACTION, session); -#line 894 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_refresh_access_token_transaction_class_init (PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionClass * klass) -{ -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_refresh_access_token_transaction_parent_class = g_type_class_peek_parent (klass); -#line 903 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_refresh_access_token_transaction_instance_init (PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction * self) -{ -} - - -GType -publishing_authenticator_shotwell_google_refresh_access_token_transaction_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_google_refresh_access_token_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_google_refresh_access_token_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_google_refresh_access_token_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_google_refresh_access_token_transaction_instance_init, NULL }; - GType publishing_authenticator_shotwell_google_refresh_access_token_transaction_type_id; - publishing_authenticator_shotwell_google_refresh_access_token_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_google_refresh_access_token_transaction_type_id__volatile, publishing_authenticator_shotwell_google_refresh_access_token_transaction_type_id); - } - return publishing_authenticator_shotwell_google_refresh_access_token_transaction_type_id__volatile; -} - - -PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction* -publishing_authenticator_shotwell_google_username_fetch_transaction_construct (GType object_type, - PublishingAuthenticatorShotwellGoogleSession* session) -{ - PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction* self = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 101 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_SESSION (session), NULL); -#line 102 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = (PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_USERNAME_FETCH_TRANSACTION_ENDPOINT_URL, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = session->access_token; -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = g_strconcat ("Bearer ", _tmp0_, NULL); -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = _tmp1_; -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Authorization", _tmp2_); -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp2_); -#line 101 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self; -#line 951 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction* -publishing_authenticator_shotwell_google_username_fetch_transaction_new (PublishingAuthenticatorShotwellGoogleSession* session) -{ -#line 101 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return publishing_authenticator_shotwell_google_username_fetch_transaction_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_USERNAME_FETCH_TRANSACTION, session); -#line 960 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_username_fetch_transaction_class_init (PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionClass * klass) -{ -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_username_fetch_transaction_parent_class = g_type_class_peek_parent (klass); -#line 969 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_username_fetch_transaction_instance_init (PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction * self) -{ -} - - -GType -publishing_authenticator_shotwell_google_username_fetch_transaction_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_google_username_fetch_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_google_username_fetch_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellGoogleUsernameFetchTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_google_username_fetch_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_google_username_fetch_transaction_instance_init, NULL }; - GType publishing_authenticator_shotwell_google_username_fetch_transaction_type_id; - publishing_authenticator_shotwell_google_username_fetch_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_google_username_fetch_transaction_type_id__volatile, publishing_authenticator_shotwell_google_username_fetch_transaction_type_id); - } - return publishing_authenticator_shotwell_google_username_fetch_transaction_type_id__volatile; -} - - -static void -_g_free0_ (gpointer var) -{ -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - var = (g_free (var), NULL); -#line 998 "GoogleAuthenticator.c" -} - - -static void -_g_variant_unref0_ (gpointer var) -{ -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - (var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)); -#line 1007 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleGoogle* -publishing_authenticator_shotwell_google_google_construct (GType object_type, - const gchar* scope, - const gchar* welcome_message, - SpitPublishingPluginHost* host) -{ - PublishingAuthenticatorShotwellGoogleGoogle * self = NULL; - SpitPublishingPluginHost* _tmp0_; - GHashFunc _tmp1_; - GEqualFunc _tmp2_; - GHashTable* _tmp3_; - gchar* _tmp4_; - PublishingAuthenticatorShotwellGoogleSession* _tmp5_; - gchar* _tmp6_; -#line 115 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_val_if_fail (scope != NULL, NULL); -#line 115 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_val_if_fail (welcome_message != NULL, NULL); -#line 115 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 115 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = (PublishingAuthenticatorShotwellGoogleGoogle*) g_object_new (object_type, NULL); -#line 118 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = _g_object_ref0 (host); -#line 118 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (self->priv->host); -#line 118 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->host = _tmp0_; -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = g_str_hash; -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = g_str_equal; -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = g_hash_table_new_full (_tmp1_, _tmp2_, _g_free0_, _g_variant_unref0_); -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_hash_table_unref0 (self->priv->params); -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->params = _tmp3_; -#line 120 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = g_strdup (scope); -#line 120 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->priv->scope); -#line 120 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->scope = _tmp4_; -#line 121 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = publishing_authenticator_shotwell_google_session_new (); -#line 121 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 121 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->session = _tmp5_; -#line 122 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp6_ = g_strdup (welcome_message); -#line 122 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->priv->welcome_message); -#line 122 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->welcome_message = _tmp6_; -#line 115 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self; -#line 1069 "GoogleAuthenticator.c" -} - - -PublishingAuthenticatorShotwellGoogleGoogle* -publishing_authenticator_shotwell_google_google_new (const gchar* scope, - const gchar* welcome_message, - SpitPublishingPluginHost* host) -{ -#line 115 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return publishing_authenticator_shotwell_google_google_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, scope, welcome_message, host); -#line 1080 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_real_authenticate (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellGoogleGoogle * self; - gchar* refresh_token = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_ = FALSE; - const gchar* _tmp3_; -#line 125 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogle); -#line 126 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 126 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "refresh_token", NULL); -#line 126 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - refresh_token = _tmp1_; -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = refresh_token; -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (_tmp3_ != NULL) { -#line 1105 "GoogleAuthenticator.c" - const gchar* _tmp4_; -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = refresh_token; -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = g_strcmp0 (_tmp4_, "") != 0; -#line 1111 "GoogleAuthenticator.c" - } else { -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = FALSE; -#line 1115 "GoogleAuthenticator.c" - } -#line 127 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (_tmp2_) { -#line 1119 "GoogleAuthenticator.c" - const gchar* _tmp5_; -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = refresh_token; -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_refresh_token_available (self, _tmp5_); -#line 129 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_do_exchange_refresh_token_for_access_token (self); -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (refresh_token); -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 1131 "GoogleAuthenticator.c" - } -#line 134 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (publishing_authenticator_shotwell_google_web_authentication_pane_is_cache_dirty ()) { -#line 1135 "GoogleAuthenticator.c" - SpitPublishingPluginHost* _tmp6_; - SpitPublishingPluginHost* _tmp7_; -#line 135 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp6_ = self->priv->host; -#line 135 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp6_, FALSE); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp7_ = self->priv->host; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_install_static_message_pane (_tmp7_, _ ("You have already logged in and out of a Google service during this Sho" \ -"twell session.\n" \ -"\n" \ -"To continue publishing to Google services, quit and restart Shotwell, " \ -"then try publishing again."), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 1146 "GoogleAuthenticator.c" - } else { -#line 139 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_do_show_service_welcome_pane (self); -#line 1150 "GoogleAuthenticator.c" - } -#line 125 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (refresh_token); -#line 1154 "GoogleAuthenticator.c" -} - - -static gboolean -publishing_authenticator_shotwell_google_google_real_can_logout (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellGoogleGoogle * self; - gboolean result = FALSE; -#line 143 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogle); -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - result = TRUE; -#line 144 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return result; -#line 1169 "GoogleAuthenticator.c" -} - - -static gpointer -_g_hash_table_ref0 (gpointer self) -{ -#line 148 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self ? g_hash_table_ref (self) : NULL; -#line 1178 "GoogleAuthenticator.c" -} - - -static GHashTable* -publishing_authenticator_shotwell_google_google_real_get_authentication_parameter (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellGoogleGoogle * self; - GHashTable* result = NULL; - GHashTable* _tmp0_; - GHashTable* _tmp1_; -#line 147 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogle); -#line 148 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->params; -#line 148 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = _g_hash_table_ref0 (_tmp0_); -#line 148 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - result = _tmp1_; -#line 148 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return result; -#line 1199 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_real_logout (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellGoogleGoogle * self; - PublishingAuthenticatorShotwellGoogleSession* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 151 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogle); -#line 152 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->session; -#line 152 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_session_deauthenticate (_tmp0_); -#line 153 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = self->priv->host; -#line 153 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "refresh_token", ""); -#line 1219 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_real_refresh (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellGoogleGoogle * self; -#line 156 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogle); -#line 1229 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_google_on_web_auth_pane_authorized_publishing_authenticator_shotwell_google_web_authentication_pane_authorized (PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* _sender, - const gchar* auth_code, - gpointer self) -{ -#line 174 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_web_auth_pane_authorized ((PublishingAuthenticatorShotwellGoogleGoogle*) self, auth_code); -#line 1240 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_do_hosted_web_authentication (PublishingAuthenticatorShotwellGoogleGoogle* self) -{ - gchar* user_authorization_url = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* _tmp27_; - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* _tmp28_; - SpitPublishingPluginHost* _tmp29_; - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* _tmp30_; -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 161 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:161: ACTION: running OAuth authentication flo" \ -"w in hosted web pane."); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = soup_uri_encode (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CALLBACK_URI, NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = _tmp0_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = g_strconcat ("https://accounts.google.com/o/oauth2/auth?" "response_type=code&" "client_id=" PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_OAUTH_CLIENT_ID "&" "redirect_uri=", _tmp1_, NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = g_strconcat (_tmp3_, "&", NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = _tmp4_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp6_ = g_strconcat (_tmp5_, "scope=", NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp7_ = _tmp6_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp8_ = self->priv->scope; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp9_ = soup_uri_encode (_tmp8_, NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp10_ = _tmp9_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp11_ = g_strconcat (_tmp7_, _tmp10_, NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp12_ = _tmp11_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp13_ = g_strconcat (_tmp12_, "+", NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp14_ = _tmp13_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp15_ = soup_uri_encode ("https://www.googleapis.com/auth/userinfo.profile", NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp16_ = _tmp15_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp17_ = g_strconcat (_tmp14_, _tmp16_, NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp18_ = _tmp17_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp19_ = g_strconcat (_tmp18_, "&", NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp20_ = _tmp19_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp21_ = g_strconcat (_tmp20_, "state=connect&", NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp22_ = _tmp21_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp23_ = g_strconcat (_tmp22_, "access_type=offline&", NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp24_ = _tmp23_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp25_ = g_strconcat (_tmp24_, "approval_prompt=force", NULL); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp26_ = _tmp25_; -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp24_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp22_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp20_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp18_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp16_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp14_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp12_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp10_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp7_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp5_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp3_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp1_); -#line 163 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - user_authorization_url = _tmp26_; -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp27_ = publishing_authenticator_shotwell_google_web_authentication_pane_new (user_authorization_url); -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (self->priv->web_auth_pane); -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->web_auth_pane = _tmp27_; -#line 174 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp28_ = self->priv->web_auth_pane; -#line 174 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_connect_object (_tmp28_, "authorized", (GCallback) _publishing_authenticator_shotwell_google_google_on_web_auth_pane_authorized_publishing_authenticator_shotwell_google_web_authentication_pane_authorized, self, 0); -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp29_ = self->priv->host; -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp30_ = self->priv->web_auth_pane; -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp29_, G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 160 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (user_authorization_url); -#line 1381 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_web_auth_pane_authorized (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* auth_code) -{ - PublishingAuthenticatorShotwellGoogleWebAuthenticationPane* _tmp0_; - guint _tmp1_; - const gchar* _tmp2_; -#line 179 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 179 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (auth_code != NULL); -#line 180 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->web_auth_pane; -#line 180 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("authorized", PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_WEB_AUTHENTICATION_PANE, &_tmp1_, NULL, FALSE); -#line 180 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_web_auth_pane_authorized_publishing_authenticator_shotwell_google_web_authentication_pane_authorized, self); -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = self->priv->scope; -#line 182 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:182: EVENT: user authorized scope %s with aut" \ -"h_code %s", _tmp2_, auth_code); -#line 184 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_do_get_access_tokens (self, auth_code); -#line 1408 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_google_on_get_access_tokens_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_get_access_tokens_complete ((PublishingAuthenticatorShotwellGoogleGoogle*) self, _sender); -#line 1418 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_google_on_get_access_tokens_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 194 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_get_access_tokens_error ((PublishingAuthenticatorShotwellGoogleGoogle*) self, _sender, err); -#line 1429 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_do_get_access_tokens (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* auth_code) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction* tokens_txn = NULL; - PublishingAuthenticatorShotwellGoogleSession* _tmp1_; - PublishingAuthenticatorShotwellGoogleGetAccessTokensTransaction* _tmp2_; - GError * _inner_error_ = NULL; -#line 187 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 187 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (auth_code != NULL); -#line 188 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:188: ACTION: exchanging authorization code fo" \ -"r access & refresh tokens"); -#line 190 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 190 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_install_login_wait_pane (_tmp0_); -#line 192 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = self->priv->session; -#line 192 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = publishing_authenticator_shotwell_google_get_access_tokens_transaction_new (_tmp1_, auth_code); -#line 192 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - tokens_txn = _tmp2_; -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (tokens_txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_authenticator_shotwell_google_google_on_get_access_tokens_complete_publishing_rest_support_transaction_completed, self, 0); -#line 194 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (tokens_txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_authenticator_shotwell_google_google_on_get_access_tokens_error_publishing_rest_support_transaction_network_error, self, 0); -#line 1462 "GoogleAuthenticator.c" - { -#line 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (tokens_txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 1470 "GoogleAuthenticator.c" - goto __catch3_spit_publishing_publishing_error; - } -#line 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (tokens_txn); -#line 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 197 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 1481 "GoogleAuthenticator.c" - } - } - goto __finally3; - __catch3_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp3_; - GError* _tmp4_; -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - err = _inner_error_; -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _inner_error_ = NULL; -#line 199 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = self->priv->host; -#line 199 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = err; -#line 199 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp3_, _tmp4_); -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_error_free0 (err); -#line 1502 "GoogleAuthenticator.c" - } - __finally3: -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (tokens_txn); -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 196 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 1515 "GoogleAuthenticator.c" - } -#line 187 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (tokens_txn); -#line 1519 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_get_access_tokens_complete (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 203 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 203 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 204 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 204 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_get_access_tokens_complete_publishing_rest_support_transaction_completed, self); -#line 205 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 205 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_get_access_tokens_error_publishing_rest_support_transaction_network_error, self); -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:207: %s", "EVENT: network transaction to exchange authorization code for access t" \ -"okens " "completed successfully."); -#line 210 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 210 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 210 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_do_extract_tokens (self, _tmp3_); -#line 210 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp3_); -#line 1553 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_get_access_tokens_error (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - SpitPublishingPluginHost* _tmp4_; -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 215 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 215 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_get_access_tokens_complete_publishing_rest_support_transaction_completed, self); -#line 216 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 216 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_get_access_tokens_error_publishing_rest_support_transaction_network_error, self); -#line 218 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 218 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 218 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("EVENT: network transaction to exchange authorization code for access t" \ -"okens " "failed; response = '%s'", _tmp3_); -#line 218 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp3_); -#line 221 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = self->priv->host; -#line 221 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp4_, err); -#line 1591 "GoogleAuthenticator.c" -} - - -static gpointer -_json_object_ref0 (gpointer self) -{ -#line 237 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return self ? json_object_ref (self) : NULL; -#line 1600 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_do_extract_tokens (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* response_body) -{ - JsonParser* parser = NULL; - JsonParser* _tmp0_; - JsonObject* response_obj = NULL; - JsonParser* _tmp9_; - JsonNode* _tmp10_; - JsonObject* _tmp11_; - JsonObject* _tmp12_; - gboolean _tmp13_ = FALSE; - JsonObject* _tmp14_; - JsonObject* _tmp19_; - JsonObject* _tmp23_; - JsonObject* _tmp29_; - GError * _inner_error_ = NULL; -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (response_body != NULL); -#line 225 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:225: ACTION: extracting OAuth tokens from bod" \ -"y of server response"); -#line 227 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = json_parser_new (); -#line 227 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - parser = _tmp0_; -#line 1631 "GoogleAuthenticator.c" - { - JsonParser* _tmp1_; -#line 230 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = parser; -#line 230 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - json_parser_load_from_data (_tmp1_, response_body, (gssize) -1, &_inner_error_); -#line 230 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1640 "GoogleAuthenticator.c" - goto __catch4_g_error; - } - } - goto __finally4; - __catch4_g_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp2_; - GError* _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GError* _tmp7_; - GError* _tmp8_; -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - err = _inner_error_; -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _inner_error_ = NULL; -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = self->priv->host; -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = err; -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = _tmp3_->message; -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = g_strconcat ("Couldn't parse JSON response: ", _tmp4_, NULL); -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp6_ = _tmp5_; -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp7_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, _tmp6_); -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp8_ = _tmp7_; -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp2_, _tmp8_); -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_error_free0 (_tmp8_); -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp6_); -#line 234 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_error_free0 (err); -#line 234 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (parser); -#line 234 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 1685 "GoogleAuthenticator.c" - } - __finally4: -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (parser); -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 229 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 1698 "GoogleAuthenticator.c" - } -#line 237 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp9_ = parser; -#line 237 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp10_ = json_parser_get_root (_tmp9_); -#line 237 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp11_ = json_node_get_object (_tmp10_); -#line 237 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp12_ = _json_object_ref0 (_tmp11_); -#line 237 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - response_obj = _tmp12_; -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp14_ = response_obj; -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (!json_object_has_member (_tmp14_, "access_token")) { -#line 1714 "GoogleAuthenticator.c" - JsonObject* _tmp15_; -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp15_ = response_obj; -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp13_ = !json_object_has_member (_tmp15_, "refresh_token"); -#line 1720 "GoogleAuthenticator.c" - } else { -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp13_ = FALSE; -#line 1724 "GoogleAuthenticator.c" - } -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (_tmp13_) { -#line 1728 "GoogleAuthenticator.c" - SpitPublishingPluginHost* _tmp16_; - GError* _tmp17_; - GError* _tmp18_; -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp16_ = self->priv->host; -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp17_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "neither access_token nor refresh_token not present in server response"); -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp18_ = _tmp17_; -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp16_, _tmp18_); -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_error_free0 (_tmp18_); -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _json_object_unref0 (response_obj); -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (parser); -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 1748 "GoogleAuthenticator.c" - } -#line 245 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp19_ = response_obj; -#line 245 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (json_object_has_member (_tmp19_, "expires_in")) { -#line 1754 "GoogleAuthenticator.c" - gint64 duration = 0LL; - JsonObject* _tmp20_; - gint64 abs_time = 0LL; - gint64 _tmp21_; - gint64 _tmp22_; -#line 246 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp20_ = response_obj; -#line 246 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - duration = json_object_get_int_member (_tmp20_, "expires_in"); -#line 247 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp21_ = duration; -#line 247 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - abs_time = g_get_real_time () + ((_tmp21_ * 1000L) * 1000L); -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp22_ = abs_time; -#line 248 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_expiry_time_avilable (self, _tmp22_); -#line 1772 "GoogleAuthenticator.c" - } -#line 251 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp23_ = response_obj; -#line 251 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (json_object_has_member (_tmp23_, "refresh_token")) { -#line 1778 "GoogleAuthenticator.c" - gchar* refresh_token = NULL; - JsonObject* _tmp24_; - const gchar* _tmp25_; - gchar* _tmp26_; - const gchar* _tmp27_; -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp24_ = response_obj; -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp25_ = json_object_get_string_member (_tmp24_, "refresh_token"); -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp26_ = g_strdup (_tmp25_); -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - refresh_token = _tmp26_; -#line 254 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp27_ = refresh_token; -#line 254 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (g_strcmp0 (_tmp27_, "") != 0) { -#line 1796 "GoogleAuthenticator.c" - const gchar* _tmp28_; -#line 255 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp28_ = refresh_token; -#line 255 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_refresh_token_available (self, _tmp28_); -#line 1802 "GoogleAuthenticator.c" - } -#line 251 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (refresh_token); -#line 1806 "GoogleAuthenticator.c" - } -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp29_ = response_obj; -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (json_object_has_member (_tmp29_, "access_token")) { -#line 1812 "GoogleAuthenticator.c" - gchar* access_token = NULL; - JsonObject* _tmp30_; - const gchar* _tmp31_; - gchar* _tmp32_; - const gchar* _tmp33_; -#line 259 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp30_ = response_obj; -#line 259 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp31_ = json_object_get_string_member (_tmp30_, "access_token"); -#line 259 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp32_ = g_strdup (_tmp31_); -#line 259 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - access_token = _tmp32_; -#line 261 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp33_ = access_token; -#line 261 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (g_strcmp0 (_tmp33_, "") != 0) { -#line 1830 "GoogleAuthenticator.c" - const gchar* _tmp34_; -#line 262 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp34_ = access_token; -#line 262 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_access_token_available (self, _tmp34_); -#line 1836 "GoogleAuthenticator.c" - } -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (access_token); -#line 1840 "GoogleAuthenticator.c" - } -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _json_object_unref0 (response_obj); -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (parser); -#line 1846 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_refresh_token_available (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* token) -{ - GHashTable* _tmp0_; - gchar* _tmp1_; - GVariant* _tmp2_; - PublishingAuthenticatorShotwellGoogleSession* _tmp3_; - gchar* _tmp4_; -#line 266 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 266 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (token != NULL); -#line 267 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:267: EVENT: an OAuth refresh token has become" \ -" available; token = '%s'.", token); -#line 268 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->params; -#line 268 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = g_strdup ("RefreshToken"); -#line 268 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = g_variant_new_string (token); -#line 268 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_variant_ref_sink (_tmp2_); -#line 268 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_hash_table_insert (_tmp0_, _tmp1_, _tmp2_); -#line 270 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = self->priv->session; -#line 270 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = g_strdup (token); -#line 270 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp3_->refresh_token); -#line 270 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_->refresh_token = _tmp4_; -#line 1883 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_expiry_time_avilable (PublishingAuthenticatorShotwellGoogleGoogle* self, - gint64 abs_time) -{ - PublishingAuthenticatorShotwellGoogleSession* _tmp0_; - GHashTable* _tmp1_; - gchar* _tmp2_; - GVariant* _tmp3_; -#line 273 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 274 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("EVENT: an OAuth access token expiry time became available; time = %'" G_GINT64_FORMAT "'.", abs_time); -#line 277 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->session; -#line 277 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_->expires_at = abs_time; -#line 278 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = self->priv->params; -#line 278 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = g_strdup ("ExpiryTime"); -#line 278 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = g_variant_new_int64 (abs_time); -#line 278 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_variant_ref_sink (_tmp3_); -#line 278 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_hash_table_insert (_tmp1_, _tmp2_, _tmp3_); -#line 1913 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_access_token_available (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* token) -{ - PublishingAuthenticatorShotwellGoogleSession* _tmp0_; - gchar* _tmp1_; - GHashTable* _tmp2_; - gchar* _tmp3_; - GVariant* _tmp4_; -#line 282 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 282 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (token != NULL); -#line 283 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:283: EVENT: an OAuth access token has become " \ -"available; token = '%s'.", token); -#line 285 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->session; -#line 285 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = g_strdup (token); -#line 285 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp0_->access_token); -#line 285 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_->access_token = _tmp1_; -#line 286 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = self->priv->params; -#line 286 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = g_strdup ("AccessToken"); -#line 286 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = g_variant_new_string (token); -#line 286 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_variant_ref_sink (_tmp4_); -#line 286 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_hash_table_insert (_tmp2_, _tmp3_, _tmp4_); -#line 288 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_do_fetch_username (self); -#line 1952 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 298 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_completed ((PublishingAuthenticatorShotwellGoogleGoogle*) self, _sender); -#line 1962 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 299 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_error ((PublishingAuthenticatorShotwellGoogleGoogle*) self, _sender, err); -#line 1973 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_do_fetch_username (PublishingAuthenticatorShotwellGoogleGoogle* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction* txn = NULL; - PublishingAuthenticatorShotwellGoogleSession* _tmp2_; - PublishingAuthenticatorShotwellGoogleUsernameFetchTransaction* _tmp3_; - GError * _inner_error_ = NULL; -#line 291 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 292 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:292: ACTION: running network transaction to f" \ -"etch username."); -#line 294 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 294 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_install_login_wait_pane (_tmp0_); -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = self->priv->host; -#line 295 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp1_, TRUE); -#line 297 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = self->priv->session; -#line 297 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = publishing_authenticator_shotwell_google_username_fetch_transaction_new (_tmp2_); -#line 297 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - txn = _tmp3_; -#line 298 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_completed_publishing_rest_support_transaction_completed, self, 0); -#line 299 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_error_publishing_rest_support_transaction_network_error, self, 0); -#line 2008 "GoogleAuthenticator.c" - { -#line 302 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 302 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2014 "GoogleAuthenticator.c" - goto __catch5_g_error; - } - } - goto __finally5; - __catch5_g_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp4_; - GError* _tmp5_; -#line 301 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - err = _inner_error_; -#line 301 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _inner_error_ = NULL; -#line 304 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = self->priv->host; -#line 304 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = err; -#line 304 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp5_); -#line 301 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_error_free0 (err); -#line 2036 "GoogleAuthenticator.c" - } - __finally5: -#line 301 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 301 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 301 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 301 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 301 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 2049 "GoogleAuthenticator.c" - } -#line 291 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 2053 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_completed (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 308 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 308 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 309 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 309 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_completed_publishing_rest_support_transaction_completed, self); -#line 310 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 310 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_error_publishing_rest_support_transaction_network_error, self); -#line 312 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:312: EVENT: username fetch transaction comple" \ -"ted successfully."); -#line 314 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 314 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 314 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_do_extract_username (self, _tmp3_); -#line 314 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp3_); -#line 2087 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_error (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - SpitPublishingPluginHost* _tmp2_; -#line 317 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 317 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 319 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 319 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_completed_publishing_rest_support_transaction_completed, self); -#line 320 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 320 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_fetch_username_transaction_error_publishing_rest_support_transaction_network_error, self); -#line 322 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:322: EVENT: username fetch transaction caused" \ -" a network error"); -#line 324 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = self->priv->host; -#line 324 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp2_, err); -#line 2117 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_do_extract_username (PublishingAuthenticatorShotwellGoogleGoogle* self, - const gchar* response_body) -{ - JsonParser* parser = NULL; - JsonParser* _tmp0_; - JsonObject* response_obj = NULL; - JsonParser* _tmp9_; - JsonNode* _tmp10_; - JsonObject* _tmp11_; - JsonObject* _tmp12_; - JsonObject* _tmp13_; - JsonObject* _tmp22_; - PublishingAuthenticatorShotwellGoogleSession* _tmp31_; - SpitPublishingPluginHost* _tmp32_; - PublishingAuthenticatorShotwellGoogleSession* _tmp33_; - const gchar* _tmp34_; - GError * _inner_error_ = NULL; -#line 327 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 327 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (response_body != NULL); -#line 328 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:328: ACTION: extracting username from body of" \ -" server response"); -#line 330 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = json_parser_new (); -#line 330 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - parser = _tmp0_; -#line 2149 "GoogleAuthenticator.c" - { - JsonParser* _tmp1_; -#line 333 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = parser; -#line 333 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - json_parser_load_from_data (_tmp1_, response_body, (gssize) -1, &_inner_error_); -#line 333 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2158 "GoogleAuthenticator.c" - goto __catch6_g_error; - } - } - goto __finally6; - __catch6_g_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp2_; - GError* _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GError* _tmp7_; - GError* _tmp8_; -#line 332 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - err = _inner_error_; -#line 332 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _inner_error_ = NULL; -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = self->priv->host; -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = err; -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = _tmp3_->message; -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = g_strconcat ("Couldn't parse JSON response: ", _tmp4_, NULL); -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp6_ = _tmp5_; -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp7_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, _tmp6_); -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp8_ = _tmp7_; -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp2_, _tmp8_); -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_error_free0 (_tmp8_); -#line 335 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp6_); -#line 337 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_error_free0 (err); -#line 337 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (parser); -#line 337 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 2203 "GoogleAuthenticator.c" - } - __finally6: -#line 332 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 332 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (parser); -#line 332 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 332 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 332 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 2216 "GoogleAuthenticator.c" - } -#line 340 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp9_ = parser; -#line 340 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp10_ = json_parser_get_root (_tmp9_); -#line 340 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp11_ = json_node_get_object (_tmp10_); -#line 340 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp12_ = _json_object_ref0 (_tmp11_); -#line 340 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - response_obj = _tmp12_; -#line 342 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp13_ = response_obj; -#line 342 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (json_object_has_member (_tmp13_, "name")) { -#line 2232 "GoogleAuthenticator.c" - gchar* username = NULL; - JsonObject* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; - const gchar* _tmp17_; -#line 343 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp14_ = response_obj; -#line 343 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp15_ = json_object_get_string_member (_tmp14_, "name"); -#line 343 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp16_ = g_strdup (_tmp15_); -#line 343 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - username = _tmp16_; -#line 345 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp17_ = username; -#line 345 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (g_strcmp0 (_tmp17_, "") != 0) { -#line 2250 "GoogleAuthenticator.c" - GHashTable* _tmp18_; - gchar* _tmp19_; - const gchar* _tmp20_; - GVariant* _tmp21_; -#line 346 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp18_ = self->priv->params; -#line 346 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp19_ = g_strdup ("UserName"); -#line 346 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp20_ = username; -#line 346 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp21_ = g_variant_new_string (_tmp20_); -#line 346 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_variant_ref_sink (_tmp21_); -#line 346 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_hash_table_insert (_tmp18_, _tmp19_, _tmp21_); -#line 2267 "GoogleAuthenticator.c" - } -#line 342 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (username); -#line 2271 "GoogleAuthenticator.c" - } -#line 349 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp22_ = response_obj; -#line 349 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (json_object_has_member (_tmp22_, "access_token")) { -#line 2277 "GoogleAuthenticator.c" - gchar* access_token = NULL; - JsonObject* _tmp23_; - const gchar* _tmp24_; - gchar* _tmp25_; - const gchar* _tmp26_; -#line 350 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp23_ = response_obj; -#line 350 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp24_ = json_object_get_string_member (_tmp23_, "access_token"); -#line 350 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp25_ = g_strdup (_tmp24_); -#line 350 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - access_token = _tmp25_; -#line 352 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp26_ = access_token; -#line 352 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (g_strcmp0 (_tmp26_, "") != 0) { -#line 2295 "GoogleAuthenticator.c" - GHashTable* _tmp27_; - gchar* _tmp28_; - const gchar* _tmp29_; - GVariant* _tmp30_; -#line 353 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp27_ = self->priv->params; -#line 353 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp28_ = g_strdup ("AccessToken"); -#line 353 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp29_ = access_token; -#line 353 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp30_ = g_variant_new_string (_tmp29_); -#line 353 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_variant_ref_sink (_tmp30_); -#line 353 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_hash_table_insert (_tmp27_, _tmp28_, _tmp30_); -#line 2312 "GoogleAuthenticator.c" - } -#line 349 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (access_token); -#line 2316 "GoogleAuthenticator.c" - } -#line 358 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp31_ = self->priv->session; -#line 358 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _vala_assert (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)), "session.is_authenticated()"); -#line 359 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp32_ = self->priv->host; -#line 359 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp33_ = self->priv->session; -#line 359 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp34_ = _tmp33_->refresh_token; -#line 359 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "refresh_token", _tmp34_); -#line 361 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator), "authenticated"); -#line 327 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _json_object_unref0 (response_obj); -#line 327 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (parser); -#line 2336 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 372 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_completed ((PublishingAuthenticatorShotwellGoogleGoogle*) self, _sender); -#line 2346 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 373 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_error ((PublishingAuthenticatorShotwellGoogleGoogle*) self, _sender, err); -#line 2357 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_do_exchange_refresh_token_for_access_token (PublishingAuthenticatorShotwellGoogleGoogle* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction* txn = NULL; - PublishingAuthenticatorShotwellGoogleSession* _tmp1_; - PublishingAuthenticatorShotwellGoogleRefreshAccessTokenTransaction* _tmp2_; - GError * _inner_error_ = NULL; -#line 365 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 366 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:366: ACTION: exchanging OAuth refresh token f" \ -"or OAuth access token."); -#line 368 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 368 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_install_login_wait_pane (_tmp0_); -#line 370 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = self->priv->session; -#line 370 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = publishing_authenticator_shotwell_google_refresh_access_token_transaction_new (_tmp1_); -#line 370 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - txn = _tmp2_; -#line 372 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_completed_publishing_rest_support_transaction_completed, self, 0); -#line 373 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_error_publishing_rest_support_transaction_network_error, self, 0); -#line 2387 "GoogleAuthenticator.c" - { -#line 376 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 376 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 376 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2395 "GoogleAuthenticator.c" - goto __catch7_spit_publishing_publishing_error; - } -#line 376 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 376 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 376 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 376 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 2406 "GoogleAuthenticator.c" - } - } - goto __finally7; - __catch7_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp3_; - GError* _tmp4_; -#line 375 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - err = _inner_error_; -#line 375 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _inner_error_ = NULL; -#line 378 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = self->priv->host; -#line 378 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = err; -#line 378 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp3_, _tmp4_); -#line 375 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_error_free0 (err); -#line 2427 "GoogleAuthenticator.c" - } - __finally7: -#line 375 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 375 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 375 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 375 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 375 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 2440 "GoogleAuthenticator.c" - } -#line 365 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 2444 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_completed (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - PublishingAuthenticatorShotwellGoogleSession* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 382 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 382 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 384 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 384 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_completed_publishing_rest_support_transaction_completed, self); -#line 385 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 385 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_error_publishing_rest_support_transaction_network_error, self); -#line 387 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:387: EVENT: refresh access token transaction " \ -"completed successfully."); -#line 389 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = self->priv->session; -#line 389 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 390 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 2477 "GoogleAuthenticator.c" - } -#line 392 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = publishing_rest_support_transaction_get_response (txn); -#line 392 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = _tmp3_; -#line 392 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_do_extract_tokens (self, _tmp4_); -#line 392 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (_tmp4_); -#line 2487 "GoogleAuthenticator.c" -} - - -static gboolean -___lambda4_ (PublishingAuthenticatorShotwellGoogleGoogle* self) -{ - gboolean result = FALSE; -#line 408 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_authenticator_authenticate (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator)); -#line 408 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - result = FALSE; -#line 408 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return result; -#line 2501 "GoogleAuthenticator.c" -} - - -static gboolean -____lambda4__gsource_func (gpointer self) -{ - gboolean result; - result = ___lambda4_ ((PublishingAuthenticatorShotwellGoogleGoogle*) self); -#line 408 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return result; -#line 2512 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_error (PublishingAuthenticatorShotwellGoogleGoogle* self, - PublishingRESTSupportTransaction* txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - PublishingAuthenticatorShotwellGoogleSession* _tmp2_; - gboolean _tmp3_ = FALSE; - SpitPublishingPluginHost* _tmp5_; -#line 395 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 395 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 397 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 397 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_completed_publishing_rest_support_transaction_completed, self); -#line 398 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 398 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_google_google_on_refresh_access_token_transaction_error_publishing_rest_support_transaction_network_error, self); -#line 400 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:400: EVENT: refresh access token transaction " \ -"caused a network error."); -#line 402 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp2_ = self->priv->session; -#line 402 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 403 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - return; -#line 2546 "GoogleAuthenticator.c" - } -#line 404 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (publishing_rest_support_transaction_get_status_code (txn) == ((guint) SOUP_STATUS_BAD_REQUEST)) { -#line 404 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = TRUE; -#line 2552 "GoogleAuthenticator.c" - } else { -#line 405 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp3_ = publishing_rest_support_transaction_get_status_code (txn) == ((guint) SOUP_STATUS_UNAUTHORIZED); -#line 2556 "GoogleAuthenticator.c" - } -#line 404 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - if (_tmp3_) { -#line 2560 "GoogleAuthenticator.c" - SpitPublishingPluginHost* _tmp4_; -#line 407 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp4_ = self->priv->host; -#line 407 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "refresh_token", ""); -#line 408 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ____lambda4__gsource_func, g_object_ref (self), g_object_unref); -#line 2568 "GoogleAuthenticator.c" - } -#line 411 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp5_ = self->priv->host; -#line 411 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp5_, err); -#line 2574 "GoogleAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_google_google_on_service_welcome_login_spit_publishing_login_callback (gpointer self) -{ -#line 417 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_on_service_welcome_login ((PublishingAuthenticatorShotwellGoogleGoogle*) self); -#line 2583 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_do_show_service_welcome_pane (PublishingAuthenticatorShotwellGoogleGoogle* self) -{ - SpitPublishingPluginHost* _tmp0_; - const gchar* _tmp1_; -#line 414 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 415 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:415: ACTION: showing service welcome pane."); -#line 417 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp0_ = self->priv->host; -#line 417 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _tmp1_ = self->priv->welcome_message; -#line 417 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - spit_publishing_plugin_host_install_welcome_pane (_tmp0_, _tmp1_, _publishing_authenticator_shotwell_google_google_on_service_welcome_login_spit_publishing_login_callback, self); -#line 2602 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_on_service_welcome_login (PublishingAuthenticatorShotwellGoogleGoogle* self) -{ -#line 420 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE (self)); -#line 421 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_debug ("GoogleAuthenticator.vala:421: EVENT: user clicked 'Login' in welcome p" \ -"ane."); -#line 423 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_do_hosted_web_authentication (self); -#line 2615 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_class_init (PublishingAuthenticatorShotwellGoogleGoogleClass * klass) -{ -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_parent_class = g_type_class_peek_parent (klass); -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - g_type_class_add_private (klass, sizeof (PublishingAuthenticatorShotwellGoogleGooglePrivate)); -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_authenticator_shotwell_google_google_finalize; -#line 2628 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_spit_publishing_authenticator_interface_init (SpitPublishingAuthenticatorIface * iface) -{ -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - publishing_authenticator_shotwell_google_google_spit_publishing_authenticator_parent_iface = g_type_interface_peek_parent (iface); -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - iface->authenticate = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_google_google_real_authenticate; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - iface->can_logout = (gboolean (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_google_google_real_can_logout; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - iface->get_authentication_parameter = (GHashTable* (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_google_google_real_get_authentication_parameter; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - iface->logout = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_google_google_real_logout; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - iface->refresh = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_google_google_real_refresh; -#line 2647 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_instance_init (PublishingAuthenticatorShotwellGoogleGoogle * self) -{ -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv = PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_GET_PRIVATE (self); -#line 108 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->scope = NULL; -#line 109 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->host = NULL; -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->params = NULL; -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->web_auth_pane = NULL; -#line 112 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->session = NULL; -#line 113 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self->priv->welcome_message = NULL; -#line 2668 "GoogleAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_google_google_finalize (GObject * obj) -{ - PublishingAuthenticatorShotwellGoogleGoogle * self; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogle); -#line 108 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->priv->scope); -#line 109 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (self->priv->host); -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_hash_table_unref0 (self->priv->params); -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_object_unref0 (self->priv->web_auth_pane); -#line 112 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 113 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - _g_free0 (self->priv->welcome_message); -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/GoogleAuthenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_google_google_parent_class)->finalize (obj); -#line 2692 "GoogleAuthenticator.c" -} - - -GType -publishing_authenticator_shotwell_google_google_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_google_google_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_google_google_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellGoogleGoogleClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_google_google_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellGoogleGoogle), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_google_google_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_authenticator_info = { (GInterfaceInitFunc) publishing_authenticator_shotwell_google_google_spit_publishing_authenticator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_authenticator_shotwell_google_google_type_id; - publishing_authenticator_shotwell_google_google_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingAuthenticatorShotwellGoogleGoogle", &g_define_type_info, 0); - g_type_add_interface_static (publishing_authenticator_shotwell_google_google_type_id, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, &spit_publishing_authenticator_info); - g_once_init_leave (&publishing_authenticator_shotwell_google_google_type_id__volatile, publishing_authenticator_shotwell_google_google_type_id); - } - return publishing_authenticator_shotwell_google_google_type_id__volatile; -} - - - diff --git a/plugins/authenticator/shotwell/OAuth1Authenticator.c b/plugins/authenticator/shotwell/OAuth1Authenticator.c deleted file mode 100644 index 7cf5780..0000000 --- a/plugins/authenticator/shotwell/OAuth1Authenticator.c +++ /dev/null @@ -1,772 +0,0 @@ -/* OAuth1Authenticator.c generated by valac 0.40.4, the Vala compiler - * generated from OAuth1Authenticator.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * Copyright 2017 Jens Georg - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include "shotwell-plugin-common.h" - - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR (publishing_authenticator_shotwell_oauth1_authenticator_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1AuthenticatorClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1AuthenticatorClass)) - -typedef struct _PublishingAuthenticatorShotwellOAuth1Authenticator PublishingAuthenticatorShotwellOAuth1Authenticator; -typedef struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorClass PublishingAuthenticatorShotwellOAuth1AuthenticatorClass; -typedef struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_oauth1_authenticator_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_NUM_PROPERTIES]; -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -struct _PublishingAuthenticatorShotwellOAuth1Authenticator { - GObject parent_instance; - PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate * priv; - GHashTable* params; - PublishingRESTSupportOAuth1Session* session; - SpitPublishingPluginHost* host; -}; - -struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorClass { - GObjectClass parent_class; - void (*authenticate) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - gboolean (*can_logout) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - void (*logout) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - void (*refresh) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -}; - - -static gpointer publishing_authenticator_shotwell_oauth1_authenticator_parent_class = NULL; -static SpitPublishingAuthenticatorIface * publishing_authenticator_shotwell_oauth1_authenticator_spit_publishing_authenticator_parent_iface = NULL; - -GType publishing_authenticator_shotwell_oauth1_authenticator_get_type (void) G_GNUC_CONST; -void publishing_authenticator_shotwell_oauth1_authenticator_on_session_authenticated (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static void _publishing_authenticator_shotwell_oauth1_authenticator_on_session_authenticated_publishing_rest_support_session_authenticated (PublishingRESTSupportSession* _sender, - gpointer self); -PublishingAuthenticatorShotwellOAuth1Authenticator* publishing_authenticator_shotwell_oauth1_authenticator_construct (GType object_type, - const gchar* api_key, - const gchar* api_secret, - SpitPublishingPluginHost* host); -static void _g_free0_ (gpointer var); -static void _g_variant_unref0_ (gpointer var); -static GVariant* _variant_new1 (const gchar* value); -static GVariant* _variant_new2 (const gchar* value); -void publishing_authenticator_shotwell_oauth1_authenticator_authenticate (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static void publishing_authenticator_shotwell_oauth1_authenticator_real_authenticate (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gboolean publishing_authenticator_shotwell_oauth1_authenticator_can_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static gboolean publishing_authenticator_shotwell_oauth1_authenticator_real_can_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static GHashTable* publishing_authenticator_shotwell_oauth1_authenticator_real_get_authentication_parameter (SpitPublishingAuthenticator* base); -void publishing_authenticator_shotwell_oauth1_authenticator_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static void publishing_authenticator_shotwell_oauth1_authenticator_real_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -void publishing_authenticator_shotwell_oauth1_authenticator_refresh (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static void publishing_authenticator_shotwell_oauth1_authenticator_real_refresh (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -void publishing_authenticator_shotwell_oauth1_authenticator_invalidate_persistent_session (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -void publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_token (PublishingAuthenticatorShotwellOAuth1Authenticator* self, - const gchar* token); -void publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_token_secret (PublishingAuthenticatorShotwellOAuth1Authenticator* self, - const gchar* secret); -void publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_username (PublishingAuthenticatorShotwellOAuth1Authenticator* self, - const gchar* username); -gboolean publishing_authenticator_shotwell_oauth1_authenticator_is_persistent_session_valid (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gchar* publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_username (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gchar* publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gchar* publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token_secret (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static GVariant* _variant_new3 (gchar* value); -static GVariant* _variant_new4 (gchar* value); -static GVariant* _variant_new5 (gchar* value); -static void publishing_authenticator_shotwell_oauth1_authenticator_finalize (GObject * obj); - - -static void -_publishing_authenticator_shotwell_oauth1_authenticator_on_session_authenticated_publishing_rest_support_session_authenticated (PublishingRESTSupportSession* _sender, - gpointer self) -{ -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_on_session_authenticated ((PublishingAuthenticatorShotwellOAuth1Authenticator*) self); -#line 105 "OAuth1Authenticator.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 17 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return self ? g_object_ref (self) : NULL; -#line 114 "OAuth1Authenticator.c" -} - - -static void -_g_free0_ (gpointer var) -{ -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - var = (g_free (var), NULL); -#line 123 "OAuth1Authenticator.c" -} - - -static void -_g_variant_unref0_ (gpointer var) -{ -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - (var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)); -#line 132 "OAuth1Authenticator.c" -} - - -static GVariant* -_variant_new1 (const gchar* value) -{ -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 141 "OAuth1Authenticator.c" -} - - -static GVariant* -_variant_new2 (const gchar* value) -{ -#line 21 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 150 "OAuth1Authenticator.c" -} - - -PublishingAuthenticatorShotwellOAuth1Authenticator* -publishing_authenticator_shotwell_oauth1_authenticator_construct (GType object_type, - const gchar* api_key, - const gchar* api_secret, - SpitPublishingPluginHost* host) -{ - PublishingAuthenticatorShotwellOAuth1Authenticator * self = NULL; - SpitPublishingPluginHost* _tmp0_; - GHashFunc _tmp1_; - GEqualFunc _tmp2_; - GHashTable* _tmp3_; - GHashTable* _tmp4_; - gchar* _tmp5_; - GVariant* _tmp6_; - GHashTable* _tmp7_; - gchar* _tmp8_; - GVariant* _tmp9_; - PublishingRESTSupportOAuth1Session* _tmp10_; - PublishingRESTSupportOAuth1Session* _tmp11_; - PublishingRESTSupportOAuth1Session* _tmp12_; -#line 15 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_val_if_fail (api_key != NULL, NULL); -#line 15 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_val_if_fail (api_secret != NULL, NULL); -#line 15 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 16 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - self = (PublishingAuthenticatorShotwellOAuth1Authenticator*) g_object_new (object_type, NULL); -#line 17 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = _g_object_ref0 (host); -#line 17 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_object_unref0 (self->host); -#line 17 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - self->host = _tmp0_; -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp1_ = g_str_hash; -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp2_ = g_str_equal; -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp3_ = g_hash_table_new_full (_tmp1_, _tmp2_, _g_free0_, _g_variant_unref0_); -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_hash_table_unref0 (self->params); -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - self->params = _tmp3_; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp4_ = self->params; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp5_ = g_strdup ("ConsumerKey"); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp6_ = _variant_new1 (api_key); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_hash_table_insert (_tmp4_, _tmp5_, _tmp6_); -#line 21 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp7_ = self->params; -#line 21 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp8_ = g_strdup ("ConsumerSecret"); -#line 21 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp9_ = _variant_new2 (api_secret); -#line 21 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_hash_table_insert (_tmp7_, _tmp8_, _tmp9_); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp10_ = publishing_rest_support_oauth1_session_new (NULL); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _publishing_rest_support_session_unref0 (self->session); -#line 23 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - self->session = _tmp10_; -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp11_ = self->session; -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_rest_support_oauth1_session_set_api_credentials (_tmp11_, api_key, api_secret); -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp12_ = self->session; -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), "authenticated", (GCallback) _publishing_authenticator_shotwell_oauth1_authenticator_on_session_authenticated_publishing_rest_support_session_authenticated, self, 0); -#line 15 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return self; -#line 230 "OAuth1Authenticator.c" -} - - -static void -publishing_authenticator_shotwell_oauth1_authenticator_real_authenticate (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ -#line 33 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_authenticator_shotwell_oauth1_authenticator_authenticate'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 33 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return; -#line 241 "OAuth1Authenticator.c" -} - - -void -publishing_authenticator_shotwell_oauth1_authenticator_authenticate (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ -#line 33 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self)); -#line 33 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_GET_CLASS (self)->authenticate (self); -#line 252 "OAuth1Authenticator.c" -} - - -static gboolean -publishing_authenticator_shotwell_oauth1_authenticator_real_can_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ - gboolean _tmp0_ = FALSE; -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_authenticator_shotwell_oauth1_authenticator_can_logout'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return _tmp0_; -#line 264 "OAuth1Authenticator.c" -} - - -gboolean -publishing_authenticator_shotwell_oauth1_authenticator_can_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self), FALSE); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_GET_CLASS (self)->can_logout (self); -#line 275 "OAuth1Authenticator.c" -} - - -static gpointer -_g_hash_table_ref0 (gpointer self) -{ -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return self ? g_hash_table_ref (self) : NULL; -#line 284 "OAuth1Authenticator.c" -} - - -static GHashTable* -publishing_authenticator_shotwell_oauth1_authenticator_real_get_authentication_parameter (SpitPublishingAuthenticator* base) -{ - PublishingAuthenticatorShotwellOAuth1Authenticator * self; - GHashTable* result = NULL; - GHashTable* _tmp0_; - GHashTable* _tmp1_; -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->params; -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp1_ = _g_hash_table_ref0 (_tmp0_); -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - result = _tmp1_; -#line 38 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return result; -#line 305 "OAuth1Authenticator.c" -} - - -static void -publishing_authenticator_shotwell_oauth1_authenticator_real_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_authenticator_shotwell_oauth1_authenticator_logout'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return; -#line 316 "OAuth1Authenticator.c" -} - - -void -publishing_authenticator_shotwell_oauth1_authenticator_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self)); -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_GET_CLASS (self)->logout (self); -#line 327 "OAuth1Authenticator.c" -} - - -static void -publishing_authenticator_shotwell_oauth1_authenticator_real_refresh (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_authenticator_shotwell_oauth1_authenticator_refresh'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return; -#line 338 "OAuth1Authenticator.c" -} - - -void -publishing_authenticator_shotwell_oauth1_authenticator_refresh (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self)); -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_GET_CLASS (self)->refresh (self); -#line 349 "OAuth1Authenticator.c" -} - - -void -publishing_authenticator_shotwell_oauth1_authenticator_invalidate_persistent_session (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self)); -#line 46 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_token (self, ""); -#line 47 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_token_secret (self, ""); -#line 48 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_username (self, ""); -#line 364 "OAuth1Authenticator.c" -} - - -gboolean -publishing_authenticator_shotwell_oauth1_authenticator_is_persistent_session_valid (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gchar* _tmp2_; - gchar* _tmp3_; - gboolean _tmp4_; -#line 50 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self), FALSE); -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp2_ = publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_username (self); -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp3_ = _tmp2_; -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp4_ = _tmp3_ != NULL; -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp3_); -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - if (_tmp4_) { -#line 389 "OAuth1Authenticator.c" - gchar* _tmp5_; - gchar* _tmp6_; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp5_ = publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token (self); -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp6_ = _tmp5_; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp1_ = _tmp6_ != NULL; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp6_); -#line 400 "OAuth1Authenticator.c" - } else { -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp1_ = FALSE; -#line 404 "OAuth1Authenticator.c" - } -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - if (_tmp1_) { -#line 408 "OAuth1Authenticator.c" - gchar* _tmp7_; - gchar* _tmp8_; -#line 53 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp7_ = publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token_secret (self); -#line 53 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp8_ = _tmp7_; -#line 53 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = _tmp8_ != NULL; -#line 53 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp8_); -#line 419 "OAuth1Authenticator.c" - } else { -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = FALSE; -#line 423 "OAuth1Authenticator.c" - } -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - result = _tmp0_; -#line 51 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return result; -#line 429 "OAuth1Authenticator.c" -} - - -gchar* -publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_username (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 56 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self), NULL); -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->host; -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_username", NULL); -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - result = _tmp1_; -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return result; -#line 449 "OAuth1Authenticator.c" -} - - -void -publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_username (PublishingAuthenticatorShotwellOAuth1Authenticator* self, - const gchar* username) -{ - SpitPublishingPluginHost* _tmp0_; -#line 60 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self)); -#line 60 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (username != NULL); -#line 61 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->host; -#line 61 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_username", username); -#line 466 "OAuth1Authenticator.c" -} - - -gchar* -publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 64 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self), NULL); -#line 65 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->host; -#line 65 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_token", NULL); -#line 65 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - result = _tmp1_; -#line 65 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return result; -#line 486 "OAuth1Authenticator.c" -} - - -void -publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_token (PublishingAuthenticatorShotwellOAuth1Authenticator* self, - const gchar* token) -{ - SpitPublishingPluginHost* _tmp0_; -#line 68 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self)); -#line 68 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (token != NULL); -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->host; -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_token", token); -#line 503 "OAuth1Authenticator.c" -} - - -gchar* -publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token_secret (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self), NULL); -#line 73 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->host; -#line 73 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_token_secret", NULL); -#line 73 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - result = _tmp1_; -#line 73 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return result; -#line 523 "OAuth1Authenticator.c" -} - - -void -publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_token_secret (PublishingAuthenticatorShotwellOAuth1Authenticator* self, - const gchar* secret) -{ - SpitPublishingPluginHost* _tmp0_; -#line 76 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self)); -#line 76 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (secret != NULL); -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->host; -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "access_phase_token_secret", secret); -#line 540 "OAuth1Authenticator.c" -} - - -static GVariant* -_variant_new3 (gchar* value) -{ -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 549 "OAuth1Authenticator.c" -} - - -static GVariant* -_variant_new4 (gchar* value) -{ -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 558 "OAuth1Authenticator.c" -} - - -static GVariant* -_variant_new5 (gchar* value) -{ -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 567 "OAuth1Authenticator.c" -} - - -void -publishing_authenticator_shotwell_oauth1_authenticator_on_session_authenticated (PublishingAuthenticatorShotwellOAuth1Authenticator* self) -{ - GHashTable* _tmp0_; - gchar* _tmp1_; - PublishingRESTSupportOAuth1Session* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - GVariant* _tmp5_; - GHashTable* _tmp6_; - gchar* _tmp7_; - PublishingRESTSupportOAuth1Session* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - GVariant* _tmp11_; - GHashTable* _tmp12_; - gchar* _tmp13_; - PublishingRESTSupportOAuth1Session* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - GVariant* _tmp17_; - PublishingRESTSupportOAuth1Session* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - PublishingRESTSupportOAuth1Session* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - PublishingRESTSupportOAuth1Session* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; -#line 81 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR (self)); -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->params; -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp1_ = g_strdup ("AuthToken"); -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp2_ = self->session; -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp3_ = publishing_rest_support_oauth1_session_get_access_phase_token (_tmp2_); -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp4_ = _tmp3_; -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp5_ = _variant_new3 (_tmp4_); -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_hash_table_insert (_tmp0_, _tmp1_, _tmp5_); -#line 82 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp4_); -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp6_ = self->params; -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp7_ = g_strdup ("AuthTokenSecret"); -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp8_ = self->session; -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp9_ = publishing_rest_support_oauth1_session_get_access_phase_token_secret (_tmp8_); -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp10_ = _tmp9_; -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp11_ = _variant_new4 (_tmp10_); -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_hash_table_insert (_tmp6_, _tmp7_, _tmp11_); -#line 83 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp10_); -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp12_ = self->params; -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp13_ = g_strdup ("Username"); -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp14_ = self->session; -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp15_ = publishing_rest_support_oauth1_session_get_username (_tmp14_); -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp16_ = _tmp15_; -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp17_ = _variant_new5 (_tmp16_); -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_hash_table_insert (_tmp12_, _tmp13_, _tmp17_); -#line 84 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp16_); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp18_ = self->session; -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp19_ = publishing_rest_support_oauth1_session_get_access_phase_token (_tmp18_); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp20_ = _tmp19_; -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_token (self, _tmp20_); -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp20_); -#line 87 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp21_ = self->session; -#line 87 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp22_ = publishing_rest_support_oauth1_session_get_access_phase_token_secret (_tmp21_); -#line 87 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp23_ = _tmp22_; -#line 87 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_token_secret (self, _tmp23_); -#line 87 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp23_); -#line 88 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp24_ = self->session; -#line 88 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp25_ = publishing_rest_support_oauth1_session_get_username (_tmp24_); -#line 88 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp26_ = _tmp25_; -#line 88 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_set_persistent_access_phase_username (self, _tmp26_); -#line 88 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_free0 (_tmp26_); -#line 91 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator), "authenticated"); -#line 683 "OAuth1Authenticator.c" -} - - -static void -publishing_authenticator_shotwell_oauth1_authenticator_class_init (PublishingAuthenticatorShotwellOAuth1AuthenticatorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->authenticate = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_real_authenticate; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->can_logout = (gboolean (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_real_can_logout; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->logout = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_real_logout; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->refresh = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_real_refresh; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_authenticator_shotwell_oauth1_authenticator_finalize; -#line 702 "OAuth1Authenticator.c" -} - - -static void -publishing_authenticator_shotwell_oauth1_authenticator_spit_publishing_authenticator_interface_init (SpitPublishingAuthenticatorIface * iface) -{ -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_spit_publishing_authenticator_parent_iface = g_type_interface_peek_parent (iface); -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - iface->authenticate = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_authenticate; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - iface->can_logout = (gboolean (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_can_logout; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - iface->get_authentication_parameter = (GHashTable* (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_real_get_authentication_parameter; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - iface->logout = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_logout; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - iface->refresh = (void (*) (SpitPublishingAuthenticator *)) publishing_authenticator_shotwell_oauth1_authenticator_refresh; -#line 721 "OAuth1Authenticator.c" -} - - -static void -publishing_authenticator_shotwell_oauth1_authenticator_instance_init (PublishingAuthenticatorShotwellOAuth1Authenticator * self) -{ -} - - -static void -publishing_authenticator_shotwell_oauth1_authenticator_finalize (GObject * obj) -{ - PublishingAuthenticatorShotwellOAuth1Authenticator * self; - PublishingRESTSupportOAuth1Session* _tmp0_; - guint _tmp1_; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator); -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _tmp0_ = self->session; -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_signal_parse_name ("authenticated", PUBLISHING_REST_SUPPORT_TYPE_SESSION, &_tmp1_, NULL, FALSE); -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_oauth1_authenticator_on_session_authenticated_publishing_rest_support_session_authenticated, self); -#line 11 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_hash_table_unref0 (self->params); -#line 12 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _publishing_rest_support_session_unref0 (self->session); -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - _g_object_unref0 (self->host); -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/OAuth1Authenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_oauth1_authenticator_parent_class)->finalize (obj); -#line 753 "OAuth1Authenticator.c" -} - - -GType -publishing_authenticator_shotwell_oauth1_authenticator_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_oauth1_authenticator_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_oauth1_authenticator_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellOAuth1AuthenticatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_oauth1_authenticator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellOAuth1Authenticator), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_oauth1_authenticator_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_authenticator_info = { (GInterfaceInitFunc) publishing_authenticator_shotwell_oauth1_authenticator_spit_publishing_authenticator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_authenticator_shotwell_oauth1_authenticator_type_id; - publishing_authenticator_shotwell_oauth1_authenticator_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingAuthenticatorShotwellOAuth1Authenticator", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_type_add_interface_static (publishing_authenticator_shotwell_oauth1_authenticator_type_id, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, &spit_publishing_authenticator_info); - g_once_init_leave (&publishing_authenticator_shotwell_oauth1_authenticator_type_id__volatile, publishing_authenticator_shotwell_oauth1_authenticator_type_id); - } - return publishing_authenticator_shotwell_oauth1_authenticator_type_id__volatile; -} - - - diff --git a/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c b/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c deleted file mode 100644 index a9568e0..0000000 --- a/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c +++ /dev/null @@ -1,416 +0,0 @@ -/* ShotwellAuthenticatorFactory.c generated by valac 0.40.4, the Vala compiler - * generated from ShotwellAuthenticatorFactory.vala, do not modify */ - - - -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include - - -#define PUBLISHING_AUTHENTICATOR_TYPE_FACTORY (publishing_authenticator_factory_get_type ()) -#define PUBLISHING_AUTHENTICATOR_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactory)) -#define PUBLISHING_AUTHENTICATOR_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactoryClass)) -#define PUBLISHING_AUTHENTICATOR_IS_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY)) -#define PUBLISHING_AUTHENTICATOR_IS_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY)) -#define PUBLISHING_AUTHENTICATOR_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactoryClass)) - -typedef struct _PublishingAuthenticatorFactory PublishingAuthenticatorFactory; -typedef struct _PublishingAuthenticatorFactoryClass PublishingAuthenticatorFactoryClass; -typedef struct _PublishingAuthenticatorFactoryPrivate PublishingAuthenticatorFactoryPrivate; -enum { - PUBLISHING_AUTHENTICATOR_FACTORY_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_FACTORY_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_factory_properties[PUBLISHING_AUTHENTICATOR_FACTORY_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR (publishing_authenticator_shotwell_oauth1_authenticator_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1AuthenticatorClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1AuthenticatorClass)) - -typedef struct _PublishingAuthenticatorShotwellOAuth1Authenticator PublishingAuthenticatorShotwellOAuth1Authenticator; -typedef struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorClass PublishingAuthenticatorShotwellOAuth1AuthenticatorClass; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR (publishing_authenticator_shotwell_flickr_flickr_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickr)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickrClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_IS_FLICKR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_FLICKR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FLICKR_TYPE_FLICKR, PublishingAuthenticatorShotwellFlickrFlickrClass)) - -typedef struct _PublishingAuthenticatorShotwellFlickrFlickr PublishingAuthenticatorShotwellFlickrFlickr; -typedef struct _PublishingAuthenticatorShotwellFlickrFlickrClass PublishingAuthenticatorShotwellFlickrFlickrClass; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK (publishing_authenticator_shotwell_facebook_facebook_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebook)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebookClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_IS_FACEBOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_FACEBOOK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_FACEBOOK_TYPE_FACEBOOK, PublishingAuthenticatorShotwellFacebookFacebookClass)) - -typedef struct _PublishingAuthenticatorShotwellFacebookFacebook PublishingAuthenticatorShotwellFacebookFacebook; -typedef struct _PublishingAuthenticatorShotwellFacebookFacebookClass PublishingAuthenticatorShotwellFacebookFacebookClass; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE (publishing_authenticator_shotwell_google_google_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogle)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogleClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_IS_GOOGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_GOOGLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_GOOGLE_TYPE_GOOGLE, PublishingAuthenticatorShotwellGoogleGoogleClass)) - -typedef struct _PublishingAuthenticatorShotwellGoogleGoogle PublishingAuthenticatorShotwellGoogleGoogle; -typedef struct _PublishingAuthenticatorShotwellGoogleGoogleClass PublishingAuthenticatorShotwellGoogleGoogleClass; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR (publishing_authenticator_shotwell_tumblr_tumblr_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblr)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblrClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblrClass)) - -typedef struct _PublishingAuthenticatorShotwellTumblrTumblr PublishingAuthenticatorShotwellTumblrTumblr; -typedef struct _PublishingAuthenticatorShotwellTumblrTumblrClass PublishingAuthenticatorShotwellTumblrTumblrClass; - -struct _PublishingAuthenticatorFactory { - GObject parent_instance; - PublishingAuthenticatorFactoryPrivate * priv; -}; - -struct _PublishingAuthenticatorFactoryClass { - GObjectClass parent_class; -}; - - -static gpointer publishing_authenticator_factory_parent_class = NULL; -static PublishingAuthenticatorFactory* publishing_authenticator_factory_instance; -static PublishingAuthenticatorFactory* publishing_authenticator_factory_instance = NULL; -static SpitPublishingAuthenticatorFactoryIface * publishing_authenticator_factory_spit_publishing_authenticator_factory_parent_iface = NULL; - -GType publishing_authenticator_factory_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorFactory* publishing_authenticator_factory_get_instance (void); -PublishingAuthenticatorFactory* publishing_authenticator_factory_new (void); -PublishingAuthenticatorFactory* publishing_authenticator_factory_construct (GType object_type); -static GeeList* publishing_authenticator_factory_real_get_available_authenticators (SpitPublishingAuthenticatorFactory* base); -static SpitPublishingAuthenticator* publishing_authenticator_factory_real_create (SpitPublishingAuthenticatorFactory* base, - const gchar* provider, - SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellFlickrFlickr* publishing_authenticator_shotwell_flickr_flickr_new (SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellFlickrFlickr* publishing_authenticator_shotwell_flickr_flickr_construct (GType object_type, - SpitPublishingPluginHost* host); -GType publishing_authenticator_shotwell_oauth1_authenticator_get_type (void) G_GNUC_CONST; -GType publishing_authenticator_shotwell_flickr_flickr_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellFacebookFacebook* publishing_authenticator_shotwell_facebook_facebook_new (SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellFacebookFacebook* publishing_authenticator_shotwell_facebook_facebook_construct (GType object_type, - SpitPublishingPluginHost* host); -GType publishing_authenticator_shotwell_facebook_facebook_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellGoogleGoogle* publishing_authenticator_shotwell_google_google_new (const gchar* scope, - const gchar* welcome_message, - SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellGoogleGoogle* publishing_authenticator_shotwell_google_google_construct (GType object_type, - const gchar* scope, - const gchar* welcome_message, - SpitPublishingPluginHost* host); -GType publishing_authenticator_shotwell_google_google_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellTumblrTumblr* publishing_authenticator_shotwell_tumblr_tumblr_new (SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellTumblrTumblr* publishing_authenticator_shotwell_tumblr_tumblr_construct (GType object_type, - SpitPublishingPluginHost* host); -GType publishing_authenticator_shotwell_tumblr_tumblr_get_type (void) G_GNUC_CONST; -static void publishing_authenticator_factory_finalize (GObject * obj); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return self ? g_object_ref (self) : NULL; -#line 135 "ShotwellAuthenticatorFactory.c" -} - - -PublishingAuthenticatorFactory* -publishing_authenticator_factory_get_instance (void) -{ - PublishingAuthenticatorFactory* result = NULL; - PublishingAuthenticatorFactory* _tmp0_; - PublishingAuthenticatorFactory* _tmp2_; - PublishingAuthenticatorFactory* _tmp3_; -#line 6 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp0_ = publishing_authenticator_factory_instance; -#line 6 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - if (_tmp0_ == NULL) { -#line 150 "ShotwellAuthenticatorFactory.c" - PublishingAuthenticatorFactory* _tmp1_; -#line 7 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp1_ = publishing_authenticator_factory_new (); -#line 7 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _g_object_unref0 (publishing_authenticator_factory_instance); -#line 7 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - publishing_authenticator_factory_instance = _tmp1_; -#line 158 "ShotwellAuthenticatorFactory.c" - } -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp2_ = publishing_authenticator_factory_instance; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - result = _tmp3_; -#line 10 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return result; -#line 168 "ShotwellAuthenticatorFactory.c" -} - - -static GeeList* -publishing_authenticator_factory_real_get_available_authenticators (SpitPublishingAuthenticatorFactory* base) -{ - PublishingAuthenticatorFactory * self; - GeeList* result = NULL; - GeeArrayList* list = NULL; - GeeArrayList* _tmp0_; -#line 13 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactory); -#line 14 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp0_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 14 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - list = _tmp0_; -#line 15 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), "flickr"); -#line 16 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), "facebook"); -#line 17 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), "picasa"); -#line 18 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), "youtube"); -#line 19 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), "tumblr"); -#line 21 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_LIST, GeeList); -#line 21 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return result; -#line 199 "ShotwellAuthenticatorFactory.c" -} - - -static SpitPublishingAuthenticator* -publishing_authenticator_factory_real_create (SpitPublishingAuthenticatorFactory* base, - const gchar* provider, - SpitPublishingPluginHost* host) -{ - PublishingAuthenticatorFactory * self; - SpitPublishingAuthenticator* result = NULL; - const gchar* _tmp0_; - GQuark _tmp2_ = 0U; -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - static GQuark _tmp1_label0 = 0; -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - static GQuark _tmp1_label1 = 0; -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - static GQuark _tmp1_label2 = 0; -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - static GQuark _tmp1_label3 = 0; -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - static GQuark _tmp1_label4 = 0; -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactory); -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - g_return_val_if_fail (provider != NULL, NULL); -#line 24 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp0_ = provider; -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_); -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - if (_tmp2_ == ((0 != _tmp1_label0) ? _tmp1_label0 : (_tmp1_label0 = g_quark_from_static_string ("flickr")))) { -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - switch (0) { -#line 236 "ShotwellAuthenticatorFactory.c" - default: - { - PublishingAuthenticatorShotwellFlickrFlickr* _tmp3_; -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp3_ = publishing_authenticator_shotwell_flickr_flickr_new (host); -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator); -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return result; -#line 246 "ShotwellAuthenticatorFactory.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label1) ? _tmp1_label1 : (_tmp1_label1 = g_quark_from_static_string ("facebook")))) { -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - switch (0) { -#line 252 "ShotwellAuthenticatorFactory.c" - default: - { - PublishingAuthenticatorShotwellFacebookFacebook* _tmp4_; -#line 30 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp4_ = publishing_authenticator_shotwell_facebook_facebook_new (host); -#line 30 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator); -#line 30 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return result; -#line 262 "ShotwellAuthenticatorFactory.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label2) ? _tmp1_label2 : (_tmp1_label2 = g_quark_from_static_string ("picasa")))) { -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - switch (0) { -#line 268 "ShotwellAuthenticatorFactory.c" - default: - { - PublishingAuthenticatorShotwellGoogleGoogle* _tmp5_; -#line 32 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp5_ = publishing_authenticator_shotwell_google_google_new ("https://picasaweb.google.com/data/", _ ("You are not currently logged into Picasa Web Albums.\n" \ -"\n" \ -"Click Log in to log into Picasa Web Albums in your Web browser. You wi" \ -"ll have to authorize Shotwell Connect to link to your Picasa Web Album" \ -"s account."), host); -#line 32 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator); -#line 32 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return result; -#line 278 "ShotwellAuthenticatorFactory.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label3) ? _tmp1_label3 : (_tmp1_label3 = g_quark_from_static_string ("youtube")))) { -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - switch (0) { -#line 284 "ShotwellAuthenticatorFactory.c" - default: - { - PublishingAuthenticatorShotwellGoogleGoogle* _tmp6_; -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp6_ = publishing_authenticator_shotwell_google_google_new ("https://gdata.youtube.com/", _ ("You are not currently logged into YouTube.\n" \ -"\n" \ -"You must have already signed up for a Google account and set it up for" \ -" use with YouTube to continue. You can set up most accounts by using y" \ -"our browser to log into the YouTube site at least once."), host); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator); -#line 35 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return result; -#line 294 "ShotwellAuthenticatorFactory.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label4) ? _tmp1_label4 : (_tmp1_label4 = g_quark_from_static_string ("tumblr")))) { -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - switch (0) { -#line 300 "ShotwellAuthenticatorFactory.c" - default: - { - PublishingAuthenticatorShotwellTumblrTumblr* _tmp7_; -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - _tmp7_ = publishing_authenticator_shotwell_tumblr_tumblr_new (host); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return result; -#line 310 "ShotwellAuthenticatorFactory.c" - } - } - } else { -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - switch (0) { -#line 316 "ShotwellAuthenticatorFactory.c" - default: - { -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - result = NULL; -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return result; -#line 323 "ShotwellAuthenticatorFactory.c" - } - } - } -} - - -PublishingAuthenticatorFactory* -publishing_authenticator_factory_construct (GType object_type) -{ - PublishingAuthenticatorFactory * self = NULL; -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - self = (PublishingAuthenticatorFactory*) g_object_new (object_type, NULL); -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return self; -#line 338 "ShotwellAuthenticatorFactory.c" -} - - -PublishingAuthenticatorFactory* -publishing_authenticator_factory_new (void) -{ -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - return publishing_authenticator_factory_construct (PUBLISHING_AUTHENTICATOR_TYPE_FACTORY); -#line 347 "ShotwellAuthenticatorFactory.c" -} - - -static void -publishing_authenticator_factory_class_init (PublishingAuthenticatorFactoryClass * klass) -{ -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - publishing_authenticator_factory_parent_class = g_type_class_peek_parent (klass); -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_authenticator_factory_finalize; -#line 358 "ShotwellAuthenticatorFactory.c" -} - - -static void -publishing_authenticator_factory_spit_publishing_authenticator_factory_interface_init (SpitPublishingAuthenticatorFactoryIface * iface) -{ -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - publishing_authenticator_factory_spit_publishing_authenticator_factory_parent_iface = g_type_interface_peek_parent (iface); -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - iface->get_available_authenticators = (GeeList* (*) (SpitPublishingAuthenticatorFactory *)) publishing_authenticator_factory_real_get_available_authenticators; -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - iface->create = (SpitPublishingAuthenticator* (*) (SpitPublishingAuthenticatorFactory *, const gchar*, SpitPublishingPluginHost*)) publishing_authenticator_factory_real_create; -#line 371 "ShotwellAuthenticatorFactory.c" -} - - -static void -publishing_authenticator_factory_instance_init (PublishingAuthenticatorFactory * self) -{ -} - - -static void -publishing_authenticator_factory_finalize (GObject * obj) -{ - PublishingAuthenticatorFactory * self; -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_TYPE_FACTORY, PublishingAuthenticatorFactory); -#line 2 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala" - G_OBJECT_CLASS (publishing_authenticator_factory_parent_class)->finalize (obj); -#line 389 "ShotwellAuthenticatorFactory.c" -} - - -GType -publishing_authenticator_factory_get_type (void) -{ - static volatile gsize publishing_authenticator_factory_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_factory_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorFactoryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_factory_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorFactory), 0, (GInstanceInitFunc) publishing_authenticator_factory_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_authenticator_factory_info = { (GInterfaceInitFunc) publishing_authenticator_factory_spit_publishing_authenticator_factory_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_authenticator_factory_type_id; - publishing_authenticator_factory_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingAuthenticatorFactory", &g_define_type_info, 0); - g_type_add_interface_static (publishing_authenticator_factory_type_id, SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, &spit_publishing_authenticator_factory_info); - g_once_init_leave (&publishing_authenticator_factory_type_id__volatile, publishing_authenticator_factory_type_id); - } - return publishing_authenticator_factory_type_id__volatile; -} - - - diff --git a/plugins/authenticator/shotwell/TumblrAuthenticator.c b/plugins/authenticator/shotwell/TumblrAuthenticator.c deleted file mode 100644 index 5fd814c..0000000 --- a/plugins/authenticator/shotwell/TumblrAuthenticator.c +++ /dev/null @@ -1,1488 +0,0 @@ -/* TumblrAuthenticator.c generated by valac 0.40.4, the Vala compiler - * generated from TumblrAuthenticator.vala, do not modify */ - -/* Copyright 2012 BJA Electronics - * Copyright 2017 Jens Georg - * Author: Jeroen Arnoldus (b.j.arnoldus@bja-electronics.nl) - * Author: Jens Georg - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include "shotwell-plugin-common.h" -#include - - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE (publishing_authenticator_shotwell_tumblr_authentication_pane_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPane)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPaneClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPaneClass)) - -typedef struct _PublishingAuthenticatorShotwellTumblrAuthenticationPane PublishingAuthenticatorShotwellTumblrAuthenticationPane; -typedef struct _PublishingAuthenticatorShotwellTumblrAuthenticationPaneClass PublishingAuthenticatorShotwellTumblrAuthenticationPaneClass; -typedef struct _PublishingAuthenticatorShotwellTumblrAuthenticationPanePrivate PublishingAuthenticatorShotwellTumblrAuthenticationPanePrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_tumblr_authentication_pane_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_NUM_PROPERTIES]; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_TYPE_MODE (publishing_authenticator_shotwell_tumblr_authentication_pane_mode_get_type ()) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_LOGIN_SIGNAL, - PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_NUM_SIGNALS -}; -static guint publishing_authenticator_shotwell_tumblr_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_NUM_SIGNALS] = {0}; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION (publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_ACCESS_TOKEN_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_ACCESS_TOKEN_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_ACCESS_TOKEN_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_ACCESS_TOKEN_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_ACCESS_TOKEN_FETCH_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionClass)) - -typedef struct _PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction; -typedef struct _PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionClass PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionClass; -typedef struct _PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionPrivate PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionPrivate; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR (publishing_authenticator_shotwell_oauth1_authenticator_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1AuthenticatorClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_IS_AUTHENTICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_AUTHENTICATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1AuthenticatorClass)) - -typedef struct _PublishingAuthenticatorShotwellOAuth1Authenticator PublishingAuthenticatorShotwellOAuth1Authenticator; -typedef struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorClass PublishingAuthenticatorShotwellOAuth1AuthenticatorClass; -typedef struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR (publishing_authenticator_shotwell_tumblr_tumblr_get_type ()) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblr)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblrClass)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR)) -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblrClass)) - -typedef struct _PublishingAuthenticatorShotwellTumblrTumblr PublishingAuthenticatorShotwellTumblrTumblr; -typedef struct _PublishingAuthenticatorShotwellTumblrTumblrClass PublishingAuthenticatorShotwellTumblrTumblrClass; -typedef struct _PublishingAuthenticatorShotwellTumblrTumblrPrivate PublishingAuthenticatorShotwellTumblrTumblrPrivate; -enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR_0_PROPERTY, - PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR_NUM_PROPERTIES -}; -static GParamSpec* publishing_authenticator_shotwell_tumblr_tumblr_properties[PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TUMBLR_NUM_PROPERTIES]; -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) - -struct _PublishingAuthenticatorShotwellTumblrAuthenticationPane { - GObject parent_instance; - PublishingAuthenticatorShotwellTumblrAuthenticationPanePrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellTumblrAuthenticationPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellTumblrAuthenticationPanePrivate { - GtkBox* pane_widget; - GtkBuilder* builder; - GtkEntry* username_entry; - GtkEntry* password_entry; - GtkButton* login_button; -}; - -typedef enum { - PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_INTRO, - PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER -} PublishingAuthenticatorShotwellTumblrAuthenticationPaneMode; - -struct _PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction { - PublishingRESTSupportOAuth1Transaction parent_instance; - PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionClass { - PublishingRESTSupportOAuth1TransactionClass parent_class; -}; - -struct _PublishingAuthenticatorShotwellOAuth1Authenticator { - GObject parent_instance; - PublishingAuthenticatorShotwellOAuth1AuthenticatorPrivate * priv; - GHashTable* params; - PublishingRESTSupportOAuth1Session* session; - SpitPublishingPluginHost* host; -}; - -struct _PublishingAuthenticatorShotwellOAuth1AuthenticatorClass { - GObjectClass parent_class; - void (*authenticate) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - gboolean (*can_logout) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - void (*logout) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); - void (*refresh) (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -}; - -struct _PublishingAuthenticatorShotwellTumblrTumblr { - PublishingAuthenticatorShotwellOAuth1Authenticator parent_instance; - PublishingAuthenticatorShotwellTumblrTumblrPrivate * priv; -}; - -struct _PublishingAuthenticatorShotwellTumblrTumblrClass { - PublishingAuthenticatorShotwellOAuth1AuthenticatorClass parent_class; -}; - - -static gpointer publishing_authenticator_shotwell_tumblr_authentication_pane_parent_class = NULL; -static gchar* publishing_authenticator_shotwell_tumblr_authentication_pane_INTRO_MESSAGE; -static gchar* publishing_authenticator_shotwell_tumblr_authentication_pane_INTRO_MESSAGE = NULL; -static gchar* publishing_authenticator_shotwell_tumblr_authentication_pane_FAILED_RETRY_USER_MESSAGE; -static gchar* publishing_authenticator_shotwell_tumblr_authentication_pane_FAILED_RETRY_USER_MESSAGE = NULL; -static SpitPublishingDialogPaneIface * publishing_authenticator_shotwell_tumblr_authentication_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_parent_class = NULL; -static gpointer publishing_authenticator_shotwell_tumblr_tumblr_parent_class = NULL; - -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_ENDPOINT_URL "https://www.tumblr.com/" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_API_KEY "NdXvXQuKVccOsCOj0H4k9HUJcbcjDBYSo2AkaHzXFECHGNuP9k" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_API_SECRET "BN0Uoig0MwbeD27OgA0IwYlp3Uvonyfsrl9pf1cnnMj1QoEUvi" -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_ENCODE_RFC_3986_EXTRA "!*'();:@&=+$,/?%#[] \\" -GType publishing_authenticator_shotwell_tumblr_authentication_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPanePrivate)) -GType publishing_authenticator_shotwell_tumblr_authentication_pane_mode_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellTumblrAuthenticationPane* publishing_authenticator_shotwell_tumblr_authentication_pane_new (PublishingAuthenticatorShotwellTumblrAuthenticationPaneMode mode); -PublishingAuthenticatorShotwellTumblrAuthenticationPane* publishing_authenticator_shotwell_tumblr_authentication_pane_construct (GType object_type, - PublishingAuthenticatorShotwellTumblrAuthenticationPaneMode mode); -static void publishing_authenticator_shotwell_tumblr_authentication_pane_on_user_changed (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self); -static void _publishing_authenticator_shotwell_tumblr_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_authenticator_shotwell_tumblr_authentication_pane_on_password_changed (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self); -static void _publishing_authenticator_shotwell_tumblr_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_authenticator_shotwell_tumblr_authentication_pane_on_login_button_clicked (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self); -static void _publishing_authenticator_shotwell_tumblr_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -GtkWidget* publishing_authenticator_shotwell_tumblr_authentication_pane_get_default_widget (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self); -static void publishing_authenticator_shotwell_tumblr_authentication_pane_update_login_button_sensitivity (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self); -static GtkWidget* publishing_authenticator_shotwell_tumblr_authentication_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_authenticator_shotwell_tumblr_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_authenticator_shotwell_tumblr_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void publishing_authenticator_shotwell_tumblr_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void g_cclosure_user_marshal_VOID__STRING_STRING (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_authenticator_shotwell_tumblr_authentication_pane_finalize (GObject * obj); -GType publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction* publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_new (PublishingRESTSupportOAuth1Session* session, - const gchar* username, - const gchar* password); -PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction* publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - const gchar* username, - const gchar* password); -GType publishing_authenticator_shotwell_oauth1_authenticator_get_type (void) G_GNUC_CONST; -GType publishing_authenticator_shotwell_tumblr_tumblr_get_type (void) G_GNUC_CONST; -PublishingAuthenticatorShotwellTumblrTumblr* publishing_authenticator_shotwell_tumblr_tumblr_new (SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellTumblrTumblr* publishing_authenticator_shotwell_tumblr_tumblr_construct (GType object_type, - SpitPublishingPluginHost* host); -PublishingAuthenticatorShotwellOAuth1Authenticator* publishing_authenticator_shotwell_oauth1_authenticator_construct (GType object_type, - const gchar* api_key, - const gchar* api_secret, - SpitPublishingPluginHost* host); -static void publishing_authenticator_shotwell_tumblr_tumblr_real_authenticate (PublishingAuthenticatorShotwellOAuth1Authenticator* base); -gboolean publishing_authenticator_shotwell_oauth1_authenticator_is_persistent_session_valid (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gchar* publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -gchar* publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token_secret (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static void publishing_authenticator_shotwell_tumblr_tumblr_do_show_authentication_pane (PublishingAuthenticatorShotwellTumblrTumblr* self, - PublishingAuthenticatorShotwellTumblrAuthenticationPaneMode mode); -static gboolean publishing_authenticator_shotwell_tumblr_tumblr_real_can_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* base); -static void publishing_authenticator_shotwell_tumblr_tumblr_real_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* base); -void publishing_authenticator_shotwell_oauth1_authenticator_invalidate_persistent_session (PublishingAuthenticatorShotwellOAuth1Authenticator* self); -static void publishing_authenticator_shotwell_tumblr_tumblr_real_refresh (PublishingAuthenticatorShotwellOAuth1Authenticator* base); -static void publishing_authenticator_shotwell_tumblr_tumblr_on_authentication_pane_login_clicked (PublishingAuthenticatorShotwellTumblrTumblr* self, - const gchar* username, - const gchar* password); -static void _publishing_authenticator_shotwell_tumblr_tumblr_on_authentication_pane_login_clicked_publishing_authenticator_shotwell_tumblr_authentication_pane_login (PublishingAuthenticatorShotwellTumblrAuthenticationPane* _sender, - const gchar* user, - const gchar* password, - gpointer self); -static void publishing_authenticator_shotwell_tumblr_tumblr_do_network_login (PublishingAuthenticatorShotwellTumblrTumblr* self, - const gchar* username, - const gchar* password); -static void publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_completed (PublishingAuthenticatorShotwellTumblrTumblr* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_error (PublishingAuthenticatorShotwellTumblrTumblr* self, - PublishingRESTSupportTransaction* txn, - GError* err); -static void _publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_authenticator_shotwell_tumblr_tumblr_do_parse_token_info_from_auth_request (PublishingAuthenticatorShotwellTumblrTumblr* self, - const gchar* response); - - -GType -publishing_authenticator_shotwell_tumblr_authentication_pane_mode_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_tumblr_authentication_pane_mode_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_tumblr_authentication_pane_mode_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_INTRO, "PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_INTRO", "intro"}, {PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER, "PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER", "failed-retry-user"}, {0, NULL, NULL}}; - GType publishing_authenticator_shotwell_tumblr_authentication_pane_mode_type_id; - publishing_authenticator_shotwell_tumblr_authentication_pane_mode_type_id = g_enum_register_static ("PublishingAuthenticatorShotwellTumblrAuthenticationPaneMode", values); - g_once_init_leave (&publishing_authenticator_shotwell_tumblr_authentication_pane_mode_type_id__volatile, publishing_authenticator_shotwell_tumblr_authentication_pane_mode_type_id); - } - return publishing_authenticator_shotwell_tumblr_authentication_pane_mode_type_id__volatile; -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return self ? g_object_ref (self) : NULL; -#line 260 "TumblrAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_tumblr_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 65 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_on_user_changed ((PublishingAuthenticatorShotwellTumblrAuthenticationPane*) self); -#line 270 "TumblrAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_tumblr_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_on_password_changed ((PublishingAuthenticatorShotwellTumblrAuthenticationPane*) self); -#line 280 "TumblrAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_tumblr_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 67 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_on_login_button_clicked ((PublishingAuthenticatorShotwellTumblrAuthenticationPane*) self); -#line 290 "TumblrAuthenticator.c" -} - - -PublishingAuthenticatorShotwellTumblrAuthenticationPane* -publishing_authenticator_shotwell_tumblr_authentication_pane_construct (GType object_type, - PublishingAuthenticatorShotwellTumblrAuthenticationPaneMode mode) -{ - PublishingAuthenticatorShotwellTumblrAuthenticationPane * self = NULL; - GtkBox* _tmp0_; - GError * _inner_error_ = NULL; -#line 36 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = (PublishingAuthenticatorShotwellTumblrAuthenticationPane*) g_object_new (object_type, NULL); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_object_ref_sink (_tmp0_); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 37 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self->priv->pane_widget = _tmp0_; -#line 311 "TumblrAuthenticator.c" - { - GtkBuilder* _tmp1_; - GtkBuilder* _tmp2_; - GtkBuilder* _tmp3_; - GtkWidget* content = NULL; - GtkBuilder* _tmp4_; - GObject* _tmp5_; - GtkWidget* _tmp6_; - GtkLabel* message_label = NULL; - GtkBuilder* _tmp7_; - GObject* _tmp8_; - GtkLabel* _tmp9_; - GtkBuilder* _tmp16_; - GObject* _tmp17_; - GtkEntry* _tmp18_; - GtkBuilder* _tmp19_; - GObject* _tmp20_; - GtkEntry* _tmp21_; - GtkBuilder* _tmp22_; - GObject* _tmp23_; - GtkButton* _tmp24_; - GtkEntry* _tmp25_; - GtkEntry* _tmp26_; - GtkButton* _tmp27_; - GtkWidget* _tmp28_; - GtkContainer* _tmp29_; - GtkContainer* _tmp30_; - GtkWidget* _tmp31_; - GtkBox* _tmp32_; - GtkWidget* _tmp33_; -#line 40 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = gtk_builder_new (); -#line 40 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->builder); -#line 40 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self->priv->builder = _tmp1_; -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = self->priv->builder; -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_builder_add_from_resource (_tmp2_, PLUGIN_RESOURCE_PATH "/tumblr_authentication_pane.ui", &_inner_error_); -#line 41 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 354 "TumblrAuthenticator.c" - goto __catch8_g_error; - } -#line 42 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp3_ = self->priv->builder; -#line 42 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_builder_connect_signals (_tmp3_, NULL); -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp4_ = self->priv->builder; -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp5_ = gtk_builder_get_object (_tmp4_, "content"); -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gtk_widget_get_type ()) ? ((GtkWidget*) _tmp5_) : NULL); -#line 43 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - content = _tmp6_; -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp7_ = self->priv->builder; -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp8_ = gtk_builder_get_object (_tmp7_, "message_label"); -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp8_) : NULL); -#line 45 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - message_label = _tmp9_; -#line 46 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - switch (mode) { -#line 46 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - case PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_INTRO: -#line 381 "TumblrAuthenticator.c" - { - GtkLabel* _tmp10_; - const gchar* _tmp11_; -#line 48 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp10_ = message_label; -#line 48 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp11_ = publishing_authenticator_shotwell_tumblr_authentication_pane_INTRO_MESSAGE; -#line 48 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_label_set_text (_tmp10_, _tmp11_); -#line 49 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - break; -#line 393 "TumblrAuthenticator.c" - } -#line 46 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - case PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER: -#line 397 "TumblrAuthenticator.c" - { - GtkLabel* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp12_ = message_label; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp13_ = publishing_authenticator_shotwell_tumblr_authentication_pane_FAILED_RETRY_USER_MESSAGE; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp14_ = g_strdup_printf ("%s\n\n%s", _ ("Invalid User Name or Password"), _tmp13_); -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp15_ = _tmp14_; -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_label_set_markup (_tmp12_, _tmp15_); -#line 52 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (_tmp15_); -#line 54 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - break; -#line 417 "TumblrAuthenticator.c" - } - default: -#line 46 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - break; -#line 422 "TumblrAuthenticator.c" - } -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp16_ = self->priv->builder; -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp17_ = gtk_builder_get_object (_tmp16_, "username_entry"); -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp17_) : NULL); -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->username_entry); -#line 57 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self->priv->username_entry = _tmp18_; -#line 59 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp19_ = self->priv->builder; -#line 59 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp20_ = gtk_builder_get_object (_tmp19_, "password_entry"); -#line 59 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp20_) : NULL); -#line 59 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->password_entry); -#line 59 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self->priv->password_entry = _tmp21_; -#line 63 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp22_ = self->priv->builder; -#line 63 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp23_ = gtk_builder_get_object (_tmp22_, "login_button"); -#line 63 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, gtk_button_get_type ()) ? ((GtkButton*) _tmp23_) : NULL); -#line 63 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->login_button); -#line 63 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self->priv->login_button = _tmp24_; -#line 65 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp25_ = self->priv->username_entry; -#line 65 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_authenticator_shotwell_tumblr_authentication_pane_on_user_changed_gtk_editable_changed, self, 0); -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp26_ = self->priv->password_entry; -#line 66 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_authenticator_shotwell_tumblr_authentication_pane_on_password_changed_gtk_editable_changed, self, 0); -#line 67 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp27_ = self->priv->login_button; -#line 67 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_connect_object (_tmp27_, "clicked", (GCallback) _publishing_authenticator_shotwell_tumblr_authentication_pane_on_login_button_clicked_gtk_button_clicked, self, 0); -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp28_ = content; -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp29_ = gtk_widget_get_parent (_tmp28_); -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp30_ = _tmp29_; -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp31_ = content; -#line 69 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_container_remove (_tmp30_, _tmp31_); -#line 70 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp32_ = self->priv->pane_widget; -#line 70 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp33_ = content; -#line 70 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_container_get_type (), GtkContainer), _tmp33_); -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (message_label); -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (content); -#line 486 "TumblrAuthenticator.c" - } - goto __finally8; - __catch8_g_error: - { - GError* e = NULL; - GError* _tmp34_; - const gchar* _tmp35_; -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - e = _inner_error_; -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _inner_error_ = NULL; -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp34_ = e; -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp35_ = _tmp34_->message; -#line 72 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_warning (_ ("Could not load UI: %s"), _tmp35_); -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_error_free0 (e); -#line 506 "TumblrAuthenticator.c" - } - __finally8: -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 39 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return NULL; -#line 517 "TumblrAuthenticator.c" - } -#line 36 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return self; -#line 521 "TumblrAuthenticator.c" -} - - -PublishingAuthenticatorShotwellTumblrAuthenticationPane* -publishing_authenticator_shotwell_tumblr_authentication_pane_new (PublishingAuthenticatorShotwellTumblrAuthenticationPaneMode mode) -{ -#line 36 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return publishing_authenticator_shotwell_tumblr_authentication_pane_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, mode); -#line 530 "TumblrAuthenticator.c" -} - - -GtkWidget* -publishing_authenticator_shotwell_tumblr_authentication_pane_get_default_widget (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self) -{ - GtkWidget* result = NULL; - GtkButton* _tmp0_; - GtkWidget* _tmp1_; -#line 76 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_AUTHENTICATION_PANE (self), NULL); -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = self->priv->login_button; -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - result = _tmp1_; -#line 77 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return result; -#line 550 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_on_login_button_clicked (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self) -{ - GtkEntry* _tmp0_; - const gchar* _tmp1_; - GtkEntry* _tmp2_; - const gchar* _tmp3_; -#line 80 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_AUTHENTICATION_PANE (self)); -#line 81 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = self->priv->username_entry; -#line 81 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 81 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = self->priv->password_entry; -#line 81 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp3_ = gtk_entry_get_text (_tmp2_); -#line 81 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_emit (self, publishing_authenticator_shotwell_tumblr_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_LOGIN_SIGNAL], 0, _tmp1_, _tmp3_); -#line 573 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_on_user_changed (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self) -{ -#line 86 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_AUTHENTICATION_PANE (self)); -#line 87 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_update_login_button_sensitivity (self); -#line 584 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_on_password_changed (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self) -{ -#line 90 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_AUTHENTICATION_PANE (self)); -#line 91 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_update_login_button_sensitivity (self); -#line 595 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_update_login_button_sensitivity (PublishingAuthenticatorShotwellTumblrAuthenticationPane* self) -{ - gboolean _tmp0_ = FALSE; - GtkEntry* _tmp1_; - guint _tmp2_; - guint _tmp3_; - GtkButton* _tmp7_; -#line 94 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_AUTHENTICATION_PANE (self)); -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = self->priv->username_entry; -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = gtk_entry_get_text_length (_tmp1_); -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (_tmp3_ > ((guint) 0)) { -#line 617 "TumblrAuthenticator.c" - GtkEntry* _tmp4_; - guint _tmp5_; - guint _tmp6_; -#line 96 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp4_ = self->priv->password_entry; -#line 96 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp5_ = gtk_entry_get_text_length (_tmp4_); -#line 96 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp6_ = _tmp5_; -#line 96 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = _tmp6_ > ((guint) 0); -#line 629 "TumblrAuthenticator.c" - } else { -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = FALSE; -#line 633 "TumblrAuthenticator.c" - } -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp7_ = self->priv->login_button; -#line 95 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), _tmp0_); -#line 639 "TumblrAuthenticator.c" -} - - -static GtkWidget* -publishing_authenticator_shotwell_tumblr_authentication_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingAuthenticatorShotwellTumblrAuthenticationPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 99 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPane); -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = self->priv->pane_widget; -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - result = _tmp1_; -#line 100 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return result; -#line 660 "TumblrAuthenticator.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_authenticator_shotwell_tumblr_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingAuthenticatorShotwellTumblrAuthenticationPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 103 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPane); -#line 104 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 104 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return result; -#line 675 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingAuthenticatorShotwellTumblrAuthenticationPane * self; - GtkEntry* _tmp0_; - GtkEntry* _tmp1_; - GtkButton* _tmp2_; -#line 107 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPane); -#line 108 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = self->priv->username_entry; -#line 108 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 109 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = self->priv->password_entry; -#line 109 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_entry_set_activates_default (_tmp1_, TRUE); -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = self->priv->login_button; -#line 110 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - gtk_widget_set_can_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 111 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_update_login_button_sensitivity (self); -#line 702 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingAuthenticatorShotwellTumblrAuthenticationPane * self; -#line 114 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPane); -#line 712 "TumblrAuthenticator.c" -} - - -static void -g_cclosure_user_marshal_VOID__STRING_STRING (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__STRING_STRING) (gpointer data1, const char* arg_1, const char* arg_2, gpointer data2); - register GMarshalFunc_VOID__STRING_STRING callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (n_param_values == 3); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - data1 = closure->data; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - data2 = param_values->data[0].v_pointer; -#line 738 "TumblrAuthenticator.c" - } else { -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - data1 = param_values->data[0].v_pointer; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - data2 = closure->data; -#line 744 "TumblrAuthenticator.c" - } -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - callback = (GMarshalFunc_VOID__STRING_STRING) (marshal_data ? marshal_data : cc->callback); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), data2); -#line 750 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_class_init (PublishingAuthenticatorShotwellTumblrAuthenticationPaneClass * klass) -{ - gchar* _tmp0_; - gchar* _tmp1_; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_parent_class = g_type_class_peek_parent (klass); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_type_class_add_private (klass, sizeof (PublishingAuthenticatorShotwellTumblrAuthenticationPanePrivate)); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_authenticator_shotwell_tumblr_authentication_pane_finalize; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_signals[PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_LOGIN_SIGNAL] = g_signal_new ("login", PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING); -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = g_strdup (_ ("Enter the username and password associated with your Tumblr account.")); -#line 25 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_INTRO_MESSAGE = _tmp0_; -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = g_strdup (_ ("Username and/or password invalid. Please try again")); -#line 26 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_FAILED_RETRY_USER_MESSAGE = _tmp1_; -#line 775 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_authentication_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_authenticator_shotwell_tumblr_authentication_pane_real_get_widget; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_authenticator_shotwell_tumblr_authentication_pane_real_get_preferred_geometry; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_authenticator_shotwell_tumblr_authentication_pane_real_on_pane_installed; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_authenticator_shotwell_tumblr_authentication_pane_real_on_pane_uninstalled; -#line 792 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_instance_init (PublishingAuthenticatorShotwellTumblrAuthenticationPane * self) -{ -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self->priv = PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_GET_PRIVATE (self); -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self->priv->pane_widget = NULL; -#line 803 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_authentication_pane_finalize (GObject * obj) -{ - PublishingAuthenticatorShotwellTumblrAuthenticationPane * self; -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_AUTHENTICATION_PANE, PublishingAuthenticatorShotwellTumblrAuthenticationPane); -#line 28 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 29 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->builder); -#line 30 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->username_entry); -#line 31 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->password_entry); -#line 32 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (self->priv->login_button); -#line 20 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - G_OBJECT_CLASS (publishing_authenticator_shotwell_tumblr_authentication_pane_parent_class)->finalize (obj); -#line 825 "TumblrAuthenticator.c" -} - - -/** - * The authentication pane used when asking service URL, user name and password - * from the user. - */ -GType -publishing_authenticator_shotwell_tumblr_authentication_pane_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_tumblr_authentication_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_tumblr_authentication_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellTumblrAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_tumblr_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellTumblrAuthenticationPane), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_tumblr_authentication_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_authenticator_shotwell_tumblr_authentication_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_authenticator_shotwell_tumblr_authentication_pane_type_id; - publishing_authenticator_shotwell_tumblr_authentication_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingAuthenticatorShotwellTumblrAuthenticationPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_authenticator_shotwell_tumblr_authentication_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_authenticator_shotwell_tumblr_authentication_pane_type_id__volatile, publishing_authenticator_shotwell_tumblr_authentication_pane_type_id); - } - return publishing_authenticator_shotwell_tumblr_authentication_pane_type_id__volatile; -} - - -PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction* -publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - const gchar* username, - const gchar* password) -{ - PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_val_if_fail (username != NULL, NULL); -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_val_if_fail (password != NULL, NULL); -#line 120 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = (PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction*) publishing_rest_support_oauth1_transaction_construct_with_uri (object_type, session, "https://www.tumblr.com/oauth/access_token", PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 122 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = soup_uri_encode (username, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_ENCODE_RFC_3986_EXTRA); -#line 122 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = _tmp0_; -#line 122 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "x_auth_username", _tmp1_); -#line 122 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (_tmp1_); -#line 123 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "x_auth_password", password); -#line 124 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "x_auth_mode", "client_auth"); -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return self; -#line 880 "TumblrAuthenticator.c" -} - - -PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction* -publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_new (PublishingRESTSupportOAuth1Session* session, - const gchar* username, - const gchar* password) -{ -#line 119 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_ACCESS_TOKEN_FETCH_TRANSACTION, session, username, password); -#line 891 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_class_init (PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionClass * klass) -{ -#line 118 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_parent_class = g_type_class_peek_parent (klass); -#line 900 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_instance_init (PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction * self) -{ -} - - -GType -publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_instance_init, NULL }; - GType publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_type_id; - publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, "PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_type_id__volatile, publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_type_id); - } - return publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_type_id__volatile; -} - - -PublishingAuthenticatorShotwellTumblrTumblr* -publishing_authenticator_shotwell_tumblr_tumblr_construct (GType object_type, - SpitPublishingPluginHost* host) -{ - PublishingAuthenticatorShotwellTumblrTumblr * self = NULL; -#line 129 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 130 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = (PublishingAuthenticatorShotwellTumblrTumblr*) publishing_authenticator_shotwell_oauth1_authenticator_construct (object_type, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_API_KEY, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_API_SECRET, host); -#line 129 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return self; -#line 935 "TumblrAuthenticator.c" -} - - -PublishingAuthenticatorShotwellTumblrTumblr* -publishing_authenticator_shotwell_tumblr_tumblr_new (SpitPublishingPluginHost* host) -{ -#line 129 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return publishing_authenticator_shotwell_tumblr_tumblr_construct (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, host); -#line 944 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_real_authenticate (PublishingAuthenticatorShotwellOAuth1Authenticator* base) -{ - PublishingAuthenticatorShotwellTumblrTumblr * self; -#line 133 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblr); -#line 134 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (publishing_authenticator_shotwell_oauth1_authenticator_is_persistent_session_valid (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator))) { -#line 956 "TumblrAuthenticator.c" - PublishingRESTSupportOAuth1Session* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 135 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:135: attempt start: a persistent session is a" \ -"vailable; using it"); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = _tmp1_; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp3_ = publishing_authenticator_shotwell_oauth1_authenticator_get_persistent_access_phase_token_secret (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp4_ = _tmp3_; -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_rest_support_oauth1_session_authenticate_from_persistent_credentials (_tmp0_, _tmp2_, _tmp4_, ""); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (_tmp4_); -#line 137 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (_tmp2_); -#line 980 "TumblrAuthenticator.c" - } else { -#line 140 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:140: attempt start: no persistent session ava" \ -"ilable; showing login welcome pane"); -#line 142 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_tumblr_do_show_authentication_pane (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_AUTHENTICATION_PANE_MODE_INTRO); -#line 986 "TumblrAuthenticator.c" - } -} - - -static gboolean -publishing_authenticator_shotwell_tumblr_tumblr_real_can_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* base) -{ - PublishingAuthenticatorShotwellTumblrTumblr * self; - gboolean result = FALSE; -#line 146 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblr); -#line 147 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - result = TRUE; -#line 147 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return result; -#line 1002 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_real_logout (PublishingAuthenticatorShotwellOAuth1Authenticator* base) -{ - PublishingAuthenticatorShotwellTumblrTumblr * self; - PublishingRESTSupportOAuth1Session* _tmp0_; -#line 150 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblr); -#line 151 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 151 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_rest_support_oauth1_session_deauthenticate (_tmp0_); -#line 152 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_oauth1_authenticator_invalidate_persistent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)); -#line 1019 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_real_refresh (PublishingAuthenticatorShotwellOAuth1Authenticator* base) -{ - PublishingAuthenticatorShotwellTumblrTumblr * self; -#line 155 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_TYPE_TUMBLR, PublishingAuthenticatorShotwellTumblrTumblr); -#line 1029 "TumblrAuthenticator.c" -} - - -/** - * Action that shows the authentication pane. - * - * This action method shows the authentication pane. It is shown at the - * very beginning of the interaction when no persistent parameters are found - * or after a failed login attempt using persisted parameters. It can be - * given a mode flag to specify whether it should be displayed in initial - * mode or in any of the error modes that it supports. - * - * @param mode the mode for the authentication pane - */ -static void -_publishing_authenticator_shotwell_tumblr_tumblr_on_authentication_pane_login_clicked_publishing_authenticator_shotwell_tumblr_authentication_pane_login (PublishingAuthenticatorShotwellTumblrAuthenticationPane* _sender, - const gchar* user, - const gchar* password, - gpointer self) -{ -#line 175 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_tumblr_on_authentication_pane_login_clicked ((PublishingAuthenticatorShotwellTumblrTumblr*) self, user, password); -#line 1052 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_do_show_authentication_pane (PublishingAuthenticatorShotwellTumblrTumblr* self, - PublishingAuthenticatorShotwellTumblrAuthenticationPaneMode mode) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingAuthenticatorShotwellTumblrAuthenticationPane* authentication_pane = NULL; - PublishingAuthenticatorShotwellTumblrAuthenticationPane* _tmp1_; - SpitPublishingPluginHost* _tmp2_; - SpitPublishingPluginHost* _tmp3_; - GtkWidget* _tmp4_; - GtkWidget* _tmp5_; -#line 170 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR (self)); -#line 171 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:171: ACTION: installing authentication pane"); -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 173 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 174 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = publishing_authenticator_shotwell_tumblr_authentication_pane_new (mode); -#line 174 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - authentication_pane = _tmp1_; -#line 175 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_connect_object (authentication_pane, "login", (GCallback) _publishing_authenticator_shotwell_tumblr_tumblr_on_authentication_pane_login_clicked_publishing_authenticator_shotwell_tumblr_authentication_pane_login, self, 0); -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 176 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (authentication_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 177 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 177 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp4_ = publishing_authenticator_shotwell_tumblr_authentication_pane_get_default_widget (authentication_pane); -#line 177 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp5_ = _tmp4_; -#line 177 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp3_, _tmp5_); -#line 177 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (_tmp5_); -#line 170 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_object_unref0 (authentication_pane); -#line 1097 "TumblrAuthenticator.c" -} - - -/** - * Event triggered when the login button in the authentication panel is - * clicked. - * - * This event is triggered when the login button in the authentication - * panel is clicked. It then triggers a network login interaction. - * - * @param username the name of the Tumblr user as entered in the dialog - * @param password the password of the Tumblr as entered in the dialog - */ -static void -publishing_authenticator_shotwell_tumblr_tumblr_on_authentication_pane_login_clicked (PublishingAuthenticatorShotwellTumblrTumblr* self, - const gchar* username, - const gchar* password) -{ -#line 190 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR (self)); -#line 190 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (username != NULL); -#line 190 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (password != NULL); -#line 191 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:191: EVENT: on_authentication_pane_login_clic" \ -"ked"); -#line 193 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_tumblr_do_network_login (self, username, password); -#line 1126 "TumblrAuthenticator.c" -} - - -/** - * Action to perform a network login to a Tumblr blog. - * - * This action performs a network login a Tumblr blog specified the given user name and password as credentials. - * - * @param username the name of the Tumblr user used to login - * @param password the password of the Tumblr user used to login - */ -static void -_publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 210 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_completed ((PublishingAuthenticatorShotwellTumblrTumblr*) self, _sender); -#line 1144 "TumblrAuthenticator.c" -} - - -static void -_publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 211 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_error ((PublishingAuthenticatorShotwellTumblrTumblr*) self, _sender, err); -#line 1155 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_do_network_login (PublishingAuthenticatorShotwellTumblrTumblr* self, - const gchar* username, - const gchar* password) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction* txn = NULL; - PublishingRESTSupportOAuth1Session* _tmp2_; - PublishingAuthenticatorShotwellTumblrAccessTokenFetchTransaction* _tmp3_; - GError * _inner_error_ = NULL; -#line 204 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR (self)); -#line 204 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (username != NULL); -#line 204 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (password != NULL); -#line 205 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:205: ACTION: logging in"); -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 206 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 207 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - spit_publishing_plugin_host_install_login_wait_pane (_tmp1_); -#line 209 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 209 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp3_ = publishing_authenticator_shotwell_tumblr_access_token_fetch_transaction_new (_tmp2_, username, password); -#line 209 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - txn = _tmp3_; -#line 210 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self, 0); -#line 211 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self, 0); -#line 1196 "TumblrAuthenticator.c" - { -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 1204 "TumblrAuthenticator.c" - goto __catch9_spit_publishing_publishing_error; - } -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 214 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return; -#line 1215 "TumblrAuthenticator.c" - } - } - goto __finally9; - __catch9_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp4_; - GError* _tmp5_; -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - err = _inner_error_; -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _inner_error_ = NULL; -#line 216 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 216 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp5_ = err; -#line 216 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp5_); -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_error_free0 (err); -#line 1236 "TumblrAuthenticator.c" - } - __finally9: -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_clear_error (&_inner_error_); -#line 213 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - return; -#line 1249 "TumblrAuthenticator.c" - } -#line 204 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 1253 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_completed (PublishingAuthenticatorShotwellTumblrTumblr* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 220 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR (self)); -#line 220 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 221 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 221 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self); -#line 222 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 222 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self); -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp3_ = _tmp2_; -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:224: EVENT: OAuth authentication request tran" \ -"saction completed; response = '%s'", _tmp3_); -#line 224 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (_tmp3_); -#line 227 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (txn); -#line 227 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp5_ = _tmp4_; -#line 227 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_tumblr_do_parse_token_info_from_auth_request (self, _tmp5_); -#line 227 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (_tmp5_); -#line 1295 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_error (PublishingAuthenticatorShotwellTumblrTumblr* self, - PublishingRESTSupportTransaction* txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - SpitPublishingPluginHost* _tmp2_; -#line 230 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR (self)); -#line 230 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 232 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_completed_publishing_rest_support_transaction_completed, self); -#line 233 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 233 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_authenticator_shotwell_tumblr_tumblr_on_auth_request_txn_error_publishing_rest_support_transaction_network_error, self); -#line 235 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:235: EVENT: OAuth authentication request tran" \ -"saction caused a network error"); -#line 236 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 236 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp2_, err); -#line 1325 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_do_parse_token_info_from_auth_request (PublishingAuthenticatorShotwellTumblrTumblr* self, - const gchar* response) -{ - gchar* token = NULL; - gchar* token_secret = NULL; - GHashTable* data = NULL; - GHashTable* _tmp0_; - GHashTable* _tmp1_; - gconstpointer _tmp2_ = NULL; - gchar* _tmp3_; - GHashTable* _tmp4_; - gconstpointer _tmp5_ = NULL; - gchar* _tmp6_; - const gchar* _tmp7_; - const gchar* _tmp8_; - gboolean _tmp9_ = FALSE; - const gchar* _tmp10_; -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (PUBLISHING_AUTHENTICATOR_SHOTWELL_TUMBLR_IS_TUMBLR (self)); -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_return_if_fail (response != NULL); -#line 240 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:240: ACTION: extracting access phase credenti" \ -"als from '%s'", response); -#line 242 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - token = NULL; -#line 243 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - token_secret = NULL; -#line 245 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp0_ = soup_form_decode (response); -#line 245 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - data = _tmp0_; -#line 246 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp1_ = data; -#line 246 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_hash_table_lookup_extended (_tmp1_, "oauth_token", NULL, &_tmp2_); -#line 246 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (token); -#line 246 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 246 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - token = _tmp3_; -#line 247 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp4_ = data; -#line 247 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_hash_table_lookup_extended (_tmp4_, "oauth_token_secret", NULL, &_tmp5_); -#line 247 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (token_secret); -#line 247 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 247 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - token_secret = _tmp6_; -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp7_ = token; -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp8_ = token_secret; -#line 249 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_debug ("TumblrAuthenticator.vala:249: access phase credentials: { token = '%s'" \ -"; token_secret = '%s' }", _tmp7_, _tmp8_); -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp10_ = token; -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (_tmp10_ == NULL) { -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp9_ = TRUE; -#line 1393 "TumblrAuthenticator.c" - } else { - const gchar* _tmp11_; -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp11_ = token_secret; -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp9_ = _tmp11_ == NULL; -#line 1400 "TumblrAuthenticator.c" - } -#line 252 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - if (_tmp9_) { -#line 1404 "TumblrAuthenticator.c" - SpitPublishingPluginHost* _tmp12_; - GError* _tmp13_; - GError* _tmp14_; -#line 253 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->host; -#line 253 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp13_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Expected " "access phase credentials to contain token and token secret but at " "least one of these is absent"); -#line 253 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp14_ = _tmp13_; -#line 253 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - spit_publishing_plugin_host_post_error (_tmp12_, _tmp14_); -#line 253 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_error_free0 (_tmp14_); -#line 256 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator), "authentication-failed"); -#line 1420 "TumblrAuthenticator.c" - } else { - PublishingRESTSupportOAuth1Session* _tmp15_; - const gchar* _tmp16_; - const gchar* _tmp17_; -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, PublishingAuthenticatorShotwellOAuth1Authenticator)->session; -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp16_ = token; -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _tmp17_ = token_secret; -#line 258 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_rest_support_oauth1_session_set_access_phase_credentials (_tmp15_, _tmp16_, _tmp17_, ""); -#line 1433 "TumblrAuthenticator.c" - } -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_hash_table_unref0 (data); -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (token_secret); -#line 239 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - _g_free0 (token); -#line 1441 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_class_init (PublishingAuthenticatorShotwellTumblrTumblrClass * klass) -{ -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - publishing_authenticator_shotwell_tumblr_tumblr_parent_class = g_type_class_peek_parent (klass); -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->authenticate = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_tumblr_tumblr_real_authenticate; -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->can_logout = (gboolean (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_tumblr_tumblr_real_can_logout; -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->logout = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_tumblr_tumblr_real_logout; -#line 128 "/home/jens/Source/shotwell/plugins/authenticator/shotwell/TumblrAuthenticator.vala" - ((PublishingAuthenticatorShotwellOAuth1AuthenticatorClass *) klass)->refresh = (void (*) (PublishingAuthenticatorShotwellOAuth1Authenticator *)) publishing_authenticator_shotwell_tumblr_tumblr_real_refresh; -#line 1458 "TumblrAuthenticator.c" -} - - -static void -publishing_authenticator_shotwell_tumblr_tumblr_instance_init (PublishingAuthenticatorShotwellTumblrTumblr * self) -{ -} - - -GType -publishing_authenticator_shotwell_tumblr_tumblr_get_type (void) -{ - static volatile gsize publishing_authenticator_shotwell_tumblr_tumblr_type_id__volatile = 0; - if (g_once_init_enter (&publishing_authenticator_shotwell_tumblr_tumblr_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingAuthenticatorShotwellTumblrTumblrClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_authenticator_shotwell_tumblr_tumblr_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingAuthenticatorShotwellTumblrTumblr), 0, (GInstanceInitFunc) publishing_authenticator_shotwell_tumblr_tumblr_instance_init, NULL }; - GType publishing_authenticator_shotwell_tumblr_tumblr_type_id; - publishing_authenticator_shotwell_tumblr_tumblr_type_id = g_type_register_static (PUBLISHING_AUTHENTICATOR_SHOTWELL_OAUTH1_TYPE_AUTHENTICATOR, "PublishingAuthenticatorShotwellTumblrTumblr", &g_define_type_info, 0); - g_once_init_leave (&publishing_authenticator_shotwell_tumblr_tumblr_type_id__volatile, publishing_authenticator_shotwell_tumblr_tumblr_type_id); - } - return publishing_authenticator_shotwell_tumblr_tumblr_type_id__volatile; -} - - - diff --git a/plugins/common/BuilderPane.c b/plugins/common/BuilderPane.c deleted file mode 100644 index 5bfa676..0000000 --- a/plugins/common/BuilderPane.c +++ /dev/null @@ -1,711 +0,0 @@ -/* BuilderPane.c generated by valac 0.40.4, the Vala compiler - * generated from BuilderPane.vala, do not modify */ - -/* Copyright 2016 Jens Georg - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include - - -#define SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE (shotwell_plugins_common_builder_pane_get_type ()) -#define SHOTWELL_PLUGINS_COMMON_BUILDER_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)) -#define SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPaneClass)) -#define SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE)) -#define SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE)) -#define SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPaneClass)) - -typedef struct _ShotwellPluginsCommonBuilderPane ShotwellPluginsCommonBuilderPane; -typedef struct _ShotwellPluginsCommonBuilderPaneClass ShotwellPluginsCommonBuilderPaneClass; -typedef struct _ShotwellPluginsCommonBuilderPanePrivate ShotwellPluginsCommonBuilderPanePrivate; -enum { - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_0_PROPERTY, - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_PREFERRED_GEOMETRY_PROPERTY, - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_RESOURCE_PATH_PROPERTY, - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CONNECT_SIGNALS_PROPERTY, - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_DEFAULT_ID_PROPERTY, - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_NUM_PROPERTIES -}; -static GParamSpec* shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -struct _ShotwellPluginsCommonBuilderPane { - GObject parent_instance; - ShotwellPluginsCommonBuilderPanePrivate * priv; -}; - -struct _ShotwellPluginsCommonBuilderPaneClass { - GObjectClass parent_class; - GtkWidget* (*get_default_widget) (ShotwellPluginsCommonBuilderPane* self); - void (*on_pane_installed) (ShotwellPluginsCommonBuilderPane* self); - void (*on_pane_uninstalled) (ShotwellPluginsCommonBuilderPane* self); -}; - -struct _ShotwellPluginsCommonBuilderPanePrivate { - SpitPublishingDialogPaneGeometryOptions _preferred_geometry; - gchar* _resource_path; - gboolean _connect_signals; - gchar* _default_id; - GtkBuilder* builder; - GtkWidget* content; -}; - - -static gpointer shotwell_plugins_common_builder_pane_parent_class = NULL; -static SpitPublishingDialogPaneIface * shotwell_plugins_common_builder_pane_spit_publishing_dialog_pane_parent_iface = NULL; - -GType shotwell_plugins_common_builder_pane_get_type (void) G_GNUC_CONST; -#define SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPanePrivate)) -static void shotwell_plugins_common_builder_pane_real_constructed (GObject* base); -gchar* shotwell_plugins_common_builder_pane_get_resource_path (ShotwellPluginsCommonBuilderPane* self); -gboolean shotwell_plugins_common_builder_pane_get_connect_signals (ShotwellPluginsCommonBuilderPane* self); -static SpitPublishingDialogPaneGeometryOptions shotwell_plugins_common_builder_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -SpitPublishingDialogPaneGeometryOptions shotwell_plugins_common_builder_pane_get_preferred_geometry (ShotwellPluginsCommonBuilderPane* self); -static GtkWidget* shotwell_plugins_common_builder_pane_real_get_widget (SpitPublishingDialogPane* base); -GtkBuilder* shotwell_plugins_common_builder_pane_get_builder (ShotwellPluginsCommonBuilderPane* self); -GtkWidget* shotwell_plugins_common_builder_pane_get_default_widget (ShotwellPluginsCommonBuilderPane* self); -static GtkWidget* shotwell_plugins_common_builder_pane_real_get_default_widget (ShotwellPluginsCommonBuilderPane* self); -gchar* shotwell_plugins_common_builder_pane_get_default_id (ShotwellPluginsCommonBuilderPane* self); -void shotwell_plugins_common_builder_pane_on_pane_installed (ShotwellPluginsCommonBuilderPane* self); -static void shotwell_plugins_common_builder_pane_real_on_pane_installed (ShotwellPluginsCommonBuilderPane* self); -void shotwell_plugins_common_builder_pane_on_pane_uninstalled (ShotwellPluginsCommonBuilderPane* self); -static void shotwell_plugins_common_builder_pane_real_on_pane_uninstalled (ShotwellPluginsCommonBuilderPane* self); -ShotwellPluginsCommonBuilderPane* shotwell_plugins_common_builder_pane_construct (GType object_type); -static void shotwell_plugins_common_builder_pane_set_preferred_geometry (ShotwellPluginsCommonBuilderPane* self, - SpitPublishingDialogPaneGeometryOptions value); -static void shotwell_plugins_common_builder_pane_set_resource_path (ShotwellPluginsCommonBuilderPane* self, - const gchar* value); -static void shotwell_plugins_common_builder_pane_set_connect_signals (ShotwellPluginsCommonBuilderPane* self, - gboolean value); -static void shotwell_plugins_common_builder_pane_set_default_id (ShotwellPluginsCommonBuilderPane* self, - const gchar* value); -static void shotwell_plugins_common_builder_pane_finalize (GObject * obj); -static void _vala_shotwell_plugins_common_builder_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_shotwell_plugins_common_builder_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 32 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return self ? g_object_ref (self) : NULL; -#line 108 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_real_constructed (GObject* base) -{ - ShotwellPluginsCommonBuilderPane * self; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - GtkBuilder* _tmp6_; - gboolean _tmp7_; - GtkBuilder* _tmp9_; - GObject* _tmp10_; - GtkWidget* _tmp11_; - GtkWidget* _tmp12_; - GtkContainer* _tmp13_; - GtkContainer* _tmp14_; -#line 22 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane); -#line 23 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - G_OBJECT_CLASS (shotwell_plugins_common_builder_pane_parent_class)->constructed (G_TYPE_CHECK_INSTANCE_CAST (self, G_TYPE_OBJECT, GObject)); -#line 25 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = shotwell_plugins_common_builder_pane_get_resource_path (self); -#line 25 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp1_ = _tmp0_; -#line 25 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp2_ = _tmp1_; -#line 25 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_debug ("BuilderPane.vala:25: Adding new builder from path %s", _tmp2_); -#line 25 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_free0 (_tmp2_); -#line 27 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp3_ = shotwell_plugins_common_builder_pane_get_resource_path (self); -#line 27 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp4_ = _tmp3_; -#line 27 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp5_ = _tmp4_; -#line 27 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp6_ = gtk_builder_new_from_resource (_tmp5_); -#line 27 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_object_unref0 (self->priv->builder); -#line 27 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->builder = _tmp6_; -#line 27 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_free0 (_tmp5_); -#line 28 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp7_ = self->priv->_connect_signals; -#line 28 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - if (_tmp7_) { -#line 162 "BuilderPane.c" - GtkBuilder* _tmp8_; -#line 29 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp8_ = self->priv->builder; -#line 29 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - gtk_builder_connect_signals (_tmp8_, NULL); -#line 168 "BuilderPane.c" - } -#line 32 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp9_ = self->priv->builder; -#line 32 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp10_ = gtk_builder_get_object (_tmp9_, "content"); -#line 32 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, gtk_widget_get_type ()) ? ((GtkWidget*) _tmp10_) : NULL); -#line 32 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_object_unref0 (self->priv->content); -#line 32 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->content = _tmp11_; -#line 35 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp12_ = self->priv->content; -#line 35 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp13_ = gtk_widget_get_parent (_tmp12_); -#line 35 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp14_ = _tmp13_; -#line 35 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - if (_tmp14_ != NULL) { -#line 188 "BuilderPane.c" - GtkWidget* _tmp15_; - GtkContainer* _tmp16_; - GtkContainer* _tmp17_; - GtkWidget* _tmp18_; -#line 36 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp15_ = self->priv->content; -#line 36 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp16_ = gtk_widget_get_parent (_tmp15_); -#line 36 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp17_ = _tmp16_; -#line 36 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp18_ = self->priv->content; -#line 36 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - gtk_container_remove (_tmp17_, _tmp18_); -#line 203 "BuilderPane.c" - } -} - - -static SpitPublishingDialogPaneGeometryOptions -shotwell_plugins_common_builder_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - ShotwellPluginsCommonBuilderPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; - SpitPublishingDialogPaneGeometryOptions _tmp0_; -#line 40 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane); -#line 41 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = self->priv->_preferred_geometry; -#line 41 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - result = _tmp0_; -#line 41 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return result; -#line 222 "BuilderPane.c" -} - - -static GtkWidget* -shotwell_plugins_common_builder_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - ShotwellPluginsCommonBuilderPane * self; - GtkWidget* result = NULL; - GtkWidget* _tmp0_; - GtkWidget* _tmp1_; -#line 44 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane); -#line 45 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = self->priv->content; -#line 45 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 45 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - result = _tmp1_; -#line 45 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return result; -#line 243 "BuilderPane.c" -} - - -GtkBuilder* -shotwell_plugins_common_builder_pane_get_builder (ShotwellPluginsCommonBuilderPane* self) -{ - GtkBuilder* result = NULL; - GtkBuilder* _tmp0_; - GtkBuilder* _tmp1_; -#line 48 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self), NULL); -#line 49 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = self->priv->builder; -#line 49 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 49 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - result = _tmp1_; -#line 49 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return result; -#line 263 "BuilderPane.c" -} - - -static GtkWidget* -shotwell_plugins_common_builder_pane_real_get_default_widget (ShotwellPluginsCommonBuilderPane* self) -{ - GtkWidget* result = NULL; - GtkBuilder* _tmp0_; - GtkBuilder* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - GObject* _tmp5_; - GtkWidget* _tmp6_; - GtkWidget* _tmp7_; -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = shotwell_plugins_common_builder_pane_get_builder (self); -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp1_ = _tmp0_; -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp2_ = shotwell_plugins_common_builder_pane_get_default_id (self); -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp3_ = _tmp2_; -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp4_ = _tmp3_; -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp5_ = gtk_builder_get_object (_tmp1_, _tmp4_); -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gtk_widget_get_type ()) ? ((GtkWidget*) _tmp5_) : NULL); -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp7_ = _tmp6_; -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_free0 (_tmp4_); -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_object_unref0 (_tmp1_); -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - result = _tmp7_; -#line 53 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return result; -#line 303 "BuilderPane.c" -} - - -GtkWidget* -shotwell_plugins_common_builder_pane_get_default_widget (ShotwellPluginsCommonBuilderPane* self) -{ -#line 52 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self), NULL); -#line 52 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_GET_CLASS (self)->get_default_widget (self); -#line 314 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_real_on_pane_installed (ShotwellPluginsCommonBuilderPane* self) -{ -} - - -void -shotwell_plugins_common_builder_pane_on_pane_installed (ShotwellPluginsCommonBuilderPane* self) -{ -#line 56 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self)); -#line 56 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_GET_CLASS (self)->on_pane_installed (self); -#line 331 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_real_on_pane_uninstalled (ShotwellPluginsCommonBuilderPane* self) -{ -} - - -void -shotwell_plugins_common_builder_pane_on_pane_uninstalled (ShotwellPluginsCommonBuilderPane* self) -{ -#line 58 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self)); -#line 58 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_GET_CLASS (self)->on_pane_uninstalled (self); -#line 348 "BuilderPane.c" -} - - -ShotwellPluginsCommonBuilderPane* -shotwell_plugins_common_builder_pane_construct (GType object_type) -{ - ShotwellPluginsCommonBuilderPane * self = NULL; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self = (ShotwellPluginsCommonBuilderPane*) g_object_new (object_type, NULL); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return self; -#line 360 "BuilderPane.c" -} - - -SpitPublishingDialogPaneGeometryOptions -shotwell_plugins_common_builder_pane_get_preferred_geometry (ShotwellPluginsCommonBuilderPane* self) -{ - SpitPublishingDialogPaneGeometryOptions result; - SpitPublishingDialogPaneGeometryOptions _tmp0_; -#line 11 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self), 0); -#line 11 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = self->priv->_preferred_geometry; -#line 11 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - result = _tmp0_; -#line 11 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return result; -#line 377 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_set_preferred_geometry (ShotwellPluginsCommonBuilderPane* self, - SpitPublishingDialogPaneGeometryOptions value) -{ -#line 11 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self)); -#line 11 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - if (shotwell_plugins_common_builder_pane_get_preferred_geometry (self) != value) { -#line 11 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->_preferred_geometry = value; -#line 11 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_object_notify_by_pspec ((GObject *) self, shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_PREFERRED_GEOMETRY_PROPERTY]); -#line 393 "BuilderPane.c" - } -} - - -gchar* -shotwell_plugins_common_builder_pane_get_resource_path (ShotwellPluginsCommonBuilderPane* self) -{ - gchar* result; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self), NULL); -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = self->priv->_resource_path; -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - result = _tmp1_; -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return result; -#line 414 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_set_resource_path (ShotwellPluginsCommonBuilderPane* self, - const gchar* value) -{ -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self)); -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - if (g_strcmp0 (value, shotwell_plugins_common_builder_pane_get_resource_path (self)) != 0) { -#line 426 "BuilderPane.c" - gchar* _tmp0_; -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = g_strdup (value); -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_free0 (self->priv->_resource_path); -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->_resource_path = _tmp0_; -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_object_notify_by_pspec ((GObject *) self, shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_RESOURCE_PATH_PROPERTY]); -#line 436 "BuilderPane.c" - } -} - - -gboolean -shotwell_plugins_common_builder_pane_get_connect_signals (ShotwellPluginsCommonBuilderPane* self) -{ - gboolean result; - gboolean _tmp0_; -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self), FALSE); -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = self->priv->_connect_signals; -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - result = _tmp0_; -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return result; -#line 454 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_set_connect_signals (ShotwellPluginsCommonBuilderPane* self, - gboolean value) -{ -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self)); -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - if (shotwell_plugins_common_builder_pane_get_connect_signals (self) != value) { -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->_connect_signals = value; -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_object_notify_by_pspec ((GObject *) self, shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CONNECT_SIGNALS_PROPERTY]); -#line 470 "BuilderPane.c" - } -} - - -gchar* -shotwell_plugins_common_builder_pane_get_default_id (ShotwellPluginsCommonBuilderPane* self) -{ - gchar* result; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self), NULL); -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = self->priv->_default_id; -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - result = _tmp1_; -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - return result; -#line 491 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_set_default_id (ShotwellPluginsCommonBuilderPane* self, - const gchar* value) -{ -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE (self)); -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - if (g_strcmp0 (value, shotwell_plugins_common_builder_pane_get_default_id (self)) != 0) { -#line 503 "BuilderPane.c" - gchar* _tmp0_; -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = g_strdup (value); -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_free0 (self->priv->_default_id); -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->_default_id = _tmp0_; -#line 16 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_object_notify_by_pspec ((GObject *) self, shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_DEFAULT_ID_PROPERTY]); -#line 513 "BuilderPane.c" - } -} - - -static void -shotwell_plugins_common_builder_pane_class_init (ShotwellPluginsCommonBuilderPaneClass * klass) -{ -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - shotwell_plugins_common_builder_pane_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_type_class_add_private (klass, sizeof (ShotwellPluginsCommonBuilderPanePrivate)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) shotwell_plugins_common_builder_pane_real_constructed; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - ((ShotwellPluginsCommonBuilderPaneClass *) klass)->get_default_widget = (GtkWidget* (*) (ShotwellPluginsCommonBuilderPane *)) shotwell_plugins_common_builder_pane_real_get_default_widget; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - ((ShotwellPluginsCommonBuilderPaneClass *) klass)->on_pane_installed = (void (*) (ShotwellPluginsCommonBuilderPane *)) shotwell_plugins_common_builder_pane_real_on_pane_installed; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - ((ShotwellPluginsCommonBuilderPaneClass *) klass)->on_pane_uninstalled = (void (*) (ShotwellPluginsCommonBuilderPane *)) shotwell_plugins_common_builder_pane_real_on_pane_uninstalled; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_shotwell_plugins_common_builder_pane_get_property; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_shotwell_plugins_common_builder_pane_set_property; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - G_OBJECT_CLASS (klass)->finalize = shotwell_plugins_common_builder_pane_finalize; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_PREFERRED_GEOMETRY_PROPERTY, shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_PREFERRED_GEOMETRY_PROPERTY] = g_param_spec_enum ("preferred-geometry", "preferred-geometry", "preferred-geometry", SPIT_PUBLISHING_DIALOG_PANE_TYPE_GEOMETRY_OPTIONS, SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_RESOURCE_PATH_PROPERTY, shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_RESOURCE_PATH_PROPERTY] = g_param_spec_string ("resource-path", "resource-path", "resource-path", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CONNECT_SIGNALS_PROPERTY, shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CONNECT_SIGNALS_PROPERTY] = g_param_spec_boolean ("connect-signals", "connect-signals", "connect-signals", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_DEFAULT_ID_PROPERTY, shotwell_plugins_common_builder_pane_properties[SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_DEFAULT_ID_PROPERTY] = g_param_spec_string ("default-id", "default-id", "default-id", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 547 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - shotwell_plugins_common_builder_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) shotwell_plugins_common_builder_pane_real_get_preferred_geometry; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) shotwell_plugins_common_builder_pane_real_get_widget; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) shotwell_plugins_common_builder_pane_on_pane_installed; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) shotwell_plugins_common_builder_pane_on_pane_uninstalled; -#line 564 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_instance_init (ShotwellPluginsCommonBuilderPane * self) -{ - gchar* _tmp0_; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv = SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_GET_PRIVATE (self); -#line 10 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->_preferred_geometry = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 14 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->_connect_signals = FALSE; -#line 15 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _tmp0_ = g_strdup ("default"); -#line 15 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self->priv->_default_id = _tmp0_; -#line 582 "BuilderPane.c" -} - - -static void -shotwell_plugins_common_builder_pane_finalize (GObject * obj) -{ - ShotwellPluginsCommonBuilderPane * self; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane); -#line 13 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_free0 (self->priv->_resource_path); -#line 15 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_free0 (self->priv->_default_id); -#line 19 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_object_unref0 (self->priv->builder); -#line 20 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - _g_object_unref0 (self->priv->content); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - G_OBJECT_CLASS (shotwell_plugins_common_builder_pane_parent_class)->finalize (obj); -#line 602 "BuilderPane.c" -} - - -GType -shotwell_plugins_common_builder_pane_get_type (void) -{ - static volatile gsize shotwell_plugins_common_builder_pane_type_id__volatile = 0; - if (g_once_init_enter (&shotwell_plugins_common_builder_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ShotwellPluginsCommonBuilderPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_plugins_common_builder_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellPluginsCommonBuilderPane), 0, (GInstanceInitFunc) shotwell_plugins_common_builder_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) shotwell_plugins_common_builder_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType shotwell_plugins_common_builder_pane_type_id; - shotwell_plugins_common_builder_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellPluginsCommonBuilderPane", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_type_add_interface_static (shotwell_plugins_common_builder_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&shotwell_plugins_common_builder_pane_type_id__volatile, shotwell_plugins_common_builder_pane_type_id); - } - return shotwell_plugins_common_builder_pane_type_id__volatile; -} - - -static void -_vala_shotwell_plugins_common_builder_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - ShotwellPluginsCommonBuilderPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - switch (property_id) { -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - case SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_PREFERRED_GEOMETRY_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_value_set_enum (value, shotwell_plugins_common_builder_pane_get_preferred_geometry (self)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - case SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_RESOURCE_PATH_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_value_take_string (value, shotwell_plugins_common_builder_pane_get_resource_path (self)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - case SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CONNECT_SIGNALS_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_value_set_boolean (value, shotwell_plugins_common_builder_pane_get_connect_signals (self)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - case SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_DEFAULT_ID_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - g_value_take_string (value, shotwell_plugins_common_builder_pane_get_default_id (self)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 656 "BuilderPane.c" - default: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 662 "BuilderPane.c" - } -} - - -static void -_vala_shotwell_plugins_common_builder_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - ShotwellPluginsCommonBuilderPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - switch (property_id) { -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - case SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_PREFERRED_GEOMETRY_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - shotwell_plugins_common_builder_pane_set_preferred_geometry (self, g_value_get_enum (value)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - case SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_RESOURCE_PATH_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - shotwell_plugins_common_builder_pane_set_resource_path (self, g_value_get_string (value)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - case SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CONNECT_SIGNALS_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - shotwell_plugins_common_builder_pane_set_connect_signals (self, g_value_get_boolean (value)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - case SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_DEFAULT_ID_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - shotwell_plugins_common_builder_pane_set_default_id (self, g_value_get_string (value)); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 701 "BuilderPane.c" - default: -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 9 "/home/jens/Source/shotwell/plugins/common/BuilderPane.vala" - break; -#line 707 "BuilderPane.c" - } -} - - - diff --git a/plugins/common/OAuth1Support.c b/plugins/common/OAuth1Support.c deleted file mode 100644 index 70e0dc1..0000000 --- a/plugins/common/OAuth1Support.c +++ /dev/null @@ -1,1887 +0,0 @@ -/* OAuth1Support.c generated by valac 0.40.4, the Vala compiler - * generated from OAuth1Support.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * Copyright 2017 Jens Georg - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include - - -#define PUBLISHING_REST_SUPPORT_TYPE_SESSION (publishing_rest_support_session_get_type ()) -#define PUBLISHING_REST_SUPPORT_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)) -#define PUBLISHING_REST_SUPPORT_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionClass)) -#define PUBLISHING_REST_SUPPORT_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionClass)) - -typedef struct _PublishingRESTSupportSession PublishingRESTSupportSession; -typedef struct _PublishingRESTSupportSessionClass PublishingRESTSupportSessionClass; -typedef struct _PublishingRESTSupportSessionPrivate PublishingRESTSupportSessionPrivate; - -#define PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION (publishing_rest_support_oauth1_session_get_type ()) -#define PUBLISHING_REST_SUPPORT_OAUTH1_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1Session)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1SessionClass)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1SessionClass)) - -typedef struct _PublishingRESTSupportOAuth1Session PublishingRESTSupportOAuth1Session; -typedef struct _PublishingRESTSupportOAuth1SessionClass PublishingRESTSupportOAuth1SessionClass; -typedef struct _PublishingRESTSupportOAuth1SessionPrivate PublishingRESTSupportOAuth1SessionPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION (publishing_rest_support_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)) -#define PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionClass)) -#define PUBLISHING_REST_SUPPORT_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionClass)) - -typedef struct _PublishingRESTSupportTransaction PublishingRESTSupportTransaction; -typedef struct _PublishingRESTSupportTransactionClass PublishingRESTSupportTransactionClass; - -#define PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT (publishing_rest_support_argument_get_type ()) -#define PUBLISHING_REST_SUPPORT_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgument)) -#define PUBLISHING_REST_SUPPORT_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgumentClass)) -#define PUBLISHING_REST_SUPPORT_IS_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)) -#define PUBLISHING_REST_SUPPORT_IS_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)) -#define PUBLISHING_REST_SUPPORT_ARGUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgumentClass)) - -typedef struct _PublishingRESTSupportArgument PublishingRESTSupportArgument; -typedef struct _PublishingRESTSupportArgumentClass PublishingRESTSupportArgumentClass; - -#define PUBLISHING_REST_SUPPORT_TYPE_HTTP_METHOD (publishing_rest_support_http_method_get_type ()) -#define _publishing_rest_support_argument_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_argument_unref (var), NULL))) -typedef struct _PublishingRESTSupportTransactionPrivate PublishingRESTSupportTransactionPrivate; - -#define PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION (publishing_rest_support_oauth1_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_OAUTH1_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, PublishingRESTSupportOAuth1Transaction)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, PublishingRESTSupportOAuth1TransactionClass)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, PublishingRESTSupportOAuth1TransactionClass)) - -typedef struct _PublishingRESTSupportOAuth1Transaction PublishingRESTSupportOAuth1Transaction; -typedef struct _PublishingRESTSupportOAuth1TransactionClass PublishingRESTSupportOAuth1TransactionClass; -typedef struct _PublishingRESTSupportOAuth1TransactionPrivate PublishingRESTSupportOAuth1TransactionPrivate; -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) - -#define PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION (publishing_rest_support_upload_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransactionClass)) -#define PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransactionClass)) - -typedef struct _PublishingRESTSupportUploadTransaction PublishingRESTSupportUploadTransaction; -typedef struct _PublishingRESTSupportUploadTransactionClass PublishingRESTSupportUploadTransactionClass; -typedef struct _PublishingRESTSupportUploadTransactionPrivate PublishingRESTSupportUploadTransactionPrivate; - -#define PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION (publishing_rest_support_oauth1_upload_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_OAUTH1_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransactionClass)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransactionClass)) - -typedef struct _PublishingRESTSupportOAuth1UploadTransaction PublishingRESTSupportOAuth1UploadTransaction; -typedef struct _PublishingRESTSupportOAuth1UploadTransactionClass PublishingRESTSupportOAuth1UploadTransactionClass; -typedef struct _PublishingRESTSupportOAuth1UploadTransactionPrivate PublishingRESTSupportOAuth1UploadTransactionPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PublishingRESTSupportSession { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportSessionPrivate * priv; -}; - -struct _PublishingRESTSupportSessionClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportSession *self); - gboolean (*is_authenticated) (PublishingRESTSupportSession* self); -}; - -struct _PublishingRESTSupportOAuth1Session { - PublishingRESTSupportSession parent_instance; - PublishingRESTSupportOAuth1SessionPrivate * priv; -}; - -struct _PublishingRESTSupportOAuth1SessionClass { - PublishingRESTSupportSessionClass parent_class; -}; - -struct _PublishingRESTSupportOAuth1SessionPrivate { - gchar* request_phase_token; - gchar* request_phase_token_secret; - gchar* access_phase_token; - gchar* access_phase_token_secret; - gchar* username; - gchar* consumer_key; - gchar* consumer_secret; -}; - -typedef enum { - PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, - PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST, - PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT -} PublishingRESTSupportHttpMethod; - -struct _PublishingRESTSupportTransaction { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportTransactionPrivate * priv; -}; - -struct _PublishingRESTSupportTransactionClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportTransaction *self); - void (*add_header) (PublishingRESTSupportTransaction* self, const gchar* key, const gchar* value); - void (*execute) (PublishingRESTSupportTransaction* self, GError** error); -}; - -struct _PublishingRESTSupportOAuth1Transaction { - PublishingRESTSupportTransaction parent_instance; - PublishingRESTSupportOAuth1TransactionPrivate * priv; -}; - -struct _PublishingRESTSupportOAuth1TransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingRESTSupportUploadTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingRESTSupportUploadTransactionPrivate * priv; - GHashTable* binary_disposition_table; - SpitPublishingPublishable* publishable; - gchar* mime_type; - GeeHashMap* message_headers; -}; - -struct _PublishingRESTSupportUploadTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingRESTSupportOAuth1UploadTransaction { - PublishingRESTSupportUploadTransaction parent_instance; - PublishingRESTSupportOAuth1UploadTransactionPrivate * priv; - PublishingRESTSupportOAuth1Session* session; -}; - -struct _PublishingRESTSupportOAuth1UploadTransactionClass { - PublishingRESTSupportUploadTransactionClass parent_class; -}; - -struct _PublishingRESTSupportOAuth1UploadTransactionPrivate { - PublishingRESTSupportArgument** auth_header_fields; - gint auth_header_fields_length1; - gint _auth_header_fields_size_; -}; - - -static gpointer publishing_rest_support_oauth1_session_parent_class = NULL; -static gpointer publishing_rest_support_oauth1_transaction_parent_class = NULL; -static gpointer publishing_rest_support_oauth1_upload_transaction_parent_class = NULL; - -#define PUBLISHING_REST_SUPPORT_OAUTH1_ENCODE_RFC_3986_EXTRA "!*'();:@&=+$,/?%#[] \\" -gpointer publishing_rest_support_session_ref (gpointer instance); -void publishing_rest_support_session_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_session (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_session (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_session (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_session (const GValue* value); -GType publishing_rest_support_session_get_type (void) G_GNUC_CONST; -GType publishing_rest_support_oauth1_session_get_type (void) G_GNUC_CONST; -#define PUBLISHING_REST_SUPPORT_OAUTH1_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1SessionPrivate)) -PublishingRESTSupportOAuth1Session* publishing_rest_support_oauth1_session_new (const gchar* endpoint_uri); -PublishingRESTSupportOAuth1Session* publishing_rest_support_oauth1_session_construct (GType object_type, - const gchar* endpoint_uri); -PublishingRESTSupportSession* publishing_rest_support_session_construct (GType object_type, - const gchar* endpoint_url); -static gboolean publishing_rest_support_oauth1_session_real_is_authenticated (PublishingRESTSupportSession* base); -void publishing_rest_support_oauth1_session_authenticate_from_persistent_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret, - const gchar* username); -void publishing_rest_support_oauth1_session_deauthenticate (PublishingRESTSupportOAuth1Session* self); -void publishing_rest_support_oauth1_session_set_api_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* consumer_key, - const gchar* consumer_secret); -gpointer publishing_rest_support_transaction_ref (gpointer instance); -void publishing_rest_support_transaction_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_transaction (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_transaction (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_transaction (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_transaction (const GValue* value); -GType publishing_rest_support_transaction_get_type (void) G_GNUC_CONST; -gpointer publishing_rest_support_argument_ref (gpointer instance); -void publishing_rest_support_argument_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_argument (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_argument (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_argument (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_argument (const GValue* value); -GType publishing_rest_support_argument_get_type (void) G_GNUC_CONST; -gchar* publishing_rest_support_oauth1_session_sign_transaction (PublishingRESTSupportOAuth1Session* self, - PublishingRESTSupportTransaction* txn, - PublishingRESTSupportArgument** extra_arguments, - int extra_arguments_length1); -GType publishing_rest_support_http_method_get_type (void) G_GNUC_CONST; -PublishingRESTSupportHttpMethod publishing_rest_support_transaction_get_method (PublishingRESTSupportTransaction* self); -gchar* publishing_rest_support_http_method_to_string (PublishingRESTSupportHttpMethod self); -PublishingRESTSupportArgument** publishing_rest_support_transaction_get_arguments (PublishingRESTSupportTransaction* self, - int* result_length1); -static void _vala_array_add2 (PublishingRESTSupportArgument** * array, - int* length, - int* size, - PublishingRESTSupportArgument* value); -PublishingRESTSupportArgument** publishing_rest_support_argument_sort (PublishingRESTSupportArgument** inputArray, - int inputArray_length1, - int* result_length1); -gchar* publishing_rest_support_argument_serialize_list (PublishingRESTSupportArgument** args, - int args_length1, - gboolean escape, - const gchar* separator); -gchar* publishing_rest_support_transaction_get_endpoint_url (PublishingRESTSupportTransaction* self); -gchar* publishing_rest_support_hmac_sha1 (const gchar* key, - const gchar* message); -void publishing_rest_support_oauth1_session_set_request_phase_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret); -void publishing_rest_support_oauth1_session_set_access_phase_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret, - const gchar* username); -gchar* publishing_rest_support_oauth1_session_get_oauth_nonce (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_oauth_timestamp (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_consumer_key (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_request_phase_token (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_access_phase_token (PublishingRESTSupportOAuth1Session* self); -gboolean publishing_rest_support_oauth1_session_has_access_phase_token (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_access_phase_token_secret (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_username (PublishingRESTSupportOAuth1Session* self); -gboolean publishing_rest_support_session_is_authenticated (PublishingRESTSupportSession* self); -static void publishing_rest_support_oauth1_session_finalize (PublishingRESTSupportSession * obj); -GType publishing_rest_support_oauth1_transaction_get_type (void) G_GNUC_CONST; -PublishingRESTSupportOAuth1Transaction* publishing_rest_support_oauth1_transaction_new (PublishingRESTSupportOAuth1Session* session, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportOAuth1Transaction* publishing_rest_support_oauth1_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_new (PublishingRESTSupportSession* parent_session, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct (GType object_type, - PublishingRESTSupportSession* parent_session, - PublishingRESTSupportHttpMethod method); -static void publishing_rest_support_oauth1_transaction_setup_arguments (PublishingRESTSupportOAuth1Transaction* self); -PublishingRESTSupportOAuth1Transaction* publishing_rest_support_oauth1_transaction_new_with_uri (PublishingRESTSupportOAuth1Session* session, - const gchar* uri, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportOAuth1Transaction* publishing_rest_support_oauth1_transaction_construct_with_uri (GType object_type, - PublishingRESTSupportOAuth1Session* session, - const gchar* uri, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_new_with_endpoint_url (PublishingRESTSupportSession* parent_session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportSession* parent_session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportSession* publishing_rest_support_transaction_get_parent_session (PublishingRESTSupportTransaction* self); -void publishing_rest_support_transaction_add_argument (PublishingRESTSupportTransaction* self, - const gchar* name, - const gchar* value); -static void publishing_rest_support_oauth1_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error); -void publishing_rest_support_transaction_execute (PublishingRESTSupportTransaction* self, - GError** error); -GType publishing_rest_support_upload_transaction_get_type (void) G_GNUC_CONST; -GType publishing_rest_support_oauth1_upload_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_REST_SUPPORT_OAUTH1_UPLOAD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransactionPrivate)) -PublishingRESTSupportOAuth1UploadTransaction* publishing_rest_support_oauth1_upload_transaction_new (PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_uri); -PublishingRESTSupportOAuth1UploadTransaction* publishing_rest_support_oauth1_upload_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_uri); -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_new_with_endpoint_url (PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_url); -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_url); -void publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (PublishingRESTSupportOAuth1UploadTransaction* self, - const gchar* key, - const gchar* value); -PublishingRESTSupportArgument* publishing_rest_support_argument_new (const gchar* key, - const gchar* value); -PublishingRESTSupportArgument* publishing_rest_support_argument_construct (GType object_type, - const gchar* key, - const gchar* value); -static void _vala_array_add3 (PublishingRESTSupportArgument** * array, - int* length, - int* size, - PublishingRESTSupportArgument* value); -gchar* publishing_rest_support_oauth1_upload_transaction_get_authorization_header_string (PublishingRESTSupportOAuth1UploadTransaction* self); -void publishing_rest_support_oauth1_upload_transaction_authorize (PublishingRESTSupportOAuth1UploadTransaction* self); -void publishing_rest_support_transaction_add_header (PublishingRESTSupportTransaction* self, - const gchar* key, - const gchar* value); -static void publishing_rest_support_oauth1_upload_transaction_finalize (PublishingRESTSupportTransaction * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -PublishingRESTSupportOAuth1Session* -publishing_rest_support_oauth1_session_construct (GType object_type, - const gchar* endpoint_uri) -{ - PublishingRESTSupportOAuth1Session* self = NULL; -#line 21 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self = (PublishingRESTSupportOAuth1Session*) publishing_rest_support_session_construct (object_type, endpoint_uri); -#line 20 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return self; -#line 382 "OAuth1Support.c" -} - - -PublishingRESTSupportOAuth1Session* -publishing_rest_support_oauth1_session_new (const gchar* endpoint_uri) -{ -#line 20 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return publishing_rest_support_oauth1_session_construct (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, endpoint_uri); -#line 391 "OAuth1Support.c" -} - - -static gboolean -publishing_rest_support_oauth1_session_real_is_authenticated (PublishingRESTSupportSession* base) -{ - PublishingRESTSupportOAuth1Session * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - const gchar* _tmp2_; -#line 24 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1Session); -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = self->priv->access_phase_token; -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if (_tmp2_ != NULL) { -#line 409 "OAuth1Support.c" - const gchar* _tmp3_; -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = self->priv->access_phase_token_secret; -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = _tmp3_ != NULL; -#line 415 "OAuth1Support.c" - } else { -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = FALSE; -#line 419 "OAuth1Support.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if (_tmp1_) { -#line 423 "OAuth1Support.c" - const gchar* _tmp4_; -#line 26 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp4_ = self->priv->username; -#line 26 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = _tmp4_ != NULL; -#line 429 "OAuth1Support.c" - } else { -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = FALSE; -#line 433 "OAuth1Support.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp0_; -#line 25 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 439 "OAuth1Support.c" -} - - -void -publishing_rest_support_oauth1_session_authenticate_from_persistent_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret, - const gchar* username) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 29 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self)); -#line 29 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (token != NULL); -#line 29 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (secret != NULL); -#line 29 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (username != NULL); -#line 31 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = g_strdup (token); -#line 31 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->access_phase_token); -#line 31 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->access_phase_token = _tmp0_; -#line 32 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = g_strdup (secret); -#line 32 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->access_phase_token_secret); -#line 32 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->access_phase_token_secret = _tmp1_; -#line 33 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = g_strdup (username); -#line 33 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->username); -#line 33 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->username = _tmp2_; -#line 35 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), "authenticated"); -#line 480 "OAuth1Support.c" -} - - -void -publishing_rest_support_oauth1_session_deauthenticate (PublishingRESTSupportOAuth1Session* self) -{ -#line 38 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self)); -#line 39 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->access_phase_token); -#line 39 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->access_phase_token = NULL; -#line 40 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->access_phase_token_secret); -#line 40 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->access_phase_token_secret = NULL; -#line 41 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->username); -#line 41 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->username = NULL; -#line 501 "OAuth1Support.c" -} - - -void -publishing_rest_support_oauth1_session_set_api_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* consumer_key, - const gchar* consumer_secret) -{ - gchar* _tmp0_; - gchar* _tmp1_; -#line 44 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self)); -#line 44 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (consumer_key != NULL); -#line 44 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (consumer_secret != NULL); -#line 45 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = g_strdup (consumer_key); -#line 45 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->consumer_key); -#line 45 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->consumer_key = _tmp0_; -#line 46 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = g_strdup (consumer_secret); -#line 46 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->consumer_secret); -#line 46 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->consumer_secret = _tmp1_; -#line 530 "OAuth1Support.c" -} - - -static gpointer -_publishing_rest_support_argument_ref0 (gpointer self) -{ -#line 58 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return self ? publishing_rest_support_argument_ref (self) : NULL; -#line 539 "OAuth1Support.c" -} - - -static void -_vala_array_add2 (PublishingRESTSupportArgument** * array, - int* length, - int* size, - PublishingRESTSupportArgument* value) -{ -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if ((*length) == (*size)) { -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - *array = g_renew (PublishingRESTSupportArgument*, *array, (*size) + 1); -#line 555 "OAuth1Support.c" - } -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - (*array)[(*length)++] = value; -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - (*array)[*length] = NULL; -#line 561 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_session_sign_transaction (PublishingRESTSupportOAuth1Session* self, - PublishingRESTSupportTransaction* txn, - PublishingRESTSupportArgument** extra_arguments, - int extra_arguments_length1) -{ - gchar* result = NULL; - gchar* http_method = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRESTSupportArgument** base_string_arguments = NULL; - gint _tmp4_; - PublishingRESTSupportArgument** _tmp5_; - gint base_string_arguments_length1; - gint _base_string_arguments_size_; - PublishingRESTSupportArgument** sorted_args = NULL; - PublishingRESTSupportArgument** _tmp10_; - gint _tmp10__length1; - gint _tmp11_; - PublishingRESTSupportArgument** _tmp12_; - gint sorted_args_length1; - gint _sorted_args_size_; - gchar* arguments_string = NULL; - PublishingRESTSupportArgument** _tmp13_; - gint _tmp13__length1; - gchar* _tmp14_; - gchar* signing_key = NULL; - const gchar* _tmp15_; - gchar* signature_base_string = NULL; - const gchar* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; - gchar* _tmp37_; - gchar* _tmp38_; - gchar* _tmp39_; - const gchar* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; - gchar* _tmp44_; - const gchar* _tmp45_; - gchar* signature = NULL; - const gchar* _tmp46_; - gchar* _tmp47_; - const gchar* _tmp48_; - gchar* _tmp49_; - const gchar* _tmp50_; -#line 49 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), NULL); -#line 49 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn), NULL); -#line 51 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = publishing_rest_support_http_method_to_string (publishing_rest_support_transaction_get_method (txn)); -#line 51 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - http_method = _tmp0_; -#line 53 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:53: signing transaction with parameters:"); -#line 54 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = http_method; -#line 54 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = g_strconcat ("HTTP method = ", _tmp1_, NULL); -#line 54 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = _tmp2_; -#line 54 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:54: %s", _tmp3_); -#line 54 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp3_); -#line 56 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp5_ = publishing_rest_support_transaction_get_arguments (txn, &_tmp4_); -#line 56 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - base_string_arguments = _tmp5_; -#line 56 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - base_string_arguments_length1 = _tmp4_; -#line 56 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _base_string_arguments_size_ = base_string_arguments_length1; -#line 647 "OAuth1Support.c" - { - PublishingRESTSupportArgument** arg_collection = NULL; - gint arg_collection_length1 = 0; - gint _arg_collection_size_ = 0; - gint arg_it = 0; -#line 58 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - arg_collection = extra_arguments; -#line 58 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - arg_collection_length1 = extra_arguments_length1; -#line 58 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - for (arg_it = 0; arg_it < extra_arguments_length1; arg_it = arg_it + 1) { -#line 659 "OAuth1Support.c" - PublishingRESTSupportArgument* _tmp6_; - PublishingRESTSupportArgument* arg = NULL; -#line 58 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp6_ = _publishing_rest_support_argument_ref0 (arg_collection[arg_it]); -#line 58 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - arg = _tmp6_; -#line 666 "OAuth1Support.c" - { - PublishingRESTSupportArgument** _tmp7_; - gint _tmp7__length1; - PublishingRESTSupportArgument* _tmp8_; - PublishingRESTSupportArgument* _tmp9_; -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp7_ = base_string_arguments; -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp7__length1 = base_string_arguments_length1; -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp8_ = arg; -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp9_ = _publishing_rest_support_argument_ref0 (_tmp8_); -#line 59 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _vala_array_add2 (&base_string_arguments, &base_string_arguments_length1, &_base_string_arguments_size_, _tmp9_); -#line 58 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _publishing_rest_support_argument_unref0 (arg); -#line 684 "OAuth1Support.c" - } - } - } -#line 62 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp10_ = base_string_arguments; -#line 62 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp10__length1 = base_string_arguments_length1; -#line 62 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp12_ = publishing_rest_support_argument_sort (_tmp10_, _tmp10__length1, &_tmp11_); -#line 62 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - sorted_args = _tmp12_; -#line 62 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - sorted_args_length1 = _tmp11_; -#line 62 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _sorted_args_size_ = sorted_args_length1; -#line 65 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp13_ = sorted_args; -#line 65 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp13__length1 = sorted_args_length1; -#line 65 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp14_ = publishing_rest_support_argument_serialize_list (_tmp13_, _tmp13__length1, FALSE, "&"); -#line 65 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - arguments_string = _tmp14_; -#line 67 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signing_key = NULL; -#line 68 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp15_ = self->priv->access_phase_token_secret; -#line 68 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if (_tmp15_ != NULL) { -#line 714 "OAuth1Support.c" - const gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - const gchar* _tmp19_; - gchar* _tmp20_; -#line 69 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:69: access phase token secret available; using it a" \ -"s signing key"); -#line 71 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp16_ = self->priv->consumer_secret; -#line 71 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp17_ = g_strconcat (_tmp16_, "&", NULL); -#line 71 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp18_ = _tmp17_; -#line 71 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp19_ = self->priv->access_phase_token_secret; -#line 71 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp20_ = g_strconcat (_tmp18_, _tmp19_, NULL); -#line 71 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signing_key); -#line 71 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signing_key = _tmp20_; -#line 71 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp18_); -#line 738 "OAuth1Support.c" - } else { - const gchar* _tmp21_; -#line 72 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp21_ = self->priv->request_phase_token_secret; -#line 72 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if (_tmp21_ != NULL) { -#line 745 "OAuth1Support.c" - const gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - const gchar* _tmp25_; - gchar* _tmp26_; -#line 73 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:73: request phase token secret available; using it " \ -"as signing key"); -#line 75 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp22_ = self->priv->consumer_secret; -#line 75 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp23_ = g_strconcat (_tmp22_, "&", NULL); -#line 75 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp24_ = _tmp23_; -#line 75 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp25_ = self->priv->request_phase_token_secret; -#line 75 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp26_ = g_strconcat (_tmp24_, _tmp25_, NULL); -#line 75 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signing_key); -#line 75 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signing_key = _tmp26_; -#line 75 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp24_); -#line 769 "OAuth1Support.c" - } else { - const gchar* _tmp27_; - gchar* _tmp28_; -#line 77 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:77: %s", "neither access phase nor request phase token secrets available; using " \ -"API " "key as signing key"); -#line 80 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp27_ = self->priv->consumer_secret; -#line 80 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp28_ = g_strconcat (_tmp27_, "&", NULL); -#line 80 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signing_key); -#line 80 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signing_key = _tmp28_; -#line 783 "OAuth1Support.c" - } - } -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp29_ = http_method; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp30_ = g_strconcat (_tmp29_, "&", NULL); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp31_ = _tmp30_; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp32_ = publishing_rest_support_transaction_get_endpoint_url (txn); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp33_ = _tmp32_; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp34_ = soup_uri_encode (_tmp33_, PUBLISHING_REST_SUPPORT_OAUTH1_ENCODE_RFC_3986_EXTRA); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp35_ = _tmp34_; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp36_ = g_strconcat (_tmp31_, _tmp35_, NULL); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp37_ = _tmp36_; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp38_ = g_strconcat (_tmp37_, "&", NULL); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp39_ = _tmp38_; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp40_ = arguments_string; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp41_ = soup_uri_encode (_tmp40_, PUBLISHING_REST_SUPPORT_OAUTH1_ENCODE_RFC_3986_EXTRA); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp42_ = _tmp41_; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp43_ = g_strconcat (_tmp39_, _tmp42_, NULL); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp44_ = _tmp43_; -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp42_); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp39_); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp37_); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp35_); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp33_); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp31_); -#line 83 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signature_base_string = _tmp44_; -#line 87 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:87: signature base string = '%s'", signature_base_string); -#line 89 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp45_ = signing_key; -#line 89 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:89: signing key = '%s'", _tmp45_); -#line 92 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp46_ = signing_key; -#line 92 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp47_ = publishing_rest_support_hmac_sha1 (_tmp46_, signature_base_string); -#line 92 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signature = _tmp47_; -#line 93 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp48_ = signature; -#line 93 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp49_ = soup_uri_encode (_tmp48_, PUBLISHING_REST_SUPPORT_OAUTH1_ENCODE_RFC_3986_EXTRA); -#line 93 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signature); -#line 93 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signature = _tmp49_; -#line 95 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp50_ = signature; -#line 95 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:95: signature = '%s'", _tmp50_); -#line 97 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = signature; -#line 97 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signature_base_string); -#line 97 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signing_key); -#line 97 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (arguments_string); -#line 97 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - sorted_args = (_vala_array_free (sorted_args, sorted_args_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 97 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - base_string_arguments = (_vala_array_free (base_string_arguments, base_string_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 97 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (http_method); -#line 97 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 872 "OAuth1Support.c" -} - - -void -publishing_rest_support_oauth1_session_set_request_phase_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret) -{ - gchar* _tmp0_; - gchar* _tmp1_; -#line 100 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self)); -#line 100 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (token != NULL); -#line 100 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (secret != NULL); -#line 101 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = g_strdup (token); -#line 101 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->request_phase_token); -#line 101 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->request_phase_token = _tmp0_; -#line 102 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = g_strdup (secret); -#line 102 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->request_phase_token_secret); -#line 102 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->request_phase_token_secret = _tmp1_; -#line 901 "OAuth1Support.c" -} - - -void -publishing_rest_support_oauth1_session_set_access_phase_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret, - const gchar* username) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 105 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self)); -#line 105 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (token != NULL); -#line 105 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (secret != NULL); -#line 105 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (username != NULL); -#line 106 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = g_strdup (token); -#line 106 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->access_phase_token); -#line 106 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->access_phase_token = _tmp0_; -#line 107 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = g_strdup (secret); -#line 107 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->access_phase_token_secret); -#line 107 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->access_phase_token_secret = _tmp1_; -#line 108 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = g_strdup (username); -#line 108 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->username); -#line 108 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->username = _tmp2_; -#line 110 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), "authenticated"); -#line 942 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_session_get_oauth_nonce (PublishingRESTSupportOAuth1Session* self) -{ - gchar* result = NULL; - GTimeVal currtime = {0}; - GTimeVal _tmp0_; - glong _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GTimeVal _tmp4_; - glong _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; -#line 113 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), NULL); -#line 114 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_get_current_time (&currtime); -#line 115 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_get_current_time (&currtime); -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = currtime; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = _tmp0_.tv_sec; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = g_strdup_printf ("%li", _tmp1_); -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = _tmp2_; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp4_ = currtime; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp5_ = _tmp4_.tv_usec; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp6_ = g_strdup_printf ("%li", _tmp5_); -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp7_ = _tmp6_; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp8_ = g_strconcat (_tmp3_, _tmp7_, NULL); -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp9_ = _tmp8_; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp10_ = g_compute_checksum_for_string (G_CHECKSUM_MD5, _tmp9_, (gsize) -1); -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp11_ = _tmp10_; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp9_); -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp7_); -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp3_); -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp11_; -#line 117 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1003 "OAuth1Support.c" -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1027 "OAuth1Support.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1036 "OAuth1Support.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 1057 "OAuth1Support.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 1061 "OAuth1Support.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 1067 "OAuth1Support.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 1077 "OAuth1Support.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 1081 "OAuth1Support.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 1089 "OAuth1Support.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 1096 "OAuth1Support.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 1100 "OAuth1Support.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 1106 "OAuth1Support.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1118 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_session_get_oauth_timestamp (PublishingRESTSupportOAuth1Session* self) -{ - gchar* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 121 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), NULL); -#line 122 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = g_strdup_printf ("%" G_GINT64_FORMAT, g_get_real_time ()); -#line 122 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = _tmp0_; -#line 122 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = string_substring (_tmp1_, (glong) 0, (glong) 10); -#line 122 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = _tmp2_; -#line 122 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp1_); -#line 122 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp3_; -#line 122 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1146 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_session_get_consumer_key (PublishingRESTSupportOAuth1Session* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 125 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), NULL); -#line 126 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->priv->consumer_key; -#line 126 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _vala_assert (_tmp0_ != NULL, "consumer_key != null"); -#line 127 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = self->priv->consumer_key; -#line 127 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 127 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp2_; -#line 127 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1171 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_session_get_request_phase_token (PublishingRESTSupportOAuth1Session* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 130 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), NULL); -#line 131 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->priv->request_phase_token; -#line 131 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _vala_assert (_tmp0_ != NULL, "request_phase_token != null"); -#line 132 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = self->priv->request_phase_token; -#line 132 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 132 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp2_; -#line 132 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1196 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_session_get_access_phase_token (PublishingRESTSupportOAuth1Session* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 135 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), NULL); -#line 136 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->priv->access_phase_token; -#line 136 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _vala_assert (_tmp0_ != NULL, "access_phase_token != null"); -#line 137 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = self->priv->access_phase_token; -#line 137 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 137 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp2_; -#line 137 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1221 "OAuth1Support.c" -} - - -gboolean -publishing_rest_support_oauth1_session_has_access_phase_token (PublishingRESTSupportOAuth1Session* self) -{ - gboolean result = FALSE; - const gchar* _tmp0_; -#line 140 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), FALSE); -#line 141 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->priv->access_phase_token; -#line 141 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp0_ != NULL; -#line 141 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1238 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_session_get_access_phase_token_secret (PublishingRESTSupportOAuth1Session* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 144 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), NULL); -#line 145 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->priv->access_phase_token_secret; -#line 145 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _vala_assert (_tmp0_ != NULL, "access_phase_token_secret != null"); -#line 146 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = self->priv->access_phase_token_secret; -#line 146 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 146 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp2_; -#line 146 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1263 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_session_get_username (PublishingRESTSupportOAuth1Session* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 149 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (self), NULL); -#line 150 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _vala_assert (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)), "is_authenticated()"); -#line 151 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->priv->username; -#line 151 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 151 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp1_; -#line 151 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1285 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_session_class_init (PublishingRESTSupportOAuth1SessionClass * klass) -{ -#line 11 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_session_parent_class = g_type_class_peek_parent (klass); -#line 11 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_rest_support_oauth1_session_finalize; -#line 11 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_type_class_add_private (klass, sizeof (PublishingRESTSupportOAuth1SessionPrivate)); -#line 11 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = (gboolean (*) (PublishingRESTSupportSession *)) publishing_rest_support_oauth1_session_real_is_authenticated; -#line 1300 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_session_instance_init (PublishingRESTSupportOAuth1Session * self) -{ -#line 11 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv = PUBLISHING_REST_SUPPORT_OAUTH1_SESSION_GET_PRIVATE (self); -#line 12 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->request_phase_token = NULL; -#line 13 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->request_phase_token_secret = NULL; -#line 14 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->access_phase_token = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->access_phase_token_secret = NULL; -#line 16 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->username = NULL; -#line 17 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->consumer_key = NULL; -#line 18 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->consumer_secret = NULL; -#line 1323 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_session_finalize (PublishingRESTSupportSession * obj) -{ - PublishingRESTSupportOAuth1Session * self; -#line 11 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1Session); -#line 12 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->request_phase_token); -#line 13 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->request_phase_token_secret); -#line 14 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->access_phase_token); -#line 15 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->access_phase_token_secret); -#line 16 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->username); -#line 17 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->consumer_key); -#line 18 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (self->priv->consumer_secret); -#line 11 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_rest_support_oauth1_session_parent_class)->finalize (obj); -#line 1349 "OAuth1Support.c" -} - - -GType -publishing_rest_support_oauth1_session_get_type (void) -{ - static volatile gsize publishing_rest_support_oauth1_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_oauth1_session_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportOAuth1SessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_oauth1_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportOAuth1Session), 0, (GInstanceInitFunc) publishing_rest_support_oauth1_session_instance_init, NULL }; - GType publishing_rest_support_oauth1_session_type_id; - publishing_rest_support_oauth1_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingRESTSupportOAuth1Session", &g_define_type_info, 0); - g_once_init_leave (&publishing_rest_support_oauth1_session_type_id__volatile, publishing_rest_support_oauth1_session_type_id); - } - return publishing_rest_support_oauth1_session_type_id__volatile; -} - - -PublishingRESTSupportOAuth1Transaction* -publishing_rest_support_oauth1_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - PublishingRESTSupportHttpMethod method) -{ - PublishingRESTSupportOAuth1Transaction* self = NULL; -#line 156 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 158 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self = (PublishingRESTSupportOAuth1Transaction*) publishing_rest_support_transaction_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), method); -#line 159 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_transaction_setup_arguments (self); -#line 156 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return self; -#line 1381 "OAuth1Support.c" -} - - -PublishingRESTSupportOAuth1Transaction* -publishing_rest_support_oauth1_transaction_new (PublishingRESTSupportOAuth1Session* session, - PublishingRESTSupportHttpMethod method) -{ -#line 156 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return publishing_rest_support_oauth1_transaction_construct (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, session, method); -#line 1391 "OAuth1Support.c" -} - - -PublishingRESTSupportOAuth1Transaction* -publishing_rest_support_oauth1_transaction_construct_with_uri (GType object_type, - PublishingRESTSupportOAuth1Session* session, - const gchar* uri, - PublishingRESTSupportHttpMethod method) -{ - PublishingRESTSupportOAuth1Transaction* self = NULL; -#line 162 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 162 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (uri != NULL, NULL); -#line 164 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self = (PublishingRESTSupportOAuth1Transaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), uri, method); -#line 165 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_transaction_setup_arguments (self); -#line 162 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return self; -#line 1412 "OAuth1Support.c" -} - - -PublishingRESTSupportOAuth1Transaction* -publishing_rest_support_oauth1_transaction_new_with_uri (PublishingRESTSupportOAuth1Session* session, - const gchar* uri, - PublishingRESTSupportHttpMethod method) -{ -#line 162 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return publishing_rest_support_oauth1_transaction_construct_with_uri (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, session, uri, method); -#line 1423 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_transaction_setup_arguments (PublishingRESTSupportOAuth1Transaction* self) -{ - PublishingRESTSupportOAuth1Session* session = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingRESTSupportOAuth1Session* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRESTSupportOAuth1Session* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - PublishingRESTSupportOAuth1Session* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - PublishingRESTSupportOAuth1Session* _tmp10_; -#line 168 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_TRANSACTION (self)); -#line 169 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 169 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - session = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1Session); -#line 171 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = session; -#line 171 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = publishing_rest_support_oauth1_session_get_oauth_nonce (_tmp1_); -#line 171 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = _tmp2_; -#line 171 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_nonce", _tmp3_); -#line 171 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp3_); -#line 172 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_signature_method", "HMAC-SHA1"); -#line 173 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_version", "1.0"); -#line 174 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp4_ = session; -#line 174 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp5_ = publishing_rest_support_oauth1_session_get_oauth_timestamp (_tmp4_); -#line 174 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp6_ = _tmp5_; -#line 174 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_timestamp", _tmp6_); -#line 174 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp6_); -#line 175 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp7_ = session; -#line 175 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp8_ = publishing_rest_support_oauth1_session_get_consumer_key (_tmp7_); -#line 175 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp9_ = _tmp8_; -#line 175 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_consumer_key", _tmp9_); -#line 175 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp9_); -#line 176 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp10_ = session; -#line 176 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if (publishing_rest_support_oauth1_session_has_access_phase_token (_tmp10_)) { -#line 1486 "OAuth1Support.c" - PublishingRESTSupportOAuth1Session* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 177 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp11_ = session; -#line 177 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp12_ = publishing_rest_support_oauth1_session_get_access_phase_token (_tmp11_); -#line 177 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp13_ = _tmp12_; -#line 177 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_token", _tmp13_); -#line 177 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp13_); -#line 1500 "OAuth1Support.c" - } -#line 168 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _publishing_rest_support_session_unref0 (session); -#line 1504 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error) -{ - PublishingRESTSupportOAuth1Transaction * self; - gchar* signature = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingRESTSupportOAuth1Session* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 182 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, PublishingRESTSupportOAuth1Transaction); -#line 183 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 183 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1Session); -#line 183 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = publishing_rest_support_oauth1_session_sign_transaction (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), NULL, 0); -#line 183 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = _tmp2_; -#line 183 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 183 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signature = _tmp3_; -#line 184 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "oauth_signature", signature); -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_rest_support_oauth1_transaction_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_propagate_error (error, _inner_error_); -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signature); -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return; -#line 1547 "OAuth1Support.c" - } else { -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signature); -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_clear_error (&_inner_error_); -#line 186 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return; -#line 1557 "OAuth1Support.c" - } - } -#line 182 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signature); -#line 1562 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_transaction_class_init (PublishingRESTSupportOAuth1TransactionClass * klass) -{ -#line 155 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_transaction_parent_class = g_type_class_peek_parent (klass); -#line 155 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_rest_support_oauth1_transaction_real_execute; -#line 1573 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_transaction_instance_init (PublishingRESTSupportOAuth1Transaction * self) -{ -} - - -GType -publishing_rest_support_oauth1_transaction_get_type (void) -{ - static volatile gsize publishing_rest_support_oauth1_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_oauth1_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportOAuth1TransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_oauth1_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportOAuth1Transaction), 0, (GInstanceInitFunc) publishing_rest_support_oauth1_transaction_instance_init, NULL }; - GType publishing_rest_support_oauth1_transaction_type_id; - publishing_rest_support_oauth1_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingRESTSupportOAuth1Transaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rest_support_oauth1_transaction_type_id__volatile, publishing_rest_support_oauth1_transaction_type_id); - } - return publishing_rest_support_oauth1_transaction_type_id__volatile; -} - - -PublishingRESTSupportOAuth1UploadTransaction* -publishing_rest_support_oauth1_upload_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_uri) -{ - PublishingRESTSupportOAuth1UploadTransaction* self = NULL; - PublishingRESTSupportArgument** _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 194 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 194 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 194 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (endpoint_uri != NULL, NULL); -#line 197 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self = (PublishingRESTSupportOAuth1UploadTransaction*) publishing_rest_support_upload_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishable, endpoint_uri); -#line 199 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = g_new0 (PublishingRESTSupportArgument*, 0 + 1); -#line 199 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->auth_header_fields = (_vala_array_free (self->priv->auth_header_fields, self->priv->auth_header_fields_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 199 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->auth_header_fields = _tmp0_; -#line 199 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->auth_header_fields_length1 = 0; -#line 199 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->_auth_header_fields_size_ = self->priv->auth_header_fields_length1; -#line 200 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->session = session; -#line 202 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = publishing_rest_support_oauth1_session_get_oauth_nonce (session); -#line 202 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = _tmp1_; -#line 202 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (self, "oauth_nonce", _tmp2_); -#line 202 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp2_); -#line 203 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (self, "oauth_signature_method", "HMAC-SHA1"); -#line 204 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (self, "oauth_version", "1.0"); -#line 205 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = publishing_rest_support_oauth1_session_get_oauth_timestamp (session); -#line 205 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp4_ = _tmp3_; -#line 205 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (self, "oauth_timestamp", _tmp4_); -#line 205 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp4_); -#line 206 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp5_ = publishing_rest_support_oauth1_session_get_consumer_key (session); -#line 206 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp6_ = _tmp5_; -#line 206 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (self, "oauth_consumer_key", _tmp6_); -#line 206 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp6_); -#line 207 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp7_ = publishing_rest_support_oauth1_session_get_access_phase_token (session); -#line 207 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp8_ = _tmp7_; -#line 207 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (self, "oauth_token", _tmp8_); -#line 207 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp8_); -#line 194 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return self; -#line 1671 "OAuth1Support.c" -} - - -PublishingRESTSupportOAuth1UploadTransaction* -publishing_rest_support_oauth1_upload_transaction_new (PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_uri) -{ -#line 194 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return publishing_rest_support_oauth1_upload_transaction_construct (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, session, publishable, endpoint_uri); -#line 1682 "OAuth1Support.c" -} - - -static void -_vala_array_add3 (PublishingRESTSupportArgument** * array, - int* length, - int* size, - PublishingRESTSupportArgument* value) -{ -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - if ((*length) == (*size)) { -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - *array = g_renew (PublishingRESTSupportArgument*, *array, (*size) + 1); -#line 1698 "OAuth1Support.c" - } -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - (*array)[(*length)++] = value; -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - (*array)[*length] = NULL; -#line 1704 "OAuth1Support.c" -} - - -void -publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (PublishingRESTSupportOAuth1UploadTransaction* self, - const gchar* key, - const gchar* value) -{ - PublishingRESTSupportArgument** _tmp0_; - gint _tmp0__length1; - PublishingRESTSupportArgument* _tmp1_; -#line 210 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_UPLOAD_TRANSACTION (self)); -#line 210 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (key != NULL); -#line 210 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (value != NULL); -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->priv->auth_header_fields; -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0__length1 = self->priv->auth_header_fields_length1; -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = publishing_rest_support_argument_new (key, value); -#line 211 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _vala_array_add3 (&self->priv->auth_header_fields, &self->priv->auth_header_fields_length1, &self->priv->_auth_header_fields_size_, _tmp1_); -#line 1730 "OAuth1Support.c" -} - - -gchar* -publishing_rest_support_oauth1_upload_transaction_get_authorization_header_string (PublishingRESTSupportOAuth1UploadTransaction* self) -{ - gchar* result = NULL; - PublishingRESTSupportArgument** _tmp0_; - gint _tmp0__length1; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 214 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_UPLOAD_TRANSACTION (self), NULL); -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->priv->auth_header_fields; -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0__length1 = self->priv->auth_header_fields_length1; -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = publishing_rest_support_argument_serialize_list (_tmp0_, _tmp0__length1, TRUE, ", "); -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = _tmp1_; -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = g_strconcat ("OAuth ", _tmp2_, NULL); -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp4_ = _tmp3_; -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (_tmp2_); -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - result = _tmp4_; -#line 215 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - return result; -#line 1764 "OAuth1Support.c" -} - - -void -publishing_rest_support_oauth1_upload_transaction_authorize (PublishingRESTSupportOAuth1UploadTransaction* self) -{ - gchar* signature = NULL; - PublishingRESTSupportOAuth1Session* _tmp0_; - PublishingRESTSupportArgument** _tmp1_; - gint _tmp1__length1; - gchar* _tmp2_; - gchar* authorization_header = NULL; - gchar* _tmp3_; -#line 218 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_UPLOAD_TRANSACTION (self)); -#line 219 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp0_ = self->session; -#line 219 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1_ = self->priv->auth_header_fields; -#line 219 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp1__length1 = self->priv->auth_header_fields_length1; -#line 219 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp2_ = publishing_rest_support_oauth1_session_sign_transaction (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp1_, _tmp1__length1); -#line 219 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - signature = _tmp2_; -#line 220 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (self, "oauth_signature", signature); -#line 223 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _tmp3_ = publishing_rest_support_oauth1_upload_transaction_get_authorization_header_string (self); -#line 223 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - authorization_header = _tmp3_; -#line 225 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_debug ("OAuth1Support.vala:225: executing upload transaction: authorization he" \ -"ader string = '%s'", authorization_header); -#line 227 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Authorization", authorization_header); -#line 218 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (authorization_header); -#line 218 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - _g_free0 (signature); -#line 1804 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_upload_transaction_class_init (PublishingRESTSupportOAuth1UploadTransactionClass * klass) -{ -#line 190 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - publishing_rest_support_oauth1_upload_transaction_parent_class = g_type_class_peek_parent (klass); -#line 190 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_rest_support_oauth1_upload_transaction_finalize; -#line 190 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - g_type_class_add_private (klass, sizeof (PublishingRESTSupportOAuth1UploadTransactionPrivate)); -#line 1817 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_upload_transaction_instance_init (PublishingRESTSupportOAuth1UploadTransaction * self) -{ -#line 190 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv = PUBLISHING_REST_SUPPORT_OAUTH1_UPLOAD_TRANSACTION_GET_PRIVATE (self); -#line 1826 "OAuth1Support.c" -} - - -static void -publishing_rest_support_oauth1_upload_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingRESTSupportOAuth1UploadTransaction * self; -#line 190 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction); -#line 192 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - self->priv->auth_header_fields = (_vala_array_free (self->priv->auth_header_fields, self->priv->auth_header_fields_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 190 "/home/jens/Source/shotwell/plugins/common/OAuth1Support.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_rest_support_oauth1_upload_transaction_parent_class)->finalize (obj); -#line 1840 "OAuth1Support.c" -} - - -GType -publishing_rest_support_oauth1_upload_transaction_get_type (void) -{ - static volatile gsize publishing_rest_support_oauth1_upload_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_oauth1_upload_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportOAuth1UploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_oauth1_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportOAuth1UploadTransaction), 0, (GInstanceInitFunc) publishing_rest_support_oauth1_upload_transaction_instance_init, NULL }; - GType publishing_rest_support_oauth1_upload_transaction_type_id; - publishing_rest_support_oauth1_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, "PublishingRESTSupportOAuth1UploadTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rest_support_oauth1_upload_transaction_type_id__volatile, publishing_rest_support_oauth1_upload_transaction_type_id); - } - return publishing_rest_support_oauth1_upload_transaction_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/common/RESTSupport.c b/plugins/common/RESTSupport.c deleted file mode 100644 index c19445f..0000000 --- a/plugins/common/RESTSupport.c +++ /dev/null @@ -1,7826 +0,0 @@ -/* RESTSupport.c generated by valac 0.40.4, the Vala compiler - * generated from RESTSupport.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#define _g_hmac_unref0(var) ((var == NULL) ? NULL : (var = (g_hmac_unref (var), NULL))) - -#define PUBLISHING_REST_SUPPORT_TYPE_SESSION (publishing_rest_support_session_get_type ()) -#define PUBLISHING_REST_SUPPORT_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)) -#define PUBLISHING_REST_SUPPORT_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionClass)) -#define PUBLISHING_REST_SUPPORT_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionClass)) - -typedef struct _PublishingRESTSupportSession PublishingRESTSupportSession; -typedef struct _PublishingRESTSupportSessionClass PublishingRESTSupportSessionClass; -typedef struct _PublishingRESTSupportSessionPrivate PublishingRESTSupportSessionPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _PublishingRESTSupportParamSpecSession PublishingRESTSupportParamSpecSession; -enum { - PUBLISHING_REST_SUPPORT_SESSION_WIRE_MESSAGE_UNQUEUED_SIGNAL, - PUBLISHING_REST_SUPPORT_SESSION_AUTHENTICATED_SIGNAL, - PUBLISHING_REST_SUPPORT_SESSION_AUTHENTICATION_FAILED_SIGNAL, - PUBLISHING_REST_SUPPORT_SESSION_NUM_SIGNALS -}; -static guint publishing_rest_support_session_signals[PUBLISHING_REST_SUPPORT_SESSION_NUM_SIGNALS] = {0}; - -#define PUBLISHING_REST_SUPPORT_TYPE_HTTP_METHOD (publishing_rest_support_http_method_get_type ()) - -#define PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT (publishing_rest_support_argument_get_type ()) -#define PUBLISHING_REST_SUPPORT_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgument)) -#define PUBLISHING_REST_SUPPORT_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgumentClass)) -#define PUBLISHING_REST_SUPPORT_IS_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)) -#define PUBLISHING_REST_SUPPORT_IS_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)) -#define PUBLISHING_REST_SUPPORT_ARGUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgumentClass)) - -typedef struct _PublishingRESTSupportArgument PublishingRESTSupportArgument; -typedef struct _PublishingRESTSupportArgumentClass PublishingRESTSupportArgumentClass; -typedef struct _PublishingRESTSupportArgumentPrivate PublishingRESTSupportArgumentPrivate; -#define _publishing_rest_support_argument_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_argument_unref (var), NULL))) -#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL))) -typedef struct _PublishingRESTSupportParamSpecArgument PublishingRESTSupportParamSpecArgument; - -#define PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION (publishing_rest_support_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)) -#define PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionClass)) -#define PUBLISHING_REST_SUPPORT_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionClass)) - -typedef struct _PublishingRESTSupportTransaction PublishingRESTSupportTransaction; -typedef struct _PublishingRESTSupportTransactionClass PublishingRESTSupportTransactionClass; -typedef struct _PublishingRESTSupportTransactionPrivate PublishingRESTSupportTransactionPrivate; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define __vala_SoupURI_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupURI_free (var), NULL))) -typedef struct _PublishingRESTSupportParamSpecTransaction PublishingRESTSupportParamSpecTransaction; -enum { - PUBLISHING_REST_SUPPORT_TRANSACTION_CHUNK_TRANSMITTED_SIGNAL, - PUBLISHING_REST_SUPPORT_TRANSACTION_NETWORK_ERROR_SIGNAL, - PUBLISHING_REST_SUPPORT_TRANSACTION_COMPLETED_SIGNAL, - PUBLISHING_REST_SUPPORT_TRANSACTION_NUM_SIGNALS -}; -static guint publishing_rest_support_transaction_signals[PUBLISHING_REST_SUPPORT_TRANSACTION_NUM_SIGNALS] = {0}; - -#define PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION (publishing_rest_support_upload_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransactionClass)) -#define PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransactionClass)) - -typedef struct _PublishingRESTSupportUploadTransaction PublishingRESTSupportUploadTransaction; -typedef struct _PublishingRESTSupportUploadTransactionClass PublishingRESTSupportUploadTransactionClass; -typedef struct _PublishingRESTSupportUploadTransactionPrivate PublishingRESTSupportUploadTransactionPrivate; -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -#define __vala_SoupMultipart_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupMultipart_free (var), NULL))) -#define __vala_SoupBuffer_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupBuffer_free (var), NULL))) - -#define PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT (publishing_rest_support_xml_document_get_type ()) -#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocument)) -#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocumentClass)) -#define PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT)) -#define PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT)) -#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocumentClass)) - -typedef struct _PublishingRESTSupportXmlDocument PublishingRESTSupportXmlDocument; -typedef struct _PublishingRESTSupportXmlDocumentClass PublishingRESTSupportXmlDocumentClass; -typedef struct _PublishingRESTSupportXmlDocumentPrivate PublishingRESTSupportXmlDocumentPrivate; -#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL))) -typedef struct _PublishingRESTSupportParamSpecXmlDocument PublishingRESTSupportParamSpecXmlDocument; - -#define PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER (publishing_rest_support_batch_uploader_get_type ()) -#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)) -#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploaderClass)) -#define PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER)) -#define PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER)) -#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploaderClass)) - -typedef struct _PublishingRESTSupportBatchUploader PublishingRESTSupportBatchUploader; -typedef struct _PublishingRESTSupportBatchUploaderClass PublishingRESTSupportBatchUploaderClass; -typedef struct _PublishingRESTSupportBatchUploaderPrivate PublishingRESTSupportBatchUploaderPrivate; -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -typedef struct _PublishingRESTSupportParamSpecBatchUploader PublishingRESTSupportParamSpecBatchUploader; -enum { - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_UPLOAD_COMPLETE_SIGNAL, - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_UPLOAD_ERROR_SIGNAL, - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_NUM_SIGNALS -}; -static guint publishing_rest_support_batch_uploader_signals[PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_NUM_SIGNALS] = {0}; - -#define PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION (publishing_rest_support_google_session_get_type ()) -#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSession)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSessionClass)) -#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION)) -#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSessionClass)) - -typedef struct _PublishingRESTSupportGoogleSession PublishingRESTSupportGoogleSession; -typedef struct _PublishingRESTSupportGoogleSessionClass PublishingRESTSupportGoogleSessionClass; -typedef struct _PublishingRESTSupportGoogleSessionPrivate PublishingRESTSupportGoogleSessionPrivate; - -#define PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER (publishing_rest_support_google_publisher_get_type ()) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisherClass)) -#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER)) -#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisherClass)) - -typedef struct _PublishingRESTSupportGooglePublisher PublishingRESTSupportGooglePublisher; -typedef struct _PublishingRESTSupportGooglePublisherClass PublishingRESTSupportGooglePublisherClass; -typedef struct _PublishingRESTSupportGooglePublisherPrivate PublishingRESTSupportGooglePublisherPrivate; - -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL (publishing_rest_support_google_publisher_google_session_impl_get_type ()) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GOOGLE_SESSION_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GOOGLE_SESSION_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImplClass)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_GOOGLE_SESSION_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_GOOGLE_SESSION_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GOOGLE_SESSION_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImplClass)) - -typedef struct _PublishingRESTSupportGooglePublisherGoogleSessionImpl PublishingRESTSupportGooglePublisherGoogleSessionImpl; -typedef struct _PublishingRESTSupportGooglePublisherGoogleSessionImplClass PublishingRESTSupportGooglePublisherGoogleSessionImplClass; -enum { - PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_0_PROPERTY, - PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_rest_support_google_publisher_properties[PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_NUM_PROPERTIES]; -#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) -typedef struct _PublishingRESTSupportGooglePublisherGoogleSessionImplPrivate PublishingRESTSupportGooglePublisherGoogleSessionImplPrivate; - -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION (publishing_rest_support_google_publisher_authenticated_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransaction)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_AUTHENTICATED_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_AUTHENTICATED_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass)) - -typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransaction PublishingRESTSupportGooglePublisherAuthenticatedTransaction; -typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass; -typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PublishingRESTSupportSession { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportSessionPrivate * priv; -}; - -struct _PublishingRESTSupportSessionClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportSession *self); - gboolean (*is_authenticated) (PublishingRESTSupportSession* self); -}; - -struct _PublishingRESTSupportSessionPrivate { - gchar* endpoint_url; - SoupSession* soup_session; - gboolean transactions_stopped; -}; - -struct _PublishingRESTSupportParamSpecSession { - GParamSpec parent_instance; -}; - -typedef enum { - PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, - PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST, - PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT -} PublishingRESTSupportHttpMethod; - -struct _PublishingRESTSupportArgument { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportArgumentPrivate * priv; - gchar* key; - gchar* value; -}; - -struct _PublishingRESTSupportArgumentClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportArgument *self); -}; - -struct _PublishingRESTSupportParamSpecArgument { - GParamSpec parent_instance; -}; - -struct _PublishingRESTSupportTransaction { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportTransactionPrivate * priv; -}; - -struct _PublishingRESTSupportTransactionClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportTransaction *self); - void (*add_header) (PublishingRESTSupportTransaction* self, const gchar* key, const gchar* value); - void (*execute) (PublishingRESTSupportTransaction* self, GError** error); -}; - -struct _PublishingRESTSupportTransactionPrivate { - PublishingRESTSupportArgument** arguments; - gint arguments_length1; - gint _arguments_size_; - gboolean is_executed; - PublishingRESTSupportSession* parent_session; - SoupMessage* message; - gint bytes_written; - GError* err; - gchar* endpoint_url; - gboolean use_custom_payload; -}; - -struct _PublishingRESTSupportParamSpecTransaction { - GParamSpec parent_instance; -}; - -struct _PublishingRESTSupportUploadTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingRESTSupportUploadTransactionPrivate * priv; - GHashTable* binary_disposition_table; - SpitPublishingPublishable* publishable; - gchar* mime_type; - GeeHashMap* message_headers; -}; - -struct _PublishingRESTSupportUploadTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingRESTSupportXmlDocument { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportXmlDocumentPrivate * priv; -}; - -struct _PublishingRESTSupportXmlDocumentClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportXmlDocument *self); -}; - -struct _PublishingRESTSupportXmlDocumentPrivate { - xmlDoc* document; -}; - -typedef gchar* (*PublishingRESTSupportXmlDocumentCheckForErrorResponse) (PublishingRESTSupportXmlDocument* doc, void* user_data); -struct _PublishingRESTSupportParamSpecXmlDocument { - GParamSpec parent_instance; -}; - -struct _PublishingRESTSupportBatchUploader { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportBatchUploaderPrivate * priv; -}; - -struct _PublishingRESTSupportBatchUploaderClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportBatchUploader *self); - PublishingRESTSupportTransaction* (*create_transaction) (PublishingRESTSupportBatchUploader* self, SpitPublishingPublishable* publishable); -}; - -struct _PublishingRESTSupportBatchUploaderPrivate { - gint current_file; - SpitPublishingPublishable** publishables; - gint publishables_length1; - gint _publishables_size_; - PublishingRESTSupportSession* session; - SpitPublishingProgressCallback status_updated; - gpointer status_updated_target; -}; - -struct _PublishingRESTSupportParamSpecBatchUploader { - GParamSpec parent_instance; -}; - -struct _PublishingRESTSupportGoogleSession { - PublishingRESTSupportSession parent_instance; - PublishingRESTSupportGoogleSessionPrivate * priv; -}; - -struct _PublishingRESTSupportGoogleSessionClass { - PublishingRESTSupportSessionClass parent_class; - gchar* (*get_user_name) (PublishingRESTSupportGoogleSession* self); - gchar* (*get_access_token) (PublishingRESTSupportGoogleSession* self); - void (*deauthenticate) (PublishingRESTSupportGoogleSession* self); -}; - -struct _PublishingRESTSupportGooglePublisher { - GObject parent_instance; - PublishingRESTSupportGooglePublisherPrivate * priv; -}; - -struct _PublishingRESTSupportGooglePublisherClass { - GObjectClass parent_class; - SpitPublishingAuthenticator* (*get_authenticator) (PublishingRESTSupportGooglePublisher* self); - void (*on_login_flow_complete) (PublishingRESTSupportGooglePublisher* self); - void (*do_logout) (PublishingRESTSupportGooglePublisher* self); - gboolean (*is_running) (PublishingRESTSupportGooglePublisher* self); - void (*start) (PublishingRESTSupportGooglePublisher* self); - void (*stop) (PublishingRESTSupportGooglePublisher* self); -}; - -struct _PublishingRESTSupportGooglePublisherPrivate { - gchar* scope; - PublishingRESTSupportGooglePublisherGoogleSessionImpl* session; - SpitPublishingPluginHost* host; - SpitPublishingService* service; - SpitPublishingAuthenticator* authenticator; -}; - -struct _PublishingRESTSupportGooglePublisherGoogleSessionImpl { - PublishingRESTSupportGoogleSession parent_instance; - PublishingRESTSupportGooglePublisherGoogleSessionImplPrivate * priv; - gchar* access_token; - gchar* user_name; - gchar* refresh_token; -}; - -struct _PublishingRESTSupportGooglePublisherGoogleSessionImplClass { - PublishingRESTSupportGoogleSessionClass parent_class; -}; - -struct _PublishingRESTSupportGooglePublisherAuthenticatedTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate * priv; -}; - -struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - - -static gpointer publishing_rest_support_session_parent_class = NULL; -static gpointer publishing_rest_support_argument_parent_class = NULL; -static gpointer publishing_rest_support_transaction_parent_class = NULL; -static gpointer publishing_rest_support_upload_transaction_parent_class = NULL; -static gpointer publishing_rest_support_xml_document_parent_class = NULL; -static gpointer publishing_rest_support_batch_uploader_parent_class = NULL; -static gpointer publishing_rest_support_google_session_parent_class = NULL; -static gpointer publishing_rest_support_google_publisher_parent_class = NULL; -static gpointer publishing_rest_support_google_publisher_google_session_impl_parent_class = NULL; -static gpointer publishing_rest_support_google_publisher_authenticated_transaction_parent_class = NULL; -static SpitPublishingPublisherIface * publishing_rest_support_google_publisher_spit_publishing_publisher_parent_iface = NULL; - -#define PUBLISHING_REST_SUPPORT_SHA1_HMAC_LENGTH 20 -gchar* publishing_rest_support_hmac_sha1 (const gchar* key, - const gchar* message); -gpointer publishing_rest_support_session_ref (gpointer instance); -void publishing_rest_support_session_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_session (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_session (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_session (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_session (const GValue* value); -GType publishing_rest_support_session_get_type (void) G_GNUC_CONST; -#define PUBLISHING_REST_SUPPORT_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionPrivate)) -PublishingRESTSupportSession* publishing_rest_support_session_construct (GType object_type, - const gchar* endpoint_url); -void publishing_rest_support_session_notify_wire_message_unqueued (PublishingRESTSupportSession* self, - SoupMessage* message); -void publishing_rest_support_session_notify_authenticated (PublishingRESTSupportSession* self); -void publishing_rest_support_session_notify_authentication_failed (PublishingRESTSupportSession* self, - GError* err); -gboolean publishing_rest_support_session_is_authenticated (PublishingRESTSupportSession* self); -static gboolean publishing_rest_support_session_real_is_authenticated (PublishingRESTSupportSession* self); -gchar* publishing_rest_support_session_get_endpoint_url (PublishingRESTSupportSession* self); -void publishing_rest_support_session_stop_transactions (PublishingRESTSupportSession* self); -gboolean publishing_rest_support_session_are_transactions_stopped (PublishingRESTSupportSession* self); -void publishing_rest_support_session_send_wire_message (PublishingRESTSupportSession* self, - SoupMessage* message); -static void _publishing_rest_support_session_notify_wire_message_unqueued_soup_session_request_unqueued (SoupSession* _sender, - SoupMessage* msg, - gpointer self); -void publishing_rest_support_session_set_insecure (PublishingRESTSupportSession* self); -static void publishing_rest_support_session_finalize (PublishingRESTSupportSession * obj); -GType publishing_rest_support_http_method_get_type (void) G_GNUC_CONST; -gchar* publishing_rest_support_http_method_to_string (PublishingRESTSupportHttpMethod self); -PublishingRESTSupportHttpMethod publishing_rest_support_http_method_from_string (const gchar* str); -gpointer publishing_rest_support_argument_ref (gpointer instance); -void publishing_rest_support_argument_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_argument (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_argument (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_argument (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_argument (const GValue* value); -GType publishing_rest_support_argument_get_type (void) G_GNUC_CONST; -PublishingRESTSupportArgument* publishing_rest_support_argument_new (const gchar* key, - const gchar* value); -PublishingRESTSupportArgument* publishing_rest_support_argument_construct (GType object_type, - const gchar* key, - const gchar* value); -gchar* publishing_rest_support_argument_serialize_list (PublishingRESTSupportArgument** args, - int args_length1, - gboolean escape, - const gchar* separator); -gchar* publishing_rest_support_argument_to_string (PublishingRESTSupportArgument* self, - gboolean escape); -gint publishing_rest_support_argument_compare (PublishingRESTSupportArgument* arg1, - PublishingRESTSupportArgument* arg2); -PublishingRESTSupportArgument** publishing_rest_support_argument_sort (PublishingRESTSupportArgument** inputArray, - int inputArray_length1, - int* result_length1); -static gint _publishing_rest_support_argument_compare_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -static void publishing_rest_support_argument_finalize (PublishingRESTSupportArgument * obj); -gpointer publishing_rest_support_transaction_ref (gpointer instance); -void publishing_rest_support_transaction_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_transaction (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_transaction (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_transaction (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_transaction (const GValue* value); -GType publishing_rest_support_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_REST_SUPPORT_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionPrivate)) -PublishingRESTSupportTransaction* publishing_rest_support_transaction_new (PublishingRESTSupportSession* parent_session, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct (GType object_type, - PublishingRESTSupportSession* parent_session, - PublishingRESTSupportHttpMethod method); -static void publishing_rest_support_transaction_on_wrote_body_data (PublishingRESTSupportTransaction* self, - SoupBuffer* written_data); -static void _publishing_rest_support_transaction_on_wrote_body_data_soup_message_wrote_body_data (SoupMessage* _sender, - SoupBuffer* chunk, - gpointer self); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_new_with_endpoint_url (PublishingRESTSupportSession* parent_session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportSession* parent_session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -static void publishing_rest_support_transaction_on_message_unqueued (PublishingRESTSupportTransaction* self, - SoupMessage* message); -void publishing_rest_support_transaction_check_response (PublishingRESTSupportTransaction* self, - SoupMessage* message, - GError** error); -gchar* publishing_rest_support_transaction_get_response (PublishingRESTSupportTransaction* self); -gchar* publishing_rest_support_transaction_detailed_error_from_tls_flags (PublishingRESTSupportTransaction* self, - GTlsCertificate* * cert); -gchar* publishing_rest_support_transaction_get_endpoint_url (PublishingRESTSupportTransaction* self); -PublishingRESTSupportArgument** publishing_rest_support_transaction_get_arguments (PublishingRESTSupportTransaction* self, - int* result_length1); -static PublishingRESTSupportArgument** _vala_array_dup1 (PublishingRESTSupportArgument** self, - int length); -PublishingRESTSupportArgument** publishing_rest_support_transaction_get_sorted_arguments (PublishingRESTSupportTransaction* self, - int* result_length1); -void publishing_rest_support_transaction_set_is_executed (PublishingRESTSupportTransaction* self, - gboolean is_executed); -void publishing_rest_support_transaction_send (PublishingRESTSupportTransaction* self, - GError** error); -static void _publishing_rest_support_transaction_on_message_unqueued_publishing_rest_support_session_wire_message_unqueued (PublishingRESTSupportSession* _sender, - SoupMessage* message, - gpointer self); -PublishingRESTSupportHttpMethod publishing_rest_support_transaction_get_method (PublishingRESTSupportTransaction* self); -void publishing_rest_support_transaction_add_header (PublishingRESTSupportTransaction* self, - const gchar* key, - const gchar* value); -static void publishing_rest_support_transaction_real_add_header (PublishingRESTSupportTransaction* self, - const gchar* key, - const gchar* value); -void publishing_rest_support_transaction_set_custom_payload (PublishingRESTSupportTransaction* self, - const gchar* custom_payload, - const gchar* payload_content_type, - gulong payload_length); -void publishing_rest_support_transaction_set_message (PublishingRESTSupportTransaction* self, - SoupMessage* message); -gboolean publishing_rest_support_transaction_get_is_executed (PublishingRESTSupportTransaction* self); -guint publishing_rest_support_transaction_get_status_code (PublishingRESTSupportTransaction* self); -void publishing_rest_support_transaction_execute (PublishingRESTSupportTransaction* self, - GError** error); -static void publishing_rest_support_transaction_real_execute (PublishingRESTSupportTransaction* self, - GError** error); -static void _vala_SoupURI_free (SoupURI* self); -SoupMessageHeaders* publishing_rest_support_transaction_get_response_headers (PublishingRESTSupportTransaction* self); -SoupMessage* publishing_rest_support_transaction_get_message (PublishingRESTSupportTransaction* self); -void publishing_rest_support_transaction_add_argument (PublishingRESTSupportTransaction* self, - const gchar* name, - const gchar* value); -static void _vala_array_add1 (PublishingRESTSupportArgument** * array, - int* length, - int* size, - PublishingRESTSupportArgument* value); -PublishingRESTSupportSession* publishing_rest_support_transaction_get_parent_session (PublishingRESTSupportTransaction* self); -static void g_cclosure_user_marshal_VOID__INT_INT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_rest_support_transaction_finalize (PublishingRESTSupportTransaction * obj); -GType publishing_rest_support_upload_transaction_get_type (void) G_GNUC_CONST; -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_new (PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable); -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_construct (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable); -static gchar* publishing_rest_support_upload_transaction_media_type_to_mime_type (SpitPublishingPublisherMediaType media_type); -static GHashTable* publishing_rest_support_upload_transaction_create_default_binary_disposition_table (PublishingRESTSupportUploadTransaction* self); -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_new_with_endpoint_url (PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_url); -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_url); -static void publishing_rest_support_upload_transaction_real_add_header (PublishingRESTSupportTransaction* base, - const gchar* key, - const gchar* value); -const gchar* spit_publishing_publisher_media_type_to_string (SpitPublishingPublisherMediaType self); -static void _g_free0_ (gpointer var); -void publishing_rest_support_upload_transaction_set_binary_disposition_table (PublishingRESTSupportUploadTransaction* self, - GHashTable* new_disp_table); -static void publishing_rest_support_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error); -static void _vala_SoupMultipart_free (SoupMultipart* self); -static void _vala_SoupBuffer_free (SoupBuffer* self); -static void publishing_rest_support_upload_transaction_finalize (PublishingRESTSupportTransaction * obj); -gpointer publishing_rest_support_xml_document_ref (gpointer instance); -void publishing_rest_support_xml_document_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_xml_document (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_xml_document (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_xml_document (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_xml_document (const GValue* value); -GType publishing_rest_support_xml_document_get_type (void) G_GNUC_CONST; -#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocumentPrivate)) -static PublishingRESTSupportXmlDocument* publishing_rest_support_xml_document_new (xmlDoc* doc); -static PublishingRESTSupportXmlDocument* publishing_rest_support_xml_document_construct (GType object_type, - xmlDoc* doc); -xmlNode* publishing_rest_support_xml_document_get_root_node (PublishingRESTSupportXmlDocument* self); -xmlNode* publishing_rest_support_xml_document_get_named_child (PublishingRESTSupportXmlDocument* self, - xmlNode* parent, - const gchar* child_name, - GError** error); -gchar* publishing_rest_support_xml_document_get_property_value (PublishingRESTSupportXmlDocument* self, - xmlNode* node, - const gchar* property_key, - GError** error); -PublishingRESTSupportXmlDocument* publishing_rest_support_xml_document_parse_string (const gchar* input_string, - PublishingRESTSupportXmlDocumentCheckForErrorResponse check_for_error_response, - void* check_for_error_response_target, - GError** error); -static void publishing_rest_support_xml_document_finalize (PublishingRESTSupportXmlDocument * obj); -gchar* publishing_rest_support_decimal_entity_encode (const gchar* source); -gpointer publishing_rest_support_batch_uploader_ref (gpointer instance); -void publishing_rest_support_batch_uploader_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_batch_uploader (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_batch_uploader (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_batch_uploader (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_batch_uploader (const GValue* value); -GType publishing_rest_support_batch_uploader_get_type (void) G_GNUC_CONST; -#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploaderPrivate)) -PublishingRESTSupportBatchUploader* publishing_rest_support_batch_uploader_construct (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1); -static SpitPublishingPublishable** _vala_array_dup2 (SpitPublishingPublishable** self, - int length); -static void publishing_rest_support_batch_uploader_send_files (PublishingRESTSupportBatchUploader* self); -PublishingRESTSupportTransaction* publishing_rest_support_batch_uploader_create_transaction (PublishingRESTSupportBatchUploader* self, - SpitPublishingPublishable* publishable); -static void publishing_rest_support_batch_uploader_on_chunk_transmitted (PublishingRESTSupportBatchUploader* self, - gint bytes_written_so_far, - gint total_bytes); -static void _publishing_rest_support_batch_uploader_on_chunk_transmitted_publishing_rest_support_transaction_chunk_transmitted (PublishingRESTSupportTransaction* _sender, - gint bytes_written_so_far, - gint total_bytes, - gpointer self); -PublishingRESTSupportSession* publishing_rest_support_batch_uploader_get_session (PublishingRESTSupportBatchUploader* self); -SpitPublishingPublishable* publishing_rest_support_batch_uploader_get_current_publishable (PublishingRESTSupportBatchUploader* self); -static PublishingRESTSupportTransaction* publishing_rest_support_batch_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* self, - SpitPublishingPublishable* publishable); -void publishing_rest_support_batch_uploader_upload (PublishingRESTSupportBatchUploader* self, - SpitPublishingProgressCallback status_updated, - void* status_updated_target); -static void publishing_rest_support_batch_uploader_finalize (PublishingRESTSupportBatchUploader * obj); -gchar* publishing_rest_support_asciify_string (const gchar* s); -GType publishing_rest_support_google_session_get_type (void) G_GNUC_CONST; -gchar* publishing_rest_support_google_session_get_user_name (PublishingRESTSupportGoogleSession* self); -static gchar* publishing_rest_support_google_session_real_get_user_name (PublishingRESTSupportGoogleSession* self); -gchar* publishing_rest_support_google_session_get_access_token (PublishingRESTSupportGoogleSession* self); -static gchar* publishing_rest_support_google_session_real_get_access_token (PublishingRESTSupportGoogleSession* self); -void publishing_rest_support_google_session_deauthenticate (PublishingRESTSupportGoogleSession* self); -static void publishing_rest_support_google_session_real_deauthenticate (PublishingRESTSupportGoogleSession* self); -PublishingRESTSupportGoogleSession* publishing_rest_support_google_session_construct (GType object_type); -GType publishing_rest_support_google_publisher_get_type (void) G_GNUC_CONST; -static GType publishing_rest_support_google_publisher_google_session_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisherPrivate)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_OAUTH_CLIENT_ID "1073902228337-gm4uf5etk25s0hnnm0g7uv2tm2bm1j0b.apps.googleusercontent." \ -"com" -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_OAUTH_CLIENT_SECRET "_kA4RZz72xqed4DqfO7xMmMN" -PublishingRESTSupportGooglePublisher* publishing_rest_support_google_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host, - const gchar* scope); -static PublishingRESTSupportGooglePublisherGoogleSessionImpl* publishing_rest_support_google_publisher_google_session_impl_new (void); -static PublishingRESTSupportGooglePublisherGoogleSessionImpl* publishing_rest_support_google_publisher_google_session_impl_construct (GType object_type); -SpitPublishingAuthenticator* publishing_rest_support_google_publisher_get_authenticator (PublishingRESTSupportGooglePublisher* self); -static void publishing_rest_support_google_publisher_on_authenticator_authenticated (PublishingRESTSupportGooglePublisher* self); -static void _publishing_rest_support_google_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, - gpointer self); -static SpitPublishingAuthenticator* publishing_rest_support_google_publisher_real_get_authenticator (PublishingRESTSupportGooglePublisher* self); -SpitPublishingPluginHost* publishing_rest_support_google_publisher_get_host (PublishingRESTSupportGooglePublisher* self); -PublishingRESTSupportGoogleSession* publishing_rest_support_google_publisher_get_session (PublishingRESTSupportGooglePublisher* self); -void publishing_rest_support_google_publisher_on_login_flow_complete (PublishingRESTSupportGooglePublisher* self); -static void publishing_rest_support_google_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* self); -void publishing_rest_support_google_publisher_do_logout (PublishingRESTSupportGooglePublisher* self); -static void publishing_rest_support_google_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* self); -gboolean publishing_rest_support_google_publisher_is_running (PublishingRESTSupportGooglePublisher* self); -static gboolean publishing_rest_support_google_publisher_real_is_running (PublishingRESTSupportGooglePublisher* self); -void publishing_rest_support_google_publisher_start (PublishingRESTSupportGooglePublisher* self); -static void publishing_rest_support_google_publisher_real_start (PublishingRESTSupportGooglePublisher* self); -void publishing_rest_support_google_publisher_stop (PublishingRESTSupportGooglePublisher* self); -static void publishing_rest_support_google_publisher_real_stop (PublishingRESTSupportGooglePublisher* self); -static SpitPublishingService* publishing_rest_support_google_publisher_real_get_service (SpitPublishingPublisher* base); -static gboolean publishing_rest_support_google_publisher_google_session_impl_real_is_authenticated (PublishingRESTSupportSession* base); -static gchar* publishing_rest_support_google_publisher_google_session_impl_real_get_user_name (PublishingRESTSupportGoogleSession* base); -static gchar* publishing_rest_support_google_publisher_google_session_impl_real_get_access_token (PublishingRESTSupportGoogleSession* base); -static void publishing_rest_support_google_publisher_google_session_impl_real_deauthenticate (PublishingRESTSupportGoogleSession* base); -static void publishing_rest_support_google_publisher_google_session_impl_finalize (PublishingRESTSupportSession * obj); -GType publishing_rest_support_google_publisher_authenticated_transaction_get_type (void) G_GNUC_CONST; -static PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_new_with_endpoint_url (PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -static PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_new (PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -static void publishing_rest_support_google_publisher_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static guint8* -string_get_data (const gchar* self, - int* result_length1) -{ - guint8* result; - guint8* res = NULL; - gint res_length1; - gint _res_size_; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - guint8* _tmp3_; - gint _tmp3__length1; - guint8* _tmp4_; - gint _tmp4__length1; -#line 1442 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = (guint8*) self; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = -1; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _res_size_ = res_length1; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = (gint) _tmp1_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = res; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3__length1 = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4__length1 = _tmp3__length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (result_length1) { -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result_length1 = _tmp4__length1; -#line 761 "RESTSupport.c" - } -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp4_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 767 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_hmac_sha1 (const gchar* key, - const gchar* message) -{ - gchar* result = NULL; - guint8 buffer[PUBLISHING_REST_SUPPORT_SHA1_HMAC_LENGTH] = {0}; - gsize len = 0UL; - GHmac* mac = NULL; - guint8* _tmp0_; - gint _tmp0__length1; - guint8* _tmp1_; - gint _tmp1__length1; - GHmac* _tmp2_; - guint8* _tmp3_; - gint _tmp3__length1; - guint8* _tmp4_; - gint _tmp4__length1; - gsize _tmp5_; - gchar* _tmp6_; -#line 14 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (key != NULL, NULL); -#line 14 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (message != NULL, NULL); -#line 16 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - len = (gsize) PUBLISHING_REST_SUPPORT_SHA1_HMAC_LENGTH; -#line 18 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = string_get_data (key, &_tmp0__length1); -#line 18 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _tmp0_; -#line 18 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1__length1 = _tmp0__length1; -#line 18 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = g_hmac_new (G_CHECKSUM_SHA1, _tmp1_, _tmp1__length1); -#line 18 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - mac = _tmp2_; -#line 19 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = string_get_data (message, &_tmp3__length1); -#line 19 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = _tmp3_; -#line 19 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4__length1 = _tmp3__length1; -#line 19 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_hmac_update (mac, _tmp4_, (gssize) _tmp4__length1); -#line 20 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_hmac_get_digest (mac, buffer, &len); -#line 22 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = len; -#line 22 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = g_base64_encode (buffer + 0, ((gint) _tmp5_) - 0); -#line 22 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp6_; -#line 22 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_hmac_unref0 (mac); -#line 22 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 826 "RESTSupport.c" -} - - -PublishingRESTSupportSession* -publishing_rest_support_session_construct (GType object_type, - const gchar* endpoint_url) -{ - PublishingRESTSupportSession* self = NULL; - gchar* _tmp0_; - SoupSession* _tmp1_; - SoupSession* _tmp2_; -#line 34 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportSession*) g_type_create_instance (object_type); -#line 35 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_strdup (endpoint_url); -#line 35 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->priv->endpoint_url); -#line 35 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->endpoint_url = _tmp0_; -#line 36 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = soup_session_new (); -#line 36 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->priv->soup_session); -#line 36 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->soup_session = _tmp1_; -#line 37 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = self->priv->soup_session; -#line 37 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_set (_tmp2_, "ssl-use-system-ca-file", TRUE, NULL); -#line 34 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 858 "RESTSupport.c" -} - - -void -publishing_rest_support_session_notify_wire_message_unqueued (PublishingRESTSupportSession* self, - SoupMessage* message) -{ -#line 40 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self)); -#line 40 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (SOUP_IS_MESSAGE (message)); -#line 41 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_emit (self, publishing_rest_support_session_signals[PUBLISHING_REST_SUPPORT_SESSION_WIRE_MESSAGE_UNQUEUED_SIGNAL], 0, message); -#line 872 "RESTSupport.c" -} - - -void -publishing_rest_support_session_notify_authenticated (PublishingRESTSupportSession* self) -{ -#line 44 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self)); -#line 45 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_emit (self, publishing_rest_support_session_signals[PUBLISHING_REST_SUPPORT_SESSION_AUTHENTICATED_SIGNAL], 0); -#line 883 "RESTSupport.c" -} - - -void -publishing_rest_support_session_notify_authentication_failed (PublishingRESTSupportSession* self, - GError* err) -{ -#line 48 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self)); -#line 49 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_emit (self, publishing_rest_support_session_signals[PUBLISHING_REST_SUPPORT_SESSION_AUTHENTICATION_FAILED_SIGNAL], 0, err); -#line 895 "RESTSupport.c" -} - - -static gboolean -publishing_rest_support_session_real_is_authenticated (PublishingRESTSupportSession* self) -{ - gboolean _tmp0_ = FALSE; -#line 52 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_session_is_authenticated'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 52 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return _tmp0_; -#line 907 "RESTSupport.c" -} - - -gboolean -publishing_rest_support_session_is_authenticated (PublishingRESTSupportSession* self) -{ -#line 52 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self), FALSE); -#line 52 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return PUBLISHING_REST_SUPPORT_SESSION_GET_CLASS (self)->is_authenticated (self); -#line 918 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_session_get_endpoint_url (PublishingRESTSupportSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 54 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self), NULL); -#line 55 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->endpoint_url; -#line 55 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 55 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 55 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 938 "RESTSupport.c" -} - - -void -publishing_rest_support_session_stop_transactions (PublishingRESTSupportSession* self) -{ - SoupSession* _tmp0_; -#line 58 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self)); -#line 59 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->transactions_stopped = TRUE; -#line 60 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->soup_session; -#line 60 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_session_abort (_tmp0_); -#line 954 "RESTSupport.c" -} - - -gboolean -publishing_rest_support_session_are_transactions_stopped (PublishingRESTSupportSession* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 63 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self), FALSE); -#line 64 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->transactions_stopped; -#line 64 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp0_; -#line 64 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 971 "RESTSupport.c" -} - - -static void -_publishing_rest_support_session_notify_wire_message_unqueued_soup_session_request_unqueued (SoupSession* _sender, - SoupMessage* msg, - gpointer self) -{ -#line 71 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_notify_wire_message_unqueued ((PublishingRESTSupportSession*) self, msg); -#line 982 "RESTSupport.c" -} - - -void -publishing_rest_support_session_send_wire_message (PublishingRESTSupportSession* self, - SoupMessage* message) -{ - SoupSession* _tmp0_; - SoupSession* _tmp1_; - SoupSession* _tmp2_; - guint _tmp3_; -#line 67 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self)); -#line 67 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (SOUP_IS_MESSAGE (message)); -#line 68 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (publishing_rest_support_session_are_transactions_stopped (self)) { -#line 69 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 1002 "RESTSupport.c" - } -#line 71 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->soup_session; -#line 71 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_connect (_tmp0_, "request-unqueued", (GCallback) _publishing_rest_support_session_notify_wire_message_unqueued_soup_session_request_unqueued, self); -#line 72 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = self->priv->soup_session; -#line 72 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_session_send_message (_tmp1_, message); -#line 74 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = self->priv->soup_session; -#line 74 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_parse_name ("request-unqueued", soup_session_get_type (), &_tmp3_, NULL, FALSE); -#line 74 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_rest_support_session_notify_wire_message_unqueued_soup_session_request_unqueued, self); -#line 1018 "RESTSupport.c" -} - - -void -publishing_rest_support_session_set_insecure (PublishingRESTSupportSession* self) -{ - SoupSession* _tmp0_; - SoupSession* _tmp1_; -#line 77 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (self)); -#line 78 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->soup_session; -#line 78 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_set (_tmp0_, "ssl-use-system-ca-file", FALSE, NULL); -#line 79 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = self->priv->soup_session; -#line 79 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_set (_tmp1_, "ssl-strict", FALSE, NULL); -#line 1037 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_session_init (GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 1046 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_session_free_value (GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_unref (value->data[0].v_pointer); -#line 1057 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_value_session_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (src_value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = publishing_rest_support_session_ref (src_value->data[0].v_pointer); -#line 1070 "RESTSupport.c" - } else { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = NULL; -#line 1074 "RESTSupport.c" - } -} - - -static gpointer -publishing_rest_support_value_session_peek_pointer (const GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 1084 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_session_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (collect_values[0].v_pointer) { -#line 1096 "RESTSupport.c" - PublishingRESTSupportSession * object; - object = collect_values[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (object->parent_instance.g_class == NULL) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1103 "RESTSupport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1107 "RESTSupport.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = publishing_rest_support_session_ref (object); -#line 1111 "RESTSupport.c" - } else { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 1115 "RESTSupport.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 1119 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_session_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRESTSupportSession ** object_p; - object_p = collect_values[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!object_p) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1135 "RESTSupport.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = NULL; -#line 1141 "RESTSupport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = value->data[0].v_pointer; -#line 1145 "RESTSupport.c" - } else { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = publishing_rest_support_session_ref (value->data[0].v_pointer); -#line 1149 "RESTSupport.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 1153 "RESTSupport.c" -} - - -GParamSpec* -publishing_rest_support_param_spec_session (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRESTSupportParamSpecSession* spec; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_REST_SUPPORT_TYPE_SESSION), NULL); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return G_PARAM_SPEC (spec); -#line 1173 "RESTSupport.c" -} - - -gpointer -publishing_rest_support_value_get_session (const GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_SESSION), NULL); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 1184 "RESTSupport.c" -} - - -void -publishing_rest_support_value_set_session (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportSession * old; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_SESSION)); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_SESSION)); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_ref (value->data[0].v_pointer); -#line 1207 "RESTSupport.c" - } else { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 1211 "RESTSupport.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_unref (old); -#line 1217 "RESTSupport.c" - } -} - - -void -publishing_rest_support_value_take_session (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportSession * old; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_SESSION)); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_SESSION)); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 1239 "RESTSupport.c" - } else { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 1243 "RESTSupport.c" - } -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_unref (old); -#line 1249 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_session_class_init (PublishingRESTSupportSessionClass * klass) -{ -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_parent_class = g_type_class_peek_parent (klass); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_rest_support_session_finalize; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_class_add_private (klass, sizeof (PublishingRESTSupportSessionPrivate)); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = (gboolean (*) (PublishingRESTSupportSession *)) publishing_rest_support_session_real_is_authenticated; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_signals[PUBLISHING_REST_SUPPORT_SESSION_WIRE_MESSAGE_UNQUEUED_SIGNAL] = g_signal_new ("wire-message-unqueued", PUBLISHING_REST_SUPPORT_TYPE_SESSION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, soup_message_get_type ()); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_signals[PUBLISHING_REST_SUPPORT_SESSION_AUTHENTICATED_SIGNAL] = g_signal_new ("authenticated", PUBLISHING_REST_SUPPORT_TYPE_SESSION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_signals[PUBLISHING_REST_SUPPORT_SESSION_AUTHENTICATION_FAILED_SIGNAL] = g_signal_new ("authentication-failed", PUBLISHING_REST_SUPPORT_TYPE_SESSION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); -#line 1271 "RESTSupport.c" -} - - -static void -publishing_rest_support_session_instance_init (PublishingRESTSupportSession * self) -{ -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv = PUBLISHING_REST_SUPPORT_SESSION_GET_PRIVATE (self); -#line 26 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->endpoint_url = NULL; -#line 27 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->soup_session = NULL; -#line 28 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->transactions_stopped = FALSE; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->ref_count = 1; -#line 1288 "RESTSupport.c" -} - - -static void -publishing_rest_support_session_finalize (PublishingRESTSupportSession * obj) -{ - PublishingRESTSupportSession * self; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_destroy (self); -#line 26 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->priv->endpoint_url); -#line 27 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->priv->soup_session); -#line 1304 "RESTSupport.c" -} - - -GType -publishing_rest_support_session_get_type (void) -{ - static volatile gsize publishing_rest_support_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_session_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rest_support_value_session_init, publishing_rest_support_value_session_free_value, publishing_rest_support_value_session_copy_value, publishing_rest_support_value_session_peek_pointer, "p", publishing_rest_support_value_session_collect_value, "p", publishing_rest_support_value_session_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportSession), 0, (GInstanceInitFunc) publishing_rest_support_session_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rest_support_session_type_id; - publishing_rest_support_session_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRESTSupportSession", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&publishing_rest_support_session_type_id__volatile, publishing_rest_support_session_type_id); - } - return publishing_rest_support_session_type_id__volatile; -} - - -gpointer -publishing_rest_support_session_ref (gpointer instance) -{ - PublishingRESTSupportSession * self; - self = instance; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_atomic_int_inc (&self->ref_count); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return instance; -#line 1333 "RESTSupport.c" -} - - -void -publishing_rest_support_session_unref (gpointer instance) -{ - PublishingRESTSupportSession * self; - self = instance; -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_SESSION_GET_CLASS (self)->finalize (self); -#line 25 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1348 "RESTSupport.c" - } -} - - -gchar* -publishing_rest_support_http_method_to_string (PublishingRESTSupportHttpMethod self) -{ - gchar* result = NULL; -#line 89 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - switch (self) { -#line 89 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET: -#line 1361 "RESTSupport.c" - { - gchar* _tmp0_; -#line 91 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_strdup ("GET"); -#line 91 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp0_; -#line 91 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1370 "RESTSupport.c" - } -#line 89 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT: -#line 1374 "RESTSupport.c" - { - gchar* _tmp1_; -#line 94 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = g_strdup ("PUT"); -#line 94 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 94 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1383 "RESTSupport.c" - } -#line 89 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST: -#line 1387 "RESTSupport.c" - { - gchar* _tmp2_; -#line 97 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = g_strdup ("POST"); -#line 97 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp2_; -#line 97 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1396 "RESTSupport.c" - } - default: - { -#line 100 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_error ("RESTSupport.vala:100: unrecognized HTTP method enumeration value"); -#line 1402 "RESTSupport.c" - } - } -} - - -PublishingRESTSupportHttpMethod -publishing_rest_support_http_method_from_string (const gchar* str) -{ - PublishingRESTSupportHttpMethod result = 0; -#line 104 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (str != NULL, 0); -#line 105 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_strcmp0 (str, "GET") == 0) { -#line 106 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET; -#line 106 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1420 "RESTSupport.c" - } else { -#line 107 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_strcmp0 (str, "PUT") == 0) { -#line 108 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT; -#line 108 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1428 "RESTSupport.c" - } else { -#line 109 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_strcmp0 (str, "POST") == 0) { -#line 110 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST; -#line 110 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1436 "RESTSupport.c" - } else { -#line 112 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_error ("RESTSupport.vala:112: unrecognized HTTP method name: %s", str); -#line 1440 "RESTSupport.c" - } - } - } -} - - -GType -publishing_rest_support_http_method_get_type (void) -{ - static volatile gsize publishing_rest_support_http_method_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_http_method_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, "PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET", "get"}, {PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST, "PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST", "post"}, {PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT, "PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT", "put"}, {0, NULL, NULL}}; - GType publishing_rest_support_http_method_type_id; - publishing_rest_support_http_method_type_id = g_enum_register_static ("PublishingRESTSupportHttpMethod", values); - g_once_init_leave (&publishing_rest_support_http_method_type_id__volatile, publishing_rest_support_http_method_type_id); - } - return publishing_rest_support_http_method_type_id__volatile; -} - - -PublishingRESTSupportArgument* -publishing_rest_support_argument_construct (GType object_type, - const gchar* key, - const gchar* value) -{ - PublishingRESTSupportArgument* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 121 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (key != NULL, NULL); -#line 121 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (value != NULL, NULL); -#line 121 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportArgument*) g_type_create_instance (object_type); -#line 122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_strdup (key); -#line 122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->key); -#line 122 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->key = _tmp0_; -#line 123 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = g_strdup (value); -#line 123 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->value); -#line 123 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->value = _tmp1_; -#line 121 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 1489 "RESTSupport.c" -} - - -PublishingRESTSupportArgument* -publishing_rest_support_argument_new (const gchar* key, - const gchar* value) -{ -#line 121 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_argument_construct (PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, key, value); -#line 1499 "RESTSupport.c" -} - - -static gpointer -_publishing_rest_support_argument_ref0 (gpointer self) -{ -#line 129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self ? publishing_rest_support_argument_ref (self) : NULL; -#line 1508 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_argument_serialize_list (PublishingRESTSupportArgument** args, - int args_length1, - gboolean escape, - const gchar* separator) -{ - gchar* result = NULL; - GString* builder = NULL; - GString* _tmp0_; - GString* _tmp7_; - gssize _tmp8_; - GString* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; -#line 127 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_string_new (""); -#line 127 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - builder = _tmp0_; -#line 1530 "RESTSupport.c" - { - PublishingRESTSupportArgument** arg_collection = NULL; - gint arg_collection_length1 = 0; - gint _arg_collection_size_ = 0; - gint arg_it = 0; -#line 129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg_collection = args; -#line 129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg_collection_length1 = args_length1; -#line 129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - for (arg_it = 0; arg_it < args_length1; arg_it = arg_it + 1) { -#line 1542 "RESTSupport.c" - PublishingRESTSupportArgument* _tmp1_; - PublishingRESTSupportArgument* arg = NULL; -#line 129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _publishing_rest_support_argument_ref0 (arg_collection[arg_it]); -#line 129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg = _tmp1_; -#line 1549 "RESTSupport.c" - { - GString* _tmp2_; - PublishingRESTSupportArgument* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - GString* _tmp6_; -#line 130 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = builder; -#line 130 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = arg; -#line 130 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = publishing_rest_support_argument_to_string (_tmp3_, escape); -#line 130 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _tmp4_; -#line 130 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_string_append (_tmp2_, _tmp5_); -#line 130 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp5_); -#line 131 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = builder; -#line 131 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_string_append (_tmp6_, separator); -#line 129 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_argument_unref0 (arg); -#line 1574 "RESTSupport.c" - } - } - } -#line 134 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = builder; -#line 134 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = _tmp7_->len; -#line 134 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp8_ > ((gssize) 0)) { -#line 1584 "RESTSupport.c" - GString* _tmp9_; - GString* _tmp10_; - gssize _tmp11_; - gint _tmp12_; - gint _tmp13_; -#line 135 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = builder; -#line 135 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = builder; -#line 135 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = _tmp10_->len; -#line 135 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = strlen (separator); -#line 135 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = _tmp12_; -#line 135 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_string_truncate (_tmp9_, (gsize) (_tmp11_ - _tmp13_)); -#line 1602 "RESTSupport.c" - } -#line 137 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = builder; -#line 137 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = _tmp14_->str; -#line 137 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_ = g_strdup (_tmp15_); -#line 137 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp16_; -#line 137 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_string_free0 (builder); -#line 137 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1616 "RESTSupport.c" -} - - -gint -publishing_rest_support_argument_compare (PublishingRESTSupportArgument* arg1, - PublishingRESTSupportArgument* arg2) -{ - gint result = 0; - GCompareFunc _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; -#line 140 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_ARGUMENT (arg1), 0); -#line 140 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_ARGUMENT (arg2), 0); -#line 141 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_strcmp0; -#line 141 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = arg1->key; -#line 141 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = arg2->key; -#line 141 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp0_ (_tmp1_, _tmp2_); -#line 141 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1642 "RESTSupport.c" -} - - -static gint -_publishing_rest_support_argument_compare_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = publishing_rest_support_argument_compare ((PublishingRESTSupportArgument*) a, (PublishingRESTSupportArgument*) b); -#line 145 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1655 "RESTSupport.c" -} - - -PublishingRESTSupportArgument** -publishing_rest_support_argument_sort (PublishingRESTSupportArgument** inputArray, - int inputArray_length1, - int* result_length1) -{ - PublishingRESTSupportArgument** result = NULL; - GeeTreeSet* sorted_args = NULL; - GeeTreeSet* _tmp0_; - GeeTreeSet* _tmp4_; - gint _tmp5_; - gpointer* _tmp6_; - PublishingRESTSupportArgument** _tmp7_; - gint _tmp7__length1; -#line 145 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = gee_tree_set_new (PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, (GBoxedCopyFunc) publishing_rest_support_argument_ref, (GDestroyNotify) publishing_rest_support_argument_unref, _publishing_rest_support_argument_compare_gcompare_data_func, NULL, NULL); -#line 145 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - sorted_args = _tmp0_; -#line 1676 "RESTSupport.c" - { - PublishingRESTSupportArgument** arg_collection = NULL; - gint arg_collection_length1 = 0; - gint _arg_collection_size_ = 0; - gint arg_it = 0; -#line 147 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg_collection = inputArray; -#line 147 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg_collection_length1 = inputArray_length1; -#line 147 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - for (arg_it = 0; arg_it < inputArray_length1; arg_it = arg_it + 1) { -#line 1688 "RESTSupport.c" - PublishingRESTSupportArgument* _tmp1_; - PublishingRESTSupportArgument* arg = NULL; -#line 147 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _publishing_rest_support_argument_ref0 (arg_collection[arg_it]); -#line 147 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg = _tmp1_; -#line 1695 "RESTSupport.c" - { - GeeTreeSet* _tmp2_; - PublishingRESTSupportArgument* _tmp3_; -#line 148 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = sorted_args; -#line 148 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = arg; -#line 148 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp3_); -#line 147 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_argument_unref0 (arg); -#line 1707 "RESTSupport.c" - } - } - } -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = sorted_args; -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp5_); -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = _tmp6_; -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7__length1 = _tmp5_; -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (result_length1) { -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *result_length1 = _tmp7__length1; -#line 1723 "RESTSupport.c" - } -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp7_; -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (sorted_args); -#line 150 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1731 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_argument_to_string (PublishingRESTSupportArgument* self, - gboolean escape) -{ - gchar* result = NULL; - const gchar* _tmp0_ = NULL; - const gchar* _tmp1_ = NULL; - const gchar* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; -#line 153 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_ARGUMENT (self), NULL); -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (escape) { -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = "\""; -#line 1751 "RESTSupport.c" - } else { -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = ""; -#line 1755 "RESTSupport.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (escape) { -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = "\""; -#line 1761 "RESTSupport.c" - } else { -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = ""; -#line 1765 "RESTSupport.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = self->key; -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = self->value; -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = g_strdup_printf ("%s=%s%s%s", _tmp2_, _tmp0_, _tmp3_, _tmp1_); -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp4_; -#line 154 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 1777 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_argument_init (GValue* value) -{ -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 1786 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_argument_free_value (GValue* value) -{ -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (value->data[0].v_pointer) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_argument_unref (value->data[0].v_pointer); -#line 1797 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_value_argument_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (src_value->data[0].v_pointer) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = publishing_rest_support_argument_ref (src_value->data[0].v_pointer); -#line 1810 "RESTSupport.c" - } else { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = NULL; -#line 1814 "RESTSupport.c" - } -} - - -static gpointer -publishing_rest_support_value_argument_peek_pointer (const GValue* value) -{ -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 1824 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_argument_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (collect_values[0].v_pointer) { -#line 1836 "RESTSupport.c" - PublishingRESTSupportArgument * object; - object = collect_values[0].v_pointer; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (object->parent_instance.g_class == NULL) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1843 "RESTSupport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1847 "RESTSupport.c" - } -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = publishing_rest_support_argument_ref (object); -#line 1851 "RESTSupport.c" - } else { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 1855 "RESTSupport.c" - } -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 1859 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_argument_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRESTSupportArgument ** object_p; - object_p = collect_values[0].v_pointer; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!object_p) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1875 "RESTSupport.c" - } -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!value->data[0].v_pointer) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = NULL; -#line 1881 "RESTSupport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = value->data[0].v_pointer; -#line 1885 "RESTSupport.c" - } else { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = publishing_rest_support_argument_ref (value->data[0].v_pointer); -#line 1889 "RESTSupport.c" - } -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 1893 "RESTSupport.c" -} - - -GParamSpec* -publishing_rest_support_param_spec_argument (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRESTSupportParamSpecArgument* spec; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT), NULL); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return G_PARAM_SPEC (spec); -#line 1913 "RESTSupport.c" -} - - -gpointer -publishing_rest_support_value_get_argument (const GValue* value) -{ -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT), NULL); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 1924 "RESTSupport.c" -} - - -void -publishing_rest_support_value_set_argument (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportArgument * old; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_argument_ref (value->data[0].v_pointer); -#line 1947 "RESTSupport.c" - } else { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 1951 "RESTSupport.c" - } -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_argument_unref (old); -#line 1957 "RESTSupport.c" - } -} - - -void -publishing_rest_support_value_take_argument (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportArgument * old; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 1979 "RESTSupport.c" - } else { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 1983 "RESTSupport.c" - } -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_argument_unref (old); -#line 1989 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_argument_class_init (PublishingRESTSupportArgumentClass * klass) -{ -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_argument_parent_class = g_type_class_peek_parent (klass); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportArgumentClass *) klass)->finalize = publishing_rest_support_argument_finalize; -#line 2001 "RESTSupport.c" -} - - -static void -publishing_rest_support_argument_instance_init (PublishingRESTSupportArgument * self) -{ -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->ref_count = 1; -#line 2010 "RESTSupport.c" -} - - -static void -publishing_rest_support_argument_finalize (PublishingRESTSupportArgument * obj) -{ - PublishingRESTSupportArgument * self; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgument); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_destroy (self); -#line 118 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->key); -#line 119 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->value); -#line 2026 "RESTSupport.c" -} - - -GType -publishing_rest_support_argument_get_type (void) -{ - static volatile gsize publishing_rest_support_argument_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_argument_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rest_support_value_argument_init, publishing_rest_support_value_argument_free_value, publishing_rest_support_value_argument_copy_value, publishing_rest_support_value_argument_peek_pointer, "p", publishing_rest_support_value_argument_collect_value, "p", publishing_rest_support_value_argument_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportArgumentClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_argument_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportArgument), 0, (GInstanceInitFunc) publishing_rest_support_argument_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rest_support_argument_type_id; - publishing_rest_support_argument_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRESTSupportArgument", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_rest_support_argument_type_id__volatile, publishing_rest_support_argument_type_id); - } - return publishing_rest_support_argument_type_id__volatile; -} - - -gpointer -publishing_rest_support_argument_ref (gpointer instance) -{ - PublishingRESTSupportArgument * self; - self = instance; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_atomic_int_inc (&self->ref_count); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return instance; -#line 2055 "RESTSupport.c" -} - - -void -publishing_rest_support_argument_unref (gpointer instance) -{ - PublishingRESTSupportArgument * self; - self = instance; -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_ARGUMENT_GET_CLASS (self)->finalize (self); -#line 117 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2070 "RESTSupport.c" - } -} - - -static void -_publishing_rest_support_transaction_on_wrote_body_data_soup_message_wrote_body_data (SoupMessage* _sender, - SoupBuffer* chunk, - gpointer self) -{ -#line 181 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_on_wrote_body_data ((PublishingRESTSupportTransaction*) self, chunk); -#line 2082 "RESTSupport.c" -} - - -PublishingRESTSupportTransaction* -publishing_rest_support_transaction_construct (GType object_type, - PublishingRESTSupportSession* parent_session, - PublishingRESTSupportHttpMethod method) -{ - PublishingRESTSupportTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - SoupMessage* _tmp6_; - SoupMessage* _tmp7_; -#line 173 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (parent_session), NULL); -#line 173 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportTransaction*) g_type_create_instance (object_type); -#line 176 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = publishing_rest_support_session_get_endpoint_url (parent_session); -#line 176 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _tmp0_; -#line 176 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (_tmp1_ != NULL, "parent_session.get_endpoint_url() != null"); -#line 176 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp1_); -#line 178 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->parent_session = parent_session; -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = publishing_rest_support_http_method_to_string (method); -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = _tmp2_; -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = publishing_rest_support_session_get_endpoint_url (parent_session); -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _tmp4_; -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = soup_message_new (_tmp3_, _tmp5_); -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->priv->message); -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->message = _tmp6_; -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp5_); -#line 180 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp3_); -#line 181 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = self->priv->message; -#line 181 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_connect (_tmp7_, "wrote-body-data", (GCallback) _publishing_rest_support_transaction_on_wrote_body_data_soup_message_wrote_body_data, self); -#line 173 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 2138 "RESTSupport.c" -} - - -PublishingRESTSupportTransaction* -publishing_rest_support_transaction_new (PublishingRESTSupportSession* parent_session, - PublishingRESTSupportHttpMethod method) -{ -#line 173 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_transaction_construct (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, parent_session, method); -#line 2148 "RESTSupport.c" -} - - -PublishingRESTSupportTransaction* -publishing_rest_support_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportSession* parent_session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method) -{ - PublishingRESTSupportTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - SoupMessage* _tmp3_; -#line 184 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (parent_session), NULL); -#line 184 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (endpoint_url != NULL, NULL); -#line 184 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportTransaction*) g_type_create_instance (object_type); -#line 186 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->parent_session = parent_session; -#line 187 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_strdup (endpoint_url); -#line 187 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->priv->endpoint_url); -#line 187 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->endpoint_url = _tmp0_; -#line 188 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = publishing_rest_support_http_method_to_string (method); -#line 188 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_; -#line 188 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = soup_message_new (_tmp2_, endpoint_url); -#line 188 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->priv->message); -#line 188 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->message = _tmp3_; -#line 188 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp2_); -#line 184 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 2191 "RESTSupport.c" -} - - -PublishingRESTSupportTransaction* -publishing_rest_support_transaction_new_with_endpoint_url (PublishingRESTSupportSession* parent_session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method) -{ -#line 184 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_transaction_construct_with_endpoint_url (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, parent_session, endpoint_url, method); -#line 2202 "RESTSupport.c" -} - - -static void -publishing_rest_support_transaction_on_wrote_body_data (PublishingRESTSupportTransaction* self, - SoupBuffer* written_data) -{ - gint _tmp0_; - gsize _tmp1_; - gint _tmp2_; - SoupMessage* _tmp3_; - SoupMessageBody* _tmp4_; - gint64 _tmp5_; -#line 191 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 191 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (written_data != NULL); -#line 192 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->bytes_written; -#line 192 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = written_data->length; -#line 192 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->bytes_written = _tmp0_ + ((gint) _tmp1_); -#line 193 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = self->priv->bytes_written; -#line 193 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = self->priv->message; -#line 193 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = _tmp3_->request_body; -#line 193 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _tmp4_->length; -#line 193 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_emit (self, publishing_rest_support_transaction_signals[PUBLISHING_REST_SUPPORT_TRANSACTION_CHUNK_TRANSMITTED_SIGNAL], 0, _tmp2_, (gint) _tmp5_); -#line 2236 "RESTSupport.c" -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 205 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self ? g_error_copy (self) : NULL; -#line 2245 "RESTSupport.c" -} - - -static void -publishing_rest_support_transaction_on_message_unqueued (PublishingRESTSupportTransaction* self, - SoupMessage* message) -{ - SoupMessage* _tmp0_; - GError * _inner_error_ = NULL; -#line 196 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 196 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (SOUP_IS_MESSAGE (message)); -#line 197 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->message; -#line 197 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp0_ != message) { -#line 198 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2265 "RESTSupport.c" - } - { -#line 201 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_check_response (self, message, &_inner_error_); -#line 201 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 201 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2274 "RESTSupport.c" - goto __catch0_spit_publishing_publishing_error; - } -#line 201 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 201 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 201 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2283 "RESTSupport.c" - } - } - goto __finally0; - __catch0_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - GError* _tmp5_; - GError* _tmp6_; -#line 200 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - err = _inner_error_; -#line 200 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = NULL; -#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = err; -#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_->message; -#line 203 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_warning ("RESTSupport.vala:203: Publishing error: %s", _tmp2_); -#line 204 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = publishing_rest_support_transaction_get_response (self); -#line 204 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = _tmp3_; -#line 204 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_warning ("RESTSupport.vala:204: response validation failed. bad response = '%s'.", _tmp4_); -#line 204 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp4_); -#line 205 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = err; -#line 205 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = _g_error_copy0 (_tmp5_); -#line 205 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_error_free0 (self->priv->err); -#line 205 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->err = _tmp6_; -#line 200 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_error_free0 (err); -#line 2324 "RESTSupport.c" - } - __finally0: -#line 200 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 200 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 200 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 200 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2335 "RESTSupport.c" - } -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self ? g_object_ref (self) : NULL; -#line 2345 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_transaction_detailed_error_from_tls_flags (PublishingRESTSupportTransaction* self, - GTlsCertificate* * cert) -{ - GTlsCertificate* _vala_cert = NULL; - gchar* result = NULL; - GTlsCertificateFlags tls_errors = 0; - SoupMessage* _tmp0_; - GTlsCertificate* _tmp1_ = NULL; - GTlsCertificateFlags _tmp2_ = 0; - GTlsCertificate* _tmp3_; - GeeArrayList* list = NULL; - GeeArrayList* _tmp4_; - GTlsCertificateFlags _tmp5_; - GTlsCertificateFlags _tmp7_; - GTlsCertificateFlags _tmp9_; - GTlsCertificateFlags _tmp11_; - GTlsCertificateFlags _tmp13_; - GTlsCertificateFlags _tmp15_; - GTlsCertificateFlags _tmp17_; - GString* builder = NULL; - GString* _tmp19_; - GeeArrayList* _tmp20_; - gint _tmp21_; - gint _tmp22_; - GString* _tmp40_; - const gchar* _tmp41_; - gchar* _tmp42_; -#line 210 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL); -#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->message; -#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_message_get_https_status (_tmp0_, &_tmp1_, &_tmp2_); -#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (_vala_cert); -#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = _g_object_ref0 (_tmp1_); -#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_cert = _tmp3_; -#line 212 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - tls_errors = _tmp2_; -#line 214 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 214 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - list = _tmp4_; -#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = tls_errors; -#line 215 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if ((_tmp5_ & G_TLS_CERTIFICATE_BAD_IDENTITY) == G_TLS_CERTIFICATE_BAD_IDENTITY) { -#line 2399 "RESTSupport.c" - GeeArrayList* _tmp6_; -#line 217 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = list; -#line 217 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _ ("⚫ This website presented identification that belongs to a different we" \ -"bsite.")); -#line 2405 "RESTSupport.c" - } -#line 220 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = tls_errors; -#line 220 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if ((_tmp7_ & G_TLS_CERTIFICATE_EXPIRED) == G_TLS_CERTIFICATE_EXPIRED) { -#line 2411 "RESTSupport.c" - GeeArrayList* _tmp8_; -#line 222 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = list; -#line 222 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _ ("⚫ This website’s identification is too old to trust. Check the date on" \ -" your computer’s calendar.")); -#line 2417 "RESTSupport.c" - } -#line 225 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = tls_errors; -#line 225 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if ((_tmp9_ & G_TLS_CERTIFICATE_UNKNOWN_CA) == G_TLS_CERTIFICATE_UNKNOWN_CA) { -#line 2423 "RESTSupport.c" - GeeArrayList* _tmp10_; -#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = list; -#line 227 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _ ("⚫ This website’s identification was not issued by a trusted organizati" \ -"on.")); -#line 2429 "RESTSupport.c" - } -#line 230 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = tls_errors; -#line 230 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if ((_tmp11_ & G_TLS_CERTIFICATE_GENERIC_ERROR) == G_TLS_CERTIFICATE_GENERIC_ERROR) { -#line 2435 "RESTSupport.c" - GeeArrayList* _tmp12_; -#line 232 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = list; -#line 232 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _ ("⚫ This website’s identification could not be processed. It may be corr" \ -"upted.")); -#line 2441 "RESTSupport.c" - } -#line 235 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = tls_errors; -#line 235 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if ((_tmp13_ & G_TLS_CERTIFICATE_REVOKED) == G_TLS_CERTIFICATE_REVOKED) { -#line 2447 "RESTSupport.c" - GeeArrayList* _tmp14_; -#line 237 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = list; -#line 237 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _ ("⚫ This website’s identification has been revoked by the trusted organi" \ -"zation that issued it.")); -#line 2453 "RESTSupport.c" - } -#line 240 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = tls_errors; -#line 240 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if ((_tmp15_ & G_TLS_CERTIFICATE_INSECURE) == G_TLS_CERTIFICATE_INSECURE) { -#line 2459 "RESTSupport.c" - GeeArrayList* _tmp16_; -#line 242 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_ = list; -#line 242 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _ ("⚫ This website’s identification cannot be trusted because it uses very" \ -" weak encryption.")); -#line 2465 "RESTSupport.c" - } -#line 245 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp17_ = tls_errors; -#line 245 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if ((_tmp17_ & G_TLS_CERTIFICATE_NOT_ACTIVATED) == G_TLS_CERTIFICATE_NOT_ACTIVATED) { -#line 2471 "RESTSupport.c" - GeeArrayList* _tmp18_; -#line 247 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp18_ = list; -#line 247 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _ ("⚫ This website’s identification is only valid for future dates. Check " \ -"the date on your computer’s calendar.")); -#line 2477 "RESTSupport.c" - } -#line 250 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19_ = g_string_new (""); -#line 250 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - builder = _tmp19_; -#line 251 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp20_ = list; -#line 251 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp21_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 251 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp22_ = _tmp21_; -#line 251 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp22_ == 1) { -#line 2491 "RESTSupport.c" - GString* _tmp23_; - GeeArrayList* _tmp24_; - gpointer _tmp25_; - gchar* _tmp26_; -#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp23_ = builder; -#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp24_ = list; -#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp25_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp26_ = (gchar*) _tmp25_; -#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_string_append (_tmp23_, _tmp26_); -#line 252 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp26_); -#line 2508 "RESTSupport.c" - } else { - { - GeeArrayList* _entry_list = NULL; - GeeArrayList* _tmp27_; - GeeArrayList* _tmp28_; - gint _entry_size = 0; - GeeArrayList* _tmp29_; - gint _tmp30_; - gint _tmp31_; - gint _entry_index = 0; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp27_ = list; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp28_ = _g_object_ref0 (_tmp27_); -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _entry_list = _tmp28_; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp29_ = _entry_list; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp30_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp31_ = _tmp30_; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _entry_size = _tmp31_; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _entry_index = -1; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - while (TRUE) { -#line 2537 "RESTSupport.c" - gint _tmp32_; - gint _tmp33_; - gint _tmp34_; - gchar* entry = NULL; - GeeArrayList* _tmp35_; - gint _tmp36_; - gpointer _tmp37_; - GString* _tmp38_; - const gchar* _tmp39_; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp32_ = _entry_index; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _entry_index = _tmp32_ + 1; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp33_ = _entry_index; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp34_ = _entry_size; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!(_tmp33_ < _tmp34_)) { -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - break; -#line 2559 "RESTSupport.c" - } -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp35_ = _entry_list; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp36_ = _entry_index; -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp37_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp36_); -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - entry = (gchar*) _tmp37_; -#line 255 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp38_ = builder; -#line 255 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp39_ = entry; -#line 255 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_string_append_printf (_tmp38_, "%s\n", _tmp39_); -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (entry); -#line 2577 "RESTSupport.c" - } -#line 254 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (_entry_list); -#line 2581 "RESTSupport.c" - } - } -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp40_ = builder; -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp41_ = _tmp40_->str; -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp42_ = g_strdup (_tmp41_); -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp42_; -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_string_free0 (builder); -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (list); -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (cert) { -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *cert = _vala_cert; -#line 2600 "RESTSupport.c" - } else { -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (_vala_cert); -#line 2604 "RESTSupport.c" - } -#line 259 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 2608 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_check_response (PublishingRESTSupportTransaction* self, - SoupMessage* message, - GError** error) -{ - guint _tmp0_; - guint _tmp1_; - gboolean _tmp35_ = FALSE; - SoupMessageBody* _tmp36_; - guint8* _tmp37_; - gint _tmp37__length1; - GError * _inner_error_ = NULL; -#line 262 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 262 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (SOUP_IS_MESSAGE (message)); -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (message, "status-code", &_tmp0_, NULL); -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _tmp0_; -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - switch (_tmp1_) { -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case SOUP_STATUS_OK: -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case SOUP_STATUS_CREATED: -#line 2638 "RESTSupport.c" - { -#line 267 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - break; -#line 2642 "RESTSupport.c" - } -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case SOUP_STATUS_CANT_RESOLVE: -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case SOUP_STATUS_CANT_RESOLVE_PROXY: -#line 2648 "RESTSupport.c" - { - gchar* _tmp2_; - gchar* _tmp3_; - guint _tmp4_; - guint _tmp5_; - GError* _tmp6_; - GError* _tmp7_; -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = publishing_rest_support_transaction_get_endpoint_url (self); -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = _tmp2_; -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (message, "status-code", &_tmp4_, NULL); -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _tmp4_; -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Unable to resolve %s (error code %u)", _tmp3_, _tmp5_); -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = _tmp6_; -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp3_); -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp7_; -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2678 "RESTSupport.c" - } else { -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 271 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2686 "RESTSupport.c" - } - } -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case SOUP_STATUS_CANT_CONNECT: -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case SOUP_STATUS_CANT_CONNECT_PROXY: -#line 2693 "RESTSupport.c" - { - gchar* _tmp8_; - gchar* _tmp9_; - guint _tmp10_; - guint _tmp11_; - GError* _tmp12_; - GError* _tmp13_; -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = publishing_rest_support_transaction_get_endpoint_url (self); -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = _tmp8_; -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (message, "status-code", &_tmp10_, NULL); -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = _tmp10_; -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Unable to connect to %s (error code %u)", _tmp9_, _tmp11_); -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = _tmp12_; -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp9_); -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp13_; -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2723 "RESTSupport.c" - } else { -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 276 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2731 "RESTSupport.c" - } - } -#line 263 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - case SOUP_STATUS_SSL_FAILED: -#line 2736 "RESTSupport.c" - { - gchar* _tmp14_; - gchar* _tmp15_; - GError* _tmp16_; - GError* _tmp17_; -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = publishing_rest_support_transaction_get_endpoint_url (self); -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = _tmp14_; -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_SSL_FAILED, "Unable to connect to %s: Secure connection failed", _tmp15_); -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp17_ = _tmp16_; -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp15_); -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp17_; -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2760 "RESTSupport.c" - } else { -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 279 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2768 "RESTSupport.c" - } - } - default: - { - guint _tmp18_; - guint _tmp19_; -#line 284 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (message, "status-code", &_tmp18_, NULL); -#line 284 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19_ = _tmp18_; -#line 284 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp19_ >= ((guint) 100)) { -#line 2781 "RESTSupport.c" - gchar* _tmp20_; - gchar* _tmp21_; - guint _tmp22_; - guint _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - GError* _tmp27_; - GError* _tmp28_; -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp20_ = publishing_rest_support_transaction_get_endpoint_url (self); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp21_ = _tmp20_; -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (message, "status-code", &_tmp22_, NULL); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp23_ = _tmp22_; -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (message, "reason-phrase", &_tmp24_, NULL); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp25_ = _tmp24_; -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp26_ = _tmp25_; -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp27_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Service %s returned HTTP status code %u %s", _tmp21_, _tmp23_, _tmp26_); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp28_ = _tmp27_; -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp26_); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp21_); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp28_; -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2821 "RESTSupport.c" - } else { -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 285 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2829 "RESTSupport.c" - } - } else { - gchar* _tmp29_; - gchar* _tmp30_; - guint _tmp31_; - guint _tmp32_; - GError* _tmp33_; - GError* _tmp34_; -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp29_ = publishing_rest_support_transaction_get_endpoint_url (self); -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp30_ = _tmp29_; -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (message, "status-code", &_tmp31_, NULL); -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp32_ = _tmp31_; -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp33_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Failure communicating with %s (error code %u)", _tmp30_, _tmp32_); -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp34_ = _tmp33_; -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp30_); -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp34_; -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2860 "RESTSupport.c" - } else { -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 288 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2868 "RESTSupport.c" - } - } - } - } -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp36_ = message->response_body; -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp37_ = _tmp36_->data; -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp37__length1 = (gint) _tmp36_->length; -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp37_ == NULL) { -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp35_ = TRUE; -#line 2883 "RESTSupport.c" - } else { - SoupMessageBody* _tmp38_; - guint8* _tmp39_; - gint _tmp39__length1; -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp38_ = message->response_body; -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp39_ = _tmp38_->data; -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp39__length1 = (gint) _tmp38_->length; -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp35_ = _tmp39__length1 == 0; -#line 2896 "RESTSupport.c" - } -#line 294 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp35_) { -#line 2900 "RESTSupport.c" - gchar* _tmp40_; - gchar* _tmp41_; - GError* _tmp42_; - GError* _tmp43_; -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp40_ = publishing_rest_support_transaction_get_endpoint_url (self); -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp41_ = _tmp40_; -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp42_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "No response data from %s", _tmp41_); -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp43_ = _tmp42_; -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp41_); -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp43_; -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2923 "RESTSupport.c" - } else { -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 295 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 2931 "RESTSupport.c" - } - } -} - - -static PublishingRESTSupportArgument** -_vala_array_dup1 (PublishingRESTSupportArgument** self, - int length) -{ - PublishingRESTSupportArgument** result; - int i; -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = g_new0 (PublishingRESTSupportArgument*, length + 1); -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - for (i = 0; i < length; i++) { -#line 2947 "RESTSupport.c" - PublishingRESTSupportArgument* _tmp0_; -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _publishing_rest_support_argument_ref0 (self[i]); -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result[i] = _tmp0_; -#line 2953 "RESTSupport.c" - } -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 2957 "RESTSupport.c" -} - - -PublishingRESTSupportArgument** -publishing_rest_support_transaction_get_arguments (PublishingRESTSupportTransaction* self, - int* result_length1) -{ - PublishingRESTSupportArgument** result = NULL; - PublishingRESTSupportArgument** _tmp0_; - gint _tmp0__length1; - PublishingRESTSupportArgument** _tmp1_; - gint _tmp1__length1; - PublishingRESTSupportArgument** _tmp2_; - gint _tmp2__length1; -#line 299 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL); -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->arguments; -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0__length1 = self->priv->arguments_length1; -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup1 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_); -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1__length1 = _tmp0__length1; -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_; -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2__length1 = _tmp1__length1; -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (result_length1) { -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *result_length1 = _tmp2__length1; -#line 2990 "RESTSupport.c" - } -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp2_; -#line 300 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 2996 "RESTSupport.c" -} - - -PublishingRESTSupportArgument** -publishing_rest_support_transaction_get_sorted_arguments (PublishingRESTSupportTransaction* self, - int* result_length1) -{ - PublishingRESTSupportArgument** result = NULL; - gint _tmp0_; - PublishingRESTSupportArgument** _tmp1_; - PublishingRESTSupportArgument** _tmp2_; - gint _tmp2__length1; - gint _tmp3_; - PublishingRESTSupportArgument** _tmp4_; - PublishingRESTSupportArgument** _tmp5_; - gint _tmp5__length1; - PublishingRESTSupportArgument** _tmp6_; - gint _tmp6__length1; -#line 303 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL); -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = publishing_rest_support_transaction_get_arguments (self, &_tmp0_); -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_; -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2__length1 = _tmp0_; -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = publishing_rest_support_argument_sort (_tmp2_, _tmp0_, &_tmp3_); -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _tmp4_; -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5__length1 = _tmp3_; -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = (_vala_array_free (_tmp2_, _tmp2__length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = _tmp5_; -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6__length1 = _tmp5__length1; -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (result_length1) { -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *result_length1 = _tmp6__length1; -#line 3039 "RESTSupport.c" - } -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp6_; -#line 304 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3045 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_set_is_executed (PublishingRESTSupportTransaction* self, - gboolean is_executed) -{ -#line 307 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 308 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->is_executed = is_executed; -#line 3057 "RESTSupport.c" -} - - -static void -_publishing_rest_support_transaction_on_message_unqueued_publishing_rest_support_session_wire_message_unqueued (PublishingRESTSupportSession* _sender, - SoupMessage* message, - gpointer self) -{ -#line 312 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_on_message_unqueued ((PublishingRESTSupportTransaction*) self, message); -#line 3068 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_send (PublishingRESTSupportTransaction* self, - GError** error) -{ - PublishingRESTSupportSession* _tmp0_; - SoupMessage* _tmp1_; - PublishingRESTSupportSession* _tmp2_; - SoupMessage* _tmp3_; - PublishingRESTSupportSession* _tmp4_; - guint _tmp5_; - SoupMessage* _tmp6_; - guint _tmp7_; - GError* _tmp8_; - GError* _tmp10_; - GError * _inner_error_ = NULL; -#line 311 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 312 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->parent_session; -#line 312 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_connect (_tmp0_, "wire-message-unqueued", (GCallback) _publishing_rest_support_transaction_on_message_unqueued_publishing_rest_support_session_wire_message_unqueued, self); -#line 313 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = self->priv->message; -#line 313 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_connect (_tmp1_, "wrote-body-data", (GCallback) _publishing_rest_support_transaction_on_wrote_body_data_soup_message_wrote_body_data, self); -#line 314 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = self->priv->parent_session; -#line 314 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = self->priv->message; -#line 314 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_session_send_wire_message (_tmp2_, _tmp3_); -#line 316 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = self->priv->parent_session; -#line 316 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_parse_name ("wire-message-unqueued", PUBLISHING_REST_SUPPORT_TYPE_SESSION, &_tmp5_, NULL, FALSE); -#line 316 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _publishing_rest_support_transaction_on_message_unqueued_publishing_rest_support_session_wire_message_unqueued, self); -#line 317 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = self->priv->message; -#line 317 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_parse_name ("wrote-body-data", soup_message_get_type (), &_tmp7_, NULL, FALSE); -#line 317 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _publishing_rest_support_transaction_on_wrote_body_data_soup_message_wrote_body_data, self); -#line 319 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = self->priv->err; -#line 319 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp8_ != NULL) { -#line 3119 "RESTSupport.c" - GError* _tmp9_; -#line 320 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = self->priv->err; -#line 320 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_emit (self, publishing_rest_support_transaction_signals[PUBLISHING_REST_SUPPORT_TRANSACTION_NETWORK_ERROR_SIGNAL], 0, _tmp9_); -#line 3125 "RESTSupport.c" - } else { -#line 322 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_emit (self, publishing_rest_support_transaction_signals[PUBLISHING_REST_SUPPORT_TRANSACTION_COMPLETED_SIGNAL], 0); -#line 3129 "RESTSupport.c" - } -#line 324 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = self->priv->err; -#line 324 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp10_ != NULL) { -#line 3135 "RESTSupport.c" - GError* _tmp11_; - GError* _tmp12_; -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = self->priv->err; -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = _g_error_copy0 (_tmp11_); -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp12_; -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 3150 "RESTSupport.c" - } else { -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 325 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 3158 "RESTSupport.c" - } - } -} - - -PublishingRESTSupportHttpMethod -publishing_rest_support_transaction_get_method (PublishingRESTSupportTransaction* self) -{ - PublishingRESTSupportHttpMethod result = 0; - SoupMessage* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRESTSupportHttpMethod _tmp4_; -#line 328 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), 0); -#line 329 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->message; -#line 329 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (_tmp0_, "method", &_tmp1_, NULL); -#line 329 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_; -#line 329 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = _tmp2_; -#line 329 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = publishing_rest_support_http_method_from_string (_tmp3_); -#line 329 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp3_); -#line 329 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp4_; -#line 329 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3191 "RESTSupport.c" -} - - -static void -publishing_rest_support_transaction_real_add_header (PublishingRESTSupportTransaction* self, - const gchar* key, - const gchar* value) -{ - SoupMessage* _tmp0_; - SoupMessageHeaders* _tmp1_; -#line 332 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (key != NULL); -#line 332 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (value != NULL); -#line 333 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->message; -#line 333 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _tmp0_->request_headers; -#line 333 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_message_headers_append (_tmp1_, key, value); -#line 3212 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_add_header (PublishingRESTSupportTransaction* self, - const gchar* key, - const gchar* value) -{ -#line 332 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 332 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_GET_CLASS (self)->add_header (self, key, value); -#line 3225 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_set_custom_payload (PublishingRESTSupportTransaction* self, - const gchar* custom_payload, - const gchar* payload_content_type, - gulong payload_length) -{ - gulong _tmp0_ = 0UL; - gulong length = 0UL; - SoupMessage* _tmp3_; - guint8* _tmp4_; - gint _tmp4__length1; - guint8* _tmp5_; - gint _tmp5__length1; - gulong _tmp6_; -#line 344 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 344 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (payload_content_type != NULL); -#line 346 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (publishing_rest_support_transaction_get_method (self) != PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, "get_method() != HttpMethod.GET"); -#line 348 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (custom_payload == NULL) { -#line 349 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->use_custom_payload = FALSE; -#line 350 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 3255 "RESTSupport.c" - } -#line 353 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (payload_length > ((gulong) 0)) { -#line 353 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = payload_length; -#line 3261 "RESTSupport.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 353 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = strlen (custom_payload); -#line 353 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_; -#line 353 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = (gulong) _tmp2_; -#line 3271 "RESTSupport.c" - } -#line 353 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - length = _tmp0_; -#line 354 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = self->priv->message; -#line 354 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = string_get_data (custom_payload, &_tmp4__length1); -#line 354 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _tmp4_; -#line 354 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5__length1 = _tmp4__length1; -#line 354 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = length; -#line 354 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_message_set_request (_tmp3_, payload_content_type, SOUP_MEMORY_COPY, _tmp5_ + 0, (gsize) (((gint) _tmp6_) - 0)); -#line 356 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->use_custom_payload = TRUE; -#line 3289 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_set_message (PublishingRESTSupportTransaction* self, - SoupMessage* message) -{ - SoupMessage* _tmp0_; -#line 364 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 364 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (SOUP_IS_MESSAGE (message)); -#line 365 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _g_object_ref0 (message); -#line 365 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->priv->message); -#line 365 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->message = _tmp0_; -#line 3308 "RESTSupport.c" -} - - -gboolean -publishing_rest_support_transaction_get_is_executed (PublishingRESTSupportTransaction* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 368 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), FALSE); -#line 369 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->is_executed; -#line 369 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp0_; -#line 369 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3325 "RESTSupport.c" -} - - -guint -publishing_rest_support_transaction_get_status_code (PublishingRESTSupportTransaction* self) -{ - guint result = 0U; - SoupMessage* _tmp0_; - guint _tmp1_; - guint _tmp2_; -#line 372 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), 0U); -#line 373 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (publishing_rest_support_transaction_get_is_executed (self), "get_is_executed()"); -#line 374 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->message; -#line 374 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_object_get (_tmp0_, "status-code", &_tmp1_, NULL); -#line 374 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_; -#line 374 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp2_; -#line 374 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3350 "RESTSupport.c" -} - - -static void -_vala_SoupURI_free (SoupURI* self) -{ -#line 408 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_boxed_free (soup_uri_get_type (), self); -#line 3359 "RESTSupport.c" -} - - -static void -publishing_rest_support_transaction_real_execute (PublishingRESTSupportTransaction* self, - GError** error) -{ - gboolean _tmp0_; - gchar* formdata_string = NULL; - gchar* _tmp2_; - gchar* old_url = NULL; - gchar* url_with_query = NULL; - gboolean _tmp18_ = FALSE; - GError * _inner_error_ = NULL; -#line 381 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->use_custom_payload; -#line 381 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp0_) { -#line 382 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->is_executed = TRUE; -#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_send (self, &_inner_error_); -#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 3390 "RESTSupport.c" - } else { -#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 383 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 3398 "RESTSupport.c" - } - } -#line 385 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 3403 "RESTSupport.c" - } -#line 389 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (publishing_rest_support_transaction_get_method (self) == PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST) { -#line 3407 "RESTSupport.c" - PublishingRESTSupportArgument** _tmp1_; - gint _tmp1__length1; -#line 390 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = self->priv->arguments; -#line 390 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1__length1 = self->priv->arguments_length1; -#line 390 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (_tmp1__length1 > 0, "arguments.length > 0"); -#line 3416 "RESTSupport.c" - } -#line 393 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = g_strdup (""); -#line 393 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - formdata_string = _tmp2_; -#line 3422 "RESTSupport.c" - { - gint i = 0; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - i = 0; -#line 3427 "RESTSupport.c" - { - gboolean _tmp3_ = FALSE; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = TRUE; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - while (TRUE) { -#line 3434 "RESTSupport.c" - gint _tmp5_; - PublishingRESTSupportArgument** _tmp6_; - gint _tmp6__length1; - const gchar* _tmp7_; - PublishingRESTSupportArgument** _tmp8_; - gint _tmp8__length1; - gint _tmp9_; - PublishingRESTSupportArgument* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gint _tmp14_; - PublishingRESTSupportArgument** _tmp15_; - gint _tmp15__length1; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!_tmp3_) { -#line 3451 "RESTSupport.c" - gint _tmp4_; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = i; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - i = _tmp4_ + 1; -#line 3457 "RESTSupport.c" - } -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = FALSE; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = i; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = self->priv->arguments; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6__length1 = self->priv->arguments_length1; -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!(_tmp5_ < _tmp6__length1)) { -#line 394 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - break; -#line 3471 "RESTSupport.c" - } -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = formdata_string; -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = self->priv->arguments; -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8__length1 = self->priv->arguments_length1; -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = i; -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = _tmp8_[_tmp9_]; -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = publishing_rest_support_argument_to_string (_tmp10_, FALSE); -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = _tmp11_; -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = g_strconcat (_tmp7_, _tmp12_, NULL); -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (formdata_string); -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - formdata_string = _tmp13_; -#line 395 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp12_); -#line 396 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = i; -#line 396 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = self->priv->arguments; -#line 396 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15__length1 = self->priv->arguments_length1; -#line 396 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp14_ < (_tmp15__length1 - 1)) { -#line 3503 "RESTSupport.c" - const gchar* _tmp16_; - gchar* _tmp17_; -#line 397 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_ = formdata_string; -#line 397 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp17_ = g_strconcat (_tmp16_, "&", NULL); -#line 397 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (formdata_string); -#line 397 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - formdata_string = _tmp17_; -#line 3514 "RESTSupport.c" - } - } - } - } -#line 403 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old_url = NULL; -#line 404 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - url_with_query = NULL; -#line 405 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (publishing_rest_support_transaction_get_method (self) == PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET) { -#line 3525 "RESTSupport.c" - PublishingRESTSupportArgument** _tmp19_; - gint _tmp19__length1; -#line 405 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19_ = self->priv->arguments; -#line 405 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19__length1 = self->priv->arguments_length1; -#line 405 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp18_ = _tmp19__length1 > 0; -#line 3534 "RESTSupport.c" - } else { -#line 405 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp18_ = FALSE; -#line 3538 "RESTSupport.c" - } -#line 405 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp18_) { -#line 3542 "RESTSupport.c" - SoupMessage* _tmp20_; - SoupURI* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - const gchar* _tmp27_; - gchar* _tmp28_; - SoupMessage* _tmp29_; - const gchar* _tmp30_; - SoupURI* _tmp31_; - SoupURI* _tmp32_; -#line 406 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp20_ = self->priv->message; -#line 406 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp21_ = soup_message_get_uri (_tmp20_); -#line 406 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp22_ = soup_uri_to_string (_tmp21_, FALSE); -#line 406 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (old_url); -#line 406 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old_url = _tmp22_; -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp23_ = publishing_rest_support_transaction_get_endpoint_url (self); -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp24_ = _tmp23_; -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp25_ = g_strconcat (_tmp24_, "?", NULL); -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp26_ = _tmp25_; -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp27_ = formdata_string; -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp28_ = g_strconcat (_tmp26_, _tmp27_, NULL); -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (url_with_query); -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - url_with_query = _tmp28_; -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp26_); -#line 407 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp24_); -#line 408 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp29_ = self->priv->message; -#line 408 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp30_ = url_with_query; -#line 408 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp31_ = soup_uri_new (_tmp30_); -#line 408 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp32_ = _tmp31_; -#line 408 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_message_set_uri (_tmp29_, _tmp32_); -#line 408 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupURI_free0 (_tmp32_); -#line 3598 "RESTSupport.c" - } else { - SoupMessage* _tmp33_; - const gchar* _tmp34_; - guint8* _tmp35_; - gint _tmp35__length1; - guint8* _tmp36_; - gint _tmp36__length1; -#line 410 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp33_ = self->priv->message; -#line 410 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp34_ = formdata_string; -#line 410 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp35_ = string_get_data (_tmp34_, &_tmp35__length1); -#line 410 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp36_ = _tmp35_; -#line 410 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp36__length1 = _tmp35__length1; -#line 410 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_message_set_request (_tmp33_, "application/x-www-form-urlencoded", SOUP_MEMORY_COPY, _tmp36_, (gsize) _tmp36__length1); -#line 3618 "RESTSupport.c" - } -#line 414 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->is_executed = TRUE; -#line 3622 "RESTSupport.c" - { - SoupMessage* _tmp37_; - SoupURI* _tmp38_; - gchar* _tmp39_; - gchar* _tmp40_; -#line 417 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp37_ = self->priv->message; -#line 417 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp38_ = soup_message_get_uri (_tmp37_); -#line 417 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp39_ = soup_uri_to_string (_tmp38_, FALSE); -#line 417 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp40_ = _tmp39_; -#line 417 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_debug ("RESTSupport.vala:417: sending message to URI = '%s'", _tmp40_); -#line 417 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp40_); -#line 418 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_send (self, &_inner_error_); -#line 418 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3644 "RESTSupport.c" - goto __finally1; - } - } - __finally1: - { - const gchar* _tmp41_; -#line 421 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp41_ = old_url; -#line 421 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp41_ != NULL) { -#line 3655 "RESTSupport.c" - SoupMessage* _tmp42_; - const gchar* _tmp43_; - SoupURI* _tmp44_; - SoupURI* _tmp45_; -#line 422 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp42_ = self->priv->message; -#line 422 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp43_ = old_url; -#line 422 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp44_ = soup_uri_new (_tmp43_); -#line 422 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp45_ = _tmp44_; -#line 422 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_message_set_uri (_tmp42_, _tmp45_); -#line 422 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupURI_free0 (_tmp45_); -#line 3672 "RESTSupport.c" - } - } -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (url_with_query); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (old_url); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (formdata_string); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 3689 "RESTSupport.c" - } else { -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (url_with_query); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (old_url); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (formdata_string); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 416 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 3703 "RESTSupport.c" - } - } -#line 377 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (url_with_query); -#line 377 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (old_url); -#line 377 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (formdata_string); -#line 3712 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_execute (PublishingRESTSupportTransaction* self, - GError** error) -{ -#line 377 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 377 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_GET_CLASS (self)->execute (self, error); -#line 3724 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_transaction_get_response (PublishingRESTSupportTransaction* self) -{ - gchar* result = NULL; - SoupMessage* _tmp0_; - SoupMessageBody* _tmp1_; - guint8* _tmp2_; - gint _tmp2__length1; - gchar* _tmp3_; -#line 426 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL); -#line 427 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (publishing_rest_support_transaction_get_is_executed (self), "get_is_executed()"); -#line 428 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->message; -#line 428 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _tmp0_->response_body; -#line 428 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_->data; -#line 428 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2__length1 = (gint) _tmp1_->length; -#line 428 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = g_strdup ((const gchar*) _tmp2_); -#line 428 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp3_; -#line 428 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3755 "RESTSupport.c" -} - - -SoupMessageHeaders* -publishing_rest_support_transaction_get_response_headers (PublishingRESTSupportTransaction* self) -{ - SoupMessageHeaders* result = NULL; - SoupMessage* _tmp0_; - SoupMessageHeaders* _tmp1_; -#line 431 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL); -#line 432 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (publishing_rest_support_transaction_get_is_executed (self), "get_is_executed()"); -#line 433 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->message; -#line 433 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _tmp0_->response_headers; -#line 433 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 433 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3777 "RESTSupport.c" -} - - -SoupMessage* -publishing_rest_support_transaction_get_message (PublishingRESTSupportTransaction* self) -{ - SoupMessage* result = NULL; - SoupMessage* _tmp0_; - SoupMessage* _tmp1_; -#line 436 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL); -#line 437 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (publishing_rest_support_transaction_get_is_executed (self), "get_is_executed()"); -#line 438 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->message; -#line 438 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 438 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 438 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3799 "RESTSupport.c" -} - - -static void -_vala_array_add1 (PublishingRESTSupportArgument** * array, - int* length, - int* size, - PublishingRESTSupportArgument* value) -{ -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if ((*length) == (*size)) { -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *array = g_renew (PublishingRESTSupportArgument*, *array, (*size) + 1); -#line 3815 "RESTSupport.c" - } -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - (*array)[(*length)++] = value; -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - (*array)[*length] = NULL; -#line 3821 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_add_argument (PublishingRESTSupportTransaction* self, - const gchar* name, - const gchar* value) -{ - PublishingRESTSupportArgument** _tmp0_; - gint _tmp0__length1; - PublishingRESTSupportArgument* _tmp1_; -#line 441 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self)); -#line 441 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (name != NULL); -#line 441 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (value != NULL); -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->arguments; -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0__length1 = self->priv->arguments_length1; -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = publishing_rest_support_argument_new (name, value); -#line 442 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_array_add1 (&self->priv->arguments, &self->priv->arguments_length1, &self->priv->_arguments_size_, _tmp1_); -#line 3847 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_transaction_get_endpoint_url (PublishingRESTSupportTransaction* self) -{ - gchar* result = NULL; - gchar* _tmp0_ = NULL; - const gchar* _tmp1_; -#line 445 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL); -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = self->priv->endpoint_url; -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp1_ != NULL) { -#line 3863 "RESTSupport.c" - const gchar* _tmp2_; - gchar* _tmp3_; -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = self->priv->endpoint_url; -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp0_); -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _tmp3_; -#line 3874 "RESTSupport.c" - } else { - PublishingRESTSupportSession* _tmp4_; - gchar* _tmp5_; -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = self->priv->parent_session; -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = publishing_rest_support_session_get_endpoint_url (_tmp4_); -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp0_); -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _tmp5_; -#line 3886 "RESTSupport.c" - } -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp0_; -#line 446 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3892 "RESTSupport.c" -} - - -static gpointer -_publishing_rest_support_session_ref0 (gpointer self) -{ -#line 450 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self ? publishing_rest_support_session_ref (self) : NULL; -#line 3901 "RESTSupport.c" -} - - -PublishingRESTSupportSession* -publishing_rest_support_transaction_get_parent_session (PublishingRESTSupportTransaction* self) -{ - PublishingRESTSupportSession* result = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingRESTSupportSession* _tmp1_; -#line 449 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (self), NULL); -#line 450 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->parent_session; -#line 450 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _publishing_rest_support_session_ref0 (_tmp0_); -#line 450 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 450 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 3921 "RESTSupport.c" -} - - -static void -g_cclosure_user_marshal_VOID__INT_INT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__INT_INT) (gpointer data1, gint arg_1, gint arg_2, gpointer data2); - register GMarshalFunc_VOID__INT_INT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (n_param_values == 3); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - data1 = closure->data; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - data2 = param_values->data[0].v_pointer; -#line 3947 "RESTSupport.c" - } else { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - data1 = param_values->data[0].v_pointer; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - data2 = closure->data; -#line 3953 "RESTSupport.c" - } -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - callback = (GMarshalFunc_VOID__INT_INT) (marshal_data ? marshal_data : cc->callback); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - callback (data1, g_value_get_int (param_values + 1), g_value_get_int (param_values + 2), data2); -#line 3959 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_transaction_init (GValue* value) -{ -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 3968 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_transaction_free_value (GValue* value) -{ -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (value->data[0].v_pointer) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_unref (value->data[0].v_pointer); -#line 3979 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_value_transaction_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (src_value->data[0].v_pointer) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = publishing_rest_support_transaction_ref (src_value->data[0].v_pointer); -#line 3992 "RESTSupport.c" - } else { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = NULL; -#line 3996 "RESTSupport.c" - } -} - - -static gpointer -publishing_rest_support_value_transaction_peek_pointer (const GValue* value) -{ -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 4006 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_transaction_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (collect_values[0].v_pointer) { -#line 4018 "RESTSupport.c" - PublishingRESTSupportTransaction * object; - object = collect_values[0].v_pointer; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (object->parent_instance.g_class == NULL) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4025 "RESTSupport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4029 "RESTSupport.c" - } -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = publishing_rest_support_transaction_ref (object); -#line 4033 "RESTSupport.c" - } else { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 4037 "RESTSupport.c" - } -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 4041 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_transaction_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRESTSupportTransaction ** object_p; - object_p = collect_values[0].v_pointer; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!object_p) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 4057 "RESTSupport.c" - } -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!value->data[0].v_pointer) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = NULL; -#line 4063 "RESTSupport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = value->data[0].v_pointer; -#line 4067 "RESTSupport.c" - } else { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = publishing_rest_support_transaction_ref (value->data[0].v_pointer); -#line 4071 "RESTSupport.c" - } -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 4075 "RESTSupport.c" -} - - -GParamSpec* -publishing_rest_support_param_spec_transaction (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRESTSupportParamSpecTransaction* spec; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION), NULL); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return G_PARAM_SPEC (spec); -#line 4095 "RESTSupport.c" -} - - -gpointer -publishing_rest_support_value_get_transaction (const GValue* value) -{ -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION), NULL); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 4106 "RESTSupport.c" -} - - -void -publishing_rest_support_value_set_transaction (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportTransaction * old; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_ref (value->data[0].v_pointer); -#line 4129 "RESTSupport.c" - } else { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 4133 "RESTSupport.c" - } -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_unref (old); -#line 4139 "RESTSupport.c" - } -} - - -void -publishing_rest_support_value_take_transaction (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportTransaction * old; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 4161 "RESTSupport.c" - } else { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 4165 "RESTSupport.c" - } -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_unref (old); -#line 4171 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_transaction_class_init (PublishingRESTSupportTransactionClass * klass) -{ -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_parent_class = g_type_class_peek_parent (klass); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_rest_support_transaction_finalize; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_class_add_private (klass, sizeof (PublishingRESTSupportTransactionPrivate)); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportTransactionClass *) klass)->add_header = (void (*) (PublishingRESTSupportTransaction *, const gchar*, const gchar*)) publishing_rest_support_transaction_real_add_header; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_rest_support_transaction_real_execute; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_signals[PUBLISHING_REST_SUPPORT_TRANSACTION_CHUNK_TRANSMITTED_SIGNAL] = g_signal_new ("chunk-transmitted", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__INT_INT, G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_INT); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_signals[PUBLISHING_REST_SUPPORT_TRANSACTION_NETWORK_ERROR_SIGNAL] = g_signal_new ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_signals[PUBLISHING_REST_SUPPORT_TRANSACTION_COMPLETED_SIGNAL] = g_signal_new ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 4195 "RESTSupport.c" -} - - -static void -publishing_rest_support_transaction_instance_init (PublishingRESTSupportTransaction * self) -{ -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv = PUBLISHING_REST_SUPPORT_TRANSACTION_GET_PRIVATE (self); -#line 160 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->is_executed = FALSE; -#line 161 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->parent_session = NULL; -#line 162 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->message = NULL; -#line 163 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->bytes_written = 0; -#line 164 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->err = NULL; -#line 165 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->endpoint_url = NULL; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->ref_count = 1; -#line 4218 "RESTSupport.c" -} - - -static void -publishing_rest_support_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingRESTSupportTransaction * self; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_destroy (self); -#line 159 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->arguments = (_vala_array_free (self->priv->arguments, self->priv->arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 162 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->priv->message); -#line 164 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_error_free0 (self->priv->err); -#line 165 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->priv->endpoint_url); -#line 4238 "RESTSupport.c" -} - - -GType -publishing_rest_support_transaction_get_type (void) -{ - static volatile gsize publishing_rest_support_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_transaction_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rest_support_value_transaction_init, publishing_rest_support_value_transaction_free_value, publishing_rest_support_value_transaction_copy_value, publishing_rest_support_value_transaction_peek_pointer, "p", publishing_rest_support_value_transaction_collect_value, "p", publishing_rest_support_value_transaction_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportTransaction), 0, (GInstanceInitFunc) publishing_rest_support_transaction_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rest_support_transaction_type_id; - publishing_rest_support_transaction_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRESTSupportTransaction", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_rest_support_transaction_type_id__volatile, publishing_rest_support_transaction_type_id); - } - return publishing_rest_support_transaction_type_id__volatile; -} - - -gpointer -publishing_rest_support_transaction_ref (gpointer instance) -{ - PublishingRESTSupportTransaction * self; - self = instance; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_atomic_int_inc (&self->ref_count); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return instance; -#line 4267 "RESTSupport.c" -} - - -void -publishing_rest_support_transaction_unref (gpointer instance) -{ - PublishingRESTSupportTransaction * self; - self = instance; -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_GET_CLASS (self)->finalize (self); -#line 158 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 4282 "RESTSupport.c" - } -} - - -PublishingRESTSupportUploadTransaction* -publishing_rest_support_upload_transaction_construct (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable) -{ - PublishingRESTSupportUploadTransaction* self = NULL; - SpitPublishingPublishable* _tmp0_; - gchar* _tmp1_; - GHashTable* _tmp2_; - GeeHashMap* _tmp3_; -#line 460 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (session), NULL); -#line 460 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 461 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportUploadTransaction*) publishing_rest_support_transaction_construct (object_type, session, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 462 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _g_object_ref0 (publishable); -#line 462 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->publishable); -#line 462 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->publishable = _tmp0_; -#line 463 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = publishing_rest_support_upload_transaction_media_type_to_mime_type (spit_publishing_publishable_get_media_type (publishable)); -#line 463 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->mime_type); -#line 463 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->mime_type = _tmp1_; -#line 465 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = publishing_rest_support_upload_transaction_create_default_binary_disposition_table (self); -#line 465 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_hash_table_unref0 (self->binary_disposition_table); -#line 465 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->binary_disposition_table = _tmp2_; -#line 467 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 467 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->message_headers); -#line 467 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->message_headers = _tmp3_; -#line 460 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 4329 "RESTSupport.c" -} - - -PublishingRESTSupportUploadTransaction* -publishing_rest_support_upload_transaction_new (PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable) -{ -#line 460 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_upload_transaction_construct (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, session, publishable); -#line 4339 "RESTSupport.c" -} - - -PublishingRESTSupportUploadTransaction* -publishing_rest_support_upload_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_url) -{ - PublishingRESTSupportUploadTransaction* self = NULL; - SpitPublishingPublishable* _tmp0_; - gchar* _tmp1_; - GHashTable* _tmp2_; - GeeHashMap* _tmp3_; -#line 470 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (session), NULL); -#line 470 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 470 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (endpoint_url != NULL, NULL); -#line 472 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportUploadTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, session, endpoint_url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 473 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _g_object_ref0 (publishable); -#line 473 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->publishable); -#line 473 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->publishable = _tmp0_; -#line 474 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = publishing_rest_support_upload_transaction_media_type_to_mime_type (spit_publishing_publishable_get_media_type (publishable)); -#line 474 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->mime_type); -#line 474 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->mime_type = _tmp1_; -#line 476 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = publishing_rest_support_upload_transaction_create_default_binary_disposition_table (self); -#line 476 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_hash_table_unref0 (self->binary_disposition_table); -#line 476 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->binary_disposition_table = _tmp2_; -#line 478 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 478 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->message_headers); -#line 478 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->message_headers = _tmp3_; -#line 470 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 4388 "RESTSupport.c" -} - - -PublishingRESTSupportUploadTransaction* -publishing_rest_support_upload_transaction_new_with_endpoint_url (PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_url) -{ -#line 470 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_upload_transaction_construct_with_endpoint_url (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, session, publishable, endpoint_url); -#line 4399 "RESTSupport.c" -} - - -static void -publishing_rest_support_upload_transaction_real_add_header (PublishingRESTSupportTransaction* base, - const gchar* key, - const gchar* value) -{ - PublishingRESTSupportUploadTransaction * self; - GeeHashMap* _tmp0_; -#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction); -#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (key != NULL); -#line 481 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (value != NULL); -#line 482 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->message_headers; -#line 482 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key, value); -#line 4420 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_upload_transaction_media_type_to_mime_type (SpitPublishingPublisherMediaType media_type) -{ - gchar* result = NULL; -#line 486 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (media_type == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) { -#line 4430 "RESTSupport.c" - gchar* _tmp0_; -#line 487 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_strdup ("image/jpeg"); -#line 487 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp0_; -#line 487 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 4438 "RESTSupport.c" - } else { -#line 488 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (media_type == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 4442 "RESTSupport.c" - gchar* _tmp1_; -#line 489 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = g_strdup ("video/mpeg"); -#line 489 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 489 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 4450 "RESTSupport.c" - } else { - GEnumValue* _tmp2_; -#line 491 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = g_enum_get_value (g_type_class_ref (SPIT_PUBLISHING_PUBLISHER_TYPE_MEDIA_TYPE), media_type); -#line 491 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_error ("RESTSupport.vala:491: UploadTransaction: unknown media type %s.", (_tmp2_ != NULL) ? _tmp2_->value_name : NULL); -#line 4457 "RESTSupport.c" - } - } -} - - -static void -_g_free0_ (gpointer var) -{ -#line 495 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - var = (g_free (var), NULL); -#line 4468 "RESTSupport.c" -} - - -static GHashTable* -publishing_rest_support_upload_transaction_create_default_binary_disposition_table (PublishingRESTSupportUploadTransaction* self) -{ - GHashTable* result = NULL; - GHashTable* _result_ = NULL; - GHashFunc _tmp0_; - GEqualFunc _tmp1_; - GHashTable* _tmp2_; - gchar* _tmp3_; - SpitPublishingPublishable* _tmp4_; - GFile* _tmp5_; - GFile* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 494 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION (self), NULL); -#line 495 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_str_hash; -#line 495 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = g_str_equal; -#line 495 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = g_hash_table_new_full (_tmp0_, _tmp1_, _g_free0_, _g_free0_); -#line 495 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _result_ = _tmp2_; -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = g_strdup ("filename"); -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = self->publishable; -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = spit_publishing_publishable_get_serialized_file (_tmp4_); -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = _tmp5_; -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = g_file_get_basename (_tmp6_); -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = _tmp7_; -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = soup_uri_encode (_tmp8_, NULL); -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_hash_table_insert (_result_, _tmp3_, _tmp9_); -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp8_); -#line 498 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (_tmp6_); -#line 501 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _result_; -#line 501 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 4521 "RESTSupport.c" -} - - -static gpointer -_g_hash_table_ref0 (gpointer self) -{ -#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self ? g_hash_table_ref (self) : NULL; -#line 4530 "RESTSupport.c" -} - - -void -publishing_rest_support_upload_transaction_set_binary_disposition_table (PublishingRESTSupportUploadTransaction* self, - GHashTable* new_disp_table) -{ - GHashTable* _tmp0_; -#line 504 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION (self)); -#line 504 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (new_disp_table != NULL); -#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _g_hash_table_ref0 (new_disp_table); -#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_hash_table_unref0 (self->binary_disposition_table); -#line 505 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->binary_disposition_table = _tmp0_; -#line 4549 "RESTSupport.c" -} - - -static void -_vala_SoupMultipart_free (SoupMultipart* self) -{ -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_boxed_free (soup_multipart_get_type (), self); -#line 4558 "RESTSupport.c" -} - - -static void -_vala_SoupBuffer_free (SoupBuffer* self) -{ -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_boxed_free (soup_buffer_get_type (), self); -#line 4567 "RESTSupport.c" -} - - -static void -publishing_rest_support_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error) -{ - PublishingRESTSupportUploadTransaction * self; - PublishingRESTSupportArgument** request_arguments = NULL; - gint _tmp0_; - PublishingRESTSupportArgument** _tmp1_; - gint request_arguments_length1; - gint _request_arguments_size_; - PublishingRESTSupportArgument** _tmp2_; - gint _tmp2__length1; - SoupMultipart* message_parts = NULL; - SoupMultipart* _tmp3_; - PublishingRESTSupportArgument** _tmp4_; - gint _tmp4__length1; - gchar* payload = NULL; - gsize payload_length = 0UL; - gint payload_part_num = 0; - SoupMultipart* _tmp19_; - SoupBuffer* bindable_data = NULL; - const gchar* _tmp20_; - guint8* _tmp21_; - gint _tmp21__length1; - guint8* _tmp22_; - gint _tmp22__length1; - gsize _tmp23_; - SoupBuffer* _tmp24_; - SoupMultipart* _tmp25_; - SpitPublishingPublishable* _tmp26_; - GFile* _tmp27_; - GFile* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; - const gchar* _tmp31_; - SoupBuffer* _tmp32_; - SoupMessageHeaders* image_part_header = NULL; - SoupBuffer* image_part_body = NULL; - SoupMultipart* _tmp33_; - gint _tmp34_; - SoupMessageHeaders* _tmp35_ = NULL; - SoupBuffer* _tmp36_ = NULL; - SoupMessageHeaders* _tmp37_; - GHashTable* _tmp38_; - SoupMessage* outbound_message = NULL; - gchar* _tmp39_; - gchar* _tmp40_; - SoupMultipart* _tmp41_; - SoupMessage* _tmp42_; - SoupMessage* _tmp43_; - GeeMapIterator* i = NULL; - GeeHashMap* _tmp44_; - GeeMapIterator* _tmp45_; - gboolean cont = FALSE; - GeeMapIterator* _tmp46_; - SoupMessage* _tmp57_; - GError * _inner_error_ = NULL; -#line 508 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction); -#line 509 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = publishing_rest_support_transaction_get_arguments (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_tmp0_); -#line 509 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - request_arguments = _tmp1_; -#line 509 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - request_arguments_length1 = _tmp0_; -#line 509 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _request_arguments_size_ = request_arguments_length1; -#line 510 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = request_arguments; -#line 510 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2__length1 = request_arguments_length1; -#line 510 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (_tmp2__length1 > 0, "request_arguments.length > 0"); -#line 512 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = soup_multipart_new ("multipart/form-data"); -#line 512 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - message_parts = _tmp3_; -#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = request_arguments; -#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4__length1 = request_arguments_length1; -#line 4652 "RESTSupport.c" - { - PublishingRESTSupportArgument** arg_collection = NULL; - gint arg_collection_length1 = 0; - gint _arg_collection_size_ = 0; - gint arg_it = 0; -#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg_collection = _tmp4_; -#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg_collection_length1 = _tmp4__length1; -#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - for (arg_it = 0; arg_it < _tmp4__length1; arg_it = arg_it + 1) { -#line 4664 "RESTSupport.c" - PublishingRESTSupportArgument* _tmp5_; - PublishingRESTSupportArgument* arg = NULL; -#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _publishing_rest_support_argument_ref0 (arg_collection[arg_it]); -#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - arg = _tmp5_; -#line 4671 "RESTSupport.c" - { - SoupMultipart* _tmp6_; - PublishingRESTSupportArgument* _tmp7_; - const gchar* _tmp8_; - PublishingRESTSupportArgument* _tmp9_; - const gchar* _tmp10_; -#line 515 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = message_parts; -#line 515 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = arg; -#line 515 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = _tmp7_->key; -#line 515 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = arg; -#line 515 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = _tmp9_->value; -#line 515 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_multipart_append_form_string (_tmp6_, _tmp8_, _tmp10_); -#line 514 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_argument_unref0 (arg); -#line 4692 "RESTSupport.c" - } - } - } - { - SpitPublishingPublishable* _tmp11_; - GFile* _tmp12_; - GFile* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_ = NULL; - gsize _tmp17_ = 0UL; -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = self->publishable; -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = spit_publishing_publishable_get_serialized_file (_tmp11_); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = _tmp12_; -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = g_file_get_path (_tmp13_); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = _tmp14_; -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_file_get_contents (_tmp15_, &_tmp16_, &_tmp17_, &_inner_error_); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (payload); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - payload = _tmp16_; -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - payload_length = _tmp17_; -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp15_); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (_tmp13_); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == G_FILE_ERROR) { -#line 4730 "RESTSupport.c" - goto __catch2_g_file_error; - } -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (payload); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 520 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 4745 "RESTSupport.c" - } - } - goto __finally2; - __catch2_g_file_error: - { - GError* e = NULL; - GError* _tmp18_; -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - e = _inner_error_; -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = NULL; -#line 523 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp18_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _ ("A temporary file needed for publishing is unavailable")); -#line 523 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp18_; -#line 523 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_error_free0 (e); -#line 4763 "RESTSupport.c" - goto __finally2; - } - __finally2: -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (payload); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 4781 "RESTSupport.c" - } else { -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (payload); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 519 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 4795 "RESTSupport.c" - } - } -#line 527 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19_ = message_parts; -#line 527 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - payload_part_num = soup_multipart_get_length (_tmp19_); -#line 529 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp20_ = payload; -#line 529 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp21_ = string_get_data (_tmp20_, &_tmp21__length1); -#line 529 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp22_ = _tmp21_; -#line 529 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp22__length1 = _tmp21__length1; -#line 529 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp23_ = payload_length; -#line 529 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp24_ = soup_buffer_new (SOUP_MEMORY_COPY, _tmp22_ + 0, ((gint) _tmp23_) - 0); -#line 529 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - bindable_data = _tmp24_; -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp25_ = message_parts; -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp26_ = self->publishable; -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp27_ = spit_publishing_publishable_get_serialized_file (_tmp26_); -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp28_ = _tmp27_; -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp29_ = g_file_get_path (_tmp28_); -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp30_ = _tmp29_; -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp31_ = self->mime_type; -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp32_ = bindable_data; -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_multipart_append_form_file (_tmp25_, "", _tmp30_, _tmp31_, _tmp32_); -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp30_); -#line 530 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (_tmp28_); -#line 535 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp33_ = message_parts; -#line 535 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp34_ = payload_part_num; -#line 535 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_multipart_get_part (_tmp33_, _tmp34_, &_tmp35_, &_tmp36_); -#line 535 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - image_part_header = _tmp35_; -#line 535 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - image_part_body = _tmp36_; -#line 536 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp37_ = image_part_header; -#line 536 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp38_ = self->binary_disposition_table; -#line 536 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_message_headers_set_content_disposition (_tmp37_, "form-data", _tmp38_); -#line 538 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp39_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 538 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp40_ = _tmp39_; -#line 538 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp41_ = message_parts; -#line 538 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp42_ = soup_form_request_new_from_multipart (_tmp40_, _tmp41_); -#line 538 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp43_ = _tmp42_; -#line 538 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp40_); -#line 538 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - outbound_message = _tmp43_; -#line 541 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp44_ = self->message_headers; -#line 541 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp45_ = gee_abstract_map_map_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 541 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - i = _tmp45_; -#line 542 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp46_ = i; -#line 542 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - cont = gee_map_iterator_next (_tmp46_); -#line 543 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - while (TRUE) { -#line 4880 "RESTSupport.c" - gboolean _tmp47_; - SoupMessage* _tmp48_; - SoupMessageHeaders* _tmp49_; - GeeMapIterator* _tmp50_; - gpointer _tmp51_; - gchar* _tmp52_; - GeeMapIterator* _tmp53_; - gpointer _tmp54_; - gchar* _tmp55_; - GeeMapIterator* _tmp56_; -#line 543 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp47_ = cont; -#line 543 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!_tmp47_) { -#line 543 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - break; -#line 4897 "RESTSupport.c" - } -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp48_ = outbound_message; -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp49_ = _tmp48_->request_headers; -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp50_ = i; -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp51_ = gee_map_iterator_get_key (_tmp50_); -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp52_ = (gchar*) _tmp51_; -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp53_ = i; -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp54_ = gee_map_iterator_get_value (_tmp53_); -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp55_ = (gchar*) _tmp54_; -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - soup_message_headers_append (_tmp49_, _tmp52_, _tmp55_); -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp55_); -#line 544 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp52_); -#line 545 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp56_ = i; -#line 545 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - cont = gee_map_iterator_next (_tmp56_); -#line 4925 "RESTSupport.c" - } -#line 547 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp57_ = outbound_message; -#line 547 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_set_message (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp57_); -#line 549 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_set_is_executed (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), TRUE); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_send (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (i); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (outbound_message); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupBuffer_free0 (bindable_data); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (payload); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 4955 "RESTSupport.c" - } else { -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (i); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (outbound_message); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupBuffer_free0 (bindable_data); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (payload); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 550 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 4975 "RESTSupport.c" - } - } -#line 508 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (i); -#line 508 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (outbound_message); -#line 508 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupBuffer_free0 (bindable_data); -#line 508 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (payload); -#line 508 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 508 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 4990 "RESTSupport.c" -} - - -static void -publishing_rest_support_upload_transaction_class_init (PublishingRESTSupportUploadTransactionClass * klass) -{ -#line 454 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_upload_transaction_parent_class = g_type_class_peek_parent (klass); -#line 454 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_rest_support_upload_transaction_finalize; -#line 454 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportTransactionClass *) klass)->add_header = (void (*) (PublishingRESTSupportTransaction *, const gchar*, const gchar*)) publishing_rest_support_upload_transaction_real_add_header; -#line 454 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_rest_support_upload_transaction_real_execute; -#line 5005 "RESTSupport.c" -} - - -static void -publishing_rest_support_upload_transaction_instance_init (PublishingRESTSupportUploadTransaction * self) -{ -#line 455 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->binary_disposition_table = NULL; -#line 456 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->publishable = NULL; -#line 458 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->message_headers = NULL; -#line 5018 "RESTSupport.c" -} - - -static void -publishing_rest_support_upload_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingRESTSupportUploadTransaction * self; -#line 454 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction); -#line 455 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_hash_table_unref0 (self->binary_disposition_table); -#line 456 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->publishable); -#line 457 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->mime_type); -#line 458 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->message_headers); -#line 454 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_rest_support_upload_transaction_parent_class)->finalize (obj); -#line 5038 "RESTSupport.c" -} - - -GType -publishing_rest_support_upload_transaction_get_type (void) -{ - static volatile gsize publishing_rest_support_upload_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_upload_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportUploadTransaction), 0, (GInstanceInitFunc) publishing_rest_support_upload_transaction_instance_init, NULL }; - GType publishing_rest_support_upload_transaction_type_id; - publishing_rest_support_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingRESTSupportUploadTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rest_support_upload_transaction_type_id__volatile, publishing_rest_support_upload_transaction_type_id); - } - return publishing_rest_support_upload_transaction_type_id__volatile; -} - - -static PublishingRESTSupportXmlDocument* -publishing_rest_support_xml_document_construct (GType object_type, - xmlDoc* doc) -{ - PublishingRESTSupportXmlDocument* self = NULL; -#line 562 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportXmlDocument*) g_type_create_instance (object_type); -#line 563 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->document = doc; -#line 562 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 5067 "RESTSupport.c" -} - - -static PublishingRESTSupportXmlDocument* -publishing_rest_support_xml_document_new (xmlDoc* doc) -{ -#line 562 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_xml_document_construct (PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, doc); -#line 5076 "RESTSupport.c" -} - - -xmlNode* -publishing_rest_support_xml_document_get_root_node (PublishingRESTSupportXmlDocument* self) -{ - xmlNode* result = NULL; - xmlDoc* _tmp0_; - xmlNode* _tmp1_; -#line 570 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (self), NULL); -#line 571 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->document; -#line 571 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = xmlDocGetRootElement (_tmp0_); -#line 571 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 571 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 5096 "RESTSupport.c" -} - - -xmlNode* -publishing_rest_support_xml_document_get_named_child (PublishingRESTSupportXmlDocument* self, - xmlNode* parent, - const gchar* child_name, - GError** error) -{ - xmlNode* result = NULL; - xmlNode* doc_node_iter = NULL; - xmlNode* _tmp0_; - GError* _tmp8_; - GError * _inner_error_ = NULL; -#line 574 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (self), NULL); -#line 574 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (child_name != NULL, NULL); -#line 576 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = parent->children; -#line 576 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - doc_node_iter = _tmp0_; -#line 5119 "RESTSupport.c" - { - gboolean _tmp1_ = FALSE; -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = TRUE; -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - while (TRUE) { -#line 5126 "RESTSupport.c" - xmlNode* _tmp4_; - xmlNode* _tmp5_; - const gchar* _tmp6_; -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!_tmp1_) { -#line 5132 "RESTSupport.c" - xmlNode* _tmp2_; - xmlNode* _tmp3_; -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = doc_node_iter; -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = _tmp2_->next; -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - doc_node_iter = _tmp3_; -#line 5141 "RESTSupport.c" - } -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = FALSE; -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = doc_node_iter; -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!(_tmp4_ != NULL)) { -#line 578 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - break; -#line 5151 "RESTSupport.c" - } -#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = doc_node_iter; -#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = _tmp5_->name; -#line 579 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_strcmp0 (_tmp6_, child_name) == 0) { -#line 5159 "RESTSupport.c" - xmlNode* _tmp7_; -#line 580 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = doc_node_iter; -#line 580 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp7_; -#line 580 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 5167 "RESTSupport.c" - } - } - } -#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Can't find XML node %s", child_name); -#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp8_; -#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5181 "RESTSupport.c" - } else { -#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 583 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5189 "RESTSupport.c" - } -} - - -gchar* -publishing_rest_support_xml_document_get_property_value (PublishingRESTSupportXmlDocument* self, - xmlNode* node, - const gchar* property_key, - GError** error) -{ - gchar* result = NULL; - gchar* value_string = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - GError * _inner_error_ = NULL; -#line 587 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (self), NULL); -#line 587 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (property_key != NULL, NULL); -#line 589 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = (gchar*) xmlGetProp (node, (xmlChar*) property_key); -#line 589 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value_string = _tmp0_; -#line 590 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = value_string; -#line 590 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp1_ == NULL) { -#line 5217 "RESTSupport.c" - const gchar* _tmp2_; - GError* _tmp3_; -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = node->name; -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Can't find XML " "property %s on node %s", property_key, _tmp2_); -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp3_; -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (value_string); -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5234 "RESTSupport.c" - } else { -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (value_string); -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 591 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5244 "RESTSupport.c" - } - } -#line 594 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = value_string; -#line 594 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 5251 "RESTSupport.c" -} - - -static gchar* -string_chug (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1240 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1241 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1241 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1242 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1242 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strchug (_tmp1_); -#line 1243 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1243 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 5276 "RESTSupport.c" -} - - -static gchar* -string_chomp (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1232 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1233 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1233 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1234 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1234 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strchomp (_tmp1_); -#line 1235 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1235 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 5301 "RESTSupport.c" -} - - -PublishingRESTSupportXmlDocument* -publishing_rest_support_xml_document_parse_string (const gchar* input_string, - PublishingRESTSupportXmlDocumentCheckForErrorResponse check_for_error_response, - void* check_for_error_response_target, - GError** error) -{ - PublishingRESTSupportXmlDocument* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp4_ = FALSE; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gboolean _tmp9_; - xmlDoc* doc = NULL; - gint _tmp15_; - gint _tmp16_; - xmlDoc* _tmp17_; - xmlDoc* _tmp18_; - xmlDoc* _tmp20_; - xmlNode* _tmp21_; - PublishingRESTSupportXmlDocument* rest_doc = NULL; - xmlDoc* _tmp23_; - PublishingRESTSupportXmlDocument* _tmp24_; - gchar* _result_ = NULL; - PublishingRESTSupportXmlDocument* _tmp25_; - gchar* _tmp26_; - const gchar* _tmp27_; - GError * _inner_error_ = NULL; -#line 599 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (input_string == NULL) { -#line 599 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = TRUE; -#line 5338 "RESTSupport.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 599 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = strlen (input_string); -#line 599 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp1_; -#line 599 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _tmp2_ == 0; -#line 5348 "RESTSupport.c" - } -#line 599 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp0_) { -#line 5352 "RESTSupport.c" - GError* _tmp3_; -#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Empty XML string"); -#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp3_; -#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5364 "RESTSupport.c" - } else { -#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 600 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5372 "RESTSupport.c" - } - } -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = string_chug (input_string); -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = _tmp5_; -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = string_chomp (_tmp6_); -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = _tmp7_; -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = !g_str_has_prefix (_tmp8_, "<"); -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp8_); -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp6_); -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp9_) { -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = TRUE; -#line 5393 "RESTSupport.c" - } else { - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 604 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = string_chug (input_string); -#line 604 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = _tmp10_; -#line 604 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = string_chomp (_tmp11_); -#line 604 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = _tmp12_; -#line 604 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = !g_str_has_suffix (_tmp13_, ">"); -#line 604 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp13_); -#line 604 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp11_); -#line 5413 "RESTSupport.c" - } -#line 603 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp4_) { -#line 5417 "RESTSupport.c" - GError* _tmp14_; -#line 606 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Unable to parse XML " "document"); -#line 606 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp14_; -#line 606 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 606 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 606 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5429 "RESTSupport.c" - } else { -#line 606 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 606 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 606 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5437 "RESTSupport.c" - } - } -#line 612 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = strlen (input_string); -#line 612 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_ = _tmp15_; -#line 612 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp17_ = xmlReadMemory (input_string, (gint) _tmp16_, NULL, NULL, (gint) (XML_PARSE_NOBLANKS | XML_PARSE_RECOVER)); -#line 612 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - doc = _tmp17_; -#line 614 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp18_ = doc; -#line 614 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp18_ == NULL) { -#line 5452 "RESTSupport.c" - GError* _tmp19_; -#line 615 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Unable to parse XML " "document"); -#line 615 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp19_; -#line 615 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 615 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 615 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5464 "RESTSupport.c" - } else { -#line 615 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 615 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 615 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5472 "RESTSupport.c" - } - } -#line 620 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp20_ = doc; -#line 620 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp21_ = _tmp20_->children; -#line 620 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp21_ == NULL) { -#line 5481 "RESTSupport.c" - GError* _tmp22_; -#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp22_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Unable to parse XML " "document"); -#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp22_; -#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5493 "RESTSupport.c" - } else { -#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 621 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5501 "RESTSupport.c" - } - } -#line 625 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp23_ = doc; -#line 625 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp24_ = publishing_rest_support_xml_document_new (_tmp23_); -#line 625 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - rest_doc = _tmp24_; -#line 627 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp25_ = rest_doc; -#line 627 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp26_ = check_for_error_response (_tmp25_, check_for_error_response_target); -#line 627 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _result_ = _tmp26_; -#line 628 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp27_ = _result_; -#line 628 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp27_ != NULL) { -#line 5520 "RESTSupport.c" - const gchar* _tmp28_; - GError* _tmp29_; -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp28_ = _result_; -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp29_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_SERVICE_ERROR, "%s", _tmp28_); -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = _tmp29_; -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_propagate_error (error, _inner_error_); -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_result_); -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_xml_document_unref0 (rest_doc); -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5539 "RESTSupport.c" - } else { -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_result_); -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_xml_document_unref0 (rest_doc); -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 629 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5551 "RESTSupport.c" - } - } -#line 631 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = rest_doc; -#line 631 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_result_); -#line 631 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 5560 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_xml_document_init (GValue* value) -{ -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 5569 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_xml_document_free_value (GValue* value) -{ -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (value->data[0].v_pointer) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_xml_document_unref (value->data[0].v_pointer); -#line 5580 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_value_xml_document_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (src_value->data[0].v_pointer) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = publishing_rest_support_xml_document_ref (src_value->data[0].v_pointer); -#line 5593 "RESTSupport.c" - } else { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = NULL; -#line 5597 "RESTSupport.c" - } -} - - -static gpointer -publishing_rest_support_value_xml_document_peek_pointer (const GValue* value) -{ -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 5607 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_xml_document_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (collect_values[0].v_pointer) { -#line 5619 "RESTSupport.c" - PublishingRESTSupportXmlDocument * object; - object = collect_values[0].v_pointer; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (object->parent_instance.g_class == NULL) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5626 "RESTSupport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5630 "RESTSupport.c" - } -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = publishing_rest_support_xml_document_ref (object); -#line 5634 "RESTSupport.c" - } else { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 5638 "RESTSupport.c" - } -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5642 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_xml_document_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRESTSupportXmlDocument ** object_p; - object_p = collect_values[0].v_pointer; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!object_p) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 5658 "RESTSupport.c" - } -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!value->data[0].v_pointer) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = NULL; -#line 5664 "RESTSupport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = value->data[0].v_pointer; -#line 5668 "RESTSupport.c" - } else { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = publishing_rest_support_xml_document_ref (value->data[0].v_pointer); -#line 5672 "RESTSupport.c" - } -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 5676 "RESTSupport.c" -} - - -GParamSpec* -publishing_rest_support_param_spec_xml_document (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRESTSupportParamSpecXmlDocument* spec; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT), NULL); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return G_PARAM_SPEC (spec); -#line 5696 "RESTSupport.c" -} - - -gpointer -publishing_rest_support_value_get_xml_document (const GValue* value) -{ -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT), NULL); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 5707 "RESTSupport.c" -} - - -void -publishing_rest_support_value_set_xml_document (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportXmlDocument * old; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT)); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT)); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_xml_document_ref (value->data[0].v_pointer); -#line 5730 "RESTSupport.c" - } else { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 5734 "RESTSupport.c" - } -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_xml_document_unref (old); -#line 5740 "RESTSupport.c" - } -} - - -void -publishing_rest_support_value_take_xml_document (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportXmlDocument * old; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT)); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT)); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 5762 "RESTSupport.c" - } else { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 5766 "RESTSupport.c" - } -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_xml_document_unref (old); -#line 5772 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_xml_document_class_init (PublishingRESTSupportXmlDocumentClass * klass) -{ -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_xml_document_parent_class = g_type_class_peek_parent (klass); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportXmlDocumentClass *) klass)->finalize = publishing_rest_support_xml_document_finalize; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_class_add_private (klass, sizeof (PublishingRESTSupportXmlDocumentPrivate)); -#line 5786 "RESTSupport.c" -} - - -static void -publishing_rest_support_xml_document_instance_init (PublishingRESTSupportXmlDocument * self) -{ -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv = PUBLISHING_REST_SUPPORT_XML_DOCUMENT_GET_PRIVATE (self); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->ref_count = 1; -#line 5797 "RESTSupport.c" -} - - -static void -publishing_rest_support_xml_document_finalize (PublishingRESTSupportXmlDocument * obj) -{ - PublishingRESTSupportXmlDocument * self; - xmlDoc* _tmp0_; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocument); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_destroy (self); -#line 567 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->document; -#line 567 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - xmlFreeDoc (_tmp0_); -#line 5814 "RESTSupport.c" -} - - -GType -publishing_rest_support_xml_document_get_type (void) -{ - static volatile gsize publishing_rest_support_xml_document_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_xml_document_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rest_support_value_xml_document_init, publishing_rest_support_value_xml_document_free_value, publishing_rest_support_value_xml_document_copy_value, publishing_rest_support_value_xml_document_peek_pointer, "p", publishing_rest_support_value_xml_document_collect_value, "p", publishing_rest_support_value_xml_document_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportXmlDocumentClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_xml_document_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportXmlDocument), 0, (GInstanceInitFunc) publishing_rest_support_xml_document_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rest_support_xml_document_type_id; - publishing_rest_support_xml_document_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRESTSupportXmlDocument", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_rest_support_xml_document_type_id__volatile, publishing_rest_support_xml_document_type_id); - } - return publishing_rest_support_xml_document_type_id__volatile; -} - - -gpointer -publishing_rest_support_xml_document_ref (gpointer instance) -{ - PublishingRESTSupportXmlDocument * self; - self = instance; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_atomic_int_inc (&self->ref_count); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return instance; -#line 5843 "RESTSupport.c" -} - - -void -publishing_rest_support_xml_document_unref (gpointer instance) -{ - PublishingRESTSupportXmlDocument * self; - self = instance; -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_XML_DOCUMENT_GET_CLASS (self)->finalize (self); -#line 554 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 5858 "RESTSupport.c" - } -} - - -gchar* -publishing_rest_support_decimal_entity_encode (const gchar* source) -{ - gchar* result = NULL; - GString* encoded_str_builder = NULL; - GString* _tmp0_; - gchar* current_char = NULL; - gchar* _tmp1_; - GString* _tmp20_; - const gchar* _tmp21_; - gchar* _tmp22_; -#line 640 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (source != NULL, NULL); -#line 641 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_string_new (""); -#line 641 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - encoded_str_builder = _tmp0_; -#line 642 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = g_strdup (source); -#line 642 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - current_char = _tmp1_; -#line 643 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - while (TRUE) { -#line 5886 "RESTSupport.c" - gint current_char_value = 0; - const gchar* _tmp2_; - gint _tmp3_; - gboolean _tmp4_ = FALSE; - gboolean _tmp5_ = FALSE; - gboolean _tmp6_ = FALSE; - gint _tmp7_; - const gchar* _tmp17_; - const gchar* _tmp18_; - gchar* _tmp19_; -#line 644 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = current_char; -#line 644 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - current_char_value = (gint) g_utf8_get_char_validated (_tmp2_, (gssize) -1); -#line 647 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = current_char_value; -#line 647 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp3_ < 1) { -#line 648 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - break; -#line 5907 "RESTSupport.c" - } -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = current_char_value; -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp7_ < 128) { -#line 5913 "RESTSupport.c" - gint _tmp8_; -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = current_char_value; -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = _tmp8_ != ((gint) '&'); -#line 5919 "RESTSupport.c" - } else { -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = FALSE; -#line 5923 "RESTSupport.c" - } -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp6_) { -#line 5927 "RESTSupport.c" - gint _tmp9_; -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = current_char_value; -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _tmp9_ != ((gint) '<'); -#line 5933 "RESTSupport.c" - } else { -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = FALSE; -#line 5937 "RESTSupport.c" - } -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp5_) { -#line 5941 "RESTSupport.c" - gint _tmp10_; -#line 653 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = current_char_value; -#line 653 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = _tmp10_ != ((gint) '>'); -#line 5947 "RESTSupport.c" - } else { -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = FALSE; -#line 5951 "RESTSupport.c" - } -#line 652 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp4_) { -#line 5955 "RESTSupport.c" - GString* _tmp11_; - const gchar* _tmp12_; -#line 654 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = encoded_str_builder; -#line 654 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = current_char; -#line 654 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_string_append_unichar (_tmp11_, g_utf8_get_char_validated (_tmp12_, (gssize) -1)); -#line 5964 "RESTSupport.c" - } else { - GString* _tmp13_; - gint _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; -#line 656 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = encoded_str_builder; -#line 656 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = current_char_value; -#line 656 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = g_strdup_printf ("&#%d;", _tmp14_); -#line 656 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_ = _tmp15_; -#line 656 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_string_append (_tmp13_, _tmp16_); -#line 656 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp16_); -#line 5982 "RESTSupport.c" - } -#line 658 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp17_ = current_char; -#line 658 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp18_ = g_utf8_next_char (_tmp17_); -#line 658 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19_ = g_strdup (_tmp18_); -#line 658 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (current_char); -#line 658 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - current_char = _tmp19_; -#line 5994 "RESTSupport.c" - } -#line 661 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp20_ = encoded_str_builder; -#line 661 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp21_ = _tmp20_->str; -#line 661 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp22_ = g_strdup (_tmp21_); -#line 661 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp22_; -#line 661 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (current_char); -#line 661 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_string_free0 (encoded_str_builder); -#line 661 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 6010 "RESTSupport.c" -} - - -static SpitPublishingPublishable** -_vala_array_dup2 (SpitPublishingPublishable** self, - int length) -{ - SpitPublishingPublishable** result; - int i; -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = g_new0 (SpitPublishingPublishable*, length + 1); -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - for (i = 0; i < length; i++) { -#line 6024 "RESTSupport.c" - SpitPublishingPublishable* _tmp0_; -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result[i] = _tmp0_; -#line 6030 "RESTSupport.c" - } -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 6034 "RESTSupport.c" -} - - -PublishingRESTSupportBatchUploader* -publishing_rest_support_batch_uploader_construct (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1) -{ - PublishingRESTSupportBatchUploader* self = NULL; - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; - PublishingRESTSupportSession* _tmp1_; -#line 673 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_SESSION (session), NULL); -#line 673 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportBatchUploader*) g_type_create_instance (object_type); -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = (publishables != NULL) ? _vala_array_dup2 (publishables, publishables_length1) : ((gpointer) publishables); -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0__length1 = publishables_length1; -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->publishables = _tmp0_; -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->publishables_length1 = _tmp0__length1; -#line 674 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->_publishables_size_ = self->priv->publishables_length1; -#line 675 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _publishing_rest_support_session_ref0 (session); -#line 675 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 675 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->session = _tmp1_; -#line 673 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 6072 "RESTSupport.c" -} - - -static void -_publishing_rest_support_batch_uploader_on_chunk_transmitted_publishing_rest_support_transaction_chunk_transmitted (PublishingRESTSupportTransaction* _sender, - gint bytes_written_so_far, - gint total_bytes, - gpointer self) -{ -#line 696 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_on_chunk_transmitted ((PublishingRESTSupportBatchUploader*) self, bytes_written_so_far, total_bytes); -#line 6084 "RESTSupport.c" -} - - -static void -publishing_rest_support_batch_uploader_send_files (PublishingRESTSupportBatchUploader* self) -{ - gboolean stop = FALSE; - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; - gboolean _tmp23_; - GError * _inner_error_ = NULL; -#line 678 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self)); -#line 679 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->current_file = 0; -#line 680 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - stop = FALSE; -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->publishables; -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0__length1 = self->priv->publishables_length1; -#line 6106 "RESTSupport.c" - { - SpitPublishingPublishable** publishable_collection = NULL; - gint publishable_collection_length1 = 0; - gint _publishable_collection_size_ = 0; - gint publishable_it = 0; -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishable_collection = _tmp0_; -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishable_collection_length1 = _tmp0__length1; -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - for (publishable_it = 0; publishable_it < _tmp0__length1; publishable_it = publishable_it + 1) { -#line 6118 "RESTSupport.c" - SpitPublishingPublishable* _tmp1_; - SpitPublishingPublishable* publishable = NULL; -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _g_object_ref0 (publishable_collection[publishable_it]); -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishable = _tmp1_; -#line 6125 "RESTSupport.c" - { - GFile* file = NULL; - SpitPublishingPublishable* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - gdouble fraction_complete = 0.0; - gint _tmp6_; - SpitPublishingPublishable** _tmp7_; - gint _tmp7__length1; - SpitPublishingProgressCallback _tmp8_; - void* _tmp8__target; - PublishingRESTSupportTransaction* txn = NULL; - SpitPublishingPublishable** _tmp12_; - gint _tmp12__length1; - gint _tmp13_; - SpitPublishingPublishable* _tmp14_; - PublishingRESTSupportTransaction* _tmp15_; - PublishingRESTSupportTransaction* _tmp16_; - PublishingRESTSupportTransaction* _tmp19_; - guint _tmp20_; - gboolean _tmp21_; - gint _tmp22_; -#line 682 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = publishable; -#line 682 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = spit_publishing_publishable_get_serialized_file (_tmp2_); -#line 682 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - file = _tmp3_; -#line 685 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = file; -#line 685 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp4_ == NULL) { -#line 6158 "RESTSupport.c" - gint _tmp5_; -#line 686 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = self->priv->current_file; -#line 686 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->current_file = _tmp5_ + 1; -#line 687 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (file); -#line 687 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (publishable); -#line 687 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - continue; -#line 6170 "RESTSupport.c" - } -#line 690 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = self->priv->current_file; -#line 690 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = self->priv->publishables; -#line 690 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7__length1 = self->priv->publishables_length1; -#line 690 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - fraction_complete = ((gdouble) _tmp6_) / _tmp7__length1; -#line 691 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = self->priv->status_updated; -#line 691 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8__target = self->priv->status_updated_target; -#line 691 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp8_ != NULL) { -#line 6186 "RESTSupport.c" - SpitPublishingProgressCallback _tmp9_; - void* _tmp9__target; - gint _tmp10_; - gdouble _tmp11_; -#line 692 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = self->priv->status_updated; -#line 692 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9__target = self->priv->status_updated_target; -#line 692 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = self->priv->current_file; -#line 692 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = fraction_complete; -#line 692 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ (_tmp10_ + 1, _tmp11_, _tmp9__target); -#line 6201 "RESTSupport.c" - } -#line 694 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = self->priv->publishables; -#line 694 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12__length1 = self->priv->publishables_length1; -#line 694 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = self->priv->current_file; -#line 694 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = _tmp12_[_tmp13_]; -#line 694 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = publishing_rest_support_batch_uploader_create_transaction (self, _tmp14_); -#line 694 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - txn = _tmp15_; -#line 696 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_ = txn; -#line 696 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_connect (_tmp16_, "chunk-transmitted", (GCallback) _publishing_rest_support_batch_uploader_on_chunk_transmitted_publishing_rest_support_transaction_chunk_transmitted, self); -#line 6219 "RESTSupport.c" - { - PublishingRESTSupportTransaction* _tmp17_; -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp17_ = txn; -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_execute (_tmp17_, &_inner_error_); -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 6230 "RESTSupport.c" - goto __catch3_spit_publishing_publishing_error; - } -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (file); -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (publishable); -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 699 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 6245 "RESTSupport.c" - } - } - goto __finally3; - __catch3_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp18_; -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - err = _inner_error_; -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _inner_error_ = NULL; -#line 701 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp18_ = err; -#line 701 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_emit (self, publishing_rest_support_batch_uploader_signals[PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_UPLOAD_ERROR_SIGNAL], 0, _tmp18_); -#line 702 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - stop = TRUE; -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_error_free0 (err); -#line 6265 "RESTSupport.c" - } - __finally3: -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (file); -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (publishable); -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_clear_error (&_inner_error_); -#line 698 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 6282 "RESTSupport.c" - } -#line 705 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19_ = txn; -#line 705 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_parse_name ("chunk-transmitted", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp20_, NULL, FALSE); -#line 705 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_disconnect_matched (_tmp19_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp20_, 0, NULL, (GCallback) _publishing_rest_support_batch_uploader_on_chunk_transmitted_publishing_rest_support_transaction_chunk_transmitted, self); -#line 707 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp21_ = stop; -#line 707 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp21_) { -#line 708 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 708 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (file); -#line 708 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (publishable); -#line 708 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - break; -#line 6302 "RESTSupport.c" - } -#line 710 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp22_ = self->priv->current_file; -#line 710 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->current_file = _tmp22_ + 1; -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (file); -#line 681 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (publishable); -#line 6314 "RESTSupport.c" - } - } - } -#line 713 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp23_ = stop; -#line 713 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!_tmp23_) { -#line 6322 "RESTSupport.c" - gint _tmp24_; -#line 714 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp24_ = self->priv->current_file; -#line 714 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_emit (self, publishing_rest_support_batch_uploader_signals[PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_UPLOAD_COMPLETE_SIGNAL], 0, _tmp24_); -#line 6328 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_batch_uploader_on_chunk_transmitted (PublishingRESTSupportBatchUploader* self, - gint bytes_written_so_far, - gint total_bytes) -{ - gdouble file_span = 0.0; - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; - gdouble this_file_fraction_complete = 0.0; - gdouble fraction_complete = 0.0; - gint _tmp1_; - gdouble _tmp2_; - gdouble _tmp3_; - gdouble _tmp4_; - SpitPublishingProgressCallback _tmp5_; - void* _tmp5__target; -#line 717 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self)); -#line 718 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->publishables; -#line 718 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0__length1 = self->priv->publishables_length1; -#line 718 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - file_span = 1.0 / _tmp0__length1; -#line 719 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - this_file_fraction_complete = ((gdouble) bytes_written_so_far) / total_bytes; -#line 720 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = self->priv->current_file; -#line 720 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = file_span; -#line 720 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = this_file_fraction_complete; -#line 720 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = file_span; -#line 720 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - fraction_complete = (_tmp1_ * _tmp2_) + (_tmp3_ * _tmp4_); -#line 723 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = self->priv->status_updated; -#line 723 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5__target = self->priv->status_updated_target; -#line 723 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp5_ != NULL) { -#line 6375 "RESTSupport.c" - SpitPublishingProgressCallback _tmp6_; - void* _tmp6__target; - gint _tmp7_; - gdouble _tmp8_; -#line 724 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = self->priv->status_updated; -#line 724 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6__target = self->priv->status_updated_target; -#line 724 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = self->priv->current_file; -#line 724 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = fraction_complete; -#line 724 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ (_tmp7_ + 1, _tmp8_, _tmp6__target); -#line 6390 "RESTSupport.c" - } -} - - -PublishingRESTSupportSession* -publishing_rest_support_batch_uploader_get_session (PublishingRESTSupportBatchUploader* self) -{ - PublishingRESTSupportSession* result = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingRESTSupportSession* _tmp1_; -#line 727 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self), NULL); -#line 728 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->session; -#line 728 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _publishing_rest_support_session_ref0 (_tmp0_); -#line 728 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 728 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 6411 "RESTSupport.c" -} - - -SpitPublishingPublishable* -publishing_rest_support_batch_uploader_get_current_publishable (PublishingRESTSupportBatchUploader* self) -{ - SpitPublishingPublishable* result = NULL; - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; - gint _tmp1_; - SpitPublishingPublishable* _tmp2_; - SpitPublishingPublishable* _tmp3_; -#line 731 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self), NULL); -#line 732 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->publishables; -#line 732 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0__length1 = self->priv->publishables_length1; -#line 732 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = self->priv->current_file; -#line 732 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = _tmp0_[_tmp1_]; -#line 732 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 732 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp3_; -#line 732 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 6440 "RESTSupport.c" -} - - -static PublishingRESTSupportTransaction* -publishing_rest_support_batch_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* self, - SpitPublishingPublishable* publishable) -{ -#line 735 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_batch_uploader_create_transaction'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 735 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 6452 "RESTSupport.c" -} - - -PublishingRESTSupportTransaction* -publishing_rest_support_batch_uploader_create_transaction (PublishingRESTSupportBatchUploader* self, - SpitPublishingPublishable* publishable) -{ -#line 735 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self), NULL); -#line 735 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_CLASS (self)->create_transaction (self, publishable); -#line 6464 "RESTSupport.c" -} - - -void -publishing_rest_support_batch_uploader_upload (PublishingRESTSupportBatchUploader* self, - SpitPublishingProgressCallback status_updated, - void* status_updated_target) -{ - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; -#line 737 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (self)); -#line 738 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->status_updated = status_updated; -#line 738 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->status_updated_target = status_updated_target; -#line 740 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->publishables; -#line 740 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0__length1 = self->priv->publishables_length1; -#line 740 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (_tmp0__length1 > 0) { -#line 741 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_send_files (self); -#line 6489 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_value_batch_uploader_init (GValue* value) -{ -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 6499 "RESTSupport.c" -} - - -static void -publishing_rest_support_value_batch_uploader_free_value (GValue* value) -{ -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (value->data[0].v_pointer) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_unref (value->data[0].v_pointer); -#line 6510 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_value_batch_uploader_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (src_value->data[0].v_pointer) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = publishing_rest_support_batch_uploader_ref (src_value->data[0].v_pointer); -#line 6523 "RESTSupport.c" - } else { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - dest_value->data[0].v_pointer = NULL; -#line 6527 "RESTSupport.c" - } -} - - -static gpointer -publishing_rest_support_value_batch_uploader_peek_pointer (const GValue* value) -{ -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 6537 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_batch_uploader_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (collect_values[0].v_pointer) { -#line 6549 "RESTSupport.c" - PublishingRESTSupportBatchUploader * object; - object = collect_values[0].v_pointer; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (object->parent_instance.g_class == NULL) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6556 "RESTSupport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6560 "RESTSupport.c" - } -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = publishing_rest_support_batch_uploader_ref (object); -#line 6564 "RESTSupport.c" - } else { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 6568 "RESTSupport.c" - } -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 6572 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_value_batch_uploader_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRESTSupportBatchUploader ** object_p; - object_p = collect_values[0].v_pointer; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!object_p) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 6588 "RESTSupport.c" - } -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!value->data[0].v_pointer) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = NULL; -#line 6594 "RESTSupport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = value->data[0].v_pointer; -#line 6598 "RESTSupport.c" - } else { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - *object_p = publishing_rest_support_batch_uploader_ref (value->data[0].v_pointer); -#line 6602 "RESTSupport.c" - } -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 6606 "RESTSupport.c" -} - - -GParamSpec* -publishing_rest_support_param_spec_batch_uploader (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRESTSupportParamSpecBatchUploader* spec; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER), NULL); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return G_PARAM_SPEC (spec); -#line 6626 "RESTSupport.c" -} - - -gpointer -publishing_rest_support_value_get_batch_uploader (const GValue* value) -{ -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER), NULL); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return value->data[0].v_pointer; -#line 6637 "RESTSupport.c" -} - - -void -publishing_rest_support_value_set_batch_uploader (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportBatchUploader * old; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER)); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER)); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_ref (value->data[0].v_pointer); -#line 6660 "RESTSupport.c" - } else { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 6664 "RESTSupport.c" - } -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_unref (old); -#line 6670 "RESTSupport.c" - } -} - - -void -publishing_rest_support_value_take_batch_uploader (GValue* value, - gpointer v_object) -{ - PublishingRESTSupportBatchUploader * old; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER)); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - old = value->data[0].v_pointer; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (v_object) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER)); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = v_object; -#line 6692 "RESTSupport.c" - } else { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - value->data[0].v_pointer = NULL; -#line 6696 "RESTSupport.c" - } -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (old) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_unref (old); -#line 6702 "RESTSupport.c" - } -} - - -static void -publishing_rest_support_batch_uploader_class_init (PublishingRESTSupportBatchUploaderClass * klass) -{ -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_parent_class = g_type_class_peek_parent (klass); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_rest_support_batch_uploader_finalize; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_class_add_private (klass, sizeof (PublishingRESTSupportBatchUploaderPrivate)); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_rest_support_batch_uploader_real_create_transaction; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_signals[PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_UPLOAD_COMPLETE_SIGNAL] = g_signal_new ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_batch_uploader_signals[PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_UPLOAD_ERROR_SIGNAL] = g_signal_new ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); -#line 6722 "RESTSupport.c" -} - - -static void -publishing_rest_support_batch_uploader_instance_init (PublishingRESTSupportBatchUploader * self) -{ -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv = PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_PRIVATE (self); -#line 665 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->current_file = 0; -#line 666 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->publishables = NULL; -#line 666 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->publishables_length1 = 0; -#line 666 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->_publishables_size_ = self->priv->publishables_length1; -#line 667 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->session = NULL; -#line 668 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->status_updated = NULL; -#line 668 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->status_updated_target = self; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->ref_count = 1; -#line 6747 "RESTSupport.c" -} - - -static void -publishing_rest_support_batch_uploader_finalize (PublishingRESTSupportBatchUploader * obj) -{ - PublishingRESTSupportBatchUploader * self; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_handlers_destroy (self); -#line 666 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 667 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 6763 "RESTSupport.c" -} - - -GType -publishing_rest_support_batch_uploader_get_type (void) -{ - static volatile gsize publishing_rest_support_batch_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_batch_uploader_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rest_support_value_batch_uploader_init, publishing_rest_support_value_batch_uploader_free_value, publishing_rest_support_value_batch_uploader_copy_value, publishing_rest_support_value_batch_uploader_peek_pointer, "p", publishing_rest_support_value_batch_uploader_collect_value, "p", publishing_rest_support_value_batch_uploader_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportBatchUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_batch_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportBatchUploader), 0, (GInstanceInitFunc) publishing_rest_support_batch_uploader_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rest_support_batch_uploader_type_id; - publishing_rest_support_batch_uploader_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRESTSupportBatchUploader", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&publishing_rest_support_batch_uploader_type_id__volatile, publishing_rest_support_batch_uploader_type_id); - } - return publishing_rest_support_batch_uploader_type_id__volatile; -} - - -gpointer -publishing_rest_support_batch_uploader_ref (gpointer instance) -{ - PublishingRESTSupportBatchUploader * self; - self = instance; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_atomic_int_inc (&self->ref_count); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return instance; -#line 6792 "RESTSupport.c" -} - - -void -publishing_rest_support_batch_uploader_unref (gpointer instance) -{ - PublishingRESTSupportBatchUploader * self; - self = instance; -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_CLASS (self)->finalize (self); -#line 664 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 6807 "RESTSupport.c" - } -} - - -static gunichar -string_get_char (const gchar* self, - glong index) -{ - gunichar result = 0U; -#line 1154 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0U); -#line 1155 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = g_utf8_get_char (((gchar*) self) + index); -#line 1155 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 6823 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_asciify_string (const gchar* s) -{ - gchar* result = NULL; - gchar* t = NULL; - gchar* _tmp0_; - GString* b = NULL; - GString* _tmp1_; - GString* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; -#line 748 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (s != NULL, NULL); -#line 749 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_utf8_normalize (s, (gssize) -1, G_NORMALIZE_DEFAULT); -#line 749 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - t = _tmp0_; -#line 751 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = g_string_new (""); -#line 751 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - b = _tmp1_; -#line 6848 "RESTSupport.c" - { - const gchar* u = NULL; - const gchar* _tmp2_; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = t; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - u = _tmp2_; -#line 6856 "RESTSupport.c" - { - gboolean _tmp3_ = FALSE; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = TRUE; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - while (TRUE) { -#line 6863 "RESTSupport.c" - const gchar* _tmp6_; - gunichar c = 0U; - const gchar* _tmp7_; - gunichar _tmp8_; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!_tmp3_) { -#line 6870 "RESTSupport.c" - const gchar* _tmp4_; - const gchar* _tmp5_; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp4_ = u; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = g_utf8_next_char (_tmp4_); -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - u = _tmp5_; -#line 6879 "RESTSupport.c" - } -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = FALSE; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp6_ = u; -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (!(string_get_char (_tmp6_, (glong) 0) != ((gunichar) 0))) { -#line 752 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - break; -#line 6889 "RESTSupport.c" - } -#line 753 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = u; -#line 753 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - c = string_get_char (_tmp7_, (glong) 0); -#line 754 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = c; -#line 754 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - if (((gint) _tmp8_) < 128) { -#line 6899 "RESTSupport.c" - GString* _tmp9_; - gunichar _tmp10_; -#line 755 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = b; -#line 755 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = c; -#line 755 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_string_append_unichar (_tmp9_, _tmp10_); -#line 6908 "RESTSupport.c" - } - } - } - } -#line 758 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = b; -#line 758 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = _tmp11_->str; -#line 758 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = g_strdup (_tmp12_); -#line 758 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp13_; -#line 758 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_string_free0 (b); -#line 758 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (t); -#line 758 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 6927 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_google_session_real_get_user_name (PublishingRESTSupportGoogleSession* self) -{ -#line 762 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_session_get_user_name'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 762 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 6938 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_google_session_get_user_name (PublishingRESTSupportGoogleSession* self) -{ -#line 762 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (self), NULL); -#line 762 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_GET_CLASS (self)->get_user_name (self); -#line 6949 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_google_session_real_get_access_token (PublishingRESTSupportGoogleSession* self) -{ -#line 763 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_session_get_access_token'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 763 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 6960 "RESTSupport.c" -} - - -gchar* -publishing_rest_support_google_session_get_access_token (PublishingRESTSupportGoogleSession* self) -{ -#line 763 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (self), NULL); -#line 763 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_GET_CLASS (self)->get_access_token (self); -#line 6971 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_session_real_deauthenticate (PublishingRESTSupportGoogleSession* self) -{ -#line 764 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_session_deauthenticate'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 764 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 6982 "RESTSupport.c" -} - - -void -publishing_rest_support_google_session_deauthenticate (PublishingRESTSupportGoogleSession* self) -{ -#line 764 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (self)); -#line 764 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_GET_CLASS (self)->deauthenticate (self); -#line 6993 "RESTSupport.c" -} - - -PublishingRESTSupportGoogleSession* -publishing_rest_support_google_session_construct (GType object_type) -{ - PublishingRESTSupportGoogleSession* self = NULL; -#line 761 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportGoogleSession*) publishing_rest_support_session_construct (object_type, NULL); -#line 761 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 7005 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_session_class_init (PublishingRESTSupportGoogleSessionClass * klass) -{ -#line 761 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_google_session_parent_class = g_type_class_peek_parent (klass); -#line 761 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGoogleSessionClass *) klass)->get_user_name = (gchar* (*) (PublishingRESTSupportGoogleSession *)) publishing_rest_support_google_session_real_get_user_name; -#line 761 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGoogleSessionClass *) klass)->get_access_token = (gchar* (*) (PublishingRESTSupportGoogleSession *)) publishing_rest_support_google_session_real_get_access_token; -#line 761 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGoogleSessionClass *) klass)->deauthenticate = (void (*) (PublishingRESTSupportGoogleSession *)) publishing_rest_support_google_session_real_deauthenticate; -#line 7020 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_session_instance_init (PublishingRESTSupportGoogleSession * self) -{ -} - - -GType -publishing_rest_support_google_session_get_type (void) -{ - static volatile gsize publishing_rest_support_google_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_google_session_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportGoogleSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_google_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportGoogleSession), 0, (GInstanceInitFunc) publishing_rest_support_google_session_instance_init, NULL }; - GType publishing_rest_support_google_session_type_id; - publishing_rest_support_google_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingRESTSupportGoogleSession", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&publishing_rest_support_google_session_type_id__volatile, publishing_rest_support_google_session_type_id); - } - return publishing_rest_support_google_session_type_id__volatile; -} - - -static void -_publishing_rest_support_google_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, - gpointer self) -{ -#line 831 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_google_publisher_on_authenticator_authenticated ((PublishingRESTSupportGooglePublisher*) self); -#line 7050 "RESTSupport.c" -} - - -PublishingRESTSupportGooglePublisher* -publishing_rest_support_google_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host, - const gchar* scope) -{ - PublishingRESTSupportGooglePublisher * self = NULL; - gchar* _tmp0_; - PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp1_; - SpitPublishingAuthenticator* _tmp2_; - SpitPublishingAuthenticator* _tmp3_; -#line 824 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 824 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 824 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (scope != NULL, NULL); -#line 824 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportGooglePublisher*) g_object_new (object_type, NULL); -#line 826 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = g_strdup (scope); -#line 826 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->priv->scope); -#line 826 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->scope = _tmp0_; -#line 827 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = publishing_rest_support_google_publisher_google_session_impl_new (); -#line 827 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 827 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->session = _tmp1_; -#line 828 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->service = service; -#line 829 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->host = host; -#line 830 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = publishing_rest_support_google_publisher_get_authenticator (self); -#line 830 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->priv->authenticator); -#line 830 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv->authenticator = _tmp2_; -#line 831 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = self->priv->authenticator; -#line 831 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_signal_connect_object (_tmp3_, "authenticated", (GCallback) _publishing_rest_support_google_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated, self, 0); -#line 824 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 7101 "RESTSupport.c" -} - - -static SpitPublishingAuthenticator* -publishing_rest_support_google_publisher_real_get_authenticator (PublishingRESTSupportGooglePublisher* self) -{ -#line 834 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_publisher_get_authenticator'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 834 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return NULL; -#line 7112 "RESTSupport.c" -} - - -SpitPublishingAuthenticator* -publishing_rest_support_google_publisher_get_authenticator (PublishingRESTSupportGooglePublisher* self) -{ -#line 834 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self), NULL); -#line 834 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS (self)->get_authenticator (self); -#line 7123 "RESTSupport.c" -} - - -SpitPublishingPluginHost* -publishing_rest_support_google_publisher_get_host (PublishingRESTSupportGooglePublisher* self) -{ - SpitPublishingPluginHost* result = NULL; - SpitPublishingPluginHost* _tmp0_; -#line 836 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self), NULL); -#line 837 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->host; -#line 837 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp0_; -#line 837 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 7140 "RESTSupport.c" -} - - -PublishingRESTSupportGoogleSession* -publishing_rest_support_google_publisher_get_session (PublishingRESTSupportGooglePublisher* self) -{ - PublishingRESTSupportGoogleSession* result = NULL; - PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp0_; - PublishingRESTSupportGoogleSession* _tmp1_; -#line 840 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self), NULL); -#line 841 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->session; -#line 841 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _publishing_rest_support_session_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSession)); -#line 841 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 841 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 7160 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* self) -{ -#line 844 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_publisher_on_login_flow_complete'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 844 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 7171 "RESTSupport.c" -} - - -void -publishing_rest_support_google_publisher_on_login_flow_complete (PublishingRESTSupportGooglePublisher* self) -{ -#line 844 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self)); -#line 844 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS (self)->on_login_flow_complete (self); -#line 7182 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* self) -{ -#line 846 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_publisher_do_logout'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 846 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 7193 "RESTSupport.c" -} - - -void -publishing_rest_support_google_publisher_do_logout (PublishingRESTSupportGooglePublisher* self) -{ -#line 846 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self)); -#line 846 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS (self)->do_logout (self); -#line 7204 "RESTSupport.c" -} - - -static gboolean -publishing_rest_support_google_publisher_real_is_running (PublishingRESTSupportGooglePublisher* self) -{ - gboolean _tmp0_ = FALSE; -#line 848 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_publisher_is_running'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 848 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return _tmp0_; -#line 7216 "RESTSupport.c" -} - - -gboolean -publishing_rest_support_google_publisher_is_running (PublishingRESTSupportGooglePublisher* self) -{ -#line 848 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self), FALSE); -#line 848 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS (self)->is_running (self); -#line 7227 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_real_start (PublishingRESTSupportGooglePublisher* self) -{ -#line 850 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_publisher_start'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 850 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 7238 "RESTSupport.c" -} - - -void -publishing_rest_support_google_publisher_start (PublishingRESTSupportGooglePublisher* self) -{ -#line 850 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self)); -#line 850 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS (self)->start (self); -#line 7249 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_real_stop (PublishingRESTSupportGooglePublisher* self) -{ -#line 852 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_rest_support_google_publisher_stop'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 852 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return; -#line 7260 "RESTSupport.c" -} - - -void -publishing_rest_support_google_publisher_stop (PublishingRESTSupportGooglePublisher* self) -{ -#line 852 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self)); -#line 852 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS (self)->stop (self); -#line 7271 "RESTSupport.c" -} - - -static SpitPublishingService* -publishing_rest_support_google_publisher_real_get_service (SpitPublishingPublisher* base) -{ - PublishingRESTSupportGooglePublisher * self; - SpitPublishingService* result = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingService* _tmp1_; -#line 854 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher); -#line 855 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->service; -#line 855 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 855 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 855 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 7292 "RESTSupport.c" -} - - -static gpointer -_g_variant_ref0 (gpointer self) -{ -#line 864 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self ? g_variant_ref (self) : NULL; -#line 7301 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_on_authenticator_authenticated (PublishingRESTSupportGooglePublisher* self) -{ - GHashTable* params = NULL; - SpitPublishingAuthenticator* _tmp0_; - GHashTable* _tmp1_; - GVariant* refresh_token = NULL; - GVariant* access_token = NULL; - GVariant* user_name = NULL; - gconstpointer _tmp2_ = NULL; - GVariant* _tmp3_; - gconstpointer _tmp4_ = NULL; - GVariant* _tmp5_; - gconstpointer _tmp6_ = NULL; - GVariant* _tmp7_; - PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp8_; - GVariant* _tmp9_; - const gchar* _tmp10_; - gchar* _tmp11_; - PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp12_; - GVariant* _tmp13_; - const gchar* _tmp14_; - gchar* _tmp15_; - PublishingRESTSupportGooglePublisherGoogleSessionImpl* _tmp16_; - GVariant* _tmp17_; - const gchar* _tmp18_; - gchar* _tmp19_; -#line 858 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER (self)); -#line 859 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->priv->authenticator; -#line 859 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = spit_publishing_authenticator_get_authentication_parameter (_tmp0_); -#line 859 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - params = _tmp1_; -#line 860 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - refresh_token = NULL; -#line 861 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - access_token = NULL; -#line 862 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - user_name = NULL; -#line 864 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_hash_table_lookup_extended (params, "RefreshToken", NULL, &_tmp2_); -#line 864 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_variant_unref0 (refresh_token); -#line 864 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = _g_variant_ref0 (_tmp2_); -#line 864 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - refresh_token = _tmp3_; -#line 865 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_hash_table_lookup_extended (params, "AccessToken", NULL, &_tmp4_); -#line 865 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_variant_unref0 (access_token); -#line 865 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp5_ = _g_variant_ref0 (_tmp4_); -#line 865 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - access_token = _tmp5_; -#line 866 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_hash_table_lookup_extended (params, "UserName", NULL, &_tmp6_); -#line 866 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_variant_unref0 (user_name); -#line 866 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp7_ = _g_variant_ref0 (_tmp6_); -#line 866 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - user_name = _tmp7_; -#line 868 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_ = self->priv->session; -#line 868 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp9_ = refresh_token; -#line 868 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp10_ = g_variant_get_string (_tmp9_, NULL); -#line 868 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp11_ = g_strdup (_tmp10_); -#line 868 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp8_->refresh_token); -#line 868 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp8_->refresh_token = _tmp11_; -#line 869 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_ = self->priv->session; -#line 869 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp13_ = access_token; -#line 869 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp14_ = g_variant_get_string (_tmp13_, NULL); -#line 869 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp15_ = g_strdup (_tmp14_); -#line 869 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp12_->access_token); -#line 869 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp12_->access_token = _tmp15_; -#line 870 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_ = self->priv->session; -#line 870 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp17_ = user_name; -#line 870 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp18_ = g_variant_get_string (_tmp17_, NULL); -#line 870 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp19_ = g_strdup (_tmp18_); -#line 870 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp16_->user_name); -#line 870 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp16_->user_name = _tmp19_; -#line 872 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_google_publisher_on_login_flow_complete (self); -#line 858 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_variant_unref0 (user_name); -#line 858 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_variant_unref0 (access_token); -#line 858 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_variant_unref0 (refresh_token); -#line 858 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_hash_table_unref0 (params); -#line 7416 "RESTSupport.c" -} - - -static PublishingRESTSupportGooglePublisherGoogleSessionImpl* -publishing_rest_support_google_publisher_google_session_impl_construct (GType object_type) -{ - PublishingRESTSupportGooglePublisherGoogleSessionImpl* self = NULL; -#line 776 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportGooglePublisherGoogleSessionImpl*) publishing_rest_support_google_session_construct (object_type); -#line 777 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->access_token); -#line 777 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->access_token = NULL; -#line 778 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->user_name); -#line 778 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->user_name = NULL; -#line 779 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->refresh_token); -#line 779 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->refresh_token = NULL; -#line 776 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 7440 "RESTSupport.c" -} - - -static PublishingRESTSupportGooglePublisherGoogleSessionImpl* -publishing_rest_support_google_publisher_google_session_impl_new (void) -{ -#line 776 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_google_publisher_google_session_impl_construct (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL); -#line 7449 "RESTSupport.c" -} - - -static gboolean -publishing_rest_support_google_publisher_google_session_impl_real_is_authenticated (PublishingRESTSupportSession* base) -{ - PublishingRESTSupportGooglePublisherGoogleSessionImpl * self; - gboolean result = FALSE; - const gchar* _tmp0_; -#line 782 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl); -#line 783 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->access_token; -#line 783 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp0_ != NULL; -#line 783 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 7467 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_google_publisher_google_session_impl_real_get_user_name (PublishingRESTSupportGoogleSession* base) -{ - PublishingRESTSupportGooglePublisherGoogleSessionImpl * self; - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 786 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl); -#line 787 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->user_name; -#line 787 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (_tmp0_ != NULL, "user_name != null"); -#line 788 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = self->user_name; -#line 788 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 788 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp2_; -#line 788 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 7493 "RESTSupport.c" -} - - -static gchar* -publishing_rest_support_google_publisher_google_session_impl_real_get_access_token (PublishingRESTSupportGoogleSession* base) -{ - PublishingRESTSupportGooglePublisherGoogleSessionImpl * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 791 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl); -#line 792 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)), "is_authenticated()"); -#line 793 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = self->access_token; -#line 793 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 793 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - result = _tmp1_; -#line 793 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return result; -#line 7516 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_google_session_impl_real_deauthenticate (PublishingRESTSupportGoogleSession* base) -{ - PublishingRESTSupportGooglePublisherGoogleSessionImpl * self; -#line 796 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl); -#line 797 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->access_token); -#line 797 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->access_token = NULL; -#line 798 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->user_name); -#line 798 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->user_name = NULL; -#line 799 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->refresh_token); -#line 799 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->refresh_token = NULL; -#line 7538 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_google_session_impl_class_init (PublishingRESTSupportGooglePublisherGoogleSessionImplClass * klass) -{ -#line 771 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_google_publisher_google_session_impl_parent_class = g_type_class_peek_parent (klass); -#line 771 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_rest_support_google_publisher_google_session_impl_finalize; -#line 771 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = (gboolean (*) (PublishingRESTSupportSession *)) publishing_rest_support_google_publisher_google_session_impl_real_is_authenticated; -#line 771 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGoogleSessionClass *) klass)->get_user_name = (gchar* (*) (PublishingRESTSupportGoogleSession *)) publishing_rest_support_google_publisher_google_session_impl_real_get_user_name; -#line 771 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGoogleSessionClass *) klass)->get_access_token = (gchar* (*) (PublishingRESTSupportGoogleSession *)) publishing_rest_support_google_publisher_google_session_impl_real_get_access_token; -#line 771 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGoogleSessionClass *) klass)->deauthenticate = (void (*) (PublishingRESTSupportGoogleSession *)) publishing_rest_support_google_publisher_google_session_impl_real_deauthenticate; -#line 7557 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_google_session_impl_instance_init (PublishingRESTSupportGooglePublisherGoogleSessionImpl * self) -{ -} - - -static void -publishing_rest_support_google_publisher_google_session_impl_finalize (PublishingRESTSupportSession * obj) -{ - PublishingRESTSupportGooglePublisherGoogleSessionImpl * self; -#line 771 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_GOOGLE_SESSION_IMPL, PublishingRESTSupportGooglePublisherGoogleSessionImpl); -#line 772 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->access_token); -#line 773 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->user_name); -#line 774 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->refresh_token); -#line 771 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_rest_support_google_publisher_google_session_impl_parent_class)->finalize (obj); -#line 7581 "RESTSupport.c" -} - - -static GType -publishing_rest_support_google_publisher_google_session_impl_get_type (void) -{ - static volatile gsize publishing_rest_support_google_publisher_google_session_impl_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_google_publisher_google_session_impl_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportGooglePublisherGoogleSessionImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_google_publisher_google_session_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportGooglePublisherGoogleSessionImpl), 0, (GInstanceInitFunc) publishing_rest_support_google_publisher_google_session_impl_instance_init, NULL }; - GType publishing_rest_support_google_publisher_google_session_impl_type_id; - publishing_rest_support_google_publisher_google_session_impl_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, "PublishingRESTSupportGooglePublisherGoogleSessionImpl", &g_define_type_info, 0); - g_once_init_leave (&publishing_rest_support_google_publisher_google_session_impl_type_id__volatile, publishing_rest_support_google_publisher_google_session_impl_type_id); - } - return publishing_rest_support_google_publisher_google_session_impl_type_id__volatile; -} - - -static PublishingRESTSupportGooglePublisherAuthenticatedTransaction* -publishing_rest_support_google_publisher_authenticated_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method) -{ - PublishingRESTSupportGooglePublisherAuthenticatedTransaction* self = NULL; -#line 804 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL); -#line 804 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (endpoint_url != NULL, NULL); -#line 806 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportGooglePublisherAuthenticatedTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), endpoint_url, method); -#line 804 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 7614 "RESTSupport.c" -} - - -static PublishingRESTSupportGooglePublisherAuthenticatedTransaction* -publishing_rest_support_google_publisher_authenticated_transaction_new_with_endpoint_url (PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method) -{ -#line 804 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_google_publisher_authenticated_transaction_construct_with_endpoint_url (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, session, endpoint_url, method); -#line 7625 "RESTSupport.c" -} - - -PublishingRESTSupportGooglePublisherAuthenticatedTransaction* -publishing_rest_support_google_publisher_authenticated_transaction_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method) -{ - PublishingRESTSupportGooglePublisherAuthenticatedTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 809 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL); -#line 809 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_return_val_if_fail (endpoint_url != NULL, NULL); -#line 811 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = (PublishingRESTSupportGooglePublisherAuthenticatedTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), endpoint_url, method); -#line 812 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _vala_assert (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)), "session.is_authenticated()"); -#line 814 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp0_ = publishing_rest_support_google_session_get_access_token (session); -#line 814 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp1_ = _tmp0_; -#line 814 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp2_ = g_strconcat ("Bearer ", _tmp1_, NULL); -#line 814 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _tmp3_ = _tmp2_; -#line 814 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Authorization", _tmp3_); -#line 814 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp3_); -#line 814 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (_tmp1_); -#line 809 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return self; -#line 7664 "RESTSupport.c" -} - - -PublishingRESTSupportGooglePublisherAuthenticatedTransaction* -publishing_rest_support_google_publisher_authenticated_transaction_new (PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method) -{ -#line 809 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - return publishing_rest_support_google_publisher_authenticated_transaction_construct (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, session, endpoint_url, method); -#line 7675 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_authenticated_transaction_class_init (PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass * klass) -{ -#line 803 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_google_publisher_authenticated_transaction_parent_class = g_type_class_peek_parent (klass); -#line 7684 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_authenticated_transaction_instance_init (PublishingRESTSupportGooglePublisherAuthenticatedTransaction * self) -{ -} - - -GType -publishing_rest_support_google_publisher_authenticated_transaction_get_type (void) -{ - static volatile gsize publishing_rest_support_google_publisher_authenticated_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_google_publisher_authenticated_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_google_publisher_authenticated_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportGooglePublisherAuthenticatedTransaction), 0, (GInstanceInitFunc) publishing_rest_support_google_publisher_authenticated_transaction_instance_init, NULL }; - GType publishing_rest_support_google_publisher_authenticated_transaction_type_id; - publishing_rest_support_google_publisher_authenticated_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingRESTSupportGooglePublisherAuthenticatedTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rest_support_google_publisher_authenticated_transaction_type_id__volatile, publishing_rest_support_google_publisher_authenticated_transaction_type_id); - } - return publishing_rest_support_google_publisher_authenticated_transaction_type_id__volatile; -} - - -static void -publishing_rest_support_google_publisher_class_init (PublishingRESTSupportGooglePublisherClass * klass) -{ -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_google_publisher_parent_class = g_type_class_peek_parent (klass); -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - g_type_class_add_private (klass, sizeof (PublishingRESTSupportGooglePublisherPrivate)); -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->get_authenticator = (SpitPublishingAuthenticator* (*) (PublishingRESTSupportGooglePublisher *)) publishing_rest_support_google_publisher_real_get_authenticator; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->on_login_flow_complete = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_rest_support_google_publisher_real_on_login_flow_complete; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->do_logout = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_rest_support_google_publisher_real_do_logout; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->is_running = (gboolean (*) (PublishingRESTSupportGooglePublisher *)) publishing_rest_support_google_publisher_real_is_running; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->start = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_rest_support_google_publisher_real_start; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->stop = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_rest_support_google_publisher_real_stop; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_rest_support_google_publisher_finalize; -#line 7729 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) -{ -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - publishing_rest_support_google_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface); -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - iface->is_running = (gboolean (*) (SpitPublishingPublisher *)) publishing_rest_support_google_publisher_is_running; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - iface->start = (void (*) (SpitPublishingPublisher *)) publishing_rest_support_google_publisher_start; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - iface->stop = (void (*) (SpitPublishingPublisher *)) publishing_rest_support_google_publisher_stop; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - iface->get_service = (SpitPublishingService* (*) (SpitPublishingPublisher *)) publishing_rest_support_google_publisher_real_get_service; -#line 7746 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_instance_init (PublishingRESTSupportGooglePublisher * self) -{ -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self->priv = PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_PRIVATE (self); -#line 7755 "RESTSupport.c" -} - - -static void -publishing_rest_support_google_publisher_finalize (GObject * obj) -{ - PublishingRESTSupportGooglePublisher * self; -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher); -#line 818 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_free0 (self->priv->scope); -#line 819 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 822 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - _g_object_unref0 (self->priv->authenticator); -#line 767 "/home/jens/Source/shotwell/plugins/common/RESTSupport.vala" - G_OBJECT_CLASS (publishing_rest_support_google_publisher_parent_class)->finalize (obj); -#line 7773 "RESTSupport.c" -} - - -GType -publishing_rest_support_google_publisher_get_type (void) -{ - static volatile gsize publishing_rest_support_google_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rest_support_google_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRESTSupportGooglePublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rest_support_google_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRESTSupportGooglePublisher), 0, (GInstanceInitFunc) publishing_rest_support_google_publisher_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_rest_support_google_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_rest_support_google_publisher_type_id; - publishing_rest_support_google_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingRESTSupportGooglePublisher", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_type_add_interface_static (publishing_rest_support_google_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info); - g_once_init_leave (&publishing_rest_support_google_publisher_type_id__volatile, publishing_rest_support_google_publisher_type_id); - } - return publishing_rest_support_google_publisher_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/common/RESTSupport.vala b/plugins/common/RESTSupport.vala index d92c264..482fd2c 100644 --- a/plugins/common/RESTSupport.vala +++ b/plugins/common/RESTSupport.vala @@ -190,6 +190,9 @@ public class Transaction { private void on_wrote_body_data(Soup.Buffer written_data) { bytes_written += (int) written_data.length; + while (Gtk.events_pending()) { + Gtk.main_iteration(); + } chunk_transmitted(bytes_written, (int) message.request_body.length); } diff --git a/plugins/common/Resources.c b/plugins/common/Resources.c deleted file mode 100644 index 828d6df..0000000 --- a/plugins/common/Resources.c +++ /dev/null @@ -1,444 +0,0 @@ -/* Resources.c generated by valac 0.40.4, the Vala compiler - * generated from Resources.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - - - -#define RESOURCES_WEBSITE_NAME _ ("Visit the Shotwell home page") -#define RESOURCES_WEBSITE_URL "https://wiki.gnome.org/Apps/Shotwell" -#define RESOURCES_LICENSE "\n" \ -"Shotwell is free software; you can redistribute it and/or modify it un" \ -"der the \n" \ -"terms of the GNU Lesser General Public License as published by the Fre" \ -"e \n" \ -"Software Foundation; either version 2.1 of the License, or (at your op" \ -"tion) \n" \ -"any later version.\n" \ -"\n" \ -"Shotwell is distributed in the hope that it will be useful, but WITHOU" \ -"T \n" \ -"ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or " \ -"FITNESS\n" \ -"FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License f" \ -"or \n" \ -"more details.\n" \ -"\n" \ -"You should have received a copy of the GNU Lesser General Public Licen" \ -"se \n" \ -"along with Shotwell; if not, write to the Free Software Foundation, In" \ -"c., \n" \ -"51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n" -#define RESOURCES_TRANSLATORS _ ("translator-credits") -GdkPixbuf** resources_load_icon_set (GFile* icon_file, - int* result_length1); -static void _vala_array_add4 (GdkPixbuf** * array, - int* length, - int* size, - GdkPixbuf* value); -GdkPixbuf** resources_load_from_resource (const gchar* resource_path, - int* result_length1); -static void _vala_array_add5 (GdkPixbuf** * array, - int* length, - int* size, - GdkPixbuf* value); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - return self ? g_object_ref (self) : NULL; -#line 55 "Resources.c" -} - - -static void -_vala_array_add4 (GdkPixbuf** * array, - int* length, - int* size, - GdkPixbuf* value) -{ -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if ((*length) == (*size)) { -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - *array = g_renew (GdkPixbuf*, *array, (*size) + 1); -#line 71 "Resources.c" - } -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - (*array)[(*length)++] = value; -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - (*array)[*length] = NULL; -#line 77 "Resources.c" -} - - -GdkPixbuf** -resources_load_icon_set (GFile* icon_file, - int* result_length1) -{ - GdkPixbuf** result = NULL; - GdkPixbuf* icon = NULL; - GdkPixbuf* _tmp8_; - GdkPixbuf** _tmp14_; - gint _tmp14__length1; - GError * _inner_error_ = NULL; -#line 40 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - g_return_val_if_fail ((icon_file == NULL) || G_IS_FILE (icon_file), NULL); -#line 41 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - icon = NULL; -#line 95 "Resources.c" - { - GdkPixbuf* _tmp0_ = NULL; - gchar* _tmp1_; - gchar* _tmp2_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp1_ = g_file_get_path (icon_file); -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp2_ = _tmp1_; -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp3_ = gdk_pixbuf_new_from_file (_tmp2_, &_inner_error_); -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp4_ = _tmp3_; -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_free0 (_tmp2_); -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp0_ = _tmp4_; -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 117 "Resources.c" - goto __catch4_g_error; - } -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp5_ = _tmp0_; -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp0_ = NULL; -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (icon); -#line 43 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - icon = _tmp5_; -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (_tmp0_); -#line 130 "Resources.c" - } - goto __finally4; - __catch4_g_error: - { - GError* err = NULL; - gchar* _tmp6_; - gchar* _tmp7_; -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - err = _inner_error_; -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _inner_error_ = NULL; -#line 45 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp6_ = g_file_get_path (icon_file); -#line 45 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp7_ = _tmp6_; -#line 45 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - g_warning ("Resources.vala:45: couldn't load icon set from %s.", _tmp7_); -#line 45 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_free0 (_tmp7_); -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_error_free0 (err); -#line 152 "Resources.c" - } - __finally4: -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (icon); -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - g_clear_error (&_inner_error_); -#line 42 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - return NULL; -#line 165 "Resources.c" - } -#line 48 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp8_ = icon; -#line 48 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (_tmp8_ != NULL) { -#line 171 "Resources.c" - GdkPixbuf** icon_pixbuf_set = NULL; - GdkPixbuf** _tmp9_; - gint icon_pixbuf_set_length1; - gint _icon_pixbuf_set_size_; - GdkPixbuf** _tmp10_; - gint _tmp10__length1; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp12_; - GdkPixbuf** _tmp13_; - gint _tmp13__length1; -#line 49 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp9_ = g_new0 (GdkPixbuf*, 0 + 1); -#line 49 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - icon_pixbuf_set = _tmp9_; -#line 49 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - icon_pixbuf_set_length1 = 0; -#line 49 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _icon_pixbuf_set_size_ = icon_pixbuf_set_length1; -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp10_ = icon_pixbuf_set; -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp10__length1 = icon_pixbuf_set_length1; -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp11_ = icon; -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp12_ = _g_object_ref0 (_tmp11_); -#line 50 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _vala_array_add4 (&icon_pixbuf_set, &icon_pixbuf_set_length1, &_icon_pixbuf_set_size_, _tmp12_); -#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp13_ = icon_pixbuf_set; -#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp13__length1 = icon_pixbuf_set_length1; -#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (result_length1) { -#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - *result_length1 = _tmp13__length1; -#line 208 "Resources.c" - } -#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - result = _tmp13_; -#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (icon); -#line 51 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - return result; -#line 216 "Resources.c" - } -#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp14_ = NULL; -#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp14__length1 = 0; -#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (result_length1) { -#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - *result_length1 = _tmp14__length1; -#line 226 "Resources.c" - } -#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - result = _tmp14_; -#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (icon); -#line 54 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - return result; -#line 234 "Resources.c" -} - - -static void -_vala_array_add5 (GdkPixbuf** * array, - int* length, - int* size, - GdkPixbuf* value) -{ -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if ((*length) == (*size)) { -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - *array = g_renew (GdkPixbuf*, *array, (*size) + 1); -#line 250 "Resources.c" - } -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - (*array)[(*length)++] = value; -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - (*array)[*length] = NULL; -#line 256 "Resources.c" -} - - -GdkPixbuf** -resources_load_from_resource (const gchar* resource_path, - int* result_length1) -{ - GdkPixbuf** result = NULL; - GdkPixbuf* icon = NULL; - GdkPixbuf* _tmp3_; - GdkPixbuf** _tmp9_; - gint _tmp9__length1; - GError * _inner_error_ = NULL; -#line 57 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - g_return_val_if_fail (resource_path != NULL, NULL); -#line 58 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - icon = NULL; -#line 274 "Resources.c" - { - GdkPixbuf* _tmp0_ = NULL; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; -#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp1_ = gdk_pixbuf_new_from_resource (resource_path, &_inner_error_); -#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp0_ = _tmp1_; -#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 285 "Resources.c" - goto __catch5_g_error; - } -#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp2_ = _tmp0_; -#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp0_ = NULL; -#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (icon); -#line 60 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - icon = _tmp2_; -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (_tmp0_); -#line 298 "Resources.c" - } - goto __finally5; - __catch5_g_error: - { - GError* _error_ = NULL; -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _error_ = _inner_error_; -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _inner_error_ = NULL; -#line 62 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - g_warning ("Resources.vala:62: Couldn't load icon set from %s", resource_path); -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_error_free0 (_error_); -#line 312 "Resources.c" - } - __finally5: -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (icon); -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - g_clear_error (&_inner_error_); -#line 59 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - return NULL; -#line 325 "Resources.c" - } -#line 65 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp3_ = icon; -#line 65 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (_tmp3_ != NULL) { -#line 331 "Resources.c" - GdkPixbuf** icon_pixbuf_set = NULL; - GdkPixbuf** _tmp4_; - gint icon_pixbuf_set_length1; - gint _icon_pixbuf_set_size_; - GdkPixbuf** _tmp5_; - gint _tmp5__length1; - GdkPixbuf* _tmp6_; - GdkPixbuf* _tmp7_; - GdkPixbuf** _tmp8_; - gint _tmp8__length1; -#line 66 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp4_ = g_new0 (GdkPixbuf*, 0 + 1); -#line 66 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - icon_pixbuf_set = _tmp4_; -#line 66 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - icon_pixbuf_set_length1 = 0; -#line 66 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _icon_pixbuf_set_size_ = icon_pixbuf_set_length1; -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp5_ = icon_pixbuf_set; -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp5__length1 = icon_pixbuf_set_length1; -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp6_ = icon; -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp7_ = _g_object_ref0 (_tmp6_); -#line 67 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _vala_array_add5 (&icon_pixbuf_set, &icon_pixbuf_set_length1, &_icon_pixbuf_set_size_, _tmp7_); -#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp8_ = icon_pixbuf_set; -#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp8__length1 = icon_pixbuf_set_length1; -#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (result_length1) { -#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - *result_length1 = _tmp8__length1; -#line 368 "Resources.c" - } -#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - result = _tmp8_; -#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (icon); -#line 68 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - return result; -#line 376 "Resources.c" - } -#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp9_ = NULL; -#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _tmp9__length1 = 0; -#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - if (result_length1) { -#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - *result_length1 = _tmp9__length1; -#line 386 "Resources.c" - } -#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - result = _tmp9_; -#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - _g_object_unref0 (icon); -#line 71 "/home/jens/Source/shotwell/plugins/common/Resources.vala" - return result; -#line 394 "Resources.c" -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/common/WebAuthenticationPane.c b/plugins/common/WebAuthenticationPane.c deleted file mode 100644 index dd556c2..0000000 --- a/plugins/common/WebAuthenticationPane.c +++ /dev/null @@ -1,637 +0,0 @@ -/* WebAuthenticationPane.c generated by valac 0.40.4, the Vala compiler - * generated from WebAuthenticationPane.vala, do not modify */ - -/* Copyright 2016 Jens Georg - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include -#include - - -#define SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE (shotwell_plugins_common_web_authentication_pane_get_type ()) -#define SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane)) -#define SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPaneClass)) -#define SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE)) -#define SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE)) -#define SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPaneClass)) - -typedef struct _ShotwellPluginsCommonWebAuthenticationPane ShotwellPluginsCommonWebAuthenticationPane; -typedef struct _ShotwellPluginsCommonWebAuthenticationPaneClass ShotwellPluginsCommonWebAuthenticationPaneClass; -typedef struct _ShotwellPluginsCommonWebAuthenticationPanePrivate ShotwellPluginsCommonWebAuthenticationPanePrivate; -enum { - SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_0_PROPERTY, - SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_PREFERRED_GEOMETRY_PROPERTY, - SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_LOGIN_URI_PROPERTY, - SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_NUM_PROPERTIES -}; -static GParamSpec* shotwell_plugins_common_web_authentication_pane_properties[SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -struct _ShotwellPluginsCommonWebAuthenticationPane { - GObject parent_instance; - ShotwellPluginsCommonWebAuthenticationPanePrivate * priv; -}; - -struct _ShotwellPluginsCommonWebAuthenticationPaneClass { - GObjectClass parent_class; - void (*on_page_load) (ShotwellPluginsCommonWebAuthenticationPane* self); -}; - -struct _ShotwellPluginsCommonWebAuthenticationPanePrivate { - SpitPublishingDialogPaneGeometryOptions _preferred_geometry; - gchar* _login_uri; - WebKitWebView* webview; -}; - - -static gpointer shotwell_plugins_common_web_authentication_pane_parent_class = NULL; -static SpitPublishingDialogPaneIface * shotwell_plugins_common_web_authentication_pane_spit_publishing_dialog_pane_parent_iface = NULL; - -GType shotwell_plugins_common_web_authentication_pane_get_type (void) G_GNUC_CONST; -#define SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPanePrivate)) -static void shotwell_plugins_common_web_authentication_pane_real_constructed (GObject* base); -static void shotwell_plugins_common_web_authentication_pane_on_page_load_changed (ShotwellPluginsCommonWebAuthenticationPane* self, - WebKitLoadEvent load_event); -static void _shotwell_plugins_common_web_authentication_pane_on_page_load_changed_webkit_web_view_load_changed (WebKitWebView* _sender, - WebKitLoadEvent load_event, - gpointer self); -static gboolean __lambda4_ (ShotwellPluginsCommonWebAuthenticationPane* self); -static gboolean ___lambda4__webkit_web_view_context_menu (WebKitWebView* _sender, - WebKitContextMenu* context_menu, - GdkEvent* event, - WebKitHitTestResult* hit_test_result, - gpointer self); -void shotwell_plugins_common_web_authentication_pane_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* self); -static void shotwell_plugins_common_web_authentication_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* self); -void shotwell_plugins_common_web_authentication_pane_set_cursor (ShotwellPluginsCommonWebAuthenticationPane* self, - GdkCursorType type); -WebKitWebView* shotwell_plugins_common_web_authentication_pane_get_view (ShotwellPluginsCommonWebAuthenticationPane* self); -static SpitPublishingDialogPaneGeometryOptions shotwell_plugins_common_web_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -SpitPublishingDialogPaneGeometryOptions shotwell_plugins_common_web_authentication_pane_get_preferred_geometry (ShotwellPluginsCommonWebAuthenticationPane* self); -static GtkWidget* shotwell_plugins_common_web_authentication_pane_real_get_widget (SpitPublishingDialogPane* base); -static void shotwell_plugins_common_web_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -gchar* shotwell_plugins_common_web_authentication_pane_get_login_uri (ShotwellPluginsCommonWebAuthenticationPane* self); -static void shotwell_plugins_common_web_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -ShotwellPluginsCommonWebAuthenticationPane* shotwell_plugins_common_web_authentication_pane_construct (GType object_type); -static void shotwell_plugins_common_web_authentication_pane_set_preferred_geometry (ShotwellPluginsCommonWebAuthenticationPane* self, - SpitPublishingDialogPaneGeometryOptions value); -static void shotwell_plugins_common_web_authentication_pane_set_login_uri (ShotwellPluginsCommonWebAuthenticationPane* self, - const gchar* value); -static void shotwell_plugins_common_web_authentication_pane_finalize (GObject * obj); -static void _vala_shotwell_plugins_common_web_authentication_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_shotwell_plugins_common_web_authentication_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); - - -static void -_shotwell_plugins_common_web_authentication_pane_on_page_load_changed_webkit_web_view_load_changed (WebKitWebView* _sender, - WebKitLoadEvent load_event, - gpointer self) -{ -#line 24 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - shotwell_plugins_common_web_authentication_pane_on_page_load_changed ((ShotwellPluginsCommonWebAuthenticationPane*) self, load_event); -#line 110 "WebAuthenticationPane.c" -} - - -static gboolean -__lambda4_ (ShotwellPluginsCommonWebAuthenticationPane* self) -{ - gboolean result = FALSE; -#line 25 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - result = FALSE; -#line 25 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return result; -#line 122 "WebAuthenticationPane.c" -} - - -static gboolean -___lambda4__webkit_web_view_context_menu (WebKitWebView* _sender, - WebKitContextMenu* context_menu, - GdkEvent* event, - WebKitHitTestResult* hit_test_result, - gpointer self) -{ - gboolean result; - result = __lambda4_ ((ShotwellPluginsCommonWebAuthenticationPane*) self); -#line 25 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return result; -#line 137 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_real_constructed (GObject* base) -{ - ShotwellPluginsCommonWebAuthenticationPane * self; - WebKitWebView* _tmp0_; - WebKitWebView* _tmp1_; - WebKitSettings* _tmp2_; - WebKitWebView* _tmp3_; - WebKitWebView* _tmp4_; -#line 18 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane); -#line 19 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - G_OBJECT_CLASS (shotwell_plugins_common_web_authentication_pane_parent_class)->constructed (G_TYPE_CHECK_INSTANCE_CAST (self, G_TYPE_OBJECT, GObject)); -#line 21 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = (WebKitWebView*) webkit_web_view_new (); -#line 21 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_object_ref_sink (_tmp0_); -#line 21 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_object_unref0 (self->priv->webview); -#line 21 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self->priv->webview = _tmp0_; -#line 22 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp1_ = self->priv->webview; -#line 22 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp2_ = webkit_web_view_get_settings (_tmp1_); -#line 22 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - webkit_settings_set_enable_plugins (_tmp2_, FALSE); -#line 24 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp3_ = self->priv->webview; -#line 24 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_signal_connect_object (_tmp3_, "load-changed", (GCallback) _shotwell_plugins_common_web_authentication_pane_on_page_load_changed_webkit_web_view_load_changed, self, 0); -#line 25 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp4_ = self->priv->webview; -#line 25 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_signal_connect_object (_tmp4_, "context-menu", (GCallback) ___lambda4__webkit_web_view_context_menu, self, 0); -#line 176 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_critical ("Type `%s' does not implement abstract method `shotwell_plugins_common_web_authentication_pane_on_page_load'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 28 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return; -#line 187 "WebAuthenticationPane.c" -} - - -void -shotwell_plugins_common_web_authentication_pane_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE (self)); -#line 28 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_GET_CLASS (self)->on_page_load (self); -#line 198 "WebAuthenticationPane.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 31 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return self ? g_object_ref (self) : NULL; -#line 207 "WebAuthenticationPane.c" -} - - -void -shotwell_plugins_common_web_authentication_pane_set_cursor (ShotwellPluginsCommonWebAuthenticationPane* self, - GdkCursorType type) -{ - GdkWindow* window = NULL; - WebKitWebView* _tmp0_; - GdkWindow* _tmp1_; - GdkWindow* _tmp2_; - GdkDisplay* display = NULL; - GdkDisplay* _tmp3_; - GdkDisplay* _tmp4_; - GdkCursor* cursor = NULL; - GdkCursor* _tmp5_; -#line 30 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE (self)); -#line 31 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = self->priv->webview; -#line 31 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 31 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 31 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - window = _tmp2_; -#line 32 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp3_ = gdk_window_get_display (window); -#line 32 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp4_ = _g_object_ref0 (_tmp3_); -#line 32 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - display = _tmp4_; -#line 33 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp5_ = gdk_cursor_new_for_display (display, type); -#line 33 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - cursor = _tmp5_; -#line 34 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - gdk_window_set_cursor (window, cursor); -#line 30 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_object_unref0 (cursor); -#line 30 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_object_unref0 (display); -#line 30 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_object_unref0 (window); -#line 252 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_on_page_load_changed (ShotwellPluginsCommonWebAuthenticationPane* self, - WebKitLoadEvent load_event) -{ -#line 37 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE (self)); -#line 38 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - switch (load_event) { -#line 38 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - case WEBKIT_LOAD_STARTED: -#line 38 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - case WEBKIT_LOAD_REDIRECTED: -#line 268 "WebAuthenticationPane.c" - { -#line 41 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - shotwell_plugins_common_web_authentication_pane_set_cursor (self, GDK_WATCH); -#line 42 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 274 "WebAuthenticationPane.c" - } -#line 38 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - case WEBKIT_LOAD_FINISHED: -#line 278 "WebAuthenticationPane.c" - { -#line 44 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - shotwell_plugins_common_web_authentication_pane_set_cursor (self, GDK_LEFT_PTR); -#line 45 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - shotwell_plugins_common_web_authentication_pane_on_page_load (self); -#line 46 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 286 "WebAuthenticationPane.c" - } - default: - { -#line 48 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 292 "WebAuthenticationPane.c" - } - } -} - - -WebKitWebView* -shotwell_plugins_common_web_authentication_pane_get_view (ShotwellPluginsCommonWebAuthenticationPane* self) -{ - WebKitWebView* result = NULL; - WebKitWebView* _tmp0_; - WebKitWebView* _tmp1_; -#line 52 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE (self), NULL); -#line 53 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = self->priv->webview; -#line 53 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 53 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - result = _tmp1_; -#line 53 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return result; -#line 314 "WebAuthenticationPane.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -shotwell_plugins_common_web_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - ShotwellPluginsCommonWebAuthenticationPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; - SpitPublishingDialogPaneGeometryOptions _tmp0_; -#line 56 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane); -#line 57 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = self->priv->_preferred_geometry; -#line 57 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - result = _tmp0_; -#line 57 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return result; -#line 332 "WebAuthenticationPane.c" -} - - -static GtkWidget* -shotwell_plugins_common_web_authentication_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - ShotwellPluginsCommonWebAuthenticationPane * self; - GtkWidget* result = NULL; - WebKitWebView* _tmp0_; - GtkWidget* _tmp1_; -#line 60 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane); -#line 61 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = self->priv->webview; -#line 61 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 61 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - result = _tmp1_; -#line 61 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return result; -#line 353 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - ShotwellPluginsCommonWebAuthenticationPane * self; - WebKitWebView* _tmp0_; - WebKitWebView* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 64 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane); -#line 65 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = shotwell_plugins_common_web_authentication_pane_get_view (self); -#line 65 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp1_ = _tmp0_; -#line 65 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp2_ = shotwell_plugins_common_web_authentication_pane_get_login_uri (self); -#line 65 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp3_ = _tmp2_; -#line 65 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp4_ = _tmp3_; -#line 65 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - webkit_web_view_load_uri (_tmp1_, _tmp4_); -#line 65 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_free0 (_tmp4_); -#line 65 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_object_unref0 (_tmp1_); -#line 384 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - ShotwellPluginsCommonWebAuthenticationPane * self; -#line 68 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane); -#line 394 "WebAuthenticationPane.c" -} - - -ShotwellPluginsCommonWebAuthenticationPane* -shotwell_plugins_common_web_authentication_pane_construct (GType object_type) -{ - ShotwellPluginsCommonWebAuthenticationPane * self = NULL; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self = (ShotwellPluginsCommonWebAuthenticationPane*) g_object_new (object_type, NULL); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return self; -#line 406 "WebAuthenticationPane.c" -} - - -SpitPublishingDialogPaneGeometryOptions -shotwell_plugins_common_web_authentication_pane_get_preferred_geometry (ShotwellPluginsCommonWebAuthenticationPane* self) -{ - SpitPublishingDialogPaneGeometryOptions result; - SpitPublishingDialogPaneGeometryOptions _tmp0_; -#line 11 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE (self), 0); -#line 11 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = self->priv->_preferred_geometry; -#line 11 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - result = _tmp0_; -#line 11 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return result; -#line 423 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_set_preferred_geometry (ShotwellPluginsCommonWebAuthenticationPane* self, - SpitPublishingDialogPaneGeometryOptions value) -{ -#line 11 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE (self)); -#line 11 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - if (shotwell_plugins_common_web_authentication_pane_get_preferred_geometry (self) != value) { -#line 11 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self->priv->_preferred_geometry = value; -#line 11 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_object_notify_by_pspec ((GObject *) self, shotwell_plugins_common_web_authentication_pane_properties[SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_PREFERRED_GEOMETRY_PROPERTY]); -#line 439 "WebAuthenticationPane.c" - } -} - - -gchar* -shotwell_plugins_common_web_authentication_pane_get_login_uri (ShotwellPluginsCommonWebAuthenticationPane* self) -{ - gchar* result; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_return_val_if_fail (SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE (self), NULL); -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = self->priv->_login_uri; -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - result = _tmp1_; -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - return result; -#line 460 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_set_login_uri (ShotwellPluginsCommonWebAuthenticationPane* self, - const gchar* value) -{ -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_return_if_fail (SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE (self)); -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - if (g_strcmp0 (value, shotwell_plugins_common_web_authentication_pane_get_login_uri (self)) != 0) { -#line 472 "WebAuthenticationPane.c" - gchar* _tmp0_; -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _tmp0_ = g_strdup (value); -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_free0 (self->priv->_login_uri); -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self->priv->_login_uri = _tmp0_; -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_object_notify_by_pspec ((GObject *) self, shotwell_plugins_common_web_authentication_pane_properties[SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_LOGIN_URI_PROPERTY]); -#line 482 "WebAuthenticationPane.c" - } -} - - -static void -shotwell_plugins_common_web_authentication_pane_class_init (ShotwellPluginsCommonWebAuthenticationPaneClass * klass) -{ -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - shotwell_plugins_common_web_authentication_pane_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_type_class_add_private (klass, sizeof (ShotwellPluginsCommonWebAuthenticationPanePrivate)); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) shotwell_plugins_common_web_authentication_pane_real_constructed; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - ((ShotwellPluginsCommonWebAuthenticationPaneClass *) klass)->on_page_load = (void (*) (ShotwellPluginsCommonWebAuthenticationPane *)) shotwell_plugins_common_web_authentication_pane_real_on_page_load; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_shotwell_plugins_common_web_authentication_pane_get_property; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_shotwell_plugins_common_web_authentication_pane_set_property; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - G_OBJECT_CLASS (klass)->finalize = shotwell_plugins_common_web_authentication_pane_finalize; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_PREFERRED_GEOMETRY_PROPERTY, shotwell_plugins_common_web_authentication_pane_properties[SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_PREFERRED_GEOMETRY_PROPERTY] = g_param_spec_enum ("preferred-geometry", "preferred-geometry", "preferred-geometry", SPIT_PUBLISHING_DIALOG_PANE_TYPE_GEOMETRY_OPTIONS, SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_LOGIN_URI_PROPERTY, shotwell_plugins_common_web_authentication_pane_properties[SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_LOGIN_URI_PROPERTY] = g_param_spec_string ("login-uri", "login-uri", "login-uri", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 508 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - shotwell_plugins_common_web_authentication_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) shotwell_plugins_common_web_authentication_pane_real_get_preferred_geometry; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) shotwell_plugins_common_web_authentication_pane_real_get_widget; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) shotwell_plugins_common_web_authentication_pane_real_on_pane_installed; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) shotwell_plugins_common_web_authentication_pane_real_on_pane_uninstalled; -#line 525 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_instance_init (ShotwellPluginsCommonWebAuthenticationPane * self) -{ -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self->priv = SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_GET_PRIVATE (self); -#line 10 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self->priv->_preferred_geometry = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 536 "WebAuthenticationPane.c" -} - - -static void -shotwell_plugins_common_web_authentication_pane_finalize (GObject * obj) -{ - ShotwellPluginsCommonWebAuthenticationPane * self; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane); -#line 14 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_free0 (self->priv->_login_uri); -#line 16 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - _g_object_unref0 (self->priv->webview); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - G_OBJECT_CLASS (shotwell_plugins_common_web_authentication_pane_parent_class)->finalize (obj); -#line 552 "WebAuthenticationPane.c" -} - - -GType -shotwell_plugins_common_web_authentication_pane_get_type (void) -{ - static volatile gsize shotwell_plugins_common_web_authentication_pane_type_id__volatile = 0; - if (g_once_init_enter (&shotwell_plugins_common_web_authentication_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ShotwellPluginsCommonWebAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_plugins_common_web_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellPluginsCommonWebAuthenticationPane), 0, (GInstanceInitFunc) shotwell_plugins_common_web_authentication_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) shotwell_plugins_common_web_authentication_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType shotwell_plugins_common_web_authentication_pane_type_id; - shotwell_plugins_common_web_authentication_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellPluginsCommonWebAuthenticationPane", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_type_add_interface_static (shotwell_plugins_common_web_authentication_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&shotwell_plugins_common_web_authentication_pane_type_id__volatile, shotwell_plugins_common_web_authentication_pane_type_id); - } - return shotwell_plugins_common_web_authentication_pane_type_id__volatile; -} - - -static void -_vala_shotwell_plugins_common_web_authentication_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - ShotwellPluginsCommonWebAuthenticationPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - switch (property_id) { -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - case SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_PREFERRED_GEOMETRY_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_value_set_enum (value, shotwell_plugins_common_web_authentication_pane_get_preferred_geometry (self)); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - case SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_LOGIN_URI_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - g_value_take_string (value, shotwell_plugins_common_web_authentication_pane_get_login_uri (self)); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 594 "WebAuthenticationPane.c" - default: -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 600 "WebAuthenticationPane.c" - } -} - - -static void -_vala_shotwell_plugins_common_web_authentication_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - ShotwellPluginsCommonWebAuthenticationPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - switch (property_id) { -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - case SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_PREFERRED_GEOMETRY_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - shotwell_plugins_common_web_authentication_pane_set_preferred_geometry (self, g_value_get_enum (value)); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - case SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_LOGIN_URI_PROPERTY: -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - shotwell_plugins_common_web_authentication_pane_set_login_uri (self, g_value_get_string (value)); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 627 "WebAuthenticationPane.c" - default: -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 9 "/home/jens/Source/shotwell/plugins/common/WebAuthenticationPane.vala" - break; -#line 633 "WebAuthenticationPane.c" - } -} - - - diff --git a/plugins/meson.build b/plugins/meson.build index 66096c7..9abc0c8 100644 --- a/plugins/meson.build +++ b/plugins/meson.build @@ -18,7 +18,7 @@ sw_plugin_common_dep = declare_dependency(include_directories : include_director subdir('authenticator') subdir('shotwell-publishing') -if get_option('enable-extra-plugins') +if get_option('extra-plugins') subdir('shotwell-publishing-extras') endif subdir('shotwell-transitions') diff --git a/plugins/shotwell-plugin-common.h b/plugins/shotwell-plugin-common.h deleted file mode 100644 index f1561a0..0000000 --- a/plugins/shotwell-plugin-common.h +++ /dev/null @@ -1,670 +0,0 @@ -/* shotwell-plugin-common.h generated by valac 0.40.4, the Vala compiler, do not modify */ - - -#ifndef __PLUGINS_SHOTWELL_PLUGIN_COMMON_H__ -#define __PLUGINS_SHOTWELL_PLUGIN_COMMON_H__ - -#include -#include -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include -#include -#include -#include - -G_BEGIN_DECLS - - -#define PUBLISHING_REST_SUPPORT_TYPE_SESSION (publishing_rest_support_session_get_type ()) -#define PUBLISHING_REST_SUPPORT_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)) -#define PUBLISHING_REST_SUPPORT_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionClass)) -#define PUBLISHING_REST_SUPPORT_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSessionClass)) - -typedef struct _PublishingRESTSupportSession PublishingRESTSupportSession; -typedef struct _PublishingRESTSupportSessionClass PublishingRESTSupportSessionClass; -typedef struct _PublishingRESTSupportSessionPrivate PublishingRESTSupportSessionPrivate; - -#define PUBLISHING_REST_SUPPORT_TYPE_HTTP_METHOD (publishing_rest_support_http_method_get_type ()) - -#define PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT (publishing_rest_support_argument_get_type ()) -#define PUBLISHING_REST_SUPPORT_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgument)) -#define PUBLISHING_REST_SUPPORT_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgumentClass)) -#define PUBLISHING_REST_SUPPORT_IS_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)) -#define PUBLISHING_REST_SUPPORT_IS_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT)) -#define PUBLISHING_REST_SUPPORT_ARGUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_ARGUMENT, PublishingRESTSupportArgumentClass)) - -typedef struct _PublishingRESTSupportArgument PublishingRESTSupportArgument; -typedef struct _PublishingRESTSupportArgumentClass PublishingRESTSupportArgumentClass; -typedef struct _PublishingRESTSupportArgumentPrivate PublishingRESTSupportArgumentPrivate; - -#define PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION (publishing_rest_support_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)) -#define PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionClass)) -#define PUBLISHING_REST_SUPPORT_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransactionClass)) - -typedef struct _PublishingRESTSupportTransaction PublishingRESTSupportTransaction; -typedef struct _PublishingRESTSupportTransactionClass PublishingRESTSupportTransactionClass; -typedef struct _PublishingRESTSupportTransactionPrivate PublishingRESTSupportTransactionPrivate; - -#define PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION (publishing_rest_support_upload_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransactionClass)) -#define PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransactionClass)) - -typedef struct _PublishingRESTSupportUploadTransaction PublishingRESTSupportUploadTransaction; -typedef struct _PublishingRESTSupportUploadTransactionClass PublishingRESTSupportUploadTransactionClass; -typedef struct _PublishingRESTSupportUploadTransactionPrivate PublishingRESTSupportUploadTransactionPrivate; - -#define PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT (publishing_rest_support_xml_document_get_type ()) -#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocument)) -#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocumentClass)) -#define PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT)) -#define PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT)) -#define PUBLISHING_REST_SUPPORT_XML_DOCUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_XML_DOCUMENT, PublishingRESTSupportXmlDocumentClass)) - -typedef struct _PublishingRESTSupportXmlDocument PublishingRESTSupportXmlDocument; -typedef struct _PublishingRESTSupportXmlDocumentClass PublishingRESTSupportXmlDocumentClass; -typedef struct _PublishingRESTSupportXmlDocumentPrivate PublishingRESTSupportXmlDocumentPrivate; - -#define PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER (publishing_rest_support_batch_uploader_get_type ()) -#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)) -#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploaderClass)) -#define PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER)) -#define PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER)) -#define PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploaderClass)) - -typedef struct _PublishingRESTSupportBatchUploader PublishingRESTSupportBatchUploader; -typedef struct _PublishingRESTSupportBatchUploaderClass PublishingRESTSupportBatchUploaderClass; -typedef struct _PublishingRESTSupportBatchUploaderPrivate PublishingRESTSupportBatchUploaderPrivate; - -#define PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION (publishing_rest_support_google_session_get_type ()) -#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSession)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSessionClass)) -#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION)) -#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSessionClass)) - -typedef struct _PublishingRESTSupportGoogleSession PublishingRESTSupportGoogleSession; -typedef struct _PublishingRESTSupportGoogleSessionClass PublishingRESTSupportGoogleSessionClass; -typedef struct _PublishingRESTSupportGoogleSessionPrivate PublishingRESTSupportGoogleSessionPrivate; - -#define PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER (publishing_rest_support_google_publisher_get_type ()) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisherClass)) -#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER)) -#define PUBLISHING_REST_SUPPORT_IS_GOOGLE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisherClass)) - -typedef struct _PublishingRESTSupportGooglePublisher PublishingRESTSupportGooglePublisher; -typedef struct _PublishingRESTSupportGooglePublisherClass PublishingRESTSupportGooglePublisherClass; -typedef struct _PublishingRESTSupportGooglePublisherPrivate PublishingRESTSupportGooglePublisherPrivate; - -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION (publishing_rest_support_google_publisher_authenticated_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransaction)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_AUTHENTICATED_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_IS_AUTHENTICATED_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_AUTHENTICATED_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass)) - -typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransaction PublishingRESTSupportGooglePublisherAuthenticatedTransaction; -typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass; -typedef struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate; - -#define PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION (publishing_rest_support_oauth1_session_get_type ()) -#define PUBLISHING_REST_SUPPORT_OAUTH1_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1Session)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1SessionClass)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1SessionClass)) - -typedef struct _PublishingRESTSupportOAuth1Session PublishingRESTSupportOAuth1Session; -typedef struct _PublishingRESTSupportOAuth1SessionClass PublishingRESTSupportOAuth1SessionClass; -typedef struct _PublishingRESTSupportOAuth1SessionPrivate PublishingRESTSupportOAuth1SessionPrivate; - -#define PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION (publishing_rest_support_oauth1_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_OAUTH1_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, PublishingRESTSupportOAuth1Transaction)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, PublishingRESTSupportOAuth1TransactionClass)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, PublishingRESTSupportOAuth1TransactionClass)) - -typedef struct _PublishingRESTSupportOAuth1Transaction PublishingRESTSupportOAuth1Transaction; -typedef struct _PublishingRESTSupportOAuth1TransactionClass PublishingRESTSupportOAuth1TransactionClass; -typedef struct _PublishingRESTSupportOAuth1TransactionPrivate PublishingRESTSupportOAuth1TransactionPrivate; - -#define PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION (publishing_rest_support_oauth1_upload_transaction_get_type ()) -#define PUBLISHING_REST_SUPPORT_OAUTH1_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransactionClass)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_REST_SUPPORT_OAUTH1_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransactionClass)) - -typedef struct _PublishingRESTSupportOAuth1UploadTransaction PublishingRESTSupportOAuth1UploadTransaction; -typedef struct _PublishingRESTSupportOAuth1UploadTransactionClass PublishingRESTSupportOAuth1UploadTransactionClass; -typedef struct _PublishingRESTSupportOAuth1UploadTransactionPrivate PublishingRESTSupportOAuth1UploadTransactionPrivate; - -#define SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE (shotwell_plugins_common_web_authentication_pane_get_type ()) -#define SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane)) -#define SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPaneClass)) -#define SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE)) -#define SHOTWELL_PLUGINS_COMMON_IS_WEB_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE)) -#define SHOTWELL_PLUGINS_COMMON_WEB_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPaneClass)) - -typedef struct _ShotwellPluginsCommonWebAuthenticationPane ShotwellPluginsCommonWebAuthenticationPane; -typedef struct _ShotwellPluginsCommonWebAuthenticationPaneClass ShotwellPluginsCommonWebAuthenticationPaneClass; -typedef struct _ShotwellPluginsCommonWebAuthenticationPanePrivate ShotwellPluginsCommonWebAuthenticationPanePrivate; - -#define SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE (shotwell_plugins_common_builder_pane_get_type ()) -#define SHOTWELL_PLUGINS_COMMON_BUILDER_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)) -#define SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPaneClass)) -#define SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE)) -#define SHOTWELL_PLUGINS_COMMON_IS_BUILDER_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE)) -#define SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPaneClass)) - -typedef struct _ShotwellPluginsCommonBuilderPane ShotwellPluginsCommonBuilderPane; -typedef struct _ShotwellPluginsCommonBuilderPaneClass ShotwellPluginsCommonBuilderPaneClass; -typedef struct _ShotwellPluginsCommonBuilderPanePrivate ShotwellPluginsCommonBuilderPanePrivate; - -struct _PublishingRESTSupportSession { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportSessionPrivate * priv; -}; - -struct _PublishingRESTSupportSessionClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportSession *self); - gboolean (*is_authenticated) (PublishingRESTSupportSession* self); -}; - -typedef enum { - PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, - PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST, - PUBLISHING_REST_SUPPORT_HTTP_METHOD_PUT -} PublishingRESTSupportHttpMethod; - -struct _PublishingRESTSupportArgument { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportArgumentPrivate * priv; - gchar* key; - gchar* value; -}; - -struct _PublishingRESTSupportArgumentClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportArgument *self); -}; - -struct _PublishingRESTSupportTransaction { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportTransactionPrivate * priv; -}; - -struct _PublishingRESTSupportTransactionClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportTransaction *self); - void (*add_header) (PublishingRESTSupportTransaction* self, const gchar* key, const gchar* value); - void (*execute) (PublishingRESTSupportTransaction* self, GError** error); -}; - -struct _PublishingRESTSupportUploadTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingRESTSupportUploadTransactionPrivate * priv; - GHashTable* binary_disposition_table; - SpitPublishingPublishable* publishable; - gchar* mime_type; - GeeHashMap* message_headers; -}; - -struct _PublishingRESTSupportUploadTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingRESTSupportXmlDocument { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportXmlDocumentPrivate * priv; -}; - -struct _PublishingRESTSupportXmlDocumentClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportXmlDocument *self); -}; - -typedef gchar* (*PublishingRESTSupportXmlDocumentCheckForErrorResponse) (PublishingRESTSupportXmlDocument* doc, void* user_data); -struct _PublishingRESTSupportBatchUploader { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRESTSupportBatchUploaderPrivate * priv; -}; - -struct _PublishingRESTSupportBatchUploaderClass { - GTypeClass parent_class; - void (*finalize) (PublishingRESTSupportBatchUploader *self); - PublishingRESTSupportTransaction* (*create_transaction) (PublishingRESTSupportBatchUploader* self, SpitPublishingPublishable* publishable); -}; - -struct _PublishingRESTSupportGoogleSession { - PublishingRESTSupportSession parent_instance; - PublishingRESTSupportGoogleSessionPrivate * priv; -}; - -struct _PublishingRESTSupportGoogleSessionClass { - PublishingRESTSupportSessionClass parent_class; - gchar* (*get_user_name) (PublishingRESTSupportGoogleSession* self); - gchar* (*get_access_token) (PublishingRESTSupportGoogleSession* self); - void (*deauthenticate) (PublishingRESTSupportGoogleSession* self); -}; - -struct _PublishingRESTSupportGooglePublisher { - GObject parent_instance; - PublishingRESTSupportGooglePublisherPrivate * priv; -}; - -struct _PublishingRESTSupportGooglePublisherClass { - GObjectClass parent_class; - SpitPublishingAuthenticator* (*get_authenticator) (PublishingRESTSupportGooglePublisher* self); - void (*on_login_flow_complete) (PublishingRESTSupportGooglePublisher* self); - void (*do_logout) (PublishingRESTSupportGooglePublisher* self); - gboolean (*is_running) (PublishingRESTSupportGooglePublisher* self); - void (*start) (PublishingRESTSupportGooglePublisher* self); - void (*stop) (PublishingRESTSupportGooglePublisher* self); -}; - -struct _PublishingRESTSupportGooglePublisherAuthenticatedTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingRESTSupportGooglePublisherAuthenticatedTransactionPrivate * priv; -}; - -struct _PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingRESTSupportOAuth1Session { - PublishingRESTSupportSession parent_instance; - PublishingRESTSupportOAuth1SessionPrivate * priv; -}; - -struct _PublishingRESTSupportOAuth1SessionClass { - PublishingRESTSupportSessionClass parent_class; -}; - -struct _PublishingRESTSupportOAuth1Transaction { - PublishingRESTSupportTransaction parent_instance; - PublishingRESTSupportOAuth1TransactionPrivate * priv; -}; - -struct _PublishingRESTSupportOAuth1TransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingRESTSupportOAuth1UploadTransaction { - PublishingRESTSupportUploadTransaction parent_instance; - PublishingRESTSupportOAuth1UploadTransactionPrivate * priv; - PublishingRESTSupportOAuth1Session* session; -}; - -struct _PublishingRESTSupportOAuth1UploadTransactionClass { - PublishingRESTSupportUploadTransactionClass parent_class; -}; - -struct _ShotwellPluginsCommonWebAuthenticationPane { - GObject parent_instance; - ShotwellPluginsCommonWebAuthenticationPanePrivate * priv; -}; - -struct _ShotwellPluginsCommonWebAuthenticationPaneClass { - GObjectClass parent_class; - void (*on_page_load) (ShotwellPluginsCommonWebAuthenticationPane* self); -}; - -struct _ShotwellPluginsCommonBuilderPane { - GObject parent_instance; - ShotwellPluginsCommonBuilderPanePrivate * priv; -}; - -struct _ShotwellPluginsCommonBuilderPaneClass { - GObjectClass parent_class; - GtkWidget* (*get_default_widget) (ShotwellPluginsCommonBuilderPane* self); - void (*on_pane_installed) (ShotwellPluginsCommonBuilderPane* self); - void (*on_pane_uninstalled) (ShotwellPluginsCommonBuilderPane* self); -}; - - -gchar* publishing_rest_support_hmac_sha1 (const gchar* key, - const gchar* message); -gpointer publishing_rest_support_session_ref (gpointer instance); -void publishing_rest_support_session_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_session (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_session (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_session (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_session (const GValue* value); -GType publishing_rest_support_session_get_type (void) G_GNUC_CONST; -PublishingRESTSupportSession* publishing_rest_support_session_construct (GType object_type, - const gchar* endpoint_url); -void publishing_rest_support_session_notify_wire_message_unqueued (PublishingRESTSupportSession* self, - SoupMessage* message); -void publishing_rest_support_session_notify_authenticated (PublishingRESTSupportSession* self); -void publishing_rest_support_session_notify_authentication_failed (PublishingRESTSupportSession* self, - GError* err); -gboolean publishing_rest_support_session_is_authenticated (PublishingRESTSupportSession* self); -gchar* publishing_rest_support_session_get_endpoint_url (PublishingRESTSupportSession* self); -void publishing_rest_support_session_stop_transactions (PublishingRESTSupportSession* self); -gboolean publishing_rest_support_session_are_transactions_stopped (PublishingRESTSupportSession* self); -void publishing_rest_support_session_send_wire_message (PublishingRESTSupportSession* self, - SoupMessage* message); -void publishing_rest_support_session_set_insecure (PublishingRESTSupportSession* self); -GType publishing_rest_support_http_method_get_type (void) G_GNUC_CONST; -gchar* publishing_rest_support_http_method_to_string (PublishingRESTSupportHttpMethod self); -PublishingRESTSupportHttpMethod publishing_rest_support_http_method_from_string (const gchar* str); -gpointer publishing_rest_support_argument_ref (gpointer instance); -void publishing_rest_support_argument_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_argument (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_argument (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_argument (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_argument (const GValue* value); -GType publishing_rest_support_argument_get_type (void) G_GNUC_CONST; -PublishingRESTSupportArgument* publishing_rest_support_argument_new (const gchar* key, - const gchar* value); -PublishingRESTSupportArgument* publishing_rest_support_argument_construct (GType object_type, - const gchar* key, - const gchar* value); -gchar* publishing_rest_support_argument_serialize_list (PublishingRESTSupportArgument** args, - int args_length1, - gboolean escape, - const gchar* separator); -gint publishing_rest_support_argument_compare (PublishingRESTSupportArgument* arg1, - PublishingRESTSupportArgument* arg2); -PublishingRESTSupportArgument** publishing_rest_support_argument_sort (PublishingRESTSupportArgument** inputArray, - int inputArray_length1, - int* result_length1); -gchar* publishing_rest_support_argument_to_string (PublishingRESTSupportArgument* self, - gboolean escape); -gpointer publishing_rest_support_transaction_ref (gpointer instance); -void publishing_rest_support_transaction_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_transaction (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_transaction (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_transaction (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_transaction (const GValue* value); -GType publishing_rest_support_transaction_get_type (void) G_GNUC_CONST; -PublishingRESTSupportTransaction* publishing_rest_support_transaction_new (PublishingRESTSupportSession* parent_session, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct (GType object_type, - PublishingRESTSupportSession* parent_session, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_new_with_endpoint_url (PublishingRESTSupportSession* parent_session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportTransaction* publishing_rest_support_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportSession* parent_session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -gchar* publishing_rest_support_transaction_detailed_error_from_tls_flags (PublishingRESTSupportTransaction* self, - GTlsCertificate* * cert); -void publishing_rest_support_transaction_check_response (PublishingRESTSupportTransaction* self, - SoupMessage* message, - GError** error); -PublishingRESTSupportArgument** publishing_rest_support_transaction_get_arguments (PublishingRESTSupportTransaction* self, - int* result_length1); -PublishingRESTSupportArgument** publishing_rest_support_transaction_get_sorted_arguments (PublishingRESTSupportTransaction* self, - int* result_length1); -void publishing_rest_support_transaction_set_is_executed (PublishingRESTSupportTransaction* self, - gboolean is_executed); -void publishing_rest_support_transaction_send (PublishingRESTSupportTransaction* self, - GError** error); -PublishingRESTSupportHttpMethod publishing_rest_support_transaction_get_method (PublishingRESTSupportTransaction* self); -void publishing_rest_support_transaction_add_header (PublishingRESTSupportTransaction* self, - const gchar* key, - const gchar* value); -void publishing_rest_support_transaction_set_custom_payload (PublishingRESTSupportTransaction* self, - const gchar* custom_payload, - const gchar* payload_content_type, - gulong payload_length); -void publishing_rest_support_transaction_set_message (PublishingRESTSupportTransaction* self, - SoupMessage* message); -gboolean publishing_rest_support_transaction_get_is_executed (PublishingRESTSupportTransaction* self); -guint publishing_rest_support_transaction_get_status_code (PublishingRESTSupportTransaction* self); -void publishing_rest_support_transaction_execute (PublishingRESTSupportTransaction* self, - GError** error); -gchar* publishing_rest_support_transaction_get_response (PublishingRESTSupportTransaction* self); -SoupMessageHeaders* publishing_rest_support_transaction_get_response_headers (PublishingRESTSupportTransaction* self); -SoupMessage* publishing_rest_support_transaction_get_message (PublishingRESTSupportTransaction* self); -void publishing_rest_support_transaction_add_argument (PublishingRESTSupportTransaction* self, - const gchar* name, - const gchar* value); -gchar* publishing_rest_support_transaction_get_endpoint_url (PublishingRESTSupportTransaction* self); -PublishingRESTSupportSession* publishing_rest_support_transaction_get_parent_session (PublishingRESTSupportTransaction* self); -GType publishing_rest_support_upload_transaction_get_type (void) G_GNUC_CONST; -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_new (PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable); -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_construct (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable); -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_new_with_endpoint_url (PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_url); -PublishingRESTSupportUploadTransaction* publishing_rest_support_upload_transaction_construct_with_endpoint_url (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_url); -void publishing_rest_support_upload_transaction_set_binary_disposition_table (PublishingRESTSupportUploadTransaction* self, - GHashTable* new_disp_table); -gpointer publishing_rest_support_xml_document_ref (gpointer instance); -void publishing_rest_support_xml_document_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_xml_document (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_xml_document (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_xml_document (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_xml_document (const GValue* value); -GType publishing_rest_support_xml_document_get_type (void) G_GNUC_CONST; -xmlNode* publishing_rest_support_xml_document_get_root_node (PublishingRESTSupportXmlDocument* self); -xmlNode* publishing_rest_support_xml_document_get_named_child (PublishingRESTSupportXmlDocument* self, - xmlNode* parent, - const gchar* child_name, - GError** error); -gchar* publishing_rest_support_xml_document_get_property_value (PublishingRESTSupportXmlDocument* self, - xmlNode* node, - const gchar* property_key, - GError** error); -PublishingRESTSupportXmlDocument* publishing_rest_support_xml_document_parse_string (const gchar* input_string, - PublishingRESTSupportXmlDocumentCheckForErrorResponse check_for_error_response, - void* check_for_error_response_target, - GError** error); -gchar* publishing_rest_support_decimal_entity_encode (const gchar* source); -gpointer publishing_rest_support_batch_uploader_ref (gpointer instance); -void publishing_rest_support_batch_uploader_unref (gpointer instance); -GParamSpec* publishing_rest_support_param_spec_batch_uploader (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rest_support_value_set_batch_uploader (GValue* value, - gpointer v_object); -void publishing_rest_support_value_take_batch_uploader (GValue* value, - gpointer v_object); -gpointer publishing_rest_support_value_get_batch_uploader (const GValue* value); -GType publishing_rest_support_batch_uploader_get_type (void) G_GNUC_CONST; -PublishingRESTSupportBatchUploader* publishing_rest_support_batch_uploader_construct (GType object_type, - PublishingRESTSupportSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1); -PublishingRESTSupportSession* publishing_rest_support_batch_uploader_get_session (PublishingRESTSupportBatchUploader* self); -SpitPublishingPublishable* publishing_rest_support_batch_uploader_get_current_publishable (PublishingRESTSupportBatchUploader* self); -PublishingRESTSupportTransaction* publishing_rest_support_batch_uploader_create_transaction (PublishingRESTSupportBatchUploader* self, - SpitPublishingPublishable* publishable); -void publishing_rest_support_batch_uploader_upload (PublishingRESTSupportBatchUploader* self, - SpitPublishingProgressCallback status_updated, - void* status_updated_target); -gchar* publishing_rest_support_asciify_string (const gchar* s); -GType publishing_rest_support_google_session_get_type (void) G_GNUC_CONST; -gchar* publishing_rest_support_google_session_get_user_name (PublishingRESTSupportGoogleSession* self); -gchar* publishing_rest_support_google_session_get_access_token (PublishingRESTSupportGoogleSession* self); -void publishing_rest_support_google_session_deauthenticate (PublishingRESTSupportGoogleSession* self); -PublishingRESTSupportGoogleSession* publishing_rest_support_google_session_construct (GType object_type); -GType publishing_rest_support_google_publisher_get_type (void) G_GNUC_CONST; -PublishingRESTSupportGooglePublisher* publishing_rest_support_google_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host, - const gchar* scope); -SpitPublishingAuthenticator* publishing_rest_support_google_publisher_get_authenticator (PublishingRESTSupportGooglePublisher* self); -SpitPublishingPluginHost* publishing_rest_support_google_publisher_get_host (PublishingRESTSupportGooglePublisher* self); -PublishingRESTSupportGoogleSession* publishing_rest_support_google_publisher_get_session (PublishingRESTSupportGooglePublisher* self); -void publishing_rest_support_google_publisher_on_login_flow_complete (PublishingRESTSupportGooglePublisher* self); -void publishing_rest_support_google_publisher_do_logout (PublishingRESTSupportGooglePublisher* self); -gboolean publishing_rest_support_google_publisher_is_running (PublishingRESTSupportGooglePublisher* self); -void publishing_rest_support_google_publisher_start (PublishingRESTSupportGooglePublisher* self); -void publishing_rest_support_google_publisher_stop (PublishingRESTSupportGooglePublisher* self); -GType publishing_rest_support_google_publisher_authenticated_transaction_get_type (void) G_GNUC_CONST; -PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_new (PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportGooglePublisherAuthenticatedTransaction* publishing_rest_support_google_publisher_authenticated_transaction_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - const gchar* endpoint_url, - PublishingRESTSupportHttpMethod method); -GType publishing_rest_support_oauth1_session_get_type (void) G_GNUC_CONST; -PublishingRESTSupportOAuth1Session* publishing_rest_support_oauth1_session_new (const gchar* endpoint_uri); -PublishingRESTSupportOAuth1Session* publishing_rest_support_oauth1_session_construct (GType object_type, - const gchar* endpoint_uri); -void publishing_rest_support_oauth1_session_authenticate_from_persistent_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret, - const gchar* username); -void publishing_rest_support_oauth1_session_deauthenticate (PublishingRESTSupportOAuth1Session* self); -void publishing_rest_support_oauth1_session_set_api_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* consumer_key, - const gchar* consumer_secret); -gchar* publishing_rest_support_oauth1_session_sign_transaction (PublishingRESTSupportOAuth1Session* self, - PublishingRESTSupportTransaction* txn, - PublishingRESTSupportArgument** extra_arguments, - int extra_arguments_length1); -void publishing_rest_support_oauth1_session_set_request_phase_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret); -void publishing_rest_support_oauth1_session_set_access_phase_credentials (PublishingRESTSupportOAuth1Session* self, - const gchar* token, - const gchar* secret, - const gchar* username); -gchar* publishing_rest_support_oauth1_session_get_oauth_nonce (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_oauth_timestamp (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_consumer_key (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_request_phase_token (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_access_phase_token (PublishingRESTSupportOAuth1Session* self); -gboolean publishing_rest_support_oauth1_session_has_access_phase_token (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_access_phase_token_secret (PublishingRESTSupportOAuth1Session* self); -gchar* publishing_rest_support_oauth1_session_get_username (PublishingRESTSupportOAuth1Session* self); -GType publishing_rest_support_oauth1_transaction_get_type (void) G_GNUC_CONST; -PublishingRESTSupportOAuth1Transaction* publishing_rest_support_oauth1_transaction_new (PublishingRESTSupportOAuth1Session* session, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportOAuth1Transaction* publishing_rest_support_oauth1_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportOAuth1Transaction* publishing_rest_support_oauth1_transaction_new_with_uri (PublishingRESTSupportOAuth1Session* session, - const gchar* uri, - PublishingRESTSupportHttpMethod method); -PublishingRESTSupportOAuth1Transaction* publishing_rest_support_oauth1_transaction_construct_with_uri (GType object_type, - PublishingRESTSupportOAuth1Session* session, - const gchar* uri, - PublishingRESTSupportHttpMethod method); -GType publishing_rest_support_oauth1_upload_transaction_get_type (void) G_GNUC_CONST; -PublishingRESTSupportOAuth1UploadTransaction* publishing_rest_support_oauth1_upload_transaction_new (PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_uri); -PublishingRESTSupportOAuth1UploadTransaction* publishing_rest_support_oauth1_upload_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable* publishable, - const gchar* endpoint_uri); -void publishing_rest_support_oauth1_upload_transaction_add_authorization_header_field (PublishingRESTSupportOAuth1UploadTransaction* self, - const gchar* key, - const gchar* value); -gchar* publishing_rest_support_oauth1_upload_transaction_get_authorization_header_string (PublishingRESTSupportOAuth1UploadTransaction* self); -void publishing_rest_support_oauth1_upload_transaction_authorize (PublishingRESTSupportOAuth1UploadTransaction* self); -#define RESOURCES_WEBSITE_NAME _ ("Visit the Shotwell home page") -#define RESOURCES_WEBSITE_URL "https://wiki.gnome.org/Apps/Shotwell" -#define RESOURCES_LICENSE "\n" \ -"Shotwell is free software; you can redistribute it and/or modify it un" \ -"der the \n" \ -"terms of the GNU Lesser General Public License as published by the Fre" \ -"e \n" \ -"Software Foundation; either version 2.1 of the License, or (at your op" \ -"tion) \n" \ -"any later version.\n" \ -"\n" \ -"Shotwell is distributed in the hope that it will be useful, but WITHOU" \ -"T \n" \ -"ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or " \ -"FITNESS\n" \ -"FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License f" \ -"or \n" \ -"more details.\n" \ -"\n" \ -"You should have received a copy of the GNU Lesser General Public Licen" \ -"se \n" \ -"along with Shotwell; if not, write to the Free Software Foundation, In" \ -"c., \n" \ -"51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n" -#define RESOURCES_TRANSLATORS _ ("translator-credits") -GdkPixbuf** resources_load_icon_set (GFile* icon_file, - int* result_length1); -GdkPixbuf** resources_load_from_resource (const gchar* resource_path, - int* result_length1); -GType shotwell_plugins_common_web_authentication_pane_get_type (void) G_GNUC_CONST; -void shotwell_plugins_common_web_authentication_pane_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* self); -void shotwell_plugins_common_web_authentication_pane_set_cursor (ShotwellPluginsCommonWebAuthenticationPane* self, - GdkCursorType type); -WebKitWebView* shotwell_plugins_common_web_authentication_pane_get_view (ShotwellPluginsCommonWebAuthenticationPane* self); -ShotwellPluginsCommonWebAuthenticationPane* shotwell_plugins_common_web_authentication_pane_construct (GType object_type); -SpitPublishingDialogPaneGeometryOptions shotwell_plugins_common_web_authentication_pane_get_preferred_geometry (ShotwellPluginsCommonWebAuthenticationPane* self); -gchar* shotwell_plugins_common_web_authentication_pane_get_login_uri (ShotwellPluginsCommonWebAuthenticationPane* self); -GType shotwell_plugins_common_builder_pane_get_type (void) G_GNUC_CONST; -GtkBuilder* shotwell_plugins_common_builder_pane_get_builder (ShotwellPluginsCommonBuilderPane* self); -GtkWidget* shotwell_plugins_common_builder_pane_get_default_widget (ShotwellPluginsCommonBuilderPane* self); -void shotwell_plugins_common_builder_pane_on_pane_installed (ShotwellPluginsCommonBuilderPane* self); -void shotwell_plugins_common_builder_pane_on_pane_uninstalled (ShotwellPluginsCommonBuilderPane* self); -ShotwellPluginsCommonBuilderPane* shotwell_plugins_common_builder_pane_construct (GType object_type); -SpitPublishingDialogPaneGeometryOptions shotwell_plugins_common_builder_pane_get_preferred_geometry (ShotwellPluginsCommonBuilderPane* self); -gchar* shotwell_plugins_common_builder_pane_get_resource_path (ShotwellPluginsCommonBuilderPane* self); -gboolean shotwell_plugins_common_builder_pane_get_connect_signals (ShotwellPluginsCommonBuilderPane* self); -gchar* shotwell_plugins_common_builder_pane_get_default_id (ShotwellPluginsCommonBuilderPane* self); - - -G_END_DECLS - -#endif diff --git a/plugins/shotwell-plugin-common.vapi b/plugins/shotwell-plugin-common.vapi deleted file mode 100644 index b8e327f..0000000 --- a/plugins/shotwell-plugin-common.vapi +++ /dev/null @@ -1,205 +0,0 @@ -/* shotwell-plugin-common.vapi generated by valac 0.40.4, do not modify. */ - -namespace Publishing { - namespace RESTSupport { - namespace OAuth1 { - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public class Session : Publishing.RESTSupport.Session { - public Session (string? endpoint_uri = null); - public void authenticate_from_persistent_credentials (string token, string secret, string username); - public void deauthenticate (); - public string get_access_phase_token (); - public string get_access_phase_token_secret (); - public string get_consumer_key (); - public string get_oauth_nonce (); - public string get_oauth_timestamp (); - public string get_request_phase_token (); - public string get_username (); - public bool has_access_phase_token (); - public override bool is_authenticated (); - public void set_access_phase_credentials (string token, string secret, string username); - public void set_api_credentials (string consumer_key, string consumer_secret); - public void set_request_phase_credentials (string token, string secret); - public string sign_transaction (Publishing.RESTSupport.Transaction txn, Publishing.RESTSupport.Argument[]? extra_arguments = null); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public class Transaction : Publishing.RESTSupport.Transaction { - public Transaction (Publishing.RESTSupport.OAuth1.Session session, Publishing.RESTSupport.HttpMethod method = Publishing.RESTSupport.HttpMethod.POST); - public override void execute () throws Spit.Publishing.PublishingError; - public Transaction.with_uri (Publishing.RESTSupport.OAuth1.Session session, string uri, Publishing.RESTSupport.HttpMethod method = Publishing.RESTSupport.HttpMethod.POST); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public class UploadTransaction : Publishing.RESTSupport.UploadTransaction { - protected weak Publishing.RESTSupport.OAuth1.Session session; - public UploadTransaction (Publishing.RESTSupport.OAuth1.Session session, Spit.Publishing.Publishable publishable, string endpoint_uri); - public void add_authorization_header_field (string key, string value); - public void authorize (); - public string get_authorization_header_string (); - } - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public class Argument { - public string key; - public string value; - public Argument (string key, string value); - public static int compare (Publishing.RESTSupport.Argument arg1, Publishing.RESTSupport.Argument arg2); - public static string serialize_list (Publishing.RESTSupport.Argument[] args, bool escape = false, string? separator = "&"); - public static Publishing.RESTSupport.Argument[] sort (Publishing.RESTSupport.Argument[] inputArray); - public string to_string (bool escape = false); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public abstract class BatchUploader { - public BatchUploader (Publishing.RESTSupport.Session session, Spit.Publishing.Publishable[] publishables); - protected abstract Publishing.RESTSupport.Transaction create_transaction (Spit.Publishing.Publishable publishable); - protected Spit.Publishing.Publishable get_current_publishable (); - protected Publishing.RESTSupport.Session get_session (); - public void upload (Spit.Publishing.ProgressCallback? status_updated = null); - public signal void upload_complete (int num_photos_published); - public signal void upload_error (Spit.Publishing.PublishingError err); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public abstract class GooglePublisher : GLib.Object, Spit.Publishing.Publisher { - public class AuthenticatedTransaction : Publishing.RESTSupport.Transaction { - public AuthenticatedTransaction (Publishing.RESTSupport.GoogleSession session, string endpoint_url, Publishing.RESTSupport.HttpMethod method); - } - protected GooglePublisher (Spit.Publishing.Service service, Spit.Publishing.PluginHost host, string scope); - protected abstract void do_logout (); - protected abstract Spit.Publishing.Authenticator get_authenticator (); - protected unowned Spit.Publishing.PluginHost get_host (); - protected Publishing.RESTSupport.GoogleSession get_session (); - public abstract bool is_running (); - protected abstract void on_login_flow_complete (); - public abstract void start (); - public abstract void stop (); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public abstract class GoogleSession : Publishing.RESTSupport.Session { - public GoogleSession (); - public abstract void deauthenticate (); - public abstract string get_access_token (); - public abstract string get_user_name (); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public abstract class Session { - public Session (string? endpoint_url = null); - public bool are_transactions_stopped (); - public string? get_endpoint_url (); - public abstract bool is_authenticated (); - protected void notify_authenticated (); - protected void notify_authentication_failed (Spit.Publishing.PublishingError err); - protected void notify_wire_message_unqueued (Soup.Message message); - public void send_wire_message (Soup.Message message); - public void set_insecure (); - public void stop_transactions (); - public signal void authenticated (); - public signal void authentication_failed (Spit.Publishing.PublishingError err); - public signal void wire_message_unqueued (Soup.Message message); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public class Transaction { - public Transaction (Publishing.RESTSupport.Session parent_session, Publishing.RESTSupport.HttpMethod method = HttpMethod.POST); - public void add_argument (string name, string value); - protected virtual void add_header (string key, string value); - protected void check_response (Soup.Message message) throws Spit.Publishing.PublishingError; - public string detailed_error_from_tls_flags (out GLib.TlsCertificate cert); - public virtual void execute () throws Spit.Publishing.PublishingError; - public Publishing.RESTSupport.Argument[] get_arguments (); - public string? get_endpoint_url (); - public bool get_is_executed (); - public Soup.Message get_message (); - public Publishing.RESTSupport.HttpMethod get_method (); - public Publishing.RESTSupport.Session get_parent_session (); - public string get_response (); - public unowned Soup.MessageHeaders get_response_headers (); - public Publishing.RESTSupport.Argument[] get_sorted_arguments (); - public uint get_status_code (); - protected void send () throws Spit.Publishing.PublishingError; - protected void set_custom_payload (string? custom_payload, string payload_content_type, ulong payload_length = 0); - protected void set_is_executed (bool is_executed); - protected void set_message (Soup.Message message); - public Transaction.with_endpoint_url (Publishing.RESTSupport.Session parent_session, string endpoint_url, Publishing.RESTSupport.HttpMethod method = HttpMethod.POST); - public signal void chunk_transmitted (int bytes_written_so_far, int total_bytes); - public signal void completed (); - public signal void network_error (Spit.Publishing.PublishingError err); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public class UploadTransaction : Publishing.RESTSupport.Transaction { - protected GLib.HashTable binary_disposition_table; - protected Gee.HashMap message_headers; - protected string mime_type; - protected Spit.Publishing.Publishable publishable; - public UploadTransaction (Publishing.RESTSupport.Session session, Spit.Publishing.Publishable publishable); - protected override void add_header (string key, string value); - public override void execute () throws Spit.Publishing.PublishingError; - protected void set_binary_disposition_table (GLib.HashTable new_disp_table); - public UploadTransaction.with_endpoint_url (Publishing.RESTSupport.Session session, Spit.Publishing.Publishable publishable, string endpoint_url); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public class XmlDocument { - public delegate string? CheckForErrorResponse (Publishing.RESTSupport.XmlDocument doc); - public Xml.Node* get_named_child (Xml.Node* parent, string child_name) throws Spit.Publishing.PublishingError; - public string get_property_value (Xml.Node* node, string property_key) throws Spit.Publishing.PublishingError; - public Xml.Node* get_root_node (); - public static Publishing.RESTSupport.XmlDocument parse_string (string? input_string, Publishing.RESTSupport.XmlDocument.CheckForErrorResponse check_for_error_response) throws Spit.Publishing.PublishingError; - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public enum HttpMethod { - GET, - POST, - PUT; - public string to_string (); - public static Publishing.RESTSupport.HttpMethod from_string (string str); - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public static string asciify_string (string s); - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public static string decimal_entity_encode (string source); - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public static string hmac_sha1 (string key, string message); - } -} -namespace Resources { - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public const string LICENSE; - [CCode (cheader_filename = "shotwell-plugin-common.h", cname = "PLUGIN_RESOURCE_PATH")] - public const string RESOURCE_PATH; - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public const string TRANSLATORS; - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public const string WEBSITE_NAME; - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public const string WEBSITE_URL; - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public static Gdk.Pixbuf[]? load_from_resource (string resource_path); - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public static Gdk.Pixbuf[]? load_icon_set (GLib.File? icon_file); -} -namespace Shotwell { - namespace Plugins { - namespace Common { - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public abstract class BuilderPane : Spit.Publishing.DialogPane, GLib.Object { - public BuilderPane (); - public override void constructed (); - public Gtk.Builder get_builder (); - public virtual Gtk.Widget get_default_widget (); - public virtual void on_pane_installed (); - public virtual void on_pane_uninstalled (); - public bool connect_signals { get; construct; } - public string default_id { owned get; construct; } - public Spit.Publishing.DialogPane.GeometryOptions preferred_geometry { get; construct; } - public string resource_path { owned get; construct; } - } - [CCode (cheader_filename = "shotwell-plugin-common.h")] - public abstract class WebAuthenticationPane : Spit.Publishing.DialogPane, GLib.Object { - public WebAuthenticationPane (); - public override void constructed (); - public WebKit.WebView get_view (); - public abstract void on_page_load (); - protected void set_cursor (Gdk.CursorType type); - public string login_uri { owned get; construct; } - public Spit.Publishing.DialogPane.GeometryOptions preferred_geometry { get; construct; } - } - } - } -} diff --git a/plugins/shotwell-plugin-dev-1.0.h b/plugins/shotwell-plugin-dev-1.0.h deleted file mode 100644 index 77913ed..0000000 --- a/plugins/shotwell-plugin-dev-1.0.h +++ /dev/null @@ -1,1046 +0,0 @@ -/* shotwell-plugin-dev-1.0.h generated by valac 0.40.4, the Vala compiler, do not modify */ - - -#ifndef __PLUGINS_SHOTWELL_PLUGIN_DEV_1_0_H__ -#define __PLUGINS_SHOTWELL_PLUGIN_DEV_1_0_H__ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -G_BEGIN_DECLS - - -#define SPIT_TYPE_ENTRY_POINT_PARAMS (spit_entry_point_params_get_type ()) -typedef struct _SpitEntryPointParams SpitEntryPointParams; - -#define SPIT_TYPE_MODULE (spit_module_get_type ()) -#define SPIT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_MODULE, SpitModule)) -#define SPIT_IS_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_MODULE)) -#define SPIT_MODULE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_MODULE, SpitModuleIface)) - -typedef struct _SpitModule SpitModule; -typedef struct _SpitModuleIface SpitModuleIface; - -#define SPIT_TYPE_PLUGGABLE (spit_pluggable_get_type ()) -#define SPIT_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggable)) -#define SPIT_IS_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_PLUGGABLE)) -#define SPIT_PLUGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggableIface)) - -typedef struct _SpitPluggable SpitPluggable; -typedef struct _SpitPluggableIface SpitPluggableIface; - -#define SPIT_TYPE_PLUGGABLE_INFO (spit_pluggable_info_get_type ()) -typedef struct _SpitPluggableInfo SpitPluggableInfo; - -#define SPIT_TYPE_HOST_INTERFACE (spit_host_interface_get_type ()) -#define SPIT_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterface)) -#define SPIT_IS_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_HOST_INTERFACE)) -#define SPIT_HOST_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterfaceIface)) - -typedef struct _SpitHostInterface SpitHostInterface; -typedef struct _SpitHostInterfaceIface SpitHostInterfaceIface; - -#define SPIT_TRANSITIONS_TYPE_DIRECTION (spit_transitions_direction_get_type ()) - -#define SPIT_TRANSITIONS_TYPE_VISUALS (spit_transitions_visuals_get_type ()) -#define SPIT_TRANSITIONS_VISUALS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisuals)) -#define SPIT_TRANSITIONS_VISUALS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisualsClass)) -#define SPIT_TRANSITIONS_IS_VISUALS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_VISUALS)) -#define SPIT_TRANSITIONS_IS_VISUALS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_TRANSITIONS_TYPE_VISUALS)) -#define SPIT_TRANSITIONS_VISUALS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisualsClass)) - -typedef struct _SpitTransitionsVisuals SpitTransitionsVisuals; -typedef struct _SpitTransitionsVisualsClass SpitTransitionsVisualsClass; -typedef struct _SpitTransitionsVisualsPrivate SpitTransitionsVisualsPrivate; - -#define SPIT_TRANSITIONS_TYPE_MOTION (spit_transitions_motion_get_type ()) -#define SPIT_TRANSITIONS_MOTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotion)) -#define SPIT_TRANSITIONS_MOTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotionClass)) -#define SPIT_TRANSITIONS_IS_MOTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_MOTION)) -#define SPIT_TRANSITIONS_IS_MOTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_TRANSITIONS_TYPE_MOTION)) -#define SPIT_TRANSITIONS_MOTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotionClass)) - -typedef struct _SpitTransitionsMotion SpitTransitionsMotion; -typedef struct _SpitTransitionsMotionClass SpitTransitionsMotionClass; -typedef struct _SpitTransitionsMotionPrivate SpitTransitionsMotionPrivate; - -#define SPIT_TRANSITIONS_TYPE_DESCRIPTOR (spit_transitions_descriptor_get_type ()) -#define SPIT_TRANSITIONS_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptor)) -#define SPIT_TRANSITIONS_IS_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR)) -#define SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptorIface)) - -typedef struct _SpitTransitionsDescriptor SpitTransitionsDescriptor; -typedef struct _SpitTransitionsDescriptorIface SpitTransitionsDescriptorIface; - -#define SPIT_TRANSITIONS_TYPE_EFFECT (spit_transitions_effect_get_type ()) -#define SPIT_TRANSITIONS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect)) -#define SPIT_TRANSITIONS_IS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_EFFECT)) -#define SPIT_TRANSITIONS_EFFECT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffectIface)) - -typedef struct _SpitTransitionsEffect SpitTransitionsEffect; -typedef struct _SpitTransitionsEffectIface SpitTransitionsEffectIface; - -#define SPIT_PUBLISHING_TYPE_PUBLISHER (spit_publishing_publisher_get_type ()) -#define SPIT_PUBLISHING_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)) -#define SPIT_PUBLISHING_IS_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER)) -#define SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisherIface)) - -typedef struct _SpitPublishingPublisher SpitPublishingPublisher; -typedef struct _SpitPublishingPublisherIface SpitPublishingPublisherIface; - -#define SPIT_PUBLISHING_TYPE_SERVICE (spit_publishing_service_get_type ()) -#define SPIT_PUBLISHING_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService)) -#define SPIT_PUBLISHING_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_SERVICE)) -#define SPIT_PUBLISHING_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingServiceIface)) - -typedef struct _SpitPublishingService SpitPublishingService; -typedef struct _SpitPublishingServiceIface SpitPublishingServiceIface; - -#define SPIT_PUBLISHING_TYPE_PLUGIN_HOST (spit_publishing_plugin_host_get_type ()) -#define SPIT_PUBLISHING_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHost)) -#define SPIT_PUBLISHING_IS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST)) -#define SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHostIface)) - -typedef struct _SpitPublishingPluginHost SpitPublishingPluginHost; -typedef struct _SpitPublishingPluginHostIface SpitPublishingPluginHostIface; - -#define SPIT_PUBLISHING_TYPE_DIALOG_PANE (spit_publishing_dialog_pane_get_type ()) -#define SPIT_PUBLISHING_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane)) -#define SPIT_PUBLISHING_IS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE)) -#define SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPaneIface)) - -typedef struct _SpitPublishingDialogPane SpitPublishingDialogPane; -typedef struct _SpitPublishingDialogPaneIface SpitPublishingDialogPaneIface; - -#define SPIT_PUBLISHING_DIALOG_PANE_TYPE_GEOMETRY_OPTIONS (spit_publishing_dialog_pane_geometry_options_get_type ()) - -#define SPIT_PUBLISHING_PLUGIN_HOST_TYPE_BUTTON_MODE (spit_publishing_plugin_host_button_mode_get_type ()) - -#define SPIT_PUBLISHING_TYPE_PUBLISHABLE (spit_publishing_publishable_get_type ()) -#define SPIT_PUBLISHING_PUBLISHABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE, SpitPublishingPublishable)) -#define SPIT_PUBLISHING_IS_PUBLISHABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE)) -#define SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE, SpitPublishingPublishableIface)) - -typedef struct _SpitPublishingPublishable SpitPublishingPublishable; -typedef struct _SpitPublishingPublishableIface SpitPublishingPublishableIface; - -#define SPIT_PUBLISHING_PUBLISHER_TYPE_MEDIA_TYPE (spit_publishing_publisher_media_type_get_type ()) - -#define SPIT_PUBLISHING_TYPE_AUTHENTICATOR (spit_publishing_authenticator_get_type ()) -#define SPIT_PUBLISHING_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator)) -#define SPIT_PUBLISHING_IS_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR)) -#define SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticatorIface)) - -typedef struct _SpitPublishingAuthenticator SpitPublishingAuthenticator; -typedef struct _SpitPublishingAuthenticatorIface SpitPublishingAuthenticatorIface; - -#define SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY (spit_publishing_authenticator_factory_get_type ()) -#define SPIT_PUBLISHING_AUTHENTICATOR_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory)) -#define SPIT_PUBLISHING_IS_AUTHENTICATOR_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY)) -#define SPIT_PUBLISHING_AUTHENTICATOR_FACTORY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactoryIface)) - -typedef struct _SpitPublishingAuthenticatorFactory SpitPublishingAuthenticatorFactory; -typedef struct _SpitPublishingAuthenticatorFactoryIface SpitPublishingAuthenticatorFactoryIface; - -#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER (spit_data_imports_data_importer_get_type ()) -#define SPIT_DATA_IMPORTS_DATA_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporter)) -#define SPIT_DATA_IMPORTS_IS_DATA_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER)) -#define SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporterIface)) - -typedef struct _SpitDataImportsDataImporter SpitDataImportsDataImporter; -typedef struct _SpitDataImportsDataImporterIface SpitDataImportsDataImporterIface; - -#define SPIT_DATA_IMPORTS_TYPE_SERVICE (spit_data_imports_service_get_type ()) -#define SPIT_DATA_IMPORTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsService)) -#define SPIT_DATA_IMPORTS_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE)) -#define SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsServiceIface)) - -typedef struct _SpitDataImportsService SpitDataImportsService; -typedef struct _SpitDataImportsServiceIface SpitDataImportsServiceIface; - -#define SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST (spit_data_imports_plugin_host_get_type ()) -#define SPIT_DATA_IMPORTS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)) -#define SPIT_DATA_IMPORTS_IS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST)) -#define SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHostIface)) - -typedef struct _SpitDataImportsPluginHost SpitDataImportsPluginHost; -typedef struct _SpitDataImportsPluginHostIface SpitDataImportsPluginHostIface; - -#define SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE (spit_data_imports_dialog_pane_get_type ()) -#define SPIT_DATA_IMPORTS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane)) -#define SPIT_DATA_IMPORTS_IS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE)) -#define SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPaneIface)) - -typedef struct _SpitDataImportsDialogPane SpitDataImportsDialogPane; -typedef struct _SpitDataImportsDialogPaneIface SpitDataImportsDialogPaneIface; - -#define SPIT_DATA_IMPORTS_DIALOG_PANE_TYPE_GEOMETRY_OPTIONS (spit_data_imports_dialog_pane_geometry_options_get_type ()) - -#define SPIT_DATA_IMPORTS_PLUGIN_HOST_TYPE_BUTTON_MODE (spit_data_imports_plugin_host_button_mode_get_type ()) - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY (spit_data_imports_importable_library_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY, SpitDataImportsImportableLibrary)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_LIBRARY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY, SpitDataImportsImportableLibraryIface)) - -typedef struct _SpitDataImportsImportableLibrary SpitDataImportsImportableLibrary; -typedef struct _SpitDataImportsImportableLibraryIface SpitDataImportsImportableLibraryIface; - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM (spit_data_imports_importable_media_item_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItem)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItemIface)) - -typedef struct _SpitDataImportsImportableMediaItem SpitDataImportsImportableMediaItem; -typedef struct _SpitDataImportsImportableMediaItemIface SpitDataImportsImportableMediaItemIface; - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG (spit_data_imports_importable_tag_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, SpitDataImportsImportableTag)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_TAG_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, SpitDataImportsImportableTagIface)) - -typedef struct _SpitDataImportsImportableTag SpitDataImportsImportableTag; -typedef struct _SpitDataImportsImportableTagIface SpitDataImportsImportableTagIface; - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT (spit_data_imports_importable_event_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT, SpitDataImportsImportableEvent)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_EVENT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT, SpitDataImportsImportableEventIface)) - -typedef struct _SpitDataImportsImportableEvent SpitDataImportsImportableEvent; -typedef struct _SpitDataImportsImportableEventIface SpitDataImportsImportableEventIface; - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING (spit_data_imports_importable_rating_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_RATING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING, SpitDataImportsImportableRating)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_RATING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_RATING_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING, SpitDataImportsImportableRatingIface)) - -typedef struct _SpitDataImportsImportableRating SpitDataImportsImportableRating; -typedef struct _SpitDataImportsImportableRatingIface SpitDataImportsImportableRatingIface; - -struct _SpitEntryPointParams { - gint host_min_spit_interface; - gint host_max_spit_interface; - gint module_spit_interface; - GFile* module_file; -}; - -struct _SpitPluggableInfo { - gchar* version; - gchar* brief_description; - gchar* authors; - gchar* copyright; - gchar* license; - gboolean is_license_wordwrapped; - gchar* website_url; - gchar* website_name; - gchar* translators; - GdkPixbuf** icons; - gint icons_length1; -}; - -struct _SpitPluggableIface { - GTypeInterface parent_iface; - gint (*get_pluggable_interface) (SpitPluggable* self, gint min_host_interface, gint max_host_interface); - const gchar* (*get_id) (SpitPluggable* self); - const gchar* (*get_pluggable_name) (SpitPluggable* self); - void (*get_info) (SpitPluggable* self, SpitPluggableInfo* info); - void (*activation) (SpitPluggable* self, gboolean enabled); - void (*reserved0) (SpitPluggable* self); - void (*reserved1) (SpitPluggable* self); - void (*reserved2) (SpitPluggable* self); - void (*reserved3) (SpitPluggable* self); - void (*reserved4) (SpitPluggable* self); - void (*reserved5) (SpitPluggable* self); - void (*reserved6) (SpitPluggable* self); - void (*reserved7) (SpitPluggable* self); -}; - -struct _SpitModuleIface { - GTypeInterface parent_iface; - const gchar* (*get_module_name) (SpitModule* self); - const gchar* (*get_version) (SpitModule* self); - const gchar* (*get_id) (SpitModule* self); - SpitPluggable** (*get_pluggables) (SpitModule* self, int* result_length1); - void (*reserved0) (SpitModule* self); - void (*reserved1) (SpitModule* self); - void (*reserved2) (SpitModule* self); - void (*reserved3) (SpitModule* self); - void (*reserved4) (SpitModule* self); - void (*reserved5) (SpitModule* self); - void (*reserved6) (SpitModule* self); - void (*reserved7) (SpitModule* self); -}; - -typedef SpitModule* (*SpitEntryPoint) (SpitEntryPointParams* params); -struct _SpitHostInterfaceIface { - GTypeInterface parent_iface; - GFile* (*get_module_file) (SpitHostInterface* self); - gboolean (*get_config_bool) (SpitHostInterface* self, const gchar* key, gboolean def); - void (*set_config_bool) (SpitHostInterface* self, const gchar* key, gboolean val); - gint (*get_config_int) (SpitHostInterface* self, const gchar* key, gint def); - void (*set_config_int) (SpitHostInterface* self, const gchar* key, gint val); - gchar* (*get_config_string) (SpitHostInterface* self, const gchar* key, const gchar* def); - void (*set_config_string) (SpitHostInterface* self, const gchar* key, const gchar* val); - gdouble (*get_config_double) (SpitHostInterface* self, const gchar* key, gdouble def); - void (*set_config_double) (SpitHostInterface* self, const gchar* key, gdouble val); - void (*unset_config_key) (SpitHostInterface* self, const gchar* key); - void (*reserved0) (SpitHostInterface* self); - void (*reserved1) (SpitHostInterface* self); - void (*reserved2) (SpitHostInterface* self); - void (*reserved3) (SpitHostInterface* self); - void (*reserved4) (SpitHostInterface* self); - void (*reserved5) (SpitHostInterface* self); - void (*reserved6) (SpitHostInterface* self); - void (*reserved7) (SpitHostInterface* self); -}; - -typedef enum { - SPIT_TRANSITIONS_DIRECTION_LEFT = 0, - SPIT_TRANSITIONS_DIRECTION_RIGHT = 1, - SPIT_TRANSITIONS_DIRECTION_FORWARD = SPIT_TRANSITIONS_DIRECTION_LEFT, - SPIT_TRANSITIONS_DIRECTION_BACKWARD = SPIT_TRANSITIONS_DIRECTION_RIGHT -} SpitTransitionsDirection; - -struct _SpitTransitionsVisuals { - GObject parent_instance; - SpitTransitionsVisualsPrivate * priv; -}; - -struct _SpitTransitionsVisualsClass { - GObjectClass parent_class; - void (*reserved0) (SpitTransitionsVisuals* self); - void (*reserved1) (SpitTransitionsVisuals* self); - void (*reserved2) (SpitTransitionsVisuals* self); - void (*reserved3) (SpitTransitionsVisuals* self); - void (*reserved4) (SpitTransitionsVisuals* self); - void (*reserved5) (SpitTransitionsVisuals* self); - void (*reserved6) (SpitTransitionsVisuals* self); - void (*reserved7) (SpitTransitionsVisuals* self); -}; - -struct _SpitTransitionsMotion { - GObject parent_instance; - SpitTransitionsMotionPrivate * priv; -}; - -struct _SpitTransitionsMotionClass { - GObjectClass parent_class; - void (*reserved0) (SpitTransitionsMotion* self); - void (*reserved1) (SpitTransitionsMotion* self); - void (*reserved2) (SpitTransitionsMotion* self); - void (*reserved3) (SpitTransitionsMotion* self); - void (*reserved4) (SpitTransitionsMotion* self); - void (*reserved5) (SpitTransitionsMotion* self); - void (*reserved6) (SpitTransitionsMotion* self); - void (*reserved7) (SpitTransitionsMotion* self); -}; - -struct _SpitTransitionsEffectIface { - GTypeInterface parent_iface; - void (*get_fps) (SpitTransitionsEffect* self, gint* desired_fps, gint* min_fps); - void (*start) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion); - gboolean (*needs_clear_background) (SpitTransitionsEffect* self); - void (*paint) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number); - void (*advance) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number); - void (*cancel) (SpitTransitionsEffect* self); - void (*reserved0) (SpitTransitionsEffect* self); - void (*reserved1) (SpitTransitionsEffect* self); - void (*reserved2) (SpitTransitionsEffect* self); - void (*reserved3) (SpitTransitionsEffect* self); - void (*reserved4) (SpitTransitionsEffect* self); - void (*reserved5) (SpitTransitionsEffect* self); - void (*reserved6) (SpitTransitionsEffect* self); - void (*reserved7) (SpitTransitionsEffect* self); -}; - -struct _SpitTransitionsDescriptorIface { - GTypeInterface parent_iface; - SpitTransitionsEffect* (*create) (SpitTransitionsDescriptor* self, SpitHostInterface* host); - void (*reserved0) (SpitTransitionsDescriptor* self); - void (*reserved1) (SpitTransitionsDescriptor* self); - void (*reserved2) (SpitTransitionsDescriptor* self); - void (*reserved3) (SpitTransitionsDescriptor* self); - void (*reserved4) (SpitTransitionsDescriptor* self); - void (*reserved5) (SpitTransitionsDescriptor* self); - void (*reserved6) (SpitTransitionsDescriptor* self); - void (*reserved7) (SpitTransitionsDescriptor* self); -}; - -typedef enum { - SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, - SPIT_PUBLISHING_PUBLISHING_ERROR_COMMUNICATION_FAILED, - SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR, - SPIT_PUBLISHING_PUBLISHING_ERROR_SERVICE_ERROR, - SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, - SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, - SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION, - SPIT_PUBLISHING_PUBLISHING_ERROR_SSL_FAILED -} SpitPublishingPublishingError; -#define SPIT_PUBLISHING_PUBLISHING_ERROR spit_publishing_publishing_error_quark () -typedef enum { - SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE = 0, - SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE = 1 << 0, - SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE = 1 << 1, - SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE = 1 << 2 -} SpitPublishingDialogPaneGeometryOptions; - -struct _SpitPublishingDialogPaneIface { - GTypeInterface parent_iface; - GtkWidget* (*get_widget) (SpitPublishingDialogPane* self); - SpitPublishingDialogPaneGeometryOptions (*get_preferred_geometry) (SpitPublishingDialogPane* self); - void (*on_pane_installed) (SpitPublishingDialogPane* self); - void (*on_pane_uninstalled) (SpitPublishingDialogPane* self); - void (*reserved0) (SpitPublishingDialogPane* self); - void (*reserved1) (SpitPublishingDialogPane* self); - void (*reserved2) (SpitPublishingDialogPane* self); - void (*reserved3) (SpitPublishingDialogPane* self); - void (*reserved4) (SpitPublishingDialogPane* self); - void (*reserved5) (SpitPublishingDialogPane* self); - void (*reserved6) (SpitPublishingDialogPane* self); - void (*reserved7) (SpitPublishingDialogPane* self); -}; - -typedef enum { - SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE = 0, - SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL = 1 -} SpitPublishingPluginHostButtonMode; - -typedef void (*SpitPublishingLoginCallback) (void* user_data); -typedef enum { - SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE = 0, - SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO = 1 << 0, - SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO = 1 << 1 -} SpitPublishingPublisherMediaType; - -struct _SpitPublishingPublishableIface { - GTypeInterface parent_iface; - GFile* (*get_serialized_file) (SpitPublishingPublishable* self); - gchar* (*get_publishing_name) (SpitPublishingPublishable* self); - gchar* (*get_param_string) (SpitPublishingPublishable* self, const gchar* name); - gchar** (*get_publishing_keywords) (SpitPublishingPublishable* self, int* result_length1); - SpitPublishingPublisherMediaType (*get_media_type) (SpitPublishingPublishable* self); - GDateTime* (*get_exposure_date_time) (SpitPublishingPublishable* self); - void (*reserved0) (SpitPublishingPublishable* self); - void (*reserved1) (SpitPublishingPublishable* self); - void (*reserved2) (SpitPublishingPublishable* self); - void (*reserved3) (SpitPublishingPublishable* self); - void (*reserved4) (SpitPublishingPublishable* self); - void (*reserved5) (SpitPublishingPublishable* self); - void (*reserved6) (SpitPublishingPublishable* self); - void (*reserved7) (SpitPublishingPublishable* self); -}; - -typedef void (*SpitPublishingProgressCallback) (gint file_number, gdouble fraction_complete, void* user_data); -struct _SpitPublishingPluginHostIface { - GTypeInterface parent_iface; - void (*post_error) (SpitPublishingPluginHost* self, GError* err); - void (*stop_publishing) (SpitPublishingPluginHost* self); - SpitPublishingPublisher* (*get_publisher) (SpitPublishingPluginHost* self); - void (*install_dialog_pane) (SpitPublishingPluginHost* self, SpitPublishingDialogPane* pane, SpitPublishingPluginHostButtonMode mode); - void (*install_static_message_pane) (SpitPublishingPluginHost* self, const gchar* message, SpitPublishingPluginHostButtonMode mode); - void (*install_pango_message_pane) (SpitPublishingPluginHost* self, const gchar* markup, SpitPublishingPluginHostButtonMode mode); - void (*install_success_pane) (SpitPublishingPluginHost* self); - void (*install_account_fetch_wait_pane) (SpitPublishingPluginHost* self); - void (*install_login_wait_pane) (SpitPublishingPluginHost* self); - void (*install_welcome_pane) (SpitPublishingPluginHost* self, const gchar* welcome_message, SpitPublishingLoginCallback on_login_clicked, void* on_login_clicked_target); - void (*set_service_locked) (SpitPublishingPluginHost* self, gboolean is_locked); - void (*set_dialog_default_widget) (SpitPublishingPluginHost* self, GtkWidget* widget); - SpitPublishingPublishable** (*get_publishables) (SpitPublishingPluginHost* self, int* result_length1); - SpitPublishingProgressCallback (*serialize_publishables) (SpitPublishingPluginHost* self, gint content_major_axis, gboolean strip_metadata, void** result_target, GDestroyNotify* result_target_destroy_notify); - SpitPublishingPublisherMediaType (*get_publishable_media_type) (SpitPublishingPluginHost* self); - void (*reserved0) (SpitPublishingPluginHost* self); - void (*reserved1) (SpitPublishingPluginHost* self); - void (*reserved2) (SpitPublishingPluginHost* self); - void (*reserved3) (SpitPublishingPluginHost* self); - void (*reserved4) (SpitPublishingPluginHost* self); - void (*reserved5) (SpitPublishingPluginHost* self); - void (*reserved6) (SpitPublishingPluginHost* self); - void (*reserved7) (SpitPublishingPluginHost* self); -}; - -struct _SpitPublishingServiceIface { - GTypeInterface parent_iface; - SpitPublishingPublisher* (*create_publisher) (SpitPublishingService* self, SpitPublishingPluginHost* host); - SpitPublishingPublisherMediaType (*get_supported_media) (SpitPublishingService* self); - void (*reserved0) (SpitPublishingService* self); - void (*reserved1) (SpitPublishingService* self); - void (*reserved2) (SpitPublishingService* self); - void (*reserved3) (SpitPublishingService* self); - void (*reserved4) (SpitPublishingService* self); - void (*reserved5) (SpitPublishingService* self); - void (*reserved6) (SpitPublishingService* self); - void (*reserved7) (SpitPublishingService* self); -}; - -struct _SpitPublishingPublisherIface { - GTypeInterface parent_iface; - SpitPublishingService* (*get_service) (SpitPublishingPublisher* self); - void (*start) (SpitPublishingPublisher* self); - gboolean (*is_running) (SpitPublishingPublisher* self); - void (*stop) (SpitPublishingPublisher* self); - void (*reserved0) (SpitPublishingPublisher* self); - void (*reserved1) (SpitPublishingPublisher* self); - void (*reserved2) (SpitPublishingPublisher* self); - void (*reserved3) (SpitPublishingPublisher* self); - void (*reserved4) (SpitPublishingPublisher* self); - void (*reserved5) (SpitPublishingPublisher* self); - void (*reserved6) (SpitPublishingPublisher* self); - void (*reserved7) (SpitPublishingPublisher* self); -}; - -struct _SpitPublishingAuthenticatorIface { - GTypeInterface parent_iface; - void (*authenticate) (SpitPublishingAuthenticator* self); - gboolean (*can_logout) (SpitPublishingAuthenticator* self); - void (*logout) (SpitPublishingAuthenticator* self); - void (*refresh) (SpitPublishingAuthenticator* self); - GHashTable* (*get_authentication_parameter) (SpitPublishingAuthenticator* self); -}; - -struct _SpitPublishingAuthenticatorFactoryIface { - GTypeInterface parent_iface; - GeeList* (*get_available_authenticators) (SpitPublishingAuthenticatorFactory* self); - SpitPublishingAuthenticator* (*create) (SpitPublishingAuthenticatorFactory* self, const gchar* provider, SpitPublishingPluginHost* host); -}; - -typedef enum { - SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR_UNSUPPORTED_VERSION -} SpitDataImportsDataImportError; -#define SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR spit_data_imports_data_import_error_quark () -typedef enum { - SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_NONE = 0, - SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE = 1 << 0, - SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE = 1 << 1, - SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE = 1 << 2 -} SpitDataImportsDialogPaneGeometryOptions; - -struct _SpitDataImportsDialogPaneIface { - GTypeInterface parent_iface; - GtkWidget* (*get_widget) (SpitDataImportsDialogPane* self); - SpitDataImportsDialogPaneGeometryOptions (*get_preferred_geometry) (SpitDataImportsDialogPane* self); - void (*on_pane_installed) (SpitDataImportsDialogPane* self); - void (*on_pane_uninstalled) (SpitDataImportsDialogPane* self); - void (*reserved0) (SpitDataImportsDialogPane* self); - void (*reserved1) (SpitDataImportsDialogPane* self); - void (*reserved2) (SpitDataImportsDialogPane* self); - void (*reserved3) (SpitDataImportsDialogPane* self); - void (*reserved4) (SpitDataImportsDialogPane* self); - void (*reserved5) (SpitDataImportsDialogPane* self); - void (*reserved6) (SpitDataImportsDialogPane* self); - void (*reserved7) (SpitDataImportsDialogPane* self); -}; - -typedef enum { - SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE = 0, - SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL = 1 -} SpitDataImportsPluginHostButtonMode; - -struct _SpitDataImportsImportableLibraryIface { - GTypeInterface parent_iface; - gchar* (*get_display_name) (SpitDataImportsImportableLibrary* self); -}; - -struct _SpitDataImportsImportableTagIface { - GTypeInterface parent_iface; - gchar* (*get_name) (SpitDataImportsImportableTag* self); - SpitDataImportsImportableTag* (*get_parent) (SpitDataImportsImportableTag* self); -}; - -struct _SpitDataImportsImportableEventIface { - GTypeInterface parent_iface; - gchar* (*get_name) (SpitDataImportsImportableEvent* self); -}; - -struct _SpitDataImportsImportableRatingIface { - GTypeInterface parent_iface; - gboolean (*is_unrated) (SpitDataImportsImportableRating* self); - gboolean (*is_rejected) (SpitDataImportsImportableRating* self); - gint (*get_value) (SpitDataImportsImportableRating* self); -}; - -struct _SpitDataImportsImportableMediaItemIface { - GTypeInterface parent_iface; - SpitDataImportsImportableTag** (*get_tags) (SpitDataImportsImportableMediaItem* self, int* result_length1); - SpitDataImportsImportableEvent* (*get_event) (SpitDataImportsImportableMediaItem* self); - SpitDataImportsImportableRating* (*get_rating) (SpitDataImportsImportableMediaItem* self); - gchar* (*get_title) (SpitDataImportsImportableMediaItem* self); - gchar* (*get_folder_path) (SpitDataImportsImportableMediaItem* self); - gchar* (*get_filename) (SpitDataImportsImportableMediaItem* self); - time_t* (*get_exposure_time) (SpitDataImportsImportableMediaItem* self); -}; - -typedef void (*SpitDataImportsImportedItemsCountCallback) (gint imported_items_count, void* user_data); -struct _SpitDataImportsPluginHostIface { - GTypeInterface parent_iface; - void (*post_error) (SpitDataImportsPluginHost* self, GError* err); - void (*post_error_message) (SpitDataImportsPluginHost* self, const gchar* msg); - void (*start_importing) (SpitDataImportsPluginHost* self); - void (*stop_importing) (SpitDataImportsPluginHost* self); - SpitDataImportsDataImporter* (*get_data_importer) (SpitDataImportsPluginHost* self); - void (*install_dialog_pane) (SpitDataImportsPluginHost* self, SpitDataImportsDialogPane* pane, SpitDataImportsPluginHostButtonMode mode); - void (*install_static_message_pane) (SpitDataImportsPluginHost* self, const gchar* message, SpitDataImportsPluginHostButtonMode mode); - void (*install_library_selection_pane) (SpitDataImportsPluginHost* self, const gchar* welcome_message, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1, const gchar* file_select_label); - void (*install_import_progress_pane) (SpitDataImportsPluginHost* self, const gchar* message); - void (*update_import_progress_pane) (SpitDataImportsPluginHost* self, gdouble progress, const gchar* progress_message); - void (*prepare_media_items_for_import) (SpitDataImportsPluginHost* self, SpitDataImportsImportableMediaItem** items, int items_length1, gdouble progress, gdouble host_progress_delta, const gchar* progress_message); - void (*finalize_import) (SpitDataImportsPluginHost* self, SpitDataImportsImportedItemsCountCallback report_imported_items_count, void* report_imported_items_count_target, const gchar* finalize_message); - void (*reserved0) (SpitDataImportsPluginHost* self); - void (*reserved1) (SpitDataImportsPluginHost* self); - void (*reserved2) (SpitDataImportsPluginHost* self); - void (*reserved3) (SpitDataImportsPluginHost* self); - void (*reserved4) (SpitDataImportsPluginHost* self); - void (*reserved5) (SpitDataImportsPluginHost* self); - void (*reserved6) (SpitDataImportsPluginHost* self); - void (*reserved7) (SpitDataImportsPluginHost* self); -}; - -struct _SpitDataImportsServiceIface { - GTypeInterface parent_iface; - SpitDataImportsDataImporter* (*create_data_importer) (SpitDataImportsService* self, SpitDataImportsPluginHost* host); - void (*reserved0) (SpitDataImportsService* self); - void (*reserved1) (SpitDataImportsService* self); - void (*reserved2) (SpitDataImportsService* self); - void (*reserved3) (SpitDataImportsService* self); - void (*reserved4) (SpitDataImportsService* self); - void (*reserved5) (SpitDataImportsService* self); - void (*reserved6) (SpitDataImportsService* self); - void (*reserved7) (SpitDataImportsService* self); -}; - -struct _SpitDataImportsDataImporterIface { - GTypeInterface parent_iface; - SpitDataImportsService* (*get_service) (SpitDataImportsDataImporter* self); - void (*start) (SpitDataImportsDataImporter* self); - gboolean (*is_running) (SpitDataImportsDataImporter* self); - void (*stop) (SpitDataImportsDataImporter* self); - void (*on_library_selected) (SpitDataImportsDataImporter* self, SpitDataImportsImportableLibrary* library); - void (*on_file_selected) (SpitDataImportsDataImporter* self, GFile* file); - void (*reserved0) (SpitDataImportsDataImporter* self); - void (*reserved1) (SpitDataImportsDataImporter* self); - void (*reserved2) (SpitDataImportsDataImporter* self); - void (*reserved3) (SpitDataImportsDataImporter* self); - void (*reserved4) (SpitDataImportsDataImporter* self); - void (*reserved5) (SpitDataImportsDataImporter* self); - void (*reserved6) (SpitDataImportsDataImporter* self); - void (*reserved7) (SpitDataImportsDataImporter* self); -}; - - -#define SPIT_UNSUPPORTED_INTERFACE -1 -#define SPIT_CURRENT_INTERFACE 0 -gint spit_negotiate_interfaces (gint min_host_interface, - gint max_host_interface, - gint plugin_interface); -GType spit_entry_point_params_get_type (void) G_GNUC_CONST; -SpitEntryPointParams* spit_entry_point_params_dup (const SpitEntryPointParams* self); -void spit_entry_point_params_free (SpitEntryPointParams* self); -void spit_entry_point_params_copy (const SpitEntryPointParams* self, - SpitEntryPointParams* dest); -void spit_entry_point_params_destroy (SpitEntryPointParams* self); -GType spit_pluggable_info_get_type (void) G_GNUC_CONST; -SpitPluggableInfo* spit_pluggable_info_dup (const SpitPluggableInfo* self); -void spit_pluggable_info_free (SpitPluggableInfo* self); -void spit_pluggable_info_copy (const SpitPluggableInfo* self, - SpitPluggableInfo* dest); -void spit_pluggable_info_destroy (SpitPluggableInfo* self); -GType spit_pluggable_get_type (void) G_GNUC_CONST; -GType spit_module_get_type (void) G_GNUC_CONST; -#define SPIT_ENTRY_POINT_NAME "spit_entry_point" -const gchar* spit_module_get_module_name (SpitModule* self); -const gchar* spit_module_get_version (SpitModule* self); -const gchar* spit_module_get_id (SpitModule* self); -SpitPluggable** spit_module_get_pluggables (SpitModule* self, - int* result_length1); -void spit_module_reserved0 (SpitModule* self); -void spit_module_reserved1 (SpitModule* self); -void spit_module_reserved2 (SpitModule* self); -void spit_module_reserved3 (SpitModule* self); -void spit_module_reserved4 (SpitModule* self); -void spit_module_reserved5 (SpitModule* self); -void spit_module_reserved6 (SpitModule* self); -void spit_module_reserved7 (SpitModule* self); -gint spit_pluggable_get_pluggable_interface (SpitPluggable* self, - gint min_host_interface, - gint max_host_interface); -const gchar* spit_pluggable_get_id (SpitPluggable* self); -const gchar* spit_pluggable_get_pluggable_name (SpitPluggable* self); -void spit_pluggable_get_info (SpitPluggable* self, - SpitPluggableInfo* info); -void spit_pluggable_activation (SpitPluggable* self, - gboolean enabled); -void spit_pluggable_reserved0 (SpitPluggable* self); -void spit_pluggable_reserved1 (SpitPluggable* self); -void spit_pluggable_reserved2 (SpitPluggable* self); -void spit_pluggable_reserved3 (SpitPluggable* self); -void spit_pluggable_reserved4 (SpitPluggable* self); -void spit_pluggable_reserved5 (SpitPluggable* self); -void spit_pluggable_reserved6 (SpitPluggable* self); -void spit_pluggable_reserved7 (SpitPluggable* self); -GType spit_host_interface_get_type (void) G_GNUC_CONST; -GFile* spit_host_interface_get_module_file (SpitHostInterface* self); -gboolean spit_host_interface_get_config_bool (SpitHostInterface* self, - const gchar* key, - gboolean def); -void spit_host_interface_set_config_bool (SpitHostInterface* self, - const gchar* key, - gboolean val); -gint spit_host_interface_get_config_int (SpitHostInterface* self, - const gchar* key, - gint def); -void spit_host_interface_set_config_int (SpitHostInterface* self, - const gchar* key, - gint val); -gchar* spit_host_interface_get_config_string (SpitHostInterface* self, - const gchar* key, - const gchar* def); -void spit_host_interface_set_config_string (SpitHostInterface* self, - const gchar* key, - const gchar* val); -gdouble spit_host_interface_get_config_double (SpitHostInterface* self, - const gchar* key, - gdouble def); -void spit_host_interface_set_config_double (SpitHostInterface* self, - const gchar* key, - gdouble val); -void spit_host_interface_unset_config_key (SpitHostInterface* self, - const gchar* key); -void spit_host_interface_reserved0 (SpitHostInterface* self); -void spit_host_interface_reserved1 (SpitHostInterface* self); -void spit_host_interface_reserved2 (SpitHostInterface* self); -void spit_host_interface_reserved3 (SpitHostInterface* self); -void spit_host_interface_reserved4 (SpitHostInterface* self); -void spit_host_interface_reserved5 (SpitHostInterface* self); -void spit_host_interface_reserved6 (SpitHostInterface* self); -void spit_host_interface_reserved7 (SpitHostInterface* self); -#define SPIT_TRANSITIONS_CURRENT_INTERFACE 0 -GType spit_transitions_direction_get_type (void) G_GNUC_CONST; -GType spit_transitions_visuals_get_type (void) G_GNUC_CONST; -SpitTransitionsVisuals* spit_transitions_visuals_new (GdkPixbuf* from_pixbuf, - GdkRectangle* from_pos, - GdkPixbuf* to_pixbuf, - GdkRectangle* to_pos, - GdkRGBA* bg_color); -SpitTransitionsVisuals* spit_transitions_visuals_construct (GType object_type, - GdkPixbuf* from_pixbuf, - GdkRectangle* from_pos, - GdkPixbuf* to_pixbuf, - GdkRectangle* to_pos, - GdkRGBA* bg_color); -void spit_transitions_visuals_reserved0 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved1 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved2 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved3 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved4 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved5 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved6 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved7 (SpitTransitionsVisuals* self); -GdkPixbuf* spit_transitions_visuals_get_from_pixbuf (SpitTransitionsVisuals* self); -void spit_transitions_visuals_get_from_pos (SpitTransitionsVisuals* self, - GdkRectangle * result); -GdkPixbuf* spit_transitions_visuals_get_to_pixbuf (SpitTransitionsVisuals* self); -void spit_transitions_visuals_get_to_pos (SpitTransitionsVisuals* self, - GdkRectangle * result); -void spit_transitions_visuals_get_bg_color (SpitTransitionsVisuals* self, - GdkRGBA * result); -GType spit_transitions_motion_get_type (void) G_GNUC_CONST; -SpitTransitionsMotion* spit_transitions_motion_new (SpitTransitionsDirection direction, - gint fps, - gint duration_msec); -SpitTransitionsMotion* spit_transitions_motion_construct (GType object_type, - SpitTransitionsDirection direction, - gint fps, - gint duration_msec); -gdouble spit_transitions_motion_get_alpha (SpitTransitionsMotion* self, - gint frame_number); -void spit_transitions_motion_reserved0 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved1 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved2 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved3 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved4 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved5 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved6 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved7 (SpitTransitionsMotion* self); -SpitTransitionsDirection spit_transitions_motion_get_direction (SpitTransitionsMotion* self); -gint spit_transitions_motion_get_fps (SpitTransitionsMotion* self); -gint spit_transitions_motion_get_duration_msec (SpitTransitionsMotion* self); -gint spit_transitions_motion_get_total_frames (SpitTransitionsMotion* self); -gint spit_transitions_motion_get_tick_msec (SpitTransitionsMotion* self); -GType spit_transitions_effect_get_type (void) G_GNUC_CONST; -GType spit_transitions_descriptor_get_type (void) G_GNUC_CONST; -SpitTransitionsEffect* spit_transitions_descriptor_create (SpitTransitionsDescriptor* self, - SpitHostInterface* host); -void spit_transitions_descriptor_reserved0 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved1 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved2 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved3 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved4 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved5 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved6 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved7 (SpitTransitionsDescriptor* self); -void spit_transitions_effect_get_fps (SpitTransitionsEffect* self, - gint* desired_fps, - gint* min_fps); -void spit_transitions_effect_start (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -gboolean spit_transitions_effect_needs_clear_background (SpitTransitionsEffect* self); -void spit_transitions_effect_paint (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -void spit_transitions_effect_advance (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -void spit_transitions_effect_cancel (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved0 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved1 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved2 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved3 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved4 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved5 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved6 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved7 (SpitTransitionsEffect* self); -#define SPIT_PUBLISHING_CURRENT_INTERFACE 0 -GQuark spit_publishing_publishing_error_quark (void); -GType spit_publishing_dialog_pane_geometry_options_get_type (void) G_GNUC_CONST; -GType spit_publishing_dialog_pane_get_type (void) G_GNUC_CONST; -GType spit_publishing_plugin_host_button_mode_get_type (void) G_GNUC_CONST; -GType spit_publishing_publisher_media_type_get_type (void) G_GNUC_CONST; -GType spit_publishing_publishable_get_type (void) G_GNUC_CONST; -GType spit_publishing_plugin_host_get_type (void) G_GNUC_CONST; -GType spit_publishing_service_get_type (void) G_GNUC_CONST; -GType spit_publishing_publisher_get_type (void) G_GNUC_CONST; -SpitPublishingService* spit_publishing_publisher_get_service (SpitPublishingPublisher* self); -void spit_publishing_publisher_start (SpitPublishingPublisher* self); -gboolean spit_publishing_publisher_is_running (SpitPublishingPublisher* self); -void spit_publishing_publisher_stop (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved0 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved1 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved2 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved3 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved4 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved5 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved6 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved7 (SpitPublishingPublisher* self); -GtkWidget* spit_publishing_dialog_pane_get_widget (SpitPublishingDialogPane* self); -SpitPublishingDialogPaneGeometryOptions spit_publishing_dialog_pane_get_preferred_geometry (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_on_pane_installed (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_on_pane_uninstalled (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved0 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved1 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved2 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved3 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved4 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved5 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved6 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved7 (SpitPublishingDialogPane* self); -void spit_publishing_plugin_host_post_error (SpitPublishingPluginHost* self, - GError* err); -void spit_publishing_plugin_host_stop_publishing (SpitPublishingPluginHost* self); -SpitPublishingPublisher* spit_publishing_plugin_host_get_publisher (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_install_dialog_pane (SpitPublishingPluginHost* self, - SpitPublishingDialogPane* pane, - SpitPublishingPluginHostButtonMode mode); -void spit_publishing_plugin_host_install_static_message_pane (SpitPublishingPluginHost* self, - const gchar* message, - SpitPublishingPluginHostButtonMode mode); -void spit_publishing_plugin_host_install_pango_message_pane (SpitPublishingPluginHost* self, - const gchar* markup, - SpitPublishingPluginHostButtonMode mode); -void spit_publishing_plugin_host_install_success_pane (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_install_account_fetch_wait_pane (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_install_login_wait_pane (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_install_welcome_pane (SpitPublishingPluginHost* self, - const gchar* welcome_message, - SpitPublishingLoginCallback on_login_clicked, - void* on_login_clicked_target); -void spit_publishing_plugin_host_set_service_locked (SpitPublishingPluginHost* self, - gboolean is_locked); -void spit_publishing_plugin_host_set_dialog_default_widget (SpitPublishingPluginHost* self, - GtkWidget* widget); -SpitPublishingPublishable** spit_publishing_plugin_host_get_publishables (SpitPublishingPluginHost* self, - int* result_length1); -SpitPublishingProgressCallback spit_publishing_plugin_host_serialize_publishables (SpitPublishingPluginHost* self, - gint content_major_axis, - gboolean strip_metadata, - void** result_target, - GDestroyNotify* result_target_destroy_notify); -SpitPublishingPublisherMediaType spit_publishing_plugin_host_get_publishable_media_type (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved0 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved1 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved2 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved3 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved4 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved5 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved6 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved7 (SpitPublishingPluginHost* self); -GFile* spit_publishing_publishable_get_serialized_file (SpitPublishingPublishable* self); -gchar* spit_publishing_publishable_get_publishing_name (SpitPublishingPublishable* self); -gchar* spit_publishing_publishable_get_param_string (SpitPublishingPublishable* self, - const gchar* name); -gchar** spit_publishing_publishable_get_publishing_keywords (SpitPublishingPublishable* self, - int* result_length1); -SpitPublishingPublisherMediaType spit_publishing_publishable_get_media_type (SpitPublishingPublishable* self); -GDateTime* spit_publishing_publishable_get_exposure_date_time (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved0 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved1 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved2 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved3 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved4 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved5 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved6 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved7 (SpitPublishingPublishable* self); -#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME "basename" -#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_TITLE "title" -#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT "comment" -#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_EVENTCOMMENT "eventcomment" -SpitPublishingPublisher* spit_publishing_service_create_publisher (SpitPublishingService* self, - SpitPublishingPluginHost* host); -SpitPublishingPublisherMediaType spit_publishing_service_get_supported_media (SpitPublishingService* self); -void spit_publishing_service_reserved0 (SpitPublishingService* self); -void spit_publishing_service_reserved1 (SpitPublishingService* self); -void spit_publishing_service_reserved2 (SpitPublishingService* self); -void spit_publishing_service_reserved3 (SpitPublishingService* self); -void spit_publishing_service_reserved4 (SpitPublishingService* self); -void spit_publishing_service_reserved5 (SpitPublishingService* self); -void spit_publishing_service_reserved6 (SpitPublishingService* self); -void spit_publishing_service_reserved7 (SpitPublishingService* self); -GType spit_publishing_authenticator_get_type (void) G_GNUC_CONST; -void spit_publishing_authenticator_authenticate (SpitPublishingAuthenticator* self); -gboolean spit_publishing_authenticator_can_logout (SpitPublishingAuthenticator* self); -void spit_publishing_authenticator_logout (SpitPublishingAuthenticator* self); -void spit_publishing_authenticator_refresh (SpitPublishingAuthenticator* self); -GHashTable* spit_publishing_authenticator_get_authentication_parameter (SpitPublishingAuthenticator* self); -GType spit_publishing_authenticator_factory_get_type (void) G_GNUC_CONST; -GeeList* spit_publishing_authenticator_factory_get_available_authenticators (SpitPublishingAuthenticatorFactory* self); -SpitPublishingAuthenticator* spit_publishing_authenticator_factory_create (SpitPublishingAuthenticatorFactory* self, - const gchar* provider, - SpitPublishingPluginHost* host); -#define SPIT_DATA_IMPORTS_CURRENT_INTERFACE 0 -GQuark spit_data_imports_data_import_error_quark (void); -GType spit_data_imports_dialog_pane_geometry_options_get_type (void) G_GNUC_CONST; -GType spit_data_imports_dialog_pane_get_type (void) G_GNUC_CONST; -GType spit_data_imports_plugin_host_button_mode_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_library_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_tag_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_event_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_rating_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_media_item_get_type (void) G_GNUC_CONST; -GType spit_data_imports_plugin_host_get_type (void) G_GNUC_CONST; -GType spit_data_imports_service_get_type (void) G_GNUC_CONST; -GType spit_data_imports_data_importer_get_type (void) G_GNUC_CONST; -SpitDataImportsService* spit_data_imports_data_importer_get_service (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_start (SpitDataImportsDataImporter* self); -gboolean spit_data_imports_data_importer_is_running (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_stop (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_on_library_selected (SpitDataImportsDataImporter* self, - SpitDataImportsImportableLibrary* library); -void spit_data_imports_data_importer_on_file_selected (SpitDataImportsDataImporter* self, - GFile* file); -void spit_data_imports_data_importer_reserved0 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved1 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved2 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved3 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved4 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved5 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved6 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved7 (SpitDataImportsDataImporter* self); -gchar* spit_data_imports_importable_library_get_display_name (SpitDataImportsImportableLibrary* self); -SpitDataImportsImportableTag** spit_data_imports_importable_media_item_get_tags (SpitDataImportsImportableMediaItem* self, - int* result_length1); -SpitDataImportsImportableEvent* spit_data_imports_importable_media_item_get_event (SpitDataImportsImportableMediaItem* self); -SpitDataImportsImportableRating* spit_data_imports_importable_media_item_get_rating (SpitDataImportsImportableMediaItem* self); -gchar* spit_data_imports_importable_media_item_get_title (SpitDataImportsImportableMediaItem* self); -gchar* spit_data_imports_importable_media_item_get_folder_path (SpitDataImportsImportableMediaItem* self); -gchar* spit_data_imports_importable_media_item_get_filename (SpitDataImportsImportableMediaItem* self); -time_t* spit_data_imports_importable_media_item_get_exposure_time (SpitDataImportsImportableMediaItem* self); -gchar* spit_data_imports_importable_tag_get_name (SpitDataImportsImportableTag* self); -SpitDataImportsImportableTag* spit_data_imports_importable_tag_get_parent (SpitDataImportsImportableTag* self); -gchar* spit_data_imports_importable_event_get_name (SpitDataImportsImportableEvent* self); -gboolean spit_data_imports_importable_rating_is_unrated (SpitDataImportsImportableRating* self); -gboolean spit_data_imports_importable_rating_is_rejected (SpitDataImportsImportableRating* self); -gint spit_data_imports_importable_rating_get_value (SpitDataImportsImportableRating* self); -GtkWidget* spit_data_imports_dialog_pane_get_widget (SpitDataImportsDialogPane* self); -SpitDataImportsDialogPaneGeometryOptions spit_data_imports_dialog_pane_get_preferred_geometry (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_on_pane_installed (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_on_pane_uninstalled (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved0 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved1 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved2 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved3 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved4 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved5 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved6 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved7 (SpitDataImportsDialogPane* self); -void spit_data_imports_plugin_host_post_error (SpitDataImportsPluginHost* self, - GError* err); -void spit_data_imports_plugin_host_post_error_message (SpitDataImportsPluginHost* self, - const gchar* msg); -void spit_data_imports_plugin_host_start_importing (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_stop_importing (SpitDataImportsPluginHost* self); -SpitDataImportsDataImporter* spit_data_imports_plugin_host_get_data_importer (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_install_dialog_pane (SpitDataImportsPluginHost* self, - SpitDataImportsDialogPane* pane, - SpitDataImportsPluginHostButtonMode mode); -void spit_data_imports_plugin_host_install_static_message_pane (SpitDataImportsPluginHost* self, - const gchar* message, - SpitDataImportsPluginHostButtonMode mode); -void spit_data_imports_plugin_host_install_library_selection_pane (SpitDataImportsPluginHost* self, - const gchar* welcome_message, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1, - const gchar* file_select_label); -void spit_data_imports_plugin_host_install_import_progress_pane (SpitDataImportsPluginHost* self, - const gchar* message); -void spit_data_imports_plugin_host_update_import_progress_pane (SpitDataImportsPluginHost* self, - gdouble progress, - const gchar* progress_message); -void spit_data_imports_plugin_host_prepare_media_items_for_import (SpitDataImportsPluginHost* self, - SpitDataImportsImportableMediaItem** items, - int items_length1, - gdouble progress, - gdouble host_progress_delta, - const gchar* progress_message); -void spit_data_imports_plugin_host_finalize_import (SpitDataImportsPluginHost* self, - SpitDataImportsImportedItemsCountCallback report_imported_items_count, - void* report_imported_items_count_target, - const gchar* finalize_message); -void spit_data_imports_plugin_host_reserved0 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved1 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved2 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved3 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved4 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved5 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved6 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved7 (SpitDataImportsPluginHost* self); -SpitDataImportsDataImporter* spit_data_imports_service_create_data_importer (SpitDataImportsService* self, - SpitDataImportsPluginHost* host); -void spit_data_imports_service_reserved0 (SpitDataImportsService* self); -void spit_data_imports_service_reserved1 (SpitDataImportsService* self); -void spit_data_imports_service_reserved2 (SpitDataImportsService* self); -void spit_data_imports_service_reserved3 (SpitDataImportsService* self); -void spit_data_imports_service_reserved4 (SpitDataImportsService* self); -void spit_data_imports_service_reserved5 (SpitDataImportsService* self); -void spit_data_imports_service_reserved6 (SpitDataImportsService* self); -void spit_data_imports_service_reserved7 (SpitDataImportsService* self); - - -G_END_DECLS - -#endif diff --git a/plugins/shotwell-plugin-dev-1.0.vapi b/plugins/shotwell-plugin-dev-1.0.vapi deleted file mode 100644 index e297926..0000000 --- a/plugins/shotwell-plugin-dev-1.0.vapi +++ /dev/null @@ -1,416 +0,0 @@ -/* shotwell-plugin-dev-1.0.vapi generated by valac 0.40.4, do not modify. */ - -namespace Spit { - namespace DataImports { - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface DataImporter : GLib.Object { - public abstract Spit.DataImports.Service get_service (); - public abstract bool is_running (); - public abstract void on_file_selected (GLib.File file); - public abstract void on_library_selected (Spit.DataImports.ImportableLibrary library); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - public abstract void start (); - public abstract void stop (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface DialogPane : GLib.Object { - public enum GeometryOptions { - NONE, - EXTENDED_SIZE, - RESIZABLE, - COLOSSAL_SIZE - } - public abstract Spit.DataImports.DialogPane.GeometryOptions get_preferred_geometry (); - public abstract Gtk.Widget get_widget (); - public abstract void on_pane_installed (); - public abstract void on_pane_uninstalled (); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface ImportableEvent : GLib.Object { - public abstract string get_name (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface ImportableLibrary : GLib.Object { - public abstract string get_display_name (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface ImportableMediaItem : GLib.Object { - public abstract Spit.DataImports.ImportableEvent? get_event (); - public abstract time_t? get_exposure_time (); - public abstract string get_filename (); - public abstract string get_folder_path (); - public abstract Spit.DataImports.ImportableRating get_rating (); - public abstract Spit.DataImports.ImportableTag[] get_tags (); - public abstract string? get_title (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface ImportableRating : GLib.Object { - public abstract int get_value (); - public abstract bool is_rejected (); - public abstract bool is_unrated (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface ImportableTag : GLib.Object { - public abstract string get_name (); - public abstract Spit.DataImports.ImportableTag? get_parent (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface PluginHost : GLib.Object, Spit.HostInterface { - public enum ButtonMode { - CLOSE, - CANCEL - } - public abstract void finalize_import (Spit.DataImports.ImportedItemsCountCallback report_imported_items_count, string? finalize_message = null); - public abstract Spit.DataImports.DataImporter get_data_importer (); - public abstract void install_dialog_pane (Spit.DataImports.DialogPane pane, Spit.DataImports.PluginHost.ButtonMode mode = ButtonMode.CANCEL); - public abstract void install_import_progress_pane (string message); - public abstract void install_library_selection_pane (string welcome_message, Spit.DataImports.ImportableLibrary[] discovered_libraries, string? file_select_label); - public abstract void install_static_message_pane (string message, Spit.DataImports.PluginHost.ButtonMode mode = ButtonMode.CANCEL); - public abstract void post_error (GLib.Error err); - public abstract void post_error_message (string msg); - public abstract void prepare_media_items_for_import (Spit.DataImports.ImportableMediaItem[] items, double progress, double host_progress_delta = 0.0, string? progress_message = null); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - public abstract void start_importing (); - public abstract void stop_importing (); - public abstract void update_import_progress_pane (double progress, string? progress_message = null); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Service : GLib.Object, Spit.Pluggable { - public abstract Spit.DataImports.DataImporter create_data_importer (Spit.DataImports.PluginHost host); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public errordomain DataImportError { - UNSUPPORTED_VERSION - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public delegate void ImportedItemsCountCallback (int imported_items_count); - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public const int CURRENT_INTERFACE; - } - namespace Publishing { - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Authenticator : GLib.Object { - public abstract void authenticate (); - public abstract bool can_logout (); - public abstract GLib.HashTable get_authentication_parameter (); - public abstract void logout (); - public abstract void refresh (); - public signal void authenticated (); - public signal void authentication_failed (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface AuthenticatorFactory : GLib.Object { - public abstract Spit.Publishing.Authenticator? create (string provider, Spit.Publishing.PluginHost host); - public abstract Gee.List get_available_authenticators (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface DialogPane : GLib.Object { - public enum GeometryOptions { - NONE, - EXTENDED_SIZE, - RESIZABLE, - COLOSSAL_SIZE - } - public abstract Spit.Publishing.DialogPane.GeometryOptions get_preferred_geometry (); - public abstract Gtk.Widget get_widget (); - public abstract void on_pane_installed (); - public abstract void on_pane_uninstalled (); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface PluginHost : GLib.Object, Spit.HostInterface { - public enum ButtonMode { - CLOSE, - CANCEL - } - public abstract Spit.Publishing.Publisher.MediaType get_publishable_media_type (); - public abstract Spit.Publishing.Publishable[] get_publishables (); - public abstract Spit.Publishing.Publisher get_publisher (); - public abstract void install_account_fetch_wait_pane (); - public abstract void install_dialog_pane (Spit.Publishing.DialogPane pane, Spit.Publishing.PluginHost.ButtonMode mode = ButtonMode.CANCEL); - public abstract void install_login_wait_pane (); - public abstract void install_pango_message_pane (string markup, Spit.Publishing.PluginHost.ButtonMode mode = ButtonMode.CANCEL); - public abstract void install_static_message_pane (string message, Spit.Publishing.PluginHost.ButtonMode mode = ButtonMode.CANCEL); - public abstract void install_success_pane (); - public abstract void install_welcome_pane (string welcome_message, Spit.Publishing.LoginCallback on_login_clicked); - public abstract void post_error (GLib.Error err); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - public abstract Spit.Publishing.ProgressCallback? serialize_publishables (int content_major_axis, bool strip_metadata = false); - public abstract void set_dialog_default_widget (Gtk.Widget widget); - public abstract void set_service_locked (bool is_locked); - public abstract void stop_publishing (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Publishable : GLib.Object { - public const string PARAM_STRING_BASENAME; - public const string PARAM_STRING_COMMENT; - public const string PARAM_STRING_EVENTCOMMENT; - public const string PARAM_STRING_TITLE; - public abstract GLib.DateTime get_exposure_date_time (); - public abstract Spit.Publishing.Publisher.MediaType get_media_type (); - public abstract string? get_param_string (string name); - public abstract string[] get_publishing_keywords (); - public abstract string get_publishing_name (); - public abstract GLib.File? get_serialized_file (); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Publisher : GLib.Object { - public enum MediaType { - NONE, - PHOTO, - VIDEO - } - public abstract Spit.Publishing.Service get_service (); - public abstract bool is_running (); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - public abstract void start (); - public abstract void stop (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Service : GLib.Object, Spit.Pluggable { - public abstract Spit.Publishing.Publisher create_publisher (Spit.Publishing.PluginHost host); - public abstract Spit.Publishing.Publisher.MediaType get_supported_media (); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public errordomain PublishingError { - NO_ANSWER, - COMMUNICATION_FAILED, - PROTOCOL_ERROR, - SERVICE_ERROR, - MALFORMED_RESPONSE, - LOCAL_FILE_ERROR, - EXPIRED_SESSION, - SSL_FAILED - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public delegate void LoginCallback (); - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public delegate void ProgressCallback (int file_number, double fraction_complete); - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public const int CURRENT_INTERFACE; - } - namespace Transitions { - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public class Motion : GLib.Object { - public Motion (Spit.Transitions.Direction direction, int fps, int duration_msec); - public double get_alpha (int frame_number); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - public Spit.Transitions.Direction direction { get; private set; } - public int duration_msec { get; private set; } - public int fps { get; private set; } - public int tick_msec { get; } - public int total_frames { get; } - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public class Visuals : GLib.Object { - public Visuals (Gdk.Pixbuf? from_pixbuf, Gdk.Rectangle from_pos, Gdk.Pixbuf? to_pixbuf, Gdk.Rectangle to_pos, Gdk.RGBA bg_color); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - public Gdk.RGBA bg_color { get; private set; } - public Gdk.Pixbuf? from_pixbuf { get; private set; } - public Gdk.Rectangle from_pos { get; private set; } - public Gdk.Pixbuf? to_pixbuf { get; private set; } - public Gdk.Rectangle to_pos { get; private set; } - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Descriptor : GLib.Object, Spit.Pluggable { - public abstract Spit.Transitions.Effect create (Spit.HostInterface host); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Effect : GLib.Object { - public abstract void advance (Spit.Transitions.Visuals visuals, Spit.Transitions.Motion motion, int frame_number); - public abstract void cancel (); - public abstract void get_fps (out int desired_fps, out int min_fps); - public abstract bool needs_clear_background (); - public abstract void paint (Spit.Transitions.Visuals visuals, Spit.Transitions.Motion motion, Cairo.Context ctx, int width, int height, int frame_number); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - public abstract void start (Spit.Transitions.Visuals visuals, Spit.Transitions.Motion motion); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public enum Direction { - LEFT, - RIGHT, - FORWARD, - BACKWARD - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public const int CURRENT_INTERFACE; - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface HostInterface : GLib.Object { - public abstract bool get_config_bool (string key, bool def); - public abstract double get_config_double (string key, double def); - public abstract int get_config_int (string key, int def); - public abstract string? get_config_string (string key, string? def); - public abstract GLib.File get_module_file (); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - public abstract void set_config_bool (string key, bool val); - public abstract void set_config_double (string key, double val); - public abstract void set_config_int (string key, int val); - public abstract void set_config_string (string key, string? val); - public abstract void unset_config_key (string key); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Module : GLib.Object { - public abstract unowned string get_id (); - public abstract unowned string get_module_name (); - public abstract unowned Spit.Pluggable[]? get_pluggables (); - public abstract unowned string get_version (); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public interface Pluggable : GLib.Object { - public abstract void activation (bool enabled); - public abstract unowned string get_id (); - public abstract void get_info (ref Spit.PluggableInfo info); - public abstract int get_pluggable_interface (int min_host_interface, int max_host_interface); - public abstract unowned string get_pluggable_name (); - protected virtual void reserved0 (); - protected virtual void reserved1 (); - protected virtual void reserved2 (); - protected virtual void reserved3 (); - protected virtual void reserved4 (); - protected virtual void reserved5 (); - protected virtual void reserved6 (); - protected virtual void reserved7 (); - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public struct EntryPointParams { - public int host_min_spit_interface; - public int host_max_spit_interface; - public int module_spit_interface; - public GLib.File module_file; - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public struct PluggableInfo { - public string? version; - public string? brief_description; - public string? authors; - public string? copyright; - public string? license; - public bool is_license_wordwrapped; - public string? website_url; - public string? website_name; - public string? translators; - public Gdk.Pixbuf[]? icons; - } - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h", has_target = false)] - public delegate Spit.Module? EntryPoint (Spit.EntryPointParams* @params); - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public const int CURRENT_INTERFACE; - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public const string ENTRY_POINT_NAME; - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public const int UNSUPPORTED_INTERFACE; - [CCode (cheader_filename = "shotwell-plugin-dev-1.0.h")] - public static int negotiate_interfaces (int min_host_interface, int max_host_interface, int plugin_interface); -} diff --git a/plugins/shotwell-publishing-extras/GalleryConnector.c b/plugins/shotwell-publishing-extras/GalleryConnector.c deleted file mode 100644 index bd25726..0000000 --- a/plugins/shotwell-publishing-extras/GalleryConnector.c +++ /dev/null @@ -1,13133 +0,0 @@ -/* GalleryConnector.c generated by valac 0.40.4, the Vala compiler - * generated from GalleryConnector.vala, do not modify */ - -/* Copyright 2012-2013 Joe Sapp nixphoeni@gentoo.org - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_PUBLISHING_GALLERY3 (shotwell_publishing_gallery3_get_type ()) -#define SHOTWELL_PUBLISHING_GALLERY3(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3)) -#define SHOTWELL_PUBLISHING_GALLERY3_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3Class)) -#define IS_SHOTWELL_PUBLISHING_GALLERY3(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_PUBLISHING_GALLERY3)) -#define IS_SHOTWELL_PUBLISHING_GALLERY3_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_PUBLISHING_GALLERY3)) -#define SHOTWELL_PUBLISHING_GALLERY3_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3Class)) - -typedef struct _ShotwellPublishingGallery3 ShotwellPublishingGallery3; -typedef struct _ShotwellPublishingGallery3Class ShotwellPublishingGallery3Class; -typedef struct _ShotwellPublishingGallery3Private ShotwellPublishingGallery3Private; -enum { - SHOTWELL_PUBLISHING_GALLERY3_0_PROPERTY, - SHOTWELL_PUBLISHING_GALLERY3_NUM_PROPERTIES -}; -static GParamSpec* shotwell_publishing_gallery3_properties[SHOTWELL_PUBLISHING_GALLERY3_NUM_PROPERTIES]; - -#define TYPE_GALLERY3_SERVICE (gallery3_service_get_type ()) -#define GALLERY3_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GALLERY3_SERVICE, Gallery3Service)) -#define GALLERY3_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GALLERY3_SERVICE, Gallery3ServiceClass)) -#define IS_GALLERY3_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GALLERY3_SERVICE)) -#define IS_GALLERY3_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GALLERY3_SERVICE)) -#define GALLERY3_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GALLERY3_SERVICE, Gallery3ServiceClass)) - -typedef struct _Gallery3Service Gallery3Service; -typedef struct _Gallery3ServiceClass Gallery3ServiceClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _Gallery3ServicePrivate Gallery3ServicePrivate; -enum { - GALLERY3_SERVICE_0_PROPERTY, - GALLERY3_SERVICE_NUM_PROPERTIES -}; -static GParamSpec* gallery3_service_properties[GALLERY3_SERVICE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER (publishing_gallery3_gallery_publisher_get_type ()) -#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher)) -#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisherClass)) -#define PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER)) -#define PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER)) -#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisherClass)) - -typedef struct _PublishingGallery3GalleryPublisher PublishingGallery3GalleryPublisher; -typedef struct _PublishingGallery3GalleryPublisherClass PublishingGallery3GalleryPublisherClass; - -#define PUBLISHING_GALLERY3_TYPE_ALBUM (publishing_gallery3_album_get_type ()) -#define PUBLISHING_GALLERY3_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_ALBUM, PublishingGallery3Album)) -#define PUBLISHING_GALLERY3_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_ALBUM, PublishingGallery3AlbumClass)) -#define PUBLISHING_GALLERY3_IS_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_ALBUM)) -#define PUBLISHING_GALLERY3_IS_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_ALBUM)) -#define PUBLISHING_GALLERY3_ALBUM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_ALBUM, PublishingGallery3AlbumClass)) - -typedef struct _PublishingGallery3Album PublishingGallery3Album; -typedef struct _PublishingGallery3AlbumClass PublishingGallery3AlbumClass; -typedef struct _PublishingGallery3AlbumPrivate PublishingGallery3AlbumPrivate; -typedef struct _PublishingGallery3ParamSpecAlbum PublishingGallery3ParamSpecAlbum; - -#define PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION (publishing_gallery3_base_gallery_transaction_get_type ()) -#define PUBLISHING_GALLERY3_BASE_GALLERY_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction)) -#define PUBLISHING_GALLERY3_BASE_GALLERY_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransactionClass)) -#define PUBLISHING_GALLERY3_IS_BASE_GALLERY_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_BASE_GALLERY_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION)) -#define PUBLISHING_GALLERY3_BASE_GALLERY_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransactionClass)) - -typedef struct _PublishingGallery3BaseGalleryTransaction PublishingGallery3BaseGalleryTransaction; -typedef struct _PublishingGallery3BaseGalleryTransactionClass PublishingGallery3BaseGalleryTransactionClass; -typedef struct _PublishingGallery3BaseGalleryTransactionPrivate PublishingGallery3BaseGalleryTransactionPrivate; - -#define PUBLISHING_GALLERY3_TYPE_SESSION (publishing_gallery3_session_get_type ()) -#define PUBLISHING_GALLERY3_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session)) -#define PUBLISHING_GALLERY3_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3SessionClass)) -#define PUBLISHING_GALLERY3_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_SESSION)) -#define PUBLISHING_GALLERY3_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_SESSION)) -#define PUBLISHING_GALLERY3_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3SessionClass)) - -typedef struct _PublishingGallery3Session PublishingGallery3Session; -typedef struct _PublishingGallery3SessionClass PublishingGallery3SessionClass; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION (publishing_gallery3_key_fetch_transaction_get_type ()) -#define PUBLISHING_GALLERY3_KEY_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, PublishingGallery3KeyFetchTransaction)) -#define PUBLISHING_GALLERY3_KEY_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, PublishingGallery3KeyFetchTransactionClass)) -#define PUBLISHING_GALLERY3_IS_KEY_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_KEY_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION)) -#define PUBLISHING_GALLERY3_KEY_FETCH_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, PublishingGallery3KeyFetchTransactionClass)) - -typedef struct _PublishingGallery3KeyFetchTransaction PublishingGallery3KeyFetchTransaction; -typedef struct _PublishingGallery3KeyFetchTransactionClass PublishingGallery3KeyFetchTransactionClass; -typedef struct _PublishingGallery3KeyFetchTransactionPrivate PublishingGallery3KeyFetchTransactionPrivate; - -#define PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION (publishing_gallery3_gallery_request_transaction_get_type ()) -#define PUBLISHING_GALLERY3_GALLERY_REQUEST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, PublishingGallery3GalleryRequestTransaction)) -#define PUBLISHING_GALLERY3_GALLERY_REQUEST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, PublishingGallery3GalleryRequestTransactionClass)) -#define PUBLISHING_GALLERY3_IS_GALLERY_REQUEST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_GALLERY_REQUEST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION)) -#define PUBLISHING_GALLERY3_GALLERY_REQUEST_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, PublishingGallery3GalleryRequestTransactionClass)) - -typedef struct _PublishingGallery3GalleryRequestTransaction PublishingGallery3GalleryRequestTransaction; -typedef struct _PublishingGallery3GalleryRequestTransactionClass PublishingGallery3GalleryRequestTransactionClass; -typedef struct _PublishingGallery3GalleryRequestTransactionPrivate PublishingGallery3GalleryRequestTransactionPrivate; - -#define PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION (publishing_gallery3_get_album_ur_ls_transaction_get_type ()) -#define PUBLISHING_GALLERY3_GET_ALBUM_UR_LS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION, PublishingGallery3GetAlbumURLsTransaction)) -#define PUBLISHING_GALLERY3_GET_ALBUM_UR_LS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION, PublishingGallery3GetAlbumURLsTransactionClass)) -#define PUBLISHING_GALLERY3_IS_GET_ALBUM_UR_LS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_GET_ALBUM_UR_LS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION)) -#define PUBLISHING_GALLERY3_GET_ALBUM_UR_LS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION, PublishingGallery3GetAlbumURLsTransactionClass)) - -typedef struct _PublishingGallery3GetAlbumURLsTransaction PublishingGallery3GetAlbumURLsTransaction; -typedef struct _PublishingGallery3GetAlbumURLsTransactionClass PublishingGallery3GetAlbumURLsTransactionClass; -typedef struct _PublishingGallery3GetAlbumURLsTransactionPrivate PublishingGallery3GetAlbumURLsTransactionPrivate; - -#define PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION (publishing_gallery3_get_albums_transaction_get_type ()) -#define PUBLISHING_GALLERY3_GET_ALBUMS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, PublishingGallery3GetAlbumsTransaction)) -#define PUBLISHING_GALLERY3_GET_ALBUMS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, PublishingGallery3GetAlbumsTransactionClass)) -#define PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION)) -#define PUBLISHING_GALLERY3_GET_ALBUMS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, PublishingGallery3GetAlbumsTransactionClass)) - -typedef struct _PublishingGallery3GetAlbumsTransaction PublishingGallery3GetAlbumsTransaction; -typedef struct _PublishingGallery3GetAlbumsTransactionClass PublishingGallery3GetAlbumsTransactionClass; -typedef struct _PublishingGallery3GetAlbumsTransactionPrivate PublishingGallery3GetAlbumsTransactionPrivate; -#define _publishing_gallery3_album_unref0(var) ((var == NULL) ? NULL : (var = (publishing_gallery3_album_unref (var), NULL))) - -#define PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION (publishing_gallery3_gallery_get_tag_transaction_get_type ()) -#define PUBLISHING_GALLERY3_GALLERY_GET_TAG_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION, PublishingGallery3GalleryGetTagTransaction)) -#define PUBLISHING_GALLERY3_GALLERY_GET_TAG_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION, PublishingGallery3GalleryGetTagTransactionClass)) -#define PUBLISHING_GALLERY3_IS_GALLERY_GET_TAG_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_GALLERY_GET_TAG_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION)) -#define PUBLISHING_GALLERY3_GALLERY_GET_TAG_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION, PublishingGallery3GalleryGetTagTransactionClass)) - -typedef struct _PublishingGallery3GalleryGetTagTransaction PublishingGallery3GalleryGetTagTransaction; -typedef struct _PublishingGallery3GalleryGetTagTransactionClass PublishingGallery3GalleryGetTagTransactionClass; -typedef struct _PublishingGallery3GalleryGetTagTransactionPrivate PublishingGallery3GalleryGetTagTransactionPrivate; -#define _json_object_unref0(var) ((var == NULL) ? NULL : (var = (json_object_unref (var), NULL))) -#define __vala_JsonNode_free0(var) ((var == NULL) ? NULL : (var = (_vala_JsonNode_free (var), NULL))) - -#define PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION (publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_type ()) -#define PUBLISHING_GALLERY3_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, PublishingGallery3GalleryGetItemTagsURLsTransaction)) -#define PUBLISHING_GALLERY3_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, PublishingGallery3GalleryGetItemTagsURLsTransactionClass)) -#define PUBLISHING_GALLERY3_IS_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION)) -#define PUBLISHING_GALLERY3_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, PublishingGallery3GalleryGetItemTagsURLsTransactionClass)) - -typedef struct _PublishingGallery3GalleryGetItemTagsURLsTransaction PublishingGallery3GalleryGetItemTagsURLsTransaction; -typedef struct _PublishingGallery3GalleryGetItemTagsURLsTransactionClass PublishingGallery3GalleryGetItemTagsURLsTransactionClass; -typedef struct _PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate; - -#define PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION (publishing_gallery3_gallery_set_tag_relationship_transaction_get_type ()) -#define PUBLISHING_GALLERY3_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION, PublishingGallery3GallerySetTagRelationshipTransaction)) -#define PUBLISHING_GALLERY3_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION, PublishingGallery3GallerySetTagRelationshipTransactionClass)) -#define PUBLISHING_GALLERY3_IS_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION)) -#define PUBLISHING_GALLERY3_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION, PublishingGallery3GallerySetTagRelationshipTransactionClass)) - -typedef struct _PublishingGallery3GallerySetTagRelationshipTransaction PublishingGallery3GallerySetTagRelationshipTransaction; -typedef struct _PublishingGallery3GallerySetTagRelationshipTransactionClass PublishingGallery3GallerySetTagRelationshipTransactionClass; -typedef struct _PublishingGallery3GallerySetTagRelationshipTransactionPrivate PublishingGallery3GallerySetTagRelationshipTransactionPrivate; - -#define PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION (publishing_gallery3_gallery_album_create_transaction_get_type ()) -#define PUBLISHING_GALLERY3_GALLERY_ALBUM_CREATE_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, PublishingGallery3GalleryAlbumCreateTransaction)) -#define PUBLISHING_GALLERY3_GALLERY_ALBUM_CREATE_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, PublishingGallery3GalleryAlbumCreateTransactionClass)) -#define PUBLISHING_GALLERY3_IS_GALLERY_ALBUM_CREATE_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_GALLERY_ALBUM_CREATE_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION)) -#define PUBLISHING_GALLERY3_GALLERY_ALBUM_CREATE_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, PublishingGallery3GalleryAlbumCreateTransactionClass)) - -typedef struct _PublishingGallery3GalleryAlbumCreateTransaction PublishingGallery3GalleryAlbumCreateTransaction; -typedef struct _PublishingGallery3GalleryAlbumCreateTransactionClass PublishingGallery3GalleryAlbumCreateTransactionClass; -typedef struct _PublishingGallery3GalleryAlbumCreateTransactionPrivate PublishingGallery3GalleryAlbumCreateTransactionPrivate; - -#define PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS (publishing_gallery3_publishing_parameters_get_type ()) -#define PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, PublishingGallery3PublishingParameters)) -#define PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, PublishingGallery3PublishingParametersClass)) -#define PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, PublishingGallery3PublishingParametersClass)) - -typedef struct _PublishingGallery3PublishingParameters PublishingGallery3PublishingParameters; -typedef struct _PublishingGallery3PublishingParametersClass PublishingGallery3PublishingParametersClass; -#define _publishing_gallery3_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_gallery3_publishing_parameters_unref (var), NULL))) - -#define PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION (publishing_gallery3_gallery_upload_transaction_get_type ()) -#define PUBLISHING_GALLERY3_GALLERY_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransaction)) -#define PUBLISHING_GALLERY3_GALLERY_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransactionClass)) -#define PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION)) -#define PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION)) -#define PUBLISHING_GALLERY3_GALLERY_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransactionClass)) - -typedef struct _PublishingGallery3GalleryUploadTransaction PublishingGallery3GalleryUploadTransaction; -typedef struct _PublishingGallery3GalleryUploadTransactionClass PublishingGallery3GalleryUploadTransactionClass; -typedef struct _PublishingGallery3GalleryUploadTransactionPrivate PublishingGallery3GalleryUploadTransactionPrivate; -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -typedef struct _PublishingGallery3GalleryPublisherPrivate PublishingGallery3GalleryPublisherPrivate; - -#define PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE (publishing_gallery3_publishing_options_pane_get_type ()) -#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane)) -#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPaneClass)) -#define PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPaneClass)) - -typedef struct _PublishingGallery3PublishingOptionsPane PublishingGallery3PublishingOptionsPane; -typedef struct _PublishingGallery3PublishingOptionsPaneClass PublishingGallery3PublishingOptionsPaneClass; -enum { - PUBLISHING_GALLERY3_GALLERY_PUBLISHER_0_PROPERTY, - PUBLISHING_GALLERY3_GALLERY_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_gallery3_gallery_publisher_properties[PUBLISHING_GALLERY3_GALLERY_PUBLISHER_NUM_PROPERTIES]; - -#define PUBLISHING_GALLERY3_CREDENTIALS_PANE_TYPE_MODE (publishing_gallery3_credentials_pane_mode_get_type ()) - -#define PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE (publishing_gallery3_credentials_pane_get_type ()) -#define PUBLISHING_GALLERY3_CREDENTIALS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane)) -#define PUBLISHING_GALLERY3_CREDENTIALS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPaneClass)) -#define PUBLISHING_GALLERY3_IS_CREDENTIALS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE)) -#define PUBLISHING_GALLERY3_IS_CREDENTIALS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE)) -#define PUBLISHING_GALLERY3_CREDENTIALS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPaneClass)) - -typedef struct _PublishingGallery3CredentialsPane PublishingGallery3CredentialsPane; -typedef struct _PublishingGallery3CredentialsPaneClass PublishingGallery3CredentialsPaneClass; - -#define PUBLISHING_GALLERY3_TYPE_UPLOADER (publishing_gallery3_uploader_get_type ()) -#define PUBLISHING_GALLERY3_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3Uploader)) -#define PUBLISHING_GALLERY3_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3UploaderClass)) -#define PUBLISHING_GALLERY3_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_UPLOADER)) -#define PUBLISHING_GALLERY3_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_UPLOADER)) -#define PUBLISHING_GALLERY3_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3UploaderClass)) - -typedef struct _PublishingGallery3Uploader PublishingGallery3Uploader; -typedef struct _PublishingGallery3UploaderClass PublishingGallery3UploaderClass; -#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL))) -typedef struct _PublishingGallery3PublishingOptionsPanePrivate PublishingGallery3PublishingOptionsPanePrivate; -enum { - PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_0_PROPERTY, - PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_gallery3_publishing_options_pane_properties[PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; -#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL))) -enum { - PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, - PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS -}; -static guint publishing_gallery3_publishing_options_pane_signals[PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingGallery3PublishingParametersPrivate PublishingGallery3PublishingParametersPrivate; -typedef struct _PublishingGallery3ParamSpecPublishingParameters PublishingGallery3ParamSpecPublishingParameters; -typedef struct _PublishingGallery3CredentialsPanePrivate PublishingGallery3CredentialsPanePrivate; - -#define PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID (publishing_gallery3_credentials_grid_get_type ()) -#define PUBLISHING_GALLERY3_CREDENTIALS_GRID(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGrid)) -#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGridClass)) -#define PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID)) -#define PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID)) -#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGridClass)) - -typedef struct _PublishingGallery3CredentialsGrid PublishingGallery3CredentialsGrid; -typedef struct _PublishingGallery3CredentialsGridClass PublishingGallery3CredentialsGridClass; -enum { - PUBLISHING_GALLERY3_CREDENTIALS_PANE_0_PROPERTY, - PUBLISHING_GALLERY3_CREDENTIALS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_gallery3_credentials_pane_properties[PUBLISHING_GALLERY3_CREDENTIALS_PANE_NUM_PROPERTIES]; -enum { - PUBLISHING_GALLERY3_CREDENTIALS_PANE_GO_BACK_SIGNAL, - PUBLISHING_GALLERY3_CREDENTIALS_PANE_LOGIN_SIGNAL, - PUBLISHING_GALLERY3_CREDENTIALS_PANE_NUM_SIGNALS -}; -static guint publishing_gallery3_credentials_pane_signals[PUBLISHING_GALLERY3_CREDENTIALS_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingGallery3CredentialsGridPrivate PublishingGallery3CredentialsGridPrivate; -enum { - PUBLISHING_GALLERY3_CREDENTIALS_GRID_0_PROPERTY, - PUBLISHING_GALLERY3_CREDENTIALS_GRID_PANE_WIDGET_PROPERTY, - PUBLISHING_GALLERY3_CREDENTIALS_GRID_NUM_PROPERTIES -}; -static GParamSpec* publishing_gallery3_credentials_grid_properties[PUBLISHING_GALLERY3_CREDENTIALS_GRID_NUM_PROPERTIES]; -enum { - PUBLISHING_GALLERY3_CREDENTIALS_GRID_GO_BACK_SIGNAL, - PUBLISHING_GALLERY3_CREDENTIALS_GRID_LOGIN_SIGNAL, - PUBLISHING_GALLERY3_CREDENTIALS_GRID_NUM_SIGNALS -}; -static guint publishing_gallery3_credentials_grid_signals[PUBLISHING_GALLERY3_CREDENTIALS_GRID_NUM_SIGNALS] = {0}; -typedef struct _PublishingGallery3SessionPrivate PublishingGallery3SessionPrivate; -typedef struct _PublishingGallery3UploaderPrivate PublishingGallery3UploaderPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _ShotwellPublishingGallery3 { - GObject parent_instance; - ShotwellPublishingGallery3Private * priv; -}; - -struct _ShotwellPublishingGallery3Class { - GObjectClass parent_class; -}; - -struct _ShotwellPublishingGallery3Private { - SpitPluggable** pluggables; - gint pluggables_length1; - gint _pluggables_size_; -}; - -struct _Gallery3Service { - GObject parent_instance; - Gallery3ServicePrivate * priv; -}; - -struct _Gallery3ServiceClass { - GObjectClass parent_class; -}; - -struct _PublishingGallery3Album { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingGallery3AlbumPrivate * priv; -}; - -struct _PublishingGallery3AlbumClass { - GTypeClass parent_class; - void (*finalize) (PublishingGallery3Album *self); -}; - -struct _PublishingGallery3AlbumPrivate { - gchar* _name; - gchar* _title; - gchar* _summary; - gchar* _parentname; - gchar* _url; - gchar* _path; - gboolean _editable; -}; - -struct _PublishingGallery3ParamSpecAlbum { - GParamSpec parent_instance; -}; - -struct _PublishingGallery3BaseGalleryTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingGallery3BaseGalleryTransactionPrivate * priv; - JsonParser* parser; -}; - -struct _PublishingGallery3BaseGalleryTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingGallery3KeyFetchTransaction { - PublishingGallery3BaseGalleryTransaction parent_instance; - PublishingGallery3KeyFetchTransactionPrivate * priv; -}; - -struct _PublishingGallery3KeyFetchTransactionClass { - PublishingGallery3BaseGalleryTransactionClass parent_class; -}; - -struct _PublishingGallery3KeyFetchTransactionPrivate { - gchar* key; -}; - -struct _PublishingGallery3GalleryRequestTransaction { - PublishingGallery3BaseGalleryTransaction parent_instance; - PublishingGallery3GalleryRequestTransactionPrivate * priv; -}; - -struct _PublishingGallery3GalleryRequestTransactionClass { - PublishingGallery3BaseGalleryTransactionClass parent_class; -}; - -struct _PublishingGallery3GetAlbumURLsTransaction { - PublishingGallery3GalleryRequestTransaction parent_instance; - PublishingGallery3GetAlbumURLsTransactionPrivate * priv; -}; - -struct _PublishingGallery3GetAlbumURLsTransactionClass { - PublishingGallery3GalleryRequestTransactionClass parent_class; -}; - -struct _PublishingGallery3GetAlbumsTransaction { - PublishingGallery3GalleryRequestTransaction parent_instance; - PublishingGallery3GetAlbumsTransactionPrivate * priv; -}; - -struct _PublishingGallery3GetAlbumsTransactionClass { - PublishingGallery3GalleryRequestTransactionClass parent_class; -}; - -struct _PublishingGallery3GetAlbumsTransactionPrivate { - gchar** _album_urls; - gint _album_urls_length1; - gint __album_urls_size_; - guint _urls_sent; - gboolean _more_urls; -}; - -struct _PublishingGallery3GalleryGetTagTransaction { - PublishingGallery3BaseGalleryTransaction parent_instance; - PublishingGallery3GalleryGetTagTransactionPrivate * priv; -}; - -struct _PublishingGallery3GalleryGetTagTransactionClass { - PublishingGallery3BaseGalleryTransactionClass parent_class; -}; - -struct _PublishingGallery3GalleryGetItemTagsURLsTransaction { - PublishingGallery3GalleryRequestTransaction parent_instance; - PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate * priv; -}; - -struct _PublishingGallery3GalleryGetItemTagsURLsTransactionClass { - PublishingGallery3GalleryRequestTransactionClass parent_class; -}; - -struct _PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate { - gchar* item_tags_path; -}; - -struct _PublishingGallery3GallerySetTagRelationshipTransaction { - PublishingGallery3BaseGalleryTransaction parent_instance; - PublishingGallery3GallerySetTagRelationshipTransactionPrivate * priv; -}; - -struct _PublishingGallery3GallerySetTagRelationshipTransactionClass { - PublishingGallery3BaseGalleryTransactionClass parent_class; -}; - -struct _PublishingGallery3GalleryAlbumCreateTransaction { - PublishingGallery3BaseGalleryTransaction parent_instance; - PublishingGallery3GalleryAlbumCreateTransactionPrivate * priv; -}; - -struct _PublishingGallery3GalleryAlbumCreateTransactionClass { - PublishingGallery3BaseGalleryTransactionClass parent_class; -}; - -struct _PublishingGallery3GalleryAlbumCreateTransactionPrivate { - PublishingGallery3PublishingParameters* _parameters; - gchar* session_url; -}; - -struct _PublishingGallery3GalleryUploadTransaction { - PublishingRESTSupportUploadTransaction parent_instance; - PublishingGallery3GalleryUploadTransactionPrivate * priv; -}; - -struct _PublishingGallery3GalleryUploadTransactionClass { - PublishingRESTSupportUploadTransactionClass parent_class; -}; - -struct _PublishingGallery3GalleryUploadTransactionPrivate { - PublishingGallery3Session* session; - JsonGenerator* generator; - PublishingGallery3PublishingParameters* parameters; - gchar* item_url; - gchar* item_path; - gchar* item_tags_path; -}; - -struct _PublishingGallery3GalleryPublisher { - GObject parent_instance; - PublishingGallery3GalleryPublisherPrivate * priv; -}; - -struct _PublishingGallery3GalleryPublisherClass { - GObjectClass parent_class; -}; - -struct _PublishingGallery3GalleryPublisherPrivate { - SpitPublishingPluginHost* host; - SpitPublishingProgressCallback progress_reporter; - gpointer progress_reporter_target; - GDestroyNotify progress_reporter_target_destroy_notify; - SpitPublishingService* service; - PublishingGallery3Session* session; - gboolean running; - PublishingGallery3Album** albums; - gint albums_length1; - gint _albums_size_; - gchar* key; - PublishingGallery3PublishingOptionsPane* publishing_options_pane; -}; - -typedef enum { - PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO, - PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY, - PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL -} PublishingGallery3CredentialsPaneMode; - -struct _PublishingGallery3PublishingOptionsPane { - GObject parent_instance; - PublishingGallery3PublishingOptionsPanePrivate * priv; -}; - -struct _PublishingGallery3PublishingOptionsPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingGallery3PublishingOptionsPanePrivate { - GtkBuilder* builder; - GtkGrid* pane_widget; - GtkLabel* title_label; - GtkRadioButton* use_existing_radio; - GtkComboBoxText* existing_albums_combo; - GtkRadioButton* create_new_radio; - GtkEntry* new_album_entry; - GtkComboBoxText* scaling_combo; - GtkEntry* pixels; - GtkCheckButton* strip_metadata_check; - GtkButton* publish_button; - GtkButton* logout_button; - PublishingGallery3Album** albums; - gint albums_length1; - gint _albums_size_; - SpitPublishingPluginHost* host; -}; - -struct _PublishingGallery3PublishingParameters { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingGallery3PublishingParametersPrivate * priv; -}; - -struct _PublishingGallery3PublishingParametersClass { - GTypeClass parent_class; - void (*finalize) (PublishingGallery3PublishingParameters *self); -}; - -struct _PublishingGallery3PublishingParametersPrivate { - gchar* _album_title; - gchar* _album_name; - gchar* _album_path; - gchar* _entity_title; - gint _photo_major_axis_size; - gboolean _strip_metadata; -}; - -struct _PublishingGallery3ParamSpecPublishingParameters { - GParamSpec parent_instance; -}; - -struct _PublishingGallery3CredentialsPane { - GObject parent_instance; - PublishingGallery3CredentialsPanePrivate * priv; -}; - -struct _PublishingGallery3CredentialsPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingGallery3CredentialsPanePrivate { - PublishingGallery3CredentialsGrid* frame; - GtkWidget* grid_widget; -}; - -struct _PublishingGallery3CredentialsGrid { - GObject parent_instance; - PublishingGallery3CredentialsGridPrivate * priv; -}; - -struct _PublishingGallery3CredentialsGridClass { - GObjectClass parent_class; -}; - -struct _PublishingGallery3CredentialsGridPrivate { - GtkGrid* _pane_widget; - SpitPublishingPluginHost* host; - GtkBuilder* builder; - GtkLabel* intro_message_label; - GtkEntry* url_entry; - GtkEntry* username_entry; - GtkEntry* password_entry; - GtkEntry* key_entry; - GtkButton* login_button; - GtkButton* go_back_button; - gchar* url; - gchar* username; - gchar* key; -}; - -struct _PublishingGallery3Session { - PublishingRESTSupportSession parent_instance; - PublishingGallery3SessionPrivate * priv; -}; - -struct _PublishingGallery3SessionClass { - PublishingRESTSupportSessionClass parent_class; -}; - -struct _PublishingGallery3SessionPrivate { - gchar* _url; - gchar* _username; - gchar* _key; -}; - -struct _PublishingGallery3Uploader { - PublishingRESTSupportBatchUploader parent_instance; - PublishingGallery3UploaderPrivate * priv; -}; - -struct _PublishingGallery3UploaderClass { - PublishingRESTSupportBatchUploaderClass parent_class; -}; - -struct _PublishingGallery3UploaderPrivate { - PublishingGallery3PublishingParameters* parameters; - gchar* _current_publishable_name; - SpitPublishingPublisherMediaType _current_media_type; - PublishingRESTSupportTransaction* _current_transaction; -}; - - -static gpointer shotwell_publishing_gallery3_parent_class = NULL; -static SpitModuleIface * shotwell_publishing_gallery3_spit_module_parent_iface = NULL; -static gpointer gallery3_service_parent_class = NULL; -static GdkPixbuf** gallery3_service_icon_pixbuf_set; -static gint gallery3_service_icon_pixbuf_set_length1; -static GdkPixbuf** gallery3_service_icon_pixbuf_set = NULL; -static gint gallery3_service_icon_pixbuf_set_length1 = 0; -static gint _gallery3_service_icon_pixbuf_set_size_ = 0; -static SpitPluggableIface * gallery3_service_spit_pluggable_parent_iface = NULL; -static SpitPublishingServiceIface * gallery3_service_spit_publishing_service_parent_iface = NULL; -static gpointer publishing_gallery3_album_parent_class = NULL; -static gpointer publishing_gallery3_base_gallery_transaction_parent_class = NULL; -static gpointer publishing_gallery3_key_fetch_transaction_parent_class = NULL; -static gpointer publishing_gallery3_gallery_request_transaction_parent_class = NULL; -static gpointer publishing_gallery3_get_album_ur_ls_transaction_parent_class = NULL; -static gpointer publishing_gallery3_get_albums_transaction_parent_class = NULL; -static gpointer publishing_gallery3_gallery_get_tag_transaction_parent_class = NULL; -static gpointer publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_parent_class = NULL; -static gpointer publishing_gallery3_gallery_set_tag_relationship_transaction_parent_class = NULL; -static gpointer publishing_gallery3_gallery_album_create_transaction_parent_class = NULL; -static gpointer publishing_gallery3_gallery_upload_transaction_parent_class = NULL; -static gpointer publishing_gallery3_gallery_publisher_parent_class = NULL; -static SpitPublishingPublisherIface * publishing_gallery3_gallery_publisher_spit_publishing_publisher_parent_iface = NULL; -static gpointer publishing_gallery3_publishing_options_pane_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_gallery3_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_gallery3_publishing_parameters_parent_class = NULL; -static gpointer publishing_gallery3_credentials_pane_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_gallery3_credentials_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_gallery3_credentials_grid_parent_class = NULL; -static gpointer publishing_gallery3_session_parent_class = NULL; -static gpointer publishing_gallery3_uploader_parent_class = NULL; - -#define G3_VERSION "0.1" -#define G3_LICENSE "\n" \ -"The Gallery3Publishing module is free software; you can redistribute i" \ -"t\n" \ -"and/or modify it under the terms of the GNU Lesser General Public\n" \ -"License as published by the Free Software Foundation; either version 2" \ -".1\n" \ -"of the License, or (at your option) any later version.\n" \ -"\n" \ -"The Gallery3Publishing module is distributed in the hope that it will " \ -"be\n" \ -"useful, but WITHOUT ANY WARRANTY; without even the implied warranty of" \ -"\n" \ -"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Less" \ -"er\n" \ -"General Public License for more details.\n" \ -"\n" \ -"You should have received a copy of the GNU Lesser General Public Licen" \ -"se\n" \ -"along with The Gallery3Publishing module; if not, write to the Free\n" \ -"Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n" \ -"02110-1301 USA\n" -#define WEBSITE_URL "https://github.com/sappjw/shotwell-gallery3" -GType shotwell_publishing_gallery3_get_type (void) G_GNUC_CONST; -#define SHOTWELL_PUBLISHING_GALLERY3_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3Private)) -ShotwellPublishingGallery3* shotwell_publishing_gallery3_new (GFile* module_file); -ShotwellPublishingGallery3* shotwell_publishing_gallery3_construct (GType object_type, - GFile* module_file); -Gallery3Service* gallery3_service_new (GFile* resource_directory); -Gallery3Service* gallery3_service_construct (GType object_type, - GFile* resource_directory); -GType gallery3_service_get_type (void) G_GNUC_CONST; -static void _vala_array_add1 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -static const gchar* shotwell_publishing_gallery3_real_get_module_name (SpitModule* base); -static const gchar* shotwell_publishing_gallery3_real_get_version (SpitModule* base); -static const gchar* shotwell_publishing_gallery3_real_get_id (SpitModule* base); -static SpitPluggable** shotwell_publishing_gallery3_real_get_pluggables (SpitModule* base, - int* result_length1); -static void shotwell_publishing_gallery3_finalize (GObject * obj); -#define GALLERY3_SERVICE_ICON_FILENAME "gallery3.png" -static gint gallery3_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -static const gchar* gallery3_service_real_get_id (SpitPluggable* base); -static const gchar* gallery3_service_real_get_pluggable_name (SpitPluggable* base); -static void gallery3_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, - int length); -static void gallery3_service_real_activation (SpitPluggable* base, - gboolean enabled); -static SpitPublishingPublisher* gallery3_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host); -PublishingGallery3GalleryPublisher* publishing_gallery3_gallery_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host); -PublishingGallery3GalleryPublisher* publishing_gallery3_gallery_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host); -GType publishing_gallery3_gallery_publisher_get_type (void) G_GNUC_CONST; -static SpitPublishingPublisherMediaType gallery3_service_real_get_supported_media (SpitPublishingService* base); -static void gallery3_service_finalize (GObject * obj); -#define PUBLISHING_GALLERY3_SERVICE_NAME "Gallery3" -#define PUBLISHING_GALLERY3_SERVICE_WELCOME_MESSAGE _ ("You are not currently logged into your Gallery.\n" \ -"\n" \ -"You must have already signed up for a Gallery3 account to complete the" \ -" login process.") -#define PUBLISHING_GALLERY3_DEFAULT_ALBUM_DIR _ ("Shotwell") -#define PUBLISHING_GALLERY3_DEFAULT_ALBUM_TITLE _ ("Shotwell default directory") -#define PUBLISHING_GALLERY3_REST_PATH "/index.php/rest" -gpointer publishing_gallery3_album_ref (gpointer instance); -void publishing_gallery3_album_unref (gpointer instance); -GParamSpec* publishing_gallery3_param_spec_album (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_gallery3_value_set_album (GValue* value, - gpointer v_object); -void publishing_gallery3_value_take_album (GValue* value, - gpointer v_object); -gpointer publishing_gallery3_value_get_album (const GValue* value); -GType publishing_gallery3_album_get_type (void) G_GNUC_CONST; -#define PUBLISHING_GALLERY3_ALBUM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_ALBUM, PublishingGallery3AlbumPrivate)) -PublishingGallery3Album* publishing_gallery3_album_new (JsonObject* collection); -PublishingGallery3Album* publishing_gallery3_album_construct (GType object_type, - JsonObject* collection); -static void publishing_gallery3_album_set_title (PublishingGallery3Album* self, - const gchar* value); -static void publishing_gallery3_album_set_name (PublishingGallery3Album* self, - const gchar* value); -static void publishing_gallery3_album_set_parentname (PublishingGallery3Album* self, - const gchar* value); -static void publishing_gallery3_album_set_url (PublishingGallery3Album* self, - const gchar* value); -static void publishing_gallery3_album_set_editable (PublishingGallery3Album* self, - gboolean value); -gchar* publishing_gallery3_strip_session_url (const gchar* url); -const gchar* publishing_gallery3_album_get_url (PublishingGallery3Album* self); -static void publishing_gallery3_album_set_path (PublishingGallery3Album* self, - const gchar* value); -const gchar* publishing_gallery3_album_get_name (PublishingGallery3Album* self); -const gchar* publishing_gallery3_album_get_title (PublishingGallery3Album* self); -const gchar* publishing_gallery3_album_get_summary (PublishingGallery3Album* self); -static void publishing_gallery3_album_set_summary (PublishingGallery3Album* self, - const gchar* value); -const gchar* publishing_gallery3_album_get_parentname (PublishingGallery3Album* self); -const gchar* publishing_gallery3_album_get_path (PublishingGallery3Album* self); -gboolean publishing_gallery3_album_get_editable (PublishingGallery3Album* self); -static void publishing_gallery3_album_finalize (PublishingGallery3Album * obj); -GType publishing_gallery3_base_gallery_transaction_get_type (void) G_GNUC_CONST; -GType publishing_gallery3_session_get_type (void) G_GNUC_CONST; -PublishingGallery3BaseGalleryTransaction* publishing_gallery3_base_gallery_transaction_new (PublishingGallery3Session* session, - const gchar* endpoint_url, - const gchar* item_path, - PublishingRESTSupportHttpMethod method); -PublishingGallery3BaseGalleryTransaction* publishing_gallery3_base_gallery_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* endpoint_url, - const gchar* item_path, - PublishingRESTSupportHttpMethod method); -JsonNode* publishing_gallery3_base_gallery_transaction_get_root_node (PublishingGallery3BaseGalleryTransaction* self, - GError** error); -static void publishing_gallery3_base_gallery_transaction_finalize (PublishingRESTSupportTransaction * obj); -GType publishing_gallery3_key_fetch_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_GALLERY3_KEY_FETCH_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, PublishingGallery3KeyFetchTransactionPrivate)) -PublishingGallery3KeyFetchTransaction* publishing_gallery3_key_fetch_transaction_new (PublishingGallery3Session* session, - const gchar* url, - const gchar* username, - const gchar* password); -PublishingGallery3KeyFetchTransaction* publishing_gallery3_key_fetch_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* url, - const gchar* username, - const gchar* password); -gchar* publishing_gallery3_key_fetch_transaction_get_key (PublishingGallery3KeyFetchTransaction* self); -static void publishing_gallery3_key_fetch_transaction_finalize (PublishingRESTSupportTransaction * obj); -GType publishing_gallery3_gallery_request_transaction_get_type (void) G_GNUC_CONST; -PublishingGallery3GalleryRequestTransaction* publishing_gallery3_gallery_request_transaction_new (PublishingGallery3Session* session, - const gchar* item, - PublishingRESTSupportHttpMethod method); -PublishingGallery3GalleryRequestTransaction* publishing_gallery3_gallery_request_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* item, - PublishingRESTSupportHttpMethod method); -const gchar* publishing_gallery3_session_get_url (PublishingGallery3Session* self); -const gchar* publishing_gallery3_session_get_key (PublishingGallery3Session* self); -GType publishing_gallery3_get_album_ur_ls_transaction_get_type (void) G_GNUC_CONST; -PublishingGallery3GetAlbumURLsTransaction* publishing_gallery3_get_album_ur_ls_transaction_new (PublishingGallery3Session* session); -PublishingGallery3GetAlbumURLsTransaction* publishing_gallery3_get_album_ur_ls_transaction_construct (GType object_type, - PublishingGallery3Session* session); -gchar** publishing_gallery3_get_album_ur_ls_transaction_get_album_urls (PublishingGallery3GetAlbumURLsTransaction* self, - int* result_length1); -static void _vala_array_add2 (gchar** * array, - int* length, - int* size, - gchar* value); -GType publishing_gallery3_get_albums_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_GALLERY3_GET_ALBUMS_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, PublishingGallery3GetAlbumsTransactionPrivate)) -PublishingGallery3GetAlbumsTransaction* publishing_gallery3_get_albums_transaction_new (PublishingGallery3Session* session, - gchar** _album_urls, - int _album_urls_length1, - guint start); -PublishingGallery3GetAlbumsTransaction* publishing_gallery3_get_albums_transaction_construct (GType object_type, - PublishingGallery3Session* session, - gchar** _album_urls, - int _album_urls_length1, - guint start); -static void publishing_gallery3_get_albums_transaction_set_album_urls (PublishingGallery3GetAlbumsTransaction* self, - gchar** value, - int value_length1); -gchar** publishing_gallery3_get_albums_transaction_get_album_urls (PublishingGallery3GetAlbumsTransaction* self, - int* result_length1); -static void publishing_gallery3_get_albums_transaction_set_urls_sent (PublishingGallery3GetAlbumsTransaction* self, - guint value); -guint publishing_gallery3_get_albums_transaction_get_urls_sent (PublishingGallery3GetAlbumsTransaction* self); -static void _vala_array_add3 (gchar** * array, - int* length, - int* size, - gchar* value); -static void publishing_gallery3_get_albums_transaction_set_more_urls (PublishingGallery3GetAlbumsTransaction* self, - gboolean value); -PublishingGallery3Album** publishing_gallery3_get_albums_transaction_get_albums (PublishingGallery3GetAlbumsTransaction* self, - int* result_length1, - GError** error); -static void _vala_array_add4 (PublishingGallery3Album** * array, - int* length, - int* size, - PublishingGallery3Album* value); -static gchar** _vala_array_dup2 (gchar** self, - int length); -gboolean publishing_gallery3_get_albums_transaction_get_more_urls (PublishingGallery3GetAlbumsTransaction* self); -static void publishing_gallery3_get_albums_transaction_finalize (PublishingRESTSupportTransaction * obj); -GType publishing_gallery3_gallery_get_tag_transaction_get_type (void) G_GNUC_CONST; -PublishingGallery3GalleryGetTagTransaction* publishing_gallery3_gallery_get_tag_transaction_new (PublishingGallery3Session* session, - const gchar* tag_name); -PublishingGallery3GalleryGetTagTransaction* publishing_gallery3_gallery_get_tag_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* tag_name); -static void _vala_JsonNode_free (JsonNode* self); -gchar* publishing_gallery3_gallery_get_tag_transaction_tag_url (PublishingGallery3GalleryGetTagTransaction* self); -GType publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_GALLERY3_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate)) -PublishingGallery3GalleryGetItemTagsURLsTransaction* publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_new (PublishingGallery3Session* session, - const gchar* item_url); -PublishingGallery3GalleryGetItemTagsURLsTransaction* publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* item_url); -gchar* publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_item_tags_path (PublishingGallery3GalleryGetItemTagsURLsTransaction* self); -static void publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_finalize (PublishingRESTSupportTransaction * obj); -GType publishing_gallery3_gallery_set_tag_relationship_transaction_get_type (void) G_GNUC_CONST; -PublishingGallery3GallerySetTagRelationshipTransaction* publishing_gallery3_gallery_set_tag_relationship_transaction_new (PublishingGallery3Session* session, - const gchar* item_tags_path, - const gchar* tag_url, - const gchar* item_url); -PublishingGallery3GallerySetTagRelationshipTransaction* publishing_gallery3_gallery_set_tag_relationship_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* item_tags_path, - const gchar* tag_url, - const gchar* item_url); -GType publishing_gallery3_gallery_album_create_transaction_get_type (void) G_GNUC_CONST; -gpointer publishing_gallery3_publishing_parameters_ref (gpointer instance); -void publishing_gallery3_publishing_parameters_unref (gpointer instance); -GParamSpec* publishing_gallery3_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_gallery3_value_set_publishing_parameters (GValue* value, - gpointer v_object); -void publishing_gallery3_value_take_publishing_parameters (GValue* value, - gpointer v_object); -gpointer publishing_gallery3_value_get_publishing_parameters (const GValue* value); -GType publishing_gallery3_publishing_parameters_get_type (void) G_GNUC_CONST; -#define PUBLISHING_GALLERY3_GALLERY_ALBUM_CREATE_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, PublishingGallery3GalleryAlbumCreateTransactionPrivate)) -PublishingGallery3GalleryAlbumCreateTransaction* publishing_gallery3_gallery_album_create_transaction_new (PublishingGallery3Session* session, - PublishingGallery3PublishingParameters* parameters); -PublishingGallery3GalleryAlbumCreateTransaction* publishing_gallery3_gallery_album_create_transaction_construct (GType object_type, - PublishingGallery3Session* session, - PublishingGallery3PublishingParameters* parameters); -static void publishing_gallery3_gallery_album_create_transaction_set_parameters (PublishingGallery3GalleryAlbumCreateTransaction* self, - PublishingGallery3PublishingParameters* value); -const gchar* publishing_gallery3_publishing_parameters_get_album_name (PublishingGallery3PublishingParameters* self); -const gchar* publishing_gallery3_publishing_parameters_get_album_title (PublishingGallery3PublishingParameters* self); -gchar* publishing_gallery3_gallery_album_create_transaction_get_new_album_path (PublishingGallery3GalleryAlbumCreateTransaction* self); -PublishingGallery3PublishingParameters* publishing_gallery3_gallery_album_create_transaction_get_parameters (PublishingGallery3GalleryAlbumCreateTransaction* self); -static void publishing_gallery3_gallery_album_create_transaction_finalize (PublishingRESTSupportTransaction * obj); -GType publishing_gallery3_gallery_upload_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_GALLERY3_GALLERY_UPLOAD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransactionPrivate)) -PublishingGallery3GalleryUploadTransaction* publishing_gallery3_gallery_upload_transaction_new (PublishingGallery3Session* session, - PublishingGallery3PublishingParameters* parameters, - SpitPublishingPublishable* publishable); -PublishingGallery3GalleryUploadTransaction* publishing_gallery3_gallery_upload_transaction_construct (GType object_type, - PublishingGallery3Session* session, - PublishingGallery3PublishingParameters* parameters, - SpitPublishingPublishable* publishable); -const gchar* publishing_gallery3_publishing_parameters_get_album_path (PublishingGallery3PublishingParameters* self); -static void _g_free0_ (gpointer var); -static gchar* publishing_gallery3_gallery_upload_transaction_get_new_item_url (PublishingGallery3GalleryUploadTransaction* self); -static void publishing_gallery3_gallery_upload_transaction_do_set_tag_relationship (PublishingGallery3GalleryUploadTransaction* self, - const gchar* tag_url, - GError** error); -static gchar* publishing_gallery3_gallery_upload_transaction_get_new_item_tags_path (PublishingGallery3GalleryUploadTransaction* self); -static gchar* publishing_gallery3_gallery_upload_transaction_get_tag_url (PublishingGallery3GalleryUploadTransaction* self, - const gchar* tag); -static void publishing_gallery3_gallery_upload_transaction_on_upload_completed (PublishingGallery3GalleryUploadTransaction* self, - GError** error); -gboolean publishing_gallery3_publishing_parameters_get_strip_metadata (PublishingGallery3PublishingParameters* self); -static void publishing_gallery3_gallery_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error); -static void publishing_gallery3_gallery_upload_transaction_finalize (PublishingRESTSupportTransaction * obj); -GType publishing_gallery3_publishing_options_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisherPrivate)) -#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER_BAD_FILE_MSG _ ("\n" \ -"\n" \ -"The file “%s” may not be supported by or may be too large for this ins" \ -"tance of Gallery3.") -#define PUBLISHING_GALLERY3_GALLERY_PUBLISHER_BAD_MOVIE_MSG _ ("\n" \ -"Note that Gallery3 only supports the video types that Flowplayer does.") -PublishingGallery3Session* publishing_gallery3_session_new (void); -PublishingGallery3Session* publishing_gallery3_session_construct (GType object_type); -static gboolean publishing_gallery3_gallery_publisher_real_is_running (SpitPublishingPublisher* base); -static SpitPublishingService* publishing_gallery3_gallery_publisher_real_get_service (SpitPublishingPublisher* base); -static void publishing_gallery3_gallery_publisher_real_start (SpitPublishingPublisher* base); -gchar* publishing_gallery3_gallery_publisher_get_api_key (PublishingGallery3GalleryPublisher* self); -static void publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (PublishingGallery3GalleryPublisher* self); -gchar* publishing_gallery3_gallery_publisher_get_gallery_url (PublishingGallery3GalleryPublisher* self); -gchar* publishing_gallery3_gallery_publisher_get_gallery_username (PublishingGallery3GalleryPublisher* self); -void publishing_gallery3_session_authenticate (PublishingGallery3Session* self, - const gchar* gallery_url, - const gchar* username, - const gchar* key); -static void publishing_gallery3_gallery_publisher_do_fetch_album_urls (PublishingGallery3GalleryPublisher* self); -static void publishing_gallery3_gallery_publisher_real_stop (SpitPublishingPublisher* base); -void publishing_gallery3_gallery_publisher_set_api_key (PublishingGallery3GalleryPublisher* self, - const gchar* key); -void publishing_gallery3_gallery_publisher_set_gallery_url (PublishingGallery3GalleryPublisher* self, - const gchar* url); -void publishing_gallery3_gallery_publisher_set_gallery_username (PublishingGallery3GalleryPublisher* self, - const gchar* username); -gboolean* publishing_gallery3_gallery_publisher_get_persistent_strip_metadata (PublishingGallery3GalleryPublisher* self); -static gboolean* _bool_dup (gboolean* self); -void publishing_gallery3_gallery_publisher_set_persistent_strip_metadata (PublishingGallery3GalleryPublisher* self, - gboolean strip_metadata); -gint* publishing_gallery3_gallery_publisher_get_scaling_constraint_id (PublishingGallery3GalleryPublisher* self); -static gint* _int_dup (gint* self); -void publishing_gallery3_gallery_publisher_set_scaling_constraint_id (PublishingGallery3GalleryPublisher* self, - gint constraint); -gint* publishing_gallery3_gallery_publisher_get_scaling_pixels (PublishingGallery3GalleryPublisher* self); -void publishing_gallery3_gallery_publisher_set_scaling_pixels (PublishingGallery3GalleryPublisher* self, - gint pixels); -static void publishing_gallery3_gallery_publisher_on_service_welcome_login (PublishingGallery3GalleryPublisher* self); -static void _publishing_gallery3_gallery_publisher_on_service_welcome_login_spit_publishing_login_callback (gpointer self); -GType publishing_gallery3_credentials_pane_mode_get_type (void) G_GNUC_CONST; -static void publishing_gallery3_gallery_publisher_do_show_credentials_pane (PublishingGallery3GalleryPublisher* self, - PublishingGallery3CredentialsPaneMode mode); -gchar* publishing_gallery3_credentials_pane_mode_to_string (PublishingGallery3CredentialsPaneMode self); -void publishing_gallery3_session_deauthenticate (PublishingGallery3Session* self); -GType publishing_gallery3_credentials_pane_get_type (void) G_GNUC_CONST; -PublishingGallery3CredentialsPane* publishing_gallery3_credentials_pane_new (SpitPublishingPluginHost* host, - PublishingGallery3CredentialsPaneMode mode, - const gchar* url, - const gchar* username, - const gchar* key); -PublishingGallery3CredentialsPane* publishing_gallery3_credentials_pane_construct (GType object_type, - SpitPublishingPluginHost* host, - PublishingGallery3CredentialsPaneMode mode, - const gchar* url, - const gchar* username, - const gchar* key); -static void publishing_gallery3_gallery_publisher_on_credentials_go_back (PublishingGallery3GalleryPublisher* self); -static void _publishing_gallery3_gallery_publisher_on_credentials_go_back_publishing_gallery3_credentials_pane_go_back (PublishingGallery3CredentialsPane* _sender, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_credentials_login (PublishingGallery3GalleryPublisher* self, - const gchar* url, - const gchar* username, - const gchar* password); -static void _publishing_gallery3_gallery_publisher_on_credentials_login_publishing_gallery3_credentials_pane_login (PublishingGallery3CredentialsPane* _sender, - const gchar* url, - const gchar* uname, - const gchar* password, - const gchar* key, - gpointer self); -static void publishing_gallery3_gallery_publisher_do_network_login (PublishingGallery3GalleryPublisher* self, - const gchar* url, - const gchar* username, - const gchar* password); -static void publishing_gallery3_gallery_publisher_on_key_fetch_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_gallery3_gallery_publisher_on_key_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_key_fetch_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_gallery3_gallery_publisher_on_key_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_album_urls_fetch_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_gallery3_gallery_publisher_on_album_urls_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_gallery3_gallery_publisher_do_fetch_albums (PublishingGallery3GalleryPublisher* self, - gchar** album_urls, - int album_urls_length1, - guint start); -static void publishing_gallery3_gallery_publisher_on_album_fetch_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_gallery3_gallery_publisher_on_album_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_album_fetch_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_gallery3_gallery_publisher_on_album_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_gallery3_gallery_publisher_do_show_publishing_options_pane (PublishingGallery3GalleryPublisher* self, - const gchar* url, - const gchar* username); -PublishingGallery3PublishingOptionsPane* publishing_gallery3_publishing_options_pane_new (SpitPublishingPluginHost* host, - const gchar* url, - const gchar* username, - PublishingGallery3Album** albums, - int albums_length1, - GtkBuilder* builder, - gboolean strip_metadata, - gint scaling_id, - gint scaling_pixels); -PublishingGallery3PublishingOptionsPane* publishing_gallery3_publishing_options_pane_construct (GType object_type, - SpitPublishingPluginHost* host, - const gchar* url, - const gchar* username, - PublishingGallery3Album** albums, - int albums_length1, - GtkBuilder* builder, - gboolean strip_metadata, - gint scaling_id, - gint scaling_pixels); -static void publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish (PublishingGallery3GalleryPublisher* self, - PublishingGallery3PublishingParameters* parameters); -static void _publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish_publishing_gallery3_publishing_options_pane_publish (PublishingGallery3PublishingOptionsPane* _sender, - PublishingGallery3PublishingParameters* parameters, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout (PublishingGallery3GalleryPublisher* self); -static void _publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout_publishing_gallery3_publishing_options_pane_logout (PublishingGallery3PublishingOptionsPane* _sender, - gpointer self); -static void publishing_gallery3_gallery_publisher_do_create_album (PublishingGallery3GalleryPublisher* self, - PublishingGallery3PublishingParameters* parameters); -static void publishing_gallery3_gallery_publisher_on_album_create_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_gallery3_gallery_publisher_on_album_create_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_album_create_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_gallery3_gallery_publisher_on_album_create_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_gallery3_gallery_publisher_do_publish (PublishingGallery3GalleryPublisher* self, - PublishingGallery3PublishingParameters* parameters); -gint publishing_gallery3_publishing_parameters_get_photo_major_axis_size (PublishingGallery3PublishingParameters* self); -GType publishing_gallery3_uploader_get_type (void) G_GNUC_CONST; -PublishingGallery3Uploader* publishing_gallery3_uploader_new (PublishingGallery3Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingGallery3PublishingParameters* parameters); -PublishingGallery3Uploader* publishing_gallery3_uploader_construct (GType object_type, - PublishingGallery3Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingGallery3PublishingParameters* parameters); -static void publishing_gallery3_gallery_publisher_on_publish_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published); -static void _publishing_gallery3_gallery_publisher_on_publish_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_publish_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportBatchUploader* _uploader, - GError* err); -static void _publishing_gallery3_gallery_publisher_on_publish_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self); -static void publishing_gallery3_gallery_publisher_on_upload_status_updated (PublishingGallery3GalleryPublisher* self, - gint file_number, - gdouble completed_fraction); -static void _publishing_gallery3_gallery_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -static void publishing_gallery3_gallery_publisher_do_show_success_pane (PublishingGallery3GalleryPublisher* self); -const gchar* publishing_gallery3_session_get_username (PublishingGallery3Session* self); -static void _vala_array_add5 (PublishingGallery3Album** * array, - int* length, - int* size, - PublishingGallery3Album* value); -void publishing_gallery3_publishing_parameters_set_album_path (PublishingGallery3PublishingParameters* self, - const gchar* value); -const gchar* publishing_gallery3_uploader_get_current_publishable_name (PublishingGallery3Uploader* self); -guint publishing_gallery3_uploader_get_status_code (PublishingGallery3Uploader* self); -SpitPublishingPublisherMediaType publishing_gallery3_uploader_get_current_publishable_type (PublishingGallery3Uploader* self); -gboolean publishing_gallery3_publishing_parameters_is_to_new_album (PublishingGallery3PublishingParameters* self); -static void publishing_gallery3_gallery_publisher_finalize (GObject * obj); -#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPanePrivate)) -#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_DEFAULT_ALBUM_NAME "" -#define PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LAST_ALBUM_CONFIG_KEY "last-album" -static PublishingGallery3Album** _vala_array_dup3 (PublishingGallery3Album** self, - int length); -static void publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked (PublishingGallery3PublishingOptionsPane* self); -static void _publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked (PublishingGallery3PublishingOptionsPane* self); -static void _publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_gallery3_publishing_options_pane_on_new_album_entry_changed (PublishingGallery3PublishingOptionsPane* self); -static void _publishing_gallery3_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed (PublishingGallery3PublishingOptionsPane* self); -static void _publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void publishing_gallery3_publishing_options_pane_on_pixels_changed (PublishingGallery3PublishingOptionsPane* self); -static void _publishing_gallery3_publishing_options_pane_on_pixels_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_gallery3_publishing_options_pane_on_logout_clicked (PublishingGallery3PublishingOptionsPane* self); -static void _publishing_gallery3_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_gallery3_publishing_options_pane_on_publish_clicked (PublishingGallery3PublishingOptionsPane* self); -static void _publishing_gallery3_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_new_to_new_album (const gchar* album_title); -PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_construct_to_new_album (GType object_type, - const gchar* album_title); -PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_new_to_existing_album (const gchar* album_path); -PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_construct_to_existing_album (GType object_type, - const gchar* album_path); -void publishing_gallery3_publishing_parameters_set_photo_major_axis_size (PublishingGallery3PublishingParameters* self, - gint value); -void publishing_gallery3_publishing_parameters_set_strip_metadata (PublishingGallery3PublishingParameters* self, - gboolean value); -static void publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (PublishingGallery3PublishingOptionsPane* self); -static void publishing_gallery3_publishing_options_pane_update_pixel_entry_sensitivity (PublishingGallery3PublishingOptionsPane* self); -void publishing_gallery3_publishing_options_pane_installed (PublishingGallery3PublishingOptionsPane* self); -static GtkWidget* publishing_gallery3_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_gallery3_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_gallery3_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void publishing_gallery3_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void g_cclosure_user_marshal_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_gallery3_publishing_options_pane_finalize (GObject * obj); -#define PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, PublishingGallery3PublishingParametersPrivate)) -static PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_new (void); -static PublishingGallery3PublishingParameters* publishing_gallery3_publishing_parameters_construct (GType object_type); -static void publishing_gallery3_publishing_parameters_set_album_name (PublishingGallery3PublishingParameters* self, - const gchar* value); -static void publishing_gallery3_publishing_parameters_set_album_title (PublishingGallery3PublishingParameters* self, - const gchar* value); -const gchar* publishing_gallery3_publishing_parameters_get_entity_title (PublishingGallery3PublishingParameters* self); -static void publishing_gallery3_publishing_parameters_set_entity_title (PublishingGallery3PublishingParameters* self, - const gchar* value); -static void publishing_gallery3_publishing_parameters_finalize (PublishingGallery3PublishingParameters * obj); -GType publishing_gallery3_credentials_grid_get_type (void) G_GNUC_CONST; -#define PUBLISHING_GALLERY3_CREDENTIALS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPanePrivate)) -PublishingGallery3CredentialsGrid* publishing_gallery3_credentials_grid_new (SpitPublishingPluginHost* host, - PublishingGallery3CredentialsPaneMode mode, - const gchar* url, - const gchar* username, - const gchar* key, - GtkBuilder* builder); -PublishingGallery3CredentialsGrid* publishing_gallery3_credentials_grid_construct (GType object_type, - SpitPublishingPluginHost* host, - PublishingGallery3CredentialsPaneMode mode, - const gchar* url, - const gchar* username, - const gchar* key, - GtkBuilder* builder); -GtkGrid* publishing_gallery3_credentials_grid_get_pane_widget (PublishingGallery3CredentialsGrid* self); -void publishing_gallery3_credentials_pane_notify_go_back (PublishingGallery3CredentialsPane* self); -void publishing_gallery3_credentials_pane_notify_login (PublishingGallery3CredentialsPane* self, - const gchar* url, - const gchar* uname, - const gchar* password, - const gchar* key); -static GtkWidget* publishing_gallery3_credentials_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_gallery3_credentials_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_gallery3_credentials_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void _publishing_gallery3_credentials_pane_notify_go_back_publishing_gallery3_credentials_grid_go_back (PublishingGallery3CredentialsGrid* _sender, - gpointer self); -static void _publishing_gallery3_credentials_pane_notify_login_publishing_gallery3_credentials_grid_login (PublishingGallery3CredentialsGrid* _sender, - const gchar* url, - const gchar* username, - const gchar* password, - const gchar* key, - gpointer self); -void publishing_gallery3_credentials_grid_installed (PublishingGallery3CredentialsGrid* self); -static void publishing_gallery3_credentials_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void g_cclosure_user_marshal_VOID__STRING_STRING_STRING_STRING (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_gallery3_credentials_pane_finalize (GObject * obj); -#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGridPrivate)) -#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_INTRO_MESSAGE _ ("Enter the URL for your Gallery3 site and the username and password (or" \ -" API key) for your Gallery3 account.") -#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_FAILED_RETRY_MESSAGE _ ("The username and password or API key were incorrect. To try again, re-" \ -"enter your username and password below.") -#define PUBLISHING_GALLERY3_CREDENTIALS_GRID_NOT_GALLERY_URL_MESSAGE _ ("The URL entered does not appear to be the main directory of a Gallery3" \ -" instance. Please make sure you typed it correctly and it does not hav" \ -"e any trailing components (e.g., index.php).") -static void publishing_gallery3_credentials_grid_set_pane_widget (PublishingGallery3CredentialsGrid* self, - GtkGrid* value); -static void publishing_gallery3_credentials_grid_on_url_or_username_changed (PublishingGallery3CredentialsGrid* self); -static void _publishing_gallery3_credentials_grid_on_url_or_username_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_gallery3_credentials_grid_on_go_back_button_clicked (PublishingGallery3CredentialsGrid* self); -static void _publishing_gallery3_credentials_grid_on_go_back_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_gallery3_credentials_grid_on_login_button_clicked (PublishingGallery3CredentialsGrid* self); -static void _publishing_gallery3_credentials_grid_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_gallery3_credentials_grid_finalize (GObject * obj); -static void _vala_publishing_gallery3_credentials_grid_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_publishing_gallery3_credentials_grid_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -#define PUBLISHING_GALLERY3_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3SessionPrivate)) -static gboolean publishing_gallery3_session_real_is_authenticated (PublishingRESTSupportSession* base); -static void publishing_gallery3_session_set_url (PublishingGallery3Session* self, - const gchar* value); -static void publishing_gallery3_session_set_username (PublishingGallery3Session* self, - const gchar* value); -static void publishing_gallery3_session_set_key (PublishingGallery3Session* self, - const gchar* value); -static void publishing_gallery3_session_finalize (PublishingRESTSupportSession * obj); -#define PUBLISHING_GALLERY3_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3UploaderPrivate)) -static PublishingRESTSupportTransaction* publishing_gallery3_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable); -static void publishing_gallery3_uploader_finalize (PublishingRESTSupportBatchUploader * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static void -_vala_array_add1 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if ((*length) == (*size)) { -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 1274 "GalleryConnector.c" - } -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[(*length)++] = value; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[*length] = NULL; -#line 1280 "GalleryConnector.c" -} - - -ShotwellPublishingGallery3* -shotwell_publishing_gallery3_construct (GType object_type, - GFile* module_file) -{ - ShotwellPublishingGallery3 * self = NULL; - GFile* resource_directory = NULL; - GFile* _tmp0_; - SpitPluggable** _tmp1_; - gint _tmp1__length1; - Gallery3Service* _tmp2_; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (G_IS_FILE (module_file), NULL); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (ShotwellPublishingGallery3*) g_object_new (object_type, NULL); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_file_get_parent (module_file); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - resource_directory = _tmp0_; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->pluggables; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1__length1 = self->priv->pluggables_length1; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = gallery3_service_new (resource_directory); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_array_add1 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (resource_directory); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 1314 "GalleryConnector.c" -} - - -ShotwellPublishingGallery3* -shotwell_publishing_gallery3_new (GFile* module_file) -{ -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return shotwell_publishing_gallery3_construct (TYPE_SHOTWELL_PUBLISHING_GALLERY3, module_file); -#line 1323 "GalleryConnector.c" -} - - -static const gchar* -shotwell_publishing_gallery3_real_get_module_name (SpitModule* base) -{ - ShotwellPublishingGallery3 * self; - const gchar* result = NULL; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _ ("Gallery3 publishing module"); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1338 "GalleryConnector.c" -} - - -static const gchar* -shotwell_publishing_gallery3_real_get_version (SpitModule* base) -{ - ShotwellPublishingGallery3 * self; - const gchar* result = NULL; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = G3_VERSION; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1353 "GalleryConnector.c" -} - - -static const gchar* -shotwell_publishing_gallery3_real_get_id (SpitModule* base) -{ - ShotwellPublishingGallery3 * self; - const gchar* result = NULL; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = "org.yorba.shotwell.sharing.gallery3"; -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1368 "GalleryConnector.c" -} - - -static SpitPluggable** -shotwell_publishing_gallery3_real_get_pluggables (SpitModule* base, - int* result_length1) -{ - ShotwellPublishingGallery3 * self; - SpitPluggable** result = NULL; - SpitPluggable** _tmp0_; - gint _tmp0__length1; - SpitPluggable** _tmp1_; - gint _tmp1__length1; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->pluggables; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0__length1 = self->priv->pluggables_length1; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp0_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1__length1 = _tmp0__length1; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (result_length1) { -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *result_length1 = _tmp1__length1; -#line 1396 "GalleryConnector.c" - } -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp1_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1402 "GalleryConnector.c" -} - - -static void -shotwell_publishing_gallery3_class_init (ShotwellPublishingGallery3Class * klass) -{ -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - shotwell_publishing_gallery3_parent_class = g_type_class_peek_parent (klass); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (ShotwellPublishingGallery3Private)); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (klass)->finalize = shotwell_publishing_gallery3_finalize; -#line 1415 "GalleryConnector.c" -} - - -static void -shotwell_publishing_gallery3_spit_module_interface_init (SpitModuleIface * iface) -{ -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - shotwell_publishing_gallery3_spit_module_parent_iface = g_type_interface_peek_parent (iface); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_module_name = (const gchar* (*) (SpitModule *)) shotwell_publishing_gallery3_real_get_module_name; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_version = (const gchar* (*) (SpitModule *)) shotwell_publishing_gallery3_real_get_version; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_id = (const gchar* (*) (SpitModule *)) shotwell_publishing_gallery3_real_get_id; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_pluggables = (SpitPluggable** (*) (SpitModule *, int*)) shotwell_publishing_gallery3_real_get_pluggables; -#line 1432 "GalleryConnector.c" -} - - -static void -shotwell_publishing_gallery3_instance_init (ShotwellPublishingGallery3 * self) -{ - SpitPluggable** _tmp0_; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = SHOTWELL_PUBLISHING_GALLERY3_GET_PRIVATE (self); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_new0 (SpitPluggable*, 0 + 1); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->pluggables = _tmp0_; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->pluggables_length1 = 0; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_pluggables_size_ = self->priv->pluggables_length1; -#line 1450 "GalleryConnector.c" -} - - -static void -shotwell_publishing_gallery3_finalize (GObject * obj) -{ - ShotwellPublishingGallery3 * self; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_PUBLISHING_GALLERY3, ShotwellPublishingGallery3); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->pluggables = (_vala_array_free (self->priv->pluggables, self->priv->pluggables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (shotwell_publishing_gallery3_parent_class)->finalize (obj); -#line 1464 "GalleryConnector.c" -} - - -GType -shotwell_publishing_gallery3_get_type (void) -{ - static volatile gsize shotwell_publishing_gallery3_type_id__volatile = 0; - if (g_once_init_enter (&shotwell_publishing_gallery3_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ShotwellPublishingGallery3Class), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_publishing_gallery3_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellPublishingGallery3), 0, (GInstanceInitFunc) shotwell_publishing_gallery3_instance_init, NULL }; - static const GInterfaceInfo spit_module_info = { (GInterfaceInitFunc) shotwell_publishing_gallery3_spit_module_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType shotwell_publishing_gallery3_type_id; - shotwell_publishing_gallery3_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellPublishingGallery3", &g_define_type_info, 0); - g_type_add_interface_static (shotwell_publishing_gallery3_type_id, SPIT_TYPE_MODULE, &spit_module_info); - g_once_init_leave (&shotwell_publishing_gallery3_type_id__volatile, shotwell_publishing_gallery3_type_id); - } - return shotwell_publishing_gallery3_type_id__volatile; -} - - -Gallery3Service* -gallery3_service_construct (GType object_type, - GFile* resource_directory) -{ - Gallery3Service * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (Gallery3Service*) g_object_new (object_type, NULL); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = gallery3_service_icon_pixbuf_set; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0__length1 = gallery3_service_icon_pixbuf_set_length1; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp0_ == NULL) { -#line 1501 "GalleryConnector.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" GALLERY3_SERVICE_ICON_FILENAME, &_tmp1_); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gallery3_service_icon_pixbuf_set = (_vala_array_free (gallery3_service_icon_pixbuf_set, gallery3_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gallery3_service_icon_pixbuf_set = _tmp2_; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gallery3_service_icon_pixbuf_set_length1 = _tmp1_; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _gallery3_service_icon_pixbuf_set_size_ = gallery3_service_icon_pixbuf_set_length1; -#line 1514 "GalleryConnector.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 1518 "GalleryConnector.c" -} - - -Gallery3Service* -gallery3_service_new (GFile* resource_directory) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return gallery3_service_construct (TYPE_GALLERY3_SERVICE, resource_directory); -#line 1527 "GalleryConnector.c" -} - - -static gint -gallery3_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - Gallery3Service * self; - gint result = 0; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1544 "GalleryConnector.c" -} - - -static const gchar* -gallery3_service_real_get_id (SpitPluggable* base) -{ - Gallery3Service * self; - const gchar* result = NULL; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = "publishing-gallery3"; -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1559 "GalleryConnector.c" -} - - -static const gchar* -gallery3_service_real_get_pluggable_name (SpitPluggable* base) -{ - Gallery3Service * self; - const gchar* result = NULL; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = "Gallery3"; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1574 "GalleryConnector.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? g_object_ref (self) : NULL; -#line 1583 "GalleryConnector.c" -} - - -static GdkPixbuf** -_vala_array_dup1 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - for (i = 0; i < length; i++) { -#line 1597 "GalleryConnector.c" - GdkPixbuf* _tmp0_; -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result[i] = _tmp0_; -#line 1603 "GalleryConnector.c" - } -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1607 "GalleryConnector.c" -} - - -static void -gallery3_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - Gallery3Service * self; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - GdkPixbuf** _tmp6_; - gint _tmp6__length1; - GdkPixbuf** _tmp7_; - gint _tmp7__length1; -#line 85 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service); -#line 85 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (info != NULL); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup ("Joe Sapp"); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 ((*info).authors); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).authors = _tmp0_; -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = g_strdup ("2012-2013 Joe Sapp"); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 ((*info).copyright); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).copyright = _tmp1_; -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 ((*info).translators); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).translators = _tmp2_; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = g_strdup (G3_VERSION); -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 ((*info).version); -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).version = _tmp3_; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = g_strdup (WEBSITE_URL); -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 ((*info).website_url); -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).website_url = _tmp4_; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).is_license_wordwrapped = FALSE; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = g_strdup (G3_LICENSE); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 ((*info).license); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).license = _tmp5_; -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = gallery3_service_icon_pixbuf_set; -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6__length1 = gallery3_service_icon_pixbuf_set_length1; -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = (_tmp6_ != NULL) ? _vala_array_dup1 (_tmp6_, _tmp6__length1) : ((gpointer) _tmp6_); -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7__length1 = _tmp6__length1; -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).icons = _tmp7_; -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*info).icons_length1 = _tmp7__length1; -#line 1682 "GalleryConnector.c" -} - - -static void -gallery3_service_real_activation (SpitPluggable* base, - gboolean enabled) -{ - Gallery3Service * self; -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service); -#line 1693 "GalleryConnector.c" -} - - -static SpitPublishingPublisher* -gallery3_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - Gallery3Service * self; - SpitPublishingPublisher* result = NULL; - PublishingGallery3GalleryPublisher* _tmp0_; -#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service); -#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_gallery3_gallery_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1714 "GalleryConnector.c" -} - - -static SpitPublishingPublisherMediaType -gallery3_service_real_get_supported_media (SpitPublishingService* base) -{ - Gallery3Service * self; - SpitPublishingPublisherMediaType result = 0; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GALLERY3_SERVICE, Gallery3Service); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1729 "GalleryConnector.c" -} - - -static void -gallery3_service_class_init (Gallery3ServiceClass * klass) -{ -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gallery3_service_parent_class = g_type_class_peek_parent (klass); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (klass)->finalize = gallery3_service_finalize; -#line 1740 "GalleryConnector.c" -} - - -static void -gallery3_service_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gallery3_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) gallery3_service_real_get_pluggable_interface; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) gallery3_service_real_get_id; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) gallery3_service_real_get_pluggable_name; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) gallery3_service_real_get_info; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) gallery3_service_real_activation; -#line 1759 "GalleryConnector.c" -} - - -static void -gallery3_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) -{ -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gallery3_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) gallery3_service_real_create_publisher; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) gallery3_service_real_get_supported_media; -#line 1772 "GalleryConnector.c" -} - - -static void -gallery3_service_instance_init (Gallery3Service * self) -{ -} - - -static void -gallery3_service_finalize (GObject * obj) -{ - Gallery3Service * self; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_GALLERY3_SERVICE, Gallery3Service); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (gallery3_service_parent_class)->finalize (obj); -#line 1790 "GalleryConnector.c" -} - - -GType -gallery3_service_get_type (void) -{ - static volatile gsize gallery3_service_type_id__volatile = 0; - if (g_once_init_enter (&gallery3_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (Gallery3ServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gallery3_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Gallery3Service), 0, (GInstanceInitFunc) gallery3_service_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) gallery3_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) gallery3_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType gallery3_service_type_id; - gallery3_service_type_id = g_type_register_static (G_TYPE_OBJECT, "Gallery3Service", &g_define_type_info, 0); - g_type_add_interface_static (gallery3_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (gallery3_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info); - g_once_init_leave (&gallery3_service_type_id__volatile, gallery3_service_type_id); - } - return gallery3_service_type_id__volatile; -} - - -PublishingGallery3Album* -publishing_gallery3_album_construct (GType object_type, - JsonObject* collection) -{ - PublishingGallery3Album* self = NULL; - JsonObject* entity = NULL; - JsonObject* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (collection != NULL, NULL); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3Album*) g_type_create_instance (object_type); -#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = json_object_get_object_member (collection, "entity"); -#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity = _tmp0_; -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = json_object_get_string_member (entity, "title"); -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_set_title (self, _tmp1_); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = json_object_get_string_member (entity, "name"); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_set_name (self, _tmp2_); -#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = json_object_get_string_member (entity, "parent"); -#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_set_parentname (self, _tmp3_); -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = json_object_get_string_member (collection, "url"); -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_set_url (self, _tmp4_); -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_set_editable (self, json_object_get_boolean_member (entity, "can_edit")); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = self->priv->_url; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = publishing_gallery3_strip_session_url (_tmp5_); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _tmp6_; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_set_path (self, _tmp7_); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp7_); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 1864 "GalleryConnector.c" -} - - -PublishingGallery3Album* -publishing_gallery3_album_new (JsonObject* collection) -{ -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_album_construct (PUBLISHING_GALLERY3_TYPE_ALBUM, collection); -#line 1873 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_album_get_name (PublishingGallery3Album* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_name; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1890 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_set_name (PublishingGallery3Album* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self)); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_name); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_name = _tmp0_; -#line 1907 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_album_get_title (PublishingGallery3Album* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_title; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1924 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_set_title (PublishingGallery3Album* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self)); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_title); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_title = _tmp0_; -#line 1941 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_album_get_summary (PublishingGallery3Album* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_summary; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1958 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_set_summary (PublishingGallery3Album* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self)); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_summary); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_summary = _tmp0_; -#line 1975 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_album_get_parentname (PublishingGallery3Album* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_parentname; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 1992 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_set_parentname (PublishingGallery3Album* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self)); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_parentname); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_parentname = _tmp0_; -#line 2009 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_album_get_url (PublishingGallery3Album* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL); -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_url; -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 2026 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_set_url (PublishingGallery3Album* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self)); -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_url); -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_url = _tmp0_; -#line 2043 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_album_get_path (PublishingGallery3Album* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), NULL); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_path; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 2060 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_set_path (PublishingGallery3Album* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self)); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_path); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_path = _tmp0_; -#line 2077 "GalleryConnector.c" -} - - -gboolean -publishing_gallery3_album_get_editable (PublishingGallery3Album* self) -{ - gboolean result; - gboolean _tmp0_; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self), FALSE); -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_editable; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 2094 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_set_editable (PublishingGallery3Album* self, - gboolean value) -{ -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_ALBUM (self)); -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_editable = value; -#line 2106 "GalleryConnector.c" -} - - -static void -publishing_gallery3_value_album_init (GValue* value) -{ -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = NULL; -#line 2115 "GalleryConnector.c" -} - - -static void -publishing_gallery3_value_album_free_value (GValue* value) -{ -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (value->data[0].v_pointer) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_unref (value->data[0].v_pointer); -#line 2126 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_value_album_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (src_value->data[0].v_pointer) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - dest_value->data[0].v_pointer = publishing_gallery3_album_ref (src_value->data[0].v_pointer); -#line 2139 "GalleryConnector.c" - } else { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - dest_value->data[0].v_pointer = NULL; -#line 2143 "GalleryConnector.c" - } -} - - -static gpointer -publishing_gallery3_value_album_peek_pointer (const GValue* value) -{ -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return value->data[0].v_pointer; -#line 2153 "GalleryConnector.c" -} - - -static gchar* -publishing_gallery3_value_album_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (collect_values[0].v_pointer) { -#line 2165 "GalleryConnector.c" - PublishingGallery3Album * object; - object = collect_values[0].v_pointer; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (object->parent_instance.g_class == NULL) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2172 "GalleryConnector.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2176 "GalleryConnector.c" - } -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = publishing_gallery3_album_ref (object); -#line 2180 "GalleryConnector.c" - } else { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = NULL; -#line 2184 "GalleryConnector.c" - } -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 2188 "GalleryConnector.c" -} - - -static gchar* -publishing_gallery3_value_album_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingGallery3Album ** object_p; - object_p = collect_values[0].v_pointer; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!object_p) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2204 "GalleryConnector.c" - } -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!value->data[0].v_pointer) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *object_p = NULL; -#line 2210 "GalleryConnector.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *object_p = value->data[0].v_pointer; -#line 2214 "GalleryConnector.c" - } else { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *object_p = publishing_gallery3_album_ref (value->data[0].v_pointer); -#line 2218 "GalleryConnector.c" - } -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 2222 "GalleryConnector.c" -} - - -GParamSpec* -publishing_gallery3_param_spec_album (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingGallery3ParamSpecAlbum* spec; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_GALLERY3_TYPE_ALBUM), NULL); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return G_PARAM_SPEC (spec); -#line 2242 "GalleryConnector.c" -} - - -gpointer -publishing_gallery3_value_get_album (const GValue* value) -{ -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_ALBUM), NULL); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return value->data[0].v_pointer; -#line 2253 "GalleryConnector.c" -} - - -void -publishing_gallery3_value_set_album (GValue* value, - gpointer v_object) -{ - PublishingGallery3Album * old; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_ALBUM)); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - old = value->data[0].v_pointer; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (v_object) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_GALLERY3_TYPE_ALBUM)); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = v_object; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_ref (value->data[0].v_pointer); -#line 2276 "GalleryConnector.c" - } else { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = NULL; -#line 2280 "GalleryConnector.c" - } -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (old) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_unref (old); -#line 2286 "GalleryConnector.c" - } -} - - -void -publishing_gallery3_value_take_album (GValue* value, - gpointer v_object) -{ - PublishingGallery3Album * old; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_ALBUM)); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - old = value->data[0].v_pointer; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (v_object) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_GALLERY3_TYPE_ALBUM)); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = v_object; -#line 2308 "GalleryConnector.c" - } else { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = NULL; -#line 2312 "GalleryConnector.c" - } -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (old) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_unref (old); -#line 2318 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_album_class_init (PublishingGallery3AlbumClass * klass) -{ -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_album_parent_class = g_type_class_peek_parent (klass); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingGallery3AlbumClass *) klass)->finalize = publishing_gallery3_album_finalize; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3AlbumPrivate)); -#line 2332 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_instance_init (PublishingGallery3Album * self) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_ALBUM_GET_PRIVATE (self); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (""); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_name = _tmp0_; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = g_strdup (""); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_title = _tmp1_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strdup (""); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_summary = _tmp2_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = g_strdup (""); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_parentname = _tmp3_; -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = g_strdup (""); -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_url = _tmp4_; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = g_strdup (""); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_path = _tmp5_; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_editable = FALSE; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->ref_count = 1; -#line 2375 "GalleryConnector.c" -} - - -static void -publishing_gallery3_album_finalize (PublishingGallery3Album * obj) -{ - PublishingGallery3Album * self; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_ALBUM, PublishingGallery3Album); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_destroy (self); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_name); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_title); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_summary); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_parentname); -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_url); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_path); -#line 2399 "GalleryConnector.c" -} - - -GType -publishing_gallery3_album_get_type (void) -{ - static volatile gsize publishing_gallery3_album_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_album_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_gallery3_value_album_init, publishing_gallery3_value_album_free_value, publishing_gallery3_value_album_copy_value, publishing_gallery3_value_album_peek_pointer, "p", publishing_gallery3_value_album_collect_value, "p", publishing_gallery3_value_album_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3AlbumClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_album_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3Album), 0, (GInstanceInitFunc) publishing_gallery3_album_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_gallery3_album_type_id; - publishing_gallery3_album_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingGallery3Album", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_gallery3_album_type_id__volatile, publishing_gallery3_album_type_id); - } - return publishing_gallery3_album_type_id__volatile; -} - - -gpointer -publishing_gallery3_album_ref (gpointer instance) -{ - PublishingGallery3Album * self; - self = instance; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_atomic_int_inc (&self->ref_count); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return instance; -#line 2428 "GalleryConnector.c" -} - - -void -publishing_gallery3_album_unref (gpointer instance) -{ - PublishingGallery3Album * self; - self = instance; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_GALLERY3_ALBUM_GET_CLASS (self)->finalize (self); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2443 "GalleryConnector.c" - } -} - - -static gchar -string_get (const gchar* self, - glong index) -{ - gchar result = '\0'; - gchar _tmp0_; -#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, '\0'); -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = ((gchar*) self)[index]; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2462 "GalleryConnector.c" -} - - -PublishingGallery3BaseGalleryTransaction* -publishing_gallery3_base_gallery_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* endpoint_url, - const gchar* item_path, - PublishingRESTSupportHttpMethod method) -{ - PublishingGallery3BaseGalleryTransaction* self = NULL; - gboolean _tmp0_ = FALSE; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - JsonParser* _tmp5_; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (endpoint_url != NULL, NULL); -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (item_path != NULL, NULL); -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_strcmp0 (item_path, "") != 0) { -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = string_get (item_path, (glong) 0) != '/'; -#line 2490 "GalleryConnector.c" - } else { -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = FALSE; -#line 2494 "GalleryConnector.c" - } -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp0_) { -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:164: Bad item path, this is a bug!"); -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:165: %s", item_path); -#line 2502 "GalleryConnector.c" - } -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = g_strconcat (endpoint_url, PUBLISHING_GALLERY3_REST_PATH, NULL); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = _tmp1_; -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = g_strconcat (_tmp2_, item_path, NULL); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3BaseGalleryTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp4_, method); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp4_); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp2_); -#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = json_parser_new (); -#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->parser); -#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->parser = _tmp5_; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 2526 "GalleryConnector.c" -} - - -PublishingGallery3BaseGalleryTransaction* -publishing_gallery3_base_gallery_transaction_new (PublishingGallery3Session* session, - const gchar* endpoint_url, - const gchar* item_path, - PublishingRESTSupportHttpMethod method) -{ -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_base_gallery_transaction_construct (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, session, endpoint_url, item_path, method); -#line 2538 "GalleryConnector.c" -} - - -JsonNode* -publishing_gallery3_base_gallery_transaction_get_root_node (PublishingGallery3BaseGalleryTransaction* self, - GError** error) -{ - JsonNode* result = NULL; - gchar* json_object = NULL; - JsonNode* root_node = NULL; - gchar* _tmp0_; - gboolean _tmp1_ = FALSE; - const gchar* _tmp2_; - JsonParser* _tmp15_; - JsonNode* _tmp16_; - GError * _inner_error_ = NULL; -#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_BASE_GALLERY_TRANSACTION (self), NULL); -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_rest_support_transaction_get_response (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object = _tmp0_; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = json_object; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (NULL == _tmp2_) { -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = TRUE; -#line 2569 "GalleryConnector.c" - } else { - const gchar* _tmp3_; - gint _tmp4_; - gint _tmp5_; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = json_object; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = strlen (_tmp3_); -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _tmp4_; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = 0 == _tmp5_; -#line 2582 "GalleryConnector.c" - } -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp1_) { -#line 2586 "GalleryConnector.c" - gchar* _tmp6_; - gchar* _tmp7_; - GError* _tmp8_; - GError* _tmp9_; -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _tmp6_; -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "No response data from %s", _tmp7_); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = _tmp8_; -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp7_); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = _tmp9_; -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 2611 "GalleryConnector.c" - } else { -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 2621 "GalleryConnector.c" - } - } - { - JsonParser* _tmp10_; - const gchar* _tmp11_; -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = self->parser; -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = json_object; -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_parser_load_from_data (_tmp10_, _tmp11_, (gssize) -1, &_inner_error_); -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2635 "GalleryConnector.c" - goto __catch0_g_error; - } - } - goto __finally0; - __catch0_g_error: - { - GError* e = NULL; - GError* _tmp12_; - const gchar* _tmp13_; - GError* _tmp14_; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - e = _inner_error_; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:193: ERROR: didn't load JSON data"); -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_set_is_executed (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), FALSE); -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = e; -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = _tmp12_->message; -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR, _tmp13_); -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = _tmp14_; -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (e); -#line 2664 "GalleryConnector.c" - goto __finally0; - } - __finally0: -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 2678 "GalleryConnector.c" - } else { -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 2688 "GalleryConnector.c" - } - } -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = self->parser; -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = json_parser_get_root (_tmp15_); -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp16_; -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (json_node_is_null (root_node)) { -#line 2699 "GalleryConnector.c" - GError* _tmp17_; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Root node is null, doesn't appear to be JSON data"); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = _tmp17_; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 2713 "GalleryConnector.c" - } else { -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 2723 "GalleryConnector.c" - } - } -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = root_node; -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 2732 "GalleryConnector.c" -} - - -static void -publishing_gallery3_base_gallery_transaction_class_init (PublishingGallery3BaseGalleryTransactionClass * klass) -{ -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_base_gallery_transaction_parent_class = g_type_class_peek_parent (klass); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_base_gallery_transaction_finalize; -#line 2743 "GalleryConnector.c" -} - - -static void -publishing_gallery3_base_gallery_transaction_instance_init (PublishingGallery3BaseGalleryTransaction * self) -{ -} - - -static void -publishing_gallery3_base_gallery_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingGallery3BaseGalleryTransaction * self; -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->parser); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_base_gallery_transaction_parent_class)->finalize (obj); -#line 2763 "GalleryConnector.c" -} - - -GType -publishing_gallery3_base_gallery_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_base_gallery_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_base_gallery_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3BaseGalleryTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_base_gallery_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3BaseGalleryTransaction), 0, (GInstanceInitFunc) publishing_gallery3_base_gallery_transaction_instance_init, NULL }; - GType publishing_gallery3_base_gallery_transaction_type_id; - publishing_gallery3_base_gallery_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingGallery3BaseGalleryTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_base_gallery_transaction_type_id__volatile, publishing_gallery3_base_gallery_transaction_type_id); - } - return publishing_gallery3_base_gallery_transaction_type_id__volatile; -} - - -PublishingGallery3KeyFetchTransaction* -publishing_gallery3_key_fetch_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* url, - const gchar* username, - const gchar* password) -{ - PublishingGallery3KeyFetchTransaction* self = NULL; -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (username != NULL, NULL); -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (password != NULL, NULL); -#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3KeyFetchTransaction*) publishing_gallery3_base_gallery_transaction_construct (object_type, session, url, "", PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "user", username); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "password", password); -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 2805 "GalleryConnector.c" -} - - -PublishingGallery3KeyFetchTransaction* -publishing_gallery3_key_fetch_transaction_new (PublishingGallery3Session* session, - const gchar* url, - const gchar* username, - const gchar* password) -{ -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_key_fetch_transaction_construct (PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, session, url, username, password); -#line 2817 "GalleryConnector.c" -} - - -static gchar* -string_slice (const gchar* self, - glong start, - glong end) -{ - gchar* result = NULL; - glong string_length = 0L; - gint _tmp0_; - gint _tmp1_; - gboolean _tmp4_ = FALSE; - gboolean _tmp6_ = FALSE; - gchar* _tmp8_; -#line 1369 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp1_; -#line 1371 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (start < ((glong) 0)) { -#line 2843 "GalleryConnector.c" - glong _tmp2_; -#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = string_length; -#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - start = _tmp2_ + start; -#line 2849 "GalleryConnector.c" - } -#line 1374 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (end < ((glong) 0)) { -#line 2853 "GalleryConnector.c" - glong _tmp3_; -#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp3_ + end; -#line 2859 "GalleryConnector.c" - } -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (start >= ((glong) 0)) { -#line 2863 "GalleryConnector.c" - glong _tmp5_; -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = start <= _tmp5_; -#line 2869 "GalleryConnector.c" - } else { -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = FALSE; -#line 2873 "GalleryConnector.c" - } -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (_tmp4_, NULL); -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (end >= ((glong) 0)) { -#line 2879 "GalleryConnector.c" - glong _tmp7_; -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = string_length; -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = end <= _tmp7_; -#line 2885 "GalleryConnector.c" - } else { -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = FALSE; -#line 2889 "GalleryConnector.c" - } -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (_tmp6_, NULL); -#line 1379 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (start <= end, NULL); -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = g_strndup (((gchar*) self) + start, (gsize) (end - start)); -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp8_; -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2901 "GalleryConnector.c" -} - - -gchar* -publishing_gallery3_key_fetch_transaction_get_key (PublishingGallery3KeyFetchTransaction* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp3_; - gboolean _tmp4_ = FALSE; - gboolean _tmp5_ = FALSE; - const gchar* _tmp6_; - const gchar* _tmp14_; - gchar* _tmp15_; - const gchar* _tmp16_; - gchar* _tmp17_; -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_KEY_FETCH_TRANSACTION (self), NULL); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->key; -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_strcmp0 (_tmp0_, "") != 0) { -#line 2924 "GalleryConnector.c" - const gchar* _tmp1_; - gchar* _tmp2_; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->key; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp2_; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 2935 "GalleryConnector.c" - } -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_rest_support_transaction_get_response (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->key); -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key = _tmp3_; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = self->priv->key; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (NULL == _tmp6_) { -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = TRUE; -#line 2949 "GalleryConnector.c" - } else { - const gchar* _tmp7_; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = self->priv->key; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = g_strcmp0 ("", _tmp7_) == 0; -#line 2956 "GalleryConnector.c" - } -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp5_) { -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = TRUE; -#line 2962 "GalleryConnector.c" - } else { - const gchar* _tmp8_; - gint _tmp9_; - gint _tmp10_; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = self->priv->key; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = strlen (_tmp8_); -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = _tmp9_; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = 0 == _tmp10_; -#line 2975 "GalleryConnector.c" - } -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp4_) { -#line 2979 "GalleryConnector.c" - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = _tmp11_; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:232: No response data from \"%s\"", _tmp12_); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp12_); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = g_strdup (""); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp13_; -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 2997 "GalleryConnector.c" - } -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = self->priv->key; -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = string_slice (_tmp14_, (glong) 1, (glong) -1); -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->key); -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key = _tmp15_; -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = self->priv->key; -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = g_strdup (_tmp16_); -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp17_; -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 3015 "GalleryConnector.c" -} - - -static void -publishing_gallery3_key_fetch_transaction_class_init (PublishingGallery3KeyFetchTransactionClass * klass) -{ -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_key_fetch_transaction_parent_class = g_type_class_peek_parent (klass); -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_key_fetch_transaction_finalize; -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3KeyFetchTransactionPrivate)); -#line 3028 "GalleryConnector.c" -} - - -static void -publishing_gallery3_key_fetch_transaction_instance_init (PublishingGallery3KeyFetchTransaction * self) -{ - gchar* _tmp0_; -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_KEY_FETCH_TRANSACTION_GET_PRIVATE (self); -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (""); -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key = _tmp0_; -#line 3042 "GalleryConnector.c" -} - - -static void -publishing_gallery3_key_fetch_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingGallery3KeyFetchTransaction * self; -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION, PublishingGallery3KeyFetchTransaction); -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->key); -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_key_fetch_transaction_parent_class)->finalize (obj); -#line 3056 "GalleryConnector.c" -} - - -GType -publishing_gallery3_key_fetch_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_key_fetch_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_key_fetch_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3KeyFetchTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_key_fetch_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3KeyFetchTransaction), 0, (GInstanceInitFunc) publishing_gallery3_key_fetch_transaction_instance_init, NULL }; - GType publishing_gallery3_key_fetch_transaction_type_id; - publishing_gallery3_key_fetch_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, "PublishingGallery3KeyFetchTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_key_fetch_transaction_type_id__volatile, publishing_gallery3_key_fetch_transaction_type_id); - } - return publishing_gallery3_key_fetch_transaction_type_id__volatile; -} - - -PublishingGallery3GalleryRequestTransaction* -publishing_gallery3_gallery_request_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* item, - PublishingRESTSupportHttpMethod method) -{ - PublishingGallery3GalleryRequestTransaction* self = NULL; -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (item != NULL, NULL); -#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:254: Not authenticated"); -#line 3089 "GalleryConnector.c" - } else { - const gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_gallery3_session_get_url (session); -#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp0_; -#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GalleryRequestTransaction*) publishing_gallery3_base_gallery_transaction_construct (object_type, session, _tmp1_, item, method); -#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = publishing_gallery3_session_get_key (session); -#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = _tmp2_; -#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Key", _tmp3_); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Method", "GET"); -#line 3109 "GalleryConnector.c" - } -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 3113 "GalleryConnector.c" -} - - -PublishingGallery3GalleryRequestTransaction* -publishing_gallery3_gallery_request_transaction_new (PublishingGallery3Session* session, - const gchar* item, - PublishingRESTSupportHttpMethod method) -{ -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_gallery_request_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, session, item, method); -#line 3124 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_request_transaction_class_init (PublishingGallery3GalleryRequestTransactionClass * klass) -{ -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_request_transaction_parent_class = g_type_class_peek_parent (klass); -#line 3133 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_request_transaction_instance_init (PublishingGallery3GalleryRequestTransaction * self) -{ -} - - -GType -publishing_gallery3_gallery_request_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_gallery_request_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_gallery_request_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryRequestTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_request_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryRequestTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_request_transaction_instance_init, NULL }; - GType publishing_gallery3_gallery_request_transaction_type_id; - publishing_gallery3_gallery_request_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, "PublishingGallery3GalleryRequestTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_gallery_request_transaction_type_id__volatile, publishing_gallery3_gallery_request_transaction_type_id); - } - return publishing_gallery3_gallery_request_transaction_type_id__volatile; -} - - -PublishingGallery3GetAlbumURLsTransaction* -publishing_gallery3_get_album_ur_ls_transaction_construct (GType object_type, - PublishingGallery3Session* session) -{ - PublishingGallery3GetAlbumURLsTransaction* self = NULL; -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GetAlbumURLsTransaction*) publishing_gallery3_gallery_request_transaction_construct (object_type, session, "/item/1", PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "type", "album"); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "scope", "all"); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 3172 "GalleryConnector.c" -} - - -PublishingGallery3GetAlbumURLsTransaction* -publishing_gallery3_get_album_ur_ls_transaction_new (PublishingGallery3Session* session) -{ -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_get_album_ur_ls_transaction_construct (PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION, session); -#line 3181 "GalleryConnector.c" -} - - -static void -_vala_array_add2 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if ((*length) == (*size)) { -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 3197 "GalleryConnector.c" - } -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[(*length)++] = value; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[*length] = NULL; -#line 3203 "GalleryConnector.c" -} - - -gchar** -publishing_gallery3_get_album_ur_ls_transaction_get_album_urls (PublishingGallery3GetAlbumURLsTransaction* self, - int* result_length1) -{ - gchar** result = NULL; - JsonNode* root_node = NULL; - JsonArray* all_members = NULL; - JsonObject* _tmp2_; - JsonArray* _tmp3_; - gchar** member_urls = NULL; - gint member_urls_length1; - gint _member_urls_size_; - gchar** _tmp13_; - gint _tmp13__length1; - GError * _inner_error_ = NULL; -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUM_UR_LS_TRANSACTION (self), NULL); -#line 3224 "GalleryConnector.c" - { - JsonNode* _tmp0_ = NULL; - JsonNode* _tmp1_; -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_gallery3_base_gallery_transaction_get_root_node (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction), &_inner_error_); -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _tmp1_; -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3236 "GalleryConnector.c" - goto __catch1_spit_publishing_publishing_error; - } -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 3245 "GalleryConnector.c" - } -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp0_; -#line 3249 "GalleryConnector.c" - } - goto __finally1; - __catch1_spit_publishing_publishing_error: - { - GError* e = NULL; -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - e = _inner_error_; -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:285: Could not get root node"); -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (e); -#line 3263 "GalleryConnector.c" - } - __finally1: -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 3274 "GalleryConnector.c" - } -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = json_node_get_object (root_node); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = json_object_get_array_member (_tmp2_, "members"); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - all_members = _tmp3_; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - member_urls = NULL; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - member_urls_length1 = 0; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _member_urls_size_ = member_urls_length1; -#line 3288 "GalleryConnector.c" - { - guint i = 0U; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - i = (guint) 0; -#line 3293 "GalleryConnector.c" - { - gboolean _tmp4_ = FALSE; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = TRUE; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - while (TRUE) { -#line 3300 "GalleryConnector.c" - guint _tmp6_; - JsonArray* _tmp7_; - gchar** _tmp8_; - gint _tmp8__length1; - JsonArray* _tmp9_; - guint _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!_tmp4_) { -#line 3311 "GalleryConnector.c" - guint _tmp5_; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = i; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - i = _tmp5_ + 1; -#line 3317 "GalleryConnector.c" - } -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = FALSE; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = i; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = all_members; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!(_tmp6_ <= (json_array_get_length (_tmp7_) - 1))) { -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 3329 "GalleryConnector.c" - } -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = member_urls; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8__length1 = member_urls_length1; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = all_members; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = i; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = json_array_get_string_element (_tmp9_, _tmp10_); -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = g_strdup (_tmp11_); -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_array_add2 (&member_urls, &member_urls_length1, &_member_urls_size_, _tmp12_); -#line 3345 "GalleryConnector.c" - } - } - } -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = member_urls; -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13__length1 = member_urls_length1; -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (result_length1) { -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *result_length1 = _tmp13__length1; -#line 3357 "GalleryConnector.c" - } -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp13_; -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 3363 "GalleryConnector.c" -} - - -static void -publishing_gallery3_get_album_ur_ls_transaction_class_init (PublishingGallery3GetAlbumURLsTransactionClass * klass) -{ -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_get_album_ur_ls_transaction_parent_class = g_type_class_peek_parent (klass); -#line 3372 "GalleryConnector.c" -} - - -static void -publishing_gallery3_get_album_ur_ls_transaction_instance_init (PublishingGallery3GetAlbumURLsTransaction * self) -{ -} - - -GType -publishing_gallery3_get_album_ur_ls_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_get_album_ur_ls_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_get_album_ur_ls_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GetAlbumURLsTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_get_album_ur_ls_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GetAlbumURLsTransaction), 0, (GInstanceInitFunc) publishing_gallery3_get_album_ur_ls_transaction_instance_init, NULL }; - GType publishing_gallery3_get_album_ur_ls_transaction_type_id; - publishing_gallery3_get_album_ur_ls_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, "PublishingGallery3GetAlbumURLsTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_get_album_ur_ls_transaction_type_id__volatile, publishing_gallery3_get_album_ur_ls_transaction_type_id); - } - return publishing_gallery3_get_album_ur_ls_transaction_type_id__volatile; -} - - -static void -_vala_array_add3 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if ((*length) == (*size)) { -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 3408 "GalleryConnector.c" - } -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[(*length)++] = value; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[*length] = NULL; -#line 3414 "GalleryConnector.c" -} - - -static gchar* -_vala_g_strjoinv (const gchar* separator, - gchar** str_array, - int str_array_length1) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; -#line 1092 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (separator == NULL) { -#line 1093 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - separator = ""; -#line 3429 "GalleryConnector.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array != NULL) { -#line 3433 "GalleryConnector.c" - gboolean _tmp1_ = FALSE; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 > 0) { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 3439 "GalleryConnector.c" - } else { - gboolean _tmp2_ = FALSE; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 3444 "GalleryConnector.c" - const gchar* _tmp3_; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = str_array[0]; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp3_ != NULL; -#line 3450 "GalleryConnector.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = FALSE; -#line 3454 "GalleryConnector.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp2_; -#line 3458 "GalleryConnector.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = _tmp1_; -#line 3462 "GalleryConnector.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 3466 "GalleryConnector.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 3470 "GalleryConnector.c" - gint i = 0; - gsize len = 0UL; - gint _tmp20_; - gint _tmp22_; - gint _tmp23_; - gsize _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; - const gchar* res = NULL; - gsize _tmp28_; - void* _tmp29_; - void* ptr = NULL; - const gchar* _tmp30_; - const gchar* _tmp31_; - void* _tmp32_; - const gchar* _tmp45_; -#line 1097 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = (gsize) 1; -#line 3490 "GalleryConnector.c" - { - gboolean _tmp4_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 0; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = TRUE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - while (TRUE) { -#line 3499 "GalleryConnector.c" - gboolean _tmp6_ = FALSE; - gboolean _tmp7_ = FALSE; - gint _tmp12_ = 0; - gint _tmp13_; - const gchar* _tmp14_; - gsize _tmp19_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp4_) { -#line 3508 "GalleryConnector.c" - gint _tmp5_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = _tmp5_ + 1; -#line 3514 "GalleryConnector.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 != -1) { -#line 3520 "GalleryConnector.c" - gint _tmp8_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp8_ < str_array_length1; -#line 3526 "GalleryConnector.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = FALSE; -#line 3530 "GalleryConnector.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp7_) { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = TRUE; -#line 3536 "GalleryConnector.c" - } else { - gboolean _tmp9_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 3541 "GalleryConnector.c" - gint _tmp10_; - const gchar* _tmp11_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp11_ = str_array[_tmp10_]; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = _tmp11_ != NULL; -#line 3550 "GalleryConnector.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = FALSE; -#line 3554 "GalleryConnector.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp9_; -#line 3558 "GalleryConnector.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp6_) { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - break; -#line 3564 "GalleryConnector.c" - } -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp13_ = i; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp14_ = str_array[_tmp13_]; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp14_ != NULL) { -#line 3572 "GalleryConnector.c" - gint _tmp15_; - const gchar* _tmp16_; - gint _tmp17_; - gint _tmp18_; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp15_ = i; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp16_ = str_array[_tmp15_]; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp17_ = strlen ((const gchar*) _tmp16_); -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp18_ = _tmp17_; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp12_ = _tmp18_; -#line 3587 "GalleryConnector.c" - } else { -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp12_ = 0; -#line 3591 "GalleryConnector.c" - } -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp19_ = len; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp19_ + _tmp12_; -#line 3597 "GalleryConnector.c" - } - } -#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp20_ = i; -#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp20_ == 0) { -#line 3604 "GalleryConnector.c" - gchar* _tmp21_; -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp21_ = g_strdup (""); -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp21_; -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3612 "GalleryConnector.c" - } -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp22_ = i; -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - str_array_length1 = _tmp22_; -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp23_ = str_array_length1; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp24_ = len; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp25_ = strlen ((const gchar*) separator); -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp26_ = _tmp25_; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp27_ = i; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp24_ + (_tmp26_ * (_tmp27_ - 1)); -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp28_ = len; -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp29_ = g_malloc (_tmp28_); -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = _tmp29_; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp30_ = res; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp31_ = str_array[0]; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp32_ = g_stpcpy ((void*) _tmp30_, (const gchar*) _tmp31_); -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp32_; -#line 3644 "GalleryConnector.c" - { - gboolean _tmp33_ = FALSE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 1; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp33_ = TRUE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - while (TRUE) { -#line 3653 "GalleryConnector.c" - gint _tmp35_; - void* _tmp36_; - void* _tmp37_; - const gchar* _tmp38_ = NULL; - gint _tmp39_; - const gchar* _tmp40_; - void* _tmp43_; - void* _tmp44_; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp33_) { -#line 3664 "GalleryConnector.c" - gint _tmp34_; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp34_ = i; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = _tmp34_ + 1; -#line 3670 "GalleryConnector.c" - } -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp33_ = FALSE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp35_ = i; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!(_tmp35_ < str_array_length1)) { -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - break; -#line 3680 "GalleryConnector.c" - } -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp36_ = ptr; -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp37_ = g_stpcpy (_tmp36_, (const gchar*) separator); -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp37_; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp39_ = i; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp40_ = str_array[_tmp39_]; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp40_ != NULL) { -#line 3694 "GalleryConnector.c" - gint _tmp41_; - const gchar* _tmp42_; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp41_ = i; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp42_ = str_array[_tmp41_]; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp38_ = (const gchar*) _tmp42_; -#line 3703 "GalleryConnector.c" - } else { -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp38_ = ""; -#line 3707 "GalleryConnector.c" - } -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp43_ = ptr; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp44_ = g_stpcpy (_tmp43_, _tmp38_); -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp44_; -#line 3715 "GalleryConnector.c" - } - } -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp45_ = res; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = NULL; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gchar*) _tmp45_; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3726 "GalleryConnector.c" - } else { - gchar* _tmp46_; -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp46_ = g_strdup (""); -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp46_; -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3735 "GalleryConnector.c" - } -} - - -PublishingGallery3GetAlbumsTransaction* -publishing_gallery3_get_albums_transaction_construct (GType object_type, - PublishingGallery3Session* session, - gchar** _album_urls, - int _album_urls_length1, - guint start) -{ - PublishingGallery3GetAlbumsTransaction* self = NULL; - gchar* url_list = NULL; - gchar* _tmp0_; - gchar** my_album_urls = NULL; - gint my_album_urls_length1; - gint _my_album_urls_size_; - gchar* endpoint_url = NULL; - gchar* _tmp1_; - gint _tmp2_ = 0; - const gchar* _tmp3_; - gint url_length = 0; - gint _tmp7_; - gchar** _tmp8_; - gint _tmp8__length1; - gchar** _tmp9_; - gint _tmp9__length1; - const gchar* _tmp46_; - gchar* _tmp47_; - const gchar* _tmp48_; -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GetAlbumsTransaction*) publishing_gallery3_gallery_request_transaction_construct (object_type, session, "/items", PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "scope", "all"); -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_get_albums_transaction_set_album_urls (self, _album_urls, _album_urls_length1); -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup ("["); -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url_list = _tmp0_; -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - my_album_urls = NULL; -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - my_album_urls_length1 = 0; -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _my_album_urls_size_ = my_album_urls_length1; -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_rest_support_session_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)); -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - endpoint_url = _tmp1_; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = endpoint_url; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (NULL != _tmp3_) { -#line 3792 "GalleryConnector.c" - const gchar* _tmp4_; - gint _tmp5_; - gint _tmp6_; -#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = endpoint_url; -#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = strlen (_tmp4_); -#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = _tmp6_; -#line 3804 "GalleryConnector.c" - } else { -#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = 0; -#line 3808 "GalleryConnector.c" - } -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url_length = _tmp2_; -#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = url_length; -#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url_length = _tmp7_ + 18; -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp8__length1); -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = _tmp8_; -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9__length1 = _tmp8__length1; -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (start <= ((guint) (_tmp9__length1 - 1))) { -#line 3824 "GalleryConnector.c" - const gchar* _tmp38_; - gchar** _tmp39_; - gint _tmp39__length1; - gchar* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; - guint _tmp43_; - gchar** _tmp44_; - gint _tmp44__length1; - gchar** _tmp45_; - gint _tmp45__length1; -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_get_albums_transaction_set_urls_sent (self, start); -#line 3838 "GalleryConnector.c" - { - gboolean _tmp10_ = FALSE; -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = TRUE; -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - while (TRUE) { -#line 3845 "GalleryConnector.c" - gchar** _tmp22_; - gint _tmp22__length1; - gchar** _tmp23_; - gint _tmp23__length1; - gchar** _tmp24_; - gint _tmp24__length1; - guint _tmp25_; - const gchar* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - gint _tmp30_; - gchar** _tmp31_; - gint _tmp31__length1; - gchar** _tmp32_; - gint _tmp32__length1; - guint _tmp33_; - const gchar* _tmp34_; - gint _tmp35_; - gint _tmp36_; - guint _tmp37_; -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!_tmp10_) { -#line 3869 "GalleryConnector.c" - gboolean _tmp11_ = FALSE; - guint _tmp12_; - gchar** _tmp13_; - gint _tmp13__length1; - gchar** _tmp14_; - gint _tmp14__length1; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = self->priv->_urls_sent; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp13__length1); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = _tmp13_; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14__length1 = _tmp13__length1; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp12_ <= ((guint) (_tmp14__length1 - 1))) { -#line 3886 "GalleryConnector.c" - gint _tmp15_; - gchar** _tmp16_; - gint _tmp16__length1; - gchar** _tmp17_; - gint _tmp17__length1; - guint _tmp18_; - const gchar* _tmp19_; - gint _tmp20_; - gint _tmp21_; -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = url_length; -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp16__length1); -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = _tmp16_; -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17__length1 = _tmp16__length1; -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = self->priv->_urls_sent; -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = _tmp17_[_tmp18_]; -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = strlen (_tmp19_); -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = _tmp20_; -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = ((_tmp15_ + _tmp21_) + 3) <= 255; -#line 3914 "GalleryConnector.c" - } else { -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = FALSE; -#line 3918 "GalleryConnector.c" - } -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!_tmp11_) { -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 3924 "GalleryConnector.c" - } - } -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = FALSE; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = my_album_urls; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22__length1 = my_album_urls_length1; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp23__length1); -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = _tmp23_; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24__length1 = _tmp23__length1; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = self->priv->_urls_sent; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = _tmp24_[_tmp25_]; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = g_strconcat ("\"", _tmp26_, NULL); -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = _tmp27_; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = g_strconcat (_tmp28_, "\"", NULL); -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_array_add3 (&my_album_urls, &my_album_urls_length1, &_my_album_urls_size_, _tmp29_); -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp28_); -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp30_ = url_length; -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp31_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp31__length1); -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32_ = _tmp31_; -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32__length1 = _tmp31__length1; -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp33_ = self->priv->_urls_sent; -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp34_ = _tmp32_[_tmp33_]; -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp35_ = strlen (_tmp34_); -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp36_ = _tmp35_; -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url_length = _tmp30_ + (_tmp36_ + 3); -#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp37_ = self->priv->_urls_sent; -#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_get_albums_transaction_set_urls_sent (self, _tmp37_ + 1); -#line 3975 "GalleryConnector.c" - } - } -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp38_ = url_list; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp39_ = my_album_urls; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp39__length1 = my_album_urls_length1; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp40_ = _vala_g_strjoinv (",", _tmp39_, _tmp39__length1); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp41_ = _tmp40_; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp42_ = g_strconcat (_tmp38_, _tmp41_, NULL); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url_list); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url_list = _tmp42_; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp41_); -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp43_ = self->priv->_urls_sent; -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp44_ = publishing_gallery3_get_albums_transaction_get_album_urls (self, &_tmp44__length1); -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp45_ = _tmp44_; -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp45__length1 = _tmp44__length1; -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_get_albums_transaction_set_more_urls (self, _tmp43_ <= ((guint) (_tmp45__length1 - 1))); -#line 4006 "GalleryConnector.c" - } -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp46_ = url_list; -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp47_ = g_strconcat (_tmp46_, "]", NULL); -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url_list); -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url_list = _tmp47_; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp48_ = url_list; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "urls", _tmp48_); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (endpoint_url); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - my_album_urls = (_vala_array_free (my_album_urls, my_album_urls_length1, (GDestroyNotify) g_free), NULL); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url_list); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 4028 "GalleryConnector.c" -} - - -PublishingGallery3GetAlbumsTransaction* -publishing_gallery3_get_albums_transaction_new (PublishingGallery3Session* session, - gchar** _album_urls, - int _album_urls_length1, - guint start) -{ -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_get_albums_transaction_construct (PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, session, _album_urls, _album_urls_length1, start); -#line 4040 "GalleryConnector.c" -} - - -static gpointer -_publishing_gallery3_album_ref0 (gpointer self) -{ -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? publishing_gallery3_album_ref (self) : NULL; -#line 4049 "GalleryConnector.c" -} - - -static void -_vala_array_add4 (PublishingGallery3Album** * array, - int* length, - int* size, - PublishingGallery3Album* value) -{ -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if ((*length) == (*size)) { -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *array = g_renew (PublishingGallery3Album*, *array, (*size) + 1); -#line 4065 "GalleryConnector.c" - } -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[(*length)++] = value; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[*length] = NULL; -#line 4071 "GalleryConnector.c" -} - - -static const gchar* -string_to_string (const gchar* self) -{ - const gchar* result = NULL; -#line 1456 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1457 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = self; -#line 1457 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 4085 "GalleryConnector.c" -} - - -PublishingGallery3Album** -publishing_gallery3_get_albums_transaction_get_albums (PublishingGallery3GetAlbumsTransaction* self, - int* result_length1, - GError** error) -{ - PublishingGallery3Album** result = NULL; - PublishingGallery3Album** albums = NULL; - gint albums_length1; - gint _albums_size_; - PublishingGallery3Album* tmp_album = NULL; - JsonNode* root_node = NULL; - JsonNode* _tmp0_; - JsonArray* members = NULL; - JsonArray* _tmp1_; - PublishingGallery3Album** _tmp22_; - gint _tmp22__length1; - GError * _inner_error_ = NULL; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self), NULL); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - albums = NULL; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - albums_length1 = 0; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _albums_size_ = albums_length1; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_gallery3_base_gallery_transaction_get_root_node (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction), &_inner_error_); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp0_; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_album_unref0 (tmp_album); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - albums = (_vala_array_free (albums, albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 4130 "GalleryConnector.c" - } else { -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_album_unref0 (tmp_album); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - albums = (_vala_array_free (albums, albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 4142 "GalleryConnector.c" - } - } -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = json_node_get_array (root_node); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - members = _tmp1_; -#line 4149 "GalleryConnector.c" - { - guint i = 0U; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - i = (guint) 0; -#line 4154 "GalleryConnector.c" - { - gboolean _tmp2_ = FALSE; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = TRUE; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - while (TRUE) { -#line 4161 "GalleryConnector.c" - guint _tmp4_; - JsonArray* _tmp5_; - JsonArray* _tmp6_; - guint _tmp7_; - JsonObject* _tmp8_; - PublishingGallery3Album* _tmp9_; - PublishingGallery3Album* _tmp10_; - gboolean _tmp11_; - gboolean _tmp12_; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!_tmp2_) { -#line 4173 "GalleryConnector.c" - guint _tmp3_; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = i; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - i = _tmp3_ + 1; -#line 4179 "GalleryConnector.c" - } -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = FALSE; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = i; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = members; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!(_tmp4_ <= (json_array_get_length (_tmp5_) - 1))) { -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 4191 "GalleryConnector.c" - } -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = members; -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = i; -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = json_array_get_object_element (_tmp6_, _tmp7_); -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = publishing_gallery3_album_new (_tmp8_); -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_album_unref0 (tmp_album); -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - tmp_album = _tmp9_; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = tmp_album; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = publishing_gallery3_album_get_editable (_tmp10_); -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = _tmp11_; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp12_) { -#line 4213 "GalleryConnector.c" - PublishingGallery3Album** _tmp13_; - gint _tmp13__length1; - PublishingGallery3Album* _tmp14_; - PublishingGallery3Album* _tmp15_; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = albums; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13__length1 = albums_length1; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = tmp_album; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _publishing_gallery3_album_ref0 (_tmp14_); -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_array_add4 (&albums, &albums_length1, &_albums_size_, _tmp15_); -#line 4228 "GalleryConnector.c" - } else { - PublishingGallery3Album* _tmp16_; - const gchar* _tmp17_; - const gchar* _tmp18_; - const gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = tmp_album; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = publishing_gallery3_album_get_title (_tmp16_); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = _tmp17_; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = string_to_string (_tmp18_); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = g_strconcat ("Album \"", _tmp19_, "\" is not editable", NULL); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = _tmp20_; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:373: %s", _tmp21_); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp21_); -#line 4252 "GalleryConnector.c" - } - } - } - } -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = albums; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22__length1 = albums_length1; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (result_length1) { -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *result_length1 = _tmp22__length1; -#line 4265 "GalleryConnector.c" - } -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp22_; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_album_unref0 (tmp_album); -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 4273 "GalleryConnector.c" -} - - -gchar** -publishing_gallery3_get_albums_transaction_get_album_urls (PublishingGallery3GetAlbumsTransaction* self, - int* result_length1) -{ - gchar** result; - gchar** _tmp0_; - gint _tmp0__length1; - gchar** _tmp1_; - gint _tmp1__length1; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self), NULL); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_album_urls; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0__length1 = self->priv->_album_urls_length1; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp0_; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1__length1 = _tmp0__length1; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (result_length1) { -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *result_length1 = _tmp1__length1; -#line 4300 "GalleryConnector.c" - } -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp1_; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 4306 "GalleryConnector.c" -} - - -static gchar** -_vala_array_dup2 (gchar** self, - int length) -{ - gchar** result; - int i; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = g_new0 (gchar*, length + 1); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - for (i = 0; i < length; i++) { -#line 4320 "GalleryConnector.c" - gchar* _tmp0_; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (self[i]); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result[i] = _tmp0_; -#line 4326 "GalleryConnector.c" - } -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 4330 "GalleryConnector.c" -} - - -static void -publishing_gallery3_get_albums_transaction_set_album_urls (PublishingGallery3GetAlbumsTransaction* self, - gchar** value, - int value_length1) -{ - gchar** _tmp0_; - gint _tmp0__length1; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self)); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = (value != NULL) ? _vala_array_dup2 (value, value_length1) : ((gpointer) value); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0__length1 = value_length1; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_urls = (_vala_array_free (self->priv->_album_urls, self->priv->_album_urls_length1, (GDestroyNotify) g_free), NULL); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_urls = _tmp0_; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_urls_length1 = _tmp0__length1; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->__album_urls_size_ = self->priv->_album_urls_length1; -#line 4355 "GalleryConnector.c" -} - - -guint -publishing_gallery3_get_albums_transaction_get_urls_sent (PublishingGallery3GetAlbumsTransaction* self) -{ - guint result; - guint _tmp0_; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self), 0U); -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_urls_sent; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 4372 "GalleryConnector.c" -} - - -static void -publishing_gallery3_get_albums_transaction_set_urls_sent (PublishingGallery3GetAlbumsTransaction* self, - guint value) -{ -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self)); -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_urls_sent = value; -#line 4384 "GalleryConnector.c" -} - - -gboolean -publishing_gallery3_get_albums_transaction_get_more_urls (PublishingGallery3GetAlbumsTransaction* self) -{ - gboolean result; - gboolean _tmp0_; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self), FALSE); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_more_urls; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 4401 "GalleryConnector.c" -} - - -static void -publishing_gallery3_get_albums_transaction_set_more_urls (PublishingGallery3GetAlbumsTransaction* self, - gboolean value) -{ -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GET_ALBUMS_TRANSACTION (self)); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_more_urls = value; -#line 4413 "GalleryConnector.c" -} - - -static void -publishing_gallery3_get_albums_transaction_class_init (PublishingGallery3GetAlbumsTransactionClass * klass) -{ -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_get_albums_transaction_parent_class = g_type_class_peek_parent (klass); -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_get_albums_transaction_finalize; -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3GetAlbumsTransactionPrivate)); -#line 4426 "GalleryConnector.c" -} - - -static void -publishing_gallery3_get_albums_transaction_instance_init (PublishingGallery3GetAlbumsTransaction * self) -{ -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_GET_ALBUMS_TRANSACTION_GET_PRIVATE (self); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_urls = NULL; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_urls_length1 = 0; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->__album_urls_size_ = self->priv->_album_urls_length1; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_urls_sent = (guint) 0; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_more_urls = FALSE; -#line 4445 "GalleryConnector.c" -} - - -static void -publishing_gallery3_get_albums_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingGallery3GetAlbumsTransaction * self; -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION, PublishingGallery3GetAlbumsTransaction); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_urls = (_vala_array_free (self->priv->_album_urls, self->priv->_album_urls_length1, (GDestroyNotify) g_free), NULL); -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_get_albums_transaction_parent_class)->finalize (obj); -#line 4459 "GalleryConnector.c" -} - - -GType -publishing_gallery3_get_albums_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_get_albums_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_get_albums_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GetAlbumsTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_get_albums_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GetAlbumsTransaction), 0, (GInstanceInitFunc) publishing_gallery3_get_albums_transaction_instance_init, NULL }; - GType publishing_gallery3_get_albums_transaction_type_id; - publishing_gallery3_get_albums_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, "PublishingGallery3GetAlbumsTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_get_albums_transaction_type_id__volatile, publishing_gallery3_get_albums_transaction_type_id); - } - return publishing_gallery3_get_albums_transaction_type_id__volatile; -} - - -static void -_vala_JsonNode_free (JsonNode* self) -{ -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_boxed_free (json_node_get_type (), self); -#line 4482 "GalleryConnector.c" -} - - -PublishingGallery3GalleryGetTagTransaction* -publishing_gallery3_gallery_get_tag_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* tag_name) -{ - PublishingGallery3GalleryGetTagTransaction* self = NULL; -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (tag_name != NULL, NULL); -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:389: Not authenticated"); -#line 4500 "GalleryConnector.c" - } else { - JsonGenerator* entity = NULL; - JsonGenerator* _tmp0_; - JsonNode* root_node = NULL; - JsonNode* _tmp1_; - JsonObject* obj = NULL; - JsonObject* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - const gchar* _tmp5_; - const gchar* _tmp6_; - gsize entity_length = 0UL; - gchar* entity_value = NULL; - gsize _tmp7_ = 0UL; - gchar* _tmp8_; -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = json_generator_new (); -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity = _tmp0_; -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = json_node_new (JSON_NODE_OBJECT); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp1_; -#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = json_object_new (); -#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - obj = _tmp2_; -#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_gallery3_session_get_url (session); -#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GalleryGetTagTransaction*) publishing_gallery3_base_gallery_transaction_construct (object_type, session, _tmp4_, "/tags", PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = publishing_gallery3_session_get_key (session); -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Key", _tmp6_); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Method", "POST"); -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "name", tag_name); -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_node_set_object (root_node, obj); -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_generator_set_root (entity, root_node); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = json_generator_to_data (entity, &_tmp7_); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity_length = _tmp7_; -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity_value = _tmp8_; -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:409: created entity: %s", entity_value); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "entity", entity_value); -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (entity_value); -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _json_object_unref0 (obj); -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - __vala_JsonNode_free0 (root_node); -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (entity); -#line 4566 "GalleryConnector.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 4570 "GalleryConnector.c" -} - - -PublishingGallery3GalleryGetTagTransaction* -publishing_gallery3_gallery_get_tag_transaction_new (PublishingGallery3Session* session, - const gchar* tag_name) -{ -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_gallery_get_tag_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_GET_TAG_TRANSACTION, session, tag_name); -#line 4580 "GalleryConnector.c" -} - - -gchar* -publishing_gallery3_gallery_get_tag_transaction_tag_url (PublishingGallery3GalleryGetTagTransaction* self) -{ - gchar* result = NULL; - JsonNode* root_node = NULL; - gchar* url = NULL; - JsonObject* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - GError * _inner_error_ = NULL; -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_GET_TAG_TRANSACTION (self), NULL); -#line 4596 "GalleryConnector.c" - { - JsonNode* _tmp0_ = NULL; - JsonNode* _tmp1_; -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_gallery3_base_gallery_transaction_get_root_node (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction), &_inner_error_); -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _tmp1_; -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4608 "GalleryConnector.c" - goto __catch2_spit_publishing_publishing_error; - } -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url); -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 4619 "GalleryConnector.c" - } -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp0_; -#line 4623 "GalleryConnector.c" - } - goto __finally2; - __catch2_spit_publishing_publishing_error: - { - GError* e = NULL; -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - e = _inner_error_; -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:425: Could not get root node"); -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (e); -#line 4637 "GalleryConnector.c" - } - __finally2: -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url); -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 4650 "GalleryConnector.c" - } -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = json_node_get_object (root_node); -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = json_object_get_string_member (_tmp2_, "url"); -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = g_strdup (_tmp3_); -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url); -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url = _tmp4_; -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = url; -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 4666 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_get_tag_transaction_class_init (PublishingGallery3GalleryGetTagTransactionClass * klass) -{ -#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_get_tag_transaction_parent_class = g_type_class_peek_parent (klass); -#line 4675 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_get_tag_transaction_instance_init (PublishingGallery3GalleryGetTagTransaction * self) -{ -} - - -GType -publishing_gallery3_gallery_get_tag_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_gallery_get_tag_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_gallery_get_tag_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryGetTagTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_get_tag_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryGetTagTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_get_tag_transaction_instance_init, NULL }; - GType publishing_gallery3_gallery_get_tag_transaction_type_id; - publishing_gallery3_gallery_get_tag_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, "PublishingGallery3GalleryGetTagTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_gallery_get_tag_transaction_type_id__volatile, publishing_gallery3_gallery_get_tag_transaction_type_id); - } - return publishing_gallery3_gallery_get_tag_transaction_type_id__volatile; -} - - -PublishingGallery3GalleryGetItemTagsURLsTransaction* -publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* item_url) -{ - PublishingGallery3GalleryGetItemTagsURLsTransaction* self = NULL; -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (item_url != NULL, NULL); -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GalleryGetItemTagsURLsTransaction*) publishing_gallery3_gallery_request_transaction_construct (object_type, session, item_url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 4713 "GalleryConnector.c" -} - - -PublishingGallery3GalleryGetItemTagsURLsTransaction* -publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_new (PublishingGallery3Session* session, - const gchar* item_url) -{ -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, session, item_url); -#line 4723 "GalleryConnector.c" -} - - -gchar* -publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_item_tags_path (PublishingGallery3GalleryGetItemTagsURLsTransaction* self) -{ - gchar* result = NULL; - JsonNode* root_node = NULL; - JsonObject* relationships = NULL; - JsonObject* tags = NULL; - const gchar* _tmp0_; - const gchar* _tmp13_; - gchar* _tmp14_; - GError * _inner_error_ = NULL; -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION (self), NULL); -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->item_tags_path; -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_strcmp0 ("", _tmp0_) == 0) { -#line 4744 "GalleryConnector.c" - JsonNode* _tmp3_; - JsonObject* _tmp4_; - JsonObject* _tmp5_; - JsonObject* _tmp6_; - JsonObject* _tmp7_; - JsonObject* _tmp8_; - const gchar* _tmp9_; - gchar* _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; - { - JsonNode* _tmp1_ = NULL; - JsonNode* _tmp2_; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = publishing_gallery3_base_gallery_transaction_get_root_node (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction), &_inner_error_); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp2_; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4766 "GalleryConnector.c" - goto __catch3_spit_publishing_publishing_error; - } -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 4775 "GalleryConnector.c" - } -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp1_; -#line 4779 "GalleryConnector.c" - } - goto __finally3; - __catch3_spit_publishing_publishing_error: - { - GError* e = NULL; -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - e = _inner_error_; -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:461: Could not get root node"); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (e); -#line 4793 "GalleryConnector.c" - } - __finally3: -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 4804 "GalleryConnector.c" - } -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = root_node; -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = json_node_get_object (_tmp3_); -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = json_object_get_object_member (_tmp4_, "relationships"); -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - relationships = _tmp5_; -#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = relationships; -#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = json_object_get_object_member (_tmp6_, "tags"); -#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - tags = _tmp7_; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = tags; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = json_object_get_string_member (_tmp8_, "url"); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = g_strdup (_tmp9_); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_tags_path); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->item_tags_path = _tmp10_; -#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = self->priv->item_tags_path; -#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = publishing_gallery3_strip_session_url (_tmp11_); -#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_tags_path); -#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->item_tags_path = _tmp12_; -#line 4838 "GalleryConnector.c" - } -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = self->priv->item_tags_path; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = g_strdup (_tmp13_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp14_; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 4848 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_class_init (PublishingGallery3GalleryGetItemTagsURLsTransactionClass * klass) -{ -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_parent_class = g_type_class_peek_parent (klass); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_finalize; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3GalleryGetItemTagsURLsTransactionPrivate)); -#line 4861 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_instance_init (PublishingGallery3GalleryGetItemTagsURLsTransaction * self) -{ - gchar* _tmp0_; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION_GET_PRIVATE (self); -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (""); -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->item_tags_path = _tmp0_; -#line 4875 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingGallery3GalleryGetItemTagsURLsTransaction * self; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_GALLERY_GET_ITEM_TAGS_UR_LS_TRANSACTION, PublishingGallery3GalleryGetItemTagsURLsTransaction); -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_tags_path); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_parent_class)->finalize (obj); -#line 4889 "GalleryConnector.c" -} - - -GType -publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryGetItemTagsURLsTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryGetItemTagsURLsTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_instance_init, NULL }; - GType publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id; - publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_GALLERY_REQUEST_TRANSACTION, "PublishingGallery3GalleryGetItemTagsURLsTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id__volatile, publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id); - } - return publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_type_id__volatile; -} - - -PublishingGallery3GallerySetTagRelationshipTransaction* -publishing_gallery3_gallery_set_tag_relationship_transaction_construct (GType object_type, - PublishingGallery3Session* session, - const gchar* item_tags_path, - const gchar* tag_url, - const gchar* item_url) -{ - PublishingGallery3GallerySetTagRelationshipTransaction* self = NULL; -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (item_tags_path != NULL, NULL); -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (tag_url != NULL, NULL); -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (item_url != NULL, NULL); -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:489: Not authenticated"); -#line 4927 "GalleryConnector.c" - } else { - JsonGenerator* entity = NULL; - JsonGenerator* _tmp0_; - JsonNode* root_node = NULL; - JsonNode* _tmp1_; - JsonObject* obj = NULL; - JsonObject* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - const gchar* _tmp5_; - const gchar* _tmp6_; - gsize entity_length = 0UL; - gchar* entity_value = NULL; - gsize _tmp7_ = 0UL; - gchar* _tmp8_; -#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = json_generator_new (); -#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity = _tmp0_; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = json_node_new (JSON_NODE_OBJECT); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp1_; -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = json_object_new (); -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - obj = _tmp2_; -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_gallery3_session_get_url (session); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GallerySetTagRelationshipTransaction*) publishing_gallery3_base_gallery_transaction_construct (object_type, session, _tmp4_, item_tags_path, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = publishing_gallery3_session_get_key (session); -#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Key", _tmp6_); -#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Method", "POST"); -#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "tag", tag_url); -#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "item", item_url); -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_node_set_object (root_node, obj); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_generator_set_root (entity, root_node); -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = json_generator_to_data (entity, &_tmp7_); -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity_length = _tmp7_; -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity_value = _tmp8_; -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:510: created entity: %s", entity_value); -#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "entity", entity_value); -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (entity_value); -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _json_object_unref0 (obj); -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - __vala_JsonNode_free0 (root_node); -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (entity); -#line 4995 "GalleryConnector.c" - } -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 4999 "GalleryConnector.c" -} - - -PublishingGallery3GallerySetTagRelationshipTransaction* -publishing_gallery3_gallery_set_tag_relationship_transaction_new (PublishingGallery3Session* session, - const gchar* item_tags_path, - const gchar* tag_url, - const gchar* item_url) -{ -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_gallery_set_tag_relationship_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_SET_TAG_RELATIONSHIP_TRANSACTION, session, item_tags_path, tag_url, item_url); -#line 5011 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_set_tag_relationship_transaction_class_init (PublishingGallery3GallerySetTagRelationshipTransactionClass * klass) -{ -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_set_tag_relationship_transaction_parent_class = g_type_class_peek_parent (klass); -#line 5020 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_set_tag_relationship_transaction_instance_init (PublishingGallery3GallerySetTagRelationshipTransaction * self) -{ -} - - -GType -publishing_gallery3_gallery_set_tag_relationship_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_gallery_set_tag_relationship_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_gallery_set_tag_relationship_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GallerySetTagRelationshipTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_set_tag_relationship_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GallerySetTagRelationshipTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_set_tag_relationship_transaction_instance_init, NULL }; - GType publishing_gallery3_gallery_set_tag_relationship_transaction_type_id; - publishing_gallery3_gallery_set_tag_relationship_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, "PublishingGallery3GallerySetTagRelationshipTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_gallery_set_tag_relationship_transaction_type_id__volatile, publishing_gallery3_gallery_set_tag_relationship_transaction_type_id); - } - return publishing_gallery3_gallery_set_tag_relationship_transaction_type_id__volatile; -} - - -PublishingGallery3GalleryAlbumCreateTransaction* -publishing_gallery3_gallery_album_create_transaction_construct (GType object_type, - PublishingGallery3Session* session, - PublishingGallery3PublishingParameters* parameters) -{ - PublishingGallery3GalleryAlbumCreateTransaction* self = NULL; -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:533: Not authenticated"); -#line 5058 "GalleryConnector.c" - } else { - JsonGenerator* entity = NULL; - JsonGenerator* _tmp0_; - JsonNode* root_node = NULL; - JsonNode* _tmp1_; - JsonObject* obj = NULL; - JsonObject* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - const gchar* _tmp5_; - const gchar* _tmp6_; - const gchar* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - const gchar* _tmp10_; - const gchar* _tmp11_; - const gchar* _tmp12_; - const gchar* _tmp13_; - gchar* entity_value = NULL; - gchar* _tmp14_; -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = json_generator_new (); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity = _tmp0_; -#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = json_node_new (JSON_NODE_OBJECT); -#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp1_; -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = json_object_new (); -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - obj = _tmp2_; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_gallery3_session_get_url (session); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GalleryAlbumCreateTransaction*) publishing_gallery3_base_gallery_transaction_construct (object_type, session, _tmp4_, "/item/1", PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = publishing_gallery3_session_get_key (session); -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Key", _tmp6_); -#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Method", "POST"); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = publishing_gallery3_session_get_url (session); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = _tmp7_; -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->session_url); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->session_url = _tmp9_; -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_album_create_transaction_set_parameters (self, parameters); -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = publishing_gallery3_publishing_parameters_get_album_name (parameters); -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = _tmp10_; -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "name", _tmp11_); -#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "type", "album"); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = publishing_gallery3_publishing_parameters_get_album_title (parameters); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = _tmp12_; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "title", _tmp13_); -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_node_set_object (root_node, obj); -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_generator_set_root (entity, root_node); -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = json_generator_to_data (entity, NULL); -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - entity_value = _tmp14_; -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:556: created entity: %s", entity_value); -#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "entity", entity_value); -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (entity_value); -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _json_object_unref0 (obj); -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - __vala_JsonNode_free0 (root_node); -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (entity); -#line 5151 "GalleryConnector.c" - } -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 5155 "GalleryConnector.c" -} - - -PublishingGallery3GalleryAlbumCreateTransaction* -publishing_gallery3_gallery_album_create_transaction_new (PublishingGallery3Session* session, - PublishingGallery3PublishingParameters* parameters) -{ -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_gallery_album_create_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, session, parameters); -#line 5165 "GalleryConnector.c" -} - - -gchar* -publishing_gallery3_gallery_album_create_transaction_get_new_album_path (PublishingGallery3GalleryAlbumCreateTransaction* self) -{ - gchar* result = NULL; - JsonNode* root_node = NULL; - gchar* new_path = NULL; - JsonObject* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - GError * _inner_error_ = NULL; -#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_ALBUM_CREATE_TRANSACTION (self), NULL); -#line 5183 "GalleryConnector.c" - { - JsonNode* _tmp0_ = NULL; - JsonNode* _tmp1_; -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_gallery3_base_gallery_transaction_get_root_node (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, PublishingGallery3BaseGalleryTransaction), &_inner_error_); -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _tmp1_; -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5195 "GalleryConnector.c" - goto __catch4_spit_publishing_publishing_error; - } -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_path); -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 5206 "GalleryConnector.c" - } -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp0_; -#line 5210 "GalleryConnector.c" - } - goto __finally4; - __catch4_spit_publishing_publishing_error: - { - GError* e = NULL; -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - e = _inner_error_; -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:572: Could not get root node"); -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (e); -#line 5224 "GalleryConnector.c" - } - __finally4: -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_path); -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 5237 "GalleryConnector.c" - } -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = json_node_get_object (root_node); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = json_object_get_string_member (_tmp2_, "url"); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = g_strdup (_tmp3_); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_path); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_path = _tmp4_; -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = new_path; -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = publishing_gallery3_strip_session_url (_tmp5_); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_path); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_path = _tmp6_; -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = new_path; -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 5261 "GalleryConnector.c" -} - - -PublishingGallery3PublishingParameters* -publishing_gallery3_gallery_album_create_transaction_get_parameters (PublishingGallery3GalleryAlbumCreateTransaction* self) -{ - PublishingGallery3PublishingParameters* result; - PublishingGallery3PublishingParameters* _tmp0_; -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_ALBUM_CREATE_TRANSACTION (self), NULL); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_parameters; -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 5278 "GalleryConnector.c" -} - - -static gpointer -_publishing_gallery3_publishing_parameters_ref0 (gpointer self) -{ -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? publishing_gallery3_publishing_parameters_ref (self) : NULL; -#line 5287 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_album_create_transaction_set_parameters (PublishingGallery3GalleryAlbumCreateTransaction* self, - PublishingGallery3PublishingParameters* value) -{ - PublishingGallery3PublishingParameters* _tmp0_; -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_ALBUM_CREATE_TRANSACTION (self)); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _publishing_gallery3_publishing_parameters_ref0 (value); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (self->priv->_parameters); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_parameters = _tmp0_; -#line 5304 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_album_create_transaction_class_init (PublishingGallery3GalleryAlbumCreateTransactionClass * klass) -{ -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_album_create_transaction_parent_class = g_type_class_peek_parent (klass); -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_gallery_album_create_transaction_finalize; -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3GalleryAlbumCreateTransactionPrivate)); -#line 5317 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_album_create_transaction_instance_init (PublishingGallery3GalleryAlbumCreateTransaction * self) -{ -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_GALLERY_ALBUM_CREATE_TRANSACTION_GET_PRIVATE (self); -#line 5326 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_album_create_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingGallery3GalleryAlbumCreateTransaction * self; -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION, PublishingGallery3GalleryAlbumCreateTransaction); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (self->priv->_parameters); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->session_url); -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_gallery_album_create_transaction_parent_class)->finalize (obj); -#line 5342 "GalleryConnector.c" -} - - -GType -publishing_gallery3_gallery_album_create_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_gallery_album_create_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_gallery_album_create_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryAlbumCreateTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_album_create_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryAlbumCreateTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_album_create_transaction_instance_init, NULL }; - GType publishing_gallery3_gallery_album_create_transaction_type_id; - publishing_gallery3_gallery_album_create_transaction_type_id = g_type_register_static (PUBLISHING_GALLERY3_TYPE_BASE_GALLERY_TRANSACTION, "PublishingGallery3GalleryAlbumCreateTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_gallery_album_create_transaction_type_id__volatile, publishing_gallery3_gallery_album_create_transaction_type_id); - } - return publishing_gallery3_gallery_album_create_transaction_type_id__volatile; -} - - -static gpointer -_publishing_rest_support_session_ref0 (gpointer self) -{ -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? publishing_rest_support_session_ref (self) : NULL; -#line 5365 "GalleryConnector.c" -} - - -static void -_g_free0_ (gpointer var) -{ -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - var = (g_free (var), NULL); -#line 5374 "GalleryConnector.c" -} - - -PublishingGallery3GalleryUploadTransaction* -publishing_gallery3_gallery_upload_transaction_construct (GType object_type, - PublishingGallery3Session* session, - PublishingGallery3PublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ - PublishingGallery3GalleryUploadTransaction* self = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - const gchar* _tmp8_; - const gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - PublishingGallery3PublishingParameters* _tmp12_; - PublishingGallery3Session* _tmp13_; - const gchar* _tmp14_; - const gchar* _tmp15_; - GHashTable* disposition_table = NULL; - GHashFunc _tmp16_; - GEqualFunc _tmp17_; - GHashTable* _tmp18_; - gchar* title = NULL; - gchar* _tmp19_; - gchar* filename = NULL; - gchar* _tmp20_; - gboolean _tmp21_ = FALSE; - const gchar* _tmp22_; - GHashTable* _tmp26_; - gchar* _tmp27_; - const gchar* _tmp28_; - const gchar* _tmp29_; - gchar* _tmp30_; - GHashTable* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - GHashTable* _tmp34_; - JsonGenerator* _tmp35_; - gchar* desc = NULL; - gchar* _tmp36_; - const gchar* _tmp37_ = NULL; - gchar* type = NULL; - gchar* _tmp38_; - JsonNode* root_node = NULL; - JsonNode* _tmp39_; - JsonObject* obj = NULL; - JsonObject* _tmp40_; - const gchar* _tmp41_; - const gchar* _tmp42_; - const gchar* _tmp43_; - JsonGenerator* _tmp44_; - JsonGenerator* _tmp45_; - gchar* _tmp46_; - gchar* _tmp47_; -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_gallery3_publishing_parameters_get_album_path (parameters); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp0_; -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (string_get (_tmp1_, (glong) 0) != '/') { -#line 5447 "GalleryConnector.c" - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:601: Bad upload item path, this is a bug!"); -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = publishing_gallery3_publishing_parameters_get_album_path (parameters); -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = _tmp2_; -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:602: %s", _tmp3_); -#line 5458 "GalleryConnector.c" - } -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = publishing_gallery3_session_get_url (session); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _tmp4_; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = g_strconcat (_tmp5_, PUBLISHING_GALLERY3_REST_PATH, NULL); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _tmp6_; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = publishing_gallery3_publishing_parameters_get_album_path (parameters); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = _tmp8_; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = g_strconcat (_tmp7_, _tmp9_, NULL); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = _tmp10_; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GalleryUploadTransaction*) publishing_rest_support_upload_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishable, _tmp11_); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp11_); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp7_); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = _publishing_gallery3_publishing_parameters_ref0 (parameters); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (self->priv->parameters); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->parameters = _tmp12_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = _publishing_rest_support_session_ref0 (session); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->session = _tmp13_; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = publishing_gallery3_session_get_key (session); -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _tmp14_; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Key", _tmp15_); -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "X-Gallery-Request-Method", "POST"); -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = g_str_hash; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = g_str_equal; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = g_hash_table_new_full (_tmp16_, _tmp17_, _g_free0_, _g_free0_); -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - disposition_table = _tmp18_; -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = spit_publishing_publishable_get_publishing_name (publishable); -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - title = _tmp19_; -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - filename = _tmp20_; -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = title; -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp22_ == NULL) { -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = TRUE; -#line 5524 "GalleryConnector.c" - } else { - const gchar* _tmp23_; -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = title; -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = g_strcmp0 (_tmp23_, "") == 0; -#line 5531 "GalleryConnector.c" - } -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp21_) { -#line 5535 "GalleryConnector.c" - const gchar* _tmp24_; - gchar* _tmp25_; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = filename; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = g_strdup (_tmp24_); -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (title); -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - title = _tmp25_; -#line 5546 "GalleryConnector.c" - } -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = disposition_table; -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = g_strdup ("filename"); -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = filename; -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = string_to_string (_tmp28_); -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp30_ = g_strdup (_tmp29_); -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_hash_table_insert (_tmp26_, _tmp27_, _tmp30_); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp31_ = disposition_table; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32_ = g_strdup ("name"); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp33_ = g_strdup ("file"); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_hash_table_insert (_tmp31_, _tmp32_, _tmp33_); -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp34_ = disposition_table; -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_upload_transaction_set_binary_disposition_table (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction), _tmp34_); -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp35_ = json_generator_new (); -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->generator); -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->generator = _tmp35_; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp36_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT); -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - desc = _tmp36_; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (spit_publishing_publishable_get_media_type (publishable) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp37_ = "movie"; -#line 5586 "GalleryConnector.c" - } else { -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp37_ = "photo"; -#line 5590 "GalleryConnector.c" - } -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp38_ = g_strdup (_tmp37_); -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - type = _tmp38_; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp39_ = json_node_new (JSON_NODE_OBJECT); -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp39_; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp40_ = json_object_new (); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - obj = _tmp40_; -#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp41_ = filename; -#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "name", _tmp41_); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "type", type); -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp42_ = title; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "title", _tmp42_); -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp43_ = desc; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object_set_string_member (obj, "description", _tmp43_); -#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_node_set_object (root_node, obj); -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp44_ = self->priv->generator; -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_generator_set_root (_tmp44_, root_node); -#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp45_ = self->priv->generator; -#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp46_ = json_generator_to_data (_tmp45_, NULL); -#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp47_ = _tmp46_; -#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "entity", _tmp47_); -#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp47_); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _json_object_unref0 (obj); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - __vala_JsonNode_free0 (root_node); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (type); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (desc); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (filename); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (title); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_hash_table_unref0 (disposition_table); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 5650 "GalleryConnector.c" -} - - -PublishingGallery3GalleryUploadTransaction* -publishing_gallery3_gallery_upload_transaction_new (PublishingGallery3Session* session, - PublishingGallery3PublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_gallery_upload_transaction_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, session, parameters, publishable); -#line 5661 "GalleryConnector.c" -} - - -static gchar* -publishing_gallery3_gallery_upload_transaction_get_new_item_url (PublishingGallery3GalleryUploadTransaction* self) -{ - gchar* result = NULL; - gchar* json_object = NULL; - gchar* new_url = NULL; - JsonNode* root_node = NULL; - JsonParser* parser = NULL; - JsonParser* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_ = FALSE; - const gchar* _tmp3_; - const gchar* _tmp10_; - JsonParser* _tmp14_; - JsonNode* _tmp15_; - JsonNode* _tmp16_; - JsonNode* _tmp18_; - JsonObject* _tmp19_; - const gchar* _tmp20_; - gchar* _tmp21_; - GError * _inner_error_ = NULL; -#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION (self), NULL); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = json_parser_new (); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - parser = _tmp0_; -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_rest_support_transaction_get_response (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_object = _tmp1_; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = json_object; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (NULL == _tmp3_) { -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = TRUE; -#line 5704 "GalleryConnector.c" - } else { - const gchar* _tmp4_; - gint _tmp5_; - gint _tmp6_; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = json_object; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = strlen (_tmp4_); -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = 0 == _tmp6_; -#line 5717 "GalleryConnector.c" - } -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp2_) { -#line 5721 "GalleryConnector.c" - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = _tmp7_; -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:660: No response data from %s", _tmp8_); -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp8_); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = g_strdup (""); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp9_; -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (parser); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_url); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 5745 "GalleryConnector.c" - } -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = json_object; -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:664: json_object: %s", _tmp10_); -#line 5751 "GalleryConnector.c" - { - JsonParser* _tmp11_; - const gchar* _tmp12_; -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = parser; -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = json_object; -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - json_parser_load_from_data (_tmp11_, _tmp12_, (gssize) -1, &_inner_error_); -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5763 "GalleryConnector.c" - goto __catch5_g_error; - } - } - goto __finally5; - __catch5_g_error: - { - GError* e = NULL; - const gchar* _tmp13_; -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - e = _inner_error_; -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:672: ERROR: didn't load JSON data"); -#line 673 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_set_is_executed (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), FALSE); -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = e->message; -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:674: %s", _tmp13_); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (e); -#line 5786 "GalleryConnector.c" - } - __finally5: -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (parser); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_url); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 5803 "GalleryConnector.c" - } -#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = parser; -#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = json_parser_get_root (_tmp14_); -#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - root_node = _tmp15_; -#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = root_node; -#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (json_node_is_null (_tmp16_)) { -#line 5815 "GalleryConnector.c" - gchar* _tmp17_; -#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:679: Root node is null, doesn't appear to be JSO" \ -"N data"); -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = g_strdup (""); -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp17_; -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (parser); -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_url); -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 5831 "GalleryConnector.c" - } -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = root_node; -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = json_node_get_object (_tmp18_); -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = json_object_get_string_member (_tmp19_, "url"); -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = g_strdup (_tmp20_); -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_url); -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_url = _tmp21_; -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = new_url; -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (parser); -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (json_object); -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 5853 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_upload_transaction_do_set_tag_relationship (PublishingGallery3GalleryUploadTransaction* self, - const gchar* tag_url, - GError** error) -{ - PublishingGallery3GallerySetTagRelationshipTransaction* tag_txn = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingGallery3Session* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - PublishingGallery3GallerySetTagRelationshipTransaction* _tmp4_; - PublishingGallery3GallerySetTagRelationshipTransaction* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - GError * _inner_error_ = NULL; -#line 690 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION (self)); -#line 690 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (tag_url != NULL); -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session); -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->item_tags_path; -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = self->priv->item_url; -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = publishing_gallery3_gallery_set_tag_relationship_transaction_new (_tmp1_, _tmp2_, tag_url, _tmp3_); -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _tmp4_; -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - tag_txn = _tmp5_; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (tag_txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_txn); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 5904 "GalleryConnector.c" - } else { -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_txn); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 5914 "GalleryConnector.c" - } - } -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = publishing_rest_support_transaction_get_response (G_TYPE_CHECK_INSTANCE_CAST (tag_txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _tmp6_; -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:699: Response from setting tag relationship: %s", _tmp7_); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp7_); -#line 690 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_txn); -#line 5927 "GalleryConnector.c" -} - - -static gchar* -publishing_gallery3_gallery_upload_transaction_get_new_item_tags_path (PublishingGallery3GalleryUploadTransaction* self) -{ - gchar* result = NULL; - PublishingGallery3GalleryGetItemTagsURLsTransaction* tag_urls_txn = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingGallery3Session* _tmp1_; - const gchar* _tmp2_; - PublishingGallery3GalleryGetItemTagsURLsTransaction* _tmp3_; - PublishingGallery3GalleryGetItemTagsURLsTransaction* _tmp4_; - PublishingGallery3GalleryGetItemTagsURLsTransaction* _tmp9_; - gchar* _tmp10_; - GError * _inner_error_ = NULL; -#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION (self), NULL); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->item_path; -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_new (_tmp1_, _tmp2_); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - tag_urls_txn = _tmp4_; -#line 5960 "GalleryConnector.c" - { - PublishingGallery3GalleryGetItemTagsURLsTransaction* _tmp5_; -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = tag_urls_txn; -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5971 "GalleryConnector.c" - goto __catch6_spit_publishing_publishing_error; - } -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_urls_txn); -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 5982 "GalleryConnector.c" - } - } - goto __finally6; - __catch6_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_; -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - err = _inner_error_; -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = err; -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _tmp6_->message; -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:711: Problem getting the item_tags URL: %s", _tmp7_); -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = g_strdup (""); -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp8_; -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (err); -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_urls_txn); -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6012 "GalleryConnector.c" - } - __finally6: -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_urls_txn); -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 6025 "GalleryConnector.c" - } -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = tag_urls_txn; -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = publishing_gallery3_gallery_get_item_tags_ur_ls_transaction_get_item_tags_path (_tmp9_); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp10_; -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_urls_txn); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6037 "GalleryConnector.c" -} - - -static gchar* -publishing_gallery3_gallery_upload_transaction_get_tag_url (PublishingGallery3GalleryUploadTransaction* self, - const gchar* tag) -{ - gchar* result = NULL; - PublishingGallery3GalleryGetTagTransaction* tag_txn = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingGallery3Session* _tmp1_; - PublishingGallery3GalleryGetTagTransaction* _tmp2_; - PublishingGallery3GalleryGetTagTransaction* _tmp3_; - PublishingGallery3GalleryGetTagTransaction* _tmp8_; - gchar* _tmp9_; - GError * _inner_error_ = NULL; -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION (self), NULL); -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (tag != NULL, NULL); -#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session); -#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = publishing_gallery3_gallery_get_tag_transaction_new (_tmp1_, tag); -#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = _tmp2_; -#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - tag_txn = _tmp3_; -#line 6070 "GalleryConnector.c" - { - PublishingGallery3GalleryGetTagTransaction* _tmp4_; -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = tag_txn; -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 6081 "GalleryConnector.c" - goto __catch7_spit_publishing_publishing_error; - } -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_txn); -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 6092 "GalleryConnector.c" - } - } - goto __finally7; - __catch7_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; -#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - err = _inner_error_; -#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = err; -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_->message; -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:728: Problem getting the tags URL: %s", _tmp6_); -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = g_strdup (""); -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp7_; -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (err); -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_txn); -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6122 "GalleryConnector.c" - } - __finally7: -#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_txn); -#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 6135 "GalleryConnector.c" - } -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = tag_txn; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = publishing_gallery3_gallery_get_tag_transaction_tag_url (_tmp8_); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp9_; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (tag_txn); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6147 "GalleryConnector.c" -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? g_error_copy (self) : NULL; -#line 6156 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_upload_transaction_on_upload_completed (PublishingGallery3GalleryUploadTransaction* self, - GError** error) -{ - PublishingGallery3PublishingParameters* _tmp0_; - gboolean _tmp1_; - gboolean _tmp2_; - GError * _inner_error_ = NULL; -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_UPLOAD_TRANSACTION (self)); -#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:740: EVENT: upload completed"); -#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->parameters; -#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_gallery3_publishing_parameters_get_strip_metadata (_tmp0_); -#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = _tmp1_; -#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!_tmp2_) { -#line 6180 "GalleryConnector.c" - gchar** keywords = NULL; - gint keywords_length1 = 0; - gint _keywords_size_ = 0; - SpitPublishingPublishable* _tmp3_; - gint _tmp4_; - gchar** _tmp5_; - gchar** _tmp6_; - gint _tmp6__length1; - gchar* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - const gchar* _tmp11_; - const gchar* _tmp12_; - gboolean _tmp13_ = FALSE; - const gchar* _tmp14_; - gchar** _tmp17_; - gint _tmp17__length1; -#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:746: EVENT: evaluating tags"); -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)->publishable; -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = spit_publishing_publishable_get_publishing_keywords (_tmp3_, &_tmp4_); -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = _tmp5_; -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords_length1 = _tmp4_; -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _keywords_size_ = keywords_length1; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = keywords; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6__length1 = keywords_length1; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (NULL == _tmp6_) { -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:752: No tags"); -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6225 "GalleryConnector.c" - } -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = publishing_gallery3_gallery_upload_transaction_get_new_item_url (self); -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_url); -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->item_url = _tmp7_; -#line 758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = self->priv->item_url; -#line 758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = publishing_gallery3_strip_session_url (_tmp8_); -#line 758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_path); -#line 758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->item_path = _tmp9_; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = publishing_gallery3_gallery_upload_transaction_get_new_item_tags_path (self); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_tags_path); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->item_tags_path = _tmp10_; -#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = self->priv->item_path; -#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:760: new item path is %s", _tmp11_); -#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = self->priv->item_tags_path; -#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:761: item_tags path is %s", _tmp12_); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = self->priv->item_path; -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_strcmp0 ("", _tmp14_) == 0) { -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = TRUE; -#line 6261 "GalleryConnector.c" - } else { - const gchar* _tmp15_; -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = self->priv->item_tags_path; -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = g_strcmp0 ("", _tmp15_) == 0; -#line 6268 "GalleryConnector.c" - } -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp13_) { -#line 6272 "GalleryConnector.c" - GError* _tmp16_; -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_COMMUNICATION_FAILED, "Could not obtain URL of uploaded item or its " "\"item_tags\" relationship URL"); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = _tmp16_; -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6286 "GalleryConnector.c" - } else { -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6296 "GalleryConnector.c" - } - } -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = keywords; -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17__length1 = keywords_length1; -#line 6303 "GalleryConnector.c" - { - gchar** tag_collection = NULL; - gint tag_collection_length1 = 0; - gint _tag_collection_size_ = 0; - gint tag_it = 0; -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - tag_collection = _tmp17_; -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - tag_collection_length1 = _tmp17__length1; -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - for (tag_it = 0; tag_it < _tmp17__length1; tag_it = tag_it + 1) { -#line 6315 "GalleryConnector.c" - gchar* _tmp18_; - gchar* tag = NULL; -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = g_strdup (tag_collection[tag_it]); -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - tag = _tmp18_; -#line 6322 "GalleryConnector.c" - { - const gchar* _tmp19_; - const gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - gchar* new_tag_url = NULL; - const gchar* _tmp23_; - gchar* _tmp24_; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = tag; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = string_to_string (_tmp19_); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = g_strconcat ("Found tag: ", _tmp20_, NULL); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = _tmp21_; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:773: %s", _tmp22_); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp22_); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = tag; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = publishing_gallery3_gallery_upload_transaction_get_tag_url (self, _tmp23_); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_tag_url = _tmp24_; -#line 6349 "GalleryConnector.c" - { - const gchar* _tmp25_; -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = new_tag_url; -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_upload_transaction_do_set_tag_relationship (self, _tmp25_, &_inner_error_); -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 6360 "GalleryConnector.c" - goto __catch8_spit_publishing_publishing_error; - } -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_tag_url); -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (tag); -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6375 "GalleryConnector.c" - } - } - goto __finally8; - __catch8_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp26_; - const gchar* _tmp27_; - GError* _tmp28_; - GError* _tmp29_; -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - err = _inner_error_; -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = err; -#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = _tmp26_->message; -#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("Problem setting the relationship between tag " "and item: %s", _tmp27_); -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = err; -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = _g_error_copy0 (_tmp28_); -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = _tmp29_; -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (err); -#line 6404 "GalleryConnector.c" - goto __finally8; - } - __finally8: -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_tag_url); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (tag); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6422 "GalleryConnector.c" - } else { -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_tag_url); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (tag); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6436 "GalleryConnector.c" - } - } -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (new_tag_url); -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (tag); -#line 6443 "GalleryConnector.c" - } - } - } -#line 742 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 6449 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_gallery_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error) -{ - PublishingGallery3GalleryUploadTransaction * self; - GError * _inner_error_ = NULL; -#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransaction); -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_gallery_upload_transaction_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6472 "GalleryConnector.c" - } else { -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6480 "GalleryConnector.c" - } - } -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_upload_transaction_on_upload_completed (self, &_inner_error_); -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_propagate_error (error, _inner_error_); -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6493 "GalleryConnector.c" - } else { -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6501 "GalleryConnector.c" - } - } -} - - -static void -publishing_gallery3_gallery_upload_transaction_class_init (PublishingGallery3GalleryUploadTransactionClass * klass) -{ -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_upload_transaction_parent_class = g_type_class_peek_parent (klass); -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_gallery3_gallery_upload_transaction_finalize; -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3GalleryUploadTransactionPrivate)); -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_gallery3_gallery_upload_transaction_real_execute; -#line 6518 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_upload_transaction_instance_init (PublishingGallery3GalleryUploadTransaction * self) -{ -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_GALLERY_UPLOAD_TRANSACTION_GET_PRIVATE (self); -#line 6527 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_upload_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingGallery3GalleryUploadTransaction * self; -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_GALLERY_UPLOAD_TRANSACTION, PublishingGallery3GalleryUploadTransaction); -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->generator); -#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (self->priv->parameters); -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_url); -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_path); -#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->item_tags_path); -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_gallery3_gallery_upload_transaction_parent_class)->finalize (obj); -#line 6551 "GalleryConnector.c" -} - - -GType -publishing_gallery3_gallery_upload_transaction_get_type (void) -{ - static volatile gsize publishing_gallery3_gallery_upload_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_gallery_upload_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryUploadTransaction), 0, (GInstanceInitFunc) publishing_gallery3_gallery_upload_transaction_instance_init, NULL }; - GType publishing_gallery3_gallery_upload_transaction_type_id; - publishing_gallery3_gallery_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, "PublishingGallery3GalleryUploadTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_gallery_upload_transaction_type_id__volatile, publishing_gallery3_gallery_upload_transaction_type_id); - } - return publishing_gallery3_gallery_upload_transaction_type_id__volatile; -} - - -PublishingGallery3GalleryPublisher* -publishing_gallery3_gallery_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingGallery3GalleryPublisher * self = NULL; - PublishingGallery3Session* _tmp0_; -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3GalleryPublisher*) g_object_new (object_type, NULL); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->service = service; -#line 817 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->host = host; -#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_gallery3_session_new (); -#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->session = _tmp0_; -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 6594 "GalleryConnector.c" -} - - -PublishingGallery3GalleryPublisher* -publishing_gallery3_gallery_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_gallery_publisher_construct (PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, service, host); -#line 6604 "GalleryConnector.c" -} - - -static gboolean -publishing_gallery3_gallery_publisher_real_is_running (SpitPublishingPublisher* base) -{ - PublishingGallery3GalleryPublisher * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher); -#line 822 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->running; -#line 822 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 822 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6622 "GalleryConnector.c" -} - - -static SpitPublishingService* -publishing_gallery3_gallery_publisher_real_get_service (SpitPublishingPublisher* base) -{ - PublishingGallery3GalleryPublisher * self; - SpitPublishingService* result = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingService* _tmp1_; -#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->service; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp1_; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6643 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_real_start (SpitPublishingPublisher* base) -{ - PublishingGallery3GalleryPublisher * self; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_ = FALSE; - const gchar* _tmp3_; -#line 829 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher); -#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 6661 "GalleryConnector.c" - } -#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp0_ == NULL) { -#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:834: %s", "GalleryPublisher: start( ): can't start; this " "publisher is not restartable."); -#line 6669 "GalleryConnector.c" - } -#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:837: GalleryPublisher: starting interaction."); -#line 839 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->running = TRUE; -#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_gallery3_gallery_publisher_get_api_key (self); -#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->key); -#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key = _tmp1_; -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = self->priv->key; -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (NULL == _tmp3_) { -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = TRUE; -#line 6687 "GalleryConnector.c" - } else { - const gchar* _tmp4_; -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = self->priv->key; -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strcmp0 ("", _tmp4_) == 0; -#line 6694 "GalleryConnector.c" - } -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp2_) { -#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (self); -#line 6700 "GalleryConnector.c" - } else { - gchar* url = NULL; - gchar* _tmp5_; - gchar* username = NULL; - gchar* _tmp6_; - gboolean _tmp7_ = FALSE; - gboolean _tmp8_ = FALSE; - const gchar* _tmp9_; -#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = publishing_gallery3_gallery_publisher_get_gallery_url (self); -#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url = _tmp5_; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = publishing_gallery3_gallery_publisher_get_gallery_username (self); -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - username = _tmp6_; -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = username; -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (NULL == _tmp9_) { -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = TRUE; -#line 6723 "GalleryConnector.c" - } else { - const gchar* _tmp10_; -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = self->priv->key; -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = NULL == _tmp10_; -#line 6730 "GalleryConnector.c" - } -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp8_) { -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = TRUE; -#line 6736 "GalleryConnector.c" - } else { - const gchar* _tmp11_; -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = url; -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = NULL == _tmp11_; -#line 6743 "GalleryConnector.c" - } -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp7_) { -#line 850 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (self); -#line 6749 "GalleryConnector.c" - } else { - const gchar* _tmp12_; - const gchar* _tmp13_; - SpitPublishingPluginHost* _tmp14_; - PublishingGallery3Session* _tmp15_; - const gchar* _tmp16_; - const gchar* _tmp17_; - const gchar* _tmp18_; -#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = username; -#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = url; -#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("ACTION: attempting network login for user " "'%s' at URL '%s' from saved credentials.", _tmp12_, _tmp13_); -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = self->priv->host; -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp14_); -#line 858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = self->priv->session; -#line 858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = url; -#line 858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = username; -#line 858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = self->priv->key; -#line 858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_authenticate (_tmp15_, _tmp16_, _tmp17_, _tmp18_); -#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_fetch_album_urls (self); -#line 6780 "GalleryConnector.c" - } -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (username); -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url); -#line 6786 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_gallery_publisher_real_stop (SpitPublishingPublisher* base) -{ - PublishingGallery3GalleryPublisher * self; -#line 866 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher); -#line 867 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:867: GalleryPublisher: stop( ) invoked."); -#line 869 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->running = FALSE; -#line 6801 "GalleryConnector.c" -} - - -gchar* -publishing_gallery3_gallery_publisher_get_api_key (PublishingGallery3GalleryPublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL); -#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "api-key", NULL); -#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp1_; -#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6821 "GalleryConnector.c" -} - - -void -publishing_gallery3_gallery_publisher_set_api_key (PublishingGallery3GalleryPublisher* self, - const gchar* key) -{ - SpitPublishingPluginHost* _tmp0_; -#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (key != NULL); -#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "api-key", key); -#line 6838 "GalleryConnector.c" -} - - -gchar* -publishing_gallery3_gallery_publisher_get_gallery_url (PublishingGallery3GalleryPublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 883 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL); -#line 884 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 884 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "url", NULL); -#line 884 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp1_; -#line 884 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6858 "GalleryConnector.c" -} - - -void -publishing_gallery3_gallery_publisher_set_gallery_url (PublishingGallery3GalleryPublisher* self, - const gchar* url) -{ - SpitPublishingPluginHost* _tmp0_; -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (url != NULL); -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "url", url); -#line 6875 "GalleryConnector.c" -} - - -gchar* -publishing_gallery3_gallery_publisher_get_gallery_username (PublishingGallery3GalleryPublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL); -#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", NULL); -#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp1_; -#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6895 "GalleryConnector.c" -} - - -void -publishing_gallery3_gallery_publisher_set_gallery_username (PublishingGallery3GalleryPublisher* self, - const gchar* username) -{ - SpitPublishingPluginHost* _tmp0_; -#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (username != NULL); -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", username); -#line 6912 "GalleryConnector.c" -} - - -static gboolean* -_bool_dup (gboolean* self) -{ - gboolean* dup; -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - dup = g_new0 (gboolean, 1); -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - memcpy (dup, self, sizeof (gboolean)); -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return dup; -#line 6926 "GalleryConnector.c" -} - - -static gpointer -__bool_dup0 (gpointer self) -{ -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? _bool_dup (self) : NULL; -#line 6935 "GalleryConnector.c" -} - - -gboolean* -publishing_gallery3_gallery_publisher_get_persistent_strip_metadata (PublishingGallery3GalleryPublisher* self) -{ - gboolean* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gboolean _tmp1_; - gboolean* _tmp2_; -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL); -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip-metadata", FALSE); -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = __bool_dup0 (&_tmp1_); -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp2_; -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 6958 "GalleryConnector.c" -} - - -void -publishing_gallery3_gallery_publisher_set_persistent_strip_metadata (PublishingGallery3GalleryPublisher* self, - gboolean strip_metadata) -{ - SpitPublishingPluginHost* _tmp0_; -#line 904 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip-metadata", strip_metadata); -#line 6973 "GalleryConnector.c" -} - - -static gint* -_int_dup (gint* self) -{ - gint* dup; -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - dup = g_new0 (gint, 1); -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - memcpy (dup, self, sizeof (gint)); -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return dup; -#line 6987 "GalleryConnector.c" -} - - -static gpointer -__int_dup0 (gpointer self) -{ -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? _int_dup (self) : NULL; -#line 6996 "GalleryConnector.c" -} - - -gint* -publishing_gallery3_gallery_publisher_get_scaling_constraint_id (PublishingGallery3GalleryPublisher* self) -{ - gint* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gint _tmp1_; - gint* _tmp2_; -#line 908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL); -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "scaling-constraint-id", 0); -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = __int_dup0 (&_tmp1_); -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp2_; -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 7019 "GalleryConnector.c" -} - - -void -publishing_gallery3_gallery_publisher_set_scaling_constraint_id (PublishingGallery3GalleryPublisher* self, - gint constraint) -{ - SpitPublishingPluginHost* _tmp0_; -#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "scaling-constraint-id", constraint); -#line 7034 "GalleryConnector.c" -} - - -gint* -publishing_gallery3_gallery_publisher_get_scaling_pixels (PublishingGallery3GalleryPublisher* self) -{ - gint* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gint _tmp1_; - gint* _tmp2_; -#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self), NULL); -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "scaling-pixels", 1024); -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = __int_dup0 (&_tmp1_); -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp2_; -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 7057 "GalleryConnector.c" -} - - -void -publishing_gallery3_gallery_publisher_set_scaling_pixels (PublishingGallery3GalleryPublisher* self, - gint pixels) -{ - SpitPublishingPluginHost* _tmp0_; -#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "scaling-pixels", pixels); -#line 7072 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_service_welcome_login_spit_publishing_login_callback (gpointer self) -{ -#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_service_welcome_login ((PublishingGallery3GalleryPublisher*) self); -#line 7081 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (PublishingGallery3GalleryPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; -#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 926 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:926: ACTION: showing service welcome pane."); -#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_install_welcome_pane (_tmp0_, PUBLISHING_GALLERY3_SERVICE_WELCOME_MESSAGE, _publishing_gallery3_gallery_publisher_on_service_welcome_login_spit_publishing_login_callback, self); -#line 7097 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_credentials_go_back_publishing_gallery3_credentials_pane_go_back (PublishingGallery3CredentialsPane* _sender, - gpointer self) -{ -#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_credentials_go_back ((PublishingGallery3GalleryPublisher*) self); -#line 7107 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_credentials_login_publishing_gallery3_credentials_pane_login (PublishingGallery3CredentialsPane* _sender, - const gchar* url, - const gchar* uname, - const gchar* password, - const gchar* key, - gpointer self) -{ -#line 942 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_credentials_login ((PublishingGallery3GalleryPublisher*) self, url, uname, password); -#line 7121 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_show_credentials_pane (PublishingGallery3GalleryPublisher* self, - PublishingGallery3CredentialsPaneMode mode) -{ - gchar* _tmp0_; - gchar* _tmp1_; - PublishingGallery3Session* _tmp2_; - PublishingGallery3CredentialsPane* creds_pane = NULL; - SpitPublishingPluginHost* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - PublishingGallery3CredentialsPane* _tmp10_; - PublishingGallery3CredentialsPane* _tmp11_; - SpitPublishingPluginHost* _tmp12_; -#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_gallery3_credentials_pane_mode_to_string (mode); -#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp0_; -#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:933: ACTION: showing credentials capture pane in" \ -" %s mode.", _tmp1_); -#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp1_); -#line 936 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 936 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_deauthenticate (_tmp2_); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = self->priv->host; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = publishing_gallery3_gallery_publisher_get_gallery_url (self); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _tmp4_; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = publishing_gallery3_gallery_publisher_get_gallery_username (self); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _tmp6_; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = publishing_gallery3_gallery_publisher_get_api_key (self); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = _tmp8_; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = publishing_gallery3_credentials_pane_new (_tmp3_, mode, _tmp5_, _tmp7_, _tmp9_); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = _tmp10_; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp9_); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp7_); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp5_); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - creds_pane = _tmp11_; -#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (creds_pane, "go-back", (GCallback) _publishing_gallery3_gallery_publisher_on_credentials_go_back_publishing_gallery3_credentials_pane_go_back, self, 0); -#line 942 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (creds_pane, "login", (GCallback) _publishing_gallery3_gallery_publisher_on_credentials_login_publishing_gallery3_credentials_pane_login, self, 0); -#line 944 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = self->priv->host; -#line 944 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (creds_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (creds_pane); -#line 7193 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_key_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_key_fetch_error ((PublishingGallery3GalleryPublisher*) self, _sender, err); -#line 7204 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_key_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_key_fetch_complete ((PublishingGallery3GalleryPublisher*) self, _sender); -#line 7214 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_network_login (PublishingGallery3GalleryPublisher* self, - const gchar* url, - const gchar* username, - const gchar* password) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingGallery3KeyFetchTransaction* fetch_trans = NULL; - PublishingGallery3Session* _tmp1_; - PublishingGallery3KeyFetchTransaction* _tmp2_; - GError * _inner_error_ = NULL; -#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (url != NULL); -#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (username != NULL); -#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (password != NULL); -#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("ACTION: attempting network login for user '%s' at URL " "'%s'.", username, url); -#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_install_login_wait_pane (_tmp0_); -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->session; -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = publishing_gallery3_key_fetch_transaction_new (_tmp1_, url, username, password); -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - fetch_trans = _tmp2_; -#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (fetch_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_error_publishing_rest_support_transaction_network_error, self, 0); -#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (fetch_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_complete_publishing_rest_support_transaction_completed, self, 0); -#line 7253 "GalleryConnector.c" - { -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (fetch_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 7261 "GalleryConnector.c" - goto __catch9_spit_publishing_publishing_error; - } -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (fetch_trans); -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7272 "GalleryConnector.c" - } - } - goto __finally9; - __catch9_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp3_; -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - err = _inner_error_; -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 962 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:962: Caught an error attempting to login"); -#line 965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = err; -#line 965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_key_fetch_error (self, G_TYPE_CHECK_INSTANCE_CAST (fetch_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp3_); -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (err); -#line 7292 "GalleryConnector.c" - } - __finally9: -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (fetch_trans); -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7305 "GalleryConnector.c" - } -#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (fetch_trans); -#line 7309 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_album_urls_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_urls_fetch_error ((PublishingGallery3GalleryPublisher*) self, _sender, err); -#line 7320 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete ((PublishingGallery3GalleryPublisher*) self, _sender); -#line 7330 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_fetch_album_urls (PublishingGallery3GalleryPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingGallery3GetAlbumURLsTransaction* album_trans = NULL; - PublishingGallery3Session* _tmp1_; - PublishingGallery3GetAlbumURLsTransaction* _tmp2_; - GError * _inner_error_ = NULL; -#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp0_); -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->session; -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = publishing_gallery3_get_album_ur_ls_transaction_new (_tmp1_); -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_trans = _tmp2_; -#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_error_publishing_rest_support_transaction_network_error, self, 0); -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete_publishing_rest_support_transaction_completed, self, 0); -#line 7358 "GalleryConnector.c" - { -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 7366 "GalleryConnector.c" - goto __catch10_spit_publishing_publishing_error; - } -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7377 "GalleryConnector.c" - } - } - goto __finally10; - __catch10_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp3_; -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - err = _inner_error_; -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 981 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:981: Caught an error attempting to fetch albums"); -#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = err; -#line 984 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_urls_fetch_error (self, G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp3_); -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (err); -#line 7397 "GalleryConnector.c" - } - __finally10: -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7410 "GalleryConnector.c" - } -#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 7414 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_album_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_fetch_error ((PublishingGallery3GalleryPublisher*) self, _sender, err); -#line 7425 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_album_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_fetch_complete ((PublishingGallery3GalleryPublisher*) self, _sender); -#line 7435 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_fetch_albums (PublishingGallery3GalleryPublisher* self, - gchar** album_urls, - int album_urls_length1, - guint start) -{ - PublishingGallery3GetAlbumsTransaction* album_trans = NULL; - PublishingGallery3Session* _tmp0_; - PublishingGallery3GetAlbumsTransaction* _tmp1_; - GError * _inner_error_ = NULL; -#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->session; -#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_gallery3_get_albums_transaction_new (_tmp0_, album_urls, album_urls_length1, start); -#line 991 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_trans = _tmp1_; -#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_error_publishing_rest_support_transaction_network_error, self, 0); -#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_complete_publishing_rest_support_transaction_completed, self, 0); -#line 7461 "GalleryConnector.c" - { -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 7469 "GalleryConnector.c" - goto __catch11_spit_publishing_publishing_error; - } -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7480 "GalleryConnector.c" - } - } - goto __finally11; - __catch11_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - err = _inner_error_; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = err; -#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_fetch_error (self, G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp2_); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (err); -#line 7498 "GalleryConnector.c" - } - __finally11: -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7511 "GalleryConnector.c" - } -#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 7515 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish_publishing_gallery3_publishing_options_pane_publish (PublishingGallery3PublishingOptionsPane* _sender, - PublishingGallery3PublishingParameters* parameters, - gpointer self) -{ -#line 1032 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish ((PublishingGallery3GalleryPublisher*) self, parameters); -#line 7526 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout_publishing_gallery3_publishing_options_pane_logout (PublishingGallery3PublishingOptionsPane* _sender, - gpointer self) -{ -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout ((PublishingGallery3GalleryPublisher*) self); -#line 7536 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_show_publishing_options_pane (PublishingGallery3GalleryPublisher* self, - const gchar* url, - const gchar* username) -{ - GtkBuilder* builder = NULL; - GtkBuilder* _tmp0_; - SpitPublishingPluginHost* _tmp9_; - PublishingGallery3Album** _tmp10_; - gint _tmp10__length1; - GtkBuilder* _tmp11_; - gboolean* _tmp12_; - gboolean* _tmp13_; - gint* _tmp14_; - gint* _tmp15_; - gint* _tmp16_; - gint* _tmp17_; - PublishingGallery3PublishingOptionsPane* _tmp18_; - PublishingGallery3PublishingOptionsPane* _tmp19_; - PublishingGallery3PublishingOptionsPane* _tmp20_; - SpitPublishingPluginHost* _tmp21_; - PublishingGallery3PublishingOptionsPane* _tmp22_; - GError * _inner_error_ = NULL; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (url != NULL); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (username != NULL); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1009: ACTION: showing publishing options pane"); -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = gtk_builder_new (); -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - builder = _tmp0_; -#line 7575 "GalleryConnector.c" - { - GtkBuilder* _tmp1_; -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = builder; -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_builder_add_from_resource (_tmp1_, PLUGIN_RESOURCE_PATH "/gallery3_publishing_options_pane.ui", &_inner_error_); -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7584 "GalleryConnector.c" - goto __catch12_g_error; - } - } - goto __finally12; - __catch12_g_error: - { - GError* e = NULL; - GError* _tmp2_; - const gchar* _tmp3_; - SpitPublishingPluginHost* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GError* _tmp7_; - GError* _tmp8_; -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - e = _inner_error_; -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = e; -#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = _tmp2_->message; -#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:1018: Could not parse UI file! Error: %s.", _tmp3_); -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = self->priv->host; -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = g_strdup_printf (_ ("A file required for publishing is unavailable. Publishing to %s can’t " \ -"continue."), PUBLISHING_GALLERY3_SERVICE_NAME); -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp6_); -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = _tmp7_; -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp8_); -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (_tmp8_); -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp6_); -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (e); -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (builder); -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7631 "GalleryConnector.c" - } - __finally12: -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (builder); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7644 "GalleryConnector.c" - } -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = self->priv->host; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = self->priv->albums; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10__length1 = self->priv->albums_length1; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = builder; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = publishing_gallery3_gallery_publisher_get_persistent_strip_metadata (self); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = _tmp12_; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = publishing_gallery3_gallery_publisher_get_scaling_constraint_id (self); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _tmp14_; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = publishing_gallery3_gallery_publisher_get_scaling_pixels (self); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = _tmp16_; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = publishing_gallery3_publishing_options_pane_new (_tmp9_, url, username, _tmp10_, _tmp10__length1, _tmp11_, *_tmp13_, *_tmp15_, *_tmp17_); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->publishing_options_pane); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->publishing_options_pane = _tmp18_; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp17_); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp15_); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp13_); -#line 1032 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = self->priv->publishing_options_pane; -#line 1032 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (_tmp19_, "publish", (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish_publishing_gallery3_publishing_options_pane_publish, self, 0); -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = self->priv->publishing_options_pane; -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (_tmp20_, "logout", (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout_publishing_gallery3_publishing_options_pane_logout, self, 0); -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = self->priv->host; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = self->priv->publishing_options_pane; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (builder); -#line 7694 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_album_create_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_create_error ((PublishingGallery3GalleryPublisher*) self, _sender, err); -#line 7705 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_album_create_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_create_complete ((PublishingGallery3GalleryPublisher*) self, _sender); -#line 7715 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_create_album (PublishingGallery3GalleryPublisher* self, - PublishingGallery3PublishingParameters* parameters) -{ - PublishingGallery3GalleryAlbumCreateTransaction* album_trans = NULL; - PublishingGallery3Session* _tmp0_; - PublishingGallery3GalleryAlbumCreateTransaction* _tmp1_; - GError * _inner_error_ = NULL; -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters)); -#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1042: ACTION: creating album"); -#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->session; -#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = publishing_gallery3_gallery_album_create_transaction_new (_tmp0_, parameters); -#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_trans = _tmp1_; -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_error_publishing_rest_support_transaction_network_error, self, 0); -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_complete_publishing_rest_support_transaction_completed, self, 0); -#line 7743 "GalleryConnector.c" - { -#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 7751 "GalleryConnector.c" - goto __catch13_spit_publishing_publishing_error; - } -#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 1050 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7762 "GalleryConnector.c" - } - } - goto __finally13; - __catch13_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - err = _inner_error_; -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 1054 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = err; -#line 1054 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_create_error (self, G_TYPE_CHECK_INSTANCE_CAST (album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp2_); -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (err); -#line 7780 "GalleryConnector.c" - } - __finally13: -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7793 "GalleryConnector.c" - } -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (album_trans); -#line 7797 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_publish_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self) -{ -#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_publish_complete ((PublishingGallery3GalleryPublisher*) self, _sender, num_photos_published); -#line 7808 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_publish_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self) -{ -#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_publish_error ((PublishingGallery3GalleryPublisher*) self, _sender, err); -#line 7819 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_gallery_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_upload_status_updated ((PublishingGallery3GalleryPublisher*) self, file_number, fraction_complete); -#line 7830 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_publish (PublishingGallery3GalleryPublisher* self, - PublishingGallery3PublishingParameters* parameters) -{ - gboolean _tmp0_; - gboolean _tmp1_; - gint _tmp2_ = 0; - gint _tmp3_; - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; - SpitPublishingPluginHost* _tmp7_; - SpitPublishingPluginHost* _tmp8_; - gint _tmp9_; - gint _tmp10_; - gboolean _tmp11_; - gboolean _tmp12_; - void* _tmp13_; - GDestroyNotify _tmp14_; - SpitPublishingProgressCallback _tmp15_; - PublishingGallery3Uploader* uploader = NULL; - PublishingGallery3Session* _tmp16_; - SpitPublishingPluginHost* _tmp17_; - gint _tmp18_; - SpitPublishingPublishable** _tmp19_; - SpitPublishingPublishable** _tmp20_; - gint _tmp20__length1; - PublishingGallery3Uploader* _tmp21_; - PublishingGallery3Uploader* _tmp22_; - PublishingGallery3Uploader* _tmp23_; - PublishingGallery3Uploader* _tmp24_; - PublishingGallery3Uploader* _tmp25_; -#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters)); -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1061: ACTION: publishing items"); -#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_gallery3_publishing_parameters_get_strip_metadata (parameters); -#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp0_; -#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_set_persistent_strip_metadata (self, _tmp1_); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_gallery3_publishing_parameters_get_photo_major_axis_size (parameters); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp4_ <= 0) { -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = 0; -#line 7886 "GalleryConnector.c" - } else { -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = 1; -#line 7890 "GalleryConnector.c" - } -#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_set_scaling_constraint_id (self, _tmp2_); -#line 1066 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = publishing_gallery3_publishing_parameters_get_photo_major_axis_size (parameters); -#line 1066 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 1066 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_set_scaling_pixels (self, _tmp6_); -#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = self->priv->host; -#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_set_service_locked (_tmp7_, TRUE); -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = self->priv->host; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = publishing_gallery3_publishing_parameters_get_photo_major_axis_size (parameters); -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = _tmp9_; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = publishing_gallery3_publishing_parameters_get_strip_metadata (parameters); -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = _tmp11_; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = spit_publishing_plugin_host_serialize_publishables (_tmp8_, _tmp10_, _tmp12_, &_tmp13_, &_tmp14_); -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter = NULL; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter_target = NULL; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter = _tmp15_; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter_target = _tmp13_; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp14_; -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 7934 "GalleryConnector.c" - } -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = self->priv->session; -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = self->priv->host; -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = spit_publishing_plugin_host_get_publishables (_tmp17_, &_tmp18_); -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = _tmp19_; -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20__length1 = _tmp18_; -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = publishing_gallery3_uploader_new (_tmp16_, _tmp20_, _tmp18_, parameters); -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = _tmp21_; -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = (_vala_array_free (_tmp20_, _tmp20__length1, (GDestroyNotify) g_object_unref), NULL); -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - uploader = _tmp22_; -#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = uploader; -#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_gallery3_gallery_publisher_on_publish_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0); -#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = uploader; -#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_gallery3_gallery_publisher_on_publish_error_publishing_rest_support_batch_uploader_upload_error, self, 0); -#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = uploader; -#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_gallery3_gallery_publisher_on_upload_status_updated_spit_publishing_progress_callback, self); -#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_batch_uploader_unref0 (uploader); -#line 7968 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_do_show_success_pane (PublishingGallery3GalleryPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1090 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1090: ACTION: showing success pane."); -#line 1092 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 1092 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->host; -#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_install_success_pane (_tmp1_); -#line 7989 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_service_welcome_login (PublishingGallery3GalleryPublisher* self) -{ -#line 1097 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8002 "GalleryConnector.c" - } -#line 1101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1101: EVENT: user clicked 'Login' in welcome pan" \ -"e."); -#line 1103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO); -#line 8008 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_credentials_login (PublishingGallery3GalleryPublisher* self, - const gchar* url, - const gchar* username, - const gchar* password) -{ -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (url != NULL); -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (username != NULL); -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (password != NULL); -#line 1108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8030 "GalleryConnector.c" - } -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1111: EVENT: user '%s' clicked 'Login' in creden" \ -"tials pane.", username); -#line 1114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_set_gallery_url (self, url); -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_set_gallery_username (self, username); -#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_network_login (self, url, username, password); -#line 8040 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_credentials_go_back (PublishingGallery3GalleryPublisher* self) -{ -#line 1119 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8053 "GalleryConnector.c" - } -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1123: EVENT: user is attempting to go back."); -#line 1125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (self); -#line 8059 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_key_fetch_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Session* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 1134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1135 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8089 "GalleryConnector.c" - } -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1139 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8097 "GalleryConnector.c" - } -#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_rest_support_transaction_get_response (bad_txn); -#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("EVENT: network transaction to fetch key for login " "failed; response = '%s'.", _tmp4_); -#line 1141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp4_); -#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 403)) { -#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY); -#line 8111 "GalleryConnector.c" - } else { -#line 1154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 400)) { -#line 1157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL); -#line 8117 "GalleryConnector.c" - } else { - SpitPublishingPluginHost* _tmp5_; -#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = self->priv->host; -#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_post_error (_tmp5_, err); -#line 8124 "GalleryConnector.c" - } - } -} - - -static void -publishing_gallery3_gallery_publisher_on_key_fetch_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Session* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; -#line 1164 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1164 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_key_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8155 "GalleryConnector.c" - } -#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1174 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8163 "GalleryConnector.c" - } -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_gallery3_key_fetch_transaction_get_key (G_TYPE_CHECK_INSTANCE_TYPE (txn, PUBLISHING_GALLERY3_TYPE_KEY_FETCH_TRANSACTION) ? ((PublishingGallery3KeyFetchTransaction*) txn) : NULL); -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->key); -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key = _tmp3_; -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = self->priv->key; -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp4_ == NULL) { -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:1178: key doesn\'t exist"); -#line 8177 "GalleryConnector.c" - } else { - gchar* url = NULL; - gchar* _tmp5_; - gchar* username = NULL; - gchar* _tmp6_; - const gchar* _tmp7_; - PublishingGallery3Session* _tmp8_; - const gchar* _tmp9_; - const gchar* _tmp10_; - const gchar* _tmp11_; -#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = publishing_gallery3_gallery_publisher_get_gallery_url (self); -#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url = _tmp5_; -#line 1181 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = publishing_gallery3_gallery_publisher_get_gallery_username (self); -#line 1181 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - username = _tmp6_; -#line 1183 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1183: %s", "EVENT: network transaction to fetch key completed " "successfully."); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = self->priv->key; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_set_api_key (self, _tmp7_); -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = self->priv->session; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = url; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = username; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = self->priv->key; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_authenticate (_tmp8_, _tmp9_, _tmp10_, _tmp11_); -#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_fetch_album_urls (self); -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (username); -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url); -#line 8218 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_gallery_publisher_on_album_urls_fetch_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Session* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 1200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8249 "GalleryConnector.c" - } -#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8257 "GalleryConnector.c" - } -#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_rest_support_transaction_get_response (bad_txn); -#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("EVENT: network transaction to fetch album URLs " "failed; response = \'%s\'.", _tmp4_); -#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp4_); -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 403)) { -#line 1218 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY); -#line 8271 "GalleryConnector.c" - } else { -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 400)) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL); -#line 8277 "GalleryConnector.c" - } else { - SpitPublishingPluginHost* _tmp5_; -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = self->priv->host; -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_post_error (_tmp5_, err); -#line 8284 "GalleryConnector.c" - } - } -} - - -static void -publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Session* _tmp2_; - gchar** album_urls = NULL; - gint _tmp3_; - gchar** _tmp4_; - gint album_urls_length1; - gint _album_urls_size_; - gchar** _tmp5_; - gint _tmp5__length1; -#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_urls_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8320 "GalleryConnector.c" - } -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1240 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8328 "GalleryConnector.c" - } -#line 1242 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1242: EVENT: retrieving all album URLs."); -#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = publishing_gallery3_get_album_ur_ls_transaction_get_album_urls (G_TYPE_CHECK_INSTANCE_TYPE (txn, PUBLISHING_GALLERY3_TYPE_GET_ALBUM_UR_LS_TRANSACTION) ? ((PublishingGallery3GetAlbumURLsTransaction*) txn) : NULL, &_tmp3_); -#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_urls = _tmp4_; -#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_urls_length1 = _tmp3_; -#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _album_urls_size_ = album_urls_length1; -#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = album_urls; -#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5__length1 = album_urls_length1; -#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (NULL == _tmp5_) { -#line 8346 "GalleryConnector.c" - gchar* url = NULL; - PublishingGallery3Session* _tmp6_; - const gchar* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - gchar* username = NULL; - PublishingGallery3Session* _tmp10_; - const gchar* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; - const gchar* _tmp14_; - const gchar* _tmp15_; -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = self->priv->session; -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = publishing_gallery3_session_get_url (_tmp6_); -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = _tmp7_; -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url = _tmp9_; -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = self->priv->session; -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = publishing_gallery3_session_get_username (_tmp10_); -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = _tmp11_; -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = g_strdup (_tmp12_); -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - username = _tmp13_; -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = url; -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = username; -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_publishing_options_pane (self, _tmp14_, _tmp15_); -#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (username); -#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url); -#line 8389 "GalleryConnector.c" - } else { - gchar** _tmp16_; - gint _tmp16__length1; -#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = album_urls; -#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16__length1 = album_urls_length1; -#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_fetch_albums (self, _tmp16_, _tmp16__length1, (guint) 0); -#line 8399 "GalleryConnector.c" - } -#line 1230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_urls = (_vala_array_free (album_urls, album_urls_length1, (GDestroyNotify) g_free), NULL); -#line 8403 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_album_fetch_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Session* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8433 "GalleryConnector.c" - } -#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8441 "GalleryConnector.c" - } -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_rest_support_transaction_get_response (bad_txn); -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("EVENT: network transaction to fetch albums " "failed; response = \'%s\'.", _tmp4_); -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp4_); -#line 1281 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 403)) { -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY); -#line 8455 "GalleryConnector.c" - } else { -#line 1285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 400)) { -#line 1288 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL); -#line 8461 "GalleryConnector.c" - } else { - SpitPublishingPluginHost* _tmp5_; -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = self->priv->host; -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_post_error (_tmp5_, err); -#line 8468 "GalleryConnector.c" - } - } -} - - -static void -_vala_array_add5 (PublishingGallery3Album** * array, - int* length, - int* size, - PublishingGallery3Album* value) -{ -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if ((*length) == (*size)) { -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *array = g_renew (PublishingGallery3Album*, *array, (*size) + 1); -#line 8486 "GalleryConnector.c" - } -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[(*length)++] = value; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (*array)[*length] = NULL; -#line 8492 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_album_fetch_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Album** new_albums = NULL; - gint new_albums_length1; - gint _new_albums_size_; - PublishingGallery3Session* _tmp2_; - gboolean _tmp17_; - gboolean _tmp18_; - GError * _inner_error_ = NULL; -#line 1295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 1297 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 1297 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums = NULL; -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums_length1 = 0; -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _new_albums_size_ = new_albums_length1; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8533 "GalleryConnector.c" - } -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 1307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8543 "GalleryConnector.c" - } -#line 1309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1309: EVENT: user is attempting to populate the " \ -"album list."); -#line 8547 "GalleryConnector.c" - { - PublishingGallery3Album** _tmp3_ = NULL; - gint _tmp4_; - PublishingGallery3Album** _tmp5_; - gint _tmp3__length1; - gint __tmp3__size_; - PublishingGallery3Album** _tmp6_; - gint _tmp6__length1; -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = publishing_gallery3_get_albums_transaction_get_albums (G_TYPE_CHECK_INSTANCE_TYPE (txn, PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION) ? ((PublishingGallery3GetAlbumsTransaction*) txn) : NULL, &_tmp4_, &_inner_error_); -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = _tmp5_; -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3__length1 = _tmp4_; -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - __tmp3__size_ = _tmp3__length1; -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 8568 "GalleryConnector.c" - goto __catch14_spit_publishing_publishing_error; - } -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8579 "GalleryConnector.c" - } -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp3_; -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6__length1 = _tmp3__length1; -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = NULL; -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3__length1 = 0; -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums = _tmp6_; -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums_length1 = _tmp6__length1; -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _new_albums_size_ = new_albums_length1; -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 8599 "GalleryConnector.c" - } - goto __finally14; - __catch14_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp7_; -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - err = _inner_error_; -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = err; -#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_on_album_fetch_error (self, txn, _tmp7_); -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (err); -#line 8616 "GalleryConnector.c" - } - __finally14: -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8629 "GalleryConnector.c" - } - { - gint i = 0; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - i = 0; -#line 8635 "GalleryConnector.c" - { - gboolean _tmp8_ = FALSE; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = TRUE; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - while (TRUE) { -#line 8642 "GalleryConnector.c" - gint _tmp10_; - PublishingGallery3Album** _tmp11_; - gint _tmp11__length1; - PublishingGallery3Album** _tmp12_; - gint _tmp12__length1; - PublishingGallery3Album** _tmp13_; - gint _tmp13__length1; - gint _tmp14_; - PublishingGallery3Album* _tmp15_; - PublishingGallery3Album* _tmp16_; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!_tmp8_) { -#line 8655 "GalleryConnector.c" - gint _tmp9_; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = i; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - i = _tmp9_ + 1; -#line 8661 "GalleryConnector.c" - } -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = FALSE; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = i; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = new_albums; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11__length1 = new_albums_length1; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!(_tmp10_ <= (_tmp11__length1 - 1))) { -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 8675 "GalleryConnector.c" - } -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = self->priv->albums; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12__length1 = self->priv->albums_length1; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = new_albums; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13__length1 = new_albums_length1; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = i; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _tmp13_[_tmp14_]; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = _publishing_gallery3_album_ref0 (_tmp15_); -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_array_add5 (&self->priv->albums, &self->priv->albums_length1, &self->priv->_albums_size_, _tmp16_); -#line 8693 "GalleryConnector.c" - } - } - } -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = publishing_gallery3_get_albums_transaction_get_more_urls (G_TYPE_CHECK_INSTANCE_TYPE (txn, PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION) ? ((PublishingGallery3GetAlbumsTransaction*) txn) : NULL); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = _tmp17_; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp18_) { -#line 8703 "GalleryConnector.c" - gchar** _tmp19_; - gint _tmp19__length1; - gchar** _tmp20_; - gint _tmp20__length1; - guint _tmp21_; - guint _tmp22_; -#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = publishing_gallery3_get_albums_transaction_get_album_urls (G_TYPE_CHECK_INSTANCE_TYPE (txn, PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION) ? ((PublishingGallery3GetAlbumsTransaction*) txn) : NULL, &_tmp19__length1); -#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = _tmp19_; -#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20__length1 = _tmp19__length1; -#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = publishing_gallery3_get_albums_transaction_get_urls_sent (G_TYPE_CHECK_INSTANCE_TYPE (txn, PUBLISHING_GALLERY3_TYPE_GET_ALBUMS_TRANSACTION) ? ((PublishingGallery3GetAlbumsTransaction*) txn) : NULL); -#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = _tmp21_; -#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_fetch_albums (self, _tmp20_, _tmp20__length1, _tmp22_); -#line 8722 "GalleryConnector.c" - } else { - gchar* url = NULL; - PublishingGallery3Session* _tmp23_; - const gchar* _tmp24_; - const gchar* _tmp25_; - gchar* _tmp26_; - gchar* username = NULL; - PublishingGallery3Session* _tmp27_; - const gchar* _tmp28_; - const gchar* _tmp29_; - gchar* _tmp30_; - const gchar* _tmp31_; - const gchar* _tmp32_; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = self->priv->session; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = publishing_gallery3_session_get_url (_tmp23_); -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = _tmp24_; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = g_strdup (_tmp25_); -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - url = _tmp26_; -#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = self->priv->session; -#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = publishing_gallery3_session_get_username (_tmp27_); -#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = _tmp28_; -#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp30_ = g_strdup (_tmp29_); -#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - username = _tmp30_; -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp31_ = url; -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32_ = username; -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_publishing_options_pane (self, _tmp31_, _tmp32_); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (username); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (url); -#line 8766 "GalleryConnector.c" - } -#line 1295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_albums = (_vala_array_free (new_albums, new_albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 8770 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_album_create_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Session* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_complete_publishing_rest_support_transaction_completed, self); -#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_error_publishing_rest_support_transaction_network_error, self); -#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1345 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8800 "GalleryConnector.c" - } -#line 1348 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1348 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8808 "GalleryConnector.c" - } -#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_rest_support_transaction_get_response (bad_txn); -#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("EVENT: network transaction to create an album " "failed; response = \'%s\'.", _tmp4_); -#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp4_); -#line 1360 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 403)) { -#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY); -#line 8822 "GalleryConnector.c" - } else { -#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 400)) { -#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_credentials_pane (self, PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL); -#line 8828 "GalleryConnector.c" - } else { - SpitPublishingPluginHost* _tmp5_; -#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = self->priv->host; -#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_post_error (_tmp5_, err); -#line 8835 "GalleryConnector.c" - } - } -} - - -static void -publishing_gallery3_gallery_publisher_on_album_create_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Session* _tmp2_; - PublishingGallery3PublishingParameters* new_params = NULL; - PublishingGallery3PublishingParameters* _tmp3_; - PublishingGallery3PublishingParameters* _tmp4_; - PublishingGallery3PublishingParameters* _tmp5_; - PublishingGallery3PublishingParameters* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - PublishingGallery3PublishingParameters* _tmp9_; - const gchar* _tmp10_; - const gchar* _tmp11_; - PublishingGallery3PublishingParameters* _tmp12_; -#line 1374 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1374 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_complete_publishing_rest_support_transaction_completed, self); -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_album_create_error_publishing_rest_support_transaction_network_error, self); -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8875 "GalleryConnector.c" - } -#line 1383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8883 "GalleryConnector.c" - } -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = publishing_gallery3_gallery_album_create_transaction_get_parameters (G_TYPE_CHECK_INSTANCE_TYPE (txn, PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION) ? ((PublishingGallery3GalleryAlbumCreateTransaction*) txn) : NULL); -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = _tmp3_; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _publishing_gallery3_publishing_parameters_ref0 (_tmp4_); -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - new_params = _tmp5_; -#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = new_params; -#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = publishing_gallery3_gallery_album_create_transaction_get_new_album_path (G_TYPE_CHECK_INSTANCE_TYPE (txn, PUBLISHING_GALLERY3_TYPE_GALLERY_ALBUM_CREATE_TRANSACTION) ? ((PublishingGallery3GalleryAlbumCreateTransaction*) txn) : NULL); -#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = _tmp7_; -#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_set_album_path (_tmp6_, _tmp8_); -#line 1388 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp8_); -#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = new_params; -#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = publishing_gallery3_publishing_parameters_get_album_path (_tmp9_); -#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = _tmp10_; -#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1391: EVENT: user has created an album at \"%s\"" \ -".", _tmp11_); -#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = new_params; -#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_publish (self, _tmp12_); -#line 1374 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (new_params); -#line 8917 "GalleryConnector.c" -} - - -static gpointer -_publishing_rest_support_batch_uploader_ref0 (gpointer self) -{ -#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? publishing_rest_support_batch_uploader_ref (self) : NULL; -#line 8926 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_publish_error (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportBatchUploader* _uploader, - GError* err) -{ - PublishingGallery3Uploader* uploader = NULL; - PublishingGallery3Uploader* _tmp0_; - GError* g3_err = NULL; - GError* _tmp1_; - const gchar* _tmp2_; - PublishingGallery3Uploader* _tmp3_; - const gchar* _tmp4_; - const gchar* _tmp5_; - PublishingGallery3Uploader* _tmp6_; - guint _tmp7_; - guint _tmp8_; - PublishingGallery3Uploader* _tmp9_; - guint _tmp10_; - PublishingGallery3Uploader* _tmp11_; - guint _tmp12_; - PublishingGallery3Uploader* _tmp13_; - guint _tmp14_; - guint _tmp15_; - SpitPublishingPluginHost* _tmp32_; - GError* _tmp33_; -#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (_uploader)); -#line 1400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 8963 "GalleryConnector.c" - } -#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _publishing_rest_support_batch_uploader_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_uploader, PUBLISHING_GALLERY3_TYPE_UPLOADER) ? ((PublishingGallery3Uploader*) _uploader) : NULL); -#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - uploader = _tmp0_; -#line 1404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = g_error_copy (err); -#line 1404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g3_err = _tmp1_; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = err->message; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = uploader; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = publishing_gallery3_uploader_get_current_publishable_name (_tmp3_); -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _tmp4_; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = uploader; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = publishing_gallery3_uploader_get_status_code (_tmp6_); -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = _tmp7_; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("EVENT: uploader reports upload error = '%s' " "for file '%s' (code %d)", _tmp2_, _tmp5_, _tmp8_); -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = uploader; -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp10_, NULL, FALSE); -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publish_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = uploader; -#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp12_, NULL, FALSE); -#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publish_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = uploader; -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = publishing_gallery3_uploader_get_status_code (_tmp13_); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _tmp14_; -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp15_ == ((guint) 400)) { -#line 9009 "GalleryConnector.c" - GError* _tmp16_; - GError* _tmp17_; - const gchar* _tmp18_; - PublishingGallery3Uploader* _tmp19_; - const gchar* _tmp20_; - const gchar* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - PublishingGallery3Uploader* _tmp25_; - SpitPublishingPublisherMediaType _tmp26_; - SpitPublishingPublisherMediaType _tmp27_; -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = g3_err; -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = g3_err; -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = _tmp17_->message; -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = uploader; -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = publishing_gallery3_uploader_get_current_publishable_name (_tmp19_); -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = _tmp20_; -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = g_strdup_printf (PUBLISHING_GALLERY3_GALLERY_PUBLISHER_BAD_FILE_MSG, _tmp21_); -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = _tmp22_; -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = g_strconcat (_tmp18_, _tmp23_, NULL); -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp17_->message); -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_->message = _tmp24_; -#line 1415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp23_); -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = uploader; -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = publishing_gallery3_uploader_get_current_publishable_type (_tmp25_); -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = _tmp26_; -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp27_ == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 9054 "GalleryConnector.c" - GError* _tmp28_; - GError* _tmp29_; - const gchar* _tmp30_; - gchar* _tmp31_; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = g3_err; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = g3_err; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp30_ = _tmp29_->message; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp31_ = g_strconcat (_tmp30_, PUBLISHING_GALLERY3_GALLERY_PUBLISHER_BAD_MOVIE_MSG, NULL); -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp29_->message); -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_->message = _tmp31_; -#line 9071 "GalleryConnector.c" - } - } -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32_ = self->priv->host; -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp33_ = g3_err; -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_post_error (_tmp32_, _tmp33_); -#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (g3_err); -#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_batch_uploader_unref0 (uploader); -#line 9084 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_upload_status_updated (PublishingGallery3GalleryPublisher* self, - gint file_number, - gdouble completed_fraction) -{ - SpitPublishingProgressCallback _tmp0_; - void* _tmp0__target; - SpitPublishingProgressCallback _tmp1_; - void* _tmp1__target; -#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1429 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 9103 "GalleryConnector.c" - } -#line 1432 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1432: EVENT: uploader reports upload %.2f percen" \ -"t complete.", 100.0 * completed_fraction); -#line 1435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->progress_reporter; -#line 1435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 1435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 1437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->progress_reporter; -#line 1437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 1437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ (file_number, completed_fraction, _tmp1__target); -#line 9119 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_publish_complete (PublishingGallery3GalleryPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published) -{ - guint _tmp0_; - guint _tmp1_; - PublishingGallery3Session* _tmp2_; -#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publish_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 1445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 1445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publish_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 1447 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1448 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 9147 "GalleryConnector.c" - } -#line 1451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->session; -#line 1451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 9155 "GalleryConnector.c" - } -#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1454: EVENT: publishing complete; %d items publi" \ -"shed", num_published); -#line 1457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_success_pane (self); -#line 9161 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout (PublishingGallery3GalleryPublisher* self) -{ - PublishingGallery3PublishingOptionsPane* _tmp0_; - guint _tmp1_; - PublishingGallery3PublishingOptionsPane* _tmp2_; - guint _tmp3_; - PublishingGallery3Session* _tmp4_; -#line 1461 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->publishing_options_pane; -#line 1462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("publish", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 1462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish_publishing_gallery3_publishing_options_pane_publish, self); -#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->publishing_options_pane; -#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("logout", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE); -#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout_publishing_gallery3_publishing_options_pane_logout, self); -#line 1467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 9191 "GalleryConnector.c" - } -#line 1470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1470: EVENT: user is attempting to log out."); -#line 1472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = self->priv->session; -#line 1472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_deauthenticate (_tmp4_); -#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_show_service_welcome_pane (self); -#line 9201 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish (PublishingGallery3GalleryPublisher* self, - PublishingGallery3PublishingParameters* parameters) -{ - PublishingGallery3PublishingOptionsPane* _tmp0_; - guint _tmp1_; - PublishingGallery3PublishingOptionsPane* _tmp2_; - guint _tmp3_; -#line 1476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_GALLERY_PUBLISHER (self)); -#line 1476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters)); -#line 1477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->publishing_options_pane; -#line 1477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("publish", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 1477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_publish_publishing_gallery3_publishing_options_pane_publish, self); -#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->publishing_options_pane; -#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("logout", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE); -#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_gallery_publisher_on_publishing_options_pane_logout_publishing_gallery3_publishing_options_pane_logout, self); -#line 1482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 1483 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return; -#line 9233 "GalleryConnector.c" - } -#line 1485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1485: EVENT: user is attempting to publish somet" \ -"hing."); -#line 1487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_gallery3_publishing_parameters_is_to_new_album (parameters)) { -#line 9239 "GalleryConnector.c" - const gchar* _tmp4_; - const gchar* _tmp5_; -#line 1488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = publishing_gallery3_publishing_parameters_get_album_name (parameters); -#line 1488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _tmp4_; -#line 1488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1488: EVENT: must create new album \"%s\" first.", _tmp5_); -#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_create_album (self, parameters); -#line 9250 "GalleryConnector.c" - } else { -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_do_publish (self, parameters); -#line 9254 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_gallery_publisher_class_init (PublishingGallery3GalleryPublisherClass * klass) -{ -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_parent_class = g_type_class_peek_parent (klass); -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3GalleryPublisherPrivate)); -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_gallery3_gallery_publisher_finalize; -#line 9268 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) -{ -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_gallery_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface); -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->is_running = (gboolean (*) (SpitPublishingPublisher *)) publishing_gallery3_gallery_publisher_real_is_running; -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_service = (SpitPublishingService* (*) (SpitPublishingPublisher *)) publishing_gallery3_gallery_publisher_real_get_service; -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->start = (void (*) (SpitPublishingPublisher *)) publishing_gallery3_gallery_publisher_real_start; -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->stop = (void (*) (SpitPublishingPublisher *)) publishing_gallery3_gallery_publisher_real_stop; -#line 9285 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_instance_init (PublishingGallery3GalleryPublisher * self) -{ -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_GALLERY_PUBLISHER_GET_PRIVATE (self); -#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->host = NULL; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter = NULL; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter_target = self; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 806 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->service = NULL; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->session = NULL; -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->running = FALSE; -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->albums = NULL; -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->albums_length1 = 0; -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key = NULL; -#line 812 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->publishing_options_pane = NULL; -#line 9318 "GalleryConnector.c" -} - - -static void -publishing_gallery3_gallery_publisher_finalize (GObject * obj) -{ - PublishingGallery3GalleryPublisher * self; -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_GALLERY_PUBLISHER, PublishingGallery3GalleryPublisher); -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter = NULL; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter_target = NULL; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->key); -#line 812 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->publishing_options_pane); -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (publishing_gallery3_gallery_publisher_parent_class)->finalize (obj); -#line 9346 "GalleryConnector.c" -} - - -GType -publishing_gallery3_gallery_publisher_get_type (void) -{ - static volatile gsize publishing_gallery3_gallery_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_gallery_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3GalleryPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_gallery_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3GalleryPublisher), 0, (GInstanceInitFunc) publishing_gallery3_gallery_publisher_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_gallery3_gallery_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_gallery3_gallery_publisher_type_id; - publishing_gallery3_gallery_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingGallery3GalleryPublisher", &g_define_type_info, 0); - g_type_add_interface_static (publishing_gallery3_gallery_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info); - g_once_init_leave (&publishing_gallery3_gallery_publisher_type_id__volatile, publishing_gallery3_gallery_publisher_type_id); - } - return publishing_gallery3_gallery_publisher_type_id__volatile; -} - - -static PublishingGallery3Album** -_vala_array_dup3 (PublishingGallery3Album** self, - int length) -{ - PublishingGallery3Album** result; - int i; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = g_new0 (PublishingGallery3Album*, length + 1); -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - for (i = 0; i < length; i++) { -#line 9376 "GalleryConnector.c" - PublishingGallery3Album* _tmp0_; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _publishing_gallery3_album_ref0 (self[i]); -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result[i] = _tmp0_; -#line 9382 "GalleryConnector.c" - } -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 9386 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked ((PublishingGallery3PublishingOptionsPane*) self); -#line 9396 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked ((PublishingGallery3PublishingOptionsPane*) self); -#line 9406 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 1558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_on_new_album_entry_changed ((PublishingGallery3PublishingOptionsPane*) self); -#line 9416 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 1559 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed ((PublishingGallery3PublishingOptionsPane*) self); -#line 9426 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_publishing_options_pane_on_pixels_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_on_pixels_changed ((PublishingGallery3PublishingOptionsPane*) self); -#line 9436 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_on_logout_clicked ((PublishingGallery3PublishingOptionsPane*) self); -#line 9446 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1562 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_on_publish_clicked ((PublishingGallery3PublishingOptionsPane*) self); -#line 9456 "GalleryConnector.c" -} - - -PublishingGallery3PublishingOptionsPane* -publishing_gallery3_publishing_options_pane_construct (GType object_type, - SpitPublishingPluginHost* host, - const gchar* url, - const gchar* username, - PublishingGallery3Album** albums, - int albums_length1, - GtkBuilder* builder, - gboolean strip_metadata, - gint scaling_id, - gint scaling_pixels) -{ - PublishingGallery3PublishingOptionsPane * self = NULL; - PublishingGallery3Album** _tmp0_; - gint _tmp0__length1; - GtkBuilder* _tmp1_; - GSList* _tmp2_; - GSList* _tmp3_; - GObject* _tmp4_; - GtkGrid* _tmp5_; - GObject* _tmp6_; - GtkLabel* _tmp7_; - GObject* _tmp8_; - GtkRadioButton* _tmp9_; - GObject* _tmp10_; - GtkComboBoxText* _tmp11_; - GObject* _tmp12_; - GtkComboBoxText* _tmp13_; - GObject* _tmp14_; - GtkEntry* _tmp15_; - GObject* _tmp16_; - GtkRadioButton* _tmp17_; - GObject* _tmp18_; - GtkEntry* _tmp19_; - GtkBuilder* _tmp20_; - GObject* _tmp21_; - GtkCheckButton* _tmp22_; - GObject* _tmp23_; - GtkButton* _tmp24_; - GObject* _tmp25_; - GtkButton* _tmp26_; - GtkLabel* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - GtkCheckButton* _tmp30_; - GtkComboBoxText* _tmp31_; - GtkEntry* _tmp32_; - gchar* _tmp33_; - gchar* _tmp34_; - GtkRadioButton* _tmp35_; - GtkRadioButton* _tmp36_; - GtkEntry* _tmp37_; - GtkComboBoxText* _tmp38_; - GtkEntry* _tmp39_; - GtkButton* _tmp40_; - GtkButton* _tmp41_; -#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (username != NULL, NULL); -#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL); -#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3PublishingOptionsPane*) g_object_new (object_type, NULL); -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = (albums != NULL) ? _vala_array_dup3 (albums, albums_length1) : ((gpointer) albums); -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0__length1 = albums_length1; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->albums = _tmp0_; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->albums_length1 = _tmp0__length1; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 1528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->host = host; -#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _g_object_ref0 (builder); -#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->builder); -#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->builder = _tmp1_; -#line 1531 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_assert (NULL != builder, "null != builder"); -#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = gtk_builder_get_objects (builder); -#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = _tmp2_; -#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_assert (g_slist_length (_tmp3_) > ((guint) 0), "builder.get_objects().length() > 0"); -#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_slist_free0 (_tmp3_); -#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = gtk_builder_get_object (builder, "pane_widget"); -#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gtk_grid_get_type ()) ? ((GtkGrid*) _tmp4_) : NULL); -#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->pane_widget = _tmp5_; -#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = gtk_builder_get_object (builder, "title_label"); -#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp6_) : NULL); -#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->title_label); -#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->title_label = _tmp7_; -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = gtk_builder_get_object (builder, "publish_to_existing_radio"); -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, gtk_radio_button_get_type ()) ? ((GtkRadioButton*) _tmp8_) : NULL); -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->use_existing_radio); -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->use_existing_radio = _tmp9_; -#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = gtk_builder_get_object (builder, "existing_albums_combo"); -#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp10_) : NULL); -#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->existing_albums_combo); -#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->existing_albums_combo = _tmp11_; -#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = gtk_builder_get_object (builder, "scaling_constraint_combo"); -#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp12_) : NULL); -#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->scaling_combo); -#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->scaling_combo = _tmp13_; -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = gtk_builder_get_object (builder, "major_axis_pixels"); -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp14_) : NULL); -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->pixels); -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->pixels = _tmp15_; -#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = gtk_builder_get_object (builder, "publish_new_radio"); -#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, gtk_radio_button_get_type ()) ? ((GtkRadioButton*) _tmp16_) : NULL); -#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->create_new_radio); -#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->create_new_radio = _tmp17_; -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = gtk_builder_get_object (builder, "new_album_name"); -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp18_) : NULL); -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->new_album_entry); -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->new_album_entry = _tmp19_; -#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = self->priv->builder; -#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = gtk_builder_get_object (_tmp20_, "strip_metadata_check"); -#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp21_) : NULL); -#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->strip_metadata_check = _tmp22_; -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = gtk_builder_get_object (builder, "publish_button"); -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, gtk_button_get_type ()) ? ((GtkButton*) _tmp23_) : NULL); -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->publish_button); -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->publish_button = _tmp24_; -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = gtk_builder_get_object (builder, "logout_button"); -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp25_, gtk_button_get_type ()) ? ((GtkButton*) _tmp25_) : NULL); -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->logout_button); -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->logout_button = _tmp26_; -#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = self->priv->title_label; -#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = g_strdup_printf (_ ("Publishing to %s as %s."), url, username); -#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = _tmp28_; -#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_label_set_label (_tmp27_, _tmp29_); -#line 1549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp29_); -#line 1551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp30_ = self->priv->strip_metadata_check; -#line 1551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_toggle_button_get_type (), GtkToggleButton), strip_metadata); -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp31_ = self->priv->scaling_combo; -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_combo_box_get_type (), GtkComboBox), scaling_id); -#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32_ = self->priv->pixels; -#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp33_ = g_strdup_printf ("%i", scaling_pixels); -#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp34_ = _tmp33_; -#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_entry_set_text (_tmp32_, _tmp34_); -#line 1553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp34_); -#line 1556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp35_ = self->priv->use_existing_radio; -#line 1556 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked, self, 0); -#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp36_ = self->priv->create_new_radio; -#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked, self, 0); -#line 1558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp37_ = self->priv->new_album_entry; -#line 1558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_gallery3_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed, self, 0); -#line 1559 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp38_ = self->priv->scaling_combo; -#line 1559 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed_gtk_combo_box_changed, self, 0); -#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp39_ = self->priv->pixels; -#line 1560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_gallery3_publishing_options_pane_on_pixels_changed_gtk_editable_changed, self, 0); -#line 1561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp40_ = self->priv->logout_button; -#line 1561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (_tmp40_, "clicked", (GCallback) _publishing_gallery3_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0); -#line 1562 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp41_ = self->priv->publish_button; -#line 1562 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (_tmp41_, "clicked", (GCallback) _publishing_gallery3_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0); -#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 9704 "GalleryConnector.c" -} - - -PublishingGallery3PublishingOptionsPane* -publishing_gallery3_publishing_options_pane_new (SpitPublishingPluginHost* host, - const gchar* url, - const gchar* username, - PublishingGallery3Album** albums, - int albums_length1, - GtkBuilder* builder, - gboolean strip_metadata, - gint scaling_id, - gint scaling_pixels) -{ -#line 1523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_publishing_options_pane_construct (PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, host, url, username, albums, albums_length1, builder, strip_metadata, scaling_id, scaling_pixels); -#line 9721 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_on_publish_clicked (PublishingGallery3PublishingOptionsPane* self) -{ - gchar* album_name = NULL; - gint _tmp0_ = 0; - GtkComboBoxText* _tmp1_; - gint photo_major_axis_size = 0; - PublishingGallery3PublishingParameters* param = NULL; - GtkRadioButton* _tmp4_; - PublishingGallery3PublishingParameters* _tmp29_; - gint _tmp30_; - PublishingGallery3PublishingParameters* _tmp31_; - GtkCheckButton* _tmp32_; - PublishingGallery3PublishingParameters* _tmp33_; -#line 1565 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->scaling_combo; -#line 1568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox)) == 1) { -#line 9745 "GalleryConnector.c" - GtkEntry* _tmp2_; - const gchar* _tmp3_; -#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->pixels; -#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = gtk_entry_get_text (_tmp2_); -#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = atoi (_tmp3_); -#line 9754 "GalleryConnector.c" - } else { -#line 1569 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = -1; -#line 9758 "GalleryConnector.c" - } -#line 1567 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - photo_major_axis_size = _tmp0_; -#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = self->priv->create_new_radio; -#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_toggle_button_get_type (), GtkToggleButton))) { -#line 9766 "GalleryConnector.c" - GtkEntry* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; - SpitPublishingPluginHost* _tmp8_; - const gchar* _tmp9_; - const gchar* _tmp10_; - PublishingGallery3PublishingParameters* _tmp11_; - const gchar* _tmp12_; -#line 1573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = self->priv->new_album_entry; -#line 1573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = gtk_entry_get_text (_tmp5_); -#line 1573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = g_strdup (_tmp6_); -#line 1573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (album_name); -#line 1573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_name = _tmp7_; -#line 1574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = self->priv->host; -#line 1574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = album_name; -#line 1574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LAST_ALBUM_CONFIG_KEY, _tmp9_); -#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = album_name; -#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = publishing_gallery3_publishing_parameters_new_to_new_album (_tmp10_); -#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (param); -#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - param = _tmp11_; -#line 1577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = album_name; -#line 1577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:1577: Trying to publish to \"%s\"", _tmp12_); -#line 9803 "GalleryConnector.c" - } else { - PublishingGallery3Album** _tmp13_; - gint _tmp13__length1; - GtkComboBoxText* _tmp14_; - PublishingGallery3Album* _tmp15_; - const gchar* _tmp16_; - const gchar* _tmp17_; - gchar* _tmp18_; - SpitPublishingPluginHost* _tmp19_; - const gchar* _tmp20_; - gchar* album_path = NULL; - PublishingGallery3Album** _tmp21_; - gint _tmp21__length1; - GtkComboBoxText* _tmp22_; - PublishingGallery3Album* _tmp23_; - const gchar* _tmp24_; - const gchar* _tmp25_; - gchar* _tmp26_; - const gchar* _tmp27_; - PublishingGallery3PublishingParameters* _tmp28_; -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = self->priv->albums; -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13__length1 = self->priv->albums_length1; -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = self->priv->existing_albums_combo; -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _tmp13_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = publishing_gallery3_album_get_title (_tmp15_); -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = _tmp16_; -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = g_strdup (_tmp17_); -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (album_name); -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_name = _tmp18_; -#line 1581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = self->priv->host; -#line 1581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = album_name; -#line 1581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LAST_ALBUM_CONFIG_KEY, _tmp20_); -#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = self->priv->albums; -#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21__length1 = self->priv->albums_length1; -#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = self->priv->existing_albums_combo; -#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = _tmp21_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = publishing_gallery3_album_get_path (_tmp23_); -#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = _tmp24_; -#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = g_strdup (_tmp25_); -#line 1582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_path = _tmp26_; -#line 1584 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = album_path; -#line 1584 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = publishing_gallery3_publishing_parameters_new_to_existing_album (_tmp27_); -#line 1584 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (param); -#line 1584 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - param = _tmp28_; -#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (album_path); -#line 9874 "GalleryConnector.c" - } -#line 1588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = param; -#line 1588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp30_ = photo_major_axis_size; -#line 1588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_set_photo_major_axis_size (_tmp29_, _tmp30_); -#line 1589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp31_ = param; -#line 1589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32_ = self->priv->strip_metadata_check; -#line 1589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_set_strip_metadata (_tmp31_, gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 1591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp33_ = param; -#line 1591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_emit (self, publishing_gallery3_publishing_options_pane_signals[PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, _tmp33_); -#line 1565 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (param); -#line 1565 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (album_name); -#line 9896 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_on_use_existing_radio_clicked (PublishingGallery3PublishingOptionsPane* self) -{ - GtkComboBoxText* _tmp0_; - GtkEntry* _tmp1_; - GtkComboBoxText* _tmp2_; -#line 1594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->existing_albums_combo; -#line 1595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->new_album_entry; -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->existing_albums_combo; -#line 1597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 1598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (self); -#line 9922 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_on_create_new_radio_clicked (PublishingGallery3PublishingOptionsPane* self) -{ - GtkEntry* _tmp0_; - GtkComboBoxText* _tmp1_; - GtkEntry* _tmp2_; -#line 1601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->new_album_entry; -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->existing_albums_combo; -#line 1603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1604 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->new_album_entry; -#line 1604 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 1605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (self); -#line 9948 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_on_logout_clicked (PublishingGallery3PublishingOptionsPane* self) -{ -#line 1608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_emit (self, publishing_gallery3_publishing_options_pane_signals[PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 9959 "GalleryConnector.c" -} - - -static gchar* -string_strip (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strstrip (_tmp1_); -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 9984 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (PublishingGallery3PublishingOptionsPane* self) -{ - gchar* album_name = NULL; - GtkEntry* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gboolean _tmp3_ = FALSE; - const gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gboolean _tmp7_; - GtkButton* _tmp9_; -#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1613 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->new_album_entry; -#line 1613 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 1613 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 1613 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - album_name = _tmp2_; -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = album_name; -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = string_strip (_tmp4_); -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = g_strcmp0 (_tmp6_, "") == 0; -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp6_); -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp7_) { -#line 10023 "GalleryConnector.c" - GtkRadioButton* _tmp8_; -#line 1615 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = self->priv->create_new_radio; -#line 1615 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 10029 "GalleryConnector.c" - } else { -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = FALSE; -#line 10033 "GalleryConnector.c" - } -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = self->priv->publish_button; -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), !_tmp3_); -#line 1612 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (album_name); -#line 10041 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_on_new_album_entry_changed (PublishingGallery3PublishingOptionsPane* self) -{ -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1619 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (self); -#line 10052 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_update_pixel_entry_sensitivity (PublishingGallery3PublishingOptionsPane* self) -{ - GtkEntry* _tmp0_; - GtkComboBoxText* _tmp1_; -#line 1622 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->pixels; -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->scaling_combo; -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox)) == 1); -#line 10069 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_on_scaling_constraint_changed (PublishingGallery3PublishingOptionsPane* self) -{ -#line 1626 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_update_pixel_entry_sensitivity (self); -#line 10080 "GalleryConnector.c" -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 10104 "GalleryConnector.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 10113 "GalleryConnector.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 10134 "GalleryConnector.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 10138 "GalleryConnector.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 10144 "GalleryConnector.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 10154 "GalleryConnector.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 10158 "GalleryConnector.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 10166 "GalleryConnector.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 10173 "GalleryConnector.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 10177 "GalleryConnector.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 10183 "GalleryConnector.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 10195 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_on_pixels_changed (PublishingGallery3PublishingOptionsPane* self) -{ - gchar* orig_text = NULL; - GtkEntry* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gchar last_char = '\0'; - const gchar* _tmp3_; - const gchar* _tmp4_; - gint _tmp5_; - gint _tmp6_; - const gchar* _tmp7_; - gint _tmp8_; - gint _tmp9_; -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->pixels; -#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 1631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - orig_text = _tmp2_; -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = orig_text; -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = orig_text; -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = strlen (_tmp4_); -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = _tmp5_; -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - last_char = string_get (_tmp3_, (glong) (_tmp6_ - 1)); -#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = orig_text; -#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = strlen (_tmp7_); -#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = _tmp8_; -#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp9_ > 0) { -#line 10242 "GalleryConnector.c" - gchar _tmp10_; -#line 1635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = last_char; -#line 1635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!g_ascii_isdigit (_tmp10_)) { -#line 10248 "GalleryConnector.c" - GtkEntry* _tmp11_; - const gchar* _tmp12_; - const gchar* _tmp13_; - gint _tmp14_; - gint _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = self->priv->pixels; -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = orig_text; -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = orig_text; -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = strlen (_tmp13_); -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _tmp14_; -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = string_substring (_tmp12_, (glong) 0, (glong) (_tmp15_ - 1)); -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = _tmp16_; -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_entry_set_text (_tmp11_, _tmp17_); -#line 1636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp17_); -#line 10274 "GalleryConnector.c" - } - } -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (orig_text); -#line 10279 "GalleryConnector.c" -} - - -void -publishing_gallery3_publishing_options_pane_installed (PublishingGallery3PublishingOptionsPane* self) -{ - gint default_album_id = 0; - gchar* last_album = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; - PublishingGallery3Album** _tmp27_; - gint _tmp27__length1; -#line 1641 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - default_album_id = -1; -#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LAST_ALBUM_CONFIG_KEY, ""); -#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - last_album = _tmp1_; -#line 10302 "GalleryConnector.c" - { - gint i = 0; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - i = 0; -#line 10307 "GalleryConnector.c" - { - gboolean _tmp2_ = FALSE; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = TRUE; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - while (TRUE) { -#line 10314 "GalleryConnector.c" - gint _tmp4_; - PublishingGallery3Album** _tmp5_; - gint _tmp5__length1; - GtkComboBoxText* _tmp6_; - PublishingGallery3Album** _tmp7_; - gint _tmp7__length1; - gint _tmp8_; - PublishingGallery3Album* _tmp9_; - const gchar* _tmp10_; - const gchar* _tmp11_; - gboolean _tmp12_ = FALSE; - PublishingGallery3Album** _tmp13_; - gint _tmp13__length1; - gint _tmp14_; - PublishingGallery3Album* _tmp15_; - const gchar* _tmp16_; - const gchar* _tmp17_; - const gchar* _tmp18_; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!_tmp2_) { -#line 10335 "GalleryConnector.c" - gint _tmp3_; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = i; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - i = _tmp3_ + 1; -#line 10341 "GalleryConnector.c" - } -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = FALSE; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = i; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = self->priv->albums; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5__length1 = self->priv->albums_length1; -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!(_tmp4_ <= (_tmp5__length1 - 1))) { -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 10355 "GalleryConnector.c" - } -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = self->priv->existing_albums_combo; -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = self->priv->albums; -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7__length1 = self->priv->albums_length1; -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = i; -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = _tmp7_[_tmp8_]; -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = publishing_gallery3_album_get_title (_tmp9_); -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = _tmp10_; -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_combo_box_text_append_text (_tmp6_, _tmp11_); -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = self->priv->albums; -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13__length1 = self->priv->albums_length1; -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = i; -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = _tmp13_[_tmp14_]; -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = publishing_gallery3_album_get_title (_tmp15_); -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = _tmp16_; -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = last_album; -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_strcmp0 (_tmp17_, _tmp18_) == 0) { -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = TRUE; -#line 10391 "GalleryConnector.c" - } else { - gboolean _tmp19_ = FALSE; - PublishingGallery3Album** _tmp20_; - gint _tmp20__length1; - gint _tmp21_; - PublishingGallery3Album* _tmp22_; - const gchar* _tmp23_; - const gchar* _tmp24_; -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = self->priv->albums; -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20__length1 = self->priv->albums_length1; -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = i; -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = _tmp20_[_tmp21_]; -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = publishing_gallery3_album_get_title (_tmp22_); -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = _tmp23_; -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_strcmp0 (PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_DEFAULT_ALBUM_NAME, _tmp24_) == 0) { -#line 10414 "GalleryConnector.c" - gint _tmp25_; -#line 1649 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = default_album_id; -#line 1649 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = -1 == _tmp25_; -#line 10420 "GalleryConnector.c" - } else { -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = FALSE; -#line 10424 "GalleryConnector.c" - } -#line 1648 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = _tmp19_; -#line 10428 "GalleryConnector.c" - } -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp12_) { -#line 10432 "GalleryConnector.c" - gint _tmp26_; -#line 1650 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = i; -#line 1650 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - default_album_id = _tmp26_; -#line 10438 "GalleryConnector.c" - } - } - } - } -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = self->priv->albums; -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27__length1 = self->priv->albums_length1; -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp27__length1 == 0) { -#line 10449 "GalleryConnector.c" - GtkComboBoxText* _tmp28_; - GtkRadioButton* _tmp29_; - GtkRadioButton* _tmp30_; - GtkEntry* _tmp31_; - GtkEntry* _tmp32_; -#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = self->priv->existing_albums_combo; -#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = self->priv->use_existing_radio; -#line 1655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1656 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp30_ = self->priv->create_new_radio; -#line 1656 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 1657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp31_ = self->priv->new_album_entry; -#line 1657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_widget_get_type (), GtkWidget)); -#line 1658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32_ = self->priv->new_album_entry; -#line 1658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_entry_set_text (_tmp32_, PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_DEFAULT_ALBUM_NAME); -#line 10475 "GalleryConnector.c" - } else { - gint _tmp33_; -#line 1660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp33_ = default_album_id; -#line 1660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp33_ >= 0) { -#line 10482 "GalleryConnector.c" - GtkRadioButton* _tmp34_; - GtkComboBoxText* _tmp35_; - gint _tmp36_; - GtkEntry* _tmp37_; -#line 1661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp34_ = self->priv->use_existing_radio; -#line 1661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 1662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp35_ = self->priv->existing_albums_combo; -#line 1662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp36_ = default_album_id; -#line 1662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_combo_box_get_type (), GtkComboBox), _tmp36_); -#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp37_ = self->priv->new_album_entry; -#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 10501 "GalleryConnector.c" - } else { - GtkRadioButton* _tmp38_; - GtkComboBoxText* _tmp39_; - GtkEntry* _tmp40_; - GtkEntry* _tmp41_; -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp38_ = self->priv->create_new_radio; -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 1666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp39_ = self->priv->existing_albums_combo; -#line 1666 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 1667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp40_ = self->priv->new_album_entry; -#line 1667 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_entry_set_text (_tmp40_, PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_DEFAULT_ALBUM_NAME); -#line 1668 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp41_ = self->priv->new_album_entry; -#line 1668 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget)); -#line 10523 "GalleryConnector.c" - } - } -#line 1671 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_update_publish_button_sensitivity (self); -#line 1672 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_update_pixel_entry_sensitivity (self); -#line 1641 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (last_album); -#line 10532 "GalleryConnector.c" -} - - -static GtkWidget* -publishing_gallery3_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingGallery3PublishingOptionsPane * self; - GtkWidget* result = NULL; - GtkGrid* _tmp0_; - GtkWidget* _tmp1_; -#line 1675 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane); -#line 1676 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->pane_widget; -#line 1676 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 1676 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp1_; -#line 1676 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 10553 "GalleryConnector.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_gallery3_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingGallery3PublishingOptionsPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 1679 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane); -#line 1680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 1680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 10568 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingGallery3PublishingOptionsPane * self; -#line 1683 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane); -#line 1684 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_installed (self); -#line 10580 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingGallery3PublishingOptionsPane * self; -#line 1687 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane); -#line 10590 "GalleryConnector.c" -} - - -static void -g_cclosure_user_marshal_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS) (gpointer data1, gpointer arg_1, gpointer data2); - register GMarshalFunc_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (n_param_values == 2); -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - data1 = closure->data; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - data2 = param_values->data[0].v_pointer; -#line 10616 "GalleryConnector.c" - } else { -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - data1 = param_values->data[0].v_pointer; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - data2 = closure->data; -#line 10622 "GalleryConnector.c" - } -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - callback = (GMarshalFunc_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS) (marshal_data ? marshal_data : cc->callback); -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - callback (data1, publishing_gallery3_value_get_publishing_parameters (param_values + 1), data2); -#line 10628 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_class_init (PublishingGallery3PublishingOptionsPaneClass * klass) -{ -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3PublishingOptionsPanePrivate)); -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_gallery3_publishing_options_pane_finalize; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_signals[PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = g_signal_new ("publish", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS, G_TYPE_NONE, 1, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS); -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_signals[PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = g_signal_new ("logout", PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 10645 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_gallery3_publishing_options_pane_real_get_widget; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_gallery3_publishing_options_pane_real_get_preferred_geometry; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_gallery3_publishing_options_pane_real_on_pane_installed; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_gallery3_publishing_options_pane_real_on_pane_uninstalled; -#line 10662 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_instance_init (PublishingGallery3PublishingOptionsPane * self) -{ -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); -#line 1503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->builder = NULL; -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->pane_widget = NULL; -#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->title_label = NULL; -#line 1507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->use_existing_radio = NULL; -#line 1508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->existing_albums_combo = NULL; -#line 1509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->create_new_radio = NULL; -#line 1510 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->new_album_entry = NULL; -#line 1511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->scaling_combo = NULL; -#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->pixels = NULL; -#line 1513 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->strip_metadata_check = NULL; -#line 1514 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->publish_button = NULL; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->logout_button = NULL; -#line 10695 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_options_pane_finalize (GObject * obj) -{ - PublishingGallery3PublishingOptionsPane * self; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_PUBLISHING_OPTIONS_PANE, PublishingGallery3PublishingOptionsPane); -#line 1503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->builder); -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->title_label); -#line 1507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->use_existing_radio); -#line 1508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->existing_albums_combo); -#line 1509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->create_new_radio); -#line 1510 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->new_album_entry); -#line 1511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->scaling_combo); -#line 1512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->pixels); -#line 1513 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 1514 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->publish_button); -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->logout_button); -#line 1517 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_gallery3_album_unref), NULL); -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (publishing_gallery3_publishing_options_pane_parent_class)->finalize (obj); -#line 10733 "GalleryConnector.c" -} - - -GType -publishing_gallery3_publishing_options_pane_get_type (void) -{ - static volatile gsize publishing_gallery3_publishing_options_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_publishing_options_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3PublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3PublishingOptionsPane), 0, (GInstanceInitFunc) publishing_gallery3_publishing_options_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_gallery3_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_gallery3_publishing_options_pane_type_id; - publishing_gallery3_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingGallery3PublishingOptionsPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_gallery3_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_gallery3_publishing_options_pane_type_id__volatile, publishing_gallery3_publishing_options_pane_type_id); - } - return publishing_gallery3_publishing_options_pane_type_id__volatile; -} - - -static PublishingGallery3PublishingParameters* -publishing_gallery3_publishing_parameters_construct (GType object_type) -{ - PublishingGallery3PublishingParameters* self = NULL; -#line 1710 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3PublishingParameters*) g_type_create_instance (object_type); -#line 1710 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 10761 "GalleryConnector.c" -} - - -static PublishingGallery3PublishingParameters* -publishing_gallery3_publishing_parameters_new (void) -{ -#line 1710 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_publishing_parameters_construct (PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS); -#line 10770 "GalleryConnector.c" -} - - -static gchar* -string_delimit (const gchar* self, - const gchar* delimiters, - gchar new_delimiter) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1256 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1256 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (delimiters != NULL, NULL); -#line 1257 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1257 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1258 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1258 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strdelimit (_tmp1_, delimiters, new_delimiter); -#line 1259 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1259 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 10799 "GalleryConnector.c" -} - - -PublishingGallery3PublishingParameters* -publishing_gallery3_publishing_parameters_construct_to_new_album (GType object_type, - const gchar* album_title) -{ - PublishingGallery3PublishingParameters* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (album_title != NULL, NULL); -#line 1713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3PublishingParameters*) g_type_create_instance (object_type); -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = string_delimit (album_title, " ", '-'); -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp0_; -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_set_album_name (self, _tmp1_); -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp1_); -#line 1716 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_set_album_title (self, album_title); -#line 1713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 10826 "GalleryConnector.c" -} - - -PublishingGallery3PublishingParameters* -publishing_gallery3_publishing_parameters_new_to_new_album (const gchar* album_title) -{ -#line 1713 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_publishing_parameters_construct_to_new_album (PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, album_title); -#line 10835 "GalleryConnector.c" -} - - -PublishingGallery3PublishingParameters* -publishing_gallery3_publishing_parameters_construct_to_existing_album (GType object_type, - const gchar* album_path) -{ - PublishingGallery3PublishingParameters* self = NULL; -#line 1719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (album_path != NULL, NULL); -#line 1719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3PublishingParameters*) g_type_create_instance (object_type); -#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_set_album_path (self, album_path); -#line 1719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 10852 "GalleryConnector.c" -} - - -PublishingGallery3PublishingParameters* -publishing_gallery3_publishing_parameters_new_to_existing_album (const gchar* album_path) -{ -#line 1719 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_publishing_parameters_construct_to_existing_album (PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, album_path); -#line 10861 "GalleryConnector.c" -} - - -gboolean -publishing_gallery3_publishing_parameters_is_to_new_album (PublishingGallery3PublishingParameters* self) -{ - gboolean result = FALSE; - const gchar* _tmp0_; -#line 1723 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), FALSE); -#line 1724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_album_name; -#line 1724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = g_strcmp0 (_tmp0_, "") != 0; -#line 1724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 10878 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_publishing_parameters_get_album_title (PublishingGallery3PublishingParameters* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1698 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 1699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_assert (publishing_gallery3_publishing_parameters_is_to_new_album (self), "is_to_new_album()"); -#line 1700 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_album_title; -#line 1700 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1700 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 10897 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_parameters_set_album_title (PublishingGallery3PublishingParameters* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 1702 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self)); -#line 1702 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 1702 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_album_title); -#line 1702 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_title = _tmp0_; -#line 10914 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_publishing_parameters_get_album_name (PublishingGallery3PublishingParameters* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_album_name; -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 10931 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_parameters_set_album_name (PublishingGallery3PublishingParameters* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self)); -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_album_name); -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_name = _tmp0_; -#line 10948 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_publishing_parameters_get_album_path (PublishingGallery3PublishingParameters* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_album_path; -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 10965 "GalleryConnector.c" -} - - -void -publishing_gallery3_publishing_parameters_set_album_path (PublishingGallery3PublishingParameters* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self)); -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_album_path); -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_path = _tmp0_; -#line 10982 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_publishing_parameters_get_entity_title (PublishingGallery3PublishingParameters* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_entity_title; -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 10999 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_parameters_set_entity_title (PublishingGallery3PublishingParameters* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self)); -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_entity_title); -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_entity_title = _tmp0_; -#line 11016 "GalleryConnector.c" -} - - -gint -publishing_gallery3_publishing_parameters_get_photo_major_axis_size (PublishingGallery3PublishingParameters* self) -{ - gint result; - gint _tmp0_; -#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), 0); -#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_photo_major_axis_size; -#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 11033 "GalleryConnector.c" -} - - -void -publishing_gallery3_publishing_parameters_set_photo_major_axis_size (PublishingGallery3PublishingParameters* self, - gint value) -{ -#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self)); -#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_photo_major_axis_size = value; -#line 11045 "GalleryConnector.c" -} - - -gboolean -publishing_gallery3_publishing_parameters_get_strip_metadata (PublishingGallery3PublishingParameters* self) -{ - gboolean result; - gboolean _tmp0_; -#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self), FALSE); -#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_strip_metadata; -#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 11062 "GalleryConnector.c" -} - - -void -publishing_gallery3_publishing_parameters_set_strip_metadata (PublishingGallery3PublishingParameters* self, - gboolean value) -{ -#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (self)); -#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_strip_metadata = value; -#line 11074 "GalleryConnector.c" -} - - -static void -publishing_gallery3_value_publishing_parameters_init (GValue* value) -{ -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = NULL; -#line 11083 "GalleryConnector.c" -} - - -static void -publishing_gallery3_value_publishing_parameters_free_value (GValue* value) -{ -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (value->data[0].v_pointer) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_unref (value->data[0].v_pointer); -#line 11094 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_value_publishing_parameters_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (src_value->data[0].v_pointer) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - dest_value->data[0].v_pointer = publishing_gallery3_publishing_parameters_ref (src_value->data[0].v_pointer); -#line 11107 "GalleryConnector.c" - } else { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - dest_value->data[0].v_pointer = NULL; -#line 11111 "GalleryConnector.c" - } -} - - -static gpointer -publishing_gallery3_value_publishing_parameters_peek_pointer (const GValue* value) -{ -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return value->data[0].v_pointer; -#line 11121 "GalleryConnector.c" -} - - -static gchar* -publishing_gallery3_value_publishing_parameters_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (collect_values[0].v_pointer) { -#line 11133 "GalleryConnector.c" - PublishingGallery3PublishingParameters * object; - object = collect_values[0].v_pointer; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (object->parent_instance.g_class == NULL) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 11140 "GalleryConnector.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 11144 "GalleryConnector.c" - } -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = publishing_gallery3_publishing_parameters_ref (object); -#line 11148 "GalleryConnector.c" - } else { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = NULL; -#line 11152 "GalleryConnector.c" - } -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 11156 "GalleryConnector.c" -} - - -static gchar* -publishing_gallery3_value_publishing_parameters_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingGallery3PublishingParameters ** object_p; - object_p = collect_values[0].v_pointer; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!object_p) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 11172 "GalleryConnector.c" - } -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (!value->data[0].v_pointer) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *object_p = NULL; -#line 11178 "GalleryConnector.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *object_p = value->data[0].v_pointer; -#line 11182 "GalleryConnector.c" - } else { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - *object_p = publishing_gallery3_publishing_parameters_ref (value->data[0].v_pointer); -#line 11186 "GalleryConnector.c" - } -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 11190 "GalleryConnector.c" -} - - -GParamSpec* -publishing_gallery3_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingGallery3ParamSpecPublishingParameters* spec; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return G_PARAM_SPEC (spec); -#line 11210 "GalleryConnector.c" -} - - -gpointer -publishing_gallery3_value_get_publishing_parameters (const GValue* value) -{ -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return value->data[0].v_pointer; -#line 11221 "GalleryConnector.c" -} - - -void -publishing_gallery3_value_set_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingGallery3PublishingParameters * old; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS)); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - old = value->data[0].v_pointer; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (v_object) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS)); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = v_object; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_ref (value->data[0].v_pointer); -#line 11244 "GalleryConnector.c" - } else { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = NULL; -#line 11248 "GalleryConnector.c" - } -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (old) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_unref (old); -#line 11254 "GalleryConnector.c" - } -} - - -void -publishing_gallery3_value_take_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingGallery3PublishingParameters * old; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS)); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - old = value->data[0].v_pointer; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (v_object) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS)); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = v_object; -#line 11276 "GalleryConnector.c" - } else { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - value->data[0].v_pointer = NULL; -#line 11280 "GalleryConnector.c" - } -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (old) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_unref (old); -#line 11286 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_publishing_parameters_class_init (PublishingGallery3PublishingParametersClass * klass) -{ -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_publishing_parameters_parent_class = g_type_class_peek_parent (klass); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingGallery3PublishingParametersClass *) klass)->finalize = publishing_gallery3_publishing_parameters_finalize; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3PublishingParametersPrivate)); -#line 11300 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_parameters_instance_init (PublishingGallery3PublishingParameters * self) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS_GET_PRIVATE (self); -#line 1694 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (""); -#line 1694 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_title = _tmp0_; -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = g_strdup (""); -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_name = _tmp1_; -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strdup (""); -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_album_path = _tmp2_; -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = g_strdup (""); -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_entity_title = _tmp3_; -#line 1707 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_photo_major_axis_size = -1; -#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_strip_metadata = FALSE; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->ref_count = 1; -#line 11335 "GalleryConnector.c" -} - - -static void -publishing_gallery3_publishing_parameters_finalize (PublishingGallery3PublishingParameters * obj) -{ - PublishingGallery3PublishingParameters * self; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_PUBLISHING_PARAMETERS, PublishingGallery3PublishingParameters); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_destroy (self); -#line 1694 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_album_title); -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_album_name); -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_album_path); -#line 1706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_entity_title); -#line 11355 "GalleryConnector.c" -} - - -GType -publishing_gallery3_publishing_parameters_get_type (void) -{ - static volatile gsize publishing_gallery3_publishing_parameters_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_publishing_parameters_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_gallery3_value_publishing_parameters_init, publishing_gallery3_value_publishing_parameters_free_value, publishing_gallery3_value_publishing_parameters_copy_value, publishing_gallery3_value_publishing_parameters_peek_pointer, "p", publishing_gallery3_value_publishing_parameters_collect_value, "p", publishing_gallery3_value_publishing_parameters_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3PublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3PublishingParameters), 0, (GInstanceInitFunc) publishing_gallery3_publishing_parameters_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_gallery3_publishing_parameters_type_id; - publishing_gallery3_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingGallery3PublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_gallery3_publishing_parameters_type_id__volatile, publishing_gallery3_publishing_parameters_type_id); - } - return publishing_gallery3_publishing_parameters_type_id__volatile; -} - - -gpointer -publishing_gallery3_publishing_parameters_ref (gpointer instance) -{ - PublishingGallery3PublishingParameters * self; - self = instance; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_atomic_int_inc (&self->ref_count); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return instance; -#line 11384 "GalleryConnector.c" -} - - -void -publishing_gallery3_publishing_parameters_unref (gpointer instance) -{ - PublishingGallery3PublishingParameters * self; - self = instance; -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_GALLERY3_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 11399 "GalleryConnector.c" - } -} - - -gchar* -publishing_gallery3_credentials_pane_mode_to_string (PublishingGallery3CredentialsPaneMode self) -{ - gchar* result = NULL; -#line 1735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - switch (self) { -#line 1735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO: -#line 11412 "GalleryConnector.c" - { - gchar* _tmp0_; -#line 1737 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup ("INTRO"); -#line 1737 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1737 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 11421 "GalleryConnector.c" - } -#line 1735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY: -#line 11425 "GalleryConnector.c" - { - gchar* _tmp1_; -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = g_strdup ("FAILED_RETRY"); -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp1_; -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 11434 "GalleryConnector.c" - } -#line 1735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL: -#line 11438 "GalleryConnector.c" - { - gchar* _tmp2_; -#line 1743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strdup ("NOT_GALLERY_URL"); -#line 1743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp2_; -#line 1743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 11447 "GalleryConnector.c" - } - default: - { -#line 1746 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:1746: unrecognized CredentialsPane.Mode enumerat" \ -"ion value"); -#line 11453 "GalleryConnector.c" - } - } -} - - -GType -publishing_gallery3_credentials_pane_mode_get_type (void) -{ - static volatile gsize publishing_gallery3_credentials_pane_mode_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_credentials_pane_mode_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO, "PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO", "intro"}, {PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY, "PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY", "failed-retry"}, {PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL, "PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL", "not-gallery-url"}, {0, NULL, NULL}}; - GType publishing_gallery3_credentials_pane_mode_type_id; - publishing_gallery3_credentials_pane_mode_type_id = g_enum_register_static ("PublishingGallery3CredentialsPaneMode", values); - g_once_init_leave (&publishing_gallery3_credentials_pane_mode_type_id__volatile, publishing_gallery3_credentials_pane_mode_type_id); - } - return publishing_gallery3_credentials_pane_mode_type_id__volatile; -} - - -PublishingGallery3CredentialsPane* -publishing_gallery3_credentials_pane_construct (GType object_type, - SpitPublishingPluginHost* host, - PublishingGallery3CredentialsPaneMode mode, - const gchar* url, - const gchar* username, - const gchar* key) -{ - PublishingGallery3CredentialsPane * self = NULL; - GtkBuilder* builder = NULL; - GtkBuilder* _tmp0_; - GtkBuilder* _tmp8_; - PublishingGallery3CredentialsGrid* _tmp9_; - PublishingGallery3CredentialsGrid* _tmp10_; - GtkGrid* _tmp11_; - GtkGrid* _tmp12_; - GtkWidget* _tmp13_; - GError * _inner_error_ = NULL; -#line 1758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 1758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3CredentialsPane*) g_object_new (object_type, NULL); -#line 1763 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = gtk_builder_new (); -#line 1763 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - builder = _tmp0_; -#line 11499 "GalleryConnector.c" - { - GtkBuilder* _tmp1_; -#line 1766 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = builder; -#line 1766 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_builder_add_from_resource (_tmp1_, PLUGIN_RESOURCE_PATH "/gallery3_authentication_pane.ui", &_inner_error_); -#line 1766 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 11508 "GalleryConnector.c" - goto __catch15_g_error; - } - } - goto __finally15; - __catch15_g_error: - { - GError* e = NULL; - GError* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - GError* _tmp6_; - GError* _tmp7_; -#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - e = _inner_error_; -#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _inner_error_ = NULL; -#line 1770 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = e; -#line 1770 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = _tmp2_->message; -#line 1770 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_warning ("GalleryConnector.vala:1770: Could not parse UI file! Error: %s.", _tmp3_); -#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = g_strdup_printf (_ ("A file required for publishing is unavailable. Publishing to %s can’t " \ -"continue."), PUBLISHING_GALLERY3_SERVICE_NAME); -#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _tmp4_; -#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp5_); -#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _tmp6_; -#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_post_error (host, _tmp7_); -#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (_tmp7_); -#line 1771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp5_); -#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_error_free0 (e); -#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (builder); -#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 11552 "GalleryConnector.c" - } - __finally15: -#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (builder); -#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_clear_error (&_inner_error_); -#line 1765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return NULL; -#line 11565 "GalleryConnector.c" - } -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = builder; -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = publishing_gallery3_credentials_grid_new (host, mode, url, username, key, _tmp8_); -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->frame); -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->frame = _tmp9_; -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = self->priv->frame; -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = publishing_gallery3_credentials_grid_get_pane_widget (_tmp10_); -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = _tmp11_; -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, gtk_widget_get_type ()) ? ((GtkWidget*) _tmp12_) : NULL); -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->grid_widget); -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->grid_widget = _tmp13_; -#line 1758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (builder); -#line 1758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 11591 "GalleryConnector.c" -} - - -PublishingGallery3CredentialsPane* -publishing_gallery3_credentials_pane_new (SpitPublishingPluginHost* host, - PublishingGallery3CredentialsPaneMode mode, - const gchar* url, - const gchar* username, - const gchar* key) -{ -#line 1758 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_credentials_pane_construct (PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, host, mode, url, username, key); -#line 11604 "GalleryConnector.c" -} - - -void -publishing_gallery3_credentials_pane_notify_go_back (PublishingGallery3CredentialsPane* self) -{ -#line 1785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_PANE (self)); -#line 1786 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_emit (self, publishing_gallery3_credentials_pane_signals[PUBLISHING_GALLERY3_CREDENTIALS_PANE_GO_BACK_SIGNAL], 0); -#line 11615 "GalleryConnector.c" -} - - -void -publishing_gallery3_credentials_pane_notify_login (PublishingGallery3CredentialsPane* self, - const gchar* url, - const gchar* uname, - const gchar* password, - const gchar* key) -{ -#line 1789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_PANE (self)); -#line 1789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (url != NULL); -#line 1789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (uname != NULL); -#line 1789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (password != NULL); -#line 1789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (key != NULL); -#line 1791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_emit (self, publishing_gallery3_credentials_pane_signals[PUBLISHING_GALLERY3_CREDENTIALS_PANE_LOGIN_SIGNAL], 0, url, uname, password, key); -#line 11638 "GalleryConnector.c" -} - - -static GtkWidget* -publishing_gallery3_credentials_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingGallery3CredentialsPane * self; - GtkWidget* result = NULL; - GtkWidget* _tmp0_; - GtkWidget* _tmp1_; - GtkWidget* _tmp2_; -#line 1794 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane); -#line 1795 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->grid_widget; -#line 1795 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_assert (NULL != _tmp0_, "null != grid_widget"); -#line 1796 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->grid_widget; -#line 1796 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 1796 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp2_; -#line 1796 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 11664 "GalleryConnector.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_gallery3_credentials_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingGallery3CredentialsPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 1799 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane); -#line 1800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 1800 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 11679 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_credentials_pane_notify_go_back_publishing_gallery3_credentials_grid_go_back (PublishingGallery3CredentialsGrid* _sender, - gpointer self) -{ -#line 1804 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_pane_notify_go_back ((PublishingGallery3CredentialsPane*) self); -#line 11689 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_credentials_pane_notify_login_publishing_gallery3_credentials_grid_login (PublishingGallery3CredentialsGrid* _sender, - const gchar* url, - const gchar* username, - const gchar* password, - const gchar* key, - gpointer self) -{ -#line 1805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_pane_notify_login ((PublishingGallery3CredentialsPane*) self, url, username, password, key); -#line 11703 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingGallery3CredentialsPane * self; - PublishingGallery3CredentialsGrid* _tmp0_; - PublishingGallery3CredentialsGrid* _tmp1_; - PublishingGallery3CredentialsGrid* _tmp2_; -#line 1803 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane); -#line 1804 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->frame; -#line 1804 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (_tmp0_, "go-back", (GCallback) _publishing_gallery3_credentials_pane_notify_go_back_publishing_gallery3_credentials_grid_go_back, self, 0); -#line 1805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->frame; -#line 1805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (_tmp1_, "login", (GCallback) _publishing_gallery3_credentials_pane_notify_login_publishing_gallery3_credentials_grid_login, self, 0); -#line 1807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->frame; -#line 1807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_installed (_tmp2_); -#line 11728 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingGallery3CredentialsPane * self; - PublishingGallery3CredentialsGrid* _tmp0_; - guint _tmp1_; - PublishingGallery3CredentialsGrid* _tmp2_; - guint _tmp3_; -#line 1810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane); -#line 1811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->frame; -#line 1811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("go-back", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, &_tmp1_, NULL, FALSE); -#line 1811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_gallery3_credentials_pane_notify_go_back_publishing_gallery3_credentials_grid_go_back, self); -#line 1812 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->frame; -#line 1812 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_parse_name ("login", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, &_tmp3_, NULL, FALSE); -#line 1812 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_gallery3_credentials_pane_notify_login_publishing_gallery3_credentials_grid_login, self); -#line 11754 "GalleryConnector.c" -} - - -static void -g_cclosure_user_marshal_VOID__STRING_STRING_STRING_STRING (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__STRING_STRING_STRING_STRING) (gpointer data1, const char* arg_1, const char* arg_2, const char* arg_3, const char* arg_4, gpointer data2); - register GMarshalFunc_VOID__STRING_STRING_STRING_STRING callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (n_param_values == 5); -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - data1 = closure->data; -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - data2 = param_values->data[0].v_pointer; -#line 11780 "GalleryConnector.c" - } else { -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - data1 = param_values->data[0].v_pointer; -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - data2 = closure->data; -#line 11786 "GalleryConnector.c" - } -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - callback = (GMarshalFunc_VOID__STRING_STRING_STRING_STRING) (marshal_data ? marshal_data : cc->callback); -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), g_value_get_string (param_values + 3), g_value_get_string (param_values + 4), data2); -#line 11792 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_pane_class_init (PublishingGallery3CredentialsPaneClass * klass) -{ -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_pane_parent_class = g_type_class_peek_parent (klass); -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3CredentialsPanePrivate)); -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_gallery3_credentials_pane_finalize; -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_pane_signals[PUBLISHING_GALLERY3_CREDENTIALS_PANE_GO_BACK_SIGNAL] = g_signal_new ("go-back", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_pane_signals[PUBLISHING_GALLERY3_CREDENTIALS_PANE_LOGIN_SIGNAL] = g_signal_new ("login", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING_STRING_STRING, G_TYPE_NONE, 4, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); -#line 11809 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_gallery3_credentials_pane_real_get_widget; -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_gallery3_credentials_pane_real_get_preferred_geometry; -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_gallery3_credentials_pane_real_on_pane_installed; -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_gallery3_credentials_pane_real_on_pane_uninstalled; -#line 11826 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_pane_instance_init (PublishingGallery3CredentialsPane * self) -{ -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_CREDENTIALS_PANE_GET_PRIVATE (self); -#line 1751 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->frame = NULL; -#line 1752 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->grid_widget = NULL; -#line 11839 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_pane_finalize (GObject * obj) -{ - PublishingGallery3CredentialsPane * self; -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_PANE, PublishingGallery3CredentialsPane); -#line 1751 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->frame); -#line 1752 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->grid_widget); -#line 1728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (publishing_gallery3_credentials_pane_parent_class)->finalize (obj); -#line 11855 "GalleryConnector.c" -} - - -GType -publishing_gallery3_credentials_pane_get_type (void) -{ - static volatile gsize publishing_gallery3_credentials_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_credentials_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3CredentialsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_credentials_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3CredentialsPane), 0, (GInstanceInitFunc) publishing_gallery3_credentials_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_gallery3_credentials_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_gallery3_credentials_pane_type_id; - publishing_gallery3_credentials_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingGallery3CredentialsPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_gallery3_credentials_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_gallery3_credentials_pane_type_id__volatile, publishing_gallery3_credentials_pane_type_id); - } - return publishing_gallery3_credentials_pane_type_id__volatile; -} - - -static void -_publishing_gallery3_credentials_grid_on_url_or_username_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 1890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_on_url_or_username_changed ((PublishingGallery3CredentialsGrid*) self); -#line 11881 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_credentials_grid_on_go_back_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_on_go_back_button_clicked ((PublishingGallery3CredentialsGrid*) self); -#line 11891 "GalleryConnector.c" -} - - -static void -_publishing_gallery3_credentials_grid_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1907 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_on_login_button_clicked ((PublishingGallery3CredentialsGrid*) self); -#line 11901 "GalleryConnector.c" -} - - -PublishingGallery3CredentialsGrid* -publishing_gallery3_credentials_grid_construct (GType object_type, - SpitPublishingPluginHost* host, - PublishingGallery3CredentialsPaneMode mode, - const gchar* url, - const gchar* username, - const gchar* key, - GtkBuilder* builder) -{ - PublishingGallery3CredentialsGrid * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - GtkBuilder* _tmp3_; - GSList* _tmp4_; - GSList* _tmp5_; - GObject* _tmp6_; - GObject* _tmp7_; - GtkLabel* _tmp8_; - GObject* _tmp9_; - GtkEntry* _tmp10_; - GObject* _tmp11_; - GtkEntry* _tmp12_; - GObject* _tmp13_; - GtkEntry* _tmp14_; - GObject* _tmp15_; - GtkEntry* _tmp16_; - GObject* _tmp17_; - GtkButton* _tmp18_; - GObject* _tmp19_; - GtkButton* _tmp20_; - GtkEntry* _tmp30_; - GtkEntry* _tmp33_; - GtkEntry* _tmp36_; - GtkButton* _tmp37_; - GtkButton* _tmp38_; - gboolean _tmp39_ = FALSE; - GtkButton* _tmp40_; -#line 1840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 1840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL); -#line 1840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3CredentialsGrid*) g_object_new (object_type, NULL); -#line 1845 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->host = host; -#line 1846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (url); -#line 1846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->url); -#line 1846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->url = _tmp0_; -#line 1847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = g_strdup (key); -#line 1847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->key); -#line 1847 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key = _tmp1_; -#line 1848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = g_strdup (username); -#line 1848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->username); -#line 1848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->username = _tmp2_; -#line 1850 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = _g_object_ref0 (builder); -#line 1850 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->builder); -#line 1850 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->builder = _tmp3_; -#line 1851 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_assert (builder != NULL, "builder != null"); -#line 1852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = gtk_builder_get_objects (builder); -#line 1852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = _tmp4_; -#line 1852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _vala_assert (g_slist_length (_tmp5_) > ((guint) 0), "builder.get_objects().length() > 0"); -#line 1852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_slist_free0 (_tmp5_); -#line 1855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = gtk_builder_get_object (builder, "gallery3_auth_pane_widget"); -#line 1855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_set_pane_widget (self, G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, gtk_grid_get_type ()) ? ((GtkGrid*) _tmp6_) : NULL); -#line 1856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = gtk_builder_get_object (builder, "intro_message_label"); -#line 1856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp7_) : NULL); -#line 1856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->intro_message_label); -#line 1856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->intro_message_label = _tmp8_; -#line 1857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp9_ = gtk_builder_get_object (builder, "url_entry"); -#line 1857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp9_) : NULL); -#line 1857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->url_entry); -#line 1857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->url_entry = _tmp10_; -#line 1858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp11_ = gtk_builder_get_object (builder, "username_entry"); -#line 1858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp11_) : NULL); -#line 1858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->username_entry); -#line 1858 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->username_entry = _tmp12_; -#line 1859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp13_ = gtk_builder_get_object (builder, "key_entry"); -#line 1859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp13_) : NULL); -#line 1859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->key_entry); -#line 1859 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key_entry = _tmp14_; -#line 1860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp15_ = gtk_builder_get_object (builder, "password_entry"); -#line 1860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp16_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp15_) : NULL); -#line 1860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->password_entry); -#line 1860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->password_entry = _tmp16_; -#line 1861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp17_ = gtk_builder_get_object (builder, "go_back_button"); -#line 1861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, gtk_button_get_type ()) ? ((GtkButton*) _tmp17_) : NULL); -#line 1861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->go_back_button); -#line 1861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->go_back_button = _tmp18_; -#line 1862 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp19_ = gtk_builder_get_object (builder, "login_button"); -#line 1862 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, gtk_button_get_type ()) ? ((GtkButton*) _tmp19_) : NULL); -#line 1862 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->login_button); -#line 1862 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->login_button = _tmp20_; -#line 1865 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - switch (mode) { -#line 1865 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_INTRO: -#line 12049 "GalleryConnector.c" - { - GtkLabel* _tmp21_; -#line 1867 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp21_ = self->priv->intro_message_label; -#line 1867 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_label_set_markup (_tmp21_, PUBLISHING_GALLERY3_CREDENTIALS_GRID_INTRO_MESSAGE); -#line 1868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 12058 "GalleryConnector.c" - } -#line 1865 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_FAILED_RETRY: -#line 12062 "GalleryConnector.c" - { - GtkLabel* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; -#line 1871 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp22_ = self->priv->intro_message_label; -#line 1871 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp23_ = g_strdup_printf ("%s\n\n%s", _ ("Unrecognized User"), PUBLISHING_GALLERY3_CREDENTIALS_GRID_FAILED_RETRY_MESSAGE); -#line 1871 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp24_ = _tmp23_; -#line 1871 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_label_set_markup (_tmp22_, _tmp24_); -#line 1871 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp24_); -#line 1873 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 12079 "GalleryConnector.c" - } -#line 1865 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - case PUBLISHING_GALLERY3_CREDENTIALS_PANE_MODE_NOT_GALLERY_URL: -#line 12083 "GalleryConnector.c" - { - GtkLabel* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; -#line 1876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp25_ = self->priv->intro_message_label; -#line 1876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp26_ = g_strdup_printf ("%s\n\n%s", _ (PUBLISHING_GALLERY3_SERVICE_NAME " Site Not Found"), PUBLISHING_GALLERY3_CREDENTIALS_GRID_NOT_GALLERY_URL_MESSAGE); -#line 1876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp27_ = _tmp26_; -#line 1876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_label_set_markup (_tmp25_, _tmp27_); -#line 1876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (_tmp27_); -#line 1879 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 12100 "GalleryConnector.c" - } - default: - { -#line 1882 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("GalleryConnector.vala:1882: Invalid CredentialsPane mode"); -#line 12106 "GalleryConnector.c" - } - } -#line 1886 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (url != NULL) { -#line 12111 "GalleryConnector.c" - GtkEntry* _tmp28_; - GtkEntry* _tmp29_; -#line 1887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp28_ = self->priv->url_entry; -#line 1887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_entry_set_text (_tmp28_, url); -#line 1888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp29_ = self->priv->username_entry; -#line 1888 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget)); -#line 12122 "GalleryConnector.c" - } -#line 1890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp30_ = self->priv->url_entry; -#line 1890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_gallery3_credentials_grid_on_url_or_username_changed_gtk_editable_changed, self, 0); -#line 1892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (username != NULL) { -#line 12130 "GalleryConnector.c" - GtkEntry* _tmp31_; - GtkEntry* _tmp32_; -#line 1893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp31_ = self->priv->username_entry; -#line 1893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_entry_set_text (_tmp31_, username); -#line 1894 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp32_ = self->priv->password_entry; -#line 1894 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_widget_get_type (), GtkWidget)); -#line 12141 "GalleryConnector.c" - } -#line 1896 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp33_ = self->priv->username_entry; -#line 1896 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_gallery3_credentials_grid_on_url_or_username_changed_gtk_editable_changed, self, 0); -#line 1899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (key != NULL) { -#line 12149 "GalleryConnector.c" - GtkEntry* _tmp34_; - GtkEntry* _tmp35_; -#line 1900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp34_ = self->priv->key_entry; -#line 1900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_entry_set_text (_tmp34_, key); -#line 1901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp35_ = self->priv->key_entry; -#line 1901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_widget_get_type (), GtkWidget)); -#line 12160 "GalleryConnector.c" - } -#line 1903 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp36_ = self->priv->key_entry; -#line 1903 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_gallery3_credentials_grid_on_url_or_username_changed_gtk_editable_changed, self, 0); -#line 1906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp37_ = self->priv->go_back_button; -#line 1906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (_tmp37_, "clicked", (GCallback) _publishing_gallery3_credentials_grid_on_go_back_button_clicked_gtk_button_clicked, self, 0); -#line 1907 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp38_ = self->priv->login_button; -#line 1907 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_connect_object (_tmp38_, "clicked", (GCallback) _publishing_gallery3_credentials_grid_on_login_button_clicked_gtk_button_clicked, self, 0); -#line 1908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (url != NULL) { -#line 1908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp39_ = username != NULL; -#line 12178 "GalleryConnector.c" - } else { -#line 1908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp39_ = FALSE; -#line 12182 "GalleryConnector.c" - } -#line 1908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp40_ = self->priv->login_button; -#line 1908 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_widget_get_type (), GtkWidget), _tmp39_); -#line 1840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 12190 "GalleryConnector.c" -} - - -PublishingGallery3CredentialsGrid* -publishing_gallery3_credentials_grid_new (SpitPublishingPluginHost* host, - PublishingGallery3CredentialsPaneMode mode, - const gchar* url, - const gchar* username, - const gchar* key, - GtkBuilder* builder) -{ -#line 1840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_credentials_grid_construct (PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, host, mode, url, username, key, builder); -#line 12204 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_grid_on_login_button_clicked (PublishingGallery3CredentialsGrid* self) -{ - GtkEntry* _tmp0_; - const gchar* _tmp1_; - GtkEntry* _tmp2_; - const gchar* _tmp3_; - GtkEntry* _tmp4_; - const gchar* _tmp5_; - GtkEntry* _tmp6_; - const gchar* _tmp7_; -#line 1911 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self)); -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->url_entry; -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->username_entry; -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = gtk_entry_get_text (_tmp2_); -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = self->priv->password_entry; -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = gtk_entry_get_text (_tmp4_); -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = self->priv->key_entry; -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = gtk_entry_get_text (_tmp6_); -#line 1912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_emit (self, publishing_gallery3_credentials_grid_signals[PUBLISHING_GALLERY3_CREDENTIALS_GRID_LOGIN_SIGNAL], 0, _tmp1_, _tmp3_, _tmp5_, _tmp7_); -#line 12239 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_grid_on_go_back_button_clicked (PublishingGallery3CredentialsGrid* self) -{ -#line 1916 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self)); -#line 1917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_signal_emit (self, publishing_gallery3_credentials_grid_signals[PUBLISHING_GALLERY3_CREDENTIALS_GRID_GO_BACK_SIGNAL], 0); -#line 12250 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_grid_on_url_or_username_changed (PublishingGallery3CredentialsGrid* self) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GtkEntry* _tmp2_; - const gchar* _tmp3_; - GtkButton* _tmp8_; -#line 1920 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self)); -#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->url_entry; -#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = gtk_entry_get_text (_tmp2_); -#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (g_strcmp0 (_tmp3_, "") != 0) { -#line 12270 "GalleryConnector.c" - GtkEntry* _tmp4_; - const gchar* _tmp5_; -#line 1923 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = self->priv->username_entry; -#line 1923 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = gtk_entry_get_text (_tmp4_); -#line 1923 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = g_strcmp0 (_tmp5_, "") != 0; -#line 12279 "GalleryConnector.c" - } else { -#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = FALSE; -#line 12283 "GalleryConnector.c" - } -#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (_tmp1_) { -#line 1922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = TRUE; -#line 12289 "GalleryConnector.c" - } else { - GtkEntry* _tmp6_; - const gchar* _tmp7_; -#line 1924 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = self->priv->key_entry; -#line 1924 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = gtk_entry_get_text (_tmp6_); -#line 1924 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strcmp0 (_tmp7_, "") != 0; -#line 12299 "GalleryConnector.c" - } -#line 1921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp8_ = self->priv->login_button; -#line 1921 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), _tmp0_); -#line 12305 "GalleryConnector.c" -} - - -void -publishing_gallery3_credentials_grid_installed (PublishingGallery3CredentialsGrid* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - GtkButton* _tmp2_; -#line 1927 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self)); -#line 1928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->host; -#line 1928 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 1931 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = self->priv->host; -#line 1931 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = self->priv->login_button; -#line 1931 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 12327 "GalleryConnector.c" -} - - -GtkGrid* -publishing_gallery3_credentials_grid_get_pane_widget (PublishingGallery3CredentialsGrid* self) -{ - GtkGrid* result; - GtkGrid* _tmp0_; -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self), NULL); -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_pane_widget; -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12344 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_grid_set_pane_widget (PublishingGallery3CredentialsGrid* self, - GtkGrid* value) -{ -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_CREDENTIALS_GRID (self)); -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (publishing_gallery3_credentials_grid_get_pane_widget (self) != value) { -#line 12356 "GalleryConnector.c" - GtkGrid* _tmp0_; -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _g_object_ref0 (value); -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->_pane_widget); -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_pane_widget = _tmp0_; -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_gallery3_credentials_grid_properties[PUBLISHING_GALLERY3_CREDENTIALS_GRID_PANE_WIDGET_PROPERTY]); -#line 12366 "GalleryConnector.c" - } -} - - -static void -publishing_gallery3_credentials_grid_class_init (PublishingGallery3CredentialsGridClass * klass) -{ -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_parent_class = g_type_class_peek_parent (klass); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3CredentialsGridPrivate)); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_publishing_gallery3_credentials_grid_get_property; -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_publishing_gallery3_credentials_grid_set_property; -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_gallery3_credentials_grid_finalize; -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_GALLERY3_CREDENTIALS_GRID_PANE_WIDGET_PROPERTY, publishing_gallery3_credentials_grid_properties[PUBLISHING_GALLERY3_CREDENTIALS_GRID_PANE_WIDGET_PROPERTY] = g_param_spec_object ("pane-widget", "pane-widget", "pane-widget", gtk_grid_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_signals[PUBLISHING_GALLERY3_CREDENTIALS_GRID_GO_BACK_SIGNAL] = g_signal_new ("go-back", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_signals[PUBLISHING_GALLERY3_CREDENTIALS_GRID_LOGIN_SIGNAL] = g_signal_new ("login", PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING_STRING_STRING, G_TYPE_NONE, 4, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); -#line 12390 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_grid_instance_init (PublishingGallery3CredentialsGrid * self) -{ -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_CREDENTIALS_GRID_GET_PRIVATE (self); -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_pane_widget = NULL; -#line 1823 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->host = NULL; -#line 1824 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->builder = NULL; -#line 1825 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->intro_message_label = NULL; -#line 1826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->url_entry = NULL; -#line 1827 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->username_entry = NULL; -#line 1828 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->password_entry = NULL; -#line 1829 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key_entry = NULL; -#line 1830 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->login_button = NULL; -#line 1831 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->go_back_button = NULL; -#line 1832 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->url = NULL; -#line 1833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->username = NULL; -#line 1834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->key = NULL; -#line 12425 "GalleryConnector.c" -} - - -static void -publishing_gallery3_credentials_grid_finalize (GObject * obj) -{ - PublishingGallery3CredentialsGrid * self; -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGrid); -#line 1821 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->_pane_widget); -#line 1824 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->builder); -#line 1825 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->intro_message_label); -#line 1826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->url_entry); -#line 1827 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->username_entry); -#line 1828 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->password_entry); -#line 1829 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->key_entry); -#line 1830 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->login_button); -#line 1831 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (self->priv->go_back_button); -#line 1832 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->url); -#line 1833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->username); -#line 1834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->key); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_CLASS (publishing_gallery3_credentials_grid_parent_class)->finalize (obj); -#line 12461 "GalleryConnector.c" -} - - -GType -publishing_gallery3_credentials_grid_get_type (void) -{ - static volatile gsize publishing_gallery3_credentials_grid_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_credentials_grid_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3CredentialsGridClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_credentials_grid_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3CredentialsGrid), 0, (GInstanceInitFunc) publishing_gallery3_credentials_grid_instance_init, NULL }; - GType publishing_gallery3_credentials_grid_type_id; - publishing_gallery3_credentials_grid_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingGallery3CredentialsGrid", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_credentials_grid_type_id__volatile, publishing_gallery3_credentials_grid_type_id); - } - return publishing_gallery3_credentials_grid_type_id__volatile; -} - - -static void -_vala_publishing_gallery3_credentials_grid_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - PublishingGallery3CredentialsGrid * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGrid); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - switch (property_id) { -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - case PUBLISHING_GALLERY3_CREDENTIALS_GRID_PANE_WIDGET_PROPERTY: -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_value_set_object (value, publishing_gallery3_credentials_grid_get_pane_widget (self)); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 12495 "GalleryConnector.c" - default: -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 12501 "GalleryConnector.c" - } -} - - -static void -_vala_publishing_gallery3_credentials_grid_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - PublishingGallery3CredentialsGrid * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_GALLERY3_TYPE_CREDENTIALS_GRID, PublishingGallery3CredentialsGrid); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - switch (property_id) { -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - case PUBLISHING_GALLERY3_CREDENTIALS_GRID_PANE_WIDGET_PROPERTY: -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_credentials_grid_set_pane_widget (self, g_value_get_object (value)); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 12522 "GalleryConnector.c" - default: -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 1816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - break; -#line 12528 "GalleryConnector.c" - } -} - - -PublishingGallery3Session* -publishing_gallery3_session_construct (GType object_type) -{ - PublishingGallery3Session* self = NULL; -#line 1942 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3Session*) publishing_rest_support_session_construct (object_type, NULL); -#line 1942 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 12541 "GalleryConnector.c" -} - - -PublishingGallery3Session* -publishing_gallery3_session_new (void) -{ -#line 1942 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_session_construct (PUBLISHING_GALLERY3_TYPE_SESSION); -#line 12550 "GalleryConnector.c" -} - - -static gboolean -publishing_gallery3_session_real_is_authenticated (PublishingRESTSupportSession* base) -{ - PublishingGallery3Session * self; - gboolean result = FALSE; - const gchar* _tmp0_; -#line 1945 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session); -#line 1946 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_key; -#line 1946 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = NULL != _tmp0_; -#line 1946 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12568 "GalleryConnector.c" -} - - -void -publishing_gallery3_session_authenticate (PublishingGallery3Session* self, - const gchar* gallery_url, - const gchar* username, - const gchar* key) -{ -#line 1949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self)); -#line 1949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (gallery_url != NULL); -#line 1949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (username != NULL); -#line 1949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (key != NULL); -#line 1950 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_set_url (self, gallery_url); -#line 1951 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_set_username (self, username); -#line 1952 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_set_key (self, key); -#line 1954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_rest_support_session_notify_authenticated (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)); -#line 12594 "GalleryConnector.c" -} - - -void -publishing_gallery3_session_deauthenticate (PublishingGallery3Session* self) -{ -#line 1957 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self)); -#line 1958 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_set_url (self, NULL); -#line 1959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_set_username (self, NULL); -#line 1960 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_set_key (self, NULL); -#line 12609 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_session_get_url (PublishingGallery3Session* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self), NULL); -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_url; -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12626 "GalleryConnector.c" -} - - -static void -publishing_gallery3_session_set_url (PublishingGallery3Session* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self)); -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_url); -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_url = _tmp0_; -#line 12643 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_session_get_username (PublishingGallery3Session* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self), NULL); -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_username; -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12660 "GalleryConnector.c" -} - - -static void -publishing_gallery3_session_set_username (PublishingGallery3Session* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self)); -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_username); -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_username = _tmp0_; -#line 12677 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_session_get_key (PublishingGallery3Session* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self), NULL); -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_key; -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12694 "GalleryConnector.c" -} - - -static void -publishing_gallery3_session_set_key (PublishingGallery3Session* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_if_fail (PUBLISHING_GALLERY3_IS_SESSION (self)); -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = g_strdup (value); -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_key); -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_key = _tmp0_; -#line 12711 "GalleryConnector.c" -} - - -static void -publishing_gallery3_session_class_init (PublishingGallery3SessionClass * klass) -{ -#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_session_parent_class = g_type_class_peek_parent (klass); -#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_gallery3_session_finalize; -#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3SessionPrivate)); -#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = (gboolean (*) (PublishingRESTSupportSession *)) publishing_gallery3_session_real_is_authenticated; -#line 12726 "GalleryConnector.c" -} - - -static void -publishing_gallery3_session_instance_init (PublishingGallery3Session * self) -{ -#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_SESSION_GET_PRIVATE (self); -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_url = NULL; -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_username = NULL; -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_key = NULL; -#line 12741 "GalleryConnector.c" -} - - -static void -publishing_gallery3_session_finalize (PublishingRESTSupportSession * obj) -{ - PublishingGallery3Session * self; -#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session); -#line 1938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_url); -#line 1939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_username); -#line 1940 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_key); -#line 1935 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_gallery3_session_parent_class)->finalize (obj); -#line 12759 "GalleryConnector.c" -} - - -GType -publishing_gallery3_session_get_type (void) -{ - static volatile gsize publishing_gallery3_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_session_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3SessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3Session), 0, (GInstanceInitFunc) publishing_gallery3_session_instance_init, NULL }; - GType publishing_gallery3_session_type_id; - publishing_gallery3_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingGallery3Session", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_session_type_id__volatile, publishing_gallery3_session_type_id); - } - return publishing_gallery3_session_type_id__volatile; -} - - -PublishingGallery3Uploader* -publishing_gallery3_uploader_construct (GType object_type, - PublishingGallery3Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingGallery3PublishingParameters* parameters) -{ - PublishingGallery3Uploader* self = NULL; - PublishingGallery3PublishingParameters* _tmp0_; -#line 1990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_SESSION (session), NULL); -#line 1990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 1994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = (PublishingGallery3Uploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishables, publishables_length1); -#line 1996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = _publishing_gallery3_publishing_parameters_ref0 (parameters); -#line 1996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (self->priv->parameters); -#line 1996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->parameters = _tmp0_; -#line 1990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self; -#line 12800 "GalleryConnector.c" -} - - -PublishingGallery3Uploader* -publishing_gallery3_uploader_new (PublishingGallery3Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingGallery3PublishingParameters* parameters) -{ -#line 1990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return publishing_gallery3_uploader_construct (PUBLISHING_GALLERY3_TYPE_UPLOADER, session, publishables, publishables_length1, parameters); -#line 12812 "GalleryConnector.c" -} - - -static gpointer -_publishing_rest_support_transaction_ref0 (gpointer self) -{ -#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return self ? publishing_rest_support_transaction_ref (self) : NULL; -#line 12821 "GalleryConnector.c" -} - - -static PublishingRESTSupportTransaction* -publishing_gallery3_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable) -{ - PublishingGallery3Uploader * self; - PublishingRESTSupportTransaction* result = NULL; - SpitPublishingPublishable* p = NULL; - SpitPublishingPublishable* _tmp0_; - gchar* _tmp1_; - PublishingRESTSupportSession* _tmp2_; - PublishingGallery3Session* _tmp3_; - PublishingGallery3PublishingParameters* _tmp4_; - PublishingGallery3GalleryUploadTransaction* _tmp5_; - PublishingRESTSupportTransaction* _tmp6_; - PublishingRESTSupportTransaction* _tmp7_; -#line 2000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3Uploader); -#line 2000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 2003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 2003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - p = _tmp0_; -#line 2004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = spit_publishing_publishable_get_param_string (p, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 2004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_current_publishable_name); -#line 2004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_current_publishable_name = _tmp1_; -#line 2006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_current_media_type = spit_publishing_publishable_get_media_type (p); -#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_GALLERY3_TYPE_SESSION, PublishingGallery3Session); -#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp4_ = self->priv->parameters; -#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp5_ = publishing_gallery3_gallery_upload_transaction_new (_tmp3_, _tmp4_, p); -#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (self->priv->_current_transaction); -#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv->_current_transaction = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); -#line 2008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_session_unref0 (_tmp3_); -#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp6_ = self->priv->_current_transaction; -#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp7_ = _publishing_rest_support_transaction_ref0 (_tmp6_); -#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp7_; -#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_object_unref0 (p); -#line 2011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12880 "GalleryConnector.c" -} - - -const gchar* -publishing_gallery3_uploader_get_current_publishable_name (PublishingGallery3Uploader* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1974 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_UPLOADER (self), NULL); -#line 1975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_current_publishable_name; -#line 1975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12897 "GalleryConnector.c" -} - - -guint -publishing_gallery3_uploader_get_status_code (PublishingGallery3Uploader* self) -{ - guint result; - PublishingRESTSupportTransaction* _tmp0_; -#line 1979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_UPLOADER (self), 0U); -#line 1980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_current_transaction; -#line 1980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = publishing_rest_support_transaction_get_status_code (_tmp0_); -#line 1980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12914 "GalleryConnector.c" -} - - -SpitPublishingPublisherMediaType -publishing_gallery3_uploader_get_current_publishable_type (PublishingGallery3Uploader* self) -{ - SpitPublishingPublisherMediaType result; - SpitPublishingPublisherMediaType _tmp0_; -#line 1985 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (PUBLISHING_GALLERY3_IS_UPLOADER (self), 0); -#line 1986 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = self->priv->_current_media_type; -#line 1986 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp0_; -#line 1986 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 12931 "GalleryConnector.c" -} - - -static void -publishing_gallery3_uploader_class_init (PublishingGallery3UploaderClass * klass) -{ -#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - publishing_gallery3_uploader_parent_class = g_type_class_peek_parent (klass); -#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_gallery3_uploader_finalize; -#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_type_class_add_private (klass, sizeof (PublishingGallery3UploaderPrivate)); -#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_gallery3_uploader_real_create_transaction; -#line 12946 "GalleryConnector.c" -} - - -static void -publishing_gallery3_uploader_instance_init (PublishingGallery3Uploader * self) -{ -#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self->priv = PUBLISHING_GALLERY3_UPLOADER_GET_PRIVATE (self); -#line 12955 "GalleryConnector.c" -} - - -static void -publishing_gallery3_uploader_finalize (PublishingRESTSupportBatchUploader * obj) -{ - PublishingGallery3Uploader * self; -#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GALLERY3_TYPE_UPLOADER, PublishingGallery3Uploader); -#line 1967 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_gallery3_publishing_parameters_unref0 (self->priv->parameters); -#line 1968 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _g_free0 (self->priv->_current_publishable_name); -#line 1970 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _publishing_rest_support_transaction_unref0 (self->priv->_current_transaction); -#line 1965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_gallery3_uploader_parent_class)->finalize (obj); -#line 12973 "GalleryConnector.c" -} - - -GType -publishing_gallery3_uploader_get_type (void) -{ - static volatile gsize publishing_gallery3_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_gallery3_uploader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGallery3UploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_gallery3_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGallery3Uploader), 0, (GInstanceInitFunc) publishing_gallery3_uploader_instance_init, NULL }; - GType publishing_gallery3_uploader_type_id; - publishing_gallery3_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingGallery3Uploader", &g_define_type_info, 0); - g_once_init_leave (&publishing_gallery3_uploader_type_id__volatile, publishing_gallery3_uploader_type_id); - } - return publishing_gallery3_uploader_type_id__volatile; -} - - -static gint -string_last_index_of (const gchar* self, - const gchar* needle, - gint start_index) -{ - gint result = 0; - gchar* _result_ = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1035 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0); -#line 1035 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, 0); -#line 1036 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strrstr (((gchar*) self) + start_index, (gchar*) needle); -#line 1036 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1038 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1038 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ != NULL) { -#line 13012 "GalleryConnector.c" - gchar* _tmp2_; -#line 1039 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _result_; -#line 1039 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gint) (_tmp2_ - ((gchar*) self)); -#line 1039 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 13020 "GalleryConnector.c" - } else { -#line 1041 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = -1; -#line 1041 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 13026 "GalleryConnector.c" - } -} - - -gchar* -publishing_gallery3_strip_session_url (const gchar* url) -{ - gchar* result = NULL; - gint item_loc = 0; - gint _tmp0_; - gint _tmp1_; - gchar* _tmp2_; -#line 2017 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 2020 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_debug ("GalleryConnector.vala:2020: Searching for \"%s\" in \"%s\"", PUBLISHING_GALLERY3_REST_PATH, url); -#line 2022 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - item_loc = string_last_index_of (url, PUBLISHING_GALLERY3_REST_PATH, 0); -#line 2025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - if (-1 == item_loc) { -#line 2026 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - g_error ("Did not find \"%s\" in the base of the new item " "URL \"%s\"", PUBLISHING_GALLERY3_REST_PATH, url); -#line 13049 "GalleryConnector.c" - } -#line 2029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp0_ = strlen (PUBLISHING_GALLERY3_REST_PATH); -#line 2029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp1_ = _tmp0_; -#line 2029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - _tmp2_ = string_substring (url, (glong) (item_loc + _tmp1_), (glong) -1); -#line 2029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - result = _tmp2_; -#line 2029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/GalleryConnector.vala" - return result; -#line 13061 "GalleryConnector.c" -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/shotwell-publishing-extras/RajcePublishing.c b/plugins/shotwell-publishing-extras/RajcePublishing.c deleted file mode 100644 index c3963aa..0000000 --- a/plugins/shotwell-publishing-extras/RajcePublishing.c +++ /dev/null @@ -1,11924 +0,0 @@ -/* RajcePublishing.c generated by valac 0.40.4, the Vala compiler - * generated from RajcePublishing.vala, do not modify */ - -/* Copyright 2014 rajce.net - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_RAJCE_SERVICE (rajce_service_get_type ()) -#define RAJCE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RAJCE_SERVICE, RajceService)) -#define RAJCE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RAJCE_SERVICE, RajceServiceClass)) -#define IS_RAJCE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RAJCE_SERVICE)) -#define IS_RAJCE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RAJCE_SERVICE)) -#define RAJCE_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RAJCE_SERVICE, RajceServiceClass)) - -typedef struct _RajceService RajceService; -typedef struct _RajceServiceClass RajceServiceClass; -typedef struct _RajceServicePrivate RajceServicePrivate; -enum { - RAJCE_SERVICE_0_PROPERTY, - RAJCE_SERVICE_NUM_PROPERTIES -}; -static GParamSpec* rajce_service_properties[RAJCE_SERVICE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER (publishing_rajce_rajce_publisher_get_type ()) -#define PUBLISHING_RAJCE_RAJCE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher)) -#define PUBLISHING_RAJCE_RAJCE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisherClass)) -#define PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER)) -#define PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER)) -#define PUBLISHING_RAJCE_RAJCE_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisherClass)) - -typedef struct _PublishingRajceRajcePublisher PublishingRajceRajcePublisher; -typedef struct _PublishingRajceRajcePublisherClass PublishingRajceRajcePublisherClass; -typedef struct _PublishingRajceRajcePublisherPrivate PublishingRajceRajcePublisherPrivate; - -#define PUBLISHING_RAJCE_TYPE_SESSION (publishing_rajce_session_get_type ()) -#define PUBLISHING_RAJCE_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSession)) -#define PUBLISHING_RAJCE_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSessionClass)) -#define PUBLISHING_RAJCE_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_SESSION)) -#define PUBLISHING_RAJCE_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_SESSION)) -#define PUBLISHING_RAJCE_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSessionClass)) - -typedef struct _PublishingRajceSession PublishingRajceSession; -typedef struct _PublishingRajceSessionClass PublishingRajceSessionClass; - -#define PUBLISHING_RAJCE_TYPE_ALBUM (publishing_rajce_album_get_type ()) -#define PUBLISHING_RAJCE_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_ALBUM, PublishingRajceAlbum)) -#define PUBLISHING_RAJCE_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_ALBUM, PublishingRajceAlbumClass)) -#define PUBLISHING_RAJCE_IS_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_ALBUM)) -#define PUBLISHING_RAJCE_IS_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_ALBUM)) -#define PUBLISHING_RAJCE_ALBUM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_ALBUM, PublishingRajceAlbumClass)) - -typedef struct _PublishingRajceAlbum PublishingRajceAlbum; -typedef struct _PublishingRajceAlbumClass PublishingRajceAlbumClass; - -#define PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS (publishing_rajce_publishing_parameters_get_type ()) -#define PUBLISHING_RAJCE_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, PublishingRajcePublishingParameters)) -#define PUBLISHING_RAJCE_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, PublishingRajcePublishingParametersClass)) -#define PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_RAJCE_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, PublishingRajcePublishingParametersClass)) - -typedef struct _PublishingRajcePublishingParameters PublishingRajcePublishingParameters; -typedef struct _PublishingRajcePublishingParametersClass PublishingRajcePublishingParametersClass; -enum { - PUBLISHING_RAJCE_RAJCE_PUBLISHER_0_PROPERTY, - PUBLISHING_RAJCE_RAJCE_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_rajce_rajce_publisher_properties[PUBLISHING_RAJCE_RAJCE_PUBLISHER_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) -#define _publishing_rajce_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rajce_publishing_parameters_unref (var), NULL))) - -#define PUBLISHING_RAJCE_AUTHENTICATION_PANE_TYPE_MODE (publishing_rajce_authentication_pane_mode_get_type ()) - -#define PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE (publishing_rajce_authentication_pane_get_type ()) -#define PUBLISHING_RAJCE_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane)) -#define PUBLISHING_RAJCE_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPaneClass)) -#define PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE)) -#define PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE)) -#define PUBLISHING_RAJCE_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPaneClass)) - -typedef struct _PublishingRajceAuthenticationPane PublishingRajceAuthenticationPane; -typedef struct _PublishingRajceAuthenticationPaneClass PublishingRajceAuthenticationPaneClass; - -#define PUBLISHING_RAJCE_TYPE_TRANSACTION (publishing_rajce_transaction_get_type ()) -#define PUBLISHING_RAJCE_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_TRANSACTION, PublishingRajceTransaction)) -#define PUBLISHING_RAJCE_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_TRANSACTION, PublishingRajceTransactionClass)) -#define PUBLISHING_RAJCE_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_TRANSACTION)) -#define PUBLISHING_RAJCE_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_TRANSACTION, PublishingRajceTransactionClass)) - -typedef struct _PublishingRajceTransaction PublishingRajceTransaction; -typedef struct _PublishingRajceTransactionClass PublishingRajceTransactionClass; - -#define PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION (publishing_rajce_session_login_transaction_get_type ()) -#define PUBLISHING_RAJCE_SESSION_LOGIN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION, PublishingRajceSessionLoginTransaction)) -#define PUBLISHING_RAJCE_SESSION_LOGIN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION, PublishingRajceSessionLoginTransactionClass)) -#define PUBLISHING_RAJCE_IS_SESSION_LOGIN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_SESSION_LOGIN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION)) -#define PUBLISHING_RAJCE_SESSION_LOGIN_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION, PublishingRajceSessionLoginTransactionClass)) - -typedef struct _PublishingRajceSessionLoginTransaction PublishingRajceSessionLoginTransaction; -typedef struct _PublishingRajceSessionLoginTransactionClass PublishingRajceSessionLoginTransactionClass; -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL))) - -#define PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION (publishing_rajce_get_albums_transaction_get_type ()) -#define PUBLISHING_RAJCE_GET_ALBUMS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION, PublishingRajceGetAlbumsTransaction)) -#define PUBLISHING_RAJCE_GET_ALBUMS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION, PublishingRajceGetAlbumsTransactionClass)) -#define PUBLISHING_RAJCE_IS_GET_ALBUMS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_GET_ALBUMS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION)) -#define PUBLISHING_RAJCE_GET_ALBUMS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION, PublishingRajceGetAlbumsTransactionClass)) - -typedef struct _PublishingRajceGetAlbumsTransaction PublishingRajceGetAlbumsTransaction; -typedef struct _PublishingRajceGetAlbumsTransactionClass PublishingRajceGetAlbumsTransactionClass; -#define _publishing_rajce_album_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rajce_album_unref (var), NULL))) - -#define PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE (publishing_rajce_publishing_options_pane_get_type ()) -#define PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane)) -#define PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPaneClass)) -#define PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPaneClass)) - -typedef struct _PublishingRajcePublishingOptionsPane PublishingRajcePublishingOptionsPane; -typedef struct _PublishingRajcePublishingOptionsPaneClass PublishingRajcePublishingOptionsPaneClass; -typedef struct _PublishingRajcePublishingParametersPrivate PublishingRajcePublishingParametersPrivate; - -#define PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION (publishing_rajce_create_album_transaction_get_type ()) -#define PUBLISHING_RAJCE_CREATE_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION, PublishingRajceCreateAlbumTransaction)) -#define PUBLISHING_RAJCE_CREATE_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION, PublishingRajceCreateAlbumTransactionClass)) -#define PUBLISHING_RAJCE_IS_CREATE_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_CREATE_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION)) -#define PUBLISHING_RAJCE_CREATE_ALBUM_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION, PublishingRajceCreateAlbumTransactionClass)) - -typedef struct _PublishingRajceCreateAlbumTransaction PublishingRajceCreateAlbumTransaction; -typedef struct _PublishingRajceCreateAlbumTransactionClass PublishingRajceCreateAlbumTransactionClass; - -#define PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION (publishing_rajce_open_album_transaction_get_type ()) -#define PUBLISHING_RAJCE_OPEN_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION, PublishingRajceOpenAlbumTransaction)) -#define PUBLISHING_RAJCE_OPEN_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION, PublishingRajceOpenAlbumTransactionClass)) -#define PUBLISHING_RAJCE_IS_OPEN_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_OPEN_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION)) -#define PUBLISHING_RAJCE_OPEN_ALBUM_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION, PublishingRajceOpenAlbumTransactionClass)) - -typedef struct _PublishingRajceOpenAlbumTransaction PublishingRajceOpenAlbumTransaction; -typedef struct _PublishingRajceOpenAlbumTransactionClass PublishingRajceOpenAlbumTransactionClass; - -#define PUBLISHING_RAJCE_TYPE_UPLOADER (publishing_rajce_uploader_get_type ()) -#define PUBLISHING_RAJCE_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploader)) -#define PUBLISHING_RAJCE_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploaderClass)) -#define PUBLISHING_RAJCE_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_UPLOADER)) -#define PUBLISHING_RAJCE_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_UPLOADER)) -#define PUBLISHING_RAJCE_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploaderClass)) - -typedef struct _PublishingRajceUploader PublishingRajceUploader; -typedef struct _PublishingRajceUploaderClass PublishingRajceUploaderClass; -#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL))) - -#define PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION (publishing_rajce_get_album_url_transaction_get_type ()) -#define PUBLISHING_RAJCE_GET_ALBUM_URL_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION, PublishingRajceGetAlbumUrlTransaction)) -#define PUBLISHING_RAJCE_GET_ALBUM_URL_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION, PublishingRajceGetAlbumUrlTransactionClass)) -#define PUBLISHING_RAJCE_IS_GET_ALBUM_URL_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_GET_ALBUM_URL_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION)) -#define PUBLISHING_RAJCE_GET_ALBUM_URL_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION, PublishingRajceGetAlbumUrlTransactionClass)) - -typedef struct _PublishingRajceGetAlbumUrlTransaction PublishingRajceGetAlbumUrlTransaction; -typedef struct _PublishingRajceGetAlbumUrlTransactionClass PublishingRajceGetAlbumUrlTransactionClass; - -#define PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION (publishing_rajce_close_album_transaction_get_type ()) -#define PUBLISHING_RAJCE_CLOSE_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION, PublishingRajceCloseAlbumTransaction)) -#define PUBLISHING_RAJCE_CLOSE_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION, PublishingRajceCloseAlbumTransactionClass)) -#define PUBLISHING_RAJCE_IS_CLOSE_ALBUM_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_CLOSE_ALBUM_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION)) -#define PUBLISHING_RAJCE_CLOSE_ALBUM_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION, PublishingRajceCloseAlbumTransactionClass)) - -typedef struct _PublishingRajceCloseAlbumTransaction PublishingRajceCloseAlbumTransaction; -typedef struct _PublishingRajceCloseAlbumTransactionClass PublishingRajceCloseAlbumTransactionClass; -typedef struct _PublishingRajceAlbumPrivate PublishingRajceAlbumPrivate; -typedef struct _PublishingRajceParamSpecAlbum PublishingRajceParamSpecAlbum; -typedef struct _PublishingRajceUploaderPrivate PublishingRajceUploaderPrivate; - -#define PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION (publishing_rajce_add_photo_transaction_get_type ()) -#define PUBLISHING_RAJCE_ADD_PHOTO_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, PublishingRajceAddPhotoTransaction)) -#define PUBLISHING_RAJCE_ADD_PHOTO_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, PublishingRajceAddPhotoTransactionClass)) -#define PUBLISHING_RAJCE_IS_ADD_PHOTO_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_ADD_PHOTO_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION)) -#define PUBLISHING_RAJCE_ADD_PHOTO_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, PublishingRajceAddPhotoTransactionClass)) - -typedef struct _PublishingRajceAddPhotoTransaction PublishingRajceAddPhotoTransaction; -typedef struct _PublishingRajceAddPhotoTransactionClass PublishingRajceAddPhotoTransactionClass; -typedef struct _PublishingRajceAuthenticationPanePrivate PublishingRajceAuthenticationPanePrivate; -enum { - PUBLISHING_RAJCE_AUTHENTICATION_PANE_0_PROPERTY, - PUBLISHING_RAJCE_AUTHENTICATION_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_rajce_authentication_pane_properties[PUBLISHING_RAJCE_AUTHENTICATION_PANE_NUM_PROPERTIES]; -enum { - PUBLISHING_RAJCE_AUTHENTICATION_PANE_LOGIN_SIGNAL, - PUBLISHING_RAJCE_AUTHENTICATION_PANE_NUM_SIGNALS -}; -static guint publishing_rajce_authentication_pane_signals[PUBLISHING_RAJCE_AUTHENTICATION_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingRajcePublishingOptionsPanePrivate PublishingRajcePublishingOptionsPanePrivate; -enum { - PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_0_PROPERTY, - PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_rajce_publishing_options_pane_properties[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; -enum { - PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, - PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS -}; -static guint publishing_rajce_publishing_options_pane_signals[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingRajceParamSpecPublishingParameters PublishingRajceParamSpecPublishingParameters; -typedef struct _PublishingRajceSessionPrivate PublishingRajceSessionPrivate; - -#define PUBLISHING_RAJCE_TYPE_ARG_ITEM (publishing_rajce_arg_item_get_type ()) -#define PUBLISHING_RAJCE_ARG_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_ARG_ITEM, PublishingRajceArgItem)) -#define PUBLISHING_RAJCE_ARG_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_ARG_ITEM, PublishingRajceArgItemClass)) -#define PUBLISHING_RAJCE_IS_ARG_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_ARG_ITEM)) -#define PUBLISHING_RAJCE_IS_ARG_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_ARG_ITEM)) -#define PUBLISHING_RAJCE_ARG_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_ARG_ITEM, PublishingRajceArgItemClass)) - -typedef struct _PublishingRajceArgItem PublishingRajceArgItem; -typedef struct _PublishingRajceArgItemClass PublishingRajceArgItemClass; -typedef struct _PublishingRajceArgItemPrivate PublishingRajceArgItemPrivate; -#define _publishing_rajce_arg_item_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rajce_arg_item_unref (var), NULL))) -typedef struct _PublishingRajceParamSpecArgItem PublishingRajceParamSpecArgItem; - -#define PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST (publishing_rajce_live_api_request_get_type ()) -#define PUBLISHING_RAJCE_LIVE_API_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, PublishingRajceLiveApiRequest)) -#define PUBLISHING_RAJCE_LIVE_API_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, PublishingRajceLiveApiRequestClass)) -#define PUBLISHING_RAJCE_IS_LIVE_API_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST)) -#define PUBLISHING_RAJCE_IS_LIVE_API_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST)) -#define PUBLISHING_RAJCE_LIVE_API_REQUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, PublishingRajceLiveApiRequestClass)) - -typedef struct _PublishingRajceLiveApiRequest PublishingRajceLiveApiRequest; -typedef struct _PublishingRajceLiveApiRequestClass PublishingRajceLiveApiRequestClass; -typedef struct _PublishingRajceLiveApiRequestPrivate PublishingRajceLiveApiRequestPrivate; -typedef struct _PublishingRajceParamSpecLiveApiRequest PublishingRajceParamSpecLiveApiRequest; -typedef struct _PublishingRajceTransactionPrivate PublishingRajceTransactionPrivate; -typedef struct _PublishingRajceSessionLoginTransactionPrivate PublishingRajceSessionLoginTransactionPrivate; -#define _publishing_rajce_live_api_request_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rajce_live_api_request_unref (var), NULL))) -typedef struct _PublishingRajceGetAlbumsTransactionPrivate PublishingRajceGetAlbumsTransactionPrivate; -typedef struct _PublishingRajceCreateAlbumTransactionPrivate PublishingRajceCreateAlbumTransactionPrivate; -typedef struct _PublishingRajceOpenAlbumTransactionPrivate PublishingRajceOpenAlbumTransactionPrivate; -typedef struct _PublishingRajceGetAlbumUrlTransactionPrivate PublishingRajceGetAlbumUrlTransactionPrivate; -typedef struct _PublishingRajceCloseAlbumTransactionPrivate PublishingRajceCloseAlbumTransactionPrivate; - -#define PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION (publishing_rajce_get_categories_transaction_get_type ()) -#define PUBLISHING_RAJCE_GET_CATEGORIES_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION, PublishingRajceGetCategoriesTransaction)) -#define PUBLISHING_RAJCE_GET_CATEGORIES_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION, PublishingRajceGetCategoriesTransactionClass)) -#define PUBLISHING_RAJCE_IS_GET_CATEGORIES_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION)) -#define PUBLISHING_RAJCE_IS_GET_CATEGORIES_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION)) -#define PUBLISHING_RAJCE_GET_CATEGORIES_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION, PublishingRajceGetCategoriesTransactionClass)) - -typedef struct _PublishingRajceGetCategoriesTransaction PublishingRajceGetCategoriesTransaction; -typedef struct _PublishingRajceGetCategoriesTransactionClass PublishingRajceGetCategoriesTransactionClass; -typedef struct _PublishingRajceGetCategoriesTransactionPrivate PublishingRajceGetCategoriesTransactionPrivate; -typedef struct _PublishingRajceAddPhotoTransactionPrivate PublishingRajceAddPhotoTransactionPrivate; -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _RajceService { - GObject parent_instance; - RajceServicePrivate * priv; -}; - -struct _RajceServiceClass { - GObjectClass parent_class; -}; - -struct _PublishingRajceRajcePublisher { - GObject parent_instance; - PublishingRajceRajcePublisherPrivate * priv; -}; - -struct _PublishingRajceRajcePublisherClass { - GObjectClass parent_class; -}; - -struct _PublishingRajceRajcePublisherPrivate { - SpitPublishingPluginHost* host; - SpitPublishingProgressCallback progress_reporter; - gpointer progress_reporter_target; - GDestroyNotify progress_reporter_target_destroy_notify; - SpitPublishingService* service; - gboolean running; - PublishingRajceSession* session; - PublishingRajceAlbum** albums; - gint albums_length1; - gint _albums_size_; - PublishingRajcePublishingParameters* parameters; - SpitPublishingPublisherMediaType media_type; -}; - -typedef enum { - PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO, - PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER -} PublishingRajceAuthenticationPaneMode; - -struct _PublishingRajcePublishingParameters { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRajcePublishingParametersPrivate * priv; - gchar* album_name; - gboolean* album_hidden; - gint* album_id; -}; - -struct _PublishingRajcePublishingParametersClass { - GTypeClass parent_class; - void (*finalize) (PublishingRajcePublishingParameters *self); -}; - -struct _PublishingRajceAlbum { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRajceAlbumPrivate * priv; - gint id; - gchar* albumName; - gchar* url; - gchar* thumbUrl; - gchar* createDate; - gchar* updateDate; - gboolean hidden; - gboolean secure; - gint photoCount; -}; - -struct _PublishingRajceAlbumClass { - GTypeClass parent_class; - void (*finalize) (PublishingRajceAlbum *self); -}; - -struct _PublishingRajceParamSpecAlbum { - GParamSpec parent_instance; -}; - -struct _PublishingRajceUploader { - PublishingRESTSupportBatchUploader parent_instance; - PublishingRajceUploaderPrivate * priv; -}; - -struct _PublishingRajceUploaderClass { - PublishingRESTSupportBatchUploaderClass parent_class; -}; - -struct _PublishingRajceUploaderPrivate { - PublishingRajcePublishingParameters* parameters; - gchar* url; -}; - -struct _PublishingRajceAuthenticationPane { - GObject parent_instance; - PublishingRajceAuthenticationPanePrivate * priv; -}; - -struct _PublishingRajceAuthenticationPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingRajceAuthenticationPanePrivate { - GtkBox* pane_widget; - GtkBuilder* builder; - GtkEntry* username_entry; - GtkEntry* password_entry; - GtkCheckButton* remember_checkbutton; - GtkButton* login_button; - gboolean crypt; -}; - -struct _PublishingRajcePublishingOptionsPane { - GObject parent_instance; - PublishingRajcePublishingOptionsPanePrivate * priv; -}; - -struct _PublishingRajcePublishingOptionsPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingRajcePublishingOptionsPanePrivate { - PublishingRajceRajcePublisher* publisher; - PublishingRajceAlbum** albums; - gint albums_length1; - gint _albums_size_; - gchar* username; - GtkBuilder* builder; - GtkBox* pane_widget; - GtkLabel* login_identity_label; - GtkLabel* publish_to_label; - GtkRadioButton* use_existing_radio; - GtkComboBoxText* existing_albums_combo; - GtkRadioButton* create_new_radio; - GtkEntry* new_album_entry; - GtkCheckButton* hide_check; - GtkCheckButton* show_check; - GtkButton* publish_button; - GtkButton* logout_button; -}; - -struct _PublishingRajceParamSpecPublishingParameters { - GParamSpec parent_instance; -}; - -struct _PublishingRajceSession { - PublishingRESTSupportSession parent_instance; - PublishingRajceSessionPrivate * priv; -}; - -struct _PublishingRajceSessionClass { - PublishingRESTSupportSessionClass parent_class; -}; - -struct _PublishingRajceSessionPrivate { - gchar* usertoken; - gchar* albumtoken; - gchar* albumticket; - gchar* username; - gint* userid; - gint* maxsize; - gint* quality; -}; - -struct _PublishingRajceArgItem { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRajceArgItemPrivate * priv; - gchar* key; - gchar* val; - PublishingRajceArgItem** children; - gint children_length1; - gint _children_size_; -}; - -struct _PublishingRajceArgItemClass { - GTypeClass parent_class; - void (*finalize) (PublishingRajceArgItem *self); -}; - -struct _PublishingRajceParamSpecArgItem { - GParamSpec parent_instance; -}; - -struct _PublishingRajceLiveApiRequest { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingRajceLiveApiRequestPrivate * priv; -}; - -struct _PublishingRajceLiveApiRequestClass { - GTypeClass parent_class; - void (*finalize) (PublishingRajceLiveApiRequest *self); -}; - -struct _PublishingRajceLiveApiRequestPrivate { - PublishingRajceArgItem** _params; - gint _params_length1; - gint __params_size_; - gchar* _cmd; -}; - -struct _PublishingRajceParamSpecLiveApiRequest { - GParamSpec parent_instance; -}; - -struct _PublishingRajceTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingRajceTransactionPrivate * priv; -}; - -struct _PublishingRajceTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingRajceSessionLoginTransaction { - PublishingRajceTransaction parent_instance; - PublishingRajceSessionLoginTransactionPrivate * priv; -}; - -struct _PublishingRajceSessionLoginTransactionClass { - PublishingRajceTransactionClass parent_class; -}; - -struct _PublishingRajceGetAlbumsTransaction { - PublishingRajceTransaction parent_instance; - PublishingRajceGetAlbumsTransactionPrivate * priv; -}; - -struct _PublishingRajceGetAlbumsTransactionClass { - PublishingRajceTransactionClass parent_class; -}; - -struct _PublishingRajceCreateAlbumTransaction { - PublishingRajceTransaction parent_instance; - PublishingRajceCreateAlbumTransactionPrivate * priv; -}; - -struct _PublishingRajceCreateAlbumTransactionClass { - PublishingRajceTransactionClass parent_class; -}; - -struct _PublishingRajceOpenAlbumTransaction { - PublishingRajceTransaction parent_instance; - PublishingRajceOpenAlbumTransactionPrivate * priv; -}; - -struct _PublishingRajceOpenAlbumTransactionClass { - PublishingRajceTransactionClass parent_class; -}; - -struct _PublishingRajceGetAlbumUrlTransaction { - PublishingRajceTransaction parent_instance; - PublishingRajceGetAlbumUrlTransactionPrivate * priv; -}; - -struct _PublishingRajceGetAlbumUrlTransactionClass { - PublishingRajceTransactionClass parent_class; -}; - -struct _PublishingRajceCloseAlbumTransaction { - PublishingRajceTransaction parent_instance; - PublishingRajceCloseAlbumTransactionPrivate * priv; -}; - -struct _PublishingRajceCloseAlbumTransactionClass { - PublishingRajceTransactionClass parent_class; -}; - -struct _PublishingRajceGetCategoriesTransaction { - PublishingRajceTransaction parent_instance; - PublishingRajceGetCategoriesTransactionPrivate * priv; -}; - -struct _PublishingRajceGetCategoriesTransactionClass { - PublishingRajceTransactionClass parent_class; -}; - -struct _PublishingRajceAddPhotoTransaction { - PublishingRESTSupportUploadTransaction parent_instance; - PublishingRajceAddPhotoTransactionPrivate * priv; -}; - -struct _PublishingRajceAddPhotoTransactionClass { - PublishingRESTSupportUploadTransactionClass parent_class; -}; - -struct _PublishingRajceAddPhotoTransactionPrivate { - PublishingRajcePublishingParameters* parameters; -}; - - -static gpointer rajce_service_parent_class = NULL; -static GdkPixbuf** rajce_service_icon_pixbuf_set; -static gint rajce_service_icon_pixbuf_set_length1; -static GdkPixbuf** rajce_service_icon_pixbuf_set = NULL; -static gint rajce_service_icon_pixbuf_set_length1 = 0; -static gint _rajce_service_icon_pixbuf_set_size_ = 0; -static SpitPluggableIface * rajce_service_spit_pluggable_parent_iface = NULL; -static SpitPublishingServiceIface * rajce_service_spit_publishing_service_parent_iface = NULL; -static gpointer publishing_rajce_rajce_publisher_parent_class = NULL; -static SpitPublishingPublisherIface * publishing_rajce_rajce_publisher_spit_publishing_publisher_parent_iface = NULL; -static gpointer publishing_rajce_album_parent_class = NULL; -static gpointer publishing_rajce_uploader_parent_class = NULL; -static gpointer publishing_rajce_authentication_pane_parent_class = NULL; -static gchar* publishing_rajce_authentication_pane_INTRO_MESSAGE; -static gchar* publishing_rajce_authentication_pane_INTRO_MESSAGE = NULL; -static gchar* publishing_rajce_authentication_pane_FAILED_RETRY_USER_MESSAGE; -static gchar* publishing_rajce_authentication_pane_FAILED_RETRY_USER_MESSAGE = NULL; -static SpitPublishingDialogPaneIface * publishing_rajce_authentication_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_rajce_publishing_options_pane_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_rajce_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_rajce_publishing_parameters_parent_class = NULL; -static gpointer publishing_rajce_session_parent_class = NULL; -static gpointer publishing_rajce_arg_item_parent_class = NULL; -static gpointer publishing_rajce_live_api_request_parent_class = NULL; -static gpointer publishing_rajce_transaction_parent_class = NULL; -static gpointer publishing_rajce_session_login_transaction_parent_class = NULL; -static gpointer publishing_rajce_get_albums_transaction_parent_class = NULL; -static gpointer publishing_rajce_create_album_transaction_parent_class = NULL; -static gpointer publishing_rajce_open_album_transaction_parent_class = NULL; -static gpointer publishing_rajce_get_album_url_transaction_parent_class = NULL; -static gpointer publishing_rajce_close_album_transaction_parent_class = NULL; -static gpointer publishing_rajce_get_categories_transaction_parent_class = NULL; -static gpointer publishing_rajce_add_photo_transaction_parent_class = NULL; - -GType rajce_service_get_type (void) G_GNUC_CONST; -#define RAJCE_SERVICE_ICON_FILENAME "rajce.png" -RajceService* rajce_service_new (GFile* resource_directory); -RajceService* rajce_service_construct (GType object_type, - GFile* resource_directory); -static gint rajce_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -static const gchar* rajce_service_real_get_id (SpitPluggable* base); -static const gchar* rajce_service_real_get_pluggable_name (SpitPluggable* base); -static void rajce_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup4 (GdkPixbuf** self, - int length); -static SpitPublishingPublisher* rajce_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host); -PublishingRajceRajcePublisher* publishing_rajce_rajce_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host); -PublishingRajceRajcePublisher* publishing_rajce_rajce_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host); -GType publishing_rajce_rajce_publisher_get_type (void) G_GNUC_CONST; -static SpitPublishingPublisherMediaType rajce_service_real_get_supported_media (SpitPublishingService* base); -static void rajce_service_real_activation (SpitPluggable* base, - gboolean enabled); -static void rajce_service_finalize (GObject * obj); -GType publishing_rajce_session_get_type (void) G_GNUC_CONST; -gpointer publishing_rajce_album_ref (gpointer instance); -void publishing_rajce_album_unref (gpointer instance); -GParamSpec* publishing_rajce_param_spec_album (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rajce_value_set_album (GValue* value, - gpointer v_object); -void publishing_rajce_value_take_album (GValue* value, - gpointer v_object); -gpointer publishing_rajce_value_get_album (const GValue* value); -GType publishing_rajce_album_get_type (void) G_GNUC_CONST; -gpointer publishing_rajce_publishing_parameters_ref (gpointer instance); -void publishing_rajce_publishing_parameters_unref (gpointer instance); -GParamSpec* publishing_rajce_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rajce_value_set_publishing_parameters (GValue* value, - gpointer v_object); -void publishing_rajce_value_take_publishing_parameters (GValue* value, - gpointer v_object); -gpointer publishing_rajce_value_get_publishing_parameters (const GValue* value); -GType publishing_rajce_publishing_parameters_get_type (void) G_GNUC_CONST; -#define PUBLISHING_RAJCE_RAJCE_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisherPrivate)) -PublishingRajceSession* publishing_rajce_session_new (void); -PublishingRajceSession* publishing_rajce_session_construct (GType object_type); -static gchar* publishing_rajce_rajce_publisher_get_rajce_url (PublishingRajceRajcePublisher* self); -static SpitPublishingService* publishing_rajce_rajce_publisher_real_get_service (SpitPublishingPublisher* base); -SpitPublishingPluginHost* publishing_rajce_rajce_publisher_get_host (PublishingRajceRajcePublisher* self); -static gboolean publishing_rajce_rajce_publisher_real_is_running (SpitPublishingPublisher* base); -static void publishing_rajce_rajce_publisher_real_start (SpitPublishingPublisher* base); -static void publishing_rajce_rajce_publisher_do_fetch_albums (PublishingRajceRajcePublisher* self); -gchar* publishing_rajce_rajce_publisher_get_username (PublishingRajceRajcePublisher* self); -gchar* publishing_rajce_rajce_publisher_get_token (PublishingRajceRajcePublisher* self); -gboolean publishing_rajce_rajce_publisher_get_remember (PublishingRajceRajcePublisher* self); -static gboolean* _bool_dup (gboolean* self); -static void publishing_rajce_rajce_publisher_do_network_login (PublishingRajceRajcePublisher* self, - const gchar* username, - const gchar* token, - gboolean remember); -GType publishing_rajce_authentication_pane_mode_get_type (void) G_GNUC_CONST; -static void publishing_rajce_rajce_publisher_do_show_authentication_pane (PublishingRajceRajcePublisher* self, - PublishingRajceAuthenticationPaneMode mode); -static void publishing_rajce_rajce_publisher_real_stop (SpitPublishingPublisher* base); -gchar* publishing_rajce_rajce_publisher_get_url (PublishingRajceRajcePublisher* self); -static void publishing_rajce_rajce_publisher_set_username (PublishingRajceRajcePublisher* self, - const gchar* username); -static void publishing_rajce_rajce_publisher_set_token (PublishingRajceRajcePublisher* self, - const gchar* token); -static void publishing_rajce_rajce_publisher_set_remember (PublishingRajceRajcePublisher* self, - gboolean remember); -gboolean publishing_rajce_rajce_publisher_get_hide_album (PublishingRajceRajcePublisher* self); -void publishing_rajce_rajce_publisher_set_hide_album (PublishingRajceRajcePublisher* self, - gboolean hide_album); -gboolean publishing_rajce_rajce_publisher_get_show_album (PublishingRajceRajcePublisher* self); -void publishing_rajce_rajce_publisher_set_show_album (PublishingRajceRajcePublisher* self, - gboolean show_album); -GType publishing_rajce_authentication_pane_get_type (void) G_GNUC_CONST; -PublishingRajceAuthenticationPane* publishing_rajce_authentication_pane_new (PublishingRajceRajcePublisher* publisher, - PublishingRajceAuthenticationPaneMode mode); -PublishingRajceAuthenticationPane* publishing_rajce_authentication_pane_construct (GType object_type, - PublishingRajceRajcePublisher* publisher, - PublishingRajceAuthenticationPaneMode mode); -static void publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked (PublishingRajceRajcePublisher* self, - const gchar* username, - const gchar* token, - gboolean remember); -static void _publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked_publishing_rajce_authentication_pane_login (PublishingRajceAuthenticationPane* _sender, - const gchar* user, - const gchar* token, - gboolean remember, - gpointer self); -GtkWidget* publishing_rajce_authentication_pane_get_default_widget (PublishingRajceAuthenticationPane* self); -GType publishing_rajce_transaction_get_type (void) G_GNUC_CONST; -GType publishing_rajce_session_login_transaction_get_type (void) G_GNUC_CONST; -PublishingRajceSessionLoginTransaction* publishing_rajce_session_login_transaction_new (PublishingRajceSession* session, - const gchar* url, - const gchar* username, - const gchar* token); -PublishingRajceSessionLoginTransaction* publishing_rajce_session_login_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - const gchar* username, - const gchar* token); -static void publishing_rajce_rajce_publisher_on_login_network_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_rajce_rajce_publisher_on_login_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_rajce_rajce_publisher_on_login_network_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_rajce_rajce_publisher_on_login_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_rajce_rajce_publisher_do_show_error (PublishingRajceRajcePublisher* self, - GError* e); -gchar* publishing_rajce_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc); -static gchar* _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self); -void publishing_rajce_session_authenticate (PublishingRajceSession* self, - const gchar* token, - const gchar* name, - gint id, - gint maxsize, - gint quality); -GType publishing_rajce_get_albums_transaction_get_type (void) G_GNUC_CONST; -PublishingRajceGetAlbumsTransaction* publishing_rajce_get_albums_transaction_new (PublishingRajceSession* session, - const gchar* url); -PublishingRajceGetAlbumsTransaction* publishing_rajce_get_albums_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url); -static void publishing_rajce_rajce_publisher_on_albums_fetch_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_rajce_rajce_publisher_on_albums_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_rajce_rajce_publisher_on_albums_fetch_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_rajce_rajce_publisher_on_albums_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -PublishingRajceAlbum* publishing_rajce_album_new (gint id, - const gchar* albumName, - const gchar* url, - const gchar* thumbUrl, - const gchar* createDate, - const gchar* updateDate, - gboolean hidden, - gboolean secure, - gint photoCount); -PublishingRajceAlbum* publishing_rajce_album_construct (GType object_type, - gint id, - const gchar* albumName, - const gchar* url, - const gchar* thumbUrl, - const gchar* createDate, - const gchar* updateDate, - gboolean hidden, - gboolean secure, - gint photoCount); -gint publishing_rajce_album_compare_albums (PublishingRajceAlbum* a, - PublishingRajceAlbum* b); -static gint _publishing_rajce_album_compare_albums_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -void publishing_rajce_session_set_usertoken (PublishingRajceSession* self, - const gchar* usertoken); -static void publishing_rajce_rajce_publisher_do_show_publishing_options_pane (PublishingRajceRajcePublisher* self); -static void publishing_rajce_rajce_publisher_on_network_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -GType publishing_rajce_publishing_options_pane_get_type (void) G_GNUC_CONST; -gchar* publishing_rajce_session_get_username (PublishingRajceSession* self); -PublishingRajcePublishingOptionsPane* publishing_rajce_publishing_options_pane_new (PublishingRajceRajcePublisher* publisher, - const gchar* username, - PublishingRajceAlbum** albums, - int albums_length1); -PublishingRajcePublishingOptionsPane* publishing_rajce_publishing_options_pane_construct (GType object_type, - PublishingRajceRajcePublisher* publisher, - const gchar* username, - PublishingRajceAlbum** albums, - int albums_length1); -static void publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked (PublishingRajceRajcePublisher* self); -static void _publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked_publishing_rajce_publishing_options_pane_logout (PublishingRajcePublishingOptionsPane* _sender, - gpointer self); -static void publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked (PublishingRajceRajcePublisher* self, - PublishingRajcePublishingParameters* parameters); -static void _publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked_publishing_rajce_publishing_options_pane_publish (PublishingRajcePublishingOptionsPane* _sender, - PublishingRajcePublishingParameters* parameters, - gpointer self); -GtkWidget* publishing_rajce_publishing_options_pane_get_default_widget (PublishingRajcePublishingOptionsPane* self); -void publishing_rajce_session_deauthenticate (PublishingRajceSession* self); -static void publishing_rajce_rajce_publisher_do_begin_upload (PublishingRajceRajcePublisher* self); -static gboolean _int_equal (const gint * s1, - const gint * s2); -GType publishing_rajce_create_album_transaction_get_type (void) G_GNUC_CONST; -PublishingRajceCreateAlbumTransaction* publishing_rajce_create_album_transaction_new (PublishingRajceSession* session, - const gchar* url, - const gchar* albumName, - gboolean hidden); -PublishingRajceCreateAlbumTransaction* publishing_rajce_create_album_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - const gchar* albumName, - gboolean hidden); -static void publishing_rajce_rajce_publisher_on_create_album_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_rajce_rajce_publisher_on_create_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_rajce_rajce_publisher_on_create_album_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_rajce_rajce_publisher_on_create_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -GType publishing_rajce_open_album_transaction_get_type (void) G_GNUC_CONST; -PublishingRajceOpenAlbumTransaction* publishing_rajce_open_album_transaction_new (PublishingRajceSession* session, - const gchar* url, - gint albumID); -PublishingRajceOpenAlbumTransaction* publishing_rajce_open_album_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - gint albumID); -static void publishing_rajce_rajce_publisher_on_open_album_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_rajce_rajce_publisher_on_open_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_rajce_rajce_publisher_on_open_album_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_rajce_rajce_publisher_on_open_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static gint* _int_dup (gint* self); -void publishing_rajce_session_set_albumtoken (PublishingRajceSession* self, - const gchar* albumtoken); -static void publishing_rajce_rajce_publisher_do_upload_photos (PublishingRajceRajcePublisher* self); -gint publishing_rajce_session_get_maxsize (PublishingRajceSession* self); -GType publishing_rajce_uploader_get_type (void) G_GNUC_CONST; -PublishingRajceUploader* publishing_rajce_uploader_new (PublishingRajceSession* session, - const gchar* url, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingRajcePublishingParameters* parameters); -PublishingRajceUploader* publishing_rajce_uploader_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingRajcePublishingParameters* parameters); -static void publishing_rajce_rajce_publisher_on_upload_photos_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published); -static void _publishing_rajce_rajce_publisher_on_upload_photos_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self); -static void publishing_rajce_rajce_publisher_on_upload_photos_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err); -static void _publishing_rajce_rajce_publisher_on_upload_photos_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self); -static void publishing_rajce_rajce_publisher_on_upload_photos_status_updated (PublishingRajceRajcePublisher* self, - gint file_number, - gdouble completed_fraction); -static void _publishing_rajce_rajce_publisher_on_upload_photos_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -static void publishing_rajce_rajce_publisher_do_end_upload (PublishingRajceRajcePublisher* self); -static void publishing_rajce_rajce_publisher_do_get_album_url (PublishingRajceRajcePublisher* self); -static void publishing_rajce_rajce_publisher_do_close_album (PublishingRajceRajcePublisher* self); -GType publishing_rajce_get_album_url_transaction_get_type (void) G_GNUC_CONST; -PublishingRajceGetAlbumUrlTransaction* publishing_rajce_get_album_url_transaction_new (PublishingRajceSession* session, - const gchar* url); -PublishingRajceGetAlbumUrlTransaction* publishing_rajce_get_album_url_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url); -static void publishing_rajce_rajce_publisher_on_get_album_url_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_rajce_rajce_publisher_on_get_album_url_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_rajce_rajce_publisher_on_get_album_url_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_rajce_rajce_publisher_on_get_album_url_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -void publishing_rajce_session_set_albumticket (PublishingRajceSession* self, - const gchar* albumticket); -GType publishing_rajce_close_album_transaction_get_type (void) G_GNUC_CONST; -PublishingRajceCloseAlbumTransaction* publishing_rajce_close_album_transaction_new (PublishingRajceSession* session, - const gchar* url); -PublishingRajceCloseAlbumTransaction* publishing_rajce_close_album_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url); -static void publishing_rajce_rajce_publisher_on_close_album_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_rajce_rajce_publisher_on_close_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_rajce_rajce_publisher_on_close_album_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_rajce_rajce_publisher_on_close_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_rajce_rajce_publisher_do_show_success_pane (PublishingRajceRajcePublisher* self); -gchar* publishing_rajce_session_get_albumticket (PublishingRajceSession* self); -static void publishing_rajce_rajce_publisher_do_show_error_message (PublishingRajceRajcePublisher* self, - const gchar* message); -static void publishing_rajce_rajce_publisher_finalize (GObject * obj); -static void publishing_rajce_album_finalize (PublishingRajceAlbum * obj); -#define PUBLISHING_RAJCE_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploaderPrivate)) -static PublishingRESTSupportTransaction* publishing_rajce_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable); -PublishingRajceAddPhotoTransaction* publishing_rajce_add_photo_transaction_new (PublishingRajceSession* session, - const gchar* url, - PublishingRajcePublishingParameters* parameters, - SpitPublishingPublishable* publishable); -PublishingRajceAddPhotoTransaction* publishing_rajce_add_photo_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - PublishingRajcePublishingParameters* parameters, - SpitPublishingPublishable* publishable); -GType publishing_rajce_add_photo_transaction_get_type (void) G_GNUC_CONST; -static void publishing_rajce_uploader_finalize (PublishingRESTSupportBatchUploader * obj); -#define PUBLISHING_RAJCE_AUTHENTICATION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPanePrivate)) -static void publishing_rajce_authentication_pane_on_user_changed (PublishingRajceAuthenticationPane* self); -static void _publishing_rajce_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_rajce_authentication_pane_on_password_changed (PublishingRajceAuthenticationPane* self); -static void _publishing_rajce_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_rajce_authentication_pane_on_login_button_clicked (PublishingRajceAuthenticationPane* self); -static void _publishing_rajce_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_rajce_authentication_pane_update_login_button_sensitivity (PublishingRajceAuthenticationPane* self); -static GtkWidget* publishing_rajce_authentication_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_rajce_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_rajce_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void publishing_rajce_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void g_cclosure_user_marshal_VOID__STRING_STRING_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_rajce_authentication_pane_finalize (GObject * obj); -#define PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPanePrivate)) -static PublishingRajceAlbum** _vala_array_dup5 (PublishingRajceAlbum** self, - int length); -static void publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked (PublishingRajcePublishingOptionsPane* self); -static void _publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_rajce_publishing_options_pane_on_create_new_radio_clicked (PublishingRajcePublishingOptionsPane* self); -static void _publishing_rajce_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_rajce_publishing_options_pane_on_new_album_entry_changed (PublishingRajcePublishingOptionsPane* self); -static void _publishing_rajce_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_rajce_publishing_options_pane_on_logout_clicked (PublishingRajcePublishingOptionsPane* self); -static void _publishing_rajce_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_rajce_publishing_options_pane_on_publish_clicked (PublishingRajcePublishingOptionsPane* self); -static void _publishing_rajce_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_new_to_new_album (const gchar* album_name, - gboolean album_hidden); -PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_construct_to_new_album (GType object_type, - const gchar* album_name, - gboolean album_hidden); -PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_new_to_existing_album (const gchar* album_name, - gint album_id); -PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_construct_to_existing_album (GType object_type, - const gchar* album_name, - gint album_id); -static void publishing_rajce_publishing_options_pane_update_publish_button_sensitivity (PublishingRajcePublishingOptionsPane* self); -void publishing_rajce_publishing_options_pane_installed (PublishingRajcePublishingOptionsPane* self); -void publishing_rajce_publishing_options_pane_notify_publish (PublishingRajcePublishingOptionsPane* self, - PublishingRajcePublishingParameters* parameters); -void publishing_rajce_publishing_options_pane_notify_logout (PublishingRajcePublishingOptionsPane* self); -static GtkWidget* publishing_rajce_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_rajce_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_rajce_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void _publishing_rajce_publishing_options_pane_notify_publish_publishing_rajce_publishing_options_pane_publish (PublishingRajcePublishingOptionsPane* _sender, - PublishingRajcePublishingParameters* parameters, - gpointer self); -static void _publishing_rajce_publishing_options_pane_notify_logout_publishing_rajce_publishing_options_pane_logout (PublishingRajcePublishingOptionsPane* _sender, - gpointer self); -static void publishing_rajce_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void g_cclosure_user_marshal_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_rajce_publishing_options_pane_finalize (GObject * obj); -static PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_new (void); -static PublishingRajcePublishingParameters* publishing_rajce_publishing_parameters_construct (GType object_type); -static void publishing_rajce_publishing_parameters_finalize (PublishingRajcePublishingParameters * obj); -#define PUBLISHING_RAJCE_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSessionPrivate)) -static gboolean publishing_rajce_session_real_is_authenticated (PublishingRESTSupportSession* base); -gchar* publishing_rajce_session_get_usertoken (PublishingRajceSession* self); -gchar* publishing_rajce_session_get_albumtoken (PublishingRajceSession* self); -static void publishing_rajce_session_finalize (PublishingRESTSupportSession * obj); -gpointer publishing_rajce_arg_item_ref (gpointer instance); -void publishing_rajce_arg_item_unref (gpointer instance); -GParamSpec* publishing_rajce_param_spec_arg_item (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rajce_value_set_arg_item (GValue* value, - gpointer v_object); -void publishing_rajce_value_take_arg_item (GValue* value, - gpointer v_object); -gpointer publishing_rajce_value_get_arg_item (const GValue* value); -GType publishing_rajce_arg_item_get_type (void) G_GNUC_CONST; -PublishingRajceArgItem* publishing_rajce_arg_item_new (const gchar* k, - const gchar* v); -PublishingRajceArgItem* publishing_rajce_arg_item_construct (GType object_type, - const gchar* k, - const gchar* v); -void publishing_rajce_arg_item_AddChild (PublishingRajceArgItem* self, - PublishingRajceArgItem* child); -static void _vala_array_add6 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value); -void publishing_rajce_arg_item_AddChildren (PublishingRajceArgItem* self, - PublishingRajceArgItem** newchildren, - int newchildren_length1); -static void publishing_rajce_arg_item_finalize (PublishingRajceArgItem * obj); -gpointer publishing_rajce_live_api_request_ref (gpointer instance); -void publishing_rajce_live_api_request_unref (gpointer instance); -GParamSpec* publishing_rajce_param_spec_live_api_request (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_rajce_value_set_live_api_request (GValue* value, - gpointer v_object); -void publishing_rajce_value_take_live_api_request (GValue* value, - gpointer v_object); -gpointer publishing_rajce_value_get_live_api_request (const GValue* value); -GType publishing_rajce_live_api_request_get_type (void) G_GNUC_CONST; -#define PUBLISHING_RAJCE_LIVE_API_REQUEST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, PublishingRajceLiveApiRequestPrivate)) -PublishingRajceLiveApiRequest* publishing_rajce_live_api_request_new (const gchar* cmd); -PublishingRajceLiveApiRequest* publishing_rajce_live_api_request_construct (GType object_type, - const gchar* cmd); -void publishing_rajce_live_api_request_AddParam (PublishingRajceLiveApiRequest* self, - const gchar* name, - const gchar* val); -static void _vala_array_add7 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value); -void publishing_rajce_live_api_request_AddParamBool (PublishingRajceLiveApiRequest* self, - const gchar* name, - gboolean val); -void publishing_rajce_live_api_request_AddParamInt (PublishingRajceLiveApiRequest* self, - const gchar* name, - gint val); -void publishing_rajce_live_api_request_AddParamNode (PublishingRajceLiveApiRequest* self, - const gchar* name, - PublishingRajceArgItem** val, - int val_length1); -static void _vala_array_add8 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value); -gchar* publishing_rajce_live_api_request_Params2XmlString (PublishingRajceLiveApiRequest* self, - gboolean urlencode); -static void publishing_rajce_live_api_request_WriteParam (xmlNode* node, - PublishingRajceArgItem* arg); -static void publishing_rajce_live_api_request_finalize (PublishingRajceLiveApiRequest * obj); -PublishingRajceTransaction* publishing_rajce_transaction_new (PublishingRajceSession* session); -PublishingRajceTransaction* publishing_rajce_transaction_construct (GType object_type, - PublishingRajceSession* session); -static void _vala_array_add9 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value); -static void _vala_array_add10 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value); -static void _vala_array_add11 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value); -static void _vala_array_add12 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value); -static void _vala_array_add13 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value); -GType publishing_rajce_get_categories_transaction_get_type (void) G_GNUC_CONST; -PublishingRajceGetCategoriesTransaction* publishing_rajce_get_categories_transaction_new (PublishingRajceSession* session, - const gchar* url); -PublishingRajceGetCategoriesTransaction* publishing_rajce_get_categories_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url); -#define PUBLISHING_RAJCE_ADD_PHOTO_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, PublishingRajceAddPhotoTransactionPrivate)) -static void _g_free0_ (gpointer var); -static void publishing_rajce_add_photo_transaction_finalize (PublishingRESTSupportTransaction * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -RajceService* -rajce_service_construct (GType object_type, - GFile* resource_directory) -{ - RajceService * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (RajceService*) g_object_new (object_type, NULL); -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = rajce_service_icon_pixbuf_set; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0__length1 = rajce_service_icon_pixbuf_set_length1; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp0_ == NULL) { -#line 1158 "RajcePublishing.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" RAJCE_SERVICE_ICON_FILENAME, &_tmp1_); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - rajce_service_icon_pixbuf_set = (_vala_array_free (rajce_service_icon_pixbuf_set, rajce_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - rajce_service_icon_pixbuf_set = _tmp2_; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - rajce_service_icon_pixbuf_set_length1 = _tmp1_; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _rajce_service_icon_pixbuf_set_size_ = rajce_service_icon_pixbuf_set_length1; -#line 1171 "RajcePublishing.c" - } -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 1175 "RajcePublishing.c" -} - - -RajceService* -rajce_service_new (GFile* resource_directory) -{ -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return rajce_service_construct (TYPE_RAJCE_SERVICE, resource_directory); -#line 1184 "RajcePublishing.c" -} - - -static gint -rajce_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - RajceService * self; - gint result = 0; -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1201 "RajcePublishing.c" -} - - -static const gchar* -rajce_service_real_get_id (SpitPluggable* base) -{ - RajceService * self; - const gchar* result = NULL; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService); -#line 29 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = "org.yorba.shotwell.publishing.rajce"; -#line 29 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1216 "RajcePublishing.c" -} - - -static const gchar* -rajce_service_real_get_pluggable_name (SpitPluggable* base) -{ - RajceService * self; - const gchar* result = NULL; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = "Rajce"; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1231 "RajcePublishing.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self ? g_object_ref (self) : NULL; -#line 1240 "RajcePublishing.c" -} - - -static GdkPixbuf** -_vala_array_dup4 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - for (i = 0; i < length; i++) { -#line 1254 "RajcePublishing.c" - GdkPixbuf* _tmp0_; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result[i] = _tmp0_; -#line 1260 "RajcePublishing.c" - } -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1264 "RajcePublishing.c" -} - - -static void -rajce_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - RajceService * self; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GdkPixbuf** _tmp7_; - gint _tmp7__length1; - GdkPixbuf** _tmp8_; - gint _tmp8__length1; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (info != NULL); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup ("rajce.net developers"); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 ((*info).authors); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).authors = _tmp0_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (_ ("Copyright © 2013 rajce.net")); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 ((*info).copyright); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).copyright = _tmp1_; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 ((*info).translators); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).translators = _tmp2_; -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = g_strdup (_VERSION); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 ((*info).version); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).version = _tmp3_; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = g_strdup (RESOURCES_WEBSITE_NAME); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 ((*info).website_name); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).website_name = _tmp4_; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = g_strdup (RESOURCES_WEBSITE_URL); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 ((*info).website_url); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).website_url = _tmp5_; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).is_license_wordwrapped = FALSE; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = g_strdup (RESOURCES_LICENSE); -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 ((*info).license); -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).license = _tmp6_; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = rajce_service_icon_pixbuf_set; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7__length1 = rajce_service_icon_pixbuf_set_length1; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup4 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8__length1 = _tmp7__length1; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).icons = _tmp8_; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*info).icons_length1 = _tmp8__length1; -#line 1346 "RajcePublishing.c" -} - - -static SpitPublishingPublisher* -rajce_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - RajceService * self; - SpitPublishingPublisher* result = NULL; - PublishingRajceRajcePublisher* _tmp0_; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_rajce_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1367 "RajcePublishing.c" -} - - -static SpitPublishingPublisherMediaType -rajce_service_real_get_supported_media (SpitPublishingService* base) -{ - RajceService * self; - SpitPublishingPublisherMediaType result = 0; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1382 "RajcePublishing.c" -} - - -static void -rajce_service_real_activation (SpitPluggable* base, - gboolean enabled) -{ - RajceService * self; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAJCE_SERVICE, RajceService); -#line 1393 "RajcePublishing.c" -} - - -static void -rajce_service_class_init (RajceServiceClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - rajce_service_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_OBJECT_CLASS (klass)->finalize = rajce_service_finalize; -#line 1404 "RajcePublishing.c" -} - - -static void -rajce_service_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - rajce_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) rajce_service_real_get_pluggable_interface; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) rajce_service_real_get_id; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) rajce_service_real_get_pluggable_name; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) rajce_service_real_get_info; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) rajce_service_real_activation; -#line 1423 "RajcePublishing.c" -} - - -static void -rajce_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - rajce_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) rajce_service_real_create_publisher; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) rajce_service_real_get_supported_media; -#line 1436 "RajcePublishing.c" -} - - -static void -rajce_service_instance_init (RajceService * self) -{ -} - - -static void -rajce_service_finalize (GObject * obj) -{ - RajceService * self; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RAJCE_SERVICE, RajceService); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_OBJECT_CLASS (rajce_service_parent_class)->finalize (obj); -#line 1454 "RajcePublishing.c" -} - - -GType -rajce_service_get_type (void) -{ - static volatile gsize rajce_service_type_id__volatile = 0; - if (g_once_init_enter (&rajce_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (RajceServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rajce_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RajceService), 0, (GInstanceInitFunc) rajce_service_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) rajce_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) rajce_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType rajce_service_type_id; - rajce_service_type_id = g_type_register_static (G_TYPE_OBJECT, "RajceService", &g_define_type_info, 0); - g_type_add_interface_static (rajce_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (rajce_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info); - g_once_init_leave (&rajce_service_type_id__volatile, rajce_service_type_id); - } - return rajce_service_type_id__volatile; -} - - -PublishingRajceRajcePublisher* -publishing_rajce_rajce_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingRajceRajcePublisher * self = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingRajceSession* _tmp2_; - gint _tmp3_; - SpitPublishingPublishable** _tmp4_; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceRajcePublisher*) g_object_new (object_type, NULL); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:86: RajcePublisher created."); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _g_object_ref0 (service); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->service); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->service = _tmp0_; -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _g_object_ref0 (host); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->host); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->host = _tmp1_; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rajce_session_new (); -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->session = _tmp2_; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = spit_publishing_plugin_host_get_publishables (host, &_tmp3_); -#line 1515 "RajcePublishing.c" - { - SpitPublishingPublishable** p_collection = NULL; - gint p_collection_length1 = 0; - gint _p_collection_size_ = 0; - gint p_it = 0; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - p_collection = _tmp4_; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - p_collection_length1 = _tmp3_; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - for (p_it = 0; p_it < _tmp3_; p_it = p_it + 1) { -#line 1527 "RajcePublishing.c" - SpitPublishingPublishable* _tmp5_; - SpitPublishingPublishable* p = NULL; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _g_object_ref0 (p_collection[p_it]); -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - p = _tmp5_; -#line 1534 "RajcePublishing.c" - { - SpitPublishingPublisherMediaType _tmp6_; - SpitPublishingPublishable* _tmp7_; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = self->priv->media_type; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = p; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->media_type = _tmp6_ | spit_publishing_publishable_get_media_type (_tmp7_); -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (p); -#line 1546 "RajcePublishing.c" - } - } -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - p_collection = (_vala_array_free (p_collection, p_collection_length1, (GDestroyNotify) g_object_unref), NULL); -#line 1551 "RajcePublishing.c" - } -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 1555 "RajcePublishing.c" -} - - -PublishingRajceRajcePublisher* -publishing_rajce_rajce_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_rajce_publisher_construct (PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, service, host); -#line 1565 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_rajce_publisher_get_rajce_url (PublishingRajceRajcePublisher* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), NULL); -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup ("http://www.rajce.idnes.cz/liveAPI/index.php"); -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp0_; -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1582 "RajcePublishing.c" -} - - -static SpitPublishingService* -publishing_rajce_rajce_publisher_real_get_service (SpitPublishingPublisher* base) -{ - PublishingRajceRajcePublisher * self; - SpitPublishingService* result = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingService* _tmp1_; -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher); -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->service; -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1603 "RajcePublishing.c" -} - - -SpitPublishingPluginHost* -publishing_rajce_rajce_publisher_get_host (PublishingRajceRajcePublisher* self) -{ - SpitPublishingPluginHost* result = NULL; - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), NULL); -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1623 "RajcePublishing.c" -} - - -static gboolean -publishing_rajce_rajce_publisher_real_is_running (SpitPublishingPublisher* base) -{ - PublishingRajceRajcePublisher * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->running; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp0_; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1641 "RajcePublishing.c" -} - - -static gboolean* -_bool_dup (gboolean* self) -{ - gboolean* dup; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dup = g_new0 (gboolean, 1); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - memcpy (dup, self, sizeof (gboolean)); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return dup; -#line 1655 "RajcePublishing.c" -} - - -static gpointer -__bool_dup0 (gpointer self) -{ -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self ? _bool_dup (self) : NULL; -#line 1664 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_real_start (SpitPublishingPublisher* base) -{ - PublishingRajceRajcePublisher * self; - PublishingRajceSession* _tmp0_; -#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher); -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 1679 "RajcePublishing.c" - } -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:111: RajcePublisher: start"); -#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->running = TRUE; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->session; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 116 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:116: RajcePublisher: session is authenticated."); -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_fetch_albums (self); -#line 1693 "RajcePublishing.c" - } else { - gchar* persistent_username = NULL; - gchar* _tmp1_; - gchar* persistent_token = NULL; - gchar* _tmp2_; - gboolean* persistent_remember = NULL; - gboolean _tmp3_; - gboolean* _tmp4_; - gboolean _tmp5_ = FALSE; - const gchar* _tmp6_; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:121: RajcePublisher: session is not authenticated" \ -"."); -#line 122 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_rajce_publisher_get_username (self); -#line 122 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - persistent_username = _tmp1_; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rajce_rajce_publisher_get_token (self); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - persistent_token = _tmp2_; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = publishing_rajce_rajce_publisher_get_remember (self); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = __bool_dup0 (&_tmp3_); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - persistent_remember = _tmp4_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = persistent_username; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp6_ != NULL) { -#line 1724 "RajcePublishing.c" - const gchar* _tmp7_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = persistent_token; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp7_ != NULL; -#line 1730 "RajcePublishing.c" - } else { -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = FALSE; -#line 1734 "RajcePublishing.c" - } -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp5_) { -#line 1738 "RajcePublishing.c" - const gchar* _tmp8_; - const gchar* _tmp9_; - gboolean* _tmp10_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = persistent_username; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = persistent_token; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = persistent_remember; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_network_login (self, _tmp8_, _tmp9_, *_tmp10_); -#line 1750 "RajcePublishing.c" - } else { -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_authentication_pane (self, PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO); -#line 1754 "RajcePublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (persistent_remember); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (persistent_token); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (persistent_username); -#line 1762 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_rajce_publisher_real_stop (SpitPublishingPublisher* base) -{ - PublishingRajceRajcePublisher * self; -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher); -#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:134: RajcePublisher: stop"); -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->running = FALSE; -#line 1777 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_rajce_publisher_get_url (PublishingRajceRajcePublisher* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), NULL); -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_rajce_publisher_get_rajce_url (self); -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp0_; -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1794 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_rajce_publisher_get_username (PublishingRajceRajcePublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), NULL); -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", NULL); -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1814 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_set_username (PublishingRajceRajcePublisher* self, - const gchar* username) -{ - SpitPublishingPluginHost* _tmp0_; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (username != NULL); -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", username); -#line 1831 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_rajce_publisher_get_token (PublishingRajceRajcePublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), NULL); -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "token", NULL); -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1851 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_set_token (PublishingRajceRajcePublisher* self, - const gchar* token) -{ - SpitPublishingPluginHost* _tmp0_; -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "token", token); -#line 1866 "RajcePublishing.c" -} - - -gboolean -publishing_rajce_rajce_publisher_get_remember (PublishingRajceRajcePublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), FALSE); -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "remember", FALSE); -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1883 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_set_remember (PublishingRajceRajcePublisher* self, - gboolean remember) -{ - SpitPublishingPluginHost* _tmp0_; -#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "remember", remember); -#line 1898 "RajcePublishing.c" -} - - -gboolean -publishing_rajce_rajce_publisher_get_hide_album (PublishingRajceRajcePublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), FALSE); -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "hide-album", FALSE); -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1915 "RajcePublishing.c" -} - - -void -publishing_rajce_rajce_publisher_set_hide_album (PublishingRajceRajcePublisher* self, - gboolean hide_album) -{ - SpitPublishingPluginHost* _tmp0_; -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "hide-album", hide_album); -#line 1930 "RajcePublishing.c" -} - - -gboolean -publishing_rajce_rajce_publisher_get_show_album (PublishingRajceRajcePublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self), FALSE); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "show-album", TRUE); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 1947 "RajcePublishing.c" -} - - -void -publishing_rajce_rajce_publisher_set_show_album (PublishingRajceRajcePublisher* self, - gboolean show_album) -{ - SpitPublishingPluginHost* _tmp0_; -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "show-album", show_album); -#line 1962 "RajcePublishing.c" -} - - -/** - * Action that shows the authentication pane. - */ -static void -_publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked_publishing_rajce_authentication_pane_login (PublishingRajceAuthenticationPane* _sender, - const gchar* user, - const gchar* token, - gboolean remember, - gpointer self) -{ -#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked ((PublishingRajceRajcePublisher*) self, user, token, remember); -#line 1978 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_do_show_authentication_pane (PublishingRajceRajcePublisher* self, - PublishingRajceAuthenticationPaneMode mode) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingRajceAuthenticationPane* authentication_pane = NULL; - PublishingRajceAuthenticationPane* _tmp1_; - SpitPublishingPluginHost* _tmp2_; - SpitPublishingPluginHost* _tmp3_; - GtkWidget* _tmp4_; - GtkWidget* _tmp5_; -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:163: ACTION: installing authentication pane"); -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_authentication_pane_new (self, mode); -#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - authentication_pane = _tmp1_; -#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (authentication_pane, "login", (GCallback) _publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked_publishing_rajce_authentication_pane_login, self, 0); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = self->priv->host; -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (authentication_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->host; -#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rajce_authentication_pane_get_default_widget (authentication_pane); -#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp3_, _tmp5_); -#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (_tmp5_); -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (authentication_pane); -#line 2023 "RajcePublishing.c" -} - - -/** - * Event triggered when the login button in the authentication panel is clicked. - */ -static void -publishing_rajce_rajce_publisher_on_authentication_pane_login_clicked (PublishingRajceRajcePublisher* self, - const gchar* username, - const gchar* token, - gboolean remember) -{ - gboolean _tmp0_; -#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (username != NULL); -#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (token != NULL); -#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:177: EVENT: on_authentication_pane_login_clicked"); -#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->running; -#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!_tmp0_) { -#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2051 "RajcePublishing.c" - } -#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_network_login (self, username, token, remember); -#line 2055 "RajcePublishing.c" -} - - -/** - * Action to perform a network login to a Rajce service. - */ -static void -_publishing_rajce_rajce_publisher_on_login_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_login_network_error ((PublishingRajceRajcePublisher*) self, _sender, err); -#line 2069 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_login_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_login_network_complete ((PublishingRajceRajcePublisher*) self, _sender); -#line 2079 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_do_network_login (PublishingRajceRajcePublisher* self, - const gchar* username, - const gchar* token, - gboolean remember) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - const gchar* _tmp2_ = NULL; - PublishingRajceSessionLoginTransaction* login_trans = NULL; - PublishingRajceSession* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - PublishingRajceSessionLoginTransaction* _tmp6_; - PublishingRajceSessionLoginTransaction* _tmp7_; - GError * _inner_error_ = NULL; -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (username != NULL); -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (token != NULL); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:188: ACTION: logging in"); -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->host; -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_install_login_wait_pane (_tmp1_); -#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_set_remember (self, remember); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_set_username (self, username); -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (remember) { -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = token; -#line 2123 "RajcePublishing.c" - } else { -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = NULL; -#line 2127 "RajcePublishing.c" - } -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_set_token (self, _tmp2_); -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->session; -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rajce_rajce_publisher_get_url (self); -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = publishing_rajce_session_login_transaction_new (_tmp3_, _tmp5_, username, token); -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = _tmp6_; -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp5_); -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - login_trans = _tmp7_; -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self, 0); -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self, 0); -#line 2149 "RajcePublishing.c" - { -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2157 "RajcePublishing.c" - goto __catch16_spit_publishing_publishing_error; - } -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (login_trans); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2168 "RajcePublishing.c" - } - } - goto __finally16; - __catch16_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp8_; -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:203: ERROR: do_network_login"); -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = err; -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp8_); -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 2188 "RajcePublishing.c" - } - __finally16: -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (login_trans); -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2201 "RajcePublishing.c" - } -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (login_trans); -#line 2205 "RajcePublishing.c" -} - - -/** - * Event triggered when the network login action is complete and successful. - */ -static gchar* -_publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self) -{ - gchar* result; - result = publishing_rajce_transaction_validate_xml (doc); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 2220 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_on_login_network_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - GError * _inner_error_ = NULL; -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:213: EVENT: on_login_network_complete"); -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self); -#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self); -#line 2245 "RajcePublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRESTSupportXmlDocument* _tmp4_; - PublishingRESTSupportXmlDocument* _tmp5_; - xmlNode* response = NULL; - PublishingRESTSupportXmlDocument* _tmp6_; - xmlNode* _tmp7_; - xmlNode* sessionToken = NULL; - PublishingRESTSupportXmlDocument* _tmp8_; - xmlNode* _tmp9_; - xmlNode* _tmp10_; - xmlNode* maxWidth = NULL; - PublishingRESTSupportXmlDocument* _tmp11_; - xmlNode* _tmp12_; - xmlNode* _tmp13_; - xmlNode* maxHeight = NULL; - PublishingRESTSupportXmlDocument* _tmp14_; - xmlNode* _tmp15_; - xmlNode* _tmp16_; - xmlNode* quality = NULL; - PublishingRESTSupportXmlDocument* _tmp17_; - xmlNode* _tmp18_; - xmlNode* _tmp19_; - xmlNode* nick = NULL; - PublishingRESTSupportXmlDocument* _tmp20_; - xmlNode* _tmp21_; - xmlNode* _tmp22_; - gint maxW = 0; - xmlNode* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - gint _tmp26_; - gint maxH = 0; - xmlNode* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - gint _tmp30_; - gint _tmp31_; - gint _tmp32_; - PublishingRajceSession* _tmp34_; - xmlNode* _tmp35_; - gchar* _tmp36_; - gchar* _tmp37_; - xmlNode* _tmp38_; - gchar* _tmp39_; - gchar* _tmp40_; - gint _tmp41_; - xmlNode* _tmp42_; - gchar* _tmp43_; - gchar* _tmp44_; -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rest_support_xml_document_parse_string (_tmp3_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - doc = _tmp5_; -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2314 "RajcePublishing.c" - goto __catch17_spit_publishing_publishing_error; - } -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2323 "RajcePublishing.c" - } -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = doc; -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = publishing_rest_support_xml_document_get_root_node (_tmp6_); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - response = _tmp7_; -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = doc; -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = response; -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = publishing_rest_support_xml_document_get_named_child (_tmp8_, _tmp9_, "sessionToken", &_inner_error_); -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - sessionToken = _tmp10_; -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2345 "RajcePublishing.c" - goto __catch17_spit_publishing_publishing_error; - } -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2356 "RajcePublishing.c" - } -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = doc; -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = response; -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = publishing_rest_support_xml_document_get_named_child (_tmp11_, _tmp12_, "maxWidth", &_inner_error_); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - maxWidth = _tmp13_; -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2372 "RajcePublishing.c" - goto __catch17_spit_publishing_publishing_error; - } -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2383 "RajcePublishing.c" - } -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = doc; -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = response; -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = publishing_rest_support_xml_document_get_named_child (_tmp14_, _tmp15_, "maxHeight", &_inner_error_); -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - maxHeight = _tmp16_; -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2399 "RajcePublishing.c" - goto __catch17_spit_publishing_publishing_error; - } -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2410 "RajcePublishing.c" - } -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = doc; -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = response; -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = publishing_rest_support_xml_document_get_named_child (_tmp17_, _tmp18_, "quality", &_inner_error_); -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - quality = _tmp19_; -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2426 "RajcePublishing.c" - goto __catch17_spit_publishing_publishing_error; - } -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2437 "RajcePublishing.c" - } -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = doc; -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = response; -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = publishing_rest_support_xml_document_get_named_child (_tmp20_, _tmp21_, "nick", &_inner_error_); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - nick = _tmp22_; -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2453 "RajcePublishing.c" - goto __catch17_spit_publishing_publishing_error; - } -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2464 "RajcePublishing.c" - } -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = maxWidth; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = (gchar*) xmlNodeGetContent (_tmp23_); -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp25_ = _tmp24_; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = atoi (_tmp25_); -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp25_); -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - maxW = _tmp26_; -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp27_ = maxHeight; -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp28_ = (gchar*) xmlNodeGetContent (_tmp27_); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp29_ = _tmp28_; -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp30_ = atoi (_tmp29_); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp29_); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - maxH = _tmp30_; -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp31_ = maxW; -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp32_ = maxH; -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp31_ > _tmp32_) { -#line 2496 "RajcePublishing.c" - gint _tmp33_; -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp33_ = maxW; -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - maxH = _tmp33_; -#line 2502 "RajcePublishing.c" - } -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp34_ = self->priv->session; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp35_ = sessionToken; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp36_ = (gchar*) xmlNodeGetContent (_tmp35_); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp37_ = _tmp36_; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp38_ = nick; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp39_ = (gchar*) xmlNodeGetContent (_tmp38_); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp40_ = _tmp39_; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp41_ = maxH; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp42_ = quality; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp43_ = (gchar*) xmlNodeGetContent (_tmp42_); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp44_ = _tmp43_; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_authenticate (_tmp34_, _tmp37_, _tmp40_, 0, _tmp41_, atoi (_tmp44_)); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp44_); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp40_); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp37_); -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 2536 "RajcePublishing.c" - } - goto __finally17; - __catch17_spit_publishing_publishing_error: - { - GError* err = NULL; - gint code_int = 0; - GError* _tmp45_; - const gchar* _tmp46_; - gint _tmp47_; -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp45_ = err; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp46_ = _tmp45_->message; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - code_int = atoi (_tmp46_); -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp47_ = code_int; -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp47_ == 999) { -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:239: ERROR: on_login_network_complete, code 999"); -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_authentication_pane (self, PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER); -#line 2564 "RajcePublishing.c" - } else { - GError* _tmp48_; -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:244: ERROR: on_login_network_complete"); -#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp48_ = err; -#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp48_); -#line 2573 "RajcePublishing.c" - } -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2579 "RajcePublishing.c" - } - __finally17: -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2590 "RajcePublishing.c" - } -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_fetch_albums (self); -#line 2594 "RajcePublishing.c" -} - - -/** - * Event triggered when a network login action fails due to a network error. - */ -static void -publishing_rajce_rajce_publisher_on_login_network_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:257: EVENT: on_login_network_error"); -#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self); -#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_authentication_pane (self, PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER); -#line 2624 "RajcePublishing.c" -} - - -/** - * Action that fetches all user albums from the Rajce. - */ -static void -_publishing_rajce_rajce_publisher_on_albums_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_albums_fetch_error ((PublishingRajceRajcePublisher*) self, _sender, err); -#line 2638 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_albums_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_albums_fetch_complete ((PublishingRajceRajcePublisher*) self, _sender); -#line 2648 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_do_fetch_albums (PublishingRajceRajcePublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingRajceGetAlbumsTransaction* get_albums_trans = NULL; - PublishingRajceSession* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - PublishingRajceGetAlbumsTransaction* _tmp5_; - PublishingRajceGetAlbumsTransaction* _tmp6_; - GError * _inner_error_ = NULL; -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:268: ACTION: fetching albums"); -#line 269 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 269 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->host; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = self->priv->session; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = publishing_rajce_rajce_publisher_get_url (self); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = _tmp3_; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = publishing_rajce_get_albums_transaction_new (_tmp2_, _tmp4_); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _tmp5_; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp4_); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - get_albums_trans = _tmp6_; -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (get_albums_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_error_publishing_rest_support_transaction_network_error, self, 0); -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (get_albums_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_complete_publishing_rest_support_transaction_completed, self, 0); -#line 2694 "RajcePublishing.c" - { -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (get_albums_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2702 "RajcePublishing.c" - goto __catch18_spit_publishing_publishing_error; - } -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (get_albums_trans); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2713 "RajcePublishing.c" - } - } - goto __finally18; - __catch18_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp7_; -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:282: ERROR: do_fetch_albums"); -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = err; -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp7_); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 2733 "RajcePublishing.c" - } - __finally18: -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (get_albums_trans); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2746 "RajcePublishing.c" - } -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (get_albums_trans); -#line 2750 "RajcePublishing.c" -} - - -/** - * Event triggered when the fetch albums action completes successfully. - */ -static gint -_publishing_rajce_album_compare_albums_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = publishing_rajce_album_compare_albums ((PublishingRajceAlbum*) a, (PublishingRajceAlbum*) b); -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 2766 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_on_albums_fetch_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRajceAlbum** _tmp4_; - gint _tmp4__length1; - GeeArrayList* list = NULL; - GeeArrayList* _tmp5_; - GError * _inner_error_ = NULL; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:292: EVENT: on_albums_fetch_complete"); -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:295: RajcePlugin: list of albums: %s", _tmp3_); -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->albums; -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4__length1 = self->priv->albums_length1; -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp4_ != NULL) { -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_rajce_album_unref), NULL); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = NULL; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums_length1 = 0; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 2819 "RajcePublishing.c" - } -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = gee_array_list_new (PUBLISHING_RAJCE_TYPE_ALBUM, (GBoxedCopyFunc) publishing_rajce_album_ref, (GDestroyNotify) publishing_rajce_album_unref, NULL, NULL, NULL); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - list = _tmp5_; -#line 2825 "RajcePublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp6_; - gchar* _tmp7_; - PublishingRESTSupportXmlDocument* _tmp8_; - PublishingRESTSupportXmlDocument* _tmp9_; - xmlNode* response = NULL; - PublishingRESTSupportXmlDocument* _tmp10_; - xmlNode* _tmp11_; - xmlNode* sessionToken = NULL; - PublishingRESTSupportXmlDocument* _tmp12_; - xmlNode* _tmp13_; - xmlNode* _tmp14_; - xmlNode* nodealbums = NULL; - PublishingRESTSupportXmlDocument* _tmp15_; - xmlNode* _tmp16_; - xmlNode* _tmp17_; - GeeArrayList* _tmp88_; - GeeArrayList* _tmp89_; - gint _tmp90_; - gpointer* _tmp91_; - PublishingRajceSession* _tmp92_; - xmlNode* _tmp93_; - gchar* _tmp94_; - gchar* _tmp95_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = publishing_rest_support_transaction_get_response (txn); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = _tmp6_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = publishing_rest_support_xml_document_parse_string (_tmp7_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = _tmp8_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp7_); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - doc = _tmp9_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2867 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2878 "RajcePublishing.c" - } -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = doc; -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = publishing_rest_support_xml_document_get_root_node (_tmp10_); -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - response = _tmp11_; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = doc; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = response; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = publishing_rest_support_xml_document_get_named_child (_tmp12_, _tmp13_, "sessionToken", &_inner_error_); -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - sessionToken = _tmp14_; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2900 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2913 "RajcePublishing.c" - } -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = doc; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = response; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = publishing_rest_support_xml_document_get_named_child (_tmp15_, _tmp16_, "albums", &_inner_error_); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - nodealbums = _tmp17_; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2929 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 2942 "RajcePublishing.c" - } - { - xmlNode* album = NULL; - xmlNode* _tmp18_; - xmlNode* _tmp19_; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = nodealbums; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = _tmp18_->children; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - album = _tmp19_; -#line 2954 "RajcePublishing.c" - { - gboolean _tmp20_ = FALSE; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = TRUE; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - while (TRUE) { -#line 2961 "RajcePublishing.c" - xmlNode* _tmp23_; - gint id = 0; - xmlNode* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - gint _tmp27_; - xmlNode* _tmp28_ = NULL; - PublishingRESTSupportXmlDocument* _tmp29_; - xmlNode* _tmp30_; - xmlNode* _tmp31_; - gchar* albumName = NULL; - gchar* _tmp32_; - xmlNode* _tmp33_ = NULL; - PublishingRESTSupportXmlDocument* _tmp34_; - xmlNode* _tmp35_; - xmlNode* _tmp36_; - gchar* url = NULL; - gchar* _tmp37_; - xmlNode* _tmp38_ = NULL; - PublishingRESTSupportXmlDocument* _tmp39_; - xmlNode* _tmp40_; - xmlNode* _tmp41_; - gchar* thumbUrl = NULL; - gchar* _tmp42_; - xmlNode* _tmp43_ = NULL; - PublishingRESTSupportXmlDocument* _tmp44_; - xmlNode* _tmp45_; - xmlNode* _tmp46_; - gchar* createDate = NULL; - gchar* _tmp47_; - xmlNode* _tmp48_ = NULL; - PublishingRESTSupportXmlDocument* _tmp49_; - xmlNode* _tmp50_; - xmlNode* _tmp51_; - gchar* updateDate = NULL; - gchar* _tmp52_; - gboolean _tmp53_ = FALSE; - xmlNode* _tmp54_ = NULL; - PublishingRESTSupportXmlDocument* _tmp55_; - xmlNode* _tmp56_; - xmlNode* _tmp57_; - gchar* _tmp58_; - gchar* _tmp59_; - gboolean _tmp60_; - gboolean hidden = FALSE; - gboolean _tmp61_ = FALSE; - xmlNode* _tmp62_ = NULL; - PublishingRESTSupportXmlDocument* _tmp63_; - xmlNode* _tmp64_; - xmlNode* _tmp65_; - gchar* _tmp66_; - gchar* _tmp67_; - gboolean _tmp68_; - gboolean secure = FALSE; - xmlNode* _tmp69_ = NULL; - PublishingRESTSupportXmlDocument* _tmp70_; - xmlNode* _tmp71_; - xmlNode* _tmp72_; - gint photoCount = 0; - gchar* _tmp73_; - gchar* _tmp74_; - gint _tmp75_; - GeeArrayList* _tmp76_; - gint _tmp77_; - const gchar* _tmp78_; - const gchar* _tmp79_; - const gchar* _tmp80_; - const gchar* _tmp81_; - const gchar* _tmp82_; - gboolean _tmp83_; - gboolean _tmp84_; - gint _tmp85_; - PublishingRajceAlbum* _tmp86_; - PublishingRajceAlbum* _tmp87_; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!_tmp20_) { -#line 3038 "RajcePublishing.c" - xmlNode* _tmp21_; - xmlNode* _tmp22_; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = album; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = _tmp21_->next; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - album = _tmp22_; -#line 3047 "RajcePublishing.c" - } -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = FALSE; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = album; -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!(_tmp23_ != NULL)) { -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - break; -#line 3057 "RajcePublishing.c" - } -#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = album; -#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp25_ = (gchar*) xmlGetProp (_tmp24_, (xmlChar*) "id"); -#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = _tmp25_; -#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp27_ = atoi (_tmp26_); -#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp26_); -#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - id = _tmp27_; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp29_ = doc; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp30_ = album; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp31_ = publishing_rest_support_xml_document_get_named_child (_tmp29_, _tmp30_, "albumName", &_inner_error_); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp28_ = _tmp31_; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3085 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3098 "RajcePublishing.c" - } -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp32_ = (gchar*) xmlNodeGetContent (_tmp28_); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - albumName = _tmp32_; -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp34_ = doc; -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp35_ = album; -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp36_ = publishing_rest_support_xml_document_get_named_child (_tmp34_, _tmp35_, "url", &_inner_error_); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp33_ = _tmp36_; -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3120 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3135 "RajcePublishing.c" - } -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp37_ = (gchar*) xmlNodeGetContent (_tmp33_); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - url = _tmp37_; -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp39_ = doc; -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp40_ = album; -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp41_ = publishing_rest_support_xml_document_get_named_child (_tmp39_, _tmp40_, "thumbUrl", &_inner_error_); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp38_ = _tmp41_; -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3159 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3176 "RajcePublishing.c" - } -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp42_ = (gchar*) xmlNodeGetContent (_tmp38_); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - thumbUrl = _tmp42_; -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp44_ = doc; -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp45_ = album; -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp46_ = publishing_rest_support_xml_document_get_named_child (_tmp44_, _tmp45_, "createDate", &_inner_error_); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp43_ = _tmp46_; -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3202 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3221 "RajcePublishing.c" - } -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp47_ = (gchar*) xmlNodeGetContent (_tmp43_); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - createDate = _tmp47_; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp49_ = doc; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp50_ = album; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp51_ = publishing_rest_support_xml_document_get_named_child (_tmp49_, _tmp50_, "updateDate", &_inner_error_); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp48_ = _tmp51_; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3249 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3270 "RajcePublishing.c" - } -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp52_ = (gchar*) xmlNodeGetContent (_tmp48_); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - updateDate = _tmp52_; -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp55_ = doc; -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp56_ = album; -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp57_ = publishing_rest_support_xml_document_get_named_child (_tmp55_, _tmp56_, "hidden", &_inner_error_); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp54_ = _tmp57_; -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (updateDate); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3300 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (updateDate); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3323 "RajcePublishing.c" - } -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp58_ = (gchar*) xmlNodeGetContent (_tmp54_); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp59_ = _tmp58_; -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp60_ = atoi (_tmp59_) > 0; -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp59_); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp60_) { -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp53_ = TRUE; -#line 3337 "RajcePublishing.c" - } else { -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp53_ = FALSE; -#line 3341 "RajcePublishing.c" - } -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - hidden = _tmp53_; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp63_ = doc; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp64_ = album; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp65_ = publishing_rest_support_xml_document_get_named_child (_tmp63_, _tmp64_, "secure", &_inner_error_); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp62_ = _tmp65_; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (updateDate); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3369 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (updateDate); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3392 "RajcePublishing.c" - } -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp66_ = (gchar*) xmlNodeGetContent (_tmp62_); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp67_ = _tmp66_; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp68_ = atoi (_tmp67_) > 0; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp67_); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp68_) { -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp61_ = TRUE; -#line 3406 "RajcePublishing.c" - } else { -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp61_ = FALSE; -#line 3410 "RajcePublishing.c" - } -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - secure = _tmp61_; -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp70_ = doc; -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp71_ = album; -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp72_ = publishing_rest_support_xml_document_get_named_child (_tmp70_, _tmp71_, "photoCount", &_inner_error_); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp69_ = _tmp72_; -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (updateDate); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3438 "RajcePublishing.c" - goto __catch19_spit_publishing_publishing_error; - } -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (updateDate); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3461 "RajcePublishing.c" - } -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp73_ = (gchar*) xmlNodeGetContent (_tmp69_); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp74_ = _tmp73_; -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp75_ = atoi (_tmp74_); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp74_); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - photoCount = _tmp75_; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp76_ = list; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp77_ = id; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp78_ = albumName; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp79_ = url; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp80_ = thumbUrl; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp81_ = createDate; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp82_ = updateDate; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp83_ = hidden; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp84_ = secure; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp85_ = photoCount; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp86_ = publishing_rajce_album_new (_tmp77_, _tmp78_, _tmp79_, _tmp80_, _tmp81_, _tmp82_, _tmp83_, _tmp84_, _tmp85_); -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp87_ = _tmp86_; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0, _tmp87_); -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_album_unref0 (_tmp87_); -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (updateDate); -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (createDate); -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (thumbUrl); -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumName); -#line 3511 "RajcePublishing.c" - } - } - } -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp88_ = list; -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gee_list_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, GEE_TYPE_LIST, GeeList), _publishing_rajce_album_compare_albums_gcompare_data_func, NULL, NULL); -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp89_ = list; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp91_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp89_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp90_); -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_rajce_album_unref), NULL); -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = _tmp91_; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums_length1 = _tmp90_; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp92_ = self->priv->session; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp93_ = sessionToken; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp94_ = (gchar*) xmlNodeGetContent (_tmp93_); -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp95_ = _tmp94_; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_usertoken (_tmp92_, _tmp95_); -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp95_); -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 3545 "RajcePublishing.c" - } - goto __finally19; - __catch19_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp96_; -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:326: ERROR: on_albums_fetch_complete"); -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp96_ = err; -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp96_); -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3568 "RajcePublishing.c" - } - __finally19: -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3581 "RajcePublishing.c" - } -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_publishing_options_pane (self); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (list); -#line 3587 "RajcePublishing.c" -} - - -/** - * Event triggered when the fetch albums transaction fails due to a network error. - */ -static void -publishing_rajce_rajce_publisher_on_albums_fetch_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:338: EVENT: on_albums_fetch_error"); -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_albums_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_network_error (self, bad_txn, err); -#line 3617 "RajcePublishing.c" -} - - -/** - * Action that shows the publishing options pane. - */ -static void -_publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked_publishing_rajce_publishing_options_pane_logout (PublishingRajcePublishingOptionsPane* _sender, - gpointer self) -{ -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked ((PublishingRajceRajcePublisher*) self); -#line 3630 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked_publishing_rajce_publishing_options_pane_publish (PublishingRajcePublishingOptionsPane* _sender, - PublishingRajcePublishingParameters* parameters, - gpointer self) -{ -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked ((PublishingRajceRajcePublisher*) self, parameters); -#line 3641 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_do_show_publishing_options_pane (PublishingRajceRajcePublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingRajcePublishingOptionsPane* opts_pane = NULL; - PublishingRajceSession* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRajceAlbum** _tmp4_; - gint _tmp4__length1; - PublishingRajcePublishingOptionsPane* _tmp5_; - PublishingRajcePublishingOptionsPane* _tmp6_; - SpitPublishingPluginHost* _tmp7_; - SpitPublishingPluginHost* _tmp8_; - GtkWidget* _tmp9_; - GtkWidget* _tmp10_; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:349: ACTION: installing publishing options pane"); -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->session; -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rajce_session_get_username (_tmp1_); -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->albums; -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4__length1 = self->priv->albums_length1; -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = publishing_rajce_publishing_options_pane_new (self, _tmp3_, _tmp4_, _tmp4__length1); -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _tmp5_; -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - opts_pane = _tmp6_; -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (opts_pane, "logout", (GCallback) _publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked_publishing_rajce_publishing_options_pane_logout, self, 0); -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (opts_pane, "publish", (GCallback) _publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked_publishing_rajce_publishing_options_pane_publish, self, 0); -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = self->priv->host; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (opts_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = self->priv->host; -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = publishing_rajce_publishing_options_pane_get_default_widget (opts_pane); -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp9_; -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp8_, _tmp10_); -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (_tmp10_); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (opts_pane); -#line 3707 "RajcePublishing.c" -} - - -/** - * Event triggered when the user clicks logout in the publishing options pane. - */ -static void -publishing_rajce_rajce_publisher_on_publishing_options_pane_logout_clicked (PublishingRajceRajcePublisher* self) -{ - PublishingRajceSession* _tmp0_; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:363: EVENT: on_publishing_options_pane_logout_cli" \ -"cked"); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->session; -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_deauthenticate (_tmp0_); -#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_authentication_pane (self, PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO); -#line 3728 "RajcePublishing.c" -} - - -/** - * Event triggered when the user clicks publish in the publishing options pane. - * - * @param parameters the publishing parameters - */ -static gpointer -_publishing_rajce_publishing_parameters_ref0 (gpointer self) -{ -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self ? publishing_rajce_publishing_parameters_ref (self) : NULL; -#line 3742 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_on_publishing_options_pane_publish_clicked (PublishingRajceRajcePublisher* self, - PublishingRajcePublishingParameters* parameters) -{ - PublishingRajcePublishingParameters* _tmp0_; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS (parameters)); -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:375: EVENT: on_publishing_options_pane_publish_cl" \ -"icked"); -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _publishing_rajce_publishing_parameters_ref0 (parameters); -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters); -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->parameters = _tmp0_; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_begin_upload (self); -#line 3765 "RajcePublishing.c" -} - - -/** - * Begin upload action: open existing album or create a new one - */ -static gboolean -_int_equal (const gint * s1, - const gint * s2) -{ -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (s1 == s2) { -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return TRUE; -#line 3780 "RajcePublishing.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (s1 == NULL) { -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return FALSE; -#line 3786 "RajcePublishing.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (s2 == NULL) { -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return FALSE; -#line 3792 "RajcePublishing.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return (*s1) == (*s2); -#line 3796 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_create_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_create_album_error ((PublishingRajceRajcePublisher*) self, _sender, err); -#line 3807 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_create_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_create_album_complete ((PublishingRajceRajcePublisher*) self, _sender); -#line 3817 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_open_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_open_album_error ((PublishingRajceRajcePublisher*) self, _sender, err); -#line 3828 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_open_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_open_album_complete ((PublishingRajceRajcePublisher*) self, _sender); -#line 3838 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_do_begin_upload (PublishingRajceRajcePublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingRajcePublishingParameters* _tmp1_; - gint* _tmp2_; - gint _tmp3_; - GError * _inner_error_ = NULL; -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->parameters; -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _tmp1_->album_id; -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = 0; -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_int_equal (_tmp2_, &_tmp3_) == TRUE) { -#line 3864 "RajcePublishing.c" - PublishingRajceCreateAlbumTransaction* create_album_trans = NULL; - PublishingRajceSession* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - PublishingRajcePublishingParameters* _tmp7_; - const gchar* _tmp8_; - PublishingRajcePublishingParameters* _tmp9_; - gboolean* _tmp10_; - PublishingRajceCreateAlbumTransaction* _tmp11_; - PublishingRajceCreateAlbumTransaction* _tmp12_; - PublishingRajceCreateAlbumTransaction* _tmp13_; - PublishingRajceCreateAlbumTransaction* _tmp14_; -#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:389: ACTION: closing album"); -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->session; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = publishing_rajce_rajce_publisher_get_url (self); -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _tmp5_; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = self->priv->parameters; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = _tmp7_->album_name; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = self->priv->parameters; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp9_->album_hidden; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = publishing_rajce_create_album_transaction_new (_tmp4_, _tmp6_, _tmp8_, *_tmp10_); -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = _tmp11_; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp6_); -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - create_album_trans = _tmp12_; -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = create_album_trans; -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_create_album_error_publishing_rest_support_transaction_network_error, self, 0); -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = create_album_trans; -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_create_album_complete_publishing_rest_support_transaction_completed, self, 0); -#line 3909 "RajcePublishing.c" - { - PublishingRajceCreateAlbumTransaction* _tmp15_; -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = create_album_trans; -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3920 "RajcePublishing.c" - goto __catch20_spit_publishing_publishing_error; - } -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (create_album_trans); -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3931 "RajcePublishing.c" - } - } - goto __finally20; - __catch20_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp16_; -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:399: ERROR: create album"); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = err; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp16_); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 3951 "RajcePublishing.c" - } - __finally20: -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (create_album_trans); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 3964 "RajcePublishing.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (create_album_trans); -#line 3968 "RajcePublishing.c" - } else { - PublishingRajceOpenAlbumTransaction* open_album_trans = NULL; - PublishingRajceSession* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - PublishingRajcePublishingParameters* _tmp20_; - gint* _tmp21_; - PublishingRajceOpenAlbumTransaction* _tmp22_; - PublishingRajceOpenAlbumTransaction* _tmp23_; - PublishingRajceOpenAlbumTransaction* _tmp24_; - PublishingRajceOpenAlbumTransaction* _tmp25_; -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:406: ACTION: opening album"); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = self->priv->session; -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = publishing_rajce_rajce_publisher_get_url (self); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = _tmp18_; -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = self->priv->parameters; -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = _tmp20_->album_id; -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = publishing_rajce_open_album_transaction_new (_tmp17_, _tmp19_, *_tmp21_); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = _tmp22_; -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp19_); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - open_album_trans = _tmp23_; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = open_album_trans; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_open_album_error_publishing_rest_support_transaction_network_error, self, 0); -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp25_ = open_album_trans; -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_open_album_complete_publishing_rest_support_transaction_completed, self, 0); -#line 4008 "RajcePublishing.c" - { - PublishingRajceOpenAlbumTransaction* _tmp26_; -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = open_album_trans; -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4019 "RajcePublishing.c" - goto __catch21_spit_publishing_publishing_error; - } -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (open_album_trans); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4030 "RajcePublishing.c" - } - } - goto __finally21; - __catch21_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp27_; -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:416: ERROR: open album"); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp27_ = err; -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp27_); -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 4050 "RajcePublishing.c" - } - __finally21: -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (open_album_trans); -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4063 "RajcePublishing.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (open_album_trans); -#line 4067 "RajcePublishing.c" - } -} - - -/** - * Event triggered when the create album completes successfully. - */ -static gint* -_int_dup (gint* self) -{ - gint* dup; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dup = g_new0 (gint, 1); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - memcpy (dup, self, sizeof (gint)); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return dup; -#line 4085 "RajcePublishing.c" -} - - -static gpointer -__int_dup0 (gpointer self) -{ -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self ? _int_dup (self) : NULL; -#line 4094 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_on_create_album_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:427: EVENT: on_create_album_complete"); -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_create_album_complete_publishing_rest_support_transaction_completed, self); -#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_create_album_error_publishing_rest_support_transaction_network_error, self); -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:430: RajcePlugin: create album: %s", _tmp3_); -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 4129 "RajcePublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp4_; - gchar* _tmp5_; - PublishingRESTSupportXmlDocument* _tmp6_; - PublishingRESTSupportXmlDocument* _tmp7_; - xmlNode* response = NULL; - PublishingRESTSupportXmlDocument* _tmp8_; - xmlNode* _tmp9_; - xmlNode* _tmp10_ = NULL; - PublishingRESTSupportXmlDocument* _tmp11_; - xmlNode* _tmp12_; - xmlNode* _tmp13_; - gchar* sessionToken = NULL; - gchar* _tmp14_; - xmlNode* _tmp15_ = NULL; - PublishingRESTSupportXmlDocument* _tmp16_; - xmlNode* _tmp17_; - xmlNode* _tmp18_; - gchar* albumToken = NULL; - gchar* _tmp19_; - xmlNode* _tmp20_ = NULL; - PublishingRESTSupportXmlDocument* _tmp21_; - xmlNode* _tmp22_; - xmlNode* _tmp23_; - PublishingRajcePublishingParameters* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - gint _tmp27_; - gint* _tmp28_; - PublishingRajceSession* _tmp29_; - const gchar* _tmp30_; - PublishingRajceSession* _tmp31_; - const gchar* _tmp32_; -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (txn); -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = publishing_rest_support_xml_document_parse_string (_tmp5_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = _tmp6_; -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp5_); -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - doc = _tmp7_; -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4180 "RajcePublishing.c" - goto __catch22_spit_publishing_publishing_error; - } -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4189 "RajcePublishing.c" - } -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = doc; -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = publishing_rest_support_xml_document_get_root_node (_tmp8_); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - response = _tmp9_; -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = doc; -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = response; -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = publishing_rest_support_xml_document_get_named_child (_tmp11_, _tmp12_, "sessionToken", &_inner_error_); -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp13_; -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4211 "RajcePublishing.c" - goto __catch22_spit_publishing_publishing_error; - } -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4222 "RajcePublishing.c" - } -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = (gchar*) xmlNodeGetContent (_tmp10_); -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - sessionToken = _tmp14_; -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = doc; -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = response; -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = publishing_rest_support_xml_document_get_named_child (_tmp16_, _tmp17_, "albumToken", &_inner_error_); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = _tmp18_; -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4244 "RajcePublishing.c" - goto __catch22_spit_publishing_publishing_error; - } -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4257 "RajcePublishing.c" - } -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = (gchar*) xmlNodeGetContent (_tmp15_); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - albumToken = _tmp19_; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = doc; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = response; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = publishing_rest_support_xml_document_get_named_child (_tmp21_, _tmp22_, "albumID", &_inner_error_); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = _tmp23_; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumToken); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4281 "RajcePublishing.c" - goto __catch22_spit_publishing_publishing_error; - } -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumToken); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4296 "RajcePublishing.c" - } -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = self->priv->parameters; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp25_ = (gchar*) xmlNodeGetContent (_tmp20_); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = _tmp25_; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp27_ = atoi (_tmp26_); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp28_ = __int_dup0 (&_tmp27_); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp24_->album_id); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_->album_id = _tmp28_; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp26_); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp29_ = self->priv->session; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp30_ = sessionToken; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_usertoken (_tmp29_, _tmp30_); -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp31_ = self->priv->session; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp32_ = albumToken; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_albumtoken (_tmp31_, _tmp32_); -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumToken); -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 4332 "RajcePublishing.c" - } - goto __finally22; - __catch22_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp33_; -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:443: ERROR: on_create_album_complete"); -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp33_ = err; -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp33_); -#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4353 "RajcePublishing.c" - } - __finally22: -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4364 "RajcePublishing.c" - } -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_upload_photos (self); -#line 4368 "RajcePublishing.c" -} - - -/** - * Event triggered when the create album transaction fails due to a network error. - */ -static void -publishing_rajce_rajce_publisher_on_create_album_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:455: EVENT: on_create_album_error"); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_create_album_complete_publishing_rest_support_transaction_completed, self); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_create_album_error_publishing_rest_support_transaction_network_error, self); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_network_error (self, bad_txn, err); -#line 4398 "RajcePublishing.c" -} - - -/** - * Event triggered when the open album completes successfully. - */ -static void -publishing_rajce_rajce_publisher_on_open_album_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:466: EVENT: on_open_album_complete"); -#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_open_album_complete_publishing_rest_support_transaction_completed, self); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_open_album_error_publishing_rest_support_transaction_network_error, self); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:469: RajcePlugin: open album: %s", _tmp3_); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 4436 "RajcePublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp4_; - gchar* _tmp5_; - PublishingRESTSupportXmlDocument* _tmp6_; - PublishingRESTSupportXmlDocument* _tmp7_; - xmlNode* response = NULL; - PublishingRESTSupportXmlDocument* _tmp8_; - xmlNode* _tmp9_; - xmlNode* _tmp10_ = NULL; - PublishingRESTSupportXmlDocument* _tmp11_; - xmlNode* _tmp12_; - xmlNode* _tmp13_; - gchar* sessionToken = NULL; - gchar* _tmp14_; - xmlNode* _tmp15_ = NULL; - PublishingRESTSupportXmlDocument* _tmp16_; - xmlNode* _tmp17_; - xmlNode* _tmp18_; - gchar* albumToken = NULL; - gchar* _tmp19_; - PublishingRajceSession* _tmp20_; - const gchar* _tmp21_; - PublishingRajceSession* _tmp22_; - const gchar* _tmp23_; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (txn); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = publishing_rest_support_xml_document_parse_string (_tmp5_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = _tmp6_; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp5_); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - doc = _tmp7_; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4478 "RajcePublishing.c" - goto __catch23_spit_publishing_publishing_error; - } -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4487 "RajcePublishing.c" - } -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = doc; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = publishing_rest_support_xml_document_get_root_node (_tmp8_); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - response = _tmp9_; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = doc; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = response; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = publishing_rest_support_xml_document_get_named_child (_tmp11_, _tmp12_, "sessionToken", &_inner_error_); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp13_; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4509 "RajcePublishing.c" - goto __catch23_spit_publishing_publishing_error; - } -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4520 "RajcePublishing.c" - } -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = (gchar*) xmlNodeGetContent (_tmp10_); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - sessionToken = _tmp14_; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = doc; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = response; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = publishing_rest_support_xml_document_get_named_child (_tmp16_, _tmp17_, "albumToken", &_inner_error_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = _tmp18_; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4542 "RajcePublishing.c" - goto __catch23_spit_publishing_publishing_error; - } -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4555 "RajcePublishing.c" - } -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = (gchar*) xmlNodeGetContent (_tmp15_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - albumToken = _tmp19_; -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = self->priv->session; -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = sessionToken; -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_usertoken (_tmp20_, _tmp21_); -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = self->priv->session; -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = albumToken; -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_albumtoken (_tmp22_, _tmp23_); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (albumToken); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 4579 "RajcePublishing.c" - } - goto __finally23; - __catch23_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp24_; -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:481: ERROR: on_open_album_complete"); -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = err; -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp24_); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4600 "RajcePublishing.c" - } - __finally23: -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4611 "RajcePublishing.c" - } -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_upload_photos (self); -#line 4615 "RajcePublishing.c" -} - - -/** - * Event triggered when the open album transaction fails due to a network error. - */ -static void -publishing_rajce_rajce_publisher_on_open_album_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:493: EVENT: on_open_album_error"); -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_open_album_complete_publishing_rest_support_transaction_completed, self); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_open_album_error_publishing_rest_support_transaction_network_error, self); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_network_error (self, bad_txn, err); -#line 4645 "RajcePublishing.c" -} - - -/** - * Upload photos: the key part of the plugin - */ -static void -_publishing_rajce_rajce_publisher_on_upload_photos_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self) -{ -#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_upload_photos_complete ((PublishingRajceRajcePublisher*) self, _sender, num_photos_published); -#line 4659 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_upload_photos_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self) -{ -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_upload_photos_error ((PublishingRajceRajcePublisher*) self, _sender, err); -#line 4670 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_upload_photos_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_upload_photos_status_updated ((PublishingRajceRajcePublisher*) self, file_number, fraction_complete); -#line 4681 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_do_upload_photos (PublishingRajceRajcePublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingRajceSession* _tmp1_; - void* _tmp2_; - GDestroyNotify _tmp3_; - SpitPublishingProgressCallback _tmp4_; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp5_; - gint _tmp6_; - SpitPublishingPublishable** _tmp7_; - gint publishables_length1; - gint _publishables_size_; - PublishingRajceUploader* uploader = NULL; - PublishingRajceSession* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - PublishingRajcePublishingParameters* _tmp11_; - PublishingRajceUploader* _tmp12_; - PublishingRajceUploader* _tmp13_; -#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:504: ACTION: uploading photos"); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->session; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = spit_publishing_plugin_host_serialize_publishables (_tmp0_, publishing_rajce_session_get_maxsize (_tmp1_), FALSE, &_tmp2_, &_tmp3_); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter = NULL; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter = _tmp4_; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter_target = _tmp2_; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp3_; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = self->priv->host; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = spit_publishing_plugin_host_get_publishables (_tmp5_, &_tmp6_); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishables = _tmp7_; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishables_length1 = _tmp6_; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishables_size_ = publishables_length1; -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = self->priv->session; -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = publishing_rajce_rajce_publisher_get_url (self); -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp9_; -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = self->priv->parameters; -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = publishing_rajce_uploader_new (_tmp8_, _tmp10_, publishables, publishables_length1, _tmp11_); -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = _tmp12_; -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp10_); -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - uploader = _tmp13_; -#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0); -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_error_publishing_rest_support_batch_uploader_upload_error, self, 0); -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_rajce_rajce_publisher_on_upload_photos_status_updated_spit_publishing_progress_callback, self); -#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_batch_uploader_unref0 (uploader); -#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 4766 "RajcePublishing.c" -} - - -/** - * Event triggered when the batch uploader reports that at least one of the - * network transactions encapsulating uploads has completed successfully - */ -static void -publishing_rajce_rajce_publisher_on_upload_photos_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published) -{ - guint _tmp0_; - guint _tmp1_; -#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:520: EVENT: on_upload_photos_complete"); -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_end_upload (self); -#line 4797 "RajcePublishing.c" -} - - -/** - * Event triggered when the batch uploader reports that at least one of the - * network transactions encapsulating uploads has caused a network error - */ -static void -publishing_rajce_rajce_publisher_on_upload_photos_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:534: EVENT: on_upload_photos_error"); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_upload_photos_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, err); -#line 4828 "RajcePublishing.c" -} - - -/** - * Event triggered when upload progresses and the status needs to be updated. - */ -static void -publishing_rajce_rajce_publisher_on_upload_photos_status_updated (PublishingRajceRajcePublisher* self, - gint file_number, - gdouble completed_fraction) -{ -#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 4844 "RajcePublishing.c" - SpitPublishingProgressCallback _tmp0_; - void* _tmp0__target; - SpitPublishingProgressCallback _tmp1_; - void* _tmp1__target; -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:547: EVENT: uploader reports upload %.2f percent " \ -"complete.", 100.0 * completed_fraction); -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->progress_reporter; -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->progress_reporter; -#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ (file_number, completed_fraction, _tmp1__target); -#line 4863 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_rajce_publisher_do_end_upload (PublishingRajceRajcePublisher* self) -{ -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (publishing_rajce_rajce_publisher_get_show_album (self)) { -#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_get_album_url (self); -#line 4877 "RajcePublishing.c" - } else { -#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_close_album (self); -#line 4881 "RajcePublishing.c" - } -} - - -/** - * End upload action: get album url - */ -static void -_publishing_rajce_rajce_publisher_on_get_album_url_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_get_album_url_error ((PublishingRajceRajcePublisher*) self, _sender, err); -#line 4896 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_get_album_url_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_get_album_url_complete ((PublishingRajceRajcePublisher*) self, _sender); -#line 4906 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_do_get_album_url (PublishingRajceRajcePublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingRajceGetAlbumUrlTransaction* get_album_url_trans = NULL; - PublishingRajceSession* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRajceGetAlbumUrlTransaction* _tmp4_; - PublishingRajceGetAlbumUrlTransaction* _tmp5_; - GError * _inner_error_ = NULL; -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:570: ACTION: getting album URL"); -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->session; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rajce_rajce_publisher_get_url (self); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rajce_get_album_url_transaction_new (_tmp1_, _tmp3_); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - get_album_url_trans = _tmp5_; -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (get_album_url_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_error_publishing_rest_support_transaction_network_error, self, 0); -#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (get_album_url_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_complete_publishing_rest_support_transaction_completed, self, 0); -#line 4947 "RajcePublishing.c" - { -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (get_album_url_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4955 "RajcePublishing.c" - goto __catch24_spit_publishing_publishing_error; - } -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (get_album_url_trans); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4966 "RajcePublishing.c" - } - } - goto __finally24; - __catch24_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp6_; -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:581: ERROR: close album"); -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = err; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp6_); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 4986 "RajcePublishing.c" - } - __finally24: -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (get_album_url_trans); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 4999 "RajcePublishing.c" - } -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (get_album_url_trans); -#line 5003 "RajcePublishing.c" -} - - -/** - * Event triggered when the get album url completes successfully. - */ -static void -publishing_rajce_rajce_publisher_on_get_album_url_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:591: EVENT: on_get_album_url_complete"); -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_complete_publishing_rest_support_transaction_completed, self); -#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_error_publishing_rest_support_transaction_network_error, self); -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:594: RajcePlugin: get album url: %s", _tmp3_); -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 5041 "RajcePublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp4_; - gchar* _tmp5_; - PublishingRESTSupportXmlDocument* _tmp6_; - PublishingRESTSupportXmlDocument* _tmp7_; - xmlNode* response = NULL; - PublishingRESTSupportXmlDocument* _tmp8_; - xmlNode* _tmp9_; - xmlNode* _tmp10_ = NULL; - PublishingRESTSupportXmlDocument* _tmp11_; - xmlNode* _tmp12_; - xmlNode* _tmp13_; - gchar* sessionToken = NULL; - gchar* _tmp14_; - xmlNode* _tmp15_ = NULL; - PublishingRESTSupportXmlDocument* _tmp16_; - xmlNode* _tmp17_; - xmlNode* _tmp18_; - gchar* url = NULL; - gchar* _tmp19_; - PublishingRajceSession* _tmp20_; - const gchar* _tmp21_; - PublishingRajceSession* _tmp22_; - const gchar* _tmp23_; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (txn); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = publishing_rest_support_xml_document_parse_string (_tmp5_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = _tmp6_; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp5_); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - doc = _tmp7_; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5083 "RajcePublishing.c" - goto __catch25_spit_publishing_publishing_error; - } -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5092 "RajcePublishing.c" - } -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = doc; -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = publishing_rest_support_xml_document_get_root_node (_tmp8_); -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - response = _tmp9_; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = doc; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = response; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = publishing_rest_support_xml_document_get_named_child (_tmp11_, _tmp12_, "sessionToken", &_inner_error_); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp13_; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5114 "RajcePublishing.c" - goto __catch25_spit_publishing_publishing_error; - } -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5125 "RajcePublishing.c" - } -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = (gchar*) xmlNodeGetContent (_tmp10_); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - sessionToken = _tmp14_; -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = doc; -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = response; -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = publishing_rest_support_xml_document_get_named_child (_tmp16_, _tmp17_, "url", &_inner_error_); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = _tmp18_; -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5147 "RajcePublishing.c" - goto __catch25_spit_publishing_publishing_error; - } -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5160 "RajcePublishing.c" - } -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = (gchar*) xmlNodeGetContent (_tmp15_); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - url = _tmp19_; -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = self->priv->session; -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = sessionToken; -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_usertoken (_tmp20_, _tmp21_); -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = self->priv->session; -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = url; -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_albumticket (_tmp22_, _tmp23_); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (url); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 5184 "RajcePublishing.c" - } - goto __finally25; - __catch25_spit_publishing_publishing_error: - { - GError* err = NULL; -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 606 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:606: ERROR: on_get_album_url_complete"); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 5198 "RajcePublishing.c" - } - __finally25: -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5209 "RajcePublishing.c" - } -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_close_album (self); -#line 5213 "RajcePublishing.c" -} - - -/** - * Event triggered when the get album url transaction fails due to a network error. - */ -static void -publishing_rajce_rajce_publisher_on_get_album_url_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:619: EVENT: on_get_album_url_error"); -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_complete_publishing_rest_support_transaction_completed, self); -#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_get_album_url_error_publishing_rest_support_transaction_network_error, self); -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_close_album (self); -#line 5243 "RajcePublishing.c" -} - - -/** - * End upload action: close album - */ -static void -_publishing_rajce_rajce_publisher_on_close_album_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_close_album_error ((PublishingRajceRajcePublisher*) self, _sender, err); -#line 5257 "RajcePublishing.c" -} - - -static void -_publishing_rajce_rajce_publisher_on_close_album_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_on_close_album_complete ((PublishingRajceRajcePublisher*) self, _sender); -#line 5267 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_do_close_album (PublishingRajceRajcePublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingRajceCloseAlbumTransaction* close_album_trans = NULL; - PublishingRajceSession* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRajceCloseAlbumTransaction* _tmp4_; - PublishingRajceCloseAlbumTransaction* _tmp5_; - GError * _inner_error_ = NULL; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:633: ACTION: closing album"); -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->session; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rajce_rajce_publisher_get_url (self); -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rajce_close_album_transaction_new (_tmp1_, _tmp3_); -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - close_album_trans = _tmp5_; -#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (close_album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_rajce_rajce_publisher_on_close_album_error_publishing_rest_support_transaction_network_error, self, 0); -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (close_album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_rajce_rajce_publisher_on_close_album_complete_publishing_rest_support_transaction_completed, self, 0); -#line 5308 "RajcePublishing.c" - { -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (close_album_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5316 "RajcePublishing.c" - goto __catch26_spit_publishing_publishing_error; - } -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (close_album_trans); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5327 "RajcePublishing.c" - } - } - goto __finally26; - __catch26_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp6_; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:644: ERROR: close album"); -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = err; -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp6_); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 5347 "RajcePublishing.c" - } - __finally26: -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (close_album_trans); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5360 "RajcePublishing.c" - } -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_transaction_unref0 (close_album_trans); -#line 5364 "RajcePublishing.c" -} - - -/** - * Event triggered when the close album completes successfully. - */ -static void -publishing_rajce_rajce_publisher_on_close_album_complete (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:654: EVENT: on_close_album_complete"); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_close_album_complete_publishing_rest_support_transaction_completed, self); -#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_close_album_error_publishing_rest_support_transaction_network_error, self); -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:657: RajcePlugin: close album: %s", _tmp3_); -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 5402 "RajcePublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp4_; - gchar* _tmp5_; - PublishingRESTSupportXmlDocument* _tmp6_; - PublishingRESTSupportXmlDocument* _tmp7_; - xmlNode* response = NULL; - PublishingRESTSupportXmlDocument* _tmp8_; - xmlNode* _tmp9_; - xmlNode* _tmp10_ = NULL; - PublishingRESTSupportXmlDocument* _tmp11_; - xmlNode* _tmp12_; - xmlNode* _tmp13_; - gchar* sessionToken = NULL; - gchar* _tmp14_; - PublishingRajceSession* _tmp15_; - const gchar* _tmp16_; - PublishingRajceSession* _tmp17_; -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (txn); -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = _tmp4_; -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = publishing_rest_support_xml_document_parse_string (_tmp5_, _publishing_rajce_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = _tmp6_; -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp5_); -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - doc = _tmp7_; -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5437 "RajcePublishing.c" - goto __catch27_spit_publishing_publishing_error; - } -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5446 "RajcePublishing.c" - } -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = doc; -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = publishing_rest_support_xml_document_get_root_node (_tmp8_); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - response = _tmp9_; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = doc; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = response; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = publishing_rest_support_xml_document_get_named_child (_tmp11_, _tmp12_, "sessionToken", &_inner_error_); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp13_; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5468 "RajcePublishing.c" - goto __catch27_spit_publishing_publishing_error; - } -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5479 "RajcePublishing.c" - } -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = (gchar*) xmlNodeGetContent (_tmp10_); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - sessionToken = _tmp14_; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = self->priv->session; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = sessionToken; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_usertoken (_tmp15_, _tmp16_); -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = self->priv->session; -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_set_albumtoken (_tmp17_, NULL); -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (sessionToken); -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 5499 "RajcePublishing.c" - } - goto __finally27; - __catch27_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp18_; -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 668 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:668: ERROR: on_close_album_complete"); -#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = err; -#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, _tmp18_); -#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5520 "RajcePublishing.c" - } - __finally27: -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5531 "RajcePublishing.c" - } -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_success_pane (self); -#line 5535 "RajcePublishing.c" -} - - -/** - * Event triggered when the close album transaction fails due to a network error. - */ -static void -publishing_rajce_rajce_publisher_on_close_album_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:680: EVENT: on_close_album_error"); -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_close_album_complete_publishing_rest_support_transaction_completed, self); -#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_rajce_publisher_on_close_album_error_publishing_rest_support_transaction_network_error, self); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_success_pane (self); -#line 5565 "RajcePublishing.c" -} - - -/** - * Action to display the success pane in the publishing dialog. - */ -static void -publishing_rajce_rajce_publisher_do_show_success_pane (PublishingRajceRajcePublisher* self) -{ - gboolean _tmp0_ = FALSE; - SpitPublishingPluginHost* _tmp9_; - SpitPublishingPluginHost* _tmp10_; - GError * _inner_error_ = NULL; -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:694: ACTION: installing success pane"); -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (publishing_rajce_rajce_publisher_get_show_album (self)) { -#line 5585 "RajcePublishing.c" - PublishingRajceSession* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->session; -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = publishing_rajce_session_get_albumticket (_tmp1_); -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _tmp3_ != NULL; -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp3_); -#line 5599 "RajcePublishing.c" - } else { -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = FALSE; -#line 5603 "RajcePublishing.c" - } -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp0_) { -#line 5607 "RajcePublishing.c" - { - PublishingRajceSession* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->session; -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = publishing_rajce_session_get_albumticket (_tmp4_); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _tmp5_; -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = g_strconcat ("xdg-open ", _tmp6_, NULL); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = _tmp7_; -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_spawn_command_line_async (_tmp8_, &_inner_error_); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp8_); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp6_); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == G_SPAWN_ERROR) { -#line 5634 "RajcePublishing.c" - goto __catch28_g_spawn_error; - } -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5643 "RajcePublishing.c" - } - } - goto __finally28; - __catch28_g_spawn_error: - { - GError* e = NULL; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - e = _inner_error_; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (e); -#line 5656 "RajcePublishing.c" - } - __finally28: -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5667 "RajcePublishing.c" - } - } -#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = self->priv->host; -#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp9_, FALSE); -#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = self->priv->host; -#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_install_success_pane (_tmp10_); -#line 5678 "RajcePublishing.c" -} - - -/** - * Helper event to handle network errors. - */ -static void -publishing_rajce_rajce_publisher_on_network_error (PublishingRajceRajcePublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:714: EVENT: on_network_error"); -#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error (self, err); -#line 5698 "RajcePublishing.c" -} - - -/** - * Action to display an error to the user. - */ -static void -publishing_rajce_rajce_publisher_do_show_error (PublishingRajceRajcePublisher* self, - GError* e) -{ - gchar* error_type = NULL; - gchar* _tmp0_; - const gchar* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 723 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:723: ACTION: do_show_error"); -#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup ("UNKNOWN"); -#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - error_type = _tmp0_; -#line 725 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER)) { -#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_authentication_pane (self, PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER); -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (error_type); -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return; -#line 5731 "RajcePublishing.c" - } else { -#line 729 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_COMMUNICATION_FAILED)) { -#line 5735 "RajcePublishing.c" - gchar* _tmp1_; -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup ("COMMUNICATION_FAILED"); -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (error_type); -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - error_type = _tmp1_; -#line 5743 "RajcePublishing.c" - } else { -#line 731 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR)) { -#line 5747 "RajcePublishing.c" - gchar* _tmp2_; -#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = g_strdup ("PROTOCOL_ERROR"); -#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (error_type); -#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - error_type = _tmp2_; -#line 5755 "RajcePublishing.c" - } else { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_SERVICE_ERROR)) { -#line 5759 "RajcePublishing.c" - gchar* _tmp3_; -#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = g_strdup ("SERVICE_ERROR"); -#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (error_type); -#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - error_type = _tmp3_; -#line 5767 "RajcePublishing.c" - } else { -#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE)) { -#line 5771 "RajcePublishing.c" - gchar* _tmp4_; -#line 736 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = g_strdup ("MALFORMED_RESPONSE"); -#line 736 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (error_type); -#line 736 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - error_type = _tmp4_; -#line 5779 "RajcePublishing.c" - } else { -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR)) { -#line 5783 "RajcePublishing.c" - gchar* _tmp5_; -#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = g_strdup ("LOCAL_FILE_ERROR"); -#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (error_type); -#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - error_type = _tmp5_; -#line 5791 "RajcePublishing.c" - } else { -#line 739 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION)) { -#line 5795 "RajcePublishing.c" - gchar* _tmp6_; -#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = g_strdup ("EXPIRED_SESSION"); -#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (error_type); -#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - error_type = _tmp6_; -#line 5803 "RajcePublishing.c" - } - } - } - } - } - } - } -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = error_type; -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = e->message; -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = g_strdup_printf ("Unhandled error: type=%s; message='%s'", _tmp7_, _tmp8_); -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp9_; -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:743: %s", _tmp10_); -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp10_); -#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_do_show_error_message (self, _ ("An error message occurred when publishing to Rajce. Please try again.")); -#line 721 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (error_type); -#line 5827 "RajcePublishing.c" -} - - -/** - * Action to display an error message to the user. - */ -static void -publishing_rajce_rajce_publisher_do_show_error_message (PublishingRajceRajcePublisher* self, - const gchar* message) -{ - SpitPublishingPluginHost* _tmp0_; -#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (self)); -#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (message != NULL); -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:752: ACTION: do_show_error_message"); -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->host; -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_install_static_message_pane (_tmp0_, message, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 5849 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_class_init (PublishingRajceRajcePublisherClass * klass) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_parent_class = g_type_class_peek_parent (klass); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingRajceRajcePublisherPrivate)); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_rajce_rajce_publisher_finalize; -#line 5862 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_service = (SpitPublishingService* (*) (SpitPublishingPublisher *)) publishing_rajce_rajce_publisher_real_get_service; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->is_running = (gboolean (*) (SpitPublishingPublisher *)) publishing_rajce_rajce_publisher_real_is_running; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->start = (void (*) (SpitPublishingPublisher *)) publishing_rajce_rajce_publisher_real_start; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->stop = (void (*) (SpitPublishingPublisher *)) publishing_rajce_rajce_publisher_real_stop; -#line 5879 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_instance_init (PublishingRajceRajcePublisher * self) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv = PUBLISHING_RAJCE_RAJCE_PUBLISHER_GET_PRIVATE (self); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->host = NULL; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter = NULL; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter_target = self; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->service = NULL; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->running = FALSE; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = NULL; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums_length1 = 0; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->parameters = NULL; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->media_type = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE; -#line 5910 "RajcePublishing.c" -} - - -static void -publishing_rajce_rajce_publisher_finalize (GObject * obj) -{ - PublishingRajceRajcePublisher * self; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_RAJCE_PUBLISHER, PublishingRajceRajcePublisher); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->host); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter = NULL; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->service); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_rajce_album_unref), NULL); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_OBJECT_CLASS (publishing_rajce_rajce_publisher_parent_class)->finalize (obj); -#line 5940 "RajcePublishing.c" -} - - -GType -publishing_rajce_rajce_publisher_get_type (void) -{ - static volatile gsize publishing_rajce_rajce_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_rajce_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceRajcePublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_rajce_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceRajcePublisher), 0, (GInstanceInitFunc) publishing_rajce_rajce_publisher_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_rajce_rajce_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_rajce_rajce_publisher_type_id; - publishing_rajce_rajce_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingRajceRajcePublisher", &g_define_type_info, 0); - g_type_add_interface_static (publishing_rajce_rajce_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info); - g_once_init_leave (&publishing_rajce_rajce_publisher_type_id__volatile, publishing_rajce_rajce_publisher_type_id); - } - return publishing_rajce_rajce_publisher_type_id__volatile; -} - - -PublishingRajceAlbum* -publishing_rajce_album_construct (GType object_type, - gint id, - const gchar* albumName, - const gchar* url, - const gchar* thumbUrl, - const gchar* createDate, - const gchar* updateDate, - gboolean hidden, - gboolean secure, - gint photoCount) -{ - PublishingRajceAlbum* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (albumName != NULL, NULL); -#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (thumbUrl != NULL, NULL); -#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (createDate != NULL, NULL); -#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (updateDate != NULL, NULL); -#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceAlbum*) g_type_create_instance (object_type); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->id = id; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (albumName); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->albumName); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->albumName = _tmp0_; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (url); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->url); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->url = _tmp1_; -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = g_strdup (thumbUrl); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->thumbUrl); -#line 776 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->thumbUrl = _tmp2_; -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = g_strdup (createDate); -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->createDate); -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->createDate = _tmp3_; -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = g_strdup (updateDate); -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->updateDate); -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->updateDate = _tmp4_; -#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->hidden = hidden; -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->secure = secure; -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->photoCount = photoCount; -#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 6030 "RajcePublishing.c" -} - - -PublishingRajceAlbum* -publishing_rajce_album_new (gint id, - const gchar* albumName, - const gchar* url, - const gchar* thumbUrl, - const gchar* createDate, - const gchar* updateDate, - gboolean hidden, - gboolean secure, - gint photoCount) -{ -#line 771 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_album_construct (PUBLISHING_RAJCE_TYPE_ALBUM, id, albumName, url, thumbUrl, createDate, updateDate, hidden, secure, photoCount); -#line 6047 "RajcePublishing.c" -} - - -gint -publishing_rajce_album_compare_albums (PublishingRajceAlbum* a, - PublishingRajceAlbum* b) -{ - gint result = 0; - gboolean _tmp0_ = FALSE; - const gchar* _tmp3_; - const gchar* _tmp4_; -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail ((a == NULL) || PUBLISHING_RAJCE_IS_ALBUM (a), 0); -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail ((b == NULL) || PUBLISHING_RAJCE_IS_ALBUM (b), 0); -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (a == NULL) { -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = b == NULL; -#line 6067 "RajcePublishing.c" - } else { -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = FALSE; -#line 6071 "RajcePublishing.c" - } -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp0_) { -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = 0; -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 6079 "RajcePublishing.c" - } else { - gboolean _tmp1_ = FALSE; -#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (a == NULL) { -#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = b != NULL; -#line 6086 "RajcePublishing.c" - } else { -#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = FALSE; -#line 6090 "RajcePublishing.c" - } -#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp1_) { -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = 1; -#line 791 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 6098 "RajcePublishing.c" - } else { - gboolean _tmp2_ = FALSE; -#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (a != NULL) { -#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = b == NULL; -#line 6105 "RajcePublishing.c" - } else { -#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = FALSE; -#line 6109 "RajcePublishing.c" - } -#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp2_) { -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = -1; -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 6117 "RajcePublishing.c" - } - } - } -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = b->updateDate; -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = a->updateDate; -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = g_ascii_strcasecmp (_tmp3_, _tmp4_); -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 6129 "RajcePublishing.c" -} - - -static void -publishing_rajce_value_album_init (GValue* value) -{ -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 6138 "RajcePublishing.c" -} - - -static void -publishing_rajce_value_album_free_value (GValue* value) -{ -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (value->data[0].v_pointer) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_album_unref (value->data[0].v_pointer); -#line 6149 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_value_album_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (src_value->data[0].v_pointer) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dest_value->data[0].v_pointer = publishing_rajce_album_ref (src_value->data[0].v_pointer); -#line 6162 "RajcePublishing.c" - } else { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 6166 "RajcePublishing.c" - } -} - - -static gpointer -publishing_rajce_value_album_peek_pointer (const GValue* value) -{ -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return value->data[0].v_pointer; -#line 6176 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_value_album_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (collect_values[0].v_pointer) { -#line 6188 "RajcePublishing.c" - PublishingRajceAlbum * object; - object = collect_values[0].v_pointer; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6195 "RajcePublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6199 "RajcePublishing.c" - } -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = publishing_rajce_album_ref (object); -#line 6203 "RajcePublishing.c" - } else { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 6207 "RajcePublishing.c" - } -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 6211 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_value_album_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRajceAlbum ** object_p; - object_p = collect_values[0].v_pointer; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!object_p) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 6227 "RajcePublishing.c" - } -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!value->data[0].v_pointer) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = NULL; -#line 6233 "RajcePublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = value->data[0].v_pointer; -#line 6237 "RajcePublishing.c" - } else { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = publishing_rajce_album_ref (value->data[0].v_pointer); -#line 6241 "RajcePublishing.c" - } -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 6245 "RajcePublishing.c" -} - - -GParamSpec* -publishing_rajce_param_spec_album (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRajceParamSpecAlbum* spec; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_RAJCE_TYPE_ALBUM), NULL); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return G_PARAM_SPEC (spec); -#line 6265 "RajcePublishing.c" -} - - -gpointer -publishing_rajce_value_get_album (const GValue* value) -{ -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ALBUM), NULL); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return value->data[0].v_pointer; -#line 6276 "RajcePublishing.c" -} - - -void -publishing_rajce_value_set_album (GValue* value, - gpointer v_object) -{ - PublishingRajceAlbum * old; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ALBUM)); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - old = value->data[0].v_pointer; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (v_object) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_ALBUM)); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = v_object; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_album_ref (value->data[0].v_pointer); -#line 6299 "RajcePublishing.c" - } else { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 6303 "RajcePublishing.c" - } -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (old) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_album_unref (old); -#line 6309 "RajcePublishing.c" - } -} - - -void -publishing_rajce_value_take_album (GValue* value, - gpointer v_object) -{ - PublishingRajceAlbum * old; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ALBUM)); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - old = value->data[0].v_pointer; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (v_object) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_ALBUM)); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = v_object; -#line 6331 "RajcePublishing.c" - } else { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 6335 "RajcePublishing.c" - } -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (old) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_album_unref (old); -#line 6341 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_album_class_init (PublishingRajceAlbumClass * klass) -{ -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_album_parent_class = g_type_class_peek_parent (klass); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRajceAlbumClass *) klass)->finalize = publishing_rajce_album_finalize; -#line 6353 "RajcePublishing.c" -} - - -static void -publishing_rajce_album_instance_init (PublishingRajceAlbum * self) -{ -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->ref_count = 1; -#line 6362 "RajcePublishing.c" -} - - -static void -publishing_rajce_album_finalize (PublishingRajceAlbum * obj) -{ - PublishingRajceAlbum * self; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_ALBUM, PublishingRajceAlbum); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_destroy (self); -#line 762 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->albumName); -#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->url); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->thumbUrl); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->createDate); -#line 766 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->updateDate); -#line 6384 "RajcePublishing.c" -} - - -GType -publishing_rajce_album_get_type (void) -{ - static volatile gsize publishing_rajce_album_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_album_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rajce_value_album_init, publishing_rajce_value_album_free_value, publishing_rajce_value_album_copy_value, publishing_rajce_value_album_peek_pointer, "p", publishing_rajce_value_album_collect_value, "p", publishing_rajce_value_album_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceAlbumClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_album_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceAlbum), 0, (GInstanceInitFunc) publishing_rajce_album_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rajce_album_type_id; - publishing_rajce_album_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRajceAlbum", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_rajce_album_type_id__volatile, publishing_rajce_album_type_id); - } - return publishing_rajce_album_type_id__volatile; -} - - -gpointer -publishing_rajce_album_ref (gpointer instance) -{ - PublishingRajceAlbum * self; - self = instance; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return instance; -#line 6413 "RajcePublishing.c" -} - - -void -publishing_rajce_album_unref (gpointer instance) -{ - PublishingRajceAlbum * self; - self = instance; -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - PUBLISHING_RAJCE_ALBUM_GET_CLASS (self)->finalize (self); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 6428 "RajcePublishing.c" - } -} - - -PublishingRajceUploader* -publishing_rajce_uploader_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingRajcePublishingParameters* parameters) -{ - PublishingRajceUploader* self = NULL; - PublishingRajcePublishingParameters* _tmp0_; - gchar* _tmp1_; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishables, publishables_length1); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _publishing_rajce_publishing_parameters_ref0 (parameters); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->parameters = _tmp0_; -#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (url); -#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->url); -#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->url = _tmp1_; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 6466 "RajcePublishing.c" -} - - -PublishingRajceUploader* -publishing_rajce_uploader_new (PublishingRajceSession* session, - const gchar* url, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingRajcePublishingParameters* parameters) -{ -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_uploader_construct (PUBLISHING_RAJCE_TYPE_UPLOADER, session, url, publishables, publishables_length1, parameters); -#line 6479 "RajcePublishing.c" -} - - -static PublishingRESTSupportTransaction* -publishing_rajce_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable) -{ - PublishingRajceUploader * self; - PublishingRESTSupportTransaction* result = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingRajceSession* _tmp1_; - const gchar* _tmp2_; - PublishingRajcePublishingParameters* _tmp3_; - PublishingRajceAddPhotoTransaction* _tmp4_; - PublishingRESTSupportTransaction* _tmp5_; -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploader); -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSession); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = self->priv->url; -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->parameters; -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = publishing_rajce_add_photo_transaction_new (_tmp1_, _tmp2_, _tmp3_, publishable); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp5_; -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 6517 "RajcePublishing.c" -} - - -static void -publishing_rajce_uploader_class_init (PublishingRajceUploaderClass * klass) -{ -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_uploader_parent_class = g_type_class_peek_parent (klass); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_rajce_uploader_finalize; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingRajceUploaderPrivate)); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_rajce_uploader_real_create_transaction; -#line 6532 "RajcePublishing.c" -} - - -static void -publishing_rajce_uploader_instance_init (PublishingRajceUploader * self) -{ -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv = PUBLISHING_RAJCE_UPLOADER_GET_PRIVATE (self); -#line 6541 "RajcePublishing.c" -} - - -static void -publishing_rajce_uploader_finalize (PublishingRESTSupportBatchUploader * obj) -{ - PublishingRajceUploader * self; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_UPLOADER, PublishingRajceUploader); -#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters); -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->url); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_rajce_uploader_parent_class)->finalize (obj); -#line 6557 "RajcePublishing.c" -} - - -GType -publishing_rajce_uploader_get_type (void) -{ - static volatile gsize publishing_rajce_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_uploader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceUploader), 0, (GInstanceInitFunc) publishing_rajce_uploader_instance_init, NULL }; - GType publishing_rajce_uploader_type_id; - publishing_rajce_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingRajceUploader", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_uploader_type_id__volatile, publishing_rajce_uploader_type_id); - } - return publishing_rajce_uploader_type_id__volatile; -} - - -GType -publishing_rajce_authentication_pane_mode_get_type (void) -{ - static volatile gsize publishing_rajce_authentication_pane_mode_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_authentication_pane_mode_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO, "PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO", "intro"}, {PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER, "PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER", "failed-retry-user"}, {0, NULL, NULL}}; - GType publishing_rajce_authentication_pane_mode_type_id; - publishing_rajce_authentication_pane_mode_type_id = g_enum_register_static ("PublishingRajceAuthenticationPaneMode", values); - g_once_init_leave (&publishing_rajce_authentication_pane_mode_type_id__volatile, publishing_rajce_authentication_pane_mode_type_id); - } - return publishing_rajce_authentication_pane_mode_type_id__volatile; -} - - -static void -_publishing_rajce_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_on_user_changed ((PublishingRajceAuthenticationPane*) self); -#line 6595 "RajcePublishing.c" -} - - -static void -_publishing_rajce_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_on_password_changed ((PublishingRajceAuthenticationPane*) self); -#line 6605 "RajcePublishing.c" -} - - -static void -_publishing_rajce_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_on_login_button_clicked ((PublishingRajceAuthenticationPane*) self); -#line 6615 "RajcePublishing.c" -} - - -PublishingRajceAuthenticationPane* -publishing_rajce_authentication_pane_construct (GType object_type, - PublishingRajceRajcePublisher* publisher, - PublishingRajceAuthenticationPaneMode mode) -{ - PublishingRajceAuthenticationPane * self = NULL; - GtkBox* _tmp0_; - GError * _inner_error_ = NULL; -#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (publisher), NULL); -#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceAuthenticationPane*) g_object_new (object_type, NULL); -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_object_ref_sink (_tmp0_); -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->pane_widget = _tmp0_; -#line 6639 "RajcePublishing.c" - { - GtkBuilder* _tmp1_; - GtkBuilder* _tmp2_; - GtkBuilder* _tmp3_; - GtkBox* content = NULL; - GtkBuilder* _tmp4_; - GObject* _tmp5_; - GtkBox* _tmp6_; - GtkLabel* message_label = NULL; - GtkBuilder* _tmp7_; - GObject* _tmp8_; - GtkLabel* _tmp9_; - GtkBuilder* _tmp16_; - GObject* _tmp17_; - GtkEntry* _tmp18_; - gchar* persistent_username = NULL; - gchar* _tmp19_; - const gchar* _tmp20_; - GtkBuilder* _tmp23_; - GObject* _tmp24_; - GtkEntry* _tmp25_; - gchar* persistent_token = NULL; - gchar* _tmp26_; - const gchar* _tmp27_; - GtkBuilder* _tmp30_; - GObject* _tmp31_; - GtkCheckButton* _tmp32_; - GtkCheckButton* _tmp33_; - GtkBuilder* _tmp34_; - GObject* _tmp35_; - GtkButton* _tmp36_; - GtkLabel* label2 = NULL; - GtkBuilder* _tmp37_; - GObject* _tmp38_; - GtkLabel* _tmp39_; - GtkLabel* label3 = NULL; - GtkBuilder* _tmp40_; - GObject* _tmp41_; - GtkLabel* _tmp42_; - GtkLabel* _tmp43_; - GtkLabel* _tmp44_; - GtkCheckButton* _tmp45_; - GtkButton* _tmp46_; - GtkEntry* _tmp47_; - GtkEntry* _tmp48_; - GtkButton* _tmp49_; - GtkBox* _tmp50_; - GtkContainer* _tmp51_; - GtkContainer* _tmp52_; - GtkBox* _tmp53_; - GtkBox* _tmp54_; - GtkBox* _tmp55_; - SpitPublishingPluginHost* _tmp56_; - SpitPublishingPluginHost* _tmp57_; - GtkButton* _tmp58_; -#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = gtk_builder_new (); -#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->builder = _tmp1_; -#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = self->priv->builder; -#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_builder_add_from_resource (_tmp2_, PLUGIN_RESOURCE_PATH "/rajce_authentication_pane.ui", &_inner_error_); -#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6707 "RajcePublishing.c" - goto __catch29_g_error; - } -#line 854 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->builder; -#line 854 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_builder_connect_signals (_tmp3_, NULL); -#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->builder; -#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = gtk_builder_get_object (_tmp4_, "content"); -#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gtk_box_get_type ()) ? ((GtkBox*) _tmp5_) : NULL); -#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - content = _tmp6_; -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = self->priv->builder; -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = gtk_builder_get_object (_tmp7_, "message_label"); -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp8_) : NULL); -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - message_label = _tmp9_; -#line 857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - switch (mode) { -#line 857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - case PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_INTRO: -#line 6734 "RajcePublishing.c" - { - GtkLabel* _tmp10_; - const gchar* _tmp11_; -#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = message_label; -#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = publishing_rajce_authentication_pane_INTRO_MESSAGE; -#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_label_set_text (_tmp10_, _tmp11_); -#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - break; -#line 6746 "RajcePublishing.c" - } -#line 857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - case PUBLISHING_RAJCE_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER: -#line 6750 "RajcePublishing.c" - { - GtkLabel* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; -#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = message_label; -#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = publishing_rajce_authentication_pane_FAILED_RETRY_USER_MESSAGE; -#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = g_strdup_printf ("%s\n\n%s", _ ("Invalid User Email or Password"), _tmp13_); -#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = _tmp14_; -#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_label_set_markup (_tmp12_, _tmp15_); -#line 864 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp15_); -#line 866 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - break; -#line 6770 "RajcePublishing.c" - } - default: -#line 857 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - break; -#line 6775 "RajcePublishing.c" - } -#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = self->priv->builder; -#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = gtk_builder_get_object (_tmp16_, "username_entry"); -#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp17_) : NULL); -#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->username_entry); -#line 868 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->username_entry = _tmp18_; -#line 869 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = publishing_rajce_rajce_publisher_get_username (publisher); -#line 869 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - persistent_username = _tmp19_; -#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = persistent_username; -#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp20_ != NULL) { -#line 6795 "RajcePublishing.c" - GtkEntry* _tmp21_; - const gchar* _tmp22_; -#line 872 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = self->priv->username_entry; -#line 872 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = persistent_username; -#line 872 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_entry_set_text (_tmp21_, _tmp22_); -#line 6804 "RajcePublishing.c" - } -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = self->priv->builder; -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = gtk_builder_get_object (_tmp23_, "password_entry"); -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp25_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp24_) : NULL); -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->password_entry); -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->password_entry = _tmp25_; -#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = publishing_rajce_rajce_publisher_get_token (publisher); -#line 875 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - persistent_token = _tmp26_; -#line 876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp27_ = persistent_token; -#line 876 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp27_ != NULL) { -#line 6824 "RajcePublishing.c" - GtkEntry* _tmp28_; - const gchar* _tmp29_; -#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp28_ = self->priv->password_entry; -#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp29_ = persistent_token; -#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_entry_set_text (_tmp28_, _tmp29_); -#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->crypt = FALSE; -#line 6835 "RajcePublishing.c" - } else { -#line 883 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->crypt = TRUE; -#line 6839 "RajcePublishing.c" - } -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp30_ = self->priv->builder; -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp31_ = gtk_builder_get_object (_tmp30_, "remember_checkbutton"); -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp32_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp31_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp31_) : NULL); -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->remember_checkbutton); -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->remember_checkbutton = _tmp32_; -#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp33_ = self->priv->remember_checkbutton; -#line 886 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_toggle_button_get_type (), GtkToggleButton), publishing_rajce_rajce_publisher_get_remember (publisher)); -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp34_ = self->priv->builder; -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp35_ = gtk_builder_get_object (_tmp34_, "login_button"); -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp36_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp35_, gtk_button_get_type ()) ? ((GtkButton*) _tmp35_) : NULL); -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->login_button); -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->login_button = _tmp36_; -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp37_ = self->priv->builder; -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp38_ = gtk_builder_get_object (_tmp37_, "label2"); -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp39_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp38_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp38_) : NULL); -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - label2 = _tmp39_; -#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp40_ = self->priv->builder; -#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp41_ = gtk_builder_get_object (_tmp40_, "label3"); -#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp42_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp41_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp41_) : NULL); -#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - label3 = _tmp42_; -#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp43_ = label2; -#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_label_set_label (_tmp43_, _ ("_Email address")); -#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp44_ = label3; -#line 893 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_label_set_label (_tmp44_, _ ("_Password")); -#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp45_ = self->priv->remember_checkbutton; -#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_button_get_type (), GtkButton), _ ("_Remember")); -#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp46_ = self->priv->login_button; -#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_button_set_label (_tmp46_, _ ("Log in")); -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp47_ = self->priv->username_entry; -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_rajce_authentication_pane_on_user_changed_gtk_editable_changed, self, 0); -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp48_ = self->priv->password_entry; -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_rajce_authentication_pane_on_password_changed_gtk_editable_changed, self, 0); -#line 899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp49_ = self->priv->login_button; -#line 899 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (_tmp49_, "clicked", (GCallback) _publishing_rajce_authentication_pane_on_login_button_clicked_gtk_button_clicked, self, 0); -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp50_ = content; -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp51_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_widget_get_type (), GtkWidget)); -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp52_ = _tmp51_; -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp53_ = content; -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_container_remove (_tmp52_, G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_widget_get_type (), GtkWidget)); -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp54_ = self->priv->pane_widget; -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp55_ = content; -#line 901 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, gtk_widget_get_type (), GtkWidget)); -#line 902 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp56_ = publishing_rajce_rajce_publisher_get_host (publisher); -#line 902 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp57_ = _tmp56_; -#line 902 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp58_ = self->priv->login_button; -#line 902 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp57_, G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_widget_get_type (), GtkWidget)); -#line 902 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (_tmp57_); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (label3); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (label2); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (persistent_token); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (persistent_username); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (message_label); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (content); -#line 6947 "RajcePublishing.c" - } - goto __finally29; - __catch29_g_error: - { - GError* e = NULL; - GError* _tmp59_; - const gchar* _tmp60_; -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - e = _inner_error_; -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp59_ = e; -#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp60_ = _tmp59_->message; -#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_warning ("RajcePublishing.vala:906: Could not load UI: %s", _tmp60_); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (e); -#line 6967 "RajcePublishing.c" - } - __finally29: -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 849 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 6978 "RajcePublishing.c" - } -#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 6982 "RajcePublishing.c" -} - - -PublishingRajceAuthenticationPane* -publishing_rajce_authentication_pane_new (PublishingRajceRajcePublisher* publisher, - PublishingRajceAuthenticationPaneMode mode) -{ -#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_authentication_pane_construct (PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, publisher, mode); -#line 6992 "RajcePublishing.c" -} - - -GtkWidget* -publishing_rajce_authentication_pane_get_default_widget (PublishingRajceAuthenticationPane* self) -{ - GtkWidget* result = NULL; - GtkButton* _tmp0_; - GtkWidget* _tmp1_; -#line 910 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE (self), NULL); -#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->login_button; -#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 7012 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_on_login_button_clicked (PublishingRajceAuthenticationPane* self) -{ - gchar* token = NULL; - GtkEntry* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gboolean _tmp3_; - GtkEntry* _tmp6_; - const gchar* _tmp7_; - const gchar* _tmp8_; - GtkCheckButton* _tmp9_; -#line 915 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE (self)); -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->password_entry; -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - token = _tmp2_; -#line 918 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->crypt; -#line 918 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp3_) { -#line 7042 "RajcePublishing.c" - const gchar* _tmp4_; - gchar* _tmp5_; -#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = token; -#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = g_compute_checksum_for_string (G_CHECKSUM_MD5, _tmp4_, (gsize) -1); -#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (token); -#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - token = _tmp5_; -#line 7053 "RajcePublishing.c" - } -#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = self->priv->username_entry; -#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = gtk_entry_get_text (_tmp6_); -#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = token; -#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = self->priv->remember_checkbutton; -#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_emit (self, publishing_rajce_authentication_pane_signals[PUBLISHING_RAJCE_AUTHENTICATION_PANE_LOGIN_SIGNAL], 0, _tmp7_, _tmp8_, gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 915 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (token); -#line 7067 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_on_user_changed (PublishingRajceAuthenticationPane* self) -{ -#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE (self)); -#line 927 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_update_login_button_sensitivity (self); -#line 7078 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_on_password_changed (PublishingRajceAuthenticationPane* self) -{ -#line 930 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE (self)); -#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->crypt = TRUE; -#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_update_login_button_sensitivity (self); -#line 7091 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_update_login_button_sensitivity (PublishingRajceAuthenticationPane* self) -{ - gboolean _tmp0_ = FALSE; - GtkEntry* _tmp1_; - guint _tmp2_; - guint _tmp3_; - GtkButton* _tmp7_; -#line 936 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_AUTHENTICATION_PANE (self)); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->username_entry; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = gtk_entry_get_text_length (_tmp1_); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = _tmp2_; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp3_ > ((guint) 0)) { -#line 7113 "RajcePublishing.c" - GtkEntry* _tmp4_; - guint _tmp5_; - guint _tmp6_; -#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->password_entry; -#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = gtk_entry_get_text_length (_tmp4_); -#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _tmp5_; -#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _tmp6_ > ((guint) 0); -#line 7125 "RajcePublishing.c" - } else { -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = FALSE; -#line 7129 "RajcePublishing.c" - } -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = self->priv->login_button; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), _tmp0_); -#line 7135 "RajcePublishing.c" -} - - -static GtkWidget* -publishing_rajce_authentication_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingRajceAuthenticationPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 942 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane); -#line 944 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->pane_widget; -#line 944 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 944 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 944 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 7156 "RajcePublishing.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_rajce_authentication_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingRajceAuthenticationPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 947 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane); -#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 7171 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingRajceAuthenticationPane * self; - GtkEntry* _tmp0_; - GtkEntry* _tmp1_; - GtkButton* _tmp2_; -#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane); -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->username_entry; -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 955 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->password_entry; -#line 955 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_entry_set_activates_default (_tmp1_, TRUE); -#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = self->priv->login_button; -#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_can_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 957 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_update_login_button_sensitivity (self); -#line 7198 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingRajceAuthenticationPane * self; -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane); -#line 7208 "RajcePublishing.c" -} - - -static void -g_cclosure_user_marshal_VOID__STRING_STRING_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__STRING_STRING_BOOLEAN) (gpointer data1, const char* arg_1, const char* arg_2, gboolean arg_3, gpointer data2); - register GMarshalFunc_VOID__STRING_STRING_BOOLEAN callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (n_param_values == 4); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - data1 = closure->data; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - data2 = param_values->data[0].v_pointer; -#line 7234 "RajcePublishing.c" - } else { -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - data1 = param_values->data[0].v_pointer; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - data2 = closure->data; -#line 7240 "RajcePublishing.c" - } -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - callback = (GMarshalFunc_VOID__STRING_STRING_BOOLEAN) (marshal_data ? marshal_data : cc->callback); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), g_value_get_boolean (param_values + 3), data2); -#line 7246 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_class_init (PublishingRajceAuthenticationPaneClass * klass) -{ - gchar* _tmp0_; - gchar* _tmp1_; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_parent_class = g_type_class_peek_parent (klass); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingRajceAuthenticationPanePrivate)); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_rajce_authentication_pane_finalize; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_signals[PUBLISHING_RAJCE_AUTHENTICATION_PANE_LOGIN_SIGNAL] = g_signal_new ("login", PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING_BOOLEAN, G_TYPE_NONE, 3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_BOOLEAN); -#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (_ ("Enter email and password associated with your Rajce account.")); -#line 833 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_INTRO_MESSAGE = _tmp0_; -#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (_ ("Invalid email and/or password. Please try again")); -#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_FAILED_RETRY_USER_MESSAGE = _tmp1_; -#line 7271 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_authentication_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_rajce_authentication_pane_real_get_widget; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_rajce_authentication_pane_real_get_preferred_geometry; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_rajce_authentication_pane_real_on_pane_installed; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_rajce_authentication_pane_real_on_pane_uninstalled; -#line 7288 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_instance_init (PublishingRajceAuthenticationPane * self) -{ -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv = PUBLISHING_RAJCE_AUTHENTICATION_PANE_GET_PRIVATE (self); -#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->pane_widget = NULL; -#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->crypt = TRUE; -#line 7301 "RajcePublishing.c" -} - - -static void -publishing_rajce_authentication_pane_finalize (GObject * obj) -{ - PublishingRajceAuthenticationPane * self; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_AUTHENTICATION_PANE, PublishingRajceAuthenticationPane); -#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 838 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->username_entry); -#line 839 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->password_entry); -#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->remember_checkbutton); -#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->login_button); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_OBJECT_CLASS (publishing_rajce_authentication_pane_parent_class)->finalize (obj); -#line 7325 "RajcePublishing.c" -} - - -/** - * The authentication pane used when asking service URL, user name and password - * from the user. - */ -GType -publishing_rajce_authentication_pane_get_type (void) -{ - static volatile gsize publishing_rajce_authentication_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_authentication_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceAuthenticationPane), 0, (GInstanceInitFunc) publishing_rajce_authentication_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_rajce_authentication_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_rajce_authentication_pane_type_id; - publishing_rajce_authentication_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingRajceAuthenticationPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_rajce_authentication_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_rajce_authentication_pane_type_id__volatile, publishing_rajce_authentication_pane_type_id); - } - return publishing_rajce_authentication_pane_type_id__volatile; -} - - -static gpointer -_publishing_rajce_album_ref0 (gpointer self) -{ -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self ? publishing_rajce_album_ref (self) : NULL; -#line 7354 "RajcePublishing.c" -} - - -static PublishingRajceAlbum** -_vala_array_dup5 (PublishingRajceAlbum** self, - int length) -{ - PublishingRajceAlbum** result; - int i; -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = g_new0 (PublishingRajceAlbum*, length + 1); -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - for (i = 0; i < length; i++) { -#line 7368 "RajcePublishing.c" - PublishingRajceAlbum* _tmp0_; -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _publishing_rajce_album_ref0 (self[i]); -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result[i] = _tmp0_; -#line 7374 "RajcePublishing.c" - } -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 7378 "RajcePublishing.c" -} - - -static void -_publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked ((PublishingRajcePublishingOptionsPane*) self); -#line 7388 "RajcePublishing.c" -} - - -static void -_publishing_rajce_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_on_create_new_radio_clicked ((PublishingRajcePublishingOptionsPane*) self); -#line 7398 "RajcePublishing.c" -} - - -static void -_publishing_rajce_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 1023 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_on_new_album_entry_changed ((PublishingRajcePublishingOptionsPane*) self); -#line 7408 "RajcePublishing.c" -} - - -static void -_publishing_rajce_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1024 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_on_logout_clicked ((PublishingRajcePublishingOptionsPane*) self); -#line 7418 "RajcePublishing.c" -} - - -static void -_publishing_rajce_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_on_publish_clicked ((PublishingRajcePublishingOptionsPane*) self); -#line 7428 "RajcePublishing.c" -} - - -PublishingRajcePublishingOptionsPane* -publishing_rajce_publishing_options_pane_construct (GType object_type, - PublishingRajceRajcePublisher* publisher, - const gchar* username, - PublishingRajceAlbum** albums, - int albums_length1) -{ - PublishingRajcePublishingOptionsPane * self = NULL; - gchar* _tmp0_; - PublishingRajceAlbum** _tmp1_; - gint _tmp1__length1; - PublishingRajceRajcePublisher* _tmp2_; - GtkBox* _tmp3_; - GError * _inner_error_ = NULL; -#line 985 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_RAJCE_PUBLISHER (publisher), NULL); -#line 985 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (username != NULL, NULL); -#line 985 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajcePublishingOptionsPane*) g_object_new (object_type, NULL); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (username); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->username); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->username = _tmp0_; -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = (albums != NULL) ? _vala_array_dup5 (albums, albums_length1) : ((gpointer) albums); -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1__length1 = albums_length1; -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_rajce_album_unref), NULL); -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = _tmp1_; -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums_length1 = _tmp1__length1; -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _g_object_ref0 (publisher); -#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->publisher); -#line 989 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->publisher = _tmp2_; -#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_object_ref_sink (_tmp3_); -#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->pane_widget = _tmp3_; -#line 7484 "RajcePublishing.c" - { - GtkBuilder* _tmp4_; - GtkBuilder* _tmp5_; - GtkBuilder* _tmp6_; - GtkBuilder* _tmp7_; - GObject* _tmp8_; - GtkBox* _tmp9_; - GtkBuilder* _tmp10_; - GObject* _tmp11_; - GtkLabel* _tmp12_; - GtkBuilder* _tmp13_; - GObject* _tmp14_; - GtkLabel* _tmp15_; - GtkBuilder* _tmp16_; - GObject* _tmp17_; - GtkRadioButton* _tmp18_; - GtkBuilder* _tmp19_; - GObject* _tmp20_; - GtkComboBoxText* _tmp21_; - GtkBuilder* _tmp22_; - GObject* _tmp23_; - GtkRadioButton* _tmp24_; - GtkBuilder* _tmp25_; - GObject* _tmp26_; - GtkEntry* _tmp27_; - GtkBuilder* _tmp28_; - GObject* _tmp29_; - GtkCheckButton* _tmp30_; - GtkCheckButton* _tmp31_; - GtkBuilder* _tmp32_; - GObject* _tmp33_; - GtkCheckButton* _tmp34_; - GtkBuilder* _tmp35_; - GObject* _tmp36_; - GtkButton* _tmp37_; - GtkBuilder* _tmp38_; - GObject* _tmp39_; - GtkButton* _tmp40_; - GtkCheckButton* _tmp41_; - GtkCheckButton* _tmp42_; - GtkLabel* _tmp43_; - gchar* _tmp44_; - gchar* _tmp45_; - GtkLabel* _tmp46_; - GtkRadioButton* _tmp47_; - GtkRadioButton* _tmp48_; - GtkCheckButton* _tmp49_; - GtkButton* _tmp50_; - GtkButton* _tmp51_; - GtkRadioButton* _tmp52_; - GtkRadioButton* _tmp53_; - GtkEntry* _tmp54_; - GtkButton* _tmp55_; - GtkButton* _tmp56_; -#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = gtk_builder_new (); -#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->builder = _tmp4_; -#line 995 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = self->priv->builder; -#line 995 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_builder_add_from_resource (_tmp5_, PLUGIN_RESOURCE_PATH "/rajce_publishing_options_pane.ui", &_inner_error_); -#line 995 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7551 "RajcePublishing.c" - goto __catch30_g_error; - } -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = self->priv->builder; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_builder_connect_signals (_tmp6_, NULL); -#line 998 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = self->priv->builder; -#line 998 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = gtk_builder_get_object (_tmp7_, "rajce_pane_widget"); -#line 998 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_box_get_type (), GtkBox)); -#line 998 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 998 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->pane_widget = _tmp9_; -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = self->priv->builder; -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = gtk_builder_get_object (_tmp10_, "login_identity_label"); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_label_get_type (), GtkLabel)); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->login_identity_label); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->login_identity_label = _tmp12_; -#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = self->priv->builder; -#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = gtk_builder_get_object (_tmp13_, "publish_to_label"); -#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_label_get_type (), GtkLabel)); -#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->publish_to_label); -#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->publish_to_label = _tmp15_; -#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = self->priv->builder; -#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = gtk_builder_get_object (_tmp16_, "use_existing_radio"); -#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_radio_button_get_type (), GtkRadioButton)); -#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->use_existing_radio); -#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->use_existing_radio = _tmp18_; -#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = self->priv->builder; -#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = gtk_builder_get_object (_tmp19_, "existing_albums_combo"); -#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->existing_albums_combo); -#line 1002 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->existing_albums_combo = _tmp21_; -#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = self->priv->builder; -#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = gtk_builder_get_object (_tmp22_, "create_new_radio"); -#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_radio_button_get_type (), GtkRadioButton)); -#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->create_new_radio); -#line 1003 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->create_new_radio = _tmp24_; -#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp25_ = self->priv->builder; -#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = gtk_builder_get_object (_tmp25_, "new_album_entry"); -#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_entry_get_type (), GtkEntry)); -#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->new_album_entry); -#line 1004 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->new_album_entry = _tmp27_; -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp28_ = self->priv->builder; -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp29_ = gtk_builder_get_object (_tmp28_, "hide_check"); -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp30_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_check_button_get_type (), GtkCheckButton)); -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->hide_check); -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->hide_check = _tmp30_; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp31_ = self->priv->hide_check; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_button_get_type (), GtkButton), _ ("_Hide album")); -#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp32_ = self->priv->builder; -#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp33_ = gtk_builder_get_object (_tmp32_, "show_check"); -#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp34_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_check_button_get_type (), GtkCheckButton)); -#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->show_check); -#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->show_check = _tmp34_; -#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp35_ = self->priv->builder; -#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp36_ = gtk_builder_get_object (_tmp35_, "publish_button"); -#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp37_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_button_get_type (), GtkButton)); -#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->publish_button = _tmp37_; -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp38_ = self->priv->builder; -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp39_ = gtk_builder_get_object (_tmp38_, "logout_button"); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp40_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_button_get_type (), GtkButton)); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->logout_button = _tmp40_; -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp41_ = self->priv->hide_check; -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_toggle_button_get_type (), GtkToggleButton), publishing_rajce_rajce_publisher_get_hide_album (publisher)); -#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp42_ = self->priv->show_check; -#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_toggle_button_get_type (), GtkToggleButton), publishing_rajce_rajce_publisher_get_show_album (publisher)); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp43_ = self->priv->login_identity_label; -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp44_ = g_strdup_printf (_ ("You are logged into Rajce as %s."), username); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp45_ = _tmp44_; -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_label_set_label (_tmp43_, _tmp45_); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp45_); -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp46_ = self->priv->publish_to_label; -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_label_set_label (_tmp46_, _ ("Photos will appear in:")); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp47_ = self->priv->use_existing_radio; -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_button_get_type (), GtkButton), _ ("An _existing album:")); -#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp48_ = self->priv->create_new_radio; -#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_button_get_type (), GtkButton), _ ("A _new album named:")); -#line 1017 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp49_ = self->priv->show_check; -#line 1017 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_button_get_type (), GtkButton), _ ("Open target _album in browser")); -#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp50_ = self->priv->publish_button; -#line 1018 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_button_set_label (_tmp50_, _ ("_Publish")); -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp51_ = self->priv->logout_button; -#line 1019 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_button_set_label (_tmp51_, _ ("_Logout")); -#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp52_ = self->priv->use_existing_radio; -#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked, self, 0); -#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp53_ = self->priv->create_new_radio; -#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_rajce_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked, self, 0); -#line 1023 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp54_ = self->priv->new_album_entry; -#line 1023 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_rajce_publishing_options_pane_on_new_album_entry_changed_gtk_editable_changed, self, 0); -#line 1024 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp55_ = self->priv->logout_button; -#line 1024 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (_tmp55_, "clicked", (GCallback) _publishing_rajce_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0); -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp56_ = self->priv->publish_button; -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (_tmp56_, "clicked", (GCallback) _publishing_rajce_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0); -#line 7734 "RajcePublishing.c" - } - goto __finally30; - __catch30_g_error: - { - GError* e = NULL; - GError* _tmp57_; - const gchar* _tmp58_; -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - e = _inner_error_; -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 1029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp57_ = e; -#line 1029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp58_ = _tmp57_->message; -#line 1029 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_warning ("RajcePublishing.vala:1029: Could not load UI: %s", _tmp58_); -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (e); -#line 7754 "RajcePublishing.c" - } - __finally30: -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 7765 "RajcePublishing.c" - } -#line 985 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 7769 "RajcePublishing.c" -} - - -PublishingRajcePublishingOptionsPane* -publishing_rajce_publishing_options_pane_new (PublishingRajceRajcePublisher* publisher, - const gchar* username, - PublishingRajceAlbum** albums, - int albums_length1) -{ -#line 985 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_publishing_options_pane_construct (PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, publisher, username, albums, albums_length1); -#line 7781 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_on_publish_clicked (PublishingRajcePublishingOptionsPane* self) -{ - gboolean show_album = FALSE; - GtkCheckButton* _tmp0_; - PublishingRajceRajcePublisher* _tmp1_; - gboolean _tmp2_; - GtkRadioButton* _tmp3_; -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->show_check; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - show_album = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->publisher; -#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = show_album; -#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_set_show_album (_tmp1_, _tmp2_); -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->create_new_radio; -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_toggle_button_get_type (), GtkToggleButton))) { -#line 7809 "RajcePublishing.c" - gchar* album_name = NULL; - GtkEntry* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - gboolean hide_album = FALSE; - GtkCheckButton* _tmp7_; - PublishingRajceRajcePublisher* _tmp8_; - gboolean _tmp9_; - const gchar* _tmp10_; - gboolean _tmp11_; - PublishingRajcePublishingParameters* _tmp12_; - PublishingRajcePublishingParameters* _tmp13_; -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->new_album_entry; -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = gtk_entry_get_text (_tmp4_); -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - album_name = _tmp6_; -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = self->priv->hide_check; -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - hide_album = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = self->priv->publisher; -#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = hide_album; -#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_rajce_publisher_set_hide_album (_tmp8_, _tmp9_); -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = album_name; -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = hide_album; -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = publishing_rajce_publishing_parameters_new_to_new_album (_tmp10_, _tmp11_); -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = _tmp12_; -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_emit (self, publishing_rajce_publishing_options_pane_signals[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, _tmp13_); -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_publishing_parameters_unref0 (_tmp13_); -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (album_name); -#line 7854 "RajcePublishing.c" - } else { - gint id = 0; - PublishingRajceAlbum** _tmp14_; - gint _tmp14__length1; - GtkComboBoxText* _tmp15_; - PublishingRajceAlbum* _tmp16_; - gint _tmp17_; - gchar* album_name = NULL; - PublishingRajceAlbum** _tmp18_; - gint _tmp18__length1; - GtkComboBoxText* _tmp19_; - PublishingRajceAlbum* _tmp20_; - const gchar* _tmp21_; - gchar* _tmp22_; - const gchar* _tmp23_; - gint _tmp24_; - PublishingRajcePublishingParameters* _tmp25_; - PublishingRajcePublishingParameters* _tmp26_; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = self->priv->albums; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14__length1 = self->priv->albums_length1; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = self->priv->existing_albums_combo; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = _tmp14_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = _tmp16_->id; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - id = _tmp17_; -#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = self->priv->albums; -#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18__length1 = self->priv->albums_length1; -#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = self->priv->existing_albums_combo; -#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = _tmp18_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = _tmp20_->albumName; -#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = g_strdup (_tmp21_); -#line 1048 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - album_name = _tmp22_; -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = album_name; -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = id; -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp25_ = publishing_rajce_publishing_parameters_new_to_existing_album (_tmp23_, _tmp24_); -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = _tmp25_; -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_emit (self, publishing_rajce_publishing_options_pane_signals[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, _tmp26_); -#line 1049 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_publishing_parameters_unref0 (_tmp26_); -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (album_name); -#line 7913 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_publishing_options_pane_on_use_existing_radio_clicked (PublishingRajcePublishingOptionsPane* self) -{ - GtkComboBoxText* _tmp0_; - GtkEntry* _tmp1_; - GtkComboBoxText* _tmp2_; - GtkCheckButton* _tmp3_; -#line 1053 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1055 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->existing_albums_combo; -#line 1055 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->new_album_entry; -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = self->priv->existing_albums_combo; -#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 1058 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_update_publish_button_sensitivity (self); -#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->hide_check; -#line 1059 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 7945 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_on_create_new_radio_clicked (PublishingRajcePublishingOptionsPane* self) -{ - GtkEntry* _tmp0_; - GtkComboBoxText* _tmp1_; - GtkEntry* _tmp2_; - GtkCheckButton* _tmp3_; -#line 1062 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->new_album_entry; -#line 1064 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->existing_albums_combo; -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1066 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = self->priv->new_album_entry; -#line 1066 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 1067 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_update_publish_button_sensitivity (self); -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->hide_check; -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 7976 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_on_logout_clicked (PublishingRajcePublishingOptionsPane* self) -{ -#line 1071 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1073 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_emit (self, publishing_rajce_publishing_options_pane_signals[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 7987 "RajcePublishing.c" -} - - -static gchar* -string_strip (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strstrip (_tmp1_); -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 8012 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_update_publish_button_sensitivity (PublishingRajcePublishingOptionsPane* self) -{ - gchar* album_name = NULL; - GtkEntry* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gboolean _tmp3_ = FALSE; - const gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gboolean _tmp7_; - GtkButton* _tmp9_; -#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->new_album_entry; -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - album_name = _tmp2_; -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = album_name; -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = string_strip (_tmp4_); -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _tmp5_; -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = g_strcmp0 (_tmp6_, "") != 0; -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp6_); -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp7_) { -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = TRUE; -#line 8053 "RajcePublishing.c" - } else { - GtkRadioButton* _tmp8_; -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = self->priv->create_new_radio; -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = !gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 8060 "RajcePublishing.c" - } -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = self->priv->publish_button; -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), _tmp3_); -#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (album_name); -#line 8068 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_on_new_album_entry_changed (PublishingRajcePublishingOptionsPane* self) -{ -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_update_publish_button_sensitivity (self); -#line 8079 "RajcePublishing.c" -} - - -void -publishing_rajce_publishing_options_pane_installed (PublishingRajcePublishingOptionsPane* self) -{ - PublishingRajceAlbum** _tmp9_; - gint _tmp9__length1; - GtkRadioButton* _tmp15_; -#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 8091 "RajcePublishing.c" - { - gint i = 0; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - i = 0; -#line 8096 "RajcePublishing.c" - { - gboolean _tmp0_ = FALSE; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = TRUE; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - while (TRUE) { -#line 8103 "RajcePublishing.c" - gint _tmp2_; - PublishingRajceAlbum** _tmp3_; - gint _tmp3__length1; - GtkComboBoxText* _tmp4_; - PublishingRajceAlbum** _tmp5_; - gint _tmp5__length1; - gint _tmp6_; - PublishingRajceAlbum* _tmp7_; - const gchar* _tmp8_; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!_tmp0_) { -#line 8115 "RajcePublishing.c" - gint _tmp1_; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = i; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - i = _tmp1_ + 1; -#line 8121 "RajcePublishing.c" - } -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = FALSE; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = i; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->albums; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3__length1 = self->priv->albums_length1; -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!(_tmp2_ < _tmp3__length1)) { -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - break; -#line 8135 "RajcePublishing.c" - } -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->existing_albums_combo; -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = self->priv->albums; -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5__length1 = self->priv->albums_length1; -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = i; -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = _tmp5_[_tmp6_]; -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = _tmp7_->albumName; -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_combo_box_text_append_text (_tmp4_, _tmp8_); -#line 8151 "RajcePublishing.c" - } - } - } -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = self->priv->albums; -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9__length1 = self->priv->albums_length1; -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp9__length1 == 0) { -#line 8161 "RajcePublishing.c" - GtkComboBoxText* _tmp10_; - GtkRadioButton* _tmp11_; -#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = self->priv->existing_albums_combo; -#line 1093 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = self->priv->use_existing_radio; -#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 8172 "RajcePublishing.c" - } else { - GtkComboBoxText* _tmp12_; - GtkComboBoxText* _tmp13_; - GtkRadioButton* _tmp14_; -#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = self->priv->existing_albums_combo; -#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = self->priv->existing_albums_combo; -#line 1099 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = self->priv->use_existing_radio; -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 8189 "RajcePublishing.c" - } -#line 1102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = self->priv->create_new_radio; -#line 1102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 1103 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_on_create_new_radio_clicked (self); -#line 8197 "RajcePublishing.c" -} - - -void -publishing_rajce_publishing_options_pane_notify_publish (PublishingRajcePublishingOptionsPane* self, - PublishingRajcePublishingParameters* parameters) -{ -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS (parameters)); -#line 1108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_emit (self, publishing_rajce_publishing_options_pane_signals[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, parameters); -#line 8211 "RajcePublishing.c" -} - - -void -publishing_rajce_publishing_options_pane_notify_logout (PublishingRajcePublishingOptionsPane* self) -{ -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1113 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_emit (self, publishing_rajce_publishing_options_pane_signals[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 8222 "RajcePublishing.c" -} - - -GtkWidget* -publishing_rajce_publishing_options_pane_get_default_widget (PublishingRajcePublishingOptionsPane* self) -{ - GtkWidget* result = NULL; - GtkButton* _tmp0_; - GtkWidget* _tmp1_; -#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 1118 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->logout_button; -#line 1118 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 1118 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 1118 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 8242 "RajcePublishing.c" -} - - -static GtkWidget* -publishing_rajce_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingRajcePublishingOptionsPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane); -#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->pane_widget; -#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 8263 "RajcePublishing.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_rajce_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingRajcePublishingOptionsPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 1125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane); -#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 8278 "RajcePublishing.c" -} - - -static void -_publishing_rajce_publishing_options_pane_notify_publish_publishing_rajce_publishing_options_pane_publish (PublishingRajcePublishingOptionsPane* _sender, - PublishingRajcePublishingParameters* parameters, - gpointer self) -{ -#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_notify_publish ((PublishingRajcePublishingOptionsPane*) self, parameters); -#line 8289 "RajcePublishing.c" -} - - -static void -_publishing_rajce_publishing_options_pane_notify_logout_publishing_rajce_publishing_options_pane_logout (PublishingRajcePublishingOptionsPane* _sender, - gpointer self) -{ -#line 1134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_notify_logout ((PublishingRajcePublishingOptionsPane*) self); -#line 8299 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingRajcePublishingOptionsPane * self; -#line 1130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane); -#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_installed (self); -#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (self, "publish", (GCallback) _publishing_rajce_publishing_options_pane_notify_publish_publishing_rajce_publishing_options_pane_publish, self, 0); -#line 1134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_connect_object (self, "logout", (GCallback) _publishing_rajce_publishing_options_pane_notify_logout_publishing_rajce_publishing_options_pane_logout, self, 0); -#line 8315 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingRajcePublishingOptionsPane * self; - guint _tmp0_; - guint _tmp1_; -#line 1137 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane); -#line 1139 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("publish", PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp0_, NULL, FALSE); -#line 1139 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_rajce_publishing_options_pane_notify_publish_publishing_rajce_publishing_options_pane_publish, self); -#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_parse_name ("logout", PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_rajce_publishing_options_pane_notify_logout_publishing_rajce_publishing_options_pane_logout, self); -#line 8335 "RajcePublishing.c" -} - - -static void -g_cclosure_user_marshal_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS) (gpointer data1, gpointer arg_1, gpointer data2); - register GMarshalFunc_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (n_param_values == 2); -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - data1 = closure->data; -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - data2 = param_values->data[0].v_pointer; -#line 8361 "RajcePublishing.c" - } else { -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - data1 = param_values->data[0].v_pointer; -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - data2 = closure->data; -#line 8367 "RajcePublishing.c" - } -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - callback = (GMarshalFunc_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS) (marshal_data ? marshal_data : cc->callback); -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - callback (data1, publishing_rajce_value_get_publishing_parameters (param_values + 1), data2); -#line 8373 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_class_init (PublishingRajcePublishingOptionsPaneClass * klass) -{ -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingRajcePublishingOptionsPanePrivate)); -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_rajce_publishing_options_pane_finalize; -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_signals[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = g_signal_new ("publish", PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__PUBLISHING_RAJCE_PUBLISHING_PARAMETERS, G_TYPE_NONE, 1, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS); -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_signals[PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = g_signal_new ("logout", PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 8390 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_rajce_publishing_options_pane_real_get_widget; -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_rajce_publishing_options_pane_real_get_preferred_geometry; -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_rajce_publishing_options_pane_real_on_pane_installed; -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_rajce_publishing_options_pane_real_on_pane_uninstalled; -#line 8407 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_instance_init (PublishingRajcePublishingOptionsPane * self) -{ -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv = PUBLISHING_RAJCE_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); -#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->builder = NULL; -#line 970 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->pane_widget = NULL; -#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->login_identity_label = NULL; -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->publish_to_label = NULL; -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->use_existing_radio = NULL; -#line 974 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->existing_albums_combo = NULL; -#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->create_new_radio = NULL; -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->new_album_entry = NULL; -#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->hide_check = NULL; -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->show_check = NULL; -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->publish_button = NULL; -#line 980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->logout_button = NULL; -#line 8440 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_options_pane_finalize (GObject * obj) -{ - PublishingRajcePublishingOptionsPane * self; -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingRajcePublishingOptionsPane); -#line 965 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->publisher); -#line 966 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_rajce_album_unref), NULL); -#line 967 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->username); -#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 970 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->login_identity_label); -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->publish_to_label); -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->use_existing_radio); -#line 974 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->existing_albums_combo); -#line 975 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->create_new_radio); -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->new_album_entry); -#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->hide_check); -#line 978 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->show_check); -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 980 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 963 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_OBJECT_CLASS (publishing_rajce_publishing_options_pane_parent_class)->finalize (obj); -#line 8482 "RajcePublishing.c" -} - - -GType -publishing_rajce_publishing_options_pane_get_type (void) -{ - static volatile gsize publishing_rajce_publishing_options_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_publishing_options_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajcePublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajcePublishingOptionsPane), 0, (GInstanceInitFunc) publishing_rajce_publishing_options_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_rajce_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_rajce_publishing_options_pane_type_id; - publishing_rajce_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingRajcePublishingOptionsPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_rajce_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_rajce_publishing_options_pane_type_id__volatile, publishing_rajce_publishing_options_pane_type_id); - } - return publishing_rajce_publishing_options_pane_type_id__volatile; -} - - -static PublishingRajcePublishingParameters* -publishing_rajce_publishing_parameters_construct (GType object_type) -{ - PublishingRajcePublishingParameters* self = NULL; -#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajcePublishingParameters*) g_type_create_instance (object_type); -#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 8510 "RajcePublishing.c" -} - - -static PublishingRajcePublishingParameters* -publishing_rajce_publishing_parameters_new (void) -{ -#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_publishing_parameters_construct (PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS); -#line 8519 "RajcePublishing.c" -} - - -PublishingRajcePublishingParameters* -publishing_rajce_publishing_parameters_construct_to_new_album (GType object_type, - const gchar* album_name, - gboolean album_hidden) -{ - PublishingRajcePublishingParameters* self = NULL; - gchar* _tmp0_; - gboolean* _tmp1_; - gint _tmp2_; - gint* _tmp3_; -#line 1153 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (album_name != NULL, NULL); -#line 1153 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajcePublishingParameters*) g_type_create_instance (object_type); -#line 1155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (album_name); -#line 1155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_name); -#line 1155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->album_name = _tmp0_; -#line 1156 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = __bool_dup0 (&album_hidden); -#line 1156 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_hidden); -#line 1156 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->album_hidden = _tmp1_; -#line 1157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = 0; -#line 1157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = __int_dup0 (&_tmp2_); -#line 1157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_id); -#line 1157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->album_id = _tmp3_; -#line 1153 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 8559 "RajcePublishing.c" -} - - -PublishingRajcePublishingParameters* -publishing_rajce_publishing_parameters_new_to_new_album (const gchar* album_name, - gboolean album_hidden) -{ -#line 1153 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_publishing_parameters_construct_to_new_album (PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, album_name, album_hidden); -#line 8569 "RajcePublishing.c" -} - - -PublishingRajcePublishingParameters* -publishing_rajce_publishing_parameters_construct_to_existing_album (GType object_type, - const gchar* album_name, - gint album_id) -{ - PublishingRajcePublishingParameters* self = NULL; - gchar* _tmp0_; - gint* _tmp1_; -#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (album_name != NULL, NULL); -#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajcePublishingParameters*) g_type_create_instance (object_type); -#line 1161 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (album_name); -#line 1161 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_name); -#line 1161 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->album_name = _tmp0_; -#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_hidden); -#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->album_hidden = NULL; -#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = __int_dup0 (&album_id); -#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_id); -#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->album_id = _tmp1_; -#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 8603 "RajcePublishing.c" -} - - -PublishingRajcePublishingParameters* -publishing_rajce_publishing_parameters_new_to_existing_album (const gchar* album_name, - gint album_id) -{ -#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_publishing_parameters_construct_to_existing_album (PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, album_name, album_id); -#line 8613 "RajcePublishing.c" -} - - -static void -publishing_rajce_value_publishing_parameters_init (GValue* value) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 8622 "RajcePublishing.c" -} - - -static void -publishing_rajce_value_publishing_parameters_free_value (GValue* value) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (value->data[0].v_pointer) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_parameters_unref (value->data[0].v_pointer); -#line 8633 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_value_publishing_parameters_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (src_value->data[0].v_pointer) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dest_value->data[0].v_pointer = publishing_rajce_publishing_parameters_ref (src_value->data[0].v_pointer); -#line 8646 "RajcePublishing.c" - } else { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 8650 "RajcePublishing.c" - } -} - - -static gpointer -publishing_rajce_value_publishing_parameters_peek_pointer (const GValue* value) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return value->data[0].v_pointer; -#line 8660 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_value_publishing_parameters_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (collect_values[0].v_pointer) { -#line 8672 "RajcePublishing.c" - PublishingRajcePublishingParameters * object; - object = collect_values[0].v_pointer; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 8679 "RajcePublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 8683 "RajcePublishing.c" - } -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = publishing_rajce_publishing_parameters_ref (object); -#line 8687 "RajcePublishing.c" - } else { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 8691 "RajcePublishing.c" - } -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 8695 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_value_publishing_parameters_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRajcePublishingParameters ** object_p; - object_p = collect_values[0].v_pointer; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!object_p) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 8711 "RajcePublishing.c" - } -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!value->data[0].v_pointer) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = NULL; -#line 8717 "RajcePublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = value->data[0].v_pointer; -#line 8721 "RajcePublishing.c" - } else { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = publishing_rajce_publishing_parameters_ref (value->data[0].v_pointer); -#line 8725 "RajcePublishing.c" - } -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 8729 "RajcePublishing.c" -} - - -GParamSpec* -publishing_rajce_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRajceParamSpecPublishingParameters* spec; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return G_PARAM_SPEC (spec); -#line 8749 "RajcePublishing.c" -} - - -gpointer -publishing_rajce_value_get_publishing_parameters (const GValue* value) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return value->data[0].v_pointer; -#line 8760 "RajcePublishing.c" -} - - -void -publishing_rajce_value_set_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingRajcePublishingParameters * old; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS)); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - old = value->data[0].v_pointer; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (v_object) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS)); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = v_object; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_parameters_ref (value->data[0].v_pointer); -#line 8783 "RajcePublishing.c" - } else { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 8787 "RajcePublishing.c" - } -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (old) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_parameters_unref (old); -#line 8793 "RajcePublishing.c" - } -} - - -void -publishing_rajce_value_take_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingRajcePublishingParameters * old; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS)); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - old = value->data[0].v_pointer; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (v_object) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS)); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = v_object; -#line 8815 "RajcePublishing.c" - } else { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 8819 "RajcePublishing.c" - } -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (old) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_parameters_unref (old); -#line 8825 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_publishing_parameters_class_init (PublishingRajcePublishingParametersClass * klass) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_publishing_parameters_parent_class = g_type_class_peek_parent (klass); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRajcePublishingParametersClass *) klass)->finalize = publishing_rajce_publishing_parameters_finalize; -#line 8837 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_parameters_instance_init (PublishingRajcePublishingParameters * self) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->ref_count = 1; -#line 8846 "RajcePublishing.c" -} - - -static void -publishing_rajce_publishing_parameters_finalize (PublishingRajcePublishingParameters * obj) -{ - PublishingRajcePublishingParameters * self; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_PUBLISHING_PARAMETERS, PublishingRajcePublishingParameters); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_destroy (self); -#line 1146 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_name); -#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_hidden); -#line 1148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->album_id); -#line 8864 "RajcePublishing.c" -} - - -GType -publishing_rajce_publishing_parameters_get_type (void) -{ - static volatile gsize publishing_rajce_publishing_parameters_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_publishing_parameters_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rajce_value_publishing_parameters_init, publishing_rajce_value_publishing_parameters_free_value, publishing_rajce_value_publishing_parameters_copy_value, publishing_rajce_value_publishing_parameters_peek_pointer, "p", publishing_rajce_value_publishing_parameters_collect_value, "p", publishing_rajce_value_publishing_parameters_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajcePublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajcePublishingParameters), 0, (GInstanceInitFunc) publishing_rajce_publishing_parameters_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rajce_publishing_parameters_type_id; - publishing_rajce_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRajcePublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_rajce_publishing_parameters_type_id__volatile, publishing_rajce_publishing_parameters_type_id); - } - return publishing_rajce_publishing_parameters_type_id__volatile; -} - - -gpointer -publishing_rajce_publishing_parameters_ref (gpointer instance) -{ - PublishingRajcePublishingParameters * self; - self = instance; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return instance; -#line 8893 "RajcePublishing.c" -} - - -void -publishing_rajce_publishing_parameters_unref (gpointer instance) -{ - PublishingRajcePublishingParameters * self; - self = instance; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - PUBLISHING_RAJCE_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 8908 "RajcePublishing.c" - } -} - - -PublishingRajceSession* -publishing_rajce_session_construct (GType object_type) -{ - PublishingRajceSession* self = NULL; -#line 1182 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceSession*) publishing_rest_support_session_construct (object_type, ""); -#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 8921 "RajcePublishing.c" -} - - -PublishingRajceSession* -publishing_rajce_session_new (void) -{ -#line 1180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_session_construct (PUBLISHING_RAJCE_TYPE_SESSION); -#line 8930 "RajcePublishing.c" -} - - -static gboolean -publishing_rajce_session_real_is_authenticated (PublishingRESTSupportSession* base) -{ - PublishingRajceSession * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gint* _tmp2_; -#line 1185 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSession); -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = self->priv->userid; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp2_ != NULL) { -#line 8948 "RajcePublishing.c" - const gchar* _tmp3_; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = self->priv->usertoken; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _tmp3_ != NULL; -#line 8954 "RajcePublishing.c" - } else { -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = FALSE; -#line 8958 "RajcePublishing.c" - } -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp1_) { -#line 8962 "RajcePublishing.c" - const gchar* _tmp4_; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = self->priv->username; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _tmp4_ != NULL; -#line 8968 "RajcePublishing.c" - } else { -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = FALSE; -#line 8972 "RajcePublishing.c" - } -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp0_; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 8978 "RajcePublishing.c" -} - - -void -publishing_rajce_session_authenticate (PublishingRajceSession* self, - const gchar* token, - const gchar* name, - gint id, - gint maxsize, - gint quality) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gint* _tmp2_; - gint* _tmp3_; - gint* _tmp4_; -#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_SESSION (self)); -#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (token != NULL); -#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (name != NULL); -#line 1192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (token); -#line 1192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->usertoken); -#line 1192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->usertoken = _tmp0_; -#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (name); -#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->username); -#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->username = _tmp1_; -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = __int_dup0 (&id); -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->userid); -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->userid = _tmp2_; -#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = __int_dup0 (&maxsize); -#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->maxsize); -#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->maxsize = _tmp3_; -#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = __int_dup0 (&quality); -#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->quality); -#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->quality = _tmp4_; -#line 9031 "RajcePublishing.c" -} - - -void -publishing_rajce_session_deauthenticate (PublishingRajceSession* self) -{ -#line 1199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_SESSION (self)); -#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->usertoken); -#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->usertoken = NULL; -#line 1202 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->albumtoken); -#line 1202 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albumtoken = NULL; -#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->albumticket); -#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albumticket = NULL; -#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->username); -#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->username = NULL; -#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->userid); -#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->userid = NULL; -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->maxsize); -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->maxsize = NULL; -#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->quality); -#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->quality = NULL; -#line 9068 "RajcePublishing.c" -} - - -void -publishing_rajce_session_set_usertoken (PublishingRajceSession* self, - const gchar* usertoken) -{ - gchar* _tmp0_; -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_SESSION (self)); -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (usertoken); -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->usertoken); -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->usertoken = _tmp0_; -#line 9085 "RajcePublishing.c" -} - - -void -publishing_rajce_session_set_albumtoken (PublishingRajceSession* self, - const gchar* albumtoken) -{ - gchar* _tmp0_; -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_SESSION (self)); -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (albumtoken); -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->albumtoken); -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albumtoken = _tmp0_; -#line 9102 "RajcePublishing.c" -} - - -void -publishing_rajce_session_set_albumticket (PublishingRajceSession* self, - const gchar* albumticket) -{ - gchar* _tmp0_; -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_SESSION (self)); -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (albumticket); -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->albumticket); -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albumticket = _tmp0_; -#line 9119 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_session_get_usertoken (PublishingRajceSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (self), NULL); -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->usertoken; -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 9139 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_session_get_albumtoken (PublishingRajceSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (self), NULL); -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->albumtoken; -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 9159 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_session_get_albumticket (PublishingRajceSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (self), NULL); -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->albumticket; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 9179 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_session_get_username (PublishingRajceSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (self), NULL); -#line 1217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->username; -#line 1217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp1_; -#line 1217 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 9199 "RajcePublishing.c" -} - - -gint -publishing_rajce_session_get_maxsize (PublishingRajceSession* self) -{ - gint result = 0; - gint* _tmp0_; -#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (self), 0); -#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->maxsize; -#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = *_tmp0_; -#line 1219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 9216 "RajcePublishing.c" -} - - -static void -publishing_rajce_session_class_init (PublishingRajceSessionClass * klass) -{ -#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_parent_class = g_type_class_peek_parent (klass); -#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_rajce_session_finalize; -#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingRajceSessionPrivate)); -#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = (gboolean (*) (PublishingRESTSupportSession *)) publishing_rajce_session_real_is_authenticated; -#line 9231 "RajcePublishing.c" -} - - -static void -publishing_rajce_session_instance_init (PublishingRajceSession * self) -{ -#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv = PUBLISHING_RAJCE_SESSION_GET_PRIVATE (self); -#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->usertoken = NULL; -#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albumtoken = NULL; -#line 1174 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->albumticket = NULL; -#line 1175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->username = NULL; -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->userid = NULL; -#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->maxsize = NULL; -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->quality = NULL; -#line 9254 "RajcePublishing.c" -} - - -static void -publishing_rajce_session_finalize (PublishingRESTSupportSession * obj) -{ - PublishingRajceSession * self; -#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_SESSION, PublishingRajceSession); -#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->usertoken); -#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->albumtoken); -#line 1174 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->albumticket); -#line 1175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->username); -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->userid); -#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->maxsize); -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->quality); -#line 1171 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_rajce_session_parent_class)->finalize (obj); -#line 9280 "RajcePublishing.c" -} - - -/** - * Session class that keeps track of the credentials - */ -GType -publishing_rajce_session_get_type (void) -{ - static volatile gsize publishing_rajce_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_session_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceSession), 0, (GInstanceInitFunc) publishing_rajce_session_instance_init, NULL }; - GType publishing_rajce_session_type_id; - publishing_rajce_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingRajceSession", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_session_type_id__volatile, publishing_rajce_session_type_id); - } - return publishing_rajce_session_type_id__volatile; -} - - -static gpointer -_publishing_rajce_arg_item_ref0 (gpointer self) -{ -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self ? publishing_rajce_arg_item_ref (self) : NULL; -#line 9306 "RajcePublishing.c" -} - - -PublishingRajceArgItem* -publishing_rajce_arg_item_construct (GType object_type, - const gchar* k, - const gchar* v) -{ - PublishingRajceArgItem* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - PublishingRajceArgItem** _tmp2_; -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceArgItem*) g_type_create_instance (object_type); -#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup (k); -#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->key); -#line 1231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->key = _tmp0_; -#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (v); -#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->val); -#line 1232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->val = _tmp1_; -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = g_new0 (PublishingRajceArgItem*, 0 + 1); -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->children = (_vala_array_free (self->children, self->children_length1, (GDestroyNotify) publishing_rajce_arg_item_unref), NULL); -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->children = _tmp2_; -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->children_length1 = 0; -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->_children_size_ = self->children_length1; -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 9345 "RajcePublishing.c" -} - - -PublishingRajceArgItem* -publishing_rajce_arg_item_new (const gchar* k, - const gchar* v) -{ -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_arg_item_construct (PUBLISHING_RAJCE_TYPE_ARG_ITEM, k, v); -#line 9355 "RajcePublishing.c" -} - - -static void -_vala_array_add6 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value) -{ -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*length) == (*size)) { -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1); -#line 9371 "RajcePublishing.c" - } -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[(*length)++] = value; -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[*length] = NULL; -#line 9377 "RajcePublishing.c" -} - - -void -publishing_rajce_arg_item_AddChild (PublishingRajceArgItem* self, - PublishingRajceArgItem* child) -{ - PublishingRajceArgItem** _tmp0_; - gint _tmp0__length1; - PublishingRajceArgItem* _tmp1_; -#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_ARG_ITEM (self)); -#line 1235 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_ARG_ITEM (child)); -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->children; -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0__length1 = self->children_length1; -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _publishing_rajce_arg_item_ref0 (child); -#line 1237 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_array_add6 (&self->children, &self->children_length1, &self->_children_size_, _tmp1_); -#line 9400 "RajcePublishing.c" -} - - -void -publishing_rajce_arg_item_AddChildren (PublishingRajceArgItem* self, - PublishingRajceArgItem** newchildren, - int newchildren_length1) -{ -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_ARG_ITEM (self)); -#line 9411 "RajcePublishing.c" - { - PublishingRajceArgItem** child_collection = NULL; - gint child_collection_length1 = 0; - gint _child_collection_size_ = 0; - gint child_it = 0; -#line 1241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child_collection = newchildren; -#line 1241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child_collection_length1 = newchildren_length1; -#line 1241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - for (child_it = 0; child_it < newchildren_length1; child_it = child_it + 1) { -#line 9423 "RajcePublishing.c" - PublishingRajceArgItem* _tmp0_; - PublishingRajceArgItem* child = NULL; -#line 1241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _publishing_rajce_arg_item_ref0 (child_collection[child_it]); -#line 1241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child = _tmp0_; -#line 9430 "RajcePublishing.c" - { - PublishingRajceArgItem* _tmp1_; -#line 1243 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = child; -#line 1243 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_arg_item_AddChild (self, _tmp1_); -#line 1241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_arg_item_unref0 (child); -#line 9439 "RajcePublishing.c" - } - } - } -} - - -static void -publishing_rajce_value_arg_item_init (GValue* value) -{ -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 9451 "RajcePublishing.c" -} - - -static void -publishing_rajce_value_arg_item_free_value (GValue* value) -{ -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (value->data[0].v_pointer) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_arg_item_unref (value->data[0].v_pointer); -#line 9462 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_value_arg_item_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (src_value->data[0].v_pointer) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dest_value->data[0].v_pointer = publishing_rajce_arg_item_ref (src_value->data[0].v_pointer); -#line 9475 "RajcePublishing.c" - } else { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 9479 "RajcePublishing.c" - } -} - - -static gpointer -publishing_rajce_value_arg_item_peek_pointer (const GValue* value) -{ -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return value->data[0].v_pointer; -#line 9489 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_value_arg_item_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (collect_values[0].v_pointer) { -#line 9501 "RajcePublishing.c" - PublishingRajceArgItem * object; - object = collect_values[0].v_pointer; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 9508 "RajcePublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 9512 "RajcePublishing.c" - } -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = publishing_rajce_arg_item_ref (object); -#line 9516 "RajcePublishing.c" - } else { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 9520 "RajcePublishing.c" - } -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 9524 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_value_arg_item_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRajceArgItem ** object_p; - object_p = collect_values[0].v_pointer; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!object_p) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 9540 "RajcePublishing.c" - } -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!value->data[0].v_pointer) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = NULL; -#line 9546 "RajcePublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = value->data[0].v_pointer; -#line 9550 "RajcePublishing.c" - } else { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = publishing_rajce_arg_item_ref (value->data[0].v_pointer); -#line 9554 "RajcePublishing.c" - } -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 9558 "RajcePublishing.c" -} - - -GParamSpec* -publishing_rajce_param_spec_arg_item (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRajceParamSpecArgItem* spec; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_RAJCE_TYPE_ARG_ITEM), NULL); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return G_PARAM_SPEC (spec); -#line 9578 "RajcePublishing.c" -} - - -gpointer -publishing_rajce_value_get_arg_item (const GValue* value) -{ -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ARG_ITEM), NULL); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return value->data[0].v_pointer; -#line 9589 "RajcePublishing.c" -} - - -void -publishing_rajce_value_set_arg_item (GValue* value, - gpointer v_object) -{ - PublishingRajceArgItem * old; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ARG_ITEM)); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - old = value->data[0].v_pointer; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (v_object) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_ARG_ITEM)); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = v_object; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_arg_item_ref (value->data[0].v_pointer); -#line 9612 "RajcePublishing.c" - } else { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 9616 "RajcePublishing.c" - } -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (old) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_arg_item_unref (old); -#line 9622 "RajcePublishing.c" - } -} - - -void -publishing_rajce_value_take_arg_item (GValue* value, - gpointer v_object) -{ - PublishingRajceArgItem * old; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_ARG_ITEM)); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - old = value->data[0].v_pointer; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (v_object) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_ARG_ITEM)); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = v_object; -#line 9644 "RajcePublishing.c" - } else { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 9648 "RajcePublishing.c" - } -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (old) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_arg_item_unref (old); -#line 9654 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_arg_item_class_init (PublishingRajceArgItemClass * klass) -{ -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_arg_item_parent_class = g_type_class_peek_parent (klass); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRajceArgItemClass *) klass)->finalize = publishing_rajce_arg_item_finalize; -#line 9666 "RajcePublishing.c" -} - - -static void -publishing_rajce_arg_item_instance_init (PublishingRajceArgItem * self) -{ -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->ref_count = 1; -#line 9675 "RajcePublishing.c" -} - - -static void -publishing_rajce_arg_item_finalize (PublishingRajceArgItem * obj) -{ - PublishingRajceArgItem * self; - PublishingRajceArgItem** _tmp0_; - gint _tmp0__length1; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_ARG_ITEM, PublishingRajceArgItem); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_destroy (self); -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->children; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0__length1 = self->children_length1; -#line 9693 "RajcePublishing.c" - { - PublishingRajceArgItem** child_collection = NULL; - gint child_collection_length1 = 0; - gint _child_collection_size_ = 0; - gint child_it = 0; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child_collection = _tmp0_; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child_collection_length1 = _tmp0__length1; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - for (child_it = 0; child_it < _tmp0__length1; child_it = child_it + 1) { -#line 9705 "RajcePublishing.c" - PublishingRajceArgItem* _tmp1_; - PublishingRajceArgItem* child = NULL; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _publishing_rajce_arg_item_ref0 (child_collection[child_it]); -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child = _tmp1_; -#line 9712 "RajcePublishing.c" - { -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_arg_item_unref0 (child); -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child = NULL; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_arg_item_unref0 (child); -#line 9720 "RajcePublishing.c" - } - } - } -#line 1225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->key); -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->val); -#line 1227 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->children = (_vala_array_free (self->children, self->children_length1, (GDestroyNotify) publishing_rajce_arg_item_unref), NULL); -#line 9730 "RajcePublishing.c" -} - - -GType -publishing_rajce_arg_item_get_type (void) -{ - static volatile gsize publishing_rajce_arg_item_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_arg_item_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rajce_value_arg_item_init, publishing_rajce_value_arg_item_free_value, publishing_rajce_value_arg_item_copy_value, publishing_rajce_value_arg_item_peek_pointer, "p", publishing_rajce_value_arg_item_collect_value, "p", publishing_rajce_value_arg_item_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceArgItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_arg_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceArgItem), 0, (GInstanceInitFunc) publishing_rajce_arg_item_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rajce_arg_item_type_id; - publishing_rajce_arg_item_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRajceArgItem", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_rajce_arg_item_type_id__volatile, publishing_rajce_arg_item_type_id); - } - return publishing_rajce_arg_item_type_id__volatile; -} - - -gpointer -publishing_rajce_arg_item_ref (gpointer instance) -{ - PublishingRajceArgItem * self; - self = instance; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return instance; -#line 9759 "RajcePublishing.c" -} - - -void -publishing_rajce_arg_item_unref (gpointer instance) -{ - PublishingRajceArgItem * self; - self = instance; -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - PUBLISHING_RAJCE_ARG_ITEM_GET_CLASS (self)->finalize (self); -#line 1223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 9774 "RajcePublishing.c" - } -} - - -PublishingRajceLiveApiRequest* -publishing_rajce_live_api_request_construct (GType object_type, - const gchar* cmd) -{ - PublishingRajceLiveApiRequest* self = NULL; - PublishingRajceArgItem** _tmp0_; - gchar* _tmp1_; -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (cmd != NULL, NULL); -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceLiveApiRequest*) g_type_create_instance (object_type); -#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_new0 (PublishingRajceArgItem*, 0 + 1); -#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_params = (_vala_array_free (self->priv->_params, self->priv->_params_length1, (GDestroyNotify) publishing_rajce_arg_item_unref), NULL); -#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_params = _tmp0_; -#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_params_length1 = 0; -#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->__params_size_ = self->priv->_params_length1; -#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = g_strdup (cmd); -#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->_cmd); -#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_cmd = _tmp1_; -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 9808 "RajcePublishing.c" -} - - -PublishingRajceLiveApiRequest* -publishing_rajce_live_api_request_new (const gchar* cmd) -{ -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_live_api_request_construct (PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, cmd); -#line 9817 "RajcePublishing.c" -} - - -static void -_vala_array_add7 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value) -{ -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*length) == (*size)) { -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1); -#line 9833 "RajcePublishing.c" - } -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[(*length)++] = value; -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[*length] = NULL; -#line 9839 "RajcePublishing.c" -} - - -void -publishing_rajce_live_api_request_AddParam (PublishingRajceLiveApiRequest* self, - const gchar* name, - const gchar* val) -{ - PublishingRajceArgItem** _tmp0_; - gint _tmp0__length1; - PublishingRajceArgItem* _tmp1_; -#line 1270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_LIVE_API_REQUEST (self)); -#line 1270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (name != NULL); -#line 1270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (val != NULL); -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = self->priv->_params; -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0__length1 = self->priv->_params_length1; -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_arg_item_new (name, val); -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_array_add7 (&self->priv->_params, &self->priv->_params_length1, &self->priv->__params_size_, _tmp1_); -#line 9865 "RajcePublishing.c" -} - - -void -publishing_rajce_live_api_request_AddParamBool (PublishingRajceLiveApiRequest* self, - const gchar* name, - gboolean val) -{ - const gchar* _tmp0_ = NULL; -#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_LIVE_API_REQUEST (self)); -#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (name != NULL); -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (val) { -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = "1"; -#line 9883 "RajcePublishing.c" - } else { -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = "0"; -#line 9887 "RajcePublishing.c" - } -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (self, name, _tmp0_); -#line 9891 "RajcePublishing.c" -} - - -void -publishing_rajce_live_api_request_AddParamInt (PublishingRajceLiveApiRequest* self, - const gchar* name, - gint val) -{ - gchar* _tmp0_; - gchar* _tmp1_; -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_LIVE_API_REQUEST (self)); -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (name != NULL); -#line 1286 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = g_strdup_printf ("%i", val); -#line 1286 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = _tmp0_; -#line 1286 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (self, name, _tmp1_); -#line 1286 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp1_); -#line 9914 "RajcePublishing.c" -} - - -static void -_vala_array_add8 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value) -{ -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*length) == (*size)) { -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1); -#line 9930 "RajcePublishing.c" - } -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[(*length)++] = value; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[*length] = NULL; -#line 9936 "RajcePublishing.c" -} - - -void -publishing_rajce_live_api_request_AddParamNode (PublishingRajceLiveApiRequest* self, - const gchar* name, - PublishingRajceArgItem** val, - int val_length1) -{ - PublishingRajceArgItem* newItem = NULL; - PublishingRajceArgItem* _tmp0_; - PublishingRajceArgItem** _tmp1_; - gint _tmp1__length1; - PublishingRajceArgItem* _tmp2_; -#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_LIVE_API_REQUEST (self)); -#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (name != NULL); -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_arg_item_new (name, NULL); -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - newItem = _tmp0_; -#line 1301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_arg_item_AddChildren (newItem, val, val_length1); -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = self->priv->_params; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1__length1 = self->priv->_params_length1; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _publishing_rajce_arg_item_ref0 (newItem); -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_array_add8 (&self->priv->_params, &self->priv->_params_length1, &self->priv->__params_size_, _tmp2_); -#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_arg_item_unref0 (newItem); -#line 9971 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_live_api_request_Params2XmlString (PublishingRajceLiveApiRequest* self, - gboolean urlencode) -{ - gchar* result = NULL; - xmlDoc* doc = NULL; - xmlDoc* _tmp0_; - xmlNode* root = NULL; - xmlNode* _tmp1_; - xmlDoc* _tmp2_; - xmlNode* _tmp3_; - xmlNode* _tmp4_; - const gchar* _tmp5_; - xmlNode* par = NULL; - xmlNode* _tmp6_; - xmlNode* _tmp7_; - PublishingRajceArgItem** _tmp8_; - gint _tmp8__length1; - gchar* xmlstr = NULL; - xmlDoc* _tmp12_; - gchar* _tmp13_ = NULL; - xmlDoc* _tmp14_; -#line 1307 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_LIVE_API_REQUEST (self), NULL); -#line 1309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = xmlNewDoc ((xmlChar*) "1.0"); -#line 1309 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - doc = _tmp0_; -#line 1310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = xmlNewNode (NULL, (xmlChar*) "request"); -#line 1310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - root = _tmp1_; -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = doc; -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = root; -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xmlDocSetRootElement (_tmp2_, _tmp3_); -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = root; -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = self->priv->_cmd; -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xmlNewTextChild (_tmp4_, NULL, (xmlChar*) "command", (xmlChar*) _tmp5_); -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = root; -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = xmlNewTextChild (_tmp6_, NULL, (xmlChar*) "parameters", (xmlChar*) ""); -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - par = _tmp7_; -#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = self->priv->_params; -#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8__length1 = self->priv->_params_length1; -#line 10029 "RajcePublishing.c" - { - PublishingRajceArgItem** arg_collection = NULL; - gint arg_collection_length1 = 0; - gint _arg_collection_size_ = 0; - gint arg_it = 0; -#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - arg_collection = _tmp8_; -#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - arg_collection_length1 = _tmp8__length1; -#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - for (arg_it = 0; arg_it < _tmp8__length1; arg_it = arg_it + 1) { -#line 10041 "RajcePublishing.c" - PublishingRajceArgItem* _tmp9_; - PublishingRajceArgItem* arg = NULL; -#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = _publishing_rajce_arg_item_ref0 (arg_collection[arg_it]); -#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - arg = _tmp9_; -#line 10048 "RajcePublishing.c" - { - xmlNode* _tmp10_; - PublishingRajceArgItem* _tmp11_; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = par; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = arg; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_WriteParam (_tmp10_, _tmp11_); -#line 1314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_arg_item_unref0 (arg); -#line 10060 "RajcePublishing.c" - } - } - } -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = doc; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xmlDocDumpMemoryEnc (_tmp12_, (xmlChar**) (&_tmp13_), NULL, "UTF-8"); -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xmlstr); -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xmlstr = _tmp13_; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = doc; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xmlFreeDoc (_tmp14_); -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (urlencode) { -#line 10078 "RajcePublishing.c" - const gchar* _tmp15_; - gchar* _tmp16_; -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = xmlstr; -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = soup_uri_encode (_tmp15_, "&;"); -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp16_; -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xmlstr); -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 10091 "RajcePublishing.c" - } -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = xmlstr; -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 10097 "RajcePublishing.c" -} - - -static void -publishing_rajce_live_api_request_WriteParam (xmlNode* node, - PublishingRajceArgItem* arg) -{ - PublishingRajceArgItem** _tmp0_; - gint _tmp0__length1; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (PUBLISHING_RAJCE_IS_ARG_ITEM (arg)); -#line 1332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = arg->children; -#line 1332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0__length1 = arg->children_length1; -#line 1332 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp0__length1 == 0) { -#line 10115 "RajcePublishing.c" - const gchar* _tmp1_; - const gchar* _tmp2_; -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = arg->key; -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = arg->val; -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xmlNewTextChild (node, NULL, (xmlChar*) _tmp1_, (xmlChar*) _tmp2_); -#line 10124 "RajcePublishing.c" - } else { - xmlNode* subnode = NULL; - const gchar* _tmp3_; - xmlNode* _tmp4_; - PublishingRajceArgItem** _tmp5_; - gint _tmp5__length1; -#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = arg->key; -#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = xmlNewTextChild (node, NULL, (xmlChar*) _tmp3_, (xmlChar*) ""); -#line 1338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - subnode = _tmp4_; -#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = arg->children; -#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5__length1 = arg->children_length1; -#line 10141 "RajcePublishing.c" - { - PublishingRajceArgItem** child_collection = NULL; - gint child_collection_length1 = 0; - gint _child_collection_size_ = 0; - gint child_it = 0; -#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child_collection = _tmp5_; -#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child_collection_length1 = _tmp5__length1; -#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - for (child_it = 0; child_it < _tmp5__length1; child_it = child_it + 1) { -#line 10153 "RajcePublishing.c" - PublishingRajceArgItem* _tmp6_; - PublishingRajceArgItem* child = NULL; -#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _publishing_rajce_arg_item_ref0 (child_collection[child_it]); -#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - child = _tmp6_; -#line 10160 "RajcePublishing.c" - { - xmlNode* _tmp7_; - PublishingRajceArgItem* _tmp8_; -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = subnode; -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = child; -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_WriteParam (_tmp7_, _tmp8_); -#line 1339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_arg_item_unref0 (child); -#line 10172 "RajcePublishing.c" - } - } - } - } -} - - -static void -publishing_rajce_value_live_api_request_init (GValue* value) -{ -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 10185 "RajcePublishing.c" -} - - -static void -publishing_rajce_value_live_api_request_free_value (GValue* value) -{ -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (value->data[0].v_pointer) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_unref (value->data[0].v_pointer); -#line 10196 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_value_live_api_request_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (src_value->data[0].v_pointer) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dest_value->data[0].v_pointer = publishing_rajce_live_api_request_ref (src_value->data[0].v_pointer); -#line 10209 "RajcePublishing.c" - } else { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 10213 "RajcePublishing.c" - } -} - - -static gpointer -publishing_rajce_value_live_api_request_peek_pointer (const GValue* value) -{ -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return value->data[0].v_pointer; -#line 10223 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_value_live_api_request_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (collect_values[0].v_pointer) { -#line 10235 "RajcePublishing.c" - PublishingRajceLiveApiRequest * object; - object = collect_values[0].v_pointer; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 10242 "RajcePublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 10246 "RajcePublishing.c" - } -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = publishing_rajce_live_api_request_ref (object); -#line 10250 "RajcePublishing.c" - } else { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 10254 "RajcePublishing.c" - } -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 10258 "RajcePublishing.c" -} - - -static gchar* -publishing_rajce_value_live_api_request_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingRajceLiveApiRequest ** object_p; - object_p = collect_values[0].v_pointer; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!object_p) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 10274 "RajcePublishing.c" - } -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (!value->data[0].v_pointer) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = NULL; -#line 10280 "RajcePublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = value->data[0].v_pointer; -#line 10284 "RajcePublishing.c" - } else { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *object_p = publishing_rajce_live_api_request_ref (value->data[0].v_pointer); -#line 10288 "RajcePublishing.c" - } -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 10292 "RajcePublishing.c" -} - - -GParamSpec* -publishing_rajce_param_spec_live_api_request (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingRajceParamSpecLiveApiRequest* spec; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST), NULL); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return G_PARAM_SPEC (spec); -#line 10312 "RajcePublishing.c" -} - - -gpointer -publishing_rajce_value_get_live_api_request (const GValue* value) -{ -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST), NULL); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return value->data[0].v_pointer; -#line 10323 "RajcePublishing.c" -} - - -void -publishing_rajce_value_set_live_api_request (GValue* value, - gpointer v_object) -{ - PublishingRajceLiveApiRequest * old; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST)); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - old = value->data[0].v_pointer; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (v_object) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST)); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = v_object; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_ref (value->data[0].v_pointer); -#line 10346 "RajcePublishing.c" - } else { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 10350 "RajcePublishing.c" - } -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (old) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_unref (old); -#line 10356 "RajcePublishing.c" - } -} - - -void -publishing_rajce_value_take_live_api_request (GValue* value, - gpointer v_object) -{ - PublishingRajceLiveApiRequest * old; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST)); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - old = value->data[0].v_pointer; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (v_object) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST)); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = v_object; -#line 10378 "RajcePublishing.c" - } else { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - value->data[0].v_pointer = NULL; -#line 10382 "RajcePublishing.c" - } -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (old) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_unref (old); -#line 10388 "RajcePublishing.c" - } -} - - -static void -publishing_rajce_live_api_request_class_init (PublishingRajceLiveApiRequestClass * klass) -{ -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_parent_class = g_type_class_peek_parent (klass); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRajceLiveApiRequestClass *) klass)->finalize = publishing_rajce_live_api_request_finalize; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingRajceLiveApiRequestPrivate)); -#line 10402 "RajcePublishing.c" -} - - -static void -publishing_rajce_live_api_request_instance_init (PublishingRajceLiveApiRequest * self) -{ -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv = PUBLISHING_RAJCE_LIVE_API_REQUEST_GET_PRIVATE (self); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->ref_count = 1; -#line 10413 "RajcePublishing.c" -} - - -static void -publishing_rajce_live_api_request_finalize (PublishingRajceLiveApiRequest * obj) -{ - PublishingRajceLiveApiRequest * self; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_LIVE_API_REQUEST, PublishingRajceLiveApiRequest); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_signal_handlers_destroy (self); -#line 1260 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->_params = (_vala_array_free (self->priv->_params, self->priv->_params_length1, (GDestroyNotify) publishing_rajce_arg_item_unref), NULL); -#line 1261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (self->priv->_cmd); -#line 10429 "RajcePublishing.c" -} - - -GType -publishing_rajce_live_api_request_get_type (void) -{ - static volatile gsize publishing_rajce_live_api_request_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_live_api_request_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_rajce_value_live_api_request_init, publishing_rajce_value_live_api_request_free_value, publishing_rajce_value_live_api_request_copy_value, publishing_rajce_value_live_api_request_peek_pointer, "p", publishing_rajce_value_live_api_request_collect_value, "p", publishing_rajce_value_live_api_request_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceLiveApiRequestClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_live_api_request_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceLiveApiRequest), 0, (GInstanceInitFunc) publishing_rajce_live_api_request_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_rajce_live_api_request_type_id; - publishing_rajce_live_api_request_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingRajceLiveApiRequest", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_rajce_live_api_request_type_id__volatile, publishing_rajce_live_api_request_type_id); - } - return publishing_rajce_live_api_request_type_id__volatile; -} - - -gpointer -publishing_rajce_live_api_request_ref (gpointer instance) -{ - PublishingRajceLiveApiRequest * self; - self = instance; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return instance; -#line 10458 "RajcePublishing.c" -} - - -void -publishing_rajce_live_api_request_unref (gpointer instance) -{ - PublishingRajceLiveApiRequest * self; - self = instance; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - PUBLISHING_RAJCE_LIVE_API_REQUEST_GET_CLASS (self)->finalize (self); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 10473 "RajcePublishing.c" - } -} - - -PublishingRajceTransaction* -publishing_rajce_transaction_construct (GType object_type, - PublishingRajceSession* session) -{ - PublishingRajceTransaction* self = NULL; -#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceTransaction*) publishing_rest_support_transaction_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 10489 "RajcePublishing.c" -} - - -PublishingRajceTransaction* -publishing_rajce_transaction_new (PublishingRajceSession* session) -{ -#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_transaction_construct (PUBLISHING_RAJCE_TYPE_TRANSACTION, session); -#line 10498 "RajcePublishing.c" -} - - -gchar* -publishing_rajce_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc) -{ - gchar* result = NULL; - xmlNode* root = NULL; - xmlNode* _tmp0_; - xmlNode* _tmp1_; - gchar* name = NULL; - xmlNode* _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; - gboolean _tmp6_ = FALSE; - const gchar* _tmp7_; - xmlNode* errcode = NULL; - xmlNode* _result_ = NULL; - xmlNode* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - xmlNode* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - GError * _inner_error_ = NULL; -#line 1361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL); -#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rest_support_xml_document_get_root_node (doc); -#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - root = _tmp0_; -#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = root; -#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp1_ == NULL) { -#line 10536 "RajcePublishing.c" - gchar* _tmp2_; -#line 1366 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = g_strdup ("No XML returned from server"); -#line 1366 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp2_; -#line 1366 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 10544 "RajcePublishing.c" - } -#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = root; -#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = _tmp3_->name; -#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = g_strdup (_tmp4_); -#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - name = _tmp5_; -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = name; -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp7_ == NULL) { -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = TRUE; -#line 10560 "RajcePublishing.c" - } else { - const gchar* _tmp8_; -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = name; -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = g_strcmp0 (_tmp8_, "response") != 0; -#line 10567 "RajcePublishing.c" - } -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp6_) { -#line 10571 "RajcePublishing.c" - gchar* _tmp9_; -#line 1373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = g_strdup ("No response from Rajce in XML"); -#line 1373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp9_; -#line 1373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (name); -#line 1373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 10581 "RajcePublishing.c" - } - { - xmlNode* _tmp10_ = NULL; - xmlNode* _tmp11_; - xmlNode* _tmp12_; - xmlNode* _tmp13_ = NULL; - xmlNode* _tmp14_; - xmlNode* _tmp15_; -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = root; -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = publishing_rest_support_xml_document_get_named_child (doc, _tmp11_, "errorCode", &_inner_error_); -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = _tmp12_; -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 10600 "RajcePublishing.c" - goto __catch31_spit_publishing_publishing_error; - } -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (name); -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 10611 "RajcePublishing.c" - } -#line 1379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - errcode = _tmp10_; -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = root; -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = publishing_rest_support_xml_document_get_named_child (doc, _tmp14_, "result", &_inner_error_); -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = _tmp15_; -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 10625 "RajcePublishing.c" - goto __catch31_spit_publishing_publishing_error; - } -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (name); -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 10636 "RajcePublishing.c" - } -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _result_ = _tmp13_; -#line 10640 "RajcePublishing.c" - } - goto __finally31; - __catch31_spit_publishing_publishing_error: - { - GError* err = NULL; -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - err = _inner_error_; -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _inner_error_ = NULL; -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = NULL; -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_error_free0 (err); -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (name); -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 10658 "RajcePublishing.c" - } - __finally31: -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (name); -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_clear_error (&_inner_error_); -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return NULL; -#line 10671 "RajcePublishing.c" - } -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = errcode; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = (gchar*) xmlNodeGetContent (_tmp16_); -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = _tmp17_; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = _result_; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = (gchar*) xmlNodeGetContent (_tmp19_); -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = _tmp20_; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = g_strdup_printf ("999 Rajce Error [%d]: %s", atoi (_tmp18_), _tmp21_); -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = _tmp22_; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp21_); -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp18_); -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - result = _tmp23_; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (name); -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return result; -#line 10699 "RajcePublishing.c" -} - - -static void -publishing_rajce_transaction_class_init (PublishingRajceTransactionClass * klass) -{ -#line 1354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_transaction_parent_class = g_type_class_peek_parent (klass); -#line 10708 "RajcePublishing.c" -} - - -static void -publishing_rajce_transaction_instance_init (PublishingRajceTransaction * self) -{ -} - - -/** - * Generic REST transaction class. - * - * This class implements the generic logic for all REST transactions used - * by the Rajce publishing plugin. - */ -GType -publishing_rajce_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceTransaction), 0, (GInstanceInitFunc) publishing_rajce_transaction_instance_init, NULL }; - GType publishing_rajce_transaction_type_id; - publishing_rajce_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingRajceTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_transaction_type_id__volatile, publishing_rajce_transaction_type_id); - } - return publishing_rajce_transaction_type_id__volatile; -} - - -PublishingRajceSessionLoginTransaction* -publishing_rajce_session_login_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - const gchar* username, - const gchar* token) -{ - PublishingRajceSessionLoginTransaction* self = NULL; - PublishingRajceLiveApiRequest* req = NULL; - PublishingRajceLiveApiRequest* _tmp0_; - gchar* xml = NULL; - gchar* _tmp1_; -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (username != NULL, NULL); -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (token != NULL, NULL); -#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:1397: SessionLoginTransaction: URL: %s", url); -#line 1398 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceSessionLoginTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_live_api_request_new ("login"); -#line 1399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - req = _tmp0_; -#line 1400 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "clientID", "RajceShotwellPlugin"); -#line 1401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "currentVersion", "1.1.1.1"); -#line 1402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "login", username); -#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "password", token); -#line 1404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE); -#line 1404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xml = _tmp1_; -#line 1405 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml); -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xml); -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_live_api_request_unref0 (req); -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 10786 "RajcePublishing.c" -} - - -PublishingRajceSessionLoginTransaction* -publishing_rajce_session_login_transaction_new (PublishingRajceSession* session, - const gchar* url, - const gchar* username, - const gchar* token) -{ -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_session_login_transaction_construct (PUBLISHING_RAJCE_TYPE_SESSION_LOGIN_TRANSACTION, session, url, username, token); -#line 10798 "RajcePublishing.c" -} - - -static void -publishing_rajce_session_login_transaction_class_init (PublishingRajceSessionLoginTransactionClass * klass) -{ -#line 1393 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_session_login_transaction_parent_class = g_type_class_peek_parent (klass); -#line 10807 "RajcePublishing.c" -} - - -static void -publishing_rajce_session_login_transaction_instance_init (PublishingRajceSessionLoginTransaction * self) -{ -} - - -/** - * Transaction used to implement the network login interaction. - */ -GType -publishing_rajce_session_login_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_session_login_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_session_login_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceSessionLoginTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_session_login_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceSessionLoginTransaction), 0, (GInstanceInitFunc) publishing_rajce_session_login_transaction_instance_init, NULL }; - GType publishing_rajce_session_login_transaction_type_id; - publishing_rajce_session_login_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceSessionLoginTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_session_login_transaction_type_id__volatile, publishing_rajce_session_login_transaction_type_id); - } - return publishing_rajce_session_login_transaction_type_id__volatile; -} - - -static void -_vala_array_add9 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value) -{ -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*length) == (*size)) { -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1); -#line 10846 "RajcePublishing.c" - } -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[(*length)++] = value; -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[*length] = NULL; -#line 10852 "RajcePublishing.c" -} - - -static void -_vala_array_add10 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value) -{ -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*length) == (*size)) { -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1); -#line 10868 "RajcePublishing.c" - } -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[(*length)++] = value; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[*length] = NULL; -#line 10874 "RajcePublishing.c" -} - - -static void -_vala_array_add11 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value) -{ -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*length) == (*size)) { -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1); -#line 10890 "RajcePublishing.c" - } -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[(*length)++] = value; -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[*length] = NULL; -#line 10896 "RajcePublishing.c" -} - - -static void -_vala_array_add12 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value) -{ -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*length) == (*size)) { -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1); -#line 10912 "RajcePublishing.c" - } -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[(*length)++] = value; -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[*length] = NULL; -#line 10918 "RajcePublishing.c" -} - - -static void -_vala_array_add13 (PublishingRajceArgItem** * array, - int* length, - int* size, - PublishingRajceArgItem* value) -{ -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*length) == (*size)) { -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - *array = g_renew (PublishingRajceArgItem*, *array, (*size) + 1); -#line 10934 "RajcePublishing.c" - } -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[(*length)++] = value; -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - (*array)[*length] = NULL; -#line 10940 "RajcePublishing.c" -} - - -PublishingRajceGetAlbumsTransaction* -publishing_rajce_get_albums_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url) -{ - PublishingRajceGetAlbumsTransaction* self = NULL; - PublishingRajceLiveApiRequest* req = NULL; - PublishingRajceLiveApiRequest* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - PublishingRajceArgItem** columns = NULL; - PublishingRajceArgItem** _tmp3_; - gint columns_length1; - gint _columns_size_; - PublishingRajceArgItem** _tmp4_; - gint _tmp4__length1; - PublishingRajceArgItem* _tmp5_; - PublishingRajceArgItem** _tmp6_; - gint _tmp6__length1; - PublishingRajceArgItem* _tmp7_; - PublishingRajceArgItem** _tmp8_; - gint _tmp8__length1; - PublishingRajceArgItem* _tmp9_; - PublishingRajceArgItem** _tmp10_; - gint _tmp10__length1; - PublishingRajceArgItem* _tmp11_; - PublishingRajceArgItem** _tmp12_; - gint _tmp12__length1; - PublishingRajceArgItem* _tmp13_; - PublishingRajceArgItem** _tmp14_; - gint _tmp14__length1; - gchar* xml = NULL; - gchar* _tmp15_; -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1416 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceGetAlbumsTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_live_api_request_new ("getAlbumList"); -#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - req = _tmp0_; -#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_session_get_usertoken (session); -#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _tmp1_; -#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "token", _tmp2_); -#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp2_); -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = g_new0 (PublishingRajceArgItem*, 0 + 1); -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - columns = _tmp3_; -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - columns_length1 = 0; -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _columns_size_ = columns_length1; -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = columns; -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4__length1 = columns_length1; -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = publishing_rajce_arg_item_new ("column", "viewCount"); -#line 1420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_array_add9 (&columns, &columns_length1, &_columns_size_, _tmp5_); -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = columns; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6__length1 = columns_length1; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = publishing_rajce_arg_item_new ("column", "isFavourite"); -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_array_add10 (&columns, &columns_length1, &_columns_size_, _tmp7_); -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = columns; -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8__length1 = columns_length1; -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = publishing_rajce_arg_item_new ("column", "descriptionHtml"); -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_array_add11 (&columns, &columns_length1, &_columns_size_, _tmp9_); -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = columns; -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10__length1 = columns_length1; -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = publishing_rajce_arg_item_new ("column", "coverPhotoID"); -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_array_add12 (&columns, &columns_length1, &_columns_size_, _tmp11_); -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = columns; -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12__length1 = columns_length1; -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = publishing_rajce_arg_item_new ("column", "localPath"); -#line 1424 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _vala_array_add13 (&columns, &columns_length1, &_columns_size_, _tmp13_); -#line 1425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = columns; -#line 1425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14__length1 = columns_length1; -#line 1425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParamNode (req, "columns", _tmp14_, _tmp14__length1); -#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE); -#line 1426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xml = _tmp15_; -#line 1427 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xml); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - columns = (_vala_array_free (columns, columns_length1, (GDestroyNotify) publishing_rajce_arg_item_unref), NULL); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_live_api_request_unref0 (req); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 11063 "RajcePublishing.c" -} - - -PublishingRajceGetAlbumsTransaction* -publishing_rajce_get_albums_transaction_new (PublishingRajceSession* session, - const gchar* url) -{ -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_get_albums_transaction_construct (PUBLISHING_RAJCE_TYPE_GET_ALBUMS_TRANSACTION, session, url); -#line 11073 "RajcePublishing.c" -} - - -static void -publishing_rajce_get_albums_transaction_class_init (PublishingRajceGetAlbumsTransactionClass * klass) -{ -#line 1412 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_get_albums_transaction_parent_class = g_type_class_peek_parent (klass); -#line 11082 "RajcePublishing.c" -} - - -static void -publishing_rajce_get_albums_transaction_instance_init (PublishingRajceGetAlbumsTransaction * self) -{ -} - - -/** - * Transaction used to implement the get albums interaction. - */ -GType -publishing_rajce_get_albums_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_get_albums_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_get_albums_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceGetAlbumsTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_get_albums_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceGetAlbumsTransaction), 0, (GInstanceInitFunc) publishing_rajce_get_albums_transaction_instance_init, NULL }; - GType publishing_rajce_get_albums_transaction_type_id; - publishing_rajce_get_albums_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceGetAlbumsTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_get_albums_transaction_type_id__volatile, publishing_rajce_get_albums_transaction_type_id); - } - return publishing_rajce_get_albums_transaction_type_id__volatile; -} - - -PublishingRajceCreateAlbumTransaction* -publishing_rajce_create_album_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - const gchar* albumName, - gboolean hidden) -{ - PublishingRajceCreateAlbumTransaction* self = NULL; - PublishingRajceLiveApiRequest* req = NULL; - PublishingRajceLiveApiRequest* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* xml = NULL; - gchar* _tmp3_; -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (albumName != NULL, NULL); -#line 1438 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceCreateAlbumTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_live_api_request_new ("createAlbum"); -#line 1439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - req = _tmp0_; -#line 1440 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_session_get_usertoken (session); -#line 1440 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _tmp1_; -#line 1440 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "token", _tmp2_); -#line 1440 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp2_); -#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "albumName", albumName); -#line 1442 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "albumDescription", ""); -#line 1443 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParamBool (req, "albumVisible", !hidden); -#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE); -#line 1444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xml = _tmp3_; -#line 1445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml); -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xml); -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_live_api_request_unref0 (req); -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 11161 "RajcePublishing.c" -} - - -PublishingRajceCreateAlbumTransaction* -publishing_rajce_create_album_transaction_new (PublishingRajceSession* session, - const gchar* url, - const gchar* albumName, - gboolean hidden) -{ -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_create_album_transaction_construct (PUBLISHING_RAJCE_TYPE_CREATE_ALBUM_TRANSACTION, session, url, albumName, hidden); -#line 11173 "RajcePublishing.c" -} - - -static void -publishing_rajce_create_album_transaction_class_init (PublishingRajceCreateAlbumTransactionClass * klass) -{ -#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_create_album_transaction_parent_class = g_type_class_peek_parent (klass); -#line 11182 "RajcePublishing.c" -} - - -static void -publishing_rajce_create_album_transaction_instance_init (PublishingRajceCreateAlbumTransaction * self) -{ -} - - -/** - * Transaction used to implement the create album interaction. - */ -GType -publishing_rajce_create_album_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_create_album_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_create_album_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceCreateAlbumTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_create_album_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceCreateAlbumTransaction), 0, (GInstanceInitFunc) publishing_rajce_create_album_transaction_instance_init, NULL }; - GType publishing_rajce_create_album_transaction_type_id; - publishing_rajce_create_album_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceCreateAlbumTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_create_album_transaction_type_id__volatile, publishing_rajce_create_album_transaction_type_id); - } - return publishing_rajce_create_album_transaction_type_id__volatile; -} - - -PublishingRajceOpenAlbumTransaction* -publishing_rajce_open_album_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - gint albumID) -{ - PublishingRajceOpenAlbumTransaction* self = NULL; - PublishingRajceLiveApiRequest* req = NULL; - PublishingRajceLiveApiRequest* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* xml = NULL; - gchar* _tmp3_; -#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1456 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceOpenAlbumTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_live_api_request_new ("openAlbum"); -#line 1457 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - req = _tmp0_; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_session_get_usertoken (session); -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _tmp1_; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "token", _tmp2_); -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp2_); -#line 1459 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParamInt (req, "albumID", albumID); -#line 1460 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE); -#line 1460 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xml = _tmp3_; -#line 1461 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml); -#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xml); -#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_live_api_request_unref0 (req); -#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 11254 "RajcePublishing.c" -} - - -PublishingRajceOpenAlbumTransaction* -publishing_rajce_open_album_transaction_new (PublishingRajceSession* session, - const gchar* url, - gint albumID) -{ -#line 1454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_open_album_transaction_construct (PUBLISHING_RAJCE_TYPE_OPEN_ALBUM_TRANSACTION, session, url, albumID); -#line 11265 "RajcePublishing.c" -} - - -static void -publishing_rajce_open_album_transaction_class_init (PublishingRajceOpenAlbumTransactionClass * klass) -{ -#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_open_album_transaction_parent_class = g_type_class_peek_parent (klass); -#line 11274 "RajcePublishing.c" -} - - -static void -publishing_rajce_open_album_transaction_instance_init (PublishingRajceOpenAlbumTransaction * self) -{ -} - - -/** - * Transaction used to implement the open album interaction. - */ -GType -publishing_rajce_open_album_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_open_album_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_open_album_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceOpenAlbumTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_open_album_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceOpenAlbumTransaction), 0, (GInstanceInitFunc) publishing_rajce_open_album_transaction_instance_init, NULL }; - GType publishing_rajce_open_album_transaction_type_id; - publishing_rajce_open_album_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceOpenAlbumTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_open_album_transaction_type_id__volatile, publishing_rajce_open_album_transaction_type_id); - } - return publishing_rajce_open_album_transaction_type_id__volatile; -} - - -PublishingRajceGetAlbumUrlTransaction* -publishing_rajce_get_album_url_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url) -{ - PublishingRajceGetAlbumUrlTransaction* self = NULL; - PublishingRajceLiveApiRequest* req = NULL; - PublishingRajceLiveApiRequest* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* xml = NULL; - gchar* _tmp5_; -#line 1470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1472 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceGetAlbumUrlTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_live_api_request_new ("getAlbumUrl"); -#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - req = _tmp0_; -#line 1474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_session_get_usertoken (session); -#line 1474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _tmp1_; -#line 1474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "token", _tmp2_); -#line 1474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp2_); -#line 1475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = publishing_rajce_session_get_albumtoken (session); -#line 1475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = _tmp3_; -#line 1475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "albumToken", _tmp4_); -#line 1475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp4_); -#line 1476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE); -#line 1476 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xml = _tmp5_; -#line 1477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml); -#line 1470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xml); -#line 1470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_live_api_request_unref0 (req); -#line 1470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 11353 "RajcePublishing.c" -} - - -PublishingRajceGetAlbumUrlTransaction* -publishing_rajce_get_album_url_transaction_new (PublishingRajceSession* session, - const gchar* url) -{ -#line 1470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_get_album_url_transaction_construct (PUBLISHING_RAJCE_TYPE_GET_ALBUM_URL_TRANSACTION, session, url); -#line 11363 "RajcePublishing.c" -} - - -static void -publishing_rajce_get_album_url_transaction_class_init (PublishingRajceGetAlbumUrlTransactionClass * klass) -{ -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_get_album_url_transaction_parent_class = g_type_class_peek_parent (klass); -#line 11372 "RajcePublishing.c" -} - - -static void -publishing_rajce_get_album_url_transaction_instance_init (PublishingRajceGetAlbumUrlTransaction * self) -{ -} - - -/** - * Transaction used to implement the close album interaction. - */ -GType -publishing_rajce_get_album_url_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_get_album_url_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_get_album_url_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceGetAlbumUrlTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_get_album_url_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceGetAlbumUrlTransaction), 0, (GInstanceInitFunc) publishing_rajce_get_album_url_transaction_instance_init, NULL }; - GType publishing_rajce_get_album_url_transaction_type_id; - publishing_rajce_get_album_url_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceGetAlbumUrlTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_get_album_url_transaction_type_id__volatile, publishing_rajce_get_album_url_transaction_type_id); - } - return publishing_rajce_get_album_url_transaction_type_id__volatile; -} - - -PublishingRajceCloseAlbumTransaction* -publishing_rajce_close_album_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url) -{ - PublishingRajceCloseAlbumTransaction* self = NULL; - PublishingRajceLiveApiRequest* req = NULL; - PublishingRajceLiveApiRequest* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* xml = NULL; - gchar* _tmp5_; -#line 1486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceCloseAlbumTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_live_api_request_new ("closeAlbum"); -#line 1489 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - req = _tmp0_; -#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_session_get_usertoken (session); -#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _tmp1_; -#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "token", _tmp2_); -#line 1490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp2_); -#line 1491 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = publishing_rajce_session_get_albumtoken (session); -#line 1491 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = _tmp3_; -#line 1491 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "albumToken", _tmp4_); -#line 1491 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp4_); -#line 1492 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE); -#line 1492 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xml = _tmp5_; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml); -#line 1486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xml); -#line 1486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_live_api_request_unref0 (req); -#line 1486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 11451 "RajcePublishing.c" -} - - -PublishingRajceCloseAlbumTransaction* -publishing_rajce_close_album_transaction_new (PublishingRajceSession* session, - const gchar* url) -{ -#line 1486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_close_album_transaction_construct (PUBLISHING_RAJCE_TYPE_CLOSE_ALBUM_TRANSACTION, session, url); -#line 11461 "RajcePublishing.c" -} - - -static void -publishing_rajce_close_album_transaction_class_init (PublishingRajceCloseAlbumTransactionClass * klass) -{ -#line 1484 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_close_album_transaction_parent_class = g_type_class_peek_parent (klass); -#line 11470 "RajcePublishing.c" -} - - -static void -publishing_rajce_close_album_transaction_instance_init (PublishingRajceCloseAlbumTransaction * self) -{ -} - - -/** - * Transaction used to implement the close album interaction. - */ -GType -publishing_rajce_close_album_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_close_album_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_close_album_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceCloseAlbumTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_close_album_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceCloseAlbumTransaction), 0, (GInstanceInitFunc) publishing_rajce_close_album_transaction_instance_init, NULL }; - GType publishing_rajce_close_album_transaction_type_id; - publishing_rajce_close_album_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceCloseAlbumTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_close_album_transaction_type_id__volatile, publishing_rajce_close_album_transaction_type_id); - } - return publishing_rajce_close_album_transaction_type_id__volatile; -} - - -PublishingRajceGetCategoriesTransaction* -publishing_rajce_get_categories_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url) -{ - PublishingRajceGetCategoriesTransaction* self = NULL; - PublishingRajceLiveApiRequest* req = NULL; - PublishingRajceLiveApiRequest* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* xml = NULL; - gchar* _tmp3_; -#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceGetCategoriesTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = publishing_rajce_live_api_request_new ("getCategories"); -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - req = _tmp0_; -#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = publishing_rajce_session_get_usertoken (session); -#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = _tmp1_; -#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (req, "token", _tmp2_); -#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp2_); -#line 1507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = publishing_rajce_live_api_request_Params2XmlString (req, TRUE); -#line 1507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xml = _tmp3_; -#line 1508 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml); -#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xml); -#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_live_api_request_unref0 (req); -#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 11539 "RajcePublishing.c" -} - - -PublishingRajceGetCategoriesTransaction* -publishing_rajce_get_categories_transaction_new (PublishingRajceSession* session, - const gchar* url) -{ -#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_get_categories_transaction_construct (PUBLISHING_RAJCE_TYPE_GET_CATEGORIES_TRANSACTION, session, url); -#line 11549 "RajcePublishing.c" -} - - -static void -publishing_rajce_get_categories_transaction_class_init (PublishingRajceGetCategoriesTransactionClass * klass) -{ -#line 1500 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_get_categories_transaction_parent_class = g_type_class_peek_parent (klass); -#line 11558 "RajcePublishing.c" -} - - -static void -publishing_rajce_get_categories_transaction_instance_init (PublishingRajceGetCategoriesTransaction * self) -{ -} - - -/** - * Transaction used to implement the get categories interaction. - */ -GType -publishing_rajce_get_categories_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_get_categories_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_get_categories_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceGetCategoriesTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_get_categories_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceGetCategoriesTransaction), 0, (GInstanceInitFunc) publishing_rajce_get_categories_transaction_instance_init, NULL }; - GType publishing_rajce_get_categories_transaction_type_id; - publishing_rajce_get_categories_transaction_type_id = g_type_register_static (PUBLISHING_RAJCE_TYPE_TRANSACTION, "PublishingRajceGetCategoriesTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_get_categories_transaction_type_id__volatile, publishing_rajce_get_categories_transaction_type_id); - } - return publishing_rajce_get_categories_transaction_type_id__volatile; -} - - -static void -_g_free0_ (gpointer var) -{ -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - var = (g_free (var), NULL); -#line 11590 "RajcePublishing.c" -} - - -PublishingRajceAddPhotoTransaction* -publishing_rajce_add_photo_transaction_construct (GType object_type, - PublishingRajceSession* session, - const gchar* url, - PublishingRajcePublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ - PublishingRajceAddPhotoTransaction* self = NULL; - PublishingRajcePublishingParameters* _tmp0_; - const gchar* _tmp1_ = NULL; - gint* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - const gchar* _tmp7_; - gchar* basename = NULL; - gchar* _tmp8_; - gchar* comment = NULL; - gchar* _tmp9_; - gchar* pubname = NULL; - gchar* _tmp10_; - gint width = 0; - gint height = 0; - PublishingRajceLiveApiRequest* req = NULL; - PublishingRajceLiveApiRequest* _tmp11_; - PublishingRajceLiveApiRequest* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - PublishingRajceLiveApiRequest* _tmp15_; - gint _tmp16_; - PublishingRajceLiveApiRequest* _tmp17_; - gint _tmp18_; - PublishingRajceLiveApiRequest* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - PublishingRajceLiveApiRequest* _tmp22_; - const gchar* _tmp23_; - PublishingRajceLiveApiRequest* _tmp24_; - const gchar* _tmp25_; - const gchar* _tmp26_ = NULL; - const gchar* _tmp27_; - PublishingRajceLiveApiRequest* _tmp29_; - gchar* xml = NULL; - PublishingRajceLiveApiRequest* _tmp30_; - gchar* _tmp31_; - GHashTable* disposition_table = NULL; - GHashFunc _tmp32_; - GEqualFunc _tmp33_; - GHashTable* _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; - gchar* _tmp37_; - const gchar* _tmp38_; - gchar* _tmp39_; -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_SESSION (session), NULL); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (PUBLISHING_RAJCE_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 1521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = (PublishingRajceAddPhotoTransaction*) publishing_rest_support_upload_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishable, url); -#line 1522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp0_ = _publishing_rajce_publishing_parameters_ref0 (parameters); -#line 1522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters); -#line 1522 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->parameters = _tmp0_; -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp2_ = parameters->album_id; -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if ((*_tmp2_) > 0) { -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = ""; -#line 11671 "RajcePublishing.c" - } else { -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp1_ = " new"; -#line 11675 "RajcePublishing.c" - } -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp3_ = spit_publishing_publishable_get_serialized_file (publishable); -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp4_ = _tmp3_; -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp5_ = g_file_get_basename (_tmp4_); -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp6_ = _tmp5_; -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp7_ = parameters->album_name; -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_debug ("RajcePublishing.vala:1524: RajcePlugin: Uploading photo %s to%s album " \ -"%s", _tmp6_, _tmp1_, _tmp7_); -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp6_); -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_object_unref0 (_tmp4_); -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp8_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - basename = _tmp8_; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp9_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT); -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - comment = _tmp9_; -#line 1528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp10_ = spit_publishing_publishable_get_publishing_name (publishable); -#line 1528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - pubname = _tmp10_; -#line 1530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - width = publishing_rajce_session_get_maxsize (session); -#line 1531 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - height = publishing_rajce_session_get_maxsize (session); -#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp11_ = publishing_rajce_live_api_request_new ("addPhoto"); -#line 1533 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - req = _tmp11_; -#line 1534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp12_ = req; -#line 1534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp13_ = publishing_rajce_session_get_usertoken (session); -#line 1534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp14_ = _tmp13_; -#line 1534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (_tmp12_, "token", _tmp14_); -#line 1534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp14_); -#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp15_ = req; -#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp16_ = width; -#line 1535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParamInt (_tmp15_, "width", _tmp16_); -#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp17_ = req; -#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp18_ = height; -#line 1536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParamInt (_tmp17_, "height", _tmp18_); -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp19_ = req; -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp20_ = publishing_rajce_session_get_albumtoken (session); -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp21_ = _tmp20_; -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (_tmp19_, "albumToken", _tmp21_); -#line 1537 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (_tmp21_); -#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp22_ = req; -#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp23_ = pubname; -#line 1538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (_tmp22_, "photoName", _tmp23_); -#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp24_ = req; -#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp25_ = basename; -#line 1539 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (_tmp24_, "fullFileName", _tmp25_); -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp27_ = comment; -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - if (_tmp27_ != NULL) { -#line 11761 "RajcePublishing.c" - const gchar* _tmp28_; -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp28_ = comment; -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = _tmp28_; -#line 11767 "RajcePublishing.c" - } else { -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp26_ = ""; -#line 11771 "RajcePublishing.c" - } -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp29_ = req; -#line 1540 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_live_api_request_AddParam (_tmp29_, "description", _tmp26_); -#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp30_ = req; -#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp31_ = publishing_rajce_live_api_request_Params2XmlString (_tmp30_, FALSE); -#line 1541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - xml = _tmp31_; -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data", xml); -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp32_ = g_str_hash; -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp33_ = g_str_equal; -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp34_ = g_hash_table_new_full (_tmp32_, _tmp33_, _g_free0_, _g_free0_); -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - disposition_table = _tmp34_; -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp35_ = g_strdup ("name"); -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp36_ = g_strdup ("photo"); -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_hash_table_insert (disposition_table, _tmp35_, _tmp36_); -#line 1546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp37_ = g_strdup ("filename"); -#line 1546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp38_ = basename; -#line 1546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _tmp39_ = soup_uri_encode (_tmp38_, NULL); -#line 1546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_hash_table_insert (disposition_table, _tmp37_, _tmp39_); -#line 1547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rest_support_upload_transaction_set_binary_disposition_table (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction), disposition_table); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_hash_table_unref0 (disposition_table); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (xml); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_live_api_request_unref0 (req); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (pubname); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (comment); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _g_free0 (basename); -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return self; -#line 11823 "RajcePublishing.c" -} - - -PublishingRajceAddPhotoTransaction* -publishing_rajce_add_photo_transaction_new (PublishingRajceSession* session, - const gchar* url, - PublishingRajcePublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ -#line 1519 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - return publishing_rajce_add_photo_transaction_construct (PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, session, url, parameters, publishable); -#line 11835 "RajcePublishing.c" -} - - -static void -publishing_rajce_add_photo_transaction_class_init (PublishingRajceAddPhotoTransactionClass * klass) -{ -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - publishing_rajce_add_photo_transaction_parent_class = g_type_class_peek_parent (klass); -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_rajce_add_photo_transaction_finalize; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingRajceAddPhotoTransactionPrivate)); -#line 11848 "RajcePublishing.c" -} - - -static void -publishing_rajce_add_photo_transaction_instance_init (PublishingRajceAddPhotoTransaction * self) -{ -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv = PUBLISHING_RAJCE_ADD_PHOTO_TRANSACTION_GET_PRIVATE (self); -#line 1517 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self->priv->parameters = NULL; -#line 11859 "RajcePublishing.c" -} - - -static void -publishing_rajce_add_photo_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingRajceAddPhotoTransaction * self; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_RAJCE_TYPE_ADD_PHOTO_TRANSACTION, PublishingRajceAddPhotoTransaction); -#line 1517 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - _publishing_rajce_publishing_parameters_unref0 (self->priv->parameters); -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/RajcePublishing.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_rajce_add_photo_transaction_parent_class)->finalize (obj); -#line 11873 "RajcePublishing.c" -} - - -/** - * Transaction used to implement the upload photo. - */ -GType -publishing_rajce_add_photo_transaction_get_type (void) -{ - static volatile gsize publishing_rajce_add_photo_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_rajce_add_photo_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingRajceAddPhotoTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_rajce_add_photo_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingRajceAddPhotoTransaction), 0, (GInstanceInitFunc) publishing_rajce_add_photo_transaction_instance_init, NULL }; - GType publishing_rajce_add_photo_transaction_type_id; - publishing_rajce_add_photo_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, "PublishingRajceAddPhotoTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_rajce_add_photo_transaction_type_id__volatile, publishing_rajce_add_photo_transaction_type_id); - } - return publishing_rajce_add_photo_transaction_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/shotwell-publishing-extras/YandexPublishing.c b/plugins/shotwell-publishing-extras/YandexPublishing.c deleted file mode 100644 index 8a81c99..0000000 --- a/plugins/shotwell-publishing-extras/YandexPublishing.c +++ /dev/null @@ -1,5214 +0,0 @@ -/* YandexPublishing.c generated by valac 0.40.4, the Vala compiler - * generated from YandexPublishing.vala, do not modify */ - -/* Copyright 2010+ Evgeniy Polyakov - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_YANDEX_SERVICE (yandex_service_get_type ()) -#define YANDEX_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_YANDEX_SERVICE, YandexService)) -#define YANDEX_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_YANDEX_SERVICE, YandexServiceClass)) -#define IS_YANDEX_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_YANDEX_SERVICE)) -#define IS_YANDEX_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_YANDEX_SERVICE)) -#define YANDEX_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_YANDEX_SERVICE, YandexServiceClass)) - -typedef struct _YandexService YandexService; -typedef struct _YandexServiceClass YandexServiceClass; -typedef struct _YandexServicePrivate YandexServicePrivate; -enum { - YANDEX_SERVICE_0_PROPERTY, - YANDEX_SERVICE_NUM_PROPERTIES -}; -static GParamSpec* yandex_service_properties[YANDEX_SERVICE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER (publishing_yandex_yandex_publisher_get_type ()) -#define PUBLISHING_YANDEX_YANDEX_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher)) -#define PUBLISHING_YANDEX_YANDEX_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisherClass)) -#define PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER)) -#define PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER)) -#define PUBLISHING_YANDEX_YANDEX_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisherClass)) - -typedef struct _PublishingYandexYandexPublisher PublishingYandexYandexPublisher; -typedef struct _PublishingYandexYandexPublisherClass PublishingYandexYandexPublisherClass; - -#define PUBLISHING_YANDEX_TYPE_TRANSACTION (publishing_yandex_transaction_get_type ()) -#define PUBLISHING_YANDEX_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_TRANSACTION, PublishingYandexTransaction)) -#define PUBLISHING_YANDEX_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_TRANSACTION, PublishingYandexTransactionClass)) -#define PUBLISHING_YANDEX_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_TRANSACTION)) -#define PUBLISHING_YANDEX_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_TRANSACTION)) -#define PUBLISHING_YANDEX_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_TRANSACTION, PublishingYandexTransactionClass)) - -typedef struct _PublishingYandexTransaction PublishingYandexTransaction; -typedef struct _PublishingYandexTransactionClass PublishingYandexTransactionClass; -typedef struct _PublishingYandexTransactionPrivate PublishingYandexTransactionPrivate; - -#define PUBLISHING_YANDEX_TYPE_SESSION (publishing_yandex_session_get_type ()) -#define PUBLISHING_YANDEX_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession)) -#define PUBLISHING_YANDEX_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSessionClass)) -#define PUBLISHING_YANDEX_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_SESSION)) -#define PUBLISHING_YANDEX_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_SESSION)) -#define PUBLISHING_YANDEX_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSessionClass)) - -typedef struct _PublishingYandexSession PublishingYandexSession; -typedef struct _PublishingYandexSessionClass PublishingYandexSessionClass; -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) -typedef struct _PublishingYandexSessionPrivate PublishingYandexSessionPrivate; - -#define PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE (publishing_yandex_web_auth_pane_get_type ()) -#define PUBLISHING_YANDEX_WEB_AUTH_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPane)) -#define PUBLISHING_YANDEX_WEB_AUTH_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPaneClass)) -#define PUBLISHING_YANDEX_IS_WEB_AUTH_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE)) -#define PUBLISHING_YANDEX_IS_WEB_AUTH_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE)) -#define PUBLISHING_YANDEX_WEB_AUTH_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPaneClass)) - -typedef struct _PublishingYandexWebAuthPane PublishingYandexWebAuthPane; -typedef struct _PublishingYandexWebAuthPaneClass PublishingYandexWebAuthPaneClass; -typedef struct _PublishingYandexWebAuthPanePrivate PublishingYandexWebAuthPanePrivate; -enum { - PUBLISHING_YANDEX_WEB_AUTH_PANE_0_PROPERTY, - PUBLISHING_YANDEX_WEB_AUTH_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_yandex_web_auth_pane_properties[PUBLISHING_YANDEX_WEB_AUTH_PANE_NUM_PROPERTIES]; -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_match_info_unref0(var) ((var == NULL) ? NULL : (var = (g_match_info_unref (var), NULL))) -#define __vala_WebKitNavigationAction_free0(var) ((var == NULL) ? NULL : (var = (_vala_WebKitNavigationAction_free (var), NULL))) -enum { - PUBLISHING_YANDEX_WEB_AUTH_PANE_LOGIN_SUCCEEDED_SIGNAL, - PUBLISHING_YANDEX_WEB_AUTH_PANE_LOGIN_FAILED_SIGNAL, - PUBLISHING_YANDEX_WEB_AUTH_PANE_NUM_SIGNALS -}; -static guint publishing_yandex_web_auth_pane_signals[PUBLISHING_YANDEX_WEB_AUTH_PANE_NUM_SIGNALS] = {0}; - -#define PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS (publishing_yandex_publish_options_get_type ()) -#define PUBLISHING_YANDEX_PUBLISH_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS, PublishingYandexPublishOptions)) -#define PUBLISHING_YANDEX_PUBLISH_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS, PublishingYandexPublishOptionsClass)) -#define PUBLISHING_YANDEX_IS_PUBLISH_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS)) -#define PUBLISHING_YANDEX_IS_PUBLISH_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS)) -#define PUBLISHING_YANDEX_PUBLISH_OPTIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS, PublishingYandexPublishOptionsClass)) - -typedef struct _PublishingYandexPublishOptions PublishingYandexPublishOptions; -typedef struct _PublishingYandexPublishOptionsClass PublishingYandexPublishOptionsClass; -typedef struct _PublishingYandexPublishOptionsPrivate PublishingYandexPublishOptionsPrivate; -typedef struct _PublishingYandexParamSpecPublishOptions PublishingYandexParamSpecPublishOptions; - -#define PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE (publishing_yandex_publishing_options_pane_get_type ()) -#define PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane)) -#define PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPaneClass)) -#define PUBLISHING_YANDEX_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_YANDEX_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPaneClass)) - -typedef struct _PublishingYandexPublishingOptionsPane PublishingYandexPublishingOptionsPane; -typedef struct _PublishingYandexPublishingOptionsPaneClass PublishingYandexPublishingOptionsPaneClass; -typedef struct _PublishingYandexPublishingOptionsPanePrivate PublishingYandexPublishingOptionsPanePrivate; -enum { - PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_0_PROPERTY, - PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_yandex_publishing_options_pane_properties[PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; -enum { - PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, - PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS -}; -static guint publishing_yandex_publishing_options_pane_signals[PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; - -#define PUBLISHING_YANDEX_TYPE_UPLOADER (publishing_yandex_uploader_get_type ()) -#define PUBLISHING_YANDEX_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploader)) -#define PUBLISHING_YANDEX_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploaderClass)) -#define PUBLISHING_YANDEX_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_UPLOADER)) -#define PUBLISHING_YANDEX_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_UPLOADER)) -#define PUBLISHING_YANDEX_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploaderClass)) - -typedef struct _PublishingYandexUploader PublishingYandexUploader; -typedef struct _PublishingYandexUploaderClass PublishingYandexUploaderClass; -typedef struct _PublishingYandexUploaderPrivate PublishingYandexUploaderPrivate; - -#define PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION (publishing_yandex_upload_transaction_get_type ()) -#define PUBLISHING_YANDEX_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION, PublishingYandexUploadTransaction)) -#define PUBLISHING_YANDEX_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION, PublishingYandexUploadTransactionClass)) -#define PUBLISHING_YANDEX_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_YANDEX_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_YANDEX_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION, PublishingYandexUploadTransactionClass)) - -typedef struct _PublishingYandexUploadTransaction PublishingYandexUploadTransaction; -typedef struct _PublishingYandexUploadTransactionClass PublishingYandexUploadTransactionClass; -typedef struct _PublishingYandexUploadTransactionPrivate PublishingYandexUploadTransactionPrivate; -#define __vala_SoupMultipart_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupMultipart_free (var), NULL))) -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -#define __vala_SoupBuffer_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupBuffer_free (var), NULL))) -typedef struct _PublishingYandexYandexPublisherPrivate PublishingYandexYandexPublisherPrivate; -enum { - PUBLISHING_YANDEX_YANDEX_PUBLISHER_0_PROPERTY, - PUBLISHING_YANDEX_YANDEX_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_yandex_yandex_publisher_properties[PUBLISHING_YANDEX_YANDEX_PUBLISHER_NUM_PROPERTIES]; -#define _publishing_yandex_publish_options_unref0(var) ((var == NULL) ? NULL : (var = (publishing_yandex_publish_options_unref (var), NULL))) -#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL))) -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _YandexService { - GObject parent_instance; - YandexServicePrivate * priv; -}; - -struct _YandexServiceClass { - GObjectClass parent_class; -}; - -struct _PublishingYandexTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingYandexTransactionPrivate * priv; -}; - -struct _PublishingYandexTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingYandexSession { - PublishingRESTSupportSession parent_instance; - PublishingYandexSessionPrivate * priv; -}; - -struct _PublishingYandexSessionClass { - PublishingRESTSupportSessionClass parent_class; -}; - -struct _PublishingYandexSessionPrivate { - gchar* auth_token; -}; - -struct _PublishingYandexWebAuthPane { - ShotwellPluginsCommonWebAuthenticationPane parent_instance; - PublishingYandexWebAuthPanePrivate * priv; -}; - -struct _PublishingYandexWebAuthPaneClass { - ShotwellPluginsCommonWebAuthenticationPaneClass parent_class; -}; - -struct _PublishingYandexWebAuthPanePrivate { - GRegex* re; -}; - -struct _PublishingYandexPublishOptions { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingYandexPublishOptionsPrivate * priv; - gboolean disable_comments; - gboolean hide_original; - gchar* access_type; - gchar* destination_album; - gchar* destination_album_url; -}; - -struct _PublishingYandexPublishOptionsClass { - GTypeClass parent_class; - void (*finalize) (PublishingYandexPublishOptions *self); -}; - -struct _PublishingYandexParamSpecPublishOptions { - GParamSpec parent_instance; -}; - -struct _PublishingYandexPublishingOptionsPane { - GObject parent_instance; - PublishingYandexPublishingOptionsPanePrivate * priv; -}; - -struct _PublishingYandexPublishingOptionsPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingYandexPublishingOptionsPanePrivate { - GtkBox* box; - GtkBuilder* builder; - GtkButton* logout_button; - GtkButton* publish_button; - GtkComboBoxText* album_list; - PublishingYandexPublishOptions* options; -}; - -struct _PublishingYandexUploader { - PublishingRESTSupportBatchUploader parent_instance; - PublishingYandexUploaderPrivate * priv; -}; - -struct _PublishingYandexUploaderClass { - PublishingRESTSupportBatchUploaderClass parent_class; -}; - -struct _PublishingYandexUploaderPrivate { - PublishingYandexPublishOptions* options; -}; - -struct _PublishingYandexUploadTransaction { - PublishingYandexTransaction parent_instance; - PublishingYandexUploadTransactionPrivate * priv; -}; - -struct _PublishingYandexUploadTransactionClass { - PublishingYandexTransactionClass parent_class; -}; - -struct _PublishingYandexYandexPublisher { - GObject parent_instance; - PublishingYandexYandexPublisherPrivate * priv; -}; - -struct _PublishingYandexYandexPublisherClass { - GObjectClass parent_class; -}; - -struct _PublishingYandexYandexPublisherPrivate { - SpitPublishingPluginHost* host; - SpitPublishingProgressCallback progress_reporter; - gpointer progress_reporter_target; - GDestroyNotify progress_reporter_target_destroy_notify; - SpitPublishingService* service; - gchar* service_url; - GeeHashMap* album_list; - PublishingYandexPublishOptions* options; - gboolean running; - PublishingYandexWebAuthPane* web_auth_pane; - PublishingYandexSession* session; -}; - - -static gpointer yandex_service_parent_class = NULL; -static SpitPluggableIface * yandex_service_spit_pluggable_parent_iface = NULL; -static SpitPublishingServiceIface * yandex_service_spit_publishing_service_parent_iface = NULL; -static gpointer publishing_yandex_transaction_parent_class = NULL; -static gpointer publishing_yandex_session_parent_class = NULL; -static gpointer publishing_yandex_web_auth_pane_parent_class = NULL; -static gpointer publishing_yandex_publish_options_parent_class = NULL; -static gpointer publishing_yandex_publishing_options_pane_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_yandex_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_yandex_uploader_parent_class = NULL; -static gpointer publishing_yandex_upload_transaction_parent_class = NULL; -static gpointer publishing_yandex_yandex_publisher_parent_class = NULL; -static SpitPublishingPublisherIface * publishing_yandex_yandex_publisher_spit_publishing_publisher_parent_iface = NULL; - -GType yandex_service_get_type (void) G_GNUC_CONST; -static gint yandex_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -static const gchar* yandex_service_real_get_id (SpitPluggable* base); -static const gchar* yandex_service_real_get_pluggable_name (SpitPluggable* base); -static void yandex_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static SpitPublishingPublisher* yandex_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host); -PublishingYandexYandexPublisher* publishing_yandex_yandex_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host); -PublishingYandexYandexPublisher* publishing_yandex_yandex_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host); -GType publishing_yandex_yandex_publisher_get_type (void) G_GNUC_CONST; -static SpitPublishingPublisherMediaType yandex_service_real_get_supported_media (SpitPublishingService* base); -static void yandex_service_real_activation (SpitPluggable* base, - gboolean enabled); -YandexService* yandex_service_new (void); -YandexService* yandex_service_construct (GType object_type); -#define PUBLISHING_YANDEX_SERVICE_NAME "Yandex.Fotki" -#define PUBLISHING_YANDEX_client_id "52be4756dee3438792c831a75d7cd360" -GType publishing_yandex_transaction_get_type (void) G_GNUC_CONST; -GType publishing_yandex_session_get_type (void) G_GNUC_CONST; -PublishingYandexTransaction* publishing_yandex_transaction_new_with_url (PublishingYandexSession* session, - const gchar* url, - PublishingRESTSupportHttpMethod method); -PublishingYandexTransaction* publishing_yandex_transaction_construct_with_url (GType object_type, - PublishingYandexSession* session, - const gchar* url, - PublishingRESTSupportHttpMethod method); -static void publishing_yandex_transaction_add_headers (PublishingYandexTransaction* self); -gchar* publishing_yandex_session_get_auth_token (PublishingYandexSession* self); -PublishingYandexTransaction* publishing_yandex_transaction_new (PublishingYandexSession* session, - PublishingRESTSupportHttpMethod method); -PublishingYandexTransaction* publishing_yandex_transaction_construct (GType object_type, - PublishingYandexSession* session, - PublishingRESTSupportHttpMethod method); -void publishing_yandex_transaction_add_data (PublishingYandexTransaction* self, - const gchar* type, - const gchar* data); -#define PUBLISHING_YANDEX_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSessionPrivate)) -PublishingYandexSession* publishing_yandex_session_new (void); -PublishingYandexSession* publishing_yandex_session_construct (GType object_type); -static gboolean publishing_yandex_session_real_is_authenticated (PublishingRESTSupportSession* base); -void publishing_yandex_session_deauthenticate (PublishingYandexSession* self); -void publishing_yandex_session_set_auth_token (PublishingYandexSession* self, - const gchar* token); -static void publishing_yandex_session_finalize (PublishingRESTSupportSession * obj); -GType publishing_yandex_web_auth_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_YANDEX_WEB_AUTH_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPanePrivate)) -PublishingYandexWebAuthPane* publishing_yandex_web_auth_pane_new (const gchar* login_url); -PublishingYandexWebAuthPane* publishing_yandex_web_auth_pane_construct (GType object_type, - const gchar* login_url); -static void publishing_yandex_web_auth_pane_real_constructed (GObject* base); -static gboolean publishing_yandex_web_auth_pane_on_decide_policy (PublishingYandexWebAuthPane* self, - WebKitPolicyDecision* decision, - WebKitPolicyDecisionType type); -static gboolean _publishing_yandex_web_auth_pane_on_decide_policy_webkit_web_view_decide_policy (WebKitWebView* _sender, - WebKitPolicyDecision* decision, - WebKitPolicyDecisionType type, - gpointer self); -static void publishing_yandex_web_auth_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* base); -static WebKitNavigationAction* _vala_WebKitNavigationAction_copy (WebKitNavigationAction* self); -static void _vala_WebKitNavigationAction_free (WebKitNavigationAction* self); -static void publishing_yandex_web_auth_pane_finalize (GObject * obj); -gpointer publishing_yandex_publish_options_ref (gpointer instance); -void publishing_yandex_publish_options_unref (gpointer instance); -GParamSpec* publishing_yandex_param_spec_publish_options (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_yandex_value_set_publish_options (GValue* value, - gpointer v_object); -void publishing_yandex_value_take_publish_options (GValue* value, - gpointer v_object); -gpointer publishing_yandex_value_get_publish_options (const GValue* value); -GType publishing_yandex_publish_options_get_type (void) G_GNUC_CONST; -PublishingYandexPublishOptions* publishing_yandex_publish_options_new (void); -PublishingYandexPublishOptions* publishing_yandex_publish_options_construct (GType object_type); -static void publishing_yandex_publish_options_finalize (PublishingYandexPublishOptions * obj); -GType publishing_yandex_publishing_options_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPanePrivate)) -static SpitPublishingDialogPaneGeometryOptions publishing_yandex_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_yandex_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void publishing_yandex_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static GtkWidget* publishing_yandex_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base); -PublishingYandexPublishingOptionsPane* publishing_yandex_publishing_options_pane_new (PublishingYandexPublishOptions* options, - GeeHashMap* list, - SpitPublishingPluginHost* host); -PublishingYandexPublishingOptionsPane* publishing_yandex_publishing_options_pane_construct (GType object_type, - PublishingYandexPublishOptions* options, - GeeHashMap* list, - SpitPublishingPluginHost* host); -static void publishing_yandex_publishing_options_pane_on_publish_clicked (PublishingYandexPublishingOptionsPane* self); -static void _publishing_yandex_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_yandex_publishing_options_pane_on_logout_clicked (PublishingYandexPublishingOptionsPane* self); -static void _publishing_yandex_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_yandex_publishing_options_pane_finalize (GObject * obj); -GType publishing_yandex_uploader_get_type (void) G_GNUC_CONST; -#define PUBLISHING_YANDEX_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploaderPrivate)) -PublishingYandexUploader* publishing_yandex_uploader_new (PublishingYandexSession* session, - PublishingYandexPublishOptions* options, - SpitPublishingPublishable** photos, - int photos_length1); -PublishingYandexUploader* publishing_yandex_uploader_construct (GType object_type, - PublishingYandexSession* session, - PublishingYandexPublishOptions* options, - SpitPublishingPublishable** photos, - int photos_length1); -static PublishingRESTSupportTransaction* publishing_yandex_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable); -PublishingYandexUploadTransaction* publishing_yandex_upload_transaction_new (PublishingYandexSession* session, - PublishingYandexPublishOptions* options, - SpitPublishingPublishable* photo); -PublishingYandexUploadTransaction* publishing_yandex_upload_transaction_construct (GType object_type, - PublishingYandexSession* session, - PublishingYandexPublishOptions* options, - SpitPublishingPublishable* photo); -GType publishing_yandex_upload_transaction_get_type (void) G_GNUC_CONST; -static void publishing_yandex_uploader_finalize (PublishingRESTSupportBatchUploader * obj); -static void _vala_SoupMultipart_free (SoupMultipart* self); -static void _g_free0_ (gpointer var); -static void _vala_SoupBuffer_free (SoupBuffer* self); -#define PUBLISHING_YANDEX_YANDEX_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisherPrivate)) -gchar* publishing_yandex_yandex_publisher_get_persistent_auth_token (PublishingYandexYandexPublisher* self); -void publishing_yandex_yandex_publisher_set_persistent_auth_token (PublishingYandexYandexPublisher* self, - const gchar* auth_token); -void publishing_yandex_yandex_publisher_invalidate_persistent_session (PublishingYandexYandexPublisher* self); -gboolean publishing_yandex_yandex_publisher_is_persistent_session_available (PublishingYandexYandexPublisher* self); -static gboolean publishing_yandex_yandex_publisher_real_is_running (SpitPublishingPublisher* base); -static SpitPublishingService* publishing_yandex_yandex_publisher_real_get_service (SpitPublishingPublisher* base); -static gchar* publishing_yandex_yandex_publisher_check_response (PublishingYandexYandexPublisher* self, - PublishingRESTSupportXmlDocument* doc); -static void publishing_yandex_yandex_publisher_parse_album_entry (PublishingYandexYandexPublisher* self, - xmlNode* e, - GError** error); -void publishing_yandex_yandex_publisher_parse_album_creation (PublishingYandexYandexPublisher* self, - const gchar* data, - GError** error); -static gchar* _publishing_yandex_yandex_publisher_check_response_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self); -void publishing_yandex_yandex_publisher_parse_album_list (PublishingYandexYandexPublisher* self, - const gchar* data, - GError** error); -static void publishing_yandex_yandex_publisher_album_creation_error (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t, - GError* err); -static void publishing_yandex_yandex_publisher_album_creation_complete (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t); -static void _publishing_yandex_yandex_publisher_album_creation_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void _publishing_yandex_yandex_publisher_album_creation_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_yandex_yandex_publisher_start_upload (PublishingYandexYandexPublisher* self); -static void publishing_yandex_yandex_publisher_create_destination_album (PublishingYandexYandexPublisher* self); -static void publishing_yandex_yandex_publisher_on_upload_complete (PublishingYandexYandexPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published); -static void _publishing_yandex_yandex_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self); -static void publishing_yandex_yandex_publisher_on_upload_error (PublishingYandexYandexPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err); -static void _publishing_yandex_yandex_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self); -static void publishing_yandex_yandex_publisher_on_upload_status_updated (PublishingYandexYandexPublisher* self, - gint file_number, - gdouble completed_fraction); -static void _publishing_yandex_yandex_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -static void publishing_yandex_yandex_publisher_on_logout (PublishingYandexYandexPublisher* self); -static void publishing_yandex_yandex_publisher_on_publish (PublishingYandexYandexPublisher* self); -void publishing_yandex_yandex_publisher_service_get_album_list_error (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t, - GError* err); -void publishing_yandex_yandex_publisher_service_get_album_list_complete (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t); -static void _publishing_yandex_yandex_publisher_service_get_album_list_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void _publishing_yandex_yandex_publisher_service_get_album_list_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void _publishing_yandex_yandex_publisher_on_publish_publishing_yandex_publishing_options_pane_publish (PublishingYandexPublishingOptionsPane* _sender, - gpointer self); -static void _publishing_yandex_yandex_publisher_on_logout_publishing_yandex_publishing_options_pane_logout (PublishingYandexPublishingOptionsPane* _sender, - gpointer self); -void publishing_yandex_yandex_publisher_service_get_album_list (PublishingYandexYandexPublisher* self, - const gchar* url); -void publishing_yandex_yandex_publisher_fetch_account_error (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t, - GError* err); -void publishing_yandex_yandex_publisher_fetch_account_complete (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t); -static void _publishing_yandex_yandex_publisher_fetch_account_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void _publishing_yandex_yandex_publisher_fetch_account_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -void publishing_yandex_yandex_publisher_fetch_account_information (PublishingYandexYandexPublisher* self, - const gchar* auth_token); -static void publishing_yandex_yandex_publisher_web_auth_login_succeeded (PublishingYandexYandexPublisher* self, - const gchar* access_token); -static void publishing_yandex_yandex_publisher_web_auth_login_failed (PublishingYandexYandexPublisher* self); -static void publishing_yandex_yandex_publisher_start_web_auth (PublishingYandexYandexPublisher* self); -static void _publishing_yandex_yandex_publisher_web_auth_login_succeeded_publishing_yandex_web_auth_pane_login_succeeded (PublishingYandexWebAuthPane* _sender, - const gchar* success_url, - gpointer self); -static void _publishing_yandex_yandex_publisher_web_auth_login_failed_publishing_yandex_web_auth_pane_login_failed (PublishingYandexWebAuthPane* _sender, - gpointer self); -static void publishing_yandex_yandex_publisher_show_welcome_page (PublishingYandexYandexPublisher* self); -static void _publishing_yandex_yandex_publisher_start_web_auth_spit_publishing_login_callback (gpointer self); -static void publishing_yandex_yandex_publisher_real_start (SpitPublishingPublisher* base); -static void publishing_yandex_yandex_publisher_real_stop (SpitPublishingPublisher* base); -static void publishing_yandex_yandex_publisher_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -static gint -yandex_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - YandexService * self; - gint result = 0; -#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 569 "YandexPublishing.c" -} - - -static const gchar* -yandex_service_real_get_id (SpitPluggable* base) -{ - YandexService * self; - const gchar* result = NULL; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = "org.yorba.shotwell.publishing.yandex-fotki"; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 584 "YandexPublishing.c" -} - - -static const gchar* -yandex_service_real_get_pluggable_name (SpitPluggable* base) -{ - YandexService * self; - const gchar* result = NULL; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService); -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = "Yandex.Fotki"; -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 599 "YandexPublishing.c" -} - - -static void -yandex_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - YandexService * self; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (info != NULL); -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = g_strdup ("Evgeniy Polyakov "); -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 ((*info).authors); -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (*info).authors = _tmp0_; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = g_strdup (_ ("Copyright 2010+ Evgeniy Polyakov ")); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 ((*info).copyright); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (*info).copyright = _tmp1_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 ((*info).translators); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (*info).translators = _tmp2_; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = g_strdup (_VERSION); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 ((*info).version); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (*info).version = _tmp3_; -#line 25 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = g_strdup (_ ("Visit the Yandex.Fotki web site")); -#line 25 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 ((*info).website_name); -#line 25 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (*info).website_name = _tmp4_; -#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = g_strdup ("https://fotki.yandex.ru/"); -#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 ((*info).website_url); -#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (*info).website_url = _tmp5_; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (*info).is_license_wordwrapped = FALSE; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = g_strdup (RESOURCES_LICENSE); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 ((*info).license); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (*info).license = _tmp6_; -#line 663 "YandexPublishing.c" -} - - -static SpitPublishingPublisher* -yandex_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - YandexService * self; - SpitPublishingPublisher* result = NULL; - PublishingYandexYandexPublisher* _tmp0_; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = publishing_yandex_yandex_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 684 "YandexPublishing.c" -} - - -static SpitPublishingPublisherMediaType -yandex_service_real_get_supported_media (SpitPublishingService* base) -{ - YandexService * self; - SpitPublishingPublisherMediaType result = 0; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 699 "YandexPublishing.c" -} - - -static void -yandex_service_real_activation (SpitPluggable* base, - gboolean enabled) -{ - YandexService * self; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YANDEX_SERVICE, YandexService); -#line 710 "YandexPublishing.c" -} - - -YandexService* -yandex_service_construct (GType object_type) -{ - YandexService * self = NULL; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (YandexService*) g_object_new (object_type, NULL); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 722 "YandexPublishing.c" -} - - -YandexService* -yandex_service_new (void) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return yandex_service_construct (TYPE_YANDEX_SERVICE); -#line 731 "YandexPublishing.c" -} - - -static void -yandex_service_class_init (YandexServiceClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - yandex_service_parent_class = g_type_class_peek_parent (klass); -#line 740 "YandexPublishing.c" -} - - -static void -yandex_service_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - yandex_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) yandex_service_real_get_pluggable_interface; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) yandex_service_real_get_id; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) yandex_service_real_get_pluggable_name; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) yandex_service_real_get_info; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) yandex_service_real_activation; -#line 759 "YandexPublishing.c" -} - - -static void -yandex_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - yandex_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) yandex_service_real_create_publisher; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) yandex_service_real_get_supported_media; -#line 772 "YandexPublishing.c" -} - - -static void -yandex_service_instance_init (YandexService * self) -{ -} - - -GType -yandex_service_get_type (void) -{ - static volatile gsize yandex_service_type_id__volatile = 0; - if (g_once_init_enter (&yandex_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (YandexServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) yandex_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (YandexService), 0, (GInstanceInitFunc) yandex_service_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) yandex_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) yandex_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType yandex_service_type_id; - yandex_service_type_id = g_type_register_static (G_TYPE_OBJECT, "YandexService", &g_define_type_info, 0); - g_type_add_interface_static (yandex_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (yandex_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info); - g_once_init_leave (&yandex_service_type_id__volatile, yandex_service_type_id); - } - return yandex_service_type_id__volatile; -} - - -PublishingYandexTransaction* -publishing_yandex_transaction_construct_with_url (GType object_type, - PublishingYandexSession* session, - const gchar* url, - PublishingRESTSupportHttpMethod method) -{ - PublishingYandexTransaction* self = NULL; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_SESSION (session), NULL); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, method); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_transaction_add_headers (self); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 817 "YandexPublishing.c" -} - - -PublishingYandexTransaction* -publishing_yandex_transaction_new_with_url (PublishingYandexSession* session, - const gchar* url, - PublishingRESTSupportHttpMethod method) -{ -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_transaction_construct_with_url (PUBLISHING_YANDEX_TYPE_TRANSACTION, session, url, method); -#line 828 "YandexPublishing.c" -} - - -static void -publishing_yandex_transaction_add_headers (PublishingYandexTransaction* self) -{ - PublishingRESTSupportSession* _tmp0_; - PublishingYandexSession* _tmp1_; - gboolean _tmp2_; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_TRANSACTION (self)); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp2_) { -#line 850 "YandexPublishing.c" - PublishingRESTSupportSession* _tmp3_; - PublishingYandexSession* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = publishing_rest_support_transaction_get_parent_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = publishing_yandex_session_get_auth_token (_tmp4_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = _tmp5_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = g_strdup_printf ("OAuth %s", _tmp6_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = _tmp7_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Authorization", _tmp8_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp8_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp6_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp4_); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Connection", "close"); -#line 879 "YandexPublishing.c" - } -} - - -PublishingYandexTransaction* -publishing_yandex_transaction_construct (GType object_type, - PublishingYandexSession* session, - PublishingRESTSupportHttpMethod method) -{ - PublishingYandexTransaction* self = NULL; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_SESSION (session), NULL); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexTransaction*) publishing_rest_support_transaction_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), method); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_transaction_add_headers (self); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 898 "YandexPublishing.c" -} - - -PublishingYandexTransaction* -publishing_yandex_transaction_new (PublishingYandexSession* session, - PublishingRESTSupportHttpMethod method) -{ -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_transaction_construct (PUBLISHING_YANDEX_TYPE_TRANSACTION, session, method); -#line 908 "YandexPublishing.c" -} - - -void -publishing_yandex_transaction_add_data (PublishingYandexTransaction* self, - const gchar* type, - const gchar* data) -{ -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_TRANSACTION (self)); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (type != NULL); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (data != NULL); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_transaction_set_custom_payload (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), data, type, (gulong) 0); -#line 925 "YandexPublishing.c" -} - - -static void -publishing_yandex_transaction_class_init (PublishingYandexTransactionClass * klass) -{ -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_transaction_parent_class = g_type_class_peek_parent (klass); -#line 934 "YandexPublishing.c" -} - - -static void -publishing_yandex_transaction_instance_init (PublishingYandexTransaction * self) -{ -} - - -GType -publishing_yandex_transaction_get_type (void) -{ - static volatile gsize publishing_yandex_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_yandex_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexTransaction), 0, (GInstanceInitFunc) publishing_yandex_transaction_instance_init, NULL }; - GType publishing_yandex_transaction_type_id; - publishing_yandex_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingYandexTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_yandex_transaction_type_id__volatile, publishing_yandex_transaction_type_id); - } - return publishing_yandex_transaction_type_id__volatile; -} - - -PublishingYandexSession* -publishing_yandex_session_construct (GType object_type) -{ - PublishingYandexSession* self = NULL; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexSession*) publishing_rest_support_session_construct (object_type, NULL); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 966 "YandexPublishing.c" -} - - -PublishingYandexSession* -publishing_yandex_session_new (void) -{ -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_session_construct (PUBLISHING_YANDEX_TYPE_SESSION); -#line 975 "YandexPublishing.c" -} - - -static gboolean -publishing_yandex_session_real_is_authenticated (PublishingRESTSupportSession* base) -{ - PublishingYandexSession * self; - gboolean result = FALSE; - const gchar* _tmp0_; -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession); -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->auth_token; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = _tmp0_ != NULL; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 993 "YandexPublishing.c" -} - - -void -publishing_yandex_session_deauthenticate (PublishingYandexSession* self) -{ -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_SESSION (self)); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (self->priv->auth_token); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->auth_token = NULL; -#line 1006 "YandexPublishing.c" -} - - -void -publishing_yandex_session_set_auth_token (PublishingYandexSession* self, - const gchar* token) -{ - gchar* _tmp0_; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_SESSION (self)); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (token != NULL); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = g_strdup (token); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (self->priv->auth_token); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->auth_token = _tmp0_; -#line 1025 "YandexPublishing.c" -} - - -gchar* -publishing_yandex_session_get_auth_token (PublishingYandexSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_SESSION (self), NULL); -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->auth_token; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = _tmp1_; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 1045 "YandexPublishing.c" -} - - -static void -publishing_yandex_session_class_init (PublishingYandexSessionClass * klass) -{ -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_session_parent_class = g_type_class_peek_parent (klass); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_yandex_session_finalize; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYandexSessionPrivate)); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = (gboolean (*) (PublishingRESTSupportSession *)) publishing_yandex_session_real_is_authenticated; -#line 1060 "YandexPublishing.c" -} - - -static void -publishing_yandex_session_instance_init (PublishingYandexSession * self) -{ -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv = PUBLISHING_YANDEX_SESSION_GET_PRIVATE (self); -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->auth_token = NULL; -#line 1071 "YandexPublishing.c" -} - - -static void -publishing_yandex_session_finalize (PublishingRESTSupportSession * obj) -{ - PublishingYandexSession * self; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession); -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (self->priv->auth_token); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_yandex_session_parent_class)->finalize (obj); -#line 1085 "YandexPublishing.c" -} - - -GType -publishing_yandex_session_get_type (void) -{ - static volatile gsize publishing_yandex_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_yandex_session_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexSession), 0, (GInstanceInitFunc) publishing_yandex_session_instance_init, NULL }; - GType publishing_yandex_session_type_id; - publishing_yandex_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingYandexSession", &g_define_type_info, 0); - g_once_init_leave (&publishing_yandex_session_type_id__volatile, publishing_yandex_session_type_id); - } - return publishing_yandex_session_type_id__volatile; -} - - -PublishingYandexWebAuthPane* -publishing_yandex_web_auth_pane_construct (GType object_type, - const gchar* login_url) -{ - PublishingYandexWebAuthPane * self = NULL; -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (login_url != NULL, NULL); -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexWebAuthPane*) g_object_new (object_type, "login-uri", login_url, "preferred-geometry", SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE, NULL); -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 1114 "YandexPublishing.c" -} - - -PublishingYandexWebAuthPane* -publishing_yandex_web_auth_pane_new (const gchar* login_url) -{ -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_web_auth_pane_construct (PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, login_url); -#line 1123 "YandexPublishing.c" -} - - -static gboolean -_publishing_yandex_web_auth_pane_on_decide_policy_webkit_web_view_decide_policy (WebKitWebView* _sender, - WebKitPolicyDecision* decision, - WebKitPolicyDecisionType type, - gpointer self) -{ - gboolean result; - result = publishing_yandex_web_auth_pane_on_decide_policy ((PublishingYandexWebAuthPane*) self, decision, type); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 1137 "YandexPublishing.c" -} - - -static void -publishing_yandex_web_auth_pane_real_constructed (GObject* base) -{ - PublishingYandexWebAuthPane * self; - WebKitWebView* _tmp3_; - WebKitWebView* _tmp4_; - GError * _inner_error_ = NULL; -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPane); -#line 1150 "YandexPublishing.c" - { - GRegex* _tmp0_ = NULL; - GRegex* _tmp1_; - GRegex* _tmp2_; -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = g_regex_new ("(.*)#access_token=([a-zA-Z0-9]*)&", 0, 0, &_inner_error_); -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = _tmp1_; -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 1163 "YandexPublishing.c" - goto __catch32_g_regex_error; - } -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 1172 "YandexPublishing.c" - } -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = _tmp0_; -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = NULL; -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_regex_unref0 (self->priv->re); -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->re = _tmp2_; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_regex_unref0 (_tmp0_); -#line 1184 "YandexPublishing.c" - } - goto __finally32; - __catch32_g_regex_error: - { - GError* e = NULL; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - e = _inner_error_; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_assert_not_reached (); -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (e); -#line 1198 "YandexPublishing.c" - } - __finally32: -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 1209 "YandexPublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = shotwell_plugins_common_web_authentication_pane_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane)); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = _tmp3_; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (_tmp4_, "decide-policy", (GCallback) _publishing_yandex_web_auth_pane_on_decide_policy_webkit_web_view_decide_policy, self, 0); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (_tmp4_); -#line 1219 "YandexPublishing.c" -} - - -static void -publishing_yandex_web_auth_pane_real_on_page_load (ShotwellPluginsCommonWebAuthenticationPane* base) -{ - PublishingYandexWebAuthPane * self; -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPane); -#line 1229 "YandexPublishing.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self ? g_object_ref (self) : NULL; -#line 1238 "YandexPublishing.c" -} - - -static WebKitNavigationAction* -_vala_WebKitNavigationAction_copy (WebKitNavigationAction* self) -{ -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return g_boxed_copy (webkit_navigation_action_get_type (), self); -#line 1247 "YandexPublishing.c" -} - - -static gpointer -__vala_WebKitNavigationAction_copy0 (gpointer self) -{ -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self ? _vala_WebKitNavigationAction_copy (self) : NULL; -#line 1256 "YandexPublishing.c" -} - - -static void -_vala_WebKitNavigationAction_free (WebKitNavigationAction* self) -{ -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_boxed_free (webkit_navigation_action_get_type (), self); -#line 1265 "YandexPublishing.c" -} - - -static gboolean -publishing_yandex_web_auth_pane_on_decide_policy (PublishingYandexWebAuthPane* self, - WebKitPolicyDecision* decision, - WebKitPolicyDecisionType type) -{ - gboolean result = FALSE; -#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_WEB_AUTH_PANE (self), FALSE); -#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (WEBKIT_IS_POLICY_DECISION (decision), FALSE); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - switch (type) { -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - case WEBKIT_POLICY_DECISION_TYPE_NAVIGATION_ACTION: -#line 1283 "YandexPublishing.c" - { - WebKitNavigationPolicyDecision* n_decision = NULL; - WebKitNavigationPolicyDecision* _tmp0_; - WebKitNavigationAction* action = NULL; - WebKitNavigationPolicyDecision* _tmp1_; - WebKitNavigationAction* _tmp2_; - WebKitNavigationAction* _tmp3_; - WebKitNavigationAction* _tmp4_; - gchar* uri = NULL; - WebKitNavigationAction* _tmp5_; - WebKitURIRequest* _tmp6_; - const gchar* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - const gchar* _tmp10_; - GMatchInfo* info = NULL; - GRegex* _tmp11_; - const gchar* _tmp12_; - GMatchInfo* _tmp13_ = NULL; - gboolean _tmp14_; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (decision, webkit_navigation_policy_decision_get_type (), WebKitNavigationPolicyDecision)); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - n_decision = _tmp0_; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = n_decision; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = webkit_navigation_policy_decision_get_navigation_action (_tmp1_); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = _tmp2_; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = __vala_WebKitNavigationAction_copy0 (_tmp3_); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - action = _tmp4_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = action; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = webkit_navigation_action_get_request (_tmp5_); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = webkit_uri_request_get_uri (_tmp6_); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = _tmp7_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - uri = _tmp9_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = uri; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:126: Navigating to '%s'", _tmp10_); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - info = NULL; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = self->priv->re; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = uri; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp14_ = g_regex_match (_tmp11_, _tmp12_, 0, &_tmp13_); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_match_info_unref0 (info); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - info = _tmp13_; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp14_) { -#line 1348 "YandexPublishing.c" - gchar* access_token = NULL; - GMatchInfo* _tmp15_; - gchar** _tmp16_; - gchar** _tmp17_; - gchar** _tmp18_; - gint _tmp18__length1; - const gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - const gchar* _tmp22_; - const gchar* _tmp23_; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp15_ = info; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp17_ = _tmp16_ = g_match_info_fetch_all (_tmp15_); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp18_ = _tmp17_; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp18__length1 = _vala_array_length (_tmp16_); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp19_ = _tmp18_[2]; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp20_ = g_strdup (_tmp19_); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp21_ = _tmp20_; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp18_ = (_vala_array_free (_tmp18_, _tmp18__length1, (GDestroyNotify) g_free), NULL); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - access_token = _tmp21_; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp22_ = access_token; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:133: Load completed: %s", _tmp22_); -#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - shotwell_plugins_common_web_authentication_pane_set_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, ShotwellPluginsCommonWebAuthenticationPane), GDK_LEFT_PTR); -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp23_ = access_token; -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp23_ != NULL) { -#line 1388 "YandexPublishing.c" - const gchar* _tmp24_; -#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp24_ = access_token; -#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_emit (self, publishing_yandex_web_auth_pane_signals[PUBLISHING_YANDEX_WEB_AUTH_PANE_LOGIN_SUCCEEDED_SIGNAL], 0, _tmp24_); -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - webkit_policy_decision_ignore (decision); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (access_token); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_match_info_unref0 (info); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (uri); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - __vala_WebKitNavigationAction_free0 (action); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (n_decision); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 1408 "YandexPublishing.c" - } else { -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_emit (self, publishing_yandex_web_auth_pane_signals[PUBLISHING_YANDEX_WEB_AUTH_PANE_LOGIN_FAILED_SIGNAL], 0); -#line 1412 "YandexPublishing.c" - } -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (access_token); -#line 1416 "YandexPublishing.c" - } -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - webkit_policy_decision_use (decision); -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_match_info_unref0 (info); -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (uri); -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - __vala_WebKitNavigationAction_free0 (action); -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (n_decision); -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 1430 "YandexPublishing.c" - } -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - case WEBKIT_POLICY_DECISION_TYPE_RESPONSE: -#line 1434 "YandexPublishing.c" - { -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - webkit_policy_decision_use (decision); -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 1440 "YandexPublishing.c" - } - default: - { -#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = FALSE; -#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 1448 "YandexPublishing.c" - } - } -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = TRUE; -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 1455 "YandexPublishing.c" -} - - -static void -publishing_yandex_web_auth_pane_class_init (PublishingYandexWebAuthPaneClass * klass) -{ -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_web_auth_pane_parent_class = g_type_class_peek_parent (klass); -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYandexWebAuthPanePrivate)); -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) publishing_yandex_web_auth_pane_real_constructed; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - ((ShotwellPluginsCommonWebAuthenticationPaneClass *) klass)->on_page_load = (void (*) (ShotwellPluginsCommonWebAuthenticationPane *)) publishing_yandex_web_auth_pane_real_on_page_load; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_yandex_web_auth_pane_finalize; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_web_auth_pane_signals[PUBLISHING_YANDEX_WEB_AUTH_PANE_LOGIN_SUCCEEDED_SIGNAL] = g_signal_new ("login-succeeded", PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_web_auth_pane_signals[PUBLISHING_YANDEX_WEB_AUTH_PANE_LOGIN_FAILED_SIGNAL] = g_signal_new ("login-failed", PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 1476 "YandexPublishing.c" -} - - -static void -publishing_yandex_web_auth_pane_instance_init (PublishingYandexWebAuthPane * self) -{ -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv = PUBLISHING_YANDEX_WEB_AUTH_PANE_GET_PRIVATE (self); -#line 1485 "YandexPublishing.c" -} - - -static void -publishing_yandex_web_auth_pane_finalize (GObject * obj) -{ - PublishingYandexWebAuthPane * self; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_WEB_AUTH_PANE, PublishingYandexWebAuthPane); -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_regex_unref0 (self->priv->re); -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - G_OBJECT_CLASS (publishing_yandex_web_auth_pane_parent_class)->finalize (obj); -#line 1499 "YandexPublishing.c" -} - - -GType -publishing_yandex_web_auth_pane_get_type (void) -{ - static volatile gsize publishing_yandex_web_auth_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_yandex_web_auth_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexWebAuthPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_web_auth_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexWebAuthPane), 0, (GInstanceInitFunc) publishing_yandex_web_auth_pane_instance_init, NULL }; - GType publishing_yandex_web_auth_pane_type_id; - publishing_yandex_web_auth_pane_type_id = g_type_register_static (SHOTWELL_PLUGINS_COMMON_TYPE_WEB_AUTHENTICATION_PANE, "PublishingYandexWebAuthPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_yandex_web_auth_pane_type_id__volatile, publishing_yandex_web_auth_pane_type_id); - } - return publishing_yandex_web_auth_pane_type_id__volatile; -} - - -PublishingYandexPublishOptions* -publishing_yandex_publish_options_construct (GType object_type) -{ - PublishingYandexPublishOptions* self = NULL; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexPublishOptions*) g_type_create_instance (object_type); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 1525 "YandexPublishing.c" -} - - -PublishingYandexPublishOptions* -publishing_yandex_publish_options_new (void) -{ -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_publish_options_construct (PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS); -#line 1534 "YandexPublishing.c" -} - - -static void -publishing_yandex_value_publish_options_init (GValue* value) -{ -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1543 "YandexPublishing.c" -} - - -static void -publishing_yandex_value_publish_options_free_value (GValue* value) -{ -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (value->data[0].v_pointer) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publish_options_unref (value->data[0].v_pointer); -#line 1554 "YandexPublishing.c" - } -} - - -static void -publishing_yandex_value_publish_options_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - dest_value->data[0].v_pointer = publishing_yandex_publish_options_ref (src_value->data[0].v_pointer); -#line 1567 "YandexPublishing.c" - } else { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 1571 "YandexPublishing.c" - } -} - - -static gpointer -publishing_yandex_value_publish_options_peek_pointer (const GValue* value) -{ -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return value->data[0].v_pointer; -#line 1581 "YandexPublishing.c" -} - - -static gchar* -publishing_yandex_value_publish_options_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (collect_values[0].v_pointer) { -#line 1593 "YandexPublishing.c" - PublishingYandexPublishOptions * object; - object = collect_values[0].v_pointer; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1600 "YandexPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1604 "YandexPublishing.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - value->data[0].v_pointer = publishing_yandex_publish_options_ref (object); -#line 1608 "YandexPublishing.c" - } else { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1612 "YandexPublishing.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return NULL; -#line 1616 "YandexPublishing.c" -} - - -static gchar* -publishing_yandex_value_publish_options_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingYandexPublishOptions ** object_p; - object_p = collect_values[0].v_pointer; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!object_p) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1632 "YandexPublishing.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!value->data[0].v_pointer) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - *object_p = NULL; -#line 1638 "YandexPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 1642 "YandexPublishing.c" - } else { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - *object_p = publishing_yandex_publish_options_ref (value->data[0].v_pointer); -#line 1646 "YandexPublishing.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return NULL; -#line 1650 "YandexPublishing.c" -} - - -GParamSpec* -publishing_yandex_param_spec_publish_options (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingYandexParamSpecPublishOptions* spec; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS), NULL); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return G_PARAM_SPEC (spec); -#line 1670 "YandexPublishing.c" -} - - -gpointer -publishing_yandex_value_get_publish_options (const GValue* value) -{ -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS), NULL); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return value->data[0].v_pointer; -#line 1681 "YandexPublishing.c" -} - - -void -publishing_yandex_value_set_publish_options (GValue* value, - gpointer v_object) -{ - PublishingYandexPublishOptions * old; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS)); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - old = value->data[0].v_pointer; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (v_object) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS)); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - value->data[0].v_pointer = v_object; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publish_options_ref (value->data[0].v_pointer); -#line 1704 "YandexPublishing.c" - } else { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1708 "YandexPublishing.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (old) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publish_options_unref (old); -#line 1714 "YandexPublishing.c" - } -} - - -void -publishing_yandex_value_take_publish_options (GValue* value, - gpointer v_object) -{ - PublishingYandexPublishOptions * old; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS)); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - old = value->data[0].v_pointer; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (v_object) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS)); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - value->data[0].v_pointer = v_object; -#line 1736 "YandexPublishing.c" - } else { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1740 "YandexPublishing.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (old) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publish_options_unref (old); -#line 1746 "YandexPublishing.c" - } -} - - -static void -publishing_yandex_publish_options_class_init (PublishingYandexPublishOptionsClass * klass) -{ -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publish_options_parent_class = g_type_class_peek_parent (klass); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - ((PublishingYandexPublishOptionsClass *) klass)->finalize = publishing_yandex_publish_options_finalize; -#line 1758 "YandexPublishing.c" -} - - -static void -publishing_yandex_publish_options_instance_init (PublishingYandexPublishOptions * self) -{ -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->disable_comments = FALSE; -#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->hide_original = FALSE; -#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->destination_album = NULL; -#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->destination_album_url = NULL; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->ref_count = 1; -#line 1775 "YandexPublishing.c" -} - - -static void -publishing_yandex_publish_options_finalize (PublishingYandexPublishOptions * obj) -{ - PublishingYandexPublishOptions * self; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_PUBLISH_OPTIONS, PublishingYandexPublishOptions); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_destroy (self); -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (self->access_type); -#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (self->destination_album); -#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (self->destination_album_url); -#line 1793 "YandexPublishing.c" -} - - -GType -publishing_yandex_publish_options_get_type (void) -{ - static volatile gsize publishing_yandex_publish_options_type_id__volatile = 0; - if (g_once_init_enter (&publishing_yandex_publish_options_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_yandex_value_publish_options_init, publishing_yandex_value_publish_options_free_value, publishing_yandex_value_publish_options_copy_value, publishing_yandex_value_publish_options_peek_pointer, "p", publishing_yandex_value_publish_options_collect_value, "p", publishing_yandex_value_publish_options_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexPublishOptionsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_publish_options_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexPublishOptions), 0, (GInstanceInitFunc) publishing_yandex_publish_options_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_yandex_publish_options_type_id; - publishing_yandex_publish_options_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingYandexPublishOptions", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_yandex_publish_options_type_id__volatile, publishing_yandex_publish_options_type_id); - } - return publishing_yandex_publish_options_type_id__volatile; -} - - -gpointer -publishing_yandex_publish_options_ref (gpointer instance) -{ - PublishingYandexPublishOptions * self; - self = instance; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return instance; -#line 1822 "YandexPublishing.c" -} - - -void -publishing_yandex_publish_options_unref (gpointer instance) -{ - PublishingYandexPublishOptions * self; - self = instance; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - PUBLISHING_YANDEX_PUBLISH_OPTIONS_GET_CLASS (self)->finalize (self); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1837 "YandexPublishing.c" - } -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_yandex_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingYandexPublishingOptionsPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane); -#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 1853 "YandexPublishing.c" -} - - -static void -publishing_yandex_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingYandexPublishingOptionsPane * self; -#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane); -#line 1863 "YandexPublishing.c" -} - - -static void -publishing_yandex_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingYandexPublishingOptionsPane * self; -#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane); -#line 1873 "YandexPublishing.c" -} - - -static GtkWidget* -publishing_yandex_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingYandexPublishingOptionsPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane); -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->box; -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = _tmp1_; -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 1894 "YandexPublishing.c" -} - - -static void -_publishing_yandex_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publishing_options_pane_on_publish_clicked ((PublishingYandexPublishingOptionsPane*) self); -#line 1904 "YandexPublishing.c" -} - - -static void -_publishing_yandex_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publishing_options_pane_on_logout_clicked ((PublishingYandexPublishingOptionsPane*) self); -#line 1914 "YandexPublishing.c" -} - - -PublishingYandexPublishingOptionsPane* -publishing_yandex_publishing_options_pane_construct (GType object_type, - PublishingYandexPublishOptions* options, - GeeHashMap* list, - SpitPublishingPluginHost* host) -{ - PublishingYandexPublishingOptionsPane * self = NULL; - GtkBox* _tmp0_; - GError * _inner_error_ = NULL; -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_PUBLISH_OPTIONS (options), NULL); -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (GEE_IS_HASH_MAP (list), NULL); -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexPublishingOptionsPane*) g_object_new (object_type, NULL); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->options = options; -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_object_ref_sink (_tmp0_); -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->box); -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->box = _tmp0_; -#line 1945 "YandexPublishing.c" - { - GtkBuilder* _tmp1_; - GtkBuilder* _tmp2_; - GtkBuilder* _tmp3_; - GtkWidget* content = NULL; - GtkBuilder* _tmp4_; - GObject* _tmp5_; - GtkWidget* _tmp6_; - GtkBuilder* _tmp7_; - GObject* _tmp8_; - GtkComboBoxText* _tmp9_; - GtkComboBoxText* _tmp20_; - GtkBuilder* _tmp21_; - GObject* _tmp22_; - GtkButton* _tmp23_; - GtkBuilder* _tmp24_; - GObject* _tmp25_; - GtkButton* _tmp26_; - GtkButton* _tmp27_; - GtkButton* _tmp28_; - GtkWidget* _tmp29_; - GtkContainer* _tmp30_; - GtkContainer* _tmp31_; - GtkWidget* _tmp32_; - GtkBox* _tmp33_; - GtkWidget* _tmp34_; -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = gtk_builder_new (); -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->builder = _tmp1_; -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = self->priv->builder; -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - gtk_builder_add_from_resource (_tmp2_, PLUGIN_RESOURCE_PATH "/yandex_publish_model.ui", &_inner_error_); -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1984 "YandexPublishing.c" - goto __catch33_g_error; - } -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = self->priv->builder; -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - gtk_builder_connect_signals (_tmp3_, NULL); -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = self->priv->builder; -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = gtk_builder_get_object (_tmp4_, "content"); -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gtk_widget_get_type ()) ? ((GtkWidget*) _tmp5_) : NULL); -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - content = _tmp6_; -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = self->priv->builder; -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = gtk_builder_get_object (_tmp7_, "album_list"); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp8_) : NULL); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->album_list); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->album_list = _tmp9_; -#line 2009 "YandexPublishing.c" - { - GeeIterator* _key_it = NULL; - GeeSet* _tmp10_; - GeeSet* _tmp11_; - GeeSet* _tmp12_; - GeeIterator* _tmp13_; - GeeIterator* _tmp14_; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = _tmp10_; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = _tmp11_; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp14_ = _tmp13_; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (_tmp12_); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _key_it = _tmp14_; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - while (TRUE) { -#line 2033 "YandexPublishing.c" - GeeIterator* _tmp15_; - gchar* key = NULL; - GeeIterator* _tmp16_; - gpointer _tmp17_; - GtkComboBoxText* _tmp18_; - const gchar* _tmp19_; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp15_ = _key_it; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!gee_iterator_next (_tmp15_)) { -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 2046 "YandexPublishing.c" - } -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp16_ = _key_it; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp17_ = gee_iterator_get (_tmp16_); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - key = (gchar*) _tmp17_; -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp18_ = self->priv->album_list; -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp19_ = key; -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - gtk_combo_box_text_append_text (_tmp18_, _tmp19_); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (key); -#line 2062 "YandexPublishing.c" - } -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (_key_it); -#line 2066 "YandexPublishing.c" - } -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp20_ = self->priv->album_list; -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp21_ = self->priv->builder; -#line 205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp22_ = gtk_builder_get_object (_tmp21_, "publish_button"); -#line 205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, gtk_button_get_type ()) ? ((GtkButton*) _tmp22_) : NULL); -#line 205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 205 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->publish_button = _tmp23_; -#line 206 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp24_ = self->priv->builder; -#line 206 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp25_ = gtk_builder_get_object (_tmp24_, "logout_button"); -#line 206 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp26_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp25_, gtk_button_get_type ()) ? ((GtkButton*) _tmp25_) : NULL); -#line 206 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 206 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->logout_button = _tmp26_; -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp27_ = self->priv->publish_button; -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (_tmp27_, "clicked", (GCallback) _publishing_yandex_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0); -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp28_ = self->priv->logout_button; -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (_tmp28_, "clicked", (GCallback) _publishing_yandex_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0); -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp29_ = content; -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp30_ = gtk_widget_get_parent (_tmp29_); -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp31_ = _tmp30_; -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp32_ = content; -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - gtk_container_remove (_tmp31_, _tmp32_); -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp33_ = self->priv->box; -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp34_ = content; -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - gtk_box_pack_start (_tmp33_, _tmp34_, TRUE, TRUE, (guint) 0); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (content); -#line 2118 "YandexPublishing.c" - } - goto __finally33; - __catch33_g_error: - { - GError* e = NULL; - GError* _tmp35_; - const gchar* _tmp36_; -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - e = _inner_error_; -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp35_ = e; -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp36_ = _tmp35_->message; -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_warning ("YandexPublishing.vala:214: Could not load UI: %s", _tmp36_); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (e); -#line 2138 "YandexPublishing.c" - } - __finally33: -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return NULL; -#line 2149 "YandexPublishing.c" - } -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 2153 "YandexPublishing.c" -} - - -PublishingYandexPublishingOptionsPane* -publishing_yandex_publishing_options_pane_new (PublishingYandexPublishOptions* options, - GeeHashMap* list, - SpitPublishingPluginHost* host) -{ -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_publishing_options_pane_construct (PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, options, list, host); -#line 2164 "YandexPublishing.c" -} - - -static void -publishing_yandex_publishing_options_pane_on_logout_clicked (PublishingYandexPublishingOptionsPane* self) -{ -#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_emit (self, publishing_yandex_publishing_options_pane_signals[PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 2175 "YandexPublishing.c" -} - - -static void -publishing_yandex_publishing_options_pane_on_publish_clicked (PublishingYandexPublishingOptionsPane* self) -{ - PublishingYandexPublishOptions* _tmp0_; - GtkComboBoxText* _tmp1_; - gchar* _tmp2_; - GtkCheckButton* tmp = NULL; - GtkBuilder* _tmp3_; - GObject* _tmp4_; - GtkCheckButton* _tmp5_; - PublishingYandexPublishOptions* _tmp6_; - GtkCheckButton* _tmp7_; - gboolean _tmp8_; - gboolean _tmp9_; - GtkBuilder* _tmp10_; - GObject* _tmp11_; - GtkCheckButton* _tmp12_; - PublishingYandexPublishOptions* _tmp13_; - GtkCheckButton* _tmp14_; - gboolean _tmp15_; - gboolean _tmp16_; - GtkComboBoxText* access_type = NULL; - GtkBuilder* _tmp17_; - GObject* _tmp18_; - GtkComboBoxText* _tmp19_; - PublishingYandexPublishOptions* _tmp20_; - gchar* _tmp21_; -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->options; -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = self->priv->album_list; -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = gtk_combo_box_text_get_active_text (_tmp1_); -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp0_->destination_album); -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_->destination_album = _tmp2_; -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = self->priv->builder; -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = gtk_builder_get_object (_tmp3_, "hide_original_check"); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp4_) : NULL); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - tmp = _tmp5_; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = self->priv->options; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = tmp; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = _tmp8_; -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_->hide_original = _tmp9_; -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = self->priv->builder; -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = gtk_builder_get_object (_tmp10_, "disable_comments_check"); -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp11_) : NULL); -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (tmp); -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - tmp = _tmp12_; -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp13_ = self->priv->options; -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp14_ = tmp; -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp15_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp16_ = _tmp15_; -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp13_->disable_comments = _tmp16_; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp17_ = self->priv->builder; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp18_ = gtk_builder_get_object (_tmp17_, "access_type_list"); -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp19_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp18_) : NULL); -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - access_type = _tmp19_; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp20_ = self->priv->options; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp21_ = gtk_combo_box_text_get_active_text (access_type); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp20_->access_type); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp20_->access_type = _tmp21_; -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_emit (self, publishing_yandex_publishing_options_pane_signals[PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (access_type); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (tmp); -#line 2278 "YandexPublishing.c" -} - - -static void -publishing_yandex_publishing_options_pane_class_init (PublishingYandexPublishingOptionsPaneClass * klass) -{ -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYandexPublishingOptionsPanePrivate)); -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_yandex_publishing_options_pane_finalize; -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publishing_options_pane_signals[PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = g_signal_new ("publish", PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publishing_options_pane_signals[PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = g_signal_new ("logout", PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 2295 "YandexPublishing.c" -} - - -static void -publishing_yandex_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_yandex_publishing_options_pane_real_get_preferred_geometry; -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_yandex_publishing_options_pane_real_on_pane_installed; -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_yandex_publishing_options_pane_real_on_pane_uninstalled; -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_yandex_publishing_options_pane_real_get_widget; -#line 2312 "YandexPublishing.c" -} - - -static void -publishing_yandex_publishing_options_pane_instance_init (PublishingYandexPublishingOptionsPane * self) -{ -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv = PUBLISHING_YANDEX_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); -#line 2321 "YandexPublishing.c" -} - - -static void -publishing_yandex_publishing_options_pane_finalize (GObject * obj) -{ - PublishingYandexPublishingOptionsPane * self; -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYandexPublishingOptionsPane); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->box); -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->album_list); -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - G_OBJECT_CLASS (publishing_yandex_publishing_options_pane_parent_class)->finalize (obj); -#line 2343 "YandexPublishing.c" -} - - -GType -publishing_yandex_publishing_options_pane_get_type (void) -{ - static volatile gsize publishing_yandex_publishing_options_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_yandex_publishing_options_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexPublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexPublishingOptionsPane), 0, (GInstanceInitFunc) publishing_yandex_publishing_options_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_yandex_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_yandex_publishing_options_pane_type_id; - publishing_yandex_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingYandexPublishingOptionsPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_yandex_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_yandex_publishing_options_pane_type_id__volatile, publishing_yandex_publishing_options_pane_type_id); - } - return publishing_yandex_publishing_options_pane_type_id__volatile; -} - - -PublishingYandexUploader* -publishing_yandex_uploader_construct (GType object_type, - PublishingYandexSession* session, - PublishingYandexPublishOptions* options, - SpitPublishingPublishable** photos, - int photos_length1) -{ - PublishingYandexUploader* self = NULL; -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_SESSION (session), NULL); -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_PUBLISH_OPTIONS (options), NULL); -#line 242 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), photos, photos_length1); -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->options = options; -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 2381 "YandexPublishing.c" -} - - -PublishingYandexUploader* -publishing_yandex_uploader_new (PublishingYandexSession* session, - PublishingYandexPublishOptions* options, - SpitPublishingPublishable** photos, - int photos_length1) -{ -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_uploader_construct (PUBLISHING_YANDEX_TYPE_UPLOADER, session, options, photos, photos_length1); -#line 2393 "YandexPublishing.c" -} - - -static PublishingRESTSupportTransaction* -publishing_yandex_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable) -{ - PublishingYandexUploader * self; - PublishingRESTSupportTransaction* result = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingYandexSession* _tmp1_; - PublishingYandexPublishOptions* _tmp2_; - SpitPublishingPublishable* _tmp3_; - SpitPublishingPublishable* _tmp4_; - PublishingYandexUploadTransaction* _tmp5_; - PublishingRESTSupportTransaction* _tmp6_; -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploader); -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:248: create transaction"); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_YANDEX_TYPE_SESSION, PublishingYandexSession); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = self->priv->options; -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = _tmp3_; -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = publishing_yandex_upload_transaction_new (_tmp1_, _tmp2_, _tmp4_); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (_tmp4_); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = _tmp6_; -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 2438 "YandexPublishing.c" -} - - -static void -publishing_yandex_uploader_class_init (PublishingYandexUploaderClass * klass) -{ -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_uploader_parent_class = g_type_class_peek_parent (klass); -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_yandex_uploader_finalize; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYandexUploaderPrivate)); -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_yandex_uploader_real_create_transaction; -#line 2453 "YandexPublishing.c" -} - - -static void -publishing_yandex_uploader_instance_init (PublishingYandexUploader * self) -{ -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv = PUBLISHING_YANDEX_UPLOADER_GET_PRIVATE (self); -#line 2462 "YandexPublishing.c" -} - - -static void -publishing_yandex_uploader_finalize (PublishingRESTSupportBatchUploader * obj) -{ - PublishingYandexUploader * self; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_UPLOADER, PublishingYandexUploader); -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_yandex_uploader_parent_class)->finalize (obj); -#line 2474 "YandexPublishing.c" -} - - -GType -publishing_yandex_uploader_get_type (void) -{ - static volatile gsize publishing_yandex_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_yandex_uploader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexUploader), 0, (GInstanceInitFunc) publishing_yandex_uploader_instance_init, NULL }; - GType publishing_yandex_uploader_type_id; - publishing_yandex_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingYandexUploader", &g_define_type_info, 0); - g_once_init_leave (&publishing_yandex_uploader_type_id__volatile, publishing_yandex_uploader_type_id); - } - return publishing_yandex_uploader_type_id__volatile; -} - - -static gchar* -bool_to_string (gboolean self) -{ - gchar* result = NULL; -#line 37 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (self) { -#line 2498 "YandexPublishing.c" - gchar* _tmp0_; -#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup ("true"); -#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2506 "YandexPublishing.c" - } else { - gchar* _tmp1_; -#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = g_strdup ("false"); -#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp1_; -#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2515 "YandexPublishing.c" - } -} - - -static void -_vala_SoupMultipart_free (SoupMultipart* self) -{ -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_boxed_free (soup_multipart_get_type (), self); -#line 2525 "YandexPublishing.c" -} - - -static guint8* -string_get_data (const gchar* self, - int* result_length1) -{ - guint8* result; - guint8* res = NULL; - gint res_length1; - gint _res_size_; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - guint8* _tmp3_; - gint _tmp3__length1; - guint8* _tmp4_; - gint _tmp4__length1; -#line 1442 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = (guint8*) self; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = -1; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _res_size_ = res_length1; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = (gint) _tmp1_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = res; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3__length1 = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4__length1 = _tmp3__length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (result_length1) { -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result_length1 = _tmp4__length1; -#line 2572 "YandexPublishing.c" - } -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp4_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2578 "YandexPublishing.c" -} - - -static void -_g_free0_ (gpointer var) -{ -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - var = (g_free (var), NULL); -#line 2587 "YandexPublishing.c" -} - - -static void -_vala_SoupBuffer_free (SoupBuffer* self) -{ -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_boxed_free (soup_buffer_get_type (), self); -#line 2596 "YandexPublishing.c" -} - - -PublishingYandexUploadTransaction* -publishing_yandex_upload_transaction_construct (GType object_type, - PublishingYandexSession* session, - PublishingYandexPublishOptions* options, - SpitPublishingPublishable* photo) -{ - PublishingYandexUploadTransaction* self = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - SoupMultipart* message_parts = NULL; - SoupMultipart* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gboolean _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gboolean _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - const gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* photo_data = NULL; - gsize data_length = 0UL; - gint image_part_num = 0; - SoupBuffer* bindable_data = NULL; - guint8* _tmp29_; - gint _tmp29__length1; - guint8* _tmp30_; - gint _tmp30__length1; - SoupBuffer* _tmp31_; - GFile* _tmp32_; - GFile* _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; - SoupMessageHeaders* image_part_header = NULL; - SoupBuffer* image_part_body = NULL; - SoupMessageHeaders* _tmp36_ = NULL; - SoupBuffer* _tmp37_ = NULL; - GHashTable* _result_ = NULL; - GHashFunc _tmp38_; - GEqualFunc _tmp39_; - GHashTable* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; - gchar* _tmp44_; - SoupMessage* outbound_message = NULL; - gchar* _tmp45_; - gchar* _tmp46_; - SoupMessage* _tmp47_; - SoupMessage* _tmp48_; - SoupMessageHeaders* _tmp49_; - gchar* _tmp50_; - gchar* _tmp51_; - gchar* _tmp52_; - gchar* _tmp53_; - SoupMessageHeaders* _tmp54_; - GError * _inner_error_ = NULL; -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_SESSION (session), NULL); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_PUBLISH_OPTIONS (options), NULL); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (photo), NULL); -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = options->destination_album_url; -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexUploadTransaction*) publishing_yandex_transaction_construct_with_url (object_type, session, _tmp0_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_transaction_set_custom_payload (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "qwe", "image/jpeg", (gulong) 1); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = spit_publishing_publishable_get_publishing_name (photo); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = _tmp1_; -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = options->destination_album; -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = options->destination_album_url; -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:259: Uploading '%s' -> %s : %s", _tmp2_, _tmp3_, _tmp4_); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp2_); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = soup_multipart_new ("multipart/form-data"); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - message_parts = _tmp5_; -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = spit_publishing_publishable_get_publishing_name (photo); -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = _tmp6_; -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_multipart_append_form_string (message_parts, "title", _tmp7_); -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp7_); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = options->hide_original; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = bool_to_string (_tmp8_); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = _tmp9_; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_multipart_append_form_string (message_parts, "hide_original", _tmp10_); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp10_); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = options->disable_comments; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = bool_to_string (_tmp11_); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp13_ = _tmp12_; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_multipart_append_form_string (message_parts, "disable_comments", _tmp13_); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp13_); -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp14_ = options->access_type; -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp15_ = g_utf8_strdown (_tmp14_, (gssize) -1); -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp16_ = _tmp15_; -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_multipart_append_form_string (message_parts, "access", _tmp16_); -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp16_); -#line 2728 "YandexPublishing.c" - { - GFile* _tmp17_; - GFile* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_ = NULL; - gsize _tmp22_ = 0UL; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp17_ = spit_publishing_publishable_get_serialized_file (photo); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp18_ = _tmp17_; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp19_ = g_file_get_path (_tmp18_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp20_ = _tmp19_; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_file_get_contents (_tmp20_, &_tmp21_, &_tmp22_, &_inner_error_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (photo_data); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - photo_data = _tmp21_; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - data_length = _tmp22_; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp20_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (_tmp18_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == G_FILE_ERROR) { -#line 2760 "YandexPublishing.c" - goto __catch34_g_file_error; - } -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (photo_data); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return NULL; -#line 2773 "YandexPublishing.c" - } - } - goto __finally34; - __catch34_g_file_error: - { - GError* e = NULL; - GFile* _tmp23_; - GFile* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - GError* _tmp27_; - const gchar* _tmp28_; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - e = _inner_error_; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp23_ = spit_publishing_publishable_get_serialized_file (photo); -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp24_ = _tmp23_; -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp25_ = g_file_get_path (_tmp24_); -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp26_ = _tmp25_; -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp27_ = e; -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp28_ = _tmp27_->message; -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("YandexPublishing.vala:273: Failed to read data file '%s': %s", _tmp26_, _tmp28_); -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp26_); -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (_tmp24_); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (e); -#line 2810 "YandexPublishing.c" - } - __finally34: -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (photo_data); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return NULL; -#line 2825 "YandexPublishing.c" - } -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - image_part_num = soup_multipart_get_length (message_parts); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp29_ = string_get_data (photo_data, &_tmp29__length1); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp30_ = _tmp29_; -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp30__length1 = _tmp29__length1; -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp31_ = soup_buffer_new (SOUP_MEMORY_COPY, _tmp30_ + 0, ((gint) data_length) - 0); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - bindable_data = _tmp31_; -#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp32_ = spit_publishing_publishable_get_serialized_file (photo); -#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp33_ = _tmp32_; -#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp34_ = g_file_get_path (_tmp33_); -#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp35_ = _tmp34_; -#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_multipart_append_form_file (message_parts, "", _tmp35_, "image/jpeg", bindable_data); -#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp35_); -#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (_tmp33_); -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_multipart_get_part (message_parts, image_part_num, &_tmp36_, &_tmp37_); -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - image_part_header = _tmp36_; -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - image_part_body = _tmp37_; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp38_ = g_str_hash; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp39_ = g_str_equal; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp40_ = g_hash_table_new_full (_tmp38_, _tmp39_, _g_free0_, _g_free0_); -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _result_ = _tmp40_; -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp41_ = g_strdup ("name"); -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp42_ = g_strdup ("image"); -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_hash_table_insert (_result_, _tmp41_, _tmp42_); -#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp43_ = g_strdup ("filename"); -#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp44_ = g_strdup ("unused"); -#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_hash_table_insert (_result_, _tmp43_, _tmp44_); -#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_message_headers_set_content_disposition (image_part_header, "form-data", _result_); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp45_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp46_ = _tmp45_; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp47_ = soup_form_request_new_from_multipart (_tmp46_, message_parts); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp48_ = _tmp47_; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp46_); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - outbound_message = _tmp48_; -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp49_ = outbound_message->request_headers; -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp50_ = publishing_yandex_session_get_auth_token (session); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp51_ = _tmp50_; -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp52_ = g_strdup_printf ("OAuth %s", _tmp51_); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp53_ = _tmp52_; -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_message_headers_append (_tmp49_, "Authorization", _tmp53_); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp53_); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp51_); -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp54_ = outbound_message->request_headers; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - soup_message_headers_append (_tmp54_, "Connection", "close"); -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_transaction_set_message (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), outbound_message); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (outbound_message); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_hash_table_unref0 (_result_); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - __vala_SoupBuffer_free0 (bindable_data); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (photo_data); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 2927 "YandexPublishing.c" -} - - -PublishingYandexUploadTransaction* -publishing_yandex_upload_transaction_new (PublishingYandexSession* session, - PublishingYandexPublishOptions* options, - SpitPublishingPublishable* photo) -{ -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_upload_transaction_construct (PUBLISHING_YANDEX_TYPE_UPLOAD_TRANSACTION, session, options, photo); -#line 2938 "YandexPublishing.c" -} - - -static void -publishing_yandex_upload_transaction_class_init (PublishingYandexUploadTransactionClass * klass) -{ -#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_upload_transaction_parent_class = g_type_class_peek_parent (klass); -#line 2947 "YandexPublishing.c" -} - - -static void -publishing_yandex_upload_transaction_instance_init (PublishingYandexUploadTransaction * self) -{ -} - - -GType -publishing_yandex_upload_transaction_get_type (void) -{ - static volatile gsize publishing_yandex_upload_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_yandex_upload_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexUploadTransaction), 0, (GInstanceInitFunc) publishing_yandex_upload_transaction_instance_init, NULL }; - GType publishing_yandex_upload_transaction_type_id; - publishing_yandex_upload_transaction_type_id = g_type_register_static (PUBLISHING_YANDEX_TYPE_TRANSACTION, "PublishingYandexUploadTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_yandex_upload_transaction_type_id__volatile, publishing_yandex_upload_transaction_type_id); - } - return publishing_yandex_upload_transaction_type_id__volatile; -} - - -PublishingYandexYandexPublisher* -publishing_yandex_yandex_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingYandexYandexPublisher * self = NULL; - PublishingYandexSession* _tmp0_; - GeeHashMap* _tmp1_; - PublishingYandexPublishOptions* _tmp2_; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = (PublishingYandexYandexPublisher*) g_object_new (object_type, NULL); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->service = service; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->host = host; -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = publishing_yandex_session_new (); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->session = _tmp0_; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->album_list); -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->album_list = _tmp1_; -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_yandex_publish_options_new (); -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_yandex_publish_options_unref0 (self->priv->options); -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->options = _tmp2_; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return self; -#line 3010 "YandexPublishing.c" -} - - -PublishingYandexYandexPublisher* -publishing_yandex_yandex_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return publishing_yandex_yandex_publisher_construct (PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, service, host); -#line 3020 "YandexPublishing.c" -} - - -gchar* -publishing_yandex_yandex_publisher_get_persistent_auth_token (PublishingYandexYandexPublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self), NULL); -#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->host; -#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "auth_token", NULL); -#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = _tmp1_; -#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 3040 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_set_persistent_auth_token (PublishingYandexYandexPublisher* self, - const gchar* auth_token) -{ - SpitPublishingPluginHost* _tmp0_; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (auth_token != NULL); -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->host; -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "auth_token", auth_token); -#line 3057 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_invalidate_persistent_session (PublishingYandexYandexPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->host; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_host_interface_unset_config_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "auth_token"); -#line 3071 "YandexPublishing.c" -} - - -gboolean -publishing_yandex_yandex_publisher_is_persistent_session_available (PublishingYandexYandexPublisher* self) -{ - gboolean result = FALSE; - gchar* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_; -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self), FALSE); -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = publishing_yandex_yandex_publisher_get_persistent_auth_token (self); -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = _tmp0_; -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = _tmp1_ != NULL; -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp1_); -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = _tmp2_; -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 3096 "YandexPublishing.c" -} - - -static gboolean -publishing_yandex_yandex_publisher_real_is_running (SpitPublishingPublisher* base) -{ - PublishingYandexYandexPublisher * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher); -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->running; -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = _tmp0_; -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 3114 "YandexPublishing.c" -} - - -static SpitPublishingService* -publishing_yandex_yandex_publisher_real_get_service (SpitPublishingPublisher* base) -{ - PublishingYandexYandexPublisher * self; - SpitPublishingService* result = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingService* _tmp1_; -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher); -#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->service; -#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = _tmp1_; -#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 3135 "YandexPublishing.c" -} - - -static gchar* -publishing_yandex_yandex_publisher_check_response (PublishingYandexYandexPublisher* self, - PublishingRESTSupportXmlDocument* doc) -{ - gchar* result = NULL; -#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self), NULL); -#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - result = NULL; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 3152 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_parse_album_entry (PublishingYandexYandexPublisher* self, - xmlNode* e, - GError** error) -{ - gchar* title = NULL; - gchar* link = NULL; -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - title = NULL; -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - link = NULL; -#line 3169 "YandexPublishing.c" - { - xmlNode* c = NULL; - xmlNode* _tmp0_; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = e->children; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - c = _tmp0_; -#line 3177 "YandexPublishing.c" - { - gboolean _tmp1_ = FALSE; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = TRUE; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - while (TRUE) { -#line 3184 "YandexPublishing.c" - xmlNode* _tmp4_; - xmlNode* _tmp5_; - const gchar* _tmp6_; - gboolean _tmp9_ = FALSE; - xmlNode* _tmp10_; - const gchar* _tmp11_; - gboolean _tmp17_ = FALSE; - const gchar* _tmp18_; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!_tmp1_) { -#line 3195 "YandexPublishing.c" - xmlNode* _tmp2_; - xmlNode* _tmp3_; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = c; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = _tmp2_->next; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - c = _tmp3_; -#line 3204 "YandexPublishing.c" - } -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = FALSE; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = c; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!(_tmp4_ != NULL)) { -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 3214 "YandexPublishing.c" - } -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = c; -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = _tmp5_->name; -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (g_strcmp0 (_tmp6_, "title") == 0) { -#line 3222 "YandexPublishing.c" - xmlNode* _tmp7_; - gchar* _tmp8_; -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = c; -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = (gchar*) xmlNodeGetContent (_tmp7_); -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (title); -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - title = _tmp8_; -#line 3233 "YandexPublishing.c" - } -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = c; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = _tmp10_->name; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (g_strcmp0 (_tmp11_, "link") == 0) { -#line 3241 "YandexPublishing.c" - xmlNode* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = c; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp13_ = (gchar*) xmlGetProp (_tmp12_, (xmlChar*) "rel"); -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp14_ = _tmp13_; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = g_strcmp0 (_tmp14_, "photos") == 0; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp14_); -#line 3255 "YandexPublishing.c" - } else { -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = FALSE; -#line 3259 "YandexPublishing.c" - } -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp9_) { -#line 3263 "YandexPublishing.c" - xmlNode* _tmp15_; - gchar* _tmp16_; -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp15_ = c; -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp16_ = (gchar*) xmlGetProp (_tmp15_, (xmlChar*) "href"); -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (link); -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - link = _tmp16_; -#line 3274 "YandexPublishing.c" - } -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp18_ = title; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp18_ != NULL) { -#line 3280 "YandexPublishing.c" - const gchar* _tmp19_; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp19_ = link; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp17_ = _tmp19_ != NULL; -#line 3286 "YandexPublishing.c" - } else { -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp17_ = FALSE; -#line 3290 "YandexPublishing.c" - } -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp17_) { -#line 3294 "YandexPublishing.c" - const gchar* _tmp20_; - const gchar* _tmp21_; - GeeHashMap* _tmp22_; - const gchar* _tmp23_; - const gchar* _tmp24_; -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp20_ = title; -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp21_ = link; -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:362: Added album: '%s', link: %s", _tmp20_, _tmp21_); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp22_ = self->priv->album_list; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp23_ = title; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp24_ = link; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp23_, _tmp24_); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (title); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - title = NULL; -#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (link); -#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - link = NULL; -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 3324 "YandexPublishing.c" - } - } - } - } -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (link); -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (title); -#line 3333 "YandexPublishing.c" -} - - -static gchar* -_publishing_yandex_yandex_publisher_check_response_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self) -{ - gchar* result; - result = publishing_yandex_yandex_publisher_check_response ((PublishingYandexYandexPublisher*) self, doc); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return result; -#line 3345 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_parse_album_creation (PublishingYandexYandexPublisher* self, - const gchar* data, - GError** error) -{ - PublishingRESTSupportXmlDocument* doc = NULL; - PublishingRESTSupportXmlDocument* _tmp0_; - xmlNode* root = NULL; - PublishingRESTSupportXmlDocument* _tmp1_; - xmlNode* _tmp2_; - xmlNode* _tmp3_; - GError * _inner_error_ = NULL; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (data != NULL); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = publishing_rest_support_xml_document_parse_string (data, _publishing_yandex_yandex_publisher_check_response_publishing_rest_support_xml_document_check_for_error_response, self, &_inner_error_); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - doc = _tmp0_; -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3377 "YandexPublishing.c" - } else { -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3385 "YandexPublishing.c" - } - } -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = doc; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_rest_support_xml_document_get_root_node (_tmp1_); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - root = _tmp2_; -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = root; -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_parse_album_entry (self, _tmp3_, &_inner_error_); -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3408 "YandexPublishing.c" - } else { -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3418 "YandexPublishing.c" - } - } -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 3423 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_parse_album_list (PublishingYandexYandexPublisher* self, - const gchar* data, - GError** error) -{ - PublishingRESTSupportXmlDocument* doc = NULL; - PublishingRESTSupportXmlDocument* _tmp0_; - xmlNode* root = NULL; - PublishingRESTSupportXmlDocument* _tmp1_; - xmlNode* _tmp2_; - GError * _inner_error_ = NULL; -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (data != NULL); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = publishing_rest_support_xml_document_parse_string (data, _publishing_yandex_yandex_publisher_check_response_publishing_rest_support_xml_document_check_for_error_response, self, &_inner_error_); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - doc = _tmp0_; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3454 "YandexPublishing.c" - } else { -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3462 "YandexPublishing.c" - } - } -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = doc; -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_rest_support_xml_document_get_root_node (_tmp1_); -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - root = _tmp2_; -#line 3471 "YandexPublishing.c" - { - xmlNode* e = NULL; - xmlNode* _tmp3_; - xmlNode* _tmp4_; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = root; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = _tmp3_->children; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - e = _tmp4_; -#line 3482 "YandexPublishing.c" - { - gboolean _tmp5_ = FALSE; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = TRUE; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - while (TRUE) { -#line 3489 "YandexPublishing.c" - xmlNode* _tmp8_; - xmlNode* _tmp9_; - const gchar* _tmp10_; - xmlNode* _tmp11_; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!_tmp5_) { -#line 3496 "YandexPublishing.c" - xmlNode* _tmp6_; - xmlNode* _tmp7_; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = e; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = _tmp6_->next; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - e = _tmp7_; -#line 3505 "YandexPublishing.c" - } -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = FALSE; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = e; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!(_tmp8_ != NULL)) { -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 3515 "YandexPublishing.c" - } -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = e; -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = _tmp9_->name; -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (g_strcmp0 (_tmp10_, "entry") != 0) { -#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - continue; -#line 3525 "YandexPublishing.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = e; -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_parse_album_entry (self, _tmp11_, &_inner_error_); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3541 "YandexPublishing.c" - } else { -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3551 "YandexPublishing.c" - } - } - } - } - } -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 3559 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_album_creation_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_album_creation_complete ((PublishingYandexYandexPublisher*) self, _sender); -#line 3569 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_album_creation_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_album_creation_error ((PublishingYandexYandexPublisher*) self, _sender, err); -#line 3580 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_album_creation_error (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - const gchar* _tmp2_; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t)); -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_album_creation_complete_publishing_rest_support_transaction_completed, self); -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_album_creation_error_publishing_rest_support_transaction_network_error, self); -#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = err->message; -#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_warning ("YandexPublishing.vala:394: Album creation error: %s", _tmp2_); -#line 3608 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_album_creation_complete (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t) -{ - guint _tmp0_; - guint _tmp1_; - GeeHashMap* _tmp6_; - PublishingYandexPublishOptions* _tmp7_; - const gchar* _tmp8_; - gpointer _tmp9_; - gchar* _tmp10_; - gboolean _tmp11_; - GError * _inner_error_ = NULL; -#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t)); -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_album_creation_complete_publishing_rest_support_transaction_completed, self); -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_album_creation_error_publishing_rest_support_transaction_network_error, self); -#line 3637 "YandexPublishing.c" - { - gchar* _tmp2_; - gchar* _tmp3_; -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (t); -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = _tmp2_; -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_parse_album_creation (self, _tmp3_, &_inner_error_); -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp3_); -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3653 "YandexPublishing.c" - goto __catch35_spit_publishing_publishing_error; - } -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3662 "YandexPublishing.c" - } - } - goto __finally35; - __catch35_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp4_; - GError* _tmp5_; -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - err = _inner_error_; -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = self->priv->host; -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = err; -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp5_); -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (err); -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3685 "YandexPublishing.c" - } - __finally35: -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3696 "YandexPublishing.c" - } -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = self->priv->album_list; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = self->priv->options; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = _tmp7_->destination_album; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_); -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = (gchar*) _tmp9_; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = _tmp10_ != NULL; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp10_); -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp11_) { -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_start_upload (self); -#line 3716 "YandexPublishing.c" - } else { - SpitPublishingPluginHost* _tmp12_; - GError* _tmp13_; - GError* _tmp14_; -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = self->priv->host; -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp13_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR, "Server did not create album"); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp14_ = _tmp13_; -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp12_, _tmp14_); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (_tmp14_); -#line 3731 "YandexPublishing.c" - } -} - - -static void -publishing_yandex_yandex_publisher_create_destination_album (PublishingYandexYandexPublisher* self) -{ - gchar* album = NULL; - PublishingYandexPublishOptions* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gchar* data = NULL; - gchar* _tmp3_; - PublishingYandexTransaction* t = NULL; - PublishingYandexSession* _tmp4_; - const gchar* _tmp5_; - PublishingYandexTransaction* _tmp6_; - GError * _inner_error_ = NULL; -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->options; -#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = _tmp0_->destination_album; -#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - album = _tmp2_; -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = g_strdup_printf ("" \ -"%s", album); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - data = _tmp3_; -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = self->priv->session; -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = self->priv->service_url; -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = publishing_yandex_transaction_new_with_url (_tmp4_, _tmp5_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - t = _tmp6_; -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_transaction_add_data (t, "application/atom+xml; charset=utf-8; type=entry", data); -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_yandex_yandex_publisher_album_creation_complete_publishing_rest_support_transaction_completed, self, 0); -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_yandex_yandex_publisher_album_creation_error_publishing_rest_support_transaction_network_error, self, 0); -#line 3778 "YandexPublishing.c" - { -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3786 "YandexPublishing.c" - goto __catch36_spit_publishing_publishing_error; - } -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (data); -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (album); -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3801 "YandexPublishing.c" - } - } - goto __finally36; - __catch36_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp7_; - GError* _tmp8_; -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - err = _inner_error_; -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = self->priv->host; -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = err; -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp7_, _tmp8_); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (err); -#line 3822 "YandexPublishing.c" - } - __finally36: -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (data); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (album); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 3839 "YandexPublishing.c" - } -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (data); -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (album); -#line 3847 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self) -{ -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_on_upload_complete ((PublishingYandexYandexPublisher*) self, _sender, num_photos_published); -#line 3858 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self) -{ -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_on_upload_error ((PublishingYandexYandexPublisher*) self, _sender, err); -#line 3869 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_on_upload_complete (PublishingYandexYandexPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published) -{ - guint _tmp0_; - guint _tmp1_; - SpitPublishingPluginHost* _tmp5_; - SpitPublishingPluginHost* _tmp6_; -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (num_published == 0) { -#line 3896 "YandexPublishing.c" - SpitPublishingPluginHost* _tmp2_; - GError* _tmp3_; - GError* _tmp4_; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = self->priv->host; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, ""); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = _tmp3_; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp2_, _tmp4_); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (_tmp4_); -#line 3910 "YandexPublishing.c" - } -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = self->priv->host; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp5_, FALSE); -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = self->priv->host; -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_install_success_pane (_tmp6_); -#line 3920 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_on_upload_error (PublishingYandexYandexPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - const gchar* _tmp2_; -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = err->message; -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_warning ("YandexPublishing.vala:448: Photo upload error: %s", _tmp2_); -#line 3948 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_on_upload_status_updated (PublishingYandexYandexPublisher* self, - gint file_number, - gdouble completed_fraction) -{ - SpitPublishingProgressCallback _tmp0_; - void* _tmp0__target; - SpitPublishingProgressCallback _tmp1_; - void* _tmp1__target; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:452: EVENT: uploader reports upload %.2f percent" \ -" complete.", 100.0 * completed_fraction); -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->progress_reporter; -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = self->priv->progress_reporter; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ (file_number, completed_fraction, _tmp1__target); -#line 3977 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_on_upload_status_updated ((PublishingYandexYandexPublisher*) self, file_number, fraction_complete); -#line 3988 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_start_upload (PublishingYandexYandexPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - void* _tmp2_; - GDestroyNotify _tmp3_; - SpitPublishingProgressCallback _tmp4_; - PublishingYandexPublishOptions* _tmp5_; - GeeHashMap* _tmp6_; - PublishingYandexPublishOptions* _tmp7_; - const gchar* _tmp8_; - gpointer _tmp9_; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp10_; - gint _tmp11_; - SpitPublishingPublishable** _tmp12_; - gint publishables_length1; - gint _publishables_size_; - PublishingYandexUploader* uploader = NULL; - PublishingYandexSession* _tmp13_; - PublishingYandexPublishOptions* _tmp14_; - PublishingYandexUploader* _tmp15_; -#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->host; -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = self->priv->host; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = spit_publishing_plugin_host_serialize_publishables (_tmp1_, 0, FALSE, &_tmp2_, &_tmp3_); -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter = NULL; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter = _tmp4_; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter_target = _tmp2_; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp3_; -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = self->priv->options; -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = self->priv->album_list; -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = self->priv->options; -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = _tmp7_->destination_album; -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_); -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp5_->destination_album_url); -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_->destination_album_url = (gchar*) _tmp9_; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = self->priv->host; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = spit_publishing_plugin_host_get_publishables (_tmp10_, &_tmp11_); -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishables = _tmp12_; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishables_length1 = _tmp11_; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishables_size_ = publishables_length1; -#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp13_ = self->priv->session; -#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp14_ = self->priv->options; -#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp15_ = publishing_yandex_uploader_new (_tmp13_, _tmp14_, publishables, publishables_length1); -#line 466 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - uploader = _tmp15_; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_yandex_yandex_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_yandex_yandex_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self, 0); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_yandex_yandex_publisher_on_upload_status_updated_spit_publishing_progress_callback, self); -#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_batch_uploader_unref0 (uploader); -#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 4081 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_on_logout (PublishingYandexYandexPublisher* self) -{ - PublishingYandexSession* _tmp0_; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4095 "YandexPublishing.c" - } -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->session; -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_session_deauthenticate (_tmp0_); -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_invalidate_persistent_session (self); -#line 480 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->running = FALSE; -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_publisher_start (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); -#line 4107 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_on_publish (PublishingYandexYandexPublisher* self) -{ - PublishingYandexPublishOptions* _tmp0_; - const gchar* _tmp1_; - GeeHashMap* _tmp2_; - PublishingYandexPublishOptions* _tmp3_; - const gchar* _tmp4_; - gpointer _tmp5_; - gchar* _tmp6_; - GeeHashMap* _tmp7_; - PublishingYandexPublishOptions* _tmp8_; - const gchar* _tmp9_; - gpointer _tmp10_; - gchar* _tmp11_; - gboolean _tmp12_; -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->options; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = _tmp0_->destination_album; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = self->priv->album_list; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = self->priv->options; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = _tmp3_->destination_album; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp4_); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = (gchar*) _tmp5_; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:486: Going to publish to '%s' : %s", _tmp1_, _tmp6_); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp6_); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = self->priv->album_list; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = self->priv->options; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = _tmp8_->destination_album; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = (gchar*) _tmp10_; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = _tmp11_ == NULL; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp11_); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp12_) { -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_create_destination_album (self); -#line 4165 "YandexPublishing.c" - } else { -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_start_upload (self); -#line 4169 "YandexPublishing.c" - } -} - - -static void -_publishing_yandex_yandex_publisher_service_get_album_list_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_service_get_album_list_complete ((PublishingYandexYandexPublisher*) self, _sender); -#line 4180 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_service_get_album_list_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_service_get_album_list_error ((PublishingYandexYandexPublisher*) self, _sender, err); -#line 4191 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_service_get_album_list_error (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - const gchar* _tmp2_; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t)); -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_complete_publishing_rest_support_transaction_completed, self); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_error_publishing_rest_support_transaction_network_error, self); -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_invalidate_persistent_session (self); -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = err->message; -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_warning ("YandexPublishing.vala:498: Failed to get album list: %s", _tmp2_); -#line 4221 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_on_publish_publishing_yandex_publishing_options_pane_publish (PublishingYandexPublishingOptionsPane* _sender, - gpointer self) -{ -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_on_publish ((PublishingYandexYandexPublisher*) self); -#line 4231 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_on_logout_publishing_yandex_publishing_options_pane_logout (PublishingYandexPublishingOptionsPane* _sender, - gpointer self) -{ -#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_on_logout ((PublishingYandexYandexPublisher*) self); -#line 4241 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_service_get_album_list_complete (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingYandexPublishingOptionsPane* publishing_options_pane = NULL; - PublishingYandexPublishOptions* _tmp8_; - GeeHashMap* _tmp9_; - SpitPublishingPluginHost* _tmp10_; - PublishingYandexPublishingOptionsPane* _tmp11_; - SpitPublishingPluginHost* _tmp12_; - GError * _inner_error_ = NULL; -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t)); -#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 502 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_complete_publishing_rest_support_transaction_completed, self); -#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_error_publishing_rest_support_transaction_network_error, self); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (t); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = _tmp2_; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:505: service_get_album_list_complete: %s", _tmp3_); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp3_); -#line 4280 "YandexPublishing.c" - { - gchar* _tmp4_; - gchar* _tmp5_; -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (t); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = _tmp4_; -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_parse_album_list (self, _tmp5_, &_inner_error_); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp5_); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4296 "YandexPublishing.c" - goto __catch37_spit_publishing_publishing_error; - } -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4305 "YandexPublishing.c" - } - } - goto __finally37; - __catch37_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp6_; - GError* _tmp7_; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - err = _inner_error_; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = self->priv->host; -#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = err; -#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp6_, _tmp7_); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (err); -#line 4326 "YandexPublishing.c" - } - __finally37: -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4337 "YandexPublishing.c" - } -#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = self->priv->options; -#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = self->priv->album_list; -#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = self->priv->host; -#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = publishing_yandex_publishing_options_pane_new (_tmp8_, _tmp9_, _tmp10_); -#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_options_pane = _tmp11_; -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (publishing_options_pane, "publish", (GCallback) _publishing_yandex_yandex_publisher_on_publish_publishing_yandex_publishing_options_pane_publish, self, 0); -#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (publishing_options_pane, "logout", (GCallback) _publishing_yandex_yandex_publisher_on_logout_publishing_yandex_publishing_options_pane_logout, self, 0); -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = self->priv->host; -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (publishing_options_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (publishing_options_pane); -#line 4359 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_service_get_album_list (PublishingYandexYandexPublisher* self, - const gchar* url) -{ - gchar* _tmp0_; - PublishingYandexTransaction* t = NULL; - PublishingYandexSession* _tmp1_; - PublishingYandexTransaction* _tmp2_; - GError * _inner_error_ = NULL; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (url != NULL); -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = g_strdup (url); -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (self->priv->service_url); -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->service_url = _tmp0_; -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = self->priv->session; -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_yandex_transaction_new_with_url (_tmp1_, url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - t = _tmp2_; -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_complete_publishing_rest_support_transaction_completed, self, 0); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_yandex_yandex_publisher_service_get_album_list_error_publishing_rest_support_transaction_network_error, self, 0); -#line 4392 "YandexPublishing.c" - { -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4400 "YandexPublishing.c" - goto __catch38_spit_publishing_publishing_error; - } -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4411 "YandexPublishing.c" - } - } - goto __finally38; - __catch38_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp3_; - GError* _tmp4_; -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - err = _inner_error_; -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = self->priv->host; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = err; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp3_, _tmp4_); -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (err); -#line 4432 "YandexPublishing.c" - } - __finally38: -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4445 "YandexPublishing.c" - } -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 4449 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_fetch_account_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_fetch_account_complete ((PublishingYandexYandexPublisher*) self, _sender); -#line 4459 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_fetch_account_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_fetch_account_error ((PublishingYandexYandexPublisher*) self, _sender, err); -#line 4470 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_fetch_account_error (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - const gchar* _tmp2_; -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t)); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_fetch_account_complete_publishing_rest_support_transaction_completed, self); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_fetch_account_error_publishing_rest_support_transaction_network_error, self); -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = err->message; -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_warning ("YandexPublishing.vala:538: Failed to fetch account info: %s", _tmp2_); -#line 4498 "YandexPublishing.c" -} - - -void -publishing_yandex_yandex_publisher_fetch_account_complete (PublishingYandexYandexPublisher* self, - PublishingRESTSupportTransaction* t) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (t)); -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_fetch_account_complete_publishing_rest_support_transaction_completed, self); -#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_handlers_disconnect_matched (t, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_yandex_yandex_publisher_fetch_account_error_publishing_rest_support_transaction_network_error, self); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (t); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = _tmp2_; -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:545: account info: %s", _tmp3_); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp3_); -#line 4531 "YandexPublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp4_; - gchar* _tmp5_; - PublishingRESTSupportXmlDocument* _tmp6_; - PublishingRESTSupportXmlDocument* _tmp7_; - xmlNode* root = NULL; - PublishingRESTSupportXmlDocument* _tmp8_; - xmlNode* _tmp9_; -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (t); -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = _tmp4_; -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = publishing_rest_support_xml_document_parse_string (_tmp5_, _publishing_yandex_yandex_publisher_check_response_publishing_rest_support_xml_document_check_for_error_response, self, &_inner_error_); -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = _tmp6_; -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp5_); -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - doc = _tmp7_; -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4557 "YandexPublishing.c" - goto __catch39_spit_publishing_publishing_error; - } -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4566 "YandexPublishing.c" - } -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp8_ = doc; -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp9_ = publishing_rest_support_xml_document_get_root_node (_tmp8_); -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - root = _tmp9_; -#line 4574 "YandexPublishing.c" - { - xmlNode* work = NULL; - xmlNode* _tmp10_; - xmlNode* _tmp11_; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp10_ = root; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp11_ = _tmp10_->children; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - work = _tmp11_; -#line 4585 "YandexPublishing.c" - { - gboolean _tmp12_ = FALSE; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = TRUE; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - while (TRUE) { -#line 4592 "YandexPublishing.c" - xmlNode* _tmp15_; - xmlNode* _tmp16_; - const gchar* _tmp17_; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!_tmp12_) { -#line 4598 "YandexPublishing.c" - xmlNode* _tmp13_; - xmlNode* _tmp14_; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp13_ = work; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp14_ = _tmp13_->next; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - work = _tmp14_; -#line 4607 "YandexPublishing.c" - } -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp12_ = FALSE; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp15_ = work; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!(_tmp15_ != NULL)) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 4617 "YandexPublishing.c" - } -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp16_ = work; -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp17_ = _tmp16_->name; -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (g_strcmp0 (_tmp17_, "workspace") != 0) { -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - continue; -#line 4627 "YandexPublishing.c" - } - { - xmlNode* c = NULL; - xmlNode* _tmp18_; - xmlNode* _tmp19_; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp18_ = work; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp19_ = _tmp18_->children; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - c = _tmp19_; -#line 4639 "YandexPublishing.c" - { - gboolean _tmp20_ = FALSE; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp20_ = TRUE; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - while (TRUE) { -#line 4646 "YandexPublishing.c" - xmlNode* _tmp23_; - xmlNode* _tmp24_; - const gchar* _tmp25_; - xmlNode* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - gboolean _tmp29_; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!_tmp20_) { -#line 4656 "YandexPublishing.c" - xmlNode* _tmp21_; - xmlNode* _tmp22_; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp21_ = c; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp22_ = _tmp21_->next; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - c = _tmp22_; -#line 4665 "YandexPublishing.c" - } -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp20_ = FALSE; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp23_ = c; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (!(_tmp23_ != NULL)) { -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 4675 "YandexPublishing.c" - } -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp24_ = c; -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp25_ = _tmp24_->name; -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (g_strcmp0 (_tmp25_, "collection") != 0) { -#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - continue; -#line 4685 "YandexPublishing.c" - } -#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp26_ = c; -#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp27_ = (gchar*) xmlGetProp (_tmp26_, (xmlChar*) "id"); -#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp28_ = _tmp27_; -#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp29_ = g_strcmp0 (_tmp28_, "album-list") == 0; -#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp28_); -#line 557 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp29_) { -#line 4699 "YandexPublishing.c" - gchar* url = NULL; - xmlNode* _tmp30_; - gchar* _tmp31_; - PublishingYandexSession* _tmp32_; - gchar* _tmp33_; - gchar* _tmp34_; - const gchar* _tmp35_; -#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp30_ = c; -#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp31_ = (gchar*) xmlGetProp (_tmp30_, (xmlChar*) "href"); -#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - url = _tmp31_; -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp32_ = self->priv->session; -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp33_ = publishing_yandex_session_get_auth_token (_tmp32_); -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp34_ = _tmp33_; -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_set_persistent_auth_token (self, _tmp34_); -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp34_); -#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp35_ = url; -#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_service_get_album_list (self, _tmp35_); -#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (url); -#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - break; -#line 4731 "YandexPublishing.c" - } - } - } - } - } - } - } -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 4741 "YandexPublishing.c" - } - goto __finally39; - __catch39_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp36_; - GError* _tmp37_; -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - err = _inner_error_; -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 567 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp36_ = self->priv->host; -#line 567 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp37_ = err; -#line 567 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp36_, _tmp37_); -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (err); -#line 4761 "YandexPublishing.c" - } - __finally39: -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4772 "YandexPublishing.c" - } -} - - -void -publishing_yandex_yandex_publisher_fetch_account_information (PublishingYandexYandexPublisher* self, - const gchar* auth_token) -{ - PublishingYandexSession* _tmp0_; - PublishingYandexTransaction* t = NULL; - PublishingYandexSession* _tmp1_; - PublishingYandexTransaction* _tmp2_; - GError * _inner_error_ = NULL; -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (auth_token != NULL); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->session; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_session_set_auth_token (_tmp0_, auth_token); -#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = self->priv->session; -#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_yandex_transaction_new_with_url (_tmp1_, "https://api-fotki.yandex.ru/api/me/", PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - t = _tmp2_; -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_yandex_yandex_publisher_fetch_account_complete_publishing_rest_support_transaction_completed, self, 0); -#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_yandex_yandex_publisher_fetch_account_error_publishing_rest_support_transaction_network_error, self, 0); -#line 4804 "YandexPublishing.c" - { -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (t, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4812 "YandexPublishing.c" - goto __catch40_spit_publishing_publishing_error; - } -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4823 "YandexPublishing.c" - } - } - goto __finally40; - __catch40_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp3_; - GError* _tmp4_; -#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - err = _inner_error_; -#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _inner_error_ = NULL; -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = self->priv->host; -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = err; -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp3_, _tmp4_); -#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_error_free0 (err); -#line 4844 "YandexPublishing.c" - } - __finally40: -#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_clear_error (&_inner_error_); -#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 4857 "YandexPublishing.c" - } -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_transaction_unref0 (t); -#line 4861 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_web_auth_login_succeeded (PublishingYandexYandexPublisher* self, - const gchar* access_token) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (access_token != NULL); -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:586: login succeeded with token %s", access_token); -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->host; -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = self->priv->host; -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_); -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_fetch_account_information (self, access_token); -#line 4887 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_web_auth_login_failed (PublishingYandexYandexPublisher* self) -{ -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:595: login failed"); -#line 4898 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_web_auth_login_succeeded_publishing_yandex_web_auth_pane_login_succeeded (PublishingYandexWebAuthPane* _sender, - const gchar* success_url, - gpointer self) -{ -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_web_auth_login_succeeded ((PublishingYandexYandexPublisher*) self, success_url); -#line 4909 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_web_auth_login_failed_publishing_yandex_web_auth_pane_login_failed (PublishingYandexWebAuthPane* _sender, - gpointer self) -{ -#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_web_auth_login_failed ((PublishingYandexYandexPublisher*) self); -#line 4919 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_start_web_auth (PublishingYandexYandexPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - PublishingYandexWebAuthPane* _tmp3_; - PublishingYandexWebAuthPane* _tmp4_; - PublishingYandexWebAuthPane* _tmp5_; - SpitPublishingPluginHost* _tmp6_; - PublishingYandexWebAuthPane* _tmp7_; -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->host; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = g_strdup_printf ("https://oauth.yandex.ru/authorize?client_id=%s&response_type=token", PUBLISHING_YANDEX_client_id); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = _tmp1_; -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = publishing_yandex_web_auth_pane_new (_tmp2_); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->web_auth_pane); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->web_auth_pane = _tmp3_; -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp2_); -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = self->priv->web_auth_pane; -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (_tmp4_, "login-succeeded", (GCallback) _publishing_yandex_yandex_publisher_web_auth_login_succeeded_publishing_yandex_web_auth_pane_login_succeeded, self, 0); -#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = self->priv->web_auth_pane; -#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_signal_connect_object (_tmp5_, "login-failed", (GCallback) _publishing_yandex_yandex_publisher_web_auth_login_failed_publishing_yandex_web_auth_pane_login_failed, self, 0); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp6_ = self->priv->host; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp7_ = self->priv->web_auth_pane; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 4966 "YandexPublishing.c" -} - - -static void -_publishing_yandex_yandex_publisher_start_web_auth_spit_publishing_login_callback (gpointer self) -{ -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_start_web_auth ((PublishingYandexYandexPublisher*) self); -#line 4975 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_show_welcome_page (PublishingYandexYandexPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_return_if_fail (PUBLISHING_YANDEX_IS_YANDEX_PUBLISHER (self)); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->host; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - spit_publishing_plugin_host_install_welcome_pane (_tmp0_, _ ("You are not currently logged into Yandex.Fotki."), _publishing_yandex_yandex_publisher_start_web_auth_spit_publishing_login_callback, self); -#line 4989 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_real_start (SpitPublishingPublisher* base) -{ - PublishingYandexYandexPublisher * self; - SpitPublishingPluginHost* _tmp0_; -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher); -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - return; -#line 5004 "YandexPublishing.c" - } -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp0_ = self->priv->host; -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (_tmp0_ == NULL) { -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_error ("YandexPublishing.vala:618: YandexPublisher: start( ): can't start; thi" \ -"s publisher is not restartable."); -#line 5012 "YandexPublishing.c" - } -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:620: YandexPublisher: starting interaction."); -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->running = TRUE; -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - if (publishing_yandex_yandex_publisher_is_persistent_session_available (self)) { -#line 5020 "YandexPublishing.c" - PublishingYandexSession* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp1_ = self->priv->session; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp2_ = publishing_yandex_yandex_publisher_get_persistent_auth_token (self); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp3_ = _tmp2_; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_session_set_auth_token (_tmp1_, _tmp3_); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp3_); -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp4_ = publishing_yandex_yandex_publisher_get_persistent_auth_token (self); -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _tmp5_ = _tmp4_; -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_fetch_account_information (self, _tmp5_); -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (_tmp5_); -#line 5044 "YandexPublishing.c" - } else { -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_show_welcome_page (self); -#line 5048 "YandexPublishing.c" - } -} - - -static void -publishing_yandex_yandex_publisher_real_stop (SpitPublishingPublisher* base) -{ - PublishingYandexYandexPublisher * self; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher); -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_debug ("YandexPublishing.vala:634: YandexPublisher: stop( ) invoked."); -#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->host = NULL; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->running = FALSE; -#line 5065 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_class_init (PublishingYandexYandexPublisherClass * klass) -{ -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_parent_class = g_type_class_peek_parent (klass); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYandexYandexPublisherPrivate)); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_yandex_yandex_publisher_finalize; -#line 5078 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) -{ -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - publishing_yandex_yandex_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->is_running = (gboolean (*) (SpitPublishingPublisher *)) publishing_yandex_yandex_publisher_real_is_running; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->get_service = (SpitPublishingService* (*) (SpitPublishingPublisher *)) publishing_yandex_yandex_publisher_real_get_service; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->start = (void (*) (SpitPublishingPublisher *)) publishing_yandex_yandex_publisher_real_start; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - iface->stop = (void (*) (SpitPublishingPublisher *)) publishing_yandex_yandex_publisher_real_stop; -#line 5095 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_instance_init (PublishingYandexYandexPublisher * self) -{ -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv = PUBLISHING_YANDEX_YANDEX_PUBLISHER_GET_PRIVATE (self); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->host = NULL; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter = NULL; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter_target = self; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->service = NULL; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->service_url = NULL; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->album_list = NULL; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->running = FALSE; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->web_auth_pane = NULL; -#line 5122 "YandexPublishing.c" -} - - -static void -publishing_yandex_yandex_publisher_finalize (GObject * obj) -{ - PublishingYandexYandexPublisher * self; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YANDEX_TYPE_YANDEX_PUBLISHER, PublishingYandexYandexPublisher); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter = NULL; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_free0 (self->priv->service_url); -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->album_list); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_yandex_publish_options_unref0 (self->priv->options); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _g_object_unref0 (self->priv->web_auth_pane); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/YandexPublishing.vala" - G_OBJECT_CLASS (publishing_yandex_yandex_publisher_parent_class)->finalize (obj); -#line 5152 "YandexPublishing.c" -} - - -GType -publishing_yandex_yandex_publisher_get_type (void) -{ - static volatile gsize publishing_yandex_yandex_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_yandex_yandex_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYandexYandexPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_yandex_yandex_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYandexYandexPublisher), 0, (GInstanceInitFunc) publishing_yandex_yandex_publisher_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_yandex_yandex_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_yandex_yandex_publisher_type_id; - publishing_yandex_yandex_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingYandexYandexPublisher", &g_define_type_info, 0); - g_type_add_interface_static (publishing_yandex_yandex_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info); - g_once_init_leave (&publishing_yandex_yandex_publisher_type_id__volatile, publishing_yandex_yandex_publisher_type_id); - } - return publishing_yandex_yandex_publisher_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/plugins/shotwell-publishing-extras/shotwell-publishing-extras.c b/plugins/shotwell-publishing-extras/shotwell-publishing-extras.c deleted file mode 100644 index e873272..0000000 --- a/plugins/shotwell-publishing-extras/shotwell-publishing-extras.c +++ /dev/null @@ -1,387 +0,0 @@ -/* shotwell-publishing-extras.c generated by valac 0.40.4, the Vala compiler - * generated from shotwell-publishing-extras.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES (shotwell_publishing_extra_services_get_type ()) -#define SHOTWELL_PUBLISHING_EXTRA_SERVICES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices)) -#define SHOTWELL_PUBLISHING_EXTRA_SERVICES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServicesClass)) -#define IS_SHOTWELL_PUBLISHING_EXTRA_SERVICES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES)) -#define IS_SHOTWELL_PUBLISHING_EXTRA_SERVICES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES)) -#define SHOTWELL_PUBLISHING_EXTRA_SERVICES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServicesClass)) - -typedef struct _ShotwellPublishingExtraServices ShotwellPublishingExtraServices; -typedef struct _ShotwellPublishingExtraServicesClass ShotwellPublishingExtraServicesClass; -typedef struct _ShotwellPublishingExtraServicesPrivate ShotwellPublishingExtraServicesPrivate; -enum { - SHOTWELL_PUBLISHING_EXTRA_SERVICES_0_PROPERTY, - SHOTWELL_PUBLISHING_EXTRA_SERVICES_NUM_PROPERTIES -}; -static GParamSpec* shotwell_publishing_extra_services_properties[SHOTWELL_PUBLISHING_EXTRA_SERVICES_NUM_PROPERTIES]; - -#define TYPE_GALLERY3_SERVICE (gallery3_service_get_type ()) -#define GALLERY3_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GALLERY3_SERVICE, Gallery3Service)) -#define GALLERY3_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GALLERY3_SERVICE, Gallery3ServiceClass)) -#define IS_GALLERY3_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GALLERY3_SERVICE)) -#define IS_GALLERY3_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GALLERY3_SERVICE)) -#define GALLERY3_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GALLERY3_SERVICE, Gallery3ServiceClass)) - -typedef struct _Gallery3Service Gallery3Service; -typedef struct _Gallery3ServiceClass Gallery3ServiceClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -struct _ShotwellPublishingExtraServices { - GObject parent_instance; - ShotwellPublishingExtraServicesPrivate * priv; -}; - -struct _ShotwellPublishingExtraServicesClass { - GObjectClass parent_class; -}; - -struct _ShotwellPublishingExtraServicesPrivate { - SpitPluggable** pluggables; - gint pluggables_length1; - gint _pluggables_size_; -}; - - -static gpointer shotwell_publishing_extra_services_parent_class = NULL; -static SpitModuleIface * shotwell_publishing_extra_services_spit_module_parent_iface = NULL; - -GType shotwell_publishing_extra_services_get_type (void) G_GNUC_CONST; -#define SHOTWELL_PUBLISHING_EXTRA_SERVICES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServicesPrivate)) -ShotwellPublishingExtraServices* shotwell_publishing_extra_services_new (GFile* module_file); -ShotwellPublishingExtraServices* shotwell_publishing_extra_services_construct (GType object_type, - GFile* module_file); -Gallery3Service* gallery3_service_new (GFile* resource_directory); -Gallery3Service* gallery3_service_construct (GType object_type, - GFile* resource_directory); -GType gallery3_service_get_type (void) G_GNUC_CONST; -static void _vala_array_add14 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -static const gchar* shotwell_publishing_extra_services_real_get_module_name (SpitModule* base); -static const gchar* shotwell_publishing_extra_services_real_get_version (SpitModule* base); -static const gchar* shotwell_publishing_extra_services_real_get_id (SpitModule* base); -static SpitPluggable** shotwell_publishing_extra_services_real_get_pluggables (SpitModule* base, - int* result_length1); -static void shotwell_publishing_extra_services_finalize (GObject * obj); -SpitModule* spit_entry_point (SpitEntryPointParams* params); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static void -_vala_array_add14 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - if ((*length) == (*size)) { -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 107 "shotwell-publishing-extras.c" - } -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - (*array)[(*length)++] = value; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - (*array)[*length] = NULL; -#line 113 "shotwell-publishing-extras.c" -} - - -ShotwellPublishingExtraServices* -shotwell_publishing_extra_services_construct (GType object_type, - GFile* module_file) -{ - ShotwellPublishingExtraServices * self = NULL; - SpitPluggable** _tmp0_; - gint _tmp0__length1; - GFile* _tmp1_; - GFile* _tmp2_; - Gallery3Service* _tmp3_; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - g_return_val_if_fail (G_IS_FILE (module_file), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self = (ShotwellPublishingExtraServices*) g_object_new (object_type, NULL); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp0_ = self->priv->pluggables; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp0__length1 = self->priv->pluggables_length1; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp1_ = g_file_get_parent (module_file); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp2_ = _tmp1_; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp3_ = gallery3_service_new (_tmp2_); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _vala_array_add14 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _g_object_unref0 (_tmp2_); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - return self; -#line 147 "shotwell-publishing-extras.c" -} - - -ShotwellPublishingExtraServices* -shotwell_publishing_extra_services_new (GFile* module_file) -{ -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - return shotwell_publishing_extra_services_construct (TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, module_file); -#line 156 "shotwell-publishing-extras.c" -} - - -static const gchar* -shotwell_publishing_extra_services_real_get_module_name (SpitModule* base) -{ - ShotwellPublishingExtraServices * self; - const gchar* result = NULL; -#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices); -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - result = _ ("Shotwell Extra Publishing Services"); -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - return result; -#line 171 "shotwell-publishing-extras.c" -} - - -static const gchar* -shotwell_publishing_extra_services_real_get_version (SpitModule* base) -{ - ShotwellPublishingExtraServices * self; - const gchar* result = NULL; -#line 30 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - result = _VERSION; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - return result; -#line 186 "shotwell-publishing-extras.c" -} - - -static const gchar* -shotwell_publishing_extra_services_real_get_id (SpitModule* base) -{ - ShotwellPublishingExtraServices * self; - const gchar* result = NULL; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - result = "org.yorba.shotwell.publishing.extras"; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - return result; -#line 201 "shotwell-publishing-extras.c" -} - - -static SpitPluggable** -shotwell_publishing_extra_services_real_get_pluggables (SpitModule* base, - int* result_length1) -{ - ShotwellPublishingExtraServices * self; - SpitPluggable** result = NULL; - SpitPluggable** _tmp0_; - gint _tmp0__length1; - SpitPluggable** _tmp1_; - gint _tmp1__length1; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp0_ = self->priv->pluggables; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp0__length1 = self->priv->pluggables_length1; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp1_ = _tmp0_; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp1__length1 = _tmp0__length1; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - if (result_length1) { -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - *result_length1 = _tmp1__length1; -#line 229 "shotwell-publishing-extras.c" - } -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - result = _tmp1_; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - return result; -#line 235 "shotwell-publishing-extras.c" -} - - -static void -shotwell_publishing_extra_services_class_init (ShotwellPublishingExtraServicesClass * klass) -{ -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - shotwell_publishing_extra_services_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - g_type_class_add_private (klass, sizeof (ShotwellPublishingExtraServicesPrivate)); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - G_OBJECT_CLASS (klass)->finalize = shotwell_publishing_extra_services_finalize; -#line 248 "shotwell-publishing-extras.c" -} - - -static void -shotwell_publishing_extra_services_spit_module_interface_init (SpitModuleIface * iface) -{ -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - shotwell_publishing_extra_services_spit_module_parent_iface = g_type_interface_peek_parent (iface); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - iface->get_module_name = (const gchar* (*) (SpitModule *)) shotwell_publishing_extra_services_real_get_module_name; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - iface->get_version = (const gchar* (*) (SpitModule *)) shotwell_publishing_extra_services_real_get_version; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - iface->get_id = (const gchar* (*) (SpitModule *)) shotwell_publishing_extra_services_real_get_id; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - iface->get_pluggables = (SpitPluggable** (*) (SpitModule *, int*)) shotwell_publishing_extra_services_real_get_pluggables; -#line 265 "shotwell-publishing-extras.c" -} - - -static void -shotwell_publishing_extra_services_instance_init (ShotwellPublishingExtraServices * self) -{ - SpitPluggable** _tmp0_; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self->priv = SHOTWELL_PUBLISHING_EXTRA_SERVICES_GET_PRIVATE (self); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp0_ = g_new0 (SpitPluggable*, 0 + 1); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self->priv->pluggables = _tmp0_; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self->priv->pluggables_length1 = 0; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self->priv->_pluggables_size_ = self->priv->pluggables_length1; -#line 283 "shotwell-publishing-extras.c" -} - - -static void -shotwell_publishing_extra_services_finalize (GObject * obj) -{ - ShotwellPublishingExtraServices * self; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_PUBLISHING_EXTRA_SERVICES, ShotwellPublishingExtraServices); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - self->priv->pluggables = (_vala_array_free (self->priv->pluggables, self->priv->pluggables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - G_OBJECT_CLASS (shotwell_publishing_extra_services_parent_class)->finalize (obj); -#line 297 "shotwell-publishing-extras.c" -} - - -GType -shotwell_publishing_extra_services_get_type (void) -{ - static volatile gsize shotwell_publishing_extra_services_type_id__volatile = 0; - if (g_once_init_enter (&shotwell_publishing_extra_services_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ShotwellPublishingExtraServicesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_publishing_extra_services_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellPublishingExtraServices), 0, (GInstanceInitFunc) shotwell_publishing_extra_services_instance_init, NULL }; - static const GInterfaceInfo spit_module_info = { (GInterfaceInitFunc) shotwell_publishing_extra_services_spit_module_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType shotwell_publishing_extra_services_type_id; - shotwell_publishing_extra_services_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellPublishingExtraServices", &g_define_type_info, 0); - g_type_add_interface_static (shotwell_publishing_extra_services_type_id, SPIT_TYPE_MODULE, &spit_module_info); - g_once_init_leave (&shotwell_publishing_extra_services_type_id__volatile, shotwell_publishing_extra_services_type_id); - } - return shotwell_publishing_extra_services_type_id__volatile; -} - - -SpitModule* -spit_entry_point (SpitEntryPointParams* params) -{ - SpitModule* result = NULL; - gint _tmp0_; - gint _tmp1_; - ShotwellPublishingExtraServices* _tmp2_ = NULL; - gint _tmp3_; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp0_ = (*params).host_min_spit_interface; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp1_ = (*params).host_max_spit_interface; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - (*params).module_spit_interface = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_CURRENT_INTERFACE); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp3_ = (*params).module_spit_interface; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - if (_tmp3_ != SPIT_UNSUPPORTED_INTERFACE) { -#line 335 "shotwell-publishing-extras.c" - GFile* _tmp4_; - ShotwellPublishingExtraServices* _tmp5_; -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp4_ = (*params).module_file; -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp5_ = shotwell_publishing_extra_services_new (_tmp4_); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _g_object_unref0 (_tmp2_); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp2_ = _tmp5_; -#line 346 "shotwell-publishing-extras.c" - } else { -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _g_object_unref0 (_tmp2_); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - _tmp2_ = NULL; -#line 352 "shotwell-publishing-extras.c" - } -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_MODULE, SpitModule); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala" - return result; -#line 358 "shotwell-publishing-extras.c" -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/shotwell-publishing/FacebookPublishing.c b/plugins/shotwell-publishing/FacebookPublishing.c deleted file mode 100644 index 3b257d4..0000000 --- a/plugins/shotwell-publishing/FacebookPublishing.c +++ /dev/null @@ -1,10155 +0,0 @@ -/* FacebookPublishing.c generated by valac 0.40.4, the Vala compiler - * generated from FacebookPublishing.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include "shotwell-authenticator.h" -#include -#include -#include -#include -#include -#include - - -#define TYPE_FACEBOOK_SERVICE (facebook_service_get_type ()) -#define FACEBOOK_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FACEBOOK_SERVICE, FacebookService)) -#define FACEBOOK_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FACEBOOK_SERVICE, FacebookServiceClass)) -#define IS_FACEBOOK_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FACEBOOK_SERVICE)) -#define IS_FACEBOOK_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FACEBOOK_SERVICE)) -#define FACEBOOK_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FACEBOOK_SERVICE, FacebookServiceClass)) - -typedef struct _FacebookService FacebookService; -typedef struct _FacebookServiceClass FacebookServiceClass; -typedef struct _FacebookServicePrivate FacebookServicePrivate; -enum { - FACEBOOK_SERVICE_0_PROPERTY, - FACEBOOK_SERVICE_NUM_PROPERTIES -}; -static GParamSpec* facebook_service_properties[FACEBOOK_SERVICE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER (publishing_facebook_facebook_publisher_get_type ()) -#define PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher)) -#define PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisherClass)) -#define PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER)) -#define PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER)) -#define PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisherClass)) - -typedef struct _PublishingFacebookFacebookPublisher PublishingFacebookFacebookPublisher; -typedef struct _PublishingFacebookFacebookPublisherClass PublishingFacebookFacebookPublisherClass; - -#define PUBLISHING_FACEBOOK_TYPE_ALBUM (publishing_facebook_album_get_type ()) -#define PUBLISHING_FACEBOOK_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_ALBUM, PublishingFacebookAlbum)) -#define PUBLISHING_FACEBOOK_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_ALBUM, PublishingFacebookAlbumClass)) -#define PUBLISHING_FACEBOOK_IS_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_ALBUM)) -#define PUBLISHING_FACEBOOK_IS_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_ALBUM)) -#define PUBLISHING_FACEBOOK_ALBUM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_ALBUM, PublishingFacebookAlbumClass)) - -typedef struct _PublishingFacebookAlbum PublishingFacebookAlbum; -typedef struct _PublishingFacebookAlbumClass PublishingFacebookAlbumClass; -typedef struct _PublishingFacebookAlbumPrivate PublishingFacebookAlbumPrivate; -typedef struct _PublishingFacebookParamSpecAlbum PublishingFacebookParamSpecAlbum; - -#define PUBLISHING_FACEBOOK_TYPE_RESOLUTION (publishing_facebook_resolution_get_type ()) - -#define PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS (publishing_facebook_publishing_parameters_get_type ()) -#define PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS, PublishingFacebookPublishingParameters)) -#define PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS, PublishingFacebookPublishingParametersClass)) -#define PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS, PublishingFacebookPublishingParametersClass)) - -typedef struct _PublishingFacebookPublishingParameters PublishingFacebookPublishingParameters; -typedef struct _PublishingFacebookPublishingParametersClass PublishingFacebookPublishingParametersClass; -typedef struct _PublishingFacebookPublishingParametersPrivate PublishingFacebookPublishingParametersPrivate; -#define _publishing_facebook_album_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_album_unref (var), NULL))) -typedef struct _PublishingFacebookParamSpecPublishingParameters PublishingFacebookParamSpecPublishingParameters; -typedef struct _PublishingFacebookFacebookPublisherPrivate PublishingFacebookFacebookPublisherPrivate; - -#define PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION (publishing_facebook_graph_session_get_type ()) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, PublishingFacebookGraphSession)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, PublishingFacebookGraphSessionClass)) -#define PUBLISHING_FACEBOOK_IS_GRAPH_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION)) -#define PUBLISHING_FACEBOOK_IS_GRAPH_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, PublishingFacebookGraphSessionClass)) - -typedef struct _PublishingFacebookGraphSession PublishingFacebookGraphSession; -typedef struct _PublishingFacebookGraphSessionClass PublishingFacebookGraphSessionClass; - -#define PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE (publishing_facebook_publishing_options_pane_get_type ()) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane)) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPaneClass)) -#define PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPaneClass)) - -typedef struct _PublishingFacebookPublishingOptionsPane PublishingFacebookPublishingOptionsPane; -typedef struct _PublishingFacebookPublishingOptionsPaneClass PublishingFacebookPublishingOptionsPaneClass; - -#define PUBLISHING_FACEBOOK_TYPE_UPLOADER (publishing_facebook_uploader_get_type ()) -#define PUBLISHING_FACEBOOK_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_UPLOADER, PublishingFacebookUploader)) -#define PUBLISHING_FACEBOOK_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_UPLOADER, PublishingFacebookUploaderClass)) -#define PUBLISHING_FACEBOOK_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_UPLOADER)) -#define PUBLISHING_FACEBOOK_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_UPLOADER)) -#define PUBLISHING_FACEBOOK_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_UPLOADER, PublishingFacebookUploaderClass)) - -typedef struct _PublishingFacebookUploader PublishingFacebookUploader; -typedef struct _PublishingFacebookUploaderClass PublishingFacebookUploaderClass; -enum { - PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_0_PROPERTY, - PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_facebook_facebook_publisher_properties[PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_NUM_PROPERTIES]; -#define _publishing_facebook_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_publishing_parameters_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _publishing_facebook_graph_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_graph_session_unref (var), NULL))) -#define _publishing_facebook_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_uploader_unref (var), NULL))) - -#define PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE (publishing_facebook_graph_message_get_type ()) -#define PUBLISHING_FACEBOOK_GRAPH_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage)) -#define PUBLISHING_FACEBOOK_GRAPH_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessageClass)) -#define PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE)) -#define PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessageClass)) - -typedef struct _PublishingFacebookGraphMessage PublishingFacebookGraphMessage; -typedef struct _PublishingFacebookGraphMessageClass PublishingFacebookGraphMessageClass; -#define _publishing_facebook_graph_message_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_graph_message_unref (var), NULL))) -#define _json_object_unref0(var) ((var == NULL) ? NULL : (var = (json_object_unref (var), NULL))) -#define __vala_JsonNode_free0(var) ((var == NULL) ? NULL : (var = (_vala_JsonNode_free (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _json_array_unref0(var) ((var == NULL) ? NULL : (var = (json_array_unref (var), NULL))) -#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -typedef struct _PublishingFacebookPublishingOptionsPanePrivate PublishingFacebookPublishingOptionsPanePrivate; - -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION (publishing_facebook_publishing_options_pane_privacy_description_get_type ()) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingFacebookPublishingOptionsPanePrivacyDescription)) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass)) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_IS_PRIVACY_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_IS_PRIVACY_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass)) - -typedef struct _PublishingFacebookPublishingOptionsPanePrivacyDescription PublishingFacebookPublishingOptionsPanePrivacyDescription; -typedef struct _PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass; -enum { - PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_0_PROPERTY, - PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_facebook_publishing_options_pane_properties[PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; -#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL))) -typedef struct _PublishingFacebookPublishingOptionsPanePrivacyDescriptionPrivate PublishingFacebookPublishingOptionsPanePrivacyDescriptionPrivate; -#define _publishing_facebook_publishing_options_pane_privacy_description_unref0(var) ((var == NULL) ? NULL : (var = (publishing_facebook_publishing_options_pane_privacy_description_unref (var), NULL))) -typedef struct _PublishingFacebookPublishingOptionsPaneParamSpecPrivacyDescription PublishingFacebookPublishingOptionsPaneParamSpecPrivacyDescription; -enum { - PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, - PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS -}; -static guint publishing_facebook_publishing_options_pane_signals[PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; - -#define PUBLISHING_FACEBOOK_TYPE_ENDPOINT (publishing_facebook_endpoint_get_type ()) -typedef struct _PublishingFacebookGraphMessagePrivate PublishingFacebookGraphMessagePrivate; -typedef struct _PublishingFacebookParamSpecGraphMessage PublishingFacebookParamSpecGraphMessage; -enum { - PUBLISHING_FACEBOOK_GRAPH_MESSAGE_COMPLETED_SIGNAL, - PUBLISHING_FACEBOOK_GRAPH_MESSAGE_FAILED_SIGNAL, - PUBLISHING_FACEBOOK_GRAPH_MESSAGE_DATA_TRANSMITTED_SIGNAL, - PUBLISHING_FACEBOOK_GRAPH_MESSAGE_NUM_SIGNALS -}; -static guint publishing_facebook_graph_message_signals[PUBLISHING_FACEBOOK_GRAPH_MESSAGE_NUM_SIGNALS] = {0}; -typedef struct _PublishingFacebookGraphSessionPrivate PublishingFacebookGraphSessionPrivate; - -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL (publishing_facebook_graph_session_graph_message_impl_get_type ()) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_MESSAGE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_MESSAGE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImplClass)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_MESSAGE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_MESSAGE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_MESSAGE_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImplClass)) - -typedef struct _PublishingFacebookGraphSessionGraphMessageImpl PublishingFacebookGraphSessionGraphMessageImpl; -typedef struct _PublishingFacebookGraphSessionGraphMessageImplClass PublishingFacebookGraphSessionGraphMessageImplClass; -typedef struct _PublishingFacebookGraphSessionGraphMessageImplPrivate PublishingFacebookGraphSessionGraphMessageImplPrivate; - -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE (publishing_facebook_graph_session_graph_query_message_get_type ()) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_QUERY_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE, PublishingFacebookGraphSessionGraphQueryMessage)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_QUERY_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE, PublishingFacebookGraphSessionGraphQueryMessageClass)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_QUERY_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_QUERY_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_QUERY_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE, PublishingFacebookGraphSessionGraphQueryMessageClass)) - -typedef struct _PublishingFacebookGraphSessionGraphQueryMessage PublishingFacebookGraphSessionGraphQueryMessage; -typedef struct _PublishingFacebookGraphSessionGraphQueryMessageClass PublishingFacebookGraphSessionGraphQueryMessageClass; - -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE (publishing_facebook_graph_session_graph_upload_message_get_type ()) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_UPLOAD_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessage)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_UPLOAD_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessageClass)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_UPLOAD_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_UPLOAD_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_UPLOAD_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessageClass)) - -typedef struct _PublishingFacebookGraphSessionGraphUploadMessage PublishingFacebookGraphSessionGraphUploadMessage; -typedef struct _PublishingFacebookGraphSessionGraphUploadMessageClass PublishingFacebookGraphSessionGraphUploadMessageClass; - -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE (publishing_facebook_graph_session_graph_create_album_message_get_type ()) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_CREATE_ALBUM_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE, PublishingFacebookGraphSessionGraphCreateAlbumMessage)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_CREATE_ALBUM_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE, PublishingFacebookGraphSessionGraphCreateAlbumMessageClass)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_CREATE_ALBUM_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_CREATE_ALBUM_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_CREATE_ALBUM_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE, PublishingFacebookGraphSessionGraphCreateAlbumMessageClass)) - -typedef struct _PublishingFacebookGraphSessionGraphCreateAlbumMessage PublishingFacebookGraphSessionGraphCreateAlbumMessage; -typedef struct _PublishingFacebookGraphSessionGraphCreateAlbumMessageClass PublishingFacebookGraphSessionGraphCreateAlbumMessageClass; -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) -typedef struct _PublishingFacebookGraphSessionGraphQueryMessagePrivate PublishingFacebookGraphSessionGraphQueryMessagePrivate; -#define __vala_SoupURI_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupURI_free (var), NULL))) - -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE (publishing_facebook_graph_session_graph_endpoint_probe_message_get_type ()) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_ENDPOINT_PROBE_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE, PublishingFacebookGraphSessionGraphEndpointProbeMessage)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_ENDPOINT_PROBE_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE, PublishingFacebookGraphSessionGraphEndpointProbeMessageClass)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_ENDPOINT_PROBE_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_ENDPOINT_PROBE_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE)) -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_ENDPOINT_PROBE_MESSAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE, PublishingFacebookGraphSessionGraphEndpointProbeMessageClass)) - -typedef struct _PublishingFacebookGraphSessionGraphEndpointProbeMessage PublishingFacebookGraphSessionGraphEndpointProbeMessage; -typedef struct _PublishingFacebookGraphSessionGraphEndpointProbeMessageClass PublishingFacebookGraphSessionGraphEndpointProbeMessageClass; -typedef struct _PublishingFacebookGraphSessionGraphEndpointProbeMessagePrivate PublishingFacebookGraphSessionGraphEndpointProbeMessagePrivate; -typedef struct _PublishingFacebookGraphSessionGraphUploadMessagePrivate PublishingFacebookGraphSessionGraphUploadMessagePrivate; -#define _g_mapped_file_unref0(var) ((var == NULL) ? NULL : (var = (g_mapped_file_unref (var), NULL))) -#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL))) -#define __vala_SoupMultipart_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupMultipart_free (var), NULL))) -#define __vala_SoupBuffer_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupBuffer_free (var), NULL))) -typedef struct _PublishingFacebookGraphSessionGraphCreateAlbumMessagePrivate PublishingFacebookGraphSessionGraphCreateAlbumMessagePrivate; -typedef struct _PublishingFacebookParamSpecGraphSession PublishingFacebookParamSpecGraphSession; -enum { - PUBLISHING_FACEBOOK_GRAPH_SESSION_AUTHENTICATED_SIGNAL, - PUBLISHING_FACEBOOK_GRAPH_SESSION_NUM_SIGNALS -}; -static guint publishing_facebook_graph_session_signals[PUBLISHING_FACEBOOK_GRAPH_SESSION_NUM_SIGNALS] = {0}; -typedef struct _PublishingFacebookUploaderPrivate PublishingFacebookUploaderPrivate; -typedef struct _PublishingFacebookParamSpecUploader PublishingFacebookParamSpecUploader; -enum { - PUBLISHING_FACEBOOK_UPLOADER_UPLOAD_COMPLETE_SIGNAL, - PUBLISHING_FACEBOOK_UPLOADER_UPLOAD_ERROR_SIGNAL, - PUBLISHING_FACEBOOK_UPLOADER_NUM_SIGNALS -}; -static guint publishing_facebook_uploader_signals[PUBLISHING_FACEBOOK_UPLOADER_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _FacebookService { - GObject parent_instance; - FacebookServicePrivate * priv; -}; - -struct _FacebookServiceClass { - GObjectClass parent_class; -}; - -struct _PublishingFacebookAlbum { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFacebookAlbumPrivate * priv; - gchar* name; - gchar* id; -}; - -struct _PublishingFacebookAlbumClass { - GTypeClass parent_class; - void (*finalize) (PublishingFacebookAlbum *self); -}; - -struct _PublishingFacebookParamSpecAlbum { - GParamSpec parent_instance; -}; - -typedef enum { - PUBLISHING_FACEBOOK_RESOLUTION_STANDARD, - PUBLISHING_FACEBOOK_RESOLUTION_HIGH -} PublishingFacebookResolution; - -struct _PublishingFacebookPublishingParameters { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFacebookPublishingParametersPrivate * priv; - gboolean strip_metadata; - PublishingFacebookAlbum** albums; - gint albums_length1; - gint _albums_size_; - gint target_album; - gchar* new_album_name; - gchar* privacy_object; - PublishingFacebookResolution resolution; -}; - -struct _PublishingFacebookPublishingParametersClass { - GTypeClass parent_class; - void (*finalize) (PublishingFacebookPublishingParameters *self); -}; - -struct _PublishingFacebookParamSpecPublishingParameters { - GParamSpec parent_instance; -}; - -struct _PublishingFacebookFacebookPublisher { - GObject parent_instance; - PublishingFacebookFacebookPublisherPrivate * priv; -}; - -struct _PublishingFacebookFacebookPublisherClass { - GObjectClass parent_class; -}; - -struct _PublishingFacebookFacebookPublisherPrivate { - PublishingFacebookPublishingParameters* publishing_params; - SpitPublishingPluginHost* host; - SpitPublishingProgressCallback progress_reporter; - gpointer progress_reporter_target; - GDestroyNotify progress_reporter_target_destroy_notify; - SpitPublishingService* service; - SpitPublishingAuthenticator* authenticator; - gboolean running; - PublishingFacebookGraphSession* graph_session; - PublishingFacebookPublishingOptionsPane* publishing_options_pane; - PublishingFacebookUploader* uploader; - gchar* uid; - gchar* username; -}; - -struct _PublishingFacebookPublishingOptionsPane { - GObject parent_instance; - PublishingFacebookPublishingOptionsPanePrivate * priv; -}; - -struct _PublishingFacebookPublishingOptionsPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingFacebookPublishingOptionsPanePrivate { - GtkBuilder* builder; - GtkBox* pane_widget; - GtkRadioButton* use_existing_radio; - GtkRadioButton* create_new_radio; - GtkComboBoxText* existing_albums_combo; - GtkComboBoxText* visibility_combo; - GtkEntry* new_album_entry; - GtkCheckButton* strip_metadata_check; - GtkButton* publish_button; - GtkButton* logout_button; - GtkLabel* how_to_label; - PublishingFacebookAlbum** albums; - gint albums_length1; - gint _albums_size_; - PublishingFacebookFacebookPublisher* publisher; - PublishingFacebookPublishingOptionsPanePrivacyDescription** privacy_descriptions; - gint privacy_descriptions_length1; - gint _privacy_descriptions_size_; - PublishingFacebookResolution* possible_resolutions; - gint possible_resolutions_length1; - gint _possible_resolutions_size_; - GtkComboBoxText* resolution_combo; - SpitPublishingPublisherMediaType media_type; -}; - -struct _PublishingFacebookPublishingOptionsPanePrivacyDescription { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFacebookPublishingOptionsPanePrivacyDescriptionPrivate * priv; - gchar* description; - gchar* privacy_setting; -}; - -struct _PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass { - GTypeClass parent_class; - void (*finalize) (PublishingFacebookPublishingOptionsPanePrivacyDescription *self); -}; - -struct _PublishingFacebookPublishingOptionsPaneParamSpecPrivacyDescription { - GParamSpec parent_instance; -}; - -typedef enum { - PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT, - PUBLISHING_FACEBOOK_ENDPOINT_VIDEO, - PUBLISHING_FACEBOOK_ENDPOINT_TEST_CONNECTION -} PublishingFacebookEndpoint; - -struct _PublishingFacebookGraphMessage { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFacebookGraphMessagePrivate * priv; -}; - -struct _PublishingFacebookGraphMessageClass { - GTypeClass parent_class; - void (*finalize) (PublishingFacebookGraphMessage *self); - gchar* (*get_uri) (PublishingFacebookGraphMessage* self); - gchar* (*get_response_body) (PublishingFacebookGraphMessage* self); -}; - -struct _PublishingFacebookParamSpecGraphMessage { - GParamSpec parent_instance; -}; - -struct _PublishingFacebookGraphSession { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFacebookGraphSessionPrivate * priv; -}; - -struct _PublishingFacebookGraphSessionClass { - GTypeClass parent_class; - void (*finalize) (PublishingFacebookGraphSession *self); -}; - -struct _PublishingFacebookGraphSessionPrivate { - SoupSession* soup_session; - gchar* access_token; - PublishingFacebookGraphMessage* current_message; -}; - -struct _PublishingFacebookGraphSessionGraphMessageImpl { - PublishingFacebookGraphMessage parent_instance; - PublishingFacebookGraphSessionGraphMessageImplPrivate * priv; - PublishingRESTSupportHttpMethod method; - gchar* uri; - gchar* access_token; - SoupMessage* soup_message; - PublishingFacebookGraphSession* host_session; - gint bytes_so_far; -}; - -struct _PublishingFacebookGraphSessionGraphMessageImplClass { - PublishingFacebookGraphMessageClass parent_class; - gboolean (*prepare_for_transmission) (PublishingFacebookGraphSessionGraphMessageImpl* self); -}; - -struct _PublishingFacebookGraphSessionGraphQueryMessage { - PublishingFacebookGraphSessionGraphMessageImpl parent_instance; - PublishingFacebookGraphSessionGraphQueryMessagePrivate * priv; -}; - -struct _PublishingFacebookGraphSessionGraphQueryMessageClass { - PublishingFacebookGraphSessionGraphMessageImplClass parent_class; -}; - -struct _PublishingFacebookGraphSessionGraphEndpointProbeMessage { - PublishingFacebookGraphSessionGraphMessageImpl parent_instance; - PublishingFacebookGraphSessionGraphEndpointProbeMessagePrivate * priv; -}; - -struct _PublishingFacebookGraphSessionGraphEndpointProbeMessageClass { - PublishingFacebookGraphSessionGraphMessageImplClass parent_class; -}; - -struct _PublishingFacebookGraphSessionGraphUploadMessage { - PublishingFacebookGraphSessionGraphMessageImpl parent_instance; - PublishingFacebookGraphSessionGraphUploadMessagePrivate * priv; -}; - -struct _PublishingFacebookGraphSessionGraphUploadMessageClass { - PublishingFacebookGraphSessionGraphMessageImplClass parent_class; -}; - -struct _PublishingFacebookGraphSessionGraphUploadMessagePrivate { - GMappedFile* mapped_file; - SpitPublishingPublishable* publishable; -}; - -struct _PublishingFacebookGraphSessionGraphCreateAlbumMessage { - PublishingFacebookGraphSessionGraphMessageImpl parent_instance; - PublishingFacebookGraphSessionGraphCreateAlbumMessagePrivate * priv; -}; - -struct _PublishingFacebookGraphSessionGraphCreateAlbumMessageClass { - PublishingFacebookGraphSessionGraphMessageImplClass parent_class; -}; - -struct _PublishingFacebookParamSpecGraphSession { - GParamSpec parent_instance; -}; - -struct _PublishingFacebookUploader { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFacebookUploaderPrivate * priv; -}; - -struct _PublishingFacebookUploaderClass { - GTypeClass parent_class; - void (*finalize) (PublishingFacebookUploader *self); -}; - -struct _PublishingFacebookUploaderPrivate { - gint current_file; - SpitPublishingPublishable** publishables; - gint publishables_length1; - gint _publishables_size_; - PublishingFacebookGraphSession* session; - PublishingFacebookPublishingParameters* publishing_params; - SpitPublishingProgressCallback status_updated; - gpointer status_updated_target; -}; - -struct _PublishingFacebookParamSpecUploader { - GParamSpec parent_instance; -}; - - -static gpointer facebook_service_parent_class = NULL; -static GdkPixbuf** facebook_service_icon_pixbuf_set; -static gint facebook_service_icon_pixbuf_set_length1; -static GdkPixbuf** facebook_service_icon_pixbuf_set = NULL; -static gint facebook_service_icon_pixbuf_set_length1 = 0; -static gint _facebook_service_icon_pixbuf_set_size_ = 0; -static SpitPluggableIface * facebook_service_spit_pluggable_parent_iface = NULL; -static SpitPublishingServiceIface * facebook_service_spit_publishing_service_parent_iface = NULL; -static gpointer publishing_facebook_album_parent_class = NULL; -static gpointer publishing_facebook_publishing_parameters_parent_class = NULL; -static gpointer publishing_facebook_facebook_publisher_parent_class = NULL; -static SpitPublishingPublisherIface * publishing_facebook_facebook_publisher_spit_publishing_publisher_parent_iface = NULL; -static gpointer publishing_facebook_publishing_options_pane_parent_class = NULL; -static gpointer publishing_facebook_publishing_options_pane_privacy_description_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_facebook_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_facebook_graph_message_parent_class = NULL; -static gpointer publishing_facebook_graph_session_parent_class = NULL; -static gpointer publishing_facebook_graph_session_graph_message_impl_parent_class = NULL; -static gpointer publishing_facebook_graph_session_graph_query_message_parent_class = NULL; -static gpointer publishing_facebook_graph_session_graph_endpoint_probe_message_parent_class = NULL; -static gpointer publishing_facebook_graph_session_graph_upload_message_parent_class = NULL; -static gpointer publishing_facebook_graph_session_graph_create_album_message_parent_class = NULL; -static gpointer publishing_facebook_uploader_parent_class = NULL; - -GType facebook_service_get_type (void) G_GNUC_CONST; -#define FACEBOOK_SERVICE_ICON_FILENAME "facebook.png" -FacebookService* facebook_service_new (GFile* resource_directory); -FacebookService* facebook_service_construct (GType object_type, - GFile* resource_directory); -static gint facebook_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -static const gchar* facebook_service_real_get_id (SpitPluggable* base); -static const gchar* facebook_service_real_get_pluggable_name (SpitPluggable* base); -static void facebook_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, - int length); -static void facebook_service_real_activation (SpitPluggable* base, - gboolean enabled); -static SpitPublishingPublisher* facebook_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host); -PublishingFacebookFacebookPublisher* publishing_facebook_facebook_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host); -PublishingFacebookFacebookPublisher* publishing_facebook_facebook_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host); -GType publishing_facebook_facebook_publisher_get_type (void) G_GNUC_CONST; -static SpitPublishingPublisherMediaType facebook_service_real_get_supported_media (SpitPublishingService* base); -static void facebook_service_finalize (GObject * obj); -#define PUBLISHING_FACEBOOK_SERVICE_NAME "facebook" -#define PUBLISHING_FACEBOOK_USER_VISIBLE_NAME "Facebook" -#define PUBLISHING_FACEBOOK_DEFAULT_ALBUM_NAME _ ("Shotwell Connect") -#define PUBLISHING_FACEBOOK_EXPIRED_SESSION_STATUS_CODE 400 -gpointer publishing_facebook_album_ref (gpointer instance); -void publishing_facebook_album_unref (gpointer instance); -GParamSpec* publishing_facebook_param_spec_album (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_facebook_value_set_album (GValue* value, - gpointer v_object); -void publishing_facebook_value_take_album (GValue* value, - gpointer v_object); -gpointer publishing_facebook_value_get_album (const GValue* value); -GType publishing_facebook_album_get_type (void) G_GNUC_CONST; -PublishingFacebookAlbum* publishing_facebook_album_new (const gchar* name, - const gchar* id); -PublishingFacebookAlbum* publishing_facebook_album_construct (GType object_type, - const gchar* name, - const gchar* id); -static void publishing_facebook_album_finalize (PublishingFacebookAlbum * obj); -GType publishing_facebook_resolution_get_type (void) G_GNUC_CONST; -gchar* publishing_facebook_resolution_get_name (PublishingFacebookResolution self); -const gchar* publishing_facebook_resolution_to_string (PublishingFacebookResolution self); -gint publishing_facebook_resolution_get_pixels (PublishingFacebookResolution self); -gpointer publishing_facebook_publishing_parameters_ref (gpointer instance); -void publishing_facebook_publishing_parameters_unref (gpointer instance); -GParamSpec* publishing_facebook_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_facebook_value_set_publishing_parameters (GValue* value, - gpointer v_object); -void publishing_facebook_value_take_publishing_parameters (GValue* value, - gpointer v_object); -gpointer publishing_facebook_value_get_publishing_parameters (const GValue* value); -GType publishing_facebook_publishing_parameters_get_type (void) G_GNUC_CONST; -#define PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM -1 -PublishingFacebookPublishingParameters* publishing_facebook_publishing_parameters_new (void); -PublishingFacebookPublishingParameters* publishing_facebook_publishing_parameters_construct (GType object_type); -void publishing_facebook_publishing_parameters_add_album (PublishingFacebookPublishingParameters* self, - const gchar* name, - const gchar* id); -static void _vala_array_add7 (PublishingFacebookAlbum** * array, - int* length, - int* size, - PublishingFacebookAlbum* value); -void publishing_facebook_publishing_parameters_set_target_album_by_name (PublishingFacebookPublishingParameters* self, - const gchar* name); -gchar* publishing_facebook_publishing_parameters_get_target_album_name (PublishingFacebookPublishingParameters* self); -gchar* publishing_facebook_publishing_parameters_get_target_album_id (PublishingFacebookPublishingParameters* self); -static void publishing_facebook_publishing_parameters_finalize (PublishingFacebookPublishingParameters * obj); -gpointer publishing_facebook_graph_session_ref (gpointer instance); -void publishing_facebook_graph_session_unref (gpointer instance); -GParamSpec* publishing_facebook_param_spec_graph_session (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_facebook_value_set_graph_session (GValue* value, - gpointer v_object); -void publishing_facebook_value_take_graph_session (GValue* value, - gpointer v_object); -gpointer publishing_facebook_value_get_graph_session (const GValue* value); -GType publishing_facebook_graph_session_get_type (void) G_GNUC_CONST; -GType publishing_facebook_publishing_options_pane_get_type (void) G_GNUC_CONST; -gpointer publishing_facebook_uploader_ref (gpointer instance); -void publishing_facebook_uploader_unref (gpointer instance); -GParamSpec* publishing_facebook_param_spec_uploader (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_facebook_value_set_uploader (GValue* value, - gpointer v_object); -void publishing_facebook_value_take_uploader (GValue* value, - gpointer v_object); -gpointer publishing_facebook_value_get_uploader (const GValue* value); -GType publishing_facebook_uploader_get_type (void) G_GNUC_CONST; -#define PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisherPrivate)) -PublishingFacebookGraphSession* publishing_facebook_graph_session_new (void); -PublishingFacebookGraphSession* publishing_facebook_graph_session_construct (GType object_type); -static void publishing_facebook_facebook_publisher_on_session_authenticated (PublishingFacebookFacebookPublisher* self); -static void _publishing_facebook_facebook_publisher_on_session_authenticated_publishing_facebook_graph_session_authenticated (PublishingFacebookGraphSession* _sender, - gpointer self); -static gboolean publishing_facebook_facebook_publisher_get_persistent_strip_metadata (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_set_persistent_strip_metadata (PublishingFacebookFacebookPublisher* self, - gboolean strip_metadata); -gint publishing_facebook_facebook_publisher_get_persistent_default_size (PublishingFacebookFacebookPublisher* self); -void publishing_facebook_facebook_publisher_set_persistent_default_size (PublishingFacebookFacebookPublisher* self, - gint size); -static void publishing_facebook_facebook_publisher_do_fetch_user_info (PublishingFacebookFacebookPublisher* self); -gpointer publishing_facebook_graph_message_ref (gpointer instance); -void publishing_facebook_graph_message_unref (gpointer instance); -GParamSpec* publishing_facebook_param_spec_graph_message (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_facebook_value_set_graph_message (GValue* value, - gpointer v_object); -void publishing_facebook_value_take_graph_message (GValue* value, - gpointer v_object); -gpointer publishing_facebook_value_get_graph_message (const GValue* value); -GType publishing_facebook_graph_message_get_type (void) G_GNUC_CONST; -PublishingFacebookGraphMessage* publishing_facebook_graph_session_new_query (PublishingFacebookGraphSession* self, - const gchar* resource_path); -static void publishing_facebook_facebook_publisher_on_fetch_user_info_completed (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message); -static void _publishing_facebook_facebook_publisher_on_fetch_user_info_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, - gpointer self); -static void publishing_facebook_facebook_publisher_on_fetch_user_info_error (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message, - GError* _error_); -static void _publishing_facebook_facebook_publisher_on_fetch_user_info_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, - GError* err, - gpointer self); -void publishing_facebook_graph_session_send_message (PublishingFacebookGraphSession* self, - PublishingFacebookGraphMessage* message); -static void publishing_facebook_facebook_publisher_do_fetch_album_descriptions (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_on_fetch_albums_completed (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message); -static void _publishing_facebook_facebook_publisher_on_fetch_albums_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, - gpointer self); -static void publishing_facebook_facebook_publisher_on_fetch_albums_error (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message, - GError* err); -static void _publishing_facebook_facebook_publisher_on_fetch_albums_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, - GError* err, - gpointer self); -static void publishing_facebook_facebook_publisher_do_extract_user_info_from_json (PublishingFacebookFacebookPublisher* self, - const gchar* json); -static JsonNode* _vala_JsonNode_copy (JsonNode* self); -static void _vala_JsonNode_free (JsonNode* self); -static void publishing_facebook_facebook_publisher_on_user_info_extracted (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_do_extract_albums_from_json (PublishingFacebookFacebookPublisher* self, - const gchar* json); -static void publishing_facebook_facebook_publisher_on_albums_extracted (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_do_create_new_album (PublishingFacebookFacebookPublisher* self); -PublishingFacebookGraphMessage* publishing_facebook_graph_session_new_create_album (PublishingFacebookGraphSession* self, - const gchar* album_name, - const gchar* privacy); -static void publishing_facebook_facebook_publisher_on_create_album_completed (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message); -static void _publishing_facebook_facebook_publisher_on_create_album_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, - gpointer self); -static void publishing_facebook_facebook_publisher_on_create_album_error (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message, - GError* err); -static void _publishing_facebook_facebook_publisher_on_create_album_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, - GError* err, - gpointer self); -static void publishing_facebook_facebook_publisher_do_show_publishing_options_pane (PublishingFacebookFacebookPublisher* self); -PublishingFacebookPublishingOptionsPane* publishing_facebook_publishing_options_pane_new (const gchar* username, - PublishingFacebookAlbum** albums, - int albums_length1, - SpitPublishingPublisherMediaType media_type, - PublishingFacebookFacebookPublisher* publisher, - GtkBuilder* builder, - gboolean strip_metadata, - gboolean can_logout); -PublishingFacebookPublishingOptionsPane* publishing_facebook_publishing_options_pane_construct (GType object_type, - const gchar* username, - PublishingFacebookAlbum** albums, - int albums_length1, - SpitPublishingPublisherMediaType media_type, - PublishingFacebookFacebookPublisher* publisher, - GtkBuilder* builder, - gboolean strip_metadata, - gboolean can_logout); -static void publishing_facebook_facebook_publisher_on_publishing_options_pane_logout (PublishingFacebookFacebookPublisher* self); -static void _publishing_facebook_facebook_publisher_on_publishing_options_pane_logout_publishing_facebook_publishing_options_pane_logout (PublishingFacebookPublishingOptionsPane* _sender, - gpointer self); -static void publishing_facebook_facebook_publisher_on_publishing_options_pane_publish (PublishingFacebookFacebookPublisher* self, - const gchar* target_album, - const gchar* privacy_setting, - PublishingFacebookResolution resolution, - gboolean strip_metadata); -static void _publishing_facebook_facebook_publisher_on_publishing_options_pane_publish_publishing_facebook_publishing_options_pane_publish (PublishingFacebookPublishingOptionsPane* _sender, - const gchar* target_album, - const gchar* privacy_setting, - PublishingFacebookResolution target_resolution, - gboolean strip_metadata, - gpointer self); -static void publishing_facebook_facebook_publisher_do_logout (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_do_add_new_local_album_from_json (PublishingFacebookFacebookPublisher* self, - const gchar* album_name, - const gchar* json); -static void publishing_facebook_facebook_publisher_do_upload (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_on_authenticator_succeeded (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_do_authenticate_session (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_on_authenticator_failed (PublishingFacebookFacebookPublisher* self); -void publishing_facebook_graph_session_authenticate (PublishingFacebookGraphSession* self, - const gchar* access_token); -PublishingFacebookUploader* publishing_facebook_uploader_new (PublishingFacebookGraphSession* session, - PublishingFacebookPublishingParameters* publishing_params, - SpitPublishingPublishable** publishables, - int publishables_length1); -PublishingFacebookUploader* publishing_facebook_uploader_construct (GType object_type, - PublishingFacebookGraphSession* session, - PublishingFacebookPublishingParameters* publishing_params, - SpitPublishingPublishable** publishables, - int publishables_length1); -static void publishing_facebook_facebook_publisher_on_upload_complete (PublishingFacebookFacebookPublisher* self, - PublishingFacebookUploader* uploader, - gint num_published); -static void _publishing_facebook_facebook_publisher_on_upload_complete_publishing_facebook_uploader_upload_complete (PublishingFacebookUploader* _sender, - gint num_photos_published, - gpointer self); -static void publishing_facebook_facebook_publisher_on_upload_error (PublishingFacebookFacebookPublisher* self, - PublishingFacebookUploader* uploader, - GError* err); -static void _publishing_facebook_facebook_publisher_on_upload_error_publishing_facebook_uploader_upload_error (PublishingFacebookUploader* _sender, - GError* err, - gpointer self); -void publishing_facebook_uploader_upload (PublishingFacebookUploader* self, - SpitPublishingProgressCallback status_updated, - void* status_updated_target); -static void publishing_facebook_facebook_publisher_on_upload_status_updated (PublishingFacebookFacebookPublisher* self, - gint file_number, - gdouble completed_fraction); -static void _publishing_facebook_facebook_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -static void publishing_facebook_facebook_publisher_do_show_success_pane (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_on_generic_error (PublishingFacebookFacebookPublisher* self, - GError* _error_); -gboolean publishing_facebook_graph_session_is_authenticated (PublishingFacebookGraphSession* self); -gchar* publishing_facebook_graph_message_get_response_body (PublishingFacebookGraphMessage* self); -static SpitPublishingService* publishing_facebook_facebook_publisher_real_get_service (SpitPublishingPublisher* base); -gchar* publishing_facebook_facebook_publisher_get_service_name (PublishingFacebookFacebookPublisher* self); -gchar* publishing_facebook_facebook_publisher_get_user_visible_name (PublishingFacebookFacebookPublisher* self); -static void publishing_facebook_facebook_publisher_real_start (SpitPublishingPublisher* base); -static void _publishing_facebook_facebook_publisher_on_authenticator_succeeded_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, - gpointer self); -static void _publishing_facebook_facebook_publisher_on_authenticator_failed_spit_publishing_authenticator_authentication_failed (SpitPublishingAuthenticator* _sender, - gpointer self); -static void publishing_facebook_facebook_publisher_real_stop (SpitPublishingPublisher* base); -void publishing_facebook_graph_session_stop_transactions (PublishingFacebookGraphSession* self); -static gboolean publishing_facebook_facebook_publisher_real_is_running (SpitPublishingPublisher* base); -static void publishing_facebook_facebook_publisher_finalize (GObject * obj); -static gpointer publishing_facebook_publishing_options_pane_privacy_description_ref (gpointer instance); -static void publishing_facebook_publishing_options_pane_privacy_description_unref (gpointer instance); -static GParamSpec* publishing_facebook_publishing_options_pane_param_spec_privacy_description (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void publishing_facebook_publishing_options_pane_value_set_privacy_description (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void publishing_facebook_publishing_options_pane_value_take_privacy_description (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer publishing_facebook_publishing_options_pane_value_get_privacy_description (const GValue* value) G_GNUC_UNUSED; -static GType publishing_facebook_publishing_options_pane_privacy_description_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPanePrivate)) -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_HEADER_LABEL_TEXT _ ("You are logged into Facebook as %s.\n\n") -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PHOTOS_LABEL_TEXT _ ("Where would you like to publish the selected photos?") -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_RESOLUTION_LABEL_TEXT _ ("Upload _size:") -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_CONTENT_GROUP_SPACING 32 -#define PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_STANDARD_ACTION_BUTTON_WIDTH 128 -static PublishingFacebookAlbum** _vala_array_dup2 (PublishingFacebookAlbum** self, - int length); -static PublishingFacebookPublishingOptionsPanePrivacyDescription** publishing_facebook_publishing_options_pane_create_privacy_descriptions (PublishingFacebookPublishingOptionsPane* self, - int* result_length1); -static PublishingFacebookResolution* publishing_facebook_publishing_options_pane_create_resolution_list (PublishingFacebookPublishingOptionsPane* self, - int* result_length1); -static void publishing_facebook_publishing_options_pane_on_create_new_toggled (PublishingFacebookPublishingOptionsPane* self); -static void _publishing_facebook_publishing_options_pane_on_create_new_toggled_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_facebook_publishing_options_pane_on_use_existing_toggled (PublishingFacebookPublishingOptionsPane* self); -static void _publishing_facebook_publishing_options_pane_on_use_existing_toggled_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_facebook_publishing_options_pane_setup_visibility_combo (PublishingFacebookPublishingOptionsPane* self); -static void publishing_facebook_publishing_options_pane_on_publish_button_clicked (PublishingFacebookPublishingOptionsPane* self); -static void _publishing_facebook_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_facebook_publishing_options_pane_on_logout_button_clicked (PublishingFacebookPublishingOptionsPane* self); -static void _publishing_facebook_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_facebook_publishing_options_pane_setup_resolution_combo (PublishingFacebookPublishingOptionsPane* self); -static void publishing_facebook_publishing_options_pane_on_size_changed (PublishingFacebookPublishingOptionsPane* self); -static void _publishing_facebook_publishing_options_pane_on_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static gboolean publishing_facebook_publishing_options_pane_publishing_photos (PublishingFacebookPublishingOptionsPane* self); -static PublishingFacebookPublishingOptionsPanePrivacyDescription* publishing_facebook_publishing_options_pane_privacy_description_new (const gchar* description, - const gchar* privacy_setting); -static PublishingFacebookPublishingOptionsPanePrivacyDescription* publishing_facebook_publishing_options_pane_privacy_description_construct (GType object_type, - const gchar* description, - const gchar* privacy_setting); -static void _vala_array_add8 (PublishingFacebookPublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingFacebookPublishingOptionsPanePrivacyDescription* value); -static void _vala_array_add9 (PublishingFacebookPublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingFacebookPublishingOptionsPanePrivacyDescription* value); -static void _vala_array_add10 (PublishingFacebookPublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingFacebookPublishingOptionsPanePrivacyDescription* value); -static void _vala_array_add11 (PublishingFacebookResolution* * array, - int* length, - int* size, - PublishingFacebookResolution value); -static void _vala_array_add12 (PublishingFacebookResolution* * array, - int* length, - int* size, - PublishingFacebookResolution value); -void publishing_facebook_publishing_options_pane_installed (PublishingFacebookPublishingOptionsPane* self); -static void publishing_facebook_publishing_options_pane_notify_logout (PublishingFacebookPublishingOptionsPane* self); -static void publishing_facebook_publishing_options_pane_notify_publish (PublishingFacebookPublishingOptionsPane* self, - const gchar* target_album, - const gchar* privacy_setting, - PublishingFacebookResolution target_resolution); -static GtkWidget* publishing_facebook_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_facebook_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_facebook_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void _publishing_facebook_publishing_options_pane_notify_logout_publishing_facebook_publishing_options_pane_logout (PublishingFacebookPublishingOptionsPane* _sender, - gpointer self); -static void _publishing_facebook_publishing_options_pane_notify_publish_publishing_facebook_publishing_options_pane_publish (PublishingFacebookPublishingOptionsPane* _sender, - const gchar* target_album, - const gchar* privacy_setting, - PublishingFacebookResolution target_resolution, - gboolean strip_metadata, - gpointer self); -static void publishing_facebook_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void g_cclosure_user_marshal_VOID__STRING_STRING_ENUM_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_facebook_publishing_options_pane_privacy_description_finalize (PublishingFacebookPublishingOptionsPanePrivacyDescription * obj); -static void publishing_facebook_publishing_options_pane_finalize (GObject * obj); -GType publishing_facebook_endpoint_get_type (void) G_GNUC_CONST; -gchar* publishing_facebook_endpoint_to_uri (PublishingFacebookEndpoint self); -gchar* publishing_facebook_graph_message_get_uri (PublishingFacebookGraphMessage* self); -static gchar* publishing_facebook_graph_message_real_get_uri (PublishingFacebookGraphMessage* self); -static gchar* publishing_facebook_graph_message_real_get_response_body (PublishingFacebookGraphMessage* self); -PublishingFacebookGraphMessage* publishing_facebook_graph_message_construct (GType object_type); -static void g_cclosure_user_marshal_VOID__INT_INT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_facebook_graph_message_finalize (PublishingFacebookGraphMessage * obj); -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, PublishingFacebookGraphSessionPrivate)) -static void publishing_facebook_graph_session_on_request_unqueued (PublishingFacebookGraphSession* self, - SoupMessage* msg); -static void _publishing_facebook_graph_session_on_request_unqueued_soup_session_request_unqueued (SoupSession* _sender, - SoupMessage* msg, - gpointer self); -static void publishing_facebook_graph_session_manage_message (PublishingFacebookGraphSession* self, - PublishingFacebookGraphMessage* msg); -static void publishing_facebook_graph_session_unmanage_message (PublishingFacebookGraphSession* self, - PublishingFacebookGraphMessage* msg); -static GType publishing_facebook_graph_session_graph_message_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static void publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data (PublishingFacebookGraphSessionGraphMessageImpl* self, - SoupBuffer* chunk); -static void _publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data (SoupMessage* _sender, - SoupBuffer* chunk, - gpointer self); -static PublishingFacebookGraphSessionGraphQueryMessage* publishing_facebook_graph_session_graph_query_message_new (PublishingFacebookGraphSession* host_session, - const gchar* relative_uri, - const gchar* access_token); -static PublishingFacebookGraphSessionGraphQueryMessage* publishing_facebook_graph_session_graph_query_message_construct (GType object_type, - PublishingFacebookGraphSession* host_session, - const gchar* relative_uri, - const gchar* access_token); -static GType publishing_facebook_graph_session_graph_query_message_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -PublishingFacebookGraphMessage* publishing_facebook_graph_session_new_upload (PublishingFacebookGraphSession* self, - const gchar* resource_path, - SpitPublishingPublishable* publishable, - gboolean suppress_titling, - const gchar* resource_privacy); -static PublishingFacebookGraphSessionGraphUploadMessage* publishing_facebook_graph_session_graph_upload_message_new (PublishingFacebookGraphSession* host_session, - const gchar* access_token, - const gchar* relative_uri, - SpitPublishingPublishable* publishable, - gboolean suppress_titling, - const gchar* resource_privacy); -static PublishingFacebookGraphSessionGraphUploadMessage* publishing_facebook_graph_session_graph_upload_message_construct (GType object_type, - PublishingFacebookGraphSession* host_session, - const gchar* access_token, - const gchar* relative_uri, - SpitPublishingPublishable* publishable, - gboolean suppress_titling, - const gchar* resource_privacy); -static GType publishing_facebook_graph_session_graph_upload_message_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static PublishingFacebookGraphSessionGraphCreateAlbumMessage* publishing_facebook_graph_session_graph_create_album_message_new (PublishingFacebookGraphSession* host_session, - const gchar* access_token, - const gchar* album_name, - const gchar* album_privacy); -static PublishingFacebookGraphSessionGraphCreateAlbumMessage* publishing_facebook_graph_session_graph_create_album_message_construct (GType object_type, - PublishingFacebookGraphSession* host_session, - const gchar* access_token, - const gchar* album_name, - const gchar* album_privacy); -static GType publishing_facebook_graph_session_graph_create_album_message_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static gboolean publishing_facebook_graph_session_graph_message_impl_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* self); -static PublishingFacebookGraphSessionGraphMessageImpl* publishing_facebook_graph_session_graph_message_impl_construct (GType object_type, - PublishingFacebookGraphSession* host_session, - PublishingRESTSupportHttpMethod method, - const gchar* relative_uri, - const gchar* access_token, - PublishingFacebookEndpoint endpoint); -static gboolean publishing_facebook_graph_session_graph_message_impl_real_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* self); -static gchar* publishing_facebook_graph_session_graph_message_impl_real_get_uri (PublishingFacebookGraphMessage* base); -static gchar* publishing_facebook_graph_session_graph_message_impl_real_get_response_body (PublishingFacebookGraphMessage* base); -static void publishing_facebook_graph_session_graph_message_impl_finalize (PublishingFacebookGraphMessage * obj); -static void _vala_SoupURI_free (SoupURI* self); -static GType publishing_facebook_graph_session_graph_endpoint_probe_message_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static PublishingFacebookGraphSessionGraphEndpointProbeMessage* publishing_facebook_graph_session_graph_endpoint_probe_message_new (PublishingFacebookGraphSession* host_session); -static PublishingFacebookGraphSessionGraphEndpointProbeMessage* publishing_facebook_graph_session_graph_endpoint_probe_message_construct (GType object_type, - PublishingFacebookGraphSession* host_session); -#define PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_UPLOAD_MESSAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessagePrivate)) -static void _vala_SoupMultipart_free (SoupMultipart* self); -static void _vala_SoupBuffer_free (SoupBuffer* self); -static gboolean publishing_facebook_graph_session_graph_upload_message_real_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* base); -static void publishing_facebook_graph_session_graph_upload_message_finalize (PublishingFacebookGraphMessage * obj); -static void publishing_facebook_graph_session_finalize (PublishingFacebookGraphSession * obj); -#define PUBLISHING_FACEBOOK_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FACEBOOK_TYPE_UPLOADER, PublishingFacebookUploaderPrivate)) -static SpitPublishingPublishable** _vala_array_dup3 (SpitPublishingPublishable** self, - int length); -static void publishing_facebook_uploader_send_current_file (PublishingFacebookUploader* self); -static void publishing_facebook_uploader_on_chunk_transmitted (PublishingFacebookUploader* self, - gint bytes_written_so_far, - gint total_bytes); -static void _publishing_facebook_uploader_on_chunk_transmitted_publishing_facebook_graph_message_data_transmitted (PublishingFacebookGraphMessage* _sender, - gint bytes_sent_so_far, - gint total_bytes, - gpointer self); -static void publishing_facebook_uploader_on_message_completed (PublishingFacebookUploader* self, - PublishingFacebookGraphMessage* message); -static void _publishing_facebook_uploader_on_message_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, - gpointer self); -static void publishing_facebook_uploader_on_message_failed (PublishingFacebookUploader* self, - PublishingFacebookGraphMessage* message, - GError* _error_); -static void _publishing_facebook_uploader_on_message_failed_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, - GError* err, - gpointer self); -static void publishing_facebook_uploader_send_files (PublishingFacebookUploader* self); -static void publishing_facebook_uploader_finalize (PublishingFacebookUploader * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -FacebookService* -facebook_service_construct (GType object_type, - GFile* resource_directory) -{ - FacebookService * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (FacebookService*) g_object_new (object_type, NULL); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = facebook_service_icon_pixbuf_set; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = facebook_service_icon_pixbuf_set_length1; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp0_ == NULL) { -#line 1041 "FacebookPublishing.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" FACEBOOK_SERVICE_ICON_FILENAME, &_tmp1_); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - facebook_service_icon_pixbuf_set = (_vala_array_free (facebook_service_icon_pixbuf_set, facebook_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - facebook_service_icon_pixbuf_set = _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - facebook_service_icon_pixbuf_set_length1 = _tmp1_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _facebook_service_icon_pixbuf_set_size_ = facebook_service_icon_pixbuf_set_length1; -#line 1054 "FacebookPublishing.c" - } -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 1058 "FacebookPublishing.c" -} - - -FacebookService* -facebook_service_new (GFile* resource_directory) -{ -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return facebook_service_construct (TYPE_FACEBOOK_SERVICE, resource_directory); -#line 1067 "FacebookPublishing.c" -} - - -static gint -facebook_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - FacebookService * self; - gint result = 0; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1084 "FacebookPublishing.c" -} - - -static const gchar* -facebook_service_real_get_id (SpitPluggable* base) -{ - FacebookService * self; - const gchar* result = NULL; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = "org.yorba.shotwell.publishing.facebook"; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1099 "FacebookPublishing.c" -} - - -static const gchar* -facebook_service_real_get_pluggable_name (SpitPluggable* base) -{ - FacebookService * self; - const gchar* result = NULL; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = "Facebook"; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1114 "FacebookPublishing.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? g_object_ref (self) : NULL; -#line 1123 "FacebookPublishing.c" -} - - -static GdkPixbuf** -_vala_array_dup1 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - for (i = 0; i < length; i++) { -#line 1137 "FacebookPublishing.c" - GdkPixbuf* _tmp0_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result[i] = _tmp0_; -#line 1143 "FacebookPublishing.c" - } -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1147 "FacebookPublishing.c" -} - - -static void -facebook_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - FacebookService * self; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GdkPixbuf** _tmp7_; - gint _tmp7__length1; - GdkPixbuf** _tmp8_; - gint _tmp8__length1; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (info != NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup ("Lucas Beeler"); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 ((*info).authors); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).authors = _tmp0_; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = g_strdup (_ ("Copyright 2016 Software Freedom Conservancy Inc.")); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 ((*info).copyright); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).copyright = _tmp1_; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 ((*info).translators); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).translators = _tmp2_; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = g_strdup (_VERSION); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 ((*info).version); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).version = _tmp3_; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = g_strdup (RESOURCES_WEBSITE_NAME); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 ((*info).website_name); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).website_name = _tmp4_; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = g_strdup (RESOURCES_WEBSITE_URL); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 ((*info).website_url); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).website_url = _tmp5_; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).is_license_wordwrapped = FALSE; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = g_strdup (RESOURCES_LICENSE); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 ((*info).license); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).license = _tmp6_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = facebook_service_icon_pixbuf_set; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7__length1 = facebook_service_icon_pixbuf_set_length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup1 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8__length1 = _tmp7__length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).icons = _tmp8_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*info).icons_length1 = _tmp8__length1; -#line 1229 "FacebookPublishing.c" -} - - -static void -facebook_service_real_activation (SpitPluggable* base, - gboolean enabled) -{ - FacebookService * self; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService); -#line 1240 "FacebookPublishing.c" -} - - -static SpitPublishingPublisher* -facebook_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - FacebookService * self; - SpitPublishingPublisher* result = NULL; - PublishingFacebookFacebookPublisher* _tmp0_; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService); -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = publishing_facebook_facebook_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1261 "FacebookPublishing.c" -} - - -static SpitPublishingPublisherMediaType -facebook_service_real_get_supported_media (SpitPublishingService* base) -{ - FacebookService * self; - SpitPublishingPublisherMediaType result = 0; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FACEBOOK_SERVICE, FacebookService); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO; -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1276 "FacebookPublishing.c" -} - - -static void -facebook_service_class_init (FacebookServiceClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - facebook_service_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = facebook_service_finalize; -#line 1287 "FacebookPublishing.c" -} - - -static void -facebook_service_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - facebook_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) facebook_service_real_get_pluggable_interface; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) facebook_service_real_get_id; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) facebook_service_real_get_pluggable_name; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) facebook_service_real_get_info; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) facebook_service_real_activation; -#line 1306 "FacebookPublishing.c" -} - - -static void -facebook_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - facebook_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) facebook_service_real_create_publisher; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) facebook_service_real_get_supported_media; -#line 1319 "FacebookPublishing.c" -} - - -static void -facebook_service_instance_init (FacebookService * self) -{ -} - - -static void -facebook_service_finalize (GObject * obj) -{ - FacebookService * self; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FACEBOOK_SERVICE, FacebookService); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_OBJECT_CLASS (facebook_service_parent_class)->finalize (obj); -#line 1337 "FacebookPublishing.c" -} - - -GType -facebook_service_get_type (void) -{ - static volatile gsize facebook_service_type_id__volatile = 0; - if (g_once_init_enter (&facebook_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FacebookServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) facebook_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FacebookService), 0, (GInstanceInitFunc) facebook_service_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) facebook_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) facebook_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType facebook_service_type_id; - facebook_service_type_id = g_type_register_static (G_TYPE_OBJECT, "FacebookService", &g_define_type_info, 0); - g_type_add_interface_static (facebook_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (facebook_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info); - g_once_init_leave (&facebook_service_type_id__volatile, facebook_service_type_id); - } - return facebook_service_type_id__volatile; -} - - -PublishingFacebookAlbum* -publishing_facebook_album_construct (GType object_type, - const gchar* name, - const gchar* id) -{ - PublishingFacebookAlbum* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (id != NULL, NULL); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookAlbum*) g_type_create_instance (object_type); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup (name); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->name); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->name = _tmp0_; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = g_strdup (id); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->id); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->id = _tmp1_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 1387 "FacebookPublishing.c" -} - - -PublishingFacebookAlbum* -publishing_facebook_album_new (const gchar* name, - const gchar* id) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_album_construct (PUBLISHING_FACEBOOK_TYPE_ALBUM, name, id); -#line 1397 "FacebookPublishing.c" -} - - -static void -publishing_facebook_value_album_init (GValue* value) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1406 "FacebookPublishing.c" -} - - -static void -publishing_facebook_value_album_free_value (GValue* value) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (value->data[0].v_pointer) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_album_unref (value->data[0].v_pointer); -#line 1417 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_value_album_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = publishing_facebook_album_ref (src_value->data[0].v_pointer); -#line 1430 "FacebookPublishing.c" - } else { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 1434 "FacebookPublishing.c" - } -} - - -static gpointer -publishing_facebook_value_album_peek_pointer (const GValue* value) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 1444 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_album_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (collect_values[0].v_pointer) { -#line 1456 "FacebookPublishing.c" - PublishingFacebookAlbum * object; - object = collect_values[0].v_pointer; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1463 "FacebookPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1467 "FacebookPublishing.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = publishing_facebook_album_ref (object); -#line 1471 "FacebookPublishing.c" - } else { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1475 "FacebookPublishing.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 1479 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_album_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFacebookAlbum ** object_p; - object_p = collect_values[0].v_pointer; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!object_p) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1495 "FacebookPublishing.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!value->data[0].v_pointer) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = NULL; -#line 1501 "FacebookPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 1505 "FacebookPublishing.c" - } else { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = publishing_facebook_album_ref (value->data[0].v_pointer); -#line 1509 "FacebookPublishing.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 1513 "FacebookPublishing.c" -} - - -GParamSpec* -publishing_facebook_param_spec_album (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFacebookParamSpecAlbum* spec; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_TYPE_ALBUM), NULL); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return G_PARAM_SPEC (spec); -#line 1533 "FacebookPublishing.c" -} - - -gpointer -publishing_facebook_value_get_album (const GValue* value) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_ALBUM), NULL); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 1544 "FacebookPublishing.c" -} - - -void -publishing_facebook_value_set_album (GValue* value, - gpointer v_object) -{ - PublishingFacebookAlbum * old; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_ALBUM)); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_ALBUM)); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_album_ref (value->data[0].v_pointer); -#line 1567 "FacebookPublishing.c" - } else { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1571 "FacebookPublishing.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_album_unref (old); -#line 1577 "FacebookPublishing.c" - } -} - - -void -publishing_facebook_value_take_album (GValue* value, - gpointer v_object) -{ - PublishingFacebookAlbum * old; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_ALBUM)); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_ALBUM)); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 1599 "FacebookPublishing.c" - } else { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1603 "FacebookPublishing.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_album_unref (old); -#line 1609 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_album_class_init (PublishingFacebookAlbumClass * klass) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_album_parent_class = g_type_class_peek_parent (klass); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookAlbumClass *) klass)->finalize = publishing_facebook_album_finalize; -#line 1621 "FacebookPublishing.c" -} - - -static void -publishing_facebook_album_instance_init (PublishingFacebookAlbum * self) -{ -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->ref_count = 1; -#line 1630 "FacebookPublishing.c" -} - - -static void -publishing_facebook_album_finalize (PublishingFacebookAlbum * obj) -{ - PublishingFacebookAlbum * self; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_ALBUM, PublishingFacebookAlbum); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_destroy (self); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->name); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->id); -#line 1646 "FacebookPublishing.c" -} - - -GType -publishing_facebook_album_get_type (void) -{ - static volatile gsize publishing_facebook_album_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_album_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_facebook_value_album_init, publishing_facebook_value_album_free_value, publishing_facebook_value_album_copy_value, publishing_facebook_value_album_peek_pointer, "p", publishing_facebook_value_album_collect_value, "p", publishing_facebook_value_album_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookAlbumClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_album_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookAlbum), 0, (GInstanceInitFunc) publishing_facebook_album_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_facebook_album_type_id; - publishing_facebook_album_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookAlbum", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_facebook_album_type_id__volatile, publishing_facebook_album_type_id); - } - return publishing_facebook_album_type_id__volatile; -} - - -gpointer -publishing_facebook_album_ref (gpointer instance) -{ - PublishingFacebookAlbum * self; - self = instance; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return instance; -#line 1675 "FacebookPublishing.c" -} - - -void -publishing_facebook_album_unref (gpointer instance) -{ - PublishingFacebookAlbum * self; - self = instance; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - PUBLISHING_FACEBOOK_ALBUM_GET_CLASS (self)->finalize (self); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1690 "FacebookPublishing.c" - } -} - - -gchar* -publishing_facebook_resolution_get_name (PublishingFacebookResolution self) -{ - gchar* result = NULL; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - switch (self) { -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case PUBLISHING_FACEBOOK_RESOLUTION_STANDARD: -#line 1703 "FacebookPublishing.c" - { - gchar* _tmp0_; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup (_ ("Standard (720 pixels)")); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp0_; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1712 "FacebookPublishing.c" - } -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case PUBLISHING_FACEBOOK_RESOLUTION_HIGH: -#line 1716 "FacebookPublishing.c" - { - gchar* _tmp1_; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = g_strdup (_ ("Large (2048 pixels)")); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp1_; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1725 "FacebookPublishing.c" - } - default: - { - GEnumValue* _tmp2_; -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = g_enum_get_value (g_type_class_ref (PUBLISHING_FACEBOOK_TYPE_RESOLUTION), self); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_error ("FacebookPublishing.vala:87: Unknown resolution %s", (_tmp2_ != NULL) ? _tmp2_->value_name : NULL); -#line 1734 "FacebookPublishing.c" - } - } -} - - -gint -publishing_facebook_resolution_get_pixels (PublishingFacebookResolution self) -{ - gint result = 0; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - switch (self) { -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case PUBLISHING_FACEBOOK_RESOLUTION_STANDARD: -#line 1748 "FacebookPublishing.c" - { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = 720; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1754 "FacebookPublishing.c" - } -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case PUBLISHING_FACEBOOK_RESOLUTION_HIGH: -#line 1758 "FacebookPublishing.c" - { -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = 2048; -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 1764 "FacebookPublishing.c" - } - default: - { - GEnumValue* _tmp0_; -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_enum_get_value (g_type_class_ref (PUBLISHING_FACEBOOK_TYPE_RESOLUTION), self); -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_error ("FacebookPublishing.vala:100: Unknown resolution %s", (_tmp0_ != NULL) ? _tmp0_->value_name : NULL); -#line 1773 "FacebookPublishing.c" - } - } -} - - -GType -publishing_facebook_resolution_get_type (void) -{ - static volatile gsize publishing_facebook_resolution_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_resolution_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_FACEBOOK_RESOLUTION_STANDARD, "PUBLISHING_FACEBOOK_RESOLUTION_STANDARD", "standard"}, {PUBLISHING_FACEBOOK_RESOLUTION_HIGH, "PUBLISHING_FACEBOOK_RESOLUTION_HIGH", "high"}, {0, NULL, NULL}}; - GType publishing_facebook_resolution_type_id; - publishing_facebook_resolution_type_id = g_enum_register_static ("PublishingFacebookResolution", values); - g_once_init_leave (&publishing_facebook_resolution_type_id__volatile, publishing_facebook_resolution_type_id); - } - return publishing_facebook_resolution_type_id__volatile; -} - - -PublishingFacebookPublishingParameters* -publishing_facebook_publishing_parameters_construct (GType object_type) -{ - PublishingFacebookPublishingParameters* self = NULL; -#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookPublishingParameters*) g_type_create_instance (object_type); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->albums = (_vala_array_free (self->albums, self->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->albums = NULL; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->albums_length1 = 0; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->_albums_size_ = self->albums_length1; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->privacy_object); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->privacy_object = NULL; -#line 122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->target_album = PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->new_album_name); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->new_album_name = NULL; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->strip_metadata = FALSE; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->resolution = PUBLISHING_FACEBOOK_RESOLUTION_HIGH; -#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 1823 "FacebookPublishing.c" -} - - -PublishingFacebookPublishingParameters* -publishing_facebook_publishing_parameters_new (void) -{ -#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_publishing_parameters_construct (PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS); -#line 1832 "FacebookPublishing.c" -} - - -static gpointer -_publishing_facebook_album_ref0 (gpointer self) -{ -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? publishing_facebook_album_ref (self) : NULL; -#line 1841 "FacebookPublishing.c" -} - - -static void -_vala_array_add7 (PublishingFacebookAlbum** * array, - int* length, - int* size, - PublishingFacebookAlbum* value) -{ -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if ((*length) == (*size)) { -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *array = g_renew (PublishingFacebookAlbum*, *array, (*size) + 1); -#line 1857 "FacebookPublishing.c" - } -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[(*length)++] = value; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[*length] = NULL; -#line 1863 "FacebookPublishing.c" -} - - -void -publishing_facebook_publishing_parameters_add_album (PublishingFacebookPublishingParameters* self, - const gchar* name, - const gchar* id) -{ - PublishingFacebookAlbum** _tmp0_; - gint _tmp0__length1; - PublishingFacebookAlbum* new_album = NULL; - PublishingFacebookAlbum* _tmp2_; - PublishingFacebookAlbum** _tmp3_; - gint _tmp3__length1; - PublishingFacebookAlbum* _tmp4_; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS (self)); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (name != NULL); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (id != NULL); -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->albums; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = self->albums_length1; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp0_ == NULL) { -#line 1891 "FacebookPublishing.c" - PublishingFacebookAlbum** _tmp1_; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = g_new0 (PublishingFacebookAlbum*, 0 + 1); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->albums = (_vala_array_free (self->albums, self->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->albums = _tmp1_; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->albums_length1 = 0; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->_albums_size_ = self->albums_length1; -#line 1903 "FacebookPublishing.c" - } -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = publishing_facebook_album_new (name, id); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - new_album = _tmp2_; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->albums; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3__length1 = self->albums_length1; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _publishing_facebook_album_ref0 (new_album); -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_array_add7 (&self->albums, &self->albums_length1, &self->_albums_size_, _tmp4_); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_album_unref0 (new_album); -#line 1919 "FacebookPublishing.c" -} - - -void -publishing_facebook_publishing_parameters_set_target_album_by_name (PublishingFacebookPublishingParameters* self, - const gchar* name) -{ -#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS (self)); -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (name == NULL) { -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->target_album = PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM; -#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 1935 "FacebookPublishing.c" - } - { - gint i = 0; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - i = 0; -#line 1941 "FacebookPublishing.c" - { - gboolean _tmp0_ = FALSE; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = TRUE; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - while (TRUE) { -#line 1948 "FacebookPublishing.c" - gint _tmp2_; - PublishingFacebookAlbum** _tmp3_; - gint _tmp3__length1; - PublishingFacebookAlbum** _tmp4_; - gint _tmp4__length1; - gint _tmp5_; - PublishingFacebookAlbum* _tmp6_; - const gchar* _tmp7_; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!_tmp0_) { -#line 1959 "FacebookPublishing.c" - gint _tmp1_; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = i; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - i = _tmp1_ + 1; -#line 1965 "FacebookPublishing.c" - } -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = FALSE; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = i; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->albums; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3__length1 = self->albums_length1; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!(_tmp2_ < _tmp3__length1)) { -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - break; -#line 1979 "FacebookPublishing.c" - } -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->albums; -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4__length1 = self->albums_length1; -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = i; -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _tmp4_[_tmp5_]; -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _tmp6_->name; -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_strcmp0 (_tmp7_, name) == 0) { -#line 1993 "FacebookPublishing.c" - gint _tmp8_; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = i; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->target_album = _tmp8_; -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 2001 "FacebookPublishing.c" - } - } - } - } -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->target_album = PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM; -#line 2008 "FacebookPublishing.c" -} - - -gchar* -publishing_facebook_publishing_parameters_get_target_album_name (PublishingFacebookPublishingParameters* self) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - PublishingFacebookAlbum** _tmp1_; - gint _tmp1__length1; - PublishingFacebookAlbum** _tmp3_; - gint _tmp3__length1; - gint _tmp4_; - PublishingFacebookAlbum* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; -#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->albums; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1__length1 = self->albums_length1; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp1_ == NULL) { -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = TRUE; -#line 2035 "FacebookPublishing.c" - } else { - gint _tmp2_; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->target_album; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _tmp2_ == PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM; -#line 2042 "FacebookPublishing.c" - } -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp0_) { -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = NULL; -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 2050 "FacebookPublishing.c" - } -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->albums; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3__length1 = self->albums_length1; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->target_album; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp3_[_tmp4_]; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _tmp5_->name; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = g_strdup (_tmp6_); -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp7_; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 2068 "FacebookPublishing.c" -} - - -gchar* -publishing_facebook_publishing_parameters_get_target_album_id (PublishingFacebookPublishingParameters* self) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - PublishingFacebookAlbum** _tmp1_; - gint _tmp1__length1; - PublishingFacebookAlbum** _tmp3_; - gint _tmp3__length1; - gint _tmp4_; - PublishingFacebookAlbum* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; -#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->albums; -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1__length1 = self->albums_length1; -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp1_ == NULL) { -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = TRUE; -#line 2095 "FacebookPublishing.c" - } else { - gint _tmp2_; -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->target_album; -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _tmp2_ == PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM; -#line 2102 "FacebookPublishing.c" - } -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp0_) { -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = NULL; -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 2110 "FacebookPublishing.c" - } -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->albums; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3__length1 = self->albums_length1; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->target_album; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp3_[_tmp4_]; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _tmp5_->id; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = g_strdup (_tmp6_); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp7_; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 2128 "FacebookPublishing.c" -} - - -static void -publishing_facebook_value_publishing_parameters_init (GValue* value) -{ -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2137 "FacebookPublishing.c" -} - - -static void -publishing_facebook_value_publishing_parameters_free_value (GValue* value) -{ -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (value->data[0].v_pointer) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_unref (value->data[0].v_pointer); -#line 2148 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_value_publishing_parameters_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = publishing_facebook_publishing_parameters_ref (src_value->data[0].v_pointer); -#line 2161 "FacebookPublishing.c" - } else { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 2165 "FacebookPublishing.c" - } -} - - -static gpointer -publishing_facebook_value_publishing_parameters_peek_pointer (const GValue* value) -{ -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 2175 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_publishing_parameters_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (collect_values[0].v_pointer) { -#line 2187 "FacebookPublishing.c" - PublishingFacebookPublishingParameters * object; - object = collect_values[0].v_pointer; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2194 "FacebookPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2198 "FacebookPublishing.c" - } -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = publishing_facebook_publishing_parameters_ref (object); -#line 2202 "FacebookPublishing.c" - } else { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2206 "FacebookPublishing.c" - } -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 2210 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_publishing_parameters_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFacebookPublishingParameters ** object_p; - object_p = collect_values[0].v_pointer; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!object_p) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2226 "FacebookPublishing.c" - } -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!value->data[0].v_pointer) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = NULL; -#line 2232 "FacebookPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 2236 "FacebookPublishing.c" - } else { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = publishing_facebook_publishing_parameters_ref (value->data[0].v_pointer); -#line 2240 "FacebookPublishing.c" - } -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 2244 "FacebookPublishing.c" -} - - -GParamSpec* -publishing_facebook_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFacebookParamSpecPublishingParameters* spec; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return G_PARAM_SPEC (spec); -#line 2264 "FacebookPublishing.c" -} - - -gpointer -publishing_facebook_value_get_publishing_parameters (const GValue* value) -{ -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 2275 "FacebookPublishing.c" -} - - -void -publishing_facebook_value_set_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingFacebookPublishingParameters * old; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS)); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS)); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_ref (value->data[0].v_pointer); -#line 2298 "FacebookPublishing.c" - } else { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2302 "FacebookPublishing.c" - } -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_unref (old); -#line 2308 "FacebookPublishing.c" - } -} - - -void -publishing_facebook_value_take_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingFacebookPublishingParameters * old; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS)); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS)); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 2330 "FacebookPublishing.c" - } else { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2334 "FacebookPublishing.c" - } -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_unref (old); -#line 2340 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_publishing_parameters_class_init (PublishingFacebookPublishingParametersClass * klass) -{ -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_parent_class = g_type_class_peek_parent (klass); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookPublishingParametersClass *) klass)->finalize = publishing_facebook_publishing_parameters_finalize; -#line 2352 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_parameters_instance_init (PublishingFacebookPublishingParameters * self) -{ -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->ref_count = 1; -#line 2361 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_parameters_finalize (PublishingFacebookPublishingParameters * obj) -{ - PublishingFacebookPublishingParameters * self; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_PARAMETERS, PublishingFacebookPublishingParameters); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_destroy (self); -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->albums = (_vala_array_free (self->albums, self->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL); -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->new_album_name); -#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->privacy_object); -#line 2379 "FacebookPublishing.c" -} - - -GType -publishing_facebook_publishing_parameters_get_type (void) -{ - static volatile gsize publishing_facebook_publishing_parameters_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_publishing_parameters_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_facebook_value_publishing_parameters_init, publishing_facebook_value_publishing_parameters_free_value, publishing_facebook_value_publishing_parameters_copy_value, publishing_facebook_value_publishing_parameters_peek_pointer, "p", publishing_facebook_value_publishing_parameters_collect_value, "p", publishing_facebook_value_publishing_parameters_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookPublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookPublishingParameters), 0, (GInstanceInitFunc) publishing_facebook_publishing_parameters_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_facebook_publishing_parameters_type_id; - publishing_facebook_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookPublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_facebook_publishing_parameters_type_id__volatile, publishing_facebook_publishing_parameters_type_id); - } - return publishing_facebook_publishing_parameters_type_id__volatile; -} - - -gpointer -publishing_facebook_publishing_parameters_ref (gpointer instance) -{ - PublishingFacebookPublishingParameters * self; - self = instance; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return instance; -#line 2408 "FacebookPublishing.c" -} - - -void -publishing_facebook_publishing_parameters_unref (gpointer instance) -{ - PublishingFacebookPublishingParameters * self; - self = instance; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2423 "FacebookPublishing.c" - } -} - - -static void -_publishing_facebook_facebook_publisher_on_session_authenticated_publishing_facebook_graph_session_authenticated (PublishingFacebookGraphSession* _sender, - gpointer self) -{ -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_session_authenticated ((PublishingFacebookFacebookPublisher*) self); -#line 2434 "FacebookPublishing.c" -} - - -PublishingFacebookFacebookPublisher* -publishing_facebook_facebook_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingFacebookFacebookPublisher * self = NULL; - PublishingFacebookPublishingParameters* _tmp0_; - PublishingAuthenticatorFactory* _tmp1_; - PublishingAuthenticatorFactory* _tmp2_; - SpitPublishingAuthenticator* _tmp3_; - PublishingFacebookGraphSession* _tmp4_; - PublishingFacebookGraphSession* _tmp5_; -#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookFacebookPublisher*) g_object_new (object_type, NULL); -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:183: FacebookPublisher instantiated."); -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->service = service; -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->host = host; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = publishing_facebook_publishing_parameters_new (); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_publishing_parameters_unref0 (self->priv->publishing_params); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishing_params = _tmp0_; -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = publishing_authenticator_factory_get_instance (); -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_; -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = spit_publishing_authenticator_factory_create (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory), "facebook", host); -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->authenticator = _tmp3_; -#line 189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (_tmp2_); -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = publishing_facebook_graph_session_new (); -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_session_unref0 (self->priv->graph_session); -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->graph_session = _tmp4_; -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->graph_session; -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp5_, "authenticated", (GCallback) _publishing_facebook_facebook_publisher_on_session_authenticated_publishing_facebook_graph_session_authenticated, self, 0); -#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 2492 "FacebookPublishing.c" -} - - -PublishingFacebookFacebookPublisher* -publishing_facebook_facebook_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ -#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_facebook_publisher_construct (PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, service, host); -#line 2502 "FacebookPublishing.c" -} - - -static gboolean -publishing_facebook_facebook_publisher_get_persistent_strip_metadata (PublishingFacebookFacebookPublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self), FALSE); -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", FALSE); -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 2519 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_set_persistent_strip_metadata (PublishingFacebookFacebookPublisher* self, - gboolean strip_metadata) -{ - SpitPublishingPluginHost* _tmp0_; -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", strip_metadata); -#line 2534 "FacebookPublishing.c" -} - - -gint -publishing_facebook_facebook_publisher_get_persistent_default_size (PublishingFacebookFacebookPublisher* self) -{ - gint result = 0; - SpitPublishingPluginHost* _tmp0_; -#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self), 0); -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", 0); -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 2551 "FacebookPublishing.c" -} - - -void -publishing_facebook_facebook_publisher_set_persistent_default_size (PublishingFacebookFacebookPublisher* self, - gint size) -{ - SpitPublishingPluginHost* _tmp0_; -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", size); -#line 2566 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_fetch_user_info_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, - gpointer self) -{ -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_fetch_user_info_completed ((PublishingFacebookFacebookPublisher*) self, _sender); -#line 2576 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_fetch_user_info_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, - GError* err, - gpointer self) -{ -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_fetch_user_info_error ((PublishingFacebookFacebookPublisher*) self, _sender, err); -#line 2587 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_fetch_user_info (PublishingFacebookFacebookPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingFacebookGraphMessage* user_info_message = NULL; - PublishingFacebookGraphSession* _tmp2_; - PublishingFacebookGraphMessage* _tmp3_; - PublishingFacebookGraphSession* _tmp4_; -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:231: ACTION: fetching user information."); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->host; -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_); -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->graph_session; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = publishing_facebook_graph_session_new_query (_tmp2_, "/me"); -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - user_info_message = _tmp3_; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (user_info_message, "completed", (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_completed_publishing_facebook_graph_message_completed, self, 0); -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (user_info_message, "failed", (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_error_publishing_facebook_graph_message_failed, self, 0); -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->priv->graph_session; -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_send_message (_tmp4_, user_info_message); -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (user_info_message); -#line 2628 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_fetch_albums_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, - gpointer self) -{ -#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_fetch_albums_completed ((PublishingFacebookFacebookPublisher*) self, _sender); -#line 2638 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_fetch_albums_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, - GError* err, - gpointer self) -{ -#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_fetch_albums_error ((PublishingFacebookFacebookPublisher*) self, _sender, err); -#line 2649 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_fetch_album_descriptions (PublishingFacebookFacebookPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingFacebookGraphMessage* albums_message = NULL; - PublishingFacebookGraphSession* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - PublishingFacebookGraphMessage* _tmp6_; - PublishingFacebookGraphMessage* _tmp7_; - PublishingFacebookGraphSession* _tmp8_; -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:245: ACTION: fetching album list."); -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->host; -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->graph_session; -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->uid; -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = g_strdup_printf ("/%s/albums", _tmp3_); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp4_; -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = publishing_facebook_graph_session_new_query (_tmp2_, _tmp5_); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _tmp6_; -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp5_); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - albums_message = _tmp7_; -#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (albums_message, "completed", (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_completed_publishing_facebook_graph_message_completed, self, 0); -#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (albums_message, "failed", (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_error_publishing_facebook_graph_message_failed, self, 0); -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = self->priv->graph_session; -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_send_message (_tmp8_, albums_message); -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (albums_message); -#line 2704 "FacebookPublishing.c" -} - - -static JsonNode* -_vala_JsonNode_copy (JsonNode* self) -{ -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_boxed_copy (json_node_get_type (), self); -#line 2713 "FacebookPublishing.c" -} - - -static gpointer -__vala_JsonNode_copy0 (gpointer self) -{ -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? _vala_JsonNode_copy (self) : NULL; -#line 2722 "FacebookPublishing.c" -} - - -static gpointer -_json_object_ref0 (gpointer self) -{ -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? json_object_ref (self) : NULL; -#line 2731 "FacebookPublishing.c" -} - - -static void -_vala_JsonNode_free (JsonNode* self) -{ -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_boxed_free (json_node_get_type (), self); -#line 2740 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_extract_user_info_from_json (PublishingFacebookFacebookPublisher* self, - const gchar* json) -{ - GError * _inner_error_ = NULL; -#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (json != NULL); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:259: ACTION: extracting user info from JSON re" \ -"sponse."); -#line 2755 "FacebookPublishing.c" - { - JsonParser* parser = NULL; - JsonParser* _tmp0_; - JsonParser* _tmp1_; - JsonNode* root = NULL; - JsonParser* _tmp2_; - JsonNode* _tmp3_; - JsonNode* _tmp4_; - JsonObject* response_object = NULL; - JsonNode* _tmp5_; - JsonObject* _tmp6_; - JsonObject* _tmp7_; - JsonObject* _tmp8_; - const gchar* _tmp9_; - gchar* _tmp10_; - JsonObject* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = json_parser_new (); -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - parser = _tmp0_; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = parser; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - json_parser_load_from_data (_tmp1_, json, (gssize) -1, &_inner_error_); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (parser); -#line 2786 "FacebookPublishing.c" - goto __catch0_g_error; - } -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = parser; -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = json_parser_get_root (_tmp2_); -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = __vala_JsonNode_copy0 (_tmp3_); -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - root = _tmp4_; -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = root; -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = json_node_get_object (_tmp5_); -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _json_object_ref0 (_tmp6_); -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - response_object = _tmp7_; -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = response_object; -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = json_object_get_string_member (_tmp8_, "id"); -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = g_strdup (_tmp9_); -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->priv->uid); -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->uid = _tmp10_; -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = response_object; -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = json_object_get_string_member (_tmp11_, "name"); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = g_strdup (_tmp12_); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->priv->username); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->username = _tmp13_; -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _json_object_unref0 (response_object); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_JsonNode_free0 (root); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (parser); -#line 2831 "FacebookPublishing.c" - } - goto __finally0; - __catch0_g_error: - { - GError* _error_ = NULL; - SpitPublishingPluginHost* _tmp14_; - GError* _tmp15_; - const gchar* _tmp16_; - GError* _tmp17_; - GError* _tmp18_; -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _inner_error_; -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _inner_error_ = NULL; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = self->priv->host; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = _error_; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = _tmp15_->message; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, _tmp16_); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = _tmp17_; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp14_, _tmp18_); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_tmp18_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 2864 "FacebookPublishing.c" - } - __finally0: -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 2875 "FacebookPublishing.c" - } -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_user_info_extracted (self); -#line 2879 "FacebookPublishing.c" -} - - -static gpointer -_json_array_ref0 (gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? json_array_ref (self) : NULL; -#line 2888 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_extract_albums_from_json (PublishingFacebookFacebookPublisher* self, - const gchar* json) -{ - GError * _inner_error_ = NULL; -#line 277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (json != NULL); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:278: ACTION: extracting album info from JSON r" \ -"esponse."); -#line 2903 "FacebookPublishing.c" - { - JsonParser* parser = NULL; - JsonParser* _tmp0_; - JsonParser* _tmp1_; - JsonNode* root = NULL; - JsonParser* _tmp2_; - JsonNode* _tmp3_; - JsonNode* _tmp4_; - JsonObject* response_object = NULL; - JsonNode* _tmp5_; - JsonObject* _tmp6_; - JsonObject* _tmp7_; - JsonArray* album_list = NULL; - JsonObject* _tmp8_; - JsonArray* _tmp9_; - JsonArray* _tmp10_; - PublishingFacebookPublishingParameters* _tmp11_; - PublishingFacebookAlbum** _tmp12_; -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = json_parser_new (); -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - parser = _tmp0_; -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = parser; -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - json_parser_load_from_data (_tmp1_, json, (gssize) -1, &_inner_error_); -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (parser); -#line 2934 "FacebookPublishing.c" - goto __catch1_g_error; - } -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = parser; -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = json_parser_get_root (_tmp2_); -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = __vala_JsonNode_copy0 (_tmp3_); -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - root = _tmp4_; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = root; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = json_node_get_object (_tmp5_); -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _json_object_ref0 (_tmp6_); -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - response_object = _tmp7_; -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = response_object; -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = json_object_get_array_member (_tmp8_, "data"); -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = _json_array_ref0 (_tmp9_); -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_list = _tmp10_; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = self->priv->publishing_params; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = g_new0 (PublishingFacebookAlbum*, 0 + 1); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_->albums = (_vala_array_free (_tmp11_->albums, _tmp11_->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_->albums = _tmp12_; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_->albums_length1 = 0; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_->_albums_size_ = _tmp11_->albums_length1; -#line 2973 "FacebookPublishing.c" - { - gint i = 0; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - i = 0; -#line 2978 "FacebookPublishing.c" - { - gboolean _tmp13_ = FALSE; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = TRUE; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - while (TRUE) { -#line 2985 "FacebookPublishing.c" - gint _tmp15_; - JsonArray* _tmp16_; - JsonObject* current_album = NULL; - JsonArray* _tmp17_; - gint _tmp18_; - JsonObject* _tmp19_; - JsonObject* _tmp20_; - gchar* album_id = NULL; - JsonObject* _tmp21_; - const gchar* _tmp22_; - gchar* _tmp23_; - gchar* album_name = NULL; - JsonObject* _tmp24_; - const gchar* _tmp25_; - gchar* _tmp26_; - PublishingFacebookPublishingParameters* _tmp27_; - const gchar* _tmp28_; - const gchar* _tmp29_; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!_tmp13_) { -#line 3006 "FacebookPublishing.c" - gint _tmp14_; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = i; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - i = _tmp14_ + 1; -#line 3012 "FacebookPublishing.c" - } -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = FALSE; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = i; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = album_list; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!(((guint) _tmp15_) < json_array_get_length (_tmp16_))) { -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - break; -#line 3024 "FacebookPublishing.c" - } -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = album_list; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = i; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp19_ = json_array_get_object_element (_tmp17_, (guint) _tmp18_); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp20_ = _json_object_ref0 (_tmp19_); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - current_album = _tmp20_; -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp21_ = current_album; -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp22_ = json_object_get_string_member (_tmp21_, "id"); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp23_ = g_strdup (_tmp22_); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_id = _tmp23_; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp24_ = current_album; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp25_ = json_object_get_string_member (_tmp24_, "name"); -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp26_ = g_strdup (_tmp25_); -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_name = _tmp26_; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp27_ = self->priv->publishing_params; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp28_ = album_name; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp29_ = album_id; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_add_album (_tmp27_, _tmp28_, _tmp29_); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (album_name); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (album_id); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _json_object_unref0 (current_album); -#line 3066 "FacebookPublishing.c" - } - } - } -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _json_array_unref0 (album_list); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _json_object_unref0 (response_object); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_JsonNode_free0 (root); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (parser); -#line 3078 "FacebookPublishing.c" - } - goto __finally1; - __catch1_g_error: - { - GError* _error_ = NULL; - SpitPublishingPluginHost* _tmp30_; - GError* _tmp31_; - const gchar* _tmp32_; - GError* _tmp33_; - GError* _tmp34_; -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _inner_error_; -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _inner_error_ = NULL; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp30_ = self->priv->host; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp31_ = _error_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp32_ = _tmp31_->message; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp33_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, _tmp32_); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp34_ = _tmp33_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp30_, _tmp34_); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_tmp34_); -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3111 "FacebookPublishing.c" - } - __finally1: -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3122 "FacebookPublishing.c" - } -#line 307 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_albums_extracted (self); -#line 3126 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_create_album_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, - gpointer self) -{ -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_create_album_completed ((PublishingFacebookFacebookPublisher*) self, _sender); -#line 3136 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_create_album_error_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, - GError* err, - gpointer self) -{ -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_create_album_error ((PublishingFacebookFacebookPublisher*) self, _sender, err); -#line 3147 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_create_new_album (PublishingFacebookFacebookPublisher* self) -{ - PublishingFacebookPublishingParameters* _tmp0_; - const gchar* _tmp1_; - SpitPublishingPluginHost* _tmp2_; - SpitPublishingPluginHost* _tmp3_; - PublishingFacebookGraphMessage* create_album_message = NULL; - PublishingFacebookGraphSession* _tmp4_; - PublishingFacebookPublishingParameters* _tmp5_; - const gchar* _tmp6_; - PublishingFacebookPublishingParameters* _tmp7_; - const gchar* _tmp8_; - PublishingFacebookGraphMessage* _tmp9_; - PublishingFacebookGraphSession* _tmp10_; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->publishing_params; -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _tmp0_->new_album_name; -#line 311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:311: ACTION: creating a new album named \"%s\"" \ -".\n", _tmp1_); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->host; -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp2_, TRUE); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->host; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_install_static_message_pane (_tmp3_, _ ("Creating album…"), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->priv->graph_session; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->publishing_params; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _tmp5_->new_album_name; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = self->priv->publishing_params; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = _tmp7_->privacy_object; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = publishing_facebook_graph_session_new_create_album (_tmp4_, _tmp6_, _tmp8_); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - create_album_message = _tmp9_; -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (create_album_message, "completed", (GCallback) _publishing_facebook_facebook_publisher_on_create_album_completed_publishing_facebook_graph_message_completed, self, 0); -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (create_album_message, "failed", (GCallback) _publishing_facebook_facebook_publisher_on_create_album_error_publishing_facebook_graph_message_failed, self, 0); -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = self->priv->graph_session; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_send_message (_tmp10_, create_album_message); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (create_album_message); -#line 3206 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_publishing_options_pane_logout_publishing_facebook_publishing_options_pane_logout (PublishingFacebookPublishingOptionsPane* _sender, - gpointer self) -{ -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_publishing_options_pane_logout ((PublishingFacebookFacebookPublisher*) self); -#line 3216 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_publishing_options_pane_publish_publishing_facebook_publishing_options_pane_publish (PublishingFacebookPublishingOptionsPane* _sender, - const gchar* target_album, - const gchar* privacy_setting, - PublishingFacebookResolution target_resolution, - gboolean strip_metadata, - gpointer self) -{ -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_publishing_options_pane_publish ((PublishingFacebookFacebookPublisher*) self, target_album, privacy_setting, target_resolution, strip_metadata); -#line 3230 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_show_publishing_options_pane (PublishingFacebookFacebookPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - GtkBuilder* builder = NULL; - GtkBuilder* _tmp1_; - const gchar* _tmp8_; - PublishingFacebookPublishingParameters* _tmp9_; - PublishingFacebookAlbum** _tmp10_; - gint _tmp10__length1; - SpitPublishingPluginHost* _tmp11_; - GtkBuilder* _tmp12_; - SpitPublishingAuthenticator* _tmp13_; - PublishingFacebookPublishingOptionsPane* _tmp14_; - PublishingFacebookPublishingOptionsPane* _tmp15_; - PublishingFacebookPublishingOptionsPane* _tmp16_; - SpitPublishingPluginHost* _tmp17_; - PublishingFacebookPublishingOptionsPane* _tmp18_; - GError * _inner_error_ = NULL; -#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:326: ACTION: showing publishing options pane."); -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = gtk_builder_new (); -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - builder = _tmp1_; -#line 3265 "FacebookPublishing.c" - { - GtkBuilder* _tmp2_; -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = builder; -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_builder_add_from_resource (_tmp2_, PLUGIN_RESOURCE_PATH "/" "facebook_publishing_options_pane.ui", &_inner_error_); -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3274 "FacebookPublishing.c" - goto __catch2_g_error; - } - } - goto __finally2; - __catch2_g_error: - { - GError* e = NULL; - GError* _tmp3_; - const gchar* _tmp4_; - SpitPublishingPluginHost* _tmp5_; - GError* _tmp6_; - GError* _tmp7_; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - e = _inner_error_; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _inner_error_ = NULL; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = e; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _tmp3_->message; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_warning ("FacebookPublishing.vala:337: Could not parse UI file! Error: %s.", _tmp4_); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->host; -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _ ("A file required for publishing is unavailable. Publishing to Facebook " \ -"can’t continue.")); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _tmp6_; -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp5_, _tmp7_); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_tmp7_); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (e); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (builder); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3313 "FacebookPublishing.c" - } - __finally2: -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (builder); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3326 "FacebookPublishing.c" - } -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = self->priv->username; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = self->priv->publishing_params; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = _tmp9_->albums; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10__length1 = _tmp9_->albums_length1; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = self->priv->host; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = builder; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = self->priv->authenticator; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = publishing_facebook_publishing_options_pane_new (_tmp8_, _tmp10_, _tmp10__length1, spit_publishing_plugin_host_get_publishable_media_type (_tmp11_), self, _tmp12_, publishing_facebook_facebook_publisher_get_persistent_strip_metadata (self), spit_publishing_authenticator_can_logout (_tmp13_)); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->publishing_options_pane); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishing_options_pane = _tmp14_; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = self->priv->publishing_options_pane; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp15_, "logout", (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_logout_publishing_facebook_publishing_options_pane_logout, self, 0); -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = self->priv->publishing_options_pane; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp16_, "publish", (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_publish_publishing_facebook_publishing_options_pane_publish, self, 0); -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = self->priv->host; -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = self->priv->publishing_options_pane; -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (builder); -#line 3364 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_logout (PublishingFacebookFacebookPublisher* self) -{ - SpitPublishingAuthenticator* _tmp0_; -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:354: ACTION: clearing persistent session infor" \ -"mation and restaring interaction."); -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_authenticator_logout (_tmp0_); -#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->running = FALSE; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_publisher_start (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); -#line 3384 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_add_new_local_album_from_json (PublishingFacebookFacebookPublisher* self, - const gchar* album_name, - const gchar* json) -{ - PublishingFacebookPublishingParameters* _tmp18_; - GError * _inner_error_ = NULL; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (album_name != NULL); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (json != NULL); -#line 3401 "FacebookPublishing.c" - { - JsonParser* parser = NULL; - JsonParser* _tmp0_; - JsonParser* _tmp1_; - JsonNode* root = NULL; - JsonParser* _tmp2_; - JsonNode* _tmp3_; - JsonNode* _tmp4_; - JsonObject* response_object = NULL; - JsonNode* _tmp5_; - JsonObject* _tmp6_; - JsonObject* _tmp7_; - gchar* album_id = NULL; - JsonObject* _tmp8_; - const gchar* _tmp9_; - gchar* _tmp10_; - PublishingFacebookPublishingParameters* _tmp11_; - const gchar* _tmp12_; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = json_parser_new (); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - parser = _tmp0_; -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = parser; -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - json_parser_load_from_data (_tmp1_, json, (gssize) -1, &_inner_error_); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (parser); -#line 3432 "FacebookPublishing.c" - goto __catch3_g_error; - } -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = parser; -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = json_parser_get_root (_tmp2_); -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = __vala_JsonNode_copy0 (_tmp3_); -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - root = _tmp4_; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = root; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = json_node_get_object (_tmp5_); -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _json_object_ref0 (_tmp6_); -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - response_object = _tmp7_; -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = response_object; -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = json_object_get_string_member (_tmp8_, "id"); -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = g_strdup (_tmp9_); -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_id = _tmp10_; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = self->priv->publishing_params; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = album_id; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_add_album (_tmp11_, album_name, _tmp12_); -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (album_id); -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _json_object_unref0 (response_object); -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_JsonNode_free0 (root); -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (parser); -#line 3473 "FacebookPublishing.c" - } - goto __finally3; - __catch3_g_error: - { - GError* _error_ = NULL; - SpitPublishingPluginHost* _tmp13_; - GError* _tmp14_; - const gchar* _tmp15_; - GError* _tmp16_; - GError* _tmp17_; -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _inner_error_; -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _inner_error_ = NULL; -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = self->priv->host; -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = _error_; -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = _tmp14_->message; -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, _tmp15_); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = _tmp16_; -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp13_, _tmp17_); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_tmp17_); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3506 "FacebookPublishing.c" - } - __finally3: -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3517 "FacebookPublishing.c" - } -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = self->priv->publishing_params; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_set_target_album_by_name (_tmp18_, album_name); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_upload (self); -#line 3525 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_authenticator_succeeded (PublishingFacebookFacebookPublisher* self) -{ -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:382: EVENT: Authenticator login succeeded."); -#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_authenticate_session (self); -#line 3538 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_authenticator_failed (PublishingFacebookFacebookPublisher* self) -{ -#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 3547 "FacebookPublishing.c" -} - - -static gpointer -_g_variant_ref0 (gpointer self) -{ -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? g_variant_ref (self) : NULL; -#line 3556 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_authenticate_session (PublishingFacebookFacebookPublisher* self) -{ - GHashTable* parameter = NULL; - SpitPublishingAuthenticator* _tmp0_; - GHashTable* _tmp1_; - GVariant* access_token = NULL; - gconstpointer _tmp2_ = NULL; - gboolean _tmp3_; - GVariant* _tmp4_; - PublishingFacebookGraphSession* _tmp5_; - PublishingFacebookGraphSession* _tmp6_; - const gchar* _tmp7_; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = spit_publishing_authenticator_get_authentication_parameter (_tmp0_); -#line 391 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - parameter = _tmp1_; -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = g_hash_table_lookup_extended (parameter, "AccessToken", NULL, &_tmp2_); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_variant_unref0 (access_token); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _g_variant_ref0 (_tmp2_); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - access_token = _tmp4_; -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!_tmp3_) { -#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("FacebookPublishing.vala:394: Authenticator signalled success, but does" \ -" not provide access token"); -#line 395 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_assert_not_reached (); -#line 3595 "FacebookPublishing.c" - } -#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->graph_session; -#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp5_, "authenticated", (GCallback) _publishing_facebook_facebook_publisher_on_session_authenticated_publishing_facebook_graph_session_authenticated, self, 0); -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->graph_session; -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = g_variant_get_string (access_token, NULL); -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_authenticate (_tmp6_, _tmp7_); -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_variant_unref0 (access_token); -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_hash_table_unref0 (parameter); -#line 3611 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_upload_complete_publishing_facebook_uploader_upload_complete (PublishingFacebookUploader* _sender, - gint num_photos_published, - gpointer self) -{ -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_upload_complete ((PublishingFacebookFacebookPublisher*) self, _sender, num_photos_published); -#line 3622 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_upload_error_publishing_facebook_uploader_upload_error (PublishingFacebookUploader* _sender, - GError* err, - gpointer self) -{ -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_upload_error ((PublishingFacebookFacebookPublisher*) self, _sender, err); -#line 3633 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_upload_status_updated ((PublishingFacebookFacebookPublisher*) self, file_number, fraction_complete); -#line 3644 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_upload (PublishingFacebookFacebookPublisher* self) -{ - gchar* _tmp0_ = NULL; - PublishingFacebookPublishingParameters* _tmp1_; - gint _tmp2_; - SpitPublishingPluginHost* _tmp6_; - SpitPublishingPluginHost* _tmp7_; - PublishingFacebookPublishingParameters* _tmp8_; - PublishingFacebookResolution _tmp9_; - PublishingFacebookPublishingParameters* _tmp10_; - gboolean _tmp11_; - void* _tmp12_; - GDestroyNotify _tmp13_; - SpitPublishingProgressCallback _tmp14_; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp15_; - gint _tmp16_; - SpitPublishingPublishable** _tmp17_; - gint publishables_length1; - gint _publishables_size_; - PublishingFacebookGraphSession* _tmp18_; - PublishingFacebookPublishingParameters* _tmp19_; - SpitPublishingPublishable** _tmp20_; - gint _tmp20__length1; - PublishingFacebookUploader* _tmp21_; - PublishingFacebookUploader* _tmp22_; - PublishingFacebookUploader* _tmp23_; - PublishingFacebookUploader* _tmp24_; -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->publishing_params; -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_->target_album; -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp2_ == PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM) { -#line 3685 "FacebookPublishing.c" - gchar* _tmp3_; -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = g_strdup ("(none)"); -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp0_); -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _tmp3_; -#line 3693 "FacebookPublishing.c" - } else { - PublishingFacebookPublishingParameters* _tmp4_; - gchar* _tmp5_; -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->priv->publishing_params; -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = publishing_facebook_publishing_parameters_get_target_album_name (_tmp4_); -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp0_); -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _tmp5_; -#line 3705 "FacebookPublishing.c" - } -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:402: ACTION: uploading photos to album '%s'", _tmp0_); -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->host; -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp6_, TRUE); -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = self->priv->host; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = self->priv->publishing_params; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = _tmp8_->resolution; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = self->priv->publishing_params; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = _tmp10_->strip_metadata; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = spit_publishing_plugin_host_serialize_publishables (_tmp7_, publishing_facebook_resolution_get_pixels (_tmp9_), _tmp11_, &_tmp12_, &_tmp13_); -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter = NULL; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter = _tmp14_; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter_target = _tmp12_; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp13_; -#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp0_); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3745 "FacebookPublishing.c" - } -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = self->priv->host; -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = spit_publishing_plugin_host_get_publishables (_tmp15_, &_tmp16_); -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishables = _tmp17_; -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishables_length1 = _tmp16_; -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishables_size_ = publishables_length1; -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = self->priv->graph_session; -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp19_ = self->priv->publishing_params; -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp20_ = publishables; -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp20__length1 = publishables_length1; -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp21_ = publishing_facebook_uploader_new (_tmp18_, _tmp19_, _tmp20_, _tmp20__length1); -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_uploader_unref0 (self->priv->uploader); -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->uploader = _tmp21_; -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp22_ = self->priv->uploader; -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp22_, "upload-complete", (GCallback) _publishing_facebook_facebook_publisher_on_upload_complete_publishing_facebook_uploader_upload_complete, self, 0); -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp23_ = self->priv->uploader; -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp23_, "upload-error", (GCallback) _publishing_facebook_facebook_publisher_on_upload_error_publishing_facebook_uploader_upload_error, self, 0); -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp24_ = self->priv->uploader; -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_upload (_tmp24_, _publishing_facebook_facebook_publisher_on_upload_status_updated_spit_publishing_progress_callback, self); -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp0_); -#line 3787 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_do_show_success_pane (PublishingFacebookFacebookPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:428: ACTION: showing success pane."); -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->host; -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_install_success_pane (_tmp1_); -#line 3808 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_generic_error (PublishingFacebookFacebookPublisher* self, - GError* _error_) -{ -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_error_matches (_error_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION)) { -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_logout (self); -#line 3822 "FacebookPublishing.c" - } else { - SpitPublishingPluginHost* _tmp0_; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->host; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp0_, _error_); -#line 3829 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_facebook_publisher_on_session_authenticated (PublishingFacebookFacebookPublisher* self) -{ - PublishingFacebookGraphSession* _tmp0_; - guint _tmp1_; - PublishingFacebookGraphSession* _tmp2_; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->graph_session; -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("authenticated", PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, &_tmp1_, NULL, FALSE); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_session_authenticated_publishing_facebook_graph_session_authenticated, self); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3852 "FacebookPublishing.c" - } -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->graph_session; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (publishing_facebook_graph_session_is_authenticated (_tmp2_), "graph_session.is_authenticated()"); -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:476: EVENT: an authenticated session has becom" \ -"e available."); -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_fetch_user_info (self); -#line 3862 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_fetch_user_info_completed (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp0_, NULL, FALSE); -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_completed_publishing_facebook_graph_message_completed, self); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_error_publishing_facebook_graph_message_failed, self); -#line 485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3892 "FacebookPublishing.c" - } -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = publishing_facebook_graph_message_get_response_body (message); -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _tmp2_; -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:488: EVENT: user info fetch completed; respons" \ -"e = '%s'.", _tmp3_); -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp3_); -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = publishing_facebook_graph_message_get_response_body (message); -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp4_; -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_extract_user_info_from_json (self, _tmp5_); -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp5_); -#line 3910 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_fetch_user_info_error (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message, - GError* _error_) -{ - guint _tmp0_; - guint _tmp1_; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp0_, NULL, FALSE); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_completed_publishing_facebook_graph_message_completed, self); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_user_info_error_publishing_facebook_graph_message_failed, self); -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3937 "FacebookPublishing.c" - } -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:501: EVENT: fetching user info generated and e" \ -"rror."); -#line 503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_generic_error (self, _error_); -#line 3943 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_user_info_extracted (PublishingFacebookFacebookPublisher* self) -{ - const gchar* _tmp0_; - const gchar* _tmp1_; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 508 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3958 "FacebookPublishing.c" - } -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->uid; -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->username; -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:510: EVENT: user info extracted from JSON resp" \ -"onse: uid = %s; name = %s.", _tmp0_, _tmp1_); -#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_fetch_album_descriptions (self); -#line 3968 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_fetch_albums_completed (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp0_, NULL, FALSE); -#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_completed_publishing_facebook_graph_message_completed, self); -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE); -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_error_publishing_facebook_graph_message_failed, self); -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 3998 "FacebookPublishing.c" - } -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = publishing_facebook_graph_message_get_response_body (message); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _tmp2_; -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:522: EVENT: album descriptions fetch transacti" \ -"on completed; response = '%s'.", _tmp3_); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp3_); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = publishing_facebook_graph_message_get_response_body (message); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp4_; -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_extract_albums_from_json (self, _tmp5_); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp5_); -#line 4016 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_fetch_albums_error (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp0_, NULL, FALSE); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_completed_publishing_facebook_graph_message_completed, self); -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE); -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_fetch_albums_error_publishing_facebook_graph_message_failed, self); -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4043 "FacebookPublishing.c" - } -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:536: EVENT: album description fetch attempt ge" \ -"nerated an error."); -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_generic_error (self, err); -#line 4049 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_albums_extracted (PublishingFacebookFacebookPublisher* self) -{ - PublishingFacebookPublishingParameters* _tmp0_; - PublishingFacebookAlbum** _tmp1_; - gint _tmp1__length1; -#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4065 "FacebookPublishing.c" - } -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->publishing_params; -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _tmp0_->albums; -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1__length1 = _tmp0_->albums_length1; -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:545: EVENT: successfully extracted %d albums f" \ -"rom JSON response", _tmp1__length1); -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_show_publishing_options_pane (self); -#line 4077 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_publishing_options_pane_logout (PublishingFacebookFacebookPublisher* self) -{ - PublishingFacebookPublishingOptionsPane* _tmp0_; - guint _tmp1_; - PublishingFacebookPublishingOptionsPane* _tmp2_; - guint _tmp3_; -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->publishing_options_pane; -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("publish", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_publish_publishing_facebook_publishing_options_pane_publish, self); -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->publishing_options_pane; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("logout", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE); -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_logout_publishing_facebook_publishing_options_pane_logout, self); -#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4106 "FacebookPublishing.c" - } -#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:558: EVENT: user clicked 'Logout' in publishin" \ -"g options pane."); -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_logout (self); -#line 4112 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_publishing_options_pane_publish (PublishingFacebookFacebookPublisher* self, - const gchar* target_album, - const gchar* privacy_setting, - PublishingFacebookResolution resolution, - gboolean strip_metadata) -{ - PublishingFacebookPublishingOptionsPane* _tmp0_; - guint _tmp1_; - PublishingFacebookPublishingOptionsPane* _tmp2_; - guint _tmp3_; - PublishingFacebookPublishingParameters* _tmp4_; - PublishingFacebookPublishingParameters* _tmp5_; - PublishingFacebookPublishingParameters* _tmp6_; - gchar* _tmp7_; -#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (privacy_setting != NULL); -#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->publishing_options_pane; -#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("publish", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_publish_publishing_facebook_publishing_options_pane_publish, self); -#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->publishing_options_pane; -#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("logout", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE); -#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_publishing_options_pane_logout_publishing_facebook_publishing_options_pane_logout, self); -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4151 "FacebookPublishing.c" - } -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:571: EVENT: user clicked 'Publish' in publishi" \ -"ng options pane."); -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->priv->publishing_params; -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_->strip_metadata = strip_metadata; -#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_set_persistent_strip_metadata (self, strip_metadata); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->publishing_params; -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_->resolution = resolution; -#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_set_persistent_default_size (self, (gint) resolution); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->publishing_params; -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = g_strdup (privacy_setting); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp6_->privacy_object); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_->privacy_object = _tmp7_; -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (target_album != NULL) { -#line 4177 "FacebookPublishing.c" - PublishingFacebookPublishingParameters* _tmp8_; - PublishingFacebookPublishingParameters* _tmp9_; - gint _tmp10_; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = self->priv->publishing_params; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_parameters_set_target_album_by_name (_tmp8_, target_album); -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = self->priv->publishing_params; -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = _tmp9_->target_album; -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp10_ != PUBLISHING_FACEBOOK_PUBLISHING_PARAMETERS_UNKNOWN_ALBUM) { -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_upload (self); -#line 4193 "FacebookPublishing.c" - } else { - PublishingFacebookPublishingParameters* _tmp11_; - gchar* _tmp12_; -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = self->priv->publishing_params; -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = g_strdup (target_album); -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp11_->new_album_name); -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_->new_album_name = _tmp12_; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_create_new_album (self); -#line 4207 "FacebookPublishing.c" - } - } else { -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_upload (self); -#line 4212 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_facebook_publisher_on_create_album_completed (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message) -{ - guint _tmp0_; - guint _tmp1_; - PublishingFacebookPublishingParameters* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - PublishingFacebookPublishingParameters* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp0_, NULL, FALSE); -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_create_album_completed_publishing_facebook_graph_message_completed, self); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_create_album_error_publishing_facebook_graph_message_failed, self); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->publishing_params; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _tmp2_->new_album_name; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (_tmp3_ != NULL, "publishing_params.new_album_name != null"); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4253 "FacebookPublishing.c" - } -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = publishing_facebook_graph_message_get_response_body (message); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp4_; -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:604: EVENT: created new album resource on remo" \ -"te host; response body = %s.\n", _tmp5_); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp5_); -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->publishing_params; -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _tmp6_->new_album_name; -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = publishing_facebook_graph_message_get_response_body (message); -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = _tmp8_; -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_add_new_local_album_from_json (self, _tmp7_, _tmp9_); -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp9_); -#line 4275 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_create_album_error (PublishingFacebookFacebookPublisher* self, - PublishingFacebookGraphMessage* message, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp0_, NULL, FALSE); -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_create_album_completed_publishing_facebook_graph_message_completed, self); -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE); -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_create_album_error_publishing_facebook_graph_message_failed, self); -#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4302 "FacebookPublishing.c" - } -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:618: EVENT: attempt to create new album genera" \ -"ted an error."); -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_generic_error (self, err); -#line 4308 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_upload_status_updated (PublishingFacebookFacebookPublisher* self, - gint file_number, - gdouble completed_fraction) -{ - SpitPublishingProgressCallback _tmp0_; - void* _tmp0__target; - SpitPublishingProgressCallback _tmp1_; - void* _tmp1__target; -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4327 "FacebookPublishing.c" - } -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:627: EVENT: uploader reports upload %.2f perce" \ -"nt complete.", 100.0 * completed_fraction); -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->progress_reporter; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->progress_reporter; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ (file_number, completed_fraction, _tmp1__target); -#line 4343 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_upload_complete (PublishingFacebookFacebookPublisher* self, - PublishingFacebookUploader* uploader, - gint num_published) -{ - guint _tmp0_; - guint _tmp1_; -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (uploader)); -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_FACEBOOK_TYPE_UPLOADER, &_tmp0_, NULL, FALSE); -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_upload_complete_publishing_facebook_uploader_upload_complete, self); -#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_FACEBOOK_TYPE_UPLOADER, &_tmp1_, NULL, FALSE); -#line 636 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_upload_error_publishing_facebook_uploader_upload_error, self); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4370 "FacebookPublishing.c" - } -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:641: EVENT: uploader reports upload complete; " \ -"%d items published.", num_published); -#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_do_show_success_pane (self); -#line 4376 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_on_upload_error (PublishingFacebookFacebookPublisher* self, - PublishingFacebookUploader* uploader, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - const gchar* _tmp2_; - SpitPublishingPluginHost* _tmp3_; -#line 646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self)); -#line 646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (uploader)); -#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_FACEBOOK_TYPE_UPLOADER, &_tmp0_, NULL, FALSE); -#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_upload_complete_publishing_facebook_uploader_upload_complete, self); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_FACEBOOK_TYPE_UPLOADER, &_tmp1_, NULL, FALSE); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_facebook_publisher_on_upload_error_publishing_facebook_uploader_upload_error, self); -#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4405 "FacebookPublishing.c" - } -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = err->message; -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:653: EVENT: uploader reports upload error = '%" \ -"s'.", _tmp2_); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->host; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp3_, err); -#line 4415 "FacebookPublishing.c" -} - - -static SpitPublishingService* -publishing_facebook_facebook_publisher_real_get_service (SpitPublishingPublisher* base) -{ - PublishingFacebookFacebookPublisher * self; - SpitPublishingService* result = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingService* _tmp1_; -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher); -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->service; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp1_; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 4436 "FacebookPublishing.c" -} - - -gchar* -publishing_facebook_facebook_publisher_get_service_name (PublishingFacebookFacebookPublisher* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self), NULL); -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup (PUBLISHING_FACEBOOK_SERVICE_NAME); -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp0_; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 4453 "FacebookPublishing.c" -} - - -gchar* -publishing_facebook_facebook_publisher_get_user_visible_name (PublishingFacebookFacebookPublisher* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (self), NULL); -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup (PUBLISHING_FACEBOOK_USER_VISIBLE_NAME); -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp0_; -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 4470 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_authenticator_succeeded_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, - gpointer self) -{ -#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_authenticator_succeeded ((PublishingFacebookFacebookPublisher*) self); -#line 4480 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_facebook_publisher_on_authenticator_failed_spit_publishing_authenticator_authentication_failed (SpitPublishingAuthenticator* _sender, - gpointer self) -{ -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_on_authenticator_failed ((PublishingFacebookFacebookPublisher*) self); -#line 4490 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_real_start (SpitPublishingPublisher* base) -{ - PublishingFacebookFacebookPublisher * self; - PublishingFacebookPublishingParameters* _tmp0_; - SpitPublishingAuthenticator* _tmp1_; - SpitPublishingAuthenticator* _tmp2_; - SpitPublishingAuthenticator* _tmp3_; -#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher); -#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 4508 "FacebookPublishing.c" - } -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:674: FacebookPublisher: starting interaction."); -#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->running = TRUE; -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = publishing_facebook_publishing_parameters_new (); -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_publishing_parameters_unref0 (self->priv->publishing_params); -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishing_params = _tmp0_; -#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->authenticator; -#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp1_, "authenticated", (GCallback) _publishing_facebook_facebook_publisher_on_authenticator_succeeded_spit_publishing_authenticator_authenticated, self, 0); -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->authenticator; -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp2_, "authentication-failed", (GCallback) _publishing_facebook_facebook_publisher_on_authenticator_failed_spit_publishing_authenticator_authentication_failed, self, 0); -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->authenticator; -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spit_publishing_authenticator_authenticate (_tmp3_); -#line 4532 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_real_stop (SpitPublishingPublisher* base) -{ - PublishingFacebookFacebookPublisher * self; - PublishingFacebookGraphSession* _tmp0_; -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher); -#line 688 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:688: FacebookPublisher: stop( ) invoked."); -#line 690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->graph_session; -#line 690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp0_ != NULL) { -#line 4549 "FacebookPublishing.c" - PublishingFacebookGraphSession* _tmp1_; -#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->graph_session; -#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_stop_transactions (_tmp1_); -#line 4555 "FacebookPublishing.c" - } -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->host = NULL; -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->running = FALSE; -#line 4561 "FacebookPublishing.c" -} - - -static gboolean -publishing_facebook_facebook_publisher_real_is_running (SpitPublishingPublisher* base) -{ - PublishingFacebookFacebookPublisher * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher); -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->running; -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp0_; -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 4579 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_class_init (PublishingFacebookFacebookPublisherClass * klass) -{ -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_parent_class = g_type_class_peek_parent (klass); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFacebookFacebookPublisherPrivate)); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_facebook_facebook_publisher_finalize; -#line 4592 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) -{ -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->get_service = (SpitPublishingService* (*) (SpitPublishingPublisher *)) publishing_facebook_facebook_publisher_real_get_service; -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->start = (void (*) (SpitPublishingPublisher *)) publishing_facebook_facebook_publisher_real_start; -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->stop = (void (*) (SpitPublishingPublisher *)) publishing_facebook_facebook_publisher_real_stop; -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->is_running = (gboolean (*) (SpitPublishingPublisher *)) publishing_facebook_facebook_publisher_real_is_running; -#line 4609 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_instance_init (PublishingFacebookFacebookPublisher * self) -{ -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv = PUBLISHING_FACEBOOK_FACEBOOK_PUBLISHER_GET_PRIVATE (self); -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->host = NULL; -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter = NULL; -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter_target = self; -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->service = NULL; -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->authenticator = NULL; -#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->running = FALSE; -#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishing_options_pane = NULL; -#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->uploader = NULL; -#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->uid = NULL; -#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->username = NULL; -#line 4640 "FacebookPublishing.c" -} - - -static void -publishing_facebook_facebook_publisher_finalize (GObject * obj) -{ - PublishingFacebookFacebookPublisher * self; -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_FACEBOOK_PUBLISHER, PublishingFacebookFacebookPublisher); -#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_publishing_parameters_unref0 (self->priv->publishing_params); -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter = NULL; -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_session_unref0 (self->priv->graph_session); -#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->publishing_options_pane); -#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_uploader_unref0 (self->priv->uploader); -#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->priv->uid); -#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->priv->username); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_OBJECT_CLASS (publishing_facebook_facebook_publisher_parent_class)->finalize (obj); -#line 4674 "FacebookPublishing.c" -} - - -GType -publishing_facebook_facebook_publisher_get_type (void) -{ - static volatile gsize publishing_facebook_facebook_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_facebook_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookFacebookPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_facebook_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookFacebookPublisher), 0, (GInstanceInitFunc) publishing_facebook_facebook_publisher_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_facebook_facebook_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_facebook_facebook_publisher_type_id; - publishing_facebook_facebook_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingFacebookFacebookPublisher", &g_define_type_info, 0); - g_type_add_interface_static (publishing_facebook_facebook_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info); - g_once_init_leave (&publishing_facebook_facebook_publisher_type_id__volatile, publishing_facebook_facebook_publisher_type_id); - } - return publishing_facebook_facebook_publisher_type_id__volatile; -} - - -static PublishingFacebookAlbum** -_vala_array_dup2 (PublishingFacebookAlbum** self, - int length) -{ - PublishingFacebookAlbum** result; - int i; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = g_new0 (PublishingFacebookAlbum*, length + 1); -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - for (i = 0; i < length; i++) { -#line 4704 "FacebookPublishing.c" - PublishingFacebookAlbum* _tmp0_; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _publishing_facebook_album_ref0 (self[i]); -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result[i] = _tmp0_; -#line 4710 "FacebookPublishing.c" - } -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 4714 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_publishing_options_pane_on_create_new_toggled_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_on_create_new_toggled ((PublishingFacebookPublishingOptionsPane*) self); -#line 4724 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_publishing_options_pane_on_use_existing_toggled_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_on_use_existing_toggled ((PublishingFacebookPublishingOptionsPane*) self); -#line 4734 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_on_publish_button_clicked ((PublishingFacebookPublishingOptionsPane*) self); -#line 4744 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_on_logout_button_clicked ((PublishingFacebookPublishingOptionsPane*) self); -#line 4754 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_publishing_options_pane_on_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_on_size_changed ((PublishingFacebookPublishingOptionsPane*) self); -#line 4764 "FacebookPublishing.c" -} - - -PublishingFacebookPublishingOptionsPane* -publishing_facebook_publishing_options_pane_construct (GType object_type, - const gchar* username, - PublishingFacebookAlbum** albums, - int albums_length1, - SpitPublishingPublisherMediaType media_type, - PublishingFacebookFacebookPublisher* publisher, - GtkBuilder* builder, - gboolean strip_metadata, - gboolean can_logout) -{ - PublishingFacebookPublishingOptionsPane * self = NULL; - GtkBuilder* _tmp0_; - GSList* _tmp1_; - GSList* _tmp2_; - PublishingFacebookAlbum** _tmp3_; - gint _tmp3__length1; - gint _tmp4_; - PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp5_; - gint _tmp6_; - PublishingFacebookResolution* _tmp7_; - PublishingFacebookFacebookPublisher* _tmp8_; - GObject* _tmp9_; - GtkBox* _tmp10_; - GtkBox* _tmp11_; - GtkBuilder* _tmp12_; - GObject* _tmp13_; - GtkRadioButton* _tmp14_; - GtkBuilder* _tmp15_; - GObject* _tmp16_; - GtkRadioButton* _tmp17_; - GtkBuilder* _tmp18_; - GObject* _tmp19_; - GtkComboBoxText* _tmp20_; - GtkBuilder* _tmp21_; - GObject* _tmp22_; - GtkComboBoxText* _tmp23_; - GtkBuilder* _tmp24_; - GObject* _tmp25_; - GtkButton* _tmp26_; - GtkBuilder* _tmp27_; - GObject* _tmp28_; - GtkButton* _tmp29_; - GtkBuilder* _tmp34_; - GObject* _tmp35_; - GtkEntry* _tmp36_; - GtkBuilder* _tmp37_; - GObject* _tmp38_; - GtkComboBoxText* _tmp39_; - GtkBuilder* _tmp40_; - GObject* _tmp41_; - GtkLabel* _tmp42_; - GtkBuilder* _tmp43_; - GObject* _tmp44_; - GtkCheckButton* _tmp45_; - GtkRadioButton* _tmp46_; - GtkRadioButton* _tmp47_; - gchar* label_text = NULL; - gchar* _tmp48_; - GtkLabel* _tmp51_; - const gchar* _tmp52_; - GtkCheckButton* _tmp53_; - GtkComboBoxText* _tmp54_; - GtkButton* _tmp55_; - GtkButton* _tmp56_; - GtkComboBoxText* _tmp57_; - GtkComboBoxText* _tmp58_; - gboolean _tmp59_ = FALSE; - gboolean _tmp60_ = FALSE; - GtkRadioButton* _tmp61_; - GtkComboBoxText* _tmp65_; -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (username != NULL, NULL); -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_FACEBOOK_PUBLISHER (publisher), NULL); -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL); -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookPublishingOptionsPane*) g_object_new (object_type, NULL); -#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _g_object_ref0 (builder); -#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->builder = _tmp0_; -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (builder != NULL, "builder != null"); -#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = gtk_builder_get_objects (builder); -#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_; -#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (g_slist_length (_tmp2_) > ((guint) 0), "builder.get_objects().length() > 0"); -#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_slist_free0 (_tmp2_); -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = (albums != NULL) ? _vala_array_dup2 (albums, albums_length1) : ((gpointer) albums); -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3__length1 = albums_length1; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL); -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->albums = _tmp3_; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->albums_length1 = _tmp3__length1; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = publishing_facebook_publishing_options_pane_create_privacy_descriptions (self, &_tmp4_); -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->privacy_descriptions = (_vala_array_free (self->priv->privacy_descriptions, self->priv->privacy_descriptions_length1, (GDestroyNotify) publishing_facebook_publishing_options_pane_privacy_description_unref), NULL); -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->privacy_descriptions = _tmp5_; -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->privacy_descriptions_length1 = _tmp4_; -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->_privacy_descriptions_size_ = self->priv->privacy_descriptions_length1; -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = publishing_facebook_publishing_options_pane_create_resolution_list (self, &_tmp6_); -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->possible_resolutions = (g_free (self->priv->possible_resolutions), NULL); -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->possible_resolutions = _tmp7_; -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->possible_resolutions_length1 = _tmp6_; -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->_possible_resolutions_size_ = self->priv->possible_resolutions_length1; -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = _g_object_ref0 (publisher); -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->publisher); -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publisher = _tmp8_; -#line 758 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->media_type = media_type; -#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = gtk_builder_get_object (builder, "facebook_pane_box"); -#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_box_get_type (), GtkBox)); -#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->pane_widget = _tmp10_; -#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = self->priv->pane_widget; -#line 761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_container_get_type (), GtkContainer), (guint) 16); -#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = self->priv->builder; -#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = gtk_builder_get_object (_tmp12_, "use_existing_radio"); -#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_radio_button_get_type (), GtkRadioButton)); -#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->use_existing_radio); -#line 763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->use_existing_radio = _tmp14_; -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = self->priv->builder; -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = gtk_builder_get_object (_tmp15_, "create_new_radio"); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_radio_button_get_type (), GtkRadioButton)); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->create_new_radio); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->create_new_radio = _tmp17_; -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = self->priv->builder; -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp19_ = gtk_builder_get_object (_tmp18_, "existing_albums_combo"); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->existing_albums_combo); -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->existing_albums_combo = _tmp20_; -#line 766 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp21_ = self->priv->builder; -#line 766 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp22_ = gtk_builder_get_object (_tmp21_, "visibility_combo"); -#line 766 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 766 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->visibility_combo); -#line 766 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->visibility_combo = _tmp23_; -#line 767 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp24_ = self->priv->builder; -#line 767 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp25_ = gtk_builder_get_object (_tmp24_, "publish_button"); -#line 767 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp26_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_button_get_type (), GtkButton)); -#line 767 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 767 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publish_button = _tmp26_; -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp27_ = self->priv->builder; -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp28_ = gtk_builder_get_object (_tmp27_, "logout_button"); -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp29_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_button_get_type (), GtkButton)); -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->logout_button = _tmp29_; -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!can_logout) { -#line 4977 "FacebookPublishing.c" - GtkButton* _tmp30_; - GtkContainer* _tmp31_; - GtkContainer* _tmp32_; - GtkButton* _tmp33_; -#line 770 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp30_ = self->priv->logout_button; -#line 770 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp31_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_widget_get_type (), GtkWidget)); -#line 770 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp32_ = _tmp31_; -#line 770 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp33_ = self->priv->logout_button; -#line 770 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_container_remove (_tmp32_, G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_widget_get_type (), GtkWidget)); -#line 4992 "FacebookPublishing.c" - } -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp34_ = self->priv->builder; -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp35_ = gtk_builder_get_object (_tmp34_, "new_album_entry"); -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp36_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_entry_get_type (), GtkEntry)); -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->new_album_entry); -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->new_album_entry = _tmp36_; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp37_ = self->priv->builder; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp38_ = gtk_builder_get_object (_tmp37_, "resolution_combo"); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp39_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->resolution_combo); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->resolution_combo = _tmp39_; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp40_ = self->priv->builder; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp41_ = gtk_builder_get_object (_tmp40_, "how_to_label"); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp42_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_label_get_type (), GtkLabel)); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->how_to_label); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->how_to_label = _tmp42_; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp43_ = self->priv->builder; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp44_ = gtk_builder_get_object (_tmp43_, "strip_metadata_check"); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp45_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_check_button_get_type (), GtkCheckButton)); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->strip_metadata_check = _tmp45_; -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp46_ = self->priv->create_new_radio; -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_facebook_publishing_options_pane_on_create_new_toggled_gtk_button_clicked, self, 0); -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp47_ = self->priv->use_existing_radio; -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_facebook_publishing_options_pane_on_use_existing_toggled_gtk_button_clicked, self, 0); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp48_ = g_strdup_printf (PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_HEADER_LABEL_TEXT, username); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - label_text = _tmp48_; -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if ((media_type & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) != 0) { -#line 5048 "FacebookPublishing.c" - const gchar* _tmp49_; - gchar* _tmp50_; -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp49_ = label_text; -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp50_ = g_strconcat (_tmp49_, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PHOTOS_LABEL_TEXT, NULL); -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (label_text); -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - label_text = _tmp50_; -#line 5059 "FacebookPublishing.c" - } -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp51_ = self->priv->how_to_label; -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp52_ = label_text; -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_label_set_label (_tmp51_, _tmp52_); -#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp53_ = self->priv->strip_metadata_check; -#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_toggle_button_get_type (), GtkToggleButton), strip_metadata); -#line 786 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_setup_visibility_combo (self); -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp54_ = self->priv->visibility_combo; -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp55_ = self->priv->publish_button; -#line 789 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp55_, "clicked", (GCallback) _publishing_facebook_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked, self, 0); -#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp56_ = self->priv->logout_button; -#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (_tmp56_, "clicked", (GCallback) _publishing_facebook_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked, self, 0); -#line 792 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_setup_resolution_combo (self); -#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp57_ = self->priv->resolution_combo; -#line 793 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_combo_box_get_type (), GtkComboBox), publishing_facebook_facebook_publisher_get_persistent_default_size (publisher)); -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp58_ = self->priv->resolution_combo; -#line 794 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_facebook_publishing_options_pane_on_size_changed_gtk_combo_box_changed, self, 0); -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp61_ = self->priv->create_new_radio; -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp61_ != NULL) { -#line 5099 "FacebookPublishing.c" - GtkRadioButton* _tmp62_; - gboolean _tmp63_; - gboolean _tmp64_; -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp62_ = self->priv->create_new_radio; -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp63_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp64_ = _tmp63_; -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp60_ = _tmp64_; -#line 5111 "FacebookPublishing.c" - } else { -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp60_ = FALSE; -#line 5115 "FacebookPublishing.c" - } -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp60_) { -#line 800 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp59_ = TRUE; -#line 5121 "FacebookPublishing.c" - } else { -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp59_ = (media_type & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) != 0; -#line 5125 "FacebookPublishing.c" - } -#line 799 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp65_ = self->priv->visibility_combo; -#line 799 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_widget_get_type (), GtkWidget), _tmp59_); -#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (media_type == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 5133 "FacebookPublishing.c" - GtkCheckButton* _tmp66_; - GtkCheckButton* _tmp67_; - GtkComboBoxText* _tmp68_; - GtkRadioButton* _tmp69_; - GtkRadioButton* _tmp70_; - GtkComboBoxText* _tmp71_; - GtkEntry* _tmp72_; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp66_ = self->priv->strip_metadata_check; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, gtk_toggle_button_get_type (), GtkToggleButton), FALSE); -#line 806 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp67_ = self->priv->strip_metadata_check; -#line 806 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp68_ = self->priv->resolution_combo; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp69_ = self->priv->use_existing_radio; -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp70_ = self->priv->create_new_radio; -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp71_ = self->priv->existing_albums_combo; -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp72_ = self->priv->new_album_entry; -#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 5169 "FacebookPublishing.c" - } -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (label_text); -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 5175 "FacebookPublishing.c" -} - - -PublishingFacebookPublishingOptionsPane* -publishing_facebook_publishing_options_pane_new (const gchar* username, - PublishingFacebookAlbum** albums, - int albums_length1, - SpitPublishingPublisherMediaType media_type, - PublishingFacebookFacebookPublisher* publisher, - GtkBuilder* builder, - gboolean strip_metadata, - gboolean can_logout) -{ -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_publishing_options_pane_construct (PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, username, albums, albums_length1, media_type, publisher, builder, strip_metadata, can_logout); -#line 5191 "FacebookPublishing.c" -} - - -static gboolean -publishing_facebook_publishing_options_pane_publishing_photos (PublishingFacebookPublishingOptionsPane* self) -{ - gboolean result = FALSE; - SpitPublishingPublisherMediaType _tmp0_; -#line 815 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self), FALSE); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->media_type; -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = (_tmp0_ & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) != 0; -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 5208 "FacebookPublishing.c" -} - - -static gpointer -_publishing_facebook_publishing_options_pane_privacy_description_ref0 (gpointer self) -{ -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? publishing_facebook_publishing_options_pane_privacy_description_ref (self) : NULL; -#line 5217 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_setup_visibility_combo (PublishingFacebookPublishingOptionsPane* self) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp0_; - gint _tmp0__length1; -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->privacy_descriptions; -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = self->priv->privacy_descriptions_length1; -#line 5232 "FacebookPublishing.c" - { - PublishingFacebookPublishingOptionsPanePrivacyDescription** p_collection = NULL; - gint p_collection_length1 = 0; - gint _p_collection_size_ = 0; - gint p_it = 0; -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - p_collection = _tmp0_; -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - p_collection_length1 = _tmp0__length1; -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - for (p_it = 0; p_it < _tmp0__length1; p_it = p_it + 1) { -#line 5244 "FacebookPublishing.c" - PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp1_; - PublishingFacebookPublishingOptionsPanePrivacyDescription* p = NULL; -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _publishing_facebook_publishing_options_pane_privacy_description_ref0 (p_collection[p_it]); -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - p = _tmp1_; -#line 5251 "FacebookPublishing.c" - { - GtkComboBoxText* _tmp2_; - PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp3_; - const gchar* _tmp4_; -#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->visibility_combo; -#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = p; -#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _tmp3_->description; -#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_combo_box_text_append_text (_tmp2_, _tmp4_); -#line 820 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_publishing_options_pane_privacy_description_unref0 (p); -#line 5266 "FacebookPublishing.c" - } - } - } -} - - -static void -publishing_facebook_publishing_options_pane_setup_resolution_combo (PublishingFacebookPublishingOptionsPane* self) -{ - PublishingFacebookResolution* _tmp0_; - gint _tmp0__length1; -#line 824 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->possible_resolutions; -#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = self->priv->possible_resolutions_length1; -#line 5284 "FacebookPublishing.c" - { - PublishingFacebookResolution* res_collection = NULL; - gint res_collection_length1 = 0; - gint _res_collection_size_ = 0; - gint res_it = 0; -#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - res_collection = _tmp0_; -#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - res_collection_length1 = _tmp0__length1; -#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - for (res_it = 0; res_it < _tmp0__length1; res_it = res_it + 1) { -#line 5296 "FacebookPublishing.c" - PublishingFacebookResolution res = 0; -#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - res = res_collection[res_it]; -#line 5300 "FacebookPublishing.c" - { - GtkComboBoxText* _tmp1_; - PublishingFacebookResolution _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->resolution_combo; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = res; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = publishing_facebook_resolution_get_name (_tmp2_); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _tmp3_; -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_combo_box_text_append_text (_tmp1_, _tmp4_); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp4_); -#line 5318 "FacebookPublishing.c" - } - } - } -} - - -static void -publishing_facebook_publishing_options_pane_on_use_existing_toggled (PublishingFacebookPublishingOptionsPane* self) -{ - GtkRadioButton* _tmp0_; - gboolean _tmp1_; - gboolean _tmp2_; -#line 829 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->use_existing_radio; -#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_; -#line 830 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp2_) { -#line 5341 "FacebookPublishing.c" - GtkComboBoxText* _tmp3_; - GtkEntry* _tmp4_; - GtkComboBoxText* _tmp5_; - SpitPublishingPublisherMediaType _tmp6_; - GtkComboBoxText* _tmp7_; -#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->existing_albums_combo; -#line 831 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 832 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->priv->new_album_entry; -#line 832 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->visibility_combo; -#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->media_type; -#line 837 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), (_tmp6_ & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) != 0); -#line 839 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = self->priv->existing_albums_combo; -#line 839 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget)); -#line 5365 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_publishing_options_pane_on_create_new_toggled (PublishingFacebookPublishingOptionsPane* self) -{ - GtkRadioButton* _tmp0_; - gboolean _tmp1_; - gboolean _tmp2_; -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->create_new_radio; -#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_; -#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp2_) { -#line 5386 "FacebookPublishing.c" - GtkComboBoxText* _tmp3_; - GtkEntry* _tmp4_; - GtkEntry* _tmp5_; - GtkComboBoxText* _tmp6_; -#line 845 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->existing_albums_combo; -#line 845 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->priv->new_album_entry; -#line 846 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->new_album_entry; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget)); -#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->visibility_combo; -#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 5407 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_publishing_options_pane_on_size_changed (PublishingFacebookPublishingOptionsPane* self) -{ - PublishingFacebookFacebookPublisher* _tmp0_; - GtkComboBoxText* _tmp1_; -#line 855 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->publisher; -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->resolution_combo; -#line 856 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_facebook_publisher_set_persistent_default_size (_tmp0_, gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))); -#line 5425 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_on_logout_button_clicked (PublishingFacebookPublishingOptionsPane* self) -{ -#line 859 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (self, publishing_facebook_publishing_options_pane_signals[PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 5436 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_on_publish_button_clicked (PublishingFacebookPublishingOptionsPane* self) -{ - gchar* album_name = NULL; - gchar* privacy_setting = NULL; - PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp0_; - gint _tmp0__length1; - GtkComboBoxText* _tmp1_; - PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - PublishingFacebookResolution resolution_setting = 0; - const gchar* _tmp16_; - const gchar* _tmp17_; - PublishingFacebookResolution _tmp18_; - GtkCheckButton* _tmp19_; -#line 863 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 865 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->privacy_descriptions; -#line 865 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = self->priv->privacy_descriptions_length1; -#line 865 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->visibility_combo; -#line 865 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp0_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 865 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _tmp2_->privacy_setting; -#line 865 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = g_strdup (_tmp3_); -#line 865 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - privacy_setting = _tmp4_; -#line 869 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (publishing_facebook_publishing_options_pane_publishing_photos (self)) { -#line 5474 "FacebookPublishing.c" - PublishingFacebookResolution* _tmp5_; - gint _tmp5__length1; - GtkComboBoxText* _tmp6_; - PublishingFacebookResolution _tmp7_; - GtkRadioButton* _tmp8_; - gboolean _tmp9_; - gboolean _tmp10_; -#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->possible_resolutions; -#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5__length1 = self->priv->possible_resolutions_length1; -#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->resolution_combo; -#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _tmp5_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 870 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - resolution_setting = _tmp7_; -#line 871 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = self->priv->use_existing_radio; -#line 871 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 871 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = _tmp9_; -#line 871 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp10_) { -#line 5500 "FacebookPublishing.c" - GtkComboBoxText* _tmp11_; - gchar* _tmp12_; -#line 872 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = self->priv->existing_albums_combo; -#line 872 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = gtk_combo_box_text_get_active_text (_tmp11_); -#line 872 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (album_name); -#line 872 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_name = _tmp12_; -#line 5511 "FacebookPublishing.c" - } else { - GtkEntry* _tmp13_; - const gchar* _tmp14_; - gchar* _tmp15_; -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = self->priv->new_album_entry; -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = gtk_entry_get_text (_tmp13_); -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = g_strdup (_tmp14_); -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (album_name); -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_name = _tmp15_; -#line 5526 "FacebookPublishing.c" - } - } else { -#line 877 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - resolution_setting = PUBLISHING_FACEBOOK_RESOLUTION_STANDARD; -#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (album_name); -#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_name = NULL; -#line 5535 "FacebookPublishing.c" - } -#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = album_name; -#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = privacy_setting; -#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = resolution_setting; -#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp19_ = self->priv->strip_metadata_check; -#line 881 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (self, publishing_facebook_publishing_options_pane_signals[PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, _tmp16_, _tmp17_, _tmp18_, gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 863 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (privacy_setting); -#line 863 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (album_name); -#line 5551 "FacebookPublishing.c" -} - - -static void -_vala_array_add8 (PublishingFacebookPublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingFacebookPublishingOptionsPanePrivacyDescription* value) -{ -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if ((*length) == (*size)) { -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *array = g_renew (PublishingFacebookPublishingOptionsPanePrivacyDescription*, *array, (*size) + 1); -#line 5567 "FacebookPublishing.c" - } -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[(*length)++] = value; -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[*length] = NULL; -#line 5573 "FacebookPublishing.c" -} - - -static void -_vala_array_add9 (PublishingFacebookPublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingFacebookPublishingOptionsPanePrivacyDescription* value) -{ -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if ((*length) == (*size)) { -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *array = g_renew (PublishingFacebookPublishingOptionsPanePrivacyDescription*, *array, (*size) + 1); -#line 5589 "FacebookPublishing.c" - } -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[(*length)++] = value; -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[*length] = NULL; -#line 5595 "FacebookPublishing.c" -} - - -static void -_vala_array_add10 (PublishingFacebookPublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingFacebookPublishingOptionsPanePrivacyDescription* value) -{ -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if ((*length) == (*size)) { -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *array = g_renew (PublishingFacebookPublishingOptionsPanePrivacyDescription*, *array, (*size) + 1); -#line 5611 "FacebookPublishing.c" - } -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[(*length)++] = value; -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[*length] = NULL; -#line 5617 "FacebookPublishing.c" -} - - -static PublishingFacebookPublishingOptionsPanePrivacyDescription** -publishing_facebook_publishing_options_pane_create_privacy_descriptions (PublishingFacebookPublishingOptionsPane* self, - int* result_length1) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription** result = NULL; - PublishingFacebookPublishingOptionsPanePrivacyDescription** _result_ = NULL; - PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp1_; - gint _tmp1__length1; - PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp2_; - PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp3_; - gint _tmp3__length1; - PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp4_; - PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp5_; - gint _tmp5__length1; - PublishingFacebookPublishingOptionsPanePrivacyDescription* _tmp6_; - PublishingFacebookPublishingOptionsPanePrivacyDescription** _tmp7_; - gint _tmp7__length1; -#line 884 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_new0 (PublishingFacebookPublishingOptionsPanePrivacyDescription*, 0 + 1); -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _result_ = _tmp0_; -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _result__length1 = 0; -#line 885 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __result__size_ = _result__length1; -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _result_; -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1__length1 = _result__length1; -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = publishing_facebook_publishing_options_pane_privacy_description_new (_ ("Just me"), "{ 'value' : 'SELF' }"); -#line 887 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_array_add8 (&_result_, &_result__length1, &__result__size_, _tmp2_); -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _result_; -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3__length1 = _result__length1; -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = publishing_facebook_publishing_options_pane_privacy_description_new (_ ("Friends"), "{ 'value' : 'ALL_FRIENDS' }"); -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_array_add9 (&_result_, &_result__length1, &__result__size_, _tmp4_); -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _result_; -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5__length1 = _result__length1; -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = publishing_facebook_publishing_options_pane_privacy_description_new (_ ("Everyone"), "{ 'value' : 'EVERYONE' }"); -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_array_add10 (&_result_, &_result__length1, &__result__size_, _tmp6_); -#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _result_; -#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7__length1 = _result__length1; -#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (result_length1) { -#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *result_length1 = _tmp7__length1; -#line 5683 "FacebookPublishing.c" - } -#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp7_; -#line 891 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 5689 "FacebookPublishing.c" -} - - -static void -_vala_array_add11 (PublishingFacebookResolution* * array, - int* length, - int* size, - PublishingFacebookResolution value) -{ -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if ((*length) == (*size)) { -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *array = g_renew (PublishingFacebookResolution, *array, *size); -#line 5705 "FacebookPublishing.c" - } -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[(*length)++] = value; -#line 5709 "FacebookPublishing.c" -} - - -static void -_vala_array_add12 (PublishingFacebookResolution* * array, - int* length, - int* size, - PublishingFacebookResolution value) -{ -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if ((*length) == (*size)) { -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *array = g_renew (PublishingFacebookResolution, *array, *size); -#line 5725 "FacebookPublishing.c" - } -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - (*array)[(*length)++] = value; -#line 5729 "FacebookPublishing.c" -} - - -static PublishingFacebookResolution* -publishing_facebook_publishing_options_pane_create_resolution_list (PublishingFacebookPublishingOptionsPane* self, - int* result_length1) -{ - PublishingFacebookResolution* result = NULL; - PublishingFacebookResolution* _result_ = NULL; - PublishingFacebookResolution* _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingFacebookResolution* _tmp1_; - gint _tmp1__length1; - PublishingFacebookResolution* _tmp2_; - gint _tmp2__length1; - PublishingFacebookResolution* _tmp3_; - gint _tmp3__length1; -#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_new0 (PublishingFacebookResolution, 0); -#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _result_ = _tmp0_; -#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _result__length1 = 0; -#line 895 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __result__size_ = _result__length1; -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _result_; -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1__length1 = _result__length1; -#line 897 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_array_add11 (&_result_, &_result__length1, &__result__size_, PUBLISHING_FACEBOOK_RESOLUTION_STANDARD); -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _result_; -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2__length1 = _result__length1; -#line 898 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_array_add12 (&_result_, &_result__length1, &__result__size_, PUBLISHING_FACEBOOK_RESOLUTION_HIGH); -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _result_; -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3__length1 = _result__length1; -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (result_length1) { -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *result_length1 = _tmp3__length1; -#line 5778 "FacebookPublishing.c" - } -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp3_; -#line 900 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 5784 "FacebookPublishing.c" -} - - -void -publishing_facebook_publishing_options_pane_installed (PublishingFacebookPublishingOptionsPane* self) -{ - GtkButton* _tmp23_; -#line 903 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 904 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (publishing_facebook_publishing_options_pane_publishing_photos (self)) { -#line 5796 "FacebookPublishing.c" - PublishingFacebookAlbum** _tmp0_; - gint _tmp0__length1; -#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->albums; -#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = self->priv->albums_length1; -#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp0__length1 == 0) { -#line 5805 "FacebookPublishing.c" - GtkRadioButton* _tmp1_; - GtkEntry* _tmp2_; - GtkComboBoxText* _tmp3_; - GtkRadioButton* _tmp4_; -#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->create_new_radio; -#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 907 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->new_album_entry; -#line 907 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_entry_set_text (_tmp2_, PUBLISHING_FACEBOOK_DEFAULT_ALBUM_NAME); -#line 908 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->existing_albums_combo; -#line 908 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->priv->use_existing_radio; -#line 909 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 5826 "FacebookPublishing.c" - } else { - gint default_album_seq_num = 0; - gint ticker = 0; - PublishingFacebookAlbum** _tmp5_; - gint _tmp5__length1; - gint _tmp14_; -#line 911 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - default_album_seq_num = -1; -#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ticker = 0; -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->albums; -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5__length1 = self->priv->albums_length1; -#line 5841 "FacebookPublishing.c" - { - PublishingFacebookAlbum** album_collection = NULL; - gint album_collection_length1 = 0; - gint _album_collection_size_ = 0; - gint album_it = 0; -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_collection = _tmp5_; -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album_collection_length1 = _tmp5__length1; -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - for (album_it = 0; album_it < _tmp5__length1; album_it = album_it + 1) { -#line 5853 "FacebookPublishing.c" - PublishingFacebookAlbum* _tmp6_; - PublishingFacebookAlbum* album = NULL; -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _publishing_facebook_album_ref0 (album_collection[album_it]); -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - album = _tmp6_; -#line 5860 "FacebookPublishing.c" - { - GtkComboBoxText* _tmp7_; - PublishingFacebookAlbum* _tmp8_; - const gchar* _tmp9_; - PublishingFacebookAlbum* _tmp10_; - const gchar* _tmp11_; - gint _tmp13_; -#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = self->priv->existing_albums_combo; -#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = album; -#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = _tmp8_->name; -#line 914 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_combo_box_text_append_text (_tmp7_, _tmp9_); -#line 915 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = album; -#line 915 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = _tmp10_->name; -#line 915 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_strcmp0 (_tmp11_, PUBLISHING_FACEBOOK_DEFAULT_ALBUM_NAME) == 0) { -#line 5882 "FacebookPublishing.c" - gint _tmp12_; -#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = ticker; -#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - default_album_seq_num = _tmp12_; -#line 5888 "FacebookPublishing.c" - } -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = ticker; -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ticker = _tmp13_ + 1; -#line 913 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_album_unref0 (album); -#line 5896 "FacebookPublishing.c" - } - } - } -#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = default_album_seq_num; -#line 919 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp14_ != -1) { -#line 5904 "FacebookPublishing.c" - GtkComboBoxText* _tmp15_; - gint _tmp16_; - GtkRadioButton* _tmp17_; - GtkEntry* _tmp18_; -#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = self->priv->existing_albums_combo; -#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = default_album_seq_num; -#line 920 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_combo_box_get_type (), GtkComboBox), _tmp16_); -#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = self->priv->use_existing_radio; -#line 921 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = self->priv->new_album_entry; -#line 922 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 5923 "FacebookPublishing.c" - } else { - GtkRadioButton* _tmp19_; - GtkComboBoxText* _tmp20_; - GtkComboBoxText* _tmp21_; - GtkEntry* _tmp22_; -#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp19_ = self->priv->create_new_radio; -#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 926 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp20_ = self->priv->existing_albums_combo; -#line 926 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 927 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp21_ = self->priv->existing_albums_combo; -#line 927 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp22_ = self->priv->new_album_entry; -#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_entry_set_text (_tmp22_, PUBLISHING_FACEBOOK_DEFAULT_ALBUM_NAME); -#line 5945 "FacebookPublishing.c" - } - } - } -#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp23_ = self->priv->publish_button; -#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget)); -#line 5953 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_notify_logout (PublishingFacebookPublishingOptionsPane* self) -{ -#line 936 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 937 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (self, publishing_facebook_publishing_options_pane_signals[PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 5964 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_notify_publish (PublishingFacebookPublishingOptionsPane* self, - const gchar* target_album, - const gchar* privacy_setting, - PublishingFacebookResolution target_resolution) -{ - GtkCheckButton* _tmp0_; -#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (privacy_setting != NULL); -#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->strip_metadata_check; -#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (self, publishing_facebook_publishing_options_pane_signals[PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, target_album, privacy_setting, target_resolution, gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 5983 "FacebookPublishing.c" -} - - -static GtkWidget* -publishing_facebook_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingFacebookPublishingOptionsPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 944 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane); -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->pane_widget; -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp1_; -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 6004 "FacebookPublishing.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_facebook_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingFacebookPublishingOptionsPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 948 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane); -#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 949 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 6019 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_publishing_options_pane_notify_logout_publishing_facebook_publishing_options_pane_logout (PublishingFacebookPublishingOptionsPane* _sender, - gpointer self) -{ -#line 953 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_notify_logout ((PublishingFacebookPublishingOptionsPane*) self); -#line 6029 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_publishing_options_pane_notify_publish_publishing_facebook_publishing_options_pane_publish (PublishingFacebookPublishingOptionsPane* _sender, - const gchar* target_album, - const gchar* privacy_setting, - PublishingFacebookResolution target_resolution, - gboolean strip_metadata, - gpointer self) -{ -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_notify_publish ((PublishingFacebookPublishingOptionsPane*) self, target_album, privacy_setting, target_resolution); -#line 6043 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingFacebookPublishingOptionsPane * self; -#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane); -#line 953 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (self, "logout", (GCallback) _publishing_facebook_publishing_options_pane_notify_logout_publishing_facebook_publishing_options_pane_logout, self, 0); -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect_object (self, "publish", (GCallback) _publishing_facebook_publishing_options_pane_notify_publish_publishing_facebook_publishing_options_pane_publish, self, 0); -#line 956 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_installed (self); -#line 6059 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingFacebookPublishingOptionsPane * self; - guint _tmp0_; - guint _tmp1_; -#line 959 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane); -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("logout", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp0_, NULL, FALSE); -#line 960 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_publishing_options_pane_notify_logout_publishing_facebook_publishing_options_pane_logout, self); -#line 961 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("publish", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 961 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_publishing_options_pane_notify_publish_publishing_facebook_publishing_options_pane_publish, self); -#line 6079 "FacebookPublishing.c" -} - - -static void -g_cclosure_user_marshal_VOID__STRING_STRING_ENUM_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__STRING_STRING_ENUM_BOOLEAN) (gpointer data1, const char* arg_1, const char* arg_2, gint arg_3, gboolean arg_4, gpointer data2); - register GMarshalFunc_VOID__STRING_STRING_ENUM_BOOLEAN callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (n_param_values == 5); -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - data1 = closure->data; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - data2 = param_values->data[0].v_pointer; -#line 6105 "FacebookPublishing.c" - } else { -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - data1 = param_values->data[0].v_pointer; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - data2 = closure->data; -#line 6111 "FacebookPublishing.c" - } -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - callback = (GMarshalFunc_VOID__STRING_STRING_ENUM_BOOLEAN) (marshal_data ? marshal_data : cc->callback); -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), g_value_get_enum (param_values + 3), g_value_get_boolean (param_values + 4), data2); -#line 6117 "FacebookPublishing.c" -} - - -static PublishingFacebookPublishingOptionsPanePrivacyDescription* -publishing_facebook_publishing_options_pane_privacy_description_construct (GType object_type, - const gchar* description, - const gchar* privacy_setting) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (description != NULL, NULL); -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (privacy_setting != NULL, NULL); -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookPublishingOptionsPanePrivacyDescription*) g_type_create_instance (object_type); -#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup (description); -#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->description); -#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->description = _tmp0_; -#line 739 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = g_strdup (privacy_setting); -#line 739 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->privacy_setting); -#line 739 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->privacy_setting = _tmp1_; -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 6149 "FacebookPublishing.c" -} - - -static PublishingFacebookPublishingOptionsPanePrivacyDescription* -publishing_facebook_publishing_options_pane_privacy_description_new (const gchar* description, - const gchar* privacy_setting) -{ -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_publishing_options_pane_privacy_description_construct (PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, description, privacy_setting); -#line 6159 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_value_privacy_description_init (GValue* value) -{ -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6168 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_value_privacy_description_free_value (GValue* value) -{ -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (value->data[0].v_pointer) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_privacy_description_unref (value->data[0].v_pointer); -#line 6179 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_publishing_options_pane_value_privacy_description_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = publishing_facebook_publishing_options_pane_privacy_description_ref (src_value->data[0].v_pointer); -#line 6192 "FacebookPublishing.c" - } else { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 6196 "FacebookPublishing.c" - } -} - - -static gpointer -publishing_facebook_publishing_options_pane_value_privacy_description_peek_pointer (const GValue* value) -{ -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 6206 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_publishing_options_pane_value_privacy_description_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (collect_values[0].v_pointer) { -#line 6218 "FacebookPublishing.c" - PublishingFacebookPublishingOptionsPanePrivacyDescription * object; - object = collect_values[0].v_pointer; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6225 "FacebookPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6229 "FacebookPublishing.c" - } -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = publishing_facebook_publishing_options_pane_privacy_description_ref (object); -#line 6233 "FacebookPublishing.c" - } else { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6237 "FacebookPublishing.c" - } -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 6241 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_publishing_options_pane_value_privacy_description_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription ** object_p; - object_p = collect_values[0].v_pointer; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!object_p) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 6257 "FacebookPublishing.c" - } -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!value->data[0].v_pointer) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = NULL; -#line 6263 "FacebookPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 6267 "FacebookPublishing.c" - } else { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = publishing_facebook_publishing_options_pane_privacy_description_ref (value->data[0].v_pointer); -#line 6271 "FacebookPublishing.c" - } -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 6275 "FacebookPublishing.c" -} - - -static GParamSpec* -publishing_facebook_publishing_options_pane_param_spec_privacy_description (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFacebookPublishingOptionsPaneParamSpecPrivacyDescription* spec; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION), NULL); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return G_PARAM_SPEC (spec); -#line 6295 "FacebookPublishing.c" -} - - -static gpointer -publishing_facebook_publishing_options_pane_value_get_privacy_description (const GValue* value) -{ -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION), NULL); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 6306 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_value_set_privacy_description (GValue* value, - gpointer v_object) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription * old; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_privacy_description_ref (value->data[0].v_pointer); -#line 6329 "FacebookPublishing.c" - } else { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6333 "FacebookPublishing.c" - } -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_privacy_description_unref (old); -#line 6339 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_publishing_options_pane_value_take_privacy_description (GValue* value, - gpointer v_object) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription * old; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 6361 "FacebookPublishing.c" - } else { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6365 "FacebookPublishing.c" - } -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_privacy_description_unref (old); -#line 6371 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_publishing_options_pane_privacy_description_class_init (PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass * klass) -{ -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_privacy_description_parent_class = g_type_class_peek_parent (klass); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass *) klass)->finalize = publishing_facebook_publishing_options_pane_privacy_description_finalize; -#line 6383 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_privacy_description_instance_init (PublishingFacebookPublishingOptionsPanePrivacyDescription * self) -{ -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->ref_count = 1; -#line 6392 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_privacy_description_finalize (PublishingFacebookPublishingOptionsPanePrivacyDescription * obj) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription * self; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingFacebookPublishingOptionsPanePrivacyDescription); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_destroy (self); -#line 734 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->description); -#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->privacy_setting); -#line 6408 "FacebookPublishing.c" -} - - -static GType -publishing_facebook_publishing_options_pane_privacy_description_get_type (void) -{ - static volatile gsize publishing_facebook_publishing_options_pane_privacy_description_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_publishing_options_pane_privacy_description_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_facebook_publishing_options_pane_value_privacy_description_init, publishing_facebook_publishing_options_pane_value_privacy_description_free_value, publishing_facebook_publishing_options_pane_value_privacy_description_copy_value, publishing_facebook_publishing_options_pane_value_privacy_description_peek_pointer, "p", publishing_facebook_publishing_options_pane_value_privacy_description_collect_value, "p", publishing_facebook_publishing_options_pane_value_privacy_description_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookPublishingOptionsPanePrivacyDescriptionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_publishing_options_pane_privacy_description_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookPublishingOptionsPanePrivacyDescription), 0, (GInstanceInitFunc) publishing_facebook_publishing_options_pane_privacy_description_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_facebook_publishing_options_pane_privacy_description_type_id; - publishing_facebook_publishing_options_pane_privacy_description_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookPublishingOptionsPanePrivacyDescription", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_facebook_publishing_options_pane_privacy_description_type_id__volatile, publishing_facebook_publishing_options_pane_privacy_description_type_id); - } - return publishing_facebook_publishing_options_pane_privacy_description_type_id__volatile; -} - - -static gpointer -publishing_facebook_publishing_options_pane_privacy_description_ref (gpointer instance) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription * self; - self = instance; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return instance; -#line 6437 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_privacy_description_unref (gpointer instance) -{ - PublishingFacebookPublishingOptionsPanePrivacyDescription * self; - self = instance; -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_GET_CLASS (self)->finalize (self); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 6452 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_publishing_options_pane_class_init (PublishingFacebookPublishingOptionsPaneClass * klass) -{ -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFacebookPublishingOptionsPanePrivate)); -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_facebook_publishing_options_pane_finalize; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_signals[PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = g_signal_new ("logout", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_signals[PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = g_signal_new ("publish", PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING_ENUM_BOOLEAN, G_TYPE_NONE, 4, G_TYPE_STRING, G_TYPE_STRING, PUBLISHING_FACEBOOK_TYPE_RESOLUTION, G_TYPE_BOOLEAN); -#line 6470 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_facebook_publishing_options_pane_real_get_widget; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_facebook_publishing_options_pane_real_get_preferred_geometry; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_facebook_publishing_options_pane_real_on_pane_installed; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_facebook_publishing_options_pane_real_on_pane_uninstalled; -#line 6487 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_instance_init (PublishingFacebookPublishingOptionsPane * self) -{ -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv = PUBLISHING_FACEBOOK_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->pane_widget = NULL; -#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->use_existing_radio = NULL; -#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->create_new_radio = NULL; -#line 707 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->existing_albums_combo = NULL; -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->visibility_combo = NULL; -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->new_album_entry = NULL; -#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->strip_metadata_check = NULL; -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publish_button = NULL; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->logout_button = NULL; -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->how_to_label = NULL; -#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->albums = NULL; -#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->albums_length1 = 0; -#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publisher = NULL; -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->resolution_combo = NULL; -#line 6526 "FacebookPublishing.c" -} - - -static void -publishing_facebook_publishing_options_pane_finalize (GObject * obj) -{ - PublishingFacebookPublishingOptionsPane * self; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFacebookPublishingOptionsPane); -#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->use_existing_radio); -#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->create_new_radio); -#line 707 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->existing_albums_combo); -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->visibility_combo); -#line 709 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->new_album_entry); -#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->how_to_label); -#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_facebook_album_unref), NULL); -#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->publisher); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->privacy_descriptions = (_vala_array_free (self->priv->privacy_descriptions, self->priv->privacy_descriptions_length1, (GDestroyNotify) publishing_facebook_publishing_options_pane_privacy_description_unref), NULL); -#line 718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->possible_resolutions = (g_free (self->priv->possible_resolutions), NULL); -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->resolution_combo); -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_OBJECT_CLASS (publishing_facebook_publishing_options_pane_parent_class)->finalize (obj); -#line 6570 "FacebookPublishing.c" -} - - -GType -publishing_facebook_publishing_options_pane_get_type (void) -{ - static volatile gsize publishing_facebook_publishing_options_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_publishing_options_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookPublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookPublishingOptionsPane), 0, (GInstanceInitFunc) publishing_facebook_publishing_options_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_facebook_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_facebook_publishing_options_pane_type_id; - publishing_facebook_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingFacebookPublishingOptionsPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_facebook_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_facebook_publishing_options_pane_type_id__volatile, publishing_facebook_publishing_options_pane_type_id); - } - return publishing_facebook_publishing_options_pane_type_id__volatile; -} - - -gchar* -publishing_facebook_endpoint_to_uri (PublishingFacebookEndpoint self) -{ - gchar* result = NULL; -#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - switch (self) { -#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT: -#line 6598 "FacebookPublishing.c" - { - gchar* _tmp0_; -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup ("https://graph.facebook.com/"); -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp0_; -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 6607 "FacebookPublishing.c" - } -#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case PUBLISHING_FACEBOOK_ENDPOINT_VIDEO: -#line 6611 "FacebookPublishing.c" - { - gchar* _tmp1_; -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = g_strdup ("https://graph-video.facebook.com/"); -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp1_; -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 6620 "FacebookPublishing.c" - } -#line 971 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case PUBLISHING_FACEBOOK_ENDPOINT_TEST_CONNECTION: -#line 6624 "FacebookPublishing.c" - { - gchar* _tmp2_; -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = g_strdup ("https://www.facebook.com/"); -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp2_; -#line 979 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 6633 "FacebookPublishing.c" - } - default: - { -#line 982 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_assert_not_reached (); -#line 6639 "FacebookPublishing.c" - } - } -} - - -GType -publishing_facebook_endpoint_get_type (void) -{ - static volatile gsize publishing_facebook_endpoint_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_endpoint_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT, "PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT", "default"}, {PUBLISHING_FACEBOOK_ENDPOINT_VIDEO, "PUBLISHING_FACEBOOK_ENDPOINT_VIDEO", "video"}, {PUBLISHING_FACEBOOK_ENDPOINT_TEST_CONNECTION, "PUBLISHING_FACEBOOK_ENDPOINT_TEST_CONNECTION", "test-connection"}, {0, NULL, NULL}}; - GType publishing_facebook_endpoint_type_id; - publishing_facebook_endpoint_type_id = g_enum_register_static ("PublishingFacebookEndpoint", values); - g_once_init_leave (&publishing_facebook_endpoint_type_id__volatile, publishing_facebook_endpoint_type_id); - } - return publishing_facebook_endpoint_type_id__volatile; -} - - -static gchar* -publishing_facebook_graph_message_real_get_uri (PublishingFacebookGraphMessage* self) -{ -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_facebook_graph_message_get_uri'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 6666 "FacebookPublishing.c" -} - - -gchar* -publishing_facebook_graph_message_get_uri (PublishingFacebookGraphMessage* self) -{ -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (self), NULL); -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return PUBLISHING_FACEBOOK_GRAPH_MESSAGE_GET_CLASS (self)->get_uri (self); -#line 6677 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_graph_message_real_get_response_body (PublishingFacebookGraphMessage* self) -{ -#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("Type `%s' does not implement abstract method `publishing_facebook_graph_message_get_response_body'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 6688 "FacebookPublishing.c" -} - - -gchar* -publishing_facebook_graph_message_get_response_body (PublishingFacebookGraphMessage* self) -{ -#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (self), NULL); -#line 993 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return PUBLISHING_FACEBOOK_GRAPH_MESSAGE_GET_CLASS (self)->get_response_body (self); -#line 6699 "FacebookPublishing.c" -} - - -PublishingFacebookGraphMessage* -publishing_facebook_graph_message_construct (GType object_type) -{ - PublishingFacebookGraphMessage* self = NULL; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookGraphMessage*) g_type_create_instance (object_type); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 6711 "FacebookPublishing.c" -} - - -static void -g_cclosure_user_marshal_VOID__INT_INT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__INT_INT) (gpointer data1, gint arg_1, gint arg_2, gpointer data2); - register GMarshalFunc_VOID__INT_INT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (n_param_values == 3); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - data1 = closure->data; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - data2 = param_values->data[0].v_pointer; -#line 6737 "FacebookPublishing.c" - } else { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - data1 = param_values->data[0].v_pointer; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - data2 = closure->data; -#line 6743 "FacebookPublishing.c" - } -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - callback = (GMarshalFunc_VOID__INT_INT) (marshal_data ? marshal_data : cc->callback); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - callback (data1, g_value_get_int (param_values + 1), g_value_get_int (param_values + 2), data2); -#line 6749 "FacebookPublishing.c" -} - - -static void -publishing_facebook_value_graph_message_init (GValue* value) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6758 "FacebookPublishing.c" -} - - -static void -publishing_facebook_value_graph_message_free_value (GValue* value) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (value->data[0].v_pointer) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_message_unref (value->data[0].v_pointer); -#line 6769 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_value_graph_message_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = publishing_facebook_graph_message_ref (src_value->data[0].v_pointer); -#line 6782 "FacebookPublishing.c" - } else { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 6786 "FacebookPublishing.c" - } -} - - -static gpointer -publishing_facebook_value_graph_message_peek_pointer (const GValue* value) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 6796 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_graph_message_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (collect_values[0].v_pointer) { -#line 6808 "FacebookPublishing.c" - PublishingFacebookGraphMessage * object; - object = collect_values[0].v_pointer; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6815 "FacebookPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6819 "FacebookPublishing.c" - } -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = publishing_facebook_graph_message_ref (object); -#line 6823 "FacebookPublishing.c" - } else { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6827 "FacebookPublishing.c" - } -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 6831 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_graph_message_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFacebookGraphMessage ** object_p; - object_p = collect_values[0].v_pointer; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!object_p) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 6847 "FacebookPublishing.c" - } -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!value->data[0].v_pointer) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = NULL; -#line 6853 "FacebookPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 6857 "FacebookPublishing.c" - } else { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = publishing_facebook_graph_message_ref (value->data[0].v_pointer); -#line 6861 "FacebookPublishing.c" - } -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 6865 "FacebookPublishing.c" -} - - -GParamSpec* -publishing_facebook_param_spec_graph_message (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFacebookParamSpecGraphMessage* spec; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE), NULL); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return G_PARAM_SPEC (spec); -#line 6885 "FacebookPublishing.c" -} - - -gpointer -publishing_facebook_value_get_graph_message (const GValue* value) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE), NULL); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 6896 "FacebookPublishing.c" -} - - -void -publishing_facebook_value_set_graph_message (GValue* value, - gpointer v_object) -{ - PublishingFacebookGraphMessage * old; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE)); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE)); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_message_ref (value->data[0].v_pointer); -#line 6919 "FacebookPublishing.c" - } else { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6923 "FacebookPublishing.c" - } -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_message_unref (old); -#line 6929 "FacebookPublishing.c" - } -} - - -void -publishing_facebook_value_take_graph_message (GValue* value, - gpointer v_object) -{ - PublishingFacebookGraphMessage * old; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE)); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE)); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 6951 "FacebookPublishing.c" - } else { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6955 "FacebookPublishing.c" - } -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_message_unref (old); -#line 6961 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_graph_message_class_init (PublishingFacebookGraphMessageClass * klass) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_message_parent_class = g_type_class_peek_parent (klass); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphMessageClass *) klass)->finalize = publishing_facebook_graph_message_finalize; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphMessageClass *) klass)->get_uri = (gchar* (*) (PublishingFacebookGraphMessage *)) publishing_facebook_graph_message_real_get_uri; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphMessageClass *) klass)->get_response_body = (gchar* (*) (PublishingFacebookGraphMessage *)) publishing_facebook_graph_message_real_get_response_body; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_message_signals[PUBLISHING_FACEBOOK_GRAPH_MESSAGE_COMPLETED_SIGNAL] = g_signal_new ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_message_signals[PUBLISHING_FACEBOOK_GRAPH_MESSAGE_FAILED_SIGNAL] = g_signal_new ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_message_signals[PUBLISHING_FACEBOOK_GRAPH_MESSAGE_DATA_TRANSMITTED_SIGNAL] = g_signal_new ("data-transmitted", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__INT_INT, G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_INT); -#line 6983 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_message_instance_init (PublishingFacebookGraphMessage * self) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->ref_count = 1; -#line 6992 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_message_finalize (PublishingFacebookGraphMessage * obj) -{ - PublishingFacebookGraphMessage * self; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_destroy (self); -#line 7004 "FacebookPublishing.c" -} - - -GType -publishing_facebook_graph_message_get_type (void) -{ - static volatile gsize publishing_facebook_graph_message_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_graph_message_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_facebook_value_graph_message_init, publishing_facebook_value_graph_message_free_value, publishing_facebook_value_graph_message_copy_value, publishing_facebook_value_graph_message_peek_pointer, "p", publishing_facebook_value_graph_message_collect_value, "p", publishing_facebook_value_graph_message_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphMessageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_message_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphMessage), 0, (GInstanceInitFunc) publishing_facebook_graph_message_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_facebook_graph_message_type_id; - publishing_facebook_graph_message_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookGraphMessage", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&publishing_facebook_graph_message_type_id__volatile, publishing_facebook_graph_message_type_id); - } - return publishing_facebook_graph_message_type_id__volatile; -} - - -gpointer -publishing_facebook_graph_message_ref (gpointer instance) -{ - PublishingFacebookGraphMessage * self; - self = instance; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return instance; -#line 7033 "FacebookPublishing.c" -} - - -void -publishing_facebook_graph_message_unref (gpointer instance) -{ - PublishingFacebookGraphMessage * self; - self = instance; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - PUBLISHING_FACEBOOK_GRAPH_MESSAGE_GET_CLASS (self)->finalize (self); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 7048 "FacebookPublishing.c" - } -} - - -static void -_publishing_facebook_graph_session_on_request_unqueued_soup_session_request_unqueued (SoupSession* _sender, - SoupMessage* msg, - gpointer self) -{ -#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_on_request_unqueued ((PublishingFacebookGraphSession*) self, msg); -#line 7060 "FacebookPublishing.c" -} - - -PublishingFacebookGraphSession* -publishing_facebook_graph_session_construct (GType object_type) -{ - PublishingFacebookGraphSession* self = NULL; - SoupSession* _tmp0_; - SoupSession* _tmp1_; - SoupSession* _tmp2_; - SoupSession* _tmp3_; -#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookGraphSession*) g_type_create_instance (object_type); -#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = soup_session_new (); -#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->soup_session); -#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->soup_session = _tmp0_; -#line 1164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->soup_session; -#line 1164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect (_tmp1_, "request-unqueued", (GCallback) _publishing_facebook_graph_session_on_request_unqueued_soup_session_request_unqueued, self); -#line 1165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->priv->soup_session; -#line 1165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_set (_tmp2_, "timeout", (guint) 15, NULL); -#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->priv->access_token); -#line 1166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->access_token = NULL; -#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (self->priv->current_message); -#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->current_message = NULL; -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->soup_session; -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_set (_tmp3_, "ssl-use-system-ca-file", TRUE, NULL); -#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 7102 "FacebookPublishing.c" -} - - -PublishingFacebookGraphSession* -publishing_facebook_graph_session_new (void) -{ -#line 1162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_graph_session_construct (PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION); -#line 7111 "FacebookPublishing.c" -} - - -static gpointer -_publishing_facebook_graph_message_ref0 (gpointer self) -{ -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? publishing_facebook_graph_message_ref (self) : NULL; -#line 7120 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_manage_message (PublishingFacebookGraphSession* self, - PublishingFacebookGraphMessage* msg) -{ - PublishingFacebookGraphMessage* _tmp0_; - PublishingFacebookGraphMessage* _tmp1_; -#line 1175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self)); -#line 1175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (msg)); -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->current_message; -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (_tmp0_ == NULL, "current_message == null"); -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _publishing_facebook_graph_message_ref0 (msg); -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (self->priv->current_message); -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->current_message = _tmp1_; -#line 7144 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_unmanage_message (PublishingFacebookGraphSession* self, - PublishingFacebookGraphMessage* msg) -{ - PublishingFacebookGraphMessage* _tmp0_; -#line 1181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self)); -#line 1181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (msg)); -#line 1182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->current_message; -#line 1182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (_tmp0_ != NULL, "current_message != null"); -#line 1184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (self->priv->current_message); -#line 1184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->current_message = NULL; -#line 7165 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data (SoupMessage* _sender, - SoupBuffer* chunk, - gpointer self) -{ -#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data ((PublishingFacebookGraphSessionGraphMessageImpl*) self, chunk); -#line 7176 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_on_request_unqueued (PublishingFacebookGraphSession* self, - SoupMessage* msg) -{ - PublishingFacebookGraphMessage* _tmp0_; - PublishingFacebookGraphSessionGraphMessageImpl* real_message = NULL; - PublishingFacebookGraphMessage* _tmp1_; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp2_; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp3_; - SoupMessage* _tmp4_; - gboolean _tmp5_ = FALSE; - gboolean _tmp6_ = FALSE; - guint _tmp7_; - guint _tmp8_; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp16_; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp17_; - guint _tmp18_; - GError* _error_ = NULL; - guint _tmp19_; - guint _tmp20_; - GError* _tmp54_; - GError* _tmp64_; -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self)); -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (SOUP_IS_MESSAGE (msg)); -#line 1188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->current_message; -#line 1188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (_tmp0_ != NULL, "current_message != null"); -#line 1189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->current_message; -#line 1189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _publishing_facebook_graph_message_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)); -#line 1189 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - real_message = _tmp2_; -#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = real_message; -#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _tmp3_->soup_message; -#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (_tmp4_ == msg, "real_message.soup_message == msg"); -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp7_, NULL); -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = _tmp7_; -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp8_ == ((guint) SOUP_STATUS_IO_ERROR)) { -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = TRUE; -#line 7230 "FacebookPublishing.c" - } else { - guint _tmp9_; - guint _tmp10_; -#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp9_, NULL); -#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = _tmp9_; -#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _tmp10_ == ((guint) SOUP_STATUS_MALFORMED); -#line 7240 "FacebookPublishing.c" - } -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp6_) { -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = TRUE; -#line 7246 "FacebookPublishing.c" - } else { - guint _tmp11_; - guint _tmp12_; -#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp11_, NULL); -#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = _tmp11_; -#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp12_ == ((guint) SOUP_STATUS_TRY_AGAIN); -#line 7256 "FacebookPublishing.c" - } -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp5_) { -#line 7260 "FacebookPublishing.c" - PublishingFacebookGraphSessionGraphMessageImpl* _tmp13_; - SoupSession* _tmp14_; - SoupMessage* _tmp15_; -#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = real_message; -#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_->bytes_so_far = 0; -#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = self->priv->soup_session; -#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = _g_object_ref0 (msg); -#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_session_queue_message (_tmp14_, _tmp15_, NULL, NULL); -#line 1199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (real_message); -#line 1199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 7278 "FacebookPublishing.c" - } -#line 1202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = real_message; -#line 1202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_unmanage_message (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage)); -#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = real_message; -#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("wrote-body-data", soup_message_get_type (), &_tmp18_, NULL, FALSE); -#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (msg, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp18_, 0, NULL, (GCallback) _publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data, _tmp17_); -#line 1205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = NULL; -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp19_, NULL); -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp20_ = _tmp19_; -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - switch (_tmp20_) { -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case SOUP_STATUS_OK: -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case SOUP_STATUS_CREATED: -#line 7302 "FacebookPublishing.c" - { -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - break; -#line 7306 "FacebookPublishing.c" - } -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case PUBLISHING_FACEBOOK_EXPIRED_SESSION_STATUS_CODE: -#line 7310 "FacebookPublishing.c" - { - GError* _tmp21_; -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp21_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION, "OAuth Access Token has Expired. Logout user."); -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _tmp21_; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - break; -#line 7321 "FacebookPublishing.c" - } -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case SOUP_STATUS_CANT_RESOLVE: -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case SOUP_STATUS_CANT_RESOLVE_PROXY: -#line 7327 "FacebookPublishing.c" - { - PublishingFacebookGraphSessionGraphMessageImpl* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - guint _tmp25_; - guint _tmp26_; - GError* _tmp27_; -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp22_ = real_message; -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp23_ = publishing_facebook_graph_message_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage)); -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp24_ = _tmp23_; -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp25_, NULL); -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp26_ = _tmp25_; -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp27_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Unable to resolve %s (error code %u)", _tmp24_, _tmp26_); -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _tmp27_; -#line 1220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp24_); -#line 1222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - break; -#line 7355 "FacebookPublishing.c" - } -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case SOUP_STATUS_CANT_CONNECT: -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - case SOUP_STATUS_CANT_CONNECT_PROXY: -#line 7361 "FacebookPublishing.c" - { - PublishingFacebookGraphSessionGraphMessageImpl* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; - guint _tmp31_; - guint _tmp32_; - GError* _tmp33_; -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp28_ = real_message; -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp29_ = publishing_facebook_graph_message_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage)); -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp30_ = _tmp29_; -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp31_, NULL); -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp32_ = _tmp31_; -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp33_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Unable to connect to %s (error code %u)", _tmp30_, _tmp32_); -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _tmp33_; -#line 1226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp30_); -#line 1228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - break; -#line 7389 "FacebookPublishing.c" - } - default: - { - guint _tmp34_; - guint _tmp35_; -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp34_, NULL); -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp35_ = _tmp34_; -#line 1233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp35_ >= ((guint) 100)) { -#line 7401 "FacebookPublishing.c" - PublishingFacebookGraphSessionGraphMessageImpl* _tmp36_; - gchar* _tmp37_; - gchar* _tmp38_; - guint _tmp39_; - guint _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; - GError* _tmp44_; -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp36_ = real_message; -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp37_ = publishing_facebook_graph_message_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage)); -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp38_ = _tmp37_; -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp39_, NULL); -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp40_ = _tmp39_; -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "reason-phrase", &_tmp41_, NULL); -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp42_ = _tmp41_; -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp43_ = _tmp42_; -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp44_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Service %s returned HTTP status code %u %s", _tmp38_, _tmp40_, _tmp43_); -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _tmp44_; -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp43_); -#line 1234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp38_); -#line 7437 "FacebookPublishing.c" - } else { - gchar* _tmp45_; - gchar* _tmp46_; - gchar* _tmp47_; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp48_; - gchar* _tmp49_; - gchar* _tmp50_; - guint _tmp51_; - guint _tmp52_; - GError* _tmp53_; -#line 1238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "reason-phrase", &_tmp45_, NULL); -#line 1238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp46_ = _tmp45_; -#line 1238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp47_ = _tmp46_; -#line 1238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:1238: %s", _tmp47_); -#line 1238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp47_); -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp48_ = real_message; -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp49_ = publishing_facebook_graph_message_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage)); -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp50_ = _tmp49_; -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_object_get (msg, "status-code", &_tmp51_, NULL); -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp52_ = _tmp51_; -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp53_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, "Failure communicating with %s (error code %u)", _tmp50_, _tmp52_); -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _tmp53_; -#line 1239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp50_); -#line 7476 "FacebookPublishing.c" - } -#line 1243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - break; -#line 7480 "FacebookPublishing.c" - } - } -#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp54_ = _error_; -#line 1247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp54_ == NULL) { -#line 7487 "FacebookPublishing.c" - gboolean _tmp55_ = FALSE; - SoupMessageBody* _tmp56_; - guint8* _tmp57_; - gint _tmp57__length1; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp56_ = msg->response_body; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp57_ = _tmp56_->data; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp57__length1 = (gint) _tmp56_->length; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp57_ == NULL) { -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp55_ = TRUE; -#line 7502 "FacebookPublishing.c" - } else { - SoupMessageBody* _tmp58_; - guint8* _tmp59_; - gint _tmp59__length1; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp58_ = msg->response_body; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp59_ = _tmp58_->data; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp59__length1 = (gint) _tmp58_->length; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp55_ = _tmp59__length1 == 0; -#line 7515 "FacebookPublishing.c" - } -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp55_) { -#line 7519 "FacebookPublishing.c" - PublishingFacebookGraphSessionGraphMessageImpl* _tmp60_; - gchar* _tmp61_; - gchar* _tmp62_; - GError* _tmp63_; -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp60_ = real_message; -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp61_ = publishing_facebook_graph_message_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage)); -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp62_ = _tmp61_; -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp63_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "No response data from %s", _tmp62_); -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _error_ = _tmp63_; -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp62_); -#line 7538 "FacebookPublishing.c" - } - } -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp64_ = _error_; -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp64_ == NULL) { -#line 7545 "FacebookPublishing.c" - PublishingFacebookGraphSessionGraphMessageImpl* _tmp65_; -#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp65_ = real_message; -#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage), publishing_facebook_graph_message_signals[PUBLISHING_FACEBOOK_GRAPH_MESSAGE_COMPLETED_SIGNAL], 0); -#line 7551 "FacebookPublishing.c" - } else { - PublishingFacebookGraphSessionGraphMessageImpl* _tmp66_; - GError* _tmp67_; -#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp66_ = real_message; -#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp67_ = _error_; -#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage), publishing_facebook_graph_message_signals[PUBLISHING_FACEBOOK_GRAPH_MESSAGE_FAILED_SIGNAL], 0, _tmp67_); -#line 7561 "FacebookPublishing.c" - } -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_error_); -#line 1187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (real_message); -#line 7567 "FacebookPublishing.c" -} - - -void -publishing_facebook_graph_session_authenticate (PublishingFacebookGraphSession* self, - const gchar* access_token) -{ - gchar* _tmp0_; -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self)); -#line 1258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (access_token != NULL); -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup (access_token); -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->priv->access_token); -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->access_token = _tmp0_; -#line 1260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (self, publishing_facebook_graph_session_signals[PUBLISHING_FACEBOOK_GRAPH_SESSION_AUTHENTICATED_SIGNAL], 0); -#line 7588 "FacebookPublishing.c" -} - - -gboolean -publishing_facebook_graph_session_is_authenticated (PublishingFacebookGraphSession* self) -{ - gboolean result = FALSE; - const gchar* _tmp0_; -#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self), FALSE); -#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->access_token; -#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp0_ != NULL; -#line 1264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 7605 "FacebookPublishing.c" -} - - -PublishingFacebookGraphMessage* -publishing_facebook_graph_session_new_query (PublishingFacebookGraphSession* self, - const gchar* resource_path) -{ - PublishingFacebookGraphMessage* result = NULL; - const gchar* _tmp0_; - PublishingFacebookGraphSessionGraphQueryMessage* _tmp1_; -#line 1273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self), NULL); -#line 1273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (resource_path != NULL, NULL); -#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->access_token; -#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = publishing_facebook_graph_session_graph_query_message_new (self, resource_path, _tmp0_); -#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage); -#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 7628 "FacebookPublishing.c" -} - - -PublishingFacebookGraphMessage* -publishing_facebook_graph_session_new_upload (PublishingFacebookGraphSession* self, - const gchar* resource_path, - SpitPublishingPublishable* publishable, - gboolean suppress_titling, - const gchar* resource_privacy) -{ - PublishingFacebookGraphMessage* result = NULL; - const gchar* _tmp0_; - PublishingFacebookGraphSessionGraphUploadMessage* _tmp1_; -#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self), NULL); -#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (resource_path != NULL, NULL); -#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->access_token; -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = publishing_facebook_graph_session_graph_upload_message_new (self, _tmp0_, resource_path, publishable, suppress_titling, resource_privacy); -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage); -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 7656 "FacebookPublishing.c" -} - - -PublishingFacebookGraphMessage* -publishing_facebook_graph_session_new_create_album (PublishingFacebookGraphSession* self, - const gchar* album_name, - const gchar* privacy) -{ - PublishingFacebookGraphMessage* result = NULL; - const gchar* _tmp0_; - PublishingFacebookGraphSessionGraphCreateAlbumMessage* _tmp1_; -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self), NULL); -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (album_name != NULL, NULL); -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (privacy != NULL, NULL); -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->access_token; -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = publishing_facebook_graph_session_graph_create_album_message_new (self, _tmp0_, album_name, privacy); -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage); -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 7682 "FacebookPublishing.c" -} - - -void -publishing_facebook_graph_session_send_message (PublishingFacebookGraphSession* self, - PublishingFacebookGraphMessage* message) -{ - PublishingFacebookGraphSessionGraphMessageImpl* real_message = NULL; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp0_; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp1_; - SoupMessage* _tmp2_; - SoupURI* _tmp3_; - SoupURI* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp9_; -#line 1287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self)); -#line 1287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 1288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _publishing_facebook_graph_message_ref0 (G_TYPE_CHECK_INSTANCE_CAST (message, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)); -#line 1288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - real_message = _tmp0_; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = real_message; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_->soup_message; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = soup_message_get_uri (_tmp2_); -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _tmp3_; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = soup_uri_to_string (_tmp4_, FALSE); -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _tmp5_; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = g_strconcat ("making HTTP request to URI: ", _tmp6_, NULL); -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = _tmp7_; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_debug ("FacebookPublishing.vala:1290: %s", _tmp8_); -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp8_); -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp6_); -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = real_message; -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (publishing_facebook_graph_session_graph_message_impl_prepare_for_transmission (_tmp9_)) { -#line 7735 "FacebookPublishing.c" - SoupSession* _tmp10_; - PublishingFacebookGraphSessionGraphMessageImpl* _tmp11_; - SoupMessage* _tmp12_; - SoupMessage* _tmp13_; -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_manage_message (self, message); -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = self->priv->soup_session; -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = real_message; -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = _tmp11_->soup_message; -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = _g_object_ref0 (_tmp12_); -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_session_queue_message (_tmp10_, _tmp13_, NULL, NULL); -#line 7752 "FacebookPublishing.c" - } -#line 1287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (real_message); -#line 7756 "FacebookPublishing.c" -} - - -void -publishing_facebook_graph_session_stop_transactions (PublishingFacebookGraphSession* self) -{ - SoupSession* _tmp0_; -#line 1298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (self)); -#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->soup_session; -#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_session_abort (_tmp0_); -#line 7770 "FacebookPublishing.c" -} - - -static PublishingFacebookGraphSessionGraphMessageImpl* -publishing_facebook_graph_session_graph_message_impl_construct (GType object_type, - PublishingFacebookGraphSession* host_session, - PublishingRESTSupportHttpMethod method, - const gchar* relative_uri, - const gchar* access_token, - PublishingFacebookEndpoint endpoint) -{ - PublishingFacebookGraphSessionGraphMessageImpl* self = NULL; - gchar* _tmp0_; - gchar* endpoint_uri = NULL; - gchar* _tmp1_; - GError * _inner_error_ = NULL; -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (host_session), NULL); -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (relative_uri != NULL, NULL); -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (access_token != NULL, NULL); -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookGraphSessionGraphMessageImpl*) publishing_facebook_graph_message_construct (object_type); -#line 1007 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->method = method; -#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strdup (access_token); -#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->access_token); -#line 1008 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->access_token = _tmp0_; -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->host_session = host_session; -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->bytes_so_far = 0; -#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = publishing_facebook_endpoint_to_uri (endpoint); -#line 1012 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - endpoint_uri = _tmp1_; -#line 7811 "FacebookPublishing.c" - { - GRegex* starting_slashes = NULL; - GRegex* _tmp2_; - gchar* _tmp3_ = NULL; - GRegex* _tmp4_; - gchar* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = g_regex_new ("^/+", 0, 0, &_inner_error_); -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - starting_slashes = _tmp2_; -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 7828 "FacebookPublishing.c" - goto __catch4_g_regex_error; - } -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (endpoint_uri); -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 1014 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 7839 "FacebookPublishing.c" - } -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = starting_slashes; -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = g_regex_replace (_tmp4_, relative_uri, (gssize) -1, 0, "", 0, &_inner_error_); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _tmp5_; -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_regex_unref0 (starting_slashes); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 7853 "FacebookPublishing.c" - goto __catch4_g_regex_error; - } -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_regex_unref0 (starting_slashes); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (endpoint_uri); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 7866 "FacebookPublishing.c" - } -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = endpoint_uri; -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = g_strconcat (_tmp6_, _tmp3_, NULL); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->uri); -#line 1015 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->uri = _tmp7_; -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp3_); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_regex_unref0 (starting_slashes); -#line 7880 "FacebookPublishing.c" - } - goto __finally4; - __catch4_g_regex_error: - { - GError* err = NULL; -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - err = _inner_error_; -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _inner_error_ = NULL; -#line 1017 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_assert_not_reached (); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (err); -#line 7894 "FacebookPublishing.c" - } - __finally4: -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (endpoint_uri); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 7907 "FacebookPublishing.c" - } -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (endpoint_uri); -#line 1005 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 7913 "FacebookPublishing.c" -} - - -static gboolean -publishing_facebook_graph_session_graph_message_impl_real_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* self) -{ - gboolean result = FALSE; -#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = TRUE; -#line 1022 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 7925 "FacebookPublishing.c" -} - - -gboolean -publishing_facebook_graph_session_graph_message_impl_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* self) -{ -#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_MESSAGE_IMPL (self), FALSE); -#line 1021 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_MESSAGE_IMPL_GET_CLASS (self)->prepare_for_transmission (self); -#line 7936 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_graph_session_graph_message_impl_real_get_uri (PublishingFacebookGraphMessage* base) -{ - PublishingFacebookGraphSessionGraphMessageImpl * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl); -#line 1026 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->uri; -#line 1026 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1026 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp1_; -#line 1026 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 7957 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_graph_session_graph_message_impl_real_get_response_body (PublishingFacebookGraphMessage* base) -{ - PublishingFacebookGraphSessionGraphMessageImpl * self; - gchar* result = NULL; - SoupMessage* _tmp0_; - SoupMessageBody* _tmp1_; - guint8* _tmp2_; - gint _tmp2__length1; - gchar* _tmp3_; -#line 1029 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl); -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->soup_message; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _tmp0_->response_body; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_->data; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2__length1 = (gint) _tmp1_->length; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = g_strdup ((const gchar*) _tmp2_); -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = _tmp3_; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 7987 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data (PublishingFacebookGraphSessionGraphMessageImpl* self, - SoupBuffer* chunk) -{ - gint _tmp0_; - gsize _tmp1_; - gint _tmp2_; - SoupMessage* _tmp3_; - SoupMessageBody* _tmp4_; - gint64 _tmp5_; -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_GRAPH_SESSION_IS_GRAPH_MESSAGE_IMPL (self)); -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (chunk != NULL); -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->bytes_so_far; -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = chunk->length; -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->bytes_so_far = _tmp0_ + ((gint) _tmp1_); -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = self->bytes_so_far; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->soup_message; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _tmp3_->request_body; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp4_->length; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage), publishing_facebook_graph_message_signals[PUBLISHING_FACEBOOK_GRAPH_MESSAGE_DATA_TRANSMITTED_SIGNAL], 0, _tmp2_, (gint) _tmp5_); -#line 8021 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_message_impl_class_init (PublishingFacebookGraphSessionGraphMessageImplClass * klass) -{ -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_graph_message_impl_parent_class = g_type_class_peek_parent (klass); -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphMessageClass *) klass)->finalize = publishing_facebook_graph_session_graph_message_impl_finalize; -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphSessionGraphMessageImplClass *) klass)->prepare_for_transmission = (gboolean (*) (PublishingFacebookGraphSessionGraphMessageImpl *)) publishing_facebook_graph_session_graph_message_impl_real_prepare_for_transmission; -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphMessageClass *) klass)->get_uri = (gchar* (*) (PublishingFacebookGraphMessage *)) publishing_facebook_graph_session_graph_message_impl_real_get_uri; -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphMessageClass *) klass)->get_response_body = (gchar* (*) (PublishingFacebookGraphMessage *)) publishing_facebook_graph_session_graph_message_impl_real_get_response_body; -#line 8038 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_message_impl_instance_init (PublishingFacebookGraphSessionGraphMessageImpl * self) -{ -} - - -static void -publishing_facebook_graph_session_graph_message_impl_finalize (PublishingFacebookGraphMessage * obj) -{ - PublishingFacebookGraphSessionGraphMessageImpl * self; -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->uri); -#line 1000 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->access_token); -#line 1001 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->soup_message); -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - PUBLISHING_FACEBOOK_GRAPH_MESSAGE_CLASS (publishing_facebook_graph_session_graph_message_impl_parent_class)->finalize (obj); -#line 8062 "FacebookPublishing.c" -} - - -static GType -publishing_facebook_graph_session_graph_message_impl_get_type (void) -{ - static volatile gsize publishing_facebook_graph_session_graph_message_impl_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_graph_session_graph_message_impl_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionGraphMessageImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_graph_message_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSessionGraphMessageImpl), 0, (GInstanceInitFunc) publishing_facebook_graph_session_graph_message_impl_instance_init, NULL }; - GType publishing_facebook_graph_session_graph_message_impl_type_id; - publishing_facebook_graph_session_graph_message_impl_type_id = g_type_register_static (PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, "PublishingFacebookGraphSessionGraphMessageImpl", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&publishing_facebook_graph_session_graph_message_impl_type_id__volatile, publishing_facebook_graph_session_graph_message_impl_type_id); - } - return publishing_facebook_graph_session_graph_message_impl_type_id__volatile; -} - - -static void -_vala_SoupURI_free (SoupURI* self) -{ -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_boxed_free (soup_uri_get_type (), self); -#line 8085 "FacebookPublishing.c" -} - - -static PublishingFacebookGraphSessionGraphQueryMessage* -publishing_facebook_graph_session_graph_query_message_construct (GType object_type, - PublishingFacebookGraphSession* host_session, - const gchar* relative_uri, - const gchar* access_token) -{ - PublishingFacebookGraphSessionGraphQueryMessage* self = NULL; - SoupURI* destination_uri = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - SoupURI* _tmp5_; - SoupURI* _tmp6_; - PublishingRESTSupportHttpMethod _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - SoupMessage* _tmp10_; - SoupMessage* _tmp11_; -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (host_session), NULL); -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (relative_uri != NULL, NULL); -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (access_token != NULL, NULL); -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookGraphSessionGraphQueryMessage*) publishing_facebook_graph_session_graph_message_impl_construct (object_type, host_session, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, relative_uri, access_token, PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT); -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->uri; -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = g_strconcat (_tmp0_, "?access_token=", NULL); -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_; -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = g_strconcat (_tmp2_, access_token, NULL); -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = _tmp3_; -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = soup_uri_new (_tmp4_); -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _tmp5_; -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp4_); -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp2_); -#line 1045 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - destination_uri = _tmp6_; -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->method; -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = publishing_rest_support_http_method_to_string (_tmp7_); -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = _tmp8_; -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = soup_message_new_from_uri (_tmp9_, destination_uri); -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message); -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message = _tmp10_; -#line 1046 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp9_); -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect (_tmp11_, "wrote-body-data", (GCallback) _publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data, G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)); -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_SoupURI_free0 (destination_uri); -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 8159 "FacebookPublishing.c" -} - - -static PublishingFacebookGraphSessionGraphQueryMessage* -publishing_facebook_graph_session_graph_query_message_new (PublishingFacebookGraphSession* host_session, - const gchar* relative_uri, - const gchar* access_token) -{ -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_graph_session_graph_query_message_construct (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_QUERY_MESSAGE, host_session, relative_uri, access_token); -#line 8170 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_query_message_class_init (PublishingFacebookGraphSessionGraphQueryMessageClass * klass) -{ -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_graph_query_message_parent_class = g_type_class_peek_parent (klass); -#line 8179 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_query_message_instance_init (PublishingFacebookGraphSessionGraphQueryMessage * self) -{ -} - - -static GType -publishing_facebook_graph_session_graph_query_message_get_type (void) -{ - static volatile gsize publishing_facebook_graph_session_graph_query_message_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_graph_session_graph_query_message_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionGraphQueryMessageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_graph_query_message_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSessionGraphQueryMessage), 0, (GInstanceInitFunc) publishing_facebook_graph_session_graph_query_message_instance_init, NULL }; - GType publishing_facebook_graph_session_graph_query_message_type_id; - publishing_facebook_graph_session_graph_query_message_type_id = g_type_register_static (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, "PublishingFacebookGraphSessionGraphQueryMessage", &g_define_type_info, 0); - g_once_init_leave (&publishing_facebook_graph_session_graph_query_message_type_id__volatile, publishing_facebook_graph_session_graph_query_message_type_id); - } - return publishing_facebook_graph_session_graph_query_message_type_id__volatile; -} - - -static PublishingFacebookGraphSessionGraphEndpointProbeMessage* -publishing_facebook_graph_session_graph_endpoint_probe_message_construct (GType object_type, - PublishingFacebookGraphSession* host_session) -{ - PublishingFacebookGraphSessionGraphEndpointProbeMessage* self = NULL; - PublishingRESTSupportHttpMethod _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; - SoupURI* _tmp4_; - SoupURI* _tmp5_; - SoupMessage* _tmp6_; - SoupMessage* _tmp7_; -#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (host_session), NULL); -#line 1053 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookGraphSessionGraphEndpointProbeMessage*) publishing_facebook_graph_session_graph_message_impl_construct (object_type, host_session, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET, "/", "", PUBLISHING_FACEBOOK_ENDPOINT_TEST_CONNECTION); -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->method; -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = publishing_rest_support_http_method_to_string (_tmp0_); -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp1_; -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->uri; -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = soup_uri_new (_tmp3_); -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp4_; -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = soup_message_new_from_uri (_tmp2_, _tmp5_); -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message); -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message = _tmp6_; -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_SoupURI_free0 (_tmp5_); -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp2_); -#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message; -#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect (_tmp7_, "wrote-body-data", (GCallback) _publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data, G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)); -#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 8248 "FacebookPublishing.c" -} - - -static PublishingFacebookGraphSessionGraphEndpointProbeMessage* -publishing_facebook_graph_session_graph_endpoint_probe_message_new (PublishingFacebookGraphSession* host_session) -{ -#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_graph_session_graph_endpoint_probe_message_construct (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_ENDPOINT_PROBE_MESSAGE, host_session); -#line 8257 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_endpoint_probe_message_class_init (PublishingFacebookGraphSessionGraphEndpointProbeMessageClass * klass) -{ -#line 1051 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_graph_endpoint_probe_message_parent_class = g_type_class_peek_parent (klass); -#line 8266 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_endpoint_probe_message_instance_init (PublishingFacebookGraphSessionGraphEndpointProbeMessage * self) -{ -} - - -static GType -publishing_facebook_graph_session_graph_endpoint_probe_message_get_type (void) -{ - static volatile gsize publishing_facebook_graph_session_graph_endpoint_probe_message_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_graph_session_graph_endpoint_probe_message_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionGraphEndpointProbeMessageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_graph_endpoint_probe_message_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSessionGraphEndpointProbeMessage), 0, (GInstanceInitFunc) publishing_facebook_graph_session_graph_endpoint_probe_message_instance_init, NULL }; - GType publishing_facebook_graph_session_graph_endpoint_probe_message_type_id; - publishing_facebook_graph_session_graph_endpoint_probe_message_type_id = g_type_register_static (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, "PublishingFacebookGraphSessionGraphEndpointProbeMessage", &g_define_type_info, 0); - g_once_init_leave (&publishing_facebook_graph_session_graph_endpoint_probe_message_type_id__volatile, publishing_facebook_graph_session_graph_endpoint_probe_message_type_id); - } - return publishing_facebook_graph_session_graph_endpoint_probe_message_type_id__volatile; -} - - -static gchar* -g_date_time_to_string (GDateTime* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 2952 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 2953 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_date_time_format (self, "%FT%H:%M:%S%z"); -#line 2953 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 2953 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 8303 "FacebookPublishing.c" -} - - -static void -_vala_SoupMultipart_free (SoupMultipart* self) -{ -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_boxed_free (soup_multipart_get_type (), self); -#line 8312 "FacebookPublishing.c" -} - - -static void -_vala_SoupBuffer_free (SoupBuffer* self) -{ -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_boxed_free (soup_buffer_get_type (), self); -#line 8321 "FacebookPublishing.c" -} - - -static PublishingFacebookGraphSessionGraphUploadMessage* -publishing_facebook_graph_session_graph_upload_message_construct (GType object_type, - PublishingFacebookGraphSession* host_session, - const gchar* access_token, - const gchar* relative_uri, - SpitPublishingPublishable* publishable, - gboolean suppress_titling, - const gchar* resource_privacy) -{ - PublishingFacebookGraphSessionGraphUploadMessage* self = NULL; - PublishingFacebookEndpoint _tmp0_ = 0; - gboolean _tmp1_ = FALSE; - SpitPublishingPublishable* _tmp2_; - PublishingRESTSupportHttpMethod _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - const gchar* _tmp14_; - SoupURI* _tmp15_; - SoupURI* _tmp16_; - SoupMessage* _tmp17_; - SoupMessage* _tmp18_; - guint8* payload = NULL; - GMappedFile* _tmp19_; - gchar* _tmp20_; - gint payload_length1; - gint _payload_size_; - GMappedFile* _tmp21_; - gint _tmp22_; - SoupBuffer* image_data = NULL; - guint8* _tmp23_; - gint _tmp23__length1; - SoupBuffer* _tmp24_; - SoupMultipart* mp_envelope = NULL; - SoupMultipart* _tmp25_; - SoupMultipart* _tmp26_; - gchar* publishable_title = NULL; - gchar* _tmp28_; - gboolean _tmp29_ = FALSE; - gchar* publishable_comment = NULL; - gchar* _tmp33_; - gboolean _tmp34_ = FALSE; - const gchar* _tmp43_ = NULL; - gchar* source_file_mime_type = NULL; - gchar* _tmp44_; - SoupMultipart* _tmp45_; - GFile* _tmp46_; - GFile* _tmp47_; - gchar* _tmp48_; - gchar* _tmp49_; - const gchar* _tmp50_; - SoupBuffer* _tmp51_; - SoupMultipart* _tmp52_; - SoupMessage* _tmp53_; - SoupMessageHeaders* _tmp54_; - SoupMessage* _tmp55_; - SoupMessageBody* _tmp56_; - GError * _inner_error_ = NULL; -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (host_session), NULL); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (access_token != NULL, NULL); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (relative_uri != NULL, NULL); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (spit_publishing_publishable_get_media_type (publishable) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 1070 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = PUBLISHING_FACEBOOK_ENDPOINT_VIDEO; -#line 8394 "FacebookPublishing.c" - } else { -#line 1070 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT; -#line 8398 "FacebookPublishing.c" - } -#line 1068 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookGraphSessionGraphUploadMessage*) publishing_facebook_graph_session_graph_message_impl_construct (object_type, host_session, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST, relative_uri, access_token, _tmp0_); -#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (spit_publishing_publishable_get_media_type (publishable) != SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = TRUE; -#line 8406 "FacebookPublishing.c" - } else { -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = resource_privacy != NULL; -#line 8410 "FacebookPublishing.c" - } -#line 1075 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (_tmp1_, "publishable.get_media_type() != Spit.Publishing.Publisher.MediaType.VIDEO || resource_privacy != null"); -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _g_object_ref0 (publishable); -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->publishable); -#line 1078 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishable = _tmp2_; -#line 8420 "FacebookPublishing.c" - { - GMappedFile* _tmp3_ = NULL; - GFile* _tmp4_; - GFile* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - GMappedFile* _tmp8_; - GMappedFile* _tmp9_; - GMappedFile* _tmp10_; -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = spit_publishing_publishable_get_serialized_file (publishable); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp4_; -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = g_file_get_path (_tmp5_); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _tmp6_; -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = g_mapped_file_new (_tmp7_, FALSE, &_inner_error_); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = _tmp8_; -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp7_); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (_tmp5_); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _tmp9_; -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_inner_error_->domain == G_FILE_ERROR) { -#line 8452 "FacebookPublishing.c" - goto __catch5_g_file_error; - } -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 8461 "FacebookPublishing.c" - } -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = _tmp3_; -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = NULL; -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_mapped_file_unref0 (self->priv->mapped_file); -#line 1082 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->mapped_file = _tmp10_; -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_mapped_file_unref0 (_tmp3_); -#line 8473 "FacebookPublishing.c" - } - goto __finally5; - __catch5_g_file_error: - { - GError* e = NULL; -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - e = _inner_error_; -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _inner_error_ = NULL; -#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (e); -#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 8487 "FacebookPublishing.c" - } - __finally5: -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_clear_error (&_inner_error_); -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 8498 "FacebookPublishing.c" - } -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->method; -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = publishing_rest_support_http_method_to_string (_tmp11_); -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = _tmp12_; -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->uri; -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = soup_uri_new (_tmp14_); -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = _tmp15_; -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = soup_message_new_from_uri (_tmp13_, _tmp16_); -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message); -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message = _tmp17_; -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_SoupURI_free0 (_tmp16_); -#line 1088 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp13_); -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message; -#line 1089 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect (_tmp18_, "wrote-body-data", (GCallback) _publishing_facebook_graph_session_graph_message_impl_on_wrote_body_data_soup_message_wrote_body_data, G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)); -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp19_ = self->priv->mapped_file; -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp20_ = g_mapped_file_get_contents (_tmp19_); -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - payload = (guint8*) _tmp20_; -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - payload_length1 = sizeof (gchar) / sizeof (guint8); -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _payload_size_ = payload_length1; -#line 1092 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp21_ = self->priv->mapped_file; -#line 1092 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - payload_length1 = (gint) g_mapped_file_get_length (_tmp21_); -#line 1092 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp22_ = payload_length1; -#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp23_ = payload; -#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp23__length1 = payload_length1; -#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp24_ = soup_buffer_new (SOUP_MEMORY_TEMPORARY, _tmp23_, _tmp23__length1); -#line 1094 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - image_data = _tmp24_; -#line 1096 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp25_ = soup_multipart_new ("multipart/form-data"); -#line 1096 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - mp_envelope = _tmp25_; -#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp26_ = mp_envelope; -#line 1098 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_string (_tmp26_, "access_token", access_token); -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (spit_publishing_publishable_get_media_type (publishable) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 8560 "FacebookPublishing.c" - SoupMultipart* _tmp27_; -#line 1101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp27_ = mp_envelope; -#line 1101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_string (_tmp27_, "privacy", resource_privacy); -#line 8566 "FacebookPublishing.c" - } -#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp28_ = spit_publishing_publishable_get_param_string (publishable, "title"); -#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishable_title = _tmp28_; -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!suppress_titling) { -#line 8574 "FacebookPublishing.c" - const gchar* _tmp30_; -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp30_ = publishable_title; -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp29_ = _tmp30_ != NULL; -#line 8580 "FacebookPublishing.c" - } else { -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp29_ = FALSE; -#line 8584 "FacebookPublishing.c" - } -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp29_) { -#line 8588 "FacebookPublishing.c" - SoupMultipart* _tmp31_; - const gchar* _tmp32_; -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp31_ = mp_envelope; -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp32_ = publishable_title; -#line 1106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_string (_tmp31_, "name", _tmp32_); -#line 8597 "FacebookPublishing.c" - } -#line 1109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp33_ = spit_publishing_publishable_get_param_string (publishable, "comment"); -#line 1109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishable_comment = _tmp33_; -#line 1110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!suppress_titling) { -#line 8605 "FacebookPublishing.c" - const gchar* _tmp35_; -#line 1110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp35_ = publishable_comment; -#line 1110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp34_ = _tmp35_ != NULL; -#line 8611 "FacebookPublishing.c" - } else { -#line 1110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp34_ = FALSE; -#line 8615 "FacebookPublishing.c" - } -#line 1110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp34_) { -#line 8619 "FacebookPublishing.c" - SoupMultipart* _tmp36_; - const gchar* _tmp37_; -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp36_ = mp_envelope; -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp37_ = publishable_comment; -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_string (_tmp36_, "message", _tmp37_); -#line 8628 "FacebookPublishing.c" - } -#line 1114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!suppress_titling) { -#line 8632 "FacebookPublishing.c" - SoupMultipart* _tmp38_; - GDateTime* _tmp39_; - GDateTime* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp38_ = mp_envelope; -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp39_ = spit_publishing_publishable_get_exposure_date_time (publishable); -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp40_ = _tmp39_; -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp41_ = g_date_time_to_string (_tmp40_); -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp42_ = _tmp41_; -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_string (_tmp38_, "backdated_time", _tmp42_); -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp42_); -#line 1115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_date_time_unref0 (_tmp40_); -#line 8654 "FacebookPublishing.c" - } -#line 1118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (spit_publishing_publishable_get_media_type (publishable) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 1119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp43_ = "video"; -#line 8660 "FacebookPublishing.c" - } else { -#line 1119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp43_ = "image/jpeg"; -#line 8664 "FacebookPublishing.c" - } -#line 1117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp44_ = g_strdup (_tmp43_); -#line 1117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - source_file_mime_type = _tmp44_; -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp45_ = mp_envelope; -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp46_ = spit_publishing_publishable_get_serialized_file (publishable); -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp47_ = _tmp46_; -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp48_ = g_file_get_basename (_tmp47_); -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp49_ = _tmp48_; -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp50_ = source_file_mime_type; -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp51_ = image_data; -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_file (_tmp45_, "source", _tmp49_, _tmp50_, _tmp51_); -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp49_); -#line 1120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (_tmp47_); -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp52_ = mp_envelope; -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp53_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message; -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp54_ = _tmp53_->request_headers; -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp55_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message; -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp56_ = _tmp55_->request_body; -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_to_message (_tmp52_, _tmp54_, _tmp56_); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (source_file_mime_type); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (publishable_comment); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (publishable_title); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_SoupMultipart_free0 (mp_envelope); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_SoupBuffer_free0 (image_data); -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 8714 "FacebookPublishing.c" -} - - -static PublishingFacebookGraphSessionGraphUploadMessage* -publishing_facebook_graph_session_graph_upload_message_new (PublishingFacebookGraphSession* host_session, - const gchar* access_token, - const gchar* relative_uri, - SpitPublishingPublishable* publishable, - gboolean suppress_titling, - const gchar* resource_privacy) -{ -#line 1065 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_graph_session_graph_upload_message_construct (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, host_session, access_token, relative_uri, publishable, suppress_titling, resource_privacy); -#line 8728 "FacebookPublishing.c" -} - - -static gboolean -publishing_facebook_graph_session_graph_upload_message_real_prepare_for_transmission (PublishingFacebookGraphSessionGraphMessageImpl* base) -{ - PublishingFacebookGraphSessionGraphUploadMessage * self; - gboolean result = FALSE; - GMappedFile* _tmp0_; -#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessage); -#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->mapped_file; -#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp0_ == NULL) { -#line 8744 "FacebookPublishing.c" - SpitPublishingPublishable* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - GError* _tmp8_; - GError* _tmp9_; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->publishable; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = spit_publishing_publishable_get_serialized_file (_tmp1_); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _tmp2_; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = g_file_get_path (_tmp3_); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = _tmp4_; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = g_strdup_printf ("File %s is unavailable.", _tmp5_); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = _tmp6_; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp7_); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = _tmp8_; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, PublishingFacebookGraphMessage), publishing_facebook_graph_message_signals[PUBLISHING_FACEBOOK_GRAPH_MESSAGE_FAILED_SIGNAL], 0, _tmp9_); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_error_free0 (_tmp9_); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp7_); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp5_); -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (_tmp3_); -#line 1130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = FALSE; -#line 1130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 8786 "FacebookPublishing.c" - } else { -#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = TRUE; -#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 8792 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_graph_session_graph_upload_message_class_init (PublishingFacebookGraphSessionGraphUploadMessageClass * klass) -{ -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_graph_upload_message_parent_class = g_type_class_peek_parent (klass); -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphMessageClass *) klass)->finalize = publishing_facebook_graph_session_graph_upload_message_finalize; -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFacebookGraphSessionGraphUploadMessagePrivate)); -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphSessionGraphMessageImplClass *) klass)->prepare_for_transmission = (gboolean (*) (PublishingFacebookGraphSessionGraphMessageImpl *)) publishing_facebook_graph_session_graph_upload_message_real_prepare_for_transmission; -#line 8808 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_upload_message_instance_init (PublishingFacebookGraphSessionGraphUploadMessage * self) -{ -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv = PUBLISHING_FACEBOOK_GRAPH_SESSION_GRAPH_UPLOAD_MESSAGE_GET_PRIVATE (self); -#line 1062 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->mapped_file = NULL; -#line 8819 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_upload_message_finalize (PublishingFacebookGraphMessage * obj) -{ - PublishingFacebookGraphSessionGraphUploadMessage * self; -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_UPLOAD_MESSAGE, PublishingFacebookGraphSessionGraphUploadMessage); -#line 1062 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_mapped_file_unref0 (self->priv->mapped_file); -#line 1063 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->publishable); -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - PUBLISHING_FACEBOOK_GRAPH_MESSAGE_CLASS (publishing_facebook_graph_session_graph_upload_message_parent_class)->finalize (obj); -#line 8835 "FacebookPublishing.c" -} - - -static GType -publishing_facebook_graph_session_graph_upload_message_get_type (void) -{ - static volatile gsize publishing_facebook_graph_session_graph_upload_message_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_graph_session_graph_upload_message_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionGraphUploadMessageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_graph_upload_message_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSessionGraphUploadMessage), 0, (GInstanceInitFunc) publishing_facebook_graph_session_graph_upload_message_instance_init, NULL }; - GType publishing_facebook_graph_session_graph_upload_message_type_id; - publishing_facebook_graph_session_graph_upload_message_type_id = g_type_register_static (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, "PublishingFacebookGraphSessionGraphUploadMessage", &g_define_type_info, 0); - g_once_init_leave (&publishing_facebook_graph_session_graph_upload_message_type_id__volatile, publishing_facebook_graph_session_graph_upload_message_type_id); - } - return publishing_facebook_graph_session_graph_upload_message_type_id__volatile; -} - - -static PublishingFacebookGraphSessionGraphCreateAlbumMessage* -publishing_facebook_graph_session_graph_create_album_message_construct (GType object_type, - PublishingFacebookGraphSession* host_session, - const gchar* access_token, - const gchar* album_name, - const gchar* album_privacy) -{ - PublishingFacebookGraphSessionGraphCreateAlbumMessage* self = NULL; - gboolean _tmp0_ = FALSE; - PublishingRESTSupportHttpMethod _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; - SoupURI* _tmp5_; - SoupURI* _tmp6_; - SoupMessage* _tmp7_; - SoupMultipart* mp_envelope = NULL; - SoupMultipart* _tmp8_; - SoupMessage* _tmp9_; - SoupMessageHeaders* _tmp10_; - SoupMessage* _tmp11_; - SoupMessageBody* _tmp12_; -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (host_session), NULL); -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (access_token != NULL, NULL); -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (album_name != NULL, NULL); -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (album_privacy != NULL, NULL); -#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookGraphSessionGraphCreateAlbumMessage*) publishing_facebook_graph_session_graph_message_impl_construct (object_type, host_session, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST, "/me/albums", access_token, PUBLISHING_FACEBOOK_ENDPOINT_DEFAULT); -#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (album_privacy != NULL) { -#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = g_strcmp0 (album_privacy, "") != 0; -#line 8889 "FacebookPublishing.c" - } else { -#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = FALSE; -#line 8893 "FacebookPublishing.c" - } -#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _vala_assert (_tmp0_, "album_privacy != null && album_privacy != \"\""); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->method; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = publishing_rest_support_http_method_to_string (_tmp1_); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _tmp2_; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->uri; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = soup_uri_new (_tmp4_); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = _tmp5_; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = soup_message_new_from_uri (_tmp3_, _tmp6_); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message = _tmp7_; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_SoupURI_free0 (_tmp6_); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp3_); -#line 1146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = soup_multipart_new ("multipart/form-data"); -#line 1146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - mp_envelope = _tmp8_; -#line 1148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_string (mp_envelope, "access_token", access_token); -#line 1149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_string (mp_envelope, "name", album_name); -#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_append_form_string (mp_envelope, "privacy", album_privacy); -#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message; -#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = _tmp9_->request_headers; -#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, PublishingFacebookGraphSessionGraphMessageImpl)->soup_message; -#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = _tmp11_->request_body; -#line 1152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - soup_multipart_to_message (mp_envelope, _tmp10_, _tmp12_); -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - __vala_SoupMultipart_free0 (mp_envelope); -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 8943 "FacebookPublishing.c" -} - - -static PublishingFacebookGraphSessionGraphCreateAlbumMessage* -publishing_facebook_graph_session_graph_create_album_message_new (PublishingFacebookGraphSession* host_session, - const gchar* access_token, - const gchar* album_name, - const gchar* album_privacy) -{ -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_graph_session_graph_create_album_message_construct (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_CREATE_ALBUM_MESSAGE, host_session, access_token, album_name, album_privacy); -#line 8955 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_create_album_message_class_init (PublishingFacebookGraphSessionGraphCreateAlbumMessageClass * klass) -{ -#line 1137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_graph_create_album_message_parent_class = g_type_class_peek_parent (klass); -#line 8964 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_graph_create_album_message_instance_init (PublishingFacebookGraphSessionGraphCreateAlbumMessage * self) -{ -} - - -static GType -publishing_facebook_graph_session_graph_create_album_message_get_type (void) -{ - static volatile gsize publishing_facebook_graph_session_graph_create_album_message_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_graph_session_graph_create_album_message_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionGraphCreateAlbumMessageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_graph_create_album_message_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSessionGraphCreateAlbumMessage), 0, (GInstanceInitFunc) publishing_facebook_graph_session_graph_create_album_message_instance_init, NULL }; - GType publishing_facebook_graph_session_graph_create_album_message_type_id; - publishing_facebook_graph_session_graph_create_album_message_type_id = g_type_register_static (PUBLISHING_FACEBOOK_GRAPH_SESSION_TYPE_GRAPH_MESSAGE_IMPL, "PublishingFacebookGraphSessionGraphCreateAlbumMessage", &g_define_type_info, 0); - g_once_init_leave (&publishing_facebook_graph_session_graph_create_album_message_type_id__volatile, publishing_facebook_graph_session_graph_create_album_message_type_id); - } - return publishing_facebook_graph_session_graph_create_album_message_type_id__volatile; -} - - -static void -publishing_facebook_value_graph_session_init (GValue* value) -{ -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 8993 "FacebookPublishing.c" -} - - -static void -publishing_facebook_value_graph_session_free_value (GValue* value) -{ -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (value->data[0].v_pointer) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_unref (value->data[0].v_pointer); -#line 9004 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_value_graph_session_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = publishing_facebook_graph_session_ref (src_value->data[0].v_pointer); -#line 9017 "FacebookPublishing.c" - } else { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 9021 "FacebookPublishing.c" - } -} - - -static gpointer -publishing_facebook_value_graph_session_peek_pointer (const GValue* value) -{ -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 9031 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_graph_session_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (collect_values[0].v_pointer) { -#line 9043 "FacebookPublishing.c" - PublishingFacebookGraphSession * object; - object = collect_values[0].v_pointer; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 9050 "FacebookPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 9054 "FacebookPublishing.c" - } -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = publishing_facebook_graph_session_ref (object); -#line 9058 "FacebookPublishing.c" - } else { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 9062 "FacebookPublishing.c" - } -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 9066 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_graph_session_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFacebookGraphSession ** object_p; - object_p = collect_values[0].v_pointer; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!object_p) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 9082 "FacebookPublishing.c" - } -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!value->data[0].v_pointer) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = NULL; -#line 9088 "FacebookPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 9092 "FacebookPublishing.c" - } else { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = publishing_facebook_graph_session_ref (value->data[0].v_pointer); -#line 9096 "FacebookPublishing.c" - } -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 9100 "FacebookPublishing.c" -} - - -GParamSpec* -publishing_facebook_param_spec_graph_session (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFacebookParamSpecGraphSession* spec; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION), NULL); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return G_PARAM_SPEC (spec); -#line 9120 "FacebookPublishing.c" -} - - -gpointer -publishing_facebook_value_get_graph_session (const GValue* value) -{ -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION), NULL); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 9131 "FacebookPublishing.c" -} - - -void -publishing_facebook_value_set_graph_session (GValue* value, - gpointer v_object) -{ - PublishingFacebookGraphSession * old; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION)); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION)); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_ref (value->data[0].v_pointer); -#line 9154 "FacebookPublishing.c" - } else { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 9158 "FacebookPublishing.c" - } -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_unref (old); -#line 9164 "FacebookPublishing.c" - } -} - - -void -publishing_facebook_value_take_graph_session (GValue* value, - gpointer v_object) -{ - PublishingFacebookGraphSession * old; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION)); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION)); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 9186 "FacebookPublishing.c" - } else { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 9190 "FacebookPublishing.c" - } -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_unref (old); -#line 9196 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_graph_session_class_init (PublishingFacebookGraphSessionClass * klass) -{ -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_parent_class = g_type_class_peek_parent (klass); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookGraphSessionClass *) klass)->finalize = publishing_facebook_graph_session_finalize; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFacebookGraphSessionPrivate)); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_signals[PUBLISHING_FACEBOOK_GRAPH_SESSION_AUTHENTICATED_SIGNAL] = g_signal_new ("authenticated", PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 9212 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_instance_init (PublishingFacebookGraphSession * self) -{ -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv = PUBLISHING_FACEBOOK_GRAPH_SESSION_GET_PRIVATE (self); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->ref_count = 1; -#line 9223 "FacebookPublishing.c" -} - - -static void -publishing_facebook_graph_session_finalize (PublishingFacebookGraphSession * obj) -{ - PublishingFacebookGraphSession * self; - SoupSession* _tmp0_; - guint _tmp1_; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_GRAPH_SESSION, PublishingFacebookGraphSession); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_destroy (self); -#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->soup_session; -#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("request-unqueued", soup_session_get_type (), &_tmp1_, NULL, FALSE); -#line 1172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_graph_session_on_request_unqueued_soup_session_request_unqueued, self); -#line 1158 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (self->priv->soup_session); -#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (self->priv->access_token); -#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (self->priv->current_message); -#line 9249 "FacebookPublishing.c" -} - - -GType -publishing_facebook_graph_session_get_type (void) -{ - static volatile gsize publishing_facebook_graph_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_graph_session_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_facebook_value_graph_session_init, publishing_facebook_value_graph_session_free_value, publishing_facebook_value_graph_session_copy_value, publishing_facebook_value_graph_session_peek_pointer, "p", publishing_facebook_value_graph_session_collect_value, "p", publishing_facebook_value_graph_session_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookGraphSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_graph_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookGraphSession), 0, (GInstanceInitFunc) publishing_facebook_graph_session_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_facebook_graph_session_type_id; - publishing_facebook_graph_session_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookGraphSession", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_facebook_graph_session_type_id__volatile, publishing_facebook_graph_session_type_id); - } - return publishing_facebook_graph_session_type_id__volatile; -} - - -gpointer -publishing_facebook_graph_session_ref (gpointer instance) -{ - PublishingFacebookGraphSession * self; - self = instance; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return instance; -#line 9278 "FacebookPublishing.c" -} - - -void -publishing_facebook_graph_session_unref (gpointer instance) -{ - PublishingFacebookGraphSession * self; - self = instance; -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - PUBLISHING_FACEBOOK_GRAPH_SESSION_GET_CLASS (self)->finalize (self); -#line 996 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 9293 "FacebookPublishing.c" - } -} - - -static SpitPublishingPublishable** -_vala_array_dup3 (SpitPublishingPublishable** self, - int length) -{ - SpitPublishingPublishable** result; - int i; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result = g_new0 (SpitPublishingPublishable*, length + 1); -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - for (i = 0; i < length; i++) { -#line 9308 "FacebookPublishing.c" - SpitPublishingPublishable* _tmp0_; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - result[i] = _tmp0_; -#line 9314 "FacebookPublishing.c" - } -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return result; -#line 9318 "FacebookPublishing.c" -} - - -static gpointer -_publishing_facebook_graph_session_ref0 (gpointer self) -{ -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? publishing_facebook_graph_session_ref (self) : NULL; -#line 9327 "FacebookPublishing.c" -} - - -static gpointer -_publishing_facebook_publishing_parameters_ref0 (gpointer self) -{ -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self ? publishing_facebook_publishing_parameters_ref (self) : NULL; -#line 9336 "FacebookPublishing.c" -} - - -PublishingFacebookUploader* -publishing_facebook_uploader_construct (GType object_type, - PublishingFacebookGraphSession* session, - PublishingFacebookPublishingParameters* publishing_params, - SpitPublishingPublishable** publishables, - int publishables_length1) -{ - PublishingFacebookUploader* self = NULL; - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; - PublishingFacebookGraphSession* _tmp1_; - PublishingFacebookPublishingParameters* _tmp2_; -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_SESSION (session), NULL); -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (PUBLISHING_FACEBOOK_IS_PUBLISHING_PARAMETERS (publishing_params), NULL); -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = (PublishingFacebookUploader*) g_type_create_instance (object_type); -#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->current_file = 0; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = (publishables != NULL) ? _vala_array_dup3 (publishables, publishables_length1) : ((gpointer) publishables); -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = publishables_length1; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishables = _tmp0_; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishables_length1 = _tmp0__length1; -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->_publishables_size_ = self->priv->publishables_length1; -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = _publishing_facebook_graph_session_ref0 (session); -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_session_unref0 (self->priv->session); -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->session = _tmp1_; -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _publishing_facebook_publishing_parameters_ref0 (publishing_params); -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_publishing_parameters_unref0 (self->priv->publishing_params); -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishing_params = _tmp2_; -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return self; -#line 9386 "FacebookPublishing.c" -} - - -PublishingFacebookUploader* -publishing_facebook_uploader_new (PublishingFacebookGraphSession* session, - PublishingFacebookPublishingParameters* publishing_params, - SpitPublishingPublishable** publishables, - int publishables_length1) -{ -#line 1313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return publishing_facebook_uploader_construct (PUBLISHING_FACEBOOK_TYPE_UPLOADER, session, publishing_params, publishables, publishables_length1); -#line 9398 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_uploader_on_chunk_transmitted_publishing_facebook_graph_message_data_transmitted (PublishingFacebookGraphMessage* _sender, - gint bytes_sent_so_far, - gint total_bytes, - gpointer self) -{ -#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_on_chunk_transmitted ((PublishingFacebookUploader*) self, bytes_sent_so_far, total_bytes); -#line 9410 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_uploader_on_message_completed_publishing_facebook_graph_message_completed (PublishingFacebookGraphMessage* _sender, - gpointer self) -{ -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_on_message_completed ((PublishingFacebookUploader*) self, _sender); -#line 9420 "FacebookPublishing.c" -} - - -static void -_publishing_facebook_uploader_on_message_failed_publishing_facebook_graph_message_failed (PublishingFacebookGraphMessage* _sender, - GError* err, - gpointer self) -{ -#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_on_message_failed ((PublishingFacebookUploader*) self, _sender, err); -#line 9431 "FacebookPublishing.c" -} - - -static void -publishing_facebook_uploader_send_current_file (PublishingFacebookUploader* self) -{ - SpitPublishingPublishable* publishable = NULL; - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; - gint _tmp1_; - SpitPublishingPublishable* _tmp2_; - SpitPublishingPublishable* _tmp3_; - GFile* file = NULL; - SpitPublishingPublishable* _tmp4_; - GFile* _tmp5_; - GFile* _tmp6_; - gchar* _tmp8_ = NULL; - SpitPublishingPublishable* _tmp9_; - gchar* resource_uri = NULL; - gchar* _tmp15_; - const gchar* _tmp16_ = NULL; - SpitPublishingPublishable* _tmp17_; - gchar* resource_privacy = NULL; - gchar* _tmp20_; - PublishingFacebookGraphMessage* upload_message = NULL; - PublishingFacebookGraphSession* _tmp21_; - const gchar* _tmp22_; - SpitPublishingPublishable* _tmp23_; - PublishingFacebookPublishingParameters* _tmp24_; - gboolean _tmp25_; - const gchar* _tmp26_; - PublishingFacebookGraphMessage* _tmp27_; - PublishingFacebookGraphMessage* _tmp28_; - PublishingFacebookGraphMessage* _tmp29_; - PublishingFacebookGraphMessage* _tmp30_; - PublishingFacebookGraphSession* _tmp31_; - PublishingFacebookGraphMessage* _tmp32_; -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self)); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->publishables; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = self->priv->publishables_length1; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->current_file; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = _tmp0_[_tmp1_]; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishable = _tmp3_; -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = publishable; -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = spit_publishing_publishable_get_serialized_file (_tmp4_); -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - file = _tmp5_; -#line 1326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = file; -#line 1326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp6_ == NULL) { -#line 9493 "FacebookPublishing.c" - gint _tmp7_; -#line 1327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = self->priv->current_file; -#line 1327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->current_file = _tmp7_ + 1; -#line 1328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (file); -#line 1328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (publishable); -#line 1328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return; -#line 9505 "FacebookPublishing.c" - } -#line 1332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp9_ = publishable; -#line 1332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (spit_publishing_publishable_get_media_type (_tmp9_) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) { -#line 9511 "FacebookPublishing.c" - PublishingFacebookPublishingParameters* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp10_ = self->priv->publishing_params; -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp11_ = publishing_facebook_publishing_parameters_get_target_album_id (_tmp10_); -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp12_ = _tmp11_; -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp13_ = g_strdup_printf ("/%s/photos", _tmp12_); -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp8_); -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = _tmp13_; -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp12_); -#line 9530 "FacebookPublishing.c" - } else { - gchar* _tmp14_; -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp14_ = g_strdup ("/me/videos"); -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp8_); -#line 1333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = _tmp14_; -#line 9539 "FacebookPublishing.c" - } -#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp15_ = g_strdup (_tmp8_); -#line 1331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - resource_uri = _tmp15_; -#line 1335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp17_ = publishable; -#line 1335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (spit_publishing_publishable_get_media_type (_tmp17_) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 9549 "FacebookPublishing.c" - PublishingFacebookPublishingParameters* _tmp18_; - const gchar* _tmp19_; -#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp18_ = self->priv->publishing_params; -#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp19_ = _tmp18_->privacy_object; -#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = _tmp19_; -#line 9558 "FacebookPublishing.c" - } else { -#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp16_ = NULL; -#line 9562 "FacebookPublishing.c" - } -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp20_ = g_strdup (_tmp16_); -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - resource_privacy = _tmp20_; -#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp21_ = self->priv->session; -#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp22_ = resource_uri; -#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp23_ = publishable; -#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp24_ = self->priv->publishing_params; -#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp25_ = _tmp24_->strip_metadata; -#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp26_ = resource_privacy; -#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp27_ = publishing_facebook_graph_session_new_upload (_tmp21_, _tmp22_, _tmp23_, _tmp25_, _tmp26_); -#line 1337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - upload_message = _tmp27_; -#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp28_ = upload_message; -#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect (_tmp28_, "data-transmitted", (GCallback) _publishing_facebook_uploader_on_chunk_transmitted_publishing_facebook_graph_message_data_transmitted, self); -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp29_ = upload_message; -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect (_tmp29_, "completed", (GCallback) _publishing_facebook_uploader_on_message_completed_publishing_facebook_graph_message_completed, self); -#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp30_ = upload_message; -#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_connect (_tmp30_, "failed", (GCallback) _publishing_facebook_uploader_on_message_failed_publishing_facebook_graph_message_failed, self); -#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp31_ = self->priv->session; -#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp32_ = upload_message; -#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_graph_session_send_message (_tmp31_, _tmp32_); -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_message_unref0 (upload_message); -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (resource_privacy); -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (resource_uri); -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_free0 (_tmp8_); -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (file); -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _g_object_unref0 (publishable); -#line 9614 "FacebookPublishing.c" -} - - -static void -publishing_facebook_uploader_send_files (PublishingFacebookUploader* self) -{ -#line 1347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self)); -#line 1348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->current_file = 0; -#line 1349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_send_current_file (self); -#line 9627 "FacebookPublishing.c" -} - - -static void -publishing_facebook_uploader_on_chunk_transmitted (PublishingFacebookUploader* self, - gint bytes_written_so_far, - gint total_bytes) -{ - gdouble file_span = 0.0; - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; - gdouble this_file_fraction_complete = 0.0; - gdouble fraction_complete = 0.0; - gint _tmp1_; - gdouble _tmp2_; - gdouble _tmp3_; - gdouble _tmp4_; - SpitPublishingProgressCallback _tmp5_; - void* _tmp5__target; -#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self)); -#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->publishables; -#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = self->priv->publishables_length1; -#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - file_span = 1.0 / _tmp0__length1; -#line 1354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - this_file_fraction_complete = ((gdouble) bytes_written_so_far) / total_bytes; -#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp1_ = self->priv->current_file; -#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp2_ = file_span; -#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = this_file_fraction_complete; -#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = file_span; -#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - fraction_complete = (_tmp1_ * _tmp2_) + (_tmp3_ * _tmp4_); -#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->status_updated; -#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5__target = self->priv->status_updated_target; -#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp5_ != NULL) { -#line 9673 "FacebookPublishing.c" - SpitPublishingProgressCallback _tmp6_; - void* _tmp6__target; - gint _tmp7_; - gdouble _tmp8_; -#line 1359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->status_updated; -#line 1359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6__target = self->priv->status_updated_target; -#line 1359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp7_ = self->priv->current_file; -#line 1359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp8_ = fraction_complete; -#line 1359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ (_tmp7_ + 1, _tmp8_, _tmp6__target); -#line 9688 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_uploader_on_message_completed (PublishingFacebookUploader* self, - PublishingFacebookGraphMessage* message) -{ - guint _tmp0_; - guint _tmp1_; - guint _tmp2_; - gint _tmp3_; - gint _tmp4_; - SpitPublishingPublishable** _tmp5_; - gint _tmp5__length1; -#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self)); -#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("data-transmitted", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp0_, NULL, FALSE); -#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_chunk_transmitted_publishing_facebook_graph_message_data_transmitted, self); -#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE); -#line 1364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_message_completed_publishing_facebook_graph_message_completed, self); -#line 1365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp2_, NULL, FALSE); -#line 1365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_message_failed_publishing_facebook_graph_message_failed, self); -#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp3_ = self->priv->current_file; -#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->current_file = _tmp3_ + 1; -#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp4_ = self->priv->current_file; -#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5_ = self->priv->publishables; -#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp5__length1 = self->priv->publishables_length1; -#line 1368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp4_ < _tmp5__length1) { -#line 1369 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_send_current_file (self); -#line 9734 "FacebookPublishing.c" - } else { - gint _tmp6_; -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp6_ = self->priv->current_file; -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (self, publishing_facebook_uploader_signals[PUBLISHING_FACEBOOK_UPLOADER_UPLOAD_COMPLETE_SIGNAL], 0, _tmp6_); -#line 9741 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_uploader_on_message_failed (PublishingFacebookUploader* self, - PublishingFacebookGraphMessage* message, - GError* _error_) -{ - guint _tmp0_; - guint _tmp1_; - guint _tmp2_; -#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self)); -#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_GRAPH_MESSAGE (message)); -#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("data-transmitted", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp0_, NULL, FALSE); -#line 1376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_chunk_transmitted_publishing_facebook_graph_message_data_transmitted, self); -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp1_, NULL, FALSE); -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_message_completed_publishing_facebook_graph_message_completed, self); -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_parse_name ("failed", PUBLISHING_FACEBOOK_TYPE_GRAPH_MESSAGE, &_tmp2_, NULL, FALSE); -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_disconnect_matched (message, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _publishing_facebook_uploader_on_message_failed_publishing_facebook_graph_message_failed, self); -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_emit (self, publishing_facebook_uploader_signals[PUBLISHING_FACEBOOK_UPLOADER_UPLOAD_ERROR_SIGNAL], 0, _error_); -#line 9772 "FacebookPublishing.c" -} - - -void -publishing_facebook_uploader_upload (PublishingFacebookUploader* self, - SpitPublishingProgressCallback status_updated, - void* status_updated_target) -{ - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; -#line 1383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (PUBLISHING_FACEBOOK_IS_UPLOADER (self)); -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->status_updated = status_updated; -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->status_updated_target = status_updated_target; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0_ = self->priv->publishables; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _tmp0__length1 = self->priv->publishables_length1; -#line 1386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (_tmp0__length1 > 0) { -#line 1387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_send_files (self); -#line 9797 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_value_uploader_init (GValue* value) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 9807 "FacebookPublishing.c" -} - - -static void -publishing_facebook_value_uploader_free_value (GValue* value) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (value->data[0].v_pointer) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_unref (value->data[0].v_pointer); -#line 9818 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_value_uploader_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = publishing_facebook_uploader_ref (src_value->data[0].v_pointer); -#line 9831 "FacebookPublishing.c" - } else { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 9835 "FacebookPublishing.c" - } -} - - -static gpointer -publishing_facebook_value_uploader_peek_pointer (const GValue* value) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 9845 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_uploader_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (collect_values[0].v_pointer) { -#line 9857 "FacebookPublishing.c" - PublishingFacebookUploader * object; - object = collect_values[0].v_pointer; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 9864 "FacebookPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 9868 "FacebookPublishing.c" - } -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = publishing_facebook_uploader_ref (object); -#line 9872 "FacebookPublishing.c" - } else { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 9876 "FacebookPublishing.c" - } -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 9880 "FacebookPublishing.c" -} - - -static gchar* -publishing_facebook_value_uploader_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFacebookUploader ** object_p; - object_p = collect_values[0].v_pointer; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!object_p) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 9896 "FacebookPublishing.c" - } -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (!value->data[0].v_pointer) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = NULL; -#line 9902 "FacebookPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 9906 "FacebookPublishing.c" - } else { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - *object_p = publishing_facebook_uploader_ref (value->data[0].v_pointer); -#line 9910 "FacebookPublishing.c" - } -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return NULL; -#line 9914 "FacebookPublishing.c" -} - - -GParamSpec* -publishing_facebook_param_spec_uploader (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFacebookParamSpecUploader* spec; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FACEBOOK_TYPE_UPLOADER), NULL); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return G_PARAM_SPEC (spec); -#line 9934 "FacebookPublishing.c" -} - - -gpointer -publishing_facebook_value_get_uploader (const GValue* value) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_UPLOADER), NULL); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return value->data[0].v_pointer; -#line 9945 "FacebookPublishing.c" -} - - -void -publishing_facebook_value_set_uploader (GValue* value, - gpointer v_object) -{ - PublishingFacebookUploader * old; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_UPLOADER)); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_UPLOADER)); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_ref (value->data[0].v_pointer); -#line 9968 "FacebookPublishing.c" - } else { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 9972 "FacebookPublishing.c" - } -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_unref (old); -#line 9978 "FacebookPublishing.c" - } -} - - -void -publishing_facebook_value_take_uploader (GValue* value, - gpointer v_object) -{ - PublishingFacebookUploader * old; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FACEBOOK_TYPE_UPLOADER)); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - old = value->data[0].v_pointer; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (v_object) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FACEBOOK_TYPE_UPLOADER)); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = v_object; -#line 10000 "FacebookPublishing.c" - } else { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - value->data[0].v_pointer = NULL; -#line 10004 "FacebookPublishing.c" - } -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (old) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_unref (old); -#line 10010 "FacebookPublishing.c" - } -} - - -static void -publishing_facebook_uploader_class_init (PublishingFacebookUploaderClass * klass) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_parent_class = g_type_class_peek_parent (klass); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - ((PublishingFacebookUploaderClass *) klass)->finalize = publishing_facebook_uploader_finalize; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFacebookUploaderPrivate)); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_signals[PUBLISHING_FACEBOOK_UPLOADER_UPLOAD_COMPLETE_SIGNAL] = g_signal_new ("upload-complete", PUBLISHING_FACEBOOK_TYPE_UPLOADER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - publishing_facebook_uploader_signals[PUBLISHING_FACEBOOK_UPLOADER_UPLOAD_ERROR_SIGNAL] = g_signal_new ("upload-error", PUBLISHING_FACEBOOK_TYPE_UPLOADER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); -#line 10028 "FacebookPublishing.c" -} - - -static void -publishing_facebook_uploader_instance_init (PublishingFacebookUploader * self) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv = PUBLISHING_FACEBOOK_UPLOADER_GET_PRIVATE (self); -#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->status_updated = NULL; -#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->status_updated_target = self; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->ref_count = 1; -#line 10043 "FacebookPublishing.c" -} - - -static void -publishing_facebook_uploader_finalize (PublishingFacebookUploader * obj) -{ - PublishingFacebookUploader * self; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FACEBOOK_TYPE_UPLOADER, PublishingFacebookUploader); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_signal_handlers_destroy (self); -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_graph_session_unref0 (self->priv->session); -#line 1307 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - _publishing_facebook_publishing_parameters_unref0 (self->priv->publishing_params); -#line 10061 "FacebookPublishing.c" -} - - -GType -publishing_facebook_uploader_get_type (void) -{ - static volatile gsize publishing_facebook_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_facebook_uploader_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_facebook_value_uploader_init, publishing_facebook_value_uploader_free_value, publishing_facebook_value_uploader_copy_value, publishing_facebook_value_uploader_peek_pointer, "p", publishing_facebook_value_uploader_collect_value, "p", publishing_facebook_value_uploader_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFacebookUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_facebook_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFacebookUploader), 0, (GInstanceInitFunc) publishing_facebook_uploader_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_facebook_uploader_type_id; - publishing_facebook_uploader_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFacebookUploader", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_facebook_uploader_type_id__volatile, publishing_facebook_uploader_type_id); - } - return publishing_facebook_uploader_type_id__volatile; -} - - -gpointer -publishing_facebook_uploader_ref (gpointer instance) -{ - PublishingFacebookUploader * self; - self = instance; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - return instance; -#line 10090 "FacebookPublishing.c" -} - - -void -publishing_facebook_uploader_unref (gpointer instance) -{ - PublishingFacebookUploader * self; - self = instance; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - PUBLISHING_FACEBOOK_UPLOADER_GET_CLASS (self)->finalize (self); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FacebookPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 10105 "FacebookPublishing.c" - } -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/shotwell-publishing/FlickrPublishing.c b/plugins/shotwell-publishing/FlickrPublishing.c deleted file mode 100644 index 1601192..0000000 --- a/plugins/shotwell-publishing/FlickrPublishing.c +++ /dev/null @@ -1,6939 +0,0 @@ -/* FlickrPublishing.c generated by valac 0.40.4, the Vala compiler - * generated from FlickrPublishing.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include "shotwell-authenticator.h" -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_FLICKR_SERVICE (flickr_service_get_type ()) -#define FLICKR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLICKR_SERVICE, FlickrService)) -#define FLICKR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLICKR_SERVICE, FlickrServiceClass)) -#define IS_FLICKR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLICKR_SERVICE)) -#define IS_FLICKR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLICKR_SERVICE)) -#define FLICKR_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLICKR_SERVICE, FlickrServiceClass)) - -typedef struct _FlickrService FlickrService; -typedef struct _FlickrServiceClass FlickrServiceClass; -typedef struct _FlickrServicePrivate FlickrServicePrivate; -enum { - FLICKR_SERVICE_0_PROPERTY, - FLICKR_SERVICE_NUM_PROPERTIES -}; -static GParamSpec* flickr_service_properties[FLICKR_SERVICE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER (publishing_flickr_flickr_publisher_get_type ()) -#define PUBLISHING_FLICKR_FLICKR_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher)) -#define PUBLISHING_FLICKR_FLICKR_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisherClass)) -#define PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER)) -#define PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER)) -#define PUBLISHING_FLICKR_FLICKR_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisherClass)) - -typedef struct _PublishingFlickrFlickrPublisher PublishingFlickrFlickrPublisher; -typedef struct _PublishingFlickrFlickrPublisherClass PublishingFlickrFlickrPublisherClass; - -#define PUBLISHING_FLICKR_TYPE_USER_KIND (publishing_flickr_user_kind_get_type ()) - -#define PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION (publishing_flickr_visibility_specification_get_type ()) -#define PUBLISHING_FLICKR_VISIBILITY_SPECIFICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION, PublishingFlickrVisibilitySpecification)) -#define PUBLISHING_FLICKR_VISIBILITY_SPECIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION, PublishingFlickrVisibilitySpecificationClass)) -#define PUBLISHING_FLICKR_IS_VISIBILITY_SPECIFICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION)) -#define PUBLISHING_FLICKR_IS_VISIBILITY_SPECIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION)) -#define PUBLISHING_FLICKR_VISIBILITY_SPECIFICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION, PublishingFlickrVisibilitySpecificationClass)) - -typedef struct _PublishingFlickrVisibilitySpecification PublishingFlickrVisibilitySpecification; -typedef struct _PublishingFlickrVisibilitySpecificationClass PublishingFlickrVisibilitySpecificationClass; -typedef struct _PublishingFlickrVisibilitySpecificationPrivate PublishingFlickrVisibilitySpecificationPrivate; -typedef struct _PublishingFlickrParamSpecVisibilitySpecification PublishingFlickrParamSpecVisibilitySpecification; - -#define PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS (publishing_flickr_publishing_parameters_get_type ()) -#define PUBLISHING_FLICKR_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS, PublishingFlickrPublishingParameters)) -#define PUBLISHING_FLICKR_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS, PublishingFlickrPublishingParametersClass)) -#define PUBLISHING_FLICKR_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_FLICKR_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_FLICKR_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS, PublishingFlickrPublishingParametersClass)) - -typedef struct _PublishingFlickrPublishingParameters PublishingFlickrPublishingParameters; -typedef struct _PublishingFlickrPublishingParametersClass PublishingFlickrPublishingParametersClass; -typedef struct _PublishingFlickrPublishingParametersPrivate PublishingFlickrPublishingParametersPrivate; -#define _publishing_flickr_visibility_specification_unref0(var) ((var == NULL) ? NULL : (var = (publishing_flickr_visibility_specification_unref (var), NULL))) -typedef struct _PublishingFlickrParamSpecPublishingParameters PublishingFlickrParamSpecPublishingParameters; -typedef struct _PublishingFlickrFlickrPublisherPrivate PublishingFlickrFlickrPublisherPrivate; - -#define PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE (publishing_flickr_publishing_options_pane_get_type ()) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPaneClass)) -#define PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPaneClass)) - -typedef struct _PublishingFlickrPublishingOptionsPane PublishingFlickrPublishingOptionsPane; -typedef struct _PublishingFlickrPublishingOptionsPaneClass PublishingFlickrPublishingOptionsPaneClass; -enum { - PUBLISHING_FLICKR_FLICKR_PUBLISHER_0_PROPERTY, - PUBLISHING_FLICKR_FLICKR_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_flickr_flickr_publisher_properties[PUBLISHING_FLICKR_FLICKR_PUBLISHER_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) -#define _publishing_flickr_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_flickr_publishing_parameters_unref (var), NULL))) -#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) - -#define PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION (publishing_flickr_account_info_fetch_transaction_get_type ()) -#define PUBLISHING_FLICKR_ACCOUNT_INFO_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION, PublishingFlickrAccountInfoFetchTransaction)) -#define PUBLISHING_FLICKR_ACCOUNT_INFO_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION, PublishingFlickrAccountInfoFetchTransactionClass)) -#define PUBLISHING_FLICKR_IS_ACCOUNT_INFO_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION)) -#define PUBLISHING_FLICKR_IS_ACCOUNT_INFO_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION)) -#define PUBLISHING_FLICKR_ACCOUNT_INFO_FETCH_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION, PublishingFlickrAccountInfoFetchTransactionClass)) - -typedef struct _PublishingFlickrAccountInfoFetchTransaction PublishingFlickrAccountInfoFetchTransaction; -typedef struct _PublishingFlickrAccountInfoFetchTransactionClass PublishingFlickrAccountInfoFetchTransactionClass; -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL))) -#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL))) - -#define PUBLISHING_FLICKR_TYPE_UPLOADER (publishing_flickr_uploader_get_type ()) -#define PUBLISHING_FLICKR_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploader)) -#define PUBLISHING_FLICKR_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploaderClass)) -#define PUBLISHING_FLICKR_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_UPLOADER)) -#define PUBLISHING_FLICKR_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_UPLOADER)) -#define PUBLISHING_FLICKR_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploaderClass)) - -typedef struct _PublishingFlickrUploader PublishingFlickrUploader; -typedef struct _PublishingFlickrUploaderClass PublishingFlickrUploaderClass; -#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL))) -typedef struct _PublishingFlickrAccountInfoFetchTransactionPrivate PublishingFlickrAccountInfoFetchTransactionPrivate; - -#define PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION (publishing_flickr_upload_transaction_get_type ()) -#define PUBLISHING_FLICKR_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransaction)) -#define PUBLISHING_FLICKR_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransactionClass)) -#define PUBLISHING_FLICKR_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_FLICKR_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_FLICKR_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransactionClass)) - -typedef struct _PublishingFlickrUploadTransaction PublishingFlickrUploadTransaction; -typedef struct _PublishingFlickrUploadTransactionClass PublishingFlickrUploadTransactionClass; -typedef struct _PublishingFlickrUploadTransactionPrivate PublishingFlickrUploadTransactionPrivate; -typedef struct _PublishingFlickrPublishingOptionsPanePrivate PublishingFlickrPublishingOptionsPanePrivate; - -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY (publishing_flickr_publishing_options_pane_visibility_entry_get_type ()) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_VISIBILITY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY, PublishingFlickrPublishingOptionsPaneVisibilityEntry)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_VISIBILITY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY, PublishingFlickrPublishingOptionsPaneVisibilityEntryClass)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_IS_VISIBILITY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_IS_VISIBILITY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_VISIBILITY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY, PublishingFlickrPublishingOptionsPaneVisibilityEntryClass)) - -typedef struct _PublishingFlickrPublishingOptionsPaneVisibilityEntry PublishingFlickrPublishingOptionsPaneVisibilityEntry; -typedef struct _PublishingFlickrPublishingOptionsPaneVisibilityEntryClass PublishingFlickrPublishingOptionsPaneVisibilityEntryClass; - -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY (publishing_flickr_publishing_options_pane_size_entry_get_type ()) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_SIZE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY, PublishingFlickrPublishingOptionsPaneSizeEntry)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_SIZE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY, PublishingFlickrPublishingOptionsPaneSizeEntryClass)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_IS_SIZE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_IS_SIZE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY)) -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_SIZE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY, PublishingFlickrPublishingOptionsPaneSizeEntryClass)) - -typedef struct _PublishingFlickrPublishingOptionsPaneSizeEntry PublishingFlickrPublishingOptionsPaneSizeEntry; -typedef struct _PublishingFlickrPublishingOptionsPaneSizeEntryClass PublishingFlickrPublishingOptionsPaneSizeEntryClass; -enum { - PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_0_PROPERTY, - PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_flickr_publishing_options_pane_properties[PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; -#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL))) -typedef struct _PublishingFlickrPublishingOptionsPaneVisibilityEntryPrivate PublishingFlickrPublishingOptionsPaneVisibilityEntryPrivate; -typedef struct _PublishingFlickrPublishingOptionsPaneSizeEntryPrivate PublishingFlickrPublishingOptionsPaneSizeEntryPrivate; -#define _publishing_flickr_publishing_options_pane_visibility_entry_unref0(var) ((var == NULL) ? NULL : (var = (publishing_flickr_publishing_options_pane_visibility_entry_unref (var), NULL))) -#define _publishing_flickr_publishing_options_pane_size_entry_unref0(var) ((var == NULL) ? NULL : (var = (publishing_flickr_publishing_options_pane_size_entry_unref (var), NULL))) -typedef struct _PublishingFlickrPublishingOptionsPaneParamSpecSizeEntry PublishingFlickrPublishingOptionsPaneParamSpecSizeEntry; -typedef struct _PublishingFlickrPublishingOptionsPaneParamSpecVisibilityEntry PublishingFlickrPublishingOptionsPaneParamSpecVisibilityEntry; -enum { - PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, - PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS -}; -static guint publishing_flickr_publishing_options_pane_signals[PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingFlickrUploaderPrivate PublishingFlickrUploaderPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _FlickrService { - GObject parent_instance; - FlickrServicePrivate * priv; -}; - -struct _FlickrServiceClass { - GObjectClass parent_class; -}; - -typedef enum { - PUBLISHING_FLICKR_USER_KIND_PRO, - PUBLISHING_FLICKR_USER_KIND_FREE -} PublishingFlickrUserKind; - -struct _PublishingFlickrVisibilitySpecification { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFlickrVisibilitySpecificationPrivate * priv; - gint friends_level; - gint family_level; - gint everyone_level; -}; - -struct _PublishingFlickrVisibilitySpecificationClass { - GTypeClass parent_class; - void (*finalize) (PublishingFlickrVisibilitySpecification *self); -}; - -struct _PublishingFlickrParamSpecVisibilitySpecification { - GParamSpec parent_instance; -}; - -struct _PublishingFlickrPublishingParameters { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFlickrPublishingParametersPrivate * priv; - PublishingFlickrUserKind user_kind; - gint64 quota_free_bytes; - gint photo_major_axis_size; - gchar* username; - PublishingFlickrVisibilitySpecification* visibility_specification; -}; - -struct _PublishingFlickrPublishingParametersClass { - GTypeClass parent_class; - void (*finalize) (PublishingFlickrPublishingParameters *self); -}; - -struct _PublishingFlickrParamSpecPublishingParameters { - GParamSpec parent_instance; -}; - -struct _PublishingFlickrFlickrPublisher { - GObject parent_instance; - PublishingFlickrFlickrPublisherPrivate * priv; -}; - -struct _PublishingFlickrFlickrPublisherClass { - GObjectClass parent_class; -}; - -struct _PublishingFlickrFlickrPublisherPrivate { - SpitPublishingService* service; - SpitPublishingPluginHost* host; - SpitPublishingProgressCallback progress_reporter; - gpointer progress_reporter_target; - GDestroyNotify progress_reporter_target_destroy_notify; - gboolean running; - gboolean was_started; - PublishingRESTSupportOAuth1Session* session; - PublishingFlickrPublishingOptionsPane* publishing_options_pane; - SpitPublishingAuthenticator* authenticator; - PublishingFlickrPublishingParameters* parameters; -}; - -struct _PublishingFlickrAccountInfoFetchTransaction { - PublishingRESTSupportOAuth1Transaction parent_instance; - PublishingFlickrAccountInfoFetchTransactionPrivate * priv; -}; - -struct _PublishingFlickrAccountInfoFetchTransactionClass { - PublishingRESTSupportOAuth1TransactionClass parent_class; -}; - -struct _PublishingFlickrUploadTransaction { - PublishingRESTSupportOAuth1UploadTransaction parent_instance; - PublishingFlickrUploadTransactionPrivate * priv; -}; - -struct _PublishingFlickrUploadTransactionClass { - PublishingRESTSupportOAuth1UploadTransactionClass parent_class; -}; - -struct _PublishingFlickrUploadTransactionPrivate { - PublishingFlickrPublishingParameters* parameters; -}; - -struct _PublishingFlickrPublishingOptionsPane { - GObject parent_instance; - PublishingFlickrPublishingOptionsPanePrivate * priv; -}; - -struct _PublishingFlickrPublishingOptionsPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingFlickrPublishingOptionsPanePrivate { - GtkBuilder* builder; - GtkBox* pane_widget; - GtkLabel* visibility_label; - GtkLabel* upload_info_label; - GtkLabel* size_label; - GtkButton* logout_button; - GtkButton* publish_button; - GtkComboBoxText* visibility_combo; - GtkComboBoxText* size_combo; - GtkCheckButton* strip_metadata_check; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** visibilities; - gint visibilities_length1; - gint _visibilities_size_; - PublishingFlickrPublishingOptionsPaneSizeEntry** sizes; - gint sizes_length1; - gint _sizes_size_; - PublishingFlickrPublishingParameters* parameters; - PublishingFlickrFlickrPublisher* publisher; - SpitPublishingPublisherMediaType media_type; -}; - -struct _PublishingFlickrPublishingOptionsPaneVisibilityEntry { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFlickrPublishingOptionsPaneVisibilityEntryPrivate * priv; - PublishingFlickrVisibilitySpecification* specification; - gchar* title; -}; - -struct _PublishingFlickrPublishingOptionsPaneVisibilityEntryClass { - GTypeClass parent_class; - void (*finalize) (PublishingFlickrPublishingOptionsPaneVisibilityEntry *self); -}; - -struct _PublishingFlickrPublishingOptionsPaneSizeEntry { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingFlickrPublishingOptionsPaneSizeEntryPrivate * priv; - gchar* title; - gint size; -}; - -struct _PublishingFlickrPublishingOptionsPaneSizeEntryClass { - GTypeClass parent_class; - void (*finalize) (PublishingFlickrPublishingOptionsPaneSizeEntry *self); -}; - -struct _PublishingFlickrPublishingOptionsPaneParamSpecSizeEntry { - GParamSpec parent_instance; -}; - -struct _PublishingFlickrPublishingOptionsPaneParamSpecVisibilityEntry { - GParamSpec parent_instance; -}; - -struct _PublishingFlickrUploader { - PublishingRESTSupportBatchUploader parent_instance; - PublishingFlickrUploaderPrivate * priv; -}; - -struct _PublishingFlickrUploaderClass { - PublishingRESTSupportBatchUploaderClass parent_class; -}; - -struct _PublishingFlickrUploaderPrivate { - PublishingFlickrPublishingParameters* parameters; - gboolean strip_metadata; -}; - - -static gpointer flickr_service_parent_class = NULL; -static GdkPixbuf** flickr_service_icon_pixbuf_set; -static gint flickr_service_icon_pixbuf_set_length1; -static GdkPixbuf** flickr_service_icon_pixbuf_set = NULL; -static gint flickr_service_icon_pixbuf_set_length1 = 0; -static gint _flickr_service_icon_pixbuf_set_size_ = 0; -static SpitPluggableIface * flickr_service_spit_pluggable_parent_iface = NULL; -static SpitPublishingServiceIface * flickr_service_spit_publishing_service_parent_iface = NULL; -static gpointer publishing_flickr_visibility_specification_parent_class = NULL; -static gpointer publishing_flickr_publishing_parameters_parent_class = NULL; -static gpointer publishing_flickr_flickr_publisher_parent_class = NULL; -static SpitPublishingPublisherIface * publishing_flickr_flickr_publisher_spit_publishing_publisher_parent_iface = NULL; -static gpointer publishing_flickr_account_info_fetch_transaction_parent_class = NULL; -static gpointer publishing_flickr_upload_transaction_parent_class = NULL; -static gpointer publishing_flickr_publishing_options_pane_parent_class = NULL; -static gpointer publishing_flickr_publishing_options_pane_size_entry_parent_class = NULL; -static gpointer publishing_flickr_publishing_options_pane_visibility_entry_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_flickr_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_flickr_uploader_parent_class = NULL; - -GType flickr_service_get_type (void) G_GNUC_CONST; -#define FLICKR_SERVICE_ICON_FILENAME "flickr.png" -FlickrService* flickr_service_new (GFile* resource_directory); -FlickrService* flickr_service_construct (GType object_type, - GFile* resource_directory); -static gint flickr_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -static const gchar* flickr_service_real_get_id (SpitPluggable* base); -static const gchar* flickr_service_real_get_pluggable_name (SpitPluggable* base); -static void flickr_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup7 (GdkPixbuf** self, - int length); -static void flickr_service_real_activation (SpitPluggable* base, - gboolean enabled); -static SpitPublishingPublisher* flickr_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host); -PublishingFlickrFlickrPublisher* publishing_flickr_flickr_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host); -PublishingFlickrFlickrPublisher* publishing_flickr_flickr_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host); -GType publishing_flickr_flickr_publisher_get_type (void) G_GNUC_CONST; -static SpitPublishingPublisherMediaType flickr_service_real_get_supported_media (SpitPublishingService* base); -static void flickr_service_finalize (GObject * obj); -#define PUBLISHING_FLICKR_SERVICE_NAME "Flickr" -#define PUBLISHING_FLICKR_ENDPOINT_URL "https://api.flickr.com/services/rest" -#define PUBLISHING_FLICKR_ORIGINAL_SIZE -1 -#define PUBLISHING_FLICKR_EXPIRED_SESSION_ERROR_CODE "98" -GType publishing_flickr_user_kind_get_type (void) G_GNUC_CONST; -gpointer publishing_flickr_visibility_specification_ref (gpointer instance); -void publishing_flickr_visibility_specification_unref (gpointer instance); -GParamSpec* publishing_flickr_param_spec_visibility_specification (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_flickr_value_set_visibility_specification (GValue* value, - gpointer v_object); -void publishing_flickr_value_take_visibility_specification (GValue* value, - gpointer v_object); -gpointer publishing_flickr_value_get_visibility_specification (const GValue* value); -GType publishing_flickr_visibility_specification_get_type (void) G_GNUC_CONST; -PublishingFlickrVisibilitySpecification* publishing_flickr_visibility_specification_new (gint friends_level, - gint family_level, - gint everyone_level); -PublishingFlickrVisibilitySpecification* publishing_flickr_visibility_specification_construct (GType object_type, - gint friends_level, - gint family_level, - gint everyone_level); -static void publishing_flickr_visibility_specification_finalize (PublishingFlickrVisibilitySpecification * obj); -gpointer publishing_flickr_publishing_parameters_ref (gpointer instance); -void publishing_flickr_publishing_parameters_unref (gpointer instance); -GParamSpec* publishing_flickr_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_flickr_value_set_publishing_parameters (GValue* value, - gpointer v_object); -void publishing_flickr_value_take_publishing_parameters (GValue* value, - gpointer v_object); -gpointer publishing_flickr_value_get_publishing_parameters (const GValue* value); -GType publishing_flickr_publishing_parameters_get_type (void) G_GNUC_CONST; -PublishingFlickrPublishingParameters* publishing_flickr_publishing_parameters_new (void); -PublishingFlickrPublishingParameters* publishing_flickr_publishing_parameters_construct (GType object_type); -static void publishing_flickr_publishing_parameters_finalize (PublishingFlickrPublishingParameters * obj); -GType publishing_flickr_publishing_options_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_FLICKR_FLICKR_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisherPrivate)) -static void publishing_flickr_flickr_publisher_on_session_authenticated (PublishingFlickrFlickrPublisher* self); -static void _publishing_flickr_flickr_publisher_on_session_authenticated_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, - gpointer self); -SpitPublishingAuthenticator* publishing_flickr_flickr_publisher_get_authenticator (PublishingFlickrFlickrPublisher* self); -static gboolean publishing_flickr_flickr_publisher_get_persistent_strip_metadata (PublishingFlickrFlickrPublisher* self); -static void publishing_flickr_flickr_publisher_set_persistent_strip_metadata (PublishingFlickrFlickrPublisher* self, - gboolean strip_metadata); -static void publishing_flickr_flickr_publisher_do_fetch_account_info (PublishingFlickrFlickrPublisher* self); -static void publishing_flickr_flickr_publisher_on_account_fetch_txn_completed (PublishingFlickrFlickrPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_flickr_flickr_publisher_on_account_fetch_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_flickr_flickr_publisher_on_account_fetch_txn_error (PublishingFlickrFlickrPublisher* self, - PublishingRESTSupportTransaction* txn, - GError* err); -static void _publishing_flickr_flickr_publisher_on_account_fetch_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_flickr_flickr_publisher_do_parse_account_info_from_xml (PublishingFlickrFlickrPublisher* self, - const gchar* xml); -static void publishing_flickr_flickr_publisher_on_account_info_available (PublishingFlickrFlickrPublisher* self); -static void publishing_flickr_flickr_publisher_do_show_publishing_options_pane (PublishingFlickrFlickrPublisher* self); -static void publishing_flickr_flickr_publisher_on_publishing_options_pane_publish (PublishingFlickrFlickrPublisher* self, - gboolean strip_metadata); -static void _publishing_flickr_flickr_publisher_on_publishing_options_pane_publish_publishing_flickr_publishing_options_pane_publish (PublishingFlickrPublishingOptionsPane* _sender, - gboolean strip_metadata, - gpointer self); -static void publishing_flickr_flickr_publisher_on_publishing_options_pane_logout (PublishingFlickrFlickrPublisher* self); -static void _publishing_flickr_flickr_publisher_on_publishing_options_pane_logout_publishing_flickr_publishing_options_pane_logout (PublishingFlickrPublishingOptionsPane* _sender, - gpointer self); -static void publishing_flickr_flickr_publisher_do_publish (PublishingFlickrFlickrPublisher* self, - gboolean strip_metadata); -static void publishing_flickr_flickr_publisher_do_logout (PublishingFlickrFlickrPublisher* self); -static void publishing_flickr_flickr_publisher_on_upload_status_updated (PublishingFlickrFlickrPublisher* self, - gint file_number, - gdouble completed_fraction); -static void publishing_flickr_flickr_publisher_on_upload_complete (PublishingFlickrFlickrPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published); -static void _publishing_flickr_flickr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self); -static void publishing_flickr_flickr_publisher_on_upload_error (PublishingFlickrFlickrPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err); -static void _publishing_flickr_flickr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self); -static void publishing_flickr_flickr_publisher_do_show_success_pane (PublishingFlickrFlickrPublisher* self); -GType publishing_flickr_account_info_fetch_transaction_get_type (void) G_GNUC_CONST; -PublishingFlickrAccountInfoFetchTransaction* publishing_flickr_account_info_fetch_transaction_new (PublishingRESTSupportOAuth1Session* session); -PublishingFlickrAccountInfoFetchTransaction* publishing_flickr_account_info_fetch_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session); -PublishingRESTSupportXmlDocument* publishing_flickr_transaction_parse_flickr_response (const gchar* xml, - GError** error); -static void publishing_flickr_flickr_publisher_attempt_start (PublishingFlickrFlickrPublisher* self); -PublishingFlickrPublishingOptionsPane* publishing_flickr_publishing_options_pane_new (PublishingFlickrFlickrPublisher* publisher, - PublishingFlickrPublishingParameters* parameters, - SpitPublishingPublisherMediaType media_type, - GtkBuilder* builder, - gboolean strip_metadata); -PublishingFlickrPublishingOptionsPane* publishing_flickr_publishing_options_pane_construct (GType object_type, - PublishingFlickrFlickrPublisher* publisher, - PublishingFlickrPublishingParameters* parameters, - SpitPublishingPublisherMediaType media_type, - GtkBuilder* builder, - gboolean strip_metadata); -gint publishing_flickr_flickr_publisher_flickr_date_time_compare_func (SpitPublishingPublishable* a, - SpitPublishingPublishable* b); -static gint _publishing_flickr_flickr_publisher_flickr_date_time_compare_func_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -GType publishing_flickr_uploader_get_type (void) G_GNUC_CONST; -PublishingFlickrUploader* publishing_flickr_uploader_new (PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingFlickrPublishingParameters* parameters, - gboolean strip_metadata); -PublishingFlickrUploader* publishing_flickr_uploader_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingFlickrPublishingParameters* parameters, - gboolean strip_metadata); -static void _publishing_flickr_flickr_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -gint publishing_flickr_flickr_publisher_get_persistent_visibility (PublishingFlickrFlickrPublisher* self); -void publishing_flickr_flickr_publisher_set_persistent_visibility (PublishingFlickrFlickrPublisher* self, - gint vis); -gint publishing_flickr_flickr_publisher_get_persistent_default_size (PublishingFlickrFlickrPublisher* self); -void publishing_flickr_flickr_publisher_set_persistent_default_size (PublishingFlickrFlickrPublisher* self, - gint size); -static SpitPublishingService* publishing_flickr_flickr_publisher_real_get_service (SpitPublishingPublisher* base); -static gboolean publishing_flickr_flickr_publisher_real_is_running (SpitPublishingPublisher* base); -static void publishing_flickr_flickr_publisher_real_start (SpitPublishingPublisher* base); -static void publishing_flickr_flickr_publisher_real_stop (SpitPublishingPublisher* base); -static void publishing_flickr_flickr_publisher_finalize (GObject * obj); -gchar* publishing_flickr_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc); -static gchar* _publishing_flickr_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self); -GType publishing_flickr_upload_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_FLICKR_UPLOAD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransactionPrivate)) -PublishingFlickrUploadTransaction* publishing_flickr_upload_transaction_new (PublishingRESTSupportOAuth1Session* session, - PublishingFlickrPublishingParameters* parameters, - SpitPublishingPublishable* publishable); -PublishingFlickrUploadTransaction* publishing_flickr_upload_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - PublishingFlickrPublishingParameters* parameters, - SpitPublishingPublishable* publishable); -static void _g_free0_ (gpointer var); -static void publishing_flickr_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error); -static void publishing_flickr_upload_transaction_finalize (PublishingRESTSupportTransaction * obj); -static gpointer publishing_flickr_publishing_options_pane_visibility_entry_ref (gpointer instance); -static void publishing_flickr_publishing_options_pane_visibility_entry_unref (gpointer instance); -static GParamSpec* publishing_flickr_publishing_options_pane_param_spec_visibility_entry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void publishing_flickr_publishing_options_pane_value_set_visibility_entry (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void publishing_flickr_publishing_options_pane_value_take_visibility_entry (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer publishing_flickr_publishing_options_pane_value_get_visibility_entry (const GValue* value) G_GNUC_UNUSED; -static GType publishing_flickr_publishing_options_pane_visibility_entry_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static gpointer publishing_flickr_publishing_options_pane_size_entry_ref (gpointer instance); -static void publishing_flickr_publishing_options_pane_size_entry_unref (gpointer instance); -static GParamSpec* publishing_flickr_publishing_options_pane_param_spec_size_entry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void publishing_flickr_publishing_options_pane_value_set_size_entry (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void publishing_flickr_publishing_options_pane_value_take_size_entry (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer publishing_flickr_publishing_options_pane_value_get_size_entry (const GValue* value) G_GNUC_UNUSED; -static GType publishing_flickr_publishing_options_pane_size_entry_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPanePrivate)) -static PublishingFlickrPublishingOptionsPaneVisibilityEntry** publishing_flickr_publishing_options_pane_create_visibilities (PublishingFlickrPublishingOptionsPane* self, - int* result_length1); -static PublishingFlickrPublishingOptionsPaneSizeEntry** publishing_flickr_publishing_options_pane_create_sizes (PublishingFlickrPublishingOptionsPane* self, - int* result_length1); -static void publishing_flickr_publishing_options_pane_populate_visibility_combo (PublishingFlickrPublishingOptionsPane* self); -static void publishing_flickr_publishing_options_pane_on_visibility_changed (PublishingFlickrPublishingOptionsPane* self); -static void _publishing_flickr_publishing_options_pane_on_visibility_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void publishing_flickr_publishing_options_pane_populate_size_combo (PublishingFlickrPublishingOptionsPane* self); -static void publishing_flickr_publishing_options_pane_on_size_changed (PublishingFlickrPublishingOptionsPane* self); -static void _publishing_flickr_publishing_options_pane_on_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void publishing_flickr_publishing_options_pane_on_logout_clicked (PublishingFlickrPublishingOptionsPane* self); -static void _publishing_flickr_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_flickr_publishing_options_pane_on_publish_clicked (PublishingFlickrPublishingOptionsPane* self); -static void _publishing_flickr_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static PublishingFlickrPublishingOptionsPaneVisibilityEntry* publishing_flickr_publishing_options_pane_visibility_entry_new (const gchar* creator_title, - PublishingFlickrVisibilitySpecification* creator_specification); -static PublishingFlickrPublishingOptionsPaneVisibilityEntry* publishing_flickr_publishing_options_pane_visibility_entry_construct (GType object_type, - const gchar* creator_title, - PublishingFlickrVisibilitySpecification* creator_specification); -static void _vala_array_add20 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value); -static void _vala_array_add21 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value); -static void _vala_array_add22 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value); -static void _vala_array_add23 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value); -static void _vala_array_add24 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value); -static PublishingFlickrPublishingOptionsPaneSizeEntry* publishing_flickr_publishing_options_pane_size_entry_new (const gchar* creator_title, - gint creator_size); -static PublishingFlickrPublishingOptionsPaneSizeEntry* publishing_flickr_publishing_options_pane_size_entry_construct (GType object_type, - const gchar* creator_title, - gint creator_size); -static void _vala_array_add25 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value); -static void _vala_array_add26 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value); -static void _vala_array_add27 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value); -static void _vala_array_add28 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value); -static void _vala_array_add29 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value); -void publishing_flickr_publishing_options_pane_notify_publish (PublishingFlickrPublishingOptionsPane* self); -void publishing_flickr_publishing_options_pane_notify_logout (PublishingFlickrPublishingOptionsPane* self); -static GtkWidget* publishing_flickr_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_flickr_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_flickr_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void _publishing_flickr_publishing_options_pane_notify_publish_publishing_flickr_publishing_options_pane_publish (PublishingFlickrPublishingOptionsPane* _sender, - gboolean strip_metadata, - gpointer self); -static void _publishing_flickr_publishing_options_pane_notify_logout_publishing_flickr_publishing_options_pane_logout (PublishingFlickrPublishingOptionsPane* _sender, - gpointer self); -static void publishing_flickr_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void publishing_flickr_publishing_options_pane_size_entry_finalize (PublishingFlickrPublishingOptionsPaneSizeEntry * obj); -static void publishing_flickr_publishing_options_pane_visibility_entry_finalize (PublishingFlickrPublishingOptionsPaneVisibilityEntry * obj); -static void publishing_flickr_publishing_options_pane_finalize (GObject * obj); -#define PUBLISHING_FLICKR_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploaderPrivate)) -static void publishing_flickr_uploader_preprocess_publishable (PublishingFlickrUploader* self, - SpitPublishingPublishable* publishable); -static void _vala_array_add30 (gchar** * array, - int* length, - int* size, - gchar* value); -static PublishingRESTSupportTransaction* publishing_flickr_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable); -static void publishing_flickr_uploader_finalize (PublishingRESTSupportBatchUploader * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -FlickrService* -flickr_service_construct (GType object_type, - GFile* resource_directory) -{ - FlickrService * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (FlickrService*) g_object_new (object_type, NULL); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = flickr_service_icon_pixbuf_set; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0__length1 = flickr_service_icon_pixbuf_set_length1; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp0_ == NULL) { -#line 714 "FlickrPublishing.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" FLICKR_SERVICE_ICON_FILENAME, &_tmp1_); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - flickr_service_icon_pixbuf_set = (_vala_array_free (flickr_service_icon_pixbuf_set, flickr_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - flickr_service_icon_pixbuf_set = _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - flickr_service_icon_pixbuf_set_length1 = _tmp1_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _flickr_service_icon_pixbuf_set_size_ = flickr_service_icon_pixbuf_set_length1; -#line 727 "FlickrPublishing.c" - } -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 731 "FlickrPublishing.c" -} - - -FlickrService* -flickr_service_new (GFile* resource_directory) -{ -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return flickr_service_construct (TYPE_FLICKR_SERVICE, resource_directory); -#line 740 "FlickrPublishing.c" -} - - -static gint -flickr_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - FlickrService * self; - gint result = 0; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 757 "FlickrPublishing.c" -} - - -static const gchar* -flickr_service_real_get_id (SpitPluggable* base) -{ - FlickrService * self; - const gchar* result = NULL; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = "org.yorba.shotwell.publishing.flickr"; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 772 "FlickrPublishing.c" -} - - -static const gchar* -flickr_service_real_get_pluggable_name (SpitPluggable* base) -{ - FlickrService * self; - const gchar* result = NULL; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = "Flickr"; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 787 "FlickrPublishing.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self ? g_object_ref (self) : NULL; -#line 796 "FlickrPublishing.c" -} - - -static GdkPixbuf** -_vala_array_dup7 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - for (i = 0; i < length; i++) { -#line 810 "FlickrPublishing.c" - GdkPixbuf* _tmp0_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result[i] = _tmp0_; -#line 816 "FlickrPublishing.c" - } -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 820 "FlickrPublishing.c" -} - - -static void -flickr_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - FlickrService * self; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GdkPixbuf** _tmp7_; - gint _tmp7__length1; - GdkPixbuf** _tmp8_; - gint _tmp8__length1; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (info != NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = g_strdup ("Lucas Beeler"); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 ((*info).authors); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).authors = _tmp0_; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = g_strdup (_ ("Copyright 2016 Software Freedom Conservancy Inc.")); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 ((*info).copyright); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).copyright = _tmp1_; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 ((*info).translators); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).translators = _tmp2_; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = g_strdup (_VERSION); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 ((*info).version); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).version = _tmp3_; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = g_strdup (RESOURCES_WEBSITE_NAME); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 ((*info).website_name); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).website_name = _tmp4_; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = g_strdup (RESOURCES_WEBSITE_URL); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 ((*info).website_url); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).website_url = _tmp5_; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).is_license_wordwrapped = FALSE; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = g_strdup (RESOURCES_LICENSE); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 ((*info).license); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).license = _tmp6_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = flickr_service_icon_pixbuf_set; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7__length1 = flickr_service_icon_pixbuf_set_length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup7 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8__length1 = _tmp7__length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).icons = _tmp8_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*info).icons_length1 = _tmp8__length1; -#line 902 "FlickrPublishing.c" -} - - -static void -flickr_service_real_activation (SpitPluggable* base, - gboolean enabled) -{ - FlickrService * self; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService); -#line 913 "FlickrPublishing.c" -} - - -static SpitPublishingPublisher* -flickr_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - FlickrService * self; - SpitPublishingPublisher* result = NULL; - PublishingFlickrFlickrPublisher* _tmp0_; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService); -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = publishing_flickr_flickr_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 934 "FlickrPublishing.c" -} - - -static SpitPublishingPublisherMediaType -flickr_service_real_get_supported_media (SpitPublishingService* base) -{ - FlickrService * self; - SpitPublishingPublisherMediaType result = 0; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLICKR_SERVICE, FlickrService); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO; -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 949 "FlickrPublishing.c" -} - - -static void -flickr_service_class_init (FlickrServiceClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - flickr_service_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = flickr_service_finalize; -#line 960 "FlickrPublishing.c" -} - - -static void -flickr_service_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - flickr_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) flickr_service_real_get_pluggable_interface; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) flickr_service_real_get_id; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) flickr_service_real_get_pluggable_name; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) flickr_service_real_get_info; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) flickr_service_real_activation; -#line 979 "FlickrPublishing.c" -} - - -static void -flickr_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - flickr_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) flickr_service_real_create_publisher; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) flickr_service_real_get_supported_media; -#line 992 "FlickrPublishing.c" -} - - -static void -flickr_service_instance_init (FlickrService * self) -{ -} - - -static void -flickr_service_finalize (GObject * obj) -{ - FlickrService * self; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FLICKR_SERVICE, FlickrService); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_OBJECT_CLASS (flickr_service_parent_class)->finalize (obj); -#line 1010 "FlickrPublishing.c" -} - - -GType -flickr_service_get_type (void) -{ - static volatile gsize flickr_service_type_id__volatile = 0; - if (g_once_init_enter (&flickr_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FlickrServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) flickr_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FlickrService), 0, (GInstanceInitFunc) flickr_service_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) flickr_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) flickr_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType flickr_service_type_id; - flickr_service_type_id = g_type_register_static (G_TYPE_OBJECT, "FlickrService", &g_define_type_info, 0); - g_type_add_interface_static (flickr_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (flickr_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info); - g_once_init_leave (&flickr_service_type_id__volatile, flickr_service_type_id); - } - return flickr_service_type_id__volatile; -} - - -GType -publishing_flickr_user_kind_get_type (void) -{ - static volatile gsize publishing_flickr_user_kind_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_user_kind_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_FLICKR_USER_KIND_PRO, "PUBLISHING_FLICKR_USER_KIND_PRO", "pro"}, {PUBLISHING_FLICKR_USER_KIND_FREE, "PUBLISHING_FLICKR_USER_KIND_FREE", "free"}, {0, NULL, NULL}}; - GType publishing_flickr_user_kind_type_id; - publishing_flickr_user_kind_type_id = g_enum_register_static ("PublishingFlickrUserKind", values); - g_once_init_leave (&publishing_flickr_user_kind_type_id__volatile, publishing_flickr_user_kind_type_id); - } - return publishing_flickr_user_kind_type_id__volatile; -} - - -PublishingFlickrVisibilitySpecification* -publishing_flickr_visibility_specification_construct (GType object_type, - gint friends_level, - gint family_level, - gint everyone_level) -{ - PublishingFlickrVisibilitySpecification* self = NULL; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrVisibilitySpecification*) g_type_create_instance (object_type); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->friends_level = friends_level; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->family_level = family_level; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->everyone_level = everyone_level; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 1063 "FlickrPublishing.c" -} - - -PublishingFlickrVisibilitySpecification* -publishing_flickr_visibility_specification_new (gint friends_level, - gint family_level, - gint everyone_level) -{ -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_visibility_specification_construct (PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION, friends_level, family_level, everyone_level); -#line 1074 "FlickrPublishing.c" -} - - -static void -publishing_flickr_value_visibility_specification_init (GValue* value) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1083 "FlickrPublishing.c" -} - - -static void -publishing_flickr_value_visibility_specification_free_value (GValue* value) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (value->data[0].v_pointer) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_visibility_specification_unref (value->data[0].v_pointer); -#line 1094 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_value_visibility_specification_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - dest_value->data[0].v_pointer = publishing_flickr_visibility_specification_ref (src_value->data[0].v_pointer); -#line 1107 "FlickrPublishing.c" - } else { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 1111 "FlickrPublishing.c" - } -} - - -static gpointer -publishing_flickr_value_visibility_specification_peek_pointer (const GValue* value) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return value->data[0].v_pointer; -#line 1121 "FlickrPublishing.c" -} - - -static gchar* -publishing_flickr_value_visibility_specification_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (collect_values[0].v_pointer) { -#line 1133 "FlickrPublishing.c" - PublishingFlickrVisibilitySpecification * object; - object = collect_values[0].v_pointer; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1140 "FlickrPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1144 "FlickrPublishing.c" - } -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = publishing_flickr_visibility_specification_ref (object); -#line 1148 "FlickrPublishing.c" - } else { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1152 "FlickrPublishing.c" - } -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 1156 "FlickrPublishing.c" -} - - -static gchar* -publishing_flickr_value_visibility_specification_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFlickrVisibilitySpecification ** object_p; - object_p = collect_values[0].v_pointer; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!object_p) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1172 "FlickrPublishing.c" - } -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!value->data[0].v_pointer) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = NULL; -#line 1178 "FlickrPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 1182 "FlickrPublishing.c" - } else { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = publishing_flickr_visibility_specification_ref (value->data[0].v_pointer); -#line 1186 "FlickrPublishing.c" - } -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 1190 "FlickrPublishing.c" -} - - -GParamSpec* -publishing_flickr_param_spec_visibility_specification (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFlickrParamSpecVisibilitySpecification* spec; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION), NULL); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return G_PARAM_SPEC (spec); -#line 1210 "FlickrPublishing.c" -} - - -gpointer -publishing_flickr_value_get_visibility_specification (const GValue* value) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION), NULL); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return value->data[0].v_pointer; -#line 1221 "FlickrPublishing.c" -} - - -void -publishing_flickr_value_set_visibility_specification (GValue* value, - gpointer v_object) -{ - PublishingFlickrVisibilitySpecification * old; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION)); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - old = value->data[0].v_pointer; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (v_object) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION)); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_visibility_specification_ref (value->data[0].v_pointer); -#line 1244 "FlickrPublishing.c" - } else { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1248 "FlickrPublishing.c" - } -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (old) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_visibility_specification_unref (old); -#line 1254 "FlickrPublishing.c" - } -} - - -void -publishing_flickr_value_take_visibility_specification (GValue* value, - gpointer v_object) -{ - PublishingFlickrVisibilitySpecification * old; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION)); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - old = value->data[0].v_pointer; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (v_object) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION)); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 1276 "FlickrPublishing.c" - } else { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1280 "FlickrPublishing.c" - } -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (old) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_visibility_specification_unref (old); -#line 1286 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_visibility_specification_class_init (PublishingFlickrVisibilitySpecificationClass * klass) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_visibility_specification_parent_class = g_type_class_peek_parent (klass); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - ((PublishingFlickrVisibilitySpecificationClass *) klass)->finalize = publishing_flickr_visibility_specification_finalize; -#line 1298 "FlickrPublishing.c" -} - - -static void -publishing_flickr_visibility_specification_instance_init (PublishingFlickrVisibilitySpecification * self) -{ -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->ref_count = 1; -#line 1307 "FlickrPublishing.c" -} - - -static void -publishing_flickr_visibility_specification_finalize (PublishingFlickrVisibilitySpecification * obj) -{ - PublishingFlickrVisibilitySpecification * self; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_VISIBILITY_SPECIFICATION, PublishingFlickrVisibilitySpecification); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_destroy (self); -#line 1319 "FlickrPublishing.c" -} - - -GType -publishing_flickr_visibility_specification_get_type (void) -{ - static volatile gsize publishing_flickr_visibility_specification_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_visibility_specification_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_flickr_value_visibility_specification_init, publishing_flickr_value_visibility_specification_free_value, publishing_flickr_value_visibility_specification_copy_value, publishing_flickr_value_visibility_specification_peek_pointer, "p", publishing_flickr_value_visibility_specification_collect_value, "p", publishing_flickr_value_visibility_specification_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrVisibilitySpecificationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_visibility_specification_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrVisibilitySpecification), 0, (GInstanceInitFunc) publishing_flickr_visibility_specification_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_flickr_visibility_specification_type_id; - publishing_flickr_visibility_specification_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFlickrVisibilitySpecification", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_flickr_visibility_specification_type_id__volatile, publishing_flickr_visibility_specification_type_id); - } - return publishing_flickr_visibility_specification_type_id__volatile; -} - - -gpointer -publishing_flickr_visibility_specification_ref (gpointer instance) -{ - PublishingFlickrVisibilitySpecification * self; - self = instance; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return instance; -#line 1348 "FlickrPublishing.c" -} - - -void -publishing_flickr_visibility_specification_unref (gpointer instance) -{ - PublishingFlickrVisibilitySpecification * self; - self = instance; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - PUBLISHING_FLICKR_VISIBILITY_SPECIFICATION_GET_CLASS (self)->finalize (self); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1363 "FlickrPublishing.c" - } -} - - -PublishingFlickrPublishingParameters* -publishing_flickr_publishing_parameters_construct (GType object_type) -{ - PublishingFlickrPublishingParameters* self = NULL; -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrPublishingParameters*) g_type_create_instance (object_type); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 1376 "FlickrPublishing.c" -} - - -PublishingFlickrPublishingParameters* -publishing_flickr_publishing_parameters_new (void) -{ -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_publishing_parameters_construct (PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS); -#line 1385 "FlickrPublishing.c" -} - - -static void -publishing_flickr_value_publishing_parameters_init (GValue* value) -{ -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1394 "FlickrPublishing.c" -} - - -static void -publishing_flickr_value_publishing_parameters_free_value (GValue* value) -{ -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (value->data[0].v_pointer) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_parameters_unref (value->data[0].v_pointer); -#line 1405 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_value_publishing_parameters_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - dest_value->data[0].v_pointer = publishing_flickr_publishing_parameters_ref (src_value->data[0].v_pointer); -#line 1418 "FlickrPublishing.c" - } else { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 1422 "FlickrPublishing.c" - } -} - - -static gpointer -publishing_flickr_value_publishing_parameters_peek_pointer (const GValue* value) -{ -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return value->data[0].v_pointer; -#line 1432 "FlickrPublishing.c" -} - - -static gchar* -publishing_flickr_value_publishing_parameters_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (collect_values[0].v_pointer) { -#line 1444 "FlickrPublishing.c" - PublishingFlickrPublishingParameters * object; - object = collect_values[0].v_pointer; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1451 "FlickrPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1455 "FlickrPublishing.c" - } -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = publishing_flickr_publishing_parameters_ref (object); -#line 1459 "FlickrPublishing.c" - } else { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1463 "FlickrPublishing.c" - } -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 1467 "FlickrPublishing.c" -} - - -static gchar* -publishing_flickr_value_publishing_parameters_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFlickrPublishingParameters ** object_p; - object_p = collect_values[0].v_pointer; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!object_p) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1483 "FlickrPublishing.c" - } -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!value->data[0].v_pointer) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = NULL; -#line 1489 "FlickrPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 1493 "FlickrPublishing.c" - } else { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = publishing_flickr_publishing_parameters_ref (value->data[0].v_pointer); -#line 1497 "FlickrPublishing.c" - } -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 1501 "FlickrPublishing.c" -} - - -GParamSpec* -publishing_flickr_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFlickrParamSpecPublishingParameters* spec; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return G_PARAM_SPEC (spec); -#line 1521 "FlickrPublishing.c" -} - - -gpointer -publishing_flickr_value_get_publishing_parameters (const GValue* value) -{ -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return value->data[0].v_pointer; -#line 1532 "FlickrPublishing.c" -} - - -void -publishing_flickr_value_set_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingFlickrPublishingParameters * old; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS)); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - old = value->data[0].v_pointer; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (v_object) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS)); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_parameters_ref (value->data[0].v_pointer); -#line 1555 "FlickrPublishing.c" - } else { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1559 "FlickrPublishing.c" - } -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (old) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_parameters_unref (old); -#line 1565 "FlickrPublishing.c" - } -} - - -void -publishing_flickr_value_take_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingFlickrPublishingParameters * old; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS)); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - old = value->data[0].v_pointer; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (v_object) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS)); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 1587 "FlickrPublishing.c" - } else { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1591 "FlickrPublishing.c" - } -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (old) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_parameters_unref (old); -#line 1597 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_publishing_parameters_class_init (PublishingFlickrPublishingParametersClass * klass) -{ -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_parameters_parent_class = g_type_class_peek_parent (klass); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - ((PublishingFlickrPublishingParametersClass *) klass)->finalize = publishing_flickr_publishing_parameters_finalize; -#line 1609 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_parameters_instance_init (PublishingFlickrPublishingParameters * self) -{ -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->ref_count = 1; -#line 1618 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_parameters_finalize (PublishingFlickrPublishingParameters * obj) -{ - PublishingFlickrPublishingParameters * self; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_PUBLISHING_PARAMETERS, PublishingFlickrPublishingParameters); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_destroy (self); -#line 85 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (self->username); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (self->visibility_specification); -#line 1634 "FlickrPublishing.c" -} - - -GType -publishing_flickr_publishing_parameters_get_type (void) -{ - static volatile gsize publishing_flickr_publishing_parameters_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_publishing_parameters_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_flickr_value_publishing_parameters_init, publishing_flickr_value_publishing_parameters_free_value, publishing_flickr_value_publishing_parameters_copy_value, publishing_flickr_value_publishing_parameters_peek_pointer, "p", publishing_flickr_value_publishing_parameters_collect_value, "p", publishing_flickr_value_publishing_parameters_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrPublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrPublishingParameters), 0, (GInstanceInitFunc) publishing_flickr_publishing_parameters_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_flickr_publishing_parameters_type_id; - publishing_flickr_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFlickrPublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_flickr_publishing_parameters_type_id__volatile, publishing_flickr_publishing_parameters_type_id); - } - return publishing_flickr_publishing_parameters_type_id__volatile; -} - - -gpointer -publishing_flickr_publishing_parameters_ref (gpointer instance) -{ - PublishingFlickrPublishingParameters * self; - self = instance; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return instance; -#line 1663 "FlickrPublishing.c" -} - - -void -publishing_flickr_publishing_parameters_unref (gpointer instance) -{ - PublishingFlickrPublishingParameters * self; - self = instance; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - PUBLISHING_FLICKR_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1678 "FlickrPublishing.c" - } -} - - -static void -_publishing_flickr_flickr_publisher_on_session_authenticated_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, - gpointer self) -{ -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_session_authenticated ((PublishingFlickrFlickrPublisher*) self); -#line 1689 "FlickrPublishing.c" -} - - -PublishingFlickrFlickrPublisher* -publishing_flickr_flickr_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingFlickrFlickrPublisher * self = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingRESTSupportOAuth1Session* _tmp2_; - PublishingFlickrPublishingParameters* _tmp3_; - PublishingAuthenticatorFactory* _tmp4_; - PublishingAuthenticatorFactory* _tmp5_; - SpitPublishingAuthenticator* _tmp6_; - SpitPublishingAuthenticator* _tmp7_; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrFlickrPublisher*) g_object_new (object_type, NULL); -#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:106: FlickrPublisher instantiated."); -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = _g_object_ref0 (service); -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->service); -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->service = _tmp0_; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = _g_object_ref0 (host); -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->host); -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->host = _tmp1_; -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = publishing_rest_support_oauth1_session_new (PUBLISHING_FLICKR_ENDPOINT_URL); -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->session = _tmp2_; -#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = publishing_flickr_publishing_parameters_new (); -#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters); -#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->parameters = _tmp3_; -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = publishing_authenticator_factory_get_instance (); -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = _tmp4_; -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = spit_publishing_authenticator_factory_create (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory), "flickr", host); -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->authenticator = _tmp6_; -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (_tmp5_); -#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = self->priv->authenticator; -#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (_tmp7_, "authenticated", (GCallback) _publishing_flickr_flickr_publisher_on_session_authenticated_spit_publishing_authenticator_authenticated, self, 0); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 1757 "FlickrPublishing.c" -} - - -PublishingFlickrFlickrPublisher* -publishing_flickr_flickr_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_flickr_publisher_construct (PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, service, host); -#line 1767 "FlickrPublishing.c" -} - - -SpitPublishingAuthenticator* -publishing_flickr_flickr_publisher_get_authenticator (PublishingFlickrFlickrPublisher* self) -{ - SpitPublishingAuthenticator* result = NULL; - SpitPublishingAuthenticator* _tmp0_; - SpitPublishingAuthenticator* _tmp1_; -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self), NULL); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp1_; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 1787 "FlickrPublishing.c" -} - - -static gboolean -publishing_flickr_flickr_publisher_get_persistent_strip_metadata (PublishingFlickrFlickrPublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self), FALSE); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", FALSE); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 1804 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_set_persistent_strip_metadata (PublishingFlickrFlickrPublisher* self, - gboolean strip_metadata) -{ - SpitPublishingPluginHost* _tmp0_; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", strip_metadata); -#line 1819 "FlickrPublishing.c" -} - - -static gpointer -_g_variant_ref0 (gpointer self) -{ -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self ? g_variant_ref (self) : NULL; -#line 1828 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_session_authenticated (PublishingFlickrFlickrPublisher* self) -{ - GHashTable* params = NULL; - SpitPublishingAuthenticator* _tmp0_; - GHashTable* _tmp1_; - GVariant* consumer_key = NULL; - GVariant* consumer_secret = NULL; - GVariant* auth_token = NULL; - GVariant* auth_token_secret = NULL; - GVariant* username = NULL; - GHashTable* _tmp2_; - gconstpointer _tmp3_ = NULL; - GVariant* _tmp4_; - GHashTable* _tmp5_; - gconstpointer _tmp6_ = NULL; - GVariant* _tmp7_; - PublishingRESTSupportOAuth1Session* _tmp8_; - GVariant* _tmp9_; - const gchar* _tmp10_; - GVariant* _tmp11_; - const gchar* _tmp12_; - GHashTable* _tmp13_; - gconstpointer _tmp14_ = NULL; - GVariant* _tmp15_; - GHashTable* _tmp16_; - gconstpointer _tmp17_ = NULL; - GVariant* _tmp18_; - GHashTable* _tmp19_; - gconstpointer _tmp20_ = NULL; - GVariant* _tmp21_; - PublishingRESTSupportOAuth1Session* _tmp22_; - GVariant* _tmp23_; - const gchar* _tmp24_; - GVariant* _tmp25_; - const gchar* _tmp26_; - GVariant* _tmp27_; - const gchar* _tmp28_; - PublishingFlickrPublishingParameters* _tmp29_; - PublishingRESTSupportOAuth1Session* _tmp30_; - gchar* _tmp31_; -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 1879 "FlickrPublishing.c" - } -#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:136: EVENT: a fully authenticated session has be" \ -"come available"); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = spit_publishing_authenticator_get_authentication_parameter (_tmp0_); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - params = _tmp1_; -#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - consumer_key = NULL; -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - consumer_secret = NULL; -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - auth_token = NULL; -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - auth_token_secret = NULL; -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - username = NULL; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = params; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_hash_table_lookup_extended (_tmp2_, "ConsumerKey", NULL, &_tmp3_); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (consumer_key); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = _g_variant_ref0 (_tmp3_); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - consumer_key = _tmp4_; -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = params; -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_hash_table_lookup_extended (_tmp5_, "ConsumerSecret", NULL, &_tmp6_); -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (consumer_secret); -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = _g_variant_ref0 (_tmp6_); -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - consumer_secret = _tmp7_; -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = self->priv->session; -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = consumer_key; -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = g_variant_get_string (_tmp9_, NULL); -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = consumer_secret; -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = g_variant_get_string (_tmp11_, NULL); -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_oauth1_session_set_api_credentials (_tmp8_, _tmp10_, _tmp12_); -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = params; -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_hash_table_lookup_extended (_tmp13_, "AuthToken", NULL, &_tmp14_); -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (auth_token); -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = _g_variant_ref0 (_tmp14_); -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - auth_token = _tmp15_; -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp16_ = params; -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_hash_table_lookup_extended (_tmp16_, "AuthTokenSecret", NULL, &_tmp17_); -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (auth_token_secret); -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp18_ = _g_variant_ref0 (_tmp17_); -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - auth_token_secret = _tmp18_; -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp19_ = params; -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_hash_table_lookup_extended (_tmp19_, "Username", NULL, &_tmp20_); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (username); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21_ = _g_variant_ref0 (_tmp20_); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - username = _tmp21_; -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp22_ = self->priv->session; -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp23_ = auth_token; -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp24_ = g_variant_get_string (_tmp23_, NULL); -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp25_ = auth_token_secret; -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp26_ = g_variant_get_string (_tmp25_, NULL); -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp27_ = username; -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp28_ = g_variant_get_string (_tmp27_, NULL); -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_oauth1_session_set_access_phase_credentials (_tmp22_, _tmp24_, _tmp26_, _tmp28_); -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp29_ = self->priv->parameters; -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp30_ = self->priv->session; -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp31_ = publishing_rest_support_oauth1_session_get_username (_tmp30_); -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp29_->username); -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp29_->username = _tmp31_; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_do_fetch_account_info (self); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (username); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (auth_token_secret); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (auth_token); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (consumer_secret); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_variant_unref0 (consumer_key); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_hash_table_unref0 (params); -#line 2001 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_flickr_publisher_on_account_fetch_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_account_fetch_txn_completed ((PublishingFlickrFlickrPublisher*) self, _sender); -#line 2011 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_flickr_publisher_on_account_fetch_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_account_fetch_txn_error ((PublishingFlickrFlickrPublisher*) self, _sender, err); -#line 2022 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_account_fetch_txn_completed (PublishingFlickrFlickrPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_completed_publishing_rest_support_transaction_completed, self); -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_error_publishing_rest_support_transaction_network_error, self); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2050 "FlickrPublishing.c" - } -#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:167: EVENT: account fetch transaction response r" \ -"eceived over the network"); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = _tmp2_; -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_do_parse_account_info_from_xml (self, _tmp3_); -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp3_); -#line 2062 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_account_fetch_txn_error (PublishingFlickrFlickrPublisher* self, - PublishingRESTSupportTransaction* txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - SpitPublishingPluginHost* _tmp2_; -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_completed_publishing_rest_support_transaction_completed, self); -#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_error_publishing_rest_support_transaction_network_error, self); -#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2090 "FlickrPublishing.c" - } -#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:179: EVENT: account fetch transaction caused a n" \ -"etwork error"); -#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = self->priv->host; -#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp2_, err); -#line 2098 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_account_info_available (PublishingFlickrFlickrPublisher* self) -{ -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2111 "FlickrPublishing.c" - } -#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:187: EVENT: account information has become avail" \ -"able"); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_do_show_publishing_options_pane (self); -#line 2117 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_flickr_publisher_on_publishing_options_pane_publish_publishing_flickr_publishing_options_pane_publish (PublishingFlickrPublishingOptionsPane* _sender, - gboolean strip_metadata, - gpointer self) -{ -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_publishing_options_pane_publish ((PublishingFlickrFlickrPublisher*) self, strip_metadata); -#line 2128 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_flickr_publisher_on_publishing_options_pane_logout_publishing_flickr_publishing_options_pane_logout (PublishingFlickrPublishingOptionsPane* _sender, - gpointer self) -{ -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_publishing_options_pane_logout ((PublishingFlickrFlickrPublisher*) self); -#line 2138 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_publishing_options_pane_publish (PublishingFlickrFlickrPublisher* self, - gboolean strip_metadata) -{ - PublishingFlickrPublishingOptionsPane* _tmp0_; - guint _tmp1_; - PublishingFlickrPublishingOptionsPane* _tmp2_; - guint _tmp3_; -#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->publishing_options_pane; -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("publish", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_publish_publishing_flickr_publishing_options_pane_publish, self); -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = self->priv->publishing_options_pane; -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("logout", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE); -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_logout_publishing_flickr_publishing_options_pane_logout, self); -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2168 "FlickrPublishing.c" - } -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:198: EVENT: user clicked the 'Publish' button in" \ -" the publishing options pane"); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_do_publish (self, strip_metadata); -#line 2174 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_publishing_options_pane_logout (PublishingFlickrFlickrPublisher* self) -{ - PublishingFlickrPublishingOptionsPane* _tmp0_; - guint _tmp1_; - PublishingFlickrPublishingOptionsPane* _tmp2_; - guint _tmp3_; -#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->publishing_options_pane; -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("publish", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_publish_publishing_flickr_publishing_options_pane_publish, self); -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = self->priv->publishing_options_pane; -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("logout", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp3_, NULL, FALSE); -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_logout_publishing_flickr_publishing_options_pane_logout, self); -#line 206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2203 "FlickrPublishing.c" - } -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:209: EVENT: user clicked the 'Logout' button in " \ -"the publishing options pane"); -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_do_logout (self); -#line 2209 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_upload_status_updated (PublishingFlickrFlickrPublisher* self, - gint file_number, - gdouble completed_fraction) -{ - SpitPublishingProgressCallback _tmp0_; - void* _tmp0__target; - SpitPublishingProgressCallback _tmp1_; - void* _tmp1__target; -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2228 "FlickrPublishing.c" - } -#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:218: EVENT: uploader reports upload %.2f percent" \ -" complete.", 100.0 * completed_fraction); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->progress_reporter; -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->progress_reporter; -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ (file_number, completed_fraction, _tmp1__target); -#line 2244 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_flickr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self) -{ -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_upload_complete ((PublishingFlickrFlickrPublisher*) self, _sender, num_photos_published); -#line 2255 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_flickr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self) -{ -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_upload_error ((PublishingFlickrFlickrPublisher*) self, _sender, err); -#line 2266 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_upload_complete (PublishingFlickrFlickrPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published) -{ - guint _tmp0_; - guint _tmp1_; -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2285 "FlickrPublishing.c" - } -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:230: EVENT: uploader reports upload complete; %d" \ -" items published.", num_published); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_do_show_success_pane (self); -#line 2299 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_on_upload_error (PublishingFlickrFlickrPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err) -{ - const gchar* _tmp0_; - guint _tmp1_; - guint _tmp2_; - SpitPublishingPluginHost* _tmp3_; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2320 "FlickrPublishing.c" - } -#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = err->message; -#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:243: EVENT: uploader reports upload error = '%s'" \ -".", _tmp0_); -#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp2_, NULL, FALSE); -#line 246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = self->priv->host; -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp3_, err); -#line 2338 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_do_fetch_account_info (PublishingFlickrFlickrPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingFlickrAccountInfoFetchTransaction* txn = NULL; - PublishingRESTSupportOAuth1Session* _tmp2_; - PublishingFlickrAccountInfoFetchTransaction* _tmp3_; - GError * _inner_error_ = NULL; -#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:252: ACTION: running network transaction to fetc" \ -"h account information"); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->host; -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_); -#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = self->priv->session; -#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = publishing_flickr_account_info_fetch_transaction_new (_tmp2_); -#line 257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - txn = _tmp3_; -#line 258 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_completed_publishing_rest_support_transaction_completed, self, 0); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_flickr_flickr_publisher_on_account_fetch_txn_error_publishing_rest_support_transaction_network_error, self, 0); -#line 2373 "FlickrPublishing.c" - { -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2381 "FlickrPublishing.c" - goto __catch13_spit_publishing_publishing_error; - } -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2392 "FlickrPublishing.c" - } - } - goto __finally13; - __catch13_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp4_; - GError* _tmp5_; -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - err = _inner_error_; -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = NULL; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = self->priv->host; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = err; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp5_); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (err); -#line 2413 "FlickrPublishing.c" - } - __finally13: -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2426 "FlickrPublishing.c" - } -#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 2430 "FlickrPublishing.c" -} - - -static gint64 -int64_parse (const gchar* str) -{ - gint64 result = 0LL; - gint64 _tmp0_; -#line 687 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (str != NULL, 0LL); -#line 688 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_ascii_strtoll (str, NULL, (guint) 0); -#line 688 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 688 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2447 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_do_parse_account_info_from_xml (PublishingFlickrFlickrPublisher* self, - const gchar* xml) -{ - GError * _inner_error_ = NULL; -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (xml != NULL); -#line 269 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:269: ACTION: parsing account information from xm" \ -"l = '%s'", xml); -#line 2462 "FlickrPublishing.c" - { - PublishingRESTSupportXmlDocument* response_doc = NULL; - PublishingRESTSupportXmlDocument* _tmp0_; - xmlNode* root_node = NULL; - PublishingRESTSupportXmlDocument* _tmp1_; - xmlNode* _tmp2_; - xmlNode* user_node = NULL; - PublishingRESTSupportXmlDocument* _tmp3_; - xmlNode* _tmp4_; - xmlNode* _tmp5_; - gchar* is_pro_str = NULL; - PublishingRESTSupportXmlDocument* _tmp6_; - xmlNode* _tmp7_; - gchar* _tmp8_; - xmlNode* bandwidth_node = NULL; - PublishingRESTSupportXmlDocument* _tmp9_; - xmlNode* _tmp10_; - xmlNode* _tmp11_; - gchar* remaining_kb_str = NULL; - PublishingRESTSupportXmlDocument* _tmp12_; - xmlNode* _tmp13_; - gchar* _tmp14_; - PublishingFlickrUserKind user_kind = 0; - const gchar* _tmp15_; - gint64 quota_bytes_left = 0LL; - const gchar* _tmp18_; - PublishingFlickrPublishingParameters* _tmp19_; - gint64 _tmp20_; - PublishingFlickrPublishingParameters* _tmp21_; - PublishingFlickrUserKind _tmp22_; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = publishing_flickr_transaction_parse_flickr_response (xml, &_inner_error_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - response_doc = _tmp0_; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2501 "FlickrPublishing.c" - goto __catch14_spit_publishing_publishing_error; - } -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2510 "FlickrPublishing.c" - } -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = response_doc; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = publishing_rest_support_xml_document_get_root_node (_tmp1_); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - root_node = _tmp2_; -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = response_doc; -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = root_node; -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = publishing_rest_support_xml_document_get_named_child (_tmp3_, _tmp4_, "user", &_inner_error_); -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - user_node = _tmp5_; -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2532 "FlickrPublishing.c" - goto __catch14_spit_publishing_publishing_error; - } -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2543 "FlickrPublishing.c" - } -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = response_doc; -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = user_node; -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = publishing_rest_support_xml_document_get_property_value (_tmp6_, _tmp7_, "ispro", &_inner_error_); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - is_pro_str = _tmp8_; -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2559 "FlickrPublishing.c" - goto __catch14_spit_publishing_publishing_error; - } -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2570 "FlickrPublishing.c" - } -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = response_doc; -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = user_node; -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = publishing_rest_support_xml_document_get_named_child (_tmp9_, _tmp10_, "bandwidth", &_inner_error_); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - bandwidth_node = _tmp11_; -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (is_pro_str); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2588 "FlickrPublishing.c" - goto __catch14_spit_publishing_publishing_error; - } -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (is_pro_str); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2601 "FlickrPublishing.c" - } -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = response_doc; -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = bandwidth_node; -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp14_ = publishing_rest_support_xml_document_get_property_value (_tmp12_, _tmp13_, "remainingkb", &_inner_error_); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - remaining_kb_str = _tmp14_; -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (is_pro_str); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2619 "FlickrPublishing.c" - goto __catch14_spit_publishing_publishing_error; - } -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (is_pro_str); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2632 "FlickrPublishing.c" - } -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = is_pro_str; -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (g_strcmp0 (_tmp15_, "0") == 0) { -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - user_kind = PUBLISHING_FLICKR_USER_KIND_FREE; -#line 2640 "FlickrPublishing.c" - } else { - const gchar* _tmp16_; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp16_ = is_pro_str; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (g_strcmp0 (_tmp16_, "1") == 0) { -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - user_kind = PUBLISHING_FLICKR_USER_KIND_PRO; -#line 2649 "FlickrPublishing.c" - } else { - GError* _tmp17_; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "Unable to determine if user has free or pro account"); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = _tmp17_; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (remaining_kb_str); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (is_pro_str); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2664 "FlickrPublishing.c" - goto __catch14_spit_publishing_publishing_error; - } -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (remaining_kb_str); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (is_pro_str); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2679 "FlickrPublishing.c" - } - } -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp18_ = remaining_kb_str; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - quota_bytes_left = int64_parse (_tmp18_) * 1024; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp19_ = self->priv->parameters; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp20_ = quota_bytes_left; -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp19_->quota_free_bytes = _tmp20_; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21_ = self->priv->parameters; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp22_ = user_kind; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21_->user_kind = _tmp22_; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (remaining_kb_str); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (is_pro_str); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 2704 "FlickrPublishing.c" - } - goto __finally14; - __catch14_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp23_; - SpitPublishingPluginHost* _tmp24_; - GError* _tmp25_; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - err = _inner_error_; -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = NULL; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp23_ = err; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (g_error_matches (_tmp23_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION)) { -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_do_logout (self); -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (err); -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2727 "FlickrPublishing.c" - } -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp24_ = self->priv->host; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp25_ = err; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp24_, _tmp25_); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (err); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2739 "FlickrPublishing.c" - } - __finally14: -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 270 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2750 "FlickrPublishing.c" - } -#line 309 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_account_info_available (self); -#line 2754 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_do_logout (PublishingFlickrFlickrPublisher* self) -{ - SpitPublishingAuthenticator* _tmp0_; -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:313: ACTION: logging user out, deauthenticating " \ -"session, and erasing stored credentials"); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (spit_publishing_authenticator_can_logout (_tmp0_)) { -#line 2770 "FlickrPublishing.c" - SpitPublishingAuthenticator* _tmp1_; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->authenticator; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_authenticator_logout (_tmp1_); -#line 2776 "FlickrPublishing.c" - } -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->running = FALSE; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_attempt_start (self); -#line 2782 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_do_show_publishing_options_pane (PublishingFlickrFlickrPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - GtkBuilder* builder = NULL; - GtkBuilder* _tmp1_; - PublishingFlickrPublishingParameters* _tmp8_; - SpitPublishingPluginHost* _tmp9_; - GtkBuilder* _tmp10_; - PublishingFlickrPublishingOptionsPane* _tmp11_; - PublishingFlickrPublishingOptionsPane* _tmp12_; - PublishingFlickrPublishingOptionsPane* _tmp13_; - SpitPublishingPluginHost* _tmp14_; - PublishingFlickrPublishingOptionsPane* _tmp15_; - GError * _inner_error_ = NULL; -#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:325: ACTION: displaying publishing options pane"); -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = gtk_builder_new (); -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - builder = _tmp1_; -#line 2813 "FlickrPublishing.c" - { - GtkBuilder* _tmp2_; -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = builder; -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_builder_add_from_resource (_tmp2_, PLUGIN_RESOURCE_PATH "/" "flickr_publishing_options_pane.ui", &_inner_error_); -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2822 "FlickrPublishing.c" - goto __catch15_g_error; - } - } - goto __finally15; - __catch15_g_error: - { - GError* e = NULL; - GError* _tmp3_; - const gchar* _tmp4_; - SpitPublishingPluginHost* _tmp5_; - GError* _tmp6_; - GError* _tmp7_; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - e = _inner_error_; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = NULL; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = e; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = _tmp3_->message; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_warning ("FlickrPublishing.vala:337: Could not parse UI file! Error: %s.", _tmp4_); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = self->priv->host; -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _ ("A file required for publishing is unavailable. Publishing to Flickr ca" \ -"n’t continue.")); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = _tmp6_; -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp5_, _tmp7_); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (_tmp7_); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (e); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (builder); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2861 "FlickrPublishing.c" - } - __finally15: -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (builder); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 2874 "FlickrPublishing.c" - } -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = self->priv->parameters; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = self->priv->host; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = builder; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = publishing_flickr_publishing_options_pane_new (self, _tmp8_, spit_publishing_plugin_host_get_publishable_media_type (_tmp9_), _tmp10_, publishing_flickr_flickr_publisher_get_persistent_strip_metadata (self)); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->publishing_options_pane); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->publishing_options_pane = _tmp11_; -#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = self->priv->publishing_options_pane; -#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (_tmp12_, "publish", (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_publish_publishing_flickr_publishing_options_pane_publish, self, 0); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = self->priv->publishing_options_pane; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (_tmp13_, "logout", (GCallback) _publishing_flickr_flickr_publisher_on_publishing_options_pane_logout_publishing_flickr_publishing_options_pane_logout, self, 0); -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp14_ = self->priv->host; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = self->priv->publishing_options_pane; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp14_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (builder); -#line 2904 "FlickrPublishing.c" -} - - -gint -publishing_flickr_flickr_publisher_flickr_date_time_compare_func (SpitPublishingPublishable* a, - SpitPublishingPublishable* b) -{ - gint result = 0; - GDateTime* _tmp0_; - GDateTime* _tmp1_; - GDateTime* _tmp2_; - GDateTime* _tmp3_; - gint _tmp4_; -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (a), 0); -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (b), 0); -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = spit_publishing_publishable_get_exposure_date_time (a); -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = _tmp0_; -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = spit_publishing_publishable_get_exposure_date_time (b); -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = _tmp2_; -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = g_date_time_compare (_tmp1_, _tmp3_); -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_date_time_unref0 (_tmp3_); -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_date_time_unref0 (_tmp1_); -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp4_; -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 2940 "FlickrPublishing.c" -} - - -static gint -_publishing_flickr_flickr_publisher_flickr_date_time_compare_func_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = publishing_flickr_flickr_publisher_flickr_date_time_compare_func ((SpitPublishingPublishable*) a, (SpitPublishingPublishable*) b); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 2953 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_flickr_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_on_upload_status_updated ((PublishingFlickrFlickrPublisher*) self, file_number, fraction_complete); -#line 2964 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_do_publish (PublishingFlickrFlickrPublisher* self, - gboolean strip_metadata) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingFlickrPublishingParameters* _tmp2_; - gint _tmp3_; - void* _tmp4_; - GDestroyNotify _tmp5_; - SpitPublishingProgressCallback _tmp6_; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp7_; - gint _tmp8_; - SpitPublishingPublishable** _tmp9_; - gint publishables_length1; - gint _publishables_size_; - GeeArrayList* sorted_list = NULL; - GeeArrayList* _tmp10_; - SpitPublishingPublishable** _tmp11_; - gint _tmp11__length1; - GeeArrayList* _tmp15_; - PublishingFlickrUploader* uploader = NULL; - PublishingRESTSupportOAuth1Session* _tmp16_; - GeeArrayList* _tmp17_; - gint _tmp18_; - gpointer* _tmp19_; - SpitPublishingPublishable** _tmp20_; - gint _tmp20__length1; - PublishingFlickrPublishingParameters* _tmp21_; - PublishingFlickrUploader* _tmp22_; - PublishingFlickrUploader* _tmp23_; - PublishingFlickrUploader* _tmp24_; - PublishingFlickrUploader* _tmp25_; - PublishingFlickrUploader* _tmp26_; -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_set_persistent_strip_metadata (self, strip_metadata); -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:358: ACTION: uploading media items to remote ser" \ -"ver."); -#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->host; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = self->priv->parameters; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = _tmp2_->photo_major_axis_size; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = spit_publishing_plugin_host_serialize_publishables (_tmp1_, _tmp3_, strip_metadata, &_tmp4_, &_tmp5_); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter = NULL; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter = _tmp6_; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter_target = _tmp4_; -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp5_; -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 3039 "FlickrPublishing.c" - } -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = self->priv->host; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = spit_publishing_plugin_host_get_publishables (_tmp7_, &_tmp8_); -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishables = _tmp9_; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishables_length1 = _tmp8_; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishables_size_ = publishables_length1; -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = gee_array_list_new (SPIT_PUBLISHING_TYPE_PUBLISHABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - sorted_list = _tmp10_; -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = publishables; -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11__length1 = publishables_length1; -#line 3059 "FlickrPublishing.c" - { - SpitPublishingPublishable** p_collection = NULL; - gint p_collection_length1 = 0; - gint _p_collection_size_ = 0; - gint p_it = 0; -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - p_collection = _tmp11_; -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - p_collection_length1 = _tmp11__length1; -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - for (p_it = 0; p_it < _tmp11__length1; p_it = p_it + 1) { -#line 3071 "FlickrPublishing.c" - SpitPublishingPublishable* _tmp12_; - SpitPublishingPublishable* p = NULL; -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = _g_object_ref0 (p_collection[p_it]); -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - p = _tmp12_; -#line 3078 "FlickrPublishing.c" - { - GeeArrayList* _tmp13_; - SpitPublishingPublishable* _tmp14_; -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = sorted_list; -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp14_ = p; -#line 375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_); -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (p); -#line 3090 "FlickrPublishing.c" - } - } - } -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = sorted_list; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gee_list_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_LIST, GeeList), _publishing_flickr_flickr_publisher_flickr_date_time_compare_func_gcompare_data_func, NULL, NULL); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp16_ = self->priv->session; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17_ = sorted_list; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp19_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp18_); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp20_ = _tmp19_; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp20__length1 = _tmp18_; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21_ = self->priv->parameters; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp22_ = publishing_flickr_uploader_new (_tmp16_, _tmp20_, _tmp18_, _tmp21_, strip_metadata); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp23_ = _tmp22_; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp20_ = (_vala_array_free (_tmp20_, _tmp20__length1, (GDestroyNotify) g_object_unref), NULL); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - uploader = _tmp23_; -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp24_ = uploader; -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_flickr_flickr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0); -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp25_ = uploader; -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_flickr_flickr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self, 0); -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp26_ = uploader; -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_flickr_flickr_publisher_on_upload_status_updated_spit_publishing_progress_callback, self); -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_batch_uploader_unref0 (uploader); -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (sorted_list); -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 3136 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_do_show_success_pane (PublishingFlickrFlickrPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:386: ACTION: showing success pane."); -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->host; -#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_plugin_host_install_success_pane (_tmp1_); -#line 3157 "FlickrPublishing.c" -} - - -gint -publishing_flickr_flickr_publisher_get_persistent_visibility (PublishingFlickrFlickrPublisher* self) -{ - gint result = 0; - SpitPublishingPluginHost* _tmp0_; -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self), 0); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "visibility", 0); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3174 "FlickrPublishing.c" -} - - -void -publishing_flickr_flickr_publisher_set_persistent_visibility (PublishingFlickrFlickrPublisher* self, - gint vis) -{ - SpitPublishingPluginHost* _tmp0_; -#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "visibility", vis); -#line 3189 "FlickrPublishing.c" -} - - -gint -publishing_flickr_flickr_publisher_get_persistent_default_size (PublishingFlickrFlickrPublisher* self) -{ - gint result = 0; - SpitPublishingPluginHost* _tmp0_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self), 0); -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", 1); -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3206 "FlickrPublishing.c" -} - - -void -publishing_flickr_flickr_publisher_set_persistent_default_size (PublishingFlickrFlickrPublisher* self, - gint size) -{ - SpitPublishingPluginHost* _tmp0_; -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->host; -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", size); -#line 3221 "FlickrPublishing.c" -} - - -static SpitPublishingService* -publishing_flickr_flickr_publisher_real_get_service (SpitPublishingPublisher* base) -{ - PublishingFlickrFlickrPublisher * self; - SpitPublishingService* result = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingService* _tmp1_; -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher); -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->service; -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp1_; -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3242 "FlickrPublishing.c" -} - - -static gboolean -publishing_flickr_flickr_publisher_real_is_running (SpitPublishingPublisher* base) -{ - PublishingFlickrFlickrPublisher * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher); -#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->running; -#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp0_; -#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3260 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_attempt_start (PublishingFlickrFlickrPublisher* self) -{ - SpitPublishingAuthenticator* _tmp0_; -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (self)); -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->running = TRUE; -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->was_started = TRUE; -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spit_publishing_authenticator_authenticate (_tmp0_); -#line 3278 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_real_start (SpitPublishingPublisher* base) -{ - PublishingFlickrFlickrPublisher * self; - gboolean _tmp0_; -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher); -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 3293 "FlickrPublishing.c" - } -#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->was_started; -#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp0_) { -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_error ("FlickrPublishing.vala:430: FlickrPublisher: start( ): can't start; thi" \ -"s publisher is not restartable."); -#line 3301 "FlickrPublishing.c" - } -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:432: FlickrPublisher: starting interaction."); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_attempt_start (self); -#line 3307 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_real_stop (SpitPublishingPublisher* base) -{ - PublishingFlickrFlickrPublisher * self; - PublishingRESTSupportOAuth1Session* _tmp0_; -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_debug ("FlickrPublishing.vala:438: FlickrPublisher: stop( ) invoked."); -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->session; -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp0_ != NULL) { -#line 3324 "FlickrPublishing.c" - PublishingRESTSupportOAuth1Session* _tmp1_; -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->session; -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_session_stop_transactions (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)); -#line 3330 "FlickrPublishing.c" - } -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->running = FALSE; -#line 3334 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_class_init (PublishingFlickrFlickrPublisherClass * klass) -{ -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_parent_class = g_type_class_peek_parent (klass); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFlickrFlickrPublisherPrivate)); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_flickr_flickr_publisher_finalize; -#line 3347 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) -{ -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->get_service = (SpitPublishingService* (*) (SpitPublishingPublisher *)) publishing_flickr_flickr_publisher_real_get_service; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->is_running = (gboolean (*) (SpitPublishingPublisher *)) publishing_flickr_flickr_publisher_real_is_running; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->start = (void (*) (SpitPublishingPublisher *)) publishing_flickr_flickr_publisher_real_start; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->stop = (void (*) (SpitPublishingPublisher *)) publishing_flickr_flickr_publisher_real_stop; -#line 3364 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_instance_init (PublishingFlickrFlickrPublisher * self) -{ -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv = PUBLISHING_FLICKR_FLICKR_PUBLISHER_GET_PRIVATE (self); -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter = NULL; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter_target = self; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->running = FALSE; -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->was_started = FALSE; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->session = NULL; -#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->publishing_options_pane = NULL; -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->authenticator = NULL; -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->parameters = NULL; -#line 3391 "FlickrPublishing.c" -} - - -static void -publishing_flickr_flickr_publisher_finalize (GObject * obj) -{ - PublishingFlickrFlickrPublisher * self; - SpitPublishingAuthenticator* _tmp0_; - guint _tmp1_; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_FLICKR_PUBLISHER, PublishingFlickrFlickrPublisher); -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("authenticated", SPIT_PUBLISHING_TYPE_AUTHENTICATOR, &_tmp1_, NULL, FALSE); -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_flickr_publisher_on_session_authenticated_spit_publishing_authenticator_authenticated, self); -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->service); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->host); -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter = NULL; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->publishing_options_pane); -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_OBJECT_CLASS (publishing_flickr_flickr_publisher_parent_class)->finalize (obj); -#line 3431 "FlickrPublishing.c" -} - - -GType -publishing_flickr_flickr_publisher_get_type (void) -{ - static volatile gsize publishing_flickr_flickr_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_flickr_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrFlickrPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_flickr_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrFlickrPublisher), 0, (GInstanceInitFunc) publishing_flickr_flickr_publisher_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_flickr_flickr_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_flickr_flickr_publisher_type_id; - publishing_flickr_flickr_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingFlickrFlickrPublisher", &g_define_type_info, 0); - g_type_add_interface_static (publishing_flickr_flickr_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info); - g_once_init_leave (&publishing_flickr_flickr_publisher_type_id__volatile, publishing_flickr_flickr_publisher_type_id); - } - return publishing_flickr_flickr_publisher_type_id__volatile; -} - - -gchar* -publishing_flickr_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc) -{ - gchar* result = NULL; - xmlNode* root = NULL; - xmlNode* _tmp0_; - gchar* status = NULL; - xmlNode* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp5_; - xmlNode* errcode = NULL; - xmlNode* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - xmlNode* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - GError * _inner_error_ = NULL; -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL); -#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = publishing_rest_support_xml_document_get_root_node (doc); -#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - root = _tmp0_; -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = root; -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = (gchar*) xmlGetProp (_tmp1_, (xmlChar*) "stat"); -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - status = _tmp2_; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = status; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp3_ == NULL) { -#line 3488 "FlickrPublishing.c" - gchar* _tmp4_; -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = g_strdup ("No status property in root node"); -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp4_; -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (status); -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3498 "FlickrPublishing.c" - } -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = status; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (g_strcmp0 (_tmp5_, "ok") == 0) { -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = NULL; -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (status); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3510 "FlickrPublishing.c" - } - { - xmlNode* _tmp6_ = NULL; - xmlNode* _tmp7_; - xmlNode* _tmp8_; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = root; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = publishing_rest_support_xml_document_get_named_child (doc, _tmp7_, "err", &_inner_error_); -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = _tmp8_; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3526 "FlickrPublishing.c" - goto __catch16_spit_publishing_publishing_error; - } -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (status); -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 3537 "FlickrPublishing.c" - } -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - errcode = _tmp6_; -#line 3541 "FlickrPublishing.c" - } - goto __finally16; - __catch16_spit_publishing_publishing_error: - { - GError* err = NULL; - gchar* _tmp9_; -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - err = _inner_error_; -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = NULL; -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = g_strdup ("No error code specified"); -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp9_; -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (err); -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (status); -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3562 "FlickrPublishing.c" - } - __finally16: -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (status); -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 3575 "FlickrPublishing.c" - } -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = errcode; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = (gchar*) xmlGetProp (_tmp10_, (xmlChar*) "msg"); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = _tmp11_; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = errcode; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp14_ = (gchar*) xmlGetProp (_tmp13_, (xmlChar*) "code"); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = _tmp14_; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp16_ = g_strdup_printf ("%s (error code %s)", _tmp12_, _tmp15_); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17_ = _tmp16_; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp15_); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp12_); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp17_; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (status); -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3603 "FlickrPublishing.c" -} - - -static gchar* -_publishing_flickr_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self) -{ - gchar* result; - result = publishing_flickr_transaction_validate_xml (doc); -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3615 "FlickrPublishing.c" -} - - -static gboolean -string_contains (const gchar* self, - const gchar* needle) -{ - gboolean result = FALSE; - gchar* _tmp0_; -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, FALSE); -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, FALSE); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr ((gchar*) self, (gchar*) needle); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_ != NULL; -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3635 "FlickrPublishing.c" -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self ? g_error_copy (self) : NULL; -#line 3644 "FlickrPublishing.c" -} - - -PublishingRESTSupportXmlDocument* -publishing_flickr_transaction_parse_flickr_response (const gchar* xml, - GError** error) -{ - PublishingRESTSupportXmlDocument* result = NULL; - PublishingRESTSupportXmlDocument* _result_ = NULL; - GError * _inner_error_ = NULL; -#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (xml != NULL, NULL); -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _result_ = NULL; -#line 3659 "FlickrPublishing.c" - { - PublishingRESTSupportXmlDocument* _tmp0_ = NULL; - PublishingRESTSupportXmlDocument* _tmp1_; - PublishingRESTSupportXmlDocument* _tmp2_; -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = publishing_rest_support_xml_document_parse_string (xml, _publishing_flickr_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = _tmp1_; -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3672 "FlickrPublishing.c" - goto __catch17_spit_publishing_publishing_error; - } -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (_result_); -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 3683 "FlickrPublishing.c" - } -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = _tmp0_; -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = NULL; -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (_result_); -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _result_ = _tmp2_; -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (_tmp0_); -#line 3695 "FlickrPublishing.c" - } - goto __finally17; - __catch17_spit_publishing_publishing_error: - { - GError* e = NULL; - GError* _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gboolean _tmp7_; -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - e = _inner_error_; -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = NULL; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = e; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = _tmp3_->message; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = g_strdup_printf ("(error code %s)", PUBLISHING_FLICKR_EXPIRED_SESSION_ERROR_CODE); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = _tmp5_; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = string_contains (_tmp4_, _tmp6_); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp6_); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp7_) { -#line 3724 "FlickrPublishing.c" - GError* _tmp8_; - const gchar* _tmp9_; - GError* _tmp10_; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = e; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = _tmp8_->message; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION, _tmp9_); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = _tmp10_; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (e); -#line 3738 "FlickrPublishing.c" - goto __finally17; - } else { - GError* _tmp11_; - GError* _tmp12_; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = e; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = _g_error_copy0 (_tmp11_); -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = _tmp12_; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (e); -#line 3751 "FlickrPublishing.c" - goto __finally17; - } -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (e); -#line 3756 "FlickrPublishing.c" - } - __finally17: -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (_result_); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 3769 "FlickrPublishing.c" - } else { -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_xml_document_unref0 (_result_); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 3779 "FlickrPublishing.c" - } - } -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _result_; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 3786 "FlickrPublishing.c" -} - - -PublishingFlickrAccountInfoFetchTransaction* -publishing_flickr_account_info_fetch_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session) -{ - PublishingFlickrAccountInfoFetchTransaction* self = NULL; -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrAccountInfoFetchTransaction*) publishing_rest_support_oauth1_transaction_construct (object_type, session, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "flickr.people.getUploadStatus"); -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 3803 "FlickrPublishing.c" -} - - -PublishingFlickrAccountInfoFetchTransaction* -publishing_flickr_account_info_fetch_transaction_new (PublishingRESTSupportOAuth1Session* session) -{ -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_account_info_fetch_transaction_construct (PUBLISHING_FLICKR_TYPE_ACCOUNT_INFO_FETCH_TRANSACTION, session); -#line 3812 "FlickrPublishing.c" -} - - -static void -publishing_flickr_account_info_fetch_transaction_class_init (PublishingFlickrAccountInfoFetchTransactionClass * klass) -{ -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_account_info_fetch_transaction_parent_class = g_type_class_peek_parent (klass); -#line 3821 "FlickrPublishing.c" -} - - -static void -publishing_flickr_account_info_fetch_transaction_instance_init (PublishingFlickrAccountInfoFetchTransaction * self) -{ -} - - -GType -publishing_flickr_account_info_fetch_transaction_get_type (void) -{ - static volatile gsize publishing_flickr_account_info_fetch_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_account_info_fetch_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrAccountInfoFetchTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_account_info_fetch_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrAccountInfoFetchTransaction), 0, (GInstanceInitFunc) publishing_flickr_account_info_fetch_transaction_instance_init, NULL }; - GType publishing_flickr_account_info_fetch_transaction_type_id; - publishing_flickr_account_info_fetch_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, "PublishingFlickrAccountInfoFetchTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_flickr_account_info_fetch_transaction_type_id__volatile, publishing_flickr_account_info_fetch_transaction_type_id); - } - return publishing_flickr_account_info_fetch_transaction_type_id__volatile; -} - - -static gpointer -_publishing_flickr_publishing_parameters_ref0 (gpointer self) -{ -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self ? publishing_flickr_publishing_parameters_ref (self) : NULL; -#line 3850 "FlickrPublishing.c" -} - - -static void -_g_free0_ (gpointer var) -{ -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - var = (g_free (var), NULL); -#line 3859 "FlickrPublishing.c" -} - - -PublishingFlickrUploadTransaction* -publishing_flickr_upload_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - PublishingFlickrPublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ - PublishingFlickrUploadTransaction* self = NULL; - PublishingFlickrPublishingParameters* _tmp0_; - PublishingFlickrVisibilitySpecification* _tmp1_; - gint _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - PublishingFlickrVisibilitySpecification* _tmp5_; - gint _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - PublishingFlickrVisibilitySpecification* _tmp9_; - gint _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - GHashTable* disposition_table = NULL; - GHashFunc _tmp13_; - GEqualFunc _tmp14_; - GHashTable* _tmp15_; - gchar* filename = NULL; - gchar* _tmp16_; - gboolean _tmp17_ = FALSE; - const gchar* _tmp18_; - GHashTable* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - GHashTable* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - GHashTable* _tmp29_; -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 509 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrUploadTransaction*) publishing_rest_support_oauth1_upload_transaction_construct (object_type, session, publishable, "https://api.flickr.com/services/upload"); -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = _publishing_flickr_publishing_parameters_ref0 (parameters); -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters); -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->parameters = _tmp0_; -#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = parameters->visibility_specification; -#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = _tmp1_->everyone_level; -#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = g_strdup_printf ("%d", _tmp2_); -#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = _tmp3_; -#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "is_public", _tmp4_); -#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp4_); -#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = parameters->visibility_specification; -#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = _tmp5_->friends_level; -#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = g_strdup_printf ("%d", _tmp6_); -#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = _tmp7_; -#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "is_friend", _tmp8_); -#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp8_); -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = parameters->visibility_specification; -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = _tmp9_->family_level; -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = g_strdup_printf ("%d", _tmp10_); -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = _tmp11_; -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "is_family", _tmp12_); -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp12_); -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = g_str_hash; -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp14_ = g_str_equal; -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = g_hash_table_new_full (_tmp13_, _tmp14_, _g_free0_, _g_free0_); -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - disposition_table = _tmp15_; -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp16_ = spit_publishing_publishable_get_publishing_name (publishable); -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - filename = _tmp16_; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp18_ = filename; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp18_ == NULL) { -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17_ = TRUE; -#line 3968 "FlickrPublishing.c" - } else { - const gchar* _tmp19_; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp19_ = filename; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17_ = g_strcmp0 (_tmp19_, "") == 0; -#line 3975 "FlickrPublishing.c" - } -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp17_) { -#line 3979 "FlickrPublishing.c" - gchar* _tmp20_; -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp20_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (filename); -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - filename = _tmp20_; -#line 3987 "FlickrPublishing.c" - } -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21_ = disposition_table; -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp22_ = g_strdup ("filename"); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp23_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp24_ = _tmp23_; -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp25_ = soup_uri_encode (_tmp24_, NULL); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_hash_table_insert (_tmp21_, _tmp22_, _tmp25_); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp24_); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp26_ = disposition_table; -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp27_ = g_strdup ("name"); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp28_ = g_strdup ("photo"); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_hash_table_insert (_tmp26_, _tmp27_, _tmp28_); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp29_ = disposition_table; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_upload_transaction_set_binary_disposition_table (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction), _tmp29_); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (filename); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_hash_table_unref0 (disposition_table); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 4021 "FlickrPublishing.c" -} - - -PublishingFlickrUploadTransaction* -publishing_flickr_upload_transaction_new (PublishingRESTSupportOAuth1Session* session, - PublishingFlickrPublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_upload_transaction_construct (PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, session, parameters, publishable); -#line 4032 "FlickrPublishing.c" -} - - -static void -publishing_flickr_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error) -{ - PublishingFlickrUploadTransaction * self; - GError * _inner_error_ = NULL; -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransaction); -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_rest_support_oauth1_upload_transaction_authorize (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction)); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_flickr_upload_transaction_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction), PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 4056 "FlickrPublishing.c" - } else { -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 4064 "FlickrPublishing.c" - } - } -} - - -static void -publishing_flickr_upload_transaction_class_init (PublishingFlickrUploadTransactionClass * klass) -{ -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_upload_transaction_parent_class = g_type_class_peek_parent (klass); -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_flickr_upload_transaction_finalize; -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFlickrUploadTransactionPrivate)); -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_flickr_upload_transaction_real_execute; -#line 4081 "FlickrPublishing.c" -} - - -static void -publishing_flickr_upload_transaction_instance_init (PublishingFlickrUploadTransaction * self) -{ -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv = PUBLISHING_FLICKR_UPLOAD_TRANSACTION_GET_PRIVATE (self); -#line 4090 "FlickrPublishing.c" -} - - -static void -publishing_flickr_upload_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingFlickrUploadTransaction * self; -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_UPLOAD_TRANSACTION, PublishingFlickrUploadTransaction); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters); -#line 504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_flickr_upload_transaction_parent_class)->finalize (obj); -#line 4104 "FlickrPublishing.c" -} - - -GType -publishing_flickr_upload_transaction_get_type (void) -{ - static volatile gsize publishing_flickr_upload_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_upload_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrUploadTransaction), 0, (GInstanceInitFunc) publishing_flickr_upload_transaction_instance_init, NULL }; - GType publishing_flickr_upload_transaction_type_id; - publishing_flickr_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, "PublishingFlickrUploadTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_flickr_upload_transaction_type_id__volatile, publishing_flickr_upload_transaction_type_id); - } - return publishing_flickr_upload_transaction_type_id__volatile; -} - - -static void -_publishing_flickr_publishing_options_pane_on_visibility_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_on_visibility_changed ((PublishingFlickrPublishingOptionsPane*) self); -#line 4128 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_publishing_options_pane_on_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_on_size_changed ((PublishingFlickrPublishingOptionsPane*) self); -#line 4138 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_on_logout_clicked ((PublishingFlickrPublishingOptionsPane*) self); -#line 4148 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_on_publish_clicked ((PublishingFlickrPublishingOptionsPane*) self); -#line 4158 "FlickrPublishing.c" -} - - -PublishingFlickrPublishingOptionsPane* -publishing_flickr_publishing_options_pane_construct (GType object_type, - PublishingFlickrFlickrPublisher* publisher, - PublishingFlickrPublishingParameters* parameters, - SpitPublishingPublisherMediaType media_type, - GtkBuilder* builder, - gboolean strip_metadata) -{ - PublishingFlickrPublishingOptionsPane * self = NULL; - GtkBuilder* _tmp0_; - GSList* _tmp1_; - GSList* _tmp2_; - GtkBuilder* _tmp3_; - GObject* _tmp4_; - GtkBox* _tmp5_; - GtkBuilder* _tmp6_; - GObject* _tmp7_; - GtkLabel* _tmp8_; - GtkBuilder* _tmp9_; - GObject* _tmp10_; - GtkLabel* _tmp11_; - GtkBuilder* _tmp12_; - GObject* _tmp13_; - GtkButton* _tmp14_; - GtkBuilder* _tmp15_; - GObject* _tmp16_; - GtkButton* _tmp17_; - GtkBuilder* _tmp18_; - GObject* _tmp19_; - GtkComboBoxText* _tmp20_; - GtkBuilder* _tmp21_; - GObject* _tmp22_; - GtkComboBoxText* _tmp23_; - GtkBuilder* _tmp24_; - GObject* _tmp25_; - GtkLabel* _tmp26_; - GtkBuilder* _tmp27_; - GObject* _tmp28_; - GtkCheckButton* _tmp29_; - SpitPublishingAuthenticator* _tmp30_; - SpitPublishingAuthenticator* _tmp31_; - gboolean _tmp32_; - PublishingFlickrPublishingParameters* _tmp37_; - PublishingFlickrFlickrPublisher* _tmp38_; - gint _tmp39_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp40_; - gint _tmp41_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp42_; - gchar* upload_label_text = NULL; - const gchar* _tmp43_; - gchar* _tmp44_; - PublishingFlickrUserKind _tmp45_; - GtkLabel* _tmp55_; - const gchar* _tmp56_; - gchar* visibility_label_text = NULL; - gchar* _tmp57_; - GtkLabel* _tmp60_; - const gchar* _tmp61_; - GtkComboBoxText* _tmp62_; - GtkCheckButton* _tmp66_; - GtkButton* _tmp67_; - GtkButton* _tmp68_; -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_FLICKR_PUBLISHER (publisher), NULL); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrPublishingOptionsPane*) g_object_new (object_type, NULL); -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = _g_object_ref0 (builder); -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->builder = _tmp0_; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_assert (builder != NULL, "builder != null"); -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = gtk_builder_get_objects (builder); -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = _tmp1_; -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_assert (g_slist_length (_tmp2_) > ((guint) 0), "builder.get_objects().length() > 0"); -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_slist_free0 (_tmp2_); -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = self->priv->builder; -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = gtk_builder_get_object (_tmp3_, "flickr_pane"); -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_box_get_type (), GtkBox)); -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->pane_widget = _tmp5_; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = self->priv->builder; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = gtk_builder_get_object (_tmp6_, "visibility_label"); -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_label_get_type (), GtkLabel)); -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->visibility_label); -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibility_label = _tmp8_; -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = self->priv->builder; -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = gtk_builder_get_object (_tmp9_, "upload_info_label"); -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_label_get_type (), GtkLabel)); -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->upload_info_label); -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->upload_info_label = _tmp11_; -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = self->priv->builder; -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = gtk_builder_get_object (_tmp12_, "logout_button"); -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_button_get_type (), GtkButton)); -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->logout_button = _tmp14_; -#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = self->priv->builder; -#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp16_ = gtk_builder_get_object (_tmp15_, "publish_button"); -#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_button_get_type (), GtkButton)); -#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 590 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->publish_button = _tmp17_; -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp18_ = self->priv->builder; -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp19_ = gtk_builder_get_object (_tmp18_, "visibility_combo"); -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->visibility_combo); -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibility_combo = _tmp20_; -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21_ = self->priv->builder; -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp22_ = gtk_builder_get_object (_tmp21_, "size_combo"); -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->size_combo); -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->size_combo = _tmp23_; -#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp24_ = self->priv->builder; -#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp25_ = gtk_builder_get_object (_tmp24_, "size_label"); -#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp26_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_label_get_type (), GtkLabel)); -#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->size_label); -#line 593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->size_label = _tmp26_; -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp27_ = self->priv->builder; -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp28_ = gtk_builder_get_object (_tmp27_, "strip_metadata_check"); -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp29_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_check_button_get_type (), GtkCheckButton)); -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->strip_metadata_check = _tmp29_; -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp30_ = publishing_flickr_flickr_publisher_get_authenticator (publisher); -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp31_ = _tmp30_; -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp32_ = !spit_publishing_authenticator_can_logout (_tmp31_); -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (_tmp31_); -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp32_) { -#line 4348 "FlickrPublishing.c" - GtkButton* _tmp33_; - GtkContainer* _tmp34_; - GtkContainer* _tmp35_; - GtkButton* _tmp36_; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp33_ = self->priv->logout_button; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp34_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_widget_get_type (), GtkWidget)); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp35_ = _tmp34_; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp36_ = self->priv->logout_button; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_container_remove (_tmp35_, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_widget_get_type (), GtkWidget)); -#line 4363 "FlickrPublishing.c" - } -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp37_ = _publishing_flickr_publishing_parameters_ref0 (parameters); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->parameters = _tmp37_; -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp38_ = _g_object_ref0 (publisher); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->publisher); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->publisher = _tmp38_; -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->media_type = media_type; -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp40_ = publishing_flickr_publishing_options_pane_create_visibilities (self, &_tmp39_); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities = (_vala_array_free (self->priv->visibilities, self->priv->visibilities_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_visibility_entry_unref), NULL); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities = _tmp40_; -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities_length1 = _tmp39_; -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->_visibilities_size_ = self->priv->visibilities_length1; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp42_ = publishing_flickr_publishing_options_pane_create_sizes (self, &_tmp41_); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_size_entry_unref), NULL); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes = _tmp42_; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes_length1 = _tmp41_; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->_sizes_size_ = self->priv->sizes_length1; -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp43_ = parameters->username; -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp44_ = g_strdup_printf (_ ("You are logged into Flickr as %s.\n\n"), _tmp43_); -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - upload_label_text = _tmp44_; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp45_ = parameters->user_kind; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp45_ == PUBLISHING_FLICKR_USER_KIND_FREE) { -#line 4409 "FlickrPublishing.c" - const gchar* _tmp46_; - gint64 _tmp47_; - gchar* _tmp48_; - gchar* _tmp49_; - gchar* _tmp50_; - gchar* _tmp51_; - gchar* _tmp52_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp46_ = upload_label_text; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp47_ = parameters->quota_free_bytes; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp48_ = g_format_size_full ((guint64) _tmp47_, G_FORMAT_SIZE_LONG_FORMAT | G_FORMAT_SIZE_IEC_UNITS); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp49_ = _tmp48_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp50_ = g_strdup_printf (_ ("Your free Flickr account limits how much data you can upload per month" \ -".\n" \ -"This month you have %s remaining in your upload quota."), _tmp49_); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp51_ = _tmp50_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp52_ = g_strconcat (_tmp46_, _tmp51_, NULL); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (upload_label_text); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - upload_label_text = _tmp52_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp51_); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp49_); -#line 4439 "FlickrPublishing.c" - } else { - const gchar* _tmp53_; - gchar* _tmp54_; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp53_ = upload_label_text; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp54_ = g_strconcat (_tmp53_, _ ("Your Flickr Pro account entitles you to unlimited uploads."), NULL); -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (upload_label_text); -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - upload_label_text = _tmp54_; -#line 4451 "FlickrPublishing.c" - } -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp55_ = self->priv->upload_info_label; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp56_ = upload_label_text; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_label_set_label (_tmp55_, _tmp56_); -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp57_ = g_strdup (_ ("Photos _visible to:")); -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - visibility_label_text = _tmp57_; -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (media_type == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 4465 "FlickrPublishing.c" - gchar* _tmp58_; -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp58_ = g_strdup (_ ("Videos _visible to:")); -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (visibility_label_text); -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - visibility_label_text = _tmp58_; -#line 4473 "FlickrPublishing.c" - } else { -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (media_type == (SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO)) { -#line 4477 "FlickrPublishing.c" - gchar* _tmp59_; -#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp59_ = g_strdup (_ ("Photos and videos _visible to:")); -#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (visibility_label_text); -#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - visibility_label_text = _tmp59_; -#line 4485 "FlickrPublishing.c" - } - } -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp60_ = self->priv->visibility_label; -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp61_ = visibility_label_text; -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_label_set_label (_tmp60_, _tmp61_); -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_populate_visibility_combo (self); -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp62_ = self->priv->visibility_combo; -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_flickr_publishing_options_pane_on_visibility_changed_gtk_combo_box_changed, self, 0); -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (media_type != SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 4502 "FlickrPublishing.c" - GtkComboBoxText* _tmp63_; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_populate_size_combo (self); -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp63_ = self->priv->size_combo; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_flickr_publishing_options_pane_on_size_changed_gtk_combo_box_changed, self, 0); -#line 4510 "FlickrPublishing.c" - } else { - GtkComboBoxText* _tmp64_; - GtkLabel* _tmp65_; -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp64_ = self->priv->size_combo; -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp65_ = self->priv->size_label; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 4522 "FlickrPublishing.c" - } -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp66_ = self->priv->strip_metadata_check; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, gtk_toggle_button_get_type (), GtkToggleButton), strip_metadata); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp67_ = self->priv->logout_button; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (_tmp67_, "clicked", (GCallback) _publishing_flickr_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0); -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp68_ = self->priv->publish_button; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (_tmp68_, "clicked", (GCallback) _publishing_flickr_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (visibility_label_text); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (upload_label_text); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 4542 "FlickrPublishing.c" -} - - -PublishingFlickrPublishingOptionsPane* -publishing_flickr_publishing_options_pane_new (PublishingFlickrFlickrPublisher* publisher, - PublishingFlickrPublishingParameters* parameters, - SpitPublishingPublisherMediaType media_type, - GtkBuilder* builder, - gboolean strip_metadata) -{ -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_publishing_options_pane_construct (PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, publisher, parameters, media_type, builder, strip_metadata); -#line 4555 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_on_logout_clicked (PublishingFlickrPublishingOptionsPane* self) -{ -#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_emit (self, publishing_flickr_publishing_options_pane_signals[PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 4566 "FlickrPublishing.c" -} - - -static gpointer -_publishing_flickr_visibility_specification_ref0 (gpointer self) -{ -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self ? publishing_flickr_visibility_specification_ref (self) : NULL; -#line 4575 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_on_publish_clicked (PublishingFlickrPublishingOptionsPane* self) -{ - PublishingFlickrPublishingParameters* _tmp0_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp1_; - gint _tmp1__length1; - GtkComboBoxText* _tmp2_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp3_; - PublishingFlickrVisibilitySpecification* _tmp4_; - PublishingFlickrVisibilitySpecification* _tmp5_; - SpitPublishingPublisherMediaType _tmp6_; - GtkCheckButton* _tmp12_; -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->parameters; -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->visibilities; -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1__length1 = self->priv->visibilities_length1; -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = self->priv->visibility_combo; -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = _tmp1_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = _tmp3_->specification; -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = _publishing_flickr_visibility_specification_ref0 (_tmp4_); -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (_tmp0_->visibility_specification); -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_->visibility_specification = _tmp5_; -#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = self->priv->media_type; -#line 652 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((_tmp6_ & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) != 0) { -#line 4615 "FlickrPublishing.c" - PublishingFlickrPublishingParameters* _tmp7_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp8_; - gint _tmp8__length1; - GtkComboBoxText* _tmp9_; - PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp10_; - gint _tmp11_; -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = self->priv->parameters; -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = self->priv->sizes; -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8__length1 = self->priv->sizes_length1; -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = self->priv->size_combo; -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = _tmp8_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = _tmp10_->size; -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_->photo_major_axis_size = _tmp11_; -#line 4636 "FlickrPublishing.c" - } -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = self->priv->strip_metadata_check; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_emit (self, publishing_flickr_publishing_options_pane_signals[PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 4642 "FlickrPublishing.c" -} - - -static void -_vala_array_add20 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value) -{ -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, *array, (*size) + 1); -#line 4658 "FlickrPublishing.c" - } -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 4664 "FlickrPublishing.c" -} - - -static void -_vala_array_add21 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value) -{ -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, *array, (*size) + 1); -#line 4680 "FlickrPublishing.c" - } -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 4686 "FlickrPublishing.c" -} - - -static void -_vala_array_add22 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value) -{ -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, *array, (*size) + 1); -#line 4702 "FlickrPublishing.c" - } -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 4708 "FlickrPublishing.c" -} - - -static void -_vala_array_add23 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value) -{ -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, *array, (*size) + 1); -#line 4724 "FlickrPublishing.c" - } -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 4730 "FlickrPublishing.c" -} - - -static void -_vala_array_add24 (PublishingFlickrPublishingOptionsPaneVisibilityEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneVisibilityEntry* value) -{ -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, *array, (*size) + 1); -#line 4746 "FlickrPublishing.c" - } -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 4752 "FlickrPublishing.c" -} - - -static PublishingFlickrPublishingOptionsPaneVisibilityEntry** -publishing_flickr_publishing_options_pane_create_visibilities (PublishingFlickrPublishingOptionsPane* self, - int* result_length1) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry** result = NULL; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _result_ = NULL; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp1_; - gint _tmp1__length1; - PublishingFlickrVisibilitySpecification* _tmp2_; - PublishingFlickrVisibilitySpecification* _tmp3_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp4_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp5_; - gint _tmp5__length1; - PublishingFlickrVisibilitySpecification* _tmp6_; - PublishingFlickrVisibilitySpecification* _tmp7_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp8_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp9_; - gint _tmp9__length1; - PublishingFlickrVisibilitySpecification* _tmp10_; - PublishingFlickrVisibilitySpecification* _tmp11_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp12_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp13_; - gint _tmp13__length1; - PublishingFlickrVisibilitySpecification* _tmp14_; - PublishingFlickrVisibilitySpecification* _tmp15_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp16_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp17_; - gint _tmp17__length1; - PublishingFlickrVisibilitySpecification* _tmp18_; - PublishingFlickrVisibilitySpecification* _tmp19_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp20_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp21_; - gint _tmp21__length1; -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = g_new0 (PublishingFlickrPublishingOptionsPaneVisibilityEntry*, 0 + 1); -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _result_ = _tmp0_; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _result__length1 = 0; -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - __result__size_ = _result__length1; -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = _result_; -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1__length1 = _result__length1; -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = publishing_flickr_visibility_specification_new (1, 1, 1); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = _tmp2_; -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = publishing_flickr_publishing_options_pane_visibility_entry_new (_ ("Everyone"), _tmp3_); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add20 (&_result_, &_result__length1, &__result__size_, _tmp4_); -#line 661 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (_tmp3_); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = _result_; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5__length1 = _result__length1; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = publishing_flickr_visibility_specification_new (1, 1, 0); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = _tmp6_; -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = publishing_flickr_publishing_options_pane_visibility_entry_new (_ ("Friends & family only"), _tmp7_); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add21 (&_result_, &_result__length1, &__result__size_, _tmp8_); -#line 662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (_tmp7_); -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = _result_; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9__length1 = _result__length1; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = publishing_flickr_visibility_specification_new (0, 1, 0); -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = _tmp10_; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = publishing_flickr_publishing_options_pane_visibility_entry_new (_ ("Family only"), _tmp11_); -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add22 (&_result_, &_result__length1, &__result__size_, _tmp12_); -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (_tmp11_); -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = _result_; -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13__length1 = _result__length1; -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp14_ = publishing_flickr_visibility_specification_new (1, 0, 0); -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = _tmp14_; -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp16_ = publishing_flickr_publishing_options_pane_visibility_entry_new (_ ("Friends only"), _tmp15_); -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add23 (&_result_, &_result__length1, &__result__size_, _tmp16_); -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (_tmp15_); -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17_ = _result_; -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17__length1 = _result__length1; -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp18_ = publishing_flickr_visibility_specification_new (0, 0, 0); -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp19_ = _tmp18_; -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp20_ = publishing_flickr_publishing_options_pane_visibility_entry_new (_ ("Just me"), _tmp19_); -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add24 (&_result_, &_result__length1, &__result__size_, _tmp20_); -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (_tmp19_); -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21_ = _result_; -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21__length1 = _result__length1; -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (result_length1) { -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *result_length1 = _tmp21__length1; -#line 4880 "FlickrPublishing.c" - } -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp21_; -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 4886 "FlickrPublishing.c" -} - - -static gpointer -_publishing_flickr_publishing_options_pane_visibility_entry_ref0 (gpointer self) -{ -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self ? publishing_flickr_publishing_options_pane_visibility_entry_ref (self) : NULL; -#line 4895 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_populate_visibility_combo (PublishingFlickrPublishingOptionsPane* self) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp0_; - gint _tmp0__length1; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp3_; - gint _tmp3__length1; - GtkComboBoxText* _tmp8_; - PublishingFlickrFlickrPublisher* _tmp9_; -#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->visibilities; -#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0__length1 = self->priv->visibilities_length1; -#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp0_ == NULL) { -#line 4916 "FlickrPublishing.c" - gint _tmp1_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry** _tmp2_; -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = publishing_flickr_publishing_options_pane_create_visibilities (self, &_tmp1_); -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities = (_vala_array_free (self->priv->visibilities, self->priv->visibilities_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_visibility_entry_unref), NULL); -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities = _tmp2_; -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities_length1 = _tmp1_; -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->_visibilities_size_ = self->priv->visibilities_length1; -#line 4929 "FlickrPublishing.c" - } -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = self->priv->visibilities; -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3__length1 = self->priv->visibilities_length1; -#line 4935 "FlickrPublishing.c" - { - PublishingFlickrPublishingOptionsPaneVisibilityEntry** v_collection = NULL; - gint v_collection_length1 = 0; - gint _v_collection_size_ = 0; - gint v_it = 0; -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - v_collection = _tmp3_; -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - v_collection_length1 = _tmp3__length1; -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - for (v_it = 0; v_it < _tmp3__length1; v_it = v_it + 1) { -#line 4947 "FlickrPublishing.c" - PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp4_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry* v = NULL; -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = _publishing_flickr_publishing_options_pane_visibility_entry_ref0 (v_collection[v_it]); -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - v = _tmp4_; -#line 4954 "FlickrPublishing.c" - { - GtkComboBoxText* _tmp5_; - PublishingFlickrPublishingOptionsPaneVisibilityEntry* _tmp6_; - const gchar* _tmp7_; -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = self->priv->visibility_combo; -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = v; -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = _tmp6_->title; -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_combo_box_text_append_text (_tmp5_, _tmp7_); -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_options_pane_visibility_entry_unref0 (v); -#line 4969 "FlickrPublishing.c" - } - } - } -#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = self->priv->visibility_combo; -#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = self->priv->publisher; -#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_combo_box_get_type (), GtkComboBox), publishing_flickr_flickr_publisher_get_persistent_visibility (_tmp9_)); -#line 4979 "FlickrPublishing.c" -} - - -static void -_vala_array_add25 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value) -{ -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneSizeEntry*, *array, (*size) + 1); -#line 4995 "FlickrPublishing.c" - } -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 5001 "FlickrPublishing.c" -} - - -static void -_vala_array_add26 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value) -{ -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneSizeEntry*, *array, (*size) + 1); -#line 5017 "FlickrPublishing.c" - } -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 5023 "FlickrPublishing.c" -} - - -static void -_vala_array_add27 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value) -{ -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneSizeEntry*, *array, (*size) + 1); -#line 5039 "FlickrPublishing.c" - } -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 5045 "FlickrPublishing.c" -} - - -static void -_vala_array_add28 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value) -{ -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneSizeEntry*, *array, (*size) + 1); -#line 5061 "FlickrPublishing.c" - } -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 5067 "FlickrPublishing.c" -} - - -static void -_vala_array_add29 (PublishingFlickrPublishingOptionsPaneSizeEntry** * array, - int* length, - int* size, - PublishingFlickrPublishingOptionsPaneSizeEntry* value) -{ -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (PublishingFlickrPublishingOptionsPaneSizeEntry*, *array, (*size) + 1); -#line 5083 "FlickrPublishing.c" - } -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 5089 "FlickrPublishing.c" -} - - -static PublishingFlickrPublishingOptionsPaneSizeEntry** -publishing_flickr_publishing_options_pane_create_sizes (PublishingFlickrPublishingOptionsPane* self, - int* result_length1) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry** result = NULL; - PublishingFlickrPublishingOptionsPaneSizeEntry** _result_ = NULL; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp1_; - gint _tmp1__length1; - PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp2_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp3_; - gint _tmp3__length1; - PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp4_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp5_; - gint _tmp5__length1; - PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp6_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp7_; - gint _tmp7__length1; - PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp8_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp9_; - gint _tmp9__length1; - PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp10_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp11_; - gint _tmp11__length1; -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = g_new0 (PublishingFlickrPublishingOptionsPaneSizeEntry*, 0 + 1); -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _result_ = _tmp0_; -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _result__length1 = 0; -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - __result__size_ = _result__length1; -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = _result_; -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1__length1 = _result__length1; -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = publishing_flickr_publishing_options_pane_size_entry_new (_ ("500 × 375 pixels"), 500); -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add25 (&_result_, &_result__length1, &__result__size_, _tmp2_); -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = _result_; -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3__length1 = _result__length1; -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = publishing_flickr_publishing_options_pane_size_entry_new (_ ("1024 × 768 pixels"), 1024); -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add26 (&_result_, &_result__length1, &__result__size_, _tmp4_); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = _result_; -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5__length1 = _result__length1; -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = publishing_flickr_publishing_options_pane_size_entry_new (_ ("2048 × 1536 pixels"), 2048); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add27 (&_result_, &_result__length1, &__result__size_, _tmp6_); -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = _result_; -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7__length1 = _result__length1; -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = publishing_flickr_publishing_options_pane_size_entry_new (_ ("4096 × 3072 pixels"), 4096); -#line 686 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add28 (&_result_, &_result__length1, &__result__size_, _tmp8_); -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = _result_; -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9__length1 = _result__length1; -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = publishing_flickr_publishing_options_pane_size_entry_new (_ ("Original size"), PUBLISHING_FLICKR_ORIGINAL_SIZE); -#line 687 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add29 (&_result_, &_result__length1, &__result__size_, _tmp10_); -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = _result_; -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11__length1 = _result__length1; -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (result_length1) { -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *result_length1 = _tmp11__length1; -#line 5177 "FlickrPublishing.c" - } -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp11_; -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 5183 "FlickrPublishing.c" -} - - -static gpointer -_publishing_flickr_publishing_options_pane_size_entry_ref0 (gpointer self) -{ -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self ? publishing_flickr_publishing_options_pane_size_entry_ref (self) : NULL; -#line 5192 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_populate_size_combo (PublishingFlickrPublishingOptionsPane* self) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp0_; - gint _tmp0__length1; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp3_; - gint _tmp3__length1; - GtkComboBoxText* _tmp8_; - PublishingFlickrFlickrPublisher* _tmp9_; -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->sizes; -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0__length1 = self->priv->sizes_length1; -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp0_ == NULL) { -#line 5213 "FlickrPublishing.c" - gint _tmp1_; - PublishingFlickrPublishingOptionsPaneSizeEntry** _tmp2_; -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = publishing_flickr_publishing_options_pane_create_sizes (self, &_tmp1_); -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_size_entry_unref), NULL); -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes = _tmp2_; -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes_length1 = _tmp1_; -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->_sizes_size_ = self->priv->sizes_length1; -#line 5226 "FlickrPublishing.c" - } -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = self->priv->sizes; -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3__length1 = self->priv->sizes_length1; -#line 5232 "FlickrPublishing.c" - { - PublishingFlickrPublishingOptionsPaneSizeEntry** e_collection = NULL; - gint e_collection_length1 = 0; - gint _e_collection_size_ = 0; - gint e_it = 0; -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - e_collection = _tmp3_; -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - e_collection_length1 = _tmp3__length1; -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - for (e_it = 0; e_it < _tmp3__length1; e_it = e_it + 1) { -#line 5244 "FlickrPublishing.c" - PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp4_; - PublishingFlickrPublishingOptionsPaneSizeEntry* e = NULL; -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = _publishing_flickr_publishing_options_pane_size_entry_ref0 (e_collection[e_it]); -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - e = _tmp4_; -#line 5251 "FlickrPublishing.c" - { - GtkComboBoxText* _tmp5_; - PublishingFlickrPublishingOptionsPaneSizeEntry* _tmp6_; - const gchar* _tmp7_; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = self->priv->size_combo; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = e; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = _tmp6_->title; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_combo_box_text_append_text (_tmp5_, _tmp7_); -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_options_pane_size_entry_unref0 (e); -#line 5266 "FlickrPublishing.c" - } - } - } -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = self->priv->size_combo; -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = self->priv->publisher; -#line 699 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_combo_box_get_type (), GtkComboBox), publishing_flickr_flickr_publisher_get_persistent_default_size (_tmp9_)); -#line 5276 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_on_size_changed (PublishingFlickrPublishingOptionsPane* self) -{ - PublishingFlickrFlickrPublisher* _tmp0_; - GtkComboBoxText* _tmp1_; -#line 702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->publisher; -#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->size_combo; -#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_set_persistent_default_size (_tmp0_, gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))); -#line 5293 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_on_visibility_changed (PublishingFlickrPublishingOptionsPane* self) -{ - PublishingFlickrFlickrPublisher* _tmp0_; - GtkComboBoxText* _tmp1_; -#line 706 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 707 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->publisher; -#line 707 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = self->priv->visibility_combo; -#line 707 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_flickr_publisher_set_persistent_visibility (_tmp0_, gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))); -#line 5310 "FlickrPublishing.c" -} - - -void -publishing_flickr_publishing_options_pane_notify_publish (PublishingFlickrPublishingOptionsPane* self) -{ - GtkCheckButton* _tmp0_; -#line 710 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->strip_metadata_check; -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_emit (self, publishing_flickr_publishing_options_pane_signals[PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 5324 "FlickrPublishing.c" -} - - -void -publishing_flickr_publishing_options_pane_notify_logout (PublishingFlickrPublishingOptionsPane* self) -{ -#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_emit (self, publishing_flickr_publishing_options_pane_signals[PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 5335 "FlickrPublishing.c" -} - - -static GtkWidget* -publishing_flickr_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingFlickrPublishingOptionsPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane); -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = self->priv->pane_widget; -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp1_; -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 5356 "FlickrPublishing.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_flickr_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingFlickrPublishingOptionsPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 722 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane); -#line 723 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 723 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 5371 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_publishing_options_pane_notify_publish_publishing_flickr_publishing_options_pane_publish (PublishingFlickrPublishingOptionsPane* _sender, - gboolean strip_metadata, - gpointer self) -{ -#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_notify_publish ((PublishingFlickrPublishingOptionsPane*) self); -#line 5382 "FlickrPublishing.c" -} - - -static void -_publishing_flickr_publishing_options_pane_notify_logout_publishing_flickr_publishing_options_pane_logout (PublishingFlickrPublishingOptionsPane* _sender, - gpointer self) -{ -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_notify_logout ((PublishingFlickrPublishingOptionsPane*) self); -#line 5392 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingFlickrPublishingOptionsPane * self; -#line 726 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane); -#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (self, "publish", (GCallback) _publishing_flickr_publishing_options_pane_notify_publish_publishing_flickr_publishing_options_pane_publish, self, 0); -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_connect_object (self, "logout", (GCallback) _publishing_flickr_publishing_options_pane_notify_logout_publishing_flickr_publishing_options_pane_logout, self, 0); -#line 5406 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingFlickrPublishingOptionsPane * self; - guint _tmp0_; - guint _tmp1_; -#line 731 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane); -#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("publish", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp0_, NULL, FALSE); -#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_flickr_publishing_options_pane_notify_publish_publishing_flickr_publishing_options_pane_publish, self); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_parse_name ("logout", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_flickr_publishing_options_pane_notify_logout_publishing_flickr_publishing_options_pane_logout, self); -#line 5426 "FlickrPublishing.c" -} - - -static PublishingFlickrPublishingOptionsPaneSizeEntry* -publishing_flickr_publishing_options_pane_size_entry_construct (GType object_type, - const gchar* creator_title, - gint creator_size) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry* self = NULL; - gchar* _tmp0_; -#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (creator_title != NULL, NULL); -#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrPublishingOptionsPaneSizeEntry*) g_type_create_instance (object_type); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = g_strdup (creator_title); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (self->title); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->title = _tmp0_; -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->size = creator_size; -#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 5451 "FlickrPublishing.c" -} - - -static PublishingFlickrPublishingOptionsPaneSizeEntry* -publishing_flickr_publishing_options_pane_size_entry_new (const gchar* creator_title, - gint creator_size) -{ -#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_publishing_options_pane_size_entry_construct (PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY, creator_title, creator_size); -#line 5461 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_value_size_entry_init (GValue* value) -{ -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5470 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_value_size_entry_free_value (GValue* value) -{ -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (value->data[0].v_pointer) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_size_entry_unref (value->data[0].v_pointer); -#line 5481 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_publishing_options_pane_value_size_entry_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - dest_value->data[0].v_pointer = publishing_flickr_publishing_options_pane_size_entry_ref (src_value->data[0].v_pointer); -#line 5494 "FlickrPublishing.c" - } else { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 5498 "FlickrPublishing.c" - } -} - - -static gpointer -publishing_flickr_publishing_options_pane_value_size_entry_peek_pointer (const GValue* value) -{ -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return value->data[0].v_pointer; -#line 5508 "FlickrPublishing.c" -} - - -static gchar* -publishing_flickr_publishing_options_pane_value_size_entry_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (collect_values[0].v_pointer) { -#line 5520 "FlickrPublishing.c" - PublishingFlickrPublishingOptionsPaneSizeEntry * object; - object = collect_values[0].v_pointer; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5527 "FlickrPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5531 "FlickrPublishing.c" - } -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = publishing_flickr_publishing_options_pane_size_entry_ref (object); -#line 5535 "FlickrPublishing.c" - } else { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5539 "FlickrPublishing.c" - } -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 5543 "FlickrPublishing.c" -} - - -static gchar* -publishing_flickr_publishing_options_pane_value_size_entry_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry ** object_p; - object_p = collect_values[0].v_pointer; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!object_p) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 5559 "FlickrPublishing.c" - } -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!value->data[0].v_pointer) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = NULL; -#line 5565 "FlickrPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 5569 "FlickrPublishing.c" - } else { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = publishing_flickr_publishing_options_pane_size_entry_ref (value->data[0].v_pointer); -#line 5573 "FlickrPublishing.c" - } -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 5577 "FlickrPublishing.c" -} - - -static GParamSpec* -publishing_flickr_publishing_options_pane_param_spec_size_entry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFlickrPublishingOptionsPaneParamSpecSizeEntry* spec; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY), NULL); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return G_PARAM_SPEC (spec); -#line 5597 "FlickrPublishing.c" -} - - -static gpointer -publishing_flickr_publishing_options_pane_value_get_size_entry (const GValue* value) -{ -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY), NULL); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return value->data[0].v_pointer; -#line 5608 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_value_set_size_entry (GValue* value, - gpointer v_object) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry * old; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY)); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - old = value->data[0].v_pointer; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (v_object) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY)); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_size_entry_ref (value->data[0].v_pointer); -#line 5631 "FlickrPublishing.c" - } else { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5635 "FlickrPublishing.c" - } -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (old) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_size_entry_unref (old); -#line 5641 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_publishing_options_pane_value_take_size_entry (GValue* value, - gpointer v_object) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry * old; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY)); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - old = value->data[0].v_pointer; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (v_object) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY)); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 5663 "FlickrPublishing.c" - } else { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5667 "FlickrPublishing.c" - } -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (old) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_size_entry_unref (old); -#line 5673 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_publishing_options_pane_size_entry_class_init (PublishingFlickrPublishingOptionsPaneSizeEntryClass * klass) -{ -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_size_entry_parent_class = g_type_class_peek_parent (klass); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - ((PublishingFlickrPublishingOptionsPaneSizeEntryClass *) klass)->finalize = publishing_flickr_publishing_options_pane_size_entry_finalize; -#line 5685 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_size_entry_instance_init (PublishingFlickrPublishingOptionsPaneSizeEntry * self) -{ -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->ref_count = 1; -#line 5694 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_size_entry_finalize (PublishingFlickrPublishingOptionsPaneSizeEntry * obj) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry * self; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_ENTRY, PublishingFlickrPublishingOptionsPaneSizeEntry); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_destroy (self); -#line 541 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (self->title); -#line 5708 "FlickrPublishing.c" -} - - -static GType -publishing_flickr_publishing_options_pane_size_entry_get_type (void) -{ - static volatile gsize publishing_flickr_publishing_options_pane_size_entry_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_publishing_options_pane_size_entry_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_flickr_publishing_options_pane_value_size_entry_init, publishing_flickr_publishing_options_pane_value_size_entry_free_value, publishing_flickr_publishing_options_pane_value_size_entry_copy_value, publishing_flickr_publishing_options_pane_value_size_entry_peek_pointer, "p", publishing_flickr_publishing_options_pane_value_size_entry_collect_value, "p", publishing_flickr_publishing_options_pane_value_size_entry_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrPublishingOptionsPaneSizeEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_publishing_options_pane_size_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrPublishingOptionsPaneSizeEntry), 0, (GInstanceInitFunc) publishing_flickr_publishing_options_pane_size_entry_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_flickr_publishing_options_pane_size_entry_type_id; - publishing_flickr_publishing_options_pane_size_entry_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFlickrPublishingOptionsPaneSizeEntry", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_flickr_publishing_options_pane_size_entry_type_id__volatile, publishing_flickr_publishing_options_pane_size_entry_type_id); - } - return publishing_flickr_publishing_options_pane_size_entry_type_id__volatile; -} - - -static gpointer -publishing_flickr_publishing_options_pane_size_entry_ref (gpointer instance) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry * self; - self = instance; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return instance; -#line 5737 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_size_entry_unref (gpointer instance) -{ - PublishingFlickrPublishingOptionsPaneSizeEntry * self; - self = instance; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_SIZE_ENTRY_GET_CLASS (self)->finalize (self); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 5752 "FlickrPublishing.c" - } -} - - -static PublishingFlickrPublishingOptionsPaneVisibilityEntry* -publishing_flickr_publishing_options_pane_visibility_entry_construct (GType object_type, - const gchar* creator_title, - PublishingFlickrVisibilitySpecification* creator_specification) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry* self = NULL; - PublishingFlickrVisibilitySpecification* _tmp0_; - gchar* _tmp1_; -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (creator_title != NULL, NULL); -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_VISIBILITY_SPECIFICATION (creator_specification), NULL); -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrPublishingOptionsPaneVisibilityEntry*) g_type_create_instance (object_type); -#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = _publishing_flickr_visibility_specification_ref0 (creator_specification); -#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (self->specification); -#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->specification = _tmp0_; -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = g_strdup (creator_title); -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (self->title); -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->title = _tmp1_; -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 5785 "FlickrPublishing.c" -} - - -static PublishingFlickrPublishingOptionsPaneVisibilityEntry* -publishing_flickr_publishing_options_pane_visibility_entry_new (const gchar* creator_title, - PublishingFlickrVisibilitySpecification* creator_specification) -{ -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_publishing_options_pane_visibility_entry_construct (PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY, creator_title, creator_specification); -#line 5795 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_value_visibility_entry_init (GValue* value) -{ -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5804 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_value_visibility_entry_free_value (GValue* value) -{ -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (value->data[0].v_pointer) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_visibility_entry_unref (value->data[0].v_pointer); -#line 5815 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_publishing_options_pane_value_visibility_entry_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - dest_value->data[0].v_pointer = publishing_flickr_publishing_options_pane_visibility_entry_ref (src_value->data[0].v_pointer); -#line 5828 "FlickrPublishing.c" - } else { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 5832 "FlickrPublishing.c" - } -} - - -static gpointer -publishing_flickr_publishing_options_pane_value_visibility_entry_peek_pointer (const GValue* value) -{ -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return value->data[0].v_pointer; -#line 5842 "FlickrPublishing.c" -} - - -static gchar* -publishing_flickr_publishing_options_pane_value_visibility_entry_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (collect_values[0].v_pointer) { -#line 5854 "FlickrPublishing.c" - PublishingFlickrPublishingOptionsPaneVisibilityEntry * object; - object = collect_values[0].v_pointer; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5861 "FlickrPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5865 "FlickrPublishing.c" - } -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = publishing_flickr_publishing_options_pane_visibility_entry_ref (object); -#line 5869 "FlickrPublishing.c" - } else { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5873 "FlickrPublishing.c" - } -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 5877 "FlickrPublishing.c" -} - - -static gchar* -publishing_flickr_publishing_options_pane_value_visibility_entry_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry ** object_p; - object_p = collect_values[0].v_pointer; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!object_p) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 5893 "FlickrPublishing.c" - } -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!value->data[0].v_pointer) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = NULL; -#line 5899 "FlickrPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 5903 "FlickrPublishing.c" - } else { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *object_p = publishing_flickr_publishing_options_pane_visibility_entry_ref (value->data[0].v_pointer); -#line 5907 "FlickrPublishing.c" - } -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return NULL; -#line 5911 "FlickrPublishing.c" -} - - -static GParamSpec* -publishing_flickr_publishing_options_pane_param_spec_visibility_entry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingFlickrPublishingOptionsPaneParamSpecVisibilityEntry* spec; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY), NULL); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return G_PARAM_SPEC (spec); -#line 5931 "FlickrPublishing.c" -} - - -static gpointer -publishing_flickr_publishing_options_pane_value_get_visibility_entry (const GValue* value) -{ -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY), NULL); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return value->data[0].v_pointer; -#line 5942 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_value_set_visibility_entry (GValue* value, - gpointer v_object) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry * old; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY)); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - old = value->data[0].v_pointer; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (v_object) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY)); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_visibility_entry_ref (value->data[0].v_pointer); -#line 5965 "FlickrPublishing.c" - } else { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5969 "FlickrPublishing.c" - } -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (old) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_visibility_entry_unref (old); -#line 5975 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_publishing_options_pane_value_take_visibility_entry (GValue* value, - gpointer v_object) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry * old; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY)); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - old = value->data[0].v_pointer; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (v_object) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY)); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 5997 "FlickrPublishing.c" - } else { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6001 "FlickrPublishing.c" - } -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (old) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_visibility_entry_unref (old); -#line 6007 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_publishing_options_pane_visibility_entry_class_init (PublishingFlickrPublishingOptionsPaneVisibilityEntryClass * klass) -{ -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_visibility_entry_parent_class = g_type_class_peek_parent (klass); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - ((PublishingFlickrPublishingOptionsPaneVisibilityEntryClass *) klass)->finalize = publishing_flickr_publishing_options_pane_visibility_entry_finalize; -#line 6019 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_visibility_entry_instance_init (PublishingFlickrPublishingOptionsPaneVisibilityEntry * self) -{ -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->ref_count = 1; -#line 6028 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_visibility_entry_finalize (PublishingFlickrPublishingOptionsPaneVisibilityEntry * obj) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry * self; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_TYPE_VISIBILITY_ENTRY, PublishingFlickrPublishingOptionsPaneVisibilityEntry); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_signal_handlers_destroy (self); -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_visibility_specification_unref0 (self->specification); -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (self->title); -#line 6044 "FlickrPublishing.c" -} - - -static GType -publishing_flickr_publishing_options_pane_visibility_entry_get_type (void) -{ - static volatile gsize publishing_flickr_publishing_options_pane_visibility_entry_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_publishing_options_pane_visibility_entry_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_flickr_publishing_options_pane_value_visibility_entry_init, publishing_flickr_publishing_options_pane_value_visibility_entry_free_value, publishing_flickr_publishing_options_pane_value_visibility_entry_copy_value, publishing_flickr_publishing_options_pane_value_visibility_entry_peek_pointer, "p", publishing_flickr_publishing_options_pane_value_visibility_entry_collect_value, "p", publishing_flickr_publishing_options_pane_value_visibility_entry_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrPublishingOptionsPaneVisibilityEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_publishing_options_pane_visibility_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrPublishingOptionsPaneVisibilityEntry), 0, (GInstanceInitFunc) publishing_flickr_publishing_options_pane_visibility_entry_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_flickr_publishing_options_pane_visibility_entry_type_id; - publishing_flickr_publishing_options_pane_visibility_entry_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingFlickrPublishingOptionsPaneVisibilityEntry", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_flickr_publishing_options_pane_visibility_entry_type_id__volatile, publishing_flickr_publishing_options_pane_visibility_entry_type_id); - } - return publishing_flickr_publishing_options_pane_visibility_entry_type_id__volatile; -} - - -static gpointer -publishing_flickr_publishing_options_pane_visibility_entry_ref (gpointer instance) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry * self; - self = instance; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return instance; -#line 6073 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_visibility_entry_unref (gpointer instance) -{ - PublishingFlickrPublishingOptionsPaneVisibilityEntry * self; - self = instance; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_VISIBILITY_ENTRY_GET_CLASS (self)->finalize (self); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 6088 "FlickrPublishing.c" - } -} - - -static void -publishing_flickr_publishing_options_pane_class_init (PublishingFlickrPublishingOptionsPaneClass * klass) -{ -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFlickrPublishingOptionsPanePrivate)); -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_flickr_publishing_options_pane_finalize; -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_signals[PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = g_signal_new ("publish", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_signals[PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = g_signal_new ("logout", PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 6106 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_flickr_publishing_options_pane_real_get_widget; -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_flickr_publishing_options_pane_real_get_preferred_geometry; -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_flickr_publishing_options_pane_real_on_pane_installed; -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_flickr_publishing_options_pane_real_on_pane_uninstalled; -#line 6123 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_instance_init (PublishingFlickrPublishingOptionsPane * self) -{ -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv = PUBLISHING_FLICKR_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); -#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->pane_widget = NULL; -#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibility_label = NULL; -#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->upload_info_label = NULL; -#line 564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->size_label = NULL; -#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->logout_button = NULL; -#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->publish_button = NULL; -#line 567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibility_combo = NULL; -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->size_combo = NULL; -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->strip_metadata_check = NULL; -#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities = NULL; -#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities_length1 = 0; -#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->_visibilities_size_ = self->priv->visibilities_length1; -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes = NULL; -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes_length1 = 0; -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->_sizes_size_ = self->priv->sizes_length1; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->parameters = NULL; -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->publisher = NULL; -#line 6166 "FlickrPublishing.c" -} - - -static void -publishing_flickr_publishing_options_pane_finalize (GObject * obj) -{ - PublishingFlickrPublishingOptionsPane * self; -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_PUBLISHING_OPTIONS_PANE, PublishingFlickrPublishingOptionsPane); -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 561 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->visibility_label); -#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->upload_info_label); -#line 564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->size_label); -#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->visibility_combo); -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->size_combo); -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->visibilities = (_vala_array_free (self->priv->visibilities, self->priv->visibilities_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_visibility_entry_unref), NULL); -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_flickr_publishing_options_pane_size_entry_unref), NULL); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters); -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (self->priv->publisher); -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - G_OBJECT_CLASS (publishing_flickr_publishing_options_pane_parent_class)->finalize (obj); -#line 6206 "FlickrPublishing.c" -} - - -GType -publishing_flickr_publishing_options_pane_get_type (void) -{ - static volatile gsize publishing_flickr_publishing_options_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_publishing_options_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrPublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrPublishingOptionsPane), 0, (GInstanceInitFunc) publishing_flickr_publishing_options_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_flickr_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_flickr_publishing_options_pane_type_id; - publishing_flickr_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingFlickrPublishingOptionsPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_flickr_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_flickr_publishing_options_pane_type_id__volatile, publishing_flickr_publishing_options_pane_type_id); - } - return publishing_flickr_publishing_options_pane_type_id__volatile; -} - - -PublishingFlickrUploader* -publishing_flickr_uploader_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingFlickrPublishingParameters* parameters, - gboolean strip_metadata) -{ - PublishingFlickrUploader* self = NULL; - PublishingFlickrPublishingParameters* _tmp0_; -#line 741 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 741 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (PUBLISHING_FLICKR_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = (PublishingFlickrUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishables, publishables_length1); -#line 745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = _publishing_flickr_publishing_parameters_ref0 (parameters); -#line 745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters); -#line 745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->parameters = _tmp0_; -#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv->strip_metadata = strip_metadata; -#line 741 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return self; -#line 6252 "FlickrPublishing.c" -} - - -PublishingFlickrUploader* -publishing_flickr_uploader_new (PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingFlickrPublishingParameters* parameters, - gboolean strip_metadata) -{ -#line 741 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return publishing_flickr_uploader_construct (PUBLISHING_FLICKR_TYPE_UPLOADER, session, publishables, publishables_length1, parameters, strip_metadata); -#line 6265 "FlickrPublishing.c" -} - - -static void -_vala_array_add30 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if ((*length) == (*size)) { -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 6281 "FlickrPublishing.c" - } -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[(*length)++] = value; -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - (*array)[*length] = NULL; -#line 6287 "FlickrPublishing.c" -} - - -static void -publishing_flickr_uploader_preprocess_publishable (PublishingFlickrUploader* self, - SpitPublishingPublishable* publishable) -{ - GExiv2Metadata* publishable_metadata = NULL; - GExiv2Metadata* _tmp0_; - GExiv2Metadata* _tmp10_; - GExiv2Metadata* _tmp11_; - GExiv2Metadata* _tmp18_; - GExiv2Metadata* _tmp25_; - GError * _inner_error_ = NULL; -#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (PUBLISHING_FLICKR_IS_UPLOADER (self)); -#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable)); -#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (spit_publishing_publishable_get_media_type (publishable) != SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) { -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 6310 "FlickrPublishing.c" - } -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = gexiv2_metadata_new (); -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishable_metadata = _tmp0_; -#line 6316 "FlickrPublishing.c" - { - GExiv2Metadata* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = publishable_metadata; -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = spit_publishing_publishable_get_serialized_file (publishable); -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = _tmp2_; -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = g_file_get_path (_tmp3_); -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = _tmp4_; -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gexiv2_metadata_open_path (_tmp1_, _tmp5_, &_inner_error_); -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp5_); -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (_tmp3_); -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6341 "FlickrPublishing.c" - goto __catch18_g_error; - } - } - goto __finally18; - __catch18_g_error: - { - GError* err = NULL; - GFile* _tmp6_; - GFile* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - err = _inner_error_; -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = NULL; -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = spit_publishing_publishable_get_serialized_file (publishable); -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = _tmp6_; -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = g_file_get_path (_tmp7_); -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp9_ = _tmp8_; -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_warning ("FlickrPublishing.vala:757: couldn't read metadata from file '%s' for u" \ -"pload preprocessing.", _tmp9_); -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp9_); -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (_tmp7_); -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (err); -#line 6373 "FlickrPublishing.c" - } - __finally18: -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (publishable_metadata); -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 754 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 6386 "FlickrPublishing.c" - } -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp10_ = publishable_metadata; -#line 765 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (!gexiv2_metadata_has_iptc (_tmp10_)) { -#line 766 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (publishable_metadata); -#line 766 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 6396 "FlickrPublishing.c" - } -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp11_ = publishable_metadata; -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (gexiv2_metadata_has_tag (_tmp11_, "Iptc.Application2.Caption")) { -#line 6402 "FlickrPublishing.c" - GExiv2Metadata* _tmp12_; - GExiv2Metadata* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp12_ = publishable_metadata; -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp13_ = publishable_metadata; -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp14_ = gexiv2_metadata_get_tag_string (_tmp13_, "Iptc.Application2.Caption"); -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp15_ = _tmp14_; -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp16_ = publishing_rest_support_asciify_string (_tmp15_); -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp17_ = _tmp16_; -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gexiv2_metadata_set_tag_string (_tmp12_, "Iptc.Application2.Caption", _tmp17_); -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp17_); -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp15_); -#line 6427 "FlickrPublishing.c" - } -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp18_ = publishable_metadata; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (gexiv2_metadata_has_tag (_tmp18_, "Iptc.Application2.Headline")) { -#line 6433 "FlickrPublishing.c" - GExiv2Metadata* _tmp19_; - GExiv2Metadata* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp19_ = publishable_metadata; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp20_ = publishable_metadata; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp21_ = gexiv2_metadata_get_tag_string (_tmp20_, "Iptc.Application2.Headline"); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp22_ = _tmp21_; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp23_ = publishing_rest_support_asciify_string (_tmp22_); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp24_ = _tmp23_; -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gexiv2_metadata_set_tag_string (_tmp19_, "Iptc.Application2.Headline", _tmp24_); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp24_); -#line 774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp22_); -#line 6458 "FlickrPublishing.c" - } -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp25_ = publishable_metadata; -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (gexiv2_metadata_has_tag (_tmp25_, "Iptc.Application2.Keywords")) { -#line 6464 "FlickrPublishing.c" - GeeSet* keyword_set = NULL; - GeeHashSet* _tmp26_; - gchar** iptc_keywords = NULL; - GExiv2Metadata* _tmp27_; - gchar** _tmp28_; - gchar** _tmp29_; - gint iptc_keywords_length1; - gint _iptc_keywords_size_; - gchar** _tmp30_; - gint _tmp30__length1; - gchar** xmp_keywords = NULL; - GExiv2Metadata* _tmp35_; - gchar** _tmp36_; - gchar** _tmp37_; - gint xmp_keywords_length1; - gint _xmp_keywords_size_; - gchar** _tmp38_; - gint _tmp38__length1; - gchar** all_keywords = NULL; - GeeSet* _tmp43_; - gint _tmp44_; - gpointer* _tmp45_; - gint all_keywords_length1; - gint _all_keywords_size_; - gchar** _tmp46_; - gint _tmp46__length1; - gchar** no_keywords = NULL; - gchar** _tmp47_; - gint no_keywords_length1; - gint _no_keywords_size_; - gchar** _tmp48_; - gint _tmp48__length1; - gchar* _tmp49_; - GExiv2Metadata* _tmp50_; - gchar** _tmp51_; - gint _tmp51__length1; - GExiv2Metadata* _tmp52_; - gchar** _tmp53_; - gint _tmp53__length1; -#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp26_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - keyword_set = G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_SET, GeeSet); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp27_ = publishable_metadata; -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp29_ = _tmp28_ = gexiv2_metadata_get_tag_multiple (_tmp27_, "Iptc.Application2.Keywords"); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iptc_keywords = _tmp29_; -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iptc_keywords_length1 = _vala_array_length (_tmp28_); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _iptc_keywords_size_ = iptc_keywords_length1; -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp30_ = iptc_keywords; -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp30__length1 = iptc_keywords_length1; -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp30_ != NULL) { -#line 6524 "FlickrPublishing.c" - gchar** _tmp31_; - gint _tmp31__length1; -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp31_ = iptc_keywords; -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp31__length1 = iptc_keywords_length1; -#line 6531 "FlickrPublishing.c" - { - gchar** keyword_collection = NULL; - gint keyword_collection_length1 = 0; - gint _keyword_collection_size_ = 0; - gint keyword_it = 0; -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - keyword_collection = _tmp31_; -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - keyword_collection_length1 = _tmp31__length1; -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - for (keyword_it = 0; keyword_it < _tmp31__length1; keyword_it = keyword_it + 1) { -#line 6543 "FlickrPublishing.c" - gchar* _tmp32_; - gchar* keyword = NULL; -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp32_ = g_strdup (keyword_collection[keyword_it]); -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - keyword = _tmp32_; -#line 6550 "FlickrPublishing.c" - { - GeeSet* _tmp33_; - const gchar* _tmp34_; -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp33_ = keyword_set; -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp34_ = keyword; -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_COLLECTION, GeeCollection), _tmp34_); -#line 782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (keyword); -#line 6562 "FlickrPublishing.c" - } - } - } - } -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp35_ = publishable_metadata; -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp37_ = _tmp36_ = gexiv2_metadata_get_tag_multiple (_tmp35_, "Xmp.dc.subject"); -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - xmp_keywords = _tmp37_; -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - xmp_keywords_length1 = _vala_array_length (_tmp36_); -#line 785 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _xmp_keywords_size_ = xmp_keywords_length1; -#line 786 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp38_ = xmp_keywords; -#line 786 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp38__length1 = xmp_keywords_length1; -#line 786 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (_tmp38_ != NULL) { -#line 6583 "FlickrPublishing.c" - gchar** _tmp39_; - gint _tmp39__length1; -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp39_ = xmp_keywords; -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp39__length1 = xmp_keywords_length1; -#line 6590 "FlickrPublishing.c" - { - gchar** keyword_collection = NULL; - gint keyword_collection_length1 = 0; - gint _keyword_collection_size_ = 0; - gint keyword_it = 0; -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - keyword_collection = _tmp39_; -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - keyword_collection_length1 = _tmp39__length1; -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - for (keyword_it = 0; keyword_it < _tmp39__length1; keyword_it = keyword_it + 1) { -#line 6602 "FlickrPublishing.c" - gchar* _tmp40_; - gchar* keyword = NULL; -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp40_ = g_strdup (keyword_collection[keyword_it]); -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - keyword = _tmp40_; -#line 6609 "FlickrPublishing.c" - { - GeeSet* _tmp41_; - const gchar* _tmp42_; -#line 788 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp41_ = keyword_set; -#line 788 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp42_ = keyword; -#line 788 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_COLLECTION, GeeCollection), _tmp42_); -#line 787 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (keyword); -#line 6621 "FlickrPublishing.c" - } - } - } - } -#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp43_ = keyword_set; -#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp45_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp44_); -#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - all_keywords = _tmp45_; -#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - all_keywords_length1 = _tmp44_; -#line 790 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _all_keywords_size_ = all_keywords_length1; -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp46_ = all_keywords; -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp46__length1 = all_keywords_length1; -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _vala_array_add30 (&all_keywords, &all_keywords_length1, &_all_keywords_size_, NULL); -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp47_ = g_new0 (gchar*, 1 + 1); -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - no_keywords = _tmp47_; -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - no_keywords_length1 = 1; -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _no_keywords_size_ = no_keywords_length1; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp48_ = no_keywords; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp48__length1 = no_keywords_length1; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp48_[0]); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp48_[0] = NULL; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp49_ = _tmp48_[0]; -#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp50_ = publishable_metadata; -#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp51_ = all_keywords; -#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp51__length1 = all_keywords_length1; -#line 804 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gexiv2_metadata_set_tag_multiple (_tmp50_, "Xmp.dc.subject", _tmp51_); -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp52_ = publishable_metadata; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp53_ = no_keywords; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp53__length1 = no_keywords_length1; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gexiv2_metadata_set_tag_multiple (_tmp52_, "Iptc.Application2.Keywords", _tmp53_); -#line 6676 "FlickrPublishing.c" - { - GExiv2Metadata* _tmp54_; - GFile* _tmp55_; - GFile* _tmp56_; - gchar* _tmp57_; - gchar* _tmp58_; -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp54_ = publishable_metadata; -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp55_ = spit_publishing_publishable_get_serialized_file (publishable); -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp56_ = _tmp55_; -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp57_ = g_file_get_path (_tmp56_); -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp58_ = _tmp57_; -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - gexiv2_metadata_save_file (_tmp54_, _tmp58_, &_inner_error_); -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp58_); -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (_tmp56_); -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6701 "FlickrPublishing.c" - goto __catch19_g_error; - } - } - goto __finally19; - __catch19_g_error: - { - GError* err = NULL; - GFile* _tmp59_; - GFile* _tmp60_; - gchar* _tmp61_; - gchar* _tmp62_; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - err = _inner_error_; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _inner_error_ = NULL; -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp59_ = spit_publishing_publishable_get_serialized_file (publishable); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp60_ = _tmp59_; -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp61_ = g_file_get_path (_tmp60_); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp62_ = _tmp61_; -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_warning ("FlickrPublishing.vala:810: couldn't write metadata to file '%s' for up" \ -"load preprocessing.", _tmp62_); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_free0 (_tmp62_); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (_tmp60_); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_error_free0 (err); -#line 6733 "FlickrPublishing.c" - } - __finally19: -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - no_keywords = (_vala_array_free (no_keywords, no_keywords_length1, (GDestroyNotify) g_free), NULL); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - all_keywords = (_vala_array_free (all_keywords, all_keywords_length1, (GDestroyNotify) g_free), NULL); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - xmp_keywords = (_vala_array_free (xmp_keywords, xmp_keywords_length1, (GDestroyNotify) g_free), NULL); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iptc_keywords = (_vala_array_free (iptc_keywords, iptc_keywords_length1, (GDestroyNotify) g_free), NULL); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (keyword_set); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (publishable_metadata); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_clear_error (&_inner_error_); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return; -#line 6756 "FlickrPublishing.c" - } -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - no_keywords = (_vala_array_free (no_keywords, no_keywords_length1, (GDestroyNotify) g_free), NULL); -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - all_keywords = (_vala_array_free (all_keywords, all_keywords_length1, (GDestroyNotify) g_free), NULL); -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - xmp_keywords = (_vala_array_free (xmp_keywords, xmp_keywords_length1, (GDestroyNotify) g_free), NULL); -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - iptc_keywords = (_vala_array_free (iptc_keywords, iptc_keywords_length1, (GDestroyNotify) g_free), NULL); -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (keyword_set); -#line 6768 "FlickrPublishing.c" - } -#line 749 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (publishable_metadata); -#line 6772 "FlickrPublishing.c" -} - - -static PublishingRESTSupportTransaction* -publishing_flickr_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable) -{ - PublishingFlickrUploader * self; - PublishingRESTSupportTransaction* result = NULL; - SpitPublishingPublishable* _tmp0_; - SpitPublishingPublishable* _tmp1_; - PublishingRESTSupportSession* _tmp2_; - PublishingRESTSupportOAuth1Session* _tmp3_; - PublishingFlickrPublishingParameters* _tmp4_; - SpitPublishingPublishable* _tmp5_; - SpitPublishingPublishable* _tmp6_; - PublishingFlickrUploadTransaction* _tmp7_; - PublishingRESTSupportTransaction* _tmp8_; -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploader); -#line 816 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp0_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp1_ = _tmp0_; -#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_uploader_preprocess_publishable (self, _tmp1_); -#line 818 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (_tmp1_); -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp2_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1Session); -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp4_ = self->priv->parameters; -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp5_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp6_ = _tmp5_; -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp7_ = publishing_flickr_upload_transaction_new (_tmp3_, _tmp4_, _tmp6_); -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _g_object_unref0 (_tmp6_); -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp3_); -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - result = _tmp8_; -#line 819 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - return result; -#line 6825 "FlickrPublishing.c" -} - - -static void -publishing_flickr_uploader_class_init (PublishingFlickrUploaderClass * klass) -{ -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - publishing_flickr_uploader_parent_class = g_type_class_peek_parent (klass); -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_flickr_uploader_finalize; -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingFlickrUploaderPrivate)); -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_flickr_uploader_real_create_transaction; -#line 6840 "FlickrPublishing.c" -} - - -static void -publishing_flickr_uploader_instance_init (PublishingFlickrUploader * self) -{ -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self->priv = PUBLISHING_FLICKR_UPLOADER_GET_PRIVATE (self); -#line 6849 "FlickrPublishing.c" -} - - -static void -publishing_flickr_uploader_finalize (PublishingRESTSupportBatchUploader * obj) -{ - PublishingFlickrUploader * self; -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_FLICKR_TYPE_UPLOADER, PublishingFlickrUploader); -#line 738 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - _publishing_flickr_publishing_parameters_unref0 (self->priv->parameters); -#line 737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/FlickrPublishing.vala" - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_flickr_uploader_parent_class)->finalize (obj); -#line 6863 "FlickrPublishing.c" -} - - -GType -publishing_flickr_uploader_get_type (void) -{ - static volatile gsize publishing_flickr_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_flickr_uploader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingFlickrUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_flickr_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingFlickrUploader), 0, (GInstanceInitFunc) publishing_flickr_uploader_instance_init, NULL }; - GType publishing_flickr_uploader_type_id; - publishing_flickr_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingFlickrUploader", &g_define_type_info, 0); - g_once_init_leave (&publishing_flickr_uploader_type_id__volatile, publishing_flickr_uploader_type_id); - } - return publishing_flickr_uploader_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/plugins/shotwell-publishing/PicasaPublishing.c b/plugins/shotwell-publishing/PicasaPublishing.c deleted file mode 100644 index 4f597b8..0000000 --- a/plugins/shotwell-publishing/PicasaPublishing.c +++ /dev/null @@ -1,6930 +0,0 @@ -/* PicasaPublishing.c generated by valac 0.40.4, the Vala compiler - * generated from PicasaPublishing.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include -#include -#include -#include -#include "shotwell-authenticator.h" -#include -#include - - -#define TYPE_PICASA_SERVICE (picasa_service_get_type ()) -#define PICASA_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PICASA_SERVICE, PicasaService)) -#define PICASA_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PICASA_SERVICE, PicasaServiceClass)) -#define IS_PICASA_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PICASA_SERVICE)) -#define IS_PICASA_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PICASA_SERVICE)) -#define PICASA_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PICASA_SERVICE, PicasaServiceClass)) - -typedef struct _PicasaService PicasaService; -typedef struct _PicasaServiceClass PicasaServiceClass; -typedef struct _PicasaServicePrivate PicasaServicePrivate; -enum { - PICASA_SERVICE_0_PROPERTY, - PICASA_SERVICE_NUM_PROPERTIES -}; -static GParamSpec* picasa_service_properties[PICASA_SERVICE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER (publishing_picasa_picasa_publisher_get_type ()) -#define PUBLISHING_PICASA_PICASA_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher)) -#define PUBLISHING_PICASA_PICASA_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisherClass)) -#define PUBLISHING_PICASA_IS_PICASA_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER)) -#define PUBLISHING_PICASA_IS_PICASA_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER)) -#define PUBLISHING_PICASA_PICASA_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisherClass)) - -typedef struct _PublishingPicasaPicasaPublisher PublishingPicasaPicasaPublisher; -typedef struct _PublishingPicasaPicasaPublisherClass PublishingPicasaPicasaPublisherClass; -typedef struct _PublishingPicasaPicasaPublisherPrivate PublishingPicasaPicasaPublisherPrivate; - -#define PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS (publishing_picasa_publishing_parameters_get_type ()) -#define PUBLISHING_PICASA_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS, PublishingPicasaPublishingParameters)) -#define PUBLISHING_PICASA_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS, PublishingPicasaPublishingParametersClass)) -#define PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_PICASA_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS, PublishingPicasaPublishingParametersClass)) - -typedef struct _PublishingPicasaPublishingParameters PublishingPicasaPublishingParameters; -typedef struct _PublishingPicasaPublishingParametersClass PublishingPicasaPublishingParametersClass; -enum { - PUBLISHING_PICASA_PICASA_PUBLISHER_0_PROPERTY, - PUBLISHING_PICASA_PICASA_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_picasa_picasa_publisher_properties[PUBLISHING_PICASA_PICASA_PUBLISHER_NUM_PROPERTIES]; -#define _publishing_picasa_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_picasa_publishing_parameters_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define PUBLISHING_PICASA_TYPE_ALBUM (publishing_picasa_album_get_type ()) -#define PUBLISHING_PICASA_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_ALBUM, PublishingPicasaAlbum)) -#define PUBLISHING_PICASA_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_ALBUM, PublishingPicasaAlbumClass)) -#define PUBLISHING_PICASA_IS_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_ALBUM)) -#define PUBLISHING_PICASA_IS_ALBUM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_ALBUM)) -#define PUBLISHING_PICASA_ALBUM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_ALBUM, PublishingPicasaAlbumClass)) - -typedef struct _PublishingPicasaAlbum PublishingPicasaAlbum; -typedef struct _PublishingPicasaAlbumClass PublishingPicasaAlbumClass; -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) - -#define PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION (publishing_picasa_album_directory_transaction_get_type ()) -#define PUBLISHING_PICASA_ALBUM_DIRECTORY_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION, PublishingPicasaAlbumDirectoryTransaction)) -#define PUBLISHING_PICASA_ALBUM_DIRECTORY_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION, PublishingPicasaAlbumDirectoryTransactionClass)) -#define PUBLISHING_PICASA_IS_ALBUM_DIRECTORY_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION)) -#define PUBLISHING_PICASA_IS_ALBUM_DIRECTORY_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION)) -#define PUBLISHING_PICASA_ALBUM_DIRECTORY_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION, PublishingPicasaAlbumDirectoryTransactionClass)) - -typedef struct _PublishingPicasaAlbumDirectoryTransaction PublishingPicasaAlbumDirectoryTransaction; -typedef struct _PublishingPicasaAlbumDirectoryTransactionClass PublishingPicasaAlbumDirectoryTransactionClass; -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL))) - -#define PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE (publishing_picasa_publishing_options_pane_get_type ()) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane)) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPaneClass)) -#define PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPaneClass)) - -typedef struct _PublishingPicasaPublishingOptionsPane PublishingPicasaPublishingOptionsPane; -typedef struct _PublishingPicasaPublishingOptionsPaneClass PublishingPicasaPublishingOptionsPaneClass; - -#define PUBLISHING_PICASA_TYPE_UPLOADER (publishing_picasa_uploader_get_type ()) -#define PUBLISHING_PICASA_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploader)) -#define PUBLISHING_PICASA_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploaderClass)) -#define PUBLISHING_PICASA_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_UPLOADER)) -#define PUBLISHING_PICASA_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_UPLOADER)) -#define PUBLISHING_PICASA_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploaderClass)) - -typedef struct _PublishingPicasaUploader PublishingPicasaUploader; -typedef struct _PublishingPicasaUploaderClass PublishingPicasaUploaderClass; -#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL))) -typedef struct _PublishingPicasaAlbumPrivate PublishingPicasaAlbumPrivate; -typedef struct _PublishingPicasaParamSpecAlbum PublishingPicasaParamSpecAlbum; -typedef struct _PublishingPicasaAlbumDirectoryTransactionPrivate PublishingPicasaAlbumDirectoryTransactionPrivate; - -#define PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION (publishing_picasa_upload_transaction_get_type ()) -#define PUBLISHING_PICASA_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransaction)) -#define PUBLISHING_PICASA_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransactionClass)) -#define PUBLISHING_PICASA_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_PICASA_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_PICASA_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransactionClass)) - -typedef struct _PublishingPicasaUploadTransaction PublishingPicasaUploadTransaction; -typedef struct _PublishingPicasaUploadTransactionClass PublishingPicasaUploadTransactionClass; -typedef struct _PublishingPicasaUploadTransactionPrivate PublishingPicasaUploadTransactionPrivate; -#define _g_mapped_file_unref0(var) ((var == NULL) ? NULL : (var = (g_mapped_file_unref (var), NULL))) -#define __vala_SoupBuffer_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupBuffer_free (var), NULL))) -#define __vala_SoupMultipart_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupMultipart_free (var), NULL))) -typedef struct _PublishingPicasaPublishingOptionsPanePrivate PublishingPicasaPublishingOptionsPanePrivate; - -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION (publishing_picasa_publishing_options_pane_size_description_get_type ()) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_SIZE_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION, PublishingPicasaPublishingOptionsPaneSizeDescription)) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_SIZE_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION, PublishingPicasaPublishingOptionsPaneSizeDescriptionClass)) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_IS_SIZE_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION)) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_IS_SIZE_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION)) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_SIZE_DESCRIPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION, PublishingPicasaPublishingOptionsPaneSizeDescriptionClass)) - -typedef struct _PublishingPicasaPublishingOptionsPaneSizeDescription PublishingPicasaPublishingOptionsPaneSizeDescription; -typedef struct _PublishingPicasaPublishingOptionsPaneSizeDescriptionClass PublishingPicasaPublishingOptionsPaneSizeDescriptionClass; -enum { - PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_0_PROPERTY, - PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_picasa_publishing_options_pane_properties[PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; -#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL))) -typedef struct _PublishingPicasaPublishingOptionsPaneSizeDescriptionPrivate PublishingPicasaPublishingOptionsPaneSizeDescriptionPrivate; -#define _publishing_picasa_publishing_options_pane_size_description_unref0(var) ((var == NULL) ? NULL : (var = (publishing_picasa_publishing_options_pane_size_description_unref (var), NULL))) -typedef struct _PublishingPicasaPublishingOptionsPaneParamSpecSizeDescription PublishingPicasaPublishingOptionsPaneParamSpecSizeDescription; -enum { - PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, - PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS -}; -static guint publishing_picasa_publishing_options_pane_signals[PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingPicasaPublishingParametersPrivate PublishingPicasaPublishingParametersPrivate; -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) -typedef struct _PublishingPicasaParamSpecPublishingParameters PublishingPicasaParamSpecPublishingParameters; -typedef struct _PublishingPicasaUploaderPrivate PublishingPicasaUploaderPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PicasaService { - GObject parent_instance; - PicasaServicePrivate * priv; -}; - -struct _PicasaServiceClass { - GObjectClass parent_class; -}; - -struct _PublishingPicasaPicasaPublisher { - PublishingRESTSupportGooglePublisher parent_instance; - PublishingPicasaPicasaPublisherPrivate * priv; -}; - -struct _PublishingPicasaPicasaPublisherClass { - PublishingRESTSupportGooglePublisherClass parent_class; -}; - -struct _PublishingPicasaPicasaPublisherPrivate { - gboolean running; - SpitPublishingProgressCallback progress_reporter; - gpointer progress_reporter_target; - GDestroyNotify progress_reporter_target_destroy_notify; - PublishingPicasaPublishingParameters* publishing_parameters; - SpitPublishingAuthenticator* authenticator; -}; - -struct _PublishingPicasaAlbum { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingPicasaAlbumPrivate * priv; - gchar* name; - gchar* url; -}; - -struct _PublishingPicasaAlbumClass { - GTypeClass parent_class; - void (*finalize) (PublishingPicasaAlbum *self); -}; - -struct _PublishingPicasaParamSpecAlbum { - GParamSpec parent_instance; -}; - -struct _PublishingPicasaAlbumDirectoryTransaction { - PublishingRESTSupportGooglePublisherAuthenticatedTransaction parent_instance; - PublishingPicasaAlbumDirectoryTransactionPrivate * priv; -}; - -struct _PublishingPicasaAlbumDirectoryTransactionClass { - PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass parent_class; -}; - -struct _PublishingPicasaUploadTransaction { - PublishingRESTSupportGooglePublisherAuthenticatedTransaction parent_instance; - PublishingPicasaUploadTransactionPrivate * priv; -}; - -struct _PublishingPicasaUploadTransactionClass { - PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass parent_class; -}; - -struct _PublishingPicasaUploadTransactionPrivate { - PublishingPicasaPublishingParameters* parameters; - PublishingRESTSupportGoogleSession* session; - gchar* mime_type; - SpitPublishingPublishable* publishable; - GMappedFile* mapped_file; -}; - -struct _PublishingPicasaPublishingOptionsPane { - GObject parent_instance; - PublishingPicasaPublishingOptionsPanePrivate * priv; -}; - -struct _PublishingPicasaPublishingOptionsPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingPicasaPublishingOptionsPanePrivate { - GtkBuilder* builder; - GtkBox* pane_widget; - GtkLabel* login_identity_label; - GtkLabel* publish_to_label; - GtkComboBoxText* existing_albums_combo; - GtkCheckButton* public_check; - GtkComboBoxText* size_combo; - GtkCheckButton* strip_metadata_check; - GtkButton* publish_button; - GtkButton* logout_button; - PublishingPicasaPublishingOptionsPaneSizeDescription** size_descriptions; - gint size_descriptions_length1; - gint _size_descriptions_size_; - PublishingPicasaPublishingParameters* parameters; -}; - -struct _PublishingPicasaPublishingOptionsPaneSizeDescription { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingPicasaPublishingOptionsPaneSizeDescriptionPrivate * priv; - gchar* name; - gint major_axis_pixels; -}; - -struct _PublishingPicasaPublishingOptionsPaneSizeDescriptionClass { - GTypeClass parent_class; - void (*finalize) (PublishingPicasaPublishingOptionsPaneSizeDescription *self); -}; - -struct _PublishingPicasaPublishingOptionsPaneParamSpecSizeDescription { - GParamSpec parent_instance; -}; - -struct _PublishingPicasaPublishingParameters { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingPicasaPublishingParametersPrivate * priv; -}; - -struct _PublishingPicasaPublishingParametersClass { - GTypeClass parent_class; - void (*finalize) (PublishingPicasaPublishingParameters *self); -}; - -struct _PublishingPicasaPublishingParametersPrivate { - gchar* target_album_name; - gchar* target_album_url; - gboolean album_public; - gboolean strip_metadata; - gint major_axis_size_pixels; - gint major_axis_size_selection_id; - gchar* user_name; - PublishingPicasaAlbum** albums; - gint albums_length1; - gint _albums_size_; - SpitPublishingPublisherMediaType media_type; -}; - -struct _PublishingPicasaParamSpecPublishingParameters { - GParamSpec parent_instance; -}; - -struct _PublishingPicasaUploader { - PublishingRESTSupportBatchUploader parent_instance; - PublishingPicasaUploaderPrivate * priv; -}; - -struct _PublishingPicasaUploaderClass { - PublishingRESTSupportBatchUploaderClass parent_class; -}; - -struct _PublishingPicasaUploaderPrivate { - PublishingPicasaPublishingParameters* parameters; -}; - - -static gpointer picasa_service_parent_class = NULL; -static GdkPixbuf** picasa_service_icon_pixbuf_set; -static gint picasa_service_icon_pixbuf_set_length1; -static GdkPixbuf** picasa_service_icon_pixbuf_set = NULL; -static gint picasa_service_icon_pixbuf_set_length1 = 0; -static gint _picasa_service_icon_pixbuf_set_size_ = 0; -static SpitPluggableIface * picasa_service_spit_pluggable_parent_iface = NULL; -static SpitPublishingServiceIface * picasa_service_spit_publishing_service_parent_iface = NULL; -static gpointer publishing_picasa_picasa_publisher_parent_class = NULL; -static gpointer publishing_picasa_album_parent_class = NULL; -static gpointer publishing_picasa_album_directory_transaction_parent_class = NULL; -static gpointer publishing_picasa_upload_transaction_parent_class = NULL; -static gpointer publishing_picasa_publishing_options_pane_parent_class = NULL; -static gpointer publishing_picasa_publishing_options_pane_size_description_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_picasa_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_picasa_publishing_parameters_parent_class = NULL; -static gpointer publishing_picasa_uploader_parent_class = NULL; - -GType picasa_service_get_type (void) G_GNUC_CONST; -#define PICASA_SERVICE_ICON_FILENAME "picasa.png" -PicasaService* picasa_service_new (GFile* resource_directory); -PicasaService* picasa_service_construct (GType object_type, - GFile* resource_directory); -static gint picasa_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -static const gchar* picasa_service_real_get_id (SpitPluggable* base); -static const gchar* picasa_service_real_get_pluggable_name (SpitPluggable* base); -static void picasa_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup4 (GdkPixbuf** self, - int length); -static SpitPublishingPublisher* picasa_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host); -PublishingPicasaPicasaPublisher* publishing_picasa_picasa_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host); -PublishingPicasaPicasaPublisher* publishing_picasa_picasa_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host); -GType publishing_picasa_picasa_publisher_get_type (void) G_GNUC_CONST; -static SpitPublishingPublisherMediaType picasa_service_real_get_supported_media (SpitPublishingService* base); -static void picasa_service_real_activation (SpitPluggable* base, - gboolean enabled); -static void picasa_service_finalize (GObject * obj); -#define PUBLISHING_PICASA_DEFAULT_ALBUM_NAME _ ("Shotwell Connect") -gpointer publishing_picasa_publishing_parameters_ref (gpointer instance); -void publishing_picasa_publishing_parameters_unref (gpointer instance); -GParamSpec* publishing_picasa_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_picasa_value_set_publishing_parameters (GValue* value, - gpointer v_object); -void publishing_picasa_value_take_publishing_parameters (GValue* value, - gpointer v_object); -gpointer publishing_picasa_value_get_publishing_parameters (const GValue* value); -GType publishing_picasa_publishing_parameters_get_type (void) G_GNUC_CONST; -#define PUBLISHING_PICASA_PICASA_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisherPrivate)) -#define PUBLISHING_PICASA_PICASA_PUBLISHER_DEFAULT_ALBUM_FEED_URL "https://picasaweb.google.com/data/feed/api/user/default/albumid/defaul" \ -"t" -PublishingPicasaPublishingParameters* publishing_picasa_publishing_parameters_new (void); -PublishingPicasaPublishingParameters* publishing_picasa_publishing_parameters_construct (GType object_type); -static void publishing_picasa_picasa_publisher_load_parameters_from_configuration_system (PublishingPicasaPicasaPublisher* self, - PublishingPicasaPublishingParameters* parameters); -void publishing_picasa_publishing_parameters_set_media_type (PublishingPicasaPublishingParameters* self, - SpitPublishingPublisherMediaType media_type); -gpointer publishing_picasa_album_ref (gpointer instance); -void publishing_picasa_album_unref (gpointer instance); -GParamSpec* publishing_picasa_param_spec_album (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_picasa_value_set_album (GValue* value, - gpointer v_object); -void publishing_picasa_value_take_album (GValue* value, - gpointer v_object); -gpointer publishing_picasa_value_get_album (const GValue* value); -GType publishing_picasa_album_get_type (void) G_GNUC_CONST; -static PublishingPicasaAlbum** publishing_picasa_picasa_publisher_extract_albums_helper (PublishingPicasaPicasaPublisher* self, - xmlNode* document_root, - int* result_length1, - GError** error); -PublishingPicasaAlbum* publishing_picasa_album_new (const gchar* name, - const gchar* url); -PublishingPicasaAlbum* publishing_picasa_album_construct (GType object_type, - const gchar* name, - const gchar* url); -static void _vala_array_add13 (PublishingPicasaAlbum** * array, - int* length, - int* size, - PublishingPicasaAlbum* value); -static void _vala_array_add14 (PublishingPicasaAlbum** * array, - int* length, - int* size, - PublishingPicasaAlbum* value); -void publishing_picasa_publishing_parameters_set_major_axis_size_selection_id (PublishingPicasaPublishingParameters* self, - gint selection_id); -void publishing_picasa_publishing_parameters_set_strip_metadata (PublishingPicasaPublishingParameters* self, - gboolean strip_metadata); -void publishing_picasa_publishing_parameters_set_target_album_name (PublishingPicasaPublishingParameters* self, - const gchar* target_album_name); -static void publishing_picasa_picasa_publisher_save_parameters_to_configuration_system (PublishingPicasaPicasaPublisher* self, - PublishingPicasaPublishingParameters* parameters); -gint publishing_picasa_publishing_parameters_get_major_axis_size_selection_id (PublishingPicasaPublishingParameters* self); -gboolean publishing_picasa_publishing_parameters_get_strip_metadata (PublishingPicasaPublishingParameters* self); -gchar* publishing_picasa_publishing_parameters_get_target_album_name (PublishingPicasaPublishingParameters* self); -static void publishing_picasa_picasa_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* base); -void publishing_picasa_publishing_parameters_set_user_name (PublishingPicasaPublishingParameters* self, - const gchar* user_name); -static void publishing_picasa_picasa_publisher_do_fetch_account_information (PublishingPicasaPicasaPublisher* self); -static void publishing_picasa_picasa_publisher_on_initial_album_fetch_complete (PublishingPicasaPicasaPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_picasa_picasa_publisher_on_initial_album_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_picasa_picasa_publisher_on_initial_album_fetch_error (PublishingPicasaPicasaPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_picasa_picasa_publisher_on_initial_album_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -GType publishing_picasa_album_directory_transaction_get_type (void) G_GNUC_CONST; -static void publishing_picasa_picasa_publisher_do_parse_and_display_account_information (PublishingPicasaPicasaPublisher* self, - PublishingPicasaAlbumDirectoryTransaction* transaction); -static void publishing_picasa_picasa_publisher_on_publishing_options_logout (PublishingPicasaPicasaPublisher* self); -static void publishing_picasa_picasa_publisher_on_publishing_options_publish (PublishingPicasaPicasaPublisher* self); -static void publishing_picasa_picasa_publisher_do_upload (PublishingPicasaPicasaPublisher* self); -static void publishing_picasa_picasa_publisher_on_upload_status_updated (PublishingPicasaPicasaPublisher* self, - gint file_number, - gdouble completed_fraction); -static void publishing_picasa_picasa_publisher_on_upload_complete (PublishingPicasaPicasaPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published); -static void _publishing_picasa_picasa_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self); -static void publishing_picasa_picasa_publisher_on_upload_error (PublishingPicasaPicasaPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err); -static void _publishing_picasa_picasa_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self); -static void publishing_picasa_picasa_publisher_do_show_success_pane (PublishingPicasaPicasaPublisher* self); -PublishingPicasaAlbumDirectoryTransaction* publishing_picasa_album_directory_transaction_new (PublishingRESTSupportGoogleSession* session); -PublishingPicasaAlbumDirectoryTransaction* publishing_picasa_album_directory_transaction_construct (GType object_type, - PublishingRESTSupportGoogleSession* session); -gchar* publishing_picasa_album_directory_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc); -static gchar* _publishing_picasa_album_directory_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self); -void publishing_picasa_publishing_parameters_set_albums (PublishingPicasaPublishingParameters* self, - PublishingPicasaAlbum** albums, - int albums_length1); -static void publishing_picasa_picasa_publisher_do_show_publishing_options_pane (PublishingPicasaPicasaPublisher* self); -GType publishing_picasa_publishing_options_pane_get_type (void) G_GNUC_CONST; -PublishingPicasaPublishingOptionsPane* publishing_picasa_publishing_options_pane_new (GtkBuilder* builder, - PublishingPicasaPublishingParameters* parameters, - gboolean can_logout); -PublishingPicasaPublishingOptionsPane* publishing_picasa_publishing_options_pane_construct (GType object_type, - GtkBuilder* builder, - PublishingPicasaPublishingParameters* parameters, - gboolean can_logout); -static void _publishing_picasa_picasa_publisher_on_publishing_options_publish_publishing_picasa_publishing_options_pane_publish (PublishingPicasaPublishingOptionsPane* _sender, - gpointer self); -static void _publishing_picasa_picasa_publisher_on_publishing_options_logout_publishing_picasa_publishing_options_pane_logout (PublishingPicasaPublishingOptionsPane* _sender, - gpointer self); -gint publishing_picasa_publishing_parameters_get_major_axis_size_pixels (PublishingPicasaPublishingParameters* self); -GType publishing_picasa_uploader_get_type (void) G_GNUC_CONST; -PublishingPicasaUploader* publishing_picasa_uploader_new (PublishingRESTSupportGoogleSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingPicasaPublishingParameters* parameters); -PublishingPicasaUploader* publishing_picasa_uploader_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingPicasaPublishingParameters* parameters); -static void _publishing_picasa_picasa_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -static void publishing_picasa_picasa_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* base); -static gboolean publishing_picasa_picasa_publisher_real_is_running (PublishingRESTSupportGooglePublisher* base); -static void publishing_picasa_picasa_publisher_real_start (PublishingRESTSupportGooglePublisher* base); -static void publishing_picasa_picasa_publisher_real_stop (PublishingRESTSupportGooglePublisher* base); -static SpitPublishingAuthenticator* publishing_picasa_picasa_publisher_real_get_authenticator (PublishingRESTSupportGooglePublisher* base); -static void publishing_picasa_picasa_publisher_finalize (GObject * obj); -static void publishing_picasa_album_finalize (PublishingPicasaAlbum * obj); -#define PUBLISHING_PICASA_ALBUM_DIRECTORY_TRANSACTION_ENDPOINT_URL "https://picasaweb.google.com/data/feed/api/user/" "default" -GType publishing_picasa_upload_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_PICASA_UPLOAD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransactionPrivate)) -#define PUBLISHING_PICASA_UPLOAD_TRANSACTION_METADATA_TEMPLATE " %s %s %s " -PublishingPicasaUploadTransaction* publishing_picasa_upload_transaction_new (PublishingRESTSupportGoogleSession* session, - PublishingPicasaPublishingParameters* parameters, - SpitPublishingPublishable* publishable); -PublishingPicasaUploadTransaction* publishing_picasa_upload_transaction_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - PublishingPicasaPublishingParameters* parameters, - SpitPublishingPublishable* publishable); -gchar* publishing_picasa_publishing_parameters_get_target_album_feed_url (PublishingPicasaPublishingParameters* self); -static void publishing_picasa_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error); -static void _vala_SoupBuffer_free (SoupBuffer* self); -static void _vala_SoupMultipart_free (SoupMultipart* self); -static void publishing_picasa_upload_transaction_finalize (PublishingRESTSupportTransaction * obj); -static gpointer publishing_picasa_publishing_options_pane_size_description_ref (gpointer instance); -static void publishing_picasa_publishing_options_pane_size_description_unref (gpointer instance); -static GParamSpec* publishing_picasa_publishing_options_pane_param_spec_size_description (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void publishing_picasa_publishing_options_pane_value_set_size_description (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void publishing_picasa_publishing_options_pane_value_take_size_description (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer publishing_picasa_publishing_options_pane_value_get_size_description (const GValue* value) G_GNUC_UNUSED; -static GType publishing_picasa_publishing_options_pane_size_description_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPanePrivate)) -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_DEFAULT_SIZE_CONFIG_KEY "default_size" -#define PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_LAST_ALBUM_CONFIG_KEY "last_album" -static PublishingPicasaPublishingOptionsPaneSizeDescription** publishing_picasa_publishing_options_pane_create_size_descriptions (PublishingPicasaPublishingOptionsPane* self, - int* result_length1); -gchar* publishing_picasa_publishing_parameters_get_user_name (PublishingPicasaPublishingParameters* self); -SpitPublishingPublisherMediaType publishing_picasa_publishing_parameters_get_media_type (PublishingPicasaPublishingParameters* self); -static void publishing_picasa_publishing_options_pane_on_logout_clicked (PublishingPicasaPublishingOptionsPane* self); -static void _publishing_picasa_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_picasa_publishing_options_pane_on_publish_clicked (PublishingPicasaPublishingOptionsPane* self); -static void _publishing_picasa_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -void publishing_picasa_publishing_parameters_set_major_axis_size_pixels (PublishingPicasaPublishingParameters* self, - gint pixels); -PublishingPicasaAlbum** publishing_picasa_publishing_parameters_get_albums (PublishingPicasaPublishingParameters* self, - int* result_length1); -void publishing_picasa_publishing_parameters_set_target_album_entry_url (PublishingPicasaPublishingParameters* self, - const gchar* target_album_url); -static PublishingPicasaPublishingOptionsPaneSizeDescription* publishing_picasa_publishing_options_pane_size_description_new (const gchar* name, - gint major_axis_pixels); -static PublishingPicasaPublishingOptionsPaneSizeDescription* publishing_picasa_publishing_options_pane_size_description_construct (GType object_type, - const gchar* name, - gint major_axis_pixels); -static void _vala_array_add15 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value); -static void _vala_array_add16 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value); -static void _vala_array_add17 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value); -static void _vala_array_add18 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value); -#define PUBLISHING_PICASA_PUBLISHING_PARAMETERS_ORIGINAL_SIZE -1 -static void _vala_array_add19 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value); -void publishing_picasa_publishing_options_pane_installed (PublishingPicasaPublishingOptionsPane* self); -static GtkWidget* publishing_picasa_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_picasa_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_picasa_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void publishing_picasa_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void publishing_picasa_publishing_options_pane_size_description_finalize (PublishingPicasaPublishingOptionsPaneSizeDescription * obj); -static void publishing_picasa_publishing_options_pane_finalize (GObject * obj); -#define PUBLISHING_PICASA_PUBLISHING_PARAMETERS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS, PublishingPicasaPublishingParametersPrivate)) -gchar* publishing_picasa_publishing_parameters_get_target_album_entry_url (PublishingPicasaPublishingParameters* self); -static PublishingPicasaAlbum** _vala_array_dup5 (PublishingPicasaAlbum** self, - int length); -static PublishingPicasaAlbum** _vala_array_dup6 (PublishingPicasaAlbum** self, - int length); -static void publishing_picasa_publishing_parameters_finalize (PublishingPicasaPublishingParameters * obj); -#define PUBLISHING_PICASA_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploaderPrivate)) -static PublishingRESTSupportTransaction* publishing_picasa_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable); -static void publishing_picasa_uploader_finalize (PublishingRESTSupportBatchUploader * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -PicasaService* -picasa_service_construct (GType object_type, - GFile* resource_directory) -{ - PicasaService * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PicasaService*) g_object_new (object_type, NULL); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = picasa_service_icon_pixbuf_set; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0__length1 = picasa_service_icon_pixbuf_set_length1; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp0_ == NULL) { -#line 632 "PicasaPublishing.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" PICASA_SERVICE_ICON_FILENAME, &_tmp1_); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - picasa_service_icon_pixbuf_set = (_vala_array_free (picasa_service_icon_pixbuf_set, picasa_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - picasa_service_icon_pixbuf_set = _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - picasa_service_icon_pixbuf_set_length1 = _tmp1_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _picasa_service_icon_pixbuf_set_size_ = picasa_service_icon_pixbuf_set_length1; -#line 645 "PicasaPublishing.c" - } -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 649 "PicasaPublishing.c" -} - - -PicasaService* -picasa_service_new (GFile* resource_directory) -{ -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return picasa_service_construct (TYPE_PICASA_SERVICE, resource_directory); -#line 658 "PicasaPublishing.c" -} - - -static gint -picasa_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - PicasaService * self; - gint result = 0; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 675 "PicasaPublishing.c" -} - - -static const gchar* -picasa_service_real_get_id (SpitPluggable* base) -{ - PicasaService * self; - const gchar* result = NULL; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = "org.yorba.shotwell.publishing.picasa"; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 690 "PicasaPublishing.c" -} - - -static const gchar* -picasa_service_real_get_pluggable_name (SpitPluggable* base) -{ - PicasaService * self; - const gchar* result = NULL; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = "Picasa Web Albums"; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 705 "PicasaPublishing.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self ? g_object_ref (self) : NULL; -#line 714 "PicasaPublishing.c" -} - - -static GdkPixbuf** -_vala_array_dup4 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - for (i = 0; i < length; i++) { -#line 728 "PicasaPublishing.c" - GdkPixbuf* _tmp0_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result[i] = _tmp0_; -#line 734 "PicasaPublishing.c" - } -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 738 "PicasaPublishing.c" -} - - -static void -picasa_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - PicasaService * self; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GdkPixbuf** _tmp7_; - gint _tmp7__length1; - GdkPixbuf** _tmp8_; - gint _tmp8__length1; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (info != NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_strdup ("Lucas Beeler"); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 ((*info).authors); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).authors = _tmp0_; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = g_strdup (_ ("Copyright 2016 Software Freedom Conservancy Inc.")); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 ((*info).copyright); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).copyright = _tmp1_; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 ((*info).translators); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).translators = _tmp2_; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = g_strdup (_VERSION); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 ((*info).version); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).version = _tmp3_; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = g_strdup (RESOURCES_WEBSITE_NAME); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 ((*info).website_name); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).website_name = _tmp4_; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = g_strdup (RESOURCES_WEBSITE_URL); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 ((*info).website_url); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).website_url = _tmp5_; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).is_license_wordwrapped = FALSE; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = g_strdup (RESOURCES_LICENSE); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 ((*info).license); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).license = _tmp6_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = picasa_service_icon_pixbuf_set; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7__length1 = picasa_service_icon_pixbuf_set_length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup4 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8__length1 = _tmp7__length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).icons = _tmp8_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*info).icons_length1 = _tmp8__length1; -#line 820 "PicasaPublishing.c" -} - - -static SpitPublishingPublisher* -picasa_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - PicasaService * self; - SpitPublishingPublisher* result = NULL; - PublishingPicasaPicasaPublisher* _tmp0_; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_picasa_picasa_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 841 "PicasaPublishing.c" -} - - -static SpitPublishingPublisherMediaType -picasa_service_real_get_supported_media (SpitPublishingService* base) -{ - PicasaService * self; - SpitPublishingPublisherMediaType result = 0; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 856 "PicasaPublishing.c" -} - - -static void -picasa_service_real_activation (SpitPluggable* base, - gboolean enabled) -{ - PicasaService * self; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PICASA_SERVICE, PicasaService); -#line 867 "PicasaPublishing.c" -} - - -static void -picasa_service_class_init (PicasaServiceClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - picasa_service_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = picasa_service_finalize; -#line 878 "PicasaPublishing.c" -} - - -static void -picasa_service_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - picasa_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) picasa_service_real_get_pluggable_interface; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) picasa_service_real_get_id; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) picasa_service_real_get_pluggable_name; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) picasa_service_real_get_info; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) picasa_service_real_activation; -#line 897 "PicasaPublishing.c" -} - - -static void -picasa_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - picasa_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) picasa_service_real_create_publisher; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) picasa_service_real_get_supported_media; -#line 910 "PicasaPublishing.c" -} - - -static void -picasa_service_instance_init (PicasaService * self) -{ -} - - -static void -picasa_service_finalize (GObject * obj) -{ - PicasaService * self; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PICASA_SERVICE, PicasaService); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_OBJECT_CLASS (picasa_service_parent_class)->finalize (obj); -#line 928 "PicasaPublishing.c" -} - - -GType -picasa_service_get_type (void) -{ - static volatile gsize picasa_service_type_id__volatile = 0; - if (g_once_init_enter (&picasa_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PicasaServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) picasa_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PicasaService), 0, (GInstanceInitFunc) picasa_service_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) picasa_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) picasa_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType picasa_service_type_id; - picasa_service_type_id = g_type_register_static (G_TYPE_OBJECT, "PicasaService", &g_define_type_info, 0); - g_type_add_interface_static (picasa_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (picasa_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info); - g_once_init_leave (&picasa_service_type_id__volatile, picasa_service_type_id); - } - return picasa_service_type_id__volatile; -} - - -PublishingPicasaPicasaPublisher* -publishing_picasa_picasa_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingPicasaPicasaPublisher * self = NULL; - PublishingPicasaPublishingParameters* _tmp0_; - PublishingPicasaPublishingParameters* _tmp1_; - SpitPublishingPublisherMediaType media_type = 0; - gint _tmp2_; - SpitPublishingPublishable** _tmp3_; - PublishingPicasaPublishingParameters* _tmp7_; - SpitPublishingPublisherMediaType _tmp8_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PublishingPicasaPicasaPublisher*) publishing_rest_support_google_publisher_construct (object_type, service, host, "https://picasaweb.google.com/data/"); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_picasa_publishing_parameters_new (); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_parameters_unref0 (self->priv->publishing_parameters); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->publishing_parameters = _tmp0_; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = self->priv->publishing_parameters; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_load_parameters_from_configuration_system (self, _tmp1_); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - media_type = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = spit_publishing_plugin_host_get_publishables (host, &_tmp2_); -#line 983 "PicasaPublishing.c" - { - SpitPublishingPublishable** p_collection = NULL; - gint p_collection_length1 = 0; - gint _p_collection_size_ = 0; - gint p_it = 0; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - p_collection = _tmp3_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - p_collection_length1 = _tmp2_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - for (p_it = 0; p_it < _tmp2_; p_it = p_it + 1) { -#line 995 "PicasaPublishing.c" - SpitPublishingPublishable* _tmp4_; - SpitPublishingPublishable* p = NULL; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _g_object_ref0 (p_collection[p_it]); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - p = _tmp4_; -#line 1002 "PicasaPublishing.c" - { - SpitPublishingPublisherMediaType _tmp5_; - SpitPublishingPublishable* _tmp6_; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = media_type; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = p; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - media_type = _tmp5_ | spit_publishing_publishable_get_media_type (_tmp6_); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (p); -#line 1014 "PicasaPublishing.c" - } - } -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - p_collection = (_vala_array_free (p_collection, p_collection_length1, (GDestroyNotify) g_object_unref), NULL); -#line 1019 "PicasaPublishing.c" - } -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = self->priv->publishing_parameters; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = media_type; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_media_type (_tmp7_, _tmp8_); -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter = NULL; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter = NULL; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 1043 "PicasaPublishing.c" -} - - -PublishingPicasaPicasaPublisher* -publishing_picasa_picasa_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return publishing_picasa_picasa_publisher_construct (PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, service, host); -#line 1053 "PicasaPublishing.c" -} - - -static void -_vala_array_add13 (PublishingPicasaAlbum** * array, - int* length, - int* size, - PublishingPicasaAlbum* value) -{ -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if ((*length) == (*size)) { -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *array = g_renew (PublishingPicasaAlbum*, *array, (*size) + 1); -#line 1069 "PicasaPublishing.c" - } -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[(*length)++] = value; -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[*length] = NULL; -#line 1075 "PicasaPublishing.c" -} - - -static void -_vala_array_add14 (PublishingPicasaAlbum** * array, - int* length, - int* size, - PublishingPicasaAlbum* value) -{ -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if ((*length) == (*size)) { -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *array = g_renew (PublishingPicasaAlbum*, *array, (*size) + 1); -#line 1091 "PicasaPublishing.c" - } -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[(*length)++] = value; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[*length] = NULL; -#line 1097 "PicasaPublishing.c" -} - - -static PublishingPicasaAlbum** -publishing_picasa_picasa_publisher_extract_albums_helper (PublishingPicasaPicasaPublisher* self, - xmlNode* document_root, - int* result_length1, - GError** error) -{ - PublishingPicasaAlbum** result = NULL; - PublishingPicasaAlbum** _result_ = NULL; - PublishingPicasaAlbum** _tmp0_; - gint _result__length1; - gint __result__size_; - xmlNode* doc_node_iter = NULL; - const gchar* _tmp1_; - PublishingPicasaAlbum** _tmp5_; - gint _tmp5__length1; - PublishingPicasaAlbum* _tmp6_; - PublishingPicasaAlbum** _tmp35_; - gint _tmp35__length1; - GError * _inner_error_ = NULL; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self), NULL); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_new0 (PublishingPicasaAlbum*, 0 + 1); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _result_ = _tmp0_; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _result__length1 = 0; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __result__size_ = _result__length1; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - doc_node_iter = NULL; -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = document_root->name; -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp1_, "feed") == 0) { -#line 1136 "PicasaPublishing.c" - xmlNode* _tmp2_; -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = document_root->children; -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - doc_node_iter = _tmp2_; -#line 1142 "PicasaPublishing.c" - } else { - const gchar* _tmp3_; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = document_root->name; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp3_, "entry") == 0) { -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - doc_node_iter = document_root; -#line 1151 "PicasaPublishing.c" - } else { - GError* _tmp4_; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, "response root node " "isn't a or "); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _inner_error_ = _tmp4_; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _result_ = (_vala_array_free (_result_, _result__length1, (GDestroyNotify) publishing_picasa_album_unref), NULL); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 1166 "PicasaPublishing.c" - } else { -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _result_ = (_vala_array_free (_result_, _result__length1, (GDestroyNotify) publishing_picasa_album_unref), NULL); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 1176 "PicasaPublishing.c" - } - } - } -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = _result_; -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5__length1 = _result__length1; -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = publishing_picasa_album_new (_ ("Default album"), PUBLISHING_PICASA_PICASA_PUBLISHER_DEFAULT_ALBUM_FEED_URL); -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_array_add13 (&_result_, &_result__length1, &__result__size_, _tmp6_); -#line 1188 "PicasaPublishing.c" - { - gboolean _tmp7_ = FALSE; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = TRUE; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - while (TRUE) { -#line 1195 "PicasaPublishing.c" - xmlNode* _tmp10_; - xmlNode* _tmp11_; - const gchar* _tmp12_; - gchar* name_val = NULL; - gchar* url_val = NULL; - xmlNode* album_node_iter = NULL; - xmlNode* _tmp13_; - xmlNode* _tmp14_; - const gchar* _tmp30_; - PublishingPicasaAlbum** _tmp31_; - gint _tmp31__length1; - const gchar* _tmp32_; - const gchar* _tmp33_; - PublishingPicasaAlbum* _tmp34_; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!_tmp7_) { -#line 1212 "PicasaPublishing.c" - xmlNode* _tmp8_; - xmlNode* _tmp9_; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = doc_node_iter; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = _tmp8_->next; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - doc_node_iter = _tmp9_; -#line 1221 "PicasaPublishing.c" - } -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = FALSE; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = doc_node_iter; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!(_tmp10_ != NULL)) { -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - break; -#line 1231 "PicasaPublishing.c" - } -#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11_ = doc_node_iter; -#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = _tmp11_->name; -#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp12_, "entry") != 0) { -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - continue; -#line 1241 "PicasaPublishing.c" - } -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - name_val = NULL; -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - url_val = NULL; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp13_ = doc_node_iter; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = _tmp13_->children; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - album_node_iter = _tmp14_; -#line 1253 "PicasaPublishing.c" - { - gboolean _tmp15_ = FALSE; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = TRUE; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - while (TRUE) { -#line 1260 "PicasaPublishing.c" - xmlNode* _tmp18_; - xmlNode* _tmp19_; - const gchar* _tmp20_; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!_tmp15_) { -#line 1266 "PicasaPublishing.c" - xmlNode* _tmp16_; - xmlNode* _tmp17_; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp16_ = album_node_iter; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp17_ = _tmp16_->next; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - album_node_iter = _tmp17_; -#line 1275 "PicasaPublishing.c" - } -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = FALSE; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp18_ = album_node_iter; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!(_tmp18_ != NULL)) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - break; -#line 1285 "PicasaPublishing.c" - } -#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp19_ = album_node_iter; -#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp20_ = _tmp19_->name; -#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp20_, "title") == 0) { -#line 1293 "PicasaPublishing.c" - xmlNode* _tmp21_; - gchar* _tmp22_; -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp21_ = album_node_iter; -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp22_ = (gchar*) xmlNodeGetContent (_tmp21_); -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (name_val); -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - name_val = _tmp22_; -#line 1304 "PicasaPublishing.c" - } else { - xmlNode* _tmp23_; - const gchar* _tmp24_; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp23_ = album_node_iter; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp24_ = _tmp23_->name; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp24_, "id") == 0) { -#line 1314 "PicasaPublishing.c" - xmlNode* _tmp25_; - xmlNs* _tmp26_; - const gchar* _tmp27_; - xmlNode* _tmp28_; - gchar* _tmp29_; -#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp25_ = album_node_iter; -#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp26_ = _tmp25_->ns; -#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp27_ = _tmp26_->prefix; -#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp27_ != NULL) { -#line 113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - continue; -#line 1330 "PicasaPublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp28_ = album_node_iter; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp29_ = (gchar*) xmlNodeGetContent (_tmp28_); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (url_val); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - url_val = _tmp29_; -#line 1340 "PicasaPublishing.c" - } - } - } - } -#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp30_ = url_val; -#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp30_, PUBLISHING_PICASA_PICASA_PUBLISHER_DEFAULT_ALBUM_FEED_URL) == 0) { -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (url_val); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (name_val); -#line 120 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - continue; -#line 1355 "PicasaPublishing.c" - } -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp31_ = _result_; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp31__length1 = _result__length1; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp32_ = name_val; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp33_ = url_val; -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp34_ = publishing_picasa_album_new (_tmp32_, _tmp33_); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_array_add14 (&_result_, &_result__length1, &__result__size_, _tmp34_); -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (url_val); -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (name_val); -#line 1373 "PicasaPublishing.c" - } - } -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp35_ = _result_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp35__length1 = _result__length1; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (result_length1) { -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *result_length1 = _tmp35__length1; -#line 1384 "PicasaPublishing.c" - } -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp35_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 1390 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_load_parameters_from_configuration_system (PublishingPicasaPicasaPublisher* self, - PublishingPicasaPublishingParameters* parameters) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - SpitPublishingPluginHost* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (parameters)); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_major_axis_size_selection_id (parameters, spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default-size", 0)); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_strip_metadata (parameters, spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip-metadata", FALSE)); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-album", NULL); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _tmp3_; -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_target_album_name (parameters, _tmp4_); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp4_); -#line 1425 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_save_parameters_to_configuration_system (PublishingPicasaPicasaPublisher* self, - PublishingPicasaPublishingParameters* parameters) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - SpitPublishingPluginHost* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (parameters)); -#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default-size", publishing_picasa_publishing_parameters_get_major_axis_size_selection_id (parameters)); -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", publishing_picasa_publishing_parameters_get_strip_metadata (parameters)); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = publishing_picasa_publishing_parameters_get_target_album_name (parameters); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _tmp3_; -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-album", _tmp4_); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp4_); -#line 1460 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* base) -{ - PublishingPicasaPicasaPublisher * self; - PublishingPicasaPublishingParameters* _tmp0_; - PublishingRESTSupportGoogleSession* _tmp1_; - PublishingRESTSupportGoogleSession* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher); -#line 142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:142: EVENT: OAuth login flow complete."); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->publishing_parameters; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = _tmp1_; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = publishing_rest_support_google_session_get_user_name (_tmp2_); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _tmp3_; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_user_name (_tmp0_, _tmp4_); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp4_); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp2_); -#line 147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_do_fetch_account_information (self); -#line 1495 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_picasa_publisher_on_initial_album_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_on_initial_album_fetch_complete ((PublishingPicasaPicasaPublisher*) self, _sender); -#line 1505 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_picasa_publisher_on_initial_album_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_on_initial_album_fetch_error ((PublishingPicasaPicasaPublisher*) self, _sender, err); -#line 1516 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_on_initial_album_fetch_complete (PublishingPicasaPicasaPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1542 "PicasaPublishing.c" - } -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:157: EVENT: finished fetching account and album " \ -"information."); -#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_do_parse_and_display_account_information (self, G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION, PublishingPicasaAlbumDirectoryTransaction)); -#line 1548 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_on_initial_album_fetch_error (PublishingPicasaPicasaPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gboolean _tmp4_ = FALSE; -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1578 "PicasaPublishing.c" - } -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (bad_txn); -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = _tmp2_; -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:170: EVENT: fetching account and album informati" \ -"on failed; response = '%s'.", _tmp3_); -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp3_); -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 403)) { -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = TRUE; -#line 1592 "PicasaPublishing.c" - } else { -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = publishing_rest_support_transaction_get_status_code (bad_txn) == ((guint) 404); -#line 1596 "PicasaPublishing.c" - } -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp4_) { -#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_google_publisher_do_logout (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 1602 "PicasaPublishing.c" - } else { - SpitPublishingPluginHost* _tmp5_; -#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp5_, err); -#line 1609 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_picasa_publisher_on_publishing_options_logout (PublishingPicasaPicasaPublisher* self) -{ -#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1623 "PicasaPublishing.c" - } -#line 185 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:185: EVENT: user clicked 'Logout' in the publish" \ -"ing options pane."); -#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_google_publisher_do_logout (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 1629 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_on_publishing_options_publish (PublishingPicasaPicasaPublisher* self) -{ - PublishingPicasaPublishingParameters* _tmp0_; -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1643 "PicasaPublishing.c" - } -#line 194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:194: EVENT: user clicked 'Publish' in the publis" \ -"hing options pane."); -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->publishing_parameters; -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_save_parameters_to_configuration_system (self, _tmp0_); -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_do_upload (self); -#line 1653 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_on_upload_status_updated (PublishingPicasaPicasaPublisher* self, - gint file_number, - gdouble completed_fraction) -{ - SpitPublishingProgressCallback _tmp0_; - void* _tmp0__target; - SpitPublishingProgressCallback _tmp1_; - void* _tmp1__target; -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1672 "PicasaPublishing.c" - } -#line 205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:205: EVENT: uploader reports upload %.2f percent" \ -" complete.", 100.0 * completed_fraction); -#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->progress_reporter; -#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = self->priv->progress_reporter; -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ (file_number, completed_fraction, _tmp1__target); -#line 1688 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_picasa_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self) -{ -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_on_upload_complete ((PublishingPicasaPicasaPublisher*) self, _sender, num_photos_published); -#line 1699 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_picasa_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self) -{ -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_on_upload_error ((PublishingPicasaPicasaPublisher*) self, _sender, err); -#line 1710 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_on_upload_complete (PublishingPicasaPicasaPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published) -{ - guint _tmp0_; - guint _tmp1_; -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1729 "PicasaPublishing.c" - } -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:217: EVENT: uploader reports upload complete; %d" \ -" items published.", num_published); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 222 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_do_show_success_pane (self); -#line 1743 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_on_upload_error (PublishingPicasaPicasaPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err) -{ - const gchar* _tmp0_; - guint _tmp1_; - guint _tmp2_; - SpitPublishingPluginHost* _tmp3_; -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1764 "PicasaPublishing.c" - } -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = err->message; -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:230: EVENT: uploader reports upload error = '%s'" \ -".", _tmp0_); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp2_, NULL, FALSE); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _publishing_picasa_picasa_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp3_, err); -#line 1782 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_do_fetch_account_information (PublishingPicasaPicasaPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingPicasaAlbumDirectoryTransaction* directory_trans = NULL; - PublishingRESTSupportGoogleSession* _tmp2_; - PublishingRESTSupportGoogleSession* _tmp3_; - PublishingPicasaAlbumDirectoryTransaction* _tmp4_; - PublishingPicasaAlbumDirectoryTransaction* _tmp5_; - GError * _inner_error_ = NULL; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:239: ACTION: fetching account and album informat" \ -"ion."); -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp0_); -#line 242 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 242 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp1_, TRUE); -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = _tmp2_; -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = publishing_picasa_album_directory_transaction_new (_tmp3_); -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = _tmp4_; -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp3_); -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - directory_trans = _tmp5_; -#line 246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (directory_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_error_publishing_rest_support_transaction_network_error, self, 0); -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (directory_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_picasa_picasa_publisher_on_initial_album_fetch_complete_publishing_rest_support_transaction_completed, self, 0); -#line 1825 "PicasaPublishing.c" - { -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (directory_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 1833 "PicasaPublishing.c" - goto __catch6_spit_publishing_publishing_error; - } -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_transaction_unref0 (directory_trans); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1844 "PicasaPublishing.c" - } - } - goto __finally6; - __catch6_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp6_; -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - err = _inner_error_; -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _inner_error_ = NULL; -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = err; -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_on_initial_album_fetch_error (self, G_TYPE_CHECK_INSTANCE_CAST (directory_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp6_); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_error_free0 (err); -#line 1862 "PicasaPublishing.c" - } - __finally6: -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_transaction_unref0 (directory_trans); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1875 "PicasaPublishing.c" - } -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_transaction_unref0 (directory_trans); -#line 1879 "PicasaPublishing.c" -} - - -static gchar* -_publishing_picasa_album_directory_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self) -{ - gchar* result; - result = publishing_picasa_album_directory_transaction_validate_xml (doc); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 1891 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_do_parse_and_display_account_information (PublishingPicasaPicasaPublisher* self, - PublishingPicasaAlbumDirectoryTransaction* transaction) -{ - PublishingRESTSupportXmlDocument* response_doc = NULL; - GError * _inner_error_ = NULL; -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_ALBUM_DIRECTORY_TRANSACTION (transaction)); -#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:260: ACTION: parsing account and album informati" \ -"on from server response XML"); -#line 1907 "PicasaPublishing.c" - { - PublishingRESTSupportXmlDocument* _tmp0_ = NULL; - gchar* _tmp1_; - gchar* _tmp2_; - PublishingRESTSupportXmlDocument* _tmp3_; - PublishingRESTSupportXmlDocument* _tmp4_; - PublishingRESTSupportXmlDocument* _tmp5_; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_rest_support_transaction_get_response (G_TYPE_CHECK_INSTANCE_CAST (transaction, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = _tmp1_; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = publishing_rest_support_xml_document_parse_string (_tmp2_, _publishing_picasa_album_directory_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _tmp3_; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp2_); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = _tmp4_; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 1931 "PicasaPublishing.c" - goto __catch7_spit_publishing_publishing_error; - } -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1942 "PicasaPublishing.c" - } -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = _tmp0_; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = NULL; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - response_doc = _tmp5_; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (_tmp0_); -#line 1954 "PicasaPublishing.c" - } - goto __finally7; - __catch7_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp6_; - GError* _tmp7_; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - err = _inner_error_; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _inner_error_ = NULL; -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = err; -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp6_, _tmp7_); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_error_free0 (err); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1978 "PicasaPublishing.c" - } - __finally7: -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 1991 "PicasaPublishing.c" - } - { - PublishingPicasaAlbum** _tmp8_ = NULL; - PublishingRESTSupportXmlDocument* _tmp9_; - xmlNode* _tmp10_; - gint _tmp11_; - PublishingPicasaAlbum** _tmp12_; - gint _tmp8__length1; - gint __tmp8__size_; - PublishingPicasaPublishingParameters* _tmp13_; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = response_doc; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = publishing_rest_support_xml_document_get_root_node (_tmp9_); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = publishing_picasa_picasa_publisher_extract_albums_helper (self, _tmp10_, &_tmp11_, &_inner_error_); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = _tmp12_; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8__length1 = _tmp11_; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __tmp8__size_ = _tmp8__length1; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2018 "PicasaPublishing.c" - goto __catch8_spit_publishing_publishing_error; - } -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 2029 "PicasaPublishing.c" - } -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp13_ = self->priv->publishing_parameters; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_albums (_tmp13_, _tmp8_, _tmp8__length1); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = (_vala_array_free (_tmp8_, _tmp8__length1, (GDestroyNotify) publishing_picasa_album_unref), NULL); -#line 2037 "PicasaPublishing.c" - } - goto __finally8; - __catch8_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp14_; - GError* _tmp15_; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - err = _inner_error_; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _inner_error_ = NULL; -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = err; -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp14_, _tmp15_); -#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_error_free0 (err); -#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 2061 "PicasaPublishing.c" - } - __finally8: -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 2074 "PicasaPublishing.c" - } -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_do_show_publishing_options_pane (self); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_xml_document_unref0 (response_doc); -#line 2080 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_picasa_publisher_on_publishing_options_publish_publishing_picasa_publishing_options_pane_publish (PublishingPicasaPublishingOptionsPane* _sender, - gpointer self) -{ -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_on_publishing_options_publish ((PublishingPicasaPicasaPublisher*) self); -#line 2090 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_picasa_publisher_on_publishing_options_logout_publishing_picasa_publishing_options_pane_logout (PublishingPicasaPublishingOptionsPane* _sender, - gpointer self) -{ -#line 297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_on_publishing_options_logout ((PublishingPicasaPicasaPublisher*) self); -#line 2100 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_do_show_publishing_options_pane (PublishingPicasaPicasaPublisher* self) -{ - GtkBuilder* builder = NULL; - GtkBuilder* _tmp0_; - PublishingPicasaPublishingOptionsPane* opts_pane = NULL; - GtkBuilder* _tmp7_; - PublishingPicasaPublishingParameters* _tmp8_; - SpitPublishingAuthenticator* _tmp9_; - PublishingPicasaPublishingOptionsPane* _tmp10_; - PublishingPicasaPublishingOptionsPane* _tmp11_; - PublishingPicasaPublishingOptionsPane* _tmp12_; - SpitPublishingPluginHost* _tmp13_; - PublishingPicasaPublishingOptionsPane* _tmp14_; - SpitPublishingPluginHost* _tmp15_; - GError * _inner_error_ = NULL; -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:282: ACTION: showing publishing options pane."); -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = gtk_builder_new (); -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - builder = _tmp0_; -#line 2128 "PicasaPublishing.c" - { - GtkBuilder* _tmp1_; -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = builder; -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_builder_add_from_resource (_tmp1_, PLUGIN_RESOURCE_PATH "/" "picasa_publishing_options_pane.ui", &_inner_error_); -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2137 "PicasaPublishing.c" - goto __catch9_g_error; - } - } - goto __finally9; - __catch9_g_error: - { - GError* e = NULL; - GError* _tmp2_; - const gchar* _tmp3_; - SpitPublishingPluginHost* _tmp4_; - GError* _tmp5_; - GError* _tmp6_; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - e = _inner_error_; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _inner_error_ = NULL; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = e; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = _tmp2_->message; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_warning ("PicasaPublishing.vala:288: Could not parse UI file! Error: %s.", _tmp3_); -#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _ ("A file required for publishing is unavailable. Publishing to Picasa ca" \ -"n’t continue.")); -#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = _tmp5_; -#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp6_); -#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_error_free0 (_tmp6_); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_error_free0 (e); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (builder); -#line 292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 2176 "PicasaPublishing.c" - } - __finally9: -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (builder); -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 2189 "PicasaPublishing.c" - } -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = builder; -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = self->priv->publishing_parameters; -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = self->priv->authenticator; -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = publishing_picasa_publishing_options_pane_new (_tmp7_, _tmp8_, spit_publishing_authenticator_can_logout (_tmp9_)); -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - opts_pane = _tmp10_; -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11_ = opts_pane; -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_connect_object (_tmp11_, "publish", (GCallback) _publishing_picasa_picasa_publisher_on_publishing_options_publish_publishing_picasa_publishing_options_pane_publish, self, 0); -#line 297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = opts_pane; -#line 297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_connect_object (_tmp12_, "logout", (GCallback) _publishing_picasa_picasa_publisher_on_publishing_options_logout_publishing_picasa_publishing_options_pane_logout, self, 0); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp13_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = opts_pane; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp15_, FALSE); -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (opts_pane); -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (builder); -#line 2223 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_picasa_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_on_upload_status_updated ((PublishingPicasaPicasaPublisher*) self, file_number, fraction_complete); -#line 2234 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_do_upload (PublishingPicasaPicasaPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingPicasaPublishingParameters* _tmp2_; - PublishingPicasaPublishingParameters* _tmp3_; - void* _tmp4_; - GDestroyNotify _tmp5_; - SpitPublishingProgressCallback _tmp6_; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp7_; - gint _tmp8_; - SpitPublishingPublishable** _tmp9_; - gint publishables_length1; - gint _publishables_size_; - PublishingPicasaUploader* uploader = NULL; - PublishingRESTSupportGoogleSession* _tmp10_; - PublishingRESTSupportGoogleSession* _tmp11_; - SpitPublishingPublishable** _tmp12_; - gint _tmp12__length1; - PublishingPicasaPublishingParameters* _tmp13_; - PublishingPicasaUploader* _tmp14_; - PublishingPicasaUploader* _tmp15_; - PublishingPicasaUploader* _tmp16_; - PublishingPicasaUploader* _tmp17_; - PublishingPicasaUploader* _tmp18_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:304: ACTION: uploading media items to remote ser" \ -"ver."); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = self->priv->publishing_parameters; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = self->priv->publishing_parameters; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = spit_publishing_plugin_host_serialize_publishables (_tmp1_, publishing_picasa_publishing_parameters_get_major_axis_size_pixels (_tmp2_), publishing_picasa_publishing_parameters_get_strip_metadata (_tmp3_), &_tmp4_, &_tmp5_); -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter = NULL; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter = _tmp6_; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target = _tmp4_; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp5_; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 2299 "PicasaPublishing.c" - } -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = spit_publishing_plugin_host_get_publishables (_tmp7_, &_tmp8_); -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishables = _tmp9_; -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishables_length1 = _tmp8_; -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishables_size_ = publishables_length1; -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11_ = _tmp10_; -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = publishables; -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12__length1 = publishables_length1; -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp13_ = self->priv->publishing_parameters; -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = publishing_picasa_uploader_new (_tmp11_, _tmp12_, _tmp12__length1, _tmp13_); -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = _tmp14_; -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp11_); -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - uploader = _tmp15_; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp16_ = uploader; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_picasa_picasa_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0); -#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp17_ = uploader; -#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_picasa_picasa_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self, 0); -#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp18_ = uploader; -#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_picasa_picasa_publisher_on_upload_status_updated_spit_publishing_progress_callback, self); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_batch_uploader_unref0 (uploader); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 2345 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_do_show_success_pane (PublishingPicasaPicasaPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PICASA_PUBLISHER (self)); -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:329: ACTION: showing success pane."); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 332 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_plugin_host_install_success_pane (_tmp1_); -#line 2366 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* base) -{ - PublishingPicasaPicasaPublisher * self; - PublishingRESTSupportGoogleSession* _tmp0_; - PublishingRESTSupportGoogleSession* _tmp1_; - SpitPublishingAuthenticator* _tmp2_; -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher); -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:336: ACTION: logging out user."); -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = _tmp0_; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_google_session_deauthenticate (_tmp1_); -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = self->priv->authenticator; -#line 339 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (spit_publishing_authenticator_can_logout (_tmp2_)) { -#line 2393 "PicasaPublishing.c" - SpitPublishingAuthenticator* _tmp3_; - SpitPublishingAuthenticator* _tmp4_; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = self->priv->authenticator; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_authenticator_logout (_tmp3_); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = self->priv->authenticator; -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_authenticator_authenticate (_tmp4_); -#line 2404 "PicasaPublishing.c" - } -} - - -static gboolean -publishing_picasa_picasa_publisher_real_is_running (PublishingRESTSupportGooglePublisher* base) -{ - PublishingPicasaPicasaPublisher * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher); -#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->running; -#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp0_; -#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 2423 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_real_start (PublishingRESTSupportGooglePublisher* base) -{ - PublishingPicasaPicasaPublisher * self; - SpitPublishingAuthenticator* _tmp0_; -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher); -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:350: PicasaPublisher: start( ) invoked."); -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 2440 "PicasaPublishing.c" - } -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->running = TRUE; -#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spit_publishing_authenticator_authenticate (_tmp0_); -#line 2448 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_real_stop (PublishingRESTSupportGooglePublisher* base) -{ - PublishingPicasaPicasaPublisher * self; - PublishingRESTSupportGoogleSession* _tmp0_; - PublishingRESTSupportGoogleSession* _tmp1_; -#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_debug ("PicasaPublishing.vala:361: PicasaPublisher: stop( ) invoked."); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = _tmp0_; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_session_stop_transactions (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->running = FALSE; -#line 2472 "PicasaPublishing.c" -} - - -static SpitPublishingAuthenticator* -publishing_picasa_picasa_publisher_real_get_authenticator (PublishingRESTSupportGooglePublisher* base) -{ - PublishingPicasaPicasaPublisher * self; - SpitPublishingAuthenticator* result = NULL; - SpitPublishingAuthenticator* _tmp0_; - SpitPublishingAuthenticator* _tmp5_; - SpitPublishingAuthenticator* _tmp6_; -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher); -#line 369 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 369 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp0_ == NULL) { -#line 2490 "PicasaPublishing.c" - PublishingAuthenticatorFactory* _tmp1_; - PublishingAuthenticatorFactory* _tmp2_; - SpitPublishingPluginHost* _tmp3_; - SpitPublishingAuthenticator* _tmp4_; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_authenticator_factory_get_instance (); -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = _tmp1_; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = spit_publishing_authenticator_factory_create (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory), "picasa", _tmp3_); -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->authenticator = _tmp4_; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (_tmp2_); -#line 2509 "PicasaPublishing.c" - } -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = self->priv->authenticator; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = _g_object_ref0 (_tmp5_); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp6_; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 2519 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_class_init (PublishingPicasaPicasaPublisherClass * klass) -{ -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_picasa_publisher_parent_class = g_type_class_peek_parent (klass); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPicasaPicasaPublisherPrivate)); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->on_login_flow_complete = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_picasa_picasa_publisher_real_on_login_flow_complete; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->do_logout = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_picasa_picasa_publisher_real_do_logout; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->is_running = (gboolean (*) (PublishingRESTSupportGooglePublisher *)) publishing_picasa_picasa_publisher_real_is_running; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->start = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_picasa_picasa_publisher_real_start; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->stop = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_picasa_picasa_publisher_real_stop; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->get_authenticator = (SpitPublishingAuthenticator* (*) (PublishingRESTSupportGooglePublisher *)) publishing_picasa_picasa_publisher_real_get_authenticator; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_picasa_picasa_publisher_finalize; -#line 2544 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_instance_init (PublishingPicasaPicasaPublisher * self) -{ -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv = PUBLISHING_PICASA_PICASA_PUBLISHER_GET_PRIVATE (self); -#line 2553 "PicasaPublishing.c" -} - - -static void -publishing_picasa_picasa_publisher_finalize (GObject * obj) -{ - PublishingPicasaPicasaPublisher * self; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_PICASA_PUBLISHER, PublishingPicasaPicasaPublisher); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter = NULL; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_parameters_unref0 (self->priv->publishing_parameters); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_OBJECT_CLASS (publishing_picasa_picasa_publisher_parent_class)->finalize (obj); -#line 2577 "PicasaPublishing.c" -} - - -GType -publishing_picasa_picasa_publisher_get_type (void) -{ - static volatile gsize publishing_picasa_picasa_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_picasa_picasa_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaPicasaPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_picasa_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaPicasaPublisher), 0, (GInstanceInitFunc) publishing_picasa_picasa_publisher_instance_init, NULL }; - GType publishing_picasa_picasa_publisher_type_id; - publishing_picasa_picasa_publisher_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, "PublishingPicasaPicasaPublisher", &g_define_type_info, 0); - g_once_init_leave (&publishing_picasa_picasa_publisher_type_id__volatile, publishing_picasa_picasa_publisher_type_id); - } - return publishing_picasa_picasa_publisher_type_id__volatile; -} - - -PublishingPicasaAlbum* -publishing_picasa_album_construct (GType object_type, - const gchar* name, - const gchar* url) -{ - PublishingPicasaAlbum* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PublishingPicasaAlbum*) g_type_create_instance (object_type); -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_strdup (name); -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->name); -#line 382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->name = _tmp0_; -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = g_strdup (url); -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->url); -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->url = _tmp1_; -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 2623 "PicasaPublishing.c" -} - - -PublishingPicasaAlbum* -publishing_picasa_album_new (const gchar* name, - const gchar* url) -{ -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return publishing_picasa_album_construct (PUBLISHING_PICASA_TYPE_ALBUM, name, url); -#line 2633 "PicasaPublishing.c" -} - - -static void -publishing_picasa_value_album_init (GValue* value) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2642 "PicasaPublishing.c" -} - - -static void -publishing_picasa_value_album_free_value (GValue* value) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (value->data[0].v_pointer) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_album_unref (value->data[0].v_pointer); -#line 2653 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_value_album_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - dest_value->data[0].v_pointer = publishing_picasa_album_ref (src_value->data[0].v_pointer); -#line 2666 "PicasaPublishing.c" - } else { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 2670 "PicasaPublishing.c" - } -} - - -static gpointer -publishing_picasa_value_album_peek_pointer (const GValue* value) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return value->data[0].v_pointer; -#line 2680 "PicasaPublishing.c" -} - - -static gchar* -publishing_picasa_value_album_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (collect_values[0].v_pointer) { -#line 2692 "PicasaPublishing.c" - PublishingPicasaAlbum * object; - object = collect_values[0].v_pointer; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2699 "PicasaPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2703 "PicasaPublishing.c" - } -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = publishing_picasa_album_ref (object); -#line 2707 "PicasaPublishing.c" - } else { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2711 "PicasaPublishing.c" - } -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 2715 "PicasaPublishing.c" -} - - -static gchar* -publishing_picasa_value_album_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingPicasaAlbum ** object_p; - object_p = collect_values[0].v_pointer; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!object_p) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2731 "PicasaPublishing.c" - } -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!value->data[0].v_pointer) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = NULL; -#line 2737 "PicasaPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 2741 "PicasaPublishing.c" - } else { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = publishing_picasa_album_ref (value->data[0].v_pointer); -#line 2745 "PicasaPublishing.c" - } -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 2749 "PicasaPublishing.c" -} - - -GParamSpec* -publishing_picasa_param_spec_album (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingPicasaParamSpecAlbum* spec; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PICASA_TYPE_ALBUM), NULL); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return G_PARAM_SPEC (spec); -#line 2769 "PicasaPublishing.c" -} - - -gpointer -publishing_picasa_value_get_album (const GValue* value) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_ALBUM), NULL); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return value->data[0].v_pointer; -#line 2780 "PicasaPublishing.c" -} - - -void -publishing_picasa_value_set_album (GValue* value, - gpointer v_object) -{ - PublishingPicasaAlbum * old; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_ALBUM)); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - old = value->data[0].v_pointer; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (v_object) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_TYPE_ALBUM)); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = v_object; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_album_ref (value->data[0].v_pointer); -#line 2803 "PicasaPublishing.c" - } else { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2807 "PicasaPublishing.c" - } -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (old) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_album_unref (old); -#line 2813 "PicasaPublishing.c" - } -} - - -void -publishing_picasa_value_take_album (GValue* value, - gpointer v_object) -{ - PublishingPicasaAlbum * old; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_ALBUM)); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - old = value->data[0].v_pointer; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (v_object) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_TYPE_ALBUM)); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = v_object; -#line 2835 "PicasaPublishing.c" - } else { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2839 "PicasaPublishing.c" - } -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (old) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_album_unref (old); -#line 2845 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_album_class_init (PublishingPicasaAlbumClass * klass) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_album_parent_class = g_type_class_peek_parent (klass); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingPicasaAlbumClass *) klass)->finalize = publishing_picasa_album_finalize; -#line 2857 "PicasaPublishing.c" -} - - -static void -publishing_picasa_album_instance_init (PublishingPicasaAlbum * self) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->ref_count = 1; -#line 2866 "PicasaPublishing.c" -} - - -static void -publishing_picasa_album_finalize (PublishingPicasaAlbum * obj) -{ - PublishingPicasaAlbum * self; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_ALBUM, PublishingPicasaAlbum); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_destroy (self); -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->name); -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->url); -#line 2882 "PicasaPublishing.c" -} - - -GType -publishing_picasa_album_get_type (void) -{ - static volatile gsize publishing_picasa_album_type_id__volatile = 0; - if (g_once_init_enter (&publishing_picasa_album_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_picasa_value_album_init, publishing_picasa_value_album_free_value, publishing_picasa_value_album_copy_value, publishing_picasa_value_album_peek_pointer, "p", publishing_picasa_value_album_collect_value, "p", publishing_picasa_value_album_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaAlbumClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_album_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaAlbum), 0, (GInstanceInitFunc) publishing_picasa_album_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_picasa_album_type_id; - publishing_picasa_album_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPicasaAlbum", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_picasa_album_type_id__volatile, publishing_picasa_album_type_id); - } - return publishing_picasa_album_type_id__volatile; -} - - -gpointer -publishing_picasa_album_ref (gpointer instance) -{ - PublishingPicasaAlbum * self; - self = instance; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return instance; -#line 2911 "PicasaPublishing.c" -} - - -void -publishing_picasa_album_unref (gpointer instance) -{ - PublishingPicasaAlbum * self; - self = instance; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - PUBLISHING_PICASA_ALBUM_GET_CLASS (self)->finalize (self); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2926 "PicasaPublishing.c" - } -} - - -PublishingPicasaAlbumDirectoryTransaction* -publishing_picasa_album_directory_transaction_construct (GType object_type, - PublishingRESTSupportGoogleSession* session) -{ - PublishingPicasaAlbumDirectoryTransaction* self = NULL; -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PublishingPicasaAlbumDirectoryTransaction*) publishing_rest_support_google_publisher_authenticated_transaction_construct (object_type, session, PUBLISHING_PICASA_ALBUM_DIRECTORY_TRANSACTION_ENDPOINT_URL, PUBLISHING_REST_SUPPORT_HTTP_METHOD_GET); -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 2942 "PicasaPublishing.c" -} - - -PublishingPicasaAlbumDirectoryTransaction* -publishing_picasa_album_directory_transaction_new (PublishingRESTSupportGoogleSession* session) -{ -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return publishing_picasa_album_directory_transaction_construct (PUBLISHING_PICASA_TYPE_ALBUM_DIRECTORY_TRANSACTION, session); -#line 2951 "PicasaPublishing.c" -} - - -gchar* -publishing_picasa_album_directory_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc) -{ - gchar* result = NULL; - xmlNode* document_root = NULL; - xmlNode* _tmp0_; - gboolean _tmp1_ = FALSE; - xmlNode* _tmp2_; - const gchar* _tmp3_; -#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL); -#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_xml_document_get_root_node (doc); -#line 397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - document_root = _tmp0_; -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = document_root; -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = _tmp2_->name; -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp3_, "feed") == 0) { -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = TRUE; -#line 2978 "PicasaPublishing.c" - } else { - xmlNode* _tmp4_; - const gchar* _tmp5_; -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = document_root; -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = _tmp4_->name; -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = g_strcmp0 (_tmp5_, "entry") == 0; -#line 2988 "PicasaPublishing.c" - } -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp1_) { -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = NULL; -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 2996 "PicasaPublishing.c" - } else { - gchar* _tmp6_; -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = g_strdup ("response root node isn't a or "); -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp6_; -#line 401 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 3005 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_album_directory_transaction_class_init (PublishingPicasaAlbumDirectoryTransactionClass * klass) -{ -#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_album_directory_transaction_parent_class = g_type_class_peek_parent (klass); -#line 3015 "PicasaPublishing.c" -} - - -static void -publishing_picasa_album_directory_transaction_instance_init (PublishingPicasaAlbumDirectoryTransaction * self) -{ -} - - -GType -publishing_picasa_album_directory_transaction_get_type (void) -{ - static volatile gsize publishing_picasa_album_directory_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_picasa_album_directory_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaAlbumDirectoryTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_album_directory_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaAlbumDirectoryTransaction), 0, (GInstanceInitFunc) publishing_picasa_album_directory_transaction_instance_init, NULL }; - GType publishing_picasa_album_directory_transaction_type_id; - publishing_picasa_album_directory_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, "PublishingPicasaAlbumDirectoryTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_picasa_album_directory_transaction_type_id__volatile, publishing_picasa_album_directory_transaction_type_id); - } - return publishing_picasa_album_directory_transaction_type_id__volatile; -} - - -static gpointer -_publishing_rest_support_session_ref0 (gpointer self) -{ -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self ? publishing_rest_support_session_ref (self) : NULL; -#line 3044 "PicasaPublishing.c" -} - - -static gpointer -_publishing_picasa_publishing_parameters_ref0 (gpointer self) -{ -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self ? publishing_picasa_publishing_parameters_ref (self) : NULL; -#line 3053 "PicasaPublishing.c" -} - - -PublishingPicasaUploadTransaction* -publishing_picasa_upload_transaction_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - PublishingPicasaPublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ - PublishingPicasaUploadTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - PublishingRESTSupportGoogleSession* _tmp2_; - PublishingPicasaPublishingParameters* _tmp3_; - SpitPublishingPublishable* _tmp4_; - GError * _inner_error_ = NULL; -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL); -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_picasa_publishing_parameters_get_target_album_feed_url (parameters); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = _tmp0_; -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PublishingPicasaUploadTransaction*) publishing_rest_support_google_publisher_authenticated_transaction_construct (object_type, session, _tmp1_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp1_); -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_assert (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)), "session.is_authenticated()"); -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = _publishing_rest_support_session_ref0 (session); -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->session = _tmp2_; -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = _publishing_picasa_publishing_parameters_ref0 (parameters); -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters); -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->parameters = _tmp3_; -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _g_object_ref0 (publishable); -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->publishable); -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->publishable = _tmp4_; -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (spit_publishing_publishable_get_media_type (publishable) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 3106 "PicasaPublishing.c" - { - GFileInfo* info = NULL; - SpitPublishingPublishable* _tmp5_; - GFile* _tmp6_; - GFile* _tmp7_; - GFileInfo* _tmp8_; - GFileInfo* _tmp9_; - GFileInfo* _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = self->priv->publishable; -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = spit_publishing_publishable_get_serialized_file (_tmp5_); -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = _tmp6_; -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = g_file_query_info (_tmp7_, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_); -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = _tmp8_; -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (_tmp7_); -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - info = _tmp9_; -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3133 "PicasaPublishing.c" - goto __catch10_g_error; - } -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = info; -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11_ = g_file_info_get_content_type (_tmp10_); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = g_content_type_get_mime_type (_tmp11_); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->mime_type); -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->mime_type = _tmp12_; -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (info); -#line 3148 "PicasaPublishing.c" - } - goto __finally10; - __catch10_g_error: - { - GError* err = NULL; - gchar* _tmp13_; -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - err = _inner_error_; -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _inner_error_ = NULL; -#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp13_ = g_strdup ("video/mpeg"); -#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->mime_type); -#line 427 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->mime_type = _tmp13_; -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_error_free0 (err); -#line 3167 "PicasaPublishing.c" - } - __finally10: -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 3178 "PicasaPublishing.c" - } - } else { - gchar* _tmp14_; -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = g_strdup ("image/jpeg"); -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->mime_type); -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->mime_type = _tmp14_; -#line 3188 "PicasaPublishing.c" - } -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 3192 "PicasaPublishing.c" -} - - -PublishingPicasaUploadTransaction* -publishing_picasa_upload_transaction_new (PublishingRESTSupportGoogleSession* session, - PublishingPicasaPublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return publishing_picasa_upload_transaction_construct (PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, session, parameters, publishable); -#line 3203 "PicasaPublishing.c" -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3227 "PicasaPublishing.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3236 "PicasaPublishing.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 3257 "PicasaPublishing.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 3261 "PicasaPublishing.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 3267 "PicasaPublishing.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 3277 "PicasaPublishing.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 3281 "PicasaPublishing.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 3289 "PicasaPublishing.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 3296 "PicasaPublishing.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 3300 "PicasaPublishing.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 3306 "PicasaPublishing.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3318 "PicasaPublishing.c" -} - - -static gchar* -_vala_g_strjoinv (const gchar* separator, - gchar** str_array, - int str_array_length1) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; -#line 1092 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (separator == NULL) { -#line 1093 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - separator = ""; -#line 3333 "PicasaPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array != NULL) { -#line 3337 "PicasaPublishing.c" - gboolean _tmp1_ = FALSE; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 > 0) { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 3343 "PicasaPublishing.c" - } else { - gboolean _tmp2_ = FALSE; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 3348 "PicasaPublishing.c" - const gchar* _tmp3_; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = str_array[0]; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp3_ != NULL; -#line 3354 "PicasaPublishing.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = FALSE; -#line 3358 "PicasaPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp2_; -#line 3362 "PicasaPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = _tmp1_; -#line 3366 "PicasaPublishing.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 3370 "PicasaPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 3374 "PicasaPublishing.c" - gint i = 0; - gsize len = 0UL; - gint _tmp20_; - gint _tmp22_; - gint _tmp23_; - gsize _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; - const gchar* res = NULL; - gsize _tmp28_; - void* _tmp29_; - void* ptr = NULL; - const gchar* _tmp30_; - const gchar* _tmp31_; - void* _tmp32_; - const gchar* _tmp45_; -#line 1097 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = (gsize) 1; -#line 3394 "PicasaPublishing.c" - { - gboolean _tmp4_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 0; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = TRUE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - while (TRUE) { -#line 3403 "PicasaPublishing.c" - gboolean _tmp6_ = FALSE; - gboolean _tmp7_ = FALSE; - gint _tmp12_ = 0; - gint _tmp13_; - const gchar* _tmp14_; - gsize _tmp19_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp4_) { -#line 3412 "PicasaPublishing.c" - gint _tmp5_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = _tmp5_ + 1; -#line 3418 "PicasaPublishing.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 != -1) { -#line 3424 "PicasaPublishing.c" - gint _tmp8_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp8_ < str_array_length1; -#line 3430 "PicasaPublishing.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = FALSE; -#line 3434 "PicasaPublishing.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp7_) { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = TRUE; -#line 3440 "PicasaPublishing.c" - } else { - gboolean _tmp9_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 3445 "PicasaPublishing.c" - gint _tmp10_; - const gchar* _tmp11_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp11_ = str_array[_tmp10_]; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = _tmp11_ != NULL; -#line 3454 "PicasaPublishing.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = FALSE; -#line 3458 "PicasaPublishing.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp9_; -#line 3462 "PicasaPublishing.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp6_) { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - break; -#line 3468 "PicasaPublishing.c" - } -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp13_ = i; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp14_ = str_array[_tmp13_]; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp14_ != NULL) { -#line 3476 "PicasaPublishing.c" - gint _tmp15_; - const gchar* _tmp16_; - gint _tmp17_; - gint _tmp18_; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp15_ = i; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp16_ = str_array[_tmp15_]; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp17_ = strlen ((const gchar*) _tmp16_); -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp18_ = _tmp17_; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp12_ = _tmp18_; -#line 3491 "PicasaPublishing.c" - } else { -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp12_ = 0; -#line 3495 "PicasaPublishing.c" - } -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp19_ = len; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp19_ + _tmp12_; -#line 3501 "PicasaPublishing.c" - } - } -#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp20_ = i; -#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp20_ == 0) { -#line 3508 "PicasaPublishing.c" - gchar* _tmp21_; -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp21_ = g_strdup (""); -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp21_; -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3516 "PicasaPublishing.c" - } -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp22_ = i; -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - str_array_length1 = _tmp22_; -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp23_ = str_array_length1; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp24_ = len; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp25_ = strlen ((const gchar*) separator); -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp26_ = _tmp25_; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp27_ = i; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp24_ + (_tmp26_ * (_tmp27_ - 1)); -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp28_ = len; -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp29_ = g_malloc (_tmp28_); -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = _tmp29_; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp30_ = res; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp31_ = str_array[0]; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp32_ = g_stpcpy ((void*) _tmp30_, (const gchar*) _tmp31_); -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp32_; -#line 3548 "PicasaPublishing.c" - { - gboolean _tmp33_ = FALSE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 1; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp33_ = TRUE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - while (TRUE) { -#line 3557 "PicasaPublishing.c" - gint _tmp35_; - void* _tmp36_; - void* _tmp37_; - const gchar* _tmp38_ = NULL; - gint _tmp39_; - const gchar* _tmp40_; - void* _tmp43_; - void* _tmp44_; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp33_) { -#line 3568 "PicasaPublishing.c" - gint _tmp34_; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp34_ = i; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = _tmp34_ + 1; -#line 3574 "PicasaPublishing.c" - } -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp33_ = FALSE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp35_ = i; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!(_tmp35_ < str_array_length1)) { -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - break; -#line 3584 "PicasaPublishing.c" - } -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp36_ = ptr; -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp37_ = g_stpcpy (_tmp36_, (const gchar*) separator); -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp37_; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp39_ = i; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp40_ = str_array[_tmp39_]; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp40_ != NULL) { -#line 3598 "PicasaPublishing.c" - gint _tmp41_; - const gchar* _tmp42_; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp41_ = i; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp42_ = str_array[_tmp41_]; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp38_ = (const gchar*) _tmp42_; -#line 3607 "PicasaPublishing.c" - } else { -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp38_ = ""; -#line 3611 "PicasaPublishing.c" - } -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp43_ = ptr; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp44_ = g_stpcpy (_tmp43_, _tmp38_); -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp44_; -#line 3619 "PicasaPublishing.c" - } - } -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp45_ = res; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = NULL; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gchar*) _tmp45_; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3630 "PicasaPublishing.c" - } else { - gchar* _tmp46_; -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp46_ = g_strdup (""); -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp46_; -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3639 "PicasaPublishing.c" - } -} - - -static guint8* -string_get_data (const gchar* self, - int* result_length1) -{ - guint8* result; - guint8* res = NULL; - gint res_length1; - gint _res_size_; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - guint8* _tmp3_; - gint _tmp3__length1; - guint8* _tmp4_; - gint _tmp4__length1; -#line 1442 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = (guint8*) self; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = -1; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _res_size_ = res_length1; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = (gint) _tmp1_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = res; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3__length1 = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4__length1 = _tmp3__length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (result_length1) { -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result_length1 = _tmp4__length1; -#line 3687 "PicasaPublishing.c" - } -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp4_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3693 "PicasaPublishing.c" -} - - -static void -_vala_SoupBuffer_free (SoupBuffer* self) -{ -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_boxed_free (soup_buffer_get_type (), self); -#line 3702 "PicasaPublishing.c" -} - - -static void -_vala_SoupMultipart_free (SoupMultipart* self) -{ -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_boxed_free (soup_multipart_get_type (), self); -#line 3711 "PicasaPublishing.c" -} - - -static void -publishing_picasa_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error) -{ - PublishingPicasaUploadTransaction * self; - SoupMultipart* message_parts = NULL; - SoupMultipart* _tmp0_; - gchar* summary = NULL; - gchar* _tmp1_; - SpitPublishingPublishable* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gboolean _tmp5_; - gchar** keywords = NULL; - SpitPublishingPublishable* _tmp12_; - gint _tmp13_; - gchar** _tmp14_; - gint keywords_length1; - gint _keywords_size_; - gchar* keywords_string = NULL; - gchar* _tmp15_; - gchar** _tmp16_; - gint _tmp16__length1; - gchar* metadata = NULL; - SpitPublishingPublishable* _tmp50_; - gchar* _tmp51_; - gchar* _tmp52_; - gchar* _tmp53_; - gchar* _tmp54_; - const gchar* _tmp55_; - const gchar* _tmp56_; - gchar* _tmp57_; - gchar* _tmp58_; - SoupBuffer* metadata_buffer = NULL; - const gchar* _tmp59_; - guint8* _tmp60_; - gint _tmp60__length1; - guint8* _tmp61_; - gint _tmp61__length1; - SoupBuffer* _tmp62_; - SoupMultipart* _tmp63_; - SoupBuffer* _tmp64_; - guint8* photo_data = NULL; - GMappedFile* _tmp86_; - gchar* _tmp87_; - gint photo_data_length1; - gint _photo_data_size_; - GMappedFile* _tmp88_; - gint _tmp89_; - SoupBuffer* bindable_data = NULL; - SoupBuffer* _tmp90_; - SoupMultipart* _tmp91_; - SpitPublishingPublishable* _tmp92_; - GFile* _tmp93_; - GFile* _tmp94_; - gchar* _tmp95_; - gchar* _tmp96_; - const gchar* _tmp97_; - SoupMessage* outbound_message = NULL; - gchar* _tmp98_; - gchar* _tmp99_; - SoupMultipart* _tmp100_; - SoupMessage* _tmp101_; - SoupMessage* _tmp102_; - SoupMessageHeaders* _tmp103_; - PublishingRESTSupportGoogleSession* _tmp104_; - gchar* _tmp105_; - gchar* _tmp106_; - gchar* _tmp107_; - gchar* _tmp108_; - GError * _inner_error_ = NULL; -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransaction); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = soup_multipart_new ("multipart/related"); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - message_parts = _tmp0_; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = g_strdup (""); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - summary = _tmp1_; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = self->priv->publishable; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = spit_publishing_publishable_get_publishing_name (_tmp2_); -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _tmp3_; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = g_strcmp0 (_tmp4_, "") != 0; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp4_); -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp5_) { -#line 3808 "PicasaPublishing.c" - SpitPublishingPublishable* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = self->priv->publishable; -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = spit_publishing_publishable_get_publishing_name (_tmp6_); -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = _tmp7_; -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = publishing_rest_support_decimal_entity_encode (_tmp8_); -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = _tmp9_; -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11_ = g_strdup_printf ("%s", _tmp10_); -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (summary); -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - summary = _tmp11_; -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp10_); -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp8_); -#line 3835 "PicasaPublishing.c" - } -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = self->priv->publishable; -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = spit_publishing_publishable_get_publishing_keywords (_tmp12_, &_tmp13_); -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords = _tmp14_; -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords_length1 = _tmp13_; -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _keywords_size_ = keywords_length1; -#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = g_strdup (""); -#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords_string = _tmp15_; -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp16_ = keywords; -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp16__length1 = keywords_length1; -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp16__length1 > 0) { -#line 3857 "PicasaPublishing.c" - const gchar* _tmp46_; - gchar* _tmp47_; - const gchar* _tmp48_; - gchar* _tmp49_; - { - gint i = 0; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - i = 0; -#line 3866 "PicasaPublishing.c" - { - gboolean _tmp17_ = FALSE; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp17_ = TRUE; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - while (TRUE) { -#line 3873 "PicasaPublishing.c" - gint _tmp19_; - gchar** _tmp20_; - gint _tmp20__length1; - gchar** tmp = NULL; - gint tmp_length1 = 0; - gint _tmp_size_ = 0; - gchar** _tmp21_; - gint _tmp21__length1; - gint _tmp22_; - const gchar* _tmp23_; - const gchar* _tmp36_; - gint _tmp37_; - gint _tmp38_; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!_tmp17_) { -#line 3889 "PicasaPublishing.c" - gint _tmp18_; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp18_ = i; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - i = _tmp18_ + 1; -#line 3895 "PicasaPublishing.c" - } -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp17_ = FALSE; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp19_ = i; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp20_ = keywords; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp20__length1 = keywords_length1; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!(_tmp19_ < _tmp20__length1)) { -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - break; -#line 3909 "PicasaPublishing.c" - } -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp21_ = keywords; -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp21__length1 = keywords_length1; -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp22_ = i; -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp23_ = _tmp21_[_tmp22_]; -#line 450 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_str_has_prefix (_tmp23_, "/")) { -#line 3921 "PicasaPublishing.c" - gchar** _tmp24_; - gint _tmp24__length1; - gint _tmp25_; - const gchar* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - gchar** _tmp29_; - gchar** _tmp30_; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp24_ = keywords; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp24__length1 = keywords_length1; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp25_ = i; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp26_ = _tmp24_[_tmp25_]; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp27_ = string_substring (_tmp26_, (glong) 1, (glong) -1); -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp28_ = _tmp27_; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp30_ = _tmp29_ = g_strsplit (_tmp28_, "/", 0); -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - tmp = (_vala_array_free (tmp, tmp_length1, (GDestroyNotify) g_free), NULL); -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - tmp = _tmp30_; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - tmp_length1 = _vala_array_length (_tmp29_); -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp_size_ = tmp_length1; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp28_); -#line 3954 "PicasaPublishing.c" - } else { - gchar** _tmp31_; - gint _tmp31__length1; - gint _tmp32_; - const gchar* _tmp33_; - gchar** _tmp34_; - gchar** _tmp35_; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp31_ = keywords; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp31__length1 = keywords_length1; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp32_ = i; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp33_ = _tmp31_[_tmp32_]; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp35_ = _tmp34_ = g_strsplit (_tmp33_, "/", 0); -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - tmp = (_vala_array_free (tmp, tmp_length1, (GDestroyNotify) g_free), NULL); -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - tmp = _tmp35_; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - tmp_length1 = _vala_array_length (_tmp34_); -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp_size_ = tmp_length1; -#line 3980 "PicasaPublishing.c" - } -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp36_ = keywords_string; -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp37_ = strlen (_tmp36_); -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp38_ = _tmp37_; -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp38_ > 0) { -#line 3990 "PicasaPublishing.c" - const gchar* _tmp39_; - gchar** _tmp40_; - gint _tmp40__length1; - gchar* _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp39_ = keywords_string; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp40_ = tmp; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp40__length1 = tmp_length1; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp41_ = _vala_g_strjoinv (", ", _tmp40_, _tmp40__length1); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp42_ = _tmp41_; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp43_ = g_strjoin (", ", _tmp39_, _tmp42_, NULL); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords_string = _tmp43_; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp42_); -#line 4015 "PicasaPublishing.c" - } else { - gchar** _tmp44_; - gint _tmp44__length1; - gchar* _tmp45_; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp44_ = tmp; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp44__length1 = tmp_length1; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp45_ = _vala_g_strjoinv (", ", _tmp44_, _tmp44__length1); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords_string = _tmp45_; -#line 4030 "PicasaPublishing.c" - } -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - tmp = (_vala_array_free (tmp, tmp_length1, (GDestroyNotify) g_free), NULL); -#line 4034 "PicasaPublishing.c" - } - } - } -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp46_ = keywords_string; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp47_ = publishing_rest_support_decimal_entity_encode (_tmp46_); -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords_string = _tmp47_; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp48_ = keywords_string; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp49_ = g_strdup_printf ("%s", _tmp48_); -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords_string = _tmp49_; -#line 4054 "PicasaPublishing.c" - } -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp50_ = self->priv->publishable; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp51_ = spit_publishing_publishable_get_param_string (_tmp50_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp52_ = _tmp51_; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp53_ = publishing_rest_support_decimal_entity_encode (_tmp52_); -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp54_ = _tmp53_; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp55_ = summary; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp56_ = keywords_string; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp57_ = g_strdup_printf (PUBLISHING_PICASA_UPLOAD_TRANSACTION_METADATA_TEMPLATE, _tmp54_, _tmp55_, _tmp56_); -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp58_ = _tmp57_; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp54_); -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp52_); -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - metadata = _tmp58_; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp59_ = metadata; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp60_ = string_get_data (_tmp59_, &_tmp60__length1); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp61_ = _tmp60_; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp61__length1 = _tmp60__length1; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp62_ = soup_buffer_new (SOUP_MEMORY_COPY, _tmp61_, _tmp61__length1); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - metadata_buffer = _tmp62_; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp63_ = message_parts; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp64_ = metadata_buffer; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - soup_multipart_append_form_file (_tmp63_, "", "", "application/atom+xml", _tmp64_); -#line 4098 "PicasaPublishing.c" - { - GMappedFile* _tmp65_ = NULL; - SpitPublishingPublishable* _tmp66_; - GFile* _tmp67_; - GFile* _tmp68_; - gchar* _tmp69_; - gchar* _tmp70_; - GMappedFile* _tmp71_; - GMappedFile* _tmp72_; - GMappedFile* _tmp73_; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp66_ = self->priv->publishable; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp67_ = spit_publishing_publishable_get_serialized_file (_tmp66_); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp68_ = _tmp67_; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp69_ = g_file_get_path (_tmp68_); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp70_ = _tmp69_; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp71_ = g_mapped_file_new (_tmp70_, FALSE, &_inner_error_); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp72_ = _tmp71_; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp70_); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (_tmp68_); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp65_ = _tmp72_; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_inner_error_->domain == G_FILE_ERROR) { -#line 4133 "PicasaPublishing.c" - goto __catch11_g_file_error; - } -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (metadata_buffer); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (metadata); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (summary); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 4154 "PicasaPublishing.c" - } -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp73_ = _tmp65_; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp65_ = NULL; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_mapped_file_unref0 (self->priv->mapped_file); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->mapped_file = _tmp73_; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_mapped_file_unref0 (_tmp65_); -#line 4166 "PicasaPublishing.c" - } - goto __finally11; - __catch11_g_file_error: - { - GError* e = NULL; - gchar* msg = NULL; - SpitPublishingPublishable* _tmp74_; - GFile* _tmp75_; - GFile* _tmp76_; - gchar* _tmp77_; - gchar* _tmp78_; - GError* _tmp79_; - const gchar* _tmp80_; - gchar* _tmp81_; - gchar* _tmp82_; - const gchar* _tmp83_; - const gchar* _tmp84_; - GError* _tmp85_; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - e = _inner_error_; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _inner_error_ = NULL; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp74_ = self->priv->publishable; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp75_ = spit_publishing_publishable_get_serialized_file (_tmp74_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp76_ = _tmp75_; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp77_ = g_file_get_path (_tmp76_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp78_ = _tmp77_; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp79_ = e; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp80_ = _tmp79_->message; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp81_ = g_strdup_printf ("Picasa: couldn't read data from %s: %s", _tmp78_, _tmp80_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp82_ = _tmp81_; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp78_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (_tmp76_); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - msg = _tmp82_; -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp83_ = msg; -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_warning ("PicasaPublishing.vala:477: %s", _tmp83_); -#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp84_ = msg; -#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp85_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _tmp84_); -#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _inner_error_ = _tmp85_; -#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (msg); -#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_error_free0 (e); -#line 4227 "PicasaPublishing.c" - goto __finally11; - } - __finally11: -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (metadata_buffer); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (metadata); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (summary); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 4251 "PicasaPublishing.c" - } else { -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (metadata_buffer); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (metadata); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (summary); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 4271 "PicasaPublishing.c" - } - } -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp86_ = self->priv->mapped_file; -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp87_ = g_mapped_file_get_contents (_tmp86_); -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - photo_data = (guint8*) _tmp87_; -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - photo_data_length1 = sizeof (gchar) / sizeof (guint8); -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _photo_data_size_ = photo_data_length1; -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp88_ = self->priv->mapped_file; -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - photo_data_length1 = (gint) g_mapped_file_get_length (_tmp88_); -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp89_ = photo_data_length1; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp90_ = soup_buffer_new (SOUP_MEMORY_TEMPORARY, photo_data, photo_data_length1); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - bindable_data = _tmp90_; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp91_ = message_parts; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp92_ = self->priv->publishable; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp93_ = spit_publishing_publishable_get_serialized_file (_tmp92_); -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp94_ = _tmp93_; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp95_ = g_file_get_path (_tmp94_); -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp96_ = _tmp95_; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp97_ = self->priv->mime_type; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - soup_multipart_append_form_file (_tmp91_, "", _tmp96_, _tmp97_, bindable_data); -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp96_); -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (_tmp94_); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp98_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp99_ = _tmp98_; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp100_ = message_parts; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp101_ = soup_form_request_new_from_multipart (_tmp99_, _tmp100_); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp102_ = _tmp101_; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp99_); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - outbound_message = _tmp102_; -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp103_ = outbound_message->request_headers; -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp104_ = self->priv->session; -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp105_ = publishing_rest_support_google_session_get_access_token (_tmp104_); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp106_ = _tmp105_; -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp107_ = g_strconcat ("Bearer ", _tmp106_, NULL); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp108_ = _tmp107_; -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - soup_message_headers_append (_tmp103_, "Authorization", _tmp108_); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp108_); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp106_); -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_transaction_set_message (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), outbound_message); -#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_transaction_set_is_executed (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), TRUE); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_rest_support_transaction_send (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (outbound_message); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (bindable_data); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (metadata_buffer); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (metadata); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (summary); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 4376 "PicasaPublishing.c" - } else { -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (outbound_message); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (bindable_data); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (metadata_buffer); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (metadata); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (summary); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_clear_error (&_inner_error_); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return; -#line 4400 "PicasaPublishing.c" - } - } -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (outbound_message); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (bindable_data); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupBuffer_free0 (metadata_buffer); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (metadata); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (keywords_string); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (summary); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __vala_SoupMultipart_free0 (message_parts); -#line 4419 "PicasaPublishing.c" -} - - -static void -publishing_picasa_upload_transaction_class_init (PublishingPicasaUploadTransactionClass * klass) -{ -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_upload_transaction_parent_class = g_type_class_peek_parent (klass); -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_picasa_upload_transaction_finalize; -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPicasaUploadTransactionPrivate)); -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_picasa_upload_transaction_real_execute; -#line 4434 "PicasaPublishing.c" -} - - -static void -publishing_picasa_upload_transaction_instance_init (PublishingPicasaUploadTransaction * self) -{ -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv = PUBLISHING_PICASA_UPLOAD_TRANSACTION_GET_PRIVATE (self); -#line 4443 "PicasaPublishing.c" -} - - -static void -publishing_picasa_upload_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingPicasaUploadTransaction * self; -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_UPLOAD_TRANSACTION, PublishingPicasaUploadTransaction); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters); -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->mime_type); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->publishable); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_mapped_file_unref0 (self->priv->mapped_file); -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_picasa_upload_transaction_parent_class)->finalize (obj); -#line 4465 "PicasaPublishing.c" -} - - -GType -publishing_picasa_upload_transaction_get_type (void) -{ - static volatile gsize publishing_picasa_upload_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_picasa_upload_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaUploadTransaction), 0, (GInstanceInitFunc) publishing_picasa_upload_transaction_instance_init, NULL }; - GType publishing_picasa_upload_transaction_type_id; - publishing_picasa_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, "PublishingPicasaUploadTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_picasa_upload_transaction_type_id__volatile, publishing_picasa_upload_transaction_type_id); - } - return publishing_picasa_upload_transaction_type_id__volatile; -} - - -static gpointer -_publishing_picasa_publishing_options_pane_size_description_ref0 (gpointer self) -{ -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self ? publishing_picasa_publishing_options_pane_size_description_ref (self) : NULL; -#line 4488 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_on_logout_clicked ((PublishingPicasaPublishingOptionsPane*) self); -#line 4498 "PicasaPublishing.c" -} - - -static void -_publishing_picasa_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_on_publish_clicked ((PublishingPicasaPublishingOptionsPane*) self); -#line 4508 "PicasaPublishing.c" -} - - -PublishingPicasaPublishingOptionsPane* -publishing_picasa_publishing_options_pane_construct (GType object_type, - GtkBuilder* builder, - PublishingPicasaPublishingParameters* parameters, - gboolean can_logout) -{ - PublishingPicasaPublishingOptionsPane * self = NULL; - gint _tmp0_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp1_; - GtkBuilder* _tmp2_; - GSList* _tmp3_; - GSList* _tmp4_; - PublishingPicasaPublishingParameters* _tmp5_; - GObject* _tmp6_; - GtkBox* _tmp7_; - GObject* _tmp8_; - GtkLabel* _tmp9_; - GObject* _tmp10_; - GtkLabel* _tmp11_; - GObject* _tmp12_; - GtkComboBoxText* _tmp13_; - GObject* _tmp14_; - GtkCheckButton* _tmp15_; - GObject* _tmp16_; - GtkComboBoxText* _tmp17_; - GtkBuilder* _tmp18_; - GObject* _tmp19_; - GtkCheckButton* _tmp20_; - GObject* _tmp21_; - GtkButton* _tmp22_; - GObject* _tmp23_; - GtkButton* _tmp24_; - GtkLabel* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - GtkCheckButton* _tmp34_; - GtkButton* _tmp47_; - GtkButton* _tmp48_; -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PublishingPicasaPublishingOptionsPane*) g_object_new (object_type, NULL); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_picasa_publishing_options_pane_create_size_descriptions (self, &_tmp0_); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->size_descriptions = (_vala_array_free (self->priv->size_descriptions, self->priv->size_descriptions_length1, (GDestroyNotify) publishing_picasa_publishing_options_pane_size_description_unref), NULL); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->size_descriptions = _tmp1_; -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->size_descriptions_length1 = _tmp0_; -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->_size_descriptions_size_ = self->priv->size_descriptions_length1; -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = _g_object_ref0 (builder); -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->builder = _tmp2_; -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_assert (builder != NULL, "builder != null"); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = gtk_builder_get_objects (builder); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _tmp3_; -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_assert (g_slist_length (_tmp4_) > ((guint) 0), "builder.get_objects().length() > 0"); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_slist_free0 (_tmp4_); -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = _publishing_picasa_publishing_parameters_ref0 (parameters); -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters); -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->parameters = _tmp5_; -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = gtk_builder_get_object (builder, "picasa_pane_widget"); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_box_get_type (), GtkBox)); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->pane_widget = _tmp7_; -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = gtk_builder_get_object (builder, "login_identity_label"); -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_label_get_type (), GtkLabel)); -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->login_identity_label); -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->login_identity_label = _tmp9_; -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = gtk_builder_get_object (builder, "publish_to_label"); -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_label_get_type (), GtkLabel)); -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->publish_to_label); -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->publish_to_label = _tmp11_; -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = gtk_builder_get_object (builder, "existing_albums_combo"); -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->existing_albums_combo); -#line 548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->existing_albums_combo = _tmp13_; -#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = gtk_builder_get_object (builder, "public_check"); -#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_check_button_get_type (), GtkCheckButton)); -#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->public_check); -#line 549 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->public_check = _tmp15_; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp16_ = gtk_builder_get_object (builder, "size_combo"); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->size_combo); -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->size_combo = _tmp17_; -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp18_ = self->priv->builder; -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp19_ = gtk_builder_get_object (_tmp18_, "strip_metadata_check"); -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_check_button_get_type (), GtkCheckButton)); -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->strip_metadata_check = _tmp20_; -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp21_ = gtk_builder_get_object (builder, "publish_button"); -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_button_get_type (), GtkButton)); -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->publish_button = _tmp22_; -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp23_ = gtk_builder_get_object (builder, "logout_button"); -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_button_get_type (), GtkButton)); -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 553 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->logout_button = _tmp24_; -#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!can_logout) { -#line 4666 "PicasaPublishing.c" - GtkButton* _tmp25_; - GtkContainer* _tmp26_; - GtkContainer* _tmp27_; - GtkButton* _tmp28_; -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp25_ = self->priv->logout_button; -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp26_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget)); -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp27_ = _tmp26_; -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp28_ = self->priv->logout_button; -#line 556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_container_remove (_tmp27_, G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_widget_get_type (), GtkWidget)); -#line 4681 "PicasaPublishing.c" - } -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp29_ = self->priv->login_identity_label; -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp30_ = publishing_picasa_publishing_parameters_get_user_name (parameters); -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp31_ = _tmp30_; -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp32_ = g_strdup_printf (_ ("You are logged into Picasa Web Albums as %s."), _tmp31_); -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp33_ = _tmp32_; -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_label_set_label (_tmp29_, _tmp33_); -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp33_); -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (_tmp31_); -#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp34_ = self->priv->strip_metadata_check; -#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_toggle_button_get_type (), GtkToggleButton), publishing_picasa_publishing_parameters_get_strip_metadata (parameters)); -#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if ((publishing_picasa_publishing_parameters_get_media_type (parameters) & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) == 0) { -#line 4705 "PicasaPublishing.c" - GtkLabel* _tmp35_; - GtkComboBoxText* _tmp36_; - GtkComboBoxText* _tmp37_; -#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp35_ = self->priv->publish_to_label; -#line 566 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_label_set_label (_tmp35_, _ ("Videos will appear in:")); -#line 567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp36_ = self->priv->size_combo; -#line 567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp37_ = self->priv->size_combo; -#line 568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 4721 "PicasaPublishing.c" - } else { - GtkLabel* _tmp38_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp39_; - gint _tmp39__length1; - GtkComboBoxText* _tmp44_; - GtkComboBoxText* _tmp45_; - GtkComboBoxText* _tmp46_; -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp38_ = self->priv->publish_to_label; -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_label_set_label (_tmp38_, _ ("Photos will appear in:")); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp39_ = self->priv->size_descriptions; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp39__length1 = self->priv->size_descriptions_length1; -#line 4737 "PicasaPublishing.c" - { - PublishingPicasaPublishingOptionsPaneSizeDescription** desc_collection = NULL; - gint desc_collection_length1 = 0; - gint _desc_collection_size_ = 0; - gint desc_it = 0; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - desc_collection = _tmp39_; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - desc_collection_length1 = _tmp39__length1; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - for (desc_it = 0; desc_it < _tmp39__length1; desc_it = desc_it + 1) { -#line 4749 "PicasaPublishing.c" - PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp40_; - PublishingPicasaPublishingOptionsPaneSizeDescription* desc = NULL; -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp40_ = _publishing_picasa_publishing_options_pane_size_description_ref0 (desc_collection[desc_it]); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - desc = _tmp40_; -#line 4756 "PicasaPublishing.c" - { - GtkComboBoxText* _tmp41_; - PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp42_; - const gchar* _tmp43_; -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp41_ = self->priv->size_combo; -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp42_ = desc; -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp43_ = _tmp42_->name; -#line 573 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_combo_box_text_append_text (_tmp41_, _tmp43_); -#line 572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_options_pane_size_description_unref0 (desc); -#line 4771 "PicasaPublishing.c" - } - } - } -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp44_ = self->priv->size_combo; -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp45_ = self->priv->size_combo; -#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp46_ = self->priv->size_combo; -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_combo_box_get_type (), GtkComboBox), publishing_picasa_publishing_parameters_get_major_axis_size_selection_id (parameters)); -#line 4787 "PicasaPublishing.c" - } -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp47_ = self->priv->logout_button; -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_connect_object (_tmp47_, "clicked", (GCallback) _publishing_picasa_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0); -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp48_ = self->priv->publish_button; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_connect_object (_tmp48_, "clicked", (GCallback) _publishing_picasa_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 4799 "PicasaPublishing.c" -} - - -PublishingPicasaPublishingOptionsPane* -publishing_picasa_publishing_options_pane_new (GtkBuilder* builder, - PublishingPicasaPublishingParameters* parameters, - gboolean can_logout) -{ -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return publishing_picasa_publishing_options_pane_construct (PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, builder, parameters, can_logout); -#line 4810 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_on_publish_clicked (PublishingPicasaPublishingOptionsPane* self) -{ - gint _tmp0_ = 0; - GtkComboBoxText* _tmp1_; - gint size_combo_last_active = 0; - PublishingPicasaPublishingParameters* _tmp3_; - PublishingPicasaPublishingParameters* _tmp4_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp5_; - gint _tmp5__length1; - PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp6_; - gint _tmp7_; - PublishingPicasaPublishingParameters* _tmp8_; - GtkCheckButton* _tmp9_; - PublishingPicasaAlbum** albums = NULL; - PublishingPicasaPublishingParameters* _tmp10_; - gint _tmp11_; - PublishingPicasaAlbum** _tmp12_; - gint albums_length1; - gint _albums_size_; - PublishingPicasaPublishingParameters* _tmp13_; - GtkComboBoxText* _tmp14_; - PublishingPicasaAlbum* _tmp15_; - const gchar* _tmp16_; - PublishingPicasaPublishingParameters* _tmp17_; - GtkComboBoxText* _tmp18_; - PublishingPicasaAlbum* _tmp19_; - const gchar* _tmp20_; -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = self->priv->size_combo; -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox)) >= 0) { -#line 4848 "PicasaPublishing.c" - GtkComboBoxText* _tmp2_; -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = self->priv->size_combo; -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox)); -#line 4854 "PicasaPublishing.c" - } else { -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = 0; -#line 4858 "PicasaPublishing.c" - } -#line 589 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - size_combo_last_active = _tmp0_; -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = self->priv->parameters; -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_major_axis_size_selection_id (_tmp3_, size_combo_last_active); -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = self->priv->parameters; -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = self->priv->size_descriptions; -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5__length1 = self->priv->size_descriptions_length1; -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = _tmp5_[size_combo_last_active]; -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = _tmp6_->major_axis_pixels; -#line 592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_major_axis_size_pixels (_tmp4_, _tmp7_); -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = self->priv->parameters; -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = self->priv->strip_metadata_check; -#line 594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_strip_metadata (_tmp8_, gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = self->priv->parameters; -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = publishing_picasa_publishing_parameters_get_albums (_tmp10_, &_tmp11_); -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - albums = _tmp12_; -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - albums_length1 = _tmp11_; -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _albums_size_ = albums_length1; -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp13_ = self->priv->parameters; -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = self->priv->existing_albums_combo; -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = albums[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp16_ = _tmp15_->name; -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_target_album_name (_tmp13_, _tmp16_); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp17_ = self->priv->parameters; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp18_ = self->priv->existing_albums_combo; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp19_ = albums[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp20_ = _tmp19_->url; -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_set_target_album_entry_url (_tmp17_, _tmp20_); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_emit (self, publishing_picasa_publishing_options_pane_signals[PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0); -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - albums = (_vala_array_free (albums, albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL); -#line 4918 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_on_logout_clicked (PublishingPicasaPublishingOptionsPane* self) -{ -#line 603 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_emit (self, publishing_picasa_publishing_options_pane_signals[PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 4929 "PicasaPublishing.c" -} - - -static void -_vala_array_add15 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value) -{ -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if ((*length) == (*size)) { -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *array = g_renew (PublishingPicasaPublishingOptionsPaneSizeDescription*, *array, (*size) + 1); -#line 4945 "PicasaPublishing.c" - } -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[(*length)++] = value; -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[*length] = NULL; -#line 4951 "PicasaPublishing.c" -} - - -static void -_vala_array_add16 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value) -{ -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if ((*length) == (*size)) { -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *array = g_renew (PublishingPicasaPublishingOptionsPaneSizeDescription*, *array, (*size) + 1); -#line 4967 "PicasaPublishing.c" - } -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[(*length)++] = value; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[*length] = NULL; -#line 4973 "PicasaPublishing.c" -} - - -static void -_vala_array_add17 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value) -{ -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if ((*length) == (*size)) { -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *array = g_renew (PublishingPicasaPublishingOptionsPaneSizeDescription*, *array, (*size) + 1); -#line 4989 "PicasaPublishing.c" - } -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[(*length)++] = value; -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[*length] = NULL; -#line 4995 "PicasaPublishing.c" -} - - -static void -_vala_array_add18 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value) -{ -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if ((*length) == (*size)) { -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *array = g_renew (PublishingPicasaPublishingOptionsPaneSizeDescription*, *array, (*size) + 1); -#line 5011 "PicasaPublishing.c" - } -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[(*length)++] = value; -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[*length] = NULL; -#line 5017 "PicasaPublishing.c" -} - - -static void -_vala_array_add19 (PublishingPicasaPublishingOptionsPaneSizeDescription** * array, - int* length, - int* size, - PublishingPicasaPublishingOptionsPaneSizeDescription* value) -{ -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if ((*length) == (*size)) { -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *array = g_renew (PublishingPicasaPublishingOptionsPaneSizeDescription*, *array, (*size) + 1); -#line 5033 "PicasaPublishing.c" - } -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[(*length)++] = value; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - (*array)[*length] = NULL; -#line 5039 "PicasaPublishing.c" -} - - -static PublishingPicasaPublishingOptionsPaneSizeDescription** -publishing_picasa_publishing_options_pane_create_size_descriptions (PublishingPicasaPublishingOptionsPane* self, - int* result_length1) -{ - PublishingPicasaPublishingOptionsPaneSizeDescription** result = NULL; - PublishingPicasaPublishingOptionsPaneSizeDescription** _result_ = NULL; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp1_; - gint _tmp1__length1; - PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp2_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp3_; - gint _tmp3__length1; - PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp4_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp5_; - gint _tmp5__length1; - PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp6_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp7_; - gint _tmp7__length1; - PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp8_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp9_; - gint _tmp9__length1; - PublishingPicasaPublishingOptionsPaneSizeDescription* _tmp10_; - PublishingPicasaPublishingOptionsPaneSizeDescription** _tmp11_; - gint _tmp11__length1; -#line 607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_new0 (PublishingPicasaPublishingOptionsPaneSizeDescription*, 0 + 1); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _result_ = _tmp0_; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _result__length1 = 0; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - __result__size_ = _result__length1; -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = _result_; -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1__length1 = _result__length1; -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = publishing_picasa_publishing_options_pane_size_description_new (_ ("Small (640 × 480 pixels)"), 640); -#line 610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_array_add15 (&_result_, &_result__length1, &__result__size_, _tmp2_); -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = _result_; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3__length1 = _result__length1; -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = publishing_picasa_publishing_options_pane_size_description_new (_ ("Medium (1024 × 768 pixels)"), 1024); -#line 611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_array_add16 (&_result_, &_result__length1, &__result__size_, _tmp4_); -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = _result_; -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5__length1 = _result__length1; -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = publishing_picasa_publishing_options_pane_size_description_new (_ ("Recommended (1600 × 1200 pixels)"), 1600); -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_array_add17 (&_result_, &_result__length1, &__result__size_, _tmp6_); -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = _result_; -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7__length1 = _result__length1; -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = publishing_picasa_publishing_options_pane_size_description_new (_ ("Google+ (2048 × 1536 pixels)"), 2048); -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_array_add18 (&_result_, &_result__length1, &__result__size_, _tmp8_); -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = _result_; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9__length1 = _result__length1; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = publishing_picasa_publishing_options_pane_size_description_new (_ ("Original Size"), PUBLISHING_PICASA_PUBLISHING_PARAMETERS_ORIGINAL_SIZE); -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _vala_array_add19 (&_result_, &_result__length1, &__result__size_, _tmp10_); -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11_ = _result_; -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11__length1 = _result__length1; -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (result_length1) { -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *result_length1 = _tmp11__length1; -#line 5127 "PicasaPublishing.c" - } -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp11_; -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 5133 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_options_pane_installed (PublishingPicasaPublishingOptionsPane* self) -{ - gint default_album_id = 0; - gchar* last_album = NULL; - PublishingPicasaPublishingParameters* _tmp0_; - gchar* _tmp1_; - PublishingPicasaAlbum** albums = NULL; - PublishingPicasaPublishingParameters* _tmp2_; - gint _tmp3_; - PublishingPicasaAlbum** _tmp4_; - gint albums_length1; - gint _albums_size_; - gint _tmp32_; -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - default_album_id = -1; -#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->parameters; -#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = publishing_picasa_publishing_parameters_get_target_album_name (_tmp0_); -#line 621 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - last_album = _tmp1_; -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = self->priv->parameters; -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = publishing_picasa_publishing_parameters_get_albums (_tmp2_, &_tmp3_); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - albums = _tmp4_; -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - albums_length1 = _tmp3_; -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _albums_size_ = albums_length1; -#line 5171 "PicasaPublishing.c" - { - gint i = 0; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - i = 0; -#line 5176 "PicasaPublishing.c" - { - gboolean _tmp5_ = FALSE; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = TRUE; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - while (TRUE) { -#line 5183 "PicasaPublishing.c" - gint _tmp7_; - PublishingPicasaAlbum** _tmp8_; - gint _tmp8__length1; - GtkComboBoxText* _tmp9_; - PublishingPicasaAlbum** _tmp10_; - gint _tmp10__length1; - gint _tmp11_; - PublishingPicasaAlbum* _tmp12_; - const gchar* _tmp13_; - gboolean _tmp14_ = FALSE; - PublishingPicasaAlbum** _tmp15_; - gint _tmp15__length1; - gint _tmp16_; - PublishingPicasaAlbum* _tmp17_; - const gchar* _tmp18_; - const gchar* _tmp19_; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!_tmp5_) { -#line 5202 "PicasaPublishing.c" - gint _tmp6_; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = i; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - i = _tmp6_ + 1; -#line 5208 "PicasaPublishing.c" - } -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = FALSE; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp7_ = i; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8_ = albums; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp8__length1 = albums_length1; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!(_tmp7_ < _tmp8__length1)) { -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - break; -#line 5222 "PicasaPublishing.c" - } -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp9_ = self->priv->existing_albums_combo; -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10_ = albums; -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp10__length1 = albums_length1; -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp11_ = i; -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp12_ = _tmp10_[_tmp11_]; -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp13_ = _tmp12_->name; -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_combo_box_text_append_text (_tmp9_, _tmp13_); -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15_ = albums; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp15__length1 = albums_length1; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp16_ = i; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp17_ = _tmp15_[_tmp16_]; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp18_ = _tmp17_->name; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp19_ = last_album; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp18_, _tmp19_) == 0) { -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = TRUE; -#line 5254 "PicasaPublishing.c" - } else { - gboolean _tmp20_ = FALSE; - gboolean _tmp21_ = FALSE; - PublishingPicasaAlbum** _tmp22_; - gint _tmp22__length1; - gint _tmp23_; - PublishingPicasaAlbum* _tmp24_; - const gchar* _tmp25_; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp22_ = albums; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp22__length1 = albums_length1; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp23_ = i; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp24_ = _tmp22_[_tmp23_]; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp25_ = _tmp24_->name; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_strcmp0 (_tmp25_, PUBLISHING_PICASA_DEFAULT_ALBUM_NAME) == 0) { -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp21_ = TRUE; -#line 5277 "PicasaPublishing.c" - } else { - PublishingPicasaAlbum** _tmp26_; - gint _tmp26__length1; - gint _tmp27_; - PublishingPicasaAlbum* _tmp28_; - const gchar* _tmp29_; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp26_ = albums; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp26__length1 = albums_length1; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp27_ = i; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp28_ = _tmp26_[_tmp27_]; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp29_ = _tmp28_->name; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp21_ = g_strcmp0 (_tmp29_, _ ("Default album")) == 0; -#line 5296 "PicasaPublishing.c" - } -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp21_) { -#line 5300 "PicasaPublishing.c" - gint _tmp30_; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp30_ = default_album_id; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp20_ = _tmp30_ == -1; -#line 5306 "PicasaPublishing.c" - } else { -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp20_ = FALSE; -#line 5310 "PicasaPublishing.c" - } -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp14_ = _tmp20_; -#line 5314 "PicasaPublishing.c" - } -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp14_) { -#line 5318 "PicasaPublishing.c" - gint _tmp31_; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp31_ = i; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - default_album_id = _tmp31_; -#line 5324 "PicasaPublishing.c" - } - } - } - } -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp32_ = default_album_id; -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (_tmp32_ >= 0) { -#line 5333 "PicasaPublishing.c" - GtkComboBoxText* _tmp33_; - gint _tmp34_; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp33_ = self->priv->existing_albums_combo; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp34_ = default_album_id; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_combo_box_get_type (), GtkComboBox), _tmp34_); -#line 5342 "PicasaPublishing.c" - } -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - albums = (_vala_array_free (albums, albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL); -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (last_album); -#line 5348 "PicasaPublishing.c" -} - - -static GtkWidget* -publishing_picasa_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingPicasaPublishingOptionsPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->pane_widget; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp1_; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 5369 "PicasaPublishing.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_picasa_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingPicasaPublishingOptionsPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane); -#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 5384 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingPicasaPublishingOptionsPane * self; -#line 647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_installed (self); -#line 5396 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingPicasaPublishingOptionsPane * self; -#line 651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane); -#line 5406 "PicasaPublishing.c" -} - - -static PublishingPicasaPublishingOptionsPaneSizeDescription* -publishing_picasa_publishing_options_pane_size_description_construct (GType object_type, - const gchar* name, - gint major_axis_pixels) -{ - PublishingPicasaPublishingOptionsPaneSizeDescription* self = NULL; - gchar* _tmp0_; -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PublishingPicasaPublishingOptionsPaneSizeDescription*) g_type_create_instance (object_type); -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_strdup (name); -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->name); -#line 511 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->name = _tmp0_; -#line 512 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->major_axis_pixels = major_axis_pixels; -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 5431 "PicasaPublishing.c" -} - - -static PublishingPicasaPublishingOptionsPaneSizeDescription* -publishing_picasa_publishing_options_pane_size_description_new (const gchar* name, - gint major_axis_pixels) -{ -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return publishing_picasa_publishing_options_pane_size_description_construct (PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION, name, major_axis_pixels); -#line 5441 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_value_size_description_init (GValue* value) -{ -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5450 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_value_size_description_free_value (GValue* value) -{ -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (value->data[0].v_pointer) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_size_description_unref (value->data[0].v_pointer); -#line 5461 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_publishing_options_pane_value_size_description_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - dest_value->data[0].v_pointer = publishing_picasa_publishing_options_pane_size_description_ref (src_value->data[0].v_pointer); -#line 5474 "PicasaPublishing.c" - } else { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 5478 "PicasaPublishing.c" - } -} - - -static gpointer -publishing_picasa_publishing_options_pane_value_size_description_peek_pointer (const GValue* value) -{ -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return value->data[0].v_pointer; -#line 5488 "PicasaPublishing.c" -} - - -static gchar* -publishing_picasa_publishing_options_pane_value_size_description_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (collect_values[0].v_pointer) { -#line 5500 "PicasaPublishing.c" - PublishingPicasaPublishingOptionsPaneSizeDescription * object; - object = collect_values[0].v_pointer; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5507 "PicasaPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5511 "PicasaPublishing.c" - } -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = publishing_picasa_publishing_options_pane_size_description_ref (object); -#line 5515 "PicasaPublishing.c" - } else { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5519 "PicasaPublishing.c" - } -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 5523 "PicasaPublishing.c" -} - - -static gchar* -publishing_picasa_publishing_options_pane_value_size_description_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingPicasaPublishingOptionsPaneSizeDescription ** object_p; - object_p = collect_values[0].v_pointer; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!object_p) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 5539 "PicasaPublishing.c" - } -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!value->data[0].v_pointer) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = NULL; -#line 5545 "PicasaPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 5549 "PicasaPublishing.c" - } else { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = publishing_picasa_publishing_options_pane_size_description_ref (value->data[0].v_pointer); -#line 5553 "PicasaPublishing.c" - } -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 5557 "PicasaPublishing.c" -} - - -static GParamSpec* -publishing_picasa_publishing_options_pane_param_spec_size_description (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingPicasaPublishingOptionsPaneParamSpecSizeDescription* spec; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION), NULL); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return G_PARAM_SPEC (spec); -#line 5577 "PicasaPublishing.c" -} - - -static gpointer -publishing_picasa_publishing_options_pane_value_get_size_description (const GValue* value) -{ -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION), NULL); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return value->data[0].v_pointer; -#line 5588 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_value_set_size_description (GValue* value, - gpointer v_object) -{ - PublishingPicasaPublishingOptionsPaneSizeDescription * old; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION)); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - old = value->data[0].v_pointer; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (v_object) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION)); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = v_object; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_size_description_ref (value->data[0].v_pointer); -#line 5611 "PicasaPublishing.c" - } else { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5615 "PicasaPublishing.c" - } -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (old) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_size_description_unref (old); -#line 5621 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_publishing_options_pane_value_take_size_description (GValue* value, - gpointer v_object) -{ - PublishingPicasaPublishingOptionsPaneSizeDescription * old; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION)); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - old = value->data[0].v_pointer; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (v_object) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION)); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = v_object; -#line 5643 "PicasaPublishing.c" - } else { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 5647 "PicasaPublishing.c" - } -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (old) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_size_description_unref (old); -#line 5653 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_publishing_options_pane_size_description_class_init (PublishingPicasaPublishingOptionsPaneSizeDescriptionClass * klass) -{ -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_size_description_parent_class = g_type_class_peek_parent (klass); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingPicasaPublishingOptionsPaneSizeDescriptionClass *) klass)->finalize = publishing_picasa_publishing_options_pane_size_description_finalize; -#line 5665 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_size_description_instance_init (PublishingPicasaPublishingOptionsPaneSizeDescription * self) -{ -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->ref_count = 1; -#line 5674 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_size_description_finalize (PublishingPicasaPublishingOptionsPaneSizeDescription * obj) -{ - PublishingPicasaPublishingOptionsPaneSizeDescription * self; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_TYPE_SIZE_DESCRIPTION, PublishingPicasaPublishingOptionsPaneSizeDescription); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_destroy (self); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->name); -#line 5688 "PicasaPublishing.c" -} - - -static GType -publishing_picasa_publishing_options_pane_size_description_get_type (void) -{ - static volatile gsize publishing_picasa_publishing_options_pane_size_description_type_id__volatile = 0; - if (g_once_init_enter (&publishing_picasa_publishing_options_pane_size_description_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_picasa_publishing_options_pane_value_size_description_init, publishing_picasa_publishing_options_pane_value_size_description_free_value, publishing_picasa_publishing_options_pane_value_size_description_copy_value, publishing_picasa_publishing_options_pane_value_size_description_peek_pointer, "p", publishing_picasa_publishing_options_pane_value_size_description_collect_value, "p", publishing_picasa_publishing_options_pane_value_size_description_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaPublishingOptionsPaneSizeDescriptionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_publishing_options_pane_size_description_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaPublishingOptionsPaneSizeDescription), 0, (GInstanceInitFunc) publishing_picasa_publishing_options_pane_size_description_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_picasa_publishing_options_pane_size_description_type_id; - publishing_picasa_publishing_options_pane_size_description_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPicasaPublishingOptionsPaneSizeDescription", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_picasa_publishing_options_pane_size_description_type_id__volatile, publishing_picasa_publishing_options_pane_size_description_type_id); - } - return publishing_picasa_publishing_options_pane_size_description_type_id__volatile; -} - - -static gpointer -publishing_picasa_publishing_options_pane_size_description_ref (gpointer instance) -{ - PublishingPicasaPublishingOptionsPaneSizeDescription * self; - self = instance; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return instance; -#line 5717 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_size_description_unref (gpointer instance) -{ - PublishingPicasaPublishingOptionsPaneSizeDescription * self; - self = instance; -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_SIZE_DESCRIPTION_GET_CLASS (self)->finalize (self); -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 5732 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_publishing_options_pane_class_init (PublishingPicasaPublishingOptionsPaneClass * klass) -{ -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPicasaPublishingOptionsPanePrivate)); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_picasa_publishing_options_pane_finalize; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_signals[PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = g_signal_new ("publish", PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_signals[PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = g_signal_new ("logout", PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 5750 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_picasa_publishing_options_pane_real_get_widget; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_picasa_publishing_options_pane_real_get_preferred_geometry; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_picasa_publishing_options_pane_real_on_pane_installed; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_picasa_publishing_options_pane_real_on_pane_uninstalled; -#line 5767 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_instance_init (PublishingPicasaPublishingOptionsPane * self) -{ -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv = PUBLISHING_PICASA_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->builder = NULL; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->pane_widget = NULL; -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->login_identity_label = NULL; -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->publish_to_label = NULL; -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->existing_albums_combo = NULL; -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->public_check = NULL; -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->size_combo = NULL; -#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->strip_metadata_check = NULL; -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->publish_button = NULL; -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->logout_button = NULL; -#line 5796 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_options_pane_finalize (GObject * obj) -{ - PublishingPicasaPublishingOptionsPane * self; -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPicasaPublishingOptionsPane); -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->login_identity_label); -#line 522 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->publish_to_label); -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->existing_albums_combo); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->public_check); -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->size_combo); -#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->size_descriptions = (_vala_array_free (self->priv->size_descriptions, self->priv->size_descriptions_length1, (GDestroyNotify) publishing_picasa_publishing_options_pane_size_description_unref), NULL); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters); -#line 505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_OBJECT_CLASS (publishing_picasa_publishing_options_pane_parent_class)->finalize (obj); -#line 5832 "PicasaPublishing.c" -} - - -GType -publishing_picasa_publishing_options_pane_get_type (void) -{ - static volatile gsize publishing_picasa_publishing_options_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_picasa_publishing_options_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaPublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaPublishingOptionsPane), 0, (GInstanceInitFunc) publishing_picasa_publishing_options_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_picasa_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_picasa_publishing_options_pane_type_id; - publishing_picasa_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingPicasaPublishingOptionsPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_picasa_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_picasa_publishing_options_pane_type_id__volatile, publishing_picasa_publishing_options_pane_type_id); - } - return publishing_picasa_publishing_options_pane_type_id__volatile; -} - - -PublishingPicasaPublishingParameters* -publishing_picasa_publishing_parameters_construct (GType object_type) -{ - PublishingPicasaPublishingParameters* self = NULL; - gchar* _tmp0_; -#line 668 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PublishingPicasaPublishingParameters*) g_type_create_instance (object_type); -#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_strdup ("[unknown]"); -#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->user_name); -#line 669 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->user_name = _tmp0_; -#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->target_album_name); -#line 670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->target_album_name = NULL; -#line 671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->major_axis_size_selection_id = 0; -#line 672 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->major_axis_size_pixels = PUBLISHING_PICASA_PUBLISHING_PARAMETERS_ORIGINAL_SIZE; -#line 673 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->target_album_url); -#line 673 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->target_album_url = NULL; -#line 674 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->album_public = FALSE; -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL); -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->albums = NULL; -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->albums_length1 = 0; -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->strip_metadata = FALSE; -#line 677 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->media_type = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO; -#line 668 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 5893 "PicasaPublishing.c" -} - - -PublishingPicasaPublishingParameters* -publishing_picasa_publishing_parameters_new (void) -{ -#line 668 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return publishing_picasa_publishing_parameters_construct (PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS); -#line 5902 "PicasaPublishing.c" -} - - -gchar* -publishing_picasa_publishing_parameters_get_target_album_name (PublishingPicasaPublishingParameters* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->target_album_name; -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp1_; -#line 681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 5922 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_set_target_album_name (PublishingPicasaPublishingParameters* self, - const gchar* target_album_name) -{ - gchar* _tmp0_; -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self)); -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (target_album_name != NULL); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_strdup (target_album_name); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->target_album_name); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->target_album_name = _tmp0_; -#line 5941 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_set_target_album_entry_url (PublishingPicasaPublishingParameters* self, - const gchar* target_album_url) -{ - gchar* _tmp0_; -#line 688 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self)); -#line 688 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (target_album_url != NULL); -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_strdup (target_album_url); -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->target_album_url); -#line 689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->target_album_url = _tmp0_; -#line 5960 "PicasaPublishing.c" -} - - -gchar* -publishing_picasa_publishing_parameters_get_target_album_entry_url (PublishingPicasaPublishingParameters* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->target_album_url; -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp1_; -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 5980 "PicasaPublishing.c" -} - - -static gchar* -string_replace (const gchar* self, - const gchar* old, - const gchar* replacement) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 6003 "PicasaPublishing.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 6007 "PicasaPublishing.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 6013 "PicasaPublishing.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 6017 "PicasaPublishing.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 6021 "PicasaPublishing.c" - gchar* _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = g_strdup (self); -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 6029 "PicasaPublishing.c" - } - { - GRegex* regex = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GRegex* _tmp5_; - GRegex* _tmp6_; - gchar* _tmp7_ = NULL; - GRegex* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_regex_escape_string (old, -1); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp5_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp4_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - regex = _tmp6_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 6057 "PicasaPublishing.c" - goto __catch12_g_regex_error; - } -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 6066 "PicasaPublishing.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = regex; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp9_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 6080 "PicasaPublishing.c" - goto __catch12_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 6091 "PicasaPublishing.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = _tmp7_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = NULL; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp10_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp7_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 6105 "PicasaPublishing.c" - } - goto __finally12; - __catch12_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 6119 "PicasaPublishing.c" - } - __finally12: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 6130 "PicasaPublishing.c" - } -} - - -gchar* -publishing_picasa_publishing_parameters_get_target_album_feed_url (PublishingPicasaPublishingParameters* self) -{ - gchar* result = NULL; - gchar* entry_url = NULL; - gchar* _tmp0_; - gchar* feed_url = NULL; - gchar* _tmp1_; -#line 696 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_picasa_publishing_parameters_get_target_album_entry_url (self); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - entry_url = _tmp0_; -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = string_replace (entry_url, "entry", "feed"); -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - feed_url = _tmp1_; -#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = feed_url; -#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (entry_url); -#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6159 "PicasaPublishing.c" -} - - -gchar* -publishing_picasa_publishing_parameters_get_user_name (PublishingPicasaPublishingParameters* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 703 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->user_name; -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp1_; -#line 704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6179 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_set_user_name (PublishingPicasaPublishingParameters* self, - const gchar* user_name) -{ - gchar* _tmp0_; -#line 707 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self)); -#line 707 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (user_name != NULL); -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = g_strdup (user_name); -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->user_name); -#line 708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->user_name = _tmp0_; -#line 6198 "PicasaPublishing.c" -} - - -static gpointer -_publishing_picasa_album_ref0 (gpointer self) -{ -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self ? publishing_picasa_album_ref (self) : NULL; -#line 6207 "PicasaPublishing.c" -} - - -static PublishingPicasaAlbum** -_vala_array_dup5 (PublishingPicasaAlbum** self, - int length) -{ - PublishingPicasaAlbum** result; - int i; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = g_new0 (PublishingPicasaAlbum*, length + 1); -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - for (i = 0; i < length; i++) { -#line 6221 "PicasaPublishing.c" - PublishingPicasaAlbum* _tmp0_; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = _publishing_picasa_album_ref0 (self[i]); -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result[i] = _tmp0_; -#line 6227 "PicasaPublishing.c" - } -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6231 "PicasaPublishing.c" -} - - -PublishingPicasaAlbum** -publishing_picasa_publishing_parameters_get_albums (PublishingPicasaPublishingParameters* self, - int* result_length1) -{ - PublishingPicasaAlbum** result = NULL; - PublishingPicasaAlbum** _tmp0_; - gint _tmp0__length1; - PublishingPicasaAlbum** _tmp1_; - gint _tmp1__length1; - PublishingPicasaAlbum** _tmp2_; - gint _tmp2__length1; -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->albums; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0__length1 = self->priv->albums_length1; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup5 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_); -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1__length1 = _tmp0__length1; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = _tmp1_; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2__length1 = _tmp1__length1; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (result_length1) { -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *result_length1 = _tmp2__length1; -#line 6264 "PicasaPublishing.c" - } -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp2_; -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6270 "PicasaPublishing.c" -} - - -static PublishingPicasaAlbum** -_vala_array_dup6 (PublishingPicasaAlbum** self, - int length) -{ - PublishingPicasaAlbum** result; - int i; -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = g_new0 (PublishingPicasaAlbum*, length + 1); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - for (i = 0; i < length; i++) { -#line 6284 "PicasaPublishing.c" - PublishingPicasaAlbum* _tmp0_; -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = _publishing_picasa_album_ref0 (self[i]); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result[i] = _tmp0_; -#line 6290 "PicasaPublishing.c" - } -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6294 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_set_albums (PublishingPicasaPublishingParameters* self, - PublishingPicasaAlbum** albums, - int albums_length1) -{ - PublishingPicasaAlbum** _tmp0_; - gint _tmp0__length1; -#line 715 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self)); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = (albums != NULL) ? _vala_array_dup6 (albums, albums_length1) : ((gpointer) albums); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0__length1 = albums_length1; -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->albums = _tmp0_; -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->albums_length1 = _tmp0__length1; -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->_albums_size_ = self->priv->albums_length1; -#line 6319 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_set_major_axis_size_pixels (PublishingPicasaPublishingParameters* self, - gint pixels) -{ -#line 719 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self)); -#line 720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->major_axis_size_pixels = pixels; -#line 6331 "PicasaPublishing.c" -} - - -gint -publishing_picasa_publishing_parameters_get_major_axis_size_pixels (PublishingPicasaPublishingParameters* self) -{ - gint result = 0; - gint _tmp0_; -#line 723 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), 0); -#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->major_axis_size_pixels; -#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp0_; -#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6348 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_set_major_axis_size_selection_id (PublishingPicasaPublishingParameters* self, - gint selection_id) -{ -#line 727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self)); -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->major_axis_size_selection_id = selection_id; -#line 6360 "PicasaPublishing.c" -} - - -gint -publishing_picasa_publishing_parameters_get_major_axis_size_selection_id (PublishingPicasaPublishingParameters* self) -{ - gint result = 0; - gint _tmp0_; -#line 731 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), 0); -#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->major_axis_size_selection_id; -#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp0_; -#line 732 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6377 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_set_strip_metadata (PublishingPicasaPublishingParameters* self, - gboolean strip_metadata) -{ -#line 735 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self)); -#line 736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->strip_metadata = strip_metadata; -#line 6389 "PicasaPublishing.c" -} - - -gboolean -publishing_picasa_publishing_parameters_get_strip_metadata (PublishingPicasaPublishingParameters* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 739 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), FALSE); -#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->strip_metadata; -#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp0_; -#line 740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6406 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_set_media_type (PublishingPicasaPublishingParameters* self, - SpitPublishingPublisherMediaType media_type) -{ -#line 743 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self)); -#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->media_type = media_type; -#line 6418 "PicasaPublishing.c" -} - - -SpitPublishingPublisherMediaType -publishing_picasa_publishing_parameters_get_media_type (PublishingPicasaPublishingParameters* self) -{ - SpitPublishingPublisherMediaType result = 0; - SpitPublishingPublisherMediaType _tmp0_; -#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (self), 0); -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = self->priv->media_type; -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp0_; -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6435 "PicasaPublishing.c" -} - - -static void -publishing_picasa_value_publishing_parameters_init (GValue* value) -{ -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6444 "PicasaPublishing.c" -} - - -static void -publishing_picasa_value_publishing_parameters_free_value (GValue* value) -{ -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (value->data[0].v_pointer) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_unref (value->data[0].v_pointer); -#line 6455 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_value_publishing_parameters_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - dest_value->data[0].v_pointer = publishing_picasa_publishing_parameters_ref (src_value->data[0].v_pointer); -#line 6468 "PicasaPublishing.c" - } else { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 6472 "PicasaPublishing.c" - } -} - - -static gpointer -publishing_picasa_value_publishing_parameters_peek_pointer (const GValue* value) -{ -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return value->data[0].v_pointer; -#line 6482 "PicasaPublishing.c" -} - - -static gchar* -publishing_picasa_value_publishing_parameters_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (collect_values[0].v_pointer) { -#line 6494 "PicasaPublishing.c" - PublishingPicasaPublishingParameters * object; - object = collect_values[0].v_pointer; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6501 "PicasaPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6505 "PicasaPublishing.c" - } -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = publishing_picasa_publishing_parameters_ref (object); -#line 6509 "PicasaPublishing.c" - } else { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6513 "PicasaPublishing.c" - } -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 6517 "PicasaPublishing.c" -} - - -static gchar* -publishing_picasa_value_publishing_parameters_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingPicasaPublishingParameters ** object_p; - object_p = collect_values[0].v_pointer; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!object_p) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 6533 "PicasaPublishing.c" - } -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (!value->data[0].v_pointer) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = NULL; -#line 6539 "PicasaPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 6543 "PicasaPublishing.c" - } else { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - *object_p = publishing_picasa_publishing_parameters_ref (value->data[0].v_pointer); -#line 6547 "PicasaPublishing.c" - } -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return NULL; -#line 6551 "PicasaPublishing.c" -} - - -GParamSpec* -publishing_picasa_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingPicasaParamSpecPublishingParameters* spec; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return G_PARAM_SPEC (spec); -#line 6571 "PicasaPublishing.c" -} - - -gpointer -publishing_picasa_value_get_publishing_parameters (const GValue* value) -{ -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return value->data[0].v_pointer; -#line 6582 "PicasaPublishing.c" -} - - -void -publishing_picasa_value_set_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingPicasaPublishingParameters * old; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS)); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - old = value->data[0].v_pointer; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (v_object) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS)); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = v_object; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_ref (value->data[0].v_pointer); -#line 6605 "PicasaPublishing.c" - } else { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6609 "PicasaPublishing.c" - } -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (old) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_unref (old); -#line 6615 "PicasaPublishing.c" - } -} - - -void -publishing_picasa_value_take_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingPicasaPublishingParameters * old; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS)); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - old = value->data[0].v_pointer; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (v_object) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS)); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = v_object; -#line 6637 "PicasaPublishing.c" - } else { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - value->data[0].v_pointer = NULL; -#line 6641 "PicasaPublishing.c" - } -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (old) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_unref (old); -#line 6647 "PicasaPublishing.c" - } -} - - -static void -publishing_picasa_publishing_parameters_class_init (PublishingPicasaPublishingParametersClass * klass) -{ -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_publishing_parameters_parent_class = g_type_class_peek_parent (klass); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingPicasaPublishingParametersClass *) klass)->finalize = publishing_picasa_publishing_parameters_finalize; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPicasaPublishingParametersPrivate)); -#line 6661 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_parameters_instance_init (PublishingPicasaPublishingParameters * self) -{ -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv = PUBLISHING_PICASA_PUBLISHING_PARAMETERS_GET_PRIVATE (self); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->ref_count = 1; -#line 6672 "PicasaPublishing.c" -} - - -static void -publishing_picasa_publishing_parameters_finalize (PublishingPicasaPublishingParameters * obj) -{ - PublishingPicasaPublishingParameters * self; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_PUBLISHING_PARAMETERS, PublishingPicasaPublishingParameters); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_signal_handlers_destroy (self); -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->target_album_name); -#line 659 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->target_album_url); -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_free0 (self->priv->user_name); -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->albums = (_vala_array_free (self->priv->albums, self->priv->albums_length1, (GDestroyNotify) publishing_picasa_album_unref), NULL); -#line 6692 "PicasaPublishing.c" -} - - -GType -publishing_picasa_publishing_parameters_get_type (void) -{ - static volatile gsize publishing_picasa_publishing_parameters_type_id__volatile = 0; - if (g_once_init_enter (&publishing_picasa_publishing_parameters_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_picasa_value_publishing_parameters_init, publishing_picasa_value_publishing_parameters_free_value, publishing_picasa_value_publishing_parameters_copy_value, publishing_picasa_value_publishing_parameters_peek_pointer, "p", publishing_picasa_value_publishing_parameters_collect_value, "p", publishing_picasa_value_publishing_parameters_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaPublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaPublishingParameters), 0, (GInstanceInitFunc) publishing_picasa_publishing_parameters_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_picasa_publishing_parameters_type_id; - publishing_picasa_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPicasaPublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_picasa_publishing_parameters_type_id__volatile, publishing_picasa_publishing_parameters_type_id); - } - return publishing_picasa_publishing_parameters_type_id__volatile; -} - - -gpointer -publishing_picasa_publishing_parameters_ref (gpointer instance) -{ - PublishingPicasaPublishingParameters * self; - self = instance; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return instance; -#line 6721 "PicasaPublishing.c" -} - - -void -publishing_picasa_publishing_parameters_unref (gpointer instance) -{ - PublishingPicasaPublishingParameters * self; - self = instance; -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - PUBLISHING_PICASA_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 6736 "PicasaPublishing.c" - } -} - - -PublishingPicasaUploader* -publishing_picasa_uploader_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingPicasaPublishingParameters* parameters) -{ - PublishingPicasaUploader* self = NULL; - PublishingPicasaPublishingParameters* _tmp0_; -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL); -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (PUBLISHING_PICASA_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 757 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = (PublishingPicasaUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishables, publishables_length1); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = _publishing_picasa_publishing_parameters_ref0 (parameters); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters); -#line 759 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv->parameters = _tmp0_; -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return self; -#line 6764 "PicasaPublishing.c" -} - - -PublishingPicasaUploader* -publishing_picasa_uploader_new (PublishingRESTSupportGoogleSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingPicasaPublishingParameters* parameters) -{ -#line 755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return publishing_picasa_uploader_construct (PUBLISHING_PICASA_TYPE_UPLOADER, session, publishables, publishables_length1, parameters); -#line 6776 "PicasaPublishing.c" -} - - -static PublishingRESTSupportTransaction* -publishing_picasa_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable) -{ - PublishingPicasaUploader * self; - PublishingRESTSupportTransaction* result = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingRESTSupportGoogleSession* _tmp1_; - PublishingPicasaPublishingParameters* _tmp2_; - SpitPublishingPublishable* _tmp3_; - SpitPublishingPublishable* _tmp4_; - PublishingPicasaUploadTransaction* _tmp5_; - PublishingRESTSupportTransaction* _tmp6_; -#line 762 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploader); -#line 762 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp0_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSession); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp2_ = self->priv->parameters; -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp3_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp4_ = _tmp3_; -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp5_ = publishing_picasa_upload_transaction_new (_tmp1_, _tmp2_, _tmp4_); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _g_object_unref0 (_tmp4_); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - result = _tmp6_; -#line 764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - return result; -#line 6819 "PicasaPublishing.c" -} - - -static void -publishing_picasa_uploader_class_init (PublishingPicasaUploaderClass * klass) -{ -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - publishing_picasa_uploader_parent_class = g_type_class_peek_parent (klass); -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_picasa_uploader_finalize; -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPicasaUploaderPrivate)); -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_picasa_uploader_real_create_transaction; -#line 6834 "PicasaPublishing.c" -} - - -static void -publishing_picasa_uploader_instance_init (PublishingPicasaUploader * self) -{ -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self->priv = PUBLISHING_PICASA_UPLOADER_GET_PRIVATE (self); -#line 6843 "PicasaPublishing.c" -} - - -static void -publishing_picasa_uploader_finalize (PublishingRESTSupportBatchUploader * obj) -{ - PublishingPicasaUploader * self; -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PICASA_TYPE_UPLOADER, PublishingPicasaUploader); -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - _publishing_picasa_publishing_parameters_unref0 (self->priv->parameters); -#line 752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PicasaPublishing.vala" - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_picasa_uploader_parent_class)->finalize (obj); -#line 6857 "PicasaPublishing.c" -} - - -GType -publishing_picasa_uploader_get_type (void) -{ - static volatile gsize publishing_picasa_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_picasa_uploader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPicasaUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_picasa_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPicasaUploader), 0, (GInstanceInitFunc) publishing_picasa_uploader_instance_init, NULL }; - GType publishing_picasa_uploader_type_id; - publishing_picasa_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingPicasaUploader", &g_define_type_info, 0); - g_once_init_leave (&publishing_picasa_uploader_type_id__volatile, publishing_picasa_uploader_type_id); - } - return publishing_picasa_uploader_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/plugins/shotwell-publishing/PiwigoPublishing.c b/plugins/shotwell-publishing/PiwigoPublishing.c deleted file mode 100644 index e066269..0000000 --- a/plugins/shotwell-publishing/PiwigoPublishing.c +++ /dev/null @@ -1,13709 +0,0 @@ -/* PiwigoPublishing.c generated by valac 0.40.4, the Vala compiler - * generated from PiwigoPublishing.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PIWIGO_SERVICE (piwigo_service_get_type ()) -#define PIWIGO_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIWIGO_SERVICE, PiwigoService)) -#define PIWIGO_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIWIGO_SERVICE, PiwigoServiceClass)) -#define IS_PIWIGO_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIWIGO_SERVICE)) -#define IS_PIWIGO_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIWIGO_SERVICE)) -#define PIWIGO_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIWIGO_SERVICE, PiwigoServiceClass)) - -typedef struct _PiwigoService PiwigoService; -typedef struct _PiwigoServiceClass PiwigoServiceClass; -typedef struct _PiwigoServicePrivate PiwigoServicePrivate; -enum { - PIWIGO_SERVICE_0_PROPERTY, - PIWIGO_SERVICE_NUM_PROPERTIES -}; -static GParamSpec* piwigo_service_properties[PIWIGO_SERVICE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER (publishing_piwigo_piwigo_publisher_get_type ()) -#define PUBLISHING_PIWIGO_PIWIGO_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher)) -#define PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisherClass)) -#define PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER)) -#define PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER)) -#define PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisherClass)) - -typedef struct _PublishingPiwigoPiwigoPublisher PublishingPiwigoPiwigoPublisher; -typedef struct _PublishingPiwigoPiwigoPublisherClass PublishingPiwigoPiwigoPublisherClass; - -#define PUBLISHING_PIWIGO_TYPE_CATEGORY (publishing_piwigo_category_get_type ()) -#define PUBLISHING_PIWIGO_CATEGORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORY, PublishingPiwigoCategory)) -#define PUBLISHING_PIWIGO_CATEGORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORY, PublishingPiwigoCategoryClass)) -#define PUBLISHING_PIWIGO_IS_CATEGORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORY)) -#define PUBLISHING_PIWIGO_IS_CATEGORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORY)) -#define PUBLISHING_PIWIGO_CATEGORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORY, PublishingPiwigoCategoryClass)) - -typedef struct _PublishingPiwigoCategory PublishingPiwigoCategory; -typedef struct _PublishingPiwigoCategoryClass PublishingPiwigoCategoryClass; -typedef struct _PublishingPiwigoCategoryPrivate PublishingPiwigoCategoryPrivate; -typedef struct _PublishingPiwigoParamSpecCategory PublishingPiwigoParamSpecCategory; - -#define PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL (publishing_piwigo_permission_level_get_type ()) -#define PUBLISHING_PIWIGO_PERMISSION_LEVEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL, PublishingPiwigoPermissionLevel)) -#define PUBLISHING_PIWIGO_PERMISSION_LEVEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL, PublishingPiwigoPermissionLevelClass)) -#define PUBLISHING_PIWIGO_IS_PERMISSION_LEVEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL)) -#define PUBLISHING_PIWIGO_IS_PERMISSION_LEVEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL)) -#define PUBLISHING_PIWIGO_PERMISSION_LEVEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL, PublishingPiwigoPermissionLevelClass)) - -typedef struct _PublishingPiwigoPermissionLevel PublishingPiwigoPermissionLevel; -typedef struct _PublishingPiwigoPermissionLevelClass PublishingPiwigoPermissionLevelClass; -typedef struct _PublishingPiwigoPermissionLevelPrivate PublishingPiwigoPermissionLevelPrivate; -typedef struct _PublishingPiwigoParamSpecPermissionLevel PublishingPiwigoParamSpecPermissionLevel; - -#define PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY (publishing_piwigo_size_entry_get_type ()) -#define PUBLISHING_PIWIGO_SIZE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY, PublishingPiwigoSizeEntry)) -#define PUBLISHING_PIWIGO_SIZE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY, PublishingPiwigoSizeEntryClass)) -#define PUBLISHING_PIWIGO_IS_SIZE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY)) -#define PUBLISHING_PIWIGO_IS_SIZE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY)) -#define PUBLISHING_PIWIGO_SIZE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY, PublishingPiwigoSizeEntryClass)) - -typedef struct _PublishingPiwigoSizeEntry PublishingPiwigoSizeEntry; -typedef struct _PublishingPiwigoSizeEntryClass PublishingPiwigoSizeEntryClass; -typedef struct _PublishingPiwigoSizeEntryPrivate PublishingPiwigoSizeEntryPrivate; -typedef struct _PublishingPiwigoParamSpecSizeEntry PublishingPiwigoParamSpecSizeEntry; - -#define PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS (publishing_piwigo_publishing_parameters_get_type ()) -#define PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS, PublishingPiwigoPublishingParameters)) -#define PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS, PublishingPiwigoPublishingParametersClass)) -#define PUBLISHING_PIWIGO_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_PIWIGO_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS, PublishingPiwigoPublishingParametersClass)) - -typedef struct _PublishingPiwigoPublishingParameters PublishingPiwigoPublishingParameters; -typedef struct _PublishingPiwigoPublishingParametersClass PublishingPiwigoPublishingParametersClass; -typedef struct _PublishingPiwigoPublishingParametersPrivate PublishingPiwigoPublishingParametersPrivate; -#define _publishing_piwigo_category_unref0(var) ((var == NULL) ? NULL : (var = (publishing_piwigo_category_unref (var), NULL))) -#define _publishing_piwigo_permission_level_unref0(var) ((var == NULL) ? NULL : (var = (publishing_piwigo_permission_level_unref (var), NULL))) -#define _publishing_piwigo_size_entry_unref0(var) ((var == NULL) ? NULL : (var = (publishing_piwigo_size_entry_unref (var), NULL))) -typedef struct _PublishingPiwigoParamSpecPublishingParameters PublishingPiwigoParamSpecPublishingParameters; -typedef struct _PublishingPiwigoPiwigoPublisherPrivate PublishingPiwigoPiwigoPublisherPrivate; - -#define PUBLISHING_PIWIGO_TYPE_SESSION (publishing_piwigo_session_get_type ()) -#define PUBLISHING_PIWIGO_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSession)) -#define PUBLISHING_PIWIGO_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSessionClass)) -#define PUBLISHING_PIWIGO_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_SESSION)) -#define PUBLISHING_PIWIGO_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_SESSION)) -#define PUBLISHING_PIWIGO_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSessionClass)) - -typedef struct _PublishingPiwigoSession PublishingPiwigoSession; -typedef struct _PublishingPiwigoSessionClass PublishingPiwigoSessionClass; -enum { - PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_0_PROPERTY, - PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_piwigo_piwigo_publisher_properties[PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) -#define _publishing_piwigo_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_piwigo_publishing_parameters_unref (var), NULL))) - -#define PUBLISHING_PIWIGO_AUTHENTICATION_PANE_TYPE_MODE (publishing_piwigo_authentication_pane_mode_get_type ()) - -#define PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE (publishing_piwigo_authentication_pane_get_type ()) -#define PUBLISHING_PIWIGO_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane)) -#define PUBLISHING_PIWIGO_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPaneClass)) -#define PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE)) -#define PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE)) -#define PUBLISHING_PIWIGO_AUTHENTICATION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPaneClass)) - -typedef struct _PublishingPiwigoAuthenticationPane PublishingPiwigoAuthenticationPane; -typedef struct _PublishingPiwigoAuthenticationPaneClass PublishingPiwigoAuthenticationPaneClass; - -#define PUBLISHING_PIWIGO_TYPE_TRANSACTION (publishing_piwigo_transaction_get_type ()) -#define PUBLISHING_PIWIGO_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_TRANSACTION, PublishingPiwigoTransaction)) -#define PUBLISHING_PIWIGO_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_TRANSACTION, PublishingPiwigoTransactionClass)) -#define PUBLISHING_PIWIGO_IS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_TRANSACTION)) -#define PUBLISHING_PIWIGO_IS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_TRANSACTION)) -#define PUBLISHING_PIWIGO_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_TRANSACTION, PublishingPiwigoTransactionClass)) - -typedef struct _PublishingPiwigoTransaction PublishingPiwigoTransaction; -typedef struct _PublishingPiwigoTransactionClass PublishingPiwigoTransactionClass; - -#define PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION (publishing_piwigo_session_login_transaction_get_type ()) -#define PUBLISHING_PIWIGO_SESSION_LOGIN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION, PublishingPiwigoSessionLoginTransaction)) -#define PUBLISHING_PIWIGO_SESSION_LOGIN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION, PublishingPiwigoSessionLoginTransactionClass)) -#define PUBLISHING_PIWIGO_IS_SESSION_LOGIN_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION)) -#define PUBLISHING_PIWIGO_IS_SESSION_LOGIN_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION)) -#define PUBLISHING_PIWIGO_SESSION_LOGIN_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION, PublishingPiwigoSessionLoginTransactionClass)) - -typedef struct _PublishingPiwigoSessionLoginTransaction PublishingPiwigoSessionLoginTransaction; -typedef struct _PublishingPiwigoSessionLoginTransactionClass PublishingPiwigoSessionLoginTransactionClass; - -#define PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE (publishing_piwigo_ssl_error_pane_get_type ()) -#define PUBLISHING_PIWIGO_SSL_ERROR_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, PublishingPiwigoSSLErrorPane)) -#define PUBLISHING_PIWIGO_SSL_ERROR_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, PublishingPiwigoSSLErrorPaneClass)) -#define PUBLISHING_PIWIGO_IS_SSL_ERROR_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE)) -#define PUBLISHING_PIWIGO_IS_SSL_ERROR_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE)) -#define PUBLISHING_PIWIGO_SSL_ERROR_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, PublishingPiwigoSSLErrorPaneClass)) - -typedef struct _PublishingPiwigoSSLErrorPane PublishingPiwigoSSLErrorPane; -typedef struct _PublishingPiwigoSSLErrorPaneClass PublishingPiwigoSSLErrorPaneClass; -#define __vala_SoupURI_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupURI_free (var), NULL))) -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _publishing_rest_support_xml_document_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_xml_document_unref (var), NULL))) - -#define PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION (publishing_piwigo_session_get_status_transaction_get_type ()) -#define PUBLISHING_PIWIGO_SESSION_GET_STATUS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION, PublishingPiwigoSessionGetStatusTransaction)) -#define PUBLISHING_PIWIGO_SESSION_GET_STATUS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION, PublishingPiwigoSessionGetStatusTransactionClass)) -#define PUBLISHING_PIWIGO_IS_SESSION_GET_STATUS_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION)) -#define PUBLISHING_PIWIGO_IS_SESSION_GET_STATUS_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION)) -#define PUBLISHING_PIWIGO_SESSION_GET_STATUS_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION, PublishingPiwigoSessionGetStatusTransactionClass)) - -typedef struct _PublishingPiwigoSessionGetStatusTransaction PublishingPiwigoSessionGetStatusTransaction; -typedef struct _PublishingPiwigoSessionGetStatusTransactionClass PublishingPiwigoSessionGetStatusTransactionClass; - -#define PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION (publishing_piwigo_categories_get_list_transaction_get_type ()) -#define PUBLISHING_PIWIGO_CATEGORIES_GET_LIST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION, PublishingPiwigoCategoriesGetListTransaction)) -#define PUBLISHING_PIWIGO_CATEGORIES_GET_LIST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION, PublishingPiwigoCategoriesGetListTransactionClass)) -#define PUBLISHING_PIWIGO_IS_CATEGORIES_GET_LIST_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION)) -#define PUBLISHING_PIWIGO_IS_CATEGORIES_GET_LIST_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION)) -#define PUBLISHING_PIWIGO_CATEGORIES_GET_LIST_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION, PublishingPiwigoCategoriesGetListTransactionClass)) - -typedef struct _PublishingPiwigoCategoriesGetListTransaction PublishingPiwigoCategoriesGetListTransaction; -typedef struct _PublishingPiwigoCategoriesGetListTransactionClass PublishingPiwigoCategoriesGetListTransactionClass; -#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL))) - -#define PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE (publishing_piwigo_publishing_options_pane_get_type ()) -#define PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane)) -#define PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPaneClass)) -#define PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPaneClass)) - -typedef struct _PublishingPiwigoPublishingOptionsPane PublishingPiwigoPublishingOptionsPane; -typedef struct _PublishingPiwigoPublishingOptionsPaneClass PublishingPiwigoPublishingOptionsPaneClass; - -#define PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION (publishing_piwigo_session_logout_transaction_get_type ()) -#define PUBLISHING_PIWIGO_SESSION_LOGOUT_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION, PublishingPiwigoSessionLogoutTransaction)) -#define PUBLISHING_PIWIGO_SESSION_LOGOUT_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION, PublishingPiwigoSessionLogoutTransactionClass)) -#define PUBLISHING_PIWIGO_IS_SESSION_LOGOUT_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION)) -#define PUBLISHING_PIWIGO_IS_SESSION_LOGOUT_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION)) -#define PUBLISHING_PIWIGO_SESSION_LOGOUT_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION, PublishingPiwigoSessionLogoutTransactionClass)) - -typedef struct _PublishingPiwigoSessionLogoutTransaction PublishingPiwigoSessionLogoutTransaction; -typedef struct _PublishingPiwigoSessionLogoutTransactionClass PublishingPiwigoSessionLogoutTransactionClass; - -#define PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION (publishing_piwigo_categories_add_transaction_get_type ()) -#define PUBLISHING_PIWIGO_CATEGORIES_ADD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION, PublishingPiwigoCategoriesAddTransaction)) -#define PUBLISHING_PIWIGO_CATEGORIES_ADD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION, PublishingPiwigoCategoriesAddTransactionClass)) -#define PUBLISHING_PIWIGO_IS_CATEGORIES_ADD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION)) -#define PUBLISHING_PIWIGO_IS_CATEGORIES_ADD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION)) -#define PUBLISHING_PIWIGO_CATEGORIES_ADD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION, PublishingPiwigoCategoriesAddTransactionClass)) - -typedef struct _PublishingPiwigoCategoriesAddTransaction PublishingPiwigoCategoriesAddTransaction; -typedef struct _PublishingPiwigoCategoriesAddTransactionClass PublishingPiwigoCategoriesAddTransactionClass; - -#define PUBLISHING_PIWIGO_TYPE_UPLOADER (publishing_piwigo_uploader_get_type ()) -#define PUBLISHING_PIWIGO_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploader)) -#define PUBLISHING_PIWIGO_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploaderClass)) -#define PUBLISHING_PIWIGO_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_UPLOADER)) -#define PUBLISHING_PIWIGO_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_UPLOADER)) -#define PUBLISHING_PIWIGO_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploaderClass)) - -typedef struct _PublishingPiwigoUploader PublishingPiwigoUploader; -typedef struct _PublishingPiwigoUploaderClass PublishingPiwigoUploaderClass; -#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL))) -#define __vala_SoupCookie_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupCookie_free (var), NULL))) -#define __g_slist_free___vala_SoupCookie_free0_0(var) ((var == NULL) ? NULL : (var = (_g_slist_free___vala_SoupCookie_free0_ (var), NULL))) -typedef struct _PublishingPiwigoUploaderPrivate PublishingPiwigoUploaderPrivate; - -#define PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION (publishing_piwigo_images_add_transaction_get_type ()) -#define PUBLISHING_PIWIGO_IMAGES_ADD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, PublishingPiwigoImagesAddTransaction)) -#define PUBLISHING_PIWIGO_IMAGES_ADD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, PublishingPiwigoImagesAddTransactionClass)) -#define PUBLISHING_PIWIGO_IS_IMAGES_ADD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION)) -#define PUBLISHING_PIWIGO_IS_IMAGES_ADD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION)) -#define PUBLISHING_PIWIGO_IMAGES_ADD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, PublishingPiwigoImagesAddTransactionClass)) - -typedef struct _PublishingPiwigoImagesAddTransaction PublishingPiwigoImagesAddTransaction; -typedef struct _PublishingPiwigoImagesAddTransactionClass PublishingPiwigoImagesAddTransactionClass; -typedef struct _PublishingPiwigoSSLErrorPanePrivate PublishingPiwigoSSLErrorPanePrivate; -enum { - PUBLISHING_PIWIGO_SSL_ERROR_PANE_0_PROPERTY, - PUBLISHING_PIWIGO_SSL_ERROR_PANE_HOST_PROPERTY, - PUBLISHING_PIWIGO_SSL_ERROR_PANE_CERT_PROPERTY, - PUBLISHING_PIWIGO_SSL_ERROR_PANE_ERROR_TEXT_PROPERTY, - PUBLISHING_PIWIGO_SSL_ERROR_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_piwigo_ssl_error_pane_properties[PUBLISHING_PIWIGO_SSL_ERROR_PANE_NUM_PROPERTIES]; -#define _g_byte_array_unref0(var) ((var == NULL) ? NULL : (var = (g_byte_array_unref (var), NULL))) -enum { - PUBLISHING_PIWIGO_SSL_ERROR_PANE_PROCEED_SIGNAL, - PUBLISHING_PIWIGO_SSL_ERROR_PANE_NUM_SIGNALS -}; -static guint publishing_piwigo_ssl_error_pane_signals[PUBLISHING_PIWIGO_SSL_ERROR_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingPiwigoAuthenticationPanePrivate PublishingPiwigoAuthenticationPanePrivate; -enum { - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_0_PROPERTY, - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_PROPERTY, - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_PUBLISHER_PROPERTY, - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_piwigo_authentication_pane_properties[PUBLISHING_PIWIGO_AUTHENTICATION_PANE_NUM_PROPERTIES]; -enum { - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_LOGIN_SIGNAL, - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_NUM_SIGNALS -}; -static guint publishing_piwigo_authentication_pane_signals[PUBLISHING_PIWIGO_AUTHENTICATION_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingPiwigoPublishingOptionsPanePrivate PublishingPiwigoPublishingOptionsPanePrivate; -enum { - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_0_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_CATEGORY_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PERMISSION_LEVEL_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PHOTO_SIZE_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_TITLE_AS_COMMENT_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_NO_UPLOAD_TAGS_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_STRIP_METADATA_ENABLED_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_EXISTING_CATEGORIES_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_DEFAULT_COMMENT_PROPERTY, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; -enum { - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS -}; -static guint publishing_piwigo_publishing_options_pane_signals[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingPiwigoSessionPrivate PublishingPiwigoSessionPrivate; -typedef struct _PublishingPiwigoTransactionPrivate PublishingPiwigoTransactionPrivate; -typedef struct _PublishingPiwigoSessionLoginTransactionPrivate PublishingPiwigoSessionLoginTransactionPrivate; -#define _publishing_rest_support_argument_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_argument_unref (var), NULL))) -typedef struct _PublishingPiwigoSessionGetStatusTransactionPrivate PublishingPiwigoSessionGetStatusTransactionPrivate; -typedef struct _PublishingPiwigoCategoriesGetListTransactionPrivate PublishingPiwigoCategoriesGetListTransactionPrivate; -typedef struct _PublishingPiwigoSessionLogoutTransactionPrivate PublishingPiwigoSessionLogoutTransactionPrivate; -typedef struct _PublishingPiwigoCategoriesAddTransactionPrivate PublishingPiwigoCategoriesAddTransactionPrivate; -typedef struct _PublishingPiwigoImagesAddTransactionPrivate PublishingPiwigoImagesAddTransactionPrivate; -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PiwigoService { - GObject parent_instance; - PiwigoServicePrivate * priv; -}; - -struct _PiwigoServiceClass { - GObjectClass parent_class; -}; - -struct _PublishingPiwigoCategory { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingPiwigoCategoryPrivate * priv; - gint id; - gchar* name; - gchar* comment; - gchar* display_name; - gchar* uppercats; -}; - -struct _PublishingPiwigoCategoryClass { - GTypeClass parent_class; - void (*finalize) (PublishingPiwigoCategory *self); -}; - -struct _PublishingPiwigoParamSpecCategory { - GParamSpec parent_instance; -}; - -struct _PublishingPiwigoPermissionLevel { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingPiwigoPermissionLevelPrivate * priv; - gint id; - gchar* name; -}; - -struct _PublishingPiwigoPermissionLevelClass { - GTypeClass parent_class; - void (*finalize) (PublishingPiwigoPermissionLevel *self); -}; - -struct _PublishingPiwigoParamSpecPermissionLevel { - GParamSpec parent_instance; -}; - -struct _PublishingPiwigoSizeEntry { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingPiwigoSizeEntryPrivate * priv; - gint id; - gchar* name; -}; - -struct _PublishingPiwigoSizeEntryClass { - GTypeClass parent_class; - void (*finalize) (PublishingPiwigoSizeEntry *self); -}; - -struct _PublishingPiwigoParamSpecSizeEntry { - GParamSpec parent_instance; -}; - -struct _PublishingPiwigoPublishingParameters { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingPiwigoPublishingParametersPrivate * priv; - PublishingPiwigoCategory* category; - PublishingPiwigoPermissionLevel* perm_level; - PublishingPiwigoSizeEntry* photo_size; - gboolean title_as_comment; - gboolean no_upload_tags; -}; - -struct _PublishingPiwigoPublishingParametersClass { - GTypeClass parent_class; - void (*finalize) (PublishingPiwigoPublishingParameters *self); -}; - -struct _PublishingPiwigoParamSpecPublishingParameters { - GParamSpec parent_instance; -}; - -struct _PublishingPiwigoPiwigoPublisher { - GObject parent_instance; - PublishingPiwigoPiwigoPublisherPrivate * priv; -}; - -struct _PublishingPiwigoPiwigoPublisherClass { - GObjectClass parent_class; -}; - -struct _PublishingPiwigoPiwigoPublisherPrivate { - SpitPublishingService* service; - SpitPublishingPluginHost* host; - gboolean running; - gboolean strip_metadata; - PublishingPiwigoSession* session; - PublishingPiwigoCategory** categories; - gint categories_length1; - gint _categories_size_; - PublishingPiwigoPublishingParameters* parameters; - SpitPublishingProgressCallback progress_reporter; - gpointer progress_reporter_target; - GDestroyNotify progress_reporter_target_destroy_notify; -}; - -typedef enum { - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO, - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL, - PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER -} PublishingPiwigoAuthenticationPaneMode; - -struct _PublishingPiwigoUploader { - PublishingRESTSupportBatchUploader parent_instance; - PublishingPiwigoUploaderPrivate * priv; -}; - -struct _PublishingPiwigoUploaderClass { - PublishingRESTSupportBatchUploaderClass parent_class; -}; - -struct _PublishingPiwigoUploaderPrivate { - PublishingPiwigoPublishingParameters* parameters; -}; - -struct _PublishingPiwigoSSLErrorPane { - ShotwellPluginsCommonBuilderPane parent_instance; - PublishingPiwigoSSLErrorPanePrivate * priv; -}; - -struct _PublishingPiwigoSSLErrorPaneClass { - ShotwellPluginsCommonBuilderPaneClass parent_class; -}; - -struct _PublishingPiwigoSSLErrorPanePrivate { - gchar* _host; - GTlsCertificate* _cert; - gchar* _error_text; -}; - -struct _PublishingPiwigoAuthenticationPane { - ShotwellPluginsCommonBuilderPane parent_instance; - PublishingPiwigoAuthenticationPanePrivate * priv; -}; - -struct _PublishingPiwigoAuthenticationPaneClass { - ShotwellPluginsCommonBuilderPaneClass parent_class; -}; - -struct _PublishingPiwigoAuthenticationPanePrivate { - PublishingPiwigoAuthenticationPaneMode _mode; - PublishingPiwigoPiwigoPublisher* _publisher; - GtkEntry* url_entry; - GtkEntry* username_entry; - GtkEntry* password_entry; - GtkSwitch* remember_password_checkbutton; - GtkButton* login_button; -}; - -struct _PublishingPiwigoPublishingOptionsPane { - ShotwellPluginsCommonBuilderPane parent_instance; - PublishingPiwigoPublishingOptionsPanePrivate * priv; -}; - -struct _PublishingPiwigoPublishingOptionsPaneClass { - ShotwellPluginsCommonBuilderPaneClass parent_class; -}; - -struct _PublishingPiwigoPublishingOptionsPanePrivate { - GtkRadioButton* use_existing_radio; - GtkRadioButton* create_new_radio; - GtkComboBoxText* existing_categories_combo; - GtkEntry* new_category_entry; - GtkLabel* within_existing_label; - GtkComboBoxText* within_existing_combo; - GtkComboBoxText* perms_combo; - GtkComboBoxText* size_combo; - GtkCheckButton* strip_metadata_check; - GtkCheckButton* title_as_comment_check; - GtkCheckButton* no_upload_tags_check; - GtkButton* logout_button; - GtkButton* publish_button; - GtkTextView* album_comment; - GtkLabel* album_comment_label; - PublishingPiwigoPermissionLevel** perm_levels; - gint perm_levels_length1; - gint _perm_levels_size_; - PublishingPiwigoSizeEntry** photo_sizes; - gint photo_sizes_length1; - gint _photo_sizes_size_; - gint _last_category; - gint _last_permission_level; - gint _last_photo_size; - gboolean _last_title_as_comment; - gboolean _last_no_upload_tags; - gboolean _strip_metadata_enabled; - GeeList* _existing_categories; - gchar* _default_comment; -}; - -struct _PublishingPiwigoSession { - PublishingRESTSupportSession parent_instance; - PublishingPiwigoSessionPrivate * priv; -}; - -struct _PublishingPiwigoSessionClass { - PublishingRESTSupportSessionClass parent_class; -}; - -struct _PublishingPiwigoSessionPrivate { - gchar* pwg_url; - gchar* pwg_id; - gchar* username; -}; - -struct _PublishingPiwigoTransaction { - PublishingRESTSupportTransaction parent_instance; - PublishingPiwigoTransactionPrivate * priv; -}; - -struct _PublishingPiwigoTransactionClass { - PublishingRESTSupportTransactionClass parent_class; -}; - -struct _PublishingPiwigoSessionLoginTransaction { - PublishingPiwigoTransaction parent_instance; - PublishingPiwigoSessionLoginTransactionPrivate * priv; -}; - -struct _PublishingPiwigoSessionLoginTransactionClass { - PublishingPiwigoTransactionClass parent_class; -}; - -struct _PublishingPiwigoSessionGetStatusTransaction { - PublishingPiwigoTransaction parent_instance; - PublishingPiwigoSessionGetStatusTransactionPrivate * priv; -}; - -struct _PublishingPiwigoSessionGetStatusTransactionClass { - PublishingPiwigoTransactionClass parent_class; -}; - -struct _PublishingPiwigoCategoriesGetListTransaction { - PublishingPiwigoTransaction parent_instance; - PublishingPiwigoCategoriesGetListTransactionPrivate * priv; -}; - -struct _PublishingPiwigoCategoriesGetListTransactionClass { - PublishingPiwigoTransactionClass parent_class; -}; - -struct _PublishingPiwigoSessionLogoutTransaction { - PublishingPiwigoTransaction parent_instance; - PublishingPiwigoSessionLogoutTransactionPrivate * priv; -}; - -struct _PublishingPiwigoSessionLogoutTransactionClass { - PublishingPiwigoTransactionClass parent_class; -}; - -struct _PublishingPiwigoCategoriesAddTransaction { - PublishingPiwigoTransaction parent_instance; - PublishingPiwigoCategoriesAddTransactionPrivate * priv; -}; - -struct _PublishingPiwigoCategoriesAddTransactionClass { - PublishingPiwigoTransactionClass parent_class; -}; - -struct _PublishingPiwigoImagesAddTransaction { - PublishingRESTSupportUploadTransaction parent_instance; - PublishingPiwigoImagesAddTransactionPrivate * priv; -}; - -struct _PublishingPiwigoImagesAddTransactionClass { - PublishingRESTSupportUploadTransactionClass parent_class; -}; - -struct _PublishingPiwigoImagesAddTransactionPrivate { - PublishingPiwigoPublishingParameters* parameters; -}; - - -static gpointer piwigo_service_parent_class = NULL; -static GdkPixbuf** piwigo_service_icon_pixbuf_set; -static gint piwigo_service_icon_pixbuf_set_length1; -static GdkPixbuf** piwigo_service_icon_pixbuf_set = NULL; -static gint piwigo_service_icon_pixbuf_set_length1 = 0; -static gint _piwigo_service_icon_pixbuf_set_size_ = 0; -static SpitPluggableIface * piwigo_service_spit_pluggable_parent_iface = NULL; -static SpitPublishingServiceIface * piwigo_service_spit_publishing_service_parent_iface = NULL; -static gpointer publishing_piwigo_category_parent_class = NULL; -static gpointer publishing_piwigo_permission_level_parent_class = NULL; -static gpointer publishing_piwigo_size_entry_parent_class = NULL; -static gpointer publishing_piwigo_publishing_parameters_parent_class = NULL; -static gpointer publishing_piwigo_piwigo_publisher_parent_class = NULL; -static SpitPublishingPublisherIface * publishing_piwigo_piwigo_publisher_spit_publishing_publisher_parent_iface = NULL; -static gpointer publishing_piwigo_uploader_parent_class = NULL; -static gpointer publishing_piwigo_ssl_error_pane_parent_class = NULL; -static gpointer publishing_piwigo_authentication_pane_parent_class = NULL; -static gchar* publishing_piwigo_authentication_pane_INTRO_MESSAGE; -static gchar* publishing_piwigo_authentication_pane_INTRO_MESSAGE = NULL; -static gchar* publishing_piwigo_authentication_pane_FAILED_RETRY_URL_MESSAGE; -static gchar* publishing_piwigo_authentication_pane_FAILED_RETRY_URL_MESSAGE = NULL; -static gchar* publishing_piwigo_authentication_pane_FAILED_RETRY_USER_MESSAGE; -static gchar* publishing_piwigo_authentication_pane_FAILED_RETRY_USER_MESSAGE = NULL; -static gpointer publishing_piwigo_publishing_options_pane_parent_class = NULL; -static gchar* publishing_piwigo_publishing_options_pane_DEFAULT_CATEGORY_NAME; -static gchar* publishing_piwigo_publishing_options_pane_DEFAULT_CATEGORY_NAME = NULL; -static gpointer publishing_piwigo_session_parent_class = NULL; -static gpointer publishing_piwigo_transaction_parent_class = NULL; -static gpointer publishing_piwigo_session_login_transaction_parent_class = NULL; -static gpointer publishing_piwigo_session_get_status_transaction_parent_class = NULL; -static gpointer publishing_piwigo_categories_get_list_transaction_parent_class = NULL; -static gpointer publishing_piwigo_session_logout_transaction_parent_class = NULL; -static gpointer publishing_piwigo_categories_add_transaction_parent_class = NULL; -static gpointer publishing_piwigo_images_add_transaction_parent_class = NULL; - -GType piwigo_service_get_type (void) G_GNUC_CONST; -#define PIWIGO_SERVICE_ICON_FILENAME "piwigo.png" -PiwigoService* piwigo_service_new (GFile* resource_directory); -PiwigoService* piwigo_service_construct (GType object_type, - GFile* resource_directory); -static gint piwigo_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -static const gchar* piwigo_service_real_get_id (SpitPluggable* base); -static const gchar* piwigo_service_real_get_pluggable_name (SpitPluggable* base); -static void piwigo_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup12 (GdkPixbuf** self, - int length); -static void piwigo_service_real_activation (SpitPluggable* base, - gboolean enabled); -static SpitPublishingPublisher* piwigo_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host); -PublishingPiwigoPiwigoPublisher* publishing_piwigo_piwigo_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host); -PublishingPiwigoPiwigoPublisher* publishing_piwigo_piwigo_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host); -GType publishing_piwigo_piwigo_publisher_get_type (void) G_GNUC_CONST; -static SpitPublishingPublisherMediaType piwigo_service_real_get_supported_media (SpitPublishingService* base); -static void piwigo_service_finalize (GObject * obj); -#define PUBLISHING_PIWIGO_SERVICE_NAME "Piwigo" -#define PUBLISHING_PIWIGO_PIWIGO_WS "ws.php" -#define PUBLISHING_PIWIGO_ORIGINAL_SIZE -1 -gpointer publishing_piwigo_category_ref (gpointer instance); -void publishing_piwigo_category_unref (gpointer instance); -GParamSpec* publishing_piwigo_param_spec_category (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_piwigo_value_set_category (GValue* value, - gpointer v_object); -void publishing_piwigo_value_take_category (GValue* value, - gpointer v_object); -gpointer publishing_piwigo_value_get_category (const GValue* value); -GType publishing_piwigo_category_get_type (void) G_GNUC_CONST; -#define PUBLISHING_PIWIGO_CATEGORY_NO_ID -1 -PublishingPiwigoCategory* publishing_piwigo_category_new (gint id, - const gchar* name, - const gchar* uppercats, - const gchar* comment); -PublishingPiwigoCategory* publishing_piwigo_category_construct (GType object_type, - gint id, - const gchar* name, - const gchar* uppercats, - const gchar* comment); -PublishingPiwigoCategory* publishing_piwigo_category_new_local (const gchar* name, - gint parent_id, - const gchar* comment); -PublishingPiwigoCategory* publishing_piwigo_category_construct_local (GType object_type, - const gchar* name, - gint parent_id, - const gchar* comment); -gboolean publishing_piwigo_category_is_local (PublishingPiwigoCategory* self); -gboolean publishing_piwigo_category_equal (PublishingPiwigoCategory* _self_, - PublishingPiwigoCategory* other); -static void publishing_piwigo_category_finalize (PublishingPiwigoCategory * obj); -gpointer publishing_piwigo_permission_level_ref (gpointer instance); -void publishing_piwigo_permission_level_unref (gpointer instance); -GParamSpec* publishing_piwigo_param_spec_permission_level (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_piwigo_value_set_permission_level (GValue* value, - gpointer v_object); -void publishing_piwigo_value_take_permission_level (GValue* value, - gpointer v_object); -gpointer publishing_piwigo_value_get_permission_level (const GValue* value); -GType publishing_piwigo_permission_level_get_type (void) G_GNUC_CONST; -PublishingPiwigoPermissionLevel* publishing_piwigo_permission_level_new (gint id, - const gchar* name); -PublishingPiwigoPermissionLevel* publishing_piwigo_permission_level_construct (GType object_type, - gint id, - const gchar* name); -static void publishing_piwigo_permission_level_finalize (PublishingPiwigoPermissionLevel * obj); -gpointer publishing_piwigo_size_entry_ref (gpointer instance); -void publishing_piwigo_size_entry_unref (gpointer instance); -GParamSpec* publishing_piwigo_param_spec_size_entry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_piwigo_value_set_size_entry (GValue* value, - gpointer v_object); -void publishing_piwigo_value_take_size_entry (GValue* value, - gpointer v_object); -gpointer publishing_piwigo_value_get_size_entry (const GValue* value); -GType publishing_piwigo_size_entry_get_type (void) G_GNUC_CONST; -PublishingPiwigoSizeEntry* publishing_piwigo_size_entry_new (gint id, - const gchar* name); -PublishingPiwigoSizeEntry* publishing_piwigo_size_entry_construct (GType object_type, - gint id, - const gchar* name); -static void publishing_piwigo_size_entry_finalize (PublishingPiwigoSizeEntry * obj); -gpointer publishing_piwigo_publishing_parameters_ref (gpointer instance); -void publishing_piwigo_publishing_parameters_unref (gpointer instance); -GParamSpec* publishing_piwigo_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_piwigo_value_set_publishing_parameters (GValue* value, - gpointer v_object); -void publishing_piwigo_value_take_publishing_parameters (GValue* value, - gpointer v_object); -gpointer publishing_piwigo_value_get_publishing_parameters (const GValue* value); -GType publishing_piwigo_publishing_parameters_get_type (void) G_GNUC_CONST; -PublishingPiwigoPublishingParameters* publishing_piwigo_publishing_parameters_new (void); -PublishingPiwigoPublishingParameters* publishing_piwigo_publishing_parameters_construct (GType object_type); -static void publishing_piwigo_publishing_parameters_finalize (PublishingPiwigoPublishingParameters * obj); -GType publishing_piwigo_session_get_type (void) G_GNUC_CONST; -#define PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisherPrivate)) -PublishingPiwigoSession* publishing_piwigo_session_new (void); -PublishingPiwigoSession* publishing_piwigo_session_construct (GType object_type); -static SpitPublishingService* publishing_piwigo_piwigo_publisher_real_get_service (SpitPublishingPublisher* base); -SpitPublishingPluginHost* publishing_piwigo_piwigo_publisher_get_host (PublishingPiwigoPiwigoPublisher* self); -static gboolean publishing_piwigo_piwigo_publisher_real_is_running (SpitPublishingPublisher* base); -static void publishing_piwigo_piwigo_publisher_real_start (SpitPublishingPublisher* base); -static void publishing_piwigo_piwigo_publisher_do_fetch_categories (PublishingPiwigoPiwigoPublisher* self); -gchar* publishing_piwigo_piwigo_publisher_get_persistent_url (PublishingPiwigoPiwigoPublisher* self); -gchar* publishing_piwigo_piwigo_publisher_get_persistent_username (PublishingPiwigoPiwigoPublisher* self); -gchar* publishing_piwigo_piwigo_publisher_get_persistent_password (PublishingPiwigoPiwigoPublisher* self); -static void publishing_piwigo_piwigo_publisher_do_network_login (PublishingPiwigoPiwigoPublisher* self, - const gchar* url, - const gchar* username, - const gchar* password, - gboolean remember_password); -gboolean publishing_piwigo_piwigo_publisher_get_remember_password (PublishingPiwigoPiwigoPublisher* self); -GType publishing_piwigo_authentication_pane_mode_get_type (void) G_GNUC_CONST; -static void publishing_piwigo_piwigo_publisher_do_show_authentication_pane (PublishingPiwigoPiwigoPublisher* self, - PublishingPiwigoAuthenticationPaneMode mode); -static void publishing_piwigo_piwigo_publisher_real_stop (SpitPublishingPublisher* base); -static void publishing_piwigo_piwigo_publisher_set_persistent_url (PublishingPiwigoPiwigoPublisher* self, - const gchar* url); -static void publishing_piwigo_piwigo_publisher_set_persistent_username (PublishingPiwigoPiwigoPublisher* self, - const gchar* username); -static void publishing_piwigo_piwigo_publisher_set_persistent_password (PublishingPiwigoPiwigoPublisher* self, - const gchar* password); -static void publishing_piwigo_piwigo_publisher_set_remember_password (PublishingPiwigoPiwigoPublisher* self, - gboolean remember_password); -gint publishing_piwigo_piwigo_publisher_get_last_category (PublishingPiwigoPiwigoPublisher* self); -static void publishing_piwigo_piwigo_publisher_set_last_category (PublishingPiwigoPiwigoPublisher* self, - gint last_category); -gint publishing_piwigo_piwigo_publisher_get_last_permission_level (PublishingPiwigoPiwigoPublisher* self); -static void publishing_piwigo_piwigo_publisher_set_last_permission_level (PublishingPiwigoPiwigoPublisher* self, - gint last_permission_level); -gint publishing_piwigo_piwigo_publisher_get_last_photo_size (PublishingPiwigoPiwigoPublisher* self); -static void publishing_piwigo_piwigo_publisher_set_last_photo_size (PublishingPiwigoPiwigoPublisher* self, - gint last_photo_size); -static gboolean publishing_piwigo_piwigo_publisher_get_last_title_as_comment (PublishingPiwigoPiwigoPublisher* self); -static void publishing_piwigo_piwigo_publisher_set_last_title_as_comment (PublishingPiwigoPiwigoPublisher* self, - gboolean title_as_comment); -static gboolean publishing_piwigo_piwigo_publisher_get_last_no_upload_tags (PublishingPiwigoPiwigoPublisher* self); -static void publishing_piwigo_piwigo_publisher_set_last_no_upload_tags (PublishingPiwigoPiwigoPublisher* self, - gboolean no_upload_tags); -static gboolean publishing_piwigo_piwigo_publisher_get_metadata_removal_choice (PublishingPiwigoPiwigoPublisher* self); -static void publishing_piwigo_piwigo_publisher_set_metadata_removal_choice (PublishingPiwigoPiwigoPublisher* self, - gboolean strip_metadata); -GType publishing_piwigo_authentication_pane_get_type (void) G_GNUC_CONST; -PublishingPiwigoAuthenticationPane* publishing_piwigo_authentication_pane_new (PublishingPiwigoPiwigoPublisher* publisher, - PublishingPiwigoAuthenticationPaneMode mode); -PublishingPiwigoAuthenticationPane* publishing_piwigo_authentication_pane_construct (GType object_type, - PublishingPiwigoPiwigoPublisher* publisher, - PublishingPiwigoAuthenticationPaneMode mode); -static void publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked (PublishingPiwigoPiwigoPublisher* self, - const gchar* url, - const gchar* username, - const gchar* password, - gboolean remember_password); -static void _publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked_publishing_piwigo_authentication_pane_login (PublishingPiwigoAuthenticationPane* _sender, - const gchar* url, - const gchar* user, - const gchar* password, - gboolean remember_password, - gpointer self); -GType publishing_piwigo_transaction_get_type (void) G_GNUC_CONST; -GType publishing_piwigo_session_login_transaction_get_type (void) G_GNUC_CONST; -static void publishing_piwigo_piwigo_publisher_do_show_ssl_downgrade_pane (PublishingPiwigoPiwigoPublisher* self, - PublishingPiwigoSessionLoginTransaction* trans, - const gchar* url); -GType publishing_piwigo_ssl_error_pane_get_type (void) G_GNUC_CONST; -PublishingPiwigoSSLErrorPane* publishing_piwigo_ssl_error_pane_new (PublishingPiwigoSessionLoginTransaction* transaction, - const gchar* host); -PublishingPiwigoSSLErrorPane* publishing_piwigo_ssl_error_pane_construct (GType object_type, - PublishingPiwigoSessionLoginTransaction* transaction, - const gchar* host); -static void __lambda7_ (PublishingPiwigoPiwigoPublisher* self); -static void ___lambda7__publishing_piwigo_ssl_error_pane_proceed (PublishingPiwigoSSLErrorPane* _sender, - gpointer self); -static void _vala_SoupURI_free (SoupURI* self); -gchar* publishing_piwigo_piwigo_publisher_normalise_url (const gchar* url); -PublishingPiwigoSessionLoginTransaction* publishing_piwigo_session_login_transaction_new (PublishingPiwigoSession* session, - const gchar* url, - const gchar* username, - const gchar* password); -PublishingPiwigoSessionLoginTransaction* publishing_piwigo_session_login_transaction_construct (GType object_type, - PublishingPiwigoSession* session, - const gchar* url, - const gchar* username, - const gchar* password); -static void publishing_piwigo_piwigo_publisher_on_login_network_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_piwigo_piwigo_publisher_on_login_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_piwigo_piwigo_publisher_on_login_network_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_piwigo_piwigo_publisher_on_login_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_piwigo_piwigo_publisher_do_show_error (PublishingPiwigoPiwigoPublisher* self, - GError* e); -gchar* publishing_piwigo_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc); -static gchar* _publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self); -gchar* publishing_piwigo_transaction_get_error_code (PublishingRESTSupportXmlDocument* doc); -static gchar* _publishing_piwigo_transaction_get_error_code_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self); -static gchar* publishing_piwigo_piwigo_publisher_get_pwg_id_from_transaction (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn); -void publishing_piwigo_session_set_pwg_id (PublishingPiwigoSession* self, - const gchar* id); -static void publishing_piwigo_piwigo_publisher_do_fetch_session_status (PublishingPiwigoPiwigoPublisher* self, - const gchar* url, - const gchar* pwg_id); -GType publishing_piwigo_session_get_status_transaction_get_type (void) G_GNUC_CONST; -PublishingPiwigoSessionGetStatusTransaction* publishing_piwigo_session_get_status_transaction_new_unauthenticated (PublishingPiwigoSession* session, - const gchar* url, - const gchar* pwg_id); -PublishingPiwigoSessionGetStatusTransaction* publishing_piwigo_session_get_status_transaction_construct_unauthenticated (GType object_type, - PublishingPiwigoSession* session, - const gchar* url, - const gchar* pwg_id); -static void publishing_piwigo_piwigo_publisher_on_session_get_status_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_piwigo_piwigo_publisher_on_session_get_status_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -PublishingPiwigoSessionGetStatusTransaction* publishing_piwigo_session_get_status_transaction_new (PublishingPiwigoSession* session); -PublishingPiwigoSessionGetStatusTransaction* publishing_piwigo_session_get_status_transaction_construct (GType object_type, - PublishingPiwigoSession* session); -gchar* publishing_piwigo_session_get_pwg_id (PublishingPiwigoSession* self); -void publishing_piwigo_session_authenticate (PublishingPiwigoSession* self, - const gchar* url, - const gchar* username, - const gchar* id); -gchar* publishing_piwigo_session_get_pwg_url (PublishingPiwigoSession* self); -gchar* publishing_piwigo_session_get_username (PublishingPiwigoSession* self); -static void publishing_piwigo_piwigo_publisher_on_network_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -GType publishing_piwigo_categories_get_list_transaction_get_type (void) G_GNUC_CONST; -PublishingPiwigoCategoriesGetListTransaction* publishing_piwigo_categories_get_list_transaction_new (PublishingPiwigoSession* session); -PublishingPiwigoCategoriesGetListTransaction* publishing_piwigo_categories_get_list_transaction_construct (GType object_type, - PublishingPiwigoSession* session); -static void publishing_piwigo_piwigo_publisher_on_category_fetch_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_piwigo_piwigo_publisher_on_category_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_piwigo_piwigo_publisher_on_category_fetch_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_piwigo_piwigo_publisher_on_category_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void _vala_array_add38 (PublishingPiwigoCategory** * array, - int* length, - int* size, - PublishingPiwigoCategory* value); -static void publishing_piwigo_piwigo_publisher_do_show_publishing_options_pane (PublishingPiwigoPiwigoPublisher* self); -GType publishing_piwigo_publishing_options_pane_get_type (void) G_GNUC_CONST; -PublishingPiwigoPublishingOptionsPane* publishing_piwigo_publishing_options_pane_new (PublishingPiwigoPiwigoPublisher* publisher, - PublishingPiwigoCategory** categories, - int categories_length1, - gint last_category, - gint last_permission_level, - gint last_photo_size, - gboolean last_title_as_comment, - gboolean last_no_upload_tags, - gboolean strip_metadata_enabled); -PublishingPiwigoPublishingOptionsPane* publishing_piwigo_publishing_options_pane_construct (GType object_type, - PublishingPiwigoPiwigoPublisher* publisher, - PublishingPiwigoCategory** categories, - int categories_length1, - gint last_category, - gint last_permission_level, - gint last_photo_size, - gboolean last_title_as_comment, - gboolean last_no_upload_tags, - gboolean strip_metadata_enabled); -static void publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked (PublishingPiwigoPiwigoPublisher* self); -static void _publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked_publishing_piwigo_publishing_options_pane_logout (PublishingPiwigoPublishingOptionsPane* _sender, - gpointer self); -static void publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked (PublishingPiwigoPiwigoPublisher* self, - PublishingPiwigoPublishingParameters* parameters, - gboolean strip_metadata); -static void _publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked_publishing_piwigo_publishing_options_pane_publish (PublishingPiwigoPublishingOptionsPane* _sender, - PublishingPiwigoPublishingParameters* parameters, - gboolean strip_metadata, - gpointer self); -GType publishing_piwigo_session_logout_transaction_get_type (void) G_GNUC_CONST; -PublishingPiwigoSessionLogoutTransaction* publishing_piwigo_session_logout_transaction_new (PublishingPiwigoSession* session); -PublishingPiwigoSessionLogoutTransaction* publishing_piwigo_session_logout_transaction_construct (GType object_type, - PublishingPiwigoSession* session); -static void publishing_piwigo_piwigo_publisher_on_logout_network_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_piwigo_piwigo_publisher_on_logout_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_piwigo_piwigo_publisher_on_logout_network_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_piwigo_piwigo_publisher_on_logout_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -void publishing_piwigo_session_deauthenticate (PublishingPiwigoSession* self); -static void publishing_piwigo_piwigo_publisher_do_create_category (PublishingPiwigoPiwigoPublisher* self, - PublishingPiwigoCategory* category); -static void publishing_piwigo_piwigo_publisher_do_upload (PublishingPiwigoPiwigoPublisher* self, - gboolean strip_metadata); -GType publishing_piwigo_categories_add_transaction_get_type (void) G_GNUC_CONST; -PublishingPiwigoCategoriesAddTransaction* publishing_piwigo_categories_add_transaction_new (PublishingPiwigoSession* session, - const gchar* category, - gint parent_id, - const gchar* comment); -PublishingPiwigoCategoriesAddTransaction* publishing_piwigo_categories_add_transaction_construct (GType object_type, - PublishingPiwigoSession* session, - const gchar* category, - gint parent_id, - const gchar* comment); -static void publishing_piwigo_piwigo_publisher_on_category_add_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err); -static void _publishing_piwigo_piwigo_publisher_on_category_add_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_piwigo_piwigo_publisher_on_category_add_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_piwigo_piwigo_publisher_on_category_add_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -GType publishing_piwigo_uploader_get_type (void) G_GNUC_CONST; -PublishingPiwigoUploader* publishing_piwigo_uploader_new (PublishingPiwigoSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingPiwigoPublishingParameters* parameters); -PublishingPiwigoUploader* publishing_piwigo_uploader_construct (GType object_type, - PublishingPiwigoSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingPiwigoPublishingParameters* parameters); -static void publishing_piwigo_piwigo_publisher_on_upload_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published); -static void _publishing_piwigo_piwigo_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self); -static void publishing_piwigo_piwigo_publisher_on_upload_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err); -static void _publishing_piwigo_piwigo_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self); -static void publishing_piwigo_piwigo_publisher_on_upload_status_updated (PublishingPiwigoPiwigoPublisher* self, - gint file_number, - gdouble completed_fraction); -static void _publishing_piwigo_piwigo_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -static void publishing_piwigo_piwigo_publisher_do_show_success_pane (PublishingPiwigoPiwigoPublisher* self); -static void publishing_piwigo_piwigo_publisher_do_show_error_message (PublishingPiwigoPiwigoPublisher* self, - const gchar* message); -static SoupCookie* _vala_SoupCookie_copy (SoupCookie* self); -static void _vala_SoupCookie_free (SoupCookie* self); -static void __vala_SoupCookie_free0_ (gpointer var); -static inline void _g_slist_free___vala_SoupCookie_free0_ (GSList* self); -static void publishing_piwigo_piwigo_publisher_finalize (GObject * obj); -#define PUBLISHING_PIWIGO_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploaderPrivate)) -static PublishingRESTSupportTransaction* publishing_piwigo_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable); -PublishingPiwigoImagesAddTransaction* publishing_piwigo_images_add_transaction_new (PublishingPiwigoSession* session, - PublishingPiwigoPublishingParameters* parameters, - SpitPublishingPublishable* publishable); -PublishingPiwigoImagesAddTransaction* publishing_piwigo_images_add_transaction_construct (GType object_type, - PublishingPiwigoSession* session, - PublishingPiwigoPublishingParameters* parameters, - SpitPublishingPublishable* publishable); -GType publishing_piwigo_images_add_transaction_get_type (void) G_GNUC_CONST; -static void publishing_piwigo_uploader_finalize (PublishingRESTSupportBatchUploader * obj); -#define PUBLISHING_PIWIGO_SSL_ERROR_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, PublishingPiwigoSSLErrorPanePrivate)) -static void publishing_piwigo_ssl_error_pane_real_constructed (GObject* base); -gchar* publishing_piwigo_ssl_error_pane_get_host (PublishingPiwigoSSLErrorPane* self); -gchar* publishing_piwigo_ssl_error_pane_get_error_text (PublishingPiwigoSSLErrorPane* self); -static void __lambda5_ (PublishingPiwigoSSLErrorPane* self); -static GTlsCertificate* publishing_piwigo_ssl_error_pane_get_cert (PublishingPiwigoSSLErrorPane* self); -static void ___lambda5__gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void __lambda6_ (PublishingPiwigoSSLErrorPane* self); -static void ___lambda6__gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_piwigo_ssl_error_pane_set_host (PublishingPiwigoSSLErrorPane* self, - const gchar* value); -static void publishing_piwigo_ssl_error_pane_set_cert (PublishingPiwigoSSLErrorPane* self, - GTlsCertificate* value); -static void publishing_piwigo_ssl_error_pane_set_error_text (PublishingPiwigoSSLErrorPane* self, - const gchar* value); -static void publishing_piwigo_ssl_error_pane_finalize (GObject * obj); -static void _vala_publishing_piwigo_ssl_error_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_publishing_piwigo_ssl_error_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -#define PUBLISHING_PIWIGO_AUTHENTICATION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPanePrivate)) -static void publishing_piwigo_authentication_pane_real_constructed (GObject* base); -PublishingPiwigoAuthenticationPaneMode publishing_piwigo_authentication_pane_get_mode (PublishingPiwigoAuthenticationPane* self); -PublishingPiwigoPiwigoPublisher* publishing_piwigo_authentication_pane_get_publisher (PublishingPiwigoAuthenticationPane* self); -static void publishing_piwigo_authentication_pane_on_user_changed (PublishingPiwigoAuthenticationPane* self); -static void _publishing_piwigo_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_piwigo_authentication_pane_on_url_changed (PublishingPiwigoAuthenticationPane* self); -static void _publishing_piwigo_authentication_pane_on_url_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_piwigo_authentication_pane_on_password_changed (PublishingPiwigoAuthenticationPane* self); -static void _publishing_piwigo_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_piwigo_authentication_pane_on_login_button_clicked (PublishingPiwigoAuthenticationPane* self); -static void _publishing_piwigo_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_piwigo_authentication_pane_update_login_button_sensitivity (PublishingPiwigoAuthenticationPane* self); -static void publishing_piwigo_authentication_pane_real_on_pane_installed (ShotwellPluginsCommonBuilderPane* base); -static void publishing_piwigo_authentication_pane_set_mode (PublishingPiwigoAuthenticationPane* self, - PublishingPiwigoAuthenticationPaneMode value); -static void publishing_piwigo_authentication_pane_set_publisher (PublishingPiwigoAuthenticationPane* self, - PublishingPiwigoPiwigoPublisher* value); -static void g_cclosure_user_marshal_VOID__STRING_STRING_STRING_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_piwigo_authentication_pane_finalize (GObject * obj); -static void _vala_publishing_piwigo_authentication_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_publishing_piwigo_authentication_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -#define PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPanePrivate)) -static PublishingPiwigoCategory** _vala_array_dup13 (PublishingPiwigoCategory** self, - int length); -static gboolean _publishing_piwigo_category_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -static gchar* publishing_piwigo_publishing_options_pane_get_common_comment_if_possible (PublishingPiwigoPiwigoPublisher* publisher); -static void publishing_piwigo_publishing_options_pane_real_constructed (GObject* base); -static gboolean publishing_piwigo_publishing_options_pane_get_strip_metadata_enabled (PublishingPiwigoPublishingOptionsPane* self); -static gboolean publishing_piwigo_publishing_options_pane_get_last_title_as_comment (PublishingPiwigoPublishingOptionsPane* self); -static gboolean publishing_piwigo_publishing_options_pane_get_last_no_upload_tags (PublishingPiwigoPublishingOptionsPane* self); -static void publishing_piwigo_publishing_options_pane_on_logout_button_clicked (PublishingPiwigoPublishingOptionsPane* self); -static void _publishing_piwigo_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_piwigo_publishing_options_pane_on_publish_button_clicked (PublishingPiwigoPublishingOptionsPane* self); -static void _publishing_piwigo_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked (PublishingPiwigoPublishingOptionsPane* self); -static void _publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked (PublishingPiwigoPublishingOptionsPane* self); -static void _publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_piwigo_publishing_options_pane_on_new_category_entry_changed (PublishingPiwigoPublishingOptionsPane* self); -static void _publishing_piwigo_publishing_options_pane_on_new_category_entry_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void publishing_piwigo_publishing_options_pane_on_existing_combo_changed (PublishingPiwigoPublishingOptionsPane* self); -static void _publishing_piwigo_publishing_options_pane_on_existing_combo_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static PublishingPiwigoPermissionLevel** publishing_piwigo_publishing_options_pane_create_perm_levels (PublishingPiwigoPublishingOptionsPane* self, - int* result_length1); -static PublishingPiwigoSizeEntry** publishing_piwigo_publishing_options_pane_create_sizes (PublishingPiwigoPublishingOptionsPane* self, - int* result_length1); -static const gchar* publishing_piwigo_publishing_options_pane_get_default_comment (PublishingPiwigoPublishingOptionsPane* self); -static void _vala_array_add39 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value); -static void _vala_array_add40 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value); -static void _vala_array_add41 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value); -static void _vala_array_add42 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value); -static void _vala_array_add43 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value); -static void _vala_array_add44 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value); -static void _vala_array_add45 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value); -static void _vala_array_add46 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value); -static void _vala_array_add47 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value); -static void _vala_array_add48 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value); -static GeeList* publishing_piwigo_publishing_options_pane_get_existing_categories (PublishingPiwigoPublishingOptionsPane* self); -static void publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (PublishingPiwigoPublishingOptionsPane* self); -static gboolean publishing_piwigo_publishing_options_pane_category_already_exists (PublishingPiwigoPublishingOptionsPane* self, - const gchar* category_name); -static void publishing_piwigo_publishing_options_pane_real_on_pane_installed (ShotwellPluginsCommonBuilderPane* base); -static void publishing_piwigo_publishing_options_pane_create_categories_combo (PublishingPiwigoPublishingOptionsPane* self); -static void publishing_piwigo_publishing_options_pane_create_within_categories_combo (PublishingPiwigoPublishingOptionsPane* self); -static void publishing_piwigo_publishing_options_pane_create_permissions_combo (PublishingPiwigoPublishingOptionsPane* self); -static void publishing_piwigo_publishing_options_pane_create_size_combo (PublishingPiwigoPublishingOptionsPane* self); -static gint publishing_piwigo_publishing_options_pane_find_category_index (PublishingPiwigoPublishingOptionsPane* self, - gint category_id); -static gint publishing_piwigo_publishing_options_pane_get_last_category (PublishingPiwigoPublishingOptionsPane* self); -static gint publishing_piwigo_publishing_options_pane_find_permission_level_index (PublishingPiwigoPublishingOptionsPane* self, - gint permission_level_id); -static gint publishing_piwigo_publishing_options_pane_get_last_permission_level (PublishingPiwigoPublishingOptionsPane* self); -static gint publishing_piwigo_publishing_options_pane_find_size_index (PublishingPiwigoPublishingOptionsPane* self, - gint size_id); -static gint publishing_piwigo_publishing_options_pane_get_last_photo_size (PublishingPiwigoPublishingOptionsPane* self); -static void publishing_piwigo_publishing_options_pane_set_last_category (PublishingPiwigoPublishingOptionsPane* self, - gint value); -static void publishing_piwigo_publishing_options_pane_set_last_permission_level (PublishingPiwigoPublishingOptionsPane* self, - gint value); -static void publishing_piwigo_publishing_options_pane_set_last_photo_size (PublishingPiwigoPublishingOptionsPane* self, - gint value); -static void publishing_piwigo_publishing_options_pane_set_last_title_as_comment (PublishingPiwigoPublishingOptionsPane* self, - gboolean value); -static void publishing_piwigo_publishing_options_pane_set_last_no_upload_tags (PublishingPiwigoPublishingOptionsPane* self, - gboolean value); -static void publishing_piwigo_publishing_options_pane_set_strip_metadata_enabled (PublishingPiwigoPublishingOptionsPane* self, - gboolean value); -static void publishing_piwigo_publishing_options_pane_set_existing_categories (PublishingPiwigoPublishingOptionsPane* self, - GeeList* value); -static void publishing_piwigo_publishing_options_pane_set_default_comment (PublishingPiwigoPublishingOptionsPane* self, - const gchar* value); -static void g_cclosure_user_marshal_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void publishing_piwigo_publishing_options_pane_finalize (GObject * obj); -static void _vala_publishing_piwigo_publishing_options_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_publishing_piwigo_publishing_options_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -#define PUBLISHING_PIWIGO_SESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSessionPrivate)) -static gboolean publishing_piwigo_session_real_is_authenticated (PublishingRESTSupportSession* base); -static void publishing_piwigo_session_finalize (PublishingRESTSupportSession * obj); -PublishingPiwigoTransaction* publishing_piwigo_transaction_new (PublishingPiwigoSession* session); -PublishingPiwigoTransaction* publishing_piwigo_transaction_construct (GType object_type, - PublishingPiwigoSession* session); -PublishingPiwigoTransaction* publishing_piwigo_transaction_new_authenticated (PublishingPiwigoSession* session); -PublishingPiwigoTransaction* publishing_piwigo_transaction_construct_authenticated (GType object_type, - PublishingPiwigoSession* session); -PublishingPiwigoSessionLoginTransaction* publishing_piwigo_session_login_transaction_new_from_other (PublishingPiwigoSession* session, - PublishingPiwigoTransaction* other); -PublishingPiwigoSessionLoginTransaction* publishing_piwigo_session_login_transaction_construct_from_other (GType object_type, - PublishingPiwigoSession* session, - PublishingPiwigoTransaction* other); -#define PUBLISHING_PIWIGO_IMAGES_ADD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, PublishingPiwigoImagesAddTransactionPrivate)) -static void _g_free0_ (gpointer var); -static void publishing_piwigo_images_add_transaction_finalize (PublishingRESTSupportTransaction * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -PiwigoService* -piwigo_service_construct (GType object_type, - GFile* resource_directory) -{ - PiwigoService * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PiwigoService*) g_object_new (object_type, NULL); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = piwigo_service_icon_pixbuf_set; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0__length1 = piwigo_service_icon_pixbuf_set_length1; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp0_ == NULL) { -#line 1259 "PiwigoPublishing.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" PIWIGO_SERVICE_ICON_FILENAME, &_tmp1_); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - piwigo_service_icon_pixbuf_set = (_vala_array_free (piwigo_service_icon_pixbuf_set, piwigo_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - piwigo_service_icon_pixbuf_set = _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - piwigo_service_icon_pixbuf_set_length1 = _tmp1_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _piwigo_service_icon_pixbuf_set_size_ = piwigo_service_icon_pixbuf_set_length1; -#line 1272 "PiwigoPublishing.c" - } -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 1276 "PiwigoPublishing.c" -} - - -PiwigoService* -piwigo_service_new (GFile* resource_directory) -{ -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return piwigo_service_construct (TYPE_PIWIGO_SERVICE, resource_directory); -#line 1285 "PiwigoPublishing.c" -} - - -static gint -piwigo_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - PiwigoService * self; - gint result = 0; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 1302 "PiwigoPublishing.c" -} - - -static const gchar* -piwigo_service_real_get_id (SpitPluggable* base) -{ - PiwigoService * self; - const gchar* result = NULL; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = "org.yorba.shotwell.publishing.piwigo"; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 1317 "PiwigoPublishing.c" -} - - -static const gchar* -piwigo_service_real_get_pluggable_name (SpitPluggable* base) -{ - PiwigoService * self; - const gchar* result = NULL; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = "Piwigo"; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 1332 "PiwigoPublishing.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self ? g_object_ref (self) : NULL; -#line 1341 "PiwigoPublishing.c" -} - - -static GdkPixbuf** -_vala_array_dup12 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - for (i = 0; i < length; i++) { -#line 1355 "PiwigoPublishing.c" - GdkPixbuf* _tmp0_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result[i] = _tmp0_; -#line 1361 "PiwigoPublishing.c" - } -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 1365 "PiwigoPublishing.c" -} - - -static void -piwigo_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - PiwigoService * self; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GdkPixbuf** _tmp7_; - gint _tmp7__length1; - GdkPixbuf** _tmp8_; - gint _tmp8__length1; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (info != NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup ("Bruno Girin"); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 ((*info).authors); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).authors = _tmp0_; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (_ ("Copyright 2016 Software Freedom Conservancy Inc.")); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 ((*info).copyright); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).copyright = _tmp1_; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 ((*info).translators); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).translators = _tmp2_; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = g_strdup (_VERSION); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 ((*info).version); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).version = _tmp3_; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = g_strdup (RESOURCES_WEBSITE_NAME); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 ((*info).website_name); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).website_name = _tmp4_; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = g_strdup (RESOURCES_WEBSITE_URL); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 ((*info).website_url); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).website_url = _tmp5_; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).is_license_wordwrapped = FALSE; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = g_strdup (RESOURCES_LICENSE); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 ((*info).license); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).license = _tmp6_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = piwigo_service_icon_pixbuf_set; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7__length1 = piwigo_service_icon_pixbuf_set_length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup12 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8__length1 = _tmp7__length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).icons = _tmp8_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*info).icons_length1 = _tmp8__length1; -#line 1447 "PiwigoPublishing.c" -} - - -static void -piwigo_service_real_activation (SpitPluggable* base, - gboolean enabled) -{ - PiwigoService * self; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService); -#line 1458 "PiwigoPublishing.c" -} - - -static SpitPublishingPublisher* -piwigo_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - PiwigoService * self; - SpitPublishingPublisher* result = NULL; - PublishingPiwigoPiwigoPublisher* _tmp0_; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService); -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_piwigo_piwigo_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 1479 "PiwigoPublishing.c" -} - - -static SpitPublishingPublisherMediaType -piwigo_service_real_get_supported_media (SpitPublishingService* base) -{ - PiwigoService * self; - SpitPublishingPublisherMediaType result = 0; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PIWIGO_SERVICE, PiwigoService); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO; -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 1494 "PiwigoPublishing.c" -} - - -static void -piwigo_service_class_init (PiwigoServiceClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - piwigo_service_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = piwigo_service_finalize; -#line 1505 "PiwigoPublishing.c" -} - - -static void -piwigo_service_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - piwigo_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) piwigo_service_real_get_pluggable_interface; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) piwigo_service_real_get_id; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) piwigo_service_real_get_pluggable_name; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) piwigo_service_real_get_info; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) piwigo_service_real_activation; -#line 1524 "PiwigoPublishing.c" -} - - -static void -piwigo_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - piwigo_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) piwigo_service_real_create_publisher; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) piwigo_service_real_get_supported_media; -#line 1537 "PiwigoPublishing.c" -} - - -static void -piwigo_service_instance_init (PiwigoService * self) -{ -} - - -static void -piwigo_service_finalize (GObject * obj) -{ - PiwigoService * self; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PIWIGO_SERVICE, PiwigoService); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (piwigo_service_parent_class)->finalize (obj); -#line 1555 "PiwigoPublishing.c" -} - - -GType -piwigo_service_get_type (void) -{ - static volatile gsize piwigo_service_type_id__volatile = 0; - if (g_once_init_enter (&piwigo_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PiwigoServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) piwigo_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PiwigoService), 0, (GInstanceInitFunc) piwigo_service_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) piwigo_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) piwigo_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType piwigo_service_type_id; - piwigo_service_type_id = g_type_register_static (G_TYPE_OBJECT, "PiwigoService", &g_define_type_info, 0); - g_type_add_interface_static (piwigo_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (piwigo_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info); - g_once_init_leave (&piwigo_service_type_id__volatile, piwigo_service_type_id); - } - return piwigo_service_type_id__volatile; -} - - -PublishingPiwigoCategory* -publishing_piwigo_category_construct (GType object_type, - gint id, - const gchar* name, - const gchar* uppercats, - const gchar* comment) -{ - PublishingPiwigoCategory* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (uppercats != NULL, NULL); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoCategory*) g_type_create_instance (object_type); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->id = id; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (name); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->name); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->name = _tmp0_; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (uppercats); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->uppercats); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->uppercats = _tmp1_; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_strdup (comment); -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->comment); -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->comment = _tmp2_; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 1616 "PiwigoPublishing.c" -} - - -PublishingPiwigoCategory* -publishing_piwigo_category_new (gint id, - const gchar* name, - const gchar* uppercats, - const gchar* comment) -{ -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_category_construct (PUBLISHING_PIWIGO_TYPE_CATEGORY, id, name, uppercats, comment); -#line 1628 "PiwigoPublishing.c" -} - - -PublishingPiwigoCategory* -publishing_piwigo_category_construct_local (GType object_type, - const gchar* name, - gint parent_id, - const gchar* comment) -{ - PublishingPiwigoCategory* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoCategory*) g_type_create_instance (object_type); -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->id = PUBLISHING_PIWIGO_CATEGORY_NO_ID; -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (name); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->name); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->name = _tmp0_; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup_printf ("%i", parent_id); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->uppercats); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->uppercats = _tmp1_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_strdup (comment); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->comment); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->comment = _tmp2_; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 1668 "PiwigoPublishing.c" -} - - -PublishingPiwigoCategory* -publishing_piwigo_category_new_local (const gchar* name, - gint parent_id, - const gchar* comment) -{ -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_category_construct_local (PUBLISHING_PIWIGO_TYPE_CATEGORY, name, parent_id, comment); -#line 1679 "PiwigoPublishing.c" -} - - -gboolean -publishing_piwigo_category_is_local (PublishingPiwigoCategory* self) -{ - gboolean result = FALSE; - gint _tmp0_; -#line 85 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_CATEGORY (self), FALSE); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->id; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_ == PUBLISHING_PIWIGO_CATEGORY_NO_ID; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 1696 "PiwigoPublishing.c" -} - - -gboolean -publishing_piwigo_category_equal (PublishingPiwigoCategory* _self_, - PublishingPiwigoCategory* other) -{ - gboolean result = FALSE; - gint _tmp0_; - gint _tmp1_; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_CATEGORY (_self_), FALSE); -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_CATEGORY (other), FALSE); -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _self_->id; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = other->id; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_ == _tmp1_; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 1719 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_value_category_init (GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1728 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_value_category_free_value (GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (value->data[0].v_pointer) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_category_unref (value->data[0].v_pointer); -#line 1739 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_value_category_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dest_value->data[0].v_pointer = publishing_piwigo_category_ref (src_value->data[0].v_pointer); -#line 1752 "PiwigoPublishing.c" - } else { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 1756 "PiwigoPublishing.c" - } -} - - -static gpointer -publishing_piwigo_value_category_peek_pointer (const GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return value->data[0].v_pointer; -#line 1766 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_value_category_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (collect_values[0].v_pointer) { -#line 1778 "PiwigoPublishing.c" - PublishingPiwigoCategory * object; - object = collect_values[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1785 "PiwigoPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1789 "PiwigoPublishing.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = publishing_piwigo_category_ref (object); -#line 1793 "PiwigoPublishing.c" - } else { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1797 "PiwigoPublishing.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 1801 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_value_category_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingPiwigoCategory ** object_p; - object_p = collect_values[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!object_p) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1817 "PiwigoPublishing.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!value->data[0].v_pointer) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = NULL; -#line 1823 "PiwigoPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 1827 "PiwigoPublishing.c" - } else { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = publishing_piwigo_category_ref (value->data[0].v_pointer); -#line 1831 "PiwigoPublishing.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 1835 "PiwigoPublishing.c" -} - - -GParamSpec* -publishing_piwigo_param_spec_category (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingPiwigoParamSpecCategory* spec; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PIWIGO_TYPE_CATEGORY), NULL); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return G_PARAM_SPEC (spec); -#line 1855 "PiwigoPublishing.c" -} - - -gpointer -publishing_piwigo_value_get_category (const GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_CATEGORY), NULL); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return value->data[0].v_pointer; -#line 1866 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_value_set_category (GValue* value, - gpointer v_object) -{ - PublishingPiwigoCategory * old; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_CATEGORY)); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - old = value->data[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (v_object) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_CATEGORY)); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = v_object; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_category_ref (value->data[0].v_pointer); -#line 1889 "PiwigoPublishing.c" - } else { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1893 "PiwigoPublishing.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (old) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_category_unref (old); -#line 1899 "PiwigoPublishing.c" - } -} - - -void -publishing_piwigo_value_take_category (GValue* value, - gpointer v_object) -{ - PublishingPiwigoCategory * old; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_CATEGORY)); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - old = value->data[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (v_object) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_CATEGORY)); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = v_object; -#line 1921 "PiwigoPublishing.c" - } else { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1925 "PiwigoPublishing.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (old) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_category_unref (old); -#line 1931 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_category_class_init (PublishingPiwigoCategoryClass * klass) -{ -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_category_parent_class = g_type_class_peek_parent (klass); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingPiwigoCategoryClass *) klass)->finalize = publishing_piwigo_category_finalize; -#line 1943 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_category_instance_init (PublishingPiwigoCategory * self) -{ -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->ref_count = 1; -#line 1952 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_category_finalize (PublishingPiwigoCategory * obj) -{ - PublishingPiwigoCategory * self; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_CATEGORY, PublishingPiwigoCategory); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_destroy (self); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->name); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->comment); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->display_name); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->uppercats); -#line 1972 "PiwigoPublishing.c" -} - - -GType -publishing_piwigo_category_get_type (void) -{ - static volatile gsize publishing_piwigo_category_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_category_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_piwigo_value_category_init, publishing_piwigo_value_category_free_value, publishing_piwigo_value_category_copy_value, publishing_piwigo_value_category_peek_pointer, "p", publishing_piwigo_value_category_collect_value, "p", publishing_piwigo_value_category_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoCategoryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_category_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoCategory), 0, (GInstanceInitFunc) publishing_piwigo_category_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_piwigo_category_type_id; - publishing_piwigo_category_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPiwigoCategory", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_piwigo_category_type_id__volatile, publishing_piwigo_category_type_id); - } - return publishing_piwigo_category_type_id__volatile; -} - - -gpointer -publishing_piwigo_category_ref (gpointer instance) -{ - PublishingPiwigoCategory * self; - self = instance; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return instance; -#line 2001 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_category_unref (gpointer instance) -{ - PublishingPiwigoCategory * self; - self = instance; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - PUBLISHING_PIWIGO_CATEGORY_GET_CLASS (self)->finalize (self); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2016 "PiwigoPublishing.c" - } -} - - -PublishingPiwigoPermissionLevel* -publishing_piwigo_permission_level_construct (GType object_type, - gint id, - const gchar* name) -{ - PublishingPiwigoPermissionLevel* self = NULL; - gchar* _tmp0_; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoPermissionLevel*) g_type_create_instance (object_type); -#line 99 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->id = id; -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (name); -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->name); -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->name = _tmp0_; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 2042 "PiwigoPublishing.c" -} - - -PublishingPiwigoPermissionLevel* -publishing_piwigo_permission_level_new (gint id, - const gchar* name) -{ -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_permission_level_construct (PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL, id, name); -#line 2052 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_value_permission_level_init (GValue* value) -{ -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2061 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_value_permission_level_free_value (GValue* value) -{ -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (value->data[0].v_pointer) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_permission_level_unref (value->data[0].v_pointer); -#line 2072 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_value_permission_level_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dest_value->data[0].v_pointer = publishing_piwigo_permission_level_ref (src_value->data[0].v_pointer); -#line 2085 "PiwigoPublishing.c" - } else { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 2089 "PiwigoPublishing.c" - } -} - - -static gpointer -publishing_piwigo_value_permission_level_peek_pointer (const GValue* value) -{ -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return value->data[0].v_pointer; -#line 2099 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_value_permission_level_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (collect_values[0].v_pointer) { -#line 2111 "PiwigoPublishing.c" - PublishingPiwigoPermissionLevel * object; - object = collect_values[0].v_pointer; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2118 "PiwigoPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2122 "PiwigoPublishing.c" - } -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = publishing_piwigo_permission_level_ref (object); -#line 2126 "PiwigoPublishing.c" - } else { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2130 "PiwigoPublishing.c" - } -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 2134 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_value_permission_level_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingPiwigoPermissionLevel ** object_p; - object_p = collect_values[0].v_pointer; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!object_p) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2150 "PiwigoPublishing.c" - } -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!value->data[0].v_pointer) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = NULL; -#line 2156 "PiwigoPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 2160 "PiwigoPublishing.c" - } else { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = publishing_piwigo_permission_level_ref (value->data[0].v_pointer); -#line 2164 "PiwigoPublishing.c" - } -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 2168 "PiwigoPublishing.c" -} - - -GParamSpec* -publishing_piwigo_param_spec_permission_level (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingPiwigoParamSpecPermissionLevel* spec; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL), NULL); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return G_PARAM_SPEC (spec); -#line 2188 "PiwigoPublishing.c" -} - - -gpointer -publishing_piwigo_value_get_permission_level (const GValue* value) -{ -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL), NULL); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return value->data[0].v_pointer; -#line 2199 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_value_set_permission_level (GValue* value, - gpointer v_object) -{ - PublishingPiwigoPermissionLevel * old; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL)); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - old = value->data[0].v_pointer; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (v_object) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL)); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = v_object; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_permission_level_ref (value->data[0].v_pointer); -#line 2222 "PiwigoPublishing.c" - } else { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2226 "PiwigoPublishing.c" - } -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (old) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_permission_level_unref (old); -#line 2232 "PiwigoPublishing.c" - } -} - - -void -publishing_piwigo_value_take_permission_level (GValue* value, - gpointer v_object) -{ - PublishingPiwigoPermissionLevel * old; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL)); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - old = value->data[0].v_pointer; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (v_object) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL)); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = v_object; -#line 2254 "PiwigoPublishing.c" - } else { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2258 "PiwigoPublishing.c" - } -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (old) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_permission_level_unref (old); -#line 2264 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_permission_level_class_init (PublishingPiwigoPermissionLevelClass * klass) -{ -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_permission_level_parent_class = g_type_class_peek_parent (klass); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingPiwigoPermissionLevelClass *) klass)->finalize = publishing_piwigo_permission_level_finalize; -#line 2276 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_permission_level_instance_init (PublishingPiwigoPermissionLevel * self) -{ -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->ref_count = 1; -#line 2285 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_permission_level_finalize (PublishingPiwigoPermissionLevel * obj) -{ - PublishingPiwigoPermissionLevel * self; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_PERMISSION_LEVEL, PublishingPiwigoPermissionLevel); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_destroy (self); -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->name); -#line 2299 "PiwigoPublishing.c" -} - - -GType -publishing_piwigo_permission_level_get_type (void) -{ - static volatile gsize publishing_piwigo_permission_level_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_permission_level_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_piwigo_value_permission_level_init, publishing_piwigo_value_permission_level_free_value, publishing_piwigo_value_permission_level_copy_value, publishing_piwigo_value_permission_level_peek_pointer, "p", publishing_piwigo_value_permission_level_collect_value, "p", publishing_piwigo_value_permission_level_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoPermissionLevelClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_permission_level_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoPermissionLevel), 0, (GInstanceInitFunc) publishing_piwigo_permission_level_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_piwigo_permission_level_type_id; - publishing_piwigo_permission_level_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPiwigoPermissionLevel", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_piwigo_permission_level_type_id__volatile, publishing_piwigo_permission_level_type_id); - } - return publishing_piwigo_permission_level_type_id__volatile; -} - - -gpointer -publishing_piwigo_permission_level_ref (gpointer instance) -{ - PublishingPiwigoPermissionLevel * self; - self = instance; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return instance; -#line 2328 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_permission_level_unref (gpointer instance) -{ - PublishingPiwigoPermissionLevel * self; - self = instance; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - PUBLISHING_PIWIGO_PERMISSION_LEVEL_GET_CLASS (self)->finalize (self); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2343 "PiwigoPublishing.c" - } -} - - -PublishingPiwigoSizeEntry* -publishing_piwigo_size_entry_construct (GType object_type, - gint id, - const gchar* name) -{ - PublishingPiwigoSizeEntry* self = NULL; - gchar* _tmp0_; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoSizeEntry*) g_type_create_instance (object_type); -#line 109 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->id = id; -#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (name); -#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->name); -#line 110 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->name = _tmp0_; -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 2369 "PiwigoPublishing.c" -} - - -PublishingPiwigoSizeEntry* -publishing_piwigo_size_entry_new (gint id, - const gchar* name) -{ -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_size_entry_construct (PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY, id, name); -#line 2379 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_value_size_entry_init (GValue* value) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2388 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_value_size_entry_free_value (GValue* value) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (value->data[0].v_pointer) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_size_entry_unref (value->data[0].v_pointer); -#line 2399 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_value_size_entry_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dest_value->data[0].v_pointer = publishing_piwigo_size_entry_ref (src_value->data[0].v_pointer); -#line 2412 "PiwigoPublishing.c" - } else { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 2416 "PiwigoPublishing.c" - } -} - - -static gpointer -publishing_piwigo_value_size_entry_peek_pointer (const GValue* value) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return value->data[0].v_pointer; -#line 2426 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_value_size_entry_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (collect_values[0].v_pointer) { -#line 2438 "PiwigoPublishing.c" - PublishingPiwigoSizeEntry * object; - object = collect_values[0].v_pointer; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2445 "PiwigoPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2449 "PiwigoPublishing.c" - } -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = publishing_piwigo_size_entry_ref (object); -#line 2453 "PiwigoPublishing.c" - } else { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2457 "PiwigoPublishing.c" - } -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 2461 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_value_size_entry_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingPiwigoSizeEntry ** object_p; - object_p = collect_values[0].v_pointer; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!object_p) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2477 "PiwigoPublishing.c" - } -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!value->data[0].v_pointer) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = NULL; -#line 2483 "PiwigoPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 2487 "PiwigoPublishing.c" - } else { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = publishing_piwigo_size_entry_ref (value->data[0].v_pointer); -#line 2491 "PiwigoPublishing.c" - } -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 2495 "PiwigoPublishing.c" -} - - -GParamSpec* -publishing_piwigo_param_spec_size_entry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingPiwigoParamSpecSizeEntry* spec; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY), NULL); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return G_PARAM_SPEC (spec); -#line 2515 "PiwigoPublishing.c" -} - - -gpointer -publishing_piwigo_value_get_size_entry (const GValue* value) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY), NULL); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return value->data[0].v_pointer; -#line 2526 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_value_set_size_entry (GValue* value, - gpointer v_object) -{ - PublishingPiwigoSizeEntry * old; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY)); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - old = value->data[0].v_pointer; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (v_object) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY)); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = v_object; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_size_entry_ref (value->data[0].v_pointer); -#line 2549 "PiwigoPublishing.c" - } else { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2553 "PiwigoPublishing.c" - } -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (old) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_size_entry_unref (old); -#line 2559 "PiwigoPublishing.c" - } -} - - -void -publishing_piwigo_value_take_size_entry (GValue* value, - gpointer v_object) -{ - PublishingPiwigoSizeEntry * old; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY)); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - old = value->data[0].v_pointer; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (v_object) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY)); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = v_object; -#line 2581 "PiwigoPublishing.c" - } else { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2585 "PiwigoPublishing.c" - } -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (old) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_size_entry_unref (old); -#line 2591 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_size_entry_class_init (PublishingPiwigoSizeEntryClass * klass) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_size_entry_parent_class = g_type_class_peek_parent (klass); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingPiwigoSizeEntryClass *) klass)->finalize = publishing_piwigo_size_entry_finalize; -#line 2603 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_size_entry_instance_init (PublishingPiwigoSizeEntry * self) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->ref_count = 1; -#line 2612 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_size_entry_finalize (PublishingPiwigoSizeEntry * obj) -{ - PublishingPiwigoSizeEntry * self; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_SIZE_ENTRY, PublishingPiwigoSizeEntry); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_destroy (self); -#line 106 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->name); -#line 2626 "PiwigoPublishing.c" -} - - -GType -publishing_piwigo_size_entry_get_type (void) -{ - static volatile gsize publishing_piwigo_size_entry_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_size_entry_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_piwigo_value_size_entry_init, publishing_piwigo_value_size_entry_free_value, publishing_piwigo_value_size_entry_copy_value, publishing_piwigo_value_size_entry_peek_pointer, "p", publishing_piwigo_value_size_entry_collect_value, "p", publishing_piwigo_value_size_entry_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoSizeEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_size_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoSizeEntry), 0, (GInstanceInitFunc) publishing_piwigo_size_entry_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_piwigo_size_entry_type_id; - publishing_piwigo_size_entry_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPiwigoSizeEntry", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_piwigo_size_entry_type_id__volatile, publishing_piwigo_size_entry_type_id); - } - return publishing_piwigo_size_entry_type_id__volatile; -} - - -gpointer -publishing_piwigo_size_entry_ref (gpointer instance) -{ - PublishingPiwigoSizeEntry * self; - self = instance; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return instance; -#line 2655 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_size_entry_unref (gpointer instance) -{ - PublishingPiwigoSizeEntry * self; - self = instance; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - PUBLISHING_PIWIGO_SIZE_ENTRY_GET_CLASS (self)->finalize (self); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2670 "PiwigoPublishing.c" - } -} - - -PublishingPiwigoPublishingParameters* -publishing_piwigo_publishing_parameters_construct (GType object_type) -{ - PublishingPiwigoPublishingParameters* self = NULL; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoPublishingParameters*) g_type_create_instance (object_type); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 2683 "PiwigoPublishing.c" -} - - -PublishingPiwigoPublishingParameters* -publishing_piwigo_publishing_parameters_new (void) -{ -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_publishing_parameters_construct (PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS); -#line 2692 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_value_publishing_parameters_init (GValue* value) -{ -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2701 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_value_publishing_parameters_free_value (GValue* value) -{ -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (value->data[0].v_pointer) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_parameters_unref (value->data[0].v_pointer); -#line 2712 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_value_publishing_parameters_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dest_value->data[0].v_pointer = publishing_piwigo_publishing_parameters_ref (src_value->data[0].v_pointer); -#line 2725 "PiwigoPublishing.c" - } else { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 2729 "PiwigoPublishing.c" - } -} - - -static gpointer -publishing_piwigo_value_publishing_parameters_peek_pointer (const GValue* value) -{ -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return value->data[0].v_pointer; -#line 2739 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_value_publishing_parameters_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (collect_values[0].v_pointer) { -#line 2751 "PiwigoPublishing.c" - PublishingPiwigoPublishingParameters * object; - object = collect_values[0].v_pointer; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2758 "PiwigoPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2762 "PiwigoPublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = publishing_piwigo_publishing_parameters_ref (object); -#line 2766 "PiwigoPublishing.c" - } else { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2770 "PiwigoPublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 2774 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_value_publishing_parameters_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingPiwigoPublishingParameters ** object_p; - object_p = collect_values[0].v_pointer; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!object_p) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2790 "PiwigoPublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!value->data[0].v_pointer) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = NULL; -#line 2796 "PiwigoPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 2800 "PiwigoPublishing.c" - } else { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *object_p = publishing_piwigo_publishing_parameters_ref (value->data[0].v_pointer); -#line 2804 "PiwigoPublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 2808 "PiwigoPublishing.c" -} - - -GParamSpec* -publishing_piwigo_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingPiwigoParamSpecPublishingParameters* spec; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return G_PARAM_SPEC (spec); -#line 2828 "PiwigoPublishing.c" -} - - -gpointer -publishing_piwigo_value_get_publishing_parameters (const GValue* value) -{ -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return value->data[0].v_pointer; -#line 2839 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_value_set_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingPiwigoPublishingParameters * old; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS)); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - old = value->data[0].v_pointer; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (v_object) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS)); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = v_object; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_parameters_ref (value->data[0].v_pointer); -#line 2862 "PiwigoPublishing.c" - } else { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2866 "PiwigoPublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (old) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_parameters_unref (old); -#line 2872 "PiwigoPublishing.c" - } -} - - -void -publishing_piwigo_value_take_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingPiwigoPublishingParameters * old; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS)); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - old = value->data[0].v_pointer; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (v_object) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS)); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = v_object; -#line 2894 "PiwigoPublishing.c" - } else { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - value->data[0].v_pointer = NULL; -#line 2898 "PiwigoPublishing.c" - } -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (old) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_parameters_unref (old); -#line 2904 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_publishing_parameters_class_init (PublishingPiwigoPublishingParametersClass * klass) -{ -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_parameters_parent_class = g_type_class_peek_parent (klass); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingPiwigoPublishingParametersClass *) klass)->finalize = publishing_piwigo_publishing_parameters_finalize; -#line 2916 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_parameters_instance_init (PublishingPiwigoPublishingParameters * self) -{ -#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->category = NULL; -#line 116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->perm_level = NULL; -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->photo_size = NULL; -#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->title_as_comment = FALSE; -#line 119 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->no_upload_tags = FALSE; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->ref_count = 1; -#line 2935 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_parameters_finalize (PublishingPiwigoPublishingParameters * obj) -{ - PublishingPiwigoPublishingParameters * self; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS, PublishingPiwigoPublishingParameters); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_destroy (self); -#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (self->category); -#line 116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_permission_level_unref0 (self->perm_level); -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_size_entry_unref0 (self->photo_size); -#line 2953 "PiwigoPublishing.c" -} - - -GType -publishing_piwigo_publishing_parameters_get_type (void) -{ - static volatile gsize publishing_piwigo_publishing_parameters_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_publishing_parameters_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_piwigo_value_publishing_parameters_init, publishing_piwigo_value_publishing_parameters_free_value, publishing_piwigo_value_publishing_parameters_copy_value, publishing_piwigo_value_publishing_parameters_peek_pointer, "p", publishing_piwigo_value_publishing_parameters_collect_value, "p", publishing_piwigo_value_publishing_parameters_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoPublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoPublishingParameters), 0, (GInstanceInitFunc) publishing_piwigo_publishing_parameters_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_piwigo_publishing_parameters_type_id; - publishing_piwigo_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingPiwigoPublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_piwigo_publishing_parameters_type_id__volatile, publishing_piwigo_publishing_parameters_type_id); - } - return publishing_piwigo_publishing_parameters_type_id__volatile; -} - - -gpointer -publishing_piwigo_publishing_parameters_ref (gpointer instance) -{ - PublishingPiwigoPublishingParameters * self; - self = instance; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return instance; -#line 2982 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_publishing_parameters_unref (gpointer instance) -{ - PublishingPiwigoPublishingParameters * self; - self = instance; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self); -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2997 "PiwigoPublishing.c" - } -} - - -PublishingPiwigoPiwigoPublisher* -publishing_piwigo_piwigo_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingPiwigoPiwigoPublisher * self = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingPiwigoSession* _tmp2_; -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoPiwigoPublisher*) g_object_new (object_type, NULL); -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:137: PiwigoPublisher instantiated."); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _g_object_ref0 (service); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->service); -#line 138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->service = _tmp0_; -#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _g_object_ref0 (host); -#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->host); -#line 139 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->host = _tmp1_; -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_piwigo_session_new (); -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->session = _tmp2_; -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 3039 "PiwigoPublishing.c" -} - - -PublishingPiwigoPiwigoPublisher* -publishing_piwigo_piwigo_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_piwigo_publisher_construct (PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, service, host); -#line 3049 "PiwigoPublishing.c" -} - - -static SpitPublishingService* -publishing_piwigo_piwigo_publisher_real_get_service (SpitPublishingPublisher* base) -{ - PublishingPiwigoPiwigoPublisher * self; - SpitPublishingService* result = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingService* _tmp1_; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher); -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->service; -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3070 "PiwigoPublishing.c" -} - - -SpitPublishingPluginHost* -publishing_piwigo_piwigo_publisher_get_host (PublishingPiwigoPiwigoPublisher* self) -{ - SpitPublishingPluginHost* result = NULL; - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), NULL); -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3090 "PiwigoPublishing.c" -} - - -static gboolean -publishing_piwigo_piwigo_publisher_real_is_running (SpitPublishingPublisher* base) -{ - PublishingPiwigoPiwigoPublisher * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->running; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3108 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_real_start (SpitPublishingPublisher* base) -{ - PublishingPiwigoPiwigoPublisher * self; - PublishingPiwigoSession* _tmp0_; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher); -#line 158 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 3123 "PiwigoPublishing.c" - } -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:161: PiwigoPublisher: starting interaction."); -#line 163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->running = TRUE; -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->session; -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:166: PiwigoPublisher: session is authenticated."); -#line 167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_fetch_categories (self); -#line 3137 "PiwigoPublishing.c" - } else { - gchar* persistent_url = NULL; - gchar* _tmp1_; - gchar* persistent_username = NULL; - gchar* _tmp2_; - gchar* persistent_password = NULL; - gchar* _tmp3_; - gboolean _tmp4_ = FALSE; - gboolean _tmp5_ = FALSE; - const gchar* _tmp6_; -#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:169: PiwigoPublisher: session is not authenticat" \ -"ed."); -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = publishing_piwigo_piwigo_publisher_get_persistent_url (self); -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_url = _tmp1_; -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_piwigo_piwigo_publisher_get_persistent_username (self); -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_username = _tmp2_; -#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_piwigo_piwigo_publisher_get_persistent_password (self); -#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_password = _tmp3_; -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = persistent_url; -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp6_ != NULL) { -#line 3166 "PiwigoPublishing.c" - const gchar* _tmp7_; -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = persistent_username; -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp7_ != NULL; -#line 3172 "PiwigoPublishing.c" - } else { -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = FALSE; -#line 3176 "PiwigoPublishing.c" - } -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp5_) { -#line 3180 "PiwigoPublishing.c" - const gchar* _tmp8_; -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = persistent_password; -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp8_ != NULL; -#line 3186 "PiwigoPublishing.c" - } else { -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = FALSE; -#line 3190 "PiwigoPublishing.c" - } -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp4_) { -#line 3194 "PiwigoPublishing.c" - const gchar* _tmp9_; - const gchar* _tmp10_; - const gchar* _tmp11_; -#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = persistent_url; -#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = persistent_username; -#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = persistent_password; -#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_network_login (self, _tmp9_, _tmp10_, _tmp11_, publishing_piwigo_piwigo_publisher_get_remember_password (self)); -#line 3206 "PiwigoPublishing.c" - } else { -#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_authentication_pane (self, PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO); -#line 3210 "PiwigoPublishing.c" - } -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_password); -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_username); -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_url); -#line 3218 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_piwigo_publisher_real_stop (SpitPublishingPublisher* base) -{ - PublishingPiwigoPiwigoPublisher * self; -#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher); -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->running = FALSE; -#line 3231 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_piwigo_publisher_get_persistent_url (PublishingPiwigoPiwigoPublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), NULL); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "url", NULL); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3251 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_persistent_url (PublishingPiwigoPiwigoPublisher* self, - const gchar* url) -{ - SpitPublishingPluginHost* _tmp0_; -#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (url != NULL); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "url", url); -#line 3268 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_piwigo_publisher_get_persistent_username (PublishingPiwigoPiwigoPublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), NULL); -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", NULL); -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3288 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_persistent_username (PublishingPiwigoPiwigoPublisher* self, - const gchar* username) -{ - SpitPublishingPluginHost* _tmp0_; -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (username != NULL); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "username", username); -#line 3305 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_piwigo_publisher_get_persistent_password (PublishingPiwigoPiwigoPublisher* self) -{ - gchar* result = NULL; - SpitPublishingPluginHost* _tmp0_; - gchar* _tmp1_; -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), NULL); -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = spit_host_interface_get_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "password", NULL); -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3325 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_persistent_password (PublishingPiwigoPiwigoPublisher* self, - const gchar* password) -{ - SpitPublishingPluginHost* _tmp0_; -#line 207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "password", password); -#line 3340 "PiwigoPublishing.c" -} - - -gboolean -publishing_piwigo_piwigo_publisher_get_remember_password (PublishingPiwigoPiwigoPublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), FALSE); -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "remember-password", FALSE); -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3357 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_remember_password (PublishingPiwigoPiwigoPublisher* self, - gboolean remember_password) -{ - SpitPublishingPluginHost* _tmp0_; -#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "remember-password", remember_password); -#line 3372 "PiwigoPublishing.c" -} - - -gint -publishing_piwigo_piwigo_publisher_get_last_category (PublishingPiwigoPiwigoPublisher* self) -{ - gint result = 0; - SpitPublishingPluginHost* _tmp0_; -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), 0); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-category", -1); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3389 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_last_category (PublishingPiwigoPiwigoPublisher* self, - gint last_category) -{ - SpitPublishingPluginHost* _tmp0_; -#line 223 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-category", last_category); -#line 3404 "PiwigoPublishing.c" -} - - -gint -publishing_piwigo_piwigo_publisher_get_last_permission_level (PublishingPiwigoPiwigoPublisher* self) -{ - gint result = 0; - SpitPublishingPluginHost* _tmp0_; -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), 0); -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-permission-level", -1); -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3421 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_last_permission_level (PublishingPiwigoPiwigoPublisher* self, - gint last_permission_level) -{ - SpitPublishingPluginHost* _tmp0_; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-permission-level", last_permission_level); -#line 3436 "PiwigoPublishing.c" -} - - -gint -publishing_piwigo_piwigo_publisher_get_last_photo_size (PublishingPiwigoPiwigoPublisher* self) -{ - gint result = 0; - SpitPublishingPluginHost* _tmp0_; -#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), 0); -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-photo-size", -1); -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3453 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_last_photo_size (PublishingPiwigoPiwigoPublisher* self, - gint last_photo_size) -{ - SpitPublishingPluginHost* _tmp0_; -#line 239 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-photo-size", last_photo_size); -#line 3468 "PiwigoPublishing.c" -} - - -static gboolean -publishing_piwigo_piwigo_publisher_get_last_title_as_comment (PublishingPiwigoPiwigoPublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), FALSE); -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-title-as-comment", FALSE); -#line 244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3485 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_last_title_as_comment (PublishingPiwigoPiwigoPublisher* self, - gboolean title_as_comment) -{ - SpitPublishingPluginHost* _tmp0_; -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-title-as-comment", title_as_comment); -#line 3500 "PiwigoPublishing.c" -} - - -static gboolean -publishing_piwigo_piwigo_publisher_get_last_no_upload_tags (PublishingPiwigoPiwigoPublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), FALSE); -#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-no-upload-tags", FALSE); -#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3517 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_last_no_upload_tags (PublishingPiwigoPiwigoPublisher* self, - gboolean no_upload_tags) -{ - SpitPublishingPluginHost* _tmp0_; -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "last-no-upload-tags", no_upload_tags); -#line 3532 "PiwigoPublishing.c" -} - - -static gboolean -publishing_piwigo_piwigo_publisher_get_metadata_removal_choice (PublishingPiwigoPiwigoPublisher* self) -{ - gboolean result = FALSE; - SpitPublishingPluginHost* _tmp0_; -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), FALSE); -#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = spit_host_interface_get_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", FALSE); -#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 3549 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_set_metadata_removal_choice (PublishingPiwigoPiwigoPublisher* self, - gboolean strip_metadata) -{ - SpitPublishingPluginHost* _tmp0_; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_host_interface_set_config_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "strip_metadata", strip_metadata); -#line 3564 "PiwigoPublishing.c" -} - - -/** - * Action that shows the authentication pane. - * - * This action method shows the authentication pane. It is shown at the - * very beginning of the interaction when no persistent parameters are found - * or after a failed login attempt using persisted parameters. It can be - * given a mode flag to specify whether it should be displayed in initial - * mode or in any of the error modes that it supports. - * - * @param mode the mode for the authentication pane - */ -static void -_publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked_publishing_piwigo_authentication_pane_login (PublishingPiwigoAuthenticationPane* _sender, - const gchar* url, - const gchar* user, - const gchar* password, - gboolean remember_password, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked ((PublishingPiwigoPiwigoPublisher*) self, url, user, password, remember_password); -#line 3589 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_do_show_authentication_pane (PublishingPiwigoPiwigoPublisher* self, - PublishingPiwigoAuthenticationPaneMode mode) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingPiwigoAuthenticationPane* authentication_pane = NULL; - PublishingPiwigoAuthenticationPane* _tmp1_; - SpitPublishingPluginHost* _tmp2_; - SpitPublishingPluginHost* _tmp3_; - GtkWidget* _tmp4_; - GtkWidget* _tmp5_; -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:281: ACTION: installing authentication pane"); -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = publishing_piwigo_authentication_pane_new (self, mode); -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - authentication_pane = _tmp1_; -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (authentication_pane, "login", (GCallback) _publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked_publishing_piwigo_authentication_pane_login, self, 0); -#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->host; -#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (authentication_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->host; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = shotwell_plugins_common_builder_pane_get_default_widget (G_TYPE_CHECK_INSTANCE_CAST (authentication_pane, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp4_; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp3_, _tmp5_); -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp5_); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (authentication_pane); -#line 3634 "PiwigoPublishing.c" -} - - -static void -__lambda7_ (PublishingPiwigoPiwigoPublisher* self) -{ - PublishingPiwigoSession* _tmp0_; - PublishingPiwigoSession* _tmp1_; - gchar* persistent_url = NULL; - gchar* _tmp2_; - gchar* persistent_username = NULL; - gchar* _tmp3_; - gchar* persistent_password = NULL; - gchar* _tmp4_; - gboolean _tmp5_ = FALSE; - gboolean _tmp6_ = FALSE; - const gchar* _tmp7_; -#line 297 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:297: SSL: User wants us to retry with broken cer" \ -"tificate"); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_piwigo_session_new (); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->session = _tmp0_; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->session; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_session_set_insecure (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)); -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_piwigo_piwigo_publisher_get_persistent_url (self); -#line 301 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_url = _tmp2_; -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_piwigo_piwigo_publisher_get_persistent_username (self); -#line 302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_username = _tmp3_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = publishing_piwigo_piwigo_publisher_get_persistent_password (self); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_password = _tmp4_; -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = persistent_url; -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp7_ != NULL) { -#line 3680 "PiwigoPublishing.c" - const gchar* _tmp8_; -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = persistent_username; -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp8_ != NULL; -#line 3686 "PiwigoPublishing.c" - } else { -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = FALSE; -#line 3690 "PiwigoPublishing.c" - } -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp6_) { -#line 3694 "PiwigoPublishing.c" - const gchar* _tmp9_; -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = persistent_password; -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp9_ != NULL; -#line 3700 "PiwigoPublishing.c" - } else { -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = FALSE; -#line 3704 "PiwigoPublishing.c" - } -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp5_) { -#line 3708 "PiwigoPublishing.c" - const gchar* _tmp10_; - const gchar* _tmp11_; - const gchar* _tmp12_; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = persistent_url; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = persistent_username; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = persistent_password; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_network_login (self, _tmp10_, _tmp11_, _tmp12_, publishing_piwigo_piwigo_publisher_get_remember_password (self)); -#line 3720 "PiwigoPublishing.c" - } else { -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_authentication_pane (self, PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO); -#line 3724 "PiwigoPublishing.c" - } -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_password); -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_username); -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_url); -#line 3732 "PiwigoPublishing.c" -} - - -static void -___lambda7__publishing_piwigo_ssl_error_pane_proceed (PublishingPiwigoSSLErrorPane* _sender, - gpointer self) -{ -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - __lambda7_ ((PublishingPiwigoPiwigoPublisher*) self); -#line 3742 "PiwigoPublishing.c" -} - - -static void -_vala_SoupURI_free (SoupURI* self) -{ -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_boxed_free (soup_uri_get_type (), self); -#line 3751 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_do_show_ssl_downgrade_pane (PublishingPiwigoPiwigoPublisher* self, - PublishingPiwigoSessionLoginTransaction* trans, - const gchar* url) -{ - SoupURI* uri = NULL; - SoupURI* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingPiwigoSSLErrorPane* ssl_pane = NULL; - const gchar* _tmp2_; - PublishingPiwigoSSLErrorPane* _tmp3_; - SpitPublishingPluginHost* _tmp4_; - SpitPublishingPluginHost* _tmp5_; - GtkWidget* _tmp6_; - GtkWidget* _tmp7_; -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_SESSION_LOGIN_TRANSACTION (trans)); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (url != NULL); -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = soup_uri_new (url); -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - uri = _tmp0_; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->host; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp1_, FALSE); -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = soup_uri_get_host (uri); -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_piwigo_ssl_error_pane_new (trans, _tmp2_); -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ssl_pane = _tmp3_; -#line 296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (ssl_pane, "proceed", (GCallback) ___lambda7__publishing_piwigo_ssl_error_pane_proceed, self, 0); -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->host; -#line 310 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (ssl_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = self->priv->host; -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = shotwell_plugins_common_builder_pane_get_default_widget (G_TYPE_CHECK_INSTANCE_CAST (ssl_pane, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _tmp6_; -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp5_, _tmp7_); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp7_); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (ssl_pane); -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - __vala_SoupURI_free0 (uri); -#line 3810 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the login button in the authentication panel is - * clicked. - * - * This event is triggered when the login button in the authentication - * panel is clicked. It then triggers a network login interaction. - * - * @param url the URL of the Piwigo service as entered in the dialog - * @param username the name of the Piwigo user as entered in the dialog - * @param password the password of the Piwigo as entered in the dialog - */ -static void -publishing_piwigo_piwigo_publisher_on_authentication_pane_login_clicked (PublishingPiwigoPiwigoPublisher* self, - const gchar* url, - const gchar* username, - const gchar* password, - gboolean remember_password) -{ - gboolean _tmp0_; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (url != NULL); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (username != NULL); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (password != NULL); -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:329: EVENT: on_authentication_pane_login_clicked"); -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->running; -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!_tmp0_) { -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 3849 "PiwigoPublishing.c" - } -#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_network_login (self, url, username, password, remember_password); -#line 3853 "PiwigoPublishing.c" -} - - -/** - * Action to perform a network login to a Piwigo service. - * - * This action performs a network login a Piwigo service specified by a - * URL and using the given user name and password as credentials. - * - * @param url the URL of the Piwigo service; this URL will be normalised - * before being used - * @param username the name of the Piwigo user used to login - * @param password the password of the Piwigo user used to login - */ -static void -_publishing_piwigo_piwigo_publisher_on_login_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_login_network_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err); -#line 3875 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_login_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_login_network_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender); -#line 3885 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_do_network_login (PublishingPiwigoPiwigoPublisher* self, - const gchar* url, - const gchar* username, - const gchar* password, - gboolean remember_password) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingPiwigoSessionLoginTransaction* login_trans = NULL; - PublishingPiwigoSession* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - PublishingPiwigoSessionLoginTransaction* _tmp5_; - PublishingPiwigoSessionLoginTransaction* _tmp6_; - GError * _inner_error_ = NULL; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (url != NULL); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (username != NULL); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (password != NULL); -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:348: ACTION: logging in"); -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 349 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->host; -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_login_wait_pane (_tmp1_); -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_remember_password (self, remember_password); -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (remember_password) { -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_persistent_password (self, password); -#line 3929 "PiwigoPublishing.c" - } else { -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_persistent_password (self, NULL); -#line 3933 "PiwigoPublishing.c" - } -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->session; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_piwigo_piwigo_publisher_normalise_url (url); -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = publishing_piwigo_session_login_transaction_new (_tmp2_, _tmp4_, username, password); -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp5_; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp4_); -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - login_trans = _tmp6_; -#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self, 0); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self, 0); -#line 3953 "PiwigoPublishing.c" - { -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (login_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 3961 "PiwigoPublishing.c" - goto __catch28_spit_publishing_publishing_error; - } -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (login_trans); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 364 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 3972 "PiwigoPublishing.c" - } - } - goto __finally28; - __catch28_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp7_; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = err; -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (_tmp7_, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_SSL_FAILED)) { -#line 367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:367: ERROR: SSL connection problems"); -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_ssl_downgrade_pane (self, login_trans, url); -#line 3992 "PiwigoPublishing.c" - } else { - GError* _tmp8_; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:370: ERROR: do_network_login"); -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = err; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp8_); -#line 4001 "PiwigoPublishing.c" - } -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 4005 "PiwigoPublishing.c" - } - __finally28: -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (login_trans); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4018 "PiwigoPublishing.c" - } -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (login_trans); -#line 4022 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_piwigo_publisher_normalise_url (const gchar* url) -{ - gchar* result = NULL; - gchar* norm_url = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - gboolean _tmp7_ = FALSE; - const gchar* _tmp8_; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (url); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - norm_url = _tmp0_; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = norm_url; -#line 379 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!g_str_has_suffix (_tmp1_, ".php")) { -#line 4045 "PiwigoPublishing.c" - const gchar* _tmp2_; - const gchar* _tmp5_; - gchar* _tmp6_; -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = norm_url; -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!g_str_has_suffix (_tmp2_, "/")) { -#line 4053 "PiwigoPublishing.c" - const gchar* _tmp3_; - gchar* _tmp4_; -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = norm_url; -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = g_strconcat (_tmp3_, "/", NULL); -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (norm_url); -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - norm_url = _tmp4_; -#line 4064 "PiwigoPublishing.c" - } -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = norm_url; -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = g_strconcat (_tmp5_, PUBLISHING_PIWIGO_PIWIGO_WS, NULL); -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (norm_url); -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - norm_url = _tmp6_; -#line 4074 "PiwigoPublishing.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = norm_url; -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!g_str_has_prefix (_tmp8_, "http://")) { -#line 4080 "PiwigoPublishing.c" - const gchar* _tmp9_; -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = norm_url; -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = !g_str_has_prefix (_tmp9_, "https://"); -#line 4086 "PiwigoPublishing.c" - } else { -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = FALSE; -#line 4090 "PiwigoPublishing.c" - } -#line 386 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp7_) { -#line 4094 "PiwigoPublishing.c" - const gchar* _tmp10_; - gchar* _tmp11_; -#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = norm_url; -#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = g_strconcat ("http://", _tmp10_, NULL); -#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (norm_url); -#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - norm_url = _tmp11_; -#line 4105 "PiwigoPublishing.c" - } -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = norm_url; -#line 390 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 4111 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the network login action is complete and successful. - * - * This event is triggered on successful completion of a network login. - * Calling this event implies that the URL, user name and password provided - * in the authentication pane are valid and that the transaction should - * contain a Set-Cookie header that includes the value pwg_id for that - * user. As a result, this event will also authenticate the session and - * persist all values so that they can be re-used during the next publishing - * interaction. - * - * @param txn the received REST transaction - */ -static gchar* -_publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self) -{ - gchar* result; - result = publishing_piwigo_transaction_validate_xml (doc); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 4136 "PiwigoPublishing.c" -} - - -static gchar* -_publishing_piwigo_transaction_get_error_code_publishing_rest_support_xml_document_check_for_error_response (PublishingRESTSupportXmlDocument* doc, - gpointer self) -{ - gchar* result; - result = publishing_piwigo_transaction_get_error_code (doc); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 4148 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_on_login_network_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* endpoint_url = NULL; - gchar* _tmp14_; - const gchar* _tmp15_; - gchar* pwg_id = NULL; - gchar* _tmp16_; - const gchar* _tmp17_; - PublishingPiwigoSession* _tmp18_; - const gchar* _tmp19_; - const gchar* _tmp20_; - const gchar* _tmp21_; - GError * _inner_error_ = NULL; -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:407: EVENT: on_login_network_complete"); -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self); -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self); -#line 4183 "PiwigoPublishing.c" - { - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRESTSupportXmlDocument* _tmp4_; - PublishingRESTSupportXmlDocument* _tmp5_; -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = publishing_rest_support_xml_document_parse_string (_tmp3_, _publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp4_; -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (_tmp5_); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp3_); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4205 "PiwigoPublishing.c" - goto __catch29_spit_publishing_publishing_error; - } -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4214 "PiwigoPublishing.c" - } - } - goto __finally29; - __catch29_spit_publishing_publishing_error: - { - GError* err = NULL; -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 4225 "PiwigoPublishing.c" - { - gchar* _tmp6_; - gchar* _tmp7_; - PublishingRESTSupportXmlDocument* _tmp8_; - PublishingRESTSupportXmlDocument* _tmp9_; -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = publishing_rest_support_transaction_get_response (txn); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _tmp6_; -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = publishing_rest_support_xml_document_parse_string (_tmp7_, _publishing_piwigo_transaction_get_error_code_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = _tmp8_; -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (_tmp9_); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp7_); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4247 "PiwigoPublishing.c" - goto __catch30_spit_publishing_publishing_error; - } -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4258 "PiwigoPublishing.c" - } - } - goto __finally30; - __catch30_spit_publishing_publishing_error: - { - GError* code = NULL; - gint code_int = 0; - GError* _tmp10_; - const gchar* _tmp11_; - gint _tmp12_; -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - code = _inner_error_; -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = code; -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = _tmp10_->message; -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - code_int = atoi (_tmp11_); -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = code_int; -#line 421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp12_ == 999) { -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:422: ERROR: on_login_network_complete, code 999"); -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_authentication_pane (self, PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER); -#line 4287 "PiwigoPublishing.c" - } else { - GError* _tmp13_; -#line 425 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:425: ERROR: on_login_network_complete"); -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = err; -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp13_); -#line 4296 "PiwigoPublishing.c" - } -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (code); -#line 4300 "PiwigoPublishing.c" - } - __finally30: -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 416 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4315 "PiwigoPublishing.c" - } -#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4321 "PiwigoPublishing.c" - } - __finally29: -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4332 "PiwigoPublishing.c" - } -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = publishing_rest_support_transaction_get_endpoint_url (txn); -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - endpoint_url = _tmp14_; -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = endpoint_url; -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:433: Setting endpoint URL to %s", _tmp15_); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = publishing_piwigo_piwigo_publisher_get_pwg_id_from_transaction (self, txn); -#line 434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - pwg_id = _tmp16_; -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = pwg_id; -#line 435 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:435: Setting session pwg_id to %s", _tmp17_); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = self->priv->session; -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = pwg_id; -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_session_set_pwg_id (_tmp18_, _tmp19_); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = endpoint_url; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = pwg_id; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_fetch_session_status (self, _tmp20_, _tmp21_); -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (endpoint_url); -#line 4366 "PiwigoPublishing.c" -} - - -/** - * Event triggered when a network login action fails due to a network error. - * - * This event triggered as a result of a network error during the login - * transaction. As a result, it assumes that the service URL entered in the - * authentication dialog is incorrect and re-presents the authentication - * dialog with FAILED_RETRY_URL mode. - * - * @param bad_txn the received REST transaction - * @param err the received error - */ -static void -publishing_piwigo_piwigo_publisher_on_login_network_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - PublishingPiwigoSession* _tmp2_; -#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:456: EVENT: on_login_network_error"); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_complete_publishing_rest_support_transaction_completed, self); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_login_network_error_publishing_rest_support_transaction_network_error, self); -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->session; -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4409 "PiwigoPublishing.c" - } -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_authentication_pane (self, PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL); -#line 4413 "PiwigoPublishing.c" -} - - -/** - * Action to fetch the session status for a known Piwigo user. - * - * This action fetches the session status for a Piwigo user for whom the - * pwg_id is known. If triggered after a network login, it should just - * confirm that the session is OK. It can also be triggered as the first - * action of the interaction for users for who the pwg_id was previously - * persisted. In this case, it will log the user in and confirm the - * identity. - */ -static void -_publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_session_get_status_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err); -#line 4434 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_session_get_status_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender); -#line 4444 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_do_fetch_session_status (PublishingPiwigoPiwigoPublisher* self, - const gchar* url, - const gchar* pwg_id) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingPiwigoSession* _tmp2_; - GError * _inner_error_ = NULL; -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (url != NULL); -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (pwg_id != NULL); -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:477: ACTION: fetching session status"); -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->host; -#line 479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_); -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->session; -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 4477 "PiwigoPublishing.c" - PublishingPiwigoSessionGetStatusTransaction* status_txn = NULL; - PublishingPiwigoSession* _tmp3_; - PublishingPiwigoSessionGetStatusTransaction* _tmp4_; - PublishingPiwigoSessionGetStatusTransaction* _tmp5_; - PublishingPiwigoSessionGetStatusTransaction* _tmp6_; -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->session; -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = publishing_piwigo_session_get_status_transaction_new_unauthenticated (_tmp3_, url, pwg_id); -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - status_txn = _tmp4_; -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = status_txn; -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error, self, 0); -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = status_txn; -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed, self, 0); -#line 4497 "PiwigoPublishing.c" - { - PublishingPiwigoSessionGetStatusTransaction* _tmp7_; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = status_txn; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4508 "PiwigoPublishing.c" - goto __catch31_spit_publishing_publishing_error; - } -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (status_txn); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4519 "PiwigoPublishing.c" - } - } - goto __finally31; - __catch31_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp8_; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 489 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:489: ERROR: do_fetch_session_status, not authent" \ -"icated"); -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = err; -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp8_); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 4539 "PiwigoPublishing.c" - } - __finally31: -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (status_txn); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4552 "PiwigoPublishing.c" - } -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (status_txn); -#line 4556 "PiwigoPublishing.c" - } else { - PublishingPiwigoSessionGetStatusTransaction* status_txn = NULL; - PublishingPiwigoSession* _tmp9_; - PublishingPiwigoSessionGetStatusTransaction* _tmp10_; - PublishingPiwigoSessionGetStatusTransaction* _tmp11_; - PublishingPiwigoSessionGetStatusTransaction* _tmp12_; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = self->priv->session; -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = publishing_piwigo_session_get_status_transaction_new (_tmp9_); -#line 493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - status_txn = _tmp10_; -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = status_txn; -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error, self, 0); -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = status_txn; -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed, self, 0); -#line 4577 "PiwigoPublishing.c" - { - PublishingPiwigoSessionGetStatusTransaction* _tmp13_; -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = status_txn; -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4588 "PiwigoPublishing.c" - goto __catch32_spit_publishing_publishing_error; - } -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (status_txn); -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4599 "PiwigoPublishing.c" - } - } - goto __finally32; - __catch32_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp14_; -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 500 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:500: ERROR: do_fetch_session_status, authenticat" \ -"ed"); -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = err; -#line 501 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp14_); -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 4619 "PiwigoPublishing.c" - } - __finally32: -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (status_txn); -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 497 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4632 "PiwigoPublishing.c" - } -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (status_txn); -#line 4636 "PiwigoPublishing.c" - } -} - - -/** - * Event triggered when the get session status action completes successfully. - * - * This event being triggered confirms that the session is valid and can becyclonic enema - * used. If the session is not fully authenticated yet, this event finalises - * session authentication. It then triggers the fetch categories action. - */ -static void -publishing_piwigo_piwigo_publisher_on_session_get_status_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - PublishingPiwigoSession* _tmp2_; - GError * _inner_error_ = NULL; -#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:514: EVENT: on_session_get_status_complete"); -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed, self); -#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error, self); -#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->session; -#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 4674 "PiwigoPublishing.c" - gchar* endpoint_url = NULL; - gchar* _tmp3_; - gchar* pwg_id = NULL; - PublishingPiwigoSession* _tmp4_; - gchar* _tmp5_; - const gchar* _tmp6_; -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_rest_support_transaction_get_endpoint_url (txn); -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - endpoint_url = _tmp3_; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->session; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = publishing_piwigo_session_get_pwg_id (_tmp4_); -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - pwg_id = _tmp5_; -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = pwg_id; -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:521: Fetching session status for pwg_id %s", _tmp6_); -#line 4695 "PiwigoPublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp7_; - gchar* _tmp8_; - PublishingRESTSupportXmlDocument* _tmp9_; - PublishingRESTSupportXmlDocument* _tmp10_; - xmlNode* root = NULL; - PublishingRESTSupportXmlDocument* _tmp11_; - xmlNode* _tmp12_; - xmlNode* username_node = NULL; -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = publishing_rest_support_transaction_get_response (txn); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _tmp7_; -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = publishing_rest_support_xml_document_parse_string (_tmp8_, _publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = _tmp9_; -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp8_); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - doc = _tmp10_; -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4722 "PiwigoPublishing.c" - goto __catch33_spit_publishing_publishing_error; - } -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (endpoint_url); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4735 "PiwigoPublishing.c" - } -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = doc; -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = publishing_rest_support_xml_document_get_root_node (_tmp11_); -#line 527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - root = _tmp12_; -#line 4743 "PiwigoPublishing.c" - { - xmlNode* _tmp13_ = NULL; - PublishingRESTSupportXmlDocument* _tmp14_; - xmlNode* _tmp15_; - xmlNode* _tmp16_; - gchar* username = NULL; - xmlNode* _tmp17_; - gchar* _tmp18_; - const gchar* _tmp19_; - PublishingPiwigoSession* _tmp20_; - const gchar* _tmp21_; - const gchar* _tmp22_; - const gchar* _tmp23_; - PublishingPiwigoSession* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - PublishingPiwigoSession* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = doc; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = root; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = publishing_rest_support_xml_document_get_named_child (_tmp14_, _tmp15_, "username", &_inner_error_); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = _tmp16_; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4775 "PiwigoPublishing.c" - goto __catch34_spit_publishing_publishing_error; - } -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (endpoint_url); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4790 "PiwigoPublishing.c" - } -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - username_node = _tmp13_; -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = username_node; -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = (gchar*) xmlNodeGetContent (_tmp17_); -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - username = _tmp18_; -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = username; -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:532: Returned username is %s", _tmp19_); -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = self->priv->session; -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = endpoint_url; -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = username; -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = pwg_id; -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_session_authenticate (_tmp20_, _tmp21_, _tmp22_, _tmp23_); -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = self->priv->session; -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = publishing_piwigo_session_get_pwg_url (_tmp24_); -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = _tmp25_; -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_persistent_url (self, _tmp26_); -#line 534 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp26_); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = self->priv->session; -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = publishing_piwigo_session_get_username (_tmp27_); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp29_ = _tmp28_; -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_persistent_username (self, _tmp29_); -#line 535 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp29_); -#line 536 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_fetch_categories (self); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (username); -#line 4838 "PiwigoPublishing.c" - } - goto __finally34; - __catch34_spit_publishing_publishing_error: - { - GError* err2 = NULL; - GError* _tmp30_; -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err2 = _inner_error_; -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:538: ERROR: on_session_get_status_complete, inne" \ -"r"); -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp30_ = err2; -#line 539 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp30_); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err2); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (endpoint_url); -#line 540 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4865 "PiwigoPublishing.c" - } - __finally34: -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 4874 "PiwigoPublishing.c" - goto __catch33_spit_publishing_publishing_error; - } -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (endpoint_url); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4889 "PiwigoPublishing.c" - } -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 4893 "PiwigoPublishing.c" - } - goto __finally33; - __catch33_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp31_; -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:543: ERROR: on_session_get_status_complete, oute" \ -"r"); -#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp31_ = err; -#line 544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp31_); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (endpoint_url); -#line 545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4918 "PiwigoPublishing.c" - } - __finally33: -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (endpoint_url); -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 523 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 4933 "PiwigoPublishing.c" - } -#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (endpoint_url); -#line 4939 "PiwigoPublishing.c" - } else { -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_fetch_categories (self); -#line 4943 "PiwigoPublishing.c" - } -} - - -/** - * Event triggered when the get session status fails due to a network error. - */ -static void -publishing_piwigo_piwigo_publisher_on_session_get_status_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:562: EVENT: on_session_get_status_error"); -#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_complete_publishing_rest_support_transaction_completed, self); -#line 564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_session_get_status_error_publishing_rest_support_transaction_network_error, self); -#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_network_error (self, bad_txn, err); -#line 4974 "PiwigoPublishing.c" -} - - -/** - * Action that fetches all available categories from the Piwigo service. - * - * This action fetches all categories from the Piwigo service in order - * to populate the publishing pane presented to the user. - */ -static void -_publishing_piwigo_piwigo_publisher_on_category_fetch_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_category_fetch_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err); -#line 4991 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_category_fetch_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_category_fetch_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender); -#line 5001 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_do_fetch_categories (PublishingPiwigoPiwigoPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingPiwigoCategoriesGetListTransaction* cat_trans = NULL; - PublishingPiwigoSession* _tmp2_; - PublishingPiwigoCategoriesGetListTransaction* _tmp3_; - GError * _inner_error_ = NULL; -#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:575: ACTION: fetching categories"); -#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->host; -#line 577 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->session; -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_piwigo_categories_get_list_transaction_new (_tmp2_); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - cat_trans = _tmp3_; -#line 580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (cat_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_error_publishing_rest_support_transaction_network_error, self, 0); -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (cat_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_complete_publishing_rest_support_transaction_completed, self, 0); -#line 5036 "PiwigoPublishing.c" - { -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (cat_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5044 "PiwigoPublishing.c" - goto __catch35_spit_publishing_publishing_error; - } -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (cat_trans); -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5055 "PiwigoPublishing.c" - } - } - goto __finally35; - __catch35_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp4_; -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 586 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:586: ERROR: do_fetch_categories"); -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = err; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp4_); -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 5075 "PiwigoPublishing.c" - } - __finally35: -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (cat_trans); -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 583 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5088 "PiwigoPublishing.c" - } -#line 574 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (cat_trans); -#line 5092 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the fetch categories action completes successfully. - * - * This event retrieves all categories from the received transaction and - * populates the categories list. It then triggers the display of the - * publishing options pane. - */ -static void -_vala_array_add38 (PublishingPiwigoCategory** * array, - int* length, - int* size, - PublishingPiwigoCategory* value) -{ -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoCategory*, *array, (*size) + 1); -#line 5115 "PiwigoPublishing.c" - } -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 5121 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_on_category_fetch_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingPiwigoCategory** _tmp4_; - gint _tmp4__length1; - GError * _inner_error_ = NULL; -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 598 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 599 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:599: EVENT: on_category_fetch_complete"); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:602: PiwigoConnector: list of categories: %s", _tmp3_); -#line 602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp3_); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->categories; -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4__length1 = self->priv->categories_length1; -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp4_ != NULL) { -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories = (_vala_array_free (self->priv->categories, self->priv->categories_length1, (GDestroyNotify) publishing_piwigo_category_unref), NULL); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories = NULL; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories_length1 = 0; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_categories_size_ = self->priv->categories_length1; -#line 5172 "PiwigoPublishing.c" - } - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp5_; - gchar* _tmp6_; - PublishingRESTSupportXmlDocument* _tmp7_; - PublishingRESTSupportXmlDocument* _tmp8_; - xmlNode* root = NULL; - PublishingRESTSupportXmlDocument* _tmp9_; - xmlNode* _tmp10_; - xmlNode* categories_node = NULL; - xmlNode* _tmp11_; - xmlNode* _tmp12_; - xmlNode* category_node_iter = NULL; - xmlNode* _tmp13_; - xmlNode* _tmp14_; - xmlNode* name_node = NULL; - xmlNode* uppercats_node = NULL; - gchar* name = NULL; - gchar* _tmp15_; - gchar* id_string = NULL; - gchar* _tmp16_; - gchar* uppercats = NULL; - gchar* _tmp17_; - GeeHashMap* id_map = NULL; - GeeHashMap* _tmp18_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = publishing_rest_support_transaction_get_response (txn); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp5_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = publishing_rest_support_xml_document_parse_string (_tmp6_, _publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _tmp7_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp6_); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - doc = _tmp8_; -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5215 "PiwigoPublishing.c" - goto __catch36_spit_publishing_publishing_error; - } -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 609 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5224 "PiwigoPublishing.c" - } -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = doc; -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = publishing_rest_support_xml_document_get_root_node (_tmp9_); -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - root = _tmp10_; -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = root; -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = xmlFirstElementChild (_tmp11_); -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - categories_node = _tmp12_; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = categories_node; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = _tmp13_->children; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - category_node_iter = _tmp14_; -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = g_strdup (""); -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - name = _tmp15_; -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = g_strdup (""); -#line 618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - id_string = _tmp16_; -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = g_strdup (""); -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - uppercats = _tmp17_; -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - id_map = _tmp18_; -#line 5260 "PiwigoPublishing.c" - { - gboolean _tmp19_ = FALSE; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = TRUE; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 5267 "PiwigoPublishing.c" - xmlNode* _tmp22_; - xmlNode* _tmp23_ = NULL; - PublishingRESTSupportXmlDocument* _tmp24_; - xmlNode* _tmp25_; - xmlNode* _tmp26_; - xmlNode* _tmp27_; - gchar* _tmp28_; - xmlNode* _tmp29_ = NULL; - PublishingRESTSupportXmlDocument* _tmp30_; - xmlNode* _tmp31_; - xmlNode* _tmp32_; - xmlNode* _tmp33_; - gchar* _tmp34_; - xmlNode* _tmp35_; - gchar* _tmp36_; - GeeHashMap* _tmp37_; - const gchar* _tmp38_; - const gchar* _tmp39_; - PublishingPiwigoCategory** _tmp40_; - gint _tmp40__length1; - PublishingPiwigoCategory** _tmp42_; - gint _tmp42__length1; - const gchar* _tmp43_; - const gchar* _tmp44_; - const gchar* _tmp45_; - PublishingPiwigoCategory* _tmp46_; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!_tmp19_) { -#line 5296 "PiwigoPublishing.c" - xmlNode* _tmp20_; - xmlNode* _tmp21_; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = category_node_iter; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = _tmp20_->next; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - category_node_iter = _tmp21_; -#line 5305 "PiwigoPublishing.c" - } -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = FALSE; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = category_node_iter; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp22_ != NULL)) { -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 5315 "PiwigoPublishing.c" - } -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = doc; -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = category_node_iter; -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = publishing_rest_support_xml_document_get_named_child (_tmp24_, _tmp25_, "name", &_inner_error_); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = _tmp26_; -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (id_map); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (uppercats); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (id_string); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (name); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5339 "PiwigoPublishing.c" - goto __catch36_spit_publishing_publishing_error; - } -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (id_map); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (uppercats); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (id_string); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (name); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5358 "PiwigoPublishing.c" - } -#line 623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - name_node = _tmp23_; -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = name_node; -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = (gchar*) xmlNodeGetContent (_tmp27_); -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (name); -#line 624 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - name = _tmp28_; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp30_ = doc; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp31_ = category_node_iter; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp32_ = publishing_rest_support_xml_document_get_named_child (_tmp30_, _tmp31_, "uppercats", &_inner_error_); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp29_ = _tmp32_; -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (id_map); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (uppercats); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (id_string); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (name); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5392 "PiwigoPublishing.c" - goto __catch36_spit_publishing_publishing_error; - } -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (id_map); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (uppercats); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (id_string); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (name); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5411 "PiwigoPublishing.c" - } -#line 625 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - uppercats_node = _tmp29_; -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp33_ = uppercats_node; -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp34_ = (gchar*) xmlNodeGetContent (_tmp33_); -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (uppercats); -#line 626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - uppercats = (gchar*) _tmp34_; -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp35_ = category_node_iter; -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp36_ = (gchar*) xmlGetProp (_tmp35_, (xmlChar*) "id"); -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (id_string); -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - id_string = _tmp36_; -#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp37_ = id_map; -#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp38_ = id_string; -#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp39_ = name; -#line 628 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp38_, _tmp39_); -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp40_ = self->priv->categories; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp40__length1 = self->priv->categories_length1; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp40_ == NULL) { -#line 5445 "PiwigoPublishing.c" - PublishingPiwigoCategory** _tmp41_; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp41_ = g_new0 (PublishingPiwigoCategory*, 0 + 1); -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories = (_vala_array_free (self->priv->categories, self->priv->categories_length1, (GDestroyNotify) publishing_piwigo_category_unref), NULL); -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories = _tmp41_; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories_length1 = 0; -#line 631 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_categories_size_ = self->priv->categories_length1; -#line 5457 "PiwigoPublishing.c" - } -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp42_ = self->priv->categories; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp42__length1 = self->priv->categories_length1; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp43_ = id_string; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp44_ = name; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp45_ = uppercats; -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp46_ = publishing_piwigo_category_new (atoi (_tmp43_), _tmp44_, _tmp45_, ""); -#line 633 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add38 (&self->priv->categories, &self->priv->categories_length1, &self->priv->_categories_size_, _tmp46_); -#line 5473 "PiwigoPublishing.c" - } - } - { - gint i = 0; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - i = 0; -#line 5480 "PiwigoPublishing.c" - { - gboolean _tmp47_ = FALSE; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp47_ = TRUE; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 5487 "PiwigoPublishing.c" - gint _tmp49_; - PublishingPiwigoCategory** _tmp50_; - gint _tmp50__length1; - gchar** upcatids = NULL; - PublishingPiwigoCategory** _tmp51_; - gint _tmp51__length1; - gint _tmp52_; - PublishingPiwigoCategory* _tmp53_; - const gchar* _tmp54_; - gchar** _tmp55_; - gchar** _tmp56_; - gint upcatids_length1; - gint _upcatids_size_; - GString* builder = NULL; - GString* _tmp57_; - PublishingPiwigoCategory** _tmp71_; - gint _tmp71__length1; - gint _tmp72_; - PublishingPiwigoCategory* _tmp73_; - GString* _tmp74_; - const gchar* _tmp75_; - gchar* _tmp76_; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!_tmp47_) { -#line 5512 "PiwigoPublishing.c" - gint _tmp48_; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp48_ = i; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - i = _tmp48_ + 1; -#line 5518 "PiwigoPublishing.c" - } -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp47_ = FALSE; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp49_ = i; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp50_ = self->priv->categories; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp50__length1 = self->priv->categories_length1; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp49_ < _tmp50__length1)) { -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 5532 "PiwigoPublishing.c" - } -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp51_ = self->priv->categories; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp51__length1 = self->priv->categories_length1; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp52_ = i; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp53_ = _tmp51_[_tmp52_]; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp54_ = _tmp53_->uppercats; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp56_ = _tmp55_ = g_strsplit (_tmp54_, ",", 0); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - upcatids = _tmp56_; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - upcatids_length1 = _vala_array_length (_tmp55_); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _upcatids_size_ = upcatids_length1; -#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp57_ = g_string_new (""); -#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - builder = _tmp57_; -#line 5556 "PiwigoPublishing.c" - { - gint j = 0; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - j = 0; -#line 5561 "PiwigoPublishing.c" - { - gboolean _tmp58_ = FALSE; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp58_ = TRUE; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 5568 "PiwigoPublishing.c" - gint _tmp60_; - gchar** _tmp61_; - gint _tmp61__length1; - GString* _tmp62_; - GString* _tmp63_; - GeeHashMap* _tmp64_; - gchar** _tmp65_; - gint _tmp65__length1; - gint _tmp66_; - const gchar* _tmp67_; - gpointer _tmp68_; - gchar* _tmp69_; - GString* _tmp70_; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!_tmp58_) { -#line 5584 "PiwigoPublishing.c" - gint _tmp59_; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp59_ = j; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - j = _tmp59_ + 1; -#line 5590 "PiwigoPublishing.c" - } -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp58_ = FALSE; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp60_ = j; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp61_ = upcatids; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp61__length1 = upcatids_length1; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp60_ < _tmp61__length1)) { -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 5604 "PiwigoPublishing.c" - } -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp62_ = builder; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_string_append (_tmp62_, "/ "); -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp63_ = builder; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp64_ = id_map; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp65_ = upcatids; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp65__length1 = upcatids_length1; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp66_ = j; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp67_ = _tmp65_[_tmp66_]; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp68_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp67_); -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp69_ = (gchar*) _tmp68_; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_string_append (_tmp63_, _tmp69_); -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp69_); -#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp70_ = builder; -#line 643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_string_append (_tmp70_, " "); -#line 5634 "PiwigoPublishing.c" - } - } - } -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp71_ = self->priv->categories; -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp71__length1 = self->priv->categories_length1; -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp72_ = i; -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp73_ = _tmp71_[_tmp72_]; -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp74_ = builder; -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp75_ = _tmp74_->str; -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp76_ = g_strdup (_tmp75_); -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp73_->display_name); -#line 645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp73_->display_name = _tmp76_; -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_string_free0 (builder); -#line 637 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - upcatids = (_vala_array_free (upcatids, upcatids_length1, (GDestroyNotify) g_free), NULL); -#line 5660 "PiwigoPublishing.c" - } - } - } -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (id_map); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (uppercats); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (id_string); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (name); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 5674 "PiwigoPublishing.c" - } - goto __finally36; - __catch36_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp77_; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:648: ERROR: on_category_fetch_complete"); -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp77_ = err; -#line 649 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp77_); -#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5695 "PiwigoPublishing.c" - } - __finally36: -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5706 "PiwigoPublishing.c" - } -#line 653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_publishing_options_pane (self); -#line 5710 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the fetch categories transaction fails due to a - * network error. - */ -static void -publishing_piwigo_piwigo_publisher_on_category_fetch_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 660 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:664: EVENT: on_category_fetch_error"); -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_complete_publishing_rest_support_transaction_completed, self); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_fetch_error_publishing_rest_support_transaction_network_error, self); -#line 667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_network_error (self, bad_txn, err); -#line 5741 "PiwigoPublishing.c" -} - - -/** - * Action that shows the publishing options pane. - * - * This action method shows the publishing options pane. - */ -static void -_publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked_publishing_piwigo_publishing_options_pane_logout (PublishingPiwigoPublishingOptionsPane* _sender, - gpointer self) -{ -#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked ((PublishingPiwigoPiwigoPublisher*) self); -#line 5756 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked_publishing_piwigo_publishing_options_pane_publish (PublishingPiwigoPublishingOptionsPane* _sender, - PublishingPiwigoPublishingParameters* parameters, - gboolean strip_metadata, - gpointer self) -{ -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked ((PublishingPiwigoPiwigoPublisher*) self, parameters, strip_metadata); -#line 5768 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_do_show_publishing_options_pane (PublishingPiwigoPiwigoPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingPiwigoPublishingOptionsPane* opts_pane = NULL; - PublishingPiwigoCategory** _tmp1_; - gint _tmp1__length1; - PublishingPiwigoPublishingOptionsPane* _tmp2_; - SpitPublishingPluginHost* _tmp3_; - SpitPublishingPluginHost* _tmp4_; - GtkWidget* _tmp5_; - GtkWidget* _tmp6_; -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 676 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:676: ACTION: installing publishing options pane"); -#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 678 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->categories; -#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1__length1 = self->priv->categories_length1; -#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_piwigo_publishing_options_pane_new (self, _tmp1_, _tmp1__length1, publishing_piwigo_piwigo_publisher_get_last_category (self), publishing_piwigo_piwigo_publisher_get_last_permission_level (self), publishing_piwigo_piwigo_publisher_get_last_photo_size (self), publishing_piwigo_piwigo_publisher_get_last_title_as_comment (self), publishing_piwigo_piwigo_publisher_get_last_no_upload_tags (self), publishing_piwigo_piwigo_publisher_get_metadata_removal_choice (self)); -#line 679 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - opts_pane = _tmp2_; -#line 682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (opts_pane, "logout", (GCallback) _publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked_publishing_piwigo_publishing_options_pane_logout, self, 0); -#line 683 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (opts_pane, "publish", (GCallback) _publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked_publishing_piwigo_publishing_options_pane_publish, self, 0); -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->host; -#line 684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (opts_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->host; -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = shotwell_plugins_common_builder_pane_get_default_widget (G_TYPE_CHECK_INSTANCE_CAST (opts_pane, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp5_; -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp4_, _tmp6_); -#line 685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp6_); -#line 675 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (opts_pane); -#line 5820 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the user clicks logout in the publishing options pane. - */ -static void -_publishing_piwigo_piwigo_publisher_on_logout_network_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_logout_network_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err); -#line 5834 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_logout_network_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_logout_network_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender); -#line 5844 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_on_publishing_options_pane_logout_clicked (PublishingPiwigoPiwigoPublisher* self) -{ - PublishingPiwigoSessionLogoutTransaction* logout_trans = NULL; - PublishingPiwigoSession* _tmp0_; - PublishingPiwigoSessionLogoutTransaction* _tmp1_; - GError * _inner_error_ = NULL; -#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 692 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:692: EVENT: on_publishing_options_pane_logout_cl" \ -"icked"); -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->session; -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = publishing_piwigo_session_logout_transaction_new (_tmp0_); -#line 693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - logout_trans = _tmp1_; -#line 694 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (logout_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_error_publishing_rest_support_transaction_network_error, self, 0); -#line 695 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (logout_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_complete_publishing_rest_support_transaction_completed, self, 0); -#line 5869 "PiwigoPublishing.c" - { -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (logout_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 5877 "PiwigoPublishing.c" - goto __catch37_spit_publishing_publishing_error; - } -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (logout_trans); -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5888 "PiwigoPublishing.c" - } - } - goto __finally37; - __catch37_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 700 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:700: ERROR: on_publishing_options_pane_logout_cl" \ -"icked"); -#line 701 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = err; -#line 701 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp2_); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 5908 "PiwigoPublishing.c" - } - __finally37: -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (logout_trans); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 5921 "PiwigoPublishing.c" - } -#line 691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (logout_trans); -#line 5925 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the logout action completes successfully. - * - * This event de-authenticates the session and shows the authentication - * pane again. - */ -static void -publishing_piwigo_piwigo_publisher_on_logout_network_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - PublishingPiwigoSession* _tmp2_; -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 711 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 712 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:712: EVENT: on_logout_network_complete"); -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 713 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_complete_publishing_rest_support_transaction_completed, self); -#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_error_publishing_rest_support_transaction_network_error, self); -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->session; -#line 716 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_session_deauthenticate (_tmp2_); -#line 718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_authentication_pane (self, PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO); -#line 5962 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the logout action fails due to a network error. - */ -static void -publishing_piwigo_piwigo_publisher_on_logout_network_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 728 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:728: EVENT: on_logout_network_error"); -#line 729 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 729 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_complete_publishing_rest_support_transaction_completed, self); -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_logout_network_error_publishing_rest_support_transaction_network_error, self); -#line 731 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_network_error (self, bad_txn, err); -#line 5992 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the user clicks publish in the publishing options pane. - * - * This event first saves the parameters so that they can re-used later. - * If the publishing parameters indicate that the user wants to create a new - * category, the create category action is called. Otherwise, the upload - * action is called. - * - * @param parameters the publishing parameters - */ -static gpointer -_publishing_piwigo_publishing_parameters_ref0 (gpointer self) -{ -#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self ? publishing_piwigo_publishing_parameters_ref (self) : NULL; -#line 6011 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_on_publishing_options_pane_publish_clicked (PublishingPiwigoPiwigoPublisher* self, - PublishingPiwigoPublishingParameters* parameters, - gboolean strip_metadata) -{ - PublishingPiwigoPublishingParameters* _tmp0_; - PublishingPiwigoCategory* _tmp1_; -#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 744 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_PARAMETERS (parameters)); -#line 746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:746: EVENT: on_publishing_options_pane_publish_c" \ -"licked"); -#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _publishing_piwigo_publishing_parameters_ref0 (parameters); -#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters); -#line 747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->parameters = _tmp0_; -#line 748 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->strip_metadata = strip_metadata; -#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = parameters->category; -#line 750 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_category_is_local (_tmp1_)) { -#line 6040 "PiwigoPublishing.c" - PublishingPiwigoCategory* _tmp2_; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = parameters->category; -#line 751 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_create_category (self, _tmp2_); -#line 6046 "PiwigoPublishing.c" - } else { - gboolean _tmp3_; -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->strip_metadata; -#line 753 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_upload (self, _tmp3_); -#line 6053 "PiwigoPublishing.c" - } -} - - -/** - * Action that creates a new category in the Piwigo library. - * - * This actions runs a REST transaction to create a new category in the - * Piwigo library. It displays a wait pane with an information message - * while the transaction is running. This action should only be called with - * a local cateogory, i.e. one that does not exist on the server and does - * not yet have an ID. - * - * @param category the new category to create on the server - */ -static gchar* -string_strip (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strstrip (_tmp1_); -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 6090 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_category_add_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_category_add_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err); -#line 6101 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_category_add_complete_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_category_add_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender); -#line 6111 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_do_create_category (PublishingPiwigoPiwigoPublisher* self, - PublishingPiwigoCategory* category) -{ - const gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - SpitPublishingPluginHost* _tmp3_; - SpitPublishingPluginHost* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - PublishingPiwigoCategoriesAddTransaction* creation_trans = NULL; - PublishingPiwigoSession* _tmp8_; - const gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - const gchar* _tmp12_; - const gchar* _tmp13_; - PublishingPiwigoCategoriesAddTransaction* _tmp14_; - PublishingPiwigoCategoriesAddTransaction* _tmp15_; - GError * _inner_error_ = NULL; -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_CATEGORY (category)); -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = category->name; -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup_printf ("ACTION: creating a new category: %s", _tmp0_); -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = _tmp1_; -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:769: %s", _tmp2_); -#line 769 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp2_); -#line 770 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_assert (publishing_piwigo_category_is_local (category), "category.is_local()"); -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->host; -#line 772 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp3_, TRUE); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->host; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = category->name; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = g_strdup_printf (_ ("Creating album %s…"), _tmp5_); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _tmp6_; -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_static_message_pane (_tmp4_, _tmp7_, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 773 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp7_); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = self->priv->session; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = category->name; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = string_strip (_tmp9_); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = _tmp10_; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = category->uppercats; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = category->comment; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = publishing_piwigo_categories_add_transaction_new (_tmp8_, _tmp11_, atoi (_tmp12_), _tmp13_); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = _tmp14_; -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp11_); -#line 775 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - creation_trans = _tmp15_; -#line 777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (creation_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_error_publishing_rest_support_transaction_network_error, self, 0); -#line 778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (creation_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_complete_publishing_rest_support_transaction_completed, self, 0); -#line 6193 "PiwigoPublishing.c" - { -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (creation_trans, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 6201 "PiwigoPublishing.c" - goto __catch38_spit_publishing_publishing_error; - } -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (creation_trans); -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 6212 "PiwigoPublishing.c" - } - } - goto __finally38; - __catch38_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp16_; -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 783 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:783: ERROR: do_create_category"); -#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = err; -#line 784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp16_); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 6232 "PiwigoPublishing.c" - } - __finally38: -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (creation_trans); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 780 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 6245 "PiwigoPublishing.c" - } -#line 768 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_transaction_unref0 (creation_trans); -#line 6249 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the add category action completes successfully. - * - * This event parses the ID assigned to new category out of the received - * transaction and assigns that ID to the category currently held in - * the publishing parameters. It then calls the upload action. - */ -static void -publishing_piwigo_piwigo_publisher_on_category_add_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - GError * _inner_error_ = NULL; -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 795 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 796 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:796: EVENT: on_category_add_complete"); -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 797 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_complete_publishing_rest_support_transaction_completed, self); -#line 798 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 798 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_error_publishing_rest_support_transaction_network_error, self); -#line 6281 "PiwigoPublishing.c" - { - PublishingRESTSupportXmlDocument* doc = NULL; - gchar* _tmp2_; - gchar* _tmp3_; - PublishingRESTSupportXmlDocument* _tmp4_; - PublishingRESTSupportXmlDocument* _tmp5_; - xmlNode* rsp = NULL; - PublishingRESTSupportXmlDocument* _tmp6_; - xmlNode* _tmp7_; - xmlNode* id_node = NULL; - xmlNode* _tmp8_ = NULL; - PublishingRESTSupportXmlDocument* _tmp9_; - xmlNode* _tmp10_; - xmlNode* _tmp11_; - gchar* id_string = NULL; - xmlNode* _tmp12_; - gchar* _tmp13_; - gint id = 0; - const gchar* _tmp14_; - PublishingPiwigoPublishingParameters* _tmp15_; - PublishingPiwigoCategory* _tmp16_; - gint _tmp17_; - gboolean _tmp18_; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = publishing_rest_support_xml_document_parse_string (_tmp3_, _publishing_piwigo_transaction_validate_xml_publishing_rest_support_xml_document_check_for_error_response, NULL, &_inner_error_); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp4_; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp3_); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - doc = _tmp5_; -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 6321 "PiwigoPublishing.c" - goto __catch39_spit_publishing_publishing_error; - } -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 802 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 6330 "PiwigoPublishing.c" - } -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = doc; -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = publishing_rest_support_xml_document_get_root_node (_tmp6_); -#line 805 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - rsp = _tmp7_; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = doc; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = rsp; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = publishing_rest_support_xml_document_get_named_child (_tmp9_, _tmp10_, "id", &_inner_error_); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _tmp11_; -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 6352 "PiwigoPublishing.c" - goto __catch39_spit_publishing_publishing_error; - } -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 6363 "PiwigoPublishing.c" - } -#line 807 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - id_node = _tmp8_; -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = id_node; -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = (gchar*) xmlNodeGetContent (_tmp12_); -#line 808 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - id_string = _tmp13_; -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = id_string; -#line 809 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - id = atoi (_tmp14_); -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = self->priv->parameters; -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = _tmp15_->category; -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = id; -#line 810 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_->id = _tmp17_; -#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = self->priv->strip_metadata; -#line 811 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_upload (self, _tmp18_); -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (id_string); -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_xml_document_unref0 (doc); -#line 6393 "PiwigoPublishing.c" - } - goto __finally39; - __catch39_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp19_; -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 813 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:813: ERROR: on_category_add_complete"); -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = err; -#line 814 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, _tmp19_); -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 6412 "PiwigoPublishing.c" - } - __finally39: -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 801 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 6423 "PiwigoPublishing.c" - } -} - - -/** - * Event triggered when the add category action fails due to a network error. - */ -static void -publishing_piwigo_piwigo_publisher_on_category_add_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 821 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 825 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:825: EVENT: on_category_add_error"); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 826 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_complete_publishing_rest_support_transaction_completed, self); -#line 827 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 827 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (bad_txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_category_add_error_publishing_rest_support_transaction_network_error, self); -#line 828 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_network_error (self, bad_txn, err); -#line 6454 "PiwigoPublishing.c" -} - - -/** - * Upload action: the big one, the one we've been waiting for! - */ -static void -_publishing_piwigo_piwigo_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self) -{ -#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_upload_complete ((PublishingPiwigoPiwigoPublisher*) self, _sender, num_photos_published); -#line 6468 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self) -{ -#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_upload_error ((PublishingPiwigoPiwigoPublisher*) self, _sender, err); -#line 6479 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_piwigo_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 853 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_on_upload_status_updated ((PublishingPiwigoPiwigoPublisher*) self, file_number, fraction_complete); -#line 6490 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_do_upload (PublishingPiwigoPiwigoPublisher* self, - gboolean strip_metadata) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingPiwigoPublishingParameters* _tmp1_; - PublishingPiwigoCategory* _tmp2_; - gint _tmp3_; - PublishingPiwigoPublishingParameters* _tmp4_; - PublishingPiwigoPermissionLevel* _tmp5_; - gint _tmp6_; - PublishingPiwigoPublishingParameters* _tmp7_; - PublishingPiwigoSizeEntry* _tmp8_; - gint _tmp9_; - PublishingPiwigoPublishingParameters* _tmp10_; - gboolean _tmp11_; - PublishingPiwigoPublishingParameters* _tmp12_; - gboolean _tmp13_; - SpitPublishingPluginHost* _tmp14_; - PublishingPiwigoPublishingParameters* _tmp15_; - PublishingPiwigoSizeEntry* _tmp16_; - gint _tmp17_; - gboolean _tmp18_; - void* _tmp19_; - GDestroyNotify _tmp20_; - SpitPublishingProgressCallback _tmp21_; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp22_; - gint _tmp23_; - SpitPublishingPublishable** _tmp24_; - gint publishables_length1; - gint _publishables_size_; - PublishingPiwigoUploader* uploader = NULL; - PublishingPiwigoSession* _tmp25_; - PublishingPiwigoPublishingParameters* _tmp26_; - PublishingPiwigoUploader* _tmp27_; -#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 835 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->strip_metadata = strip_metadata; -#line 836 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:836: ACTION: uploading pictures"); -#line 838 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 838 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->parameters; -#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = _tmp1_->category; -#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_->id; -#line 840 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_last_category (self, _tmp3_); -#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->parameters; -#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp4_->perm_level; -#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp5_->id; -#line 841 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_last_permission_level (self, _tmp6_); -#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = self->priv->parameters; -#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _tmp7_->photo_size; -#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = _tmp8_->id; -#line 842 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_last_photo_size (self, _tmp9_); -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = self->priv->parameters; -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = _tmp10_->title_as_comment; -#line 843 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_last_title_as_comment (self, _tmp11_); -#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = self->priv->parameters; -#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = _tmp12_->no_upload_tags; -#line 844 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_last_no_upload_tags (self, _tmp13_); -#line 845 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_set_metadata_removal_choice (self, strip_metadata); -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = self->priv->host; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = self->priv->parameters; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = _tmp15_->photo_size; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = _tmp16_->id; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = self->priv->strip_metadata; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = spit_publishing_plugin_host_serialize_publishables (_tmp14_, _tmp17_, _tmp18_, &_tmp19_, &_tmp20_); -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter = NULL; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter = _tmp21_; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter_target = _tmp19_; -#line 847 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp20_; -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = self->priv->host; -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = spit_publishing_plugin_host_get_publishables (_tmp22_, &_tmp23_); -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishables = _tmp24_; -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishables_length1 = _tmp23_; -#line 848 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishables_size_ = publishables_length1; -#line 850 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = self->priv->session; -#line 850 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = self->priv->parameters; -#line 850 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = publishing_piwigo_uploader_new (_tmp25_, publishables, publishables_length1, _tmp26_); -#line 850 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - uploader = _tmp27_; -#line 851 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0); -#line 852 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self, 0); -#line 853 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (uploader, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_piwigo_piwigo_publisher_on_upload_status_updated_spit_publishing_progress_callback, self); -#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_batch_uploader_unref0 (uploader); -#line 834 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 6632 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the batch uploader reports that at least one of the - * network transactions encapsulating uploads has completed successfully - */ -static void -publishing_piwigo_piwigo_publisher_on_upload_complete (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published) -{ - guint _tmp0_; - guint _tmp1_; -#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 860 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 861 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:861: EVENT: on_upload_complete"); -#line 862 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 862 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 863 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 863 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 867 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_success_pane (self); -#line 6663 "PiwigoPublishing.c" -} - - -/** - * Event triggered when the batch uploader reports that at least one of the - * network transactions encapsulating uploads has caused a network error - */ -static void -publishing_piwigo_piwigo_publisher_on_upload_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 874 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 878 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:878: EVENT: on_upload_error"); -#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 879 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 880 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 880 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_piwigo_piwigo_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 882 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, err); -#line 6694 "PiwigoPublishing.c" -} - - -/** - * Event triggered when upload progresses and the status needs to be updated. - */ -static void -publishing_piwigo_piwigo_publisher_on_upload_status_updated (PublishingPiwigoPiwigoPublisher* self, - gint file_number, - gdouble completed_fraction) -{ - SpitPublishingProgressCallback _tmp0_; - void* _tmp0__target; - SpitPublishingProgressCallback _tmp1_; - void* _tmp1__target; -#line 888 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 889 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 890 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 6716 "PiwigoPublishing.c" - } -#line 892 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:892: EVENT: uploader reports upload %.2f percent" \ -" complete.", 100.0 * completed_fraction); -#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->progress_reporter; -#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 894 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->progress_reporter; -#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 896 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ (file_number, completed_fraction, _tmp1__target); -#line 6732 "PiwigoPublishing.c" -} - - -/** - * Action to display the success pane in the publishing dialog. - */ -static void -publishing_piwigo_piwigo_publisher_do_show_success_pane (PublishingPiwigoPiwigoPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 902 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 903 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:903: ACTION: installing success pane"); -#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 905 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->host; -#line 906 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_success_pane (_tmp1_); -#line 6756 "PiwigoPublishing.c" -} - - -/** - * Helper event to handle network errors. - */ -static void -publishing_piwigo_piwigo_publisher_on_network_error (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* bad_txn, - GError* err) -{ -#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 912 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (bad_txn)); -#line 916 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:916: EVENT: on_network_error"); -#line 917 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error (self, err); -#line 6776 "PiwigoPublishing.c" -} - - -/** - * Action to display an error to the user. - */ -static void -publishing_piwigo_piwigo_publisher_do_show_error (PublishingPiwigoPiwigoPublisher* self, - GError* e) -{ - gchar* error_type = NULL; - gchar* _tmp0_; - const gchar* _tmp8_; - const gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; -#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 924 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:924: ACTION: do_show_error"); -#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup ("UNKNOWN"); -#line 925 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - error_type = _tmp0_; -#line 926 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER)) { -#line 927 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_authentication_pane (self, PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL); -#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 928 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return; -#line 6809 "PiwigoPublishing.c" - } else { -#line 929 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_COMMUNICATION_FAILED)) { -#line 6813 "PiwigoPublishing.c" - gchar* _tmp1_; -#line 930 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup ("COMMUNICATION_FAILED"); -#line 930 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 930 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - error_type = _tmp1_; -#line 6821 "PiwigoPublishing.c" - } else { -#line 931 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR)) { -#line 6825 "PiwigoPublishing.c" - gchar* _tmp2_; -#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_strdup ("PROTOCOL_ERROR"); -#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 932 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - error_type = _tmp2_; -#line 6833 "PiwigoPublishing.c" - } else { -#line 933 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_SERVICE_ERROR)) { -#line 6837 "PiwigoPublishing.c" - gchar* _tmp3_; -#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = g_strdup ("SERVICE_ERROR"); -#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 934 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - error_type = _tmp3_; -#line 6845 "PiwigoPublishing.c" - } else { -#line 935 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE)) { -#line 6849 "PiwigoPublishing.c" - gchar* _tmp4_; -#line 936 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = g_strdup ("MALFORMED_RESPONSE"); -#line 936 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 936 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - error_type = _tmp4_; -#line 6857 "PiwigoPublishing.c" - } else { -#line 937 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR)) { -#line 6861 "PiwigoPublishing.c" - gchar* _tmp5_; -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = g_strdup ("LOCAL_FILE_ERROR"); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 938 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - error_type = _tmp5_; -#line 6869 "PiwigoPublishing.c" - } else { -#line 939 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION)) { -#line 6873 "PiwigoPublishing.c" - gchar* _tmp6_; -#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = g_strdup ("EXPIRED_SESSION"); -#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 940 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - error_type = _tmp6_; -#line 6881 "PiwigoPublishing.c" - } else { -#line 941 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_error_matches (e, SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_SSL_FAILED)) { -#line 6885 "PiwigoPublishing.c" - gchar* _tmp7_; -#line 942 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = g_strdup ("SECURE_CONNECTION_FAILED"); -#line 942 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 942 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - error_type = _tmp7_; -#line 6893 "PiwigoPublishing.c" - } - } - } - } - } - } - } - } -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = error_type; -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = e->message; -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = g_strdup_printf ("Unhandled error: type=%s; message='%s'", _tmp8_, _tmp9_); -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = _tmp10_; -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:945: %s", _tmp11_); -#line 945 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp11_); -#line 946 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_do_show_error_message (self, _ ("An error message occurred when publishing to Piwigo. Please try again.")); -#line 923 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (error_type); -#line 6918 "PiwigoPublishing.c" -} - - -/** - * Action to display an error message to the user. - */ -static void -publishing_piwigo_piwigo_publisher_do_show_error_message (PublishingPiwigoPiwigoPublisher* self, - const gchar* message) -{ - SpitPublishingPluginHost* _tmp0_; -#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self)); -#line 952 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (message != NULL); -#line 953 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:953: ACTION: do_show_error_message"); -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->host; -#line 954 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_install_static_message_pane (_tmp0_, message, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 6940 "PiwigoPublishing.c" -} - - -/** - * Retrieves session ID from a REST Transaction received - * - * This helper method extracts the pwg_id out of the Set-Cookie header if - * present in the received transaction. - * - * @param txn the received transaction - * @return the value of pwg_id if present or null if not found - */ -static SoupCookie* -_vala_SoupCookie_copy (SoupCookie* self) -{ -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return g_boxed_copy (soup_cookie_get_type (), self); -#line 6958 "PiwigoPublishing.c" -} - - -static gpointer -__vala_SoupCookie_copy0 (gpointer self) -{ -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self ? _vala_SoupCookie_copy (self) : NULL; -#line 6967 "PiwigoPublishing.c" -} - - -static void -_vala_SoupCookie_free (SoupCookie* self) -{ -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_boxed_free (soup_cookie_get_type (), self); -#line 6976 "PiwigoPublishing.c" -} - - -static void -__vala_SoupCookie_free0_ (gpointer var) -{ -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (var == NULL) ? NULL : (var = (_vala_SoupCookie_free (var), NULL)); -#line 6985 "PiwigoPublishing.c" -} - - -static inline void -_g_slist_free___vala_SoupCookie_free0_ (GSList* self) -{ -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_slist_free_full (self, (GDestroyNotify) __vala_SoupCookie_free0_); -#line 6994 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_piwigo_publisher_get_pwg_id_from_transaction (PublishingPiwigoPiwigoPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - gchar* result = NULL; - gchar* pwg_id = NULL; - SoupMessage* _tmp0_; - SoupMessage* _tmp1_; - GSList* _tmp2_; - GSList* _tmp3_; -#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (self), NULL); -#line 969 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn), NULL); -#line 970 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - pwg_id = NULL; -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_rest_support_transaction_get_message (txn); -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = soup_cookies_from_response (_tmp1_); -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp1_); -#line 7024 "PiwigoPublishing.c" - { - GSList* cookie_collection = NULL; - GSList* cookie_it = NULL; -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - cookie_collection = _tmp3_; -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - for (cookie_it = cookie_collection; cookie_it != NULL; cookie_it = cookie_it->next) { -#line 7032 "PiwigoPublishing.c" - SoupCookie* _tmp4_; - SoupCookie* cookie = NULL; -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = __vala_SoupCookie_copy0 ((SoupCookie*) cookie_it->data); -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - cookie = _tmp4_; -#line 7039 "PiwigoPublishing.c" - { - SoupCookie* _tmp5_; - const gchar* _tmp6_; -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = cookie; -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = soup_cookie_get_name (_tmp5_); -#line 973 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (_tmp6_, "pwg_id") == 0) { -#line 7049 "PiwigoPublishing.c" - SoupCookie* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - const gchar* _tmp10_; -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = cookie; -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = soup_cookie_get_value (_tmp7_); -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (pwg_id); -#line 976 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - pwg_id = _tmp9_; -#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = pwg_id; -#line 977 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:977: Found pwg_id %s", _tmp10_); -#line 7068 "PiwigoPublishing.c" - } -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - __vala_SoupCookie_free0 (cookie); -#line 7072 "PiwigoPublishing.c" - } - } -#line 972 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - __g_slist_free___vala_SoupCookie_free0_0 (cookie_collection); -#line 7077 "PiwigoPublishing.c" - } -#line 981 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = pwg_id; -#line 981 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 7083 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_class_init (PublishingPiwigoPiwigoPublisherClass * klass) -{ -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_parent_class = g_type_class_peek_parent (klass); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPiwigoPiwigoPublisherPrivate)); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_piwigo_piwigo_publisher_finalize; -#line 7096 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) -{ -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_piwigo_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->get_service = (SpitPublishingService* (*) (SpitPublishingPublisher *)) publishing_piwigo_piwigo_publisher_real_get_service; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->is_running = (gboolean (*) (SpitPublishingPublisher *)) publishing_piwigo_piwigo_publisher_real_is_running; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->start = (void (*) (SpitPublishingPublisher *)) publishing_piwigo_piwigo_publisher_real_start; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - iface->stop = (void (*) (SpitPublishingPublisher *)) publishing_piwigo_piwigo_publisher_real_stop; -#line 7113 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_instance_init (PublishingPiwigoPiwigoPublisher * self) -{ -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv = PUBLISHING_PIWIGO_PIWIGO_PUBLISHER_GET_PRIVATE (self); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->running = FALSE; -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->strip_metadata = FALSE; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories = NULL; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories_length1 = 0; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_categories_size_ = self->priv->categories_length1; -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->parameters = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter_target = self; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 7140 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_piwigo_publisher_finalize (GObject * obj) -{ - PublishingPiwigoPiwigoPublisher * self; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, PublishingPiwigoPiwigoPublisher); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->service); -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->host); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->categories = (_vala_array_free (self->priv->categories, self->priv->categories_length1, (GDestroyNotify) publishing_piwigo_category_unref), NULL); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters); -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (publishing_piwigo_piwigo_publisher_parent_class)->finalize (obj); -#line 7170 "PiwigoPublishing.c" -} - - -GType -publishing_piwigo_piwigo_publisher_get_type (void) -{ - static volatile gsize publishing_piwigo_piwigo_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_piwigo_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoPiwigoPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_piwigo_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoPiwigoPublisher), 0, (GInstanceInitFunc) publishing_piwigo_piwigo_publisher_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_piwigo_piwigo_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_piwigo_piwigo_publisher_type_id; - publishing_piwigo_piwigo_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingPiwigoPiwigoPublisher", &g_define_type_info, 0); - g_type_add_interface_static (publishing_piwigo_piwigo_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info); - g_once_init_leave (&publishing_piwigo_piwigo_publisher_type_id__volatile, publishing_piwigo_piwigo_publisher_type_id); - } - return publishing_piwigo_piwigo_publisher_type_id__volatile; -} - - -PublishingPiwigoUploader* -publishing_piwigo_uploader_construct (GType object_type, - PublishingPiwigoSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingPiwigoPublishingParameters* parameters) -{ - PublishingPiwigoUploader* self = NULL; - PublishingPiwigoPublishingParameters* _tmp0_; -#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 992 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishables, publishables_length1); -#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _publishing_piwigo_publishing_parameters_ref0 (parameters); -#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters); -#line 994 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->parameters = _tmp0_; -#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 7213 "PiwigoPublishing.c" -} - - -PublishingPiwigoUploader* -publishing_piwigo_uploader_new (PublishingPiwigoSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingPiwigoPublishingParameters* parameters) -{ -#line 990 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_uploader_construct (PUBLISHING_PIWIGO_TYPE_UPLOADER, session, publishables, publishables_length1, parameters); -#line 7225 "PiwigoPublishing.c" -} - - -static PublishingRESTSupportTransaction* -publishing_piwigo_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable) -{ - PublishingPiwigoUploader * self; - PublishingRESTSupportTransaction* result = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingPiwigoSession* _tmp1_; - PublishingPiwigoPublishingParameters* _tmp2_; - PublishingPiwigoImagesAddTransaction* _tmp3_; - PublishingRESTSupportTransaction* _tmp4_; -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploader); -#line 997 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSession); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->parameters; -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_piwigo_images_add_transaction_new (_tmp1_, _tmp2_, publishable); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp4_; -#line 999 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 7260 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_uploader_class_init (PublishingPiwigoUploaderClass * klass) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_uploader_parent_class = g_type_class_peek_parent (klass); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_piwigo_uploader_finalize; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPiwigoUploaderPrivate)); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_piwigo_uploader_real_create_transaction; -#line 7275 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_uploader_instance_init (PublishingPiwigoUploader * self) -{ -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv = PUBLISHING_PIWIGO_UPLOADER_GET_PRIVATE (self); -#line 7284 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_uploader_finalize (PublishingRESTSupportBatchUploader * obj) -{ - PublishingPiwigoUploader * self; -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_UPLOADER, PublishingPiwigoUploader); -#line 988 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters); -#line 987 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_piwigo_uploader_parent_class)->finalize (obj); -#line 7298 "PiwigoPublishing.c" -} - - -GType -publishing_piwigo_uploader_get_type (void) -{ - static volatile gsize publishing_piwigo_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_uploader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoUploader), 0, (GInstanceInitFunc) publishing_piwigo_uploader_instance_init, NULL }; - GType publishing_piwigo_uploader_type_id; - publishing_piwigo_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingPiwigoUploader", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_uploader_type_id__volatile, publishing_piwigo_uploader_type_id); - } - return publishing_piwigo_uploader_type_id__volatile; -} - - -PublishingPiwigoSSLErrorPane* -publishing_piwigo_ssl_error_pane_construct (GType object_type, - PublishingPiwigoSessionLoginTransaction* transaction, - const gchar* host) -{ - PublishingPiwigoSSLErrorPane * self = NULL; - GTlsCertificate* cert = NULL; - gchar* text = NULL; - GTlsCertificate* _tmp0_ = NULL; - gchar* _tmp1_; -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION_LOGIN_TRANSACTION (transaction), NULL); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (host != NULL, NULL); -#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = publishing_rest_support_transaction_detailed_error_from_tls_flags (G_TYPE_CHECK_INSTANCE_CAST (transaction, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_tmp0_); -#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (cert); -#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - cert = _tmp0_; -#line 1016 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - text = _tmp1_; -#line 1017 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoSSLErrorPane*) g_object_new (object_type, "resource-path", PLUGIN_RESOURCE_PATH "/piwigo_ssl_failure_pane.ui", "default-id", "default", "cert", cert, "error-text", text, "host", host, NULL); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (text); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (cert); -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 7346 "PiwigoPublishing.c" -} - - -PublishingPiwigoSSLErrorPane* -publishing_piwigo_ssl_error_pane_new (PublishingPiwigoSessionLoginTransaction* transaction, - const gchar* host) -{ -#line 1013 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_ssl_error_pane_construct (PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, transaction, host); -#line 7356 "PiwigoPublishing.c" -} - - -static void -__lambda5_ (PublishingPiwigoSSLErrorPane* self) -{ - GcrSimpleCertificate* simple_cert = NULL; - GTlsCertificate* _tmp0_; - GByteArray* _tmp1_; - GByteArray* _tmp2_; - GByteArray* _tmp3_; - guint8* _tmp4_; - gint _tmp4__length1; - GcrSimpleCertificate* _tmp5_; - GcrSimpleCertificate* _tmp6_; - GcrCertificateWidget* widget = NULL; - GcrSimpleCertificate* _tmp7_; - GcrCertificateWidget* _tmp8_; - gboolean use_header = FALSE; - GtkSettings* _tmp9_; - GtkDialogFlags flags = 0; - gboolean _tmp10_; - GtkDialog* dialog = NULL; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - GtkDialogFlags _tmp17_; - GtkDialog* _tmp18_; - GtkDialog* _tmp19_; - GtkBox* _tmp20_; - GcrCertificateWidget* _tmp21_; -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_cert; -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_get (_tmp0_, "certificate", &_tmp1_, NULL); -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = _tmp1_; -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_->data; -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4__length1 = (gint) _tmp3_->len; -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = (GcrSimpleCertificate*) gcr_simple_certificate_new (_tmp4_, _tmp4__length1); -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp5_; -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_byte_array_unref0 (_tmp3_); -#line 1038 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - simple_cert = _tmp6_; -#line 1039 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = simple_cert; -#line 1039 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = gcr_certificate_widget_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gcr_certificate_get_type (), GcrCertificate)); -#line 1039 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_ref_sink (_tmp8_); -#line 1039 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - widget = _tmp8_; -#line 1040 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - use_header = TRUE; -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = gtk_settings_get_default (); -#line 1041 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, G_TYPE_OBJECT, GObject), "gtk-dialogs-use-header", &use_header, NULL); -#line 1042 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - flags = (GtkDialogFlags) 0; -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = use_header; -#line 1043 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp10_) { -#line 7430 "PiwigoPublishing.c" - GtkDialogFlags _tmp11_; -#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = flags; -#line 1044 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - flags = _tmp11_ | GTK_DIALOG_USE_HEADER_BAR; -#line 7436 "PiwigoPublishing.c" - } -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = publishing_piwigo_ssl_error_pane_get_host (self); -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = _tmp12_; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = _tmp13_; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = g_strdup_printf (_ ("Certificate of %s"), _tmp14_); -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = _tmp15_; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = flags; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = (GtkDialog*) gtk_dialog_new_with_buttons (_tmp16_, NULL, _tmp17_, _ ("_OK"), GTK_RESPONSE_OK, NULL); -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_ref_sink (_tmp18_); -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = _tmp18_; -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp16_); -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp14_); -#line 1047 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - dialog = _tmp19_; -#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = gtk_dialog_get_content_area (dialog); -#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = widget; -#line 1052 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget)); -#line 1053 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_dialog_set_default_response (dialog, (gint) GTK_RESPONSE_OK); -#line 1054 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_window_set_default_size (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_window_get_type (), GtkWindow), 640, -1); -#line 1055 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget)); -#line 1056 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_dialog_run (dialog); -#line 1057 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget)); -#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (dialog); -#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (widget); -#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (simple_cert); -#line 7484 "PiwigoPublishing.c" -} - - -static void -___lambda5__gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - __lambda5_ ((PublishingPiwigoSSLErrorPane*) self); -#line 7494 "PiwigoPublishing.c" -} - - -static void -__lambda6_ (PublishingPiwigoSSLErrorPane* self) -{ -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_emit (self, publishing_piwigo_ssl_error_pane_signals[PUBLISHING_PIWIGO_SSL_ERROR_PANE_PROCEED_SIGNAL], 0); -#line 7503 "PiwigoPublishing.c" -} - - -static void -___lambda6__gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - __lambda6_ ((PublishingPiwigoSSLErrorPane*) self); -#line 7513 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_ssl_error_pane_real_constructed (GObject* base) -{ - PublishingPiwigoSSLErrorPane * self; - GtkLabel* label = NULL; - GtkBuilder* _tmp0_; - GtkBuilder* _tmp1_; - GObject* _tmp2_; - GtkLabel* _tmp3_; - GtkLabel* _tmp4_; - GtkLabel* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - GtkLabel* _tmp11_; - GtkBuilder* _tmp12_; - GtkBuilder* _tmp13_; - GObject* _tmp14_; - GtkLabel* _tmp15_; - GtkLabel* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - GtkButton* info = NULL; - GtkBuilder* _tmp20_; - GtkBuilder* _tmp21_; - GObject* _tmp22_; - GtkButton* _tmp23_; - GtkButton* _tmp24_; - GtkButton* proceed = NULL; - GtkBuilder* _tmp25_; - GtkBuilder* _tmp26_; - GObject* _tmp27_; - GtkButton* _tmp28_; - GtkButton* _tmp29_; -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, PublishingPiwigoSSLErrorPane); -#line 1026 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (publishing_piwigo_ssl_error_pane_parent_class)->constructed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane), G_TYPE_OBJECT, GObject)); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = shotwell_plugins_common_builder_pane_get_builder (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = gtk_builder_get_object (_tmp1_, "main_text"); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp2_) : NULL); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_; -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp1_); -#line 1028 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - label = _tmp4_; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = label; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = publishing_piwigo_ssl_error_pane_get_host (self); -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _tmp6_; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _tmp7_; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = g_strdup_printf (_ ("This does not look like the real %s. Attackers might be trying " \ -"to steal or alter information going to or from this site (for example," \ -" private messages, credit card information, or passwords)."), _tmp8_); -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = _tmp9_; -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_label_set_text (_tmp5_, _tmp10_); -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp10_); -#line 1030 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp8_); -#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = label; -#line 1031 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_label_set_use_markup (_tmp11_, TRUE); -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = shotwell_plugins_common_builder_pane_get_builder (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = _tmp12_; -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = gtk_builder_get_object (_tmp13_, "ssl_errors"); -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp14_) : NULL); -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (label); -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - label = _tmp15_; -#line 1033 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp13_); -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = label; -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = publishing_piwigo_ssl_error_pane_get_error_text (self); -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = _tmp17_; -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = _tmp18_; -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_label_set_text (_tmp16_, _tmp19_); -#line 1034 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp19_); -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = shotwell_plugins_common_builder_pane_get_builder (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = _tmp20_; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = gtk_builder_get_object (_tmp21_, "default"); -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, gtk_button_get_type ()) ? ((GtkButton*) _tmp22_) : NULL); -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = _tmp23_; -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp21_); -#line 1036 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - info = _tmp24_; -#line 1037 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (info, "clicked", (GCallback) ___lambda5__gtk_button_clicked, self, 0); -#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = shotwell_plugins_common_builder_pane_get_builder (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = _tmp25_; -#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = gtk_builder_get_object (_tmp26_, "proceed_button"); -#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, gtk_button_get_type ()) ? ((GtkButton*) _tmp27_) : NULL); -#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp29_ = _tmp28_; -#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp26_); -#line 1060 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - proceed = _tmp29_; -#line 1061 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (proceed, "clicked", (GCallback) ___lambda6__gtk_button_clicked, self, 0); -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (proceed); -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (info); -#line 1025 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (label); -#line 7658 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_ssl_error_pane_get_host (PublishingPiwigoSSLErrorPane* self) -{ - gchar* result; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SSL_ERROR_PANE (self), NULL); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_host; -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 7678 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_ssl_error_pane_set_host (PublishingPiwigoSSLErrorPane* self, - const gchar* value) -{ -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_SSL_ERROR_PANE (self)); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (value, publishing_piwigo_ssl_error_pane_get_host (self)) != 0) { -#line 7690 "PiwigoPublishing.c" - gchar* _tmp0_; -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (value); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->_host); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_host = _tmp0_; -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_ssl_error_pane_properties[PUBLISHING_PIWIGO_SSL_ERROR_PANE_HOST_PROPERTY]); -#line 7700 "PiwigoPublishing.c" - } -} - - -static GTlsCertificate* -publishing_piwigo_ssl_error_pane_get_cert (PublishingPiwigoSSLErrorPane* self) -{ - GTlsCertificate* result; - GTlsCertificate* _tmp0_; -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SSL_ERROR_PANE (self), NULL); -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_cert; -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 7718 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_ssl_error_pane_set_cert (PublishingPiwigoSSLErrorPane* self, - GTlsCertificate* value) -{ -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_SSL_ERROR_PANE (self)); -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_ssl_error_pane_get_cert (self) != value) { -#line 7730 "PiwigoPublishing.c" - GTlsCertificate* _tmp0_; -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _g_object_ref0 (value); -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->_cert); -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_cert = _tmp0_; -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_ssl_error_pane_properties[PUBLISHING_PIWIGO_SSL_ERROR_PANE_CERT_PROPERTY]); -#line 7740 "PiwigoPublishing.c" - } -} - - -gchar* -publishing_piwigo_ssl_error_pane_get_error_text (PublishingPiwigoSSLErrorPane* self) -{ - gchar* result; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SSL_ERROR_PANE (self), NULL); -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_error_text; -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 7761 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_ssl_error_pane_set_error_text (PublishingPiwigoSSLErrorPane* self, - const gchar* value) -{ -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_SSL_ERROR_PANE (self)); -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (value, publishing_piwigo_ssl_error_pane_get_error_text (self)) != 0) { -#line 7773 "PiwigoPublishing.c" - gchar* _tmp0_; -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (value); -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->_error_text); -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_error_text = _tmp0_; -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_ssl_error_pane_properties[PUBLISHING_PIWIGO_SSL_ERROR_PANE_ERROR_TEXT_PROPERTY]); -#line 7783 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_ssl_error_pane_class_init (PublishingPiwigoSSLErrorPaneClass * klass) -{ -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_ssl_error_pane_parent_class = g_type_class_peek_parent (klass); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPiwigoSSLErrorPanePrivate)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) publishing_piwigo_ssl_error_pane_real_constructed; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_publishing_piwigo_ssl_error_pane_get_property; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_publishing_piwigo_ssl_error_pane_set_property; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_piwigo_ssl_error_pane_finalize; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_SSL_ERROR_PANE_HOST_PROPERTY, publishing_piwigo_ssl_error_pane_properties[PUBLISHING_PIWIGO_SSL_ERROR_PANE_HOST_PROPERTY] = g_param_spec_string ("host", "host", "host", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_SSL_ERROR_PANE_CERT_PROPERTY, publishing_piwigo_ssl_error_pane_properties[PUBLISHING_PIWIGO_SSL_ERROR_PANE_CERT_PROPERTY] = g_param_spec_object ("cert", "cert", "cert", g_tls_certificate_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_SSL_ERROR_PANE_ERROR_TEXT_PROPERTY, publishing_piwigo_ssl_error_pane_properties[PUBLISHING_PIWIGO_SSL_ERROR_PANE_ERROR_TEXT_PROPERTY] = g_param_spec_string ("error-text", "error-text", "error-text", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_ssl_error_pane_signals[PUBLISHING_PIWIGO_SSL_ERROR_PANE_PROCEED_SIGNAL] = g_signal_new ("proceed", PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 7811 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_ssl_error_pane_instance_init (PublishingPiwigoSSLErrorPane * self) -{ -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv = PUBLISHING_PIWIGO_SSL_ERROR_PANE_GET_PRIVATE (self); -#line 7820 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_ssl_error_pane_finalize (GObject * obj) -{ - PublishingPiwigoSSLErrorPane * self; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, PublishingPiwigoSSLErrorPane); -#line 1009 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->_host); -#line 1010 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->_cert); -#line 1011 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->_error_text); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (publishing_piwigo_ssl_error_pane_parent_class)->finalize (obj); -#line 7838 "PiwigoPublishing.c" -} - - -GType -publishing_piwigo_ssl_error_pane_get_type (void) -{ - static volatile gsize publishing_piwigo_ssl_error_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_ssl_error_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoSSLErrorPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_ssl_error_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoSSLErrorPane), 0, (GInstanceInitFunc) publishing_piwigo_ssl_error_pane_instance_init, NULL }; - GType publishing_piwigo_ssl_error_pane_type_id; - publishing_piwigo_ssl_error_pane_type_id = g_type_register_static (SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, "PublishingPiwigoSSLErrorPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_ssl_error_pane_type_id__volatile, publishing_piwigo_ssl_error_pane_type_id); - } - return publishing_piwigo_ssl_error_pane_type_id__volatile; -} - - -static void -_vala_publishing_piwigo_ssl_error_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - PublishingPiwigoSSLErrorPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, PublishingPiwigoSSLErrorPane); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - switch (property_id) { -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_SSL_ERROR_PANE_HOST_PROPERTY: -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_take_string (value, publishing_piwigo_ssl_error_pane_get_host (self)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_SSL_ERROR_PANE_CERT_PROPERTY: -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_object (value, publishing_piwigo_ssl_error_pane_get_cert (self)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_SSL_ERROR_PANE_ERROR_TEXT_PROPERTY: -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_take_string (value, publishing_piwigo_ssl_error_pane_get_error_text (self)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 7884 "PiwigoPublishing.c" - default: -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 7890 "PiwigoPublishing.c" - } -} - - -static void -_vala_publishing_piwigo_ssl_error_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - PublishingPiwigoSSLErrorPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_PIWIGO_TYPE_SSL_ERROR_PANE, PublishingPiwigoSSLErrorPane); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - switch (property_id) { -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_SSL_ERROR_PANE_HOST_PROPERTY: -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_ssl_error_pane_set_host (self, g_value_get_string (value)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_SSL_ERROR_PANE_CERT_PROPERTY: -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_ssl_error_pane_set_cert (self, g_value_get_object (value)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_SSL_ERROR_PANE_ERROR_TEXT_PROPERTY: -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_ssl_error_pane_set_error_text (self, g_value_get_string (value)); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 7923 "PiwigoPublishing.c" - default: -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 1006 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 7929 "PiwigoPublishing.c" - } -} - - -GType -publishing_piwigo_authentication_pane_mode_get_type (void) -{ - static volatile gsize publishing_piwigo_authentication_pane_mode_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_authentication_pane_mode_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO, "PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO", "intro"}, {PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL, "PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL", "failed-retry-url"}, {PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER, "PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER", "failed-retry-user"}, {0, NULL, NULL}}; - GType publishing_piwigo_authentication_pane_mode_type_id; - publishing_piwigo_authentication_pane_mode_type_id = g_enum_register_static ("PublishingPiwigoAuthenticationPaneMode", values); - g_once_init_leave (&publishing_piwigo_authentication_pane_mode_type_id__volatile, publishing_piwigo_authentication_pane_mode_type_id); - } - return publishing_piwigo_authentication_pane_mode_type_id__volatile; -} - - -PublishingPiwigoAuthenticationPane* -publishing_piwigo_authentication_pane_construct (GType object_type, - PublishingPiwigoPiwigoPublisher* publisher, - PublishingPiwigoAuthenticationPaneMode mode) -{ - PublishingPiwigoAuthenticationPane * self = NULL; -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (publisher), NULL); -#line 1092 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoAuthenticationPane*) g_object_new (object_type, "resource-path", PLUGIN_RESOURCE_PATH "/piwigo_authentication_pane.ui", "connect-signals", TRUE, "default-id", "login_button", "mode", mode, "publisher", publisher, NULL); -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 7960 "PiwigoPublishing.c" -} - - -PublishingPiwigoAuthenticationPane* -publishing_piwigo_authentication_pane_new (PublishingPiwigoPiwigoPublisher* publisher, - PublishingPiwigoAuthenticationPaneMode mode) -{ -#line 1091 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_authentication_pane_construct (PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, publisher, mode); -#line 7970 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_authentication_pane_on_user_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_on_user_changed ((PublishingPiwigoAuthenticationPane*) self); -#line 7980 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_authentication_pane_on_url_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_on_url_changed ((PublishingPiwigoAuthenticationPane*) self); -#line 7990 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_authentication_pane_on_password_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_on_password_changed ((PublishingPiwigoAuthenticationPane*) self); -#line 8000 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_authentication_pane_on_login_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_on_login_button_clicked ((PublishingPiwigoAuthenticationPane*) self); -#line 8010 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_real_constructed (GObject* base) -{ - PublishingPiwigoAuthenticationPane * self; - GtkBuilder* builder = NULL; - GtkBuilder* _tmp0_; - GtkLabel* message_label = NULL; - GtkBuilder* _tmp1_; - GObject* _tmp2_; - GtkLabel* _tmp3_; - PublishingPiwigoAuthenticationPaneMode _tmp4_; - GtkBuilder* _tmp15_; - GObject* _tmp16_; - GtkEntry* _tmp17_; - gchar* persistent_url = NULL; - PublishingPiwigoPiwigoPublisher* _tmp18_; - gchar* _tmp19_; - const gchar* _tmp20_; - GtkBuilder* _tmp23_; - GObject* _tmp24_; - GtkEntry* _tmp25_; - gchar* persistent_username = NULL; - PublishingPiwigoPiwigoPublisher* _tmp26_; - gchar* _tmp27_; - const gchar* _tmp28_; - GtkBuilder* _tmp31_; - GObject* _tmp32_; - GtkEntry* _tmp33_; - gchar* persistent_password = NULL; - PublishingPiwigoPiwigoPublisher* _tmp34_; - gchar* _tmp35_; - const gchar* _tmp36_; - GtkBuilder* _tmp39_; - GObject* _tmp40_; - GtkSwitch* _tmp41_; - GtkSwitch* _tmp42_; - PublishingPiwigoPiwigoPublisher* _tmp43_; - GtkBuilder* _tmp44_; - GObject* _tmp45_; - GtkButton* _tmp46_; - GtkEntry* _tmp47_; - GtkEntry* _tmp48_; - GtkEntry* _tmp49_; - GtkButton* _tmp50_; - PublishingPiwigoPiwigoPublisher* _tmp51_; - SpitPublishingPluginHost* _tmp52_; - SpitPublishingPluginHost* _tmp53_; - GtkButton* _tmp54_; -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane); -#line 1101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (publishing_piwigo_authentication_pane_parent_class)->constructed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane), G_TYPE_OBJECT, GObject)); -#line 1103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = shotwell_plugins_common_builder_pane_get_builder (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 1103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - builder = _tmp0_; -#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = builder; -#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = gtk_builder_get_object (_tmp1_, "message_label"); -#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp2_) : NULL); -#line 1104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - message_label = _tmp3_; -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->_mode; -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - switch (_tmp4_) { -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_INTRO: -#line 8084 "PiwigoPublishing.c" - { - GtkLabel* _tmp5_; - const gchar* _tmp6_; -#line 1107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = message_label; -#line 1107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = publishing_piwigo_authentication_pane_INTRO_MESSAGE; -#line 1107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_label_set_text (_tmp5_, _tmp6_); -#line 1108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 8096 "PiwigoPublishing.c" - } -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_URL: -#line 8100 "PiwigoPublishing.c" - { - GtkLabel* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = message_label; -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = publishing_piwigo_authentication_pane_FAILED_RETRY_URL_MESSAGE; -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = g_strdup_printf ("%s\n\n%s", _ ("Invalid URL"), _tmp8_); -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = _tmp9_; -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_label_set_markup (_tmp7_, _tmp10_); -#line 1111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp10_); -#line 1113 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 8120 "PiwigoPublishing.c" - } -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_FAILED_RETRY_USER: -#line 8124 "PiwigoPublishing.c" - { - GtkLabel* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; -#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = message_label; -#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = publishing_piwigo_authentication_pane_FAILED_RETRY_USER_MESSAGE; -#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = g_strdup_printf ("%s\n\n%s", _ ("Invalid User Name or Password"), _tmp12_); -#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = _tmp13_; -#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_label_set_markup (_tmp11_, _tmp14_); -#line 1116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp14_); -#line 1118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 8144 "PiwigoPublishing.c" - } - default: -#line 1105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 8149 "PiwigoPublishing.c" - } -#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = builder; -#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = gtk_builder_get_object (_tmp15_, "url_entry"); -#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp16_) : NULL); -#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->url_entry); -#line 1121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->url_entry = _tmp17_; -#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = self->priv->_publisher; -#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = publishing_piwigo_piwigo_publisher_get_persistent_url (_tmp18_); -#line 1122 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_url = _tmp19_; -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = persistent_url; -#line 1123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp20_ != NULL) { -#line 8171 "PiwigoPublishing.c" - GtkEntry* _tmp21_; - const gchar* _tmp22_; -#line 1124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = self->priv->url_entry; -#line 1124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = persistent_url; -#line 1124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_entry_set_text (_tmp21_, _tmp22_); -#line 8180 "PiwigoPublishing.c" - } -#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = builder; -#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = gtk_builder_get_object (_tmp23_, "username_entry"); -#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp24_) : NULL); -#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->username_entry); -#line 1126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->username_entry = _tmp25_; -#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = self->priv->_publisher; -#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = publishing_piwigo_piwigo_publisher_get_persistent_username (_tmp26_); -#line 1127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_username = _tmp27_; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = persistent_username; -#line 1128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp28_ != NULL) { -#line 8202 "PiwigoPublishing.c" - GtkEntry* _tmp29_; - const gchar* _tmp30_; -#line 1129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp29_ = self->priv->username_entry; -#line 1129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp30_ = persistent_username; -#line 1129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_entry_set_text (_tmp29_, _tmp30_); -#line 8211 "PiwigoPublishing.c" - } -#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp31_ = builder; -#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp32_ = gtk_builder_get_object (_tmp31_, "password_entry"); -#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp32_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp32_) : NULL); -#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->password_entry); -#line 1131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->password_entry = _tmp33_; -#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp34_ = self->priv->_publisher; -#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp35_ = publishing_piwigo_piwigo_publisher_get_persistent_password (_tmp34_); -#line 1132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - persistent_password = _tmp35_; -#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp36_ = persistent_password; -#line 1133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp36_ != NULL) { -#line 8233 "PiwigoPublishing.c" - GtkEntry* _tmp37_; - const gchar* _tmp38_; -#line 1134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp37_ = self->priv->password_entry; -#line 1134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp38_ = persistent_password; -#line 1134 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_entry_set_text (_tmp37_, _tmp38_); -#line 8242 "PiwigoPublishing.c" - } -#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp39_ = builder; -#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp40_ = gtk_builder_get_object (_tmp39_, "remember_password_checkbutton"); -#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp41_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp40_, gtk_switch_get_type ()) ? ((GtkSwitch*) _tmp40_) : NULL); -#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->remember_password_checkbutton); -#line 1136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->remember_password_checkbutton = _tmp41_; -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp42_ = self->priv->remember_password_checkbutton; -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp43_ = self->priv->_publisher; -#line 1138 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_switch_set_active (_tmp42_, publishing_piwigo_piwigo_publisher_get_remember_password (_tmp43_)); -#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp44_ = builder; -#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp45_ = gtk_builder_get_object (_tmp44_, "login_button"); -#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp46_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp45_, gtk_button_get_type ()) ? ((GtkButton*) _tmp45_) : NULL); -#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->login_button); -#line 1140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->login_button = _tmp46_; -#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp47_ = self->priv->username_entry; -#line 1142 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_piwigo_authentication_pane_on_user_changed_gtk_editable_changed, self, 0); -#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp48_ = self->priv->url_entry; -#line 1143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_piwigo_authentication_pane_on_url_changed_gtk_editable_changed, self, 0); -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp49_ = self->priv->password_entry; -#line 1144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_piwigo_authentication_pane_on_password_changed_gtk_editable_changed, self, 0); -#line 1145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp50_ = self->priv->login_button; -#line 1145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (_tmp50_, "clicked", (GCallback) _publishing_piwigo_authentication_pane_on_login_button_clicked_gtk_button_clicked, self, 0); -#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp51_ = self->priv->_publisher; -#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp52_ = publishing_piwigo_piwigo_publisher_get_host (_tmp51_); -#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp53_ = _tmp52_; -#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp54_ = self->priv->login_button; -#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - spit_publishing_plugin_host_set_dialog_default_widget (_tmp53_, G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_widget_get_type (), GtkWidget)); -#line 1147 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp53_); -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_password); -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_username); -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (persistent_url); -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (message_label); -#line 1100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (builder); -#line 8308 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_on_login_button_clicked (PublishingPiwigoAuthenticationPane* self) -{ - GtkEntry* _tmp0_; - const gchar* _tmp1_; - GtkEntry* _tmp2_; - const gchar* _tmp3_; - GtkEntry* _tmp4_; - const gchar* _tmp5_; - GtkSwitch* _tmp6_; -#line 1150 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self)); -#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->url_entry; -#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->username_entry; -#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = gtk_entry_get_text (_tmp2_); -#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->password_entry; -#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = gtk_entry_get_text (_tmp4_); -#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = self->priv->remember_password_checkbutton; -#line 1151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_emit (self, publishing_piwigo_authentication_pane_signals[PUBLISHING_PIWIGO_AUTHENTICATION_PANE_LOGIN_SIGNAL], 0, _tmp1_, _tmp3_, _tmp5_, gtk_switch_get_active (_tmp6_)); -#line 8340 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_on_url_changed (PublishingPiwigoAuthenticationPane* self) -{ -#line 1155 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self)); -#line 1156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_update_login_button_sensitivity (self); -#line 8351 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_on_user_changed (PublishingPiwigoAuthenticationPane* self) -{ -#line 1159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self)); -#line 1160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_update_login_button_sensitivity (self); -#line 8362 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_on_password_changed (PublishingPiwigoAuthenticationPane* self) -{ -#line 1163 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self)); -#line 1164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_update_login_button_sensitivity (self); -#line 8373 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_update_login_button_sensitivity (PublishingPiwigoAuthenticationPane* self) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GtkEntry* _tmp2_; - guint _tmp3_; - guint _tmp4_; - GtkButton* _tmp11_; -#line 1167 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self)); -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->url_entry; -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = gtk_entry_get_text_length (_tmp2_); -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_; -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp4_ != ((guint) 0)) { -#line 8396 "PiwigoPublishing.c" - GtkEntry* _tmp5_; - guint _tmp6_; - guint _tmp7_; -#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = self->priv->username_entry; -#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = gtk_entry_get_text_length (_tmp5_); -#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _tmp6_; -#line 1169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp7_ != ((guint) 0); -#line 8408 "PiwigoPublishing.c" - } else { -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = FALSE; -#line 8412 "PiwigoPublishing.c" - } -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp1_) { -#line 8416 "PiwigoPublishing.c" - GtkEntry* _tmp8_; - guint _tmp9_; - guint _tmp10_; -#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = self->priv->password_entry; -#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = gtk_entry_get_text_length (_tmp8_); -#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = _tmp9_; -#line 1170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _tmp10_ != ((guint) 0); -#line 8428 "PiwigoPublishing.c" - } else { -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = FALSE; -#line 8432 "PiwigoPublishing.c" - } -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = self->priv->login_button; -#line 1168 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), _tmp0_); -#line 8438 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_real_on_pane_installed (ShotwellPluginsCommonBuilderPane* base) -{ - PublishingPiwigoAuthenticationPane * self; - GtkEntry* _tmp0_; - GtkEntry* _tmp1_; - GtkButton* _tmp2_; -#line 1173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane); -#line 1174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CLASS (publishing_piwigo_authentication_pane_parent_class)->on_pane_installed (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->url_entry; -#line 1176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->password_entry; -#line 1177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_entry_set_activates_default (_tmp1_, TRUE); -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->login_button; -#line 1178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_can_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_update_login_button_sensitivity (self); -#line 8467 "PiwigoPublishing.c" -} - - -PublishingPiwigoAuthenticationPaneMode -publishing_piwigo_authentication_pane_get_mode (PublishingPiwigoAuthenticationPane* self) -{ - PublishingPiwigoAuthenticationPaneMode result; - PublishingPiwigoAuthenticationPaneMode _tmp0_; -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self), 0); -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_mode; -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 8484 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_set_mode (PublishingPiwigoAuthenticationPane* self, - PublishingPiwigoAuthenticationPaneMode value) -{ -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self)); -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_authentication_pane_get_mode (self) != value) { -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_mode = value; -#line 1076 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_authentication_pane_properties[PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_PROPERTY]); -#line 8500 "PiwigoPublishing.c" - } -} - - -PublishingPiwigoPiwigoPublisher* -publishing_piwigo_authentication_pane_get_publisher (PublishingPiwigoAuthenticationPane* self) -{ - PublishingPiwigoPiwigoPublisher* result; - PublishingPiwigoPiwigoPublisher* _tmp0_; -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self), NULL); -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_publisher; -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 8518 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_set_publisher (PublishingPiwigoAuthenticationPane* self, - PublishingPiwigoPiwigoPublisher* value) -{ -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_AUTHENTICATION_PANE (self)); -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_authentication_pane_get_publisher (self) != value) { -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_publisher = value; -#line 1077 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_authentication_pane_properties[PUBLISHING_PIWIGO_AUTHENTICATION_PANE_PUBLISHER_PROPERTY]); -#line 8534 "PiwigoPublishing.c" - } -} - - -static void -g_cclosure_user_marshal_VOID__STRING_STRING_STRING_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__STRING_STRING_STRING_BOOLEAN) (gpointer data1, const char* arg_1, const char* arg_2, const char* arg_3, gboolean arg_4, gpointer data2); - register GMarshalFunc_VOID__STRING_STRING_STRING_BOOLEAN callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (n_param_values == 5); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - data1 = closure->data; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - data2 = param_values->data[0].v_pointer; -#line 8561 "PiwigoPublishing.c" - } else { -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - data1 = param_values->data[0].v_pointer; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - data2 = closure->data; -#line 8567 "PiwigoPublishing.c" - } -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - callback = (GMarshalFunc_VOID__STRING_STRING_STRING_BOOLEAN) (marshal_data ? marshal_data : cc->callback); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), g_value_get_string (param_values + 3), g_value_get_boolean (param_values + 4), data2); -#line 8573 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_class_init (PublishingPiwigoAuthenticationPaneClass * klass) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_parent_class = g_type_class_peek_parent (klass); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPiwigoAuthenticationPanePrivate)); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) publishing_piwigo_authentication_pane_real_constructed; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((ShotwellPluginsCommonBuilderPaneClass *) klass)->on_pane_installed = (void (*) (ShotwellPluginsCommonBuilderPane *)) publishing_piwigo_authentication_pane_real_on_pane_installed; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_publishing_piwigo_authentication_pane_get_property; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_publishing_piwigo_authentication_pane_set_property; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_piwigo_authentication_pane_finalize; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_PROPERTY, publishing_piwigo_authentication_pane_properties[PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_PROPERTY] = g_param_spec_enum ("mode", "mode", "mode", PUBLISHING_PIWIGO_AUTHENTICATION_PANE_TYPE_MODE, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_AUTHENTICATION_PANE_PUBLISHER_PROPERTY, publishing_piwigo_authentication_pane_properties[PUBLISHING_PIWIGO_AUTHENTICATION_PANE_PUBLISHER_PROPERTY] = g_param_spec_object ("publisher", "publisher", "publisher", PUBLISHING_PIWIGO_TYPE_PIWIGO_PUBLISHER, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_signals[PUBLISHING_PIWIGO_AUTHENTICATION_PANE_LOGIN_SIGNAL] = g_signal_new ("login", PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING_STRING_BOOLEAN, G_TYPE_NONE, 4, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_BOOLEAN); -#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (_ ("Enter the URL of your Piwigo photo library as well as the username and" \ -" password associated with your Piwigo account for that library.")); -#line 1079 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_INTRO_MESSAGE = _tmp0_; -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (_ ("Shotwell cannot contact your Piwigo photo library. Please verify the U" \ -"RL you entered")); -#line 1080 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_FAILED_RETRY_URL_MESSAGE = _tmp1_; -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_strdup (_ ("Username and/or password invalid. Please try again")); -#line 1081 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_FAILED_RETRY_USER_MESSAGE = _tmp2_; -#line 8615 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_instance_init (PublishingPiwigoAuthenticationPane * self) -{ -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv = PUBLISHING_PIWIGO_AUTHENTICATION_PANE_GET_PRIVATE (self); -#line 8624 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_authentication_pane_finalize (GObject * obj) -{ - PublishingPiwigoAuthenticationPane * self; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane); -#line 1083 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->url_entry); -#line 1084 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->username_entry); -#line 1085 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->password_entry); -#line 1086 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->remember_password_checkbutton); -#line 1087 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->login_button); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (publishing_piwigo_authentication_pane_parent_class)->finalize (obj); -#line 8646 "PiwigoPublishing.c" -} - - -/** - * The authentication pane used when asking service URL, user name and password - * from the user. - */ -GType -publishing_piwigo_authentication_pane_get_type (void) -{ - static volatile gsize publishing_piwigo_authentication_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_authentication_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoAuthenticationPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_authentication_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoAuthenticationPane), 0, (GInstanceInitFunc) publishing_piwigo_authentication_pane_instance_init, NULL }; - GType publishing_piwigo_authentication_pane_type_id; - publishing_piwigo_authentication_pane_type_id = g_type_register_static (SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, "PublishingPiwigoAuthenticationPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_authentication_pane_type_id__volatile, publishing_piwigo_authentication_pane_type_id); - } - return publishing_piwigo_authentication_pane_type_id__volatile; -} - - -static void -_vala_publishing_piwigo_authentication_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - PublishingPiwigoAuthenticationPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - switch (property_id) { -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_PROPERTY: -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_enum (value, publishing_piwigo_authentication_pane_get_mode (self)); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_AUTHENTICATION_PANE_PUBLISHER_PROPERTY: -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_object (value, publishing_piwigo_authentication_pane_get_publisher (self)); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 8690 "PiwigoPublishing.c" - default: -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 8696 "PiwigoPublishing.c" - } -} - - -static void -_vala_publishing_piwigo_authentication_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - PublishingPiwigoAuthenticationPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_PIWIGO_TYPE_AUTHENTICATION_PANE, PublishingPiwigoAuthenticationPane); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - switch (property_id) { -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_AUTHENTICATION_PANE_MODE_PROPERTY: -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_set_mode (self, g_value_get_enum (value)); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_AUTHENTICATION_PANE_PUBLISHER_PROPERTY: -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_authentication_pane_set_publisher (self, g_value_get_object (value)); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 8723 "PiwigoPublishing.c" - default: -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 1069 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 8729 "PiwigoPublishing.c" - } -} - - -static gpointer -_publishing_piwigo_category_ref0 (gpointer self) -{ -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self ? publishing_piwigo_category_ref (self) : NULL; -#line 8739 "PiwigoPublishing.c" -} - - -static PublishingPiwigoCategory** -_vala_array_dup13 (PublishingPiwigoCategory** self, - int length) -{ - PublishingPiwigoCategory** result; - int i; -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = g_new0 (PublishingPiwigoCategory*, length + 1); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - for (i = 0; i < length; i++) { -#line 8753 "PiwigoPublishing.c" - PublishingPiwigoCategory* _tmp0_; -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _publishing_piwigo_category_ref0 (self[i]); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result[i] = _tmp0_; -#line 8759 "PiwigoPublishing.c" - } -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 8763 "PiwigoPublishing.c" -} - - -static gboolean -_publishing_piwigo_category_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gboolean result; - result = publishing_piwigo_category_equal ((PublishingPiwigoCategory*) a, (PublishingPiwigoCategory*) b); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 8776 "PiwigoPublishing.c" -} - - -PublishingPiwigoPublishingOptionsPane* -publishing_piwigo_publishing_options_pane_construct (GType object_type, - PublishingPiwigoPiwigoPublisher* publisher, - PublishingPiwigoCategory** categories, - int categories_length1, - gint last_category, - gint last_permission_level, - gint last_photo_size, - gboolean last_title_as_comment, - gboolean last_no_upload_tags, - gboolean strip_metadata_enabled) -{ - PublishingPiwigoPublishingOptionsPane * self = NULL; - PublishingPiwigoCategory** _tmp0_; - gint _tmp0__length1; - GeeArrayList* _tmp1_; - GeeArrayList* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (publisher), NULL); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = (categories != NULL) ? _vala_array_dup13 (categories, categories_length1) : ((gpointer) categories); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0__length1 = categories_length1; -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = gee_array_list_new_wrap (PUBLISHING_PIWIGO_TYPE_CATEGORY, (GBoxedCopyFunc) publishing_piwigo_category_ref, (GDestroyNotify) publishing_piwigo_category_unref, _tmp0_, _tmp0__length1, _publishing_piwigo_category_equal_gee_equal_data_func, NULL, NULL); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = _tmp1_; -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_piwigo_publishing_options_pane_get_common_comment_if_possible (publisher); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_; -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoPublishingOptionsPane*) g_object_new (object_type, "resource-path", PLUGIN_RESOURCE_PATH "/piwigo_publishing_options_pane.ui", "connect-signals", TRUE, "default-id", "publish_button", "last-category", last_category, "last-permission-level", last_permission_level, "last-photo-size", last_photo_size, "last-title-as-comment", last_title_as_comment, "last-no-upload-tags", last_no_upload_tags, "strip-metadata-enabled", strip_metadata_enabled, "existing-categories", _tmp2_, "default-comment", _tmp4_, NULL); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp4_); -#line 1229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp2_); -#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 8821 "PiwigoPublishing.c" -} - - -PublishingPiwigoPublishingOptionsPane* -publishing_piwigo_publishing_options_pane_new (PublishingPiwigoPiwigoPublisher* publisher, - PublishingPiwigoCategory** categories, - int categories_length1, - gint last_category, - gint last_permission_level, - gint last_photo_size, - gboolean last_title_as_comment, - gboolean last_no_upload_tags, - gboolean strip_metadata_enabled) -{ -#line 1221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_publishing_options_pane_construct (PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, publisher, categories, categories_length1, last_category, last_permission_level, last_photo_size, last_title_as_comment, last_no_upload_tags, strip_metadata_enabled); -#line 8838 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_on_logout_button_clicked ((PublishingPiwigoPublishingOptionsPane*) self); -#line 8848 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_on_publish_button_clicked ((PublishingPiwigoPublishingOptionsPane*) self); -#line 8858 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked ((PublishingPiwigoPublishingOptionsPane*) self); -#line 8868 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked ((PublishingPiwigoPublishingOptionsPane*) self); -#line 8878 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_publishing_options_pane_on_new_category_entry_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_on_new_category_entry_changed ((PublishingPiwigoPublishingOptionsPane*) self); -#line 8888 "PiwigoPublishing.c" -} - - -static void -_publishing_piwigo_publishing_options_pane_on_existing_combo_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 1280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_on_existing_combo_changed ((PublishingPiwigoPublishingOptionsPane*) self); -#line 8898 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_real_constructed (GObject* base) -{ - PublishingPiwigoPublishingOptionsPane * self; - GtkBuilder* builder = NULL; - GtkBuilder* _tmp0_; - GObject* _tmp1_; - GtkRadioButton* _tmp2_; - GObject* _tmp3_; - GtkRadioButton* _tmp4_; - GObject* _tmp5_; - GtkComboBoxText* _tmp6_; - GObject* _tmp7_; - GtkEntry* _tmp8_; - GObject* _tmp9_; - GtkLabel* _tmp10_; - GObject* _tmp11_; - GtkComboBoxText* _tmp12_; - GObject* _tmp13_; - GtkTextView* _tmp14_; - GtkTextView* _tmp15_; - GtkTextBuffer* _tmp16_; - GtkTextBuffer* _tmp17_; - GObject* _tmp18_; - GtkLabel* _tmp19_; - GObject* _tmp20_; - GtkComboBoxText* _tmp21_; - GObject* _tmp22_; - GtkComboBoxText* _tmp23_; - GObject* _tmp24_; - GtkCheckButton* _tmp25_; - GtkCheckButton* _tmp26_; - gboolean _tmp27_; - GObject* _tmp28_; - GtkCheckButton* _tmp29_; - GtkCheckButton* _tmp30_; - gboolean _tmp31_; - GObject* _tmp32_; - GtkCheckButton* _tmp33_; - GtkCheckButton* _tmp34_; - gboolean _tmp35_; - GObject* _tmp36_; - GtkButton* _tmp37_; - GtkButton* _tmp38_; - GObject* _tmp39_; - GtkButton* _tmp40_; - GtkButton* _tmp41_; - GtkRadioButton* _tmp42_; - GtkRadioButton* _tmp43_; - GtkEntry* _tmp44_; - GtkComboBoxText* _tmp45_; - gint _tmp46_; - PublishingPiwigoPermissionLevel** _tmp47_; - gint _tmp48_; - PublishingPiwigoSizeEntry** _tmp49_; - GtkTextView* _tmp50_; - GtkTextBuffer* _tmp51_; - GtkTextBuffer* _tmp52_; - const gchar* _tmp53_; -#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane); -#line 1245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (publishing_piwigo_publishing_options_pane_parent_class)->constructed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane), G_TYPE_OBJECT, GObject)); -#line 1246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = shotwell_plugins_common_builder_pane_get_builder (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 1246 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - builder = _tmp0_; -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = gtk_builder_get_object (builder, "use_existing_radio"); -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_radio_button_get_type ()) ? ((GtkRadioButton*) _tmp1_) : NULL); -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->use_existing_radio); -#line 1248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->use_existing_radio = _tmp2_; -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = gtk_builder_get_object (builder, "create_new_radio"); -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, gtk_radio_button_get_type ()) ? ((GtkRadioButton*) _tmp3_) : NULL); -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->create_new_radio); -#line 1249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->create_new_radio = _tmp4_; -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = gtk_builder_get_object (builder, "existing_categories_combo"); -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp5_) : NULL); -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->existing_categories_combo); -#line 1250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->existing_categories_combo = _tmp6_; -#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = gtk_builder_get_object (builder, "new_category_entry"); -#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, gtk_entry_get_type ()) ? ((GtkEntry*) _tmp7_) : NULL); -#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->new_category_entry); -#line 1251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->new_category_entry = _tmp8_; -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = gtk_builder_get_object (builder, "within_existing_label"); -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp9_) : NULL); -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->within_existing_label); -#line 1252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->within_existing_label = _tmp10_; -#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = gtk_builder_get_object (builder, "within_existing_combo"); -#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp11_) : NULL); -#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->within_existing_combo); -#line 1253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->within_existing_combo = _tmp12_; -#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = gtk_builder_get_object (builder, "album_comment"); -#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, gtk_text_view_get_type ()) ? ((GtkTextView*) _tmp13_) : NULL); -#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->album_comment); -#line 1255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->album_comment = _tmp14_; -#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = self->priv->album_comment; -#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = gtk_text_buffer_new (NULL); -#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = _tmp16_; -#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_text_view_set_buffer (_tmp15_, _tmp17_); -#line 1256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp17_); -#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = gtk_builder_get_object (builder, "album_comment_label"); -#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp18_) : NULL); -#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->album_comment_label); -#line 1257 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->album_comment_label = _tmp19_; -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = gtk_builder_get_object (builder, "perms_combo"); -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp20_) : NULL); -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->perms_combo); -#line 1259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->perms_combo = _tmp21_; -#line 1260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = gtk_builder_get_object (builder, "size_combo"); -#line 1260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp22_) : NULL); -#line 1260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->size_combo); -#line 1260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->size_combo = _tmp23_; -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = gtk_builder_get_object (builder, "strip_metadata_check"); -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp24_) : NULL); -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 1262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->strip_metadata_check = _tmp25_; -#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = self->priv->strip_metadata_check; -#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = self->priv->_strip_metadata_enabled; -#line 1263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp27_); -#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = gtk_builder_get_object (builder, "title_as_comment_check"); -#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp29_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp28_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp28_) : NULL); -#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->title_as_comment_check); -#line 1265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->title_as_comment_check = _tmp29_; -#line 1266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp30_ = self->priv->title_as_comment_check; -#line 1266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp31_ = self->priv->_last_title_as_comment; -#line 1266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp31_); -#line 1268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp32_ = gtk_builder_get_object (builder, "no_upload_tags_check"); -#line 1268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp32_, gtk_check_button_get_type ()) ? ((GtkCheckButton*) _tmp32_) : NULL); -#line 1268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->no_upload_tags_check); -#line 1268 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->no_upload_tags_check = _tmp33_; -#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp34_ = self->priv->no_upload_tags_check; -#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp35_ = self->priv->_last_no_upload_tags; -#line 1269 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp35_); -#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp36_ = gtk_builder_get_object (builder, "logout_button"); -#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp37_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp36_, gtk_button_get_type ()) ? ((GtkButton*) _tmp36_) : NULL); -#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 1271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->logout_button = _tmp37_; -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp38_ = self->priv->logout_button; -#line 1272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (_tmp38_, "clicked", (GCallback) _publishing_piwigo_publishing_options_pane_on_logout_button_clicked_gtk_button_clicked, self, 0); -#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp39_ = gtk_builder_get_object (builder, "publish_button"); -#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp40_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp39_, gtk_button_get_type ()) ? ((GtkButton*) _tmp39_) : NULL); -#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 1274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->publish_button = _tmp40_; -#line 1275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp41_ = self->priv->publish_button; -#line 1275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (_tmp41_, "clicked", (GCallback) _publishing_piwigo_publishing_options_pane_on_publish_button_clicked_gtk_button_clicked, self, 0); -#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp42_ = self->priv->use_existing_radio; -#line 1277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked_gtk_button_clicked, self, 0); -#line 1278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp43_ = self->priv->create_new_radio; -#line 1278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked_gtk_button_clicked, self, 0); -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp44_ = self->priv->new_category_entry; -#line 1279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _publishing_piwigo_publishing_options_pane_on_new_category_entry_changed_gtk_editable_changed, self, 0); -#line 1280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp45_ = self->priv->within_existing_combo; -#line 1280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_piwigo_publishing_options_pane_on_existing_combo_changed_gtk_combo_box_changed, self, 0); -#line 1282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp47_ = publishing_piwigo_publishing_options_pane_create_perm_levels (self, &_tmp46_); -#line 1282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->perm_levels = (_vala_array_free (self->priv->perm_levels, self->priv->perm_levels_length1, (GDestroyNotify) publishing_piwigo_permission_level_unref), NULL); -#line 1282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->perm_levels = _tmp47_; -#line 1282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->perm_levels_length1 = _tmp46_; -#line 1282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_perm_levels_size_ = self->priv->perm_levels_length1; -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp49_ = publishing_piwigo_publishing_options_pane_create_sizes (self, &_tmp48_); -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->photo_sizes = (_vala_array_free (self->priv->photo_sizes, self->priv->photo_sizes_length1, (GDestroyNotify) publishing_piwigo_size_entry_unref), NULL); -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->photo_sizes = _tmp49_; -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->photo_sizes_length1 = _tmp48_; -#line 1283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_photo_sizes_size_ = self->priv->photo_sizes_length1; -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp50_ = self->priv->album_comment; -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp51_ = gtk_text_view_get_buffer (_tmp50_); -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp52_ = _tmp51_; -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp53_ = self->priv->_default_comment; -#line 1284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_text_buffer_set_text (_tmp52_, _tmp53_, -1); -#line 1244 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (builder); -#line 9173 "PiwigoPublishing.c" -} - - -static void -_vala_array_add39 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value) -{ -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoPermissionLevel*, *array, (*size) + 1); -#line 9189 "PiwigoPublishing.c" - } -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9195 "PiwigoPublishing.c" -} - - -static void -_vala_array_add40 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value) -{ -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoPermissionLevel*, *array, (*size) + 1); -#line 9211 "PiwigoPublishing.c" - } -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9217 "PiwigoPublishing.c" -} - - -static void -_vala_array_add41 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value) -{ -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoPermissionLevel*, *array, (*size) + 1); -#line 9233 "PiwigoPublishing.c" - } -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9239 "PiwigoPublishing.c" -} - - -static void -_vala_array_add42 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value) -{ -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoPermissionLevel*, *array, (*size) + 1); -#line 9255 "PiwigoPublishing.c" - } -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9261 "PiwigoPublishing.c" -} - - -static void -_vala_array_add43 (PublishingPiwigoPermissionLevel** * array, - int* length, - int* size, - PublishingPiwigoPermissionLevel* value) -{ -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoPermissionLevel*, *array, (*size) + 1); -#line 9277 "PiwigoPublishing.c" - } -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9283 "PiwigoPublishing.c" -} - - -static PublishingPiwigoPermissionLevel** -publishing_piwigo_publishing_options_pane_create_perm_levels (PublishingPiwigoPublishingOptionsPane* self, - int* result_length1) -{ - PublishingPiwigoPermissionLevel** result = NULL; - PublishingPiwigoPermissionLevel** _result_ = NULL; - PublishingPiwigoPermissionLevel** _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingPiwigoPermissionLevel** _tmp1_; - gint _tmp1__length1; - PublishingPiwigoPermissionLevel* _tmp2_; - PublishingPiwigoPermissionLevel** _tmp3_; - gint _tmp3__length1; - PublishingPiwigoPermissionLevel* _tmp4_; - PublishingPiwigoPermissionLevel** _tmp5_; - gint _tmp5__length1; - PublishingPiwigoPermissionLevel* _tmp6_; - PublishingPiwigoPermissionLevel** _tmp7_; - gint _tmp7__length1; - PublishingPiwigoPermissionLevel* _tmp8_; - PublishingPiwigoPermissionLevel** _tmp9_; - gint _tmp9__length1; - PublishingPiwigoPermissionLevel* _tmp10_; - PublishingPiwigoPermissionLevel** _tmp11_; - gint _tmp11__length1; -#line 1287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 1288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_new0 (PublishingPiwigoPermissionLevel*, 0 + 1); -#line 1288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = _tmp0_; -#line 1288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result__length1 = 0; -#line 1288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - __result__size_ = _result__length1; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _result_; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1__length1 = _result__length1; -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_piwigo_permission_level_new (0, _ ("Everyone")); -#line 1290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add39 (&_result_, &_result__length1, &__result__size_, _tmp2_); -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _result_; -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3__length1 = _result__length1; -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = publishing_piwigo_permission_level_new (1, _ ("Admins, Family, Friends, Contacts")); -#line 1291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add40 (&_result_, &_result__length1, &__result__size_, _tmp4_); -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _result_; -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5__length1 = _result__length1; -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = publishing_piwigo_permission_level_new (2, _ ("Admins, Family, Friends")); -#line 1292 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add41 (&_result_, &_result__length1, &__result__size_, _tmp6_); -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _result_; -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7__length1 = _result__length1; -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = publishing_piwigo_permission_level_new (4, _ ("Admins, Family")); -#line 1293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add42 (&_result_, &_result__length1, &__result__size_, _tmp8_); -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = _result_; -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9__length1 = _result__length1; -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = publishing_piwigo_permission_level_new (8, _ ("Admins")); -#line 1294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add43 (&_result_, &_result__length1, &__result__size_, _tmp10_); -#line 1296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = _result_; -#line 1296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11__length1 = _result__length1; -#line 1296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (result_length1) { -#line 1296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *result_length1 = _tmp11__length1; -#line 9371 "PiwigoPublishing.c" - } -#line 1296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp11_; -#line 1296 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 9377 "PiwigoPublishing.c" -} - - -static void -_vala_array_add44 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value) -{ -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoSizeEntry*, *array, (*size) + 1); -#line 9393 "PiwigoPublishing.c" - } -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9399 "PiwigoPublishing.c" -} - - -static void -_vala_array_add45 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value) -{ -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoSizeEntry*, *array, (*size) + 1); -#line 9415 "PiwigoPublishing.c" - } -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9421 "PiwigoPublishing.c" -} - - -static void -_vala_array_add46 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value) -{ -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoSizeEntry*, *array, (*size) + 1); -#line 9437 "PiwigoPublishing.c" - } -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9443 "PiwigoPublishing.c" -} - - -static void -_vala_array_add47 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value) -{ -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoSizeEntry*, *array, (*size) + 1); -#line 9459 "PiwigoPublishing.c" - } -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9465 "PiwigoPublishing.c" -} - - -static void -_vala_array_add48 (PublishingPiwigoSizeEntry** * array, - int* length, - int* size, - PublishingPiwigoSizeEntry* value) -{ -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if ((*length) == (*size)) { -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *array = g_renew (PublishingPiwigoSizeEntry*, *array, (*size) + 1); -#line 9481 "PiwigoPublishing.c" - } -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[(*length)++] = value; -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - (*array)[*length] = NULL; -#line 9487 "PiwigoPublishing.c" -} - - -static PublishingPiwigoSizeEntry** -publishing_piwigo_publishing_options_pane_create_sizes (PublishingPiwigoPublishingOptionsPane* self, - int* result_length1) -{ - PublishingPiwigoSizeEntry** result = NULL; - PublishingPiwigoSizeEntry** _result_ = NULL; - PublishingPiwigoSizeEntry** _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingPiwigoSizeEntry** _tmp1_; - gint _tmp1__length1; - PublishingPiwigoSizeEntry* _tmp2_; - PublishingPiwigoSizeEntry** _tmp3_; - gint _tmp3__length1; - PublishingPiwigoSizeEntry* _tmp4_; - PublishingPiwigoSizeEntry** _tmp5_; - gint _tmp5__length1; - PublishingPiwigoSizeEntry* _tmp6_; - PublishingPiwigoSizeEntry** _tmp7_; - gint _tmp7__length1; - PublishingPiwigoSizeEntry* _tmp8_; - PublishingPiwigoSizeEntry** _tmp9_; - gint _tmp9__length1; - PublishingPiwigoSizeEntry* _tmp10_; - PublishingPiwigoSizeEntry** _tmp11_; - gint _tmp11__length1; -#line 1299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_new0 (PublishingPiwigoSizeEntry*, 0 + 1); -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = _tmp0_; -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result__length1 = 0; -#line 1300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - __result__size_ = _result__length1; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _result_; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1__length1 = _result__length1; -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_piwigo_size_entry_new (500, _ ("500 × 375 pixels")); -#line 1302 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add44 (&_result_, &_result__length1, &__result__size_, _tmp2_); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _result_; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3__length1 = _result__length1; -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = publishing_piwigo_size_entry_new (1024, _ ("1024 × 768 pixels")); -#line 1303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add45 (&_result_, &_result__length1, &__result__size_, _tmp4_); -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _result_; -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5__length1 = _result__length1; -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = publishing_piwigo_size_entry_new (2048, _ ("2048 × 1536 pixels")); -#line 1304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add46 (&_result_, &_result__length1, &__result__size_, _tmp6_); -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _result_; -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7__length1 = _result__length1; -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = publishing_piwigo_size_entry_new (4096, _ ("4096 × 3072 pixels")); -#line 1305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add47 (&_result_, &_result__length1, &__result__size_, _tmp8_); -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = _result_; -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9__length1 = _result__length1; -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = publishing_piwigo_size_entry_new (PUBLISHING_PIWIGO_ORIGINAL_SIZE, _ ("Original size")); -#line 1306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _vala_array_add48 (&_result_, &_result__length1, &__result__size_, _tmp10_); -#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = _result_; -#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11__length1 = _result__length1; -#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (result_length1) { -#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - *result_length1 = _tmp11__length1; -#line 9575 "PiwigoPublishing.c" - } -#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp11_; -#line 1308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 9581 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_on_logout_button_clicked (PublishingPiwigoPublishingOptionsPane* self) -{ -#line 1311 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_emit (self, publishing_piwigo_publishing_options_pane_signals[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 9592 "PiwigoPublishing.c" -} - - -static gpointer -_publishing_piwigo_permission_level_ref0 (gpointer self) -{ -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self ? publishing_piwigo_permission_level_ref (self) : NULL; -#line 9601 "PiwigoPublishing.c" -} - - -static gpointer -_publishing_piwigo_size_entry_ref0 (gpointer self) -{ -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self ? publishing_piwigo_size_entry_ref (self) : NULL; -#line 9610 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_on_publish_button_clicked (PublishingPiwigoPublishingOptionsPane* self) -{ - PublishingPiwigoPublishingParameters* params = NULL; - PublishingPiwigoPublishingParameters* _tmp0_; - PublishingPiwigoPublishingParameters* _tmp1_; - PublishingPiwigoPermissionLevel** _tmp2_; - gint _tmp2__length1; - GtkComboBoxText* _tmp3_; - PublishingPiwigoPermissionLevel* _tmp4_; - PublishingPiwigoPermissionLevel* _tmp5_; - PublishingPiwigoPublishingParameters* _tmp6_; - PublishingPiwigoSizeEntry** _tmp7_; - gint _tmp7__length1; - GtkComboBoxText* _tmp8_; - PublishingPiwigoSizeEntry* _tmp9_; - PublishingPiwigoSizeEntry* _tmp10_; - PublishingPiwigoPublishingParameters* _tmp11_; - GtkCheckButton* _tmp12_; - PublishingPiwigoPublishingParameters* _tmp13_; - GtkCheckButton* _tmp14_; - GtkRadioButton* _tmp15_; - PublishingPiwigoPublishingParameters* _tmp46_; - GtkCheckButton* _tmp47_; -#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_piwigo_publishing_parameters_new (); -#line 1316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - params = _tmp0_; -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = params; -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->perm_levels; -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2__length1 = self->priv->perm_levels_length1; -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->perms_combo; -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp2_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _publishing_piwigo_permission_level_ref0 (_tmp4_); -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_permission_level_unref0 (_tmp1_->perm_level); -#line 1317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_->perm_level = _tmp5_; -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = params; -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = self->priv->photo_sizes; -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7__length1 = self->priv->photo_sizes_length1; -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = self->priv->size_combo; -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = _tmp7_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = _publishing_piwigo_size_entry_ref0 (_tmp9_); -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_size_entry_unref0 (_tmp6_->photo_size); -#line 1318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_->photo_size = _tmp10_; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = params; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = self->priv->title_as_comment_check; -#line 1319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_->title_as_comment = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = params; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = self->priv->no_upload_tags_check; -#line 1320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_->no_upload_tags = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = self->priv->create_new_radio; -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_toggle_button_get_type (), GtkToggleButton))) { -#line 9692 "PiwigoPublishing.c" - gchar* uploadcomment = NULL; - GtkTextView* _tmp16_; - GtkTextBuffer* _tmp17_; - GtkTextBuffer* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gint a = 0; - GtkComboBoxText* _tmp24_; - gint _tmp25_; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = self->priv->album_comment; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = gtk_text_view_get_buffer (_tmp16_); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = _tmp17_; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_get (_tmp18_, "text", &_tmp19_, NULL); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = _tmp19_; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = _tmp20_; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = string_strip (_tmp21_); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = _tmp22_; -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp21_); -#line 1322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - uploadcomment = _tmp23_; -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = self->priv->within_existing_combo; -#line 1323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - a = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_combo_box_get_type (), GtkComboBox)); -#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = a; -#line 1324 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp25_ == 0) { -#line 9733 "PiwigoPublishing.c" - PublishingPiwigoPublishingParameters* _tmp26_; - GtkEntry* _tmp27_; - const gchar* _tmp28_; - const gchar* _tmp29_; - PublishingPiwigoCategory* _tmp30_; -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = params; -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = self->priv->new_category_entry; -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = gtk_entry_get_text (_tmp27_); -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp29_ = uploadcomment; -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp30_ = publishing_piwigo_category_new_local (_tmp28_, 0, _tmp29_); -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (_tmp26_->category); -#line 1325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_->category = _tmp30_; -#line 9753 "PiwigoPublishing.c" - } else { - gint _tmp31_; - PublishingPiwigoPublishingParameters* _tmp32_; - GtkEntry* _tmp33_; - const gchar* _tmp34_; - GeeList* _tmp35_; - gint _tmp36_; - gpointer _tmp37_; - PublishingPiwigoCategory* _tmp38_; - gint _tmp39_; - const gchar* _tmp40_; - PublishingPiwigoCategory* _tmp41_; -#line 1329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp31_ = a; -#line 1329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - a = _tmp31_ - 1; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp32_ = params; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp33_ = self->priv->new_category_entry; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp34_ = gtk_entry_get_text (_tmp33_); -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp35_ = self->priv->_existing_categories; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp36_ = a; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp37_ = gee_list_get (_tmp35_, _tmp36_); -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp38_ = (PublishingPiwigoCategory*) _tmp37_; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp39_ = _tmp38_->id; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp40_ = uploadcomment; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp41_ = publishing_piwigo_category_new_local (_tmp34_, _tmp39_, _tmp40_); -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (_tmp32_->category); -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp32_->category = _tmp41_; -#line 1330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (_tmp38_); -#line 9796 "PiwigoPublishing.c" - } -#line 1321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (uploadcomment); -#line 9800 "PiwigoPublishing.c" - } else { - PublishingPiwigoPublishingParameters* _tmp42_; - GeeList* _tmp43_; - GtkComboBoxText* _tmp44_; - gpointer _tmp45_; -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp42_ = params; -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp43_ = self->priv->_existing_categories; -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp44_ = self->priv->existing_categories_combo; -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp45_ = gee_list_get (_tmp43_, gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_combo_box_get_type (), GtkComboBox))); -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (_tmp42_->category); -#line 1334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp42_->category = (PublishingPiwigoCategory*) _tmp45_; -#line 9818 "PiwigoPublishing.c" - } -#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp46_ = params; -#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp47_ = self->priv->strip_metadata_check; -#line 1336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_signal_emit (self, publishing_piwigo_publishing_options_pane_signals[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0, _tmp46_, gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 1315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_publishing_parameters_unref0 (params); -#line 9828 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_on_use_existing_radio_clicked (PublishingPiwigoPublishingOptionsPane* self) -{ - GtkComboBoxText* _tmp0_; - GtkEntry* _tmp1_; - GtkLabel* _tmp2_; - GtkComboBoxText* _tmp3_; - GtkComboBoxText* _tmp4_; - GtkLabel* _tmp5_; - GtkTextView* _tmp6_; -#line 1340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->existing_categories_combo; -#line 1341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->new_category_entry; -#line 1342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->within_existing_label; -#line 1343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->within_existing_combo; -#line 1344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->existing_categories_combo; -#line 1345 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget)); -#line 1346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = self->priv->album_comment_label; -#line 1346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = self->priv->album_comment; -#line 1347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (self); -#line 9874 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_on_create_new_radio_clicked (PublishingPiwigoPublishingOptionsPane* self) -{ - GtkEntry* _tmp0_; - GtkLabel* _tmp1_; - GtkComboBoxText* _tmp2_; - GtkLabel* _tmp3_; - GtkTextView* _tmp4_; - GtkComboBoxText* _tmp5_; - GtkEntry* _tmp6_; -#line 1351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->new_category_entry; -#line 1352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->within_existing_label; -#line 1353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->within_existing_combo; -#line 1354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->album_comment_label; -#line 1355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->album_comment; -#line 1356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = self->priv->existing_categories_combo; -#line 1357 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = self->priv->new_category_entry; -#line 1358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget)); -#line 1359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (self); -#line 9920 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_on_new_category_entry_changed (PublishingPiwigoPublishingOptionsPane* self) -{ -#line 1362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (self); -#line 9931 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_on_existing_combo_changed (PublishingPiwigoPublishingOptionsPane* self) -{ -#line 1366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1367 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (self); -#line 9942 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (PublishingPiwigoPublishingOptionsPane* self) -{ - gchar* category_name = NULL; - GtkEntry* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gint a = 0; - GtkComboBoxText* _tmp3_; - gchar* search_name = NULL; - gint _tmp4_; - gboolean _tmp17_ = FALSE; - GtkRadioButton* _tmp18_; - GtkButton* _tmp22_; -#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->new_category_entry; -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = string_strip (_tmp1_); -#line 1371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - category_name = _tmp2_; -#line 1372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->within_existing_combo; -#line 1372 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - a = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_combo_box_get_type (), GtkComboBox)); -#line 1374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = a; -#line 1374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp4_ <= 0) { -#line 9978 "PiwigoPublishing.c" - const gchar* _tmp5_; - gchar* _tmp6_; -#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = category_name; -#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = g_strconcat ("/ ", _tmp5_, NULL); -#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (search_name); -#line 1375 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - search_name = _tmp6_; -#line 9989 "PiwigoPublishing.c" - } else { - gint _tmp7_; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - PublishingPiwigoCategory* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = a; -#line 1377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - a = _tmp7_ - 1; -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = self->priv->_existing_categories; -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = a; -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = (PublishingPiwigoCategory*) _tmp10_; -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = _tmp11_->display_name; -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = g_strconcat (_tmp12_, "/ ", NULL); -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = _tmp13_; -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = category_name; -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = g_strconcat (_tmp14_, _tmp15_, NULL); -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (search_name); -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - search_name = _tmp16_; -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp14_); -#line 1378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (_tmp11_); -#line 10031 "PiwigoPublishing.c" - } -#line 1382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = self->priv->create_new_radio; -#line 1382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_toggle_button_get_type (), GtkToggleButton))) { -#line 10037 "PiwigoPublishing.c" - gboolean _tmp19_ = FALSE; - const gchar* _tmp20_; -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = category_name; -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (_tmp20_, "") == 0) { -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = TRUE; -#line 10046 "PiwigoPublishing.c" - } else { - const gchar* _tmp21_; -#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = search_name; -#line 1385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = publishing_piwigo_publishing_options_pane_category_already_exists (self, _tmp21_); -#line 10053 "PiwigoPublishing.c" - } -#line 1384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = _tmp19_; -#line 10057 "PiwigoPublishing.c" - } else { -#line 1382 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = FALSE; -#line 10061 "PiwigoPublishing.c" - } -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = self->priv->publish_button; -#line 1380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget), !_tmp17_); -#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (search_name); -#line 1370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (category_name); -#line 10071 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_real_on_pane_installed (ShotwellPluginsCommonBuilderPane* base) -{ - PublishingPiwigoPublishingOptionsPane * self; - GtkButton* _tmp0_; -#line 1391 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane); -#line 1392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - SHOTWELL_PLUGINS_COMMON_BUILDER_PANE_CLASS (publishing_piwigo_publishing_options_pane_parent_class)->on_pane_installed (G_TYPE_CHECK_INSTANCE_CAST (self, SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, ShotwellPluginsCommonBuilderPane)); -#line 1394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_create_categories_combo (self); -#line 1395 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_create_within_categories_combo (self); -#line 1396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_create_permissions_combo (self); -#line 1397 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_create_size_combo (self); -#line 1399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->publish_button; -#line 1399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_can_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_update_publish_button_sensitivity (self); -#line 10098 "PiwigoPublishing.c" -} - - -static gchar* -publishing_piwigo_publishing_options_pane_get_common_comment_if_possible (PublishingPiwigoPiwigoPublisher* publisher) -{ - gchar* result = NULL; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - gint _tmp2_; - SpitPublishingPublishable** _tmp3_; - SpitPublishingPublishable** _tmp4_; - gint _tmp4__length1; - gint publishables_length1; - gint _publishables_size_; - gchar* common = NULL; - gchar* _tmp5_; - gboolean isfirst = FALSE; - SpitPublishingPublishable** _tmp6_; - gint _tmp6__length1; - const gchar* _tmp18_; -#line 1403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PIWIGO_PUBLISHER (publisher), NULL); -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_piwigo_piwigo_publisher_get_host (publisher); -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = spit_publishing_plugin_host_get_publishables (_tmp1_, &_tmp2_); -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4__length1 = _tmp2_; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp1_); -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishables = _tmp4_; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishables_length1 = _tmp4__length1; -#line 1406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishables_size_ = publishables_length1; -#line 1407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = g_strdup (""); -#line 1407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - common = _tmp5_; -#line 1408 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - isfirst = TRUE; -#line 1409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = publishables; -#line 1409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6__length1 = publishables_length1; -#line 1409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp6_ != NULL) { -#line 10153 "PiwigoPublishing.c" - SpitPublishingPublishable** _tmp7_; - gint _tmp7__length1; -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = publishables; -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7__length1 = publishables_length1; -#line 10160 "PiwigoPublishing.c" - { - SpitPublishingPublishable** pub_collection = NULL; - gint pub_collection_length1 = 0; - gint _pub_collection_size_ = 0; - gint pub_it = 0; -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - pub_collection = _tmp7_; -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - pub_collection_length1 = _tmp7__length1; -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - for (pub_it = 0; pub_it < _tmp7__length1; pub_it = pub_it + 1) { -#line 10172 "PiwigoPublishing.c" - SpitPublishingPublishable* _tmp8_; - SpitPublishingPublishable* pub = NULL; -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _g_object_ref0 (pub_collection[pub_it]); -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - pub = _tmp8_; -#line 10179 "PiwigoPublishing.c" - { - gchar* cur = NULL; - SpitPublishingPublishable* _tmp9_; - gchar* _tmp10_; - const gchar* _tmp11_; - gboolean _tmp12_; -#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = pub; -#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = spit_publishing_publishable_get_param_string (_tmp9_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_EVENTCOMMENT); -#line 1411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - cur = _tmp10_; -#line 1413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = cur; -#line 1413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp11_ == NULL) { -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (cur); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (pub); -#line 1414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - continue; -#line 10202 "PiwigoPublishing.c" - } -#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = isfirst; -#line 1417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp12_) { -#line 10208 "PiwigoPublishing.c" - const gchar* _tmp13_; - gchar* _tmp14_; -#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = cur; -#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = g_strdup (_tmp13_); -#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (common); -#line 1418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - common = _tmp14_; -#line 1419 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - isfirst = FALSE; -#line 10221 "PiwigoPublishing.c" - } else { - const gchar* _tmp15_; - const gchar* _tmp16_; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = cur; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = common; -#line 1421 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (_tmp15_, _tmp16_) != 0) { -#line 10231 "PiwigoPublishing.c" - gchar* _tmp17_; -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = g_strdup (""); -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (common); -#line 1422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - common = _tmp17_; -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (cur); -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (pub); -#line 1423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10245 "PiwigoPublishing.c" - } - } -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (cur); -#line 1410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (pub); -#line 10252 "PiwigoPublishing.c" - } - } - } - } -#line 1428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = common; -#line 1428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:1428: PiwigoConnector: found common event commen" \ -"t %s\n", _tmp18_); -#line 1429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = common; -#line 1429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 1429 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 10267 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_create_categories_combo (PublishingPiwigoPublishingOptionsPane* self) -{ - GeeList* _tmp14_; - gboolean _tmp15_; - gboolean _tmp16_; - const gchar* _tmp29_; -#line 1432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 10280 "PiwigoPublishing.c" - { - GeeList* _cat_list = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _cat_size = 0; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _cat_index = 0; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_existing_categories; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _cat_list = _tmp1_; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = _cat_list; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _cat_size = _tmp4_; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _cat_index = -1; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 10308 "PiwigoPublishing.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - PublishingPiwigoCategory* cat = NULL; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - GtkComboBoxText* _tmp11_; - PublishingPiwigoCategory* _tmp12_; - const gchar* _tmp13_; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _cat_index; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _cat_index = _tmp5_ + 1; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _cat_index; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _cat_size; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10331 "PiwigoPublishing.c" - } -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _cat_list; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = _cat_index; -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - cat = (PublishingPiwigoCategory*) _tmp10_; -#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = self->priv->existing_categories_combo; -#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = cat; -#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = _tmp12_->display_name; -#line 1434 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_text_append_text (_tmp11_, _tmp13_); -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (cat); -#line 10351 "PiwigoPublishing.c" - } -#line 1433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_cat_list); -#line 10355 "PiwigoPublishing.c" - } -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = self->priv->_existing_categories; -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = gee_collection_get_is_empty (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = _tmp15_; -#line 1436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp16_) { -#line 10365 "PiwigoPublishing.c" - GtkComboBoxText* _tmp17_; - GtkRadioButton* _tmp18_; - GtkRadioButton* _tmp19_; - GtkTextView* _tmp20_; - GtkLabel* _tmp21_; - GtkEntry* _tmp22_; -#line 1438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = self->priv->existing_categories_combo; -#line 1438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = self->priv->use_existing_radio; -#line 1439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = self->priv->create_new_radio; -#line 1440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = self->priv->album_comment; -#line 1441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = self->priv->album_comment_label; -#line 1442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = self->priv->new_category_entry; -#line 1443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget)); -#line 10396 "PiwigoPublishing.c" - } else { - gint last_category_index = 0; - gint _tmp23_; - GtkComboBoxText* _tmp24_; - gint _tmp25_; - GtkEntry* _tmp26_; - GtkTextView* _tmp27_; - GtkLabel* _tmp28_; -#line 1445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = self->priv->_last_category; -#line 1445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - last_category_index = publishing_piwigo_publishing_options_pane_find_category_index (self, _tmp23_); -#line 1446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = self->priv->existing_categories_combo; -#line 1446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = last_category_index; -#line 1446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_combo_box_get_type (), GtkComboBox), _tmp25_); -#line 1447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = self->priv->new_category_entry; -#line 1447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = self->priv->album_comment; -#line 1448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = self->priv->album_comment_label; -#line 1449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 10427 "PiwigoPublishing.c" - } -#line 1451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp29_ = publishing_piwigo_publishing_options_pane_DEFAULT_CATEGORY_NAME; -#line 1451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!publishing_piwigo_publishing_options_pane_category_already_exists (self, _tmp29_)) { -#line 10433 "PiwigoPublishing.c" - GtkEntry* _tmp30_; - const gchar* _tmp31_; -#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp30_ = self->priv->new_category_entry; -#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp31_ = publishing_piwigo_publishing_options_pane_DEFAULT_CATEGORY_NAME; -#line 1452 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_entry_set_text (_tmp30_, _tmp31_); -#line 10442 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_publishing_options_pane_create_within_categories_combo (PublishingPiwigoPublishingOptionsPane* self) -{ - GtkComboBoxText* _tmp0_; - GtkLabel* _tmp15_; - GtkComboBoxText* _tmp16_; - GtkComboBoxText* _tmp17_; -#line 1455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->within_existing_combo; -#line 1457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_text_append_text (_tmp0_, "/ "); -#line 10460 "PiwigoPublishing.c" - { - GeeList* _cat_list = NULL; - GeeList* _tmp1_; - GeeList* _tmp2_; - gint _cat_size = 0; - GeeList* _tmp3_; - gint _tmp4_; - gint _tmp5_; - gint _cat_index = 0; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = self->priv->_existing_categories; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _cat_list = _tmp2_; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _cat_list; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp4_; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _cat_size = _tmp5_; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _cat_index = -1; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 10488 "PiwigoPublishing.c" - gint _tmp6_; - gint _tmp7_; - gint _tmp8_; - PublishingPiwigoCategory* cat = NULL; - GeeList* _tmp9_; - gint _tmp10_; - gpointer _tmp11_; - GtkComboBoxText* _tmp12_; - PublishingPiwigoCategory* _tmp13_; - const gchar* _tmp14_; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _cat_index; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _cat_index = _tmp6_ + 1; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _cat_index; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _cat_size; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp7_ < _tmp8_)) { -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10511 "PiwigoPublishing.c" - } -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = _cat_list; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = _cat_index; -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = gee_list_get (_tmp9_, _tmp10_); -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - cat = (PublishingPiwigoCategory*) _tmp11_; -#line 1459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = self->priv->within_existing_combo; -#line 1459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = cat; -#line 1459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = _tmp13_->display_name; -#line 1459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_text_append_text (_tmp12_, _tmp14_); -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (cat); -#line 10531 "PiwigoPublishing.c" - } -#line 1458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_cat_list); -#line 10535 "PiwigoPublishing.c" - } -#line 1462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = self->priv->within_existing_label; -#line 1462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = self->priv->within_existing_combo; -#line 1463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = self->priv->within_existing_combo; -#line 1464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 10549 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_create_permissions_combo (PublishingPiwigoPublishingOptionsPane* self) -{ - PublishingPiwigoPermissionLevel** _tmp0_; - gint _tmp0__length1; - gint last_permission_level_index = 0; - gint _tmp5_; - gint _tmp6_; -#line 1467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->perm_levels; -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0__length1 = self->priv->perm_levels_length1; -#line 10567 "PiwigoPublishing.c" - { - PublishingPiwigoPermissionLevel** perm_collection = NULL; - gint perm_collection_length1 = 0; - gint _perm_collection_size_ = 0; - gint perm_it = 0; -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - perm_collection = _tmp0_; -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - perm_collection_length1 = _tmp0__length1; -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - for (perm_it = 0; perm_it < _tmp0__length1; perm_it = perm_it + 1) { -#line 10579 "PiwigoPublishing.c" - PublishingPiwigoPermissionLevel* _tmp1_; - PublishingPiwigoPermissionLevel* perm = NULL; -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _publishing_piwigo_permission_level_ref0 (perm_collection[perm_it]); -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - perm = _tmp1_; -#line 10586 "PiwigoPublishing.c" - { - GtkComboBoxText* _tmp2_; - PublishingPiwigoPermissionLevel* _tmp3_; - const gchar* _tmp4_; -#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->perms_combo; -#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = perm; -#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_->name; -#line 1469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_text_append_text (_tmp2_, _tmp4_); -#line 1468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_permission_level_unref0 (perm); -#line 10601 "PiwigoPublishing.c" - } - } - } -#line 1471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = self->priv->_last_permission_level; -#line 1471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - last_permission_level_index = publishing_piwigo_publishing_options_pane_find_permission_level_index (self, _tmp5_); -#line 1472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = last_permission_level_index; -#line 1472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp6_ < 0) { -#line 10613 "PiwigoPublishing.c" - GtkComboBoxText* _tmp7_; -#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = self->priv->perms_combo; -#line 1473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 10619 "PiwigoPublishing.c" - } else { - GtkComboBoxText* _tmp8_; - gint _tmp9_; -#line 1475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = self->priv->perms_combo; -#line 1475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = last_permission_level_index; -#line 1475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_combo_box_get_type (), GtkComboBox), _tmp9_); -#line 10629 "PiwigoPublishing.c" - } -} - - -static void -publishing_piwigo_publishing_options_pane_create_size_combo (PublishingPiwigoPublishingOptionsPane* self) -{ - PublishingPiwigoSizeEntry** _tmp0_; - gint _tmp0__length1; - gint last_size_index = 0; - gint _tmp5_; - gint _tmp6_; -#line 1479 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->photo_sizes; -#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0__length1 = self->priv->photo_sizes_length1; -#line 10648 "PiwigoPublishing.c" - { - PublishingPiwigoSizeEntry** size_collection = NULL; - gint size_collection_length1 = 0; - gint _size_collection_size_ = 0; - gint size_it = 0; -#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - size_collection = _tmp0_; -#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - size_collection_length1 = _tmp0__length1; -#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - for (size_it = 0; size_it < _tmp0__length1; size_it = size_it + 1) { -#line 10660 "PiwigoPublishing.c" - PublishingPiwigoSizeEntry* _tmp1_; - PublishingPiwigoSizeEntry* size = NULL; -#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _publishing_piwigo_size_entry_ref0 (size_collection[size_it]); -#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - size = _tmp1_; -#line 10667 "PiwigoPublishing.c" - { - GtkComboBoxText* _tmp2_; - PublishingPiwigoSizeEntry* _tmp3_; - const gchar* _tmp4_; -#line 1481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->size_combo; -#line 1481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = size; -#line 1481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_->name; -#line 1481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_text_append_text (_tmp2_, _tmp4_); -#line 1480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_size_entry_unref0 (size); -#line 10682 "PiwigoPublishing.c" - } - } - } -#line 1483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = self->priv->_last_photo_size; -#line 1483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - last_size_index = publishing_piwigo_publishing_options_pane_find_size_index (self, _tmp5_); -#line 1484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = last_size_index; -#line 1484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp6_ < 0) { -#line 10694 "PiwigoPublishing.c" - GtkComboBoxText* _tmp7_; -#line 1485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = self->priv->size_combo; -#line 1485 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_combo_box_get_type (), GtkComboBox), publishing_piwigo_publishing_options_pane_find_size_index (self, PUBLISHING_PIWIGO_ORIGINAL_SIZE)); -#line 10700 "PiwigoPublishing.c" - } else { - GtkComboBoxText* _tmp8_; - gint _tmp9_; -#line 1487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = self->priv->size_combo; -#line 1487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = last_size_index; -#line 1487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_combo_box_get_type (), GtkComboBox), _tmp9_); -#line 10710 "PiwigoPublishing.c" - } -} - - -static gint -publishing_piwigo_publishing_options_pane_find_category_index (PublishingPiwigoPublishingOptionsPane* self, - gint category_id) -{ - gint result = 0; - gint _result_ = 0; -#line 1491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), 0); -#line 1492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = 0; -#line 10725 "PiwigoPublishing.c" - { - gint i = 0; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - i = 0; -#line 10730 "PiwigoPublishing.c" - { - gboolean _tmp0_ = FALSE; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = TRUE; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 10737 "PiwigoPublishing.c" - gint _tmp2_; - GeeList* _tmp3_; - gint _tmp4_; - gint _tmp5_; - GeeList* _tmp6_; - gint _tmp7_; - gpointer _tmp8_; - PublishingPiwigoCategory* _tmp9_; - gint _tmp10_; - gboolean _tmp11_; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!_tmp0_) { -#line 10750 "PiwigoPublishing.c" - gint _tmp1_; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = i; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - i = _tmp1_ + 1; -#line 10756 "PiwigoPublishing.c" - } -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = FALSE; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = i; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->_existing_categories; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp4_; -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp2_ < _tmp5_)) { -#line 1493 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10772 "PiwigoPublishing.c" - } -#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = self->priv->_existing_categories; -#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = i; -#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = gee_list_get (_tmp6_, _tmp7_); -#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = (PublishingPiwigoCategory*) _tmp8_; -#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = _tmp9_->id; -#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = _tmp10_ == category_id; -#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (_tmp9_); -#line 1494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp11_) { -#line 10790 "PiwigoPublishing.c" - gint _tmp12_; -#line 1495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = i; -#line 1495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = _tmp12_; -#line 1496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10798 "PiwigoPublishing.c" - } - } - } - } -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _result_; -#line 1499 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 10807 "PiwigoPublishing.c" -} - - -static gint -publishing_piwigo_publishing_options_pane_find_permission_level_index (PublishingPiwigoPublishingOptionsPane* self, - gint permission_level_id) -{ - gint result = 0; - gint _result_ = 0; -#line 1502 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), 0); -#line 1503 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = -1; -#line 10821 "PiwigoPublishing.c" - { - gint i = 0; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - i = 0; -#line 10826 "PiwigoPublishing.c" - { - gboolean _tmp0_ = FALSE; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = TRUE; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 10833 "PiwigoPublishing.c" - gint _tmp2_; - PublishingPiwigoPermissionLevel** _tmp3_; - gint _tmp3__length1; - PublishingPiwigoPermissionLevel** _tmp4_; - gint _tmp4__length1; - gint _tmp5_; - PublishingPiwigoPermissionLevel* _tmp6_; - gint _tmp7_; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!_tmp0_) { -#line 10844 "PiwigoPublishing.c" - gint _tmp1_; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = i; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - i = _tmp1_ + 1; -#line 10850 "PiwigoPublishing.c" - } -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = FALSE; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = i; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->perm_levels; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3__length1 = self->priv->perm_levels_length1; -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp2_ < _tmp3__length1)) { -#line 1504 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10864 "PiwigoPublishing.c" - } -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->perm_levels; -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4__length1 = self->priv->perm_levels_length1; -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = i; -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp4_[_tmp5_]; -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _tmp6_->id; -#line 1505 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp7_ == permission_level_id) { -#line 10878 "PiwigoPublishing.c" - gint _tmp8_; -#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = i; -#line 1506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = _tmp8_; -#line 1507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10886 "PiwigoPublishing.c" - } - } - } - } -#line 1510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _result_; -#line 1510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 10895 "PiwigoPublishing.c" -} - - -static gint -publishing_piwigo_publishing_options_pane_find_size_index (PublishingPiwigoPublishingOptionsPane* self, - gint size_id) -{ - gint result = 0; - gint _result_ = 0; -#line 1513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), 0); -#line 1514 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = -1; -#line 10909 "PiwigoPublishing.c" - { - gint i = 0; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - i = 0; -#line 10914 "PiwigoPublishing.c" - { - gboolean _tmp0_ = FALSE; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = TRUE; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 10921 "PiwigoPublishing.c" - gint _tmp2_; - PublishingPiwigoSizeEntry** _tmp3_; - gint _tmp3__length1; - PublishingPiwigoSizeEntry** _tmp4_; - gint _tmp4__length1; - gint _tmp5_; - PublishingPiwigoSizeEntry* _tmp6_; - gint _tmp7_; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!_tmp0_) { -#line 10932 "PiwigoPublishing.c" - gint _tmp1_; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = i; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - i = _tmp1_ + 1; -#line 10938 "PiwigoPublishing.c" - } -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = FALSE; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = i; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->photo_sizes; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3__length1 = self->priv->photo_sizes_length1; -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp2_ < _tmp3__length1)) { -#line 1515 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10952 "PiwigoPublishing.c" - } -#line 1516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->photo_sizes; -#line 1516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4__length1 = self->priv->photo_sizes_length1; -#line 1516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = i; -#line 1516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp4_[_tmp5_]; -#line 1516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _tmp6_->id; -#line 1516 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp7_ == size_id) { -#line 10966 "PiwigoPublishing.c" - gint _tmp8_; -#line 1517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = i; -#line 1517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = _tmp8_; -#line 1518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 10974 "PiwigoPublishing.c" - } - } - } - } -#line 1521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _result_; -#line 1521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 10983 "PiwigoPublishing.c" -} - - -static gboolean -publishing_piwigo_publishing_options_pane_category_already_exists (PublishingPiwigoPublishingOptionsPane* self, - const gchar* category_name) -{ - gboolean result = FALSE; - gboolean _result_ = FALSE; -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), FALSE); -#line 1524 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (category_name != NULL, FALSE); -#line 1525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = FALSE; -#line 10999 "PiwigoPublishing.c" - { - GeeList* _category_list = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _category_size = 0; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _category_index = 0; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_existing_categories; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _category_list = _tmp1_; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = _category_list; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _tmp3_; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _category_size = _tmp4_; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _category_index = -1; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - while (TRUE) { -#line 11027 "PiwigoPublishing.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - PublishingPiwigoCategory* category = NULL; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - PublishingPiwigoCategory* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gboolean _tmp15_; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _category_index; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _category_index = _tmp5_ + 1; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _category_index; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = _category_size; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 11052 "PiwigoPublishing.c" - } -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _category_list; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = _category_index; -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - category = (PublishingPiwigoCategory*) _tmp10_; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = category; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = _tmp11_->display_name; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = string_strip (_tmp12_); -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = _tmp13_; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = g_strcmp0 (_tmp14_, category_name) == 0; -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp14_); -#line 1527 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp15_) { -#line 1528 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _result_ = TRUE; -#line 1529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (category); -#line 1529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 11082 "PiwigoPublishing.c" - } -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_category_unref0 (category); -#line 11086 "PiwigoPublishing.c" - } -#line 1526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_category_list); -#line 11090 "PiwigoPublishing.c" - } -#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _result_; -#line 1532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11096 "PiwigoPublishing.c" -} - - -static gint -publishing_piwigo_publishing_options_pane_get_last_category (PublishingPiwigoPublishingOptionsPane* self) -{ - gint result; - gint _tmp0_; -#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), 0); -#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_last_category; -#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11113 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_set_last_category (PublishingPiwigoPublishingOptionsPane* self, - gint value) -{ -#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_publishing_options_pane_get_last_category (self) != value) { -#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_last_category = value; -#line 1209 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_CATEGORY_PROPERTY]); -#line 11129 "PiwigoPublishing.c" - } -} - - -static gint -publishing_piwigo_publishing_options_pane_get_last_permission_level (PublishingPiwigoPublishingOptionsPane* self) -{ - gint result; - gint _tmp0_; -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), 0); -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_last_permission_level; -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11147 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_set_last_permission_level (PublishingPiwigoPublishingOptionsPane* self, - gint value) -{ -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_publishing_options_pane_get_last_permission_level (self) != value) { -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_last_permission_level = value; -#line 1210 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PERMISSION_LEVEL_PROPERTY]); -#line 11163 "PiwigoPublishing.c" - } -} - - -static gint -publishing_piwigo_publishing_options_pane_get_last_photo_size (PublishingPiwigoPublishingOptionsPane* self) -{ - gint result; - gint _tmp0_; -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), 0); -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_last_photo_size; -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11181 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_set_last_photo_size (PublishingPiwigoPublishingOptionsPane* self, - gint value) -{ -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_publishing_options_pane_get_last_photo_size (self) != value) { -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_last_photo_size = value; -#line 1211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PHOTO_SIZE_PROPERTY]); -#line 11197 "PiwigoPublishing.c" - } -} - - -static gboolean -publishing_piwigo_publishing_options_pane_get_last_title_as_comment (PublishingPiwigoPublishingOptionsPane* self) -{ - gboolean result; - gboolean _tmp0_; -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), FALSE); -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_last_title_as_comment; -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11215 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_set_last_title_as_comment (PublishingPiwigoPublishingOptionsPane* self, - gboolean value) -{ -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_publishing_options_pane_get_last_title_as_comment (self) != value) { -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_last_title_as_comment = value; -#line 1212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_TITLE_AS_COMMENT_PROPERTY]); -#line 11231 "PiwigoPublishing.c" - } -} - - -static gboolean -publishing_piwigo_publishing_options_pane_get_last_no_upload_tags (PublishingPiwigoPublishingOptionsPane* self) -{ - gboolean result; - gboolean _tmp0_; -#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), FALSE); -#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_last_no_upload_tags; -#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11249 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_set_last_no_upload_tags (PublishingPiwigoPublishingOptionsPane* self, - gboolean value) -{ -#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_publishing_options_pane_get_last_no_upload_tags (self) != value) { -#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_last_no_upload_tags = value; -#line 1213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_NO_UPLOAD_TAGS_PROPERTY]); -#line 11265 "PiwigoPublishing.c" - } -} - - -static gboolean -publishing_piwigo_publishing_options_pane_get_strip_metadata_enabled (PublishingPiwigoPublishingOptionsPane* self) -{ - gboolean result; - gboolean _tmp0_; -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), FALSE); -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_strip_metadata_enabled; -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11283 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_set_strip_metadata_enabled (PublishingPiwigoPublishingOptionsPane* self, - gboolean value) -{ -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_publishing_options_pane_get_strip_metadata_enabled (self) != value) { -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_strip_metadata_enabled = value; -#line 1214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_STRIP_METADATA_ENABLED_PROPERTY]); -#line 11299 "PiwigoPublishing.c" - } -} - - -static GeeList* -publishing_piwigo_publishing_options_pane_get_existing_categories (PublishingPiwigoPublishingOptionsPane* self) -{ - GeeList* result; - GeeList* _tmp0_; -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_existing_categories; -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11317 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_set_existing_categories (PublishingPiwigoPublishingOptionsPane* self, - GeeList* value) -{ -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_piwigo_publishing_options_pane_get_existing_categories (self) != value) { -#line 11329 "PiwigoPublishing.c" - GeeList* _tmp0_; -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _g_object_ref0 (value); -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->_existing_categories); -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_existing_categories = _tmp0_; -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_EXISTING_CATEGORIES_PROPERTY]); -#line 11339 "PiwigoPublishing.c" - } -} - - -static const gchar* -publishing_piwigo_publishing_options_pane_get_default_comment (PublishingPiwigoPublishingOptionsPane* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->_default_comment; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11357 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_set_default_comment (PublishingPiwigoPublishingOptionsPane* self, - const gchar* value) -{ -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (value, publishing_piwigo_publishing_options_pane_get_default_comment (self)) != 0) { -#line 11369 "PiwigoPublishing.c" - gchar* _tmp0_; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (value); -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->_default_comment); -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->_default_comment = _tmp0_; -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_notify_by_pspec ((GObject *) self, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_DEFAULT_COMMENT_PROPERTY]); -#line 11379 "PiwigoPublishing.c" - } -} - - -static void -g_cclosure_user_marshal_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN) (gpointer data1, gpointer arg_1, gboolean arg_2, gpointer data2); - register GMarshalFunc_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (n_param_values == 3); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - data1 = closure->data; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - data2 = param_values->data[0].v_pointer; -#line 11406 "PiwigoPublishing.c" - } else { -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - data1 = param_values->data[0].v_pointer; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - data2 = closure->data; -#line 11412 "PiwigoPublishing.c" - } -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - callback = (GMarshalFunc_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN) (marshal_data ? marshal_data : cc->callback); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - callback (data1, publishing_piwigo_value_get_publishing_parameters (param_values + 1), g_value_get_boolean (param_values + 2), data2); -#line 11418 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_class_init (PublishingPiwigoPublishingOptionsPaneClass * klass) -{ - gchar* _tmp0_; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPiwigoPublishingOptionsPanePrivate)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) publishing_piwigo_publishing_options_pane_real_constructed; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((ShotwellPluginsCommonBuilderPaneClass *) klass)->on_pane_installed = (void (*) (ShotwellPluginsCommonBuilderPane *)) publishing_piwigo_publishing_options_pane_real_on_pane_installed; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_publishing_piwigo_publishing_options_pane_get_property; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_publishing_piwigo_publishing_options_pane_set_property; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_piwigo_publishing_options_pane_finalize; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_CATEGORY_PROPERTY, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_CATEGORY_PROPERTY] = g_param_spec_int ("last-category", "last-category", "last-category", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PERMISSION_LEVEL_PROPERTY, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PERMISSION_LEVEL_PROPERTY] = g_param_spec_int ("last-permission-level", "last-permission-level", "last-permission-level", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PHOTO_SIZE_PROPERTY, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PHOTO_SIZE_PROPERTY] = g_param_spec_int ("last-photo-size", "last-photo-size", "last-photo-size", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_TITLE_AS_COMMENT_PROPERTY, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_TITLE_AS_COMMENT_PROPERTY] = g_param_spec_boolean ("last-title-as-comment", "last-title-as-comment", "last-title-as-comment", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_NO_UPLOAD_TAGS_PROPERTY, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_NO_UPLOAD_TAGS_PROPERTY] = g_param_spec_boolean ("last-no-upload-tags", "last-no-upload-tags", "last-no-upload-tags", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_STRIP_METADATA_ENABLED_PROPERTY, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_STRIP_METADATA_ENABLED_PROPERTY] = g_param_spec_boolean ("strip-metadata-enabled", "strip-metadata-enabled", "strip-metadata-enabled", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_EXISTING_CATEGORIES_PROPERTY, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_EXISTING_CATEGORIES_PROPERTY] = g_param_spec_object ("existing-categories", "existing-categories", "existing-categories", GEE_TYPE_LIST, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_DEFAULT_COMMENT_PROPERTY, publishing_piwigo_publishing_options_pane_properties[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_DEFAULT_COMMENT_PROPERTY] = g_param_spec_string ("default-comment", "default-comment", "default-comment", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_signals[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = g_signal_new ("publish", PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__PUBLISHING_PIWIGO_PUBLISHING_PARAMETERS_BOOLEAN, G_TYPE_NONE, 2, PUBLISHING_PIWIGO_TYPE_PUBLISHING_PARAMETERS, G_TYPE_BOOLEAN); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_signals[PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = g_signal_new ("logout", PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 1188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (_ ("Shotwell Connect")); -#line 1188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_DEFAULT_CATEGORY_NAME = _tmp0_; -#line 11464 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_instance_init (PublishingPiwigoPublishingOptionsPane * self) -{ -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv = PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); -#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->strip_metadata_check = NULL; -#line 1199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->title_as_comment_check = NULL; -#line 1200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->no_upload_tags_check = NULL; -#line 11479 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_publishing_options_pane_finalize (GObject * obj) -{ - PublishingPiwigoPublishingOptionsPane * self; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane); -#line 1190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->use_existing_radio); -#line 1191 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->create_new_radio); -#line 1192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->existing_categories_combo); -#line 1193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->new_category_entry); -#line 1194 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->within_existing_label); -#line 1195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->within_existing_combo); -#line 1196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->perms_combo); -#line 1197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->size_combo); -#line 1198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->strip_metadata_check); -#line 1199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->title_as_comment_check); -#line 1200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->no_upload_tags_check); -#line 1201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 1202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 1203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->album_comment); -#line 1204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->album_comment_label); -#line 1206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->perm_levels = (_vala_array_free (self->priv->perm_levels, self->priv->perm_levels_length1, (GDestroyNotify) publishing_piwigo_permission_level_unref), NULL); -#line 1207 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->photo_sizes = (_vala_array_free (self->priv->photo_sizes, self->priv->photo_sizes_length1, (GDestroyNotify) publishing_piwigo_size_entry_unref), NULL); -#line 1215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (self->priv->_existing_categories); -#line 1216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->_default_comment); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_CLASS (publishing_piwigo_publishing_options_pane_parent_class)->finalize (obj); -#line 11529 "PiwigoPublishing.c" -} - - -/** - * The publishing options pane. - */ -GType -publishing_piwigo_publishing_options_pane_get_type (void) -{ - static volatile gsize publishing_piwigo_publishing_options_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_publishing_options_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoPublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoPublishingOptionsPane), 0, (GInstanceInitFunc) publishing_piwigo_publishing_options_pane_instance_init, NULL }; - GType publishing_piwigo_publishing_options_pane_type_id; - publishing_piwigo_publishing_options_pane_type_id = g_type_register_static (SHOTWELL_PLUGINS_COMMON_TYPE_BUILDER_PANE, "PublishingPiwigoPublishingOptionsPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_publishing_options_pane_type_id__volatile, publishing_piwigo_publishing_options_pane_type_id); - } - return publishing_piwigo_publishing_options_pane_type_id__volatile; -} - - -static void -_vala_publishing_piwigo_publishing_options_pane_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - PublishingPiwigoPublishingOptionsPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - switch (property_id) { -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_CATEGORY_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_int (value, publishing_piwigo_publishing_options_pane_get_last_category (self)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PERMISSION_LEVEL_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_int (value, publishing_piwigo_publishing_options_pane_get_last_permission_level (self)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PHOTO_SIZE_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_int (value, publishing_piwigo_publishing_options_pane_get_last_photo_size (self)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_TITLE_AS_COMMENT_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_boolean (value, publishing_piwigo_publishing_options_pane_get_last_title_as_comment (self)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_NO_UPLOAD_TAGS_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_boolean (value, publishing_piwigo_publishing_options_pane_get_last_no_upload_tags (self)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_STRIP_METADATA_ENABLED_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_boolean (value, publishing_piwigo_publishing_options_pane_get_strip_metadata_enabled (self)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_EXISTING_CATEGORIES_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_object (value, publishing_piwigo_publishing_options_pane_get_existing_categories (self)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_DEFAULT_COMMENT_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_value_set_string (value, publishing_piwigo_publishing_options_pane_get_default_comment (self)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 11608 "PiwigoPublishing.c" - default: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 11614 "PiwigoPublishing.c" - } -} - - -static void -_vala_publishing_piwigo_publishing_options_pane_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - PublishingPiwigoPublishingOptionsPane * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, PUBLISHING_PIWIGO_TYPE_PUBLISHING_OPTIONS_PANE, PublishingPiwigoPublishingOptionsPane); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - switch (property_id) { -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_CATEGORY_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_set_last_category (self, g_value_get_int (value)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PERMISSION_LEVEL_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_set_last_permission_level (self, g_value_get_int (value)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_PHOTO_SIZE_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_set_last_photo_size (self, g_value_get_int (value)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_TITLE_AS_COMMENT_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_set_last_title_as_comment (self, g_value_get_boolean (value)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_LAST_NO_UPLOAD_TAGS_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_set_last_no_upload_tags (self, g_value_get_boolean (value)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_STRIP_METADATA_ENABLED_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_set_strip_metadata_enabled (self, g_value_get_boolean (value)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_EXISTING_CATEGORIES_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_set_existing_categories (self, g_value_get_object (value)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - case PUBLISHING_PIWIGO_PUBLISHING_OPTIONS_PANE_DEFAULT_COMMENT_PROPERTY: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_publishing_options_pane_set_default_comment (self, g_value_get_string (value)); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 11677 "PiwigoPublishing.c" - default: -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 1186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - break; -#line 11683 "PiwigoPublishing.c" - } -} - - -PublishingPiwigoSession* -publishing_piwigo_session_construct (GType object_type) -{ - PublishingPiwigoSession* self = NULL; -#line 1548 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoSession*) publishing_rest_support_session_construct (object_type, ""); -#line 1547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 11696 "PiwigoPublishing.c" -} - - -PublishingPiwigoSession* -publishing_piwigo_session_new (void) -{ -#line 1547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_session_construct (PUBLISHING_PIWIGO_TYPE_SESSION); -#line 11705 "PiwigoPublishing.c" -} - - -static gboolean -publishing_piwigo_session_real_is_authenticated (PublishingRESTSupportSession* base) -{ - PublishingPiwigoSession * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - const gchar* _tmp2_; -#line 1551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSession); -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = self->priv->pwg_id; -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp2_ != NULL) { -#line 11723 "PiwigoPublishing.c" - const gchar* _tmp3_; -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = self->priv->pwg_url; -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp3_ != NULL; -#line 11729 "PiwigoPublishing.c" - } else { -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = FALSE; -#line 11733 "PiwigoPublishing.c" - } -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp1_) { -#line 11737 "PiwigoPublishing.c" - const gchar* _tmp4_; -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = self->priv->username; -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = _tmp4_ != NULL; -#line 11743 "PiwigoPublishing.c" - } else { -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = FALSE; -#line 11747 "PiwigoPublishing.c" - } -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp0_; -#line 1552 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11753 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_session_authenticate (PublishingPiwigoSession* self, - const gchar* url, - const gchar* username, - const gchar* id) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self)); -#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (url != NULL); -#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (username != NULL); -#line 1555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (id != NULL); -#line 1556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (url); -#line 1556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->pwg_url); -#line 1556 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->pwg_url = _tmp0_; -#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (username); -#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->username); -#line 1557 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->username = _tmp1_; -#line 1558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_strdup (id); -#line 1558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->pwg_id); -#line 1558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->pwg_id = _tmp2_; -#line 11792 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_session_deauthenticate (PublishingPiwigoSession* self) -{ -#line 1561 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self)); -#line 1562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->pwg_url); -#line 1562 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->pwg_url = NULL; -#line 1563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->pwg_id); -#line 1563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->pwg_id = NULL; -#line 1564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->username); -#line 1564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->username = NULL; -#line 11813 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_session_get_username (PublishingPiwigoSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1567 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self), NULL); -#line 1568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->username; -#line 1568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 1568 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11833 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_session_get_pwg_url (PublishingPiwigoSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self), NULL); -#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->pwg_url; -#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 1572 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11853 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_session_get_pwg_id (PublishingPiwigoSession* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1575 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self), NULL); -#line 1576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = self->priv->pwg_id; -#line 1576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp1_; -#line 1576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 11873 "PiwigoPublishing.c" -} - - -void -publishing_piwigo_session_set_pwg_id (PublishingPiwigoSession* self, - const gchar* id) -{ - gchar* _tmp0_; -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (PUBLISHING_PIWIGO_IS_SESSION (self)); -#line 1579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_if_fail (id != NULL); -#line 1580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup (id); -#line 1580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->pwg_id); -#line 1580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->pwg_id = _tmp0_; -#line 11892 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_class_init (PublishingPiwigoSessionClass * klass) -{ -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_session_parent_class = g_type_class_peek_parent (klass); -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingRESTSupportSessionClass *) klass)->finalize = publishing_piwigo_session_finalize; -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPiwigoSessionPrivate)); -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingRESTSupportSessionClass *) klass)->is_authenticated = (gboolean (*) (PublishingRESTSupportSession *)) publishing_piwigo_session_real_is_authenticated; -#line 11907 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_instance_init (PublishingPiwigoSession * self) -{ -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv = PUBLISHING_PIWIGO_SESSION_GET_PRIVATE (self); -#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->pwg_url = NULL; -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->pwg_id = NULL; -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->username = NULL; -#line 11922 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_finalize (PublishingRESTSupportSession * obj) -{ - PublishingPiwigoSession * self; -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_SESSION, PublishingPiwigoSession); -#line 1543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->pwg_url); -#line 1544 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->pwg_id); -#line 1545 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (self->priv->username); -#line 1542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - PUBLISHING_REST_SUPPORT_SESSION_CLASS (publishing_piwigo_session_parent_class)->finalize (obj); -#line 11940 "PiwigoPublishing.c" -} - - -/** - * Session class that keeps track of the authentication status and of the - * user token pwg_id. - */ -GType -publishing_piwigo_session_get_type (void) -{ - static volatile gsize publishing_piwigo_session_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_session_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoSessionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_session_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoSession), 0, (GInstanceInitFunc) publishing_piwigo_session_instance_init, NULL }; - GType publishing_piwigo_session_type_id; - publishing_piwigo_session_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_SESSION, "PublishingPiwigoSession", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_session_type_id__volatile, publishing_piwigo_session_type_id); - } - return publishing_piwigo_session_type_id__volatile; -} - - -PublishingPiwigoTransaction* -publishing_piwigo_transaction_construct (GType object_type, - PublishingPiwigoSession* session) -{ - PublishingPiwigoTransaction* self = NULL; -#line 1593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1594 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoTransaction*) publishing_rest_support_transaction_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 11973 "PiwigoPublishing.c" - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_piwigo_session_get_pwg_id (session); -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_strconcat ("pwg_id=", _tmp1_, NULL); -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Cookie", _tmp3_); -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp3_); -#line 1596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp1_); -#line 11992 "PiwigoPublishing.c" - } -#line 1593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 11996 "PiwigoPublishing.c" -} - - -PublishingPiwigoTransaction* -publishing_piwigo_transaction_new (PublishingPiwigoSession* session) -{ -#line 1593 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_transaction_construct (PUBLISHING_PIWIGO_TYPE_TRANSACTION, session); -#line 12005 "PiwigoPublishing.c" -} - - -PublishingPiwigoTransaction* -publishing_piwigo_transaction_construct_authenticated (GType object_type, - PublishingPiwigoSession* session) -{ - PublishingPiwigoTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 1600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_piwigo_session_get_pwg_url (session); -#line 1601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp1_); -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_piwigo_session_get_pwg_id (session); -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = g_strconcat ("pwg_id=", _tmp3_, NULL); -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp4_; -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Cookie", _tmp5_); -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp5_); -#line 1602 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp3_); -#line 1600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 12046 "PiwigoPublishing.c" -} - - -PublishingPiwigoTransaction* -publishing_piwigo_transaction_new_authenticated (PublishingPiwigoSession* session) -{ -#line 1600 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_transaction_construct_authenticated (PUBLISHING_PIWIGO_TYPE_TRANSACTION, session); -#line 12055 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_transaction_validate_xml (PublishingRESTSupportXmlDocument* doc) -{ - gchar* result = NULL; - xmlNode* root = NULL; - xmlNode* _tmp0_; - gchar* status = NULL; - xmlNode* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp5_; - xmlNode* errcode = NULL; - xmlNode* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - xmlNode* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - GError * _inner_error_ = NULL; -#line 1605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL); -#line 1606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_rest_support_xml_document_get_root_node (doc); -#line 1606 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - root = _tmp0_; -#line 1607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = root; -#line 1607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = (gchar*) xmlGetProp (_tmp1_, (xmlChar*) "stat"); -#line 1607 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - status = _tmp2_; -#line 1610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = status; -#line 1610 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp3_ == NULL) { -#line 12096 "PiwigoPublishing.c" - gchar* _tmp4_; -#line 1611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = g_strdup ("No status property in root node"); -#line 1611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp4_; -#line 1611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (status); -#line 1611 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 12106 "PiwigoPublishing.c" - } -#line 1613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = status; -#line 1613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (_tmp5_, "ok") == 0) { -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = NULL; -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (status); -#line 1614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 12118 "PiwigoPublishing.c" - } - { - xmlNode* _tmp6_ = NULL; - xmlNode* _tmp7_; - xmlNode* _tmp8_; -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = root; -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = publishing_rest_support_xml_document_get_named_child (doc, _tmp7_, "err", &_inner_error_); -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp8_; -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 12134 "PiwigoPublishing.c" - goto __catch40_spit_publishing_publishing_error; - } -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (status); -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 12145 "PiwigoPublishing.c" - } -#line 1618 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - errcode = _tmp6_; -#line 12149 "PiwigoPublishing.c" - } - goto __finally40; - __catch40_spit_publishing_publishing_error: - { - GError* err = NULL; - gchar* _tmp9_; -#line 1617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 1617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 1620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = g_strdup ("No error code specified"); -#line 1620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp9_; -#line 1620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 1620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (status); -#line 1620 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 12170 "PiwigoPublishing.c" - } - __finally40: -#line 1617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (status); -#line 1617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 1617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 12183 "PiwigoPublishing.c" - } -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = errcode; -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = (gchar*) xmlGetProp (_tmp10_, (xmlChar*) "msg"); -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = _tmp11_; -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = errcode; -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = (gchar*) xmlGetProp (_tmp13_, (xmlChar*) "code"); -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = _tmp14_; -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = g_strdup_printf ("%s (error code %s)", _tmp12_, _tmp15_); -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = _tmp16_; -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp15_); -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp12_); -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp17_; -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (status); -#line 1623 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 12211 "PiwigoPublishing.c" -} - - -gchar* -publishing_piwigo_transaction_get_error_code (PublishingRESTSupportXmlDocument* doc) -{ - gchar* result = NULL; - xmlNode* root = NULL; - xmlNode* _tmp0_; - xmlNode* errcode = NULL; - xmlNode* _tmp5_; - gchar* _tmp6_; - GError * _inner_error_ = NULL; -#line 1626 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_XML_DOCUMENT (doc), NULL); -#line 1627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_rest_support_xml_document_get_root_node (doc); -#line 1627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - root = _tmp0_; -#line 12231 "PiwigoPublishing.c" - { - xmlNode* _tmp1_ = NULL; - xmlNode* _tmp2_; - xmlNode* _tmp3_; -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = root; -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_rest_support_xml_document_get_named_child (doc, _tmp2_, "err", &_inner_error_); -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp3_; -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 12246 "PiwigoPublishing.c" - goto __catch41_spit_publishing_publishing_error; - } -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 12255 "PiwigoPublishing.c" - } -#line 1630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - errcode = _tmp1_; -#line 12259 "PiwigoPublishing.c" - } - goto __finally41; - __catch41_spit_publishing_publishing_error: - { - GError* err = NULL; - gchar* _tmp4_; -#line 1629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - err = _inner_error_; -#line 1629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _inner_error_ = NULL; -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = g_strdup ("0"); -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp4_; -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_error_free0 (err); -#line 1632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 12278 "PiwigoPublishing.c" - } - __finally41: -#line 1629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_clear_error (&_inner_error_); -#line 1629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return NULL; -#line 12289 "PiwigoPublishing.c" - } -#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = errcode; -#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = (gchar*) xmlGetProp (_tmp5_, (xmlChar*) "code"); -#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - result = _tmp6_; -#line 1634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return result; -#line 12299 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_transaction_class_init (PublishingPiwigoTransactionClass * klass) -{ -#line 1592 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_transaction_parent_class = g_type_class_peek_parent (klass); -#line 12308 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_transaction_instance_init (PublishingPiwigoTransaction * self) -{ -} - - -/** - * Generic REST transaction class. - * - * This class implements the generic logic for all REST transactions used - * by the Piwigo publishing plugin. In particular, it ensures that if the - * session has been authenticated, the pwg_id token is included in the - * transaction header. - */ -GType -publishing_piwigo_transaction_get_type (void) -{ - static volatile gsize publishing_piwigo_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoTransaction), 0, (GInstanceInitFunc) publishing_piwigo_transaction_instance_init, NULL }; - GType publishing_piwigo_transaction_type_id; - publishing_piwigo_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, "PublishingPiwigoTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_transaction_type_id__volatile, publishing_piwigo_transaction_type_id); - } - return publishing_piwigo_transaction_type_id__volatile; -} - - -PublishingPiwigoSessionLoginTransaction* -publishing_piwigo_session_login_transaction_construct (GType object_type, - PublishingPiwigoSession* session, - const gchar* url, - const gchar* username, - const gchar* password) -{ - PublishingPiwigoSessionLoginTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (username != NULL, NULL); -#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (password != NULL, NULL); -#line 1643 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoSessionLoginTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1645 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.session.login"); -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_uri_escape_string (username, NULL, TRUE); -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "username", _tmp1_); -#line 1646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp1_); -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_uri_escape_string (password, NULL, TRUE); -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "password", _tmp3_); -#line 1647 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp3_); -#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 12382 "PiwigoPublishing.c" -} - - -PublishingPiwigoSessionLoginTransaction* -publishing_piwigo_session_login_transaction_new (PublishingPiwigoSession* session, - const gchar* url, - const gchar* username, - const gchar* password) -{ -#line 1642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_session_login_transaction_construct (PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION, session, url, username, password); -#line 12394 "PiwigoPublishing.c" -} - - -static gpointer -_publishing_rest_support_argument_ref0 (gpointer self) -{ -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self ? publishing_rest_support_argument_ref (self) : NULL; -#line 12403 "PiwigoPublishing.c" -} - - -PublishingPiwigoSessionLoginTransaction* -publishing_piwigo_session_login_transaction_construct_from_other (GType object_type, - PublishingPiwigoSession* session, - PublishingPiwigoTransaction* other) -{ - PublishingPiwigoSessionLoginTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gint _tmp2_; - PublishingRESTSupportArgument** _tmp3_; -#line 1650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_TRANSACTION (other), NULL); -#line 1651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (other, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 1651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoSessionLoginTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), _tmp1_, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1651 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp1_); -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = publishing_rest_support_transaction_get_arguments (G_TYPE_CHECK_INSTANCE_CAST (other, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_tmp2_); -#line 12431 "PiwigoPublishing.c" - { - PublishingRESTSupportArgument** argument_collection = NULL; - gint argument_collection_length1 = 0; - gint _argument_collection_size_ = 0; - gint argument_it = 0; -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - argument_collection = _tmp3_; -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - argument_collection_length1 = _tmp2_; -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - for (argument_it = 0; argument_it < _tmp2_; argument_it = argument_it + 1) { -#line 12443 "PiwigoPublishing.c" - PublishingRESTSupportArgument* _tmp4_; - PublishingRESTSupportArgument* argument = NULL; -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = _publishing_rest_support_argument_ref0 (argument_collection[argument_it]); -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - argument = _tmp4_; -#line 12450 "PiwigoPublishing.c" - { - PublishingRESTSupportArgument* _tmp5_; - const gchar* _tmp6_; - PublishingRESTSupportArgument* _tmp7_; - const gchar* _tmp8_; -#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = argument; -#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _tmp5_->key; -#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp7_ = argument; -#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = _tmp7_->value; -#line 1654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp6_, _tmp8_); -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_rest_support_argument_unref0 (argument); -#line 12468 "PiwigoPublishing.c" - } - } -#line 1653 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - argument_collection = (_vala_array_free (argument_collection, argument_collection_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 12473 "PiwigoPublishing.c" - } -#line 1650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 12477 "PiwigoPublishing.c" -} - - -PublishingPiwigoSessionLoginTransaction* -publishing_piwigo_session_login_transaction_new_from_other (PublishingPiwigoSession* session, - PublishingPiwigoTransaction* other) -{ -#line 1650 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_session_login_transaction_construct_from_other (PUBLISHING_PIWIGO_TYPE_SESSION_LOGIN_TRANSACTION, session, other); -#line 12487 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_login_transaction_class_init (PublishingPiwigoSessionLoginTransactionClass * klass) -{ -#line 1641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_session_login_transaction_parent_class = g_type_class_peek_parent (klass); -#line 12496 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_login_transaction_instance_init (PublishingPiwigoSessionLoginTransaction * self) -{ -} - - -/** - * Transaction used to implement the network login interaction. - */ -GType -publishing_piwigo_session_login_transaction_get_type (void) -{ - static volatile gsize publishing_piwigo_session_login_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_session_login_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoSessionLoginTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_session_login_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoSessionLoginTransaction), 0, (GInstanceInitFunc) publishing_piwigo_session_login_transaction_instance_init, NULL }; - GType publishing_piwigo_session_login_transaction_type_id; - publishing_piwigo_session_login_transaction_type_id = g_type_register_static (PUBLISHING_PIWIGO_TYPE_TRANSACTION, "PublishingPiwigoSessionLoginTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_session_login_transaction_type_id__volatile, publishing_piwigo_session_login_transaction_type_id); - } - return publishing_piwigo_session_login_transaction_type_id__volatile; -} - - -PublishingPiwigoSessionGetStatusTransaction* -publishing_piwigo_session_get_status_transaction_construct_unauthenticated (GType object_type, - PublishingPiwigoSession* session, - const gchar* url, - const gchar* pwg_id) -{ - PublishingPiwigoSessionGetStatusTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (url != NULL, NULL); -#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (pwg_id != NULL, NULL); -#line 1664 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoSessionGetStatusTransaction*) publishing_rest_support_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), url, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_piwigo_session_get_pwg_id (session); -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = g_strconcat ("pwg_id=", _tmp1_, NULL); -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Cookie", _tmp3_); -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp3_); -#line 1665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp1_); -#line 1667 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.session.getStatus"); -#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 12560 "PiwigoPublishing.c" -} - - -PublishingPiwigoSessionGetStatusTransaction* -publishing_piwigo_session_get_status_transaction_new_unauthenticated (PublishingPiwigoSession* session, - const gchar* url, - const gchar* pwg_id) -{ -#line 1663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_session_get_status_transaction_construct_unauthenticated (PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION, session, url, pwg_id); -#line 12571 "PiwigoPublishing.c" -} - - -PublishingPiwigoSessionGetStatusTransaction* -publishing_piwigo_session_get_status_transaction_construct (GType object_type, - PublishingPiwigoSession* session) -{ - PublishingPiwigoSessionGetStatusTransaction* self = NULL; -#line 1670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1671 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoSessionGetStatusTransaction*) publishing_piwigo_transaction_construct_authenticated (object_type, session); -#line 1673 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.session.getStatus"); -#line 1670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 12588 "PiwigoPublishing.c" -} - - -PublishingPiwigoSessionGetStatusTransaction* -publishing_piwigo_session_get_status_transaction_new (PublishingPiwigoSession* session) -{ -#line 1670 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_session_get_status_transaction_construct (PUBLISHING_PIWIGO_TYPE_SESSION_GET_STATUS_TRANSACTION, session); -#line 12597 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_get_status_transaction_class_init (PublishingPiwigoSessionGetStatusTransactionClass * klass) -{ -#line 1662 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_session_get_status_transaction_parent_class = g_type_class_peek_parent (klass); -#line 12606 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_get_status_transaction_instance_init (PublishingPiwigoSessionGetStatusTransaction * self) -{ -} - - -/** - * Transaction used to implement the get status interaction. - */ -GType -publishing_piwigo_session_get_status_transaction_get_type (void) -{ - static volatile gsize publishing_piwigo_session_get_status_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_session_get_status_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoSessionGetStatusTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_session_get_status_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoSessionGetStatusTransaction), 0, (GInstanceInitFunc) publishing_piwigo_session_get_status_transaction_instance_init, NULL }; - GType publishing_piwigo_session_get_status_transaction_type_id; - publishing_piwigo_session_get_status_transaction_type_id = g_type_register_static (PUBLISHING_PIWIGO_TYPE_TRANSACTION, "PublishingPiwigoSessionGetStatusTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_session_get_status_transaction_type_id__volatile, publishing_piwigo_session_get_status_transaction_type_id); - } - return publishing_piwigo_session_get_status_transaction_type_id__volatile; -} - - -PublishingPiwigoCategoriesGetListTransaction* -publishing_piwigo_categories_get_list_transaction_construct (GType object_type, - PublishingPiwigoSession* session) -{ - PublishingPiwigoCategoriesGetListTransaction* self = NULL; -#line 1681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1682 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoCategoriesGetListTransaction*) publishing_piwigo_transaction_construct_authenticated (object_type, session); -#line 1684 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.categories.getList"); -#line 1685 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "recursive", "true"); -#line 1681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 12648 "PiwigoPublishing.c" -} - - -PublishingPiwigoCategoriesGetListTransaction* -publishing_piwigo_categories_get_list_transaction_new (PublishingPiwigoSession* session) -{ -#line 1681 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_categories_get_list_transaction_construct (PUBLISHING_PIWIGO_TYPE_CATEGORIES_GET_LIST_TRANSACTION, session); -#line 12657 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_categories_get_list_transaction_class_init (PublishingPiwigoCategoriesGetListTransactionClass * klass) -{ -#line 1680 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_categories_get_list_transaction_parent_class = g_type_class_peek_parent (klass); -#line 12666 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_categories_get_list_transaction_instance_init (PublishingPiwigoCategoriesGetListTransaction * self) -{ -} - - -/** - * Transaction used to implement the fetch categories interaction. - */ -GType -publishing_piwigo_categories_get_list_transaction_get_type (void) -{ - static volatile gsize publishing_piwigo_categories_get_list_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_categories_get_list_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoCategoriesGetListTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_categories_get_list_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoCategoriesGetListTransaction), 0, (GInstanceInitFunc) publishing_piwigo_categories_get_list_transaction_instance_init, NULL }; - GType publishing_piwigo_categories_get_list_transaction_type_id; - publishing_piwigo_categories_get_list_transaction_type_id = g_type_register_static (PUBLISHING_PIWIGO_TYPE_TRANSACTION, "PublishingPiwigoCategoriesGetListTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_categories_get_list_transaction_type_id__volatile, publishing_piwigo_categories_get_list_transaction_type_id); - } - return publishing_piwigo_categories_get_list_transaction_type_id__volatile; -} - - -PublishingPiwigoSessionLogoutTransaction* -publishing_piwigo_session_logout_transaction_construct (GType object_type, - PublishingPiwigoSession* session) -{ - PublishingPiwigoSessionLogoutTransaction* self = NULL; -#line 1690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1691 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoSessionLogoutTransaction*) publishing_piwigo_transaction_construct_authenticated (object_type, session); -#line 1693 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.session.logout"); -#line 1690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 12706 "PiwigoPublishing.c" -} - - -PublishingPiwigoSessionLogoutTransaction* -publishing_piwigo_session_logout_transaction_new (PublishingPiwigoSession* session) -{ -#line 1690 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_session_logout_transaction_construct (PUBLISHING_PIWIGO_TYPE_SESSION_LOGOUT_TRANSACTION, session); -#line 12715 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_logout_transaction_class_init (PublishingPiwigoSessionLogoutTransactionClass * klass) -{ -#line 1689 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_session_logout_transaction_parent_class = g_type_class_peek_parent (klass); -#line 12724 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_session_logout_transaction_instance_init (PublishingPiwigoSessionLogoutTransaction * self) -{ -} - - -GType -publishing_piwigo_session_logout_transaction_get_type (void) -{ - static volatile gsize publishing_piwigo_session_logout_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_session_logout_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoSessionLogoutTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_session_logout_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoSessionLogoutTransaction), 0, (GInstanceInitFunc) publishing_piwigo_session_logout_transaction_instance_init, NULL }; - GType publishing_piwigo_session_logout_transaction_type_id; - publishing_piwigo_session_logout_transaction_type_id = g_type_register_static (PUBLISHING_PIWIGO_TYPE_TRANSACTION, "PublishingPiwigoSessionLogoutTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_session_logout_transaction_type_id__volatile, publishing_piwigo_session_logout_transaction_type_id); - } - return publishing_piwigo_session_logout_transaction_type_id__volatile; -} - - -PublishingPiwigoCategoriesAddTransaction* -publishing_piwigo_categories_add_transaction_construct (GType object_type, - PublishingPiwigoSession* session, - const gchar* category, - gint parent_id, - const gchar* comment) -{ - PublishingPiwigoCategoriesAddTransaction* self = NULL; -#line 1698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (category != NULL, NULL); -#line 1699 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoCategoriesAddTransaction*) publishing_piwigo_transaction_construct_authenticated (object_type, session); -#line 1701 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.categories.add"); -#line 1702 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "name", category); -#line 1704 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (parent_id != 0) { -#line 12768 "PiwigoPublishing.c" - gchar* _tmp0_; - gchar* _tmp1_; -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = g_strdup_printf ("%i", parent_id); -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "parent", _tmp1_); -#line 1705 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp1_); -#line 12779 "PiwigoPublishing.c" - } -#line 1708 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (comment, "") != 0) { -#line 1709 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "comment", comment); -#line 12785 "PiwigoPublishing.c" - } -#line 1698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 12789 "PiwigoPublishing.c" -} - - -PublishingPiwigoCategoriesAddTransaction* -publishing_piwigo_categories_add_transaction_new (PublishingPiwigoSession* session, - const gchar* category, - gint parent_id, - const gchar* comment) -{ -#line 1698 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_categories_add_transaction_construct (PUBLISHING_PIWIGO_TYPE_CATEGORIES_ADD_TRANSACTION, session, category, parent_id, comment); -#line 12801 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_categories_add_transaction_class_init (PublishingPiwigoCategoriesAddTransactionClass * klass) -{ -#line 1697 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_categories_add_transaction_parent_class = g_type_class_peek_parent (klass); -#line 12810 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_categories_add_transaction_instance_init (PublishingPiwigoCategoriesAddTransaction * self) -{ -} - - -GType -publishing_piwigo_categories_add_transaction_get_type (void) -{ - static volatile gsize publishing_piwigo_categories_add_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_categories_add_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoCategoriesAddTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_categories_add_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoCategoriesAddTransaction), 0, (GInstanceInitFunc) publishing_piwigo_categories_add_transaction_instance_init, NULL }; - GType publishing_piwigo_categories_add_transaction_type_id; - publishing_piwigo_categories_add_transaction_type_id = g_type_register_static (PUBLISHING_PIWIGO_TYPE_TRANSACTION, "PublishingPiwigoCategoriesAddTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_categories_add_transaction_type_id__volatile, publishing_piwigo_categories_add_transaction_type_id); - } - return publishing_piwigo_categories_add_transaction_type_id__volatile; -} - - -static gchar* -_vala_g_strjoinv (const gchar* separator, - gchar** str_array, - int str_array_length1) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; -#line 1092 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (separator == NULL) { -#line 1093 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - separator = ""; -#line 12845 "PiwigoPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array != NULL) { -#line 12849 "PiwigoPublishing.c" - gboolean _tmp1_ = FALSE; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 > 0) { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 12855 "PiwigoPublishing.c" - } else { - gboolean _tmp2_ = FALSE; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 12860 "PiwigoPublishing.c" - const gchar* _tmp3_; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = str_array[0]; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp3_ != NULL; -#line 12866 "PiwigoPublishing.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = FALSE; -#line 12870 "PiwigoPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp2_; -#line 12874 "PiwigoPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = _tmp1_; -#line 12878 "PiwigoPublishing.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 12882 "PiwigoPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 12886 "PiwigoPublishing.c" - gint i = 0; - gsize len = 0UL; - gint _tmp20_; - gint _tmp22_; - gint _tmp23_; - gsize _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; - const gchar* res = NULL; - gsize _tmp28_; - void* _tmp29_; - void* ptr = NULL; - const gchar* _tmp30_; - const gchar* _tmp31_; - void* _tmp32_; - const gchar* _tmp45_; -#line 1097 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = (gsize) 1; -#line 12906 "PiwigoPublishing.c" - { - gboolean _tmp4_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 0; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = TRUE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - while (TRUE) { -#line 12915 "PiwigoPublishing.c" - gboolean _tmp6_ = FALSE; - gboolean _tmp7_ = FALSE; - gint _tmp12_ = 0; - gint _tmp13_; - const gchar* _tmp14_; - gsize _tmp19_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp4_) { -#line 12924 "PiwigoPublishing.c" - gint _tmp5_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = _tmp5_ + 1; -#line 12930 "PiwigoPublishing.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 != -1) { -#line 12936 "PiwigoPublishing.c" - gint _tmp8_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp8_ < str_array_length1; -#line 12942 "PiwigoPublishing.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = FALSE; -#line 12946 "PiwigoPublishing.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp7_) { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = TRUE; -#line 12952 "PiwigoPublishing.c" - } else { - gboolean _tmp9_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 12957 "PiwigoPublishing.c" - gint _tmp10_; - const gchar* _tmp11_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp11_ = str_array[_tmp10_]; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = _tmp11_ != NULL; -#line 12966 "PiwigoPublishing.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = FALSE; -#line 12970 "PiwigoPublishing.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp9_; -#line 12974 "PiwigoPublishing.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp6_) { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - break; -#line 12980 "PiwigoPublishing.c" - } -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp13_ = i; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp14_ = str_array[_tmp13_]; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp14_ != NULL) { -#line 12988 "PiwigoPublishing.c" - gint _tmp15_; - const gchar* _tmp16_; - gint _tmp17_; - gint _tmp18_; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp15_ = i; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp16_ = str_array[_tmp15_]; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp17_ = strlen ((const gchar*) _tmp16_); -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp18_ = _tmp17_; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp12_ = _tmp18_; -#line 13003 "PiwigoPublishing.c" - } else { -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp12_ = 0; -#line 13007 "PiwigoPublishing.c" - } -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp19_ = len; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp19_ + _tmp12_; -#line 13013 "PiwigoPublishing.c" - } - } -#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp20_ = i; -#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp20_ == 0) { -#line 13020 "PiwigoPublishing.c" - gchar* _tmp21_; -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp21_ = g_strdup (""); -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp21_; -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 13028 "PiwigoPublishing.c" - } -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp22_ = i; -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - str_array_length1 = _tmp22_; -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp23_ = str_array_length1; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp24_ = len; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp25_ = strlen ((const gchar*) separator); -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp26_ = _tmp25_; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp27_ = i; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp24_ + (_tmp26_ * (_tmp27_ - 1)); -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp28_ = len; -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp29_ = g_malloc (_tmp28_); -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = _tmp29_; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp30_ = res; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp31_ = str_array[0]; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp32_ = g_stpcpy ((void*) _tmp30_, (const gchar*) _tmp31_); -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp32_; -#line 13060 "PiwigoPublishing.c" - { - gboolean _tmp33_ = FALSE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 1; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp33_ = TRUE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - while (TRUE) { -#line 13069 "PiwigoPublishing.c" - gint _tmp35_; - void* _tmp36_; - void* _tmp37_; - const gchar* _tmp38_ = NULL; - gint _tmp39_; - const gchar* _tmp40_; - void* _tmp43_; - void* _tmp44_; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp33_) { -#line 13080 "PiwigoPublishing.c" - gint _tmp34_; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp34_ = i; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = _tmp34_ + 1; -#line 13086 "PiwigoPublishing.c" - } -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp33_ = FALSE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp35_ = i; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!(_tmp35_ < str_array_length1)) { -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - break; -#line 13096 "PiwigoPublishing.c" - } -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp36_ = ptr; -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp37_ = g_stpcpy (_tmp36_, (const gchar*) separator); -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp37_; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp39_ = i; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp40_ = str_array[_tmp39_]; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp40_ != NULL) { -#line 13110 "PiwigoPublishing.c" - gint _tmp41_; - const gchar* _tmp42_; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp41_ = i; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp42_ = str_array[_tmp41_]; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp38_ = (const gchar*) _tmp42_; -#line 13119 "PiwigoPublishing.c" - } else { -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp38_ = ""; -#line 13123 "PiwigoPublishing.c" - } -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp43_ = ptr; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp44_ = g_stpcpy (_tmp43_, _tmp38_); -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp44_; -#line 13131 "PiwigoPublishing.c" - } - } -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp45_ = res; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = NULL; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gchar*) _tmp45_; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 13142 "PiwigoPublishing.c" - } else { - gchar* _tmp46_; -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp46_ = g_strdup (""); -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp46_; -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 13151 "PiwigoPublishing.c" - } -} - - -static void -_g_free0_ (gpointer var) -{ -#line 1774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - var = (g_free (var), NULL); -#line 13161 "PiwigoPublishing.c" -} - - -PublishingPiwigoImagesAddTransaction* -publishing_piwigo_images_add_transaction_construct (GType object_type, - PublishingPiwigoSession* session, - PublishingPiwigoPublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ - PublishingPiwigoImagesAddTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - PublishingPiwigoPublishingParameters* _tmp6_; - gchar** keywords = NULL; - gint _tmp7_; - gchar** _tmp8_; - gint keywords_length1; - gint _keywords_size_; - gchar* tags = NULL; - gchar* _tmp9_; - gchar** _tmp10_; - gint _tmp10__length1; - GFile* _tmp13_; - GFile* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - PublishingPiwigoCategory* _tmp17_; - gint _tmp18_; - PublishingPiwigoPermissionLevel* _tmp19_; - gint _tmp20_; - gchar* name = NULL; - gchar* _tmp21_; - gchar* comment = NULL; - gchar* _tmp22_; - gboolean _tmp23_ = FALSE; - const gchar* _tmp24_; - PublishingPiwigoCategory* _tmp40_; - gint _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; - PublishingPiwigoPermissionLevel* _tmp44_; - gint _tmp45_; - gchar* _tmp46_; - gchar* _tmp47_; - gboolean _tmp48_; - GHashTable* disposition_table = NULL; - GHashFunc _tmp51_; - GEqualFunc _tmp52_; - GHashTable* _tmp53_; - gchar* basename = NULL; - gchar* _tmp54_; - gboolean _tmp55_ = FALSE; - const gchar* _tmp56_; - gchar* _tmp57_; - gchar* _tmp58_; - gboolean _tmp59_; - GHashTable* _tmp65_; - gchar* _tmp66_; - const gchar* _tmp67_; - gchar* _tmp68_; - GHashTable* _tmp69_; - gchar* _tmp70_; - gchar* _tmp71_; - GHashTable* _tmp72_; -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_SESSION (session), NULL); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (PUBLISHING_PIWIGO_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 1718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp0_ = publishing_piwigo_session_get_pwg_url (session); -#line 1718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp1_ = _tmp0_; -#line 1718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = (PublishingPiwigoImagesAddTransaction*) publishing_rest_support_upload_transaction_construct_with_endpoint_url (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishable, _tmp1_); -#line 1718 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp1_); -#line 1719 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession))) { -#line 13242 "PiwigoPublishing.c" - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp2_ = publishing_piwigo_session_get_pwg_id (session); -#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp3_ = _tmp2_; -#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp4_ = g_strconcat ("pwg_id=", _tmp3_, NULL); -#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp5_ = _tmp4_; -#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_header (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "Cookie", _tmp5_); -#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp5_); -#line 1720 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp3_); -#line 13261 "PiwigoPublishing.c" - } -#line 1722 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp6_ = _publishing_piwigo_publishing_parameters_ref0 (parameters); -#line 1722 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters); -#line 1722 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->parameters = _tmp6_; -#line 1724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp8_ = spit_publishing_publishable_get_publishing_keywords (publishable, &_tmp7_); -#line 1724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - keywords = _tmp8_; -#line 1724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - keywords_length1 = _tmp7_; -#line 1724 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _keywords_size_ = keywords_length1; -#line 1725 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp9_ = g_strdup (""); -#line 1725 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - tags = _tmp9_; -#line 1726 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10_ = keywords; -#line 1726 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp10__length1 = keywords_length1; -#line 1726 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp10_ != NULL) { -#line 13287 "PiwigoPublishing.c" - gchar** _tmp11_; - gint _tmp11__length1; - gchar* _tmp12_; -#line 1727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11_ = keywords; -#line 1727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp11__length1 = keywords_length1; -#line 1727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp12_ = _vala_g_strjoinv (",", _tmp11_, _tmp11__length1); -#line 1727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (tags); -#line 1727 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - tags = _tmp12_; -#line 13301 "PiwigoPublishing.c" - } -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp13_ = spit_publishing_publishable_get_serialized_file (publishable); -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp14_ = _tmp13_; -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp15_ = g_file_get_basename (_tmp14_); -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp16_ = _tmp15_; -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp17_ = parameters->category; -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp18_ = _tmp17_->id; -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp19_ = parameters->perm_level; -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp20_ = _tmp19_->id; -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_debug ("PiwigoPublishing.vala:1730: PiwigoConnector: Uploading photo %s to cat" \ -"egory id %d with perm level %d", _tmp16_, _tmp18_, _tmp20_); -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp16_); -#line 1730 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_object_unref0 (_tmp14_); -#line 1733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp21_ = spit_publishing_publishable_get_publishing_name (publishable); -#line 1733 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - name = _tmp21_; -#line 1734 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp22_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT); -#line 1734 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - comment = _tmp22_; -#line 1736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp24_ = name; -#line 1736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp24_ == NULL) { -#line 1736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = TRUE; -#line 13339 "PiwigoPublishing.c" - } else { - const gchar* _tmp25_; -#line 1736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp25_ = name; -#line 1736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp23_ = g_strcmp0 (_tmp25_, "") == 0; -#line 13346 "PiwigoPublishing.c" - } -#line 1736 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp23_) { -#line 13350 "PiwigoPublishing.c" - gchar* _tmp26_; - const gchar* _tmp27_; - gboolean _tmp28_ = FALSE; - const gchar* _tmp29_; -#line 1737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp26_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 1737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (name); -#line 1737 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - name = _tmp26_; -#line 1739 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp27_ = name; -#line 1739 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "name", _tmp27_); -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp29_ = comment; -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp29_ != NULL) { -#line 13369 "PiwigoPublishing.c" - const gchar* _tmp30_; -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp30_ = comment; -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = g_strcmp0 (_tmp30_, "") != 0; -#line 13375 "PiwigoPublishing.c" - } else { -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp28_ = FALSE; -#line 13379 "PiwigoPublishing.c" - } -#line 1740 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp28_) { -#line 13383 "PiwigoPublishing.c" - const gchar* _tmp31_; -#line 1741 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp31_ = comment; -#line 1741 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "comment", _tmp31_); -#line 13389 "PiwigoPublishing.c" - } - } else { - gboolean _tmp32_ = FALSE; - const gchar* _tmp33_; -#line 1745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp33_ = comment; -#line 1745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp33_ != NULL) { -#line 13398 "PiwigoPublishing.c" - const gchar* _tmp34_; -#line 1745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp34_ = comment; -#line 1745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp32_ = g_strcmp0 (_tmp34_, "") != 0; -#line 13404 "PiwigoPublishing.c" - } else { -#line 1745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp32_ = FALSE; -#line 13408 "PiwigoPublishing.c" - } -#line 1745 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp32_) { -#line 13412 "PiwigoPublishing.c" - const gchar* _tmp35_; - const gchar* _tmp36_; -#line 1746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp35_ = name; -#line 1746 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "name", _tmp35_); -#line 1747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp36_ = comment; -#line 1747 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "comment", _tmp36_); -#line 13423 "PiwigoPublishing.c" - } else { - gboolean _tmp37_; -#line 1752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp37_ = parameters->title_as_comment; -#line 1752 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp37_) { -#line 13430 "PiwigoPublishing.c" - const gchar* _tmp38_; -#line 1753 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp38_ = name; -#line 1753 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "comment", _tmp38_); -#line 13436 "PiwigoPublishing.c" - } else { - const gchar* _tmp39_; -#line 1755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp39_ = name; -#line 1755 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "name", _tmp39_); -#line 13443 "PiwigoPublishing.c" - } - } - } -#line 1759 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "method", "pwg.images.addSimple"); -#line 1760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp40_ = parameters->category; -#line 1760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp41_ = _tmp40_->id; -#line 1760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp42_ = g_strdup_printf ("%i", _tmp41_); -#line 1760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp43_ = _tmp42_; -#line 1760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "category", _tmp43_); -#line 1760 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp43_); -#line 1761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp44_ = parameters->perm_level; -#line 1761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp45_ = _tmp44_->id; -#line 1761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp46_ = g_strdup_printf ("%i", _tmp45_); -#line 1761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp47_ = _tmp46_; -#line 1761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "level", _tmp47_); -#line 1761 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp47_); -#line 1762 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp48_ = parameters->no_upload_tags; -#line 1762 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (!_tmp48_) { -#line 13477 "PiwigoPublishing.c" - const gchar* _tmp49_; -#line 1763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp49_ = tags; -#line 1763 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (g_strcmp0 (_tmp49_, "") != 0) { -#line 13483 "PiwigoPublishing.c" - const gchar* _tmp50_; -#line 1764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp50_ = tags; -#line 1764 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "tags", _tmp50_); -#line 13489 "PiwigoPublishing.c" - } - } -#line 1774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp51_ = g_str_hash; -#line 1774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp52_ = g_str_equal; -#line 1774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp53_ = g_hash_table_new_full (_tmp51_, _tmp52_, _g_free0_, _g_free0_); -#line 1774 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - disposition_table = _tmp53_; -#line 1776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp54_ = spit_publishing_publishable_get_param_string (publishable, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 1776 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - basename = _tmp54_; -#line 1777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp56_ = basename; -#line 1777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp57_ = g_utf8_strdown (_tmp56_, (gssize) -1); -#line 1777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp58_ = _tmp57_; -#line 1777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp59_ = !g_str_has_suffix (_tmp58_, ".jpeg"); -#line 1777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp58_); -#line 1777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp59_) { -#line 13516 "PiwigoPublishing.c" - const gchar* _tmp60_; - gchar* _tmp61_; - gchar* _tmp62_; -#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp60_ = basename; -#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp61_ = g_utf8_strdown (_tmp60_, (gssize) -1); -#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp62_ = _tmp61_; -#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp55_ = !g_str_has_suffix (_tmp62_, ".jpg"); -#line 1778 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (_tmp62_); -#line 13530 "PiwigoPublishing.c" - } else { -#line 1777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp55_ = FALSE; -#line 13534 "PiwigoPublishing.c" - } -#line 1777 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - if (_tmp55_) { -#line 13538 "PiwigoPublishing.c" - const gchar* _tmp63_; - gchar* _tmp64_; -#line 1779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp63_ = basename; -#line 1779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp64_ = g_strconcat (_tmp63_, ".jpg", NULL); -#line 1779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (basename); -#line 1779 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - basename = _tmp64_; -#line 13549 "PiwigoPublishing.c" - } -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp65_ = disposition_table; -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp66_ = g_strdup ("filename"); -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp67_ = basename; -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp68_ = soup_uri_encode (_tmp67_, NULL); -#line 1781 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_hash_table_insert (_tmp65_, _tmp66_, _tmp68_); -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp69_ = disposition_table; -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp70_ = g_strdup ("name"); -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp71_ = g_strdup ("image"); -#line 1782 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_hash_table_insert (_tmp69_, _tmp70_, _tmp71_); -#line 1784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _tmp72_ = disposition_table; -#line 1784 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_rest_support_upload_transaction_set_binary_disposition_table (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction), _tmp72_); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (basename); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_hash_table_unref0 (disposition_table); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (comment); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (name); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _g_free0 (tags); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return self; -#line 13587 "PiwigoPublishing.c" -} - - -PublishingPiwigoImagesAddTransaction* -publishing_piwigo_images_add_transaction_new (PublishingPiwigoSession* session, - PublishingPiwigoPublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ -#line 1717 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - return publishing_piwigo_images_add_transaction_construct (PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, session, parameters, publishable); -#line 13598 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_images_add_transaction_class_init (PublishingPiwigoImagesAddTransactionClass * klass) -{ -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - publishing_piwigo_images_add_transaction_parent_class = g_type_class_peek_parent (klass); -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_piwigo_images_add_transaction_finalize; -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingPiwigoImagesAddTransactionPrivate)); -#line 13611 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_images_add_transaction_instance_init (PublishingPiwigoImagesAddTransaction * self) -{ -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv = PUBLISHING_PIWIGO_IMAGES_ADD_TRANSACTION_GET_PRIVATE (self); -#line 1715 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self->priv->parameters = NULL; -#line 13622 "PiwigoPublishing.c" -} - - -static void -publishing_piwigo_images_add_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingPiwigoImagesAddTransaction * self; -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_PIWIGO_TYPE_IMAGES_ADD_TRANSACTION, PublishingPiwigoImagesAddTransaction); -#line 1715 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - _publishing_piwigo_publishing_parameters_unref0 (self->priv->parameters); -#line 1714 "/home/jens/Source/shotwell/plugins/shotwell-publishing/PiwigoPublishing.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_piwigo_images_add_transaction_parent_class)->finalize (obj); -#line 13636 "PiwigoPublishing.c" -} - - -GType -publishing_piwigo_images_add_transaction_get_type (void) -{ - static volatile gsize publishing_piwigo_images_add_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_piwigo_images_add_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingPiwigoImagesAddTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_piwigo_images_add_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingPiwigoImagesAddTransaction), 0, (GInstanceInitFunc) publishing_piwigo_images_add_transaction_instance_init, NULL }; - GType publishing_piwigo_images_add_transaction_type_id; - publishing_piwigo_images_add_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, "PublishingPiwigoImagesAddTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_piwigo_images_add_transaction_type_id__volatile, publishing_piwigo_images_add_transaction_type_id); - } - return publishing_piwigo_images_add_transaction_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/plugins/shotwell-publishing/PiwigoPublishing.vala b/plugins/shotwell-publishing/PiwigoPublishing.vala index fcd0aee..649f135 100644 --- a/plugins/shotwell-publishing/PiwigoPublishing.vala +++ b/plugins/shotwell-publishing/PiwigoPublishing.vala @@ -864,6 +864,9 @@ public class PiwigoPublisher : Spit.Publishing.Publisher, GLib.Object { // TODO: should a message be displayed to the user if num_published is zero? + if (!is_running()) + return; + do_show_success_pane(); } diff --git a/plugins/shotwell-publishing/TumblrPublishing.c b/plugins/shotwell-publishing/TumblrPublishing.c deleted file mode 100644 index 862982d..0000000 --- a/plugins/shotwell-publishing/TumblrPublishing.c +++ /dev/null @@ -1,5544 +0,0 @@ -/* TumblrPublishing.c generated by valac 0.40.4, the Vala compiler - * generated from TumblrPublishing.vala, do not modify */ - -/* Copyright 2012 BJA Electronics - * Author: Jeroen Arnoldus (b.j.arnoldus@bja-electronics.nl) - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include "shotwell-authenticator.h" -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_TUMBLR_SERVICE (tumblr_service_get_type ()) -#define TUMBLR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TUMBLR_SERVICE, TumblrService)) -#define TUMBLR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TUMBLR_SERVICE, TumblrServiceClass)) -#define IS_TUMBLR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TUMBLR_SERVICE)) -#define IS_TUMBLR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TUMBLR_SERVICE)) -#define TUMBLR_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TUMBLR_SERVICE, TumblrServiceClass)) - -typedef struct _TumblrService TumblrService; -typedef struct _TumblrServiceClass TumblrServiceClass; -typedef struct _TumblrServicePrivate TumblrServicePrivate; -enum { - TUMBLR_SERVICE_0_PROPERTY, - TUMBLR_SERVICE_NUM_PROPERTIES -}; -static GParamSpec* tumblr_service_properties[TUMBLR_SERVICE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER (publishing_tumblr_tumblr_publisher_get_type ()) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisherClass)) -#define PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER)) -#define PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisherClass)) - -typedef struct _PublishingTumblrTumblrPublisher PublishingTumblrTumblrPublisher; -typedef struct _PublishingTumblrTumblrPublisherClass PublishingTumblrTumblrPublisherClass; - -#define PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY (publishing_tumblr_blog_entry_get_type ()) -#define PUBLISHING_TUMBLR_BLOG_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY, PublishingTumblrBlogEntry)) -#define PUBLISHING_TUMBLR_BLOG_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY, PublishingTumblrBlogEntryClass)) -#define PUBLISHING_TUMBLR_IS_BLOG_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY)) -#define PUBLISHING_TUMBLR_IS_BLOG_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY)) -#define PUBLISHING_TUMBLR_BLOG_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY, PublishingTumblrBlogEntryClass)) - -typedef struct _PublishingTumblrBlogEntry PublishingTumblrBlogEntry; -typedef struct _PublishingTumblrBlogEntryClass PublishingTumblrBlogEntryClass; -typedef struct _PublishingTumblrBlogEntryPrivate PublishingTumblrBlogEntryPrivate; -typedef struct _PublishingTumblrParamSpecBlogEntry PublishingTumblrParamSpecBlogEntry; - -#define PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY (publishing_tumblr_size_entry_get_type ()) -#define PUBLISHING_TUMBLR_SIZE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY, PublishingTumblrSizeEntry)) -#define PUBLISHING_TUMBLR_SIZE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY, PublishingTumblrSizeEntryClass)) -#define PUBLISHING_TUMBLR_IS_SIZE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY)) -#define PUBLISHING_TUMBLR_IS_SIZE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY)) -#define PUBLISHING_TUMBLR_SIZE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY, PublishingTumblrSizeEntryClass)) - -typedef struct _PublishingTumblrSizeEntry PublishingTumblrSizeEntry; -typedef struct _PublishingTumblrSizeEntryClass PublishingTumblrSizeEntryClass; -typedef struct _PublishingTumblrSizeEntryPrivate PublishingTumblrSizeEntryPrivate; -typedef struct _PublishingTumblrParamSpecSizeEntry PublishingTumblrParamSpecSizeEntry; -typedef struct _PublishingTumblrTumblrPublisherPrivate PublishingTumblrTumblrPublisherPrivate; - -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE (publishing_tumblr_tumblr_publisher_publishing_options_pane_get_type ()) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPaneClass)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPaneClass)) - -typedef struct _PublishingTumblrTumblrPublisherPublishingOptionsPane PublishingTumblrTumblrPublisherPublishingOptionsPane; -typedef struct _PublishingTumblrTumblrPublisherPublishingOptionsPaneClass PublishingTumblrTumblrPublisherPublishingOptionsPaneClass; -enum { - PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_0_PROPERTY, - PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_tumblr_tumblr_publisher_properties[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) -#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) -#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL))) - -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_USER_INFO_FETCH_TRANSACTION (publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_get_type ()) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_USER_INFO_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_USER_INFO_FETCH_TRANSACTION, PublishingTumblrTumblrPublisherUserInfoFetchTransaction)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_USER_INFO_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_USER_INFO_FETCH_TRANSACTION, PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_USER_INFO_FETCH_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_USER_INFO_FETCH_TRANSACTION)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_USER_INFO_FETCH_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_USER_INFO_FETCH_TRANSACTION)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_USER_INFO_FETCH_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_USER_INFO_FETCH_TRANSACTION, PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass)) - -typedef struct _PublishingTumblrTumblrPublisherUserInfoFetchTransaction PublishingTumblrTumblrPublisherUserInfoFetchTransaction; -typedef struct _PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass; -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) -#define _json_object_unref0(var) ((var == NULL) ? NULL : (var = (json_object_unref (var), NULL))) -#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL))) -#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL))) - -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER (publishing_tumblr_tumblr_publisher_uploader_get_type ()) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, PublishingTumblrTumblrPublisherUploader)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, PublishingTumblrTumblrPublisherUploaderClass)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, PublishingTumblrTumblrPublisherUploaderClass)) - -typedef struct _PublishingTumblrTumblrPublisherUploader PublishingTumblrTumblrPublisherUploader; -typedef struct _PublishingTumblrTumblrPublisherUploaderClass PublishingTumblrTumblrPublisherUploaderClass; -#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL))) -typedef struct _PublishingTumblrTumblrPublisherPublishingOptionsPanePrivate PublishingTumblrTumblrPublisherPublishingOptionsPanePrivate; -enum { - PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_0_PROPERTY, - PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_tumblr_tumblr_publisher_publishing_options_pane_properties[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; -#define _publishing_tumblr_blog_entry_unref0(var) ((var == NULL) ? NULL : (var = (publishing_tumblr_blog_entry_unref (var), NULL))) -#define _publishing_tumblr_size_entry_unref0(var) ((var == NULL) ? NULL : (var = (publishing_tumblr_size_entry_unref (var), NULL))) -enum { - PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, - PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS -}; -static guint publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; -typedef struct _PublishingTumblrTumblrPublisherUserInfoFetchTransactionPrivate PublishingTumblrTumblrPublisherUserInfoFetchTransactionPrivate; - -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION (publishing_tumblr_tumblr_publisher_upload_transaction_get_type ()) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION, PublishingTumblrTumblrPublisherUploadTransaction)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION, PublishingTumblrTumblrPublisherUploadTransactionClass)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION, PublishingTumblrTumblrPublisherUploadTransactionClass)) - -typedef struct _PublishingTumblrTumblrPublisherUploadTransaction PublishingTumblrTumblrPublisherUploadTransaction; -typedef struct _PublishingTumblrTumblrPublisherUploadTransactionClass PublishingTumblrTumblrPublisherUploadTransactionClass; -typedef struct _PublishingTumblrTumblrPublisherUploadTransactionPrivate PublishingTumblrTumblrPublisherUploadTransactionPrivate; -#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL))) -typedef struct _PublishingTumblrTumblrPublisherUploaderPrivate PublishingTumblrTumblrPublisherUploaderPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _TumblrService { - GObject parent_instance; - TumblrServicePrivate * priv; -}; - -struct _TumblrServiceClass { - GObjectClass parent_class; -}; - -struct _PublishingTumblrBlogEntry { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingTumblrBlogEntryPrivate * priv; - gchar* blog; - gchar* url; -}; - -struct _PublishingTumblrBlogEntryClass { - GTypeClass parent_class; - void (*finalize) (PublishingTumblrBlogEntry *self); -}; - -struct _PublishingTumblrParamSpecBlogEntry { - GParamSpec parent_instance; -}; - -struct _PublishingTumblrSizeEntry { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingTumblrSizeEntryPrivate * priv; - gchar* title; - gint size; -}; - -struct _PublishingTumblrSizeEntryClass { - GTypeClass parent_class; - void (*finalize) (PublishingTumblrSizeEntry *self); -}; - -struct _PublishingTumblrParamSpecSizeEntry { - GParamSpec parent_instance; -}; - -struct _PublishingTumblrTumblrPublisher { - GObject parent_instance; - PublishingTumblrTumblrPublisherPrivate * priv; -}; - -struct _PublishingTumblrTumblrPublisherClass { - GObjectClass parent_class; -}; - -struct _PublishingTumblrTumblrPublisherPrivate { - SpitPublishingService* service; - SpitPublishingPluginHost* host; - SpitPublishingProgressCallback progress_reporter; - gpointer progress_reporter_target; - GDestroyNotify progress_reporter_target_destroy_notify; - gboolean running; - gboolean was_started; - PublishingRESTSupportOAuth1Session* session; - PublishingTumblrTumblrPublisherPublishingOptionsPane* publishing_options_pane; - PublishingTumblrSizeEntry** sizes; - gint sizes_length1; - gint _sizes_size_; - PublishingTumblrBlogEntry** blogs; - gint blogs_length1; - gint _blogs_size_; - gchar* username; - SpitPublishingAuthenticator* authenticator; -}; - -struct _PublishingTumblrTumblrPublisherPublishingOptionsPane { - GObject parent_instance; - PublishingTumblrTumblrPublisherPublishingOptionsPanePrivate * priv; -}; - -struct _PublishingTumblrTumblrPublisherPublishingOptionsPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingTumblrTumblrPublisherPublishingOptionsPanePrivate { - GtkBuilder* builder; - GtkBox* pane_widget; - GtkLabel* upload_info_label; - GtkLabel* size_label; - GtkLabel* blog_label; - GtkButton* logout_button; - GtkButton* publish_button; - GtkComboBoxText* size_combo; - GtkComboBoxText* blog_combo; - PublishingTumblrSizeEntry** sizes; - gint sizes_length1; - gint _sizes_size_; - PublishingTumblrBlogEntry** blogs; - gint blogs_length1; - gint _blogs_size_; - gchar* username; - PublishingTumblrTumblrPublisher* publisher; - SpitPublishingPublisherMediaType media_type; -}; - -struct _PublishingTumblrTumblrPublisherUserInfoFetchTransaction { - PublishingRESTSupportOAuth1Transaction parent_instance; - PublishingTumblrTumblrPublisherUserInfoFetchTransactionPrivate * priv; -}; - -struct _PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass { - PublishingRESTSupportOAuth1TransactionClass parent_class; -}; - -struct _PublishingTumblrTumblrPublisherUploadTransaction { - PublishingRESTSupportOAuth1UploadTransaction parent_instance; - PublishingTumblrTumblrPublisherUploadTransactionPrivate * priv; -}; - -struct _PublishingTumblrTumblrPublisherUploadTransactionClass { - PublishingRESTSupportOAuth1UploadTransactionClass parent_class; -}; - -struct _PublishingTumblrTumblrPublisherUploader { - PublishingRESTSupportBatchUploader parent_instance; - PublishingTumblrTumblrPublisherUploaderPrivate * priv; -}; - -struct _PublishingTumblrTumblrPublisherUploaderClass { - PublishingRESTSupportBatchUploaderClass parent_class; -}; - -struct _PublishingTumblrTumblrPublisherUploaderPrivate { - gchar* blog_url; -}; - - -static gpointer tumblr_service_parent_class = NULL; -static GdkPixbuf** tumblr_service_icon_pixbuf_set; -static gint tumblr_service_icon_pixbuf_set_length1; -static GdkPixbuf** tumblr_service_icon_pixbuf_set = NULL; -static gint tumblr_service_icon_pixbuf_set_length1 = 0; -static gint _tumblr_service_icon_pixbuf_set_size_ = 0; -static SpitPluggableIface * tumblr_service_spit_pluggable_parent_iface = NULL; -static SpitPublishingServiceIface * tumblr_service_spit_publishing_service_parent_iface = NULL; -static gpointer publishing_tumblr_blog_entry_parent_class = NULL; -static gpointer publishing_tumblr_size_entry_parent_class = NULL; -static gpointer publishing_tumblr_tumblr_publisher_parent_class = NULL; -static gpointer publishing_tumblr_tumblr_publisher_publishing_options_pane_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_tumblr_tumblr_publisher_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_parent_class = NULL; -static gpointer publishing_tumblr_tumblr_publisher_upload_transaction_parent_class = NULL; -static gpointer publishing_tumblr_tumblr_publisher_uploader_parent_class = NULL; -static SpitPublishingPublisherIface * publishing_tumblr_tumblr_publisher_spit_publishing_publisher_parent_iface = NULL; - -GType tumblr_service_get_type (void) G_GNUC_CONST; -#define TUMBLR_SERVICE_ICON_FILENAME "tumblr.png" -TumblrService* tumblr_service_new (GFile* resource_directory); -TumblrService* tumblr_service_construct (GType object_type, - GFile* resource_directory); -static gint tumblr_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -static const gchar* tumblr_service_real_get_id (SpitPluggable* base); -static const gchar* tumblr_service_real_get_pluggable_name (SpitPluggable* base); -static void tumblr_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup8 (GdkPixbuf** self, - int length); -static void tumblr_service_real_activation (SpitPluggable* base, - gboolean enabled); -static SpitPublishingPublisher* tumblr_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host); -PublishingTumblrTumblrPublisher* publishing_tumblr_tumblr_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host); -PublishingTumblrTumblrPublisher* publishing_tumblr_tumblr_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host); -GType publishing_tumblr_tumblr_publisher_get_type (void) G_GNUC_CONST; -static SpitPublishingPublisherMediaType tumblr_service_real_get_supported_media (SpitPublishingService* base); -static void tumblr_service_finalize (GObject * obj); -#define PUBLISHING_TUMBLR_SERVICE_NAME "Tumblr" -#define PUBLISHING_TUMBLR_ENDPOINT_URL "https://www.tumblr.com/" -#define PUBLISHING_TUMBLR_ENCODE_RFC_3986_EXTRA "!*'();:@&=+$,/?%#[] \\" -#define PUBLISHING_TUMBLR_ORIGINAL_SIZE -1 -gpointer publishing_tumblr_blog_entry_ref (gpointer instance); -void publishing_tumblr_blog_entry_unref (gpointer instance); -GParamSpec* publishing_tumblr_param_spec_blog_entry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_tumblr_value_set_blog_entry (GValue* value, - gpointer v_object); -void publishing_tumblr_value_take_blog_entry (GValue* value, - gpointer v_object); -gpointer publishing_tumblr_value_get_blog_entry (const GValue* value); -GType publishing_tumblr_blog_entry_get_type (void) G_GNUC_CONST; -PublishingTumblrBlogEntry* publishing_tumblr_blog_entry_new (const gchar* creator_blog, - const gchar* creator_url); -PublishingTumblrBlogEntry* publishing_tumblr_blog_entry_construct (GType object_type, - const gchar* creator_blog, - const gchar* creator_url); -static void publishing_tumblr_blog_entry_finalize (PublishingTumblrBlogEntry * obj); -gpointer publishing_tumblr_size_entry_ref (gpointer instance); -void publishing_tumblr_size_entry_unref (gpointer instance); -GParamSpec* publishing_tumblr_param_spec_size_entry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_tumblr_value_set_size_entry (GValue* value, - gpointer v_object); -void publishing_tumblr_value_take_size_entry (GValue* value, - gpointer v_object); -gpointer publishing_tumblr_value_get_size_entry (const GValue* value); -GType publishing_tumblr_size_entry_get_type (void) G_GNUC_CONST; -PublishingTumblrSizeEntry* publishing_tumblr_size_entry_new (const gchar* creator_title, - gint creator_size); -PublishingTumblrSizeEntry* publishing_tumblr_size_entry_construct (GType object_type, - const gchar* creator_title, - gint creator_size); -static void publishing_tumblr_size_entry_finalize (PublishingTumblrSizeEntry * obj); -GType publishing_tumblr_tumblr_publisher_publishing_options_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisherPrivate)) -static void publishing_tumblr_tumblr_publisher_on_authenticator_authenticated (PublishingTumblrTumblrPublisher* self); -static void _publishing_tumblr_tumblr_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, - gpointer self); -static PublishingTumblrSizeEntry** publishing_tumblr_tumblr_publisher_create_sizes (PublishingTumblrTumblrPublisher* self, - int* result_length1); -static void _vala_array_add31 (PublishingTumblrSizeEntry** * array, - int* length, - int* size, - PublishingTumblrSizeEntry* value); -static void _vala_array_add32 (PublishingTumblrSizeEntry** * array, - int* length, - int* size, - PublishingTumblrSizeEntry* value); -static void _vala_array_add33 (PublishingTumblrSizeEntry** * array, - int* length, - int* size, - PublishingTumblrSizeEntry* value); -static PublishingTumblrBlogEntry** publishing_tumblr_tumblr_publisher_create_blogs (PublishingTumblrTumblrPublisher* self, - int* result_length1); -static SpitPublishingService* publishing_tumblr_tumblr_publisher_real_get_service (SpitPublishingPublisher* base); -SpitPublishingPluginHost* publishing_tumblr_tumblr_publisher_get_host (PublishingTumblrTumblrPublisher* self); -static gboolean publishing_tumblr_tumblr_publisher_real_is_running (SpitPublishingPublisher* base); -gint publishing_tumblr_tumblr_publisher_get_persistent_default_size (PublishingTumblrTumblrPublisher* self); -void publishing_tumblr_tumblr_publisher_set_persistent_default_size (PublishingTumblrTumblrPublisher* self, - gint size); -gint publishing_tumblr_tumblr_publisher_get_persistent_default_blog (PublishingTumblrTumblrPublisher* self); -void publishing_tumblr_tumblr_publisher_set_persistent_default_blog (PublishingTumblrTumblrPublisher* self, - gint blog); -static void publishing_tumblr_tumblr_publisher_do_get_blogs (PublishingTumblrTumblrPublisher* self); -GType publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_get_type (void) G_GNUC_CONST; -PublishingTumblrTumblrPublisherUserInfoFetchTransaction* publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_new (PublishingRESTSupportOAuth1Session* session); -PublishingTumblrTumblrPublisherUserInfoFetchTransaction* publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session); -static void publishing_tumblr_tumblr_publisher_on_info_request_txn_completed (PublishingTumblrTumblrPublisher* self, - PublishingRESTSupportTransaction* txn); -static void _publishing_tumblr_tumblr_publisher_on_info_request_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self); -static void publishing_tumblr_tumblr_publisher_on_info_request_txn_error (PublishingTumblrTumblrPublisher* self, - PublishingRESTSupportTransaction* txn, - GError* err); -static void _publishing_tumblr_tumblr_publisher_on_info_request_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self); -static void publishing_tumblr_tumblr_publisher_do_parse_token_info_from_user_request (PublishingTumblrTumblrPublisher* self, - const gchar* response); -static void publishing_tumblr_tumblr_publisher_do_show_publishing_options_pane (PublishingTumblrTumblrPublisher* self); -static void _vala_array_add34 (PublishingTumblrBlogEntry** * array, - int* length, - int* size, - PublishingTumblrBlogEntry* value); -PublishingTumblrTumblrPublisherPublishingOptionsPane* publishing_tumblr_tumblr_publisher_publishing_options_pane_new (PublishingTumblrTumblrPublisher* publisher, - SpitPublishingPublisherMediaType media_type, - PublishingTumblrSizeEntry** sizes, - int sizes_length1, - PublishingTumblrBlogEntry** blogs, - int blogs_length1, - const gchar* username); -PublishingTumblrTumblrPublisherPublishingOptionsPane* publishing_tumblr_tumblr_publisher_publishing_options_pane_construct (GType object_type, - PublishingTumblrTumblrPublisher* publisher, - SpitPublishingPublisherMediaType media_type, - PublishingTumblrSizeEntry** sizes, - int sizes_length1, - PublishingTumblrBlogEntry** blogs, - int blogs_length1, - const gchar* username); -static void publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish (PublishingTumblrTumblrPublisher* self); -static void _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, - gpointer self); -static void publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout (PublishingTumblrTumblrPublisher* self); -static void _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, - gpointer self); -static void publishing_tumblr_tumblr_publisher_do_publish (PublishingTumblrTumblrPublisher* self); -static void publishing_tumblr_tumblr_publisher_do_logout (PublishingTumblrTumblrPublisher* self); -gint publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func (SpitPublishingPublishable* a, - SpitPublishingPublishable* b); -static gint _publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -GType publishing_tumblr_tumblr_publisher_uploader_get_type (void) G_GNUC_CONST; -PublishingTumblrTumblrPublisherUploader* publishing_tumblr_tumblr_publisher_uploader_new (PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - const gchar* blog_url); -PublishingTumblrTumblrPublisherUploader* publishing_tumblr_tumblr_publisher_uploader_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - const gchar* blog_url); -static void publishing_tumblr_tumblr_publisher_on_upload_complete (PublishingTumblrTumblrPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published); -static void _publishing_tumblr_tumblr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self); -static void publishing_tumblr_tumblr_publisher_on_upload_error (PublishingTumblrTumblrPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err); -static void _publishing_tumblr_tumblr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self); -static void publishing_tumblr_tumblr_publisher_on_upload_status_updated (PublishingTumblrTumblrPublisher* self, - gint file_number, - gdouble completed_fraction); -static void _publishing_tumblr_tumblr_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -static void publishing_tumblr_tumblr_publisher_do_show_success_pane (PublishingTumblrTumblrPublisher* self); -void publishing_tumblr_tumblr_publisher_attempt_start (PublishingTumblrTumblrPublisher* self); -static void publishing_tumblr_tumblr_publisher_real_start (SpitPublishingPublisher* base); -static void publishing_tumblr_tumblr_publisher_real_stop (SpitPublishingPublisher* base); -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPanePrivate)) -static PublishingTumblrSizeEntry** _vala_array_dup9 (PublishingTumblrSizeEntry** self, - int length); -static PublishingTumblrBlogEntry** _vala_array_dup10 (PublishingTumblrBlogEntry** self, - int length); -static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_blog_combo (PublishingTumblrTumblrPublisherPublishingOptionsPane* self); -static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_blog_changed (PublishingTumblrTumblrPublisherPublishingOptionsPane* self); -static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_blog_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_size_combo (PublishingTumblrTumblrPublisherPublishingOptionsPane* self); -static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_size_changed (PublishingTumblrTumblrPublisherPublishingOptionsPane* self); -static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked (PublishingTumblrTumblrPublisherPublishingOptionsPane* self); -static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked (PublishingTumblrTumblrPublisherPublishingOptionsPane* self); -static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -void publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish (PublishingTumblrTumblrPublisherPublishingOptionsPane* self); -void publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout (PublishingTumblrTumblrPublisherPublishingOptionsPane* self); -static GtkWidget* publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, - gpointer self); -static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, - gpointer self); -static void publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void publishing_tumblr_tumblr_publisher_publishing_options_pane_finalize (GObject * obj); -GType publishing_tumblr_tumblr_publisher_upload_transaction_get_type (void) G_GNUC_CONST; -static gchar* publishing_tumblr_tumblr_publisher_upload_transaction_encode (PublishingTumblrTumblrPublisherUploadTransaction* self, - guint8* data, - int data_length1); -PublishingTumblrTumblrPublisherUploadTransaction* publishing_tumblr_tumblr_publisher_upload_transaction_new (PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable* publishable, - const gchar* blog_url); -PublishingTumblrTumblrPublisherUploadTransaction* publishing_tumblr_tumblr_publisher_upload_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable* publishable, - const gchar* blog_url); -static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error); -#define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, PublishingTumblrTumblrPublisherUploaderPrivate)) -static PublishingRESTSupportTransaction* publishing_tumblr_tumblr_publisher_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable); -static void publishing_tumblr_tumblr_publisher_uploader_finalize (PublishingRESTSupportBatchUploader * obj); -static void publishing_tumblr_tumblr_publisher_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -TumblrService* -tumblr_service_construct (GType object_type, - GFile* resource_directory) -{ - TumblrService * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = (TumblrService*) g_object_new (object_type, NULL); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = tumblr_service_icon_pixbuf_set; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0__length1 = tumblr_service_icon_pixbuf_set_length1; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (_tmp0_ == NULL) { -#line 568 "TumblrPublishing.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" TUMBLR_SERVICE_ICON_FILENAME, &_tmp1_); -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - tumblr_service_icon_pixbuf_set = (_vala_array_free (tumblr_service_icon_pixbuf_set, tumblr_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - tumblr_service_icon_pixbuf_set = _tmp2_; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - tumblr_service_icon_pixbuf_set_length1 = _tmp1_; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tumblr_service_icon_pixbuf_set_size_ = tumblr_service_icon_pixbuf_set_length1; -#line 581 "TumblrPublishing.c" - } -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self; -#line 585 "TumblrPublishing.c" -} - - -TumblrService* -tumblr_service_new (GFile* resource_directory) -{ -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return tumblr_service_construct (TYPE_TUMBLR_SERVICE, resource_directory); -#line 594 "TumblrPublishing.c" -} - - -static gint -tumblr_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - TumblrService * self; - gint result = 0; -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService); -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 611 "TumblrPublishing.c" -} - - -static const gchar* -tumblr_service_real_get_id (SpitPluggable* base) -{ - TumblrService * self; - const gchar* result = NULL; -#line 25 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService); -#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = "org.yorba.shotwell.publishing.tumblr"; -#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 626 "TumblrPublishing.c" -} - - -static const gchar* -tumblr_service_real_get_pluggable_name (SpitPluggable* base) -{ - TumblrService * self; - const gchar* result = NULL; -#line 29 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService); -#line 30 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = "Tumblr"; -#line 30 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 641 "TumblrPublishing.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self ? g_object_ref (self) : NULL; -#line 650 "TumblrPublishing.c" -} - - -static GdkPixbuf** -_vala_array_dup8 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - for (i = 0; i < length; i++) { -#line 664 "TumblrPublishing.c" - GdkPixbuf* _tmp0_; -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result[i] = _tmp0_; -#line 670 "TumblrPublishing.c" - } -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 674 "TumblrPublishing.c" -} - - -static void -tumblr_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - TumblrService * self; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GdkPixbuf** _tmp7_; - gint _tmp7__length1; - GdkPixbuf** _tmp8_; - gint _tmp8__length1; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (info != NULL); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = g_strdup ("Jeroen Arnoldus"); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 ((*info).authors); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*info).authors = _tmp0_; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = g_strdup (_ ("Copyright 2012 BJA Electronics")); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 ((*info).copyright); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*info).copyright = _tmp1_; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 ((*info).translators); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*info).translators = _tmp2_; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = g_strdup (_VERSION); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 ((*info).version); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*info).version = _tmp3_; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = g_strdup (RESOURCES_WEBSITE_NAME); -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 ((*info).website_name); -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*info).website_name = _tmp4_; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = g_strdup (RESOURCES_WEBSITE_URL); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 ((*info).website_url); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*info).website_url = _tmp5_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*info).is_license_wordwrapped = FALSE; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = g_strdup (RESOURCES_LICENSE); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 ((*info).license); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*info).license = _tmp6_; -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = tumblr_service_icon_pixbuf_set; -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7__length1 = tumblr_service_icon_pixbuf_set_length1; -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup8 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8__length1 = _tmp7__length1; -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*info).icons = _tmp8_; -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*info).icons_length1 = _tmp8__length1; -#line 756 "TumblrPublishing.c" -} - - -static void -tumblr_service_real_activation (SpitPluggable* base, - gboolean enabled) -{ - TumblrService * self; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService); -#line 767 "TumblrPublishing.c" -} - - -static SpitPublishingPublisher* -tumblr_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - TumblrService * self; - SpitPublishingPublisher* result = NULL; - PublishingTumblrTumblrPublisher* _tmp0_; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = publishing_tumblr_tumblr_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 788 "TumblrPublishing.c" -} - - -static SpitPublishingPublisherMediaType -tumblr_service_real_get_supported_media (SpitPublishingService* base) -{ - TumblrService * self; - SpitPublishingPublisherMediaType result = 0; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 803 "TumblrPublishing.c" -} - - -static void -tumblr_service_class_init (TumblrServiceClass * klass) -{ -#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - tumblr_service_parent_class = g_type_class_peek_parent (klass); -#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = tumblr_service_finalize; -#line 814 "TumblrPublishing.c" -} - - -static void -tumblr_service_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - tumblr_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) tumblr_service_real_get_pluggable_interface; -#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) tumblr_service_real_get_id; -#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) tumblr_service_real_get_pluggable_name; -#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) tumblr_service_real_get_info; -#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) tumblr_service_real_activation; -#line 833 "TumblrPublishing.c" -} - - -static void -tumblr_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) -{ -#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - tumblr_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); -#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) tumblr_service_real_create_publisher; -#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) tumblr_service_real_get_supported_media; -#line 846 "TumblrPublishing.c" -} - - -static void -tumblr_service_instance_init (TumblrService * self) -{ -} - - -static void -tumblr_service_finalize (GObject * obj) -{ - TumblrService * self; -#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TUMBLR_SERVICE, TumblrService); -#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - G_OBJECT_CLASS (tumblr_service_parent_class)->finalize (obj); -#line 864 "TumblrPublishing.c" -} - - -GType -tumblr_service_get_type (void) -{ - static volatile gsize tumblr_service_type_id__volatile = 0; - if (g_once_init_enter (&tumblr_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TumblrServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tumblr_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TumblrService), 0, (GInstanceInitFunc) tumblr_service_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) tumblr_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) tumblr_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType tumblr_service_type_id; - tumblr_service_type_id = g_type_register_static (G_TYPE_OBJECT, "TumblrService", &g_define_type_info, 0); - g_type_add_interface_static (tumblr_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (tumblr_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info); - g_once_init_leave (&tumblr_service_type_id__volatile, tumblr_service_type_id); - } - return tumblr_service_type_id__volatile; -} - - -PublishingTumblrBlogEntry* -publishing_tumblr_blog_entry_construct (GType object_type, - const gchar* creator_blog, - const gchar* creator_url) -{ - PublishingTumblrBlogEntry* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (creator_blog != NULL, NULL); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (creator_url != NULL, NULL); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = (PublishingTumblrBlogEntry*) g_type_create_instance (object_type); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = g_strdup (creator_blog); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (self->blog); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->blog = _tmp0_; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = g_strdup (creator_url); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (self->url); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->url = _tmp1_; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self; -#line 914 "TumblrPublishing.c" -} - - -PublishingTumblrBlogEntry* -publishing_tumblr_blog_entry_new (const gchar* creator_blog, - const gchar* creator_url) -{ -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return publishing_tumblr_blog_entry_construct (PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY, creator_blog, creator_url); -#line 924 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_value_blog_entry_init (GValue* value) -{ -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 933 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_value_blog_entry_free_value (GValue* value) -{ -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (value->data[0].v_pointer) { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_blog_entry_unref (value->data[0].v_pointer); -#line 944 "TumblrPublishing.c" - } -} - - -static void -publishing_tumblr_value_blog_entry_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - dest_value->data[0].v_pointer = publishing_tumblr_blog_entry_ref (src_value->data[0].v_pointer); -#line 957 "TumblrPublishing.c" - } else { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 961 "TumblrPublishing.c" - } -} - - -static gpointer -publishing_tumblr_value_blog_entry_peek_pointer (const GValue* value) -{ -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return value->data[0].v_pointer; -#line 971 "TumblrPublishing.c" -} - - -static gchar* -publishing_tumblr_value_blog_entry_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (collect_values[0].v_pointer) { -#line 983 "TumblrPublishing.c" - PublishingTumblrBlogEntry * object; - object = collect_values[0].v_pointer; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 990 "TumblrPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 994 "TumblrPublishing.c" - } -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = publishing_tumblr_blog_entry_ref (object); -#line 998 "TumblrPublishing.c" - } else { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1002 "TumblrPublishing.c" - } -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return NULL; -#line 1006 "TumblrPublishing.c" -} - - -static gchar* -publishing_tumblr_value_blog_entry_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingTumblrBlogEntry ** object_p; - object_p = collect_values[0].v_pointer; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!object_p) { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1022 "TumblrPublishing.c" - } -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!value->data[0].v_pointer) { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - *object_p = NULL; -#line 1028 "TumblrPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 1032 "TumblrPublishing.c" - } else { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - *object_p = publishing_tumblr_blog_entry_ref (value->data[0].v_pointer); -#line 1036 "TumblrPublishing.c" - } -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return NULL; -#line 1040 "TumblrPublishing.c" -} - - -GParamSpec* -publishing_tumblr_param_spec_blog_entry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingTumblrParamSpecBlogEntry* spec; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY), NULL); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return G_PARAM_SPEC (spec); -#line 1060 "TumblrPublishing.c" -} - - -gpointer -publishing_tumblr_value_get_blog_entry (const GValue* value) -{ -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY), NULL); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return value->data[0].v_pointer; -#line 1071 "TumblrPublishing.c" -} - - -void -publishing_tumblr_value_set_blog_entry (GValue* value, - gpointer v_object) -{ - PublishingTumblrBlogEntry * old; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY)); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - old = value->data[0].v_pointer; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (v_object) { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY)); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_blog_entry_ref (value->data[0].v_pointer); -#line 1094 "TumblrPublishing.c" - } else { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1098 "TumblrPublishing.c" - } -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (old) { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_blog_entry_unref (old); -#line 1104 "TumblrPublishing.c" - } -} - - -void -publishing_tumblr_value_take_blog_entry (GValue* value, - gpointer v_object) -{ - PublishingTumblrBlogEntry * old; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY)); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - old = value->data[0].v_pointer; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (v_object) { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY)); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 1126 "TumblrPublishing.c" - } else { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1130 "TumblrPublishing.c" - } -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (old) { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_blog_entry_unref (old); -#line 1136 "TumblrPublishing.c" - } -} - - -static void -publishing_tumblr_blog_entry_class_init (PublishingTumblrBlogEntryClass * klass) -{ -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_blog_entry_parent_class = g_type_class_peek_parent (klass); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - ((PublishingTumblrBlogEntryClass *) klass)->finalize = publishing_tumblr_blog_entry_finalize; -#line 1148 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_blog_entry_instance_init (PublishingTumblrBlogEntry * self) -{ -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->ref_count = 1; -#line 1157 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_blog_entry_finalize (PublishingTumblrBlogEntry * obj) -{ - PublishingTumblrBlogEntry * self; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY, PublishingTumblrBlogEntry); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_handlers_destroy (self); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (self->blog); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (self->url); -#line 1173 "TumblrPublishing.c" -} - - -GType -publishing_tumblr_blog_entry_get_type (void) -{ - static volatile gsize publishing_tumblr_blog_entry_type_id__volatile = 0; - if (g_once_init_enter (&publishing_tumblr_blog_entry_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_tumblr_value_blog_entry_init, publishing_tumblr_value_blog_entry_free_value, publishing_tumblr_value_blog_entry_copy_value, publishing_tumblr_value_blog_entry_peek_pointer, "p", publishing_tumblr_value_blog_entry_collect_value, "p", publishing_tumblr_value_blog_entry_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrBlogEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_blog_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrBlogEntry), 0, (GInstanceInitFunc) publishing_tumblr_blog_entry_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_tumblr_blog_entry_type_id; - publishing_tumblr_blog_entry_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingTumblrBlogEntry", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_tumblr_blog_entry_type_id__volatile, publishing_tumblr_blog_entry_type_id); - } - return publishing_tumblr_blog_entry_type_id__volatile; -} - - -gpointer -publishing_tumblr_blog_entry_ref (gpointer instance) -{ - PublishingTumblrBlogEntry * self; - self = instance; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return instance; -#line 1202 "TumblrPublishing.c" -} - - -void -publishing_tumblr_blog_entry_unref (gpointer instance) -{ - PublishingTumblrBlogEntry * self; - self = instance; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - PUBLISHING_TUMBLR_BLOG_ENTRY_GET_CLASS (self)->finalize (self); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1217 "TumblrPublishing.c" - } -} - - -PublishingTumblrSizeEntry* -publishing_tumblr_size_entry_construct (GType object_type, - const gchar* creator_title, - gint creator_size) -{ - PublishingTumblrSizeEntry* self = NULL; - gchar* _tmp0_; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (creator_title != NULL, NULL); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = (PublishingTumblrSizeEntry*) g_type_create_instance (object_type); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = g_strdup (creator_title); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (self->title); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->title = _tmp0_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->size = creator_size; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self; -#line 1243 "TumblrPublishing.c" -} - - -PublishingTumblrSizeEntry* -publishing_tumblr_size_entry_new (const gchar* creator_title, - gint creator_size) -{ -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return publishing_tumblr_size_entry_construct (PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY, creator_title, creator_size); -#line 1253 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_value_size_entry_init (GValue* value) -{ -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1262 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_value_size_entry_free_value (GValue* value) -{ -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (value->data[0].v_pointer) { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_size_entry_unref (value->data[0].v_pointer); -#line 1273 "TumblrPublishing.c" - } -} - - -static void -publishing_tumblr_value_size_entry_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (src_value->data[0].v_pointer) { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - dest_value->data[0].v_pointer = publishing_tumblr_size_entry_ref (src_value->data[0].v_pointer); -#line 1286 "TumblrPublishing.c" - } else { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 1290 "TumblrPublishing.c" - } -} - - -static gpointer -publishing_tumblr_value_size_entry_peek_pointer (const GValue* value) -{ -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return value->data[0].v_pointer; -#line 1300 "TumblrPublishing.c" -} - - -static gchar* -publishing_tumblr_value_size_entry_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (collect_values[0].v_pointer) { -#line 1312 "TumblrPublishing.c" - PublishingTumblrSizeEntry * object; - object = collect_values[0].v_pointer; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1319 "TumblrPublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1323 "TumblrPublishing.c" - } -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = publishing_tumblr_size_entry_ref (object); -#line 1327 "TumblrPublishing.c" - } else { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1331 "TumblrPublishing.c" - } -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return NULL; -#line 1335 "TumblrPublishing.c" -} - - -static gchar* -publishing_tumblr_value_size_entry_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingTumblrSizeEntry ** object_p; - object_p = collect_values[0].v_pointer; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!object_p) { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1351 "TumblrPublishing.c" - } -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!value->data[0].v_pointer) { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - *object_p = NULL; -#line 1357 "TumblrPublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - *object_p = value->data[0].v_pointer; -#line 1361 "TumblrPublishing.c" - } else { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - *object_p = publishing_tumblr_size_entry_ref (value->data[0].v_pointer); -#line 1365 "TumblrPublishing.c" - } -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return NULL; -#line 1369 "TumblrPublishing.c" -} - - -GParamSpec* -publishing_tumblr_param_spec_size_entry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingTumblrParamSpecSizeEntry* spec; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY), NULL); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return G_PARAM_SPEC (spec); -#line 1389 "TumblrPublishing.c" -} - - -gpointer -publishing_tumblr_value_get_size_entry (const GValue* value) -{ -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY), NULL); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return value->data[0].v_pointer; -#line 1400 "TumblrPublishing.c" -} - - -void -publishing_tumblr_value_set_size_entry (GValue* value, - gpointer v_object) -{ - PublishingTumblrSizeEntry * old; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY)); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - old = value->data[0].v_pointer; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (v_object) { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY)); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_size_entry_ref (value->data[0].v_pointer); -#line 1423 "TumblrPublishing.c" - } else { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1427 "TumblrPublishing.c" - } -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (old) { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_size_entry_unref (old); -#line 1433 "TumblrPublishing.c" - } -} - - -void -publishing_tumblr_value_take_size_entry (GValue* value, - gpointer v_object) -{ - PublishingTumblrSizeEntry * old; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY)); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - old = value->data[0].v_pointer; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (v_object) { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY)); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = v_object; -#line 1455 "TumblrPublishing.c" - } else { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - value->data[0].v_pointer = NULL; -#line 1459 "TumblrPublishing.c" - } -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (old) { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_size_entry_unref (old); -#line 1465 "TumblrPublishing.c" - } -} - - -static void -publishing_tumblr_size_entry_class_init (PublishingTumblrSizeEntryClass * klass) -{ -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_size_entry_parent_class = g_type_class_peek_parent (klass); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - ((PublishingTumblrSizeEntryClass *) klass)->finalize = publishing_tumblr_size_entry_finalize; -#line 1477 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_size_entry_instance_init (PublishingTumblrSizeEntry * self) -{ -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->ref_count = 1; -#line 1486 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_size_entry_finalize (PublishingTumblrSizeEntry * obj) -{ - PublishingTumblrSizeEntry * self; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY, PublishingTumblrSizeEntry); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_handlers_destroy (self); -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (self->title); -#line 1500 "TumblrPublishing.c" -} - - -GType -publishing_tumblr_size_entry_get_type (void) -{ - static volatile gsize publishing_tumblr_size_entry_type_id__volatile = 0; - if (g_once_init_enter (&publishing_tumblr_size_entry_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_tumblr_value_size_entry_init, publishing_tumblr_value_size_entry_free_value, publishing_tumblr_value_size_entry_copy_value, publishing_tumblr_value_size_entry_peek_pointer, "p", publishing_tumblr_value_size_entry_collect_value, "p", publishing_tumblr_value_size_entry_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrSizeEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_size_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrSizeEntry), 0, (GInstanceInitFunc) publishing_tumblr_size_entry_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_tumblr_size_entry_type_id; - publishing_tumblr_size_entry_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingTumblrSizeEntry", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_tumblr_size_entry_type_id__volatile, publishing_tumblr_size_entry_type_id); - } - return publishing_tumblr_size_entry_type_id__volatile; -} - - -gpointer -publishing_tumblr_size_entry_ref (gpointer instance) -{ - PublishingTumblrSizeEntry * self; - self = instance; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return instance; -#line 1529 "TumblrPublishing.c" -} - - -void -publishing_tumblr_size_entry_unref (gpointer instance) -{ - PublishingTumblrSizeEntry * self; - self = instance; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - PUBLISHING_TUMBLR_SIZE_ENTRY_GET_CLASS (self)->finalize (self); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1544 "TumblrPublishing.c" - } -} - - -static void -_publishing_tumblr_tumblr_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, - gpointer self) -{ -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_on_authenticator_authenticated ((PublishingTumblrTumblrPublisher*) self); -#line 1555 "TumblrPublishing.c" -} - - -static void -_vala_array_add31 (PublishingTumblrSizeEntry** * array, - int* length, - int* size, - PublishingTumblrSizeEntry* value) -{ -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if ((*length) == (*size)) { -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - *array = g_renew (PublishingTumblrSizeEntry*, *array, (*size) + 1); -#line 1571 "TumblrPublishing.c" - } -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*array)[(*length)++] = value; -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*array)[*length] = NULL; -#line 1577 "TumblrPublishing.c" -} - - -static void -_vala_array_add32 (PublishingTumblrSizeEntry** * array, - int* length, - int* size, - PublishingTumblrSizeEntry* value) -{ -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if ((*length) == (*size)) { -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - *array = g_renew (PublishingTumblrSizeEntry*, *array, (*size) + 1); -#line 1593 "TumblrPublishing.c" - } -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*array)[(*length)++] = value; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*array)[*length] = NULL; -#line 1599 "TumblrPublishing.c" -} - - -static void -_vala_array_add33 (PublishingTumblrSizeEntry** * array, - int* length, - int* size, - PublishingTumblrSizeEntry* value) -{ -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if ((*length) == (*size)) { -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - *array = g_renew (PublishingTumblrSizeEntry*, *array, (*size) + 1); -#line 1615 "TumblrPublishing.c" - } -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*array)[(*length)++] = value; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*array)[*length] = NULL; -#line 1621 "TumblrPublishing.c" -} - - -static PublishingTumblrSizeEntry** -publishing_tumblr_tumblr_publisher_create_sizes (PublishingTumblrTumblrPublisher* self, - int* result_length1) -{ - PublishingTumblrSizeEntry** result = NULL; - PublishingTumblrSizeEntry** _result_ = NULL; - PublishingTumblrSizeEntry** _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingTumblrSizeEntry** _tmp1_; - gint _tmp1__length1; - PublishingTumblrSizeEntry* _tmp2_; - PublishingTumblrSizeEntry** _tmp3_; - gint _tmp3__length1; - PublishingTumblrSizeEntry* _tmp4_; - PublishingTumblrSizeEntry** _tmp5_; - gint _tmp5__length1; - PublishingTumblrSizeEntry* _tmp6_; - PublishingTumblrSizeEntry** _tmp7_; - gint _tmp7__length1; -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), NULL); -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = g_new0 (PublishingTumblrSizeEntry*, 0 + 1); -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _result_ = _tmp0_; -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _result__length1 = 0; -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - __result__size_ = _result__length1; -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = _result_; -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1__length1 = _result__length1; -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = publishing_tumblr_size_entry_new (_ ("500 × 375 pixels"), 500); -#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _vala_array_add31 (&_result_, &_result__length1, &__result__size_, _tmp2_); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = _result_; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3__length1 = _result__length1; -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = publishing_tumblr_size_entry_new (_ ("1024 × 768 pixels"), 1024); -#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _vala_array_add32 (&_result_, &_result__length1, &__result__size_, _tmp4_); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = _result_; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5__length1 = _result__length1; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = publishing_tumblr_size_entry_new (_ ("1280 × 853 pixels"), 1280); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _vala_array_add33 (&_result_, &_result__length1, &__result__size_, _tmp6_); -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = _result_; -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7__length1 = _result__length1; -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (result_length1) { -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - *result_length1 = _tmp7__length1; -#line 1687 "TumblrPublishing.c" - } -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = _tmp7_; -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 1693 "TumblrPublishing.c" -} - - -static PublishingTumblrBlogEntry** -publishing_tumblr_tumblr_publisher_create_blogs (PublishingTumblrTumblrPublisher* self, - int* result_length1) -{ - PublishingTumblrBlogEntry** result = NULL; - PublishingTumblrBlogEntry** _result_ = NULL; - PublishingTumblrBlogEntry** _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingTumblrBlogEntry** _tmp1_; - gint _tmp1__length1; -#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), NULL); -#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = g_new0 (PublishingTumblrBlogEntry*, 0 + 1); -#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _result_ = _tmp0_; -#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _result__length1 = 0; -#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - __result__size_ = _result__length1; -#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = _result_; -#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1__length1 = _result__length1; -#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (result_length1) { -#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - *result_length1 = _tmp1__length1; -#line 1726 "TumblrPublishing.c" - } -#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = _tmp1_; -#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 1732 "TumblrPublishing.c" -} - - -PublishingTumblrTumblrPublisher* -publishing_tumblr_tumblr_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingTumblrTumblrPublisher * self = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingRESTSupportOAuth1Session* _tmp2_; - gint _tmp3_; - PublishingTumblrSizeEntry** _tmp4_; - gint _tmp5_; - PublishingTumblrBlogEntry** _tmp6_; - PublishingAuthenticatorFactory* _tmp7_; - PublishingAuthenticatorFactory* _tmp8_; - SpitPublishingAuthenticator* _tmp9_; - SpitPublishingAuthenticator* _tmp10_; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = (PublishingTumblrTumblrPublisher*) g_object_new (object_type, NULL); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:123: TumblrPublisher instantiated."); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = _g_object_ref0 (service); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->service); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->service = _tmp0_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = _g_object_ref0 (host); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->host); -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->host = _tmp1_; -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = publishing_rest_support_oauth1_session_new (PUBLISHING_TUMBLR_ENDPOINT_URL); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->session = _tmp2_; -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = publishing_tumblr_tumblr_publisher_create_sizes (self, &_tmp3_); -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_tumblr_size_entry_unref), NULL); -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->sizes = _tmp4_; -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->sizes_length1 = _tmp3_; -#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->_sizes_size_ = self->priv->sizes_length1; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = publishing_tumblr_tumblr_publisher_create_blogs (self, &_tmp5_); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blogs = (_vala_array_free (self->priv->blogs, self->priv->blogs_length1, (GDestroyNotify) publishing_tumblr_blog_entry_unref), NULL); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blogs = _tmp6_; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blogs_length1 = _tmp5_; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->_blogs_size_ = self->priv->blogs_length1; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = publishing_authenticator_factory_get_instance (); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = _tmp7_; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9_ = spit_publishing_authenticator_factory_create (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory), "tumblr", host); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->authenticator = _tmp9_; -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (_tmp8_); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = self->priv->authenticator; -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (_tmp10_, "authenticated", (GCallback) _publishing_tumblr_tumblr_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated, self, 0); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self; -#line 1817 "TumblrPublishing.c" -} - - -PublishingTumblrTumblrPublisher* -publishing_tumblr_tumblr_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return publishing_tumblr_tumblr_publisher_construct (PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, service, host); -#line 1827 "TumblrPublishing.c" -} - - -static SpitPublishingService* -publishing_tumblr_tumblr_publisher_real_get_service (SpitPublishingPublisher* base) -{ - PublishingTumblrTumblrPublisher * self; - SpitPublishingService* result = NULL; - SpitPublishingService* _tmp0_; - SpitPublishingService* _tmp1_; -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher); -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->service; -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = _tmp1_; -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 1848 "TumblrPublishing.c" -} - - -SpitPublishingPluginHost* -publishing_tumblr_tumblr_publisher_get_host (PublishingTumblrTumblrPublisher* self) -{ - SpitPublishingPluginHost* result = NULL; - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), NULL); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->host; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = _tmp1_; -#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 1868 "TumblrPublishing.c" -} - - -static gboolean -publishing_tumblr_tumblr_publisher_real_is_running (SpitPublishingPublisher* base) -{ - PublishingTumblrTumblrPublisher * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher); -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->running; -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = _tmp0_; -#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 1886 "TumblrPublishing.c" -} - - -gint -publishing_tumblr_tumblr_publisher_get_persistent_default_size (PublishingTumblrTumblrPublisher* self) -{ - gint result = 0; - SpitPublishingPluginHost* _tmp0_; -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), 0); -#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->host; -#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", 1); -#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 1903 "TumblrPublishing.c" -} - - -void -publishing_tumblr_tumblr_publisher_set_persistent_default_size (PublishingTumblrTumblrPublisher* self, - gint size) -{ - SpitPublishingPluginHost* _tmp0_; -#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->host; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", size); -#line 1918 "TumblrPublishing.c" -} - - -gint -publishing_tumblr_tumblr_publisher_get_persistent_default_blog (PublishingTumblrTumblrPublisher* self) -{ - gint result = 0; - SpitPublishingPluginHost* _tmp0_; -#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), 0); -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->host; -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_blog", 0); -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 1935 "TumblrPublishing.c" -} - - -void -publishing_tumblr_tumblr_publisher_set_persistent_default_blog (PublishingTumblrTumblrPublisher* self, - gint blog) -{ - SpitPublishingPluginHost* _tmp0_; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->host; -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_blog", blog); -#line 1950 "TumblrPublishing.c" -} - - -static gpointer -_g_variant_ref0 (gpointer self) -{ -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self ? g_variant_ref (self) : NULL; -#line 1959 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_on_authenticator_authenticated (PublishingTumblrTumblrPublisher* self) -{ - GHashTable* params = NULL; - SpitPublishingAuthenticator* _tmp0_; - GHashTable* _tmp1_; - GVariant* consumer_key = NULL; - GVariant* consumer_secret = NULL; - GVariant* auth_token = NULL; - GVariant* auth_token_secret = NULL; - GHashTable* _tmp2_; - gconstpointer _tmp3_ = NULL; - GVariant* _tmp4_; - GHashTable* _tmp5_; - gconstpointer _tmp6_ = NULL; - GVariant* _tmp7_; - PublishingRESTSupportOAuth1Session* _tmp8_; - GVariant* _tmp9_; - const gchar* _tmp10_; - GVariant* _tmp11_; - const gchar* _tmp12_; - GHashTable* _tmp13_; - gconstpointer _tmp14_ = NULL; - GVariant* _tmp15_; - GHashTable* _tmp16_; - gconstpointer _tmp17_ = NULL; - GVariant* _tmp18_; - PublishingRESTSupportOAuth1Session* _tmp19_; - GVariant* _tmp20_; - const gchar* _tmp21_; - GVariant* _tmp22_; - const gchar* _tmp23_; -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 2001 "TumblrPublishing.c" - } -#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:174: EVENT: a fully authenticated session has be" \ -"come available"); -#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = spit_publishing_authenticator_get_authentication_parameter (_tmp0_); -#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - params = _tmp1_; -#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - consumer_key = NULL; -#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - consumer_secret = NULL; -#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - auth_token = NULL; -#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - auth_token_secret = NULL; -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = params; -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_hash_table_lookup_extended (_tmp2_, "ConsumerKey", NULL, &_tmp3_); -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_variant_unref0 (consumer_key); -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = _g_variant_ref0 (_tmp3_); -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - consumer_key = _tmp4_; -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = params; -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_hash_table_lookup_extended (_tmp5_, "ConsumerSecret", NULL, &_tmp6_); -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_variant_unref0 (consumer_secret); -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = _g_variant_ref0 (_tmp6_); -#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - consumer_secret = _tmp7_; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = self->priv->session; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9_ = consumer_key; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = g_variant_get_string (_tmp9_, NULL); -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp11_ = consumer_secret; -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp12_ = g_variant_get_string (_tmp11_, NULL); -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_rest_support_oauth1_session_set_api_credentials (_tmp8_, _tmp10_, _tmp12_); -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp13_ = params; -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_hash_table_lookup_extended (_tmp13_, "AuthToken", NULL, &_tmp14_); -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_variant_unref0 (auth_token); -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp15_ = _g_variant_ref0 (_tmp14_); -#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - auth_token = _tmp15_; -#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp16_ = params; -#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_hash_table_lookup_extended (_tmp16_, "AuthTokenSecret", NULL, &_tmp17_); -#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_variant_unref0 (auth_token_secret); -#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp18_ = _g_variant_ref0 (_tmp17_); -#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - auth_token_secret = _tmp18_; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp19_ = self->priv->session; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp20_ = auth_token; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp21_ = g_variant_get_string (_tmp20_, NULL); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp22_ = auth_token_secret; -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp23_ = g_variant_get_string (_tmp22_, NULL); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_rest_support_oauth1_session_set_access_phase_credentials (_tmp19_, _tmp21_, _tmp23_, ""); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_do_get_blogs (self); -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_variant_unref0 (auth_token_secret); -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_variant_unref0 (auth_token); -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_variant_unref0 (consumer_secret); -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_variant_unref0 (consumer_key); -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_hash_table_unref0 (params); -#line 2095 "TumblrPublishing.c" -} - - -static void -_publishing_tumblr_tumblr_publisher_on_info_request_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, - gpointer self) -{ -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_on_info_request_txn_completed ((PublishingTumblrTumblrPublisher*) self, _sender); -#line 2105 "TumblrPublishing.c" -} - - -static void -_publishing_tumblr_tumblr_publisher_on_info_request_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, - GError* err, - gpointer self) -{ -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_on_info_request_txn_error ((PublishingTumblrTumblrPublisher*) self, _sender, err); -#line 2116 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_do_get_blogs (PublishingTumblrTumblrPublisher* self) -{ - PublishingTumblrTumblrPublisherUserInfoFetchTransaction* txn = NULL; - PublishingRESTSupportOAuth1Session* _tmp0_; - PublishingTumblrTumblrPublisherUserInfoFetchTransaction* _tmp1_; - GError * _inner_error_ = NULL; -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); -#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:196: ACTION: obtain all blogs of the tumblr user"); -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->session; -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_new (_tmp0_); -#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - txn = _tmp1_; -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "completed", (GCallback) _publishing_tumblr_tumblr_publisher_on_info_request_txn_completed_publishing_rest_support_transaction_completed, self, 0); -#line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "network-error", (GCallback) _publishing_tumblr_tumblr_publisher_on_info_request_txn_error_publishing_rest_support_transaction_network_error, self, 0); -#line 2141 "TumblrPublishing.c" - { -#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 2149 "TumblrPublishing.c" - goto __catch20_spit_publishing_publishing_error; - } -#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_clear_error (&_inner_error_); -#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 2160 "TumblrPublishing.c" - } - } - goto __finally20; - __catch20_spit_publishing_publishing_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp2_; - GError* _tmp3_; -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - err = _inner_error_; -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _inner_error_ = NULL; -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = self->priv->host; -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = err; -#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp2_, _tmp3_); -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_error_free0 (err); -#line 2181 "TumblrPublishing.c" - } - __finally20: -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_clear_error (&_inner_error_); -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 2194 "TumblrPublishing.c" - } -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _publishing_rest_support_transaction_unref0 (txn); -#line 2198 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_on_info_request_txn_completed (PublishingTumblrTumblrPublisher* self, - PublishingRESTSupportTransaction* txn) -{ - guint _tmp0_; - guint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_info_request_txn_completed_publishing_rest_support_transaction_completed, self); -#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_info_request_txn_error_publishing_rest_support_transaction_network_error, self); -#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 2228 "TumblrPublishing.c" - } -#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = publishing_rest_support_transaction_get_response (txn); -#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = _tmp2_; -#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:218: EVENT: user info request transaction comple" \ -"ted; response = '%s'", _tmp3_); -#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp3_); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = publishing_rest_support_transaction_get_response (txn); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = _tmp4_; -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_do_parse_token_info_from_user_request (self, _tmp5_); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp5_); -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_do_show_publishing_options_pane (self); -#line 2248 "TumblrPublishing.c" -} - - -static gpointer -_json_object_ref0 (gpointer self) -{ -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self ? json_object_ref (self) : NULL; -#line 2257 "TumblrPublishing.c" -} - - -static gchar* -string_replace (const gchar* self, - const gchar* old, - const gchar* replacement) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 2280 "TumblrPublishing.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 2284 "TumblrPublishing.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 2290 "TumblrPublishing.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 2294 "TumblrPublishing.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 2298 "TumblrPublishing.c" - gchar* _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = g_strdup (self); -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2306 "TumblrPublishing.c" - } - { - GRegex* regex = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GRegex* _tmp5_; - GRegex* _tmp6_; - gchar* _tmp7_ = NULL; - GRegex* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_regex_escape_string (old, -1); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp5_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp4_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - regex = _tmp6_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 2334 "TumblrPublishing.c" - goto __catch22_g_regex_error; - } -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 2343 "TumblrPublishing.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = regex; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp9_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 2357 "TumblrPublishing.c" - goto __catch22_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 2368 "TumblrPublishing.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = _tmp7_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = NULL; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp10_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp7_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2382 "TumblrPublishing.c" - } - goto __finally22; - __catch22_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 2396 "TumblrPublishing.c" - } - __finally22: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 2407 "TumblrPublishing.c" - } -} - - -static void -_vala_array_add34 (PublishingTumblrBlogEntry** * array, - int* length, - int* size, - PublishingTumblrBlogEntry* value) -{ -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if ((*length) == (*size)) { -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - *array = g_renew (PublishingTumblrBlogEntry*, *array, (*size) + 1); -#line 2424 "TumblrPublishing.c" - } -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*array)[(*length)++] = value; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (*array)[*length] = NULL; -#line 2430 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_do_parse_token_info_from_user_request (PublishingTumblrTumblrPublisher* self, - const gchar* response) -{ - GError * _inner_error_ = NULL; -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (response != NULL); -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:226: ACTION: parsing info request response '%s' " \ -"into list of available blogs", response); -#line 2445 "TumblrPublishing.c" - { - JsonParser* parser = NULL; - JsonParser* _tmp0_; - JsonObject* root_object = NULL; - JsonNode* _tmp1_; - JsonObject* _tmp2_; - JsonObject* _tmp3_; - JsonObject* _tmp4_; - JsonObject* _tmp5_; - JsonObject* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_; - const gchar* _tmp9_; - JsonObject* _tmp10_; - JsonObject* _tmp11_; - JsonObject* _tmp12_; - JsonArray* _tmp13_; - GList* _tmp14_; -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = json_parser_new (); -#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - parser = _tmp0_; -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - json_parser_load_from_data (parser, response, (gssize) -1, &_inner_error_); -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (parser); -#line 2474 "TumblrPublishing.c" - goto __catch21_g_error; - } -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = json_parser_get_root (parser); -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = json_node_get_object (_tmp1_); -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = _json_object_ref0 (_tmp2_); -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - root_object = _tmp3_; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = root_object; -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = json_object_get_object_member (_tmp4_, "response"); -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = json_object_get_object_member (_tmp5_, "user"); -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = json_object_get_string_member (_tmp6_, "name"); -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = g_strdup (_tmp7_); -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (self->priv->username); -#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->username = _tmp8_; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9_ = self->priv->username; -#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:232: Got user name: %s", _tmp9_); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = root_object; -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp11_ = json_object_get_object_member (_tmp10_, "response"); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp12_ = json_object_get_object_member (_tmp11_, "user"); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp13_ = json_object_get_array_member (_tmp12_, "blogs"); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp14_ = json_array_get_elements (_tmp13_); -#line 2513 "TumblrPublishing.c" - { - GList* blognode_collection = NULL; - GList* blognode_it = NULL; -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - blognode_collection = _tmp14_; -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - for (blognode_it = blognode_collection; blognode_it != NULL; blognode_it = blognode_it->next) { -#line 2521 "TumblrPublishing.c" - JsonNode* blognode = NULL; -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - blognode = (JsonNode*) blognode_it->data; -#line 2525 "TumblrPublishing.c" - { - JsonObject* blog = NULL; - JsonNode* _tmp15_; - JsonObject* _tmp16_; - JsonObject* _tmp17_; - gchar* name = NULL; - JsonObject* _tmp18_; - const gchar* _tmp19_; - gchar* _tmp20_; - gchar* url = NULL; - JsonObject* _tmp21_; - const gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - const gchar* _tmp27_; - const gchar* _tmp28_; - PublishingTumblrBlogEntry** _tmp29_; - gint _tmp29__length1; - const gchar* _tmp30_; - const gchar* _tmp31_; - PublishingTumblrBlogEntry* _tmp32_; -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp15_ = blognode; -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp16_ = json_node_get_object (_tmp15_); -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp17_ = _json_object_ref0 (_tmp16_); -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - blog = _tmp17_; -#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp18_ = blog; -#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp19_ = json_object_get_string_member (_tmp18_, "name"); -#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp20_ = g_strdup (_tmp19_); -#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - name = _tmp20_; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp21_ = blog; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp22_ = json_object_get_string_member (_tmp21_, "url"); -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp23_ = string_replace (_tmp22_, "http://", ""); -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp24_ = _tmp23_; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp25_ = string_replace (_tmp24_, "/", ""); -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp26_ = _tmp25_; -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp24_); -#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - url = _tmp26_; -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp27_ = name; -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp28_ = url; -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:237: Got blog name: %s and url: %s", _tmp27_, _tmp28_); -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp29_ = self->priv->blogs; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp29__length1 = self->priv->blogs_length1; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp30_ = name; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp31_ = url; -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp32_ = publishing_tumblr_blog_entry_new (_tmp30_, _tmp31_); -#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _vala_array_add34 (&self->priv->blogs, &self->priv->blogs_length1, &self->priv->_blogs_size_, _tmp32_); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (url); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (name); -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _json_object_unref0 (blog); -#line 2605 "TumblrPublishing.c" - } - } -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_list_free0 (blognode_collection); -#line 2610 "TumblrPublishing.c" - } -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _json_object_unref0 (root_object); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (parser); -#line 2616 "TumblrPublishing.c" - } - goto __finally21; - __catch21_g_error: - { - GError* err = NULL; - SpitPublishingPluginHost* _tmp33_; - GError* _tmp34_; -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - err = _inner_error_; -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _inner_error_ = NULL; -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp33_ = self->priv->host; -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp34_ = err; -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp33_, _tmp34_); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_error_free0 (err); -#line 2636 "TumblrPublishing.c" - } - __finally21: -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_clear_error (&_inner_error_); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 2647 "TumblrPublishing.c" - } -} - - -static void -publishing_tumblr_tumblr_publisher_on_info_request_txn_error (PublishingTumblrTumblrPublisher* self, - PublishingRESTSupportTransaction* txn, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - PublishingRESTSupportOAuth1Session* _tmp2_; - SpitPublishingPluginHost* _tmp3_; -#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); -#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_info_request_txn_completed_publishing_rest_support_transaction_completed, self); -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_info_request_txn_error_publishing_rest_support_transaction_network_error, self); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 2677 "TumblrPublishing.c" - } -#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = self->priv->session; -#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_rest_support_oauth1_session_deauthenticate (_tmp2_); -#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:255: EVENT: user info request transaction caused" \ -" a network error"); -#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = self->priv->host; -#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp3_, err); -#line 2689 "TumblrPublishing.c" -} - - -static void -_publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, - gpointer self) -{ -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish ((PublishingTumblrTumblrPublisher*) self); -#line 2699 "TumblrPublishing.c" -} - - -static void -_publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, - gpointer self) -{ -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout ((PublishingTumblrTumblrPublisher*) self); -#line 2709 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_do_show_publishing_options_pane (PublishingTumblrTumblrPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - PublishingTumblrTumblrPublisherPublishingOptionsPane* publishing_options_pane = NULL; - SpitPublishingPluginHost* _tmp1_; - PublishingTumblrSizeEntry** _tmp2_; - gint _tmp2__length1; - PublishingTumblrBlogEntry** _tmp3_; - gint _tmp3__length1; - const gchar* _tmp4_; - PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp5_; - SpitPublishingPluginHost* _tmp6_; -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); -#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:260: ACTION: displaying publishing options pane"); -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->host; -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = self->priv->host; -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = self->priv->sizes; -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2__length1 = self->priv->sizes_length1; -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = self->priv->blogs; -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3__length1 = self->priv->blogs_length1; -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = self->priv->username; -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = publishing_tumblr_tumblr_publisher_publishing_options_pane_new (self, spit_publishing_plugin_host_get_publishable_media_type (_tmp1_), _tmp2_, _tmp2__length1, _tmp3_, _tmp3__length1, _tmp4_); -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_options_pane = _tmp5_; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (publishing_options_pane, "publish", (GCallback) _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish, self, 0); -#line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (publishing_options_pane, "logout", (GCallback) _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout, self, 0); -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = self->priv->host; -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (publishing_options_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (publishing_options_pane); -#line 2760 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish (PublishingTumblrTumblrPublisher* self) -{ - PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp0_; -#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->publishing_options_pane; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (_tmp0_ != NULL) { -#line 2774 "TumblrPublishing.c" - PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp1_; - guint _tmp2_; - PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp3_; - guint _tmp4_; -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = self->priv->publishing_options_pane; -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("publish", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp2_, NULL, FALSE); -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish, self); -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = self->priv->publishing_options_pane; -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("logout", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp4_, NULL, FALSE); -#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout, self); -#line 2791 "TumblrPublishing.c" - } -#line 277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 2797 "TumblrPublishing.c" - } -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:280: EVENT: user clicked the 'Publish' button in" \ -" the publishing options pane"); -#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_do_publish (self); -#line 2803 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout (PublishingTumblrTumblrPublisher* self) -{ - PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp0_; -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->publishing_options_pane; -#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (_tmp0_ != NULL) { -#line 2817 "TumblrPublishing.c" - PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp1_; - guint _tmp2_; - PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp3_; - guint _tmp4_; -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = self->priv->publishing_options_pane; -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("publish", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp2_, NULL, FALSE); -#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish, self); -#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = self->priv->publishing_options_pane; -#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("logout", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp4_, NULL, FALSE); -#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout, self); -#line 2834 "TumblrPublishing.c" - } -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 2840 "TumblrPublishing.c" - } -#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:293: EVENT: user clicked the 'Logout' button in " \ -"the publishing options pane"); -#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_do_logout (self); -#line 2846 "TumblrPublishing.c" -} - - -gint -publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func (SpitPublishingPublishable* a, - SpitPublishingPublishable* b) -{ - gint result = 0; - GDateTime* _tmp0_; - GDateTime* _tmp1_; - GDateTime* _tmp2_; - GDateTime* _tmp3_; - gint _tmp4_; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (a), 0); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (b), 0); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = spit_publishing_publishable_get_exposure_date_time (a); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = _tmp0_; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = spit_publishing_publishable_get_exposure_date_time (b); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = _tmp2_; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = g_date_time_compare (_tmp1_, _tmp3_); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_date_time_unref0 (_tmp3_); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_date_time_unref0 (_tmp1_); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = _tmp4_; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 2882 "TumblrPublishing.c" -} - - -static gint -_publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func ((SpitPublishingPublishable*) a, (SpitPublishingPublishable*) b); -#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 2895 "TumblrPublishing.c" -} - - -static void -_publishing_tumblr_tumblr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self) -{ -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_on_upload_complete ((PublishingTumblrTumblrPublisher*) self, _sender, num_photos_published); -#line 2906 "TumblrPublishing.c" -} - - -static void -_publishing_tumblr_tumblr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self) -{ -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_on_upload_error ((PublishingTumblrTumblrPublisher*) self, _sender, err); -#line 2917 "TumblrPublishing.c" -} - - -static void -_publishing_tumblr_tumblr_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_on_upload_status_updated ((PublishingTumblrTumblrPublisher*) self, file_number, fraction_complete); -#line 2928 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_do_publish (PublishingTumblrTumblrPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - PublishingTumblrSizeEntry** _tmp2_; - gint _tmp2__length1; - PublishingTumblrSizeEntry* _tmp3_; - gint _tmp4_; - void* _tmp5_; - GDestroyNotify _tmp6_; - SpitPublishingProgressCallback _tmp7_; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp8_; - gint _tmp9_; - SpitPublishingPublishable** _tmp10_; - gint publishables_length1; - gint _publishables_size_; - GeeArrayList* sorted_list = NULL; - GeeArrayList* _tmp11_; - SpitPublishingPublishable** _tmp12_; - gint _tmp12__length1; - GeeArrayList* _tmp16_; - gchar* blog_url = NULL; - PublishingTumblrBlogEntry** _tmp17_; - gint _tmp17__length1; - PublishingTumblrBlogEntry* _tmp18_; - const gchar* _tmp19_; - gchar* _tmp20_; - PublishingTumblrTumblrPublisherUploader* uploader = NULL; - PublishingRESTSupportOAuth1Session* _tmp21_; - GeeArrayList* _tmp22_; - gint _tmp23_; - gpointer* _tmp24_; - SpitPublishingPublishable** _tmp25_; - gint _tmp25__length1; - const gchar* _tmp26_; - PublishingTumblrTumblrPublisherUploader* _tmp27_; - PublishingTumblrTumblrPublisherUploader* _tmp28_; - PublishingTumblrTumblrPublisherUploader* _tmp29_; - PublishingTumblrTumblrPublisherUploader* _tmp30_; - PublishingTumblrTumblrPublisherUploader* _tmp31_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:304: ACTION: uploading media items to remote ser" \ -"ver."); -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->host; -#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = self->priv->host; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = self->priv->sizes; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2__length1 = self->priv->sizes_length1; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = _tmp2_[publishing_tumblr_tumblr_publisher_get_persistent_default_size (self)]; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = _tmp3_->size; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = spit_publishing_plugin_host_serialize_publishables (_tmp1_, _tmp4_, FALSE, &_tmp5_, &_tmp6_); -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->progress_reporter = NULL; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->progress_reporter = _tmp7_; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->progress_reporter_target = _tmp5_; -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp6_; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 3012 "TumblrPublishing.c" - } -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = self->priv->host; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = spit_publishing_plugin_host_get_publishables (_tmp8_, &_tmp9_); -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishables = _tmp10_; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishables_length1 = _tmp9_; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _publishables_size_ = publishables_length1; -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp11_ = gee_array_list_new (SPIT_PUBLISHING_TYPE_PUBLISHABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - sorted_list = _tmp11_; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp12_ = publishables; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp12__length1 = publishables_length1; -#line 3032 "TumblrPublishing.c" - { - SpitPublishingPublishable** p_collection = NULL; - gint p_collection_length1 = 0; - gint _p_collection_size_ = 0; - gint p_it = 0; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - p_collection = _tmp12_; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - p_collection_length1 = _tmp12__length1; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - for (p_it = 0; p_it < _tmp12__length1; p_it = p_it + 1) { -#line 3044 "TumblrPublishing.c" - SpitPublishingPublishable* _tmp13_; - SpitPublishingPublishable* p = NULL; -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp13_ = _g_object_ref0 (p_collection[p_it]); -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - p = _tmp13_; -#line 3051 "TumblrPublishing.c" - { - GeeArrayList* _tmp14_; - SpitPublishingPublishable* _tmp15_; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:322: ACTION: add publishable"); -#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp14_ = sorted_list; -#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp15_ = p; -#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_); -#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (p); -#line 3065 "TumblrPublishing.c" - } - } - } -#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp16_ = sorted_list; -#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gee_list_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_LIST, GeeList), _publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func_gcompare_data_func, NULL, NULL); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp17_ = self->priv->blogs; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp17__length1 = self->priv->blogs_length1; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp18_ = _tmp17_[publishing_tumblr_tumblr_publisher_get_persistent_default_blog (self)]; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp19_ = _tmp18_->url; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp20_ = g_strdup (_tmp19_); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - blog_url = _tmp20_; -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp21_ = self->priv->session; -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp22_ = sorted_list; -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp24_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp23_); -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp25_ = _tmp24_; -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp25__length1 = _tmp23_; -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp26_ = blog_url; -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp27_ = publishing_tumblr_tumblr_publisher_uploader_new (_tmp21_, _tmp25_, _tmp23_, _tmp26_); -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp28_ = _tmp27_; -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp25_ = (_vala_array_free (_tmp25_, _tmp25__length1, (GDestroyNotify) g_object_unref), NULL); -#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - uploader = _tmp28_; -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp29_ = uploader; -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_tumblr_tumblr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0); -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp30_ = uploader; -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_tumblr_tumblr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self, 0); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp31_ = uploader; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_tumblr_tumblr_publisher_on_upload_status_updated_spit_publishing_progress_callback, self); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _publishing_rest_support_batch_uploader_unref0 (uploader); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (blog_url); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (sorted_list); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 3125 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_do_show_success_pane (PublishingTumblrTumblrPublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:335: ACTION: showing success pane."); -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->host; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = self->priv->host; -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_plugin_host_install_success_pane (_tmp1_); -#line 3146 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_on_upload_status_updated (PublishingTumblrTumblrPublisher* self, - gint file_number, - gdouble completed_fraction) -{ - SpitPublishingProgressCallback _tmp0_; - void* _tmp0__target; - SpitPublishingProgressCallback _tmp1_; - void* _tmp1__target; -#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); -#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 3165 "TumblrPublishing.c" - } -#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:346: EVENT: uploader reports upload %.2f percent" \ -" complete.", 100.0 * completed_fraction); -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->progress_reporter; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = self->priv->progress_reporter; -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ (file_number, completed_fraction, _tmp1__target); -#line 3181 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_on_upload_complete (PublishingTumblrTumblrPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published) -{ - guint _tmp0_; - guint _tmp1_; -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); -#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 3200 "TumblrPublishing.c" - } -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:358: EVENT: uploader reports upload complete; %d" \ -" items published.", num_published); -#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_do_show_success_pane (self); -#line 3214 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_on_upload_error (PublishingTumblrTumblrPublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err) -{ - const gchar* _tmp0_; - guint _tmp1_; - guint _tmp2_; - SpitPublishingPluginHost* _tmp3_; -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 369 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 3235 "TumblrPublishing.c" - } -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = err->message; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:371: EVENT: uploader reports upload error = '%s'" \ -".", _tmp0_); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp2_, NULL, FALSE); -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = self->priv->host; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp3_, err); -#line 3253 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_do_logout (PublishingTumblrTumblrPublisher* self) -{ - SpitPublishingAuthenticator* _tmp0_; -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); -#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:381: ACTION: logging user out, deauthenticating " \ -"session, and erasing stored credentials"); -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (spit_publishing_authenticator_can_logout (_tmp0_)) { -#line 3269 "TumblrPublishing.c" - SpitPublishingAuthenticator* _tmp1_; -#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = self->priv->authenticator; -#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_authenticator_logout (_tmp1_); -#line 3275 "TumblrPublishing.c" - } -#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->running = FALSE; -#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_attempt_start (self); -#line 3281 "TumblrPublishing.c" -} - - -void -publishing_tumblr_tumblr_publisher_attempt_start (PublishingTumblrTumblrPublisher* self) -{ - SpitPublishingAuthenticator* _tmp0_; -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 3295 "TumblrPublishing.c" - } -#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:396: TumblrPublisher: starting interaction."); -#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->running = TRUE; -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_authenticator_authenticate (_tmp0_); -#line 3305 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_real_start (SpitPublishingPublisher* base) -{ - PublishingTumblrTumblrPublisher * self; - gboolean _tmp0_; -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher); -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 3320 "TumblrPublishing.c" - } -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->was_started; -#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (_tmp0_) { -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_error ("TumblrPublishing.vala:407: %s", _ ("TumblrPublisher: start( ): can’t start; this publisher is not restarta" \ -"ble.")); -#line 3328 "TumblrPublishing.c" - } -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:409: TumblrPublisher: starting interaction."); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_attempt_start (self); -#line 3334 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_real_stop (SpitPublishingPublisher* base) -{ - PublishingTumblrTumblrPublisher * self; -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher); -#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:415: TumblrPublisher: stop( ) invoked."); -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->running = FALSE; -#line 3348 "TumblrPublishing.c" -} - - -static gpointer -_publishing_tumblr_size_entry_ref0 (gpointer self) -{ -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self ? publishing_tumblr_size_entry_ref (self) : NULL; -#line 3357 "TumblrPublishing.c" -} - - -static PublishingTumblrSizeEntry** -_vala_array_dup9 (PublishingTumblrSizeEntry** self, - int length) -{ - PublishingTumblrSizeEntry** result; - int i; -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = g_new0 (PublishingTumblrSizeEntry*, length + 1); -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - for (i = 0; i < length; i++) { -#line 3371 "TumblrPublishing.c" - PublishingTumblrSizeEntry* _tmp0_; -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = _publishing_tumblr_size_entry_ref0 (self[i]); -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result[i] = _tmp0_; -#line 3377 "TumblrPublishing.c" - } -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 3381 "TumblrPublishing.c" -} - - -static gpointer -_publishing_tumblr_blog_entry_ref0 (gpointer self) -{ -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self ? publishing_tumblr_blog_entry_ref (self) : NULL; -#line 3390 "TumblrPublishing.c" -} - - -static PublishingTumblrBlogEntry** -_vala_array_dup10 (PublishingTumblrBlogEntry** self, - int length) -{ - PublishingTumblrBlogEntry** result; - int i; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = g_new0 (PublishingTumblrBlogEntry*, length + 1); -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - for (i = 0; i < length; i++) { -#line 3404 "TumblrPublishing.c" - PublishingTumblrBlogEntry* _tmp0_; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = _publishing_tumblr_blog_entry_ref0 (self[i]); -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result[i] = _tmp0_; -#line 3410 "TumblrPublishing.c" - } -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 3414 "TumblrPublishing.c" -} - - -static void -_publishing_tumblr_tumblr_publisher_publishing_options_pane_on_blog_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_publishing_options_pane_on_blog_changed ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); -#line 3424 "TumblrPublishing.c" -} - - -static void -_publishing_tumblr_tumblr_publisher_publishing_options_pane_on_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_publishing_options_pane_on_size_changed ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); -#line 3434 "TumblrPublishing.c" -} - - -static void -_publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); -#line 3444 "TumblrPublishing.c" -} - - -static void -_publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); -#line 3454 "TumblrPublishing.c" -} - - -PublishingTumblrTumblrPublisherPublishingOptionsPane* -publishing_tumblr_tumblr_publisher_publishing_options_pane_construct (GType object_type, - PublishingTumblrTumblrPublisher* publisher, - SpitPublishingPublisherMediaType media_type, - PublishingTumblrSizeEntry** sizes, - int sizes_length1, - PublishingTumblrBlogEntry** blogs, - int blogs_length1, - const gchar* username) -{ - PublishingTumblrTumblrPublisherPublishingOptionsPane * self = NULL; - GtkBox* _tmp0_; - gchar* _tmp1_; - PublishingTumblrTumblrPublisher* _tmp2_; - PublishingTumblrSizeEntry** _tmp3_; - gint _tmp3__length1; - PublishingTumblrBlogEntry** _tmp4_; - gint _tmp4__length1; - GError * _inner_error_ = NULL; -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (publisher), NULL); -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (username != NULL, NULL); -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = (PublishingTumblrTumblrPublisherPublishingOptionsPane*) g_object_new (object_type, NULL); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_object_ref_sink (_tmp0_); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->pane_widget = _tmp0_; -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = g_strdup (username); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (self->priv->username); -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->username = _tmp1_; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = _g_object_ref0 (publisher); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->publisher); -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->publisher = _tmp2_; -#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->media_type = media_type; -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = (sizes != NULL) ? _vala_array_dup9 (sizes, sizes_length1) : ((gpointer) sizes); -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3__length1 = sizes_length1; -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_tumblr_size_entry_unref), NULL); -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->sizes = _tmp3_; -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->sizes_length1 = _tmp3__length1; -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->_sizes_size_ = self->priv->sizes_length1; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = (blogs != NULL) ? _vala_array_dup10 (blogs, blogs_length1) : ((gpointer) blogs); -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4__length1 = blogs_length1; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blogs = (_vala_array_free (self->priv->blogs, self->priv->blogs_length1, (GDestroyNotify) publishing_tumblr_blog_entry_unref), NULL); -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blogs = _tmp4_; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blogs_length1 = _tmp4__length1; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->_blogs_size_ = self->priv->blogs_length1; -#line 3529 "TumblrPublishing.c" - { - GtkBuilder* _tmp5_; - GtkBuilder* _tmp6_; - GtkBuilder* _tmp7_; - GtkBuilder* _tmp8_; - GObject* _tmp9_; - GtkBox* _tmp10_; - GtkBuilder* _tmp11_; - GObject* _tmp12_; - GtkLabel* _tmp13_; - GtkBuilder* _tmp14_; - GObject* _tmp15_; - GtkButton* _tmp16_; - GtkBuilder* _tmp17_; - GObject* _tmp18_; - GtkButton* _tmp19_; - GtkBuilder* _tmp20_; - GObject* _tmp21_; - GtkComboBoxText* _tmp22_; - GtkBuilder* _tmp23_; - GObject* _tmp24_; - GtkLabel* _tmp25_; - GtkBuilder* _tmp26_; - GObject* _tmp27_; - GtkComboBoxText* _tmp28_; - GtkBuilder* _tmp29_; - GObject* _tmp30_; - GtkLabel* _tmp31_; - gchar* upload_label_text = NULL; - const gchar* _tmp32_; - gchar* _tmp33_; - GtkLabel* _tmp34_; - const gchar* _tmp35_; - GtkComboBoxText* _tmp36_; - GtkButton* _tmp40_; - GtkButton* _tmp41_; -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = gtk_builder_new (); -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->builder = _tmp5_; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = self->priv->builder; -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gtk_builder_add_from_resource (_tmp6_, PLUGIN_RESOURCE_PATH "/tumblr_publishing_options_pane.ui", &_inner_error_); -#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3578 "TumblrPublishing.c" - goto __catch23_g_error; - } -#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = self->priv->builder; -#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gtk_builder_connect_signals (_tmp7_, NULL); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = self->priv->builder; -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9_ = gtk_builder_get_object (_tmp8_, "tumblr_pane"); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_box_get_type (), GtkBox)); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->pane_widget = _tmp10_; -#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp11_ = self->priv->builder; -#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp12_ = gtk_builder_get_object (_tmp11_, "upload_info_label"); -#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_label_get_type (), GtkLabel)); -#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->upload_info_label); -#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->upload_info_label = _tmp13_; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp14_ = self->priv->builder; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp15_ = gtk_builder_get_object (_tmp14_, "logout_button"); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp16_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_button_get_type (), GtkButton)); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->logout_button = _tmp16_; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp17_ = self->priv->builder; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp18_ = gtk_builder_get_object (_tmp17_, "publish_button"); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp19_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_button_get_type (), GtkButton)); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->publish_button = _tmp19_; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp20_ = self->priv->builder; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp21_ = gtk_builder_get_object (_tmp20_, "size_combo"); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->size_combo); -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->size_combo = _tmp22_; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp23_ = self->priv->builder; -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp24_ = gtk_builder_get_object (_tmp23_, "size_label"); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp25_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_label_get_type (), GtkLabel)); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->size_label); -#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->size_label = _tmp25_; -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp26_ = self->priv->builder; -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp27_ = gtk_builder_get_object (_tmp26_, "blog_combo"); -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp28_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_combo_box_text_get_type (), GtkComboBoxText)); -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->blog_combo); -#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blog_combo = _tmp28_; -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp29_ = self->priv->builder; -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp30_ = gtk_builder_get_object (_tmp29_, "blog_label"); -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp31_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_label_get_type (), GtkLabel)); -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->blog_label); -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blog_label = _tmp31_; -#line 480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp32_ = self->priv->username; -#line 480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp33_ = g_strdup_printf (_ ("You are logged into Tumblr as %s.\n\n"), _tmp32_); -#line 480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - upload_label_text = _tmp33_; -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp34_ = self->priv->upload_info_label; -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp35_ = upload_label_text; -#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gtk_label_set_label (_tmp34_, _tmp35_); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_blog_combo (self); -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp36_ = self->priv->blog_combo; -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_blog_changed_gtk_combo_box_changed, self, 0); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (media_type != SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 3685 "TumblrPublishing.c" - GtkComboBoxText* _tmp37_; -#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_size_combo (self); -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp37_ = self->priv->size_combo; -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_size_changed_gtk_combo_box_changed, self, 0); -#line 3693 "TumblrPublishing.c" - } else { - GtkComboBoxText* _tmp38_; - GtkLabel* _tmp39_; -#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp38_ = self->priv->size_combo; -#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp39_ = self->priv->size_label; -#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 3705 "TumblrPublishing.c" - } -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp40_ = self->priv->logout_button; -#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (_tmp40_, "clicked", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp41_ = self->priv->publish_button; -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (_tmp41_, "clicked", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0); -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (upload_label_text); -#line 3717 "TumblrPublishing.c" - } - goto __finally23; - __catch23_g_error: - { - GError* e = NULL; - GError* _tmp42_; - const gchar* _tmp43_; -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - e = _inner_error_; -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _inner_error_ = NULL; -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp42_ = e; -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp43_ = _tmp42_->message; -#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_warning (_ ("Could not load UI: %s"), _tmp43_); -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_error_free0 (e); -#line 3737 "TumblrPublishing.c" - } - __finally23: -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_clear_error (&_inner_error_); -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return NULL; -#line 3748 "TumblrPublishing.c" - } -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self; -#line 3752 "TumblrPublishing.c" -} - - -PublishingTumblrTumblrPublisherPublishingOptionsPane* -publishing_tumblr_tumblr_publisher_publishing_options_pane_new (PublishingTumblrTumblrPublisher* publisher, - SpitPublishingPublisherMediaType media_type, - PublishingTumblrSizeEntry** sizes, - int sizes_length1, - PublishingTumblrBlogEntry** blogs, - int blogs_length1, - const gchar* username) -{ -#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return publishing_tumblr_tumblr_publisher_publishing_options_pane_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, publisher, media_type, sizes, sizes_length1, blogs, blogs_length1, username); -#line 3767 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) -{ -#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_emit (self, publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 3778 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) -{ -#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_emit (self, publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0); -#line 3789 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_blog_combo (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) -{ - PublishingTumblrBlogEntry** _tmp0_; - gint _tmp0__length1; -#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->blogs; -#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0__length1 = self->priv->blogs_length1; -#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (_tmp0_ != NULL) { -#line 3806 "TumblrPublishing.c" - PublishingTumblrBlogEntry** _tmp1_; - gint _tmp1__length1; - GtkComboBoxText* _tmp6_; - PublishingTumblrTumblrPublisher* _tmp7_; -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = self->priv->blogs; -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1__length1 = self->priv->blogs_length1; -#line 3815 "TumblrPublishing.c" - { - PublishingTumblrBlogEntry** b_collection = NULL; - gint b_collection_length1 = 0; - gint _b_collection_size_ = 0; - gint b_it = 0; -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - b_collection = _tmp1_; -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - b_collection_length1 = _tmp1__length1; -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - for (b_it = 0; b_it < _tmp1__length1; b_it = b_it + 1) { -#line 3827 "TumblrPublishing.c" - PublishingTumblrBlogEntry* _tmp2_; - PublishingTumblrBlogEntry* b = NULL; -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = _publishing_tumblr_blog_entry_ref0 (b_collection[b_it]); -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - b = _tmp2_; -#line 3834 "TumblrPublishing.c" - { - GtkComboBoxText* _tmp3_; - PublishingTumblrBlogEntry* _tmp4_; - const gchar* _tmp5_; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = self->priv->blog_combo; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = b; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = _tmp4_->blog; -#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gtk_combo_box_text_append_text (_tmp3_, _tmp5_); -#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _publishing_tumblr_blog_entry_unref0 (b); -#line 3849 "TumblrPublishing.c" - } - } - } -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = self->priv->blog_combo; -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = self->priv->publisher; -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_combo_box_get_type (), GtkComboBox), publishing_tumblr_tumblr_publisher_get_persistent_default_blog (_tmp7_)); -#line 3859 "TumblrPublishing.c" - } -} - - -static void -publishing_tumblr_tumblr_publisher_publishing_options_pane_on_blog_changed (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) -{ - PublishingTumblrTumblrPublisher* _tmp0_; - GtkComboBoxText* _tmp1_; -#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->publisher; -#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = self->priv->blog_combo; -#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_set_persistent_default_blog (_tmp0_, gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))); -#line 3877 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_size_combo (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) -{ - PublishingTumblrSizeEntry** _tmp0_; - gint _tmp0__length1; -#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->sizes; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0__length1 = self->priv->sizes_length1; -#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (_tmp0_ != NULL) { -#line 3894 "TumblrPublishing.c" - PublishingTumblrSizeEntry** _tmp1_; - gint _tmp1__length1; - GtkComboBoxText* _tmp6_; - PublishingTumblrTumblrPublisher* _tmp7_; -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = self->priv->sizes; -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1__length1 = self->priv->sizes_length1; -#line 3903 "TumblrPublishing.c" - { - PublishingTumblrSizeEntry** e_collection = NULL; - gint e_collection_length1 = 0; - gint _e_collection_size_ = 0; - gint e_it = 0; -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - e_collection = _tmp1_; -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - e_collection_length1 = _tmp1__length1; -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - for (e_it = 0; e_it < _tmp1__length1; e_it = e_it + 1) { -#line 3915 "TumblrPublishing.c" - PublishingTumblrSizeEntry* _tmp2_; - PublishingTumblrSizeEntry* e = NULL; -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = _publishing_tumblr_size_entry_ref0 (e_collection[e_it]); -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - e = _tmp2_; -#line 3922 "TumblrPublishing.c" - { - GtkComboBoxText* _tmp3_; - PublishingTumblrSizeEntry* _tmp4_; - const gchar* _tmp5_; -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = self->priv->size_combo; -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = e; -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = _tmp4_->title; -#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gtk_combo_box_text_append_text (_tmp3_, _tmp5_); -#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _publishing_tumblr_size_entry_unref0 (e); -#line 3937 "TumblrPublishing.c" - } - } - } -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = self->priv->size_combo; -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = self->priv->publisher; -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_combo_box_get_type (), GtkComboBox), publishing_tumblr_tumblr_publisher_get_persistent_default_size (_tmp7_)); -#line 3947 "TumblrPublishing.c" - } -} - - -static void -publishing_tumblr_tumblr_publisher_publishing_options_pane_on_size_changed (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) -{ - PublishingTumblrTumblrPublisher* _tmp0_; - GtkComboBoxText* _tmp1_; -#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->publisher; -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = self->priv->size_combo; -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_set_persistent_default_size (_tmp0_, gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))); -#line 3965 "TumblrPublishing.c" -} - - -void -publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) -{ -#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_emit (self, publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0); -#line 3976 "TumblrPublishing.c" -} - - -void -publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) -{ -#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_emit (self, publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 3987 "TumblrPublishing.c" -} - - -static GtkWidget* -publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingTumblrTumblrPublisherPublishingOptionsPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane); -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->pane_widget; -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = _tmp1_; -#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 4008 "TumblrPublishing.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingTumblrTumblrPublisherPublishingOptionsPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane); -#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 4023 "TumblrPublishing.c" -} - - -static void -_publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, - gpointer self) -{ -#line 559 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); -#line 4033 "TumblrPublishing.c" -} - - -static void -_publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, - gpointer self) -{ -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); -#line 4043 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingTumblrTumblrPublisherPublishingOptionsPane * self; -#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane); -#line 559 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (self, "publish", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish, self, 0); -#line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (self, "logout", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout, self, 0); -#line 4057 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingTumblrTumblrPublisherPublishingOptionsPane * self; - guint _tmp0_; - guint _tmp1_; -#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane); -#line 564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("publish", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp0_, NULL, FALSE); -#line 564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish, self); -#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("logout", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); -#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_handlers_disconnect_matched (self, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout, self); -#line 4077 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_publishing_options_pane_class_init (PublishingTumblrTumblrPublisherPublishingOptionsPaneClass * klass) -{ -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingTumblrTumblrPublisherPublishingOptionsPanePrivate)); -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_tumblr_tumblr_publisher_publishing_options_pane_finalize; -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = g_signal_new ("publish", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = g_signal_new ("logout", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 4094 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_widget; -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_preferred_geometry; -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_installed; -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_uninstalled; -#line 4111 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_publishing_options_pane_instance_init (PublishingTumblrTumblrPublisherPublishingOptionsPane * self) -{ - gchar* _tmp0_; -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv = PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->pane_widget = NULL; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->upload_info_label = NULL; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->size_label = NULL; -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blog_label = NULL; -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->logout_button = NULL; -#line 442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->publish_button = NULL; -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->size_combo = NULL; -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blog_combo = NULL; -#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->sizes = NULL; -#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->sizes_length1 = 0; -#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->_sizes_size_ = self->priv->sizes_length1; -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blogs = NULL; -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blogs_length1 = 0; -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->_blogs_size_ = self->priv->blogs_length1; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = g_strdup (""); -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->username = _tmp0_; -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->publisher = NULL; -#line 4155 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_publishing_options_pane_finalize (GObject * obj) -{ - PublishingTumblrTumblrPublisherPublishingOptionsPane * self; -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->upload_info_label); -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->size_label); -#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->blog_label); -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->size_combo); -#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->blog_combo); -#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_tumblr_size_entry_unref), NULL); -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blogs = (_vala_array_free (self->priv->blogs, self->priv->blogs_length1, (GDestroyNotify) publishing_tumblr_blog_entry_unref), NULL); -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (self->priv->username); -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->publisher); -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - G_OBJECT_CLASS (publishing_tumblr_tumblr_publisher_publishing_options_pane_parent_class)->finalize (obj); -#line 4193 "TumblrPublishing.c" -} - - -/** - * The publishing options pane. - */ -GType -publishing_tumblr_tumblr_publisher_publishing_options_pane_get_type (void) -{ - static volatile gsize publishing_tumblr_tumblr_publisher_publishing_options_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_tumblr_tumblr_publisher_publishing_options_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrTumblrPublisherPublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_tumblr_publisher_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrTumblrPublisherPublishingOptionsPane), 0, (GInstanceInitFunc) publishing_tumblr_tumblr_publisher_publishing_options_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_tumblr_tumblr_publisher_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_tumblr_tumblr_publisher_publishing_options_pane_type_id; - publishing_tumblr_tumblr_publisher_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingTumblrTumblrPublisherPublishingOptionsPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_tumblr_tumblr_publisher_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_tumblr_tumblr_publisher_publishing_options_pane_type_id__volatile, publishing_tumblr_tumblr_publisher_publishing_options_pane_type_id); - } - return publishing_tumblr_tumblr_publisher_publishing_options_pane_type_id__volatile; -} - - -PublishingTumblrTumblrPublisherUserInfoFetchTransaction* -publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session) -{ - PublishingTumblrTumblrPublisherUserInfoFetchTransaction* self = NULL; -#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = (PublishingTumblrTumblrPublisherUserInfoFetchTransaction*) publishing_rest_support_oauth1_transaction_construct_with_uri (object_type, session, "https://api.tumblr.com/v2/user/info", PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self; -#line 4227 "TumblrPublishing.c" -} - - -PublishingTumblrTumblrPublisherUserInfoFetchTransaction* -publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_new (PublishingRESTSupportOAuth1Session* session) -{ -#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_USER_INFO_FETCH_TRANSACTION, session); -#line 4236 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_class_init (PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass * klass) -{ -#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_parent_class = g_type_class_peek_parent (klass); -#line 4245 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_instance_init (PublishingTumblrTumblrPublisherUserInfoFetchTransaction * self) -{ -} - - -GType -publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_get_type (void) -{ - static volatile gsize publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrTumblrPublisherUserInfoFetchTransaction), 0, (GInstanceInitFunc) publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_instance_init, NULL }; - GType publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_type_id; - publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_TRANSACTION, "PublishingTumblrTumblrPublisherUserInfoFetchTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_type_id__volatile, publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_type_id); - } - return publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_type_id__volatile; -} - - -static gchar* -publishing_tumblr_tumblr_publisher_upload_transaction_encode (PublishingTumblrTumblrPublisherUploadTransaction* self, - guint8* data, - int data_length1) -{ - gchar* result = NULL; - GString* s = NULL; - GString* _tmp0_; - gchar* bytes = NULL; - gchar* _tmp1_; - gint bytes_length1; - gint _bytes_size_; - gchar* _tmp2_; - gint _tmp2__length1; - gchar _tmp3_; - GString* _tmp13_; - const gchar* _tmp14_; - gchar* _tmp15_; -#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_UPLOAD_TRANSACTION (self), NULL); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = g_string_new (""); -#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - s = _tmp0_; -#line 580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = g_new0 (gchar, 2); -#line 580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - bytes = _tmp1_; -#line 580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - bytes_length1 = 2; -#line 580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _bytes_size_ = bytes_length1; -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = bytes; -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2__length1 = bytes_length1; -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_[1] = (gchar) 0; -#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = _tmp2_[1]; -#line 4309 "TumblrPublishing.c" - { - guint8* byte_collection = NULL; - gint byte_collection_length1 = 0; - gint _byte_collection_size_ = 0; - gint byte_it = 0; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - byte_collection = data; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - byte_collection_length1 = data_length1; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - for (byte_it = 0; byte_it < data_length1; byte_it = byte_it + 1) { -#line 4321 "TumblrPublishing.c" - guint8 byte = 0U; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - byte = byte_collection[byte_it]; -#line 4325 "TumblrPublishing.c" - { - guint8 _tmp4_; -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = byte; -#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (((gint) _tmp4_) == 0) { -#line 4332 "TumblrPublishing.c" - GString* _tmp5_; -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = s; -#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_string_append (_tmp5_, "%00"); -#line 4338 "TumblrPublishing.c" - } else { - gchar* _tmp6_; - gint _tmp6__length1; - guint8 _tmp7_; - gchar _tmp8_; - GString* _tmp9_; - gchar* _tmp10_; - gint _tmp10__length1; - gchar* _tmp11_; - gchar* _tmp12_; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = bytes; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6__length1 = bytes_length1; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = byte; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_[0] = (gchar) _tmp7_; -#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = _tmp6_[0]; -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9_ = s; -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = bytes; -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10__length1 = bytes_length1; -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp11_ = soup_uri_encode ((const gchar*) _tmp10_, PUBLISHING_TUMBLR_ENCODE_RFC_3986_EXTRA); -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp12_ = _tmp11_; -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_string_append (_tmp9_, _tmp12_); -#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp12_); -#line 4373 "TumblrPublishing.c" - } - } - } - } -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp13_ = s; -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp14_ = _tmp13_->str; -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp15_ = g_strdup (_tmp14_); -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = _tmp15_; -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - bytes = (g_free (bytes), NULL); -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_string_free0 (s); -#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 4392 "TumblrPublishing.c" -} - - -PublishingTumblrTumblrPublisherUploadTransaction* -publishing_tumblr_tumblr_publisher_upload_transaction_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable* publishable, - const gchar* blog_url) -{ - PublishingTumblrTumblrPublisherUploadTransaction* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (blog_url != NULL, NULL); -#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:596: Init upload transaction"); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = g_strdup_printf ("https://api.tumblr.com/v2/blog/%s/post", blog_url); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = _tmp0_; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = (PublishingTumblrTumblrPublisherUploadTransaction*) publishing_rest_support_oauth1_upload_transaction_construct (object_type, session, publishable, _tmp1_); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp1_); -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self; -#line 4423 "TumblrPublishing.c" -} - - -PublishingTumblrTumblrPublisherUploadTransaction* -publishing_tumblr_tumblr_publisher_upload_transaction_new (PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable* publishable, - const gchar* blog_url) -{ -#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return publishing_tumblr_tumblr_publisher_upload_transaction_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION, session, publishable, blog_url); -#line 4434 "TumblrPublishing.c" -} - - -static guint8* -string_get_data (const gchar* self, - int* result_length1) -{ - guint8* result; - guint8* res = NULL; - gint res_length1; - gint _res_size_; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - guint8* _tmp3_; - gint _tmp3__length1; - guint8* _tmp4_; - gint _tmp4__length1; -#line 1442 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = (guint8*) self; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = -1; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _res_size_ = res_length1; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = (gint) _tmp1_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = res; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3__length1 = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4__length1 = _tmp3__length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (result_length1) { -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result_length1 = _tmp4__length1; -#line 4481 "TumblrPublishing.c" - } -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp4_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 4487 "TumblrPublishing.c" -} - - -static gchar* -_vala_g_strjoinv (const gchar* separator, - gchar** str_array, - int str_array_length1) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; -#line 1092 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (separator == NULL) { -#line 1093 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - separator = ""; -#line 4502 "TumblrPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array != NULL) { -#line 4506 "TumblrPublishing.c" - gboolean _tmp1_ = FALSE; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 > 0) { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 4512 "TumblrPublishing.c" - } else { - gboolean _tmp2_ = FALSE; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 4517 "TumblrPublishing.c" - const gchar* _tmp3_; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = str_array[0]; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp3_ != NULL; -#line 4523 "TumblrPublishing.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = FALSE; -#line 4527 "TumblrPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp2_; -#line 4531 "TumblrPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = _tmp1_; -#line 4535 "TumblrPublishing.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 4539 "TumblrPublishing.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 4543 "TumblrPublishing.c" - gint i = 0; - gsize len = 0UL; - gint _tmp20_; - gint _tmp22_; - gint _tmp23_; - gsize _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; - const gchar* res = NULL; - gsize _tmp28_; - void* _tmp29_; - void* ptr = NULL; - const gchar* _tmp30_; - const gchar* _tmp31_; - void* _tmp32_; - const gchar* _tmp45_; -#line 1097 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = (gsize) 1; -#line 4563 "TumblrPublishing.c" - { - gboolean _tmp4_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 0; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = TRUE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - while (TRUE) { -#line 4572 "TumblrPublishing.c" - gboolean _tmp6_ = FALSE; - gboolean _tmp7_ = FALSE; - gint _tmp12_ = 0; - gint _tmp13_; - const gchar* _tmp14_; - gsize _tmp19_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp4_) { -#line 4581 "TumblrPublishing.c" - gint _tmp5_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = _tmp5_ + 1; -#line 4587 "TumblrPublishing.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 != -1) { -#line 4593 "TumblrPublishing.c" - gint _tmp8_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp8_ < str_array_length1; -#line 4599 "TumblrPublishing.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = FALSE; -#line 4603 "TumblrPublishing.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp7_) { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = TRUE; -#line 4609 "TumblrPublishing.c" - } else { - gboolean _tmp9_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 4614 "TumblrPublishing.c" - gint _tmp10_; - const gchar* _tmp11_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp11_ = str_array[_tmp10_]; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = _tmp11_ != NULL; -#line 4623 "TumblrPublishing.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = FALSE; -#line 4627 "TumblrPublishing.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp9_; -#line 4631 "TumblrPublishing.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp6_) { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - break; -#line 4637 "TumblrPublishing.c" - } -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp13_ = i; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp14_ = str_array[_tmp13_]; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp14_ != NULL) { -#line 4645 "TumblrPublishing.c" - gint _tmp15_; - const gchar* _tmp16_; - gint _tmp17_; - gint _tmp18_; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp15_ = i; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp16_ = str_array[_tmp15_]; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp17_ = strlen ((const gchar*) _tmp16_); -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp18_ = _tmp17_; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp12_ = _tmp18_; -#line 4660 "TumblrPublishing.c" - } else { -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp12_ = 0; -#line 4664 "TumblrPublishing.c" - } -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp19_ = len; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp19_ + _tmp12_; -#line 4670 "TumblrPublishing.c" - } - } -#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp20_ = i; -#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp20_ == 0) { -#line 4677 "TumblrPublishing.c" - gchar* _tmp21_; -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp21_ = g_strdup (""); -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp21_; -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 4685 "TumblrPublishing.c" - } -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp22_ = i; -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - str_array_length1 = _tmp22_; -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp23_ = str_array_length1; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp24_ = len; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp25_ = strlen ((const gchar*) separator); -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp26_ = _tmp25_; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp27_ = i; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp24_ + (_tmp26_ * (_tmp27_ - 1)); -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp28_ = len; -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp29_ = g_malloc (_tmp28_); -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = _tmp29_; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp30_ = res; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp31_ = str_array[0]; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp32_ = g_stpcpy ((void*) _tmp30_, (const gchar*) _tmp31_); -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp32_; -#line 4717 "TumblrPublishing.c" - { - gboolean _tmp33_ = FALSE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 1; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp33_ = TRUE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - while (TRUE) { -#line 4726 "TumblrPublishing.c" - gint _tmp35_; - void* _tmp36_; - void* _tmp37_; - const gchar* _tmp38_ = NULL; - gint _tmp39_; - const gchar* _tmp40_; - void* _tmp43_; - void* _tmp44_; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp33_) { -#line 4737 "TumblrPublishing.c" - gint _tmp34_; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp34_ = i; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = _tmp34_ + 1; -#line 4743 "TumblrPublishing.c" - } -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp33_ = FALSE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp35_ = i; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!(_tmp35_ < str_array_length1)) { -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - break; -#line 4753 "TumblrPublishing.c" - } -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp36_ = ptr; -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp37_ = g_stpcpy (_tmp36_, (const gchar*) separator); -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp37_; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp39_ = i; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp40_ = str_array[_tmp39_]; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp40_ != NULL) { -#line 4767 "TumblrPublishing.c" - gint _tmp41_; - const gchar* _tmp42_; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp41_ = i; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp42_ = str_array[_tmp41_]; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp38_ = (const gchar*) _tmp42_; -#line 4776 "TumblrPublishing.c" - } else { -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp38_ = ""; -#line 4780 "TumblrPublishing.c" - } -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp43_ = ptr; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp44_ = g_stpcpy (_tmp43_, _tmp38_); -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp44_; -#line 4788 "TumblrPublishing.c" - } - } -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp45_ = res; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = NULL; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gchar*) _tmp45_; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 4799 "TumblrPublishing.c" - } else { - gchar* _tmp46_; -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp46_ = g_strdup (""); -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp46_; -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 4808 "TumblrPublishing.c" - } -} - - -static void -publishing_tumblr_tumblr_publisher_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error) -{ - PublishingTumblrTumblrPublisherUploadTransaction * self; - gchar* payload = NULL; - gsize payload_length = 0UL; - PublishingRESTSupportArgument** request_arguments = NULL; - gint _tmp24_; - PublishingRESTSupportArgument** _tmp25_; - gint request_arguments_length1; - gint _request_arguments_size_; - PublishingRESTSupportArgument** _tmp26_; - gint _tmp26__length1; - gchar* request_data = NULL; - PublishingRESTSupportArgument** _tmp27_; - gint _tmp27__length1; - gchar* _tmp28_; - SoupMessage* outbound_message = NULL; - gchar* _tmp29_; - gchar* _tmp30_; - SoupMessage* _tmp31_; - SoupMessage* _tmp32_; - SoupMessage* _tmp33_; - const gchar* _tmp34_; - guint8* _tmp35_; - gint _tmp35__length1; - guint8* _tmp36_; - gint _tmp36__length1; - GeeMapIterator* i = NULL; - GeeHashMap* _tmp37_; - GeeMapIterator* _tmp38_; - gboolean cont = FALSE; - GeeMapIterator* _tmp39_; - SoupMessage* _tmp50_; - GError * _inner_error_ = NULL; -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION, PublishingTumblrTumblrPublisherUploadTransaction); -#line 4851 "TumblrPublishing.c" - { - SpitPublishingPublishable* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_ = NULL; - gsize _tmp6_ = 0UL; - gchar* reqdata = NULL; - const gchar* _tmp7_; - guint8* _tmp8_; - gint _tmp8__length1; - guint8* _tmp9_; - gint _tmp9__length1; - gsize _tmp10_; - gchar* _tmp11_; - const gchar* _tmp12_; - gchar** keywords = NULL; - SpitPublishingPublishable* _tmp13_; - gint _tmp14_; - gchar** _tmp15_; - gint keywords_length1; - gint _keywords_size_; - gchar* tags = NULL; - gchar* _tmp16_; - gchar** _tmp17_; - gint _tmp17__length1; - const gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)->publishable; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = spit_publishing_publishable_get_serialized_file (_tmp0_); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = _tmp1_; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = g_file_get_path (_tmp2_); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = _tmp3_; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_file_get_contents (_tmp4_, &_tmp5_, &_tmp6_, &_inner_error_); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (payload); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - payload = _tmp5_; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - payload_length = _tmp6_; -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp4_); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (_tmp2_); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (_inner_error_->domain == G_FILE_ERROR) { -#line 4908 "TumblrPublishing.c" - goto __catch24_g_file_error; - } -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (payload); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_clear_error (&_inner_error_); -#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 4919 "TumblrPublishing.c" - } -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = payload; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = string_get_data (_tmp7_, &_tmp8__length1); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9_ = _tmp8_; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9__length1 = _tmp8__length1; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = payload_length; -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp11_ = publishing_tumblr_tumblr_publisher_upload_transaction_encode (self, _tmp9_ + 0, ((gint) _tmp10_) - 0); -#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - reqdata = _tmp11_; -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp12_ = reqdata; -#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data[0]", _tmp12_); -#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "type", "photo"); -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)->publishable; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp15_ = spit_publishing_publishable_get_publishing_keywords (_tmp13_, &_tmp14_); -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - keywords = _tmp15_; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - keywords_length1 = _tmp14_; -#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _keywords_size_ = keywords_length1; -#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp16_ = g_strdup (""); -#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - tags = _tmp16_; -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp17_ = keywords; -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp17__length1 = keywords_length1; -#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (_tmp17_ != NULL) { -#line 4961 "TumblrPublishing.c" - gchar** _tmp18_; - gint _tmp18__length1; - gchar* _tmp19_; -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp18_ = keywords; -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp18__length1 = keywords_length1; -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp19_ = _vala_g_strjoinv (",", _tmp18_, _tmp18__length1); -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (tags); -#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - tags = _tmp19_; -#line 4975 "TumblrPublishing.c" - } -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp20_ = tags; -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp21_ = soup_uri_encode (_tmp20_, PUBLISHING_TUMBLR_ENCODE_RFC_3986_EXTRA); -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp22_ = _tmp21_; -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "tags", _tmp22_); -#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp22_); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (tags); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (reqdata); -#line 4993 "TumblrPublishing.c" - } - goto __finally24; - __catch24_g_file_error: - { - GError* e = NULL; - GError* _tmp23_; -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - e = _inner_error_; -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _inner_error_ = NULL; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp23_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _ ("A temporary file needed for publishing is unavailable")); -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _inner_error_ = _tmp23_; -#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_error_free0 (e); -#line 5010 "TumblrPublishing.c" - goto __finally24; - } - __finally24: -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (payload); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 5024 "TumblrPublishing.c" - } else { -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (payload); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_clear_error (&_inner_error_); -#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 5034 "TumblrPublishing.c" - } - } -#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_rest_support_oauth1_upload_transaction_authorize (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction)); -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp25_ = publishing_rest_support_transaction_get_arguments (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_tmp24_); -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - request_arguments = _tmp25_; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - request_arguments_length1 = _tmp24_; -#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _request_arguments_size_ = request_arguments_length1; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp26_ = request_arguments; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp26__length1 = request_arguments_length1; -#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _vala_assert (_tmp26__length1 > 0, "request_arguments.length > 0"); -#line 632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp27_ = request_arguments; -#line 632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp27__length1 = request_arguments_length1; -#line 632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp28_ = publishing_rest_support_argument_serialize_list (_tmp27_, _tmp27__length1, FALSE, "&"); -#line 632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - request_data = _tmp28_; -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp29_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp30_ = _tmp29_; -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp31_ = soup_message_new ("POST", _tmp30_); -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp32_ = _tmp31_; -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp30_); -#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - outbound_message = _tmp32_; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp33_ = outbound_message; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp34_ = request_data; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp35_ = string_get_data (_tmp34_, &_tmp35__length1); -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp36_ = _tmp35_; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp36__length1 = _tmp35__length1; -#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - soup_message_set_request (_tmp33_, "application/x-www-form-urlencoded", SOUP_MEMORY_COPY, _tmp36_, (gsize) _tmp36__length1); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp37_ = G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)->message_headers; -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp38_ = gee_abstract_map_map_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - i = _tmp38_; -#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp39_ = i; -#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - cont = gee_map_iterator_next (_tmp39_); -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - while (TRUE) { -#line 5097 "TumblrPublishing.c" - gboolean _tmp40_; - SoupMessage* _tmp41_; - SoupMessageHeaders* _tmp42_; - GeeMapIterator* _tmp43_; - gpointer _tmp44_; - gchar* _tmp45_; - GeeMapIterator* _tmp46_; - gpointer _tmp47_; - gchar* _tmp48_; - GeeMapIterator* _tmp49_; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp40_ = cont; -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!_tmp40_) { -#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - break; -#line 5114 "TumblrPublishing.c" - } -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp41_ = outbound_message; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp42_ = _tmp41_->request_headers; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp43_ = i; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp44_ = gee_map_iterator_get_key (_tmp43_); -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp45_ = (gchar*) _tmp44_; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp46_ = i; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp47_ = gee_map_iterator_get_value (_tmp46_); -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp48_ = (gchar*) _tmp47_; -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - soup_message_headers_append (_tmp42_, _tmp45_, _tmp48_); -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp48_); -#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp45_); -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp49_ = i; -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - cont = gee_map_iterator_next (_tmp49_); -#line 5142 "TumblrPublishing.c" - } -#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp50_ = outbound_message; -#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_rest_support_transaction_set_message (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp50_); -#line 646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_rest_support_transaction_set_is_executed (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), TRUE); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_rest_support_transaction_send (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_propagate_error (error, _inner_error_); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (i); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (outbound_message); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (request_data); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (payload); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 5170 "TumblrPublishing.c" - } else { -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (i); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (outbound_message); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (request_data); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (payload); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_clear_error (&_inner_error_); -#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return; -#line 5188 "TumblrPublishing.c" - } - } -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (i); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (outbound_message); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (request_data); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); -#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (payload); -#line 5201 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_upload_transaction_class_init (PublishingTumblrTumblrPublisherUploadTransactionClass * klass) -{ -#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_upload_transaction_parent_class = g_type_class_peek_parent (klass); -#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_tumblr_tumblr_publisher_upload_transaction_real_execute; -#line 5212 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_upload_transaction_instance_init (PublishingTumblrTumblrPublisherUploadTransaction * self) -{ -} - - -GType -publishing_tumblr_tumblr_publisher_upload_transaction_get_type (void) -{ - static volatile gsize publishing_tumblr_tumblr_publisher_upload_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_tumblr_tumblr_publisher_upload_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrTumblrPublisherUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_tumblr_publisher_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrTumblrPublisherUploadTransaction), 0, (GInstanceInitFunc) publishing_tumblr_tumblr_publisher_upload_transaction_instance_init, NULL }; - GType publishing_tumblr_tumblr_publisher_upload_transaction_type_id; - publishing_tumblr_tumblr_publisher_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, "PublishingTumblrTumblrPublisherUploadTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_tumblr_tumblr_publisher_upload_transaction_type_id__volatile, publishing_tumblr_tumblr_publisher_upload_transaction_type_id); - } - return publishing_tumblr_tumblr_publisher_upload_transaction_type_id__volatile; -} - - -PublishingTumblrTumblrPublisherUploader* -publishing_tumblr_tumblr_publisher_uploader_construct (GType object_type, - PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - const gchar* blog_url) -{ - PublishingTumblrTumblrPublisherUploader* self = NULL; - gchar* _tmp0_; -#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); -#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (blog_url != NULL, NULL); -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = (PublishingTumblrTumblrPublisherUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishables, publishables_length1); -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = g_strdup (blog_url); -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (self->priv->blog_url); -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blog_url = _tmp0_; -#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return self; -#line 5259 "TumblrPublishing.c" -} - - -PublishingTumblrTumblrPublisherUploader* -publishing_tumblr_tumblr_publisher_uploader_new (PublishingRESTSupportOAuth1Session* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - const gchar* blog_url) -{ -#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return publishing_tumblr_tumblr_publisher_uploader_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, session, publishables, publishables_length1, blog_url); -#line 5271 "TumblrPublishing.c" -} - - -static PublishingRESTSupportTransaction* -publishing_tumblr_tumblr_publisher_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable) -{ - PublishingTumblrTumblrPublisherUploader * self; - PublishingRESTSupportTransaction* result = NULL; - PublishingRESTSupportSession* _tmp0_; - PublishingRESTSupportOAuth1Session* _tmp1_; - SpitPublishingPublishable* _tmp2_; - SpitPublishingPublishable* _tmp3_; - const gchar* _tmp4_; - PublishingTumblrTumblrPublisherUploadTransaction* _tmp5_; - PublishingRESTSupportTransaction* _tmp6_; -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, PublishingTumblrTumblrPublisherUploader); -#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:665: Create upload transaction"); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1Session); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = _tmp2_; -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = self->priv->blog_url; -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = publishing_tumblr_tumblr_publisher_upload_transaction_new (_tmp1_, _tmp3_, _tmp4_); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (_tmp3_); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = _tmp6_; -#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - return result; -#line 5316 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_uploader_class_init (PublishingTumblrTumblrPublisherUploaderClass * klass) -{ -#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_uploader_parent_class = g_type_class_peek_parent (klass); -#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_tumblr_tumblr_publisher_uploader_finalize; -#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingTumblrTumblrPublisherUploaderPrivate)); -#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_tumblr_tumblr_publisher_uploader_real_create_transaction; -#line 5331 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_uploader_instance_init (PublishingTumblrTumblrPublisherUploader * self) -{ - gchar* _tmp0_; -#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv = PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOADER_GET_PRIVATE (self); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = g_strdup (""); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blog_url = _tmp0_; -#line 5345 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_uploader_finalize (PublishingRESTSupportBatchUploader * obj) -{ - PublishingTumblrTumblrPublisherUploader * self; -#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, PublishingTumblrTumblrPublisherUploader); -#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (self->priv->blog_url); -#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_tumblr_tumblr_publisher_uploader_parent_class)->finalize (obj); -#line 5359 "TumblrPublishing.c" -} - - -GType -publishing_tumblr_tumblr_publisher_uploader_get_type (void) -{ - static volatile gsize publishing_tumblr_tumblr_publisher_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_tumblr_tumblr_publisher_uploader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrTumblrPublisherUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_tumblr_publisher_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrTumblrPublisherUploader), 0, (GInstanceInitFunc) publishing_tumblr_tumblr_publisher_uploader_instance_init, NULL }; - GType publishing_tumblr_tumblr_publisher_uploader_type_id; - publishing_tumblr_tumblr_publisher_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingTumblrTumblrPublisherUploader", &g_define_type_info, 0); - g_once_init_leave (&publishing_tumblr_tumblr_publisher_uploader_type_id__volatile, publishing_tumblr_tumblr_publisher_uploader_type_id); - } - return publishing_tumblr_tumblr_publisher_uploader_type_id__volatile; -} - - -static void -publishing_tumblr_tumblr_publisher_class_init (PublishingTumblrTumblrPublisherClass * klass) -{ -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_parent_class = g_type_class_peek_parent (klass); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingTumblrTumblrPublisherPrivate)); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_tumblr_tumblr_publisher_finalize; -#line 5386 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) -{ -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - iface->get_service = (SpitPublishingService* (*) (SpitPublishingPublisher *)) publishing_tumblr_tumblr_publisher_real_get_service; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - iface->is_running = (gboolean (*) (SpitPublishingPublisher *)) publishing_tumblr_tumblr_publisher_real_is_running; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - iface->start = (void (*) (SpitPublishingPublisher *)) publishing_tumblr_tumblr_publisher_real_start; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - iface->stop = (void (*) (SpitPublishingPublisher *)) publishing_tumblr_tumblr_publisher_real_stop; -#line 5403 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_instance_init (PublishingTumblrTumblrPublisher * self) -{ - gchar* _tmp0_; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv = PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_GET_PRIVATE (self); -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->progress_reporter = NULL; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->progress_reporter_target = self; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->running = FALSE; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->was_started = FALSE; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->session = NULL; -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->publishing_options_pane = NULL; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->sizes = NULL; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->sizes_length1 = 0; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->_sizes_size_ = self->priv->sizes_length1; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blogs = NULL; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blogs_length1 = 0; -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->_blogs_size_ = self->priv->blogs_length1; -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = g_strdup (""); -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->username = _tmp0_; -#line 5443 "TumblrPublishing.c" -} - - -static void -publishing_tumblr_tumblr_publisher_finalize (GObject * obj) -{ - PublishingTumblrTumblrPublisher * self; - SpitPublishingAuthenticator* _tmp0_; - guint _tmp1_; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher); -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("authenticated", SPIT_PUBLISHING_TYPE_AUTHENTICATOR, &_tmp1_, NULL, FALSE); -#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated, self); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->service); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->host); -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->progress_reporter = NULL; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->publishing_options_pane); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_tumblr_size_entry_unref), NULL); -#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blogs = (_vala_array_free (self->priv->blogs, self->priv->blogs_length1, (GDestroyNotify) publishing_tumblr_blog_entry_unref), NULL); -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (self->priv->username); -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - G_OBJECT_CLASS (publishing_tumblr_tumblr_publisher_parent_class)->finalize (obj); -#line 5487 "TumblrPublishing.c" -} - - -GType -publishing_tumblr_tumblr_publisher_get_type (void) -{ - static volatile gsize publishing_tumblr_tumblr_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_tumblr_tumblr_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingTumblrTumblrPublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_tumblr_tumblr_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingTumblrTumblrPublisher), 0, (GInstanceInitFunc) publishing_tumblr_tumblr_publisher_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_publisher_info = { (GInterfaceInitFunc) publishing_tumblr_tumblr_publisher_spit_publishing_publisher_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_tumblr_tumblr_publisher_type_id; - publishing_tumblr_tumblr_publisher_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingTumblrTumblrPublisher", &g_define_type_info, 0); - g_type_add_interface_static (publishing_tumblr_tumblr_publisher_type_id, SPIT_PUBLISHING_TYPE_PUBLISHER, &spit_publishing_publisher_info); - g_once_init_leave (&publishing_tumblr_tumblr_publisher_type_id__volatile, publishing_tumblr_tumblr_publisher_type_id); - } - return publishing_tumblr_tumblr_publisher_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/shotwell-publishing/YouTubePublishing.c b/plugins/shotwell-publishing/YouTubePublishing.c deleted file mode 100644 index f823262..0000000 --- a/plugins/shotwell-publishing/YouTubePublishing.c +++ /dev/null @@ -1,4355 +0,0 @@ -/* YouTubePublishing.c generated by valac 0.40.4, the Vala compiler - * generated from YouTubePublishing.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" -#include -#include "gdata/gdata.h" -#include -#include -#include -#include -#include "shotwell-authenticator.h" -#include - - -#define TYPE_YOU_TUBE_SERVICE (you_tube_service_get_type ()) -#define YOU_TUBE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_YOU_TUBE_SERVICE, YouTubeService)) -#define YOU_TUBE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_YOU_TUBE_SERVICE, YouTubeServiceClass)) -#define IS_YOU_TUBE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_YOU_TUBE_SERVICE)) -#define IS_YOU_TUBE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_YOU_TUBE_SERVICE)) -#define YOU_TUBE_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_YOU_TUBE_SERVICE, YouTubeServiceClass)) - -typedef struct _YouTubeService YouTubeService; -typedef struct _YouTubeServiceClass YouTubeServiceClass; -typedef struct _YouTubeServicePrivate YouTubeServicePrivate; -enum { - YOU_TUBE_SERVICE_0_PROPERTY, - YOU_TUBE_SERVICE_NUM_PROPERTIES -}; -static GParamSpec* you_tube_service_properties[YOU_TUBE_SERVICE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER (publishing_you_tube_you_tube_publisher_get_type ()) -#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher)) -#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisherClass)) -#define PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER)) -#define PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER)) -#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisherClass)) - -typedef struct _PublishingYouTubeYouTubePublisher PublishingYouTubeYouTubePublisher; -typedef struct _PublishingYouTubeYouTubePublisherClass PublishingYouTubeYouTubePublisherClass; - -#define PUBLISHING_YOU_TUBE_TYPE_PRIVACY_SETTING (publishing_you_tube_privacy_setting_get_type ()) - -#define PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS (publishing_you_tube_publishing_parameters_get_type ()) -#define PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS, PublishingYouTubePublishingParameters)) -#define PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS, PublishingYouTubePublishingParametersClass)) -#define PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS)) -#define PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS, PublishingYouTubePublishingParametersClass)) - -typedef struct _PublishingYouTubePublishingParameters PublishingYouTubePublishingParameters; -typedef struct _PublishingYouTubePublishingParametersClass PublishingYouTubePublishingParametersClass; -typedef struct _PublishingYouTubePublishingParametersPrivate PublishingYouTubePublishingParametersPrivate; -typedef struct _PublishingYouTubeParamSpecPublishingParameters PublishingYouTubeParamSpecPublishingParameters; - -#define PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER (publishing_you_tube_you_tube_authorizer_get_type ()) -#define PUBLISHING_YOU_TUBE_YOU_TUBE_AUTHORIZER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, PublishingYouTubeYouTubeAuthorizer)) -#define PUBLISHING_YOU_TUBE_YOU_TUBE_AUTHORIZER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, PublishingYouTubeYouTubeAuthorizerClass)) -#define PUBLISHING_YOU_TUBE_IS_YOU_TUBE_AUTHORIZER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER)) -#define PUBLISHING_YOU_TUBE_IS_YOU_TUBE_AUTHORIZER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER)) -#define PUBLISHING_YOU_TUBE_YOU_TUBE_AUTHORIZER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, PublishingYouTubeYouTubeAuthorizerClass)) - -typedef struct _PublishingYouTubeYouTubeAuthorizer PublishingYouTubeYouTubeAuthorizer; -typedef struct _PublishingYouTubeYouTubeAuthorizerClass PublishingYouTubeYouTubeAuthorizerClass; -typedef struct _PublishingYouTubeYouTubeAuthorizerPrivate PublishingYouTubeYouTubeAuthorizerPrivate; -enum { - PUBLISHING_YOU_TUBE_YOU_TUBE_AUTHORIZER_0_PROPERTY, - PUBLISHING_YOU_TUBE_YOU_TUBE_AUTHORIZER_NUM_PROPERTIES -}; -static GParamSpec* publishing_you_tube_you_tube_authorizer_properties[PUBLISHING_YOU_TUBE_YOU_TUBE_AUTHORIZER_NUM_PROPERTIES]; -#define _publishing_rest_support_session_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_session_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _PublishingYouTubeYouTubePublisherPrivate PublishingYouTubeYouTubePublisherPrivate; -enum { - PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_0_PROPERTY, - PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_NUM_PROPERTIES -}; -static GParamSpec* publishing_you_tube_you_tube_publisher_properties[PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_NUM_PROPERTIES]; -#define _publishing_you_tube_publishing_parameters_unref0(var) ((var == NULL) ? NULL : (var = (publishing_you_tube_publishing_parameters_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE (publishing_you_tube_publishing_options_pane_get_type ()) -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane)) -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPaneClass)) -#define PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE)) -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPaneClass)) - -typedef struct _PublishingYouTubePublishingOptionsPane PublishingYouTubePublishingOptionsPane; -typedef struct _PublishingYouTubePublishingOptionsPaneClass PublishingYouTubePublishingOptionsPaneClass; - -#define PUBLISHING_YOU_TUBE_TYPE_UPLOADER (publishing_you_tube_uploader_get_type ()) -#define PUBLISHING_YOU_TUBE_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploader)) -#define PUBLISHING_YOU_TUBE_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploaderClass)) -#define PUBLISHING_YOU_TUBE_IS_UPLOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOADER)) -#define PUBLISHING_YOU_TUBE_IS_UPLOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_TYPE_UPLOADER)) -#define PUBLISHING_YOU_TUBE_UPLOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploaderClass)) - -typedef struct _PublishingYouTubeUploader PublishingYouTubeUploader; -typedef struct _PublishingYouTubeUploaderClass PublishingYouTubeUploaderClass; -#define _publishing_rest_support_batch_uploader_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_batch_uploader_unref (var), NULL))) -typedef struct _PublishingYouTubePublishingOptionsPanePrivate PublishingYouTubePublishingOptionsPanePrivate; - -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION (publishing_you_tube_publishing_options_pane_privacy_description_get_type ()) -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingYouTubePublishingOptionsPanePrivacyDescription)) -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass)) -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_IS_PRIVACY_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)) -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_IS_PRIVACY_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)) -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass)) - -typedef struct _PublishingYouTubePublishingOptionsPanePrivacyDescription PublishingYouTubePublishingOptionsPanePrivacyDescription; -typedef struct _PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass; -enum { - PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_0_PROPERTY, - PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_you_tube_publishing_options_pane_properties[PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; -#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL))) -typedef struct _PublishingYouTubePublishingOptionsPanePrivacyDescriptionPrivate PublishingYouTubePublishingOptionsPanePrivacyDescriptionPrivate; -#define _publishing_you_tube_publishing_options_pane_privacy_description_unref0(var) ((var == NULL) ? NULL : (var = (publishing_you_tube_publishing_options_pane_privacy_description_unref (var), NULL))) -typedef struct _PublishingYouTubePublishingOptionsPaneParamSpecPrivacyDescription PublishingYouTubePublishingOptionsPaneParamSpecPrivacyDescription; -enum { - PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, - PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS -}; -static guint publishing_you_tube_publishing_options_pane_signals[PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; - -#define PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION (publishing_you_tube_upload_transaction_get_type ()) -#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransaction)) -#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransactionClass)) -#define PUBLISHING_YOU_TUBE_IS_UPLOAD_TRANSACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_YOU_TUBE_IS_UPLOAD_TRANSACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION)) -#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransactionClass)) - -typedef struct _PublishingYouTubeUploadTransaction PublishingYouTubeUploadTransaction; -typedef struct _PublishingYouTubeUploadTransactionClass PublishingYouTubeUploadTransactionClass; -typedef struct _PublishingYouTubeUploadTransactionPrivate PublishingYouTubeUploadTransactionPrivate; -typedef struct _Block1Data Block1Data; -#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL))) -#define _publishing_rest_support_transaction_unref0(var) ((var == NULL) ? NULL : (var = (publishing_rest_support_transaction_unref (var), NULL))) -typedef struct _PublishingYouTubeUploadTransactionSpliceWithProgressData PublishingYouTubeUploadTransactionSpliceWithProgressData; -typedef struct _PublishingYouTubeUploaderPrivate PublishingYouTubeUploaderPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _YouTubeService { - GObject parent_instance; - YouTubeServicePrivate * priv; -}; - -struct _YouTubeServiceClass { - GObjectClass parent_class; -}; - -typedef enum { - PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC, - PUBLISHING_YOU_TUBE_PRIVACY_SETTING_UNLISTED, - PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE -} PublishingYouTubePrivacySetting; - -struct _PublishingYouTubePublishingParameters { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingYouTubePublishingParametersPrivate * priv; -}; - -struct _PublishingYouTubePublishingParametersClass { - GTypeClass parent_class; - void (*finalize) (PublishingYouTubePublishingParameters *self); -}; - -struct _PublishingYouTubePublishingParametersPrivate { - PublishingYouTubePrivacySetting privacy; - gchar* user_name; -}; - -struct _PublishingYouTubeParamSpecPublishingParameters { - GParamSpec parent_instance; -}; - -struct _PublishingYouTubeYouTubeAuthorizer { - GObject parent_instance; - PublishingYouTubeYouTubeAuthorizerPrivate * priv; -}; - -struct _PublishingYouTubeYouTubeAuthorizerClass { - GObjectClass parent_class; -}; - -struct _PublishingYouTubeYouTubeAuthorizerPrivate { - PublishingRESTSupportGoogleSession* session; - SpitPublishingAuthenticator* authenticator; -}; - -struct _PublishingYouTubeYouTubePublisher { - PublishingRESTSupportGooglePublisher parent_instance; - PublishingYouTubeYouTubePublisherPrivate * priv; -}; - -struct _PublishingYouTubeYouTubePublisherClass { - PublishingRESTSupportGooglePublisherClass parent_class; -}; - -struct _PublishingYouTubeYouTubePublisherPrivate { - gboolean running; - PublishingYouTubePublishingParameters* publishing_parameters; - SpitPublishingProgressCallback progress_reporter; - gpointer progress_reporter_target; - GDestroyNotify progress_reporter_target_destroy_notify; - SpitPublishingAuthenticator* authenticator; - GDataYouTubeService* youtube_service; -}; - -struct _PublishingYouTubePublishingOptionsPane { - GObject parent_instance; - PublishingYouTubePublishingOptionsPanePrivate * priv; -}; - -struct _PublishingYouTubePublishingOptionsPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingYouTubePublishingOptionsPanePrivate { - GtkBox* pane_widget; - GtkComboBoxText* privacy_combo; - GtkLabel* login_identity_label; - GtkButton* publish_button; - GtkButton* logout_button; - GtkBuilder* builder; - GtkLabel* privacy_label; - PublishingYouTubePublishingOptionsPanePrivacyDescription** privacy_descriptions; - gint privacy_descriptions_length1; - gint _privacy_descriptions_size_; - PublishingYouTubePublishingParameters* publishing_parameters; -}; - -struct _PublishingYouTubePublishingOptionsPanePrivacyDescription { - GTypeInstance parent_instance; - volatile int ref_count; - PublishingYouTubePublishingOptionsPanePrivacyDescriptionPrivate * priv; - gchar* description; - PublishingYouTubePrivacySetting privacy_setting; -}; - -struct _PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass { - GTypeClass parent_class; - void (*finalize) (PublishingYouTubePublishingOptionsPanePrivacyDescription *self); -}; - -struct _PublishingYouTubePublishingOptionsPaneParamSpecPrivacyDescription { - GParamSpec parent_instance; -}; - -struct _PublishingYouTubeUploadTransaction { - PublishingRESTSupportGooglePublisherAuthenticatedTransaction parent_instance; - PublishingYouTubeUploadTransactionPrivate * priv; -}; - -struct _PublishingYouTubeUploadTransactionClass { - PublishingRESTSupportGooglePublisherAuthenticatedTransactionClass parent_class; -}; - -struct _PublishingYouTubeUploadTransactionPrivate { - PublishingYouTubePublishingParameters* parameters; - PublishingRESTSupportGoogleSession* session; - SpitPublishingPublishable* publishable; - GDataYouTubeService* youtube_service; -}; - -struct _Block1Data { - int _ref_count_; - PublishingYouTubeUploadTransaction* self; - GMainLoop* loop; -}; - -struct _PublishingYouTubeUploadTransactionSpliceWithProgressData { - int _state_; - GObject* _source_object_; - GAsyncResult* _res_; - GTask* _async_result; - GAsyncReadyCallback _callback_; - gboolean _task_complete_; - PublishingYouTubeUploadTransaction* self; - GFileInfo* info; - GInputStream* input; - GOutputStream* output; - gint64 total_bytes; - gint64 bytes_to_write; - gint64 _tmp0_; - guint8 buffer[8192]; - gint64 _tmp1_; - gssize bytes_read; - gssize _tmp2_; - gssize bytes_written; - gssize _tmp3_; - gint64 _tmp4_; - gssize _tmp5_; - gint64 _tmp6_; - gint64 _tmp7_; - gint64 _tmp8_; - GError * _inner_error_; -}; - -struct _PublishingYouTubeUploader { - PublishingRESTSupportBatchUploader parent_instance; - PublishingYouTubeUploaderPrivate * priv; -}; - -struct _PublishingYouTubeUploaderClass { - PublishingRESTSupportBatchUploaderClass parent_class; -}; - -struct _PublishingYouTubeUploaderPrivate { - PublishingYouTubePublishingParameters* parameters; - GDataYouTubeService* youtube_service; -}; - - -static gpointer you_tube_service_parent_class = NULL; -static GdkPixbuf** you_tube_service_icon_pixbuf_set; -static gint you_tube_service_icon_pixbuf_set_length1; -static GdkPixbuf** you_tube_service_icon_pixbuf_set = NULL; -static gint you_tube_service_icon_pixbuf_set_length1 = 0; -static gint _you_tube_service_icon_pixbuf_set_size_ = 0; -static SpitPluggableIface * you_tube_service_spit_pluggable_parent_iface = NULL; -static SpitPublishingServiceIface * you_tube_service_spit_publishing_service_parent_iface = NULL; -static gpointer publishing_you_tube_publishing_parameters_parent_class = NULL; -static gpointer publishing_you_tube_you_tube_authorizer_parent_class = NULL; -static GDataAuthorizerInterface * publishing_you_tube_you_tube_authorizer_gdata_authorizer_parent_iface = NULL; -static gpointer publishing_you_tube_you_tube_publisher_parent_class = NULL; -static gpointer publishing_you_tube_publishing_options_pane_parent_class = NULL; -static gpointer publishing_you_tube_publishing_options_pane_privacy_description_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_you_tube_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_you_tube_upload_transaction_parent_class = NULL; -static gpointer publishing_you_tube_uploader_parent_class = NULL; - -GType you_tube_service_get_type (void) G_GNUC_CONST; -#define YOU_TUBE_SERVICE_ICON_FILENAME "youtube.png" -YouTubeService* you_tube_service_new (GFile* resource_directory); -YouTubeService* you_tube_service_construct (GType object_type, - GFile* resource_directory); -static gint you_tube_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -static const gchar* you_tube_service_real_get_id (SpitPluggable* base); -static const gchar* you_tube_service_real_get_pluggable_name (SpitPluggable* base); -static void you_tube_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup11 (GdkPixbuf** self, - int length); -static SpitPublishingPublisher* you_tube_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host); -PublishingYouTubeYouTubePublisher* publishing_you_tube_you_tube_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host); -PublishingYouTubeYouTubePublisher* publishing_you_tube_you_tube_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host); -GType publishing_you_tube_you_tube_publisher_get_type (void) G_GNUC_CONST; -static SpitPublishingPublisherMediaType you_tube_service_real_get_supported_media (SpitPublishingService* base); -static void you_tube_service_real_activation (SpitPluggable* base, - gboolean enabled); -static void you_tube_service_finalize (GObject * obj); -#define PUBLISHING_YOU_TUBE_DEVELOPER_KEY "AIzaSyB6hLnm0n5j8Y6Bkvh9bz3i8ADM2bJdYeY" -GType publishing_you_tube_privacy_setting_get_type (void) G_GNUC_CONST; -gpointer publishing_you_tube_publishing_parameters_ref (gpointer instance); -void publishing_you_tube_publishing_parameters_unref (gpointer instance); -GParamSpec* publishing_you_tube_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void publishing_you_tube_value_set_publishing_parameters (GValue* value, - gpointer v_object); -void publishing_you_tube_value_take_publishing_parameters (GValue* value, - gpointer v_object); -gpointer publishing_you_tube_value_get_publishing_parameters (const GValue* value); -GType publishing_you_tube_publishing_parameters_get_type (void) G_GNUC_CONST; -#define PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS, PublishingYouTubePublishingParametersPrivate)) -PublishingYouTubePublishingParameters* publishing_you_tube_publishing_parameters_new (void); -PublishingYouTubePublishingParameters* publishing_you_tube_publishing_parameters_construct (GType object_type); -PublishingYouTubePrivacySetting publishing_you_tube_publishing_parameters_get_privacy (PublishingYouTubePublishingParameters* self); -void publishing_you_tube_publishing_parameters_set_privacy (PublishingYouTubePublishingParameters* self, - PublishingYouTubePrivacySetting privacy); -gchar* publishing_you_tube_publishing_parameters_get_user_name (PublishingYouTubePublishingParameters* self); -void publishing_you_tube_publishing_parameters_set_user_name (PublishingYouTubePublishingParameters* self, - const gchar* user_name); -static void publishing_you_tube_publishing_parameters_finalize (PublishingYouTubePublishingParameters * obj); -GType publishing_you_tube_you_tube_authorizer_get_type (void) G_GNUC_CONST; -#define PUBLISHING_YOU_TUBE_YOU_TUBE_AUTHORIZER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, PublishingYouTubeYouTubeAuthorizerPrivate)) -PublishingYouTubeYouTubeAuthorizer* publishing_you_tube_you_tube_authorizer_new (PublishingRESTSupportGoogleSession* session, - SpitPublishingAuthenticator* authenticator); -PublishingYouTubeYouTubeAuthorizer* publishing_you_tube_you_tube_authorizer_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - SpitPublishingAuthenticator* authenticator); -static gboolean publishing_you_tube_you_tube_authorizer_real_is_authorized_for_domain (GDataAuthorizer* base, - GDataAuthorizationDomain* domain); -static void publishing_you_tube_you_tube_authorizer_real_process_request (GDataAuthorizer* base, - GDataAuthorizationDomain* domain, - SoupMessage* message); -static gboolean publishing_you_tube_you_tube_authorizer_real_refresh_authorization (GDataAuthorizer* base, - GCancellable* cancellable, - GError** error); -static void publishing_you_tube_you_tube_authorizer_finalize (GObject * obj); -#define PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisherPrivate)) -static gboolean publishing_you_tube_you_tube_publisher_real_is_running (PublishingRESTSupportGooglePublisher* base); -static void publishing_you_tube_you_tube_publisher_real_start (PublishingRESTSupportGooglePublisher* base); -static void publishing_you_tube_you_tube_publisher_real_stop (PublishingRESTSupportGooglePublisher* base); -static void publishing_you_tube_you_tube_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* base); -static void publishing_you_tube_you_tube_publisher_do_show_publishing_options_pane (PublishingYouTubeYouTubePublisher* self); -static void publishing_you_tube_you_tube_publisher_on_publishing_options_logout (PublishingYouTubeYouTubePublisher* self); -static void publishing_you_tube_you_tube_publisher_on_publishing_options_publish (PublishingYouTubeYouTubePublisher* self); -static void publishing_you_tube_you_tube_publisher_do_upload (PublishingYouTubeYouTubePublisher* self); -static void publishing_you_tube_you_tube_publisher_on_upload_status_updated (PublishingYouTubeYouTubePublisher* self, - gint file_number, - gdouble completed_fraction); -static void publishing_you_tube_you_tube_publisher_on_upload_complete (PublishingYouTubeYouTubePublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published); -static void _publishing_you_tube_you_tube_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self); -static void publishing_you_tube_you_tube_publisher_on_upload_error (PublishingYouTubeYouTubePublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err); -static void _publishing_you_tube_you_tube_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self); -static void publishing_you_tube_you_tube_publisher_do_show_success_pane (PublishingYouTubeYouTubePublisher* self); -GType publishing_you_tube_publishing_options_pane_get_type (void) G_GNUC_CONST; -PublishingYouTubePublishingOptionsPane* publishing_you_tube_publishing_options_pane_new (SpitPublishingAuthenticator* authenticator, - SpitPublishingPluginHost* host, - GtkBuilder* builder, - PublishingYouTubePublishingParameters* publishing_parameters); -PublishingYouTubePublishingOptionsPane* publishing_you_tube_publishing_options_pane_construct (GType object_type, - SpitPublishingAuthenticator* authenticator, - SpitPublishingPluginHost* host, - GtkBuilder* builder, - PublishingYouTubePublishingParameters* publishing_parameters); -static void _publishing_you_tube_you_tube_publisher_on_publishing_options_publish_publishing_you_tube_publishing_options_pane_publish (PublishingYouTubePublishingOptionsPane* _sender, - gpointer self); -static void _publishing_you_tube_you_tube_publisher_on_publishing_options_logout_publishing_you_tube_publishing_options_pane_logout (PublishingYouTubePublishingOptionsPane* _sender, - gpointer self); -GType publishing_you_tube_uploader_get_type (void) G_GNUC_CONST; -PublishingYouTubeUploader* publishing_you_tube_uploader_new (GDataYouTubeService* youtube_service, - PublishingRESTSupportGoogleSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingYouTubePublishingParameters* parameters); -PublishingYouTubeUploader* publishing_you_tube_uploader_construct (GType object_type, - GDataYouTubeService* youtube_service, - PublishingRESTSupportGoogleSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingYouTubePublishingParameters* parameters); -static void _publishing_you_tube_you_tube_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -static void publishing_you_tube_you_tube_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* base); -static SpitPublishingAuthenticator* publishing_you_tube_you_tube_publisher_real_get_authenticator (PublishingRESTSupportGooglePublisher* base); -static void publishing_you_tube_you_tube_publisher_finalize (GObject * obj); -static gpointer publishing_you_tube_publishing_options_pane_privacy_description_ref (gpointer instance); -static void publishing_you_tube_publishing_options_pane_privacy_description_unref (gpointer instance); -static GParamSpec* publishing_you_tube_publishing_options_pane_param_spec_privacy_description (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void publishing_you_tube_publishing_options_pane_value_set_privacy_description (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void publishing_you_tube_publishing_options_pane_value_take_privacy_description (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer publishing_you_tube_publishing_options_pane_value_get_privacy_description (const GValue* value) G_GNUC_UNUSED; -static GType publishing_you_tube_publishing_options_pane_privacy_description_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPanePrivate)) -static PublishingYouTubePublishingOptionsPanePrivacyDescription** publishing_you_tube_publishing_options_pane_create_privacy_descriptions (PublishingYouTubePublishingOptionsPane* self, - int* result_length1); -static void publishing_you_tube_publishing_options_pane_on_logout_clicked (PublishingYouTubePublishingOptionsPane* self); -static void _publishing_you_tube_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_you_tube_publishing_options_pane_on_publish_clicked (PublishingYouTubePublishingOptionsPane* self); -static void _publishing_you_tube_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_you_tube_publishing_options_pane_update_publish_button_sensitivity (PublishingYouTubePublishingOptionsPane* self); -static PublishingYouTubePublishingOptionsPanePrivacyDescription* publishing_you_tube_publishing_options_pane_privacy_description_new (const gchar* description, - PublishingYouTubePrivacySetting privacy_setting); -static PublishingYouTubePublishingOptionsPanePrivacyDescription* publishing_you_tube_publishing_options_pane_privacy_description_construct (GType object_type, - const gchar* description, - PublishingYouTubePrivacySetting privacy_setting); -static void _vala_array_add35 (PublishingYouTubePublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingYouTubePublishingOptionsPanePrivacyDescription* value); -static void _vala_array_add36 (PublishingYouTubePublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingYouTubePublishingOptionsPanePrivacyDescription* value); -static void _vala_array_add37 (PublishingYouTubePublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingYouTubePublishingOptionsPanePrivacyDescription* value); -static GtkWidget* publishing_you_tube_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_you_tube_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_you_tube_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void publishing_you_tube_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void publishing_you_tube_publishing_options_pane_privacy_description_finalize (PublishingYouTubePublishingOptionsPanePrivacyDescription * obj); -static void publishing_you_tube_publishing_options_pane_finalize (GObject * obj); -GType publishing_you_tube_upload_transaction_get_type (void) G_GNUC_CONST; -#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransactionPrivate)) -#define PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_ENDPOINT_URL "https://uploads.gdata.youtube.com/feeds/api/users/default/uploads" -PublishingYouTubeUploadTransaction* publishing_you_tube_upload_transaction_new (GDataYouTubeService* youtube_service, - PublishingRESTSupportGoogleSession* session, - PublishingYouTubePublishingParameters* parameters, - SpitPublishingPublishable* publishable); -PublishingYouTubeUploadTransaction* publishing_you_tube_upload_transaction_construct (GType object_type, - GDataYouTubeService* youtube_service, - PublishingRESTSupportGoogleSession* session, - PublishingYouTubePublishingParameters* parameters, - SpitPublishingPublishable* publishable); -static void publishing_you_tube_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error); -static Block1Data* block1_data_ref (Block1Data* _data1_); -static void block1_data_unref (void * _userdata_); -static void publishing_you_tube_upload_transaction_splice_with_progress (PublishingYouTubeUploadTransaction* self, - GFileInfo* info, - GInputStream* input, - GOutputStream* output, - GAsyncReadyCallback _callback_, - gpointer _user_data_); -static void publishing_you_tube_upload_transaction_splice_with_progress_finish (PublishingYouTubeUploadTransaction* self, - GAsyncResult* _res_, - GError** error); -static void ___lambda4_ (Block1Data* _data1_, - GObject* obj, - GAsyncResult* res); -static void ____lambda4__gasync_ready_callback (GObject* source_object, - GAsyncResult* res, - gpointer self); -static void publishing_you_tube_upload_transaction_splice_with_progress_data_free (gpointer _data); -static void publishing_you_tube_upload_transaction_splice_with_progress_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data); -static gboolean publishing_you_tube_upload_transaction_splice_with_progress_co (PublishingYouTubeUploadTransactionSpliceWithProgressData* _data_); -static void publishing_you_tube_upload_transaction_splice_with_progress_ready (GObject* source_object, - GAsyncResult* _res_, - gpointer _user_data_); -static void publishing_you_tube_upload_transaction_finalize (PublishingRESTSupportTransaction * obj); -#define PUBLISHING_YOU_TUBE_UPLOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploaderPrivate)) -static PublishingRESTSupportTransaction* publishing_you_tube_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable); -static void publishing_you_tube_uploader_finalize (PublishingRESTSupportBatchUploader * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -YouTubeService* -you_tube_service_construct (GType object_type, - GFile* resource_directory) -{ - YouTubeService * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = (YouTubeService*) g_object_new (object_type, NULL); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = you_tube_service_icon_pixbuf_set; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0__length1 = you_tube_service_icon_pixbuf_set_length1; -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (_tmp0_ == NULL) { -#line 594 "YouTubePublishing.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" YOU_TUBE_SERVICE_ICON_FILENAME, &_tmp1_); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - you_tube_service_icon_pixbuf_set = (_vala_array_free (you_tube_service_icon_pixbuf_set, you_tube_service_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - you_tube_service_icon_pixbuf_set = _tmp2_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - you_tube_service_icon_pixbuf_set_length1 = _tmp1_; -#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _you_tube_service_icon_pixbuf_set_size_ = you_tube_service_icon_pixbuf_set_length1; -#line 607 "YouTubePublishing.c" - } -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self; -#line 611 "YouTubePublishing.c" -} - - -YouTubeService* -you_tube_service_new (GFile* resource_directory) -{ -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return you_tube_service_construct (TYPE_YOU_TUBE_SERVICE, resource_directory); -#line 620 "YouTubePublishing.c" -} - - -static gint -you_tube_service_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - YouTubeService * self; - gint result = 0; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 637 "YouTubePublishing.c" -} - - -static const gchar* -you_tube_service_real_get_id (SpitPluggable* base) -{ - YouTubeService * self; - const gchar* result = NULL; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = "org.yorba.shotwell.publishing.youtube"; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 652 "YouTubePublishing.c" -} - - -static const gchar* -you_tube_service_real_get_pluggable_name (SpitPluggable* base) -{ - YouTubeService * self; - const gchar* result = NULL; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = "YouTube"; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 667 "YouTubePublishing.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self ? g_object_ref (self) : NULL; -#line 676 "YouTubePublishing.c" -} - - -static GdkPixbuf** -_vala_array_dup11 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - for (i = 0; i < length; i++) { -#line 690 "YouTubePublishing.c" - GdkPixbuf* _tmp0_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result[i] = _tmp0_; -#line 696 "YouTubePublishing.c" - } -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 700 "YouTubePublishing.c" -} - - -static void -you_tube_service_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - YouTubeService * self; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GdkPixbuf** _tmp7_; - gint _tmp7__length1; - GdkPixbuf** _tmp8_; - gint _tmp8__length1; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService); -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (info != NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = g_strdup ("Jani Monoses, Lucas Beeler"); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 ((*info).authors); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).authors = _tmp0_; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = g_strdup (_ ("Copyright 2016 Software Freedom Conservancy Inc.")); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 ((*info).copyright); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).copyright = _tmp1_; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 ((*info).translators); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).translators = _tmp2_; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = g_strdup (_VERSION); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 ((*info).version); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).version = _tmp3_; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = g_strdup (RESOURCES_WEBSITE_NAME); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 ((*info).website_name); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).website_name = _tmp4_; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = g_strdup (RESOURCES_WEBSITE_URL); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 ((*info).website_url); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).website_url = _tmp5_; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).is_license_wordwrapped = FALSE; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = g_strdup (RESOURCES_LICENSE); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 ((*info).license); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).license = _tmp6_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7_ = you_tube_service_icon_pixbuf_set; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7__length1 = you_tube_service_icon_pixbuf_set_length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup11 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp8__length1 = _tmp7__length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).icons = _tmp8_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*info).icons_length1 = _tmp8__length1; -#line 782 "YouTubePublishing.c" -} - - -static SpitPublishingPublisher* -you_tube_service_real_create_publisher (SpitPublishingService* base, - SpitPublishingPluginHost* host) -{ - YouTubeService * self; - SpitPublishingPublisher* result = NULL; - PublishingYouTubeYouTubePublisher* _tmp0_; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = publishing_you_tube_you_tube_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 803 "YouTubePublishing.c" -} - - -static SpitPublishingPublisherMediaType -you_tube_service_real_get_supported_media (SpitPublishingService* base) -{ - YouTubeService * self; - SpitPublishingPublisherMediaType result = 0; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 818 "YouTubePublishing.c" -} - - -static void -you_tube_service_real_activation (SpitPluggable* base, - gboolean enabled) -{ - YouTubeService * self; -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_YOU_TUBE_SERVICE, YouTubeService); -#line 829 "YouTubePublishing.c" -} - - -static void -you_tube_service_class_init (YouTubeServiceClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - you_tube_service_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_OBJECT_CLASS (klass)->finalize = you_tube_service_finalize; -#line 840 "YouTubePublishing.c" -} - - -static void -you_tube_service_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - you_tube_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) you_tube_service_real_get_pluggable_interface; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) you_tube_service_real_get_id; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) you_tube_service_real_get_pluggable_name; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) you_tube_service_real_get_info; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) you_tube_service_real_activation; -#line 859 "YouTubePublishing.c" -} - - -static void -you_tube_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - you_tube_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) you_tube_service_real_create_publisher; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) you_tube_service_real_get_supported_media; -#line 872 "YouTubePublishing.c" -} - - -static void -you_tube_service_instance_init (YouTubeService * self) -{ -} - - -static void -you_tube_service_finalize (GObject * obj) -{ - YouTubeService * self; -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_YOU_TUBE_SERVICE, YouTubeService); -#line 7 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_OBJECT_CLASS (you_tube_service_parent_class)->finalize (obj); -#line 890 "YouTubePublishing.c" -} - - -GType -you_tube_service_get_type (void) -{ - static volatile gsize you_tube_service_type_id__volatile = 0; - if (g_once_init_enter (&you_tube_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (YouTubeServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) you_tube_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (YouTubeService), 0, (GInstanceInitFunc) you_tube_service_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) you_tube_service_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_publishing_service_info = { (GInterfaceInitFunc) you_tube_service_spit_publishing_service_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType you_tube_service_type_id; - you_tube_service_type_id = g_type_register_static (G_TYPE_OBJECT, "YouTubeService", &g_define_type_info, 0); - g_type_add_interface_static (you_tube_service_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (you_tube_service_type_id, SPIT_PUBLISHING_TYPE_SERVICE, &spit_publishing_service_info); - g_once_init_leave (&you_tube_service_type_id__volatile, you_tube_service_type_id); - } - return you_tube_service_type_id__volatile; -} - - -GType -publishing_you_tube_privacy_setting_get_type (void) -{ - static volatile gsize publishing_you_tube_privacy_setting_type_id__volatile = 0; - if (g_once_init_enter (&publishing_you_tube_privacy_setting_type_id__volatile)) { - static const GEnumValue values[] = {{PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC, "PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC", "public"}, {PUBLISHING_YOU_TUBE_PRIVACY_SETTING_UNLISTED, "PUBLISHING_YOU_TUBE_PRIVACY_SETTING_UNLISTED", "unlisted"}, {PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE, "PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE", "private"}, {0, NULL, NULL}}; - GType publishing_you_tube_privacy_setting_type_id; - publishing_you_tube_privacy_setting_type_id = g_enum_register_static ("PublishingYouTubePrivacySetting", values); - g_once_init_leave (&publishing_you_tube_privacy_setting_type_id__volatile, publishing_you_tube_privacy_setting_type_id); - } - return publishing_you_tube_privacy_setting_type_id__volatile; -} - - -PublishingYouTubePublishingParameters* -publishing_you_tube_publishing_parameters_construct (GType object_type) -{ - PublishingYouTubePublishingParameters* self = NULL; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = (PublishingYouTubePublishingParameters*) g_type_create_instance (object_type); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy = PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (self->priv->user_name); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->user_name = NULL; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self; -#line 940 "YouTubePublishing.c" -} - - -PublishingYouTubePublishingParameters* -publishing_you_tube_publishing_parameters_new (void) -{ -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return publishing_you_tube_publishing_parameters_construct (PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS); -#line 949 "YouTubePublishing.c" -} - - -PublishingYouTubePrivacySetting -publishing_you_tube_publishing_parameters_get_privacy (PublishingYouTubePublishingParameters* self) -{ - PublishingYouTubePrivacySetting result = 0; - PublishingYouTubePrivacySetting _tmp0_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (self), 0); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->privacy; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = _tmp0_; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 966 "YouTubePublishing.c" -} - - -void -publishing_you_tube_publishing_parameters_set_privacy (PublishingYouTubePublishingParameters* self, - PublishingYouTubePrivacySetting privacy) -{ -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (self)); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy = privacy; -#line 978 "YouTubePublishing.c" -} - - -gchar* -publishing_you_tube_publishing_parameters_get_user_name (PublishingYouTubePublishingParameters* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (self), NULL); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->user_name; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = _tmp1_; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 998 "YouTubePublishing.c" -} - - -void -publishing_you_tube_publishing_parameters_set_user_name (PublishingYouTubePublishingParameters* self, - const gchar* user_name) -{ - gchar* _tmp0_; -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (self)); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = g_strdup (user_name); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (self->priv->user_name); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->user_name = _tmp0_; -#line 1015 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_value_publishing_parameters_init (GValue* value) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = NULL; -#line 1024 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_value_publishing_parameters_free_value (GValue* value) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (value->data[0].v_pointer) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_parameters_unref (value->data[0].v_pointer); -#line 1035 "YouTubePublishing.c" - } -} - - -static void -publishing_you_tube_value_publishing_parameters_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (src_value->data[0].v_pointer) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - dest_value->data[0].v_pointer = publishing_you_tube_publishing_parameters_ref (src_value->data[0].v_pointer); -#line 1048 "YouTubePublishing.c" - } else { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 1052 "YouTubePublishing.c" - } -} - - -static gpointer -publishing_you_tube_value_publishing_parameters_peek_pointer (const GValue* value) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return value->data[0].v_pointer; -#line 1062 "YouTubePublishing.c" -} - - -static gchar* -publishing_you_tube_value_publishing_parameters_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (collect_values[0].v_pointer) { -#line 1074 "YouTubePublishing.c" - PublishingYouTubePublishingParameters * object; - object = collect_values[0].v_pointer; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1081 "YouTubePublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1085 "YouTubePublishing.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = publishing_you_tube_publishing_parameters_ref (object); -#line 1089 "YouTubePublishing.c" - } else { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = NULL; -#line 1093 "YouTubePublishing.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return NULL; -#line 1097 "YouTubePublishing.c" -} - - -static gchar* -publishing_you_tube_value_publishing_parameters_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingYouTubePublishingParameters ** object_p; - object_p = collect_values[0].v_pointer; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!object_p) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1113 "YouTubePublishing.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!value->data[0].v_pointer) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *object_p = NULL; -#line 1119 "YouTubePublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *object_p = value->data[0].v_pointer; -#line 1123 "YouTubePublishing.c" - } else { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *object_p = publishing_you_tube_publishing_parameters_ref (value->data[0].v_pointer); -#line 1127 "YouTubePublishing.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return NULL; -#line 1131 "YouTubePublishing.c" -} - - -GParamSpec* -publishing_you_tube_param_spec_publishing_parameters (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingYouTubeParamSpecPublishingParameters* spec; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return G_PARAM_SPEC (spec); -#line 1151 "YouTubePublishing.c" -} - - -gpointer -publishing_you_tube_value_get_publishing_parameters (const GValue* value) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS), NULL); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return value->data[0].v_pointer; -#line 1162 "YouTubePublishing.c" -} - - -void -publishing_you_tube_value_set_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingYouTubePublishingParameters * old; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS)); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - old = value->data[0].v_pointer; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (v_object) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS)); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = v_object; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_parameters_ref (value->data[0].v_pointer); -#line 1185 "YouTubePublishing.c" - } else { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = NULL; -#line 1189 "YouTubePublishing.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (old) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_parameters_unref (old); -#line 1195 "YouTubePublishing.c" - } -} - - -void -publishing_you_tube_value_take_publishing_parameters (GValue* value, - gpointer v_object) -{ - PublishingYouTubePublishingParameters * old; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS)); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - old = value->data[0].v_pointer; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (v_object) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS)); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = v_object; -#line 1217 "YouTubePublishing.c" - } else { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = NULL; -#line 1221 "YouTubePublishing.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (old) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_parameters_unref (old); -#line 1227 "YouTubePublishing.c" - } -} - - -static void -publishing_you_tube_publishing_parameters_class_init (PublishingYouTubePublishingParametersClass * klass) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_parameters_parent_class = g_type_class_peek_parent (klass); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingYouTubePublishingParametersClass *) klass)->finalize = publishing_you_tube_publishing_parameters_finalize; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYouTubePublishingParametersPrivate)); -#line 1241 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_parameters_instance_init (PublishingYouTubePublishingParameters * self) -{ -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv = PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS_GET_PRIVATE (self); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->ref_count = 1; -#line 1252 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_parameters_finalize (PublishingYouTubePublishingParameters * obj) -{ - PublishingYouTubePublishingParameters * self; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_PARAMETERS, PublishingYouTubePublishingParameters); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_handlers_destroy (self); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (self->priv->user_name); -#line 1266 "YouTubePublishing.c" -} - - -GType -publishing_you_tube_publishing_parameters_get_type (void) -{ - static volatile gsize publishing_you_tube_publishing_parameters_type_id__volatile = 0; - if (g_once_init_enter (&publishing_you_tube_publishing_parameters_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_you_tube_value_publishing_parameters_init, publishing_you_tube_value_publishing_parameters_free_value, publishing_you_tube_value_publishing_parameters_copy_value, publishing_you_tube_value_publishing_parameters_peek_pointer, "p", publishing_you_tube_value_publishing_parameters_collect_value, "p", publishing_you_tube_value_publishing_parameters_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubePublishingParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_publishing_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubePublishingParameters), 0, (GInstanceInitFunc) publishing_you_tube_publishing_parameters_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_you_tube_publishing_parameters_type_id; - publishing_you_tube_publishing_parameters_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingYouTubePublishingParameters", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_you_tube_publishing_parameters_type_id__volatile, publishing_you_tube_publishing_parameters_type_id); - } - return publishing_you_tube_publishing_parameters_type_id__volatile; -} - - -gpointer -publishing_you_tube_publishing_parameters_ref (gpointer instance) -{ - PublishingYouTubePublishingParameters * self; - self = instance; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return instance; -#line 1295 "YouTubePublishing.c" -} - - -void -publishing_you_tube_publishing_parameters_unref (gpointer instance) -{ - PublishingYouTubePublishingParameters * self; - self = instance; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - PUBLISHING_YOU_TUBE_PUBLISHING_PARAMETERS_GET_CLASS (self)->finalize (self); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1310 "YouTubePublishing.c" - } -} - - -static gpointer -_publishing_rest_support_session_ref0 (gpointer self) -{ -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self ? publishing_rest_support_session_ref (self) : NULL; -#line 1320 "YouTubePublishing.c" -} - - -PublishingYouTubeYouTubeAuthorizer* -publishing_you_tube_you_tube_authorizer_construct (GType object_type, - PublishingRESTSupportGoogleSession* session, - SpitPublishingAuthenticator* authenticator) -{ - PublishingYouTubeYouTubeAuthorizer * self = NULL; - PublishingRESTSupportGoogleSession* _tmp0_; - SpitPublishingAuthenticator* _tmp1_; -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL); -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (authenticator), NULL); -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = (PublishingYouTubeYouTubeAuthorizer*) g_object_new (object_type, NULL); -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = _publishing_rest_support_session_ref0 (session); -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->session = _tmp0_; -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = _g_object_ref0 (authenticator); -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 98 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->authenticator = _tmp1_; -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self; -#line 1352 "YouTubePublishing.c" -} - - -PublishingYouTubeYouTubeAuthorizer* -publishing_you_tube_you_tube_authorizer_new (PublishingRESTSupportGoogleSession* session, - SpitPublishingAuthenticator* authenticator) -{ -#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return publishing_you_tube_you_tube_authorizer_construct (PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, session, authenticator); -#line 1362 "YouTubePublishing.c" -} - - -static gboolean -publishing_you_tube_you_tube_authorizer_real_is_authorized_for_domain (GDataAuthorizer* base, - GDataAuthorizationDomain* domain) -{ - PublishingYouTubeYouTubeAuthorizer * self; - gboolean result = FALSE; -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, PublishingYouTubeYouTubeAuthorizer); -#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (GDATA_IS_AUTHORIZATION_DOMAIN (domain), FALSE); -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = TRUE; -#line 102 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 1380 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_authorizer_real_process_request (GDataAuthorizer* base, - GDataAuthorizationDomain* domain, - SoupMessage* message) -{ - PublishingYouTubeYouTubeAuthorizer * self; - gchar* header = NULL; - PublishingRESTSupportGoogleSession* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - SoupMessageHeaders* _tmp5_; - const gchar* _tmp6_; -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, PublishingYouTubeYouTubeAuthorizer); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail ((domain == NULL) || GDATA_IS_AUTHORIZATION_DOMAIN (domain)); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (SOUP_IS_MESSAGE (message)); -#line 107 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (domain == NULL) { -#line 108 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1408 "YouTubePublishing.c" - } -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->session; -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = publishing_rest_support_google_session_get_access_token (_tmp0_); -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = _tmp1_; -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = g_strdup_printf ("Bearer %s", _tmp2_); -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = _tmp3_; -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (_tmp2_); -#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - header = _tmp4_; -#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = message->request_headers; -#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = header; -#line 112 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - soup_message_headers_replace (_tmp5_, "Authorization", _tmp6_); -#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (header); -#line 1432 "YouTubePublishing.c" -} - - -static gboolean -publishing_you_tube_you_tube_authorizer_real_refresh_authorization (GDataAuthorizer* base, - GCancellable* cancellable, - GError** error) -{ - PublishingYouTubeYouTubeAuthorizer * self; - gboolean result = FALSE; - SpitPublishingAuthenticator* _tmp0_; -#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, PublishingYouTubeYouTubeAuthorizer); -#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable), FALSE); -#line 116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 116 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_authenticator_refresh (_tmp0_); -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = TRUE; -#line 117 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 1456 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_authorizer_class_init (PublishingYouTubeYouTubeAuthorizerClass * klass) -{ -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_authorizer_parent_class = g_type_class_peek_parent (klass); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYouTubeYouTubeAuthorizerPrivate)); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_you_tube_you_tube_authorizer_finalize; -#line 1469 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_authorizer_gdata_authorizer_interface_init (GDataAuthorizerInterface * iface) -{ -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_authorizer_gdata_authorizer_parent_iface = g_type_interface_peek_parent (iface); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->is_authorized_for_domain = (gboolean (*) (GDataAuthorizer *, GDataAuthorizationDomain*)) publishing_you_tube_you_tube_authorizer_real_is_authorized_for_domain; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->process_request = (void (*) (GDataAuthorizer *, GDataAuthorizationDomain*, SoupMessage*)) publishing_you_tube_you_tube_authorizer_real_process_request; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->refresh_authorization = (gboolean (*) (GDataAuthorizer *, GCancellable*, GError**)) publishing_you_tube_you_tube_authorizer_real_refresh_authorization; -#line 1484 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_authorizer_instance_init (PublishingYouTubeYouTubeAuthorizer * self) -{ -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv = PUBLISHING_YOU_TUBE_YOU_TUBE_AUTHORIZER_GET_PRIVATE (self); -#line 1493 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_authorizer_finalize (GObject * obj) -{ - PublishingYouTubeYouTubeAuthorizer * self; -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_AUTHORIZER, PublishingYouTubeYouTubeAuthorizer); -#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_OBJECT_CLASS (publishing_you_tube_you_tube_authorizer_parent_class)->finalize (obj); -#line 1509 "YouTubePublishing.c" -} - - -GType -publishing_you_tube_you_tube_authorizer_get_type (void) -{ - static volatile gsize publishing_you_tube_you_tube_authorizer_type_id__volatile = 0; - if (g_once_init_enter (&publishing_you_tube_you_tube_authorizer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubeYouTubeAuthorizerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_you_tube_authorizer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubeYouTubeAuthorizer), 0, (GInstanceInitFunc) publishing_you_tube_you_tube_authorizer_instance_init, NULL }; - static const GInterfaceInfo gdata_authorizer_info = { (GInterfaceInitFunc) publishing_you_tube_you_tube_authorizer_gdata_authorizer_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_you_tube_you_tube_authorizer_type_id; - publishing_you_tube_you_tube_authorizer_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingYouTubeYouTubeAuthorizer", &g_define_type_info, 0); - g_type_add_interface_static (publishing_you_tube_you_tube_authorizer_type_id, gdata_authorizer_get_type (), &gdata_authorizer_info); - g_once_init_leave (&publishing_you_tube_you_tube_authorizer_type_id__volatile, publishing_you_tube_you_tube_authorizer_type_id); - } - return publishing_you_tube_you_tube_authorizer_type_id__volatile; -} - - -PublishingYouTubeYouTubePublisher* -publishing_you_tube_you_tube_publisher_construct (GType object_type, - SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ - PublishingYouTubeYouTubePublisher * self = NULL; - PublishingYouTubePublishingParameters* _tmp0_; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 129 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = (PublishingYouTubeYouTubePublisher*) publishing_rest_support_google_publisher_construct (object_type, service, host, "https://gdata.youtube.com/"); -#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->running = FALSE; -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = publishing_you_tube_publishing_parameters_new (); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_parameters_unref0 (self->priv->publishing_parameters); -#line 132 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->publishing_parameters = _tmp0_; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 133 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self; -#line 1566 "YouTubePublishing.c" -} - - -PublishingYouTubeYouTubePublisher* -publishing_you_tube_you_tube_publisher_new (SpitPublishingService* service, - SpitPublishingPluginHost* host) -{ -#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return publishing_you_tube_you_tube_publisher_construct (PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, service, host); -#line 1576 "YouTubePublishing.c" -} - - -static gboolean -publishing_you_tube_you_tube_publisher_real_is_running (PublishingRESTSupportGooglePublisher* base) -{ - PublishingYouTubeYouTubePublisher * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 136 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher); -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->running; -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = _tmp0_; -#line 137 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 1594 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_real_start (PublishingRESTSupportGooglePublisher* base) -{ - PublishingYouTubeYouTubePublisher * self; - SpitPublishingAuthenticator* _tmp0_; -#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher); -#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:141: YouTubePublisher: started."); -#line 143 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1611 "YouTubePublishing.c" - } -#line 146 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->running = TRUE; -#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_authenticator_authenticate (_tmp0_); -#line 1619 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_real_stop (PublishingRESTSupportGooglePublisher* base) -{ - PublishingYouTubeYouTubePublisher * self; - PublishingRESTSupportGoogleSession* _tmp0_; - PublishingRESTSupportGoogleSession* _tmp1_; -#line 151 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher); -#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:152: YouTubePublisher: stopped."); -#line 154 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->running = FALSE; -#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = _tmp0_; -#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_rest_support_session_stop_transactions (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)); -#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (_tmp1_); -#line 1643 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_real_on_login_flow_complete (PublishingRESTSupportGooglePublisher* base) -{ - PublishingYouTubeYouTubePublisher * self; - PublishingYouTubePublishingParameters* _tmp0_; - PublishingRESTSupportGoogleSession* _tmp1_; - PublishingRESTSupportGoogleSession* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - PublishingRESTSupportGoogleSession* _tmp5_; - PublishingRESTSupportGoogleSession* _tmp6_; - SpitPublishingAuthenticator* _tmp7_; - PublishingYouTubeYouTubeAuthorizer* _tmp8_; - PublishingYouTubeYouTubeAuthorizer* _tmp9_; - GDataYouTubeService* _tmp10_; -#line 159 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher); -#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:160: EVENT: OAuth login flow complete."); -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->publishing_parameters; -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = _tmp1_; -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = publishing_rest_support_google_session_get_user_name (_tmp2_); -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = _tmp3_; -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_parameters_set_user_name (_tmp0_, _tmp4_); -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (_tmp4_); -#line 162 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (_tmp2_); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = _tmp5_; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7_ = self->priv->authenticator; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp8_ = publishing_you_tube_you_tube_authorizer_new (_tmp6_, _tmp7_); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp9_ = _tmp8_; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp10_ = gdata_youtube_service_new (PUBLISHING_YOU_TUBE_DEVELOPER_KEY, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gdata_authorizer_get_type (), GDataAuthorizer)); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->youtube_service); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->youtube_service = _tmp10_; -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_tmp9_); -#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (_tmp6_); -#line 166 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_do_show_publishing_options_pane (self); -#line 1704 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_on_publishing_options_logout (PublishingYouTubeYouTubePublisher* self) -{ -#line 169 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self)); -#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:170: EVENT: user clicked 'Logout' in the publis" \ -"hing options pane."); -#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 173 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1719 "YouTubePublishing.c" - } -#line 175 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_rest_support_google_publisher_do_logout (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 1723 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_on_publishing_options_publish (PublishingYouTubeYouTubePublisher* self) -{ -#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self)); -#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:179: EVENT: user clicked 'Publish' in the publi" \ -"shing options pane."); -#line 181 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1738 "YouTubePublishing.c" - } -#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_do_upload (self); -#line 1742 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_on_upload_status_updated (PublishingYouTubeYouTubePublisher* self, - gint file_number, - gdouble completed_fraction) -{ - SpitPublishingProgressCallback _tmp0_; - void* _tmp0__target; - SpitPublishingProgressCallback _tmp1_; - void* _tmp1__target; -#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self)); -#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:188: EVENT: uploader reports upload %.2f percen" \ -"t complete.", 100.0 * completed_fraction); -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->progress_reporter; -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0__target = self->priv->progress_reporter_target; -#line 190 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); -#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 193 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1769 "YouTubePublishing.c" - } -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = self->priv->progress_reporter; -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1__target = self->priv->progress_reporter_target; -#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ (file_number, completed_fraction, _tmp1__target); -#line 1777 "YouTubePublishing.c" -} - - -static void -_publishing_you_tube_you_tube_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete (PublishingRESTSupportBatchUploader* _sender, - gint num_photos_published, - gpointer self) -{ -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_on_upload_complete ((PublishingYouTubeYouTubePublisher*) self, _sender, num_photos_published); -#line 1788 "YouTubePublishing.c" -} - - -static void -_publishing_you_tube_you_tube_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, - GError* err, - gpointer self) -{ -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_on_upload_error ((PublishingYouTubeYouTubePublisher*) self, _sender, err); -#line 1799 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_on_upload_complete (PublishingYouTubeYouTubePublisher* self, - PublishingRESTSupportBatchUploader* uploader, - gint num_published) -{ - guint _tmp0_; - guint _tmp1_; -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self)); -#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 200 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 203 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:203: EVENT: uploader reports upload complete; %" \ -"d items published.", num_published); -#line 205 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 206 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1828 "YouTubePublishing.c" - } -#line 208 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_do_show_success_pane (self); -#line 1832 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_on_upload_error (PublishingYouTubeYouTubePublisher* self, - PublishingRESTSupportBatchUploader* uploader, - GError* err) -{ - guint _tmp0_; - guint _tmp1_; - const gchar* _tmp2_; - SpitPublishingPluginHost* _tmp3_; -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self)); -#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); -#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); -#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); -#line 214 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); -#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 217 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1861 "YouTubePublishing.c" - } -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = err->message; -#line 219 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:219: EVENT: uploader reports upload error = '%s" \ -"'.", _tmp2_); -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_plugin_host_post_error (_tmp3_, err); -#line 1871 "YouTubePublishing.c" -} - - -static void -_publishing_you_tube_you_tube_publisher_on_publishing_options_publish_publishing_you_tube_publishing_options_pane_publish (PublishingYouTubePublishingOptionsPane* _sender, - gpointer self) -{ -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_on_publishing_options_publish ((PublishingYouTubeYouTubePublisher*) self); -#line 1881 "YouTubePublishing.c" -} - - -static void -_publishing_you_tube_you_tube_publisher_on_publishing_options_logout_publishing_you_tube_publishing_options_pane_logout (PublishingYouTubePublishingOptionsPane* _sender, - gpointer self) -{ -#line 242 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_on_publishing_options_logout ((PublishingYouTubeYouTubePublisher*) self); -#line 1891 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_do_show_publishing_options_pane (PublishingYouTubeYouTubePublisher* self) -{ - GtkBuilder* builder = NULL; - GtkBuilder* _tmp0_; - PublishingYouTubePublishingOptionsPane* opts_pane = NULL; - SpitPublishingAuthenticator* _tmp7_; - SpitPublishingPluginHost* _tmp8_; - GtkBuilder* _tmp9_; - PublishingYouTubePublishingParameters* _tmp10_; - PublishingYouTubePublishingOptionsPane* _tmp11_; - PublishingYouTubePublishingOptionsPane* _tmp12_; - PublishingYouTubePublishingOptionsPane* _tmp13_; - SpitPublishingPluginHost* _tmp14_; - PublishingYouTubePublishingOptionsPane* _tmp15_; - SpitPublishingPluginHost* _tmp16_; - GError * _inner_error_ = NULL; -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self)); -#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:225: ACTION: showing publishing options pane."); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = gtk_builder_new (); -#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - builder = _tmp0_; -#line 1920 "YouTubePublishing.c" - { - GtkBuilder* _tmp1_; -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = builder; -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gtk_builder_add_from_resource (_tmp1_, PLUGIN_RESOURCE_PATH "/youtube_publishing_options_pane.ui", &_inner_error_); -#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1929 "YouTubePublishing.c" - goto __catch25_g_error; - } - } - goto __finally25; - __catch25_g_error: - { - GError* e = NULL; - GError* _tmp2_; - const gchar* _tmp3_; - SpitPublishingPluginHost* _tmp4_; - GError* _tmp5_; - GError* _tmp6_; -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - e = _inner_error_; -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _inner_error_ = NULL; -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = e; -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = _tmp2_->message; -#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_warning ("YouTubePublishing.vala:233: Could not parse UI file! Error: %s.", _tmp3_); -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _ ("A file required for publishing is unavailable. Publishing to YouTube c" \ -"an’t continue.")); -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = _tmp5_; -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_plugin_host_post_error (_tmp4_, _tmp6_); -#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_error_free0 (_tmp6_); -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_error_free0 (e); -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (builder); -#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1968 "YouTubePublishing.c" - } - __finally25: -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (builder); -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_clear_error (&_inner_error_); -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 1981 "YouTubePublishing.c" - } -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7_ = self->priv->authenticator; -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp8_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp9_ = builder; -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp10_ = self->priv->publishing_parameters; -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp11_ = publishing_you_tube_publishing_options_pane_new (_tmp7_, _tmp8_, _tmp9_, _tmp10_); -#line 240 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - opts_pane = _tmp11_; -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp12_ = opts_pane; -#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_connect_object (_tmp12_, "publish", (GCallback) _publishing_you_tube_you_tube_publisher_on_publishing_options_publish_publishing_you_tube_publishing_options_pane_publish, self, 0); -#line 242 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp13_ = opts_pane; -#line 242 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_connect_object (_tmp13_, "logout", (GCallback) _publishing_you_tube_you_tube_publisher_on_publishing_options_logout_publishing_you_tube_publishing_options_pane_logout, self, 0); -#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp14_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp15_ = opts_pane; -#line 243 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_plugin_host_install_dialog_pane (_tmp14_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp16_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp16_, FALSE); -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (opts_pane); -#line 224 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (builder); -#line 2017 "YouTubePublishing.c" -} - - -static void -_publishing_you_tube_you_tube_publisher_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 269 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_on_upload_status_updated ((PublishingYouTubeYouTubePublisher*) self, file_number, fraction_complete); -#line 2028 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_do_upload (PublishingYouTubeYouTubePublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; - SpitPublishingPluginHost* _tmp2_; - void* _tmp3_; - GDestroyNotify _tmp4_; - SpitPublishingProgressCallback _tmp5_; - SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp6_; - gint _tmp7_; - SpitPublishingPublishable** _tmp8_; - gint publishables_length1; - gint _publishables_size_; - PublishingYouTubeUploader* uploader = NULL; - GDataYouTubeService* _tmp9_; - PublishingRESTSupportGoogleSession* _tmp10_; - PublishingRESTSupportGoogleSession* _tmp11_; - SpitPublishingPublishable** _tmp12_; - gint _tmp12__length1; - PublishingYouTubePublishingParameters* _tmp13_; - PublishingYouTubeUploader* _tmp14_; - PublishingYouTubeUploader* _tmp15_; - PublishingYouTubeUploader* _tmp16_; - PublishingYouTubeUploader* _tmp17_; - PublishingYouTubeUploader* _tmp18_; -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self)); -#line 249 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:249: ACTION: uploading media items to remote se" \ -"rver."); -#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); -#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 252 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_plugin_host_install_account_fetch_wait_pane (_tmp1_); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = spit_publishing_plugin_host_serialize_publishables (_tmp2_, -1, FALSE, &_tmp3_, &_tmp4_); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter = NULL; -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter = _tmp5_; -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target = _tmp3_; -#line 254 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp4_; -#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!publishing_rest_support_google_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher))) { -#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 2093 "YouTubePublishing.c" - } -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp8_ = spit_publishing_plugin_host_get_publishables (_tmp6_, &_tmp7_); -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishables = _tmp8_; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishables_length1 = _tmp7_; -#line 263 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishables_size_ = publishables_length1; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp9_ = self->priv->youtube_service; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp10_ = publishing_rest_support_google_publisher_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp11_ = _tmp10_; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp12_ = publishables; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp12__length1 = publishables_length1; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp13_ = self->priv->publishing_parameters; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp14_ = publishing_you_tube_uploader_new (_tmp9_, _tmp11_, _tmp12_, _tmp12__length1, _tmp13_); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp15_ = _tmp14_; -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (_tmp11_); -#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - uploader = _tmp15_; -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp16_ = uploader; -#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-complete", (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self, 0); -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp17_ = uploader; -#line 267 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), "upload-error", (GCallback) _publishing_you_tube_you_tube_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self, 0); -#line 269 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp18_ = uploader; -#line 269 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_you_tube_you_tube_publisher_on_upload_status_updated_spit_publishing_progress_callback, self); -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_batch_uploader_unref0 (uploader); -#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 2141 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_do_show_success_pane (PublishingYouTubeYouTubePublisher* self) -{ - SpitPublishingPluginHost* _tmp0_; - SpitPublishingPluginHost* _tmp1_; -#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_YOU_TUBE_PUBLISHER (self)); -#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:273: ACTION: showing success pane."); -#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 275 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 276 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_plugin_host_install_success_pane (_tmp1_); -#line 2162 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_real_do_logout (PublishingRESTSupportGooglePublisher* base) -{ - PublishingYouTubeYouTubePublisher * self; - SpitPublishingAuthenticator* _tmp0_; -#line 279 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher); -#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_debug ("YouTubePublishing.vala:280: ACTION: logging out user."); -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 282 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (spit_publishing_authenticator_can_logout (_tmp0_)) { -#line 2179 "YouTubePublishing.c" - SpitPublishingAuthenticator* _tmp1_; - SpitPublishingAuthenticator* _tmp2_; -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = self->priv->authenticator; -#line 283 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_authenticator_logout (_tmp1_); -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = self->priv->authenticator; -#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spit_publishing_authenticator_authenticate (_tmp2_); -#line 2190 "YouTubePublishing.c" - } -} - - -static SpitPublishingAuthenticator* -publishing_you_tube_you_tube_publisher_real_get_authenticator (PublishingRESTSupportGooglePublisher* base) -{ - PublishingYouTubeYouTubePublisher * self; - SpitPublishingAuthenticator* result = NULL; - SpitPublishingAuthenticator* _tmp0_; - SpitPublishingAuthenticator* _tmp5_; - SpitPublishingAuthenticator* _tmp6_; -#line 288 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher); -#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->authenticator; -#line 289 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (_tmp0_ == NULL) { -#line 2209 "YouTubePublishing.c" - PublishingAuthenticatorFactory* _tmp1_; - PublishingAuthenticatorFactory* _tmp2_; - SpitPublishingPluginHost* _tmp3_; - SpitPublishingAuthenticator* _tmp4_; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = publishing_authenticator_factory_get_instance (); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = _tmp1_; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = publishing_rest_support_google_publisher_get_host (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, PublishingRESTSupportGooglePublisher)); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = spit_publishing_authenticator_factory_create (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory), "youtube", _tmp3_); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->authenticator = _tmp4_; -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_tmp2_); -#line 2228 "YouTubePublishing.c" - } -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = self->priv->authenticator; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = _g_object_ref0 (_tmp5_); -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = _tmp6_; -#line 294 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 2238 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_class_init (PublishingYouTubeYouTubePublisherClass * klass) -{ -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_you_tube_publisher_parent_class = g_type_class_peek_parent (klass); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYouTubeYouTubePublisherPrivate)); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->is_running = (gboolean (*) (PublishingRESTSupportGooglePublisher *)) publishing_you_tube_you_tube_publisher_real_is_running; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->start = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_you_tube_you_tube_publisher_real_start; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->stop = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_you_tube_you_tube_publisher_real_stop; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->on_login_flow_complete = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_you_tube_you_tube_publisher_real_on_login_flow_complete; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->do_logout = (void (*) (PublishingRESTSupportGooglePublisher *)) publishing_you_tube_you_tube_publisher_real_do_logout; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportGooglePublisherClass *) klass)->get_authenticator = (SpitPublishingAuthenticator* (*) (PublishingRESTSupportGooglePublisher *)) publishing_you_tube_you_tube_publisher_real_get_authenticator; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_you_tube_you_tube_publisher_finalize; -#line 2263 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_instance_init (PublishingYouTubeYouTubePublisher * self) -{ -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv = PUBLISHING_YOU_TUBE_YOU_TUBE_PUBLISHER_GET_PRIVATE (self); -#line 2272 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_you_tube_publisher_finalize (GObject * obj) -{ - PublishingYouTubeYouTubePublisher * self; -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_TYPE_YOU_TUBE_PUBLISHER, PublishingYouTubeYouTubePublisher); -#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_parameters_unref0 (self->priv->publishing_parameters); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (self->priv->progress_reporter_target_destroy_notify == NULL) ? NULL : (self->priv->progress_reporter_target_destroy_notify (self->priv->progress_reporter_target), NULL); -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter = NULL; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target = NULL; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->progress_reporter_target_destroy_notify = NULL; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->authenticator); -#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->youtube_service); -#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_OBJECT_CLASS (publishing_you_tube_you_tube_publisher_parent_class)->finalize (obj); -#line 2298 "YouTubePublishing.c" -} - - -GType -publishing_you_tube_you_tube_publisher_get_type (void) -{ - static volatile gsize publishing_you_tube_you_tube_publisher_type_id__volatile = 0; - if (g_once_init_enter (&publishing_you_tube_you_tube_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubeYouTubePublisherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_you_tube_publisher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubeYouTubePublisher), 0, (GInstanceInitFunc) publishing_you_tube_you_tube_publisher_instance_init, NULL }; - GType publishing_you_tube_you_tube_publisher_type_id; - publishing_you_tube_you_tube_publisher_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_PUBLISHER, "PublishingYouTubeYouTubePublisher", &g_define_type_info, 0); - g_once_init_leave (&publishing_you_tube_you_tube_publisher_type_id__volatile, publishing_you_tube_you_tube_publisher_type_id); - } - return publishing_you_tube_you_tube_publisher_type_id__volatile; -} - - -static gpointer -_publishing_you_tube_publishing_parameters_ref0 (gpointer self) -{ -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self ? publishing_you_tube_publishing_parameters_ref (self) : NULL; -#line 2321 "YouTubePublishing.c" -} - - -static gpointer -_publishing_you_tube_publishing_options_pane_privacy_description_ref0 (gpointer self) -{ -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self ? publishing_you_tube_publishing_options_pane_privacy_description_ref (self) : NULL; -#line 2330 "YouTubePublishing.c" -} - - -static void -_publishing_you_tube_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_on_logout_clicked ((PublishingYouTubePublishingOptionsPane*) self); -#line 2340 "YouTubePublishing.c" -} - - -static void -_publishing_you_tube_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_on_publish_clicked ((PublishingYouTubePublishingOptionsPane*) self); -#line 2350 "YouTubePublishing.c" -} - - -PublishingYouTubePublishingOptionsPane* -publishing_you_tube_publishing_options_pane_construct (GType object_type, - SpitPublishingAuthenticator* authenticator, - SpitPublishingPluginHost* host, - GtkBuilder* builder, - PublishingYouTubePublishingParameters* publishing_parameters) -{ - PublishingYouTubePublishingOptionsPane * self = NULL; - gint _tmp0_; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp1_; - PublishingYouTubePublishingParameters* _tmp2_; - GtkBuilder* _tmp3_; - GSList* _tmp4_; - GSList* _tmp5_; - GtkBuilder* _tmp6_; - GObject* _tmp7_; - GtkLabel* _tmp8_; - GtkBuilder* _tmp9_; - GObject* _tmp10_; - GtkComboBoxText* _tmp11_; - GtkBuilder* _tmp12_; - GObject* _tmp13_; - GtkButton* _tmp14_; - GtkBuilder* _tmp15_; - GObject* _tmp16_; - GtkButton* _tmp17_; - GtkBuilder* _tmp18_; - GObject* _tmp19_; - GtkBox* _tmp20_; - GtkBuilder* _tmp21_; - GObject* _tmp22_; - GtkLabel* _tmp23_; - GtkLabel* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp33_; - gint _tmp33__length1; - GtkComboBoxText* _tmp38_; - GtkLabel* _tmp39_; - GtkComboBoxText* _tmp40_; - GtkButton* _tmp41_; - GtkButton* _tmp42_; -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (authenticator), NULL); -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (GTK_IS_BUILDER (builder), NULL); -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (publishing_parameters), NULL); -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = (PublishingYouTubePublishingOptionsPane*) g_object_new (object_type, NULL); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = publishing_you_tube_publishing_options_pane_create_privacy_descriptions (self, &_tmp0_); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy_descriptions = (_vala_array_free (self->priv->privacy_descriptions, self->priv->privacy_descriptions_length1, (GDestroyNotify) publishing_you_tube_publishing_options_pane_privacy_description_unref), NULL); -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy_descriptions = _tmp1_; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy_descriptions_length1 = _tmp0_; -#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->_privacy_descriptions_size_ = self->priv->privacy_descriptions_length1; -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = _publishing_you_tube_publishing_parameters_ref0 (publishing_parameters); -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_parameters_unref0 (self->priv->publishing_parameters); -#line 327 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->publishing_parameters = _tmp2_; -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = _g_object_ref0 (builder); -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->builder = _tmp3_; -#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _vala_assert (builder != NULL, "builder != null"); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = gtk_builder_get_objects (builder); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = _tmp4_; -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _vala_assert (g_slist_length (_tmp5_) > ((guint) 0), "builder.get_objects().length() > 0"); -#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_slist_free0 (_tmp5_); -#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = self->priv->builder; -#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7_ = gtk_builder_get_object (_tmp6_, "login_identity_label"); -#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp7_) : NULL); -#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->login_identity_label); -#line 333 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->login_identity_label = _tmp8_; -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp9_ = self->priv->builder; -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp10_ = gtk_builder_get_object (_tmp9_, "privacy_combo"); -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, gtk_combo_box_text_get_type ()) ? ((GtkComboBoxText*) _tmp10_) : NULL); -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->privacy_combo); -#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy_combo = _tmp11_; -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp12_ = self->priv->builder; -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp13_ = gtk_builder_get_object (_tmp12_, "publish_button"); -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, gtk_button_get_type ()) ? ((GtkButton*) _tmp13_) : NULL); -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->publish_button = _tmp14_; -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp15_ = self->priv->builder; -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp16_ = gtk_builder_get_object (_tmp15_, "logout_button"); -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, gtk_button_get_type ()) ? ((GtkButton*) _tmp16_) : NULL); -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 336 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->logout_button = _tmp17_; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp18_ = self->priv->builder; -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp19_ = gtk_builder_get_object (_tmp18_, "youtube_pane_widget"); -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, gtk_box_get_type ()) ? ((GtkBox*) _tmp19_) : NULL); -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->pane_widget = _tmp20_; -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp21_ = self->priv->builder; -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp22_ = gtk_builder_get_object (_tmp21_, "privacy_label"); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp22_) : NULL); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->privacy_label); -#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy_label = _tmp23_; -#line 340 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!spit_publishing_authenticator_can_logout (authenticator)) { -#line 2502 "YouTubePublishing.c" - GtkButton* _tmp24_; - GtkContainer* _tmp25_; - GtkContainer* _tmp26_; - GtkButton* _tmp27_; -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp24_ = self->priv->logout_button; -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp25_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_widget_get_type (), GtkWidget)); -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp26_ = _tmp25_; -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp27_ = self->priv->logout_button; -#line 341 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gtk_container_remove (_tmp26_, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget)); -#line 2517 "YouTubePublishing.c" - } -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp28_ = self->priv->login_identity_label; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp29_ = publishing_you_tube_publishing_parameters_get_user_name (publishing_parameters); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp30_ = _tmp29_; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp31_ = g_strdup_printf (_ ("You are logged into YouTube as %s."), _tmp30_); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp32_ = _tmp31_; -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gtk_label_set_label (_tmp28_, _tmp32_); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (_tmp32_); -#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (_tmp30_); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp33_ = self->priv->privacy_descriptions; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp33__length1 = self->priv->privacy_descriptions_length1; -#line 2539 "YouTubePublishing.c" - { - PublishingYouTubePublishingOptionsPanePrivacyDescription** desc_collection = NULL; - gint desc_collection_length1 = 0; - gint _desc_collection_size_ = 0; - gint desc_it = 0; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - desc_collection = _tmp33_; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - desc_collection_length1 = _tmp33__length1; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - for (desc_it = 0; desc_it < _tmp33__length1; desc_it = desc_it + 1) { -#line 2551 "YouTubePublishing.c" - PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp34_; - PublishingYouTubePublishingOptionsPanePrivacyDescription* desc = NULL; -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp34_ = _publishing_you_tube_publishing_options_pane_privacy_description_ref0 (desc_collection[desc_it]); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - desc = _tmp34_; -#line 2558 "YouTubePublishing.c" - { - GtkComboBoxText* _tmp35_; - PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp36_; - const gchar* _tmp37_; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp35_ = self->priv->privacy_combo; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp36_ = desc; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp37_ = _tmp36_->description; -#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gtk_combo_box_text_append_text (_tmp35_, _tmp37_); -#line 347 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_options_pane_privacy_description_unref0 (desc); -#line 2573 "YouTubePublishing.c" - } - } - } -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp38_ = self->priv->privacy_combo; -#line 351 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_combo_box_get_type (), GtkComboBox), (gint) PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC); -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp39_ = self->priv->privacy_label; -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp40_ = self->priv->privacy_combo; -#line 352 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gtk_label_set_mnemonic_widget (_tmp39_, G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_widget_get_type (), GtkWidget)); -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp41_ = self->priv->logout_button; -#line 354 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_connect_object (_tmp41_, "clicked", (GCallback) _publishing_you_tube_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0); -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp42_ = self->priv->publish_button; -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_connect_object (_tmp42_, "clicked", (GCallback) _publishing_you_tube_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0); -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self; -#line 2597 "YouTubePublishing.c" -} - - -PublishingYouTubePublishingOptionsPane* -publishing_you_tube_publishing_options_pane_new (SpitPublishingAuthenticator* authenticator, - SpitPublishingPluginHost* host, - GtkBuilder* builder, - PublishingYouTubePublishingParameters* publishing_parameters) -{ -#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return publishing_you_tube_publishing_options_pane_construct (PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, authenticator, host, builder, publishing_parameters); -#line 2609 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_on_publish_clicked (PublishingYouTubePublishingOptionsPane* self) -{ - PublishingYouTubePublishingParameters* _tmp0_; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp1_; - gint _tmp1__length1; - GtkComboBoxText* _tmp2_; - PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp3_; - PublishingYouTubePrivacySetting _tmp4_; -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->publishing_parameters; -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = self->priv->privacy_descriptions; -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1__length1 = self->priv->privacy_descriptions_length1; -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = self->priv->privacy_combo; -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = _tmp1_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = _tmp3_->privacy_setting; -#line 359 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_parameters_set_privacy (_tmp0_, _tmp4_); -#line 362 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_emit (self, publishing_you_tube_publishing_options_pane_signals[PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0); -#line 2640 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_on_logout_clicked (PublishingYouTubePublishingOptionsPane* self) -{ -#line 365 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_emit (self, publishing_you_tube_publishing_options_pane_signals[PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 2651 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_update_publish_button_sensitivity (PublishingYouTubePublishingOptionsPane* self) -{ - GtkButton* _tmp0_; -#line 369 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE (self)); -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->publish_button; -#line 370 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 2665 "YouTubePublishing.c" -} - - -static void -_vala_array_add35 (PublishingYouTubePublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingYouTubePublishingOptionsPanePrivacyDescription* value) -{ -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if ((*length) == (*size)) { -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *array = g_renew (PublishingYouTubePublishingOptionsPanePrivacyDescription*, *array, (*size) + 1); -#line 2681 "YouTubePublishing.c" - } -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*array)[(*length)++] = value; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*array)[*length] = NULL; -#line 2687 "YouTubePublishing.c" -} - - -static void -_vala_array_add36 (PublishingYouTubePublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingYouTubePublishingOptionsPanePrivacyDescription* value) -{ -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if ((*length) == (*size)) { -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *array = g_renew (PublishingYouTubePublishingOptionsPanePrivacyDescription*, *array, (*size) + 1); -#line 2703 "YouTubePublishing.c" - } -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*array)[(*length)++] = value; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*array)[*length] = NULL; -#line 2709 "YouTubePublishing.c" -} - - -static void -_vala_array_add37 (PublishingYouTubePublishingOptionsPanePrivacyDescription** * array, - int* length, - int* size, - PublishingYouTubePublishingOptionsPanePrivacyDescription* value) -{ -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if ((*length) == (*size)) { -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *array = g_renew (PublishingYouTubePublishingOptionsPanePrivacyDescription*, *array, (*size) + 1); -#line 2725 "YouTubePublishing.c" - } -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*array)[(*length)++] = value; -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - (*array)[*length] = NULL; -#line 2731 "YouTubePublishing.c" -} - - -static PublishingYouTubePublishingOptionsPanePrivacyDescription** -publishing_you_tube_publishing_options_pane_create_privacy_descriptions (PublishingYouTubePublishingOptionsPane* self, - int* result_length1) -{ - PublishingYouTubePublishingOptionsPanePrivacyDescription** result = NULL; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _result_ = NULL; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp0_; - gint _result__length1; - gint __result__size_; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp1_; - gint _tmp1__length1; - PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp2_; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp3_; - gint _tmp3__length1; - PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp4_; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp5_; - gint _tmp5__length1; - PublishingYouTubePublishingOptionsPanePrivacyDescription* _tmp6_; - PublishingYouTubePublishingOptionsPanePrivacyDescription** _tmp7_; - gint _tmp7__length1; -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_OPTIONS_PANE (self), NULL); -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = g_new0 (PublishingYouTubePublishingOptionsPanePrivacyDescription*, 0 + 1); -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _result_ = _tmp0_; -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _result__length1 = 0; -#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - __result__size_ = _result__length1; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = _result_; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1__length1 = _result__length1; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = publishing_you_tube_publishing_options_pane_privacy_description_new (_ ("Public listed"), PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PUBLIC); -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _vala_array_add35 (&_result_, &_result__length1, &__result__size_, _tmp2_); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = _result_; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3__length1 = _result__length1; -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = publishing_you_tube_publishing_options_pane_privacy_description_new (_ ("Public unlisted"), PUBLISHING_YOU_TUBE_PRIVACY_SETTING_UNLISTED); -#line 377 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _vala_array_add36 (&_result_, &_result__length1, &__result__size_, _tmp4_); -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = _result_; -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5__length1 = _result__length1; -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = publishing_you_tube_publishing_options_pane_privacy_description_new (_ ("Private"), PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE); -#line 378 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _vala_array_add37 (&_result_, &_result__length1, &__result__size_, _tmp6_); -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7_ = _result_; -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7__length1 = _result__length1; -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (result_length1) { -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *result_length1 = _tmp7__length1; -#line 2797 "YouTubePublishing.c" - } -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = _tmp7_; -#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 2803 "YouTubePublishing.c" -} - - -static GtkWidget* -publishing_you_tube_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingYouTubePublishingOptionsPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkBox* _tmp1_; - GtkWidget* _tmp2_; -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane); -#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->pane_widget; -#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _vala_assert (_tmp0_ != NULL, "pane_widget != null"); -#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = self->priv->pane_widget; -#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = _tmp2_; -#line 385 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 2829 "YouTubePublishing.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_you_tube_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingYouTubePublishingOptionsPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 388 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane); -#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 2844 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingYouTubePublishingOptionsPane * self; -#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_update_publish_button_sensitivity (self); -#line 2856 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingYouTubePublishingOptionsPane * self; -#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane); -#line 2866 "YouTubePublishing.c" -} - - -static PublishingYouTubePublishingOptionsPanePrivacyDescription* -publishing_you_tube_publishing_options_pane_privacy_description_construct (GType object_type, - const gchar* description, - PublishingYouTubePrivacySetting privacy_setting) -{ - PublishingYouTubePublishingOptionsPanePrivacyDescription* self = NULL; - gchar* _tmp0_; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (description != NULL, NULL); -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = (PublishingYouTubePublishingOptionsPanePrivacyDescription*) g_type_create_instance (object_type); -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = g_strdup (description); -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (self->description); -#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->description = _tmp0_; -#line 305 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->privacy_setting = privacy_setting; -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self; -#line 2891 "YouTubePublishing.c" -} - - -static PublishingYouTubePublishingOptionsPanePrivacyDescription* -publishing_you_tube_publishing_options_pane_privacy_description_new (const gchar* description, - PublishingYouTubePrivacySetting privacy_setting) -{ -#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return publishing_you_tube_publishing_options_pane_privacy_description_construct (PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, description, privacy_setting); -#line 2901 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_value_privacy_description_init (GValue* value) -{ -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = NULL; -#line 2910 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_value_privacy_description_free_value (GValue* value) -{ -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (value->data[0].v_pointer) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_privacy_description_unref (value->data[0].v_pointer); -#line 2921 "YouTubePublishing.c" - } -} - - -static void -publishing_you_tube_publishing_options_pane_value_privacy_description_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (src_value->data[0].v_pointer) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - dest_value->data[0].v_pointer = publishing_you_tube_publishing_options_pane_privacy_description_ref (src_value->data[0].v_pointer); -#line 2934 "YouTubePublishing.c" - } else { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - dest_value->data[0].v_pointer = NULL; -#line 2938 "YouTubePublishing.c" - } -} - - -static gpointer -publishing_you_tube_publishing_options_pane_value_privacy_description_peek_pointer (const GValue* value) -{ -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return value->data[0].v_pointer; -#line 2948 "YouTubePublishing.c" -} - - -static gchar* -publishing_you_tube_publishing_options_pane_value_privacy_description_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (collect_values[0].v_pointer) { -#line 2960 "YouTubePublishing.c" - PublishingYouTubePublishingOptionsPanePrivacyDescription * object; - object = collect_values[0].v_pointer; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (object->parent_instance.g_class == NULL) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2967 "YouTubePublishing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2971 "YouTubePublishing.c" - } -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = publishing_you_tube_publishing_options_pane_privacy_description_ref (object); -#line 2975 "YouTubePublishing.c" - } else { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = NULL; -#line 2979 "YouTubePublishing.c" - } -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return NULL; -#line 2983 "YouTubePublishing.c" -} - - -static gchar* -publishing_you_tube_publishing_options_pane_value_privacy_description_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PublishingYouTubePublishingOptionsPanePrivacyDescription ** object_p; - object_p = collect_values[0].v_pointer; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!object_p) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2999 "YouTubePublishing.c" - } -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!value->data[0].v_pointer) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *object_p = NULL; -#line 3005 "YouTubePublishing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *object_p = value->data[0].v_pointer; -#line 3009 "YouTubePublishing.c" - } else { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - *object_p = publishing_you_tube_publishing_options_pane_privacy_description_ref (value->data[0].v_pointer); -#line 3013 "YouTubePublishing.c" - } -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return NULL; -#line 3017 "YouTubePublishing.c" -} - - -static GParamSpec* -publishing_you_tube_publishing_options_pane_param_spec_privacy_description (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PublishingYouTubePublishingOptionsPaneParamSpecPrivacyDescription* spec; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION), NULL); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return G_PARAM_SPEC (spec); -#line 3037 "YouTubePublishing.c" -} - - -static gpointer -publishing_you_tube_publishing_options_pane_value_get_privacy_description (const GValue* value) -{ -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION), NULL); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return value->data[0].v_pointer; -#line 3048 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_value_set_privacy_description (GValue* value, - gpointer v_object) -{ - PublishingYouTubePublishingOptionsPanePrivacyDescription * old; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - old = value->data[0].v_pointer; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (v_object) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = v_object; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_privacy_description_ref (value->data[0].v_pointer); -#line 3071 "YouTubePublishing.c" - } else { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = NULL; -#line 3075 "YouTubePublishing.c" - } -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (old) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_privacy_description_unref (old); -#line 3081 "YouTubePublishing.c" - } -} - - -static void -publishing_you_tube_publishing_options_pane_value_take_privacy_description (GValue* value, - gpointer v_object) -{ - PublishingYouTubePublishingOptionsPanePrivacyDescription * old; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - old = value->data[0].v_pointer; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (v_object) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION)); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = v_object; -#line 3103 "YouTubePublishing.c" - } else { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - value->data[0].v_pointer = NULL; -#line 3107 "YouTubePublishing.c" - } -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (old) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_privacy_description_unref (old); -#line 3113 "YouTubePublishing.c" - } -} - - -static void -publishing_you_tube_publishing_options_pane_privacy_description_class_init (PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass * klass) -{ -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_privacy_description_parent_class = g_type_class_peek_parent (klass); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass *) klass)->finalize = publishing_you_tube_publishing_options_pane_privacy_description_finalize; -#line 3125 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_privacy_description_instance_init (PublishingYouTubePublishingOptionsPanePrivacyDescription * self) -{ -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->ref_count = 1; -#line 3134 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_privacy_description_finalize (PublishingYouTubePublishingOptionsPanePrivacyDescription * obj) -{ - PublishingYouTubePublishingOptionsPanePrivacyDescription * self; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_TYPE_PRIVACY_DESCRIPTION, PublishingYouTubePublishingOptionsPanePrivacyDescription); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_handlers_destroy (self); -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (self->description); -#line 3148 "YouTubePublishing.c" -} - - -static GType -publishing_you_tube_publishing_options_pane_privacy_description_get_type (void) -{ - static volatile gsize publishing_you_tube_publishing_options_pane_privacy_description_type_id__volatile = 0; - if (g_once_init_enter (&publishing_you_tube_publishing_options_pane_privacy_description_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { publishing_you_tube_publishing_options_pane_value_privacy_description_init, publishing_you_tube_publishing_options_pane_value_privacy_description_free_value, publishing_you_tube_publishing_options_pane_value_privacy_description_copy_value, publishing_you_tube_publishing_options_pane_value_privacy_description_peek_pointer, "p", publishing_you_tube_publishing_options_pane_value_privacy_description_collect_value, "p", publishing_you_tube_publishing_options_pane_value_privacy_description_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubePublishingOptionsPanePrivacyDescriptionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_publishing_options_pane_privacy_description_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubePublishingOptionsPanePrivacyDescription), 0, (GInstanceInitFunc) publishing_you_tube_publishing_options_pane_privacy_description_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType publishing_you_tube_publishing_options_pane_privacy_description_type_id; - publishing_you_tube_publishing_options_pane_privacy_description_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PublishingYouTubePublishingOptionsPanePrivacyDescription", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&publishing_you_tube_publishing_options_pane_privacy_description_type_id__volatile, publishing_you_tube_publishing_options_pane_privacy_description_type_id); - } - return publishing_you_tube_publishing_options_pane_privacy_description_type_id__volatile; -} - - -static gpointer -publishing_you_tube_publishing_options_pane_privacy_description_ref (gpointer instance) -{ - PublishingYouTubePublishingOptionsPanePrivacyDescription * self; - self = instance; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_atomic_int_inc (&self->ref_count); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return instance; -#line 3177 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_privacy_description_unref (gpointer instance) -{ - PublishingYouTubePublishingOptionsPanePrivacyDescription * self; - self = instance; -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PRIVACY_DESCRIPTION_GET_CLASS (self)->finalize (self); -#line 299 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 3192 "YouTubePublishing.c" - } -} - - -static void -publishing_you_tube_publishing_options_pane_class_init (PublishingYouTubePublishingOptionsPaneClass * klass) -{ -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYouTubePublishingOptionsPanePrivate)); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_you_tube_publishing_options_pane_finalize; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_signals[PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = g_signal_new ("publish", PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_signals[PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = g_signal_new ("logout", PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 3210 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_you_tube_publishing_options_pane_real_get_widget; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_you_tube_publishing_options_pane_real_get_preferred_geometry; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_you_tube_publishing_options_pane_real_on_pane_installed; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_you_tube_publishing_options_pane_real_on_pane_uninstalled; -#line 3227 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_instance_init (PublishingYouTubePublishingOptionsPane * self) -{ -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv = PUBLISHING_YOU_TUBE_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->pane_widget = NULL; -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy_combo = NULL; -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->login_identity_label = NULL; -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->publish_button = NULL; -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->logout_button = NULL; -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->builder = NULL; -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy_label = NULL; -#line 3250 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_publishing_options_pane_finalize (GObject * obj) -{ - PublishingYouTubePublishingOptionsPane * self; -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_TYPE_PUBLISHING_OPTIONS_PANE, PublishingYouTubePublishingOptionsPane); -#line 312 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 313 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->privacy_combo); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->login_identity_label); -#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->publish_button); -#line 316 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->logout_button); -#line 317 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->builder); -#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->privacy_label); -#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->privacy_descriptions = (_vala_array_free (self->priv->privacy_descriptions, self->priv->privacy_descriptions_length1, (GDestroyNotify) publishing_you_tube_publishing_options_pane_privacy_description_unref), NULL); -#line 320 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_parameters_unref0 (self->priv->publishing_parameters); -#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - G_OBJECT_CLASS (publishing_you_tube_publishing_options_pane_parent_class)->finalize (obj); -#line 3280 "YouTubePublishing.c" -} - - -GType -publishing_you_tube_publishing_options_pane_get_type (void) -{ - static volatile gsize publishing_you_tube_publishing_options_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_you_tube_publishing_options_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubePublishingOptionsPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_publishing_options_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubePublishingOptionsPane), 0, (GInstanceInitFunc) publishing_you_tube_publishing_options_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_you_tube_publishing_options_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_you_tube_publishing_options_pane_type_id; - publishing_you_tube_publishing_options_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingYouTubePublishingOptionsPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_you_tube_publishing_options_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_you_tube_publishing_options_pane_type_id__volatile, publishing_you_tube_publishing_options_pane_type_id); - } - return publishing_you_tube_publishing_options_pane_type_id__volatile; -} - - -PublishingYouTubeUploadTransaction* -publishing_you_tube_upload_transaction_construct (GType object_type, - GDataYouTubeService* youtube_service, - PublishingRESTSupportGoogleSession* session, - PublishingYouTubePublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ - PublishingYouTubeUploadTransaction* self = NULL; - PublishingRESTSupportGoogleSession* _tmp0_; - PublishingYouTubePublishingParameters* _tmp1_; - SpitPublishingPublishable* _tmp2_; - GDataYouTubeService* _tmp3_; -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (GDATA_IS_YOUTUBE_SERVICE (youtube_service), NULL); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = (PublishingYouTubeUploadTransaction*) publishing_rest_support_google_publisher_authenticated_transaction_construct (object_type, session, PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_ENDPOINT_URL, PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); -#line 410 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _vala_assert (publishing_rest_support_session_is_authenticated (G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession)), "session.is_authenticated()"); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = _publishing_rest_support_session_ref0 (session); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->session = _tmp0_; -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = _publishing_you_tube_publishing_parameters_ref0 (parameters); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_parameters_unref0 (self->priv->parameters); -#line 412 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->parameters = _tmp1_; -#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = _g_object_ref0 (publishable); -#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->publishable); -#line 413 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->publishable = _tmp2_; -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = _g_object_ref0 (youtube_service); -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->youtube_service); -#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->youtube_service = _tmp3_; -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self; -#line 3350 "YouTubePublishing.c" -} - - -PublishingYouTubeUploadTransaction* -publishing_you_tube_upload_transaction_new (GDataYouTubeService* youtube_service, - PublishingRESTSupportGoogleSession* session, - PublishingYouTubePublishingParameters* parameters, - SpitPublishingPublishable* publishable) -{ -#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return publishing_you_tube_upload_transaction_construct (PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, youtube_service, session, parameters, publishable); -#line 3362 "YouTubePublishing.c" -} - - -static Block1Data* -block1_data_ref (Block1Data* _data1_) -{ -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_atomic_int_inc (&_data1_->_ref_count_); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return _data1_; -#line 3373 "YouTubePublishing.c" -} - - -static void -block1_data_unref (void * _userdata_) -{ - Block1Data* _data1_; - _data1_ = (Block1Data*) _userdata_; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) { -#line 3384 "YouTubePublishing.c" - PublishingYouTubeUploadTransaction* self; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = _data1_->self; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_main_loop_unref0 (_data1_->loop); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_transaction_unref0 (self); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_slice_free (Block1Data, _data1_); -#line 3394 "YouTubePublishing.c" - } -} - - -static void -___lambda4_ (Block1Data* _data1_, - GObject* obj, - GAsyncResult* res) -{ - PublishingYouTubeUploadTransaction* self; - GMainLoop* _tmp2_; - GError * _inner_error_ = NULL; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = _data1_->self; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail ((obj == NULL) || G_IS_OBJECT (obj)); -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_if_fail (G_IS_ASYNC_RESULT (res)); -#line 3413 "YouTubePublishing.c" - { -#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_upload_transaction_splice_with_progress_finish (self, res, &_inner_error_); -#line 449 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3419 "YouTubePublishing.c" - goto __catch27_g_error; - } - } - goto __finally27; - __catch27_g_error: - { - GError* _error_ = NULL; - GError* _tmp0_; - const gchar* _tmp1_; -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _error_ = _inner_error_; -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _inner_error_ = NULL; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = _error_; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = _tmp0_->message; -#line 451 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_critical ("YouTubePublishing.vala:451: Failed to upload: %s", _tmp1_); -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_error_free0 (_error_); -#line 3441 "YouTubePublishing.c" - } - __finally27: -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_clear_error (&_inner_error_); -#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 3452 "YouTubePublishing.c" - } -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = _data1_->loop; -#line 453 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_main_loop_quit (_tmp2_); -#line 3458 "YouTubePublishing.c" -} - - -static void -____lambda4__gasync_ready_callback (GObject* source_object, - GAsyncResult* res, - gpointer self) -{ -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ___lambda4_ (self, source_object, res); -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - block1_data_unref (self); -#line 3471 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, - GError** error) -{ - PublishingYouTubeUploadTransaction * self; - GDataYouTubeVideo* video = NULL; - GDataYouTubeVideo* _tmp0_; - gchar* slug = NULL; - SpitPublishingPublishable* _tmp1_; - gchar* _tmp2_; - gchar* title = NULL; - SpitPublishingPublishable* _tmp3_; - gchar* _tmp4_; - const gchar* _tmp5_; - GDataYouTubeVideo* _tmp8_; - const gchar* _tmp9_; - GDataYouTubeVideo* _tmp10_; - PublishingYouTubePublishingParameters* _tmp11_; - PublishingYouTubePublishingParameters* _tmp12_; - GFile* file = NULL; - SpitPublishingPublishable* _tmp18_; - GFile* _tmp19_; - GError * _inner_error_ = NULL; -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransaction); -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = gdata_youtube_video_new (NULL); -#line 418 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - video = _tmp0_; -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = self->priv->publishable; -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = spit_publishing_publishable_get_param_string (_tmp1_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - slug = _tmp2_; -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = self->priv->publishable; -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = spit_publishing_publishable_get_publishing_name (_tmp3_); -#line 422 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - title = _tmp4_; -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = title; -#line 423 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (g_strcmp0 (_tmp5_, "") == 0) { -#line 3520 "YouTubePublishing.c" - SpitPublishingPublishable* _tmp6_; - gchar* _tmp7_; -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = self->priv->publishable; -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7_ = spit_publishing_publishable_get_param_string (_tmp6_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME); -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (title); -#line 424 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - title = _tmp7_; -#line 3531 "YouTubePublishing.c" - } -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp8_ = video; -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp9_ = title; -#line 426 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gdata_entry_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gdata_entry_get_type (), GDataEntry), _tmp9_); -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp10_ = video; -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp11_ = self->priv->parameters; -#line 428 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_object_set (_tmp10_, "is-private", publishing_you_tube_publishing_parameters_get_privacy (_tmp11_) == PUBLISHING_YOU_TUBE_PRIVACY_SETTING_PRIVATE, NULL); -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp12_ = self->priv->parameters; -#line 430 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (publishing_you_tube_publishing_parameters_get_privacy (_tmp12_) == PUBLISHING_YOU_TUBE_PRIVACY_SETTING_UNLISTED) { -#line 3549 "YouTubePublishing.c" - GDataYouTubeVideo* _tmp13_; -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp13_ = video; -#line 431 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gdata_youtube_video_set_access_control (_tmp13_, "list", GDATA_YOUTUBE_PERMISSION_DENIED); -#line 3555 "YouTubePublishing.c" - } else { - GDataYouTubeVideo* _tmp14_; - gboolean _tmp15_; - gboolean _tmp16_; -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp14_ = video; -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_object_get (_tmp14_, "is-private", &_tmp15_, NULL); -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp16_ = _tmp15_; -#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!_tmp16_) { -#line 3568 "YouTubePublishing.c" - GDataYouTubeVideo* _tmp17_; -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp17_ = video; -#line 433 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - gdata_youtube_video_set_access_control (_tmp17_, "list", GDATA_YOUTUBE_PERMISSION_ALLOWED); -#line 3574 "YouTubePublishing.c" - } - } -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp18_ = self->priv->publishable; -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp19_ = spit_publishing_publishable_get_serialized_file (_tmp18_); -#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - file = _tmp19_; -#line 3583 "YouTubePublishing.c" - { - Block1Data* _data1_; - GFileInfo* info = NULL; - GFile* _tmp20_; - GFileInfo* _tmp21_; - GDataUploadStream* upload_stream = NULL; - GDataYouTubeService* _tmp22_; - GDataYouTubeVideo* _tmp23_; - const gchar* _tmp24_; - GFileInfo* _tmp25_; - const gchar* _tmp26_; - GDataUploadStream* _tmp27_; - GFileInputStream* input_stream = NULL; - GFile* _tmp28_; - GFileInputStream* _tmp29_; - GMainLoop* _tmp30_; - GFileInfo* _tmp31_; - GFileInputStream* _tmp32_; - GDataUploadStream* _tmp33_; - GMainLoop* _tmp34_; - GDataYouTubeVideo* _tmp35_ = NULL; - GDataYouTubeService* _tmp36_; - GDataUploadStream* _tmp37_; - GDataYouTubeVideo* _tmp38_; - GDataYouTubeVideo* _tmp39_; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_ = g_slice_new0 (Block1Data); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_->_ref_count_ = 1; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_->self = publishing_rest_support_transaction_ref (self); -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp20_ = file; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp21_ = g_file_query_info (_tmp20_, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE "," G_FILE_ATTRIBUTE_STANDARD_SIZE, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_); -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - info = _tmp21_; -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - block1_data_unref (_data1_); -#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_ = NULL; -#line 3627 "YouTubePublishing.c" - goto __catch26_g_error; - } -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp22_ = self->priv->youtube_service; -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp23_ = video; -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp24_ = slug; -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp25_ = info; -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp26_ = g_file_info_get_content_type (_tmp25_); -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp27_ = gdata_youtube_service_upload_video (_tmp22_, _tmp23_, _tmp24_, _tmp26_, NULL, &_inner_error_); -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - upload_stream = _tmp27_; -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (info); -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - block1_data_unref (_data1_); -#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_ = NULL; -#line 3652 "YouTubePublishing.c" - goto __catch26_g_error; - } -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp28_ = file; -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp29_ = g_file_read (_tmp28_, NULL, &_inner_error_); -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - input_stream = _tmp29_; -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (upload_stream); -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (info); -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - block1_data_unref (_data1_); -#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_ = NULL; -#line 3671 "YouTubePublishing.c" - goto __catch26_g_error; - } -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp30_ = g_main_loop_new (NULL, FALSE); -#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_->loop = _tmp30_; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp31_ = info; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp32_ = input_stream; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp33_ = upload_stream; -#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_upload_transaction_splice_with_progress (self, _tmp31_, G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, g_input_stream_get_type (), GInputStream), G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, g_output_stream_get_type (), GOutputStream), ____lambda4__gasync_ready_callback, block1_data_ref (_data1_)); -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp34_ = _data1_->loop; -#line 455 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_main_loop_run (_tmp34_); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp36_ = self->priv->youtube_service; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp37_ = upload_stream; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp38_ = gdata_youtube_service_finish_video_upload (_tmp36_, _tmp37_, &_inner_error_); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp35_ = _tmp38_; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (input_stream); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (upload_stream); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (info); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - block1_data_unref (_data1_); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_ = NULL; -#line 3710 "YouTubePublishing.c" - goto __catch26_g_error; - } -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp39_ = _tmp35_; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp35_ = NULL; -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (video); -#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - video = _tmp39_; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_tmp35_); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (input_stream); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (upload_stream); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (info); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - block1_data_unref (_data1_); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data1_ = NULL; -#line 3733 "YouTubePublishing.c" - } - goto __finally26; - __catch26_g_error: - { - GError* _error_ = NULL; - GError* _tmp40_; - const gchar* _tmp41_; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _error_ = _inner_error_; -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _inner_error_ = NULL; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp40_ = _error_; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp41_ = _tmp40_->message; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_critical ("YouTubePublishing.vala:458: Upload failed: %s", _tmp41_); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_error_free0 (_error_); -#line 3753 "YouTubePublishing.c" - } - __finally26: -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_propagate_error (error, _inner_error_); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (file); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (title); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (slug); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (video); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 3772 "YouTubePublishing.c" - } else { -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (file); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (title); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (slug); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (video); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_clear_error (&_inner_error_); -#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 3788 "YouTubePublishing.c" - } - } -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (file); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (title); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_free0 (slug); -#line 417 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (video); -#line 3799 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_upload_transaction_splice_with_progress_data_free (gpointer _data) -{ - PublishingYouTubeUploadTransactionSpliceWithProgressData* _data_; - _data_ = _data; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_data_->info); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_data_->input); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_data_->output); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_transaction_unref0 (_data_->self); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_slice_free (PublishingYouTubeUploadTransactionSpliceWithProgressData, _data_); -#line 3818 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_upload_transaction_splice_with_progress_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data) -{ - PublishingYouTubeUploadTransactionSpliceWithProgressData* _task_data_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _task_data_ = g_task_get_task_data (G_TASK (res)); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (_task_data_->_callback_ != NULL) { -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _task_data_->_callback_ (source_object, res, user_data); -#line 3834 "YouTubePublishing.c" - } -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _task_data_->_task_complete_ = TRUE; -#line 3838 "YouTubePublishing.c" -} - - -static gpointer -_publishing_rest_support_transaction_ref0 (gpointer self) -{ -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self ? publishing_rest_support_transaction_ref (self) : NULL; -#line 3847 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_upload_transaction_splice_with_progress (PublishingYouTubeUploadTransaction* self, - GFileInfo* info, - GInputStream* input, - GOutputStream* output, - GAsyncReadyCallback _callback_, - gpointer _user_data_) -{ - PublishingYouTubeUploadTransactionSpliceWithProgressData* _data_; - PublishingYouTubeUploadTransaction* _tmp0_; - GFileInfo* _tmp1_; - GInputStream* _tmp2_; - GOutputStream* _tmp3_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_ = g_slice_new0 (PublishingYouTubeUploadTransactionSpliceWithProgressData); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_callback_ = _callback_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_async_result = g_task_new (NULL, NULL, publishing_you_tube_upload_transaction_splice_with_progress_async_ready_wrapper, _user_data_); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (_callback_ == NULL) { -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_task_complete_ = TRUE; -#line 3874 "YouTubePublishing.c" - } -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_task_set_task_data (_data_->_async_result, _data_, publishing_you_tube_upload_transaction_splice_with_progress_data_free); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = _publishing_rest_support_transaction_ref0 (self); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->self = _tmp0_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = _g_object_ref0 (info); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_data_->info); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->info = _tmp1_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = _g_object_ref0 (input); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_data_->input); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->input = _tmp2_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = _g_object_ref0 (output); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_data_->output); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->output = _tmp3_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_upload_transaction_splice_with_progress_co (_data_); -#line 3902 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_upload_transaction_splice_with_progress_finish (PublishingYouTubeUploadTransaction* self, - GAsyncResult* _res_, - GError** error) -{ - PublishingYouTubeUploadTransactionSpliceWithProgressData* _data_; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_ = g_task_propagate_pointer (G_TASK (_res_), error); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (NULL == _data_) { -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return; -#line 3918 "YouTubePublishing.c" - } -} - - -static void -publishing_you_tube_upload_transaction_splice_with_progress_ready (GObject* source_object, - GAsyncResult* _res_, - gpointer _user_data_) -{ - PublishingYouTubeUploadTransactionSpliceWithProgressData* _data_; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_ = _user_data_; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_source_object_ = source_object; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_res_ = _res_; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_task_complete_ = TRUE; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_upload_transaction_splice_with_progress_co (_data_); -#line 3939 "YouTubePublishing.c" -} - - -static gboolean -publishing_you_tube_upload_transaction_splice_with_progress_co (PublishingYouTubeUploadTransactionSpliceWithProgressData* _data_) -{ -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - switch (_data_->_state_) { -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - case 0: -#line 3950 "YouTubePublishing.c" - goto _state_0; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - case 1: -#line 3954 "YouTubePublishing.c" - goto _state_1; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - case 2: -#line 3958 "YouTubePublishing.c" - goto _state_2; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - case 3: -#line 3962 "YouTubePublishing.c" - goto _state_3; -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - case 4: -#line 3966 "YouTubePublishing.c" - goto _state_4; - default: -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_assert_not_reached (); -#line 3971 "YouTubePublishing.c" - } - _state_0: -#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->total_bytes = g_file_info_get_size (_data_->info); -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp0_ = _data_->total_bytes; -#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->bytes_to_write = _data_->_tmp0_; -#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - while (TRUE) { -#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp1_ = _data_->bytes_to_write; -#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (!(_data_->_tmp1_ > ((gint64) 0))) { -#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - break; -#line 3988 "YouTubePublishing.c" - } -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_state_ = 1; -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_input_stream_read_async (_data_->input, _data_->buffer, (gsize) 8192, G_PRIORITY_DEFAULT, NULL, publishing_you_tube_upload_transaction_splice_with_progress_ready, _data_); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 3996 "YouTubePublishing.c" - _state_1: -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->bytes_read = g_input_stream_read_finish (_data_->input, _data_->_res_, &_data_->_inner_error_); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_task_return_error (_data_->_async_result, _data_->_inner_error_); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_object_unref (_data_->_async_result); -#line 468 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 4008 "YouTubePublishing.c" - } -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp2_ = _data_->bytes_read; -#line 469 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (_data_->_tmp2_ == ((gssize) 0)) { -#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - break; -#line 4016 "YouTubePublishing.c" - } -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp3_ = _data_->bytes_read; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_state_ = 2; -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_output_stream_write_async (_data_->output, _data_->buffer + 0, (gsize) (((gint) _data_->_tmp3_) - 0), G_PRIORITY_DEFAULT, NULL, publishing_you_tube_upload_transaction_splice_with_progress_ready, _data_); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 4026 "YouTubePublishing.c" - _state_2: -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->bytes_written = g_output_stream_write_finish (_data_->output, _data_->_res_, &_data_->_inner_error_); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_task_return_error (_data_->_async_result, _data_->_inner_error_); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_object_unref (_data_->_async_result); -#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 4038 "YouTubePublishing.c" - } -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp4_ = _data_->bytes_to_write; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp5_ = _data_->bytes_written; -#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->bytes_to_write = _data_->_tmp4_ - _data_->_tmp5_; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp6_ = _data_->total_bytes; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp7_ = _data_->bytes_to_write; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_tmp8_ = _data_->total_bytes; -#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "chunk-transmitted", (gint) (_data_->_tmp6_ - _data_->_tmp7_), (gint) _data_->_tmp8_); -#line 4054 "YouTubePublishing.c" - } -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_state_ = 3; -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_output_stream_close_async (_data_->output, G_PRIORITY_DEFAULT, NULL, publishing_you_tube_upload_transaction_splice_with_progress_ready, _data_); -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 4062 "YouTubePublishing.c" - _state_3: -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_output_stream_close_finish (_data_->output, _data_->_res_, &_data_->_inner_error_); -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_task_return_error (_data_->_async_result, _data_->_inner_error_); -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_object_unref (_data_->_async_result); -#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 4074 "YouTubePublishing.c" - } -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _data_->_state_ = 4; -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_input_stream_close_async (_data_->input, G_PRIORITY_DEFAULT, NULL, publishing_you_tube_upload_transaction_splice_with_progress_ready, _data_); -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 4082 "YouTubePublishing.c" - _state_4: -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_input_stream_close_finish (_data_->input, _data_->_res_, &_data_->_inner_error_); -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_task_return_error (_data_->_async_result, _data_->_inner_error_); -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_object_unref (_data_->_async_result); -#line 478 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 4094 "YouTubePublishing.c" - } -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_task_return_pointer (_data_->_async_result, _data_, NULL); -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - if (_data_->_state_ != 0) { -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - while (_data_->_task_complete_ != TRUE) { -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); -#line 4104 "YouTubePublishing.c" - } - } -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_object_unref (_data_->_async_result); -#line 462 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return FALSE; -#line 4111 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_upload_transaction_class_init (PublishingYouTubeUploadTransactionClass * klass) -{ -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_upload_transaction_parent_class = g_type_class_peek_parent (klass); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportTransactionClass *) klass)->finalize = publishing_you_tube_upload_transaction_finalize; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYouTubeUploadTransactionPrivate)); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_you_tube_upload_transaction_real_execute; -#line 4126 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_upload_transaction_instance_init (PublishingYouTubeUploadTransaction * self) -{ -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv = PUBLISHING_YOU_TUBE_UPLOAD_TRANSACTION_GET_PRIVATE (self); -#line 4135 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_upload_transaction_finalize (PublishingRESTSupportTransaction * obj) -{ - PublishingYouTubeUploadTransaction * self; -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_TYPE_UPLOAD_TRANSACTION, PublishingYouTubeUploadTransaction); -#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_parameters_unref0 (self->priv->parameters); -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (self->priv->session); -#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->publishable); -#line 405 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->youtube_service); -#line 400 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - PUBLISHING_REST_SUPPORT_TRANSACTION_CLASS (publishing_you_tube_upload_transaction_parent_class)->finalize (obj); -#line 4155 "YouTubePublishing.c" -} - - -GType -publishing_you_tube_upload_transaction_get_type (void) -{ - static volatile gsize publishing_you_tube_upload_transaction_type_id__volatile = 0; - if (g_once_init_enter (&publishing_you_tube_upload_transaction_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubeUploadTransactionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_upload_transaction_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubeUploadTransaction), 0, (GInstanceInitFunc) publishing_you_tube_upload_transaction_instance_init, NULL }; - GType publishing_you_tube_upload_transaction_type_id; - publishing_you_tube_upload_transaction_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_GOOGLE_PUBLISHER_TYPE_AUTHENTICATED_TRANSACTION, "PublishingYouTubeUploadTransaction", &g_define_type_info, 0); - g_once_init_leave (&publishing_you_tube_upload_transaction_type_id__volatile, publishing_you_tube_upload_transaction_type_id); - } - return publishing_you_tube_upload_transaction_type_id__volatile; -} - - -PublishingYouTubeUploader* -publishing_you_tube_uploader_construct (GType object_type, - GDataYouTubeService* youtube_service, - PublishingRESTSupportGoogleSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingYouTubePublishingParameters* parameters) -{ - PublishingYouTubeUploader* self = NULL; - PublishingYouTubePublishingParameters* _tmp0_; - GDataYouTubeService* _tmp1_; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (GDATA_IS_YOUTUBE_SERVICE (youtube_service), NULL); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_REST_SUPPORT_IS_GOOGLE_SESSION (session), NULL); -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (PUBLISHING_YOU_TUBE_IS_PUBLISHING_PARAMETERS (parameters), NULL); -#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = (PublishingYouTubeUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishables, publishables_length1); -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = _publishing_you_tube_publishing_parameters_ref0 (parameters); -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_parameters_unref0 (self->priv->parameters); -#line 490 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->parameters = _tmp0_; -#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = _g_object_ref0 (youtube_service); -#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->youtube_service); -#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv->youtube_service = _tmp1_; -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return self; -#line 4206 "YouTubePublishing.c" -} - - -PublishingYouTubeUploader* -publishing_you_tube_uploader_new (GDataYouTubeService* youtube_service, - PublishingRESTSupportGoogleSession* session, - SpitPublishingPublishable** publishables, - int publishables_length1, - PublishingYouTubePublishingParameters* parameters) -{ -#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return publishing_you_tube_uploader_construct (PUBLISHING_YOU_TUBE_TYPE_UPLOADER, youtube_service, session, publishables, publishables_length1, parameters); -#line 4219 "YouTubePublishing.c" -} - - -static PublishingRESTSupportTransaction* -publishing_you_tube_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, - SpitPublishingPublishable* publishable) -{ - PublishingYouTubeUploader * self; - PublishingRESTSupportTransaction* result = NULL; - GDataYouTubeService* _tmp0_; - PublishingRESTSupportSession* _tmp1_; - PublishingRESTSupportGoogleSession* _tmp2_; - PublishingYouTubePublishingParameters* _tmp3_; - SpitPublishingPublishable* _tmp4_; - SpitPublishingPublishable* _tmp5_; - PublishingYouTubeUploadTransaction* _tmp6_; - PublishingRESTSupportTransaction* _tmp7_; -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploader); -#line 494 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp0_ = self->priv->youtube_service; -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp1_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_REST_SUPPORT_TYPE_GOOGLE_SESSION, PublishingRESTSupportGoogleSession); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp3_ = self->priv->parameters; -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp4_ = publishing_rest_support_batch_uploader_get_current_publishable (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp5_ = _tmp4_; -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp6_ = publishing_you_tube_upload_transaction_new (_tmp0_, _tmp2_, _tmp3_, _tmp5_); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (_tmp5_); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_rest_support_session_unref0 (_tmp2_); -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - result = _tmp7_; -#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - return result; -#line 4265 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_uploader_class_init (PublishingYouTubeUploaderClass * klass) -{ -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - publishing_you_tube_uploader_parent_class = g_type_class_peek_parent (klass); -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_you_tube_uploader_finalize; -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - g_type_class_add_private (klass, sizeof (PublishingYouTubeUploaderPrivate)); -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_you_tube_uploader_real_create_transaction; -#line 4280 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_uploader_instance_init (PublishingYouTubeUploader * self) -{ -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self->priv = PUBLISHING_YOU_TUBE_UPLOADER_GET_PRIVATE (self); -#line 4289 "YouTubePublishing.c" -} - - -static void -publishing_you_tube_uploader_finalize (PublishingRESTSupportBatchUploader * obj) -{ - PublishingYouTubeUploader * self; -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_YOU_TUBE_TYPE_UPLOADER, PublishingYouTubeUploader); -#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _publishing_you_tube_publishing_parameters_unref0 (self->priv->parameters); -#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - _g_object_unref0 (self->priv->youtube_service); -#line 482 "/home/jens/Source/shotwell/plugins/shotwell-publishing/YouTubePublishing.vala" - PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_you_tube_uploader_parent_class)->finalize (obj); -#line 4305 "YouTubePublishing.c" -} - - -GType -publishing_you_tube_uploader_get_type (void) -{ - static volatile gsize publishing_you_tube_uploader_type_id__volatile = 0; - if (g_once_init_enter (&publishing_you_tube_uploader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingYouTubeUploaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_you_tube_uploader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingYouTubeUploader), 0, (GInstanceInitFunc) publishing_you_tube_uploader_instance_init, NULL }; - GType publishing_you_tube_uploader_type_id; - publishing_you_tube_uploader_type_id = g_type_register_static (PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, "PublishingYouTubeUploader", &g_define_type_info, 0); - g_once_init_leave (&publishing_you_tube_uploader_type_id__volatile, publishing_you_tube_uploader_type_id); - } - return publishing_you_tube_uploader_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/shotwell-publishing/shotwell-publishing.c b/plugins/shotwell-publishing/shotwell-publishing.c deleted file mode 100644 index 0a2cf42..0000000 --- a/plugins/shotwell-publishing/shotwell-publishing.c +++ /dev/null @@ -1,743 +0,0 @@ -/* shotwell-publishing.c generated by valac 0.40.4, the Vala compiler - * generated from shotwell-publishing.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include "shotwell-authenticator.h" -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES (shotwell_publishing_core_services_get_type ()) -#define SHOTWELL_PUBLISHING_CORE_SERVICES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices)) -#define SHOTWELL_PUBLISHING_CORE_SERVICES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServicesClass)) -#define IS_SHOTWELL_PUBLISHING_CORE_SERVICES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES)) -#define IS_SHOTWELL_PUBLISHING_CORE_SERVICES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES)) -#define SHOTWELL_PUBLISHING_CORE_SERVICES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServicesClass)) - -typedef struct _ShotwellPublishingCoreServices ShotwellPublishingCoreServices; -typedef struct _ShotwellPublishingCoreServicesClass ShotwellPublishingCoreServicesClass; -typedef struct _ShotwellPublishingCoreServicesPrivate ShotwellPublishingCoreServicesPrivate; -enum { - SHOTWELL_PUBLISHING_CORE_SERVICES_0_PROPERTY, - SHOTWELL_PUBLISHING_CORE_SERVICES_NUM_PROPERTIES -}; -static GParamSpec* shotwell_publishing_core_services_properties[SHOTWELL_PUBLISHING_CORE_SERVICES_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_FACEBOOK_SERVICE (facebook_service_get_type ()) -#define FACEBOOK_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FACEBOOK_SERVICE, FacebookService)) -#define FACEBOOK_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FACEBOOK_SERVICE, FacebookServiceClass)) -#define IS_FACEBOOK_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FACEBOOK_SERVICE)) -#define IS_FACEBOOK_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FACEBOOK_SERVICE)) -#define FACEBOOK_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FACEBOOK_SERVICE, FacebookServiceClass)) - -typedef struct _FacebookService FacebookService; -typedef struct _FacebookServiceClass FacebookServiceClass; - -#define TYPE_PICASA_SERVICE (picasa_service_get_type ()) -#define PICASA_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PICASA_SERVICE, PicasaService)) -#define PICASA_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PICASA_SERVICE, PicasaServiceClass)) -#define IS_PICASA_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PICASA_SERVICE)) -#define IS_PICASA_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PICASA_SERVICE)) -#define PICASA_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PICASA_SERVICE, PicasaServiceClass)) - -typedef struct _PicasaService PicasaService; -typedef struct _PicasaServiceClass PicasaServiceClass; - -#define TYPE_FLICKR_SERVICE (flickr_service_get_type ()) -#define FLICKR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLICKR_SERVICE, FlickrService)) -#define FLICKR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLICKR_SERVICE, FlickrServiceClass)) -#define IS_FLICKR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLICKR_SERVICE)) -#define IS_FLICKR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLICKR_SERVICE)) -#define FLICKR_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLICKR_SERVICE, FlickrServiceClass)) - -typedef struct _FlickrService FlickrService; -typedef struct _FlickrServiceClass FlickrServiceClass; - -#define TYPE_YOU_TUBE_SERVICE (you_tube_service_get_type ()) -#define YOU_TUBE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_YOU_TUBE_SERVICE, YouTubeService)) -#define YOU_TUBE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_YOU_TUBE_SERVICE, YouTubeServiceClass)) -#define IS_YOU_TUBE_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_YOU_TUBE_SERVICE)) -#define IS_YOU_TUBE_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_YOU_TUBE_SERVICE)) -#define YOU_TUBE_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_YOU_TUBE_SERVICE, YouTubeServiceClass)) - -typedef struct _YouTubeService YouTubeService; -typedef struct _YouTubeServiceClass YouTubeServiceClass; - -#define TYPE_PIWIGO_SERVICE (piwigo_service_get_type ()) -#define PIWIGO_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIWIGO_SERVICE, PiwigoService)) -#define PIWIGO_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIWIGO_SERVICE, PiwigoServiceClass)) -#define IS_PIWIGO_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIWIGO_SERVICE)) -#define IS_PIWIGO_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIWIGO_SERVICE)) -#define PIWIGO_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIWIGO_SERVICE, PiwigoServiceClass)) - -typedef struct _PiwigoService PiwigoService; -typedef struct _PiwigoServiceClass PiwigoServiceClass; - -#define TYPE_TUMBLR_SERVICE (tumblr_service_get_type ()) -#define TUMBLR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TUMBLR_SERVICE, TumblrService)) -#define TUMBLR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TUMBLR_SERVICE, TumblrServiceClass)) -#define IS_TUMBLR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TUMBLR_SERVICE)) -#define IS_TUMBLR_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TUMBLR_SERVICE)) -#define TUMBLR_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TUMBLR_SERVICE, TumblrServiceClass)) - -typedef struct _TumblrService TumblrService; -typedef struct _TumblrServiceClass TumblrServiceClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -struct _ShotwellPublishingCoreServices { - GObject parent_instance; - ShotwellPublishingCoreServicesPrivate * priv; -}; - -struct _ShotwellPublishingCoreServicesClass { - GObjectClass parent_class; -}; - -struct _ShotwellPublishingCoreServicesPrivate { - SpitPluggable** pluggables; - gint pluggables_length1; - gint _pluggables_size_; -}; - - -static gpointer shotwell_publishing_core_services_parent_class = NULL; -static SpitModuleIface * shotwell_publishing_core_services_spit_module_parent_iface = NULL; - -GType shotwell_publishing_core_services_get_type (void) G_GNUC_CONST; -#define SHOTWELL_PUBLISHING_CORE_SERVICES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServicesPrivate)) -ShotwellPublishingCoreServices* shotwell_publishing_core_services_new (GFile* module_file); -ShotwellPublishingCoreServices* shotwell_publishing_core_services_construct (GType object_type, - GFile* module_file); -FacebookService* facebook_service_new (GFile* resource_directory); -FacebookService* facebook_service_construct (GType object_type, - GFile* resource_directory); -GType facebook_service_get_type (void) G_GNUC_CONST; -static void _vala_array_add1 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -PicasaService* picasa_service_new (GFile* resource_directory); -PicasaService* picasa_service_construct (GType object_type, - GFile* resource_directory); -GType picasa_service_get_type (void) G_GNUC_CONST; -static void _vala_array_add2 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -FlickrService* flickr_service_new (GFile* resource_directory); -FlickrService* flickr_service_construct (GType object_type, - GFile* resource_directory); -GType flickr_service_get_type (void) G_GNUC_CONST; -static void _vala_array_add3 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -YouTubeService* you_tube_service_new (GFile* resource_directory); -YouTubeService* you_tube_service_construct (GType object_type, - GFile* resource_directory); -GType you_tube_service_get_type (void) G_GNUC_CONST; -static void _vala_array_add4 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -PiwigoService* piwigo_service_new (GFile* resource_directory); -PiwigoService* piwigo_service_construct (GType object_type, - GFile* resource_directory); -GType piwigo_service_get_type (void) G_GNUC_CONST; -static void _vala_array_add5 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -TumblrService* tumblr_service_new (GFile* resource_directory); -TumblrService* tumblr_service_construct (GType object_type, - GFile* resource_directory); -GType tumblr_service_get_type (void) G_GNUC_CONST; -static void _vala_array_add6 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -static const gchar* shotwell_publishing_core_services_real_get_module_name (SpitModule* base); -static const gchar* shotwell_publishing_core_services_real_get_version (SpitModule* base); -static const gchar* shotwell_publishing_core_services_real_get_id (SpitModule* base); -static SpitPluggable** shotwell_publishing_core_services_real_get_pluggables (SpitModule* base, - int* result_length1); -static void shotwell_publishing_core_services_finalize (GObject * obj); -SpitModule* spit_entry_point (SpitEntryPointParams* params); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static void -_vala_array_add1 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if ((*length) == (*size)) { -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 200 "shotwell-publishing.c" - } -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[(*length)++] = value; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[*length] = NULL; -#line 206 "shotwell-publishing.c" -} - - -static void -_vala_array_add2 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if ((*length) == (*size)) { -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 222 "shotwell-publishing.c" - } -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[(*length)++] = value; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[*length] = NULL; -#line 228 "shotwell-publishing.c" -} - - -static void -_vala_array_add3 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if ((*length) == (*size)) { -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 244 "shotwell-publishing.c" - } -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[(*length)++] = value; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[*length] = NULL; -#line 250 "shotwell-publishing.c" -} - - -static void -_vala_array_add4 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if ((*length) == (*size)) { -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 266 "shotwell-publishing.c" - } -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[(*length)++] = value; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[*length] = NULL; -#line 272 "shotwell-publishing.c" -} - - -static void -_vala_array_add5 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if ((*length) == (*size)) { -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 288 "shotwell-publishing.c" - } -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[(*length)++] = value; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[*length] = NULL; -#line 294 "shotwell-publishing.c" -} - - -static void -_vala_array_add6 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if ((*length) == (*size)) { -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 310 "shotwell-publishing.c" - } -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[(*length)++] = value; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*array)[*length] = NULL; -#line 316 "shotwell-publishing.c" -} - - -ShotwellPublishingCoreServices* -shotwell_publishing_core_services_construct (GType object_type, - GFile* module_file) -{ - ShotwellPublishingCoreServices * self = NULL; - GFile* resource_directory = NULL; - GFile* _tmp0_; - PublishingAuthenticatorFactory* factory = NULL; - PublishingAuthenticatorFactory* _tmp1_; - GeeList* authenicators = NULL; - PublishingAuthenticatorFactory* _tmp2_; - GeeList* _tmp3_; - GFile* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GeeList* _tmp7_; - gint _tmp8_; - gint _tmp9_; - GeeList* _tmp10_; - GeeList* _tmp14_; - GeeList* _tmp18_; - GeeList* _tmp22_; - SpitPluggable** _tmp26_; - gint _tmp26__length1; - GFile* _tmp27_; - PiwigoService* _tmp28_; - SpitPluggable** _tmp29_; - gint _tmp29__length1; - GFile* _tmp30_; - GFile* _tmp31_; - TumblrService* _tmp32_; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - g_return_val_if_fail (G_IS_FILE (module_file), NULL); -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self = (ShotwellPublishingCoreServices*) g_object_new (object_type, NULL); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp0_ = g_file_get_parent (module_file); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - resource_directory = _tmp0_; -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp1_ = publishing_authenticator_factory_get_instance (); -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - factory = _tmp1_; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp2_ = factory; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp3_ = spit_publishing_authenticator_factory_get_available_authenticators (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory)); -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - authenicators = _tmp3_; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp4_ = resource_directory; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp5_ = g_file_get_path (_tmp4_); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp6_ = _tmp5_; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - g_debug ("shotwell-publishing.vala:22: Looking for resources in %s", _tmp6_); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _g_free0 (_tmp6_); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp7_ = authenicators; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp9_ = _tmp8_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - g_debug ("shotwell-publishing.vala:23: Found %d authenicators", _tmp9_); -#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp10_ = authenicators; -#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if (gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection), "facebook")) { -#line 391 "shotwell-publishing.c" - SpitPluggable** _tmp11_; - gint _tmp11__length1; - GFile* _tmp12_; - FacebookService* _tmp13_; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp11_ = self->priv->pluggables; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp11__length1 = self->priv->pluggables_length1; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp12_ = resource_directory; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp13_ = facebook_service_new (_tmp12_); -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _vala_array_add1 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 406 "shotwell-publishing.c" - } -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp14_ = authenicators; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if (gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection), "picasa")) { -#line 412 "shotwell-publishing.c" - SpitPluggable** _tmp15_; - gint _tmp15__length1; - GFile* _tmp16_; - PicasaService* _tmp17_; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp15_ = self->priv->pluggables; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp15__length1 = self->priv->pluggables_length1; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp16_ = resource_directory; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp17_ = picasa_service_new (_tmp16_); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _vala_array_add2 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 427 "shotwell-publishing.c" - } -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp18_ = authenicators; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if (gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection), "flickr")) { -#line 433 "shotwell-publishing.c" - SpitPluggable** _tmp19_; - gint _tmp19__length1; - GFile* _tmp20_; - FlickrService* _tmp21_; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp19_ = self->priv->pluggables; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp19__length1 = self->priv->pluggables_length1; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp20_ = resource_directory; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp21_ = flickr_service_new (_tmp20_); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _vala_array_add3 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 448 "shotwell-publishing.c" - } -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp22_ = authenicators; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if (gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection), "youtube")) { -#line 454 "shotwell-publishing.c" - SpitPluggable** _tmp23_; - gint _tmp23__length1; - GFile* _tmp24_; - YouTubeService* _tmp25_; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp23_ = self->priv->pluggables; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp23__length1 = self->priv->pluggables_length1; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp24_ = resource_directory; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp25_ = you_tube_service_new (_tmp24_); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _vala_array_add4 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 469 "shotwell-publishing.c" - } -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp26_ = self->priv->pluggables; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp26__length1 = self->priv->pluggables_length1; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp27_ = resource_directory; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp28_ = piwigo_service_new (_tmp27_); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _vala_array_add5 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp29_ = self->priv->pluggables; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp29__length1 = self->priv->pluggables_length1; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp30_ = g_file_get_parent (module_file); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp31_ = _tmp30_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp32_ = tumblr_service_new (_tmp31_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _vala_array_add6 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _g_object_unref0 (_tmp31_); -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _g_object_unref0 (authenicators); -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _g_object_unref0 (factory); -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _g_object_unref0 (resource_directory); -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - return self; -#line 503 "shotwell-publishing.c" -} - - -ShotwellPublishingCoreServices* -shotwell_publishing_core_services_new (GFile* module_file) -{ -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - return shotwell_publishing_core_services_construct (TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, module_file); -#line 512 "shotwell-publishing.c" -} - - -static const gchar* -shotwell_publishing_core_services_real_get_module_name (SpitModule* base) -{ - ShotwellPublishingCoreServices * self; - const gchar* result = NULL; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - result = _ ("Core Publishing Services"); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - return result; -#line 527 "shotwell-publishing.c" -} - - -static const gchar* -shotwell_publishing_core_services_real_get_version (SpitModule* base) -{ - ShotwellPublishingCoreServices * self; - const gchar* result = NULL; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - result = _VERSION; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - return result; -#line 542 "shotwell-publishing.c" -} - - -static const gchar* -shotwell_publishing_core_services_real_get_id (SpitModule* base) -{ - ShotwellPublishingCoreServices * self; - const gchar* result = NULL; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - result = "org.yorba.shotwell.publishing.core_services"; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - return result; -#line 557 "shotwell-publishing.c" -} - - -static SpitPluggable** -shotwell_publishing_core_services_real_get_pluggables (SpitModule* base, - int* result_length1) -{ - ShotwellPublishingCoreServices * self; - SpitPluggable** result = NULL; - SpitPluggable** _tmp0_; - gint _tmp0__length1; - SpitPluggable** _tmp1_; - gint _tmp1__length1; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp0_ = self->priv->pluggables; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp0__length1 = self->priv->pluggables_length1; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp1_ = _tmp0_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp1__length1 = _tmp0__length1; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if (result_length1) { -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - *result_length1 = _tmp1__length1; -#line 585 "shotwell-publishing.c" - } -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - result = _tmp1_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - return result; -#line 591 "shotwell-publishing.c" -} - - -static void -shotwell_publishing_core_services_class_init (ShotwellPublishingCoreServicesClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - shotwell_publishing_core_services_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - g_type_class_add_private (klass, sizeof (ShotwellPublishingCoreServicesPrivate)); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - G_OBJECT_CLASS (klass)->finalize = shotwell_publishing_core_services_finalize; -#line 604 "shotwell-publishing.c" -} - - -static void -shotwell_publishing_core_services_spit_module_interface_init (SpitModuleIface * iface) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - shotwell_publishing_core_services_spit_module_parent_iface = g_type_interface_peek_parent (iface); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - iface->get_module_name = (const gchar* (*) (SpitModule *)) shotwell_publishing_core_services_real_get_module_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - iface->get_version = (const gchar* (*) (SpitModule *)) shotwell_publishing_core_services_real_get_version; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - iface->get_id = (const gchar* (*) (SpitModule *)) shotwell_publishing_core_services_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - iface->get_pluggables = (SpitPluggable** (*) (SpitModule *, int*)) shotwell_publishing_core_services_real_get_pluggables; -#line 621 "shotwell-publishing.c" -} - - -static void -shotwell_publishing_core_services_instance_init (ShotwellPublishingCoreServices * self) -{ - SpitPluggable** _tmp0_; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self->priv = SHOTWELL_PUBLISHING_CORE_SERVICES_GET_PRIVATE (self); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp0_ = g_new0 (SpitPluggable*, 0 + 1); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self->priv->pluggables = _tmp0_; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self->priv->pluggables_length1 = 0; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self->priv->_pluggables_size_ = self->priv->pluggables_length1; -#line 639 "shotwell-publishing.c" -} - - -static void -shotwell_publishing_core_services_finalize (GObject * obj) -{ - ShotwellPublishingCoreServices * self; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_PUBLISHING_CORE_SERVICES, ShotwellPublishingCoreServices); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - self->priv->pluggables = (_vala_array_free (self->priv->pluggables, self->priv->pluggables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - G_OBJECT_CLASS (shotwell_publishing_core_services_parent_class)->finalize (obj); -#line 653 "shotwell-publishing.c" -} - - -GType -shotwell_publishing_core_services_get_type (void) -{ - static volatile gsize shotwell_publishing_core_services_type_id__volatile = 0; - if (g_once_init_enter (&shotwell_publishing_core_services_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ShotwellPublishingCoreServicesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_publishing_core_services_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellPublishingCoreServices), 0, (GInstanceInitFunc) shotwell_publishing_core_services_instance_init, NULL }; - static const GInterfaceInfo spit_module_info = { (GInterfaceInitFunc) shotwell_publishing_core_services_spit_module_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType shotwell_publishing_core_services_type_id; - shotwell_publishing_core_services_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellPublishingCoreServices", &g_define_type_info, 0); - g_type_add_interface_static (shotwell_publishing_core_services_type_id, SPIT_TYPE_MODULE, &spit_module_info); - g_once_init_leave (&shotwell_publishing_core_services_type_id__volatile, shotwell_publishing_core_services_type_id); - } - return shotwell_publishing_core_services_type_id__volatile; -} - - -SpitModule* -spit_entry_point (SpitEntryPointParams* params) -{ - SpitModule* result = NULL; - gint _tmp0_; - gint _tmp1_; - ShotwellPublishingCoreServices* _tmp2_ = NULL; - gint _tmp3_; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp0_ = (*params).host_min_spit_interface; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp1_ = (*params).host_max_spit_interface; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - (*params).module_spit_interface = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_CURRENT_INTERFACE); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp3_ = (*params).module_spit_interface; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - if (_tmp3_ != SPIT_UNSUPPORTED_INTERFACE) { -#line 691 "shotwell-publishing.c" - GFile* _tmp4_; - ShotwellPublishingCoreServices* _tmp5_; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp4_ = (*params).module_file; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp5_ = shotwell_publishing_core_services_new (_tmp4_); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _g_object_unref0 (_tmp2_); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp2_ = _tmp5_; -#line 702 "shotwell-publishing.c" - } else { -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _g_object_unref0 (_tmp2_); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - _tmp2_ = NULL; -#line 708 "shotwell-publishing.c" - } -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_MODULE, SpitModule); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/shotwell-publishing.vala" - return result; -#line 714 "shotwell-publishing.c" -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/shotwell-transitions/BlindsEffect.c b/plugins/shotwell-transitions/BlindsEffect.c deleted file mode 100644 index ef1f15e..0000000 --- a/plugins/shotwell-transitions/BlindsEffect.c +++ /dev/null @@ -1,843 +0,0 @@ -/* BlindsEffect.c generated by valac 0.40.4, the Vala compiler - * generated from BlindsEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_BLINDS_EFFECT_DESCRIPTOR (blinds_effect_descriptor_get_type ()) -#define BLINDS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor)) -#define BLINDS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptorClass)) -#define IS_BLINDS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR)) -#define IS_BLINDS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BLINDS_EFFECT_DESCRIPTOR)) -#define BLINDS_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptorClass)) - -typedef struct _BlindsEffectDescriptor BlindsEffectDescriptor; -typedef struct _BlindsEffectDescriptorClass BlindsEffectDescriptorClass; -typedef struct _BlindsEffectDescriptorPrivate BlindsEffectDescriptorPrivate; -enum { - BLINDS_EFFECT_DESCRIPTOR_0_PROPERTY, - BLINDS_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* blinds_effect_descriptor_properties[BLINDS_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_BLINDS_EFFECT (blinds_effect_get_type ()) -#define BLINDS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BLINDS_EFFECT, BlindsEffect)) -#define BLINDS_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BLINDS_EFFECT, BlindsEffectClass)) -#define IS_BLINDS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BLINDS_EFFECT)) -#define IS_BLINDS_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BLINDS_EFFECT)) -#define BLINDS_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BLINDS_EFFECT, BlindsEffectClass)) - -typedef struct _BlindsEffect BlindsEffect; -typedef struct _BlindsEffectClass BlindsEffectClass; -typedef struct _BlindsEffectPrivate BlindsEffectPrivate; -enum { - BLINDS_EFFECT_0_PROPERTY, - BLINDS_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* blinds_effect_properties[BLINDS_EFFECT_NUM_PROPERTIES]; -#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL))) -#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL))) - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _BlindsEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - BlindsEffectDescriptorPrivate * priv; -}; - -struct _BlindsEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _BlindsEffect { - GObject parent_instance; - BlindsEffectPrivate * priv; -}; - -struct _BlindsEffectClass { - GObjectClass parent_class; -}; - -struct _BlindsEffectPrivate { - gint current_blind_width; - cairo_surface_t** to_blinds; - gint to_blinds_length1; - gint _to_blinds_size_; - gint blind_count; -}; - - -static gpointer blinds_effect_descriptor_parent_class = NULL; -static gpointer blinds_effect_parent_class = NULL; -static SpitTransitionsEffectIface * blinds_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType blinds_effect_descriptor_get_type (void) G_GNUC_CONST; -BlindsEffectDescriptor* blinds_effect_descriptor_new (GFile* resource_directory); -BlindsEffectDescriptor* blinds_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* blinds_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* blinds_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* blinds_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -BlindsEffect* blinds_effect_new (void); -BlindsEffect* blinds_effect_construct (GType object_type); -GType blinds_effect_get_type (void) G_GNUC_CONST; -#define BLINDS_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_BLINDS_EFFECT, BlindsEffectPrivate)) -#define BLINDS_EFFECT_DESIRED_FPS 30 -#define BLINDS_EFFECT_MIN_FPS 15 -#define BLINDS_EFFECT_BLIND_WIDTH 50 -static void blinds_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static gboolean blinds_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void blinds_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static void blinds_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void blinds_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void blinds_effect_real_cancel (SpitTransitionsEffect* base); -static void blinds_effect_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -BlindsEffectDescriptor* -blinds_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - BlindsEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = (BlindsEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return self; -#line 172 "BlindsEffect.c" -} - - -BlindsEffectDescriptor* -blinds_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return blinds_effect_descriptor_construct (TYPE_BLINDS_EFFECT_DESCRIPTOR, resource_directory); -#line 181 "BlindsEffect.c" -} - - -static const gchar* -blinds_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - BlindsEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - result = "org.yorba.shotwell.transitions.blinds"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return result; -#line 196 "BlindsEffect.c" -} - - -static const gchar* -blinds_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - BlindsEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - result = _ ("Blinds"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return result; -#line 211 "BlindsEffect.c" -} - - -static SpitTransitionsEffect* -blinds_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - BlindsEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - BlindsEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp0_ = blinds_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return result; -#line 232 "BlindsEffect.c" -} - - -static void -blinds_effect_descriptor_class_init (BlindsEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - blinds_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) blinds_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) blinds_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) blinds_effect_descriptor_real_create; -#line 247 "BlindsEffect.c" -} - - -static void -blinds_effect_descriptor_instance_init (BlindsEffectDescriptor * self) -{ -} - - -GType -blinds_effect_descriptor_get_type (void) -{ - static volatile gsize blinds_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&blinds_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (BlindsEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) blinds_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BlindsEffectDescriptor), 0, (GInstanceInitFunc) blinds_effect_descriptor_instance_init, NULL }; - GType blinds_effect_descriptor_type_id; - blinds_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "BlindsEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&blinds_effect_descriptor_type_id__volatile, blinds_effect_descriptor_type_id); - } - return blinds_effect_descriptor_type_id__volatile; -} - - -BlindsEffect* -blinds_effect_construct (GType object_type) -{ - BlindsEffect * self = NULL; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = (BlindsEffect*) g_object_new (object_type, NULL); -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return self; -#line 279 "BlindsEffect.c" -} - - -BlindsEffect* -blinds_effect_new (void) -{ -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return blinds_effect_construct (TYPE_BLINDS_EFFECT); -#line 288 "BlindsEffect.c" -} - - -static void -blinds_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - BlindsEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _vala_desired_fps = BLINDS_EFFECT_DESIRED_FPS; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _vala_min_fps = BLINDS_EFFECT_MIN_FPS; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (desired_fps) { -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - *desired_fps = _vala_desired_fps; -#line 310 "BlindsEffect.c" - } -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (min_fps) { -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - *min_fps = _vala_min_fps; -#line 316 "BlindsEffect.c" - } -} - - -static gboolean -blinds_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - BlindsEffect * self; - gboolean result = FALSE; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - result = TRUE; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - return result; -#line 332 "BlindsEffect.c" -} - - -static void -blinds_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - BlindsEffect * self; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp0_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp1_ = _tmp0_; -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (_tmp1_ != NULL) { -#line 356 "BlindsEffect.c" - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - gint _tmp4_; - gint _tmp5_; - GdkPixbuf* _tmp6_; - GdkPixbuf* _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; - cairo_surface_t** _tmp12_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp2_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp3_ = _tmp2_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp4_ = gdk_pixbuf_get_width (_tmp3_); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp5_ = _tmp4_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->blind_count = _tmp5_ / BLINDS_EFFECT_BLIND_WIDTH; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp6_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp7_ = _tmp6_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp8_ = gdk_pixbuf_get_width (_tmp7_); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp9_ = _tmp8_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp10_ = self->priv->blind_count; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->current_blind_width = (gint) ceil (((gdouble) _tmp9_) / ((gdouble) _tmp10_)); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp11_ = self->priv->blind_count; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp12_ = g_new0 (cairo_surface_t*, _tmp11_ + 1); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->to_blinds = (_vala_array_free (self->priv->to_blinds, self->priv->to_blinds_length1, (GDestroyNotify) cairo_surface_destroy), NULL); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->to_blinds = _tmp12_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->to_blinds_length1 = _tmp11_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->_to_blinds_size_ = self->priv->to_blinds_length1; -#line 402 "BlindsEffect.c" - { - gint i = 0; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - i = 0; -#line 407 "BlindsEffect.c" - { - gboolean _tmp13_ = FALSE; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp13_ = TRUE; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - while (TRUE) { -#line 414 "BlindsEffect.c" - gint _tmp15_; - gint _tmp16_; - cairo_surface_t** _tmp17_; - gint _tmp17__length1; - gint _tmp18_; - gint _tmp19_; - GdkPixbuf* _tmp20_; - GdkPixbuf* _tmp21_; - gint _tmp22_; - gint _tmp23_; - cairo_surface_t* _tmp24_; - cairo_surface_t* _tmp25_; - cairo_t* ctx = NULL; - cairo_surface_t** _tmp26_; - gint _tmp26__length1; - gint _tmp27_; - cairo_surface_t* _tmp28_; - cairo_t* _tmp29_; - cairo_t* _tmp30_; - GdkPixbuf* _tmp31_; - GdkPixbuf* _tmp32_; - gint _tmp33_; - gint _tmp34_; - cairo_t* _tmp35_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (!_tmp13_) { -#line 441 "BlindsEffect.c" - gint _tmp14_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp14_ = i; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - i = _tmp14_ + 1; -#line 447 "BlindsEffect.c" - } -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp13_ = FALSE; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp15_ = i; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp16_ = self->priv->blind_count; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (!(_tmp15_ < _tmp16_)) { -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - break; -#line 459 "BlindsEffect.c" - } -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp17_ = self->priv->to_blinds; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp17__length1 = self->priv->to_blinds_length1; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp18_ = i; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp19_ = self->priv->current_blind_width; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp20_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp21_ = _tmp20_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp22_ = gdk_pixbuf_get_height (_tmp21_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp23_ = _tmp22_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp24_ = cairo_image_surface_create (CAIRO_FORMAT_RGB24, _tmp19_, _tmp23_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _cairo_surface_destroy0 (_tmp17_[_tmp18_]); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp17_[_tmp18_] = _tmp24_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp25_ = _tmp17_[_tmp18_]; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp26_ = self->priv->to_blinds; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp26__length1 = self->priv->to_blinds_length1; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp27_ = i; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp28_ = _tmp26_[_tmp27_]; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp29_ = cairo_create (_tmp28_); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - ctx = _tmp29_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp30_ = ctx; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp31_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp32_ = _tmp31_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp33_ = i; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp34_ = self->priv->current_blind_width; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - gdk_cairo_set_source_pixbuf (_tmp30_, _tmp32_, (gdouble) ((-_tmp33_) * _tmp34_), (gdouble) 0); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp35_ = ctx; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_paint (_tmp35_); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _cairo_destroy0 (ctx); -#line 515 "BlindsEffect.c" - } - } - } - } -} - - -static void -blinds_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - BlindsEffect * self; - gdouble alpha = 0.0; - gint y = 0; - GdkRectangle _tmp0_ = {0}; - GdkRectangle _tmp1_; - gint _tmp2_; - gint x = 0; - GdkRectangle _tmp3_ = {0}; - GdkRectangle _tmp4_; - gint _tmp5_; - GdkPixbuf* _tmp6_; - GdkPixbuf* _tmp7_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (ctx != NULL); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp0_); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp1_ = _tmp0_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp2_ = _tmp1_.y; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - y = _tmp2_; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp3_); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp4_ = _tmp3_; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp5_ = _tmp4_.x; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - x = _tmp5_; -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp6_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp7_ = _tmp6_; -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (_tmp7_ != NULL) { -#line 576 "BlindsEffect.c" - GdkPixbuf* _tmp8_; - GdkPixbuf* _tmp9_; - GdkRectangle _tmp10_ = {0}; - GdkRectangle _tmp11_; - gint _tmp12_; - GdkRectangle _tmp13_ = {0}; - GdkRectangle _tmp14_; - gint _tmp15_; - gdouble _tmp16_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp8_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp9_ = _tmp8_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp10_); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp11_ = _tmp10_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp12_ = _tmp11_.x; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp13_); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp14_ = _tmp13_; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp15_ = _tmp14_.y; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp9_, (gdouble) _tmp12_, (gdouble) _tmp15_); -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp16_ = alpha; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_paint_with_alpha (ctx, 1 - (_tmp16_ * 2)); -#line 608 "BlindsEffect.c" - } - { - gint i = 0; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - i = 0; -#line 614 "BlindsEffect.c" - { - gboolean _tmp17_ = FALSE; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp17_ = TRUE; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - while (TRUE) { -#line 621 "BlindsEffect.c" - gint _tmp19_; - gint _tmp20_; - cairo_surface_t** _tmp21_; - gint _tmp21__length1; - gint _tmp22_; - cairo_surface_t* _tmp23_; - gint _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; - gint _tmp28_; - gint _tmp29_; - gint _tmp30_; - gint _tmp31_; - gint _tmp32_; - gdouble _tmp33_; - GdkPixbuf* _tmp34_; - GdkPixbuf* _tmp35_; - gint _tmp36_; - gint _tmp37_; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (!_tmp17_) { -#line 644 "BlindsEffect.c" - gint _tmp18_; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp18_ = i; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - i = _tmp18_ + 1; -#line 650 "BlindsEffect.c" - } -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp17_ = FALSE; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp19_ = i; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp20_ = self->priv->blind_count; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - if (!(_tmp19_ < _tmp20_)) { -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - break; -#line 662 "BlindsEffect.c" - } -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp21_ = self->priv->to_blinds; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp21__length1 = self->priv->to_blinds_length1; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp22_ = i; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp23_ = _tmp21_[_tmp22_]; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp24_ = x; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp25_ = i; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp26_ = self->priv->current_blind_width; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp27_ = y; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_set_source_surface (ctx, _tmp23_, (gdouble) (_tmp24_ + (_tmp25_ * _tmp26_)), (gdouble) _tmp27_); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp28_ = x; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp29_ = i; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp30_ = self->priv->current_blind_width; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp31_ = y; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp32_ = self->priv->current_blind_width; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp33_ = alpha; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp34_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp35_ = _tmp34_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp36_ = gdk_pixbuf_get_height (_tmp35_); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - _tmp37_ = _tmp36_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_rectangle (ctx, (gdouble) (_tmp28_ + (_tmp29_ * _tmp30_)), (gdouble) _tmp31_, _tmp32_ * (_tmp33_ + 0.5), (gdouble) _tmp37_); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_fill (ctx); -#line 706 "BlindsEffect.c" - } - } - } -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_clip (ctx); -#line 88 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - cairo_paint (ctx); -#line 714 "BlindsEffect.c" -} - - -static void -blinds_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - BlindsEffect * self; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 731 "BlindsEffect.c" -} - - -static void -blinds_effect_real_cancel (SpitTransitionsEffect* base) -{ - BlindsEffect * self; -#line 94 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 741 "BlindsEffect.c" -} - - -static void -blinds_effect_class_init (BlindsEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - blinds_effect_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - g_type_class_add_private (klass, sizeof (BlindsEffectPrivate)); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - G_OBJECT_CLASS (klass)->finalize = blinds_effect_finalize; -#line 754 "BlindsEffect.c" -} - - -static void -blinds_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - blinds_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) blinds_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) blinds_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) blinds_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) blinds_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) blinds_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) blinds_effect_real_cancel; -#line 775 "BlindsEffect.c" -} - - -static void -blinds_effect_instance_init (BlindsEffect * self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv = BLINDS_EFFECT_GET_PRIVATE (self); -#line 784 "BlindsEffect.c" -} - - -static void -blinds_effect_finalize (GObject * obj) -{ - BlindsEffect * self; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BLINDS_EFFECT, BlindsEffect); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - self->priv->to_blinds = (_vala_array_free (self->priv->to_blinds, self->priv->to_blinds_length1, (GDestroyNotify) cairo_surface_destroy), NULL); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/BlindsEffect.vala" - G_OBJECT_CLASS (blinds_effect_parent_class)->finalize (obj); -#line 798 "BlindsEffect.c" -} - - -GType -blinds_effect_get_type (void) -{ - static volatile gsize blinds_effect_type_id__volatile = 0; - if (g_once_init_enter (&blinds_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (BlindsEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) blinds_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BlindsEffect), 0, (GInstanceInitFunc) blinds_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) blinds_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType blinds_effect_type_id; - blinds_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "BlindsEffect", &g_define_type_info, 0); - g_type_add_interface_static (blinds_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&blinds_effect_type_id__volatile, blinds_effect_type_id); - } - return blinds_effect_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/shotwell-transitions/ChessEffect.c b/plugins/shotwell-transitions/ChessEffect.c deleted file mode 100644 index 103eeb0..0000000 --- a/plugins/shotwell-transitions/ChessEffect.c +++ /dev/null @@ -1,763 +0,0 @@ -/* ChessEffect.c generated by valac 0.40.4, the Vala compiler - * generated from ChessEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_CHESS_EFFECT_DESCRIPTOR (chess_effect_descriptor_get_type ()) -#define CHESS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor)) -#define CHESS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptorClass)) -#define IS_CHESS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR)) -#define IS_CHESS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHESS_EFFECT_DESCRIPTOR)) -#define CHESS_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptorClass)) - -typedef struct _ChessEffectDescriptor ChessEffectDescriptor; -typedef struct _ChessEffectDescriptorClass ChessEffectDescriptorClass; -typedef struct _ChessEffectDescriptorPrivate ChessEffectDescriptorPrivate; -enum { - CHESS_EFFECT_DESCRIPTOR_0_PROPERTY, - CHESS_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* chess_effect_descriptor_properties[CHESS_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_CHESS_EFFECT (chess_effect_get_type ()) -#define CHESS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHESS_EFFECT, ChessEffect)) -#define CHESS_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHESS_EFFECT, ChessEffectClass)) -#define IS_CHESS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHESS_EFFECT)) -#define IS_CHESS_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHESS_EFFECT)) -#define CHESS_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHESS_EFFECT, ChessEffectClass)) - -typedef struct _ChessEffect ChessEffect; -typedef struct _ChessEffectClass ChessEffectClass; -typedef struct _ChessEffectPrivate ChessEffectPrivate; -enum { - CHESS_EFFECT_0_PROPERTY, - CHESS_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* chess_effect_properties[CHESS_EFFECT_NUM_PROPERTIES]; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _ChessEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - ChessEffectDescriptorPrivate * priv; -}; - -struct _ChessEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _ChessEffect { - GObject parent_instance; - ChessEffectPrivate * priv; -}; - -struct _ChessEffectClass { - GObjectClass parent_class; -}; - -struct _ChessEffectPrivate { - gdouble square_count_x; - gdouble square_count_y; -}; - - -static gpointer chess_effect_descriptor_parent_class = NULL; -static gpointer chess_effect_parent_class = NULL; -static SpitTransitionsEffectIface * chess_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType chess_effect_descriptor_get_type (void) G_GNUC_CONST; -ChessEffectDescriptor* chess_effect_descriptor_new (GFile* resource_directory); -ChessEffectDescriptor* chess_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* chess_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* chess_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* chess_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -ChessEffect* chess_effect_new (void); -ChessEffect* chess_effect_construct (GType object_type); -GType chess_effect_get_type (void) G_GNUC_CONST; -#define CHESS_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CHESS_EFFECT, ChessEffectPrivate)) -#define CHESS_EFFECT_DESIRED_FPS 25 -#define CHESS_EFFECT_MIN_FPS 10 -#define CHESS_EFFECT_SQUARE_SIZE 100 -static void chess_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void chess_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean chess_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void chess_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void chess_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void chess_effect_real_cancel (SpitTransitionsEffect* base); -static void chess_effect_finalize (GObject * obj); - - -ChessEffectDescriptor* -chess_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - ChessEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = (ChessEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return self; -#line 160 "ChessEffect.c" -} - - -ChessEffectDescriptor* -chess_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return chess_effect_descriptor_construct (TYPE_CHESS_EFFECT_DESCRIPTOR, resource_directory); -#line 169 "ChessEffect.c" -} - - -static const gchar* -chess_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - ChessEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - result = "org.yorba.shotwell.transitions.chess"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return result; -#line 184 "ChessEffect.c" -} - - -static const gchar* -chess_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - ChessEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - result = _ ("Chess"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return result; -#line 199 "ChessEffect.c" -} - - -static SpitTransitionsEffect* -chess_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - ChessEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - ChessEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp0_ = chess_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return result; -#line 220 "ChessEffect.c" -} - - -static void -chess_effect_descriptor_class_init (ChessEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - chess_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) chess_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) chess_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) chess_effect_descriptor_real_create; -#line 235 "ChessEffect.c" -} - - -static void -chess_effect_descriptor_instance_init (ChessEffectDescriptor * self) -{ -} - - -GType -chess_effect_descriptor_get_type (void) -{ - static volatile gsize chess_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&chess_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ChessEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) chess_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ChessEffectDescriptor), 0, (GInstanceInitFunc) chess_effect_descriptor_instance_init, NULL }; - GType chess_effect_descriptor_type_id; - chess_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "ChessEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&chess_effect_descriptor_type_id__volatile, chess_effect_descriptor_type_id); - } - return chess_effect_descriptor_type_id__volatile; -} - - -ChessEffect* -chess_effect_construct (GType object_type) -{ - ChessEffect * self = NULL; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = (ChessEffect*) g_object_new (object_type, NULL); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return self; -#line 267 "ChessEffect.c" -} - - -ChessEffect* -chess_effect_new (void) -{ -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return chess_effect_construct (TYPE_CHESS_EFFECT); -#line 276 "ChessEffect.c" -} - - -static void -chess_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - ChessEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _vala_desired_fps = CHESS_EFFECT_DESIRED_FPS; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _vala_min_fps = CHESS_EFFECT_MIN_FPS; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (desired_fps) { -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - *desired_fps = _vala_desired_fps; -#line 298 "ChessEffect.c" - } -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (min_fps) { -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - *min_fps = _vala_min_fps; -#line 304 "ChessEffect.c" - } -} - - -static void -chess_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - ChessEffect * self; - GdkRectangle _tmp0_ = {0}; - GdkRectangle _tmp1_; - gint _tmp2_; - GdkRectangle _tmp3_ = {0}; - GdkRectangle _tmp4_; - gint _tmp5_; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp0_); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp1_ = _tmp0_; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp2_ = _tmp1_.height; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self->priv->square_count_y = (gdouble) ((_tmp2_ / CHESS_EFFECT_SQUARE_SIZE) + 2); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp3_); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp4_ = _tmp3_; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp5_ = _tmp4_.width; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self->priv->square_count_x = (gdouble) ((_tmp5_ / CHESS_EFFECT_SQUARE_SIZE) + 2); -#line 343 "ChessEffect.c" -} - - -static gboolean -chess_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - ChessEffect * self; - gboolean result = FALSE; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - result = TRUE; -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - return result; -#line 358 "ChessEffect.c" -} - - -static void -chess_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - ChessEffect * self; - gdouble alpha = 0.0; - gdouble size = 0.0; - gdouble _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (ctx != NULL); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp0_ = alpha; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - size = (2 * _tmp0_) * CHESS_EFFECT_SQUARE_SIZE; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp1_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp2_ = _tmp1_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (_tmp2_ != NULL) { -#line 399 "ChessEffect.c" - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GdkRectangle _tmp5_ = {0}; - GdkRectangle _tmp6_; - gint _tmp7_; - GdkRectangle _tmp8_ = {0}; - GdkRectangle _tmp9_; - gint _tmp10_; - gdouble _tmp11_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp3_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp4_ = _tmp3_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp5_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp6_ = _tmp5_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp7_ = _tmp6_.x; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp8_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp9_ = _tmp8_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp10_ = _tmp9_.y; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp4_, (gdouble) _tmp7_, (gdouble) _tmp10_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp11_ = alpha; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_paint_with_alpha (ctx, 1 - _tmp11_); -#line 431 "ChessEffect.c" - } -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp12_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp13_ = _tmp12_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (_tmp13_ != NULL) { -#line 439 "ChessEffect.c" - GdkPixbuf* _tmp14_; - GdkPixbuf* _tmp15_; - GdkRectangle _tmp16_ = {0}; - GdkRectangle _tmp17_; - gint _tmp18_; - GdkRectangle _tmp19_ = {0}; - GdkRectangle _tmp20_; - gint _tmp21_; - gdouble _tmp59_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp14_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp15_ = _tmp14_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp16_); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp17_ = _tmp16_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp18_ = _tmp17_.x; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp19_); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp20_ = _tmp19_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp21_ = _tmp20_.y; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp15_, (gdouble) _tmp18_, (gdouble) _tmp21_); -#line 467 "ChessEffect.c" - { - gdouble y = 0.0; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - y = (gdouble) 0; -#line 472 "ChessEffect.c" - { - gboolean _tmp22_ = FALSE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp22_ = TRUE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - while (TRUE) { -#line 479 "ChessEffect.c" - gdouble _tmp24_; - gdouble _tmp25_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (!_tmp22_) { -#line 484 "ChessEffect.c" - gdouble _tmp23_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp23_ = y; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - y = _tmp23_ + 1; -#line 490 "ChessEffect.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp22_ = FALSE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp24_ = y; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp25_ = self->priv->square_count_y; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (!(_tmp24_ <= _tmp25_)) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - break; -#line 502 "ChessEffect.c" - } - { - gdouble x = 0.0; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - x = (gdouble) 0; -#line 508 "ChessEffect.c" - { - gboolean _tmp26_ = FALSE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp26_ = TRUE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - while (TRUE) { -#line 515 "ChessEffect.c" - gdouble _tmp28_; - gdouble _tmp29_; - gdouble _tmp30_ = 0.0; - gdouble _tmp31_; - gdouble _tmp32_; - gdouble translation = 0.0; - SpitTransitionsDirection _tmp33_; - SpitTransitionsDirection _tmp34_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (!_tmp26_) { -#line 526 "ChessEffect.c" - gdouble _tmp27_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp27_ = x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - x = _tmp27_ + 1; -#line 532 "ChessEffect.c" - } -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp26_ = FALSE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp28_ = x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp29_ = self->priv->square_count_x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (!(_tmp28_ <= _tmp29_)) { -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - break; -#line 544 "ChessEffect.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp31_ = x; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp32_ = y; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (fmod (_tmp31_ + _tmp32_, 2) == ((gdouble) 0)) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp30_ = (-1.5) * CHESS_EFFECT_SQUARE_SIZE; -#line 554 "ChessEffect.c" - } else { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp30_ = 1.5 * CHESS_EFFECT_SQUARE_SIZE; -#line 558 "ChessEffect.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - translation = _tmp30_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp33_ = spit_transitions_motion_get_direction (motion); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp34_ = _tmp33_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - if (_tmp34_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) { -#line 568 "ChessEffect.c" - GdkRectangle _tmp35_ = {0}; - GdkRectangle _tmp36_; - gint _tmp37_; - gdouble _tmp38_; - gdouble _tmp39_; - GdkRectangle _tmp40_ = {0}; - GdkRectangle _tmp41_; - gint _tmp42_; - gdouble _tmp43_; - gdouble _tmp44_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp35_); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp36_ = _tmp35_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp37_ = _tmp36_.x; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp38_ = translation; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp39_ = x; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp40_); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp41_ = _tmp40_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp42_ = _tmp41_.y; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp43_ = y; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp44_ = size; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_rectangle (ctx, (_tmp37_ + _tmp38_) + (_tmp39_ * CHESS_EFFECT_SQUARE_SIZE), _tmp42_ + (_tmp43_ * CHESS_EFFECT_SQUARE_SIZE), _tmp44_, (gdouble) CHESS_EFFECT_SQUARE_SIZE); -#line 601 "ChessEffect.c" - } else { - GdkRectangle _tmp45_ = {0}; - GdkRectangle _tmp46_; - gint _tmp47_; - GdkRectangle _tmp48_ = {0}; - GdkRectangle _tmp49_; - gint _tmp50_; - gdouble _tmp51_; - gdouble _tmp52_; - gdouble _tmp53_; - GdkRectangle _tmp54_ = {0}; - GdkRectangle _tmp55_; - gint _tmp56_; - gdouble _tmp57_; - gdouble _tmp58_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp45_); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp46_ = _tmp45_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp47_ = _tmp46_.x; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp48_); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp49_ = _tmp48_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp50_ = _tmp49_.width; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp51_ = translation; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp52_ = x; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp53_ = size; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp54_); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp55_ = _tmp54_; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp56_ = _tmp55_.y; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp57_ = y; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp58_ = size; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_rectangle (ctx, (((_tmp47_ + _tmp50_) + _tmp51_) - (_tmp52_ * CHESS_EFFECT_SQUARE_SIZE)) - _tmp53_, _tmp56_ + (_tmp57_ * CHESS_EFFECT_SQUARE_SIZE), _tmp58_, (gdouble) CHESS_EFFECT_SQUARE_SIZE); -#line 647 "ChessEffect.c" - } - } - } - } - } - } - } -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_clip (ctx); -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - _tmp59_ = alpha; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - cairo_paint_with_alpha (ctx, _tmp59_); -#line 661 "ChessEffect.c" - } -} - - -static void -chess_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - ChessEffect * self; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 679 "ChessEffect.c" -} - - -static void -chess_effect_real_cancel (SpitTransitionsEffect* base) -{ - ChessEffect * self; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHESS_EFFECT, ChessEffect); -#line 689 "ChessEffect.c" -} - - -static void -chess_effect_class_init (ChessEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - chess_effect_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - g_type_class_add_private (klass, sizeof (ChessEffectPrivate)); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - G_OBJECT_CLASS (klass)->finalize = chess_effect_finalize; -#line 702 "ChessEffect.c" -} - - -static void -chess_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - chess_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) chess_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) chess_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) chess_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) chess_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) chess_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) chess_effect_real_cancel; -#line 723 "ChessEffect.c" -} - - -static void -chess_effect_instance_init (ChessEffect * self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self->priv = CHESS_EFFECT_GET_PRIVATE (self); -#line 732 "ChessEffect.c" -} - - -static void -chess_effect_finalize (GObject * obj) -{ - ChessEffect * self; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CHESS_EFFECT, ChessEffect); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ChessEffect.vala" - G_OBJECT_CLASS (chess_effect_parent_class)->finalize (obj); -#line 744 "ChessEffect.c" -} - - -GType -chess_effect_get_type (void) -{ - static volatile gsize chess_effect_type_id__volatile = 0; - if (g_once_init_enter (&chess_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ChessEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) chess_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ChessEffect), 0, (GInstanceInitFunc) chess_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) chess_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType chess_effect_type_id; - chess_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "ChessEffect", &g_define_type_info, 0); - g_type_add_interface_static (chess_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&chess_effect_type_id__volatile, chess_effect_type_id); - } - return chess_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/CircleEffect.c b/plugins/shotwell-transitions/CircleEffect.c deleted file mode 100644 index cb2b660..0000000 --- a/plugins/shotwell-transitions/CircleEffect.c +++ /dev/null @@ -1,528 +0,0 @@ -/* CircleEffect.c generated by valac 0.40.4, the Vala compiler - * generated from CircleEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_CIRCLE_EFFECT_DESCRIPTOR (circle_effect_descriptor_get_type ()) -#define CIRCLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor)) -#define CIRCLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptorClass)) -#define IS_CIRCLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR)) -#define IS_CIRCLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLE_EFFECT_DESCRIPTOR)) -#define CIRCLE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptorClass)) - -typedef struct _CircleEffectDescriptor CircleEffectDescriptor; -typedef struct _CircleEffectDescriptorClass CircleEffectDescriptorClass; -typedef struct _CircleEffectDescriptorPrivate CircleEffectDescriptorPrivate; -enum { - CIRCLE_EFFECT_DESCRIPTOR_0_PROPERTY, - CIRCLE_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* circle_effect_descriptor_properties[CIRCLE_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_CIRCLE_EFFECT (circle_effect_get_type ()) -#define CIRCLE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLE_EFFECT, CircleEffect)) -#define CIRCLE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLE_EFFECT, CircleEffectClass)) -#define IS_CIRCLE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLE_EFFECT)) -#define IS_CIRCLE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLE_EFFECT)) -#define CIRCLE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLE_EFFECT, CircleEffectClass)) - -typedef struct _CircleEffect CircleEffect; -typedef struct _CircleEffectClass CircleEffectClass; -typedef struct _CircleEffectPrivate CircleEffectPrivate; -enum { - CIRCLE_EFFECT_0_PROPERTY, - CIRCLE_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* circle_effect_properties[CIRCLE_EFFECT_NUM_PROPERTIES]; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _CircleEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - CircleEffectDescriptorPrivate * priv; -}; - -struct _CircleEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _CircleEffect { - GObject parent_instance; - CircleEffectPrivate * priv; -}; - -struct _CircleEffectClass { - GObjectClass parent_class; -}; - - -static gpointer circle_effect_descriptor_parent_class = NULL; -static gpointer circle_effect_parent_class = NULL; -static SpitTransitionsEffectIface * circle_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType circle_effect_descriptor_get_type (void) G_GNUC_CONST; -CircleEffectDescriptor* circle_effect_descriptor_new (GFile* resource_directory); -CircleEffectDescriptor* circle_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* circle_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* circle_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* circle_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -CircleEffect* circle_effect_new (void); -CircleEffect* circle_effect_construct (GType object_type); -GType circle_effect_get_type (void) G_GNUC_CONST; -#define CIRCLE_EFFECT_DESIRED_FPS 25 -#define CIRCLE_EFFECT_MIN_FPS 15 -static void circle_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void circle_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean circle_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void circle_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void circle_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void circle_effect_real_cancel (SpitTransitionsEffect* base); - - -CircleEffectDescriptor* -circle_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - CircleEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = (CircleEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return self; -#line 152 "CircleEffect.c" -} - - -CircleEffectDescriptor* -circle_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return circle_effect_descriptor_construct (TYPE_CIRCLE_EFFECT_DESCRIPTOR, resource_directory); -#line 161 "CircleEffect.c" -} - - -static const gchar* -circle_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - CircleEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - result = "org.yorba.shotwell.transitions.circle"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return result; -#line 176 "CircleEffect.c" -} - - -static const gchar* -circle_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - CircleEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - result = _ ("Circle"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return result; -#line 191 "CircleEffect.c" -} - - -static SpitTransitionsEffect* -circle_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - CircleEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - CircleEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp0_ = circle_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return result; -#line 212 "CircleEffect.c" -} - - -static void -circle_effect_descriptor_class_init (CircleEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - circle_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) circle_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) circle_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) circle_effect_descriptor_real_create; -#line 227 "CircleEffect.c" -} - - -static void -circle_effect_descriptor_instance_init (CircleEffectDescriptor * self) -{ -} - - -GType -circle_effect_descriptor_get_type (void) -{ - static volatile gsize circle_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&circle_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CircleEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) circle_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CircleEffectDescriptor), 0, (GInstanceInitFunc) circle_effect_descriptor_instance_init, NULL }; - GType circle_effect_descriptor_type_id; - circle_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "CircleEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&circle_effect_descriptor_type_id__volatile, circle_effect_descriptor_type_id); - } - return circle_effect_descriptor_type_id__volatile; -} - - -CircleEffect* -circle_effect_construct (GType object_type) -{ - CircleEffect * self = NULL; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = (CircleEffect*) g_object_new (object_type, NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return self; -#line 259 "CircleEffect.c" -} - - -CircleEffect* -circle_effect_new (void) -{ -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return circle_effect_construct (TYPE_CIRCLE_EFFECT); -#line 268 "CircleEffect.c" -} - - -static void -circle_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - CircleEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _vala_desired_fps = CIRCLE_EFFECT_DESIRED_FPS; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _vala_min_fps = CIRCLE_EFFECT_MIN_FPS; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - if (desired_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - *desired_fps = _vala_desired_fps; -#line 290 "CircleEffect.c" - } -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - if (min_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - *min_fps = _vala_min_fps; -#line 296 "CircleEffect.c" - } -} - - -static void -circle_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - CircleEffect * self; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 313 "CircleEffect.c" -} - - -static gboolean -circle_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - CircleEffect * self; - gboolean result = FALSE; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - result = TRUE; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - return result; -#line 328 "CircleEffect.c" -} - - -static void -circle_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - CircleEffect * self; - gdouble alpha = 0.0; - gint radius = 0; - gdouble _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (ctx != NULL); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp0_ = alpha; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - radius = (gint) (_tmp0_ * fmax ((gdouble) width, (gdouble) height)); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp1_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp2_ = _tmp1_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - if (_tmp2_ != NULL) { -#line 369 "CircleEffect.c" - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GdkRectangle _tmp5_ = {0}; - GdkRectangle _tmp6_; - gint _tmp7_; - GdkRectangle _tmp8_ = {0}; - GdkRectangle _tmp9_; - gint _tmp10_; - gdouble _tmp11_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp3_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp4_ = _tmp3_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp5_); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp6_ = _tmp5_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp7_ = _tmp6_.x; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp8_); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp9_ = _tmp8_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp10_ = _tmp9_.y; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp4_, (gdouble) _tmp7_, (gdouble) _tmp10_); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp11_ = alpha; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - cairo_paint_with_alpha (ctx, 1 - _tmp11_); -#line 401 "CircleEffect.c" - } -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp12_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp13_ = _tmp12_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - if (_tmp13_ != NULL) { -#line 409 "CircleEffect.c" - GdkPixbuf* _tmp14_; - GdkPixbuf* _tmp15_; - GdkRectangle _tmp16_ = {0}; - GdkRectangle _tmp17_; - gint _tmp18_; - GdkRectangle _tmp19_ = {0}; - GdkRectangle _tmp20_; - gint _tmp21_; - gint _tmp22_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp14_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp15_ = _tmp14_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp16_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp17_ = _tmp16_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp18_ = _tmp17_.x; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp19_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp20_ = _tmp19_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp21_ = _tmp20_.y; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp15_, (gdouble) _tmp18_, (gdouble) _tmp21_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - _tmp22_ = radius; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - cairo_arc (ctx, (gdouble) (((gint) width) / 2), (gdouble) (((gint) height) / 2), (gdouble) _tmp22_, (gdouble) 0, 2 * G_PI); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - cairo_clip (ctx); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - cairo_paint (ctx); -#line 445 "CircleEffect.c" - } -} - - -static void -circle_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - CircleEffect * self; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 463 "CircleEffect.c" -} - - -static void -circle_effect_real_cancel (SpitTransitionsEffect* base) -{ - CircleEffect * self; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLE_EFFECT, CircleEffect); -#line 473 "CircleEffect.c" -} - - -static void -circle_effect_class_init (CircleEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - circle_effect_parent_class = g_type_class_peek_parent (klass); -#line 482 "CircleEffect.c" -} - - -static void -circle_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - circle_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) circle_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) circle_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) circle_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) circle_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) circle_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CircleEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) circle_effect_real_cancel; -#line 503 "CircleEffect.c" -} - - -static void -circle_effect_instance_init (CircleEffect * self) -{ -} - - -GType -circle_effect_get_type (void) -{ - static volatile gsize circle_effect_type_id__volatile = 0; - if (g_once_init_enter (&circle_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CircleEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) circle_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CircleEffect), 0, (GInstanceInitFunc) circle_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) circle_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType circle_effect_type_id; - circle_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "CircleEffect", &g_define_type_info, 0); - g_type_add_interface_static (circle_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&circle_effect_type_id__volatile, circle_effect_type_id); - } - return circle_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/CirclesEffect.c b/plugins/shotwell-transitions/CirclesEffect.c deleted file mode 100644 index 410dc93..0000000 --- a/plugins/shotwell-transitions/CirclesEffect.c +++ /dev/null @@ -1,662 +0,0 @@ -/* CirclesEffect.c generated by valac 0.40.4, the Vala compiler - * generated from CirclesEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_CIRCLES_EFFECT_DESCRIPTOR (circles_effect_descriptor_get_type ()) -#define CIRCLES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor)) -#define CIRCLES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptorClass)) -#define IS_CIRCLES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR)) -#define IS_CIRCLES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLES_EFFECT_DESCRIPTOR)) -#define CIRCLES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptorClass)) - -typedef struct _CirclesEffectDescriptor CirclesEffectDescriptor; -typedef struct _CirclesEffectDescriptorClass CirclesEffectDescriptorClass; -typedef struct _CirclesEffectDescriptorPrivate CirclesEffectDescriptorPrivate; -enum { - CIRCLES_EFFECT_DESCRIPTOR_0_PROPERTY, - CIRCLES_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* circles_effect_descriptor_properties[CIRCLES_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_CIRCLES_EFFECT (circles_effect_get_type ()) -#define CIRCLES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLES_EFFECT, CirclesEffect)) -#define CIRCLES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLES_EFFECT, CirclesEffectClass)) -#define IS_CIRCLES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLES_EFFECT)) -#define IS_CIRCLES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLES_EFFECT)) -#define CIRCLES_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLES_EFFECT, CirclesEffectClass)) - -typedef struct _CirclesEffect CirclesEffect; -typedef struct _CirclesEffectClass CirclesEffectClass; -typedef struct _CirclesEffectPrivate CirclesEffectPrivate; -enum { - CIRCLES_EFFECT_0_PROPERTY, - CIRCLES_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* circles_effect_properties[CIRCLES_EFFECT_NUM_PROPERTIES]; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _CirclesEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - CirclesEffectDescriptorPrivate * priv; -}; - -struct _CirclesEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _CirclesEffect { - GObject parent_instance; - CirclesEffectPrivate * priv; -}; - -struct _CirclesEffectClass { - GObjectClass parent_class; -}; - - -static gpointer circles_effect_descriptor_parent_class = NULL; -static gpointer circles_effect_parent_class = NULL; -static SpitTransitionsEffectIface * circles_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType circles_effect_descriptor_get_type (void) G_GNUC_CONST; -CirclesEffectDescriptor* circles_effect_descriptor_new (GFile* resource_directory); -CirclesEffectDescriptor* circles_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* circles_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* circles_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* circles_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -CirclesEffect* circles_effect_new (void); -CirclesEffect* circles_effect_construct (GType object_type); -GType circles_effect_get_type (void) G_GNUC_CONST; -#define CIRCLES_EFFECT_DESIRED_FPS 25 -#define CIRCLES_EFFECT_MIN_FPS 15 -#define CIRCLES_EFFECT_SPEED 2.5 -static void circles_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void circles_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean circles_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void circles_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void circles_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void circles_effect_real_cancel (SpitTransitionsEffect* base); - - -CirclesEffectDescriptor* -circles_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - CirclesEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = (CirclesEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return self; -#line 153 "CirclesEffect.c" -} - - -CirclesEffectDescriptor* -circles_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return circles_effect_descriptor_construct (TYPE_CIRCLES_EFFECT_DESCRIPTOR, resource_directory); -#line 162 "CirclesEffect.c" -} - - -static const gchar* -circles_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - CirclesEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - result = "org.yorba.shotwell.transitions.circles"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return result; -#line 177 "CirclesEffect.c" -} - - -static const gchar* -circles_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - CirclesEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - result = _ ("Circles"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return result; -#line 192 "CirclesEffect.c" -} - - -static SpitTransitionsEffect* -circles_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - CirclesEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - CirclesEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp0_ = circles_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return result; -#line 213 "CirclesEffect.c" -} - - -static void -circles_effect_descriptor_class_init (CirclesEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - circles_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) circles_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) circles_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) circles_effect_descriptor_real_create; -#line 228 "CirclesEffect.c" -} - - -static void -circles_effect_descriptor_instance_init (CirclesEffectDescriptor * self) -{ -} - - -GType -circles_effect_descriptor_get_type (void) -{ - static volatile gsize circles_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&circles_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CirclesEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) circles_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CirclesEffectDescriptor), 0, (GInstanceInitFunc) circles_effect_descriptor_instance_init, NULL }; - GType circles_effect_descriptor_type_id; - circles_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "CirclesEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&circles_effect_descriptor_type_id__volatile, circles_effect_descriptor_type_id); - } - return circles_effect_descriptor_type_id__volatile; -} - - -CirclesEffect* -circles_effect_construct (GType object_type) -{ - CirclesEffect * self = NULL; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = (CirclesEffect*) g_object_new (object_type, NULL); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return self; -#line 260 "CirclesEffect.c" -} - - -CirclesEffect* -circles_effect_new (void) -{ -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return circles_effect_construct (TYPE_CIRCLES_EFFECT); -#line 269 "CirclesEffect.c" -} - - -static void -circles_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - CirclesEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _vala_desired_fps = CIRCLES_EFFECT_DESIRED_FPS; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _vala_min_fps = CIRCLES_EFFECT_MIN_FPS; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (desired_fps) { -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - *desired_fps = _vala_desired_fps; -#line 291 "CirclesEffect.c" - } -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (min_fps) { -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - *min_fps = _vala_min_fps; -#line 297 "CirclesEffect.c" - } -} - - -static void -circles_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - CirclesEffect * self; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 314 "CirclesEffect.c" -} - - -static gboolean -circles_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - CirclesEffect * self; - gboolean result = FALSE; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - result = TRUE; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - return result; -#line 329 "CirclesEffect.c" -} - - -static void -circles_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - CirclesEffect * self; - gdouble alpha = 0.0; - gint distance = 0; - gint radius = 0; - gint circleCountX = 0; - gint _tmp0_; - gint circleCountY = 0; - gint _tmp1_; - gdouble maxRadius = 0.0; - gint _tmp2_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp14_; - GdkPixbuf* _tmp15_; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (ctx != NULL); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - distance = 60; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp0_ = distance; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - circleCountX = width / (2 * _tmp0_); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp1_ = distance; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - circleCountY = height / _tmp1_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp2_ = distance; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - maxRadius = CIRCLES_EFFECT_SPEED * _tmp2_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp3_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp4_ = _tmp3_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (_tmp4_ != NULL) { -#line 386 "CirclesEffect.c" - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; - GdkRectangle _tmp7_ = {0}; - GdkRectangle _tmp8_; - gint _tmp9_; - GdkRectangle _tmp10_ = {0}; - GdkRectangle _tmp11_; - gint _tmp12_; - gdouble _tmp13_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp5_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp6_ = _tmp5_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp7_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp8_ = _tmp7_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp9_ = _tmp8_.x; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp10_); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp11_ = _tmp10_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp12_ = _tmp11_.y; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp6_, (gdouble) _tmp9_, (gdouble) _tmp12_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp13_ = alpha; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - cairo_paint_with_alpha (ctx, 1 - _tmp13_); -#line 418 "CirclesEffect.c" - } -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp14_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp15_ = _tmp14_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (_tmp15_ != NULL) { -#line 426 "CirclesEffect.c" - GdkPixbuf* _tmp16_; - GdkPixbuf* _tmp17_; - GdkRectangle _tmp18_ = {0}; - GdkRectangle _tmp19_; - gint _tmp20_; - GdkRectangle _tmp21_ = {0}; - GdkRectangle _tmp22_; - gint _tmp23_; - gdouble _tmp43_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp16_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp17_ = _tmp16_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp18_); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp19_ = _tmp18_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp20_ = _tmp19_.x; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp21_); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp22_ = _tmp21_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp23_ = _tmp22_.y; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp17_, (gdouble) _tmp20_, (gdouble) _tmp23_); -#line 454 "CirclesEffect.c" - { - gint y = 0; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - y = 0; -#line 459 "CirclesEffect.c" - { - gboolean _tmp24_ = FALSE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp24_ = TRUE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - while (TRUE) { -#line 466 "CirclesEffect.c" - gint _tmp26_; - gint _tmp27_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (!_tmp24_) { -#line 471 "CirclesEffect.c" - gint _tmp25_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp25_ = y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - y = _tmp25_ + 1; -#line 477 "CirclesEffect.c" - } -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp24_ = FALSE; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp26_ = y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp27_ = circleCountY; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (!(_tmp26_ <= _tmp27_)) { -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - break; -#line 489 "CirclesEffect.c" - } - { - gint x = 0; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - x = 0; -#line 495 "CirclesEffect.c" - { - gboolean _tmp28_ = FALSE; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp28_ = TRUE; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - while (TRUE) { -#line 502 "CirclesEffect.c" - gint _tmp30_; - gint _tmp31_; - gdouble _tmp32_; - gint _tmp33_; - gint _tmp34_; - gint _tmp35_; - gint _tmp36_; - gdouble _tmp37_; - gint _tmp38_; - gint _tmp39_; - gint _tmp40_; - gint _tmp41_; - gint _tmp42_; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (!_tmp28_) { -#line 518 "CirclesEffect.c" - gint _tmp29_; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp29_ = x; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - x = _tmp29_ + 1; -#line 524 "CirclesEffect.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp28_ = FALSE; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp30_ = x; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp31_ = circleCountX; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - if (!(_tmp30_ <= _tmp31_)) { -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - break; -#line 536 "CirclesEffect.c" - } -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp32_ = alpha; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp33_ = x; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp34_ = y; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp35_ = circleCountY; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp36_ = circleCountX; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp37_ = maxRadius; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - radius = (gint) (fmax ((gdouble) 0, fmin ((gdouble) 1, _tmp32_ - (((gdouble) (_tmp33_ + _tmp34_)) / ((gdouble) ((_tmp35_ + _tmp36_) * CIRCLES_EFFECT_SPEED))))) * _tmp37_); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp38_ = distance; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp39_ = x; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp40_ = distance; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp41_ = y; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp42_ = radius; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - cairo_arc (ctx, (gdouble) ((2 * _tmp38_) * _tmp39_), (gdouble) ((2 * _tmp40_) * _tmp41_), (gdouble) _tmp42_, (gdouble) 0, 2 * G_PI); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - cairo_fill (ctx); -#line 566 "CirclesEffect.c" - } - } - } - } - } - } -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - cairo_clip (ctx); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - _tmp43_ = alpha; -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - cairo_paint_with_alpha (ctx, _tmp43_); -#line 579 "CirclesEffect.c" - } -} - - -static void -circles_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - CirclesEffect * self; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 597 "CirclesEffect.c" -} - - -static void -circles_effect_real_cancel (SpitTransitionsEffect* base) -{ - CirclesEffect * self; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CIRCLES_EFFECT, CirclesEffect); -#line 607 "CirclesEffect.c" -} - - -static void -circles_effect_class_init (CirclesEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - circles_effect_parent_class = g_type_class_peek_parent (klass); -#line 616 "CirclesEffect.c" -} - - -static void -circles_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - circles_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) circles_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) circles_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) circles_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) circles_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) circles_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CirclesEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) circles_effect_real_cancel; -#line 637 "CirclesEffect.c" -} - - -static void -circles_effect_instance_init (CirclesEffect * self) -{ -} - - -GType -circles_effect_get_type (void) -{ - static volatile gsize circles_effect_type_id__volatile = 0; - if (g_once_init_enter (&circles_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CirclesEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) circles_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CirclesEffect), 0, (GInstanceInitFunc) circles_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) circles_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType circles_effect_type_id; - circles_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "CirclesEffect", &g_define_type_info, 0); - g_type_add_interface_static (circles_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&circles_effect_type_id__volatile, circles_effect_type_id); - } - return circles_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/ClockEffect.c b/plugins/shotwell-transitions/ClockEffect.c deleted file mode 100644 index f8f3748..0000000 --- a/plugins/shotwell-transitions/ClockEffect.c +++ /dev/null @@ -1,633 +0,0 @@ -/* ClockEffect.c generated by valac 0.40.4, the Vala compiler - * generated from ClockEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_CLOCK_EFFECT_DESCRIPTOR (clock_effect_descriptor_get_type ()) -#define CLOCK_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor)) -#define CLOCK_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptorClass)) -#define IS_CLOCK_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR)) -#define IS_CLOCK_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CLOCK_EFFECT_DESCRIPTOR)) -#define CLOCK_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptorClass)) - -typedef struct _ClockEffectDescriptor ClockEffectDescriptor; -typedef struct _ClockEffectDescriptorClass ClockEffectDescriptorClass; -typedef struct _ClockEffectDescriptorPrivate ClockEffectDescriptorPrivate; -enum { - CLOCK_EFFECT_DESCRIPTOR_0_PROPERTY, - CLOCK_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* clock_effect_descriptor_properties[CLOCK_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_CLOCK_EFFECT (clock_effect_get_type ()) -#define CLOCK_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CLOCK_EFFECT, ClockEffect)) -#define CLOCK_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CLOCK_EFFECT, ClockEffectClass)) -#define IS_CLOCK_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CLOCK_EFFECT)) -#define IS_CLOCK_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CLOCK_EFFECT)) -#define CLOCK_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CLOCK_EFFECT, ClockEffectClass)) - -typedef struct _ClockEffect ClockEffect; -typedef struct _ClockEffectClass ClockEffectClass; -typedef struct _ClockEffectPrivate ClockEffectPrivate; -enum { - CLOCK_EFFECT_0_PROPERTY, - CLOCK_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* clock_effect_properties[CLOCK_EFFECT_NUM_PROPERTIES]; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _ClockEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - ClockEffectDescriptorPrivate * priv; -}; - -struct _ClockEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _ClockEffect { - GObject parent_instance; - ClockEffectPrivate * priv; -}; - -struct _ClockEffectClass { - GObjectClass parent_class; -}; - - -static gpointer clock_effect_descriptor_parent_class = NULL; -static gpointer clock_effect_parent_class = NULL; -static SpitTransitionsEffectIface * clock_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType clock_effect_descriptor_get_type (void) G_GNUC_CONST; -ClockEffectDescriptor* clock_effect_descriptor_new (GFile* resource_directory); -ClockEffectDescriptor* clock_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* clock_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* clock_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* clock_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -ClockEffect* clock_effect_new (void); -ClockEffect* clock_effect_construct (GType object_type); -GType clock_effect_get_type (void) G_GNUC_CONST; -#define CLOCK_EFFECT_DESIRED_FPS 25 -#define CLOCK_EFFECT_MIN_FPS 15 -#define CLOCK_EFFECT_TOP_RADIANT (0.5 * G_PI) -static void clock_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void clock_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean clock_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void clock_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void clock_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void clock_effect_real_cancel (SpitTransitionsEffect* base); - - -ClockEffectDescriptor* -clock_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - ClockEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = (ClockEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return self; -#line 153 "ClockEffect.c" -} - - -ClockEffectDescriptor* -clock_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return clock_effect_descriptor_construct (TYPE_CLOCK_EFFECT_DESCRIPTOR, resource_directory); -#line 162 "ClockEffect.c" -} - - -static const gchar* -clock_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - ClockEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - result = "org.yorba.shotwell.transitions.clock"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return result; -#line 177 "ClockEffect.c" -} - - -static const gchar* -clock_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - ClockEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - result = _ ("Clock"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return result; -#line 192 "ClockEffect.c" -} - - -static SpitTransitionsEffect* -clock_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - ClockEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - ClockEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp0_ = clock_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return result; -#line 213 "ClockEffect.c" -} - - -static void -clock_effect_descriptor_class_init (ClockEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - clock_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) clock_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) clock_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) clock_effect_descriptor_real_create; -#line 228 "ClockEffect.c" -} - - -static void -clock_effect_descriptor_instance_init (ClockEffectDescriptor * self) -{ -} - - -GType -clock_effect_descriptor_get_type (void) -{ - static volatile gsize clock_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&clock_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ClockEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) clock_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ClockEffectDescriptor), 0, (GInstanceInitFunc) clock_effect_descriptor_instance_init, NULL }; - GType clock_effect_descriptor_type_id; - clock_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "ClockEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&clock_effect_descriptor_type_id__volatile, clock_effect_descriptor_type_id); - } - return clock_effect_descriptor_type_id__volatile; -} - - -ClockEffect* -clock_effect_construct (GType object_type) -{ - ClockEffect * self = NULL; -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = (ClockEffect*) g_object_new (object_type, NULL); -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return self; -#line 260 "ClockEffect.c" -} - - -ClockEffect* -clock_effect_new (void) -{ -#line 33 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return clock_effect_construct (TYPE_CLOCK_EFFECT); -#line 269 "ClockEffect.c" -} - - -static void -clock_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - ClockEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _vala_desired_fps = CLOCK_EFFECT_DESIRED_FPS; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _vala_min_fps = CLOCK_EFFECT_MIN_FPS; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - if (desired_fps) { -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - *desired_fps = _vala_desired_fps; -#line 291 "ClockEffect.c" - } -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - if (min_fps) { -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - *min_fps = _vala_min_fps; -#line 297 "ClockEffect.c" - } -} - - -static void -clock_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - ClockEffect * self; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 314 "ClockEffect.c" -} - - -static gboolean -clock_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - ClockEffect * self; - gboolean result = FALSE; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - result = TRUE; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - return result; -#line 329 "ClockEffect.c" -} - - -static void -clock_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - ClockEffect * self; - gdouble alpha = 0.0; - gdouble start_angle = 0.0; - gdouble stop_angle = 0.0; - SpitTransitionsDirection _tmp0_; - SpitTransitionsDirection _tmp1_; - gint radius = 0; - GdkRectangle _tmp4_ = {0}; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_ = {0}; - GdkRectangle _tmp8_; - gint _tmp9_; - GdkPixbuf* _tmp10_; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp21_; - GdkPixbuf* _tmp22_; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (ctx != NULL); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - start_angle = -CLOCK_EFFECT_TOP_RADIANT; -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - stop_angle = -CLOCK_EFFECT_TOP_RADIANT; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp0_ = spit_transitions_motion_get_direction (motion); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp1_ = _tmp0_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - if (_tmp1_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) { -#line 379 "ClockEffect.c" - gdouble _tmp2_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp2_ = alpha; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - stop_angle = ((_tmp2_ * G_PI) * 2) - CLOCK_EFFECT_TOP_RADIANT; -#line 385 "ClockEffect.c" - } else { - gdouble _tmp3_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp3_ = alpha; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - start_angle = ((2 * (1 - _tmp3_)) * G_PI) - CLOCK_EFFECT_TOP_RADIANT; -#line 392 "ClockEffect.c" - } -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp4_); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp5_ = _tmp4_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp6_ = _tmp5_.width; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp7_); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp8_ = _tmp7_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp9_ = _tmp8_.height; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - radius = (gint) fmax ((gdouble) _tmp6_, (gdouble) _tmp9_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp10_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp11_ = _tmp10_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - if (_tmp11_ != NULL) { -#line 414 "ClockEffect.c" - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; - GdkRectangle _tmp14_ = {0}; - GdkRectangle _tmp15_; - gint _tmp16_; - GdkRectangle _tmp17_ = {0}; - GdkRectangle _tmp18_; - gint _tmp19_; - gdouble _tmp20_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp12_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp13_ = _tmp12_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp14_); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp15_ = _tmp14_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp16_ = _tmp15_.x; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp17_); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp18_ = _tmp17_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp19_ = _tmp18_.y; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp13_, (gdouble) _tmp16_, (gdouble) _tmp19_); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp20_ = alpha; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - cairo_paint_with_alpha (ctx, 1 - _tmp20_); -#line 446 "ClockEffect.c" - } -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp21_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp22_ = _tmp21_; -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - if (_tmp22_ != NULL) { -#line 454 "ClockEffect.c" - GdkPixbuf* _tmp23_; - GdkPixbuf* _tmp24_; - GdkRectangle _tmp25_ = {0}; - GdkRectangle _tmp26_; - gint _tmp27_; - GdkRectangle _tmp28_ = {0}; - GdkRectangle _tmp29_; - gint _tmp30_; - gint x = 0; - GdkRectangle _tmp31_ = {0}; - GdkRectangle _tmp32_; - gint _tmp33_; - GdkRectangle _tmp34_ = {0}; - GdkRectangle _tmp35_; - gint _tmp36_; - gint y = 0; - GdkRectangle _tmp37_ = {0}; - GdkRectangle _tmp38_; - gint _tmp39_; - GdkRectangle _tmp40_ = {0}; - GdkRectangle _tmp41_; - gint _tmp42_; - gint _tmp43_; - gint _tmp44_; - gint _tmp45_; - gint _tmp46_; - gint _tmp47_; - gdouble _tmp48_; - gdouble _tmp49_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp23_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp24_ = _tmp23_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp25_); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp26_ = _tmp25_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp27_ = _tmp26_.x; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp28_); -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp29_ = _tmp28_; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp30_ = _tmp29_.y; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp24_, (gdouble) _tmp27_, (gdouble) _tmp30_); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp31_); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp32_ = _tmp31_; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp33_ = _tmp32_.x; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp34_); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp35_ = _tmp34_; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp36_ = _tmp35_.width; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - x = _tmp33_ + (((gint) _tmp36_) / 2); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp37_); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp38_ = _tmp37_; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp39_ = _tmp38_.y; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp40_); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp41_ = _tmp40_; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp42_ = _tmp41_.height; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - y = _tmp39_ + (((gint) _tmp42_) / 2); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp43_ = x; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp44_ = y; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - cairo_move_to (ctx, (gdouble) _tmp43_, (gdouble) _tmp44_); -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp45_ = x; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp46_ = y; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp47_ = radius; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp48_ = start_angle; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - _tmp49_ = stop_angle; -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - cairo_arc (ctx, (gdouble) _tmp45_, (gdouble) _tmp46_, (gdouble) _tmp47_, _tmp48_, _tmp49_); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - cairo_fill_preserve (ctx); -#line 550 "ClockEffect.c" - } -} - - -static void -clock_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - ClockEffect * self; -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 568 "ClockEffect.c" -} - - -static void -clock_effect_real_cancel (SpitTransitionsEffect* base) -{ - ClockEffect * self; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CLOCK_EFFECT, ClockEffect); -#line 578 "ClockEffect.c" -} - - -static void -clock_effect_class_init (ClockEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - clock_effect_parent_class = g_type_class_peek_parent (klass); -#line 587 "ClockEffect.c" -} - - -static void -clock_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - clock_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) clock_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) clock_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) clock_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) clock_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) clock_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/ClockEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) clock_effect_real_cancel; -#line 608 "ClockEffect.c" -} - - -static void -clock_effect_instance_init (ClockEffect * self) -{ -} - - -GType -clock_effect_get_type (void) -{ - static volatile gsize clock_effect_type_id__volatile = 0; - if (g_once_init_enter (&clock_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ClockEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) clock_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ClockEffect), 0, (GInstanceInitFunc) clock_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) clock_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType clock_effect_type_id; - clock_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "ClockEffect", &g_define_type_info, 0); - g_type_add_interface_static (clock_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&clock_effect_type_id__volatile, clock_effect_type_id); - } - return clock_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/CrumbleEffect.c b/plugins/shotwell-transitions/CrumbleEffect.c deleted file mode 100644 index 62b4c5e..0000000 --- a/plugins/shotwell-transitions/CrumbleEffect.c +++ /dev/null @@ -1,884 +0,0 @@ -/* CrumbleEffect.c generated by valac 0.40.4, the Vala compiler - * generated from CrumbleEffect.vala, do not modify */ - -/* Copyright 2010 Maxim Kartashev - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_CRUMBLE_EFFECT_DESCRIPTOR (crumble_effect_descriptor_get_type ()) -#define CRUMBLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor)) -#define CRUMBLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptorClass)) -#define IS_CRUMBLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR)) -#define IS_CRUMBLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CRUMBLE_EFFECT_DESCRIPTOR)) -#define CRUMBLE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptorClass)) - -typedef struct _CrumbleEffectDescriptor CrumbleEffectDescriptor; -typedef struct _CrumbleEffectDescriptorClass CrumbleEffectDescriptorClass; -typedef struct _CrumbleEffectDescriptorPrivate CrumbleEffectDescriptorPrivate; -enum { - CRUMBLE_EFFECT_DESCRIPTOR_0_PROPERTY, - CRUMBLE_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* crumble_effect_descriptor_properties[CRUMBLE_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_CRUMBLE_EFFECT (crumble_effect_get_type ()) -#define CRUMBLE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CRUMBLE_EFFECT, CrumbleEffect)) -#define CRUMBLE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CRUMBLE_EFFECT, CrumbleEffectClass)) -#define IS_CRUMBLE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CRUMBLE_EFFECT)) -#define IS_CRUMBLE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CRUMBLE_EFFECT)) -#define CRUMBLE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CRUMBLE_EFFECT, CrumbleEffectClass)) - -typedef struct _CrumbleEffect CrumbleEffect; -typedef struct _CrumbleEffectClass CrumbleEffectClass; -typedef struct _CrumbleEffectPrivate CrumbleEffectPrivate; -enum { - CRUMBLE_EFFECT_0_PROPERTY, - CRUMBLE_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* crumble_effect_properties[CRUMBLE_EFFECT_NUM_PROPERTIES]; -#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL))) -#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL))) -#define _g_rand_free0(var) ((var == NULL) ? NULL : (var = (g_rand_free (var), NULL))) - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _CrumbleEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - CrumbleEffectDescriptorPrivate * priv; -}; - -struct _CrumbleEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _CrumbleEffect { - GObject parent_instance; - CrumbleEffectPrivate * priv; -}; - -struct _CrumbleEffectClass { - GObjectClass parent_class; -}; - -struct _CrumbleEffectPrivate { - cairo_surface_t** from_stripes; - gint from_stripes_length1; - gint _from_stripes_size_; - gdouble* accelerations; - gint accelerations_length1; - gint _accelerations_size_; - gint stripes_count; -}; - - -static gpointer crumble_effect_descriptor_parent_class = NULL; -static gpointer crumble_effect_parent_class = NULL; -static SpitTransitionsEffectIface * crumble_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType crumble_effect_descriptor_get_type (void) G_GNUC_CONST; -CrumbleEffectDescriptor* crumble_effect_descriptor_new (GFile* resource_directory); -CrumbleEffectDescriptor* crumble_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* crumble_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* crumble_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* crumble_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -CrumbleEffect* crumble_effect_new (void); -CrumbleEffect* crumble_effect_construct (GType object_type); -GType crumble_effect_get_type (void) G_GNUC_CONST; -#define CRUMBLE_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CRUMBLE_EFFECT, CrumbleEffectPrivate)) -#define CRUMBLE_EFFECT_DESIRED_FPS 25 -#define CRUMBLE_EFFECT_MIN_FPS 15 -#define CRUMBLE_EFFECT_STRIPE_WIDTH 10 -static void crumble_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static gboolean crumble_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void crumble_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static void crumble_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void crumble_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void crumble_effect_real_cancel (SpitTransitionsEffect* base); -static void crumble_effect_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -CrumbleEffectDescriptor* -crumble_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - CrumbleEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = (CrumbleEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return self; -#line 175 "CrumbleEffect.c" -} - - -CrumbleEffectDescriptor* -crumble_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return crumble_effect_descriptor_construct (TYPE_CRUMBLE_EFFECT_DESCRIPTOR, resource_directory); -#line 184 "CrumbleEffect.c" -} - - -static const gchar* -crumble_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - CrumbleEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - result = "org.yorba.shotwell.transitions.crumble"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return result; -#line 199 "CrumbleEffect.c" -} - - -static const gchar* -crumble_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - CrumbleEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - result = _ ("Crumble"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return result; -#line 214 "CrumbleEffect.c" -} - - -static SpitTransitionsEffect* -crumble_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - CrumbleEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - CrumbleEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp0_ = crumble_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return result; -#line 235 "CrumbleEffect.c" -} - - -static void -crumble_effect_descriptor_class_init (CrumbleEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - crumble_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) crumble_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) crumble_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) crumble_effect_descriptor_real_create; -#line 250 "CrumbleEffect.c" -} - - -static void -crumble_effect_descriptor_instance_init (CrumbleEffectDescriptor * self) -{ -} - - -GType -crumble_effect_descriptor_get_type (void) -{ - static volatile gsize crumble_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&crumble_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CrumbleEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) crumble_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CrumbleEffectDescriptor), 0, (GInstanceInitFunc) crumble_effect_descriptor_instance_init, NULL }; - GType crumble_effect_descriptor_type_id; - crumble_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "CrumbleEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&crumble_effect_descriptor_type_id__volatile, crumble_effect_descriptor_type_id); - } - return crumble_effect_descriptor_type_id__volatile; -} - - -CrumbleEffect* -crumble_effect_construct (GType object_type) -{ - CrumbleEffect * self = NULL; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = (CrumbleEffect*) g_object_new (object_type, NULL); -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return self; -#line 282 "CrumbleEffect.c" -} - - -CrumbleEffect* -crumble_effect_new (void) -{ -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return crumble_effect_construct (TYPE_CRUMBLE_EFFECT); -#line 291 "CrumbleEffect.c" -} - - -static void -crumble_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - CrumbleEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _vala_desired_fps = CRUMBLE_EFFECT_DESIRED_FPS; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _vala_min_fps = CRUMBLE_EFFECT_MIN_FPS; -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (desired_fps) { -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - *desired_fps = _vala_desired_fps; -#line 313 "CrumbleEffect.c" - } -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (min_fps) { -#line 41 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - *min_fps = _vala_min_fps; -#line 319 "CrumbleEffect.c" - } -} - - -static gboolean -crumble_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - CrumbleEffect * self; - gboolean result = FALSE; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - result = TRUE; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - return result; -#line 335 "CrumbleEffect.c" -} - - -static void -crumble_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - CrumbleEffect * self; - GRand* rand = NULL; - GRand* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp0_ = g_rand_new (); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - rand = _tmp0_; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp1_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp2_ = _tmp1_; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (_tmp2_ != NULL) { -#line 365 "CrumbleEffect.c" - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - cairo_surface_t** _tmp8_; - gint _tmp9_; - gdouble* _tmp10_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp3_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp4_ = _tmp3_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp5_ = gdk_pixbuf_get_width (_tmp4_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp6_ = _tmp5_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->stripes_count = _tmp6_ / CRUMBLE_EFFECT_STRIPE_WIDTH; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp7_ = self->priv->stripes_count; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp8_ = g_new0 (cairo_surface_t*, _tmp7_ + 1); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->from_stripes = (_vala_array_free (self->priv->from_stripes, self->priv->from_stripes_length1, (GDestroyNotify) cairo_surface_destroy), NULL); -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->from_stripes = _tmp8_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->from_stripes_length1 = _tmp7_; -#line 57 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->_from_stripes_size_ = self->priv->from_stripes_length1; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp9_ = self->priv->stripes_count; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp10_ = g_new0 (gdouble, _tmp9_); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->accelerations = (g_free (self->priv->accelerations), NULL); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->accelerations = _tmp10_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->accelerations_length1 = _tmp9_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->_accelerations_size_ = self->priv->accelerations_length1; -#line 408 "CrumbleEffect.c" - { - gint i = 0; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - i = 0; -#line 413 "CrumbleEffect.c" - { - gboolean _tmp11_ = FALSE; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp11_ = TRUE; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - while (TRUE) { -#line 420 "CrumbleEffect.c" - gint _tmp13_; - gint _tmp14_; - cairo_surface_t** _tmp15_; - gint _tmp15__length1; - gint _tmp16_; - GdkPixbuf* _tmp17_; - GdkPixbuf* _tmp18_; - gint _tmp19_; - gint _tmp20_; - cairo_surface_t* _tmp21_; - cairo_surface_t* _tmp22_; - cairo_t* ctx = NULL; - cairo_surface_t** _tmp23_; - gint _tmp23__length1; - gint _tmp24_; - cairo_surface_t* _tmp25_; - cairo_t* _tmp26_; - cairo_t* _tmp27_; - GdkPixbuf* _tmp28_; - GdkPixbuf* _tmp29_; - gint _tmp30_; - cairo_t* _tmp31_; - gdouble* _tmp32_; - gint _tmp32__length1; - gint _tmp33_; - GRand* _tmp34_; - gdouble _tmp35_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (!_tmp11_) { -#line 450 "CrumbleEffect.c" - gint _tmp12_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp12_ = i; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - i = _tmp12_ + 1; -#line 456 "CrumbleEffect.c" - } -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp11_ = FALSE; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp13_ = i; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp14_ = self->priv->stripes_count; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (!(_tmp13_ < _tmp14_)) { -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - break; -#line 468 "CrumbleEffect.c" - } -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp15_ = self->priv->from_stripes; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp15__length1 = self->priv->from_stripes_length1; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp16_ = i; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp17_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp18_ = _tmp17_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp19_ = gdk_pixbuf_get_height (_tmp18_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp20_ = _tmp19_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp21_ = cairo_image_surface_create (CAIRO_FORMAT_RGB24, CRUMBLE_EFFECT_STRIPE_WIDTH, _tmp20_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _cairo_surface_destroy0 (_tmp15_[_tmp16_]); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp15_[_tmp16_] = _tmp21_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp22_ = _tmp15_[_tmp16_]; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp23_ = self->priv->from_stripes; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp23__length1 = self->priv->from_stripes_length1; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp24_ = i; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp25_ = _tmp23_[_tmp24_]; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp26_ = cairo_create (_tmp25_); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - ctx = _tmp26_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp27_ = ctx; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp28_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp29_ = _tmp28_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp30_ = i; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - gdk_cairo_set_source_pixbuf (_tmp27_, _tmp29_, (gdouble) ((-_tmp30_) * CRUMBLE_EFFECT_STRIPE_WIDTH), (gdouble) 0); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp31_ = ctx; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - cairo_paint (_tmp31_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp32_ = self->priv->accelerations; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp32__length1 = self->priv->accelerations_length1; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp33_ = i; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp34_ = rand; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp32_[_tmp33_] = g_rand_double (_tmp34_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp35_ = _tmp32_[_tmp33_]; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _cairo_destroy0 (ctx); -#line 532 "CrumbleEffect.c" - } - } - } - } -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _g_rand_free0 (rand); -#line 539 "CrumbleEffect.c" -} - - -static void -crumble_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - CrumbleEffect * self; - gdouble alpha = 0.0; - gdouble _tmp0_; -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (ctx != NULL); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp0_ = alpha; -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (_tmp0_ < 0.5) { -#line 569 "CrumbleEffect.c" - gdouble _tmp1_; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp1_ = alpha; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - alpha = _tmp1_ * 2; -#line 575 "CrumbleEffect.c" - { - gint i = 0; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - i = 0; -#line 580 "CrumbleEffect.c" - { - gboolean _tmp2_ = FALSE; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp2_ = TRUE; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - while (TRUE) { -#line 587 "CrumbleEffect.c" - gint _tmp4_; - gint _tmp5_; - gint x = 0; - GdkRectangle _tmp6_ = {0}; - GdkRectangle _tmp7_; - gint _tmp8_; - gint _tmp9_; - gdouble a = 0.0; - gdouble _tmp10_; - gdouble _tmp11_; - gdouble* _tmp12_; - gint _tmp12__length1; - gint _tmp13_; - gdouble _tmp14_; - gint y = 0; - GdkRectangle _tmp15_ = {0}; - GdkRectangle _tmp16_; - gint _tmp17_; - GdkPixbuf* _tmp18_; - GdkPixbuf* _tmp19_; - gint _tmp20_; - gint _tmp21_; - gdouble _tmp22_; - gdouble _tmp23_; - cairo_surface_t** _tmp24_; - gint _tmp24__length1; - gint _tmp25_; - cairo_surface_t* _tmp26_; - gint _tmp27_; - gint _tmp28_; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (!_tmp2_) { -#line 620 "CrumbleEffect.c" - gint _tmp3_; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp3_ = i; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - i = _tmp3_ + 1; -#line 626 "CrumbleEffect.c" - } -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp2_ = FALSE; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp4_ = i; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp5_ = self->priv->stripes_count; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (!(_tmp4_ < _tmp5_)) { -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - break; -#line 638 "CrumbleEffect.c" - } -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp6_); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp7_ = _tmp6_; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp8_ = _tmp7_.x; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp9_ = i; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - x = _tmp8_ + (_tmp9_ * CRUMBLE_EFFECT_STRIPE_WIDTH); -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp10_ = alpha; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp11_ = alpha; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp12_ = self->priv->accelerations; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp12__length1 = self->priv->accelerations_length1; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp13_ = i; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp14_ = _tmp12_[_tmp13_]; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - a = _tmp10_ + (_tmp11_ * _tmp14_); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp15_); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp16_ = _tmp15_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp17_ = _tmp16_.y; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp18_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp19_ = _tmp18_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp20_ = gdk_pixbuf_get_height (_tmp19_); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp21_ = _tmp20_; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp22_ = a; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp23_ = a; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - y = _tmp17_ + ((gint) ((_tmp21_ * _tmp22_) * _tmp23_)); -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp24_ = self->priv->from_stripes; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp24__length1 = self->priv->from_stripes_length1; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp25_ = i; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp26_ = _tmp24_[_tmp25_]; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp27_ = x; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp28_ = y; -#line 84 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - cairo_set_source_surface (ctx, _tmp26_, (gdouble) _tmp27_, (gdouble) _tmp28_); -#line 85 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - cairo_paint (ctx); -#line 700 "CrumbleEffect.c" - } - } - } - } else { - GdkPixbuf* _tmp29_; - GdkPixbuf* _tmp30_; -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp29_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp30_ = _tmp29_; -#line 87 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - if (_tmp30_ != NULL) { -#line 713 "CrumbleEffect.c" - gdouble _tmp31_; - GdkPixbuf* _tmp32_; - GdkPixbuf* _tmp33_; - GdkRectangle _tmp34_ = {0}; - GdkRectangle _tmp35_; - gint _tmp36_; - GdkRectangle _tmp37_ = {0}; - GdkRectangle _tmp38_; - gint _tmp39_; - gdouble _tmp40_; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp31_ = alpha; -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - alpha = (_tmp31_ - 0.5) * 2; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp32_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp33_ = _tmp32_; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp34_); -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp35_ = _tmp34_; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp36_ = _tmp35_.x; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp37_); -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp38_ = _tmp37_; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp39_ = _tmp38_.y; -#line 90 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp33_, (gdouble) _tmp36_, (gdouble) _tmp39_); -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - _tmp40_ = alpha; -#line 91 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - cairo_paint_with_alpha (ctx, _tmp40_); -#line 750 "CrumbleEffect.c" - } else { - } - } -} - - -static void -crumble_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - CrumbleEffect * self; -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 97 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 770 "CrumbleEffect.c" -} - - -static void -crumble_effect_real_cancel (SpitTransitionsEffect* base) -{ - CrumbleEffect * self; -#line 100 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 780 "CrumbleEffect.c" -} - - -static void -crumble_effect_class_init (CrumbleEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - crumble_effect_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - g_type_class_add_private (klass, sizeof (CrumbleEffectPrivate)); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - G_OBJECT_CLASS (klass)->finalize = crumble_effect_finalize; -#line 793 "CrumbleEffect.c" -} - - -static void -crumble_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - crumble_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) crumble_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) crumble_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) crumble_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) crumble_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) crumble_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) crumble_effect_real_cancel; -#line 814 "CrumbleEffect.c" -} - - -static void -crumble_effect_instance_init (CrumbleEffect * self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv = CRUMBLE_EFFECT_GET_PRIVATE (self); -#line 823 "CrumbleEffect.c" -} - - -static void -crumble_effect_finalize (GObject * obj) -{ - CrumbleEffect * self; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CRUMBLE_EFFECT, CrumbleEffect); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->from_stripes = (_vala_array_free (self->priv->from_stripes, self->priv->from_stripes_length1, (GDestroyNotify) cairo_surface_destroy), NULL); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - self->priv->accelerations = (g_free (self->priv->accelerations), NULL); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/CrumbleEffect.vala" - G_OBJECT_CLASS (crumble_effect_parent_class)->finalize (obj); -#line 839 "CrumbleEffect.c" -} - - -GType -crumble_effect_get_type (void) -{ - static volatile gsize crumble_effect_type_id__volatile = 0; - if (g_once_init_enter (&crumble_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CrumbleEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) crumble_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CrumbleEffect), 0, (GInstanceInitFunc) crumble_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) crumble_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType crumble_effect_type_id; - crumble_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "CrumbleEffect", &g_define_type_info, 0); - g_type_add_interface_static (crumble_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&crumble_effect_type_id__volatile, crumble_effect_type_id); - } - return crumble_effect_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins/shotwell-transitions/FadeEffect.c b/plugins/shotwell-transitions/FadeEffect.c deleted file mode 100644 index 25551e2..0000000 --- a/plugins/shotwell-transitions/FadeEffect.c +++ /dev/null @@ -1,518 +0,0 @@ -/* FadeEffect.c generated by valac 0.40.4, the Vala compiler - * generated from FadeEffect.vala, do not modify */ - -/* Copyright 2010 Maxim Kartashev - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_FADE_EFFECT_DESCRIPTOR (fade_effect_descriptor_get_type ()) -#define FADE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor)) -#define FADE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptorClass)) -#define IS_FADE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FADE_EFFECT_DESCRIPTOR)) -#define IS_FADE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FADE_EFFECT_DESCRIPTOR)) -#define FADE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptorClass)) - -typedef struct _FadeEffectDescriptor FadeEffectDescriptor; -typedef struct _FadeEffectDescriptorClass FadeEffectDescriptorClass; -typedef struct _FadeEffectDescriptorPrivate FadeEffectDescriptorPrivate; -enum { - FADE_EFFECT_DESCRIPTOR_0_PROPERTY, - FADE_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* fade_effect_descriptor_properties[FADE_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_FADE_EFFECT (fade_effect_get_type ()) -#define FADE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FADE_EFFECT, FadeEffect)) -#define FADE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FADE_EFFECT, FadeEffectClass)) -#define IS_FADE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FADE_EFFECT)) -#define IS_FADE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FADE_EFFECT)) -#define FADE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FADE_EFFECT, FadeEffectClass)) - -typedef struct _FadeEffect FadeEffect; -typedef struct _FadeEffectClass FadeEffectClass; -typedef struct _FadeEffectPrivate FadeEffectPrivate; -enum { - FADE_EFFECT_0_PROPERTY, - FADE_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* fade_effect_properties[FADE_EFFECT_NUM_PROPERTIES]; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _FadeEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - FadeEffectDescriptorPrivate * priv; -}; - -struct _FadeEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _FadeEffect { - GObject parent_instance; - FadeEffectPrivate * priv; -}; - -struct _FadeEffectClass { - GObjectClass parent_class; -}; - - -static gpointer fade_effect_descriptor_parent_class = NULL; -static gpointer fade_effect_parent_class = NULL; -static SpitTransitionsEffectIface * fade_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType fade_effect_descriptor_get_type (void) G_GNUC_CONST; -FadeEffectDescriptor* fade_effect_descriptor_new (GFile* resource_directory); -FadeEffectDescriptor* fade_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* fade_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* fade_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* fade_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -FadeEffect* fade_effect_new (void); -FadeEffect* fade_effect_construct (GType object_type); -GType fade_effect_get_type (void) G_GNUC_CONST; -#define FADE_EFFECT_DESIRED_FPS 30 -#define FADE_EFFECT_MIN_FPS 20 -static void fade_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void fade_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean fade_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void fade_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void fade_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void fade_effect_real_cancel (SpitTransitionsEffect* base); - - -FadeEffectDescriptor* -fade_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - FadeEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = (FadeEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return self; -#line 152 "FadeEffect.c" -} - - -FadeEffectDescriptor* -fade_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return fade_effect_descriptor_construct (TYPE_FADE_EFFECT_DESCRIPTOR, resource_directory); -#line 161 "FadeEffect.c" -} - - -static const gchar* -fade_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - FadeEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - result = "org.yorba.shotwell.transitions.fade"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return result; -#line 176 "FadeEffect.c" -} - - -static const gchar* -fade_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - FadeEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - result = _ ("Fade"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return result; -#line 191 "FadeEffect.c" -} - - -static SpitTransitionsEffect* -fade_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - FadeEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - FadeEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp0_ = fade_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return result; -#line 212 "FadeEffect.c" -} - - -static void -fade_effect_descriptor_class_init (FadeEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - fade_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) fade_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) fade_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) fade_effect_descriptor_real_create; -#line 227 "FadeEffect.c" -} - - -static void -fade_effect_descriptor_instance_init (FadeEffectDescriptor * self) -{ -} - - -GType -fade_effect_descriptor_get_type (void) -{ - static volatile gsize fade_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&fade_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FadeEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fade_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FadeEffectDescriptor), 0, (GInstanceInitFunc) fade_effect_descriptor_instance_init, NULL }; - GType fade_effect_descriptor_type_id; - fade_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "FadeEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&fade_effect_descriptor_type_id__volatile, fade_effect_descriptor_type_id); - } - return fade_effect_descriptor_type_id__volatile; -} - - -FadeEffect* -fade_effect_construct (GType object_type) -{ - FadeEffect * self = NULL; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = (FadeEffect*) g_object_new (object_type, NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return self; -#line 259 "FadeEffect.c" -} - - -FadeEffect* -fade_effect_new (void) -{ -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return fade_effect_construct (TYPE_FADE_EFFECT); -#line 268 "FadeEffect.c" -} - - -static void -fade_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - FadeEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _vala_desired_fps = FADE_EFFECT_DESIRED_FPS; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _vala_min_fps = FADE_EFFECT_MIN_FPS; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - if (desired_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - *desired_fps = _vala_desired_fps; -#line 290 "FadeEffect.c" - } -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - if (min_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - *min_fps = _vala_min_fps; -#line 296 "FadeEffect.c" - } -} - - -static void -fade_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - FadeEffect * self; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 313 "FadeEffect.c" -} - - -static gboolean -fade_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - FadeEffect * self; - gboolean result = FALSE; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - result = TRUE; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - return result; -#line 328 "FadeEffect.c" -} - - -static void -fade_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - FadeEffect * self; - gdouble alpha = 0.0; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp12_; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (ctx != NULL); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp0_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp1_ = _tmp0_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - if (_tmp1_ != NULL) { -#line 363 "FadeEffect.c" - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GdkRectangle _tmp4_ = {0}; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_ = {0}; - GdkRectangle _tmp8_; - gint _tmp9_; - gdouble _tmp10_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp2_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp3_ = _tmp2_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp4_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp5_ = _tmp4_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp6_ = _tmp5_.x; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp7_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp8_ = _tmp7_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp9_ = _tmp8_.y; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp3_, (gdouble) _tmp6_, (gdouble) _tmp9_); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp10_ = alpha; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - cairo_paint_with_alpha (ctx, 1.0 - _tmp10_); -#line 395 "FadeEffect.c" - } -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp11_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp12_ = _tmp11_; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - if (_tmp12_ != NULL) { -#line 403 "FadeEffect.c" - GdkPixbuf* _tmp13_; - GdkPixbuf* _tmp14_; - GdkRectangle _tmp15_ = {0}; - GdkRectangle _tmp16_; - gint _tmp17_; - GdkRectangle _tmp18_ = {0}; - GdkRectangle _tmp19_; - gint _tmp20_; - gdouble _tmp21_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp13_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp14_ = _tmp13_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp15_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp16_ = _tmp15_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp17_ = _tmp16_.x; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp18_); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp19_ = _tmp18_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp20_ = _tmp19_.y; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp14_, (gdouble) _tmp17_, (gdouble) _tmp20_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - _tmp21_ = alpha; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - cairo_paint_with_alpha (ctx, _tmp21_); -#line 435 "FadeEffect.c" - } -} - - -static void -fade_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - FadeEffect * self; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 453 "FadeEffect.c" -} - - -static void -fade_effect_real_cancel (SpitTransitionsEffect* base) -{ - FadeEffect * self; -#line 67 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FADE_EFFECT, FadeEffect); -#line 463 "FadeEffect.c" -} - - -static void -fade_effect_class_init (FadeEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - fade_effect_parent_class = g_type_class_peek_parent (klass); -#line 472 "FadeEffect.c" -} - - -static void -fade_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - fade_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) fade_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) fade_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) fade_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) fade_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) fade_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/FadeEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) fade_effect_real_cancel; -#line 493 "FadeEffect.c" -} - - -static void -fade_effect_instance_init (FadeEffect * self) -{ -} - - -GType -fade_effect_get_type (void) -{ - static volatile gsize fade_effect_type_id__volatile = 0; - if (g_once_init_enter (&fade_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FadeEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fade_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FadeEffect), 0, (GInstanceInitFunc) fade_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) fade_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType fade_effect_type_id; - fade_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "FadeEffect", &g_define_type_info, 0); - g_type_add_interface_static (fade_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&fade_effect_type_id__volatile, fade_effect_type_id); - } - return fade_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/SlideEffect.c b/plugins/shotwell-transitions/SlideEffect.c deleted file mode 100644 index f516265..0000000 --- a/plugins/shotwell-transitions/SlideEffect.c +++ /dev/null @@ -1,617 +0,0 @@ -/* SlideEffect.c generated by valac 0.40.4, the Vala compiler - * generated from SlideEffect.vala, do not modify */ - -/* Copyright 2010 Maxim Kartashev - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_SLIDE_EFFECT_DESCRIPTOR (slide_effect_descriptor_get_type ()) -#define SLIDE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor)) -#define SLIDE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptorClass)) -#define IS_SLIDE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR)) -#define IS_SLIDE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDE_EFFECT_DESCRIPTOR)) -#define SLIDE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptorClass)) - -typedef struct _SlideEffectDescriptor SlideEffectDescriptor; -typedef struct _SlideEffectDescriptorClass SlideEffectDescriptorClass; -typedef struct _SlideEffectDescriptorPrivate SlideEffectDescriptorPrivate; -enum { - SLIDE_EFFECT_DESCRIPTOR_0_PROPERTY, - SLIDE_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* slide_effect_descriptor_properties[SLIDE_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_SLIDE_EFFECT (slide_effect_get_type ()) -#define SLIDE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDE_EFFECT, SlideEffect)) -#define SLIDE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDE_EFFECT, SlideEffectClass)) -#define IS_SLIDE_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDE_EFFECT)) -#define IS_SLIDE_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDE_EFFECT)) -#define SLIDE_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDE_EFFECT, SlideEffectClass)) - -typedef struct _SlideEffect SlideEffect; -typedef struct _SlideEffectClass SlideEffectClass; -typedef struct _SlideEffectPrivate SlideEffectPrivate; -enum { - SLIDE_EFFECT_0_PROPERTY, - SLIDE_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* slide_effect_properties[SLIDE_EFFECT_NUM_PROPERTIES]; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _SlideEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - SlideEffectDescriptorPrivate * priv; -}; - -struct _SlideEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _SlideEffect { - GObject parent_instance; - SlideEffectPrivate * priv; -}; - -struct _SlideEffectClass { - GObjectClass parent_class; -}; - - -static gpointer slide_effect_descriptor_parent_class = NULL; -static gpointer slide_effect_parent_class = NULL; -static SpitTransitionsEffectIface * slide_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType slide_effect_descriptor_get_type (void) G_GNUC_CONST; -SlideEffectDescriptor* slide_effect_descriptor_new (GFile* resource_directory); -SlideEffectDescriptor* slide_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* slide_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* slide_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* slide_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -SlideEffect* slide_effect_new (void); -SlideEffect* slide_effect_construct (GType object_type); -GType slide_effect_get_type (void) G_GNUC_CONST; -#define SLIDE_EFFECT_DESIRED_FPS 25 -#define SLIDE_EFFECT_MIN_FPS 15 -static void slide_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void slide_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean slide_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void slide_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void slide_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void slide_effect_real_cancel (SpitTransitionsEffect* base); - - -SlideEffectDescriptor* -slide_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - SlideEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = (SlideEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return self; -#line 153 "SlideEffect.c" -} - - -SlideEffectDescriptor* -slide_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return slide_effect_descriptor_construct (TYPE_SLIDE_EFFECT_DESCRIPTOR, resource_directory); -#line 162 "SlideEffect.c" -} - - -static const gchar* -slide_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - SlideEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - result = "org.yorba.shotwell.transitions.slide"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return result; -#line 177 "SlideEffect.c" -} - - -static const gchar* -slide_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - SlideEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - result = _ ("Slide"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return result; -#line 192 "SlideEffect.c" -} - - -static SpitTransitionsEffect* -slide_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - SlideEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - SlideEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp0_ = slide_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return result; -#line 213 "SlideEffect.c" -} - - -static void -slide_effect_descriptor_class_init (SlideEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - slide_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) slide_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) slide_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) slide_effect_descriptor_real_create; -#line 228 "SlideEffect.c" -} - - -static void -slide_effect_descriptor_instance_init (SlideEffectDescriptor * self) -{ -} - - -GType -slide_effect_descriptor_get_type (void) -{ - static volatile gsize slide_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&slide_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SlideEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) slide_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SlideEffectDescriptor), 0, (GInstanceInitFunc) slide_effect_descriptor_instance_init, NULL }; - GType slide_effect_descriptor_type_id; - slide_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "SlideEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&slide_effect_descriptor_type_id__volatile, slide_effect_descriptor_type_id); - } - return slide_effect_descriptor_type_id__volatile; -} - - -SlideEffect* -slide_effect_construct (GType object_type) -{ - SlideEffect * self = NULL; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = (SlideEffect*) g_object_new (object_type, NULL); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return self; -#line 260 "SlideEffect.c" -} - - -SlideEffect* -slide_effect_new (void) -{ -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return slide_effect_construct (TYPE_SLIDE_EFFECT); -#line 269 "SlideEffect.c" -} - - -static void -slide_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - SlideEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _vala_desired_fps = SLIDE_EFFECT_DESIRED_FPS; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _vala_min_fps = SLIDE_EFFECT_MIN_FPS; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (desired_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - *desired_fps = _vala_desired_fps; -#line 291 "SlideEffect.c" - } -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (min_fps) { -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - *min_fps = _vala_min_fps; -#line 297 "SlideEffect.c" - } -} - - -static void -slide_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - SlideEffect * self; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 314 "SlideEffect.c" -} - - -static gboolean -slide_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - SlideEffect * self; - gboolean result = FALSE; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - result = TRUE; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - return result; -#line 329 "SlideEffect.c" -} - - -static void -slide_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - SlideEffect * self; - gdouble alpha = 0.0; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp21_; - GdkPixbuf* _tmp22_; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (ctx != NULL); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp0_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp1_ = _tmp0_; -#line 51 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (_tmp1_ != NULL) { -#line 364 "SlideEffect.c" - gint _tmp2_ = 0; - SpitTransitionsDirection _tmp3_; - SpitTransitionsDirection _tmp4_; - gint from_target_x = 0; - gint from_current_x = 0; - GdkRectangle _tmp9_ = {0}; - GdkRectangle _tmp10_; - gint _tmp11_; - gdouble _tmp12_; - gint _tmp13_; - gdouble _tmp14_; - GdkPixbuf* _tmp15_; - GdkPixbuf* _tmp16_; - gint _tmp17_; - GdkRectangle _tmp18_ = {0}; - GdkRectangle _tmp19_; - gint _tmp20_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp3_ = spit_transitions_motion_get_direction (motion); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp4_ = _tmp3_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (_tmp4_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) { -#line 388 "SlideEffect.c" - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; - gint _tmp7_; - gint _tmp8_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp5_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp6_ = _tmp5_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp7_ = gdk_pixbuf_get_width (_tmp6_); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp8_ = _tmp7_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp2_ = -_tmp8_; -#line 403 "SlideEffect.c" - } else { -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp2_ = width; -#line 407 "SlideEffect.c" - } -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - from_target_x = _tmp2_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp9_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp10_ = _tmp9_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp11_ = _tmp10_.x; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp12_ = alpha; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp13_ = from_target_x; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp14_ = alpha; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - from_current_x = (gint) ((_tmp11_ * (1 - _tmp12_)) + (_tmp13_ * _tmp14_)); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp15_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp16_ = _tmp15_; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp17_ = from_current_x; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp18_); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp19_ = _tmp18_; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp20_ = _tmp19_.y; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp16_, (gdouble) _tmp17_, (gdouble) _tmp20_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - cairo_paint (ctx); -#line 441 "SlideEffect.c" - } -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp21_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp22_ = _tmp21_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (_tmp22_ != NULL) { -#line 449 "SlideEffect.c" - gint to_target_x = 0; - GdkPixbuf* _tmp23_; - GdkPixbuf* _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _tmp27_ = 0; - SpitTransitionsDirection _tmp28_; - SpitTransitionsDirection _tmp29_; - gint from_x = 0; - gint to_current_x = 0; - gint _tmp34_; - gdouble _tmp35_; - gint _tmp36_; - gdouble _tmp37_; - GdkPixbuf* _tmp38_; - GdkPixbuf* _tmp39_; - gint _tmp40_; - GdkRectangle _tmp41_ = {0}; - GdkRectangle _tmp42_; - gint _tmp43_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp23_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp24_ = _tmp23_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp25_ = gdk_pixbuf_get_width (_tmp24_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp26_ = _tmp25_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - to_target_x = (width - _tmp26_) / 2; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp28_ = spit_transitions_motion_get_direction (motion); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp29_ = _tmp28_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - if (_tmp29_ == SPIT_TRANSITIONS_DIRECTION_FORWARD) { -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp27_ = width; -#line 488 "SlideEffect.c" - } else { - GdkPixbuf* _tmp30_; - GdkPixbuf* _tmp31_; - gint _tmp32_; - gint _tmp33_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp30_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp31_ = _tmp30_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp32_ = gdk_pixbuf_get_width (_tmp31_); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp33_ = _tmp32_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp27_ = -_tmp33_; -#line 504 "SlideEffect.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - from_x = _tmp27_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp34_ = from_x; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp35_ = alpha; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp36_ = to_target_x; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp37_ = alpha; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - to_current_x = (gint) ((_tmp34_ * (1 - _tmp35_)) + (_tmp36_ * _tmp37_)); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp38_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp39_ = _tmp38_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp40_ = to_current_x; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp41_); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp42_ = _tmp41_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - _tmp43_ = _tmp42_.y; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp39_, (gdouble) _tmp40_, (gdouble) _tmp43_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - cairo_paint (ctx); -#line 534 "SlideEffect.c" - } -} - - -static void -slide_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - SlideEffect * self; -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 69 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 552 "SlideEffect.c" -} - - -static void -slide_effect_real_cancel (SpitTransitionsEffect* base) -{ - SlideEffect * self; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDE_EFFECT, SlideEffect); -#line 562 "SlideEffect.c" -} - - -static void -slide_effect_class_init (SlideEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - slide_effect_parent_class = g_type_class_peek_parent (klass); -#line 571 "SlideEffect.c" -} - - -static void -slide_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - slide_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) slide_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) slide_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) slide_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) slide_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) slide_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SlideEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) slide_effect_real_cancel; -#line 592 "SlideEffect.c" -} - - -static void -slide_effect_instance_init (SlideEffect * self) -{ -} - - -GType -slide_effect_get_type (void) -{ - static volatile gsize slide_effect_type_id__volatile = 0; - if (g_once_init_enter (&slide_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SlideEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) slide_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SlideEffect), 0, (GInstanceInitFunc) slide_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) slide_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType slide_effect_type_id; - slide_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "SlideEffect", &g_define_type_info, 0); - g_type_add_interface_static (slide_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&slide_effect_type_id__volatile, slide_effect_type_id); - } - return slide_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/SquaresEffect.c b/plugins/shotwell-transitions/SquaresEffect.c deleted file mode 100644 index 50bef64..0000000 --- a/plugins/shotwell-transitions/SquaresEffect.c +++ /dev/null @@ -1,707 +0,0 @@ -/* SquaresEffect.c generated by valac 0.40.4, the Vala compiler - * generated from SquaresEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_SQUARES_EFFECT_DESCRIPTOR (squares_effect_descriptor_get_type ()) -#define SQUARES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor)) -#define SQUARES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptorClass)) -#define IS_SQUARES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR)) -#define IS_SQUARES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SQUARES_EFFECT_DESCRIPTOR)) -#define SQUARES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptorClass)) - -typedef struct _SquaresEffectDescriptor SquaresEffectDescriptor; -typedef struct _SquaresEffectDescriptorClass SquaresEffectDescriptorClass; -typedef struct _SquaresEffectDescriptorPrivate SquaresEffectDescriptorPrivate; -enum { - SQUARES_EFFECT_DESCRIPTOR_0_PROPERTY, - SQUARES_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* squares_effect_descriptor_properties[SQUARES_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_SQUARES_EFFECT (squares_effect_get_type ()) -#define SQUARES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SQUARES_EFFECT, SquaresEffect)) -#define SQUARES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SQUARES_EFFECT, SquaresEffectClass)) -#define IS_SQUARES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SQUARES_EFFECT)) -#define IS_SQUARES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SQUARES_EFFECT)) -#define SQUARES_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SQUARES_EFFECT, SquaresEffectClass)) - -typedef struct _SquaresEffect SquaresEffect; -typedef struct _SquaresEffectClass SquaresEffectClass; -typedef struct _SquaresEffectPrivate SquaresEffectPrivate; -enum { - SQUARES_EFFECT_0_PROPERTY, - SQUARES_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* squares_effect_properties[SQUARES_EFFECT_NUM_PROPERTIES]; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _SquaresEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - SquaresEffectDescriptorPrivate * priv; -}; - -struct _SquaresEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _SquaresEffect { - GObject parent_instance; - SquaresEffectPrivate * priv; -}; - -struct _SquaresEffectClass { - GObjectClass parent_class; -}; - -struct _SquaresEffectPrivate { - gdouble square_count_x; - gdouble square_count_y; -}; - - -static gpointer squares_effect_descriptor_parent_class = NULL; -static gpointer squares_effect_parent_class = NULL; -static SpitTransitionsEffectIface * squares_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType squares_effect_descriptor_get_type (void) G_GNUC_CONST; -SquaresEffectDescriptor* squares_effect_descriptor_new (GFile* resource_directory); -SquaresEffectDescriptor* squares_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* squares_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* squares_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* squares_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -SquaresEffect* squares_effect_new (void); -SquaresEffect* squares_effect_construct (GType object_type); -GType squares_effect_get_type (void) G_GNUC_CONST; -#define SQUARES_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SQUARES_EFFECT, SquaresEffectPrivate)) -#define SQUARES_EFFECT_DESIRED_FPS 25 -#define SQUARES_EFFECT_MIN_FPS 10 -#define SQUARES_EFFECT_SQUARE_SIZE 100 -static void squares_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void squares_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean squares_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void squares_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void squares_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void squares_effect_real_cancel (SpitTransitionsEffect* base); -static void squares_effect_finalize (GObject * obj); - - -SquaresEffectDescriptor* -squares_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - SquaresEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = (SquaresEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return self; -#line 160 "SquaresEffect.c" -} - - -SquaresEffectDescriptor* -squares_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return squares_effect_descriptor_construct (TYPE_SQUARES_EFFECT_DESCRIPTOR, resource_directory); -#line 169 "SquaresEffect.c" -} - - -static const gchar* -squares_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - SquaresEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - result = "org.yorba.shotwell.transitions.squares"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return result; -#line 184 "SquaresEffect.c" -} - - -static const gchar* -squares_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - SquaresEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - result = _ ("Squares"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return result; -#line 199 "SquaresEffect.c" -} - - -static SpitTransitionsEffect* -squares_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - SquaresEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - SquaresEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp0_ = squares_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return result; -#line 220 "SquaresEffect.c" -} - - -static void -squares_effect_descriptor_class_init (SquaresEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - squares_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) squares_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) squares_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) squares_effect_descriptor_real_create; -#line 235 "SquaresEffect.c" -} - - -static void -squares_effect_descriptor_instance_init (SquaresEffectDescriptor * self) -{ -} - - -GType -squares_effect_descriptor_get_type (void) -{ - static volatile gsize squares_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&squares_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SquaresEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) squares_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SquaresEffectDescriptor), 0, (GInstanceInitFunc) squares_effect_descriptor_instance_init, NULL }; - GType squares_effect_descriptor_type_id; - squares_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "SquaresEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&squares_effect_descriptor_type_id__volatile, squares_effect_descriptor_type_id); - } - return squares_effect_descriptor_type_id__volatile; -} - - -SquaresEffect* -squares_effect_construct (GType object_type) -{ - SquaresEffect * self = NULL; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = (SquaresEffect*) g_object_new (object_type, NULL); -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return self; -#line 267 "SquaresEffect.c" -} - - -SquaresEffect* -squares_effect_new (void) -{ -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return squares_effect_construct (TYPE_SQUARES_EFFECT); -#line 276 "SquaresEffect.c" -} - - -static void -squares_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - SquaresEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _vala_desired_fps = SQUARES_EFFECT_DESIRED_FPS; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _vala_min_fps = SQUARES_EFFECT_MIN_FPS; -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (desired_fps) { -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - *desired_fps = _vala_desired_fps; -#line 298 "SquaresEffect.c" - } -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (min_fps) { -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - *min_fps = _vala_min_fps; -#line 304 "SquaresEffect.c" - } -} - - -static void -squares_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - SquaresEffect * self; - GdkRectangle _tmp0_ = {0}; - GdkRectangle _tmp1_; - gint _tmp2_; - GdkRectangle _tmp3_ = {0}; - GdkRectangle _tmp4_; - gint _tmp5_; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp0_); -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp1_ = _tmp0_; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp2_ = _tmp1_.width; -#line 44 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self->priv->square_count_x = (gdouble) ((_tmp2_ / SQUARES_EFFECT_SQUARE_SIZE) + 1); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp3_); -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp4_ = _tmp3_; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp5_ = _tmp4_.height; -#line 45 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self->priv->square_count_y = (gdouble) ((_tmp5_ / SQUARES_EFFECT_SQUARE_SIZE) + 1); -#line 343 "SquaresEffect.c" -} - - -static gboolean -squares_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - SquaresEffect * self; - gboolean result = FALSE; -#line 48 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - result = TRUE; -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - return result; -#line 358 "SquaresEffect.c" -} - - -static void -squares_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - SquaresEffect * self; - gdouble alpha = 0.0; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp12_; -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (ctx != NULL); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp0_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp1_ = _tmp0_; -#line 55 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (_tmp1_ != NULL) { -#line 393 "SquaresEffect.c" - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GdkRectangle _tmp4_ = {0}; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_ = {0}; - GdkRectangle _tmp8_; - gint _tmp9_; - gdouble _tmp10_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp2_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp3_ = _tmp2_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp4_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp5_ = _tmp4_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp6_ = _tmp5_.x; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp7_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp8_ = _tmp7_; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp9_ = _tmp8_.y; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp3_, (gdouble) _tmp6_, (gdouble) _tmp9_); -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp10_ = alpha; -#line 58 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - cairo_paint_with_alpha (ctx, 1 - _tmp10_); -#line 425 "SquaresEffect.c" - } -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp11_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp12_ = _tmp11_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (_tmp12_ != NULL) { -#line 433 "SquaresEffect.c" - GdkPixbuf* _tmp13_; - GdkPixbuf* _tmp14_; - GdkRectangle _tmp15_ = {0}; - GdkRectangle _tmp16_; - gint _tmp17_; - GdkRectangle _tmp18_ = {0}; - GdkRectangle _tmp19_; - gint _tmp20_; - gdouble _tmp46_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp13_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp14_ = _tmp13_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp15_); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp16_ = _tmp15_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp17_ = _tmp16_.x; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp18_); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp19_ = _tmp18_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp20_ = _tmp19_.y; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp14_, (gdouble) _tmp17_, (gdouble) _tmp20_); -#line 461 "SquaresEffect.c" - { - gdouble y = 0.0; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - y = (gdouble) 0; -#line 466 "SquaresEffect.c" - { - gboolean _tmp21_ = FALSE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp21_ = TRUE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - while (TRUE) { -#line 473 "SquaresEffect.c" - gdouble _tmp23_; - gdouble _tmp24_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (!_tmp21_) { -#line 478 "SquaresEffect.c" - gdouble _tmp22_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp22_ = y; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - y = _tmp22_ + 1; -#line 484 "SquaresEffect.c" - } -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp21_ = FALSE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp23_ = y; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp24_ = self->priv->square_count_y; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (!(_tmp23_ <= _tmp24_)) { -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - break; -#line 496 "SquaresEffect.c" - } - { - gdouble x = 0.0; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - x = (gdouble) 0; -#line 502 "SquaresEffect.c" - { - gboolean _tmp25_ = FALSE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp25_ = TRUE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - while (TRUE) { -#line 509 "SquaresEffect.c" - gdouble _tmp27_; - gdouble _tmp28_; - gdouble size = 0.0; - gdouble _tmp29_; - gdouble _tmp30_; - gdouble _tmp31_; - gdouble _tmp32_; - gdouble _tmp33_; - gdouble _tmp34_; - gdouble _tmp35_; - GdkRectangle _tmp36_ = {0}; - GdkRectangle _tmp37_; - gint _tmp38_; - gdouble _tmp39_; - GdkRectangle _tmp40_ = {0}; - GdkRectangle _tmp41_; - gint _tmp42_; - gdouble _tmp43_; - gdouble _tmp44_; - gdouble _tmp45_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (!_tmp25_) { -#line 532 "SquaresEffect.c" - gdouble _tmp26_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp26_ = x; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - x = _tmp26_ + 1; -#line 538 "SquaresEffect.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp25_ = FALSE; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp27_ = x; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp28_ = self->priv->square_count_x; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - if (!(_tmp27_ <= _tmp28_)) { -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - break; -#line 550 "SquaresEffect.c" - } -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp29_ = alpha; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp30_ = self->priv->square_count_x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp31_ = x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp32_ = self->priv->square_count_x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp33_ = self->priv->square_count_y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp34_ = y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp35_ = self->priv->square_count_y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - size = SQUARES_EFFECT_SQUARE_SIZE * fmin ((gdouble) 1, _tmp29_ + ((((_tmp30_ - _tmp31_) / _tmp32_) + ((_tmp33_ - _tmp34_) / _tmp35_)) / 2.5)); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp36_); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp37_ = _tmp36_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp38_ = _tmp37_.x; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp39_ = x; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp40_); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp41_ = _tmp40_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp42_ = _tmp41_.y; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp43_ = y; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp44_ = size; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp45_ = size; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - cairo_rectangle (ctx, _tmp38_ + (_tmp39_ * SQUARES_EFFECT_SQUARE_SIZE), _tmp42_ + (_tmp43_ * SQUARES_EFFECT_SQUARE_SIZE), _tmp44_, _tmp45_); -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - cairo_fill (ctx); -#line 592 "SquaresEffect.c" - } - } - } - } - } - } -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - cairo_clip (ctx); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - _tmp46_ = alpha; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - cairo_paint_with_alpha (ctx, _tmp46_); -#line 605 "SquaresEffect.c" - } -} - - -static void -squares_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - SquaresEffect * self; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 623 "SquaresEffect.c" -} - - -static void -squares_effect_real_cancel (SpitTransitionsEffect* base) -{ - SquaresEffect * self; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 633 "SquaresEffect.c" -} - - -static void -squares_effect_class_init (SquaresEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - squares_effect_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - g_type_class_add_private (klass, sizeof (SquaresEffectPrivate)); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - G_OBJECT_CLASS (klass)->finalize = squares_effect_finalize; -#line 646 "SquaresEffect.c" -} - - -static void -squares_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - squares_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) squares_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) squares_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) squares_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) squares_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) squares_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) squares_effect_real_cancel; -#line 667 "SquaresEffect.c" -} - - -static void -squares_effect_instance_init (SquaresEffect * self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self->priv = SQUARES_EFFECT_GET_PRIVATE (self); -#line 676 "SquaresEffect.c" -} - - -static void -squares_effect_finalize (GObject * obj) -{ - SquaresEffect * self; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SQUARES_EFFECT, SquaresEffect); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/SquaresEffect.vala" - G_OBJECT_CLASS (squares_effect_parent_class)->finalize (obj); -#line 688 "SquaresEffect.c" -} - - -GType -squares_effect_get_type (void) -{ - static volatile gsize squares_effect_type_id__volatile = 0; - if (g_once_init_enter (&squares_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SquaresEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) squares_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SquaresEffect), 0, (GInstanceInitFunc) squares_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) squares_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType squares_effect_type_id; - squares_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "SquaresEffect", &g_define_type_info, 0); - g_type_add_interface_static (squares_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&squares_effect_type_id__volatile, squares_effect_type_id); - } - return squares_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/StripesEffect.c b/plugins/shotwell-transitions/StripesEffect.c deleted file mode 100644 index d0bac4d..0000000 --- a/plugins/shotwell-transitions/StripesEffect.c +++ /dev/null @@ -1,704 +0,0 @@ -/* StripesEffect.c generated by valac 0.40.4, the Vala compiler - * generated from StripesEffect.vala, do not modify */ - -/* Copyright 2013 Jens Bav - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; - -#define TYPE_STRIPES_EFFECT_DESCRIPTOR (stripes_effect_descriptor_get_type ()) -#define STRIPES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor)) -#define STRIPES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptorClass)) -#define IS_STRIPES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR)) -#define IS_STRIPES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STRIPES_EFFECT_DESCRIPTOR)) -#define STRIPES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptorClass)) - -typedef struct _StripesEffectDescriptor StripesEffectDescriptor; -typedef struct _StripesEffectDescriptorClass StripesEffectDescriptorClass; -typedef struct _StripesEffectDescriptorPrivate StripesEffectDescriptorPrivate; -enum { - STRIPES_EFFECT_DESCRIPTOR_0_PROPERTY, - STRIPES_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* stripes_effect_descriptor_properties[STRIPES_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_STRIPES_EFFECT (stripes_effect_get_type ()) -#define STRIPES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STRIPES_EFFECT, StripesEffect)) -#define STRIPES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STRIPES_EFFECT, StripesEffectClass)) -#define IS_STRIPES_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STRIPES_EFFECT)) -#define IS_STRIPES_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STRIPES_EFFECT)) -#define STRIPES_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STRIPES_EFFECT, StripesEffectClass)) - -typedef struct _StripesEffect StripesEffect; -typedef struct _StripesEffectClass StripesEffectClass; -typedef struct _StripesEffectPrivate StripesEffectPrivate; -enum { - STRIPES_EFFECT_0_PROPERTY, - STRIPES_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* stripes_effect_properties[STRIPES_EFFECT_NUM_PROPERTIES]; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - -struct _StripesEffectDescriptor { - ShotwellTransitionDescriptor parent_instance; - StripesEffectDescriptorPrivate * priv; -}; - -struct _StripesEffectDescriptorClass { - ShotwellTransitionDescriptorClass parent_class; -}; - -struct _StripesEffect { - GObject parent_instance; - StripesEffectPrivate * priv; -}; - -struct _StripesEffectClass { - GObjectClass parent_class; -}; - -struct _StripesEffectPrivate { - gint stripe_count; -}; - - -static gpointer stripes_effect_descriptor_parent_class = NULL; -static gpointer stripes_effect_parent_class = NULL; -static SpitTransitionsEffectIface * stripes_effect_spit_transitions_effect_parent_iface = NULL; - -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType stripes_effect_descriptor_get_type (void) G_GNUC_CONST; -StripesEffectDescriptor* stripes_effect_descriptor_new (GFile* resource_directory); -StripesEffectDescriptor* stripes_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static const gchar* stripes_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base); -static const gchar* stripes_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base); -static SpitTransitionsEffect* stripes_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host); -StripesEffect* stripes_effect_new (void); -StripesEffect* stripes_effect_construct (GType object_type); -GType stripes_effect_get_type (void) G_GNUC_CONST; -#define STRIPES_EFFECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_STRIPES_EFFECT, StripesEffectPrivate)) -#define STRIPES_EFFECT_DESIRED_FPS 25 -#define STRIPES_EFFECT_MIN_FPS 10 -#define STRIPES_EFFECT_STRIPE_HEIGHT 100 -static void stripes_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void stripes_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean stripes_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void stripes_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void stripes_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void stripes_effect_real_cancel (SpitTransitionsEffect* base); -static void stripes_effect_finalize (GObject * obj); - - -StripesEffectDescriptor* -stripes_effect_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - StripesEffectDescriptor * self = NULL; -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = (StripesEffectDescriptor*) shotwell_transition_descriptor_construct (object_type, resource_directory); -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return self; -#line 159 "StripesEffect.c" -} - - -StripesEffectDescriptor* -stripes_effect_descriptor_new (GFile* resource_directory) -{ -#line 11 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return stripes_effect_descriptor_construct (TYPE_STRIPES_EFFECT_DESCRIPTOR, resource_directory); -#line 168 "StripesEffect.c" -} - - -static const gchar* -stripes_effect_descriptor_real_get_id (ShotwellTransitionDescriptor* base) -{ - StripesEffectDescriptor * self; - const gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - result = "org.yorba.shotwell.transitions.stripes"; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return result; -#line 183 "StripesEffect.c" -} - - -static const gchar* -stripes_effect_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* base) -{ - StripesEffectDescriptor * self; - const gchar* result = NULL; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - result = _ ("Stripes"); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return result; -#line 198 "StripesEffect.c" -} - - -static SpitTransitionsEffect* -stripes_effect_descriptor_real_create (ShotwellTransitionDescriptor* base, - SpitHostInterface* host) -{ - StripesEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - StripesEffect* _tmp0_; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp0_ = stripes_effect_new (); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return result; -#line 219 "StripesEffect.c" -} - - -static void -stripes_effect_descriptor_class_init (StripesEffectDescriptorClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - stripes_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) stripes_effect_descriptor_real_get_id; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) stripes_effect_descriptor_real_get_pluggable_name; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) stripes_effect_descriptor_real_create; -#line 234 "StripesEffect.c" -} - - -static void -stripes_effect_descriptor_instance_init (StripesEffectDescriptor * self) -{ -} - - -GType -stripes_effect_descriptor_get_type (void) -{ - static volatile gsize stripes_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&stripes_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (StripesEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) stripes_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (StripesEffectDescriptor), 0, (GInstanceInitFunc) stripes_effect_descriptor_instance_init, NULL }; - GType stripes_effect_descriptor_type_id; - stripes_effect_descriptor_type_id = g_type_register_static (TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, "StripesEffectDescriptor", &g_define_type_info, 0); - g_once_init_leave (&stripes_effect_descriptor_type_id__volatile, stripes_effect_descriptor_type_id); - } - return stripes_effect_descriptor_type_id__volatile; -} - - -StripesEffect* -stripes_effect_construct (GType object_type) -{ - StripesEffect * self = NULL; -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = (StripesEffect*) g_object_new (object_type, NULL); -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return self; -#line 266 "StripesEffect.c" -} - - -StripesEffect* -stripes_effect_new (void) -{ -#line 34 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return stripes_effect_construct (TYPE_STRIPES_EFFECT); -#line 275 "StripesEffect.c" -} - - -static void -stripes_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - StripesEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 38 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _vala_desired_fps = STRIPES_EFFECT_DESIRED_FPS; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _vala_min_fps = STRIPES_EFFECT_MIN_FPS; -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (desired_fps) { -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - *desired_fps = _vala_desired_fps; -#line 297 "StripesEffect.c" - } -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (min_fps) { -#line 37 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - *min_fps = _vala_min_fps; -#line 303 "StripesEffect.c" - } -} - - -static void -stripes_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - StripesEffect * self; - GdkRectangle _tmp0_ = {0}; - GdkRectangle _tmp1_; - gint _tmp2_; -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 42 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp0_); -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp1_ = _tmp0_; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp2_ = _tmp1_.height; -#line 43 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self->priv->stripe_count = (_tmp2_ / STRIPES_EFFECT_STRIPE_HEIGHT) + 1; -#line 331 "StripesEffect.c" -} - - -static gboolean -stripes_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - StripesEffect * self; - gboolean result = FALSE; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - result = TRUE; -#line 47 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - return result; -#line 346 "StripesEffect.c" -} - - -static void -stripes_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - StripesEffect * self; - gdouble alpha = 0.0; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp12_; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (ctx != NULL); -#line 52 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - alpha = spit_transitions_motion_get_alpha (motion, frame_number); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp0_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp1_ = _tmp0_; -#line 53 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (_tmp1_ != NULL) { -#line 381 "StripesEffect.c" - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GdkRectangle _tmp4_ = {0}; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_ = {0}; - GdkRectangle _tmp8_; - gint _tmp9_; - gdouble _tmp10_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp2_ = spit_transitions_visuals_get_from_pixbuf (visuals); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp3_ = _tmp2_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp4_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp5_ = _tmp4_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp6_ = _tmp5_.x; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_from_pos (visuals, &_tmp7_); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp8_ = _tmp7_; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp9_ = _tmp8_.y; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp3_, (gdouble) _tmp6_, (gdouble) _tmp9_); -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp10_ = alpha; -#line 56 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - cairo_paint_with_alpha (ctx, 1 - fmin ((gdouble) 1, _tmp10_ * 2)); -#line 413 "StripesEffect.c" - } -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp11_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp12_ = _tmp11_; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (_tmp12_ != NULL) { -#line 421 "StripesEffect.c" - GdkPixbuf* _tmp13_; - GdkPixbuf* _tmp14_; - GdkRectangle _tmp15_ = {0}; - GdkRectangle _tmp16_; - gint _tmp17_; - GdkRectangle _tmp18_ = {0}; - GdkRectangle _tmp19_; - gint _tmp20_; - gint x = 0; - GdkRectangle _tmp21_ = {0}; - GdkRectangle _tmp22_; - gint _tmp23_; - gint y = 0; - GdkRectangle _tmp24_ = {0}; - GdkRectangle _tmp25_; - gint _tmp26_; - gdouble _tmp55_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp13_ = spit_transitions_visuals_get_to_pixbuf (visuals); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp14_ = _tmp13_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp15_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp16_ = _tmp15_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp17_ = _tmp16_.x; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp18_); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp19_ = _tmp18_; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp20_ = _tmp19_.y; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp14_, (gdouble) _tmp17_, (gdouble) _tmp20_); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp21_); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp22_ = _tmp21_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp23_ = _tmp22_.x; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - x = _tmp23_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp24_); -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp25_ = _tmp24_; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp26_ = _tmp25_.y; -#line 62 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - y = _tmp26_; -#line 473 "StripesEffect.c" - { - gint i = 0; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - i = 0; -#line 478 "StripesEffect.c" - { - gboolean _tmp27_ = FALSE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp27_ = TRUE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - while (TRUE) { -#line 485 "StripesEffect.c" - gint _tmp29_; - gint _tmp30_; - gint _tmp31_; - SpitTransitionsDirection _tmp32_; - SpitTransitionsDirection _tmp33_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (!_tmp27_) { -#line 493 "StripesEffect.c" - gint _tmp28_; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp28_ = i; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - i = _tmp28_ + 1; -#line 499 "StripesEffect.c" - } -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp27_ = FALSE; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp29_ = i; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp30_ = self->priv->stripe_count; -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if (!(_tmp29_ <= _tmp30_)) { -#line 63 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - break; -#line 511 "StripesEffect.c" - } -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp31_ = i; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp32_ = spit_transitions_motion_get_direction (motion); -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp33_ = _tmp32_; -#line 64 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - if ((_tmp31_ % 2) == ((gint) _tmp33_)) { -#line 521 "StripesEffect.c" - gint _tmp34_; - GdkRectangle _tmp35_ = {0}; - GdkRectangle _tmp36_; - gint _tmp37_; - gdouble _tmp38_; - GdkRectangle _tmp39_ = {0}; - GdkRectangle _tmp40_; - gint _tmp41_; - gint _tmp42_; - gint _tmp43_; - gint _tmp44_; - GdkRectangle _tmp45_ = {0}; - GdkRectangle _tmp46_; - gint _tmp47_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp34_ = x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp35_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp36_ = _tmp35_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp37_ = _tmp36_.width; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp38_ = alpha; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp39_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp40_ = _tmp39_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp41_ = _tmp40_.width; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp42_ = y; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp43_ = i; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp44_ = x; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp45_); -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp46_ = _tmp45_; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp47_ = _tmp46_.width; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - cairo_rectangle (ctx, (_tmp34_ + _tmp37_) - (_tmp38_ * _tmp41_), (gdouble) (_tmp42_ + (_tmp43_ * STRIPES_EFFECT_STRIPE_HEIGHT)), (gdouble) (_tmp44_ + _tmp47_), (gdouble) STRIPES_EFFECT_STRIPE_HEIGHT); -#line 566 "StripesEffect.c" - } else { - gint _tmp48_; - gint _tmp49_; - gint _tmp50_; - GdkRectangle _tmp51_ = {0}; - GdkRectangle _tmp52_; - gint _tmp53_; - gdouble _tmp54_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp48_ = x; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp49_ = y; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp50_ = i; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - spit_transitions_visuals_get_to_pos (visuals, &_tmp51_); -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp52_ = _tmp51_; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp53_ = _tmp52_.width; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp54_ = alpha; -#line 68 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - cairo_rectangle (ctx, (gdouble) _tmp48_, (gdouble) (_tmp49_ + (STRIPES_EFFECT_STRIPE_HEIGHT * _tmp50_)), _tmp53_ * _tmp54_, (gdouble) STRIPES_EFFECT_STRIPE_HEIGHT); -#line 591 "StripesEffect.c" - } - } - } - } -#line 73 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - cairo_clip (ctx); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - _tmp55_ = alpha; -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - cairo_paint_with_alpha (ctx, _tmp55_); -#line 602 "StripesEffect.c" - } -} - - -static void -stripes_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - StripesEffect * self; -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 620 "StripesEffect.c" -} - - -static void -stripes_effect_real_cancel (SpitTransitionsEffect* base) -{ - StripesEffect * self; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRIPES_EFFECT, StripesEffect); -#line 630 "StripesEffect.c" -} - - -static void -stripes_effect_class_init (StripesEffectClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - stripes_effect_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - g_type_class_add_private (klass, sizeof (StripesEffectPrivate)); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - G_OBJECT_CLASS (klass)->finalize = stripes_effect_finalize; -#line 643 "StripesEffect.c" -} - - -static void -stripes_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - stripes_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) stripes_effect_real_get_fps; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) stripes_effect_real_start; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) stripes_effect_real_needs_clear_background; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) stripes_effect_real_paint; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) stripes_effect_real_advance; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) stripes_effect_real_cancel; -#line 664 "StripesEffect.c" -} - - -static void -stripes_effect_instance_init (StripesEffect * self) -{ -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self->priv = STRIPES_EFFECT_GET_PRIVATE (self); -#line 673 "StripesEffect.c" -} - - -static void -stripes_effect_finalize (GObject * obj) -{ - StripesEffect * self; -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_STRIPES_EFFECT, StripesEffect); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/StripesEffect.vala" - G_OBJECT_CLASS (stripes_effect_parent_class)->finalize (obj); -#line 685 "StripesEffect.c" -} - - -GType -stripes_effect_get_type (void) -{ - static volatile gsize stripes_effect_type_id__volatile = 0; - if (g_once_init_enter (&stripes_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (StripesEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) stripes_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (StripesEffect), 0, (GInstanceInitFunc) stripes_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) stripes_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType stripes_effect_type_id; - stripes_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "StripesEffect", &g_define_type_info, 0); - g_type_add_interface_static (stripes_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&stripes_effect_type_id__volatile, stripes_effect_type_id); - } - return stripes_effect_type_id__volatile; -} - - - diff --git a/plugins/shotwell-transitions/shotwell-transitions.c b/plugins/shotwell-transitions/shotwell-transitions.c deleted file mode 100644 index b8be39c..0000000 --- a/plugins/shotwell-transitions/shotwell-transitions.c +++ /dev/null @@ -1,1240 +0,0 @@ -/* shotwell-transitions.c generated by valac 0.40.4, the Vala compiler - * generated from shotwell-transitions.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-common.h" - - -#define TYPE_SHOTWELL_TRANSITIONS (shotwell_transitions_get_type ()) -#define SHOTWELL_TRANSITIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions)) -#define SHOTWELL_TRANSITIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitionsClass)) -#define IS_SHOTWELL_TRANSITIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITIONS)) -#define IS_SHOTWELL_TRANSITIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITIONS)) -#define SHOTWELL_TRANSITIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitionsClass)) - -typedef struct _ShotwellTransitions ShotwellTransitions; -typedef struct _ShotwellTransitionsClass ShotwellTransitionsClass; -typedef struct _ShotwellTransitionsPrivate ShotwellTransitionsPrivate; -enum { - SHOTWELL_TRANSITIONS_0_PROPERTY, - SHOTWELL_TRANSITIONS_NUM_PROPERTIES -}; -static GParamSpec* shotwell_transitions_properties[SHOTWELL_TRANSITIONS_NUM_PROPERTIES]; - -#define TYPE_SHOTWELL_TRANSITION_DESCRIPTOR (shotwell_transition_descriptor_get_type ()) -#define SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define IS_SHOTWELL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR)) -#define SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptorClass)) - -typedef struct _ShotwellTransitionDescriptor ShotwellTransitionDescriptor; -typedef struct _ShotwellTransitionDescriptorClass ShotwellTransitionDescriptorClass; - -#define TYPE_FADE_EFFECT_DESCRIPTOR (fade_effect_descriptor_get_type ()) -#define FADE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptor)) -#define FADE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptorClass)) -#define IS_FADE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FADE_EFFECT_DESCRIPTOR)) -#define IS_FADE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FADE_EFFECT_DESCRIPTOR)) -#define FADE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FADE_EFFECT_DESCRIPTOR, FadeEffectDescriptorClass)) - -typedef struct _FadeEffectDescriptor FadeEffectDescriptor; -typedef struct _FadeEffectDescriptorClass FadeEffectDescriptorClass; - -#define TYPE_SLIDE_EFFECT_DESCRIPTOR (slide_effect_descriptor_get_type ()) -#define SLIDE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptor)) -#define SLIDE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptorClass)) -#define IS_SLIDE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR)) -#define IS_SLIDE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDE_EFFECT_DESCRIPTOR)) -#define SLIDE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDE_EFFECT_DESCRIPTOR, SlideEffectDescriptorClass)) - -typedef struct _SlideEffectDescriptor SlideEffectDescriptor; -typedef struct _SlideEffectDescriptorClass SlideEffectDescriptorClass; - -#define TYPE_CRUMBLE_EFFECT_DESCRIPTOR (crumble_effect_descriptor_get_type ()) -#define CRUMBLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptor)) -#define CRUMBLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptorClass)) -#define IS_CRUMBLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR)) -#define IS_CRUMBLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CRUMBLE_EFFECT_DESCRIPTOR)) -#define CRUMBLE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CRUMBLE_EFFECT_DESCRIPTOR, CrumbleEffectDescriptorClass)) - -typedef struct _CrumbleEffectDescriptor CrumbleEffectDescriptor; -typedef struct _CrumbleEffectDescriptorClass CrumbleEffectDescriptorClass; - -#define TYPE_BLINDS_EFFECT_DESCRIPTOR (blinds_effect_descriptor_get_type ()) -#define BLINDS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptor)) -#define BLINDS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptorClass)) -#define IS_BLINDS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR)) -#define IS_BLINDS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BLINDS_EFFECT_DESCRIPTOR)) -#define BLINDS_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BLINDS_EFFECT_DESCRIPTOR, BlindsEffectDescriptorClass)) - -typedef struct _BlindsEffectDescriptor BlindsEffectDescriptor; -typedef struct _BlindsEffectDescriptorClass BlindsEffectDescriptorClass; - -#define TYPE_CIRCLE_EFFECT_DESCRIPTOR (circle_effect_descriptor_get_type ()) -#define CIRCLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptor)) -#define CIRCLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptorClass)) -#define IS_CIRCLE_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR)) -#define IS_CIRCLE_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLE_EFFECT_DESCRIPTOR)) -#define CIRCLE_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLE_EFFECT_DESCRIPTOR, CircleEffectDescriptorClass)) - -typedef struct _CircleEffectDescriptor CircleEffectDescriptor; -typedef struct _CircleEffectDescriptorClass CircleEffectDescriptorClass; - -#define TYPE_CIRCLES_EFFECT_DESCRIPTOR (circles_effect_descriptor_get_type ()) -#define CIRCLES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptor)) -#define CIRCLES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptorClass)) -#define IS_CIRCLES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR)) -#define IS_CIRCLES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CIRCLES_EFFECT_DESCRIPTOR)) -#define CIRCLES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CIRCLES_EFFECT_DESCRIPTOR, CirclesEffectDescriptorClass)) - -typedef struct _CirclesEffectDescriptor CirclesEffectDescriptor; -typedef struct _CirclesEffectDescriptorClass CirclesEffectDescriptorClass; - -#define TYPE_CLOCK_EFFECT_DESCRIPTOR (clock_effect_descriptor_get_type ()) -#define CLOCK_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptor)) -#define CLOCK_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptorClass)) -#define IS_CLOCK_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR)) -#define IS_CLOCK_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CLOCK_EFFECT_DESCRIPTOR)) -#define CLOCK_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CLOCK_EFFECT_DESCRIPTOR, ClockEffectDescriptorClass)) - -typedef struct _ClockEffectDescriptor ClockEffectDescriptor; -typedef struct _ClockEffectDescriptorClass ClockEffectDescriptorClass; - -#define TYPE_SQUARES_EFFECT_DESCRIPTOR (squares_effect_descriptor_get_type ()) -#define SQUARES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptor)) -#define SQUARES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptorClass)) -#define IS_SQUARES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR)) -#define IS_SQUARES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SQUARES_EFFECT_DESCRIPTOR)) -#define SQUARES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SQUARES_EFFECT_DESCRIPTOR, SquaresEffectDescriptorClass)) - -typedef struct _SquaresEffectDescriptor SquaresEffectDescriptor; -typedef struct _SquaresEffectDescriptorClass SquaresEffectDescriptorClass; - -#define TYPE_CHESS_EFFECT_DESCRIPTOR (chess_effect_descriptor_get_type ()) -#define CHESS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptor)) -#define CHESS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptorClass)) -#define IS_CHESS_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR)) -#define IS_CHESS_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHESS_EFFECT_DESCRIPTOR)) -#define CHESS_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHESS_EFFECT_DESCRIPTOR, ChessEffectDescriptorClass)) - -typedef struct _ChessEffectDescriptor ChessEffectDescriptor; -typedef struct _ChessEffectDescriptorClass ChessEffectDescriptorClass; - -#define TYPE_STRIPES_EFFECT_DESCRIPTOR (stripes_effect_descriptor_get_type ()) -#define STRIPES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptor)) -#define STRIPES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptorClass)) -#define IS_STRIPES_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR)) -#define IS_STRIPES_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STRIPES_EFFECT_DESCRIPTOR)) -#define STRIPES_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STRIPES_EFFECT_DESCRIPTOR, StripesEffectDescriptorClass)) - -typedef struct _StripesEffectDescriptor StripesEffectDescriptor; -typedef struct _StripesEffectDescriptorClass StripesEffectDescriptorClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _ShotwellTransitionDescriptorPrivate ShotwellTransitionDescriptorPrivate; -enum { - SHOTWELL_TRANSITION_DESCRIPTOR_0_PROPERTY, - SHOTWELL_TRANSITION_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* shotwell_transition_descriptor_properties[SHOTWELL_TRANSITION_DESCRIPTOR_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -struct _ShotwellTransitions { - GObject parent_instance; - ShotwellTransitionsPrivate * priv; -}; - -struct _ShotwellTransitionsClass { - GObjectClass parent_class; -}; - -struct _ShotwellTransitionsPrivate { - SpitPluggable** pluggables; - gint pluggables_length1; - gint _pluggables_size_; -}; - -struct _ShotwellTransitionDescriptor { - GObject parent_instance; - ShotwellTransitionDescriptorPrivate * priv; -}; - -struct _ShotwellTransitionDescriptorClass { - GObjectClass parent_class; - const gchar* (*get_id) (ShotwellTransitionDescriptor* self); - const gchar* (*get_pluggable_name) (ShotwellTransitionDescriptor* self); - SpitTransitionsEffect* (*create) (ShotwellTransitionDescriptor* self, SpitHostInterface* host); -}; - - -static gpointer shotwell_transitions_parent_class = NULL; -static SpitModuleIface * shotwell_transitions_spit_module_parent_iface = NULL; -static gpointer shotwell_transition_descriptor_parent_class = NULL; -static GdkPixbuf** shotwell_transition_descriptor_icon_pixbuf_set; -static gint shotwell_transition_descriptor_icon_pixbuf_set_length1; -static GdkPixbuf** shotwell_transition_descriptor_icon_pixbuf_set = NULL; -static gint shotwell_transition_descriptor_icon_pixbuf_set_length1 = 0; -static gint _shotwell_transition_descriptor_icon_pixbuf_set_size_ = 0; -static SpitPluggableIface * shotwell_transition_descriptor_spit_pluggable_parent_iface = NULL; -static SpitTransitionsDescriptorIface * shotwell_transition_descriptor_spit_transitions_descriptor_parent_iface = NULL; - -GType shotwell_transitions_get_type (void) G_GNUC_CONST; -#define SHOTWELL_TRANSITIONS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitionsPrivate)) -ShotwellTransitions* shotwell_transitions_new (GFile* module_file); -ShotwellTransitions* shotwell_transitions_construct (GType object_type, - GFile* module_file); -FadeEffectDescriptor* fade_effect_descriptor_new (GFile* resource_directory); -FadeEffectDescriptor* fade_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType shotwell_transition_descriptor_get_type (void) G_GNUC_CONST; -GType fade_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add1 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -SlideEffectDescriptor* slide_effect_descriptor_new (GFile* resource_directory); -SlideEffectDescriptor* slide_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType slide_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add2 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -CrumbleEffectDescriptor* crumble_effect_descriptor_new (GFile* resource_directory); -CrumbleEffectDescriptor* crumble_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType crumble_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add3 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -BlindsEffectDescriptor* blinds_effect_descriptor_new (GFile* resource_directory); -BlindsEffectDescriptor* blinds_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType blinds_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add4 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -CircleEffectDescriptor* circle_effect_descriptor_new (GFile* resource_directory); -CircleEffectDescriptor* circle_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType circle_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add5 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -CirclesEffectDescriptor* circles_effect_descriptor_new (GFile* resource_directory); -CirclesEffectDescriptor* circles_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType circles_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add6 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -ClockEffectDescriptor* clock_effect_descriptor_new (GFile* resource_directory); -ClockEffectDescriptor* clock_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType clock_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add7 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -SquaresEffectDescriptor* squares_effect_descriptor_new (GFile* resource_directory); -SquaresEffectDescriptor* squares_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType squares_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add8 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -ChessEffectDescriptor* chess_effect_descriptor_new (GFile* resource_directory); -ChessEffectDescriptor* chess_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType chess_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add9 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -StripesEffectDescriptor* stripes_effect_descriptor_new (GFile* resource_directory); -StripesEffectDescriptor* stripes_effect_descriptor_construct (GType object_type, - GFile* resource_directory); -GType stripes_effect_descriptor_get_type (void) G_GNUC_CONST; -static void _vala_array_add10 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value); -static const gchar* shotwell_transitions_real_get_module_name (SpitModule* base); -static const gchar* shotwell_transitions_real_get_version (SpitModule* base); -static const gchar* shotwell_transitions_real_get_id (SpitModule* base); -static SpitPluggable** shotwell_transitions_real_get_pluggables (SpitModule* base, - int* result_length1); -static void shotwell_transitions_finalize (GObject * obj); -SpitModule* spit_entry_point (SpitEntryPointParams* params); -#define SHOTWELL_TRANSITION_DESCRIPTOR_ICON_FILENAME "slideshow-plugin.png" -ShotwellTransitionDescriptor* shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory); -static gint shotwell_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface); -const gchar* shotwell_transition_descriptor_get_id (ShotwellTransitionDescriptor* self); -static const gchar* shotwell_transition_descriptor_real_get_id (ShotwellTransitionDescriptor* self); -const gchar* shotwell_transition_descriptor_get_pluggable_name (ShotwellTransitionDescriptor* self); -static const gchar* shotwell_transition_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* self); -static void shotwell_transition_descriptor_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, - int length); -static void shotwell_transition_descriptor_real_activation (SpitPluggable* base, - gboolean enabled); -SpitTransitionsEffect* shotwell_transition_descriptor_create (ShotwellTransitionDescriptor* self, - SpitHostInterface* host); -static SpitTransitionsEffect* shotwell_transition_descriptor_real_create (ShotwellTransitionDescriptor* self, - SpitHostInterface* host); -static void shotwell_transition_descriptor_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static void -_vala_array_add1 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 330 "shotwell-transitions.c" - } -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 336 "shotwell-transitions.c" -} - - -static void -_vala_array_add2 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 352 "shotwell-transitions.c" - } -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 358 "shotwell-transitions.c" -} - - -static void -_vala_array_add3 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 374 "shotwell-transitions.c" - } -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 380 "shotwell-transitions.c" -} - - -static void -_vala_array_add4 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 396 "shotwell-transitions.c" - } -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 402 "shotwell-transitions.c" -} - - -static void -_vala_array_add5 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 418 "shotwell-transitions.c" - } -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 424 "shotwell-transitions.c" -} - - -static void -_vala_array_add6 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 440 "shotwell-transitions.c" - } -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 446 "shotwell-transitions.c" -} - - -static void -_vala_array_add7 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 462 "shotwell-transitions.c" - } -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 468 "shotwell-transitions.c" -} - - -static void -_vala_array_add8 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 484 "shotwell-transitions.c" - } -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 490 "shotwell-transitions.c" -} - - -static void -_vala_array_add9 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 506 "shotwell-transitions.c" - } -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 512 "shotwell-transitions.c" -} - - -static void -_vala_array_add10 (SpitPluggable** * array, - int* length, - int* size, - SpitPluggable* value) -{ -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if ((*length) == (*size)) { -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *array = g_renew (SpitPluggable*, *array, (*size) + 1); -#line 528 "shotwell-transitions.c" - } -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[(*length)++] = value; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*array)[*length] = NULL; -#line 534 "shotwell-transitions.c" -} - - -ShotwellTransitions* -shotwell_transitions_construct (GType object_type, - GFile* module_file) -{ - ShotwellTransitions * self = NULL; - GFile* resource_directory = NULL; - GFile* _tmp0_; - SpitPluggable** _tmp1_; - gint _tmp1__length1; - FadeEffectDescriptor* _tmp2_; - SpitPluggable** _tmp3_; - gint _tmp3__length1; - SlideEffectDescriptor* _tmp4_; - SpitPluggable** _tmp5_; - gint _tmp5__length1; - CrumbleEffectDescriptor* _tmp6_; - SpitPluggable** _tmp7_; - gint _tmp7__length1; - BlindsEffectDescriptor* _tmp8_; - SpitPluggable** _tmp9_; - gint _tmp9__length1; - CircleEffectDescriptor* _tmp10_; - SpitPluggable** _tmp11_; - gint _tmp11__length1; - CirclesEffectDescriptor* _tmp12_; - SpitPluggable** _tmp13_; - gint _tmp13__length1; - ClockEffectDescriptor* _tmp14_; - SpitPluggable** _tmp15_; - gint _tmp15__length1; - SquaresEffectDescriptor* _tmp16_; - SpitPluggable** _tmp17_; - gint _tmp17__length1; - ChessEffectDescriptor* _tmp18_; - SpitPluggable** _tmp19_; - gint _tmp19__length1; - StripesEffectDescriptor* _tmp20_; -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_return_val_if_fail (G_IS_FILE (module_file), NULL); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = (ShotwellTransitions*) g_object_new (object_type, NULL); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = g_file_get_parent (module_file); -#line 13 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - resource_directory = _tmp0_; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1_ = self->priv->pluggables; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1__length1 = self->priv->pluggables_length1; -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2_ = fade_effect_descriptor_new (resource_directory); -#line 15 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add1 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp3_ = self->priv->pluggables; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp3__length1 = self->priv->pluggables_length1; -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp4_ = slide_effect_descriptor_new (resource_directory); -#line 16 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add2 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp5_ = self->priv->pluggables; -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp5__length1 = self->priv->pluggables_length1; -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp6_ = crumble_effect_descriptor_new (resource_directory); -#line 17 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add3 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp7_ = self->priv->pluggables; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp7__length1 = self->priv->pluggables_length1; -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp8_ = blinds_effect_descriptor_new (resource_directory); -#line 18 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add4 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp9_ = self->priv->pluggables; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp9__length1 = self->priv->pluggables_length1; -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp10_ = circle_effect_descriptor_new (resource_directory); -#line 19 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add5 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp11_ = self->priv->pluggables; -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp11__length1 = self->priv->pluggables_length1; -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp12_ = circles_effect_descriptor_new (resource_directory); -#line 20 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add6 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp13_ = self->priv->pluggables; -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp13__length1 = self->priv->pluggables_length1; -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp14_ = clock_effect_descriptor_new (resource_directory); -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add7 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp15_ = self->priv->pluggables; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp15__length1 = self->priv->pluggables_length1; -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp16_ = squares_effect_descriptor_new (resource_directory); -#line 22 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add8 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp17_ = self->priv->pluggables; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp17__length1 = self->priv->pluggables_length1; -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp18_ = chess_effect_descriptor_new (resource_directory); -#line 23 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add9 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp19_ = self->priv->pluggables; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp19__length1 = self->priv->pluggables_length1; -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp20_ = stripes_effect_descriptor_new (resource_directory); -#line 24 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _vala_array_add10 (&self->priv->pluggables, &self->priv->pluggables_length1, &self->priv->_pluggables_size_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_object_unref0 (resource_directory); -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return self; -#line 667 "shotwell-transitions.c" -} - - -ShotwellTransitions* -shotwell_transitions_new (GFile* module_file) -{ -#line 12 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return shotwell_transitions_construct (TYPE_SHOTWELL_TRANSITIONS, module_file); -#line 676 "shotwell-transitions.c" -} - - -static const gchar* -shotwell_transitions_real_get_module_name (SpitModule* base) -{ - ShotwellTransitions * self; - const gchar* result = NULL; -#line 27 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = _ ("Core Slideshow Transitions"); -#line 28 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 691 "shotwell-transitions.c" -} - - -static const gchar* -shotwell_transitions_real_get_version (SpitModule* base) -{ - ShotwellTransitions * self; - const gchar* result = NULL; -#line 31 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions); -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = _VERSION; -#line 32 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 706 "shotwell-transitions.c" -} - - -static const gchar* -shotwell_transitions_real_get_id (SpitModule* base) -{ - ShotwellTransitions * self; - const gchar* result = NULL; -#line 35 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions); -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = "org.yorba.shotwell.transitions"; -#line 36 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 721 "shotwell-transitions.c" -} - - -static SpitPluggable** -shotwell_transitions_real_get_pluggables (SpitModule* base, - int* result_length1) -{ - ShotwellTransitions * self; - SpitPluggable** result = NULL; - SpitPluggable** _tmp0_; - gint _tmp0__length1; - SpitPluggable** _tmp1_; - gint _tmp1__length1; -#line 39 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions); -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = self->priv->pluggables; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0__length1 = self->priv->pluggables_length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1_ = _tmp0_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1__length1 = _tmp0__length1; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if (result_length1) { -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - *result_length1 = _tmp1__length1; -#line 749 "shotwell-transitions.c" - } -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = _tmp1_; -#line 40 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 755 "shotwell-transitions.c" -} - - -static void -shotwell_transitions_class_init (ShotwellTransitionsClass * klass) -{ -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - shotwell_transitions_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_type_class_add_private (klass, sizeof (ShotwellTransitionsPrivate)); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - G_OBJECT_CLASS (klass)->finalize = shotwell_transitions_finalize; -#line 768 "shotwell-transitions.c" -} - - -static void -shotwell_transitions_spit_module_interface_init (SpitModuleIface * iface) -{ -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - shotwell_transitions_spit_module_parent_iface = g_type_interface_peek_parent (iface); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->get_module_name = (const gchar* (*) (SpitModule *)) shotwell_transitions_real_get_module_name; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->get_version = (const gchar* (*) (SpitModule *)) shotwell_transitions_real_get_version; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->get_id = (const gchar* (*) (SpitModule *)) shotwell_transitions_real_get_id; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->get_pluggables = (SpitPluggable** (*) (SpitModule *, int*)) shotwell_transitions_real_get_pluggables; -#line 785 "shotwell-transitions.c" -} - - -static void -shotwell_transitions_instance_init (ShotwellTransitions * self) -{ - SpitPluggable** _tmp0_; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self->priv = SHOTWELL_TRANSITIONS_GET_PRIVATE (self); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = g_new0 (SpitPluggable*, 0 + 1); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self->priv->pluggables = _tmp0_; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self->priv->pluggables_length1 = 0; -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self->priv->_pluggables_size_ = self->priv->pluggables_length1; -#line 803 "shotwell-transitions.c" -} - - -static void -shotwell_transitions_finalize (GObject * obj) -{ - ShotwellTransitions * self; -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_TRANSITIONS, ShotwellTransitions); -#line 10 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self->priv->pluggables = (_vala_array_free (self->priv->pluggables, self->priv->pluggables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 9 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - G_OBJECT_CLASS (shotwell_transitions_parent_class)->finalize (obj); -#line 817 "shotwell-transitions.c" -} - - -GType -shotwell_transitions_get_type (void) -{ - static volatile gsize shotwell_transitions_type_id__volatile = 0; - if (g_once_init_enter (&shotwell_transitions_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ShotwellTransitionsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_transitions_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellTransitions), 0, (GInstanceInitFunc) shotwell_transitions_instance_init, NULL }; - static const GInterfaceInfo spit_module_info = { (GInterfaceInitFunc) shotwell_transitions_spit_module_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType shotwell_transitions_type_id; - shotwell_transitions_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellTransitions", &g_define_type_info, 0); - g_type_add_interface_static (shotwell_transitions_type_id, SPIT_TYPE_MODULE, &spit_module_info); - g_once_init_leave (&shotwell_transitions_type_id__volatile, shotwell_transitions_type_id); - } - return shotwell_transitions_type_id__volatile; -} - - -SpitModule* -spit_entry_point (SpitEntryPointParams* params) -{ - SpitModule* result = NULL; - gint _tmp0_; - gint _tmp1_; - ShotwellTransitions* _tmp2_ = NULL; - gint _tmp3_; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = (*params).host_min_spit_interface; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1_ = (*params).host_max_spit_interface; -#line 46 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*params).module_spit_interface = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_CURRENT_INTERFACE); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp3_ = (*params).module_spit_interface; -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if (_tmp3_ != SPIT_UNSUPPORTED_INTERFACE) { -#line 855 "shotwell-transitions.c" - GFile* _tmp4_; - ShotwellTransitions* _tmp5_; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp4_ = (*params).module_file; -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp5_ = shotwell_transitions_new (_tmp4_); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_object_unref0 (_tmp2_); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2_ = _tmp5_; -#line 866 "shotwell-transitions.c" - } else { -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_object_unref0 (_tmp2_); -#line 50 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2_ = NULL; -#line 872 "shotwell-transitions.c" - } -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_MODULE, SpitModule); -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 878 "shotwell-transitions.c" -} - - -ShotwellTransitionDescriptor* -shotwell_transition_descriptor_construct (GType object_type, - GFile* resource_directory) -{ - ShotwellTransitionDescriptor * self = NULL; - GdkPixbuf** _tmp0_; - gint _tmp0__length1; -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = (ShotwellTransitionDescriptor*) g_object_new (object_type, NULL); -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = shotwell_transition_descriptor_icon_pixbuf_set; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0__length1 = shotwell_transition_descriptor_icon_pixbuf_set_length1; -#line 60 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - if (_tmp0_ == NULL) { -#line 899 "shotwell-transitions.c" - gint _tmp1_; - GdkPixbuf** _tmp2_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" SHOTWELL_TRANSITION_DESCRIPTOR_ICON_FILENAME, &_tmp1_); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - shotwell_transition_descriptor_icon_pixbuf_set = (_vala_array_free (shotwell_transition_descriptor_icon_pixbuf_set, shotwell_transition_descriptor_icon_pixbuf_set_length1, (GDestroyNotify) g_object_unref), NULL); -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - shotwell_transition_descriptor_icon_pixbuf_set = _tmp2_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - shotwell_transition_descriptor_icon_pixbuf_set_length1 = _tmp1_; -#line 61 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _shotwell_transition_descriptor_icon_pixbuf_set_size_ = shotwell_transition_descriptor_icon_pixbuf_set_length1; -#line 912 "shotwell-transitions.c" - } -#line 59 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return self; -#line 916 "shotwell-transitions.c" -} - - -static gint -shotwell_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_interface, - gint max_host_interface) -{ - ShotwellTransitionDescriptor * self; - gint result = 0; -#line 65 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_TRANSITIONS_CURRENT_INTERFACE); -#line 66 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 933 "shotwell-transitions.c" -} - - -static const gchar* -shotwell_transition_descriptor_real_get_id (ShotwellTransitionDescriptor* self) -{ -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_critical ("Type `%s' does not implement abstract method `shotwell_transition_descriptor_get_id'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return NULL; -#line 944 "shotwell-transitions.c" -} - - -const gchar* -shotwell_transition_descriptor_get_id (ShotwellTransitionDescriptor* self) -{ -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_return_val_if_fail (IS_SHOTWELL_TRANSITION_DESCRIPTOR (self), NULL); -#line 70 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS (self)->get_id (self); -#line 955 "shotwell-transitions.c" -} - - -static const gchar* -shotwell_transition_descriptor_real_get_pluggable_name (ShotwellTransitionDescriptor* self) -{ -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_critical ("Type `%s' does not implement abstract method `shotwell_transition_descriptor_get_pluggable_name'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return NULL; -#line 966 "shotwell-transitions.c" -} - - -const gchar* -shotwell_transition_descriptor_get_pluggable_name (ShotwellTransitionDescriptor* self) -{ -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_return_val_if_fail (IS_SHOTWELL_TRANSITION_DESCRIPTOR (self), NULL); -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS (self)->get_pluggable_name (self); -#line 977 "shotwell-transitions.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return self ? g_object_ref (self) : NULL; -#line 986 "shotwell-transitions.c" -} - - -static GdkPixbuf** -_vala_array_dup1 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - for (i = 0; i < length; i++) { -#line 1000 "shotwell-transitions.c" - GdkPixbuf* _tmp0_; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - result[i] = _tmp0_; -#line 1006 "shotwell-transitions.c" - } -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return result; -#line 1010 "shotwell-transitions.c" -} - - -static void -shotwell_transition_descriptor_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - ShotwellTransitionDescriptor * self; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GdkPixbuf** _tmp7_; - gint _tmp7__length1; - GdkPixbuf** _tmp8_; - gint _tmp8__length1; -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor); -#line 74 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_return_if_fail (info != NULL); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp0_ = g_strdup ("Maxim Kartashev"); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_free0 ((*info).authors); -#line 75 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).authors = _tmp0_; -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp1_ = g_strdup (_ ("Copyright 2010 Maxim Kartashev, Copyright 2016 Software Freedom Conser" \ -"vancy Inc.")); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_free0 ((*info).copyright); -#line 76 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).copyright = _tmp1_; -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_free0 ((*info).translators); -#line 77 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).translators = _tmp2_; -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp3_ = g_strdup (_VERSION); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_free0 ((*info).version); -#line 78 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).version = _tmp3_; -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp4_ = g_strdup (RESOURCES_WEBSITE_NAME); -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_free0 ((*info).website_name); -#line 79 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).website_name = _tmp4_; -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp5_ = g_strdup (RESOURCES_WEBSITE_URL); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_free0 ((*info).website_url); -#line 80 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).website_url = _tmp5_; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).is_license_wordwrapped = FALSE; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp6_ = g_strdup (RESOURCES_LICENSE); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _g_free0 ((*info).license); -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).license = _tmp6_; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp7_ = shotwell_transition_descriptor_icon_pixbuf_set; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp7__length1 = shotwell_transition_descriptor_icon_pixbuf_set_length1; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup1 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - _tmp8__length1 = _tmp7__length1; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).icons = _tmp8_; -#line 83 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - (*info).icons_length1 = _tmp8__length1; -#line 1092 "shotwell-transitions.c" -} - - -static void -shotwell_transition_descriptor_real_activation (SpitPluggable* base, - gboolean enabled) -{ - ShotwellTransitionDescriptor * self; -#line 86 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor); -#line 1103 "shotwell-transitions.c" -} - - -static SpitTransitionsEffect* -shotwell_transition_descriptor_real_create (ShotwellTransitionDescriptor* self, - SpitHostInterface* host) -{ -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_critical ("Type `%s' does not implement abstract method `shotwell_transition_descriptor_create'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return NULL; -#line 1115 "shotwell-transitions.c" -} - - -SpitTransitionsEffect* -shotwell_transition_descriptor_create (ShotwellTransitionDescriptor* self, - SpitHostInterface* host) -{ -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - g_return_val_if_fail (IS_SHOTWELL_TRANSITION_DESCRIPTOR (self), NULL); -#line 89 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - return SHOTWELL_TRANSITION_DESCRIPTOR_GET_CLASS (self)->create (self, host); -#line 1127 "shotwell-transitions.c" -} - - -static void -shotwell_transition_descriptor_class_init (ShotwellTransitionDescriptorClass * klass) -{ -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - shotwell_transition_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_id = (const gchar* (*) (ShotwellTransitionDescriptor *)) shotwell_transition_descriptor_real_get_id; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - ((ShotwellTransitionDescriptorClass *) klass)->get_pluggable_name = (const gchar* (*) (ShotwellTransitionDescriptor *)) shotwell_transition_descriptor_real_get_pluggable_name; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - ((ShotwellTransitionDescriptorClass *) klass)->create = (SpitTransitionsEffect* (*) (ShotwellTransitionDescriptor *, SpitHostInterface*)) shotwell_transition_descriptor_real_create; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - G_OBJECT_CLASS (klass)->finalize = shotwell_transition_descriptor_finalize; -#line 1144 "shotwell-transitions.c" -} - - -static void -shotwell_transition_descriptor_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - shotwell_transition_descriptor_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) shotwell_transition_descriptor_real_get_pluggable_interface; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) shotwell_transition_descriptor_get_id; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) shotwell_transition_descriptor_get_pluggable_name; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) shotwell_transition_descriptor_real_get_info; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) shotwell_transition_descriptor_real_activation; -#line 1163 "shotwell-transitions.c" -} - - -static void -shotwell_transition_descriptor_spit_transitions_descriptor_interface_init (SpitTransitionsDescriptorIface * iface) -{ -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - shotwell_transition_descriptor_spit_transitions_descriptor_parent_iface = g_type_interface_peek_parent (iface); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - iface->create = (SpitTransitionsEffect* (*) (SpitTransitionsDescriptor *, SpitHostInterface*)) shotwell_transition_descriptor_create; -#line 1174 "shotwell-transitions.c" -} - - -static void -shotwell_transition_descriptor_instance_init (ShotwellTransitionDescriptor * self) -{ -} - - -static void -shotwell_transition_descriptor_finalize (GObject * obj) -{ - ShotwellTransitionDescriptor * self; -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_TRANSITION_DESCRIPTOR, ShotwellTransitionDescriptor); -#line 54 "/home/jens/Source/shotwell/plugins/shotwell-transitions/shotwell-transitions.vala" - G_OBJECT_CLASS (shotwell_transition_descriptor_parent_class)->finalize (obj); -#line 1192 "shotwell-transitions.c" -} - - -GType -shotwell_transition_descriptor_get_type (void) -{ - static volatile gsize shotwell_transition_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&shotwell_transition_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ShotwellTransitionDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_transition_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellTransitionDescriptor), 0, (GInstanceInitFunc) shotwell_transition_descriptor_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) shotwell_transition_descriptor_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_transitions_descriptor_info = { (GInterfaceInitFunc) shotwell_transition_descriptor_spit_transitions_descriptor_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType shotwell_transition_descriptor_type_id; - shotwell_transition_descriptor_type_id = g_type_register_static (G_TYPE_OBJECT, "ShotwellTransitionDescriptor", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_type_add_interface_static (shotwell_transition_descriptor_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (shotwell_transition_descriptor_type_id, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, &spit_transitions_descriptor_info); - g_once_init_leave (&shotwell_transition_descriptor_type_id__volatile, shotwell_transition_descriptor_type_id); - } - return shotwell_transition_descriptor_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/plugins_authenticator_libshotwell_authenticator_la_vala.stamp b/plugins_authenticator_libshotwell_authenticator_la_vala.stamp deleted file mode 100644 index 859afb1..0000000 --- a/plugins_authenticator_libshotwell_authenticator_la_vala.stamp +++ /dev/null @@ -1 +0,0 @@ -stamp diff --git a/plugins_common_libshotwell_plugin_common_la_vala.stamp b/plugins_common_libshotwell_plugin_common_la_vala.stamp deleted file mode 100644 index 859afb1..0000000 --- a/plugins_common_libshotwell_plugin_common_la_vala.stamp +++ /dev/null @@ -1 +0,0 @@ -stamp diff --git a/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp b/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp deleted file mode 100644 index 859afb1..0000000 --- a/plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_vala.stamp +++ /dev/null @@ -1 +0,0 @@ -stamp diff --git a/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp b/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp deleted file mode 100644 index 859afb1..0000000 --- a/plugins_shotwell_publishing_shotwell_publishing_la_vala.stamp +++ /dev/null @@ -1 +0,0 @@ -stamp diff --git a/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp b/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp deleted file mode 100644 index 859afb1..0000000 --- a/plugins_shotwell_transitions_shotwell_transitions_la_vala.stamp +++ /dev/null @@ -1 +0,0 @@ -stamp diff --git a/po/Makefile.in.in b/po/Makefile.in.in deleted file mode 100644 index 8f34f00..0000000 --- a/po/Makefile.in.in +++ /dev/null @@ -1,483 +0,0 @@ -# Makefile for PO directory in any package using GNU gettext. -# Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper -# -# Copying and distribution of this file, with or without modification, -# are permitted in any medium without royalty provided the copyright -# notice and this notice are preserved. This file is offered as-is, -# without any warranty. -# -# Origin: gettext-0.19.7 -GETTEXT_MACRO_VERSION = 0.19 - -PACKAGE = @PACKAGE@ -VERSION = @VERSION@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ - -SED = @SED@ -SHELL = /bin/sh -@SET_MAKE@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ - -prefix = @prefix@ -exec_prefix = @exec_prefix@ -datarootdir = @datarootdir@ -datadir = @datadir@ -localedir = @localedir@ -gettextsrcdir = $(datadir)/gettext/po - -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ - -# We use $(mkdir_p). -# In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as -# "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, -# @install_sh@ does not start with $(SHELL), so we add it. -# In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined -# either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake -# versions, $(mkinstalldirs) and $(install_sh) are unused. -mkinstalldirs = $(SHELL) @install_sh@ -d -install_sh = $(SHELL) @install_sh@ -MKDIR_P = @MKDIR_P@ -mkdir_p = @mkdir_p@ - -# When building gettext-tools, we prefer to use the built programs -# rather than installed programs. However, we can't do that when we -# are cross compiling. -CROSS_COMPILING = @CROSS_COMPILING@ - -GMSGFMT_ = @GMSGFMT@ -GMSGFMT_no = @GMSGFMT@ -GMSGFMT_yes = @GMSGFMT_015@ -GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) -MSGFMT_ = @MSGFMT@ -MSGFMT_no = @MSGFMT@ -MSGFMT_yes = @MSGFMT_015@ -MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) -XGETTEXT_ = @XGETTEXT@ -XGETTEXT_no = @XGETTEXT@ -XGETTEXT_yes = @XGETTEXT_015@ -XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) -MSGMERGE = msgmerge -MSGMERGE_UPDATE = @MSGMERGE@ --update -MSGINIT = msginit -MSGCONV = msgconv -MSGFILTER = msgfilter - -POFILES = @POFILES@ -GMOFILES = @GMOFILES@ -UPDATEPOFILES = @UPDATEPOFILES@ -DUMMYPOFILES = @DUMMYPOFILES@ -DISTFILES.common = Makefile.in.in remove-potcdate.sin \ -$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) -DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ -$(POFILES) $(GMOFILES) \ -$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) - -POTFILES = \ - -CATALOGS = @CATALOGS@ - -POFILESDEPS_ = $(srcdir)/$(DOMAIN).pot -POFILESDEPS_yes = $(POFILESDEPS_) -POFILESDEPS_no = -POFILESDEPS = $(POFILESDEPS_$(PO_DEPENDS_ON_POT)) - -DISTFILESDEPS_ = update-po -DISTFILESDEPS_yes = $(DISTFILESDEPS_) -DISTFILESDEPS_no = -DISTFILESDEPS = $(DISTFILESDEPS_$(DIST_DEPENDS_ON_UPDATE_PO)) - -# Makevars gets inserted here. (Don't remove this line!) - -.SUFFIXES: -.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update - -.po.mo: - @echo "$(MSGFMT) -c -o $@ $<"; \ - $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ - -.po.gmo: - @lang=`echo $* | sed -e 's,.*/,,'`; \ - test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo - -.sin.sed: - sed -e '/^#/d' $< > t-$@ - mv t-$@ $@ - - -all: all-@USE_NLS@ - -all-yes: stamp-po -all-no: - -# Ensure that the gettext macros and this Makefile.in.in are in sync. -CHECK_MACRO_VERSION = \ - test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \ - || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \ - exit 1; \ - } - -# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no -# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because -# we don't want to bother translators with empty POT files). We assume that -# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. -# In this case, stamp-po is a nop (i.e. a phony target). - -# stamp-po is a timestamp denoting the last time at which the CATALOGS have -# been loosely updated. Its purpose is that when a developer or translator -# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, -# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent -# invocations of "make" will do nothing. This timestamp would not be necessary -# if updating the $(CATALOGS) would always touch them; however, the rule for -# $(POFILES) has been designed to not touch files that don't need to be -# changed. -stamp-po: $(srcdir)/$(DOMAIN).pot - @$(CHECK_MACRO_VERSION) - test ! -f $(srcdir)/$(DOMAIN).pot || \ - test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) - @test ! -f $(srcdir)/$(DOMAIN).pot || { \ - echo "touch stamp-po" && \ - echo timestamp > stamp-poT && \ - mv stamp-poT stamp-po; \ - } - -# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', -# otherwise packages like GCC can not be built if only parts of the source -# have been downloaded. - -# This target rebuilds $(DOMAIN).pot; it is an expensive operation. -# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. -# The determination of whether the package xyz is a GNU one is based on the -# heuristic whether some file in the top level directory mentions "GNU xyz". -# If GNU 'find' is available, we avoid grepping through monster files. -$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed - package_gnu="$(PACKAGE_GNU)"; \ - test -n "$$package_gnu" || { \ - if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \ - LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f \ - -size -10000000c -exec grep 'GNU @PACKAGE@' \ - /dev/null '{}' ';' 2>/dev/null; \ - else \ - LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null; \ - fi; \ - } | grep -v 'libtool:' >/dev/null; then \ - package_gnu=yes; \ - else \ - package_gnu=no; \ - fi; \ - }; \ - if test "$$package_gnu" = "yes"; then \ - package_prefix='GNU '; \ - else \ - package_prefix=''; \ - fi; \ - if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ - msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ - else \ - msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ - fi; \ - case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ - $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ - --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ - --files-from=$(srcdir)/POTFILES.in \ - --copyright-holder='$(COPYRIGHT_HOLDER)' \ - --msgid-bugs-address="$$msgid_bugs_address" \ - ;; \ - *) \ - $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ - --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ - --files-from=$(srcdir)/POTFILES.in \ - --copyright-holder='$(COPYRIGHT_HOLDER)' \ - --package-name="$${package_prefix}@PACKAGE@" \ - --package-version='@VERSION@' \ - --msgid-bugs-address="$$msgid_bugs_address" \ - ;; \ - esac - test ! -f $(DOMAIN).po || { \ - if test -f $(srcdir)/$(DOMAIN).pot-header; then \ - sed -e '1,/^#$$/d' < $(DOMAIN).po > $(DOMAIN).1po && \ - cat $(srcdir)/$(DOMAIN).pot-header $(DOMAIN).1po > $(DOMAIN).po; \ - rm -f $(DOMAIN).1po; \ - fi; \ - if test -f $(srcdir)/$(DOMAIN).pot; then \ - sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ - sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ - if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ - rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ - else \ - rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ - mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ - fi; \ - else \ - mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ - fi; \ - } - -# This rule has no dependencies: we don't need to update $(DOMAIN).pot at -# every "make" invocation, only create it when it is missing. -# Only "make $(DOMAIN).pot-update" or "make dist" will force an update. -$(srcdir)/$(DOMAIN).pot: - $(MAKE) $(DOMAIN).pot-update - -# This target rebuilds a PO file if $(DOMAIN).pot has changed. -# Note that a PO file is not touched if it doesn't need to be changed. -$(POFILES): $(POFILESDEPS) - @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ - if test -f "$(srcdir)/$${lang}.po"; then \ - test -f $(srcdir)/$(DOMAIN).pot || $(MAKE) $(srcdir)/$(DOMAIN).pot; \ - test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) \ - && { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ - $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ - *) \ - $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ - esac; \ - }; \ - else \ - $(MAKE) $${lang}.po-create; \ - fi - - -install: install-exec install-data -install-exec: -install-data: install-data-@USE_NLS@ - if test "$(PACKAGE)" = "gettext-tools"; then \ - $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ - for file in $(DISTFILES.common) Makevars.template; do \ - $(INSTALL_DATA) $(srcdir)/$$file \ - $(DESTDIR)$(gettextsrcdir)/$$file; \ - done; \ - for file in Makevars; do \ - rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ - done; \ - else \ - : ; \ - fi -install-data-no: all -install-data-yes: all - @catalogs='$(CATALOGS)'; \ - for cat in $$catalogs; do \ - cat=`basename $$cat`; \ - lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ - dir=$(localedir)/$$lang/LC_MESSAGES; \ - $(mkdir_p) $(DESTDIR)$$dir; \ - if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ - $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ - echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ - for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ - if test -n "$$lc"; then \ - if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ - link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ - mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ - mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ - (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ - for file in *; do \ - if test -f $$file; then \ - ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ - fi; \ - done); \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ - else \ - if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ - :; \ - else \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ - mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ - fi; \ - fi; \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ - ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ - ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ - cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ - echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ - fi; \ - done; \ - done - -install-strip: install - -installdirs: installdirs-exec installdirs-data -installdirs-exec: -installdirs-data: installdirs-data-@USE_NLS@ - if test "$(PACKAGE)" = "gettext-tools"; then \ - $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ - else \ - : ; \ - fi -installdirs-data-no: -installdirs-data-yes: - @catalogs='$(CATALOGS)'; \ - for cat in $$catalogs; do \ - cat=`basename $$cat`; \ - lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ - dir=$(localedir)/$$lang/LC_MESSAGES; \ - $(mkdir_p) $(DESTDIR)$$dir; \ - for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ - if test -n "$$lc"; then \ - if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ - link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ - mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ - mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ - (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ - for file in *; do \ - if test -f $$file; then \ - ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ - fi; \ - done); \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ - else \ - if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ - :; \ - else \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ - mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ - fi; \ - fi; \ - fi; \ - done; \ - done - -# Define this as empty until I found a useful application. -installcheck: - -uninstall: uninstall-exec uninstall-data -uninstall-exec: -uninstall-data: uninstall-data-@USE_NLS@ - if test "$(PACKAGE)" = "gettext-tools"; then \ - for file in $(DISTFILES.common) Makevars.template; do \ - rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ - done; \ - else \ - : ; \ - fi -uninstall-data-no: -uninstall-data-yes: - catalogs='$(CATALOGS)'; \ - for cat in $$catalogs; do \ - cat=`basename $$cat`; \ - lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ - for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ - rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ - done; \ - done - -check: all - -info dvi ps pdf html tags TAGS ctags CTAGS ID: - -mostlyclean: - rm -f remove-potcdate.sed - rm -f stamp-poT - rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po - rm -fr *.o - -clean: mostlyclean - -distclean: clean - rm -f Makefile Makefile.in POTFILES *.mo - -maintainer-clean: distclean - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - rm -f stamp-po $(GMOFILES) - -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) -dist distdir: - test -z "$(DISTFILESDEPS)" || $(MAKE) $(DISTFILESDEPS) - @$(MAKE) dist2 -# This is a separate target because 'update-po' must be executed before. -dist2: stamp-po $(DISTFILES) - dists="$(DISTFILES)"; \ - if test "$(PACKAGE)" = "gettext-tools"; then \ - dists="$$dists Makevars.template"; \ - fi; \ - if test -f $(srcdir)/$(DOMAIN).pot; then \ - dists="$$dists $(DOMAIN).pot stamp-po"; \ - fi; \ - if test -f $(srcdir)/ChangeLog; then \ - dists="$$dists ChangeLog"; \ - fi; \ - for i in 0 1 2 3 4 5 6 7 8 9; do \ - if test -f $(srcdir)/ChangeLog.$$i; then \ - dists="$$dists ChangeLog.$$i"; \ - fi; \ - done; \ - if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ - for file in $$dists; do \ - if test -f $$file; then \ - cp -p $$file $(distdir) || exit 1; \ - else \ - cp -p $(srcdir)/$$file $(distdir) || exit 1; \ - fi; \ - done - -update-po: Makefile - $(MAKE) $(DOMAIN).pot-update - test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) - $(MAKE) update-gmo - -# General rule for creating PO files. - -.nop.po-create: - @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ - echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ - exit 1 - -# General rule for updating PO files. - -.nop.po-update: - @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ - if test "$(PACKAGE)" = "gettext-tools" && test "$(CROSS_COMPILING)" != "yes"; then PATH=`pwd`/../src:$$PATH; fi; \ - tmpdir=`pwd`; \ - echo "$$lang:"; \ - test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ - cd $(srcdir); \ - if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ - $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ - *) \ - $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ - esac; \ - }; then \ - if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ - rm -f $$tmpdir/$$lang.new.po; \ - else \ - if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ - :; \ - else \ - echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ - exit 1; \ - fi; \ - fi; \ - else \ - echo "msgmerge for $$lang.po failed!" 1>&2; \ - rm -f $$tmpdir/$$lang.new.po; \ - fi - -$(DUMMYPOFILES): - -update-gmo: Makefile $(GMOFILES) - @: - -# Recreate Makefile by invoking config.status. Explicitly invoke the shell, -# because execution permission bits may not work on the current file system. -# Use @SHELL@, which is the shell determined by autoconf for the use by its -# scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient. -Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ - cd $(top_builddir) \ - && @SHELL@ ./config.status $(subdir)/$@.in po-directories - -force: - -# Tell versions [3.59,3.63) of GNU make not to export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/po/Makevars b/po/Makevars deleted file mode 100644 index 9480715..0000000 --- a/po/Makevars +++ /dev/null @@ -1,78 +0,0 @@ -# Makefile variables for PO directory in any package using GNU gettext. - -# Usually the message domain is the same as the package name. -DOMAIN = $(PACKAGE) - -# These two variables depend on the location of this directory. -subdir = po -top_builddir = .. - -# These options get passed to xgettext. -XGETTEXT_OPTIONS = -c --from-code=UTF-8 --keyword=C_:1c,2 - -# This is the copyright holder that gets inserted into the header of the -# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding -# package. (Note that the msgstr strings, extracted from the package's -# sources, belong to the copyright holder of the package.) Translators are -# expected to transfer the copyright for their translations to this person -# or entity, or to disclaim their copyright. The empty string stands for -# the public domain; in this case the translators are expected to disclaim -# their copyright. -COPYRIGHT_HOLDER = Translation copyright holder - -# This tells whether or not to prepend "GNU " prefix to the package -# name that gets inserted into the header of the $(DOMAIN).pot file. -# Possible values are "yes", "no", or empty. If it is empty, try to -# detect it automatically by scanning the files in $(top_srcdir) for -# "GNU packagename" string. -PACKAGE_GNU = no - -# This is the email address or URL to which the translators shall report -# bugs in the untranslated strings: -# - Strings which are not entire sentences, see the maintainer guidelines -# in the GNU gettext documentation, section 'Preparing Strings'. -# - Strings which use unclear terms or require additional context to be -# understood. -# - Strings which make invalid assumptions about notation of date, time or -# money. -# - Pluralisation problems. -# - Incorrect English spelling. -# - Incorrect formatting. -# It can be your email address, or a mailing list address where translators -# can write to without being subscribed, or the URL of a web page through -# which the translators can contact you. -MSGID_BUGS_ADDRESS = https://bugzilla.gnome.org/enter_bug.cgi?product=Shotwell&component=Internationalization - -# This is the list of locale categories, beyond LC_MESSAGES, for which the -# message catalogs shall be used. It is usually empty. -EXTRA_LOCALE_CATEGORIES = - -# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt' -# context. Possible values are "yes" and "no". Set this to yes if the -# package uses functions taking also a message context, like pgettext(), or -# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. -USE_MSGCTXT = yes - -# These options get passed to msgmerge. -# Useful options are in particular: -# --previous to keep previous msgids of translated messages, -# --quiet to reduce the verbosity. -MSGMERGE_OPTIONS = - -# These options get passed to msginit. -# If you want to disable line wrapping when writing PO files, add -# --no-wrap to MSGMERGE_OPTIONS, XGETTEXT_OPTIONS, and -# MSGINIT_OPTIONS. -MSGINIT_OPTIONS = - -# This tells whether or not to regenerate a PO file when $(DOMAIN).pot -# has changed. Possible values are "yes" and "no". Set this to no if -# the POT file is checked in the repository and the version control -# program ignores timestamps. -PO_DEPENDS_ON_POT = no - -# This tells whether or not to forcibly update $(DOMAIN).pot and -# regenerate PO files on "make dist". Possible values are "yes" and -# "no". Set this to no if the POT file and PO files are maintained -# externally. -DIST_DEPENDS_ON_UPDATE_PO = no diff --git a/po/POTFILES.in b/po/POTFILES.in index fb03e9e..92088b9 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -79,7 +79,10 @@ src/events/EventsBranch.vala src/events/EventsDirectoryPage.vala src/Event.vala src/Exporter.vala +src/faces/FacesBranch.vala +src/faces/FacesTool.vala src/folders/FoldersBranch.vala +src/import-roll/ImportRollBranch.vala src/library/FlaggedPage.vala src/library/ImportQueuePage.vala src/library/LastImportPage.vala @@ -93,6 +96,7 @@ src/MediaPage.vala src/Page.vala src/PhotoPage.vala src/photos/BmpSupport.vala +src/photos/GifSupport.vala src/photos/JfifSupport.vala src/photos/PngSupport.vala src/photos/RawSupport.vala @@ -120,6 +124,7 @@ ui/direct_context.ui ui/direct.ui ui/events_directory.ui ui/event.ui +ui/faces.ui ui/import_queue.ui ui/import.ui ui/manifest_widget.ui diff --git a/po/POTFILES.skip b/po/POTFILES.skip new file mode 100644 index 0000000..2ace067 --- /dev/null +++ b/po/POTFILES.skip @@ -0,0 +1,102 @@ +# List of source files that should *not* be translated. +# Please keep this file sorted alphabetically. +plugins/authenticator/shotwell/FacebookPublishingAuthenticator.c +plugins/authenticator/shotwell/FlickrPublishingAuthenticator.c +plugins/authenticator/shotwell/GoogleAuthenticator.c +plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.c +plugins/authenticator/shotwell/TumblrAuthenticator.c +plugins/common/Resources.c +plugins/common/RESTSupport.c +plugins/shotwell-publishing-extras/GalleryConnector.c +plugins/shotwell-publishing-extras/RajcePublishing.c +plugins/shotwell-publishing-extras/shotwell-publishing-extras.c +plugins/shotwell-publishing-extras/YandexPublishing.c +plugins/shotwell-publishing/FacebookPublishing.c +plugins/shotwell-publishing/FlickrPublishing.c +plugins/shotwell-publishing/PicasaPublishing.c +plugins/shotwell-publishing/PiwigoPublishing.c +plugins/shotwell-publishing/shotwell-publishing.c +plugins/shotwell-publishing/TumblrPublishing.c +plugins/shotwell-publishing/YouTubePublishing.c +plugins/shotwell-transitions/BlindsEffect.c +plugins/shotwell-transitions/ChessEffect.c +plugins/shotwell-transitions/CircleEffect.c +plugins/shotwell-transitions/CirclesEffect.c +plugins/shotwell-transitions/ClockEffect.c +plugins/shotwell-transitions/CrumbleEffect.c +plugins/shotwell-transitions/FadeEffect.c +plugins/shotwell-transitions/shotwell-transitions.c +plugins/shotwell-transitions/SlideEffect.c +plugins/shotwell-transitions/SquaresEffect.c +plugins/shotwell-transitions/StripesEffect.c +src/AppDirs.c +src/AppWindow.c +src/BatchImport.c +src/camera/CameraBranch.c +src/camera/CameraTable.c +src/camera/ImportPage.c +src/CollectionPage.c +src/Commands.c +src/data_imports/DataImports.c +src/data_imports/DataImportsPluginHost.c +src/data_imports/DataImportsUI.c +src/db/DatabaseTable.c +src/dialogs/AdjustDateTimeDialog.c +src/dialogs/ExportDialog.c +src/dialogs/Preferences.c +src/dialogs/ProgressDialog.c +src/dialogs/SetBackgroundSlideshow.c +src/dialogs/WelcomeDialog.c +src/DesktopIntegration.c +src/Dialogs.c +src/Dimensions.c +src/direct/DirectPhotoPage.c +src/DirectoryMonitor.c +src/editing_tools/EditingTools.c +src/editing_tools/StraightenTool.c +src/Event.c +src/events/EventDirectoryItem.c +src/events/EventPage.c +src/events/EventsBranch.c +src/events/EventsDirectoryPage.c +src/Exporter.c +src/faces/FacesBranch.c +src/faces/FacesTool.c +src/folders/FoldersBranch.c +src/import-roll/ImportRollBranch.c +src/library/FlaggedPage.c +src/library/ImportQueuePage.c +src/library/LastImportPage.c +src/library/LibraryBranch.c +src/library/LibraryWindow.c +src/library/OfflinePage.c +src/library/TrashPage.c +src/main.c +src/MediaMonitor.c +src/MediaPage.c +src/Page.c +src/Photo.c +src/PhotoPage.c +src/photos/BmpSupport.c +src/photos/GifSupport.c +src/photos/JfifSupport.c +src/photos/PngSupport.c +src/photos/RawSupport.c +src/photos/TiffSupport.c +src/Printing.c +src/Properties.c +src/publishing/Publishing.c +src/publishing/PublishingPluginHost.c +src/publishing/PublishingUI.c +src/Resources.c +src/Screensaver.c +src/searches/SavedSearchDialog.c +src/searches/SearchBoolean.c +src/searches/SearchesBranch.c +src/SearchFilter.c +src/SlideshowPage.c +src/slideshow/Slideshow.c +src/slideshow/TransitionEffects.c +src/Tag.c +src/tags/TagsBranch.c +src/VideoSupport.c diff --git a/po/Rules-quot b/po/Rules-quot deleted file mode 100644 index baf6528..0000000 --- a/po/Rules-quot +++ /dev/null @@ -1,58 +0,0 @@ -# This file, Rules-quot, can be copied and used freely without restrictions. -# Special Makefile rules for English message catalogs with quotation marks. - -DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot - -.SUFFIXES: .insert-header .po-update-en - -en@quot.po-create: - $(MAKE) en@quot.po-update -en@boldquot.po-create: - $(MAKE) en@boldquot.po-update - -en@quot.po-update: en@quot.po-update-en -en@boldquot.po-update: en@boldquot.po-update-en - -.insert-header.po-update-en: - @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ - if test "$(PACKAGE)" = "gettext-tools" && test "$(CROSS_COMPILING)" != "yes"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ - tmpdir=`pwd`; \ - echo "$$lang:"; \ - ll=`echo $$lang | sed -e 's/@.*//'`; \ - LC_ALL=C; export LC_ALL; \ - cd $(srcdir); \ - if $(MSGINIT) $(MSGINIT_OPTIONS) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null \ - | $(SED) -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | \ - { case `$(MSGFILTER) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-8] | 0.1[0-8].*) \ - $(MSGFILTER) $(SED) -f `echo $$lang | sed -e 's/.*@//'`.sed \ - ;; \ - *) \ - $(MSGFILTER) `echo $$lang | sed -e 's/.*@//'` \ - ;; \ - esac } 2>/dev/null > $$tmpdir/$$lang.new.po \ - ; then \ - if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ - rm -f $$tmpdir/$$lang.new.po; \ - else \ - if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ - :; \ - else \ - echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ - exit 1; \ - fi; \ - fi; \ - else \ - echo "creation of $$lang.po failed!" 1>&2; \ - rm -f $$tmpdir/$$lang.new.po; \ - fi - -en@quot.insert-header: insert-header.sin - sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header - -en@boldquot.insert-header: insert-header.sin - sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header - -mostlyclean: mostlyclean-quot -mostlyclean-quot: - rm -f *.insert-header diff --git a/po/af.gmo b/po/af.gmo deleted file mode 100644 index 6570042..0000000 Binary files a/po/af.gmo and /dev/null differ diff --git a/po/ar.gmo b/po/ar.gmo deleted file mode 100644 index cbe9e3b..0000000 Binary files a/po/ar.gmo and /dev/null differ diff --git a/po/as.gmo b/po/as.gmo deleted file mode 100644 index 9d8531d..0000000 Binary files a/po/as.gmo and /dev/null differ diff --git a/po/ast.gmo b/po/ast.gmo deleted file mode 100644 index c75a078..0000000 Binary files a/po/ast.gmo and /dev/null differ diff --git a/po/bg.gmo b/po/bg.gmo deleted file mode 100644 index 7fb1a8e..0000000 Binary files a/po/bg.gmo and /dev/null differ diff --git a/po/bn.gmo b/po/bn.gmo deleted file mode 100644 index 5a04733..0000000 Binary files a/po/bn.gmo and /dev/null differ diff --git a/po/bn_IN.gmo b/po/bn_IN.gmo deleted file mode 100644 index 1a044c3..0000000 Binary files a/po/bn_IN.gmo and /dev/null differ diff --git a/po/boldquot.sed b/po/boldquot.sed deleted file mode 100644 index 4b937aa..0000000 --- a/po/boldquot.sed +++ /dev/null @@ -1,10 +0,0 @@ -s/"\([^"]*\)"/“\1”/g -s/`\([^`']*\)'/‘\1’/g -s/ '\([^`']*\)' / ‘\1’ /g -s/ '\([^`']*\)'$/ ‘\1’/g -s/^'\([^`']*\)' /‘\1’ /g -s/“”/""/g -s/“/“/g -s/”/”/g -s/‘/‘/g -s/’/’/g diff --git a/po/bs.gmo b/po/bs.gmo deleted file mode 100644 index 031a6c2..0000000 Binary files a/po/bs.gmo and /dev/null differ diff --git a/po/ca.gmo b/po/ca.gmo deleted file mode 100644 index 4cba08f..0000000 Binary files a/po/ca.gmo and /dev/null differ diff --git a/po/cs.gmo b/po/cs.gmo deleted file mode 100644 index dfcf60f..0000000 Binary files a/po/cs.gmo and /dev/null differ diff --git a/po/cs.po b/po/cs.po index a7f78c8..dd21a23 100644 --- a/po/cs.po +++ b/po/cs.po @@ -15,10 +15,9 @@ msgid "" msgstr "" "Project-Id-Version: shotwell\n" -"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" -"product=shotwell&keywords=I18N+L10N&component=Internationalization\n" -"POT-Creation-Date: 2018-01-17 19:38+0000\n" -"PO-Revision-Date: 2018-01-26 21:57+0100\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/shotwell/issues\n" +"POT-Creation-Date: 2018-06-16 10:58+0000\n" +"PO-Revision-Date: 2018-06-21 15:32+0200\n" "Last-Translator: Marek Černocký \n" "Language-Team: čeština \n" "Language: cs\n" @@ -31,8 +30,8 @@ msgstr "" #: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in:4 #: plugins/shotwell-publishing-extras/GalleryConnector.vala:115 #: src/photos/RawSupport.vala:308 ui/collection.ui:85 ui/event.ui:356 -#: ui/event.ui:524 ui/media.ui:356 ui/photo_context.ui:91 ui/photo.ui:347 -#: ui/tags.ui:356 +#: ui/event.ui:524 ui/faces.ui:356 ui/media.ui:356 ui/photo_context.ui:91 +#: ui/photo.ui:347 ui/tags.ui:356 msgid "Shotwell" msgstr "Shotwell" @@ -479,12 +478,12 @@ msgid "Pin toolbar in fullscreen, or not." msgstr "Zda v režimu celé obrazovky připíchout nástrojovou lištu či nikoliv." #: misc/org.yorba.shotwell.gschema.xml:161 -msgid "background color" -msgstr "Barva pozadí" +msgid "prefer GTK+’s dark theme" +msgstr "Dát přednost tmavému motivu GTK+" #: misc/org.yorba.shotwell.gschema.xml:162 -msgid "A grayscale color for use as the background color." -msgstr "Odstín šedé, který se má použít jako barva pozadí." +msgid "Whether to use the dark theme of GTK+ for Shotwell or not." +msgstr "Zda se pro Shotwell má, či nemá, používat tmavý motiv GTK+." #: misc/org.yorba.shotwell.gschema.xml:167 msgid "background for transparent images" @@ -1462,7 +1461,7 @@ msgstr "Selhala autorizace na službě Flickr" msgid "Verifying authorization…" msgstr "Ověřuje se autorizace…" -#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:118 +#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:137 msgid "" "You have already logged in and out of a Google service during this Shotwell " "session.\n" @@ -1547,7 +1546,7 @@ msgstr "Nelze načíst uživatelské rozhraní: %s" msgid "Visit the Shotwell home page" msgstr "Navštívit web aplikace Shotwell" -#: plugins/common/Resources.vala:31 src/AppWindow.vala:611 +#: plugins/common/Resources.vala:31 src/AppWindow.vala:603 msgid "translator-credits" msgstr "" "David Štancl \n" @@ -1703,7 +1702,7 @@ msgstr "_Odhlásit" #: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:156 #: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:121 #: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:115 -#: src/CollectionPage.vala:82 src/PhotoPage.vala:2469 +#: src/CollectionPage.vala:82 src/PhotoPage.vala:2492 msgid "_Publish" msgstr "_Zveřejnit" @@ -2168,7 +2167,7 @@ msgid "Logout" msgstr "Odhlásit" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:268 -#: src/Resources.vala:296 ui/collection.ui:192 +#: src/Resources.vala:266 ui/collection.ui:192 msgid "Publish" msgstr "Zveřejnit" @@ -2199,8 +2198,8 @@ msgid "Certificate of %s" msgstr "Certifikát serveru %s" #: plugins/shotwell-publishing/PiwigoPublishing.vala:1051 -#: src/Resources.vala:167 ui/multitextentrydialog.ui:40 -#: ui/slideshow_settings.ui:49 +#: src/Resources.vala:137 ui/multitextentrydialog.ui:40 +#: ui/slideshow_settings.ui:52 msgid "_OK" msgstr "_Budiž" @@ -2408,17 +2407,18 @@ msgstr "Připíchnout otevřenou nástrojovou lištu" msgid "Leave fullscreen" msgstr "Opustit režim celé obrazovky" -#: src/AppWindow.vala:538 src/AppWindow.vala:559 src/AppWindow.vala:576 +#: src/AppWindow.vala:530 src/AppWindow.vala:551 src/AppWindow.vala:568 #: src/data_imports/DataImportsUI.vala:302 #: src/data_imports/DataImportsUI.vala:420 src/Dialogs.vala:20 -#: src/Dialogs.vala:28 src/Dialogs.vala:753 src/Dialogs.vala:776 -#: src/publishing/PublishingUI.vala:305 src/publishing/PublishingUI.vala:529 -#: src/Resources.vala:158 ui/multitextentrydialog.ui:25 -#: ui/slideshow_settings.ui:35 ui/textentrydialog.ui:19 +#: src/Dialogs.vala:28 src/Dialogs.vala:58 src/Dialogs.vala:766 +#: src/Dialogs.vala:789 src/publishing/PublishingUI.vala:305 +#: src/publishing/PublishingUI.vala:529 src/Resources.vala:128 +#: ui/multitextentrydialog.ui:25 ui/slideshow_settings.ui:38 +#: ui/textentrydialog.ui:19 msgid "_Cancel" msgstr "_Zrušit" -#: src/AppWindow.vala:586 +#: src/AppWindow.vala:578 #, c-format msgid "" "A fatal error occurred when accessing Shotwell’s library. Shotwell cannot " @@ -2431,21 +2431,21 @@ msgstr "" "\n" "%s" -#: src/AppWindow.vala:607 +#: src/AppWindow.vala:599 msgid "Visit the Shotwell web site" msgstr "Navštívit web aplikace Shotwell" -#: src/AppWindow.vala:620 +#: src/AppWindow.vala:612 #, c-format msgid "Unable to display help: %s" msgstr "Nelze zobrazit nápovědu: %s" -#: src/AppWindow.vala:628 +#: src/AppWindow.vala:620 #, c-format msgid "Unable to navigate to bug database: %s" msgstr "Nelze se připojit k databázi chyb: %s" -#: src/AppWindow.vala:636 +#: src/AppWindow.vala:628 #, c-format msgid "Unable to display FAQ: %s" msgstr "Nelze zobrazit časté dotazy a odpovědi: %s" @@ -2521,18 +2521,18 @@ msgstr "Vypsat všechny nalezené fotoaparáty a kamery" #: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:711 #: src/camera/ImportPage.vala:727 src/photos/RawSupport.vala:311 -#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/media.ui:361 -#: ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 +#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/faces.ui:361 +#: ui/media.ui:361 ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 msgid "Camera" msgstr "Fotoaparát" #. Translators: First %s is the name of camera as gotten from GPhoto, second is the GVolume name, e.g. Mass storage camera (510MB volume) -#: src/camera/CameraTable.vala:351 +#: src/camera/CameraTable.vala:367 #, c-format msgid "%s (%s)" msgstr "%s (%s)" -#: src/camera/ImportPage.vala:311 src/Properties.vala:230 +#: src/camera/ImportPage.vala:311 src/Properties.vala:233 msgid "RAW+JPEG" msgstr "RAW + JPEG" @@ -2668,7 +2668,7 @@ msgstr[0] "Smazat tento soubor z fotoaparátu?" msgstr[1] "Smazat tyto %d soubory z fotoaparátu?" msgstr[2] "Smazat těchto %d souborů z fotoaparátu?" -#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:720 +#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:733 msgid "_Keep" msgstr "_Zachovat" @@ -2685,21 +2685,21 @@ msgstr[1] "Kvůli chybě nelze smazat %d fotografie/videa z fotoaparátu." msgstr[2] "Kvůli chybě nelze smazat %d fotografií/videí z fotoaparátu." #: src/CollectionPage.vala:80 src/direct/DirectPhotoPage.vala:85 -#: src/PhotoPage.vala:2464 src/Resources.vala:171 +#: src/PhotoPage.vala:2487 src/Resources.vala:141 msgid "_Print" msgstr "_Tisk" -#: src/CollectionPage.vala:83 src/Resources.vala:324 ui/collection.ui:128 +#: src/CollectionPage.vala:83 src/Resources.vala:294 ui/collection.ui:128 #: ui/direct_context.ui:23 ui/direct.ui:23 ui/event.ui:567 ui/photo.ui:28 msgid "Send _To…" msgstr "Odesla_t…" #: src/CollectionPage.vala:84 src/direct/DirectPhotoPage.vala:90 -#: src/PhotoPage.vala:2474 src/Resources.vala:221 +#: src/PhotoPage.vala:2497 src/Resources.vala:191 msgid "Set as _Desktop Background" msgstr "Nastavit jako poza_dí plochy" -#: src/CollectionPage.vala:92 src/Resources.vala:287 +#: src/CollectionPage.vala:92 src/Resources.vala:257 msgid "_Duplicate" msgstr "_Duplikovat" @@ -2711,43 +2711,43 @@ msgstr "Celá obrazovka" msgid "S_lideshow" msgstr "P_romítat" -#: src/CollectionPage.vala:110 src/Resources.vala:140 ui/direct.ui:111 +#: src/CollectionPage.vala:110 src/Resources.vala:110 ui/direct.ui:111 #: ui/photo.ui:200 msgid "Rotate _Right" msgstr "Otočit dop_rava" -#: src/CollectionPage.vala:113 src/Resources.vala:145 ui/direct.ui:116 +#: src/CollectionPage.vala:113 src/Resources.vala:115 ui/direct.ui:116 #: ui/photo.ui:205 msgid "Rotate _Left" msgstr "Otočit do_leva" -#: src/CollectionPage.vala:116 src/Resources.vala:150 ui/direct.ui:121 +#: src/CollectionPage.vala:116 src/Resources.vala:120 ui/direct.ui:121 #: ui/photo.ui:210 msgid "Flip Hori_zontally" msgstr "Překlopit vo_dorovně" -#: src/CollectionPage.vala:117 src/Resources.vala:153 ui/direct.ui:125 +#: src/CollectionPage.vala:117 src/Resources.vala:123 ui/direct.ui:125 #: ui/photo.ui:214 msgid "Flip Verti_cally" msgstr "Překlopit s_visle" -#: src/CollectionPage.vala:119 src/Resources.vala:187 ui/collection.ui:8 +#: src/CollectionPage.vala:119 src/Resources.vala:157 ui/collection.ui:8 #: ui/direct_context.ui:7 ui/direct.ui:134 ui/event.ui:447 #: ui/photo_context.ui:6 ui/photo.ui:223 msgid "_Enhance" msgstr "_Vylepšit" -#: src/CollectionPage.vala:120 src/Resources.vala:215 ui/collection.ui:13 +#: src/CollectionPage.vala:120 src/Resources.vala:185 ui/collection.ui:13 #: ui/direct_context.ui:12 ui/direct.ui:161 ui/event.ui:452 #: ui/photo_context.ui:11 ui/photo.ui:250 msgid "Re_vert to Original" msgstr "_Vrátit zpět na původní" -#: src/CollectionPage.vala:122 src/Resources.vala:191 ui/photo.ui:256 +#: src/CollectionPage.vala:122 src/Resources.vala:161 ui/photo.ui:256 msgid "_Copy Color Adjustments" msgstr "_Kopírovat úpravu barev" -#: src/CollectionPage.vala:125 src/Resources.vala:195 ui/photo.ui:261 +#: src/CollectionPage.vala:125 src/Resources.vala:165 ui/photo.ui:261 msgid "_Paste Color Adjustments" msgstr "Vložit ú_pravu barev" @@ -2755,17 +2755,17 @@ msgstr "Vložit ú_pravu barev" msgid "Adjust Date and Time…" msgstr "Nastavit datum a čas…" -#: src/CollectionPage.vala:143 src/Resources.vala:320 ui/collection.ui:108 +#: src/CollectionPage.vala:143 src/Resources.vala:290 ui/collection.ui:108 #: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:361 msgid "Open With E_xternal Editor" msgstr "Otevřít v e_xterním editoru" -#: src/CollectionPage.vala:146 src/Resources.vala:322 ui/collection.ui:113 +#: src/CollectionPage.vala:146 src/Resources.vala:292 ui/collection.ui:113 #: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:366 msgid "Open With RA_W Editor" msgstr "Otevřít v editoru RA_W" -#: src/CollectionPage.vala:149 src/Resources.vala:168 +#: src/CollectionPage.vala:149 src/Resources.vala:138 msgid "_Play" msgstr "_Přehrát" @@ -2776,7 +2776,7 @@ msgstr[0] "Export fotografie/videa" msgstr[1] "Export fotografií/videí" msgstr[2] "Export fotografií/videí" -#: src/CollectionPage.vala:412 src/Dialogs.vala:59 src/PhotoPage.vala:2998 +#: src/CollectionPage.vala:412 src/Dialogs.vala:74 src/PhotoPage.vala:3021 msgid "Export Photo" msgid_plural "Export Photos" msgstr[0] "Export fotografie" @@ -2831,39 +2831,39 @@ msgstr "Transformují se barvy" msgid "Undoing Color Transformations" msgstr "Vrací se zpět transformace barev" -#: src/Commands.vala:1007 +#: src/Commands.vala:1006 msgid "Creating New Event" msgstr "Vytváří se nová událost" -#: src/Commands.vala:1008 +#: src/Commands.vala:1007 msgid "Removing Event" msgstr "Odstraňuje se událost" -#: src/Commands.vala:1017 +#: src/Commands.vala:1016 msgid "Moving Photos to New Event" msgstr "Přesouvá se fotografie do nové události" -#: src/Commands.vala:1018 +#: src/Commands.vala:1017 msgid "Setting Photos to Previous Event" msgstr "Nastavuje se fotografie na předchozí událost" -#: src/Commands.vala:1075 +#: src/Commands.vala:1074 msgid "Merging" msgstr "Spojuje se" -#: src/Commands.vala:1076 +#: src/Commands.vala:1075 msgid "Unmerging" msgstr "Ruší se spojení" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Duplicating photos" msgstr "Zdvojují se fotografie" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Removing duplicated photos" msgstr "Odstraňují se zdvojené fotografie" -#: src/Commands.vala:1108 +#: src/Commands.vala:1107 #, c-format msgid "Unable to duplicate one photo due to a file error" msgid_plural "Unable to duplicate %d photos due to file errors" @@ -2871,54 +2871,54 @@ msgstr[0] "Kvůli chybě souboru nelze zdvojit fotografii" msgstr[1] "Kvůli chybě souboru nelze zdvojit %d fotografie" msgstr[2] "Kvůli chybě souboru nelze zdvojit %d fotografií" -#: src/Commands.vala:1195 +#: src/Commands.vala:1194 msgid "Restoring previous rating" msgstr "Obnovuje se předchozí hodnocení" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Increasing ratings" msgstr "Zvyšuje se hodnocení" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Decreasing ratings" msgstr "Snižuje se hodnocení" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Setting RAW developer" msgstr "Nastavuje se vývojka RAW" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Restoring previous RAW developer" msgstr "Obnovuje se předchozí vývojka RAW" -#: src/Commands.vala:1257 +#: src/Commands.vala:1256 msgid "Set Developer" msgstr "Nastavit vývojku" -#: src/Commands.vala:1347 +#: src/Commands.vala:1346 msgid "Original photo could not be adjusted." msgstr "Originální fotka nemůže být upravována." -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Adjusting Date and Time" msgstr "Nastavuje se datum a čas" -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Undoing Date and Time Adjustment" msgstr "Vrací se zpět nastavení data a času" -#: src/Commands.vala:1399 +#: src/Commands.vala:1398 msgid "One original photo could not be adjusted." msgid_plural "The following original photos could not be adjusted." msgstr[0] "Jednu originální fotografii nebylo možné upravit." msgstr[1] "Následující originální fotografie nebylo možné upravit." msgstr[2] "Následující originální fotografie nebylo možné upravit." -#: src/Commands.vala:1401 src/Commands.vala:1425 +#: src/Commands.vala:1400 src/Commands.vala:1424 msgid "Time Adjustment Error" msgstr "Chyba při nastavování času" -#: src/Commands.vala:1423 +#: src/Commands.vala:1422 msgid "Time adjustments could not be undone on the following photo file." msgid_plural "" "Time adjustments could not be undone on the following photo files." @@ -2929,60 +2929,60 @@ msgstr[1] "" msgstr[2] "" "U následujících souborů s fotkou nebylo možné vrátit zpět nastavení času." -#: src/Commands.vala:1637 src/Commands.vala:1660 +#: src/Commands.vala:1636 src/Commands.vala:1659 msgid "Create Tag" msgstr "Vytvořit štítek" -#: src/Commands.vala:1695 +#: src/Commands.vala:1694 #, c-format msgid "Move Tag “%s”" msgstr "Přesunout štítek „%s“" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Move Photos to Trash" msgstr "Přesunout fotky do koše" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Restore Photos from Trash" msgstr "Obnovit fotky z koše" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Move the photos to the Shotwell trash" msgstr "Přesunout fotky do koše aplikace Shotwell" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Restore the photos back to the Shotwell library" msgstr "Obnovit fotky zpět do knihovny Shotwell" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Moving Photos to Trash" msgstr "Přesouvají se fotky do koše" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Restoring Photos From Trash" msgstr "Obnovují se fotky z koše" -#: src/Commands.vala:2453 +#: src/Commands.vala:2452 msgid "Flag selected photos" msgstr "Označit vybrané fotky" -#: src/Commands.vala:2454 +#: src/Commands.vala:2453 msgid "Unflag selected photos" msgstr "Zrušit označení vybraných fotek" -#: src/Commands.vala:2455 +#: src/Commands.vala:2454 msgid "Flagging selected photos" msgstr "Označují se vybrané fotky" -#: src/Commands.vala:2456 +#: src/Commands.vala:2455 msgid "Unflagging selected photos" msgstr "Ruší se označení vybraných fotek" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Flag" msgstr "Označit" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Unflag" msgstr "Zrušit označení" @@ -3020,7 +3020,7 @@ msgstr "" msgid "Database file:" msgstr "Databázový soubor:" -#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:782 +#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:783 msgid "_Import" msgstr "_Import" @@ -3101,10 +3101,11 @@ msgstr[0] "Tím odstraníte štítek „%s“ z jedné fotografie. Pokračovat?" msgstr[1] "Tím odstraníte štítek „%s“ ze %d fotografií. Pokračovat?" msgstr[2] "Tím odstraníte štítek „%s“ z %d fotografií. Pokračovat?" -#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:721 -#: src/Resources.vala:159 src/Resources.vala:362 src/Resources.vala:415 -#: src/Resources.vala:659 ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 -#: ui/trash.ui:216 ui/trash.ui:258 +#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:58 +#: src/Dialogs.vala:734 src/Resources.vala:129 src/Resources.vala:310 +#: src/Resources.vala:341 src/Resources.vala:394 src/Resources.vala:734 +#: ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 ui/trash.ui:216 +#: ui/trash.ui:258 msgid "_Delete" msgstr "S_mazat" @@ -3134,11 +3135,19 @@ msgstr[2] "" msgid "_Switch Developer" msgstr "_Přepnout vývojku" -#: src/Dialogs.vala:59 +#: src/Dialogs.vala:54 +#, c-format +msgid "This will remove the face “%s” from one photo. Continue?" +msgid_plural "This will remove the face “%s” from %d photos. Continue?" +msgstr[0] "Tím odstraníte obličej „%s“ z jedné fotografie. Pokračovat?" +msgstr[1] "Tím odstraníte obličej „%s“ ze %d fotografií. Pokračovat?" +msgstr[2] "Tím odstraníte obličej „%s“ z %d fotografií. Pokračovat?" + +#: src/Dialogs.vala:74 msgid "Export Video" msgstr "Export videa" -#: src/Dialogs.vala:84 +#: src/Dialogs.vala:99 msgid "Export Photos" msgstr "Export fotografií" @@ -3147,7 +3156,7 @@ msgstr "Export fotografií" #. if we can't copy an image over for editing in an external tool. #. Did we fail because we can't write to this directory? #. Yes - display an alternate error message here. -#: src/Dialogs.vala:112 +#: src/Dialogs.vala:127 #, c-format msgid "" "Shotwell couldn’t create a file for editing this photo because you do not " @@ -3156,7 +3165,7 @@ msgstr "" "Shotwell nemůže vytvořit soubor pro úpravy této fotografie, protože nemá " "oprávnění zapisovat do %s." -#: src/Dialogs.vala:121 +#: src/Dialogs.vala:136 msgid "" "Unable to export the following photo due to a file error.\n" "\n" @@ -3164,7 +3173,7 @@ msgstr "" "Nelze exportovat následující fotografii kvůli chybě souboru.\n" "\n" -#: src/Dialogs.vala:127 +#: src/Dialogs.vala:142 msgid "" "\n" "\n" @@ -3174,28 +3183,28 @@ msgstr "" "\n" "Chcete v exportu pokračovat?" -#: src/Dialogs.vala:128 +#: src/Dialogs.vala:143 msgid "Con_tinue" msgstr "Pokračova_t" -#: src/Dialogs.vala:139 +#: src/Dialogs.vala:153 msgid "Save Details…" msgstr "Uložit podrobnosti…" -#: src/Dialogs.vala:140 +#: src/Dialogs.vala:154 msgid "Save Details" msgstr "Uložit podrobnosti" -#: src/Dialogs.vala:155 +#: src/Dialogs.vala:169 #, c-format msgid "(and %d more)\n" msgstr "(a %d dalších)\n" -#: src/Dialogs.vala:208 +#: src/Dialogs.vala:222 msgid "Import Results Report" msgstr "Zpráva o výsledcích importu" -#: src/Dialogs.vala:212 +#: src/Dialogs.vala:226 #, c-format msgid "Attempted to import %d file." msgid_plural "Attempted to import %d files." @@ -3203,7 +3212,7 @@ msgstr[0] "Pokus o import %d souboru." msgstr[1] "Pokus o import %d souborů." msgstr[2] "Pokus o import %d souborů" -#: src/Dialogs.vala:215 +#: src/Dialogs.vala:229 #, c-format msgid "Of these, %d file was successfully imported." msgid_plural "Of these, %d files were successfully imported." @@ -3214,37 +3223,37 @@ msgstr[2] "Z toho bylo %d souborů úspěšně importováno." #. #. Duplicates #. -#: src/Dialogs.vala:227 +#: src/Dialogs.vala:241 msgid "Duplicate Photos/Videos Not Imported:" msgstr "Duplicitní fotografie/videa nejsou importovány:" -#: src/Dialogs.vala:231 +#: src/Dialogs.vala:245 msgid "duplicates existing media item" msgstr "Zduplikuje existující položky" #. #. Files Not Imported Due to Camera Errors #. -#: src/Dialogs.vala:242 +#: src/Dialogs.vala:256 msgid "Photos/Videos Not Imported Due to Camera Errors:" msgstr "Fotografie/videa nelze importovat kvůli chybě fotoaparátu:" -#: src/Dialogs.vala:245 src/Dialogs.vala:260 src/Dialogs.vala:275 -#: src/Dialogs.vala:291 src/Dialogs.vala:306 src/Dialogs.vala:320 +#: src/Dialogs.vala:259 src/Dialogs.vala:274 src/Dialogs.vala:289 +#: src/Dialogs.vala:305 src/Dialogs.vala:320 src/Dialogs.vala:334 msgid "error message:" msgstr "chybová zpráva:" #. #. Files Not Imported Because They Weren't Recognized as Photos or Videos #. -#: src/Dialogs.vala:256 +#: src/Dialogs.vala:270 msgid "Files Not Imported Because They Weren’t Recognized as Photos or Videos:" msgstr "Soubory nebyly importovány, protože nejde o fotografie nebo videa:" #. #. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands #. -#: src/Dialogs.vala:271 +#: src/Dialogs.vala:285 msgid "" "Photos/Videos Not Imported Because They Weren’t in a Format Shotwell " "Understands:" @@ -3255,7 +3264,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library #. -#: src/Dialogs.vala:286 +#: src/Dialogs.vala:300 msgid "" "Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into its " "Library:" @@ -3263,7 +3272,7 @@ msgstr "" "Fotografie/videa nelze importovat, protože Shotwell je nemůže zkopírovat do " "své knihovny:" -#: src/Dialogs.vala:290 +#: src/Dialogs.vala:304 #, c-format msgid "" "couldn’t copy %s\n" @@ -3275,18 +3284,18 @@ msgstr "" #. #. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt #. -#: src/Dialogs.vala:302 +#: src/Dialogs.vala:316 msgid "Photos/Videos Not Imported Because Files Are Corrupt:" msgstr "Fotografie/videa nelze importovat, protože soubory jsou poškozené:" #. #. Photos/Videos Not Imported for Other Reasons #. -#: src/Dialogs.vala:317 +#: src/Dialogs.vala:331 msgid "Photos/Videos Not Imported for Other Reasons:" msgstr "Fotografie/videa nelze importovat z jiných důvodů:" -#: src/Dialogs.vala:337 +#: src/Dialogs.vala:351 #, c-format msgid "1 duplicate photo was not imported:\n" msgid_plural "%d duplicate photos were not imported:\n" @@ -3294,7 +3303,7 @@ msgstr[0] "Jedna duplicitní fotografie nebyla naimportována:\n" msgstr[1] "%d duplicitní fotografie nebyly naimportovány:\n" msgstr[2] "%d duplicitních fotografií nebylo naimportováno:\n" -#: src/Dialogs.vala:340 +#: src/Dialogs.vala:354 #, c-format msgid "1 duplicate video was not imported:\n" msgid_plural "%d duplicate videos were not imported:\n" @@ -3302,7 +3311,7 @@ msgstr[0] "Jedno duplicitní video nebylo naimportováno:\n" msgstr[1] "%d duplicitní videa nebyla naimportováno:\n" msgstr[2] "%d duplicitních videí nebylo naimportováno:\n" -#: src/Dialogs.vala:343 +#: src/Dialogs.vala:357 #, c-format msgid "1 duplicate photo/video was not imported:\n" msgid_plural "%d duplicate photos/videos were not imported:\n" @@ -3310,7 +3319,7 @@ msgstr[0] "Jedna duplicitní fotografie/video nebylo naimportováno:\n" msgstr[1] "%d duplicitní fotografie/videa nebyly naimportovány:\n" msgstr[2] "%d duplicitní fotografií/videí nebylo naimportováno:\n" -#: src/Dialogs.vala:357 +#: src/Dialogs.vala:371 #, c-format msgid "1 photo failed to import due to a file or hardware error:\n" msgid_plural "%d photos failed to import due to a file or hardware error:\n" @@ -3319,7 +3328,7 @@ msgstr[0] "" msgstr[1] "U %d fotografií selhal import kvůli chybě souboru nebo hardwaru:\n" msgstr[2] "U %d fotografií selhal import kvůli chybě souboru nebo hardwaru:\n" -#: src/Dialogs.vala:360 +#: src/Dialogs.vala:374 #, c-format msgid "1 video failed to import due to a file or hardware error:\n" msgid_plural "%d videos failed to import due to a file or hardware error:\n" @@ -3327,7 +3336,7 @@ msgstr[0] "U jednoho videa selhal import kvůli chybě souboru nebo hardwaru:\n" msgstr[1] "U %d videí selhal import kvůli chybě souboru nebo hardwaru:\n" msgstr[2] "U %d videí selhal import kvůli chybě souboru nebo hardwaru:\n" -#: src/Dialogs.vala:363 +#: src/Dialogs.vala:377 #, c-format msgid "1 photo/video failed to import due to a file or hardware error:\n" msgid_plural "" @@ -3339,7 +3348,7 @@ msgstr[1] "" msgstr[2] "" "U %d fotografií/videí selhal import kvůli chybě souboru nebo hardwaru:\n" -#: src/Dialogs.vala:366 +#: src/Dialogs.vala:380 #, c-format msgid "1 file failed to import due to a file or hardware error:\n" msgid_plural "%d files failed to import due to a file or hardware error:\n" @@ -3348,7 +3357,7 @@ msgstr[0] "" msgstr[1] "U %d souborů selhal import kvůli chybě souboru nebo hardwaru:\n" msgstr[2] "U %d souborů selhal import kvůli chybě souboru nebo hardwaru:\n" -#: src/Dialogs.vala:380 +#: src/Dialogs.vala:394 #, c-format msgid "" "1 photo failed to import because the photo library folder was not writable:\n" @@ -3362,7 +3371,7 @@ msgstr[1] "" msgstr[2] "" "U %d fotografií selhal import, protože složka knihovny neumožňila zápis:\n" -#: src/Dialogs.vala:383 +#: src/Dialogs.vala:397 #, c-format msgid "" "1 video failed to import because the photo library folder was not writable:\n" @@ -3376,7 +3385,7 @@ msgstr[1] "" msgstr[2] "" "U %d videí selhal import, protože složka knihovny neumožňila zápis:\n" -#: src/Dialogs.vala:386 +#: src/Dialogs.vala:400 #, c-format msgid "" "1 photo/video failed to import because the photo library folder was not " @@ -3394,7 +3403,7 @@ msgstr[2] "" "U %d fotografií/videí selhal import, protože složka knihovny neumožňila " "zápis:\n" -#: src/Dialogs.vala:389 +#: src/Dialogs.vala:403 #, c-format msgid "" "1 file failed to import because the photo library folder was not writable:\n" @@ -3408,7 +3417,7 @@ msgstr[1] "" msgstr[2] "" "U %d souborů selhal import, protože složka knihovny neumožňila zápis:\n" -#: src/Dialogs.vala:403 +#: src/Dialogs.vala:417 #, c-format msgid "1 photo failed to import due to a camera error:\n" msgid_plural "%d photos failed to import due to a camera error:\n" @@ -3416,7 +3425,7 @@ msgstr[0] "U jedné fotografie selhal import kvůli chybě fotoaparátu:\n" msgstr[1] "U %d fotografií selhal import kvůli chybě fotoaparátu:\n" msgstr[2] "U %d fotografií selhal import kvůli chybě fotoaparátu:\n" -#: src/Dialogs.vala:406 +#: src/Dialogs.vala:420 #, c-format msgid "1 video failed to import due to a camera error:\n" msgid_plural "%d videos failed to import due to a camera error:\n" @@ -3424,7 +3433,7 @@ msgstr[0] "U jednoho videa selhal import kvůli chybě fotoaparátu:\n" msgstr[1] "U %d videí selhal import kvůli chybě fotoaparátu:\n" msgstr[2] "U %d videí selhal import kvůli chybě fotoaparátu:\n" -#: src/Dialogs.vala:409 +#: src/Dialogs.vala:423 #, c-format msgid "1 photo/video failed to import due to a camera error:\n" msgid_plural "%d photos/videos failed to import due to a camera error:\n" @@ -3432,7 +3441,7 @@ msgstr[0] "U jedné fotografie/videa selhal import kvůli chybě fotoaparátu:\n msgstr[1] "U %d fotografií/videí selhal import kvůli chybě fotoaparátu:\n" msgstr[2] "U %d fotografií/videí selhal import kvůli chybě fotoaparátu:\n" -#: src/Dialogs.vala:412 +#: src/Dialogs.vala:426 #, c-format msgid "1 file failed to import due to a camera error:\n" msgid_plural "%d files failed to import due to a camera error:\n" @@ -3440,7 +3449,7 @@ msgstr[0] "U jednoho souboru selhal import kvůli chybě fotoaparátu:\n" msgstr[1] "U %d souborů selhal import kvůli chybě fotoaparátu:\n" msgstr[2] "U %d souborů selhal import kvůli chybě fotoaparátu:\n" -#: src/Dialogs.vala:426 +#: src/Dialogs.vala:440 #, c-format msgid "1 photo failed to import because it was corrupt:\n" msgid_plural "%d photos failed to import because they were corrupt:\n" @@ -3448,7 +3457,7 @@ msgstr[0] "U jedné fotografie selhal import protože byla poškozená:\n" msgstr[1] "U %d fotografií selhal import protože byly poškozené:\n" msgstr[2] "U %d fotografií selhal import protože byly poškozené:\n" -#: src/Dialogs.vala:429 +#: src/Dialogs.vala:443 #, c-format msgid "1 video failed to import because it was corrupt:\n" msgid_plural "%d videos failed to import because they were corrupt:\n" @@ -3456,7 +3465,7 @@ msgstr[0] "U jednoho videa selhal import protože bylo poškozené:\n" msgstr[1] "U %d videí selhal import protože byly poškozená:\n" msgstr[2] "U %d videí selhal import protože byly poškozená:\n" -#: src/Dialogs.vala:432 +#: src/Dialogs.vala:446 #, c-format msgid "1 photo/video failed to import because it was corrupt:\n" msgid_plural "%d photos/videos failed to import because they were corrupt:\n" @@ -3464,7 +3473,7 @@ msgstr[0] "U jedné fotografie/videa selhal import protože bylo poškozené:\n" msgstr[1] "U %d fotografií/videí selhal import protože byly poškozené:\n" msgstr[2] "U %d fotografií/videí selhal import protože byly poškozené:\n" -#: src/Dialogs.vala:435 +#: src/Dialogs.vala:449 #, c-format msgid "1 file failed to import because it was corrupt:\n" msgid_plural "%d files failed to import because it was corrupt:\n" @@ -3476,7 +3485,7 @@ msgstr[2] "U %d souborů selhal import protože byly poškozené:\n" #. standard container formats are supported, it's just that the streams in them #. might or might not be interpretable), so this message does not need to be #. media specific -#: src/Dialogs.vala:452 +#: src/Dialogs.vala:466 #, c-format msgid "1 unsupported photo skipped:\n" msgid_plural "%d unsupported photos skipped:\n" @@ -3486,7 +3495,7 @@ msgstr[2] "%d nepodporovaných fotografií bylo vynecháno:\n" #. we have no notion of "non-video" video files right now in Shotwell, so this #. message doesn't need to be media specific -#: src/Dialogs.vala:467 +#: src/Dialogs.vala:481 #, c-format msgid "1 non-image file skipped.\n" msgid_plural "%d non-image files skipped.\n" @@ -3494,7 +3503,7 @@ msgstr[0] "Jeden neobrázkový soubor byl vynechán.\n" msgstr[1] "%d neobrázkové soubory byly vynechány.\n" msgstr[2] "%d neobrázkových souborů bylo vynecháno.\n" -#: src/Dialogs.vala:478 +#: src/Dialogs.vala:492 #, c-format msgid "1 photo skipped due to user cancel:\n" msgid_plural "%d photos skipped due to user cancel:\n" @@ -3503,7 +3512,7 @@ msgstr[0] "" msgstr[1] "%d fotografie byly vynechány kvůli zrušení ze strany uživatele:\n" msgstr[2] "%d fotografií bylo vynecháno kvůli zrušení ze strany uživatele:\n" -#: src/Dialogs.vala:481 +#: src/Dialogs.vala:495 #, c-format msgid "1 video skipped due to user cancel:\n" msgid_plural "%d videos skipped due to user cancel:\n" @@ -3511,7 +3520,7 @@ msgstr[0] "Jedno video bylo vynecháno kvůli zrušení ze strany uživatele:\n" msgstr[1] "%d videa byla vynechána kvůli zrušení ze strany uživatele:\n" msgstr[2] "%d videí bylo vynecháno kvůli zrušení ze strany uživatele:\n" -#: src/Dialogs.vala:484 +#: src/Dialogs.vala:498 #, c-format msgid "1 photo/video skipped due to user cancel:\n" msgid_plural "%d photos/videos skipped due to user cancel:\n" @@ -3522,7 +3531,7 @@ msgstr[1] "" msgstr[2] "" "%d fotografií/videí bylo vynecháno kvůli zrušení ze strany uživatele:\n" -#: src/Dialogs.vala:487 +#: src/Dialogs.vala:501 #, c-format msgid "1 file skipped due to user cancel:\n" msgid_plural "%d file skipped due to user cancel:\n" @@ -3530,7 +3539,7 @@ msgstr[0] "Jeden soubor byl vynechán kvůli zrušení ze strany uživatele:\n" msgstr[1] "%d soubory byly vynechány kvůli zrušení ze strany uživatele:\n" msgstr[2] "%d souborů bylo vynecháno kvůli zrušení ze strany uživatele:\n" -#: src/Dialogs.vala:501 +#: src/Dialogs.vala:515 #, c-format msgid "1 photo successfully imported.\n" msgid_plural "%d photos successfully imported.\n" @@ -3538,7 +3547,7 @@ msgstr[0] "Jedna fotografie byla úspěšně naimportována.\n" msgstr[1] "%d fotografie byly úspěšně naimportovány.\n" msgstr[2] "%d fotografií bylo úspěšně naimportováno.\n" -#: src/Dialogs.vala:504 +#: src/Dialogs.vala:518 #, c-format msgid "1 video successfully imported.\n" msgid_plural "%d videos successfully imported.\n" @@ -3546,7 +3555,7 @@ msgstr[0] "Jedno video bylo úspěšně naimportováno.\n" msgstr[1] "%d videa byla úspěšně naimportována.\n" msgstr[2] "%d videí bylo úspěšně naimportováno.\n" -#: src/Dialogs.vala:507 +#: src/Dialogs.vala:521 #, c-format msgid "1 photo/video successfully imported.\n" msgid_plural "%d photos/videos successfully imported.\n" @@ -3556,65 +3565,65 @@ msgstr[2] "%d fotografií/videí bylo úspěšně naimportováno.\n" #. if no media items were imported at all (i.e. an empty directory attempted), need to at least #. report that nothing was imported -#: src/Dialogs.vala:523 +#: src/Dialogs.vala:537 msgid "No photos or videos imported.\n" msgstr "Žádné fotografie ani videa nebyly naimportovány.\n" -#: src/Dialogs.vala:530 src/Dialogs.vala:549 +#: src/Dialogs.vala:544 src/Dialogs.vala:563 msgid "Import Complete" msgstr "Import dokončen" -#: src/Dialogs.vala:650 src/Resources.vala:232 +#: src/Dialogs.vala:663 src/Resources.vala:202 msgid "Rename Event" msgstr "Přejmenovat událost" -#: src/Dialogs.vala:650 +#: src/Dialogs.vala:663 msgid "Name:" msgstr "Název:" #. Dialog title -#: src/Dialogs.vala:661 +#: src/Dialogs.vala:674 msgctxt "Dialog Title" msgid "Edit Title" msgstr "Úprava názvu" -#: src/Dialogs.vala:662 src/Properties.vala:343 +#: src/Dialogs.vala:675 src/Properties.vala:346 msgid "Title:" msgstr "Název:" #. Dialog title -#: src/Dialogs.vala:678 src/Resources.vala:308 +#: src/Dialogs.vala:691 src/Resources.vala:278 msgid "Edit Event Comment" msgstr "Úprava komentáře k události" -#: src/Dialogs.vala:679 +#: src/Dialogs.vala:692 msgid "Edit Photo/Video Comment" msgstr "Úprava komentáře k fotografii/videu" -#: src/Dialogs.vala:680 src/Properties.vala:631 +#: src/Dialogs.vala:693 src/Properties.vala:645 msgid "Comment:" msgstr "Komentář:" -#: src/Dialogs.vala:696 +#: src/Dialogs.vala:709 msgid "Remove and _Trash File" msgid_plural "Remove and _Trash Files" msgstr[0] "Soubor odstranit a přesunou_t do koše" msgstr[1] "Soubory odstranit a přesunou_t do koše" msgstr[2] "Soubory odstranit a přesunou_t do koše" -#: src/Dialogs.vala:700 +#: src/Dialogs.vala:713 msgid "_Remove From Library" msgstr "Odst_ranit z knihovny" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edit?" msgstr "Vrátit zpět externí úpravu?" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edits?" msgstr "Vrátit zpět externí úpravy?" -#: src/Dialogs.vala:745 +#: src/Dialogs.vala:758 #, c-format msgid "This will destroy all changes made to the external file. Continue?" msgid_plural "" @@ -3626,15 +3635,15 @@ msgstr[1] "" msgstr[2] "" "Tím se odstraní všechny změny provedené v %d externích souborech. Pokračovat?" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edit" msgstr "_Vrátit zpět externí úpravu" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edits" msgstr "_Vrátit zpět externí úpravy" -#: src/Dialogs.vala:770 +#: src/Dialogs.vala:783 #, c-format msgid "This will remove the photo from the library. Continue?" msgid_plural "This will remove %d photos from the library. Continue?" @@ -3642,19 +3651,19 @@ msgstr[0] "Tím se fotka odebere z knihovny. Pokračovat?" msgstr[1] "Tím se odeberou %d fotky z knihovny. Pokračovat?" msgstr[2] "Tím se odebere %d fotek z knihovny. Pokračovat?" -#: src/Dialogs.vala:777 src/Resources.vala:174 +#: src/Dialogs.vala:790 src/Resources.vala:144 msgid "_Remove" msgstr "Odeb_rat" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photo From Library" msgstr "Odstranit fotografii z knihovny" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photos From Library" msgstr "Odstranit fotografie z knihovny" -#: src/Dialogs.vala:798 +#: src/Dialogs.vala:811 #, c-format msgid "" "\n" @@ -3677,13 +3686,13 @@ msgstr[2] "" "\n" "A %d dalších." -#: src/Dialogs.vala:822 src/Dialogs.vala:849 +#: src/Dialogs.vala:835 src/Dialogs.vala:862 msgid "Tags (separated by commas):" msgstr "Štítky (oddělené čárkou):" #. This function is used to determine whether or not files should be copied or linked when imported. #. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. -#: src/Dialogs.vala:908 +#: src/Dialogs.vala:921 msgid "" "Shotwell can copy the photos into your library folder or it can import them " "without copying." @@ -3691,31 +3700,31 @@ msgstr "" "Shotwell může zkopírovat fotky do knihovny nebo je může importovat bez " "kopírování." -#: src/Dialogs.vala:913 +#: src/Dialogs.vala:926 msgid "Co_py Photos" msgstr "Ko_pírovat fotky" -#: src/Dialogs.vala:914 +#: src/Dialogs.vala:927 msgid "_Import in Place" msgstr "_Importovat bez kopírování" -#: src/Dialogs.vala:915 +#: src/Dialogs.vala:928 msgid "Import to Library" msgstr "Import do knihovny" -#: src/Dialogs.vala:925 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:938 src/PhotoPage.vala:2897 msgid "Remove From Library" msgstr "Odstranění z knihovny" -#: src/Dialogs.vala:926 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:939 src/PhotoPage.vala:2897 msgid "Removing Photo From Library" msgstr "Odstraňuje se fotografie z knihovny" -#: src/Dialogs.vala:926 +#: src/Dialogs.vala:939 msgid "Removing Photos From Library" msgstr "Odstraňují se fotografie z knihovny" -#: src/Dialogs.vala:940 +#: src/Dialogs.vala:953 #, c-format msgid "" "This will remove the photo/video from your Shotwell library. Would you also " @@ -3743,7 +3752,7 @@ msgstr[2] "" "\n" "Tuto operaci nelze vrátit zpět." -#: src/Dialogs.vala:944 +#: src/Dialogs.vala:957 #, c-format msgid "" "This will remove the video from your Shotwell library. Would you also like " @@ -3771,7 +3780,7 @@ msgstr[2] "" "\n" "Tuto operaci nelze vrátit zpět." -#: src/Dialogs.vala:948 +#: src/Dialogs.vala:961 #, c-format msgid "" "This will remove the photo from your Shotwell library. Would you also like " @@ -3799,7 +3808,7 @@ msgstr[2] "" "\n" "Tuto operaci nelze vrátit zpět." -#: src/Dialogs.vala:980 +#: src/Dialogs.vala:993 #, c-format msgid "" "The photo or video cannot be moved to your desktop trash. Delete this file?" @@ -3812,7 +3821,7 @@ msgstr[2] "" "%d fotografií/videí nelze přesunout do koše. Mají se soubory smazat?" #. Alert the user that the files were not removed. -#: src/Dialogs.vala:997 +#: src/Dialogs.vala:1010 #, c-format msgid "The photo or video cannot be deleted." msgid_plural "%d photos/videos cannot be deleted." @@ -3850,7 +3859,7 @@ msgstr "%s nepodporuje formát %s." msgid "Unable open photo %s. Sorry." msgstr "Nelze otevřít fotografii %s." -#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:176 ui/direct.ui:8 +#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:146 ui/direct.ui:8 #: ui/textentrydialog.ui:33 msgid "_Save" msgstr "_Uložit" @@ -4010,35 +4019,35 @@ msgstr "Exportovat _metadata:" #. We're installed system-wide, so use the system help. #. We're being run from the build directory; we'll have to handle clicks to this #. link manually ourselves, due to a limitation of help: URIs. -#: src/dialogs/Preferences.vala:115 src/dialogs/Preferences.vala:119 +#: src/dialogs/Preferences.vala:108 src/dialogs/Preferences.vala:112 msgid "(Help)" msgstr "(nápověda)" -#: src/dialogs/Preferences.vala:123 +#: src/dialogs/Preferences.vala:116 #, c-format msgid "Year%sMonth%sDay" msgstr "rok%směsíc%sden" -#: src/dialogs/Preferences.vala:125 +#: src/dialogs/Preferences.vala:118 #, c-format msgid "Year%sMonth" msgstr "rok%směsíc" -#: src/dialogs/Preferences.vala:127 +#: src/dialogs/Preferences.vala:120 #, c-format msgid "Year%sMonth-Day" msgstr "rok%směsíc-den" -#: src/dialogs/Preferences.vala:129 +#: src/dialogs/Preferences.vala:122 msgid "Year-Month-Day" msgstr "rok-měsíc-den" -#: src/dialogs/Preferences.vala:130 src/editing_tools/EditingTools.vala:760 +#: src/dialogs/Preferences.vala:123 src/editing_tools/EditingTools.vala:760 msgid "Custom" msgstr "Vlastní" #. Invalid pattern. -#: src/dialogs/Preferences.vala:369 +#: src/dialogs/Preferences.vala:351 msgid "Invalid pattern" msgstr "Neplatný vzor" @@ -4230,7 +4239,7 @@ msgstr "30 × 40 cm" msgid "A3 (297 × 420 mm)" msgstr "A3 (297 × 420 mm)" -#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:398 +#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:401 msgid "Size:" msgstr "Velikost:" @@ -4248,8 +4257,8 @@ msgid "_Reset" msgstr "_Původní" #. fit both on the top line, emit and move on -#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:439 -#: src/Properties.vala:443 src/Properties.vala:450 +#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:442 +#: src/Properties.vala:446 src/Properties.vala:453 msgid "Exposure:" msgstr "Expozice:" @@ -4323,7 +4332,7 @@ msgstr "Zvýšení kontrastu" msgid "Angle:" msgstr "Úhel:" -#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:203 +#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:173 #: ui/direct.ui:144 ui/photo.ui:233 msgid "_Straighten" msgstr "_Vyrovnat" @@ -4336,7 +4345,7 @@ msgstr[0] "%d fotka/video" msgstr[1] "%d fotky/videa" msgstr[2] "%d fotek/videí" -#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:358 +#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:361 #, c-format msgid "%d Video" msgid_plural "%d Videos" @@ -4344,7 +4353,7 @@ msgstr[0] "%d video" msgstr[1] "%d videa" msgstr[2] "%d videí" -#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:356 +#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:359 #, c-format msgid "%d Photo" msgid_plural "%d Photos" @@ -4424,6 +4433,69 @@ msgstr "Přepsat _vše" msgid "Export" msgstr "Export" +#: src/faces/FacesBranch.vala:89 src/Resources.vala:305 src/Resources.vala:306 +#: ui/faces.ui:403 +msgid "Faces" +msgstr "Obličeje" + +#: src/faces/FacesTool.vala:115 +msgid "Detect faces…" +msgstr "Vyhledat obličeje…" + +#: src/faces/FacesTool.vala:140 +msgid "Detect faces on this photo" +msgstr "Vyhledat v této fotografii obličeje" + +#: src/faces/FacesTool.vala:142 +msgid "Cancel face detection" +msgstr "Zrušit vyhledávání obličejů" + +#: src/faces/FacesTool.vala:146 +msgid "Close the Faces tool without saving changes" +msgstr "Zavřít nástroj pro vyhledávání obličejů bez uložení změň" + +#: src/faces/FacesTool.vala:153 src/faces/FacesTool.vala:185 +msgid "Click and drag to tag a face" +msgstr "Přetažením můžete obličej oštítkovat" + +#: src/faces/FacesTool.vala:180 +#, c-format +msgid "Click to edit face %s" +msgstr "Kliknutím můžete obličej %s upravit" + +#: src/faces/FacesTool.vala:189 +msgid "Stop dragging to add your face and name it." +msgstr "Když chcete přidat obličej a pojmenovat jej, ukončete přetahování." + +#: src/faces/FacesTool.vala:193 +msgid "Type a name for this face, then press Enter" +msgstr "Napište jméno k tomuto obličeji a zmáčkněte Enter" + +#: src/faces/FacesTool.vala:197 +msgid "Move or modify the face shape or name and press Enter" +msgstr "" +"Posuňte nebo upravte obrys obličeje nebo přiřazené jméno a zmáčkněte Enter" + +#: src/faces/FacesTool.vala:201 +msgid "Detecting faces" +msgstr "Rozpoznávají se obličeje" + +#: src/faces/FacesTool.vala:212 +msgid "If you don’t set the name of unknown faces they won’t be saved." +msgstr "Pokud k neznámým obličejům nepřiřadíte jméno, nebudou se ukládat." + +#: src/faces/FacesTool.vala:233 +msgid "Save changes and close the Faces tool" +msgstr "Uložit změny a zavřít nástroj pro vyhledávání obličejů" + +#: src/faces/FacesTool.vala:235 +msgid "No changes to save" +msgstr "Žádné změny k uložení" + +#: src/faces/FacesTool.vala:956 +msgid "Error trying to spawn face detection program:\n" +msgstr "Chyba při pokusu spustit program pro vyhledávání obličejů:\n" + #: src/folders/FoldersBranch.vala:144 msgid "Folders" msgstr "Složky" @@ -4432,8 +4504,16 @@ msgstr "Složky" msgid "Browse the library’s folder structure" msgstr "Procházet strukturu složek knihovny" -#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1098 -#: src/SearchFilter.vala:1099 +#: src/import-roll/ImportRollBranch.vala:44 +msgid "Imports" +msgstr "Importy" + +#: src/import-roll/ImportRollBranch.vala:44 +msgid "Browse the library’s import history" +msgstr "Procházet historii importů do knihovny" + +#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1124 +#: src/SearchFilter.vala:1125 msgid "Flagged" msgstr "Označeno" @@ -4455,7 +4535,7 @@ msgid "Last Import" msgstr "Poslední import" #: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 -#: ui/preferences_dialog.ui:512 +#: ui/preferences_dialog.ui:465 msgid "Library" msgstr "Knihovna" @@ -4463,27 +4543,27 @@ msgstr "Knihovna" msgid "Organize and browse your photos" msgstr "Roztřídit a procházet své fotografie" -#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1079 +#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1105 msgid "Photos" msgstr "Fotografie" -#: src/library/LibraryWindow.vala:508 +#: src/library/LibraryWindow.vala:526 msgid "Import From Folder" msgstr "Import ze složky" -#: src/library/LibraryWindow.vala:515 +#: src/library/LibraryWindow.vala:533 msgid "Recurse Into Subfolders" msgstr "Zanořovat se do podsložek" -#: src/library/LibraryWindow.vala:583 ui/trash.ui:288 +#: src/library/LibraryWindow.vala:601 ui/trash.ui:288 msgid "Empty Trash" msgstr "Vyprázdnění koše" -#: src/library/LibraryWindow.vala:583 +#: src/library/LibraryWindow.vala:601 msgid "Emptying Trash…" msgstr "Vyprazdňuje se koš…" -#: src/library/LibraryWindow.vala:779 +#: src/library/LibraryWindow.vala:780 #, c-format msgid "" "Shotwell is configured to import photos to your home directory.\n" @@ -4495,33 +4575,33 @@ msgstr "" "Doporučujeme to v Upravit %s Předvolby změnit.\n" "Chcete pokračovat v importu fotografií?" -#: src/library/LibraryWindow.vala:782 ui/preferences_dialog.ui:142 +#: src/library/LibraryWindow.vala:783 ui/preferences_dialog.ui:86 msgid "Library Location" msgstr "Umístění knihovny" #. TODO: Specify which directory/file. -#: src/library/LibraryWindow.vala:795 +#: src/library/LibraryWindow.vala:796 msgid "Photos cannot be imported from this directory." msgstr "Z této složky nemohou být fotografie importovány." -#: src/library/LibraryWindow.vala:1075 +#: src/library/LibraryWindow.vala:1076 #, c-format msgid "%s (%d%%)" msgstr "%s (%d %%)" -#: src/library/LibraryWindow.vala:1119 src/library/LibraryWindow.vala:1130 +#: src/library/LibraryWindow.vala:1120 src/library/LibraryWindow.vala:1131 msgid "Updating library…" msgstr "Aktualizuje se knihovna…" -#: src/library/LibraryWindow.vala:1136 +#: src/library/LibraryWindow.vala:1137 msgid "Preparing to auto-import photos…" msgstr "Připravuje se automatický import fotografií…" -#: src/library/LibraryWindow.vala:1141 +#: src/library/LibraryWindow.vala:1142 msgid "Auto-importing photos…" msgstr "Provádí se automatický import fotografií…" -#: src/library/LibraryWindow.vala:1149 +#: src/library/LibraryWindow.vala:1150 msgid "Writing metadata to files…" msgstr "Zapisují se metadata do souborů…" @@ -4541,7 +4621,7 @@ msgstr "Koš" msgid "Trash is empty" msgstr "Koš je prázdný" -#: src/library/TrashPage.vala:110 +#: src/library/TrashPage.vala:110 ui/faces.ui:469 msgid "Delete" msgstr "Smazání" @@ -4588,40 +4668,40 @@ msgstr "" msgid "Unknown error attempting to verify Shotwell’s database: %s" msgstr "Neznámá chyba při přístupu k databázi Shotwell: %s" -#: src/main.vala:104 +#: src/main.vala:108 msgid "Loading Shotwell" msgstr "Načítá se Shotwell" -#: src/main.vala:303 +#: src/main.vala:320 msgid "Path to Shotwell’s private data" msgstr "Cesta k soukromým datům aplikace Shotwell" -#: src/main.vala:303 +#: src/main.vala:320 msgid "DIRECTORY" msgstr "SLOŽKA" -#: src/main.vala:307 +#: src/main.vala:324 msgid "Do not monitor library directory at runtime for changes" msgstr "Nesledovat průběžné změny ve složce s knihovnou" -#: src/main.vala:311 +#: src/main.vala:328 msgid "Don’t display startup progress meter" msgstr "Při spuštění nezobrazovat ukazatel průběhu" -#: src/main.vala:315 +#: src/main.vala:332 msgid "Show the application’s version" msgstr "Zobrazit verzi aplikace" -#: src/main.vala:319 +#: src/main.vala:336 msgid "Start the application in fullscreen mode" msgstr "Spustit aplikaci v režimu celé obrazovky" #. init GTK (valac has already called g_threads_init()) -#: src/main.vala:356 +#: src/main.vala:373 msgid "[FILE]" msgstr "[SOUBOR]" -#: src/main.vala:360 +#: src/main.vala:380 #, c-format msgid "Run “%s --help” to see a full list of available command line options.\n" msgstr "" @@ -4632,11 +4712,11 @@ msgstr "" msgid "Unable to process monitoring updates: %s" msgstr "Nelze sledovat změny: %s" -#: src/MediaPage.vala:158 +#: src/MediaPage.vala:157 msgid "Adjust the size of the thumbnails" msgstr "Nastavit velikost náhledů" -#: src/MediaPage.vala:502 +#: src/MediaPage.vala:500 #, c-format msgid "" "Shotwell was unable to play the selected video:\n" @@ -4645,35 +4725,35 @@ msgstr "" "Nelze přehrát vybrané video:\n" "%s" -#: src/Page.vala:1327 +#: src/Page.vala:1324 msgid "No photos/videos" msgstr "Žádné fotografie/videa" -#: src/Page.vala:1331 +#: src/Page.vala:1328 msgid "No photos/videos found which match the current filter" msgstr "" "Nebyly nalezeny žádné fotografie/videa, které by vyhovovaly aktuálnímu filtru" -#: src/Page.vala:2644 +#: src/Page.vala:2641 msgid "Photos cannot be exported to this directory." msgstr "Fotografie nelze exportovat do této složky." #. previous button -#: src/PhotoPage.vala:538 +#: src/PhotoPage.vala:550 msgid "Previous photo" msgstr "Předchozí fotografie" #. next button -#: src/PhotoPage.vala:544 +#: src/PhotoPage.vala:556 msgid "Next photo" msgstr "Následující fotografie" -#: src/PhotoPage.vala:1850 +#: src/PhotoPage.vala:1862 #, c-format msgid "Photo source file missing: %s" msgstr "Chybí zdrojový soubor s fotografií: %s" -#: src/PhotoPage.vala:3018 +#: src/PhotoPage.vala:3041 #, c-format msgid "Unable to export %s: %s" msgstr "Nelze exportovat %s: %s" @@ -4682,6 +4762,10 @@ msgstr "Nelze exportovat %s: %s" msgid "BMP" msgstr "BMP" +#: src/photos/GifSupport.vala:32 +msgid "GIF" +msgstr "GIF" + #: src/photos/JfifSupport.vala:84 msgid "JPEG" msgstr "JPEG" @@ -4769,19 +4853,19 @@ msgstr "" "\n" "%s" -#: src/Properties.vala:87 +#: src/Properties.vala:97 msgid "Today" msgstr "Dnes" -#: src/Properties.vala:89 +#: src/Properties.vala:99 msgid "Yesterday" msgstr "Včera" -#: src/Properties.vala:346 +#: src/Properties.vala:349 msgid "Items:" msgstr "Položky:" -#: src/Properties.vala:349 +#: src/Properties.vala:352 #, c-format msgid "%d Event" msgid_plural "%d Events" @@ -4790,107 +4874,103 @@ msgstr[1] "%d události" msgstr[2] "%d událostí" #. display only one date if start and end are the same -#: src/Properties.vala:380 +#: src/Properties.vala:383 msgid "Date:" msgstr "Datum:" #. display only one time if start and end are the same -#: src/Properties.vala:384 +#: src/Properties.vala:387 msgid "Time:" msgstr "Čas:" #. display time range #. display date range -#: src/Properties.vala:387 src/Properties.vala:392 +#: src/Properties.vala:390 src/Properties.vala:395 msgid "From:" msgstr "Od:" -#: src/Properties.vala:388 src/Properties.vala:393 +#: src/Properties.vala:391 src/Properties.vala:396 msgid "To:" msgstr "Do:" -#: src/Properties.vala:407 +#: src/Properties.vala:410 msgid "Duration:" msgstr "Délka:" -#: src/Properties.vala:407 +#: src/Properties.vala:410 #, c-format msgid "%.1f seconds" msgstr "%.1f sekund" -#: src/Properties.vala:411 +#: src/Properties.vala:414 msgid "Developer:" msgstr "Vývojka:" #. nothing special to be done for now for Events -#: src/Properties.vala:586 +#: src/Properties.vala:592 msgid "Location:" msgstr "Místo:" -#: src/Properties.vala:589 +#: src/Properties.vala:595 msgid "File size:" msgstr "Velikost souboru:" -#: src/Properties.vala:593 +#: src/Properties.vala:599 msgid "Current Development:" msgstr "Aktuální vývojka:" -#: src/Properties.vala:595 +#: src/Properties.vala:601 msgid "Original dimensions:" msgstr "Původní velikost:" -#: src/Properties.vala:598 +#: src/Properties.vala:604 msgid "Camera make:" msgstr "Výrobce fotoaparátu:" -#: src/Properties.vala:601 +#: src/Properties.vala:607 msgid "Camera model:" msgstr "Model fotoaparátu:" -#: src/Properties.vala:604 +#: src/Properties.vala:610 msgid "Flash:" msgstr "Blesk:" -#: src/Properties.vala:606 +#: src/Properties.vala:612 msgid "Focal length:" msgstr "Ohnisko:" -#: src/Properties.vala:609 +#: src/Properties.vala:615 msgid "Exposure date:" msgstr "Datum expozice:" -#: src/Properties.vala:612 +#: src/Properties.vala:618 msgid "Exposure time:" msgstr "Čas expozice:" -#: src/Properties.vala:615 +#: src/Properties.vala:621 msgid "Exposure bias:" msgstr "Expoziční korekce:" -#: src/Properties.vala:617 +#: src/Properties.vala:631 msgid "GPS latitude:" msgstr "Zeměpisná šířka:" -#: src/Properties.vala:620 +#: src/Properties.vala:634 msgid "GPS longitude:" msgstr "Zeměpisná délka:" -#: src/Properties.vala:623 +#: src/Properties.vala:637 msgid "Artist:" msgstr "Umělec:" -#: src/Properties.vala:625 +#: src/Properties.vala:639 msgid "Copyright:" msgstr "Copyright:" -#: src/Properties.vala:627 +#: src/Properties.vala:641 msgid "Software:" msgstr "Software:" -#: src/Properties.vala:642 -msgid "Extended Information" -msgstr "Doplňující informace" - #: src/publishing/PublishingPluginHost.vala:11 msgid "Preparing for upload" msgstr "Připravuje se k nahrání" @@ -4984,580 +5064,605 @@ msgstr "" msgid "Publishing" msgstr "Zveřejňování" -#: src/Resources.vala:141 src/Resources.vala:146 ui/collection.ui:151 +#: src/Resources.vala:111 src/Resources.vala:116 ui/collection.ui:151 msgid "Rotate" msgstr "Otočit" -#: src/Resources.vala:142 +#: src/Resources.vala:112 msgid "Rotate Right" msgstr "Otočit doprava" -#: src/Resources.vala:143 ui/collection.ui:148 +#: src/Resources.vala:113 ui/collection.ui:148 msgid "Rotate the photos right (press Ctrl to rotate left)" msgstr "Otočit fotografii doprava (pro otočení doleva zmáčkněte Ctrl)" -#: src/Resources.vala:147 +#: src/Resources.vala:117 msgid "Rotate Left" msgstr "Otočit doleva" -#: src/Resources.vala:148 +#: src/Resources.vala:118 msgid "Rotate the photos left" msgstr "Otočí fotografii doleva" -#: src/Resources.vala:151 +#: src/Resources.vala:121 msgid "Flip Horizontally" msgstr "Překlopit vodorovně" -#: src/Resources.vala:154 +#: src/Resources.vala:124 msgid "Flip Vertically" msgstr "Překlopit svisle" -#: src/Resources.vala:156 ui/direct.ui:192 ui/events_directory.ui:168 -#: ui/event.ui:438 ui/import_queue.ui:83 ui/import.ui:201 +#: src/Resources.vala:126 ui/direct.ui:192 ui/events_directory.ui:168 +#: ui/event.ui:438 ui/faces.ui:448 ui/import_queue.ui:83 ui/import.ui:201 #: ui/manifest_widget.ui:35 ui/media.ui:421 ui/offline.ui:198 ui/photo.ui:405 #: ui/tags.ui:440 ui/trash.ui:207 msgid "_About" msgstr "O _aplikaci" -#: src/Resources.vala:157 +#: src/Resources.vala:127 msgid "_Apply" msgstr "_Použít" -#: src/Resources.vala:160 ui/direct.ui:44 ui/events_directory.ui:32 -#: ui/event.ui:47 ui/import.ui:40 ui/media.ui:47 ui/offline.ui:32 -#: ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 +#: src/Resources.vala:130 ui/direct.ui:44 ui/events_directory.ui:32 +#: ui/event.ui:47 ui/faces.ui:47 ui/import.ui:40 ui/media.ui:47 +#: ui/offline.ui:32 ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 msgid "_Edit" msgstr "_Upravit" -#: src/Resources.vala:161 +#: src/Resources.vala:131 msgid "_Forward" msgstr "V_před" -#: src/Resources.vala:162 ui/direct.ui:62 ui/events_directory.ui:125 +#: src/Resources.vala:132 ui/direct.ui:62 ui/events_directory.ui:125 #: ui/photo.ui:173 msgid "Fulls_creen" msgstr "_Celá obrazovka" -#: src/Resources.vala:163 ui/direct.ui:174 ui/direct.ui:177 +#: src/Resources.vala:133 ui/direct.ui:174 ui/direct.ui:177 #: ui/events_directory.ui:150 ui/events_directory.ui:153 ui/event.ui:420 -#: ui/event.ui:423 ui/import_queue.ui:65 ui/import_queue.ui:68 ui/import.ui:183 -#: ui/import.ui:186 ui/media.ui:403 ui/media.ui:406 ui/offline.ui:180 -#: ui/offline.ui:183 ui/photo.ui:387 ui/photo.ui:390 ui/tags.ui:422 -#: ui/tags.ui:425 ui/trash.ui:189 ui/trash.ui:192 +#: ui/event.ui:423 ui/faces.ui:430 ui/faces.ui:433 ui/import_queue.ui:65 +#: ui/import_queue.ui:68 ui/import.ui:183 ui/import.ui:186 ui/media.ui:403 +#: ui/media.ui:406 ui/offline.ui:180 ui/offline.ui:183 ui/photo.ui:387 +#: ui/photo.ui:390 ui/tags.ui:422 ui/tags.ui:425 ui/trash.ui:189 +#: ui/trash.ui:192 msgid "_Help" msgstr "_Nápověda" -#: src/Resources.vala:164 +#: src/Resources.vala:134 msgid "Leave _Fullscreen" msgstr "Opustit _celou obrazovku" -#: src/Resources.vala:165 src/Resources.vala:364 ui/tags.ui:450 +#: src/Resources.vala:135 src/Resources.vala:343 ui/tags.ui:450 msgid "_New" msgstr "_Nový" -#: src/Resources.vala:166 +#: src/Resources.vala:136 msgid "_Next" msgstr "_Následující" -#: src/Resources.vala:169 src/Resources.vala:318 ui/events_directory.ui:65 -#: ui/event.ui:93 ui/import.ui:68 ui/media.ui:93 ui/offline.ui:72 -#: ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 +#: src/Resources.vala:139 src/Resources.vala:288 ui/events_directory.ui:65 +#: ui/event.ui:93 ui/faces.ui:93 ui/import.ui:68 ui/media.ui:93 +#: ui/offline.ui:72 ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 msgid "_Preferences" msgstr "_Předvolby" -#: src/Resources.vala:170 +#: src/Resources.vala:140 msgid "_Previous" msgstr "_Předchozí" -#: src/Resources.vala:172 ui/direct.ui:37 ui/events_directory.ui:25 -#: ui/event.ui:40 ui/import_queue.ui:31 ui/import.ui:33 ui/media.ui:40 -#: ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 +#: src/Resources.vala:142 ui/direct.ui:37 ui/events_directory.ui:25 +#: ui/event.ui:40 ui/faces.ui:40 ui/import_queue.ui:31 ui/import.ui:33 +#: ui/media.ui:40 ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 msgid "_Quit" msgstr "U_končit" -#: src/Resources.vala:173 +#: src/Resources.vala:143 msgid "_Refresh" msgstr "_Aktualizovat" -#: src/Resources.vala:175 +#: src/Resources.vala:145 msgid "_Revert" msgstr "V_rátit" -#: src/Resources.vala:177 +#: src/Resources.vala:147 msgid "Save _As" msgstr "Uložit j_ako" -#: src/Resources.vala:178 +#: src/Resources.vala:148 msgid "Sort _Ascending" msgstr "Ř_adit vzestupně" -#: src/Resources.vala:179 +#: src/Resources.vala:149 msgid "Sort _Descending" msgstr "Řa_dit sestupně" -#: src/Resources.vala:180 +#: src/Resources.vala:150 msgid "_Stop" msgstr "Za_stavit" -#: src/Resources.vala:181 +#: src/Resources.vala:151 msgid "_Undelete" msgstr "Vrátit _smazání" -#: src/Resources.vala:182 +#: src/Resources.vala:152 msgid "_Normal Size" msgstr "_Normální velikost" -#: src/Resources.vala:183 +#: src/Resources.vala:153 msgid "Best _Fit" msgstr "Přizpůso_bit" -#: src/Resources.vala:184 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 -#: ui/photo.ui:144 ui/tags.ui:260 +#: src/Resources.vala:154 ui/direct.ui:69 ui/event.ui:260 ui/faces.ui:260 +#: ui/media.ui:260 ui/photo.ui:144 ui/tags.ui:260 msgid "Zoom _In" msgstr "Přiblíž_it" -#: src/Resources.vala:185 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 -#: ui/photo.ui:149 ui/tags.ui:265 +#: src/Resources.vala:155 ui/direct.ui:74 ui/event.ui:265 ui/faces.ui:265 +#: ui/media.ui:265 ui/photo.ui:149 ui/tags.ui:265 msgid "Zoom _Out" msgstr "_Oddálit" -#: src/Resources.vala:188 ui/collection.ui:167 +#: src/Resources.vala:158 ui/collection.ui:167 msgid "Enhance" msgstr "Vylepšit" -#: src/Resources.vala:189 ui/collection.ui:164 +#: src/Resources.vala:159 ui/collection.ui:164 msgid "Automatically improve the photo’s appearance" msgstr "Automaticky vylepšit vzhled fotografie" -#: src/Resources.vala:192 +#: src/Resources.vala:162 msgid "Copy Color Adjustments" msgstr "Kopírovat úpravu barev" -#: src/Resources.vala:193 +#: src/Resources.vala:163 msgid "Copy the color adjustments applied to the photo" msgstr "Kopírovat parametry úpravy barev použité u fotografie" -#: src/Resources.vala:196 +#: src/Resources.vala:166 msgid "Paste Color Adjustments" msgstr "Vložit úpravu barev" -#: src/Resources.vala:197 +#: src/Resources.vala:167 msgid "Apply copied color adjustments to the selected photos" msgstr "Použít u vybraných fotografií zkopírované parametry úpravy barev" -#: src/Resources.vala:199 ui/direct.ui:139 ui/photo.ui:228 +#: src/Resources.vala:169 ui/direct.ui:139 ui/photo.ui:228 msgid "_Crop" msgstr "_Oříznout" -#: src/Resources.vala:200 +#: src/Resources.vala:170 msgid "Crop" msgstr "Oříznout" -#: src/Resources.vala:201 +#: src/Resources.vala:171 msgid "Crop the photo’s size" msgstr "Oříznout rozměry fotografie" -#: src/Resources.vala:204 +#: src/Resources.vala:174 msgid "Straighten" msgstr "Vyrovnat" -#: src/Resources.vala:205 +#: src/Resources.vala:175 msgid "Straighten the photo" msgstr "Vyrovnat fotografii" -#: src/Resources.vala:207 ui/direct.ui:149 ui/photo.ui:238 +#: src/Resources.vala:177 ui/direct.ui:149 ui/photo.ui:238 msgid "_Red-eye" msgstr "Če_rvené oči" -#: src/Resources.vala:208 +#: src/Resources.vala:178 msgid "Red-eye" msgstr "Červené oči" -#: src/Resources.vala:209 +#: src/Resources.vala:179 msgid "Reduce or eliminate any red-eye effects in the photo" msgstr "Odstranit nebo potlačit efekt červených očí ve fotografii" -#: src/Resources.vala:211 ui/direct.ui:154 ui/photo.ui:243 +#: src/Resources.vala:181 ui/direct.ui:154 ui/photo.ui:243 msgid "_Adjust" msgstr "_Upravit" -#: src/Resources.vala:212 +#: src/Resources.vala:182 msgid "Adjust" msgstr "Upravit" -#: src/Resources.vala:213 +#: src/Resources.vala:183 msgid "Adjust the photo’s color and tone" msgstr "Upravit barvy a tón fotografie" -#: src/Resources.vala:216 +#: src/Resources.vala:186 msgid "Revert to Original" msgstr "Vrátit zpět na původní" -#: src/Resources.vala:218 +#: src/Resources.vala:188 msgid "Revert External E_dits" msgstr "Vrátit zpět e_xterní úpravy" -#: src/Resources.vala:219 +#: src/Resources.vala:189 msgid "Revert to the master photo" msgstr "Zrušit změny a vrátit se zpět k původní fotografii" -#: src/Resources.vala:222 +#: src/Resources.vala:192 msgid "Set selected image to be the new desktop background" msgstr "Nastavit vybranou fotografii jako obrázek na pozadí pracovní plochy" -#: src/Resources.vala:223 +#: src/Resources.vala:193 msgid "Set as _Desktop Slideshow…" msgstr "Nastavit jako prezentaci na p_loše…" -#: src/Resources.vala:225 ui/direct.ui:47 ui/events_directory.ui:35 -#: ui/event.ui:50 ui/import.ui:43 ui/media.ui:50 ui/offline.ui:35 -#: ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 +#: src/Resources.vala:195 ui/direct.ui:47 ui/events_directory.ui:35 +#: ui/event.ui:50 ui/faces.ui:50 ui/import.ui:43 ui/media.ui:50 +#: ui/offline.ui:35 ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 msgid "_Undo" msgstr "_Zpět" -#: src/Resources.vala:226 +#: src/Resources.vala:196 msgid "Undo" msgstr "Zpět" -#: src/Resources.vala:228 ui/direct.ui:52 ui/events_directory.ui:40 -#: ui/event.ui:55 ui/import.ui:48 ui/media.ui:55 ui/offline.ui:40 -#: ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 +#: src/Resources.vala:198 ui/direct.ui:52 ui/events_directory.ui:40 +#: ui/event.ui:55 ui/faces.ui:55 ui/import.ui:48 ui/media.ui:55 +#: ui/offline.ui:40 ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 msgid "_Redo" msgstr "Zn_ovu" -#: src/Resources.vala:229 +#: src/Resources.vala:199 msgid "Redo" msgstr "Znovu" -#: src/Resources.vala:231 ui/events_directory.ui:139 ui/events_directory.ui:181 +#: src/Resources.vala:201 ui/events_directory.ui:139 ui/events_directory.ui:181 #: ui/event.ui:393 ui/event.ui:588 msgid "Re_name Event…" msgstr "Přejme_novat událost…" -#: src/Resources.vala:234 ui/event.ui:373 ui/event.ui:580 +#: src/Resources.vala:204 ui/event.ui:373 ui/event.ui:580 msgid "Make _Key Photo for Event" msgstr "Použít jako _klíčovou fotku pro událost" -#: src/Resources.vala:235 +#: src/Resources.vala:205 msgid "Make Key Photo for Event" msgstr "Nastavit jako klíčovou fotografii pro událost" -#: src/Resources.vala:237 ui/event.ui:382 ui/media.ui:376 ui/tags.ui:376 +#: src/Resources.vala:207 ui/event.ui:382 ui/faces.ui:376 ui/media.ui:376 +#: ui/tags.ui:376 msgid "_New Event" msgstr "_Nová událost" -#: src/Resources.vala:238 +#: src/Resources.vala:208 msgid "New Event" msgstr "Nová událost" -#: src/Resources.vala:240 +#: src/Resources.vala:210 msgid "Move Photos" msgstr "Přesunout fotky" -#: src/Resources.vala:241 +#: src/Resources.vala:211 msgid "Move photos to an event" msgstr "Přiřadit fotografie k události" -#: src/Resources.vala:243 ui/events_directory.ui:135 ui/events_directory.ui:177 +#: src/Resources.vala:213 ui/events_directory.ui:135 ui/events_directory.ui:177 msgid "_Merge Events" msgstr "S_pojit události" -#: src/Resources.vala:244 +#: src/Resources.vala:214 msgid "Merge" msgstr "Spojit" -#: src/Resources.vala:245 +#: src/Resources.vala:215 msgid "Combine events into a single event" msgstr "Sloučit události do jedné" -#: src/Resources.vala:247 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 -#: ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 ui/tags.ui:286 +#: src/Resources.vala:217 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 +#: ui/faces.ui:286 ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 +#: ui/tags.ui:286 msgid "_Set Rating" msgstr "_Hodnotit" -#: src/Resources.vala:248 +#: src/Resources.vala:218 msgid "Set Rating" msgstr "Nastavit hodnocení" -#: src/Resources.vala:249 +#: src/Resources.vala:219 msgid "Change the rating of your photo" msgstr "Změnit hodnocení své fotografie" -#: src/Resources.vala:251 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 -#: ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 ui/tags.ui:326 +#: src/Resources.vala:221 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 +#: ui/faces.ui:326 ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 +#: ui/tags.ui:326 msgid "_Increase" msgstr "Z_výšit" -#: src/Resources.vala:252 +#: src/Resources.vala:222 msgid "Increase Rating" msgstr "Zvýšení hodnocení" -#: src/Resources.vala:254 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 -#: ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 ui/tags.ui:331 +#: src/Resources.vala:224 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 +#: ui/faces.ui:331 ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 +#: ui/tags.ui:331 msgid "_Decrease" msgstr "S_nížit" -#: src/Resources.vala:255 +#: src/Resources.vala:225 msgid "Decrease Rating" msgstr "Snížení hodnocení" -#: src/Resources.vala:257 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 -#: ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 ui/tags.ui:314 +#: src/Resources.vala:227 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 +#: ui/faces.ui:314 ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 +#: ui/tags.ui:314 msgid "_Unrated" msgstr "_Bez ohodnocení" -#: src/Resources.vala:258 +#: src/Resources.vala:228 msgid "Unrated" msgstr "Nehodnoceno" -#: src/Resources.vala:259 +#: src/Resources.vala:229 msgid "Rate Unrated" msgstr "Bez ohodnocení" -#: src/Resources.vala:260 +#: src/Resources.vala:230 msgid "Setting as unrated" msgstr "Nastavuje se jako nehodnocené" -#: src/Resources.vala:261 +#: src/Resources.vala:231 msgid "Remove any ratings" msgstr "Odebrat hodnocení" -#: src/Resources.vala:263 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 -#: ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 ui/tags.ui:319 +#: src/Resources.vala:233 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 +#: ui/faces.ui:319 ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 +#: ui/tags.ui:319 msgid "_Rejected" msgstr "_Zamítnout" -#: src/Resources.vala:264 +#: src/Resources.vala:234 msgid "Rejected" msgstr "Zamítnuto" -#: src/Resources.vala:265 +#: src/Resources.vala:235 msgid "Rate Rejected" msgstr "Zamítavé hodnocení" -#: src/Resources.vala:266 +#: src/Resources.vala:236 msgid "Setting as rejected" msgstr "Nastavuje se na zamítnuté" -#: src/Resources.vala:267 +#: src/Resources.vala:237 msgid "Set rating to rejected" msgstr "Nastavit hodnocení na zamítnuté" -#: src/Resources.vala:269 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 -#: ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 ui/trash.ui:162 +#: src/Resources.vala:239 ui/event.ui:196 ui/faces.ui:196 ui/import.ui:156 +#: ui/media.ui:196 ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 +#: ui/trash.ui:162 msgid "Rejected _Only" msgstr "Jen _zamítnuté" -#: src/Resources.vala:270 +#: src/Resources.vala:240 msgid "Rejected Only" msgstr "Jen zamítnuté" -#: src/Resources.vala:271 +#: src/Resources.vala:241 msgid "Show only rejected photos" msgstr "Zobrazovat je zamítnuté fotografie" -#: src/Resources.vala:273 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 -#: ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 ui/trash.ui:156 +#: src/Resources.vala:243 ui/event.ui:190 ui/faces.ui:190 ui/import.ui:150 +#: ui/media.ui:190 ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 +#: ui/trash.ui:156 msgid "All + _Rejected" msgstr "Všechny + _zamítnuté" -#: src/Resources.vala:274 +#: src/Resources.vala:244 msgctxt "Tooltip" msgid "Show all photos, including rejected" msgstr "Zobrazovat všechny fotografie, včetně zamítnutých" -#: src/Resources.vala:276 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 -#: ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 ui/trash.ui:150 +#: src/Resources.vala:246 ui/event.ui:184 ui/faces.ui:184 ui/import.ui:144 +#: ui/media.ui:184 ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 +#: ui/trash.ui:150 msgid "_All Photos" msgstr "_Všechny fotografie" #. Button tooltip -#: src/Resources.vala:278 +#: src/Resources.vala:248 msgid "Show all photos" msgstr "Zobrazovat všechny fotografie" -#: src/Resources.vala:280 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 -#: ui/tags.ui:144 +#: src/Resources.vala:250 ui/event.ui:144 ui/faces.ui:144 ui/media.ui:144 +#: ui/photo.ui:120 ui/tags.ui:144 msgid "_Ratings" msgstr "_Hodnocení" -#: src/Resources.vala:281 +#: src/Resources.vala:251 msgid "Display each photo’s rating" msgstr "U každé fotografie zobrazit hodnocení" -#: src/Resources.vala:283 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 -#: ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 +#: src/Resources.vala:253 ui/event.ui:151 ui/faces.ui:151 ui/import.ui:111 +#: ui/media.ui:151 ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 msgid "_Filter Photos" msgstr "_Filtrovat fotografie" -#: src/Resources.vala:284 +#: src/Resources.vala:254 msgid "Filter Photos" msgstr "Filtrovat fotografie" -#: src/Resources.vala:285 +#: src/Resources.vala:255 msgid "Limit the number of photos displayed based on a filter" msgstr "Omezit počet zobrazených fotografií pomocí filtru" -#: src/Resources.vala:288 +#: src/Resources.vala:258 msgid "Duplicate" msgstr "Duplikovat" -#: src/Resources.vala:289 +#: src/Resources.vala:259 msgid "Make a duplicate of the photo" msgstr "Vytvořit kopii této fotografie" -#: src/Resources.vala:291 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 -#: ui/tags.ui:17 +#: src/Resources.vala:261 ui/event.ui:17 ui/faces.ui:17 ui/media.ui:17 +#: ui/photo.ui:17 ui/tags.ui:17 msgid "_Export…" msgstr "_Export…" -#: src/Resources.vala:293 +#: src/Resources.vala:263 msgid "_Print…" msgstr "_Tisk…" -#: src/Resources.vala:295 +#: src/Resources.vala:265 msgid "Pu_blish…" msgstr "Z_veřejnit…" -#: src/Resources.vala:297 ui/collection.ui:189 +#: src/Resources.vala:267 ui/collection.ui:189 msgid "Publish to various websites" msgstr "Zveřejnit na různých webových stránkách" -#: src/Resources.vala:299 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 -#: ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 ui/tags.ui:340 +#: src/Resources.vala:269 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 +#: ui/faces.ui:340 ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 +#: ui/tags.ui:340 msgid "Edit _Title…" msgstr "Úpravi_t název…" #. Button label -#: src/Resources.vala:301 +#: src/Resources.vala:271 msgctxt "Button Label" msgid "Edit Title" msgstr "Upravit název" -#: src/Resources.vala:303 ui/collection.ui:103 ui/events_directory.ui:144 +#: src/Resources.vala:273 ui/collection.ui:103 ui/events_directory.ui:144 #: ui/events_directory.ui:186 ui/event.ui:345 ui/event.ui:398 ui/event.ui:542 -#: ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 ui/tags.ui:345 +#: ui/faces.ui:345 ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 +#: ui/tags.ui:345 msgid "Edit _Comment…" msgstr "Upravit _komentář…" #. Button label -#: src/Resources.vala:305 +#: src/Resources.vala:275 msgid "Edit Comment" msgstr "Upravit komentář" -#: src/Resources.vala:307 ui/event.ui:592 +#: src/Resources.vala:277 ui/event.ui:592 msgid "Edit Event _Comment…" msgstr "Úpravit _komentář k události…" -#: src/Resources.vala:310 ui/direct.ui:167 ui/photo.ui:337 +#: src/Resources.vala:280 ui/direct.ui:167 ui/photo.ui:337 msgid "_Adjust Date and Time…" msgstr "N_astavit datum a čas…" -#: src/Resources.vala:311 +#: src/Resources.vala:281 msgid "Adjust Date and Time" msgstr "Nastavení data a času" -#: src/Resources.vala:313 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 -#: ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 +#: src/Resources.vala:283 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 +#: ui/faces.ui:390 ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 msgid "Add _Tags…" msgstr "Přidat š_títky…" -#: src/Resources.vala:314 ui/photo_context.ui:17 +#: src/Resources.vala:284 ui/photo_context.ui:17 msgid "_Add Tags…" msgstr "Přid_at štítky…" #. Dialog title -#: src/Resources.vala:316 +#: src/Resources.vala:286 msgctxt "Dialog Title" msgid "Add Tags" msgstr "Přidání štítků" -#: src/Resources.vala:325 ui/photo_context.ui:135 +#: src/Resources.vala:295 ui/photo_context.ui:135 msgid "Send T_o…" msgstr "_Odeslat…" -#: src/Resources.vala:327 +#: src/Resources.vala:297 msgid "_Find…" msgstr "Na_jít…" -#: src/Resources.vala:328 ui/collection.ui:217 ui/offline.ui:239 +#: src/Resources.vala:298 ui/collection.ui:217 ui/offline.ui:239 #: ui/trash.ui:312 msgid "Find" msgstr "Najít" -#: src/Resources.vala:329 ui/collection.ui:214 ui/offline.ui:236 +#: src/Resources.vala:299 ui/collection.ui:214 ui/offline.ui:236 #: ui/trash.ui:309 msgid "Find an image by typing text that appears in its name or tags" msgstr "Najít obrázky, jejichž název nebo štítek obsahují napsaný text" -#: src/Resources.vala:331 +#: src/Resources.vala:301 msgid "_Flag" msgstr "_Označit" -#: src/Resources.vala:333 +#: src/Resources.vala:303 msgid "Un_flag" msgstr "Zrušit _označení" -#: src/Resources.vala:336 +#: src/Resources.vala:307 +msgid "Mark faces of people in the photo" +msgstr "Označit ve fotografii obličeje lidí" + +#: src/Resources.vala:308 +msgid "Modify Faces" +msgstr "Upravit obličeje" + +#: src/Resources.vala:309 +msgid "Delete Face" +msgstr "Smazat obličej" + +#: src/Resources.vala:311 src/Resources.vala:353 ui/tags.ui:456 +msgid "_Rename…" +msgstr "_Přejmenovat…" + +#: src/Resources.vala:315 #, c-format msgid "Unable to launch editor: %s" msgstr "Nelze spustit editor: %s" -#: src/Resources.vala:341 +#: src/Resources.vala:320 #, c-format msgid "Add Tag “%s”" msgstr "Přidat štítek „%s“" #. Used when adding two tags to photo(s) -#: src/Resources.vala:344 +#: src/Resources.vala:323 #, c-format msgid "Add Tags “%s” and “%s”" msgstr "Přidat štítky „%s“ a „%s“" #. Undo/Redo command name (in Edit menu) -#: src/Resources.vala:349 +#: src/Resources.vala:328 msgctxt "UndoRedo menu entry" msgid "Add Tags" msgstr "Přidat štítky" -#: src/Resources.vala:354 +#: src/Resources.vala:333 #, c-format msgid "_Delete Tag “%s”" msgstr "S_mazat štítek „%s“" -#: src/Resources.vala:358 +#: src/Resources.vala:337 #, c-format msgid "Delete Tag “%s”" msgstr "Smazat štítek „%s“" -#: src/Resources.vala:361 +#: src/Resources.vala:340 msgid "Delete Tag" msgstr "Smazat štítek" -#: src/Resources.vala:367 +#: src/Resources.vala:346 #, c-format msgid "Re_name Tag “%s”…" msgstr "Přejme_novat štítek „%s“…" -#: src/Resources.vala:371 +#: src/Resources.vala:350 #, c-format msgid "Rename Tag “%s” to “%s”" msgstr "Přejmenovat štítek „%s“ na „%s“" -#: src/Resources.vala:374 ui/tags.ui:456 -msgid "_Rename…" -msgstr "_Přejmenovat…" - -#: src/Resources.vala:376 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 -#: ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 ui/tags.ui:395 +#: src/Resources.vala:355 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 +#: ui/faces.ui:395 ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 +#: ui/tags.ui:395 msgid "Modif_y Tags…" msgstr "Změn_it štítky…" -#: src/Resources.vala:377 +#: src/Resources.vala:356 msgid "Modify Tags" msgstr "Změnit štítky" -#: src/Resources.vala:380 +#: src/Resources.vala:359 #, c-format msgid "Tag Photo as “%s”" msgid_plural "Tag Photos as “%s”" @@ -5565,7 +5670,7 @@ msgstr[0] "Oštítkovat fotku jako „%s“" msgstr[1] "Oštítkovat fotky jako „%s“" msgstr[2] "Oštítkovat fotky jako „%s“" -#: src/Resources.vala:386 +#: src/Resources.vala:365 #, c-format msgid "Tag the selected photo as “%s”" msgid_plural "Tag the selected photos as “%s”" @@ -5573,7 +5678,7 @@ msgstr[0] "Oštítkovat vybranou fotku jako „%s“" msgstr[1] "Oštítkovat vybrané fotky jako „%s“" msgstr[2] "Oštítkovat vybrané fotky jako „%s“" -#: src/Resources.vala:392 +#: src/Resources.vala:371 #, c-format msgid "Remove Tag “%s” From _Photo" msgid_plural "Remove Tag “%s” From _Photos" @@ -5581,7 +5686,7 @@ msgstr[0] "Odstranit z _fotky štítek „%s“" msgstr[1] "Odstranit z _fotek štítek „%s“" msgstr[2] "Odstranit z _fotek štítek „%s“" -#: src/Resources.vala:398 +#: src/Resources.vala:377 #, c-format msgid "Remove Tag “%s” From Photo" msgid_plural "Remove Tag “%s” From Photos" @@ -5589,131 +5694,175 @@ msgstr[0] "Odstranit z fotky šítek „%s“" msgstr[1] "Odstranit z fotek šítek „%s“" msgstr[2] "Odstranit z fotek šítek „%s“" -#: src/Resources.vala:404 +#: src/Resources.vala:383 #, c-format msgid "Unable to rename tag to “%s” because the tag already exists." msgstr "Nelze přejmenovat šítek na „%s“, protože takový už existuje." -#: src/Resources.vala:408 +#: src/Resources.vala:387 #, c-format msgid "Unable to rename search to “%s” because the search already exists." msgstr "Nelze přejmenovat hledání na „%s“, protože takové už existuje." #. Saved search button -#: src/Resources.vala:411 src/SearchFilter.vala:1120 +#: src/Resources.vala:390 src/SearchFilter.vala:1146 msgid "Saved Search" msgstr "Uložené hledání" -#: src/Resources.vala:413 +#: src/Resources.vala:392 msgid "Delete Search" msgstr "Smazat hledání" -#: src/Resources.vala:416 ui/savedsearch.ui:10 +#: src/Resources.vala:395 ui/savedsearch.ui:10 msgid "_Edit…" msgstr "_Upravit…" -#: src/Resources.vala:417 ui/savedsearch.ui:6 +#: src/Resources.vala:396 ui/savedsearch.ui:6 msgid "Re_name…" msgstr "Přejme_novat…" -#: src/Resources.vala:420 +#: src/Resources.vala:399 #, c-format msgid "Rename Search “%s” to “%s”" msgstr "Přejmenovat hledání „%s“ na „%s“" -#: src/Resources.vala:424 +#: src/Resources.vala:403 #, c-format msgid "Delete Search “%s”" msgstr "Smazat hledání „%s“" -#: src/Resources.vala:561 +#: src/Resources.vala:408 +#, c-format +msgid "Unable to rename face to “%s” because the face already exists." +msgstr "Nelze přejmenovat obličej na „%s“, protože takový už existuje." + +#: src/Resources.vala:412 +#, c-format +msgid "Remove Face “%s” From _Photo" +msgid_plural "Remove Face “%s” From _Photos" +msgstr[0] "Odebrat z _fotky obličej „%s“" +msgstr[1] "Odebrat z _fotek obličej „%s“" +msgstr[2] "Odebrat z _fotek obličej „%s“" + +#: src/Resources.vala:417 +#, c-format +msgid "Remove Face “%s” From Photo" +msgid_plural "Remove Face “%s” From Photos" +msgstr[0] "Odebrat z fotky obličej „%s“" +msgstr[1] "Odebrat z fotek obličej „%s“" +msgstr[2] "Odebrat z fotek obličej „%s“" + +#: src/Resources.vala:422 +#, c-format +msgid "Re_name Face “%s”…" +msgstr "Přejme_novat obličej „%s“…" + +#: src/Resources.vala:426 +#, c-format +msgid "Rename Face “%s” to “%s”" +msgstr "Přejmenovat obličej „%s“ na „%s“" + +#: src/Resources.vala:430 +#, c-format +msgid "_Delete Face “%s”" +msgstr "S_mazat obličej „%s“" + +#: src/Resources.vala:434 +#, c-format +msgid "Delete Face “%s”" +msgstr "Smazat obličej „%s“" + +#: src/Resources.vala:636 #, c-format msgid "Rate %s" msgstr "Hodnocení %s" -#: src/Resources.vala:562 +#: src/Resources.vala:637 #, c-format msgid "Set rating to %s" msgstr "Nastavit ohodnocení na %s" -#: src/Resources.vala:563 +#: src/Resources.vala:638 #, c-format msgid "Setting rating to %s" msgstr "Nastavuje se ohodnocení na %s" -#: src/Resources.vala:565 +#: src/Resources.vala:640 #, c-format msgid "Display %s" msgstr "Zobrazit %s" -#: src/Resources.vala:566 +#: src/Resources.vala:641 #, c-format msgid "Only show photos with a rating of %s" msgstr "Zobrazit jen fotografie s ohodnocením %s" -#: src/Resources.vala:567 +#: src/Resources.vala:642 #, c-format msgid "%s or Better" msgstr "%s nebo lepší" -#: src/Resources.vala:568 +#: src/Resources.vala:643 #, c-format msgid "Display %s or Better" msgstr "Zobrazit %s nebo lepší" -#: src/Resources.vala:569 +#: src/Resources.vala:644 #, c-format msgid "Only show photos with a rating of %s or better" msgstr "Zobrazit jen fotografie s hodnocením %s nebo lepším" -#: src/Resources.vala:660 ui/trash.ui:255 +#: src/Resources.vala:735 ui/trash.ui:255 msgid "Remove the selected photos from the trash" msgstr "Odstranit vybrané fotografie z koše" -#: src/Resources.vala:661 ui/offline.ui:221 +#: src/Resources.vala:736 ui/offline.ui:221 msgid "Remove the selected photos from the library" msgstr "Odstraní vybrané fotografie z knihovny" -#: src/Resources.vala:663 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 +#: src/Resources.vala:738 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 msgid "_Restore" msgstr "O_bnovit" -#: src/Resources.vala:664 ui/trash.ui:270 +#: src/Resources.vala:739 ui/trash.ui:270 msgid "Move the selected photos back into the library" msgstr "Přesunout vybrané fotografie zpět do knihovny" -#: src/Resources.vala:666 ui/collection.ui:123 ui/direct_context.ui:18 -#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/media.ui:27 +#: src/Resources.vala:741 ui/collection.ui:123 ui/direct_context.ui:18 +#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/faces.ui:27 ui/media.ui:27 #: ui/photo_context.ui:130 ui/photo.ui:35 ui/tags.ui:27 ui/trash.ui:19 #: ui/trash.ui:227 msgid "Show in File Mana_ger" msgstr "Otevřít ve _správci souborů" -#: src/Resources.vala:667 +#: src/Resources.vala:742 msgid "Open the selected photo’s directory in the file manager" msgstr "Otevřít vybranou složku s fotografiemi ve správci souborů" -#: src/Resources.vala:670 +#: src/Resources.vala:745 #, c-format msgid "Unable to open in file manager: %s" msgstr "Nelze otevřít ve správci souborů: %s" -#: src/Resources.vala:673 ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 -#: ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 ui/tags.ui:74 +#: src/Resources.vala:748 ui/event.ui:74 ui/faces.ui:74 ui/media.ui:74 +#: ui/offline.ui:58 ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 +#: ui/tags.ui:74 msgid "R_emove From Library" msgstr "O_dstranit z knihovny" -#: src/Resources.vala:675 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 -#: ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 ui/tags.ui:79 +#: src/Resources.vala:750 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 +#: ui/faces.ui:79 ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 +#: ui/tags.ui:79 msgid "_Move to Trash" msgstr "Přesu_nout do koše" -#: src/Resources.vala:677 ui/events_directory.ui:58 ui/event.ui:86 -#: ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 ui/trash.ui:74 +#: src/Resources.vala:752 ui/events_directory.ui:58 ui/event.ui:86 +#: ui/faces.ui:86 ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 +#: ui/trash.ui:74 msgid "Select _All" msgstr "Vybrat _vše" -#: src/Resources.vala:678 +#: src/Resources.vala:753 msgid "Select all items" msgstr "Vybrat všechny položky" @@ -5726,14 +5875,14 @@ msgstr "Vybrat všechny položky" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format #. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:739 +#: src/Resources.vala:814 msgid "%a %b %d, %Y" msgstr "%a, %e. %B %Y" #. / Locale-specific starting date format for multi-date strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:744 +#: src/Resources.vala:819 msgctxt "MultidayFormat" msgid "%a %b %d" msgstr "%a, %e." @@ -5741,7 +5890,7 @@ msgstr "%a, %e." #. / Locale-specific ending date format for multi-date strings, #. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:749 +#: src/Resources.vala:824 msgctxt "MultidayFormat" msgid "%d, %Y" msgstr "%e. %B %Y" @@ -5749,7 +5898,7 @@ msgstr "%e. %B %Y" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:754 +#: src/Resources.vala:829 msgctxt "MultimonthFormat" msgid "%a %b %d" msgstr "%a, %e. %B" @@ -5757,170 +5906,174 @@ msgstr "%a, %e. %B" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:759 +#: src/Resources.vala:834 msgctxt "MultimonthFormat" msgid "%a %b %d, %Y" msgstr "%a, %e. %B %Y" -#: src/Screensaver.vala:18 src/SlideshowPage.vala:115 +#: src/Screensaver.vala:18 src/SlideshowPage.vala:117 msgid "Slideshow" msgstr "Prezentace" #. Ordering must correspond with SearchConditionText.Context -#: src/searches/SavedSearchDialog.vala:167 +#: src/searches/SavedSearchDialog.vala:170 msgid "contains" msgstr "obsahuje" #. Ordering must correspond with Context -#: src/searches/SavedSearchDialog.vala:168 -#: src/searches/SavedSearchDialog.vala:499 +#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:502 msgid "is exactly" msgstr "je přesně" -#: src/searches/SavedSearchDialog.vala:169 +#: src/searches/SavedSearchDialog.vala:172 msgid "starts with" msgstr "začíná" -#: src/searches/SavedSearchDialog.vala:170 +#: src/searches/SavedSearchDialog.vala:173 msgid "ends with" msgstr "končí" -#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:174 msgid "does not contain" msgstr "neobsahuje" -#: src/searches/SavedSearchDialog.vala:172 -#: src/searches/SavedSearchDialog.vala:503 +#: src/searches/SavedSearchDialog.vala:175 +#: src/searches/SavedSearchDialog.vala:506 msgid "is not set" msgstr "není nastaveno" -#: src/searches/SavedSearchDialog.vala:173 +#: src/searches/SavedSearchDialog.vala:176 msgid "is set" msgstr "je nastaveno" #. Ordering must correspond with SearchConditionMediaType.Context -#: src/searches/SavedSearchDialog.vala:247 -#: src/searches/SavedSearchDialog.vala:378 -#: src/searches/SavedSearchDialog.vala:443 +#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:381 +#: src/searches/SavedSearchDialog.vala:446 msgid "is" msgstr "je" -#: src/searches/SavedSearchDialog.vala:248 +#: src/searches/SavedSearchDialog.vala:251 msgid "is not" msgstr "není" #. Ordering must correspond with SearchConditionMediaType.MediaType -#: src/searches/SavedSearchDialog.vala:254 +#: src/searches/SavedSearchDialog.vala:257 msgid "any photo" msgstr "libovolná fotka" -#: src/searches/SavedSearchDialog.vala:255 +#: src/searches/SavedSearchDialog.vala:258 msgid "a raw photo" msgstr "fotka RAW" -#: src/searches/SavedSearchDialog.vala:256 +#: src/searches/SavedSearchDialog.vala:259 msgid "a video" msgstr "video" -#: src/searches/SavedSearchDialog.vala:310 +#: src/searches/SavedSearchDialog.vala:313 msgid "has" msgstr "má" -#: src/searches/SavedSearchDialog.vala:311 +#: src/searches/SavedSearchDialog.vala:314 msgid "has no" msgstr "nemá" -#: src/searches/SavedSearchDialog.vala:316 +#: src/searches/SavedSearchDialog.vala:319 msgid "modifications" msgstr "změny" -#: src/searches/SavedSearchDialog.vala:317 +#: src/searches/SavedSearchDialog.vala:320 msgid "internal modifications" msgstr "interní změny" -#: src/searches/SavedSearchDialog.vala:318 +#: src/searches/SavedSearchDialog.vala:321 msgid "external modifications" msgstr "externí změny" #. Ordering must correspond with SearchConditionFlagged.State -#: src/searches/SavedSearchDialog.vala:372 +#: src/searches/SavedSearchDialog.vala:375 msgid "flagged" msgstr "označeno" -#: src/searches/SavedSearchDialog.vala:373 +#: src/searches/SavedSearchDialog.vala:376 msgid "not flagged" msgstr "neoznačeno" -#: src/searches/SavedSearchDialog.vala:436 +#: src/searches/SavedSearchDialog.vala:439 msgid "and higher" msgstr "a více" -#: src/searches/SavedSearchDialog.vala:437 +#: src/searches/SavedSearchDialog.vala:440 msgid "only" msgstr "jen" -#: src/searches/SavedSearchDialog.vala:438 +#: src/searches/SavedSearchDialog.vala:441 msgid "and lower" msgstr "a méně" -#: src/searches/SavedSearchDialog.vala:500 +#: src/searches/SavedSearchDialog.vala:503 msgid "is after" msgstr "je po" -#: src/searches/SavedSearchDialog.vala:501 +#: src/searches/SavedSearchDialog.vala:504 msgid "is before" msgstr "je před" -#: src/searches/SavedSearchDialog.vala:502 +#: src/searches/SavedSearchDialog.vala:505 msgid "is between" msgstr "je mezi" -#: src/searches/SavedSearchDialog.vala:515 +#: src/searches/SavedSearchDialog.vala:518 msgid "and" msgstr "a" -#: src/searches/SearchBoolean.vala:157 +#: src/searches/SearchBoolean.vala:169 msgid "Any text" msgstr "Kterýkoliv text" -#: src/searches/SearchBoolean.vala:160 +#: src/searches/SearchBoolean.vala:172 msgid "Title" msgstr "Název" -#: src/searches/SearchBoolean.vala:163 +#: src/searches/SearchBoolean.vala:175 msgid "Tag" msgstr "Štítek" -#: src/searches/SearchBoolean.vala:166 +#: src/searches/SearchBoolean.vala:178 msgid "Comment" msgstr "Komentář" -#: src/searches/SearchBoolean.vala:169 +#: src/searches/SearchBoolean.vala:181 msgid "Event name" msgstr "Název události" -#: src/searches/SearchBoolean.vala:172 +#: src/searches/SearchBoolean.vala:184 msgid "File name" msgstr "Název souboru" -#: src/searches/SearchBoolean.vala:175 +#: src/searches/SearchBoolean.vala:187 +msgid "Face" +msgstr "Obličej" + +#: src/searches/SearchBoolean.vala:190 msgid "Media type" msgstr "Typ média" -#: src/searches/SearchBoolean.vala:178 +#: src/searches/SearchBoolean.vala:193 msgid "Flag state" msgstr "Stav označení" -#: src/searches/SearchBoolean.vala:181 +#: src/searches/SearchBoolean.vala:196 msgid "Photo state" msgstr "Stav fotky" -#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:827 -#: src/SearchFilter.vala:1110 +#: src/searches/SearchBoolean.vala:199 src/SearchFilter.vala:853 +#: src/SearchFilter.vala:1136 msgid "Rating" msgstr "Hodnocení" -#: src/searches/SearchBoolean.vala:187 +#: src/searches/SearchBoolean.vala:202 msgid "Date" msgstr "Datum" @@ -5932,27 +6085,27 @@ msgstr "Uložená hledání" msgid "Organize your saved searches" msgstr "Roztřídit své uložené fotografie" -#: src/SearchFilter.vala:811 +#: src/SearchFilter.vala:837 msgid "★+ Rating" msgstr "Hodnocení ★+" -#: src/SearchFilter.vala:814 +#: src/SearchFilter.vala:840 msgid "★★+ Rating" msgstr "Hodnocení ★★+" -#: src/SearchFilter.vala:817 +#: src/SearchFilter.vala:843 msgid "★★★+ Rating" msgstr "Hodnocení ★★★+" -#: src/SearchFilter.vala:820 +#: src/SearchFilter.vala:846 msgid "★★★★+ Rating" msgstr "Hodnocení ★★★★+" -#: src/SearchFilter.vala:824 +#: src/SearchFilter.vala:850 msgid "★★★★★+ Rating" msgstr "Hodnocení ★★★★★+" -#: src/SearchFilter.vala:1060 +#: src/SearchFilter.vala:1086 #, c-format msgid "Error loading search bar UI: %s" msgstr "Chyba při načítání uživatelského rozhraním vyhledávací lišty: %s" @@ -5962,71 +6115,71 @@ msgstr "Chyba při načítání uživatelského rozhraním vyhledávací lišty: #. Prepare the close menu for use, but don't #. display it yet; we'll connect it to secondary #. click later on. -#: src/SearchFilter.vala:1069 +#: src/SearchFilter.vala:1095 msgid "Close" msgstr "Zavřít" #. Type label and toggles -#: src/SearchFilter.vala:1075 +#: src/SearchFilter.vala:1101 msgid "Type" msgstr "Typ" -#: src/SearchFilter.vala:1082 +#: src/SearchFilter.vala:1108 msgid "Videos" msgstr "Videa" -#: src/SearchFilter.vala:1085 +#: src/SearchFilter.vala:1111 msgid "RAW Photos" msgstr "Fotografie RAW" -#: src/SearchFilter.vala:1121 +#: src/SearchFilter.vala:1147 msgid "Use a saved search to filter items in the current view" msgstr "Použít uložené hledání k filtrování položek v aktuálním zobrazení" #. Set up toolbar #. add toolbar buttons -#: src/SlideshowPage.vala:134 +#: src/SlideshowPage.vala:136 msgid "Back" msgstr "Předchozí" -#: src/SlideshowPage.vala:136 +#: src/SlideshowPage.vala:138 msgid "Go to the previous photo" msgstr "Přejít na předchozí fotografii" -#: src/SlideshowPage.vala:141 src/SlideshowPage.vala:248 +#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:250 msgid "Pause" msgstr "Pozastavit" -#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:249 +#: src/SlideshowPage.vala:145 src/SlideshowPage.vala:251 msgid "Pause the slideshow" msgstr "Pozastavit promítání" -#: src/SlideshowPage.vala:148 +#: src/SlideshowPage.vala:150 msgid "Next" msgstr "Následující" -#: src/SlideshowPage.vala:150 +#: src/SlideshowPage.vala:152 msgid "Go to the next photo" msgstr "Přejít na následující fotografii" -#: src/SlideshowPage.vala:157 ui/slideshow_settings.ui:21 +#: src/SlideshowPage.vala:159 ui/slideshow_settings.ui:21 msgid "Settings" msgstr "Nastavení" -#: src/SlideshowPage.vala:158 +#: src/SlideshowPage.vala:160 msgid "Change slideshow settings" msgstr "Změnit nastavení prezentace" #. An entire slideshow set might be missing, so check for a loop. -#: src/SlideshowPage.vala:212 +#: src/SlideshowPage.vala:214 msgid "All photo source files are missing." msgstr "Chybí všechny zdrojové soubory s fotografiemi." -#: src/SlideshowPage.vala:244 +#: src/SlideshowPage.vala:246 msgid "Play" msgstr "Přehrát" -#: src/SlideshowPage.vala:245 +#: src/SlideshowPage.vala:247 msgid "Continue the slideshow" msgstr "Pokračovat v promítání" @@ -6038,7 +6191,7 @@ msgstr "Přechody mezi snímky" msgid "(None)" msgstr "(žádný)" -#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:485 +#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:414 msgid "None" msgstr "Žádný" @@ -6063,24 +6216,24 @@ msgstr "bez názvu" msgid "Export Videos" msgstr "Export videí" -#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/media.ui:281 -#: ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 +#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/faces.ui:281 +#: ui/media.ui:281 ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 msgid "Toggle _Flag" msgstr "_Přepnout označení" -#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/media.ui:353 -#: ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 +#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/faces.ui:353 +#: ui/media.ui:353 ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 msgid "_Developer" msgstr "_Vývojka" -#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/media.ui:381 -#: ui/photo_context.ui:126 ui/tags.ui:381 +#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/faces.ui:381 +#: ui/media.ui:381 ui/photo_context.ui:126 ui/tags.ui:381 msgid "View Eve_nt for Photo" msgstr "Zobrazit u_dálosti pro fotku" -#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/import_queue.ui:5 -#: ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 ui/photo.ui:5 ui/tags.ui:5 -#: ui/trash.ui:5 +#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/faces.ui:5 +#: ui/import_queue.ui:5 ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 +#: ui/photo.ui:5 ui/tags.ui:5 ui/trash.ui:5 msgid "_File" msgstr "_Soubor" @@ -6088,7 +6241,7 @@ msgstr "_Soubor" msgid "Save _As…" msgstr "Uložit j_ako" -#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 +#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 ui/faces.ui:99 #: ui/import_queue.ui:38 ui/import.ui:74 ui/media.ui:99 ui/offline.ui:78 #: ui/photo.ui:95 ui/tags.ui:99 ui/trash.ui:87 msgid "_View" @@ -6122,229 +6275,242 @@ msgstr "_Následující fotka" msgid "T_ools" msgstr "Nástr_oje" -#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 +#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 ui/faces.ui:438 #: ui/import_queue.ui:73 ui/import.ui:191 ui/media.ui:411 ui/offline.ui:188 #: ui/photo.ui:395 ui/tags.ui:430 ui/trash.ui:197 msgid "_Frequently Asked Questions" msgstr "Ča_sté dotazy a odpovědi" -#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 +#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 ui/faces.ui:442 #: ui/import_queue.ui:77 ui/import.ui:195 ui/media.ui:415 ui/offline.ui:192 #: ui/photo.ui:399 ui/tags.ui:434 ui/trash.ui:201 msgid "_Report a Problem…" msgstr "_Nahlásit problém…" -#: ui/events_directory.ui:8 ui/event.ui:8 ui/import_queue.ui:14 ui/import.ui:8 -#: ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 ui/trash.ui:8 +#: ui/events_directory.ui:8 ui/event.ui:8 ui/faces.ui:8 ui/import_queue.ui:14 +#: ui/import.ui:8 ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 +#: ui/trash.ui:8 msgid "_Import From Folder…" msgstr "_Import ze složky…" -#: ui/events_directory.ui:13 ui/event.ui:13 ui/import_queue.ui:19 -#: ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 ui/photo.ui:13 ui/tags.ui:13 -#: ui/trash.ui:13 +#: ui/events_directory.ui:13 ui/event.ui:13 ui/faces.ui:13 +#: ui/import_queue.ui:19 ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 +#: ui/photo.ui:13 ui/tags.ui:13 ui/trash.ui:13 msgid "Import From _Application…" msgstr "Import z _aplikace…" -#: ui/events_directory.ui:19 ui/event.ui:34 ui/import_queue.ui:25 -#: ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 ui/photo.ui:42 ui/tags.ui:34 -#: ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 +#: ui/events_directory.ui:19 ui/event.ui:34 ui/faces.ui:34 +#: ui/import_queue.ui:25 ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 +#: ui/photo.ui:42 ui/tags.ui:34 ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 msgid "Empty T_rash" msgstr "Vyp_rázdnit koš" -#: ui/events_directory.ui:47 ui/event.ui:62 ui/import.ui:55 ui/media.ui:62 -#: ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 +#: ui/events_directory.ui:47 ui/event.ui:62 ui/faces.ui:62 ui/import.ui:55 +#: ui/media.ui:62 ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 msgid "_Find" msgstr "Na_jít" -#: ui/events_directory.ui:51 ui/event.ui:66 ui/media.ui:66 ui/offline.ui:51 -#: ui/photo.ui:70 ui/search_sidebar_context.ui:6 +#: ui/events_directory.ui:51 ui/event.ui:66 ui/faces.ui:66 ui/media.ui:66 +#: ui/offline.ui:51 ui/photo.ui:70 ui/search_sidebar_context.ui:6 #: ui/sidebar_default_context.ui:6 ui/tags.ui:66 ui/trash.ui:56 msgid "Ne_w Saved Search…" msgstr "No_vé uložené vyhledávání…" -#: ui/events_directory.ui:74 ui/event.ui:102 ui/import_queue.ui:41 -#: ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 ui/photo.ui:98 -#: ui/tags.ui:102 ui/trash.ui:90 +#: ui/events_directory.ui:74 ui/event.ui:102 ui/faces.ui:102 +#: ui/import_queue.ui:41 ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 +#: ui/photo.ui:98 ui/tags.ui:102 ui/trash.ui:90 msgid "_Basic Information" msgstr "_Základní informace" -#: ui/events_directory.ui:79 ui/event.ui:107 ui/import.ui:82 ui/media.ui:107 -#: ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 ui/trash.ui:95 +#: ui/events_directory.ui:79 ui/event.ui:107 ui/faces.ui:107 ui/import.ui:82 +#: ui/media.ui:107 ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 +#: ui/trash.ui:95 msgid "E_xtended Information" msgstr "_Rozšiřující informace" -#: ui/events_directory.ui:84 ui/event.ui:112 ui/import.ui:87 ui/media.ui:112 -#: ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 +#: ui/events_directory.ui:84 ui/event.ui:112 ui/faces.ui:112 ui/import.ui:87 +#: ui/media.ui:112 ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 msgid "_Search Bar" msgstr "Vy_hledávací lišta" -#: ui/events_directory.ui:89 ui/event.ui:117 ui/import.ui:92 ui/media.ui:117 -#: ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 ui/trash.ui:105 +#: ui/events_directory.ui:89 ui/event.ui:117 ui/faces.ui:117 ui/import.ui:92 +#: ui/media.ui:117 ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 +#: ui/trash.ui:105 msgid "S_idebar" msgstr "P_ostranní panel" -#: ui/events_directory.ui:94 ui/event.ui:122 ui/import.ui:97 ui/media.ui:122 -#: ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 ui/trash.ui:110 +#: ui/events_directory.ui:94 ui/event.ui:122 ui/faces.ui:122 ui/import.ui:97 +#: ui/media.ui:122 ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 +#: ui/trash.ui:110 msgid "T_oolbar" msgstr "Nástroj_ová lišta" -#: ui/events_directory.ui:101 ui/event.ui:134 ui/media.ui:134 ui/tags.ui:134 +#: ui/events_directory.ui:101 ui/event.ui:134 ui/faces.ui:134 ui/media.ui:134 +#: ui/tags.ui:134 msgid "_Comments" msgstr "_Komentáře" -#: ui/events_directory.ui:108 ui/event.ui:243 ui/import_queue.ui:48 -#: ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 ui/photo.ui:127 -#: ui/tags.ui:243 ui/trash.ui:172 +#: ui/events_directory.ui:108 ui/event.ui:243 ui/faces.ui:243 +#: ui/import_queue.ui:48 ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 +#: ui/photo.ui:127 ui/tags.ui:243 ui/trash.ui:172 msgid "Sort _Events" msgstr "S_eřadit události" -#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 -#: ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 ui/media.ui:246 -#: ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 ui/tags.ui:246 -#: ui/trash.ui:175 +#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 ui/faces.ui:231 +#: ui/faces.ui:246 ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 +#: ui/media.ui:246 ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 +#: ui/tags.ui:246 ui/trash.ui:175 msgid "_Ascending" msgstr "_Vzestupně" -#: ui/events_directory.ui:116 ui/event.ui:236 ui/import_queue.ui:56 -#: ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 ui/trash.ui:180 +#: ui/events_directory.ui:116 ui/event.ui:236 ui/faces.ui:236 +#: ui/import_queue.ui:56 ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 +#: ui/trash.ui:180 msgid "D_escending" msgstr "_Sestupně" -#: ui/events_directory.ui:132 ui/event.ui:379 ui/media.ui:373 ui/tags.ui:373 +#: ui/events_directory.ui:132 ui/event.ui:379 ui/faces.ui:373 ui/media.ui:373 +#: ui/tags.ui:373 msgid "Even_ts" msgstr "Událos_ti" -#: ui/event.ui:129 ui/import.ui:104 ui/media.ui:129 ui/tags.ui:129 +#: ui/event.ui:129 ui/faces.ui:129 ui/import.ui:104 ui/media.ui:129 +#: ui/tags.ui:129 msgid "_Titles" msgstr "_Názvy" -#: ui/event.ui:139 ui/event.ui:404 ui/media.ui:139 ui/media.ui:387 -#: ui/photo.ui:372 ui/tags.ui:139 ui/tags.ui:387 +#: ui/event.ui:139 ui/event.ui:404 ui/faces.ui:139 ui/faces.ui:387 +#: ui/media.ui:139 ui/media.ui:387 ui/photo.ui:372 ui/tags.ui:139 +#: ui/tags.ui:387 msgid "Ta_gs" msgstr "Štít_ky" -#: ui/event.ui:206 ui/media.ui:206 ui/tags.ui:206 +#: ui/event.ui:206 ui/faces.ui:206 ui/media.ui:206 ui/tags.ui:206 msgid "Sort _Photos" msgstr "Seřadit _fotky" -#: ui/event.ui:209 ui/media.ui:209 ui/tags.ui:209 +#: ui/event.ui:209 ui/faces.ui:209 ui/media.ui:209 ui/tags.ui:209 msgid "By _Title" msgstr "Podle _názvu" -#: ui/event.ui:214 ui/media.ui:214 ui/tags.ui:214 +#: ui/event.ui:214 ui/faces.ui:214 ui/media.ui:214 ui/tags.ui:214 msgid "By _Filename" msgstr "Podle názvu _souboru" -#: ui/event.ui:219 ui/media.ui:219 ui/tags.ui:219 +#: ui/event.ui:219 ui/faces.ui:219 ui/media.ui:219 ui/tags.ui:219 msgid "By Exposure _Date" msgstr "Podle _data pořízení" -#: ui/event.ui:224 ui/media.ui:224 ui/tags.ui:224 +#: ui/event.ui:224 ui/faces.ui:224 ui/media.ui:224 ui/tags.ui:224 msgid "By _Rating" msgstr "Podle _hodnocení" -#: ui/event.ui:251 ui/import.ui:174 ui/media.ui:251 ui/photo.ui:135 -#: ui/tags.ui:251 +#: ui/event.ui:251 ui/faces.ui:251 ui/import.ui:174 ui/media.ui:251 +#: ui/photo.ui:135 ui/tags.ui:251 msgid "_Descending" msgstr "_Sestupně" -#: ui/event.ui:275 ui/media.ui:275 ui/tags.ui:275 +#: ui/event.ui:275 ui/faces.ui:275 ui/media.ui:275 ui/tags.ui:275 msgid "_Photos" msgstr "_Fotografie" +#: ui/faces.ui:465 +msgid "Rename…" +msgstr "Přejmenovat…" + #: ui/import_queue.ui:8 msgid "_Stop Import" msgstr "Za_stavit import" -#: ui/preferences_dialog.ui:65 -msgid "white" -msgstr "bílé" - -#: ui/preferences_dialog.ui:92 -msgid "black" -msgstr "černé" - -#: ui/preferences_dialog.ui:123 +#: ui/preferences_dialog.ui:67 msgid "Display" msgstr "Zobrazení" -#: ui/preferences_dialog.ui:160 -msgid "_Background:" -msgstr "_Pozadí:" - -#: ui/preferences_dialog.ui:175 +#: ui/preferences_dialog.ui:103 msgid "_Import photos to:" msgstr "_Importovat fotografie do:" -#: ui/preferences_dialog.ui:186 +#: ui/preferences_dialog.ui:114 msgid "_Watch library directory for new files" msgstr "S_ledovat, jestli nejsou do knihovny přidány nové soubory" -#: ui/preferences_dialog.ui:209 +#: ui/preferences_dialog.ui:137 msgid "Importing" msgstr "Import" -#: ui/preferences_dialog.ui:226 +#: ui/preferences_dialog.ui:154 msgid "_Directory structure:" msgstr "Struktura _složek:" -#: ui/preferences_dialog.ui:241 +#: ui/preferences_dialog.ui:169 msgid "Example:" msgstr "Příklad:" -#: ui/preferences_dialog.ui:250 +#: ui/preferences_dialog.ui:178 msgid "R_ename imported files to lowercase" msgstr "Př_evádět názvy importovaných souborů na malá písmena" -#: ui/preferences_dialog.ui:272 +#: ui/preferences_dialog.ui:200 msgid "Metadata" msgstr "Metadata" -#: ui/preferences_dialog.ui:285 +#: ui/preferences_dialog.ui:213 msgid "Write tags, titles, and other _metadata to photo files" msgstr "Zapisovat štítky, názvy a další _metadata do souborů s fotografiemi" -#: ui/preferences_dialog.ui:307 +#: ui/preferences_dialog.ui:235 msgid "RAW Developer" msgstr "Vývojka RAW" -#: ui/preferences_dialog.ui:324 +#: ui/preferences_dialog.ui:252 msgid "De_fault:" msgstr "_Výchozí:" -#: ui/preferences_dialog.ui:378 +#: ui/preferences_dialog.ui:306 msgid "_Pattern:" msgstr "_Vzor:" -#: ui/preferences_dialog.ui:414 +#: ui/preferences_dialog.ui:339 +msgid "" +"When viewing images that are transparent, they will be drawn against this " +"background." +msgstr "" +"Když se zobrazují obrázky, které mají průhlednost, budou vykresleny nad " +"tímto pozadím." + +#: ui/preferences_dialog.ui:343 msgid "Transparent Background:" msgstr "Průhledné pozadí:" -#: ui/preferences_dialog.ui:428 +#: ui/preferences_dialog.ui:357 msgid "Checkered" msgstr "Šachovnice" -#: ui/preferences_dialog.ui:449 +#: ui/preferences_dialog.ui:378 msgid "Solid color" msgstr "Plná barva" -#: ui/preferences_dialog.ui:539 +#: ui/preferences_dialog.ui:441 +msgid "Use dark theme:" +msgstr "Používat tmavý motiv:" + +#: ui/preferences_dialog.ui:492 msgid "E_xternal photo editor:" msgstr "E_xterní editor fotografií:" -#: ui/preferences_dialog.ui:556 +#: ui/preferences_dialog.ui:509 msgid "External _RAW editor:" msgstr "Externí editor _RAW:" -#: ui/preferences_dialog.ui:617 +#: ui/preferences_dialog.ui:570 msgid "External Editors" msgstr "Externí editory" -#: ui/preferences_dialog.ui:642 +#: ui/preferences_dialog.ui:595 msgid "Plugins" msgstr "Zásuvné moduly" -#: ui/preferences_dialog.ui:668 +#: ui/preferences_dialog.ui:621 msgid "Shotwell Preferences" msgstr "Předvolby aplikace Shotwell" @@ -6470,23 +6636,23 @@ msgstr "Na jak dlouho se má zobrazit jedna fotografie" msgid "New _Tag…" msgstr "Nový š_títek…" -#: ui/slideshow_settings.ui:91 +#: ui/slideshow_settings.ui:98 msgid "_Delay:" msgstr "_Doba zobrazení:" -#: ui/slideshow_settings.ui:105 +#: ui/slideshow_settings.ui:112 msgid "_Transition effect:" msgstr "Efek_t přechodu:" -#: ui/slideshow_settings.ui:119 +#: ui/slideshow_settings.ui:126 msgid "Transition d_elay:" msgstr "Trvání př_echodu:" -#: ui/slideshow_settings.ui:129 +#: ui/slideshow_settings.ui:136 msgid "Show t_itle" msgstr "Zobrazovat n_ázev" -#: ui/slideshow_settings.ui:212 ui/slideshow_settings.ui:223 +#: ui/slideshow_settings.ui:219 ui/slideshow_settings.ui:230 msgid "seconds" msgstr "sekund" @@ -6497,18 +6663,3 @@ msgstr "štítek" #: ui/trash.ui:285 msgid "Delete all photos in the trash" msgstr "Vymazat všechny fotografie v koši" - -#~ msgid "" -#~ "Enter the confirmation number which appears after you log into Flickr in " -#~ "your Web browser." -#~ msgstr "" -#~ "Vložte ověřovací kód, který se vám zobrazí po přihlášení ke službě Flickr." - -#~ msgid "Authorization _Number:" -#~ msgstr "Ověřovací _kód:" - -#~ msgid "Width or height" -#~ msgstr "Šířka nebo výška" - -#~ msgid "“%s” isn’t a valid response to an OAuth authentication request" -#~ msgstr "„%s“ není platná odpověď na požadavek ověření protokolu OAuth" diff --git a/po/da.gmo b/po/da.gmo deleted file mode 100644 index 4e5fbde..0000000 Binary files a/po/da.gmo and /dev/null differ diff --git a/po/da.po b/po/da.po index aab5951..45de170 100644 --- a/po/da.po +++ b/po/da.po @@ -22,7 +22,7 @@ msgstr "" "Project-Id-Version: shotwell-0.15.1\n" "Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" "product=shotwell&keywords=I18N+L10N&component=Internationalization\n" -"POT-Creation-Date: 2018-03-03 08:52+0000\n" +"POT-Creation-Date: 2018-03-21 18:48+0000\n" "PO-Revision-Date: 2018-03-08 17:26+0100\n" "Last-Translator: Alan Mortensen \n" "Language-Team: Danish (http://www.transifex.com/projects/p/shotwell/language/" @@ -6257,7 +6257,7 @@ msgstr "Udvidelsesmoduler" #: ui/preferences_dialog.ui:668 msgid "Shotwell Preferences" -msgstr "Shotwell Præferancer" +msgstr "Indstillinger for Shotwell" #: ui/printing_widget.ui:18 msgid "Printed Image Size" diff --git a/po/de.gmo b/po/de.gmo deleted file mode 100644 index 23eb8ea..0000000 Binary files a/po/de.gmo and /dev/null differ diff --git a/po/de.po b/po/de.po index c899fdc..eb66ed8 100644 --- a/po/de.po +++ b/po/de.po @@ -34,7 +34,7 @@ # Typhon , 2012. # Thomas Zach , 2012. # Wolfgang Stöggl , 2014. -# Mario Blättermann , 2016-2017. +# Mario Blättermann , 2016-2018. # Bernd Homuth , 2016. # Benedikt M. Thoma , 2016. # Paul Seyfert , 2016. @@ -42,24 +42,23 @@ msgid "" msgstr "" "Project-Id-Version: master\n" -"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" -"product=shotwell&keywords=I18N+L10N&component=Internationalization\n" -"POT-Creation-Date: 2018-01-17 19:38+0000\n" -"PO-Revision-Date: 2018-02-27 16:59+0100\n" -"Last-Translator: Tim Sabsch \n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/shotwell/issues\n" +"POT-Creation-Date: 2018-06-28 20:40+0000\n" +"PO-Revision-Date: 2018-06-29 21:48+0200\n" +"Last-Translator: Mario Blättermann \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 2.0.6\n" +"X-Generator: Poedit 2.0.7\n" #: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in:4 #: plugins/shotwell-publishing-extras/GalleryConnector.vala:115 #: src/photos/RawSupport.vala:308 ui/collection.ui:85 ui/event.ui:356 -#: ui/event.ui:524 ui/media.ui:356 ui/photo_context.ui:91 ui/photo.ui:347 -#: ui/tags.ui:356 +#: ui/event.ui:524 ui/faces.ui:356 ui/media.ui:356 ui/photo_context.ui:91 +#: ui/photo.ui:347 ui/tags.ui:356 msgid "Shotwell" msgstr "Shotwell" @@ -521,14 +520,13 @@ msgstr "" "oder nicht." #: misc/org.yorba.shotwell.gschema.xml:161 -msgid "background color" -msgstr "Hintergrundfarbe" +msgid "prefer GTK+’s dark theme" +msgstr "Dunkles GTK+-Thema bevorzugen" #: misc/org.yorba.shotwell.gschema.xml:162 -msgid "A grayscale color for use as the background color." +msgid "Whether to use the dark theme of GTK+ for Shotwell or not." msgstr "" -"Eine Farbe der Graustufenskala, die als Hintergrundfarbe verwendet werden " -"soll." +"Legt fest, ob Shotwell ein dunkles GTK+-Thema verwenden soll oder nicht." #: misc/org.yorba.shotwell.gschema.xml:167 msgid "background for transparent images" @@ -1499,7 +1497,7 @@ msgstr "Legitimierung für Flickr ist fehlgeschlagen" msgid "Verifying authorization…" msgstr "Legitimierung wird bestätigt …" -#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:118 +#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:137 msgid "" "You have already logged in and out of a Google service during this Shotwell " "session.\n" @@ -1587,7 +1585,7 @@ msgstr "UI konnte nicht geladen werden: %s" msgid "Visit the Shotwell home page" msgstr "Die Shotwell-Webseite besuchen" -#: plugins/common/Resources.vala:31 src/AppWindow.vala:611 +#: plugins/common/Resources.vala:31 src/AppWindow.vala:603 msgid "translator-credits" msgstr "" "Christian Kirbach \n" @@ -1748,7 +1746,7 @@ msgstr "A_bmelden" #: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:156 #: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:121 #: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:115 -#: src/CollectionPage.vala:82 src/PhotoPage.vala:2469 +#: src/CollectionPage.vala:82 src/PhotoPage.vala:2492 msgid "_Publish" msgstr "_Veröffentlichen" @@ -2222,7 +2220,7 @@ msgid "Logout" msgstr "Abmelden" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:268 -#: src/Resources.vala:296 ui/collection.ui:192 +#: src/Resources.vala:266 ui/collection.ui:192 msgid "Publish" msgstr "Veröffentlichen" @@ -2256,8 +2254,8 @@ msgid "Certificate of %s" msgstr "Zertifikat von %s" #: plugins/shotwell-publishing/PiwigoPublishing.vala:1051 -#: src/Resources.vala:167 ui/multitextentrydialog.ui:40 -#: ui/slideshow_settings.ui:49 +#: src/Resources.vala:137 ui/multitextentrydialog.ui:40 +#: ui/slideshow_settings.ui:52 msgid "_OK" msgstr "_OK" @@ -2466,17 +2464,18 @@ msgstr "Werkzeugleiste immer geöffnet" msgid "Leave fullscreen" msgstr "Vollbild verlassen" -#: src/AppWindow.vala:538 src/AppWindow.vala:559 src/AppWindow.vala:576 +#: src/AppWindow.vala:530 src/AppWindow.vala:551 src/AppWindow.vala:568 #: src/data_imports/DataImportsUI.vala:302 #: src/data_imports/DataImportsUI.vala:420 src/Dialogs.vala:20 -#: src/Dialogs.vala:28 src/Dialogs.vala:753 src/Dialogs.vala:776 -#: src/publishing/PublishingUI.vala:305 src/publishing/PublishingUI.vala:529 -#: src/Resources.vala:158 ui/multitextentrydialog.ui:25 -#: ui/slideshow_settings.ui:35 ui/textentrydialog.ui:19 +#: src/Dialogs.vala:28 src/Dialogs.vala:58 src/Dialogs.vala:766 +#: src/Dialogs.vala:789 src/publishing/PublishingUI.vala:305 +#: src/publishing/PublishingUI.vala:529 src/Resources.vala:128 +#: ui/multitextentrydialog.ui:25 ui/slideshow_settings.ui:38 +#: ui/textentrydialog.ui:19 msgid "_Cancel" msgstr "_Abbrechen" -#: src/AppWindow.vala:586 +#: src/AppWindow.vala:578 #, c-format msgid "" "A fatal error occurred when accessing Shotwell’s library. Shotwell cannot " @@ -2489,21 +2488,21 @@ msgstr "" "\n" "%s" -#: src/AppWindow.vala:607 +#: src/AppWindow.vala:599 msgid "Visit the Shotwell web site" msgstr "Besuchen Sie die Shotwell-Internetseite" -#: src/AppWindow.vala:620 +#: src/AppWindow.vala:612 #, c-format msgid "Unable to display help: %s" msgstr "Die Hilfe kann nicht angezeigt werden: %s" -#: src/AppWindow.vala:628 +#: src/AppWindow.vala:620 #, c-format msgid "Unable to navigate to bug database: %s" msgstr "Zur Datenbank von Fehlerberichten kann nicht gewechselt werden: %s" -#: src/AppWindow.vala:636 +#: src/AppWindow.vala:628 #, c-format msgid "Unable to display FAQ: %s" msgstr "Die oft gestellten Fragen können nicht angezeigt werden: %s" @@ -2579,18 +2578,18 @@ msgstr "Liste aller erkannten Kameras" #: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:711 #: src/camera/ImportPage.vala:727 src/photos/RawSupport.vala:311 -#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/media.ui:361 -#: ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 +#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/faces.ui:361 +#: ui/media.ui:361 ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 msgid "Camera" msgstr "Kamera" #. Translators: First %s is the name of camera as gotten from GPhoto, second is the GVolume name, e.g. Mass storage camera (510MB volume) -#: src/camera/CameraTable.vala:351 +#: src/camera/CameraTable.vala:256 #, c-format msgid "%s (%s)" msgstr "%s (%s)" -#: src/camera/ImportPage.vala:311 src/Properties.vala:230 +#: src/camera/ImportPage.vala:311 src/Properties.vala:233 msgid "RAW+JPEG" msgstr "RAW+JPEG" @@ -2723,7 +2722,7 @@ msgid_plural "Delete these %d files from camera?" msgstr[0] "Sollen diese Dateien von der Kamera gelöscht werden?" msgstr[1] "Sollen diese %d Dateien von der Kamera gelöscht werden?" -#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:720 +#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:733 msgid "_Keep" msgstr "_Behalten" @@ -2741,21 +2740,21 @@ msgstr[1] "" "%d Fotos/Videos können wegen Fehlern nicht von der Kamera gelöscht werden." #: src/CollectionPage.vala:80 src/direct/DirectPhotoPage.vala:85 -#: src/PhotoPage.vala:2464 src/Resources.vala:171 +#: src/PhotoPage.vala:2487 src/Resources.vala:141 msgid "_Print" msgstr "_Drucken" -#: src/CollectionPage.vala:83 src/Resources.vala:324 ui/collection.ui:128 +#: src/CollectionPage.vala:83 src/Resources.vala:294 ui/collection.ui:128 #: ui/direct_context.ui:23 ui/direct.ui:23 ui/event.ui:567 ui/photo.ui:28 msgid "Send _To…" msgstr "Senden _an …" #: src/CollectionPage.vala:84 src/direct/DirectPhotoPage.vala:90 -#: src/PhotoPage.vala:2474 src/Resources.vala:221 +#: src/PhotoPage.vala:2497 src/Resources.vala:191 msgid "Set as _Desktop Background" msgstr "Als Hintergrund_bild festlegen" -#: src/CollectionPage.vala:92 src/Resources.vala:287 +#: src/CollectionPage.vala:92 src/Resources.vala:257 msgid "_Duplicate" msgstr "_Duplizieren" @@ -2767,43 +2766,43 @@ msgstr "Vollbild" msgid "S_lideshow" msgstr "_Diaschau" -#: src/CollectionPage.vala:110 src/Resources.vala:140 ui/direct.ui:111 +#: src/CollectionPage.vala:110 src/Resources.vala:110 ui/direct.ui:111 #: ui/photo.ui:200 msgid "Rotate _Right" msgstr "Nach _rechts drehen" -#: src/CollectionPage.vala:113 src/Resources.vala:145 ui/direct.ui:116 +#: src/CollectionPage.vala:113 src/Resources.vala:115 ui/direct.ui:116 #: ui/photo.ui:205 msgid "Rotate _Left" msgstr "Nach _links drehen" -#: src/CollectionPage.vala:116 src/Resources.vala:150 ui/direct.ui:121 +#: src/CollectionPage.vala:116 src/Resources.vala:120 ui/direct.ui:121 #: ui/photo.ui:210 msgid "Flip Hori_zontally" msgstr "Hori_zontal spiegeln" -#: src/CollectionPage.vala:117 src/Resources.vala:153 ui/direct.ui:125 +#: src/CollectionPage.vala:117 src/Resources.vala:123 ui/direct.ui:125 #: ui/photo.ui:214 msgid "Flip Verti_cally" msgstr "Verti_kal spiegeln" -#: src/CollectionPage.vala:119 src/Resources.vala:187 ui/collection.ui:8 +#: src/CollectionPage.vala:119 src/Resources.vala:157 ui/collection.ui:8 #: ui/direct_context.ui:7 ui/direct.ui:134 ui/event.ui:447 #: ui/photo_context.ui:6 ui/photo.ui:223 msgid "_Enhance" msgstr "_Verbessern" -#: src/CollectionPage.vala:120 src/Resources.vala:215 ui/collection.ui:13 +#: src/CollectionPage.vala:120 src/Resources.vala:185 ui/collection.ui:13 #: ui/direct_context.ui:12 ui/direct.ui:161 ui/event.ui:452 #: ui/photo_context.ui:11 ui/photo.ui:250 msgid "Re_vert to Original" msgstr "_Zurück zum Original" -#: src/CollectionPage.vala:122 src/Resources.vala:191 ui/photo.ui:256 +#: src/CollectionPage.vala:122 src/Resources.vala:161 ui/photo.ui:256 msgid "_Copy Color Adjustments" msgstr "Farbanpassungen _kopieren" -#: src/CollectionPage.vala:125 src/Resources.vala:195 ui/photo.ui:261 +#: src/CollectionPage.vala:125 src/Resources.vala:165 ui/photo.ui:261 msgid "_Paste Color Adjustments" msgstr "Farbanpassungen _einfügen" @@ -2811,17 +2810,17 @@ msgstr "Farbanpassungen _einfügen" msgid "Adjust Date and Time…" msgstr "Datum und Zeit anpassen …" -#: src/CollectionPage.vala:143 src/Resources.vala:320 ui/collection.ui:108 +#: src/CollectionPage.vala:143 src/Resources.vala:290 ui/collection.ui:108 #: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:361 msgid "Open With E_xternal Editor" msgstr "Mit e_xternem Editor öffnen" -#: src/CollectionPage.vala:146 src/Resources.vala:322 ui/collection.ui:113 +#: src/CollectionPage.vala:146 src/Resources.vala:292 ui/collection.ui:113 #: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:366 msgid "Open With RA_W Editor" msgstr "Mit RA_W-Editor öffnen" -#: src/CollectionPage.vala:149 src/Resources.vala:168 +#: src/CollectionPage.vala:149 src/Resources.vala:138 msgid "_Play" msgstr "_Wiedergabe" @@ -2831,7 +2830,7 @@ msgid_plural "Export Photos/Videos" msgstr[0] "Foto/Video exportieren" msgstr[1] "Fotos/Videos exportieren" -#: src/CollectionPage.vala:412 src/Dialogs.vala:59 src/PhotoPage.vala:2998 +#: src/CollectionPage.vala:412 src/Dialogs.vala:74 src/PhotoPage.vala:3021 msgid "Export Photo" msgid_plural "Export Photos" msgstr[0] "Foto exportieren" @@ -2885,92 +2884,92 @@ msgstr "Farbumwandlungen werden angewendet" msgid "Undoing Color Transformations" msgstr "Farbumwandlung wird rückgängig gemacht" -#: src/Commands.vala:1007 +#: src/Commands.vala:1006 msgid "Creating New Event" msgstr "Neues Ereignis wird angelegt" -#: src/Commands.vala:1008 +#: src/Commands.vala:1007 msgid "Removing Event" msgstr "Ereignis wird entfernt" -#: src/Commands.vala:1017 +#: src/Commands.vala:1016 msgid "Moving Photos to New Event" msgstr "Fotos werden in neues Ereignis verschoben" -#: src/Commands.vala:1018 +#: src/Commands.vala:1017 msgid "Setting Photos to Previous Event" msgstr "Fotos werden auf vorheriges Ereignis gesetzt" -#: src/Commands.vala:1075 +#: src/Commands.vala:1074 msgid "Merging" msgstr "Zusammenführen läuft" -#: src/Commands.vala:1076 +#: src/Commands.vala:1075 msgid "Unmerging" msgstr "Zusammenführung wird rückgängig gemacht" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Duplicating photos" msgstr "Fotos werden dupliziert" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Removing duplicated photos" msgstr "Duplizierte Fotos werden entfernt" -#: src/Commands.vala:1108 +#: src/Commands.vala:1107 #, c-format msgid "Unable to duplicate one photo due to a file error" msgid_plural "Unable to duplicate %d photos due to file errors" msgstr[0] "Wegen eines Dateifehlers kann das Foto nicht dupliziert werden" msgstr[1] "Wegen eines Dateifehlers können %d Fotos nicht dupliziert werden" -#: src/Commands.vala:1195 +#: src/Commands.vala:1194 msgid "Restoring previous rating" msgstr "Vorhergehende Bewertung wird wiederhergestellt" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Increasing ratings" msgstr "Bewertung wird erhöht" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Decreasing ratings" msgstr "Bewertung wird verringert" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Setting RAW developer" msgstr "RAW-Entwickler einstellen" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Restoring previous RAW developer" msgstr "Vorherigen RAW-Entwickler wiederherstellen" -#: src/Commands.vala:1257 +#: src/Commands.vala:1256 msgid "Set Developer" msgstr "Entwickler wählen" -#: src/Commands.vala:1347 +#: src/Commands.vala:1346 msgid "Original photo could not be adjusted." msgstr "Originalbild konnte nicht angepasst werden." -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Adjusting Date and Time" msgstr "Datum und Zeit werden abgeglichen" -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Undoing Date and Time Adjustment" msgstr "Datum- und Zeitanpassung werden rückgängig gemacht" -#: src/Commands.vala:1399 +#: src/Commands.vala:1398 msgid "One original photo could not be adjusted." msgid_plural "The following original photos could not be adjusted." msgstr[0] "Ein Originalfoto konnte nicht angepasst werden." msgstr[1] "Die folgenden Originalfotos konnten nicht angepasst werden." -#: src/Commands.vala:1401 src/Commands.vala:1425 +#: src/Commands.vala:1400 src/Commands.vala:1424 msgid "Time Adjustment Error" msgstr "Fehler beim Zeitabgleich" -#: src/Commands.vala:1423 +#: src/Commands.vala:1422 msgid "Time adjustments could not be undone on the following photo file." msgid_plural "" "Time adjustments could not be undone on the following photo files." @@ -2979,60 +2978,60 @@ msgstr[0] "" msgstr[1] "" "Zeitabgleich konnte für die folgenden Fotos nicht rückgängig gemacht werden." -#: src/Commands.vala:1637 src/Commands.vala:1660 +#: src/Commands.vala:1636 src/Commands.vala:1659 msgid "Create Tag" msgstr "Stichwort zuordnen" -#: src/Commands.vala:1695 +#: src/Commands.vala:1694 #, c-format msgid "Move Tag “%s”" msgstr "Stichwort »%s« verschieben" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Move Photos to Trash" msgstr "Fotos in den Papierkorb verschieben" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Restore Photos from Trash" msgstr "Fotos aus dem Papierkorb wiederherstellen" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Move the photos to the Shotwell trash" msgstr "Fotos in den Shotwell-Papierkorb verschieben" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Restore the photos back to the Shotwell library" msgstr "Fotos in der Shotwell-Bibliothek wiederherstellen" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Moving Photos to Trash" msgstr "Fotos werden in den Papierkorb verschoben" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Restoring Photos From Trash" msgstr "Fotos werden aus dem Papierkorb wiederhergestellt" -#: src/Commands.vala:2453 +#: src/Commands.vala:2452 msgid "Flag selected photos" msgstr "Ausgewählte Fotos markieren" -#: src/Commands.vala:2454 +#: src/Commands.vala:2453 msgid "Unflag selected photos" msgstr "Markierung für die ausgewählten Fotos aufheben" -#: src/Commands.vala:2455 +#: src/Commands.vala:2454 msgid "Flagging selected photos" msgstr "Die gewählten Fotos werden markiert" -#: src/Commands.vala:2456 +#: src/Commands.vala:2455 msgid "Unflagging selected photos" msgstr "Die Markierung der gewählten Fotos wird entfernt" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Flag" msgstr "Markieren" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Unflag" msgstr "Markierung aufheben" @@ -3073,7 +3072,7 @@ msgstr "" msgid "Database file:" msgstr "Datenbankdatei:" -#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:782 +#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:784 msgid "_Import" msgstr "_Import" @@ -3155,10 +3154,11 @@ msgid_plural "This will remove the tag “%s” from %d photos. Continue?" msgstr[0] "Dies wird das Stichwort »%s« von einem Foto entfernen. Fortsetzen?" msgstr[1] "Dies wird das Stichwort »%s« von %d Fotos entfernen. Fortsetzen?" -#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:721 -#: src/Resources.vala:159 src/Resources.vala:362 src/Resources.vala:415 -#: src/Resources.vala:659 ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 -#: ui/trash.ui:216 ui/trash.ui:258 +#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:58 +#: src/Dialogs.vala:734 src/Resources.vala:129 src/Resources.vala:310 +#: src/Resources.vala:341 src/Resources.vala:394 src/Resources.vala:734 +#: ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 ui/trash.ui:216 +#: ui/trash.ui:258 msgid "_Delete" msgstr "_Löschen" @@ -3186,11 +3186,20 @@ msgstr[1] "" msgid "_Switch Developer" msgstr "Entwickler _wechseln" -#: src/Dialogs.vala:59 +#: src/Dialogs.vala:54 +#, c-format +msgid "This will remove the face “%s” from one photo. Continue?" +msgid_plural "This will remove the face “%s” from %d photos. Continue?" +msgstr[0] "" +"Dies wird die Gesichtsmarkierung »%s« von einem Foto entfernen. Fortsetzen?" +msgstr[1] "" +"Dies wird die Gesichtsmarkierung »%s« von %d Fotos entfernen. Fortsetzen?" + +#: src/Dialogs.vala:74 msgid "Export Video" msgstr "Video exportieren" -#: src/Dialogs.vala:84 +#: src/Dialogs.vala:99 msgid "Export Photos" msgstr "Fotos exportieren" @@ -3199,7 +3208,7 @@ msgstr "Fotos exportieren" #. if we can't copy an image over for editing in an external tool. #. Did we fail because we can't write to this directory? #. Yes - display an alternate error message here. -#: src/Dialogs.vala:112 +#: src/Dialogs.vala:127 #, c-format msgid "" "Shotwell couldn’t create a file for editing this photo because you do not " @@ -3208,7 +3217,7 @@ msgstr "" "Shotwell konnte keine Datei zur Bearbeitung dieses Fotos erstellen, weil Sie " "keine Berechtigung haben, um auf %s zu schreiben." -#: src/Dialogs.vala:121 +#: src/Dialogs.vala:136 msgid "" "Unable to export the following photo due to a file error.\n" "\n" @@ -3216,7 +3225,7 @@ msgstr "" "Das Foto kann wegen eines Dateifehlers nicht exportiert werden.\n" "\n" -#: src/Dialogs.vala:127 +#: src/Dialogs.vala:142 msgid "" "\n" "\n" @@ -3226,35 +3235,35 @@ msgstr "" "\n" "Möchten Sie mit dem Exportieren fortfahren?" -#: src/Dialogs.vala:128 +#: src/Dialogs.vala:143 msgid "Con_tinue" msgstr "For_tsetzen" -#: src/Dialogs.vala:139 +#: src/Dialogs.vala:153 msgid "Save Details…" msgstr "Details speichern …" -#: src/Dialogs.vala:140 +#: src/Dialogs.vala:154 msgid "Save Details" msgstr "Details speichern" -#: src/Dialogs.vala:155 +#: src/Dialogs.vala:169 #, c-format msgid "(and %d more)\n" msgstr "(und %d andere)\n" -#: src/Dialogs.vala:208 +#: src/Dialogs.vala:222 msgid "Import Results Report" msgstr "Importergebnisse anzeigen" -#: src/Dialogs.vala:212 +#: src/Dialogs.vala:226 #, c-format msgid "Attempted to import %d file." msgid_plural "Attempted to import %d files." msgstr[0] "%d Datei zu importieren versucht." msgstr[1] "%d Dateien zu importieren versucht." -#: src/Dialogs.vala:215 +#: src/Dialogs.vala:229 #, c-format msgid "Of these, %d file was successfully imported." msgid_plural "Of these, %d files were successfully imported." @@ -3264,30 +3273,30 @@ msgstr[1] "Davon wurden %d Dateien erfolgreich importiert." #. #. Duplicates #. -#: src/Dialogs.vala:227 +#: src/Dialogs.vala:241 msgid "Duplicate Photos/Videos Not Imported:" msgstr "Duplikate von Fotos und Videos wurden nicht importiert:" -#: src/Dialogs.vala:231 +#: src/Dialogs.vala:245 msgid "duplicates existing media item" msgstr "dupliziert bestehendes Medienelement" #. #. Files Not Imported Due to Camera Errors #. -#: src/Dialogs.vala:242 +#: src/Dialogs.vala:256 msgid "Photos/Videos Not Imported Due to Camera Errors:" msgstr "Fotos/Videos wurden aufgrund von Kamera-Fehlern nicht importiert:" -#: src/Dialogs.vala:245 src/Dialogs.vala:260 src/Dialogs.vala:275 -#: src/Dialogs.vala:291 src/Dialogs.vala:306 src/Dialogs.vala:320 +#: src/Dialogs.vala:259 src/Dialogs.vala:274 src/Dialogs.vala:289 +#: src/Dialogs.vala:305 src/Dialogs.vala:320 src/Dialogs.vala:334 msgid "error message:" msgstr "Fehlermeldung:" #. #. Files Not Imported Because They Weren't Recognized as Photos or Videos #. -#: src/Dialogs.vala:256 +#: src/Dialogs.vala:270 msgid "Files Not Imported Because They Weren’t Recognized as Photos or Videos:" msgstr "" "Diese Dateien wurden nicht importiert, da Sie nicht als Foto oder Video " @@ -3296,7 +3305,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands #. -#: src/Dialogs.vala:271 +#: src/Dialogs.vala:285 msgid "" "Photos/Videos Not Imported Because They Weren’t in a Format Shotwell " "Understands:" @@ -3307,7 +3316,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library #. -#: src/Dialogs.vala:286 +#: src/Dialogs.vala:300 msgid "" "Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into its " "Library:" @@ -3315,7 +3324,7 @@ msgstr "" "Dateien wurden nicht importiert, da Sie nicht in die Bibliothek kopiert " "werden konnten:" -#: src/Dialogs.vala:290 +#: src/Dialogs.vala:304 #, c-format msgid "" "couldn’t copy %s\n" @@ -3327,7 +3336,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt #. -#: src/Dialogs.vala:302 +#: src/Dialogs.vala:316 msgid "Photos/Videos Not Imported Because Files Are Corrupt:" msgstr "" "Fotos/Videos konnten nicht importiert werden, da die Dateien beschädigt sind:" @@ -3335,32 +3344,32 @@ msgstr "" #. #. Photos/Videos Not Imported for Other Reasons #. -#: src/Dialogs.vala:317 +#: src/Dialogs.vala:331 msgid "Photos/Videos Not Imported for Other Reasons:" msgstr "Foto/Videos wurden aus anderen Gründen nicht importiert:" -#: src/Dialogs.vala:337 +#: src/Dialogs.vala:351 #, c-format msgid "1 duplicate photo was not imported:\n" msgid_plural "%d duplicate photos were not imported:\n" msgstr[0] "1 Duplikat des Fotos wurde nicht importiert:\n" msgstr[1] "%d Duplikate des Fotos wurden nicht importiert:\n" -#: src/Dialogs.vala:340 +#: src/Dialogs.vala:354 #, c-format msgid "1 duplicate video was not imported:\n" msgid_plural "%d duplicate videos were not imported:\n" msgstr[0] "1 Duplikat des Videos wurde nicht importiert:\n" msgstr[1] "%d Duplikate des Videos wurden nicht importiert:\n" -#: src/Dialogs.vala:343 +#: src/Dialogs.vala:357 #, c-format msgid "1 duplicate photo/video was not imported:\n" msgid_plural "%d duplicate photos/videos were not imported:\n" msgstr[0] "1 Duplikat des Fotos/Videos wurde nicht importiert:\n" msgstr[1] "%d Duplikate der Fotos/Videos wurden nicht importiert:\n" -#: src/Dialogs.vala:357 +#: src/Dialogs.vala:371 #, c-format msgid "1 photo failed to import due to a file or hardware error:\n" msgid_plural "%d photos failed to import due to a file or hardware error:\n" @@ -3370,7 +3379,7 @@ msgstr[0] "" msgstr[1] "" "%d Fotos konnten wegen Datei- oder Hardwarefehlern nicht importiert werden:\n" -#: src/Dialogs.vala:360 +#: src/Dialogs.vala:374 #, c-format msgid "1 video failed to import due to a file or hardware error:\n" msgid_plural "%d videos failed to import due to a file or hardware error:\n" @@ -3381,7 +3390,7 @@ msgstr[1] "" "%d Videos konnten wegen Datei- oder Hardwarefehlern nicht importiert " "werden:\n" -#: src/Dialogs.vala:363 +#: src/Dialogs.vala:377 #, c-format msgid "1 photo/video failed to import due to a file or hardware error:\n" msgid_plural "" @@ -3393,7 +3402,7 @@ msgstr[1] "" "%d Fotos/Videos konnten wegen Datei- oder Hardwarefehlern nicht importiert " "werden:\n" -#: src/Dialogs.vala:366 +#: src/Dialogs.vala:380 #, c-format msgid "1 file failed to import due to a file or hardware error:\n" msgid_plural "%d files failed to import due to a file or hardware error:\n" @@ -3404,7 +3413,7 @@ msgstr[1] "" "%d Dateien konnten wegen eines Datei- oder Hardwarefehlers nicht importiert " "werden:\n" -#: src/Dialogs.vala:380 +#: src/Dialogs.vala:394 #, c-format msgid "" "1 photo failed to import because the photo library folder was not writable:\n" @@ -3418,7 +3427,7 @@ msgstr[1] "" "%d Fotos wurden nicht importiert, weil der Ordner der Foto-Bibliothek " "schreibgeschützt ist:\n" -#: src/Dialogs.vala:383 +#: src/Dialogs.vala:397 #, c-format msgid "" "1 video failed to import because the photo library folder was not writable:\n" @@ -3432,7 +3441,7 @@ msgstr[1] "" "%d Videos wurden nicht importiert, weil der Ordner mit der Foto-Bibliothek " "schreibgeschützt ist:\n" -#: src/Dialogs.vala:386 +#: src/Dialogs.vala:400 #, c-format msgid "" "1 photo/video failed to import because the photo library folder was not " @@ -3447,7 +3456,7 @@ msgstr[1] "" "%d Fotos/Videos wurden nicht importiert, weil der Ordner mit der Foto-" "Bibliothek schreibgeschützt ist:\n" -#: src/Dialogs.vala:389 +#: src/Dialogs.vala:403 #, c-format msgid "" "1 file failed to import because the photo library folder was not writable:\n" @@ -3461,7 +3470,7 @@ msgstr[1] "" "%d Dateien wurden nicht importiert, weil der Ordner mit der Foto-Bibliothek " "schreibgeschützt ist:\n" -#: src/Dialogs.vala:403 +#: src/Dialogs.vala:417 #, c-format msgid "1 photo failed to import due to a camera error:\n" msgid_plural "%d photos failed to import due to a camera error:\n" @@ -3470,7 +3479,7 @@ msgstr[0] "" msgstr[1] "" "%d Fotos konnten wegen eines Kamerafehlers nicht importiert werden:\n" -#: src/Dialogs.vala:406 +#: src/Dialogs.vala:420 #, c-format msgid "1 video failed to import due to a camera error:\n" msgid_plural "%d videos failed to import due to a camera error:\n" @@ -3479,7 +3488,7 @@ msgstr[0] "" msgstr[1] "" "%d Videos konnten wegen eines Kamerafehlers nicht importiert werden:\n" -#: src/Dialogs.vala:409 +#: src/Dialogs.vala:423 #, c-format msgid "1 photo/video failed to import due to a camera error:\n" msgid_plural "%d photos/videos failed to import due to a camera error:\n" @@ -3488,7 +3497,7 @@ msgstr[0] "" msgstr[1] "" "%d Fotos/Videos konnten wegen eines Kamerafehlers nicht importiert werden:\n" -#: src/Dialogs.vala:412 +#: src/Dialogs.vala:426 #, c-format msgid "1 file failed to import due to a camera error:\n" msgid_plural "%d files failed to import due to a camera error:\n" @@ -3497,7 +3506,7 @@ msgstr[0] "" msgstr[1] "" "%d Dateien konnte wegen eines Kamerafehlers nicht importiert werden:\n" -#: src/Dialogs.vala:426 +#: src/Dialogs.vala:440 #, c-format msgid "1 photo failed to import because it was corrupt:\n" msgid_plural "%d photos failed to import because they were corrupt:\n" @@ -3507,7 +3516,7 @@ msgstr[1] "" "%d Fotos konnten nicht importiert werden, weil die Dateien beschädigt " "waren:\n" -#: src/Dialogs.vala:429 +#: src/Dialogs.vala:443 #, c-format msgid "1 video failed to import because it was corrupt:\n" msgid_plural "%d videos failed to import because they were corrupt:\n" @@ -3516,7 +3525,7 @@ msgstr[0] "" msgstr[1] "" "%d Videos konnten nicht importiert werden, weil die Datei beschädigt war:\n" -#: src/Dialogs.vala:432 +#: src/Dialogs.vala:446 #, c-format msgid "1 photo/video failed to import because it was corrupt:\n" msgid_plural "%d photos/videos failed to import because they were corrupt:\n" @@ -3527,7 +3536,7 @@ msgstr[1] "" "%d Fotos/Videos konnten nicht importiert werden, weil die Datei beschädigt " "war:\n" -#: src/Dialogs.vala:435 +#: src/Dialogs.vala:449 #, c-format msgid "1 file failed to import because it was corrupt:\n" msgid_plural "%d files failed to import because it was corrupt:\n" @@ -3540,7 +3549,7 @@ msgstr[1] "" #. standard container formats are supported, it's just that the streams in them #. might or might not be interpretable), so this message does not need to be #. media specific -#: src/Dialogs.vala:452 +#: src/Dialogs.vala:466 #, c-format msgid "1 unsupported photo skipped:\n" msgid_plural "%d unsupported photos skipped:\n" @@ -3549,56 +3558,56 @@ msgstr[1] "%d Fotos mit nicht unterstütztem Format wurden übersprungen:\n" #. we have no notion of "non-video" video files right now in Shotwell, so this #. message doesn't need to be media specific -#: src/Dialogs.vala:467 +#: src/Dialogs.vala:481 #, c-format msgid "1 non-image file skipped.\n" msgid_plural "%d non-image files skipped.\n" msgstr[0] "Eine Nicht-Bilddatei wurde übersprungen.\n" msgstr[1] "%d Nicht-Bilddateien wurde übersprungen.\n" -#: src/Dialogs.vala:478 +#: src/Dialogs.vala:492 #, c-format msgid "1 photo skipped due to user cancel:\n" msgid_plural "%d photos skipped due to user cancel:\n" msgstr[0] "Ein Foto wurde wegen Abbruchs durch den Benutzer übersprungen:\n" msgstr[1] "%d Fotos wurden wegen Abbruchs durch den Benutzer übersprungen:\n" -#: src/Dialogs.vala:481 +#: src/Dialogs.vala:495 #, c-format msgid "1 video skipped due to user cancel:\n" msgid_plural "%d videos skipped due to user cancel:\n" msgstr[0] "Ein Video wurde wegen Abbruchs durch den Benutzer übersprungen:\n" msgstr[1] "%d Videos wurden wegen Abbruchs durch den Benutzer übersprungen:\n" -#: src/Dialogs.vala:484 +#: src/Dialogs.vala:498 #, c-format msgid "1 photo/video skipped due to user cancel:\n" msgid_plural "%d photos/videos skipped due to user cancel:\n" msgstr[0] "Ein Foto/Video wegen Abbruchs durch den Benutzer übersprungen.\n" msgstr[1] "%d Fotos/Videos wegen Abbruchs durch den Benutzer übersprungen.\n" -#: src/Dialogs.vala:487 +#: src/Dialogs.vala:501 #, c-format msgid "1 file skipped due to user cancel:\n" msgid_plural "%d file skipped due to user cancel:\n" msgstr[0] "Eine Datei wegen Abbruchs durch den Benutzer übersprungen.\n" msgstr[1] "%d Dateien wegen Abbruchs durch den Benutzer übersprungen.\n" -#: src/Dialogs.vala:501 +#: src/Dialogs.vala:515 #, c-format msgid "1 photo successfully imported.\n" msgid_plural "%d photos successfully imported.\n" msgstr[0] "Ein Foto wurde erfolgreich importiert.\n" msgstr[1] "%d Fotos wurden erfolgreich importiert.\n" -#: src/Dialogs.vala:504 +#: src/Dialogs.vala:518 #, c-format msgid "1 video successfully imported.\n" msgid_plural "%d videos successfully imported.\n" msgstr[0] "Ein Video wurde erfolgreich importiert.\n" msgstr[1] "%d Videos wurden erfolgreich importiert.\n" -#: src/Dialogs.vala:507 +#: src/Dialogs.vala:521 #, c-format msgid "1 photo/video successfully imported.\n" msgid_plural "%d photos/videos successfully imported.\n" @@ -3607,64 +3616,64 @@ msgstr[1] "%d Fotos/Videos wurden erfolgreich importiert.\n" #. if no media items were imported at all (i.e. an empty directory attempted), need to at least #. report that nothing was imported -#: src/Dialogs.vala:523 +#: src/Dialogs.vala:537 msgid "No photos or videos imported.\n" msgstr "Es wurden keine Fotos oder Videos importiert.\n" -#: src/Dialogs.vala:530 src/Dialogs.vala:549 +#: src/Dialogs.vala:544 src/Dialogs.vala:563 msgid "Import Complete" msgstr "Import abgeschlossen" -#: src/Dialogs.vala:650 src/Resources.vala:232 +#: src/Dialogs.vala:663 src/Resources.vala:202 msgid "Rename Event" msgstr "Ereignis umbenennen" -#: src/Dialogs.vala:650 +#: src/Dialogs.vala:663 msgid "Name:" msgstr "Name:" #. Dialog title -#: src/Dialogs.vala:661 +#: src/Dialogs.vala:674 msgctxt "Dialog Title" msgid "Edit Title" msgstr "Titel bearbeiten" -#: src/Dialogs.vala:662 src/Properties.vala:343 +#: src/Dialogs.vala:675 src/Properties.vala:346 msgid "Title:" msgstr "Titel:" #. Dialog title -#: src/Dialogs.vala:678 src/Resources.vala:308 +#: src/Dialogs.vala:691 src/Resources.vala:278 msgid "Edit Event Comment" msgstr "Kommentar des Ereignisses bearbeiten" -#: src/Dialogs.vala:679 +#: src/Dialogs.vala:692 msgid "Edit Photo/Video Comment" msgstr "Foto-/Video-Kommentar bearbeiten" -#: src/Dialogs.vala:680 src/Properties.vala:631 +#: src/Dialogs.vala:693 src/Properties.vala:645 msgid "Comment:" msgstr "Kommentar:" -#: src/Dialogs.vala:696 +#: src/Dialogs.vala:709 msgid "Remove and _Trash File" msgid_plural "Remove and _Trash Files" msgstr[0] "Datei entfernen und _löschen" msgstr[1] "Dateien entfernen und _löschen" -#: src/Dialogs.vala:700 +#: src/Dialogs.vala:713 msgid "_Remove From Library" msgstr "Aus der Bibliothek _entfernen" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edit?" msgstr "Externe Veränderung zurücknehmen?" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edits?" msgstr "Externe Veränderungen zurücknehmen?" -#: src/Dialogs.vala:745 +#: src/Dialogs.vala:758 #, c-format msgid "This will destroy all changes made to the external file. Continue?" msgid_plural "" @@ -3674,34 +3683,34 @@ msgstr[0] "" msgstr[1] "" "Dies wird alle Veränderungen der %d externen Dateien zerstören. Fortfahren?" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edit" msgstr "Externe _Veränderung zurücknehmen" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edits" msgstr "Externe _Veränderungen zurücknehmen" -#: src/Dialogs.vala:770 +#: src/Dialogs.vala:783 #, c-format msgid "This will remove the photo from the library. Continue?" msgid_plural "This will remove %d photos from the library. Continue?" msgstr[0] "Dies wird das Foto aus der Bibliothek entfernen. Fortsetzen?" msgstr[1] "Dies wird %d Fotos aus der Bibliothek entfernen. Fortsetzen?" -#: src/Dialogs.vala:777 src/Resources.vala:174 +#: src/Dialogs.vala:790 src/Resources.vala:144 msgid "_Remove" msgstr "Entfe_rnen" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photo From Library" msgstr "Foto aus der Bibliothek entfernen" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photos From Library" msgstr "Fotos aus der Bibliothek entfernen" -#: src/Dialogs.vala:798 +#: src/Dialogs.vala:811 #, c-format msgid "" "\n" @@ -3720,13 +3729,13 @@ msgstr[1] "" "\n" "und %d andere." -#: src/Dialogs.vala:822 src/Dialogs.vala:849 +#: src/Dialogs.vala:835 src/Dialogs.vala:862 msgid "Tags (separated by commas):" msgstr "Stichworte (getrennt durch Kommata):" #. This function is used to determine whether or not files should be copied or linked when imported. #. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. -#: src/Dialogs.vala:908 +#: src/Dialogs.vala:921 msgid "" "Shotwell can copy the photos into your library folder or it can import them " "without copying." @@ -3734,31 +3743,31 @@ msgstr "" "Shotwell kann die Fotos aus dem Ordner in die Bibliothek kopieren oder sie " "können verknüpft werden, ohne sie zu kopieren." -#: src/Dialogs.vala:913 +#: src/Dialogs.vala:926 msgid "Co_py Photos" msgstr "Fotos ko_pieren" -#: src/Dialogs.vala:914 +#: src/Dialogs.vala:927 msgid "_Import in Place" msgstr "_Import durch Verknüpfen" -#: src/Dialogs.vala:915 +#: src/Dialogs.vala:928 msgid "Import to Library" msgstr "In Bibliothek importieren" -#: src/Dialogs.vala:925 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:938 src/PhotoPage.vala:2897 msgid "Remove From Library" msgstr "Aus Bibliothek entfernen" -#: src/Dialogs.vala:926 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:939 src/PhotoPage.vala:2897 msgid "Removing Photo From Library" msgstr "Foto wird aus Bibliothek entfernt" -#: src/Dialogs.vala:926 +#: src/Dialogs.vala:939 msgid "Removing Photos From Library" msgstr "Fotos werden aus Bibliothek entfernt" -#: src/Dialogs.vala:940 +#: src/Dialogs.vala:953 #, c-format msgid "" "This will remove the photo/video from your Shotwell library. Would you also " @@ -3781,7 +3790,7 @@ msgstr[1] "" "\n" "Diese Aktion kann nicht rückgängig gemacht werden!" -#: src/Dialogs.vala:944 +#: src/Dialogs.vala:957 #, c-format msgid "" "This will remove the video from your Shotwell library. Would you also like " @@ -3804,7 +3813,7 @@ msgstr[1] "" "\n" "Diese Aktion kann nicht rückgängig gemacht werden!" -#: src/Dialogs.vala:948 +#: src/Dialogs.vala:961 #, c-format msgid "" "This will remove the photo from your Shotwell library. Would you also like " @@ -3827,7 +3836,7 @@ msgstr[1] "" "\n" "Diese Aktion kann nicht rückgängig gemacht werden!" -#: src/Dialogs.vala:980 +#: src/Dialogs.vala:993 #, c-format msgid "" "The photo or video cannot be moved to your desktop trash. Delete this file?" @@ -3841,7 +3850,7 @@ msgstr[1] "" "löschen?" #. Alert the user that the files were not removed. -#: src/Dialogs.vala:997 +#: src/Dialogs.vala:1010 #, c-format msgid "The photo or video cannot be deleted." msgid_plural "%d photos/videos cannot be deleted." @@ -3880,7 +3889,7 @@ msgstr "" msgid "Unable open photo %s. Sorry." msgstr "Das Foto %s kann nicht geöffnet werden. Entschuldigung." -#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:176 ui/direct.ui:8 +#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:146 ui/direct.ui:8 #: ui/textentrydialog.ui:33 msgid "_Save" msgstr "_Speichern" @@ -4035,35 +4044,35 @@ msgstr "_Metadaten exportieren:" #. We're installed system-wide, so use the system help. #. We're being run from the build directory; we'll have to handle clicks to this #. link manually ourselves, due to a limitation of help: URIs. -#: src/dialogs/Preferences.vala:115 src/dialogs/Preferences.vala:119 +#: src/dialogs/Preferences.vala:108 src/dialogs/Preferences.vala:112 msgid "(Help)" msgstr "(Hilfe)" -#: src/dialogs/Preferences.vala:123 +#: src/dialogs/Preferences.vala:116 #, c-format msgid "Year%sMonth%sDay" msgstr "Jahr%sMonat%sTag" -#: src/dialogs/Preferences.vala:125 +#: src/dialogs/Preferences.vala:118 #, c-format msgid "Year%sMonth" msgstr "Jahr%sMonat" -#: src/dialogs/Preferences.vala:127 +#: src/dialogs/Preferences.vala:120 #, c-format msgid "Year%sMonth-Day" msgstr "Jahr%sMonat-Tag" -#: src/dialogs/Preferences.vala:129 +#: src/dialogs/Preferences.vala:122 msgid "Year-Month-Day" msgstr "Jahr-Monat-Tag" -#: src/dialogs/Preferences.vala:130 src/editing_tools/EditingTools.vala:760 +#: src/dialogs/Preferences.vala:123 src/editing_tools/EditingTools.vala:760 msgid "Custom" msgstr "Benutzerdefiniert" #. Invalid pattern. -#: src/dialogs/Preferences.vala:369 +#: src/dialogs/Preferences.vala:351 msgid "Invalid pattern" msgstr "Ungültiges Muster" @@ -4252,7 +4261,7 @@ msgstr "30 × 40 cm" msgid "A3 (297 × 420 mm)" msgstr "A3 (297 × 420 mm)" -#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:398 +#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:401 msgid "Size:" msgstr "Größe:" @@ -4270,8 +4279,8 @@ msgid "_Reset" msgstr "_Zurücksetzen" #. fit both on the top line, emit and move on -#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:439 -#: src/Properties.vala:443 src/Properties.vala:450 +#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:442 +#: src/Properties.vala:446 src/Properties.vala:453 msgid "Exposure:" msgstr "Belichtung:" @@ -4345,7 +4354,7 @@ msgstr "Kontrastanhebung" msgid "Angle:" msgstr "Winkel:" -#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:203 +#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:173 #: ui/direct.ui:144 ui/photo.ui:233 msgid "_Straighten" msgstr "Au_srichten" @@ -4357,14 +4366,14 @@ msgid_plural "%d Photos/Videos" msgstr[0] "%d Foto/Video" msgstr[1] "%d Fotos/Videos" -#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:358 +#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:361 #, c-format msgid "%d Video" msgid_plural "%d Videos" msgstr[0] "%d Film" msgstr[1] "%d Filme" -#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:356 +#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:359 #, c-format msgid "%d Photo" msgid_plural "%d Photos" @@ -4443,6 +4452,75 @@ msgstr "_Alle ersetzen" msgid "Export" msgstr "Exportieren" +#: src/faces/FacesBranch.vala:89 src/Resources.vala:305 src/Resources.vala:306 +#: ui/faces.ui:403 +msgid "Faces" +msgstr "Gesichter" + +#: src/faces/FacesTool.vala:115 +msgid "Detect faces…" +msgstr "Gesichter erkennen …" + +#: src/faces/FacesTool.vala:140 +msgid "Detect faces on this photo" +msgstr "Gesichter auf diesem Foto erkennen" + +#: src/faces/FacesTool.vala:142 +msgid "Cancel face detection" +msgstr "Gesichtererkennung abbrechen" + +#: src/faces/FacesTool.vala:146 +msgid "Close the Faces tool without saving changes" +msgstr "Das Gesichtserkennungswerkzeug ohne Speichern der Änderungen schließen" + +#: src/faces/FacesTool.vala:153 src/faces/FacesTool.vala:185 +msgid "Click and drag to tag a face" +msgstr "Klicken und ziehen Sie, um ein Gesicht zu markieren" + +#: src/faces/FacesTool.vala:180 +#, c-format +msgid "Click to edit face %s" +msgstr "Klicken Sie, um die Gesichtsmarkierung %s zu bearbeiten" + +#: src/faces/FacesTool.vala:189 +msgid "Stop dragging to add your face and name it." +msgstr "" +"Beenden Sie das Ziehen, um das Gesicht hinzuzufügen und es zu benennen." + +#: src/faces/FacesTool.vala:193 +msgid "Type a name for this face, then press Enter" +msgstr "" +"Geben Sie einen Namen für das Gesicht ein und drücken Sie dann die " +"Eingabetaste" + +#: src/faces/FacesTool.vala:197 +msgid "Move or modify the face shape or name and press Enter" +msgstr "" +"Verschieben oder ändern Sie die Gesichtsform oder den Namen und drücken Sie " +"dann die Eingabetaste" + +#: src/faces/FacesTool.vala:201 +msgid "Detecting faces" +msgstr "Gesichter erkennen" + +#: src/faces/FacesTool.vala:212 +msgid "If you don’t set the name of unknown faces they won’t be saved." +msgstr "" +"Wenn Sie unbekannten Gesichtern keinen Namen geben, werden diese nicht " +"gespeichert." + +#: src/faces/FacesTool.vala:233 +msgid "Save changes and close the Faces tool" +msgstr "Änderungen speichern und das Gesichtserkennungswerkzeug schließen" + +#: src/faces/FacesTool.vala:235 +msgid "No changes to save" +msgstr "Keine Änderungen zum Speichern" + +#: src/faces/FacesTool.vala:956 +msgid "Error trying to spawn face detection program:\n" +msgstr "Fehler beim Aufruf des externen Programms zur Gesichtererkennung:\n" + #: src/folders/FoldersBranch.vala:144 msgid "Folders" msgstr "Ordner" @@ -4451,8 +4529,16 @@ msgstr "Ordner" msgid "Browse the library’s folder structure" msgstr "Die Ordnerstruktur der Bibliothek durchsuchen" -#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1098 -#: src/SearchFilter.vala:1099 +#: src/import-roll/ImportRollBranch.vala:44 +msgid "Imports" +msgstr "Importe" + +#: src/import-roll/ImportRollBranch.vala:44 +msgid "Browse the library’s import history" +msgstr "Den Importverlauf der Bibliothek durchsuchen" + +#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1124 +#: src/SearchFilter.vala:1125 msgid "Flagged" msgstr "Markiert" @@ -4474,7 +4560,7 @@ msgid "Last Import" msgstr "Letzter Import" #: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 -#: ui/preferences_dialog.ui:512 +#: ui/preferences_dialog.ui:465 msgid "Library" msgstr "Bibliothek" @@ -4482,27 +4568,27 @@ msgstr "Bibliothek" msgid "Organize and browse your photos" msgstr "Ihre Fotos durchsuchen und organisieren" -#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1079 +#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1105 msgid "Photos" msgstr "Fotos" -#: src/library/LibraryWindow.vala:508 +#: src/library/LibraryWindow.vala:527 msgid "Import From Folder" msgstr "Aus Ordner importieren" -#: src/library/LibraryWindow.vala:515 +#: src/library/LibraryWindow.vala:534 msgid "Recurse Into Subfolders" msgstr "Unterordner einbeziehen" -#: src/library/LibraryWindow.vala:583 ui/trash.ui:288 +#: src/library/LibraryWindow.vala:602 ui/trash.ui:288 msgid "Empty Trash" msgstr "Papierkorb leeren" -#: src/library/LibraryWindow.vala:583 +#: src/library/LibraryWindow.vala:602 msgid "Emptying Trash…" msgstr "Papierkorb wird geleert …" -#: src/library/LibraryWindow.vala:779 +#: src/library/LibraryWindow.vala:781 #, c-format msgid "" "Shotwell is configured to import photos to your home directory.\n" @@ -4516,33 +4602,33 @@ msgstr "" "bearbeiten zu ändern.\n" "Möchten Sie mit dem Importieren der Fotos fortfahren?" -#: src/library/LibraryWindow.vala:782 ui/preferences_dialog.ui:142 +#: src/library/LibraryWindow.vala:784 ui/preferences_dialog.ui:86 msgid "Library Location" msgstr "Speicherort der Bibliothek" #. TODO: Specify which directory/file. -#: src/library/LibraryWindow.vala:795 +#: src/library/LibraryWindow.vala:797 msgid "Photos cannot be imported from this directory." msgstr "Aus diesem Ordner können keine Fotos importiert werden." -#: src/library/LibraryWindow.vala:1075 +#: src/library/LibraryWindow.vala:1077 #, c-format msgid "%s (%d%%)" msgstr "%s (%d%%)" -#: src/library/LibraryWindow.vala:1119 src/library/LibraryWindow.vala:1130 +#: src/library/LibraryWindow.vala:1121 src/library/LibraryWindow.vala:1132 msgid "Updating library…" msgstr "Bibliothek wird aktualisiert …" -#: src/library/LibraryWindow.vala:1136 +#: src/library/LibraryWindow.vala:1138 msgid "Preparing to auto-import photos…" msgstr "Preparing to auto-import photos…" -#: src/library/LibraryWindow.vala:1141 +#: src/library/LibraryWindow.vala:1143 msgid "Auto-importing photos…" msgstr "Fotos werden automatisch importiert …" -#: src/library/LibraryWindow.vala:1149 +#: src/library/LibraryWindow.vala:1151 msgid "Writing metadata to files…" msgstr "Metadaten werden in die Dateien geschrieben …" @@ -4562,7 +4648,7 @@ msgstr "Papierkorb" msgid "Trash is empty" msgstr "Der Papierkorb ist leer" -#: src/library/TrashPage.vala:110 +#: src/library/TrashPage.vala:110 ui/faces.ui:469 msgid "Delete" msgstr "Löschen" @@ -4611,40 +4697,40 @@ msgstr "" msgid "Unknown error attempting to verify Shotwell’s database: %s" msgstr "Unbekannter Fehler bei der Überprüfung von Shotwells Datenbank: %s" -#: src/main.vala:104 +#: src/main.vala:108 msgid "Loading Shotwell" msgstr "Shotwell wird geladen" -#: src/main.vala:303 +#: src/main.vala:320 msgid "Path to Shotwell’s private data" msgstr "Pfad zu Shotwells Verwaltungsinformation" -#: src/main.vala:303 +#: src/main.vala:320 msgid "DIRECTORY" msgstr "ORDNER" -#: src/main.vala:307 +#: src/main.vala:324 msgid "Do not monitor library directory at runtime for changes" msgstr "Bibliotheksordner nicht laufend auf Veränderungen prüfen" -#: src/main.vala:311 +#: src/main.vala:328 msgid "Don’t display startup progress meter" msgstr "Fortschrittsbalken beim Start nicht anzeigen" -#: src/main.vala:315 +#: src/main.vala:332 msgid "Show the application’s version" msgstr "Versionsnummer anzeigen" -#: src/main.vala:319 +#: src/main.vala:336 msgid "Start the application in fullscreen mode" msgstr "Anwendung im Vollbildmodus starten" #. init GTK (valac has already called g_threads_init()) -#: src/main.vala:356 +#: src/main.vala:373 msgid "[FILE]" msgstr "[DATEI]" -#: src/main.vala:360 +#: src/main.vala:380 #, c-format msgid "Run “%s --help” to see a full list of available command line options.\n" msgstr "" @@ -4656,11 +4742,11 @@ msgstr "" msgid "Unable to process monitoring updates: %s" msgstr "Überwachungsaktualisierungen können nicht verarbeitet werden: %s" -#: src/MediaPage.vala:158 +#: src/MediaPage.vala:157 msgid "Adjust the size of the thumbnails" msgstr "Die Größe der Vorschaubilder anpassen" -#: src/MediaPage.vala:502 +#: src/MediaPage.vala:500 #, c-format msgid "" "Shotwell was unable to play the selected video:\n" @@ -4669,34 +4755,34 @@ msgstr "" "Shotwell konnte das ausgewählte Video nicht abspielen:\n" "%s" -#: src/Page.vala:1327 +#: src/Page.vala:1324 msgid "No photos/videos" msgstr "Keine Fotos/Videos" -#: src/Page.vala:1331 +#: src/Page.vala:1328 msgid "No photos/videos found which match the current filter" msgstr "Keine Fotos oder Videos gefunden, die auf den aktuellen Filter passen" -#: src/Page.vala:2644 +#: src/Page.vala:2641 msgid "Photos cannot be exported to this directory." msgstr "Fotos können nicht in diesen Ordner exportiert werden." #. previous button -#: src/PhotoPage.vala:538 +#: src/PhotoPage.vala:550 msgid "Previous photo" msgstr "Voriges Foto" #. next button -#: src/PhotoPage.vala:544 +#: src/PhotoPage.vala:556 msgid "Next photo" msgstr "Nächstes Foto" -#: src/PhotoPage.vala:1850 +#: src/PhotoPage.vala:1862 #, c-format msgid "Photo source file missing: %s" msgstr "Foto-Quelldatei fehlt: %s" -#: src/PhotoPage.vala:3018 +#: src/PhotoPage.vala:3041 #, c-format msgid "Unable to export %s: %s" msgstr "%s kann nicht exportiert werden: %s" @@ -4705,6 +4791,10 @@ msgstr "%s kann nicht exportiert werden: %s" msgid "BMP" msgstr "BMP" +#: src/photos/GifSupport.vala:32 +msgid "GIF" +msgstr "GIF" + #: src/photos/JfifSupport.vala:84 msgid "JPEG" msgstr "JPEG" @@ -4792,19 +4882,19 @@ msgstr "" "\n" "%s" -#: src/Properties.vala:87 +#: src/Properties.vala:97 msgid "Today" msgstr "Heute" -#: src/Properties.vala:89 +#: src/Properties.vala:99 msgid "Yesterday" msgstr "Gestern" -#: src/Properties.vala:346 +#: src/Properties.vala:349 msgid "Items:" msgstr "Einträge:" -#: src/Properties.vala:349 +#: src/Properties.vala:352 #, c-format msgid "%d Event" msgid_plural "%d Events" @@ -4812,107 +4902,103 @@ msgstr[0] "%d Ereignis" msgstr[1] "%d Ereignisse" #. display only one date if start and end are the same -#: src/Properties.vala:380 +#: src/Properties.vala:383 msgid "Date:" msgstr "Datum:" #. display only one time if start and end are the same -#: src/Properties.vala:384 +#: src/Properties.vala:387 msgid "Time:" msgstr "Zeit:" #. display time range #. display date range -#: src/Properties.vala:387 src/Properties.vala:392 +#: src/Properties.vala:390 src/Properties.vala:395 msgid "From:" msgstr "Von:" -#: src/Properties.vala:388 src/Properties.vala:393 +#: src/Properties.vala:391 src/Properties.vala:396 msgid "To:" msgstr "Bis:" -#: src/Properties.vala:407 +#: src/Properties.vala:410 msgid "Duration:" msgstr "Dauer:" -#: src/Properties.vala:407 +#: src/Properties.vala:410 #, c-format msgid "%.1f seconds" msgstr "%.1f Sekunden" -#: src/Properties.vala:411 +#: src/Properties.vala:414 msgid "Developer:" msgstr "Entwickler:" #. nothing special to be done for now for Events -#: src/Properties.vala:586 +#: src/Properties.vala:592 msgid "Location:" msgstr "Ort:" -#: src/Properties.vala:589 +#: src/Properties.vala:595 msgid "File size:" msgstr "Dateigröße:" -#: src/Properties.vala:593 +#: src/Properties.vala:599 msgid "Current Development:" msgstr "Aktuelle Entwicklung:" -#: src/Properties.vala:595 +#: src/Properties.vala:601 msgid "Original dimensions:" msgstr "Ursprüngliche Größe:" -#: src/Properties.vala:598 +#: src/Properties.vala:604 msgid "Camera make:" msgstr "Kamerahersteller:" -#: src/Properties.vala:601 +#: src/Properties.vala:607 msgid "Camera model:" msgstr "Kameramodell:" -#: src/Properties.vala:604 +#: src/Properties.vala:610 msgid "Flash:" msgstr "Blitz:" -#: src/Properties.vala:606 +#: src/Properties.vala:612 msgid "Focal length:" msgstr "Brennweite:" -#: src/Properties.vala:609 +#: src/Properties.vala:615 msgid "Exposure date:" msgstr "Aufnahmedatum:" -#: src/Properties.vala:612 +#: src/Properties.vala:618 msgid "Exposure time:" msgstr "Belichtungszeit:" -#: src/Properties.vala:615 +#: src/Properties.vala:621 msgid "Exposure bias:" msgstr "Manuelle Belichtungskorrektur:" -#: src/Properties.vala:617 +#: src/Properties.vala:631 msgid "GPS latitude:" msgstr "GPS-Breitengrad:" -#: src/Properties.vala:620 +#: src/Properties.vala:634 msgid "GPS longitude:" msgstr "GPS-Längengrad:" -#: src/Properties.vala:623 +#: src/Properties.vala:637 msgid "Artist:" msgstr "Künstler:" -#: src/Properties.vala:625 +#: src/Properties.vala:639 msgid "Copyright:" msgstr "Copyright:" -#: src/Properties.vala:627 +#: src/Properties.vala:641 msgid "Software:" msgstr "Software:" -#: src/Properties.vala:642 -msgid "Extended Information" -msgstr "Erweiterte Informationen" - #: src/publishing/PublishingPluginHost.vala:11 msgid "Preparing for upload" msgstr "Hochladen wird vorbereitet" @@ -5009,617 +5095,642 @@ msgstr "" msgid "Publishing" msgstr "Veröffentlichen" -#: src/Resources.vala:141 src/Resources.vala:146 ui/collection.ui:151 +#: src/Resources.vala:111 src/Resources.vala:116 ui/collection.ui:151 msgid "Rotate" msgstr "Drehen" -#: src/Resources.vala:142 +#: src/Resources.vala:112 msgid "Rotate Right" msgstr "Nach rechts drehen" -#: src/Resources.vala:143 ui/collection.ui:148 +#: src/Resources.vala:113 ui/collection.ui:148 msgid "Rotate the photos right (press Ctrl to rotate left)" msgstr "Fotos nach rechts drehen (Strg zum Drehen nach links drücken)" -#: src/Resources.vala:147 +#: src/Resources.vala:117 msgid "Rotate Left" msgstr "Nach links drehen" -#: src/Resources.vala:148 +#: src/Resources.vala:118 msgid "Rotate the photos left" msgstr "Fotos nach links drehen" -#: src/Resources.vala:151 +#: src/Resources.vala:121 msgid "Flip Horizontally" msgstr "Horizontal spiegeln" -#: src/Resources.vala:154 +#: src/Resources.vala:124 msgid "Flip Vertically" msgstr "Vertikal spiegeln" -#: src/Resources.vala:156 ui/direct.ui:192 ui/events_directory.ui:168 -#: ui/event.ui:438 ui/import_queue.ui:83 ui/import.ui:201 +#: src/Resources.vala:126 ui/direct.ui:192 ui/events_directory.ui:168 +#: ui/event.ui:438 ui/faces.ui:448 ui/import_queue.ui:83 ui/import.ui:201 #: ui/manifest_widget.ui:35 ui/media.ui:421 ui/offline.ui:198 ui/photo.ui:405 #: ui/tags.ui:440 ui/trash.ui:207 msgid "_About" msgstr "_Info" -#: src/Resources.vala:157 +#: src/Resources.vala:127 msgid "_Apply" msgstr "_Anwenden" -#: src/Resources.vala:160 ui/direct.ui:44 ui/events_directory.ui:32 -#: ui/event.ui:47 ui/import.ui:40 ui/media.ui:47 ui/offline.ui:32 -#: ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 +#: src/Resources.vala:130 ui/direct.ui:44 ui/events_directory.ui:32 +#: ui/event.ui:47 ui/faces.ui:47 ui/import.ui:40 ui/media.ui:47 +#: ui/offline.ui:32 ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 msgid "_Edit" msgstr "_Bearbeiten" -#: src/Resources.vala:161 +#: src/Resources.vala:131 msgid "_Forward" msgstr "_Vor" -#: src/Resources.vala:162 ui/direct.ui:62 ui/events_directory.ui:125 +#: src/Resources.vala:132 ui/direct.ui:62 ui/events_directory.ui:125 #: ui/photo.ui:173 msgid "Fulls_creen" msgstr "Bilds_chirmfüllend" -#: src/Resources.vala:163 ui/direct.ui:174 ui/direct.ui:177 +#: src/Resources.vala:133 ui/direct.ui:174 ui/direct.ui:177 #: ui/events_directory.ui:150 ui/events_directory.ui:153 ui/event.ui:420 -#: ui/event.ui:423 ui/import_queue.ui:65 ui/import_queue.ui:68 ui/import.ui:183 -#: ui/import.ui:186 ui/media.ui:403 ui/media.ui:406 ui/offline.ui:180 -#: ui/offline.ui:183 ui/photo.ui:387 ui/photo.ui:390 ui/tags.ui:422 -#: ui/tags.ui:425 ui/trash.ui:189 ui/trash.ui:192 +#: ui/event.ui:423 ui/faces.ui:430 ui/faces.ui:433 ui/import_queue.ui:65 +#: ui/import_queue.ui:68 ui/import.ui:183 ui/import.ui:186 ui/media.ui:403 +#: ui/media.ui:406 ui/offline.ui:180 ui/offline.ui:183 ui/photo.ui:387 +#: ui/photo.ui:390 ui/tags.ui:422 ui/tags.ui:425 ui/trash.ui:189 +#: ui/trash.ui:192 msgid "_Help" msgstr "_Hilfe" -#: src/Resources.vala:164 +#: src/Resources.vala:134 msgid "Leave _Fullscreen" msgstr "_Vollbild verlassen" -#: src/Resources.vala:165 src/Resources.vala:364 ui/tags.ui:450 +#: src/Resources.vala:135 src/Resources.vala:343 ui/tags.ui:450 msgid "_New" msgstr "_Neu" -#: src/Resources.vala:166 +#: src/Resources.vala:136 msgid "_Next" msgstr "_Nächster" -#: src/Resources.vala:169 src/Resources.vala:318 ui/events_directory.ui:65 -#: ui/event.ui:93 ui/import.ui:68 ui/media.ui:93 ui/offline.ui:72 -#: ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 +#: src/Resources.vala:139 src/Resources.vala:288 ui/events_directory.ui:65 +#: ui/event.ui:93 ui/faces.ui:93 ui/import.ui:68 ui/media.ui:93 +#: ui/offline.ui:72 ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 msgid "_Preferences" msgstr "_Einstellungen" -#: src/Resources.vala:170 +#: src/Resources.vala:140 msgid "_Previous" msgstr "_Vorheriger" -#: src/Resources.vala:172 ui/direct.ui:37 ui/events_directory.ui:25 -#: ui/event.ui:40 ui/import_queue.ui:31 ui/import.ui:33 ui/media.ui:40 -#: ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 +#: src/Resources.vala:142 ui/direct.ui:37 ui/events_directory.ui:25 +#: ui/event.ui:40 ui/faces.ui:40 ui/import_queue.ui:31 ui/import.ui:33 +#: ui/media.ui:40 ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 msgid "_Quit" msgstr "_Beenden" -#: src/Resources.vala:173 +#: src/Resources.vala:143 msgid "_Refresh" msgstr "_Aktualisieren" -#: src/Resources.vala:175 +#: src/Resources.vala:145 msgid "_Revert" msgstr "_Zurücknehmen" -#: src/Resources.vala:177 +#: src/Resources.vala:147 msgid "Save _As" msgstr "Speichern _unter" -#: src/Resources.vala:178 +#: src/Resources.vala:148 msgid "Sort _Ascending" msgstr "A_ufsteigend sortieren" -#: src/Resources.vala:179 +#: src/Resources.vala:149 msgid "Sort _Descending" msgstr "A_bsteigend sortieren" -#: src/Resources.vala:180 +#: src/Resources.vala:150 msgid "_Stop" msgstr "_Anhalten" -#: src/Resources.vala:181 +#: src/Resources.vala:151 msgid "_Undelete" msgstr "_Löschen rückgängig" -#: src/Resources.vala:182 +#: src/Resources.vala:152 msgid "_Normal Size" msgstr "_Normale Größe" -#: src/Resources.vala:183 +#: src/Resources.vala:153 msgid "Best _Fit" msgstr "_Einpassen" -#: src/Resources.vala:184 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 -#: ui/photo.ui:144 ui/tags.ui:260 +#: src/Resources.vala:154 ui/direct.ui:69 ui/event.ui:260 ui/faces.ui:260 +#: ui/media.ui:260 ui/photo.ui:144 ui/tags.ui:260 msgid "Zoom _In" msgstr "Ver_größern" -#: src/Resources.vala:185 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 -#: ui/photo.ui:149 ui/tags.ui:265 +#: src/Resources.vala:155 ui/direct.ui:74 ui/event.ui:265 ui/faces.ui:265 +#: ui/media.ui:265 ui/photo.ui:149 ui/tags.ui:265 msgid "Zoom _Out" msgstr "Ver_kleinern" -#: src/Resources.vala:188 ui/collection.ui:167 +#: src/Resources.vala:158 ui/collection.ui:167 msgid "Enhance" msgstr "Verbessern" -#: src/Resources.vala:189 ui/collection.ui:164 +#: src/Resources.vala:159 ui/collection.ui:164 msgid "Automatically improve the photo’s appearance" msgstr "Automatisch das Aussehen des Fotos verbessern" -#: src/Resources.vala:192 +#: src/Resources.vala:162 msgid "Copy Color Adjustments" msgstr "Farbanpassungen kopieren" -#: src/Resources.vala:193 +#: src/Resources.vala:163 msgid "Copy the color adjustments applied to the photo" msgstr "Die am Foto vorgenommenen Farbanpassungen kopieren" -#: src/Resources.vala:196 +#: src/Resources.vala:166 msgid "Paste Color Adjustments" msgstr "Farbanpassungen einfügen" -#: src/Resources.vala:197 +#: src/Resources.vala:167 msgid "Apply copied color adjustments to the selected photos" msgstr "Die kopierten Farbanpassungen auf die gewählten Fotos anwenden" -#: src/Resources.vala:199 ui/direct.ui:139 ui/photo.ui:228 +#: src/Resources.vala:169 ui/direct.ui:139 ui/photo.ui:228 msgid "_Crop" msgstr "Zus_chneiden" -#: src/Resources.vala:200 +#: src/Resources.vala:170 msgid "Crop" msgstr "Zuschneiden" -#: src/Resources.vala:201 +#: src/Resources.vala:171 msgid "Crop the photo’s size" msgstr "Foto auf eine gewünschte Größe zuschneiden" -#: src/Resources.vala:204 +#: src/Resources.vala:174 msgid "Straighten" msgstr "Ausrichten" -#: src/Resources.vala:205 +#: src/Resources.vala:175 msgid "Straighten the photo" msgstr "Bild begradigen" -#: src/Resources.vala:207 ui/direct.ui:149 ui/photo.ui:238 +#: src/Resources.vala:177 ui/direct.ui:149 ui/photo.ui:238 msgid "_Red-eye" msgstr "_Rote Augen entfernen" -#: src/Resources.vala:208 +#: src/Resources.vala:178 msgid "Red-eye" msgstr "Rote-Augen-Effekt" -#: src/Resources.vala:209 +#: src/Resources.vala:179 msgid "Reduce or eliminate any red-eye effects in the photo" msgstr "Den Rote-Augen-Effekt in diesem Foto vermindern oder beseitigen" -#: src/Resources.vala:211 ui/direct.ui:154 ui/photo.ui:243 +#: src/Resources.vala:181 ui/direct.ui:154 ui/photo.ui:243 msgid "_Adjust" msgstr "_Anpassen" -#: src/Resources.vala:212 +#: src/Resources.vala:182 msgid "Adjust" msgstr "Anpassen" -#: src/Resources.vala:213 +#: src/Resources.vala:183 msgid "Adjust the photo’s color and tone" msgstr "Farbe und Farbton des Fotos anpassen" -#: src/Resources.vala:216 +#: src/Resources.vala:186 msgid "Revert to Original" msgstr "Zurück zum Original" -#: src/Resources.vala:218 +#: src/Resources.vala:188 msgid "Revert External E_dits" msgstr "Externe Veränderungen wi_derrufen" -#: src/Resources.vala:219 +#: src/Resources.vala:189 msgid "Revert to the master photo" msgstr "Zum Ursprungsbild zurückkehren" -#: src/Resources.vala:222 +#: src/Resources.vala:192 msgid "Set selected image to be the new desktop background" msgstr "Das ausgewählte Bild als neues Hintergrundbild festlegen" -#: src/Resources.vala:223 +#: src/Resources.vala:193 msgid "Set as _Desktop Slideshow…" msgstr "Als Hintergrund-Bil_dvorführung setzen …" -#: src/Resources.vala:225 ui/direct.ui:47 ui/events_directory.ui:35 -#: ui/event.ui:50 ui/import.ui:43 ui/media.ui:50 ui/offline.ui:35 -#: ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 +#: src/Resources.vala:195 ui/direct.ui:47 ui/events_directory.ui:35 +#: ui/event.ui:50 ui/faces.ui:50 ui/import.ui:43 ui/media.ui:50 +#: ui/offline.ui:35 ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 msgid "_Undo" msgstr "_Rückgängig" -#: src/Resources.vala:226 +#: src/Resources.vala:196 msgid "Undo" msgstr "Rückgängig" -#: src/Resources.vala:228 ui/direct.ui:52 ui/events_directory.ui:40 -#: ui/event.ui:55 ui/import.ui:48 ui/media.ui:55 ui/offline.ui:40 -#: ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 +#: src/Resources.vala:198 ui/direct.ui:52 ui/events_directory.ui:40 +#: ui/event.ui:55 ui/faces.ui:55 ui/import.ui:48 ui/media.ui:55 +#: ui/offline.ui:40 ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 msgid "_Redo" msgstr "_Wiederholen" -#: src/Resources.vala:229 +#: src/Resources.vala:199 msgid "Redo" msgstr "Wiederholen" -#: src/Resources.vala:231 ui/events_directory.ui:139 ui/events_directory.ui:181 +#: src/Resources.vala:201 ui/events_directory.ui:139 ui/events_directory.ui:181 #: ui/event.ui:393 ui/event.ui:588 msgid "Re_name Event…" msgstr "Ereignis umbe_nennen …" -#: src/Resources.vala:234 ui/event.ui:373 ui/event.ui:580 +#: src/Resources.vala:204 ui/event.ui:373 ui/event.ui:580 msgid "Make _Key Photo for Event" msgstr "Zum _Schlüsselfoto für dieses Ereignis machen" -#: src/Resources.vala:235 +#: src/Resources.vala:205 msgid "Make Key Photo for Event" msgstr "Zum Schlüsselfoto für dieses Ereignis machen" -#: src/Resources.vala:237 ui/event.ui:382 ui/media.ui:376 ui/tags.ui:376 +#: src/Resources.vala:207 ui/event.ui:382 ui/faces.ui:376 ui/media.ui:376 +#: ui/tags.ui:376 msgid "_New Event" msgstr "_Neues Ereignis" -#: src/Resources.vala:238 +#: src/Resources.vala:208 msgid "New Event" msgstr "Neues Ereignis" -#: src/Resources.vala:240 +#: src/Resources.vala:210 msgid "Move Photos" msgstr "Fotos verschieben" -#: src/Resources.vala:241 +#: src/Resources.vala:211 msgid "Move photos to an event" msgstr "Fotos in ein Ereignis verschieben" -#: src/Resources.vala:243 ui/events_directory.ui:135 ui/events_directory.ui:177 +#: src/Resources.vala:213 ui/events_directory.ui:135 ui/events_directory.ui:177 msgid "_Merge Events" msgstr "Ereignisse _zusammenführen" -#: src/Resources.vala:244 +#: src/Resources.vala:214 msgid "Merge" msgstr "Zusammenführen" -#: src/Resources.vala:245 +#: src/Resources.vala:215 msgid "Combine events into a single event" msgstr "Mehrere Ereignisse zu einem Einzelereignis zusammenfassen" -#: src/Resources.vala:247 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 -#: ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 ui/tags.ui:286 +#: src/Resources.vala:217 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 +#: ui/faces.ui:286 ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 +#: ui/tags.ui:286 msgid "_Set Rating" msgstr "_Bewerten" -#: src/Resources.vala:248 +#: src/Resources.vala:218 msgid "Set Rating" msgstr "Bewerten" -#: src/Resources.vala:249 +#: src/Resources.vala:219 msgid "Change the rating of your photo" msgstr "Bewertung des Fotos ändern" -#: src/Resources.vala:251 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 -#: ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 ui/tags.ui:326 +#: src/Resources.vala:221 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 +#: ui/faces.ui:326 ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 +#: ui/tags.ui:326 msgid "_Increase" msgstr "_Aufwerten" -#: src/Resources.vala:252 +#: src/Resources.vala:222 msgid "Increase Rating" msgstr "Bewertung erhöhen" -#: src/Resources.vala:254 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 -#: ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 ui/tags.ui:331 +#: src/Resources.vala:224 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 +#: ui/faces.ui:331 ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 +#: ui/tags.ui:331 msgid "_Decrease" msgstr "A_bwerten" -#: src/Resources.vala:255 +#: src/Resources.vala:225 msgid "Decrease Rating" msgstr "Bewertung vermindern" -#: src/Resources.vala:257 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 -#: ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 ui/tags.ui:314 +#: src/Resources.vala:227 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 +#: ui/faces.ui:314 ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 +#: ui/tags.ui:314 msgid "_Unrated" msgstr "_Nicht bewertet" -#: src/Resources.vala:258 +#: src/Resources.vala:228 msgid "Unrated" msgstr "Nicht bewertet" -#: src/Resources.vala:259 +#: src/Resources.vala:229 msgid "Rate Unrated" msgstr "Bewertung entfernen" -#: src/Resources.vala:260 +#: src/Resources.vala:230 msgid "Setting as unrated" msgstr "Bewertung wird entfernt" -#: src/Resources.vala:261 +#: src/Resources.vala:231 msgid "Remove any ratings" msgstr "Alle Bewertungen entfernen" -#: src/Resources.vala:263 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 -#: ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 ui/tags.ui:319 +#: src/Resources.vala:233 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 +#: ui/faces.ui:319 ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 +#: ui/tags.ui:319 msgid "_Rejected" msgstr "A_bgelehnt" -#: src/Resources.vala:264 +#: src/Resources.vala:234 msgid "Rejected" msgstr "Abgelehnt" -#: src/Resources.vala:265 +#: src/Resources.vala:235 msgid "Rate Rejected" msgstr "Ablehnen" -#: src/Resources.vala:266 +#: src/Resources.vala:236 msgid "Setting as rejected" msgstr "Wird als abgelehnt bewertet" -#: src/Resources.vala:267 +#: src/Resources.vala:237 msgid "Set rating to rejected" msgstr "Foto als abgelehnt bewerten" -#: src/Resources.vala:269 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 -#: ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 ui/trash.ui:162 +#: src/Resources.vala:239 ui/event.ui:196 ui/faces.ui:196 ui/import.ui:156 +#: ui/media.ui:196 ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 +#: ui/trash.ui:162 msgid "Rejected _Only" msgstr "Nur A_bgelehnte" -#: src/Resources.vala:270 +#: src/Resources.vala:240 msgid "Rejected Only" msgstr "Nur Abgelehnte" -#: src/Resources.vala:271 +#: src/Resources.vala:241 msgid "Show only rejected photos" msgstr "Nur abgelehnte Fotos zeigen" -#: src/Resources.vala:273 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 -#: ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 ui/trash.ui:156 +#: src/Resources.vala:243 ui/event.ui:190 ui/faces.ui:190 ui/import.ui:150 +#: ui/media.ui:190 ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 +#: ui/trash.ui:156 msgid "All + _Rejected" msgstr "Alle und A_bgelehnte" -#: src/Resources.vala:274 +#: src/Resources.vala:244 msgctxt "Tooltip" msgid "Show all photos, including rejected" msgstr "Alle Fotos einschließlich abgelehnter anzeigen" -#: src/Resources.vala:276 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 -#: ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 ui/trash.ui:150 +#: src/Resources.vala:246 ui/event.ui:184 ui/faces.ui:184 ui/import.ui:144 +#: ui/media.ui:184 ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 +#: ui/trash.ui:150 msgid "_All Photos" msgstr "_Alle Fotos" #. Button tooltip -#: src/Resources.vala:278 +#: src/Resources.vala:248 msgid "Show all photos" msgstr "Alle Fotos anzeigen" -#: src/Resources.vala:280 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 -#: ui/tags.ui:144 +#: src/Resources.vala:250 ui/event.ui:144 ui/faces.ui:144 ui/media.ui:144 +#: ui/photo.ui:120 ui/tags.ui:144 msgid "_Ratings" msgstr "_Bewertungen" -#: src/Resources.vala:281 +#: src/Resources.vala:251 msgid "Display each photo’s rating" msgstr "Bewertung jedes Fotos anzeigen" -#: src/Resources.vala:283 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 -#: ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 +#: src/Resources.vala:253 ui/event.ui:151 ui/faces.ui:151 ui/import.ui:111 +#: ui/media.ui:151 ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 msgid "_Filter Photos" msgstr "Fotos _filtern" -#: src/Resources.vala:284 +#: src/Resources.vala:254 msgid "Filter Photos" msgstr "Fotos filtern" -#: src/Resources.vala:285 +#: src/Resources.vala:255 msgid "Limit the number of photos displayed based on a filter" msgstr "Angezeigte Fotos anhand eines Filters einschränken" -#: src/Resources.vala:288 +#: src/Resources.vala:258 msgid "Duplicate" msgstr "Duplizieren" -#: src/Resources.vala:289 +#: src/Resources.vala:259 msgid "Make a duplicate of the photo" msgstr "Duplikat dieses Fotos erstellen" -#: src/Resources.vala:291 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 -#: ui/tags.ui:17 +#: src/Resources.vala:261 ui/event.ui:17 ui/faces.ui:17 ui/media.ui:17 +#: ui/photo.ui:17 ui/tags.ui:17 msgid "_Export…" msgstr "_Exportieren …" -#: src/Resources.vala:293 +#: src/Resources.vala:263 msgid "_Print…" msgstr "_Drucken …" -#: src/Resources.vala:295 +#: src/Resources.vala:265 msgid "Pu_blish…" msgstr "Verö_ffentlichen …" -#: src/Resources.vala:297 ui/collection.ui:189 +#: src/Resources.vala:267 ui/collection.ui:189 msgid "Publish to various websites" msgstr "Das ausgewählte Foto auf verschiedenen Webseiten veröffentlichen" -#: src/Resources.vala:299 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 -#: ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 ui/tags.ui:340 +#: src/Resources.vala:269 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 +#: ui/faces.ui:340 ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 +#: ui/tags.ui:340 msgid "Edit _Title…" msgstr "_Titel bearbeiten …" #. Button label -#: src/Resources.vala:301 +#: src/Resources.vala:271 msgctxt "Button Label" msgid "Edit Title" msgstr "Titel bearbeiten" -#: src/Resources.vala:303 ui/collection.ui:103 ui/events_directory.ui:144 +#: src/Resources.vala:273 ui/collection.ui:103 ui/events_directory.ui:144 #: ui/events_directory.ui:186 ui/event.ui:345 ui/event.ui:398 ui/event.ui:542 -#: ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 ui/tags.ui:345 +#: ui/faces.ui:345 ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 +#: ui/tags.ui:345 msgid "Edit _Comment…" msgstr "_Kommentar bearbeiten …" #. Button label -#: src/Resources.vala:305 +#: src/Resources.vala:275 msgid "Edit Comment" msgstr "Kommentar bearbeiten" -#: src/Resources.vala:307 ui/event.ui:592 +#: src/Resources.vala:277 ui/event.ui:592 msgid "Edit Event _Comment…" msgstr "_Kommentar des Ereignisses bearbeiten …" -#: src/Resources.vala:310 ui/direct.ui:167 ui/photo.ui:337 +#: src/Resources.vala:280 ui/direct.ui:167 ui/photo.ui:337 msgid "_Adjust Date and Time…" msgstr "Datum und Zeit _anpassen …" -#: src/Resources.vala:311 +#: src/Resources.vala:281 msgid "Adjust Date and Time" msgstr "Datum und Zeit anpassen" -#: src/Resources.vala:313 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 -#: ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 +#: src/Resources.vala:283 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 +#: ui/faces.ui:390 ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 msgid "Add _Tags…" msgstr "Stichwor_te hinzufügen …" -#: src/Resources.vala:314 ui/photo_context.ui:17 +#: src/Resources.vala:284 ui/photo_context.ui:17 msgid "_Add Tags…" msgstr "Stich_worte hinzufügen …" #. Dialog title -#: src/Resources.vala:316 +#: src/Resources.vala:286 msgctxt "Dialog Title" msgid "Add Tags" msgstr "Stichworte hinzufügen" -#: src/Resources.vala:325 ui/photo_context.ui:135 +#: src/Resources.vala:295 ui/photo_context.ui:135 msgid "Send T_o…" msgstr "Senden a_n …" -#: src/Resources.vala:327 +#: src/Resources.vala:297 msgid "_Find…" msgstr "_Suchen …" -#: src/Resources.vala:328 ui/collection.ui:217 ui/offline.ui:239 +#: src/Resources.vala:298 ui/collection.ui:217 ui/offline.ui:239 #: ui/trash.ui:312 msgid "Find" msgstr "Suchen" -#: src/Resources.vala:329 ui/collection.ui:214 ui/offline.ui:236 +#: src/Resources.vala:299 ui/collection.ui:214 ui/offline.ui:236 #: ui/trash.ui:309 msgid "Find an image by typing text that appears in its name or tags" msgstr "" "Ein Bild durch Eingabe von Text suchen, der im Namen oder in den Stichworten " "enthalten ist" -#: src/Resources.vala:331 +#: src/Resources.vala:301 msgid "_Flag" msgstr "_Markieren" -#: src/Resources.vala:333 +#: src/Resources.vala:303 msgid "Un_flag" msgstr "Markierung au_fheben" -#: src/Resources.vala:336 +#: src/Resources.vala:307 +msgid "Mark faces of people in the photo" +msgstr "Gesichter von Menschen im Foto markieren" + +#: src/Resources.vala:308 +msgid "Modify Faces" +msgstr "Gesichter ändern" + +#: src/Resources.vala:309 +msgid "Delete Face" +msgstr "Gesichtsmarkierung entfernen" + +#: src/Resources.vala:311 src/Resources.vala:353 ui/tags.ui:456 +msgid "_Rename…" +msgstr "_Umbenennen …" + +#: src/Resources.vala:315 #, c-format msgid "Unable to launch editor: %s" msgstr "Editor kann nicht gestartet werden: %s" -#: src/Resources.vala:341 +#: src/Resources.vala:320 #, c-format msgid "Add Tag “%s”" msgstr "Stichwort »%s« hinzufügen" #. Used when adding two tags to photo(s) -#: src/Resources.vala:344 +#: src/Resources.vala:323 #, c-format msgid "Add Tags “%s” and “%s”" msgstr "Stichworte »%s« und »%s« hinzufügen" #. Undo/Redo command name (in Edit menu) -#: src/Resources.vala:349 +#: src/Resources.vala:328 msgctxt "UndoRedo menu entry" msgid "Add Tags" msgstr "Stichworte hinzufügen" -#: src/Resources.vala:354 +#: src/Resources.vala:333 #, c-format msgid "_Delete Tag “%s”" msgstr "Stichwort »%s« _entfernen" -#: src/Resources.vala:358 +#: src/Resources.vala:337 #, c-format msgid "Delete Tag “%s”" msgstr "Stichwort »%s« entfernen" -#: src/Resources.vala:361 +#: src/Resources.vala:340 msgid "Delete Tag" msgstr "Stichwort entfernen" -#: src/Resources.vala:367 +#: src/Resources.vala:346 #, c-format msgid "Re_name Tag “%s”…" msgstr "Stichwort »%s« _umbenennen …" -#: src/Resources.vala:371 +#: src/Resources.vala:350 #, c-format msgid "Rename Tag “%s” to “%s”" msgstr "Stichwort »%s« zu »%s« umbenennen" -#: src/Resources.vala:374 ui/tags.ui:456 -msgid "_Rename…" -msgstr "_Umbenennen …" - -#: src/Resources.vala:376 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 -#: ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 ui/tags.ui:395 +#: src/Resources.vala:355 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 +#: ui/faces.ui:395 ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 +#: ui/tags.ui:395 msgid "Modif_y Tags…" msgstr "Stichworte _ändern …" -#: src/Resources.vala:377 +#: src/Resources.vala:356 msgid "Modify Tags" msgstr "Stichworte ändern" -#: src/Resources.vala:380 +#: src/Resources.vala:359 #, c-format msgid "Tag Photo as “%s”" msgid_plural "Tag Photos as “%s”" msgstr[0] "Foto mit Stichwort »%s« versehen" msgstr[1] "Fotos mit Stichwort »%s« versehen" -#: src/Resources.vala:386 +#: src/Resources.vala:365 #, c-format msgid "Tag the selected photo as “%s”" msgid_plural "Tag the selected photos as “%s”" msgstr[0] "Ausgewähltes Foto mit Stichwort »%s« versehen" msgstr[1] "Ausgewählte Fotos mit Stichwort »%s« versehen" -#: src/Resources.vala:392 +#: src/Resources.vala:371 #, c-format msgid "Remove Tag “%s” From _Photo" msgid_plural "Remove Tag “%s” From _Photos" msgstr[0] "Stichwort »%s« von _Foto entfernen" msgstr[1] "Stichwort »%s« von _Fotos entfernen" -#: src/Resources.vala:398 +#: src/Resources.vala:377 #, c-format msgid "Remove Tag “%s” From Photo" msgid_plural "Remove Tag “%s” From Photos" msgstr[0] "Stichwort »%s« von Foto entfernen" msgstr[1] "Stichwort »%s« von Fotos entfernen" -#: src/Resources.vala:404 +#: src/Resources.vala:383 #, c-format msgid "Unable to rename tag to “%s” because the tag already exists." msgstr "" "Stichwort kann nicht zu »%s« umbenannt werden, weil ein entsprechendes " "Stichwort bereits vorhanden ist." -#: src/Resources.vala:408 +#: src/Resources.vala:387 #, c-format msgid "Unable to rename search to “%s” because the search already exists." msgstr "" @@ -5627,121 +5738,165 @@ msgstr "" "vorhanden ist." #. Saved search button -#: src/Resources.vala:411 src/SearchFilter.vala:1120 +#: src/Resources.vala:390 src/SearchFilter.vala:1146 msgid "Saved Search" msgstr "Gespeicherte Suche" -#: src/Resources.vala:413 +#: src/Resources.vala:392 msgid "Delete Search" msgstr "Suche löschen" -#: src/Resources.vala:416 ui/savedsearch.ui:10 +#: src/Resources.vala:395 ui/savedsearch.ui:10 msgid "_Edit…" msgstr "_Bearbeiten …" -#: src/Resources.vala:417 ui/savedsearch.ui:6 +#: src/Resources.vala:396 ui/savedsearch.ui:6 msgid "Re_name…" msgstr "_Umbenennen …" -#: src/Resources.vala:420 +#: src/Resources.vala:399 #, c-format msgid "Rename Search “%s” to “%s”" msgstr "Suche »%s« zu »%s« umbenennen" -#: src/Resources.vala:424 +#: src/Resources.vala:403 #, c-format msgid "Delete Search “%s”" msgstr "Suche »%s« löschen" -#: src/Resources.vala:561 +#: src/Resources.vala:408 +#, c-format +msgid "Unable to rename face to “%s” because the face already exists." +msgstr "" +"Gesichtsmarkierung kann nicht zu »%s« umbenannt werden, weil eine " +"entsprechende Gesichtsmarkierung bereits vorhanden ist." + +#: src/Resources.vala:412 +#, c-format +msgid "Remove Face “%s” From _Photo" +msgid_plural "Remove Face “%s” From _Photos" +msgstr[0] "Gesichtsmarkierung »%s« von _Foto entfernen" +msgstr[1] "Gesichtsmarkierung »%s« von _Fotos entfernen" + +#: src/Resources.vala:417 +#, c-format +msgid "Remove Face “%s” From Photo" +msgid_plural "Remove Face “%s” From Photos" +msgstr[0] "Gesichtsmarkierung »%s« von Foto entfernen" +msgstr[1] "Gesichtsmarkierung »%s« von Fotos entfernen" + +#: src/Resources.vala:422 +#, c-format +msgid "Re_name Face “%s”…" +msgstr "Gesichtsmarkierung »%s« _umbenennen …" + +#: src/Resources.vala:426 +#, c-format +msgid "Rename Face “%s” to “%s”" +msgstr "Gesichtsmarkierung »%s« zu »%s« umbenennen" + +#: src/Resources.vala:430 +#, c-format +msgid "_Delete Face “%s”" +msgstr "Gesichtsmarkierung »%s« _entfernen" + +#: src/Resources.vala:434 +#, c-format +msgid "Delete Face “%s”" +msgstr "Gesichtsmarkierung »%s« entfernen" + +#: src/Resources.vala:636 #, c-format msgid "Rate %s" msgstr "%s bewerten" -#: src/Resources.vala:562 +#: src/Resources.vala:637 #, c-format msgid "Set rating to %s" msgstr "Mit %s bewerten" -#: src/Resources.vala:563 +#: src/Resources.vala:638 #, c-format msgid "Setting rating to %s" msgstr "Wird mit %s bewertet" -#: src/Resources.vala:565 +#: src/Resources.vala:640 #, c-format msgid "Display %s" msgstr "%s anzeigen" -#: src/Resources.vala:566 +#: src/Resources.vala:641 #, c-format msgid "Only show photos with a rating of %s" msgstr "Nur Fotos mit einer Bewertung von %s anzeigen" -#: src/Resources.vala:567 +#: src/Resources.vala:642 #, c-format msgid "%s or Better" msgstr "%s oder besser" -#: src/Resources.vala:568 +#: src/Resources.vala:643 #, c-format msgid "Display %s or Better" msgstr "%s oder besser anzeigen" -#: src/Resources.vala:569 +#: src/Resources.vala:644 #, c-format msgid "Only show photos with a rating of %s or better" msgstr "Nur Fotos mit einer Bewertung von %s oder besser anzeigen" -#: src/Resources.vala:660 ui/trash.ui:255 +#: src/Resources.vala:735 ui/trash.ui:255 msgid "Remove the selected photos from the trash" msgstr "Ausgewählte Fotos aus dem Papierkorb entfernen" -#: src/Resources.vala:661 ui/offline.ui:221 +#: src/Resources.vala:736 ui/offline.ui:221 msgid "Remove the selected photos from the library" msgstr "Die ausgewählten Fotos aus der Bibliothek entfernen" -#: src/Resources.vala:663 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 +#: src/Resources.vala:738 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 msgid "_Restore" msgstr "_Wiederherstellen" -#: src/Resources.vala:664 ui/trash.ui:270 +#: src/Resources.vala:739 ui/trash.ui:270 msgid "Move the selected photos back into the library" msgstr "Die ausgewählten Bilder zurück in die Bibliothek verschieben" -#: src/Resources.vala:666 ui/collection.ui:123 ui/direct_context.ui:18 -#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/media.ui:27 +#: src/Resources.vala:741 ui/collection.ui:123 ui/direct_context.ui:18 +#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/faces.ui:27 ui/media.ui:27 #: ui/photo_context.ui:130 ui/photo.ui:35 ui/tags.ui:27 ui/trash.ui:19 #: ui/trash.ui:227 msgid "Show in File Mana_ger" msgstr "Mit der Dateiverwaltun_g öffnen" -#: src/Resources.vala:667 +#: src/Resources.vala:742 msgid "Open the selected photo’s directory in the file manager" msgstr "" "Den Speicherordner des ausgewählten Fotos in der Dateiverwaltung öffnen" -#: src/Resources.vala:670 +#: src/Resources.vala:745 #, c-format msgid "Unable to open in file manager: %s" msgstr "Speicherort konnte nicht in der Dateiverwaltung geöffnet werden: %s" -#: src/Resources.vala:673 ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 -#: ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 ui/tags.ui:74 +#: src/Resources.vala:748 ui/event.ui:74 ui/faces.ui:74 ui/media.ui:74 +#: ui/offline.ui:58 ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 +#: ui/tags.ui:74 msgid "R_emove From Library" msgstr "Aus Bibliothek _entfernen" -#: src/Resources.vala:675 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 -#: ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 ui/tags.ui:79 +#: src/Resources.vala:750 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 +#: ui/faces.ui:79 ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 +#: ui/tags.ui:79 msgid "_Move to Trash" msgstr "In den _Papierkorb verschieben" -#: src/Resources.vala:677 ui/events_directory.ui:58 ui/event.ui:86 -#: ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 ui/trash.ui:74 +#: src/Resources.vala:752 ui/events_directory.ui:58 ui/event.ui:86 +#: ui/faces.ui:86 ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 +#: ui/trash.ui:74 msgid "Select _All" msgstr "_Alle auswählen" -#: src/Resources.vala:678 +#: src/Resources.vala:753 msgid "Select all items" msgstr "Alle auswählen" @@ -5754,14 +5909,14 @@ msgstr "Alle auswählen" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format #. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:739 +#: src/Resources.vala:814 msgid "%a %b %d, %Y" msgstr "%a %d. %b, %Y" #. / Locale-specific starting date format for multi-date strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:744 +#: src/Resources.vala:819 msgctxt "MultidayFormat" msgid "%a %b %d" msgstr "%a %b %d" @@ -5769,7 +5924,7 @@ msgstr "%a %b %d" #. / Locale-specific ending date format for multi-date strings, #. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:749 +#: src/Resources.vala:824 msgctxt "MultidayFormat" msgid "%d, %Y" msgstr "%d, %Y" @@ -5777,7 +5932,7 @@ msgstr "%d, %Y" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:754 +#: src/Resources.vala:829 msgctxt "MultimonthFormat" msgid "%a %b %d" msgstr "%a %d %b" @@ -5785,170 +5940,174 @@ msgstr "%a %d %b" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:759 +#: src/Resources.vala:834 msgctxt "MultimonthFormat" msgid "%a %b %d, %Y" msgstr "%a %d. %b, %Y" -#: src/Screensaver.vala:18 src/SlideshowPage.vala:115 +#: src/Screensaver.vala:18 src/SlideshowPage.vala:117 msgid "Slideshow" msgstr "Diaschau" #. Ordering must correspond with SearchConditionText.Context -#: src/searches/SavedSearchDialog.vala:167 +#: src/searches/SavedSearchDialog.vala:170 msgid "contains" msgstr "enthält" #. Ordering must correspond with Context -#: src/searches/SavedSearchDialog.vala:168 -#: src/searches/SavedSearchDialog.vala:499 +#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:502 msgid "is exactly" msgstr "entspricht genau" -#: src/searches/SavedSearchDialog.vala:169 +#: src/searches/SavedSearchDialog.vala:172 msgid "starts with" msgstr "beginnt mit" -#: src/searches/SavedSearchDialog.vala:170 +#: src/searches/SavedSearchDialog.vala:173 msgid "ends with" msgstr "endet auf" -#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:174 msgid "does not contain" msgstr "enthält nicht" -#: src/searches/SavedSearchDialog.vala:172 -#: src/searches/SavedSearchDialog.vala:503 +#: src/searches/SavedSearchDialog.vala:175 +#: src/searches/SavedSearchDialog.vala:506 msgid "is not set" msgstr "ist nicht gesetzt" -#: src/searches/SavedSearchDialog.vala:173 +#: src/searches/SavedSearchDialog.vala:176 msgid "is set" msgstr "ist gesetzt" #. Ordering must correspond with SearchConditionMediaType.Context -#: src/searches/SavedSearchDialog.vala:247 -#: src/searches/SavedSearchDialog.vala:378 -#: src/searches/SavedSearchDialog.vala:443 +#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:381 +#: src/searches/SavedSearchDialog.vala:446 msgid "is" msgstr "ist" -#: src/searches/SavedSearchDialog.vala:248 +#: src/searches/SavedSearchDialog.vala:251 msgid "is not" msgstr "ist nicht" #. Ordering must correspond with SearchConditionMediaType.MediaType -#: src/searches/SavedSearchDialog.vala:254 +#: src/searches/SavedSearchDialog.vala:257 msgid "any photo" msgstr "ein beliebiges Foto" -#: src/searches/SavedSearchDialog.vala:255 +#: src/searches/SavedSearchDialog.vala:258 msgid "a raw photo" msgstr "ein RAW-Foto" -#: src/searches/SavedSearchDialog.vala:256 +#: src/searches/SavedSearchDialog.vala:259 msgid "a video" msgstr "ein Video" -#: src/searches/SavedSearchDialog.vala:310 +#: src/searches/SavedSearchDialog.vala:313 msgid "has" msgstr "hat" -#: src/searches/SavedSearchDialog.vala:311 +#: src/searches/SavedSearchDialog.vala:314 msgid "has no" msgstr "hat keine" -#: src/searches/SavedSearchDialog.vala:316 +#: src/searches/SavedSearchDialog.vala:319 msgid "modifications" msgstr "Bearbeitungen" -#: src/searches/SavedSearchDialog.vala:317 +#: src/searches/SavedSearchDialog.vala:320 msgid "internal modifications" msgstr "internen Bearbeitungen" -#: src/searches/SavedSearchDialog.vala:318 +#: src/searches/SavedSearchDialog.vala:321 msgid "external modifications" msgstr "externen Bearbeitungen" #. Ordering must correspond with SearchConditionFlagged.State -#: src/searches/SavedSearchDialog.vala:372 +#: src/searches/SavedSearchDialog.vala:375 msgid "flagged" msgstr "markiert" -#: src/searches/SavedSearchDialog.vala:373 +#: src/searches/SavedSearchDialog.vala:376 msgid "not flagged" msgstr "nicht markiert" -#: src/searches/SavedSearchDialog.vala:436 +#: src/searches/SavedSearchDialog.vala:439 msgid "and higher" msgstr "und höher" -#: src/searches/SavedSearchDialog.vala:437 +#: src/searches/SavedSearchDialog.vala:440 msgid "only" msgstr "nur" -#: src/searches/SavedSearchDialog.vala:438 +#: src/searches/SavedSearchDialog.vala:441 msgid "and lower" msgstr "und niedriger" -#: src/searches/SavedSearchDialog.vala:500 +#: src/searches/SavedSearchDialog.vala:503 msgid "is after" msgstr "ist nach" -#: src/searches/SavedSearchDialog.vala:501 +#: src/searches/SavedSearchDialog.vala:504 msgid "is before" msgstr "ist vor" -#: src/searches/SavedSearchDialog.vala:502 +#: src/searches/SavedSearchDialog.vala:505 msgid "is between" msgstr "ist zwischen" -#: src/searches/SavedSearchDialog.vala:515 +#: src/searches/SavedSearchDialog.vala:518 msgid "and" msgstr "und" -#: src/searches/SearchBoolean.vala:157 +#: src/searches/SearchBoolean.vala:169 msgid "Any text" msgstr "Beliebiger Text" -#: src/searches/SearchBoolean.vala:160 +#: src/searches/SearchBoolean.vala:172 msgid "Title" msgstr "Titel" -#: src/searches/SearchBoolean.vala:163 +#: src/searches/SearchBoolean.vala:175 msgid "Tag" msgstr "Stichwort" -#: src/searches/SearchBoolean.vala:166 +#: src/searches/SearchBoolean.vala:178 msgid "Comment" msgstr "Kommentar" -#: src/searches/SearchBoolean.vala:169 +#: src/searches/SearchBoolean.vala:181 msgid "Event name" msgstr "Ereignisname" -#: src/searches/SearchBoolean.vala:172 +#: src/searches/SearchBoolean.vala:184 msgid "File name" msgstr "Dateiname" -#: src/searches/SearchBoolean.vala:175 +#: src/searches/SearchBoolean.vala:187 +msgid "Face" +msgstr "Gesicht" + +#: src/searches/SearchBoolean.vala:190 msgid "Media type" msgstr "Medientyp" -#: src/searches/SearchBoolean.vala:178 +#: src/searches/SearchBoolean.vala:193 msgid "Flag state" msgstr "Markierungsstatus" -#: src/searches/SearchBoolean.vala:181 +#: src/searches/SearchBoolean.vala:196 msgid "Photo state" msgstr "Status des Fotos" -#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:827 -#: src/SearchFilter.vala:1110 +#: src/searches/SearchBoolean.vala:199 src/SearchFilter.vala:853 +#: src/SearchFilter.vala:1136 msgid "Rating" msgstr "Bewertung" -#: src/searches/SearchBoolean.vala:187 +#: src/searches/SearchBoolean.vala:202 msgid "Date" msgstr "Datum" @@ -5960,27 +6119,27 @@ msgstr "Gespeicherte Suchen" msgid "Organize your saved searches" msgstr "Ihre gespeicherten Suchvorgänge verwalten" -#: src/SearchFilter.vala:811 +#: src/SearchFilter.vala:837 msgid "★+ Rating" msgstr "★+ Bewertung" -#: src/SearchFilter.vala:814 +#: src/SearchFilter.vala:840 msgid "★★+ Rating" msgstr "★★+ Bewertung" -#: src/SearchFilter.vala:817 +#: src/SearchFilter.vala:843 msgid "★★★+ Rating" msgstr "★★★+ Bewertung" -#: src/SearchFilter.vala:820 +#: src/SearchFilter.vala:846 msgid "★★★★+ Rating" msgstr "★★★★+ Bewertung" -#: src/SearchFilter.vala:824 +#: src/SearchFilter.vala:850 msgid "★★★★★+ Rating" msgstr "★★★★★+ Bewertung" -#: src/SearchFilter.vala:1060 +#: src/SearchFilter.vala:1086 #, c-format msgid "Error loading search bar UI: %s" msgstr "Fehler beim Laden der UI-Datei der Suchzeile: %s" @@ -5990,24 +6149,24 @@ msgstr "Fehler beim Laden der UI-Datei der Suchzeile: %s" #. Prepare the close menu for use, but don't #. display it yet; we'll connect it to secondary #. click later on. -#: src/SearchFilter.vala:1069 +#: src/SearchFilter.vala:1095 msgid "Close" msgstr "Schließen" #. Type label and toggles -#: src/SearchFilter.vala:1075 +#: src/SearchFilter.vala:1101 msgid "Type" msgstr "Typ" -#: src/SearchFilter.vala:1082 +#: src/SearchFilter.vala:1108 msgid "Videos" msgstr "Videos" -#: src/SearchFilter.vala:1085 +#: src/SearchFilter.vala:1111 msgid "RAW Photos" msgstr "RAW-Fotos" -#: src/SearchFilter.vala:1121 +#: src/SearchFilter.vala:1147 msgid "Use a saved search to filter items in the current view" msgstr "" "Eine gespeicherte Suche verwenden, um Objekte in der aktuellen Ansicht zu " @@ -6015,48 +6174,48 @@ msgstr "" #. Set up toolbar #. add toolbar buttons -#: src/SlideshowPage.vala:134 +#: src/SlideshowPage.vala:136 msgid "Back" msgstr "Zurück" -#: src/SlideshowPage.vala:136 +#: src/SlideshowPage.vala:138 msgid "Go to the previous photo" msgstr "Zum vorherigen Foto" -#: src/SlideshowPage.vala:141 src/SlideshowPage.vala:248 +#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:250 msgid "Pause" msgstr "Pause" -#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:249 +#: src/SlideshowPage.vala:145 src/SlideshowPage.vala:251 msgid "Pause the slideshow" msgstr "Diaschau pausieren" -#: src/SlideshowPage.vala:148 +#: src/SlideshowPage.vala:150 msgid "Next" msgstr "Nächstes" -#: src/SlideshowPage.vala:150 +#: src/SlideshowPage.vala:152 msgid "Go to the next photo" msgstr "Zum nächsten Foto" -#: src/SlideshowPage.vala:157 ui/slideshow_settings.ui:21 +#: src/SlideshowPage.vala:159 ui/slideshow_settings.ui:21 msgid "Settings" msgstr "Einstellungen" -#: src/SlideshowPage.vala:158 +#: src/SlideshowPage.vala:160 msgid "Change slideshow settings" msgstr "Diaschau konfigurieren" #. An entire slideshow set might be missing, so check for a loop. -#: src/SlideshowPage.vala:212 +#: src/SlideshowPage.vala:214 msgid "All photo source files are missing." msgstr "Es gibt keine Foto-Quelldateien." -#: src/SlideshowPage.vala:244 +#: src/SlideshowPage.vala:246 msgid "Play" msgstr "Abspielen" -#: src/SlideshowPage.vala:245 +#: src/SlideshowPage.vala:247 msgid "Continue the slideshow" msgstr "Diaschau fortsetzen" @@ -6068,7 +6227,7 @@ msgstr "Diaschau-Übergänge" msgid "(None)" msgstr "(Keine)" -#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:485 +#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:414 msgid "None" msgstr "Keine" @@ -6093,24 +6252,24 @@ msgstr "unbenannt" msgid "Export Videos" msgstr "Videos exportieren" -#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/media.ui:281 -#: ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 +#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/faces.ui:281 +#: ui/media.ui:281 ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 msgid "Toggle _Flag" msgstr "Markierung _umschalten" -#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/media.ui:353 -#: ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 +#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/faces.ui:353 +#: ui/media.ui:353 ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 msgid "_Developer" msgstr "_Entwickler" -#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/media.ui:381 -#: ui/photo_context.ui:126 ui/tags.ui:381 +#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/faces.ui:381 +#: ui/media.ui:381 ui/photo_context.ui:126 ui/tags.ui:381 msgid "View Eve_nt for Photo" msgstr "Ereig_nis zum Foto anzeigen" -#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/import_queue.ui:5 -#: ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 ui/photo.ui:5 ui/tags.ui:5 -#: ui/trash.ui:5 +#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/faces.ui:5 +#: ui/import_queue.ui:5 ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 +#: ui/photo.ui:5 ui/tags.ui:5 ui/trash.ui:5 msgid "_File" msgstr "_Datei" @@ -6118,7 +6277,7 @@ msgstr "_Datei" msgid "Save _As…" msgstr "Speichern _unter …" -#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 +#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 ui/faces.ui:99 #: ui/import_queue.ui:38 ui/import.ui:74 ui/media.ui:99 ui/offline.ui:78 #: ui/photo.ui:95 ui/tags.ui:99 ui/trash.ui:87 msgid "_View" @@ -6152,229 +6311,242 @@ msgstr "_Nächstes Foto" msgid "T_ools" msgstr "_Werkzeuge" -#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 +#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 ui/faces.ui:438 #: ui/import_queue.ui:73 ui/import.ui:191 ui/media.ui:411 ui/offline.ui:188 #: ui/photo.ui:395 ui/tags.ui:430 ui/trash.ui:197 msgid "_Frequently Asked Questions" msgstr "Oft gestellte _Fragen" -#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 +#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 ui/faces.ui:442 #: ui/import_queue.ui:77 ui/import.ui:195 ui/media.ui:415 ui/offline.ui:192 #: ui/photo.ui:399 ui/tags.ui:434 ui/trash.ui:201 msgid "_Report a Problem…" msgstr "_Ein Problem melden …" -#: ui/events_directory.ui:8 ui/event.ui:8 ui/import_queue.ui:14 ui/import.ui:8 -#: ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 ui/trash.ui:8 +#: ui/events_directory.ui:8 ui/event.ui:8 ui/faces.ui:8 ui/import_queue.ui:14 +#: ui/import.ui:8 ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 +#: ui/trash.ui:8 msgid "_Import From Folder…" msgstr "Aus Ordner _importieren …" -#: ui/events_directory.ui:13 ui/event.ui:13 ui/import_queue.ui:19 -#: ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 ui/photo.ui:13 ui/tags.ui:13 -#: ui/trash.ui:13 +#: ui/events_directory.ui:13 ui/event.ui:13 ui/faces.ui:13 +#: ui/import_queue.ui:19 ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 +#: ui/photo.ui:13 ui/tags.ui:13 ui/trash.ui:13 msgid "Import From _Application…" msgstr "Importieren von _Anwendung …" -#: ui/events_directory.ui:19 ui/event.ui:34 ui/import_queue.ui:25 -#: ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 ui/photo.ui:42 ui/tags.ui:34 -#: ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 +#: ui/events_directory.ui:19 ui/event.ui:34 ui/faces.ui:34 +#: ui/import_queue.ui:25 ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 +#: ui/photo.ui:42 ui/tags.ui:34 ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 msgid "Empty T_rash" msgstr "Papierkorb lee_ren" -#: ui/events_directory.ui:47 ui/event.ui:62 ui/import.ui:55 ui/media.ui:62 -#: ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 +#: ui/events_directory.ui:47 ui/event.ui:62 ui/faces.ui:62 ui/import.ui:55 +#: ui/media.ui:62 ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 msgid "_Find" msgstr "_Suchen" -#: ui/events_directory.ui:51 ui/event.ui:66 ui/media.ui:66 ui/offline.ui:51 -#: ui/photo.ui:70 ui/search_sidebar_context.ui:6 +#: ui/events_directory.ui:51 ui/event.ui:66 ui/faces.ui:66 ui/media.ui:66 +#: ui/offline.ui:51 ui/photo.ui:70 ui/search_sidebar_context.ui:6 #: ui/sidebar_default_context.ui:6 ui/tags.ui:66 ui/trash.ui:56 msgid "Ne_w Saved Search…" msgstr "Neue _gespeicherte Suche …" -#: ui/events_directory.ui:74 ui/event.ui:102 ui/import_queue.ui:41 -#: ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 ui/photo.ui:98 -#: ui/tags.ui:102 ui/trash.ui:90 +#: ui/events_directory.ui:74 ui/event.ui:102 ui/faces.ui:102 +#: ui/import_queue.ui:41 ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 +#: ui/photo.ui:98 ui/tags.ui:102 ui/trash.ui:90 msgid "_Basic Information" msgstr "_Grundlegende Informationen" -#: ui/events_directory.ui:79 ui/event.ui:107 ui/import.ui:82 ui/media.ui:107 -#: ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 ui/trash.ui:95 +#: ui/events_directory.ui:79 ui/event.ui:107 ui/faces.ui:107 ui/import.ui:82 +#: ui/media.ui:107 ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 +#: ui/trash.ui:95 msgid "E_xtended Information" msgstr "Er_weiterte Informationen" -#: ui/events_directory.ui:84 ui/event.ui:112 ui/import.ui:87 ui/media.ui:112 -#: ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 +#: ui/events_directory.ui:84 ui/event.ui:112 ui/faces.ui:112 ui/import.ui:87 +#: ui/media.ui:112 ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 msgid "_Search Bar" msgstr "_Suchleiste" -#: ui/events_directory.ui:89 ui/event.ui:117 ui/import.ui:92 ui/media.ui:117 -#: ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 ui/trash.ui:105 +#: ui/events_directory.ui:89 ui/event.ui:117 ui/faces.ui:117 ui/import.ui:92 +#: ui/media.ui:117 ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 +#: ui/trash.ui:105 msgid "S_idebar" msgstr "S_eitenleiste" -#: ui/events_directory.ui:94 ui/event.ui:122 ui/import.ui:97 ui/media.ui:122 -#: ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 ui/trash.ui:110 +#: ui/events_directory.ui:94 ui/event.ui:122 ui/faces.ui:122 ui/import.ui:97 +#: ui/media.ui:122 ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 +#: ui/trash.ui:110 msgid "T_oolbar" msgstr "_Werkzeugleiste" -#: ui/events_directory.ui:101 ui/event.ui:134 ui/media.ui:134 ui/tags.ui:134 +#: ui/events_directory.ui:101 ui/event.ui:134 ui/faces.ui:134 ui/media.ui:134 +#: ui/tags.ui:134 msgid "_Comments" msgstr "_Kommentare" -#: ui/events_directory.ui:108 ui/event.ui:243 ui/import_queue.ui:48 -#: ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 ui/photo.ui:127 -#: ui/tags.ui:243 ui/trash.ui:172 +#: ui/events_directory.ui:108 ui/event.ui:243 ui/faces.ui:243 +#: ui/import_queue.ui:48 ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 +#: ui/photo.ui:127 ui/tags.ui:243 ui/trash.ui:172 msgid "Sort _Events" msgstr "_Ereignisse sortieren" -#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 -#: ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 ui/media.ui:246 -#: ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 ui/tags.ui:246 -#: ui/trash.ui:175 +#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 ui/faces.ui:231 +#: ui/faces.ui:246 ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 +#: ui/media.ui:246 ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 +#: ui/tags.ui:246 ui/trash.ui:175 msgid "_Ascending" msgstr "_Aufsteigend" -#: ui/events_directory.ui:116 ui/event.ui:236 ui/import_queue.ui:56 -#: ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 ui/trash.ui:180 +#: ui/events_directory.ui:116 ui/event.ui:236 ui/faces.ui:236 +#: ui/import_queue.ui:56 ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 +#: ui/trash.ui:180 msgid "D_escending" msgstr "A_bsteigend" -#: ui/events_directory.ui:132 ui/event.ui:379 ui/media.ui:373 ui/tags.ui:373 +#: ui/events_directory.ui:132 ui/event.ui:379 ui/faces.ui:373 ui/media.ui:373 +#: ui/tags.ui:373 msgid "Even_ts" msgstr "_Ereignisse" -#: ui/event.ui:129 ui/import.ui:104 ui/media.ui:129 ui/tags.ui:129 +#: ui/event.ui:129 ui/faces.ui:129 ui/import.ui:104 ui/media.ui:129 +#: ui/tags.ui:129 msgid "_Titles" msgstr "_Titel" -#: ui/event.ui:139 ui/event.ui:404 ui/media.ui:139 ui/media.ui:387 -#: ui/photo.ui:372 ui/tags.ui:139 ui/tags.ui:387 +#: ui/event.ui:139 ui/event.ui:404 ui/faces.ui:139 ui/faces.ui:387 +#: ui/media.ui:139 ui/media.ui:387 ui/photo.ui:372 ui/tags.ui:139 +#: ui/tags.ui:387 msgid "Ta_gs" msgstr "S_tichworte" -#: ui/event.ui:206 ui/media.ui:206 ui/tags.ui:206 +#: ui/event.ui:206 ui/faces.ui:206 ui/media.ui:206 ui/tags.ui:206 msgid "Sort _Photos" msgstr "_Fotos sortieren" -#: ui/event.ui:209 ui/media.ui:209 ui/tags.ui:209 +#: ui/event.ui:209 ui/faces.ui:209 ui/media.ui:209 ui/tags.ui:209 msgid "By _Title" msgstr "Nach _Titel" -#: ui/event.ui:214 ui/media.ui:214 ui/tags.ui:214 +#: ui/event.ui:214 ui/faces.ui:214 ui/media.ui:214 ui/tags.ui:214 msgid "By _Filename" msgstr "Nach _Dateiname" -#: ui/event.ui:219 ui/media.ui:219 ui/tags.ui:219 +#: ui/event.ui:219 ui/faces.ui:219 ui/media.ui:219 ui/tags.ui:219 msgid "By Exposure _Date" msgstr "Nach Aufnahme_datum" -#: ui/event.ui:224 ui/media.ui:224 ui/tags.ui:224 +#: ui/event.ui:224 ui/faces.ui:224 ui/media.ui:224 ui/tags.ui:224 msgid "By _Rating" msgstr "Nach _Bewertung" -#: ui/event.ui:251 ui/import.ui:174 ui/media.ui:251 ui/photo.ui:135 -#: ui/tags.ui:251 +#: ui/event.ui:251 ui/faces.ui:251 ui/import.ui:174 ui/media.ui:251 +#: ui/photo.ui:135 ui/tags.ui:251 msgid "_Descending" msgstr "A_bsteigend" -#: ui/event.ui:275 ui/media.ui:275 ui/tags.ui:275 +#: ui/event.ui:275 ui/faces.ui:275 ui/media.ui:275 ui/tags.ui:275 msgid "_Photos" msgstr "_Fotos" +#: ui/faces.ui:465 +msgid "Rename…" +msgstr "Umbenennen …" + #: ui/import_queue.ui:8 msgid "_Stop Import" msgstr "Import _abbrechen" -#: ui/preferences_dialog.ui:65 -msgid "white" -msgstr "weiß" - -#: ui/preferences_dialog.ui:92 -msgid "black" -msgstr "schwarz" - -#: ui/preferences_dialog.ui:123 +#: ui/preferences_dialog.ui:67 msgid "Display" msgstr "Anzeige" -#: ui/preferences_dialog.ui:160 -msgid "_Background:" -msgstr "_Hintergrund:" - -#: ui/preferences_dialog.ui:175 +#: ui/preferences_dialog.ui:103 msgid "_Import photos to:" msgstr "_Fotos importieren nach:" -#: ui/preferences_dialog.ui:186 +#: ui/preferences_dialog.ui:114 msgid "_Watch library directory for new files" msgstr "Bibliotheksordner auf neue Dateien _überwachen" -#: ui/preferences_dialog.ui:209 +#: ui/preferences_dialog.ui:137 msgid "Importing" msgstr "Importieren" -#: ui/preferences_dialog.ui:226 +#: ui/preferences_dialog.ui:154 msgid "_Directory structure:" msgstr "_Ordnerstruktur:" -#: ui/preferences_dialog.ui:241 +#: ui/preferences_dialog.ui:169 msgid "Example:" msgstr "Beispiel:" -#: ui/preferences_dialog.ui:250 +#: ui/preferences_dialog.ui:178 msgid "R_ename imported files to lowercase" msgstr "Namen von importierten Dateien in K_leinbuchstaben ändern" -#: ui/preferences_dialog.ui:272 +#: ui/preferences_dialog.ui:200 msgid "Metadata" msgstr "Metadaten" -#: ui/preferences_dialog.ui:285 +#: ui/preferences_dialog.ui:213 msgid "Write tags, titles, and other _metadata to photo files" msgstr "Stichworte, Titel und andere _Metadaten in die Fotodateien schreiben" -#: ui/preferences_dialog.ui:307 +#: ui/preferences_dialog.ui:235 msgid "RAW Developer" msgstr "RAW-Entwickler" -#: ui/preferences_dialog.ui:324 +#: ui/preferences_dialog.ui:252 msgid "De_fault:" msgstr "_Vorgabe:" -#: ui/preferences_dialog.ui:378 +#: ui/preferences_dialog.ui:306 msgid "_Pattern:" msgstr "_Muster:" -#: ui/preferences_dialog.ui:414 +#: ui/preferences_dialog.ui:339 +msgid "" +"When viewing images that are transparent, they will be drawn against this " +"background." +msgstr "" +"Beim Anzeigen transparenter Bilder werden diese auf diesem Hintergrund " +"dargestellt." + +#: ui/preferences_dialog.ui:343 msgid "Transparent Background:" msgstr "Transparenter Hintergrund:" -#: ui/preferences_dialog.ui:428 +#: ui/preferences_dialog.ui:357 msgid "Checkered" msgstr "Schachbrettmuster" -#: ui/preferences_dialog.ui:449 +#: ui/preferences_dialog.ui:378 msgid "Solid color" msgstr "Einfarbig" -#: ui/preferences_dialog.ui:539 +#: ui/preferences_dialog.ui:441 +msgid "Use dark theme:" +msgstr "Dunkles Thema verwenden:" + +#: ui/preferences_dialog.ui:492 msgid "E_xternal photo editor:" msgstr "E_xterner Foto-Editor:" -#: ui/preferences_dialog.ui:556 +#: ui/preferences_dialog.ui:509 msgid "External _RAW editor:" msgstr "Externer _RAW-Editor:" -#: ui/preferences_dialog.ui:617 +#: ui/preferences_dialog.ui:570 msgid "External Editors" msgstr "Externe Editoren" -#: ui/preferences_dialog.ui:642 +#: ui/preferences_dialog.ui:595 msgid "Plugins" msgstr "Erweiterungen" -#: ui/preferences_dialog.ui:668 +#: ui/preferences_dialog.ui:621 msgid "Shotwell Preferences" msgstr "Shotwell-Einstellungen" @@ -6500,23 +6672,23 @@ msgstr "Wie lange soll jedes Foto als Hintergrundbild gezeigt werden?" msgid "New _Tag…" msgstr "Neues S_tichwort …" -#: ui/slideshow_settings.ui:91 +#: ui/slideshow_settings.ui:98 msgid "_Delay:" msgstr "_Verzögerung:" -#: ui/slideshow_settings.ui:105 +#: ui/slideshow_settings.ui:112 msgid "_Transition effect:" msgstr "_Übergangseffekt:" -#: ui/slideshow_settings.ui:119 +#: ui/slideshow_settings.ui:126 msgid "Transition d_elay:" msgstr "Übergangsv_erzögerung:" -#: ui/slideshow_settings.ui:129 +#: ui/slideshow_settings.ui:136 msgid "Show t_itle" msgstr "T_itel anzeigen" -#: ui/slideshow_settings.ui:212 ui/slideshow_settings.ui:223 +#: ui/slideshow_settings.ui:219 ui/slideshow_settings.ui:230 msgid "seconds" msgstr "Sekunden" @@ -6527,20 +6699,3 @@ msgstr "Beschriftung" #: ui/trash.ui:285 msgid "Delete all photos in the trash" msgstr "Alle Fotos im Papierkorb löschen" - -#~ msgid "" -#~ "Enter the confirmation number which appears after you log into Flickr in " -#~ "your Web browser." -#~ msgstr "" -#~ "Geben Sie zur Bestätigung die Zahl ein, die nach der Anmeldung bei Flickr " -#~ "in Ihrem Webbrowser angezeigt wird." - -#~ msgid "Authorization _Number:" -#~ msgstr "Autorisierungsnummer:" - -#~ msgid "Width or height" -#~ msgstr "Breite oder Höhe" - -#~ msgid "“%s” isn’t a valid response to an OAuth authentication request" -#~ msgstr "" -#~ "»%s« ist keine gültige Antwort auf eine OAuth-Authentifizierungsanfrage" diff --git a/po/el.gmo b/po/el.gmo deleted file mode 100644 index d03f5b5..0000000 Binary files a/po/el.gmo and /dev/null differ diff --git a/po/en@boldquot.header b/po/en@boldquot.header deleted file mode 100644 index fedb6a0..0000000 --- a/po/en@boldquot.header +++ /dev/null @@ -1,25 +0,0 @@ -# All this catalog "translates" are quotation characters. -# The msgids must be ASCII and therefore cannot contain real quotation -# characters, only substitutes like grave accent (0x60), apostrophe (0x27) -# and double quote (0x22). These substitutes look strange; see -# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html -# -# This catalog translates grave accent (0x60) and apostrophe (0x27) to -# left single quotation mark (U+2018) and right single quotation mark (U+2019). -# It also translates pairs of apostrophe (0x27) to -# left single quotation mark (U+2018) and right single quotation mark (U+2019) -# and pairs of quotation mark (0x22) to -# left double quotation mark (U+201C) and right double quotation mark (U+201D). -# -# When output to an UTF-8 terminal, the quotation characters appear perfectly. -# When output to an ISO-8859-1 terminal, the single quotation marks are -# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to -# grave/acute accent (by libiconv), and the double quotation marks are -# transliterated to 0x22. -# When output to an ASCII terminal, the single quotation marks are -# transliterated to apostrophes, and the double quotation marks are -# transliterated to 0x22. -# -# This catalog furthermore displays the text between the quotation marks in -# bold face, assuming the VT100/XTerm escape sequences. -# diff --git a/po/en@quot.header b/po/en@quot.header deleted file mode 100644 index a9647fc..0000000 --- a/po/en@quot.header +++ /dev/null @@ -1,22 +0,0 @@ -# All this catalog "translates" are quotation characters. -# The msgids must be ASCII and therefore cannot contain real quotation -# characters, only substitutes like grave accent (0x60), apostrophe (0x27) -# and double quote (0x22). These substitutes look strange; see -# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html -# -# This catalog translates grave accent (0x60) and apostrophe (0x27) to -# left single quotation mark (U+2018) and right single quotation mark (U+2019). -# It also translates pairs of apostrophe (0x27) to -# left single quotation mark (U+2018) and right single quotation mark (U+2019) -# and pairs of quotation mark (0x22) to -# left double quotation mark (U+201C) and right double quotation mark (U+201D). -# -# When output to an UTF-8 terminal, the quotation characters appear perfectly. -# When output to an ISO-8859-1 terminal, the single quotation marks are -# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to -# grave/acute accent (by libiconv), and the double quotation marks are -# transliterated to 0x22. -# When output to an ASCII terminal, the single quotation marks are -# transliterated to apostrophes, and the double quotation marks are -# transliterated to 0x22. -# diff --git a/po/en_GB.gmo b/po/en_GB.gmo deleted file mode 100644 index f1a6997..0000000 Binary files a/po/en_GB.gmo and /dev/null differ diff --git a/po/eo.gmo b/po/eo.gmo deleted file mode 100644 index ab6ec40..0000000 Binary files a/po/eo.gmo and /dev/null differ diff --git a/po/es.gmo b/po/es.gmo deleted file mode 100644 index ea02923..0000000 Binary files a/po/es.gmo and /dev/null differ diff --git a/po/es.po b/po/es.po index 7fd7a83..af29255 100644 --- a/po/es.po +++ b/po/es.po @@ -23,15 +23,14 @@ # # # -# Daniel Mustieles , 2014-2017. +# Daniel Mustieles , 2014-2017, 2018. # msgid "" msgstr "" "Project-Id-Version: shotwell-0.15\n" -"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" -"product=shotwell&keywords=I18N+L10N&component=Internationalization\n" -"POT-Creation-Date: 2017-11-24 20:46+0000\n" -"PO-Revision-Date: 2017-12-14 14:14+0100\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/shotwell/issues\n" +"POT-Creation-Date: 2018-06-16 10:58+0000\n" +"PO-Revision-Date: 2018-06-22 11:50+0200\n" "Last-Translator: Daniel Mustieles \n" "Language-Team: es \n" "Language: es\n" @@ -44,8 +43,8 @@ msgstr "" #: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in:4 #: plugins/shotwell-publishing-extras/GalleryConnector.vala:115 #: src/photos/RawSupport.vala:308 ui/collection.ui:85 ui/event.ui:356 -#: ui/event.ui:524 ui/media.ui:356 ui/photo_context.ui:91 ui/photo.ui:346 -#: ui/tags.ui:356 +#: ui/event.ui:524 ui/faces.ui:356 ui/media.ui:356 ui/photo_context.ui:91 +#: ui/photo.ui:347 ui/tags.ui:356 msgid "Shotwell" msgstr "Shotwell" @@ -497,12 +496,12 @@ msgid "Pin toolbar in fullscreen, or not." msgstr "Anclar o no la barra de herramientas en modo a pantalla completa." #: misc/org.yorba.shotwell.gschema.xml:161 -msgid "background color" -msgstr "color de fondo" +msgid "prefer GTK+’s dark theme" +msgstr "preferir el tema oscuro de GTK+" #: misc/org.yorba.shotwell.gschema.xml:162 -msgid "A grayscale color for use as the background color." -msgstr "La escala de color que usar como color de fondo." +msgid "Whether to use the dark theme of GTK+ for Shotwell or not." +msgstr "Indica si se debe usar o no el tema oscuro de GTK+ para Shotwell." #: misc/org.yorba.shotwell.gschema.xml:167 msgid "background for transparent images" @@ -1511,7 +1510,7 @@ msgstr "Falló la autorización de Flickr" msgid "Verifying authorization…" msgstr "Comprobando la autorización…" -#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:118 +#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:137 msgid "" "You have already logged in and out of a Google service during this Shotwell " "session.\n" @@ -1596,7 +1595,7 @@ msgstr "No se pudo cargar la IU: %s" msgid "Visit the Shotwell home page" msgstr "Visite la página web de Shotwell" -#: plugins/common/Resources.vala:31 src/AppWindow.vala:611 +#: plugins/common/Resources.vala:31 src/AppWindow.vala:603 msgid "translator-credits" msgstr "" "Daniel Mustieles , 2014-2016\n" @@ -1688,7 +1687,7 @@ msgid "Go _Back" msgstr "A_trás" #: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:125 -#: ui/shotwell.ui:363 +#: ui/shotwell.ui:76 msgid "_Log in" msgstr "Iniciar _sesión" @@ -1753,7 +1752,7 @@ msgstr "Cerrar _sesión" #: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:156 #: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:121 #: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:115 -#: src/CollectionPage.vala:82 src/PhotoPage.vala:2469 +#: src/CollectionPage.vala:82 src/PhotoPage.vala:2492 msgid "_Publish" msgstr "_Publicar" @@ -2220,7 +2219,7 @@ msgid "Logout" msgstr "Salir" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:268 -#: src/Resources.vala:296 ui/collection.ui:192 +#: src/Resources.vala:266 ui/collection.ui:192 msgid "Publish" msgstr "Publicar" @@ -2251,7 +2250,8 @@ msgid "Certificate of %s" msgstr "Certificado de %s" #: plugins/shotwell-publishing/PiwigoPublishing.vala:1051 -#: src/Resources.vala:167 ui/slideshow_settings.ui:49 +#: src/Resources.vala:137 ui/multitextentrydialog.ui:40 +#: ui/slideshow_settings.ui:52 msgid "_OK" msgstr "_Aceptar" @@ -2459,16 +2459,18 @@ msgstr "Mantener abierta la barra de herramientas" msgid "Leave fullscreen" msgstr "Salir de pantalla completa" -#: src/AppWindow.vala:538 src/AppWindow.vala:559 src/AppWindow.vala:576 -#: src/data_imports/DataImportsUI.vala:303 -#: src/data_imports/DataImportsUI.vala:421 src/Dialogs.vala:20 -#: src/Dialogs.vala:28 src/Dialogs.vala:1420 src/Dialogs.vala:1443 -#: src/publishing/PublishingUI.vala:303 src/publishing/PublishingUI.vala:527 -#: src/Resources.vala:158 ui/slideshow_settings.ui:35 +#: src/AppWindow.vala:530 src/AppWindow.vala:551 src/AppWindow.vala:568 +#: src/data_imports/DataImportsUI.vala:302 +#: src/data_imports/DataImportsUI.vala:420 src/Dialogs.vala:20 +#: src/Dialogs.vala:28 src/Dialogs.vala:58 src/Dialogs.vala:766 +#: src/Dialogs.vala:789 src/publishing/PublishingUI.vala:305 +#: src/publishing/PublishingUI.vala:529 src/Resources.vala:128 +#: ui/multitextentrydialog.ui:25 ui/slideshow_settings.ui:38 +#: ui/textentrydialog.ui:19 msgid "_Cancel" msgstr "_Cancelar" -#: src/AppWindow.vala:586 +#: src/AppWindow.vala:578 #, c-format msgid "" "A fatal error occurred when accessing Shotwell’s library. Shotwell cannot " @@ -2481,21 +2483,21 @@ msgstr "" "\n" "%s" -#: src/AppWindow.vala:607 +#: src/AppWindow.vala:599 msgid "Visit the Shotwell web site" msgstr "Visite la página web de Shotwell" -#: src/AppWindow.vala:620 +#: src/AppWindow.vala:612 #, c-format msgid "Unable to display help: %s" msgstr "No se puede mostrar la ayuda: %s" -#: src/AppWindow.vala:628 +#: src/AppWindow.vala:620 #, c-format msgid "Unable to navigate to bug database: %s" msgstr "No se pudo navegar en la base de datos de errores: %s" -#: src/AppWindow.vala:636 +#: src/AppWindow.vala:628 #, c-format msgid "Unable to display FAQ: %s" msgstr "No se pudieron mostrar las P+F: %s" @@ -2571,19 +2573,18 @@ msgstr "Lista de todos los dispositivos de cámara descubiertos" #: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:711 #: src/camera/ImportPage.vala:727 src/photos/RawSupport.vala:311 -#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/media.ui:361 -#: ui/photo_context.ui:96 ui/photo.ui:351 ui/tags.ui:361 +#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/faces.ui:361 +#: ui/media.ui:361 ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 msgid "Camera" msgstr "Cámara" #. Translators: First %s is the name of camera as gotten from GPhoto, second is the GVolume name, e.g. Mass storage camera (510MB volume) -#: src/camera/CameraTable.vala:351 +#: src/camera/CameraTable.vala:367 #, c-format -#| msgid "%s (%d%%)" msgid "%s (%s)" msgstr "%s (%s)" -#: src/camera/ImportPage.vala:311 src/Properties.vala:230 +#: src/camera/ImportPage.vala:311 src/Properties.vala:233 msgid "RAW+JPEG" msgstr "RAW+JPEG" @@ -2713,7 +2714,7 @@ msgid_plural "Delete these %d files from camera?" msgstr[0] "¿Eliminar este archivo de la cámara?" msgstr[1] "¿Eliminar estos %d archivos de la cámara?" -#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:1387 +#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:733 msgid "_Keep" msgstr "_Mantener" @@ -2730,21 +2731,21 @@ msgstr[1] "" "No se pueden eliminar %d fotos/vídeos de la cámara, debido a errores." #: src/CollectionPage.vala:80 src/direct/DirectPhotoPage.vala:85 -#: src/PhotoPage.vala:2464 src/Resources.vala:171 +#: src/PhotoPage.vala:2487 src/Resources.vala:141 msgid "_Print" msgstr "_Imprimir" -#: src/CollectionPage.vala:83 src/Resources.vala:324 ui/collection.ui:128 +#: src/CollectionPage.vala:83 src/Resources.vala:294 ui/collection.ui:128 #: ui/direct_context.ui:23 ui/direct.ui:23 ui/event.ui:567 ui/photo.ui:28 msgid "Send _To…" msgstr "En_viar a…" #: src/CollectionPage.vala:84 src/direct/DirectPhotoPage.vala:90 -#: src/PhotoPage.vala:2474 src/Resources.vala:221 +#: src/PhotoPage.vala:2497 src/Resources.vala:191 msgid "Set as _Desktop Background" msgstr "Establecer como fondo _de escritorio" -#: src/CollectionPage.vala:92 src/Resources.vala:287 +#: src/CollectionPage.vala:92 src/Resources.vala:257 msgid "_Duplicate" msgstr "_Duplicar" @@ -2756,43 +2757,43 @@ msgstr "Pantalla completa" msgid "S_lideshow" msgstr "_Diapositivas" -#: src/CollectionPage.vala:110 src/Resources.vala:140 ui/direct.ui:111 +#: src/CollectionPage.vala:110 src/Resources.vala:110 ui/direct.ui:111 #: ui/photo.ui:200 msgid "Rotate _Right" msgstr "Girar a la _derecha" -#: src/CollectionPage.vala:113 src/Resources.vala:145 ui/direct.ui:116 +#: src/CollectionPage.vala:113 src/Resources.vala:115 ui/direct.ui:116 #: ui/photo.ui:205 msgid "Rotate _Left" msgstr "Girar a la izq_uierda" -#: src/CollectionPage.vala:116 src/Resources.vala:150 ui/direct.ui:121 +#: src/CollectionPage.vala:116 src/Resources.vala:120 ui/direct.ui:121 #: ui/photo.ui:210 msgid "Flip Hori_zontally" msgstr "Voltear hori_zontalmente" -#: src/CollectionPage.vala:117 src/Resources.vala:153 ui/direct.ui:125 +#: src/CollectionPage.vala:117 src/Resources.vala:123 ui/direct.ui:125 #: ui/photo.ui:214 msgid "Flip Verti_cally" msgstr "Voltear _verticalmente" -#: src/CollectionPage.vala:119 src/Resources.vala:187 ui/collection.ui:8 +#: src/CollectionPage.vala:119 src/Resources.vala:157 ui/collection.ui:8 #: ui/direct_context.ui:7 ui/direct.ui:134 ui/event.ui:447 #: ui/photo_context.ui:6 ui/photo.ui:223 msgid "_Enhance" msgstr "M_ejorar" -#: src/CollectionPage.vala:120 src/Resources.vala:215 ui/collection.ui:13 +#: src/CollectionPage.vala:120 src/Resources.vala:185 ui/collection.ui:13 #: ui/direct_context.ui:12 ui/direct.ui:161 ui/event.ui:452 #: ui/photo_context.ui:11 ui/photo.ui:250 msgid "Re_vert to Original" msgstr "_Volver al original" -#: src/CollectionPage.vala:122 src/Resources.vala:191 ui/photo.ui:256 +#: src/CollectionPage.vala:122 src/Resources.vala:161 ui/photo.ui:256 msgid "_Copy Color Adjustments" msgstr "_Copiar ajustes de color" -#: src/CollectionPage.vala:125 src/Resources.vala:195 ui/photo.ui:261 +#: src/CollectionPage.vala:125 src/Resources.vala:165 ui/photo.ui:261 msgid "_Paste Color Adjustments" msgstr "_Pegar ajustes de color" @@ -2800,17 +2801,17 @@ msgstr "_Pegar ajustes de color" msgid "Adjust Date and Time…" msgstr "Ajustar fecha y hora…" -#: src/CollectionPage.vala:143 src/Resources.vala:320 ui/collection.ui:108 -#: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:360 +#: src/CollectionPage.vala:143 src/Resources.vala:290 ui/collection.ui:108 +#: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:361 msgid "Open With E_xternal Editor" msgstr "Abrir con editor e_xterno" -#: src/CollectionPage.vala:146 src/Resources.vala:322 ui/collection.ui:113 -#: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:365 +#: src/CollectionPage.vala:146 src/Resources.vala:292 ui/collection.ui:113 +#: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:366 msgid "Open With RA_W Editor" msgstr "Abrir con editor RA_W" -#: src/CollectionPage.vala:149 src/Resources.vala:168 +#: src/CollectionPage.vala:149 src/Resources.vala:138 msgid "_Play" msgstr "_Reproducir" @@ -2820,7 +2821,7 @@ msgid_plural "Export Photos/Videos" msgstr[0] "Exportar foto o vídeo" msgstr[1] "Exportar fotos o vídeos" -#: src/CollectionPage.vala:412 src/Dialogs.vala:59 src/PhotoPage.vala:2998 +#: src/CollectionPage.vala:412 src/Dialogs.vala:74 src/PhotoPage.vala:3021 msgid "Export Photo" msgid_plural "Export Photos" msgstr[0] "Exportar foto" @@ -2874,92 +2875,92 @@ msgstr "Aplicando transformación de color" msgid "Undoing Color Transformations" msgstr "Deshaciendo transformación de color" -#: src/Commands.vala:1007 +#: src/Commands.vala:1006 msgid "Creating New Event" msgstr "Creando un evento nuevo" -#: src/Commands.vala:1008 +#: src/Commands.vala:1007 msgid "Removing Event" msgstr "Quitando el evento" -#: src/Commands.vala:1017 +#: src/Commands.vala:1016 msgid "Moving Photos to New Event" msgstr "Moviendo fotos a un evento nuevo" -#: src/Commands.vala:1018 +#: src/Commands.vala:1017 msgid "Setting Photos to Previous Event" msgstr "Estableciendo fotos al evento anterior" -#: src/Commands.vala:1075 +#: src/Commands.vala:1074 msgid "Merging" msgstr "Combinando" -#: src/Commands.vala:1076 +#: src/Commands.vala:1075 msgid "Unmerging" msgstr "Deshaciendo la combinación" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Duplicating photos" msgstr "Duplicando las fotos" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Removing duplicated photos" msgstr "Quitando las fotos duplicadas" -#: src/Commands.vala:1108 +#: src/Commands.vala:1107 #, c-format msgid "Unable to duplicate one photo due to a file error" msgid_plural "Unable to duplicate %d photos due to file errors" msgstr[0] "No se puede duplicar una foto debido a un error de archivo" msgstr[1] "No se pueden duplicar %d fotos debido a errores de archivo" -#: src/Commands.vala:1195 +#: src/Commands.vala:1194 msgid "Restoring previous rating" msgstr "Restaurar valoración anterior" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Increasing ratings" msgstr "Aumentando la valoración" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Decreasing ratings" msgstr "Disminuyendo la valoración" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Setting RAW developer" msgstr "Configurando el revelador RAW" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Restoring previous RAW developer" msgstr "Restaurando el revelador RAW anterior" -#: src/Commands.vala:1257 +#: src/Commands.vala:1256 msgid "Set Developer" msgstr "Establecer revelador" -#: src/Commands.vala:1347 +#: src/Commands.vala:1346 msgid "Original photo could not be adjusted." msgstr "No se pudo ajustar la foto original." -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Adjusting Date and Time" msgstr "Ajustar fecha y hora" -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Undoing Date and Time Adjustment" msgstr "Deshacer ajuste de fecha y hora" -#: src/Commands.vala:1399 +#: src/Commands.vala:1398 msgid "One original photo could not be adjusted." msgid_plural "The following original photos could not be adjusted." msgstr[0] "No se pudo modificar una foto original." msgstr[1] "No se pudieron modificar las siguientes fotos originales." -#: src/Commands.vala:1401 src/Commands.vala:1425 +#: src/Commands.vala:1400 src/Commands.vala:1424 msgid "Time Adjustment Error" msgstr "Error al ajustar la hora" -#: src/Commands.vala:1423 +#: src/Commands.vala:1422 msgid "Time adjustments could not be undone on the following photo file." msgid_plural "" "Time adjustments could not be undone on the following photo files." @@ -2968,60 +2969,60 @@ msgstr[0] "" msgstr[1] "" "El ajuste de la hora no se puede deshacer en el archivo de la foto siguiente." -#: src/Commands.vala:1637 src/Commands.vala:1660 +#: src/Commands.vala:1636 src/Commands.vala:1659 msgid "Create Tag" msgstr "Crear etiqueta" -#: src/Commands.vala:1695 +#: src/Commands.vala:1694 #, c-format msgid "Move Tag “%s”" msgstr "Mover etiqueta «%s»" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Move Photos to Trash" msgstr "Mover fotos a la papelera" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Restore Photos from Trash" msgstr "Restaurar fotos desde la papelera" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Move the photos to the Shotwell trash" msgstr "Mover las fotos a la papelera de Shotwell" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Restore the photos back to the Shotwell library" msgstr "Restaurar las fotos a la colección de Shotwell" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Moving Photos to Trash" msgstr "Mover fotos a la papelera" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Restoring Photos From Trash" msgstr "Restaurar fotos desde la papelera" -#: src/Commands.vala:2453 +#: src/Commands.vala:2452 msgid "Flag selected photos" msgstr "Marcar las fotos seleccionadas" -#: src/Commands.vala:2454 +#: src/Commands.vala:2453 msgid "Unflag selected photos" msgstr "Desmarcar las fotos seleccionadas" -#: src/Commands.vala:2455 +#: src/Commands.vala:2454 msgid "Flagging selected photos" msgstr "Marcando las fotos seleccionadas" -#: src/Commands.vala:2456 +#: src/Commands.vala:2455 msgid "Unflagging selected photos" msgstr "Desmarcando las fotos seleccionadas" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Flag" msgstr "Marcar" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Unflag" msgstr "Desmarcar" @@ -3063,20 +3064,20 @@ msgstr "" msgid "Database file:" msgstr "Archivo de base de datos:" -#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:782 +#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:783 msgid "_Import" msgstr "_Importar" -#: src/data_imports/DataImportsUI.vala:220 +#: src/data_imports/DataImportsUI.vala:219 msgid "Import From Application" msgstr "Importar desde aplicación" -#: src/data_imports/DataImportsUI.vala:221 +#: src/data_imports/DataImportsUI.vala:220 msgid "Import media _from:" msgstr "Importar medios _desde:" -#: src/data_imports/DataImportsUI.vala:416 -#: src/publishing/PublishingUI.vala:522 +#: src/data_imports/DataImportsUI.vala:415 +#: src/publishing/PublishingUI.vala:524 msgid "_Close" msgstr "_Cerrar" @@ -3144,10 +3145,11 @@ msgid_plural "This will remove the tag “%s” from %d photos. Continue?" msgstr[0] "Esto eliminará la etiqueta «%s» de una foto. ¿Continuar?" msgstr[1] "Esto eliminará la etiqueta «%s» de %d fotos. ¿Continuar?" -#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:1388 -#: src/Resources.vala:159 src/Resources.vala:362 src/Resources.vala:415 -#: src/Resources.vala:659 ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 -#: ui/trash.ui:216 ui/trash.ui:258 +#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:58 +#: src/Dialogs.vala:734 src/Resources.vala:129 src/Resources.vala:310 +#: src/Resources.vala:341 src/Resources.vala:394 src/Resources.vala:734 +#: ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 ui/trash.ui:216 +#: ui/trash.ui:258 msgid "_Delete" msgstr "_Eliminar" @@ -3174,11 +3176,20 @@ msgstr[1] "" msgid "_Switch Developer" msgstr "_Cambiar de revelador" -#: src/Dialogs.vala:59 +#: src/Dialogs.vala:54 +#, c-format +#| msgid "This will remove the tag “%s” from one photo. Continue?" +#| msgid_plural "This will remove the tag “%s” from %d photos. Continue?" +msgid "This will remove the face “%s” from one photo. Continue?" +msgid_plural "This will remove the face “%s” from %d photos. Continue?" +msgstr[0] "Esto eliminará la cara «%s» de una foto. ¿Quiere continuar?" +msgstr[1] "Esto eliminará la cara «%s» de %d fotos. ¿Quiere continuar?" + +#: src/Dialogs.vala:74 msgid "Export Video" msgstr "Exportar vídeo" -#: src/Dialogs.vala:84 +#: src/Dialogs.vala:99 msgid "Export Photos" msgstr "Exportar fotos" @@ -3187,7 +3198,7 @@ msgstr "Exportar fotos" #. if we can't copy an image over for editing in an external tool. #. Did we fail because we can't write to this directory? #. Yes - display an alternate error message here. -#: src/Dialogs.vala:112 +#: src/Dialogs.vala:127 #, c-format msgid "" "Shotwell couldn’t create a file for editing this photo because you do not " @@ -3196,13 +3207,13 @@ msgstr "" "Shotwell no pudo crear un archivo para editar esta foto porque no tiene " "permiso para escribir en %s." -#: src/Dialogs.vala:121 +#: src/Dialogs.vala:136 msgid "" "Unable to export the following photo due to a file error.\n" "\n" msgstr "No se puede exportar la siguiente foto debido a un error de archivo.\n" -#: src/Dialogs.vala:127 +#: src/Dialogs.vala:142 msgid "" "\n" "\n" @@ -3212,67 +3223,35 @@ msgstr "" "\n" "¿Quiere continuar la exportación?" -#: src/Dialogs.vala:128 +#: src/Dialogs.vala:143 msgid "Con_tinue" msgstr "Con_tinuar" -#. "Unmodified" and "Current," though they appear in the "Format:" popup menu, really -#. aren't formats so much as they are operating modes that determine specific formats. -#. Hereafter we'll refer to these as "special formats." -#: src/Dialogs.vala:144 -msgid "Unmodified" -msgstr "Sin modificar" - -#: src/Dialogs.vala:145 -msgid "Current" -msgstr "Actual" - -#. layout controls -#: src/Dialogs.vala:221 -msgid "_Format:" -msgstr "_Formato:" - -#: src/Dialogs.vala:224 -msgid "_Quality:" -msgstr "_Calidad:" - -#: src/Dialogs.vala:227 -msgid "_Scaling constraint:" -msgstr "Re_stricción de escala:" - -#: src/Dialogs.vala:230 -msgid "_Pixels:" -msgstr "_Píxeles:" - -#: src/Dialogs.vala:234 -msgid "Export _metadata:" -msgstr "Exportar metadatos:" - -#: src/Dialogs.vala:478 +#: src/Dialogs.vala:153 msgid "Save Details…" msgstr "Guardar detalles…" -#: src/Dialogs.vala:479 +#: src/Dialogs.vala:154 msgid "Save Details" msgstr "Guardar detalles" -#: src/Dialogs.vala:494 +#: src/Dialogs.vala:169 #, c-format msgid "(and %d more)\n" msgstr "(y %d más)\n" -#: src/Dialogs.vala:547 +#: src/Dialogs.vala:222 msgid "Import Results Report" msgstr "Informe de resultados de importación" -#: src/Dialogs.vala:551 +#: src/Dialogs.vala:226 #, c-format msgid "Attempted to import %d file." msgid_plural "Attempted to import %d files." msgstr[0] "Se intentó importar %d archivo." msgstr[1] "Se intentaron importar %d archivos." -#: src/Dialogs.vala:554 +#: src/Dialogs.vala:229 #, c-format msgid "Of these, %d file was successfully imported." msgid_plural "Of these, %d files were successfully imported." @@ -3282,37 +3261,37 @@ msgstr[1] "De ellos, se importaron %d archivos correctamente." #. #. Duplicates #. -#: src/Dialogs.vala:566 +#: src/Dialogs.vala:241 msgid "Duplicate Photos/Videos Not Imported:" msgstr "Fotos/vídeos duplicados no importados:" -#: src/Dialogs.vala:570 +#: src/Dialogs.vala:245 msgid "duplicates existing media item" msgstr "duplica el elemento existente" #. #. Files Not Imported Due to Camera Errors #. -#: src/Dialogs.vala:581 +#: src/Dialogs.vala:256 msgid "Photos/Videos Not Imported Due to Camera Errors:" msgstr "Fotos/vídeos no importados debido a errores de cámara:" -#: src/Dialogs.vala:584 src/Dialogs.vala:599 src/Dialogs.vala:614 -#: src/Dialogs.vala:630 src/Dialogs.vala:645 src/Dialogs.vala:659 +#: src/Dialogs.vala:259 src/Dialogs.vala:274 src/Dialogs.vala:289 +#: src/Dialogs.vala:305 src/Dialogs.vala:320 src/Dialogs.vala:334 msgid "error message:" msgstr "mensaje de error:" #. #. Files Not Imported Because They Weren't Recognized as Photos or Videos #. -#: src/Dialogs.vala:595 +#: src/Dialogs.vala:270 msgid "Files Not Imported Because They Weren’t Recognized as Photos or Videos:" msgstr "Archivos no importados porque no se reconocieron como fotos o vídeos:" #. #. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands #. -#: src/Dialogs.vala:610 +#: src/Dialogs.vala:285 msgid "" "Photos/Videos Not Imported Because They Weren’t in a Format Shotwell " "Understands:" @@ -3323,14 +3302,14 @@ msgstr "" #. #. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library #. -#: src/Dialogs.vala:625 +#: src/Dialogs.vala:300 msgid "" "Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into its " "Library:" msgstr "" "Fotos/vídeos no importados porque Shotwell no pudo copiarlos a su colección:" -#: src/Dialogs.vala:629 +#: src/Dialogs.vala:304 #, c-format msgid "" "couldn’t copy %s\n" @@ -3342,39 +3321,39 @@ msgstr "" #. #. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt #. -#: src/Dialogs.vala:641 +#: src/Dialogs.vala:316 msgid "Photos/Videos Not Imported Because Files Are Corrupt:" msgstr "No se importaron las fotos/vídeos porque los archivos están dañados:" #. #. Photos/Videos Not Imported for Other Reasons #. -#: src/Dialogs.vala:656 +#: src/Dialogs.vala:331 msgid "Photos/Videos Not Imported for Other Reasons:" msgstr "Fotos/vídeos no importados por otros motivos:" -#: src/Dialogs.vala:676 +#: src/Dialogs.vala:351 #, c-format msgid "1 duplicate photo was not imported:\n" msgid_plural "%d duplicate photos were not imported:\n" msgstr[0] "No se importó 1 foto duplicada:\r\n" msgstr[1] "No se importaron %d fotos duplicadas:\r\n" -#: src/Dialogs.vala:679 +#: src/Dialogs.vala:354 #, c-format msgid "1 duplicate video was not imported:\n" msgid_plural "%d duplicate videos were not imported:\n" msgstr[0] "No se importó 1 vídeo duplicado:\r\n" msgstr[1] "No se importaron %d vídeos duplicados:\r\n" -#: src/Dialogs.vala:682 +#: src/Dialogs.vala:357 #, c-format msgid "1 duplicate photo/video was not imported:\n" msgid_plural "%d duplicate photos/videos were not imported:\n" msgstr[0] "No se importó 1 foto/vídeo duplicado:\r\n" msgstr[1] "No se importaron %d fotos/vídeos duplicados:\r\n" -#: src/Dialogs.vala:696 +#: src/Dialogs.vala:371 #, c-format msgid "1 photo failed to import due to a file or hardware error:\n" msgid_plural "%d photos failed to import due to a file or hardware error:\n" @@ -3383,7 +3362,7 @@ msgstr[0] "" msgstr[1] "" "Falló al importar %d fotos debido a un error del archivo o de hardware:\n" -#: src/Dialogs.vala:699 +#: src/Dialogs.vala:374 #, c-format msgid "1 video failed to import due to a file or hardware error:\n" msgid_plural "%d videos failed to import due to a file or hardware error:\n" @@ -3392,7 +3371,7 @@ msgstr[0] "" msgstr[1] "" "Falló al importar %d vídeos debido a un error del archivo o de hardware:\r\n" -#: src/Dialogs.vala:702 +#: src/Dialogs.vala:377 #, c-format msgid "1 photo/video failed to import due to a file or hardware error:\n" msgid_plural "" @@ -3404,7 +3383,7 @@ msgstr[1] "" "Falló al importar %d fotos/vídeos debido a un error del archivo o de " "hardware:\r\n" -#: src/Dialogs.vala:705 +#: src/Dialogs.vala:380 #, c-format msgid "1 file failed to import due to a file or hardware error:\n" msgid_plural "%d files failed to import due to a file or hardware error:\n" @@ -3413,7 +3392,7 @@ msgstr[0] "" msgstr[1] "" "Falló al importar %d archivos debido a un error de archivo o de hardware:\n" -#: src/Dialogs.vala:719 +#: src/Dialogs.vala:394 #, c-format msgid "" "1 photo failed to import because the photo library folder was not writable:\n" @@ -3427,7 +3406,7 @@ msgstr[1] "" "Falló al importar %d fotos porque la carpeta de la colección de fotos no se " "puede escribir:\n" -#: src/Dialogs.vala:722 +#: src/Dialogs.vala:397 #, c-format msgid "" "1 video failed to import because the photo library folder was not writable:\n" @@ -3441,7 +3420,7 @@ msgstr[1] "" "Falló al importar %d fotos porque la carpeta de la colección de fotos no se " "puede escribir:\n" -#: src/Dialogs.vala:725 +#: src/Dialogs.vala:400 #, c-format msgid "" "1 photo/video failed to import because the photo library folder was not " @@ -3456,7 +3435,7 @@ msgstr[1] "" "Falló al importar %d fotos/vídeos porque la carpeta de la colección de fotos " "no se puede escribir:\n" -#: src/Dialogs.vala:728 +#: src/Dialogs.vala:403 #, c-format msgid "" "1 file failed to import because the photo library folder was not writable:\n" @@ -3470,56 +3449,56 @@ msgstr[1] "" "Falló la importación de %d archivos porque no se puede escribir en la " "colección de fotos:\n" -#: src/Dialogs.vala:742 +#: src/Dialogs.vala:417 #, c-format msgid "1 photo failed to import due to a camera error:\n" msgid_plural "%d photos failed to import due to a camera error:\n" msgstr[0] "Falló al importar 1 foto/vídeo debido a un error de la cámara:\n" msgstr[1] "Falló al importar %d fotos debido a un error de la cámara:\n" -#: src/Dialogs.vala:745 +#: src/Dialogs.vala:420 #, c-format msgid "1 video failed to import due to a camera error:\n" msgid_plural "%d videos failed to import due to a camera error:\n" msgstr[0] "Falló al importar 1 foto/vídeo debido a un error de la cámara:\n" msgstr[1] "Falló al importar %d vídeos debido a un error de la cámara:\n" -#: src/Dialogs.vala:748 +#: src/Dialogs.vala:423 #, c-format msgid "1 photo/video failed to import due to a camera error:\n" msgid_plural "%d photos/videos failed to import due to a camera error:\n" msgstr[0] "Falló al importar 1 foto/vídeo debido a un error de la cámara:\n" msgstr[1] "Falló al importar %d foto/vídeo debido a un error de la cámara:\n" -#: src/Dialogs.vala:751 +#: src/Dialogs.vala:426 #, c-format msgid "1 file failed to import due to a camera error:\n" msgid_plural "%d files failed to import due to a camera error:\n" msgstr[0] "Falló al importar 1 archivo debido a un error de la cámara: \n" msgstr[1] "Falló al importar %d archivor debido a un error de la cámara: \n" -#: src/Dialogs.vala:765 +#: src/Dialogs.vala:440 #, c-format msgid "1 photo failed to import because it was corrupt:\n" msgid_plural "%d photos failed to import because they were corrupt:\n" msgstr[0] "No se pudo importar una foto porque está dañada:\n" msgstr[1] "No se pudieron importar %d fotos porque están dañadas:\n" -#: src/Dialogs.vala:768 +#: src/Dialogs.vala:443 #, c-format msgid "1 video failed to import because it was corrupt:\n" msgid_plural "%d videos failed to import because they were corrupt:\n" msgstr[0] "No se pudo importar un vídeo porque está dañado:\n" msgstr[1] "No se pudieron importar %d vídeos porque están dañados:\n" -#: src/Dialogs.vala:771 +#: src/Dialogs.vala:446 #, c-format msgid "1 photo/video failed to import because it was corrupt:\n" msgid_plural "%d photos/videos failed to import because they were corrupt:\n" msgstr[0] "No se pudo importar 1 foto/vídeo porque está dañado:\n" msgstr[1] "No se pudieron importar %d fotos/vídeos porque están dañados:\n" -#: src/Dialogs.vala:774 +#: src/Dialogs.vala:449 #, c-format msgid "1 file failed to import because it was corrupt:\n" msgid_plural "%d files failed to import because it was corrupt:\n" @@ -3530,7 +3509,7 @@ msgstr[1] "No se pudieron importar %d archivos porque están dañados:\n" #. standard container formats are supported, it's just that the streams in them #. might or might not be interpretable), so this message does not need to be #. media specific -#: src/Dialogs.vala:791 +#: src/Dialogs.vala:466 #, c-format msgid "1 unsupported photo skipped:\n" msgid_plural "%d unsupported photos skipped:\n" @@ -3539,56 +3518,56 @@ msgstr[1] "Se omitieron %d fotos no compatibles:\n" #. we have no notion of "non-video" video files right now in Shotwell, so this #. message doesn't need to be media specific -#: src/Dialogs.vala:806 +#: src/Dialogs.vala:481 #, c-format msgid "1 non-image file skipped.\n" msgid_plural "%d non-image files skipped.\n" msgstr[0] "Se omitió 1 archivo que no era una imagen.\n" msgstr[1] "Se omitieron %d archivos que no eran imágenes.\n" -#: src/Dialogs.vala:817 +#: src/Dialogs.vala:492 #, c-format msgid "1 photo skipped due to user cancel:\n" msgid_plural "%d photos skipped due to user cancel:\n" msgstr[0] "Se omitió 1 foto debido a la cancelación del usuario:\n" msgstr[1] "Se omitieron %d fotos debido a la cancelación del usuario:\n" -#: src/Dialogs.vala:820 +#: src/Dialogs.vala:495 #, c-format msgid "1 video skipped due to user cancel:\n" msgid_plural "%d videos skipped due to user cancel:\n" msgstr[0] "Se omitió 1 vídeo debido a la cancelación del usuario:\n" msgstr[1] "Se omitieron %d vídeos debido a la cancelación del usuario:\n" -#: src/Dialogs.vala:823 +#: src/Dialogs.vala:498 #, c-format msgid "1 photo/video skipped due to user cancel:\n" msgid_plural "%d photos/videos skipped due to user cancel:\n" msgstr[0] "Se omitió 1 foto/vídeo debido a la cancelación del usuario:\n" msgstr[1] "Se omitieron %d fotos/vídeos debido a la cancelación del usuario:\n" -#: src/Dialogs.vala:826 +#: src/Dialogs.vala:501 #, c-format msgid "1 file skipped due to user cancel:\n" msgid_plural "%d file skipped due to user cancel:\n" msgstr[0] "Se omitió 1 archivo debido a la cancelación del usuario:\n" msgstr[1] "Se omitieron %d archivos debido a la cancelación del usuario:\n" -#: src/Dialogs.vala:840 +#: src/Dialogs.vala:515 #, c-format msgid "1 photo successfully imported.\n" msgid_plural "%d photos successfully imported.\n" msgstr[0] "1 foto correctamente importada.\n" msgstr[1] "%d fotos importadas correctamente.\n" -#: src/Dialogs.vala:843 +#: src/Dialogs.vala:518 #, c-format msgid "1 video successfully imported.\n" msgid_plural "%d videos successfully imported.\n" msgstr[0] "1 vídeo correctamente importado.\n" msgstr[1] "%d vídeos importados correctamente.\n" -#: src/Dialogs.vala:846 +#: src/Dialogs.vala:521 #, c-format msgid "1 photo/video successfully imported.\n" msgid_plural "%d photos/videos successfully imported.\n" @@ -3597,89 +3576,64 @@ msgstr[1] "%d fotos/vídeos importados correctamente.\n" #. if no media items were imported at all (i.e. an empty directory attempted), need to at least #. report that nothing was imported -#: src/Dialogs.vala:862 +#: src/Dialogs.vala:537 msgid "No photos or videos imported.\n" msgstr "No se importó ninguna foto o vídeo.\n" -#: src/Dialogs.vala:869 src/Dialogs.vala:888 +#: src/Dialogs.vala:544 src/Dialogs.vala:563 msgid "Import Complete" msgstr "Importación completa" -#: src/Dialogs.vala:1160 -#, c-format -msgid "%d second" -msgid_plural "%d seconds" -msgstr[0] "%d segundo" -msgstr[1] "%d segundos" - -#: src/Dialogs.vala:1163 -#, c-format -msgid "%d minute" -msgid_plural "%d minutes" -msgstr[0] "%d minuto" -msgstr[1] "%d minutos" - -#: src/Dialogs.vala:1167 -#, c-format -msgid "%d hour" -msgid_plural "%d hours" -msgstr[0] "%d hora" -msgstr[1] "%d horas" - -#: src/Dialogs.vala:1170 -msgid "1 day" -msgstr "1 día" - -#: src/Dialogs.vala:1317 src/Resources.vala:232 +#: src/Dialogs.vala:663 src/Resources.vala:202 msgid "Rename Event" msgstr "Renombrar evento" -#: src/Dialogs.vala:1317 +#: src/Dialogs.vala:663 msgid "Name:" msgstr "Nombre:" #. Dialog title -#: src/Dialogs.vala:1328 +#: src/Dialogs.vala:674 msgctxt "Dialog Title" msgid "Edit Title" msgstr "Editar título" -#: src/Dialogs.vala:1329 src/Properties.vala:343 +#: src/Dialogs.vala:675 src/Properties.vala:346 msgid "Title:" msgstr "Título:" #. Dialog title -#: src/Dialogs.vala:1345 src/Resources.vala:308 +#: src/Dialogs.vala:691 src/Resources.vala:278 msgid "Edit Event Comment" msgstr "Editar comentario de evento" -#: src/Dialogs.vala:1346 +#: src/Dialogs.vala:692 msgid "Edit Photo/Video Comment" msgstr "Editar comentario de foto/vídeo" -#: src/Dialogs.vala:1347 src/Properties.vala:631 +#: src/Dialogs.vala:693 src/Properties.vala:645 msgid "Comment:" msgstr "Comentario:" -#: src/Dialogs.vala:1363 +#: src/Dialogs.vala:709 msgid "Remove and _Trash File" msgid_plural "Remove and _Trash Files" msgstr[0] "Eliminar archivo y mover a la _papelera" msgstr[1] "Eliminar archivos y mover a la _papelera" -#: src/Dialogs.vala:1367 +#: src/Dialogs.vala:713 msgid "_Remove From Library" msgstr "_Quitar de la colección" -#: src/Dialogs.vala:1410 +#: src/Dialogs.vala:756 msgid "Revert External Edit?" msgstr "¿Revertir las ediciones externas?" -#: src/Dialogs.vala:1410 +#: src/Dialogs.vala:756 msgid "Revert External Edits?" msgstr "¿Revertir ediciones externas?" -#: src/Dialogs.vala:1412 +#: src/Dialogs.vala:758 #, c-format msgid "This will destroy all changes made to the external file. Continue?" msgid_plural "" @@ -3691,125 +3645,34 @@ msgstr[1] "" "Esto destruirá todos los cambios realizados en los %d archivos externos. " "¿Continuar?" -#: src/Dialogs.vala:1416 +#: src/Dialogs.vala:762 msgid "Re_vert External Edit" msgstr "Re_vertir edición externa" -#: src/Dialogs.vala:1416 +#: src/Dialogs.vala:762 msgid "Re_vert External Edits" msgstr "Re_vertir ediciones externas" -#: src/Dialogs.vala:1437 +#: src/Dialogs.vala:783 #, c-format msgid "This will remove the photo from the library. Continue?" msgid_plural "This will remove %d photos from the library. Continue?" msgstr[0] "Esto quitará la foto de la colección. ¿Continuar?" msgstr[1] "Esto quitará las %d fotos de la colección. ¿Continuar?" -#: src/Dialogs.vala:1444 src/Resources.vala:174 +#: src/Dialogs.vala:790 src/Resources.vala:144 msgid "_Remove" msgstr "_Quitar" -#: src/Dialogs.vala:1445 +#: src/Dialogs.vala:791 msgid "Remove Photo From Library" msgstr "Quitar la foto de la colección" -#: src/Dialogs.vala:1445 +#: src/Dialogs.vala:791 msgid "Remove Photos From Library" msgstr "Quitar fotos de la colección" -#: src/Dialogs.vala:1543 -#, c-format -msgid "%d%%" -msgstr "%d%%" - -#: src/Dialogs.vala:1697 -msgid "AM" -msgstr "a.m." - -#: src/Dialogs.vala:1698 -msgid "PM" -msgstr "p.m." - -#: src/Dialogs.vala:1699 -msgid "24 Hr" -msgstr "24 hrs." - -#: src/Dialogs.vala:1714 -msgid "_Shift photos/videos by the same amount" -msgstr "_Desplazar todas las fotos y/o vídeos la misma cantidad" - -#: src/Dialogs.vala:1719 -msgid "Set _all photos/videos to this time" -msgstr "Ajustar _todas las fotos y/o vídeos a esta hora" - -#: src/Dialogs.vala:1725 -msgid "_Modify original photo file" -msgid_plural "_Modify original photo files" -msgstr[0] "_Modificar archivo de foto original" -msgstr[1] "_Modificar archivos de fotos originales" - -#: src/Dialogs.vala:1729 -msgid "_Modify original file" -msgid_plural "_Modify original files" -msgstr[0] "_Modificar el archivo original" -msgstr[1] "_Modificar los archivos originales" - -#: src/Dialogs.vala:1817 -msgid "Original: " -msgstr "Original:" - -#: src/Dialogs.vala:1818 -msgid "%m/%d/%Y, %H:%M:%S" -msgstr "%d/%m/%Y, %H:%M:%S" - -#: src/Dialogs.vala:1819 -msgid "%m/%d/%Y, %I:%M:%S %p" -msgstr "%d/%m/%Y, %H:%M:%S %p" - -#: src/Dialogs.vala:1908 -#, c-format -msgid "" -"Exposure time will be shifted forward by\n" -"%d %s, %d %s, %d %s, and %d %s." -msgstr "" -"El tiempo de exposición se adelantará por\n" -"%d %s, %d %s, %d %s, y %d %s." - -#: src/Dialogs.vala:1909 -#, c-format -msgid "" -"Exposure time will be shifted backward by\n" -"%d %s, %d %s, %d %s, and %d %s." -msgstr "" -"El tiempo de exposición se atrasará por\n" -"%d %s, %d %s, %d %s, y %d %s." - -#: src/Dialogs.vala:1911 -msgid "day" -msgid_plural "days" -msgstr[0] "día" -msgstr[1] "días" - -#: src/Dialogs.vala:1912 -msgid "hour" -msgid_plural "hours" -msgstr[0] "hora" -msgstr[1] "horas" - -#: src/Dialogs.vala:1913 -msgid "minute" -msgid_plural "minutes" -msgstr[0] "minuto" -msgstr[1] "minutos" - -#: src/Dialogs.vala:1914 -msgid "second" -msgid_plural "seconds" -msgstr[0] "segundo" -msgstr[1] "segundos" - -#: src/Dialogs.vala:1958 +#: src/Dialogs.vala:811 #, c-format msgid "" "\n" @@ -3828,91 +3691,13 @@ msgstr[1] "" "\n" "Y %d más." -#: src/Dialogs.vala:1982 src/Dialogs.vala:2009 +#: src/Dialogs.vala:835 src/Dialogs.vala:862 msgid "Tags (separated by commas):" msgstr "Etiquetas (separadas por comas):" -#: src/Dialogs.vala:2089 -msgid "Welcome!" -msgstr "Bienvenido/a" - -#: src/Dialogs.vala:2096 -msgid "Welcome to Shotwell!" -msgstr "Bienvenido/a a Shotwell." - -#: src/Dialogs.vala:2101 -msgid "To get started, import photos in any of these ways:" -msgstr "Para comenzar, importe fotos de cualquiera de las siguientes formas:" - -#: src/Dialogs.vala:2121 -#, c-format -msgid "Choose File %s Import From Folder" -msgstr "Elija Archivo %s Importar desde carpeta" - -#: src/Dialogs.vala:2122 -msgid "Drag and drop photos onto the Shotwell window" -msgstr "Arrastre y suelte fotos en la ventana de Shotwell" - -#: src/Dialogs.vala:2123 -msgid "Connect a camera to your computer and import" -msgstr "Conecte una cámara al equipo e importe" - -#: src/Dialogs.vala:2134 -#, c-format -msgid "_Import photos from your %s folder" -msgstr "_Importar fotos desde su carpeta %s" - -#: src/Dialogs.vala:2141 -msgid "You can also import photos in any of these ways:" -msgstr "También puede importar fotos en cualquiera de estas formas:" - -#: src/Dialogs.vala:2152 -msgid "_Don’t show this message again" -msgstr "_No mostrar este mensaje de nuevo" - -#: src/Dialogs.vala:2189 -#, c-format -msgid "Import photos from your %s library" -msgstr "Importar fotos desde su colección %s" - -#. We're installed system-wide, so use the system help. -#. We're being run from the build directory; we'll have to handle clicks to this -#. link manually ourselves, due to a limitation of help: URIs. -#: src/Dialogs.vala:2373 src/Dialogs.vala:2377 -msgid "(Help)" -msgstr "(Ayuda)" - -#: src/Dialogs.vala:2381 -#, c-format -msgid "Year%sMonth%sDay" -msgstr "Año%sMes%sDía" - -#: src/Dialogs.vala:2383 -#, c-format -msgid "Year%sMonth" -msgstr "Año%sMes" - -#: src/Dialogs.vala:2385 -#, c-format -msgid "Year%sMonth-Day" -msgstr "Año%sMes-Día" - -#: src/Dialogs.vala:2387 -msgid "Year-Month-Day" -msgstr "Año-Mes-Día" - -#: src/Dialogs.vala:2388 src/editing_tools/EditingTools.vala:760 -msgid "Custom" -msgstr "Personalizado" - -#. Invalid pattern. -#: src/Dialogs.vala:2627 -msgid "Invalid pattern" -msgstr "Patrón no válido" - #. This function is used to determine whether or not files should be copied or linked when imported. #. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. -#: src/Dialogs.vala:2731 +#: src/Dialogs.vala:921 msgid "" "Shotwell can copy the photos into your library folder or it can import them " "without copying." @@ -3920,31 +3705,31 @@ msgstr "" "Shotwell puede copiar las fotos en su colección o puede importarlas sin " "copiarlas." -#: src/Dialogs.vala:2736 +#: src/Dialogs.vala:926 msgid "Co_py Photos" msgstr "C_opiar fotos" -#: src/Dialogs.vala:2737 +#: src/Dialogs.vala:927 msgid "_Import in Place" msgstr "_Importar en el lugar" -#: src/Dialogs.vala:2738 +#: src/Dialogs.vala:928 msgid "Import to Library" msgstr "Importar a la colección" -#: src/Dialogs.vala:2748 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:938 src/PhotoPage.vala:2897 msgid "Remove From Library" msgstr "Quitar de la colección" -#: src/Dialogs.vala:2749 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:939 src/PhotoPage.vala:2897 msgid "Removing Photo From Library" msgstr "Quitando la foto de la colección" -#: src/Dialogs.vala:2749 +#: src/Dialogs.vala:939 msgid "Removing Photos From Library" msgstr "Quitando fotos de la colección" -#: src/Dialogs.vala:2763 +#: src/Dialogs.vala:953 #, c-format msgid "" "This will remove the photo/video from your Shotwell library. Would you also " @@ -3967,7 +3752,7 @@ msgstr[1] "" "\n" "Esta acción no se puede deshacer." -#: src/Dialogs.vala:2767 +#: src/Dialogs.vala:957 #, c-format msgid "" "This will remove the video from your Shotwell library. Would you also like " @@ -3990,7 +3775,7 @@ msgstr[1] "" "\n" "Esta acción no se puede deshacer." -#: src/Dialogs.vala:2771 +#: src/Dialogs.vala:961 #, c-format msgid "" "This will remove the photo from your Shotwell library. Would you also like " @@ -4013,7 +3798,7 @@ msgstr[1] "" "\n" "Esta acción no se puede deshacer." -#: src/Dialogs.vala:2803 +#: src/Dialogs.vala:993 #, c-format msgid "" "The photo or video cannot be moved to your desktop trash. Delete this file?" @@ -4027,7 +3812,7 @@ msgstr[1] "" "¿Eliminar estos archivos?" #. Alert the user that the files were not removed. -#: src/Dialogs.vala:2820 +#: src/Dialogs.vala:1010 #, c-format msgid "The photo or video cannot be deleted." msgid_plural "%d photos/videos cannot be deleted." @@ -4066,7 +3851,8 @@ msgstr "" msgid "Unable open photo %s. Sorry." msgstr "No se puede abrir la foto %s." -#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:176 ui/direct.ui:8 +#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:146 ui/direct.ui:8 +#: ui/textentrydialog.ui:33 msgid "_Save" msgstr "_Guardar" @@ -4098,40 +3884,266 @@ msgstr "Guardar como" msgid "Unable to monitor %s: Not a directory (%s)" msgstr "No se puede monitorizar %s: No es un directorio (%s)" -#: src/editing_tools/EditingTools.vala:644 -msgid "Return to current photo dimensions" -msgstr "Volver a las dimensiones actuales de la foto" - -#: src/editing_tools/EditingTools.vala:647 -msgid "Set the crop for this photo" -msgstr "Establecer el corte para esta foto" +#: src/dialogs/AdjustDateTimeDialog.vala:78 +msgid "AM" +msgstr "a.m." -#: src/editing_tools/EditingTools.vala:659 -msgid "Pivot the crop rectangle between portrait and landscape orientations" -msgstr "" -"Girar el rectángulo de corte entre las orientaciones vertical y horizontal" +#: src/dialogs/AdjustDateTimeDialog.vala:79 +msgid "PM" +msgstr "p.m." -#: src/editing_tools/EditingTools.vala:732 -msgid "Unconstrained" -msgstr "Sin restricciones" +#: src/dialogs/AdjustDateTimeDialog.vala:80 +msgid "24 Hr" +msgstr "24 hrs." -#: src/editing_tools/EditingTools.vala:733 -msgid "Square" -msgstr "Cuadrado" +#: src/dialogs/AdjustDateTimeDialog.vala:95 +msgid "_Shift photos/videos by the same amount" +msgstr "_Desplazar todas las fotos y/o vídeos la misma cantidad" -#: src/editing_tools/EditingTools.vala:734 -msgid "Screen" -msgstr "Pantalla" +#: src/dialogs/AdjustDateTimeDialog.vala:100 +msgid "Set _all photos/videos to this time" +msgstr "Ajustar _todas las fotos y/o vídeos a esta hora" -#: src/editing_tools/EditingTools.vala:736 -#: src/editing_tools/EditingTools.vala:739 -#: src/editing_tools/EditingTools.vala:749 -#: src/editing_tools/EditingTools.vala:759 -msgid "-" -msgstr "-" +#: src/dialogs/AdjustDateTimeDialog.vala:106 +msgid "_Modify original photo file" +msgid_plural "_Modify original photo files" +msgstr[0] "_Modificar archivo de foto original" +msgstr[1] "_Modificar archivos de fotos originales" -#: src/editing_tools/EditingTools.vala:737 -msgid "SD Video (4 ∶ 3)" +#: src/dialogs/AdjustDateTimeDialog.vala:110 +msgid "_Modify original file" +msgid_plural "_Modify original files" +msgstr[0] "_Modificar el archivo original" +msgstr[1] "_Modificar los archivos originales" + +#: src/dialogs/AdjustDateTimeDialog.vala:213 +msgid "Original: " +msgstr "Original:" + +#: src/dialogs/AdjustDateTimeDialog.vala:214 +msgid "%m/%d/%Y, %H:%M:%S" +msgstr "%d/%m/%Y, %H:%M:%S" + +#: src/dialogs/AdjustDateTimeDialog.vala:215 +msgid "%m/%d/%Y, %I:%M:%S %p" +msgstr "%d/%m/%Y, %H:%M:%S %p" + +#: src/dialogs/AdjustDateTimeDialog.vala:306 +#, c-format +msgid "" +"Exposure time will be shifted forward by\n" +"%d %s, %d %s, %d %s, and %d %s." +msgstr "" +"El tiempo de exposición se adelantará por\n" +"%d %s, %d %s, %d %s, y %d %s." + +#: src/dialogs/AdjustDateTimeDialog.vala:307 +#, c-format +msgid "" +"Exposure time will be shifted backward by\n" +"%d %s, %d %s, %d %s, and %d %s." +msgstr "" +"El tiempo de exposición se atrasará por\n" +"%d %s, %d %s, %d %s, y %d %s." + +#: src/dialogs/AdjustDateTimeDialog.vala:309 +msgid "day" +msgid_plural "days" +msgstr[0] "día" +msgstr[1] "días" + +#: src/dialogs/AdjustDateTimeDialog.vala:310 +msgid "hour" +msgid_plural "hours" +msgstr[0] "hora" +msgstr[1] "horas" + +#: src/dialogs/AdjustDateTimeDialog.vala:311 +msgid "minute" +msgid_plural "minutes" +msgstr[0] "minuto" +msgstr[1] "minutos" + +#: src/dialogs/AdjustDateTimeDialog.vala:312 +msgid "second" +msgid_plural "seconds" +msgstr[0] "segundo" +msgstr[1] "segundos" + +#. "Unmodified" and "Current," though they appear in the "Format:" popup menu, really +#. aren't formats so much as they are operating modes that determine specific formats. +#. Hereafter we'll refer to these as "special formats." +#: src/dialogs/ExportDialog.vala:15 +msgid "Unmodified" +msgstr "Sin modificar" + +#: src/dialogs/ExportDialog.vala:16 +msgid "Current" +msgstr "Actual" + +#. layout controls +#: src/dialogs/ExportDialog.vala:90 +msgid "_Format:" +msgstr "_Formato:" + +#: src/dialogs/ExportDialog.vala:93 +msgid "_Quality:" +msgstr "_Calidad:" + +#: src/dialogs/ExportDialog.vala:96 +msgid "_Scaling constraint:" +msgstr "Re_stricción de escala:" + +#: src/dialogs/ExportDialog.vala:99 +msgid "_Pixels:" +msgstr "_Píxeles:" + +#: src/dialogs/ExportDialog.vala:103 +msgid "Export _metadata:" +msgstr "Exportar metadatos:" + +#. We're installed system-wide, so use the system help. +#. We're being run from the build directory; we'll have to handle clicks to this +#. link manually ourselves, due to a limitation of help: URIs. +#: src/dialogs/Preferences.vala:108 src/dialogs/Preferences.vala:112 +msgid "(Help)" +msgstr "(Ayuda)" + +#: src/dialogs/Preferences.vala:116 +#, c-format +msgid "Year%sMonth%sDay" +msgstr "Año%sMes%sDía" + +#: src/dialogs/Preferences.vala:118 +#, c-format +msgid "Year%sMonth" +msgstr "Año%sMes" + +#: src/dialogs/Preferences.vala:120 +#, c-format +msgid "Year%sMonth-Day" +msgstr "Año%sMes-Día" + +#: src/dialogs/Preferences.vala:122 +msgid "Year-Month-Day" +msgstr "Año-Mes-Día" + +#: src/dialogs/Preferences.vala:123 src/editing_tools/EditingTools.vala:760 +msgid "Custom" +msgstr "Personalizado" + +#. Invalid pattern. +#: src/dialogs/Preferences.vala:351 +msgid "Invalid pattern" +msgstr "Patrón no válido" + +#: src/dialogs/ProgressDialog.vala:97 +#, c-format +msgid "%d%%" +msgstr "%d%%" + +#: src/dialogs/SetBackgroundSlideshow.vala:49 +#, c-format +msgid "%d second" +msgid_plural "%d seconds" +msgstr[0] "%d segundo" +msgstr[1] "%d segundos" + +#: src/dialogs/SetBackgroundSlideshow.vala:52 +#, c-format +msgid "%d minute" +msgid_plural "%d minutes" +msgstr[0] "%d minuto" +msgstr[1] "%d minutos" + +#: src/dialogs/SetBackgroundSlideshow.vala:56 +#, c-format +msgid "%d hour" +msgid_plural "%d hours" +msgstr[0] "%d hora" +msgstr[1] "%d horas" + +#: src/dialogs/SetBackgroundSlideshow.vala:59 +msgid "1 day" +msgstr "1 día" + +#: src/dialogs/WelcomeDialog.vala:35 +msgid "Welcome!" +msgstr "Bienvenido/a" + +#: src/dialogs/WelcomeDialog.vala:42 +msgid "Welcome to Shotwell!" +msgstr "Bienvenido/a a Shotwell." + +#: src/dialogs/WelcomeDialog.vala:47 +msgid "To get started, import photos in any of these ways:" +msgstr "Para comenzar, importe fotos de cualquiera de las siguientes formas:" + +#: src/dialogs/WelcomeDialog.vala:67 +#, c-format +msgid "Choose File %s Import From Folder" +msgstr "Elija Archivo %s Importar desde carpeta" + +#: src/dialogs/WelcomeDialog.vala:68 +msgid "Drag and drop photos onto the Shotwell window" +msgstr "Arrastre y suelte fotos en la ventana de Shotwell" + +#: src/dialogs/WelcomeDialog.vala:69 +msgid "Connect a camera to your computer and import" +msgstr "Conecte una cámara al equipo e importe" + +#: src/dialogs/WelcomeDialog.vala:80 +#, c-format +msgid "_Import photos from your %s folder" +msgstr "_Importar fotos desde su carpeta %s" + +#: src/dialogs/WelcomeDialog.vala:87 +msgid "You can also import photos in any of these ways:" +msgstr "También puede importar fotos en cualquiera de estas formas:" + +#: src/dialogs/WelcomeDialog.vala:98 +msgid "_Don’t show this message again" +msgstr "_No mostrar este mensaje de nuevo" + +#: src/dialogs/WelcomeDialog.vala:135 +#, c-format +msgid "Import photos from your %s library" +msgstr "Importar fotos desde su colección %s" + +#: src/editing_tools/EditingTools.vala:644 +msgid "Return to current photo dimensions" +msgstr "Volver a las dimensiones actuales de la foto" + +#: src/editing_tools/EditingTools.vala:647 +msgid "Set the crop for this photo" +msgstr "Establecer el corte para esta foto" + +#: src/editing_tools/EditingTools.vala:659 +msgid "Pivot the crop rectangle between portrait and landscape orientations" +msgstr "" +"Girar el rectángulo de corte entre las orientaciones vertical y horizontal" + +#: src/editing_tools/EditingTools.vala:732 +msgid "Unconstrained" +msgstr "Sin restricciones" + +#: src/editing_tools/EditingTools.vala:733 +msgid "Square" +msgstr "Cuadrado" + +#: src/editing_tools/EditingTools.vala:734 +msgid "Screen" +msgstr "Pantalla" + +#: src/editing_tools/EditingTools.vala:736 +#: src/editing_tools/EditingTools.vala:739 +#: src/editing_tools/EditingTools.vala:749 +#: src/editing_tools/EditingTools.vala:759 +msgid "-" +msgstr "-" + +#: src/editing_tools/EditingTools.vala:737 +msgid "SD Video (4 ∶ 3)" msgstr "Vídeo SD (4:3)" #: src/editing_tools/EditingTools.vala:738 @@ -4210,7 +4222,7 @@ msgstr "30 × 40 cm" msgid "A3 (297 × 420 mm)" msgstr "A3 (297 × 420 mm)" -#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:398 +#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:401 msgid "Size:" msgstr "Tamaño:" @@ -4228,8 +4240,8 @@ msgid "_Reset" msgstr "_Restablecer" #. fit both on the top line, emit and move on -#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:439 -#: src/Properties.vala:443 src/Properties.vala:450 +#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:442 +#: src/Properties.vala:446 src/Properties.vala:453 msgid "Exposure:" msgstr "Exposición:" @@ -4253,47 +4265,49 @@ msgstr "Temperatura:" msgid "Shadows:" msgstr "Sombras:" -#: src/editing_tools/EditingTools.vala:2285 +#. FIXME: Hack to make the slider the same length as the other. Find out why it is aligned +#. Differently (probably because it only has positive values) +#: src/editing_tools/EditingTools.vala:2287 msgid "Highlights:" msgstr "Resaltadas:" -#: src/editing_tools/EditingTools.vala:2341 +#: src/editing_tools/EditingTools.vala:2344 msgid "Reset Colors" msgstr "Restablecer colores" -#: src/editing_tools/EditingTools.vala:2341 +#: src/editing_tools/EditingTools.vala:2344 msgid "Reset all color adjustments to original" msgstr "Restablecer todos los ajustes de color al original" -#: src/editing_tools/EditingTools.vala:2700 +#: src/editing_tools/EditingTools.vala:2703 msgid "Temperature" msgstr "Temperatura" -#: src/editing_tools/EditingTools.vala:2712 +#: src/editing_tools/EditingTools.vala:2715 msgid "Tint" msgstr "Matiz" -#: src/editing_tools/EditingTools.vala:2724 +#: src/editing_tools/EditingTools.vala:2727 msgid "Contrast" msgstr "Contraste" -#: src/editing_tools/EditingTools.vala:2738 +#: src/editing_tools/EditingTools.vala:2741 msgid "Saturation" msgstr "Saturación" -#: src/editing_tools/EditingTools.vala:2751 +#: src/editing_tools/EditingTools.vala:2754 msgid "Exposure" msgstr "Exposición" -#: src/editing_tools/EditingTools.vala:2764 +#: src/editing_tools/EditingTools.vala:2767 msgid "Shadows" msgstr "Sombras" -#: src/editing_tools/EditingTools.vala:2777 +#: src/editing_tools/EditingTools.vala:2780 msgid "Highlights" msgstr "Resaltadas" -#: src/editing_tools/EditingTools.vala:2787 +#: src/editing_tools/EditingTools.vala:2790 msgid "Contrast Expansion" msgstr "Expansión de contraste" @@ -4301,7 +4315,7 @@ msgstr "Expansión de contraste" msgid "Angle:" msgstr "Ángulo:" -#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:203 +#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:173 #: ui/direct.ui:144 ui/photo.ui:233 msgid "_Straighten" msgstr "_Enderezar" @@ -4313,14 +4327,14 @@ msgid_plural "%d Photos/Videos" msgstr[0] "%d foto/vídeo" msgstr[1] "%d fotos/vídeos" -#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:358 +#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:361 #, c-format msgid "%d Video" msgid_plural "%d Videos" msgstr[0] "%d vídeo" msgstr[1] "%d vídeos" -#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:356 +#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:359 #, c-format msgid "%d Photo" msgid_plural "%d Photos" @@ -4399,6 +4413,71 @@ msgstr "Reempla_zar todo" msgid "Export" msgstr "Exportar" +#: src/faces/FacesBranch.vala:89 src/Resources.vala:305 src/Resources.vala:306 +#: ui/faces.ui:403 +msgid "Faces" +msgstr "Caras" + +#: src/faces/FacesTool.vala:115 +msgid "Detect faces…" +msgstr "Detectar caras…" + +#: src/faces/FacesTool.vala:140 +#| msgid "Set the crop for this photo" +msgid "Detect faces on this photo" +msgstr "Detectar las caras en esta foto" + +#: src/faces/FacesTool.vala:142 +msgid "Cancel face detection" +msgstr "Cancelar la detección de caras" + +#: src/faces/FacesTool.vala:146 +msgid "Close the Faces tool without saving changes" +msgstr "Cerrar la herramienta de Caras sin guardar los cambios" + +#: src/faces/FacesTool.vala:153 src/faces/FacesTool.vala:185 +msgid "Click and drag to tag a face" +msgstr "Pulse ya arrastre para etiquetar una cara" + +#: src/faces/FacesTool.vala:180 +#, c-format +msgid "Click to edit face %s" +msgstr "Pulse para editar la cara %s" + +#: src/faces/FacesTool.vala:189 +msgid "Stop dragging to add your face and name it." +msgstr "Deje de arrastrar para añadir su cara y darle nombre." + +#: src/faces/FacesTool.vala:193 +msgid "Type a name for this face, then press Enter" +msgstr "Escriba un nombre para esta cara y pulse Intro" + +#: src/faces/FacesTool.vala:197 +msgid "Move or modify the face shape or name and press Enter" +msgstr "Mueva o modifique la forma de la cara o su nombre y pulse Intro" + +#: src/faces/FacesTool.vala:201 +#| msgid "Settings" +msgid "Detecting faces" +msgstr "Detectando caras" + +#: src/faces/FacesTool.vala:212 +msgid "If you don’t set the name of unknown faces they won’t be saved." +msgstr "Si no establece el nombre de las caras desconocidas no se guardarán." + +#: src/faces/FacesTool.vala:233 +msgid "Save changes and close the Faces tool" +msgstr "Guardar los cambios y cerrar la herramienta de Caras" + +#: src/faces/FacesTool.vala:235 +#| msgid "Lose changes to %s?" +msgid "No changes to save" +msgstr "No hay cambios que guardar" + +#: src/faces/FacesTool.vala:956 +msgid "Error trying to spawn face detection program:\n" +msgstr "Error al intentar lanzar el programa de detección de caras:\n" + #: src/folders/FoldersBranch.vala:144 msgid "Folders" msgstr "Carpetas" @@ -4407,8 +4486,18 @@ msgstr "Carpetas" msgid "Browse the library’s folder structure" msgstr "Explorar la estructura de carpetas de la biblioteca" -#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1098 -#: src/SearchFilter.vala:1099 +#: src/import-roll/ImportRollBranch.vala:44 +#| msgid "_Import" +msgid "Imports" +msgstr "Importaciones" + +#: src/import-roll/ImportRollBranch.vala:44 +#| msgid "Browse the library’s folder structure" +msgid "Browse the library’s import history" +msgstr "Explorar el histórico de importación de la biblioteca" + +#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1124 +#: src/SearchFilter.vala:1125 msgid "Flagged" msgstr "Marcada" @@ -4430,36 +4519,35 @@ msgid "Last Import" msgstr "Última importación" #: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 -#: ui/preferences_dialog.ui:512 +#: ui/preferences_dialog.ui:465 msgid "Library" msgstr "Colección" #: src/library/LibraryBranch.vala:30 -#| msgid "Organize your photos" msgid "Organize and browse your photos" msgstr "Organizar y examinar sus fotos" -#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1079 +#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1105 msgid "Photos" msgstr "Fotos" -#: src/library/LibraryWindow.vala:508 +#: src/library/LibraryWindow.vala:526 msgid "Import From Folder" msgstr "Importar desde carpeta" -#: src/library/LibraryWindow.vala:515 +#: src/library/LibraryWindow.vala:533 msgid "Recurse Into Subfolders" msgstr "Entrar en subcarpetas" -#: src/library/LibraryWindow.vala:583 ui/trash.ui:288 +#: src/library/LibraryWindow.vala:601 ui/trash.ui:288 msgid "Empty Trash" msgstr "Vaciar la papelera" -#: src/library/LibraryWindow.vala:583 +#: src/library/LibraryWindow.vala:601 msgid "Emptying Trash…" msgstr "Vaciando la papelera…" -#: src/library/LibraryWindow.vala:779 +#: src/library/LibraryWindow.vala:780 #, c-format msgid "" "Shotwell is configured to import photos to your home directory.\n" @@ -4472,33 +4560,33 @@ msgstr "" "span>.\n" "¿Quiere seguir importando fotos?" -#: src/library/LibraryWindow.vala:782 ui/preferences_dialog.ui:142 +#: src/library/LibraryWindow.vala:783 ui/preferences_dialog.ui:86 msgid "Library Location" msgstr "Ubicación de la colección" #. TODO: Specify which directory/file. -#: src/library/LibraryWindow.vala:795 +#: src/library/LibraryWindow.vala:796 msgid "Photos cannot be imported from this directory." msgstr "Las fotos no pueden importarse desde esta carpeta." -#: src/library/LibraryWindow.vala:1075 +#: src/library/LibraryWindow.vala:1076 #, c-format msgid "%s (%d%%)" msgstr "%s (%d%%)" -#: src/library/LibraryWindow.vala:1119 src/library/LibraryWindow.vala:1130 +#: src/library/LibraryWindow.vala:1120 src/library/LibraryWindow.vala:1131 msgid "Updating library…" msgstr "Actualizando la colección…" -#: src/library/LibraryWindow.vala:1136 +#: src/library/LibraryWindow.vala:1137 msgid "Preparing to auto-import photos…" msgstr "Preparando para importar fotos automáticamente…" -#: src/library/LibraryWindow.vala:1141 +#: src/library/LibraryWindow.vala:1142 msgid "Auto-importing photos…" msgstr "Importando fotos automáticamente…" -#: src/library/LibraryWindow.vala:1149 +#: src/library/LibraryWindow.vala:1150 msgid "Writing metadata to files…" msgstr "Escribiendo metadatos en los archivos…" @@ -4518,7 +4606,7 @@ msgstr "Papelera" msgid "Trash is empty" msgstr "La papelera está vacía" -#: src/library/TrashPage.vala:110 +#: src/library/TrashPage.vala:110 ui/faces.ui:469 msgid "Delete" msgstr "Eliminar" @@ -4567,42 +4655,42 @@ msgid "Unknown error attempting to verify Shotwell’s database: %s" msgstr "" "Error desconocido al intentar verificar la base de datos de Shotwell: %s" -#: src/main.vala:104 +#: src/main.vala:108 msgid "Loading Shotwell" msgstr "Cargando Shotwell" -#: src/main.vala:303 +#: src/main.vala:320 msgid "Path to Shotwell’s private data" msgstr "Ruta a los datos privados de Shotwell" -#: src/main.vala:303 +#: src/main.vala:320 msgid "DIRECTORY" msgstr "DIRECTORIO" -#: src/main.vala:307 +#: src/main.vala:324 msgid "Do not monitor library directory at runtime for changes" msgstr "" "No monitorear el directorio de la colección en tiempo de ejecución para " "buscar cambios" -#: src/main.vala:311 +#: src/main.vala:328 msgid "Don’t display startup progress meter" msgstr "No mostrar medidor de progreso de inicio" -#: src/main.vala:315 +#: src/main.vala:332 msgid "Show the application’s version" msgstr "Mostrar la versión de la aplicación" -#: src/main.vala:319 +#: src/main.vala:336 msgid "Start the application in fullscreen mode" msgstr "Iniciar la aplicación en modo de pantalla completa" #. init GTK (valac has already called g_threads_init()) -#: src/main.vala:356 +#: src/main.vala:373 msgid "[FILE]" msgstr "[ARCHIVO]" -#: src/main.vala:360 +#: src/main.vala:380 #, c-format msgid "Run “%s --help” to see a full list of available command line options.\n" msgstr "" @@ -4614,11 +4702,11 @@ msgstr "" msgid "Unable to process monitoring updates: %s" msgstr "No se pueden procesar las actualizaciones de la monitorización %s" -#: src/MediaPage.vala:158 +#: src/MediaPage.vala:157 msgid "Adjust the size of the thumbnails" msgstr "Ajustar el tamaño de las miniaturas" -#: src/MediaPage.vala:502 +#: src/MediaPage.vala:500 #, c-format msgid "" "Shotwell was unable to play the selected video:\n" @@ -4627,34 +4715,34 @@ msgstr "" "Shotwell no pudo reproducir el vídeo seleccionado:\n" "%s" -#: src/Page.vala:1327 +#: src/Page.vala:1324 msgid "No photos/videos" msgstr "No hay fotos/vídeos" -#: src/Page.vala:1331 +#: src/Page.vala:1328 msgid "No photos/videos found which match the current filter" msgstr "No se han encontrado fotos/vídeos que coincidan con el filtro actual" -#: src/Page.vala:2644 +#: src/Page.vala:2641 msgid "Photos cannot be exported to this directory." msgstr "No se pueden exportar las fotos a este directorio." #. previous button -#: src/PhotoPage.vala:538 +#: src/PhotoPage.vala:550 msgid "Previous photo" msgstr "Foto anterior" #. next button -#: src/PhotoPage.vala:544 +#: src/PhotoPage.vala:556 msgid "Next photo" msgstr "Siguiente foto" -#: src/PhotoPage.vala:1850 +#: src/PhotoPage.vala:1862 #, c-format msgid "Photo source file missing: %s" msgstr "Falta el archivo de origen de la foto: %s" -#: src/PhotoPage.vala:3018 +#: src/PhotoPage.vala:3041 #, c-format msgid "Unable to export %s: %s" msgstr "No se puede exportar %s: %s" @@ -4663,6 +4751,10 @@ msgstr "No se puede exportar %s: %s" msgid "BMP" msgstr "BMP" +#: src/photos/GifSupport.vala:32 +msgid "GIF" +msgstr "GIF" + #: src/photos/JfifSupport.vala:84 msgid "JPEG" msgstr "JPEG" @@ -4750,19 +4842,19 @@ msgstr "" "\n" "%s" -#: src/Properties.vala:87 +#: src/Properties.vala:97 msgid "Today" msgstr "Hoy" -#: src/Properties.vala:89 +#: src/Properties.vala:99 msgid "Yesterday" msgstr "Ayer" -#: src/Properties.vala:346 +#: src/Properties.vala:349 msgid "Items:" msgstr "Elementos:" -#: src/Properties.vala:349 +#: src/Properties.vala:352 #, c-format msgid "%d Event" msgid_plural "%d Events" @@ -4770,107 +4862,103 @@ msgstr[0] "%d evento" msgstr[1] "%d eventos" #. display only one date if start and end are the same -#: src/Properties.vala:380 +#: src/Properties.vala:383 msgid "Date:" msgstr "Fecha:" #. display only one time if start and end are the same -#: src/Properties.vala:384 +#: src/Properties.vala:387 msgid "Time:" msgstr "Hora:" #. display time range #. display date range -#: src/Properties.vala:387 src/Properties.vala:392 +#: src/Properties.vala:390 src/Properties.vala:395 msgid "From:" msgstr "De:" -#: src/Properties.vala:388 src/Properties.vala:393 +#: src/Properties.vala:391 src/Properties.vala:396 msgid "To:" msgstr "A:" -#: src/Properties.vala:407 +#: src/Properties.vala:410 msgid "Duration:" msgstr "Duración:" -#: src/Properties.vala:407 +#: src/Properties.vala:410 #, c-format msgid "%.1f seconds" msgstr "%.1f segundos" -#: src/Properties.vala:411 +#: src/Properties.vala:414 msgid "Developer:" msgstr "Revelador:" #. nothing special to be done for now for Events -#: src/Properties.vala:586 +#: src/Properties.vala:592 msgid "Location:" msgstr "Ubicación:" -#: src/Properties.vala:589 +#: src/Properties.vala:595 msgid "File size:" msgstr "Tamaño del archivo:" -#: src/Properties.vala:593 +#: src/Properties.vala:599 msgid "Current Development:" msgstr "Desarrollo actual:" -#: src/Properties.vala:595 +#: src/Properties.vala:601 msgid "Original dimensions:" msgstr "Dimensiones originales:" -#: src/Properties.vala:598 +#: src/Properties.vala:604 msgid "Camera make:" msgstr "Cámara:" -#: src/Properties.vala:601 +#: src/Properties.vala:607 msgid "Camera model:" msgstr "Modelo de la cámara:" -#: src/Properties.vala:604 +#: src/Properties.vala:610 msgid "Flash:" msgstr "Flash:" -#: src/Properties.vala:606 +#: src/Properties.vala:612 msgid "Focal length:" msgstr "Longitud focal:" -#: src/Properties.vala:609 +#: src/Properties.vala:615 msgid "Exposure date:" msgstr "Fecha de exposición:" -#: src/Properties.vala:612 +#: src/Properties.vala:618 msgid "Exposure time:" msgstr "Tiempo de exposición:" -#: src/Properties.vala:615 +#: src/Properties.vala:621 msgid "Exposure bias:" msgstr "Exposición:" -#: src/Properties.vala:617 +#: src/Properties.vala:631 msgid "GPS latitude:" msgstr "Latitud GPS:" -#: src/Properties.vala:620 +#: src/Properties.vala:634 msgid "GPS longitude:" msgstr "Longitud GPS:" -#: src/Properties.vala:623 +#: src/Properties.vala:637 msgid "Artist:" msgstr "Artista:" -#: src/Properties.vala:625 +#: src/Properties.vala:639 msgid "Copyright:" msgstr "Copyright:" -#: src/Properties.vala:627 +#: src/Properties.vala:641 msgid "Software:" msgstr "Software:" -#: src/Properties.vala:644 -msgid "Extended Information" -msgstr "Información extendida" - #: src/publishing/PublishingPluginHost.vala:11 msgid "Preparing for upload" msgstr "Preparando para subir" @@ -4916,37 +5004,37 @@ msgstr "Obteniendo información de la cuenta…" msgid "Logging in…" msgstr "Iniciando sesión…" -#: src/publishing/PublishingUI.vala:195 +#: src/publishing/PublishingUI.vala:197 msgid "Publish Photos" msgstr "Publicar fotos" -#: src/publishing/PublishingUI.vala:196 +#: src/publishing/PublishingUI.vala:198 msgid "Publish photos _to:" msgstr "Publicar fo_tos en:" -#: src/publishing/PublishingUI.vala:198 +#: src/publishing/PublishingUI.vala:200 msgid "Publish Videos" msgstr "Publicar vídeos" -#: src/publishing/PublishingUI.vala:199 +#: src/publishing/PublishingUI.vala:201 msgid "Publish videos _to" msgstr "Publicar vídeos _en" -#: src/publishing/PublishingUI.vala:201 +#: src/publishing/PublishingUI.vala:203 msgid "Publish Photos and Videos" msgstr "Publicar fotos y vídeos" -#: src/publishing/PublishingUI.vala:202 +#: src/publishing/PublishingUI.vala:204 msgid "Publish photos and videos _to" msgstr "Publicar fotos y vídeos _en" #. There are no enabled publishing services that accept this media type, #. warn the user. -#: src/publishing/PublishingUI.vala:412 +#: src/publishing/PublishingUI.vala:414 msgid "Unable to publish" msgstr "No se pudo publicar" -#: src/publishing/PublishingUI.vala:413 +#: src/publishing/PublishingUI.vala:415 #, c-format msgid "" "Shotwell cannot publish the selected items because you do not have a " @@ -4963,734 +5051,813 @@ msgstr "" msgid "Publishing" msgstr "Publicando" -#: src/Resources.vala:141 src/Resources.vala:146 ui/collection.ui:151 +#: src/Resources.vala:111 src/Resources.vala:116 ui/collection.ui:151 msgid "Rotate" msgstr "Girar" -#: src/Resources.vala:142 +#: src/Resources.vala:112 msgid "Rotate Right" msgstr "Girar a la derecha" -#: src/Resources.vala:143 ui/collection.ui:148 +#: src/Resources.vala:113 ui/collection.ui:148 msgid "Rotate the photos right (press Ctrl to rotate left)" msgstr "Girar las fotos a la derecha (oprima Ctrl para girar a la izquierda)" -#: src/Resources.vala:147 +#: src/Resources.vala:117 msgid "Rotate Left" msgstr "Girar a la izquierda" -#: src/Resources.vala:148 +#: src/Resources.vala:118 msgid "Rotate the photos left" msgstr "Girar las fotos a la izquierda" -#: src/Resources.vala:151 +#: src/Resources.vala:121 msgid "Flip Horizontally" msgstr "Voltear horizontalmente" -#: src/Resources.vala:154 +#: src/Resources.vala:124 msgid "Flip Vertically" msgstr "Voltear verticalmente" -#: src/Resources.vala:156 ui/direct.ui:191 ui/events_directory.ui:168 -#: ui/event.ui:438 ui/import_queue.ui:83 ui/import.ui:201 ui/media.ui:421 -#: ui/offline.ui:198 ui/photo.ui:404 ui/tags.ui:440 ui/trash.ui:207 +#: src/Resources.vala:126 ui/direct.ui:192 ui/events_directory.ui:168 +#: ui/event.ui:438 ui/faces.ui:448 ui/import_queue.ui:83 ui/import.ui:201 +#: ui/manifest_widget.ui:35 ui/media.ui:421 ui/offline.ui:198 ui/photo.ui:405 +#: ui/tags.ui:440 ui/trash.ui:207 msgid "_About" msgstr "_Acerca de" -#: src/Resources.vala:157 +#: src/Resources.vala:127 msgid "_Apply" msgstr "_Aplicar" -#: src/Resources.vala:160 ui/direct.ui:44 ui/events_directory.ui:32 -#: ui/event.ui:47 ui/import.ui:40 ui/media.ui:47 ui/offline.ui:32 -#: ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 +#: src/Resources.vala:130 ui/direct.ui:44 ui/events_directory.ui:32 +#: ui/event.ui:47 ui/faces.ui:47 ui/import.ui:40 ui/media.ui:47 +#: ui/offline.ui:32 ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 msgid "_Edit" msgstr "_Editar" -#: src/Resources.vala:161 +#: src/Resources.vala:131 msgid "_Forward" msgstr "_Adelante" -#: src/Resources.vala:162 ui/direct.ui:62 ui/events_directory.ui:125 +#: src/Resources.vala:132 ui/direct.ui:62 ui/events_directory.ui:125 #: ui/photo.ui:173 msgid "Fulls_creen" msgstr "Pantalla c_ompleta" -#: src/Resources.vala:163 ui/direct.ui:173 ui/direct.ui:176 +#: src/Resources.vala:133 ui/direct.ui:174 ui/direct.ui:177 #: ui/events_directory.ui:150 ui/events_directory.ui:153 ui/event.ui:420 -#: ui/event.ui:423 ui/import_queue.ui:65 ui/import_queue.ui:68 -#: ui/import.ui:183 ui/import.ui:186 ui/media.ui:403 ui/media.ui:406 -#: ui/offline.ui:180 ui/offline.ui:183 ui/photo.ui:386 ui/photo.ui:389 -#: ui/tags.ui:422 ui/tags.ui:425 ui/trash.ui:189 ui/trash.ui:192 +#: ui/event.ui:423 ui/faces.ui:430 ui/faces.ui:433 ui/import_queue.ui:65 +#: ui/import_queue.ui:68 ui/import.ui:183 ui/import.ui:186 ui/media.ui:403 +#: ui/media.ui:406 ui/offline.ui:180 ui/offline.ui:183 ui/photo.ui:387 +#: ui/photo.ui:390 ui/tags.ui:422 ui/tags.ui:425 ui/trash.ui:189 +#: ui/trash.ui:192 msgid "_Help" msgstr "Ay_uda" -#: src/Resources.vala:164 +#: src/Resources.vala:134 msgid "Leave _Fullscreen" msgstr "Salir de pantalla co_mpleta" -#: src/Resources.vala:165 src/Resources.vala:364 ui/tags.ui:450 +#: src/Resources.vala:135 src/Resources.vala:343 ui/tags.ui:450 msgid "_New" msgstr "_Nueva" -#: src/Resources.vala:166 +#: src/Resources.vala:136 msgid "_Next" msgstr "_Siguiente" -#: src/Resources.vala:169 src/Resources.vala:318 ui/events_directory.ui:65 -#: ui/event.ui:93 ui/import.ui:68 ui/media.ui:93 ui/offline.ui:72 -#: ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 +#: src/Resources.vala:139 src/Resources.vala:288 ui/events_directory.ui:65 +#: ui/event.ui:93 ui/faces.ui:93 ui/import.ui:68 ui/media.ui:93 +#: ui/offline.ui:72 ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 msgid "_Preferences" msgstr "_Preferencias" -#: src/Resources.vala:170 +#: src/Resources.vala:140 msgid "_Previous" msgstr "_Anterior" -#: src/Resources.vala:172 ui/direct.ui:37 ui/events_directory.ui:25 -#: ui/event.ui:40 ui/import_queue.ui:31 ui/import.ui:33 ui/media.ui:40 -#: ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 +#: src/Resources.vala:142 ui/direct.ui:37 ui/events_directory.ui:25 +#: ui/event.ui:40 ui/faces.ui:40 ui/import_queue.ui:31 ui/import.ui:33 +#: ui/media.ui:40 ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 msgid "_Quit" msgstr "_Salir" -#: src/Resources.vala:173 +#: src/Resources.vala:143 msgid "_Refresh" msgstr "_Actualizar" -#: src/Resources.vala:175 +#: src/Resources.vala:145 msgid "_Revert" msgstr "_Revertir" -#: src/Resources.vala:177 +#: src/Resources.vala:147 msgid "Save _As" msgstr "Guardar _como" -#: src/Resources.vala:178 +#: src/Resources.vala:148 msgid "Sort _Ascending" msgstr "Ordenar _ascendentemente" -#: src/Resources.vala:179 +#: src/Resources.vala:149 msgid "Sort _Descending" msgstr "Ordenar d_escendentemente" -#: src/Resources.vala:180 +#: src/Resources.vala:150 msgid "_Stop" msgstr "_Detener" -#: src/Resources.vala:181 +#: src/Resources.vala:151 msgid "_Undelete" msgstr "_Recuperar" -#: src/Resources.vala:182 +#: src/Resources.vala:152 msgid "_Normal Size" msgstr "Tamaño _normal" -#: src/Resources.vala:183 +#: src/Resources.vala:153 msgid "Best _Fit" msgstr "_Mejor ajuste" -#: src/Resources.vala:184 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 -#: ui/photo.ui:144 ui/tags.ui:260 +#: src/Resources.vala:154 ui/direct.ui:69 ui/event.ui:260 ui/faces.ui:260 +#: ui/media.ui:260 ui/photo.ui:144 ui/tags.ui:260 msgid "Zoom _In" msgstr "_Ampliar" -#: src/Resources.vala:185 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 -#: ui/photo.ui:149 ui/tags.ui:265 +#: src/Resources.vala:155 ui/direct.ui:74 ui/event.ui:265 ui/faces.ui:265 +#: ui/media.ui:265 ui/photo.ui:149 ui/tags.ui:265 msgid "Zoom _Out" msgstr "Re_ducir" -#: src/Resources.vala:188 ui/collection.ui:167 +#: src/Resources.vala:158 ui/collection.ui:167 msgid "Enhance" msgstr "Mejorar" -#: src/Resources.vala:189 ui/collection.ui:164 +#: src/Resources.vala:159 ui/collection.ui:164 msgid "Automatically improve the photo’s appearance" msgstr "Mejorar automáticamente la apariencia de la foto" -#: src/Resources.vala:192 +#: src/Resources.vala:162 msgid "Copy Color Adjustments" msgstr "Copiar ajustes de color" -#: src/Resources.vala:193 +#: src/Resources.vala:163 msgid "Copy the color adjustments applied to the photo" msgstr "Copiar los ajustes de color aplicados a la foto" -#: src/Resources.vala:196 +#: src/Resources.vala:166 msgid "Paste Color Adjustments" msgstr "Pegar ajustes de color" -#: src/Resources.vala:197 +#: src/Resources.vala:167 msgid "Apply copied color adjustments to the selected photos" msgstr "Aplicar ajuste de color copiado a las fotos seleccionadas" -#: src/Resources.vala:199 ui/direct.ui:139 ui/photo.ui:228 +#: src/Resources.vala:169 ui/direct.ui:139 ui/photo.ui:228 msgid "_Crop" msgstr "Re_cortar" -#: src/Resources.vala:200 +#: src/Resources.vala:170 msgid "Crop" msgstr "Recortar" -#: src/Resources.vala:201 +#: src/Resources.vala:171 msgid "Crop the photo’s size" msgstr "Recortar el tamaño de la foto" -#: src/Resources.vala:204 +#: src/Resources.vala:174 msgid "Straighten" msgstr "Enderezar" -#: src/Resources.vala:205 +#: src/Resources.vala:175 msgid "Straighten the photo" msgstr "Enderezar la foto" -#: src/Resources.vala:207 ui/direct.ui:149 ui/photo.ui:238 +#: src/Resources.vala:177 ui/direct.ui:149 ui/photo.ui:238 msgid "_Red-eye" msgstr "Ojos _rojos" -#: src/Resources.vala:208 +#: src/Resources.vala:178 msgid "Red-eye" msgstr "Ojos rojos" -#: src/Resources.vala:209 +#: src/Resources.vala:179 msgid "Reduce or eliminate any red-eye effects in the photo" msgstr "Reducir o eliminar cualquier efecto de ojos rojos en la foto" -#: src/Resources.vala:211 ui/direct.ui:154 ui/photo.ui:243 +#: src/Resources.vala:181 ui/direct.ui:154 ui/photo.ui:243 msgid "_Adjust" msgstr "_Ajuste" -#: src/Resources.vala:212 +#: src/Resources.vala:182 msgid "Adjust" msgstr "Ajuste" -#: src/Resources.vala:213 +#: src/Resources.vala:183 msgid "Adjust the photo’s color and tone" msgstr "Ajustar el color y el tono de la foto" -#: src/Resources.vala:216 +#: src/Resources.vala:186 msgid "Revert to Original" msgstr "Volver al original" -#: src/Resources.vala:218 +#: src/Resources.vala:188 msgid "Revert External E_dits" msgstr "Revertir e_diciones externas" -#: src/Resources.vala:219 +#: src/Resources.vala:189 msgid "Revert to the master photo" msgstr "Revertir a la foto original" -#: src/Resources.vala:222 +#: src/Resources.vala:192 msgid "Set selected image to be the new desktop background" msgstr "Establezca la imagen seleccionada como nuevo fondo de escritorio" -#: src/Resources.vala:223 +#: src/Resources.vala:193 msgid "Set as _Desktop Slideshow…" msgstr "Establecer como pase de _diapositivas de escritorio…" -#: src/Resources.vala:225 ui/direct.ui:47 ui/events_directory.ui:35 -#: ui/event.ui:50 ui/import.ui:43 ui/media.ui:50 ui/offline.ui:35 -#: ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 +#: src/Resources.vala:195 ui/direct.ui:47 ui/events_directory.ui:35 +#: ui/event.ui:50 ui/faces.ui:50 ui/import.ui:43 ui/media.ui:50 +#: ui/offline.ui:35 ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 msgid "_Undo" msgstr "_Deshacer" -#: src/Resources.vala:226 +#: src/Resources.vala:196 msgid "Undo" msgstr "Deshacer" -#: src/Resources.vala:228 ui/direct.ui:52 ui/events_directory.ui:40 -#: ui/event.ui:55 ui/import.ui:48 ui/media.ui:55 ui/offline.ui:40 -#: ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 +#: src/Resources.vala:198 ui/direct.ui:52 ui/events_directory.ui:40 +#: ui/event.ui:55 ui/faces.ui:55 ui/import.ui:48 ui/media.ui:55 +#: ui/offline.ui:40 ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 msgid "_Redo" msgstr "_Rehacer" -#: src/Resources.vala:229 +#: src/Resources.vala:199 msgid "Redo" msgstr "Rehacer" -#: src/Resources.vala:231 ui/events_directory.ui:139 +#: src/Resources.vala:201 ui/events_directory.ui:139 #: ui/events_directory.ui:181 ui/event.ui:393 ui/event.ui:588 msgid "Re_name Event…" msgstr "Re_nombrar evento…" -#: src/Resources.vala:234 ui/event.ui:373 ui/event.ui:580 +#: src/Resources.vala:204 ui/event.ui:373 ui/event.ui:580 msgid "Make _Key Photo for Event" msgstr "Hacer foto _clave para el evento" -#: src/Resources.vala:235 +#: src/Resources.vala:205 msgid "Make Key Photo for Event" msgstr "Hacer foto clave para el evento" -#: src/Resources.vala:237 ui/event.ui:382 ui/media.ui:376 ui/tags.ui:376 +#: src/Resources.vala:207 ui/event.ui:382 ui/faces.ui:376 ui/media.ui:376 +#: ui/tags.ui:376 msgid "_New Event" msgstr "Evento _nuevo" -#: src/Resources.vala:238 +#: src/Resources.vala:208 msgid "New Event" msgstr "Evento nuevo" -#: src/Resources.vala:240 +#: src/Resources.vala:210 msgid "Move Photos" msgstr "Mover fotos" -#: src/Resources.vala:241 +#: src/Resources.vala:211 msgid "Move photos to an event" msgstr "Mover fotos a un evento" -#: src/Resources.vala:243 ui/events_directory.ui:135 +#: src/Resources.vala:213 ui/events_directory.ui:135 #: ui/events_directory.ui:177 msgid "_Merge Events" msgstr "_Combinar eventos" -#: src/Resources.vala:244 +#: src/Resources.vala:214 msgid "Merge" msgstr "Combinar" -#: src/Resources.vala:245 +#: src/Resources.vala:215 msgid "Combine events into a single event" msgstr "Combinar eventos en uno solo" -#: src/Resources.vala:247 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 -#: ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 ui/tags.ui:286 +#: src/Resources.vala:217 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 +#: ui/faces.ui:286 ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 +#: ui/tags.ui:286 msgid "_Set Rating" msgstr "Establecer p_untuación" -#: src/Resources.vala:248 +#: src/Resources.vala:218 msgid "Set Rating" msgstr "Establecer puntuación" -#: src/Resources.vala:249 +#: src/Resources.vala:219 msgid "Change the rating of your photo" msgstr "Cambiar la puntuación de su foto" -#: src/Resources.vala:251 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 -#: ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 ui/tags.ui:326 +#: src/Resources.vala:221 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 +#: ui/faces.ui:326 ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 +#: ui/tags.ui:326 msgid "_Increase" msgstr "_Aumentar" -#: src/Resources.vala:252 +#: src/Resources.vala:222 msgid "Increase Rating" msgstr "Aumentar puntuación" -#: src/Resources.vala:254 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 -#: ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 ui/tags.ui:331 +#: src/Resources.vala:224 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 +#: ui/faces.ui:331 ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 +#: ui/tags.ui:331 msgid "_Decrease" msgstr "Disminuir" -#: src/Resources.vala:255 +#: src/Resources.vala:225 msgid "Decrease Rating" msgstr "Disminuir puntuación" -#: src/Resources.vala:257 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 -#: ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 ui/tags.ui:314 +#: src/Resources.vala:227 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 +#: ui/faces.ui:314 ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 +#: ui/tags.ui:314 msgid "_Unrated" msgstr "_Sin puntuar" -#: src/Resources.vala:258 +#: src/Resources.vala:228 msgid "Unrated" msgstr "Sin puntuar" -#: src/Resources.vala:259 +#: src/Resources.vala:229 msgid "Rate Unrated" msgstr "Puntuar no puntuadas" -#: src/Resources.vala:260 +#: src/Resources.vala:230 msgid "Setting as unrated" msgstr "Establecer como sin puntuación" -#: src/Resources.vala:261 +#: src/Resources.vala:231 msgid "Remove any ratings" msgstr "Quitar cualquier puntuación" -#: src/Resources.vala:263 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 -#: ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 ui/tags.ui:319 +#: src/Resources.vala:233 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 +#: ui/faces.ui:319 ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 +#: ui/tags.ui:319 msgid "_Rejected" msgstr "_Rechazado" -#: src/Resources.vala:264 +#: src/Resources.vala:234 msgid "Rejected" msgstr "Rechazada" -#: src/Resources.vala:265 +#: src/Resources.vala:235 msgid "Rate Rejected" msgstr "Puntuar rechazadas" -#: src/Resources.vala:266 +#: src/Resources.vala:236 msgid "Setting as rejected" msgstr "Estableciendo como rechazada" -#: src/Resources.vala:267 +#: src/Resources.vala:237 msgid "Set rating to rejected" msgstr "Establecer puntuación para rechazadas" -#: src/Resources.vala:269 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 -#: ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 ui/trash.ui:162 +#: src/Resources.vala:239 ui/event.ui:196 ui/faces.ui:196 ui/import.ui:156 +#: ui/media.ui:196 ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 +#: ui/trash.ui:162 msgid "Rejected _Only" msgstr "Solo _rechazadas" -#: src/Resources.vala:270 +#: src/Resources.vala:240 msgid "Rejected Only" msgstr "Solo rechazadas" -#: src/Resources.vala:271 +#: src/Resources.vala:241 msgid "Show only rejected photos" msgstr "Mostrar solo las fotos rechazadas" -#: src/Resources.vala:273 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 -#: ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 ui/trash.ui:156 +#: src/Resources.vala:243 ui/event.ui:190 ui/faces.ui:190 ui/import.ui:150 +#: ui/media.ui:190 ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 +#: ui/trash.ui:156 msgid "All + _Rejected" msgstr "Todas + _rechazadas" -#: src/Resources.vala:274 +#: src/Resources.vala:244 msgctxt "Tooltip" msgid "Show all photos, including rejected" msgstr "Mostrar todas las fotos, incluyendo las rechazadas" -#: src/Resources.vala:276 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 -#: ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 ui/trash.ui:150 +#: src/Resources.vala:246 ui/event.ui:184 ui/faces.ui:184 ui/import.ui:144 +#: ui/media.ui:184 ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 +#: ui/trash.ui:150 msgid "_All Photos" msgstr "Todas las _fotos" #. Button tooltip -#: src/Resources.vala:278 +#: src/Resources.vala:248 msgid "Show all photos" msgstr "Mostrar todas las fotos" -#: src/Resources.vala:280 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 -#: ui/tags.ui:144 +#: src/Resources.vala:250 ui/event.ui:144 ui/faces.ui:144 ui/media.ui:144 +#: ui/photo.ui:120 ui/tags.ui:144 msgid "_Ratings" msgstr "_Puntuaciones" -#: src/Resources.vala:281 +#: src/Resources.vala:251 msgid "Display each photo’s rating" msgstr "Mostrar la puntuación de cada foto" -#: src/Resources.vala:283 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 -#: ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 +#: src/Resources.vala:253 ui/event.ui:151 ui/faces.ui:151 ui/import.ui:111 +#: ui/media.ui:151 ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 msgid "_Filter Photos" msgstr "_Filtrar fotos" -#: src/Resources.vala:284 +#: src/Resources.vala:254 msgid "Filter Photos" msgstr "Filtrar fotos" -#: src/Resources.vala:285 +#: src/Resources.vala:255 msgid "Limit the number of photos displayed based on a filter" msgstr "Limitar el número de fotos mostradas en base al filtro" -#: src/Resources.vala:288 +#: src/Resources.vala:258 msgid "Duplicate" msgstr "Duplicar" -#: src/Resources.vala:289 +#: src/Resources.vala:259 msgid "Make a duplicate of the photo" msgstr "Hacer un duplicado de la foto" -#: src/Resources.vala:291 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 -#: ui/tags.ui:17 +#: src/Resources.vala:261 ui/event.ui:17 ui/faces.ui:17 ui/media.ui:17 +#: ui/photo.ui:17 ui/tags.ui:17 msgid "_Export…" msgstr "_Exportar…" -#: src/Resources.vala:293 +#: src/Resources.vala:263 msgid "_Print…" msgstr "_Imprimir…" -#: src/Resources.vala:295 +#: src/Resources.vala:265 msgid "Pu_blish…" msgstr "Pu_blicar…" -#: src/Resources.vala:297 ui/collection.ui:189 +#: src/Resources.vala:267 ui/collection.ui:189 msgid "Publish to various websites" msgstr "Publicar en varios sitios web" -#: src/Resources.vala:299 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 -#: ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 ui/tags.ui:340 +#: src/Resources.vala:269 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 +#: ui/faces.ui:340 ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 +#: ui/tags.ui:340 msgid "Edit _Title…" msgstr "Editar _título…" #. Button label -#: src/Resources.vala:301 +#: src/Resources.vala:271 msgctxt "Button Label" msgid "Edit Title" msgstr "Editar título" -#: src/Resources.vala:303 ui/collection.ui:103 ui/events_directory.ui:144 +#: src/Resources.vala:273 ui/collection.ui:103 ui/events_directory.ui:144 #: ui/events_directory.ui:186 ui/event.ui:345 ui/event.ui:398 ui/event.ui:542 -#: ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 ui/tags.ui:345 +#: ui/faces.ui:345 ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 +#: ui/tags.ui:345 msgid "Edit _Comment…" msgstr "Editar _comentario…" #. Button label -#: src/Resources.vala:305 +#: src/Resources.vala:275 msgid "Edit Comment" msgstr "Editar comentario" -#: src/Resources.vala:307 ui/event.ui:592 +#: src/Resources.vala:277 ui/event.ui:592 msgid "Edit Event _Comment…" msgstr "Editar _comentario de evento…" -#: src/Resources.vala:310 ui/direct.ui:167 ui/photo.ui:337 +#: src/Resources.vala:280 ui/direct.ui:167 ui/photo.ui:337 msgid "_Adjust Date and Time…" msgstr "_Ajustar fecha y hora…" -#: src/Resources.vala:311 +#: src/Resources.vala:281 msgid "Adjust Date and Time" msgstr "Ajustar fecha y hora" -#: src/Resources.vala:313 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 -#: ui/media.ui:390 ui/photo.ui:374 ui/tags.ui:390 +#: src/Resources.vala:283 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 +#: ui/faces.ui:390 ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 msgid "Add _Tags…" msgstr "Añadir e_tiquetas…" -#: src/Resources.vala:314 ui/photo_context.ui:17 +#: src/Resources.vala:284 ui/photo_context.ui:17 msgid "_Add Tags…" msgstr "_Añadir etiquetas…" #. Dialog title -#: src/Resources.vala:316 +#: src/Resources.vala:286 msgctxt "Dialog Title" msgid "Add Tags" msgstr "Añadir etiquetas" -#: src/Resources.vala:325 ui/photo_context.ui:135 +#: src/Resources.vala:295 ui/photo_context.ui:135 msgid "Send T_o…" msgstr "Env_iar a…" -#: src/Resources.vala:327 +#: src/Resources.vala:297 msgid "_Find…" msgstr "_Buscar…" -#: src/Resources.vala:328 ui/collection.ui:217 ui/offline.ui:239 +#: src/Resources.vala:298 ui/collection.ui:217 ui/offline.ui:239 #: ui/trash.ui:312 msgid "Find" msgstr "Buscar" -#: src/Resources.vala:329 ui/collection.ui:214 ui/offline.ui:236 +#: src/Resources.vala:299 ui/collection.ui:214 ui/offline.ui:236 #: ui/trash.ui:309 msgid "Find an image by typing text that appears in its name or tags" msgstr "" "Buscar una imagen escribiendo el texto que aparece en su nombre o etiquetas" -#: src/Resources.vala:331 +#: src/Resources.vala:301 msgid "_Flag" msgstr "_Marcar" -#: src/Resources.vala:333 +#: src/Resources.vala:303 msgid "Un_flag" msgstr "_Desmarcar" -#: src/Resources.vala:336 +#: src/Resources.vala:307 +#| msgid "Make a duplicate of the photo" +msgid "Mark faces of people in the photo" +msgstr "Marcar las caras en al foto" + +#: src/Resources.vala:308 +#| msgid "Modify Tags" +msgid "Modify Faces" +msgstr "Modificar caras" + +#: src/Resources.vala:309 +#| msgid "Delete Tag" +msgid "Delete Face" +msgstr "Eliminar cara" + +#: src/Resources.vala:311 src/Resources.vala:353 ui/tags.ui:456 +msgid "_Rename…" +msgstr "_Renombrar…" + +#: src/Resources.vala:315 #, c-format msgid "Unable to launch editor: %s" msgstr "No se puede abrir el editor: %s" -#: src/Resources.vala:341 +#: src/Resources.vala:320 #, c-format msgid "Add Tag “%s”" msgstr "Añadir etiqueta «%s»" #. Used when adding two tags to photo(s) -#: src/Resources.vala:344 +#: src/Resources.vala:323 #, c-format msgid "Add Tags “%s” and “%s”" msgstr "Añadir etiquetas «%s» y «%s»" #. Undo/Redo command name (in Edit menu) -#: src/Resources.vala:349 +#: src/Resources.vala:328 msgctxt "UndoRedo menu entry" msgid "Add Tags" msgstr "Añadir etiquetas" -#: src/Resources.vala:354 +#: src/Resources.vala:333 #, c-format msgid "_Delete Tag “%s”" msgstr "_Eliminar etiqueta «%s»" -#: src/Resources.vala:358 +#: src/Resources.vala:337 #, c-format msgid "Delete Tag “%s”" msgstr "Eliminar etiqueta «%s»" -#: src/Resources.vala:361 +#: src/Resources.vala:340 msgid "Delete Tag" msgstr "Eliminar etiqueta" -#: src/Resources.vala:367 +#: src/Resources.vala:346 #, c-format msgid "Re_name Tag “%s”…" msgstr "Re_nombrar etiqueta «%s»…" -#: src/Resources.vala:371 +#: src/Resources.vala:350 #, c-format msgid "Rename Tag “%s” to “%s”" msgstr "Renombrar la etiqueta «%s» a «%s»" -#: src/Resources.vala:374 ui/tags.ui:456 -msgid "_Rename…" -msgstr "_Renombrar…" - -#: src/Resources.vala:376 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 -#: ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:379 ui/tags.ui:395 +#: src/Resources.vala:355 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 +#: ui/faces.ui:395 ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 +#: ui/tags.ui:395 msgid "Modif_y Tags…" msgstr "Mod_ificar etiquetas…" -#: src/Resources.vala:377 +#: src/Resources.vala:356 msgid "Modify Tags" msgstr "Modificar etiquetas" -#: src/Resources.vala:380 +#: src/Resources.vala:359 #, c-format msgid "Tag Photo as “%s”" msgid_plural "Tag Photos as “%s”" msgstr[0] "Etiquetar fotos como «%s»" msgstr[1] "Etiquetar fotos como «%s»" -#: src/Resources.vala:386 +#: src/Resources.vala:365 #, c-format msgid "Tag the selected photo as “%s”" msgid_plural "Tag the selected photos as “%s”" msgstr[0] "Etiquetar las fotos seleccionadas como «%s»" msgstr[1] "Etiquetar las fotos seleccionadas como «%s»" -#: src/Resources.vala:392 +#: src/Resources.vala:371 #, c-format msgid "Remove Tag “%s” From _Photo" msgid_plural "Remove Tag “%s” From _Photos" msgstr[0] "Quitar la etiqueta «%s» de las _fotos" msgstr[1] "Quitar la etiqueta «%s» de las _fotos" -#: src/Resources.vala:398 +#: src/Resources.vala:377 #, c-format msgid "Remove Tag “%s” From Photo" msgid_plural "Remove Tag “%s” From Photos" msgstr[0] "Quitar la etiqueta «%s» de las fotos" msgstr[1] "Quitar la etiqueta «%s» de las fotos" -#: src/Resources.vala:404 +#: src/Resources.vala:383 #, c-format msgid "Unable to rename tag to “%s” because the tag already exists." msgstr "No se puede renombrar la etiqueta a «%s» porque la etiqueta ya existe." -#: src/Resources.vala:408 +#: src/Resources.vala:387 #, c-format msgid "Unable to rename search to “%s” because the search already exists." msgstr "No se pudo renombrar la búsqueda «%s» porque la búsqueda ya existe." #. Saved search button -#: src/Resources.vala:411 src/SearchFilter.vala:1120 +#: src/Resources.vala:390 src/SearchFilter.vala:1146 msgid "Saved Search" msgstr "Búsqueda guardada" -#: src/Resources.vala:413 +#: src/Resources.vala:392 msgid "Delete Search" msgstr "Eliminar búsqueda" -#: src/Resources.vala:416 ui/savedsearch.ui:10 +#: src/Resources.vala:395 ui/savedsearch.ui:10 msgid "_Edit…" msgstr "_Editar…" -#: src/Resources.vala:417 ui/savedsearch.ui:6 +#: src/Resources.vala:396 ui/savedsearch.ui:6 msgid "Re_name…" msgstr "Re_nombrar…" -#: src/Resources.vala:420 +#: src/Resources.vala:399 #, c-format msgid "Rename Search “%s” to “%s”" msgstr "Renombrar la búsqueda «%s» a «%s»" -#: src/Resources.vala:424 +#: src/Resources.vala:403 #, c-format msgid "Delete Search “%s”" msgstr "Eliminar búsqueda «%s»" -#: src/Resources.vala:561 +#: src/Resources.vala:408 +#, c-format +#| msgid "Unable to rename tag to “%s” because the tag already exists." +msgid "Unable to rename face to “%s” because the face already exists." +msgstr "No se puede renombrar la cara a «%s» porque la cara ya existe." + +#: src/Resources.vala:412 +#, c-format +#| msgid "Remove Tag “%s” From _Photo" +#| msgid_plural "Remove Tag “%s” From _Photos" +msgid "Remove Face “%s” From _Photo" +msgid_plural "Remove Face “%s” From _Photos" +msgstr[0] "Quitar la cara «%s» de las _fotos" +msgstr[1] "Quitar la cara «%s» de las _fotos" + +#: src/Resources.vala:417 +#, c-format +#| msgid "Remove Tag “%s” From Photo" +#| msgid_plural "Remove Tag “%s” From Photos" +msgid "Remove Face “%s” From Photo" +msgid_plural "Remove Face “%s” From Photos" +msgstr[0] "Quitar la cara «%s» de las fotos" +msgstr[1] "Quitar la cara «%s» de las fotos" + +#: src/Resources.vala:422 +#, c-format +#| msgid "Re_name Tag “%s”…" +msgid "Re_name Face “%s”…" +msgstr "Re_nombrar cara «%s»…" + +#: src/Resources.vala:426 +#, c-format +#| msgid "Rename Tag “%s” to “%s”" +msgid "Rename Face “%s” to “%s”" +msgstr "Renombrar la cara «%s» a «%s»" + +#: src/Resources.vala:430 +#, c-format +#| msgid "_Delete Tag “%s”" +msgid "_Delete Face “%s”" +msgstr "_Eliminar cara «%s»" + +#: src/Resources.vala:434 +#, c-format +#| msgid "Delete Tag “%s”" +msgid "Delete Face “%s”" +msgstr "Eliminar cara «%s»" + +#: src/Resources.vala:636 #, c-format msgid "Rate %s" msgstr "Puntuar %s" -#: src/Resources.vala:562 +#: src/Resources.vala:637 #, c-format msgid "Set rating to %s" msgstr "Establecer puntuación para %s" -#: src/Resources.vala:563 +#: src/Resources.vala:638 #, c-format msgid "Setting rating to %s" msgstr "Estableciendo la puntuación de %s" -#: src/Resources.vala:565 +#: src/Resources.vala:640 #, c-format msgid "Display %s" msgstr "Mostrar %s" -#: src/Resources.vala:566 +#: src/Resources.vala:641 #, c-format msgid "Only show photos with a rating of %s" msgstr "Solo mostrar fotos con puntuación %s" -#: src/Resources.vala:567 +#: src/Resources.vala:642 #, c-format msgid "%s or Better" msgstr "%s o mayor" -#: src/Resources.vala:568 +#: src/Resources.vala:643 #, c-format msgid "Display %s or Better" msgstr "Mostrar %s o mayor" -#: src/Resources.vala:569 +#: src/Resources.vala:644 #, c-format msgid "Only show photos with a rating of %s or better" msgstr "Solo mostrar fotos con puntuación %s o mayor" -#: src/Resources.vala:660 ui/trash.ui:255 +#: src/Resources.vala:735 ui/trash.ui:255 msgid "Remove the selected photos from the trash" msgstr "Quitar las fotos seleccionadas de la papelera" -#: src/Resources.vala:661 ui/offline.ui:221 +#: src/Resources.vala:736 ui/offline.ui:221 msgid "Remove the selected photos from the library" msgstr "Quitar las fotos seleccionadas de la colección" -#: src/Resources.vala:663 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 +#: src/Resources.vala:738 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 msgid "_Restore" msgstr "_Restaurar" -#: src/Resources.vala:664 ui/trash.ui:270 +#: src/Resources.vala:739 ui/trash.ui:270 msgid "Move the selected photos back into the library" msgstr "Mover las fotos seleccionadas de vuelta a la colección" -#: src/Resources.vala:666 ui/collection.ui:123 ui/direct_context.ui:18 -#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/media.ui:27 -#: ui/photo_context.ui:130 ui/photo.ui:35 ui/tags.ui:27 ui/trash.ui:19 -#: ui/trash.ui:227 +#: src/Resources.vala:741 ui/collection.ui:123 ui/direct_context.ui:18 +#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/faces.ui:27 +#: ui/media.ui:27 ui/photo_context.ui:130 ui/photo.ui:35 ui/tags.ui:27 +#: ui/trash.ui:19 ui/trash.ui:227 msgid "Show in File Mana_ger" msgstr "Mostrar en ge_stor de archivos" -#: src/Resources.vala:667 +#: src/Resources.vala:742 msgid "Open the selected photo’s directory in the file manager" msgstr "Abrir el directorio de la foto seleccionada en el gestor de archivos" -#: src/Resources.vala:670 +#: src/Resources.vala:745 #, c-format msgid "Unable to open in file manager: %s" msgstr "No se puede abrir el gestor de archivos: %s" -#: src/Resources.vala:673 ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 -#: ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 ui/tags.ui:74 +#: src/Resources.vala:748 ui/event.ui:74 ui/faces.ui:74 ui/media.ui:74 +#: ui/offline.ui:58 ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 +#: ui/tags.ui:74 msgid "R_emove From Library" msgstr "_Quitar de la colección" -#: src/Resources.vala:675 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 -#: ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 ui/tags.ui:79 +#: src/Resources.vala:750 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 +#: ui/faces.ui:79 ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 +#: ui/tags.ui:79 msgid "_Move to Trash" msgstr "_Mover a la papelera" -#: src/Resources.vala:677 ui/events_directory.ui:58 ui/event.ui:86 -#: ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 -#: ui/trash.ui:74 +#: src/Resources.vala:752 ui/events_directory.ui:58 ui/event.ui:86 +#: ui/faces.ui:86 ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 +#: ui/tags.ui:86 ui/trash.ui:74 msgid "Select _All" msgstr "Seleccionar _todo" -#: src/Resources.vala:678 +#: src/Resources.vala:753 msgid "Select all items" msgstr "Seleccionar todos los elementos" @@ -5703,14 +5870,14 @@ msgstr "Seleccionar todos los elementos" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format #. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:739 +#: src/Resources.vala:814 msgid "%a %b %d, %Y" msgstr "%a %d de %b de %Y" #. / Locale-specific starting date format for multi-date strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:744 +#: src/Resources.vala:819 msgctxt "MultidayFormat" msgid "%a %b %d" msgstr "%a, %d de %b" @@ -5718,7 +5885,7 @@ msgstr "%a, %d de %b" #. / Locale-specific ending date format for multi-date strings, #. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:749 +#: src/Resources.vala:824 msgctxt "MultidayFormat" msgid "%d, %Y" msgstr "%d, %Y" @@ -5726,7 +5893,7 @@ msgstr "%d, %Y" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:754 +#: src/Resources.vala:829 msgctxt "MultimonthFormat" msgid "%a %b %d" msgstr "%a, %d de %b" @@ -5734,194 +5901,174 @@ msgstr "%a, %d de %b" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:759 +#: src/Resources.vala:834 msgctxt "MultimonthFormat" msgid "%a %b %d, %Y" msgstr "%a %d de %b de %Y" -#: src/Screensaver.vala:18 src/SlideshowPage.vala:115 +#: src/Screensaver.vala:18 src/SlideshowPage.vala:117 msgid "Slideshow" msgstr "Diapositivas" #. Ordering must correspond with SearchConditionText.Context -#: src/searches/SavedSearchDialog.vala:162 +#: src/searches/SavedSearchDialog.vala:170 msgid "contains" msgstr "contiene" #. Ordering must correspond with Context -#: src/searches/SavedSearchDialog.vala:163 -#: src/searches/SavedSearchDialog.vala:494 +#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:502 msgid "is exactly" msgstr "es exactamente" -#: src/searches/SavedSearchDialog.vala:164 +#: src/searches/SavedSearchDialog.vala:172 msgid "starts with" msgstr "comienza por" -#: src/searches/SavedSearchDialog.vala:165 +#: src/searches/SavedSearchDialog.vala:173 msgid "ends with" msgstr "termina por" -#: src/searches/SavedSearchDialog.vala:166 +#: src/searches/SavedSearchDialog.vala:174 msgid "does not contain" msgstr "no contiene" -#: src/searches/SavedSearchDialog.vala:167 -#: src/searches/SavedSearchDialog.vala:498 +#: src/searches/SavedSearchDialog.vala:175 +#: src/searches/SavedSearchDialog.vala:506 msgid "is not set" msgstr "no está establecida" -#: src/searches/SavedSearchDialog.vala:168 +#: src/searches/SavedSearchDialog.vala:176 msgid "is set" msgstr "está establecida" #. Ordering must correspond with SearchConditionMediaType.Context -#: src/searches/SavedSearchDialog.vala:242 -#: src/searches/SavedSearchDialog.vala:373 -#: src/searches/SavedSearchDialog.vala:438 +#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:381 +#: src/searches/SavedSearchDialog.vala:446 msgid "is" msgstr "es" -#: src/searches/SavedSearchDialog.vala:243 +#: src/searches/SavedSearchDialog.vala:251 msgid "is not" msgstr "no es" #. Ordering must correspond with SearchConditionMediaType.MediaType -#: src/searches/SavedSearchDialog.vala:249 +#: src/searches/SavedSearchDialog.vala:257 msgid "any photo" msgstr "cualquier foto" -#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:258 msgid "a raw photo" msgstr "una foto en «raw»" -#: src/searches/SavedSearchDialog.vala:251 +#: src/searches/SavedSearchDialog.vala:259 msgid "a video" msgstr "un vídeo" -#: src/searches/SavedSearchDialog.vala:305 +#: src/searches/SavedSearchDialog.vala:313 msgid "has" msgstr "tiene" -#: src/searches/SavedSearchDialog.vala:306 +#: src/searches/SavedSearchDialog.vala:314 msgid "has no" msgstr "no tiene" -#: src/searches/SavedSearchDialog.vala:311 +#: src/searches/SavedSearchDialog.vala:319 msgid "modifications" msgstr "modificaciones" -#: src/searches/SavedSearchDialog.vala:312 +#: src/searches/SavedSearchDialog.vala:320 msgid "internal modifications" msgstr "modificaciones internas" -#: src/searches/SavedSearchDialog.vala:313 +#: src/searches/SavedSearchDialog.vala:321 msgid "external modifications" msgstr "modificaciones externas" #. Ordering must correspond with SearchConditionFlagged.State -#: src/searches/SavedSearchDialog.vala:367 +#: src/searches/SavedSearchDialog.vala:375 msgid "flagged" msgstr "marcada" -#: src/searches/SavedSearchDialog.vala:368 +#: src/searches/SavedSearchDialog.vala:376 msgid "not flagged" msgstr "no marcada" -#: src/searches/SavedSearchDialog.vala:431 +#: src/searches/SavedSearchDialog.vala:439 msgid "and higher" msgstr "y superior" -#: src/searches/SavedSearchDialog.vala:432 +#: src/searches/SavedSearchDialog.vala:440 msgid "only" msgstr "solo" -#: src/searches/SavedSearchDialog.vala:433 +#: src/searches/SavedSearchDialog.vala:441 msgid "and lower" msgstr "e inferior" -#: src/searches/SavedSearchDialog.vala:495 +#: src/searches/SavedSearchDialog.vala:503 msgid "is after" msgstr "está después" -#: src/searches/SavedSearchDialog.vala:496 +#: src/searches/SavedSearchDialog.vala:504 msgid "is before" msgstr "está antes" -#: src/searches/SavedSearchDialog.vala:497 +#: src/searches/SavedSearchDialog.vala:505 msgid "is between" msgstr "está entre" -#: src/searches/SavedSearchDialog.vala:510 +#: src/searches/SavedSearchDialog.vala:518 msgid "and" msgstr "y" -#: src/searches/SavedSearchDialog.vala:691 -msgid "Search" -msgstr "Búsqueda" - -#: src/searches/SavedSearchDialog.vala:696 -msgid "Cancel" -msgstr "Cancelar" - -#: src/searches/SavedSearchDialog.vala:697 -msgid "OK" -msgstr "Aceptar" - -#: src/searches/SavedSearchDialog.vala:716 -msgid "any" -msgstr "cualquiera" - -#: src/searches/SavedSearchDialog.vala:717 -msgid "all" -msgstr "todos" - -#: src/searches/SavedSearchDialog.vala:718 -msgid "none" -msgstr "ninguna" - -#: src/searches/SearchBoolean.vala:157 +#: src/searches/SearchBoolean.vala:169 msgid "Any text" msgstr "Cualquier texto" -#: src/searches/SearchBoolean.vala:160 +#: src/searches/SearchBoolean.vala:172 msgid "Title" msgstr "Título" -#: src/searches/SearchBoolean.vala:163 +#: src/searches/SearchBoolean.vala:175 msgid "Tag" msgstr "Etiqueta" -#: src/searches/SearchBoolean.vala:166 +#: src/searches/SearchBoolean.vala:178 msgid "Comment" msgstr "Comentario" -#: src/searches/SearchBoolean.vala:169 +#: src/searches/SearchBoolean.vala:181 msgid "Event name" msgstr "Nombre del acontecimiento" -#: src/searches/SearchBoolean.vala:172 +#: src/searches/SearchBoolean.vala:184 msgid "File name" msgstr "Nombre del archivo" -#: src/searches/SearchBoolean.vala:175 +#: src/searches/SearchBoolean.vala:187 +msgid "Face" +msgstr "Cara" + +#: src/searches/SearchBoolean.vala:190 msgid "Media type" msgstr "Tipo de medio" -#: src/searches/SearchBoolean.vala:178 +#: src/searches/SearchBoolean.vala:193 msgid "Flag state" msgstr "Estado de la opción" -#: src/searches/SearchBoolean.vala:181 +#: src/searches/SearchBoolean.vala:196 msgid "Photo state" msgstr "Estado de la foto" -#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:827 -#: src/SearchFilter.vala:1110 +#: src/searches/SearchBoolean.vala:199 src/SearchFilter.vala:853 +#: src/SearchFilter.vala:1136 msgid "Rating" msgstr "Puntuación" -#: src/searches/SearchBoolean.vala:187 +#: src/searches/SearchBoolean.vala:202 msgid "Date" msgstr "Fecha" @@ -5930,31 +6077,30 @@ msgid "Saved Searches" msgstr "Búsquedas guardadas" #: src/searches/SearchesBranch.vala:68 -#| msgid "Organize your photos" msgid "Organize your saved searches" msgstr "Organizar sus búsquedas guardadas" -#: src/SearchFilter.vala:811 +#: src/SearchFilter.vala:837 msgid "★+ Rating" msgstr "Puntuación ★+" -#: src/SearchFilter.vala:814 +#: src/SearchFilter.vala:840 msgid "★★+ Rating" msgstr "Puntuación ★★+" -#: src/SearchFilter.vala:817 +#: src/SearchFilter.vala:843 msgid "★★★+ Rating" msgstr "Puntuación ★★★+" -#: src/SearchFilter.vala:820 +#: src/SearchFilter.vala:846 msgid "★★★★+ Rating" msgstr "Puntuación ★★★★+" -#: src/SearchFilter.vala:824 +#: src/SearchFilter.vala:850 msgid "★★★★★+ Rating" msgstr "Puntuación ★★★★★+" -#: src/SearchFilter.vala:1060 +#: src/SearchFilter.vala:1086 #, c-format msgid "Error loading search bar UI: %s" msgstr "Error al cargar la IU de la barra de búsqueda: %s" @@ -5964,72 +6110,72 @@ msgstr "Error al cargar la IU de la barra de búsqueda: %s" #. Prepare the close menu for use, but don't #. display it yet; we'll connect it to secondary #. click later on. -#: src/SearchFilter.vala:1069 +#: src/SearchFilter.vala:1095 msgid "Close" msgstr "Cerrar" #. Type label and toggles -#: src/SearchFilter.vala:1075 +#: src/SearchFilter.vala:1101 msgid "Type" msgstr "Tipo" -#: src/SearchFilter.vala:1082 +#: src/SearchFilter.vala:1108 msgid "Videos" msgstr "Vídeos" -#: src/SearchFilter.vala:1085 +#: src/SearchFilter.vala:1111 msgid "RAW Photos" msgstr "Fotos RAW" -#: src/SearchFilter.vala:1121 +#: src/SearchFilter.vala:1147 msgid "Use a saved search to filter items in the current view" msgstr "" "Utilizar una búsqueda guardada para filtrar elementos en la vista actual" #. Set up toolbar #. add toolbar buttons -#: src/SlideshowPage.vala:134 +#: src/SlideshowPage.vala:136 msgid "Back" msgstr "Atrás" -#: src/SlideshowPage.vala:136 +#: src/SlideshowPage.vala:138 msgid "Go to the previous photo" msgstr "Ir a la foto anterior" -#: src/SlideshowPage.vala:141 src/SlideshowPage.vala:248 +#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:250 msgid "Pause" msgstr "Pausa" -#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:249 +#: src/SlideshowPage.vala:145 src/SlideshowPage.vala:251 msgid "Pause the slideshow" msgstr "Pausar la presentación" -#: src/SlideshowPage.vala:148 +#: src/SlideshowPage.vala:150 msgid "Next" msgstr "Siguiente" -#: src/SlideshowPage.vala:150 +#: src/SlideshowPage.vala:152 msgid "Go to the next photo" msgstr "Ir a la siguiente foto" -#: src/SlideshowPage.vala:157 ui/slideshow_settings.ui:21 +#: src/SlideshowPage.vala:159 ui/slideshow_settings.ui:21 msgid "Settings" msgstr "Configuración" -#: src/SlideshowPage.vala:158 +#: src/SlideshowPage.vala:160 msgid "Change slideshow settings" msgstr "Cambiar la configuración de la presentación" #. An entire slideshow set might be missing, so check for a loop. -#: src/SlideshowPage.vala:212 +#: src/SlideshowPage.vala:214 msgid "All photo source files are missing." msgstr "Todos los archivos origen de fotos están perdidos." -#: src/SlideshowPage.vala:244 +#: src/SlideshowPage.vala:246 msgid "Play" msgstr "Reproducir" -#: src/SlideshowPage.vala:245 +#: src/SlideshowPage.vala:247 msgid "Continue the slideshow" msgstr "Continuar la presentación" @@ -6041,7 +6187,7 @@ msgstr "Transiciones de diapositiva" msgid "(None)" msgstr "(Ninguna)" -#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:485 +#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:414 msgid "None" msgstr "Ninguna" @@ -6054,7 +6200,6 @@ msgid "Tags" msgstr "Etiquetas" #: src/tags/TagsBranch.vala:131 -#| msgid "Organize your photos" msgid "Organize and browse your photo’s tags" msgstr "Organizar y examinar las etiquetas de sus fotos" @@ -6067,24 +6212,24 @@ msgstr "sin título" msgid "Export Videos" msgstr "Exportar vídeos" -#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/media.ui:281 -#: ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 +#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/faces.ui:281 +#: ui/media.ui:281 ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 msgid "Toggle _Flag" msgstr "Cambiar _opción" -#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/media.ui:353 -#: ui/photo_context.ui:88 ui/photo.ui:343 ui/tags.ui:353 +#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/faces.ui:353 +#: ui/media.ui:353 ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 msgid "_Developer" msgstr "_Revelador" -#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/media.ui:381 -#: ui/photo_context.ui:126 ui/tags.ui:381 +#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/faces.ui:381 +#: ui/media.ui:381 ui/photo_context.ui:126 ui/tags.ui:381 msgid "View Eve_nt for Photo" msgstr "Ver eve_nto para la foto" -#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/import_queue.ui:5 -#: ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 ui/photo.ui:5 ui/tags.ui:5 -#: ui/trash.ui:5 +#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/faces.ui:5 +#: ui/import_queue.ui:5 ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 +#: ui/photo.ui:5 ui/tags.ui:5 ui/trash.ui:5 msgid "_File" msgstr "_Archivo" @@ -6092,7 +6237,7 @@ msgstr "_Archivo" msgid "Save _As…" msgstr "Guardar _como…" -#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 +#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 ui/faces.ui:99 #: ui/import_queue.ui:38 ui/import.ui:74 ui/media.ui:99 ui/offline.ui:78 #: ui/photo.ui:95 ui/tags.ui:99 ui/trash.ui:87 msgid "_View" @@ -6126,230 +6271,242 @@ msgstr "_Siguiente foto" msgid "T_ools" msgstr "_Herramientas" -#: ui/direct.ui:181 ui/events_directory.ui:158 ui/event.ui:428 +#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 ui/faces.ui:438 #: ui/import_queue.ui:73 ui/import.ui:191 ui/media.ui:411 ui/offline.ui:188 -#: ui/photo.ui:394 ui/tags.ui:430 ui/trash.ui:197 +#: ui/photo.ui:395 ui/tags.ui:430 ui/trash.ui:197 msgid "_Frequently Asked Questions" msgstr "_Preguntas más frecuentes" -#: ui/direct.ui:185 ui/events_directory.ui:162 ui/event.ui:432 +#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 ui/faces.ui:442 #: ui/import_queue.ui:77 ui/import.ui:195 ui/media.ui:415 ui/offline.ui:192 -#: ui/photo.ui:398 ui/tags.ui:434 ui/trash.ui:201 +#: ui/photo.ui:399 ui/tags.ui:434 ui/trash.ui:201 msgid "_Report a Problem…" msgstr "_Informar de un problema…" -#: ui/events_directory.ui:8 ui/event.ui:8 ui/import_queue.ui:14 ui/import.ui:8 -#: ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 ui/trash.ui:8 +#: ui/events_directory.ui:8 ui/event.ui:8 ui/faces.ui:8 ui/import_queue.ui:14 +#: ui/import.ui:8 ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 +#: ui/trash.ui:8 msgid "_Import From Folder…" msgstr "_Importar desde carpeta…" -#: ui/events_directory.ui:13 ui/event.ui:13 ui/import_queue.ui:19 -#: ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 ui/photo.ui:13 -#: ui/tags.ui:13 ui/trash.ui:13 +#: ui/events_directory.ui:13 ui/event.ui:13 ui/faces.ui:13 +#: ui/import_queue.ui:19 ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 +#: ui/photo.ui:13 ui/tags.ui:13 ui/trash.ui:13 msgid "Import From _Application…" msgstr "Importar desde _aplicación…" -#: ui/events_directory.ui:19 ui/event.ui:34 ui/import_queue.ui:25 -#: ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 ui/photo.ui:42 -#: ui/tags.ui:34 ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 +#: ui/events_directory.ui:19 ui/event.ui:34 ui/faces.ui:34 +#: ui/import_queue.ui:25 ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 +#: ui/photo.ui:42 ui/tags.ui:34 ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 msgid "Empty T_rash" msgstr "Vaciar la papele_ra" -#: ui/events_directory.ui:47 ui/event.ui:62 ui/import.ui:55 ui/media.ui:62 -#: ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 +#: ui/events_directory.ui:47 ui/event.ui:62 ui/faces.ui:62 ui/import.ui:55 +#: ui/media.ui:62 ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 msgid "_Find" msgstr "_Buscar" -#: ui/events_directory.ui:51 ui/event.ui:66 ui/media.ui:66 ui/offline.ui:51 -#: ui/photo.ui:70 ui/search_sidebar_context.ui:6 +#: ui/events_directory.ui:51 ui/event.ui:66 ui/faces.ui:66 ui/media.ui:66 +#: ui/offline.ui:51 ui/photo.ui:70 ui/search_sidebar_context.ui:6 #: ui/sidebar_default_context.ui:6 ui/tags.ui:66 ui/trash.ui:56 msgid "Ne_w Saved Search…" msgstr "_Búsqueda guardada nueva…" -#: ui/events_directory.ui:74 ui/event.ui:102 ui/import_queue.ui:41 -#: ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 ui/photo.ui:98 -#: ui/tags.ui:102 ui/trash.ui:90 +#: ui/events_directory.ui:74 ui/event.ui:102 ui/faces.ui:102 +#: ui/import_queue.ui:41 ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 +#: ui/photo.ui:98 ui/tags.ui:102 ui/trash.ui:90 msgid "_Basic Information" msgstr "Información _básica" -#: ui/events_directory.ui:79 ui/event.ui:107 ui/import.ui:82 ui/media.ui:107 -#: ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 ui/trash.ui:95 +#: ui/events_directory.ui:79 ui/event.ui:107 ui/faces.ui:107 ui/import.ui:82 +#: ui/media.ui:107 ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 +#: ui/trash.ui:95 msgid "E_xtended Information" msgstr "Información e_xtendida" -#: ui/events_directory.ui:84 ui/event.ui:112 ui/import.ui:87 ui/media.ui:112 -#: ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 +#: ui/events_directory.ui:84 ui/event.ui:112 ui/faces.ui:112 ui/import.ui:87 +#: ui/media.ui:112 ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 msgid "_Search Bar" msgstr "_Barra de búsqueda" -#: ui/events_directory.ui:89 ui/event.ui:117 ui/import.ui:92 ui/media.ui:117 -#: ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 ui/trash.ui:105 +#: ui/events_directory.ui:89 ui/event.ui:117 ui/faces.ui:117 ui/import.ui:92 +#: ui/media.ui:117 ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 +#: ui/trash.ui:105 msgid "S_idebar" msgstr "_Barra lateral" -#: ui/events_directory.ui:94 ui/event.ui:122 ui/import.ui:97 ui/media.ui:122 -#: ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 ui/trash.ui:110 +#: ui/events_directory.ui:94 ui/event.ui:122 ui/faces.ui:122 ui/import.ui:97 +#: ui/media.ui:122 ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 +#: ui/trash.ui:110 msgid "T_oolbar" msgstr "B_arra de herramientas" -#: ui/events_directory.ui:101 ui/event.ui:134 ui/media.ui:134 ui/tags.ui:134 +#: ui/events_directory.ui:101 ui/event.ui:134 ui/faces.ui:134 ui/media.ui:134 +#: ui/tags.ui:134 msgid "_Comments" msgstr "_Comentarios" -#: ui/events_directory.ui:108 ui/event.ui:243 ui/import_queue.ui:48 -#: ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 ui/photo.ui:127 -#: ui/tags.ui:243 ui/trash.ui:172 +#: ui/events_directory.ui:108 ui/event.ui:243 ui/faces.ui:243 +#: ui/import_queue.ui:48 ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 +#: ui/photo.ui:127 ui/tags.ui:243 ui/trash.ui:172 msgid "Sort _Events" msgstr "Ordenar _eventos" -#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 -#: ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 ui/media.ui:246 -#: ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 ui/tags.ui:246 -#: ui/trash.ui:175 +#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 ui/faces.ui:231 +#: ui/faces.ui:246 ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 +#: ui/media.ui:246 ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 +#: ui/tags.ui:246 ui/trash.ui:175 msgid "_Ascending" msgstr "_Ascendente" -#: ui/events_directory.ui:116 ui/event.ui:236 ui/import_queue.ui:56 -#: ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 ui/trash.ui:180 +#: ui/events_directory.ui:116 ui/event.ui:236 ui/faces.ui:236 +#: ui/import_queue.ui:56 ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 +#: ui/trash.ui:180 msgid "D_escending" msgstr "D_escendente" -#: ui/events_directory.ui:132 ui/event.ui:379 ui/media.ui:373 ui/tags.ui:373 +#: ui/events_directory.ui:132 ui/event.ui:379 ui/faces.ui:373 ui/media.ui:373 +#: ui/tags.ui:373 msgid "Even_ts" msgstr "Even_tos" -#: ui/event.ui:129 ui/import.ui:104 ui/media.ui:129 ui/tags.ui:129 +#: ui/event.ui:129 ui/faces.ui:129 ui/import.ui:104 ui/media.ui:129 +#: ui/tags.ui:129 msgid "_Titles" msgstr "_Títulos" -#: ui/event.ui:139 ui/event.ui:404 ui/media.ui:139 ui/media.ui:387 -#: ui/photo.ui:371 ui/tags.ui:139 ui/tags.ui:387 +#: ui/event.ui:139 ui/event.ui:404 ui/faces.ui:139 ui/faces.ui:387 +#: ui/media.ui:139 ui/media.ui:387 ui/photo.ui:372 ui/tags.ui:139 +#: ui/tags.ui:387 msgid "Ta_gs" msgstr "_Etiquetas" -#: ui/event.ui:206 ui/media.ui:206 ui/tags.ui:206 +#: ui/event.ui:206 ui/faces.ui:206 ui/media.ui:206 ui/tags.ui:206 msgid "Sort _Photos" msgstr "Ordenar _fotos" -#: ui/event.ui:209 ui/media.ui:209 ui/tags.ui:209 +#: ui/event.ui:209 ui/faces.ui:209 ui/media.ui:209 ui/tags.ui:209 msgid "By _Title" msgstr "Por _título" -#: ui/event.ui:214 ui/media.ui:214 ui/tags.ui:214 +#: ui/event.ui:214 ui/faces.ui:214 ui/media.ui:214 ui/tags.ui:214 msgid "By _Filename" msgstr "Por _nombre del archivo" -#: ui/event.ui:219 ui/media.ui:219 ui/tags.ui:219 +#: ui/event.ui:219 ui/faces.ui:219 ui/media.ui:219 ui/tags.ui:219 msgid "By Exposure _Date" msgstr "Por fecha de exposición" -#: ui/event.ui:224 ui/media.ui:224 ui/tags.ui:224 +#: ui/event.ui:224 ui/faces.ui:224 ui/media.ui:224 ui/tags.ui:224 msgid "By _Rating" msgstr "Por p_untuación" -#: ui/event.ui:251 ui/import.ui:174 ui/media.ui:251 ui/photo.ui:135 -#: ui/tags.ui:251 +#: ui/event.ui:251 ui/faces.ui:251 ui/import.ui:174 ui/media.ui:251 +#: ui/photo.ui:135 ui/tags.ui:251 msgid "_Descending" msgstr "D_escendente" -#: ui/event.ui:275 ui/media.ui:275 ui/tags.ui:275 +#: ui/event.ui:275 ui/faces.ui:275 ui/media.ui:275 ui/tags.ui:275 msgid "_Photos" msgstr "_Fotos" +#: ui/faces.ui:465 +#| msgid "_Rename…" +msgid "Rename…" +msgstr "Renombrar…" + #: ui/import_queue.ui:8 msgid "_Stop Import" msgstr "_Detener importación" -#: ui/preferences_dialog.ui:65 -msgid "white" -msgstr "blanco" - -#: ui/preferences_dialog.ui:92 -msgid "black" -msgstr "negro" - -#: ui/preferences_dialog.ui:123 +#: ui/preferences_dialog.ui:67 msgid "Display" msgstr "Mostrar" -#: ui/preferences_dialog.ui:160 -msgid "_Background:" -msgstr "_Fondo:" - -#: ui/preferences_dialog.ui:175 +#: ui/preferences_dialog.ui:103 msgid "_Import photos to:" msgstr "_Importar fotos a:" -#: ui/preferences_dialog.ui:186 +#: ui/preferences_dialog.ui:114 msgid "_Watch library directory for new files" msgstr "_Vigilar mi colección en busca de archivos nuevos" -#: ui/preferences_dialog.ui:209 +#: ui/preferences_dialog.ui:137 msgid "Importing" msgstr "Importando" -#: ui/preferences_dialog.ui:226 +#: ui/preferences_dialog.ui:154 msgid "_Directory structure:" msgstr "Estructura de _carpetas:" -#: ui/preferences_dialog.ui:241 +#: ui/preferences_dialog.ui:169 msgid "Example:" msgstr "Ejemplo:" -#: ui/preferences_dialog.ui:250 +#: ui/preferences_dialog.ui:178 msgid "R_ename imported files to lowercase" msgstr "R_enombrar los archivos importados a minúsculas" -#: ui/preferences_dialog.ui:272 +#: ui/preferences_dialog.ui:200 msgid "Metadata" msgstr "Metadatos" -#: ui/preferences_dialog.ui:285 +#: ui/preferences_dialog.ui:213 msgid "Write tags, titles, and other _metadata to photo files" msgstr "" "Escribir etiquetas, títulos y otros _metadatos en los archivos de fotos" -#: ui/preferences_dialog.ui:307 +#: ui/preferences_dialog.ui:235 msgid "RAW Developer" msgstr "Revelador RAW" -#: ui/preferences_dialog.ui:324 +#: ui/preferences_dialog.ui:252 msgid "De_fault:" msgstr "_Predeterminado:" -#: ui/preferences_dialog.ui:378 +#: ui/preferences_dialog.ui:306 msgid "_Pattern:" msgstr "_Patrón:" -#: ui/preferences_dialog.ui:414 +#: ui/preferences_dialog.ui:339 +msgid "" +"When viewing images that are transparent, they will be drawn against this " +"background." +msgstr "Al ver imágenes transparentes se dibujarán sobre este fondo." + +#: ui/preferences_dialog.ui:343 msgid "Transparent Background:" msgstr "Fondo transparente:" -#: ui/preferences_dialog.ui:428 +#: ui/preferences_dialog.ui:357 msgid "Checkered" msgstr "A cuadros" -#: ui/preferences_dialog.ui:449 +#: ui/preferences_dialog.ui:378 msgid "Solid color" msgstr "Color sólido" -#: ui/preferences_dialog.ui:539 +#: ui/preferences_dialog.ui:441 +msgid "Use dark theme:" +msgstr "Usar el tema oscuro:" + +#: ui/preferences_dialog.ui:492 msgid "E_xternal photo editor:" msgstr "Editor de fotos e_xterno:" -#: ui/preferences_dialog.ui:556 +#: ui/preferences_dialog.ui:509 msgid "External _RAW editor:" msgstr "Editor _RAW externo:" -#: ui/preferences_dialog.ui:617 +#: ui/preferences_dialog.ui:570 msgid "External Editors" msgstr "Editores externos" -#: ui/preferences_dialog.ui:642 +#: ui/preferences_dialog.ui:595 msgid "Plugins" msgstr "Complementos" -#: ui/preferences_dialog.ui:668 +#: ui/preferences_dialog.ui:621 msgid "Shotwell Preferences" msgstr "Preferencias de Shotwell" @@ -6403,6 +6560,42 @@ msgstr "_Salida de foto en:" msgid "pixels per inch" msgstr "píxeles por pulgada" +#: ui/saved_search_dialog.ui:7 +msgid "Search" +msgstr "Búsqueda" + +#: ui/saved_search_dialog.ui:23 +msgid "Cancel" +msgstr "Cancelar" + +#: ui/saved_search_dialog.ui:36 +msgid "OK" +msgstr "Aceptar" + +#: ui/saved_search_dialog.ui:74 +msgid "_Name of search:" +msgstr "_Nombre de la búsqueda:" + +#: ui/saved_search_dialog.ui:132 +msgid "_Match" +msgstr "_Coincidir" + +#: ui/saved_search_dialog.ui:149 +msgid "any" +msgstr "cualquiera" + +#: ui/saved_search_dialog.ui:150 +msgid "all" +msgstr "todos" + +#: ui/saved_search_dialog.ui:151 +msgid "none" +msgstr "ninguna" + +#: ui/saved_search_dialog.ui:165 +msgid "of the following:" +msgstr "de los siguientes:" + #: ui/set_background_dialog.ui:9 msgid "Set as Desktop Background" msgstr "Establecer como fondo de escritorio" @@ -6435,50 +6628,56 @@ msgstr "periodo de tiempo" msgid "How long each photo is shown on the desktop background" msgstr "Cuánto tiempo se muestra cada foto en el fondo de escritorio" -#: ui/shotwell.ui:22 -msgid "_Name of search:" -msgstr "_Nombre de la búsqueda:" - -#: ui/shotwell.ui:76 -msgid "_Match" -msgstr "_Coincidir" - -#: ui/shotwell.ui:103 -msgid "of the following:" -msgstr "de los siguientes:" - -#: ui/shotwell.ui:184 -msgid "label" -msgstr "etiqueta" - #: ui/sidebar_default_context.ui:11 ui/tag_sidebar_context.ui:6 msgid "New _Tag…" msgstr "E_tiqueta nueva…" -#: ui/slideshow_settings.ui:91 +#: ui/slideshow_settings.ui:98 msgid "_Delay:" msgstr "_Retardo:" -#: ui/slideshow_settings.ui:105 +#: ui/slideshow_settings.ui:112 msgid "_Transition effect:" msgstr "Efecto de _transición:" -#: ui/slideshow_settings.ui:119 +#: ui/slideshow_settings.ui:126 msgid "Transition d_elay:" msgstr "R_etraso de transición:" -#: ui/slideshow_settings.ui:129 +#: ui/slideshow_settings.ui:136 msgid "Show t_itle" msgstr "Mostrar tít_ulo" -#: ui/slideshow_settings.ui:212 ui/slideshow_settings.ui:223 +#: ui/slideshow_settings.ui:219 ui/slideshow_settings.ui:230 msgid "seconds" msgstr "segundos" +#: ui/textentrydialog.ui:66 +msgid "label" +msgstr "etiqueta" + #: ui/trash.ui:285 msgid "Delete all photos in the trash" msgstr "Eliminar todas las fotos en la papelera" +#~ msgid "background color" +#~ msgstr "color de fondo" + +#~ msgid "A grayscale color for use as the background color." +#~ msgstr "La escala de color que usar como color de fondo." + +#~ msgid "Extended Information" +#~ msgstr "Información extendida" + +#~ msgid "white" +#~ msgstr "blanco" + +#~ msgid "black" +#~ msgstr "negro" + +#~ msgid "_Background:" +#~ msgstr "_Fondo:" + #~ msgid "" #~ "Enter the confirmation number which appears after you log into Flickr in " #~ "your Web browser." diff --git a/po/et.gmo b/po/et.gmo deleted file mode 100644 index 9598061..0000000 Binary files a/po/et.gmo and /dev/null differ diff --git a/po/eu.gmo b/po/eu.gmo deleted file mode 100644 index 3f287a8..0000000 Binary files a/po/eu.gmo and /dev/null differ diff --git a/po/fi.gmo b/po/fi.gmo deleted file mode 100644 index 0eb2046..0000000 Binary files a/po/fi.gmo and /dev/null differ diff --git a/po/fi.po b/po/fi.po index 0c84ea0..07c8ff2 100644 --- a/po/fi.po +++ b/po/fi.po @@ -18,10 +18,9 @@ msgid "" msgstr "" "Project-Id-Version: shotwell-0.15\n" -"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" -"product=shotwell&keywords=I18N+L10N&component=Internationalization\n" -"POT-Creation-Date: 2018-01-17 19:38+0000\n" -"PO-Revision-Date: 2018-02-10 19:57+0200\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/shotwell/issues\n" +"POT-Creation-Date: 2018-06-25 16:43+0000\n" +"PO-Revision-Date: 2018-08-06 20:02+0300\n" "Last-Translator: Jiri Grönroos \n" "Language-Team: suomi \n" "Language: fi\n" @@ -29,13 +28,13 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 1.8.7.1\n" +"X-Generator: Poedit 2.0.6\n" #: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in:4 #: plugins/shotwell-publishing-extras/GalleryConnector.vala:115 #: src/photos/RawSupport.vala:308 ui/collection.ui:85 ui/event.ui:356 -#: ui/event.ui:524 ui/media.ui:356 ui/photo_context.ui:91 ui/photo.ui:347 -#: ui/tags.ui:356 +#: ui/event.ui:524 ui/faces.ui:356 ui/media.ui:356 ui/photo_context.ui:91 +#: ui/photo.ui:347 ui/tags.ui:356 msgid "Shotwell" msgstr "Shotwell" @@ -461,11 +460,11 @@ msgid "Pin toolbar in fullscreen, or not." msgstr "" #: misc/org.yorba.shotwell.gschema.xml:161 -msgid "background color" -msgstr "taustaväri" +msgid "prefer GTK+’s dark theme" +msgstr "suosi tummaa GTK+-teemaa" #: misc/org.yorba.shotwell.gschema.xml:162 -msgid "A grayscale color for use as the background color." +msgid "Whether to use the dark theme of GTK+ for Shotwell or not." msgstr "" #: misc/org.yorba.shotwell.gschema.xml:167 @@ -474,7 +473,7 @@ msgstr "tausta läpinäkyville kuville" #: misc/org.yorba.shotwell.gschema.xml:168 msgid "The background to use for transparent images." -msgstr "" +msgstr "Läpinäkyvissä kuvissa käytettävä tausta." #: misc/org.yorba.shotwell.gschema.xml:173 msgid "color for solid transparency background" @@ -1377,7 +1376,7 @@ msgstr "Flickr-valtuutus epäonnistui" msgid "Verifying authorization…" msgstr "Vahvistetaan valtuutusta…" -#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:118 +#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:137 msgid "" "You have already logged in and out of a Google service during this Shotwell " "session.\n" @@ -1456,7 +1455,7 @@ msgstr "Käyttöliittymän lataus epäonnistui: %s" msgid "Visit the Shotwell home page" msgstr "Vieraile Shotwellin verkkosivustolla" -#: plugins/common/Resources.vala:31 src/AppWindow.vala:611 +#: plugins/common/Resources.vala:31 src/AppWindow.vala:603 msgid "translator-credits" msgstr "Jiri Grönroos" @@ -1571,7 +1570,7 @@ msgstr "Alkuperäinen koko" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:159 #: src/Dimensions.vala:20 msgid "Longest edge" -msgstr "" +msgstr "Pisin reuna" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:203 #: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:39 @@ -1594,7 +1593,7 @@ msgstr "_Kirjaudu ulos" #: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:156 #: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:121 #: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:115 -#: src/CollectionPage.vala:82 src/PhotoPage.vala:2469 +#: src/CollectionPage.vala:82 src/PhotoPage.vala:2492 msgid "_Publish" msgstr "_Julkaise" @@ -2062,7 +2061,7 @@ msgid "Logout" msgstr "Kirjaudu ulos" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:268 -#: src/Resources.vala:296 ui/collection.ui:192 +#: src/Resources.vala:266 ui/collection.ui:192 msgid "Publish" msgstr "Julkaise" @@ -2090,8 +2089,8 @@ msgid "Certificate of %s" msgstr "Palvelun %s varmenne" #: plugins/shotwell-publishing/PiwigoPublishing.vala:1051 -#: src/Resources.vala:167 ui/multitextentrydialog.ui:40 -#: ui/slideshow_settings.ui:49 +#: src/Resources.vala:137 ui/multitextentrydialog.ui:40 +#: ui/slideshow_settings.ui:52 msgid "_OK" msgstr "_OK" @@ -2298,17 +2297,18 @@ msgstr "Kiinnitä työkalurivi auki" msgid "Leave fullscreen" msgstr "Poistu koko näytön tilasta" -#: src/AppWindow.vala:538 src/AppWindow.vala:559 src/AppWindow.vala:576 +#: src/AppWindow.vala:530 src/AppWindow.vala:551 src/AppWindow.vala:568 #: src/data_imports/DataImportsUI.vala:302 #: src/data_imports/DataImportsUI.vala:420 src/Dialogs.vala:20 -#: src/Dialogs.vala:28 src/Dialogs.vala:753 src/Dialogs.vala:776 -#: src/publishing/PublishingUI.vala:305 src/publishing/PublishingUI.vala:529 -#: src/Resources.vala:158 ui/multitextentrydialog.ui:25 -#: ui/slideshow_settings.ui:35 ui/textentrydialog.ui:19 +#: src/Dialogs.vala:28 src/Dialogs.vala:58 src/Dialogs.vala:766 +#: src/Dialogs.vala:789 src/publishing/PublishingUI.vala:305 +#: src/publishing/PublishingUI.vala:529 src/Resources.vala:128 +#: ui/multitextentrydialog.ui:25 ui/slideshow_settings.ui:38 +#: ui/textentrydialog.ui:19 msgid "_Cancel" msgstr "_Peru" -#: src/AppWindow.vala:586 +#: src/AppWindow.vala:578 #, fuzzy, c-format #| msgid "" #| "A fatal error occurred when accessing Shotwell's library. Shotwell " @@ -2326,21 +2326,21 @@ msgstr "" "\n" "%s" -#: src/AppWindow.vala:607 +#: src/AppWindow.vala:599 msgid "Visit the Shotwell web site" msgstr "Vieraile Shotwellin verkkosivustolla" -#: src/AppWindow.vala:620 +#: src/AppWindow.vala:612 #, c-format msgid "Unable to display help: %s" msgstr "Ohjeiden näyttäminen ei onnistu: %s" -#: src/AppWindow.vala:628 +#: src/AppWindow.vala:620 #, c-format msgid "Unable to navigate to bug database: %s" msgstr "" -#: src/AppWindow.vala:636 +#: src/AppWindow.vala:628 #, c-format msgid "Unable to display FAQ: %s" msgstr "Usein kysyttyjen kysymysten näyttäminen epäonnistui: %s" @@ -2412,22 +2412,22 @@ msgstr "Kamerat" #: src/camera/CameraBranch.vala:85 msgid "List of all discovered camera devices" -msgstr "" +msgstr "Luettelo löydetyistä kameralaitteista" #: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:711 #: src/camera/ImportPage.vala:727 src/photos/RawSupport.vala:311 -#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/media.ui:361 -#: ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 +#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/faces.ui:361 +#: ui/media.ui:361 ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 msgid "Camera" msgstr "Kamera" #. Translators: First %s is the name of camera as gotten from GPhoto, second is the GVolume name, e.g. Mass storage camera (510MB volume) -#: src/camera/CameraTable.vala:351 +#: src/camera/CameraTable.vala:367 #, c-format msgid "%s (%s)" msgstr "%s (%s)" -#: src/camera/ImportPage.vala:311 src/Properties.vala:230 +#: src/camera/ImportPage.vala:311 src/Properties.vala:233 msgid "RAW+JPEG" msgstr "RAW+JPEG" @@ -2558,7 +2558,7 @@ msgid_plural "Delete these %d files from camera?" msgstr[0] "Poistetaanko nämä tiedostot kamerasta?" msgstr[1] "Poistetaanko nämä %d tiedostoa kamerasta?" -#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:720 +#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:733 msgid "_Keep" msgstr "_Säilytä" @@ -2574,21 +2574,21 @@ msgstr[0] "%d kuvaa tai videota ei voida poistaa kamerasta virheiden vuoksi." msgstr[1] "%d kuvaa tai videota ei voida poistaa kamerasta virheiden vuoksi." #: src/CollectionPage.vala:80 src/direct/DirectPhotoPage.vala:85 -#: src/PhotoPage.vala:2464 src/Resources.vala:171 +#: src/PhotoPage.vala:2487 src/Resources.vala:141 msgid "_Print" msgstr "_Tulosta" -#: src/CollectionPage.vala:83 src/Resources.vala:324 ui/collection.ui:128 +#: src/CollectionPage.vala:83 src/Resources.vala:294 ui/collection.ui:128 #: ui/direct_context.ui:23 ui/direct.ui:23 ui/event.ui:567 ui/photo.ui:28 msgid "Send _To…" msgstr "Lähe_tä…" #: src/CollectionPage.vala:84 src/direct/DirectPhotoPage.vala:90 -#: src/PhotoPage.vala:2474 src/Resources.vala:221 +#: src/PhotoPage.vala:2497 src/Resources.vala:191 msgid "Set as _Desktop Background" msgstr "Aseta _työpöydän taustakuvaksi" -#: src/CollectionPage.vala:92 src/Resources.vala:287 +#: src/CollectionPage.vala:92 src/Resources.vala:257 msgid "_Duplicate" msgstr "_Kopioi" @@ -2600,43 +2600,43 @@ msgstr "Koko näyttö" msgid "S_lideshow" msgstr "_Diaesitys" -#: src/CollectionPage.vala:110 src/Resources.vala:140 ui/direct.ui:111 +#: src/CollectionPage.vala:110 src/Resources.vala:110 ui/direct.ui:111 #: ui/photo.ui:200 msgid "Rotate _Right" msgstr "Kierrä _oikealle" -#: src/CollectionPage.vala:113 src/Resources.vala:145 ui/direct.ui:116 +#: src/CollectionPage.vala:113 src/Resources.vala:115 ui/direct.ui:116 #: ui/photo.ui:205 msgid "Rotate _Left" msgstr "Kierrä _vasemmalle" -#: src/CollectionPage.vala:116 src/Resources.vala:150 ui/direct.ui:121 +#: src/CollectionPage.vala:116 src/Resources.vala:120 ui/direct.ui:121 #: ui/photo.ui:210 msgid "Flip Hori_zontally" msgstr "Kääntö _vaakasuunnassa" -#: src/CollectionPage.vala:117 src/Resources.vala:153 ui/direct.ui:125 +#: src/CollectionPage.vala:117 src/Resources.vala:123 ui/direct.ui:125 #: ui/photo.ui:214 msgid "Flip Verti_cally" msgstr "Kääntö _pystysuunnassa" -#: src/CollectionPage.vala:119 src/Resources.vala:187 ui/collection.ui:8 +#: src/CollectionPage.vala:119 src/Resources.vala:157 ui/collection.ui:8 #: ui/direct_context.ui:7 ui/direct.ui:134 ui/event.ui:447 #: ui/photo_context.ui:6 ui/photo.ui:223 msgid "_Enhance" msgstr "_Paranna" -#: src/CollectionPage.vala:120 src/Resources.vala:215 ui/collection.ui:13 +#: src/CollectionPage.vala:120 src/Resources.vala:185 ui/collection.ui:13 #: ui/direct_context.ui:12 ui/direct.ui:161 ui/event.ui:452 #: ui/photo_context.ui:11 ui/photo.ui:250 msgid "Re_vert to Original" msgstr "_Palauta alkuperäinen" -#: src/CollectionPage.vala:122 src/Resources.vala:191 ui/photo.ui:256 +#: src/CollectionPage.vala:122 src/Resources.vala:161 ui/photo.ui:256 msgid "_Copy Color Adjustments" msgstr "_Kopioi värisäädöt" -#: src/CollectionPage.vala:125 src/Resources.vala:195 ui/photo.ui:261 +#: src/CollectionPage.vala:125 src/Resources.vala:165 ui/photo.ui:261 msgid "_Paste Color Adjustments" msgstr "_Liitä värisäädöt" @@ -2644,17 +2644,17 @@ msgstr "_Liitä värisäädöt" msgid "Adjust Date and Time…" msgstr "Muuta päiväystä ja kellonaikaa…" -#: src/CollectionPage.vala:143 src/Resources.vala:320 ui/collection.ui:108 +#: src/CollectionPage.vala:143 src/Resources.vala:290 ui/collection.ui:108 #: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:361 msgid "Open With E_xternal Editor" msgstr "Avaa ulkoisella _muokkaimella" -#: src/CollectionPage.vala:146 src/Resources.vala:322 ui/collection.ui:113 +#: src/CollectionPage.vala:146 src/Resources.vala:292 ui/collection.ui:113 #: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:366 msgid "Open With RA_W Editor" msgstr "Avaa _RAW-muokkaimessa" -#: src/CollectionPage.vala:149 src/Resources.vala:168 +#: src/CollectionPage.vala:149 src/Resources.vala:138 msgid "_Play" msgstr "T_oista" @@ -2664,7 +2664,7 @@ msgid_plural "Export Photos/Videos" msgstr[0] "Vie kuva tai video" msgstr[1] "Vie kuvia tai videoita" -#: src/CollectionPage.vala:412 src/Dialogs.vala:59 src/PhotoPage.vala:2998 +#: src/CollectionPage.vala:412 src/Dialogs.vala:74 src/PhotoPage.vala:3021 msgid "Export Photo" msgid_plural "Export Photos" msgstr[0] "Vie kuva" @@ -2718,152 +2718,152 @@ msgstr "Toteutetaan värimuutoksia" msgid "Undoing Color Transformations" msgstr "Kumotaan värimuutoksia" -#: src/Commands.vala:1007 +#: src/Commands.vala:1006 msgid "Creating New Event" msgstr "Luodaan uusi tapahtuma" -#: src/Commands.vala:1008 +#: src/Commands.vala:1007 msgid "Removing Event" msgstr "Poistetaan tapahtuma" -#: src/Commands.vala:1017 +#: src/Commands.vala:1016 msgid "Moving Photos to New Event" msgstr "Siirretään kuvia uuteen tapahtumaan" -#: src/Commands.vala:1018 +#: src/Commands.vala:1017 msgid "Setting Photos to Previous Event" msgstr "Asetetaan kuvia edelliseen tapahtumaan" -#: src/Commands.vala:1075 +#: src/Commands.vala:1074 msgid "Merging" msgstr "Yhdistetään" -#: src/Commands.vala:1076 +#: src/Commands.vala:1075 msgid "Unmerging" msgstr "Kumotaan yhdistäminen" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Duplicating photos" msgstr "Tehdään kuvista kopioita" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Removing duplicated photos" msgstr "Poistetaan kuvien kopiot" -#: src/Commands.vala:1108 +#: src/Commands.vala:1107 #, c-format msgid "Unable to duplicate one photo due to a file error" msgid_plural "Unable to duplicate %d photos due to file errors" msgstr[0] "Yhdestä kuvasta ei voitu tehdä kopiota tiedostovirheen vuoksi" msgstr[1] "%d kuvasta ei voitu tehdä kopiota tiedostovirheen vuoksi" -#: src/Commands.vala:1195 +#: src/Commands.vala:1194 msgid "Restoring previous rating" msgstr "Palautetaan edellinen arvostelu" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Increasing ratings" msgstr "Korotetaan arvostelua" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Decreasing ratings" msgstr "Lasketaan arvostelua" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Setting RAW developer" msgstr "Asetetaan RAW-kehitin" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Restoring previous RAW developer" msgstr "Palautetaan edellinen RAW-kehitin" -#: src/Commands.vala:1257 +#: src/Commands.vala:1256 msgid "Set Developer" msgstr "Aseta kehitin" -#: src/Commands.vala:1347 +#: src/Commands.vala:1346 msgid "Original photo could not be adjusted." msgstr "Alkuperäistä kuvaa ei voitu säätää." -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Adjusting Date and Time" msgstr "Muutetaan päiväys ja kellonaika" -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Undoing Date and Time Adjustment" msgstr "Kumotaan päiväyksen ja kellonajan muutokset" -#: src/Commands.vala:1399 +#: src/Commands.vala:1398 msgid "One original photo could not be adjusted." msgid_plural "The following original photos could not be adjusted." msgstr[0] "Yhtä alkuperäistä kuvaa ei voitu säätää." msgstr[1] "Seuraavia alkuperäisiä kuvia ei voitu säätää." -#: src/Commands.vala:1401 src/Commands.vala:1425 +#: src/Commands.vala:1400 src/Commands.vala:1424 msgid "Time Adjustment Error" msgstr "Virhe muutettaessa aikaa" -#: src/Commands.vala:1423 +#: src/Commands.vala:1422 msgid "Time adjustments could not be undone on the following photo file." msgid_plural "" "Time adjustments could not be undone on the following photo files." msgstr[0] "Seuraavan tiedoston aikamuutoksia ei voitu kumota." msgstr[1] "Seuraavien tiedostojen aikamuutoksia ei voitu kumota." -#: src/Commands.vala:1637 src/Commands.vala:1660 +#: src/Commands.vala:1636 src/Commands.vala:1659 msgid "Create Tag" msgstr "Luo tunniste" -#: src/Commands.vala:1695 +#: src/Commands.vala:1694 #, c-format msgid "Move Tag “%s”" msgstr "Siirrä tunniste “%s”" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Move Photos to Trash" msgstr "Siirrä kuvat roskakoriin" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Restore Photos from Trash" msgstr "Palauta kuvat roskakorista" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Move the photos to the Shotwell trash" msgstr "Siirrä kuvat Shotwellin roskakoriin" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Restore the photos back to the Shotwell library" msgstr "Palauta kuvat takaisin Shotwellin kirjastoon" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Moving Photos to Trash" msgstr "Siirretään kuvia roskakoriin" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Restoring Photos From Trash" msgstr "Palautetaan kuvia roskakorista" -#: src/Commands.vala:2453 +#: src/Commands.vala:2452 msgid "Flag selected photos" msgstr "Merkitse valitut kuvat" -#: src/Commands.vala:2454 +#: src/Commands.vala:2453 msgid "Unflag selected photos" msgstr "Poista merkintä valituista kuvista" -#: src/Commands.vala:2455 +#: src/Commands.vala:2454 msgid "Flagging selected photos" msgstr "Asetetaan liput valituille kuville" -#: src/Commands.vala:2456 +#: src/Commands.vala:2455 msgid "Unflagging selected photos" msgstr "Poistetan liput valituilta kuvilta" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Flag" msgstr "Merkitse" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Unflag" msgstr "Poista merkintä" @@ -2899,7 +2899,7 @@ msgstr "" msgid "Database file:" msgstr "Tietokantatiedosto:" -#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:782 +#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:783 msgid "_Import" msgstr "_Tuo" @@ -2984,10 +2984,11 @@ msgid_plural "This will remove the tag “%s” from %d photos. Continue?" msgstr[0] "Tämä poistaa tunnisteen “%s” yhdestä kuvasta. Jatketaanko?" msgstr[1] "Tämä poistaa tunnisteen “%s” %d kuvasta. Jatketaanko?" -#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:721 -#: src/Resources.vala:159 src/Resources.vala:362 src/Resources.vala:415 -#: src/Resources.vala:659 ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 -#: ui/trash.ui:216 ui/trash.ui:258 +#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:58 +#: src/Dialogs.vala:734 src/Resources.vala:129 src/Resources.vala:310 +#: src/Resources.vala:341 src/Resources.vala:394 src/Resources.vala:734 +#: ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 ui/trash.ui:216 +#: ui/trash.ui:258 msgid "_Delete" msgstr "_Poista" @@ -3010,11 +3011,20 @@ msgstr[1] "" msgid "_Switch Developer" msgstr "_Vaihda kehitintä" -#: src/Dialogs.vala:59 +#: src/Dialogs.vala:54 +#, fuzzy, c-format +#| msgid "This will remove the tag “%s” from one photo. Continue?" +#| msgid_plural "This will remove the tag “%s” from %d photos. Continue?" +msgid "This will remove the face “%s” from one photo. Continue?" +msgid_plural "This will remove the face “%s” from %d photos. Continue?" +msgstr[0] "Tämä poistaa tunnisteen “%s” yhdestä kuvasta. Jatketaanko?" +msgstr[1] "Tämä poistaa tunnisteen “%s” %d kuvasta. Jatketaanko?" + +#: src/Dialogs.vala:74 msgid "Export Video" msgstr "Vie video" -#: src/Dialogs.vala:84 +#: src/Dialogs.vala:99 msgid "Export Photos" msgstr "Vie kuvia" @@ -3023,14 +3033,14 @@ msgstr "Vie kuvia" #. if we can't copy an image over for editing in an external tool. #. Did we fail because we can't write to this directory? #. Yes - display an alternate error message here. -#: src/Dialogs.vala:112 +#: src/Dialogs.vala:127 #, c-format msgid "" "Shotwell couldn’t create a file for editing this photo because you do not " "have permission to write to %s." msgstr "" -#: src/Dialogs.vala:121 +#: src/Dialogs.vala:136 msgid "" "Unable to export the following photo due to a file error.\n" "\n" @@ -3038,7 +3048,7 @@ msgstr "" "Seuraavaa kuvaa ei voitu viedä tiedostovirheen vuoksi.\n" "\n" -#: src/Dialogs.vala:127 +#: src/Dialogs.vala:142 msgid "" "\n" "\n" @@ -3048,35 +3058,35 @@ msgstr "" "\n" "Jatketaanko vientiä?" -#: src/Dialogs.vala:128 +#: src/Dialogs.vala:143 msgid "Con_tinue" msgstr "_Jatka" -#: src/Dialogs.vala:139 +#: src/Dialogs.vala:153 msgid "Save Details…" msgstr "Tallenna tiedot…" -#: src/Dialogs.vala:140 +#: src/Dialogs.vala:154 msgid "Save Details" msgstr "Tallenna tiedot" -#: src/Dialogs.vala:155 +#: src/Dialogs.vala:169 #, c-format msgid "(and %d more)\n" msgstr "(ja %d muuta)\n" -#: src/Dialogs.vala:208 +#: src/Dialogs.vala:222 msgid "Import Results Report" msgstr "Tuontitulosten raportti" -#: src/Dialogs.vala:212 +#: src/Dialogs.vala:226 #, c-format msgid "Attempted to import %d file." msgid_plural "Attempted to import %d files." msgstr[0] "Yritettiin tuoda %d tiedosto." msgstr[1] "Yritettiin tuoda %d tiedostoa." -#: src/Dialogs.vala:215 +#: src/Dialogs.vala:229 #, c-format msgid "Of these, %d file was successfully imported." msgid_plural "Of these, %d files were successfully imported." @@ -3086,30 +3096,30 @@ msgstr[1] "Niistä %d tiedostoa tuotiin onnistuneesti." #. #. Duplicates #. -#: src/Dialogs.vala:227 +#: src/Dialogs.vala:241 msgid "Duplicate Photos/Videos Not Imported:" msgstr "Kuvien/videoiden tuomatta jätetyt kaksoiskappaleet:" -#: src/Dialogs.vala:231 +#: src/Dialogs.vala:245 msgid "duplicates existing media item" msgstr "" #. #. Files Not Imported Due to Camera Errors #. -#: src/Dialogs.vala:242 +#: src/Dialogs.vala:256 msgid "Photos/Videos Not Imported Due to Camera Errors:" msgstr "Kameravirheiden vuoksi tuomatta jääneet kuvat/videot:" -#: src/Dialogs.vala:245 src/Dialogs.vala:260 src/Dialogs.vala:275 -#: src/Dialogs.vala:291 src/Dialogs.vala:306 src/Dialogs.vala:320 +#: src/Dialogs.vala:259 src/Dialogs.vala:274 src/Dialogs.vala:289 +#: src/Dialogs.vala:305 src/Dialogs.vala:320 src/Dialogs.vala:334 msgid "error message:" msgstr "virheviesti:" #. #. Files Not Imported Because They Weren't Recognized as Photos or Videos #. -#: src/Dialogs.vala:256 +#: src/Dialogs.vala:270 msgid "Files Not Imported Because They Weren’t Recognized as Photos or Videos:" msgstr "" "Tuomatta jääneet tiedostot, koska niitä ei tunnistettu kuviksi tai videoiksi:" @@ -3117,7 +3127,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands #. -#: src/Dialogs.vala:271 +#: src/Dialogs.vala:285 msgid "" "Photos/Videos Not Imported Because They Weren’t in a Format Shotwell " "Understands:" @@ -3128,7 +3138,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library #. -#: src/Dialogs.vala:286 +#: src/Dialogs.vala:300 msgid "" "Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into its " "Library:" @@ -3136,7 +3146,7 @@ msgstr "" "Tuomatta jääneet kuvat ja videot, koska Shotwell ei voinut kopioida niitä " "kirjastoonsa:" -#: src/Dialogs.vala:290 +#: src/Dialogs.vala:304 #, c-format msgid "" "couldn’t copy %s\n" @@ -3146,46 +3156,46 @@ msgstr "" #. #. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt #. -#: src/Dialogs.vala:302 +#: src/Dialogs.vala:316 msgid "Photos/Videos Not Imported Because Files Are Corrupt:" msgstr "Kuvat ja videoita, joita ei tuotu, koska ne ovat rikki:" #. #. Photos/Videos Not Imported for Other Reasons #. -#: src/Dialogs.vala:317 +#: src/Dialogs.vala:331 msgid "Photos/Videos Not Imported for Other Reasons:" msgstr "Muiden syiden vuoksi tuomatta jääneet kuvat ja videot:" -#: src/Dialogs.vala:337 +#: src/Dialogs.vala:351 #, c-format msgid "1 duplicate photo was not imported:\n" msgid_plural "%d duplicate photos were not imported:\n" msgstr[0] "Yhtä kuvan kaksoiskappaletta ei tuotu:\n" msgstr[1] "%d kuvan kaksoiskappaletta ei tuotu:\n" -#: src/Dialogs.vala:340 +#: src/Dialogs.vala:354 #, c-format msgid "1 duplicate video was not imported:\n" msgid_plural "%d duplicate videos were not imported:\n" msgstr[0] "Yhtä videon kaksoiskappaletta ei tuotu:\n" msgstr[1] "%d videon kaksoiskappaletta ei tuotu:\n" -#: src/Dialogs.vala:343 +#: src/Dialogs.vala:357 #, c-format msgid "1 duplicate photo/video was not imported:\n" msgid_plural "%d duplicate photos/videos were not imported:\n" msgstr[0] "Yhtä kuvan tai videon kaksoiskappaletta ei tuotu:\n" msgstr[1] "%d kuvan tai videon kaksoiskappaletta ei tuotu:\n" -#: src/Dialogs.vala:357 +#: src/Dialogs.vala:371 #, c-format msgid "1 photo failed to import due to a file or hardware error:\n" msgid_plural "%d photos failed to import due to a file or hardware error:\n" msgstr[0] "Yhden kuvan tuonti epäonnistui tiedosto- tai laitevirheen vuoksi:\n" msgstr[1] "%d kuvan tuonti epäonnistui tiedosto- tai laitevirheen vuoksi:\n" -#: src/Dialogs.vala:360 +#: src/Dialogs.vala:374 #, c-format msgid "1 video failed to import due to a file or hardware error:\n" msgid_plural "%d videos failed to import due to a file or hardware error:\n" @@ -3193,7 +3203,7 @@ msgstr[0] "" "Yhden videon tuonti epäonnistui tiedosto- tai laitevirheen vuoksi:\n" msgstr[1] "%d videon tuonti epäonnistui tiedosto- tai laitevirheen vuoksi:\n" -#: src/Dialogs.vala:363 +#: src/Dialogs.vala:377 #, c-format msgid "1 photo/video failed to import due to a file or hardware error:\n" msgid_plural "" @@ -3204,7 +3214,7 @@ msgstr[0] "" msgstr[1] "" "%d kuvan tai videon tuonti epäonnistui tiedosto- tai laitevirheen vuoksi:\n" -#: src/Dialogs.vala:366 +#: src/Dialogs.vala:380 #, c-format msgid "1 file failed to import due to a file or hardware error:\n" msgid_plural "%d files failed to import due to a file or hardware error:\n" @@ -3213,7 +3223,7 @@ msgstr[0] "" msgstr[1] "" "%d tiedoston tuonti epäonnistui tiedosto- tai laitteistovirheen takia:\n" -#: src/Dialogs.vala:380 +#: src/Dialogs.vala:394 #, c-format msgid "" "1 photo failed to import because the photo library folder was not writable:\n" @@ -3227,7 +3237,7 @@ msgstr[1] "" "%d:n kuvan tuominen epäonnistui, koska kuvakirjaston kansioon ei ollut " "kirjoitusoikeutta:\n" -#: src/Dialogs.vala:383 +#: src/Dialogs.vala:397 #, c-format msgid "" "1 video failed to import because the photo library folder was not writable:\n" @@ -3241,7 +3251,7 @@ msgstr[1] "" "%d:n videon tuominen epäonnistui, koska kuvakirjaston kansioon ei ollut " "kirjoitusoikeutta:\n" -#: src/Dialogs.vala:386 +#: src/Dialogs.vala:400 #, c-format msgid "" "1 photo/video failed to import because the photo library folder was not " @@ -3256,7 +3266,7 @@ msgstr[1] "" "%d:n kuvan/videon tuominen epäonnistui, koska kuvakirjaston kansioon ei " "ollut kirjoitusoikeutta:\n" -#: src/Dialogs.vala:389 +#: src/Dialogs.vala:403 #, c-format msgid "" "1 file failed to import because the photo library folder was not writable:\n" @@ -3270,56 +3280,56 @@ msgstr[1] "" "%d:n tiedoston tuominen epäonnistui, koska kuvakirjaston kansioon ei ollut " "kirjoitusoikeutta:\n" -#: src/Dialogs.vala:403 +#: src/Dialogs.vala:417 #, c-format msgid "1 photo failed to import due to a camera error:\n" msgid_plural "%d photos failed to import due to a camera error:\n" msgstr[0] "Yhden kuvan tuonti epäonnistui kameravirheen vuoksi:\n" msgstr[1] "%d kuvan tuonti epäonnistui kameravirheen vuoksi:\n" -#: src/Dialogs.vala:406 +#: src/Dialogs.vala:420 #, c-format msgid "1 video failed to import due to a camera error:\n" msgid_plural "%d videos failed to import due to a camera error:\n" msgstr[0] "Yhden videon tuonti epäonnistui kameravirheen vuoksi:\n" msgstr[1] "%d videon tuonti epäonnistui kameravirheen vuoksi:\n" -#: src/Dialogs.vala:409 +#: src/Dialogs.vala:423 #, c-format msgid "1 photo/video failed to import due to a camera error:\n" msgid_plural "%d photos/videos failed to import due to a camera error:\n" msgstr[0] "Yhden kuvan tai videon tuonti epäonnistui kameravirheen vuoksi:\n" msgstr[1] "%d kuvan tai videon tuonti epäonnistui kameravirheen vuoksi:\n" -#: src/Dialogs.vala:412 +#: src/Dialogs.vala:426 #, c-format msgid "1 file failed to import due to a camera error:\n" msgid_plural "%d files failed to import due to a camera error:\n" msgstr[0] "1 tiedoston tuonti epäonnistui kameravirheen takia:\n" msgstr[1] "%d tiedoston tuonti epäonnistui kameravirheen takia:\n" -#: src/Dialogs.vala:426 +#: src/Dialogs.vala:440 #, c-format msgid "1 photo failed to import because it was corrupt:\n" msgid_plural "%d photos failed to import because they were corrupt:\n" msgstr[0] "1 kuvan tuominen epäonnistui, koska se oli rikki:\n" msgstr[1] "%d kuvan tuominen epäonnistui, koska ne olivat rikki:\n" -#: src/Dialogs.vala:429 +#: src/Dialogs.vala:443 #, c-format msgid "1 video failed to import because it was corrupt:\n" msgid_plural "%d videos failed to import because they were corrupt:\n" msgstr[0] "1 videon tuominen epäonnistui, koska se oli rikki:\n" msgstr[1] "%d videon tuominen epäonnistui, koska ne ovat rikki:\n" -#: src/Dialogs.vala:432 +#: src/Dialogs.vala:446 #, c-format msgid "1 photo/video failed to import because it was corrupt:\n" msgid_plural "%d photos/videos failed to import because they were corrupt:\n" msgstr[0] "1 kuvan/videon tuominen epäonnistui, koska se on rikki:\n" msgstr[1] "%d kuvan/videon tuominen epäonnistui, koska ne ovat rikki:\n" -#: src/Dialogs.vala:435 +#: src/Dialogs.vala:449 #, c-format msgid "1 file failed to import because it was corrupt:\n" msgid_plural "%d files failed to import because it was corrupt:\n" @@ -3330,7 +3340,7 @@ msgstr[1] "%d tiedoston tuominen epäonnistui, koska ne ovat rikki:\n" #. standard container formats are supported, it's just that the streams in them #. might or might not be interpretable), so this message does not need to be #. media specific -#: src/Dialogs.vala:452 +#: src/Dialogs.vala:466 #, c-format msgid "1 unsupported photo skipped:\n" msgid_plural "%d unsupported photos skipped:\n" @@ -3339,56 +3349,56 @@ msgstr[1] "Ohitettiin %d kuvaa, joita ei tueta:\n" #. we have no notion of "non-video" video files right now in Shotwell, so this #. message doesn't need to be media specific -#: src/Dialogs.vala:467 +#: src/Dialogs.vala:481 #, c-format msgid "1 non-image file skipped.\n" msgid_plural "%d non-image files skipped.\n" msgstr[0] "Ohitettiin yksi tiedosto, joka ei ollut kuva.\n" msgstr[1] "Ohitettiin %d tiedostoa, jotka eivät olleet kuvia.\n" -#: src/Dialogs.vala:478 +#: src/Dialogs.vala:492 #, c-format msgid "1 photo skipped due to user cancel:\n" msgid_plural "%d photos skipped due to user cancel:\n" msgstr[0] "Ohitettiin yksi kuva, koska käyttäjä perui:\n" msgstr[1] "Ohitettiin %d kuvaa, koska käyttäjä perui:\n" -#: src/Dialogs.vala:481 +#: src/Dialogs.vala:495 #, c-format msgid "1 video skipped due to user cancel:\n" msgid_plural "%d videos skipped due to user cancel:\n" msgstr[0] "Ohitettiin yksi video, koska käyttäjä perui:\n" msgstr[1] "Ohitettiin %d videota, koska käyttäjä perui:\n" -#: src/Dialogs.vala:484 +#: src/Dialogs.vala:498 #, c-format msgid "1 photo/video skipped due to user cancel:\n" msgid_plural "%d photos/videos skipped due to user cancel:\n" msgstr[0] "Ohitettiin yksi kuva tai video, koska käyttäjä perui:\n" msgstr[1] "Ohitettiin %d kuvaa tai videota, koska käyttäjä perui:\n" -#: src/Dialogs.vala:487 +#: src/Dialogs.vala:501 #, c-format msgid "1 file skipped due to user cancel:\n" msgid_plural "%d file skipped due to user cancel:\n" msgstr[0] "1 tiedosto ohitettu käyttäjän peruttua:\n" msgstr[1] "%d tiedostoa ohitettu käyttäjän peruttua:\n" -#: src/Dialogs.vala:501 +#: src/Dialogs.vala:515 #, c-format msgid "1 photo successfully imported.\n" msgid_plural "%d photos successfully imported.\n" msgstr[0] "Yhden kuvan tuonti onnistui.\n" msgstr[1] "%d kuvan tuonti onnistui.\n" -#: src/Dialogs.vala:504 +#: src/Dialogs.vala:518 #, c-format msgid "1 video successfully imported.\n" msgid_plural "%d videos successfully imported.\n" msgstr[0] "Yhden videon tuonti onnistui.\n" msgstr[1] "%d videon tuonti onnistui.\n" -#: src/Dialogs.vala:507 +#: src/Dialogs.vala:521 #, c-format msgid "1 photo/video successfully imported.\n" msgid_plural "%d photos/videos successfully imported.\n" @@ -3397,64 +3407,64 @@ msgstr[1] "%d kuvan tai videon tuonti onnistui.\n" #. if no media items were imported at all (i.e. an empty directory attempted), need to at least #. report that nothing was imported -#: src/Dialogs.vala:523 +#: src/Dialogs.vala:537 msgid "No photos or videos imported.\n" msgstr "Yhtään kuvaa tai videota ei tuotu.\n" -#: src/Dialogs.vala:530 src/Dialogs.vala:549 +#: src/Dialogs.vala:544 src/Dialogs.vala:563 msgid "Import Complete" msgstr "Tuonti on valmis" -#: src/Dialogs.vala:650 src/Resources.vala:232 +#: src/Dialogs.vala:663 src/Resources.vala:202 msgid "Rename Event" msgstr "Nimeä tapahtuma uudelleen" -#: src/Dialogs.vala:650 +#: src/Dialogs.vala:663 msgid "Name:" msgstr "Nimi:" #. Dialog title -#: src/Dialogs.vala:661 +#: src/Dialogs.vala:674 msgctxt "Dialog Title" msgid "Edit Title" msgstr "Muokkaa nimeä" -#: src/Dialogs.vala:662 src/Properties.vala:343 +#: src/Dialogs.vala:675 src/Properties.vala:346 msgid "Title:" msgstr "Nimi:" #. Dialog title -#: src/Dialogs.vala:678 src/Resources.vala:308 +#: src/Dialogs.vala:691 src/Resources.vala:278 msgid "Edit Event Comment" msgstr "Muokkaa tapahtuman kommenttia" -#: src/Dialogs.vala:679 +#: src/Dialogs.vala:692 msgid "Edit Photo/Video Comment" msgstr "Muokkaa kuvan tai videon kommenttia" -#: src/Dialogs.vala:680 src/Properties.vala:631 +#: src/Dialogs.vala:693 src/Properties.vala:645 msgid "Comment:" msgstr "Kommentti:" -#: src/Dialogs.vala:696 +#: src/Dialogs.vala:709 msgid "Remove and _Trash File" msgid_plural "Remove and _Trash Files" msgstr[0] "_Siirrä tiedosto roskakoriin" msgstr[1] "_Siirtä tiedostot roskakoriin" -#: src/Dialogs.vala:700 +#: src/Dialogs.vala:713 msgid "_Remove From Library" msgstr "Poista k_irjastosta" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edit?" msgstr "Kumotaanko ulkoinen muokkaus?" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edits?" msgstr "Kumotaanko ulkoiset muokkaukset?" -#: src/Dialogs.vala:745 +#: src/Dialogs.vala:758 #, c-format msgid "This will destroy all changes made to the external file. Continue?" msgid_plural "" @@ -3464,34 +3474,34 @@ msgstr[0] "" msgstr[1] "" "Tämä tuhoaa kaikki %d ulkoiseen tiedostoon tehdyt muutokset. Haluatko jatkaa?" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edit" msgstr "_Kumoa ulkoiset muokkaukset" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edits" msgstr "_Kumoa ulkoiset muokkaukset" -#: src/Dialogs.vala:770 +#: src/Dialogs.vala:783 #, c-format msgid "This will remove the photo from the library. Continue?" msgid_plural "This will remove %d photos from the library. Continue?" msgstr[0] "Tämä poistaa kuvan kirjastosta. Jatketaanko?" msgstr[1] "Tämä poistaa %d kuvaa kirjastosta. Jatketaanko?" -#: src/Dialogs.vala:777 src/Resources.vala:174 +#: src/Dialogs.vala:790 src/Resources.vala:144 msgid "_Remove" msgstr "_Poista" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photo From Library" msgstr "Poista kuvia kirjastosta" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photos From Library" msgstr "Poista kuvat kirjastosta" -#: src/Dialogs.vala:798 +#: src/Dialogs.vala:811 #, c-format msgid "" "\n" @@ -3510,44 +3520,44 @@ msgstr[1] "" "\n" "ja %d muuta." -#: src/Dialogs.vala:822 src/Dialogs.vala:849 +#: src/Dialogs.vala:835 src/Dialogs.vala:862 msgid "Tags (separated by commas):" msgstr "Tunnisteet (pilkulla erotettuna):" #. This function is used to determine whether or not files should be copied or linked when imported. #. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. -#: src/Dialogs.vala:908 +#: src/Dialogs.vala:921 msgid "" "Shotwell can copy the photos into your library folder or it can import them " "without copying." msgstr "" "Shotwell voi kopioida kuvat kirjastokansioon tai tuoda ne ilman kopiointia." -#: src/Dialogs.vala:913 +#: src/Dialogs.vala:926 msgid "Co_py Photos" msgstr "_Kopioi kuvat" -#: src/Dialogs.vala:914 +#: src/Dialogs.vala:927 msgid "_Import in Place" msgstr "_Tuo vanhasta sijainnista" -#: src/Dialogs.vala:915 +#: src/Dialogs.vala:928 msgid "Import to Library" msgstr "Tuo kirjastoon" -#: src/Dialogs.vala:925 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:938 src/PhotoPage.vala:2897 msgid "Remove From Library" msgstr "Poista kirjastosta" -#: src/Dialogs.vala:926 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:939 src/PhotoPage.vala:2897 msgid "Removing Photo From Library" msgstr "Poistetaan kuvia kirjastosta" -#: src/Dialogs.vala:926 +#: src/Dialogs.vala:939 msgid "Removing Photos From Library" msgstr "Poistetaan kuvia kirjastosta" -#: src/Dialogs.vala:940 +#: src/Dialogs.vala:953 #, fuzzy, c-format #| msgid "" #| "This will remove the photo/video from your Shotwell library. Would you " @@ -3580,7 +3590,7 @@ msgstr[1] "" "\n" "Tätä toimintoa ei voi perua." -#: src/Dialogs.vala:944 +#: src/Dialogs.vala:957 #, fuzzy, c-format #| msgid "" #| "This will remove the video from your Shotwell library. Would you also " @@ -3613,7 +3623,7 @@ msgstr[1] "" "\n" "Tätä toimintoa ei voi perua." -#: src/Dialogs.vala:948 +#: src/Dialogs.vala:961 #, fuzzy, c-format #| msgid "" #| "This will remove the photo from your Shotwell library. Would you also " @@ -3646,7 +3656,7 @@ msgstr[1] "" "\n" "Tätä toimintoa ei voi perua." -#: src/Dialogs.vala:980 +#: src/Dialogs.vala:993 #, c-format msgid "" "The photo or video cannot be moved to your desktop trash. Delete this file?" @@ -3660,7 +3670,7 @@ msgstr[1] "" "tiedostot?" #. Alert the user that the files were not removed. -#: src/Dialogs.vala:997 +#: src/Dialogs.vala:1010 #, c-format msgid "The photo or video cannot be deleted." msgid_plural "%d photos/videos cannot be deleted." @@ -3697,7 +3707,7 @@ msgstr "%s ei tue tiedoston %s tiedostomuotoa." msgid "Unable open photo %s. Sorry." msgstr "Valitettavsti kuvaa %s ei voi avata." -#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:176 ui/direct.ui:8 +#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:146 ui/direct.ui:8 #: ui/textentrydialog.ui:33 msgid "_Save" msgstr "_Tallenna" @@ -3851,35 +3861,35 @@ msgstr "Vie _metatiedot:" #. We're installed system-wide, so use the system help. #. We're being run from the build directory; we'll have to handle clicks to this #. link manually ourselves, due to a limitation of help: URIs. -#: src/dialogs/Preferences.vala:115 src/dialogs/Preferences.vala:119 +#: src/dialogs/Preferences.vala:108 src/dialogs/Preferences.vala:112 msgid "(Help)" msgstr "(Ohje)" -#: src/dialogs/Preferences.vala:123 +#: src/dialogs/Preferences.vala:116 #, c-format msgid "Year%sMonth%sDay" msgstr "Vuosi%sKuukausi%sPäivä" -#: src/dialogs/Preferences.vala:125 +#: src/dialogs/Preferences.vala:118 #, c-format msgid "Year%sMonth" msgstr "Vuosi%sKuukausi" -#: src/dialogs/Preferences.vala:127 +#: src/dialogs/Preferences.vala:120 #, c-format msgid "Year%sMonth-Day" msgstr "Vuosi%sKuukausi-Päivä" -#: src/dialogs/Preferences.vala:129 +#: src/dialogs/Preferences.vala:122 msgid "Year-Month-Day" msgstr "Vuosi-Kuukausi-Päivä" -#: src/dialogs/Preferences.vala:130 src/editing_tools/EditingTools.vala:760 +#: src/dialogs/Preferences.vala:123 src/editing_tools/EditingTools.vala:760 msgid "Custom" msgstr "Oma koko" #. Invalid pattern. -#: src/dialogs/Preferences.vala:369 +#: src/dialogs/Preferences.vala:351 msgid "Invalid pattern" msgstr "Virheellinen kaava" @@ -4067,7 +4077,7 @@ msgstr "30 × 40 cm" msgid "A3 (297 × 420 mm)" msgstr "A3 (297 × 420 mm)" -#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:398 +#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:401 msgid "Size:" msgstr "Koko:" @@ -4085,8 +4095,8 @@ msgid "_Reset" msgstr "_Palauta alkuperäiset arvot" #. fit both on the top line, emit and move on -#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:439 -#: src/Properties.vala:443 src/Properties.vala:450 +#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:442 +#: src/Properties.vala:446 src/Properties.vala:453 msgid "Exposure:" msgstr "Valotus:" @@ -4160,7 +4170,7 @@ msgstr "Kontrastin laajennus" msgid "Angle:" msgstr "Kulma:" -#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:203 +#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:173 #: ui/direct.ui:144 ui/photo.ui:233 msgid "_Straighten" msgstr "_Suorista" @@ -4172,14 +4182,14 @@ msgid_plural "%d Photos/Videos" msgstr[0] "%d kuvaa/videota" msgstr[1] "%d kuva/video" -#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:358 +#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:361 #, c-format msgid "%d Video" msgid_plural "%d Videos" msgstr[0] "%d video" msgstr[1] "%d videota" -#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:356 +#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:359 #, c-format msgid "%d Photo" msgid_plural "%d Photos" @@ -4258,6 +4268,68 @@ msgstr "Korvaa k_aikki" msgid "Export" msgstr "Vie" +#: src/faces/FacesBranch.vala:89 src/Resources.vala:305 src/Resources.vala:306 +#: ui/faces.ui:403 +msgid "Faces" +msgstr "Kasvot" + +#: src/faces/FacesTool.vala:115 +msgid "Detect faces…" +msgstr "Havaitse kasvot…" + +#: src/faces/FacesTool.vala:140 +msgid "Detect faces on this photo" +msgstr "Havaitse kasvot tästä kuvasta" + +#: src/faces/FacesTool.vala:142 +msgid "Cancel face detection" +msgstr "Peru kasvojen havaitseminen" + +#: src/faces/FacesTool.vala:146 +msgid "Close the Faces tool without saving changes" +msgstr "Sulje kasvotyökalu tallentamatta muutoksia" + +#: src/faces/FacesTool.vala:153 src/faces/FacesTool.vala:185 +msgid "Click and drag to tag a face" +msgstr "Napsauta ja vedä asettaaksesi tunnisteen kasvolle" + +#: src/faces/FacesTool.vala:180 +#, c-format +msgid "Click to edit face %s" +msgstr "Napsauta muokataksesi kasvoa %s" + +#: src/faces/FacesTool.vala:189 +msgid "Stop dragging to add your face and name it." +msgstr "" + +#: src/faces/FacesTool.vala:193 +msgid "Type a name for this face, then press Enter" +msgstr "Kirjoita nimi tälle naamalle, ja paina sitten Enter" + +#: src/faces/FacesTool.vala:197 +msgid "Move or modify the face shape or name and press Enter" +msgstr "" + +#: src/faces/FacesTool.vala:201 +msgid "Detecting faces" +msgstr "Havaitaan kasvoja" + +#: src/faces/FacesTool.vala:212 +msgid "If you don’t set the name of unknown faces they won’t be saved." +msgstr "Jos et aseta nimiä tuntemattomille kasvoille, niitä ei tallenneta." + +#: src/faces/FacesTool.vala:233 +msgid "Save changes and close the Faces tool" +msgstr "Tallenna muutokset ja sulje kasvotyökalu" + +#: src/faces/FacesTool.vala:235 +msgid "No changes to save" +msgstr "Ei muutoksia tallennettavaksi" + +#: src/faces/FacesTool.vala:956 +msgid "Error trying to spawn face detection program:\n" +msgstr "" + #: src/folders/FoldersBranch.vala:144 msgid "Folders" msgstr "Kansiot" @@ -4266,8 +4338,16 @@ msgstr "Kansiot" msgid "Browse the library’s folder structure" msgstr "Selaa kirjaston kansiorakennetta" -#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1098 -#: src/SearchFilter.vala:1099 +#: src/import-roll/ImportRollBranch.vala:44 +msgid "Imports" +msgstr "Tuonnit" + +#: src/import-roll/ImportRollBranch.vala:44 +msgid "Browse the library’s import history" +msgstr "Selaa kirjaston tuontihistoriaa" + +#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1124 +#: src/SearchFilter.vala:1125 msgid "Flagged" msgstr "Merkitty" @@ -4289,7 +4369,7 @@ msgid "Last Import" msgstr "Edellinen tuonti" #: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 -#: ui/preferences_dialog.ui:512 +#: ui/preferences_dialog.ui:465 msgid "Library" msgstr "Kirjasto" @@ -4297,27 +4377,27 @@ msgstr "Kirjasto" msgid "Organize and browse your photos" msgstr "Hallitse ja selaa kuviasi" -#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1079 +#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1105 msgid "Photos" msgstr "Kuvat" -#: src/library/LibraryWindow.vala:508 +#: src/library/LibraryWindow.vala:526 msgid "Import From Folder" msgstr "Tuo kansiosta" -#: src/library/LibraryWindow.vala:515 +#: src/library/LibraryWindow.vala:533 msgid "Recurse Into Subfolders" msgstr "" -#: src/library/LibraryWindow.vala:583 ui/trash.ui:288 +#: src/library/LibraryWindow.vala:601 ui/trash.ui:288 msgid "Empty Trash" msgstr "Tyhjennä roskakori" -#: src/library/LibraryWindow.vala:583 +#: src/library/LibraryWindow.vala:601 msgid "Emptying Trash…" msgstr "Tyhjennetään roskakori…" -#: src/library/LibraryWindow.vala:779 +#: src/library/LibraryWindow.vala:780 #, c-format msgid "" "Shotwell is configured to import photos to your home directory.\n" @@ -4330,33 +4410,33 @@ msgstr "" "\">Muokkaa %s Asetukset.\n" "Haluatko jatkaa kuvien tuomista?" -#: src/library/LibraryWindow.vala:782 ui/preferences_dialog.ui:142 +#: src/library/LibraryWindow.vala:783 ui/preferences_dialog.ui:86 msgid "Library Location" msgstr "Kirjaston sijainti" #. TODO: Specify which directory/file. -#: src/library/LibraryWindow.vala:795 +#: src/library/LibraryWindow.vala:796 msgid "Photos cannot be imported from this directory." msgstr "Tästä hakemistosta ei voi tuoda kuvia." -#: src/library/LibraryWindow.vala:1075 +#: src/library/LibraryWindow.vala:1076 #, c-format msgid "%s (%d%%)" msgstr "%s (%d %%)" -#: src/library/LibraryWindow.vala:1119 src/library/LibraryWindow.vala:1130 +#: src/library/LibraryWindow.vala:1120 src/library/LibraryWindow.vala:1131 msgid "Updating library…" msgstr "Päivitetään kirjastoa…" -#: src/library/LibraryWindow.vala:1136 +#: src/library/LibraryWindow.vala:1137 msgid "Preparing to auto-import photos…" msgstr "Valmistellaan kuvien automaattista tuontia…" -#: src/library/LibraryWindow.vala:1141 +#: src/library/LibraryWindow.vala:1142 msgid "Auto-importing photos…" msgstr "Tuodaan kuvia automaattisesti…" -#: src/library/LibraryWindow.vala:1149 +#: src/library/LibraryWindow.vala:1150 msgid "Writing metadata to files…" msgstr "Kirjoitetaan metadataa tiedostoihin…" @@ -4376,7 +4456,7 @@ msgstr "Roskakori" msgid "Trash is empty" msgstr "Roskakori on tyhjä" -#: src/library/TrashPage.vala:110 +#: src/library/TrashPage.vala:110 ui/faces.ui:469 msgid "Delete" msgstr "Poista" @@ -4431,40 +4511,40 @@ msgstr "" msgid "Unknown error attempting to verify Shotwell’s database: %s" msgstr "Tuntematon virhe varmistettaessa Shotwellin tietokantaa: %s" -#: src/main.vala:104 +#: src/main.vala:108 msgid "Loading Shotwell" msgstr "Ladataan Shotwelliä" -#: src/main.vala:303 +#: src/main.vala:320 msgid "Path to Shotwell’s private data" msgstr "" -#: src/main.vala:303 +#: src/main.vala:320 msgid "DIRECTORY" msgstr "" -#: src/main.vala:307 +#: src/main.vala:324 msgid "Do not monitor library directory at runtime for changes" msgstr "" -#: src/main.vala:311 +#: src/main.vala:328 msgid "Don’t display startup progress meter" msgstr "" -#: src/main.vala:315 +#: src/main.vala:332 msgid "Show the application’s version" msgstr "Näytä sovelluksen versio" -#: src/main.vala:319 +#: src/main.vala:336 msgid "Start the application in fullscreen mode" msgstr "" #. init GTK (valac has already called g_threads_init()) -#: src/main.vala:356 +#: src/main.vala:373 msgid "[FILE]" msgstr "[TIEDOSTO]" -#: src/main.vala:360 +#: src/main.vala:380 #, c-format msgid "Run “%s --help” to see a full list of available command line options.\n" msgstr "" @@ -4475,11 +4555,11 @@ msgstr "" msgid "Unable to process monitoring updates: %s" msgstr "" -#: src/MediaPage.vala:158 +#: src/MediaPage.vala:157 msgid "Adjust the size of the thumbnails" msgstr "Säädä pienoiskuvien kokoa" -#: src/MediaPage.vala:502 +#: src/MediaPage.vala:500 #, c-format msgid "" "Shotwell was unable to play the selected video:\n" @@ -4488,34 +4568,34 @@ msgstr "" "Shotwell ei voinut soittaa valittua videota:\n" "%s" -#: src/Page.vala:1327 +#: src/Page.vala:1324 msgid "No photos/videos" msgstr "Ei kuvia/videoita" -#: src/Page.vala:1331 +#: src/Page.vala:1328 msgid "No photos/videos found which match the current filter" msgstr "Nykyistä suodatint vstaavia kuvia tai videoita ei löytynyt" -#: src/Page.vala:2644 +#: src/Page.vala:2641 msgid "Photos cannot be exported to this directory." msgstr "Tähän hakemistoon ei voi viedä kuvia." #. previous button -#: src/PhotoPage.vala:538 +#: src/PhotoPage.vala:550 msgid "Previous photo" msgstr "Edellinen kuva" #. next button -#: src/PhotoPage.vala:544 +#: src/PhotoPage.vala:556 msgid "Next photo" msgstr "Seuraava kuva" -#: src/PhotoPage.vala:1850 +#: src/PhotoPage.vala:1862 #, c-format msgid "Photo source file missing: %s" msgstr "Kuvan lähdetiedosto puuttuu: %s" -#: src/PhotoPage.vala:3018 +#: src/PhotoPage.vala:3041 #, c-format msgid "Unable to export %s: %s" msgstr "Tiedostoa %s ei voitu viedä: %s" @@ -4524,6 +4604,10 @@ msgstr "Tiedostoa %s ei voitu viedä: %s" msgid "BMP" msgstr "BMP" +#: src/photos/GifSupport.vala:32 +msgid "GIF" +msgstr "GIF" + #: src/photos/JfifSupport.vala:84 msgid "JPEG" msgstr "JPEG" @@ -4611,19 +4695,19 @@ msgstr "" "\n" "%s" -#: src/Properties.vala:87 +#: src/Properties.vala:97 msgid "Today" msgstr "Tänään" -#: src/Properties.vala:89 +#: src/Properties.vala:99 msgid "Yesterday" msgstr "Eilen" -#: src/Properties.vala:346 +#: src/Properties.vala:349 msgid "Items:" msgstr "Kohteita:" -#: src/Properties.vala:349 +#: src/Properties.vala:352 #, c-format msgid "%d Event" msgid_plural "%d Events" @@ -4631,107 +4715,103 @@ msgstr[0] "%d tapahtuma" msgstr[1] "%d tapahtumaa" #. display only one date if start and end are the same -#: src/Properties.vala:380 +#: src/Properties.vala:383 msgid "Date:" msgstr "Päiväys:" #. display only one time if start and end are the same -#: src/Properties.vala:384 +#: src/Properties.vala:387 msgid "Time:" msgstr "Aika:" #. display time range #. display date range -#: src/Properties.vala:387 src/Properties.vala:392 +#: src/Properties.vala:390 src/Properties.vala:395 msgid "From:" msgstr "Alkaa:" -#: src/Properties.vala:388 src/Properties.vala:393 +#: src/Properties.vala:391 src/Properties.vala:396 msgid "To:" msgstr "Päättyy:" -#: src/Properties.vala:407 +#: src/Properties.vala:410 msgid "Duration:" msgstr "Kesto:" -#: src/Properties.vala:407 +#: src/Properties.vala:410 #, c-format msgid "%.1f seconds" msgstr "%.1f sekuntia" -#: src/Properties.vala:411 +#: src/Properties.vala:414 msgid "Developer:" msgstr "Kehitin:" #. nothing special to be done for now for Events -#: src/Properties.vala:586 +#: src/Properties.vala:592 msgid "Location:" msgstr "Sijainti:" -#: src/Properties.vala:589 +#: src/Properties.vala:595 msgid "File size:" msgstr "Tiedoston koko:" -#: src/Properties.vala:593 +#: src/Properties.vala:599 msgid "Current Development:" msgstr "Nykyinen kehitin:" -#: src/Properties.vala:595 +#: src/Properties.vala:601 msgid "Original dimensions:" msgstr "Alkuperäiset mitat:" -#: src/Properties.vala:598 +#: src/Properties.vala:604 msgid "Camera make:" msgstr "Kameran merkki:" -#: src/Properties.vala:601 +#: src/Properties.vala:607 msgid "Camera model:" msgstr "Kameran malli:" -#: src/Properties.vala:604 +#: src/Properties.vala:610 msgid "Flash:" msgstr "Salama:" -#: src/Properties.vala:606 +#: src/Properties.vala:612 msgid "Focal length:" msgstr "Polttoväli:" -#: src/Properties.vala:609 +#: src/Properties.vala:615 msgid "Exposure date:" msgstr "Kuvauspäivä:" -#: src/Properties.vala:612 +#: src/Properties.vala:618 msgid "Exposure time:" msgstr "Kuvausaika:" -#: src/Properties.vala:615 +#: src/Properties.vala:621 msgid "Exposure bias:" msgstr "Valotuksen korjaus:" -#: src/Properties.vala:617 +#: src/Properties.vala:631 msgid "GPS latitude:" msgstr "GPS:n leveysaste:" -#: src/Properties.vala:620 +#: src/Properties.vala:634 msgid "GPS longitude:" msgstr "GPS:n pituusaste:" -#: src/Properties.vala:623 +#: src/Properties.vala:637 msgid "Artist:" msgstr "Tekijä:" -#: src/Properties.vala:625 +#: src/Properties.vala:639 msgid "Copyright:" msgstr "Tekijänoikeus:" -#: src/Properties.vala:627 +#: src/Properties.vala:641 msgid "Software:" msgstr "Ohjelmisto:" -#: src/Properties.vala:642 -msgid "Extended Information" -msgstr "Lisätiedot" - #: src/publishing/PublishingPluginHost.vala:11 msgid "Preparing for upload" msgstr "Valmistellaan lähettämistä" @@ -4821,616 +4901,641 @@ msgstr "" msgid "Publishing" msgstr "Julkaisu" -#: src/Resources.vala:141 src/Resources.vala:146 ui/collection.ui:151 +#: src/Resources.vala:111 src/Resources.vala:116 ui/collection.ui:151 msgid "Rotate" msgstr "Kierrä" -#: src/Resources.vala:142 +#: src/Resources.vala:112 msgid "Rotate Right" msgstr "Kierrä oikealle" -#: src/Resources.vala:143 ui/collection.ui:148 +#: src/Resources.vala:113 ui/collection.ui:148 msgid "Rotate the photos right (press Ctrl to rotate left)" msgstr "Kierrä kuvia oikealle (paina Ctrl kuvien kiertämiseksi vasemmalle)" -#: src/Resources.vala:147 +#: src/Resources.vala:117 msgid "Rotate Left" msgstr "Kierrä vasemmalle" -#: src/Resources.vala:148 +#: src/Resources.vala:118 msgid "Rotate the photos left" msgstr "Kierrä kuvia vasemmalle" -#: src/Resources.vala:151 +#: src/Resources.vala:121 msgid "Flip Horizontally" msgstr "Kääntö vaakasuunnassa" -#: src/Resources.vala:154 +#: src/Resources.vala:124 msgid "Flip Vertically" msgstr "Kääntö pystysuunnassa" -#: src/Resources.vala:156 ui/direct.ui:192 ui/events_directory.ui:168 -#: ui/event.ui:438 ui/import_queue.ui:83 ui/import.ui:201 +#: src/Resources.vala:126 ui/direct.ui:192 ui/events_directory.ui:168 +#: ui/event.ui:438 ui/faces.ui:448 ui/import_queue.ui:83 ui/import.ui:201 #: ui/manifest_widget.ui:35 ui/media.ui:421 ui/offline.ui:198 ui/photo.ui:405 #: ui/tags.ui:440 ui/trash.ui:207 msgid "_About" msgstr "_Tietoja" -#: src/Resources.vala:157 +#: src/Resources.vala:127 msgid "_Apply" msgstr "_Toteuta" -#: src/Resources.vala:160 ui/direct.ui:44 ui/events_directory.ui:32 -#: ui/event.ui:47 ui/import.ui:40 ui/media.ui:47 ui/offline.ui:32 -#: ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 +#: src/Resources.vala:130 ui/direct.ui:44 ui/events_directory.ui:32 +#: ui/event.ui:47 ui/faces.ui:47 ui/import.ui:40 ui/media.ui:47 +#: ui/offline.ui:32 ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 msgid "_Edit" msgstr "_Muokkaa" -#: src/Resources.vala:161 +#: src/Resources.vala:131 msgid "_Forward" msgstr "_Eteenpäin" -#: src/Resources.vala:162 ui/direct.ui:62 ui/events_directory.ui:125 +#: src/Resources.vala:132 ui/direct.ui:62 ui/events_directory.ui:125 #: ui/photo.ui:173 msgid "Fulls_creen" msgstr "_Koko näyttö" -#: src/Resources.vala:163 ui/direct.ui:174 ui/direct.ui:177 +#: src/Resources.vala:133 ui/direct.ui:174 ui/direct.ui:177 #: ui/events_directory.ui:150 ui/events_directory.ui:153 ui/event.ui:420 -#: ui/event.ui:423 ui/import_queue.ui:65 ui/import_queue.ui:68 ui/import.ui:183 -#: ui/import.ui:186 ui/media.ui:403 ui/media.ui:406 ui/offline.ui:180 -#: ui/offline.ui:183 ui/photo.ui:387 ui/photo.ui:390 ui/tags.ui:422 -#: ui/tags.ui:425 ui/trash.ui:189 ui/trash.ui:192 +#: ui/event.ui:423 ui/faces.ui:430 ui/faces.ui:433 ui/import_queue.ui:65 +#: ui/import_queue.ui:68 ui/import.ui:183 ui/import.ui:186 ui/media.ui:403 +#: ui/media.ui:406 ui/offline.ui:180 ui/offline.ui:183 ui/photo.ui:387 +#: ui/photo.ui:390 ui/tags.ui:422 ui/tags.ui:425 ui/trash.ui:189 +#: ui/trash.ui:192 msgid "_Help" msgstr "_Ohje" -#: src/Resources.vala:164 +#: src/Resources.vala:134 msgid "Leave _Fullscreen" msgstr "Poistu _koko näytön tilasta" -#: src/Resources.vala:165 src/Resources.vala:364 ui/tags.ui:450 +#: src/Resources.vala:135 src/Resources.vala:343 ui/tags.ui:450 msgid "_New" msgstr "_Uusi" -#: src/Resources.vala:166 +#: src/Resources.vala:136 msgid "_Next" msgstr "_Seuraava" -#: src/Resources.vala:169 src/Resources.vala:318 ui/events_directory.ui:65 -#: ui/event.ui:93 ui/import.ui:68 ui/media.ui:93 ui/offline.ui:72 -#: ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 +#: src/Resources.vala:139 src/Resources.vala:288 ui/events_directory.ui:65 +#: ui/event.ui:93 ui/faces.ui:93 ui/import.ui:68 ui/media.ui:93 +#: ui/offline.ui:72 ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 msgid "_Preferences" msgstr "_Asetukset" -#: src/Resources.vala:170 +#: src/Resources.vala:140 msgid "_Previous" msgstr "_Edellinen" -#: src/Resources.vala:172 ui/direct.ui:37 ui/events_directory.ui:25 -#: ui/event.ui:40 ui/import_queue.ui:31 ui/import.ui:33 ui/media.ui:40 -#: ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 +#: src/Resources.vala:142 ui/direct.ui:37 ui/events_directory.ui:25 +#: ui/event.ui:40 ui/faces.ui:40 ui/import_queue.ui:31 ui/import.ui:33 +#: ui/media.ui:40 ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 msgid "_Quit" msgstr "_Lopeta" -#: src/Resources.vala:173 +#: src/Resources.vala:143 msgid "_Refresh" msgstr "_Päivitä" -#: src/Resources.vala:175 +#: src/Resources.vala:145 msgid "_Revert" msgstr "Pa_lauta" -#: src/Resources.vala:177 +#: src/Resources.vala:147 msgid "Save _As" msgstr "Tallenna nim_ellä" -#: src/Resources.vala:178 +#: src/Resources.vala:148 msgid "Sort _Ascending" msgstr "Järjestä _nousevasti" -#: src/Resources.vala:179 +#: src/Resources.vala:149 msgid "Sort _Descending" msgstr "Järjestä _laskevasti" -#: src/Resources.vala:180 +#: src/Resources.vala:150 msgid "_Stop" msgstr "_Pysäytä" -#: src/Resources.vala:181 +#: src/Resources.vala:151 msgid "_Undelete" msgstr "_Peru poistaminen" -#: src/Resources.vala:182 +#: src/Resources.vala:152 msgid "_Normal Size" msgstr "_Normaali koko" -#: src/Resources.vala:183 +#: src/Resources.vala:153 msgid "Best _Fit" msgstr "Paras so_vitus" -#: src/Resources.vala:184 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 -#: ui/photo.ui:144 ui/tags.ui:260 +#: src/Resources.vala:154 ui/direct.ui:69 ui/event.ui:260 ui/faces.ui:260 +#: ui/media.ui:260 ui/photo.ui:144 ui/tags.ui:260 msgid "Zoom _In" msgstr "_Lähennä" -#: src/Resources.vala:185 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 -#: ui/photo.ui:149 ui/tags.ui:265 +#: src/Resources.vala:155 ui/direct.ui:74 ui/event.ui:265 ui/faces.ui:265 +#: ui/media.ui:265 ui/photo.ui:149 ui/tags.ui:265 msgid "Zoom _Out" msgstr "_Loitonna" -#: src/Resources.vala:188 ui/collection.ui:167 +#: src/Resources.vala:158 ui/collection.ui:167 msgid "Enhance" msgstr "Paranna" -#: src/Resources.vala:189 ui/collection.ui:164 +#: src/Resources.vala:159 ui/collection.ui:164 msgid "Automatically improve the photo’s appearance" msgstr "Paranna kuvan ulkoasua automaattisesti" -#: src/Resources.vala:192 +#: src/Resources.vala:162 msgid "Copy Color Adjustments" msgstr "Kopioi värisäädöt" -#: src/Resources.vala:193 +#: src/Resources.vala:163 msgid "Copy the color adjustments applied to the photo" msgstr "Kopioi kuvaan toteutetut värisäädöt" -#: src/Resources.vala:196 +#: src/Resources.vala:166 msgid "Paste Color Adjustments" msgstr "Liitä värisäädöt" -#: src/Resources.vala:197 +#: src/Resources.vala:167 msgid "Apply copied color adjustments to the selected photos" msgstr "Toteuta kopioidut värisäädöt valittuun kuvaan" -#: src/Resources.vala:199 ui/direct.ui:139 ui/photo.ui:228 +#: src/Resources.vala:169 ui/direct.ui:139 ui/photo.ui:228 msgid "_Crop" msgstr "_Rajaa" -#: src/Resources.vala:200 +#: src/Resources.vala:170 msgid "Crop" msgstr "Rajaa" -#: src/Resources.vala:201 +#: src/Resources.vala:171 msgid "Crop the photo’s size" msgstr "Rajaa kuvan kokoa" -#: src/Resources.vala:204 +#: src/Resources.vala:174 msgid "Straighten" msgstr "Suorista" -#: src/Resources.vala:205 +#: src/Resources.vala:175 msgid "Straighten the photo" msgstr "Suorista kuva" -#: src/Resources.vala:207 ui/direct.ui:149 ui/photo.ui:238 +#: src/Resources.vala:177 ui/direct.ui:149 ui/photo.ui:238 msgid "_Red-eye" msgstr "_Punasilmäisyys" -#: src/Resources.vala:208 +#: src/Resources.vala:178 msgid "Red-eye" msgstr "Punasilmäisyys" -#: src/Resources.vala:209 +#: src/Resources.vala:179 msgid "Reduce or eliminate any red-eye effects in the photo" msgstr "Vähennä tai poista punasilmäisyyttä kuvasta" -#: src/Resources.vala:211 ui/direct.ui:154 ui/photo.ui:243 +#: src/Resources.vala:181 ui/direct.ui:154 ui/photo.ui:243 msgid "_Adjust" msgstr "_Säädä" -#: src/Resources.vala:212 +#: src/Resources.vala:182 msgid "Adjust" msgstr "Säädä" -#: src/Resources.vala:213 +#: src/Resources.vala:183 msgid "Adjust the photo’s color and tone" msgstr "Säädä kuvan värejä ja sävyä" -#: src/Resources.vala:216 +#: src/Resources.vala:186 msgid "Revert to Original" msgstr "Palauta alkuperäinen" -#: src/Resources.vala:218 +#: src/Resources.vala:188 msgid "Revert External E_dits" msgstr "Kumoa ulkoiset _muokkaukset" -#: src/Resources.vala:219 +#: src/Resources.vala:189 msgid "Revert to the master photo" msgstr "Palauta pääkuva" -#: src/Resources.vala:222 +#: src/Resources.vala:192 msgid "Set selected image to be the new desktop background" msgstr "Aseta valittu kuva uudeksi työpöydän taustakuvaksi" -#: src/Resources.vala:223 +#: src/Resources.vala:193 msgid "Set as _Desktop Slideshow…" msgstr "Aseta työpöydän _diaesitykseksi…" -#: src/Resources.vala:225 ui/direct.ui:47 ui/events_directory.ui:35 -#: ui/event.ui:50 ui/import.ui:43 ui/media.ui:50 ui/offline.ui:35 -#: ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 +#: src/Resources.vala:195 ui/direct.ui:47 ui/events_directory.ui:35 +#: ui/event.ui:50 ui/faces.ui:50 ui/import.ui:43 ui/media.ui:50 +#: ui/offline.ui:35 ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 msgid "_Undo" msgstr "_Kumoa" -#: src/Resources.vala:226 +#: src/Resources.vala:196 msgid "Undo" msgstr "Kumoa" -#: src/Resources.vala:228 ui/direct.ui:52 ui/events_directory.ui:40 -#: ui/event.ui:55 ui/import.ui:48 ui/media.ui:55 ui/offline.ui:40 -#: ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 +#: src/Resources.vala:198 ui/direct.ui:52 ui/events_directory.ui:40 +#: ui/event.ui:55 ui/faces.ui:55 ui/import.ui:48 ui/media.ui:55 +#: ui/offline.ui:40 ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 msgid "_Redo" msgstr "_Tee uudelleen" -#: src/Resources.vala:229 +#: src/Resources.vala:199 msgid "Redo" msgstr "Tee uudelleen" -#: src/Resources.vala:231 ui/events_directory.ui:139 ui/events_directory.ui:181 +#: src/Resources.vala:201 ui/events_directory.ui:139 ui/events_directory.ui:181 #: ui/event.ui:393 ui/event.ui:588 msgid "Re_name Event…" msgstr "Nimeä tapa_htuma uudelleen…" -#: src/Resources.vala:234 ui/event.ui:373 ui/event.ui:580 +#: src/Resources.vala:204 ui/event.ui:373 ui/event.ui:580 msgid "Make _Key Photo for Event" msgstr "Aseta tapahtuman _pienoiskuvaksi" -#: src/Resources.vala:235 +#: src/Resources.vala:205 msgid "Make Key Photo for Event" msgstr "Aseta tapahtuman pienoiskuvaksi" -#: src/Resources.vala:237 ui/event.ui:382 ui/media.ui:376 ui/tags.ui:376 +#: src/Resources.vala:207 ui/event.ui:382 ui/faces.ui:376 ui/media.ui:376 +#: ui/tags.ui:376 msgid "_New Event" msgstr "_Uusi tapahtuma" -#: src/Resources.vala:238 +#: src/Resources.vala:208 msgid "New Event" msgstr "Uusi tapahtuma" -#: src/Resources.vala:240 +#: src/Resources.vala:210 msgid "Move Photos" msgstr "Siirrä kuvia" -#: src/Resources.vala:241 +#: src/Resources.vala:211 msgid "Move photos to an event" msgstr "Siirrä kuvia tapahtumaan" -#: src/Resources.vala:243 ui/events_directory.ui:135 ui/events_directory.ui:177 +#: src/Resources.vala:213 ui/events_directory.ui:135 ui/events_directory.ui:177 msgid "_Merge Events" msgstr "_Yhdistä tapahtumat" -#: src/Resources.vala:244 +#: src/Resources.vala:214 msgid "Merge" msgstr "Yhdistä" -#: src/Resources.vala:245 +#: src/Resources.vala:215 msgid "Combine events into a single event" msgstr "Yhdistä tapahtumat yhdeksi tapahtumaksi" -#: src/Resources.vala:247 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 -#: ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 ui/tags.ui:286 +#: src/Resources.vala:217 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 +#: ui/faces.ui:286 ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 +#: ui/tags.ui:286 msgid "_Set Rating" msgstr "_Aseta arvostelu" -#: src/Resources.vala:248 +#: src/Resources.vala:218 msgid "Set Rating" msgstr "Aseta arvostelu" -#: src/Resources.vala:249 +#: src/Resources.vala:219 msgid "Change the rating of your photo" msgstr "Muuta kuvan arvostelua" -#: src/Resources.vala:251 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 -#: ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 ui/tags.ui:326 +#: src/Resources.vala:221 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 +#: ui/faces.ui:326 ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 +#: ui/tags.ui:326 msgid "_Increase" msgstr "_Korota" -#: src/Resources.vala:252 +#: src/Resources.vala:222 msgid "Increase Rating" msgstr "Korota arvostelua" -#: src/Resources.vala:254 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 -#: ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 ui/tags.ui:331 +#: src/Resources.vala:224 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 +#: ui/faces.ui:331 ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 +#: ui/tags.ui:331 msgid "_Decrease" msgstr "_Laske" -#: src/Resources.vala:255 +#: src/Resources.vala:225 msgid "Decrease Rating" msgstr "Laske arvostelua" -#: src/Resources.vala:257 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 -#: ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 ui/tags.ui:314 +#: src/Resources.vala:227 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 +#: ui/faces.ui:314 ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 +#: ui/tags.ui:314 msgid "_Unrated" msgstr "_Ei arvostelua" -#: src/Resources.vala:258 +#: src/Resources.vala:228 msgid "Unrated" msgstr "Ei arvostelua" -#: src/Resources.vala:259 +#: src/Resources.vala:229 msgid "Rate Unrated" msgstr "Jätä arvostelematta" -#: src/Resources.vala:260 +#: src/Resources.vala:230 msgid "Setting as unrated" msgstr "Asetetaan arvostelemattomaksi" -#: src/Resources.vala:261 +#: src/Resources.vala:231 msgid "Remove any ratings" msgstr "Poista kaikki arvostelut" -#: src/Resources.vala:263 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 -#: ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 ui/tags.ui:319 +#: src/Resources.vala:233 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 +#: ui/faces.ui:319 ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 +#: ui/tags.ui:319 msgid "_Rejected" msgstr "_Hylätty" -#: src/Resources.vala:264 +#: src/Resources.vala:234 msgid "Rejected" msgstr "Hylätty" -#: src/Resources.vala:265 +#: src/Resources.vala:235 msgid "Rate Rejected" msgstr "Arvostele hylätyksi" -#: src/Resources.vala:266 +#: src/Resources.vala:236 msgid "Setting as rejected" msgstr "Asetetaan hylätyksi" -#: src/Resources.vala:267 +#: src/Resources.vala:237 msgid "Set rating to rejected" msgstr "Aseta arvostelu hylätyksi" -#: src/Resources.vala:269 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 -#: ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 ui/trash.ui:162 +#: src/Resources.vala:239 ui/event.ui:196 ui/faces.ui:196 ui/import.ui:156 +#: ui/media.ui:196 ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 +#: ui/trash.ui:162 msgid "Rejected _Only" msgstr "_Vain hylätyt" -#: src/Resources.vala:270 +#: src/Resources.vala:240 msgid "Rejected Only" msgstr "Vain hylätyt" -#: src/Resources.vala:271 +#: src/Resources.vala:241 msgid "Show only rejected photos" msgstr "Näytä vain hylätyt kuvat" -#: src/Resources.vala:273 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 -#: ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 ui/trash.ui:156 +#: src/Resources.vala:243 ui/event.ui:190 ui/faces.ui:190 ui/import.ui:150 +#: ui/media.ui:190 ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 +#: ui/trash.ui:156 msgid "All + _Rejected" msgstr "Kaikki + _Hylätyt" -#: src/Resources.vala:274 +#: src/Resources.vala:244 msgctxt "Tooltip" msgid "Show all photos, including rejected" msgstr "Näytä kaikki kuvat, myös hylätyt" -#: src/Resources.vala:276 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 -#: ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 ui/trash.ui:150 +#: src/Resources.vala:246 ui/event.ui:184 ui/faces.ui:184 ui/import.ui:144 +#: ui/media.ui:184 ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 +#: ui/trash.ui:150 msgid "_All Photos" msgstr "_Kaikki kuvat" #. Button tooltip -#: src/Resources.vala:278 +#: src/Resources.vala:248 msgid "Show all photos" msgstr "Näytä kaikki kuvat" -#: src/Resources.vala:280 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 -#: ui/tags.ui:144 +#: src/Resources.vala:250 ui/event.ui:144 ui/faces.ui:144 ui/media.ui:144 +#: ui/photo.ui:120 ui/tags.ui:144 msgid "_Ratings" msgstr "_Arvostelut" -#: src/Resources.vala:281 +#: src/Resources.vala:251 msgid "Display each photo’s rating" msgstr "Näytä jokaisen kuvan arvostelu" -#: src/Resources.vala:283 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 -#: ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 +#: src/Resources.vala:253 ui/event.ui:151 ui/faces.ui:151 ui/import.ui:111 +#: ui/media.ui:151 ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 msgid "_Filter Photos" msgstr "_Suodata kuvia" -#: src/Resources.vala:284 +#: src/Resources.vala:254 msgid "Filter Photos" msgstr "Suodata kuvia" -#: src/Resources.vala:285 +#: src/Resources.vala:255 msgid "Limit the number of photos displayed based on a filter" msgstr "Rajaa näytettävien kuvien määriä suodattimella" -#: src/Resources.vala:288 +#: src/Resources.vala:258 msgid "Duplicate" msgstr "Kopioi" -#: src/Resources.vala:289 +#: src/Resources.vala:259 msgid "Make a duplicate of the photo" msgstr "Tee tästä valokuvasta kopio" -#: src/Resources.vala:291 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 -#: ui/tags.ui:17 +#: src/Resources.vala:261 ui/event.ui:17 ui/faces.ui:17 ui/media.ui:17 +#: ui/photo.ui:17 ui/tags.ui:17 msgid "_Export…" msgstr "_Vie…" -#: src/Resources.vala:293 +#: src/Resources.vala:263 msgid "_Print…" msgstr "_Tulosta…" -#: src/Resources.vala:295 +#: src/Resources.vala:265 msgid "Pu_blish…" msgstr "Julkai_se…" -#: src/Resources.vala:297 ui/collection.ui:189 +#: src/Resources.vala:267 ui/collection.ui:189 msgid "Publish to various websites" msgstr "Julkaise eri verkkosivuille" -#: src/Resources.vala:299 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 -#: ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 ui/tags.ui:340 +#: src/Resources.vala:269 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 +#: ui/faces.ui:340 ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 +#: ui/tags.ui:340 msgid "Edit _Title…" msgstr "Muokkaa ni_meä…" #. Button label -#: src/Resources.vala:301 +#: src/Resources.vala:271 msgctxt "Button Label" msgid "Edit Title" msgstr "Muokkaa nimeä" -#: src/Resources.vala:303 ui/collection.ui:103 ui/events_directory.ui:144 +#: src/Resources.vala:273 ui/collection.ui:103 ui/events_directory.ui:144 #: ui/events_directory.ui:186 ui/event.ui:345 ui/event.ui:398 ui/event.ui:542 -#: ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 ui/tags.ui:345 +#: ui/faces.ui:345 ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 +#: ui/tags.ui:345 msgid "Edit _Comment…" msgstr "Muokkaa _kommenttia…" #. Button label -#: src/Resources.vala:305 +#: src/Resources.vala:275 msgid "Edit Comment" msgstr "Muokkaa kommenttia" -#: src/Resources.vala:307 ui/event.ui:592 +#: src/Resources.vala:277 ui/event.ui:592 msgid "Edit Event _Comment…" msgstr "Muokkaa ta_pahtuman kommenttia…" -#: src/Resources.vala:310 ui/direct.ui:167 ui/photo.ui:337 +#: src/Resources.vala:280 ui/direct.ui:167 ui/photo.ui:337 msgid "_Adjust Date and Time…" msgstr "Muut_a päiväystä ja kellonaikaa…" -#: src/Resources.vala:311 +#: src/Resources.vala:281 msgid "Adjust Date and Time" msgstr "Muuta päiväystä ja kellonaikaa..." -#: src/Resources.vala:313 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 -#: ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 +#: src/Resources.vala:283 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 +#: ui/faces.ui:390 ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 msgid "Add _Tags…" msgstr "Lisää tunn_isteita…" -#: src/Resources.vala:314 ui/photo_context.ui:17 +#: src/Resources.vala:284 ui/photo_context.ui:17 msgid "_Add Tags…" msgstr "Li_sää tunnisteita…" #. Dialog title -#: src/Resources.vala:316 +#: src/Resources.vala:286 msgctxt "Dialog Title" msgid "Add Tags" msgstr "Lisää tunnisteita" -#: src/Resources.vala:325 ui/photo_context.ui:135 +#: src/Resources.vala:295 ui/photo_context.ui:135 msgid "Send T_o…" msgstr "L_ähetä…" -#: src/Resources.vala:327 +#: src/Resources.vala:297 msgid "_Find…" msgstr "_Etsi…" -#: src/Resources.vala:328 ui/collection.ui:217 ui/offline.ui:239 +#: src/Resources.vala:298 ui/collection.ui:217 ui/offline.ui:239 #: ui/trash.ui:312 msgid "Find" msgstr "Etsi" -#: src/Resources.vala:329 ui/collection.ui:214 ui/offline.ui:236 +#: src/Resources.vala:299 ui/collection.ui:214 ui/offline.ui:236 #: ui/trash.ui:309 msgid "Find an image by typing text that appears in its name or tags" msgstr "" "Etsi kuva kirjoittamalla sen nimessä tai tunnisteissa esiintyvää tekstiä" -#: src/Resources.vala:331 +#: src/Resources.vala:301 msgid "_Flag" msgstr "_Merkitse" -#: src/Resources.vala:333 +#: src/Resources.vala:303 msgid "Un_flag" msgstr "Poista _merkintä" -#: src/Resources.vala:336 +#: src/Resources.vala:307 +msgid "Mark faces of people in the photo" +msgstr "Merkitse tämän kuvan ihmisten kasvot" + +#: src/Resources.vala:308 +msgid "Modify Faces" +msgstr "Muokkaa kasvoja" + +#: src/Resources.vala:309 +msgid "Delete Face" +msgstr "Poista kasvo" + +#: src/Resources.vala:311 src/Resources.vala:353 ui/tags.ui:456 +msgid "_Rename…" +msgstr "Ni_meä uudelleen…" + +#: src/Resources.vala:315 #, c-format msgid "Unable to launch editor: %s" msgstr "Muokkaimen käynnistäminen ei onnistu: %s" -#: src/Resources.vala:341 +#: src/Resources.vala:320 #, c-format msgid "Add Tag “%s”" msgstr "Lisää tunniste “%s”" #. Used when adding two tags to photo(s) -#: src/Resources.vala:344 +#: src/Resources.vala:323 #, c-format msgid "Add Tags “%s” and “%s”" msgstr "Lisää tunnisteet “%s” ja “%s”" #. Undo/Redo command name (in Edit menu) -#: src/Resources.vala:349 +#: src/Resources.vala:328 msgctxt "UndoRedo menu entry" msgid "Add Tags" msgstr "Lisää tunnisteita" -#: src/Resources.vala:354 +#: src/Resources.vala:333 #, c-format msgid "_Delete Tag “%s”" msgstr "_Poista tunniste “%s”" -#: src/Resources.vala:358 +#: src/Resources.vala:337 #, c-format msgid "Delete Tag “%s”" msgstr "Poista tunniste “%s”" -#: src/Resources.vala:361 +#: src/Resources.vala:340 msgid "Delete Tag" msgstr "Poista tunniste" -#: src/Resources.vala:367 +#: src/Resources.vala:346 #, c-format msgid "Re_name Tag “%s”…" msgstr "_Nimeä tunniste “%s” uudelleen…" -#: src/Resources.vala:371 +#: src/Resources.vala:350 #, c-format msgid "Rename Tag “%s” to “%s”" msgstr "Nimeä tunniste “%s” muotoon “%s”" -#: src/Resources.vala:374 ui/tags.ui:456 -msgid "_Rename…" -msgstr "Ni_meä uudelleen…" - -#: src/Resources.vala:376 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 -#: ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 ui/tags.ui:395 +#: src/Resources.vala:355 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 +#: ui/faces.ui:395 ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 +#: ui/tags.ui:395 msgid "Modif_y Tags…" msgstr "Muokkaa tu_nnisteita…" -#: src/Resources.vala:377 +#: src/Resources.vala:356 msgid "Modify Tags" msgstr "Muokkaa tunnisteita" -#: src/Resources.vala:380 +#: src/Resources.vala:359 #, c-format msgid "Tag Photo as “%s”" msgid_plural "Tag Photos as “%s”" msgstr[0] "Aseta kuvalle tunniste “%s”" msgstr[1] "Aseta kuville tunniste “%s”" -#: src/Resources.vala:386 +#: src/Resources.vala:365 #, c-format msgid "Tag the selected photo as “%s”" msgid_plural "Tag the selected photos as “%s”" msgstr[0] "Aseta valitulle kuvalle tunniste “%s”" msgstr[1] "Aseta valituille kuville tunniste “%s”" -#: src/Resources.vala:392 +#: src/Resources.vala:371 #, c-format msgid "Remove Tag “%s” From _Photo" msgid_plural "Remove Tag “%s” From _Photos" msgstr[0] "Poista _kuvasta tunniste “%s”" msgstr[1] "Poista _kuvista tunniste “%s”" -#: src/Resources.vala:398 +#: src/Resources.vala:377 #, c-format msgid "Remove Tag “%s” From Photo" msgid_plural "Remove Tag “%s” From Photos" msgstr[0] "Poista kuvasta tunniste “%s”" msgstr[1] "Poista kuvista tunniste “%s”" -#: src/Resources.vala:404 +#: src/Resources.vala:383 #, c-format msgid "Unable to rename tag to “%s” because the tag already exists." msgstr "" "Tunnisteelle ei voida antaa nimeä “%s”, koska sillä nimellä on jo olemassa " "tunniste." -#: src/Resources.vala:408 +#: src/Resources.vala:387 #, c-format msgid "Unable to rename search to “%s” because the search already exists." msgstr "" @@ -5438,120 +5543,164 @@ msgstr "" "jo olemassa." #. Saved search button -#: src/Resources.vala:411 src/SearchFilter.vala:1120 +#: src/Resources.vala:390 src/SearchFilter.vala:1146 msgid "Saved Search" msgstr "Tallennettu haku" -#: src/Resources.vala:413 +#: src/Resources.vala:392 msgid "Delete Search" msgstr "Poista haku" -#: src/Resources.vala:416 ui/savedsearch.ui:10 +#: src/Resources.vala:395 ui/savedsearch.ui:10 msgid "_Edit…" msgstr "_Muokkaa…" -#: src/Resources.vala:417 ui/savedsearch.ui:6 +#: src/Resources.vala:396 ui/savedsearch.ui:6 msgid "Re_name…" msgstr "_Nimeä uudelleen…" -#: src/Resources.vala:420 +#: src/Resources.vala:399 #, c-format msgid "Rename Search “%s” to “%s”" msgstr "Muuta haun “%s” nimi muotoon “%s”" -#: src/Resources.vala:424 +#: src/Resources.vala:403 #, c-format msgid "Delete Search “%s”" msgstr "Poista haku “%s”" -#: src/Resources.vala:561 +#: src/Resources.vala:408 +#, c-format +msgid "Unable to rename face to “%s” because the face already exists." +msgstr "" +"Kasvoille ei voida antaa nimeä “%s”, koska sillä nimellä on jo olemassa " +"kasvot." + +#: src/Resources.vala:412 +#, c-format +msgid "Remove Face “%s” From _Photo" +msgid_plural "Remove Face “%s” From _Photos" +msgstr[0] "Poista _kuvasta kasvo “%s”" +msgstr[1] "Poista _kuvista kasvo “%s”" + +#: src/Resources.vala:417 +#, c-format +msgid "Remove Face “%s” From Photo" +msgid_plural "Remove Face “%s” From Photos" +msgstr[0] "Poista kuvasta kasvo “%s”" +msgstr[1] "Poista kuvista kasvo “%s”" + +#: src/Resources.vala:422 +#, c-format +msgid "Re_name Face “%s”…" +msgstr "_Nimeä kasvo “%s” uudelleen…" + +#: src/Resources.vala:426 +#, c-format +msgid "Rename Face “%s” to “%s”" +msgstr "Nimeä kasvo “%s” muotoon “%s”" + +#: src/Resources.vala:430 +#, c-format +msgid "_Delete Face “%s”" +msgstr "_Poista kasvo “%s”" + +#: src/Resources.vala:434 +#, c-format +msgid "Delete Face “%s”" +msgstr "Poista kasvo “%s”" + +#: src/Resources.vala:636 #, c-format msgid "Rate %s" msgstr "Arvostele %s" -#: src/Resources.vala:562 +#: src/Resources.vala:637 #, c-format msgid "Set rating to %s" msgstr "Aseta arvostelu %s" -#: src/Resources.vala:563 +#: src/Resources.vala:638 #, c-format msgid "Setting rating to %s" msgstr "Asetetaan arvostelu %s" -#: src/Resources.vala:565 +#: src/Resources.vala:640 #, c-format msgid "Display %s" msgstr "Näytä %s" -#: src/Resources.vala:566 +#: src/Resources.vala:641 #, c-format msgid "Only show photos with a rating of %s" msgstr "Näytä vain kuvat, joilla on arvostelu %s" -#: src/Resources.vala:567 +#: src/Resources.vala:642 #, c-format msgid "%s or Better" msgstr "%s tai parempi" -#: src/Resources.vala:568 +#: src/Resources.vala:643 #, c-format msgid "Display %s or Better" msgstr "Näytä %s tai parempi" -#: src/Resources.vala:569 +#: src/Resources.vala:644 #, c-format msgid "Only show photos with a rating of %s or better" msgstr "Näytä vain kuvat, joilla on arvostelu %s tai parempi" -#: src/Resources.vala:660 ui/trash.ui:255 +#: src/Resources.vala:735 ui/trash.ui:255 msgid "Remove the selected photos from the trash" msgstr "Poista valitut kuvat roskakorista" -#: src/Resources.vala:661 ui/offline.ui:221 +#: src/Resources.vala:736 ui/offline.ui:221 msgid "Remove the selected photos from the library" msgstr "Poista valitut kuvat kirjastosta" -#: src/Resources.vala:663 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 +#: src/Resources.vala:738 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 msgid "_Restore" msgstr "_Palauta" -#: src/Resources.vala:664 ui/trash.ui:270 +#: src/Resources.vala:739 ui/trash.ui:270 msgid "Move the selected photos back into the library" msgstr "Siirrä valitut kuvat takaisin kirjastoon" -#: src/Resources.vala:666 ui/collection.ui:123 ui/direct_context.ui:18 -#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/media.ui:27 +#: src/Resources.vala:741 ui/collection.ui:123 ui/direct_context.ui:18 +#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/faces.ui:27 ui/media.ui:27 #: ui/photo_context.ui:130 ui/photo.ui:35 ui/tags.ui:27 ui/trash.ui:19 #: ui/trash.ui:227 msgid "Show in File Mana_ger" msgstr "Avaa _tiedostonhallintaohjelmalla" -#: src/Resources.vala:667 +#: src/Resources.vala:742 msgid "Open the selected photo’s directory in the file manager" msgstr "Avaa valitun valokuvan sisältävä kansio tiedostonhallinnassa" -#: src/Resources.vala:670 +#: src/Resources.vala:745 #, c-format msgid "Unable to open in file manager: %s" msgstr "Tiedostonhallinnan avaaminen ei onnistu: %s" -#: src/Resources.vala:673 ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 -#: ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 ui/tags.ui:74 +#: src/Resources.vala:748 ui/event.ui:74 ui/faces.ui:74 ui/media.ui:74 +#: ui/offline.ui:58 ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 +#: ui/tags.ui:74 msgid "R_emove From Library" msgstr "_Poista kirjastosta" -#: src/Resources.vala:675 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 -#: ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 ui/tags.ui:79 +#: src/Resources.vala:750 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 +#: ui/faces.ui:79 ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 +#: ui/tags.ui:79 msgid "_Move to Trash" msgstr "_Siirrä roskakoriin" -#: src/Resources.vala:677 ui/events_directory.ui:58 ui/event.ui:86 -#: ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 ui/trash.ui:74 +#: src/Resources.vala:752 ui/events_directory.ui:58 ui/event.ui:86 +#: ui/faces.ui:86 ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 +#: ui/trash.ui:74 msgid "Select _All" msgstr "Valitse _kaikki" -#: src/Resources.vala:678 +#: src/Resources.vala:753 msgid "Select all items" msgstr "Valitse kaikki" @@ -5564,14 +5713,14 @@ msgstr "Valitse kaikki" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format #. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:739 +#: src/Resources.vala:814 msgid "%a %b %d, %Y" msgstr "%a %d. %b %Y" #. / Locale-specific starting date format for multi-date strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:744 +#: src/Resources.vala:819 msgctxt "MultidayFormat" msgid "%a %b %d" msgstr "%a, %e. %b" @@ -5579,7 +5728,7 @@ msgstr "%a, %e. %b" #. / Locale-specific ending date format for multi-date strings, #. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:749 +#: src/Resources.vala:824 msgctxt "MultidayFormat" msgid "%d, %Y" msgstr "%e., %Y" @@ -5587,7 +5736,7 @@ msgstr "%e., %Y" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:754 +#: src/Resources.vala:829 msgctxt "MultimonthFormat" msgid "%a %b %d" msgstr "%a, %e. %b" @@ -5595,170 +5744,174 @@ msgstr "%a, %e. %b" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:759 +#: src/Resources.vala:834 msgctxt "MultimonthFormat" msgid "%a %b %d, %Y" msgstr "%a %d. %b %Y" -#: src/Screensaver.vala:18 src/SlideshowPage.vala:115 +#: src/Screensaver.vala:18 src/SlideshowPage.vala:117 msgid "Slideshow" msgstr "Diaesitys" #. Ordering must correspond with SearchConditionText.Context -#: src/searches/SavedSearchDialog.vala:167 +#: src/searches/SavedSearchDialog.vala:170 msgid "contains" msgstr "sisältää" #. Ordering must correspond with Context -#: src/searches/SavedSearchDialog.vala:168 -#: src/searches/SavedSearchDialog.vala:499 +#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:502 msgid "is exactly" msgstr "on tarkalleen" -#: src/searches/SavedSearchDialog.vala:169 +#: src/searches/SavedSearchDialog.vala:172 msgid "starts with" msgstr "alkaa" -#: src/searches/SavedSearchDialog.vala:170 +#: src/searches/SavedSearchDialog.vala:173 msgid "ends with" msgstr "päättyy" -#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:174 msgid "does not contain" msgstr "ei sisällä" -#: src/searches/SavedSearchDialog.vala:172 -#: src/searches/SavedSearchDialog.vala:503 +#: src/searches/SavedSearchDialog.vala:175 +#: src/searches/SavedSearchDialog.vala:506 msgid "is not set" msgstr "ei ole asetettu" -#: src/searches/SavedSearchDialog.vala:173 +#: src/searches/SavedSearchDialog.vala:176 msgid "is set" msgstr "on asetettu" #. Ordering must correspond with SearchConditionMediaType.Context -#: src/searches/SavedSearchDialog.vala:247 -#: src/searches/SavedSearchDialog.vala:378 -#: src/searches/SavedSearchDialog.vala:443 +#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:381 +#: src/searches/SavedSearchDialog.vala:446 msgid "is" msgstr "on" -#: src/searches/SavedSearchDialog.vala:248 +#: src/searches/SavedSearchDialog.vala:251 msgid "is not" msgstr "ei ole" #. Ordering must correspond with SearchConditionMediaType.MediaType -#: src/searches/SavedSearchDialog.vala:254 +#: src/searches/SavedSearchDialog.vala:257 msgid "any photo" msgstr "mikä tahansa kuva" -#: src/searches/SavedSearchDialog.vala:255 +#: src/searches/SavedSearchDialog.vala:258 msgid "a raw photo" msgstr "raakavalokuva" -#: src/searches/SavedSearchDialog.vala:256 +#: src/searches/SavedSearchDialog.vala:259 msgid "a video" msgstr "video" -#: src/searches/SavedSearchDialog.vala:310 +#: src/searches/SavedSearchDialog.vala:313 msgid "has" msgstr "sisältää" -#: src/searches/SavedSearchDialog.vala:311 +#: src/searches/SavedSearchDialog.vala:314 msgid "has no" msgstr "ei sisällä" -#: src/searches/SavedSearchDialog.vala:316 +#: src/searches/SavedSearchDialog.vala:319 msgid "modifications" msgstr "muokkauksia" -#: src/searches/SavedSearchDialog.vala:317 +#: src/searches/SavedSearchDialog.vala:320 msgid "internal modifications" msgstr "sisäisiä muokkauksia" -#: src/searches/SavedSearchDialog.vala:318 +#: src/searches/SavedSearchDialog.vala:321 msgid "external modifications" msgstr "ulkoisia muokkauksia" #. Ordering must correspond with SearchConditionFlagged.State -#: src/searches/SavedSearchDialog.vala:372 +#: src/searches/SavedSearchDialog.vala:375 msgid "flagged" msgstr "merkitty" -#: src/searches/SavedSearchDialog.vala:373 +#: src/searches/SavedSearchDialog.vala:376 msgid "not flagged" msgstr "ei merkitty" -#: src/searches/SavedSearchDialog.vala:436 +#: src/searches/SavedSearchDialog.vala:439 msgid "and higher" msgstr "ja ylempi" -#: src/searches/SavedSearchDialog.vala:437 +#: src/searches/SavedSearchDialog.vala:440 msgid "only" msgstr "vain" -#: src/searches/SavedSearchDialog.vala:438 +#: src/searches/SavedSearchDialog.vala:441 msgid "and lower" msgstr "ja alempi" -#: src/searches/SavedSearchDialog.vala:500 +#: src/searches/SavedSearchDialog.vala:503 msgid "is after" msgstr "jälkeen" -#: src/searches/SavedSearchDialog.vala:501 +#: src/searches/SavedSearchDialog.vala:504 msgid "is before" msgstr "ennen" -#: src/searches/SavedSearchDialog.vala:502 +#: src/searches/SavedSearchDialog.vala:505 msgid "is between" msgstr "on välillä" -#: src/searches/SavedSearchDialog.vala:515 +#: src/searches/SavedSearchDialog.vala:518 msgid "and" msgstr "ja" -#: src/searches/SearchBoolean.vala:157 +#: src/searches/SearchBoolean.vala:169 msgid "Any text" msgstr "Mikä tahansa teksti" -#: src/searches/SearchBoolean.vala:160 +#: src/searches/SearchBoolean.vala:172 msgid "Title" msgstr "Nimi" -#: src/searches/SearchBoolean.vala:163 +#: src/searches/SearchBoolean.vala:175 msgid "Tag" msgstr "Tunniste" -#: src/searches/SearchBoolean.vala:166 +#: src/searches/SearchBoolean.vala:178 msgid "Comment" msgstr "Kommentti" -#: src/searches/SearchBoolean.vala:169 +#: src/searches/SearchBoolean.vala:181 msgid "Event name" msgstr "Tapahtuman nimi" -#: src/searches/SearchBoolean.vala:172 +#: src/searches/SearchBoolean.vala:184 msgid "File name" msgstr "Tiedostonimi" -#: src/searches/SearchBoolean.vala:175 +#: src/searches/SearchBoolean.vala:187 +msgid "Face" +msgstr "Kasvo" + +#: src/searches/SearchBoolean.vala:190 msgid "Media type" msgstr "Mediatyyppi" -#: src/searches/SearchBoolean.vala:178 +#: src/searches/SearchBoolean.vala:193 msgid "Flag state" msgstr "Merkinnän tila" -#: src/searches/SearchBoolean.vala:181 +#: src/searches/SearchBoolean.vala:196 msgid "Photo state" msgstr "Kuvan tila" -#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:827 -#: src/SearchFilter.vala:1110 +#: src/searches/SearchBoolean.vala:199 src/SearchFilter.vala:853 +#: src/SearchFilter.vala:1136 msgid "Rating" msgstr "Arvostelu" -#: src/searches/SearchBoolean.vala:187 +#: src/searches/SearchBoolean.vala:202 msgid "Date" msgstr "Päivämäärä" @@ -5770,27 +5923,27 @@ msgstr "Tallennetut haut" msgid "Organize your saved searches" msgstr "Hallitse tallennettuja hakujasi" -#: src/SearchFilter.vala:811 +#: src/SearchFilter.vala:837 msgid "★+ Rating" msgstr "★+ -arvostelu" -#: src/SearchFilter.vala:814 +#: src/SearchFilter.vala:840 msgid "★★+ Rating" msgstr "★★+ -arvostelu" -#: src/SearchFilter.vala:817 +#: src/SearchFilter.vala:843 msgid "★★★+ Rating" msgstr "★★★+ -arvostelu" -#: src/SearchFilter.vala:820 +#: src/SearchFilter.vala:846 msgid "★★★★+ Rating" msgstr "★★★★+ -arvostelu" -#: src/SearchFilter.vala:824 +#: src/SearchFilter.vala:850 msgid "★★★★★+ Rating" msgstr "★★★★★+ -arvostelu" -#: src/SearchFilter.vala:1060 +#: src/SearchFilter.vala:1086 #, c-format msgid "Error loading search bar UI: %s" msgstr "Virhe ladatessa hakupalkin käyttöliittymää: %s" @@ -5800,71 +5953,71 @@ msgstr "Virhe ladatessa hakupalkin käyttöliittymää: %s" #. Prepare the close menu for use, but don't #. display it yet; we'll connect it to secondary #. click later on. -#: src/SearchFilter.vala:1069 +#: src/SearchFilter.vala:1095 msgid "Close" msgstr "Sulje" #. Type label and toggles -#: src/SearchFilter.vala:1075 +#: src/SearchFilter.vala:1101 msgid "Type" msgstr "Tyyppi" -#: src/SearchFilter.vala:1082 +#: src/SearchFilter.vala:1108 msgid "Videos" msgstr "Videot" -#: src/SearchFilter.vala:1085 +#: src/SearchFilter.vala:1111 msgid "RAW Photos" msgstr "RAW-kuvat" -#: src/SearchFilter.vala:1121 +#: src/SearchFilter.vala:1147 msgid "Use a saved search to filter items in the current view" msgstr "Käytä tallennettua hkua suodattaaksesi kohteita nykyisessä näkymässä" #. Set up toolbar #. add toolbar buttons -#: src/SlideshowPage.vala:134 +#: src/SlideshowPage.vala:136 msgid "Back" msgstr "Takaisin" -#: src/SlideshowPage.vala:136 +#: src/SlideshowPage.vala:138 msgid "Go to the previous photo" msgstr "Siirry edelliseen kuvaan" -#: src/SlideshowPage.vala:141 src/SlideshowPage.vala:248 +#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:250 msgid "Pause" msgstr "Tauko" -#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:249 +#: src/SlideshowPage.vala:145 src/SlideshowPage.vala:251 msgid "Pause the slideshow" msgstr "Laita diaesitys tauolle" -#: src/SlideshowPage.vala:148 +#: src/SlideshowPage.vala:150 msgid "Next" msgstr "Seuraava" -#: src/SlideshowPage.vala:150 +#: src/SlideshowPage.vala:152 msgid "Go to the next photo" msgstr "Siirry seuraavaan kuvaan" -#: src/SlideshowPage.vala:157 ui/slideshow_settings.ui:21 +#: src/SlideshowPage.vala:159 ui/slideshow_settings.ui:21 msgid "Settings" msgstr "Asetukset" -#: src/SlideshowPage.vala:158 +#: src/SlideshowPage.vala:160 msgid "Change slideshow settings" msgstr "Muuta diaesityksen asetuksia" #. An entire slideshow set might be missing, so check for a loop. -#: src/SlideshowPage.vala:212 +#: src/SlideshowPage.vala:214 msgid "All photo source files are missing." msgstr "Kaikki kuvien lähdetiedostot puuttuvat." -#: src/SlideshowPage.vala:244 +#: src/SlideshowPage.vala:246 msgid "Play" msgstr "Toista" -#: src/SlideshowPage.vala:245 +#: src/SlideshowPage.vala:247 msgid "Continue the slideshow" msgstr "Jatka diaesitystä" @@ -5876,7 +6029,7 @@ msgstr "Diaesityksen siirtymät" msgid "(None)" msgstr "(Ei mitään)" -#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:485 +#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:414 msgid "None" msgstr "Ei mitään" @@ -5901,24 +6054,24 @@ msgstr "nimetön" msgid "Export Videos" msgstr "Vie videoita" -#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/media.ui:281 -#: ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 +#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/faces.ui:281 +#: ui/media.ui:281 ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 msgid "Toggle _Flag" msgstr "Li_ppu päälle/pois" -#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/media.ui:353 -#: ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 +#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/faces.ui:353 +#: ui/media.ui:353 ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 msgid "_Developer" msgstr "_Kehitin" -#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/media.ui:381 -#: ui/photo_context.ui:126 ui/tags.ui:381 +#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/faces.ui:381 +#: ui/media.ui:381 ui/photo_context.ui:126 ui/tags.ui:381 msgid "View Eve_nt for Photo" msgstr "Näytä kuvan _tapahtuma" -#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/import_queue.ui:5 -#: ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 ui/photo.ui:5 ui/tags.ui:5 -#: ui/trash.ui:5 +#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/faces.ui:5 +#: ui/import_queue.ui:5 ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 +#: ui/photo.ui:5 ui/tags.ui:5 ui/trash.ui:5 msgid "_File" msgstr "_Tiedosto" @@ -5926,7 +6079,7 @@ msgstr "_Tiedosto" msgid "Save _As…" msgstr "Tallenna nim_ellä…" -#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 +#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 ui/faces.ui:99 #: ui/import_queue.ui:38 ui/import.ui:74 ui/media.ui:99 ui/offline.ui:78 #: ui/photo.ui:95 ui/tags.ui:99 ui/trash.ui:87 msgid "_View" @@ -5960,229 +6113,240 @@ msgstr "_Seuraava kuva" msgid "T_ools" msgstr "T_yökalut" -#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 +#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 ui/faces.ui:438 #: ui/import_queue.ui:73 ui/import.ui:191 ui/media.ui:411 ui/offline.ui:188 #: ui/photo.ui:395 ui/tags.ui:430 ui/trash.ui:197 msgid "_Frequently Asked Questions" msgstr "_Usein kysytyt kysymykset" -#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 +#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 ui/faces.ui:442 #: ui/import_queue.ui:77 ui/import.ui:195 ui/media.ui:415 ui/offline.ui:192 #: ui/photo.ui:399 ui/tags.ui:434 ui/trash.ui:201 msgid "_Report a Problem…" msgstr "_Ilmoita ongelmasta…" -#: ui/events_directory.ui:8 ui/event.ui:8 ui/import_queue.ui:14 ui/import.ui:8 -#: ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 ui/trash.ui:8 +#: ui/events_directory.ui:8 ui/event.ui:8 ui/faces.ui:8 ui/import_queue.ui:14 +#: ui/import.ui:8 ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 +#: ui/trash.ui:8 msgid "_Import From Folder…" msgstr "Tuo kan_siosta…" -#: ui/events_directory.ui:13 ui/event.ui:13 ui/import_queue.ui:19 -#: ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 ui/photo.ui:13 ui/tags.ui:13 -#: ui/trash.ui:13 +#: ui/events_directory.ui:13 ui/event.ui:13 ui/faces.ui:13 +#: ui/import_queue.ui:19 ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 +#: ui/photo.ui:13 ui/tags.ui:13 ui/trash.ui:13 msgid "Import From _Application…" msgstr "Tuo so_velluksesta…" -#: ui/events_directory.ui:19 ui/event.ui:34 ui/import_queue.ui:25 -#: ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 ui/photo.ui:42 ui/tags.ui:34 -#: ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 +#: ui/events_directory.ui:19 ui/event.ui:34 ui/faces.ui:34 +#: ui/import_queue.ui:25 ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 +#: ui/photo.ui:42 ui/tags.ui:34 ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 msgid "Empty T_rash" msgstr "Tyhjennä _roskakori" -#: ui/events_directory.ui:47 ui/event.ui:62 ui/import.ui:55 ui/media.ui:62 -#: ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 +#: ui/events_directory.ui:47 ui/event.ui:62 ui/faces.ui:62 ui/import.ui:55 +#: ui/media.ui:62 ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 msgid "_Find" msgstr "_Etsi" -#: ui/events_directory.ui:51 ui/event.ui:66 ui/media.ui:66 ui/offline.ui:51 -#: ui/photo.ui:70 ui/search_sidebar_context.ui:6 +#: ui/events_directory.ui:51 ui/event.ui:66 ui/faces.ui:66 ui/media.ui:66 +#: ui/offline.ui:51 ui/photo.ui:70 ui/search_sidebar_context.ui:6 #: ui/sidebar_default_context.ui:6 ui/tags.ui:66 ui/trash.ui:56 msgid "Ne_w Saved Search…" msgstr "Uu_si tallennettu haku…" -#: ui/events_directory.ui:74 ui/event.ui:102 ui/import_queue.ui:41 -#: ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 ui/photo.ui:98 -#: ui/tags.ui:102 ui/trash.ui:90 +#: ui/events_directory.ui:74 ui/event.ui:102 ui/faces.ui:102 +#: ui/import_queue.ui:41 ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 +#: ui/photo.ui:98 ui/tags.ui:102 ui/trash.ui:90 msgid "_Basic Information" msgstr "_Perustiedot" -#: ui/events_directory.ui:79 ui/event.ui:107 ui/import.ui:82 ui/media.ui:107 -#: ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 ui/trash.ui:95 +#: ui/events_directory.ui:79 ui/event.ui:107 ui/faces.ui:107 ui/import.ui:82 +#: ui/media.ui:107 ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 +#: ui/trash.ui:95 msgid "E_xtended Information" msgstr "_Lisätiedot" -#: ui/events_directory.ui:84 ui/event.ui:112 ui/import.ui:87 ui/media.ui:112 -#: ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 +#: ui/events_directory.ui:84 ui/event.ui:112 ui/faces.ui:112 ui/import.ui:87 +#: ui/media.ui:112 ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 msgid "_Search Bar" msgstr "_Hakupalkki" -#: ui/events_directory.ui:89 ui/event.ui:117 ui/import.ui:92 ui/media.ui:117 -#: ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 ui/trash.ui:105 +#: ui/events_directory.ui:89 ui/event.ui:117 ui/faces.ui:117 ui/import.ui:92 +#: ui/media.ui:117 ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 +#: ui/trash.ui:105 msgid "S_idebar" msgstr "S_ivupalkki" -#: ui/events_directory.ui:94 ui/event.ui:122 ui/import.ui:97 ui/media.ui:122 -#: ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 ui/trash.ui:110 +#: ui/events_directory.ui:94 ui/event.ui:122 ui/faces.ui:122 ui/import.ui:97 +#: ui/media.ui:122 ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 +#: ui/trash.ui:110 msgid "T_oolbar" msgstr "T_yökalupalkki" -#: ui/events_directory.ui:101 ui/event.ui:134 ui/media.ui:134 ui/tags.ui:134 +#: ui/events_directory.ui:101 ui/event.ui:134 ui/faces.ui:134 ui/media.ui:134 +#: ui/tags.ui:134 msgid "_Comments" msgstr "_Kommentit" -#: ui/events_directory.ui:108 ui/event.ui:243 ui/import_queue.ui:48 -#: ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 ui/photo.ui:127 -#: ui/tags.ui:243 ui/trash.ui:172 +#: ui/events_directory.ui:108 ui/event.ui:243 ui/faces.ui:243 +#: ui/import_queue.ui:48 ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 +#: ui/photo.ui:127 ui/tags.ui:243 ui/trash.ui:172 msgid "Sort _Events" msgstr "Järjestä _tapahtumat" -#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 -#: ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 ui/media.ui:246 -#: ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 ui/tags.ui:246 -#: ui/trash.ui:175 +#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 ui/faces.ui:231 +#: ui/faces.ui:246 ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 +#: ui/media.ui:246 ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 +#: ui/tags.ui:246 ui/trash.ui:175 msgid "_Ascending" msgstr "_Nousevasti" -#: ui/events_directory.ui:116 ui/event.ui:236 ui/import_queue.ui:56 -#: ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 ui/trash.ui:180 +#: ui/events_directory.ui:116 ui/event.ui:236 ui/faces.ui:236 +#: ui/import_queue.ui:56 ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 +#: ui/trash.ui:180 msgid "D_escending" msgstr "_Laskevasti" -#: ui/events_directory.ui:132 ui/event.ui:379 ui/media.ui:373 ui/tags.ui:373 +#: ui/events_directory.ui:132 ui/event.ui:379 ui/faces.ui:373 ui/media.ui:373 +#: ui/tags.ui:373 msgid "Even_ts" msgstr "_Tapahtumat" -#: ui/event.ui:129 ui/import.ui:104 ui/media.ui:129 ui/tags.ui:129 +#: ui/event.ui:129 ui/faces.ui:129 ui/import.ui:104 ui/media.ui:129 +#: ui/tags.ui:129 msgid "_Titles" msgstr "_Nimet" -#: ui/event.ui:139 ui/event.ui:404 ui/media.ui:139 ui/media.ui:387 -#: ui/photo.ui:372 ui/tags.ui:139 ui/tags.ui:387 +#: ui/event.ui:139 ui/event.ui:404 ui/faces.ui:139 ui/faces.ui:387 +#: ui/media.ui:139 ui/media.ui:387 ui/photo.ui:372 ui/tags.ui:139 +#: ui/tags.ui:387 msgid "Ta_gs" msgstr "_Tunnisteet" -#: ui/event.ui:206 ui/media.ui:206 ui/tags.ui:206 +#: ui/event.ui:206 ui/faces.ui:206 ui/media.ui:206 ui/tags.ui:206 msgid "Sort _Photos" msgstr "Järjestä _kuvat" -#: ui/event.ui:209 ui/media.ui:209 ui/tags.ui:209 +#: ui/event.ui:209 ui/faces.ui:209 ui/media.ui:209 ui/tags.ui:209 msgid "By _Title" msgstr "_Nimen mukaan" -#: ui/event.ui:214 ui/media.ui:214 ui/tags.ui:214 +#: ui/event.ui:214 ui/faces.ui:214 ui/media.ui:214 ui/tags.ui:214 msgid "By _Filename" msgstr "Tie_dostonimen mukaan" -#: ui/event.ui:219 ui/media.ui:219 ui/tags.ui:219 +#: ui/event.ui:219 ui/faces.ui:219 ui/media.ui:219 ui/tags.ui:219 msgid "By Exposure _Date" msgstr "_Kuvauspäivän mukaan" -#: ui/event.ui:224 ui/media.ui:224 ui/tags.ui:224 +#: ui/event.ui:224 ui/faces.ui:224 ui/media.ui:224 ui/tags.ui:224 msgid "By _Rating" msgstr "_Arvostelun mukaan" -#: ui/event.ui:251 ui/import.ui:174 ui/media.ui:251 ui/photo.ui:135 -#: ui/tags.ui:251 +#: ui/event.ui:251 ui/faces.ui:251 ui/import.ui:174 ui/media.ui:251 +#: ui/photo.ui:135 ui/tags.ui:251 msgid "_Descending" msgstr "_Laskevasti" -#: ui/event.ui:275 ui/media.ui:275 ui/tags.ui:275 +#: ui/event.ui:275 ui/faces.ui:275 ui/media.ui:275 ui/tags.ui:275 msgid "_Photos" msgstr "_Kuvat" +#: ui/faces.ui:465 +msgid "Rename…" +msgstr "Ni_meä uudelleen…" + #: ui/import_queue.ui:8 msgid "_Stop Import" msgstr "_Keskeytä tuonti" -#: ui/preferences_dialog.ui:65 -msgid "white" -msgstr "valkoinen" - -#: ui/preferences_dialog.ui:92 -msgid "black" -msgstr "musta" - -#: ui/preferences_dialog.ui:123 +#: ui/preferences_dialog.ui:67 msgid "Display" msgstr "Näyttö" -#: ui/preferences_dialog.ui:160 -msgid "_Background:" -msgstr "_Taustakuva:" - -#: ui/preferences_dialog.ui:175 +#: ui/preferences_dialog.ui:103 msgid "_Import photos to:" msgstr "_Tuo kuvia:" -#: ui/preferences_dialog.ui:186 +#: ui/preferences_dialog.ui:114 msgid "_Watch library directory for new files" msgstr "_Tarkkaile kirjastoa uusien tiedostojen varalta" -#: ui/preferences_dialog.ui:209 +#: ui/preferences_dialog.ui:137 msgid "Importing" msgstr "Tuonti" -#: ui/preferences_dialog.ui:226 +#: ui/preferences_dialog.ui:154 msgid "_Directory structure:" msgstr "_Kansiorakenne:" -#: ui/preferences_dialog.ui:241 +#: ui/preferences_dialog.ui:169 msgid "Example:" msgstr "Esimerkki:" -#: ui/preferences_dialog.ui:250 +#: ui/preferences_dialog.ui:178 msgid "R_ename imported files to lowercase" msgstr "Ni_meä tuodut tiedostot uudelleen käyttäen pieniä kirjaimia" -#: ui/preferences_dialog.ui:272 +#: ui/preferences_dialog.ui:200 msgid "Metadata" msgstr "Metatiedot" -#: ui/preferences_dialog.ui:285 +#: ui/preferences_dialog.ui:213 msgid "Write tags, titles, and other _metadata to photo files" msgstr "Kirjoita tunnisteet, nimet ja muut _metatiedot kuvatiedostoihin" -#: ui/preferences_dialog.ui:307 +#: ui/preferences_dialog.ui:235 msgid "RAW Developer" msgstr "RAW-kehitin" -#: ui/preferences_dialog.ui:324 +#: ui/preferences_dialog.ui:252 msgid "De_fault:" msgstr "_Oletus:" -#: ui/preferences_dialog.ui:378 +#: ui/preferences_dialog.ui:306 msgid "_Pattern:" msgstr "Kaa_va:" -#: ui/preferences_dialog.ui:414 +#: ui/preferences_dialog.ui:339 +msgid "" +"When viewing images that are transparent, they will be drawn against this " +"background." +msgstr "Kun katsellaan läpinäkyviä kuvia, ne piirretään tätä taustaa vasten." + +#: ui/preferences_dialog.ui:343 msgid "Transparent Background:" msgstr "Läpinäkyvä tausta:" -#: ui/preferences_dialog.ui:428 +#: ui/preferences_dialog.ui:357 msgid "Checkered" msgstr "" -#: ui/preferences_dialog.ui:449 +#: ui/preferences_dialog.ui:378 msgid "Solid color" msgstr "Kiinteä väri" -#: ui/preferences_dialog.ui:539 +#: ui/preferences_dialog.ui:441 +msgid "Use dark theme:" +msgstr "Käytä tummaa teemaa:" + +#: ui/preferences_dialog.ui:492 msgid "E_xternal photo editor:" msgstr "_Ulkoinen kuvamuokkain:" -#: ui/preferences_dialog.ui:556 +#: ui/preferences_dialog.ui:509 msgid "External _RAW editor:" msgstr "Ulkoinen _RAW-muokkain:" -#: ui/preferences_dialog.ui:617 +#: ui/preferences_dialog.ui:570 msgid "External Editors" msgstr "Ulkoiset muokkaimet" -#: ui/preferences_dialog.ui:642 +#: ui/preferences_dialog.ui:595 msgid "Plugins" msgstr "Liitännäiset" -#: ui/preferences_dialog.ui:668 +#: ui/preferences_dialog.ui:621 msgid "Shotwell Preferences" msgstr "Shotwellin asetukset" @@ -6308,23 +6472,23 @@ msgstr "Kuinka kauan tiettyä kuvaa näytetään työpöydän taustakuvana" msgid "New _Tag…" msgstr "Uusi _tunniste…" -#: ui/slideshow_settings.ui:91 +#: ui/slideshow_settings.ui:98 msgid "_Delay:" msgstr "_Viive:" -#: ui/slideshow_settings.ui:105 +#: ui/slideshow_settings.ui:112 msgid "_Transition effect:" msgstr "_Siirtymän tehoste:" -#: ui/slideshow_settings.ui:119 +#: ui/slideshow_settings.ui:126 msgid "Transition d_elay:" msgstr "Siirt_ymän viive:" -#: ui/slideshow_settings.ui:129 +#: ui/slideshow_settings.ui:136 msgid "Show t_itle" msgstr "N_äytä nimi" -#: ui/slideshow_settings.ui:212 ui/slideshow_settings.ui:223 +#: ui/slideshow_settings.ui:219 ui/slideshow_settings.ui:230 msgid "seconds" msgstr "sekuntia" @@ -6336,6 +6500,21 @@ msgstr "nimike" msgid "Delete all photos in the trash" msgstr "Poista kaikki kuvat roskakorista" +#~ msgid "background color" +#~ msgstr "taustaväri" + +#~ msgid "Extended Information" +#~ msgstr "Lisätiedot" + +#~ msgid "white" +#~ msgstr "valkoinen" + +#~ msgid "black" +#~ msgstr "musta" + +#~ msgid "_Background:" +#~ msgstr "_Taustakuva:" + #~ msgid "" #~ "Enter the confirmation number which appears after you log into Flickr in " #~ "your Web browser." diff --git a/po/fr.gmo b/po/fr.gmo deleted file mode 100644 index 2d3e11f..0000000 Binary files a/po/fr.gmo and /dev/null differ diff --git a/po/fr.po b/po/fr.po index 415b5e6..56c61c1 100644 --- a/po/fr.po +++ b/po/fr.po @@ -1,11 +1,11 @@ # PO message string template file for Shotwell Core Components -# Copyright 2016 Software Freedom Conservancy Inc. +# Copyright 2016-2018 Software Freedom Conservancy Inc. # See COPYING for license. # # Translators: # Alexandre Franke , 2011, 2015. # ttoine , 2013. -# Claude Paroz , 2011-2012, 2016-2017. +# Claude Paroz , 2011-2012, 2016-2018. # hellsdark , 2013. # esunyer , 2012. # fbourigault , 2013. @@ -24,10 +24,9 @@ msgid "" msgstr "" "Project-Id-Version: shotwell master\n" -"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" -"product=shotwell&keywords=I18N+L10N&component=Internationalization\n" -"POT-Creation-Date: 2017-05-01 18:34+0000\n" -"PO-Revision-Date: 2017-05-04 22:07+0200\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/shotwell/issues\n" +"POT-Creation-Date: 2018-06-25 16:43+0000\n" +"PO-Revision-Date: 2018-06-27 10:02+0200\n" "Last-Translator: Claude Paroz \n" "Language-Team: français \n" "Language: fr\n" @@ -36,11 +35,11 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in.in:4 +#: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in:4 #: plugins/shotwell-publishing-extras/GalleryConnector.vala:115 -#: src/photos/RawSupport.vala:313 ui/collection.ui:85 ui/event.ui:356 -#: ui/event.ui:524 ui/media.ui:356 ui/photo_context.ui:91 ui/photo.ui:346 -#: ui/tags.ui:356 +#: src/photos/RawSupport.vala:308 ui/collection.ui:85 ui/event.ui:356 +#: ui/event.ui:524 ui/faces.ui:356 ui/media.ui:356 ui/photo_context.ui:91 +#: ui/photo.ui:347 ui/tags.ui:356 msgid "Shotwell" msgstr "Shotwell" @@ -57,13 +56,13 @@ msgid "" "Shotwell’s non-destructive photo editor does not alter your master photos, " "making it easy to experiment and correct errors." msgstr "" -"Shotwell est un organiseur de photos simple d'utilisation et rapide, conçu " -"pour le bureau GNOME. Il permet d'importer des photos à partir d'appareils " +"Shotwell est un organiseur de photos simple d’utilisation et rapide, conçu " +"pour le bureau GNOME. Il permet d’importer des photos à partir d’appareils " "photo ou de disques, de les organiser par date et par thème, et même par " -"notation. Il offre également des fonctionnalités d'édition basiques telles " -"que le rognage, la correction des yeux rouges, l'ajustement des couleurs et " -"le redressement. L'éditeur d'image non destructif de Shotwell ne touche pas " -"aux photos originales, ce qui facilite les essais et la correction d'erreurs." +"notation. Il offre également des fonctionnalités d’édition basiques telles " +"que le rognage, la correction des yeux rouges, l’ajustement des couleurs et " +"le redressement. L’éditeur d’image non destructif de Shotwell ne touche pas " +"aux photos originales, ce qui facilite les essais et la correction d’erreurs." #: misc/shotwell.appdata.xml.in:18 msgid "" @@ -71,28 +70,28 @@ msgid "" "Facebook, Flickr, Picasa (Google Plus), and more." msgstr "" "Lorsque vos photos sont prêtes, Shotwell sait les envoyer à différents sites " -"Web, tels que Facebook, Flickr, Picasa (Google Plus) et d'autres encore." +"Web, tels que Facebook, Flickr, Picasa (Google Plus) et d’autres encore." #: misc/shotwell.appdata.xml.in:22 msgid "Shotwell supports JPEG, PNG, TIFF, and a variety of RAW file formats." msgstr "" -"Shotwell prend en charge les formats JPEG, PNG, TIFF ainsi qu'une variété de " +"Shotwell prend en charge les formats JPEG, PNG, TIFF ainsi qu’une variété de " "formats de fichier RAW." #: misc/shotwell.appdata.xml.in:52 msgid "The Shotwell developers" msgstr "Les développeurs de Shotwell" -#: misc/shotwell.desktop.in.in:5 src/Resources.vala:17 +#: misc/shotwell.desktop.in:5 src/Resources.vala:17 msgid "Photo Manager" msgstr "Gestionnaire de photos" -#: misc/shotwell.desktop.in.in:6 +#: misc/shotwell.desktop.in:6 msgid "Organize your photos" msgstr "Organisez vos photos" #. Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! -#: misc/shotwell.desktop.in.in:8 +#: misc/shotwell.desktop.in:8 msgid "" "album;camera;cameras;crop;edit;enhance;export;gallery;image;images;import;" "organize;photo;photographs;photos;picture;pictures;photography;print;publish;" @@ -104,25 +103,25 @@ msgstr "" "picasa;youtube;piwigo;" #. Translators: Do NOT translate or transliterate this text (this is an icon file name)! -#: misc/shotwell.desktop.in.in:11 misc/shotwell-viewer.desktop.in.in:8 +#: misc/shotwell.desktop.in:11 misc/shotwell-viewer.desktop.in:8 msgid "shotwell" msgstr "shotwell" -#: misc/shotwell-viewer.desktop.in.in:4 +#: misc/shotwell-viewer.desktop.in:4 msgid "Shotwell Viewer" msgstr "Visionneur Shotwell" -#: misc/shotwell-viewer.desktop.in.in:5 src/Resources.vala:18 +#: misc/shotwell-viewer.desktop.in:5 src/Resources.vala:18 msgid "Photo Viewer" msgstr "Visionneur de photos" #: misc/org.yorba.shotwell-extras.gschema.xml:6 msgid "authentication token" -msgstr "jeton d'authentification" +msgstr "jeton d’authentification" #: misc/org.yorba.shotwell-extras.gschema.xml:7 msgid "Yandex-Fotki authentication token, if logged in." -msgstr "Jeton d'authentification Yandex-Fotki, si connecté." +msgstr "Jeton d’authentification Yandex-Fotki, si connecté." #: misc/org.yorba.shotwell-extras.gschema.xml:14 msgid "Token" @@ -158,7 +157,7 @@ msgstr "blog par défaut" #: misc/org.yorba.shotwell-extras.gschema.xml:33 msgid "The name of the default blog of the user, if any" -msgstr "Le nom du blog par défaut de l'utilisateur, le cas échéant" +msgstr "Le nom du blog par défaut de l’utilisateur, le cas échéant" #: misc/org.yorba.shotwell-extras.gschema.xml:40 msgid "Rajce URL" @@ -173,11 +172,11 @@ msgstr "URL du serveur Racje." #: misc/org.yorba.shotwell.gschema.xml:524 #: misc/org.yorba.shotwell.gschema.xml:580 msgid "username" -msgstr "nom d'utilisateur" +msgstr "nom d’utilisateur" #: misc/org.yorba.shotwell-extras.gschema.xml:47 msgid "Rajce username, if logged in." -msgstr "Nom d'utilisateur Racje, si connecté." +msgstr "Nom d’utilisateur Racje, si connecté." #: misc/org.yorba.shotwell-extras.gschema.xml:52 msgid "token" @@ -185,7 +184,7 @@ msgstr "jeton" #: misc/org.yorba.shotwell-extras.gschema.xml:53 msgid "user token, if remembered." -msgstr "jeton utilisateur, s'il faut s'en souvenir." +msgstr "jeton utilisateur, s’il faut s’en souvenir." #: misc/org.yorba.shotwell-extras.gschema.xml:58 #: misc/org.yorba.shotwell.gschema.xml:542 @@ -219,21 +218,21 @@ msgstr "Si vrai, se souvenir de la dernière connexion." #: misc/org.yorba.shotwell-extras.gschema.xml:76 msgid "hide album" -msgstr "masquer l'album" +msgstr "masquer l’album" #: misc/org.yorba.shotwell-extras.gschema.xml:77 msgid "If true, hide the newly created Rajce album." -msgstr "Si vrai, masquer l'album Racje nouvellement créé." +msgstr "Si vrai, masquer l’album Racje nouvellement créé." #: misc/org.yorba.shotwell-extras.gschema.xml:82 msgid "open album in web browser" -msgstr "ouvrir l'album dans le navigateur Web" +msgstr "ouvrir l’album dans le navigateur Web" #: misc/org.yorba.shotwell-extras.gschema.xml:83 msgid "" "If true, open target album in the web browser just after uploading photos" msgstr "" -"Si vrai, ouvrir l'album cible dans le navigateur Web juste après l'envoi des " +"Si vrai, ouvrir l’album cible dans le navigateur Web juste après l’envoi des " "photos" #: misc/org.yorba.shotwell-extras.gschema.xml:88 @@ -280,11 +279,11 @@ msgstr "Si vrai, le panneau latéral est affiché, sinon pas." #: misc/org.yorba.shotwell.gschema.xml:41 msgid "display toolbar" -msgstr "afficher la barre d'outils" +msgstr "afficher la barre d’outils" #: misc/org.yorba.shotwell.gschema.xml:42 msgid "True if the bottom toolbar is to be displayed, false otherwise." -msgstr "Si vrai, la barre d'outils inférieure est affichée, sinon pas." +msgstr "Si vrai, la barre d’outils inférieure est affichée, sinon pas." #: misc/org.yorba.shotwell.gschema.xml:47 msgid "display search bar" @@ -292,7 +291,7 @@ msgstr "afficher la barre de recherche" #: misc/org.yorba.shotwell.gschema.xml:48 msgid "True if the Search/Filter Toolbar is to be displayed, false otherwise." -msgstr "Si vrai, la barre d'outils rechercher/filtrer est affichée, sinon pas." +msgstr "Si vrai, la barre d’outils rechercher/filtrer est affichée, sinon pas." #: misc/org.yorba.shotwell.gschema.xml:53 msgid "display photo titles" @@ -435,20 +434,20 @@ msgid "" "True if when adjusting time/date of photos, relative time should be " "maintained. False if all photos should be set to the same time." msgstr "" -"Si vrai, le temps relatif est maintenu lors de l'ajustement de l'heure et de " +"Si vrai, le temps relatif est maintenu lors de l’ajustement de l’heure et de " "la date des photos. Sinon, toutes les photos reçoivent la même date/heure." #: misc/org.yorba.shotwell.gschema.xml:131 msgid "modify original photo files" -msgstr "modifier les photos d'origine" +msgstr "modifier les photos d’origine" #: misc/org.yorba.shotwell.gschema.xml:132 msgid "" "True if when adjusting time/date of photos, the original files should be " "modified as well. False if changes are made only in the database." msgstr "" -"Si vrai, les fichiers originaux sont aussi modifiés lors de l'ajustement de " -"l'heure et de la date des photos. Sinon, les modifications ne sont faites " +"Si vrai, les fichiers originaux sont aussi modifiés lors de l’ajustement de " +"l’heure et de la date des photos. Sinon, les modifications ne sont faites " "que dans la base de données." #: misc/org.yorba.shotwell.gschema.xml:137 @@ -461,7 +460,7 @@ msgid "" "should not be shown." msgstr "" "Si vrai, une boîte de dialogue de bienvenue apparaît lors du démarrage. " -"Sinon, elle n'apparaît pas." +"Sinon, elle n’apparaît pas." #: misc/org.yorba.shotwell.gschema.xml:143 msgid "sidebar position" @@ -477,23 +476,23 @@ msgstr "échelle de vignette des photos" #: misc/org.yorba.shotwell.gschema.xml:150 msgid "The scale of photo thumbnails, ranging from 72 to 360." -msgstr "L'échelle des vignettes de photos, de 72 à 360." +msgstr "L’échelle des vignettes de photos, de 72 à 360." #: misc/org.yorba.shotwell.gschema.xml:155 msgid "pin toolbar state" -msgstr "état figé de la barre d'outils" +msgstr "état figé de la barre d’outils" #: misc/org.yorba.shotwell.gschema.xml:156 msgid "Pin toolbar in fullscreen, or not." -msgstr "Indique si la barre d'outils est figée en mode plein écran." +msgstr "Indique si la barre d’outils est figée en mode plein écran." #: misc/org.yorba.shotwell.gschema.xml:161 -msgid "background color" -msgstr "couleur d'arrière-plan" +msgid "prefer GTK+’s dark theme" +msgstr "privilégier le thème sombre de GTK+" #: misc/org.yorba.shotwell.gschema.xml:162 -msgid "A grayscale color for use as the background color." -msgstr "Une couleur en niveaux de gris comme couleur d'arrière-plan." +msgid "Whether to use the dark theme of GTK+ for Shotwell or not." +msgstr "Indique s’il faut utiliser le thème sombre de GTK+ pour Shotwell." #: misc/org.yorba.shotwell.gschema.xml:167 msgid "background for transparent images" @@ -501,29 +500,29 @@ msgstr "arrière-plan pour les images transparentes" #: misc/org.yorba.shotwell.gschema.xml:168 msgid "The background to use for transparent images." -msgstr "L'arrière-plan à utiliser pour les images transparentes." +msgstr "L’arrière-plan à utiliser pour les images transparentes." #: misc/org.yorba.shotwell.gschema.xml:173 msgid "color for solid transparency background" -msgstr "couleur pour l'arrière-plan de transparence uni" +msgstr "couleur pour l’arrière-plan de transparence uni" #: misc/org.yorba.shotwell.gschema.xml:174 msgid "Color to use if background for transparent images is set to solid color" msgstr "" -"Couleur à utiliser si l'arrière-plan des images transparentes est défini à " +"Couleur à utiliser si l’arrière-plan des images transparentes est défini à " "une couleur unie" #: misc/org.yorba.shotwell.gschema.xml:179 msgid "Selection state of “hide photos” option" -msgstr "État de sélection de l'option « masquer les photos »" +msgstr "État de sélection de l’option « masquer les photos »" #: misc/org.yorba.shotwell.gschema.xml:180 msgid "" "Last used selection state of the “hide photos already imported” option in " "the import page." msgstr "" -"Dernier état de sélection de l'option « masquer les photos déjà importées » " -"sur la page d'importation." +"Dernier état de sélection de l’option « masquer les photos déjà importées » " +"sur la page d’importation." #: misc/org.yorba.shotwell.gschema.xml:187 msgid "delay" @@ -545,14 +544,14 @@ msgstr "" #: misc/org.yorba.shotwell.gschema.xml:199 msgid "transition effect id" -msgstr "id d'effet de transition" +msgstr "id d’effet de transition" #: misc/org.yorba.shotwell.gschema.xml:200 msgid "" "The name of the transition effect that will be used between photos when " "running a slideshow" msgstr "" -"Le nom de l'effet de transition utilisé entre les photos lors du " +"Le nom de l’effet de transition utilisé entre les photos lors du " "functionnement en mode diaporama" #: misc/org.yorba.shotwell.gschema.xml:205 @@ -578,7 +577,7 @@ msgstr "largeur de la fenêtre de bibliothèque" #: misc/org.yorba.shotwell.gschema.xml:220 msgid "The last recorded width of the library application window." msgstr "" -"Dernière largeur mémorisée de la fenêtre de l'application bibliothèque." +"Dernière largeur mémorisée de la fenêtre de l’application bibliothèque." #: misc/org.yorba.shotwell.gschema.xml:225 msgid "height of library window" @@ -587,7 +586,7 @@ msgstr "hauteur de la fenêtre de bibliothèque" #: misc/org.yorba.shotwell.gschema.xml:226 msgid "The last recorded height of the library application window." msgstr "" -"Dernière hauteur mémorisée de la fenêtre de l'application bibliothèque." +"Dernière hauteur mémorisée de la fenêtre de l’application bibliothèque." #: misc/org.yorba.shotwell.gschema.xml:231 msgid "maximize direct-edit window" @@ -595,7 +594,7 @@ msgstr "maximiser la fenêtre édition directe" #: misc/org.yorba.shotwell.gschema.xml:232 msgid "True if direct-edit application is maximized, false otherwise." -msgstr "Si vrai, l'application d'édition directe est maximisée." +msgstr "Si vrai, l’application d’édition directe est maximisée." #: misc/org.yorba.shotwell.gschema.xml:237 msgid "width of direct-edit window" @@ -604,7 +603,7 @@ msgstr "largeur de la fenêtre édition directe" #: misc/org.yorba.shotwell.gschema.xml:238 msgid "The last recorded width of the direct-edit application window." msgstr "" -"Dernière largeur enregistrée pour la fenêtre d'application d'édition directe." +"Dernière largeur enregistrée pour la fenêtre d’application d’édition directe." #: misc/org.yorba.shotwell.gschema.xml:243 msgid "height of direct-edit window" @@ -613,7 +612,7 @@ msgstr "hauteur de la fenêtre édition directe" #: misc/org.yorba.shotwell.gschema.xml:244 msgid "The last recorded height of the direct-edit application window." msgstr "" -"Dernière hauteur enregistrée pour la fenêtre d'application d'édition directe." +"Dernière hauteur enregistrée pour la fenêtre d’application d’édition directe." #: misc/org.yorba.shotwell.gschema.xml:249 msgid "sidebar divider position" @@ -625,11 +624,11 @@ msgid "" "library application window." msgstr "" "Dernière position enregistrée de la division entre la barre latérale et la " -"zone d'affichage dans la fenêtre d'application photothèque." +"zone d’affichage dans la fenêtre d’application photothèque." #: misc/org.yorba.shotwell.gschema.xml:257 msgid "import directory" -msgstr "répertoire d'importation" +msgstr "répertoire d’importation" #: misc/org.yorba.shotwell.gschema.xml:258 msgid "Directory in which imported photo files are placed." @@ -668,7 +667,7 @@ msgid "" "photo files" msgstr "" "Si vrai, Shotwell convertit tous les noms de fichiers en minuscules lors de " -"l'importation de fichiers photos" +"l’importation de fichiers photos" #: misc/org.yorba.shotwell.gschema.xml:281 msgid "directory pattern" @@ -711,7 +710,7 @@ msgstr "" msgid "A numeric code representing the last crop menu choice the user made." msgstr "" "Un code numérique représentant le dernier choix de menu de rognage par " -"l'utilisateur." +"l’utilisateur." #: misc/org.yorba.shotwell.gschema.xml:306 msgid "Most-recently-used crop custom aspect ratio’s numerator." @@ -724,7 +723,7 @@ msgid "" "crop ratio the user entered." msgstr "" "Un entier positif plus grand que zéro représentant la largeur des " -"proportions de rognage que l'utilisateur a saisi en dernier." +"proportions de rognage que l’utilisateur a saisi en dernier." #: misc/org.yorba.shotwell.gschema.xml:311 msgid "Most-recently-used crop custom aspect ratio’s denominator." @@ -737,7 +736,7 @@ msgid "" "crop ratio the user entered." msgstr "" "Un entier positif plus grand que zéro représentant la hauteur des " -"proportions de rognage que l'utilisateur a saisi en dernier." +"proportions de rognage que l’utilisateur a saisi en dernier." #: misc/org.yorba.shotwell.gschema.xml:319 msgid "external photo editor" @@ -753,13 +752,13 @@ msgstr "éditeur raw externe" #: misc/org.yorba.shotwell.gschema.xml:326 msgid "External application used to edit RAW photos." -msgstr "Application externe pour l'édition des photos RAW." +msgstr "Application externe pour l’édition des photos RAW." #: misc/org.yorba.shotwell.gschema.xml:364 #: misc/org.yorba.shotwell.gschema.xml:365 msgid "Setting in export dialog: how to trim images" msgstr "" -"Paramètre de la boîte de dialogue d'exportation : comment découper les images" +"Paramètre de la boîte de dialogue d’exportation : comment découper les images" #: misc/org.yorba.shotwell.gschema.xml:370 msgid "export metadata" @@ -768,7 +767,7 @@ msgstr "exporter les métadonnées" #: misc/org.yorba.shotwell.gschema.xml:371 msgid "Setting in export dialog: option to export metadata" msgstr "" -"Paramètre de la boîte de dialogue d'exportation : option pour exporter les " +"Paramètre de la boîte de dialogue d’exportation : option pour exporter les " "métadonnées" #: misc/org.yorba.shotwell.gschema.xml:376 @@ -778,7 +777,7 @@ msgstr "paramètre de format, valeur spéciale" #: misc/org.yorba.shotwell.gschema.xml:377 msgid "Setting in export dialog: format setting, special value" msgstr "" -"Paramètre de la boîte de dialogue d'exportation : paramètre de format, " +"Paramètre de la boîte de dialogue d’exportation : paramètre de format, " "valeur spéciale" #: misc/org.yorba.shotwell.gschema.xml:382 @@ -788,7 +787,7 @@ msgstr "paramètre de format, valeur de type" #: misc/org.yorba.shotwell.gschema.xml:383 msgid "Setting in export dialog: format setting, type value" msgstr "" -"Paramètre de la boîte de dialogue d'exportation : paramètre de format, " +"Paramètre de la boîte de dialogue d’exportation : paramètre de format, " "valeur de type" #: misc/org.yorba.shotwell.gschema.xml:388 @@ -798,16 +797,16 @@ msgstr "option de qualité JPEG" #: misc/org.yorba.shotwell.gschema.xml:389 msgid "Setting in export dialog: jpeg quality option" msgstr "" -"Paramètre de la boîte de dialogue d'exportation : option de qualité JPEG" +"Paramètre de la boîte de dialogue d’exportation : option de qualité JPEG" #: misc/org.yorba.shotwell.gschema.xml:394 msgid "maximal size of image" -msgstr "taille d'image maximale" +msgstr "taille d’image maximale" #: misc/org.yorba.shotwell.gschema.xml:395 msgid "Setting in export dialog: maximal size of image" msgstr "" -"Paramètre de la boîte de dialogue d'exportation : taille d'image maximale" +"Paramètre de la boîte de dialogue d’exportation : taille d’image maximale" #: misc/org.yorba.shotwell.gschema.xml:402 msgid "last used publishing service" @@ -827,7 +826,7 @@ msgstr "service de publication par défaut" #: misc/org.yorba.shotwell.gschema.xml:422 msgid "access token" -msgstr "jeton d'accès" +msgstr "jeton d’accès" #: misc/org.yorba.shotwell.gschema.xml:423 msgid "Facebook OAuth token for the currently logged in session, if any" @@ -841,16 +840,16 @@ msgstr "identifiant utilisateur" #: misc/org.yorba.shotwell.gschema.xml:429 msgid "Facebook user i.d. for the currently logged in user, if any" msgstr "" -"Identifiant utilisateur Facebook pour l'utilisateur actuellement connecté, " +"Identifiant utilisateur Facebook pour l’utilisateur actuellement connecté, " "le cas échéant" #: misc/org.yorba.shotwell.gschema.xml:434 msgid "user name" -msgstr "nom d'utilisateur" +msgstr "nom d’utilisateur" #: misc/org.yorba.shotwell.gschema.xml:435 msgid "The name of the currently logged in Facebook user, if any" -msgstr "Le nom de l'utilisateur Facebook actuellement connecté, le cas échéant" +msgstr "Le nom de l’utilisateur Facebook actuellement connecté, le cas échéant" #: misc/org.yorba.shotwell.gschema.xml:440 #: misc/org.yorba.shotwell.gschema.xml:472 @@ -874,17 +873,17 @@ msgstr "" #: misc/org.yorba.shotwell.gschema.xml:454 msgid "OAuth Access Phase Token" -msgstr "Jeton de phase d'accès OAuth" +msgstr "Jeton de phase d’accès OAuth" #: misc/org.yorba.shotwell.gschema.xml:455 msgid "The authorization token for the currently logged in Flickr user, if any" msgstr "" -"Le jeton d'autorisation de l'utilisateur Flickr actuellement connecté, le " +"Le jeton d’autorisation de l’utilisateur Flickr actuellement connecté, le " "cas échéant" #: misc/org.yorba.shotwell.gschema.xml:460 msgid "OAuth Access Phase Token Secret" -msgstr "Élément secret du jeton de phase d'accès OAuth" +msgstr "Élément secret du jeton de phase d’accès OAuth" #: misc/org.yorba.shotwell.gschema.xml:461 msgid "" @@ -892,13 +891,13 @@ msgid "" "token for the currently logged in Flickr user, if any" msgstr "" "Le secret cryptographique utilisé pour signer les requêtes du jeton " -"d'autorisation pour l'utilisateur Flickr actuellement connecté, le cas " +"d’autorisation pour l’utilisateur Flickr actuellement connecté, le cas " "échéant" #: misc/org.yorba.shotwell.gschema.xml:467 msgid "The user name of the currently logged in Flickr user, if any" msgstr "" -"Le nom d'utilisateur de l'utilisateur Flickr actuellement connecté, le cas " +"Le nom d’utilisateur de l’utilisateur Flickr actuellement connecté, le cas " "échéant" #: misc/org.yorba.shotwell.gschema.xml:473 @@ -931,7 +930,7 @@ msgstr "" #: misc/org.yorba.shotwell.gschema.xml:492 #: misc/org.yorba.shotwell.gschema.xml:624 msgid "refresh token" -msgstr "jeton d'actualisation" +msgstr "jeton d’actualisation" #: misc/org.yorba.shotwell.gschema.xml:493 msgid "" @@ -939,7 +938,7 @@ msgid "" "currently logged in user, if any." msgstr "" "Le jeton OAuth utilisé pour actualiser la session Picasa Web Albums pour " -"l'utilisateur actuellement connecté, le cas échéant." +"l’utilisateur actuellement connecté, le cas échéant." #: misc/org.yorba.shotwell.gschema.xml:499 msgid "" @@ -958,7 +957,7 @@ msgstr "dernier album" #: misc/org.yorba.shotwell.gschema.xml:599 msgid "The name of the last album the user published photos to, if any" msgstr "" -"Le nom du dernier album dans lequel l'utilisateur a publié des photos, le " +"Le nom du dernier album dans lequel l’utilisateur a publié des photos, le " "cas échéant" #: misc/org.yorba.shotwell.gschema.xml:511 @@ -979,7 +978,7 @@ msgstr "URL du serveur Piwigo." #: misc/org.yorba.shotwell.gschema.xml:525 msgid "Piwigo username, if logged in." -msgstr "Nom d'utilisateur Piwigo, si connecté." +msgstr "Nom d’utilisateur Piwigo, si connecté." #: misc/org.yorba.shotwell.gschema.xml:530 msgid "password" @@ -1029,7 +1028,7 @@ msgstr "" msgid "" "if title is set and comment unset, use title as comment for uploads to Piwigo" msgstr "" -"si un titre est défini et qu'il n'y a pas de commentaire, utiliser le titre " +"si un titre est défini et qu’il n’y a pas de commentaire, utiliser le titre " "comme commentaire pour les envois vers Piwigo" #: misc/org.yorba.shotwell.gschema.xml:567 @@ -1038,7 +1037,7 @@ msgid "" "the title if title is set and comment unset" msgstr "" "Indique si le commentaire des images envoyées à Piwigo doit être déduit du " -"titre lorsque le titre est défini alors que le commentaire ne l'est pas" +"titre lorsque le titre est défini alors que le commentaire ne l’est pas" #: misc/org.yorba.shotwell.gschema.xml:572 msgid "do not upload tags when uploading to Piwigo" @@ -1049,21 +1048,21 @@ msgid "" "Whether images being uploaded to Piwigo should have their tags removed on " "upload, such that these tags will not appear on the remote Piwigo server." msgstr "" -"Indique si les étiquettes des images sont retirées avant d'envoyer celles-ci " +"Indique si les étiquettes des images sont retirées avant d’envoyer celles-ci " "vers Piwigo pour que ces étiquettes ne figurent pas sur le serveur Piwigo " "distant." #: misc/org.yorba.shotwell.gschema.xml:581 msgid "Gallery3 username" -msgstr "Nom d'utilisateur Gallery3" +msgstr "Nom d’utilisateur Gallery3" #: misc/org.yorba.shotwell.gschema.xml:586 msgid "API key" -msgstr "clé d'API" +msgstr "clé d’API" #: misc/org.yorba.shotwell.gschema.xml:587 msgid "Gallery3 API key" -msgstr "Clé d'API de Gallery3" +msgstr "Clé d’API de Gallery3" #: misc/org.yorba.shotwell.gschema.xml:592 msgid "URL" @@ -1083,22 +1082,22 @@ msgstr "" #: misc/org.yorba.shotwell.gschema.xml:610 msgid "scaling constraint of uploaded picture" -msgstr "contrainte de mise à l'échelle des images envoyées" +msgstr "contrainte de mise à l’échelle des images envoyées" #: misc/org.yorba.shotwell.gschema.xml:611 msgid "The scaling constraint ID of the picture to be uploaded" -msgstr "L'identifiant de contrainte d'échelle de l'image à envoyer" +msgstr "L’identifiant de contrainte d’échelle de l’image à envoyer" #: misc/org.yorba.shotwell.gschema.xml:616 msgid "pixels of the major axis uploaded picture" -msgstr "pixels de l'axe principal des images envoyées" +msgstr "pixels de l’axe principal des images envoyées" #: misc/org.yorba.shotwell.gschema.xml:617 msgid "" "The pixels of the major axis of the picture to be uploaded; used only if " "scaling-constraint-id is an appropriate value" msgstr "" -"Les pixels de l'axe principal des images à envoyer ; utilisé seulement quand " +"Les pixels de l’axe principal des images à envoyer ; utilisé seulement quand " "scaling-constraint-id contient une valeur appropriée" #: misc/org.yorba.shotwell.gschema.xml:625 @@ -1106,12 +1105,12 @@ msgid "" "The OAuth token used to refresh the YouTube session for the currently logged " "in user, if any." msgstr "" -"Le jeton OAuth utilisé pour actualiser la session YouTube pour l'utilisateur " +"Le jeton OAuth utilisé pour actualiser la session YouTube pour l’utilisateur " "actuellement connecté, le cas échéant." #: misc/org.yorba.shotwell.gschema.xml:632 msgid "last used import service" -msgstr "dernier service d'importation utilisé" +msgstr "dernier service d’importation utilisé" #: misc/org.yorba.shotwell.gschema.xml:633 msgid "" @@ -1122,13 +1121,13 @@ msgstr "" #: misc/org.yorba.shotwell.gschema.xml:640 msgid "interpreter state cookie" -msgstr "cookie d'état d'interpréteur" +msgstr "cookie d’état d’interpréteur" #: misc/org.yorba.shotwell.gschema.xml:641 msgid "" "A numeric code that captures the state of the GStreamer plug-in environment" msgstr "" -"Un code numérique qui capture l'état de l'environnement des greffons de " +"Un code numérique qui capture l’état de l’environnement des greffons de " "GStreamer" #: misc/org.yorba.shotwell.gschema.xml:648 @@ -1141,7 +1140,7 @@ msgid "" "printing" msgstr "" "Un code numérique décrivant la disposition des photos sur une page lors de " -"l'impression" +"l’impression" #: misc/org.yorba.shotwell.gschema.xml:654 msgid "content ppi" @@ -1150,7 +1149,7 @@ msgstr "ppp de contenu" #: misc/org.yorba.shotwell.gschema.xml:655 msgid "The number of pixels per inch (ppi) sent to the printer during printing" msgstr "" -"Nombre de pixels par pouce (ppp) envoyé à l'imprimante durant l'impression" +"Nombre de pixels par pouce (ppp) envoyé à l’imprimante durant l’impression" #: misc/org.yorba.shotwell.gschema.xml:660 msgid "content width" @@ -1158,7 +1157,7 @@ msgstr "largeur de contenu" #: misc/org.yorba.shotwell.gschema.xml:661 msgid "The width of the printed emulsion on the page when printing" -msgstr "La largeur de l'émulsion imprimée sur la page durant l'impression" +msgstr "La largeur de l’émulsion imprimée sur la page durant l’impression" #: misc/org.yorba.shotwell.gschema.xml:666 msgid "content height" @@ -1166,7 +1165,7 @@ msgstr "hauteur de contenu" #: misc/org.yorba.shotwell.gschema.xml:667 msgid "The height of the printed emulsion on the page when printing" -msgstr "La hauteur de l'émulsion imprimée sur la page durant l'impression" +msgstr "La hauteur de l’émulsion imprimée sur la page durant l’impression" #: misc/org.yorba.shotwell.gschema.xml:672 msgid "content units" @@ -1177,20 +1176,20 @@ msgid "" "A numeric code representing unit of measure (inches or centimeters) used " "when printing" msgstr "" -"Un code numérique représentant l'unité de mesure (pouces ou centimètres) " -"utilisée lors de l'impression" +"Un code numérique représentant l’unité de mesure (pouces ou centimètres) " +"utilisée lors de l’impression" #: misc/org.yorba.shotwell.gschema.xml:678 msgid "images per page code" -msgstr "code d'images par page" +msgstr "code d’images par page" #: misc/org.yorba.shotwell.gschema.xml:679 msgid "" "A numeric code representing the currently selected images per page mode used " "when printing" msgstr "" -"Un code numérique représentant le mode d'images par page actuellement " -"sélectionné utilisé pour l'impression" +"Un code numérique représentant le mode d’images par page actuellement " +"sélectionné utilisé pour l’impression" #: misc/org.yorba.shotwell.gschema.xml:684 msgid "size selection" @@ -1200,7 +1199,7 @@ msgstr "sélection de taille" msgid "" "The index of the current print size in a pre-defined list of standard sizes" msgstr "" -"L'indice de la taille d'impression actuelle dans une liste prédéfinie de " +"L’indice de la taille d’impression actuelle dans une liste prédéfinie de " "tailles standard" #: misc/org.yorba.shotwell.gschema.xml:690 @@ -1212,8 +1211,8 @@ msgid "" "Determines whether custom print sizes must match the aspect ratio of the " "original photo" msgstr "" -"Détermine si les tailles d'impression personnalisées doivent correspondre " -"aux proportions de la photo d'origine" +"Détermine si les tailles d’impression personnalisées doivent correspondre " +"aux proportions de la photo d’origine" #: misc/org.yorba.shotwell.gschema.xml:696 msgid "print titles" @@ -1223,7 +1222,7 @@ msgstr "imprimer les titres" msgid "" "True if the title of a photo should be printed when the photo is printed, " "false otherwise." -msgstr "Si vrai, le titre des photos est imprimé lors de l'impression." +msgstr "Si vrai, le titre des photos est imprimé lors de l’impression." #: misc/org.yorba.shotwell.gschema.xml:702 msgid "titles font" @@ -1310,11 +1309,11 @@ msgstr "Si vrai, le greffon de publication vers Gallery3 est activé" #: misc/org.yorba.shotwell.gschema.xml:768 msgid "enable F-Spot import plugin" -msgstr "activer le greffon d'importation F-Spot" +msgstr "activer le greffon d’importation F-Spot" #: misc/org.yorba.shotwell.gschema.xml:769 msgid "True if the F-Spot import plugin is enabled, false otherwise" -msgstr "Si vrai, le greffon d'importation F-Spot est activé" +msgstr "Si vrai, le greffon d’importation F-Spot est activé" #: misc/org.yorba.shotwell.gschema.xml:774 msgid "enable slideshow crumble transition" @@ -1416,11 +1415,11 @@ msgid "" "upload photos and publish to your feed. These permissions are required for " "Shotwell Connect to function." msgstr "" -"Vous n'êtes actuellement pas connecté sur Facebook.\n" +"Vous n’êtes actuellement pas connecté sur Facebook.\n" "\n" -"Si vous n'avez pas encore de compte Facebook, vous pouvez en créer un durant " +"Si vous n’avez pas encore de compte Facebook, vous pouvez en créer un durant " "le processus de connexion. Lors de la connexion, Shotwell Connect pourrait " -"vous demander la permission d'envoyer des photos et de les publier sur votre " +"vous demander la permission d’envoyer des photos et de les publier sur votre " "flux de diffusion. Ces permissions sont nécessaires pour que Shotwell " "Connect fonctionne correctement." @@ -1436,53 +1435,31 @@ msgstr "" "Pour continuer à publier sur Facebook, quittez et redémarrez Shotwell, puis " "essayez de publier à nouveau." -#: plugins/authenticator/shotwell/flickr_pin_entry_pane.ui:17 -msgid "" -"Enter the confirmation number which appears after you log into Flickr in " -"your Web browser." -msgstr "" -"Saisissez le numéro de confirmation qui apparaît dans votre navigateur Web " -"après vous être connecté à Flickr." - -#: plugins/authenticator/shotwell/flickr_pin_entry_pane.ui:37 -msgid "Authorization _Number:" -msgstr "_Numéro d'autorisation :" - -#: plugins/authenticator/shotwell/flickr_pin_entry_pane.ui:70 -#: src/Dialogs.vala:128 -msgid "Con_tinue" -msgstr "Pour_suivre" - -#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:187 +#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:17 msgid "" "You are not currently logged into Flickr.\n" "\n" "Click Log in to log into Flickr in your Web browser. You will have to " "authorize Shotwell Connect to link to your Flickr account." msgstr "" -"Vous n'êtes actuellement pas connecté à Flickr.\n" +"Vous n’êtes actuellement pas connecté à Flickr.\n" "\n" "Cliquez sur « Se connecter » pour lancer la connexion dans votre navigateur " "Web. Vous devrez autoriser Shotwell Connect à se lier à votre compte Flickr." -#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:364 +#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:124 msgid "Preparing for login…" msgstr "Préparation de la connexion…" -#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:468 -#: plugins/shotwell-publishing/FlickrPublishing.vala:341 -msgid "" -"A file required for publishing is unavailable. Publishing to Flickr can’t " -"continue." -msgstr "" -"Un fichier requis pour la publication est indisponible. Impossible de " -"continuer la publication vers Flickr." +#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:193 +msgid "Flickr authorization failed" +msgstr "L’autorisation de Flickr a échoué" -#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:481 +#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:200 msgid "Verifying authorization…" -msgstr "Vérification de l'autorisation…" +msgstr "Vérification de l’autorisation…" -#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:118 +#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:137 msgid "" "You have already logged in and out of a Google service during this Shotwell " "session.\n" @@ -1490,26 +1467,26 @@ msgid "" "To continue publishing to Google services, quit and restart Shotwell, then " "try publishing again." msgstr "" -"Vous vous êtes déjà connecté et déconnecté d'un service Google durant cette " +"Vous vous êtes déjà connecté et déconnecté d’un service Google durant cette " "session Shotwell.\n" "\n" "Pour continuer à publier sur les services Google, quittez et redémarrez " "Shotwell, puis essayez à nouveau de publier." -#: plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala:31 +#: plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala:32 msgid "" "You are not currently logged into Picasa Web Albums.\n" "\n" "Click Log in to log into Picasa Web Albums in your Web browser. You will " "have to authorize Shotwell Connect to link to your Picasa Web Albums account." msgstr "" -"Vous n'êtes actuellement pas connecté à Picasa Web Albums.\n" +"Vous n’êtes actuellement pas connecté à Picasa Web Albums.\n" "\n" "Cliquez sur « Se connecter » pour vous connecter à Picasa Web Albums avec " "votre navigateur. Vous devrez autoriser Shotwell Connect à communiquer avec " "votre compte Picasa Web Albums." -#: plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala:34 +#: plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala:35 msgid "" "You are not currently logged into YouTube.\n" "\n" @@ -1517,17 +1494,58 @@ msgid "" "with YouTube to continue. You can set up most accounts by using your browser " "to log into the YouTube site at least once." msgstr "" -"Vous n'êtes actuellement pas connecté à YouTube.\n" +"Vous n’êtes actuellement pas connecté à YouTube.\n" "\n" -"Vous devez déjà avoir un compte Google dont l'accès à YouTube a été activé " +"Vous devez déjà avoir un compte Google dont l’accès à YouTube a été activé " "pour continuer. Vous pouvez activer la plupart des comptes en vous " -"connectant au moins une fois au site de YouTube à l'aide d'un navigateur." +"connectant au moins une fois au site de YouTube à l’aide d’un navigateur." + +#: plugins/authenticator/shotwell/tumblr_authentication_pane.ui:42 +#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:42 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:892 +msgid "_Email address" +msgstr "Adresse él_ectronique" + +#: plugins/authenticator/shotwell/tumblr_authentication_pane.ui:82 +#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:82 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:893 +#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:119 +msgid "_Password" +msgstr "_Mot de passe" + +#: plugins/authenticator/shotwell/tumblr_authentication_pane.ui:104 +#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:120 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:895 +#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:154 +msgid "Log in" +msgstr "Se connecter" + +#: plugins/authenticator/shotwell/TumblrAuthenticator.vala:25 +msgid "Enter the username and password associated with your Tumblr account." +msgstr "" +"Saisissez le nom d’utilisateur et le mot de passe de votre compte Tumblr." + +#: plugins/authenticator/shotwell/TumblrAuthenticator.vala:26 +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1081 +msgid "Username and/or password invalid. Please try again" +msgstr "Nom d’utilisateur et/ou mot de passe non valide. Veuillez réessayer." + +#: plugins/authenticator/shotwell/TumblrAuthenticator.vala:53 +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1117 +msgid "Invalid User Name or Password" +msgstr "Le nom d’utilisateur ou le mot de passe n’est pas valide" + +#: plugins/authenticator/shotwell/TumblrAuthenticator.vala:72 +#: plugins/shotwell-publishing/TumblrPublishing.vala:498 +#, c-format +msgid "Could not load UI: %s" +msgstr "Impossible de charger l’IHM : %s" #: plugins/common/Resources.vala:12 msgid "Visit the Shotwell home page" msgstr "Visiter la page du projet Shotwell" -#: plugins/common/Resources.vala:31 src/AppWindow.vala:604 +#: plugins/common/Resources.vala:31 src/AppWindow.vala:603 msgid "translator-credits" msgstr "" "Gabriel Bousquet \n" @@ -1538,69 +1556,69 @@ msgstr "" "Guillaume Bernard " #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:202 +#: plugins/common/RESTSupport.vala:217 msgid "" "⚫ This website presented identification that belongs to a different website." msgstr "" "⚫ Ce site Web a présenté une identification appartenant à un autre site." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:207 +#: plugins/common/RESTSupport.vala:222 msgid "" "⚫ This website’s identification is too old to trust. Check the date on your " "computer’s calendar." msgstr "" -"⚫ L'identification de ce site Web est trop ancienne. Vérifiez la date sur " -"l'agenda de votre ordinateur." +"⚫ L’identification de ce site Web est trop ancienne. Vérifiez la date sur " +"l’agenda de votre ordinateur." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:212 +#: plugins/common/RESTSupport.vala:227 msgid "" "⚫ This website’s identification was not issued by a trusted organization." msgstr "" -"⚫ L'identification de ce site Web n'a pas été émise par une organisation " +"⚫ L’identification de ce site Web n’a pas été émise par une organisation " "certifiée." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:217 +#: plugins/common/RESTSupport.vala:232 msgid "" "⚫ This website’s identification could not be processed. It may be corrupted." msgstr "" -"⚫ L'identification de ce site Web n'a pas pu être examinée. Elle pourrait " +"⚫ L’identification de ce site Web n’a pas pu être examinée. Elle pourrait " "être endommagée." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:222 +#: plugins/common/RESTSupport.vala:237 msgid "" "⚫ This website’s identification has been revoked by the trusted organization " "that issued it." msgstr "" -"⚫ L'identification de ce site Web a été révoquée par l'organisation " -"certifiée qui l'a émise." +"⚫ L’identification de ce site Web a été révoquée par l’organisation " +"certifiée qui l’a émise." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:227 +#: plugins/common/RESTSupport.vala:242 msgid "" "⚫ This website’s identification cannot be trusted because it uses very weak " "encryption." msgstr "" -"⚫ L'identification de ce site Web n'est pas fiable car elle utilise un " +"⚫ L’identification de ce site Web n’est pas fiable car elle utilise un " "chiffrement très faible." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:232 +#: plugins/common/RESTSupport.vala:247 msgid "" "⚫ This website’s identification is only valid for future dates. Check the " "date on your computer’s calendar." msgstr "" -"⚫ L'identification de ce site Web n'est valide que pour le futur. Vérifiez " -"la date sur l'agenda de votre ordinateur." +"⚫ L’identification de ce site Web n’est valide que pour le futur. Vérifiez " +"la date sur l’agenda de votre ordinateur." -#: plugins/common/RESTSupport.vala:509 -#: plugins/shotwell-publishing/TumblrPublishing.vala:959 +#: plugins/common/RESTSupport.vala:524 +#: plugins/shotwell-publishing/TumblrPublishing.vala:623 msgid "A temporary file needed for publishing is unavailable" msgstr "" -"Un fichier temporaire nécessaire pour la publication n'est pas disponible" +"Un fichier temporaire nécessaire pour la publication n’est pas disponible" #: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:28 msgid "_Gallery3 URL:" @@ -1619,7 +1637,7 @@ msgid "Go _Back" msgstr "_Revenir en arrière" #: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:125 -#: ui/shotwell.ui:363 +#: ui/shotwell.ui:76 msgid "_Log in" msgstr "_Se connecter" @@ -1642,19 +1660,19 @@ msgstr "Un _nouvel album :" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:86 msgid "_Remove location, tag and camera-identifying data before uploading" msgstr "" -"_Supprimer l'emplacement, les étiquettes et autres informations permettant " -"d'identifier l'appareil avant d'envoyer les photos" +"_Supprimer l’emplacement, les étiquettes et autres informations permettant " +"d’identifier l’appareil avant d’envoyer les photos" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:108 msgid "Scaling constraint:" -msgstr "Contrainte d'échelle :" +msgstr "Contrainte d’échelle :" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:124 msgid "pixels" msgstr "pixels" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:158 -#: plugins/shotwell-publishing/FlickrPublishing.vala:880 +#: plugins/shotwell-publishing/FlickrPublishing.vala:687 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1306 #: src/Dimensions.vala:17 msgid "Original size" @@ -1662,8 +1680,8 @@ msgstr "Taille originale" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:159 #: src/Dimensions.vala:20 -msgid "Width or height" -msgstr "Largeur ou hauteur" +msgid "Longest edge" +msgstr "Bord le plus long" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:203 #: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:39 @@ -1686,7 +1704,7 @@ msgstr "Se _déconnecter" #: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:156 #: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:121 #: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:115 -#: src/CollectionPage.vala:82 src/PhotoPage.vala:2469 +#: src/CollectionPage.vala:82 src/PhotoPage.vala:2492 msgid "_Publish" msgstr "_Publier" @@ -1701,7 +1719,7 @@ msgid "" "You must have already signed up for a Gallery3 account to complete the login " "process." msgstr "" -"Vous n'êtes actuellement pas connecté à votre Gallery.\n" +"Vous n’êtes actuellement pas connecté à votre Gallery.\n" "\n" "Vous devez déjà avoir un compte Gallery3 pour continuer la procédure de " "connexion." @@ -1754,7 +1772,7 @@ msgid "" "Enter the URL for your Gallery3 site and the username and password (or API " "key) for your Gallery3 account." msgstr "" -"Entrez l'URL pour votre site Gallery3 et les identifiants (ou la clé API) " +"Entrez l’URL pour votre site Gallery3 et les identifiants (ou la clé API) " "pour votre compte Gallery3." #: plugins/shotwell-publishing-extras/GalleryConnector.vala:1818 @@ -1762,8 +1780,8 @@ msgid "" "The username and password or API key were incorrect. To try again, re-enter " "your username and password below." msgstr "" -"Le nom d'utilisateur, le mot de passe ou votre clé API est incorrect. Pour " -"ré-essayer entrez à nouveau votre mot de passe et nom d'utilisateur ci-" +"Le nom d’utilisateur, le mot de passe ou votre clé API est incorrect. Pour " +"ré-essayer entrez à nouveau votre mot de passe et nom d’utilisateur ci-" "dessous." #: plugins/shotwell-publishing-extras/GalleryConnector.vala:1819 @@ -1772,9 +1790,9 @@ msgid "" "instance. Please make sure you typed it correctly and it does not have any " "trailing components (e.g., index.php)." msgstr "" -"L'URL saisie ne semble pas être le répertoire principal d'une instance " -"Gallery3. Assurez-vous de l'avoir renseignée correctement et qu'elle n'ait " -"pas d'autres composants (ex : index.php)." +"L’URL saisie ne semble pas être le répertoire principal d’une instance " +"Gallery3. Assurez-vous de l’avoir renseignée correctement et qu’elle n’ait " +"pas d’autres composants (ex : index.php)." #: plugins/shotwell-publishing-extras/GalleryConnector.vala:1872 msgid "Unrecognized User" @@ -1784,31 +1802,11 @@ msgstr "Utilisateur non reconnu" msgid " Site Not Found" msgstr " Site non trouvé" -#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:42 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:892 -#: plugins/shotwell-publishing/tumblr_authentication_pane.ui:42 -msgid "_Email address" -msgstr "Adresse él_ectronique" - -#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:82 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:893 -#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:119 -#: plugins/shotwell-publishing/tumblr_authentication_pane.ui:82 -msgid "_Password" -msgstr "_Mot de passe" - #: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:100 #: plugins/shotwell-publishing-extras/RajcePublishing.vala:894 msgid "_Remember" msgstr "_Se souvenir de moi" -#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:120 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:895 -#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:154 -#: plugins/shotwell-publishing/tumblr_authentication_pane.ui:104 -msgid "Log in" -msgstr "Se connecter" - #: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:104 #: plugins/shotwell-publishing-extras/RajcePublishing.vala:1015 msgid "An _existing album:" @@ -1822,12 +1820,12 @@ msgstr "Un _nouvel album appelé :" #: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:141 #: plugins/shotwell-publishing-extras/RajcePublishing.vala:1006 msgid "_Hide album" -msgstr "_Cacher l'album" +msgstr "_Cacher l’album" #: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:156 #: plugins/shotwell-publishing-extras/RajcePublishing.vala:1017 msgid "Open target _album in browser" -msgstr "Ouverture de l'_album cible dans le navigateur" +msgstr "Ouverture de l’_album cible dans le navigateur" #: plugins/shotwell-publishing-extras/RajcePublishing.vala:40 msgid "Copyright © 2013 rajce.net" @@ -1836,13 +1834,13 @@ msgstr "Copyright © 2013 rajce.net" #: plugins/shotwell-publishing-extras/RajcePublishing.vala:744 msgid "An error message occurred when publishing to Rajce. Please try again." msgstr "" -"Un message d'erreur est apparu lors de la publication sur Rajce. Veuillez " +"Un message d’erreur est apparu lors de la publication sur Rajce. Veuillez " "réessayer." #: plugins/shotwell-publishing-extras/RajcePublishing.vala:833 msgid "Enter email and password associated with your Rajce account." msgstr "" -"Saisissez le nom d'utilisateur et le mot de passe de votre compte Racje." +"Saisissez le nom d’utilisateur et le mot de passe de votre compte Racje." #: plugins/shotwell-publishing-extras/RajcePublishing.vala:834 msgid "Invalid email and/or password. Please try again" @@ -1851,7 +1849,7 @@ msgstr "Adresse de courriel et/ou mot de passe non valide. Veuillez réessayer." #: plugins/shotwell-publishing-extras/RajcePublishing.vala:865 msgid "Invalid User Email or Password" msgstr "" -"L'adresse de courriel de l'utilisateur ou le mot de passe n'est pas valide." +"L’adresse de courriel de l’utilisateur ou le mot de passe n’est pas valide." #: plugins/shotwell-publishing-extras/RajcePublishing.vala:1013 #, c-format @@ -1878,7 +1876,7 @@ msgstr "Visitez le site Web Yandex.Fotki" #: plugins/shotwell-publishing-extras/YandexPublishing.vala:609 msgid "You are not currently logged into Yandex.Fotki." -msgstr "Vous n'êtes actuellement pas connecté à Yandex.Fotki." +msgstr "Vous n’êtes actuellement pas connecté à Yandex.Fotki." #: plugins/shotwell-publishing-extras/yandex_publish_model.ui:12 msgid "Public" @@ -1900,7 +1898,7 @@ msgstr "_Albums (ou créer un nouveau) :" #: plugins/shotwell-publishing-extras/yandex_publish_model.ui:85 msgid "Access _type:" -msgstr "_Type d'accès :" +msgstr "_Type d’accès :" #: plugins/shotwell-publishing-extras/yandex_publish_model.ui:106 msgid "Disable _comments" @@ -1921,7 +1919,7 @@ msgstr "Créer un _nouvel album nommé :" #: plugins/shotwell-publishing/facebook_publishing_options_pane.ui:100 #: plugins/shotwell-publishing/FacebookPublishing.vala:725 msgid "Upload _size:" -msgstr "_Taille d'envoi :" +msgstr "_Taille d’envoi :" #: plugins/shotwell-publishing/facebook_publishing_options_pane.ui:125 msgid "Videos and new photo albums _visible to:" @@ -1934,8 +1932,8 @@ msgstr "Vidéos et nouveaux albums photos _visibles pour :" msgid "" "_Remove location, camera, and other identifying information before uploading" msgstr "" -"_Supprimer l'emplacement, l'appareil et d'autres informations " -"d'identification avant d'envoyer les photos" +"_Supprimer l’emplacement, l’appareil et d’autres informations " +"d’identification avant d’envoyer les photos" #: plugins/shotwell-publishing/FacebookPublishing.vala:33 #: plugins/shotwell-publishing/FlickrPublishing.vala:33 @@ -1961,7 +1959,7 @@ msgstr "Grand (2048 pixels)" #: plugins/shotwell-publishing/FacebookPublishing.vala:314 msgid "Creating album…" -msgstr "Création d'un album…" +msgstr "Création d’un album…" #: plugins/shotwell-publishing/FacebookPublishing.vala:340 msgid "" @@ -1985,12 +1983,12 @@ msgid "Where would you like to publish the selected photos?" msgstr "Où voulez-vous publier les photos sélectionnées ?" #: plugins/shotwell-publishing/FacebookPublishing.vala:887 -#: plugins/shotwell-publishing/FlickrPublishing.vala:858 +#: plugins/shotwell-publishing/FlickrPublishing.vala:665 msgid "Just me" msgstr "Seulement moi" #: plugins/shotwell-publishing/FacebookPublishing.vala:889 -#: plugins/shotwell-publishing/FlickrPublishing.vala:854 +#: plugins/shotwell-publishing/FlickrPublishing.vala:661 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1290 msgid "Everyone" msgstr "Tout le monde" @@ -2000,7 +1998,15 @@ msgstr "Tout le monde" msgid "Photo _size:" msgstr "_Taille de la photo :" -#: plugins/shotwell-publishing/FlickrPublishing.vala:800 +#: plugins/shotwell-publishing/FlickrPublishing.vala:340 +msgid "" +"A file required for publishing is unavailable. Publishing to Flickr can’t " +"continue." +msgstr "" +"Un fichier requis pour la publication est indisponible. Impossible de " +"continuer la publication vers Flickr." + +#: plugins/shotwell-publishing/FlickrPublishing.vala:607 #, c-format msgid "" "You are logged into Flickr as %s.\n" @@ -2009,7 +2015,7 @@ msgstr "" "Vous êtes connecté sur Flickr en tant que %s.\n" "\n" -#: plugins/shotwell-publishing/FlickrPublishing.vala:802 +#: plugins/shotwell-publishing/FlickrPublishing.vala:609 #, c-format msgid "" "Your free Flickr account limits how much data you can upload per month.\n" @@ -2017,56 +2023,56 @@ msgid "" msgstr "" "Votre compte Flickr gratuit limite la quantité de données que vous pouvez " "envoyer par mois.\n" -"Ce mois-ci, vous pouvez encore envoyer %s avant d'atteindre votre quota." +"Ce mois-ci, vous pouvez encore envoyer %s avant d’atteindre votre quota." -#: plugins/shotwell-publishing/FlickrPublishing.vala:804 +#: plugins/shotwell-publishing/FlickrPublishing.vala:611 msgid "Your Flickr Pro account entitles you to unlimited uploads." msgstr "" -"Votre compte Fickr Pro vous donne droit d'envoyer autant de photos que vous " +"Votre compte Fickr Pro vous donne droit d’envoyer autant de photos que vous " "le voulez." -#: plugins/shotwell-publishing/FlickrPublishing.vala:809 +#: plugins/shotwell-publishing/FlickrPublishing.vala:616 msgid "Photos _visible to:" msgstr "Photos _visibles pour :" -#: plugins/shotwell-publishing/FlickrPublishing.vala:811 +#: plugins/shotwell-publishing/FlickrPublishing.vala:618 msgid "Videos _visible to:" msgstr "Vidéos _visibles pour :" -#: plugins/shotwell-publishing/FlickrPublishing.vala:814 +#: plugins/shotwell-publishing/FlickrPublishing.vala:621 msgid "Photos and videos _visible to:" msgstr "Photos et vidéos _visibles pour :" -#: plugins/shotwell-publishing/FlickrPublishing.vala:855 +#: plugins/shotwell-publishing/FlickrPublishing.vala:662 msgid "Friends & family only" msgstr "Seulement les amis et la famille" -#: plugins/shotwell-publishing/FlickrPublishing.vala:856 +#: plugins/shotwell-publishing/FlickrPublishing.vala:663 msgid "Family only" msgstr "Uniquement la famille" -#: plugins/shotwell-publishing/FlickrPublishing.vala:857 +#: plugins/shotwell-publishing/FlickrPublishing.vala:664 msgid "Friends only" msgstr "Uniquement les amis" -#: plugins/shotwell-publishing/FlickrPublishing.vala:876 +#: plugins/shotwell-publishing/FlickrPublishing.vala:683 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1302 -#: plugins/shotwell-publishing/TumblrPublishing.vala:105 +#: plugins/shotwell-publishing/TumblrPublishing.vala:103 msgid "500 × 375 pixels" msgstr "500 × 375 pixels" -#: plugins/shotwell-publishing/FlickrPublishing.vala:877 +#: plugins/shotwell-publishing/FlickrPublishing.vala:684 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1303 -#: plugins/shotwell-publishing/TumblrPublishing.vala:106 +#: plugins/shotwell-publishing/TumblrPublishing.vala:104 msgid "1024 × 768 pixels" msgstr "1024 × 768 pixels" -#: plugins/shotwell-publishing/FlickrPublishing.vala:878 +#: plugins/shotwell-publishing/FlickrPublishing.vala:685 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1304 msgid "2048 × 1536 pixels" msgstr "2048 × 1536 pixels" -#: plugins/shotwell-publishing/FlickrPublishing.vala:879 +#: plugins/shotwell-publishing/FlickrPublishing.vala:686 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1305 msgid "4096 × 3072 pixels" msgstr "4096 × 3072 pixels" @@ -2128,7 +2134,7 @@ msgstr "_URL de votre photothèque Piwigo" #: plugins/shotwell-publishing/piwigo_authentication_pane.ui:94 msgid "User _name" -msgstr "_Nom d'utilisateur" +msgstr "_Nom d’utilisateur" #: plugins/shotwell-publishing/piwigo_authentication_pane.ui:133 msgid "Remember Password" @@ -2148,7 +2154,7 @@ msgstr "dans la catégorie" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:155 msgid "Album comment" -msgstr "Commentaire d'album" +msgstr "Commentaire d’album" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:167 msgid "Photos will be _visible by" @@ -2161,7 +2167,7 @@ msgstr "Taille de la photo" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:219 msgid "_If a title is set and comment unset, use title as comment" msgstr "" -"_Si un titre est défini et qu'il n'y a pas de commentaire, utiliser le titre " +"_Si un titre est défini et qu’il n’y a pas de commentaire, utiliser le titre " "comme commentaire" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:235 @@ -2173,7 +2179,7 @@ msgid "Logout" msgstr "Déconnexion" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:268 -#: src/Resources.vala:296 ui/collection.ui:192 +#: src/Resources.vala:266 ui/collection.ui:192 msgid "Publish" msgstr "Publier" @@ -2185,7 +2191,7 @@ msgstr "Album %s en cours de création…" #: plugins/shotwell-publishing/PiwigoPublishing.vala:946 msgid "An error message occurred when publishing to Piwigo. Please try again." msgstr "" -"Un message d'erreur est apparu lors de la publication sur Piwigo. Veuillez " +"Un message d’erreur est apparu lors de la publication sur Piwigo. Veuillez " "réessayer." #. %s is the host name that we tried to connect to @@ -2196,7 +2202,7 @@ msgid "" "steal or alter information going to or from this site (for example, private " "messages, credit card information, or passwords)." msgstr "" -"Cela n'a pas l'air d'être le vrai %s. Il se pourrait que des " +"Cela n’a pas l’air d’être le vrai %s. Il se pourrait que des " "attaquants essaient de voler ou de modifier des informations vers ou en " "provenance de ce site (par exemple, des messages privés, des informations de " "carte de crédit ou des mots de passe)." @@ -2207,7 +2213,8 @@ msgid "Certificate of %s" msgstr "Certificat de %s" #: plugins/shotwell-publishing/PiwigoPublishing.vala:1051 -#: src/Resources.vala:167 ui/slideshow_settings.ui:49 +#: src/Resources.vala:137 ui/multitextentrydialog.ui:40 +#: ui/slideshow_settings.ui:52 msgid "_OK" msgstr "_Valider" @@ -2216,7 +2223,7 @@ msgid "" "Enter the URL of your Piwigo photo library as well as the username and " "password associated with your Piwigo account for that library." msgstr "" -"Saisissez l'URL de la photothèque Piwigo ainsi que le nom d'utilisateur et " +"Saisissez l’URL de la photothèque Piwigo ainsi que le nom d’utilisateur et " "le mot de passe associés à votre compte Piwigo pour cette photothèque." #: plugins/shotwell-publishing/PiwigoPublishing.vala:1080 @@ -2224,22 +2231,12 @@ msgid "" "Shotwell cannot contact your Piwigo photo library. Please verify the URL you " "entered" msgstr "" -"Shotwell n'arrive pas à atteindre votre photothèque Piwigo. Veuillez " -"vérifier l'URL saisie" - -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1081 -#: plugins/shotwell-publishing/TumblrPublishing.vala:588 -msgid "Username and/or password invalid. Please try again" -msgstr "Nom d'utilisateur et/ou mot de passe non valide. Veuillez réessayer." +"Shotwell n’arrive pas à atteindre votre photothèque Piwigo. Veuillez " +"vérifier l’URL saisie" #: plugins/shotwell-publishing/PiwigoPublishing.vala:1112 msgid "Invalid URL" -msgstr "L'URL n'est pas valide." - -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1117 -#: plugins/shotwell-publishing/TumblrPublishing.vala:615 -msgid "Invalid User Name or Password" -msgstr "Le nom d'utilisateur ou le mot de passe n'est pas valide." +msgstr "L’URL n’est pas valide." #: plugins/shotwell-publishing/PiwigoPublishing.vala:1291 msgid "Admins, Family, Friends, Contacts" @@ -2259,7 +2256,7 @@ msgstr "Administrateurs" #: plugins/shotwell-publishing/piwigo_ssl_failure_pane.ui:21 msgid "This connection is not secure" -msgstr "Cette connexion n'est pas sûre" +msgstr "Cette connexion n’est pas sûre" #: plugins/shotwell-publishing/piwigo_ssl_failure_pane.ui:75 msgid "Show the certificate…" @@ -2277,40 +2274,22 @@ msgstr "Services de publication principaux" msgid "Blogs:" msgstr "Blogs :" -#: plugins/shotwell-publishing/TumblrPublishing.vala:36 +#: plugins/shotwell-publishing/TumblrPublishing.vala:35 msgid "Copyright 2012 BJA Electronics" msgstr "Copyright 2012 BJA Electronics" -#: plugins/shotwell-publishing/TumblrPublishing.vala:107 +#: plugins/shotwell-publishing/TumblrPublishing.vala:105 msgid "1280 × 853 pixels" msgstr "1280 × 853 pixels" -#: plugins/shotwell-publishing/TumblrPublishing.vala:311 -#: plugins/shotwell-publishing/TumblrPublishing.vala:321 -#, c-format -msgid "“%s” isn’t a valid response to an OAuth authentication request" -msgstr "" -"« %s » n'est pas une réponse valide à une demande d'authentification OAuth" - -#: plugins/shotwell-publishing/TumblrPublishing.vala:559 +#: plugins/shotwell-publishing/TumblrPublishing.vala:407 msgid "" "TumblrPublisher: start( ): can’t start; this publisher is not restartable." msgstr "" -"TumblrPublisher: start( ): impossible de démarrer ; cette publication n'est " +"TumblrPublisher: start( ): impossible de démarrer ; cette publication n’est " "pas redémarrable." -#: plugins/shotwell-publishing/TumblrPublishing.vala:587 -msgid "Enter the username and password associated with your Tumblr account." -msgstr "" -"Saisissez le nom d'utilisateur et le mot de passe de votre compte Tumblr." - -#: plugins/shotwell-publishing/TumblrPublishing.vala:635 -#: plugins/shotwell-publishing/TumblrPublishing.vala:753 -#, c-format -msgid "Could not load UI: %s" -msgstr "Impossible de charger l'IHM : %s" - -#: plugins/shotwell-publishing/TumblrPublishing.vala:735 +#: plugins/shotwell-publishing/TumblrPublishing.vala:480 #, c-format msgid "" "You are logged into Tumblr as %s.\n" @@ -2433,26 +2412,28 @@ msgstr "Impossible de rendre le dossier %s accessible en écriture : %s" #: src/AppWindow.vala:47 msgid "Pin Toolbar" -msgstr "Fixer la barre d'outils" +msgstr "Fixer la barre d’outils" #: src/AppWindow.vala:48 msgid "Pin the toolbar open" -msgstr "Fixe la barre d'outils visible" +msgstr "Fixe la barre d’outils visible" #: src/AppWindow.vala:53 msgid "Leave fullscreen" msgstr "Quitte le mode plein écran" -#: src/AppWindow.vala:531 src/AppWindow.vala:552 src/AppWindow.vala:569 -#: src/data_imports/DataImportsUI.vala:301 -#: src/data_imports/DataImportsUI.vala:419 src/Dialogs.vala:20 -#: src/Dialogs.vala:28 src/Dialogs.vala:1420 src/Dialogs.vala:1443 -#: src/publishing/PublishingUI.vala:303 src/publishing/PublishingUI.vala:527 -#: src/Resources.vala:158 ui/slideshow_settings.ui:35 +#: src/AppWindow.vala:530 src/AppWindow.vala:551 src/AppWindow.vala:568 +#: src/data_imports/DataImportsUI.vala:302 +#: src/data_imports/DataImportsUI.vala:420 src/Dialogs.vala:20 +#: src/Dialogs.vala:28 src/Dialogs.vala:58 src/Dialogs.vala:766 +#: src/Dialogs.vala:789 src/publishing/PublishingUI.vala:305 +#: src/publishing/PublishingUI.vala:529 src/Resources.vala:128 +#: ui/multitextentrydialog.ui:25 ui/slideshow_settings.ui:38 +#: ui/textentrydialog.ui:19 msgid "_Cancel" msgstr "_Annuler" -#: src/AppWindow.vala:579 +#: src/AppWindow.vala:578 #, c-format msgid "" "A fatal error occurred when accessing Shotwell’s library. Shotwell cannot " @@ -2460,29 +2441,29 @@ msgid "" "\n" "%s" msgstr "" -"Une erreur fatale est survenue lors de l'accès à la photothèque de Shotwell. " +"Une erreur fatale est survenue lors de l’accès à la photothèque de Shotwell. " "Shotwell ne peut pas poursuivre.\n" "\n" "%s" -#: src/AppWindow.vala:600 +#: src/AppWindow.vala:599 msgid "Visit the Shotwell web site" msgstr "Visiter le site Web du projet Shotwell" -#: src/AppWindow.vala:613 +#: src/AppWindow.vala:612 #, c-format msgid "Unable to display help: %s" -msgstr "Impossible d'afficher l'aide : %s" +msgstr "Impossible d’afficher l’aide : %s" -#: src/AppWindow.vala:621 +#: src/AppWindow.vala:620 #, c-format msgid "Unable to navigate to bug database: %s" msgstr "Impossible de parcourir la base de donnée des anomalies : %s" -#: src/AppWindow.vala:629 +#: src/AppWindow.vala:628 #, c-format msgid "Unable to display FAQ: %s" -msgstr "Impossible d'afficher la FAQ : %s" +msgstr "Impossible d’afficher la FAQ : %s" #: src/BatchImport.vala:26 msgid "Success" @@ -2502,11 +2483,11 @@ msgstr "Erreur de la base de données" #: src/BatchImport.vala:38 msgid "User aborted import" -msgstr "L'utilisateur a interrompu l'importation" +msgstr "L’utilisateur a interrompu l’importation" #: src/BatchImport.vala:41 msgid "Not a file" -msgstr "Ce n'est pas un fichier" +msgstr "Ce n’est pas un fichier" #: src/BatchImport.vala:44 msgid "File already exists in database" @@ -2518,7 +2499,7 @@ msgstr "Format de fichier non pris en charge" #: src/BatchImport.vala:50 msgid "Not an image file" -msgstr "Ce n'est pas un fichier image" +msgstr "Ce n’est pas un fichier image" #: src/BatchImport.vala:53 msgid "Disk failure" @@ -2530,11 +2511,11 @@ msgstr "Disque plein" #: src/BatchImport.vala:59 msgid "Camera error" -msgstr "Erreur de l'appareil photo" +msgstr "Erreur de l’appareil photo" #: src/BatchImport.vala:62 msgid "File write error" -msgstr "Erreur d'écriture de fichier" +msgstr "Erreur d’écriture de fichier" #: src/BatchImport.vala:65 msgid "Corrupt image file" @@ -2543,20 +2524,30 @@ msgstr "Fichier image corrompu" #: src/BatchImport.vala:68 #, c-format msgid "Imported failed (%d)" -msgstr "Échec de l'importation (%d)" +msgstr "Échec de l’importation (%d)" -#: src/camera/Branch.vala:85 +#: src/camera/CameraBranch.vala:85 msgid "Cameras" msgstr "Appareils photos" -#: src/camera/Branch.vala:99 src/camera/ImportPage.vala:718 -#: src/camera/ImportPage.vala:734 src/photos/RawSupport.vala:316 -#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/media.ui:361 -#: ui/photo_context.ui:96 ui/photo.ui:351 ui/tags.ui:361 +#: src/camera/CameraBranch.vala:85 +msgid "List of all discovered camera devices" +msgstr "Liste de tous les appareils photos trouvés" + +#: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:711 +#: src/camera/ImportPage.vala:727 src/photos/RawSupport.vala:311 +#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/faces.ui:361 +#: ui/media.ui:361 ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 msgid "Camera" msgstr "Appareil photo" -#: src/camera/ImportPage.vala:311 src/Properties.vala:230 +#. Translators: First %s is the name of camera as gotten from GPhoto, second is the GVolume name, e.g. Mass storage camera (510MB volume) +#: src/camera/CameraTable.vala:367 +#, c-format +msgid "%s (%s)" +msgstr "%s (%s)" + +#: src/camera/ImportPage.vala:311 src/Properties.vala:233 msgid "RAW+JPEG" msgstr "RAW+JPEG" @@ -2564,161 +2555,165 @@ msgstr "RAW+JPEG" msgid "" "Unable to unmount camera. Try unmounting the camera from the file manager." msgstr "" -"Impossible de démonter l'appareil photo. Essayez de démonter l'appareil " +"Impossible de démonter l’appareil photo. Essayez de démonter l’appareil " "photo à partir du gestionnaire de fichiers." #. hide duplicates checkbox -#: src/camera/ImportPage.vala:783 +#: src/camera/ImportPage.vala:776 msgid "Hide photos already imported" msgstr "Masquer les photos déjà importées" -#: src/camera/ImportPage.vala:784 +#: src/camera/ImportPage.vala:777 msgid "Only display photos that have not been imported" -msgstr "Montre seulement les photos qui n'ont pas déjà été importées" +msgstr "Montre seulement les photos qui n’ont pas déjà été importées" -#: src/camera/ImportPage.vala:823 ui/import.ui:13 ui/import.ui:210 +#: src/camera/ImportPage.vala:816 ui/import.ui:13 ui/import.ui:210 msgid "Import _Selected" msgstr "Importer la _sélection" -#: src/camera/ImportPage.vala:833 ui/import.ui:17 ui/import.ui:214 +#: src/camera/ImportPage.vala:826 ui/import.ui:17 ui/import.ui:214 msgid "Import _All" msgstr "_Tout importer" -#: src/camera/ImportPage.vala:857 +#: src/camera/ImportPage.vala:850 msgid "The camera seems to be empty. No photos/videos found to import" msgstr "" -"L'appareil photo semble être vide. Aucune photo ou vidéo trouvée pour " -"l'importation" +"L’appareil photo semble être vide. Aucune photo ou vidéo trouvée pour " +"l’importation" -#: src/camera/ImportPage.vala:861 +#: src/camera/ImportPage.vala:854 msgid "No new photos/videos found on camera" -msgstr "Aucune photo ou vidéo trouvée sur l'appareil" +msgstr "Aucune photo ou vidéo trouvée sur l’appareil" #. it's mounted, offer to unmount for the user -#: src/camera/ImportPage.vala:1021 +#: src/camera/ImportPage.vala:1025 msgid "" "Shotwell needs to unmount the camera from the filesystem in order to access " "it. Continue?" msgstr "" -"Shotwell doit démonter l'appareil photo du système de fichiers pour pouvoir " +"Shotwell doit démonter l’appareil photo du système de fichiers pour pouvoir " "y accéder. Poursuivre ?" -#: src/camera/ImportPage.vala:1027 +#: src/camera/ImportPage.vala:1031 msgid "_Unmount" msgstr "_Démonter" -#: src/camera/ImportPage.vala:1032 +#: src/camera/ImportPage.vala:1036 msgid "Please unmount the camera." -msgstr "Veuillez démonter l'appareil photo." +msgstr "Veuillez démonter l’appareil photo." -#: src/camera/ImportPage.vala:1037 +#: src/camera/ImportPage.vala:1041 msgid "" "The camera is locked by another application. Shotwell can only access the " "camera when it’s unlocked. Please close any other application using the " "camera and try again." msgstr "" -"L'appareil photo est verrouillé par une autre application. Shotwell ne peut " -"accéder à l'appareil photo que lorsqu'il est déverrouillé. Veuillez fermer " -"toute autre application utilisant l'appareil photo puis réessayez." +"L’appareil photo est verrouillé par une autre application. Shotwell ne peut " +"accéder à l’appareil photo que lorsqu’il est déverrouillé. Veuillez fermer " +"toute autre application utilisant l’appareil photo puis réessayez." -#: src/camera/ImportPage.vala:1047 +#: src/camera/ImportPage.vala:1051 msgid "Please close any other application using the camera." -msgstr "Veuillez fermer toute autre application utilisant l'appareil photo." +msgstr "Veuillez fermer toute autre application utilisant l’appareil photo." -#: src/camera/ImportPage.vala:1052 +#: src/camera/ImportPage.vala:1056 #, c-format msgid "" "Unable to fetch previews from the camera:\n" "%s" msgstr "" -"Impossible de récupérer les aperçus depuis l'appareil photo :\n" +"Impossible de récupérer les aperçus depuis l’appareil photo :\n" "%s" -#: src/camera/ImportPage.vala:1069 +#: src/camera/ImportPage.vala:1073 msgid "Unmounting…" msgstr "Démontage…" -#: src/camera/ImportPage.vala:1160 +#: src/camera/ImportPage.vala:1166 +msgid "Connecting to camera, please wait…" +msgstr "Connexion à l’appareil photo, veuillez patienter…" + +#: src/camera/ImportPage.vala:1198 msgid "Starting import, please wait…" -msgstr "Démarrage de l'importation, veuillez patienter…" +msgstr "Démarrage de l’importation, veuillez patienter…" -#: src/camera/ImportPage.vala:1177 +#: src/camera/ImportPage.vala:1204 msgid "Fetching photo information" msgstr "Récupération des informations sur les photos" -#: src/camera/ImportPage.vala:1535 +#: src/camera/ImportPage.vala:1563 #, c-format msgid "Fetching preview for %s" -msgstr "Récupération de l'aperçu de %s" +msgstr "Récupération de l’aperçu de %s" -#: src/camera/ImportPage.vala:1651 +#: src/camera/ImportPage.vala:1671 #, c-format msgid "Unable to lock camera: %s" -msgstr "Impossible de verrouiller l'appareil photo : %s" +msgstr "Impossible de verrouiller l’appareil photo : %s" -#: src/camera/ImportPage.vala:1736 +#: src/camera/ImportPage.vala:1756 #, c-format msgid "Delete this photo from camera?" msgid_plural "Delete these %d photos from camera?" -msgstr[0] "Supprimer cette photo de l'appareil photo ?" -msgstr[1] "Supprimer ces %d photos de l'appareil photo ?" +msgstr[0] "Supprimer cette photo de l’appareil photo ?" +msgstr[1] "Supprimer ces %d photos de l’appareil photo ?" -#: src/camera/ImportPage.vala:1739 +#: src/camera/ImportPage.vala:1759 #, c-format msgid "Delete this video from camera?" msgid_plural "Delete these %d videos from camera?" -msgstr[0] "Supprimer cette vidéo de l'appareil photo ?" -msgstr[1] "Supprimer ces %d vidéos de l'appareil photo ?" +msgstr[0] "Supprimer cette vidéo de l’appareil photo ?" +msgstr[1] "Supprimer ces %d vidéos de l’appareil photo ?" -#: src/camera/ImportPage.vala:1742 +#: src/camera/ImportPage.vala:1762 #, c-format msgid "Delete this photo/video from camera?" msgid_plural "Delete these %d photos/videos from camera?" -msgstr[0] "Supprimer cette photo/vidéo de l'appareil photo ?" -msgstr[1] "Supprimer ces %d photos/vidéos de l'appareil photo ?" +msgstr[0] "Supprimer cette photo/vidéo de l’appareil photo ?" +msgstr[1] "Supprimer ces %d photos/vidéos de l’appareil photo ?" -#: src/camera/ImportPage.vala:1745 +#: src/camera/ImportPage.vala:1765 #, c-format msgid "Delete these files from camera?" msgid_plural "Delete these %d files from camera?" -msgstr[0] "Supprimer ces fichiers de l'appareil ?" -msgstr[1] "Supprimer ces %d fichiers de l'appareil ?" +msgstr[0] "Supprimer ces fichiers de l’appareil ?" +msgstr[1] "Supprimer ces %d fichiers de l’appareil ?" -#: src/camera/ImportPage.vala:1753 src/Dialogs.vala:1387 +#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:733 msgid "_Keep" msgstr "_Garder" -#: src/camera/ImportPage.vala:1772 +#: src/camera/ImportPage.vala:1792 msgid "Removing photos/videos from camera" -msgstr "Effacement des photos/vidéos de l'appareil photo" +msgstr "Effacement des photos/vidéos de l’appareil photo" -#: src/camera/ImportPage.vala:1776 +#: src/camera/ImportPage.vala:1796 #, c-format msgid "Unable to delete %d photo/video from the camera due to errors." msgid_plural "Unable to delete %d photos/videos from the camera due to errors." msgstr[0] "" -"Impossible de supprimer %d photo/vidéo de l'appareil photo en raison " -"d'erreurs." +"Impossible de supprimer %d photo/vidéo de l’appareil photo en raison " +"d’erreurs." msgstr[1] "" -"Impossible de supprimer %d photos/vidéos de l'appareil photo en raison " -"d'erreurs." +"Impossible de supprimer %d photos/vidéos de l’appareil photo en raison " +"d’erreurs." #: src/CollectionPage.vala:80 src/direct/DirectPhotoPage.vala:85 -#: src/PhotoPage.vala:2464 src/Resources.vala:171 +#: src/PhotoPage.vala:2487 src/Resources.vala:141 msgid "_Print" msgstr "Impri_mer" -#: src/CollectionPage.vala:83 src/Resources.vala:324 ui/collection.ui:128 +#: src/CollectionPage.vala:83 src/Resources.vala:294 ui/collection.ui:128 #: ui/direct_context.ui:23 ui/direct.ui:23 ui/event.ui:567 ui/photo.ui:28 msgid "Send _To…" msgstr "Envoyer _vers…" #: src/CollectionPage.vala:84 src/direct/DirectPhotoPage.vala:90 -#: src/PhotoPage.vala:2474 src/Resources.vala:221 +#: src/PhotoPage.vala:2497 src/Resources.vala:191 msgid "Set as _Desktop Background" -msgstr "Définir comme fond d'_écran" +msgstr "Définir comme fond d’_écran" -#: src/CollectionPage.vala:92 src/Resources.vala:287 +#: src/CollectionPage.vala:92 src/Resources.vala:257 msgid "_Duplicate" msgstr "_Dupliquer" @@ -2730,78 +2725,75 @@ msgstr "Plein écran" msgid "S_lideshow" msgstr "Diapora_ma" -#: src/CollectionPage.vala:110 src/Resources.vala:140 ui/direct.ui:111 +#: src/CollectionPage.vala:110 src/Resources.vala:110 ui/direct.ui:111 #: ui/photo.ui:200 msgid "Rotate _Right" msgstr "Pivoter à d_roite" -#: src/CollectionPage.vala:113 src/Resources.vala:145 ui/direct.ui:116 +#: src/CollectionPage.vala:113 src/Resources.vala:115 ui/direct.ui:116 #: ui/photo.ui:205 msgid "Rotate _Left" msgstr "Pivoter à _gauche" -#: src/CollectionPage.vala:116 src/Resources.vala:150 ui/direct.ui:121 +#: src/CollectionPage.vala:116 src/Resources.vala:120 ui/direct.ui:121 #: ui/photo.ui:210 msgid "Flip Hori_zontally" msgstr "Miroir _horizontal" -#: src/CollectionPage.vala:117 src/Resources.vala:153 ui/direct.ui:125 +#: src/CollectionPage.vala:117 src/Resources.vala:123 ui/direct.ui:125 #: ui/photo.ui:214 msgid "Flip Verti_cally" msgstr "Miroir _vertical" -#: src/CollectionPage.vala:119 src/Resources.vala:187 ui/collection.ui:8 +#: src/CollectionPage.vala:119 src/Resources.vala:157 ui/collection.ui:8 #: ui/direct_context.ui:7 ui/direct.ui:134 ui/event.ui:447 #: ui/photo_context.ui:6 ui/photo.ui:223 msgid "_Enhance" msgstr "_Améliorer" -#: src/CollectionPage.vala:120 src/Resources.vala:215 ui/collection.ui:13 +#: src/CollectionPage.vala:120 src/Resources.vala:185 ui/collection.ui:13 #: ui/direct_context.ui:12 ui/direct.ui:161 ui/event.ui:452 #: ui/photo_context.ui:11 ui/photo.ui:250 msgid "Re_vert to Original" -msgstr "Re_venir à l'original" +msgstr "Re_venir à l’original" -#: src/CollectionPage.vala:122 src/Resources.vala:191 ui/photo.ui:256 +#: src/CollectionPage.vala:122 src/Resources.vala:161 ui/photo.ui:256 msgid "_Copy Color Adjustments" msgstr "_Copier les ajustements de couleur" -#: src/CollectionPage.vala:125 src/Resources.vala:195 ui/photo.ui:261 +#: src/CollectionPage.vala:125 src/Resources.vala:165 ui/photo.ui:261 msgid "_Paste Color Adjustments" msgstr "_Coller les ajustements de couleur" #: src/CollectionPage.vala:135 msgid "Adjust Date and Time…" -msgstr "Ajuster la date et l'heure…" +msgstr "Ajuster la date et l’heure…" -#: src/CollectionPage.vala:143 src/Resources.vala:320 +#: src/CollectionPage.vala:143 src/Resources.vala:290 ui/collection.ui:108 +#: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:361 msgid "Open With E_xternal Editor" msgstr "Ouvrir avec un éditeur e_xterne" -#: src/CollectionPage.vala:146 src/Resources.vala:322 ui/collection.ui:113 -#: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:365 +#: src/CollectionPage.vala:146 src/Resources.vala:292 ui/collection.ui:113 +#: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:366 msgid "Open With RA_W Editor" -msgstr "Ouvrir avec l'éditeur RA_W" +msgstr "Ouvrir avec l’éditeur RA_W" -#: src/CollectionPage.vala:149 src/Resources.vala:168 +#: src/CollectionPage.vala:149 src/Resources.vala:138 msgid "_Play" msgstr "_Lancer" #: src/CollectionPage.vala:410 msgid "Export Photo/Video" -msgstr "Exporter la photo/vidéo" +msgid_plural "Export Photos/Videos" +msgstr[0] "Exporter la photo/vidéo" +msgstr[1] "Exporter les photos/vidéos" -#: src/CollectionPage.vala:410 -msgid "Export Photos/Videos" -msgstr "Exporter les photos/vidéos" - -#: src/CollectionPage.vala:412 src/Dialogs.vala:59 src/PhotoPage.vala:2998 +#: src/CollectionPage.vala:412 src/Dialogs.vala:74 src/PhotoPage.vala:3021 msgid "Export Photo" -msgstr "Exporter la photo" - -#: src/CollectionPage.vala:412 src/Dialogs.vala:84 -msgid "Export Photos" -msgstr "Exporter les photos" +msgid_plural "Export Photos" +msgstr[0] "Exporter la photo" +msgstr[1] "Exporter les photos" #: src/CollectionPage.vala:499 src/CollectionPage.vala:515 msgid "Rotating" @@ -2841,7 +2833,7 @@ msgstr "Amélioration" #: src/Commands.vala:781 msgid "Undoing Enhance" -msgstr "Annuler l'amélioration" +msgstr "Annuler l’amélioration" #: src/Commands.vala:857 msgid "Applying Color Transformations" @@ -2851,155 +2843,155 @@ msgstr "Application des transformations de couleurs" msgid "Undoing Color Transformations" msgstr "Annuler les transformations de couleurs" -#: src/Commands.vala:1007 +#: src/Commands.vala:1006 msgid "Creating New Event" -msgstr "Création d'un nouvel événement" +msgstr "Création d’un nouvel événement" -#: src/Commands.vala:1008 +#: src/Commands.vala:1007 msgid "Removing Event" -msgstr "Effacement de l'événement" +msgstr "Effacement de l’événement" -#: src/Commands.vala:1017 +#: src/Commands.vala:1016 msgid "Moving Photos to New Event" msgstr "Déplacer les photos vers le nouvel événement" -#: src/Commands.vala:1018 +#: src/Commands.vala:1017 msgid "Setting Photos to Previous Event" -msgstr "Déplacer les photos vers l'événement précédent" +msgstr "Déplacer les photos vers l’événement précédent" -#: src/Commands.vala:1075 +#: src/Commands.vala:1074 msgid "Merging" msgstr "Fusion" -#: src/Commands.vala:1076 +#: src/Commands.vala:1075 msgid "Unmerging" msgstr "Annuler la fusion" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Duplicating photos" msgstr "Duplication des photos" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Removing duplicated photos" msgstr "Effacement des photos dupliquées" -#: src/Commands.vala:1108 +#: src/Commands.vala:1107 #, c-format msgid "Unable to duplicate one photo due to a file error" msgid_plural "Unable to duplicate %d photos due to file errors" msgstr[0] "Impossible de dupliquer une photo suite à une erreur de fichier" msgstr[1] "Impossible de dupliquer %d photos suite à des erreurs de fichier" -#: src/Commands.vala:1195 +#: src/Commands.vala:1194 msgid "Restoring previous rating" msgstr "Rétablissement de la note précédente" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Increasing ratings" msgstr "Amélioration des notes" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Decreasing ratings" msgstr "Diminution des notes" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Setting RAW developer" msgstr "Configurer le révélateur RAW" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Restoring previous RAW developer" msgstr "Rétablir le révélateur RAW précédent" -#: src/Commands.vala:1257 +#: src/Commands.vala:1256 msgid "Set Developer" msgstr "Définir le révélateur" -#: src/Commands.vala:1347 +#: src/Commands.vala:1346 msgid "Original photo could not be adjusted." -msgstr "La photo originale n'a pas pu être ajustée." +msgstr "La photo originale n’a pas pu être ajustée." -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Adjusting Date and Time" -msgstr "Ajustement de la date et de l'heure" +msgstr "Ajustement de la date et de l’heure" -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Undoing Date and Time Adjustment" -msgstr "Annuler l'ajustement de la date et de l'heure" +msgstr "Annuler l’ajustement de la date et de l’heure" -#: src/Commands.vala:1399 +#: src/Commands.vala:1398 msgid "One original photo could not be adjusted." msgid_plural "The following original photos could not be adjusted." -msgstr[0] "Une photo originale n'a pas pu être ajustée." -msgstr[1] "Les photos originales suivantes n'ont pas pu être ajustées." +msgstr[0] "Une photo originale n’a pas pu être ajustée." +msgstr[1] "Les photos originales suivantes n’ont pas pu être ajustées." -#: src/Commands.vala:1401 src/Commands.vala:1425 +#: src/Commands.vala:1400 src/Commands.vala:1424 msgid "Time Adjustment Error" -msgstr "Erreur de l'ajustement de la date" +msgstr "Erreur de l’ajustement de la date" -#: src/Commands.vala:1423 +#: src/Commands.vala:1422 msgid "Time adjustments could not be undone on the following photo file." msgid_plural "" "Time adjustments could not be undone on the following photo files." msgstr[0] "" -"L'ajustement de l'heure n'a pas pu être annulé sur le fichier photo suivant." +"L’ajustement de l’heure n’a pas pu être annulé sur le fichier photo suivant." msgstr[1] "" -"L'ajustement de l'heure n'a pas pu être annulé sur les fichiers photo " +"L’ajustement de l’heure n’a pas pu être annulé sur les fichiers photo " "suivants." -#: src/Commands.vala:1637 src/Commands.vala:1660 +#: src/Commands.vala:1636 src/Commands.vala:1659 msgid "Create Tag" msgstr "Créer une étiquette" -#: src/Commands.vala:1695 +#: src/Commands.vala:1694 #, c-format msgid "Move Tag “%s”" -msgstr "Déplacer l'étiquette « %s »" +msgstr "Déplacer l’étiquette « %s »" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Move Photos to Trash" msgstr "Mettre les photos dans la corbeille" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Restore Photos from Trash" msgstr "Restaurer les photos contenues dans la corbeille" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Move the photos to the Shotwell trash" msgstr "Déplacer les photos dans la corbeille de Shotwell" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Restore the photos back to the Shotwell library" msgstr "Réintégrer les photos dans la photothèque de Shotwell" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Moving Photos to Trash" msgstr "Déplacement des photos dans la corbeille" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Restoring Photos From Trash" msgstr "Restauration des photos de la corbeille" -#: src/Commands.vala:2453 +#: src/Commands.vala:2452 msgid "Flag selected photos" msgstr "Marquer les photos sélectionnées" -#: src/Commands.vala:2454 +#: src/Commands.vala:2453 msgid "Unflag selected photos" msgstr "Enlever la marque des photos sélectionnées" -#: src/Commands.vala:2455 +#: src/Commands.vala:2454 msgid "Flagging selected photos" msgstr "Marquage des photos sélectionnées" -#: src/Commands.vala:2456 +#: src/Commands.vala:2455 msgid "Unflagging selected photos" msgstr "Suppression de la marque des photos sélectionnées" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Flag" msgstr "Marquer" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Unflag" msgstr "Enlever la marque" @@ -3015,12 +3007,12 @@ msgstr "Base de données %s" #, c-format msgid "Importing from %s can’t continue because an error occurred:" msgstr "" -"L'importation à partir de %s ne peut continuer car une erreur est survenue :" +"L’importation à partir de %s ne peut continuer car une erreur est survenue :" #: src/data_imports/DataImportsPluginHost.vala:151 msgid "To try importing from another service, select one from the above menu." msgstr "" -"Pour tenter d'importer à partir d'un autre service, faites votre choix dans " +"Pour tenter d’importer à partir d’un autre service, faites votre choix dans " "le menu ci-dessus." #: src/data_imports/DataImportsUI.vala:10 @@ -3031,9 +3023,9 @@ msgid "" "at least one data imports plugin enabled. Plugins can be enabled in the " "Preferences dialog." msgstr "" -"Aucun greffon d'importation de données n'est activé.\n" +"Aucun greffon d’importation de données n’est activé.\n" "\n" -"Pour pouvoir utiliser l'importation à partir d'une application, au moins un " +"Pour pouvoir utiliser l’importation à partir d’une application, au moins un " "greffon doit être disponible. Ils peuvent être activés dans la fenêtre des " "Préférences." @@ -3041,19 +3033,19 @@ msgstr "" msgid "Database file:" msgstr "Fichier de base de données :" -#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:775 +#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:783 msgid "_Import" msgstr "_Importer" -#: src/data_imports/DataImportsUI.vala:220 +#: src/data_imports/DataImportsUI.vala:219 msgid "Import From Application" -msgstr "Importer à partir d'une application" +msgstr "Importer à partir d’une application" -#: src/data_imports/DataImportsUI.vala:221 +#: src/data_imports/DataImportsUI.vala:220 msgid "Import media _from:" msgstr "Importer du contenu à _partir de :" -#: src/data_imports/DataImportsUI.vala:414 src/publishing/PublishingUI.vala:522 +#: src/data_imports/DataImportsUI.vala:415 src/publishing/PublishingUI.vala:524 msgid "_Close" msgstr "_Fermer" @@ -3065,7 +3057,7 @@ msgstr "Importations de données" #, c-format msgid "Unable to open/create photo database %s: error code %d" msgstr "" -"Impossible d'ouvrir ou créer la base de données de photos %s : code d'erreur " +"Impossible d’ouvrir ou créer la base de données de photos %s : code d’erreur " "%d" #: src/db/DatabaseTable.vala:46 @@ -3074,7 +3066,7 @@ msgid "" "Unable to write to photo database file:\n" " %s" msgstr "" -"Impossible d'écrire dans le fichier de base de données de photos :\n" +"Impossible d’écrire dans le fichier de base de données de photos :\n" " %s" #: src/db/DatabaseTable.vala:48 @@ -3086,10 +3078,10 @@ msgid "" "Error was: \n" "%s" msgstr "" -"Erreur d'accès au fichier de base de données :\n" +"Erreur d’accès au fichier de base de données :\n" " %s\n" "\n" -"L'erreur est : \n" +"L’erreur est : \n" "%s" #: src/db/DatabaseTable.vala:92 @@ -3109,24 +3101,25 @@ msgstr "Envoyer vers" #: src/DesktopIntegration.vala:174 #, c-format msgid "Unable to export background to %s: %s" -msgstr "Impossible d'exporter le fond d'écran vers %s : %s" +msgstr "Impossible d’exporter le fond d’écran vers %s : %s" #: src/DesktopIntegration.vala:311 #, c-format msgid "Unable to prepare desktop slideshow: %s" -msgstr "Impossible de préparer le diaporama d'écran : %s" +msgstr "Impossible de préparer le diaporama d’écran : %s" #: src/Dialogs.vala:16 #, c-format msgid "This will remove the tag “%s” from one photo. Continue?" msgid_plural "This will remove the tag “%s” from %d photos. Continue?" -msgstr[0] "Ceci enlèvera l'étiquette « %s » d'une photo. Poursuivre ?" -msgstr[1] "Ceci enlèvera l'étiquette « %s » de %d photos. Poursuivre ?" - -#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:1388 -#: src/Resources.vala:159 src/Resources.vala:362 src/Resources.vala:415 -#: src/Resources.vala:659 ui/savedsearch.ui:15 ui/tags.ui:460 ui/trash.ui:63 -#: ui/trash.ui:216 ui/trash.ui:258 +msgstr[0] "Ceci enlèvera l’étiquette « %s » d’une photo. Poursuivre ?" +msgstr[1] "Ceci enlèvera l’étiquette « %s » de %d photos. Poursuivre ?" + +#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:58 +#: src/Dialogs.vala:734 src/Resources.vala:129 src/Resources.vala:310 +#: src/Resources.vala:341 src/Resources.vala:394 src/Resources.vala:734 +#: ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 ui/trash.ui:216 +#: ui/trash.ui:258 msgid "_Delete" msgstr "_Supprimer" @@ -3153,33 +3146,44 @@ msgstr[1] "" msgid "_Switch Developer" msgstr "_Changer de révélateur" -#: src/Dialogs.vala:59 +#: src/Dialogs.vala:54 +#, c-format +msgid "This will remove the face “%s” from one photo. Continue?" +msgid_plural "This will remove the face “%s” from %d photos. Continue?" +msgstr[0] "Ceci enlèvera le visage « %s » d’une photo. Poursuivre ?" +msgstr[1] "Ceci enlèvera le visage « %s » de %d photos. Poursuivre ?" + +#: src/Dialogs.vala:74 msgid "Export Video" msgstr "Exporter la vidéo" +#: src/Dialogs.vala:99 +msgid "Export Photos" +msgstr "Exporter les photos" + #. Ticket #3023 #. Attempt to replace the system error with something friendlier #. if we can't copy an image over for editing in an external tool. #. Did we fail because we can't write to this directory? #. Yes - display an alternate error message here. -#: src/Dialogs.vala:112 +#: src/Dialogs.vala:127 #, c-format msgid "" "Shotwell couldn’t create a file for editing this photo because you do not " "have permission to write to %s." msgstr "" -"Shotwell n'a pas pu créer de fichier pour modifier cette photo car vous " -"n'avez pas les permissions d'écriture dans %s." +"Shotwell n’a pas pu créer de fichier pour modifier cette photo car vous " +"n’avez pas les permissions d’écriture dans %s." -#: src/Dialogs.vala:121 +#: src/Dialogs.vala:136 msgid "" "Unable to export the following photo due to a file error.\n" "\n" msgstr "" -"Impossible d'exporter la photo suivante suite à une erreur de fichier.\n" +"Impossible d’exporter la photo suivante suite à une erreur de fichier.\n" "\n" -#: src/Dialogs.vala:127 +#: src/Dialogs.vala:142 msgid "" "\n" "\n" @@ -3187,65 +3191,37 @@ msgid "" msgstr "" "\n" "\n" -"Souhaitez-vous poursuivre l'exportation ?" - -#. "Unmodified" and "Current," though they appear in the "Format:" popup menu, really -#. aren't formats so much as they are operating modes that determine specific formats. -#. Hereafter we'll refer to these as "special formats." -#: src/Dialogs.vala:144 -msgid "Unmodified" -msgstr "Non modifié" - -#: src/Dialogs.vala:145 -msgid "Current" -msgstr "Actuel" - -#. layout controls -#: src/Dialogs.vala:221 -msgid "_Format:" -msgstr "_Format :" - -#: src/Dialogs.vala:224 -msgid "_Quality:" -msgstr "_Qualité :" - -#: src/Dialogs.vala:227 -msgid "_Scaling constraint:" -msgstr "_Contrainte d'échelle :" +"Souhaitez-vous poursuivre l’exportation ?" -#: src/Dialogs.vala:230 -msgid "_Pixels:" -msgstr "_Pixels :" - -#: src/Dialogs.vala:234 -msgid "Export _metadata:" -msgstr "Exporter les _métadonnées :" +#: src/Dialogs.vala:143 +msgid "Con_tinue" +msgstr "Pour_suivre" -#: src/Dialogs.vala:478 +#: src/Dialogs.vala:153 msgid "Save Details…" msgstr "Enregistrer les détails…" -#: src/Dialogs.vala:479 +#: src/Dialogs.vala:154 msgid "Save Details" msgstr "Enregistrer les détails" -#: src/Dialogs.vala:494 +#: src/Dialogs.vala:169 #, c-format msgid "(and %d more)\n" msgstr "(et %d autres)\n" -#: src/Dialogs.vala:547 +#: src/Dialogs.vala:222 msgid "Import Results Report" msgstr "Importer les résultats du rapport" -#: src/Dialogs.vala:551 +#: src/Dialogs.vala:226 #, c-format msgid "Attempted to import %d file." msgid_plural "Attempted to import %d files." -msgstr[0] "Tentative d'importation de %d fichier." -msgstr[1] "Tentative d'importation de %d fichiers." +msgstr[0] "Tentative d’importation de %d fichier." +msgstr[1] "Tentative d’importation de %d fichiers." -#: src/Dialogs.vala:554 +#: src/Dialogs.vala:229 #, c-format msgid "Of these, %d file was successfully imported." msgid_plural "Of these, %d files were successfully imported." @@ -3255,58 +3231,58 @@ msgstr[1] "Parmi ces derniers, %d fichiers ont été importés avec succès." #. #. Duplicates #. -#: src/Dialogs.vala:566 +#: src/Dialogs.vala:241 msgid "Duplicate Photos/Videos Not Imported:" msgstr "Photos/vidéos à double non importées :" -#: src/Dialogs.vala:570 +#: src/Dialogs.vala:245 msgid "duplicates existing media item" msgstr "est identique à un média existant" #. #. Files Not Imported Due to Camera Errors #. -#: src/Dialogs.vala:581 +#: src/Dialogs.vala:256 msgid "Photos/Videos Not Imported Due to Camera Errors:" -msgstr "Photos/vidéos non importées à cause d'une erreur de l'appareil photo :" +msgstr "Photos/vidéos non importées à cause d’une erreur de l’appareil photo :" -#: src/Dialogs.vala:584 src/Dialogs.vala:599 src/Dialogs.vala:614 -#: src/Dialogs.vala:630 src/Dialogs.vala:645 src/Dialogs.vala:659 +#: src/Dialogs.vala:259 src/Dialogs.vala:274 src/Dialogs.vala:289 +#: src/Dialogs.vala:305 src/Dialogs.vala:320 src/Dialogs.vala:334 msgid "error message:" -msgstr "message d'erreur :" +msgstr "message d’erreur :" #. #. Files Not Imported Because They Weren't Recognized as Photos or Videos #. -#: src/Dialogs.vala:595 +#: src/Dialogs.vala:270 msgid "Files Not Imported Because They Weren’t Recognized as Photos or Videos:" msgstr "" -"Fichiers non importés car ils n'ont pas été reconnus en tant que photos ou " +"Fichiers non importés car ils n’ont pas été reconnus en tant que photos ou " "vidéos :" #. #. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands #. -#: src/Dialogs.vala:610 +#: src/Dialogs.vala:285 msgid "" "Photos/Videos Not Imported Because They Weren’t in a Format Shotwell " "Understands:" msgstr "" -"Photos/vidéos non importées car elles n'étaient pas dans un format reconnu " +"Photos/vidéos non importées car elles n’étaient pas dans un format reconnu " "par Shotwell :" #. #. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library #. -#: src/Dialogs.vala:625 +#: src/Dialogs.vala:300 msgid "" "Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into its " "Library:" msgstr "" -"Photos/vidéos non importées car Shotwell n'a pas pu les copier dans sa " +"Photos/vidéos non importées car Shotwell n’a pas pu les copier dans sa " "bibliothèque :" -#: src/Dialogs.vala:629 +#: src/Dialogs.vala:304 #, c-format msgid "" "couldn’t copy %s\n" @@ -3318,84 +3294,84 @@ msgstr "" #. #. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt #. -#: src/Dialogs.vala:641 +#: src/Dialogs.vala:316 msgid "Photos/Videos Not Imported Because Files Are Corrupt:" msgstr "Photos/vidéos non importées car les fichiers sont corrompus :" #. #. Photos/Videos Not Imported for Other Reasons #. -#: src/Dialogs.vala:656 +#: src/Dialogs.vala:331 msgid "Photos/Videos Not Imported for Other Reasons:" -msgstr "Photos/vidéos non importées pour d'autres raisons :" +msgstr "Photos/vidéos non importées pour d’autres raisons :" -#: src/Dialogs.vala:676 +#: src/Dialogs.vala:351 #, c-format msgid "1 duplicate photo was not imported:\n" msgid_plural "%d duplicate photos were not imported:\n" msgstr[0] "1 photo dupliquée non importée :\n" msgstr[1] "%d photos dupliquées non importées :\n" -#: src/Dialogs.vala:679 +#: src/Dialogs.vala:354 #, c-format msgid "1 duplicate video was not imported:\n" msgid_plural "%d duplicate videos were not imported:\n" msgstr[0] "1 vidéo dupliquée non importée :\n" msgstr[1] "%d vidéos dupliquées non importées :\n" -#: src/Dialogs.vala:682 +#: src/Dialogs.vala:357 #, c-format msgid "1 duplicate photo/video was not imported:\n" msgid_plural "%d duplicate photos/videos were not imported:\n" msgstr[0] "1 photo/vidéo dupliquée non importée :\n" msgstr[1] "%d photos/vidéos dupliquées non importées :\n" -#: src/Dialogs.vala:696 +#: src/Dialogs.vala:371 #, c-format msgid "1 photo failed to import due to a file or hardware error:\n" msgid_plural "%d photos failed to import due to a file or hardware error:\n" msgstr[0] "" -"L'importation d'une photo a échoué suite à une erreur de fichier ou " +"L’importation d’une photo a échoué suite à une erreur de fichier ou " "matérielle :\n" msgstr[1] "" -"L'importation de %d photos a échoué suite à une erreur de fichier ou " +"L’importation de %d photos a échoué suite à une erreur de fichier ou " "matérielle :\n" -#: src/Dialogs.vala:699 +#: src/Dialogs.vala:374 #, c-format msgid "1 video failed to import due to a file or hardware error:\n" msgid_plural "%d videos failed to import due to a file or hardware error:\n" msgstr[0] "" -"L'importation d'une vidéo a échoué suite à une erreur de fichier ou " +"L’importation d’une vidéo a échoué suite à une erreur de fichier ou " "matérielle :\n" msgstr[1] "" -"L'importation de %d vidéos a échoué suite à une erreur de fichier ou " +"L’importation de %d vidéos a échoué suite à une erreur de fichier ou " "matérielle :\n" -#: src/Dialogs.vala:702 +#: src/Dialogs.vala:377 #, c-format msgid "1 photo/video failed to import due to a file or hardware error:\n" msgid_plural "" "%d photos/videos failed to import due to a file or hardware error:\n" msgstr[0] "" -"L'importation d'une photo/vidéo a échoué suite à une erreur de fichier ou " +"L’importation d’une photo/vidéo a échoué suite à une erreur de fichier ou " "matérielle :\n" msgstr[1] "" -"L'importation de %d photos/vidéos a échoué suite à une erreur de fichier ou " +"L’importation de %d photos/vidéos a échoué suite à une erreur de fichier ou " "matérielle :\n" -#: src/Dialogs.vala:705 +#: src/Dialogs.vala:380 #, c-format msgid "1 file failed to import due to a file or hardware error:\n" msgid_plural "%d files failed to import due to a file or hardware error:\n" msgstr[0] "" -"L'importation d'un fichier a échoué suite à une erreur de fichier ou " +"L’importation d’un fichier a échoué suite à une erreur de fichier ou " "matérielle :\n" msgstr[1] "" -"L'importation de %d fichiers a échoué suite à une erreur de fichier ou " +"L’importation de %d fichiers a échoué suite à une erreur de fichier ou " "matérielle :\n" -#: src/Dialogs.vala:719 +#: src/Dialogs.vala:394 #, c-format msgid "" "1 photo failed to import because the photo library folder was not writable:\n" @@ -3403,13 +3379,13 @@ msgid_plural "" "%d photos failed to import because the photo library folder was not " "writable:\n" msgstr[0] "" -"L'importation d'une photo a échoué car le dossier de la photothèque n'est " +"L’importation d’une photo a échoué car le dossier de la photothèque n’est " "pas accessible en écriture :\n" msgstr[1] "" -"L'importation de %d photos a échoué car le dossier de la photothèque n'est " +"L’importation de %d photos a échoué car le dossier de la photothèque n’est " "pas accessible en écriture :\n" -#: src/Dialogs.vala:722 +#: src/Dialogs.vala:397 #, c-format msgid "" "1 video failed to import because the photo library folder was not writable:\n" @@ -3417,13 +3393,13 @@ msgid_plural "" "%d videos failed to import because the photo library folder was not " "writable:\n" msgstr[0] "" -"L'importation d'une vidéo a échoué car le dossier de la photothèque n'est " +"L’importation d’une vidéo a échoué car le dossier de la photothèque n’est " "pas accessible en écriture :\n" msgstr[1] "" -"L'importation de %d vidéos a échoué car le dossier de la photothèque n'est " +"L’importation de %d vidéos a échoué car le dossier de la photothèque n’est " "pas accessible en écriture :\n" -#: src/Dialogs.vala:725 +#: src/Dialogs.vala:400 #, c-format msgid "" "1 photo/video failed to import because the photo library folder was not " @@ -3432,13 +3408,13 @@ msgid_plural "" "%d photos/videos failed to import because the photo library folder was not " "writable:\n" msgstr[0] "" -"L'importation d'une photo/vidéo a échoué car le dossier de la photothèque " -"n'est pas accessible en écriture :\n" +"L’importation d’une photo/vidéo a échoué car le dossier de la photothèque " +"n’est pas accessible en écriture :\n" msgstr[1] "" -"L'importation de %d photos/vidéos a échoué car le dossier de la photothèque " -"n'est pas accessible en écriture :\n" +"L’importation de %d photos/vidéos a échoué car le dossier de la photothèque " +"n’est pas accessible en écriture :\n" -#: src/Dialogs.vala:728 +#: src/Dialogs.vala:403 #, c-format msgid "" "1 file failed to import because the photo library folder was not writable:\n" @@ -3446,91 +3422,91 @@ msgid_plural "" "%d files failed to import because the photo library folder was not " "writable:\n" msgstr[0] "" -"L'importation d'un fichier a échoué car le dossier de la photothèque n'est " +"L’importation d’un fichier a échoué car le dossier de la photothèque n’est " "pas accessible en écriture :\n" msgstr[1] "" -"L'importation de %d fichiers a échoué car le dossier de la photothèque n'est " +"L’importation de %d fichiers a échoué car le dossier de la photothèque n’est " "pas accessible en écriture :\n" -#: src/Dialogs.vala:742 +#: src/Dialogs.vala:417 #, c-format msgid "1 photo failed to import due to a camera error:\n" msgid_plural "%d photos failed to import due to a camera error:\n" msgstr[0] "" -"L'importation d'une photo a échoué suite à une erreur de l'appareil photo :\n" +"L’importation d’une photo a échoué suite à une erreur de l’appareil photo :\n" msgstr[1] "" -"L'importation de %d photos a échoué suite à une erreur de l'appareil " +"L’importation de %d photos a échoué suite à une erreur de l’appareil " "photo :\n" -#: src/Dialogs.vala:745 +#: src/Dialogs.vala:420 #, c-format msgid "1 video failed to import due to a camera error:\n" msgid_plural "%d videos failed to import due to a camera error:\n" msgstr[0] "" -"L'importation d'une vidéo a échoué suite à une erreur de l'appareil photo :\n" +"L’importation d’une vidéo a échoué suite à une erreur de l’appareil photo :\n" msgstr[1] "" -"L'importation de %d vidéos a échoué suite à une erreur de l'appareil " +"L’importation de %d vidéos a échoué suite à une erreur de l’appareil " "photo :\n" -#: src/Dialogs.vala:748 +#: src/Dialogs.vala:423 #, c-format msgid "1 photo/video failed to import due to a camera error:\n" msgid_plural "%d photos/videos failed to import due to a camera error:\n" msgstr[0] "" -"L'importation d'une photo/vidéo a échoué suite à une erreur de l'appareil " +"L’importation d’une photo/vidéo a échoué suite à une erreur de l’appareil " "photo :\n" msgstr[1] "" -"L'importation de %d photos/vidéos a échoué suite à une erreur de l'appareil " +"L’importation de %d photos/vidéos a échoué suite à une erreur de l’appareil " "photo :\n" -#: src/Dialogs.vala:751 +#: src/Dialogs.vala:426 #, c-format msgid "1 file failed to import due to a camera error:\n" msgid_plural "%d files failed to import due to a camera error:\n" msgstr[0] "" -"L'importation d'un fichier a échoué suite à une erreur de l'appareil " +"L’importation d’un fichier a échoué suite à une erreur de l’appareil " "photo :\n" msgstr[1] "" -"L'importation de %d fichiers a échoué suite à une erreur de l'appareil " +"L’importation de %d fichiers a échoué suite à une erreur de l’appareil " "photo :\n" -#: src/Dialogs.vala:765 +#: src/Dialogs.vala:440 #, c-format msgid "1 photo failed to import because it was corrupt:\n" msgid_plural "%d photos failed to import because they were corrupt:\n" -msgstr[0] "L'importation d'une photo a échoué car elle était corrompue :\n" +msgstr[0] "L’importation d’une photo a échoué car elle était corrompue :\n" msgstr[1] "" -"L'importation de %d photos a échoué car elles étaient corrompues :\n" +"L’importation de %d photos a échoué car elles étaient corrompues :\n" -#: src/Dialogs.vala:768 +#: src/Dialogs.vala:443 #, c-format msgid "1 video failed to import because it was corrupt:\n" msgid_plural "%d videos failed to import because they were corrupt:\n" -msgstr[0] "L'importation d'une vidéo a échoué car elle était corrompue :\n" +msgstr[0] "L’importation d’une vidéo a échoué car elle était corrompue :\n" msgstr[1] "" -"L'importation de %d vidéos a échoué car elles étaient corrompues :\n" +"L’importation de %d vidéos a échoué car elles étaient corrompues :\n" -#: src/Dialogs.vala:771 +#: src/Dialogs.vala:446 #, c-format msgid "1 photo/video failed to import because it was corrupt:\n" msgid_plural "%d photos/videos failed to import because they were corrupt:\n" msgstr[0] "" -"L'importation d'une photo/vidéo a échoué car elle était corrompue :\n" +"L’importation d’une photo/vidéo a échoué car elle était corrompue :\n" msgstr[1] "" -"L'importation de %d photos/vidéos a échoué car elles étaient corrompues :\n" +"L’importation de %d photos/vidéos a échoué car elles étaient corrompues :\n" -#: src/Dialogs.vala:774 +#: src/Dialogs.vala:449 #, c-format msgid "1 file failed to import because it was corrupt:\n" msgid_plural "%d files failed to import because it was corrupt:\n" -msgstr[0] "L'importation d'un fichier a échoué car il était corrompu :\n" -msgstr[1] "L'importation de %d fichiers a échoué car ils étaient corrompus :\n" +msgstr[0] "L’importation d’un fichier a échoué car il était corrompu :\n" +msgstr[1] "L’importation de %d fichiers a échoué car ils étaient corrompus :\n" #. we have no notion of "unsupported" video files right now in Shotwell (all #. standard container formats are supported, it's just that the streams in them #. might or might not be interpretable), so this message does not need to be #. media specific -#: src/Dialogs.vala:791 +#: src/Dialogs.vala:466 #, c-format msgid "1 unsupported photo skipped:\n" msgid_plural "%d unsupported photos skipped:\n" @@ -3539,60 +3515,60 @@ msgstr[1] "%d photos non prises en charge ont été omises :\n" #. we have no notion of "non-video" video files right now in Shotwell, so this #. message doesn't need to be media specific -#: src/Dialogs.vala:806 +#: src/Dialogs.vala:481 #, c-format msgid "1 non-image file skipped.\n" msgid_plural "%d non-image files skipped.\n" msgstr[0] "1 fichier non-image omis.\n" msgstr[1] "%d fichiers non-images omis.\n" -#: src/Dialogs.vala:817 +#: src/Dialogs.vala:492 #, c-format msgid "1 photo skipped due to user cancel:\n" msgid_plural "%d photos skipped due to user cancel:\n" -msgstr[0] "L'annulation de l'utilisateur a provoqué l'omission d'une photo :\n" +msgstr[0] "L’annulation de l’utilisateur a provoqué l’omission d’une photo :\n" msgstr[1] "" -"L'annulation de l'utilisateur a provoqué l'omission de %d photos :\n" +"L’annulation de l’utilisateur a provoqué l’omission de %d photos :\n" -#: src/Dialogs.vala:820 +#: src/Dialogs.vala:495 #, c-format msgid "1 video skipped due to user cancel:\n" msgid_plural "%d videos skipped due to user cancel:\n" -msgstr[0] "L'annulation de l'utilisateur a provoqué l'omission d'une vidéo :\n" +msgstr[0] "L’annulation de l’utilisateur a provoqué l’omission d’une vidéo :\n" msgstr[1] "" -"L'annulation de l'utilisateur a provoqué l'omission de %d vidéos :\n" +"L’annulation de l’utilisateur a provoqué l’omission de %d vidéos :\n" -#: src/Dialogs.vala:823 +#: src/Dialogs.vala:498 #, c-format msgid "1 photo/video skipped due to user cancel:\n" msgid_plural "%d photos/videos skipped due to user cancel:\n" msgstr[0] "" -"L'annulation de l'utilisateur a provoqué l'omission d'une photo/vidéo :\n" +"L’annulation de l’utilisateur a provoqué l’omission d’une photo/vidéo :\n" msgstr[1] "" -"L'annulation de l'utilisateur a provoqué l'omission de %d photos/vidéos :\n" +"L’annulation de l’utilisateur a provoqué l’omission de %d photos/vidéos :\n" -#: src/Dialogs.vala:826 +#: src/Dialogs.vala:501 #, c-format msgid "1 file skipped due to user cancel:\n" msgid_plural "%d file skipped due to user cancel:\n" -msgstr[0] "1 fichier omis par annulation de l'utilisateur :\n" -msgstr[1] "%d fichiers omis par annulation de l'utilisateur :\n" +msgstr[0] "1 fichier omis par annulation de l’utilisateur :\n" +msgstr[1] "%d fichiers omis par annulation de l’utilisateur :\n" -#: src/Dialogs.vala:840 +#: src/Dialogs.vala:515 #, c-format msgid "1 photo successfully imported.\n" msgid_plural "%d photos successfully imported.\n" msgstr[0] "Une photo importée avec succès.\n" msgstr[1] "%d photos importées avec succès.\n" -#: src/Dialogs.vala:843 +#: src/Dialogs.vala:518 #, c-format msgid "1 video successfully imported.\n" msgid_plural "%d videos successfully imported.\n" msgstr[0] "Une vidéo importée avec succès.\n" msgstr[1] "%d vidéos importées avec succès.\n" -#: src/Dialogs.vala:846 +#: src/Dialogs.vala:521 #, c-format msgid "1 photo/video successfully imported.\n" msgid_plural "%d photos/videos successfully imported.\n" @@ -3601,89 +3577,64 @@ msgstr[1] "%d photos/vidéos importées avec succès.\n" #. if no media items were imported at all (i.e. an empty directory attempted), need to at least #. report that nothing was imported -#: src/Dialogs.vala:862 +#: src/Dialogs.vala:537 msgid "No photos or videos imported.\n" msgstr "Aucune photo ou vidéo importée.\n" -#: src/Dialogs.vala:869 src/Dialogs.vala:888 +#: src/Dialogs.vala:544 src/Dialogs.vala:563 msgid "Import Complete" msgstr "Importation achevée" -#: src/Dialogs.vala:1160 -#, c-format -msgid "%d second" -msgid_plural "%d seconds" -msgstr[0] "%d seconde" -msgstr[1] "%d secondes" - -#: src/Dialogs.vala:1163 -#, c-format -msgid "%d minute" -msgid_plural "%d minutes" -msgstr[0] "%d minute" -msgstr[1] "%d minutes" - -#: src/Dialogs.vala:1167 -#, c-format -msgid "%d hour" -msgid_plural "%d hours" -msgstr[0] "%d heure" -msgstr[1] "%d heures" - -#: src/Dialogs.vala:1170 -msgid "1 day" -msgstr "1 jour" - -#: src/Dialogs.vala:1317 src/Resources.vala:232 +#: src/Dialogs.vala:663 src/Resources.vala:202 msgid "Rename Event" -msgstr "Renommer l'événement" +msgstr "Renommer l’événement" -#: src/Dialogs.vala:1317 +#: src/Dialogs.vala:663 msgid "Name:" msgstr "Nom :" #. Dialog title -#: src/Dialogs.vala:1328 +#: src/Dialogs.vala:674 msgctxt "Dialog Title" msgid "Edit Title" msgstr "Modifier le titre" -#: src/Dialogs.vala:1329 src/Properties.vala:343 +#: src/Dialogs.vala:675 src/Properties.vala:346 msgid "Title:" msgstr "Titre :" #. Dialog title -#: src/Dialogs.vala:1345 src/Resources.vala:308 +#: src/Dialogs.vala:691 src/Resources.vala:278 msgid "Edit Event Comment" -msgstr "Modifier le commentaire de l'événement" +msgstr "Modifier le commentaire de l’événement" -#: src/Dialogs.vala:1346 +#: src/Dialogs.vala:692 msgid "Edit Photo/Video Comment" msgstr "Modifier le commentaire de la photo/vidéo" -#: src/Dialogs.vala:1347 src/Properties.vala:631 +#: src/Dialogs.vala:693 src/Properties.vala:645 msgid "Comment:" msgstr "Commentaire :" -#: src/Dialogs.vala:1363 +#: src/Dialogs.vala:709 msgid "Remove and _Trash File" msgid_plural "Remove and _Trash Files" msgstr[0] "Supprimer et me_ttre le fichier à la corbeille" msgstr[1] "Supprimer et me_ttre les fichiers à la corbeille" -#: src/Dialogs.vala:1367 +#: src/Dialogs.vala:713 msgid "_Remove From Library" msgstr "Supp_rimer de la photothèque" -#: src/Dialogs.vala:1410 +#: src/Dialogs.vala:756 msgid "Revert External Edit?" -msgstr "Annuler l'édition externe ?" +msgstr "Annuler l’édition externe ?" -#: src/Dialogs.vala:1410 +#: src/Dialogs.vala:756 msgid "Revert External Edits?" msgstr "Annuler les éditions externes ?" -#: src/Dialogs.vala:1412 +#: src/Dialogs.vala:758 #, c-format msgid "This will destroy all changes made to the external file. Continue?" msgid_plural "" @@ -3694,125 +3645,34 @@ msgstr[1] "" "Ceci détruira tous les changements appliqués aux %d fichiers externes. " "Poursuivre ?" -#: src/Dialogs.vala:1416 +#: src/Dialogs.vala:762 msgid "Re_vert External Edit" -msgstr "A_nnuler l'édition externe" +msgstr "A_nnuler l’édition externe" -#: src/Dialogs.vala:1416 +#: src/Dialogs.vala:762 msgid "Re_vert External Edits" msgstr "A_nnuler les éditions externes" -#: src/Dialogs.vala:1437 +#: src/Dialogs.vala:783 #, c-format msgid "This will remove the photo from the library. Continue?" msgid_plural "This will remove %d photos from the library. Continue?" msgstr[0] "Ceci enlèvera la photo de la photothèque. Poursuivre ?" msgstr[1] "Ceci enlèvera %d photos de la photothèque. Poursuivre ?" -#: src/Dialogs.vala:1444 src/Resources.vala:174 +#: src/Dialogs.vala:790 src/Resources.vala:144 msgid "_Remove" msgstr "_Enlever" -#: src/Dialogs.vala:1445 +#: src/Dialogs.vala:791 msgid "Remove Photo From Library" msgstr "Enlever la photo de la photothèque" -#: src/Dialogs.vala:1445 +#: src/Dialogs.vala:791 msgid "Remove Photos From Library" msgstr "Enlever les photos de la photothèque" -#: src/Dialogs.vala:1543 -#, c-format -msgid "%d%%" -msgstr "%d%%" - -#: src/Dialogs.vala:1697 -msgid "AM" -msgstr "Matin" - -#: src/Dialogs.vala:1698 -msgid "PM" -msgstr "Après-midi" - -#: src/Dialogs.vala:1699 -msgid "24 Hr" -msgstr "24 H" - -#: src/Dialogs.vala:1714 -msgid "_Shift photos/videos by the same amount" -msgstr "_Décaler les photos/vidéos de la même durée" - -#: src/Dialogs.vala:1719 -msgid "Set _all photos/videos to this time" -msgstr "Dé_finir cette date pour toutes les photos/vidéos" - -#: src/Dialogs.vala:1725 -msgid "_Modify original photo file" -msgid_plural "_Modify original photo files" -msgstr[0] "_Modifier la photo d'origine" -msgstr[1] "_Modifier les photos d'origine" - -#: src/Dialogs.vala:1729 -msgid "_Modify original file" -msgid_plural "_Modify original files" -msgstr[0] "_Modifier le fichier d'origine" -msgstr[1] "_Modifier les fichiers d'origine" - -#: src/Dialogs.vala:1817 -msgid "Original: " -msgstr "Original : " - -#: src/Dialogs.vala:1818 -msgid "%m/%d/%Y, %H:%M:%S" -msgstr "%d/%m/%Y, %H:%M:%S" - -#: src/Dialogs.vala:1819 -msgid "%m/%d/%Y, %I:%M:%S %p" -msgstr "%d/%m/%Y, %I:%M:%S %p" - -#: src/Dialogs.vala:1908 -#, c-format -msgid "" -"Exposure time will be shifted forward by\n" -"%d %s, %d %s, %d %s, and %d %s." -msgstr "" -"La date de la prise de vue sera avancée de\n" -"%d %s, %d %s, %d %s et %d %s." - -#: src/Dialogs.vala:1909 -#, c-format -msgid "" -"Exposure time will be shifted backward by\n" -"%d %s, %d %s, %d %s, and %d %s." -msgstr "" -"La date de la prise de vue sera reculée de\n" -"%d %s, %d %s, %d %s et %d %s." - -#: src/Dialogs.vala:1911 -msgid "day" -msgid_plural "days" -msgstr[0] "jour" -msgstr[1] "jours" - -#: src/Dialogs.vala:1912 -msgid "hour" -msgid_plural "hours" -msgstr[0] "heure" -msgstr[1] "heures" - -#: src/Dialogs.vala:1913 -msgid "minute" -msgid_plural "minutes" -msgstr[0] "minute" -msgstr[1] "minutes" - -#: src/Dialogs.vala:1914 -msgid "second" -msgid_plural "seconds" -msgstr[0] "seconde" -msgstr[1] "secondes" - -#: src/Dialogs.vala:1958 +#: src/Dialogs.vala:811 #, c-format msgid "" "\n" @@ -3831,93 +3691,13 @@ msgstr[1] "" "\n" "Et %d autres." -#: src/Dialogs.vala:1982 src/Dialogs.vala:2009 +#: src/Dialogs.vala:835 src/Dialogs.vala:862 msgid "Tags (separated by commas):" msgstr "Étiquettes (séparées par des virgules) :" -#: src/Dialogs.vala:2089 -msgid "Welcome!" -msgstr "Bienvenue !" - -#: src/Dialogs.vala:2096 -msgid "Welcome to Shotwell!" -msgstr "Bienvenue sur Shotwell" - -#: src/Dialogs.vala:2101 -msgid "To get started, import photos in any of these ways:" -msgstr "Pour commencer, importez des photos d'une des manières suivantes :" - -#: src/Dialogs.vala:2121 -#, c-format -msgid "Choose File %s Import From Folder" -msgstr "" -"Choisissez Fichier %s Importer depuis un dossier" - -#: src/Dialogs.vala:2122 -msgid "Drag and drop photos onto the Shotwell window" -msgstr "Faites glisser des photos dans la fenêtre de Shotwell" - -#: src/Dialogs.vala:2123 -msgid "Connect a camera to your computer and import" -msgstr "Connectez un appareil photo à votre ordinateur et importez des photos" - -#: src/Dialogs.vala:2134 -#, c-format -msgid "_Import photos from your %s folder" -msgstr "_Importer des photos du dossier %s" - -#: src/Dialogs.vala:2141 -msgid "You can also import photos in any of these ways:" -msgstr "" -"Vous pouvez également importer des photos avec les méthodes suivantes :" - -#: src/Dialogs.vala:2152 -msgid "_Don’t show this message again" -msgstr "_Ne plus afficher ce message" - -#: src/Dialogs.vala:2189 -#, c-format -msgid "Import photos from your %s library" -msgstr "Importer des photos de la photothèque %s" - -#. We're installed system-wide, so use the system help. -#. We're being run from the build directory; we'll have to handle clicks to this -#. link manually ourselves, due to a limitation of help: URIs. -#: src/Dialogs.vala:2373 src/Dialogs.vala:2377 -msgid "(Help)" -msgstr "(aide)" - -#: src/Dialogs.vala:2381 -#, c-format -msgid "Year%sMonth%sDay" -msgstr "Année%sMois%sJour" - -#: src/Dialogs.vala:2383 -#, c-format -msgid "Year%sMonth" -msgstr "Année%sMois" - -#: src/Dialogs.vala:2385 -#, c-format -msgid "Year%sMonth-Day" -msgstr "Année%sMois-Jour" - -#: src/Dialogs.vala:2387 -msgid "Year-Month-Day" -msgstr "Année-Mois-Jour" - -#: src/Dialogs.vala:2388 src/editing_tools/EditingTools.vala:760 -msgid "Custom" -msgstr "Personnalisé" - -#. Invalid pattern. -#: src/Dialogs.vala:2627 -msgid "Invalid pattern" -msgstr "Modèle non valable" - #. This function is used to determine whether or not files should be copied or linked when imported. #. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. -#: src/Dialogs.vala:2731 +#: src/Dialogs.vala:921 msgid "" "Shotwell can copy the photos into your library folder or it can import them " "without copying." @@ -3925,31 +3705,31 @@ msgstr "" "Shotwell peut copier les photos dans votre photothèque ou les importer sans " "les copier." -#: src/Dialogs.vala:2736 +#: src/Dialogs.vala:926 msgid "Co_py Photos" msgstr "Co_pier les photos" -#: src/Dialogs.vala:2737 +#: src/Dialogs.vala:927 msgid "_Import in Place" msgstr "Importer _sans copier" -#: src/Dialogs.vala:2738 +#: src/Dialogs.vala:928 msgid "Import to Library" msgstr "Importer dans la photothèque" -#: src/Dialogs.vala:2748 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:938 src/PhotoPage.vala:2897 msgid "Remove From Library" msgstr "Enlever de la photothèque" -#: src/Dialogs.vala:2749 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:939 src/PhotoPage.vala:2897 msgid "Removing Photo From Library" msgstr "Effacement de la photo de la photothèque" -#: src/Dialogs.vala:2749 +#: src/Dialogs.vala:939 msgid "Removing Photos From Library" msgstr "Effacement des photos de la photothèque" -#: src/Dialogs.vala:2763 +#: src/Dialogs.vala:953 #, c-format msgid "" "This will remove the photo/video from your Shotwell library. Would you also " @@ -3965,14 +3745,14 @@ msgstr[0] "" "Ceci enlèvera la photo/vidéo de votre photothèque Shotwell. Voulez-vous " "également déplacer le fichier dans la corbeille de votre ordinateur ?\n" "\n" -"Cette action n'est pas réversible." +"Cette action n’est pas réversible." msgstr[1] "" "Ceci enlèvera %d photos/vidéos de votre photothèque Shotwell. Voulez-vous " "également déplacer les fichiers dans la corbeille de votre ordinateur ?\n" "\n" -"Cette action n'est pas réversible." +"Cette action n’est pas réversible." -#: src/Dialogs.vala:2767 +#: src/Dialogs.vala:957 #, c-format msgid "" "This will remove the video from your Shotwell library. Would you also like " @@ -3988,14 +3768,14 @@ msgstr[0] "" "Ceci enlèvera la vidéo de votre photothèque Shotwell. Voulez-vous également " "déplacer le fichier dans la corbeille de votre ordinateur ?\n" "\n" -"Cette action n'est pas réversible." +"Cette action n’est pas réversible." msgstr[1] "" "Ceci enlèvera %d vidéos de votre photothèque Shotwell. Voulez-vous également " "déplacer les fichiers dans la corbeille de votre ordinateur ?\n" "\n" -"Cette action n'est pas réversible." +"Cette action n’est pas réversible." -#: src/Dialogs.vala:2771 +#: src/Dialogs.vala:961 #, c-format msgid "" "This will remove the photo from your Shotwell library. Would you also like " @@ -4011,14 +3791,14 @@ msgstr[0] "" "Ceci enlèvera la photo de votre photothèque Shotwell. Voulez-vous également " "déplacer le fichier dans la corbeille de votre ordinateur ?\n" "\n" -"Cette action n'est pas réversible." +"Cette action n’est pas réversible." msgstr[1] "" "Ceci enlèvera %d photos de votre photothèque Shotwell. Voulez-vous également " "déplacer les fichiers dans la corbeille de votre ordinateur ?\n" "\n" -"Cette action n'est pas réversible." +"Cette action n’est pas réversible." -#: src/Dialogs.vala:2803 +#: src/Dialogs.vala:993 #, c-format msgid "" "The photo or video cannot be moved to your desktop trash. Delete this file?" @@ -4032,7 +3812,7 @@ msgstr[1] "" "supprimer les fichiers ?" #. Alert the user that the files were not removed. -#: src/Dialogs.vala:2820 +#: src/Dialogs.vala:1010 #, c-format msgid "The photo or video cannot be deleted." msgid_plural "%d photos/videos cannot be deleted." @@ -4050,12 +3830,12 @@ msgstr "Hauteur" #: src/direct/DirectPhotoPage.vala:99 #, c-format msgid "%s does not exist." -msgstr "%s n'existe pas." +msgstr "%s n’existe pas." #: src/direct/DirectPhotoPage.vala:101 #, c-format msgid "%s is not a file." -msgstr "%s n'est pas un fichier." +msgstr "%s n’est pas un fichier." #: src/direct/DirectPhotoPage.vala:103 #, c-format @@ -4069,9 +3849,10 @@ msgstr "" #: src/direct/DirectPhotoPage.vala:120 #, c-format msgid "Unable open photo %s. Sorry." -msgstr "Impossible d'ouvrir la photo %s. Désolé." +msgstr "Impossible d’ouvrir la photo %s. Désolé." -#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:176 ui/direct.ui:8 +#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:146 ui/direct.ui:8 +#: ui/textentrydialog.ui:33 msgid "_Save" msgstr "Enre_gistrer" @@ -4091,7 +3872,7 @@ msgstr "Fermer _sans enregistrer" #: src/direct/DirectPhotoPage.vala:353 #, c-format msgid "Error while saving to %s: %s" -msgstr "Erreur lors de l'enregistrement de %s : %s" +msgstr "Erreur lors de l’enregistrement de %s : %s" #: src/direct/DirectPhotoPage.vala:383 src/direct/DirectPhotoPage.vala:404 msgid "Save As" @@ -4101,7 +3882,235 @@ msgstr "Enregistrer sous" #: src/DirectoryMonitor.vala:891 #, c-format msgid "Unable to monitor %s: Not a directory (%s)" -msgstr "Impossible de surveiller %s : ce n'est pas un dossier (%s)" +msgstr "Impossible de surveiller %s : ce n’est pas un dossier (%s)" + +#: src/dialogs/AdjustDateTimeDialog.vala:78 +msgid "AM" +msgstr "Matin" + +#: src/dialogs/AdjustDateTimeDialog.vala:79 +msgid "PM" +msgstr "Après-midi" + +#: src/dialogs/AdjustDateTimeDialog.vala:80 +msgid "24 Hr" +msgstr "24 H" + +#: src/dialogs/AdjustDateTimeDialog.vala:95 +msgid "_Shift photos/videos by the same amount" +msgstr "_Décaler les photos/vidéos de la même durée" + +#: src/dialogs/AdjustDateTimeDialog.vala:100 +msgid "Set _all photos/videos to this time" +msgstr "Dé_finir cette date pour toutes les photos/vidéos" + +#: src/dialogs/AdjustDateTimeDialog.vala:106 +msgid "_Modify original photo file" +msgid_plural "_Modify original photo files" +msgstr[0] "_Modifier la photo d’origine" +msgstr[1] "_Modifier les photos d’origine" + +#: src/dialogs/AdjustDateTimeDialog.vala:110 +msgid "_Modify original file" +msgid_plural "_Modify original files" +msgstr[0] "_Modifier le fichier d’origine" +msgstr[1] "_Modifier les fichiers d’origine" + +#: src/dialogs/AdjustDateTimeDialog.vala:213 +msgid "Original: " +msgstr "Original : " + +#: src/dialogs/AdjustDateTimeDialog.vala:214 +msgid "%m/%d/%Y, %H:%M:%S" +msgstr "%d/%m/%Y, %H:%M:%S" + +#: src/dialogs/AdjustDateTimeDialog.vala:215 +msgid "%m/%d/%Y, %I:%M:%S %p" +msgstr "%d/%m/%Y, %I:%M:%S %p" + +#: src/dialogs/AdjustDateTimeDialog.vala:306 +#, c-format +msgid "" +"Exposure time will be shifted forward by\n" +"%d %s, %d %s, %d %s, and %d %s." +msgstr "" +"La date de la prise de vue sera avancée de\n" +"%d %s, %d %s, %d %s et %d %s." + +#: src/dialogs/AdjustDateTimeDialog.vala:307 +#, c-format +msgid "" +"Exposure time will be shifted backward by\n" +"%d %s, %d %s, %d %s, and %d %s." +msgstr "" +"La date de la prise de vue sera reculée de\n" +"%d %s, %d %s, %d %s et %d %s." + +#: src/dialogs/AdjustDateTimeDialog.vala:309 +msgid "day" +msgid_plural "days" +msgstr[0] "jour" +msgstr[1] "jours" + +#: src/dialogs/AdjustDateTimeDialog.vala:310 +msgid "hour" +msgid_plural "hours" +msgstr[0] "heure" +msgstr[1] "heures" + +#: src/dialogs/AdjustDateTimeDialog.vala:311 +msgid "minute" +msgid_plural "minutes" +msgstr[0] "minute" +msgstr[1] "minutes" + +#: src/dialogs/AdjustDateTimeDialog.vala:312 +msgid "second" +msgid_plural "seconds" +msgstr[0] "seconde" +msgstr[1] "secondes" + +#. "Unmodified" and "Current," though they appear in the "Format:" popup menu, really +#. aren't formats so much as they are operating modes that determine specific formats. +#. Hereafter we'll refer to these as "special formats." +#: src/dialogs/ExportDialog.vala:15 +msgid "Unmodified" +msgstr "Non modifié" + +#: src/dialogs/ExportDialog.vala:16 +msgid "Current" +msgstr "Actuel" + +#. layout controls +#: src/dialogs/ExportDialog.vala:90 +msgid "_Format:" +msgstr "_Format :" + +#: src/dialogs/ExportDialog.vala:93 +msgid "_Quality:" +msgstr "_Qualité :" + +#: src/dialogs/ExportDialog.vala:96 +msgid "_Scaling constraint:" +msgstr "_Contrainte d’échelle :" + +#: src/dialogs/ExportDialog.vala:99 +msgid "_Pixels:" +msgstr "_Pixels :" + +#: src/dialogs/ExportDialog.vala:103 +msgid "Export _metadata:" +msgstr "Exporter les _métadonnées :" + +#. We're installed system-wide, so use the system help. +#. We're being run from the build directory; we'll have to handle clicks to this +#. link manually ourselves, due to a limitation of help: URIs. +#: src/dialogs/Preferences.vala:108 src/dialogs/Preferences.vala:112 +msgid "(Help)" +msgstr "(aide)" + +#: src/dialogs/Preferences.vala:116 +#, c-format +msgid "Year%sMonth%sDay" +msgstr "Année%sMois%sJour" + +#: src/dialogs/Preferences.vala:118 +#, c-format +msgid "Year%sMonth" +msgstr "Année%sMois" + +#: src/dialogs/Preferences.vala:120 +#, c-format +msgid "Year%sMonth-Day" +msgstr "Année%sMois-Jour" + +#: src/dialogs/Preferences.vala:122 +msgid "Year-Month-Day" +msgstr "Année-Mois-Jour" + +#: src/dialogs/Preferences.vala:123 src/editing_tools/EditingTools.vala:760 +msgid "Custom" +msgstr "Personnalisé" + +#. Invalid pattern. +#: src/dialogs/Preferences.vala:351 +msgid "Invalid pattern" +msgstr "Modèle non valable" + +#: src/dialogs/ProgressDialog.vala:97 +#, c-format +msgid "%d%%" +msgstr "%d%%" + +#: src/dialogs/SetBackgroundSlideshow.vala:49 +#, c-format +msgid "%d second" +msgid_plural "%d seconds" +msgstr[0] "%d seconde" +msgstr[1] "%d secondes" + +#: src/dialogs/SetBackgroundSlideshow.vala:52 +#, c-format +msgid "%d minute" +msgid_plural "%d minutes" +msgstr[0] "%d minute" +msgstr[1] "%d minutes" + +#: src/dialogs/SetBackgroundSlideshow.vala:56 +#, c-format +msgid "%d hour" +msgid_plural "%d hours" +msgstr[0] "%d heure" +msgstr[1] "%d heures" + +#: src/dialogs/SetBackgroundSlideshow.vala:59 +msgid "1 day" +msgstr "1 jour" + +#: src/dialogs/WelcomeDialog.vala:35 +msgid "Welcome!" +msgstr "Bienvenue !" + +#: src/dialogs/WelcomeDialog.vala:42 +msgid "Welcome to Shotwell!" +msgstr "Bienvenue sur Shotwell !" + +#: src/dialogs/WelcomeDialog.vala:47 +msgid "To get started, import photos in any of these ways:" +msgstr "Pour commencer, importez des photos d’une des manières suivantes :" + +#: src/dialogs/WelcomeDialog.vala:67 +#, c-format +msgid "Choose File %s Import From Folder" +msgstr "" +"Choisissez Fichier %s Importer depuis un dossier" + +#: src/dialogs/WelcomeDialog.vala:68 +msgid "Drag and drop photos onto the Shotwell window" +msgstr "Faites glisser des photos dans la fenêtre de Shotwell" + +#: src/dialogs/WelcomeDialog.vala:69 +msgid "Connect a camera to your computer and import" +msgstr "Connectez un appareil photo à votre ordinateur et importez des photos" + +#: src/dialogs/WelcomeDialog.vala:80 +#, c-format +msgid "_Import photos from your %s folder" +msgstr "_Importer des photos du dossier %s" + +#: src/dialogs/WelcomeDialog.vala:87 +msgid "You can also import photos in any of these ways:" +msgstr "" +"Vous pouvez également importer des photos avec les méthodes suivantes :" + +#: src/dialogs/WelcomeDialog.vala:98 +msgid "_Don’t show this message again" +msgstr "_Ne plus afficher ce message" + +#: src/dialogs/WelcomeDialog.vala:135 +#, c-format +msgid "Import photos from your %s library" +msgstr "Importer des photos de la photothèque %s" #: src/editing_tools/EditingTools.vala:644 msgid "Return to current photo dimensions" @@ -4109,7 +4118,7 @@ msgstr "Revenir aux dimensions actuelles de la photo" #: src/editing_tools/EditingTools.vala:647 msgid "Set the crop for this photo" -msgstr "Effectuer l'action de rognage" +msgstr "Effectuer l’action de rognage" #: src/editing_tools/EditingTools.vala:659 msgid "Pivot the crop rectangle between portrait and landscape orientations" @@ -4205,7 +4214,7 @@ msgstr "20 × 30 cm" #: src/editing_tools/EditingTools.vala:756 src/Printing.vala:831 msgid "24 × 40 cm" -msgstr "24 × 40 cm " +msgstr "24 × 40 cm" #: src/editing_tools/EditingTools.vala:757 src/Printing.vala:834 msgid "30 × 40 cm" @@ -4215,17 +4224,17 @@ msgstr "30 × 40 cm" msgid "A3 (297 × 420 mm)" msgstr "A3 (297 × 420 mm)" -#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:398 +#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:401 msgid "Size:" msgstr "Taille :" #: src/editing_tools/EditingTools.vala:1873 msgid "Close the red-eye tool" -msgstr "Fermer l'outil yeux rouges" +msgstr "Fermer l’outil yeux rouges" #: src/editing_tools/EditingTools.vala:1876 msgid "Remove any red-eye effects in the selected region" -msgstr "Enlever ou réduire l'effet yeux rouges dans la zone de sélection" +msgstr "Enlever ou réduire l’effet yeux rouges dans la zone de sélection" #: src/editing_tools/EditingTools.vala:2216 #: src/editing_tools/StraightenTool.vala:102 @@ -4233,8 +4242,8 @@ msgid "_Reset" msgstr "_Réinitialiser" #. fit both on the top line, emit and move on -#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:439 -#: src/Properties.vala:443 src/Properties.vala:450 +#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:442 +#: src/Properties.vala:446 src/Properties.vala:453 msgid "Exposure:" msgstr "Exposition :" @@ -4258,47 +4267,49 @@ msgstr "Température :" msgid "Shadows:" msgstr "Ombres :" -#: src/editing_tools/EditingTools.vala:2285 +#. FIXME: Hack to make the slider the same length as the other. Find out why it is aligned +#. Differently (probably because it only has positive values) +#: src/editing_tools/EditingTools.vala:2287 msgid "Highlights:" msgstr "Luminosité :" -#: src/editing_tools/EditingTools.vala:2341 +#: src/editing_tools/EditingTools.vala:2344 msgid "Reset Colors" msgstr "Réinitialiser les couleurs" -#: src/editing_tools/EditingTools.vala:2341 +#: src/editing_tools/EditingTools.vala:2344 msgid "Reset all color adjustments to original" -msgstr "Réinitialise tous les ajustements colorimétriques à l'original" +msgstr "Réinitialise tous les ajustements colorimétriques à l’original" -#: src/editing_tools/EditingTools.vala:2700 +#: src/editing_tools/EditingTools.vala:2703 msgid "Temperature" msgstr "Température" -#: src/editing_tools/EditingTools.vala:2712 +#: src/editing_tools/EditingTools.vala:2715 msgid "Tint" msgstr "Teinte" -#: src/editing_tools/EditingTools.vala:2724 +#: src/editing_tools/EditingTools.vala:2727 msgid "Contrast" msgstr "Contraste" -#: src/editing_tools/EditingTools.vala:2738 +#: src/editing_tools/EditingTools.vala:2741 msgid "Saturation" msgstr "Saturation" -#: src/editing_tools/EditingTools.vala:2751 +#: src/editing_tools/EditingTools.vala:2754 msgid "Exposure" msgstr "Exposition" -#: src/editing_tools/EditingTools.vala:2764 +#: src/editing_tools/EditingTools.vala:2767 msgid "Shadows" msgstr "Ombres" -#: src/editing_tools/EditingTools.vala:2777 +#: src/editing_tools/EditingTools.vala:2780 msgid "Highlights" msgstr "Luminosité" -#: src/editing_tools/EditingTools.vala:2787 +#: src/editing_tools/EditingTools.vala:2790 msgid "Contrast Expansion" msgstr "Expansion du contrate" @@ -4306,30 +4317,26 @@ msgstr "Expansion du contrate" msgid "Angle:" msgstr "Angle :" -#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:203 +#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:173 #: ui/direct.ui:144 ui/photo.ui:233 msgid "_Straighten" msgstr "Redre_sser" -#: src/events/Branch.vala:25 -msgid "Events" -msgstr "Événements" - -#: src/events/EventDirectoryItem.vala:83 +#: src/events/EventDirectoryItem.vala:97 #, c-format msgid "%d Photo/Video" msgid_plural "%d Photos/Videos" msgstr[0] "%d photo/vidéo" msgstr[1] "%d photos/vidéos" -#: src/events/EventDirectoryItem.vala:85 src/Properties.vala:358 +#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:361 #, c-format msgid "%d Video" msgid_plural "%d Videos" msgstr[0] "%d vidéo" msgstr[1] "%d vidéos" -#: src/events/EventDirectoryItem.vala:87 src/Properties.vala:356 +#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:359 #, c-format msgid "%d Photo" msgid_plural "%d Photos" @@ -4340,6 +4347,14 @@ msgstr[1] "%d photos" msgid "No Event" msgstr "Aucun événement" +#: src/events/EventsBranch.vala:25 +msgid "Events" +msgstr "Événements" + +#: src/events/EventsBranch.vala:25 +msgid "Browse through your events" +msgstr "Naviguez parmi les événements" + #: src/events/EventsDirectoryPage.vala:149 msgid "No events" msgstr "Aucun événement" @@ -4400,21 +4415,88 @@ msgstr "_Tout remplacer" msgid "Export" msgstr "Exporter" -#: src/folders/Branch.vala:144 +#: src/faces/FacesBranch.vala:89 src/Resources.vala:305 src/Resources.vala:306 +#: ui/faces.ui:403 +msgid "Faces" +msgstr "Visages" + +#: src/faces/FacesTool.vala:115 +msgid "Detect faces…" +msgstr "Détecter les visages…" + +#: src/faces/FacesTool.vala:140 +msgid "Detect faces on this photo" +msgstr "Détecter les visages sur cette photo" + +#: src/faces/FacesTool.vala:142 +msgid "Cancel face detection" +msgstr "Annuler la détection de visage" + +#: src/faces/FacesTool.vala:146 +msgid "Close the Faces tool without saving changes" +msgstr "Fermer l’outil Visages sans enregistrer les changements" + +#: src/faces/FacesTool.vala:153 src/faces/FacesTool.vala:185 +msgid "Click and drag to tag a face" +msgstr "Cliquer et glisser pour étiqueter un visage" + +#: src/faces/FacesTool.vala:180 +#, c-format +msgid "Click to edit face %s" +msgstr "Cliquer pour modifier le visage %s" + +#: src/faces/FacesTool.vala:189 +msgid "Stop dragging to add your face and name it." +msgstr "Arrêtez de glisser pour ajouter votre visage et le nommer." + +#: src/faces/FacesTool.vala:193 +msgid "Type a name for this face, then press Enter" +msgstr "Saisissez un nom pour ce visage, puis appuyez sur Entrée" + +#: src/faces/FacesTool.vala:197 +msgid "Move or modify the face shape or name and press Enter" +msgstr "Déplacez ou modifiez le nom ou la forme du visage et appuyez sur Entrée" + +#: src/faces/FacesTool.vala:201 +msgid "Detecting faces" +msgstr "Détection de visages" + +#: src/faces/FacesTool.vala:212 +msgid "If you don’t set the name of unknown faces they won’t be saved." +msgstr "" +"Si vous ne donnez pas de nom aux visages inconnus, ils ne seront pas " +"enregistrés." + +#: src/faces/FacesTool.vala:233 +msgid "Save changes and close the Faces tool" +msgstr "Enregistrer les modifications et fermer l’outil Visages" + +#: src/faces/FacesTool.vala:235 +msgid "No changes to save" +msgstr "Aucune modification à enregistrer" + +#: src/faces/FacesTool.vala:956 +msgid "Error trying to spawn face detection program:\n" +msgstr "Erreur lors du lancement du programme de détection de visages :\n" + +#: src/folders/FoldersBranch.vala:144 msgid "Folders" msgstr "Dossiers" -#: src/library/Branch.vala:30 src/library/Branch.vala:130 -#: ui/preferences_dialog.ui:512 -msgid "Library" -msgstr "Photothèque" +#: src/folders/FoldersBranch.vala:144 +msgid "Browse the library’s folder structure" +msgstr "Naviguez dans l’arborescence des dossiers de la phototèque" -#: src/library/Branch.vala:97 src/SearchFilter.vala:1083 -msgid "Photos" -msgstr "Photos" +#: src/import-roll/ImportRollBranch.vala:44 +msgid "Imports" +msgstr "Importations" -#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1102 -#: src/SearchFilter.vala:1103 +#: src/import-roll/ImportRollBranch.vala:44 +msgid "Browse the library’s import history" +msgstr "Naviguez dans l’historique d’importation de la phototèque" + +#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1124 +#: src/SearchFilter.vala:1125 msgid "Flagged" msgstr "Marquées" @@ -4435,19 +4517,36 @@ msgstr "%s importé" msgid "Last Import" msgstr "Dernière importation" -#: src/library/LibraryWindow.vala:507 +#: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 +#: ui/preferences_dialog.ui:465 +msgid "Library" +msgstr "Photothèque" + +#: src/library/LibraryBranch.vala:30 +msgid "Organize and browse your photos" +msgstr "Organisez et naviguez parmi vos photos" + +#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1105 +msgid "Photos" +msgstr "Photos" + +#: src/library/LibraryWindow.vala:526 msgid "Import From Folder" -msgstr "Importation d'un dossier" +msgstr "Importation d’un dossier" + +#: src/library/LibraryWindow.vala:533 +msgid "Recurse Into Subfolders" +msgstr "Inclure les sous-dossiers" -#: src/library/LibraryWindow.vala:576 ui/trash.ui:288 +#: src/library/LibraryWindow.vala:601 ui/trash.ui:288 msgid "Empty Trash" msgstr "Vider la corbeille" -#: src/library/LibraryWindow.vala:576 +#: src/library/LibraryWindow.vala:601 msgid "Emptying Trash…" msgstr "Suppression du contenu de la corbeille…" -#: src/library/LibraryWindow.vala:772 +#: src/library/LibraryWindow.vala:780 #, c-format msgid "" "Shotwell is configured to import photos to your home directory.\n" @@ -4459,35 +4558,35 @@ msgstr "" "personnel.\n" "Nous recommandons de changer cela dans Édition %s " "Préférences.\n" -"Voulez-vous continuer d'importer les photos ?" +"Voulez-vous continuer d’importer les photos ?" -#: src/library/LibraryWindow.vala:775 ui/preferences_dialog.ui:142 +#: src/library/LibraryWindow.vala:783 ui/preferences_dialog.ui:86 msgid "Library Location" msgstr "Emplacement de la photothèque" #. TODO: Specify which directory/file. -#: src/library/LibraryWindow.vala:788 +#: src/library/LibraryWindow.vala:796 msgid "Photos cannot be imported from this directory." msgstr "Les photos ne peuvent pas être importées depuis ce dossier." -#: src/library/LibraryWindow.vala:1068 +#: src/library/LibraryWindow.vala:1076 #, c-format msgid "%s (%d%%)" msgstr "%s (%d %%)" -#: src/library/LibraryWindow.vala:1112 src/library/LibraryWindow.vala:1123 +#: src/library/LibraryWindow.vala:1120 src/library/LibraryWindow.vala:1131 msgid "Updating library…" msgstr "Mise à jour de la photothèque…" -#: src/library/LibraryWindow.vala:1129 +#: src/library/LibraryWindow.vala:1137 msgid "Preparing to auto-import photos…" -msgstr "Préparation de l'importation automatique de photos…" +msgstr "Préparation de l’importation automatique de photos…" -#: src/library/LibraryWindow.vala:1134 +#: src/library/LibraryWindow.vala:1142 msgid "Auto-importing photos…" msgstr "Importation automatique de photos…" -#: src/library/LibraryWindow.vala:1142 +#: src/library/LibraryWindow.vala:1150 msgid "Writing metadata to files…" msgstr "Écriture des métadonnées dans les fichiers…" @@ -4507,7 +4606,7 @@ msgstr "Corbeille" msgid "Trash is empty" msgstr "La corbeille est vide" -#: src/library/TrashPage.vala:110 +#: src/library/TrashPage.vala:110 ui/faces.ui:469 msgid "Delete" msgstr "Supprimer" @@ -4522,8 +4621,8 @@ msgid "" "appears it was created by Shotwell %s (schema %d). This version is %s " "(schema %d). Please use the latest version of Shotwell." msgstr "" -"Votre photothèque n'est pas compatible avec cette version de Shotwell. Il " -"semble qu'elle a été créée par Shotwell %s (schéma %d). Cette version est la " +"Votre photothèque n’est pas compatible avec cette version de Shotwell. Il " +"semble qu’elle a été créée par Shotwell %s (schéma %d). Cette version est la " "%s (schéma %d). Veuillez utiliser la dernière version de Shotwell." #: src/main.vala:59 @@ -4533,9 +4632,9 @@ msgid "" "%d) to %s (schema %d). For more information please check the Shotwell Wiki " "at %s" msgstr "" -"Shotwell est dans l'impossibilité de mettre à niveau votre photothèque de la " +"Shotwell est dans l’impossibilité de mettre à niveau votre photothèque de la " "version %s (schéma %d) à la version %s (schéma %d). Pour plus " -"d'informations, veuillez consulter le wiki de Shotwell sur %s" +"d’informations, veuillez consulter le wiki de Shotwell sur %s" #: src/main.vala:65 #, c-format @@ -4545,8 +4644,8 @@ msgid "" "(schema %d). Please clear your library by deleting %s and re-import your " "photos." msgstr "" -"Votre photothèque n'est pas compatible avec cette version de Shotwell. Il " -"semble qu'elle a été créée par Shotwell %s (schéma %d). Cette version est la " +"Votre photothèque n’est pas compatible avec cette version de Shotwell. Il " +"semble qu’elle a été créée par Shotwell %s (schéma %d). Cette version est la " "%s (schéma %d). Veuillez effacer votre photothèque en supprimant %s puis " "réimportez vos photos." @@ -4557,38 +4656,42 @@ msgstr "" "Erreur inconnue lors de la tentative de vérification de la base de données " "de Shotwell : %s" -#: src/main.vala:104 +#: src/main.vala:108 msgid "Loading Shotwell" msgstr "Chargement de Shotwell" -#: src/main.vala:293 +#: src/main.vala:320 msgid "Path to Shotwell’s private data" msgstr "Chemin vers les données privées de Shotwell" -#: src/main.vala:293 +#: src/main.vala:320 msgid "DIRECTORY" msgstr "DOSSIER" -#: src/main.vala:297 +#: src/main.vala:324 msgid "Do not monitor library directory at runtime for changes" msgstr "" "Ne pas surveiller le répertoire de la photothèque pour détecter des " "changements" -#: src/main.vala:301 +#: src/main.vala:328 msgid "Don’t display startup progress meter" -msgstr "Ne pas afficher l'indicateur de progression du démarrage" +msgstr "Ne pas afficher l’indicateur de progression du démarrage" -#: src/main.vala:305 +#: src/main.vala:332 msgid "Show the application’s version" -msgstr "Afficher la version de l'application" +msgstr "Afficher la version de l’application" + +#: src/main.vala:336 +msgid "Start the application in fullscreen mode" +msgstr "Démarrer l’application en plein écran" #. init GTK (valac has already called g_threads_init()) -#: src/main.vala:342 +#: src/main.vala:373 msgid "[FILE]" msgstr "[FICHIER]" -#: src/main.vala:346 +#: src/main.vala:380 #, c-format msgid "Run “%s --help” to see a full list of available command line options.\n" msgstr "" @@ -4600,55 +4703,59 @@ msgstr "" msgid "Unable to process monitoring updates: %s" msgstr "Impossible de vérifier les mises à jour : %s" -#: src/MediaPage.vala:158 +#: src/MediaPage.vala:157 msgid "Adjust the size of the thumbnails" msgstr "Agrandir ou réduire les miniatures" -#: src/MediaPage.vala:503 +#: src/MediaPage.vala:500 #, c-format msgid "" "Shotwell was unable to play the selected video:\n" "%s" msgstr "" -"Shotwell n'a pas pu lire la vidéo sélectionnée :\n" +"Shotwell n’a pas pu lire la vidéo sélectionnée :\n" "%s" -#: src/Page.vala:1306 +#: src/Page.vala:1324 msgid "No photos/videos" msgstr "Aucune photo/vidéo" -#: src/Page.vala:1310 +#: src/Page.vala:1328 msgid "No photos/videos found which match the current filter" msgstr "Aucune photo ou vidéo ne correspond au filtre actuel" -#: src/Page.vala:2623 +#: src/Page.vala:2641 msgid "Photos cannot be exported to this directory." msgstr "Les photos ne peuvent pas être exportées dans ce dossier." #. previous button -#: src/PhotoPage.vala:538 +#: src/PhotoPage.vala:550 msgid "Previous photo" msgstr "Photo précédente" #. next button -#: src/PhotoPage.vala:544 +#: src/PhotoPage.vala:556 msgid "Next photo" msgstr "Photo suivante" -#: src/PhotoPage.vala:1850 +#: src/PhotoPage.vala:1862 #, c-format msgid "Photo source file missing: %s" msgstr "Fichier source de la photo manquant : %s" -#: src/PhotoPage.vala:3018 +#: src/PhotoPage.vala:3041 #, c-format msgid "Unable to export %s: %s" -msgstr "Impossible d'exporter %s : %s" +msgstr "Impossible d’exporter %s : %s" #: src/photos/BmpSupport.vala:32 msgid "BMP" msgstr "BMP" +#: src/photos/GifSupport.vala:32 +msgid "GIF" +msgstr "GIF" + #: src/photos/JfifSupport.vala:84 msgid "JPEG" msgstr "JPEG" @@ -4685,7 +4792,7 @@ msgstr "RAW" msgid "TIFF" msgstr "TIFF" -#: src/Photo.vala:3755 +#: src/Photo.vala:3774 msgid "modified" msgstr "modifiée" @@ -4719,7 +4826,7 @@ msgstr "32 images par page" #: src/Printing.vala:851 msgid "Image Settings" -msgstr "Paramètres de l'image" +msgstr "Paramètres de l’image" #: src/Printing.vala:864 msgid "Printing…" @@ -4732,23 +4839,23 @@ msgid "" "\n" "%s" msgstr "" -"Impossible d'imprimer la photo :\n" +"Impossible d’imprimer la photo :\n" "\n" "%s" -#: src/Properties.vala:87 +#: src/Properties.vala:97 msgid "Today" -msgstr "Aujourd'hui" +msgstr "Aujourd’hui" -#: src/Properties.vala:89 +#: src/Properties.vala:99 msgid "Yesterday" msgstr "Hier" -#: src/Properties.vala:346 +#: src/Properties.vala:349 msgid "Items:" msgstr "Éléments :" -#: src/Properties.vala:349 +#: src/Properties.vala:352 #, c-format msgid "%d Event" msgid_plural "%d Events" @@ -4756,115 +4863,111 @@ msgstr[0] "%d événement" msgstr[1] "%d événements" #. display only one date if start and end are the same -#: src/Properties.vala:380 +#: src/Properties.vala:383 msgid "Date:" msgstr "Date :" #. display only one time if start and end are the same -#: src/Properties.vala:384 +#: src/Properties.vala:387 msgid "Time:" msgstr "Heure :" #. display time range #. display date range -#: src/Properties.vala:387 src/Properties.vala:392 +#: src/Properties.vala:390 src/Properties.vala:395 msgid "From:" msgstr "De :" -#: src/Properties.vala:388 src/Properties.vala:393 +#: src/Properties.vala:391 src/Properties.vala:396 msgid "To:" msgstr "À :" -#: src/Properties.vala:407 +#: src/Properties.vala:410 msgid "Duration:" msgstr "Durée :" -#: src/Properties.vala:407 +#: src/Properties.vala:410 #, c-format msgid "%.1f seconds" msgstr "%.1f secondes" -#: src/Properties.vala:411 +#: src/Properties.vala:414 msgid "Developer:" msgstr "Révélateur :" #. nothing special to be done for now for Events -#: src/Properties.vala:586 +#: src/Properties.vala:592 msgid "Location:" msgstr "Emplacement :" -#: src/Properties.vala:589 +#: src/Properties.vala:595 msgid "File size:" msgstr "Taille du fichier :" -#: src/Properties.vala:593 +#: src/Properties.vala:599 msgid "Current Development:" msgstr "Développement actuel :" -#: src/Properties.vala:595 +#: src/Properties.vala:601 msgid "Original dimensions:" msgstr "Dimensions originales :" -#: src/Properties.vala:598 +#: src/Properties.vala:604 msgid "Camera make:" -msgstr "Fabricant de l'appareil photo :" +msgstr "Fabricant de l’appareil photo :" -#: src/Properties.vala:601 +#: src/Properties.vala:607 msgid "Camera model:" -msgstr "Modèle de l'appareil photo :" +msgstr "Modèle de l’appareil photo :" -#: src/Properties.vala:604 +#: src/Properties.vala:610 msgid "Flash:" msgstr "Flash :" -#: src/Properties.vala:606 +#: src/Properties.vala:612 msgid "Focal length:" msgstr "Distance focale :" -#: src/Properties.vala:609 +#: src/Properties.vala:615 msgid "Exposure date:" -msgstr "Date d'exposition :" +msgstr "Date d’exposition :" -#: src/Properties.vala:612 +#: src/Properties.vala:618 msgid "Exposure time:" -msgstr "Heure d'exposition :" +msgstr "Heure d’exposition :" -#: src/Properties.vala:615 +#: src/Properties.vala:621 msgid "Exposure bias:" -msgstr "Correction de l'exposition :" +msgstr "Correction de l’exposition :" -#: src/Properties.vala:617 +#: src/Properties.vala:631 msgid "GPS latitude:" msgstr "Latitude GPS :" -#: src/Properties.vala:620 +#: src/Properties.vala:634 msgid "GPS longitude:" msgstr "Longitude GPS :" -#: src/Properties.vala:623 +#: src/Properties.vala:637 msgid "Artist:" msgstr "Auteur :" -#: src/Properties.vala:625 +#: src/Properties.vala:639 msgid "Copyright:" msgstr "Copyright :" -#: src/Properties.vala:627 +#: src/Properties.vala:641 msgid "Software:" msgstr "Logiciel :" -#: src/Properties.vala:644 -msgid "Extended Information" -msgstr "Informations étendues" - #: src/publishing/PublishingPluginHost.vala:11 msgid "Preparing for upload" -msgstr "Préparation de l'envoi" +msgstr "Préparation de l’envoi" #: src/publishing/PublishingPluginHost.vala:12 #, c-format msgid "Uploading %d of %d" -msgstr "Envoi de l'élément %d sur %d" +msgstr "Envoi de l’élément %d sur %d" #: src/publishing/PublishingPluginHost.vala:81 #, c-format @@ -4904,37 +5007,37 @@ msgstr "Récupération des informations sur le compte…" msgid "Logging in…" msgstr "Connexion…" -#: src/publishing/PublishingUI.vala:195 +#: src/publishing/PublishingUI.vala:197 msgid "Publish Photos" msgstr "Publier les photos" -#: src/publishing/PublishingUI.vala:196 +#: src/publishing/PublishingUI.vala:198 msgid "Publish photos _to:" msgstr "Publier les photos _sur :" -#: src/publishing/PublishingUI.vala:198 +#: src/publishing/PublishingUI.vala:200 msgid "Publish Videos" msgstr "Publier les vidéos" -#: src/publishing/PublishingUI.vala:199 +#: src/publishing/PublishingUI.vala:201 msgid "Publish videos _to" msgstr "Publier les vidéos _sur" -#: src/publishing/PublishingUI.vala:201 +#: src/publishing/PublishingUI.vala:203 msgid "Publish Photos and Videos" msgstr "Publier des photos et des vidéos" -#: src/publishing/PublishingUI.vala:202 +#: src/publishing/PublishingUI.vala:204 msgid "Publish photos and videos _to" msgstr "Publier les photos et les vidéos _sur" #. There are no enabled publishing services that accept this media type, #. warn the user. -#: src/publishing/PublishingUI.vala:412 +#: src/publishing/PublishingUI.vala:414 msgid "Unable to publish" msgstr "Impossible de publier" -#: src/publishing/PublishingUI.vala:413 +#: src/publishing/PublishingUI.vala:415 #, c-format msgid "" "Shotwell cannot publish the selected items because you do not have a " @@ -4943,744 +5046,813 @@ msgid "" "Plugins tab." msgstr "" "Shotwell ne peut pas publier les éléments sélectionnés car aucun greffon de " -"publication compatible n'est activé. Pour corriger cela, choisissez " +"publication compatible n’est activé. Pour corriger cela, choisissez " "Édition %s Préférences et activez un ou plusieurs greffons de " -"publication dans l'onglet Greffons." +"publication dans l’onglet Greffons." #: src/publishing/Publishing.vala:16 msgid "Publishing" msgstr "Publication" -#: src/Resources.vala:141 src/Resources.vala:146 ui/collection.ui:151 +#: src/Resources.vala:111 src/Resources.vala:116 ui/collection.ui:151 msgid "Rotate" msgstr "Pivoter" -#: src/Resources.vala:142 +#: src/Resources.vala:112 msgid "Rotate Right" msgstr "Pivoter à droite" -#: src/Resources.vala:143 ui/collection.ui:148 +#: src/Resources.vala:113 ui/collection.ui:148 msgid "Rotate the photos right (press Ctrl to rotate left)" msgstr "" "Pivote les photos vers la droite (appuyer sur Ctrl pour pivoter vers la " "gauche)" -#: src/Resources.vala:147 +#: src/Resources.vala:117 msgid "Rotate Left" msgstr "Pivoter à gauche" -#: src/Resources.vala:148 +#: src/Resources.vala:118 msgid "Rotate the photos left" msgstr "Pivote les photos vers la gauche" -#: src/Resources.vala:151 +#: src/Resources.vala:121 msgid "Flip Horizontally" msgstr "Retourner horizontalement" -#: src/Resources.vala:154 +#: src/Resources.vala:124 msgid "Flip Vertically" msgstr "Retourner verticalement" -#: src/Resources.vala:156 ui/direct.ui:191 ui/events_directory.ui:168 -#: ui/event.ui:438 ui/import_queue.ui:83 ui/import.ui:201 ui/media.ui:421 -#: ui/offline.ui:198 ui/photo.ui:404 ui/tags.ui:440 ui/trash.ui:207 +#: src/Resources.vala:126 ui/direct.ui:192 ui/events_directory.ui:168 +#: ui/event.ui:438 ui/faces.ui:448 ui/import_queue.ui:83 ui/import.ui:201 +#: ui/manifest_widget.ui:35 ui/media.ui:421 ui/offline.ui:198 ui/photo.ui:405 +#: ui/tags.ui:440 ui/trash.ui:207 msgid "_About" msgstr "À _propos" -#: src/Resources.vala:157 +#: src/Resources.vala:127 msgid "_Apply" msgstr "_Appliquer" -#: src/Resources.vala:160 ui/direct.ui:44 ui/events_directory.ui:32 -#: ui/event.ui:47 ui/import.ui:40 ui/media.ui:47 ui/offline.ui:32 -#: ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 +#: src/Resources.vala:130 ui/direct.ui:44 ui/events_directory.ui:32 +#: ui/event.ui:47 ui/faces.ui:47 ui/import.ui:40 ui/media.ui:47 +#: ui/offline.ui:32 ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 msgid "_Edit" msgstr "É_dition" -#: src/Resources.vala:161 +#: src/Resources.vala:131 msgid "_Forward" msgstr "_En avant" -#: src/Resources.vala:162 ui/direct.ui:62 ui/events_directory.ui:125 +#: src/Resources.vala:132 ui/direct.ui:62 ui/events_directory.ui:125 #: ui/photo.ui:173 msgid "Fulls_creen" msgstr "_Plein écran" -#: src/Resources.vala:163 ui/direct.ui:173 ui/direct.ui:176 +#: src/Resources.vala:133 ui/direct.ui:174 ui/direct.ui:177 #: ui/events_directory.ui:150 ui/events_directory.ui:153 ui/event.ui:420 -#: ui/event.ui:423 ui/import_queue.ui:65 ui/import_queue.ui:68 ui/import.ui:183 -#: ui/import.ui:186 ui/media.ui:403 ui/media.ui:406 ui/offline.ui:180 -#: ui/offline.ui:183 ui/photo.ui:386 ui/photo.ui:389 ui/tags.ui:422 -#: ui/tags.ui:425 ui/trash.ui:189 ui/trash.ui:192 +#: ui/event.ui:423 ui/faces.ui:430 ui/faces.ui:433 ui/import_queue.ui:65 +#: ui/import_queue.ui:68 ui/import.ui:183 ui/import.ui:186 ui/media.ui:403 +#: ui/media.ui:406 ui/offline.ui:180 ui/offline.ui:183 ui/photo.ui:387 +#: ui/photo.ui:390 ui/tags.ui:422 ui/tags.ui:425 ui/trash.ui:189 +#: ui/trash.ui:192 msgid "_Help" msgstr "Aid_e" -#: src/Resources.vala:164 +#: src/Resources.vala:134 msgid "Leave _Fullscreen" msgstr "Quitter le mode _plein écran" -#: src/Resources.vala:165 src/Resources.vala:364 ui/tags.ui:450 +#: src/Resources.vala:135 src/Resources.vala:343 ui/tags.ui:450 msgid "_New" msgstr "_Nouveau" -#: src/Resources.vala:166 +#: src/Resources.vala:136 msgid "_Next" msgstr "_Suivante" -#: src/Resources.vala:169 src/Resources.vala:318 ui/events_directory.ui:65 -#: ui/event.ui:93 ui/import.ui:68 ui/media.ui:93 ui/offline.ui:72 -#: ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 +#: src/Resources.vala:139 src/Resources.vala:288 ui/events_directory.ui:65 +#: ui/event.ui:93 ui/faces.ui:93 ui/import.ui:68 ui/media.ui:93 +#: ui/offline.ui:72 ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 msgid "_Preferences" msgstr "_Préférences" -#: src/Resources.vala:170 +#: src/Resources.vala:140 msgid "_Previous" msgstr "_Précédente" -#: src/Resources.vala:172 ui/direct.ui:37 ui/events_directory.ui:25 -#: ui/event.ui:40 ui/import_queue.ui:31 ui/import.ui:33 ui/media.ui:40 -#: ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 +#: src/Resources.vala:142 ui/direct.ui:37 ui/events_directory.ui:25 +#: ui/event.ui:40 ui/faces.ui:40 ui/import_queue.ui:31 ui/import.ui:33 +#: ui/media.ui:40 ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 msgid "_Quit" msgstr "_Quitter" -#: src/Resources.vala:173 +#: src/Resources.vala:143 msgid "_Refresh" msgstr "A_ctualiser" -#: src/Resources.vala:175 +#: src/Resources.vala:145 msgid "_Revert" msgstr "_Rétablir" -#: src/Resources.vala:177 +#: src/Resources.vala:147 msgid "Save _As" msgstr "Enregistrer _sous" -#: src/Resources.vala:178 +#: src/Resources.vala:148 msgid "Sort _Ascending" -msgstr "Trier dans l'ordre croiss_ant" +msgstr "Trier dans l’ordre croiss_ant" -#: src/Resources.vala:179 +#: src/Resources.vala:149 msgid "Sort _Descending" -msgstr "Trier dans l'ordre _décroissant" +msgstr "Trier dans l’ordre _décroissant" -#: src/Resources.vala:180 +#: src/Resources.vala:150 msgid "_Stop" msgstr "A_rrêter" -#: src/Resources.vala:181 +#: src/Resources.vala:151 msgid "_Undelete" msgstr "_Récupérer" -#: src/Resources.vala:182 +#: src/Resources.vala:152 msgid "_Normal Size" msgstr "Taille _normale" -#: src/Resources.vala:183 +#: src/Resources.vala:153 msgid "Best _Fit" msgstr "Taille _idéale" -#: src/Resources.vala:184 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 -#: ui/photo.ui:144 ui/tags.ui:260 +#: src/Resources.vala:154 ui/direct.ui:69 ui/event.ui:260 ui/faces.ui:260 +#: ui/media.ui:260 ui/photo.ui:144 ui/tags.ui:260 msgid "Zoom _In" msgstr "Zoom _avant" -#: src/Resources.vala:185 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 -#: ui/photo.ui:149 ui/tags.ui:265 +#: src/Resources.vala:155 ui/direct.ui:74 ui/event.ui:265 ui/faces.ui:265 +#: ui/media.ui:265 ui/photo.ui:149 ui/tags.ui:265 msgid "Zoom _Out" msgstr "Zoom a_rrière" -#: src/Resources.vala:188 ui/collection.ui:167 +#: src/Resources.vala:158 ui/collection.ui:167 msgid "Enhance" msgstr "Améliorer" -#: src/Resources.vala:189 ui/collection.ui:164 +#: src/Resources.vala:159 ui/collection.ui:164 msgid "Automatically improve the photo’s appearance" msgstr "Rehausse automatiquement la qualité de la photo" -#: src/Resources.vala:192 +#: src/Resources.vala:162 msgid "Copy Color Adjustments" msgstr "Copier les ajustements de couleur" -#: src/Resources.vala:193 +#: src/Resources.vala:163 msgid "Copy the color adjustments applied to the photo" msgstr "Copie les ajustements de couleur appliqués à la photo" -#: src/Resources.vala:196 +#: src/Resources.vala:166 msgid "Paste Color Adjustments" msgstr "Coller les ajustements de couleur" -#: src/Resources.vala:197 +#: src/Resources.vala:167 msgid "Apply copied color adjustments to the selected photos" msgstr "Applique les ajustements de couleur copiés aux photos sélectionnées" -#: src/Resources.vala:199 ui/direct.ui:139 ui/photo.ui:228 +#: src/Resources.vala:169 ui/direct.ui:139 ui/photo.ui:228 msgid "_Crop" msgstr "_Rogner" -#: src/Resources.vala:200 +#: src/Resources.vala:170 msgid "Crop" msgstr "Rogner" -#: src/Resources.vala:201 +#: src/Resources.vala:171 msgid "Crop the photo’s size" msgstr "Effectue un rognage de la photo" -#: src/Resources.vala:204 +#: src/Resources.vala:174 msgid "Straighten" msgstr "Redresser" -#: src/Resources.vala:205 +#: src/Resources.vala:175 msgid "Straighten the photo" msgstr "Redresse la photo" -#: src/Resources.vala:207 ui/direct.ui:149 ui/photo.ui:238 +#: src/Resources.vala:177 ui/direct.ui:149 ui/photo.ui:238 msgid "_Red-eye" msgstr "_Yeux rouges" -#: src/Resources.vala:208 +#: src/Resources.vala:178 msgid "Red-eye" msgstr "Yeux rouges" -#: src/Resources.vala:209 +#: src/Resources.vala:179 msgid "Reduce or eliminate any red-eye effects in the photo" -msgstr "Réduit ou supprime complètement l'effet yeux rouges" +msgstr "Réduit ou supprime complètement l’effet yeux rouges" -#: src/Resources.vala:211 ui/direct.ui:154 ui/photo.ui:243 +#: src/Resources.vala:181 ui/direct.ui:154 ui/photo.ui:243 msgid "_Adjust" msgstr "_Ajuster" -#: src/Resources.vala:212 +#: src/Resources.vala:182 msgid "Adjust" msgstr "Ajuster" -#: src/Resources.vala:213 +#: src/Resources.vala:183 msgid "Adjust the photo’s color and tone" msgstr "Ajuste les couleurs et les tonalités de la photo" -#: src/Resources.vala:216 +#: src/Resources.vala:186 msgid "Revert to Original" -msgstr "Revenir à l'original" +msgstr "Revenir à l’original" -#: src/Resources.vala:218 +#: src/Resources.vala:188 msgid "Revert External E_dits" msgstr "Annuler les é_ditions externes" -#: src/Resources.vala:219 +#: src/Resources.vala:189 msgid "Revert to the master photo" msgstr "Revient à la photo originale" -#: src/Resources.vala:222 +#: src/Resources.vala:192 msgid "Set selected image to be the new desktop background" -msgstr "Définit l'image sélectionnée comme le nouveau fond d'écran" +msgstr "Définit l’image sélectionnée comme le nouveau fond d’écran" -#: src/Resources.vala:223 +#: src/Resources.vala:193 msgid "Set as _Desktop Slideshow…" -msgstr "Définir comme _diaporama d'écran…" +msgstr "Définir comme _diaporama d’écran…" -#: src/Resources.vala:225 ui/direct.ui:47 ui/events_directory.ui:35 -#: ui/event.ui:50 ui/import.ui:43 ui/media.ui:50 ui/offline.ui:35 -#: ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 +#: src/Resources.vala:195 ui/direct.ui:47 ui/events_directory.ui:35 +#: ui/event.ui:50 ui/faces.ui:50 ui/import.ui:43 ui/media.ui:50 +#: ui/offline.ui:35 ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 msgid "_Undo" msgstr "A_nnuler" -#: src/Resources.vala:226 +#: src/Resources.vala:196 msgid "Undo" msgstr "Annuler" -#: src/Resources.vala:228 ui/direct.ui:52 ui/events_directory.ui:40 -#: ui/event.ui:55 ui/import.ui:48 ui/media.ui:55 ui/offline.ui:40 -#: ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 +#: src/Resources.vala:198 ui/direct.ui:52 ui/events_directory.ui:40 +#: ui/event.ui:55 ui/faces.ui:55 ui/import.ui:48 ui/media.ui:55 +#: ui/offline.ui:40 ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 msgid "_Redo" msgstr "_Rétablir" -#: src/Resources.vala:229 +#: src/Resources.vala:199 msgid "Redo" msgstr "Rétablir" -#: src/Resources.vala:231 ui/events_directory.ui:139 ui/events_directory.ui:181 +#: src/Resources.vala:201 ui/events_directory.ui:139 ui/events_directory.ui:181 #: ui/event.ui:393 ui/event.ui:588 msgid "Re_name Event…" -msgstr "Re_nommer l'événement…" +msgstr "Re_nommer l’événement…" -#: src/Resources.vala:234 ui/event.ui:373 ui/event.ui:580 +#: src/Resources.vala:204 ui/event.ui:373 ui/event.ui:580 msgid "Make _Key Photo for Event" -msgstr "Faire de la photo une photo _clé de l'événement" +msgstr "Faire de la photo la photo _clé de l’événement" -#: src/Resources.vala:235 +#: src/Resources.vala:205 msgid "Make Key Photo for Event" -msgstr "Faire de la photo la photo clé de l'événement" +msgstr "Faire de la photo la photo clé de l’événement" -#: src/Resources.vala:237 ui/event.ui:382 ui/media.ui:376 ui/tags.ui:376 +#: src/Resources.vala:207 ui/event.ui:382 ui/faces.ui:376 ui/media.ui:376 +#: ui/tags.ui:376 msgid "_New Event" msgstr "_Nouvel événement" -#: src/Resources.vala:238 +#: src/Resources.vala:208 msgid "New Event" msgstr "Nouvel événement" -#: src/Resources.vala:240 +#: src/Resources.vala:210 msgid "Move Photos" msgstr "Déplacer les photos" -#: src/Resources.vala:241 +#: src/Resources.vala:211 msgid "Move photos to an event" msgstr "Déplace les photos vers un événement" -#: src/Resources.vala:243 ui/events_directory.ui:135 ui/events_directory.ui:177 +#: src/Resources.vala:213 ui/events_directory.ui:135 ui/events_directory.ui:177 msgid "_Merge Events" msgstr "_Fusionner les événements" -#: src/Resources.vala:244 +#: src/Resources.vala:214 msgid "Merge" msgstr "Fusionner" -#: src/Resources.vala:245 +#: src/Resources.vala:215 msgid "Combine events into a single event" msgstr "Combine plusieurs événements en un seul" -#: src/Resources.vala:247 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 -#: ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 ui/tags.ui:286 +#: src/Resources.vala:217 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 +#: ui/faces.ui:286 ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 +#: ui/tags.ui:286 msgid "_Set Rating" msgstr "_Noter" -#: src/Resources.vala:248 +#: src/Resources.vala:218 msgid "Set Rating" msgstr "Attribuer une note" -#: src/Resources.vala:249 +#: src/Resources.vala:219 msgid "Change the rating of your photo" msgstr "Changer la note de cette photo" -#: src/Resources.vala:251 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 -#: ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 ui/tags.ui:326 +#: src/Resources.vala:221 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 +#: ui/faces.ui:326 ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 +#: ui/tags.ui:326 msgid "_Increase" msgstr "_Augmenter" -#: src/Resources.vala:252 +#: src/Resources.vala:222 msgid "Increase Rating" msgstr "Augmenter la note" -#: src/Resources.vala:254 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 -#: ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 ui/tags.ui:331 +#: src/Resources.vala:224 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 +#: ui/faces.ui:331 ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 +#: ui/tags.ui:331 msgid "_Decrease" msgstr "A_baisser" -#: src/Resources.vala:255 +#: src/Resources.vala:225 msgid "Decrease Rating" msgstr "Abaisser la note" -#: src/Resources.vala:257 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 -#: ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 ui/tags.ui:314 +#: src/Resources.vala:227 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 +#: ui/faces.ui:314 ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 +#: ui/tags.ui:314 msgid "_Unrated" msgstr "_Sans note" -#: src/Resources.vala:258 +#: src/Resources.vala:228 msgid "Unrated" msgstr "Sans note" -#: src/Resources.vala:259 +#: src/Resources.vala:229 msgid "Rate Unrated" msgstr "Enlever la note" -#: src/Resources.vala:260 +#: src/Resources.vala:230 msgid "Setting as unrated" msgstr "Supprimer la note" -#: src/Resources.vala:261 +#: src/Resources.vala:231 msgid "Remove any ratings" msgstr "Enlève toute note" -#: src/Resources.vala:263 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 -#: ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 ui/tags.ui:319 +#: src/Resources.vala:233 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 +#: ui/faces.ui:319 ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 +#: ui/tags.ui:319 msgid "_Rejected" msgstr "Re_jeter" -#: src/Resources.vala:264 +#: src/Resources.vala:234 msgid "Rejected" msgstr "Rejetée" -#: src/Resources.vala:265 +#: src/Resources.vala:235 msgid "Rate Rejected" msgstr "Noter pour rejeter" -#: src/Resources.vala:266 +#: src/Resources.vala:236 msgid "Setting as rejected" msgstr "Noter pour rejeter" -#: src/Resources.vala:267 +#: src/Resources.vala:237 msgid "Set rating to rejected" msgstr "Noter pour rejeter" -#: src/Resources.vala:269 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 -#: ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 ui/trash.ui:162 +#: src/Resources.vala:239 ui/event.ui:196 ui/faces.ui:196 ui/import.ui:156 +#: ui/media.ui:196 ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 +#: ui/trash.ui:162 msgid "Rejected _Only" msgstr "Rejetées _uniquement" -#: src/Resources.vala:270 +#: src/Resources.vala:240 msgid "Rejected Only" msgstr "Rejetées uniquement" -#: src/Resources.vala:271 +#: src/Resources.vala:241 msgid "Show only rejected photos" msgstr "Afficher uniquement les photos rejetées" -#: src/Resources.vala:273 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 -#: ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 ui/trash.ui:156 +#: src/Resources.vala:243 ui/event.ui:190 ui/faces.ui:190 ui/import.ui:150 +#: ui/media.ui:190 ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 +#: ui/trash.ui:156 msgid "All + _Rejected" msgstr "Toutes + re_jetées" -#: src/Resources.vala:274 +#: src/Resources.vala:244 msgctxt "Tooltip" msgid "Show all photos, including rejected" msgstr "Afficher toutes les photos, y compris les rejetées" -#: src/Resources.vala:276 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 -#: ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 ui/trash.ui:150 +#: src/Resources.vala:246 ui/event.ui:184 ui/faces.ui:184 ui/import.ui:144 +#: ui/media.ui:184 ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 +#: ui/trash.ui:150 msgid "_All Photos" msgstr "_Toutes les photos" #. Button tooltip -#: src/Resources.vala:278 +#: src/Resources.vala:248 msgid "Show all photos" msgstr "Afficher toutes les photos" -#: src/Resources.vala:280 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 -#: ui/tags.ui:144 +#: src/Resources.vala:250 ui/event.ui:144 ui/faces.ui:144 ui/media.ui:144 +#: ui/photo.ui:120 ui/tags.ui:144 msgid "_Ratings" msgstr "_Notes" -#: src/Resources.vala:281 +#: src/Resources.vala:251 msgid "Display each photo’s rating" msgstr "Affiche la note de chaque photo" -#: src/Resources.vala:283 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 -#: ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 +#: src/Resources.vala:253 ui/event.ui:151 ui/faces.ui:151 ui/import.ui:111 +#: ui/media.ui:151 ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 msgid "_Filter Photos" msgstr "_Filtrer les photos" -#: src/Resources.vala:284 +#: src/Resources.vala:254 msgid "Filter Photos" msgstr "Filtrer les photos" -#: src/Resources.vala:285 +#: src/Resources.vala:255 msgid "Limit the number of photos displayed based on a filter" msgstr "Restreindre les photos affichées en utilisant un filtre" -#: src/Resources.vala:288 +#: src/Resources.vala:258 msgid "Duplicate" msgstr "Dupliquer" -#: src/Resources.vala:289 +#: src/Resources.vala:259 msgid "Make a duplicate of the photo" msgstr "Crée un duplicata de la photo" -#: src/Resources.vala:291 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 -#: ui/tags.ui:17 +#: src/Resources.vala:261 ui/event.ui:17 ui/faces.ui:17 ui/media.ui:17 +#: ui/photo.ui:17 ui/tags.ui:17 msgid "_Export…" msgstr "_Exporter…" -#: src/Resources.vala:293 +#: src/Resources.vala:263 msgid "_Print…" msgstr "Impri_mer…" -#: src/Resources.vala:295 +#: src/Resources.vala:265 msgid "Pu_blish…" msgstr "Pu_blier…" -#: src/Resources.vala:297 ui/collection.ui:189 +#: src/Resources.vala:267 ui/collection.ui:189 msgid "Publish to various websites" msgstr "Publie sur différents sites Web" -#: src/Resources.vala:299 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 -#: ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 ui/tags.ui:340 +#: src/Resources.vala:269 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 +#: ui/faces.ui:340 ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 +#: ui/tags.ui:340 msgid "Edit _Title…" msgstr "Modifier le _titre…" #. Button label -#: src/Resources.vala:301 +#: src/Resources.vala:271 msgctxt "Button Label" msgid "Edit Title" msgstr "Modifier le titre" -#: src/Resources.vala:303 ui/collection.ui:103 ui/events_directory.ui:144 +#: src/Resources.vala:273 ui/collection.ui:103 ui/events_directory.ui:144 #: ui/events_directory.ui:186 ui/event.ui:345 ui/event.ui:398 ui/event.ui:542 -#: ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 ui/tags.ui:345 +#: ui/faces.ui:345 ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 +#: ui/tags.ui:345 msgid "Edit _Comment…" msgstr "Modifier le _commentaire…" #. Button label -#: src/Resources.vala:305 +#: src/Resources.vala:275 msgid "Edit Comment" msgstr "Modifier le commentaire" -#: src/Resources.vala:307 ui/event.ui:592 +#: src/Resources.vala:277 ui/event.ui:592 msgid "Edit Event _Comment…" -msgstr "Modifier le _commentaire de l'événement…" +msgstr "Modifier le _commentaire de l’événement…" -#: src/Resources.vala:310 ui/direct.ui:167 ui/photo.ui:337 +#: src/Resources.vala:280 ui/direct.ui:167 ui/photo.ui:337 msgid "_Adjust Date and Time…" -msgstr "_Ajuster la date et l'heure…" +msgstr "_Ajuster la date et l’heure…" -#: src/Resources.vala:311 +#: src/Resources.vala:281 msgid "Adjust Date and Time" -msgstr "Ajuster la date et l'heure" +msgstr "Ajuster la date et l’heure" -#: src/Resources.vala:313 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 -#: ui/media.ui:390 ui/photo.ui:374 ui/tags.ui:390 +#: src/Resources.vala:283 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 +#: ui/faces.ui:390 ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 msgid "Add _Tags…" msgstr "Ajouter des é_tiquettes…" -#: src/Resources.vala:314 ui/photo_context.ui:17 +#: src/Resources.vala:284 ui/photo_context.ui:17 msgid "_Add Tags…" msgstr "_Ajouter des étiquettes…" #. Dialog title -#: src/Resources.vala:316 +#: src/Resources.vala:286 msgctxt "Dialog Title" msgid "Add Tags" msgstr "Ajouter des étiquettes" -#: src/Resources.vala:325 ui/photo_context.ui:135 +#: src/Resources.vala:295 ui/photo_context.ui:135 msgid "Send T_o…" msgstr "Envo_yer vers…" -#: src/Resources.vala:327 +#: src/Resources.vala:297 msgid "_Find…" msgstr "_Rechercher…" -#: src/Resources.vala:328 ui/collection.ui:217 ui/offline.ui:239 +#: src/Resources.vala:298 ui/collection.ui:217 ui/offline.ui:239 #: ui/trash.ui:312 msgid "Find" msgstr "Rechercher" -#: src/Resources.vala:329 ui/collection.ui:214 ui/offline.ui:236 +#: src/Resources.vala:299 ui/collection.ui:214 ui/offline.ui:236 #: ui/trash.ui:309 msgid "Find an image by typing text that appears in its name or tags" msgstr "" "Rechercher une image en saisissant du texte se trouvant dans son nom ou ses " "étiquettes" -#: src/Resources.vala:331 +#: src/Resources.vala:301 msgid "_Flag" msgstr "_Marquer" -#: src/Resources.vala:333 +#: src/Resources.vala:303 msgid "Un_flag" msgstr "_Enlever la marque" -#: src/Resources.vala:336 +#: src/Resources.vala:307 +msgid "Mark faces of people in the photo" +msgstr "Marquer les visages des personnes sur la photo" + +#: src/Resources.vala:308 +msgid "Modify Faces" +msgstr "Modifier les visages" + +#: src/Resources.vala:309 +msgid "Delete Face" +msgstr "Supprimer le visage" + +#: src/Resources.vala:311 src/Resources.vala:353 ui/tags.ui:456 +msgid "_Rename…" +msgstr "_Renommer…" + +#: src/Resources.vala:315 #, c-format msgid "Unable to launch editor: %s" -msgstr "Impossible de lancer l'éditeur : %s" +msgstr "Impossible de lancer l’éditeur : %s" -#: src/Resources.vala:341 +#: src/Resources.vala:320 #, c-format msgid "Add Tag “%s”" -msgstr "Ajouter l'étiquette « %s »" +msgstr "Ajouter l’étiquette « %s »" #. Used when adding two tags to photo(s) -#: src/Resources.vala:344 +#: src/Resources.vala:323 #, c-format msgid "Add Tags “%s” and “%s”" msgstr "Ajouter les étiquettes « %s » et « %s »" #. Undo/Redo command name (in Edit menu) -#: src/Resources.vala:349 +#: src/Resources.vala:328 msgctxt "UndoRedo menu entry" msgid "Add Tags" msgstr "Ajouter des étiquettes" -#: src/Resources.vala:354 +#: src/Resources.vala:333 #, c-format msgid "_Delete Tag “%s”" -msgstr "_Supprimer l'étiquette « %s »" +msgstr "_Supprimer l’étiquette « %s »" -#: src/Resources.vala:358 +#: src/Resources.vala:337 #, c-format msgid "Delete Tag “%s”" -msgstr "Supprimer l'étiquette « %s »" +msgstr "Supprimer l’étiquette « %s »" -#: src/Resources.vala:361 +#: src/Resources.vala:340 msgid "Delete Tag" -msgstr "Supprimer l'étiquette" +msgstr "Supprimer l’étiquette" -#: src/Resources.vala:367 +#: src/Resources.vala:346 #, c-format msgid "Re_name Tag “%s”…" -msgstr "Re_nommer l'étiquette « %s »…" +msgstr "Re_nommer l’étiquette « %s »…" -#: src/Resources.vala:371 +#: src/Resources.vala:350 #, c-format msgid "Rename Tag “%s” to “%s”" -msgstr "Renommer l'étiquette « %s » en « %s »" - -#: src/Resources.vala:374 ui/tags.ui:456 -msgid "_Rename…" -msgstr "_Renommer…" +msgstr "Renommer l’étiquette « %s » en « %s »" -#: src/Resources.vala:376 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 -#: ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:379 ui/tags.ui:395 +#: src/Resources.vala:355 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 +#: ui/faces.ui:395 ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 +#: ui/tags.ui:395 msgid "Modif_y Tags…" msgstr "Mod_ifier les étiquettes…" -#: src/Resources.vala:377 +#: src/Resources.vala:356 msgid "Modify Tags" msgstr "Modifier les étiquettes" -#: src/Resources.vala:380 +#: src/Resources.vala:359 #, c-format msgid "Tag Photo as “%s”" msgid_plural "Tag Photos as “%s”" msgstr[0] "Étiqueter la photo avec « %s »" msgstr[1] "Étiqueter les photos avec « %s »" -#: src/Resources.vala:386 +#: src/Resources.vala:365 #, c-format msgid "Tag the selected photo as “%s”" msgid_plural "Tag the selected photos as “%s”" msgstr[0] "Étiqueter la photo sélectionnée avec « %s »" msgstr[1] "Étiqueter les photos sélectionnées avec « %s »" -#: src/Resources.vala:392 +#: src/Resources.vala:371 #, c-format msgid "Remove Tag “%s” From _Photo" msgid_plural "Remove Tag “%s” From _Photos" -msgstr[0] "Enlever l'étiquette « %s » de la _photo" -msgstr[1] "Enlever l'étiquette « %s » des _photos" +msgstr[0] "Enlever l’étiquette « %s » de la _photo" +msgstr[1] "Enlever l’étiquette « %s » des _photos" -#: src/Resources.vala:398 +#: src/Resources.vala:377 #, c-format msgid "Remove Tag “%s” From Photo" msgid_plural "Remove Tag “%s” From Photos" -msgstr[0] "Enlever l'étiquette « %s » de la photo" -msgstr[1] "Enlever l'étiquette « %s » des photos" +msgstr[0] "Enlever l’étiquette « %s » de la photo" +msgstr[1] "Enlever l’étiquette « %s » des photos" -#: src/Resources.vala:404 +#: src/Resources.vala:383 #, c-format msgid "Unable to rename tag to “%s” because the tag already exists." -msgstr "Impossible de renommer l'étiquette en « %s » car ce nom existe déjà." +msgstr "Impossible de renommer l’étiquette en « %s » car ce nom existe déjà." -#: src/Resources.vala:408 +#: src/Resources.vala:387 #, c-format msgid "Unable to rename search to “%s” because the search already exists." msgstr "" "Impossible de renommer la recherche en « %s » parce que ce nom existe déjà." #. Saved search button -#: src/Resources.vala:411 src/SearchFilter.vala:1124 +#: src/Resources.vala:390 src/SearchFilter.vala:1146 msgid "Saved Search" msgstr "Recherche enregistrée" -#: src/Resources.vala:413 +#: src/Resources.vala:392 msgid "Delete Search" msgstr "Supprimer la recherche" -#: src/Resources.vala:416 ui/savedsearch.ui:11 +#: src/Resources.vala:395 ui/savedsearch.ui:10 msgid "_Edit…" msgstr "É_dition…" -#: src/Resources.vala:417 ui/savedsearch.ui:7 +#: src/Resources.vala:396 ui/savedsearch.ui:6 msgid "Re_name…" msgstr "Re_nommer…" -#: src/Resources.vala:420 +#: src/Resources.vala:399 #, c-format msgid "Rename Search “%s” to “%s”" msgstr "Renommer la recherche « %s » en « %s »" -#: src/Resources.vala:424 +#: src/Resources.vala:403 #, c-format msgid "Delete Search “%s”" msgstr "Supprimer la recherche « %s »" -#: src/Resources.vala:561 +#: src/Resources.vala:408 +#, c-format +msgid "Unable to rename face to “%s” because the face already exists." +msgstr "Impossible de renommer le visage en « %s » car ce nom existe déjà." + +#: src/Resources.vala:412 +#, c-format +msgid "Remove Face “%s” From _Photo" +msgid_plural "Remove Face “%s” From _Photos" +msgstr[0] "Enlever le visage « %s » de la _photo" +msgstr[1] "Enlever le visage « %s » des _photos" + +#: src/Resources.vala:417 +#, c-format +msgid "Remove Face “%s” From Photo" +msgid_plural "Remove Face “%s” From Photos" +msgstr[0] "Enlever le visage « %s » de la photo" +msgstr[1] "Enlever le visage « %s » des photos" + +#: src/Resources.vala:422 +#, c-format +msgid "Re_name Face “%s”…" +msgstr "Re_nommer le visage « %s »…" + +#: src/Resources.vala:426 +#, c-format +msgid "Rename Face “%s” to “%s”" +msgstr "Renommer le visage « %s » en « %s »" + +#: src/Resources.vala:430 +#, c-format +msgid "_Delete Face “%s”" +msgstr "_Supprimer le visage « %s »" + +#: src/Resources.vala:434 +#, c-format +msgid "Delete Face “%s”" +msgstr "Supprimer le visage « %s »" + +#: src/Resources.vala:636 #, c-format msgid "Rate %s" msgstr "Noter %s" -#: src/Resources.vala:562 +#: src/Resources.vala:637 #, c-format msgid "Set rating to %s" msgstr "Donner une note à %s" -#: src/Resources.vala:563 +#: src/Resources.vala:638 #, c-format msgid "Setting rating to %s" msgstr "Attribution de note à %s" -#: src/Resources.vala:565 +#: src/Resources.vala:640 #, c-format msgid "Display %s" msgstr "Afficher %s" -#: src/Resources.vala:566 +#: src/Resources.vala:641 #, c-format msgid "Only show photos with a rating of %s" msgstr "Montrer uniquement les photos avec une note de %s" -#: src/Resources.vala:567 +#: src/Resources.vala:642 #, c-format msgid "%s or Better" msgstr "%s ou plus" -#: src/Resources.vala:568 +#: src/Resources.vala:643 #, c-format msgid "Display %s or Better" msgstr "Afficher %s ou plus" -#: src/Resources.vala:569 +#: src/Resources.vala:644 #, c-format msgid "Only show photos with a rating of %s or better" -msgstr "N'afficher que les photos avec une note de %s ou plus" +msgstr "N’afficher que les photos avec une note de %s ou plus" -#: src/Resources.vala:660 ui/trash.ui:255 +#: src/Resources.vala:735 ui/trash.ui:255 msgid "Remove the selected photos from the trash" msgstr "Enlève les photos sélectionnées de la corbeille" -#: src/Resources.vala:661 ui/offline.ui:221 +#: src/Resources.vala:736 ui/offline.ui:221 msgid "Remove the selected photos from the library" msgstr "Enlève les photos sélectionnées de la photothèque" -#: src/Resources.vala:663 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 +#: src/Resources.vala:738 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 msgid "_Restore" msgstr "_Restaurer" -#: src/Resources.vala:664 ui/trash.ui:270 +#: src/Resources.vala:739 ui/trash.ui:270 msgid "Move the selected photos back into the library" msgstr "Réintègre les photos dans la photothèque" -#: src/Resources.vala:666 ui/collection.ui:123 ui/direct_context.ui:18 -#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/media.ui:27 +#: src/Resources.vala:741 ui/collection.ui:123 ui/direct_context.ui:18 +#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/faces.ui:27 ui/media.ui:27 #: ui/photo_context.ui:130 ui/photo.ui:35 ui/tags.ui:27 ui/trash.ui:19 #: ui/trash.ui:227 msgid "Show in File Mana_ger" msgstr "Ouvrir dans le _gestionnaire de fichiers" -#: src/Resources.vala:667 +#: src/Resources.vala:742 msgid "Open the selected photo’s directory in the file manager" msgstr "" "Ouvre le dossier des photos sélectionnées dans le gestionnaire de fichiers" -#: src/Resources.vala:670 +#: src/Resources.vala:745 #, c-format msgid "Unable to open in file manager: %s" -msgstr "Impossible d'ouvrir dans le gestionnaire de fichiers : %s" +msgstr "Impossible d’ouvrir dans le gestionnaire de fichiers : %s" -#: src/Resources.vala:673 ui/offline.ui:224 +#: src/Resources.vala:748 ui/event.ui:74 ui/faces.ui:74 ui/media.ui:74 +#: ui/offline.ui:58 ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 +#: ui/tags.ui:74 msgid "R_emove From Library" msgstr "Su_pprimer de la photothèque" -#: src/Resources.vala:675 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 -#: ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 ui/tags.ui:79 +#: src/Resources.vala:750 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 +#: ui/faces.ui:79 ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 +#: ui/tags.ui:79 msgid "_Move to Trash" msgstr "Déplacer dans la cor_beille" -#: src/Resources.vala:677 ui/events_directory.ui:58 ui/event.ui:86 -#: ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 ui/trash.ui:74 +#: src/Resources.vala:752 ui/events_directory.ui:58 ui/event.ui:86 +#: ui/faces.ui:86 ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 +#: ui/trash.ui:74 msgid "Select _All" msgstr "_Tout sélectionner" -#: src/Resources.vala:678 +#: src/Resources.vala:753 msgid "Select all items" msgstr "Sélectionner tous les éléments" @@ -5693,14 +5865,14 @@ msgstr "Sélectionner tous les éléments" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format #. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:739 +#: src/Resources.vala:814 msgid "%a %b %d, %Y" msgstr "%a %d %b %Y" #. / Locale-specific starting date format for multi-date strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:744 +#: src/Resources.vala:819 msgctxt "MultidayFormat" msgid "%a %b %d" msgstr "%a %d" @@ -5708,7 +5880,7 @@ msgstr "%a %d" #. / Locale-specific ending date format for multi-date strings, #. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:749 +#: src/Resources.vala:824 msgctxt "MultidayFormat" msgid "%d, %Y" msgstr "%d %b %Y" @@ -5716,7 +5888,7 @@ msgstr "%d %b %Y" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:754 +#: src/Resources.vala:829 msgctxt "MultimonthFormat" msgid "%a %b %d" msgstr "%a %d %b" @@ -5724,299 +5896,283 @@ msgstr "%a %d %b" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:759 +#: src/Resources.vala:834 msgctxt "MultimonthFormat" msgid "%a %b %d, %Y" msgstr "%a %d %b %Y" -#: src/Screensaver.vala:18 src/SlideshowPage.vala:115 +#: src/Screensaver.vala:18 src/SlideshowPage.vala:117 msgid "Slideshow" msgstr "Diaporama" -#: src/searches/Branch.vala:68 -msgid "Saved Searches" -msgstr "Recherches enregistrées" - #. Ordering must correspond with SearchConditionText.Context -#: src/searches/SavedSearchDialog.vala:162 +#: src/searches/SavedSearchDialog.vala:170 msgid "contains" msgstr "contient" #. Ordering must correspond with Context -#: src/searches/SavedSearchDialog.vala:163 -#: src/searches/SavedSearchDialog.vala:494 +#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:502 msgid "is exactly" msgstr "vaut exactement" -#: src/searches/SavedSearchDialog.vala:164 +#: src/searches/SavedSearchDialog.vala:172 msgid "starts with" msgstr "commence par" -#: src/searches/SavedSearchDialog.vala:165 +#: src/searches/SavedSearchDialog.vala:173 msgid "ends with" msgstr "se termine par" -#: src/searches/SavedSearchDialog.vala:166 +#: src/searches/SavedSearchDialog.vala:174 msgid "does not contain" msgstr "ne contient pas" -#: src/searches/SavedSearchDialog.vala:167 -#: src/searches/SavedSearchDialog.vala:498 +#: src/searches/SavedSearchDialog.vala:175 +#: src/searches/SavedSearchDialog.vala:506 msgid "is not set" -msgstr "n'est pas défini" +msgstr "n’est pas défini" -#: src/searches/SavedSearchDialog.vala:168 +#: src/searches/SavedSearchDialog.vala:176 msgid "is set" msgstr "est défini" #. Ordering must correspond with SearchConditionMediaType.Context -#: src/searches/SavedSearchDialog.vala:242 -#: src/searches/SavedSearchDialog.vala:373 -#: src/searches/SavedSearchDialog.vala:438 +#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:381 +#: src/searches/SavedSearchDialog.vala:446 msgid "is" msgstr "est" -#: src/searches/SavedSearchDialog.vala:243 +#: src/searches/SavedSearchDialog.vala:251 msgid "is not" -msgstr "n'est pas" +msgstr "n’est pas" #. Ordering must correspond with SearchConditionMediaType.MediaType -#: src/searches/SavedSearchDialog.vala:249 +#: src/searches/SavedSearchDialog.vala:257 msgid "any photo" msgstr "toute photo" -#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:258 msgid "a raw photo" msgstr "une photo brute" -#: src/searches/SavedSearchDialog.vala:251 +#: src/searches/SavedSearchDialog.vala:259 msgid "a video" msgstr "une vidéo" -#: src/searches/SavedSearchDialog.vala:305 +#: src/searches/SavedSearchDialog.vala:313 msgid "has" msgstr "a" -#: src/searches/SavedSearchDialog.vala:306 +#: src/searches/SavedSearchDialog.vala:314 msgid "has no" -msgstr "n'a pas" +msgstr "n’a pas" -#: src/searches/SavedSearchDialog.vala:311 +#: src/searches/SavedSearchDialog.vala:319 msgid "modifications" msgstr "modifications" -#: src/searches/SavedSearchDialog.vala:312 +#: src/searches/SavedSearchDialog.vala:320 msgid "internal modifications" msgstr "modifications internes" -#: src/searches/SavedSearchDialog.vala:313 +#: src/searches/SavedSearchDialog.vala:321 msgid "external modifications" msgstr "modifications externes" #. Ordering must correspond with SearchConditionFlagged.State -#: src/searches/SavedSearchDialog.vala:367 +#: src/searches/SavedSearchDialog.vala:375 msgid "flagged" msgstr "marquée" -#: src/searches/SavedSearchDialog.vala:368 +#: src/searches/SavedSearchDialog.vala:376 msgid "not flagged" msgstr "non marquée" -#: src/searches/SavedSearchDialog.vala:431 +#: src/searches/SavedSearchDialog.vala:439 msgid "and higher" msgstr "et plus" -#: src/searches/SavedSearchDialog.vala:432 +#: src/searches/SavedSearchDialog.vala:440 msgid "only" msgstr "précisément" -#: src/searches/SavedSearchDialog.vala:433 +#: src/searches/SavedSearchDialog.vala:441 msgid "and lower" msgstr "et moins" -#: src/searches/SavedSearchDialog.vala:495 +#: src/searches/SavedSearchDialog.vala:503 msgid "is after" msgstr "est après" -#: src/searches/SavedSearchDialog.vala:496 +#: src/searches/SavedSearchDialog.vala:504 msgid "is before" msgstr "est avant" -#: src/searches/SavedSearchDialog.vala:497 +#: src/searches/SavedSearchDialog.vala:505 msgid "is between" msgstr "est entre" -#: src/searches/SavedSearchDialog.vala:510 +#: src/searches/SavedSearchDialog.vala:518 msgid "and" msgstr "et" -#: src/searches/SavedSearchDialog.vala:691 -msgid "Search" -msgstr "Rechercher" - -#: src/searches/SavedSearchDialog.vala:696 -msgid "Cancel" -msgstr "Annuler" - -#: src/searches/SavedSearchDialog.vala:697 -msgid "OK" -msgstr "Valider" - -#: src/searches/SavedSearchDialog.vala:716 -msgid "any" -msgstr "n'importe quel" - -#: src/searches/SavedSearchDialog.vala:717 -msgid "all" -msgstr "toutes" - -#: src/searches/SavedSearchDialog.vala:718 -msgid "none" -msgstr "aucune" - -#: src/searches/SearchBoolean.vala:157 +#: src/searches/SearchBoolean.vala:169 msgid "Any text" -msgstr "N'importe quel texte" +msgstr "N’importe quel texte" -#: src/searches/SearchBoolean.vala:160 +#: src/searches/SearchBoolean.vala:172 msgid "Title" msgstr "Titre" -#: src/searches/SearchBoolean.vala:163 +#: src/searches/SearchBoolean.vala:175 msgid "Tag" msgstr "Étiquette" -#: src/searches/SearchBoolean.vala:166 +#: src/searches/SearchBoolean.vala:178 msgid "Comment" msgstr "Commentaire" -#: src/searches/SearchBoolean.vala:169 +#: src/searches/SearchBoolean.vala:181 msgid "Event name" -msgstr "Nom d'événement" +msgstr "Nom d’événement" -#: src/searches/SearchBoolean.vala:172 +#: src/searches/SearchBoolean.vala:184 msgid "File name" msgstr "Nom de fichier" -#: src/searches/SearchBoolean.vala:175 +#: src/searches/SearchBoolean.vala:187 +msgid "Face" +msgstr "Visage" + +#: src/searches/SearchBoolean.vala:190 msgid "Media type" msgstr "Type de média" -#: src/searches/SearchBoolean.vala:178 +#: src/searches/SearchBoolean.vala:193 msgid "Flag state" msgstr "État marqué" -#: src/searches/SearchBoolean.vala:181 +#: src/searches/SearchBoolean.vala:196 msgid "Photo state" msgstr "État de la photo" -#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:831 -#: src/SearchFilter.vala:1114 +#: src/searches/SearchBoolean.vala:199 src/SearchFilter.vala:853 +#: src/SearchFilter.vala:1136 msgid "Rating" msgstr "Note" -#: src/searches/SearchBoolean.vala:187 +#: src/searches/SearchBoolean.vala:202 msgid "Date" msgstr "Date" -#: src/SearchFilter.vala:815 +#: src/searches/SearchesBranch.vala:68 +msgid "Saved Searches" +msgstr "Recherches enregistrées" + +#: src/searches/SearchesBranch.vala:68 +msgid "Organize your saved searches" +msgstr "Organisez vos recherches enregistrées" + +#: src/SearchFilter.vala:837 msgid "★+ Rating" msgstr "Note *+" -#: src/SearchFilter.vala:818 +#: src/SearchFilter.vala:840 msgid "★★+ Rating" msgstr "Note ★★+" -#: src/SearchFilter.vala:821 +#: src/SearchFilter.vala:843 msgid "★★★+ Rating" msgstr "Note ★★★+" -#: src/SearchFilter.vala:824 +#: src/SearchFilter.vala:846 msgid "★★★★+ Rating" msgstr "Note ★★★★+" -#: src/SearchFilter.vala:828 +#: src/SearchFilter.vala:850 msgid "★★★★★+ Rating" msgstr "Note ★★★★★+" -#: src/SearchFilter.vala:1064 +#: src/SearchFilter.vala:1086 #, c-format msgid "Error loading search bar UI: %s" -msgstr "Erreur de chargement de l'interface de la barre de recherche : %s" +msgstr "Erreur de chargement de l’interface de la barre de recherche : %s" #. Ticket #3260 - Add a 'close' context menu to #. the searchbar. #. Prepare the close menu for use, but don't #. display it yet; we'll connect it to secondary #. click later on. -#: src/SearchFilter.vala:1073 +#: src/SearchFilter.vala:1095 msgid "Close" msgstr "Fermer" #. Type label and toggles -#: src/SearchFilter.vala:1079 +#: src/SearchFilter.vala:1101 msgid "Type" msgstr "Type" -#: src/SearchFilter.vala:1086 +#: src/SearchFilter.vala:1108 msgid "Videos" msgstr "Vidéos" -#: src/SearchFilter.vala:1089 +#: src/SearchFilter.vala:1111 msgid "RAW Photos" msgstr "Photos RAW" # Button tooltip -#: src/SearchFilter.vala:1125 +#: src/SearchFilter.vala:1147 msgid "Use a saved search to filter items in the current view" msgstr "" -"Utilisez une recherche enregistrée pour filtrer les éléments de l'affichage " +"Utilisez une recherche enregistrée pour filtrer les éléments de l’affichage " "actuel" #. Set up toolbar #. add toolbar buttons -#: src/SlideshowPage.vala:134 +#: src/SlideshowPage.vala:136 msgid "Back" msgstr "Précédente" -#: src/SlideshowPage.vala:136 +#: src/SlideshowPage.vala:138 msgid "Go to the previous photo" msgstr "Revient à la photo précédente" -#: src/SlideshowPage.vala:141 src/SlideshowPage.vala:248 +#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:250 msgid "Pause" msgstr "Pause" -#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:249 +#: src/SlideshowPage.vala:145 src/SlideshowPage.vala:251 msgid "Pause the slideshow" msgstr "Met le diaporama en pause" -#: src/SlideshowPage.vala:148 +#: src/SlideshowPage.vala:150 msgid "Next" msgstr "Suivante" -#: src/SlideshowPage.vala:150 +#: src/SlideshowPage.vala:152 msgid "Go to the next photo" msgstr "Passe à la photo suivante" -#: src/SlideshowPage.vala:157 ui/slideshow_settings.ui:21 +#: src/SlideshowPage.vala:159 ui/slideshow_settings.ui:21 msgid "Settings" msgstr "Paramètres" -#: src/SlideshowPage.vala:158 +#: src/SlideshowPage.vala:160 msgid "Change slideshow settings" msgstr "Configurer le diaporama" #. An entire slideshow set might be missing, so check for a loop. -#: src/SlideshowPage.vala:212 +#: src/SlideshowPage.vala:214 msgid "All photo source files are missing." msgstr "Tous les fichiers sources des photos sont manquants." -#: src/SlideshowPage.vala:244 +#: src/SlideshowPage.vala:246 msgid "Play" msgstr "Lancer" -#: src/SlideshowPage.vala:245 +#: src/SlideshowPage.vala:247 msgid "Continue the slideshow" msgstr "Poursuit le diaporama" @@ -6028,7 +6184,7 @@ msgstr "Transitions de diaporama" msgid "(None)" msgstr "(aucun)" -#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:485 +#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:414 msgid "None" msgstr "Aucun" @@ -6036,41 +6192,41 @@ msgstr "Aucun" msgid "Random" msgstr "Aléatoire" -#: src/tags/Branch.vala:131 +#: src/tags/TagsBranch.vala:131 msgid "Tags" msgstr "Étiquettes" +#: src/tags/TagsBranch.vala:131 +msgid "Organize and browse your photo’s tags" +msgstr "Organisez et parcourez vos étiquettes de photos" + #: src/Tag.vala:830 msgid "untitled" msgstr "sans nom" #. multiple videos -#: src/VideoSupport.vala:520 +#: src/VideoSupport.vala:521 msgid "Export Videos" msgstr "Exporter les vidéos" -#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/media.ui:281 -#: ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 +#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/faces.ui:281 +#: ui/media.ui:281 ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 msgid "Toggle _Flag" msgstr "Ajouter/enlever la _marque" -#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/media.ui:353 -#: ui/photo_context.ui:88 ui/photo.ui:343 ui/tags.ui:353 +#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/faces.ui:353 +#: ui/media.ui:353 ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 msgid "_Developer" msgstr "_Révélateur" -#: ui/collection.ui:108 ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:360 -msgid "Open with E_xternal Editor" -msgstr "Ouvrir avec un éditeur e_xterne" - -#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/media.ui:381 -#: ui/photo_context.ui:126 ui/tags.ui:381 +#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/faces.ui:381 +#: ui/media.ui:381 ui/photo_context.ui:126 ui/tags.ui:381 msgid "View Eve_nt for Photo" -msgstr "Afficher l'é_vénement de la photo" +msgstr "Afficher l’é_vénement de la photo" -#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/import_queue.ui:5 -#: ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 ui/photo.ui:5 ui/tags.ui:5 -#: ui/trash.ui:5 +#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/faces.ui:5 +#: ui/import_queue.ui:5 ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 +#: ui/photo.ui:5 ui/tags.ui:5 ui/trash.ui:5 msgid "_File" msgstr "_Fichier" @@ -6078,7 +6234,7 @@ msgstr "_Fichier" msgid "Save _As…" msgstr "Enregistrer _sous…" -#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 +#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 ui/faces.ui:99 #: ui/import_queue.ui:38 ui/import.ui:74 ui/media.ui:99 ui/offline.ui:78 #: ui/photo.ui:95 ui/tags.ui:99 ui/trash.ui:87 msgid "_View" @@ -6112,288 +6268,336 @@ msgstr "Photo _suivante" msgid "T_ools" msgstr "_Outils" -#: ui/direct.ui:181 ui/events_directory.ui:158 ui/event.ui:428 +#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 ui/faces.ui:438 #: ui/import_queue.ui:73 ui/import.ui:191 ui/media.ui:411 ui/offline.ui:188 -#: ui/photo.ui:394 ui/tags.ui:430 ui/trash.ui:197 +#: ui/photo.ui:395 ui/tags.ui:430 ui/trash.ui:197 msgid "_Frequently Asked Questions" msgstr "_Foire aux questions" -#: ui/direct.ui:185 ui/events_directory.ui:162 ui/event.ui:432 +#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 ui/faces.ui:442 #: ui/import_queue.ui:77 ui/import.ui:195 ui/media.ui:415 ui/offline.ui:192 -#: ui/photo.ui:398 ui/tags.ui:434 ui/trash.ui:201 +#: ui/photo.ui:399 ui/tags.ui:434 ui/trash.ui:201 msgid "_Report a Problem…" msgstr "_Signaler un problème…" -#: ui/events_directory.ui:8 ui/event.ui:8 ui/import_queue.ui:14 ui/import.ui:8 -#: ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 ui/trash.ui:8 -msgid "_Import from Folder…" +#: ui/events_directory.ui:8 ui/event.ui:8 ui/faces.ui:8 ui/import_queue.ui:14 +#: ui/import.ui:8 ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 +#: ui/trash.ui:8 +msgid "_Import From Folder…" msgstr "_Importer depuis un dossier…" -#: ui/events_directory.ui:13 ui/event.ui:13 ui/import_queue.ui:19 -#: ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 ui/photo.ui:13 ui/tags.ui:13 -#: ui/trash.ui:13 +#: ui/events_directory.ui:13 ui/event.ui:13 ui/faces.ui:13 +#: ui/import_queue.ui:19 ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 +#: ui/photo.ui:13 ui/tags.ui:13 ui/trash.ui:13 msgid "Import From _Application…" -msgstr "Importer à partir d'une _application…" +msgstr "Importer à partir d’une _application…" -#: ui/events_directory.ui:19 ui/event.ui:34 ui/import_queue.ui:25 -#: ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 ui/photo.ui:42 ui/tags.ui:34 -#: ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 +#: ui/events_directory.ui:19 ui/event.ui:34 ui/faces.ui:34 +#: ui/import_queue.ui:25 ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 +#: ui/photo.ui:42 ui/tags.ui:34 ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 msgid "Empty T_rash" msgstr "Vider la co_rbeille" -#: ui/events_directory.ui:47 ui/event.ui:62 ui/import.ui:55 ui/media.ui:62 -#: ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 +#: ui/events_directory.ui:47 ui/event.ui:62 ui/faces.ui:62 ui/import.ui:55 +#: ui/media.ui:62 ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 msgid "_Find" msgstr "_Rechercher" -#: ui/events_directory.ui:51 ui/event.ui:66 ui/media.ui:66 ui/offline.ui:51 -#: ui/photo.ui:70 ui/search_sidebar_context.ui:6 +#: ui/events_directory.ui:51 ui/event.ui:66 ui/faces.ui:66 ui/media.ui:66 +#: ui/offline.ui:51 ui/photo.ui:70 ui/search_sidebar_context.ui:6 #: ui/sidebar_default_context.ui:6 ui/tags.ui:66 ui/trash.ui:56 msgid "Ne_w Saved Search…" msgstr "Nou_velle recherche enregistrée…" -#: ui/events_directory.ui:74 ui/event.ui:102 ui/import_queue.ui:41 -#: ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 ui/photo.ui:98 -#: ui/tags.ui:102 ui/trash.ui:90 +#: ui/events_directory.ui:74 ui/event.ui:102 ui/faces.ui:102 +#: ui/import_queue.ui:41 ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 +#: ui/photo.ui:98 ui/tags.ui:102 ui/trash.ui:90 msgid "_Basic Information" msgstr "Informations _basiques" -#: ui/events_directory.ui:79 ui/event.ui:107 ui/import.ui:82 ui/media.ui:107 -#: ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 ui/trash.ui:95 +#: ui/events_directory.ui:79 ui/event.ui:107 ui/faces.ui:107 ui/import.ui:82 +#: ui/media.ui:107 ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 +#: ui/trash.ui:95 msgid "E_xtended Information" msgstr "Informations étend_ues" -#: ui/events_directory.ui:84 ui/event.ui:112 ui/import.ui:87 ui/media.ui:112 -#: ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 +#: ui/events_directory.ui:84 ui/event.ui:112 ui/faces.ui:112 ui/import.ui:87 +#: ui/media.ui:112 ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 msgid "_Search Bar" msgstr "Barre de _recherche" -#: ui/events_directory.ui:89 ui/event.ui:117 ui/import.ui:92 ui/media.ui:117 -#: ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 ui/trash.ui:105 +#: ui/events_directory.ui:89 ui/event.ui:117 ui/faces.ui:117 ui/import.ui:92 +#: ui/media.ui:117 ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 +#: ui/trash.ui:105 msgid "S_idebar" msgstr "Barre _latérale" -#: ui/events_directory.ui:94 ui/event.ui:122 ui/import.ui:97 ui/media.ui:122 -#: ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 ui/trash.ui:110 +#: ui/events_directory.ui:94 ui/event.ui:122 ui/faces.ui:122 ui/import.ui:97 +#: ui/media.ui:122 ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 +#: ui/trash.ui:110 msgid "T_oolbar" -msgstr "Barre d'_outils" +msgstr "Barre d’_outils" -#: ui/events_directory.ui:101 ui/event.ui:134 ui/media.ui:134 ui/tags.ui:134 +#: ui/events_directory.ui:101 ui/event.ui:134 ui/faces.ui:134 ui/media.ui:134 +#: ui/tags.ui:134 msgid "_Comments" msgstr "_Commentaires" -#: ui/events_directory.ui:108 ui/event.ui:243 ui/import_queue.ui:48 -#: ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 ui/photo.ui:127 -#: ui/tags.ui:243 ui/trash.ui:172 +#: ui/events_directory.ui:108 ui/event.ui:243 ui/faces.ui:243 +#: ui/import_queue.ui:48 ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 +#: ui/photo.ui:127 ui/tags.ui:243 ui/trash.ui:172 msgid "Sort _Events" msgstr "Trier les évén_ements" -#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 -#: ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 ui/media.ui:246 -#: ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 ui/tags.ui:246 -#: ui/trash.ui:175 +#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 ui/faces.ui:231 +#: ui/faces.ui:246 ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 +#: ui/media.ui:246 ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 +#: ui/tags.ui:246 ui/trash.ui:175 msgid "_Ascending" msgstr "Ordre croiss_ant" -#: ui/events_directory.ui:116 ui/event.ui:236 ui/import_queue.ui:56 -#: ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 ui/trash.ui:180 +#: ui/events_directory.ui:116 ui/event.ui:236 ui/faces.ui:236 +#: ui/import_queue.ui:56 ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 +#: ui/trash.ui:180 msgid "D_escending" msgstr "Ordr_e décroissant" -#: ui/events_directory.ui:132 ui/event.ui:379 ui/media.ui:373 ui/tags.ui:373 +#: ui/events_directory.ui:132 ui/event.ui:379 ui/faces.ui:373 ui/media.ui:373 +#: ui/tags.ui:373 msgid "Even_ts" msgstr "É_vénements" -#: ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 ui/offline.ui:207 -#: ui/photo.ui:77 ui/tags.ui:74 -msgid "R_emove from Library" -msgstr "Su_pprimer de la photothèque" - -#: ui/event.ui:129 ui/import.ui:104 ui/media.ui:129 ui/tags.ui:129 +#: ui/event.ui:129 ui/faces.ui:129 ui/import.ui:104 ui/media.ui:129 +#: ui/tags.ui:129 msgid "_Titles" msgstr "_Titres" -#: ui/event.ui:139 ui/event.ui:404 ui/media.ui:139 ui/media.ui:387 -#: ui/photo.ui:371 ui/tags.ui:139 ui/tags.ui:387 +#: ui/event.ui:139 ui/event.ui:404 ui/faces.ui:139 ui/faces.ui:387 +#: ui/media.ui:139 ui/media.ui:387 ui/photo.ui:372 ui/tags.ui:139 +#: ui/tags.ui:387 msgid "Ta_gs" msgstr "É_tiquettes" -#: ui/event.ui:206 ui/media.ui:206 ui/tags.ui:206 +#: ui/event.ui:206 ui/faces.ui:206 ui/media.ui:206 ui/tags.ui:206 msgid "Sort _Photos" msgstr "Trier les _photos" -#: ui/event.ui:209 ui/media.ui:209 ui/tags.ui:209 +#: ui/event.ui:209 ui/faces.ui:209 ui/media.ui:209 ui/tags.ui:209 msgid "By _Title" msgstr "Par _titre" -#: ui/event.ui:214 ui/media.ui:214 ui/tags.ui:214 +#: ui/event.ui:214 ui/faces.ui:214 ui/media.ui:214 ui/tags.ui:214 msgid "By _Filename" msgstr "Par nom de _fichier" -#: ui/event.ui:219 ui/media.ui:219 ui/tags.ui:219 +#: ui/event.ui:219 ui/faces.ui:219 ui/media.ui:219 ui/tags.ui:219 msgid "By Exposure _Date" msgstr "Par _date" -#: ui/event.ui:224 ui/media.ui:224 ui/tags.ui:224 +#: ui/event.ui:224 ui/faces.ui:224 ui/media.ui:224 ui/tags.ui:224 msgid "By _Rating" msgstr "Par _note" -#: ui/event.ui:251 ui/import.ui:174 ui/media.ui:251 ui/photo.ui:135 -#: ui/tags.ui:251 +#: ui/event.ui:251 ui/faces.ui:251 ui/import.ui:174 ui/media.ui:251 +#: ui/photo.ui:135 ui/tags.ui:251 msgid "_Descending" msgstr "Ordre _décroissant" -#: ui/event.ui:275 ui/media.ui:275 ui/tags.ui:275 +#: ui/event.ui:275 ui/faces.ui:275 ui/media.ui:275 ui/tags.ui:275 msgid "_Photos" msgstr "_Photos" +#: ui/faces.ui:465 +msgid "Rename…" +msgstr "Renommer…" + #: ui/import_queue.ui:8 msgid "_Stop Import" -msgstr "_Arrêter l'importation" - -#: ui/preferences_dialog.ui:65 -msgid "white" -msgstr "blanc" - -#: ui/preferences_dialog.ui:92 -msgid "black" -msgstr "noir" +msgstr "_Arrêter l’importation" -#: ui/preferences_dialog.ui:123 +#: ui/preferences_dialog.ui:67 msgid "Display" msgstr "Affichage" -#: ui/preferences_dialog.ui:160 -msgid "_Background:" -msgstr "_Arrière-plan :" - -#: ui/preferences_dialog.ui:175 +#: ui/preferences_dialog.ui:103 msgid "_Import photos to:" msgstr "_Importer les photos dans :" -#: ui/preferences_dialog.ui:186 +#: ui/preferences_dialog.ui:114 msgid "_Watch library directory for new files" msgstr "_Détecter les nouveaux fichiers dans le dossier de la photothèque" -#: ui/preferences_dialog.ui:209 +#: ui/preferences_dialog.ui:137 msgid "Importing" msgstr "Importation" -#: ui/preferences_dialog.ui:226 +#: ui/preferences_dialog.ui:154 msgid "_Directory structure:" msgstr "Structure de _dossier :" -#: ui/preferences_dialog.ui:241 +#: ui/preferences_dialog.ui:169 msgid "Example:" msgstr "Exemple :" -#: ui/preferences_dialog.ui:250 +#: ui/preferences_dialog.ui:178 msgid "R_ename imported files to lowercase" msgstr "R_enommer les fichiers importés en minuscules" -#: ui/preferences_dialog.ui:272 +#: ui/preferences_dialog.ui:200 msgid "Metadata" msgstr "Métadonnées" -#: ui/preferences_dialog.ui:285 +#: ui/preferences_dialog.ui:213 msgid "Write tags, titles, and other _metadata to photo files" msgstr "" "Écrire les étiquettes, titres et autres _métadonnées dans les fichiers des " "photos" -#: ui/preferences_dialog.ui:307 +#: ui/preferences_dialog.ui:235 msgid "RAW Developer" msgstr "Révélateur RAW" -#: ui/preferences_dialog.ui:324 +#: ui/preferences_dialog.ui:252 msgid "De_fault:" msgstr "Par dé_faut :" -#: ui/preferences_dialog.ui:378 +#: ui/preferences_dialog.ui:306 msgid "_Pattern:" msgstr "_Modèle :" -#: ui/preferences_dialog.ui:414 +#: ui/preferences_dialog.ui:339 +msgid "" +"When viewing images that are transparent, they will be drawn against this " +"background." +msgstr "" +"Lors de l’affichage d’images transparentes, c’est cet arrière-plan qui sera " +"visible." + +#: ui/preferences_dialog.ui:343 msgid "Transparent Background:" msgstr "Arrière-plan transparent :" -#: ui/preferences_dialog.ui:428 +#: ui/preferences_dialog.ui:357 msgid "Checkered" msgstr "Damier" -#: ui/preferences_dialog.ui:449 +#: ui/preferences_dialog.ui:378 msgid "Solid color" msgstr "Couleur unie" -#: ui/preferences_dialog.ui:539 +#: ui/preferences_dialog.ui:441 +msgid "Use dark theme:" +msgstr "Utiliser un thème sombre :" + +#: ui/preferences_dialog.ui:492 msgid "E_xternal photo editor:" -msgstr "Éditeur d'image e_xterne :" +msgstr "Éditeur d’image e_xterne :" -#: ui/preferences_dialog.ui:556 +#: ui/preferences_dialog.ui:509 msgid "External _RAW editor:" msgstr "Éditeur _RAW externe :" -#: ui/preferences_dialog.ui:617 +#: ui/preferences_dialog.ui:570 msgid "External Editors" msgstr "Éditeurs externes" -#: ui/preferences_dialog.ui:642 +#: ui/preferences_dialog.ui:595 msgid "Plugins" msgstr "Greffons" -#: ui/printing_widget.ui:19 +#: ui/preferences_dialog.ui:621 +msgid "Shotwell Preferences" +msgstr "Préférences de Shotwell" + +#: ui/printing_widget.ui:18 msgid "Printed Image Size" -msgstr "Taille de l'image imprimée" +msgstr "Taille de l’image imprimée" -#: ui/printing_widget.ui:36 +#: ui/printing_widget.ui:38 msgid "Use a _standard size:" msgstr "Utiliser une taille _standard :" -#: ui/printing_widget.ui:80 +#: ui/printing_widget.ui:65 msgid "Use a c_ustom size:" msgstr "Utiliser une taille _personnalisée :" #. Abbrevation for "inch" -#: ui/printing_widget.ui:146 +#: ui/printing_widget.ui:128 msgid "in." msgstr "po." #. Abbrevation for "centimeters" -#: ui/printing_widget.ui:147 +#: ui/printing_widget.ui:129 msgid "cm" msgstr "cm" -#: ui/printing_widget.ui:173 +#: ui/printing_widget.ui:146 msgid "_Match photo aspect ratio" msgstr "_Conserver les proportions de la photo" -#: ui/printing_widget.ui:197 +#: ui/printing_widget.ui:161 msgid "_Autosize:" msgstr "Taille _automatique :" -#: ui/printing_widget.ui:237 +#: ui/printing_widget.ui:202 msgid "Titles" msgstr "Titres" -#: ui/printing_widget.ui:254 +#: ui/printing_widget.ui:219 msgid "Print image _title" -msgstr "Imprimer le _titre de l'image" +msgstr "Imprimer le _titre de l’image" -#: ui/printing_widget.ui:297 +#: ui/printing_widget.ui:262 msgid "Pixel Resolution" msgstr "Résolution en pixels" -#: ui/printing_widget.ui:317 +#: ui/printing_widget.ui:282 msgid "_Output photo at:" msgstr "_Imprimer la photo à :" -#: ui/printing_widget.ui:351 +#: ui/printing_widget.ui:316 msgid "pixels per inch" msgstr "pixels par pouce" +#: ui/saved_search_dialog.ui:7 +msgid "Search" +msgstr "Rechercher" + +#: ui/saved_search_dialog.ui:23 +msgid "Cancel" +msgstr "Annuler" + +#: ui/saved_search_dialog.ui:36 +msgid "OK" +msgstr "Valider" + +#: ui/saved_search_dialog.ui:74 +msgid "_Name of search:" +msgstr "_Nom de la recherche :" + +#: ui/saved_search_dialog.ui:132 +msgid "_Match" +msgstr "_Rechercher" + +#: ui/saved_search_dialog.ui:149 +msgid "any" +msgstr "n’importe quel" + +#: ui/saved_search_dialog.ui:150 +msgid "all" +msgstr "toutes" + +#: ui/saved_search_dialog.ui:151 +msgid "none" +msgstr "aucune" + +#: ui/saved_search_dialog.ui:165 +msgid "of the following:" +msgstr "parmi ce qui suit :" + #: ui/set_background_dialog.ui:9 msgid "Set as Desktop Background" -msgstr "Définir comme fond d'écran" +msgstr "Définir comme fond d’écran" #: ui/set_background_dialog.ui:69 ui/set_background_slideshow_dialog.ui:132 msgid "Use for Desktop" @@ -6401,15 +6605,15 @@ msgstr "Utiliser pour le bureau" #: ui/set_background_dialog.ui:86 ui/set_background_slideshow_dialog.ui:149 msgid "Use for Lock Screen" -msgstr "Utiliser pour l'écran de vérouillage" +msgstr "Utiliser pour l’écran de vérouillage" #: ui/set_background_slideshow_dialog.ui:16 msgid "Set as Desktop Slideshow" -msgstr "Définir comme diaporama d'écran" +msgstr "Définir comme diaporama d’écran" #: ui/set_background_slideshow_dialog.ui:54 msgid "Generate desktop background slideshow" -msgstr "Générer un diaporama de fond d'écran" +msgstr "Générer un diaporama de fond d’écran" #: ui/set_background_slideshow_dialog.ui:80 msgid "Show each photo for" @@ -6421,48 +6625,39 @@ msgstr "intervalle de temps" #: ui/set_background_slideshow_dialog.ui:114 msgid "How long each photo is shown on the desktop background" -msgstr "Durée d'affichage des photos en fond d'écran" - -#: ui/shotwell.ui:22 -msgid "_Name of search:" -msgstr "_Nom de la recherche :" - -#: ui/shotwell.ui:76 -msgid "_Match" -msgstr "_Rechercher" - -#: ui/shotwell.ui:103 -msgid "of the following:" -msgstr "parmi ce qui suit :" - -#: ui/shotwell.ui:184 -msgid "label" -msgstr "étiquette" +msgstr "Durée d’affichage des photos en fond d’écran" #: ui/sidebar_default_context.ui:11 ui/tag_sidebar_context.ui:6 msgid "New _Tag…" msgstr "Nouvelle é_tiquette…" -#: ui/slideshow_settings.ui:91 +#: ui/slideshow_settings.ui:98 msgid "_Delay:" msgstr "_Délai :" -#: ui/slideshow_settings.ui:105 +#: ui/slideshow_settings.ui:112 msgid "_Transition effect:" msgstr "Effet de _transition :" -#: ui/slideshow_settings.ui:119 +#: ui/slideshow_settings.ui:126 msgid "Transition d_elay:" msgstr "Déla_i de transition :" -#: ui/slideshow_settings.ui:129 +#: ui/slideshow_settings.ui:136 msgid "Show t_itle" msgstr "Afficher le t_itre" -#: ui/slideshow_settings.ui:212 ui/slideshow_settings.ui:223 +#: ui/slideshow_settings.ui:219 ui/slideshow_settings.ui:230 msgid "seconds" msgstr "secondes" +#: ui/textentrydialog.ui:66 +msgid "label" +msgstr "étiquette" + #: ui/trash.ui:285 msgid "Delete all photos in the trash" msgstr "Supprime toutes les photos de la corbeille" + +#~ msgid "Extended Information" +#~ msgstr "Informations étendues" diff --git a/po/gd.gmo b/po/gd.gmo deleted file mode 100644 index a87bfce..0000000 Binary files a/po/gd.gmo and /dev/null differ diff --git a/po/gl.gmo b/po/gl.gmo deleted file mode 100644 index f3b43ee..0000000 Binary files a/po/gl.gmo and /dev/null differ diff --git a/po/gl.po b/po/gl.po index 29cb9e3..9771718 100644 --- a/po/gl.po +++ b/po/gl.po @@ -21,8 +21,8 @@ msgstr "" "Project-Id-Version: shotwell-0.15\n" "Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" "product=shotwell&keywords=I18N+L10N&component=Internationalization\n" -"POT-Creation-Date: 2017-08-03 22:47+0200\n" -"PO-Revision-Date: 2017-08-03 22:59+0200\n" +"POT-Creation-Date: 2018-05-06 16:37+0000\n" +"PO-Revision-Date: 2018-05-15 02:42+0200\n" "Last-Translator: marcos \n" "Language-Team: gnome-l10n-gl@gnome.org\n" "Language: gl\n" @@ -30,12 +30,12 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 1.8.7.1\n" +"X-Generator: Poedit 2.0.6\n" #: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in:4 #: plugins/shotwell-publishing-extras/GalleryConnector.vala:115 #: src/photos/RawSupport.vala:308 ui/collection.ui:85 ui/event.ui:356 -#: ui/event.ui:524 ui/media.ui:356 ui/photo_context.ui:91 ui/photo.ui:346 +#: ui/event.ui:524 ui/media.ui:356 ui/photo_context.ui:91 ui/photo.ui:347 #: ui/tags.ui:356 msgid "Shotwell" msgstr "Shotwell" @@ -478,12 +478,12 @@ msgid "Pin toolbar in fullscreen, or not." msgstr "Fixar a barra de ferramentas na pantalla completa, ou non." #: misc/org.yorba.shotwell.gschema.xml:161 -msgid "background color" -msgstr "cor do fondo" +msgid "prefer GTK+’s dark theme" +msgstr "" #: misc/org.yorba.shotwell.gschema.xml:162 -msgid "A grayscale color for use as the background color." -msgstr "Cor da escala de grises a usar como cor do fondo." +msgid "Whether to use the dark theme of GTK+ for Shotwell or not." +msgstr "" #: misc/org.yorba.shotwell.gschema.xml:167 msgid "background for transparent images" @@ -1411,24 +1411,7 @@ msgstr "" "Para continuar publicando no Facebook, peche e reinicie Shotwell e tente " "publicar de novo." -#: plugins/authenticator/shotwell/flickr_pin_entry_pane.ui:17 -msgid "" -"Enter the confirmation number which appears after you log into Flickr in " -"your Web browser." -msgstr "" -"Escriba o número de confirmación que aparece despois de que inicie a sesión " -"en Flickr desde o seu navegador web." - -#: plugins/authenticator/shotwell/flickr_pin_entry_pane.ui:37 -msgid "Authorization _Number:" -msgstr "_Número de autorización:" - -#: plugins/authenticator/shotwell/flickr_pin_entry_pane.ui:70 -#: src/Dialogs.vala:128 -msgid "Con_tinue" -msgstr "Con_tinuar" - -#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:187 +#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:17 msgid "" "You are not currently logged into Flickr.\n" "\n" @@ -1440,20 +1423,15 @@ msgstr "" "Prema Iniciar sesión para acceder ao Flickr no navegador. Terá que autorizar " "ao Shotwell Connect para que ligue coa conta de Flickr." -#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:364 +#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:124 msgid "Preparing for login…" msgstr "Preparando o inicio da sesión..." -#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:468 -#: plugins/shotwell-publishing/FlickrPublishing.vala:341 -msgid "" -"A file required for publishing is unavailable. Publishing to Flickr can’t " -"continue." +#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:193 +msgid "Flickr authorization failed" msgstr "" -"Non está dipoñíbel un ficheiro necesario para a publicación. Non é posíbel " -"continuar a publicación no Flickr." -#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:481 +#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:200 msgid "Verifying authorization…" msgstr "Comprobando a autorización..." @@ -1471,7 +1449,7 @@ msgstr "" "Para continuar publicando nos servizos de Google, peche e reinicie Shotwell " "e tente publicar de novo." -#: plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala:31 +#: plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala:32 msgid "" "You are not currently logged into Picasa Web Albums.\n" "\n" @@ -1483,7 +1461,7 @@ msgstr "" "Prema Iniciar sesión para acceder a Picasa Web Albums no navegador. Terá que " "autorizar ao Shotwell Connect para que ligue coa conta de Picasa Web Albums." -#: plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala:34 +#: plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala:35 msgid "" "You are not currently logged into YouTube.\n" "\n" @@ -1497,11 +1475,52 @@ msgstr "" "con Youtube. Pode configurar a maioría das contas usando o navegador para " "acceder cando menos unha vez ." +#: plugins/authenticator/shotwell/tumblr_authentication_pane.ui:42 +#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:42 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:892 +msgid "_Email address" +msgstr "_Enderezo de correo" + +#: plugins/authenticator/shotwell/tumblr_authentication_pane.ui:82 +#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:82 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:893 +#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:119 +msgid "_Password" +msgstr "_Contrasinal" + +#: plugins/authenticator/shotwell/tumblr_authentication_pane.ui:104 +#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:120 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:895 +#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:154 +msgid "Log in" +msgstr "Iniciar sesión" + +#: plugins/authenticator/shotwell/TumblrAuthenticator.vala:25 +msgid "Enter the username and password associated with your Tumblr account." +msgstr "" +"Escriba o nome de usuario e o contrasinal asociados coa súa conta de Tumblr" + +#: plugins/authenticator/shotwell/TumblrAuthenticator.vala:26 +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1081 +msgid "Username and/or password invalid. Please try again" +msgstr "O nome de usuario e/ou o contrasinal é incorrecto. Ténteo de novo" + +#: plugins/authenticator/shotwell/TumblrAuthenticator.vala:53 +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1117 +msgid "Invalid User Name or Password" +msgstr "Nome de usuario ou contrasinal incorrecto" + +#: plugins/authenticator/shotwell/TumblrAuthenticator.vala:72 +#: plugins/shotwell-publishing/TumblrPublishing.vala:498 +#, c-format +msgid "Could not load UI: %s" +msgstr "Non é posíbel cargar a interface de usuario: %s" + #: plugins/common/Resources.vala:12 msgid "Visit the Shotwell home page" msgstr "Visitar a páxina web de Shotwell" -#: plugins/common/Resources.vala:31 src/AppWindow.vala:611 +#: plugins/common/Resources.vala:31 src/AppWindow.vala:603 msgid "translator-credits" msgstr "" "Miguel Anxo Bouzada \n" @@ -1517,7 +1536,7 @@ msgstr "" " Vera Yin https://launchpad.net/~vera-yorba" #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:202 +#: plugins/common/RESTSupport.vala:217 msgid "" "⚫ This website presented identification that belongs to a different website." msgstr "" @@ -1525,7 +1544,7 @@ msgstr "" "diferente." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:207 +#: plugins/common/RESTSupport.vala:222 msgid "" "⚫ This website’s identification is too old to trust. Check the date on your " "computer’s calendar." @@ -1534,7 +1553,7 @@ msgstr "" "Comprobe a data no calendario do computador." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:212 +#: plugins/common/RESTSupport.vala:227 msgid "" "⚫ This website’s identification was not issued by a trusted organization." msgstr "" @@ -1542,7 +1561,7 @@ msgstr "" "confianza." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:217 +#: plugins/common/RESTSupport.vala:232 msgid "" "⚫ This website’s identification could not be processed. It may be corrupted." msgstr "" @@ -1550,7 +1569,7 @@ msgstr "" "corrompido." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:222 +#: plugins/common/RESTSupport.vala:237 msgid "" "⚫ This website’s identification has been revoked by the trusted organization " "that issued it." @@ -1559,7 +1578,7 @@ msgstr "" "confianza que a emitiu." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:227 +#: plugins/common/RESTSupport.vala:242 msgid "" "⚫ This website’s identification cannot be trusted because it uses very weak " "encryption." @@ -1568,7 +1587,7 @@ msgstr "" "cifrado moi feble." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:232 +#: plugins/common/RESTSupport.vala:247 msgid "" "⚫ This website’s identification is only valid for future dates. Check the " "date on your computer’s calendar." @@ -1576,8 +1595,8 @@ msgstr "" "⚫ Esta identificación do sitio web só é válida para datas futuras. Comprobe " "a data no calendario do computador." -#: plugins/common/RESTSupport.vala:509 -#: plugins/shotwell-publishing/TumblrPublishing.vala:959 +#: plugins/common/RESTSupport.vala:524 +#: plugins/shotwell-publishing/TumblrPublishing.vala:623 msgid "A temporary file needed for publishing is unavailable" msgstr "Non está dispoñíbel o ficheiro temporal necesario para a publicación" @@ -1598,7 +1617,7 @@ msgid "Go _Back" msgstr "Vover _atrás" #: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:125 -#: ui/shotwell.ui:363 +#: ui/shotwell.ui:76 msgid "_Log in" msgstr "_Iniciar sesión" @@ -1633,7 +1652,7 @@ msgid "pixels" msgstr "píxeles" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:158 -#: plugins/shotwell-publishing/FlickrPublishing.vala:880 +#: plugins/shotwell-publishing/FlickrPublishing.vala:687 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1306 #: src/Dimensions.vala:17 msgid "Original size" @@ -1641,8 +1660,8 @@ msgstr "Tamaño orixinal" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:159 #: src/Dimensions.vala:20 -msgid "Width or height" -msgstr "Largo ou alto" +msgid "Longest edge" +msgstr "" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:203 #: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:39 @@ -1665,7 +1684,7 @@ msgstr "_Saír da sesión" #: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:156 #: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:121 #: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:115 -#: src/CollectionPage.vala:82 src/PhotoPage.vala:2469 +#: src/CollectionPage.vala:82 src/PhotoPage.vala:2471 msgid "_Publish" msgstr "_Publicar" @@ -1760,31 +1779,11 @@ msgstr "Usuario non recoñecido" msgid " Site Not Found" msgstr " Sitio non atopado" -#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:42 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:892 -#: plugins/shotwell-publishing/tumblr_authentication_pane.ui:42 -msgid "_Email address" -msgstr "_Enderezo de correo" - -#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:82 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:893 -#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:119 -#: plugins/shotwell-publishing/tumblr_authentication_pane.ui:82 -msgid "_Password" -msgstr "_Contrasinal" - #: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:100 #: plugins/shotwell-publishing-extras/RajcePublishing.vala:894 msgid "_Remember" msgstr "_Lembrar" -#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:120 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:895 -#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:154 -#: plugins/shotwell-publishing/tumblr_authentication_pane.ui:104 -msgid "Log in" -msgstr "Iniciar sesión" - #: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:104 #: plugins/shotwell-publishing-extras/RajcePublishing.vala:1015 msgid "An _existing album:" @@ -1960,12 +1959,12 @@ msgid "Where would you like to publish the selected photos?" msgstr "Desexa publicar as fotos seleccionadas?" #: plugins/shotwell-publishing/FacebookPublishing.vala:887 -#: plugins/shotwell-publishing/FlickrPublishing.vala:858 +#: plugins/shotwell-publishing/FlickrPublishing.vala:665 msgid "Just me" msgstr "Só para min" #: plugins/shotwell-publishing/FacebookPublishing.vala:889 -#: plugins/shotwell-publishing/FlickrPublishing.vala:854 +#: plugins/shotwell-publishing/FlickrPublishing.vala:661 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1290 msgid "Everyone" msgstr "Todos" @@ -1975,7 +1974,15 @@ msgstr "Todos" msgid "Photo _size:" msgstr "_Tamaño da foto:" -#: plugins/shotwell-publishing/FlickrPublishing.vala:800 +#: plugins/shotwell-publishing/FlickrPublishing.vala:340 +msgid "" +"A file required for publishing is unavailable. Publishing to Flickr can’t " +"continue." +msgstr "" +"Non está dipoñíbel un ficheiro necesario para a publicación. Non é posíbel " +"continuar a publicación no Flickr." + +#: plugins/shotwell-publishing/FlickrPublishing.vala:607 #, c-format msgid "" "You are logged into Flickr as %s.\n" @@ -1984,7 +1991,7 @@ msgstr "" "Vostede está conectado ao Flickr como %s.\n" "\n" -#: plugins/shotwell-publishing/FlickrPublishing.vala:802 +#: plugins/shotwell-publishing/FlickrPublishing.vala:609 #, c-format msgid "" "Your free Flickr account limits how much data you can upload per month.\n" @@ -1993,52 +2000,52 @@ msgstr "" "A conta gratuíta de Flickr limita os datos que pode enviar ao mes.\n" "Este mes quédanlle %s na cota de envío." -#: plugins/shotwell-publishing/FlickrPublishing.vala:804 +#: plugins/shotwell-publishing/FlickrPublishing.vala:611 msgid "Your Flickr Pro account entitles you to unlimited uploads." msgstr "A súa conta do Flickr Pro permítelle envíos sen límites." -#: plugins/shotwell-publishing/FlickrPublishing.vala:809 +#: plugins/shotwell-publishing/FlickrPublishing.vala:616 msgid "Photos _visible to:" msgstr "Fotos _visíbeis para:" -#: plugins/shotwell-publishing/FlickrPublishing.vala:811 +#: plugins/shotwell-publishing/FlickrPublishing.vala:618 msgid "Videos _visible to:" msgstr "Vídeos _visíbeis para:" -#: plugins/shotwell-publishing/FlickrPublishing.vala:814 +#: plugins/shotwell-publishing/FlickrPublishing.vala:621 msgid "Photos and videos _visible to:" msgstr "Fotos e vídeos _visíbeis para:" -#: plugins/shotwell-publishing/FlickrPublishing.vala:855 +#: plugins/shotwell-publishing/FlickrPublishing.vala:662 msgid "Friends & family only" msgstr "Só amigos e familia" -#: plugins/shotwell-publishing/FlickrPublishing.vala:856 +#: plugins/shotwell-publishing/FlickrPublishing.vala:663 msgid "Family only" msgstr "Só a familia" -#: plugins/shotwell-publishing/FlickrPublishing.vala:857 +#: plugins/shotwell-publishing/FlickrPublishing.vala:664 msgid "Friends only" msgstr "Só os amigos" -#: plugins/shotwell-publishing/FlickrPublishing.vala:876 +#: plugins/shotwell-publishing/FlickrPublishing.vala:683 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1302 -#: plugins/shotwell-publishing/TumblrPublishing.vala:105 +#: plugins/shotwell-publishing/TumblrPublishing.vala:103 msgid "500 × 375 pixels" msgstr "500 × 375 píxeles" -#: plugins/shotwell-publishing/FlickrPublishing.vala:877 +#: plugins/shotwell-publishing/FlickrPublishing.vala:684 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1303 -#: plugins/shotwell-publishing/TumblrPublishing.vala:106 +#: plugins/shotwell-publishing/TumblrPublishing.vala:104 msgid "1024 × 768 pixels" msgstr "1024 × 768 píxeles" -#: plugins/shotwell-publishing/FlickrPublishing.vala:878 +#: plugins/shotwell-publishing/FlickrPublishing.vala:685 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1304 msgid "2048 × 1536 pixels" msgstr "2048 × 1536 píxeles" -#: plugins/shotwell-publishing/FlickrPublishing.vala:879 +#: plugins/shotwell-publishing/FlickrPublishing.vala:686 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1305 msgid "4096 × 3072 pixels" msgstr "4096 × 3072 píxeles" @@ -2145,7 +2152,7 @@ msgid "Logout" msgstr "Saír da sesión" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:268 -#: src/Resources.vala:296 ui/collection.ui:192 +#: src/Resources.vala:263 ui/collection.ui:192 msgid "Publish" msgstr "Publicar" @@ -2176,7 +2183,8 @@ msgid "Certificate of %s" msgstr "Certificado de %s" #: plugins/shotwell-publishing/PiwigoPublishing.vala:1051 -#: src/Resources.vala:167 ui/slideshow_settings.ui:49 +#: src/Resources.vala:134 ui/multitextentrydialog.ui:40 +#: ui/slideshow_settings.ui:49 msgid "_OK" msgstr "_Aceptar" @@ -2196,20 +2204,10 @@ msgstr "" "Shotwell non é quen de conectar coa súa fototeca en Piwigo. Comprobe o URL " "que escribiu" -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1081 -#: plugins/shotwell-publishing/TumblrPublishing.vala:588 -msgid "Username and/or password invalid. Please try again" -msgstr "O nome de usuario e/ou o contrasinal é incorrecto. Ténteo de novo" - #: plugins/shotwell-publishing/PiwigoPublishing.vala:1112 msgid "Invalid URL" msgstr "URL incorrecto" -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1117 -#: plugins/shotwell-publishing/TumblrPublishing.vala:615 -msgid "Invalid User Name or Password" -msgstr "Nome de usuario ou contrasinal incorrecto" - #: plugins/shotwell-publishing/PiwigoPublishing.vala:1291 msgid "Admins, Family, Friends, Contacts" msgstr "Administradores, Familia, Amigos, Contactos" @@ -2246,39 +2244,22 @@ msgstr "Núcleo dos servizos de publicación" msgid "Blogs:" msgstr "Blogs:" -#: plugins/shotwell-publishing/TumblrPublishing.vala:36 +#: plugins/shotwell-publishing/TumblrPublishing.vala:35 msgid "Copyright 2012 BJA Electronics" msgstr "Copyright 2012 BJA Electronics" -#: plugins/shotwell-publishing/TumblrPublishing.vala:107 +#: plugins/shotwell-publishing/TumblrPublishing.vala:105 msgid "1280 × 853 pixels" msgstr "1280 × 853 píxeles" -#: plugins/shotwell-publishing/TumblrPublishing.vala:311 -#: plugins/shotwell-publishing/TumblrPublishing.vala:321 -#, c-format -msgid "“%s” isn’t a valid response to an OAuth authentication request" -msgstr "«%s» non é unha resposta válida a unha petición de autenticación OAuth" - -#: plugins/shotwell-publishing/TumblrPublishing.vala:559 +#: plugins/shotwell-publishing/TumblrPublishing.vala:407 msgid "" "TumblrPublisher: start( ): can’t start; this publisher is not restartable." msgstr "" "TumblrPublisher: start( ): non é posíbel iniciar; este publicador non é " "reiniciábel." -#: plugins/shotwell-publishing/TumblrPublishing.vala:587 -msgid "Enter the username and password associated with your Tumblr account." -msgstr "" -"Escriba o nome de usuario e o contrasinal asociados coa súa conta de Tumblr" - -#: plugins/shotwell-publishing/TumblrPublishing.vala:635 -#: plugins/shotwell-publishing/TumblrPublishing.vala:753 -#, c-format -msgid "Could not load UI: %s" -msgstr "Non é posíbel cargar a interface de usuario: %s" - -#: plugins/shotwell-publishing/TumblrPublishing.vala:735 +#: plugins/shotwell-publishing/TumblrPublishing.vala:480 #, c-format msgid "" "You are logged into Tumblr as %s.\n" @@ -2411,16 +2392,17 @@ msgstr "Fixar a barra de ferramentas aberta" msgid "Leave fullscreen" msgstr "Saír da pantalla completa" -#: src/AppWindow.vala:538 src/AppWindow.vala:559 src/AppWindow.vala:576 -#: src/data_imports/DataImportsUI.vala:303 -#: src/data_imports/DataImportsUI.vala:421 src/Dialogs.vala:20 -#: src/Dialogs.vala:28 src/Dialogs.vala:1420 src/Dialogs.vala:1443 -#: src/publishing/PublishingUI.vala:303 src/publishing/PublishingUI.vala:527 -#: src/Resources.vala:158 ui/slideshow_settings.ui:35 +#: src/AppWindow.vala:530 src/AppWindow.vala:551 src/AppWindow.vala:568 +#: src/data_imports/DataImportsUI.vala:302 +#: src/data_imports/DataImportsUI.vala:420 src/Dialogs.vala:20 +#: src/Dialogs.vala:28 src/Dialogs.vala:753 src/Dialogs.vala:776 +#: src/publishing/PublishingUI.vala:305 src/publishing/PublishingUI.vala:529 +#: src/Resources.vala:125 ui/multitextentrydialog.ui:25 +#: ui/slideshow_settings.ui:35 ui/textentrydialog.ui:19 msgid "_Cancel" msgstr "_Cancelar" -#: src/AppWindow.vala:586 +#: src/AppWindow.vala:578 #, c-format msgid "" "A fatal error occurred when accessing Shotwell’s library. Shotwell cannot " @@ -2433,21 +2415,21 @@ msgstr "" "\n" "%s" -#: src/AppWindow.vala:607 +#: src/AppWindow.vala:599 msgid "Visit the Shotwell web site" msgstr "Visitar a web do Shotwell" -#: src/AppWindow.vala:620 +#: src/AppWindow.vala:612 #, c-format msgid "Unable to display help: %s" msgstr "Non foi posíbel mostrar a axuda: %s" -#: src/AppWindow.vala:628 +#: src/AppWindow.vala:620 #, c-format msgid "Unable to navigate to bug database: %s" msgstr "Non é posíbel navegar ata a base de datos de fallos: %s" -#: src/AppWindow.vala:636 +#: src/AppWindow.vala:628 #, c-format msgid "Unable to display FAQ: %s" msgstr "Non é posíbel mostrar: Preguntas máis frecuentes: %s" @@ -2517,14 +2499,25 @@ msgstr "Produciuse un fallo de importación (%d)" msgid "Cameras" msgstr "Cámaras" -#: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:718 -#: src/camera/ImportPage.vala:734 src/photos/RawSupport.vala:311 +#: src/camera/CameraBranch.vala:85 +msgid "List of all discovered camera devices" +msgstr "" + +#: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:711 +#: src/camera/ImportPage.vala:727 src/photos/RawSupport.vala:311 #: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/media.ui:361 -#: ui/photo_context.ui:96 ui/photo.ui:351 ui/tags.ui:361 +#: ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 msgid "Camera" msgstr "Cámara" -#: src/camera/ImportPage.vala:311 src/Properties.vala:230 +#. Translators: First %s is the name of camera as gotten from GPhoto, second is the GVolume name, e.g. Mass storage camera (510MB volume) +#: src/camera/CameraTable.vala:351 +#, fuzzy, c-format +#| msgid "%s (%d%%)" +msgid "%s (%s)" +msgstr "%s (%d%%)" + +#: src/camera/ImportPage.vala:311 src/Properties.vala:231 msgid "RAW+JPEG" msgstr "RAW+JPEG" @@ -2536,33 +2529,33 @@ msgstr "" "ficheiros." #. hide duplicates checkbox -#: src/camera/ImportPage.vala:783 +#: src/camera/ImportPage.vala:776 msgid "Hide photos already imported" msgstr "Agochar as fotos xa importadas" -#: src/camera/ImportPage.vala:784 +#: src/camera/ImportPage.vala:777 msgid "Only display photos that have not been imported" msgstr "Mostrar só as fotos que non foran importadas" -#: src/camera/ImportPage.vala:823 ui/import.ui:13 ui/import.ui:210 +#: src/camera/ImportPage.vala:816 ui/import.ui:13 ui/import.ui:210 msgid "Import _Selected" msgstr "Importar as _seleccionadas" -#: src/camera/ImportPage.vala:833 ui/import.ui:17 ui/import.ui:214 +#: src/camera/ImportPage.vala:826 ui/import.ui:17 ui/import.ui:214 msgid "Import _All" msgstr "Importar _todas" -#: src/camera/ImportPage.vala:857 +#: src/camera/ImportPage.vala:850 msgid "The camera seems to be empty. No photos/videos found to import" msgstr "" "A cámara parece estar baleira. Non se atoparon fotos nin vídeos para importar" -#: src/camera/ImportPage.vala:861 +#: src/camera/ImportPage.vala:854 msgid "No new photos/videos found on camera" msgstr "Non se atoparon fotos nin vídeos novos na cámara" #. it's mounted, offer to unmount for the user -#: src/camera/ImportPage.vala:1021 +#: src/camera/ImportPage.vala:1025 msgid "" "Shotwell needs to unmount the camera from the filesystem in order to access " "it. Continue?" @@ -2570,15 +2563,15 @@ msgstr "" "O Shotwell precisa desmontar a cámara no sistema de ficheiros para poder " "acceder a ela. Desexa continuar?" -#: src/camera/ImportPage.vala:1027 +#: src/camera/ImportPage.vala:1031 msgid "_Unmount" msgstr "_Desmontar" -#: src/camera/ImportPage.vala:1032 +#: src/camera/ImportPage.vala:1036 msgid "Please unmount the camera." msgstr "Desmonte a cámara." -#: src/camera/ImportPage.vala:1037 +#: src/camera/ImportPage.vala:1041 msgid "" "The camera is locked by another application. Shotwell can only access the " "camera when it’s unlocked. Please close any other application using the " @@ -2588,11 +2581,11 @@ msgstr "" "cámara se está desbloqueada. Peche os aplicativos que estean usando a cámara " "e ténteo de novo." -#: src/camera/ImportPage.vala:1047 +#: src/camera/ImportPage.vala:1051 msgid "Please close any other application using the camera." msgstr "Peche calquera aplicativo que estea empregando a cámara." -#: src/camera/ImportPage.vala:1052 +#: src/camera/ImportPage.vala:1056 #, c-format msgid "" "Unable to fetch previews from the camera:\n" @@ -2601,69 +2594,69 @@ msgstr "" "Non foi posíbel obter as vistas previas desde a cámara:\n" "%s" -#: src/camera/ImportPage.vala:1069 +#: src/camera/ImportPage.vala:1073 msgid "Unmounting…" msgstr "Desmontando..." -#: src/camera/ImportPage.vala:1162 +#: src/camera/ImportPage.vala:1166 msgid "Connecting to camera, please wait…" msgstr "Conectando á cámara, agarde..." -#: src/camera/ImportPage.vala:1194 +#: src/camera/ImportPage.vala:1198 msgid "Starting import, please wait…" msgstr "Iniciando a importación, por favor agarde..." -#: src/camera/ImportPage.vala:1200 +#: src/camera/ImportPage.vala:1204 msgid "Fetching photo information" msgstr "Obtendo información da foto" -#: src/camera/ImportPage.vala:1558 +#: src/camera/ImportPage.vala:1563 #, c-format msgid "Fetching preview for %s" msgstr "Obtención de vista previa para %s" -#: src/camera/ImportPage.vala:1666 +#: src/camera/ImportPage.vala:1671 #, c-format msgid "Unable to lock camera: %s" msgstr "Non é posíbel bloquear a cámara: %s" -#: src/camera/ImportPage.vala:1751 +#: src/camera/ImportPage.vala:1756 #, c-format msgid "Delete this photo from camera?" msgid_plural "Delete these %d photos from camera?" msgstr[0] "Desexa eliminar esta foto da cámara?" msgstr[1] "Desexa eliminar estas %d fotos da cámara?" -#: src/camera/ImportPage.vala:1754 +#: src/camera/ImportPage.vala:1759 #, c-format msgid "Delete this video from camera?" msgid_plural "Delete these %d videos from camera?" msgstr[0] "Desexa eliminar este vídeo da cámara?" msgstr[1] "Desexa eliminar estes %d vídeos da cámara?" -#: src/camera/ImportPage.vala:1757 +#: src/camera/ImportPage.vala:1762 #, c-format msgid "Delete this photo/video from camera?" msgid_plural "Delete these %d photos/videos from camera?" msgstr[0] "Desexa eliminar esta foto/vídeo da cámara?" msgstr[1] "Desexa eliminar estas %d fotos/vídeos da cámara?" -#: src/camera/ImportPage.vala:1760 +#: src/camera/ImportPage.vala:1765 #, c-format msgid "Delete these files from camera?" msgid_plural "Delete these %d files from camera?" msgstr[0] "Borar estes ficheiros da cámara?" msgstr[1] "Borrar estes %d ficheiros da cámara?" -#: src/camera/ImportPage.vala:1768 src/Dialogs.vala:1387 +#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:720 msgid "_Keep" msgstr "_Manter" -#: src/camera/ImportPage.vala:1787 +#: src/camera/ImportPage.vala:1792 msgid "Removing photos/videos from camera" msgstr "Eliminando fotos/vídeos da cámara" -#: src/camera/ImportPage.vala:1791 +#: src/camera/ImportPage.vala:1796 #, c-format msgid "Unable to delete %d photo/video from the camera due to errors." msgid_plural "Unable to delete %d photos/videos from the camera due to errors." @@ -2671,21 +2664,21 @@ msgstr[0] "Non foi posíbel eliminar %d foto/vídeo da cámara debido a erros." msgstr[1] "Non foi posíbel eliminar %d fotos/vídeos da cámara debido a erros." #: src/CollectionPage.vala:80 src/direct/DirectPhotoPage.vala:85 -#: src/PhotoPage.vala:2464 src/Resources.vala:171 +#: src/PhotoPage.vala:2466 src/Resources.vala:138 msgid "_Print" msgstr "Im_primir" -#: src/CollectionPage.vala:83 src/Resources.vala:324 ui/collection.ui:128 +#: src/CollectionPage.vala:83 src/Resources.vala:291 ui/collection.ui:128 #: ui/direct_context.ui:23 ui/direct.ui:23 ui/event.ui:567 ui/photo.ui:28 msgid "Send _To…" msgstr "Enviar _a…" #: src/CollectionPage.vala:84 src/direct/DirectPhotoPage.vala:90 -#: src/PhotoPage.vala:2474 src/Resources.vala:221 +#: src/PhotoPage.vala:2476 src/Resources.vala:188 msgid "Set as _Desktop Background" msgstr "Estabelecer como fondo de _escritorio" -#: src/CollectionPage.vala:92 src/Resources.vala:287 +#: src/CollectionPage.vala:92 src/Resources.vala:254 msgid "_Duplicate" msgstr "_Duplicar" @@ -2697,43 +2690,43 @@ msgstr "Pantalla completa" msgid "S_lideshow" msgstr "_Diaporama" -#: src/CollectionPage.vala:110 src/Resources.vala:140 ui/direct.ui:111 +#: src/CollectionPage.vala:110 src/Resources.vala:107 ui/direct.ui:111 #: ui/photo.ui:200 msgid "Rotate _Right" msgstr "Rotar á _dereita" -#: src/CollectionPage.vala:113 src/Resources.vala:145 ui/direct.ui:116 +#: src/CollectionPage.vala:113 src/Resources.vala:112 ui/direct.ui:116 #: ui/photo.ui:205 msgid "Rotate _Left" msgstr "Rotar á _esquerda" -#: src/CollectionPage.vala:116 src/Resources.vala:150 ui/direct.ui:121 +#: src/CollectionPage.vala:116 src/Resources.vala:117 ui/direct.ui:121 #: ui/photo.ui:210 msgid "Flip Hori_zontally" msgstr "Voltear hori_zontalmente" -#: src/CollectionPage.vala:117 src/Resources.vala:153 ui/direct.ui:125 +#: src/CollectionPage.vala:117 src/Resources.vala:120 ui/direct.ui:125 #: ui/photo.ui:214 msgid "Flip Verti_cally" msgstr "Voltear verti_calmente" -#: src/CollectionPage.vala:119 src/Resources.vala:187 ui/collection.ui:8 +#: src/CollectionPage.vala:119 src/Resources.vala:154 ui/collection.ui:8 #: ui/direct_context.ui:7 ui/direct.ui:134 ui/event.ui:447 #: ui/photo_context.ui:6 ui/photo.ui:223 msgid "_Enhance" msgstr "_Mellorar" -#: src/CollectionPage.vala:120 src/Resources.vala:215 ui/collection.ui:13 +#: src/CollectionPage.vala:120 src/Resources.vala:182 ui/collection.ui:13 #: ui/direct_context.ui:12 ui/direct.ui:161 ui/event.ui:452 #: ui/photo_context.ui:11 ui/photo.ui:250 msgid "Re_vert to Original" msgstr "_Volver ao orixinal" -#: src/CollectionPage.vala:122 src/Resources.vala:191 ui/photo.ui:256 +#: src/CollectionPage.vala:122 src/Resources.vala:158 ui/photo.ui:256 msgid "_Copy Color Adjustments" msgstr "_Copiar os axustes da cor" -#: src/CollectionPage.vala:125 src/Resources.vala:195 ui/photo.ui:261 +#: src/CollectionPage.vala:125 src/Resources.vala:162 ui/photo.ui:261 msgid "_Paste Color Adjustments" msgstr "_Pegar os axustes da cor" @@ -2741,17 +2734,17 @@ msgstr "_Pegar os axustes da cor" msgid "Adjust Date and Time…" msgstr "Axustar a data e a hora..." -#: src/CollectionPage.vala:143 src/Resources.vala:320 ui/collection.ui:108 -#: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:360 +#: src/CollectionPage.vala:143 src/Resources.vala:287 ui/collection.ui:108 +#: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:361 msgid "Open With E_xternal Editor" msgstr "Abrir con editor _externo" -#: src/CollectionPage.vala:146 src/Resources.vala:322 ui/collection.ui:113 -#: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:365 +#: src/CollectionPage.vala:146 src/Resources.vala:289 ui/collection.ui:113 +#: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:366 msgid "Open With RA_W Editor" msgstr "Abrir con editor RA_W" -#: src/CollectionPage.vala:149 src/Resources.vala:168 +#: src/CollectionPage.vala:149 src/Resources.vala:135 msgid "_Play" msgstr "Re_producir" @@ -2761,7 +2754,7 @@ msgid_plural "Export Photos/Videos" msgstr[0] "Exportar foto/vídeo" msgstr[1] "Exportar fotos/vídeos" -#: src/CollectionPage.vala:412 src/Dialogs.vala:59 src/PhotoPage.vala:2998 +#: src/CollectionPage.vala:412 src/Dialogs.vala:59 src/PhotoPage.vala:3000 msgid "Export Photo" msgid_plural "Export Photos" msgstr[0] "Exportar foto" @@ -3002,19 +2995,19 @@ msgstr "" msgid "Database file:" msgstr "Ficheiro da base de datos:" -#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:782 +#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:785 msgid "_Import" msgstr "_Importar" -#: src/data_imports/DataImportsUI.vala:220 +#: src/data_imports/DataImportsUI.vala:219 msgid "Import From Application" msgstr "Importar desde aplicativo" -#: src/data_imports/DataImportsUI.vala:221 +#: src/data_imports/DataImportsUI.vala:220 msgid "Import media _from:" msgstr "Importar multimedia _desde:" -#: src/data_imports/DataImportsUI.vala:416 src/publishing/PublishingUI.vala:522 +#: src/data_imports/DataImportsUI.vala:415 src/publishing/PublishingUI.vala:524 msgid "_Close" msgstr "_Pechar" @@ -3083,9 +3076,9 @@ msgid_plural "This will remove the tag “%s” from %d photos. Continue?" msgstr[0] "Isto eliminará a etiqueta «%s» dunha foto. Desexa continuar?" msgstr[1] "Isto eliminará a etiqueta «%s» de %d fotos. Desexa continuar?" -#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:1388 -#: src/Resources.vala:159 src/Resources.vala:362 src/Resources.vala:415 -#: src/Resources.vala:659 ui/savedsearch.ui:15 ui/tags.ui:460 ui/trash.ui:63 +#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:721 +#: src/Resources.vala:126 src/Resources.vala:329 src/Resources.vala:382 +#: src/Resources.vala:690 ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 #: ui/trash.ui:216 ui/trash.ui:258 msgid "_Delete" msgstr "_Eliminar" @@ -3153,63 +3146,35 @@ msgstr "" "\n" "Quere continuar coa exportación?" -#. "Unmodified" and "Current," though they appear in the "Format:" popup menu, really -#. aren't formats so much as they are operating modes that determine specific formats. -#. Hereafter we'll refer to these as "special formats." -#: src/Dialogs.vala:144 -msgid "Unmodified" -msgstr "Sen modificar" - -#: src/Dialogs.vala:145 -msgid "Current" -msgstr "Actual" - -#. layout controls -#: src/Dialogs.vala:221 -msgid "_Format:" -msgstr "_Formato:" - -#: src/Dialogs.vala:224 -msgid "_Quality:" -msgstr "_Calidade:" - -#: src/Dialogs.vala:227 -msgid "_Scaling constraint:" -msgstr "Re_strición de escala:" - -#: src/Dialogs.vala:230 -msgid "_Pixels:" -msgstr "_Píxeles:" - -#: src/Dialogs.vala:234 -msgid "Export _metadata:" -msgstr "Exportar _metadatos:" +#: src/Dialogs.vala:128 +msgid "Con_tinue" +msgstr "Con_tinuar" -#: src/Dialogs.vala:478 +#: src/Dialogs.vala:139 msgid "Save Details…" msgstr "Gardar detalles..." -#: src/Dialogs.vala:479 +#: src/Dialogs.vala:140 msgid "Save Details" msgstr "Gardar os detalles" -#: src/Dialogs.vala:494 +#: src/Dialogs.vala:155 #, c-format msgid "(and %d more)\n" msgstr "(e %d máis)\n" -#: src/Dialogs.vala:547 +#: src/Dialogs.vala:208 msgid "Import Results Report" msgstr "Importar o informe de resultados" -#: src/Dialogs.vala:551 +#: src/Dialogs.vala:212 #, c-format msgid "Attempted to import %d file." msgid_plural "Attempted to import %d files." msgstr[0] "Tentouse importar %d ficheiro." msgstr[1] "Tentáronse importar %d ficheiros." -#: src/Dialogs.vala:554 +#: src/Dialogs.vala:215 #, c-format msgid "Of these, %d file was successfully imported." msgid_plural "Of these, %d files were successfully imported." @@ -3219,31 +3184,31 @@ msgstr[1] "Destes, %d ficheiros foron importados con éxito." #. #. Duplicates #. -#: src/Dialogs.vala:566 +#: src/Dialogs.vala:227 msgid "Duplicate Photos/Videos Not Imported:" msgstr "Fotos/vídeos duplicados non importados:" -#: src/Dialogs.vala:570 +#: src/Dialogs.vala:231 msgid "duplicates existing media item" msgstr "duplicados existentes do elemento multimedia" #. #. Files Not Imported Due to Camera Errors #. -#: src/Dialogs.vala:581 +#: src/Dialogs.vala:242 msgid "Photos/Videos Not Imported Due to Camera Errors:" msgstr "" "As fotos e/ou vídeos non puideron importarse por mor mor de erros na cámara:" -#: src/Dialogs.vala:584 src/Dialogs.vala:599 src/Dialogs.vala:614 -#: src/Dialogs.vala:630 src/Dialogs.vala:645 src/Dialogs.vala:659 +#: src/Dialogs.vala:245 src/Dialogs.vala:260 src/Dialogs.vala:275 +#: src/Dialogs.vala:291 src/Dialogs.vala:306 src/Dialogs.vala:320 msgid "error message:" msgstr "mensaxe de erro:" #. #. Files Not Imported Because They Weren't Recognized as Photos or Videos #. -#: src/Dialogs.vala:595 +#: src/Dialogs.vala:256 msgid "Files Not Imported Because They Weren’t Recognized as Photos or Videos:" msgstr "" "Ficheiros non importados porque non foron recoñecidos como fotos ou vídeos:" @@ -3251,7 +3216,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands #. -#: src/Dialogs.vala:610 +#: src/Dialogs.vala:271 msgid "" "Photos/Videos Not Imported Because They Weren’t in a Format Shotwell " "Understands:" @@ -3261,7 +3226,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library #. -#: src/Dialogs.vala:625 +#: src/Dialogs.vala:286 msgid "" "Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into its " "Library:" @@ -3269,7 +3234,7 @@ msgstr "" "Fotos/vídeos non importados porque o Shotwell non foi quen de copialos á " "fototeca:" -#: src/Dialogs.vala:629 +#: src/Dialogs.vala:290 #, c-format msgid "" "couldn’t copy %s\n" @@ -3281,39 +3246,39 @@ msgstr "" #. #. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt #. -#: src/Dialogs.vala:641 +#: src/Dialogs.vala:302 msgid "Photos/Videos Not Imported Because Files Are Corrupt:" msgstr "Fotos/vídeos non importados por estar os ficheiros estragados:" #. #. Photos/Videos Not Imported for Other Reasons #. -#: src/Dialogs.vala:656 +#: src/Dialogs.vala:317 msgid "Photos/Videos Not Imported for Other Reasons:" msgstr "Fotos/vídeos non importados por outras razóns:" -#: src/Dialogs.vala:676 +#: src/Dialogs.vala:337 #, c-format msgid "1 duplicate photo was not imported:\n" msgid_plural "%d duplicate photos were not imported:\n" msgstr[0] "Non se importou 1 foto porque xa foi importada:\n" msgstr[1] "Non se importaron %d fotos porque xa foron importadas:\n" -#: src/Dialogs.vala:679 +#: src/Dialogs.vala:340 #, c-format msgid "1 duplicate video was not imported:\n" msgid_plural "%d duplicate videos were not imported:\n" msgstr[0] "Non se importou 1 vídeo porque xa foi importado:\n" msgstr[1] "Non se importaron %d vídeos porque xa foron importados:\n" -#: src/Dialogs.vala:682 +#: src/Dialogs.vala:343 #, c-format msgid "1 duplicate photo/video was not imported:\n" msgid_plural "%d duplicate photos/videos were not imported:\n" msgstr[0] "Non se importou 1 foto/vídeo porque sería un duplicado:\n" msgstr[1] "Non se importaron %d fotos/vídeos porque serían un duplicados:\n" -#: src/Dialogs.vala:696 +#: src/Dialogs.vala:357 #, c-format msgid "1 photo failed to import due to a file or hardware error:\n" msgid_plural "%d photos failed to import due to a file or hardware error:\n" @@ -3321,7 +3286,7 @@ msgstr[0] "Non se importou 1 foto debido a un erro de ficheiro ou hardware:\n" msgstr[1] "" "Non se importaron %d fotos debido a un erro de ficheiro ou hardware:\n" -#: src/Dialogs.vala:699 +#: src/Dialogs.vala:360 #, c-format msgid "1 video failed to import due to a file or hardware error:\n" msgid_plural "%d videos failed to import due to a file or hardware error:\n" @@ -3331,7 +3296,7 @@ msgstr[1] "" "Fallou a importación de %d fotos debido a un erro do ficheiro ou do " "hardware:\n" -#: src/Dialogs.vala:702 +#: src/Dialogs.vala:363 #, c-format msgid "1 photo/video failed to import due to a file or hardware error:\n" msgid_plural "" @@ -3342,7 +3307,7 @@ msgstr[1] "" "Fallou a importación de %d fotos debido a un erro do ficheiro ou do " "hardware:\n" -#: src/Dialogs.vala:705 +#: src/Dialogs.vala:366 #, c-format msgid "1 file failed to import due to a file or hardware error:\n" msgid_plural "%d files failed to import due to a file or hardware error:\n" @@ -3353,7 +3318,7 @@ msgstr[1] "" "Non foi posíbel importar %d ficheiros debido a un erro dos ficheiros ou de " "hardware:\n" -#: src/Dialogs.vala:719 +#: src/Dialogs.vala:380 #, c-format msgid "" "1 photo failed to import because the photo library folder was not writable:\n" @@ -3367,7 +3332,7 @@ msgstr[1] "" "Produciuse un fallo ao importar %d fotos porque non é posíbel escribir no " "cartafol da fototeca:\n" -#: src/Dialogs.vala:722 +#: src/Dialogs.vala:383 #, c-format msgid "" "1 video failed to import because the photo library folder was not writable:\n" @@ -3381,7 +3346,7 @@ msgstr[1] "" "Produciuse un fallo ao importar %d vídeos porque non é posíbel escribir no " "cartafol da videoteca:\n" -#: src/Dialogs.vala:725 +#: src/Dialogs.vala:386 #, c-format msgid "" "1 photo/video failed to import because the photo library folder was not " @@ -3390,13 +3355,13 @@ msgid_plural "" "%d photos/videos failed to import because the photo library folder was not " "writable:\n" msgstr[0] "" -"Produciuse un fallo ao importar 1 foto/vídeo porque non é posíbel escribir no " -"cartafol da fototeca/videoteca:\n" -msgstr[1] "" -"Produciuse un fallo ao importar %d fotos/vídeos porque non é posíbel escribir " +"Produciuse un fallo ao importar 1 foto/vídeo porque non é posíbel escribir " "no cartafol da fototeca/videoteca:\n" +msgstr[1] "" +"Produciuse un fallo ao importar %d fotos/vídeos porque non é posíbel " +"escribir no cartafol da fototeca/videoteca:\n" -#: src/Dialogs.vala:728 +#: src/Dialogs.vala:389 #, c-format msgid "" "1 file failed to import because the photo library folder was not writable:\n" @@ -3410,7 +3375,7 @@ msgstr[1] "" "Non foi posíbel importar %d ficheiros debido a que a carpeta da fototeca non " "ten permisos de escritura:\n" -#: src/Dialogs.vala:742 +#: src/Dialogs.vala:403 #, c-format msgid "1 photo failed to import due to a camera error:\n" msgid_plural "%d photos failed to import due to a camera error:\n" @@ -3419,14 +3384,14 @@ msgstr[0] "" msgstr[1] "" "Produciuse un fallo ao importar %d fotos debido a un erro da cámara:\n" -#: src/Dialogs.vala:745 +#: src/Dialogs.vala:406 #, c-format msgid "1 video failed to import due to a camera error:\n" msgid_plural "%d videos failed to import due to a camera error:\n" msgstr[0] "Fallou a importación dun vídeo debido a un erro da cámara:\n" msgstr[1] "Fallou a importación de %d vídeos debido a un erro da cámara:\n" -#: src/Dialogs.vala:748 +#: src/Dialogs.vala:409 #, c-format msgid "1 photo/video failed to import due to a camera error:\n" msgid_plural "%d photos/videos failed to import due to a camera error:\n" @@ -3434,35 +3399,35 @@ msgstr[0] "Fallou a importación de 1 foto/vídeo debido a un erro da cámara:\n msgstr[1] "" "Fallou a importación de %d fotos/vídeos debido a un erro da cámara:\n" -#: src/Dialogs.vala:751 +#: src/Dialogs.vala:412 #, c-format msgid "1 file failed to import due to a camera error:\n" msgid_plural "%d files failed to import due to a camera error:\n" msgstr[0] "Non foi posíbel importar 1 ficheiro debido a un erro da cámara:\n" msgstr[1] "Non foi posíbel importar %d ficheiros debido a un erro da cámara:\n" -#: src/Dialogs.vala:765 +#: src/Dialogs.vala:426 #, c-format msgid "1 photo failed to import because it was corrupt:\n" msgid_plural "%d photos failed to import because they were corrupt:\n" msgstr[0] "Non foi posíbel importar 1 foto por estar estragada:\n" msgstr[1] "Non foi posñibel importar %d fotos por estaren estragadas:\n" -#: src/Dialogs.vala:768 +#: src/Dialogs.vala:429 #, c-format msgid "1 video failed to import because it was corrupt:\n" msgid_plural "%d videos failed to import because they were corrupt:\n" msgstr[0] "Non foi posíbel importar 1 vídeo por estar estragado:\n" msgstr[1] "Non foi posíbel importar %d vídeos por estaren estragados:\n" -#: src/Dialogs.vala:771 +#: src/Dialogs.vala:432 #, c-format msgid "1 photo/video failed to import because it was corrupt:\n" msgid_plural "%d photos/videos failed to import because they were corrupt:\n" msgstr[0] "Non foi posíbel importar 1 foto/vídeo por estar estragado:\n" msgstr[1] "Non foi posíbel importar %d fotos/vídeos por estaren estragados:\n" -#: src/Dialogs.vala:774 +#: src/Dialogs.vala:435 #, c-format msgid "1 file failed to import because it was corrupt:\n" msgid_plural "%d files failed to import because it was corrupt:\n" @@ -3473,7 +3438,7 @@ msgstr[1] "Non foi posíbel importar %d ficheiros por estaren estragados:\n" #. standard container formats are supported, it's just that the streams in them #. might or might not be interpretable), so this message does not need to be #. media specific -#: src/Dialogs.vala:791 +#: src/Dialogs.vala:452 #, c-format msgid "1 unsupported photo skipped:\n" msgid_plural "%d unsupported photos skipped:\n" @@ -3482,56 +3447,56 @@ msgstr[1] "Omitíronse %d fotos non compatíbeis:\n" #. we have no notion of "non-video" video files right now in Shotwell, so this #. message doesn't need to be media specific -#: src/Dialogs.vala:806 +#: src/Dialogs.vala:467 #, c-format msgid "1 non-image file skipped.\n" msgid_plural "%d non-image files skipped.\n" msgstr[0] "Omitiuse un ficheiro que non era unha imaxe:\n" msgstr[1] "Omitíronse %d ficheiros que non eran unha imaxe:\n" -#: src/Dialogs.vala:817 +#: src/Dialogs.vala:478 #, c-format msgid "1 photo skipped due to user cancel:\n" msgid_plural "%d photos skipped due to user cancel:\n" msgstr[0] "Omitiuse unha foto debido á cancelación do usuario:\n" msgstr[1] "Omitíronse %d fotos debido á cancelación do usuario:\n" -#: src/Dialogs.vala:820 +#: src/Dialogs.vala:481 #, c-format msgid "1 video skipped due to user cancel:\n" msgid_plural "%d videos skipped due to user cancel:\n" msgstr[0] "Omitiuse un vídeo debido á cancelación do usuario:\n" msgstr[1] "Omitíronse %d vídeos debido á cancelación do usuario:\n" -#: src/Dialogs.vala:823 +#: src/Dialogs.vala:484 #, c-format msgid "1 photo/video skipped due to user cancel:\n" msgid_plural "%d photos/videos skipped due to user cancel:\n" msgstr[0] "Omitiuse unha foto/vídeo debido á cancelación do usuario:\n" msgstr[1] "Omitíronse %d fotos/vídeos debido á cancelación do usuario:\n" -#: src/Dialogs.vala:826 +#: src/Dialogs.vala:487 #, c-format msgid "1 file skipped due to user cancel:\n" msgid_plural "%d file skipped due to user cancel:\n" msgstr[0] "Saltouse 1 ficheiro por cancelación do usuario:\n" msgstr[1] "Saltáronse %d ficheiros por cancelación do usuario:\n" -#: src/Dialogs.vala:840 +#: src/Dialogs.vala:501 #, c-format msgid "1 photo successfully imported.\n" msgid_plural "%d photos successfully imported.\n" msgstr[0] "Importouse unha foto correctamente.\n" msgstr[1] "Importáronse %d fotos correctamente.\n" -#: src/Dialogs.vala:843 +#: src/Dialogs.vala:504 #, c-format msgid "1 video successfully imported.\n" msgid_plural "%d videos successfully imported.\n" msgstr[0] "Importouse correctamente un vídeo.\n" msgstr[1] "Importáronse correctamente %d vídeos.\n" -#: src/Dialogs.vala:846 +#: src/Dialogs.vala:507 #, c-format msgid "1 photo/video successfully imported.\n" msgid_plural "%d photos/videos successfully imported.\n" @@ -3540,89 +3505,64 @@ msgstr[1] "Importáronse correctamente %d fotos ou vídeos.\n" #. if no media items were imported at all (i.e. an empty directory attempted), need to at least #. report that nothing was imported -#: src/Dialogs.vala:862 +#: src/Dialogs.vala:523 msgid "No photos or videos imported.\n" msgstr "Non se importou ningunha foto ou vídeo.\n" -#: src/Dialogs.vala:869 src/Dialogs.vala:888 +#: src/Dialogs.vala:530 src/Dialogs.vala:549 msgid "Import Complete" msgstr "Importación completa" -#: src/Dialogs.vala:1160 -#, c-format -msgid "%d second" -msgid_plural "%d seconds" -msgstr[0] "%d segundo" -msgstr[1] "%d segundos" - -#: src/Dialogs.vala:1163 -#, c-format -msgid "%d minute" -msgid_plural "%d minutes" -msgstr[0] "%d minuto" -msgstr[1] "%d minutos" - -#: src/Dialogs.vala:1167 -#, c-format -msgid "%d hour" -msgid_plural "%d hours" -msgstr[0] "%d hora" -msgstr[1] "%d horas" - -#: src/Dialogs.vala:1170 -msgid "1 day" -msgstr "1 día" - -#: src/Dialogs.vala:1317 src/Resources.vala:232 +#: src/Dialogs.vala:650 src/Resources.vala:199 msgid "Rename Event" msgstr "Renomear actividade" -#: src/Dialogs.vala:1317 +#: src/Dialogs.vala:650 msgid "Name:" msgstr "Nome:" #. Dialog title -#: src/Dialogs.vala:1328 +#: src/Dialogs.vala:661 msgctxt "Dialog Title" msgid "Edit Title" msgstr "Editar o título" -#: src/Dialogs.vala:1329 src/Properties.vala:343 +#: src/Dialogs.vala:662 src/Properties.vala:344 msgid "Title:" msgstr "Título:" #. Dialog title -#: src/Dialogs.vala:1345 src/Resources.vala:308 +#: src/Dialogs.vala:678 src/Resources.vala:275 msgid "Edit Event Comment" msgstr "Editar o comentario da actividade" -#: src/Dialogs.vala:1346 +#: src/Dialogs.vala:679 msgid "Edit Photo/Video Comment" msgstr "Editar o comentario da foto/vídeo" -#: src/Dialogs.vala:1347 src/Properties.vala:631 +#: src/Dialogs.vala:680 src/Properties.vala:632 msgid "Comment:" msgstr "Comentario:" -#: src/Dialogs.vala:1363 +#: src/Dialogs.vala:696 msgid "Remove and _Trash File" msgid_plural "Remove and _Trash Files" msgstr[0] "Re_tirar e envialo ao lixo" msgstr[1] "Re_tirar e envialos ao lixo" -#: src/Dialogs.vala:1367 +#: src/Dialogs.vala:700 msgid "_Remove From Library" msgstr "_Retirar da fototeca" -#: src/Dialogs.vala:1410 +#: src/Dialogs.vala:743 msgid "Revert External Edit?" msgstr "Desfacer a edición externa?" -#: src/Dialogs.vala:1410 +#: src/Dialogs.vala:743 msgid "Revert External Edits?" msgstr "Desfacer as edicións externas?" -#: src/Dialogs.vala:1412 +#: src/Dialogs.vala:745 #, c-format msgid "This will destroy all changes made to the external file. Continue?" msgid_plural "" @@ -3633,273 +3573,91 @@ msgstr[1] "" "Isto eliminará todos os cambios feitos a %d ficheiros externos. Desexa " "continuar?" -#: src/Dialogs.vala:1416 +#: src/Dialogs.vala:749 msgid "Re_vert External Edit" msgstr "Re_verter edicións externas" -#: src/Dialogs.vala:1416 +#: src/Dialogs.vala:749 msgid "Re_vert External Edits" msgstr "Des_facer as edicións externas" -#: src/Dialogs.vala:1437 +#: src/Dialogs.vala:770 #, c-format msgid "This will remove the photo from the library. Continue?" msgid_plural "This will remove %d photos from the library. Continue?" msgstr[0] "Isto eliminará a foto da fototeca. Desexa continuar?" msgstr[1] "Isto eliminará %d fotos da fototeca. Desexa continuar?" -#: src/Dialogs.vala:1444 src/Resources.vala:174 +#: src/Dialogs.vala:777 src/Resources.vala:141 msgid "_Remove" msgstr "_Retirar" -#: src/Dialogs.vala:1445 +#: src/Dialogs.vala:778 msgid "Remove Photo From Library" msgstr "Retirar as fotos da fototeca" -#: src/Dialogs.vala:1445 +#: src/Dialogs.vala:778 msgid "Remove Photos From Library" msgstr "Eliminar fotos da biblioteca" -#: src/Dialogs.vala:1543 +#: src/Dialogs.vala:798 #, c-format -msgid "%d%%" -msgstr "%d%%" - -#: src/Dialogs.vala:1697 -msgid "AM" -msgstr "AM" - -#: src/Dialogs.vala:1698 -msgid "PM" -msgstr "PM" +msgid "" +"\n" +"\n" +"And %d other." +msgid_plural "" +"\n" +"\n" +"And %d others." +msgstr[0] "" +"\n" +"\n" +"E %d máis." +msgstr[1] "" +"\n" +"\n" +"E %d máis." -#: src/Dialogs.vala:1699 -msgid "24 Hr" -msgstr "24 Hr" +#: src/Dialogs.vala:822 src/Dialogs.vala:849 +msgid "Tags (separated by commas):" +msgstr "Etiquetas (separadas por comas):" -#: src/Dialogs.vala:1714 -msgid "_Shift photos/videos by the same amount" -msgstr "_Maiús fotos/vídeos da mesma cantidade" +#. This function is used to determine whether or not files should be copied or linked when imported. +#. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. +#: src/Dialogs.vala:908 +msgid "" +"Shotwell can copy the photos into your library folder or it can import them " +"without copying." +msgstr "" +"Shotwell pode copiar as fotos no cartafol da fototeca ou pode importalas sen " +"copialas." -#: src/Dialogs.vala:1719 -msgid "Set _all photos/videos to this time" -msgstr "Configurar _todas as fotos/vídeos para esta hora" +#: src/Dialogs.vala:913 +msgid "Co_py Photos" +msgstr "Co_piar fotos" -#: src/Dialogs.vala:1725 -msgid "_Modify original photo file" -msgid_plural "_Modify original photo files" -msgstr[0] "_Modificar o ficheiro da foto orixinal" -msgstr[1] "_Modificar os ficheiros da foto orixinal" +#: src/Dialogs.vala:914 +msgid "_Import in Place" +msgstr "Importalas no cartafol" -#: src/Dialogs.vala:1729 -msgid "_Modify original file" -msgid_plural "_Modify original files" -msgstr[0] "_Modificar o ficheiro orixinal" -msgstr[1] "_Modificar os ficheiros orixinais" +#: src/Dialogs.vala:915 +msgid "Import to Library" +msgstr "Importar á fototeca" -#: src/Dialogs.vala:1817 -msgid "Original: " -msgstr "Orixinal: " +#: src/Dialogs.vala:925 src/PhotoPage.vala:2876 +msgid "Remove From Library" +msgstr "Retirar da fototeca" -# The string %m/%d/%y, %H:%M:%S is a format string that describes a U.S.-style -# 24 hour date and time (e.g. 9/22/2009, 13:15:04). You should translate -# %m/%d/%y, %H:%M:%S so that it describes the 24 hour date and time format -# used in your language and region. The format string you enter should conform -# to POSIX date and time formatting conventions. See the strftime manpage for -# a list of format specifiers and their meanings. -#: src/Dialogs.vala:1818 -msgid "%m/%d/%Y, %H:%M:%S" -msgstr "%d/%m/%Y, %H:%M:%S" +#: src/Dialogs.vala:926 src/PhotoPage.vala:2876 +msgid "Removing Photo From Library" +msgstr "Eliminando as fotos da fototeca" -# The string %m/%d/%y, %H:%M:%S is a format string that describes a U.S.-style -# 24 hour date and time (e.g. 9/22/2009, 13:15:04). You should translate -# %m/%d/%y, %H:%M:%S so that it describes the 24 hour date and time format -# used in your language and region. The format string you enter should conform -# to POSIX date and time formatting conventions. See the strftime manpage for -# a list of format specifiers and their meanings. -#: src/Dialogs.vala:1819 -msgid "%m/%d/%Y, %I:%M:%S %p" -msgstr "%d/%m/%Y, %I:%M:%S %p" +#: src/Dialogs.vala:926 +msgid "Removing Photos From Library" +msgstr "Eliminando fotos da fototeca" -#: src/Dialogs.vala:1908 -#, c-format -msgid "" -"Exposure time will be shifted forward by\n" -"%d %s, %d %s, %d %s, and %d %s." -msgstr "" -"O tempo de exposición retardouse por\n" -"%d %s, %d %s, %d %s, y %d %s." - -#: src/Dialogs.vala:1909 -#, c-format -msgid "" -"Exposure time will be shifted backward by\n" -"%d %s, %d %s, %d %s, and %d %s." -msgstr "" -"O tempo de exposición desprazarase cara atrás por\n" -"%d %s, %d %s, %d %s, y %d %s." - -#: src/Dialogs.vala:1911 -msgid "day" -msgid_plural "days" -msgstr[0] "día" -msgstr[1] "días" - -#: src/Dialogs.vala:1912 -msgid "hour" -msgid_plural "hours" -msgstr[0] "hora" -msgstr[1] "horas" - -#: src/Dialogs.vala:1913 -msgid "minute" -msgid_plural "minutes" -msgstr[0] "minuto" -msgstr[1] "minutos" - -#: src/Dialogs.vala:1914 -msgid "second" -msgid_plural "seconds" -msgstr[0] "segundo" -msgstr[1] "segundos" - -#: src/Dialogs.vala:1958 -#, c-format -msgid "" -"\n" -"\n" -"And %d other." -msgid_plural "" -"\n" -"\n" -"And %d others." -msgstr[0] "" -"\n" -"\n" -"E %d máis." -msgstr[1] "" -"\n" -"\n" -"E %d máis." - -#: src/Dialogs.vala:1982 src/Dialogs.vala:2009 -msgid "Tags (separated by commas):" -msgstr "Etiquetas (separadas por comas):" - -#: src/Dialogs.vala:2089 -msgid "Welcome!" -msgstr "Dámoslle a benvida!" - -#: src/Dialogs.vala:2096 -msgid "Welcome to Shotwell!" -msgstr "Benvido/a ao Shotwell!" - -#: src/Dialogs.vala:2101 -msgid "To get started, import photos in any of these ways:" -msgstr "Para comezar, importe as fotos de calquera das seguintes maneiras:" - -#: src/Dialogs.vala:2121 -#, c-format -msgid "Choose File %s Import From Folder" -msgstr "" -"Seleccione Importar ficheiro %s desde o cartafol" - -#: src/Dialogs.vala:2122 -msgid "Drag and drop photos onto the Shotwell window" -msgstr "Arrastre e solte as fotos na xanela do Shotwell" - -#: src/Dialogs.vala:2123 -msgid "Connect a camera to your computer and import" -msgstr "Conecte unha cámara ao computador e importe" - -#: src/Dialogs.vala:2134 -#, c-format -msgid "_Import photos from your %s folder" -msgstr "_Importar fotos desde o seu cartafol %s" - -#: src/Dialogs.vala:2141 -msgid "You can also import photos in any of these ways:" -msgstr "Para comezar, importe as fotos de calquera das seguintes maneiras:" - -#: src/Dialogs.vala:2152 -msgid "_Don’t show this message again" -msgstr "Non mostrar esta mensaxe _de novo" - -#: src/Dialogs.vala:2189 -#, c-format -msgid "Import photos from your %s library" -msgstr "Importar fotos desde a súa fototeca %s" - -#. We're installed system-wide, so use the system help. -#. We're being run from the build directory; we'll have to handle clicks to this -#. link manually ourselves, due to a limitation of help: URIs. -#: src/Dialogs.vala:2373 src/Dialogs.vala:2377 -msgid "(Help)" -msgstr "(Axuda)" - -#: src/Dialogs.vala:2381 -#, c-format -msgid "Year%sMonth%sDay" -msgstr "Ano%smes%sdía" - -#: src/Dialogs.vala:2383 -#, c-format -msgid "Year%sMonth" -msgstr "Ano%smes" - -#: src/Dialogs.vala:2385 -#, c-format -msgid "Year%sMonth-Day" -msgstr "Ano%smes-día" - -#: src/Dialogs.vala:2387 -msgid "Year-Month-Day" -msgstr "Ano-mes-día" - -#: src/Dialogs.vala:2388 src/editing_tools/EditingTools.vala:760 -msgid "Custom" -msgstr "Personalizado" - -#. Invalid pattern. -#: src/Dialogs.vala:2627 -msgid "Invalid pattern" -msgstr "Patrón incorrecto" - -#. This function is used to determine whether or not files should be copied or linked when imported. -#. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. -#: src/Dialogs.vala:2731 -msgid "" -"Shotwell can copy the photos into your library folder or it can import them " -"without copying." -msgstr "" -"Shotwell pode copiar as fotos no cartafol da fototeca ou pode importalas sen " -"copialas." - -#: src/Dialogs.vala:2736 -msgid "Co_py Photos" -msgstr "Co_piar fotos" - -#: src/Dialogs.vala:2737 -msgid "_Import in Place" -msgstr "Importalas no cartafol" - -#: src/Dialogs.vala:2738 -msgid "Import to Library" -msgstr "Importar á fototeca" - -#: src/Dialogs.vala:2748 src/PhotoPage.vala:2874 -msgid "Remove From Library" -msgstr "Retirar da fototeca" - -#: src/Dialogs.vala:2749 src/PhotoPage.vala:2874 -msgid "Removing Photo From Library" -msgstr "Eliminando as fotos da fototeca" - -#: src/Dialogs.vala:2749 -msgid "Removing Photos From Library" -msgstr "Eliminando fotos da fototeca" - -#: src/Dialogs.vala:2763 +#: src/Dialogs.vala:940 #, c-format msgid "" "This will remove the photo/video from your Shotwell library. Would you also " @@ -3922,7 +3680,7 @@ msgstr[1] "" "\n" "Esta acción non é posíbel desfacer." -#: src/Dialogs.vala:2767 +#: src/Dialogs.vala:944 #, c-format msgid "" "This will remove the video from your Shotwell library. Would you also like " @@ -3945,7 +3703,7 @@ msgstr[1] "" "\n" "Esta acción non é posíbel desfacela." -#: src/Dialogs.vala:2771 +#: src/Dialogs.vala:948 #, c-format msgid "" "This will remove the photo from your Shotwell library. Would you also like " @@ -3968,7 +3726,7 @@ msgstr[1] "" "\n" "Esta acción non é posíbel desfacela." -#: src/Dialogs.vala:2803 +#: src/Dialogs.vala:980 #, c-format msgid "" "The photo or video cannot be moved to your desktop trash. Delete this file?" @@ -3982,7 +3740,7 @@ msgstr[1] "" "eliminar os ficheiros?" #. Alert the user that the files were not removed. -#: src/Dialogs.vala:2820 +#: src/Dialogs.vala:997 #, c-format msgid "The photo or video cannot be deleted." msgid_plural "%d photos/videos cannot be deleted." @@ -4021,37 +3779,277 @@ msgstr "" msgid "Unable open photo %s. Sorry." msgstr "Non é posíbel abrir a foto %s. Sentímolo." -#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:176 ui/direct.ui:8 -msgid "_Save" -msgstr "_Gardar" +#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:143 ui/direct.ui:8 +#: ui/textentrydialog.ui:33 +msgid "_Save" +msgstr "_Gardar" + +#: src/direct/DirectPhotoPage.vala:316 +msgid "_Save a Copy" +msgstr "_Gardar unha copia" + +#: src/direct/DirectPhotoPage.vala:319 +#, c-format +msgid "Lose changes to %s?" +msgstr "Desexa perder os cambios de %s?" + +#: src/direct/DirectPhotoPage.vala:320 +msgid "Close _without Saving" +msgstr "Pechar _sen gardar" + +#: src/direct/DirectPhotoPage.vala:353 +#, c-format +msgid "Error while saving to %s: %s" +msgstr "Produciuse un erro ao gardar en %s: %s" + +#: src/direct/DirectPhotoPage.vala:383 src/direct/DirectPhotoPage.vala:404 +msgid "Save As" +msgstr "Gardar como" + +#. verify this is a directory +#: src/DirectoryMonitor.vala:891 +#, c-format +msgid "Unable to monitor %s: Not a directory (%s)" +msgstr "Non foi posíbel monitorizar %s: non é un cartafol (%s)" + +#: src/dialogs/AdjustDateTimeDialog.vala:78 +msgid "AM" +msgstr "AM" + +#: src/dialogs/AdjustDateTimeDialog.vala:79 +msgid "PM" +msgstr "PM" + +#: src/dialogs/AdjustDateTimeDialog.vala:80 +msgid "24 Hr" +msgstr "24 Hr" + +#: src/dialogs/AdjustDateTimeDialog.vala:95 +msgid "_Shift photos/videos by the same amount" +msgstr "_Cambiar fotos/vídeos na mesma medida" + +#: src/dialogs/AdjustDateTimeDialog.vala:100 +msgid "Set _all photos/videos to this time" +msgstr "Aplicar a _todas as fotos/vídeos este tempo" + +#: src/dialogs/AdjustDateTimeDialog.vala:106 +msgid "_Modify original photo file" +msgid_plural "_Modify original photo files" +msgstr[0] "_Modificar o ficheiro da foto orixinal" +msgstr[1] "_Modificar os ficheiros da foto orixinal" + +#: src/dialogs/AdjustDateTimeDialog.vala:110 +msgid "_Modify original file" +msgid_plural "_Modify original files" +msgstr[0] "_Modificar o ficheiro orixinal" +msgstr[1] "_Modificar os ficheiros orixinais" + +#: src/dialogs/AdjustDateTimeDialog.vala:213 +msgid "Original: " +msgstr "Orixinal: " + +# The string %m/%d/%y, %H:%M:%S is a format string that describes a U.S.-style +# 24 hour date and time (e.g. 9/22/2009, 13:15:04). You should translate +# %m/%d/%y, %H:%M:%S so that it describes the 24 hour date and time format +# used in your language and region. The format string you enter should conform +# to POSIX date and time formatting conventions. See the strftime manpage for +# a list of format specifiers and their meanings. +#: src/dialogs/AdjustDateTimeDialog.vala:214 +msgid "%m/%d/%Y, %H:%M:%S" +msgstr "%d/%m/%Y, %H:%M:%S" + +# The string %m/%d/%y, %H:%M:%S is a format string that describes a U.S.-style +# 24 hour date and time (e.g. 9/22/2009, 13:15:04). You should translate +# %m/%d/%y, %H:%M:%S so that it describes the 24 hour date and time format +# used in your language and region. The format string you enter should conform +# to POSIX date and time formatting conventions. See the strftime manpage for +# a list of format specifiers and their meanings. +#: src/dialogs/AdjustDateTimeDialog.vala:215 +msgid "%m/%d/%Y, %I:%M:%S %p" +msgstr "%d/%m/%Y, %I:%M:%S %p" + +#: src/dialogs/AdjustDateTimeDialog.vala:306 +#, c-format +msgid "" +"Exposure time will be shifted forward by\n" +"%d %s, %d %s, %d %s, and %d %s." +msgstr "" +"O tempo de exposición retardouse por\n" +"%d %s, %d %s, %d %s, y %d %s." + +#: src/dialogs/AdjustDateTimeDialog.vala:307 +#, c-format +msgid "" +"Exposure time will be shifted backward by\n" +"%d %s, %d %s, %d %s, and %d %s." +msgstr "" +"O tempo de exposición desprazarase cara atrás por\n" +"%d %s, %d %s, %d %s, y %d %s." + +#: src/dialogs/AdjustDateTimeDialog.vala:309 +msgid "day" +msgid_plural "days" +msgstr[0] "día" +msgstr[1] "días" + +#: src/dialogs/AdjustDateTimeDialog.vala:310 +msgid "hour" +msgid_plural "hours" +msgstr[0] "hora" +msgstr[1] "horas" + +#: src/dialogs/AdjustDateTimeDialog.vala:311 +msgid "minute" +msgid_plural "minutes" +msgstr[0] "minuto" +msgstr[1] "minutos" + +#: src/dialogs/AdjustDateTimeDialog.vala:312 +msgid "second" +msgid_plural "seconds" +msgstr[0] "segundo" +msgstr[1] "segundos" + +#. "Unmodified" and "Current," though they appear in the "Format:" popup menu, really +#. aren't formats so much as they are operating modes that determine specific formats. +#. Hereafter we'll refer to these as "special formats." +#: src/dialogs/ExportDialog.vala:15 +msgid "Unmodified" +msgstr "Sen modificar" + +#: src/dialogs/ExportDialog.vala:16 +msgid "Current" +msgstr "Actual" + +#. layout controls +#: src/dialogs/ExportDialog.vala:90 +msgid "_Format:" +msgstr "_Formato:" + +#: src/dialogs/ExportDialog.vala:93 +msgid "_Quality:" +msgstr "_Calidade:" + +#: src/dialogs/ExportDialog.vala:96 +msgid "_Scaling constraint:" +msgstr "Re_strición de escala:" + +#: src/dialogs/ExportDialog.vala:99 +msgid "_Pixels:" +msgstr "_Píxeles:" + +#: src/dialogs/ExportDialog.vala:103 +msgid "Export _metadata:" +msgstr "Exportar _metadatos:" + +#. We're installed system-wide, so use the system help. +#. We're being run from the build directory; we'll have to handle clicks to this +#. link manually ourselves, due to a limitation of help: URIs. +#: src/dialogs/Preferences.vala:108 src/dialogs/Preferences.vala:112 +msgid "(Help)" +msgstr "(Axuda)" + +#: src/dialogs/Preferences.vala:116 +#, c-format +msgid "Year%sMonth%sDay" +msgstr "Ano%smes%sdía" + +#: src/dialogs/Preferences.vala:118 +#, c-format +msgid "Year%sMonth" +msgstr "Ano%smes" + +#: src/dialogs/Preferences.vala:120 +#, c-format +msgid "Year%sMonth-Day" +msgstr "Ano%smes-día" + +#: src/dialogs/Preferences.vala:122 +msgid "Year-Month-Day" +msgstr "Ano-mes-día" + +#: src/dialogs/Preferences.vala:123 src/editing_tools/EditingTools.vala:760 +msgid "Custom" +msgstr "Personalizado" + +#. Invalid pattern. +#: src/dialogs/Preferences.vala:351 +msgid "Invalid pattern" +msgstr "Patrón incorrecto" + +#: src/dialogs/ProgressDialog.vala:97 +#, c-format +msgid "%d%%" +msgstr "%d%%" + +#: src/dialogs/SetBackgroundSlideshow.vala:49 +#, c-format +msgid "%d second" +msgid_plural "%d seconds" +msgstr[0] "%d segundo" +msgstr[1] "%d segundos" + +#: src/dialogs/SetBackgroundSlideshow.vala:52 +#, c-format +msgid "%d minute" +msgid_plural "%d minutes" +msgstr[0] "%d minuto" +msgstr[1] "%d minutos" + +#: src/dialogs/SetBackgroundSlideshow.vala:56 +#, c-format +msgid "%d hour" +msgid_plural "%d hours" +msgstr[0] "%d hora" +msgstr[1] "%d horas" + +#: src/dialogs/SetBackgroundSlideshow.vala:59 +msgid "1 day" +msgstr "1 día" + +#: src/dialogs/WelcomeDialog.vala:35 +msgid "Welcome!" +msgstr "Dámoslle a benvida!" + +#: src/dialogs/WelcomeDialog.vala:42 +msgid "Welcome to Shotwell!" +msgstr "Benvido/a ao Shotwell!" -#: src/direct/DirectPhotoPage.vala:316 -msgid "_Save a Copy" -msgstr "_Gardar unha copia" +#: src/dialogs/WelcomeDialog.vala:47 +msgid "To get started, import photos in any of these ways:" +msgstr "Para comezar, importe as fotos de calquera das seguintes maneiras:" -#: src/direct/DirectPhotoPage.vala:319 +#: src/dialogs/WelcomeDialog.vala:67 #, c-format -msgid "Lose changes to %s?" -msgstr "Desexa perder os cambios de %s?" +msgid "Choose File %s Import From Folder" +msgstr "" +"Seleccione Importar ficheiro %s desde o cartafol" -#: src/direct/DirectPhotoPage.vala:320 -msgid "Close _without Saving" -msgstr "Pechar _sen gardar" +#: src/dialogs/WelcomeDialog.vala:68 +msgid "Drag and drop photos onto the Shotwell window" +msgstr "Arrastre e solte as fotos na xanela do Shotwell" -#: src/direct/DirectPhotoPage.vala:353 +#: src/dialogs/WelcomeDialog.vala:69 +msgid "Connect a camera to your computer and import" +msgstr "Conecte unha cámara ao computador e importe" + +#: src/dialogs/WelcomeDialog.vala:80 #, c-format -msgid "Error while saving to %s: %s" -msgstr "Produciuse un erro ao gardar en %s: %s" +msgid "_Import photos from your %s folder" +msgstr "_Importar fotos desde o seu cartafol %s" -#: src/direct/DirectPhotoPage.vala:383 src/direct/DirectPhotoPage.vala:404 -msgid "Save As" -msgstr "Gardar como" +#: src/dialogs/WelcomeDialog.vala:87 +msgid "You can also import photos in any of these ways:" +msgstr "Para comezar, importe as fotos de calquera das seguintes maneiras:" -#. verify this is a directory -#: src/DirectoryMonitor.vala:891 +#: src/dialogs/WelcomeDialog.vala:98 +msgid "_Don’t show this message again" +msgstr "Non mostrar esta mensaxe _de novo" + +#: src/dialogs/WelcomeDialog.vala:135 #, c-format -msgid "Unable to monitor %s: Not a directory (%s)" -msgstr "Non foi posíbel monitorizar %s: non é un cartafol (%s)" +msgid "Import photos from your %s library" +msgstr "Importar fotos desde a súa fototeca %s" #: src/editing_tools/EditingTools.vala:644 msgid "Return to current photo dimensions" @@ -4165,7 +4163,7 @@ msgstr "30 × 40 cm" msgid "A3 (297 × 420 mm)" msgstr "A3 (297 × 420 mm)" -#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:398 +#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:399 msgid "Size:" msgstr "Tamaño:" @@ -4183,8 +4181,8 @@ msgid "_Reset" msgstr "_Restabelecer" #. fit both on the top line, emit and move on -#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:439 -#: src/Properties.vala:443 src/Properties.vala:450 +#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:440 +#: src/Properties.vala:444 src/Properties.vala:451 msgid "Exposure:" msgstr "Tempo de exposición:" @@ -4208,47 +4206,49 @@ msgstr "Temperatura:" msgid "Shadows:" msgstr "Sombras:" -#: src/editing_tools/EditingTools.vala:2285 +#. FIXME: Hack to make the slider the same length as the other. Find out why it is aligned +#. Differently (probably because it only has positive values) +#: src/editing_tools/EditingTools.vala:2287 msgid "Highlights:" msgstr "Luces altas:" -#: src/editing_tools/EditingTools.vala:2341 +#: src/editing_tools/EditingTools.vala:2344 msgid "Reset Colors" msgstr "Restabelecer as cores" -#: src/editing_tools/EditingTools.vala:2341 +#: src/editing_tools/EditingTools.vala:2344 msgid "Reset all color adjustments to original" msgstr "Restabelecer todos os axustes de cor ao orixinal" -#: src/editing_tools/EditingTools.vala:2700 +#: src/editing_tools/EditingTools.vala:2703 msgid "Temperature" msgstr "Temperatura" -#: src/editing_tools/EditingTools.vala:2712 +#: src/editing_tools/EditingTools.vala:2715 msgid "Tint" msgstr "Matiz" -#: src/editing_tools/EditingTools.vala:2724 +#: src/editing_tools/EditingTools.vala:2727 msgid "Contrast" msgstr "Contraste" -#: src/editing_tools/EditingTools.vala:2738 +#: src/editing_tools/EditingTools.vala:2741 msgid "Saturation" msgstr "Saturación" -#: src/editing_tools/EditingTools.vala:2751 +#: src/editing_tools/EditingTools.vala:2754 msgid "Exposure" msgstr "Tempo de exposición" -#: src/editing_tools/EditingTools.vala:2764 +#: src/editing_tools/EditingTools.vala:2767 msgid "Shadows" msgstr "Sombras" -#: src/editing_tools/EditingTools.vala:2777 +#: src/editing_tools/EditingTools.vala:2780 msgid "Highlights" msgstr "Luces altas" -#: src/editing_tools/EditingTools.vala:2787 +#: src/editing_tools/EditingTools.vala:2790 msgid "Contrast Expansion" msgstr "Expansión de contraste" @@ -4256,30 +4256,26 @@ msgstr "Expansión de contraste" msgid "Angle:" msgstr "Ángulo:" -#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:203 +#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:170 #: ui/direct.ui:144 ui/photo.ui:233 msgid "_Straighten" msgstr "_Endereitar" -#: src/events/EventsBranch.vala:25 -msgid "Events" -msgstr "Actividades" - -#: src/events/EventDirectoryItem.vala:83 +#: src/events/EventDirectoryItem.vala:97 #, c-format msgid "%d Photo/Video" msgid_plural "%d Photos/Videos" msgstr[0] "%d Foto/Vídeo" msgstr[1] "%d Fotos/Vídeos" -#: src/events/EventDirectoryItem.vala:85 src/Properties.vala:358 +#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:359 #, c-format msgid "%d Video" msgid_plural "%d Videos" msgstr[0] "%d vídeo" msgstr[1] "%d vídeos" -#: src/events/EventDirectoryItem.vala:87 src/Properties.vala:356 +#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:357 #, c-format msgid "%d Photo" msgid_plural "%d Photos" @@ -4290,6 +4286,14 @@ msgstr[1] "%d fotos" msgid "No Event" msgstr "Ningunha actividade" +#: src/events/EventsBranch.vala:25 +msgid "Events" +msgstr "Actividades" + +#: src/events/EventsBranch.vala:25 +msgid "Browse through your events" +msgstr "" + #: src/events/EventsDirectoryPage.vala:149 msgid "No events" msgstr "Sen actividades" @@ -4354,17 +4358,22 @@ msgstr "Exportar" msgid "Folders" msgstr "Cartafoles" -#: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 -#: ui/preferences_dialog.ui:512 -msgid "Library" -msgstr "Fototeca" +#: src/folders/FoldersBranch.vala:144 +msgid "Browse the library’s folder structure" +msgstr "" -#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1083 -msgid "Photos" -msgstr "Fotos" +#: src/import-roll/ImportRollBranch.vala:44 +#, fuzzy +#| msgid "_Import" +msgid "Imports" +msgstr "_Importar" + +#: src/import-roll/ImportRollBranch.vala:44 +msgid "Browse the library’s import history" +msgstr "" -#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1102 -#: src/SearchFilter.vala:1103 +#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1104 +#: src/SearchFilter.vala:1105 msgid "Flagged" msgstr "Marcado" @@ -4385,23 +4394,39 @@ msgstr "%s importada" msgid "Last Import" msgstr "Última importación" -#: src/library/LibraryWindow.vala:508 +#: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 +#: ui/preferences_dialog.ui:464 +msgid "Library" +msgstr "Fototeca" + +# GNOME Application Comment +#: src/library/LibraryBranch.vala:30 +#, fuzzy +#| msgid "Organize your photos" +msgid "Organize and browse your photos" +msgstr "Organiza as túas fotos" + +#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1085 +msgid "Photos" +msgstr "Fotos" + +#: src/library/LibraryWindow.vala:511 msgid "Import From Folder" msgstr "Importar desde cartafol" -#: src/library/LibraryWindow.vala:515 +#: src/library/LibraryWindow.vala:518 msgid "Recurse Into Subfolders" msgstr "Recursivo nos subcartafoles" -#: src/library/LibraryWindow.vala:583 ui/trash.ui:288 +#: src/library/LibraryWindow.vala:586 ui/trash.ui:288 msgid "Empty Trash" msgstr "Baleirar o lixo" -#: src/library/LibraryWindow.vala:583 +#: src/library/LibraryWindow.vala:586 msgid "Emptying Trash…" msgstr "Baleirando o lixo..." -#: src/library/LibraryWindow.vala:779 +#: src/library/LibraryWindow.vala:782 #, c-format msgid "" "Shotwell is configured to import photos to your home directory.\n" @@ -4414,33 +4439,33 @@ msgstr "" "preferencias de %s.\n" "Desexa continuar importando as fotos?" -#: src/library/LibraryWindow.vala:782 ui/preferences_dialog.ui:142 +#: src/library/LibraryWindow.vala:785 ui/preferences_dialog.ui:86 msgid "Library Location" msgstr "Localización da fototeca" #. TODO: Specify which directory/file. -#: src/library/LibraryWindow.vala:795 +#: src/library/LibraryWindow.vala:798 msgid "Photos cannot be imported from this directory." msgstr "Non é posíbel importar as fotos deste cartafol." -#: src/library/LibraryWindow.vala:1075 +#: src/library/LibraryWindow.vala:1078 #, c-format msgid "%s (%d%%)" msgstr "%s (%d%%)" -#: src/library/LibraryWindow.vala:1119 src/library/LibraryWindow.vala:1130 +#: src/library/LibraryWindow.vala:1122 src/library/LibraryWindow.vala:1133 msgid "Updating library…" msgstr "Actualizando a fototeca..." -#: src/library/LibraryWindow.vala:1136 +#: src/library/LibraryWindow.vala:1139 msgid "Preparing to auto-import photos…" msgstr "Preparando a importación automática das fotos..." -#: src/library/LibraryWindow.vala:1141 +#: src/library/LibraryWindow.vala:1144 msgid "Auto-importing photos…" msgstr "Importar imaxes automaticamente..." -#: src/library/LibraryWindow.vala:1149 +#: src/library/LibraryWindow.vala:1152 msgid "Writing metadata to files…" msgstr "Escribindo os metadatos nos ficheiros..." @@ -4542,7 +4567,7 @@ msgstr "Iniciar o aplicativo en modo pantalla completa" msgid "[FILE]" msgstr "[FICHEIRO]" -#: src/main.vala:360 +#: src/main.vala:363 #, c-format msgid "Run “%s --help” to see a full list of available command line options.\n" msgstr "" @@ -4554,11 +4579,11 @@ msgstr "" msgid "Unable to process monitoring updates: %s" msgstr "Non é posíbel procesar as actualización de monitorización: %s" -#: src/MediaPage.vala:158 +#: src/MediaPage.vala:157 msgid "Adjust the size of the thumbnails" msgstr "Axustar o tamaño das miniaturas" -#: src/MediaPage.vala:503 +#: src/MediaPage.vala:500 #, c-format msgid "" "Shotwell was unable to play the selected video:\n" @@ -4567,34 +4592,34 @@ msgstr "" "Shotwell non puido reproducir o vídeo seleccionado:\n" "%s" -#: src/Page.vala:1306 +#: src/Page.vala:1324 msgid "No photos/videos" msgstr "Ningunha foto ou vídeo" -#: src/Page.vala:1310 +#: src/Page.vala:1328 msgid "No photos/videos found which match the current filter" msgstr "Non foi posíbel atopar fotos/vídeos usando este filtro" -#: src/Page.vala:2623 +#: src/Page.vala:2641 msgid "Photos cannot be exported to this directory." msgstr "As fotos non poden ser exportadas a este cartafol." #. previous button -#: src/PhotoPage.vala:538 +#: src/PhotoPage.vala:540 msgid "Previous photo" msgstr "Foto anterior" #. next button -#: src/PhotoPage.vala:544 +#: src/PhotoPage.vala:546 msgid "Next photo" msgstr "Foto seguinte" -#: src/PhotoPage.vala:1850 +#: src/PhotoPage.vala:1852 #, c-format msgid "Photo source file missing: %s" msgstr "Falta o ficheiro orixe da foto: %s" -#: src/PhotoPage.vala:3018 +#: src/PhotoPage.vala:3020 #, c-format msgid "Unable to export %s: %s" msgstr "Non é posíbel exportar %s: %s" @@ -4603,6 +4628,10 @@ msgstr "Non é posíbel exportar %s: %s" msgid "BMP" msgstr "BMP" +#: src/photos/GifSupport.vala:32 +msgid "GIF" +msgstr "" + #: src/photos/JfifSupport.vala:84 msgid "JPEG" msgstr "JPEG" @@ -4690,19 +4719,19 @@ msgstr "" "\n" "%s" -#: src/Properties.vala:87 +#: src/Properties.vala:88 msgid "Today" msgstr "Hoxe" -#: src/Properties.vala:89 +#: src/Properties.vala:90 msgid "Yesterday" msgstr "Onte" -#: src/Properties.vala:346 +#: src/Properties.vala:347 msgid "Items:" msgstr "Elementos:" -#: src/Properties.vala:349 +#: src/Properties.vala:350 #, c-format msgid "%d Event" msgid_plural "%d Events" @@ -4710,104 +4739,104 @@ msgstr[0] "%d actividade" msgstr[1] "%d actividades" #. display only one date if start and end are the same -#: src/Properties.vala:380 +#: src/Properties.vala:381 msgid "Date:" msgstr "Data:" #. display only one time if start and end are the same -#: src/Properties.vala:384 +#: src/Properties.vala:385 msgid "Time:" msgstr "Hora:" #. display time range #. display date range -#: src/Properties.vala:387 src/Properties.vala:392 +#: src/Properties.vala:388 src/Properties.vala:393 msgid "From:" msgstr "De:" -#: src/Properties.vala:388 src/Properties.vala:393 +#: src/Properties.vala:389 src/Properties.vala:394 msgid "To:" msgstr "Ata:" -#: src/Properties.vala:407 +#: src/Properties.vala:408 msgid "Duration:" msgstr "Duración:" -#: src/Properties.vala:407 +#: src/Properties.vala:408 #, c-format msgid "%.1f seconds" msgstr "%.1f segundos" -#: src/Properties.vala:411 +#: src/Properties.vala:412 msgid "Developer:" msgstr "Desenvolvedor:" #. nothing special to be done for now for Events -#: src/Properties.vala:586 +#: src/Properties.vala:587 msgid "Location:" msgstr "Localización:" -#: src/Properties.vala:589 +#: src/Properties.vala:590 msgid "File size:" msgstr "Tamaño do ficheiro:" -#: src/Properties.vala:593 +#: src/Properties.vala:594 msgid "Current Development:" msgstr "Desenvolvemento actual:" -#: src/Properties.vala:595 +#: src/Properties.vala:596 msgid "Original dimensions:" msgstr "Dimensións orixinais:" -#: src/Properties.vala:598 +#: src/Properties.vala:599 msgid "Camera make:" msgstr "Cámara:" -#: src/Properties.vala:601 +#: src/Properties.vala:602 msgid "Camera model:" msgstr "Modelo da cámara:" -#: src/Properties.vala:604 +#: src/Properties.vala:605 msgid "Flash:" msgstr "Flash:" -#: src/Properties.vala:606 +#: src/Properties.vala:607 msgid "Focal length:" msgstr "Distancia focal:" -#: src/Properties.vala:609 +#: src/Properties.vala:610 msgid "Exposure date:" msgstr "Data da exposición:" -#: src/Properties.vala:612 +#: src/Properties.vala:613 msgid "Exposure time:" msgstr "Tempo de exposición:" -#: src/Properties.vala:615 +#: src/Properties.vala:616 msgid "Exposure bias:" msgstr "Exposición:" -#: src/Properties.vala:617 +#: src/Properties.vala:618 msgid "GPS latitude:" msgstr "Latitude GPS:" -#: src/Properties.vala:620 +#: src/Properties.vala:621 msgid "GPS longitude:" msgstr "Lonxitude GPS:" -#: src/Properties.vala:623 +#: src/Properties.vala:624 msgid "Artist:" msgstr "Artista:" -#: src/Properties.vala:625 +#: src/Properties.vala:626 msgid "Copyright:" msgstr "Dereitos de autor:" -#: src/Properties.vala:627 +#: src/Properties.vala:628 msgid "Software:" msgstr "Software:" -#: src/Properties.vala:644 +#: src/Properties.vala:643 msgid "Extended Information" msgstr "Información ampliada" @@ -4855,37 +4884,37 @@ msgstr "Obtendo información da conta..." msgid "Logging in…" msgstr "Iniciando sesión..." -#: src/publishing/PublishingUI.vala:195 +#: src/publishing/PublishingUI.vala:197 msgid "Publish Photos" msgstr "Publicar fotos" -#: src/publishing/PublishingUI.vala:196 +#: src/publishing/PublishingUI.vala:198 msgid "Publish photos _to:" msgstr "Publicar fo_tos en:" -#: src/publishing/PublishingUI.vala:198 +#: src/publishing/PublishingUI.vala:200 msgid "Publish Videos" msgstr "Publicar vídeos" -#: src/publishing/PublishingUI.vala:199 +#: src/publishing/PublishingUI.vala:201 msgid "Publish videos _to" msgstr "Publicar vídeos e_n" -#: src/publishing/PublishingUI.vala:201 +#: src/publishing/PublishingUI.vala:203 msgid "Publish Photos and Videos" msgstr "Publicar fotos e vídeos" -#: src/publishing/PublishingUI.vala:202 +#: src/publishing/PublishingUI.vala:204 msgid "Publish photos and videos _to" msgstr "Publicar fo_tos e vídeos en" #. There are no enabled publishing services that accept this media type, #. warn the user. -#: src/publishing/PublishingUI.vala:412 +#: src/publishing/PublishingUI.vala:414 msgid "Unable to publish" msgstr "Non foi posíbel publicar" -#: src/publishing/PublishingUI.vala:413 +#: src/publishing/PublishingUI.vala:415 #, c-format msgid "" "Shotwell cannot publish the selected items because you do not have a " @@ -4902,733 +4931,734 @@ msgstr "" msgid "Publishing" msgstr "Publicación" -#: src/Resources.vala:141 src/Resources.vala:146 ui/collection.ui:151 +#: src/Resources.vala:108 src/Resources.vala:113 ui/collection.ui:151 msgid "Rotate" msgstr "Rotar" -#: src/Resources.vala:142 +#: src/Resources.vala:109 msgid "Rotate Right" msgstr "Rotar á dereita" -#: src/Resources.vala:143 ui/collection.ui:148 +#: src/Resources.vala:110 ui/collection.ui:148 msgid "Rotate the photos right (press Ctrl to rotate left)" msgstr "Rotar as fotos á dereita (prema Ctrl para rotalas á esquerda)" -#: src/Resources.vala:147 +#: src/Resources.vala:114 msgid "Rotate Left" msgstr "Rotar á esquerda" -#: src/Resources.vala:148 +#: src/Resources.vala:115 msgid "Rotate the photos left" msgstr "Rotar as fotos á esquerda" -#: src/Resources.vala:151 +#: src/Resources.vala:118 msgid "Flip Horizontally" msgstr "Voltear horizontalmente" -#: src/Resources.vala:154 +#: src/Resources.vala:121 msgid "Flip Vertically" msgstr "Voltear verticalmente" -#: src/Resources.vala:156 ui/direct.ui:191 ui/events_directory.ui:168 -#: ui/event.ui:438 ui/import_queue.ui:83 ui/import.ui:201 ui/media.ui:421 -#: ui/offline.ui:198 ui/photo.ui:404 ui/tags.ui:440 ui/trash.ui:207 +#: src/Resources.vala:123 ui/direct.ui:192 ui/events_directory.ui:168 +#: ui/event.ui:438 ui/import_queue.ui:83 ui/import.ui:201 +#: ui/manifest_widget.ui:35 ui/media.ui:421 ui/offline.ui:198 ui/photo.ui:405 +#: ui/tags.ui:440 ui/trash.ui:207 msgid "_About" msgstr "_Sobre" -#: src/Resources.vala:157 +#: src/Resources.vala:124 msgid "_Apply" msgstr "_Aplicar" -#: src/Resources.vala:160 ui/direct.ui:44 ui/events_directory.ui:32 +#: src/Resources.vala:127 ui/direct.ui:44 ui/events_directory.ui:32 #: ui/event.ui:47 ui/import.ui:40 ui/media.ui:47 ui/offline.ui:32 #: ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 msgid "_Edit" msgstr "_Editar" -#: src/Resources.vala:161 +#: src/Resources.vala:128 msgid "_Forward" msgstr "_Adiante" -#: src/Resources.vala:162 ui/direct.ui:62 ui/events_directory.ui:125 +#: src/Resources.vala:129 ui/direct.ui:62 ui/events_directory.ui:125 #: ui/photo.ui:173 msgid "Fulls_creen" msgstr "_Pantalla completa" -#: src/Resources.vala:163 ui/direct.ui:173 ui/direct.ui:176 +#: src/Resources.vala:130 ui/direct.ui:174 ui/direct.ui:177 #: ui/events_directory.ui:150 ui/events_directory.ui:153 ui/event.ui:420 #: ui/event.ui:423 ui/import_queue.ui:65 ui/import_queue.ui:68 ui/import.ui:183 #: ui/import.ui:186 ui/media.ui:403 ui/media.ui:406 ui/offline.ui:180 -#: ui/offline.ui:183 ui/photo.ui:386 ui/photo.ui:389 ui/tags.ui:422 +#: ui/offline.ui:183 ui/photo.ui:387 ui/photo.ui:390 ui/tags.ui:422 #: ui/tags.ui:425 ui/trash.ui:189 ui/trash.ui:192 msgid "_Help" msgstr "_Axuda" -#: src/Resources.vala:164 +#: src/Resources.vala:131 msgid "Leave _Fullscreen" msgstr "Saír da _pantalla completa" -#: src/Resources.vala:165 src/Resources.vala:364 ui/tags.ui:450 +#: src/Resources.vala:132 src/Resources.vala:331 ui/tags.ui:450 msgid "_New" msgstr "_Novo" -#: src/Resources.vala:166 +#: src/Resources.vala:133 msgid "_Next" msgstr "_Seguinte" -#: src/Resources.vala:169 src/Resources.vala:318 ui/events_directory.ui:65 +#: src/Resources.vala:136 src/Resources.vala:285 ui/events_directory.ui:65 #: ui/event.ui:93 ui/import.ui:68 ui/media.ui:93 ui/offline.ui:72 #: ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 msgid "_Preferences" msgstr "_Preferencias" -#: src/Resources.vala:170 +#: src/Resources.vala:137 msgid "_Previous" msgstr "_Anterior" -#: src/Resources.vala:172 ui/direct.ui:37 ui/events_directory.ui:25 +#: src/Resources.vala:139 ui/direct.ui:37 ui/events_directory.ui:25 #: ui/event.ui:40 ui/import_queue.ui:31 ui/import.ui:33 ui/media.ui:40 #: ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 msgid "_Quit" msgstr "_Saír" -#: src/Resources.vala:173 +#: src/Resources.vala:140 msgid "_Refresh" msgstr "Actualiza_r" -#: src/Resources.vala:175 +#: src/Resources.vala:142 msgid "_Revert" msgstr "_Reverter" -#: src/Resources.vala:177 +#: src/Resources.vala:144 msgid "Save _As" msgstr "Gardar _como" -#: src/Resources.vala:178 +#: src/Resources.vala:145 msgid "Sort _Ascending" msgstr "Orde _ascendente" -#: src/Resources.vala:179 +#: src/Resources.vala:146 msgid "Sort _Descending" msgstr "Orde _descendente" -#: src/Resources.vala:180 +#: src/Resources.vala:147 msgid "_Stop" msgstr "_Deter" -#: src/Resources.vala:181 +#: src/Resources.vala:148 msgid "_Undelete" msgstr "_Recuperar" -#: src/Resources.vala:182 +#: src/Resources.vala:149 msgid "_Normal Size" msgstr "Tamaño _normal" -#: src/Resources.vala:183 +#: src/Resources.vala:150 msgid "Best _Fit" msgstr "Axuste ó_ptimo" -#: src/Resources.vala:184 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 +#: src/Resources.vala:151 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 #: ui/photo.ui:144 ui/tags.ui:260 msgid "Zoom _In" msgstr "Aument_ar" -#: src/Resources.vala:185 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 +#: src/Resources.vala:152 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 #: ui/photo.ui:149 ui/tags.ui:265 msgid "Zoom _Out" msgstr "Reduc_ir" -#: src/Resources.vala:188 ui/collection.ui:167 +#: src/Resources.vala:155 ui/collection.ui:167 msgid "Enhance" msgstr "Mellorar" -#: src/Resources.vala:189 ui/collection.ui:164 +#: src/Resources.vala:156 ui/collection.ui:164 msgid "Automatically improve the photo’s appearance" msgstr "Mellorar automaticamente a aparencia da foto" -#: src/Resources.vala:192 +#: src/Resources.vala:159 msgid "Copy Color Adjustments" msgstr "Copiar os axustes da cor" -#: src/Resources.vala:193 +#: src/Resources.vala:160 msgid "Copy the color adjustments applied to the photo" msgstr "Copiar os axustes da cor aplicados á foto" -#: src/Resources.vala:196 +#: src/Resources.vala:163 msgid "Paste Color Adjustments" msgstr "Pegar os axustes da cor" -#: src/Resources.vala:197 +#: src/Resources.vala:164 msgid "Apply copied color adjustments to the selected photos" msgstr "Aplicar os axustes da cor copiados ás fotos seleccionadas" -#: src/Resources.vala:199 ui/direct.ui:139 ui/photo.ui:228 +#: src/Resources.vala:166 ui/direct.ui:139 ui/photo.ui:228 msgid "_Crop" msgstr "_Recortar" -#: src/Resources.vala:200 +#: src/Resources.vala:167 msgid "Crop" msgstr "Recortar" -#: src/Resources.vala:201 +#: src/Resources.vala:168 msgid "Crop the photo’s size" msgstr "Recortar o tamaño da foto" -#: src/Resources.vala:204 +#: src/Resources.vala:171 msgid "Straighten" msgstr "Endereitar" -#: src/Resources.vala:205 +#: src/Resources.vala:172 msgid "Straighten the photo" msgstr "Endereitar a foto" -#: src/Resources.vala:207 ui/direct.ui:149 ui/photo.ui:238 +#: src/Resources.vala:174 ui/direct.ui:149 ui/photo.ui:238 msgid "_Red-eye" msgstr "Ollos _vermellos" -#: src/Resources.vala:208 +#: src/Resources.vala:175 msgid "Red-eye" msgstr "Ollos vermellos" -#: src/Resources.vala:209 +#: src/Resources.vala:176 msgid "Reduce or eliminate any red-eye effects in the photo" msgstr "Reducir ou eliminar calquera efecto de ollos vermellos na foto" -#: src/Resources.vala:211 ui/direct.ui:154 ui/photo.ui:243 +#: src/Resources.vala:178 ui/direct.ui:154 ui/photo.ui:243 msgid "_Adjust" msgstr "_Axustar" -#: src/Resources.vala:212 +#: src/Resources.vala:179 msgid "Adjust" msgstr "Axustar" -#: src/Resources.vala:213 +#: src/Resources.vala:180 msgid "Adjust the photo’s color and tone" msgstr "Axustar cor e intensidade da foto" -#: src/Resources.vala:216 +#: src/Resources.vala:183 msgid "Revert to Original" msgstr "Volver ao orixinal" -#: src/Resources.vala:218 +#: src/Resources.vala:185 msgid "Revert External E_dits" msgstr "Reverter e_dicións externas" -#: src/Resources.vala:219 +#: src/Resources.vala:186 msgid "Revert to the master photo" msgstr "Volver á foto orixinal" -#: src/Resources.vala:222 +#: src/Resources.vala:189 msgid "Set selected image to be the new desktop background" msgstr "Estabeleza a imaxe seleccionada como novo fondo de escritorio" -#: src/Resources.vala:223 +#: src/Resources.vala:190 msgid "Set as _Desktop Slideshow…" msgstr "Estabelecer como presentación no _escritorio..." -#: src/Resources.vala:225 ui/direct.ui:47 ui/events_directory.ui:35 +#: src/Resources.vala:192 ui/direct.ui:47 ui/events_directory.ui:35 #: ui/event.ui:50 ui/import.ui:43 ui/media.ui:50 ui/offline.ui:35 #: ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 msgid "_Undo" msgstr "_Desfacer" -#: src/Resources.vala:226 +#: src/Resources.vala:193 msgid "Undo" msgstr "Desfacer" -#: src/Resources.vala:228 ui/direct.ui:52 ui/events_directory.ui:40 +#: src/Resources.vala:195 ui/direct.ui:52 ui/events_directory.ui:40 #: ui/event.ui:55 ui/import.ui:48 ui/media.ui:55 ui/offline.ui:40 #: ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 msgid "_Redo" msgstr "_Refacer" -#: src/Resources.vala:229 +#: src/Resources.vala:196 msgid "Redo" msgstr "Refacer" -#: src/Resources.vala:231 ui/events_directory.ui:139 ui/events_directory.ui:181 +#: src/Resources.vala:198 ui/events_directory.ui:139 ui/events_directory.ui:181 #: ui/event.ui:393 ui/event.ui:588 msgid "Re_name Event…" msgstr "Re_nomear a actividade..." -#: src/Resources.vala:234 ui/event.ui:373 ui/event.ui:580 +#: src/Resources.vala:201 ui/event.ui:373 ui/event.ui:580 msgid "Make _Key Photo for Event" msgstr "Facer _foto de portada da actividade" -#: src/Resources.vala:235 +#: src/Resources.vala:202 msgid "Make Key Photo for Event" msgstr "Facer a foto de portada para a actividade" -#: src/Resources.vala:237 ui/event.ui:382 ui/media.ui:376 ui/tags.ui:376 +#: src/Resources.vala:204 ui/event.ui:382 ui/media.ui:376 ui/tags.ui:376 msgid "_New Event" msgstr "_Nova actividade" -#: src/Resources.vala:238 +#: src/Resources.vala:205 msgid "New Event" msgstr "Nova actividade" -#: src/Resources.vala:240 +#: src/Resources.vala:207 msgid "Move Photos" msgstr "Mover fotos" -#: src/Resources.vala:241 +#: src/Resources.vala:208 msgid "Move photos to an event" msgstr "Mover fotos dunha actividade" -#: src/Resources.vala:243 ui/events_directory.ui:135 ui/events_directory.ui:177 +#: src/Resources.vala:210 ui/events_directory.ui:135 ui/events_directory.ui:177 msgid "_Merge Events" msgstr "_Combinar actividades" -#: src/Resources.vala:244 +#: src/Resources.vala:211 msgid "Merge" msgstr "Combinar" -#: src/Resources.vala:245 +#: src/Resources.vala:212 msgid "Combine events into a single event" msgstr "Combinar as accións nunha acción única" -#: src/Resources.vala:247 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 +#: src/Resources.vala:214 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 #: ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 ui/tags.ui:286 msgid "_Set Rating" msgstr "Cualif_icar" -#: src/Resources.vala:248 +#: src/Resources.vala:215 msgid "Set Rating" msgstr "Cualificar" -#: src/Resources.vala:249 +#: src/Resources.vala:216 msgid "Change the rating of your photo" msgstr "Cambiar a cualificación da súa foto" -#: src/Resources.vala:251 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 +#: src/Resources.vala:218 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 #: ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 ui/tags.ui:326 msgid "_Increase" msgstr "_Incrementar" -#: src/Resources.vala:252 +#: src/Resources.vala:219 msgid "Increase Rating" msgstr "Aumentar a cualificación" -#: src/Resources.vala:254 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 +#: src/Resources.vala:221 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 #: ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 ui/tags.ui:331 msgid "_Decrease" msgstr "_Diminuír" -#: src/Resources.vala:255 +#: src/Resources.vala:222 msgid "Decrease Rating" msgstr "Diminuír a cualificación" -#: src/Resources.vala:257 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 +#: src/Resources.vala:224 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 #: ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 ui/tags.ui:314 msgid "_Unrated" msgstr "Sen cua_lificar" -#: src/Resources.vala:258 +#: src/Resources.vala:225 msgid "Unrated" msgstr "Sen puntuar" -#: src/Resources.vala:259 +#: src/Resources.vala:226 msgid "Rate Unrated" msgstr "Cualificar as non cualificadas" -#: src/Resources.vala:260 +#: src/Resources.vala:227 msgid "Setting as unrated" msgstr "Estabelecéndoa como non cualificada" -#: src/Resources.vala:261 +#: src/Resources.vala:228 msgid "Remove any ratings" msgstr "Retirar calquera cualificación" -#: src/Resources.vala:263 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 +#: src/Resources.vala:230 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 #: ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 ui/tags.ui:319 msgid "_Rejected" msgstr "_Rexeitar" -#: src/Resources.vala:264 +#: src/Resources.vala:231 msgid "Rejected" msgstr "Rexeitado" -#: src/Resources.vala:265 +#: src/Resources.vala:232 msgid "Rate Rejected" msgstr "Cualificación rexeitada" -#: src/Resources.vala:266 +#: src/Resources.vala:233 msgid "Setting as rejected" msgstr "Establecéndoa como rexeitada" -#: src/Resources.vala:267 +#: src/Resources.vala:234 msgid "Set rating to rejected" msgstr "Estabelecer a cualificación como rexeitada" -#: src/Resources.vala:269 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 +#: src/Resources.vala:236 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 #: ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 ui/trash.ui:162 msgid "Rejected _Only" msgstr "_Só rexeitadas" -#: src/Resources.vala:270 +#: src/Resources.vala:237 msgid "Rejected Only" msgstr "Só rexeitadas" -#: src/Resources.vala:271 +#: src/Resources.vala:238 msgid "Show only rejected photos" msgstr "Mostrar só as fotos rexeitadas" -#: src/Resources.vala:273 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 +#: src/Resources.vala:240 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 #: ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 ui/trash.ui:156 msgid "All + _Rejected" msgstr "Todo + _rexeitado" -#: src/Resources.vala:274 +#: src/Resources.vala:241 msgctxt "Tooltip" msgid "Show all photos, including rejected" msgstr "Mostrar todas as fotos, incluíndo as rexeitadas" -#: src/Resources.vala:276 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 +#: src/Resources.vala:243 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 #: ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 ui/trash.ui:150 msgid "_All Photos" msgstr "Tod_as as fotos" #. Button tooltip -#: src/Resources.vala:278 +#: src/Resources.vala:245 msgid "Show all photos" msgstr "Mostrar todas as fotos" -#: src/Resources.vala:280 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 +#: src/Resources.vala:247 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 #: ui/tags.ui:144 msgid "_Ratings" msgstr "_Cualificacións" -#: src/Resources.vala:281 +#: src/Resources.vala:248 msgid "Display each photo’s rating" msgstr "Mostrar a valoración de cada foto" -#: src/Resources.vala:283 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 +#: src/Resources.vala:250 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 #: ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 msgid "_Filter Photos" msgstr "_Filtrar fotos" -#: src/Resources.vala:284 +#: src/Resources.vala:251 msgid "Filter Photos" msgstr "Filtrar fotos" -#: src/Resources.vala:285 +#: src/Resources.vala:252 msgid "Limit the number of photos displayed based on a filter" msgstr "Limitar o número de fotos amosadas baseadas nun filtro" -#: src/Resources.vala:288 +#: src/Resources.vala:255 msgid "Duplicate" msgstr "Duplicar" -#: src/Resources.vala:289 +#: src/Resources.vala:256 msgid "Make a duplicate of the photo" msgstr "Facer un duplicado da foto" -#: src/Resources.vala:291 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 +#: src/Resources.vala:258 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 #: ui/tags.ui:17 msgid "_Export…" msgstr "_Exportar…" -#: src/Resources.vala:293 +#: src/Resources.vala:260 msgid "_Print…" msgstr "_Imprimir..." -#: src/Resources.vala:295 +#: src/Resources.vala:262 msgid "Pu_blish…" msgstr "Pu_blicar..." -#: src/Resources.vala:297 ui/collection.ui:189 +#: src/Resources.vala:264 ui/collection.ui:189 msgid "Publish to various websites" msgstr "Publicar en varios sitios web" -#: src/Resources.vala:299 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 +#: src/Resources.vala:266 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 #: ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 ui/tags.ui:340 msgid "Edit _Title…" msgstr "Editar o _título..." #. Button label -#: src/Resources.vala:301 +#: src/Resources.vala:268 msgctxt "Button Label" msgid "Edit Title" msgstr "Editar título" -#: src/Resources.vala:303 ui/collection.ui:103 ui/events_directory.ui:144 +#: src/Resources.vala:270 ui/collection.ui:103 ui/events_directory.ui:144 #: ui/events_directory.ui:186 ui/event.ui:345 ui/event.ui:398 ui/event.ui:542 #: ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 ui/tags.ui:345 msgid "Edit _Comment…" msgstr "Editar _comentario..." #. Button label -#: src/Resources.vala:305 +#: src/Resources.vala:272 msgid "Edit Comment" msgstr "Editar comentario" -#: src/Resources.vala:307 ui/event.ui:592 +#: src/Resources.vala:274 ui/event.ui:592 msgid "Edit Event _Comment…" msgstr "Editar o comentario da actividade..." -#: src/Resources.vala:310 ui/direct.ui:167 ui/photo.ui:337 +#: src/Resources.vala:277 ui/direct.ui:167 ui/photo.ui:337 msgid "_Adjust Date and Time…" msgstr "_Axustar data e hora..." -#: src/Resources.vala:311 +#: src/Resources.vala:278 msgid "Adjust Date and Time" msgstr "Axustar a data e a hora" -#: src/Resources.vala:313 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 -#: ui/media.ui:390 ui/photo.ui:374 ui/tags.ui:390 +#: src/Resources.vala:280 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 +#: ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 msgid "Add _Tags…" msgstr "Engadir e_tiquetas..." -#: src/Resources.vala:314 ui/photo_context.ui:17 +#: src/Resources.vala:281 ui/photo_context.ui:17 msgid "_Add Tags…" msgstr "Eng_adir etiquetas..." #. Dialog title -#: src/Resources.vala:316 +#: src/Resources.vala:283 msgctxt "Dialog Title" msgid "Add Tags" msgstr "Engadir etiquetas" -#: src/Resources.vala:325 ui/photo_context.ui:135 +#: src/Resources.vala:292 ui/photo_context.ui:135 msgid "Send T_o…" msgstr "Enviar _a..." -#: src/Resources.vala:327 +#: src/Resources.vala:294 msgid "_Find…" msgstr "_Buscar..." -#: src/Resources.vala:328 ui/collection.ui:217 ui/offline.ui:239 +#: src/Resources.vala:295 ui/collection.ui:217 ui/offline.ui:239 #: ui/trash.ui:312 msgid "Find" msgstr "Buscar" -#: src/Resources.vala:329 ui/collection.ui:214 ui/offline.ui:236 +#: src/Resources.vala:296 ui/collection.ui:214 ui/offline.ui:236 #: ui/trash.ui:309 msgid "Find an image by typing text that appears in its name or tags" msgstr "" "Buscar unha imaxe escribindo o texto que aparece no seu nome ou etiquetas" -#: src/Resources.vala:331 +#: src/Resources.vala:298 msgid "_Flag" msgstr "_Marcar" -#: src/Resources.vala:333 +#: src/Resources.vala:300 msgid "Un_flag" msgstr "Desm_arcar" -#: src/Resources.vala:336 +#: src/Resources.vala:303 #, c-format msgid "Unable to launch editor: %s" msgstr "Non é posíbel iniciar o editor: %s" -#: src/Resources.vala:341 +#: src/Resources.vala:308 #, c-format msgid "Add Tag “%s”" msgstr "Engadir a etiqueta «%s»" #. Used when adding two tags to photo(s) -#: src/Resources.vala:344 +#: src/Resources.vala:311 #, c-format msgid "Add Tags “%s” and “%s”" msgstr "Engadir as etiquetas «%s» e «%s»" #. Undo/Redo command name (in Edit menu) -#: src/Resources.vala:349 +#: src/Resources.vala:316 msgctxt "UndoRedo menu entry" msgid "Add Tags" msgstr "Engadir etiquetas" -#: src/Resources.vala:354 +#: src/Resources.vala:321 #, c-format msgid "_Delete Tag “%s”" msgstr "_Eliminar a etiqueta «%s»" -#: src/Resources.vala:358 +#: src/Resources.vala:325 #, c-format msgid "Delete Tag “%s”" msgstr "Eliminar a etiqueta «%s»" -#: src/Resources.vala:361 +#: src/Resources.vala:328 msgid "Delete Tag" msgstr "Eliminar etiqueta" -#: src/Resources.vala:367 +#: src/Resources.vala:334 #, c-format msgid "Re_name Tag “%s”…" msgstr "Re_nomear a etiqueta «%s»..." -#: src/Resources.vala:371 +#: src/Resources.vala:338 #, c-format msgid "Rename Tag “%s” to “%s”" msgstr "Renomear a etiqueta «%s» como «%s»" -#: src/Resources.vala:374 ui/tags.ui:456 +#: src/Resources.vala:341 ui/tags.ui:456 msgid "_Rename…" msgstr "_Renomear…" -#: src/Resources.vala:376 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 -#: ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:379 ui/tags.ui:395 +#: src/Resources.vala:343 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 +#: ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 ui/tags.ui:395 msgid "Modif_y Tags…" msgstr "Modif_icar etiquetas..." -#: src/Resources.vala:377 +#: src/Resources.vala:344 msgid "Modify Tags" msgstr "Modificar etiquetas" -#: src/Resources.vala:380 +#: src/Resources.vala:347 #, c-format msgid "Tag Photo as “%s”" msgid_plural "Tag Photos as “%s”" msgstr[0] "Etiquetar foto como «%s»" msgstr[1] "Etiquetar fotos como «%s»" -#: src/Resources.vala:386 +#: src/Resources.vala:353 #, c-format msgid "Tag the selected photo as “%s”" msgid_plural "Tag the selected photos as “%s”" msgstr[0] "Etiquetar a foto seleccionada como «%s»" msgstr[1] "Etiquetar as fotos seleccionadas como «%s»" -#: src/Resources.vala:392 +#: src/Resources.vala:359 #, c-format msgid "Remove Tag “%s” From _Photo" msgid_plural "Remove Tag “%s” From _Photos" msgstr[0] "Eliminar a etiqueta «%s» da _foto" msgstr[1] "Eliminar a etiqueta «%s» das _fotos" -#: src/Resources.vala:398 +#: src/Resources.vala:365 #, c-format msgid "Remove Tag “%s” From Photo" msgid_plural "Remove Tag “%s” From Photos" msgstr[0] "Eliminar a etiqueta «%s» da foto" msgstr[1] "Eliminar a etiqueta «%s» das _fotos" -#: src/Resources.vala:404 +#: src/Resources.vala:371 #, c-format msgid "Unable to rename tag to “%s” because the tag already exists." msgstr "" "Non foi posíbel renomear a etiqueta como «%s» porque a etiqueta xa esiste." -#: src/Resources.vala:408 +#: src/Resources.vala:375 #, c-format msgid "Unable to rename search to “%s” because the search already exists." msgstr "Non foi posíbel renomear a busca como «%s» porque a busca xa esiste." #. Saved search button -#: src/Resources.vala:411 src/SearchFilter.vala:1124 +#: src/Resources.vala:378 src/SearchFilter.vala:1126 msgid "Saved Search" msgstr "Busca gardada" -#: src/Resources.vala:413 +#: src/Resources.vala:380 msgid "Delete Search" msgstr "Eliminar busca" -#: src/Resources.vala:416 ui/savedsearch.ui:11 +#: src/Resources.vala:383 ui/savedsearch.ui:10 msgid "_Edit…" msgstr "_Editar…" -#: src/Resources.vala:417 ui/savedsearch.ui:7 +#: src/Resources.vala:384 ui/savedsearch.ui:6 msgid "Re_name…" msgstr "Re_nomear…" -#: src/Resources.vala:420 +#: src/Resources.vala:387 #, c-format msgid "Rename Search “%s” to “%s”" msgstr "Renomear a busca «%s» como «%s»" -#: src/Resources.vala:424 +#: src/Resources.vala:391 #, c-format msgid "Delete Search “%s”" msgstr "Eliminar a busca «%s»" -#: src/Resources.vala:561 +#: src/Resources.vala:592 #, c-format msgid "Rate %s" msgstr "Cualificación %s" -#: src/Resources.vala:562 +#: src/Resources.vala:593 #, c-format msgid "Set rating to %s" msgstr "Estabelecer a cualificación en %s" -#: src/Resources.vala:563 +#: src/Resources.vala:594 #, c-format msgid "Setting rating to %s" msgstr "Estabelecendo a cualificación en %s" -#: src/Resources.vala:565 +#: src/Resources.vala:596 #, c-format msgid "Display %s" msgstr "Mostrar %s" -#: src/Resources.vala:566 +#: src/Resources.vala:597 #, c-format msgid "Only show photos with a rating of %s" msgstr "Mostrar só as fotos cunha cualificación de %s" -#: src/Resources.vala:567 +#: src/Resources.vala:598 #, c-format msgid "%s or Better" msgstr "%s ou mellor" -#: src/Resources.vala:568 +#: src/Resources.vala:599 #, c-format msgid "Display %s or Better" msgstr "Mostrar %s ou mellor" -#: src/Resources.vala:569 +#: src/Resources.vala:600 #, c-format msgid "Only show photos with a rating of %s or better" msgstr "Mostrar só as fotos cunha cualificación de %s ou superior" -#: src/Resources.vala:660 ui/trash.ui:255 +#: src/Resources.vala:691 ui/trash.ui:255 msgid "Remove the selected photos from the trash" msgstr "Retirar as fotos seleccionadas do lixo" -#: src/Resources.vala:661 ui/offline.ui:221 +#: src/Resources.vala:692 ui/offline.ui:221 msgid "Remove the selected photos from the library" msgstr "Retirar as fotos seleccionadas da fototeca" -#: src/Resources.vala:663 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 +#: src/Resources.vala:694 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 msgid "_Restore" msgstr "_Restaurar" -#: src/Resources.vala:664 ui/trash.ui:270 +#: src/Resources.vala:695 ui/trash.ui:270 msgid "Move the selected photos back into the library" msgstr "Mover as fotos seleccionadas de volta á fototeca" -#: src/Resources.vala:666 ui/collection.ui:123 ui/direct_context.ui:18 +#: src/Resources.vala:697 ui/collection.ui:123 ui/direct_context.ui:18 #: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/media.ui:27 #: ui/photo_context.ui:130 ui/photo.ui:35 ui/tags.ui:27 ui/trash.ui:19 #: ui/trash.ui:227 msgid "Show in File Mana_ger" msgstr "Mostrar no xestor de _ficheiros" -#: src/Resources.vala:667 +#: src/Resources.vala:698 msgid "Open the selected photo’s directory in the file manager" msgstr "Abrir o cartafol de imaxes seleccionado no xestor de ficheiros" -#: src/Resources.vala:670 +#: src/Resources.vala:701 #, c-format msgid "Unable to open in file manager: %s" msgstr "Non é posíbel abrir o xestor de ficheiros %s" -#: src/Resources.vala:673 ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 +#: src/Resources.vala:704 ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 #: ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 ui/tags.ui:74 msgid "R_emove From Library" msgstr "R_etirar da fototeca" -#: src/Resources.vala:675 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 +#: src/Resources.vala:706 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 #: ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 ui/tags.ui:79 msgid "_Move to Trash" msgstr "_Mover ao lixo" -#: src/Resources.vala:677 ui/events_directory.ui:58 ui/event.ui:86 +#: src/Resources.vala:708 ui/events_directory.ui:58 ui/event.ui:86 #: ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 ui/trash.ui:74 msgid "Select _All" msgstr "Seleccionar _todas" -#: src/Resources.vala:678 +#: src/Resources.vala:709 msgid "Select all items" msgstr "Seleccionar todos os elementos" @@ -5641,14 +5671,14 @@ msgstr "Seleccionar todos os elementos" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format #. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:739 +#: src/Resources.vala:770 msgid "%a %b %d, %Y" msgstr "%a %d de %b de %Y" #. / Locale-specific starting date format for multi-date strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:744 +#: src/Resources.vala:775 msgctxt "MultidayFormat" msgid "%a %b %d" msgstr "%a, %d de %b" @@ -5656,7 +5686,7 @@ msgstr "%a, %d de %b" #. / Locale-specific ending date format for multi-date strings, #. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:749 +#: src/Resources.vala:780 msgctxt "MultidayFormat" msgid "%d, %Y" msgstr "%d, %Y" @@ -5664,7 +5694,7 @@ msgstr "%d, %Y" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:754 +#: src/Resources.vala:785 msgctxt "MultimonthFormat" msgid "%a %b %d" msgstr "%a %d de %b" @@ -5672,7 +5702,7 @@ msgstr "%a %d de %b" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:759 +#: src/Resources.vala:790 msgctxt "MultimonthFormat" msgid "%a %b %d, %Y" msgstr "%a %d de %b de %Y" @@ -5681,147 +5711,119 @@ msgstr "%a %d de %b de %Y" msgid "Slideshow" msgstr "Diaporama" -#: src/searches/SearchesBranch.vala:68 -msgid "Saved Searches" -msgstr "Buscas gardadas" - #. Ordering must correspond with SearchConditionText.Context -#: src/searches/SavedSearchDialog.vala:162 +#: src/searches/SavedSearchDialog.vala:167 msgid "contains" msgstr "contén" #. Ordering must correspond with Context -#: src/searches/SavedSearchDialog.vala:163 -#: src/searches/SavedSearchDialog.vala:494 +#: src/searches/SavedSearchDialog.vala:168 +#: src/searches/SavedSearchDialog.vala:499 msgid "is exactly" msgstr "é exactamente" -#: src/searches/SavedSearchDialog.vala:164 +#: src/searches/SavedSearchDialog.vala:169 msgid "starts with" msgstr "empeza por" -#: src/searches/SavedSearchDialog.vala:165 +#: src/searches/SavedSearchDialog.vala:170 msgid "ends with" msgstr "remata por" -#: src/searches/SavedSearchDialog.vala:166 +#: src/searches/SavedSearchDialog.vala:171 msgid "does not contain" msgstr "non contén" -#: src/searches/SavedSearchDialog.vala:167 -#: src/searches/SavedSearchDialog.vala:498 +#: src/searches/SavedSearchDialog.vala:172 +#: src/searches/SavedSearchDialog.vala:503 msgid "is not set" msgstr "sen estabelecer" -#: src/searches/SavedSearchDialog.vala:168 +#: src/searches/SavedSearchDialog.vala:173 msgid "is set" msgstr "está estabelecido" #. Ordering must correspond with SearchConditionMediaType.Context -#: src/searches/SavedSearchDialog.vala:242 -#: src/searches/SavedSearchDialog.vala:373 -#: src/searches/SavedSearchDialog.vala:438 +#: src/searches/SavedSearchDialog.vala:247 +#: src/searches/SavedSearchDialog.vala:378 +#: src/searches/SavedSearchDialog.vala:443 msgid "is" msgstr "é" -#: src/searches/SavedSearchDialog.vala:243 +#: src/searches/SavedSearchDialog.vala:248 msgid "is not" msgstr "non é" #. Ordering must correspond with SearchConditionMediaType.MediaType -#: src/searches/SavedSearchDialog.vala:249 +#: src/searches/SavedSearchDialog.vala:254 msgid "any photo" msgstr "calquera foto" -#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:255 msgid "a raw photo" msgstr "unha foto raw" -#: src/searches/SavedSearchDialog.vala:251 +#: src/searches/SavedSearchDialog.vala:256 msgid "a video" msgstr "un vídeo" -#: src/searches/SavedSearchDialog.vala:305 +#: src/searches/SavedSearchDialog.vala:310 msgid "has" msgstr "ten" -#: src/searches/SavedSearchDialog.vala:306 +#: src/searches/SavedSearchDialog.vala:311 msgid "has no" msgstr "non ten" -#: src/searches/SavedSearchDialog.vala:311 +#: src/searches/SavedSearchDialog.vala:316 msgid "modifications" msgstr "modificacións" -#: src/searches/SavedSearchDialog.vala:312 +#: src/searches/SavedSearchDialog.vala:317 msgid "internal modifications" msgstr "modificacións internas" -#: src/searches/SavedSearchDialog.vala:313 +#: src/searches/SavedSearchDialog.vala:318 msgid "external modifications" msgstr "modificacións externas" #. Ordering must correspond with SearchConditionFlagged.State -#: src/searches/SavedSearchDialog.vala:367 +#: src/searches/SavedSearchDialog.vala:372 msgid "flagged" msgstr "marcado" -#: src/searches/SavedSearchDialog.vala:368 +#: src/searches/SavedSearchDialog.vala:373 msgid "not flagged" msgstr "non marcado" -#: src/searches/SavedSearchDialog.vala:431 +#: src/searches/SavedSearchDialog.vala:436 msgid "and higher" msgstr "e superior" -#: src/searches/SavedSearchDialog.vala:432 +#: src/searches/SavedSearchDialog.vala:437 msgid "only" msgstr "só" -#: src/searches/SavedSearchDialog.vala:433 +#: src/searches/SavedSearchDialog.vala:438 msgid "and lower" msgstr "e inferior" -#: src/searches/SavedSearchDialog.vala:495 +#: src/searches/SavedSearchDialog.vala:500 msgid "is after" msgstr "está despois" -#: src/searches/SavedSearchDialog.vala:496 +#: src/searches/SavedSearchDialog.vala:501 msgid "is before" msgstr "está antes" -#: src/searches/SavedSearchDialog.vala:497 +#: src/searches/SavedSearchDialog.vala:502 msgid "is between" msgstr "esta entre" -#: src/searches/SavedSearchDialog.vala:510 +#: src/searches/SavedSearchDialog.vala:515 msgid "and" msgstr "e" -#: src/searches/SavedSearchDialog.vala:691 -msgid "Search" -msgstr "Buscar" - -#: src/searches/SavedSearchDialog.vala:696 -msgid "Cancel" -msgstr "Cancelar" - -#: src/searches/SavedSearchDialog.vala:697 -msgid "OK" -msgstr "Aceptar" - -#: src/searches/SavedSearchDialog.vala:716 -msgid "any" -msgstr "calquera" - -#: src/searches/SavedSearchDialog.vala:717 -msgid "all" -msgstr "todo" - -#: src/searches/SavedSearchDialog.vala:718 -msgid "none" -msgstr "ningunha" - #: src/searches/SearchBoolean.vala:157 msgid "Any text" msgstr "Calquera texto" @@ -5858,8 +5860,8 @@ msgstr "Marca de estado" msgid "Photo state" msgstr "Estado das fotos" -#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:831 -#: src/SearchFilter.vala:1114 +#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:833 +#: src/SearchFilter.vala:1116 msgid "Rating" msgstr "Cualificación" @@ -5867,27 +5869,38 @@ msgstr "Cualificación" msgid "Date" msgstr "Data" -#: src/SearchFilter.vala:815 +#: src/searches/SearchesBranch.vala:68 +msgid "Saved Searches" +msgstr "Buscas gardadas" + +# GNOME Application Comment +#: src/searches/SearchesBranch.vala:68 +#, fuzzy +#| msgid "Organize your photos" +msgid "Organize your saved searches" +msgstr "Organiza as túas fotos" + +#: src/SearchFilter.vala:817 msgid "★+ Rating" msgstr "★+ Valoración" -#: src/SearchFilter.vala:818 +#: src/SearchFilter.vala:820 msgid "★★+ Rating" msgstr "★★+ Valoración" -#: src/SearchFilter.vala:821 +#: src/SearchFilter.vala:823 msgid "★★★+ Rating" msgstr "★★★+ Valoración" -#: src/SearchFilter.vala:824 +#: src/SearchFilter.vala:826 msgid "★★★★+ Rating" msgstr "★★★★+ Valoración" -#: src/SearchFilter.vala:828 +#: src/SearchFilter.vala:830 msgid "★★★★★+ Rating" msgstr "★★★★★+ Valoración" -#: src/SearchFilter.vala:1064 +#: src/SearchFilter.vala:1066 #, c-format msgid "Error loading search bar UI: %s" msgstr "Produciuse un erro cargando a interface coa barra de busca: %s" @@ -5897,24 +5910,24 @@ msgstr "Produciuse un erro cargando a interface coa barra de busca: %s" #. Prepare the close menu for use, but don't #. display it yet; we'll connect it to secondary #. click later on. -#: src/SearchFilter.vala:1073 +#: src/SearchFilter.vala:1075 msgid "Close" msgstr "Pechar" #. Type label and toggles -#: src/SearchFilter.vala:1079 +#: src/SearchFilter.vala:1081 msgid "Type" msgstr "Tipo" -#: src/SearchFilter.vala:1086 +#: src/SearchFilter.vala:1088 msgid "Videos" msgstr "Vídeos" -#: src/SearchFilter.vala:1089 +#: src/SearchFilter.vala:1091 msgid "RAW Photos" msgstr "Fotos en bruto (RAW)" -#: src/SearchFilter.vala:1125 +#: src/SearchFilter.vala:1127 msgid "Use a saved search to filter items in the current view" msgstr "Usar unha busca gardada para filtrar os elementos da vista actual" @@ -5973,7 +5986,7 @@ msgstr "Transicións do diaporama" msgid "(None)" msgstr "(Ningún)" -#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:485 +#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:414 msgid "None" msgstr "Ningún" @@ -5985,12 +5998,19 @@ msgstr "Ao chou" msgid "Tags" msgstr "Etiquetas" +# GNOME Application Comment +#: src/tags/TagsBranch.vala:131 +#, fuzzy +#| msgid "Organize your photos" +msgid "Organize and browse your photo’s tags" +msgstr "Organiza as túas fotos" + #: src/Tag.vala:830 msgid "untitled" msgstr "Sen título" #. multiple videos -#: src/VideoSupport.vala:520 +#: src/VideoSupport.vala:521 msgid "Export Videos" msgstr "Exportar vídeos" @@ -6000,7 +6020,7 @@ msgid "Toggle _Flag" msgstr "Cambiar _marca" #: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/media.ui:353 -#: ui/photo_context.ui:88 ui/photo.ui:343 ui/tags.ui:353 +#: ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 msgid "_Developer" msgstr "_Desenvolvedor" @@ -6053,15 +6073,15 @@ msgstr "_Seguinte foto" msgid "T_ools" msgstr "Fe_rramentas" -#: ui/direct.ui:181 ui/events_directory.ui:158 ui/event.ui:428 +#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 #: ui/import_queue.ui:73 ui/import.ui:191 ui/media.ui:411 ui/offline.ui:188 -#: ui/photo.ui:394 ui/tags.ui:430 ui/trash.ui:197 +#: ui/photo.ui:395 ui/tags.ui:430 ui/trash.ui:197 msgid "_Frequently Asked Questions" msgstr "_Preguntas máis frecuentes" -#: ui/direct.ui:185 ui/events_directory.ui:162 ui/event.ui:432 +#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 #: ui/import_queue.ui:77 ui/import.ui:195 ui/media.ui:415 ui/offline.ui:192 -#: ui/photo.ui:398 ui/tags.ui:434 ui/trash.ui:201 +#: ui/photo.ui:399 ui/tags.ui:434 ui/trash.ui:201 msgid "_Report a Problem…" msgstr "Informa_r dun problema..." @@ -6150,7 +6170,7 @@ msgid "_Titles" msgstr "_Títulos" #: ui/event.ui:139 ui/event.ui:404 ui/media.ui:139 ui/media.ui:387 -#: ui/photo.ui:371 ui/tags.ui:139 ui/tags.ui:387 +#: ui/photo.ui:372 ui/tags.ui:139 ui/tags.ui:387 msgid "Ta_gs" msgstr "Eti_quetas" @@ -6187,145 +6207,185 @@ msgstr "_Fotos" msgid "_Stop Import" msgstr "_Deter a importación" -#: ui/preferences_dialog.ui:65 -msgid "white" -msgstr "branco" - -#: ui/preferences_dialog.ui:92 -msgid "black" -msgstr "negro" - -#: ui/preferences_dialog.ui:123 +#: ui/preferences_dialog.ui:67 msgid "Display" msgstr "Pantalla" -#: ui/preferences_dialog.ui:160 -msgid "_Background:" -msgstr "_Fondo:" - -#: ui/preferences_dialog.ui:175 +#: ui/preferences_dialog.ui:103 msgid "_Import photos to:" msgstr "_Importar fotos de:" -#: ui/preferences_dialog.ui:186 +#: ui/preferences_dialog.ui:114 msgid "_Watch library directory for new files" -msgstr "_Ver o cartafol da fototeca para os novos ficheiros" +msgstr "_Buscar novos ficheiros no cartafol da fototeca" -#: ui/preferences_dialog.ui:209 +#: ui/preferences_dialog.ui:137 msgid "Importing" msgstr "Importando" -#: ui/preferences_dialog.ui:226 +#: ui/preferences_dialog.ui:154 msgid "_Directory structure:" msgstr "Estrutura do _directorio:" -#: ui/preferences_dialog.ui:241 +#: ui/preferences_dialog.ui:169 msgid "Example:" msgstr "Exemplo:" -#: ui/preferences_dialog.ui:250 +#: ui/preferences_dialog.ui:178 msgid "R_ename imported files to lowercase" msgstr "R_enomear os ficheiros importados en minúsculas" -#: ui/preferences_dialog.ui:272 +#: ui/preferences_dialog.ui:200 msgid "Metadata" msgstr "Metadatos" -#: ui/preferences_dialog.ui:285 +#: ui/preferences_dialog.ui:213 msgid "Write tags, titles, and other _metadata to photo files" msgstr "" "Escribir etiquetas, títulos e outros _metadatos nos ficheiros das fotos" -#: ui/preferences_dialog.ui:307 +#: ui/preferences_dialog.ui:235 msgid "RAW Developer" msgstr "Desenvolvedor RAW" -#: ui/preferences_dialog.ui:324 +#: ui/preferences_dialog.ui:252 msgid "De_fault:" msgstr "Pre_determinado:" -#: ui/preferences_dialog.ui:378 +#: ui/preferences_dialog.ui:306 msgid "_Pattern:" msgstr "_Patrón:" -#: ui/preferences_dialog.ui:414 +#: ui/preferences_dialog.ui:339 +msgid "" +"When viewing images that are transparent, they will be drawn against this " +"background." +msgstr "" + +#: ui/preferences_dialog.ui:343 msgid "Transparent Background:" msgstr "Fondo transparente:" -#: ui/preferences_dialog.ui:428 +#: ui/preferences_dialog.ui:357 msgid "Checkered" msgstr "Cuadriculado" -#: ui/preferences_dialog.ui:449 +#: ui/preferences_dialog.ui:378 msgid "Solid color" msgstr "Cor lisa" -#: ui/preferences_dialog.ui:539 +#: ui/preferences_dialog.ui:440 +msgid "Use dark theme:" +msgstr "" + +#: ui/preferences_dialog.ui:491 msgid "E_xternal photo editor:" msgstr "E_ditor de imaxes externo:" -#: ui/preferences_dialog.ui:556 +#: ui/preferences_dialog.ui:508 msgid "External _RAW editor:" msgstr "Editor _RAW externo:" -#: ui/preferences_dialog.ui:617 +#: ui/preferences_dialog.ui:569 msgid "External Editors" msgstr "Editores externos" -#: ui/preferences_dialog.ui:642 +#: ui/preferences_dialog.ui:594 msgid "Plugins" msgstr "Engadidos" -#: ui/printing_widget.ui:19 +#: ui/preferences_dialog.ui:620 +#, fuzzy +#| msgid "_Preferences" +msgid "Shotwell Preferences" +msgstr "_Preferencias" + +#: ui/printing_widget.ui:18 msgid "Printed Image Size" msgstr "Tamaño da imaxe impresa" -#: ui/printing_widget.ui:36 +#: ui/printing_widget.ui:38 msgid "Use a _standard size:" msgstr "Utilizar un tamaño e_stándar:" -#: ui/printing_widget.ui:80 +#: ui/printing_widget.ui:65 msgid "Use a c_ustom size:" msgstr "Utilizar un tamaño personalizado:" #. Abbrevation for "inch" -#: ui/printing_widget.ui:146 +#: ui/printing_widget.ui:128 msgid "in." msgstr "polg." #. Abbrevation for "centimeters" -#: ui/printing_widget.ui:147 +#: ui/printing_widget.ui:129 msgid "cm" msgstr "cm." -#: ui/printing_widget.ui:173 +#: ui/printing_widget.ui:146 msgid "_Match photo aspect ratio" msgstr "_Coincidir a relación de aspecto da foto" -#: ui/printing_widget.ui:197 +#: ui/printing_widget.ui:161 msgid "_Autosize:" msgstr "Tamaño _automático:" -#: ui/printing_widget.ui:237 +#: ui/printing_widget.ui:202 msgid "Titles" msgstr "Títulos" -#: ui/printing_widget.ui:254 +#: ui/printing_widget.ui:219 msgid "Print image _title" msgstr "Imprimir o _título da imaxe" -#: ui/printing_widget.ui:297 +#: ui/printing_widget.ui:262 msgid "Pixel Resolution" msgstr "Píxeles de resolución" -#: ui/printing_widget.ui:317 +#: ui/printing_widget.ui:282 msgid "_Output photo at:" msgstr "_Saída da foto en:" -#: ui/printing_widget.ui:351 +#: ui/printing_widget.ui:316 msgid "pixels per inch" msgstr "píxeles por polgada" +#: ui/saved_search_dialog.ui:7 +msgid "Search" +msgstr "Buscar" + +#: ui/saved_search_dialog.ui:23 +msgid "Cancel" +msgstr "Cancelar" + +#: ui/saved_search_dialog.ui:36 +msgid "OK" +msgstr "Aceptar" + +#: ui/saved_search_dialog.ui:74 +msgid "_Name of search:" +msgstr "_Nome da busca:" + +#: ui/saved_search_dialog.ui:132 +msgid "_Match" +msgstr "_Coincidencia" + +#: ui/saved_search_dialog.ui:149 +msgid "any" +msgstr "calquera" + +#: ui/saved_search_dialog.ui:150 +msgid "all" +msgstr "todo" + +#: ui/saved_search_dialog.ui:151 +msgid "none" +msgstr "ningunha" + +#: ui/saved_search_dialog.ui:165 +msgid "of the following:" +msgstr "dos seguintes:" + #: ui/set_background_dialog.ui:9 msgid "Set as Desktop Background" msgstr "Estabelecer como fondo do escritorio" @@ -6358,22 +6418,6 @@ msgstr "período temporal" msgid "How long each photo is shown on the desktop background" msgstr "Canto, de grande, se amosa unha foto no fondo de escritorio" -#: ui/shotwell.ui:22 -msgid "_Name of search:" -msgstr "_Nome da busca:" - -#: ui/shotwell.ui:76 -msgid "_Match" -msgstr "_Coincidencia" - -#: ui/shotwell.ui:103 -msgid "of the following:" -msgstr "dos seguintes:" - -#: ui/shotwell.ui:184 -msgid "label" -msgstr "etiqueta" - #: ui/sidebar_default_context.ui:11 ui/tag_sidebar_context.ui:6 msgid "New _Tag…" msgstr "Nova e_tiqueta..." @@ -6398,10 +6442,46 @@ msgstr "Mostrar o t_itulo" msgid "seconds" msgstr "segundos" +#: ui/textentrydialog.ui:66 +msgid "label" +msgstr "etiqueta" + #: ui/trash.ui:285 msgid "Delete all photos in the trash" msgstr "Eliminar todas as fotos do lixo" +#~ msgid "background color" +#~ msgstr "cor do fondo" + +#~ msgid "A grayscale color for use as the background color." +#~ msgstr "Cor da escala de grises a usar como cor do fondo." + +#~ msgid "" +#~ "Enter the confirmation number which appears after you log into Flickr in " +#~ "your Web browser." +#~ msgstr "" +#~ "Escriba o número de confirmación que aparece despois de que inicie a " +#~ "sesión en Flickr desde o seu navegador web." + +#~ msgid "Authorization _Number:" +#~ msgstr "_Número de autorización:" + +#~ msgid "Width or height" +#~ msgstr "Largo ou alto" + +#~ msgid "“%s” isn’t a valid response to an OAuth authentication request" +#~ msgstr "" +#~ "«%s» non é unha resposta válida a unha petición de autenticación OAuth" + +#~ msgid "white" +#~ msgstr "branco" + +#~ msgid "black" +#~ msgstr "negro" + +#~ msgid "_Background:" +#~ msgstr "_Fondo:" + #~ msgid "" #~ "Welcome to the F-Spot library import service.\n" #~ "\n" diff --git a/po/gu.gmo b/po/gu.gmo deleted file mode 100644 index 19d932c..0000000 Binary files a/po/gu.gmo and /dev/null differ diff --git a/po/he.gmo b/po/he.gmo deleted file mode 100644 index 453cb19..0000000 Binary files a/po/he.gmo and /dev/null differ diff --git a/po/hi.gmo b/po/hi.gmo deleted file mode 100644 index d102785..0000000 Binary files a/po/hi.gmo and /dev/null differ diff --git a/po/hr.gmo b/po/hr.gmo deleted file mode 100644 index 1919b2c..0000000 Binary files a/po/hr.gmo and /dev/null differ diff --git a/po/hr.po b/po/hr.po index 5997016..bb1af32 100644 --- a/po/hr.po +++ b/po/hr.po @@ -6,27 +6,25 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"Report-Msgid-Bugs-To: " -"https://bugzilla.gnome.org/enter_bug.cgi?product=shotwell&keywords=I18N+L10N&" -"component=Internationalization\n" -"POT-Creation-Date: 2018-03-13 00:49+0000\n" -"PO-Revision-Date: 2018-03-21 22:51+0000\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/shotwell/issues\n" +"POT-Creation-Date: 2018-08-06 17:03+0000\n" +"PO-Revision-Date: 2018-09-02 22:42+0200\n" "Last-Translator: gogo \n" "Language-Team: \n" +"Language: hr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " -"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Launchpad-Export-Date: 2018-03-21 23:00+0000\n" -"X-Generator: Launchpad (build 18573)\n" -"Language: hr\n" +"X-Generator: Poedit 2.1.1\n" #: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in:4 #: plugins/shotwell-publishing-extras/GalleryConnector.vala:115 #: src/photos/RawSupport.vala:308 ui/collection.ui:85 ui/event.ui:356 -#: ui/event.ui:524 ui/media.ui:356 ui/photo_context.ui:91 ui/photo.ui:347 -#: ui/tags.ui:356 +#: ui/event.ui:524 ui/faces.ui:356 ui/media.ui:356 ui/photo_context.ui:91 +#: ui/photo.ui:347 ui/tags.ui:356 msgid "Shotwell" msgstr "Shotwell" @@ -63,6 +61,10 @@ msgstr "" msgid "Shotwell supports JPEG, PNG, TIFF, and a variety of RAW file formats." msgstr "Shotwell podržava JPEG, PNG, TIFF, i razne RAW formate datoteka." +#: misc/shotwell.appdata.xml.in:52 +msgid "The Shotwell developers" +msgstr "Shotwell razvijatelji" + # GNOME Application Class ("Generic Name") #: misc/shotwell.desktop.in:5 src/Resources.vala:17 msgid "Photo Manager" @@ -75,13 +77,13 @@ msgstr "Organizirajte svoje fotografije" #. Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! #: misc/shotwell.desktop.in:8 msgid "" -"album;camera;cameras;crop;edit;enhance;export;gallery;image;images;import;org" -"anize;photo;photographs;photos;picture;pictures;photography;print;publish;rot" -"ate;share;tags;video;facebook;flickr;picasa;youtube;piwigo;" +"album;camera;cameras;crop;edit;enhance;export;gallery;image;images;import;" +"organize;photo;photographs;photos;picture;pictures;photography;print;publish;" +"rotate;share;tags;video;facebook;flickr;picasa;youtube;piwigo;" msgstr "" "album;kamera;kamere;obreži;uredi;poboljšaj;izvezi;galerija;slika;slike;uvezi;" -"organiziraj;fotografija;fotografije;slika;slike;ispis;objavi;zakreni;dijeli;o" -"znake;video snimka;facebook;flickr;picasa;youtube;piwigo;" +"organiziraj;fotografija;fotografije;slika;slike;ispis;objavi;zakreni;dijeli;" +"oznake;video snimka;facebook;flickr;picasa;youtube;piwigo;" #. Translators: Do NOT translate or transliterate this text (this is an icon file name)! #: misc/shotwell.desktop.in:11 misc/shotwell-viewer.desktop.in:8 @@ -134,7 +136,7 @@ msgstr "" #: misc/org.yorba.shotwell-extras.gschema.xml:32 msgid "default blog" -msgstr "Zadani blog" +msgstr "zadani blog" #: misc/org.yorba.shotwell-extras.gschema.xml:33 msgid "The name of the default blog of the user, if any" @@ -170,11 +172,11 @@ msgstr "korisnikov token , ako je zapamćen." #: misc/org.yorba.shotwell-extras.gschema.xml:58 #: misc/org.yorba.shotwell.gschema.xml:542 msgid "last category" -msgstr "Posljednja kategorija" +msgstr "posljednja kategorija" #: misc/org.yorba.shotwell-extras.gschema.xml:59 msgid "The last selected Rajce category." -msgstr "Posljednja odabrana Rajce kategorija" +msgstr "Posljednja odabrana Rajce kategorija." #: misc/org.yorba.shotwell-extras.gschema.xml:64 #: misc/org.yorba.shotwell.gschema.xml:554 @@ -236,8 +238,7 @@ msgid "display basic properties" msgstr "prikaži osnovna svojstva" #: misc/org.yorba.shotwell.gschema.xml:24 -msgid "" -"True if the basic properties pane is to be displayed, false otherwise." +msgid "True if the basic properties pane is to be displayed, false otherwise." msgstr "Ako je odabrano, panel osnovnih svojstava će biti prikazan." #: misc/org.yorba.shotwell.gschema.xml:29 @@ -270,8 +271,7 @@ msgid "display search bar" msgstr "prikaži traku pretrage" #: misc/org.yorba.shotwell.gschema.xml:48 -msgid "" -"True if the Search/Filter Toolbar is to be displayed, false otherwise." +msgid "True if the Search/Filter Toolbar is to be displayed, false otherwise." msgstr "Ako je odabrano, alatna traka pretrage/filtra će biti prikazana." #: misc/org.yorba.shotwell.gschema.xml:53 @@ -363,8 +363,7 @@ msgid "sort library photos ascending" msgstr "razvrstaj fotografije u fototeci rastući" #: misc/org.yorba.shotwell.gschema.xml:96 -msgid "" -"True if library photos should be sorted ascending, false if descending." +msgid "True if library photos should be sorted ascending, false if descending." msgstr "" "Ako je odabrano, fotografije u fototeci bi trebale biti razvrstane rastući, " "u suprotnom padajući." @@ -456,7 +455,7 @@ msgstr "Širina bočne trake u pikselima" #: misc/org.yorba.shotwell.gschema.xml:149 msgid "photo thumbnail scale" -msgstr "Promjena veličine fotografije minijature" +msgstr "promjena veličine fotografije minijature" #: misc/org.yorba.shotwell.gschema.xml:150 msgid "The scale of photo thumbnails, ranging from 72 to 360." @@ -471,12 +470,12 @@ msgid "Pin toolbar in fullscreen, or not." msgstr "Pričvrsti alatnu traku u cjelozaslonskom prikazu, ili ne." #: misc/org.yorba.shotwell.gschema.xml:161 -msgid "background color" -msgstr "boja pozadine" +msgid "prefer GTK+’s dark theme" +msgstr "preferiraj GTK+ tamnu temu" #: misc/org.yorba.shotwell.gschema.xml:162 -msgid "A grayscale color for use as the background color." -msgstr "Siva boja kao boja pozadine." +msgid "Whether to use the dark theme of GTK+ for Shotwell or not." +msgstr "Treba li koristiti GTK+ tamnu temu u Shootwellu." #: misc/org.yorba.shotwell.gschema.xml:167 msgid "background for transparent images" @@ -491,8 +490,7 @@ msgid "color for solid transparency background" msgstr "boja za pozadinu potpune prozirnosti" #: misc/org.yorba.shotwell.gschema.xml:174 -msgid "" -"Color to use if background for transparent images is set to solid color" +msgid "Color to use if background for transparent images is set to solid color" msgstr "" "Boja koja će se koristiti ako je pozadina za prozirne slike postavljena na " "jednobojno" @@ -525,7 +523,7 @@ msgstr "odgoda prijelaza" msgid "" "The time (in seconds) that a transition runs between photos in a slideshow" msgstr "" -"Vrijeme (u sekundama) trajanja prijelaza između fotografija u prezentaciji." +"Vrijeme (u sekundama) trajanja prijelaza između fotografija u prezentaciji" #: misc/org.yorba.shotwell.gschema.xml:199 msgid "transition effect id" @@ -683,7 +681,7 @@ msgstr "Zadana mogućnost za kojeg će se RAW razvijatelja Shotwell koristiti." #: misc/org.yorba.shotwell.gschema.xml:301 msgid "Most-recently-used crop aspect ratio menu choice." -msgstr "Izbornik odabira najčešće nedavno korištenog omjera obrezivanja" +msgstr "Izbornik odabira najčešće nedavno korištenog omjera obrezivanja." #: misc/org.yorba.shotwell.gschema.xml:302 msgid "A numeric code representing the last crop menu choice the user made." @@ -705,7 +703,7 @@ msgstr "" #: misc/org.yorba.shotwell.gschema.xml:311 msgid "Most-recently-used crop custom aspect ratio’s denominator." -msgstr "Najčešće nedavno korišteno nazivnik obrezivanja prilagođenog omjera" +msgstr "Najčešće nedavno korišteno nazivnik obrezivanja prilagođenog omjera." #: misc/org.yorba.shotwell.gschema.xml:312 msgid "" @@ -806,8 +804,7 @@ msgstr "ID korisnika" #: misc/org.yorba.shotwell.gschema.xml:429 msgid "Facebook user i.d. for the currently logged in user, if any" -msgstr "" -"ID Facebook korisnika za trenutno prijavljenog korisnika, ako postoji" +msgstr "ID Facebook korisnika za trenutno prijavljenog korisnika, ako postoji" #: misc/org.yorba.shotwell.gschema.xml:434 msgid "user name" @@ -820,7 +817,7 @@ msgstr "Ime trenutno prijavljenog Facebook korisnika, ako postoji" #: misc/org.yorba.shotwell.gschema.xml:440 #: misc/org.yorba.shotwell.gschema.xml:472 msgid "default size code" -msgstr "Kôd zadane veličine" +msgstr "kôd zadane veličine" #: misc/org.yorba.shotwell.gschema.xml:441 msgid "" @@ -841,8 +838,7 @@ msgid "OAuth Access Phase Token" msgstr "OAuth token pristupa" #: misc/org.yorba.shotwell.gschema.xml:455 -msgid "" -"The authorization token for the currently logged in Flickr user, if any" +msgid "The authorization token for the currently logged in Flickr user, if any" msgstr "Token ovjere za trenutno prijavljenog Flickr korisnika, ako postoji" #: misc/org.yorba.shotwell.gschema.xml:460 @@ -956,7 +952,7 @@ msgstr "Ako je odabrano, zapamti Piwigo lozinku." #: misc/org.yorba.shotwell.gschema.xml:543 msgid "The last selected Piwigo category." -msgstr "Posljednja odabrana Piwigo kategorija" +msgstr "Posljednja odabrana Piwigo kategorija." #: misc/org.yorba.shotwell.gschema.xml:548 msgid "last permission level" @@ -964,7 +960,7 @@ msgstr "posljednja razina dozvole" #: misc/org.yorba.shotwell.gschema.xml:549 msgid "The last chosen Piwigo permission level." -msgstr "Posljednja odabrana Piwigo razina dozvole" +msgstr "Posljednja odabrana Piwigo razina dozvole." #: misc/org.yorba.shotwell.gschema.xml:555 msgid "" @@ -1100,8 +1096,7 @@ msgid "content ppi" msgstr "ppi sadržaja" #: misc/org.yorba.shotwell.gschema.xml:655 -msgid "" -"The number of pixels per inch (ppi) sent to the printer during printing" +msgid "The number of pixels per inch (ppi) sent to the printer during printing" msgstr "Broj piksela po inču (ppi) poslanih u pisač tijekom ispisa" #: misc/org.yorba.shotwell.gschema.xml:660 @@ -1233,8 +1228,7 @@ msgid "enable yandex publishing plugin" msgstr "omogući priključak yandex objvaljivanja" #: misc/org.yorba.shotwell.gschema.xml:745 -msgid "" -"True if the Yandex.Fotki publishing plugin is enabled, false otherwise" +msgid "True if the Yandex.Fotki publishing plugin is enabled, false otherwise" msgstr "Ako je odabrano, priključak Yandex.Fotki objavljivanja je omogućen" #: misc/org.yorba.shotwell.gschema.xml:750 @@ -1276,8 +1270,7 @@ msgstr "omogućuju raspad prijelaza prezentacije" #: misc/org.yorba.shotwell.gschema.xml:775 msgid "" "True if the Crumble slideshow transition plugin is enabled, false otherwise" -msgstr "" -"Ako je odabrano, priključak raspada prijelaza prezentacije je omogućen" +msgstr "Ako je odabrano, priključak raspada prijelaza prezentacije je omogućen" #: misc/org.yorba.shotwell.gschema.xml:780 msgid "enable slideshow fade transition" @@ -1306,8 +1299,7 @@ msgstr "omogući satni prijelaza prezentacije" #: misc/org.yorba.shotwell.gschema.xml:793 msgid "" "True if the Clock slideshow transition plugin is enabled, false otherwise" -msgstr "" -"Ako je odabrano, priključak satnog prijelaza prezentacije je omogućen" +msgstr "Ako je odabrano, priključak satnog prijelaza prezentacije je omogućen" #: misc/org.yorba.shotwell.gschema.xml:798 msgid "enable slideshow circle transition" @@ -1316,8 +1308,7 @@ msgstr "omogući kružni prijelaza prezentacije" #: misc/org.yorba.shotwell.gschema.xml:799 msgid "" "True if the Circle slideshow transition plugin is enabled, false otherwise" -msgstr "" -"Ako je odabrano, priključak kružnog prijelaza prezentacije je omogućen" +msgstr "Ako je odabrano, priključak kružnog prijelaza prezentacije je omogućen" #: misc/org.yorba.shotwell.gschema.xml:804 msgid "enable slideshow circles transition" @@ -1326,8 +1317,7 @@ msgstr "omogućuju kružni prijelaz prezentacije" #: misc/org.yorba.shotwell.gschema.xml:805 msgid "" "True if the Circles slideshow transition plugin is enabled, false otherwise" -msgstr "" -"Ako je odabrano, priključak kružnih prijelaza prezentacije je omogućen" +msgstr "Ako je odabrano, priključak kružnih prijelaza prezentacije je omogućen" #: misc/org.yorba.shotwell.gschema.xml:810 msgid "enable slideshow blinds transition" @@ -1422,7 +1412,7 @@ msgstr "Neuspjela Flickr ovjera" msgid "Verifying authorization…" msgstr "Provjeravanje ovjere…" -#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:118 +#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:137 msgid "" "You have already logged in and out of a Google service during this Shotwell " "session.\n" @@ -1506,7 +1496,7 @@ msgstr "Neuspješno učitavanje korisničkog sučelja: %s" msgid "Visit the Shotwell home page" msgstr "Posjetite Shotwell web stranicu" -#: plugins/common/Resources.vala:31 src/AppWindow.vala:611 +#: plugins/common/Resources.vala:31 src/AppWindow.vala:603 msgid "translator-credits" msgstr "" "Krešo Kunjas \n" @@ -1582,7 +1572,7 @@ msgstr "" #: plugins/common/RESTSupport.vala:524 #: plugins/shotwell-publishing/TumblrPublishing.vala:623 msgid "A temporary file needed for publishing is unavailable" -msgstr "Privremena datoteka, potrebna za objavu, nije dostupna." +msgstr "Privremena datoteka, potrebna za objavu, nije dostupna" #: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:28 msgid "_Gallery3 URL:" @@ -1623,8 +1613,7 @@ msgstr "Novi _album" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:86 msgid "_Remove location, tag and camera-identifying data before uploading" -msgstr "" -"_Ukloni lokaciju, oznaku i podatke identifikacije kamere prije slanja" +msgstr "_Ukloni lokaciju, oznaku i podatke identifikacije kamere prije slanja" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:108 msgid "Scaling constraint:" @@ -1667,7 +1656,7 @@ msgstr "_Odjava" #: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:156 #: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:121 #: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:115 -#: src/CollectionPage.vala:82 src/PhotoPage.vala:2469 +#: src/CollectionPage.vala:82 src/PhotoPage.vala:2492 msgid "_Publish" msgstr "_Objavi" @@ -1785,7 +1774,7 @@ msgstr "_Sakrij album" #: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:156 #: plugins/shotwell-publishing-extras/RajcePublishing.vala:1017 msgid "Open target _album in browser" -msgstr "Otvori odredišni _album u pregledniku." +msgstr "Otvori odredišni _album u pregledniku" #: plugins/shotwell-publishing-extras/RajcePublishing.vala:40 msgid "Copyright © 2013 rajce.net" @@ -2120,8 +2109,7 @@ msgstr "Veličina fotografije" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:219 msgid "_If a title is set and comment unset, use title as comment" -msgstr "" -"_Ako je naslov postavljen a komentar nije, koristi naslov kao komentar" +msgstr "_Ako je naslov postavljen a komentar nije, koristi naslov kao komentar" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:235 msgid "_Do no upload tags" @@ -2132,7 +2120,7 @@ msgid "Logout" msgstr "Odjava" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:268 -#: src/Resources.vala:296 ui/collection.ui:192 +#: src/Resources.vala:266 ui/collection.ui:192 msgid "Publish" msgstr "Objavi" @@ -2142,8 +2130,7 @@ msgid "Creating album %s…" msgstr "Stvaranje albuma %s…" #: plugins/shotwell-publishing/PiwigoPublishing.vala:946 -msgid "" -"An error message occurred when publishing to Piwigo. Please try again." +msgid "An error message occurred when publishing to Piwigo. Please try again." msgstr "Nastala je greška prilikom prijave na Piwigo. Pokušajte ponovno." #. %s is the host name that we tried to connect to @@ -2164,8 +2151,8 @@ msgid "Certificate of %s" msgstr "Vjerodajnica od %s" #: plugins/shotwell-publishing/PiwigoPublishing.vala:1051 -#: src/Resources.vala:167 ui/multitextentrydialog.ui:40 -#: ui/slideshow_settings.ui:49 +#: src/Resources.vala:137 ui/multitextentrydialog.ui:40 +#: ui/slideshow_settings.ui:52 msgid "_OK" msgstr "_U redu" @@ -2211,7 +2198,7 @@ msgstr "Ovo povezivanje nije sigurno" #: plugins/shotwell-publishing/piwigo_ssl_failure_pane.ui:75 msgid "Show the certificate…" -msgstr "Prikaži vjerodajnicu" +msgstr "Prikaži vjerodajnicu…" #: plugins/shotwell-publishing/piwigo_ssl_failure_pane.ui:88 msgid "I understand, please _proceed." @@ -2373,17 +2360,18 @@ msgstr "Otkvaći traku sa alatima" msgid "Leave fullscreen" msgstr "Napusti cjelozaslonski prikaz" -#: src/AppWindow.vala:538 src/AppWindow.vala:559 src/AppWindow.vala:576 +#: src/AppWindow.vala:530 src/AppWindow.vala:551 src/AppWindow.vala:568 #: src/data_imports/DataImportsUI.vala:302 #: src/data_imports/DataImportsUI.vala:420 src/Dialogs.vala:20 -#: src/Dialogs.vala:28 src/Dialogs.vala:753 src/Dialogs.vala:776 -#: src/publishing/PublishingUI.vala:305 src/publishing/PublishingUI.vala:529 -#: src/Resources.vala:158 ui/multitextentrydialog.ui:25 -#: ui/slideshow_settings.ui:35 ui/textentrydialog.ui:19 +#: src/Dialogs.vala:28 src/Dialogs.vala:58 src/Dialogs.vala:766 +#: src/Dialogs.vala:789 src/publishing/PublishingUI.vala:305 +#: src/publishing/PublishingUI.vala:529 src/Resources.vala:128 +#: ui/multitextentrydialog.ui:25 ui/slideshow_settings.ui:38 +#: ui/textentrydialog.ui:19 msgid "_Cancel" msgstr "_Odustani" -#: src/AppWindow.vala:586 +#: src/AppWindow.vala:578 #, c-format msgid "" "A fatal error occurred when accessing Shotwell’s library. Shotwell cannot " @@ -2396,21 +2384,21 @@ msgstr "" "\n" "%s" -#: src/AppWindow.vala:607 +#: src/AppWindow.vala:599 msgid "Visit the Shotwell web site" msgstr "Posjetite Shotwell web stranicu" -#: src/AppWindow.vala:620 +#: src/AppWindow.vala:612 #, c-format msgid "Unable to display help: %s" msgstr "Nemoguć prikaz pomoći: %s" -#: src/AppWindow.vala:628 +#: src/AppWindow.vala:620 #, c-format msgid "Unable to navigate to bug database: %s" msgstr "Nemoguće upravljanje bazom podataka greške: %s" -#: src/AppWindow.vala:636 +#: src/AppWindow.vala:628 #, c-format msgid "Unable to display FAQ: %s" msgstr "Nemoguć prikaz često postavljanih pitanja: %s" @@ -2486,18 +2474,18 @@ msgstr "Popis otkrivenih uređaja kamere" #: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:711 #: src/camera/ImportPage.vala:727 src/photos/RawSupport.vala:311 -#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/media.ui:361 -#: ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 +#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/faces.ui:361 +#: ui/media.ui:361 ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 msgid "Camera" msgstr "Kamera" #. Translators: First %s is the name of camera as gotten from GPhoto, second is the GVolume name, e.g. Mass storage camera (510MB volume) -#: src/camera/CameraTable.vala:351 +#: src/camera/CameraTable.vala:256 #, c-format msgid "%s (%s)" msgstr "%s (%s)" -#: src/camera/ImportPage.vala:311 src/Properties.vala:230 +#: src/camera/ImportPage.vala:307 src/Properties.vala:234 msgid "RAW+JPEG" msgstr "RAW+JPEG" @@ -2509,32 +2497,32 @@ msgstr "" "datoteka." #. hide duplicates checkbox -#: src/camera/ImportPage.vala:798 +#: src/camera/ImportPage.vala:776 msgid "Hide photos already imported" -msgstr "Sakrij fotografije koje su već uvezene." +msgstr "Sakrij fotografije koje su već uvezene" -#: src/camera/ImportPage.vala:799 +#: src/camera/ImportPage.vala:777 msgid "Only display photos that have not been imported" -msgstr "Prikaži samo fotografije koje nisu uvezene." +msgstr "Prikaži samo fotografije koje nisu uvezene" -#: src/camera/ImportPage.vala:838 ui/import.ui:13 ui/import.ui:210 +#: src/camera/ImportPage.vala:816 ui/import.ui:13 ui/import.ui:210 msgid "Import _Selected" msgstr "Uvezi _odabrane" -#: src/camera/ImportPage.vala:848 ui/import.ui:17 ui/import.ui:214 +#: src/camera/ImportPage.vala:826 ui/import.ui:17 ui/import.ui:214 msgid "Import _All" msgstr "Uvezi _sve" -#: src/camera/ImportPage.vala:872 +#: src/camera/ImportPage.vala:850 msgid "The camera seems to be empty. No photos/videos found to import" msgstr "Izgleda da je kamera prazna. Nema fotografija/video snimaka za uvoz" -#: src/camera/ImportPage.vala:876 +#: src/camera/ImportPage.vala:854 msgid "No new photos/videos found on camera" msgstr "Nema pronađenih novih fotografija/video snimaka na kameri" #. it's mounted, offer to unmount for the user -#: src/camera/ImportPage.vala:1047 +#: src/camera/ImportPage.vala:1025 msgid "" "Shotwell needs to unmount the camera from the filesystem in order to access " "it. Continue?" @@ -2542,15 +2530,15 @@ msgstr "" "Shotwell treba odmontirati kameru iz datotečnog sustava kako bi joj mogao " "pristupiti. Želite li nastaviti?" -#: src/camera/ImportPage.vala:1053 +#: src/camera/ImportPage.vala:1031 msgid "_Unmount" msgstr "_Odmontiraj" -#: src/camera/ImportPage.vala:1058 +#: src/camera/ImportPage.vala:1036 msgid "Please unmount the camera." msgstr "Odmontirajte kameru." -#: src/camera/ImportPage.vala:1063 +#: src/camera/ImportPage.vala:1041 msgid "" "The camera is locked by another application. Shotwell can only access the " "camera when it’s unlocked. Please close any other application using the " @@ -2560,11 +2548,11 @@ msgstr "" "ni jedna druga aplikacija ne koristi. Zatvorite druge aplikacije koje bi " "mogle koristiti kameru, te nakon toga pokušajte ponovno." -#: src/camera/ImportPage.vala:1073 +#: src/camera/ImportPage.vala:1051 msgid "Please close any other application using the camera." msgstr "Zatvorite druge aplikacije koje bi mogle koristiti kameru." -#: src/camera/ImportPage.vala:1078 +#: src/camera/ImportPage.vala:1056 #, c-format msgid "" "Unable to fetch previews from the camera:\n" @@ -2573,34 +2561,33 @@ msgstr "" "Nemoguće preuzeti predpregled s kamere: \n" " %s" -#: src/camera/ImportPage.vala:1095 +#: src/camera/ImportPage.vala:1073 msgid "Unmounting…" msgstr "Odmontiravanje…" -#: src/camera/ImportPage.vala:1188 +#: src/camera/ImportPage.vala:1166 msgid "Connecting to camera, please wait…" msgstr "Povezivanje s kamerom, malo pričekajte…" -#. reset claim_timeout to initial value -#: src/camera/ImportPage.vala:1223 +#: src/camera/ImportPage.vala:1198 msgid "Starting import, please wait…" msgstr "Pokretanje uvoza, pričekajte…" -#: src/camera/ImportPage.vala:1229 +#: src/camera/ImportPage.vala:1204 msgid "Fetching photo information" msgstr "Preuzimanje informacija fotografija" -#: src/camera/ImportPage.vala:1590 +#: src/camera/ImportPage.vala:1563 #, c-format msgid "Fetching preview for %s" msgstr "Preuzimanje predpregleda za %s" -#: src/camera/ImportPage.vala:1701 +#: src/camera/ImportPage.vala:1671 #, c-format msgid "Unable to lock camera: %s" msgstr "Nemoguće zaključavanje kamere: %s" -#: src/camera/ImportPage.vala:1787 +#: src/camera/ImportPage.vala:1756 #, c-format msgid "Delete this photo from camera?" msgid_plural "Delete these %d photos from camera?" @@ -2608,7 +2595,7 @@ msgstr[0] "Obriši ovu %d fotografiju iz kamere?" msgstr[1] "Obriši ove %d fotografije iz kamere?" msgstr[2] "Obriši ovih %d fotografija iz kamere?" -#: src/camera/ImportPage.vala:1790 +#: src/camera/ImportPage.vala:1759 #, c-format msgid "Delete this video from camera?" msgid_plural "Delete these %d videos from camera?" @@ -2616,7 +2603,7 @@ msgstr[0] "Obriši ovu %d video snimku iz kamere?" msgstr[1] "Obriši ove %d video snimke iz kamere?" msgstr[2] "Obriši ovih %d video snimaka iz kamere?" -#: src/camera/ImportPage.vala:1793 +#: src/camera/ImportPage.vala:1762 #, c-format msgid "Delete this photo/video from camera?" msgid_plural "Delete these %d photos/videos from camera?" @@ -2624,7 +2611,7 @@ msgstr[0] "Obriši ovu %d fotografiju/video snimu iz kamere?" msgstr[1] "Obriši ove %d fotografije/video snimke iz kamere?" msgstr[2] "Obriši ovih %d fotografija/video snimaka iz kamere?" -#: src/camera/ImportPage.vala:1796 +#: src/camera/ImportPage.vala:1765 #, c-format msgid "Delete these files from camera?" msgid_plural "Delete these %d files from camera?" @@ -2632,19 +2619,18 @@ msgstr[0] "Obriši ovu %d datoteku iz kamere?" msgstr[1] "Obriši ove %d datoteke iz kamere?" msgstr[2] "Obriši ovih %d datoteka iz kamere?" -#: src/camera/ImportPage.vala:1804 src/Dialogs.vala:720 +#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:733 msgid "_Keep" msgstr "_Zadrži" -#: src/camera/ImportPage.vala:1823 +#: src/camera/ImportPage.vala:1792 msgid "Removing photos/videos from camera" msgstr "Uklanjanje fotografija/video snimaka s kamere" -#: src/camera/ImportPage.vala:1827 +#: src/camera/ImportPage.vala:1796 #, c-format msgid "Unable to delete %d photo/video from the camera due to errors." -msgid_plural "" -"Unable to delete %d photos/videos from the camera due to errors." +msgid_plural "Unable to delete %d photos/videos from the camera due to errors." msgstr[0] "" "Nemoguće brisanje %d fotografije/video snimke iz kamere zbog grešaka." msgstr[1] "" @@ -2653,21 +2639,21 @@ msgstr[2] "" "Nemoguće brisanje %d fotografija/video snimaka iz kamere zbog grešaka." #: src/CollectionPage.vala:80 src/direct/DirectPhotoPage.vala:85 -#: src/PhotoPage.vala:2464 src/Resources.vala:171 +#: src/PhotoPage.vala:2487 src/Resources.vala:141 msgid "_Print" msgstr "_Ispis" -#: src/CollectionPage.vala:83 src/Resources.vala:324 ui/collection.ui:128 +#: src/CollectionPage.vala:83 src/Resources.vala:294 ui/collection.ui:128 #: ui/direct_context.ui:23 ui/direct.ui:23 ui/event.ui:567 ui/photo.ui:28 msgid "Send _To…" msgstr "Pošalji _u…" #: src/CollectionPage.vala:84 src/direct/DirectPhotoPage.vala:90 -#: src/PhotoPage.vala:2474 src/Resources.vala:221 +#: src/PhotoPage.vala:2497 src/Resources.vala:191 msgid "Set as _Desktop Background" msgstr "Postavi kao pozadinu _radne površine" -#: src/CollectionPage.vala:92 src/Resources.vala:287 +#: src/CollectionPage.vala:92 src/Resources.vala:257 msgid "_Duplicate" msgstr "_Duplikat" @@ -2679,61 +2665,61 @@ msgstr "Cijeli zaslon" msgid "S_lideshow" msgstr "P_rezentacija" -#: src/CollectionPage.vala:110 src/Resources.vala:140 ui/direct.ui:111 +#: src/CollectionPage.vala:110 src/Resources.vala:110 ui/direct.ui:111 #: ui/photo.ui:200 msgid "Rotate _Right" msgstr "Zakreni _desno" -#: src/CollectionPage.vala:113 src/Resources.vala:145 ui/direct.ui:116 +#: src/CollectionPage.vala:113 src/Resources.vala:115 ui/direct.ui:116 #: ui/photo.ui:205 msgid "Rotate _Left" msgstr "Zakreni _lijevo" -#: src/CollectionPage.vala:116 src/Resources.vala:150 ui/direct.ui:121 +#: src/CollectionPage.vala:116 src/Resources.vala:120 ui/direct.ui:121 #: ui/photo.ui:210 msgid "Flip Hori_zontally" msgstr "Okreni _vodoravno" -#: src/CollectionPage.vala:117 src/Resources.vala:153 ui/direct.ui:125 +#: src/CollectionPage.vala:117 src/Resources.vala:123 ui/direct.ui:125 #: ui/photo.ui:214 msgid "Flip Verti_cally" msgstr "Okreni _okomito" -#: src/CollectionPage.vala:119 src/Resources.vala:187 ui/collection.ui:8 +#: src/CollectionPage.vala:119 src/Resources.vala:157 ui/collection.ui:8 #: ui/direct_context.ui:7 ui/direct.ui:134 ui/event.ui:447 #: ui/photo_context.ui:6 ui/photo.ui:223 msgid "_Enhance" msgstr "_Poboljšaj" -#: src/CollectionPage.vala:120 src/Resources.vala:215 ui/collection.ui:13 +#: src/CollectionPage.vala:120 src/Resources.vala:185 ui/collection.ui:13 #: ui/direct_context.ui:12 ui/direct.ui:161 ui/event.ui:452 #: ui/photo_context.ui:11 ui/photo.ui:250 msgid "Re_vert to Original" msgstr "_Vrati na izvorno" -#: src/CollectionPage.vala:122 src/Resources.vala:191 ui/photo.ui:256 +#: src/CollectionPage.vala:122 src/Resources.vala:161 ui/photo.ui:256 msgid "_Copy Color Adjustments" msgstr "_Kopiraj prilagodbe boje" -#: src/CollectionPage.vala:125 src/Resources.vala:195 ui/photo.ui:261 +#: src/CollectionPage.vala:125 src/Resources.vala:165 ui/photo.ui:261 msgid "_Paste Color Adjustments" msgstr "_Zalijepi prilagodbe boje" #: src/CollectionPage.vala:135 msgid "Adjust Date and Time…" -msgstr "Prilagodi datum i vrijeme" +msgstr "Prilagodi datum i vrijeme…" -#: src/CollectionPage.vala:143 src/Resources.vala:320 ui/collection.ui:108 +#: src/CollectionPage.vala:143 src/Resources.vala:290 ui/collection.ui:108 #: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:361 msgid "Open With E_xternal Editor" msgstr "Otvori s v_anjskim uređivačem" -#: src/CollectionPage.vala:146 src/Resources.vala:322 ui/collection.ui:113 +#: src/CollectionPage.vala:146 src/Resources.vala:292 ui/collection.ui:113 #: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:366 msgid "Open With RA_W Editor" msgstr "Otvori s _RAW uređivačem" -#: src/CollectionPage.vala:149 src/Resources.vala:168 +#: src/CollectionPage.vala:149 src/Resources.vala:138 msgid "_Play" msgstr "_Reproduciraj" @@ -2744,7 +2730,7 @@ msgstr[0] "Izvezi fotografiju/video snimku" msgstr[1] "Izvezi fotografije/video snimke" msgstr[2] "Izvezi fotografije/video snimke" -#: src/CollectionPage.vala:412 src/Dialogs.vala:59 src/PhotoPage.vala:2998 +#: src/CollectionPage.vala:412 src/Dialogs.vala:74 src/PhotoPage.vala:3021 msgid "Export Photo" msgid_plural "Export Photos" msgstr[0] "Izvezi fotografiju" @@ -2799,39 +2785,39 @@ msgstr "Primjenjivanje transformacija boje" msgid "Undoing Color Transformations" msgstr "Poništavanje transformacija boje" -#: src/Commands.vala:1007 +#: src/Commands.vala:1006 msgid "Creating New Event" msgstr "Stvaranje novog događaja" -#: src/Commands.vala:1008 +#: src/Commands.vala:1007 msgid "Removing Event" msgstr "Uklanjanje događaja" -#: src/Commands.vala:1017 +#: src/Commands.vala:1016 msgid "Moving Photos to New Event" msgstr "Premještanje fotografija u novi događaj" -#: src/Commands.vala:1018 +#: src/Commands.vala:1017 msgid "Setting Photos to Previous Event" msgstr "Postavljanje fotografija u prijašnji događaj" -#: src/Commands.vala:1075 +#: src/Commands.vala:1074 msgid "Merging" msgstr "Spajanje" -#: src/Commands.vala:1076 +#: src/Commands.vala:1075 msgid "Unmerging" msgstr "Razdvajanje" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Duplicating photos" msgstr "Dupliciranje fotografija" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Removing duplicated photos" msgstr "Uklanjanje duplikata fotografija" -#: src/Commands.vala:1108 +#: src/Commands.vala:1107 #, c-format msgid "Unable to duplicate one photo due to a file error" msgid_plural "Unable to duplicate %d photos due to file errors" @@ -2839,118 +2825,117 @@ msgstr[0] "Nemoguće napraviti duplikat %d fotografije zbog greške u datoteci" msgstr[1] "Nemoguće napraviti duplikat %d fotografije zbog greške u datoteci" msgstr[2] "Nemoguće napraviti duplikat %d fotografija zbog greške u datoteci" -#: src/Commands.vala:1195 +#: src/Commands.vala:1194 msgid "Restoring previous rating" msgstr "Vraćanje prijašnje ocjene" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Increasing ratings" msgstr "Povećanje ocjena" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Decreasing ratings" msgstr "Smanjenje ocjena" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Setting RAW developer" msgstr "Postavljanje RAW razvijatelja" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Restoring previous RAW developer" msgstr "Vraćanje prijašnjeg RAW razvijatelja" -#: src/Commands.vala:1257 +#: src/Commands.vala:1256 msgid "Set Developer" msgstr "Postavi razvijatelja" -#: src/Commands.vala:1347 +#: src/Commands.vala:1346 msgid "Original photo could not be adjusted." -msgstr "Izvorna fotografija se ne može prilagoditi" +msgstr "Izvorna fotografija se ne može prilagoditi." -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Adjusting Date and Time" msgstr "Podešavanje vremena i datuma" -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Undoing Date and Time Adjustment" msgstr "Poništavanje podešavanje datuma i vremena" -#: src/Commands.vala:1399 +#: src/Commands.vala:1398 msgid "One original photo could not be adjusted." msgid_plural "The following original photos could not be adjusted." msgstr[0] "Sljedeća izvorna fotografija se ne može prilagoditi." msgstr[1] "Sljedeće izvorne fotografije se ne mogu prilagoditi." msgstr[2] "Sljedeće izvorne fotografije se ne mogu prilagoditi." -#: src/Commands.vala:1401 src/Commands.vala:1425 +#: src/Commands.vala:1400 src/Commands.vala:1424 msgid "Time Adjustment Error" msgstr "Greška podešavanje vremena" -#: src/Commands.vala:1423 +#: src/Commands.vala:1422 msgid "Time adjustments could not be undone on the following photo file." msgid_plural "" "Time adjustments could not be undone on the following photo files." -msgstr[0] "" -"Podešavanje vremena se ne može poništiti na sljedećoj fotografiji." +msgstr[0] "Podešavanje vremena se ne može poništiti na sljedećoj fotografiji." msgstr[1] "" "Podešavanje vremena se ne može poništiti na sljedećim fotografijama." msgstr[2] "" "Podešavanje vremena se ne može poništiti na sljedećim fotografijama." -#: src/Commands.vala:1637 src/Commands.vala:1660 +#: src/Commands.vala:1636 src/Commands.vala:1659 msgid "Create Tag" msgstr "Stvori oznaku" -#: src/Commands.vala:1695 +#: src/Commands.vala:1694 #, c-format msgid "Move Tag “%s”" msgstr "Premjesti oznaku \"%s\"" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Move Photos to Trash" msgstr "Premjesti fotografije u smeće" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Restore Photos from Trash" msgstr "Vrati fotografije iz smeća" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Move the photos to the Shotwell trash" msgstr "Premjesti fotografije u Shotwell smeće" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Restore the photos back to the Shotwell library" msgstr "Vrati fotografije natrag u Shotwell fototeku" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Moving Photos to Trash" msgstr "Premještanje fotografija u smeće" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Restoring Photos From Trash" msgstr "Vraćanje fotografija iz smeća" -#: src/Commands.vala:2453 +#: src/Commands.vala:2452 msgid "Flag selected photos" msgstr "Označi odabrane fotografije" -#: src/Commands.vala:2454 +#: src/Commands.vala:2453 msgid "Unflag selected photos" msgstr "Ukloni oznaku odabrane fotografije" -#: src/Commands.vala:2455 +#: src/Commands.vala:2454 msgid "Flagging selected photos" msgstr "Označavanje odabrane fotografije" -#: src/Commands.vala:2456 +#: src/Commands.vala:2455 msgid "Unflagging selected photos" msgstr "Uklanjanje oznake odabrane fotografije" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Flag" msgstr "Označi" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Unflag" msgstr "Ukloni oznaku" @@ -2968,8 +2953,7 @@ msgid "Importing from %s can’t continue because an error occurred:" msgstr "Uvoz iz %s se ne može nastaviti zbog greške:" #: src/data_imports/DataImportsPluginHost.vala:151 -msgid "" -"To try importing from another service, select one from the above menu." +msgid "To try importing from another service, select one from the above menu." msgstr "" "Kako bi pokušali uvesti iz neke druge usluge, odaberite jednu iz gornjeg " "izbornika." @@ -2991,7 +2975,7 @@ msgstr "" msgid "Database file:" msgstr "Datoteka baze podataka:" -#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:782 +#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:783 msgid "_Import" msgstr "_Uvoz" @@ -3014,8 +2998,7 @@ msgstr "Uvoz podataka" #: src/db/DatabaseTable.vala:37 #, c-format msgid "Unable to open/create photo database %s: error code %d" -msgstr "" -"Nemoguće otvoriti/stvoriti bazu podataka fotografije %s: kôd greške %d" +msgstr "Nemoguće otvoriti/stvoriti bazu podataka fotografije %s: kôd greške %d" #: src/db/DatabaseTable.vala:46 #, c-format @@ -3069,17 +3052,15 @@ msgstr "Nemoguće pripremanje prezentacije na radnoj površini: %s" #, c-format msgid "This will remove the tag “%s” from one photo. Continue?" msgid_plural "This will remove the tag “%s” from %d photos. Continue?" -msgstr[0] "" -"Ovo će ukloniti oznaku “%s” iz %d fotografije. Želite li nastaviti?" -msgstr[1] "" -"Ovo će ukloniti oznaku “%s” iz %d fotografije. Želite li nastaviti?" -msgstr[2] "" -"Ovo će ukloniti oznaku “%s” iz %d fotografija. Želite li nastaviti?" - -#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:721 -#: src/Resources.vala:159 src/Resources.vala:362 src/Resources.vala:415 -#: src/Resources.vala:659 ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 -#: ui/trash.ui:216 ui/trash.ui:258 +msgstr[0] "Ovo će ukloniti oznaku “%s” iz %d fotografije. Želite li nastaviti?" +msgstr[1] "Ovo će ukloniti oznaku “%s” iz %d fotografije. Želite li nastaviti?" +msgstr[2] "Ovo će ukloniti oznaku “%s” iz %d fotografija. Želite li nastaviti?" + +#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:58 +#: src/Dialogs.vala:734 src/Resources.vala:129 src/Resources.vala:310 +#: src/Resources.vala:341 src/Resources.vala:394 src/Resources.vala:762 +#: ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 ui/trash.ui:216 +#: ui/trash.ui:258 msgid "_Delete" msgstr "_Obriši" @@ -3109,11 +3090,19 @@ msgstr[2] "" msgid "_Switch Developer" msgstr "_Zamijeni razvijatelja" -#: src/Dialogs.vala:59 +#: src/Dialogs.vala:54 +#, c-format +msgid "This will remove the face “%s” from one photo. Continue?" +msgid_plural "This will remove the face “%s” from %d photos. Continue?" +msgstr[0] "Ovo će ukloniti lice “%s” iz %d fotografije. Želite li nastaviti?" +msgstr[1] "Ovo će ukloniti lice “%s” iz %d fotografije. Želite li nastaviti?" +msgstr[2] "Ovo će ukloniti lice “%s” iz %d fotografija. Želite li nastaviti?" + +#: src/Dialogs.vala:74 msgid "Export Video" msgstr "Izvoz video snimke" -#: src/Dialogs.vala:84 +#: src/Dialogs.vala:99 msgid "Export Photos" msgstr "Izvezi fotografije" @@ -3122,7 +3111,7 @@ msgstr "Izvezi fotografije" #. if we can't copy an image over for editing in an external tool. #. Did we fail because we can't write to this directory? #. Yes - display an alternate error message here. -#: src/Dialogs.vala:112 +#: src/Dialogs.vala:127 #, c-format msgid "" "Shotwell couldn’t create a file for editing this photo because you do not " @@ -3131,7 +3120,7 @@ msgstr "" "Shotwell nije mogao stvoriti datoteku za uređivanje ove fotografije jer " "nemate dozvole za pisanje u %s." -#: src/Dialogs.vala:121 +#: src/Dialogs.vala:136 msgid "" "Unable to export the following photo due to a file error.\n" "\n" @@ -3139,7 +3128,7 @@ msgstr "" "Nemoguć izvoz fotografije zbog greške na datoteci.\n" "\n" -#: src/Dialogs.vala:127 +#: src/Dialogs.vala:142 msgid "" "\n" "\n" @@ -3149,28 +3138,28 @@ msgstr "" "\n" "Želite li nastaviti s izvozom?" -#: src/Dialogs.vala:128 +#: src/Dialogs.vala:143 msgid "Con_tinue" msgstr "_Nastavi" -#: src/Dialogs.vala:139 +#: src/Dialogs.vala:153 msgid "Save Details…" msgstr "Spremi pojedinosti…" -#: src/Dialogs.vala:140 +#: src/Dialogs.vala:154 msgid "Save Details" msgstr "Spremi pojedinosti" -#: src/Dialogs.vala:155 +#: src/Dialogs.vala:169 #, c-format msgid "(and %d more)\n" msgstr "(i još %d).\n" -#: src/Dialogs.vala:208 +#: src/Dialogs.vala:222 msgid "Import Results Report" msgstr "Uvezi izvještaj rezultata" -#: src/Dialogs.vala:212 +#: src/Dialogs.vala:226 #, c-format msgid "Attempted to import %d file." msgid_plural "Attempted to import %d files." @@ -3178,7 +3167,7 @@ msgstr[0] "Pokušaj uvoza %d datoteke." msgstr[1] "Pokušaj uvoza %d datoteke." msgstr[2] "Pokušaj uvoza %d datoteka." -#: src/Dialogs.vala:215 +#: src/Dialogs.vala:229 #, c-format msgid "Of these, %d file was successfully imported." msgid_plural "Of these, %d files were successfully imported." @@ -3186,42 +3175,41 @@ msgstr[0] "Od tih datoteka, %d datoteka je uspješno uvezena." msgstr[1] "Od tih datoteka, %d datoteke su uspješno uvezene." msgstr[2] "Od tih datoteka, %d datoteka je uspješno uvezeno." -#. +#. #. Duplicates -#. -#: src/Dialogs.vala:227 +#. +#: src/Dialogs.vala:241 msgid "Duplicate Photos/Videos Not Imported:" msgstr "Duplikati fotografija/video snimka nisu uvezeni:" -#: src/Dialogs.vala:231 +#: src/Dialogs.vala:245 msgid "duplicates existing media item" msgstr "napravi duplikat postojeće medijske stavke" -#. +#. #. Files Not Imported Due to Camera Errors -#. -#: src/Dialogs.vala:242 +#. +#: src/Dialogs.vala:256 msgid "Photos/Videos Not Imported Due to Camera Errors:" msgstr "Fotografije/Video snimke nisu uvezene zbog greške na kameri:" -#: src/Dialogs.vala:245 src/Dialogs.vala:260 src/Dialogs.vala:275 -#: src/Dialogs.vala:291 src/Dialogs.vala:306 src/Dialogs.vala:320 +#: src/Dialogs.vala:259 src/Dialogs.vala:274 src/Dialogs.vala:289 +#: src/Dialogs.vala:305 src/Dialogs.vala:320 src/Dialogs.vala:334 msgid "error message:" msgstr "poruka greške:" -#. +#. #. Files Not Imported Because They Weren't Recognized as Photos or Videos -#. -#: src/Dialogs.vala:256 -msgid "" -"Files Not Imported Because They Weren’t Recognized as Photos or Videos:" +#. +#: src/Dialogs.vala:270 +msgid "Files Not Imported Because They Weren’t Recognized as Photos or Videos:" msgstr "" "Datoteke nisu uvezene jer nisu prepoznate kao fotografije ili video snimke:" -#. +#. #. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands -#. -#: src/Dialogs.vala:271 +#. +#: src/Dialogs.vala:285 msgid "" "Photos/Videos Not Imported Because They Weren’t in a Format Shotwell " "Understands:" @@ -3229,10 +3217,10 @@ msgstr "" "Fotografije/Video snimke nisu uvezene jer nisu u formatu koji Shotwell " "prepoznaje:" -#. +#. #. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library -#. -#: src/Dialogs.vala:286 +#. +#: src/Dialogs.vala:300 msgid "" "Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into its " "Library:" @@ -3240,30 +3228,30 @@ msgstr "" "Fotografije/Video snimke nisu uvezene zato jer ih Shotwell nije mogao " "kopirati u fototeku:" -#: src/Dialogs.vala:290 +#: src/Dialogs.vala:304 #, c-format msgid "" "couldn’t copy %s\n" "\tto %s" msgstr "" -"Nemoguće je kopirati: %s\n" +"nemoguće je kopirati: %s\n" "\tu %s" -#. +#. #. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt -#. -#: src/Dialogs.vala:302 +#. +#: src/Dialogs.vala:316 msgid "Photos/Videos Not Imported Because Files Are Corrupt:" msgstr "Fotografije/Video snimke nisu uvezene zato jer su oštećene:" -#. +#. #. Photos/Videos Not Imported for Other Reasons -#. -#: src/Dialogs.vala:317 +#. +#: src/Dialogs.vala:331 msgid "Photos/Videos Not Imported for Other Reasons:" msgstr "Fotografije/Video snimke nisu uvezene zbog drugih razloga:" -#: src/Dialogs.vala:337 +#: src/Dialogs.vala:351 #, c-format msgid "1 duplicate photo was not imported:\n" msgid_plural "%d duplicate photos were not imported:\n" @@ -3271,7 +3259,7 @@ msgstr[0] "%d duplikat fotografije nije uvezen\n" msgstr[1] "%d duplikata fotografije nisu uvezena\n" msgstr[2] "%d duplikata fotografije nije uvezeno\n" -#: src/Dialogs.vala:340 +#: src/Dialogs.vala:354 #, c-format msgid "1 duplicate video was not imported:\n" msgid_plural "%d duplicate videos were not imported:\n" @@ -3279,7 +3267,7 @@ msgstr[0] "%d duplikat video snimke nije uvezen:\n" msgstr[1] "%d duplikata video snimaka nije uvezeno:\n" msgstr[2] "%d duplikata video snimaka nije uvezeno:\n" -#: src/Dialogs.vala:343 +#: src/Dialogs.vala:357 #, c-format msgid "1 duplicate photo/video was not imported:\n" msgid_plural "%d duplicate photos/videos were not imported:\n" @@ -3287,18 +3275,15 @@ msgstr[0] "%d duplikat fotografije/video snimke nije uvezen:\n" msgstr[1] "%d duplikata fotografija/video snimaka nije uvezeno:\n" msgstr[2] "%d duplikata fotografija/video snimaka nije uvezeno:\n" -#: src/Dialogs.vala:357 +#: src/Dialogs.vala:371 #, c-format msgid "1 photo failed to import due to a file or hardware error:\n" msgid_plural "%d photos failed to import due to a file or hardware error:\n" -msgstr[0] "" -"%d fotografija nije uvezena zbog greške na datoteci ili hardveru:\n" -msgstr[1] "" -"%d fotografije nisu uvezene zbog greške na datoteci ili hardveru:\n" -msgstr[2] "" -"%d fotografija nije uvezeno zbog greške na datoteci ili hardveru:\n" +msgstr[0] "%d fotografija nije uvezena zbog greške na datoteci ili hardveru:\n" +msgstr[1] "%d fotografije nisu uvezene zbog greške na datoteci ili hardveru:\n" +msgstr[2] "%d fotografija nije uvezeno zbog greške na datoteci ili hardveru:\n" -#: src/Dialogs.vala:360 +#: src/Dialogs.vala:374 #, c-format msgid "1 video failed to import due to a file or hardware error:\n" msgid_plural "%d videos failed to import due to a file or hardware error:\n" @@ -3309,7 +3294,7 @@ msgstr[1] "" msgstr[2] "" "%d video snimaka nije uvezeno zbog greške na datoteci ili hardveru:\n" -#: src/Dialogs.vala:363 +#: src/Dialogs.vala:377 #, c-format msgid "1 photo/video failed to import due to a file or hardware error:\n" msgid_plural "" @@ -3324,7 +3309,7 @@ msgstr[2] "" "%d fotografija/video snimaka nije uvezeno zbog greške na datoteci ili " "hardveru:\n" -#: src/Dialogs.vala:366 +#: src/Dialogs.vala:380 #, c-format msgid "1 file failed to import due to a file or hardware error:\n" msgid_plural "%d files failed to import due to a file or hardware error:\n" @@ -3332,21 +3317,18 @@ msgstr[0] "%d datoteka nije uvezena zbog greške na datoteci ili hardveru:\n" msgstr[1] "%d datoteke nisu uvezene zbog greške na datoteci ili hardveru:\n" msgstr[2] "%d datoteka nije uvezeno zbog greške na datoteci ili hardveru:\n" -#: src/Dialogs.vala:380 +#: src/Dialogs.vala:394 #, c-format msgid "" "1 photo failed to import because the photo library folder was not writable:\n" msgid_plural "" "%d photos failed to import because the photo library folder was not " "writable:\n" -msgstr[0] "" -"%d fotografija nije uvezena zato jer mapa fototeke nije zapisiva:\n" -msgstr[1] "" -"%d fotografije nisu uvezene zato jer mapa fototeke nije zapisiva:\n" -msgstr[2] "" -"%d fotografija nije uvezeno zato jer mapa fototeke nije zapisiva:\n" +msgstr[0] "%d fotografija nije uvezena zato jer mapa fototeke nije zapisiva:\n" +msgstr[1] "%d fotografije nisu uvezene zato jer mapa fototeke nije zapisiva:\n" +msgstr[2] "%d fotografija nije uvezeno zato jer mapa fototeke nije zapisiva:\n" -#: src/Dialogs.vala:383 +#: src/Dialogs.vala:397 #, c-format msgid "" "1 video failed to import because the photo library folder was not writable:\n" @@ -3360,7 +3342,7 @@ msgstr[1] "" msgstr[2] "" "%d video snimaka nije uvezeno zato jer mapa fototeke nije zapisiva:\n" -#: src/Dialogs.vala:386 +#: src/Dialogs.vala:400 #, c-format msgid "" "1 photo/video failed to import because the photo library folder was not " @@ -3378,7 +3360,7 @@ msgstr[2] "" "%d fotografija/video snimaka nije uvezeno zato jer mapa fototeke nije " "zapisiva:\n" -#: src/Dialogs.vala:389 +#: src/Dialogs.vala:403 #, c-format msgid "" "1 file failed to import because the photo library folder was not writable:\n" @@ -3389,7 +3371,7 @@ msgstr[0] "%d datoteka nije uvezena zato jer mapa fototeke nije zapisiva:\n" msgstr[1] "%d datoteke nisu uvezene zato jer mapa fototeke nije zapisiva:\n" msgstr[2] "%d datoteka nije uvezeno zato jer mapa fototeke nije zapisiva:\n" -#: src/Dialogs.vala:403 +#: src/Dialogs.vala:417 #, c-format msgid "1 photo failed to import due to a camera error:\n" msgid_plural "%d photos failed to import due to a camera error:\n" @@ -3397,7 +3379,7 @@ msgstr[0] "%d fotografija nije uvezena - greška na kameri:\n" msgstr[1] "%d fotografije nisu uvezene - greška na kameri:\n" msgstr[2] "%d fotografija nije uvezeno - greška na kameri:\n" -#: src/Dialogs.vala:406 +#: src/Dialogs.vala:420 #, c-format msgid "1 video failed to import due to a camera error:\n" msgid_plural "%d videos failed to import due to a camera error:\n" @@ -3405,16 +3387,15 @@ msgstr[0] "%d video snimka nije uvezena zbog greške na kameri:\n" msgstr[1] "%d video snimke nisu uvezene zbog greške na kameri:\n" msgstr[2] "%d video snimaka nije uvezeno zbog greške na kameri:\n" -#: src/Dialogs.vala:409 +#: src/Dialogs.vala:423 #, c-format msgid "1 photo/video failed to import due to a camera error:\n" msgid_plural "%d photos/videos failed to import due to a camera error:\n" msgstr[0] "%d fotografija/video snimka nije uvezena zbog greške na kameri:\n" msgstr[1] "%d fotografije/video snimke nisu uvezene zbog greške na kameri:\n" -msgstr[2] "" -"%d fotografija/video snimaka nije uvezeno zbog greške na kameri:\n" +msgstr[2] "%d fotografija/video snimaka nije uvezeno zbog greške na kameri:\n" -#: src/Dialogs.vala:412 +#: src/Dialogs.vala:426 #, c-format msgid "1 file failed to import due to a camera error:\n" msgid_plural "%d files failed to import due to a camera error:\n" @@ -3422,7 +3403,7 @@ msgstr[0] "%d datoteka nije uvezena zbog greške na kameri:\n" msgstr[1] "%d datoteke nisu uvezene zbog greške na kameri:\n" msgstr[2] "%d datoteka nije uvezeno zbog greške na kameri:\n" -#: src/Dialogs.vala:426 +#: src/Dialogs.vala:440 #, c-format msgid "1 photo failed to import because it was corrupt:\n" msgid_plural "%d photos failed to import because they were corrupt:\n" @@ -3430,7 +3411,7 @@ msgstr[0] "%d fotografija se nije uvezla zato jer je oštećena:\n" msgstr[1] "%d fotografije se nisu uvezle zato jer su oštećene:\n" msgstr[2] "%d fotografija se nije uvezlo zato jer su oštećene:\n" -#: src/Dialogs.vala:429 +#: src/Dialogs.vala:443 #, c-format msgid "1 video failed to import because it was corrupt:\n" msgid_plural "%d videos failed to import because they were corrupt:\n" @@ -3438,18 +3419,16 @@ msgstr[0] "%d video snimka se nije uvezla zato jer je oštećena:\n" msgstr[1] "%d video snimke se nisu uvezle zato jer su oštećene:\n" msgstr[2] "%d video snimaka se nije uvezlo zato jer su oštećene:\n" -#: src/Dialogs.vala:432 +#: src/Dialogs.vala:446 #, c-format msgid "1 photo/video failed to import because it was corrupt:\n" msgid_plural "%d photos/videos failed to import because they were corrupt:\n" -msgstr[0] "" -"%d fotografija/video snimka se nije uvezla zato jer je oštećena:\n" -msgstr[1] "" -"%d fotografije/video snimke se nisu uvezle zato jer su oštećene:\n" +msgstr[0] "%d fotografija/video snimka se nije uvezla zato jer je oštećena:\n" +msgstr[1] "%d fotografije/video snimke se nisu uvezle zato jer su oštećene:\n" msgstr[2] "" "%d fotografija/video snimaka se nije uvezlo zato jer su oštećene:\n" -#: src/Dialogs.vala:435 +#: src/Dialogs.vala:449 #, c-format msgid "1 file failed to import because it was corrupt:\n" msgid_plural "%d files failed to import because it was corrupt:\n" @@ -3461,7 +3440,7 @@ msgstr[2] "%d datoteka se nije uvezlo zato jer su oštećene:\n" #. standard container formats are supported, it's just that the streams in them #. might or might not be interpretable), so this message does not need to be #. media specific -#: src/Dialogs.vala:452 +#: src/Dialogs.vala:466 #, c-format msgid "1 unsupported photo skipped:\n" msgid_plural "%d unsupported photos skipped:\n" @@ -3471,7 +3450,7 @@ msgstr[2] "%d fotografija preskočeno, format nije podržan:\n" #. we have no notion of "non-video" video files right now in Shotwell, so this #. message doesn't need to be media specific -#: src/Dialogs.vala:467 +#: src/Dialogs.vala:481 #, c-format msgid "1 non-image file skipped.\n" msgid_plural "%d non-image files skipped.\n" @@ -3479,7 +3458,7 @@ msgstr[0] "Preskočena %d datoteka koja nije slika.\n" msgstr[1] "Preskočene %d datoteke koje nisu slike.\n" msgstr[2] "Preskočeno %d datoteka koje nisu slike.\n" -#: src/Dialogs.vala:478 +#: src/Dialogs.vala:492 #, c-format msgid "1 photo skipped due to user cancel:\n" msgid_plural "%d photos skipped due to user cancel:\n" @@ -3487,7 +3466,7 @@ msgstr[0] "%d preskočena fotografije uslijed korisnikovog prekida.\n" msgstr[1] "%d preskočene fotografije uslijed korisnikovog prekida.\n" msgstr[2] "%d preskočenih fotografija uslijed korisnikovog prekida.\n" -#: src/Dialogs.vala:481 +#: src/Dialogs.vala:495 #, c-format msgid "1 video skipped due to user cancel:\n" msgid_plural "%d videos skipped due to user cancel:\n" @@ -3495,7 +3474,7 @@ msgstr[0] "%d video snimka preskočena uslijed korisnikovog prekida.\n" msgstr[1] "%d video snimke preskočena uslijed korisnikovog prekida.\n" msgstr[2] "%d video snimaka preskočeno uslijed korisnikovog prekida.\n" -#: src/Dialogs.vala:484 +#: src/Dialogs.vala:498 #, c-format msgid "1 photo/video skipped due to user cancel:\n" msgid_plural "%d photos/videos skipped due to user cancel:\n" @@ -3506,7 +3485,7 @@ msgstr[1] "" msgstr[2] "" "%d fotografija/video snimaka preskočeno uslijed korisnikovog prekida.\n" -#: src/Dialogs.vala:487 +#: src/Dialogs.vala:501 #, c-format msgid "1 file skipped due to user cancel:\n" msgid_plural "%d file skipped due to user cancel:\n" @@ -3514,7 +3493,7 @@ msgstr[0] "%d datoteka preskočena uslijed korisnikova prekida:\n" msgstr[1] "%d datoteke preskočene uslijed korisnikova prekida:\n" msgstr[2] "%d datoteka preskočeno uslijed korisnikova prekida:\n" -#: src/Dialogs.vala:501 +#: src/Dialogs.vala:515 #, c-format msgid "1 photo successfully imported.\n" msgid_plural "%d photos successfully imported.\n" @@ -3522,7 +3501,7 @@ msgstr[0] "%d fotografija uspješno uvezena.\n" msgstr[1] "%d fotografije uspješno uvezeno.\n" msgstr[2] "%d fotografija uspješno uvezenih.\n" -#: src/Dialogs.vala:504 +#: src/Dialogs.vala:518 #, c-format msgid "1 video successfully imported.\n" msgid_plural "%d videos successfully imported.\n" @@ -3530,7 +3509,7 @@ msgstr[0] "%d video snimka uspješno uvezena.\n" msgstr[1] "%d video snimke uspješno uvezene.\n" msgstr[2] "%d video snimaka uspješno uvezeno\n" -#: src/Dialogs.vala:507 +#: src/Dialogs.vala:521 #, c-format msgid "1 photo/video successfully imported.\n" msgid_plural "%d photos/videos successfully imported.\n" @@ -3540,65 +3519,65 @@ msgstr[2] "%d fotografija/video snimaka uspješno uvezeno.\n" #. if no media items were imported at all (i.e. an empty directory attempted), need to at least #. report that nothing was imported -#: src/Dialogs.vala:523 +#: src/Dialogs.vala:537 msgid "No photos or videos imported.\n" msgstr "Niti jedna fotografija nije uvezena.\n" -#: src/Dialogs.vala:530 src/Dialogs.vala:549 +#: src/Dialogs.vala:544 src/Dialogs.vala:563 msgid "Import Complete" msgstr "Uvoz završen" -#: src/Dialogs.vala:650 src/Resources.vala:232 +#: src/Dialogs.vala:663 src/Resources.vala:202 msgid "Rename Event" msgstr "Preimenuj događaj" -#: src/Dialogs.vala:650 +#: src/Dialogs.vala:663 msgid "Name:" msgstr "Naziv:" #. Dialog title -#: src/Dialogs.vala:661 +#: src/Dialogs.vala:674 msgctxt "Dialog Title" msgid "Edit Title" msgstr "Uredi naslov" -#: src/Dialogs.vala:662 src/Properties.vala:343 +#: src/Dialogs.vala:675 src/Properties.vala:347 msgid "Title:" msgstr "Naslov:" #. Dialog title -#: src/Dialogs.vala:678 src/Resources.vala:308 +#: src/Dialogs.vala:691 src/Resources.vala:278 msgid "Edit Event Comment" msgstr "Uredi komentar događaja" -#: src/Dialogs.vala:679 +#: src/Dialogs.vala:692 msgid "Edit Photo/Video Comment" msgstr "Uredi komentar fotografije/video snimke" -#: src/Dialogs.vala:680 src/Properties.vala:631 +#: src/Dialogs.vala:693 src/Properties.vala:646 msgid "Comment:" msgstr "Komentar:" -#: src/Dialogs.vala:696 +#: src/Dialogs.vala:709 msgid "Remove and _Trash File" msgid_plural "Remove and _Trash Files" msgstr[0] "Ukloni i _premjesti u smeće datoteku" msgstr[1] "Ukloni i _premjesti u smeće datoteke" msgstr[2] "Ukloni i _premjesti u smeće datoteke" -#: src/Dialogs.vala:700 +#: src/Dialogs.vala:713 msgid "_Remove From Library" msgstr "_Ukloni iz fototeke" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edit?" msgstr "Poništi vanjsku promjenu?" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edits?" msgstr "Poništi vanjske promjene?" -#: src/Dialogs.vala:745 +#: src/Dialogs.vala:758 #, c-format msgid "This will destroy all changes made to the external file. Continue?" msgid_plural "" @@ -3610,35 +3589,35 @@ msgstr[1] "" msgstr[2] "" "Ovo će uništiti sve promjene učinjene na %d vanjskih datoteka. Nastavi?" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edit" msgstr "_Poništi vanjsku promjenu" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edits" msgstr "_Poništi vanjske promjene" -#: src/Dialogs.vala:770 +#: src/Dialogs.vala:783 #, c-format msgid "This will remove the photo from the library. Continue?" msgid_plural "This will remove %d photos from the library. Continue?" -msgstr[0] "Ovo će ukloniti %d fotografiju iz fototeke. Nastavi!" -msgstr[1] "Ovo će ukloniti %d fotografije iz fototeke. Nastavi!" -msgstr[2] "Ovo će ukloniti %d fotografija iz fototeke. Nastavi!" +msgstr[0] "Ovo će ukloniti %d fotografiju iz fototeke. Nastavi?" +msgstr[1] "Ovo će ukloniti %d fotografije iz fototeke. Nastavi?" +msgstr[2] "Ovo će ukloniti %d fotografija iz fototeke. Nastavi?" -#: src/Dialogs.vala:777 src/Resources.vala:174 +#: src/Dialogs.vala:790 src/Resources.vala:144 msgid "_Remove" msgstr "_Ukloni" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photo From Library" msgstr "Ukloni fotografiju iz fototeke" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photos From Library" msgstr "Ukloni fotografije iz fototeke" -#: src/Dialogs.vala:798 +#: src/Dialogs.vala:811 #, c-format msgid "" "\n" @@ -3661,13 +3640,13 @@ msgstr[2] "" "\n" "I %d preostalih." -#: src/Dialogs.vala:822 src/Dialogs.vala:849 +#: src/Dialogs.vala:835 src/Dialogs.vala:862 msgid "Tags (separated by commas):" msgstr "Oznake (odvojene zarezom):" #. This function is used to determine whether or not files should be copied or linked when imported. #. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. -#: src/Dialogs.vala:908 +#: src/Dialogs.vala:921 msgid "" "Shotwell can copy the photos into your library folder or it can import them " "without copying." @@ -3675,31 +3654,31 @@ msgstr "" "Shotwell može dodati fotografije u fototeku kopiranjem u mapu ili samo " "uvozom." -#: src/Dialogs.vala:913 +#: src/Dialogs.vala:926 msgid "Co_py Photos" msgstr "_Kopiraj fotografije" -#: src/Dialogs.vala:914 +#: src/Dialogs.vala:927 msgid "_Import in Place" msgstr "_Uvezi" -#: src/Dialogs.vala:915 +#: src/Dialogs.vala:928 msgid "Import to Library" msgstr "Uvezi u fototeku" -#: src/Dialogs.vala:925 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:938 src/PhotoPage.vala:2897 msgid "Remove From Library" msgstr "Ukloni iz fototeke" -#: src/Dialogs.vala:926 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:939 src/PhotoPage.vala:2897 msgid "Removing Photo From Library" msgstr "Uklanjanje fotografije iz fototeke" -#: src/Dialogs.vala:926 +#: src/Dialogs.vala:939 msgid "Removing Photos From Library" msgstr "Uklanjanje fotografija iz fototeke" -#: src/Dialogs.vala:940 +#: src/Dialogs.vala:953 #, c-format msgid "" "This will remove the photo/video from your Shotwell library. Would you also " @@ -3727,7 +3706,7 @@ msgstr[2] "" "\n" "Ova radnja se ne može poništiti." -#: src/Dialogs.vala:944 +#: src/Dialogs.vala:957 #, c-format msgid "" "This will remove the video from your Shotwell library. Would you also like " @@ -3755,7 +3734,7 @@ msgstr[2] "" "\n" "Ova radnja se ne može poništiti." -#: src/Dialogs.vala:948 +#: src/Dialogs.vala:961 #, c-format msgid "" "This will remove the photo from your Shotwell library. Would you also like " @@ -3783,7 +3762,7 @@ msgstr[2] "" "\n" "Ova radnja se ne može poništiti." -#: src/Dialogs.vala:980 +#: src/Dialogs.vala:993 #, c-format msgid "" "The photo or video cannot be moved to your desktop trash. Delete this file?" @@ -3800,7 +3779,7 @@ msgstr[2] "" "datoteke?" #. Alert the user that the files were not removed. -#: src/Dialogs.vala:997 +#: src/Dialogs.vala:1010 #, c-format msgid "The photo or video cannot be deleted." msgid_plural "%d photos/videos cannot be deleted." @@ -3840,7 +3819,7 @@ msgstr "" msgid "Unable open photo %s. Sorry." msgstr "Nemoguće otvaranje fotografije %s. Isprika." -#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:176 ui/direct.ui:8 +#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:146 ui/direct.ui:8 #: ui/textentrydialog.ui:33 msgid "_Save" msgstr "_Spremi" @@ -4012,35 +3991,35 @@ msgstr "Izvezi _metapodatke:" #. We're installed system-wide, so use the system help. #. We're being run from the build directory; we'll have to handle clicks to this #. link manually ourselves, due to a limitation of help: URIs. -#: src/dialogs/Preferences.vala:115 src/dialogs/Preferences.vala:119 +#: src/dialogs/Preferences.vala:108 src/dialogs/Preferences.vala:112 msgid "(Help)" msgstr "(Pomoć)" -#: src/dialogs/Preferences.vala:123 +#: src/dialogs/Preferences.vala:116 #, c-format msgid "Year%sMonth%sDay" msgstr "Godina%sMjesec%sDan" -#: src/dialogs/Preferences.vala:125 +#: src/dialogs/Preferences.vala:118 #, c-format msgid "Year%sMonth" msgstr "Godina%sMjesec" -#: src/dialogs/Preferences.vala:127 +#: src/dialogs/Preferences.vala:120 #, c-format msgid "Year%sMonth-Day" msgstr "Godina%sMjesec-Dan" -#: src/dialogs/Preferences.vala:129 +#: src/dialogs/Preferences.vala:122 msgid "Year-Month-Day" msgstr "Godina-Mjesec-Dan" -#: src/dialogs/Preferences.vala:130 src/editing_tools/EditingTools.vala:760 +#: src/dialogs/Preferences.vala:123 src/editing_tools/EditingTools.vala:760 msgid "Custom" msgstr "Prilagođena" #. Invalid pattern. -#: src/dialogs/Preferences.vala:369 +#: src/dialogs/Preferences.vala:351 msgid "Invalid pattern" msgstr "Neispravan uzorak" @@ -4102,7 +4081,7 @@ msgstr "Dovucite i ispustite fotografije u Shotwell prozor" #: src/dialogs/WelcomeDialog.vala:69 msgid "Connect a camera to your computer and import" -msgstr "Spojite kameru s računalom i pokrenite uvoz." +msgstr "Spojite kameru s računalom i pokrenite uvoz" #: src/dialogs/WelcomeDialog.vala:80 #, c-format @@ -4111,7 +4090,7 @@ msgstr "_Uvezi fotografije iz mape %s" #: src/dialogs/WelcomeDialog.vala:87 msgid "You can also import photos in any of these ways:" -msgstr "Isto tako možete uvesti fotografije na jedan od sljedećih načina:" +msgstr "Fotografije možete uvesti i jednim od sljedećih načina:" #: src/dialogs/WelcomeDialog.vala:98 msgid "_Don’t show this message again" @@ -4133,8 +4112,8 @@ msgstr "Postavi obrezivanje za ovu fotografiju" #: src/editing_tools/EditingTools.vala:659 msgid "Pivot the crop rectangle between portrait and landscape orientations" msgstr "" -"Okreni pravokutnik obrezivanja fotografije između vodoravne i horizontalne " -"orijentacije." +"Okreni pravokutnik obrezivanja fotografije između vodoravne i okomite " +"orijentacije" #: src/editing_tools/EditingTools.vala:732 msgid "Unconstrained" @@ -4153,7 +4132,7 @@ msgstr "Ekran" #: src/editing_tools/EditingTools.vala:749 #: src/editing_tools/EditingTools.vala:759 msgid "-" -msgstr "." +msgstr "-" #: src/editing_tools/EditingTools.vala:737 msgid "SD Video (4 ∶ 3)" @@ -4173,15 +4152,15 @@ msgstr "Bilješka (3 x 5 in.)" #: src/editing_tools/EditingTools.vala:742 src/Printing.vala:798 msgid "4 × 6 in." -msgstr "Indeks 4×6 vanjski" +msgstr "4×6 in." #: src/editing_tools/EditingTools.vala:743 src/Printing.vala:801 msgid "5 × 7 in." -msgstr "5×7" +msgstr "5×7 in." #: src/editing_tools/EditingTools.vala:744 src/Printing.vala:804 msgid "8 × 10 in." -msgstr "8×10 omotnica" +msgstr "8×10 in." #: src/editing_tools/EditingTools.vala:745 msgid "Letter (8.5 × 11 in.)" @@ -4235,7 +4214,7 @@ msgstr "30 x 40 cm" msgid "A3 (297 × 420 mm)" msgstr "A3 (297 x 420 mm)" -#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:398 +#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:402 msgid "Size:" msgstr "Veličina:" @@ -4253,8 +4232,8 @@ msgid "_Reset" msgstr "_Vrati izvorno" #. fit both on the top line, emit and move on -#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:439 -#: src/Properties.vala:443 src/Properties.vala:450 +#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:443 +#: src/Properties.vala:447 src/Properties.vala:454 msgid "Exposure:" msgstr "Ekspozicija:" @@ -4328,7 +4307,7 @@ msgstr "Proširenje kontrasta" msgid "Angle:" msgstr "Kut:" -#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:203 +#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:173 #: ui/direct.ui:144 ui/photo.ui:233 msgid "_Straighten" msgstr "_Ispravi" @@ -4341,7 +4320,7 @@ msgstr[0] "%d fotografija/video snimka" msgstr[1] "%d fotografije/video snimke" msgstr[2] "%d fotografija/video snimaka" -#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:358 +#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:362 #, c-format msgid "%d Video" msgid_plural "%d Videos" @@ -4349,7 +4328,7 @@ msgstr[0] "%d video snimka" msgstr[1] "%d video snimke" msgstr[2] "%d video snimaka" -#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:356 +#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:360 #, c-format msgid "%d Photo" msgid_plural "%d Photos" @@ -4429,6 +4408,69 @@ msgstr "Zamijeni _sve" msgid "Export" msgstr "Izvoz" +#: src/faces/FacesBranch.vala:89 src/Resources.vala:305 src/Resources.vala:306 +#: ui/faces.ui:403 +msgid "Faces" +msgstr "Lica" + +#: src/faces/FacesTool.vala:115 +msgid "Detect faces…" +msgstr "Otkrij lica…" + +#: src/faces/FacesTool.vala:140 +msgid "Detect faces on this photo" +msgstr "Otkrij lica na ovoj fotografiji" + +#: src/faces/FacesTool.vala:142 +msgid "Cancel face detection" +msgstr "Prekini prepoznavanje lica" + +#: src/faces/FacesTool.vala:146 +msgid "Close the Faces tool without saving changes" +msgstr "Zatvori alat lica bez spremanja promjena" + +#: src/faces/FacesTool.vala:153 src/faces/FacesTool.vala:185 +msgid "Click and drag to tag a face" +msgstr "Kliknite i povucite za označavanje lica" + +#: src/faces/FacesTool.vala:180 +#, c-format +msgid "Click to edit face %s" +msgstr "Klikni za uređivanje lica%s" + +#: src/faces/FacesTool.vala:189 +msgid "Stop dragging to add your face and name it." +msgstr "Prestanite povlačiti kako bi dodali lice i imenovali ga." + +#: src/faces/FacesTool.vala:193 +msgid "Type a name for this face, then press Enter" +msgstr "Upišite ime za ovo lice, zatim pritisnite Enter" + +#: src/faces/FacesTool.vala:197 +msgid "Move or modify the face shape or name and press Enter" +msgstr "" +"Premjestite, promijenite oblik lica ili promijenite naziv i pritisnite Enter" + +#: src/faces/FacesTool.vala:201 +msgid "Detecting faces" +msgstr "Otkrivanje lica" + +#: src/faces/FacesTool.vala:212 +msgid "If you don’t set the name of unknown faces they won’t be saved." +msgstr "Ako ne postavite ime nepozanto lice neće biti spremljeno." + +#: src/faces/FacesTool.vala:233 +msgid "Save changes and close the Faces tool" +msgstr "Spremi promjene i zatvori alat lica" + +#: src/faces/FacesTool.vala:235 +msgid "No changes to save" +msgstr "Nema promjena za spremanje" + +#: src/faces/FacesTool.vala:956 +msgid "Error trying to spawn face detection program:\n" +msgstr "Greška pri pokušaju obradi programa otkrivanja lica\n" + #: src/folders/FoldersBranch.vala:144 msgid "Folders" msgstr "Mape" @@ -4437,8 +4479,16 @@ msgstr "Mape" msgid "Browse the library’s folder structure" msgstr "Pregledajte strukturu mapa fototeke" -#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1098 -#: src/SearchFilter.vala:1099 +#: src/import-roll/ImportRollBranch.vala:43 +msgid "Imports" +msgstr "Uvoz" + +#: src/import-roll/ImportRollBranch.vala:43 +msgid "Browse the library’s import history" +msgstr "Pregledajte povijest uvoza fototeke" + +#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1124 +#: src/SearchFilter.vala:1125 msgid "Flagged" msgstr "Označeno" @@ -4460,7 +4510,7 @@ msgid "Last Import" msgstr "Posljednji uvoz" #: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 -#: ui/preferences_dialog.ui:512 +#: ui/preferences_dialog.ui:465 msgid "Library" msgstr "Fototeka" @@ -4468,66 +4518,66 @@ msgstr "Fototeka" msgid "Organize and browse your photos" msgstr "Organizirajte i pregledajte svoje fotografije" -#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1079 +#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1105 msgid "Photos" msgstr "Fotografije" -#: src/library/LibraryWindow.vala:508 +#: src/library/LibraryWindow.vala:526 msgid "Import From Folder" msgstr "Uvozi iz mape" -#: src/library/LibraryWindow.vala:515 +#: src/library/LibraryWindow.vala:533 msgid "Recurse Into Subfolders" msgstr "Vraćaj se u podmape" -#: src/library/LibraryWindow.vala:583 ui/trash.ui:288 +#: src/library/LibraryWindow.vala:601 ui/trash.ui:288 msgid "Empty Trash" msgstr "Isprazni smeće" -#: src/library/LibraryWindow.vala:583 +#: src/library/LibraryWindow.vala:601 msgid "Emptying Trash…" msgstr "Pražnjenje smeća…" -#: src/library/LibraryWindow.vala:779 +#: src/library/LibraryWindow.vala:780 #, c-format msgid "" "Shotwell is configured to import photos to your home directory.\n" -"We recommend changing this in Edit %s " -"Preferences.\n" +"We recommend changing this in Edit %s Preferences.\n" "Do you want to continue importing photos?" msgstr "" "Shotwell je podešen za uvoz fotografija u vašu osobnu mapu.\n" -"Preporučujemo promjenu ovoga u Uredi %s " -"Osobitosti.\n" +"Preporučujemo promjenu ovoga u Uredi %s Osobitosti.\n" "Želite li nastaviti s uvozom fotografija?" -#: src/library/LibraryWindow.vala:782 ui/preferences_dialog.ui:142 +#: src/library/LibraryWindow.vala:783 ui/preferences_dialog.ui:86 msgid "Library Location" msgstr "Lokacija fototeke" #. TODO: Specify which directory/file. -#: src/library/LibraryWindow.vala:795 +#: src/library/LibraryWindow.vala:796 msgid "Photos cannot be imported from this directory." msgstr "Fotografije se ne mogu uvesti iz ove mape." -#: src/library/LibraryWindow.vala:1075 +#: src/library/LibraryWindow.vala:1076 #, c-format msgid "%s (%d%%)" msgstr "%s (%d%%)" -#: src/library/LibraryWindow.vala:1119 src/library/LibraryWindow.vala:1130 +#: src/library/LibraryWindow.vala:1120 src/library/LibraryWindow.vala:1131 msgid "Updating library…" msgstr "Nadopunjavanje fototeke…" -#: src/library/LibraryWindow.vala:1136 +#: src/library/LibraryWindow.vala:1137 msgid "Preparing to auto-import photos…" msgstr "Priprema za automatski uvoz fotografija…" -#: src/library/LibraryWindow.vala:1141 +#: src/library/LibraryWindow.vala:1142 msgid "Auto-importing photos…" msgstr "Automatski uvoz fotografija…" -#: src/library/LibraryWindow.vala:1149 +#: src/library/LibraryWindow.vala:1150 msgid "Writing metadata to files…" msgstr "Zapisujem metapodatke u datoteke…" @@ -4547,7 +4597,7 @@ msgstr "Smeće" msgid "Trash is empty" msgstr "Smeće je prazno" -#: src/library/TrashPage.vala:110 +#: src/library/TrashPage.vala:110 ui/faces.ui:469 msgid "Delete" msgstr "Obriši" @@ -4573,8 +4623,9 @@ msgid "" "%d) to %s (schema %d). For more information please check the Shotwell Wiki " "at %s" msgstr "" -"Shotwell nije uspio nadograditi vašu fototeku fotografija s inačice %s ( " -"shema %d) na %s ( shema %d). Za više informacija pogledajte Shotwell Wiki %s" +"Shotwell nije uspio nadograditi vašu fototeku fotografija s inačice %s " +"( shema %d) na %s ( shema %d). Za više informacija pogledajte Shotwell Wiki " +"%s" #: src/main.vala:65 #, c-format @@ -4593,43 +4644,42 @@ msgstr "" msgid "Unknown error attempting to verify Shotwell’s database: %s" msgstr "Nepoznata greška pri provjeri Shotwellove baze podataka: %s" -#: src/main.vala:104 +#: src/main.vala:108 msgid "Loading Shotwell" msgstr "Učitavanje Shotwella" -#: src/main.vala:303 +#: src/main.vala:320 msgid "Path to Shotwell’s private data" msgstr "Putanja do Shotwellovih privatnih podataka" -#: src/main.vala:303 +#: src/main.vala:320 msgid "DIRECTORY" msgstr "MAPA" -#: src/main.vala:307 +#: src/main.vala:324 msgid "Do not monitor library directory at runtime for changes" msgstr "Ne nadziri mapu fototeke u vremenu izvršavanja promjena" -#: src/main.vala:311 +#: src/main.vala:328 msgid "Don’t display startup progress meter" msgstr "Ne prikazuj prikaz napretka pokretanja" -#: src/main.vala:315 +#: src/main.vala:332 msgid "Show the application’s version" msgstr "Prikaži inačicu aplikacije" -#: src/main.vala:319 +#: src/main.vala:336 msgid "Start the application in fullscreen mode" msgstr "Pokreni aplikaciju u cjelozaslonskom prikazu" #. init GTK (valac has already called g_threads_init()) -#: src/main.vala:356 +#: src/main.vala:373 msgid "[FILE]" msgstr "[DATOTEKA]" -#: src/main.vala:360 +#: src/main.vala:380 #, c-format -msgid "" -"Run “%s --help” to see a full list of available command line options.\n" +msgid "Run “%s --help” to see a full list of available command line options.\n" msgstr "" "Pokrenite '%s --help' kako bi vidjeli popis svih dostupnih mogućnosti " "naredbenog redka.\n" @@ -4639,11 +4689,11 @@ msgstr "" msgid "Unable to process monitoring updates: %s" msgstr "Nemoguće obraditi nadopune nadzora: %s" -#: src/MediaPage.vala:158 +#: src/MediaPage.vala:76 msgid "Adjust the size of the thumbnails" msgstr "Prilagodi veličinu minijatura" -#: src/MediaPage.vala:502 +#: src/MediaPage.vala:419 #, c-format msgid "" "Shotwell was unable to play the selected video:\n" @@ -4652,36 +4702,36 @@ msgstr "" "Shotwell nije uspio prikazati video snimku:\n" " %s" -#: src/Page.vala:1327 +#: src/Page.vala:1324 msgid "No photos/videos" msgstr "Nema fotografija/video snimaka" -#: src/Page.vala:1331 +#: src/Page.vala:1328 msgid "No photos/videos found which match the current filter" msgstr "" -"Nema pronađenih fotografija/video snimaka koje se poduraju s trenutnim " -"filtrom." +"Nema pronađenih fotografija/video snimaka koje se podudaraju s trenutnim " +"filtrom" -#: src/Page.vala:2644 +#: src/Page.vala:2641 msgid "Photos cannot be exported to this directory." msgstr "Fotografije ne mogu biti izvezene u ovu mapu." #. previous button -#: src/PhotoPage.vala:538 +#: src/PhotoPage.vala:550 msgid "Previous photo" msgstr "Prijašnja fotografija" #. next button -#: src/PhotoPage.vala:544 +#: src/PhotoPage.vala:556 msgid "Next photo" msgstr "Sljedeća fotografija" -#: src/PhotoPage.vala:1850 +#: src/PhotoPage.vala:1862 #, c-format msgid "Photo source file missing: %s" msgstr "Nedostaje izvorišna datoteka: %s" -#: src/PhotoPage.vala:3018 +#: src/PhotoPage.vala:3041 #, c-format msgid "Unable to export %s: %s" msgstr "Nemoguće izvesti %s: %s" @@ -4690,6 +4740,10 @@ msgstr "Nemoguće izvesti %s: %s" msgid "BMP" msgstr "BMP" +#: src/photos/GifSupport.vala:32 +msgid "GIF" +msgstr "GIF" + #: src/photos/JfifSupport.vala:84 msgid "JPEG" msgstr "JPEG" @@ -4777,19 +4831,19 @@ msgstr "" "\n" "%s" -#: src/Properties.vala:87 +#: src/Properties.vala:98 msgid "Today" msgstr "Danas" -#: src/Properties.vala:89 +#: src/Properties.vala:100 msgid "Yesterday" msgstr "Jučer" -#: src/Properties.vala:346 +#: src/Properties.vala:350 msgid "Items:" msgstr "Stavke:" -#: src/Properties.vala:349 +#: src/Properties.vala:353 #, c-format msgid "%d Event" msgid_plural "%d Events" @@ -4798,107 +4852,103 @@ msgstr[1] "%d događaja" msgstr[2] "%d događaja" #. display only one date if start and end are the same -#: src/Properties.vala:380 +#: src/Properties.vala:384 msgid "Date:" msgstr "Datum:" #. display only one time if start and end are the same -#: src/Properties.vala:384 +#: src/Properties.vala:388 msgid "Time:" msgstr "Vrijeme:" #. display time range #. display date range -#: src/Properties.vala:387 src/Properties.vala:392 +#: src/Properties.vala:391 src/Properties.vala:396 msgid "From:" msgstr "Od:" -#: src/Properties.vala:388 src/Properties.vala:393 +#: src/Properties.vala:392 src/Properties.vala:397 msgid "To:" msgstr "Do:" -#: src/Properties.vala:407 +#: src/Properties.vala:411 msgid "Duration:" msgstr "Trajanje:" -#: src/Properties.vala:407 +#: src/Properties.vala:411 #, c-format msgid "%.1f seconds" msgstr "%.1f sekunda" -#: src/Properties.vala:411 +#: src/Properties.vala:415 msgid "Developer:" msgstr "Razvijatelj:" #. nothing special to be done for now for Events -#: src/Properties.vala:586 +#: src/Properties.vala:593 msgid "Location:" msgstr "Lokacija:" -#: src/Properties.vala:589 +#: src/Properties.vala:596 msgid "File size:" msgstr "Veličina datoteke:" -#: src/Properties.vala:593 +#: src/Properties.vala:600 msgid "Current Development:" msgstr "Trenutni razvoj:" -#: src/Properties.vala:595 +#: src/Properties.vala:602 msgid "Original dimensions:" msgstr "Izvorne dimenzije:" -#: src/Properties.vala:598 +#: src/Properties.vala:605 msgid "Camera make:" msgstr "Proizvođač kamere:" -#: src/Properties.vala:601 +#: src/Properties.vala:608 msgid "Camera model:" msgstr "Model kamere:" -#: src/Properties.vala:604 +#: src/Properties.vala:611 msgid "Flash:" msgstr "Bljeskalica:" -#: src/Properties.vala:606 +#: src/Properties.vala:613 msgid "Focal length:" msgstr "Žarišna duljina:" -#: src/Properties.vala:609 +#: src/Properties.vala:616 msgid "Exposure date:" msgstr "Datum ekspozicije:" -#: src/Properties.vala:612 +#: src/Properties.vala:619 msgid "Exposure time:" msgstr "Vrijeme ekspozicije:" -#: src/Properties.vala:615 +#: src/Properties.vala:622 msgid "Exposure bias:" msgstr "Kompenzacija ekspozicije:" -#: src/Properties.vala:617 +#: src/Properties.vala:632 msgid "GPS latitude:" msgstr "GPS širina:" -#: src/Properties.vala:620 +#: src/Properties.vala:635 msgid "GPS longitude:" msgstr "GPS dužina:" -#: src/Properties.vala:623 +#: src/Properties.vala:638 msgid "Artist:" msgstr "Umjetnik:" -#: src/Properties.vala:625 +#: src/Properties.vala:640 msgid "Copyright:" msgstr "Autorsko pravo:" -#: src/Properties.vala:627 +#: src/Properties.vala:642 msgid "Software:" msgstr "Softver:" -#: src/Properties.vala:642 -msgid "Extended Information" -msgstr "Dodatne informacije" - #: src/publishing/PublishingPluginHost.vala:11 msgid "Preparing for upload" msgstr "Pripremanje za slanje" @@ -4993,580 +5043,605 @@ msgstr "" msgid "Publishing" msgstr "Objavljivanje" -#: src/Resources.vala:141 src/Resources.vala:146 ui/collection.ui:151 +#: src/Resources.vala:111 src/Resources.vala:116 ui/collection.ui:151 msgid "Rotate" msgstr "Zakreni" -#: src/Resources.vala:142 +#: src/Resources.vala:112 msgid "Rotate Right" msgstr "Zakreni desno" -#: src/Resources.vala:143 ui/collection.ui:148 +#: src/Resources.vala:113 ui/collection.ui:148 msgid "Rotate the photos right (press Ctrl to rotate left)" msgstr "Zakreni fotografije udesno ( pritisni Ctrl za zakretanje ulijevo)" -#: src/Resources.vala:147 +#: src/Resources.vala:117 msgid "Rotate Left" msgstr "Zakreni lijevo" -#: src/Resources.vala:148 +#: src/Resources.vala:118 msgid "Rotate the photos left" msgstr "Zakreni fotografije ulijevo" -#: src/Resources.vala:151 +#: src/Resources.vala:121 msgid "Flip Horizontally" msgstr "Okreni vodoravno" -#: src/Resources.vala:154 +#: src/Resources.vala:124 msgid "Flip Vertically" msgstr "Okreni okomito" -#: src/Resources.vala:156 ui/direct.ui:192 ui/events_directory.ui:168 -#: ui/event.ui:438 ui/import_queue.ui:83 ui/import.ui:201 +#: src/Resources.vala:126 ui/direct.ui:192 ui/events_directory.ui:168 +#: ui/event.ui:438 ui/faces.ui:448 ui/import_queue.ui:83 ui/import.ui:201 #: ui/manifest_widget.ui:35 ui/media.ui:421 ui/offline.ui:198 ui/photo.ui:405 #: ui/tags.ui:440 ui/trash.ui:207 msgid "_About" msgstr "_O programu" -#: src/Resources.vala:157 +#: src/Resources.vala:127 msgid "_Apply" msgstr "_Primijeni" -#: src/Resources.vala:160 ui/direct.ui:44 ui/events_directory.ui:32 -#: ui/event.ui:47 ui/import.ui:40 ui/media.ui:47 ui/offline.ui:32 -#: ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 +#: src/Resources.vala:130 ui/direct.ui:44 ui/events_directory.ui:32 +#: ui/event.ui:47 ui/faces.ui:47 ui/import.ui:40 ui/media.ui:47 +#: ui/offline.ui:32 ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 msgid "_Edit" msgstr "_Uredi" -#: src/Resources.vala:161 +#: src/Resources.vala:131 msgid "_Forward" msgstr "_Naprijed" -#: src/Resources.vala:162 ui/direct.ui:62 ui/events_directory.ui:125 +#: src/Resources.vala:132 ui/direct.ui:62 ui/events_directory.ui:125 #: ui/photo.ui:173 msgid "Fulls_creen" msgstr "Cjelozaslonski _prikaz" -#: src/Resources.vala:163 ui/direct.ui:174 ui/direct.ui:177 +#: src/Resources.vala:133 ui/direct.ui:174 ui/direct.ui:177 #: ui/events_directory.ui:150 ui/events_directory.ui:153 ui/event.ui:420 -#: ui/event.ui:423 ui/import_queue.ui:65 ui/import_queue.ui:68 ui/import.ui:183 -#: ui/import.ui:186 ui/media.ui:403 ui/media.ui:406 ui/offline.ui:180 -#: ui/offline.ui:183 ui/photo.ui:387 ui/photo.ui:390 ui/tags.ui:422 -#: ui/tags.ui:425 ui/trash.ui:189 ui/trash.ui:192 +#: ui/event.ui:423 ui/faces.ui:430 ui/faces.ui:433 ui/import_queue.ui:65 +#: ui/import_queue.ui:68 ui/import.ui:183 ui/import.ui:186 ui/media.ui:403 +#: ui/media.ui:406 ui/offline.ui:180 ui/offline.ui:183 ui/photo.ui:387 +#: ui/photo.ui:390 ui/tags.ui:422 ui/tags.ui:425 ui/trash.ui:189 +#: ui/trash.ui:192 msgid "_Help" msgstr "_Pomoć" -#: src/Resources.vala:164 +#: src/Resources.vala:134 msgid "Leave _Fullscreen" msgstr "Napusti _cjelozaslonski prikaz" -#: src/Resources.vala:165 src/Resources.vala:364 ui/tags.ui:450 +#: src/Resources.vala:135 src/Resources.vala:343 ui/tags.ui:450 msgid "_New" msgstr "_Novo" -#: src/Resources.vala:166 +#: src/Resources.vala:136 msgid "_Next" msgstr "_Sljedeće" -#: src/Resources.vala:169 src/Resources.vala:318 ui/events_directory.ui:65 -#: ui/event.ui:93 ui/import.ui:68 ui/media.ui:93 ui/offline.ui:72 -#: ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 +#: src/Resources.vala:139 src/Resources.vala:288 ui/events_directory.ui:65 +#: ui/event.ui:93 ui/faces.ui:93 ui/import.ui:68 ui/media.ui:93 +#: ui/offline.ui:72 ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 msgid "_Preferences" msgstr "_Osobitosti" -#: src/Resources.vala:170 +#: src/Resources.vala:140 msgid "_Previous" msgstr "_Prijašnje" -#: src/Resources.vala:172 ui/direct.ui:37 ui/events_directory.ui:25 -#: ui/event.ui:40 ui/import_queue.ui:31 ui/import.ui:33 ui/media.ui:40 -#: ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 +#: src/Resources.vala:142 ui/direct.ui:37 ui/events_directory.ui:25 +#: ui/event.ui:40 ui/faces.ui:40 ui/import_queue.ui:31 ui/import.ui:33 +#: ui/media.ui:40 ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 msgid "_Quit" msgstr "_Zatvori" -#: src/Resources.vala:173 +#: src/Resources.vala:143 msgid "_Refresh" msgstr "_Osvježi" -#: src/Resources.vala:175 +#: src/Resources.vala:145 msgid "_Revert" msgstr "_Vrati" -#: src/Resources.vala:177 +#: src/Resources.vala:147 msgid "Save _As" msgstr "Spremi _kao" -#: src/Resources.vala:178 +#: src/Resources.vala:148 msgid "Sort _Ascending" msgstr "Poredaj _rastući" -#: src/Resources.vala:179 +#: src/Resources.vala:149 msgid "Sort _Descending" msgstr "Poredaj _padajući" -#: src/Resources.vala:180 +#: src/Resources.vala:150 msgid "_Stop" msgstr "_Zaustavi" -#: src/Resources.vala:181 +#: src/Resources.vala:151 msgid "_Undelete" msgstr "_Vrati obrisano" -#: src/Resources.vala:182 +#: src/Resources.vala:152 msgid "_Normal Size" msgstr "_Normalna veličina" -#: src/Resources.vala:183 +#: src/Resources.vala:153 msgid "Best _Fit" msgstr "_Najbolja prilagodba" -#: src/Resources.vala:184 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 -#: ui/photo.ui:144 ui/tags.ui:260 +#: src/Resources.vala:154 ui/direct.ui:69 ui/event.ui:260 ui/faces.ui:260 +#: ui/media.ui:260 ui/photo.ui:144 ui/tags.ui:260 msgid "Zoom _In" msgstr "_Povećaj" -#: src/Resources.vala:185 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 -#: ui/photo.ui:149 ui/tags.ui:265 +#: src/Resources.vala:155 ui/direct.ui:74 ui/event.ui:265 ui/faces.ui:265 +#: ui/media.ui:265 ui/photo.ui:149 ui/tags.ui:265 msgid "Zoom _Out" msgstr "Smanji" -#: src/Resources.vala:188 ui/collection.ui:167 +#: src/Resources.vala:158 ui/collection.ui:167 msgid "Enhance" msgstr "Poboljšaj" -#: src/Resources.vala:189 ui/collection.ui:164 +#: src/Resources.vala:159 ui/collection.ui:164 msgid "Automatically improve the photo’s appearance" msgstr "Automatski poboljšaj izgled fotografije" -#: src/Resources.vala:192 +#: src/Resources.vala:162 msgid "Copy Color Adjustments" msgstr "Kopiraj prilagodbe boje" -#: src/Resources.vala:193 +#: src/Resources.vala:163 msgid "Copy the color adjustments applied to the photo" msgstr "Kopiraj prilagodbe boje primijenjene na fotografiju" -#: src/Resources.vala:196 +#: src/Resources.vala:166 msgid "Paste Color Adjustments" msgstr "Zalijepi prilagodbe boje" -#: src/Resources.vala:197 +#: src/Resources.vala:167 msgid "Apply copied color adjustments to the selected photos" msgstr "Primijeni kopirane prilagodbe boje na odabrane fotografije" -#: src/Resources.vala:199 ui/direct.ui:139 ui/photo.ui:228 +#: src/Resources.vala:169 ui/direct.ui:139 ui/photo.ui:228 msgid "_Crop" msgstr "_Obreži" -#: src/Resources.vala:200 +#: src/Resources.vala:170 msgid "Crop" msgstr "Obreži" -#: src/Resources.vala:201 +#: src/Resources.vala:171 msgid "Crop the photo’s size" msgstr "Obreži fotografiju na odabranu veličinu" -#: src/Resources.vala:204 +#: src/Resources.vala:174 msgid "Straighten" msgstr "Ispravi" -#: src/Resources.vala:205 +#: src/Resources.vala:175 msgid "Straighten the photo" msgstr "Ispravi fotografiju" -#: src/Resources.vala:207 ui/direct.ui:149 ui/photo.ui:238 +#: src/Resources.vala:177 ui/direct.ui:149 ui/photo.ui:238 msgid "_Red-eye" msgstr "_Crvene oči" -#: src/Resources.vala:208 +#: src/Resources.vala:178 msgid "Red-eye" msgstr "Crvene oči" -#: src/Resources.vala:209 +#: src/Resources.vala:179 msgid "Reduce or eliminate any red-eye effects in the photo" msgstr "Uklanjanje ili smanjenje efekta crvenih očiju na fotografiji" -#: src/Resources.vala:211 ui/direct.ui:154 ui/photo.ui:243 +#: src/Resources.vala:181 ui/direct.ui:154 ui/photo.ui:243 msgid "_Adjust" msgstr "_Prilagodi" -#: src/Resources.vala:212 +#: src/Resources.vala:182 msgid "Adjust" msgstr "Prilagodi" -#: src/Resources.vala:213 +#: src/Resources.vala:183 msgid "Adjust the photo’s color and tone" msgstr "Prilagodi boju i tonalitet fotografije" -#: src/Resources.vala:216 +#: src/Resources.vala:186 msgid "Revert to Original" msgstr "Vrati na izvorno" -#: src/Resources.vala:218 +#: src/Resources.vala:188 msgid "Revert External E_dits" msgstr "Poništi _vanjska uređivanja fotografije" -#: src/Resources.vala:219 +#: src/Resources.vala:189 msgid "Revert to the master photo" msgstr "Vrati na izvornu fotografiju" -#: src/Resources.vala:222 +#: src/Resources.vala:192 msgid "Set selected image to be the new desktop background" msgstr "Postavi odabranu sliku kao pozadinu radne površine" -#: src/Resources.vala:223 +#: src/Resources.vala:193 msgid "Set as _Desktop Slideshow…" msgstr "Postavi kao prezentaciju _radne površine…" -#: src/Resources.vala:225 ui/direct.ui:47 ui/events_directory.ui:35 -#: ui/event.ui:50 ui/import.ui:43 ui/media.ui:50 ui/offline.ui:35 -#: ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 +#: src/Resources.vala:195 ui/direct.ui:47 ui/events_directory.ui:35 +#: ui/event.ui:50 ui/faces.ui:50 ui/import.ui:43 ui/media.ui:50 +#: ui/offline.ui:35 ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 msgid "_Undo" msgstr "_Vrati" -#: src/Resources.vala:226 +#: src/Resources.vala:196 msgid "Undo" msgstr "Vrati" -#: src/Resources.vala:228 ui/direct.ui:52 ui/events_directory.ui:40 -#: ui/event.ui:55 ui/import.ui:48 ui/media.ui:55 ui/offline.ui:40 -#: ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 +#: src/Resources.vala:198 ui/direct.ui:52 ui/events_directory.ui:40 +#: ui/event.ui:55 ui/faces.ui:55 ui/import.ui:48 ui/media.ui:55 +#: ui/offline.ui:40 ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 msgid "_Redo" msgstr "_Ponovi" -#: src/Resources.vala:229 +#: src/Resources.vala:199 msgid "Redo" msgstr "Ponovi" -#: src/Resources.vala:231 ui/events_directory.ui:139 ui/events_directory.ui:181 +#: src/Resources.vala:201 ui/events_directory.ui:139 ui/events_directory.ui:181 #: ui/event.ui:393 ui/event.ui:588 msgid "Re_name Event…" msgstr "P_reimenuj događaj…" -#: src/Resources.vala:234 ui/event.ui:373 ui/event.ui:580 +#: src/Resources.vala:204 ui/event.ui:373 ui/event.ui:580 msgid "Make _Key Photo for Event" msgstr "Napravi _glavnu fotografiju za događaj" -#: src/Resources.vala:235 +#: src/Resources.vala:205 msgid "Make Key Photo for Event" msgstr "Napravi glavnu fotografiju za događaj" -#: src/Resources.vala:237 ui/event.ui:382 ui/media.ui:376 ui/tags.ui:376 +#: src/Resources.vala:207 ui/event.ui:382 ui/faces.ui:376 ui/media.ui:376 +#: ui/tags.ui:376 msgid "_New Event" msgstr "_Novi događaj" -#: src/Resources.vala:238 +#: src/Resources.vala:208 msgid "New Event" msgstr "Novi događaj" -#: src/Resources.vala:240 +#: src/Resources.vala:210 msgid "Move Photos" msgstr "Premjesti fotografije" -#: src/Resources.vala:241 +#: src/Resources.vala:211 msgid "Move photos to an event" msgstr "Premjesti fotografije u događaj" -#: src/Resources.vala:243 ui/events_directory.ui:135 ui/events_directory.ui:177 +#: src/Resources.vala:213 ui/events_directory.ui:135 ui/events_directory.ui:177 msgid "_Merge Events" msgstr "_Spoji događaje" -#: src/Resources.vala:244 +#: src/Resources.vala:214 msgid "Merge" msgstr "Spoji" -#: src/Resources.vala:245 +#: src/Resources.vala:215 msgid "Combine events into a single event" msgstr "Kombiniraj više događaja u jedan događaj" -#: src/Resources.vala:247 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 -#: ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 ui/tags.ui:286 +#: src/Resources.vala:217 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 +#: ui/faces.ui:286 ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 +#: ui/tags.ui:286 msgid "_Set Rating" msgstr "_Postavi ocjenu" -#: src/Resources.vala:248 +#: src/Resources.vala:218 msgid "Set Rating" msgstr "Postavi ocijenu" -#: src/Resources.vala:249 +#: src/Resources.vala:219 msgid "Change the rating of your photo" msgstr "Promijeni ocjenu fotografije" -#: src/Resources.vala:251 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 -#: ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 ui/tags.ui:326 +#: src/Resources.vala:221 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 +#: ui/faces.ui:326 ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 +#: ui/tags.ui:326 msgid "_Increase" msgstr "_Povećaj" -#: src/Resources.vala:252 +#: src/Resources.vala:222 msgid "Increase Rating" msgstr "Povećaj ocjenu" -#: src/Resources.vala:254 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 -#: ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 ui/tags.ui:331 +#: src/Resources.vala:224 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 +#: ui/faces.ui:331 ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 +#: ui/tags.ui:331 msgid "_Decrease" msgstr "_Smanji" -#: src/Resources.vala:255 +#: src/Resources.vala:225 msgid "Decrease Rating" msgstr "Smanji ocjenu" -#: src/Resources.vala:257 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 -#: ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 ui/tags.ui:314 +#: src/Resources.vala:227 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 +#: ui/faces.ui:314 ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 +#: ui/tags.ui:314 msgid "_Unrated" msgstr "_Neocijenjeno" -#: src/Resources.vala:258 +#: src/Resources.vala:228 msgid "Unrated" msgstr "Neocjenjeno" -#: src/Resources.vala:259 +#: src/Resources.vala:229 msgid "Rate Unrated" msgstr "Ocijeni neocjenjeno" -#: src/Resources.vala:260 +#: src/Resources.vala:230 msgid "Setting as unrated" msgstr "Postavljanje kao neocjenjeno" -#: src/Resources.vala:261 +#: src/Resources.vala:231 msgid "Remove any ratings" msgstr "Ukloni sve ocjene" -#: src/Resources.vala:263 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 -#: ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 ui/tags.ui:319 +#: src/Resources.vala:233 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 +#: ui/faces.ui:319 ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 +#: ui/tags.ui:319 msgid "_Rejected" msgstr "_Odbačene" -#: src/Resources.vala:264 +#: src/Resources.vala:234 msgid "Rejected" msgstr "Odbačene" -#: src/Resources.vala:265 +#: src/Resources.vala:235 msgid "Rate Rejected" msgstr "Ocjeni odbačene" -#: src/Resources.vala:266 +#: src/Resources.vala:236 msgid "Setting as rejected" msgstr "Postavljanje kao odbačeno" -#: src/Resources.vala:267 +#: src/Resources.vala:237 msgid "Set rating to rejected" msgstr "Postavi ocjenu kao odbačenu" -#: src/Resources.vala:269 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 -#: ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 ui/trash.ui:162 +#: src/Resources.vala:239 ui/event.ui:196 ui/faces.ui:196 ui/import.ui:156 +#: ui/media.ui:196 ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 +#: ui/trash.ui:162 msgid "Rejected _Only" msgstr "Samo _odbačene" -#: src/Resources.vala:270 +#: src/Resources.vala:240 msgid "Rejected Only" msgstr "Samo odbačene" -#: src/Resources.vala:271 +#: src/Resources.vala:241 msgid "Show only rejected photos" msgstr "Prikaži samo odbačene fotografije" -#: src/Resources.vala:273 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 -#: ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 ui/trash.ui:156 +#: src/Resources.vala:243 ui/event.ui:190 ui/faces.ui:190 ui/import.ui:150 +#: ui/media.ui:190 ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 +#: ui/trash.ui:156 msgid "All + _Rejected" msgstr "Sve + _Odbačene" -#: src/Resources.vala:274 +#: src/Resources.vala:244 msgctxt "Tooltip" msgid "Show all photos, including rejected" msgstr "Prikaži sve fotografije, zajedno s odbačenima" -#: src/Resources.vala:276 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 -#: ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 ui/trash.ui:150 +#: src/Resources.vala:246 ui/event.ui:184 ui/faces.ui:184 ui/import.ui:144 +#: ui/media.ui:184 ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 +#: ui/trash.ui:150 msgid "_All Photos" msgstr "_Sve fotografije" #. Button tooltip -#: src/Resources.vala:278 +#: src/Resources.vala:248 msgid "Show all photos" msgstr "Prikaži sve fotografije" -#: src/Resources.vala:280 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 -#: ui/tags.ui:144 +#: src/Resources.vala:250 ui/event.ui:144 ui/faces.ui:144 ui/media.ui:144 +#: ui/photo.ui:120 ui/tags.ui:144 msgid "_Ratings" msgstr "_Ocjene" -#: src/Resources.vala:281 +#: src/Resources.vala:251 msgid "Display each photo’s rating" msgstr "Prikaži ocjene svake fotografije" -#: src/Resources.vala:283 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 -#: ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 +#: src/Resources.vala:253 ui/event.ui:151 ui/faces.ui:151 ui/import.ui:111 +#: ui/media.ui:151 ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 msgid "_Filter Photos" msgstr "_Filtriraj fotografije" -#: src/Resources.vala:284 +#: src/Resources.vala:254 msgid "Filter Photos" msgstr "Filtriraj fotografije" -#: src/Resources.vala:285 +#: src/Resources.vala:255 msgid "Limit the number of photos displayed based on a filter" msgstr "Ograniči broj prikaza fotografija temeljeno na filteru" -#: src/Resources.vala:288 +#: src/Resources.vala:258 msgid "Duplicate" msgstr "Duplikat" -#: src/Resources.vala:289 +#: src/Resources.vala:259 msgid "Make a duplicate of the photo" msgstr "Napravi duplikat fotografije" -#: src/Resources.vala:291 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 -#: ui/tags.ui:17 +#: src/Resources.vala:261 ui/event.ui:17 ui/faces.ui:17 ui/media.ui:17 +#: ui/photo.ui:17 ui/tags.ui:17 msgid "_Export…" msgstr "_Izvoz…" -#: src/Resources.vala:293 +#: src/Resources.vala:263 msgid "_Print…" msgstr "_Ispis…" -#: src/Resources.vala:295 +#: src/Resources.vala:265 msgid "Pu_blish…" msgstr "O_bjavi…" -#: src/Resources.vala:297 ui/collection.ui:189 +#: src/Resources.vala:267 ui/collection.ui:189 msgid "Publish to various websites" msgstr "Objavi na raznim web stranicama" -#: src/Resources.vala:299 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 -#: ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 ui/tags.ui:340 +#: src/Resources.vala:269 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 +#: ui/faces.ui:340 ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 +#: ui/tags.ui:340 msgid "Edit _Title…" msgstr "Uredi _naslov…" #. Button label -#: src/Resources.vala:301 +#: src/Resources.vala:271 msgctxt "Button Label" msgid "Edit Title" msgstr "Uredi naslov" -#: src/Resources.vala:303 ui/collection.ui:103 ui/events_directory.ui:144 +#: src/Resources.vala:273 ui/collection.ui:103 ui/events_directory.ui:144 #: ui/events_directory.ui:186 ui/event.ui:345 ui/event.ui:398 ui/event.ui:542 -#: ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 ui/tags.ui:345 +#: ui/faces.ui:345 ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 +#: ui/tags.ui:345 msgid "Edit _Comment…" msgstr "Uredi _komentar…" #. Button label -#: src/Resources.vala:305 +#: src/Resources.vala:275 msgid "Edit Comment" msgstr "Uredi komentar" -#: src/Resources.vala:307 ui/event.ui:592 +#: src/Resources.vala:277 ui/event.ui:592 msgid "Edit Event _Comment…" msgstr "Uredi događaj _komentara…" -#: src/Resources.vala:310 ui/direct.ui:167 ui/photo.ui:337 +#: src/Resources.vala:280 ui/direct.ui:167 ui/photo.ui:337 msgid "_Adjust Date and Time…" msgstr "_Prilagodi datum i vrijeme…" -#: src/Resources.vala:311 +#: src/Resources.vala:281 msgid "Adjust Date and Time" msgstr "Podesi datum i vrijeme" -#: src/Resources.vala:313 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 -#: ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 +#: src/Resources.vala:283 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 +#: ui/faces.ui:390 ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 msgid "Add _Tags…" msgstr "Dodaj _oznake…" -#: src/Resources.vala:314 ui/photo_context.ui:17 +#: src/Resources.vala:284 ui/photo_context.ui:17 msgid "_Add Tags…" msgstr "_Dodaj oznake…" #. Dialog title -#: src/Resources.vala:316 +#: src/Resources.vala:286 msgctxt "Dialog Title" msgid "Add Tags" msgstr "Dodaj oznake" -#: src/Resources.vala:325 ui/photo_context.ui:135 +#: src/Resources.vala:295 ui/photo_context.ui:135 msgid "Send T_o…" msgstr "Pošalj_i u…" -#: src/Resources.vala:327 +#: src/Resources.vala:297 msgid "_Find…" msgstr "_Pretraži…" -#: src/Resources.vala:328 ui/collection.ui:217 ui/offline.ui:239 +#: src/Resources.vala:298 ui/collection.ui:217 ui/offline.ui:239 #: ui/trash.ui:312 msgid "Find" msgstr "Pretraži" -#: src/Resources.vala:329 ui/collection.ui:214 ui/offline.ui:236 +#: src/Resources.vala:299 ui/collection.ui:214 ui/offline.ui:236 #: ui/trash.ui:309 msgid "Find an image by typing text that appears in its name or tags" -msgstr "Potraži sliku pomoću teksta u njezinom nazivu ili oznakama." +msgstr "Potraži sliku pomoću teksta u njezinom nazivu ili oznakama" -#: src/Resources.vala:331 +#: src/Resources.vala:301 msgid "_Flag" msgstr "_Označi" -#: src/Resources.vala:333 +#: src/Resources.vala:303 msgid "Un_flag" msgstr "_Ukloni oznaku" -#: src/Resources.vala:336 +#: src/Resources.vala:307 +msgid "Mark faces of people in the photo" +msgstr "Označi lica ljudi na fotografiji" + +#: src/Resources.vala:308 +msgid "Modify Faces" +msgstr "Prilagodi lica" + +#: src/Resources.vala:309 +msgid "Delete Face" +msgstr "Obriši lice" + +#: src/Resources.vala:311 src/Resources.vala:353 ui/tags.ui:456 +msgid "_Rename…" +msgstr "_Preimenuj…" + +#: src/Resources.vala:315 #, c-format msgid "Unable to launch editor: %s" msgstr "Nemoguće pokretanje uređivača: %s" -#: src/Resources.vala:341 +#: src/Resources.vala:320 #, c-format msgid "Add Tag “%s”" msgstr "Dodaj oznaku \"%s\"" #. Used when adding two tags to photo(s) -#: src/Resources.vala:344 +#: src/Resources.vala:323 #, c-format msgid "Add Tags “%s” and “%s”" msgstr "Dodaj oznake \"%s\" i \"%s\"" #. Undo/Redo command name (in Edit menu) -#: src/Resources.vala:349 +#: src/Resources.vala:328 msgctxt "UndoRedo menu entry" msgid "Add Tags" msgstr "Dodaj oznake" -#: src/Resources.vala:354 +#: src/Resources.vala:333 #, c-format msgid "_Delete Tag “%s”" msgstr "_Obriši oznaku \"%s\"" -#: src/Resources.vala:358 +#: src/Resources.vala:337 #, c-format msgid "Delete Tag “%s”" msgstr "Obriši oznaku \"%s\"" -#: src/Resources.vala:361 +#: src/Resources.vala:340 msgid "Delete Tag" msgstr "Obriši oznaku" -#: src/Resources.vala:367 +#: src/Resources.vala:346 #, c-format msgid "Re_name Tag “%s”…" msgstr "_Preimenuj oznaku \"%s\"”…" -#: src/Resources.vala:371 +#: src/Resources.vala:350 #, c-format msgid "Rename Tag “%s” to “%s”" msgstr "Preimenuj oznaku \"%s\" u \"%s\"" -#: src/Resources.vala:374 ui/tags.ui:456 -msgid "_Rename…" -msgstr "_Preimenuj…" - -#: src/Resources.vala:376 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 -#: ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 ui/tags.ui:395 +#: src/Resources.vala:355 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 +#: ui/faces.ui:395 ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 +#: ui/tags.ui:395 msgid "Modif_y Tags…" msgstr "Promijen_i oznake…" -#: src/Resources.vala:377 +#: src/Resources.vala:356 msgid "Modify Tags" msgstr "Promijeni oznake" -#: src/Resources.vala:380 +#: src/Resources.vala:359 #, c-format msgid "Tag Photo as “%s”" msgid_plural "Tag Photos as “%s”" @@ -5574,7 +5649,7 @@ msgstr[0] "Označi fotografiju kao “%s”" msgstr[1] "Označi fotografije kao “%s”" msgstr[2] "Označi fotografije kao “%s”" -#: src/Resources.vala:386 +#: src/Resources.vala:365 #, c-format msgid "Tag the selected photo as “%s”" msgid_plural "Tag the selected photos as “%s”" @@ -5582,7 +5657,7 @@ msgstr[0] "Označi odabranu fotografiju kao “%s”" msgstr[1] "Označi odabrane fotografije kao “%s”" msgstr[2] "Označi odabrane fotografije kao “%s”" -#: src/Resources.vala:392 +#: src/Resources.vala:371 #, c-format msgid "Remove Tag “%s” From _Photo" msgid_plural "Remove Tag “%s” From _Photos" @@ -5590,7 +5665,7 @@ msgstr[0] "Ukloni oznaku “%s” iz _fotografije" msgstr[1] "Ukloni oznaku “%s” iz _fotografija" msgstr[2] "Ukloni oznaku “%s” iz _fotografija" -#: src/Resources.vala:398 +#: src/Resources.vala:377 #, c-format msgid "Remove Tag “%s” From Photo" msgid_plural "Remove Tag “%s” From Photos" @@ -5598,131 +5673,175 @@ msgstr[0] "Ukloni oznaku “%s” iz fotografije" msgstr[1] "Ukloni oznaku “%s” iz fotografija" msgstr[2] "Ukloni oznaku “%s” iz fotografija" -#: src/Resources.vala:404 +#: src/Resources.vala:383 #, c-format msgid "Unable to rename tag to “%s” because the tag already exists." msgstr "Nemoguće preimenovati oznaku u \"%s\" jer ta oznaka već postoji." -#: src/Resources.vala:408 +#: src/Resources.vala:387 #, c-format msgid "Unable to rename search to “%s” because the search already exists." msgstr "Nemoguće preimenovati pretragu u \"%s\" jer ta pretraga već postoji." #. Saved search button -#: src/Resources.vala:411 src/SearchFilter.vala:1120 +#: src/Resources.vala:390 src/SearchFilter.vala:1146 msgid "Saved Search" msgstr "Spremljena pretraga" -#: src/Resources.vala:413 +#: src/Resources.vala:392 msgid "Delete Search" msgstr "Obriši pretragu" -#: src/Resources.vala:416 ui/savedsearch.ui:10 +#: src/Resources.vala:395 ui/savedsearch.ui:10 msgid "_Edit…" msgstr "_Uredi…" -#: src/Resources.vala:417 ui/savedsearch.ui:6 +#: src/Resources.vala:396 ui/savedsearch.ui:6 msgid "Re_name…" msgstr "Pre_imenuj…" -#: src/Resources.vala:420 +#: src/Resources.vala:399 #, c-format msgid "Rename Search “%s” to “%s”" msgstr "Preimenuj pretragu \"%s\" u \"%s\"" -#: src/Resources.vala:424 +#: src/Resources.vala:403 #, c-format msgid "Delete Search “%s”" msgstr "Obriši pretragu \"%s\"" -#: src/Resources.vala:561 +#: src/Resources.vala:408 +#, c-format +msgid "Unable to rename face to “%s” because the face already exists." +msgstr "Nemoguće preimenovati lice u \"%s\" jer to lice već postoji." + +#: src/Resources.vala:412 +#, c-format +msgid "Remove Face “%s” From _Photo" +msgid_plural "Remove Face “%s” From _Photos" +msgstr[0] "Ukloni lice “%s” iz _fotografije" +msgstr[1] "Ukloni lice “%s” iz _fotografija" +msgstr[2] "Ukloni lice “%s” iz _fotografija" + +#: src/Resources.vala:417 +#, c-format +msgid "Remove Face “%s” From Photo" +msgid_plural "Remove Face “%s” From Photos" +msgstr[0] "Ukloni lice “%s” iz fotografije" +msgstr[1] "Ukloni lice “%s” iz fotografija" +msgstr[2] "Ukloni lice “%s” iz fotografija" + +#: src/Resources.vala:422 +#, c-format +msgid "Re_name Face “%s”…" +msgstr "Pr_eimenuj lice \"%s\"…" + +#: src/Resources.vala:426 +#, c-format +msgid "Rename Face “%s” to “%s”" +msgstr "Preimenuj lice \"%s\" u \"%s\"" + +#: src/Resources.vala:430 +#, c-format +msgid "_Delete Face “%s”" +msgstr "_Obriši lice \"%s\"" + +#: src/Resources.vala:434 +#, c-format +msgid "Delete Face “%s”" +msgstr "Obriši lice \"%s\"" + +#: src/Resources.vala:664 #, c-format msgid "Rate %s" msgstr "Ocjeni %s" -#: src/Resources.vala:562 +#: src/Resources.vala:665 #, c-format msgid "Set rating to %s" msgstr "Postavi ocjenu na %s" -#: src/Resources.vala:563 +#: src/Resources.vala:666 #, c-format msgid "Setting rating to %s" msgstr "Postavljanje ocjene na %s" -#: src/Resources.vala:565 +#: src/Resources.vala:668 #, c-format msgid "Display %s" msgstr "Prikaži %s" -#: src/Resources.vala:566 +#: src/Resources.vala:669 #, c-format msgid "Only show photos with a rating of %s" msgstr "Prikaži samo fotografije sa ocjenom %s" -#: src/Resources.vala:567 +#: src/Resources.vala:670 #, c-format msgid "%s or Better" msgstr "%s ili bolje" -#: src/Resources.vala:568 +#: src/Resources.vala:671 #, c-format msgid "Display %s or Better" msgstr "Prikaži %s ili bolje" -#: src/Resources.vala:569 +#: src/Resources.vala:672 #, c-format msgid "Only show photos with a rating of %s or better" msgstr "Prikaži samo fotografije koje imaju bolju ocijenu od %s" -#: src/Resources.vala:660 ui/trash.ui:255 +#: src/Resources.vala:763 ui/trash.ui:255 msgid "Remove the selected photos from the trash" msgstr "Ukloni odabrane fotografije iz smeća" -#: src/Resources.vala:661 ui/offline.ui:221 +#: src/Resources.vala:764 ui/offline.ui:221 msgid "Remove the selected photos from the library" msgstr "Ukloni odabrane fotografije iz fototeke" -#: src/Resources.vala:663 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 +#: src/Resources.vala:766 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 msgid "_Restore" msgstr "_Vrati natrag" -#: src/Resources.vala:664 ui/trash.ui:270 +#: src/Resources.vala:767 ui/trash.ui:270 msgid "Move the selected photos back into the library" msgstr "Vrati odabrane fotografije natrag u fototeku" -#: src/Resources.vala:666 ui/collection.ui:123 ui/direct_context.ui:18 -#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/media.ui:27 +#: src/Resources.vala:769 ui/collection.ui:123 ui/direct_context.ui:18 +#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/faces.ui:27 ui/media.ui:27 #: ui/photo_context.ui:130 ui/photo.ui:35 ui/tags.ui:27 ui/trash.ui:19 #: ui/trash.ui:227 msgid "Show in File Mana_ger" msgstr "Prikaži u upravitelju _datoteka" -#: src/Resources.vala:667 +#: src/Resources.vala:770 msgid "Open the selected photo’s directory in the file manager" msgstr "Otvori odabranu mapu fotografija u upravitelju datoteka" -#: src/Resources.vala:670 +#: src/Resources.vala:773 #, c-format msgid "Unable to open in file manager: %s" msgstr "Nemoguće otvaranje u upravitelju datoteka: %s" -#: src/Resources.vala:673 ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 -#: ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 ui/tags.ui:74 +#: src/Resources.vala:776 ui/event.ui:74 ui/faces.ui:74 ui/media.ui:74 +#: ui/offline.ui:58 ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 +#: ui/tags.ui:74 msgid "R_emove From Library" msgstr "_Ukloni iz fototeke" -#: src/Resources.vala:675 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 -#: ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 ui/tags.ui:79 +#: src/Resources.vala:778 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 +#: ui/faces.ui:79 ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 +#: ui/tags.ui:79 msgid "_Move to Trash" msgstr "_Premjesti u smeće" -#: src/Resources.vala:677 ui/events_directory.ui:58 ui/event.ui:86 -#: ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 ui/trash.ui:74 +#: src/Resources.vala:780 ui/events_directory.ui:58 ui/event.ui:86 +#: ui/faces.ui:86 ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 +#: ui/trash.ui:74 msgid "Select _All" msgstr "Odaberi _sve" -#: src/Resources.vala:678 +#: src/Resources.vala:781 msgid "Select all items" msgstr "Odaberi sve stavke" @@ -5735,14 +5854,14 @@ msgstr "Odaberi sve stavke" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format #. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:739 +#: src/Resources.vala:842 msgid "%a %b %d, %Y" msgstr "%a, %d %b , %Y" #. / Locale-specific starting date format for multi-date strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:744 +#: src/Resources.vala:847 msgctxt "MultidayFormat" msgid "%a %b %d" msgstr "%a %b %d" @@ -5750,7 +5869,7 @@ msgstr "%a %b %d" #. / Locale-specific ending date format for multi-date strings, #. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:749 +#: src/Resources.vala:852 msgctxt "MultidayFormat" msgid "%d, %Y" msgstr "%d, %Y" @@ -5758,7 +5877,7 @@ msgstr "%d, %Y" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:754 +#: src/Resources.vala:857 msgctxt "MultimonthFormat" msgid "%a %b %d" msgstr "%a %b %d" @@ -5766,170 +5885,174 @@ msgstr "%a %b %d" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:759 +#: src/Resources.vala:862 msgctxt "MultimonthFormat" msgid "%a %b %d, %Y" msgstr "%a, %d %b , %Y" -#: src/Screensaver.vala:18 src/SlideshowPage.vala:115 +#: src/Screensaver.vala:18 src/SlideshowPage.vala:117 msgid "Slideshow" msgstr "Prezentacija" #. Ordering must correspond with SearchConditionText.Context -#: src/searches/SavedSearchDialog.vala:167 +#: src/searches/SavedSearchDialog.vala:170 msgid "contains" msgstr "sadrži" #. Ordering must correspond with Context -#: src/searches/SavedSearchDialog.vala:168 -#: src/searches/SavedSearchDialog.vala:499 +#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:502 msgid "is exactly" msgstr "je točno" -#: src/searches/SavedSearchDialog.vala:169 +#: src/searches/SavedSearchDialog.vala:172 msgid "starts with" msgstr "počinje s" -#: src/searches/SavedSearchDialog.vala:170 +#: src/searches/SavedSearchDialog.vala:173 msgid "ends with" msgstr "završava s" -#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:174 msgid "does not contain" msgstr "ne sadrži" -#: src/searches/SavedSearchDialog.vala:172 -#: src/searches/SavedSearchDialog.vala:503 +#: src/searches/SavedSearchDialog.vala:175 +#: src/searches/SavedSearchDialog.vala:506 msgid "is not set" msgstr "nije postavljeno" -#: src/searches/SavedSearchDialog.vala:173 +#: src/searches/SavedSearchDialog.vala:176 msgid "is set" msgstr "je postavljen" #. Ordering must correspond with SearchConditionMediaType.Context -#: src/searches/SavedSearchDialog.vala:247 -#: src/searches/SavedSearchDialog.vala:378 -#: src/searches/SavedSearchDialog.vala:443 +#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:381 +#: src/searches/SavedSearchDialog.vala:446 msgid "is" msgstr "je" -#: src/searches/SavedSearchDialog.vala:248 +#: src/searches/SavedSearchDialog.vala:251 msgid "is not" msgstr "nije" #. Ordering must correspond with SearchConditionMediaType.MediaType -#: src/searches/SavedSearchDialog.vala:254 +#: src/searches/SavedSearchDialog.vala:257 msgid "any photo" msgstr "bilo koja fotografija" -#: src/searches/SavedSearchDialog.vala:255 +#: src/searches/SavedSearchDialog.vala:258 msgid "a raw photo" msgstr "raw fotografija" -#: src/searches/SavedSearchDialog.vala:256 +#: src/searches/SavedSearchDialog.vala:259 msgid "a video" msgstr "video snimka" -#: src/searches/SavedSearchDialog.vala:310 +#: src/searches/SavedSearchDialog.vala:313 msgid "has" msgstr "ima" -#: src/searches/SavedSearchDialog.vala:311 +#: src/searches/SavedSearchDialog.vala:314 msgid "has no" msgstr "nema" -#: src/searches/SavedSearchDialog.vala:316 +#: src/searches/SavedSearchDialog.vala:319 msgid "modifications" msgstr "promjene" -#: src/searches/SavedSearchDialog.vala:317 +#: src/searches/SavedSearchDialog.vala:320 msgid "internal modifications" msgstr "unutrašnje promjene" -#: src/searches/SavedSearchDialog.vala:318 +#: src/searches/SavedSearchDialog.vala:321 msgid "external modifications" msgstr "vanjske promjene" #. Ordering must correspond with SearchConditionFlagged.State -#: src/searches/SavedSearchDialog.vala:372 +#: src/searches/SavedSearchDialog.vala:375 msgid "flagged" msgstr "oznečeno" -#: src/searches/SavedSearchDialog.vala:373 +#: src/searches/SavedSearchDialog.vala:376 msgid "not flagged" msgstr "neoznačeno" -#: src/searches/SavedSearchDialog.vala:436 +#: src/searches/SavedSearchDialog.vala:439 msgid "and higher" msgstr "i više" -#: src/searches/SavedSearchDialog.vala:437 +#: src/searches/SavedSearchDialog.vala:440 msgid "only" msgstr "samo" -#: src/searches/SavedSearchDialog.vala:438 +#: src/searches/SavedSearchDialog.vala:441 msgid "and lower" msgstr "i niže" -#: src/searches/SavedSearchDialog.vala:500 +#: src/searches/SavedSearchDialog.vala:503 msgid "is after" msgstr "je nakon" -#: src/searches/SavedSearchDialog.vala:501 +#: src/searches/SavedSearchDialog.vala:504 msgid "is before" msgstr "je prije" -#: src/searches/SavedSearchDialog.vala:502 +#: src/searches/SavedSearchDialog.vala:505 msgid "is between" msgstr "je između" -#: src/searches/SavedSearchDialog.vala:515 +#: src/searches/SavedSearchDialog.vala:518 msgid "and" msgstr "i" -#: src/searches/SearchBoolean.vala:157 +#: src/searches/SearchBoolean.vala:169 msgid "Any text" msgstr "Bilo koji tekst" -#: src/searches/SearchBoolean.vala:160 +#: src/searches/SearchBoolean.vala:172 msgid "Title" msgstr "Naziv" -#: src/searches/SearchBoolean.vala:163 +#: src/searches/SearchBoolean.vala:175 msgid "Tag" msgstr "Oznaka" -#: src/searches/SearchBoolean.vala:166 +#: src/searches/SearchBoolean.vala:178 msgid "Comment" msgstr "Komentar" -#: src/searches/SearchBoolean.vala:169 +#: src/searches/SearchBoolean.vala:181 msgid "Event name" msgstr "Naziv događaja" -#: src/searches/SearchBoolean.vala:172 +#: src/searches/SearchBoolean.vala:184 msgid "File name" msgstr "Naziv datoteke" -#: src/searches/SearchBoolean.vala:175 +#: src/searches/SearchBoolean.vala:187 +msgid "Face" +msgstr "Lice" + +#: src/searches/SearchBoolean.vala:190 msgid "Media type" msgstr "Vrsta medija" -#: src/searches/SearchBoolean.vala:178 +#: src/searches/SearchBoolean.vala:193 msgid "Flag state" msgstr "Stanje oznake" -#: src/searches/SearchBoolean.vala:181 +#: src/searches/SearchBoolean.vala:196 msgid "Photo state" msgstr "Stanje fotografije" -#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:827 -#: src/SearchFilter.vala:1110 +#: src/searches/SearchBoolean.vala:199 src/SearchFilter.vala:853 +#: src/SearchFilter.vala:1136 msgid "Rating" msgstr "Ocjena" -#: src/searches/SearchBoolean.vala:187 +#: src/searches/SearchBoolean.vala:202 msgid "Date" msgstr "Datum" @@ -5941,27 +6064,27 @@ msgstr "Spremljene pretrage" msgid "Organize your saved searches" msgstr "Organizirajte svoje spremljene pretrage" -#: src/SearchFilter.vala:811 +#: src/SearchFilter.vala:837 msgid "★+ Rating" msgstr "★+ Ocjena" -#: src/SearchFilter.vala:814 +#: src/SearchFilter.vala:840 msgid "★★+ Rating" msgstr "★★+ Ocjena" -#: src/SearchFilter.vala:817 +#: src/SearchFilter.vala:843 msgid "★★★+ Rating" msgstr "★★★+ Ocjena" -#: src/SearchFilter.vala:820 +#: src/SearchFilter.vala:846 msgid "★★★★+ Rating" msgstr "★★★★+ Ocjena" -#: src/SearchFilter.vala:824 +#: src/SearchFilter.vala:850 msgid "★★★★★+ Rating" msgstr "★★★★★+ Ocjena" -#: src/SearchFilter.vala:1060 +#: src/SearchFilter.vala:1086 #, c-format msgid "Error loading search bar UI: %s" msgstr "Greška učitavanja grafičkog sučelja trake pretrage %s" @@ -5971,72 +6094,71 @@ msgstr "Greška učitavanja grafičkog sučelja trake pretrage %s" #. Prepare the close menu for use, but don't #. display it yet; we'll connect it to secondary #. click later on. -#: src/SearchFilter.vala:1069 +#: src/SearchFilter.vala:1095 msgid "Close" msgstr "Zatvori" #. Type label and toggles -#: src/SearchFilter.vala:1075 +#: src/SearchFilter.vala:1101 msgid "Type" msgstr "Vrsta" -#: src/SearchFilter.vala:1082 +#: src/SearchFilter.vala:1108 msgid "Videos" msgstr "Video snimke" -#: src/SearchFilter.vala:1085 +#: src/SearchFilter.vala:1111 msgid "RAW Photos" msgstr "RAW fotografije" -#: src/SearchFilter.vala:1121 +#: src/SearchFilter.vala:1147 msgid "Use a saved search to filter items in the current view" -msgstr "" -"Koristi spremljene pretrage za filtriranje stavki u trenutnom prikazu" +msgstr "Koristi spremljene pretrage za filtriranje stavki u trenutnom prikazu" #. Set up toolbar #. add toolbar buttons -#: src/SlideshowPage.vala:134 +#: src/SlideshowPage.vala:136 msgid "Back" msgstr "Natrag" -#: src/SlideshowPage.vala:136 +#: src/SlideshowPage.vala:138 msgid "Go to the previous photo" msgstr "Idi na prijašnju fotografiju" -#: src/SlideshowPage.vala:141 src/SlideshowPage.vala:248 +#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:250 msgid "Pause" msgstr "Pauziraj" -#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:249 +#: src/SlideshowPage.vala:145 src/SlideshowPage.vala:251 msgid "Pause the slideshow" msgstr "Pauziraj prezentaciju" -#: src/SlideshowPage.vala:148 +#: src/SlideshowPage.vala:150 msgid "Next" msgstr "Sljedeća" -#: src/SlideshowPage.vala:150 +#: src/SlideshowPage.vala:152 msgid "Go to the next photo" msgstr "Idi na sljedeću fotografiju" -#: src/SlideshowPage.vala:157 ui/slideshow_settings.ui:21 +#: src/SlideshowPage.vala:159 ui/slideshow_settings.ui:21 msgid "Settings" msgstr "Postavke" -#: src/SlideshowPage.vala:158 +#: src/SlideshowPage.vala:160 msgid "Change slideshow settings" msgstr "Promijeni postavke prezentacije" #. An entire slideshow set might be missing, so check for a loop. -#: src/SlideshowPage.vala:212 +#: src/SlideshowPage.vala:214 msgid "All photo source files are missing." msgstr "Nedostaju sve izvorne datoteke fotografije." -#: src/SlideshowPage.vala:244 +#: src/SlideshowPage.vala:246 msgid "Play" msgstr "Reproduciraj" -#: src/SlideshowPage.vala:245 +#: src/SlideshowPage.vala:247 msgid "Continue the slideshow" msgstr "Nastavi prezentaciju" @@ -6048,7 +6170,7 @@ msgstr "Prijelazi prezentacije" msgid "(None)" msgstr "(nema)" -#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:485 +#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:414 msgid "None" msgstr "Nepoznato" @@ -6073,24 +6195,24 @@ msgstr "neimenovano" msgid "Export Videos" msgstr "Izvezi video snimke" -#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/media.ui:281 -#: ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 +#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/faces.ui:281 +#: ui/media.ui:281 ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 msgid "Toggle _Flag" msgstr "Uklj/Isklj oznaku" -#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/media.ui:353 -#: ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 +#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/faces.ui:353 +#: ui/media.ui:353 ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 msgid "_Developer" msgstr "_Razvijatelj" -#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/media.ui:381 -#: ui/photo_context.ui:126 ui/tags.ui:381 +#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/faces.ui:381 +#: ui/media.ui:381 ui/photo_context.ui:126 ui/tags.ui:381 msgid "View Eve_nt for Photo" msgstr "Prikaži dog_ađaj fotografije" -#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/import_queue.ui:5 -#: ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 ui/photo.ui:5 ui/tags.ui:5 -#: ui/trash.ui:5 +#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/faces.ui:5 +#: ui/import_queue.ui:5 ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 +#: ui/photo.ui:5 ui/tags.ui:5 ui/trash.ui:5 msgid "_File" msgstr "_Datoteka" @@ -6098,7 +6220,7 @@ msgstr "_Datoteka" msgid "Save _As…" msgstr "Spremi _kao…" -#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 +#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 ui/faces.ui:99 #: ui/import_queue.ui:38 ui/import.ui:74 ui/media.ui:99 ui/offline.ui:78 #: ui/photo.ui:95 ui/tags.ui:99 ui/trash.ui:87 msgid "_View" @@ -6132,229 +6254,241 @@ msgstr "_Sljedeća fotografija" msgid "T_ools" msgstr "A_lati" -#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 +#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 ui/faces.ui:438 #: ui/import_queue.ui:73 ui/import.ui:191 ui/media.ui:411 ui/offline.ui:188 #: ui/photo.ui:395 ui/tags.ui:430 ui/trash.ui:197 msgid "_Frequently Asked Questions" msgstr "_Često postavljana pitanja" -#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 +#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 ui/faces.ui:442 #: ui/import_queue.ui:77 ui/import.ui:195 ui/media.ui:415 ui/offline.ui:192 #: ui/photo.ui:399 ui/tags.ui:434 ui/trash.ui:201 msgid "_Report a Problem…" msgstr "_Prijavi problem…" -#: ui/events_directory.ui:8 ui/event.ui:8 ui/import_queue.ui:14 ui/import.ui:8 -#: ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 ui/trash.ui:8 +#: ui/events_directory.ui:8 ui/event.ui:8 ui/faces.ui:8 ui/import_queue.ui:14 +#: ui/import.ui:8 ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 +#: ui/trash.ui:8 msgid "_Import From Folder…" msgstr "_Uvezi iz mape…" -#: ui/events_directory.ui:13 ui/event.ui:13 ui/import_queue.ui:19 -#: ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 ui/photo.ui:13 ui/tags.ui:13 -#: ui/trash.ui:13 +#: ui/events_directory.ui:13 ui/event.ui:13 ui/faces.ui:13 +#: ui/import_queue.ui:19 ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 +#: ui/photo.ui:13 ui/tags.ui:13 ui/trash.ui:13 msgid "Import From _Application…" msgstr "Uvezi iz _aplikacije…" -#: ui/events_directory.ui:19 ui/event.ui:34 ui/import_queue.ui:25 -#: ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 ui/photo.ui:42 ui/tags.ui:34 -#: ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 +#: ui/events_directory.ui:19 ui/event.ui:34 ui/faces.ui:34 +#: ui/import_queue.ui:25 ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 +#: ui/photo.ui:42 ui/tags.ui:34 ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 msgid "Empty T_rash" msgstr "Isprazni _smeće" -#: ui/events_directory.ui:47 ui/event.ui:62 ui/import.ui:55 ui/media.ui:62 -#: ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 +#: ui/events_directory.ui:47 ui/event.ui:62 ui/faces.ui:62 ui/import.ui:55 +#: ui/media.ui:62 ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 msgid "_Find" msgstr "_Pretraži" -#: ui/events_directory.ui:51 ui/event.ui:66 ui/media.ui:66 ui/offline.ui:51 -#: ui/photo.ui:70 ui/search_sidebar_context.ui:6 +#: ui/events_directory.ui:51 ui/event.ui:66 ui/faces.ui:66 ui/media.ui:66 +#: ui/offline.ui:51 ui/photo.ui:70 ui/search_sidebar_context.ui:6 #: ui/sidebar_default_context.ui:6 ui/tags.ui:66 ui/trash.ui:56 msgid "Ne_w Saved Search…" msgstr "No_va spremljena pretraga…" -#: ui/events_directory.ui:74 ui/event.ui:102 ui/import_queue.ui:41 -#: ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 ui/photo.ui:98 -#: ui/tags.ui:102 ui/trash.ui:90 +#: ui/events_directory.ui:74 ui/event.ui:102 ui/faces.ui:102 +#: ui/import_queue.ui:41 ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 +#: ui/photo.ui:98 ui/tags.ui:102 ui/trash.ui:90 msgid "_Basic Information" msgstr "_Osnovne informacije" -#: ui/events_directory.ui:79 ui/event.ui:107 ui/import.ui:82 ui/media.ui:107 -#: ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 ui/trash.ui:95 +#: ui/events_directory.ui:79 ui/event.ui:107 ui/faces.ui:107 ui/import.ui:82 +#: ui/media.ui:107 ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 +#: ui/trash.ui:95 msgid "E_xtended Information" msgstr "_Proširene informacije" -#: ui/events_directory.ui:84 ui/event.ui:112 ui/import.ui:87 ui/media.ui:112 -#: ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 +#: ui/events_directory.ui:84 ui/event.ui:112 ui/faces.ui:112 ui/import.ui:87 +#: ui/media.ui:112 ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 msgid "_Search Bar" msgstr "T_raka pretrage" -#: ui/events_directory.ui:89 ui/event.ui:117 ui/import.ui:92 ui/media.ui:117 -#: ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 ui/trash.ui:105 +#: ui/events_directory.ui:89 ui/event.ui:117 ui/faces.ui:117 ui/import.ui:92 +#: ui/media.ui:117 ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 +#: ui/trash.ui:105 msgid "S_idebar" msgstr "B_očna traka" -#: ui/events_directory.ui:94 ui/event.ui:122 ui/import.ui:97 ui/media.ui:122 -#: ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 ui/trash.ui:110 +#: ui/events_directory.ui:94 ui/event.ui:122 ui/faces.ui:122 ui/import.ui:97 +#: ui/media.ui:122 ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 +#: ui/trash.ui:110 msgid "T_oolbar" msgstr "A_latna traka" -#: ui/events_directory.ui:101 ui/event.ui:134 ui/media.ui:134 ui/tags.ui:134 +#: ui/events_directory.ui:101 ui/event.ui:134 ui/faces.ui:134 ui/media.ui:134 +#: ui/tags.ui:134 msgid "_Comments" msgstr "_Komentari" -#: ui/events_directory.ui:108 ui/event.ui:243 ui/import_queue.ui:48 -#: ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 ui/photo.ui:127 -#: ui/tags.ui:243 ui/trash.ui:172 +#: ui/events_directory.ui:108 ui/event.ui:243 ui/faces.ui:243 +#: ui/import_queue.ui:48 ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 +#: ui/photo.ui:127 ui/tags.ui:243 ui/trash.ui:172 msgid "Sort _Events" msgstr "Razvrstaj _događaje" -#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 -#: ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 ui/media.ui:246 -#: ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 ui/tags.ui:246 -#: ui/trash.ui:175 +#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 ui/faces.ui:231 +#: ui/faces.ui:246 ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 +#: ui/media.ui:246 ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 +#: ui/tags.ui:246 ui/trash.ui:175 msgid "_Ascending" msgstr "_Rastući" -#: ui/events_directory.ui:116 ui/event.ui:236 ui/import_queue.ui:56 -#: ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 ui/trash.ui:180 +#: ui/events_directory.ui:116 ui/event.ui:236 ui/faces.ui:236 +#: ui/import_queue.ui:56 ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 +#: ui/trash.ui:180 msgid "D_escending" msgstr "_Padajući" -#: ui/events_directory.ui:132 ui/event.ui:379 ui/media.ui:373 ui/tags.ui:373 +#: ui/events_directory.ui:132 ui/event.ui:379 ui/faces.ui:373 ui/media.ui:373 +#: ui/tags.ui:373 msgid "Even_ts" msgstr "Događaji" -#: ui/event.ui:129 ui/import.ui:104 ui/media.ui:129 ui/tags.ui:129 +#: ui/event.ui:129 ui/faces.ui:129 ui/import.ui:104 ui/media.ui:129 +#: ui/tags.ui:129 msgid "_Titles" msgstr "Nas_lovi" -#: ui/event.ui:139 ui/event.ui:404 ui/media.ui:139 ui/media.ui:387 -#: ui/photo.ui:372 ui/tags.ui:139 ui/tags.ui:387 +#: ui/event.ui:139 ui/event.ui:404 ui/faces.ui:139 ui/faces.ui:387 +#: ui/media.ui:139 ui/media.ui:387 ui/photo.ui:372 ui/tags.ui:139 +#: ui/tags.ui:387 msgid "Ta_gs" msgstr "O_znake" -#: ui/event.ui:206 ui/media.ui:206 ui/tags.ui:206 +#: ui/event.ui:206 ui/faces.ui:206 ui/media.ui:206 ui/tags.ui:206 msgid "Sort _Photos" msgstr "Razvrstaj _fotografije" -#: ui/event.ui:209 ui/media.ui:209 ui/tags.ui:209 +#: ui/event.ui:209 ui/faces.ui:209 ui/media.ui:209 ui/tags.ui:209 msgid "By _Title" -msgstr "Po _Naslovu" +msgstr "Po _naslovu" -#: ui/event.ui:214 ui/media.ui:214 ui/tags.ui:214 +#: ui/event.ui:214 ui/faces.ui:214 ui/media.ui:214 ui/tags.ui:214 msgid "By _Filename" msgstr "Po _nazivu datoteke" -#: ui/event.ui:219 ui/media.ui:219 ui/tags.ui:219 +#: ui/event.ui:219 ui/faces.ui:219 ui/media.ui:219 ui/tags.ui:219 msgid "By Exposure _Date" msgstr "Po datumu _ekspozicije" -#: ui/event.ui:224 ui/media.ui:224 ui/tags.ui:224 +#: ui/event.ui:224 ui/faces.ui:224 ui/media.ui:224 ui/tags.ui:224 msgid "By _Rating" msgstr "Po _ocjeni" -#: ui/event.ui:251 ui/import.ui:174 ui/media.ui:251 ui/photo.ui:135 -#: ui/tags.ui:251 +#: ui/event.ui:251 ui/faces.ui:251 ui/import.ui:174 ui/media.ui:251 +#: ui/photo.ui:135 ui/tags.ui:251 msgid "_Descending" msgstr "_Padajući" -#: ui/event.ui:275 ui/media.ui:275 ui/tags.ui:275 +#: ui/event.ui:275 ui/faces.ui:275 ui/media.ui:275 ui/tags.ui:275 msgid "_Photos" msgstr "_Fotografije" +#: ui/faces.ui:465 +msgid "Rename…" +msgstr "Preimenuj…" + #: ui/import_queue.ui:8 msgid "_Stop Import" msgstr "_Zaustavi uvoz" -#: ui/preferences_dialog.ui:65 -msgid "white" -msgstr "bijela" - -#: ui/preferences_dialog.ui:92 -msgid "black" -msgstr "crna" - -#: ui/preferences_dialog.ui:123 +#: ui/preferences_dialog.ui:67 msgid "Display" msgstr "Prikaz" -#: ui/preferences_dialog.ui:160 -msgid "_Background:" -msgstr "_Pozadina:" - -#: ui/preferences_dialog.ui:175 +#: ui/preferences_dialog.ui:103 msgid "_Import photos to:" msgstr "_Uvezi fotografije u:" -#: ui/preferences_dialog.ui:186 +#: ui/preferences_dialog.ui:114 msgid "_Watch library directory for new files" msgstr "_Nadziri mapu fototeke za nove datoteke" -#: ui/preferences_dialog.ui:209 +#: ui/preferences_dialog.ui:137 msgid "Importing" msgstr "Uvažanje" -#: ui/preferences_dialog.ui:226 +#: ui/preferences_dialog.ui:154 msgid "_Directory structure:" msgstr "_Struktura mape:" -#: ui/preferences_dialog.ui:241 +#: ui/preferences_dialog.ui:169 msgid "Example:" msgstr "Primjer:" -#: ui/preferences_dialog.ui:250 +#: ui/preferences_dialog.ui:178 msgid "R_ename imported files to lowercase" msgstr "P_reimenuj uvezene datoteke u mala slova" -#: ui/preferences_dialog.ui:272 +#: ui/preferences_dialog.ui:200 msgid "Metadata" msgstr "Metapodaci" -#: ui/preferences_dialog.ui:285 +#: ui/preferences_dialog.ui:213 msgid "Write tags, titles, and other _metadata to photo files" msgstr "Zapiši oznake, naslove i ostale _metapodatke u fotografije" -#: ui/preferences_dialog.ui:307 +#: ui/preferences_dialog.ui:235 msgid "RAW Developer" msgstr "RAW razvijatelj" -#: ui/preferences_dialog.ui:324 +#: ui/preferences_dialog.ui:252 msgid "De_fault:" msgstr "_Uobičajeno:" -#: ui/preferences_dialog.ui:378 +#: ui/preferences_dialog.ui:306 msgid "_Pattern:" msgstr "_Uzorak:" -#: ui/preferences_dialog.ui:414 +#: ui/preferences_dialog.ui:339 +msgid "" +"When viewing images that are transparent, they will be drawn against this " +"background." +msgstr "" +"Prilikom gledanja slika koje su prozirne, biti će izvučene na ovoj pozadini." + +#: ui/preferences_dialog.ui:343 msgid "Transparent Background:" msgstr "Prozirna pozadina:" -#: ui/preferences_dialog.ui:428 +#: ui/preferences_dialog.ui:357 msgid "Checkered" msgstr "Kockasta" -#: ui/preferences_dialog.ui:449 +#: ui/preferences_dialog.ui:378 msgid "Solid color" msgstr "Jednobojno" -#: ui/preferences_dialog.ui:539 +#: ui/preferences_dialog.ui:441 +msgid "Use dark theme:" +msgstr "Koristi tamnu temu:" + +#: ui/preferences_dialog.ui:492 msgid "E_xternal photo editor:" msgstr "Vanjs_ki uređivač fotografija:" -#: ui/preferences_dialog.ui:556 +#: ui/preferences_dialog.ui:509 msgid "External _RAW editor:" msgstr "Vanjski uređivač _RAW datoteka:" -#: ui/preferences_dialog.ui:617 +#: ui/preferences_dialog.ui:570 msgid "External Editors" msgstr "Vanjski uređivači" -#: ui/preferences_dialog.ui:642 +#: ui/preferences_dialog.ui:595 msgid "Plugins" msgstr "Priključci" -#: ui/preferences_dialog.ui:668 +#: ui/preferences_dialog.ui:621 msgid "Shotwell Preferences" msgstr "Shotwell osobitosti" @@ -6481,23 +6615,23 @@ msgstr "" msgid "New _Tag…" msgstr "Nova _oznaka…" -#: ui/slideshow_settings.ui:91 +#: ui/slideshow_settings.ui:98 msgid "_Delay:" msgstr "_Odgoda:" -#: ui/slideshow_settings.ui:105 +#: ui/slideshow_settings.ui:112 msgid "_Transition effect:" msgstr "Efekt _prijelaza:" -#: ui/slideshow_settings.ui:119 +#: ui/slideshow_settings.ui:126 msgid "Transition d_elay:" msgstr "O_dgoda prijelaza:" -#: ui/slideshow_settings.ui:129 +#: ui/slideshow_settings.ui:136 msgid "Show t_itle" msgstr "Prikaži n_aslov" -#: ui/slideshow_settings.ui:212 ui/slideshow_settings.ui:223 +#: ui/slideshow_settings.ui:219 ui/slideshow_settings.ui:230 msgid "seconds" msgstr "sekunda" @@ -6509,6 +6643,24 @@ msgstr "naslov" msgid "Delete all photos in the trash" msgstr "Obriši sve fotografije u smeću" +#~ msgid "background color" +#~ msgstr "boja pozadine" + +#~ msgid "A grayscale color for use as the background color." +#~ msgstr "Siva boja kao boja pozadine." + +#~ msgid "Extended Information" +#~ msgstr "Dodatne informacije" + +#~ msgid "white" +#~ msgstr "bijela" + +#~ msgid "black" +#~ msgstr "crna" + +#~ msgid "_Background:" +#~ msgstr "_Pozadina:" + #~ msgid "Width or height" #~ msgstr "Širina ili visina" @@ -6523,7 +6675,8 @@ msgstr "Obriši sve fotografije u smeću" #~ "čitanju tablice fotografija" #~ msgid "" -#~ "Cannot read the selected F-Spot database file: error while reading tags table" +#~ "Cannot read the selected F-Spot database file: error while reading tags " +#~ "table" #~ msgstr "" #~ "Nemoguće pročitati odabranu datoteku F-Spot baze podataka: greška pri " #~ "čitanju tablice oznaka" @@ -6535,12 +6688,12 @@ msgstr "Obriši sve fotografije u smeću" #~ "Cannot open the selected F-Spot database file: this version of the F-Spot " #~ "database is not supported by Shotwell" #~ msgstr "" -#~ "Nemoguće otvoriti odabranu datoteku F-Spot baze podataka: ovu inačicu F-Spot " -#~ "baze podataka Shotwell ne podržava" +#~ "Nemoguće otvoriti odabranu datoteku F-Spot baze podataka: ovu inačicu F-" +#~ "Spot baze podataka Shotwell ne podržava" #~ msgid "" -#~ "Cannot open the selected F-Spot database file: the file does not exist or is " -#~ "not an F-Spot database" +#~ "Cannot open the selected F-Spot database file: the file does not exist or " +#~ "is not an F-Spot database" #~ msgstr "" #~ "Nemoguće otvoriti odabranu datoteku F-Spot baze podataka: datoteka ne " #~ "postoji ili nije F-Spot baza podataka" @@ -6560,16 +6713,15 @@ msgstr "Obriši sve fotografije u smeću" #~ msgid "" #~ "Welcome to the F-Spot library import service.\n" #~ "\n" -#~ "Please select a library to import, either by selecting one of the existing " -#~ "libraries found by Shotwell or by selecting an alternative F-Spot database " -#~ "file." +#~ "Please select a library to import, either by selecting one of the " +#~ "existing libraries found by Shotwell or by selecting an alternative F-" +#~ "Spot database file." #~ msgstr "" #~ "Dobrodošli u uslugu za uvoz fototeke iz F-Spota.\n" #~ "\n" -#~ "Odaberite fototeku za uvoz, odabirući jednu od fototeka koju je već otkrio " -#~ "Shotwell ili odabirući alternativnu datoteku F-Spot baze podataka." +#~ "Odaberite fototeku za uvoz, odabirući jednu od fototeka koju je već " +#~ "otkrio Shotwell ili odabirući alternativnu datoteku F-Spot baze podataka." -#, c-format #~ msgid "" #~ "Shotwell has found %d photos in the F-Spot library and is currently " #~ "importing them. Duplicates will be automatically detected and removed.\n" @@ -6577,13 +6729,12 @@ msgstr "Obriši sve fotografije u smeću" #~ "You can close this dialog and start using Shotwell while the import is " #~ "taking place in the background." #~ msgstr "" -#~ "Shotwell je pronašao %d fotografija u F-Spot fototeci te ih trenutno uvozi. " -#~ "Duplikati će se automatski otkriti i ukloniti.\n" +#~ "Shotwell je pronašao %d fotografija u F-Spot fototeci te ih trenutno " +#~ "uvozi. Duplikati će se automatski otkriti i ukloniti.\n" #~ "\n" #~ "Možete zatvoriti ovaj okvir i započeti s korištenjem Shotwell dok se uvoz " #~ "obavlja u pozadini." -#, c-format #~ msgid "F-Spot library: %s" #~ msgstr "F-Spot fototeka: %s" @@ -6600,10 +6751,6 @@ msgstr "Obriši sve fotografije u smeću" #~ msgid "Export Photos/Videos" #~ msgstr "Izvezi fotografije/video snimke" -#~ msgid "The Shotwell developers" -#~ msgstr "Shotwell razvijatelji" - -#, c-format #~ msgid "“%s” isn’t a valid response to an OAuth authentication request" #~ msgstr "'%s' nije valjani odgovor na OAuth zahtjev ovjere" diff --git a/po/hu.gmo b/po/hu.gmo deleted file mode 100644 index 50570c5..0000000 Binary files a/po/hu.gmo and /dev/null differ diff --git a/po/hu.po b/po/hu.po index 85121bc..66a9069 100644 --- a/po/hu.po +++ b/po/hu.po @@ -10,24 +10,23 @@ msgid "" msgstr "" "Project-Id-Version: shotwell master\n" -"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" -"product=shotwell&keywords=I18N+L10N&component=Internationalization\n" -"POT-Creation-Date: 2018-01-17 19:38+0000\n" -"PO-Revision-Date: 2018-02-26 23:42+0100\n" -"Last-Translator: Balázs Úr \n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/shotwell/issues\n" +"POT-Creation-Date: 2018-06-25 16:43+0000\n" +"PO-Revision-Date: 2018-09-03 21:32+0200\n" +"Last-Translator: Meskó Balázs \n" "Language-Team: Hungarian \n" "Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Lokalize 1.2\n" +"X-Generator: Poedit 2.1.1\n" #: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in:4 #: plugins/shotwell-publishing-extras/GalleryConnector.vala:115 #: src/photos/RawSupport.vala:308 ui/collection.ui:85 ui/event.ui:356 -#: ui/event.ui:524 ui/media.ui:356 ui/photo_context.ui:91 ui/photo.ui:347 -#: ui/tags.ui:356 +#: ui/event.ui:524 ui/faces.ui:356 ui/media.ui:356 ui/photo_context.ui:91 +#: ui/photo.ui:347 ui/tags.ui:356 msgid "Shotwell" msgstr "Shotwell" @@ -480,12 +479,12 @@ msgid "Pin toolbar in fullscreen, or not." msgstr "Az eszköztár rögzítésre kerüljön-e teljes képernyő esetén." #: misc/org.yorba.shotwell.gschema.xml:161 -msgid "background color" -msgstr "háttérszín" +msgid "prefer GTK+’s dark theme" +msgstr "a GTK+ sötét téma előnyben részesítése" #: misc/org.yorba.shotwell.gschema.xml:162 -msgid "A grayscale color for use as the background color." -msgstr "Háttérszínként használandó szürkeárnyalatos szín." +msgid "Whether to use the dark theme of GTK+ for Shotwell or not." +msgstr "A Shotwell a GTK+ sötét témát használja-e vagy sem." #: misc/org.yorba.shotwell.gschema.xml:167 msgid "background for transparent images" @@ -1431,7 +1430,7 @@ msgstr "A Flickr felhatalmazás meghiúsult" msgid "Verifying authorization…" msgstr "Felhatalmazás ellenőrzése…" -#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:118 +#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:137 msgid "" "You have already logged in and out of a Google service during this Shotwell " "session.\n" @@ -1516,7 +1515,7 @@ msgstr "A felület nem tölthető be: %s" msgid "Visit the Shotwell home page" msgstr "A Shotwell weboldalának meglátogatása" -#: plugins/common/Resources.vala:31 src/AppWindow.vala:611 +#: plugins/common/Resources.vala:31 src/AppWindow.vala:603 msgid "translator-credits" msgstr "" "Peter Bojtos \n" @@ -1684,7 +1683,7 @@ msgstr "_Kijelentkezés" #: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:156 #: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:121 #: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:115 -#: src/CollectionPage.vala:82 src/PhotoPage.vala:2469 +#: src/CollectionPage.vala:82 src/PhotoPage.vala:2492 msgid "_Publish" msgstr "Közzé_tétel" @@ -2150,7 +2149,7 @@ msgid "Logout" msgstr "Kijelentkezés" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:268 -#: src/Resources.vala:296 ui/collection.ui:192 +#: src/Resources.vala:266 ui/collection.ui:192 msgid "Publish" msgstr "Közzététel" @@ -2182,8 +2181,8 @@ msgid "Certificate of %s" msgstr "%s tanúsítványa" #: plugins/shotwell-publishing/PiwigoPublishing.vala:1051 -#: src/Resources.vala:167 ui/multitextentrydialog.ui:40 -#: ui/slideshow_settings.ui:49 +#: src/Resources.vala:137 ui/multitextentrydialog.ui:40 +#: ui/slideshow_settings.ui:52 msgid "_OK" msgstr "_OK" @@ -2391,17 +2390,18 @@ msgstr "Eszköztár rögzítése nyitva" msgid "Leave fullscreen" msgstr "Teljes képernyő elhagyása" -#: src/AppWindow.vala:538 src/AppWindow.vala:559 src/AppWindow.vala:576 +#: src/AppWindow.vala:530 src/AppWindow.vala:551 src/AppWindow.vala:568 #: src/data_imports/DataImportsUI.vala:302 #: src/data_imports/DataImportsUI.vala:420 src/Dialogs.vala:20 -#: src/Dialogs.vala:28 src/Dialogs.vala:753 src/Dialogs.vala:776 -#: src/publishing/PublishingUI.vala:305 src/publishing/PublishingUI.vala:529 -#: src/Resources.vala:158 ui/multitextentrydialog.ui:25 -#: ui/slideshow_settings.ui:35 ui/textentrydialog.ui:19 +#: src/Dialogs.vala:28 src/Dialogs.vala:58 src/Dialogs.vala:766 +#: src/Dialogs.vala:789 src/publishing/PublishingUI.vala:305 +#: src/publishing/PublishingUI.vala:529 src/Resources.vala:128 +#: ui/multitextentrydialog.ui:25 ui/slideshow_settings.ui:38 +#: ui/textentrydialog.ui:19 msgid "_Cancel" msgstr "Mé_gse" -#: src/AppWindow.vala:586 +#: src/AppWindow.vala:578 #, c-format msgid "" "A fatal error occurred when accessing Shotwell’s library. Shotwell cannot " @@ -2414,21 +2414,21 @@ msgstr "" "\n" "%s" -#: src/AppWindow.vala:607 +#: src/AppWindow.vala:599 msgid "Visit the Shotwell web site" msgstr "A Shotwell weboldalának meglátogatása" -#: src/AppWindow.vala:620 +#: src/AppWindow.vala:612 #, c-format msgid "Unable to display help: %s" msgstr "Nem lehet megjeleníteni a súgót: %s" -#: src/AppWindow.vala:628 +#: src/AppWindow.vala:620 #, c-format msgid "Unable to navigate to bug database: %s" msgstr "Nem nyitható meg a hibaadatbázis: %s" -#: src/AppWindow.vala:636 +#: src/AppWindow.vala:628 #, c-format msgid "Unable to display FAQ: %s" msgstr "Nem jeleníthető meg a GyIK: %s" @@ -2504,18 +2504,18 @@ msgstr "Az összes felfedezett fényképezőgép eszköz listája" #: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:711 #: src/camera/ImportPage.vala:727 src/photos/RawSupport.vala:311 -#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/media.ui:361 -#: ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 +#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/faces.ui:361 +#: ui/media.ui:361 ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 msgid "Camera" msgstr "Fényképezőgép" #. Translators: First %s is the name of camera as gotten from GPhoto, second is the GVolume name, e.g. Mass storage camera (510MB volume) -#: src/camera/CameraTable.vala:351 +#: src/camera/CameraTable.vala:367 #, c-format msgid "%s (%s)" msgstr "%s (%s)" -#: src/camera/ImportPage.vala:311 src/Properties.vala:230 +#: src/camera/ImportPage.vala:311 src/Properties.vala:233 msgid "RAW+JPEG" msgstr "RAW+JPEG" @@ -2647,7 +2647,7 @@ msgid_plural "Delete these %d files from camera?" msgstr[0] "Törli ezt a fájlt a fényképezőgépről?" msgstr[1] "Törli ezt a(z) %d fájlt a fényképezőgépről?" -#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:720 +#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:733 msgid "_Keep" msgstr "_Megtartás" @@ -2665,21 +2665,21 @@ msgstr[1] "" "Hiba történt, %d fénykép vagy videó nem törölhető a fényképezőgépről." #: src/CollectionPage.vala:80 src/direct/DirectPhotoPage.vala:85 -#: src/PhotoPage.vala:2464 src/Resources.vala:171 +#: src/PhotoPage.vala:2487 src/Resources.vala:141 msgid "_Print" msgstr "_Nyomtatás" -#: src/CollectionPage.vala:83 src/Resources.vala:324 ui/collection.ui:128 +#: src/CollectionPage.vala:83 src/Resources.vala:294 ui/collection.ui:128 #: ui/direct_context.ui:23 ui/direct.ui:23 ui/event.ui:567 ui/photo.ui:28 msgid "Send _To…" msgstr "Kül_dés…" #: src/CollectionPage.vala:84 src/direct/DirectPhotoPage.vala:90 -#: src/PhotoPage.vala:2474 src/Resources.vala:221 +#: src/PhotoPage.vala:2497 src/Resources.vala:191 msgid "Set as _Desktop Background" msgstr "Beállítás _asztalháttérként" -#: src/CollectionPage.vala:92 src/Resources.vala:287 +#: src/CollectionPage.vala:92 src/Resources.vala:257 msgid "_Duplicate" msgstr "_Kettőzés" @@ -2691,43 +2691,43 @@ msgstr "Teljes képernyő" msgid "S_lideshow" msgstr "_Diavetítés" -#: src/CollectionPage.vala:110 src/Resources.vala:140 ui/direct.ui:111 +#: src/CollectionPage.vala:110 src/Resources.vala:110 ui/direct.ui:111 #: ui/photo.ui:200 msgid "Rotate _Right" msgstr "Forgatás j_obbra" -#: src/CollectionPage.vala:113 src/Resources.vala:145 ui/direct.ui:116 +#: src/CollectionPage.vala:113 src/Resources.vala:115 ui/direct.ui:116 #: ui/photo.ui:205 msgid "Rotate _Left" msgstr "Forgatás _balra" -#: src/CollectionPage.vala:116 src/Resources.vala:150 ui/direct.ui:121 +#: src/CollectionPage.vala:116 src/Resources.vala:120 ui/direct.ui:121 #: ui/photo.ui:210 msgid "Flip Hori_zontally" msgstr "_Vízszintes tükrözés" -#: src/CollectionPage.vala:117 src/Resources.vala:153 ui/direct.ui:125 +#: src/CollectionPage.vala:117 src/Resources.vala:123 ui/direct.ui:125 #: ui/photo.ui:214 msgid "Flip Verti_cally" msgstr "_Függőleges tükrözés" -#: src/CollectionPage.vala:119 src/Resources.vala:187 ui/collection.ui:8 +#: src/CollectionPage.vala:119 src/Resources.vala:157 ui/collection.ui:8 #: ui/direct_context.ui:7 ui/direct.ui:134 ui/event.ui:447 #: ui/photo_context.ui:6 ui/photo.ui:223 msgid "_Enhance" msgstr "_Feljavítás" -#: src/CollectionPage.vala:120 src/Resources.vala:215 ui/collection.ui:13 +#: src/CollectionPage.vala:120 src/Resources.vala:185 ui/collection.ui:13 #: ui/direct_context.ui:12 ui/direct.ui:161 ui/event.ui:452 #: ui/photo_context.ui:11 ui/photo.ui:250 msgid "Re_vert to Original" msgstr "_Vissza az eredetihez" -#: src/CollectionPage.vala:122 src/Resources.vala:191 ui/photo.ui:256 +#: src/CollectionPage.vala:122 src/Resources.vala:161 ui/photo.ui:256 msgid "_Copy Color Adjustments" msgstr "_Színbeállítások másolása" -#: src/CollectionPage.vala:125 src/Resources.vala:195 ui/photo.ui:261 +#: src/CollectionPage.vala:125 src/Resources.vala:165 ui/photo.ui:261 msgid "_Paste Color Adjustments" msgstr "_Színbeállítások beillesztése" @@ -2735,17 +2735,17 @@ msgstr "_Színbeállítások beillesztése" msgid "Adjust Date and Time…" msgstr "Dátum és idő módosítása…" -#: src/CollectionPage.vala:143 src/Resources.vala:320 ui/collection.ui:108 +#: src/CollectionPage.vala:143 src/Resources.vala:290 ui/collection.ui:108 #: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:361 msgid "Open With E_xternal Editor" msgstr "Megnyitás külső _szerkesztővel" -#: src/CollectionPage.vala:146 src/Resources.vala:322 ui/collection.ui:113 +#: src/CollectionPage.vala:146 src/Resources.vala:292 ui/collection.ui:113 #: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:366 msgid "Open With RA_W Editor" msgstr "Megnyitás RA_W szerkesztővel" -#: src/CollectionPage.vala:149 src/Resources.vala:168 +#: src/CollectionPage.vala:149 src/Resources.vala:138 msgid "_Play" msgstr "_Lejátszás" @@ -2755,7 +2755,7 @@ msgid_plural "Export Photos/Videos" msgstr[0] "Fénykép vagy videó exportálása" msgstr[1] "Fényképek vagy videók exportálása" -#: src/CollectionPage.vala:412 src/Dialogs.vala:59 src/PhotoPage.vala:2998 +#: src/CollectionPage.vala:412 src/Dialogs.vala:74 src/PhotoPage.vala:3021 msgid "Export Photo" msgid_plural "Export Photos" msgstr[0] "Fénykép exportálása" @@ -2809,152 +2809,152 @@ msgstr "Színátalakítás alkalmazása" msgid "Undoing Color Transformations" msgstr "Színátalakítás visszavonása" -#: src/Commands.vala:1007 +#: src/Commands.vala:1006 msgid "Creating New Event" msgstr "Új esemény létrehozása" -#: src/Commands.vala:1008 +#: src/Commands.vala:1007 msgid "Removing Event" msgstr "Esemény eltávolítása" -#: src/Commands.vala:1017 +#: src/Commands.vala:1016 msgid "Moving Photos to New Event" msgstr "Fényképek áthelyezése az új eseménybe" -#: src/Commands.vala:1018 +#: src/Commands.vala:1017 msgid "Setting Photos to Previous Event" msgstr "Fényképek átállítása az előző eseményre" -#: src/Commands.vala:1075 +#: src/Commands.vala:1074 msgid "Merging" msgstr "Egyesítés" -#: src/Commands.vala:1076 +#: src/Commands.vala:1075 msgid "Unmerging" msgstr "Szétválasztás" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Duplicating photos" msgstr "Fényképek lemásolása" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Removing duplicated photos" msgstr "Kettőzött fényképek eltávolítása" -#: src/Commands.vala:1108 +#: src/Commands.vala:1107 #, c-format msgid "Unable to duplicate one photo due to a file error" msgid_plural "Unable to duplicate %d photos due to file errors" msgstr[0] "Fájlhiba miatt a fénykép nem másolható le" msgstr[1] "Fájlhiba miatt %d fénykép nem duplikálható" -#: src/Commands.vala:1195 +#: src/Commands.vala:1194 msgid "Restoring previous rating" msgstr "Korábbi értékelés visszaállítása" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Increasing ratings" msgstr "Értékelés csökkentése" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Decreasing ratings" msgstr "Értékelés növelése" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Setting RAW developer" msgstr "RAW előhívó beállítása" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Restoring previous RAW developer" msgstr "Előző RAW előhívó visszaállítása" -#: src/Commands.vala:1257 +#: src/Commands.vala:1256 msgid "Set Developer" msgstr "Az előhívó beállítása" -#: src/Commands.vala:1347 +#: src/Commands.vala:1346 msgid "Original photo could not be adjusted." msgstr "Az eredeti fénykép nem módosítható." -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Adjusting Date and Time" msgstr "Dátum és idő módosítása" -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Undoing Date and Time Adjustment" msgstr "Dátum és idő módosításának visszavonása" -#: src/Commands.vala:1399 +#: src/Commands.vala:1398 msgid "One original photo could not be adjusted." msgid_plural "The following original photos could not be adjusted." msgstr[0] "Az eredeti fénykép nem módosítható." msgstr[1] "A következő eredeti fényképek nem módosíthatók." -#: src/Commands.vala:1401 src/Commands.vala:1425 +#: src/Commands.vala:1400 src/Commands.vala:1424 msgid "Time Adjustment Error" msgstr "Hiba az idő megváltoztatásakor" -#: src/Commands.vala:1423 +#: src/Commands.vala:1422 msgid "Time adjustments could not be undone on the following photo file." msgid_plural "" "Time adjustments could not be undone on the following photo files." msgstr[0] "Az időmódosítás nem vonható vissza a következő fényképen." msgstr[1] "Az időmódosítás nem vonható vissza a következő fényképeken." -#: src/Commands.vala:1637 src/Commands.vala:1660 +#: src/Commands.vala:1636 src/Commands.vala:1659 msgid "Create Tag" msgstr "Címke létrehozása" -#: src/Commands.vala:1695 +#: src/Commands.vala:1694 #, c-format msgid "Move Tag “%s”" msgstr "„%s” címke mozgatása" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Move Photos to Trash" msgstr "Fényképek áthelyezése a Kukába" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Restore Photos from Trash" msgstr "Fényképek visszaállítása a Kukából" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Move the photos to the Shotwell trash" msgstr "Fényképek áthelyezése a Shotwell kukájába" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Restore the photos back to the Shotwell library" msgstr "Fényképek visszaállítása a Shotwell gyűjteményébe" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Moving Photos to Trash" msgstr "Fényképek áthelyezése a Kukába" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Restoring Photos From Trash" msgstr "Fényképek visszaállítása a Kukából" -#: src/Commands.vala:2453 +#: src/Commands.vala:2452 msgid "Flag selected photos" msgstr "Kiválasztott fényképek megjelölése" -#: src/Commands.vala:2454 +#: src/Commands.vala:2453 msgid "Unflag selected photos" msgstr "Kiválasztott fényképek megjelölésének törlése" -#: src/Commands.vala:2455 +#: src/Commands.vala:2454 msgid "Flagging selected photos" msgstr "Kijelölt fényképek megjelölése" -#: src/Commands.vala:2456 +#: src/Commands.vala:2455 msgid "Unflagging selected photos" msgstr "Kijelölt fényképek megjelölésének visszavonása" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Flag" msgstr "Megjelölés" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Unflag" msgstr "Jelölés törlése" @@ -2994,7 +2994,7 @@ msgstr "" msgid "Database file:" msgstr "Adatbázisfájl:" -#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:782 +#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:783 msgid "_Import" msgstr "_Importálás" @@ -3074,10 +3074,11 @@ msgid_plural "This will remove the tag “%s” from %d photos. Continue?" msgstr[0] "Ez eltávolítja a(z) „%s” címkét egy fényképről. Folytatja?" msgstr[1] "Ez eltávolítja a(z) „%s” címkét %d fényképről. Folytatja?" -#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:721 -#: src/Resources.vala:159 src/Resources.vala:362 src/Resources.vala:415 -#: src/Resources.vala:659 ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 -#: ui/trash.ui:216 ui/trash.ui:258 +#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:58 +#: src/Dialogs.vala:734 src/Resources.vala:129 src/Resources.vala:310 +#: src/Resources.vala:341 src/Resources.vala:394 src/Resources.vala:734 +#: ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 ui/trash.ui:216 +#: ui/trash.ui:258 msgid "_Delete" msgstr "_Törlés" @@ -3104,11 +3105,18 @@ msgstr[1] "" msgid "_Switch Developer" msgstr "_Előhívó váltása" -#: src/Dialogs.vala:59 +#: src/Dialogs.vala:54 +#, c-format +msgid "This will remove the face “%s” from one photo. Continue?" +msgid_plural "This will remove the face “%s” from %d photos. Continue?" +msgstr[0] "Ez eltávolítja a(z) „%s” arcot egy fényképről. Folytatja?" +msgstr[1] "Ez eltávolítja a(z) „%s” arcot %d fényképről. Folytatja?" + +#: src/Dialogs.vala:74 msgid "Export Video" msgstr "Videó exportálása" -#: src/Dialogs.vala:84 +#: src/Dialogs.vala:99 msgid "Export Photos" msgstr "Fényképek exportálása" @@ -3117,7 +3125,7 @@ msgstr "Fényképek exportálása" #. if we can't copy an image over for editing in an external tool. #. Did we fail because we can't write to this directory? #. Yes - display an alternate error message here. -#: src/Dialogs.vala:112 +#: src/Dialogs.vala:127 #, c-format msgid "" "Shotwell couldn’t create a file for editing this photo because you do not " @@ -3126,7 +3134,7 @@ msgstr "" "A Shotwell nem tudott létrehozni fájlt a fénykép szerkesztéséhez, mert nincs " "jogosultsága ide írni: %s." -#: src/Dialogs.vala:121 +#: src/Dialogs.vala:136 msgid "" "Unable to export the following photo due to a file error.\n" "\n" @@ -3134,7 +3142,7 @@ msgstr "" "A következő fényképek exportálása fájlhiba miatt nem lehetséges.\n" "\n" -#: src/Dialogs.vala:127 +#: src/Dialogs.vala:142 msgid "" "\n" "\n" @@ -3144,35 +3152,35 @@ msgstr "" "\n" "Szeretné folytatni az exportálást?" -#: src/Dialogs.vala:128 +#: src/Dialogs.vala:143 msgid "Con_tinue" msgstr "Foly_tatás" -#: src/Dialogs.vala:139 +#: src/Dialogs.vala:153 msgid "Save Details…" msgstr "Részletek mentése…" -#: src/Dialogs.vala:140 +#: src/Dialogs.vala:154 msgid "Save Details" msgstr "Részletek mentése" -#: src/Dialogs.vala:155 +#: src/Dialogs.vala:169 #, c-format msgid "(and %d more)\n" msgstr "(és még %d)\n" -#: src/Dialogs.vala:208 +#: src/Dialogs.vala:222 msgid "Import Results Report" msgstr "Importálás eredményei jelentés" -#: src/Dialogs.vala:212 +#: src/Dialogs.vala:226 #, c-format msgid "Attempted to import %d file." msgid_plural "Attempted to import %d files." msgstr[0] "Kísérlet történt %d fájl importálására." msgstr[1] "Kísérlet történt %d fájl importálására." -#: src/Dialogs.vala:215 +#: src/Dialogs.vala:229 #, c-format msgid "Of these, %d file was successfully imported." msgid_plural "Of these, %d files were successfully imported." @@ -3182,30 +3190,30 @@ msgstr[1] "Ebből %d fájl lett sikeresen importálva." #. #. Duplicates #. -#: src/Dialogs.vala:227 +#: src/Dialogs.vala:241 msgid "Duplicate Photos/Videos Not Imported:" msgstr "Nem importált, kettőzött fényképek vagy videók:" -#: src/Dialogs.vala:231 +#: src/Dialogs.vala:245 msgid "duplicates existing media item" msgstr "lemásolja a meglévő médiaelemet" #. #. Files Not Imported Due to Camera Errors #. -#: src/Dialogs.vala:242 +#: src/Dialogs.vala:256 msgid "Photos/Videos Not Imported Due to Camera Errors:" msgstr "A fényképezőgép hibája miatt nem importált fényképek vagy videók:" -#: src/Dialogs.vala:245 src/Dialogs.vala:260 src/Dialogs.vala:275 -#: src/Dialogs.vala:291 src/Dialogs.vala:306 src/Dialogs.vala:320 +#: src/Dialogs.vala:259 src/Dialogs.vala:274 src/Dialogs.vala:289 +#: src/Dialogs.vala:305 src/Dialogs.vala:320 src/Dialogs.vala:334 msgid "error message:" msgstr "hibaüzenet:" #. #. Files Not Imported Because They Weren't Recognized as Photos or Videos #. -#: src/Dialogs.vala:256 +#: src/Dialogs.vala:270 msgid "Files Not Imported Because They Weren’t Recognized as Photos or Videos:" msgstr "" "Fényképként vagy videóként fel nem ismert, és emiatt nem importált fájlok:" @@ -3213,7 +3221,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands #. -#: src/Dialogs.vala:271 +#: src/Dialogs.vala:285 msgid "" "Photos/Videos Not Imported Because They Weren’t in a Format Shotwell " "Understands:" @@ -3224,7 +3232,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library #. -#: src/Dialogs.vala:286 +#: src/Dialogs.vala:300 msgid "" "Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into its " "Library:" @@ -3232,7 +3240,7 @@ msgstr "" "A Shotwell által a gyűjteménybe nem másolható, és emiatt nem importált " "fényképek vagy videók:" -#: src/Dialogs.vala:290 +#: src/Dialogs.vala:304 #, c-format msgid "" "couldn’t copy %s\n" @@ -3244,7 +3252,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt #. -#: src/Dialogs.vala:302 +#: src/Dialogs.vala:316 msgid "Photos/Videos Not Imported Because Files Are Corrupt:" msgstr "" "A fényképek vagy videók importálása sikertelen volt, mert néhány fájl sérült:" @@ -3252,32 +3260,32 @@ msgstr "" #. #. Photos/Videos Not Imported for Other Reasons #. -#: src/Dialogs.vala:317 +#: src/Dialogs.vala:331 msgid "Photos/Videos Not Imported for Other Reasons:" msgstr "Más okból nem importált fényképek vagy videók:" -#: src/Dialogs.vala:337 +#: src/Dialogs.vala:351 #, c-format msgid "1 duplicate photo was not imported:\n" msgid_plural "%d duplicate photos were not imported:\n" msgstr[0] "%d kettőzött fénykép nem lett importálva:\n" msgstr[1] "%d kettőzött fénykép nem lett importálva:\n" -#: src/Dialogs.vala:340 +#: src/Dialogs.vala:354 #, c-format msgid "1 duplicate video was not imported:\n" msgid_plural "%d duplicate videos were not imported:\n" msgstr[0] "%d kettőzött videó nem lett importálva:\n" msgstr[1] "%d kettőzött videó nem lett importálva:\n" -#: src/Dialogs.vala:343 +#: src/Dialogs.vala:357 #, c-format msgid "1 duplicate photo/video was not imported:\n" msgid_plural "%d duplicate photos/videos were not imported:\n" msgstr[0] "%d kettőzött fénykép vagy videó nem lett importálva:\n" msgstr[1] "%d kettőzött fénykép vagy videó nem lett importálva:\n" -#: src/Dialogs.vala:357 +#: src/Dialogs.vala:371 #, c-format msgid "1 photo failed to import due to a file or hardware error:\n" msgid_plural "%d photos failed to import due to a file or hardware error:\n" @@ -3286,14 +3294,14 @@ msgstr[0] "" msgstr[1] "" "%d fényképet nem sikerült importálni fájl- vagy hardverhiba miatt:\n" -#: src/Dialogs.vala:360 +#: src/Dialogs.vala:374 #, c-format msgid "1 video failed to import due to a file or hardware error:\n" msgid_plural "%d videos failed to import due to a file or hardware error:\n" msgstr[0] "%d videót nem sikerült importálni fájl- vagy hardverhiba miatt:\n" msgstr[1] "%d videót nem sikerült importálni fájl- vagy hardverhiba miatt:\n" -#: src/Dialogs.vala:363 +#: src/Dialogs.vala:377 #, c-format msgid "1 photo/video failed to import due to a file or hardware error:\n" msgid_plural "" @@ -3305,14 +3313,14 @@ msgstr[1] "" "%d fényképet vagy videót nem sikerült importálni fájl- vagy hardverhiba " "miatt:\n" -#: src/Dialogs.vala:366 +#: src/Dialogs.vala:380 #, c-format msgid "1 file failed to import due to a file or hardware error:\n" msgid_plural "%d files failed to import due to a file or hardware error:\n" msgstr[0] "%d fájlt nem sikerült importálni hardver- vagy fájlhiba miatt:\n" msgstr[1] "%d fájlt nem sikerült importálni hardver- vagy fájlhiba miatt:\n" -#: src/Dialogs.vala:380 +#: src/Dialogs.vala:394 #, c-format msgid "" "1 photo failed to import because the photo library folder was not writable:\n" @@ -3326,7 +3334,7 @@ msgstr[1] "" "%d fényképet nem sikerült importálni, mert a fényképgyűjtemény mappája nem " "írható:\n" -#: src/Dialogs.vala:383 +#: src/Dialogs.vala:397 #, c-format msgid "" "1 video failed to import because the photo library folder was not writable:\n" @@ -3340,7 +3348,7 @@ msgstr[1] "" "%d fényképet nem sikerült importálni, mert a fényképgyűjtemény mappája nem " "írható:\n" -#: src/Dialogs.vala:386 +#: src/Dialogs.vala:400 #, c-format msgid "" "1 photo/video failed to import because the photo library folder was not " @@ -3355,7 +3363,7 @@ msgstr[1] "" "%d fényképet vagy videót nem sikerült importálni, mert a fényképgyűjtemény " "mappája nem írható:\n" -#: src/Dialogs.vala:389 +#: src/Dialogs.vala:403 #, c-format msgid "" "1 file failed to import because the photo library folder was not writable:\n" @@ -3369,21 +3377,21 @@ msgstr[1] "" "A fényképgyűjtemény mappája nem írható, emiatt %d fájl importálása nem " "sikerült:\n" -#: src/Dialogs.vala:403 +#: src/Dialogs.vala:417 #, c-format msgid "1 photo failed to import due to a camera error:\n" msgid_plural "%d photos failed to import due to a camera error:\n" msgstr[0] "%d fényképet nem sikerült importálni fényképezőgép-hiba miatt:\n" msgstr[1] "%d fényképet nem sikerült importálni fényképezőgép-hiba miatt:\n" -#: src/Dialogs.vala:406 +#: src/Dialogs.vala:420 #, c-format msgid "1 video failed to import due to a camera error:\n" msgid_plural "%d videos failed to import due to a camera error:\n" msgstr[0] "1 videót nem sikerült importálni fényképezőgép-hiba miatt:\n" msgstr[1] "%d videót nem sikerült importálni fényképezőgép-hiba miatt:\n" -#: src/Dialogs.vala:409 +#: src/Dialogs.vala:423 #, c-format msgid "1 photo/video failed to import due to a camera error:\n" msgid_plural "%d photos/videos failed to import due to a camera error:\n" @@ -3392,35 +3400,35 @@ msgstr[0] "" msgstr[1] "" "%d fényképet vagy videót nem sikerült importálni fényképezőgép-hiba miatt:\n" -#: src/Dialogs.vala:412 +#: src/Dialogs.vala:426 #, c-format msgid "1 file failed to import due to a camera error:\n" msgid_plural "%d files failed to import due to a camera error:\n" msgstr[0] "1 fájlt nem sikerült importálni fényképezőgép-hiba miatt:\n" msgstr[1] "%d fájlt nem sikerült importálni fényképezőgép-hiba miatt:\n" -#: src/Dialogs.vala:426 +#: src/Dialogs.vala:440 #, c-format msgid "1 photo failed to import because it was corrupt:\n" msgid_plural "%d photos failed to import because they were corrupt:\n" msgstr[0] "1 fénykép importálása sikertelen, mert sérült:\n" msgstr[1] "%d fénykép importálása sikertelen, mert sérült:\n" -#: src/Dialogs.vala:429 +#: src/Dialogs.vala:443 #, c-format msgid "1 video failed to import because it was corrupt:\n" msgid_plural "%d videos failed to import because they were corrupt:\n" msgstr[0] "1 videó importálása sikertelen, mert sérült:\n" msgstr[1] "%d videó importálása sikertelen, mert sérült:\n" -#: src/Dialogs.vala:432 +#: src/Dialogs.vala:446 #, c-format msgid "1 photo/video failed to import because it was corrupt:\n" msgid_plural "%d photos/videos failed to import because they were corrupt:\n" msgstr[0] "1 fénykép vagy videó importálása sikertelen, mert sérült:\n" msgstr[1] "%d fénykép vagy videó importálása sikertelen, mert sérült:\n" -#: src/Dialogs.vala:435 +#: src/Dialogs.vala:449 #, c-format msgid "1 file failed to import because it was corrupt:\n" msgid_plural "%d files failed to import because it was corrupt:\n" @@ -3431,7 +3439,7 @@ msgstr[1] "%d fájl importálása sikertelen, mert sérült:\n" #. standard container formats are supported, it's just that the streams in them #. might or might not be interpretable), so this message does not need to be #. media specific -#: src/Dialogs.vala:452 +#: src/Dialogs.vala:466 #, c-format msgid "1 unsupported photo skipped:\n" msgid_plural "%d unsupported photos skipped:\n" @@ -3440,56 +3448,56 @@ msgstr[1] "%d nem támogatott formátumú fénykép kihagyva:\n" #. we have no notion of "non-video" video files right now in Shotwell, so this #. message doesn't need to be media specific -#: src/Dialogs.vala:467 +#: src/Dialogs.vala:481 #, c-format msgid "1 non-image file skipped.\n" msgid_plural "%d non-image files skipped.\n" msgstr[0] "%d nem képfájl kihagyva.\n" msgstr[1] "%d nem képfájl kihagyva.\n" -#: src/Dialogs.vala:478 +#: src/Dialogs.vala:492 #, c-format msgid "1 photo skipped due to user cancel:\n" msgid_plural "%d photos skipped due to user cancel:\n" msgstr[0] "%d fénykép a felhasználó utasítására kihagyva.\n" msgstr[1] "%d fénykép a felhasználó utasítására kihagyva.\n" -#: src/Dialogs.vala:481 +#: src/Dialogs.vala:495 #, c-format msgid "1 video skipped due to user cancel:\n" msgid_plural "%d videos skipped due to user cancel:\n" msgstr[0] "%d videó a felhasználó utasítására kihagyva:\n" msgstr[1] "%d videó a felhasználó utasítására kihagyva:\n" -#: src/Dialogs.vala:484 +#: src/Dialogs.vala:498 #, c-format msgid "1 photo/video skipped due to user cancel:\n" msgid_plural "%d photos/videos skipped due to user cancel:\n" msgstr[0] "%d fénykép vagy videó a felhasználó utasítására kihagyva:\n" msgstr[1] "%d fénykép vagy videó a felhasználó utasítására kihagyva:\n" -#: src/Dialogs.vala:487 +#: src/Dialogs.vala:501 #, c-format msgid "1 file skipped due to user cancel:\n" msgid_plural "%d file skipped due to user cancel:\n" msgstr[0] "%d fájl a felhasználó utasítására kihagyva:\n" msgstr[1] "%d fájl a felhasználó utasítására kihagyva:\n" -#: src/Dialogs.vala:501 +#: src/Dialogs.vala:515 #, c-format msgid "1 photo successfully imported.\n" msgid_plural "%d photos successfully imported.\n" msgstr[0] "%d fénykép sikeresen importálva.\n" msgstr[1] "%d fénykép sikeresen importálva.\n" -#: src/Dialogs.vala:504 +#: src/Dialogs.vala:518 #, c-format msgid "1 video successfully imported.\n" msgid_plural "%d videos successfully imported.\n" msgstr[0] "%d videó sikeresen importálva.\n" msgstr[1] "%d videó sikeresen importálva.\n" -#: src/Dialogs.vala:507 +#: src/Dialogs.vala:521 #, c-format msgid "1 photo/video successfully imported.\n" msgid_plural "%d photos/videos successfully imported.\n" @@ -3498,64 +3506,64 @@ msgstr[1] "%d fénykép vagy videó sikeresen importálva.\n" #. if no media items were imported at all (i.e. an empty directory attempted), need to at least #. report that nothing was imported -#: src/Dialogs.vala:523 +#: src/Dialogs.vala:537 msgid "No photos or videos imported.\n" msgstr "Nem lettek importálva fényképek vagy videók.\n" -#: src/Dialogs.vala:530 src/Dialogs.vala:549 +#: src/Dialogs.vala:544 src/Dialogs.vala:563 msgid "Import Complete" msgstr "Importálás kész" -#: src/Dialogs.vala:650 src/Resources.vala:232 +#: src/Dialogs.vala:663 src/Resources.vala:202 msgid "Rename Event" msgstr "Esemény átnevezése" -#: src/Dialogs.vala:650 +#: src/Dialogs.vala:663 msgid "Name:" msgstr "Név:" #. Dialog title -#: src/Dialogs.vala:661 +#: src/Dialogs.vala:674 msgctxt "Dialog Title" msgid "Edit Title" msgstr "Cím szerkesztése" -#: src/Dialogs.vala:662 src/Properties.vala:343 +#: src/Dialogs.vala:675 src/Properties.vala:346 msgid "Title:" msgstr "Cím:" #. Dialog title -#: src/Dialogs.vala:678 src/Resources.vala:308 +#: src/Dialogs.vala:691 src/Resources.vala:278 msgid "Edit Event Comment" msgstr "Eseménymegjegyzés szerkesztése" -#: src/Dialogs.vala:679 +#: src/Dialogs.vala:692 msgid "Edit Photo/Video Comment" msgstr "Fénykép vagy videó megjegyzésének szerkesztése" -#: src/Dialogs.vala:680 src/Properties.vala:631 +#: src/Dialogs.vala:693 src/Properties.vala:645 msgid "Comment:" msgstr "Megjegyzés:" -#: src/Dialogs.vala:696 +#: src/Dialogs.vala:709 msgid "Remove and _Trash File" msgid_plural "Remove and _Trash Files" msgstr[0] "_Fájl eltávolítása és a Kukába helyezése" msgstr[1] "_Fájlok eltávolítása és a Kukába helyezésük" -#: src/Dialogs.vala:700 +#: src/Dialogs.vala:713 msgid "_Remove From Library" msgstr "_Eltávolítás a gyűjteményből" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edit?" msgstr "Visszavonja a külső szerkesztést?" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edits?" msgstr "Visszavonja a külső szerkesztéseket?" -#: src/Dialogs.vala:745 +#: src/Dialogs.vala:758 #, c-format msgid "This will destroy all changes made to the external file. Continue?" msgid_plural "" @@ -3563,34 +3571,34 @@ msgid_plural "" msgstr[0] "Ezzel a külső fájlon végzett minden változtatás elvész. Folytatja?" msgstr[1] "Ezzel %d külső fájlon végzett minden változtatás elvész. Folytatja?" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edit" msgstr "Külső szerkesztés _visszavonása" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edits" msgstr "Külső szerkesztések _visszavonása" -#: src/Dialogs.vala:770 +#: src/Dialogs.vala:783 #, c-format msgid "This will remove the photo from the library. Continue?" msgid_plural "This will remove %d photos from the library. Continue?" msgstr[0] "Ezzel eltávolítja a fényképet a gyűjteményből. Folytatja?" msgstr[1] "Ezzel eltávolít %d fényképet a gyűjteményből. Folytatja?" -#: src/Dialogs.vala:777 src/Resources.vala:174 +#: src/Dialogs.vala:790 src/Resources.vala:144 msgid "_Remove" msgstr "_Eltávolítás" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photo From Library" msgstr "Fénykép eltávolítása a gyűjteményből" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photos From Library" msgstr "Fényképek eltávolítása a gyűjteményből" -#: src/Dialogs.vala:798 +#: src/Dialogs.vala:811 #, c-format msgid "" "\n" @@ -3609,13 +3617,13 @@ msgstr[1] "" "\n" "És %d egyéb." -#: src/Dialogs.vala:822 src/Dialogs.vala:849 +#: src/Dialogs.vala:835 src/Dialogs.vala:862 msgid "Tags (separated by commas):" msgstr "Címkék (vesszővel elválasztva):" #. This function is used to determine whether or not files should be copied or linked when imported. #. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. -#: src/Dialogs.vala:908 +#: src/Dialogs.vala:921 msgid "" "Shotwell can copy the photos into your library folder or it can import them " "without copying." @@ -3623,31 +3631,31 @@ msgstr "" "A Shotwell átmásolhatja a fényképeket a gyűjtemény könyvtárába, vagy " "importálhatja azokat másolás nélkül is." -#: src/Dialogs.vala:913 +#: src/Dialogs.vala:926 msgid "Co_py Photos" msgstr "Fény_képek másolása" -#: src/Dialogs.vala:914 +#: src/Dialogs.vala:927 msgid "_Import in Place" msgstr "_Importálás" -#: src/Dialogs.vala:915 +#: src/Dialogs.vala:928 msgid "Import to Library" msgstr "Importálás a gyűjteménybe" -#: src/Dialogs.vala:925 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:938 src/PhotoPage.vala:2897 msgid "Remove From Library" msgstr "Eltávolítás a gyűjteményből" -#: src/Dialogs.vala:926 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:939 src/PhotoPage.vala:2897 msgid "Removing Photo From Library" msgstr "Fényképek eltávolítás a gyűjteményből" -#: src/Dialogs.vala:926 +#: src/Dialogs.vala:939 msgid "Removing Photos From Library" msgstr "Fényképek eltávolítása a gyűjteményből" -#: src/Dialogs.vala:940 +#: src/Dialogs.vala:953 #, c-format msgid "" "This will remove the photo/video from your Shotwell library. Would you also " @@ -3670,7 +3678,7 @@ msgstr[1] "" "\n" "Ez a művelet nem vonható vissza." -#: src/Dialogs.vala:944 +#: src/Dialogs.vala:957 #, c-format msgid "" "This will remove the video from your Shotwell library. Would you also like " @@ -3693,7 +3701,7 @@ msgstr[1] "" "\n" "Ez a művelet nem vonható vissza." -#: src/Dialogs.vala:948 +#: src/Dialogs.vala:961 #, c-format msgid "" "This will remove the photo from your Shotwell library. Would you also like " @@ -3716,7 +3724,7 @@ msgstr[1] "" "\n" "Ez a művelet nem vonható vissza." -#: src/Dialogs.vala:980 +#: src/Dialogs.vala:993 #, c-format msgid "" "The photo or video cannot be moved to your desktop trash. Delete this file?" @@ -3726,7 +3734,7 @@ msgstr[0] "A fénykép vagy videó nem helyezhető át a Kukába. Törli a fájl msgstr[1] "%d fénykép vagy videó nem helyezhető át a Kukába. Törli a fájlokat?" #. Alert the user that the files were not removed. -#: src/Dialogs.vala:997 +#: src/Dialogs.vala:1010 #, c-format msgid "The photo or video cannot be deleted." msgid_plural "%d photos/videos cannot be deleted." @@ -3765,7 +3773,7 @@ msgstr "" msgid "Unable open photo %s. Sorry." msgstr "Elnézést, a(z) %s fénykép nem nyitható meg." -#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:176 ui/direct.ui:8 +#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:146 ui/direct.ui:8 #: ui/textentrydialog.ui:33 msgid "_Save" msgstr "M_entés" @@ -3919,35 +3927,35 @@ msgstr "_Metaadatok exportálása:" #. We're installed system-wide, so use the system help. #. We're being run from the build directory; we'll have to handle clicks to this #. link manually ourselves, due to a limitation of help: URIs. -#: src/dialogs/Preferences.vala:115 src/dialogs/Preferences.vala:119 +#: src/dialogs/Preferences.vala:108 src/dialogs/Preferences.vala:112 msgid "(Help)" msgstr "(Súgó)" -#: src/dialogs/Preferences.vala:123 +#: src/dialogs/Preferences.vala:116 #, c-format msgid "Year%sMonth%sDay" msgstr "Év%sHónap%sNap" -#: src/dialogs/Preferences.vala:125 +#: src/dialogs/Preferences.vala:118 #, c-format msgid "Year%sMonth" msgstr "Év%sHónap" -#: src/dialogs/Preferences.vala:127 +#: src/dialogs/Preferences.vala:120 #, c-format msgid "Year%sMonth-Day" msgstr "Év%sHónap-Nap" -#: src/dialogs/Preferences.vala:129 +#: src/dialogs/Preferences.vala:122 msgid "Year-Month-Day" msgstr "Év-Hónap-Nap" -#: src/dialogs/Preferences.vala:130 src/editing_tools/EditingTools.vala:760 +#: src/dialogs/Preferences.vala:123 src/editing_tools/EditingTools.vala:760 msgid "Custom" msgstr "Egyéni" #. Invalid pattern. -#: src/dialogs/Preferences.vala:369 +#: src/dialogs/Preferences.vala:351 msgid "Invalid pattern" msgstr "Érvénytelen minta" @@ -4139,7 +4147,7 @@ msgstr "30 × 40 cm" msgid "A3 (297 × 420 mm)" msgstr "A3 (297 × 420 mm)" -#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:398 +#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:401 msgid "Size:" msgstr "Méret:" @@ -4157,8 +4165,8 @@ msgid "_Reset" msgstr "_Visszaállítás" #. fit both on the top line, emit and move on -#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:439 -#: src/Properties.vala:443 src/Properties.vala:450 +#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:442 +#: src/Properties.vala:446 src/Properties.vala:453 msgid "Exposure:" msgstr "Expozíció:" @@ -4232,7 +4240,7 @@ msgstr "Kontraszt növelése" msgid "Angle:" msgstr "Szög:" -#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:203 +#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:173 #: ui/direct.ui:144 ui/photo.ui:233 msgid "_Straighten" msgstr "Ki_egyenesítés" @@ -4244,14 +4252,14 @@ msgid_plural "%d Photos/Videos" msgstr[0] "%d fénykép vagy videó" msgstr[1] "%d fénykép vagy videó" -#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:358 +#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:361 #, c-format msgid "%d Video" msgid_plural "%d Videos" msgstr[0] "%d videó" msgstr[1] "%d videó" -#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:356 +#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:359 #, c-format msgid "%d Photo" msgid_plural "%d Photos" @@ -4330,6 +4338,68 @@ msgstr "Öss_zes cseréje" msgid "Export" msgstr "Exportálás" +#: src/faces/FacesBranch.vala:89 src/Resources.vala:305 src/Resources.vala:306 +#: ui/faces.ui:403 +msgid "Faces" +msgstr "Arcok" + +#: src/faces/FacesTool.vala:115 +msgid "Detect faces…" +msgstr "Arcok észlelése" + +#: src/faces/FacesTool.vala:140 +msgid "Detect faces on this photo" +msgstr "Arcok észlelése ezen a fényképen" + +#: src/faces/FacesTool.vala:142 +msgid "Cancel face detection" +msgstr "Arcészlelés megszakítása" + +#: src/faces/FacesTool.vala:146 +msgid "Close the Faces tool without saving changes" +msgstr "Az Arcok eszköz bezárása a változtatások mentése nélkül" + +#: src/faces/FacesTool.vala:153 src/faces/FacesTool.vala:185 +msgid "Click and drag to tag a face" +msgstr "Kattintson és húzza egy arc címkézéséhez" + +#: src/faces/FacesTool.vala:180 +#, c-format +msgid "Click to edit face %s" +msgstr "Kattintson a(z) %s arc szerkesztéséhez" + +#: src/faces/FacesTool.vala:189 +msgid "Stop dragging to add your face and name it." +msgstr "Hagyja abba a húzást az arc és a név hozzáadásához." + +#: src/faces/FacesTool.vala:193 +msgid "Type a name for this face, then press Enter" +msgstr "Írjon be egy nevet ehhez az archoz, majd nyomjon Entert" + +#: src/faces/FacesTool.vala:197 +msgid "Move or modify the face shape or name and press Enter" +msgstr "Mozgassa és módosítsa az arc alakját vagy nevét, és nyomjon Entert" + +#: src/faces/FacesTool.vala:201 +msgid "Detecting faces" +msgstr "Arcok észlelése" + +#: src/faces/FacesTool.vala:212 +msgid "If you don’t set the name of unknown faces they won’t be saved." +msgstr "Ha nem adja meg az ismeretlen arcok nevét, akkor nem lesznek mentve." + +#: src/faces/FacesTool.vala:233 +msgid "Save changes and close the Faces tool" +msgstr "Változások mentése és az Arcok eszköz bezárása" + +#: src/faces/FacesTool.vala:235 +msgid "No changes to save" +msgstr "Nincsenek mentendő változtatások" + +#: src/faces/FacesTool.vala:956 +msgid "Error trying to spawn face detection program:\n" +msgstr "Hiba az arcészlelő program indításakor:\n" + #: src/folders/FoldersBranch.vala:144 msgid "Folders" msgstr "Mappák" @@ -4338,8 +4408,16 @@ msgstr "Mappák" msgid "Browse the library’s folder structure" msgstr "Tallózás a gyűjtemény mappaszerkezetében" -#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1098 -#: src/SearchFilter.vala:1099 +#: src/import-roll/ImportRollBranch.vala:44 +msgid "Imports" +msgstr "Importálások" + +#: src/import-roll/ImportRollBranch.vala:44 +msgid "Browse the library’s import history" +msgstr "Tallózás a gyűjtemény importálási előzményeiben" + +#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1124 +#: src/SearchFilter.vala:1125 msgid "Flagged" msgstr "Megjelölve" @@ -4361,7 +4439,7 @@ msgid "Last Import" msgstr "Utolsó importálás" #: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 -#: ui/preferences_dialog.ui:512 +#: ui/preferences_dialog.ui:465 msgid "Library" msgstr "Gyűjtemény" @@ -4369,27 +4447,27 @@ msgstr "Gyűjtemény" msgid "Organize and browse your photos" msgstr "Rendszerezze fényképeit és tallózzon köztük" -#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1079 +#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1105 msgid "Photos" msgstr "Fényképek" -#: src/library/LibraryWindow.vala:508 +#: src/library/LibraryWindow.vala:526 msgid "Import From Folder" msgstr "Importálás mappából" -#: src/library/LibraryWindow.vala:515 +#: src/library/LibraryWindow.vala:533 msgid "Recurse Into Subfolders" msgstr "Belépés az almappákba is" -#: src/library/LibraryWindow.vala:583 ui/trash.ui:288 +#: src/library/LibraryWindow.vala:601 ui/trash.ui:288 msgid "Empty Trash" msgstr "Kuka ürítése" -#: src/library/LibraryWindow.vala:583 +#: src/library/LibraryWindow.vala:601 msgid "Emptying Trash…" msgstr "Kuka ürítése…" -#: src/library/LibraryWindow.vala:779 +#: src/library/LibraryWindow.vala:780 #, c-format msgid "" "Shotwell is configured to import photos to your home directory.\n" @@ -4402,33 +4480,33 @@ msgstr "" "szerkesztése alatt.\n" "Szeretné folytatni a fényképek importálását?" -#: src/library/LibraryWindow.vala:782 ui/preferences_dialog.ui:142 +#: src/library/LibraryWindow.vala:783 ui/preferences_dialog.ui:86 msgid "Library Location" msgstr "Gyűjtemény helye" #. TODO: Specify which directory/file. -#: src/library/LibraryWindow.vala:795 +#: src/library/LibraryWindow.vala:796 msgid "Photos cannot be imported from this directory." msgstr "Ebből a könyvtárból nem importálhatók fényképek." -#: src/library/LibraryWindow.vala:1075 +#: src/library/LibraryWindow.vala:1076 #, c-format msgid "%s (%d%%)" msgstr "%s (%d%%)" -#: src/library/LibraryWindow.vala:1119 src/library/LibraryWindow.vala:1130 +#: src/library/LibraryWindow.vala:1120 src/library/LibraryWindow.vala:1131 msgid "Updating library…" msgstr "Gyűjtemény frissítése…" -#: src/library/LibraryWindow.vala:1136 +#: src/library/LibraryWindow.vala:1137 msgid "Preparing to auto-import photos…" msgstr "Felkészülés fényképek automatikus importáláshoz…" -#: src/library/LibraryWindow.vala:1141 +#: src/library/LibraryWindow.vala:1142 msgid "Auto-importing photos…" msgstr "Fényképek automatikus importálása…" -#: src/library/LibraryWindow.vala:1149 +#: src/library/LibraryWindow.vala:1150 msgid "Writing metadata to files…" msgstr "Metaadatok írása a fájlokba…" @@ -4448,7 +4526,7 @@ msgstr "Kuka" msgid "Trash is empty" msgstr "A Kuka üres" -#: src/library/TrashPage.vala:110 +#: src/library/TrashPage.vala:110 ui/faces.ui:469 msgid "Delete" msgstr "Törlés" @@ -4496,40 +4574,40 @@ msgstr "" msgid "Unknown error attempting to verify Shotwell’s database: %s" msgstr "Ismeretlen hiba a Shotwell adatbázisának ellenőrzésekor: %s" -#: src/main.vala:104 +#: src/main.vala:108 msgid "Loading Shotwell" msgstr "A Shotwell betöltése" -#: src/main.vala:303 +#: src/main.vala:320 msgid "Path to Shotwell’s private data" msgstr "A Shotwell privát adatainak útvonala" -#: src/main.vala:303 +#: src/main.vala:320 msgid "DIRECTORY" msgstr "KÖNYVTÁR" -#: src/main.vala:307 +#: src/main.vala:324 msgid "Do not monitor library directory at runtime for changes" msgstr "Ne figyelje a változásokat a gyűjteménykönyvtárban futás közben" -#: src/main.vala:311 +#: src/main.vala:328 msgid "Don’t display startup progress meter" msgstr "Ne jelenítse meg az indítási folyamatjelzőt" -#: src/main.vala:315 +#: src/main.vala:332 msgid "Show the application’s version" msgstr "Az alkalmazás verziószámának megjelenítése" -#: src/main.vala:319 +#: src/main.vala:336 msgid "Start the application in fullscreen mode" msgstr "Az alkalmazás indítása teljes képernyős módban" #. init GTK (valac has already called g_threads_init()) -#: src/main.vala:356 +#: src/main.vala:373 msgid "[FILE]" msgstr "[FÁJL]" -#: src/main.vala:360 +#: src/main.vala:380 #, c-format msgid "Run “%s --help” to see a full list of available command line options.\n" msgstr "" @@ -4541,11 +4619,11 @@ msgstr "" msgid "Unable to process monitoring updates: %s" msgstr "A megfigyelés frissítései nem dolgozhatók fel: %s" -#: src/MediaPage.vala:158 +#: src/MediaPage.vala:157 msgid "Adjust the size of the thumbnails" msgstr "A bélyegképek méretének beállítása" -#: src/MediaPage.vala:502 +#: src/MediaPage.vala:500 #, c-format msgid "" "Shotwell was unable to play the selected video:\n" @@ -4554,34 +4632,34 @@ msgstr "" "A Shotwell nem tudta lejátszani a kijelölt videót:\n" "%s" -#: src/Page.vala:1327 +#: src/Page.vala:1324 msgid "No photos/videos" msgstr "Nincsenek fényképek vagy videók" -#: src/Page.vala:1331 +#: src/Page.vala:1328 msgid "No photos/videos found which match the current filter" msgstr "Nem található fénykép vagy videó, amely megfelel a jelenlegi szűrőnek" -#: src/Page.vala:2644 +#: src/Page.vala:2641 msgid "Photos cannot be exported to this directory." msgstr "Nem exportálhatók fényképek ebbe a könyvtárba." #. previous button -#: src/PhotoPage.vala:538 +#: src/PhotoPage.vala:550 msgid "Previous photo" msgstr "Előző fénykép" #. next button -#: src/PhotoPage.vala:544 +#: src/PhotoPage.vala:556 msgid "Next photo" msgstr "Következő fénykép" -#: src/PhotoPage.vala:1850 +#: src/PhotoPage.vala:1862 #, c-format msgid "Photo source file missing: %s" msgstr "A fénykép forrásfájlja hiányzik: %s" -#: src/PhotoPage.vala:3018 +#: src/PhotoPage.vala:3041 #, c-format msgid "Unable to export %s: %s" msgstr "%s exportálása sikertelen: %s" @@ -4590,6 +4668,10 @@ msgstr "%s exportálása sikertelen: %s" msgid "BMP" msgstr "BMP" +#: src/photos/GifSupport.vala:32 +msgid "GIF" +msgstr "GIF" + #: src/photos/JfifSupport.vala:84 msgid "JPEG" msgstr "JPEG" @@ -4677,19 +4759,19 @@ msgstr "" "\n" "%s" -#: src/Properties.vala:87 +#: src/Properties.vala:97 msgid "Today" msgstr "Ma" -#: src/Properties.vala:89 +#: src/Properties.vala:99 msgid "Yesterday" msgstr "Tegnap" -#: src/Properties.vala:346 +#: src/Properties.vala:349 msgid "Items:" msgstr "Elemek:" -#: src/Properties.vala:349 +#: src/Properties.vala:352 #, c-format msgid "%d Event" msgid_plural "%d Events" @@ -4697,107 +4779,103 @@ msgstr[0] "%d esemény" msgstr[1] "%d esemény" #. display only one date if start and end are the same -#: src/Properties.vala:380 +#: src/Properties.vala:383 msgid "Date:" msgstr "Dátum:" #. display only one time if start and end are the same -#: src/Properties.vala:384 +#: src/Properties.vala:387 msgid "Time:" msgstr "Idő:" #. display time range #. display date range -#: src/Properties.vala:387 src/Properties.vala:392 +#: src/Properties.vala:390 src/Properties.vala:395 msgid "From:" msgstr "Ettől:" -#: src/Properties.vala:388 src/Properties.vala:393 +#: src/Properties.vala:391 src/Properties.vala:396 msgid "To:" msgstr "Eddig:" -#: src/Properties.vala:407 +#: src/Properties.vala:410 msgid "Duration:" msgstr "Hossz:" -#: src/Properties.vala:407 +#: src/Properties.vala:410 #, c-format msgid "%.1f seconds" msgstr "%.1f másodperc" -#: src/Properties.vala:411 +#: src/Properties.vala:414 msgid "Developer:" msgstr "Előhívó:" #. nothing special to be done for now for Events -#: src/Properties.vala:586 +#: src/Properties.vala:592 msgid "Location:" msgstr "Hely:" -#: src/Properties.vala:589 +#: src/Properties.vala:595 msgid "File size:" msgstr "Fájl mérete:" -#: src/Properties.vala:593 +#: src/Properties.vala:599 msgid "Current Development:" msgstr "Jelenlegi előhívás:" -#: src/Properties.vala:595 +#: src/Properties.vala:601 msgid "Original dimensions:" msgstr "Eredeti méretek:" -#: src/Properties.vala:598 +#: src/Properties.vala:604 msgid "Camera make:" msgstr "Fényképezőgép gyártója:" -#: src/Properties.vala:601 +#: src/Properties.vala:607 msgid "Camera model:" msgstr "Fényképezőgép típusa:" -#: src/Properties.vala:604 +#: src/Properties.vala:610 msgid "Flash:" msgstr "Vaku:" -#: src/Properties.vala:606 +#: src/Properties.vala:612 msgid "Focal length:" msgstr "Fókusztávolság:" -#: src/Properties.vala:609 +#: src/Properties.vala:615 msgid "Exposure date:" msgstr "Exponálás dátuma:" -#: src/Properties.vala:612 +#: src/Properties.vala:618 msgid "Exposure time:" msgstr "Exponálási idő:" -#: src/Properties.vala:615 +#: src/Properties.vala:621 msgid "Exposure bias:" msgstr "Expozícióeltolás:" -#: src/Properties.vala:617 +#: src/Properties.vala:631 msgid "GPS latitude:" msgstr "GPS szélesség:" -#: src/Properties.vala:620 +#: src/Properties.vala:634 msgid "GPS longitude:" msgstr "GPS hosszúság:" -#: src/Properties.vala:623 +#: src/Properties.vala:637 msgid "Artist:" msgstr "Készítő:" -#: src/Properties.vala:625 +#: src/Properties.vala:639 msgid "Copyright:" msgstr "Copyright:" -#: src/Properties.vala:627 +#: src/Properties.vala:641 msgid "Software:" msgstr "Szoftver:" -#: src/Properties.vala:642 -msgid "Extended Information" -msgstr "Bővebb információk" - #: src/publishing/PublishingPluginHost.vala:11 msgid "Preparing for upload" msgstr "Előkészítés a feltöltéshez" @@ -4890,732 +4968,799 @@ msgstr "" msgid "Publishing" msgstr "Közzététel" -#: src/Resources.vala:141 src/Resources.vala:146 ui/collection.ui:151 +#: src/Resources.vala:111 src/Resources.vala:116 ui/collection.ui:151 msgid "Rotate" msgstr "Forgatás" -#: src/Resources.vala:142 +#: src/Resources.vala:112 msgid "Rotate Right" msgstr "Forgatás jobbra" -#: src/Resources.vala:143 ui/collection.ui:148 +#: src/Resources.vala:113 ui/collection.ui:148 msgid "Rotate the photos right (press Ctrl to rotate left)" msgstr "Fényképek forgatása jobbra (Ctrl = balra forgatás)" -#: src/Resources.vala:147 +#: src/Resources.vala:117 msgid "Rotate Left" msgstr "Forgatás balra" -#: src/Resources.vala:148 +#: src/Resources.vala:118 msgid "Rotate the photos left" msgstr "Fényképek forgatása balra" -#: src/Resources.vala:151 +#: src/Resources.vala:121 msgid "Flip Horizontally" msgstr "Tükrözés vízszintesen" -#: src/Resources.vala:154 +#: src/Resources.vala:124 msgid "Flip Vertically" msgstr "Tükrözés függőlegesen" -#: src/Resources.vala:156 ui/direct.ui:192 ui/events_directory.ui:168 -#: ui/event.ui:438 ui/import_queue.ui:83 ui/import.ui:201 +#: src/Resources.vala:126 ui/direct.ui:192 ui/events_directory.ui:168 +#: ui/event.ui:438 ui/faces.ui:448 ui/import_queue.ui:83 ui/import.ui:201 #: ui/manifest_widget.ui:35 ui/media.ui:421 ui/offline.ui:198 ui/photo.ui:405 #: ui/tags.ui:440 ui/trash.ui:207 msgid "_About" msgstr "_Névjegy" -#: src/Resources.vala:157 +#: src/Resources.vala:127 msgid "_Apply" msgstr "_Alkalmaz" -#: src/Resources.vala:160 ui/direct.ui:44 ui/events_directory.ui:32 -#: ui/event.ui:47 ui/import.ui:40 ui/media.ui:47 ui/offline.ui:32 -#: ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 +#: src/Resources.vala:130 ui/direct.ui:44 ui/events_directory.ui:32 +#: ui/event.ui:47 ui/faces.ui:47 ui/import.ui:40 ui/media.ui:47 +#: ui/offline.ui:32 ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 msgid "_Edit" msgstr "S_zerkesztés" -#: src/Resources.vala:161 +#: src/Resources.vala:131 msgid "_Forward" msgstr "_Előre" -#: src/Resources.vala:162 ui/direct.ui:62 ui/events_directory.ui:125 +#: src/Resources.vala:132 ui/direct.ui:62 ui/events_directory.ui:125 #: ui/photo.ui:173 msgid "Fulls_creen" msgstr "Teljes ké_pernyő" -#: src/Resources.vala:163 ui/direct.ui:174 ui/direct.ui:177 +#: src/Resources.vala:133 ui/direct.ui:174 ui/direct.ui:177 #: ui/events_directory.ui:150 ui/events_directory.ui:153 ui/event.ui:420 -#: ui/event.ui:423 ui/import_queue.ui:65 ui/import_queue.ui:68 ui/import.ui:183 -#: ui/import.ui:186 ui/media.ui:403 ui/media.ui:406 ui/offline.ui:180 -#: ui/offline.ui:183 ui/photo.ui:387 ui/photo.ui:390 ui/tags.ui:422 -#: ui/tags.ui:425 ui/trash.ui:189 ui/trash.ui:192 +#: ui/event.ui:423 ui/faces.ui:430 ui/faces.ui:433 ui/import_queue.ui:65 +#: ui/import_queue.ui:68 ui/import.ui:183 ui/import.ui:186 ui/media.ui:403 +#: ui/media.ui:406 ui/offline.ui:180 ui/offline.ui:183 ui/photo.ui:387 +#: ui/photo.ui:390 ui/tags.ui:422 ui/tags.ui:425 ui/trash.ui:189 +#: ui/trash.ui:192 msgid "_Help" msgstr "_Súgó" -#: src/Resources.vala:164 +#: src/Resources.vala:134 msgid "Leave _Fullscreen" msgstr "Teljes képernyő _elhagyása" -#: src/Resources.vala:165 src/Resources.vala:364 ui/tags.ui:450 +#: src/Resources.vala:135 src/Resources.vala:343 ui/tags.ui:450 msgid "_New" msgstr "Ú_j" -#: src/Resources.vala:166 +#: src/Resources.vala:136 msgid "_Next" msgstr "Kö_vetkező" -#: src/Resources.vala:169 src/Resources.vala:318 ui/events_directory.ui:65 -#: ui/event.ui:93 ui/import.ui:68 ui/media.ui:93 ui/offline.ui:72 -#: ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 +#: src/Resources.vala:139 src/Resources.vala:288 ui/events_directory.ui:65 +#: ui/event.ui:93 ui/faces.ui:93 ui/import.ui:68 ui/media.ui:93 +#: ui/offline.ui:72 ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 msgid "_Preferences" msgstr "_Beállítások" -#: src/Resources.vala:170 +#: src/Resources.vala:140 msgid "_Previous" msgstr "_Előző" -#: src/Resources.vala:172 ui/direct.ui:37 ui/events_directory.ui:25 -#: ui/event.ui:40 ui/import_queue.ui:31 ui/import.ui:33 ui/media.ui:40 -#: ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 +#: src/Resources.vala:142 ui/direct.ui:37 ui/events_directory.ui:25 +#: ui/event.ui:40 ui/faces.ui:40 ui/import_queue.ui:31 ui/import.ui:33 +#: ui/media.ui:40 ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 msgid "_Quit" msgstr "_Kilépés" -#: src/Resources.vala:173 +#: src/Resources.vala:143 msgid "_Refresh" msgstr "_Frissítés" -#: src/Resources.vala:175 +#: src/Resources.vala:145 msgid "_Revert" msgstr "_Visszaállítás" -#: src/Resources.vala:177 +#: src/Resources.vala:147 msgid "Save _As" msgstr "Men_tés másként" -#: src/Resources.vala:178 +#: src/Resources.vala:148 msgid "Sort _Ascending" msgstr "_Növekvő sorrend" -#: src/Resources.vala:179 +#: src/Resources.vala:149 msgid "Sort _Descending" msgstr "_Csökkenő sorrend" -#: src/Resources.vala:180 +#: src/Resources.vala:150 msgid "_Stop" msgstr "_Leállítás" -#: src/Resources.vala:181 +#: src/Resources.vala:151 msgid "_Undelete" msgstr "_Visszaállítás" -#: src/Resources.vala:182 +#: src/Resources.vala:152 msgid "_Normal Size" msgstr "_Normál méret" -#: src/Resources.vala:183 +#: src/Resources.vala:153 msgid "Best _Fit" msgstr "Legjobb _illeszkedés" -#: src/Resources.vala:184 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 -#: ui/photo.ui:144 ui/tags.ui:260 +#: src/Resources.vala:154 ui/direct.ui:69 ui/event.ui:260 ui/faces.ui:260 +#: ui/media.ui:260 ui/photo.ui:144 ui/tags.ui:260 msgid "Zoom _In" msgstr "_Nagyítás" -#: src/Resources.vala:185 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 -#: ui/photo.ui:149 ui/tags.ui:265 +#: src/Resources.vala:155 ui/direct.ui:74 ui/event.ui:265 ui/faces.ui:265 +#: ui/media.ui:265 ui/photo.ui:149 ui/tags.ui:265 msgid "Zoom _Out" msgstr "_Kicsinyítés" -#: src/Resources.vala:188 ui/collection.ui:167 +#: src/Resources.vala:158 ui/collection.ui:167 msgid "Enhance" msgstr "Feljavítás" -#: src/Resources.vala:189 ui/collection.ui:164 +#: src/Resources.vala:159 ui/collection.ui:164 msgid "Automatically improve the photo’s appearance" msgstr "Fényképek megjelenésének automatikus javítása" -#: src/Resources.vala:192 +#: src/Resources.vala:162 msgid "Copy Color Adjustments" msgstr "Színbeállítások másolása" -#: src/Resources.vala:193 +#: src/Resources.vala:163 msgid "Copy the color adjustments applied to the photo" msgstr "A képen alkalmazott színbeállítások másolása" -#: src/Resources.vala:196 +#: src/Resources.vala:166 msgid "Paste Color Adjustments" msgstr "Színbeállítások beillesztése" -#: src/Resources.vala:197 +#: src/Resources.vala:167 msgid "Apply copied color adjustments to the selected photos" msgstr "A másolt színbeállítások alkalmazása a kijelölt fényképekre" -#: src/Resources.vala:199 ui/direct.ui:139 ui/photo.ui:228 +#: src/Resources.vala:169 ui/direct.ui:139 ui/photo.ui:228 msgid "_Crop" msgstr "_Levágás" -#: src/Resources.vala:200 +#: src/Resources.vala:170 msgid "Crop" msgstr "Levágás" -#: src/Resources.vala:201 +#: src/Resources.vala:171 msgid "Crop the photo’s size" msgstr "Levágás a fénykép méretéből" -#: src/Resources.vala:204 +#: src/Resources.vala:174 msgid "Straighten" msgstr "Kiegyenesítés" -#: src/Resources.vala:205 +#: src/Resources.vala:175 msgid "Straighten the photo" msgstr "A fénykép kiegyenesítése" -#: src/Resources.vala:207 ui/direct.ui:149 ui/photo.ui:238 +#: src/Resources.vala:177 ui/direct.ui:149 ui/photo.ui:238 msgid "_Red-eye" msgstr "Vö_rösszem-hatás" -#: src/Resources.vala:208 +#: src/Resources.vala:178 msgid "Red-eye" msgstr "Vörösszem-hatás" -#: src/Resources.vala:209 +#: src/Resources.vala:179 msgid "Reduce or eliminate any red-eye effects in the photo" msgstr "Vörösszem-hatás csökkentése vagy eltávolítása a fényképről" -#: src/Resources.vala:211 ui/direct.ui:154 ui/photo.ui:243 +#: src/Resources.vala:181 ui/direct.ui:154 ui/photo.ui:243 msgid "_Adjust" msgstr "Mó_dosítás" -#: src/Resources.vala:212 +#: src/Resources.vala:182 msgid "Adjust" msgstr "Módosítás" -#: src/Resources.vala:213 +#: src/Resources.vala:183 msgid "Adjust the photo’s color and tone" msgstr "Fénykép színének és tónusának módosítása" -#: src/Resources.vala:216 +#: src/Resources.vala:186 msgid "Revert to Original" msgstr "Vissza az eredetihez" -#: src/Resources.vala:218 +#: src/Resources.vala:188 msgid "Revert External E_dits" msgstr "_Külső szerkesztések visszavonása" -#: src/Resources.vala:219 +#: src/Resources.vala:189 msgid "Revert to the master photo" msgstr "Visszatérés az eredeti fényképhez" -#: src/Resources.vala:222 +#: src/Resources.vala:192 msgid "Set selected image to be the new desktop background" msgstr "Kiválasztott fénykép beállítása asztalháttérként" -#: src/Resources.vala:223 +#: src/Resources.vala:193 msgid "Set as _Desktop Slideshow…" msgstr "Beállítás asztali _diavetítésként…" -#: src/Resources.vala:225 ui/direct.ui:47 ui/events_directory.ui:35 -#: ui/event.ui:50 ui/import.ui:43 ui/media.ui:50 ui/offline.ui:35 -#: ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 +#: src/Resources.vala:195 ui/direct.ui:47 ui/events_directory.ui:35 +#: ui/event.ui:50 ui/faces.ui:50 ui/import.ui:43 ui/media.ui:50 +#: ui/offline.ui:35 ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 msgid "_Undo" msgstr "_Visszavonás:" -#: src/Resources.vala:226 +#: src/Resources.vala:196 msgid "Undo" msgstr "Visszavonás" -#: src/Resources.vala:228 ui/direct.ui:52 ui/events_directory.ui:40 -#: ui/event.ui:55 ui/import.ui:48 ui/media.ui:55 ui/offline.ui:40 -#: ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 +#: src/Resources.vala:198 ui/direct.ui:52 ui/events_directory.ui:40 +#: ui/event.ui:55 ui/faces.ui:55 ui/import.ui:48 ui/media.ui:55 +#: ui/offline.ui:40 ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 msgid "_Redo" msgstr "Új_ra:" -#: src/Resources.vala:229 +#: src/Resources.vala:199 msgid "Redo" msgstr "Újra" -#: src/Resources.vala:231 ui/events_directory.ui:139 ui/events_directory.ui:181 +#: src/Resources.vala:201 ui/events_directory.ui:139 ui/events_directory.ui:181 #: ui/event.ui:393 ui/event.ui:588 msgid "Re_name Event…" msgstr "Esemé_ny átnevezése…" -#: src/Resources.vala:234 ui/event.ui:373 ui/event.ui:580 +#: src/Resources.vala:204 ui/event.ui:373 ui/event.ui:580 msgid "Make _Key Photo for Event" msgstr "_Esemény kulcsképévé tétel" -#: src/Resources.vala:235 +#: src/Resources.vala:205 msgid "Make Key Photo for Event" msgstr "Esemény kulcsképévé tétel" -#: src/Resources.vala:237 ui/event.ui:382 ui/media.ui:376 ui/tags.ui:376 +#: src/Resources.vala:207 ui/event.ui:382 ui/faces.ui:376 ui/media.ui:376 +#: ui/tags.ui:376 msgid "_New Event" msgstr "Új esemé_ny" -#: src/Resources.vala:238 +#: src/Resources.vala:208 msgid "New Event" msgstr "Új esemény" -#: src/Resources.vala:240 +#: src/Resources.vala:210 msgid "Move Photos" msgstr "Fényképek áthelyezése" -#: src/Resources.vala:241 +#: src/Resources.vala:211 msgid "Move photos to an event" msgstr "Fényképek áthelyezése eseménybe" -#: src/Resources.vala:243 ui/events_directory.ui:135 ui/events_directory.ui:177 +#: src/Resources.vala:213 ui/events_directory.ui:135 ui/events_directory.ui:177 msgid "_Merge Events" msgstr "_Események egyesítése" -#: src/Resources.vala:244 +#: src/Resources.vala:214 msgid "Merge" msgstr "Egyesítés" -#: src/Resources.vala:245 +#: src/Resources.vala:215 msgid "Combine events into a single event" msgstr "Események egyesítése egyetlen eseménnyé" -#: src/Resources.vala:247 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 -#: ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 ui/tags.ui:286 +#: src/Resources.vala:217 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 +#: ui/faces.ui:286 ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 +#: ui/tags.ui:286 msgid "_Set Rating" msgstr "É_rtékelés megadása" -#: src/Resources.vala:248 +#: src/Resources.vala:218 msgid "Set Rating" msgstr "Értékelés megadása" -#: src/Resources.vala:249 +#: src/Resources.vala:219 msgid "Change the rating of your photo" msgstr "Fénykép értékelésének módosítása" -#: src/Resources.vala:251 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 -#: ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 ui/tags.ui:326 +#: src/Resources.vala:221 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 +#: ui/faces.ui:326 ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 +#: ui/tags.ui:326 msgid "_Increase" msgstr "_Növelés" -#: src/Resources.vala:252 +#: src/Resources.vala:222 msgid "Increase Rating" msgstr "Értékelés növelése" -#: src/Resources.vala:254 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 -#: ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 ui/tags.ui:331 +#: src/Resources.vala:224 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 +#: ui/faces.ui:331 ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 +#: ui/tags.ui:331 msgid "_Decrease" msgstr "_Csökkentés" -#: src/Resources.vala:255 +#: src/Resources.vala:225 msgid "Decrease Rating" msgstr "Értékelés csökkentése" -#: src/Resources.vala:257 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 -#: ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 ui/tags.ui:314 +#: src/Resources.vala:227 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 +#: ui/faces.ui:314 ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 +#: ui/tags.ui:314 msgid "_Unrated" msgstr "É_rtékeletlen" -#: src/Resources.vala:258 +#: src/Resources.vala:228 msgid "Unrated" msgstr "Értékeletlen" -#: src/Resources.vala:259 +#: src/Resources.vala:229 msgid "Rate Unrated" msgstr "Értékelés törlése" -#: src/Resources.vala:260 +#: src/Resources.vala:230 msgid "Setting as unrated" msgstr "Beállítás értékeletlenre" -#: src/Resources.vala:261 +#: src/Resources.vala:231 msgid "Remove any ratings" msgstr "Minden értékelés eltávolítása" -#: src/Resources.vala:263 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 -#: ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 ui/tags.ui:319 +#: src/Resources.vala:233 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 +#: ui/faces.ui:319 ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 +#: ui/tags.ui:319 msgid "_Rejected" msgstr "_Visszautasított" -#: src/Resources.vala:264 +#: src/Resources.vala:234 msgid "Rejected" msgstr "Visszautasítva" -#: src/Resources.vala:265 +#: src/Resources.vala:235 msgid "Rate Rejected" msgstr "Értékelés visszautasítottként" -#: src/Resources.vala:266 +#: src/Resources.vala:236 msgid "Setting as rejected" msgstr "Beállítás visszautasítottra" -#: src/Resources.vala:267 +#: src/Resources.vala:237 msgid "Set rating to rejected" msgstr "Értékelés beállítása visszautasítottra" -#: src/Resources.vala:269 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 -#: ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 ui/trash.ui:162 +#: src/Resources.vala:239 ui/event.ui:196 ui/faces.ui:196 ui/import.ui:156 +#: ui/media.ui:196 ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 +#: ui/trash.ui:162 msgid "Rejected _Only" msgstr "_Csak visszautasított" -#: src/Resources.vala:270 +#: src/Resources.vala:240 msgid "Rejected Only" msgstr "Csak visszautasított" -#: src/Resources.vala:271 +#: src/Resources.vala:241 msgid "Show only rejected photos" msgstr "Csak a visszautasított fényképek megjelenítése" -#: src/Resources.vala:273 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 -#: ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 ui/trash.ui:156 +#: src/Resources.vala:243 ui/event.ui:190 ui/faces.ui:190 ui/import.ui:150 +#: ui/media.ui:190 ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 +#: ui/trash.ui:156 msgid "All + _Rejected" msgstr "Összes + _visszautasított" -#: src/Resources.vala:274 +#: src/Resources.vala:244 msgctxt "Tooltip" msgid "Show all photos, including rejected" msgstr "Összes fénykép megjelenítése, a visszautasítottak is" -#: src/Resources.vala:276 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 -#: ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 ui/trash.ui:150 +#: src/Resources.vala:246 ui/event.ui:184 ui/faces.ui:184 ui/import.ui:144 +#: ui/media.ui:184 ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 +#: ui/trash.ui:150 msgid "_All Photos" msgstr "Öss_zes fénykép" #. Button tooltip -#: src/Resources.vala:278 +#: src/Resources.vala:248 msgid "Show all photos" msgstr "Összes fénykép megjelenítése" -#: src/Resources.vala:280 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 -#: ui/tags.ui:144 +#: src/Resources.vala:250 ui/event.ui:144 ui/faces.ui:144 ui/media.ui:144 +#: ui/photo.ui:120 ui/tags.ui:144 msgid "_Ratings" msgstr "É_rtékelések" -#: src/Resources.vala:281 +#: src/Resources.vala:251 msgid "Display each photo’s rating" msgstr "A fényképek értékelésének megjelenítése" -#: src/Resources.vala:283 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 -#: ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 +#: src/Resources.vala:253 ui/event.ui:151 ui/faces.ui:151 ui/import.ui:111 +#: ui/media.ui:151 ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 msgid "_Filter Photos" msgstr "_Fényképek szűrése" -#: src/Resources.vala:284 +#: src/Resources.vala:254 msgid "Filter Photos" msgstr "Fényképek szűrése" -#: src/Resources.vala:285 +#: src/Resources.vala:255 msgid "Limit the number of photos displayed based on a filter" msgstr "A megjelenített fényképek számának korlátozása szűrővel" -#: src/Resources.vala:288 +#: src/Resources.vala:258 msgid "Duplicate" msgstr "Kettőzés" -#: src/Resources.vala:289 +#: src/Resources.vala:259 msgid "Make a duplicate of the photo" msgstr "Másolat készítése a fényképről" -#: src/Resources.vala:291 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 -#: ui/tags.ui:17 +#: src/Resources.vala:261 ui/event.ui:17 ui/faces.ui:17 ui/media.ui:17 +#: ui/photo.ui:17 ui/tags.ui:17 msgid "_Export…" msgstr "E_xportálás…" -#: src/Resources.vala:293 +#: src/Resources.vala:263 msgid "_Print…" msgstr "_Nyomtatás…" -#: src/Resources.vala:295 +#: src/Resources.vala:265 msgid "Pu_blish…" msgstr "Kö_zzététel…" -#: src/Resources.vala:297 ui/collection.ui:189 +#: src/Resources.vala:267 ui/collection.ui:189 msgid "Publish to various websites" msgstr "Közzététel különböző weboldalakon" -#: src/Resources.vala:299 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 -#: ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 ui/tags.ui:340 +#: src/Resources.vala:269 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 +#: ui/faces.ui:340 ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 +#: ui/tags.ui:340 msgid "Edit _Title…" msgstr "_Cím szerkesztése…" #. Button label -#: src/Resources.vala:301 +#: src/Resources.vala:271 msgctxt "Button Label" msgid "Edit Title" msgstr "Cím szerkesztése" -#: src/Resources.vala:303 ui/collection.ui:103 ui/events_directory.ui:144 +#: src/Resources.vala:273 ui/collection.ui:103 ui/events_directory.ui:144 #: ui/events_directory.ui:186 ui/event.ui:345 ui/event.ui:398 ui/event.ui:542 -#: ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 ui/tags.ui:345 +#: ui/faces.ui:345 ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 +#: ui/tags.ui:345 msgid "Edit _Comment…" msgstr "Megjegyzés s_zerkesztése…" #. Button label -#: src/Resources.vala:305 +#: src/Resources.vala:275 msgid "Edit Comment" msgstr "A megjegyzés szerkesztése" -#: src/Resources.vala:307 ui/event.ui:592 +#: src/Resources.vala:277 ui/event.ui:592 msgid "Edit Event _Comment…" msgstr "_Eseménymegjegyzés szerkesztése…" -#: src/Resources.vala:310 ui/direct.ui:167 ui/photo.ui:337 +#: src/Resources.vala:280 ui/direct.ui:167 ui/photo.ui:337 msgid "_Adjust Date and Time…" msgstr "_Dátum és idő módosítása…" -#: src/Resources.vala:311 +#: src/Resources.vala:281 msgid "Adjust Date and Time" msgstr "Dátum és idő módosítása" -#: src/Resources.vala:313 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 -#: ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 +#: src/Resources.vala:283 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 +#: ui/faces.ui:390 ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 msgid "Add _Tags…" msgstr "_Címkék hozzáadása…" -#: src/Resources.vala:314 ui/photo_context.ui:17 +#: src/Resources.vala:284 ui/photo_context.ui:17 msgid "_Add Tags…" msgstr "Címkék _hozzáadása…" #. Dialog title -#: src/Resources.vala:316 +#: src/Resources.vala:286 msgctxt "Dialog Title" msgid "Add Tags" msgstr "Címkék hozzáadása" -#: src/Resources.vala:325 ui/photo_context.ui:135 +#: src/Resources.vala:295 ui/photo_context.ui:135 msgid "Send T_o…" msgstr "_Küldés…" -#: src/Resources.vala:327 +#: src/Resources.vala:297 msgid "_Find…" msgstr "_Keresés…" -#: src/Resources.vala:328 ui/collection.ui:217 ui/offline.ui:239 +#: src/Resources.vala:298 ui/collection.ui:217 ui/offline.ui:239 #: ui/trash.ui:312 msgid "Find" msgstr "Keresés" -#: src/Resources.vala:329 ui/collection.ui:214 ui/offline.ui:236 +#: src/Resources.vala:299 ui/collection.ui:214 ui/offline.ui:236 #: ui/trash.ui:309 msgid "Find an image by typing text that appears in its name or tags" msgstr "Kép keresése a névben vagy a címkékben megjelenő szöveg beírásával" -#: src/Resources.vala:331 +#: src/Resources.vala:301 msgid "_Flag" msgstr "_Megjelölés" -#: src/Resources.vala:333 +#: src/Resources.vala:303 msgid "Un_flag" msgstr "Megjelölés _törlése" -#: src/Resources.vala:336 +#: src/Resources.vala:307 +msgid "Mark faces of people in the photo" +msgstr "Emberek arcainak megjelölése a fényképen" + +#: src/Resources.vala:308 +msgid "Modify Faces" +msgstr "Arcok módosítása" + +#: src/Resources.vala:309 +msgid "Delete Face" +msgstr "Arc törlése" + +#: src/Resources.vala:311 src/Resources.vala:353 ui/tags.ui:456 +msgid "_Rename…" +msgstr "Át_nevezés…" + +#: src/Resources.vala:315 #, c-format msgid "Unable to launch editor: %s" msgstr "A szerkesztő nem indítható el: %s" -#: src/Resources.vala:341 +#: src/Resources.vala:320 #, c-format msgid "Add Tag “%s”" msgstr "„%s” címke hozzáadása" #. Used when adding two tags to photo(s) -#: src/Resources.vala:344 +#: src/Resources.vala:323 #, c-format msgid "Add Tags “%s” and “%s”" msgstr "„%s” és „%s” címke hozzáadása" #. Undo/Redo command name (in Edit menu) -#: src/Resources.vala:349 +#: src/Resources.vala:328 msgctxt "UndoRedo menu entry" msgid "Add Tags" msgstr "Címkék hozzáadása" -#: src/Resources.vala:354 +#: src/Resources.vala:333 #, c-format msgid "_Delete Tag “%s”" msgstr "„%s” címke _törlése" -#: src/Resources.vala:358 +#: src/Resources.vala:337 #, c-format msgid "Delete Tag “%s”" msgstr "„%s” címke törlése" -#: src/Resources.vala:361 +#: src/Resources.vala:340 msgid "Delete Tag" msgstr "Címke törlése" -#: src/Resources.vala:367 +#: src/Resources.vala:346 #, c-format msgid "Re_name Tag “%s”…" msgstr "„%s” címke át_nevezése…" -#: src/Resources.vala:371 +#: src/Resources.vala:350 #, c-format msgid "Rename Tag “%s” to “%s”" msgstr "„%s” címke átnevezése erre: „%s”" -#: src/Resources.vala:374 ui/tags.ui:456 -msgid "_Rename…" -msgstr "Át_nevezés…" - -#: src/Resources.vala:376 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 -#: ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 ui/tags.ui:395 +#: src/Resources.vala:355 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 +#: ui/faces.ui:395 ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 +#: ui/tags.ui:395 msgid "Modif_y Tags…" msgstr "Cí_mkék módosítása…" -#: src/Resources.vala:377 +#: src/Resources.vala:356 msgid "Modify Tags" msgstr "Címkék módosítása" -#: src/Resources.vala:380 +#: src/Resources.vala:359 #, c-format msgid "Tag Photo as “%s”" msgid_plural "Tag Photos as “%s”" msgstr[0] "Fénykép címkézése ezzel: „%s”" msgstr[1] "Fényképek címkézése ezzel: „%s”" -#: src/Resources.vala:386 +#: src/Resources.vala:365 #, c-format msgid "Tag the selected photo as “%s”" msgid_plural "Tag the selected photos as “%s”" msgstr[0] "Kiválasztott fénykép címkézése ezzel: „%s”" msgstr[1] "Kiválasztott fényképek címkézése ezzel: „%s”" -#: src/Resources.vala:392 +#: src/Resources.vala:371 #, c-format msgid "Remove Tag “%s” From _Photo" msgid_plural "Remove Tag “%s” From _Photos" msgstr[0] "„%s” címke _eltávolítása a fényképről" msgstr[1] "„%s” címke _eltávolítása a fényképekről" -#: src/Resources.vala:398 +#: src/Resources.vala:377 #, c-format msgid "Remove Tag “%s” From Photo" msgid_plural "Remove Tag “%s” From Photos" msgstr[0] "„%s” címke eltávolítása a fényképről" msgstr[1] "„%s” címke eltávolítása a fényképekről" -#: src/Resources.vala:404 +#: src/Resources.vala:383 #, c-format msgid "Unable to rename tag to “%s” because the tag already exists." msgstr "A címke nem nevezhető át erre: „%s”, mert a címke már létezik." -#: src/Resources.vala:408 +#: src/Resources.vala:387 #, c-format msgid "Unable to rename search to “%s” because the search already exists." msgstr "Nem lehet átnevezni a keresést erre: „%s”, mert a keresés már létezik." #. Saved search button -#: src/Resources.vala:411 src/SearchFilter.vala:1120 +#: src/Resources.vala:390 src/SearchFilter.vala:1146 msgid "Saved Search" msgstr "Mentett keresés" -#: src/Resources.vala:413 +#: src/Resources.vala:392 msgid "Delete Search" msgstr "Keresés törlése" -#: src/Resources.vala:416 ui/savedsearch.ui:10 +#: src/Resources.vala:395 ui/savedsearch.ui:10 msgid "_Edit…" msgstr "S_zerkesztés…" -#: src/Resources.vala:417 ui/savedsearch.ui:6 +#: src/Resources.vala:396 ui/savedsearch.ui:6 msgid "Re_name…" msgstr "Át_nevezés…" -#: src/Resources.vala:420 +#: src/Resources.vala:399 #, c-format msgid "Rename Search “%s” to “%s”" msgstr "„%s” keresés átnevezése erre: „%s”" -#: src/Resources.vala:424 +#: src/Resources.vala:403 #, c-format msgid "Delete Search “%s”" msgstr "„%s” keresés törlése" -#: src/Resources.vala:561 +#: src/Resources.vala:408 +#, c-format +msgid "Unable to rename face to “%s” because the face already exists." +msgstr "Az arc nem nevezhető át erre: „%s”, mert az arc már létezik." + +#: src/Resources.vala:412 +#, c-format +msgid "Remove Face “%s” From _Photo" +msgid_plural "Remove Face “%s” From _Photos" +msgstr[0] "„%s” arc _eltávolítása a fényképről" +msgstr[1] "„%s” arc _eltávolítása a fényképekről" + +#: src/Resources.vala:417 +#, c-format +msgid "Remove Face “%s” From Photo" +msgid_plural "Remove Face “%s” From Photos" +msgstr[0] "„%s” arc eltávolítása a fényképről" +msgstr[1] "„%s” arc eltávolítása a fényképekről" + +#: src/Resources.vala:422 +#, c-format +msgid "Re_name Face “%s”…" +msgstr "„%s” arc át_nevezése…" + +#: src/Resources.vala:426 +#, c-format +msgid "Rename Face “%s” to “%s”" +msgstr "„%s” arc átnevezése erre: „%s”" + +#: src/Resources.vala:430 +#, c-format +msgid "_Delete Face “%s”" +msgstr "„%s” arc _törlése" + +#: src/Resources.vala:434 +#, c-format +msgid "Delete Face “%s”" +msgstr "„%s” arc törlése" + +#: src/Resources.vala:636 #, c-format msgid "Rate %s" msgstr "%s értékelés" -#: src/Resources.vala:562 +#: src/Resources.vala:637 #, c-format msgid "Set rating to %s" msgstr "Értékelés beállítása erre: %s" -#: src/Resources.vala:563 +#: src/Resources.vala:638 #, c-format msgid "Setting rating to %s" msgstr "Értékelés beállítása erre: %s" -#: src/Resources.vala:565 +#: src/Resources.vala:640 #, c-format msgid "Display %s" msgstr "%s megjelenítése" -#: src/Resources.vala:566 +#: src/Resources.vala:641 #, c-format msgid "Only show photos with a rating of %s" msgstr "Csak azon fényképek megjelenítése, amelyek értékelése %s" -#: src/Resources.vala:567 +#: src/Resources.vala:642 #, c-format msgid "%s or Better" msgstr "%s vagy jobb" -#: src/Resources.vala:568 +#: src/Resources.vala:643 #, c-format msgid "Display %s or Better" msgstr "%s vagy jobb megjelenítése" -#: src/Resources.vala:569 +#: src/Resources.vala:644 #, c-format msgid "Only show photos with a rating of %s or better" msgstr "Csak azon fényképek mutatása, amelyek értékelése %s vagy jobb" -#: src/Resources.vala:660 ui/trash.ui:255 +#: src/Resources.vala:735 ui/trash.ui:255 msgid "Remove the selected photos from the trash" msgstr "Kijelölt fényképek eltávolítása a Kukából" -#: src/Resources.vala:661 ui/offline.ui:221 +#: src/Resources.vala:736 ui/offline.ui:221 msgid "Remove the selected photos from the library" msgstr "Kijelölt fényképek eltávolítása a gyűjteményből" -#: src/Resources.vala:663 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 +#: src/Resources.vala:738 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 msgid "_Restore" msgstr "_Visszaállítás" -#: src/Resources.vala:664 ui/trash.ui:270 +#: src/Resources.vala:739 ui/trash.ui:270 msgid "Move the selected photos back into the library" msgstr "Kijelölt fényképek visszaállítása a gyűjteménybe" -#: src/Resources.vala:666 ui/collection.ui:123 ui/direct_context.ui:18 -#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/media.ui:27 +#: src/Resources.vala:741 ui/collection.ui:123 ui/direct_context.ui:18 +#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/faces.ui:27 ui/media.ui:27 #: ui/photo_context.ui:130 ui/photo.ui:35 ui/tags.ui:27 ui/trash.ui:19 #: ui/trash.ui:227 msgid "Show in File Mana_ger" msgstr "_Megjelenítés a fájlkezelőben" -#: src/Resources.vala:667 +#: src/Resources.vala:742 msgid "Open the selected photo’s directory in the file manager" msgstr "Kijelölt fénykép könyvtárának megnyitása a fájlkezelőben" -#: src/Resources.vala:670 +#: src/Resources.vala:745 #, c-format msgid "Unable to open in file manager: %s" msgstr "Nem nyitható meg a fájlkezelőben: %s" -#: src/Resources.vala:673 ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 -#: ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 ui/tags.ui:74 +#: src/Resources.vala:748 ui/event.ui:74 ui/faces.ui:74 ui/media.ui:74 +#: ui/offline.ui:58 ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 +#: ui/tags.ui:74 msgid "R_emove From Library" msgstr "_Eltávolítás a gyűjteményből" -#: src/Resources.vala:675 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 -#: ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 ui/tags.ui:79 +#: src/Resources.vala:750 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 +#: ui/faces.ui:79 ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 +#: ui/tags.ui:79 msgid "_Move to Trash" msgstr "Á_thelyezés a Kukába" -#: src/Resources.vala:677 ui/events_directory.ui:58 ui/event.ui:86 -#: ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 ui/trash.ui:74 +#: src/Resources.vala:752 ui/events_directory.ui:58 ui/event.ui:86 +#: ui/faces.ui:86 ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 +#: ui/trash.ui:74 msgid "Select _All" msgstr "Összes _kijelölése" -#: src/Resources.vala:678 +#: src/Resources.vala:753 msgid "Select all items" msgstr "Minden elem kijelölése" @@ -5628,14 +5773,14 @@ msgstr "Minden elem kijelölése" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format #. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:739 +#: src/Resources.vala:814 msgid "%a %b %d, %Y" msgstr "%Y. %b. %d., %a" #. / Locale-specific starting date format for multi-date strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:744 +#: src/Resources.vala:819 msgctxt "MultidayFormat" msgid "%a %b %d" msgstr "%a. %b. %d" @@ -5643,7 +5788,7 @@ msgstr "%a. %b. %d" #. / Locale-specific ending date format for multi-date strings, #. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:749 +#: src/Resources.vala:824 msgctxt "MultidayFormat" msgid "%d, %Y" msgstr "%Y. %d." @@ -5651,7 +5796,7 @@ msgstr "%Y. %d." #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:754 +#: src/Resources.vala:829 msgctxt "MultimonthFormat" msgid "%a %b %d" msgstr "%a. %b. %d" @@ -5659,170 +5804,174 @@ msgstr "%a. %b. %d" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:759 +#: src/Resources.vala:834 msgctxt "MultimonthFormat" msgid "%a %b %d, %Y" msgstr "%Y. %b. %d., %a" -#: src/Screensaver.vala:18 src/SlideshowPage.vala:115 +#: src/Screensaver.vala:18 src/SlideshowPage.vala:117 msgid "Slideshow" msgstr "Diavetítés" #. Ordering must correspond with SearchConditionText.Context -#: src/searches/SavedSearchDialog.vala:167 +#: src/searches/SavedSearchDialog.vala:170 msgid "contains" msgstr "tartalmazza" #. Ordering must correspond with Context -#: src/searches/SavedSearchDialog.vala:168 -#: src/searches/SavedSearchDialog.vala:499 +#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:502 msgid "is exactly" msgstr "pontosan ez" -#: src/searches/SavedSearchDialog.vala:169 +#: src/searches/SavedSearchDialog.vala:172 msgid "starts with" msgstr "ezzel kezdődik" -#: src/searches/SavedSearchDialog.vala:170 +#: src/searches/SavedSearchDialog.vala:173 msgid "ends with" msgstr "ezzel végződik" -#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:174 msgid "does not contain" msgstr "nem tartalmazza" -#: src/searches/SavedSearchDialog.vala:172 -#: src/searches/SavedSearchDialog.vala:503 +#: src/searches/SavedSearchDialog.vala:175 +#: src/searches/SavedSearchDialog.vala:506 msgid "is not set" msgstr "nincs beállítva" -#: src/searches/SavedSearchDialog.vala:173 +#: src/searches/SavedSearchDialog.vala:176 msgid "is set" msgstr "beállítva" #. Ordering must correspond with SearchConditionMediaType.Context -#: src/searches/SavedSearchDialog.vala:247 -#: src/searches/SavedSearchDialog.vala:378 -#: src/searches/SavedSearchDialog.vala:443 +#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:381 +#: src/searches/SavedSearchDialog.vala:446 msgid "is" msgstr "=" -#: src/searches/SavedSearchDialog.vala:248 +#: src/searches/SavedSearchDialog.vala:251 msgid "is not" msgstr "nem" #. Ordering must correspond with SearchConditionMediaType.MediaType -#: src/searches/SavedSearchDialog.vala:254 +#: src/searches/SavedSearchDialog.vala:257 msgid "any photo" msgstr "bármely fénykép" -#: src/searches/SavedSearchDialog.vala:255 +#: src/searches/SavedSearchDialog.vala:258 msgid "a raw photo" msgstr "nyers fénykép" -#: src/searches/SavedSearchDialog.vala:256 +#: src/searches/SavedSearchDialog.vala:259 msgid "a video" msgstr "videó" -#: src/searches/SavedSearchDialog.vala:310 +#: src/searches/SavedSearchDialog.vala:313 msgid "has" msgstr "van" -#: src/searches/SavedSearchDialog.vala:311 +#: src/searches/SavedSearchDialog.vala:314 msgid "has no" msgstr "nincs" -#: src/searches/SavedSearchDialog.vala:316 +#: src/searches/SavedSearchDialog.vala:319 msgid "modifications" msgstr "változtatások" -#: src/searches/SavedSearchDialog.vala:317 +#: src/searches/SavedSearchDialog.vala:320 msgid "internal modifications" msgstr "belső változtatások" -#: src/searches/SavedSearchDialog.vala:318 +#: src/searches/SavedSearchDialog.vala:321 msgid "external modifications" msgstr "külső változtatások" #. Ordering must correspond with SearchConditionFlagged.State -#: src/searches/SavedSearchDialog.vala:372 +#: src/searches/SavedSearchDialog.vala:375 msgid "flagged" msgstr "megjelölt" -#: src/searches/SavedSearchDialog.vala:373 +#: src/searches/SavedSearchDialog.vala:376 msgid "not flagged" msgstr "jelöletlen" -#: src/searches/SavedSearchDialog.vala:436 +#: src/searches/SavedSearchDialog.vala:439 msgid "and higher" msgstr "és nagyobb" -#: src/searches/SavedSearchDialog.vala:437 +#: src/searches/SavedSearchDialog.vala:440 msgid "only" msgstr "csak" -#: src/searches/SavedSearchDialog.vala:438 +#: src/searches/SavedSearchDialog.vala:441 msgid "and lower" msgstr "és kisebb" -#: src/searches/SavedSearchDialog.vala:500 +#: src/searches/SavedSearchDialog.vala:503 msgid "is after" msgstr "után volt" -#: src/searches/SavedSearchDialog.vala:501 +#: src/searches/SavedSearchDialog.vala:504 msgid "is before" msgstr "előtte volt" -#: src/searches/SavedSearchDialog.vala:502 +#: src/searches/SavedSearchDialog.vala:505 msgid "is between" msgstr "ezek közt" -#: src/searches/SavedSearchDialog.vala:515 +#: src/searches/SavedSearchDialog.vala:518 msgid "and" msgstr "és" -#: src/searches/SearchBoolean.vala:157 +#: src/searches/SearchBoolean.vala:169 msgid "Any text" msgstr "Bármilyen szöveg" -#: src/searches/SearchBoolean.vala:160 +#: src/searches/SearchBoolean.vala:172 msgid "Title" msgstr "Cím" -#: src/searches/SearchBoolean.vala:163 +#: src/searches/SearchBoolean.vala:175 msgid "Tag" msgstr "Címke" -#: src/searches/SearchBoolean.vala:166 +#: src/searches/SearchBoolean.vala:178 msgid "Comment" msgstr "Megjegyzés" -#: src/searches/SearchBoolean.vala:169 +#: src/searches/SearchBoolean.vala:181 msgid "Event name" msgstr "Eseménynév" -#: src/searches/SearchBoolean.vala:172 +#: src/searches/SearchBoolean.vala:184 msgid "File name" msgstr "Fájlnév" -#: src/searches/SearchBoolean.vala:175 +#: src/searches/SearchBoolean.vala:187 +msgid "Face" +msgstr "Arc" + +#: src/searches/SearchBoolean.vala:190 msgid "Media type" msgstr "Adathordozó típusa" -#: src/searches/SearchBoolean.vala:178 +#: src/searches/SearchBoolean.vala:193 msgid "Flag state" msgstr "Jelölő állapota" -#: src/searches/SearchBoolean.vala:181 +#: src/searches/SearchBoolean.vala:196 msgid "Photo state" msgstr "Fénykép állapota" -#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:827 -#: src/SearchFilter.vala:1110 +#: src/searches/SearchBoolean.vala:199 src/SearchFilter.vala:853 +#: src/SearchFilter.vala:1136 msgid "Rating" msgstr "Értékelés" -#: src/searches/SearchBoolean.vala:187 +#: src/searches/SearchBoolean.vala:202 msgid "Date" msgstr "Dátum" @@ -5834,27 +5983,27 @@ msgstr "Mentett keresések" msgid "Organize your saved searches" msgstr "Rendszerezze mentett kereséseit" -#: src/SearchFilter.vala:811 +#: src/SearchFilter.vala:837 msgid "★+ Rating" msgstr "★+ Értékelés" -#: src/SearchFilter.vala:814 +#: src/SearchFilter.vala:840 msgid "★★+ Rating" msgstr "★★+ Értékelés" -#: src/SearchFilter.vala:817 +#: src/SearchFilter.vala:843 msgid "★★★+ Rating" msgstr "★★★+ Értékelés" -#: src/SearchFilter.vala:820 +#: src/SearchFilter.vala:846 msgid "★★★★+ Rating" msgstr "★★★★+ Értékelés" -#: src/SearchFilter.vala:824 +#: src/SearchFilter.vala:850 msgid "★★★★★+ Rating" msgstr "★★★★★+ Értékelés" -#: src/SearchFilter.vala:1060 +#: src/SearchFilter.vala:1086 #, c-format msgid "Error loading search bar UI: %s" msgstr "Hiba a keresősáv felületének betöltésekor: %s" @@ -5864,71 +6013,71 @@ msgstr "Hiba a keresősáv felületének betöltésekor: %s" #. Prepare the close menu for use, but don't #. display it yet; we'll connect it to secondary #. click later on. -#: src/SearchFilter.vala:1069 +#: src/SearchFilter.vala:1095 msgid "Close" msgstr "Bezárás" #. Type label and toggles -#: src/SearchFilter.vala:1075 +#: src/SearchFilter.vala:1101 msgid "Type" msgstr "Típus" -#: src/SearchFilter.vala:1082 +#: src/SearchFilter.vala:1108 msgid "Videos" msgstr "Videók" -#: src/SearchFilter.vala:1085 +#: src/SearchFilter.vala:1111 msgid "RAW Photos" msgstr "RAW fényképek" -#: src/SearchFilter.vala:1121 +#: src/SearchFilter.vala:1147 msgid "Use a saved search to filter items in the current view" msgstr "Mentett keresés használata a jelenlegi nézetben történő szűréshez" #. Set up toolbar #. add toolbar buttons -#: src/SlideshowPage.vala:134 +#: src/SlideshowPage.vala:136 msgid "Back" msgstr "Vissza" -#: src/SlideshowPage.vala:136 +#: src/SlideshowPage.vala:138 msgid "Go to the previous photo" msgstr "Ugrás az előző fényképre" -#: src/SlideshowPage.vala:141 src/SlideshowPage.vala:248 +#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:250 msgid "Pause" msgstr "Szünet" -#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:249 +#: src/SlideshowPage.vala:145 src/SlideshowPage.vala:251 msgid "Pause the slideshow" msgstr "Diavetítés szüneteltetése" -#: src/SlideshowPage.vala:148 +#: src/SlideshowPage.vala:150 msgid "Next" msgstr "Következő" -#: src/SlideshowPage.vala:150 +#: src/SlideshowPage.vala:152 msgid "Go to the next photo" msgstr "Ugrás a következő fényképre" -#: src/SlideshowPage.vala:157 ui/slideshow_settings.ui:21 +#: src/SlideshowPage.vala:159 ui/slideshow_settings.ui:21 msgid "Settings" msgstr "Beállítások" -#: src/SlideshowPage.vala:158 +#: src/SlideshowPage.vala:160 msgid "Change slideshow settings" msgstr "Diavetítés beállításainak módosítása" #. An entire slideshow set might be missing, so check for a loop. -#: src/SlideshowPage.vala:212 +#: src/SlideshowPage.vala:214 msgid "All photo source files are missing." msgstr "Az összes fénykép forrásfájlja elveszett." -#: src/SlideshowPage.vala:244 +#: src/SlideshowPage.vala:246 msgid "Play" msgstr "Lejátszás" -#: src/SlideshowPage.vala:245 +#: src/SlideshowPage.vala:247 msgid "Continue the slideshow" msgstr "Diavetítés folytatása" @@ -5940,7 +6089,7 @@ msgstr "Diavetítés átmenetei" msgid "(None)" msgstr "(Nincs)" -#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:485 +#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:414 msgid "None" msgstr "Nincs" @@ -5965,24 +6114,24 @@ msgstr "névtelen" msgid "Export Videos" msgstr "Videók exportálása" -#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/media.ui:281 -#: ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 +#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/faces.ui:281 +#: ui/media.ui:281 ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 msgid "Toggle _Flag" msgstr "_Jelző átváltása" -#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/media.ui:353 -#: ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 +#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/faces.ui:353 +#: ui/media.ui:353 ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 msgid "_Developer" msgstr "_Előhívó" -#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/media.ui:381 -#: ui/photo_context.ui:126 ui/tags.ui:381 +#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/faces.ui:381 +#: ui/media.ui:381 ui/photo_context.ui:126 ui/tags.ui:381 msgid "View Eve_nt for Photo" msgstr "Fénykép _eseményének megjelenítése" -#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/import_queue.ui:5 -#: ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 ui/photo.ui:5 ui/tags.ui:5 -#: ui/trash.ui:5 +#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/faces.ui:5 +#: ui/import_queue.ui:5 ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 +#: ui/photo.ui:5 ui/tags.ui:5 ui/trash.ui:5 msgid "_File" msgstr "_Fájl" @@ -5990,7 +6139,7 @@ msgstr "_Fájl" msgid "Save _As…" msgstr "Men_tés másként…" -#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 +#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 ui/faces.ui:99 #: ui/import_queue.ui:38 ui/import.ui:74 ui/media.ui:99 ui/offline.ui:78 #: ui/photo.ui:95 ui/tags.ui:99 ui/trash.ui:87 msgid "_View" @@ -6024,229 +6173,240 @@ msgstr "_Következő fénykép" msgid "T_ools" msgstr "_Eszközök" -#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 +#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 ui/faces.ui:438 #: ui/import_queue.ui:73 ui/import.ui:191 ui/media.ui:411 ui/offline.ui:188 #: ui/photo.ui:395 ui/tags.ui:430 ui/trash.ui:197 msgid "_Frequently Asked Questions" msgstr "_Gyakran ismételt kérdések" -#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 +#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 ui/faces.ui:442 #: ui/import_queue.ui:77 ui/import.ui:195 ui/media.ui:415 ui/offline.ui:192 #: ui/photo.ui:399 ui/tags.ui:434 ui/trash.ui:201 msgid "_Report a Problem…" msgstr "_Hiba jelentése…" -#: ui/events_directory.ui:8 ui/event.ui:8 ui/import_queue.ui:14 ui/import.ui:8 -#: ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 ui/trash.ui:8 +#: ui/events_directory.ui:8 ui/event.ui:8 ui/faces.ui:8 ui/import_queue.ui:14 +#: ui/import.ui:8 ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 +#: ui/trash.ui:8 msgid "_Import From Folder…" msgstr "_Importálás mappából…" -#: ui/events_directory.ui:13 ui/event.ui:13 ui/import_queue.ui:19 -#: ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 ui/photo.ui:13 ui/tags.ui:13 -#: ui/trash.ui:13 +#: ui/events_directory.ui:13 ui/event.ui:13 ui/faces.ui:13 +#: ui/import_queue.ui:19 ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 +#: ui/photo.ui:13 ui/tags.ui:13 ui/trash.ui:13 msgid "Import From _Application…" msgstr "Importálás _alkalmazásból…" -#: ui/events_directory.ui:19 ui/event.ui:34 ui/import_queue.ui:25 -#: ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 ui/photo.ui:42 ui/tags.ui:34 -#: ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 +#: ui/events_directory.ui:19 ui/event.ui:34 ui/faces.ui:34 +#: ui/import_queue.ui:25 ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 +#: ui/photo.ui:42 ui/tags.ui:34 ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 msgid "Empty T_rash" msgstr "_Kuka ürítése" -#: ui/events_directory.ui:47 ui/event.ui:62 ui/import.ui:55 ui/media.ui:62 -#: ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 +#: ui/events_directory.ui:47 ui/event.ui:62 ui/faces.ui:62 ui/import.ui:55 +#: ui/media.ui:62 ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 msgid "_Find" msgstr "_Keresés" -#: ui/events_directory.ui:51 ui/event.ui:66 ui/media.ui:66 ui/offline.ui:51 -#: ui/photo.ui:70 ui/search_sidebar_context.ui:6 +#: ui/events_directory.ui:51 ui/event.ui:66 ui/faces.ui:66 ui/media.ui:66 +#: ui/offline.ui:51 ui/photo.ui:70 ui/search_sidebar_context.ui:6 #: ui/sidebar_default_context.ui:6 ui/tags.ui:66 ui/trash.ui:56 msgid "Ne_w Saved Search…" msgstr "Új _mentett keresés…" -#: ui/events_directory.ui:74 ui/event.ui:102 ui/import_queue.ui:41 -#: ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 ui/photo.ui:98 -#: ui/tags.ui:102 ui/trash.ui:90 +#: ui/events_directory.ui:74 ui/event.ui:102 ui/faces.ui:102 +#: ui/import_queue.ui:41 ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 +#: ui/photo.ui:98 ui/tags.ui:102 ui/trash.ui:90 msgid "_Basic Information" msgstr "_Alapvető információk" -#: ui/events_directory.ui:79 ui/event.ui:107 ui/import.ui:82 ui/media.ui:107 -#: ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 ui/trash.ui:95 +#: ui/events_directory.ui:79 ui/event.ui:107 ui/faces.ui:107 ui/import.ui:82 +#: ui/media.ui:107 ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 +#: ui/trash.ui:95 msgid "E_xtended Information" msgstr "_További információk" -#: ui/events_directory.ui:84 ui/event.ui:112 ui/import.ui:87 ui/media.ui:112 -#: ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 +#: ui/events_directory.ui:84 ui/event.ui:112 ui/faces.ui:112 ui/import.ui:87 +#: ui/media.ui:112 ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 msgid "_Search Bar" msgstr "Keresősá_v" -#: ui/events_directory.ui:89 ui/event.ui:117 ui/import.ui:92 ui/media.ui:117 -#: ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 ui/trash.ui:105 +#: ui/events_directory.ui:89 ui/event.ui:117 ui/faces.ui:117 ui/import.ui:92 +#: ui/media.ui:117 ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 +#: ui/trash.ui:105 msgid "S_idebar" msgstr "_Oldalsáv" -#: ui/events_directory.ui:94 ui/event.ui:122 ui/import.ui:97 ui/media.ui:122 -#: ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 ui/trash.ui:110 +#: ui/events_directory.ui:94 ui/event.ui:122 ui/faces.ui:122 ui/import.ui:97 +#: ui/media.ui:122 ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 +#: ui/trash.ui:110 msgid "T_oolbar" msgstr "Esz_köztár" -#: ui/events_directory.ui:101 ui/event.ui:134 ui/media.ui:134 ui/tags.ui:134 +#: ui/events_directory.ui:101 ui/event.ui:134 ui/faces.ui:134 ui/media.ui:134 +#: ui/tags.ui:134 msgid "_Comments" msgstr "_Megjegyzések" -#: ui/events_directory.ui:108 ui/event.ui:243 ui/import_queue.ui:48 -#: ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 ui/photo.ui:127 -#: ui/tags.ui:243 ui/trash.ui:172 +#: ui/events_directory.ui:108 ui/event.ui:243 ui/faces.ui:243 +#: ui/import_queue.ui:48 ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 +#: ui/photo.ui:127 ui/tags.ui:243 ui/trash.ui:172 msgid "Sort _Events" msgstr "_Események rendezése" -#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 -#: ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 ui/media.ui:246 -#: ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 ui/tags.ui:246 -#: ui/trash.ui:175 +#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 ui/faces.ui:231 +#: ui/faces.ui:246 ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 +#: ui/media.ui:246 ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 +#: ui/tags.ui:246 ui/trash.ui:175 msgid "_Ascending" msgstr "_Növekvő" -#: ui/events_directory.ui:116 ui/event.ui:236 ui/import_queue.ui:56 -#: ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 ui/trash.ui:180 +#: ui/events_directory.ui:116 ui/event.ui:236 ui/faces.ui:236 +#: ui/import_queue.ui:56 ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 +#: ui/trash.ui:180 msgid "D_escending" msgstr "_Csökkenő" -#: ui/events_directory.ui:132 ui/event.ui:379 ui/media.ui:373 ui/tags.ui:373 +#: ui/events_directory.ui:132 ui/event.ui:379 ui/faces.ui:373 ui/media.ui:373 +#: ui/tags.ui:373 msgid "Even_ts" msgstr "_Események" -#: ui/event.ui:129 ui/import.ui:104 ui/media.ui:129 ui/tags.ui:129 +#: ui/event.ui:129 ui/faces.ui:129 ui/import.ui:104 ui/media.ui:129 +#: ui/tags.ui:129 msgid "_Titles" msgstr "_Címek" -#: ui/event.ui:139 ui/event.ui:404 ui/media.ui:139 ui/media.ui:387 -#: ui/photo.ui:372 ui/tags.ui:139 ui/tags.ui:387 +#: ui/event.ui:139 ui/event.ui:404 ui/faces.ui:139 ui/faces.ui:387 +#: ui/media.ui:139 ui/media.ui:387 ui/photo.ui:372 ui/tags.ui:139 +#: ui/tags.ui:387 msgid "Ta_gs" msgstr "Cí_mkék" -#: ui/event.ui:206 ui/media.ui:206 ui/tags.ui:206 +#: ui/event.ui:206 ui/faces.ui:206 ui/media.ui:206 ui/tags.ui:206 msgid "Sort _Photos" msgstr "Fényképek _rendezése" -#: ui/event.ui:209 ui/media.ui:209 ui/tags.ui:209 +#: ui/event.ui:209 ui/faces.ui:209 ui/media.ui:209 ui/tags.ui:209 msgid "By _Title" msgstr "_Cím szerint" -#: ui/event.ui:214 ui/media.ui:214 ui/tags.ui:214 +#: ui/event.ui:214 ui/faces.ui:214 ui/media.ui:214 ui/tags.ui:214 msgid "By _Filename" msgstr "Fájl_név szerint" -#: ui/event.ui:219 ui/media.ui:219 ui/tags.ui:219 +#: ui/event.ui:219 ui/faces.ui:219 ui/media.ui:219 ui/tags.ui:219 msgid "By Exposure _Date" msgstr "_Készítés dátuma" -#: ui/event.ui:224 ui/media.ui:224 ui/tags.ui:224 +#: ui/event.ui:224 ui/faces.ui:224 ui/media.ui:224 ui/tags.ui:224 msgid "By _Rating" msgstr "É_rtékelés szerint" -#: ui/event.ui:251 ui/import.ui:174 ui/media.ui:251 ui/photo.ui:135 -#: ui/tags.ui:251 +#: ui/event.ui:251 ui/faces.ui:251 ui/import.ui:174 ui/media.ui:251 +#: ui/photo.ui:135 ui/tags.ui:251 msgid "_Descending" msgstr "_Csökkenő" -#: ui/event.ui:275 ui/media.ui:275 ui/tags.ui:275 +#: ui/event.ui:275 ui/faces.ui:275 ui/media.ui:275 ui/tags.ui:275 msgid "_Photos" msgstr "Fény_képek" +#: ui/faces.ui:465 +msgid "Rename…" +msgstr "Átnevezés…" + #: ui/import_queue.ui:8 msgid "_Stop Import" msgstr "Importálás l_eállítása" -#: ui/preferences_dialog.ui:65 -msgid "white" -msgstr "fehér" - -#: ui/preferences_dialog.ui:92 -msgid "black" -msgstr "fekete" - -#: ui/preferences_dialog.ui:123 +#: ui/preferences_dialog.ui:67 msgid "Display" msgstr "Megjelenítés" -#: ui/preferences_dialog.ui:160 -msgid "_Background:" -msgstr "_Háttér:" - -#: ui/preferences_dialog.ui:175 +#: ui/preferences_dialog.ui:103 msgid "_Import photos to:" msgstr "Fényképek i_mportálása ide:" -#: ui/preferences_dialog.ui:186 +#: ui/preferences_dialog.ui:114 msgid "_Watch library directory for new files" msgstr "Új _fájlok figyelése a gyűjteménykönyvtárban" -#: ui/preferences_dialog.ui:209 +#: ui/preferences_dialog.ui:137 msgid "Importing" msgstr "Importálás" -#: ui/preferences_dialog.ui:226 +#: ui/preferences_dialog.ui:154 msgid "_Directory structure:" msgstr "_Könyvtárszerkezet:" -#: ui/preferences_dialog.ui:241 +#: ui/preferences_dialog.ui:169 msgid "Example:" msgstr "Példa:" -#: ui/preferences_dialog.ui:250 +#: ui/preferences_dialog.ui:178 msgid "R_ename imported files to lowercase" msgstr "_Importált fájlok átnevezése kisbetűssé" -#: ui/preferences_dialog.ui:272 +#: ui/preferences_dialog.ui:200 msgid "Metadata" msgstr "Metaadatok" -#: ui/preferences_dialog.ui:285 +#: ui/preferences_dialog.ui:213 msgid "Write tags, titles, and other _metadata to photo files" msgstr "_Címkék, címek és más metaadatok fényképfájlokba írása" -#: ui/preferences_dialog.ui:307 +#: ui/preferences_dialog.ui:235 msgid "RAW Developer" msgstr "RAW előhívó" -#: ui/preferences_dialog.ui:324 +#: ui/preferences_dialog.ui:252 msgid "De_fault:" msgstr "_Alapértelmezett:" -#: ui/preferences_dialog.ui:378 +#: ui/preferences_dialog.ui:306 msgid "_Pattern:" msgstr "_Minta:" -#: ui/preferences_dialog.ui:414 +#: ui/preferences_dialog.ui:339 +msgid "" +"When viewing images that are transparent, they will be drawn against this " +"background." +msgstr "Ha átlátszó képeket néz, akkor ezen a háttéren lesznek kirajzolva." + +#: ui/preferences_dialog.ui:343 msgid "Transparent Background:" msgstr "Átlátszó háttér:" -#: ui/preferences_dialog.ui:428 +#: ui/preferences_dialog.ui:357 msgid "Checkered" msgstr "Kockás" -#: ui/preferences_dialog.ui:449 +#: ui/preferences_dialog.ui:378 msgid "Solid color" msgstr "Homogén szín" -#: ui/preferences_dialog.ui:539 +#: ui/preferences_dialog.ui:441 +msgid "Use dark theme:" +msgstr "Sötét téma használata:" + +#: ui/preferences_dialog.ui:492 msgid "E_xternal photo editor:" msgstr "Külső _fényképszerkesztő:" -#: ui/preferences_dialog.ui:556 +#: ui/preferences_dialog.ui:509 msgid "External _RAW editor:" msgstr "Külső _RAW szerkesztő:" -#: ui/preferences_dialog.ui:617 +#: ui/preferences_dialog.ui:570 msgid "External Editors" msgstr "Külső szerkesztők" -#: ui/preferences_dialog.ui:642 +#: ui/preferences_dialog.ui:595 msgid "Plugins" msgstr "Bővítmények" -#: ui/preferences_dialog.ui:668 +#: ui/preferences_dialog.ui:621 msgid "Shotwell Preferences" msgstr "Shotwell beállításai" @@ -6372,23 +6532,23 @@ msgstr "Az egyes fényképek meddig jelenjenek meg asztalháttérként" msgid "New _Tag…" msgstr "Új _címke…" -#: ui/slideshow_settings.ui:91 +#: ui/slideshow_settings.ui:98 msgid "_Delay:" msgstr "_Késleltetés:" -#: ui/slideshow_settings.ui:105 +#: ui/slideshow_settings.ui:112 msgid "_Transition effect:" msgstr "Átmenet _effektus:" -#: ui/slideshow_settings.ui:119 +#: ui/slideshow_settings.ui:126 msgid "Transition d_elay:" msgstr "Átmenet _késleltetése:" -#: ui/slideshow_settings.ui:129 +#: ui/slideshow_settings.ui:136 msgid "Show t_itle" msgstr "_Cím megjelenítése" -#: ui/slideshow_settings.ui:212 ui/slideshow_settings.ui:223 +#: ui/slideshow_settings.ui:219 ui/slideshow_settings.ui:230 msgid "seconds" msgstr "másodperc" @@ -6400,3 +6560,20 @@ msgstr "címke" msgid "Delete all photos in the trash" msgstr "Minden fénykép törlése a Kukában" +#~ msgid "background color" +#~ msgstr "háttérszín" + +#~ msgid "A grayscale color for use as the background color." +#~ msgstr "Háttérszínként használandó szürkeárnyalatos szín." + +#~ msgid "Extended Information" +#~ msgstr "Bővebb információk" + +#~ msgid "white" +#~ msgstr "fehér" + +#~ msgid "black" +#~ msgstr "fekete" + +#~ msgid "_Background:" +#~ msgstr "_Háttér:" diff --git a/po/ia.gmo b/po/ia.gmo deleted file mode 100644 index aada69a..0000000 Binary files a/po/ia.gmo and /dev/null differ diff --git a/po/id.gmo b/po/id.gmo deleted file mode 100644 index d8f5f57..0000000 Binary files a/po/id.gmo and /dev/null differ diff --git a/po/id.po b/po/id.po index 2abf30c..e6dcdcb 100644 --- a/po/id.po +++ b/po/id.po @@ -17,24 +17,23 @@ msgid "" msgstr "" "Project-Id-Version: shotwell master\n" -"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" -"product=shotwell&keywords=I18N+L10N&component=Internationalization\n" -"POT-Creation-Date: 2017-11-24 20:46+0000\n" -"PO-Revision-Date: 2017-11-30 13:56+0700\n" -"Last-Translator: Kukuh Syafaat \n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/shotwell/issues\n" +"POT-Creation-Date: 2018-07-19 22:22+0000\n" +"PO-Revision-Date: 2018-08-27 14:43+0700\n" +"Last-Translator: Kukuh Syafaat \n" "Language-Team: Indonesian \n" "Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Poedit 2.0.4\n" +"X-Generator: Poedit 2.0.6\n" #: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in:4 #: plugins/shotwell-publishing-extras/GalleryConnector.vala:115 #: src/photos/RawSupport.vala:308 ui/collection.ui:85 ui/event.ui:356 -#: ui/event.ui:524 ui/media.ui:356 ui/photo_context.ui:91 ui/photo.ui:346 -#: ui/tags.ui:356 +#: ui/event.ui:524 ui/faces.ui:356 ui/media.ui:356 ui/photo_context.ui:91 +#: ui/photo.ui:347 ui/tags.ui:356 msgid "Shotwell" msgstr "Shotwell" @@ -479,12 +478,12 @@ msgid "Pin toolbar in fullscreen, or not." msgstr "Sematkan atau tidak bilah alat pada mode layar penuh." #: misc/org.yorba.shotwell.gschema.xml:161 -msgid "background color" -msgstr "warna latar belakang" +msgid "prefer GTK+’s dark theme" +msgstr "lebih memilih tema gelap GTK+" #: misc/org.yorba.shotwell.gschema.xml:162 -msgid "A grayscale color for use as the background color." -msgstr "Warna hitam-putih digunakan sebagai warna latar belakang." +msgid "Whether to use the dark theme of GTK+ for Shotwell or not." +msgstr "Apakah akan menggunakan tema gelap GTK+ untuk Shotwell atau tidak." #: misc/org.yorba.shotwell.gschema.xml:167 msgid "background for transparent images" @@ -1429,7 +1428,7 @@ msgstr "Autorisasi Flickr gagal" msgid "Verifying authorization…" msgstr "Memverifikasi otorisasi…" -#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:118 +#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:137 msgid "" "You have already logged in and out of a Google service during this Shotwell " "session.\n" @@ -1514,7 +1513,7 @@ msgstr "Tidak dapat membuka UI: %s" msgid "Visit the Shotwell home page" msgstr "Kunjungi laman serambi Shotwell" -#: plugins/common/Resources.vala:31 src/AppWindow.vala:611 +#: plugins/common/Resources.vala:31 src/AppWindow.vala:603 msgid "translator-credits" msgstr "" "Mohammad Anwari , 2010\n" @@ -1526,7 +1525,7 @@ msgstr "" "Mohamad Hasan Al Banna, 2013\n" "Rahman Yusri Aftian , 2012, 2013\n" "Andika Triwidada , 2011, 2014, 2017.\n" -"Kukuh Syafaat , 2017." +"Kukuh Syafaat , 2017, 2018." #. Possible error message when a site presents a bad certificate. #: plugins/common/RESTSupport.vala:217 @@ -1606,7 +1605,7 @@ msgid "Go _Back" msgstr "_Mundur" #: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:125 -#: ui/shotwell.ui:363 +#: ui/shotwell.ui:76 msgid "_Log in" msgstr "_Log masuk" @@ -1672,7 +1671,7 @@ msgstr "_Keluar" #: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:156 #: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:121 #: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:115 -#: src/CollectionPage.vala:82 src/PhotoPage.vala:2469 +#: src/CollectionPage.vala:82 src/PhotoPage.vala:2492 msgid "_Publish" msgstr "_Terbitkan" @@ -2138,7 +2137,7 @@ msgid "Logout" msgstr "Catat keluar" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:268 -#: src/Resources.vala:296 ui/collection.ui:192 +#: src/Resources.vala:266 ui/collection.ui:192 msgid "Publish" msgstr "Kirim" @@ -2170,7 +2169,8 @@ msgid "Certificate of %s" msgstr "Sertifikat dari %s" #: plugins/shotwell-publishing/PiwigoPublishing.vala:1051 -#: src/Resources.vala:167 ui/slideshow_settings.ui:49 +#: src/Resources.vala:137 ui/multitextentrydialog.ui:40 +#: ui/slideshow_settings.ui:52 msgid "_OK" msgstr "_OK" @@ -2378,16 +2378,18 @@ msgstr "Sematkan batang alat terbuka" msgid "Leave fullscreen" msgstr "Tinggalkan layar penuh" -#: src/AppWindow.vala:538 src/AppWindow.vala:559 src/AppWindow.vala:576 -#: src/data_imports/DataImportsUI.vala:303 -#: src/data_imports/DataImportsUI.vala:421 src/Dialogs.vala:20 -#: src/Dialogs.vala:28 src/Dialogs.vala:1420 src/Dialogs.vala:1443 -#: src/publishing/PublishingUI.vala:303 src/publishing/PublishingUI.vala:527 -#: src/Resources.vala:158 ui/slideshow_settings.ui:35 +#: src/AppWindow.vala:530 src/AppWindow.vala:551 src/AppWindow.vala:568 +#: src/data_imports/DataImportsUI.vala:302 +#: src/data_imports/DataImportsUI.vala:420 src/Dialogs.vala:20 +#: src/Dialogs.vala:28 src/Dialogs.vala:58 src/Dialogs.vala:766 +#: src/Dialogs.vala:789 src/publishing/PublishingUI.vala:305 +#: src/publishing/PublishingUI.vala:529 src/Resources.vala:128 +#: ui/multitextentrydialog.ui:25 ui/slideshow_settings.ui:38 +#: ui/textentrydialog.ui:19 msgid "_Cancel" msgstr "_Batal" -#: src/AppWindow.vala:586 +#: src/AppWindow.vala:578 #, c-format msgid "" "A fatal error occurred when accessing Shotwell’s library. Shotwell cannot " @@ -2400,21 +2402,21 @@ msgstr "" "\n" "%s" -#: src/AppWindow.vala:607 +#: src/AppWindow.vala:599 msgid "Visit the Shotwell web site" msgstr "Kunjungi situs web Shotwell" -#: src/AppWindow.vala:620 +#: src/AppWindow.vala:612 #, c-format msgid "Unable to display help: %s" msgstr "Pedoman penggunaan tidak dapat ditampilkan: %s" -#: src/AppWindow.vala:628 +#: src/AppWindow.vala:620 #, c-format msgid "Unable to navigate to bug database: %s" msgstr "Gagal menavigasi basis data bug: %s" -#: src/AppWindow.vala:636 +#: src/AppWindow.vala:628 #, c-format msgid "Unable to display FAQ: %s" msgstr "Gagal menampilkan FAQ: %s" @@ -2490,18 +2492,18 @@ msgstr "Daftar semua peranti kamera yang ditemukan" #: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:711 #: src/camera/ImportPage.vala:727 src/photos/RawSupport.vala:311 -#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/media.ui:361 -#: ui/photo_context.ui:96 ui/photo.ui:351 ui/tags.ui:361 +#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/faces.ui:361 +#: ui/media.ui:361 ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 msgid "Camera" msgstr "Kamera" #. Translators: First %s is the name of camera as gotten from GPhoto, second is the GVolume name, e.g. Mass storage camera (510MB volume) -#: src/camera/CameraTable.vala:351 +#: src/camera/CameraTable.vala:256 #, c-format msgid "%s (%s)" msgstr "%s (%s)" -#: src/camera/ImportPage.vala:311 src/Properties.vala:230 +#: src/camera/ImportPage.vala:307 src/Properties.vala:234 msgid "RAW+JPEG" msgstr "RAW+JPEG" @@ -2627,7 +2629,7 @@ msgid "Delete these files from camera?" msgid_plural "Delete these %d files from camera?" msgstr[0] "Hapus %d berkas ini dari kamera?" -#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:1387 +#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:733 msgid "_Keep" msgstr "_Simpan" @@ -2643,21 +2645,21 @@ msgstr[0] "" "Tidak dapat menghapus %d foto/video dari kamera karena adanya kesalahan." #: src/CollectionPage.vala:80 src/direct/DirectPhotoPage.vala:85 -#: src/PhotoPage.vala:2464 src/Resources.vala:171 +#: src/PhotoPage.vala:2487 src/Resources.vala:141 msgid "_Print" msgstr "_Cetak" -#: src/CollectionPage.vala:83 src/Resources.vala:324 ui/collection.ui:128 +#: src/CollectionPage.vala:83 src/Resources.vala:294 ui/collection.ui:128 #: ui/direct_context.ui:23 ui/direct.ui:23 ui/event.ui:567 ui/photo.ui:28 msgid "Send _To…" msgstr "Kirim _Ke…" #: src/CollectionPage.vala:84 src/direct/DirectPhotoPage.vala:90 -#: src/PhotoPage.vala:2474 src/Resources.vala:221 +#: src/PhotoPage.vala:2497 src/Resources.vala:191 msgid "Set as _Desktop Background" msgstr "Atur sebagai Latar _Destop" -#: src/CollectionPage.vala:92 src/Resources.vala:287 +#: src/CollectionPage.vala:92 src/Resources.vala:257 msgid "_Duplicate" msgstr "_Gandakan" @@ -2669,43 +2671,43 @@ msgstr "Layar penuh" msgid "S_lideshow" msgstr "Sa_lindia" -#: src/CollectionPage.vala:110 src/Resources.vala:140 ui/direct.ui:111 +#: src/CollectionPage.vala:110 src/Resources.vala:110 ui/direct.ui:111 #: ui/photo.ui:200 msgid "Rotate _Right" msgstr "Puta_r Kanan" -#: src/CollectionPage.vala:113 src/Resources.vala:145 ui/direct.ui:116 +#: src/CollectionPage.vala:113 src/Resources.vala:115 ui/direct.ui:116 #: ui/photo.ui:205 msgid "Rotate _Left" msgstr "Putar _Kiri" -#: src/CollectionPage.vala:116 src/Resources.vala:150 ui/direct.ui:121 +#: src/CollectionPage.vala:116 src/Resources.vala:120 ui/direct.ui:121 #: ui/photo.ui:210 msgid "Flip Hori_zontally" msgstr "Balik hori_zontal" -#: src/CollectionPage.vala:117 src/Resources.vala:153 ui/direct.ui:125 +#: src/CollectionPage.vala:117 src/Resources.vala:123 ui/direct.ui:125 #: ui/photo.ui:214 msgid "Flip Verti_cally" msgstr "Balik Verti_kal" -#: src/CollectionPage.vala:119 src/Resources.vala:187 ui/collection.ui:8 +#: src/CollectionPage.vala:119 src/Resources.vala:157 ui/collection.ui:8 #: ui/direct_context.ui:7 ui/direct.ui:134 ui/event.ui:447 #: ui/photo_context.ui:6 ui/photo.ui:223 msgid "_Enhance" msgstr "Taja_mkan" -#: src/CollectionPage.vala:120 src/Resources.vala:215 ui/collection.ui:13 +#: src/CollectionPage.vala:120 src/Resources.vala:185 ui/collection.ui:13 #: ui/direct_context.ui:12 ui/direct.ui:161 ui/event.ui:452 #: ui/photo_context.ui:11 ui/photo.ui:250 msgid "Re_vert to Original" msgstr "K_embalikan ke Asal" -#: src/CollectionPage.vala:122 src/Resources.vala:191 ui/photo.ui:256 +#: src/CollectionPage.vala:122 src/Resources.vala:161 ui/photo.ui:256 msgid "_Copy Color Adjustments" msgstr "Salin Penyetelan _Warna" -#: src/CollectionPage.vala:125 src/Resources.vala:195 ui/photo.ui:261 +#: src/CollectionPage.vala:125 src/Resources.vala:165 ui/photo.ui:261 msgid "_Paste Color Adjustments" msgstr "Tem_pel Penyetelan Warna" @@ -2713,17 +2715,17 @@ msgstr "Tem_pel Penyetelan Warna" msgid "Adjust Date and Time…" msgstr "Atur Jam dan Tanggal…" -#: src/CollectionPage.vala:143 src/Resources.vala:320 ui/collection.ui:108 -#: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:360 +#: src/CollectionPage.vala:143 src/Resources.vala:290 ui/collection.ui:108 +#: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:361 msgid "Open With E_xternal Editor" msgstr "Buka Oleh Penyunting E_ksternal" -#: src/CollectionPage.vala:146 src/Resources.vala:322 ui/collection.ui:113 -#: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:365 +#: src/CollectionPage.vala:146 src/Resources.vala:292 ui/collection.ui:113 +#: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:366 msgid "Open With RA_W Editor" msgstr "Buka Dengan Penyunting RA_W" -#: src/CollectionPage.vala:149 src/Resources.vala:168 +#: src/CollectionPage.vala:149 src/Resources.vala:138 msgid "_Play" msgstr "_Putar" @@ -2732,7 +2734,7 @@ msgid "Export Photo/Video" msgid_plural "Export Photos/Videos" msgstr[0] "Ekspor Foto/Video" -#: src/CollectionPage.vala:412 src/Dialogs.vala:59 src/PhotoPage.vala:2998 +#: src/CollectionPage.vala:412 src/Dialogs.vala:74 src/PhotoPage.vala:3021 msgid "Export Photo" msgid_plural "Export Photos" msgstr[0] "Ekspor Foto" @@ -2785,150 +2787,150 @@ msgstr "Menerapkan Transformasi Warna" msgid "Undoing Color Transformations" msgstr "Membatalkan Transformasi Warna" -#: src/Commands.vala:1007 +#: src/Commands.vala:1006 msgid "Creating New Event" msgstr "Buat Rangkaian Baru" -#: src/Commands.vala:1008 +#: src/Commands.vala:1007 msgid "Removing Event" msgstr "Hapus Rangkaian" -#: src/Commands.vala:1017 +#: src/Commands.vala:1016 msgid "Moving Photos to New Event" msgstr "Memindahkan Semua Foto Ini ke Rangkaian Baru" -#: src/Commands.vala:1018 +#: src/Commands.vala:1017 msgid "Setting Photos to Previous Event" msgstr "Menandai Foto ke Rangkaian Sebelumnya" -#: src/Commands.vala:1075 +#: src/Commands.vala:1074 msgid "Merging" msgstr "Menggabungkan" -#: src/Commands.vala:1076 +#: src/Commands.vala:1075 msgid "Unmerging" msgstr "Membatalkan Penggabungan" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Duplicating photos" msgstr "Gandakan foto" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Removing duplicated photos" msgstr "Hapus foto ganda" -#: src/Commands.vala:1108 +#: src/Commands.vala:1107 #, c-format msgid "Unable to duplicate one photo due to a file error" msgid_plural "Unable to duplicate %d photos due to file errors" msgstr[0] "Ada %d foto yang tidak dapat digandakan karena ada kesalahan teknis" -#: src/Commands.vala:1195 +#: src/Commands.vala:1194 msgid "Restoring previous rating" msgstr "Mengembalikan rating sebelumnya" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Increasing ratings" msgstr "Naikkan rating" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Decreasing ratings" msgstr "Turunkan rating" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Setting RAW developer" msgstr "Atur RAW pengembang" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Restoring previous RAW developer" msgstr "Mengembalikan pembangun RAW sebelumnya" -#: src/Commands.vala:1257 +#: src/Commands.vala:1256 msgid "Set Developer" msgstr "Atur Pengembang" -#: src/Commands.vala:1347 +#: src/Commands.vala:1346 msgid "Original photo could not be adjusted." msgstr "Foto asli tidak dapat diatur." -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Adjusting Date and Time" msgstr "Mengatur Tanggal dan Jam" -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Undoing Date and Time Adjustment" msgstr "Batalkan Pengaturan Tanggal dan Jam" -#: src/Commands.vala:1399 +#: src/Commands.vala:1398 msgid "One original photo could not be adjusted." msgid_plural "The following original photos could not be adjusted." msgstr[0] "Foto asli ini tidak dapat diatur." -#: src/Commands.vala:1401 src/Commands.vala:1425 +#: src/Commands.vala:1400 src/Commands.vala:1424 msgid "Time Adjustment Error" msgstr "Tidak Dapat Mengatur Jam" -#: src/Commands.vala:1423 +#: src/Commands.vala:1422 msgid "Time adjustments could not be undone on the following photo file." msgid_plural "" "Time adjustments could not be undone on the following photo files." msgstr[0] "" "Penyesuaian jam tidak dapat dikembalikan pada berkas-berkas foto berikut." -#: src/Commands.vala:1637 src/Commands.vala:1660 +#: src/Commands.vala:1636 src/Commands.vala:1659 msgid "Create Tag" msgstr "Buat Tanda" -#: src/Commands.vala:1695 +#: src/Commands.vala:1694 #, c-format msgid "Move Tag “%s”" msgstr "Pindahkan Tag \"%s\"" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Move Photos to Trash" msgstr "Pindahkan Foto ke Tempat Pembuangan" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Restore Photos from Trash" msgstr "Kembalikan Foto dari Tempat Pembuangan" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Move the photos to the Shotwell trash" msgstr "Pindahkan foto-foto tersebut ke tempat pembuangan" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Restore the photos back to the Shotwell library" msgstr "Kembalikan foto-foto yang dibuang ke album" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Moving Photos to Trash" msgstr "Pindahkan Foto ke Tempat Pembuangan" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Restoring Photos From Trash" msgstr "Kembalikan Foto dari Tempat Pembuangan" -#: src/Commands.vala:2453 +#: src/Commands.vala:2452 msgid "Flag selected photos" msgstr "Tandai foto terpilih" -#: src/Commands.vala:2454 +#: src/Commands.vala:2453 msgid "Unflag selected photos" msgstr "Hapus tanda foto terpilih" -#: src/Commands.vala:2455 +#: src/Commands.vala:2454 msgid "Flagging selected photos" msgstr "Tandai foto terpilih" -#: src/Commands.vala:2456 +#: src/Commands.vala:2455 msgid "Unflagging selected photos" msgstr "Hapus tanda foto terpilih" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Flag" msgstr "Tanda" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Unflag" msgstr "Hapus Tanda" @@ -2966,19 +2968,19 @@ msgstr "" msgid "Database file:" msgstr "Berkas basis data:" -#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:782 +#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:783 msgid "_Import" msgstr "_Impor" -#: src/data_imports/DataImportsUI.vala:220 +#: src/data_imports/DataImportsUI.vala:219 msgid "Import From Application" msgstr "Impor Dari Aplikasi" -#: src/data_imports/DataImportsUI.vala:221 +#: src/data_imports/DataImportsUI.vala:220 msgid "Import media _from:" msgstr "Impor media _dari:" -#: src/data_imports/DataImportsUI.vala:416 src/publishing/PublishingUI.vala:522 +#: src/data_imports/DataImportsUI.vala:415 src/publishing/PublishingUI.vala:524 msgid "_Close" msgstr "_Tutup" @@ -3045,10 +3047,11 @@ msgid "This will remove the tag “%s” from one photo. Continue?" msgid_plural "This will remove the tag “%s” from %d photos. Continue?" msgstr[0] "Ini akan menghapus tag \"%s\" dari %d foto. Teruskan?" -#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:1388 -#: src/Resources.vala:159 src/Resources.vala:362 src/Resources.vala:415 -#: src/Resources.vala:659 ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 -#: ui/trash.ui:216 ui/trash.ui:258 +#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:58 +#: src/Dialogs.vala:734 src/Resources.vala:129 src/Resources.vala:310 +#: src/Resources.vala:341 src/Resources.vala:394 src/Resources.vala:762 +#: ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 ui/trash.ui:216 +#: ui/trash.ui:258 msgid "_Delete" msgstr "_Hapus" @@ -3072,11 +3075,17 @@ msgstr[0] "" msgid "_Switch Developer" msgstr "_Ganti Pengembang" -#: src/Dialogs.vala:59 +#: src/Dialogs.vala:54 +#, c-format +msgid "This will remove the face “%s” from one photo. Continue?" +msgid_plural "This will remove the face “%s” from %d photos. Continue?" +msgstr[0] "Ini akan menghapus wajah \"%s\" dari %d foto. Teruskan?" + +#: src/Dialogs.vala:74 msgid "Export Video" msgstr "Ekspor Video" -#: src/Dialogs.vala:84 +#: src/Dialogs.vala:99 msgid "Export Photos" msgstr "Ekspor Foto-foto" @@ -3085,7 +3094,7 @@ msgstr "Ekspor Foto-foto" #. if we can't copy an image over for editing in an external tool. #. Did we fail because we can't write to this directory? #. Yes - display an alternate error message here. -#: src/Dialogs.vala:112 +#: src/Dialogs.vala:127 #, c-format msgid "" "Shotwell couldn’t create a file for editing this photo because you do not " @@ -3094,7 +3103,7 @@ msgstr "" "Shotwell tak bisa membuat berkas untuk penyuntingan foto ini karena Anda " "tidak punya izin menulis ke %s." -#: src/Dialogs.vala:121 +#: src/Dialogs.vala:136 msgid "" "Unable to export the following photo due to a file error.\n" "\n" @@ -3102,7 +3111,7 @@ msgstr "" "Pengeksporan foto berikut gagal karena kesalahan teknis pada berkas.\n" "\n" -#: src/Dialogs.vala:127 +#: src/Dialogs.vala:142 msgid "" "\n" "\n" @@ -3112,66 +3121,34 @@ msgstr "" "\n" "Lanjutkan proses ekspor foto?" -#: src/Dialogs.vala:128 +#: src/Dialogs.vala:143 msgid "Con_tinue" msgstr "Lanju_tkan" -#. "Unmodified" and "Current," though they appear in the "Format:" popup menu, really -#. aren't formats so much as they are operating modes that determine specific formats. -#. Hereafter we'll refer to these as "special formats." -#: src/Dialogs.vala:144 -msgid "Unmodified" -msgstr "Tidak dimodifikasi" - -#: src/Dialogs.vala:145 -msgid "Current" -msgstr "Sekarang" - -#. layout controls -#: src/Dialogs.vala:221 -msgid "_Format:" -msgstr "_Format:" - -#: src/Dialogs.vala:224 -msgid "_Quality:" -msgstr "_Kualitas:" - -#: src/Dialogs.vala:227 -msgid "_Scaling constraint:" -msgstr "_Batas skala:" - -#: src/Dialogs.vala:230 -msgid "_Pixels:" -msgstr "_Piksel:" - -#: src/Dialogs.vala:234 -msgid "Export _metadata:" -msgstr "Ekspor _metadata:" - -#: src/Dialogs.vala:478 +#: src/Dialogs.vala:153 msgid "Save Details…" msgstr "Simpan Rincian…" -#: src/Dialogs.vala:479 +#: src/Dialogs.vala:154 msgid "Save Details" msgstr "Simpan Rincian" -#: src/Dialogs.vala:494 +#: src/Dialogs.vala:169 #, c-format msgid "(and %d more)\n" msgstr "(dan %d buah lagi)\n" -#: src/Dialogs.vala:547 +#: src/Dialogs.vala:222 msgid "Import Results Report" msgstr "Impor Laporan Hasil" -#: src/Dialogs.vala:551 +#: src/Dialogs.vala:226 #, c-format msgid "Attempted to import %d file." msgid_plural "Attempted to import %d files." msgstr[0] "Mencoba mengimpor %d berkas." -#: src/Dialogs.vala:554 +#: src/Dialogs.vala:229 #, c-format msgid "Of these, %d file was successfully imported." msgid_plural "Of these, %d files were successfully imported." @@ -3180,30 +3157,30 @@ msgstr[0] "Dari sekian banyak, %d berkas sukses diimpor." #. #. Duplicates #. -#: src/Dialogs.vala:566 +#: src/Dialogs.vala:241 msgid "Duplicate Photos/Videos Not Imported:" msgstr "Foto/Video Duplikat Yang Tak Diimpor:" -#: src/Dialogs.vala:570 +#: src/Dialogs.vala:245 msgid "duplicates existing media item" msgstr "butir media yang ada yang duplikat" #. #. Files Not Imported Due to Camera Errors #. -#: src/Dialogs.vala:581 +#: src/Dialogs.vala:256 msgid "Photos/Videos Not Imported Due to Camera Errors:" msgstr "Foto/Video Yang Tak Diimpor Karena Galat Kamera:" -#: src/Dialogs.vala:584 src/Dialogs.vala:599 src/Dialogs.vala:614 -#: src/Dialogs.vala:630 src/Dialogs.vala:645 src/Dialogs.vala:659 +#: src/Dialogs.vala:259 src/Dialogs.vala:274 src/Dialogs.vala:289 +#: src/Dialogs.vala:305 src/Dialogs.vala:320 src/Dialogs.vala:334 msgid "error message:" msgstr "pesan kesalahan:" #. #. Files Not Imported Because They Weren't Recognized as Photos or Videos #. -#: src/Dialogs.vala:595 +#: src/Dialogs.vala:270 msgid "Files Not Imported Because They Weren’t Recognized as Photos or Videos:" msgstr "" "Berkas-berkas Tidak Diimpor Karena Tak Dikenali Sebagai Foto atau Video:" @@ -3211,7 +3188,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands #. -#: src/Dialogs.vala:610 +#: src/Dialogs.vala:285 msgid "" "Photos/Videos Not Imported Because They Weren’t in a Format Shotwell " "Understands:" @@ -3222,7 +3199,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library #. -#: src/Dialogs.vala:625 +#: src/Dialogs.vala:300 msgid "" "Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into its " "Library:" @@ -3230,7 +3207,7 @@ msgstr "" "Foto/Video Yang Tidak Diimpor Karena Shotwell Tak Bisa Menyalin Mereka Ke " "Pustaka:" -#: src/Dialogs.vala:629 +#: src/Dialogs.vala:304 #, c-format msgid "" "couldn’t copy %s\n" @@ -3242,36 +3219,36 @@ msgstr "" #. #. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt #. -#: src/Dialogs.vala:641 +#: src/Dialogs.vala:316 msgid "Photos/Videos Not Imported Because Files Are Corrupt:" msgstr "Foto/Video Yang Tak Diimpor Karena Berkas Rusak:" #. #. Photos/Videos Not Imported for Other Reasons #. -#: src/Dialogs.vala:656 +#: src/Dialogs.vala:331 msgid "Photos/Videos Not Imported for Other Reasons:" msgstr "Foto Video Yang Tak Diimpor Karena Alasan Lain:" -#: src/Dialogs.vala:676 +#: src/Dialogs.vala:351 #, c-format msgid "1 duplicate photo was not imported:\n" msgid_plural "%d duplicate photos were not imported:\n" msgstr[0] "%d foto duplikat tidak diimpor:\n" -#: src/Dialogs.vala:679 +#: src/Dialogs.vala:354 #, c-format msgid "1 duplicate video was not imported:\n" msgid_plural "%d duplicate videos were not imported:\n" msgstr[0] "%d video duplikat tidak diimpor:\n" -#: src/Dialogs.vala:682 +#: src/Dialogs.vala:357 #, c-format msgid "1 duplicate photo/video was not imported:\n" msgid_plural "%d duplicate photos/videos were not imported:\n" msgstr[0] "%d foto/video duplikat tidak diimpor:\n" -#: src/Dialogs.vala:696 +#: src/Dialogs.vala:371 #, c-format msgid "1 photo failed to import due to a file or hardware error:\n" msgid_plural "%d photos failed to import due to a file or hardware error:\n" @@ -3279,7 +3256,7 @@ msgstr[0] "" "Ada %d foto gagal diimpor karena kesalahan pada berkas atau perangkat " "keras:\n" -#: src/Dialogs.vala:699 +#: src/Dialogs.vala:374 #, c-format msgid "1 video failed to import due to a file or hardware error:\n" msgid_plural "%d videos failed to import due to a file or hardware error:\n" @@ -3287,7 +3264,7 @@ msgstr[0] "" "Ada %d video gagal diimpor karena kesalahan pada berkas atau perangkat " "keras:\n" -#: src/Dialogs.vala:702 +#: src/Dialogs.vala:377 #, c-format msgid "1 photo/video failed to import due to a file or hardware error:\n" msgid_plural "" @@ -3296,7 +3273,7 @@ msgstr[0] "" "Ada %d foto/video gagal diimpor karena kesalahan pada berkas atau perangkat " "keras:\n" -#: src/Dialogs.vala:705 +#: src/Dialogs.vala:380 #, c-format msgid "1 file failed to import due to a file or hardware error:\n" msgid_plural "%d files failed to import due to a file or hardware error:\n" @@ -3304,7 +3281,7 @@ msgstr[0] "" "Ada %d berkas gagal diimpor karena kesalahan pada berkas atau perangkat " "keras:\n" -#: src/Dialogs.vala:719 +#: src/Dialogs.vala:394 #, c-format msgid "" "1 photo failed to import because the photo library folder was not writable:\n" @@ -3314,7 +3291,7 @@ msgid_plural "" msgstr[0] "" "%d foto tidak dapat diimpor karena folder album foto tidak dapat ditulisi:\n" -#: src/Dialogs.vala:722 +#: src/Dialogs.vala:397 #, c-format msgid "" "1 video failed to import because the photo library folder was not writable:\n" @@ -3324,7 +3301,7 @@ msgid_plural "" msgstr[0] "" "%d video tidak dapat diimpor karena folder album foto tidak dapat ditulisi:\n" -#: src/Dialogs.vala:725 +#: src/Dialogs.vala:400 #, c-format msgid "" "1 photo/video failed to import because the photo library folder was not " @@ -3336,7 +3313,7 @@ msgstr[0] "" "%d foto/video tidak dapat diimpor karena folder album foto tidak dapat " "ditulisi:\n" -#: src/Dialogs.vala:728 +#: src/Dialogs.vala:403 #, c-format msgid "" "1 file failed to import because the photo library folder was not writable:\n" @@ -3347,49 +3324,49 @@ msgstr[0] "" "%d berkas tidak dapat diimpor karena folder album foto tidak dapat " "ditulisi:\n" -#: src/Dialogs.vala:742 +#: src/Dialogs.vala:417 #, c-format msgid "1 photo failed to import due to a camera error:\n" msgid_plural "%d photos failed to import due to a camera error:\n" msgstr[0] "Ada %d foto gagal diimpor karena kesalahan pada kamera:\n" -#: src/Dialogs.vala:745 +#: src/Dialogs.vala:420 #, c-format msgid "1 video failed to import due to a camera error:\n" msgid_plural "%d videos failed to import due to a camera error:\n" msgstr[0] "%d video gagal diimpor karena kesalahan pada kamera:\n" -#: src/Dialogs.vala:748 +#: src/Dialogs.vala:423 #, c-format msgid "1 photo/video failed to import due to a camera error:\n" msgid_plural "%d photos/videos failed to import due to a camera error:\n" msgstr[0] "%d foto/video gagal diimpor karena kesalahan pada kamera:\n" -#: src/Dialogs.vala:751 +#: src/Dialogs.vala:426 #, c-format msgid "1 file failed to import due to a camera error:\n" msgid_plural "%d files failed to import due to a camera error:\n" msgstr[0] "%d berkas gagal diimpor karena kesalahan pada kamera:\n" -#: src/Dialogs.vala:765 +#: src/Dialogs.vala:440 #, c-format msgid "1 photo failed to import because it was corrupt:\n" msgid_plural "%d photos failed to import because they were corrupt:\n" msgstr[0] "%d foto gagal diimpor karena rusak:\n" -#: src/Dialogs.vala:768 +#: src/Dialogs.vala:443 #, c-format msgid "1 video failed to import because it was corrupt:\n" msgid_plural "%d videos failed to import because they were corrupt:\n" msgstr[0] "%d video gagal diimpor karena rusak:\n" -#: src/Dialogs.vala:771 +#: src/Dialogs.vala:446 #, c-format msgid "1 photo/video failed to import because it was corrupt:\n" msgid_plural "%d photos/videos failed to import because they were corrupt:\n" msgstr[0] "%d foto/video gagal diimpor karena rusak:\n" -#: src/Dialogs.vala:774 +#: src/Dialogs.vala:449 #, c-format msgid "1 file failed to import because it was corrupt:\n" msgid_plural "%d files failed to import because it was corrupt:\n" @@ -3399,7 +3376,7 @@ msgstr[0] "%d berkas gagal diimpor karena rusak:\n" #. standard container formats are supported, it's just that the streams in them #. might or might not be interpretable), so this message does not need to be #. media specific -#: src/Dialogs.vala:791 +#: src/Dialogs.vala:466 #, c-format msgid "1 unsupported photo skipped:\n" msgid_plural "%d unsupported photos skipped:\n" @@ -3407,49 +3384,49 @@ msgstr[0] "Ada %d foto yang tidak dapat dibuka:\n" #. we have no notion of "non-video" video files right now in Shotwell, so this #. message doesn't need to be media specific -#: src/Dialogs.vala:806 +#: src/Dialogs.vala:481 #, c-format msgid "1 non-image file skipped.\n" msgid_plural "%d non-image files skipped.\n" msgstr[0] "Ada %d berkas yang bukan berupa foto.\n" -#: src/Dialogs.vala:817 +#: src/Dialogs.vala:492 #, c-format msgid "1 photo skipped due to user cancel:\n" msgid_plural "%d photos skipped due to user cancel:\n" msgstr[0] "Ada %d foto yang tidak masuk karena Anda batalkan:\n" -#: src/Dialogs.vala:820 +#: src/Dialogs.vala:495 #, c-format msgid "1 video skipped due to user cancel:\n" msgid_plural "%d videos skipped due to user cancel:\n" msgstr[0] "Ada %d video yang tidak masuk karena Anda batalkan:\n" -#: src/Dialogs.vala:823 +#: src/Dialogs.vala:498 #, c-format msgid "1 photo/video skipped due to user cancel:\n" msgid_plural "%d photos/videos skipped due to user cancel:\n" msgstr[0] "Ada %d foto/video yang tidak masuk karena Anda batalkan:\n" -#: src/Dialogs.vala:826 +#: src/Dialogs.vala:501 #, c-format msgid "1 file skipped due to user cancel:\n" msgid_plural "%d file skipped due to user cancel:\n" msgstr[0] "Ada %d berkas yang tidak masuk karena Anda batalkan:\n" -#: src/Dialogs.vala:840 +#: src/Dialogs.vala:515 #, c-format msgid "1 photo successfully imported.\n" msgid_plural "%d photos successfully imported.\n" msgstr[0] "%d foto telah berhasil diimpor.\n" -#: src/Dialogs.vala:843 +#: src/Dialogs.vala:518 #, c-format msgid "1 video successfully imported.\n" msgid_plural "%d videos successfully imported.\n" msgstr[0] "%d video telah berhasil diimpor.\n" -#: src/Dialogs.vala:846 +#: src/Dialogs.vala:521 #, c-format msgid "1 photo/video successfully imported.\n" msgid_plural "%d photos/videos successfully imported.\n" @@ -3457,85 +3434,63 @@ msgstr[0] "%d foto/video telah berhasil diimpor.\n" #. if no media items were imported at all (i.e. an empty directory attempted), need to at least #. report that nothing was imported -#: src/Dialogs.vala:862 +#: src/Dialogs.vala:537 msgid "No photos or videos imported.\n" msgstr "Tidak ada foto atau video yang diimpor.\n" -#: src/Dialogs.vala:869 src/Dialogs.vala:888 +#: src/Dialogs.vala:544 src/Dialogs.vala:563 msgid "Import Complete" msgstr "Impor Selesai" -#: src/Dialogs.vala:1160 -#, c-format -msgid "%d second" -msgid_plural "%d seconds" -msgstr[0] "%d detik" - -#: src/Dialogs.vala:1163 -#, c-format -msgid "%d minute" -msgid_plural "%d minutes" -msgstr[0] "%d menit" - -#: src/Dialogs.vala:1167 -#, c-format -msgid "%d hour" -msgid_plural "%d hours" -msgstr[0] "%d jam" - -#: src/Dialogs.vala:1170 -msgid "1 day" -msgstr "1 hari" - -#: src/Dialogs.vala:1317 src/Resources.vala:232 +#: src/Dialogs.vala:663 src/Resources.vala:202 msgid "Rename Event" msgstr "Ubah Nama Peristiwa" -#: src/Dialogs.vala:1317 +#: src/Dialogs.vala:663 msgid "Name:" msgstr "Nama:" #. Dialog title -#: src/Dialogs.vala:1328 +#: src/Dialogs.vala:674 msgctxt "Dialog Title" msgid "Edit Title" msgstr "Sunting Judul" -#: src/Dialogs.vala:1329 src/Properties.vala:343 +#: src/Dialogs.vala:675 src/Properties.vala:347 msgid "Title:" msgstr "Judul:" #. Dialog title -#: src/Dialogs.vala:1345 src/Resources.vala:308 +#: src/Dialogs.vala:691 src/Resources.vala:278 msgid "Edit Event Comment" msgstr "Sunting Komentar Peristiwa" -#: src/Dialogs.vala:1346 +#: src/Dialogs.vala:692 msgid "Edit Photo/Video Comment" msgstr "Sunting Komentar Foto/Video" -#: src/Dialogs.vala:1347 src/Properties.vala:631 +#: src/Dialogs.vala:693 src/Properties.vala:646 msgid "Comment:" msgstr "Komentar:" -#: src/Dialogs.vala:1363 +#: src/Dialogs.vala:709 msgid "Remove and _Trash File" msgid_plural "Remove and _Trash Files" msgstr[0] "Hapus dan _Buang Berkas" -#: src/Dialogs.vala:1367 +#: src/Dialogs.vala:713 msgid "_Remove From Library" msgstr "Hapus Da_ri Pustaka" -#: src/Dialogs.vala:1410 +#: src/Dialogs.vala:756 msgid "Revert External Edit?" msgstr "Batalkan Penyuntingan Eksternal?" -#: src/Dialogs.vala:1410 +#: src/Dialogs.vala:756 msgid "Revert External Edits?" msgstr "Batalkan Penyuntingan Eksternal?" -#: src/Dialogs.vala:1412 +#: src/Dialogs.vala:758 #, c-format msgid "This will destroy all changes made to the external file. Continue?" msgid_plural "" @@ -3544,118 +3499,33 @@ msgstr[0] "" "Ini akan menghancurkan semua perubahan yang telah dibuat pada %d berkas " "eksternal. Lanjutan?" -#: src/Dialogs.vala:1416 +#: src/Dialogs.vala:762 msgid "Re_vert External Edit" msgstr "_Batalkan Penyuntingan Eksternal" -#: src/Dialogs.vala:1416 +#: src/Dialogs.vala:762 msgid "Re_vert External Edits" msgstr "_Batalkan Penyuntingan Eksternal" -#: src/Dialogs.vala:1437 +#: src/Dialogs.vala:783 #, c-format msgid "This will remove the photo from the library. Continue?" msgid_plural "This will remove %d photos from the library. Continue?" msgstr[0] "Ini akan menghapus %d foto dari pustaka. Lanjutkan?" -#: src/Dialogs.vala:1444 src/Resources.vala:174 +#: src/Dialogs.vala:790 src/Resources.vala:144 msgid "_Remove" msgstr "_Hapus" -#: src/Dialogs.vala:1445 +#: src/Dialogs.vala:791 msgid "Remove Photo From Library" msgstr "Hapus Foto Dari Album" -#: src/Dialogs.vala:1445 +#: src/Dialogs.vala:791 msgid "Remove Photos From Library" msgstr "Hapus Foto Dari Album" -#: src/Dialogs.vala:1543 -#, c-format -msgid "%d%%" -msgstr "%d%%" - -#: src/Dialogs.vala:1697 -msgid "AM" -msgstr "Pagi" - -#: src/Dialogs.vala:1698 -msgid "PM" -msgstr "Siang/Malam" - -#: src/Dialogs.vala:1699 -msgid "24 Hr" -msgstr "24 Jam" - -#: src/Dialogs.vala:1714 -msgid "_Shift photos/videos by the same amount" -msgstr "Ge_ser foto/video dalam jumlah sama" - -#: src/Dialogs.vala:1719 -msgid "Set _all photos/videos to this time" -msgstr "Atur semu_a foto/video ke waktu ini" - -#: src/Dialogs.vala:1725 -msgid "_Modify original photo file" -msgid_plural "_Modify original photo files" -msgstr[0] "_Modifikasi berkas asli foto" - -#: src/Dialogs.vala:1729 -msgid "_Modify original file" -msgid_plural "_Modify original files" -msgstr[0] "_Modifikasi berkas asli" - -#: src/Dialogs.vala:1817 -msgid "Original: " -msgstr "Asli: " - -#: src/Dialogs.vala:1818 -msgid "%m/%d/%Y, %H:%M:%S" -msgstr "%d/%m/%Y, %H:%M:%S" - -#: src/Dialogs.vala:1819 -msgid "%m/%d/%Y, %I:%M:%S %p" -msgstr "%d/%m/%Y, %I:%M:%S %p" - -#: src/Dialogs.vala:1908 -#, c-format -msgid "" -"Exposure time will be shifted forward by\n" -"%d %s, %d %s, %d %s, and %d %s." -msgstr "" -"Tanggal pengambilan gambar akan dimajukan\n" -"%d %s, %d %s, %d %s, dan %d %s." - -#: src/Dialogs.vala:1909 -#, c-format -msgid "" -"Exposure time will be shifted backward by\n" -"%d %s, %d %s, %d %s, and %d %s." -msgstr "" -"Tanggal pengambilan gambar akan dimundurkan\n" -"%d %s, %d %s, %d %s, dan %d %s." - -#: src/Dialogs.vala:1911 -msgid "day" -msgid_plural "days" -msgstr[0] "hari" - -#: src/Dialogs.vala:1912 -msgid "hour" -msgid_plural "hours" -msgstr[0] "jam" - -#: src/Dialogs.vala:1913 -msgid "minute" -msgid_plural "minutes" -msgstr[0] "menit" - -#: src/Dialogs.vala:1914 -msgid "second" -msgid_plural "seconds" -msgstr[0] "detik" - -#: src/Dialogs.vala:1958 +#: src/Dialogs.vala:811 #, c-format msgid "" "\n" @@ -3670,91 +3540,13 @@ msgstr[0] "" "\n" "Dan %d lainnya." -#: src/Dialogs.vala:1982 src/Dialogs.vala:2009 +#: src/Dialogs.vala:835 src/Dialogs.vala:862 msgid "Tags (separated by commas):" msgstr "Tanda (pisahkan dengan koma):" -#: src/Dialogs.vala:2089 -msgid "Welcome!" -msgstr "Selamat Datang!" - -#: src/Dialogs.vala:2096 -msgid "Welcome to Shotwell!" -msgstr "Selamat Datang di Shotwell!" - -#: src/Dialogs.vala:2101 -msgid "To get started, import photos in any of these ways:" -msgstr "Silakan memulai dengan mengimpor foto melalui cara berikut:" - -#: src/Dialogs.vala:2121 -#, c-format -msgid "Choose File %s Import From Folder" -msgstr "Pilih Berkas %s Impor Dari Folder" - -#: src/Dialogs.vala:2122 -msgid "Drag and drop photos onto the Shotwell window" -msgstr "Ambil dan letakkan foto ke jendela Shotwell" - -#: src/Dialogs.vala:2123 -msgid "Connect a camera to your computer and import" -msgstr "Sambungkan kamera ke komputer dan lakukan impor" - -#: src/Dialogs.vala:2134 -#, c-format -msgid "_Import photos from your %s folder" -msgstr "_Impor foto dari folder %s" - -#: src/Dialogs.vala:2141 -msgid "You can also import photos in any of these ways:" -msgstr "Anda juga dapat mengimpor foto dengan cara berikut:" - -#: src/Dialogs.vala:2152 -msgid "_Don’t show this message again" -msgstr "Janga_n tampilkan pesan ini lagi" - -#: src/Dialogs.vala:2189 -#, c-format -msgid "Import photos from your %s library" -msgstr "Impor foto dari %s pustakamu" - -#. We're installed system-wide, so use the system help. -#. We're being run from the build directory; we'll have to handle clicks to this -#. link manually ourselves, due to a limitation of help: URIs. -#: src/Dialogs.vala:2373 src/Dialogs.vala:2377 -msgid "(Help)" -msgstr "(Bantuan)" - -#: src/Dialogs.vala:2381 -#, c-format -msgid "Year%sMonth%sDay" -msgstr "Tahun%sBulan%sHari" - -#: src/Dialogs.vala:2383 -#, c-format -msgid "Year%sMonth" -msgstr "Tahun%sBulan" - -#: src/Dialogs.vala:2385 -#, c-format -msgid "Year%sMonth-Day" -msgstr "Tahun%sBulan-Hari" - -#: src/Dialogs.vala:2387 -msgid "Year-Month-Day" -msgstr "Tahun-Bulan-Hari" - -#: src/Dialogs.vala:2388 src/editing_tools/EditingTools.vala:760 -msgid "Custom" -msgstr "Bebas" - -#. Invalid pattern. -#: src/Dialogs.vala:2627 -msgid "Invalid pattern" -msgstr "Pola tak sah" - #. This function is used to determine whether or not files should be copied or linked when imported. #. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. -#: src/Dialogs.vala:2731 +#: src/Dialogs.vala:921 msgid "" "Shotwell can copy the photos into your library folder or it can import them " "without copying." @@ -3762,31 +3554,31 @@ msgstr "" "Shotwell dapat menyalin foto ke dalam folder pustaka atau mengimpor mereka " "tanpa menyalin." -#: src/Dialogs.vala:2736 +#: src/Dialogs.vala:926 msgid "Co_py Photos" msgstr "Sa_lin Foto" -#: src/Dialogs.vala:2737 +#: src/Dialogs.vala:927 msgid "_Import in Place" msgstr "_Impor di Lokasi" -#: src/Dialogs.vala:2738 +#: src/Dialogs.vala:928 msgid "Import to Library" msgstr "Impor ke Album" -#: src/Dialogs.vala:2748 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:938 src/PhotoPage.vala:2897 msgid "Remove From Library" msgstr "Hapus Dari Album" -#: src/Dialogs.vala:2749 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:939 src/PhotoPage.vala:2897 msgid "Removing Photo From Library" msgstr "Hapus Foto dari Album" -#: src/Dialogs.vala:2749 +#: src/Dialogs.vala:939 msgid "Removing Photos From Library" msgstr "Hapus Foto Dari Album" -#: src/Dialogs.vala:2763 +#: src/Dialogs.vala:953 #, c-format msgid "" "This will remove the photo/video from your Shotwell library. Would you also " @@ -3804,7 +3596,7 @@ msgstr[0] "" "\n" "Aksi ini tidak dapat dikembalikan ke semula." -#: src/Dialogs.vala:2767 +#: src/Dialogs.vala:957 #, c-format msgid "" "This will remove the video from your Shotwell library. Would you also like " @@ -3822,7 +3614,7 @@ msgstr[0] "" "\n" "Aksi ini tidak dapat dikembalikan ke semula." -#: src/Dialogs.vala:2771 +#: src/Dialogs.vala:961 #, c-format msgid "" "This will remove the photo from your Shotwell library. Would you also like " @@ -3840,7 +3632,7 @@ msgstr[0] "" "\n" "Aksi ini tidak dapat dikembalikan ke semula." -#: src/Dialogs.vala:2803 +#: src/Dialogs.vala:993 #, c-format msgid "" "The photo or video cannot be moved to your desktop trash. Delete this file?" @@ -3851,7 +3643,7 @@ msgstr[0] "" "berkas ini?" #. Alert the user that the files were not removed. -#: src/Dialogs.vala:2820 +#: src/Dialogs.vala:1010 #, c-format msgid "The photo or video cannot be deleted." msgid_plural "%d photos/videos cannot be deleted." @@ -3889,7 +3681,8 @@ msgstr "" msgid "Unable open photo %s. Sorry." msgstr "Tidak bisa membuka foto %s. Maaf." -#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:176 ui/direct.ui:8 +#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:146 ui/direct.ui:8 +#: ui/textentrydialog.ui:33 msgid "_Save" msgstr "_Simpan" @@ -3921,46 +3714,263 @@ msgstr "Simpan Sebagai" msgid "Unable to monitor %s: Not a directory (%s)" msgstr "Gagal memantau %s: Bukan direktori (%s)" -#: src/editing_tools/EditingTools.vala:644 -msgid "Return to current photo dimensions" -msgstr "Kembalikan ukuran foto saat ini" +#: src/dialogs/AdjustDateTimeDialog.vala:78 +msgid "AM" +msgstr "Pagi" -#: src/editing_tools/EditingTools.vala:647 -msgid "Set the crop for this photo" -msgstr "Atur pemotongan foto ini" +#: src/dialogs/AdjustDateTimeDialog.vala:79 +msgid "PM" +msgstr "Siang/Malam" -#: src/editing_tools/EditingTools.vala:659 -msgid "Pivot the crop rectangle between portrait and landscape orientations" -msgstr "Atur kotak pemotongan antara orientasi mendatar dan berdiri" +#: src/dialogs/AdjustDateTimeDialog.vala:80 +msgid "24 Hr" +msgstr "24 Jam" -#: src/editing_tools/EditingTools.vala:732 -msgid "Unconstrained" -msgstr "Tanpa batas" +#: src/dialogs/AdjustDateTimeDialog.vala:95 +msgid "_Shift photos/videos by the same amount" +msgstr "Ge_ser foto/video dalam jumlah sama" -#: src/editing_tools/EditingTools.vala:733 -msgid "Square" -msgstr "Kotak" +#: src/dialogs/AdjustDateTimeDialog.vala:100 +msgid "Set _all photos/videos to this time" +msgstr "Atur semu_a foto/video ke waktu ini" -#: src/editing_tools/EditingTools.vala:734 -msgid "Screen" -msgstr "Seukuran Layar" +#: src/dialogs/AdjustDateTimeDialog.vala:106 +msgid "_Modify original photo file" +msgid_plural "_Modify original photo files" +msgstr[0] "_Modifikasi berkas asli foto" -#: src/editing_tools/EditingTools.vala:736 -#: src/editing_tools/EditingTools.vala:739 -#: src/editing_tools/EditingTools.vala:749 -#: src/editing_tools/EditingTools.vala:759 -msgid "-" -msgstr "-" +#: src/dialogs/AdjustDateTimeDialog.vala:110 +msgid "_Modify original file" +msgid_plural "_Modify original files" +msgstr[0] "_Modifikasi berkas asli" -#: src/editing_tools/EditingTools.vala:737 -msgid "SD Video (4 ∶ 3)" -msgstr "Video SD (4:3)" +#: src/dialogs/AdjustDateTimeDialog.vala:213 +msgid "Original: " +msgstr "Asli: " -#: src/editing_tools/EditingTools.vala:738 -msgid "HD Video (16 ∶ 9)" -msgstr "Video HD (16:9)" +#: src/dialogs/AdjustDateTimeDialog.vala:214 +msgid "%m/%d/%Y, %H:%M:%S" +msgstr "%d/%m/%Y, %H:%M:%S" -#: src/editing_tools/EditingTools.vala:740 src/Printing.vala:792 +#: src/dialogs/AdjustDateTimeDialog.vala:215 +msgid "%m/%d/%Y, %I:%M:%S %p" +msgstr "%d/%m/%Y, %I:%M:%S %p" + +#: src/dialogs/AdjustDateTimeDialog.vala:306 +#, c-format +msgid "" +"Exposure time will be shifted forward by\n" +"%d %s, %d %s, %d %s, and %d %s." +msgstr "" +"Tanggal pengambilan gambar akan dimajukan\n" +"%d %s, %d %s, %d %s, dan %d %s." + +#: src/dialogs/AdjustDateTimeDialog.vala:307 +#, c-format +msgid "" +"Exposure time will be shifted backward by\n" +"%d %s, %d %s, %d %s, and %d %s." +msgstr "" +"Tanggal pengambilan gambar akan dimundurkan\n" +"%d %s, %d %s, %d %s, dan %d %s." + +#: src/dialogs/AdjustDateTimeDialog.vala:309 +msgid "day" +msgid_plural "days" +msgstr[0] "hari" + +#: src/dialogs/AdjustDateTimeDialog.vala:310 +msgid "hour" +msgid_plural "hours" +msgstr[0] "jam" + +#: src/dialogs/AdjustDateTimeDialog.vala:311 +msgid "minute" +msgid_plural "minutes" +msgstr[0] "menit" + +#: src/dialogs/AdjustDateTimeDialog.vala:312 +msgid "second" +msgid_plural "seconds" +msgstr[0] "detik" + +#. "Unmodified" and "Current," though they appear in the "Format:" popup menu, really +#. aren't formats so much as they are operating modes that determine specific formats. +#. Hereafter we'll refer to these as "special formats." +#: src/dialogs/ExportDialog.vala:15 +msgid "Unmodified" +msgstr "Tidak dimodifikasi" + +#: src/dialogs/ExportDialog.vala:16 +msgid "Current" +msgstr "Sekarang" + +#. layout controls +#: src/dialogs/ExportDialog.vala:90 +msgid "_Format:" +msgstr "_Format:" + +#: src/dialogs/ExportDialog.vala:93 +msgid "_Quality:" +msgstr "_Kualitas:" + +#: src/dialogs/ExportDialog.vala:96 +msgid "_Scaling constraint:" +msgstr "_Batas skala:" + +#: src/dialogs/ExportDialog.vala:99 +msgid "_Pixels:" +msgstr "_Piksel:" + +#: src/dialogs/ExportDialog.vala:103 +msgid "Export _metadata:" +msgstr "Ekspor _metadata:" + +#. We're installed system-wide, so use the system help. +#. We're being run from the build directory; we'll have to handle clicks to this +#. link manually ourselves, due to a limitation of help: URIs. +#: src/dialogs/Preferences.vala:108 src/dialogs/Preferences.vala:112 +msgid "(Help)" +msgstr "(Bantuan)" + +#: src/dialogs/Preferences.vala:116 +#, c-format +msgid "Year%sMonth%sDay" +msgstr "Tahun%sBulan%sHari" + +#: src/dialogs/Preferences.vala:118 +#, c-format +msgid "Year%sMonth" +msgstr "Tahun%sBulan" + +#: src/dialogs/Preferences.vala:120 +#, c-format +msgid "Year%sMonth-Day" +msgstr "Tahun%sBulan-Hari" + +#: src/dialogs/Preferences.vala:122 +msgid "Year-Month-Day" +msgstr "Tahun-Bulan-Hari" + +#: src/dialogs/Preferences.vala:123 src/editing_tools/EditingTools.vala:760 +msgid "Custom" +msgstr "Bebas" + +#. Invalid pattern. +#: src/dialogs/Preferences.vala:351 +msgid "Invalid pattern" +msgstr "Pola tak sah" + +#: src/dialogs/ProgressDialog.vala:97 +#, c-format +msgid "%d%%" +msgstr "%d%%" + +#: src/dialogs/SetBackgroundSlideshow.vala:49 +#, c-format +msgid "%d second" +msgid_plural "%d seconds" +msgstr[0] "%d detik" + +#: src/dialogs/SetBackgroundSlideshow.vala:52 +#, c-format +msgid "%d minute" +msgid_plural "%d minutes" +msgstr[0] "%d menit" + +#: src/dialogs/SetBackgroundSlideshow.vala:56 +#, c-format +msgid "%d hour" +msgid_plural "%d hours" +msgstr[0] "%d jam" + +#: src/dialogs/SetBackgroundSlideshow.vala:59 +msgid "1 day" +msgstr "1 hari" + +#: src/dialogs/WelcomeDialog.vala:35 +msgid "Welcome!" +msgstr "Selamat Datang!" + +#: src/dialogs/WelcomeDialog.vala:42 +msgid "Welcome to Shotwell!" +msgstr "Selamat Datang di Shotwell!" + +#: src/dialogs/WelcomeDialog.vala:47 +msgid "To get started, import photos in any of these ways:" +msgstr "Silakan memulai dengan mengimpor foto melalui cara berikut:" + +#: src/dialogs/WelcomeDialog.vala:67 +#, c-format +msgid "Choose File %s Import From Folder" +msgstr "Pilih Berkas %s Impor Dari Folder" + +#: src/dialogs/WelcomeDialog.vala:68 +msgid "Drag and drop photos onto the Shotwell window" +msgstr "Ambil dan letakkan foto ke jendela Shotwell" + +#: src/dialogs/WelcomeDialog.vala:69 +msgid "Connect a camera to your computer and import" +msgstr "Sambungkan kamera ke komputer dan lakukan impor" + +#: src/dialogs/WelcomeDialog.vala:80 +#, c-format +msgid "_Import photos from your %s folder" +msgstr "_Impor foto dari folder %s" + +#: src/dialogs/WelcomeDialog.vala:87 +msgid "You can also import photos in any of these ways:" +msgstr "Anda juga dapat mengimpor foto dengan cara berikut:" + +#: src/dialogs/WelcomeDialog.vala:98 +msgid "_Don’t show this message again" +msgstr "Janga_n tampilkan pesan ini lagi" + +#: src/dialogs/WelcomeDialog.vala:135 +#, c-format +msgid "Import photos from your %s library" +msgstr "Impor foto dari %s pustakamu" + +#: src/editing_tools/EditingTools.vala:644 +msgid "Return to current photo dimensions" +msgstr "Kembalikan ukuran foto saat ini" + +#: src/editing_tools/EditingTools.vala:647 +msgid "Set the crop for this photo" +msgstr "Atur pemotongan foto ini" + +#: src/editing_tools/EditingTools.vala:659 +msgid "Pivot the crop rectangle between portrait and landscape orientations" +msgstr "Atur kotak pemotongan antara orientasi mendatar dan berdiri" + +#: src/editing_tools/EditingTools.vala:732 +msgid "Unconstrained" +msgstr "Tanpa batas" + +#: src/editing_tools/EditingTools.vala:733 +msgid "Square" +msgstr "Kotak" + +#: src/editing_tools/EditingTools.vala:734 +msgid "Screen" +msgstr "Seukuran Layar" + +#: src/editing_tools/EditingTools.vala:736 +#: src/editing_tools/EditingTools.vala:739 +#: src/editing_tools/EditingTools.vala:749 +#: src/editing_tools/EditingTools.vala:759 +msgid "-" +msgstr "-" + +#: src/editing_tools/EditingTools.vala:737 +msgid "SD Video (4 ∶ 3)" +msgstr "Video SD (4:3)" + +#: src/editing_tools/EditingTools.vala:738 +msgid "HD Video (16 ∶ 9)" +msgstr "Video HD (16:9)" + +#: src/editing_tools/EditingTools.vala:740 src/Printing.vala:792 msgid "Wallet (2 × 3 in.)" msgstr "Dompet (2 x 3 in.)" @@ -4032,7 +4042,7 @@ msgstr "30 x 40 cm" msgid "A3 (297 × 420 mm)" msgstr "A3 (297 x 420 mm)" -#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:398 +#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:402 msgid "Size:" msgstr "Ukuran:" @@ -4050,8 +4060,8 @@ msgid "_Reset" msgstr "_Reset" #. fit both on the top line, emit and move on -#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:439 -#: src/Properties.vala:443 src/Properties.vala:450 +#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:443 +#: src/Properties.vala:447 src/Properties.vala:454 msgid "Exposure:" msgstr "Bukaan:" @@ -4075,47 +4085,49 @@ msgstr "Suhu:" msgid "Shadows:" msgstr "Kegelapan:" -#: src/editing_tools/EditingTools.vala:2285 +#. FIXME: Hack to make the slider the same length as the other. Find out why it is aligned +#. Differently (probably because it only has positive values) +#: src/editing_tools/EditingTools.vala:2287 msgid "Highlights:" msgstr "Highlight:" -#: src/editing_tools/EditingTools.vala:2341 +#: src/editing_tools/EditingTools.vala:2344 msgid "Reset Colors" msgstr "Reset Warna" -#: src/editing_tools/EditingTools.vala:2341 +#: src/editing_tools/EditingTools.vala:2344 msgid "Reset all color adjustments to original" msgstr "Kembalikan warna ke nilai aslinya" -#: src/editing_tools/EditingTools.vala:2700 +#: src/editing_tools/EditingTools.vala:2703 msgid "Temperature" msgstr "Suhu" -#: src/editing_tools/EditingTools.vala:2712 +#: src/editing_tools/EditingTools.vala:2715 msgid "Tint" msgstr "Tint" -#: src/editing_tools/EditingTools.vala:2724 +#: src/editing_tools/EditingTools.vala:2727 msgid "Contrast" msgstr "Kontras" -#: src/editing_tools/EditingTools.vala:2738 +#: src/editing_tools/EditingTools.vala:2741 msgid "Saturation" msgstr "Saturasi" -#: src/editing_tools/EditingTools.vala:2751 +#: src/editing_tools/EditingTools.vala:2754 msgid "Exposure" msgstr "Bukaan" -#: src/editing_tools/EditingTools.vala:2764 +#: src/editing_tools/EditingTools.vala:2767 msgid "Shadows" msgstr "Kegelapan" -#: src/editing_tools/EditingTools.vala:2777 +#: src/editing_tools/EditingTools.vala:2780 msgid "Highlights" msgstr "Highlight" -#: src/editing_tools/EditingTools.vala:2787 +#: src/editing_tools/EditingTools.vala:2790 msgid "Contrast Expansion" msgstr "Naikkan Kontras" @@ -4123,7 +4135,7 @@ msgstr "Naikkan Kontras" msgid "Angle:" msgstr "Sudut:" -#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:203 +#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:173 #: ui/direct.ui:144 ui/photo.ui:233 msgid "_Straighten" msgstr "_Luruskan" @@ -4134,13 +4146,13 @@ msgid "%d Photo/Video" msgid_plural "%d Photos/Videos" msgstr[0] "%d Foto/Video" -#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:358 +#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:362 #, c-format msgid "%d Video" msgid_plural "%d Videos" msgstr[0] "%d Video" -#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:356 +#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:360 #, c-format msgid "%d Photo" msgid_plural "%d Photos" @@ -4218,6 +4230,70 @@ msgstr "Timpa Semu_a" msgid "Export" msgstr "Ekspor" +#: src/faces/FacesBranch.vala:89 src/Resources.vala:305 src/Resources.vala:306 +#: ui/faces.ui:403 +msgid "Faces" +msgstr "Wajah" + +#: src/faces/FacesTool.vala:115 +msgid "Detect faces…" +msgstr "Deteksi wajah…" + +#: src/faces/FacesTool.vala:140 +msgid "Detect faces on this photo" +msgstr "Deteksi wajah di foto ini" + +#: src/faces/FacesTool.vala:142 +msgid "Cancel face detection" +msgstr "Batalkan deteksi wajah" + +#: src/faces/FacesTool.vala:146 +msgid "Close the Faces tool without saving changes" +msgstr "Tutup alat Wajah tanpa menyimpan perubahan" + +#: src/faces/FacesTool.vala:153 src/faces/FacesTool.vala:185 +msgid "Click and drag to tag a face" +msgstr "Klik dan seret untuk menandai wajah" + +#: src/faces/FacesTool.vala:180 +#, c-format +msgid "Click to edit face %s" +msgstr "Klik untuk menyunting wajah %s" + +#: src/faces/FacesTool.vala:189 +msgid "Stop dragging to add your face and name it." +msgstr "Berhenti menyeret untuk menambahkan wajah Anda dan beri nama." + +#: src/faces/FacesTool.vala:193 +msgid "Type a name for this face, then press Enter" +msgstr "Ketikkan nama untuk wajah ini, lalu tekan Enter" + +#: src/faces/FacesTool.vala:197 +msgid "Move or modify the face shape or name and press Enter" +msgstr "Pindahkan atau ubah bentuk wajah atau nama dan tekan Enter" + +#: src/faces/FacesTool.vala:201 +msgid "Detecting faces" +msgstr "Mendeteksi wajah" + +#: src/faces/FacesTool.vala:212 +msgid "If you don’t set the name of unknown faces they won’t be saved." +msgstr "" +"Jika Anda tidak menetapkan nama wajah yang tidak diketahui, mereka tidak " +"akan disimpan." + +#: src/faces/FacesTool.vala:233 +msgid "Save changes and close the Faces tool" +msgstr "Simpan perubahan dan tutup alat Wajah" + +#: src/faces/FacesTool.vala:235 +msgid "No changes to save" +msgstr "Tidak ada perubahan untuk disimpan" + +#: src/faces/FacesTool.vala:956 +msgid "Error trying to spawn face detection program:\n" +msgstr "Galat saat mencoba memunculkan program deteksi wajah:\n" + #: src/folders/FoldersBranch.vala:144 msgid "Folders" msgstr "Folder" @@ -4226,8 +4302,16 @@ msgstr "Folder" msgid "Browse the library’s folder structure" msgstr "Meramban struktur folder pustaka" -#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1098 -#: src/SearchFilter.vala:1099 +#: src/import-roll/ImportRollBranch.vala:43 +msgid "Imports" +msgstr "Impor" + +#: src/import-roll/ImportRollBranch.vala:43 +msgid "Browse the library’s import history" +msgstr "Meramban riwayat impor pustaka" + +#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1124 +#: src/SearchFilter.vala:1125 msgid "Flagged" msgstr "Ditandai" @@ -4249,7 +4333,7 @@ msgid "Last Import" msgstr "Impor terakhir" #: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 -#: ui/preferences_dialog.ui:512 +#: ui/preferences_dialog.ui:465 msgid "Library" msgstr "Album" @@ -4257,27 +4341,27 @@ msgstr "Album" msgid "Organize and browse your photos" msgstr "Organisasikan dan ramban foto Anda" -#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1079 +#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1105 msgid "Photos" msgstr "Foto" -#: src/library/LibraryWindow.vala:508 +#: src/library/LibraryWindow.vala:526 msgid "Import From Folder" msgstr "Impor Dari Folder" -#: src/library/LibraryWindow.vala:515 +#: src/library/LibraryWindow.vala:533 msgid "Recurse Into Subfolders" msgstr "Rekursi Dalam Sub Folder" -#: src/library/LibraryWindow.vala:583 ui/trash.ui:288 +#: src/library/LibraryWindow.vala:601 ui/trash.ui:288 msgid "Empty Trash" msgstr "Hapus Permanen Foto Buangan" -#: src/library/LibraryWindow.vala:583 +#: src/library/LibraryWindow.vala:601 msgid "Emptying Trash…" msgstr "Mengosongkan Tong Sampah…" -#: src/library/LibraryWindow.vala:779 +#: src/library/LibraryWindow.vala:780 #, c-format msgid "" "Shotwell is configured to import photos to your home directory.\n" @@ -4290,33 +4374,33 @@ msgstr "" "Preferensi %s.\n" "Apakah Anda ingin melanjutkan mengimpor foto?" -#: src/library/LibraryWindow.vala:782 ui/preferences_dialog.ui:142 +#: src/library/LibraryWindow.vala:783 ui/preferences_dialog.ui:86 msgid "Library Location" msgstr "Lokasi Pustaka" #. TODO: Specify which directory/file. -#: src/library/LibraryWindow.vala:795 +#: src/library/LibraryWindow.vala:796 msgid "Photos cannot be imported from this directory." msgstr "Foto tidak dapat diimpor dari direktori tersebut." -#: src/library/LibraryWindow.vala:1075 +#: src/library/LibraryWindow.vala:1076 #, c-format msgid "%s (%d%%)" msgstr "%s (%d%%)" -#: src/library/LibraryWindow.vala:1119 src/library/LibraryWindow.vala:1130 +#: src/library/LibraryWindow.vala:1120 src/library/LibraryWindow.vala:1131 msgid "Updating library…" msgstr "Memutakhirkan pustaka…" -#: src/library/LibraryWindow.vala:1136 +#: src/library/LibraryWindow.vala:1137 msgid "Preparing to auto-import photos…" msgstr "Bersiap mengimpor otomatis foto…" -#: src/library/LibraryWindow.vala:1141 +#: src/library/LibraryWindow.vala:1142 msgid "Auto-importing photos…" msgstr "Mengimpor otomatis foto…" -#: src/library/LibraryWindow.vala:1149 +#: src/library/LibraryWindow.vala:1150 msgid "Writing metadata to files…" msgstr "Menulis metadata ke berkas…" @@ -4336,7 +4420,7 @@ msgstr "Tempat Pembuangan" msgid "Trash is empty" msgstr "Tempat Pembuangan kosong" -#: src/library/TrashPage.vala:110 +#: src/library/TrashPage.vala:110 ui/faces.ui:469 msgid "Delete" msgstr "Hapus" @@ -4384,40 +4468,40 @@ msgstr "" msgid "Unknown error attempting to verify Shotwell’s database: %s" msgstr "Kesalahan tak dikenal saat mencoba verifikasi basis data Shotwell: %s" -#: src/main.vala:104 +#: src/main.vala:108 msgid "Loading Shotwell" msgstr "Menjalankan Shotwell" -#: src/main.vala:303 +#: src/main.vala:320 msgid "Path to Shotwell’s private data" msgstr "Path ke data privat Shotwell" -#: src/main.vala:303 +#: src/main.vala:320 msgid "DIRECTORY" msgstr "DIREKTORI" -#: src/main.vala:307 +#: src/main.vala:324 msgid "Do not monitor library directory at runtime for changes" msgstr "Jangan pantau perubahan direktori pustaka saat runtime" -#: src/main.vala:311 +#: src/main.vala:328 msgid "Don’t display startup progress meter" msgstr "Jangan tampilkan meter kemajuan awal mula" -#: src/main.vala:315 +#: src/main.vala:332 msgid "Show the application’s version" msgstr "Tampilkan versi aplikasi" -#: src/main.vala:319 +#: src/main.vala:336 msgid "Start the application in fullscreen mode" msgstr "Mulai aplikasi dalam mode layar penuh" #. init GTK (valac has already called g_threads_init()) -#: src/main.vala:356 +#: src/main.vala:373 msgid "[FILE]" msgstr "[FILE]" -#: src/main.vala:360 +#: src/main.vala:380 #, c-format msgid "Run “%s --help” to see a full list of available command line options.\n" msgstr "" @@ -4429,11 +4513,11 @@ msgstr "" msgid "Unable to process monitoring updates: %s" msgstr "Gagal memroses pembaruan pemantauan: %s" -#: src/MediaPage.vala:158 +#: src/MediaPage.vala:76 msgid "Adjust the size of the thumbnails" msgstr "Atur ukuran gambar mini" -#: src/MediaPage.vala:502 +#: src/MediaPage.vala:419 #, c-format msgid "" "Shotwell was unable to play the selected video:\n" @@ -4442,34 +4526,34 @@ msgstr "" "Shotwell gagal memutar video terpilih:\n" "%s" -#: src/Page.vala:1327 +#: src/Page.vala:1324 msgid "No photos/videos" msgstr "Tidak ada foto/video" -#: src/Page.vala:1331 +#: src/Page.vala:1328 msgid "No photos/videos found which match the current filter" msgstr "Tidak ditemukan foto/video yang cocok dengan penyaring saat ini" -#: src/Page.vala:2644 +#: src/Page.vala:2641 msgid "Photos cannot be exported to this directory." msgstr "Foto tidak dapat diekspor ke direktori tersebut." #. previous button -#: src/PhotoPage.vala:538 +#: src/PhotoPage.vala:550 msgid "Previous photo" msgstr "Foto sebelumnya" #. next button -#: src/PhotoPage.vala:544 +#: src/PhotoPage.vala:556 msgid "Next photo" msgstr "Foto berikutnya" -#: src/PhotoPage.vala:1850 +#: src/PhotoPage.vala:1862 #, c-format msgid "Photo source file missing: %s" msgstr "Sumber foto asli hilang: %s" -#: src/PhotoPage.vala:3018 +#: src/PhotoPage.vala:3041 #, c-format msgid "Unable to export %s: %s" msgstr "Proses ekspor %s gagal: %s" @@ -4478,6 +4562,10 @@ msgstr "Proses ekspor %s gagal: %s" msgid "BMP" msgstr "BMP" +#: src/photos/GifSupport.vala:32 +msgid "GIF" +msgstr "GIF" + #: src/photos/JfifSupport.vala:84 msgid "JPEG" msgstr "JPEG" @@ -4565,126 +4653,122 @@ msgstr "" "\n" "%s" -#: src/Properties.vala:87 +#: src/Properties.vala:98 msgid "Today" msgstr "Hari ini" -#: src/Properties.vala:89 +#: src/Properties.vala:100 msgid "Yesterday" msgstr "Kemarin" -#: src/Properties.vala:346 +#: src/Properties.vala:350 msgid "Items:" msgstr "Jumlah Foto:" -#: src/Properties.vala:349 +#: src/Properties.vala:353 #, c-format msgid "%d Event" msgid_plural "%d Events" msgstr[0] "%d Rangkaian" #. display only one date if start and end are the same -#: src/Properties.vala:380 +#: src/Properties.vala:384 msgid "Date:" msgstr "Tanggal:" #. display only one time if start and end are the same -#: src/Properties.vala:384 +#: src/Properties.vala:388 msgid "Time:" msgstr "Jam:" #. display time range #. display date range -#: src/Properties.vala:387 src/Properties.vala:392 +#: src/Properties.vala:391 src/Properties.vala:396 msgid "From:" msgstr "Sejak:" -#: src/Properties.vala:388 src/Properties.vala:393 +#: src/Properties.vala:392 src/Properties.vala:397 msgid "To:" msgstr "Hingga:" -#: src/Properties.vala:407 +#: src/Properties.vala:411 msgid "Duration:" msgstr "Durasi:" -#: src/Properties.vala:407 +#: src/Properties.vala:411 #, c-format msgid "%.1f seconds" msgstr "%.1f detik" -#: src/Properties.vala:411 +#: src/Properties.vala:415 msgid "Developer:" msgstr "Pengembang:" #. nothing special to be done for now for Events -#: src/Properties.vala:586 +#: src/Properties.vala:593 msgid "Location:" msgstr "Letak di sistem:" -#: src/Properties.vala:589 +#: src/Properties.vala:596 msgid "File size:" msgstr "Ukuran berkas:" -#: src/Properties.vala:593 +#: src/Properties.vala:600 msgid "Current Development:" msgstr "Pengembangan Saat Ini:" -#: src/Properties.vala:595 +#: src/Properties.vala:602 msgid "Original dimensions:" msgstr "Ukuran asli:" -#: src/Properties.vala:598 +#: src/Properties.vala:605 msgid "Camera make:" msgstr "Merek kamera:" -#: src/Properties.vala:601 +#: src/Properties.vala:608 msgid "Camera model:" msgstr "Model kamera:" -#: src/Properties.vala:604 +#: src/Properties.vala:611 msgid "Flash:" msgstr "Lampu kilat:" -#: src/Properties.vala:606 +#: src/Properties.vala:613 msgid "Focal length:" msgstr "Panjang fokus:" -#: src/Properties.vala:609 +#: src/Properties.vala:616 msgid "Exposure date:" msgstr "Tanggal bukaan:" -#: src/Properties.vala:612 +#: src/Properties.vala:619 msgid "Exposure time:" msgstr "Waktu bukaan:" -#: src/Properties.vala:615 +#: src/Properties.vala:622 msgid "Exposure bias:" msgstr "Bias bukaan:" -#: src/Properties.vala:617 +#: src/Properties.vala:632 msgid "GPS latitude:" msgstr "Garis lintang GPS:" -#: src/Properties.vala:620 +#: src/Properties.vala:635 msgid "GPS longitude:" msgstr "Garis bujur GPS:" -#: src/Properties.vala:623 +#: src/Properties.vala:638 msgid "Artist:" msgstr "Pengambil gambar:" -#: src/Properties.vala:625 +#: src/Properties.vala:640 msgid "Copyright:" msgstr "Hak cipta:" -#: src/Properties.vala:627 +#: src/Properties.vala:642 msgid "Software:" msgstr "Perangkat Lunak:" -#: src/Properties.vala:644 -msgid "Extended Information" -msgstr "Informasi Lanjutan" - #: src/publishing/PublishingPluginHost.vala:11 msgid "Preparing for upload" msgstr "Bersiap mengunggah" @@ -4727,37 +4811,37 @@ msgstr "Mengambil informasi akun…" msgid "Logging in…" msgstr "Sedang log masuk…" -#: src/publishing/PublishingUI.vala:195 +#: src/publishing/PublishingUI.vala:197 msgid "Publish Photos" msgstr "Kirim Foto" -#: src/publishing/PublishingUI.vala:196 +#: src/publishing/PublishingUI.vala:198 msgid "Publish photos _to:" msgstr "Kirim foto _ke:" -#: src/publishing/PublishingUI.vala:198 +#: src/publishing/PublishingUI.vala:200 msgid "Publish Videos" msgstr "Kirim Video" -#: src/publishing/PublishingUI.vala:199 +#: src/publishing/PublishingUI.vala:201 msgid "Publish videos _to" msgstr "Kirim video _ke" -#: src/publishing/PublishingUI.vala:201 +#: src/publishing/PublishingUI.vala:203 msgid "Publish Photos and Videos" msgstr "Kirim Foto dan Video" -#: src/publishing/PublishingUI.vala:202 +#: src/publishing/PublishingUI.vala:204 msgid "Publish photos and videos _to" msgstr "Kirim Foto dan Video _ke" #. There are no enabled publishing services that accept this media type, #. warn the user. -#: src/publishing/PublishingUI.vala:412 +#: src/publishing/PublishingUI.vala:414 msgid "Unable to publish" msgstr "Tidak dapat mengirim" -#: src/publishing/PublishingUI.vala:413 +#: src/publishing/PublishingUI.vala:415 #, c-format msgid "" "Shotwell cannot publish the selected items because you do not have a " @@ -4774,727 +4858,794 @@ msgstr "" msgid "Publishing" msgstr "Kirimkan" -#: src/Resources.vala:141 src/Resources.vala:146 ui/collection.ui:151 +#: src/Resources.vala:111 src/Resources.vala:116 ui/collection.ui:151 msgid "Rotate" msgstr "Putar" -#: src/Resources.vala:142 +#: src/Resources.vala:112 msgid "Rotate Right" msgstr "Putar Kanan" -#: src/Resources.vala:143 ui/collection.ui:148 +#: src/Resources.vala:113 ui/collection.ui:148 msgid "Rotate the photos right (press Ctrl to rotate left)" msgstr "Putar foto ke kanan (tekan Ctrl untuk putar ke kiri)" -#: src/Resources.vala:147 +#: src/Resources.vala:117 msgid "Rotate Left" msgstr "Putar Kiri" -#: src/Resources.vala:148 +#: src/Resources.vala:118 msgid "Rotate the photos left" msgstr "Putar foto ke kiri" -#: src/Resources.vala:151 +#: src/Resources.vala:121 msgid "Flip Horizontally" msgstr "Balik Horizontal" -#: src/Resources.vala:154 +#: src/Resources.vala:124 msgid "Flip Vertically" msgstr "Balik Vertikal" -#: src/Resources.vala:156 ui/direct.ui:191 ui/events_directory.ui:168 -#: ui/event.ui:438 ui/import_queue.ui:83 ui/import.ui:201 ui/media.ui:421 -#: ui/offline.ui:198 ui/photo.ui:404 ui/tags.ui:440 ui/trash.ui:207 +#: src/Resources.vala:126 ui/direct.ui:192 ui/events_directory.ui:168 +#: ui/event.ui:438 ui/faces.ui:448 ui/import_queue.ui:83 ui/import.ui:201 +#: ui/manifest_widget.ui:35 ui/media.ui:421 ui/offline.ui:198 ui/photo.ui:405 +#: ui/tags.ui:440 ui/trash.ui:207 msgid "_About" msgstr "Tent_ang" -#: src/Resources.vala:157 +#: src/Resources.vala:127 msgid "_Apply" msgstr "Ter_apkan" -#: src/Resources.vala:160 ui/direct.ui:44 ui/events_directory.ui:32 -#: ui/event.ui:47 ui/import.ui:40 ui/media.ui:47 ui/offline.ui:32 -#: ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 +#: src/Resources.vala:130 ui/direct.ui:44 ui/events_directory.ui:32 +#: ui/event.ui:47 ui/faces.ui:47 ui/import.ui:40 ui/media.ui:47 +#: ui/offline.ui:32 ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 msgid "_Edit" msgstr "S_unting" -#: src/Resources.vala:161 +#: src/Resources.vala:131 msgid "_Forward" msgstr "Ma_ju" -#: src/Resources.vala:162 ui/direct.ui:62 ui/events_directory.ui:125 +#: src/Resources.vala:132 ui/direct.ui:62 ui/events_directory.ui:125 #: ui/photo.ui:173 msgid "Fulls_creen" msgstr "Layar _Penuh" -#: src/Resources.vala:163 ui/direct.ui:173 ui/direct.ui:176 +#: src/Resources.vala:133 ui/direct.ui:174 ui/direct.ui:177 #: ui/events_directory.ui:150 ui/events_directory.ui:153 ui/event.ui:420 -#: ui/event.ui:423 ui/import_queue.ui:65 ui/import_queue.ui:68 ui/import.ui:183 -#: ui/import.ui:186 ui/media.ui:403 ui/media.ui:406 ui/offline.ui:180 -#: ui/offline.ui:183 ui/photo.ui:386 ui/photo.ui:389 ui/tags.ui:422 -#: ui/tags.ui:425 ui/trash.ui:189 ui/trash.ui:192 +#: ui/event.ui:423 ui/faces.ui:430 ui/faces.ui:433 ui/import_queue.ui:65 +#: ui/import_queue.ui:68 ui/import.ui:183 ui/import.ui:186 ui/media.ui:403 +#: ui/media.ui:406 ui/offline.ui:180 ui/offline.ui:183 ui/photo.ui:387 +#: ui/photo.ui:390 ui/tags.ui:422 ui/tags.ui:425 ui/trash.ui:189 +#: ui/trash.ui:192 msgid "_Help" msgstr "Ba_ntuan" -#: src/Resources.vala:164 +#: src/Resources.vala:134 msgid "Leave _Fullscreen" msgstr "Layar _Biasa" -#: src/Resources.vala:165 src/Resources.vala:364 ui/tags.ui:450 +#: src/Resources.vala:135 src/Resources.vala:343 ui/tags.ui:450 msgid "_New" msgstr "_Baru" -#: src/Resources.vala:166 +#: src/Resources.vala:136 msgid "_Next" msgstr "Sela_njutnya" -#: src/Resources.vala:169 src/Resources.vala:318 ui/events_directory.ui:65 -#: ui/event.ui:93 ui/import.ui:68 ui/media.ui:93 ui/offline.ui:72 -#: ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 +#: src/Resources.vala:139 src/Resources.vala:288 ui/events_directory.ui:65 +#: ui/event.ui:93 ui/faces.ui:93 ui/import.ui:68 ui/media.ui:93 +#: ui/offline.ui:72 ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 msgid "_Preferences" msgstr "_Pengaturan" -#: src/Resources.vala:170 +#: src/Resources.vala:140 msgid "_Previous" msgstr "Se_belumnya" -#: src/Resources.vala:172 ui/direct.ui:37 ui/events_directory.ui:25 -#: ui/event.ui:40 ui/import_queue.ui:31 ui/import.ui:33 ui/media.ui:40 -#: ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 +#: src/Resources.vala:142 ui/direct.ui:37 ui/events_directory.ui:25 +#: ui/event.ui:40 ui/faces.ui:40 ui/import_queue.ui:31 ui/import.ui:33 +#: ui/media.ui:40 ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 msgid "_Quit" msgstr "_Keluar" -#: src/Resources.vala:173 +#: src/Resources.vala:143 msgid "_Refresh" msgstr "Sega_rkan" -#: src/Resources.vala:175 +#: src/Resources.vala:145 msgid "_Revert" msgstr "Puli_hkan" -#: src/Resources.vala:177 +#: src/Resources.vala:147 msgid "Save _As" msgstr "Simpan Seb_agai" -#: src/Resources.vala:178 +#: src/Resources.vala:148 msgid "Sort _Ascending" msgstr "Urutkan N_aik" -#: src/Resources.vala:179 +#: src/Resources.vala:149 msgid "Sort _Descending" msgstr "Urut _Turun" -#: src/Resources.vala:180 +#: src/Resources.vala:150 msgid "_Stop" msgstr "_Berhenti" -#: src/Resources.vala:181 +#: src/Resources.vala:151 msgid "_Undelete" msgstr "Tak Jadi Hap_us" -#: src/Resources.vala:182 +#: src/Resources.vala:152 msgid "_Normal Size" msgstr "Ukuran _Normal" -#: src/Resources.vala:183 +#: src/Resources.vala:153 msgid "Best _Fit" msgstr "_Pas Terbaik" -#: src/Resources.vala:184 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 -#: ui/photo.ui:144 ui/tags.ui:260 +#: src/Resources.vala:154 ui/direct.ui:69 ui/event.ui:260 ui/faces.ui:260 +#: ui/media.ui:260 ui/photo.ui:144 ui/tags.ui:260 msgid "Zoom _In" msgstr "Zum _Masuk" -#: src/Resources.vala:185 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 -#: ui/photo.ui:149 ui/tags.ui:265 +#: src/Resources.vala:155 ui/direct.ui:74 ui/event.ui:265 ui/faces.ui:265 +#: ui/media.ui:265 ui/photo.ui:149 ui/tags.ui:265 msgid "Zoom _Out" msgstr "Zum _Keluar" -#: src/Resources.vala:188 ui/collection.ui:167 +#: src/Resources.vala:158 ui/collection.ui:167 msgid "Enhance" msgstr "Tajamkan" -#: src/Resources.vala:189 ui/collection.ui:164 +#: src/Resources.vala:159 ui/collection.ui:164 msgid "Automatically improve the photo’s appearance" msgstr "Secara otomatis memperbaiki penampilan foto" -#: src/Resources.vala:192 +#: src/Resources.vala:162 msgid "Copy Color Adjustments" msgstr "Salin Penyetelan Warna" -#: src/Resources.vala:193 +#: src/Resources.vala:163 msgid "Copy the color adjustments applied to the photo" msgstr "Salin penyetelan warna yang diterapkan ke foto" -#: src/Resources.vala:196 +#: src/Resources.vala:166 msgid "Paste Color Adjustments" msgstr "Tempel Penyetelan Warna" -#: src/Resources.vala:197 +#: src/Resources.vala:167 msgid "Apply copied color adjustments to the selected photos" msgstr "Terapkan penyetelan warna yang disalin ke foto yang dipilih" -#: src/Resources.vala:199 ui/direct.ui:139 ui/photo.ui:228 +#: src/Resources.vala:169 ui/direct.ui:139 ui/photo.ui:228 msgid "_Crop" msgstr "_Pangkas" -#: src/Resources.vala:200 +#: src/Resources.vala:170 msgid "Crop" msgstr "Pangkas" -#: src/Resources.vala:201 +#: src/Resources.vala:171 msgid "Crop the photo’s size" msgstr "Pangkas ukuran foto" -#: src/Resources.vala:204 +#: src/Resources.vala:174 msgid "Straighten" msgstr "Luruskan" -#: src/Resources.vala:205 +#: src/Resources.vala:175 msgid "Straighten the photo" msgstr "Luruskan foto" -#: src/Resources.vala:207 ui/direct.ui:149 ui/photo.ui:238 +#: src/Resources.vala:177 ui/direct.ui:149 ui/photo.ui:238 msgid "_Red-eye" msgstr "Mata-me_rah" -#: src/Resources.vala:208 +#: src/Resources.vala:178 msgid "Red-eye" msgstr "Mata-merah" -#: src/Resources.vala:209 +#: src/Resources.vala:179 msgid "Reduce or eliminate any red-eye effects in the photo" msgstr "Hilangkan efek mata merah pada foto" -#: src/Resources.vala:211 ui/direct.ui:154 ui/photo.ui:243 +#: src/Resources.vala:181 ui/direct.ui:154 ui/photo.ui:243 msgid "_Adjust" msgstr "_Atur" -#: src/Resources.vala:212 +#: src/Resources.vala:182 msgid "Adjust" msgstr "Atur" -#: src/Resources.vala:213 +#: src/Resources.vala:183 msgid "Adjust the photo’s color and tone" msgstr "Atur warna dan tonal foto" -#: src/Resources.vala:216 +#: src/Resources.vala:186 msgid "Revert to Original" msgstr "Kembalikan ke Asal" -#: src/Resources.vala:218 +#: src/Resources.vala:188 msgid "Revert External E_dits" msgstr "Kembalikan Suntingan E_ksternal" -#: src/Resources.vala:219 +#: src/Resources.vala:189 msgid "Revert to the master photo" msgstr "Abaikan perubahan dan kembalikan ke foto asal" -#: src/Resources.vala:222 +#: src/Resources.vala:192 msgid "Set selected image to be the new desktop background" msgstr "Jadikan foto ini menjadi gambar latar desktop" -#: src/Resources.vala:223 +#: src/Resources.vala:193 msgid "Set as _Desktop Slideshow…" msgstr "Atur sebagai Salindia _Desktop…" -#: src/Resources.vala:225 ui/direct.ui:47 ui/events_directory.ui:35 -#: ui/event.ui:50 ui/import.ui:43 ui/media.ui:50 ui/offline.ui:35 -#: ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 +#: src/Resources.vala:195 ui/direct.ui:47 ui/events_directory.ui:35 +#: ui/event.ui:50 ui/faces.ui:50 ui/import.ui:43 ui/media.ui:50 +#: ui/offline.ui:35 ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 msgid "_Undo" msgstr "_Tak Jadi" -#: src/Resources.vala:226 +#: src/Resources.vala:196 msgid "Undo" msgstr "Batalkan" -#: src/Resources.vala:228 ui/direct.ui:52 ui/events_directory.ui:40 -#: ui/event.ui:55 ui/import.ui:48 ui/media.ui:55 ui/offline.ui:40 -#: ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 +#: src/Resources.vala:198 ui/direct.ui:52 ui/events_directory.ui:40 +#: ui/event.ui:55 ui/faces.ui:55 ui/import.ui:48 ui/media.ui:55 +#: ui/offline.ui:40 ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 msgid "_Redo" msgstr "_Jadi Lagi" -#: src/Resources.vala:229 +#: src/Resources.vala:199 msgid "Redo" msgstr "Jadikan" -#: src/Resources.vala:231 ui/events_directory.ui:139 ui/events_directory.ui:181 +#: src/Resources.vala:201 ui/events_directory.ui:139 ui/events_directory.ui:181 #: ui/event.ui:393 ui/event.ui:588 msgid "Re_name Event…" msgstr "Ubah _Nama Peristiwa…" -#: src/Resources.vala:234 ui/event.ui:373 ui/event.ui:580 +#: src/Resources.vala:204 ui/event.ui:373 ui/event.ui:580 msgid "Make _Key Photo for Event" msgstr "Jadi_kan Foto Utama Untuk Rangkaian Ini" -#: src/Resources.vala:235 +#: src/Resources.vala:205 msgid "Make Key Photo for Event" msgstr "Jadikan Foto Utama Untuk Rangkaian Ini" -#: src/Resources.vala:237 ui/event.ui:382 ui/media.ui:376 ui/tags.ui:376 +#: src/Resources.vala:207 ui/event.ui:382 ui/faces.ui:376 ui/media.ui:376 +#: ui/tags.ui:376 msgid "_New Event" msgstr "Rangkaia_n Baru" -#: src/Resources.vala:238 +#: src/Resources.vala:208 msgid "New Event" msgstr "Rangkaian Baru" -#: src/Resources.vala:240 +#: src/Resources.vala:210 msgid "Move Photos" msgstr "Pindahkan Foto" -#: src/Resources.vala:241 +#: src/Resources.vala:211 msgid "Move photos to an event" msgstr "Pindahkan foto ke sebuah rangkaian" -#: src/Resources.vala:243 ui/events_directory.ui:135 ui/events_directory.ui:177 +#: src/Resources.vala:213 ui/events_directory.ui:135 ui/events_directory.ui:177 msgid "_Merge Events" msgstr "_Gabungkan Rangkaian" -#: src/Resources.vala:244 +#: src/Resources.vala:214 msgid "Merge" msgstr "Gabungkan" -#: src/Resources.vala:245 +#: src/Resources.vala:215 msgid "Combine events into a single event" msgstr "Gabungkan acara-acara ke satu acara" -#: src/Resources.vala:247 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 -#: ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 ui/tags.ui:286 +#: src/Resources.vala:217 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 +#: ui/faces.ui:286 ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 +#: ui/tags.ui:286 msgid "_Set Rating" msgstr "_Atur Rating" -#: src/Resources.vala:248 +#: src/Resources.vala:218 msgid "Set Rating" msgstr "Atur Rating" -#: src/Resources.vala:249 +#: src/Resources.vala:219 msgid "Change the rating of your photo" msgstr "Ubah rating foto" -#: src/Resources.vala:251 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 -#: ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 ui/tags.ui:326 +#: src/Resources.vala:221 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 +#: ui/faces.ui:326 ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 +#: ui/tags.ui:326 msgid "_Increase" msgstr "_Naik" -#: src/Resources.vala:252 +#: src/Resources.vala:222 msgid "Increase Rating" msgstr "Naikkan Rating" -#: src/Resources.vala:254 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 -#: ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 ui/tags.ui:331 +#: src/Resources.vala:224 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 +#: ui/faces.ui:331 ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 +#: ui/tags.ui:331 msgid "_Decrease" msgstr "_Turun" -#: src/Resources.vala:255 +#: src/Resources.vala:225 msgid "Decrease Rating" msgstr "Turunkan Rating" -#: src/Resources.vala:257 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 -#: ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 ui/tags.ui:314 +#: src/Resources.vala:227 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 +#: ui/faces.ui:314 ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 +#: ui/tags.ui:314 msgid "_Unrated" msgstr "_Tanpa Rating" -#: src/Resources.vala:258 +#: src/Resources.vala:228 msgid "Unrated" msgstr "Tanpa Rating" -#: src/Resources.vala:259 +#: src/Resources.vala:229 msgid "Rate Unrated" msgstr "Belum Dirating" -#: src/Resources.vala:260 +#: src/Resources.vala:230 msgid "Setting as unrated" msgstr "Atur sebagai Tanpa Rating" -#: src/Resources.vala:261 +#: src/Resources.vala:231 msgid "Remove any ratings" msgstr "Hapus rating" -#: src/Resources.vala:263 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 -#: ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 ui/tags.ui:319 +#: src/Resources.vala:233 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 +#: ui/faces.ui:319 ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 +#: ui/tags.ui:319 msgid "_Rejected" msgstr "_Ditolak" -#: src/Resources.vala:264 +#: src/Resources.vala:234 msgid "Rejected" msgstr "Ditolak" -#: src/Resources.vala:265 +#: src/Resources.vala:235 msgid "Rate Rejected" msgstr "Rating Ditolak" -#: src/Resources.vala:266 +#: src/Resources.vala:236 msgid "Setting as rejected" msgstr "Atur ke ditolak" -#: src/Resources.vala:267 +#: src/Resources.vala:237 msgid "Set rating to rejected" msgstr "Atur rating ke ditolak" -#: src/Resources.vala:269 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 -#: ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 ui/trash.ui:162 +#: src/Resources.vala:239 ui/event.ui:196 ui/faces.ui:196 ui/import.ui:156 +#: ui/media.ui:196 ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 +#: ui/trash.ui:162 msgid "Rejected _Only" msgstr "_Hanya Ditolak" -#: src/Resources.vala:270 +#: src/Resources.vala:240 msgid "Rejected Only" msgstr "Hanya Ditolak" -#: src/Resources.vala:271 +#: src/Resources.vala:241 msgid "Show only rejected photos" msgstr "Tampilkan hanya foto yang ditolak" -#: src/Resources.vala:273 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 -#: ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 ui/trash.ui:156 +#: src/Resources.vala:243 ui/event.ui:190 ui/faces.ui:190 ui/import.ui:150 +#: ui/media.ui:190 ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 +#: ui/trash.ui:156 msgid "All + _Rejected" msgstr "Semua + _Ditolak" -#: src/Resources.vala:274 +#: src/Resources.vala:244 msgctxt "Tooltip" msgid "Show all photos, including rejected" msgstr "Tampilkan semua foto, termasuk yang ditolak" -#: src/Resources.vala:276 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 -#: ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 ui/trash.ui:150 +#: src/Resources.vala:246 ui/event.ui:184 ui/faces.ui:184 ui/import.ui:144 +#: ui/media.ui:184 ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 +#: ui/trash.ui:150 msgid "_All Photos" msgstr "Semu_a foto" #. Button tooltip -#: src/Resources.vala:278 +#: src/Resources.vala:248 msgid "Show all photos" msgstr "Tunjukkan semua foto" -#: src/Resources.vala:280 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 -#: ui/tags.ui:144 +#: src/Resources.vala:250 ui/event.ui:144 ui/faces.ui:144 ui/media.ui:144 +#: ui/photo.ui:120 ui/tags.ui:144 msgid "_Ratings" msgstr "_Rating" -#: src/Resources.vala:281 +#: src/Resources.vala:251 msgid "Display each photo’s rating" msgstr "Tampilkan rating tiap foto" -#: src/Resources.vala:283 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 -#: ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 +#: src/Resources.vala:253 ui/event.ui:151 ui/faces.ui:151 ui/import.ui:111 +#: ui/media.ui:151 ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 msgid "_Filter Photos" msgstr "_Saring Foto" -#: src/Resources.vala:284 +#: src/Resources.vala:254 msgid "Filter Photos" msgstr "Saring Foto" -#: src/Resources.vala:285 +#: src/Resources.vala:255 msgid "Limit the number of photos displayed based on a filter" msgstr "Batasi jumlah foto yang tampil berdasarkan penyaringan" -#: src/Resources.vala:288 +#: src/Resources.vala:258 msgid "Duplicate" msgstr "Gandakan" -#: src/Resources.vala:289 +#: src/Resources.vala:259 msgid "Make a duplicate of the photo" msgstr "Gandakan foto-foto ini" -#: src/Resources.vala:291 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 -#: ui/tags.ui:17 +#: src/Resources.vala:261 ui/event.ui:17 ui/faces.ui:17 ui/media.ui:17 +#: ui/photo.ui:17 ui/tags.ui:17 msgid "_Export…" msgstr "_Ekspor…" -#: src/Resources.vala:293 +#: src/Resources.vala:263 msgid "_Print…" msgstr "_Cetak…" -#: src/Resources.vala:295 +#: src/Resources.vala:265 msgid "Pu_blish…" msgstr "Pu_blikasikan…" -#: src/Resources.vala:297 ui/collection.ui:189 +#: src/Resources.vala:267 ui/collection.ui:189 msgid "Publish to various websites" msgstr "Kirim foto ini ke beragam situs" -#: src/Resources.vala:299 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 -#: ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 ui/tags.ui:340 +#: src/Resources.vala:269 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 +#: ui/faces.ui:340 ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 +#: ui/tags.ui:340 msgid "Edit _Title…" msgstr "Sun_ting Judul…" #. Button label -#: src/Resources.vala:301 +#: src/Resources.vala:271 msgctxt "Button Label" msgid "Edit Title" msgstr "Sunting Judul" -#: src/Resources.vala:303 ui/collection.ui:103 ui/events_directory.ui:144 +#: src/Resources.vala:273 ui/collection.ui:103 ui/events_directory.ui:144 #: ui/events_directory.ui:186 ui/event.ui:345 ui/event.ui:398 ui/event.ui:542 -#: ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 ui/tags.ui:345 +#: ui/faces.ui:345 ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 +#: ui/tags.ui:345 msgid "Edit _Comment…" msgstr "Sunting _Komentar…" #. Button label -#: src/Resources.vala:305 +#: src/Resources.vala:275 msgid "Edit Comment" msgstr "Sunting Komentar" -#: src/Resources.vala:307 ui/event.ui:592 +#: src/Resources.vala:277 ui/event.ui:592 msgid "Edit Event _Comment…" msgstr "Sunting Komentar Peristiwa…" -#: src/Resources.vala:310 ui/direct.ui:167 ui/photo.ui:337 +#: src/Resources.vala:280 ui/direct.ui:167 ui/photo.ui:337 msgid "_Adjust Date and Time…" msgstr "_Atur Jam dan Tanggal…" -#: src/Resources.vala:311 +#: src/Resources.vala:281 msgid "Adjust Date and Time" msgstr "Atur Jam dan Tanggal" -#: src/Resources.vala:313 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 -#: ui/media.ui:390 ui/photo.ui:374 ui/tags.ui:390 +#: src/Resources.vala:283 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 +#: ui/faces.ui:390 ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 msgid "Add _Tags…" msgstr "_Tambah Tag…" -#: src/Resources.vala:314 ui/photo_context.ui:17 +#: src/Resources.vala:284 ui/photo_context.ui:17 msgid "_Add Tags…" msgstr "T_ambah Tag…" #. Dialog title -#: src/Resources.vala:316 +#: src/Resources.vala:286 msgctxt "Dialog Title" msgid "Add Tags" msgstr "Tambah Tag" -#: src/Resources.vala:325 ui/photo_context.ui:135 +#: src/Resources.vala:295 ui/photo_context.ui:135 msgid "Send T_o…" msgstr "_Kirim Ke…" -#: src/Resources.vala:327 +#: src/Resources.vala:297 msgid "_Find…" msgstr "_Cari…" -#: src/Resources.vala:328 ui/collection.ui:217 ui/offline.ui:239 +#: src/Resources.vala:298 ui/collection.ui:217 ui/offline.ui:239 #: ui/trash.ui:312 msgid "Find" msgstr "Cari" -#: src/Resources.vala:329 ui/collection.ui:214 ui/offline.ui:236 +#: src/Resources.vala:299 ui/collection.ui:214 ui/offline.ui:236 #: ui/trash.ui:309 msgid "Find an image by typing text that appears in its name or tags" msgstr "Cari foto dengan mengetikkan teks yang muncul di nama atau tanda" -#: src/Resources.vala:331 +#: src/Resources.vala:301 msgid "_Flag" msgstr "_Tanda" -#: src/Resources.vala:333 +#: src/Resources.vala:303 msgid "Un_flag" msgstr "Lepas _tanda" -#: src/Resources.vala:336 +#: src/Resources.vala:307 +msgid "Mark faces of people in the photo" +msgstr "Tandai wajah orang-orang di foto" + +#: src/Resources.vala:308 +msgid "Modify Faces" +msgstr "Ubah Wajah" + +#: src/Resources.vala:309 +msgid "Delete Face" +msgstr "Hapus Wajah" + +#: src/Resources.vala:311 src/Resources.vala:353 ui/tags.ui:456 +msgid "_Rename…" +msgstr "_Ubah Nama…" + +#: src/Resources.vala:315 #, c-format msgid "Unable to launch editor: %s" msgstr "Program penyunting tidak dapat dijalankan: %s" -#: src/Resources.vala:341 +#: src/Resources.vala:320 #, c-format msgid "Add Tag “%s”" msgstr "Tambah Tag \"%s\"" #. Used when adding two tags to photo(s) -#: src/Resources.vala:344 +#: src/Resources.vala:323 #, c-format msgid "Add Tags “%s” and “%s”" msgstr "Tambah Tag \"%s\" dan \"%s\"" #. Undo/Redo command name (in Edit menu) -#: src/Resources.vala:349 +#: src/Resources.vala:328 msgctxt "UndoRedo menu entry" msgid "Add Tags" msgstr "Tambah Tag" -#: src/Resources.vala:354 +#: src/Resources.vala:333 #, c-format msgid "_Delete Tag “%s”" msgstr "_Hapus Tag \"%s\"" -#: src/Resources.vala:358 +#: src/Resources.vala:337 #, c-format msgid "Delete Tag “%s”" msgstr "Hapus Tag \"%s\"" -#: src/Resources.vala:361 +#: src/Resources.vala:340 msgid "Delete Tag" msgstr "Hapus Tag" -#: src/Resources.vala:367 +#: src/Resources.vala:346 #, c-format msgid "Re_name Tag “%s”…" msgstr "Ubah _Nama Tag \"%s\"…" -#: src/Resources.vala:371 +#: src/Resources.vala:350 #, c-format msgid "Rename Tag “%s” to “%s”" msgstr "Ubah Nama Tag \"%s\" menjadi \"%s\"" -#: src/Resources.vala:374 ui/tags.ui:456 -msgid "_Rename…" -msgstr "_Ubah Nama…" - -#: src/Resources.vala:376 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 -#: ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:379 ui/tags.ui:395 +#: src/Resources.vala:355 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 +#: ui/faces.ui:395 ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 +#: ui/tags.ui:395 msgid "Modif_y Tags…" msgstr "U_bah Tag…" -#: src/Resources.vala:377 +#: src/Resources.vala:356 msgid "Modify Tags" msgstr "Ubah Tag" -#: src/Resources.vala:380 +#: src/Resources.vala:359 #, c-format msgid "Tag Photo as “%s”" msgid_plural "Tag Photos as “%s”" msgstr[0] "Tag Foto sebagai \"%s\"" -#: src/Resources.vala:386 +#: src/Resources.vala:365 #, c-format msgid "Tag the selected photo as “%s”" msgid_plural "Tag the selected photos as “%s”" msgstr[0] "Tag foto terpilih sebagai \"%s\"" -#: src/Resources.vala:392 +#: src/Resources.vala:371 #, c-format msgid "Remove Tag “%s” From _Photo" msgid_plural "Remove Tag “%s” From _Photos" msgstr[0] "Hapus Tag \"%s\" Dari _Foto" -#: src/Resources.vala:398 +#: src/Resources.vala:377 #, c-format msgid "Remove Tag “%s” From Photo" msgid_plural "Remove Tag “%s” From Photos" msgstr[0] "Hapus Tag \"%s\" Dari Foto" -#: src/Resources.vala:404 +#: src/Resources.vala:383 #, c-format msgid "Unable to rename tag to “%s” because the tag already exists." msgstr "Tag tidak dapat diubah menjadi \"%s\" karena sudah ada." -#: src/Resources.vala:408 +#: src/Resources.vala:387 #, c-format msgid "Unable to rename search to “%s” because the search already exists." msgstr "Tidak bisa mengubah nama pencarian ke \"%s\" karena sudah ada." #. Saved search button -#: src/Resources.vala:411 src/SearchFilter.vala:1120 +#: src/Resources.vala:390 src/SearchFilter.vala:1146 msgid "Saved Search" msgstr "Pencarian Tersimpan" -#: src/Resources.vala:413 +#: src/Resources.vala:392 msgid "Delete Search" msgstr "Hapus Pencarian" -#: src/Resources.vala:416 ui/savedsearch.ui:10 +#: src/Resources.vala:395 ui/savedsearch.ui:10 msgid "_Edit…" msgstr "S_unting…" -#: src/Resources.vala:417 ui/savedsearch.ui:6 +#: src/Resources.vala:396 ui/savedsearch.ui:6 msgid "Re_name…" msgstr "Ganti _nama…" -#: src/Resources.vala:420 +#: src/Resources.vala:399 #, c-format msgid "Rename Search “%s” to “%s”" msgstr "Ubah Nama Pencarian \"%s\" menjadi \"%s\"" -#: src/Resources.vala:424 +#: src/Resources.vala:403 #, c-format msgid "Delete Search “%s”" msgstr "Hapus Pencarian \"%s\"" -#: src/Resources.vala:561 +#: src/Resources.vala:408 +#, c-format +msgid "Unable to rename face to “%s” because the face already exists." +msgstr "" +"Tidak dapat mengganti nama wajah menjadi \"%s\" karena wajah sudah ada." + +#: src/Resources.vala:412 +#, c-format +msgid "Remove Face “%s” From _Photo" +msgid_plural "Remove Face “%s” From _Photos" +msgstr[0] "Hapus Wajah \"%s\" Dari _Foto" + +#: src/Resources.vala:417 +#, c-format +msgid "Remove Face “%s” From Photo" +msgid_plural "Remove Face “%s” From Photos" +msgstr[0] "Hapus Wajah \"%s\" Dari Foto" + +#: src/Resources.vala:422 +#, c-format +msgid "Re_name Face “%s”…" +msgstr "Ubah _Nama Wajah \"%s\"…" + +#: src/Resources.vala:426 +#, c-format +msgid "Rename Face “%s” to “%s”" +msgstr "Ubah Nama Wajah \"%s\" menjadi \"%s\"" + +#: src/Resources.vala:430 +#, c-format +msgid "_Delete Face “%s”" +msgstr "_Hapus Wajah \"%s\"" + +#: src/Resources.vala:434 +#, c-format +msgid "Delete Face “%s”" +msgstr "Hapus Wajah \"%s\"" + +#: src/Resources.vala:664 #, c-format msgid "Rate %s" msgstr "Nilai %s" -#: src/Resources.vala:562 +#: src/Resources.vala:665 #, c-format msgid "Set rating to %s" msgstr "Atur nilai rating ke %s" -#: src/Resources.vala:563 +#: src/Resources.vala:666 #, c-format msgid "Setting rating to %s" msgstr "Mengatur rating ke %s" -#: src/Resources.vala:565 +#: src/Resources.vala:668 #, c-format msgid "Display %s" msgstr "Tampilkan %s" -#: src/Resources.vala:566 +#: src/Resources.vala:669 #, c-format msgid "Only show photos with a rating of %s" msgstr "Hanya tampilkan foto dengan rating %s" -#: src/Resources.vala:567 +#: src/Resources.vala:670 #, c-format msgid "%s or Better" msgstr "%s atau lebih baik" -#: src/Resources.vala:568 +#: src/Resources.vala:671 #, c-format msgid "Display %s or Better" msgstr "Tampilkan %s atau lebih baik" -#: src/Resources.vala:569 +#: src/Resources.vala:672 #, c-format msgid "Only show photos with a rating of %s or better" msgstr "Hanya tampilkan foto dengan rating %s atau lebih baik" -#: src/Resources.vala:660 ui/trash.ui:255 +#: src/Resources.vala:763 ui/trash.ui:255 msgid "Remove the selected photos from the trash" msgstr "Hapus foto-foto terpilih dari tempat pembuangan" -#: src/Resources.vala:661 ui/offline.ui:221 +#: src/Resources.vala:764 ui/offline.ui:221 msgid "Remove the selected photos from the library" msgstr "Hapus foto-foto terpilih dari album" -#: src/Resources.vala:663 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 +#: src/Resources.vala:766 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 msgid "_Restore" msgstr "_Kembalikan" -#: src/Resources.vala:664 ui/trash.ui:270 +#: src/Resources.vala:767 ui/trash.ui:270 msgid "Move the selected photos back into the library" msgstr "Kembalikan foto-foto ke album" -#: src/Resources.vala:666 ui/collection.ui:123 ui/direct_context.ui:18 -#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/media.ui:27 +#: src/Resources.vala:769 ui/collection.ui:123 ui/direct_context.ui:18 +#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/faces.ui:27 ui/media.ui:27 #: ui/photo_context.ui:130 ui/photo.ui:35 ui/tags.ui:27 ui/trash.ui:19 #: ui/trash.ui:227 msgid "Show in File Mana_ger" msgstr "Lihat di Program Pengatur Berkas" -#: src/Resources.vala:667 +#: src/Resources.vala:770 msgid "Open the selected photo’s directory in the file manager" msgstr "Buka direktori foto yang dipilih dalam manajer berkas" -#: src/Resources.vala:670 +#: src/Resources.vala:773 #, c-format msgid "Unable to open in file manager: %s" msgstr "Program pengatur berkas tidak dapat dibuka: %s" -#: src/Resources.vala:673 ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 -#: ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 ui/tags.ui:74 +#: src/Resources.vala:776 ui/event.ui:74 ui/faces.ui:74 ui/media.ui:74 +#: ui/offline.ui:58 ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 +#: ui/tags.ui:74 msgid "R_emove From Library" msgstr "Hapus _Dari Album" -#: src/Resources.vala:675 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 -#: ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 ui/tags.ui:79 +#: src/Resources.vala:778 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 +#: ui/faces.ui:79 ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 +#: ui/tags.ui:79 msgid "_Move to Trash" msgstr "Pindahkan ke Tempat Pembuangan" -#: src/Resources.vala:677 ui/events_directory.ui:58 ui/event.ui:86 -#: ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 ui/trash.ui:74 +#: src/Resources.vala:780 ui/events_directory.ui:58 ui/event.ui:86 +#: ui/faces.ui:86 ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 +#: ui/trash.ui:74 msgid "Select _All" msgstr "Pilih semu_a" -#: src/Resources.vala:678 +#: src/Resources.vala:781 msgid "Select all items" msgstr "Pilih semua item" @@ -5507,14 +5658,14 @@ msgstr "Pilih semua item" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format #. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:739 +#: src/Resources.vala:842 msgid "%a %b %d, %Y" msgstr "%a %d %b, %Y" #. / Locale-specific starting date format for multi-date strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:744 +#: src/Resources.vala:847 msgctxt "MultidayFormat" msgid "%a %b %d" msgstr "%a %d %b" @@ -5522,7 +5673,7 @@ msgstr "%a %d %b" #. / Locale-specific ending date format for multi-date strings, #. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:749 +#: src/Resources.vala:852 msgctxt "MultidayFormat" msgid "%d, %Y" msgstr "%d, %Y" @@ -5530,7 +5681,7 @@ msgstr "%d, %Y" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:754 +#: src/Resources.vala:857 msgctxt "MultimonthFormat" msgid "%a %b %d" msgstr "%a %d %b" @@ -5538,194 +5689,174 @@ msgstr "%a %d %b" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:759 +#: src/Resources.vala:862 msgctxt "MultimonthFormat" msgid "%a %b %d, %Y" msgstr "%a %d %b, %Y" -#: src/Screensaver.vala:18 src/SlideshowPage.vala:115 +#: src/Screensaver.vala:18 src/SlideshowPage.vala:117 msgid "Slideshow" msgstr "Pertunjukan salindia" #. Ordering must correspond with SearchConditionText.Context -#: src/searches/SavedSearchDialog.vala:162 +#: src/searches/SavedSearchDialog.vala:170 msgid "contains" msgstr "mengandung" #. Ordering must correspond with Context -#: src/searches/SavedSearchDialog.vala:163 -#: src/searches/SavedSearchDialog.vala:494 +#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:502 msgid "is exactly" msgstr "persis" -#: src/searches/SavedSearchDialog.vala:164 +#: src/searches/SavedSearchDialog.vala:172 msgid "starts with" msgstr "dimulai dengan" -#: src/searches/SavedSearchDialog.vala:165 +#: src/searches/SavedSearchDialog.vala:173 msgid "ends with" msgstr "diakhiri dengan" -#: src/searches/SavedSearchDialog.vala:166 +#: src/searches/SavedSearchDialog.vala:174 msgid "does not contain" msgstr "tidak mengandung" -#: src/searches/SavedSearchDialog.vala:167 -#: src/searches/SavedSearchDialog.vala:498 +#: src/searches/SavedSearchDialog.vala:175 +#: src/searches/SavedSearchDialog.vala:506 msgid "is not set" msgstr "tak ditata" -#: src/searches/SavedSearchDialog.vala:168 +#: src/searches/SavedSearchDialog.vala:176 msgid "is set" msgstr "ditata" #. Ordering must correspond with SearchConditionMediaType.Context -#: src/searches/SavedSearchDialog.vala:242 -#: src/searches/SavedSearchDialog.vala:373 -#: src/searches/SavedSearchDialog.vala:438 +#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:381 +#: src/searches/SavedSearchDialog.vala:446 msgid "is" msgstr "adalah" -#: src/searches/SavedSearchDialog.vala:243 +#: src/searches/SavedSearchDialog.vala:251 msgid "is not" msgstr "bukan" #. Ordering must correspond with SearchConditionMediaType.MediaType -#: src/searches/SavedSearchDialog.vala:249 +#: src/searches/SavedSearchDialog.vala:257 msgid "any photo" msgstr "foto manapun" -#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:258 msgid "a raw photo" msgstr "adalah foto mentah" -#: src/searches/SavedSearchDialog.vala:251 +#: src/searches/SavedSearchDialog.vala:259 msgid "a video" msgstr "video" -#: src/searches/SavedSearchDialog.vala:305 +#: src/searches/SavedSearchDialog.vala:313 msgid "has" msgstr "punya" -#: src/searches/SavedSearchDialog.vala:306 +#: src/searches/SavedSearchDialog.vala:314 msgid "has no" msgstr "tak punya" -#: src/searches/SavedSearchDialog.vala:311 +#: src/searches/SavedSearchDialog.vala:319 msgid "modifications" msgstr "modifikasi" -#: src/searches/SavedSearchDialog.vala:312 +#: src/searches/SavedSearchDialog.vala:320 msgid "internal modifications" msgstr "modifikasi internal" -#: src/searches/SavedSearchDialog.vala:313 +#: src/searches/SavedSearchDialog.vala:321 msgid "external modifications" msgstr "modifikasi eksternal" #. Ordering must correspond with SearchConditionFlagged.State -#: src/searches/SavedSearchDialog.vala:367 +#: src/searches/SavedSearchDialog.vala:375 msgid "flagged" msgstr "ditandai" -#: src/searches/SavedSearchDialog.vala:368 +#: src/searches/SavedSearchDialog.vala:376 msgid "not flagged" msgstr "tidak ditandai" -#: src/searches/SavedSearchDialog.vala:431 +#: src/searches/SavedSearchDialog.vala:439 msgid "and higher" msgstr "dan lebih tinggi" -#: src/searches/SavedSearchDialog.vala:432 +#: src/searches/SavedSearchDialog.vala:440 msgid "only" msgstr "hanya" -#: src/searches/SavedSearchDialog.vala:433 +#: src/searches/SavedSearchDialog.vala:441 msgid "and lower" msgstr "dan lebih rendah" -#: src/searches/SavedSearchDialog.vala:495 +#: src/searches/SavedSearchDialog.vala:503 msgid "is after" msgstr "setelah" -#: src/searches/SavedSearchDialog.vala:496 +#: src/searches/SavedSearchDialog.vala:504 msgid "is before" msgstr "sebelum" -#: src/searches/SavedSearchDialog.vala:497 +#: src/searches/SavedSearchDialog.vala:505 msgid "is between" msgstr "antara" -#: src/searches/SavedSearchDialog.vala:510 +#: src/searches/SavedSearchDialog.vala:518 msgid "and" msgstr "dan" -#: src/searches/SavedSearchDialog.vala:691 -msgid "Search" -msgstr "Pencarian" - -#: src/searches/SavedSearchDialog.vala:696 -msgid "Cancel" -msgstr "Batal" - -#: src/searches/SavedSearchDialog.vala:697 -msgid "OK" -msgstr "OK" - -#: src/searches/SavedSearchDialog.vala:716 -msgid "any" -msgstr "manapun" - -#: src/searches/SavedSearchDialog.vala:717 -msgid "all" -msgstr "semua" - -#: src/searches/SavedSearchDialog.vala:718 -msgid "none" -msgstr "tidak ada" - -#: src/searches/SearchBoolean.vala:157 +#: src/searches/SearchBoolean.vala:169 msgid "Any text" msgstr "Teks manapun" -#: src/searches/SearchBoolean.vala:160 +#: src/searches/SearchBoolean.vala:172 msgid "Title" msgstr "Judul" -#: src/searches/SearchBoolean.vala:163 +#: src/searches/SearchBoolean.vala:175 msgid "Tag" msgstr "Tanda" -#: src/searches/SearchBoolean.vala:166 +#: src/searches/SearchBoolean.vala:178 msgid "Comment" msgstr "Komentar" -#: src/searches/SearchBoolean.vala:169 +#: src/searches/SearchBoolean.vala:181 msgid "Event name" msgstr "Nama rangkaian" -#: src/searches/SearchBoolean.vala:172 +#: src/searches/SearchBoolean.vala:184 msgid "File name" msgstr "Nama berkas" -#: src/searches/SearchBoolean.vala:175 +#: src/searches/SearchBoolean.vala:187 +msgid "Face" +msgstr "Wajah" + +#: src/searches/SearchBoolean.vala:190 msgid "Media type" msgstr "Tipe media" -#: src/searches/SearchBoolean.vala:178 +#: src/searches/SearchBoolean.vala:193 msgid "Flag state" msgstr "Status tanda" -#: src/searches/SearchBoolean.vala:181 +#: src/searches/SearchBoolean.vala:196 msgid "Photo state" msgstr "Status foto" -#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:827 -#: src/SearchFilter.vala:1110 +#: src/searches/SearchBoolean.vala:199 src/SearchFilter.vala:853 +#: src/SearchFilter.vala:1136 msgid "Rating" msgstr "Rating" -#: src/searches/SearchBoolean.vala:187 +#: src/searches/SearchBoolean.vala:202 msgid "Date" msgstr "Tanggal" @@ -5737,27 +5868,27 @@ msgstr "Pencarian Tersimpan" msgid "Organize your saved searches" msgstr "Organisasikan pencarian Anda yang telah tersimpan" -#: src/SearchFilter.vala:811 +#: src/SearchFilter.vala:837 msgid "★+ Rating" msgstr "Peringkat ★+" -#: src/SearchFilter.vala:814 +#: src/SearchFilter.vala:840 msgid "★★+ Rating" msgstr "Peringkat ★★+" -#: src/SearchFilter.vala:817 +#: src/SearchFilter.vala:843 msgid "★★★+ Rating" msgstr "Peringkat ★★★+" -#: src/SearchFilter.vala:820 +#: src/SearchFilter.vala:846 msgid "★★★★+ Rating" msgstr "Peringkat ★★★★+" -#: src/SearchFilter.vala:824 +#: src/SearchFilter.vala:850 msgid "★★★★★+ Rating" msgstr "Peringkat ★★★★★+" -#: src/SearchFilter.vala:1060 +#: src/SearchFilter.vala:1086 #, c-format msgid "Error loading search bar UI: %s" msgstr "Gagal memuat UI bilah pencarian:%s" @@ -5767,24 +5898,24 @@ msgstr "Gagal memuat UI bilah pencarian:%s" #. Prepare the close menu for use, but don't #. display it yet; we'll connect it to secondary #. click later on. -#: src/SearchFilter.vala:1069 +#: src/SearchFilter.vala:1095 msgid "Close" msgstr "Tutup" #. Type label and toggles -#: src/SearchFilter.vala:1075 +#: src/SearchFilter.vala:1101 msgid "Type" msgstr "Tipe" -#: src/SearchFilter.vala:1082 +#: src/SearchFilter.vala:1108 msgid "Videos" msgstr "Video" -#: src/SearchFilter.vala:1085 +#: src/SearchFilter.vala:1111 msgid "RAW Photos" msgstr "Foto RAW" -#: src/SearchFilter.vala:1121 +#: src/SearchFilter.vala:1147 msgid "Use a saved search to filter items in the current view" msgstr "" "Gunakan pencarian tersimpan untuk menyaring butir-butir dalam tilikan saat " @@ -5792,48 +5923,48 @@ msgstr "" #. Set up toolbar #. add toolbar buttons -#: src/SlideshowPage.vala:134 +#: src/SlideshowPage.vala:136 msgid "Back" msgstr "Mundur" -#: src/SlideshowPage.vala:136 +#: src/SlideshowPage.vala:138 msgid "Go to the previous photo" msgstr "Mundur ke foto sebelumnya" -#: src/SlideshowPage.vala:141 src/SlideshowPage.vala:248 +#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:250 msgid "Pause" msgstr "Hentikan" -#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:249 +#: src/SlideshowPage.vala:145 src/SlideshowPage.vala:251 msgid "Pause the slideshow" msgstr "Hentikan tampilan salindia" -#: src/SlideshowPage.vala:148 +#: src/SlideshowPage.vala:150 msgid "Next" msgstr "Berikutnya" -#: src/SlideshowPage.vala:150 +#: src/SlideshowPage.vala:152 msgid "Go to the next photo" msgstr "Maju ke foto berikutnya" -#: src/SlideshowPage.vala:157 ui/slideshow_settings.ui:21 +#: src/SlideshowPage.vala:159 ui/slideshow_settings.ui:21 msgid "Settings" msgstr "Pengaturan" -#: src/SlideshowPage.vala:158 +#: src/SlideshowPage.vala:160 msgid "Change slideshow settings" msgstr "Atur tampilan salindia" #. An entire slideshow set might be missing, so check for a loop. -#: src/SlideshowPage.vala:212 +#: src/SlideshowPage.vala:214 msgid "All photo source files are missing." msgstr "Semua sumber foto telah lenyap." -#: src/SlideshowPage.vala:244 +#: src/SlideshowPage.vala:246 msgid "Play" msgstr "Jalankan" -#: src/SlideshowPage.vala:245 +#: src/SlideshowPage.vala:247 msgid "Continue the slideshow" msgstr "Teruskan tampilan salindia" @@ -5845,7 +5976,7 @@ msgstr "Transisi Salindia" msgid "(None)" msgstr "(Tidak ada)" -#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:485 +#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:414 msgid "None" msgstr "Tidak ada" @@ -5870,24 +6001,24 @@ msgstr "tanpa judul" msgid "Export Videos" msgstr "Ekspor Video" -#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/media.ui:281 -#: ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 +#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/faces.ui:281 +#: ui/media.ui:281 ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 msgid "Toggle _Flag" msgstr "Jungki_tkan Bendera" -#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/media.ui:353 -#: ui/photo_context.ui:88 ui/photo.ui:343 ui/tags.ui:353 +#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/faces.ui:353 +#: ui/media.ui:353 ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 msgid "_Developer" msgstr "_Developer" -#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/media.ui:381 -#: ui/photo_context.ui:126 ui/tags.ui:381 +#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/faces.ui:381 +#: ui/media.ui:381 ui/photo_context.ui:126 ui/tags.ui:381 msgid "View Eve_nt for Photo" msgstr "Lihat Eve_nt Foto" -#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/import_queue.ui:5 -#: ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 ui/photo.ui:5 ui/tags.ui:5 -#: ui/trash.ui:5 +#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/faces.ui:5 +#: ui/import_queue.ui:5 ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 +#: ui/photo.ui:5 ui/tags.ui:5 ui/trash.ui:5 msgid "_File" msgstr "_Berkas" @@ -5895,7 +6026,7 @@ msgstr "_Berkas" msgid "Save _As…" msgstr "Simpan Seb_agai…" -#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 +#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 ui/faces.ui:99 #: ui/import_queue.ui:38 ui/import.ui:74 ui/media.ui:99 ui/offline.ui:78 #: ui/photo.ui:95 ui/tags.ui:99 ui/trash.ui:87 msgid "_View" @@ -5929,229 +6060,242 @@ msgstr "Foto B_erikutnya" msgid "T_ools" msgstr "P_eralatan" -#: ui/direct.ui:181 ui/events_directory.ui:158 ui/event.ui:428 +#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 ui/faces.ui:438 #: ui/import_queue.ui:73 ui/import.ui:191 ui/media.ui:411 ui/offline.ui:188 -#: ui/photo.ui:394 ui/tags.ui:430 ui/trash.ui:197 +#: ui/photo.ui:395 ui/tags.ui:430 ui/trash.ui:197 msgid "_Frequently Asked Questions" msgstr "_Pertanyaan Sering Ditanyakan" -#: ui/direct.ui:185 ui/events_directory.ui:162 ui/event.ui:432 +#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 ui/faces.ui:442 #: ui/import_queue.ui:77 ui/import.ui:195 ui/media.ui:415 ui/offline.ui:192 -#: ui/photo.ui:398 ui/tags.ui:434 ui/trash.ui:201 +#: ui/photo.ui:399 ui/tags.ui:434 ui/trash.ui:201 msgid "_Report a Problem…" msgstr "Lapo_r Masalah…" -#: ui/events_directory.ui:8 ui/event.ui:8 ui/import_queue.ui:14 ui/import.ui:8 -#: ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 ui/trash.ui:8 +#: ui/events_directory.ui:8 ui/event.ui:8 ui/faces.ui:8 ui/import_queue.ui:14 +#: ui/import.ui:8 ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 +#: ui/trash.ui:8 msgid "_Import From Folder…" msgstr "_Impor Dari Folder…" -#: ui/events_directory.ui:13 ui/event.ui:13 ui/import_queue.ui:19 -#: ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 ui/photo.ui:13 ui/tags.ui:13 -#: ui/trash.ui:13 +#: ui/events_directory.ui:13 ui/event.ui:13 ui/faces.ui:13 +#: ui/import_queue.ui:19 ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 +#: ui/photo.ui:13 ui/tags.ui:13 ui/trash.ui:13 msgid "Import From _Application…" msgstr "Impor Dari _Aplikasi…" -#: ui/events_directory.ui:19 ui/event.ui:34 ui/import_queue.ui:25 -#: ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 ui/photo.ui:42 ui/tags.ui:34 -#: ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 +#: ui/events_directory.ui:19 ui/event.ui:34 ui/faces.ui:34 +#: ui/import_queue.ui:25 ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 +#: ui/photo.ui:42 ui/tags.ui:34 ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 msgid "Empty T_rash" msgstr "Hapus Pe_rmanen Foto Buangan" -#: ui/events_directory.ui:47 ui/event.ui:62 ui/import.ui:55 ui/media.ui:62 -#: ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 +#: ui/events_directory.ui:47 ui/event.ui:62 ui/faces.ui:62 ui/import.ui:55 +#: ui/media.ui:62 ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 msgid "_Find" msgstr "_Cari" -#: ui/events_directory.ui:51 ui/event.ui:66 ui/media.ui:66 ui/offline.ui:51 -#: ui/photo.ui:70 ui/search_sidebar_context.ui:6 +#: ui/events_directory.ui:51 ui/event.ui:66 ui/faces.ui:66 ui/media.ui:66 +#: ui/offline.ui:51 ui/photo.ui:70 ui/search_sidebar_context.ui:6 #: ui/sidebar_default_context.ui:6 ui/tags.ui:66 ui/trash.ui:56 msgid "Ne_w Saved Search…" msgstr "Pencarian Tersimpan B_aru…" -#: ui/events_directory.ui:74 ui/event.ui:102 ui/import_queue.ui:41 -#: ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 ui/photo.ui:98 -#: ui/tags.ui:102 ui/trash.ui:90 +#: ui/events_directory.ui:74 ui/event.ui:102 ui/faces.ui:102 +#: ui/import_queue.ui:41 ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 +#: ui/photo.ui:98 ui/tags.ui:102 ui/trash.ui:90 msgid "_Basic Information" msgstr "Informasi _Dasar" -#: ui/events_directory.ui:79 ui/event.ui:107 ui/import.ui:82 ui/media.ui:107 -#: ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 ui/trash.ui:95 +#: ui/events_directory.ui:79 ui/event.ui:107 ui/faces.ui:107 ui/import.ui:82 +#: ui/media.ui:107 ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 +#: ui/trash.ui:95 msgid "E_xtended Information" msgstr "Informasi _Lanjut" -#: ui/events_directory.ui:84 ui/event.ui:112 ui/import.ui:87 ui/media.ui:112 -#: ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 +#: ui/events_directory.ui:84 ui/event.ui:112 ui/faces.ui:112 ui/import.ui:87 +#: ui/media.ui:112 ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 msgid "_Search Bar" msgstr "_Bilah Pencarian" -#: ui/events_directory.ui:89 ui/event.ui:117 ui/import.ui:92 ui/media.ui:117 -#: ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 ui/trash.ui:105 +#: ui/events_directory.ui:89 ui/event.ui:117 ui/faces.ui:117 ui/import.ui:92 +#: ui/media.ui:117 ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 +#: ui/trash.ui:105 msgid "S_idebar" msgstr "Bilah S_isi" -#: ui/events_directory.ui:94 ui/event.ui:122 ui/import.ui:97 ui/media.ui:122 -#: ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 ui/trash.ui:110 +#: ui/events_directory.ui:94 ui/event.ui:122 ui/faces.ui:122 ui/import.ui:97 +#: ui/media.ui:122 ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 +#: ui/trash.ui:110 msgid "T_oolbar" msgstr "Bil_ah Alat" -#: ui/events_directory.ui:101 ui/event.ui:134 ui/media.ui:134 ui/tags.ui:134 +#: ui/events_directory.ui:101 ui/event.ui:134 ui/faces.ui:134 ui/media.ui:134 +#: ui/tags.ui:134 msgid "_Comments" msgstr "_Komentar" -#: ui/events_directory.ui:108 ui/event.ui:243 ui/import_queue.ui:48 -#: ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 ui/photo.ui:127 -#: ui/tags.ui:243 ui/trash.ui:172 +#: ui/events_directory.ui:108 ui/event.ui:243 ui/faces.ui:243 +#: ui/import_queue.ui:48 ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 +#: ui/photo.ui:127 ui/tags.ui:243 ui/trash.ui:172 msgid "Sort _Events" msgstr "_Rangkaian Dengan Urutan" -#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 -#: ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 ui/media.ui:246 -#: ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 ui/tags.ui:246 -#: ui/trash.ui:175 +#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 ui/faces.ui:231 +#: ui/faces.ui:246 ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 +#: ui/media.ui:246 ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 +#: ui/tags.ui:246 ui/trash.ui:175 msgid "_Ascending" msgstr "N_aik" -#: ui/events_directory.ui:116 ui/event.ui:236 ui/import_queue.ui:56 -#: ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 ui/trash.ui:180 +#: ui/events_directory.ui:116 ui/event.ui:236 ui/faces.ui:236 +#: ui/import_queue.ui:56 ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 +#: ui/trash.ui:180 msgid "D_escending" msgstr "T_urun" -#: ui/events_directory.ui:132 ui/event.ui:379 ui/media.ui:373 ui/tags.ui:373 +#: ui/events_directory.ui:132 ui/event.ui:379 ui/faces.ui:373 ui/media.ui:373 +#: ui/tags.ui:373 msgid "Even_ts" msgstr "Peris_tiwa" -#: ui/event.ui:129 ui/import.ui:104 ui/media.ui:129 ui/tags.ui:129 +#: ui/event.ui:129 ui/faces.ui:129 ui/import.ui:104 ui/media.ui:129 +#: ui/tags.ui:129 msgid "_Titles" msgstr "_Judul" -#: ui/event.ui:139 ui/event.ui:404 ui/media.ui:139 ui/media.ui:387 -#: ui/photo.ui:371 ui/tags.ui:139 ui/tags.ui:387 +#: ui/event.ui:139 ui/event.ui:404 ui/faces.ui:139 ui/faces.ui:387 +#: ui/media.ui:139 ui/media.ui:387 ui/photo.ui:372 ui/tags.ui:139 +#: ui/tags.ui:387 msgid "Ta_gs" msgstr "Tan_da" -#: ui/event.ui:206 ui/media.ui:206 ui/tags.ui:206 +#: ui/event.ui:206 ui/faces.ui:206 ui/media.ui:206 ui/tags.ui:206 msgid "Sort _Photos" msgstr "Urutkan _Foto" -#: ui/event.ui:209 ui/media.ui:209 ui/tags.ui:209 +#: ui/event.ui:209 ui/faces.ui:209 ui/media.ui:209 ui/tags.ui:209 msgid "By _Title" msgstr "Berdasarkan _Judul" -#: ui/event.ui:214 ui/media.ui:214 ui/tags.ui:214 +#: ui/event.ui:214 ui/faces.ui:214 ui/media.ui:214 ui/tags.ui:214 msgid "By _Filename" msgstr "Berdasarkan _Nama Berkas" -#: ui/event.ui:219 ui/media.ui:219 ui/tags.ui:219 +#: ui/event.ui:219 ui/faces.ui:219 ui/media.ui:219 ui/tags.ui:219 msgid "By Exposure _Date" msgstr "Ber_dasarkan Tanggal Pengambilan" -#: ui/event.ui:224 ui/media.ui:224 ui/tags.ui:224 +#: ui/event.ui:224 ui/faces.ui:224 ui/media.ui:224 ui/tags.ui:224 msgid "By _Rating" msgstr "Berdasarkan _Rating" -#: ui/event.ui:251 ui/import.ui:174 ui/media.ui:251 ui/photo.ui:135 -#: ui/tags.ui:251 +#: ui/event.ui:251 ui/faces.ui:251 ui/import.ui:174 ui/media.ui:251 +#: ui/photo.ui:135 ui/tags.ui:251 msgid "_Descending" msgstr "T_urun" -#: ui/event.ui:275 ui/media.ui:275 ui/tags.ui:275 +#: ui/event.ui:275 ui/faces.ui:275 ui/media.ui:275 ui/tags.ui:275 msgid "_Photos" msgstr "_Foto-foto" +#: ui/faces.ui:465 +msgid "Rename…" +msgstr "Ubah Nama…" + #: ui/import_queue.ui:8 msgid "_Stop Import" msgstr "_Hentikan Impor" -#: ui/preferences_dialog.ui:65 -msgid "white" -msgstr "putih" - -#: ui/preferences_dialog.ui:92 -msgid "black" -msgstr "hitam" - -#: ui/preferences_dialog.ui:123 +#: ui/preferences_dialog.ui:67 msgid "Display" msgstr "Tampilan" -#: ui/preferences_dialog.ui:160 -msgid "_Background:" -msgstr "Latar _Belakang:" - -#: ui/preferences_dialog.ui:175 +#: ui/preferences_dialog.ui:103 msgid "_Import photos to:" msgstr "_Impor foto ke:" -#: ui/preferences_dialog.ui:186 +#: ui/preferences_dialog.ui:114 msgid "_Watch library directory for new files" msgstr "_Pantau berkas baru di direktori album" -#: ui/preferences_dialog.ui:209 +#: ui/preferences_dialog.ui:137 msgid "Importing" msgstr "Mengimpor" -#: ui/preferences_dialog.ui:226 +#: ui/preferences_dialog.ui:154 msgid "_Directory structure:" msgstr "_Struktur direktori:" -#: ui/preferences_dialog.ui:241 +#: ui/preferences_dialog.ui:169 msgid "Example:" msgstr "Contoh:" -#: ui/preferences_dialog.ui:250 +#: ui/preferences_dialog.ui:178 msgid "R_ename imported files to lowercase" msgstr "Ubah n_ama berkas impor ke huruf kecil" -#: ui/preferences_dialog.ui:272 +#: ui/preferences_dialog.ui:200 msgid "Metadata" msgstr "Metadata" -#: ui/preferences_dialog.ui:285 +#: ui/preferences_dialog.ui:213 msgid "Write tags, titles, and other _metadata to photo files" msgstr "Tulis tanda, judul dan metadata lainnya ke berkas foto" -#: ui/preferences_dialog.ui:307 +#: ui/preferences_dialog.ui:235 msgid "RAW Developer" msgstr "RAW Developer" -#: ui/preferences_dialog.ui:324 +#: ui/preferences_dialog.ui:252 msgid "De_fault:" msgstr "De_fault:" -#: ui/preferences_dialog.ui:378 +#: ui/preferences_dialog.ui:306 msgid "_Pattern:" msgstr "_Pola:" -#: ui/preferences_dialog.ui:414 +#: ui/preferences_dialog.ui:339 +msgid "" +"When viewing images that are transparent, they will be drawn against this " +"background." +msgstr "" +"Saat melihat gambar yang transparan, mereka akan tertarik dengan latar " +"belakang ini." + +#: ui/preferences_dialog.ui:343 msgid "Transparent Background:" msgstr "Latar Belakang Transparan:" -#: ui/preferences_dialog.ui:428 +#: ui/preferences_dialog.ui:357 msgid "Checkered" msgstr "Kotak-kotak" -#: ui/preferences_dialog.ui:449 +#: ui/preferences_dialog.ui:378 msgid "Solid color" msgstr "Warna rata" -#: ui/preferences_dialog.ui:539 +#: ui/preferences_dialog.ui:441 +msgid "Use dark theme:" +msgstr "Gunakan tema gelap:" + +#: ui/preferences_dialog.ui:492 msgid "E_xternal photo editor:" msgstr "Penyunting foto e_ksternal:" -#: ui/preferences_dialog.ui:556 +#: ui/preferences_dialog.ui:509 msgid "External _RAW editor:" msgstr "Penyunting _RAW eksternal:" -#: ui/preferences_dialog.ui:617 +#: ui/preferences_dialog.ui:570 msgid "External Editors" msgstr "Penyunting eksternal" -#: ui/preferences_dialog.ui:642 +#: ui/preferences_dialog.ui:595 msgid "Plugins" msgstr "Pengaya" -#: ui/preferences_dialog.ui:668 +#: ui/preferences_dialog.ui:621 msgid "Shotwell Preferences" msgstr "Preferensi Shotwell" @@ -6205,6 +6349,42 @@ msgstr "Tampilkan f_oto pada:" msgid "pixels per inch" msgstr "piksel per inci" +#: ui/saved_search_dialog.ui:7 +msgid "Search" +msgstr "Pencarian" + +#: ui/saved_search_dialog.ui:23 +msgid "Cancel" +msgstr "Batal" + +#: ui/saved_search_dialog.ui:36 +msgid "OK" +msgstr "OK" + +#: ui/saved_search_dialog.ui:74 +msgid "_Name of search:" +msgstr "_Nama pencarian:" + +#: ui/saved_search_dialog.ui:132 +msgid "_Match" +msgstr "_Cocokkan" + +#: ui/saved_search_dialog.ui:149 +msgid "any" +msgstr "manapun" + +#: ui/saved_search_dialog.ui:150 +msgid "all" +msgstr "semua" + +#: ui/saved_search_dialog.ui:151 +msgid "none" +msgstr "tidak ada" + +#: ui/saved_search_dialog.ui:165 +msgid "of the following:" +msgstr "yang berikut ini:" + #: ui/set_background_dialog.ui:9 msgid "Set as Desktop Background" msgstr "Jadikan Latar Desktop" @@ -6237,50 +6417,56 @@ msgstr "jangka waktu" msgid "How long each photo is shown on the desktop background" msgstr "Berapa lama tiap foto ditampilkan di latar destop" -#: ui/shotwell.ui:22 -msgid "_Name of search:" -msgstr "_Nama pencarian:" - -#: ui/shotwell.ui:76 -msgid "_Match" -msgstr "_Cocokkan" - -#: ui/shotwell.ui:103 -msgid "of the following:" -msgstr "yang berikut ini:" - -#: ui/shotwell.ui:184 -msgid "label" -msgstr "label" - #: ui/sidebar_default_context.ui:11 ui/tag_sidebar_context.ui:6 msgid "New _Tag…" msgstr "_Tag Baru…" -#: ui/slideshow_settings.ui:91 +#: ui/slideshow_settings.ui:98 msgid "_Delay:" msgstr "Tun_daan:" -#: ui/slideshow_settings.ui:105 +#: ui/slideshow_settings.ui:112 msgid "_Transition effect:" msgstr "Efek _Transisi:" -#: ui/slideshow_settings.ui:119 +#: ui/slideshow_settings.ui:126 msgid "Transition d_elay:" msgstr "Tundaan p_eralihan:" -#: ui/slideshow_settings.ui:129 +#: ui/slideshow_settings.ui:136 msgid "Show t_itle" msgstr "Tampilkan _judul" -#: ui/slideshow_settings.ui:212 ui/slideshow_settings.ui:223 +#: ui/slideshow_settings.ui:219 ui/slideshow_settings.ui:230 msgid "seconds" msgstr "detik" +#: ui/textentrydialog.ui:66 +msgid "label" +msgstr "label" + #: ui/trash.ui:285 msgid "Delete all photos in the trash" msgstr "Hapus semua foto yang pernah dibuang" +#~ msgid "background color" +#~ msgstr "warna latar belakang" + +#~ msgid "A grayscale color for use as the background color." +#~ msgstr "Warna hitam-putih digunakan sebagai warna latar belakang." + +#~ msgid "Extended Information" +#~ msgstr "Informasi Lanjutan" + +#~ msgid "white" +#~ msgstr "putih" + +#~ msgid "black" +#~ msgstr "hitam" + +#~ msgid "_Background:" +#~ msgstr "Latar _Belakang:" + #~ msgid "" #~ "Enter the confirmation number which appears after you log into Flickr in " #~ "your Web browser." diff --git a/po/insert-header.sin b/po/insert-header.sin deleted file mode 100644 index b26de01..0000000 --- a/po/insert-header.sin +++ /dev/null @@ -1,23 +0,0 @@ -# Sed script that inserts the file called HEADER before the header entry. -# -# At each occurrence of a line starting with "msgid ", we execute the following -# commands. At the first occurrence, insert the file. At the following -# occurrences, do nothing. The distinction between the first and the following -# occurrences is achieved by looking at the hold space. -/^msgid /{ -x -# Test if the hold space is empty. -s/m/m/ -ta -# Yes it was empty. First occurrence. Read the file. -r HEADER -# Output the file's contents by reading the next line. But don't lose the -# current line while doing this. -g -N -bb -:a -# The hold space was nonempty. Following occurrences. Do nothing. -x -:b -} diff --git a/po/it.gmo b/po/it.gmo deleted file mode 100644 index 1cd63e3..0000000 Binary files a/po/it.gmo and /dev/null differ diff --git a/po/ja.gmo b/po/ja.gmo deleted file mode 100644 index 535812f..0000000 Binary files a/po/ja.gmo and /dev/null differ diff --git a/po/kk.gmo b/po/kk.gmo deleted file mode 100644 index 6ced091..0000000 Binary files a/po/kk.gmo and /dev/null differ diff --git a/po/km.gmo b/po/km.gmo deleted file mode 100644 index b0b4d09..0000000 Binary files a/po/km.gmo and /dev/null differ diff --git a/po/kn.gmo b/po/kn.gmo deleted file mode 100644 index aff880e..0000000 Binary files a/po/kn.gmo and /dev/null differ diff --git a/po/ko.gmo b/po/ko.gmo deleted file mode 100644 index 8ffff45..0000000 Binary files a/po/ko.gmo and /dev/null differ diff --git a/po/ky.gmo b/po/ky.gmo deleted file mode 100644 index eac6198..0000000 Binary files a/po/ky.gmo and /dev/null differ diff --git a/po/lt.gmo b/po/lt.gmo deleted file mode 100644 index 0d45518..0000000 Binary files a/po/lt.gmo and /dev/null differ diff --git a/po/lv.gmo b/po/lv.gmo deleted file mode 100644 index e6aaf44..0000000 Binary files a/po/lv.gmo and /dev/null differ diff --git a/po/lv.po b/po/lv.po index 4eadaff..7fb978f 100644 --- a/po/lv.po +++ b/po/lv.po @@ -10,10 +10,9 @@ msgid "" msgstr "" "Project-Id-Version: shotwell-0.15\n" -"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?product=shotwel" -"l&keywords=I18N+L10N&component=Internationalization\n" -"POT-Creation-Date: 2018-03-11 09:05+0000\n" -"PO-Revision-Date: 2018-03-15 22:14+0200\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/shotwell/issues\n" +"POT-Creation-Date: 2018-09-05 07:37+0000\n" +"PO-Revision-Date: 2018-09-10 11:25+0200\n" "Last-Translator: Rūdolfs Mazurs \n" "Language-Team: Latvian \n" "Language: lv\n" @@ -27,8 +26,8 @@ msgstr "" #: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in:4 #: plugins/shotwell-publishing-extras/GalleryConnector.vala:115 #: src/photos/RawSupport.vala:308 ui/collection.ui:85 ui/event.ui:356 -#: ui/event.ui:524 ui/media.ui:356 ui/photo_context.ui:91 ui/photo.ui:347 -#: ui/tags.ui:356 +#: ui/event.ui:524 ui/faces.ui:356 ui/media.ui:356 ui/photo_context.ui:91 +#: ui/photo.ui:347 ui/tags.ui:356 msgid "Shotwell" msgstr "Shotwell" @@ -66,7 +65,6 @@ msgid "Shotwell supports JPEG, PNG, TIFF, and a variety of RAW file formats." msgstr "Shotwell atbalsta JPEG, PNG, TIFF un dažādus jēlo datņu formātus." #: misc/shotwell.appdata.xml.in:52 -#| msgid "Shotwell Viewer" msgid "The Shotwell developers" msgstr "Shotwell izstrādātāji" @@ -472,12 +470,12 @@ msgid "Pin toolbar in fullscreen, or not." msgstr "Nofiksēt rīkjoslu pilnekrānā, vai arī nē." #: misc/org.yorba.shotwell.gschema.xml:161 -msgid "background color" -msgstr "fona krāsa" +msgid "prefer GTK+’s dark theme" +msgstr "dot priekšroku GTK+ tumšajam motīvam" #: misc/org.yorba.shotwell.gschema.xml:162 -msgid "A grayscale color for use as the background color." -msgstr "Pelēktoņu krāsa, ko izmantot kā fona krāsu." +msgid "Whether to use the dark theme of GTK+ for Shotwell or not." +msgstr "Vai Shotwell lietotnē izmantot tumšo GTK+ motīvu." #: misc/org.yorba.shotwell.gschema.xml:167 msgid "background for transparent images" @@ -1309,7 +1307,6 @@ msgid "" msgstr "Ja patiess, ieslēgt apļa slaidrādes pāreju spraudni, citādi aplams" #: misc/org.yorba.shotwell.gschema.xml:804 -#| msgid "enable slideshow circle transition" msgid "enable slideshow circles transition" msgstr "ieslēgt slaidrādes apļu pāreju" @@ -1319,7 +1316,6 @@ msgid "" msgstr "Ja patiess, ieslēgt apļa slaidrādes pāreju spraudni, citādi aplams" #: misc/org.yorba.shotwell.gschema.xml:810 -#| msgid "enable slideshow slide transition" msgid "enable slideshow blinds transition" msgstr "ieslēgt slaidrādes žalūziju pāreju" @@ -1409,7 +1405,7 @@ msgstr "Flickr pilnvarošana neizdevās" msgid "Verifying authorization…" msgstr "Pārbauda pilnvarojumu…" -#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:118 +#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:137 msgid "" "You have already logged in and out of a Google service during this Shotwell " "session.\n" @@ -1494,7 +1490,7 @@ msgstr "Nevarēja ielādēt lietotāja saskarni — %s" msgid "Visit the Shotwell home page" msgstr "Apmeklēt Shotwell mājas lapu" -#: plugins/common/Resources.vala:31 src/AppWindow.vala:611 +#: plugins/common/Resources.vala:31 src/AppWindow.vala:603 msgid "translator-credits" msgstr "" "Pēteris Krišjānis \n" @@ -1646,7 +1642,7 @@ msgstr "_Izrakstīties" #: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:156 #: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:121 #: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:115 -#: src/CollectionPage.vala:82 src/PhotoPage.vala:2469 +#: src/CollectionPage.vala:82 src/PhotoPage.vala:2492 msgid "_Publish" msgstr "_Publicēt" @@ -1953,12 +1949,6 @@ msgstr "" #: plugins/shotwell-publishing/FlickrPublishing.vala:609 #, c-format -#| msgid "" -#| "Your free Flickr account limits how much data you can upload per month.\n" -#| "This month you have %d megabyte remaining in your upload quota." -#| msgid_plural "" -#| "Your free Flickr account limits how much data you can upload per month.\n" -#| "This month you have %d megabytes remaining in your upload quota." msgid "" "Your free Flickr account limits how much data you can upload per month.\n" "This month you have %s remaining in your upload quota." @@ -2025,7 +2015,6 @@ msgstr "Fotogrāfiju izmēru priekšiestatījumus:" #. or the new "Default album" album for Google Photos #: plugins/shotwell-publishing/PicasaPublishing.vala:96 #: plugins/shotwell-publishing/PicasaPublishing.vala:630 -#| msgid "last album" msgid "Default album" msgstr "Noklusējuma albums" @@ -2076,37 +2065,30 @@ msgid "User _name" msgstr "_Lietotājvārds" #: plugins/shotwell-publishing/piwigo_authentication_pane.ui:133 -#| msgid "_Remember Password" msgid "Remember Password" msgstr "Atcerēties paroli" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:36 -#| msgid "An _existing category:" msgid "An _existing category" msgstr "_Esoša kategorija" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:110 -#| msgid "A _new album named:" msgid "A _new album named" msgstr "Jau_ns albums ar nosaukumu" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:142 -#| msgid "within category:" msgid "within category" msgstr "kategorijā" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:155 -#| msgid "Album comment:" msgid "Album comment" msgstr "Albuma komentārs" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:167 -#| msgid "Photos will be _visible by:" msgid "Photos will be _visible by" msgstr "Fotogrāfijas _varēs redzēt" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:181 -#| msgid "Photo size:" msgid "Photo size" msgstr "Fotogrāfijas izmērs" @@ -2124,7 +2106,7 @@ msgid "Logout" msgstr "Izrakstīties" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:268 -#: src/Resources.vala:296 ui/collection.ui:192 +#: src/Resources.vala:266 ui/collection.ui:192 msgid "Publish" msgstr "Publicēt" @@ -2155,8 +2137,8 @@ msgid "Certificate of %s" msgstr "%s sertifikāts" #: plugins/shotwell-publishing/PiwigoPublishing.vala:1051 -#: src/Resources.vala:167 ui/multitextentrydialog.ui:40 -#: ui/slideshow_settings.ui:49 +#: src/Resources.vala:137 ui/multitextentrydialog.ui:40 +#: ui/slideshow_settings.ui:52 msgid "_OK" msgstr "_Labi" @@ -2363,17 +2345,18 @@ msgstr "Nofiksēt rīkjoslu atvērtu" msgid "Leave fullscreen" msgstr "Iziet no pilnekrāna režīma" -#: src/AppWindow.vala:538 src/AppWindow.vala:559 src/AppWindow.vala:576 +#: src/AppWindow.vala:530 src/AppWindow.vala:551 src/AppWindow.vala:568 #: src/data_imports/DataImportsUI.vala:302 #: src/data_imports/DataImportsUI.vala:420 src/Dialogs.vala:20 -#: src/Dialogs.vala:28 src/Dialogs.vala:753 src/Dialogs.vala:776 -#: src/publishing/PublishingUI.vala:305 src/publishing/PublishingUI.vala:529 -#: src/Resources.vala:158 ui/multitextentrydialog.ui:25 -#: ui/slideshow_settings.ui:35 ui/textentrydialog.ui:19 +#: src/Dialogs.vala:28 src/Dialogs.vala:58 src/Dialogs.vala:766 +#: src/Dialogs.vala:789 src/publishing/PublishingUI.vala:305 +#: src/publishing/PublishingUI.vala:529 src/Resources.vala:128 +#: ui/multitextentrydialog.ui:25 ui/slideshow_settings.ui:38 +#: ui/textentrydialog.ui:19 msgid "_Cancel" msgstr "At_celt" -#: src/AppWindow.vala:586 +#: src/AppWindow.vala:578 #, c-format msgid "" "A fatal error occurred when accessing Shotwell’s library. Shotwell cannot " @@ -2386,21 +2369,21 @@ msgstr "" "\n" "%s" -#: src/AppWindow.vala:607 +#: src/AppWindow.vala:599 msgid "Visit the Shotwell web site" msgstr "Apmeklējiet Shotwell tīmekļa vietni" -#: src/AppWindow.vala:620 +#: src/AppWindow.vala:612 #, c-format msgid "Unable to display help: %s" msgstr "Nevar parādīt palīdzību — %s" -#: src/AppWindow.vala:628 +#: src/AppWindow.vala:620 #, c-format msgid "Unable to navigate to bug database: %s" msgstr "Nevar pārvietoties pa kļūdu datubāzi — %s" -#: src/AppWindow.vala:636 +#: src/AppWindow.vala:628 #, c-format msgid "Unable to display FAQ: %s" msgstr "Nevar parādīt BUJ — %s" @@ -2476,19 +2459,18 @@ msgstr "Sarakts ar visām atklātajām kameru ierīcēm" #: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:711 #: src/camera/ImportPage.vala:727 src/photos/RawSupport.vala:311 -#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/media.ui:361 -#: ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 +#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/faces.ui:361 +#: ui/media.ui:361 ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 msgid "Camera" msgstr "Kamera" #. Translators: First %s is the name of camera as gotten from GPhoto, second is the GVolume name, e.g. Mass storage camera (510MB volume) -#: src/camera/CameraTable.vala:351 +#: src/camera/CameraTable.vala:256 #, c-format -#| msgid "%s (%d%%)" msgid "%s (%s)" msgstr "%s (%s)" -#: src/camera/ImportPage.vala:311 src/Properties.vala:230 +#: src/camera/ImportPage.vala:307 src/Properties.vala:234 msgid "RAW+JPEG" msgstr "RAW+JPEG" @@ -2568,7 +2550,6 @@ msgid "Unmounting…" msgstr "Nomontē…" #: src/camera/ImportPage.vala:1166 -#| msgid "Starting import, please wait…" msgid "Connecting to camera, please wait…" msgstr "Savienojas ar kameru, lūdzu, uzgaidiet…" @@ -2622,7 +2603,7 @@ msgstr[0] "Dzēst šo %d datni no kameras?" msgstr[1] "Dzēst šīs %d datnes no kameras?" msgstr[2] "Dzēst šīs %d datnes no kameras?" -#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:720 +#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:733 msgid "_Keep" msgstr "_Paturēt" @@ -2639,26 +2620,25 @@ msgstr[1] "Neizdevās dzēst %d fotogrāfijas/video no kameras, jo bija kļūdas msgstr[2] "Neizdevās dzēst %d fotogrāfijas/video no kameras, jo bija kļūdas." #: src/CollectionPage.vala:80 src/direct/DirectPhotoPage.vala:85 -#: src/PhotoPage.vala:2464 src/Resources.vala:171 +#: src/PhotoPage.vala:2487 src/Resources.vala:141 msgid "_Print" msgstr "_Drukāt" -#: src/CollectionPage.vala:83 src/Resources.vala:324 ui/collection.ui:128 +#: src/CollectionPage.vala:83 src/Resources.vala:294 ui/collection.ui:128 #: ui/direct_context.ui:23 ui/direct.ui:23 ui/event.ui:567 ui/photo.ui:28 msgid "Send _To…" msgstr "Sū_tīt uz…" #: src/CollectionPage.vala:84 src/direct/DirectPhotoPage.vala:90 -#: src/PhotoPage.vala:2474 src/Resources.vala:221 +#: src/PhotoPage.vala:2497 src/Resources.vala:191 msgid "Set as _Desktop Background" msgstr "Iestatīt kā _darbvirsmas fonu" -#: src/CollectionPage.vala:92 src/Resources.vala:287 +#: src/CollectionPage.vala:92 src/Resources.vala:257 msgid "_Duplicate" msgstr "_Dublēt" #: src/CollectionPage.vala:100 -#| msgid "Fulls_creen" msgid "Fullscreen" msgstr "Pilnekrāns" @@ -2666,75 +2646,72 @@ msgstr "Pilnekrāns" msgid "S_lideshow" msgstr "S_laidrāde" -#: src/CollectionPage.vala:110 src/Resources.vala:140 ui/direct.ui:111 +#: src/CollectionPage.vala:110 src/Resources.vala:110 ui/direct.ui:111 #: ui/photo.ui:200 msgid "Rotate _Right" msgstr "Pag_riezt pa labi" -#: src/CollectionPage.vala:113 src/Resources.vala:145 ui/direct.ui:116 +#: src/CollectionPage.vala:113 src/Resources.vala:115 ui/direct.ui:116 #: ui/photo.ui:205 msgid "Rotate _Left" msgstr "Pagriezt pa _kreisi" -#: src/CollectionPage.vala:116 src/Resources.vala:150 ui/direct.ui:121 +#: src/CollectionPage.vala:116 src/Resources.vala:120 ui/direct.ui:121 #: ui/photo.ui:210 msgid "Flip Hori_zontally" msgstr "Apmest hori_zontāli" -#: src/CollectionPage.vala:117 src/Resources.vala:153 ui/direct.ui:125 +#: src/CollectionPage.vala:117 src/Resources.vala:123 ui/direct.ui:125 #: ui/photo.ui:214 msgid "Flip Verti_cally" msgstr "Apmest verti_kāli" -#: src/CollectionPage.vala:119 src/Resources.vala:187 ui/collection.ui:8 +#: src/CollectionPage.vala:119 src/Resources.vala:157 ui/collection.ui:8 #: ui/direct_context.ui:7 ui/direct.ui:134 ui/event.ui:447 #: ui/photo_context.ui:6 ui/photo.ui:223 msgid "_Enhance" msgstr "_Uzlabot" -#: src/CollectionPage.vala:120 src/Resources.vala:215 ui/collection.ui:13 +#: src/CollectionPage.vala:120 src/Resources.vala:185 ui/collection.ui:13 #: ui/direct_context.ui:12 ui/direct.ui:161 ui/event.ui:452 #: ui/photo_context.ui:11 ui/photo.ui:250 msgid "Re_vert to Original" msgstr "At_griezties pie oriģināla" -#: src/CollectionPage.vala:122 src/Resources.vala:191 ui/photo.ui:256 +#: src/CollectionPage.vala:122 src/Resources.vala:161 ui/photo.ui:256 msgid "_Copy Color Adjustments" msgstr "_Kopēt krāsu labojumus" -#: src/CollectionPage.vala:125 src/Resources.vala:195 ui/photo.ui:261 +#: src/CollectionPage.vala:125 src/Resources.vala:165 ui/photo.ui:261 msgid "_Paste Color Adjustments" msgstr "_Ielīmēt krāsu labojumus" #: src/CollectionPage.vala:135 -#| msgid "_Adjust Date and Time…" msgid "Adjust Date and Time…" msgstr "Pielāgot datumu un laiku…" -#: src/CollectionPage.vala:143 src/Resources.vala:320 ui/collection.ui:108 +#: src/CollectionPage.vala:143 src/Resources.vala:290 ui/collection.ui:108 #: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:361 msgid "Open With E_xternal Editor" msgstr "Atvērt ar ārēju reda_ktoru" -#: src/CollectionPage.vala:146 src/Resources.vala:322 ui/collection.ui:113 +#: src/CollectionPage.vala:146 src/Resources.vala:292 ui/collection.ui:113 #: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:366 msgid "Open With RA_W Editor" msgstr "Atvērt ar RA_W redaktoru" -#: src/CollectionPage.vala:149 src/Resources.vala:168 +#: src/CollectionPage.vala:149 src/Resources.vala:138 msgid "_Play" msgstr "_Atskaņot" #: src/CollectionPage.vala:410 -#| msgid "Export Photo/Video" msgid "Export Photo/Video" msgid_plural "Export Photos/Videos" msgstr[0] "Eksportēt fotogrāfiju/video" msgstr[1] "Eksportēt fotogrāfijas/video" msgstr[2] "Eksportēt fotogrāfijas/video" -#: src/CollectionPage.vala:412 src/Dialogs.vala:59 src/PhotoPage.vala:2998 -#| msgid "Export Photo" +#: src/CollectionPage.vala:412 src/Dialogs.vala:74 src/PhotoPage.vala:3021 msgid "Export Photo" msgid_plural "Export Photos" msgstr[0] "Eksportēt fotogrāfiju" @@ -2789,39 +2766,39 @@ msgstr "Transformē krāsas" msgid "Undoing Color Transformations" msgstr "Atsauc krāsu transformēšanu" -#: src/Commands.vala:1007 +#: src/Commands.vala:1006 msgid "Creating New Event" msgstr "Izveido jaunu notikumu" -#: src/Commands.vala:1008 +#: src/Commands.vala:1007 msgid "Removing Event" msgstr "Izņem notikumu" -#: src/Commands.vala:1017 +#: src/Commands.vala:1016 msgid "Moving Photos to New Event" msgstr "Pārvieto fotogrāfiju uz jaunu notikumu" -#: src/Commands.vala:1018 +#: src/Commands.vala:1017 msgid "Setting Photos to Previous Event" msgstr "Iestata fotogrāfiju uz iepriekšējo notikumu" -#: src/Commands.vala:1075 +#: src/Commands.vala:1074 msgid "Merging" msgstr "Apvieno" -#: src/Commands.vala:1076 +#: src/Commands.vala:1075 msgid "Unmerging" msgstr "Atsauc apvienošanu" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Duplicating photos" msgstr "Dublē fotogrāfijas" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Removing duplicated photos" msgstr "Izņem fotogrāfiju dublikātus" -#: src/Commands.vala:1108 +#: src/Commands.vala:1107 #, c-format msgid "Unable to duplicate one photo due to a file error" msgid_plural "Unable to duplicate %d photos due to file errors" @@ -2829,54 +2806,54 @@ msgstr[0] "Neizdevās dublēt %d fotogrāfiju dēļ datnes kļūdas" msgstr[1] "Neizdevās dublēt %d fotogrāfijas dēļ datnes kļūdas" msgstr[2] "Neizdevās dublēt %d fotogrāfiju dēļ datnes kļūdas" -#: src/Commands.vala:1195 +#: src/Commands.vala:1194 msgid "Restoring previous rating" msgstr "Atjauno iepriekšējo vērtējumu" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Increasing ratings" msgstr "Palielina vērtējumus" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Decreasing ratings" msgstr "Samazina vērtējumus" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Setting RAW developer" msgstr "Iestata RAW attīstītāju" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Restoring previous RAW developer" msgstr "Atjauno iepriekšējo RAW attīstītāju" -#: src/Commands.vala:1257 +#: src/Commands.vala:1256 msgid "Set Developer" msgstr "Iestatīt attīstītāju" -#: src/Commands.vala:1347 +#: src/Commands.vala:1346 msgid "Original photo could not be adjusted." msgstr "Nevarēja pielāgot sākotnējo fotogrāfiju." -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Adjusting Date and Time" msgstr "Pielāgo datumu un laiku" -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Undoing Date and Time Adjustment" msgstr "Atsauc datuma un laika pielāgošanu" -#: src/Commands.vala:1399 +#: src/Commands.vala:1398 msgid "One original photo could not be adjusted." msgid_plural "The following original photos could not be adjusted." msgstr[0] "Nevarēja pielāgot %d sākotnējo fotogrāfiju." msgstr[1] "Nevarēja pielāgot %d sākotnējās fotogrāfijas." msgstr[2] "Nevarēja pielāgot %d sākotnējo fotogrāfiju." -#: src/Commands.vala:1401 src/Commands.vala:1425 +#: src/Commands.vala:1400 src/Commands.vala:1424 msgid "Time Adjustment Error" msgstr "Laika pielāgošanas kļūda" -#: src/Commands.vala:1423 +#: src/Commands.vala:1422 msgid "Time adjustments could not be undone on the following photo file." msgid_plural "" "Time adjustments could not be undone on the following photo files." @@ -2884,60 +2861,60 @@ msgstr[0] "Nevarēja atsaukt laika pielāgojumu sekojošajai fotogrāfijas datne msgstr[1] "Nevarēja atsaukt laika regulējumu sekojošajām fotogrāfiju datnēm." msgstr[2] "Nevarēja atsaukt laika regulējumu sekojošajām fotogrāfiju datnēm." -#: src/Commands.vala:1637 src/Commands.vala:1660 +#: src/Commands.vala:1636 src/Commands.vala:1659 msgid "Create Tag" msgstr "Izveidot tagu" -#: src/Commands.vala:1695 +#: src/Commands.vala:1694 #, c-format msgid "Move Tag “%s”" msgstr "Pārvietot tagu “%s”" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Move Photos to Trash" msgstr "Pārvietot fotogrāfijas uz miskasti" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Restore Photos from Trash" msgstr "Atjaunot fotogrāfijas no miskastes" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Move the photos to the Shotwell trash" msgstr "Pārvietot fotogrāfijas uz Shotwell miskasti" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Restore the photos back to the Shotwell library" msgstr "Atjaunot fotogrāfijas atpakaļ uz Shotwell bibliotēku" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Moving Photos to Trash" msgstr "Pārvieto fotogrāfijas uz miskasti" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Restoring Photos From Trash" msgstr "Atjauno fotogrāfijas no miskastes" -#: src/Commands.vala:2453 +#: src/Commands.vala:2452 msgid "Flag selected photos" msgstr "Marķēt izvēlētās fotogrāfijas" -#: src/Commands.vala:2454 +#: src/Commands.vala:2453 msgid "Unflag selected photos" msgstr "Noņemt marķējumu no izvēlētajām fotogrāfijām" -#: src/Commands.vala:2455 +#: src/Commands.vala:2454 msgid "Flagging selected photos" msgstr "Marķē izvēlētās fotogrāfijas" -#: src/Commands.vala:2456 +#: src/Commands.vala:2455 msgid "Unflagging selected photos" msgstr "Noņem marķējumu no izvēlētajām fotogrāfijām" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Flag" msgstr "Marķēt" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Unflag" msgstr "Noņemt marķējumu" @@ -2978,7 +2955,7 @@ msgstr "" msgid "Database file:" msgstr "Datubāzes datne:" -#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:782 +#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:783 msgid "_Import" msgstr "_Importēt" @@ -3059,10 +3036,11 @@ msgstr[0] "Tiks izņemts tags “%s” no %d fotogrāfijas. Turpināt?" msgstr[1] "Tiks izņemts tags “%s” no %d fotogrāfijām. Turpināt?" msgstr[2] "Tiks izņemts tags “%s” no %d fotogrāfijām. Turpināt?" -#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:721 -#: src/Resources.vala:159 src/Resources.vala:362 src/Resources.vala:415 -#: src/Resources.vala:659 ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 -#: ui/trash.ui:216 ui/trash.ui:258 +#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:58 +#: src/Dialogs.vala:734 src/Resources.vala:129 src/Resources.vala:310 +#: src/Resources.vala:341 src/Resources.vala:394 src/Resources.vala:762 +#: ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 ui/trash.ui:216 +#: ui/trash.ui:258 msgid "_Delete" msgstr "_Dzēst" @@ -3092,11 +3070,21 @@ msgstr[2] "" msgid "_Switch Developer" msgstr "Pār_slēgt attīstītāju" -#: src/Dialogs.vala:59 +#: src/Dialogs.vala:54 +#, c-format +#| msgid "This will remove the tag “%s” from one photo. Continue?" +#| msgid_plural "This will remove the tag “%s” from %d photos. Continue?" +msgid "This will remove the face “%s” from one photo. Continue?" +msgid_plural "This will remove the face “%s” from %d photos. Continue?" +msgstr[0] "No %2$d fotogrāfijas tiks izņemta seja “%1$s”. Turpināt?" +msgstr[1] "No %2$d fotogrāfijām tiks izņemta seja “%1$s”. Turpināt?" +msgstr[2] "No %2$d fotogrāfijām tiks izņemta seja “%1$s”. Turpināt?" + +#: src/Dialogs.vala:74 msgid "Export Video" msgstr "Eksportēt video" -#: src/Dialogs.vala:84 +#: src/Dialogs.vala:99 msgid "Export Photos" msgstr "Eksportēt fotogrāfijas" @@ -3105,7 +3093,7 @@ msgstr "Eksportēt fotogrāfijas" #. if we can't copy an image over for editing in an external tool. #. Did we fail because we can't write to this directory? #. Yes - display an alternate error message here. -#: src/Dialogs.vala:112 +#: src/Dialogs.vala:127 #, c-format msgid "" "Shotwell couldn’t create a file for editing this photo because you do not " @@ -3114,7 +3102,7 @@ msgstr "" "Shotwell nevar izveidot datni šīs fotogrāfijas rediģēšanai, jo jums nav " "tiesību rakstīt %s." -#: src/Dialogs.vala:121 +#: src/Dialogs.vala:136 msgid "" "Unable to export the following photo due to a file error.\n" "\n" @@ -3122,7 +3110,7 @@ msgstr "" "Nevar eksportēt sekojošo fotogrāfiju, jo gadījās datnes kļūda.\n" "\n" -#: src/Dialogs.vala:127 +#: src/Dialogs.vala:142 msgid "" "\n" "\n" @@ -3132,28 +3120,28 @@ msgstr "" "\n" "Vai vēlaties turpināt eksportēšanu?" -#: src/Dialogs.vala:128 +#: src/Dialogs.vala:143 msgid "Con_tinue" msgstr "Turpinā_t" -#: src/Dialogs.vala:139 +#: src/Dialogs.vala:153 msgid "Save Details…" msgstr "Saglabāt detaļas…" -#: src/Dialogs.vala:140 +#: src/Dialogs.vala:154 msgid "Save Details" msgstr "Saglabāt detaļas" -#: src/Dialogs.vala:155 +#: src/Dialogs.vala:169 #, c-format msgid "(and %d more)\n" msgstr "(un vēl %d)\n" -#: src/Dialogs.vala:208 +#: src/Dialogs.vala:222 msgid "Import Results Report" msgstr "Importēšanas rezultātu pārskats" -#: src/Dialogs.vala:212 +#: src/Dialogs.vala:226 #, c-format msgid "Attempted to import %d file." msgid_plural "Attempted to import %d files." @@ -3161,7 +3149,7 @@ msgstr[0] "Mēģināja importēt %d datni." msgstr[1] "Mēģināja importēt %d datnes." msgstr[2] "Mēģināja importēt %d datņu." -#: src/Dialogs.vala:215 +#: src/Dialogs.vala:229 #, c-format msgid "Of these, %d file was successfully imported." msgid_plural "Of these, %d files were successfully imported." @@ -3172,30 +3160,30 @@ msgstr[2] "No tām, %d tika sekmīgi importētas." #. #. Duplicates #. -#: src/Dialogs.vala:227 +#: src/Dialogs.vala:241 msgid "Duplicate Photos/Videos Not Imported:" msgstr "Neimportētie fotogrāfiju/video dublikāti:" -#: src/Dialogs.vala:231 +#: src/Dialogs.vala:245 msgid "duplicates existing media item" msgstr "dublē esošo datu nesēju vienumus" #. #. Files Not Imported Due to Camera Errors #. -#: src/Dialogs.vala:242 +#: src/Dialogs.vala:256 msgid "Photos/Videos Not Imported Due to Camera Errors:" msgstr "Neimportētās fotogrāfijas/video, jo bija kameras kļūdas:" -#: src/Dialogs.vala:245 src/Dialogs.vala:260 src/Dialogs.vala:275 -#: src/Dialogs.vala:291 src/Dialogs.vala:306 src/Dialogs.vala:320 +#: src/Dialogs.vala:259 src/Dialogs.vala:274 src/Dialogs.vala:289 +#: src/Dialogs.vala:305 src/Dialogs.vala:320 src/Dialogs.vala:334 msgid "error message:" msgstr "kļūdas paziņojums:" #. #. Files Not Imported Because They Weren't Recognized as Photos or Videos #. -#: src/Dialogs.vala:256 +#: src/Dialogs.vala:270 msgid "Files Not Imported Because They Weren’t Recognized as Photos or Videos:" msgstr "" "Datnes nav importētas, jo tās netika atpazītas kā fotogrāfijas vai video:" @@ -3203,7 +3191,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands #. -#: src/Dialogs.vala:271 +#: src/Dialogs.vala:285 msgid "" "Photos/Videos Not Imported Because They Weren’t in a Format Shotwell " "Understands:" @@ -3214,7 +3202,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library #. -#: src/Dialogs.vala:286 +#: src/Dialogs.vala:300 msgid "" "Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into its " "Library:" @@ -3222,7 +3210,7 @@ msgstr "" "Fotogrāfijas/video netika importētas, jo Shotwell nevarēja tās importēt " "bibliotēkā:" -#: src/Dialogs.vala:290 +#: src/Dialogs.vala:304 #, c-format msgid "" "couldn’t copy %s\n" @@ -3234,18 +3222,18 @@ msgstr "" #. #. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt #. -#: src/Dialogs.vala:302 +#: src/Dialogs.vala:316 msgid "Photos/Videos Not Imported Because Files Are Corrupt:" msgstr "Fotogrāfijas/video netika importētas, jo datnes ir bojātas:" #. #. Photos/Videos Not Imported for Other Reasons #. -#: src/Dialogs.vala:317 +#: src/Dialogs.vala:331 msgid "Photos/Videos Not Imported for Other Reasons:" msgstr "Fotogrāfijas/video netika importētas citu iemeslu dēļ:" -#: src/Dialogs.vala:337 +#: src/Dialogs.vala:351 #, c-format msgid "1 duplicate photo was not imported:\n" msgid_plural "%d duplicate photos were not imported:\n" @@ -3253,7 +3241,7 @@ msgstr[0] "Netika importēta %d dublējoša fotogrāfija:\n" msgstr[1] "Netika importētas %d dublējošas fotogrāfijas:\n" msgstr[2] "Netika importētas %d dublējošu fotogrāfijas:\n" -#: src/Dialogs.vala:340 +#: src/Dialogs.vala:354 #, c-format msgid "1 duplicate video was not imported:\n" msgid_plural "%d duplicate videos were not imported:\n" @@ -3261,7 +3249,7 @@ msgstr[0] "Netika importēts %d dublējošs video:\n" msgstr[1] "Netika importēti %d dublējoši video:\n" msgstr[2] "Netika importēti %d dublējošu video:\n" -#: src/Dialogs.vala:343 +#: src/Dialogs.vala:357 #, c-format msgid "1 duplicate photo/video was not imported:\n" msgid_plural "%d duplicate photos/videos were not imported:\n" @@ -3269,7 +3257,7 @@ msgstr[0] "Netika importēta %d dublējoša fotogrāfija/video:\n" msgstr[1] "Netika importētas %d dublējošas fotogrāfijas/video:\n" msgstr[2] "Netika importētas %d dublējošu fotogrāfijas/video:\n" -#: src/Dialogs.vala:357 +#: src/Dialogs.vala:371 #, c-format msgid "1 photo failed to import due to a file or hardware error:\n" msgid_plural "%d photos failed to import due to a file or hardware error:\n" @@ -3280,7 +3268,7 @@ msgstr[1] "" msgstr[2] "" "%d fotogrāfiju importēšana neizdevās dēļ datnes vai aparatūras kļūdas:\n" -#: src/Dialogs.vala:360 +#: src/Dialogs.vala:374 #, c-format msgid "1 video failed to import due to a file or hardware error:\n" msgid_plural "%d videos failed to import due to a file or hardware error:\n" @@ -3288,7 +3276,7 @@ msgstr[0] "%d video importēšana neizdevās dēļ datnes vai aparatūras kļūd msgstr[1] "%d video importēšana neizdevās dēļ datnes vai aparatūras kļūdas:\n" msgstr[2] "%d video importēšana neizdevās dēļ datnes vai aparatūras kļūdas:\n" -#: src/Dialogs.vala:363 +#: src/Dialogs.vala:377 #, c-format msgid "1 photo/video failed to import due to a file or hardware error:\n" msgid_plural "" @@ -3303,7 +3291,7 @@ msgstr[2] "" "%d fotogrāfiju/video importēšana neizdevās dēļ datnes vai aparatūras " "kļūdas:\n" -#: src/Dialogs.vala:366 +#: src/Dialogs.vala:380 #, c-format msgid "1 file failed to import due to a file or hardware error:\n" msgid_plural "%d files failed to import due to a file or hardware error:\n" @@ -3311,7 +3299,7 @@ msgstr[0] "%d datnes importēšana neizdevās dēļ datnes vai aparatūras kļū msgstr[1] "%d datņu importēšana neizdevās dēļ datnes vai aparatūras kļūdas:\n" msgstr[2] "%d datņu importēšana neizdevās dēļ datnes vai aparatūras kļūdas:\n" -#: src/Dialogs.vala:380 +#: src/Dialogs.vala:394 #, c-format msgid "" "1 photo failed to import because the photo library folder was not writable:\n" @@ -3325,7 +3313,7 @@ msgstr[1] "" msgstr[2] "" "%d fotogrāfiju importēšana neizdevās, jo fotogrāfiju mape nav rakstāma:\n" -#: src/Dialogs.vala:383 +#: src/Dialogs.vala:397 #, c-format msgid "" "1 video failed to import because the photo library folder was not writable:\n" @@ -3336,7 +3324,7 @@ msgstr[0] "%d video importēšana neizdevās, jo fotogrāfiju mape nav rakstāma msgstr[1] "%d video importēšana neizdevās, jo fotogrāfiju mape nav rakstāma:\n" msgstr[2] "%d video importēšana neizdevās, jo fotogrāfiju mape nav rakstāma:\n" -#: src/Dialogs.vala:386 +#: src/Dialogs.vala:400 #, c-format msgid "" "1 photo/video failed to import because the photo library folder was not " @@ -3354,7 +3342,7 @@ msgstr[2] "" "%d fotogrāfiju/video importēšana neizdevās, jo fotogrāfiju mape nav " "rakstāma:\n" -#: src/Dialogs.vala:389 +#: src/Dialogs.vala:403 #, c-format msgid "" "1 file failed to import because the photo library folder was not writable:\n" @@ -3366,7 +3354,7 @@ msgstr[0] "" msgstr[1] "%d datņu importēšana neizdevās, jo fotogrāfiju mape nav rakstāma:\n" msgstr[2] "%d datņu importēšana neizdevās, jo fotogrāfiju mape nav rakstāma:\n" -#: src/Dialogs.vala:403 +#: src/Dialogs.vala:417 #, c-format msgid "1 photo failed to import due to a camera error:\n" msgid_plural "%d photos failed to import due to a camera error:\n" @@ -3374,7 +3362,7 @@ msgstr[0] "%d fotogrāfijas importēšana neizdevās dēļ kameras kļūdas:\n" msgstr[1] "%d fotogrāfiju importēšana neizdevās dēļ kameras kļūdas:\n" msgstr[2] "%d fotogrāfiju importēšana neizdevās dēļ kameras kļūdas:\n" -#: src/Dialogs.vala:406 +#: src/Dialogs.vala:420 #, c-format msgid "1 video failed to import due to a camera error:\n" msgid_plural "%d videos failed to import due to a camera error:\n" @@ -3382,7 +3370,7 @@ msgstr[0] "%d video importēšana neizdevās dēļ kameras kļūdas:\n" msgstr[1] "%d video importēšana neizdevās dēļ kameras kļūdas:\n" msgstr[2] "%d video importēšana neizdevās dēļ kameras kļūdas:\n" -#: src/Dialogs.vala:409 +#: src/Dialogs.vala:423 #, c-format msgid "1 photo/video failed to import due to a camera error:\n" msgid_plural "%d photos/videos failed to import due to a camera error:\n" @@ -3390,7 +3378,7 @@ msgstr[0] "%d fotogrāfijas/video importēšana neizdevās dēļ kameras kļūda msgstr[1] "%d fotogrāfiju/video importēšana neizdevās dēļ kameras kļūdas:\n" msgstr[2] "%d fotogrāfiju/video importēšana neizdevās dēļ kameras kļūdas:\n" -#: src/Dialogs.vala:412 +#: src/Dialogs.vala:426 #, c-format msgid "1 file failed to import due to a camera error:\n" msgid_plural "%d files failed to import due to a camera error:\n" @@ -3398,7 +3386,7 @@ msgstr[0] "%d datnes importēšana neizdevās dēļ kameras kļūdas:\n" msgstr[1] "%d datņu importēšana neizdevās dēļ kameras kļūdas:\n" msgstr[2] "%d datņu importēšana neizdevās dēļ kameras kļūdas:\n" -#: src/Dialogs.vala:426 +#: src/Dialogs.vala:440 #, c-format msgid "1 photo failed to import because it was corrupt:\n" msgid_plural "%d photos failed to import because they were corrupt:\n" @@ -3406,7 +3394,7 @@ msgstr[0] "%d fotogrāfijas importēšana neizdevās, jo tā ir bojāta:\n" msgstr[1] "%d fotogrāfiju importēšana neizdevās, jo tās ir bojātas:\n" msgstr[2] "%d fotogrāfiju importēšana neizdevās, jo tās ir bojātas:\n" -#: src/Dialogs.vala:429 +#: src/Dialogs.vala:443 #, c-format msgid "1 video failed to import because it was corrupt:\n" msgid_plural "%d videos failed to import because they were corrupt:\n" @@ -3414,7 +3402,7 @@ msgstr[0] "%d video importēšana neizdevās, jo tas ir bojāts:\n" msgstr[1] "%d video importēšana neizdevās, jo tie ir bojāti:\n" msgstr[2] "%d video importēšana neizdevās, jo tie ir bojāti:\n" -#: src/Dialogs.vala:432 +#: src/Dialogs.vala:446 #, c-format msgid "1 photo/video failed to import because it was corrupt:\n" msgid_plural "%d photos/videos failed to import because they were corrupt:\n" @@ -3422,7 +3410,7 @@ msgstr[0] "%d fotogrāfijas/video importēšana neizdevās, jo tā ir bojāta:\n msgstr[1] "%d fotogrāfiju/video importēšana neizdevās, jo tās ir bojātas:\n" msgstr[2] "%d fotogrāfiju/video importēšana neizdevās, jo tās ir bojātas:\n" -#: src/Dialogs.vala:435 +#: src/Dialogs.vala:449 #, c-format msgid "1 file failed to import because it was corrupt:\n" msgid_plural "%d files failed to import because it was corrupt:\n" @@ -3434,7 +3422,7 @@ msgstr[2] "%d datņu importēšana neizdevās, jo tās ir bojātas:\n" #. standard container formats are supported, it's just that the streams in them #. might or might not be interpretable), so this message does not need to be #. media specific -#: src/Dialogs.vala:452 +#: src/Dialogs.vala:466 #, c-format msgid "1 unsupported photo skipped:\n" msgid_plural "%d unsupported photos skipped:\n" @@ -3444,7 +3432,7 @@ msgstr[2] "Izlaistas %d neatbalstītas fotogrāfijas:\n" #. we have no notion of "non-video" video files right now in Shotwell, so this #. message doesn't need to be media specific -#: src/Dialogs.vala:467 +#: src/Dialogs.vala:481 #, c-format msgid "1 non-image file skipped.\n" msgid_plural "%d non-image files skipped.\n" @@ -3452,7 +3440,7 @@ msgstr[0] "Izlaista %d ne-attēla datne.\n" msgstr[1] "Izlaistas %d ne-attēla datnes.\n" msgstr[2] "Izlaistu %d ne-attēla datņu.\n" -#: src/Dialogs.vala:478 +#: src/Dialogs.vala:492 #, c-format msgid "1 photo skipped due to user cancel:\n" msgid_plural "%d photos skipped due to user cancel:\n" @@ -3460,7 +3448,7 @@ msgstr[0] "Izlaista %d lietotāja atcelta fotogrāfija:\n" msgstr[1] "Izlaistas %d lietotāja atceltas fotogrāfijas:\n" msgstr[2] "Izlaistas %d lietotāja atceltas fotogrāfijas:\n" -#: src/Dialogs.vala:481 +#: src/Dialogs.vala:495 #, c-format msgid "1 video skipped due to user cancel:\n" msgid_plural "%d videos skipped due to user cancel:\n" @@ -3468,7 +3456,7 @@ msgstr[0] "Izlaists %d lietotāja atcelts video:\n" msgstr[1] "Izlaisti %d lietotāja atcelti video:\n" msgstr[2] "Izlaisti %d lietotāja atcelti video:\n" -#: src/Dialogs.vala:484 +#: src/Dialogs.vala:498 #, c-format msgid "1 photo/video skipped due to user cancel:\n" msgid_plural "%d photos/videos skipped due to user cancel:\n" @@ -3476,7 +3464,7 @@ msgstr[0] "Izlaista %d lietotāja atcelta fotogrāfija/video:\n" msgstr[1] "Izlaistas %d lietotāja atceltas fotogrāfijas/video:\n" msgstr[2] "Izlaistas %d lietotāja atceltas fotogrāfijas/video:\n" -#: src/Dialogs.vala:487 +#: src/Dialogs.vala:501 #, c-format msgid "1 file skipped due to user cancel:\n" msgid_plural "%d file skipped due to user cancel:\n" @@ -3484,7 +3472,7 @@ msgstr[0] "Izlaista %d lietotāja atcelta datne:\n" msgstr[1] "Izlaistas %d lietotāja atceltas datnes:\n" msgstr[2] "Izlaistas %d lietotāja atceltas datnes:\n" -#: src/Dialogs.vala:501 +#: src/Dialogs.vala:515 #, c-format msgid "1 photo successfully imported.\n" msgid_plural "%d photos successfully imported.\n" @@ -3492,7 +3480,7 @@ msgstr[0] "%d fotogrāfija veiksmīgi importēta.\n" msgstr[1] "%d fotogrāfijas veiksmīgi importētas.\n" msgstr[2] "%d fotogrāfijas veiksmīgi importētas.\n" -#: src/Dialogs.vala:504 +#: src/Dialogs.vala:518 #, c-format msgid "1 video successfully imported.\n" msgid_plural "%d videos successfully imported.\n" @@ -3500,7 +3488,7 @@ msgstr[0] "%d video veiksmīgi importēts.\n" msgstr[1] "%d video veiksmīgi importēti.\n" msgstr[2] "%d video veiksmīgi importēti.\n" -#: src/Dialogs.vala:507 +#: src/Dialogs.vala:521 #, c-format msgid "1 photo/video successfully imported.\n" msgid_plural "%d photos/videos successfully imported.\n" @@ -3510,65 +3498,65 @@ msgstr[2] "%d fotogrāfijas/video veiksmīgi importēti.\n" #. if no media items were imported at all (i.e. an empty directory attempted), need to at least #. report that nothing was imported -#: src/Dialogs.vala:523 +#: src/Dialogs.vala:537 msgid "No photos or videos imported.\n" msgstr "Neviena fotogrāfija netika importēta.\n" -#: src/Dialogs.vala:530 src/Dialogs.vala:549 +#: src/Dialogs.vala:544 src/Dialogs.vala:563 msgid "Import Complete" msgstr "Importēšana pabeigta" -#: src/Dialogs.vala:650 src/Resources.vala:232 +#: src/Dialogs.vala:663 src/Resources.vala:202 msgid "Rename Event" msgstr "Pārdēvēt notikumu" -#: src/Dialogs.vala:650 +#: src/Dialogs.vala:663 msgid "Name:" msgstr "Nosaukums:" #. Dialog title -#: src/Dialogs.vala:661 +#: src/Dialogs.vala:674 msgctxt "Dialog Title" msgid "Edit Title" msgstr "Rediģēt nosaukumu" -#: src/Dialogs.vala:662 src/Properties.vala:343 +#: src/Dialogs.vala:675 src/Properties.vala:347 msgid "Title:" msgstr "Nosaukums:" #. Dialog title -#: src/Dialogs.vala:678 src/Resources.vala:308 +#: src/Dialogs.vala:691 src/Resources.vala:278 msgid "Edit Event Comment" msgstr "Rediģēt notikuma komentāru" -#: src/Dialogs.vala:679 +#: src/Dialogs.vala:692 msgid "Edit Photo/Video Comment" msgstr "Drukāt fotogrāfijas/video komentāru" -#: src/Dialogs.vala:680 src/Properties.vala:631 +#: src/Dialogs.vala:693 src/Properties.vala:646 msgid "Comment:" msgstr "Komentārs:" -#: src/Dialogs.vala:696 +#: src/Dialogs.vala:709 msgid "Remove and _Trash File" msgid_plural "Remove and _Trash Files" msgstr[0] "Izņem_t uz izmest datni" msgstr[1] "Izņem_t uz izmest datnes" msgstr[2] "Izņem_t uz izmest datnes" -#: src/Dialogs.vala:700 +#: src/Dialogs.vala:713 msgid "_Remove From Library" msgstr "_Izņemt no bibliotēkas" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edit?" msgstr "Atgriezt ārējo izmaiņu?" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edits?" msgstr "Atgriezt ārējās izmaiņas?" -#: src/Dialogs.vala:745 +#: src/Dialogs.vala:758 #, c-format msgid "This will destroy all changes made to the external file. Continue?" msgid_plural "" @@ -3583,15 +3571,15 @@ msgstr[2] "" "Šī darbība iznīcinās visas izmaiņas, kas ir veiktas ar %d ārējām datnēm. " "Turpināt?" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edit" msgstr "At_griezt ārējo izmaiņu" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edits" msgstr "At_griezt ārējās izmaiņas" -#: src/Dialogs.vala:770 +#: src/Dialogs.vala:783 #, c-format msgid "This will remove the photo from the library. Continue?" msgid_plural "This will remove %d photos from the library. Continue?" @@ -3599,19 +3587,19 @@ msgstr[0] "Šī darbība izņems %d fotogrāfiju no bibliotēkas. Turpināt?" msgstr[1] "Šī darbība izņems %d fotogrāfijas no bibliotēkas. Turpināt?" msgstr[2] "Šī darbība izņems %d fotogrāfijas no bibliotēkas. Turpināt?" -#: src/Dialogs.vala:777 src/Resources.vala:174 +#: src/Dialogs.vala:790 src/Resources.vala:144 msgid "_Remove" msgstr "_Izņemt" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photo From Library" msgstr "Izņemt fotogrāfiju no bibliotēkas" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photos From Library" msgstr "Izņemt fotogrāfijas no bibliotēkas" -#: src/Dialogs.vala:798 +#: src/Dialogs.vala:811 #, c-format msgid "" "\n" @@ -3634,13 +3622,13 @@ msgstr[2] "" "\n" "Un %d citu." -#: src/Dialogs.vala:822 src/Dialogs.vala:849 +#: src/Dialogs.vala:835 src/Dialogs.vala:862 msgid "Tags (separated by commas):" msgstr "Tagi (atdalītas ar komatu):" #. This function is used to determine whether or not files should be copied or linked when imported. #. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. -#: src/Dialogs.vala:908 +#: src/Dialogs.vala:921 msgid "" "Shotwell can copy the photos into your library folder or it can import them " "without copying." @@ -3648,31 +3636,31 @@ msgstr "" "Shotwell var kopēt fotogrāfijas jūsu bibliotēkas mapē, vai tās var tikt " "importētas bez kopēšanas." -#: src/Dialogs.vala:913 +#: src/Dialogs.vala:926 msgid "Co_py Photos" msgstr "Ko_pēt fotogrāfijas" -#: src/Dialogs.vala:914 +#: src/Dialogs.vala:927 msgid "_Import in Place" msgstr "_Importēt vietā" -#: src/Dialogs.vala:915 +#: src/Dialogs.vala:928 msgid "Import to Library" msgstr "Importēt bibliotēkā" -#: src/Dialogs.vala:925 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:938 src/PhotoPage.vala:2897 msgid "Remove From Library" msgstr "Izņemt no bibliotēkas" -#: src/Dialogs.vala:926 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:939 src/PhotoPage.vala:2897 msgid "Removing Photo From Library" msgstr "Izņem fotogrāfijas no bibliotēkas" -#: src/Dialogs.vala:926 +#: src/Dialogs.vala:939 msgid "Removing Photos From Library" msgstr "Izņem fotogrāfijas no bibliotēkas" -#: src/Dialogs.vala:940 +#: src/Dialogs.vala:953 #, c-format msgid "" "This will remove the photo/video from your Shotwell library. Would you also " @@ -3700,7 +3688,7 @@ msgstr[2] "" "\n" "Šo darbību nevar atsaukt." -#: src/Dialogs.vala:944 +#: src/Dialogs.vala:957 #, c-format msgid "" "This will remove the video from your Shotwell library. Would you also like " @@ -3728,7 +3716,7 @@ msgstr[2] "" "\n" "Šo darbību nevar atsaukt." -#: src/Dialogs.vala:948 +#: src/Dialogs.vala:961 #, c-format msgid "" "This will remove the photo from your Shotwell library. Would you also like " @@ -3756,7 +3744,7 @@ msgstr[2] "" "\n" "Šo darbību nevar atsaukt." -#: src/Dialogs.vala:980 +#: src/Dialogs.vala:993 #, c-format msgid "" "The photo or video cannot be moved to your desktop trash. Delete this file?" @@ -3770,7 +3758,7 @@ msgstr[2] "" "Šīs %d fotogrāfijas vai video nevar pārvietot uz miskasti. Dzēst šīs datnes?" #. Alert the user that the files were not removed. -#: src/Dialogs.vala:997 +#: src/Dialogs.vala:1010 #, c-format msgid "The photo or video cannot be deleted." msgid_plural "%d photos/videos cannot be deleted." @@ -3808,7 +3796,7 @@ msgstr "%s neatbalsta %s datnes formātu." msgid "Unable open photo %s. Sorry." msgstr "Nevar atvērt fotogrāfiju %s." -#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:176 ui/direct.ui:8 +#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:146 ui/direct.ui:8 #: ui/textentrydialog.ui:33 msgid "_Save" msgstr "_Saglabāt" @@ -3862,7 +3850,6 @@ msgid "Set _all photos/videos to this time" msgstr "Iest_atīt visas fotogrāfijas/video uz šo laiku" #: src/dialogs/AdjustDateTimeDialog.vala:106 -#| msgid "_Modify original photo file" msgid "_Modify original photo file" msgid_plural "_Modify original photo files" msgstr[0] "_Mainīt sākotnējo fotogrāfijas datni" @@ -3870,7 +3857,6 @@ msgstr[1] "_Mainīt sākotnējās fotogrāfiju datnes" msgstr[2] "_Mainīt sākotnējās fotogrāfiju datnes" #: src/dialogs/AdjustDateTimeDialog.vala:110 -#| msgid "_Modify original file" msgid "_Modify original file" msgid_plural "_Modify original files" msgstr[0] "_Mainīt sākotnējo datni" @@ -3970,35 +3956,35 @@ msgstr "Eksportēt _metadatus:" #. We're installed system-wide, so use the system help. #. We're being run from the build directory; we'll have to handle clicks to this #. link manually ourselves, due to a limitation of help: URIs. -#: src/dialogs/Preferences.vala:115 src/dialogs/Preferences.vala:119 +#: src/dialogs/Preferences.vala:108 src/dialogs/Preferences.vala:112 msgid "(Help)" msgstr "(Palīdzība)" -#: src/dialogs/Preferences.vala:123 +#: src/dialogs/Preferences.vala:116 #, c-format msgid "Year%sMonth%sDay" msgstr "Gads%sMēnesis%sDiena" -#: src/dialogs/Preferences.vala:125 +#: src/dialogs/Preferences.vala:118 #, c-format msgid "Year%sMonth" msgstr "Gads%sMēnesis" -#: src/dialogs/Preferences.vala:127 +#: src/dialogs/Preferences.vala:120 #, c-format msgid "Year%sMonth-Day" msgstr "Gads%sMēnesis-Diena" -#: src/dialogs/Preferences.vala:129 +#: src/dialogs/Preferences.vala:122 msgid "Year-Month-Day" msgstr "Gads-Mēnesis-Diena" -#: src/dialogs/Preferences.vala:130 src/editing_tools/EditingTools.vala:760 +#: src/dialogs/Preferences.vala:123 src/editing_tools/EditingTools.vala:760 msgid "Custom" msgstr "Pielāgots" #. Invalid pattern. -#: src/dialogs/Preferences.vala:369 +#: src/dialogs/Preferences.vala:351 msgid "Invalid pattern" msgstr "Nederīgs raksts" @@ -4189,7 +4175,7 @@ msgstr "30 × 40 cm" msgid "A3 (297 × 420 mm)" msgstr "A3 (297 × 420 mm)" -#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:398 +#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:402 msgid "Size:" msgstr "Izmērs:" @@ -4207,8 +4193,8 @@ msgid "_Reset" msgstr "_Atiestatīt" #. fit both on the top line, emit and move on -#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:439 -#: src/Properties.vala:443 src/Properties.vala:450 +#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:443 +#: src/Properties.vala:447 src/Properties.vala:454 msgid "Exposure:" msgstr "Ekspozīcija:" @@ -4282,7 +4268,7 @@ msgstr "Kontrasta palielināšana" msgid "Angle:" msgstr "Leņķis:" -#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:203 +#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:173 #: ui/direct.ui:144 ui/photo.ui:233 msgid "_Straighten" msgstr "Iztai_snot" @@ -4295,7 +4281,7 @@ msgstr[0] "%d fotogrāfija/video" msgstr[1] "%d fotogrāfijas/video" msgstr[2] "%d fotogrāfiju/video" -#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:358 +#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:362 #, c-format msgid "%d Video" msgid_plural "%d Videos" @@ -4303,7 +4289,7 @@ msgstr[0] "%d video" msgstr[1] "%d video" msgstr[2] "%d video" -#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:356 +#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:360 #, c-format msgid "%d Photo" msgid_plural "%d Photos" @@ -4383,6 +4369,72 @@ msgstr "Aizvietot _visu" msgid "Export" msgstr "Eksportēt" +#: src/faces/FacesBranch.vala:89 src/Resources.vala:305 src/Resources.vala:306 +#: ui/faces.ui:403 +msgid "Faces" +msgstr "Sejas" + +#: src/faces/FacesTool.vala:115 +msgid "Detect faces…" +msgstr "Noteikt sejas…" + +#: src/faces/FacesTool.vala:140 +#| msgid "Set the crop for this photo" +msgid "Detect faces on this photo" +msgstr "Noteikt sejas šajā fotogrāfijā" + +#: src/faces/FacesTool.vala:142 +msgid "Cancel face detection" +msgstr "Atcelt seju noteikšanu" + +#: src/faces/FacesTool.vala:146 +msgid "Close the Faces tool without saving changes" +msgstr "Aizvērt rīku “Sejas”, nesaglabājot izmaiņas" + +#: src/faces/FacesTool.vala:153 src/faces/FacesTool.vala:185 +msgid "Click and drag to tag a face" +msgstr "Klikšķiniet un velciet, lai tagotu fotogrāfiju" + +#: src/faces/FacesTool.vala:180 +#, c-format +msgid "Click to edit face %s" +msgstr "Spiediet, lai rediģētu seju %s" + +#: src/faces/FacesTool.vala:189 +msgid "Stop dragging to add your face and name it." +msgstr "Beidziet vilkt, lai pievienotu seju, un nosauciet to." + +#: src/faces/FacesTool.vala:193 +msgid "Type a name for this face, then press Enter" +msgstr "Ierakstiet vārdu šai sejai un tad spiediet Enter" + +#: src/faces/FacesTool.vala:197 +msgid "Move or modify the face shape or name and press Enter" +msgstr "" +"Pārvietojiet vai mainiet sejas formu, vai nosauciet to un spiediet Enter" + +#: src/faces/FacesTool.vala:201 +#| msgid "Settings" +msgid "Detecting faces" +msgstr "Nosaka sejas" + +#: src/faces/FacesTool.vala:212 +msgid "If you don’t set the name of unknown faces they won’t be saved." +msgstr "Ja neiestatīsiet vārdus nezināmām sejām, tās netiks saglabātas." + +#: src/faces/FacesTool.vala:233 +msgid "Save changes and close the Faces tool" +msgstr "Saglabājiet izmaiņas un aizveriet rīku “Sejas”" + +#: src/faces/FacesTool.vala:235 +#| msgid "Lose changes to %s?" +msgid "No changes to save" +msgstr "Nav izmaiņu, ko saglabāt" + +#: src/faces/FacesTool.vala:956 +msgid "Error trying to spawn face detection program:\n" +msgstr "Kļūda, mēģinot palaist seju atpazīšanas programmu:\n" + #: src/folders/FoldersBranch.vala:144 msgid "Folders" msgstr "Mapes" @@ -4391,8 +4443,18 @@ msgstr "Mapes" msgid "Browse the library’s folder structure" msgstr "Pārlūkot bibliotēkas mapju struktūru" -#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1098 -#: src/SearchFilter.vala:1099 +#: src/import-roll/ImportRollBranch.vala:43 +#| msgid "_Import" +msgid "Imports" +msgstr "Importi" + +#: src/import-roll/ImportRollBranch.vala:43 +#| msgid "Browse the library’s folder structure" +msgid "Browse the library’s import history" +msgstr "Pārlūkot bibliotēkas importēšanas vēsturi" + +#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1124 +#: src/SearchFilter.vala:1125 msgid "Flagged" msgstr "Ar karodziņu" @@ -4414,36 +4476,35 @@ msgid "Last Import" msgstr "Pēdējais imports" #: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 -#: ui/preferences_dialog.ui:512 +#: ui/preferences_dialog.ui:465 msgid "Library" msgstr "Bibliotēka" #: src/library/LibraryBranch.vala:30 -#| msgid "Organize your photos" msgid "Organize and browse your photos" msgstr "Organizē un pārlūko savas fotogrāfijas" -#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1079 +#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1105 msgid "Photos" msgstr "Fotogrāfijas" -#: src/library/LibraryWindow.vala:508 +#: src/library/LibraryWindow.vala:526 msgid "Import From Folder" msgstr "Importēt no mapes" -#: src/library/LibraryWindow.vala:515 +#: src/library/LibraryWindow.vala:533 msgid "Recurse Into Subfolders" msgstr "Rekursīvi apakšmapēs" -#: src/library/LibraryWindow.vala:583 ui/trash.ui:288 +#: src/library/LibraryWindow.vala:601 ui/trash.ui:288 msgid "Empty Trash" msgstr "Iztukšot miskasti" -#: src/library/LibraryWindow.vala:583 +#: src/library/LibraryWindow.vala:601 msgid "Emptying Trash…" msgstr "Iztukšo miskasti…" -#: src/library/LibraryWindow.vala:779 +#: src/library/LibraryWindow.vala:780 #, c-format msgid "" "Shotwell is configured to import photos to your home directory.\n" @@ -4456,33 +4517,33 @@ msgstr "" "Mēs iesakām to mainīt Rediģēt %s Iestatījumi.\n" "Vai vēlaties turpināt importēt fotogrāfijas?" -#: src/library/LibraryWindow.vala:782 ui/preferences_dialog.ui:142 +#: src/library/LibraryWindow.vala:783 ui/preferences_dialog.ui:86 msgid "Library Location" msgstr "Bibliotēkas atrašanās vieta" #. TODO: Specify which directory/file. -#: src/library/LibraryWindow.vala:795 +#: src/library/LibraryWindow.vala:796 msgid "Photos cannot be imported from this directory." msgstr "No šīs direktorijas fotogrāfijas nevar importēt." -#: src/library/LibraryWindow.vala:1075 +#: src/library/LibraryWindow.vala:1076 #, c-format msgid "%s (%d%%)" msgstr "%s (%d%%)" -#: src/library/LibraryWindow.vala:1119 src/library/LibraryWindow.vala:1130 +#: src/library/LibraryWindow.vala:1120 src/library/LibraryWindow.vala:1131 msgid "Updating library…" msgstr "Atjaunina bibliotēku…" -#: src/library/LibraryWindow.vala:1136 +#: src/library/LibraryWindow.vala:1137 msgid "Preparing to auto-import photos…" msgstr "Gatavojas automātiski importēt fotogrāfijas…" -#: src/library/LibraryWindow.vala:1141 +#: src/library/LibraryWindow.vala:1142 msgid "Auto-importing photos…" msgstr "Automātiski importē fotogrāfijas…" -#: src/library/LibraryWindow.vala:1149 +#: src/library/LibraryWindow.vala:1150 msgid "Writing metadata to files…" msgstr "Datnēs raksta metadatus…" @@ -4502,7 +4563,7 @@ msgstr "Miskaste" msgid "Trash is empty" msgstr "Miskaste ir tukša" -#: src/library/TrashPage.vala:110 +#: src/library/TrashPage.vala:110 ui/faces.ui:469 msgid "Delete" msgstr "Dzēst" @@ -4548,40 +4609,40 @@ msgstr "" msgid "Unknown error attempting to verify Shotwell’s database: %s" msgstr "Nezināma kļūda, mēģinot pārbaudīt Shotwell datubāzi — %s" -#: src/main.vala:104 +#: src/main.vala:108 msgid "Loading Shotwell" msgstr "Ielādē Shotwell" -#: src/main.vala:303 +#: src/main.vala:320 msgid "Path to Shotwell’s private data" msgstr "Ceļš uz Shotwell privātajiem datiem" -#: src/main.vala:303 +#: src/main.vala:320 msgid "DIRECTORY" msgstr "DIREKTORIJA" -#: src/main.vala:307 +#: src/main.vala:324 msgid "Do not monitor library directory at runtime for changes" msgstr "Nesekot līdzi bibliotēkas direktorijas izmaiņām" -#: src/main.vala:311 +#: src/main.vala:328 msgid "Don’t display startup progress meter" msgstr "Nerādīt palaišanās progresu" -#: src/main.vala:315 +#: src/main.vala:332 msgid "Show the application’s version" msgstr "Rādīt lietotnes versiju" -#: src/main.vala:319 +#: src/main.vala:336 msgid "Start the application in fullscreen mode" msgstr "Palaist lietotni pilnekrāna režīmā" #. init GTK (valac has already called g_threads_init()) -#: src/main.vala:356 +#: src/main.vala:373 msgid "[FILE]" msgstr "[DATNE]" -#: src/main.vala:360 +#: src/main.vala:380 #, c-format msgid "Run “%s --help” to see a full list of available command line options.\n" msgstr "" @@ -4593,11 +4654,11 @@ msgstr "" msgid "Unable to process monitoring updates: %s" msgstr "Nevar apstrādāt pārraudzības atjauninājumus — %s" -#: src/MediaPage.vala:158 +#: src/MediaPage.vala:76 msgid "Adjust the size of the thumbnails" msgstr "Pielāgot sīktēlu izmēru" -#: src/MediaPage.vala:502 +#: src/MediaPage.vala:419 #, c-format msgid "" "Shotwell was unable to play the selected video:\n" @@ -4606,34 +4667,34 @@ msgstr "" "Shotwell nevar atskaņot izvēlēto video:\n" "%s" -#: src/Page.vala:1327 +#: src/Page.vala:1324 msgid "No photos/videos" msgstr "Nav fotogrāfijas/video" -#: src/Page.vala:1331 +#: src/Page.vala:1328 msgid "No photos/videos found which match the current filter" msgstr "Netika atrastas fotogrāfijas/video, kas atbilst dotajam filtram" -#: src/Page.vala:2644 +#: src/Page.vala:2641 msgid "Photos cannot be exported to this directory." msgstr "Uz šo mapi nevar eksportēt fotogrāfijas." #. previous button -#: src/PhotoPage.vala:538 +#: src/PhotoPage.vala:550 msgid "Previous photo" msgstr "Iepriekšējā fotogrāfija" #. next button -#: src/PhotoPage.vala:544 +#: src/PhotoPage.vala:556 msgid "Next photo" msgstr "Nākamā fotogrāfija" -#: src/PhotoPage.vala:1850 +#: src/PhotoPage.vala:1862 #, c-format msgid "Photo source file missing: %s" msgstr "Pazudusi fotogrāfijas avota datne — %s" -#: src/PhotoPage.vala:3018 +#: src/PhotoPage.vala:3041 #, c-format msgid "Unable to export %s: %s" msgstr "Neizdevās eksportēt %s — %s" @@ -4642,6 +4703,10 @@ msgstr "Neizdevās eksportēt %s — %s" msgid "BMP" msgstr "BMP" +#: src/photos/GifSupport.vala:32 +msgid "GIF" +msgstr "GIF" + #: src/photos/JfifSupport.vala:84 msgid "JPEG" msgstr "JPEG" @@ -4729,19 +4794,19 @@ msgstr "" "\n" "%s" -#: src/Properties.vala:87 +#: src/Properties.vala:98 msgid "Today" msgstr "Šodiena" -#: src/Properties.vala:89 +#: src/Properties.vala:100 msgid "Yesterday" msgstr "Vakardiena" -#: src/Properties.vala:346 +#: src/Properties.vala:350 msgid "Items:" msgstr "Vienumi:" -#: src/Properties.vala:349 +#: src/Properties.vala:353 #, c-format msgid "%d Event" msgid_plural "%d Events" @@ -4750,107 +4815,103 @@ msgstr[1] "%d notikumi" msgstr[2] "%d notikumu" #. display only one date if start and end are the same -#: src/Properties.vala:380 +#: src/Properties.vala:384 msgid "Date:" msgstr "Datums:" #. display only one time if start and end are the same -#: src/Properties.vala:384 +#: src/Properties.vala:388 msgid "Time:" msgstr "Laiks:" #. display time range #. display date range -#: src/Properties.vala:387 src/Properties.vala:392 +#: src/Properties.vala:391 src/Properties.vala:396 msgid "From:" msgstr "No:" -#: src/Properties.vala:388 src/Properties.vala:393 +#: src/Properties.vala:392 src/Properties.vala:397 msgid "To:" msgstr "Uz:" -#: src/Properties.vala:407 +#: src/Properties.vala:411 msgid "Duration:" msgstr "Ilgums:" -#: src/Properties.vala:407 +#: src/Properties.vala:411 #, c-format msgid "%.1f seconds" msgstr "%.1f sekundes" -#: src/Properties.vala:411 +#: src/Properties.vala:415 msgid "Developer:" msgstr "Attīstītājs:" #. nothing special to be done for now for Events -#: src/Properties.vala:586 +#: src/Properties.vala:593 msgid "Location:" msgstr "Atrašanās vieta:" -#: src/Properties.vala:589 +#: src/Properties.vala:596 msgid "File size:" msgstr "Datnes izmērs:" -#: src/Properties.vala:593 +#: src/Properties.vala:600 msgid "Current Development:" msgstr "Pašreizējais attīstījums:" -#: src/Properties.vala:595 +#: src/Properties.vala:602 msgid "Original dimensions:" msgstr "Sākotnējās dimensijas:" -#: src/Properties.vala:598 +#: src/Properties.vala:605 msgid "Camera make:" msgstr "Kameras ražotājs:" -#: src/Properties.vala:601 +#: src/Properties.vala:608 msgid "Camera model:" msgstr "Kameras modelis:" -#: src/Properties.vala:604 +#: src/Properties.vala:611 msgid "Flash:" msgstr "Zibspuldze:" -#: src/Properties.vala:606 +#: src/Properties.vala:613 msgid "Focal length:" msgstr "Fokusa attālums:" -#: src/Properties.vala:609 +#: src/Properties.vala:616 msgid "Exposure date:" msgstr "Uzņemšanas datums:" -#: src/Properties.vala:612 +#: src/Properties.vala:619 msgid "Exposure time:" msgstr "Ekspozīcijas laiks:" -#: src/Properties.vala:615 +#: src/Properties.vala:622 msgid "Exposure bias:" msgstr "Ekspozīcijas nobīde:" -#: src/Properties.vala:617 +#: src/Properties.vala:632 msgid "GPS latitude:" msgstr "GPS platums:" -#: src/Properties.vala:620 +#: src/Properties.vala:635 msgid "GPS longitude:" msgstr "GPS garums:" -#: src/Properties.vala:623 +#: src/Properties.vala:638 msgid "Artist:" msgstr "Mākslinieks:" -#: src/Properties.vala:625 +#: src/Properties.vala:640 msgid "Copyright:" msgstr "Autortiesības:" -#: src/Properties.vala:627 +#: src/Properties.vala:642 msgid "Software:" msgstr "Programmatūra:" -#: src/Properties.vala:642 -msgid "Extended Information" -msgstr "Paplašināta informācija" - #: src/publishing/PublishingPluginHost.vala:11 msgid "Preparing for upload" msgstr "Gatavo augšupielādēšanai" @@ -4874,7 +4935,6 @@ msgstr "" #. Here, we check whether more than one item is being uploaded, and if so, display #. an alternate message. #: src/publishing/PublishingUI.vala:104 -#| msgid "The selected video was successfully published." msgid "The selected video was successfully published." msgid_plural "The selected videos were successfully published." msgstr[0] "Izvēlētais video tika veiksmīgi publicēts." @@ -4882,7 +4942,6 @@ msgstr[1] "Izvēlētie video tika veiksmīgi publicēti." msgstr[2] "Izvēlētie video tika veiksmīgi publicēti." #: src/publishing/PublishingUI.vala:109 -#| msgid "The selected photo was successfully published." msgid "The selected photo was successfully published." msgid_plural "The selected photos were successfully published." msgstr[0] "Izvēlētā fotogrāfija tika veiksmīgi publicēta." @@ -4948,741 +5007,818 @@ msgstr "" msgid "Publishing" msgstr "Publicē" -#: src/Resources.vala:141 src/Resources.vala:146 ui/collection.ui:151 +#: src/Resources.vala:111 src/Resources.vala:116 ui/collection.ui:151 msgid "Rotate" msgstr "Pagriezt" -#: src/Resources.vala:142 +#: src/Resources.vala:112 msgid "Rotate Right" msgstr "Pagriezt pa labi" -#: src/Resources.vala:143 ui/collection.ui:148 +#: src/Resources.vala:113 ui/collection.ui:148 msgid "Rotate the photos right (press Ctrl to rotate left)" msgstr "" "Pagriezt fotogrāfijas pa labi (piespiediet Ctrl, lai pagrieztu pa kreisi)" -#: src/Resources.vala:147 +#: src/Resources.vala:117 msgid "Rotate Left" msgstr "Pagriezt pa kreisi" -#: src/Resources.vala:148 +#: src/Resources.vala:118 msgid "Rotate the photos left" msgstr "Pagriezt fotogrāfijas pa kreisi" -#: src/Resources.vala:151 +#: src/Resources.vala:121 msgid "Flip Horizontally" msgstr "Apmest horizontāli" -#: src/Resources.vala:154 +#: src/Resources.vala:124 msgid "Flip Vertically" msgstr "Apmest vertikāli" -#: src/Resources.vala:156 ui/direct.ui:192 ui/events_directory.ui:168 -#: ui/event.ui:438 ui/import_queue.ui:83 ui/import.ui:201 +#: src/Resources.vala:126 ui/direct.ui:192 ui/events_directory.ui:168 +#: ui/event.ui:438 ui/faces.ui:448 ui/import_queue.ui:83 ui/import.ui:201 #: ui/manifest_widget.ui:35 ui/media.ui:421 ui/offline.ui:198 ui/photo.ui:405 #: ui/tags.ui:440 ui/trash.ui:207 msgid "_About" msgstr "P_ar" -#: src/Resources.vala:157 +#: src/Resources.vala:127 msgid "_Apply" msgstr "_Pielietot" -#: src/Resources.vala:160 ui/direct.ui:44 ui/events_directory.ui:32 -#: ui/event.ui:47 ui/import.ui:40 ui/media.ui:47 ui/offline.ui:32 -#: ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 +#: src/Resources.vala:130 ui/direct.ui:44 ui/events_directory.ui:32 +#: ui/event.ui:47 ui/faces.ui:47 ui/import.ui:40 ui/media.ui:47 +#: ui/offline.ui:32 ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 msgid "_Edit" msgstr "R_ediģēt" -#: src/Resources.vala:161 +#: src/Resources.vala:131 msgid "_Forward" msgstr "Uz _priekšu" -#: src/Resources.vala:162 ui/direct.ui:62 ui/events_directory.ui:125 +#: src/Resources.vala:132 ui/direct.ui:62 ui/events_directory.ui:125 #: ui/photo.ui:173 msgid "Fulls_creen" msgstr "_Pilnekrāns" -#: src/Resources.vala:163 ui/direct.ui:174 ui/direct.ui:177 +#: src/Resources.vala:133 ui/direct.ui:174 ui/direct.ui:177 #: ui/events_directory.ui:150 ui/events_directory.ui:153 ui/event.ui:420 -#: ui/event.ui:423 ui/import_queue.ui:65 ui/import_queue.ui:68 ui/import.ui:183 -#: ui/import.ui:186 ui/media.ui:403 ui/media.ui:406 ui/offline.ui:180 -#: ui/offline.ui:183 ui/photo.ui:387 ui/photo.ui:390 ui/tags.ui:422 -#: ui/tags.ui:425 ui/trash.ui:189 ui/trash.ui:192 +#: ui/event.ui:423 ui/faces.ui:430 ui/faces.ui:433 ui/import_queue.ui:65 +#: ui/import_queue.ui:68 ui/import.ui:183 ui/import.ui:186 ui/media.ui:403 +#: ui/media.ui:406 ui/offline.ui:180 ui/offline.ui:183 ui/photo.ui:387 +#: ui/photo.ui:390 ui/tags.ui:422 ui/tags.ui:425 ui/trash.ui:189 +#: ui/trash.ui:192 msgid "_Help" msgstr "_Palīdzība" -#: src/Resources.vala:164 +#: src/Resources.vala:134 msgid "Leave _Fullscreen" msgstr "Iziet no _pilnekrāna režīma" -#: src/Resources.vala:165 src/Resources.vala:364 ui/tags.ui:450 +#: src/Resources.vala:135 src/Resources.vala:343 ui/tags.ui:450 msgid "_New" msgstr "Jau_ns" -#: src/Resources.vala:166 +#: src/Resources.vala:136 msgid "_Next" msgstr "_Nākamais" -#: src/Resources.vala:169 src/Resources.vala:318 ui/events_directory.ui:65 -#: ui/event.ui:93 ui/import.ui:68 ui/media.ui:93 ui/offline.ui:72 -#: ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 +#: src/Resources.vala:139 src/Resources.vala:288 ui/events_directory.ui:65 +#: ui/event.ui:93 ui/faces.ui:93 ui/import.ui:68 ui/media.ui:93 +#: ui/offline.ui:72 ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 msgid "_Preferences" msgstr "_Iestatījumi" -#: src/Resources.vala:170 +#: src/Resources.vala:140 msgid "_Previous" msgstr "Ie_priekšējais" -#: src/Resources.vala:172 ui/direct.ui:37 ui/events_directory.ui:25 -#: ui/event.ui:40 ui/import_queue.ui:31 ui/import.ui:33 ui/media.ui:40 -#: ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 +#: src/Resources.vala:142 ui/direct.ui:37 ui/events_directory.ui:25 +#: ui/event.ui:40 ui/faces.ui:40 ui/import_queue.ui:31 ui/import.ui:33 +#: ui/media.ui:40 ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 msgid "_Quit" msgstr "_Iziet" -#: src/Resources.vala:173 +#: src/Resources.vala:143 msgid "_Refresh" msgstr "_Atsvaidzināt" -#: src/Resources.vala:175 +#: src/Resources.vala:145 msgid "_Revert" msgstr "Atg_riezt" -#: src/Resources.vala:177 +#: src/Resources.vala:147 msgid "Save _As" msgstr "S_aglabāt kā" -#: src/Resources.vala:178 +#: src/Resources.vala:148 msgid "Sort _Ascending" msgstr "Kārtot _augoši" -#: src/Resources.vala:179 +#: src/Resources.vala:149 msgid "Sort _Descending" msgstr "Kārtot _dilstoši" -#: src/Resources.vala:180 +#: src/Resources.vala:150 msgid "_Stop" msgstr "_Apturēt" -#: src/Resources.vala:181 +#: src/Resources.vala:151 msgid "_Undelete" msgstr "Atja_unot" -#: src/Resources.vala:182 +#: src/Resources.vala:152 msgid "_Normal Size" msgstr "_Normāls izmērs" -#: src/Resources.vala:183 +#: src/Resources.vala:153 msgid "Best _Fit" msgstr "Labākā _iekļaušanās" -#: src/Resources.vala:184 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 -#: ui/photo.ui:144 ui/tags.ui:260 +#: src/Resources.vala:154 ui/direct.ui:69 ui/event.ui:260 ui/faces.ui:260 +#: ui/media.ui:260 ui/photo.ui:144 ui/tags.ui:260 msgid "Zoom _In" msgstr "Tuv_ināt" -#: src/Resources.vala:185 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 -#: ui/photo.ui:149 ui/tags.ui:265 +#: src/Resources.vala:155 ui/direct.ui:74 ui/event.ui:265 ui/faces.ui:265 +#: ui/media.ui:265 ui/photo.ui:149 ui/tags.ui:265 msgid "Zoom _Out" msgstr "Tā_lināt" -#: src/Resources.vala:188 ui/collection.ui:167 +#: src/Resources.vala:158 ui/collection.ui:167 msgid "Enhance" msgstr "Uzlabot" -#: src/Resources.vala:189 ui/collection.ui:164 +#: src/Resources.vala:159 ui/collection.ui:164 msgid "Automatically improve the photo’s appearance" msgstr "Automātiski uzlabot fotogrāfijas izskatu" -#: src/Resources.vala:192 +#: src/Resources.vala:162 msgid "Copy Color Adjustments" msgstr "Kopēt krāsu labojumus" -#: src/Resources.vala:193 +#: src/Resources.vala:163 msgid "Copy the color adjustments applied to the photo" msgstr "Kopēt krāsu labojumus, kar ir izmantoti fotogrāfijā" -#: src/Resources.vala:196 +#: src/Resources.vala:166 msgid "Paste Color Adjustments" msgstr "Ielīmēt krāsu labojumus" -#: src/Resources.vala:197 +#: src/Resources.vala:167 msgid "Apply copied color adjustments to the selected photos" msgstr "Izmantot kopētos krāsu labojumus izvēlētajās fotogrāfijās" -#: src/Resources.vala:199 ui/direct.ui:139 ui/photo.ui:228 +#: src/Resources.vala:169 ui/direct.ui:139 ui/photo.ui:228 msgid "_Crop" msgstr "_Kadrēt" -#: src/Resources.vala:200 +#: src/Resources.vala:170 msgid "Crop" msgstr "Kadrēt" -#: src/Resources.vala:201 +#: src/Resources.vala:171 msgid "Crop the photo’s size" msgstr "Kadrēt fotogrāfijas izmēru" -#: src/Resources.vala:204 +#: src/Resources.vala:174 msgid "Straighten" msgstr "Iztaisnot" -#: src/Resources.vala:205 +#: src/Resources.vala:175 msgid "Straighten the photo" msgstr "Iztaisnot fotogrāfiju" -#: src/Resources.vala:207 ui/direct.ui:149 ui/photo.ui:238 +#: src/Resources.vala:177 ui/direct.ui:149 ui/photo.ui:238 msgid "_Red-eye" msgstr "Sa_rkanās acis" -#: src/Resources.vala:208 +#: src/Resources.vala:178 msgid "Red-eye" msgstr "Sarkanās acis" -#: src/Resources.vala:209 +#: src/Resources.vala:179 msgid "Reduce or eliminate any red-eye effects in the photo" msgstr "Samazināt vai likvidēt sarkano acu efektu fotogrāfijā" -#: src/Resources.vala:211 ui/direct.ui:154 ui/photo.ui:243 +#: src/Resources.vala:181 ui/direct.ui:154 ui/photo.ui:243 msgid "_Adjust" msgstr "Pielāg_ot" -#: src/Resources.vala:212 +#: src/Resources.vala:182 msgid "Adjust" msgstr "Pielāgot" -#: src/Resources.vala:213 +#: src/Resources.vala:183 msgid "Adjust the photo’s color and tone" msgstr "Pielāgot fotogrāfijas krāsu un toni" -#: src/Resources.vala:216 +#: src/Resources.vala:186 msgid "Revert to Original" msgstr "Atgriezties pie oriģināla" -#: src/Resources.vala:218 +#: src/Resources.vala:188 msgid "Revert External E_dits" msgstr "At_griezt ārējās izmaiņas" -#: src/Resources.vala:219 +#: src/Resources.vala:189 msgid "Revert to the master photo" msgstr "Atgriezt uz sākotnējo fotogrāfiju" -#: src/Resources.vala:222 +#: src/Resources.vala:192 msgid "Set selected image to be the new desktop background" msgstr "Iestatīt izvēlētos attēlus kā jaunos darbvirsmas fonus" -#: src/Resources.vala:223 +#: src/Resources.vala:193 msgid "Set as _Desktop Slideshow…" msgstr "Iestatīt kā _darbvirsmas slaidrādi…" -#: src/Resources.vala:225 ui/direct.ui:47 ui/events_directory.ui:35 -#: ui/event.ui:50 ui/import.ui:43 ui/media.ui:50 ui/offline.ui:35 -#: ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 +#: src/Resources.vala:195 ui/direct.ui:47 ui/events_directory.ui:35 +#: ui/event.ui:50 ui/faces.ui:50 ui/import.ui:43 ui/media.ui:50 +#: ui/offline.ui:35 ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 msgid "_Undo" msgstr "Atsa_ukt" -#: src/Resources.vala:226 +#: src/Resources.vala:196 msgid "Undo" msgstr "Atsaukt" -#: src/Resources.vala:228 ui/direct.ui:52 ui/events_directory.ui:40 -#: ui/event.ui:55 ui/import.ui:48 ui/media.ui:55 ui/offline.ui:40 -#: ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 +#: src/Resources.vala:198 ui/direct.ui:52 ui/events_directory.ui:40 +#: ui/event.ui:55 ui/faces.ui:55 ui/import.ui:48 ui/media.ui:55 +#: ui/offline.ui:40 ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 msgid "_Redo" msgstr "Ata_tsaukt" -#: src/Resources.vala:229 +#: src/Resources.vala:199 msgid "Redo" msgstr "Atatsaukt" -#: src/Resources.vala:231 ui/events_directory.ui:139 ui/events_directory.ui:181 +#: src/Resources.vala:201 ui/events_directory.ui:139 ui/events_directory.ui:181 #: ui/event.ui:393 ui/event.ui:588 msgid "Re_name Event…" msgstr "Pārdēvēt _notikumu…" -#: src/Resources.vala:234 ui/event.ui:373 ui/event.ui:580 +#: src/Resources.vala:204 ui/event.ui:373 ui/event.ui:580 msgid "Make _Key Photo for Event" msgstr "Izvēlēties kā _atslēgas fotogrāfiju notikumam" -#: src/Resources.vala:235 +#: src/Resources.vala:205 msgid "Make Key Photo for Event" msgstr "Izvēlēties kā atslēgas fotogrāfiju notikumam" -#: src/Resources.vala:237 ui/event.ui:382 ui/media.ui:376 ui/tags.ui:376 +#: src/Resources.vala:207 ui/event.ui:382 ui/faces.ui:376 ui/media.ui:376 +#: ui/tags.ui:376 msgid "_New Event" msgstr "Jau_ns notikums" -#: src/Resources.vala:238 +#: src/Resources.vala:208 msgid "New Event" msgstr "Jauns notikums" -#: src/Resources.vala:240 +#: src/Resources.vala:210 msgid "Move Photos" msgstr "Pārvietot fotogrāfijas" -#: src/Resources.vala:241 +#: src/Resources.vala:211 msgid "Move photos to an event" msgstr "Pārvietot fotogrāfijas uz notikumu" -#: src/Resources.vala:243 ui/events_directory.ui:135 ui/events_directory.ui:177 +#: src/Resources.vala:213 ui/events_directory.ui:135 ui/events_directory.ui:177 msgid "_Merge Events" msgstr "Apvienot notiku_mus" -#: src/Resources.vala:244 +#: src/Resources.vala:214 msgid "Merge" msgstr "Apvienot" -#: src/Resources.vala:245 +#: src/Resources.vala:215 msgid "Combine events into a single event" msgstr "Apvienot notikumus vienā notikumā" -#: src/Resources.vala:247 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 -#: ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 ui/tags.ui:286 +#: src/Resources.vala:217 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 +#: ui/faces.ui:286 ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 +#: ui/tags.ui:286 msgid "_Set Rating" msgstr "Ie_statīt vērtējumu" -#: src/Resources.vala:248 +#: src/Resources.vala:218 msgid "Set Rating" msgstr "Iestatīt vērtējumu" -#: src/Resources.vala:249 +#: src/Resources.vala:219 msgid "Change the rating of your photo" msgstr "Mainīt savas fotogrāfijas vērtējumu" -#: src/Resources.vala:251 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 -#: ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 ui/tags.ui:326 +#: src/Resources.vala:221 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 +#: ui/faces.ui:326 ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 +#: ui/tags.ui:326 msgid "_Increase" msgstr "Pal_ielināt" -#: src/Resources.vala:252 +#: src/Resources.vala:222 msgid "Increase Rating" msgstr "Palielināt vērtējumu" -#: src/Resources.vala:254 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 -#: ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 ui/tags.ui:331 +#: src/Resources.vala:224 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 +#: ui/faces.ui:331 ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 +#: ui/tags.ui:331 msgid "_Decrease" msgstr "_Samazināt" -#: src/Resources.vala:255 +#: src/Resources.vala:225 msgid "Decrease Rating" msgstr "Samazināt vērtējumu" -#: src/Resources.vala:257 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 -#: ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 ui/tags.ui:314 +#: src/Resources.vala:227 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 +#: ui/faces.ui:314 ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 +#: ui/tags.ui:314 msgid "_Unrated" msgstr "_Nav vērtēts" -#: src/Resources.vala:258 +#: src/Resources.vala:228 msgid "Unrated" msgstr "Nav vērtēts" -#: src/Resources.vala:259 +#: src/Resources.vala:229 msgid "Rate Unrated" msgstr "Vērtējums nevērtēts" -#: src/Resources.vala:260 +#: src/Resources.vala:230 msgid "Setting as unrated" msgstr "Iestata kā nevērtētu" -#: src/Resources.vala:261 +#: src/Resources.vala:231 msgid "Remove any ratings" msgstr "Noņem jebkuru vērtējumu" -#: src/Resources.vala:263 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 -#: ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 ui/tags.ui:319 +#: src/Resources.vala:233 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 +#: ui/faces.ui:319 ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 +#: ui/tags.ui:319 msgid "_Rejected" msgstr "No_raidīts" -#: src/Resources.vala:264 +#: src/Resources.vala:234 msgid "Rejected" msgstr "Noraidīts" -#: src/Resources.vala:265 +#: src/Resources.vala:235 msgid "Rate Rejected" msgstr "Vērtējums noraidīts" -#: src/Resources.vala:266 +#: src/Resources.vala:236 msgid "Setting as rejected" msgstr "Iestata kā noraidītu" -#: src/Resources.vala:267 +#: src/Resources.vala:237 msgid "Set rating to rejected" msgstr "Iestatīt vērtējumu uz “noraidīts”" -#: src/Resources.vala:269 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 -#: ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 ui/trash.ui:162 +#: src/Resources.vala:239 ui/event.ui:196 ui/faces.ui:196 ui/import.ui:156 +#: ui/media.ui:196 ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 +#: ui/trash.ui:162 msgid "Rejected _Only" msgstr "Tikai n_oraidītās" -#: src/Resources.vala:270 +#: src/Resources.vala:240 msgid "Rejected Only" msgstr "Tikai noraidītās" -#: src/Resources.vala:271 +#: src/Resources.vala:241 msgid "Show only rejected photos" msgstr "Rādīt tikai noraidītās fotogrāfijas" -#: src/Resources.vala:273 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 -#: ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 ui/trash.ui:156 +#: src/Resources.vala:243 ui/event.ui:190 ui/faces.ui:190 ui/import.ui:150 +#: ui/media.ui:190 ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 +#: ui/trash.ui:156 msgid "All + _Rejected" msgstr "Visas un no_raidītās" -#: src/Resources.vala:274 +#: src/Resources.vala:244 msgctxt "Tooltip" msgid "Show all photos, including rejected" msgstr "Rādīt visas fotogrāfijas, tai skaita noraidītās" -#: src/Resources.vala:276 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 -#: ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 ui/trash.ui:150 +#: src/Resources.vala:246 ui/event.ui:184 ui/faces.ui:184 ui/import.ui:144 +#: ui/media.ui:184 ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 +#: ui/trash.ui:150 msgid "_All Photos" msgstr "Vis_as fotogrāfijas" #. Button tooltip -#: src/Resources.vala:278 +#: src/Resources.vala:248 msgid "Show all photos" msgstr "Rādīt visas fotogrāfijas" -#: src/Resources.vala:280 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 -#: ui/tags.ui:144 +#: src/Resources.vala:250 ui/event.ui:144 ui/faces.ui:144 ui/media.ui:144 +#: ui/photo.ui:120 ui/tags.ui:144 msgid "_Ratings" msgstr "Vē_rtējumi" -#: src/Resources.vala:281 +#: src/Resources.vala:251 msgid "Display each photo’s rating" msgstr "Rādīt katras fotogrāfijas vērtējumu" -#: src/Resources.vala:283 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 -#: ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 +#: src/Resources.vala:253 ui/event.ui:151 ui/faces.ui:151 ui/import.ui:111 +#: ui/media.ui:151 ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 msgid "_Filter Photos" msgstr "_Filtrēt fotogrāfijas" -#: src/Resources.vala:284 +#: src/Resources.vala:254 msgid "Filter Photos" msgstr "Filtrēt fotogrāfijas" -#: src/Resources.vala:285 +#: src/Resources.vala:255 msgid "Limit the number of photos displayed based on a filter" msgstr "Ierobežot fotogrāfiju skaitu, ko rādīt pēc filtrēšanas" -#: src/Resources.vala:288 +#: src/Resources.vala:258 msgid "Duplicate" msgstr "Dublēt" -#: src/Resources.vala:289 +#: src/Resources.vala:259 msgid "Make a duplicate of the photo" msgstr "Izveidot fotogrāfijas dublikātu" -#: src/Resources.vala:291 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 -#: ui/tags.ui:17 +#: src/Resources.vala:261 ui/event.ui:17 ui/faces.ui:17 ui/media.ui:17 +#: ui/photo.ui:17 ui/tags.ui:17 msgid "_Export…" msgstr "_Eksportēt…" -#: src/Resources.vala:293 +#: src/Resources.vala:263 msgid "_Print…" msgstr "_Drukāt…" -#: src/Resources.vala:295 +#: src/Resources.vala:265 msgid "Pu_blish…" msgstr "Pu_blicēt…" -#: src/Resources.vala:297 ui/collection.ui:189 +#: src/Resources.vala:267 ui/collection.ui:189 msgid "Publish to various websites" msgstr "Publicēt uz dažādām tīmekļa vietnēm" -#: src/Resources.vala:299 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 -#: ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 ui/tags.ui:340 +#: src/Resources.vala:269 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 +#: ui/faces.ui:340 ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 +#: ui/tags.ui:340 msgid "Edit _Title…" msgstr "Rediģēt _nosaukumu…" #. Button label -#: src/Resources.vala:301 +#: src/Resources.vala:271 msgctxt "Button Label" msgid "Edit Title" msgstr "Rediģēt nosaukumu" -#: src/Resources.vala:303 ui/collection.ui:103 ui/events_directory.ui:144 +#: src/Resources.vala:273 ui/collection.ui:103 ui/events_directory.ui:144 #: ui/events_directory.ui:186 ui/event.ui:345 ui/event.ui:398 ui/event.ui:542 -#: ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 ui/tags.ui:345 +#: ui/faces.ui:345 ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 +#: ui/tags.ui:345 msgid "Edit _Comment…" msgstr "Rediģēt _komentāru…" #. Button label -#: src/Resources.vala:305 +#: src/Resources.vala:275 msgid "Edit Comment" msgstr "Rediģēt komentāru" -#: src/Resources.vala:307 ui/event.ui:592 +#: src/Resources.vala:277 ui/event.ui:592 msgid "Edit Event _Comment…" msgstr "Rediģēt notikuma _komentāru…" -#: src/Resources.vala:310 ui/direct.ui:167 ui/photo.ui:337 +#: src/Resources.vala:280 ui/direct.ui:167 ui/photo.ui:337 msgid "_Adjust Date and Time…" msgstr "_Pielāgot datumu un laiku…" -#: src/Resources.vala:311 +#: src/Resources.vala:281 msgid "Adjust Date and Time" msgstr "Pielāgot datumu un laiku" -#: src/Resources.vala:313 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 -#: ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 +#: src/Resources.vala:283 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 +#: ui/faces.ui:390 ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 msgid "Add _Tags…" msgstr "Pievienot _tagus…" -#: src/Resources.vala:314 ui/photo_context.ui:17 +#: src/Resources.vala:284 ui/photo_context.ui:17 msgid "_Add Tags…" msgstr "Pievienot _tagus…" #. Dialog title -#: src/Resources.vala:316 +#: src/Resources.vala:286 msgctxt "Dialog Title" msgid "Add Tags" msgstr "Pievienot tagus" -#: src/Resources.vala:325 ui/photo_context.ui:135 +#: src/Resources.vala:295 ui/photo_context.ui:135 msgid "Send T_o…" msgstr "Sūtīt _uz…" -#: src/Resources.vala:327 +#: src/Resources.vala:297 msgid "_Find…" msgstr "_Meklēt…" -#: src/Resources.vala:328 ui/collection.ui:217 ui/offline.ui:239 +#: src/Resources.vala:298 ui/collection.ui:217 ui/offline.ui:239 #: ui/trash.ui:312 msgid "Find" msgstr "Meklēt" -#: src/Resources.vala:329 ui/collection.ui:214 ui/offline.ui:236 +#: src/Resources.vala:299 ui/collection.ui:214 ui/offline.ui:236 #: ui/trash.ui:309 msgid "Find an image by typing text that appears in its name or tags" msgstr "Meklēt attēlu, ierakstot tekstu, kas parādās tā nosaukumā vai tagos" -#: src/Resources.vala:331 +#: src/Resources.vala:301 msgid "_Flag" msgstr "_Marķēt" -#: src/Resources.vala:333 +#: src/Resources.vala:303 msgid "Un_flag" msgstr "Noņemt _marķējumu" -#: src/Resources.vala:336 +#: src/Resources.vala:307 +#| msgid "Make a duplicate of the photo" +msgid "Mark faces of people in the photo" +msgstr "Fotogrāfijā atzīmēt cilvēku sejas" + +#: src/Resources.vala:308 +#| msgid "Modify Tags" +msgid "Modify Faces" +msgstr "Modificēt sejas" + +#: src/Resources.vala:309 +#| msgid "Delete Tag" +msgid "Delete Face" +msgstr "Dzēst seju" + +#: src/Resources.vala:311 src/Resources.vala:353 ui/tags.ui:456 +msgid "_Rename…" +msgstr "Pā_rdēvēt…" + +#: src/Resources.vala:315 #, c-format msgid "Unable to launch editor: %s" msgstr "Nevar palaist redaktoru — %s" -#: src/Resources.vala:341 +#: src/Resources.vala:320 #, c-format msgid "Add Tag “%s”" msgstr "Pievienot tagu “%s”" #. Used when adding two tags to photo(s) -#: src/Resources.vala:344 +#: src/Resources.vala:323 #, c-format msgid "Add Tags “%s” and “%s”" msgstr "Pievienot tagus “%s” un “%s”" #. Undo/Redo command name (in Edit menu) -#: src/Resources.vala:349 +#: src/Resources.vala:328 msgctxt "UndoRedo menu entry" msgid "Add Tags" msgstr "Pievienot tagus" -#: src/Resources.vala:354 +#: src/Resources.vala:333 #, c-format msgid "_Delete Tag “%s”" msgstr "_Dzēst tagu “%s”" -#: src/Resources.vala:358 +#: src/Resources.vala:337 #, c-format msgid "Delete Tag “%s”" msgstr "Dzēst tagu “%s”" -#: src/Resources.vala:361 +#: src/Resources.vala:340 msgid "Delete Tag" msgstr "Dzēst tagu" -#: src/Resources.vala:367 +#: src/Resources.vala:346 #, c-format msgid "Re_name Tag “%s”…" msgstr "_Pārdēvēt tagu “%s”…" -#: src/Resources.vala:371 +#: src/Resources.vala:350 #, c-format msgid "Rename Tag “%s” to “%s”" msgstr "Pārdēvēt tagu “%s” uz “%s”" -#: src/Resources.vala:374 ui/tags.ui:456 -msgid "_Rename…" -msgstr "Pā_rdēvēt…" - -#: src/Resources.vala:376 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 -#: ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 ui/tags.ui:395 +#: src/Resources.vala:355 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 +#: ui/faces.ui:395 ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 +#: ui/tags.ui:395 msgid "Modif_y Tags…" msgstr "Mod_ificēt tagus…" -#: src/Resources.vala:377 +#: src/Resources.vala:356 msgid "Modify Tags" msgstr "Modificēt tagus" -#: src/Resources.vala:380 +#: src/Resources.vala:359 #, c-format -#| msgid "Tag Photo as “%s”" msgid "Tag Photo as “%s”" msgid_plural "Tag Photos as “%s”" msgstr[0] "Tagot fotogrāfiju kā “%s”" msgstr[1] "Tagot fotogrāfijas kā “%s”" msgstr[2] "Tagot fotogrāfijas kā “%s”" -#: src/Resources.vala:386 +#: src/Resources.vala:365 #, c-format -#| msgid "Tag the selected photo as “%s”" msgid "Tag the selected photo as “%s”" msgid_plural "Tag the selected photos as “%s”" msgstr[0] "Tagot izvēlēto fotogrāfiju kā “%s”" msgstr[1] "Tagot izvēlētās fotogrāfijas kā “%s”" msgstr[2] "Tagot izvēlētās fotogrāfijas kā “%s”" -#: src/Resources.vala:392 +#: src/Resources.vala:371 #, c-format -#| msgid "Remove Tag “%s” From _Photo" msgid "Remove Tag “%s” From _Photo" msgid_plural "Remove Tag “%s” From _Photos" msgstr[0] "Izņemt tagu “%s” no _fotogrāfijas" msgstr[1] "Izņemt tagu “%s” no _fotogrāfijām" msgstr[2] "Izņemt tagu “%s” no _fotogrāfijām" -#: src/Resources.vala:398 +#: src/Resources.vala:377 #, c-format -#| msgid "Remove Tag “%s” From Photo" msgid "Remove Tag “%s” From Photo" msgid_plural "Remove Tag “%s” From Photos" msgstr[0] "Izņemt tagu “%s” no fotogrāfijas" msgstr[1] "Izņemt tagu “%s” no fotogrāfijām" msgstr[2] "Izņemt tagu “%s” no fotogrāfijām" -#: src/Resources.vala:404 +#: src/Resources.vala:383 #, c-format msgid "Unable to rename tag to “%s” because the tag already exists." msgstr "Tagu “%s” nevar pārdēvēt, jo tāds tags jau eksistē." -#: src/Resources.vala:408 +#: src/Resources.vala:387 #, c-format msgid "Unable to rename search to “%s” because the search already exists." msgstr "Nevar pārdēvēt meklēšanu uz “%s”, jo tāda jau eksistē." #. Saved search button -#: src/Resources.vala:411 src/SearchFilter.vala:1120 +#: src/Resources.vala:390 src/SearchFilter.vala:1146 msgid "Saved Search" msgstr "Saglabātais meklējums" -#: src/Resources.vala:413 +#: src/Resources.vala:392 msgid "Delete Search" msgstr "Dzēst meklēšanu" -#: src/Resources.vala:416 ui/savedsearch.ui:10 +#: src/Resources.vala:395 ui/savedsearch.ui:10 msgid "_Edit…" msgstr "R_ediģēt…" -#: src/Resources.vala:417 ui/savedsearch.ui:6 +#: src/Resources.vala:396 ui/savedsearch.ui:6 msgid "Re_name…" msgstr "_Pārdēvēt…" -#: src/Resources.vala:420 +#: src/Resources.vala:399 #, c-format msgid "Rename Search “%s” to “%s”" msgstr "Pārdēvēt meklēšanu “%s” uz “%s”" -#: src/Resources.vala:424 +#: src/Resources.vala:403 #, c-format msgid "Delete Search “%s”" msgstr "Dzēst meklēšanu “%s”" -#: src/Resources.vala:561 +#: src/Resources.vala:408 +#, c-format +#| msgid "Unable to rename tag to “%s” because the tag already exists." +msgid "Unable to rename face to “%s” because the face already exists." +msgstr "Seju “%s” nevar pārdēvēt, jo tāda seja jau eksistē." + +#: src/Resources.vala:412 +#, c-format +#| msgid "Remove Tag “%s” From _Photo" +#| msgid_plural "Remove Tag “%s” From _Photos" +msgid "Remove Face “%s” From _Photo" +msgid_plural "Remove Face “%s” From _Photos" +msgstr[0] "Izņemt seju “%s” no _fotogrāfijas" +msgstr[1] "Izņemt seju “%s” no _fotogrāfijām" +msgstr[2] "Izņemt seju “%s” no _fotogrāfijām" + +#: src/Resources.vala:417 +#, c-format +#| msgid "Remove Tag “%s” From Photo" +#| msgid_plural "Remove Tag “%s” From Photos" +msgid "Remove Face “%s” From Photo" +msgid_plural "Remove Face “%s” From Photos" +msgstr[0] "Izņemt seju “%s” no fotogrāfijas" +msgstr[1] "Izņemt seju “%s” no fotogrāfijām" +msgstr[2] "Izņemt seju “%s” no fotogrāfijām" + +#: src/Resources.vala:422 +#, c-format +#| msgid "Re_name Tag “%s”…" +msgid "Re_name Face “%s”…" +msgstr "_Pārdēvēt seju “%s”…" + +#: src/Resources.vala:426 +#, c-format +#| msgid "Rename Tag “%s” to “%s”" +msgid "Rename Face “%s” to “%s”" +msgstr "Pārdēvēt seju “%s” uz “%s”" + +#: src/Resources.vala:430 +#, c-format +#| msgid "_Delete Tag “%s”" +msgid "_Delete Face “%s”" +msgstr "_Dzēst seju “%s”" + +#: src/Resources.vala:434 +#, c-format +#| msgid "Delete Tag “%s”" +msgid "Delete Face “%s”" +msgstr "Dzēst seju “%s”" + +#: src/Resources.vala:664 #, c-format msgid "Rate %s" msgstr "Vērtēt %s" -#: src/Resources.vala:562 +#: src/Resources.vala:665 #, c-format msgid "Set rating to %s" msgstr "Iestatīt vērtējumu uz %s" -#: src/Resources.vala:563 +#: src/Resources.vala:666 #, c-format msgid "Setting rating to %s" msgstr "Iestata vērtējumu uz %s" -#: src/Resources.vala:565 +#: src/Resources.vala:668 #, c-format msgid "Display %s" msgstr "Rādīt %s" -#: src/Resources.vala:566 +#: src/Resources.vala:669 #, c-format msgid "Only show photos with a rating of %s" msgstr "Rādīt tikai bildes ar vērtējumu %s" -#: src/Resources.vala:567 +#: src/Resources.vala:670 #, c-format msgid "%s or Better" msgstr "%s vai labāka" -#: src/Resources.vala:568 +#: src/Resources.vala:671 #, c-format msgid "Display %s or Better" msgstr "Rādīt %s vai labākas" -#: src/Resources.vala:569 +#: src/Resources.vala:672 #, c-format msgid "Only show photos with a rating of %s or better" msgstr "Rādīt tikai bildes ar vērtējumu %s vai labāku" -#: src/Resources.vala:660 ui/trash.ui:255 +#: src/Resources.vala:763 ui/trash.ui:255 msgid "Remove the selected photos from the trash" msgstr "Izņemt izvēlētās fotogrāfijas no miskastes" -#: src/Resources.vala:661 ui/offline.ui:221 +#: src/Resources.vala:764 ui/offline.ui:221 msgid "Remove the selected photos from the library" msgstr "Izņemt izvēlētās fotogrāfijas no bibliotēkas" -#: src/Resources.vala:663 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 +#: src/Resources.vala:766 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 msgid "_Restore" msgstr "_Atjaunot" -#: src/Resources.vala:664 ui/trash.ui:270 +#: src/Resources.vala:767 ui/trash.ui:270 msgid "Move the selected photos back into the library" msgstr "Pārvietot izvēlētās fotogrāfijas atpakaļ bibliotēkā" -#: src/Resources.vala:666 ui/collection.ui:123 ui/direct_context.ui:18 -#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/media.ui:27 +#: src/Resources.vala:769 ui/collection.ui:123 ui/direct_context.ui:18 +#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/faces.ui:27 ui/media.ui:27 #: ui/photo_context.ui:130 ui/photo.ui:35 ui/tags.ui:27 ui/trash.ui:19 #: ui/trash.ui:227 msgid "Show in File Mana_ger" msgstr "Rādīt datņu _pārvaldniekā" -#: src/Resources.vala:667 +#: src/Resources.vala:770 msgid "Open the selected photo’s directory in the file manager" msgstr "Atvērt izvēlētās fotogrāfijas mapi datņu pārvaldniekā" -#: src/Resources.vala:670 +#: src/Resources.vala:773 #, c-format msgid "Unable to open in file manager: %s" msgstr "Neizdevās atvērt datņu pārvaldniekā — %s" -#: src/Resources.vala:673 ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 -#: ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 ui/tags.ui:74 +#: src/Resources.vala:776 ui/event.ui:74 ui/faces.ui:74 ui/media.ui:74 +#: ui/offline.ui:58 ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 +#: ui/tags.ui:74 msgid "R_emove From Library" msgstr "Izņ_emt no bibliotēkas" -#: src/Resources.vala:675 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 -#: ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 ui/tags.ui:79 +#: src/Resources.vala:778 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 +#: ui/faces.ui:79 ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 +#: ui/tags.ui:79 msgid "_Move to Trash" msgstr "Pārvietot uz _miskasti" -#: src/Resources.vala:677 ui/events_directory.ui:58 ui/event.ui:86 -#: ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 ui/trash.ui:74 +#: src/Resources.vala:780 ui/events_directory.ui:58 ui/event.ui:86 +#: ui/faces.ui:86 ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 +#: ui/trash.ui:74 msgid "Select _All" msgstr "Izvēlēties vis_as" -#: src/Resources.vala:678 +#: src/Resources.vala:781 msgid "Select all items" msgstr "Izvēlēties visus vienumus" @@ -5695,14 +5831,14 @@ msgstr "Izvēlēties visus vienumus" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format #. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:739 +#: src/Resources.vala:842 msgid "%a %b %d, %Y" msgstr "%a %b %d, %Y" #. / Locale-specific starting date format for multi-date strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:744 +#: src/Resources.vala:847 msgctxt "MultidayFormat" msgid "%a %b %d" msgstr "%a %b %d" @@ -5710,7 +5846,7 @@ msgstr "%a %b %d" #. / Locale-specific ending date format for multi-date strings, #. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:749 +#: src/Resources.vala:852 msgctxt "MultidayFormat" msgid "%d, %Y" msgstr "%d, %Y" @@ -5718,7 +5854,7 @@ msgstr "%d, %Y" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:754 +#: src/Resources.vala:857 msgctxt "MultimonthFormat" msgid "%a %b %d" msgstr "%a %b %d" @@ -5726,170 +5862,174 @@ msgstr "%a %b %d" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:759 +#: src/Resources.vala:862 msgctxt "MultimonthFormat" msgid "%a %b %d, %Y" msgstr "%a %b %d, %Y" -#: src/Screensaver.vala:18 src/SlideshowPage.vala:115 +#: src/Screensaver.vala:18 src/SlideshowPage.vala:117 msgid "Slideshow" msgstr "Slaidrāde" #. Ordering must correspond with SearchConditionText.Context -#: src/searches/SavedSearchDialog.vala:167 +#: src/searches/SavedSearchDialog.vala:170 msgid "contains" msgstr "satur" #. Ordering must correspond with Context -#: src/searches/SavedSearchDialog.vala:168 -#: src/searches/SavedSearchDialog.vala:499 +#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:502 msgid "is exactly" msgstr "ir tieši" -#: src/searches/SavedSearchDialog.vala:169 +#: src/searches/SavedSearchDialog.vala:172 msgid "starts with" msgstr "sākas ar" -#: src/searches/SavedSearchDialog.vala:170 +#: src/searches/SavedSearchDialog.vala:173 msgid "ends with" msgstr "beidzas ar" -#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:174 msgid "does not contain" msgstr "nesatur" -#: src/searches/SavedSearchDialog.vala:172 -#: src/searches/SavedSearchDialog.vala:503 +#: src/searches/SavedSearchDialog.vala:175 +#: src/searches/SavedSearchDialog.vala:506 msgid "is not set" msgstr "nav iestatīts" -#: src/searches/SavedSearchDialog.vala:173 +#: src/searches/SavedSearchDialog.vala:176 msgid "is set" msgstr "ir iestatīts" #. Ordering must correspond with SearchConditionMediaType.Context -#: src/searches/SavedSearchDialog.vala:247 -#: src/searches/SavedSearchDialog.vala:378 -#: src/searches/SavedSearchDialog.vala:443 +#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:381 +#: src/searches/SavedSearchDialog.vala:446 msgid "is" msgstr "ir" -#: src/searches/SavedSearchDialog.vala:248 +#: src/searches/SavedSearchDialog.vala:251 msgid "is not" msgstr "nav" #. Ordering must correspond with SearchConditionMediaType.MediaType -#: src/searches/SavedSearchDialog.vala:254 +#: src/searches/SavedSearchDialog.vala:257 msgid "any photo" msgstr "jebkura fotogrāfija" -#: src/searches/SavedSearchDialog.vala:255 +#: src/searches/SavedSearchDialog.vala:258 msgid "a raw photo" msgstr "raw fotogrāfija" -#: src/searches/SavedSearchDialog.vala:256 +#: src/searches/SavedSearchDialog.vala:259 msgid "a video" msgstr "video" -#: src/searches/SavedSearchDialog.vala:310 +#: src/searches/SavedSearchDialog.vala:313 msgid "has" msgstr "ir" -#: src/searches/SavedSearchDialog.vala:311 +#: src/searches/SavedSearchDialog.vala:314 msgid "has no" msgstr "nav" -#: src/searches/SavedSearchDialog.vala:316 +#: src/searches/SavedSearchDialog.vala:319 msgid "modifications" msgstr "modifikācijas" -#: src/searches/SavedSearchDialog.vala:317 +#: src/searches/SavedSearchDialog.vala:320 msgid "internal modifications" msgstr "iekšējās modifikācijas" -#: src/searches/SavedSearchDialog.vala:318 +#: src/searches/SavedSearchDialog.vala:321 msgid "external modifications" msgstr "ārējās modifikācijas" #. Ordering must correspond with SearchConditionFlagged.State -#: src/searches/SavedSearchDialog.vala:372 +#: src/searches/SavedSearchDialog.vala:375 msgid "flagged" msgstr "atzīmēts" -#: src/searches/SavedSearchDialog.vala:373 +#: src/searches/SavedSearchDialog.vala:376 msgid "not flagged" msgstr "neatzīmēts" -#: src/searches/SavedSearchDialog.vala:436 +#: src/searches/SavedSearchDialog.vala:439 msgid "and higher" msgstr "un vairāk" -#: src/searches/SavedSearchDialog.vala:437 +#: src/searches/SavedSearchDialog.vala:440 msgid "only" msgstr "tikai " -#: src/searches/SavedSearchDialog.vala:438 +#: src/searches/SavedSearchDialog.vala:441 msgid "and lower" msgstr "un mazāk" -#: src/searches/SavedSearchDialog.vala:500 +#: src/searches/SavedSearchDialog.vala:503 msgid "is after" msgstr "ir pēc" -#: src/searches/SavedSearchDialog.vala:501 +#: src/searches/SavedSearchDialog.vala:504 msgid "is before" msgstr "ir pirms" -#: src/searches/SavedSearchDialog.vala:502 +#: src/searches/SavedSearchDialog.vala:505 msgid "is between" msgstr "ir starp" -#: src/searches/SavedSearchDialog.vala:515 +#: src/searches/SavedSearchDialog.vala:518 msgid "and" msgstr "un" -#: src/searches/SearchBoolean.vala:157 +#: src/searches/SearchBoolean.vala:169 msgid "Any text" msgstr "Jebkurš teksts" -#: src/searches/SearchBoolean.vala:160 +#: src/searches/SearchBoolean.vala:172 msgid "Title" msgstr "Virsraksts" -#: src/searches/SearchBoolean.vala:163 +#: src/searches/SearchBoolean.vala:175 msgid "Tag" msgstr "Tags" -#: src/searches/SearchBoolean.vala:166 +#: src/searches/SearchBoolean.vala:178 msgid "Comment" msgstr "Komentārs" -#: src/searches/SearchBoolean.vala:169 +#: src/searches/SearchBoolean.vala:181 msgid "Event name" msgstr "Notikuma nosaukums" -#: src/searches/SearchBoolean.vala:172 +#: src/searches/SearchBoolean.vala:184 msgid "File name" msgstr "Datnes nosaukums" -#: src/searches/SearchBoolean.vala:175 +#: src/searches/SearchBoolean.vala:187 +msgid "Face" +msgstr "Seja" + +#: src/searches/SearchBoolean.vala:190 msgid "Media type" msgstr "Datu nesēja veids" -#: src/searches/SearchBoolean.vala:178 +#: src/searches/SearchBoolean.vala:193 msgid "Flag state" msgstr "Atzīmes stāvoklis" -#: src/searches/SearchBoolean.vala:181 +#: src/searches/SearchBoolean.vala:196 msgid "Photo state" msgstr "Fotogrāfijas stāvoklis" -#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:827 -#: src/SearchFilter.vala:1110 +#: src/searches/SearchBoolean.vala:199 src/SearchFilter.vala:853 +#: src/SearchFilter.vala:1136 msgid "Rating" msgstr "Vērtējums" -#: src/searches/SearchBoolean.vala:187 +#: src/searches/SearchBoolean.vala:202 msgid "Date" msgstr "Datums" @@ -5898,35 +6038,31 @@ msgid "Saved Searches" msgstr "Saglabātās meklēšanas" #: src/searches/SearchesBranch.vala:68 -#| msgid "Organize your photos" msgid "Organize your saved searches" msgstr "Organizēt saglabātās meklēšanas" -#: src/SearchFilter.vala:811 -#| msgid "Rating" +#: src/SearchFilter.vala:837 msgid "★+ Rating" msgstr "★+ vērtējums" -#: src/SearchFilter.vala:814 -#| msgid "Rating" +#: src/SearchFilter.vala:840 msgid "★★+ Rating" msgstr "★★+ vērtējums" -#: src/SearchFilter.vala:817 +#: src/SearchFilter.vala:843 msgid "★★★+ Rating" msgstr "★★★+ vērtējums" -#: src/SearchFilter.vala:820 +#: src/SearchFilter.vala:846 msgid "★★★★+ Rating" msgstr "★★★★+ vērtējums" -#: src/SearchFilter.vala:824 +#: src/SearchFilter.vala:850 msgid "★★★★★+ Rating" msgstr "★★★★★+ vērtējums" -#: src/SearchFilter.vala:1060 +#: src/SearchFilter.vala:1086 #, c-format -#| msgid "Error loading UI file %s: %s" msgid "Error loading search bar UI: %s" msgstr "Kļūda, ielādējot meklēšanas joslas saskarni — %s" @@ -5935,71 +6071,71 @@ msgstr "Kļūda, ielādējot meklēšanas joslas saskarni — %s" #. Prepare the close menu for use, but don't #. display it yet; we'll connect it to secondary #. click later on. -#: src/SearchFilter.vala:1069 +#: src/SearchFilter.vala:1095 msgid "Close" msgstr "Aizvērt" #. Type label and toggles -#: src/SearchFilter.vala:1075 +#: src/SearchFilter.vala:1101 msgid "Type" msgstr "Tips" -#: src/SearchFilter.vala:1082 +#: src/SearchFilter.vala:1108 msgid "Videos" msgstr "Video" -#: src/SearchFilter.vala:1085 +#: src/SearchFilter.vala:1111 msgid "RAW Photos" msgstr "RAW fotogrāfijas" -#: src/SearchFilter.vala:1121 +#: src/SearchFilter.vala:1147 msgid "Use a saved search to filter items in the current view" msgstr "Izmantot saglabātu meklējumu, lai filtrētu vienumus šajā skatā" #. Set up toolbar #. add toolbar buttons -#: src/SlideshowPage.vala:134 +#: src/SlideshowPage.vala:136 msgid "Back" msgstr "Atpakaļ" -#: src/SlideshowPage.vala:136 +#: src/SlideshowPage.vala:138 msgid "Go to the previous photo" msgstr "Doties uz iepriekšējo fotogrāfiju" -#: src/SlideshowPage.vala:141 src/SlideshowPage.vala:248 +#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:250 msgid "Pause" msgstr "Pauzēt" -#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:249 +#: src/SlideshowPage.vala:145 src/SlideshowPage.vala:251 msgid "Pause the slideshow" msgstr "Pauzēt slaidrādi" -#: src/SlideshowPage.vala:148 +#: src/SlideshowPage.vala:150 msgid "Next" msgstr "Nākamais" -#: src/SlideshowPage.vala:150 +#: src/SlideshowPage.vala:152 msgid "Go to the next photo" msgstr "Doties uz nākamo fotogrāfiju" -#: src/SlideshowPage.vala:157 ui/slideshow_settings.ui:21 +#: src/SlideshowPage.vala:159 ui/slideshow_settings.ui:21 msgid "Settings" msgstr "Iestatījumi" -#: src/SlideshowPage.vala:158 +#: src/SlideshowPage.vala:160 msgid "Change slideshow settings" msgstr "Izmainīt slaidrādes iestatījumus" #. An entire slideshow set might be missing, so check for a loop. -#: src/SlideshowPage.vala:212 +#: src/SlideshowPage.vala:214 msgid "All photo source files are missing." msgstr "Trūkst visas fotogrāfiju avotu datnes." -#: src/SlideshowPage.vala:244 +#: src/SlideshowPage.vala:246 msgid "Play" msgstr "Rādīt" -#: src/SlideshowPage.vala:245 +#: src/SlideshowPage.vala:247 msgid "Continue the slideshow" msgstr "Turpināt slaidrādi" @@ -6011,7 +6147,7 @@ msgstr "Slaidrādes pārejas" msgid "(None)" msgstr "(Nekādas)" -#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:485 +#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:414 msgid "None" msgstr "Nekādas" @@ -6024,7 +6160,6 @@ msgid "Tags" msgstr "Tagi" #: src/tags/TagsBranch.vala:131 -#| msgid "Organize your photos" msgid "Organize and browse your photo’s tags" msgstr "Organizē un pārlūko savu fotogrāfiju tagus" @@ -6037,24 +6172,24 @@ msgstr "nenosaukts" msgid "Export Videos" msgstr "Eksportēt video" -#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/media.ui:281 -#: ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 +#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/faces.ui:281 +#: ui/media.ui:281 ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 msgid "Toggle _Flag" msgstr "Pārslēgt _atzīmi" -#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/media.ui:353 -#: ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 +#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/faces.ui:353 +#: ui/media.ui:353 ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 msgid "_Developer" msgstr "_Attīstītājs" -#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/media.ui:381 -#: ui/photo_context.ui:126 ui/tags.ui:381 +#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/faces.ui:381 +#: ui/media.ui:381 ui/photo_context.ui:126 ui/tags.ui:381 msgid "View Eve_nt for Photo" msgstr "Skatīt fotogrāfijas _notikumu" -#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/import_queue.ui:5 -#: ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 ui/photo.ui:5 ui/tags.ui:5 -#: ui/trash.ui:5 +#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/faces.ui:5 +#: ui/import_queue.ui:5 ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 +#: ui/photo.ui:5 ui/tags.ui:5 ui/trash.ui:5 msgid "_File" msgstr "_Datne" @@ -6062,7 +6197,7 @@ msgstr "_Datne" msgid "Save _As…" msgstr "S_aglabāt kā…" -#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 +#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 ui/faces.ui:99 #: ui/import_queue.ui:38 ui/import.ui:74 ui/media.ui:99 ui/offline.ui:78 #: ui/photo.ui:95 ui/tags.ui:99 ui/trash.ui:87 msgid "_View" @@ -6096,231 +6231,241 @@ msgstr "_Nākamā fotogrāfija" msgid "T_ools" msgstr "_Rīki" -#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 +#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 ui/faces.ui:438 #: ui/import_queue.ui:73 ui/import.ui:191 ui/media.ui:411 ui/offline.ui:188 #: ui/photo.ui:395 ui/tags.ui:430 ui/trash.ui:197 msgid "_Frequently Asked Questions" msgstr "_Biežāk uzdotie jautājumi" -#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 +#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 ui/faces.ui:442 #: ui/import_queue.ui:77 ui/import.ui:195 ui/media.ui:415 ui/offline.ui:192 #: ui/photo.ui:399 ui/tags.ui:434 ui/trash.ui:201 msgid "_Report a Problem…" msgstr "_Ziņot par problēmu…" -#: ui/events_directory.ui:8 ui/event.ui:8 ui/import_queue.ui:14 ui/import.ui:8 -#: ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 ui/trash.ui:8 +#: ui/events_directory.ui:8 ui/event.ui:8 ui/faces.ui:8 ui/import_queue.ui:14 +#: ui/import.ui:8 ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 +#: ui/trash.ui:8 msgid "_Import From Folder…" msgstr "_Importēt no mapes…" -#: ui/events_directory.ui:13 ui/event.ui:13 ui/import_queue.ui:19 -#: ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 ui/photo.ui:13 ui/tags.ui:13 -#: ui/trash.ui:13 +#: ui/events_directory.ui:13 ui/event.ui:13 ui/faces.ui:13 +#: ui/import_queue.ui:19 ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 +#: ui/photo.ui:13 ui/tags.ui:13 ui/trash.ui:13 msgid "Import From _Application…" msgstr "Importēt no _lietotnes…" -#: ui/events_directory.ui:19 ui/event.ui:34 ui/import_queue.ui:25 -#: ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 ui/photo.ui:42 ui/tags.ui:34 -#: ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 +#: ui/events_directory.ui:19 ui/event.ui:34 ui/faces.ui:34 +#: ui/import_queue.ui:25 ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 +#: ui/photo.ui:42 ui/tags.ui:34 ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 msgid "Empty T_rash" msgstr "Iztukšot _miskasti" -#: ui/events_directory.ui:47 ui/event.ui:62 ui/import.ui:55 ui/media.ui:62 -#: ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 +#: ui/events_directory.ui:47 ui/event.ui:62 ui/faces.ui:62 ui/import.ui:55 +#: ui/media.ui:62 ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 msgid "_Find" msgstr "_Meklēt" -#: ui/events_directory.ui:51 ui/event.ui:66 ui/media.ui:66 ui/offline.ui:51 -#: ui/photo.ui:70 ui/search_sidebar_context.ui:6 +#: ui/events_directory.ui:51 ui/event.ui:66 ui/faces.ui:66 ui/media.ui:66 +#: ui/offline.ui:51 ui/photo.ui:70 ui/search_sidebar_context.ui:6 #: ui/sidebar_default_context.ui:6 ui/tags.ui:66 ui/trash.ui:56 msgid "Ne_w Saved Search…" msgstr "_Jauna saglabātā meklēšana…" -#: ui/events_directory.ui:74 ui/event.ui:102 ui/import_queue.ui:41 -#: ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 ui/photo.ui:98 -#: ui/tags.ui:102 ui/trash.ui:90 +#: ui/events_directory.ui:74 ui/event.ui:102 ui/faces.ui:102 +#: ui/import_queue.ui:41 ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 +#: ui/photo.ui:98 ui/tags.ui:102 ui/trash.ui:90 msgid "_Basic Information" msgstr "_Pamatinformācija" -#: ui/events_directory.ui:79 ui/event.ui:107 ui/import.ui:82 ui/media.ui:107 -#: ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 ui/trash.ui:95 +#: ui/events_directory.ui:79 ui/event.ui:107 ui/faces.ui:107 ui/import.ui:82 +#: ui/media.ui:107 ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 +#: ui/trash.ui:95 msgid "E_xtended Information" msgstr "Pa_plašināta informācija" -#: ui/events_directory.ui:84 ui/event.ui:112 ui/import.ui:87 ui/media.ui:112 -#: ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 +#: ui/events_directory.ui:84 ui/event.ui:112 ui/faces.ui:112 ui/import.ui:87 +#: ui/media.ui:112 ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 msgid "_Search Bar" msgstr "Meklēšana_s josla" -#: ui/events_directory.ui:89 ui/event.ui:117 ui/import.ui:92 ui/media.ui:117 -#: ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 ui/trash.ui:105 +#: ui/events_directory.ui:89 ui/event.ui:117 ui/faces.ui:117 ui/import.ui:92 +#: ui/media.ui:117 ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 +#: ui/trash.ui:105 msgid "S_idebar" msgstr "Sānu _josla" -#: ui/events_directory.ui:94 ui/event.ui:122 ui/import.ui:97 ui/media.ui:122 -#: ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 ui/trash.ui:110 +#: ui/events_directory.ui:94 ui/event.ui:122 ui/faces.ui:122 ui/import.ui:97 +#: ui/media.ui:122 ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 +#: ui/trash.ui:110 msgid "T_oolbar" msgstr "Rīkj_osla" -#: ui/events_directory.ui:101 ui/event.ui:134 ui/media.ui:134 ui/tags.ui:134 +#: ui/events_directory.ui:101 ui/event.ui:134 ui/faces.ui:134 ui/media.ui:134 +#: ui/tags.ui:134 msgid "_Comments" msgstr "_Komentāri" -#: ui/events_directory.ui:108 ui/event.ui:243 ui/import_queue.ui:48 -#: ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 ui/photo.ui:127 -#: ui/tags.ui:243 ui/trash.ui:172 +#: ui/events_directory.ui:108 ui/event.ui:243 ui/faces.ui:243 +#: ui/import_queue.ui:48 ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 +#: ui/photo.ui:127 ui/tags.ui:243 ui/trash.ui:172 msgid "Sort _Events" msgstr "Kārtot _notikumus" -#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 -#: ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 ui/media.ui:246 -#: ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 ui/tags.ui:246 -#: ui/trash.ui:175 +#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 ui/faces.ui:231 +#: ui/faces.ui:246 ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 +#: ui/media.ui:246 ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 +#: ui/tags.ui:246 ui/trash.ui:175 msgid "_Ascending" msgstr "_Augošā" -#: ui/events_directory.ui:116 ui/event.ui:236 ui/import_queue.ui:56 -#: ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 ui/trash.ui:180 +#: ui/events_directory.ui:116 ui/event.ui:236 ui/faces.ui:236 +#: ui/import_queue.ui:56 ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 +#: ui/trash.ui:180 msgid "D_escending" msgstr "_Dilstošā" -#: ui/events_directory.ui:132 ui/event.ui:379 ui/media.ui:373 ui/tags.ui:373 +#: ui/events_directory.ui:132 ui/event.ui:379 ui/faces.ui:373 ui/media.ui:373 +#: ui/tags.ui:373 msgid "Even_ts" msgstr "No_tikumi" -#: ui/event.ui:129 ui/import.ui:104 ui/media.ui:129 ui/tags.ui:129 +#: ui/event.ui:129 ui/faces.ui:129 ui/import.ui:104 ui/media.ui:129 +#: ui/tags.ui:129 msgid "_Titles" msgstr "_Nosaukumi" -#: ui/event.ui:139 ui/event.ui:404 ui/media.ui:139 ui/media.ui:387 -#: ui/photo.ui:372 ui/tags.ui:139 ui/tags.ui:387 +#: ui/event.ui:139 ui/event.ui:404 ui/faces.ui:139 ui/faces.ui:387 +#: ui/media.ui:139 ui/media.ui:387 ui/photo.ui:372 ui/tags.ui:139 +#: ui/tags.ui:387 msgid "Ta_gs" msgstr "Ta_gi" -#: ui/event.ui:206 ui/media.ui:206 ui/tags.ui:206 +#: ui/event.ui:206 ui/faces.ui:206 ui/media.ui:206 ui/tags.ui:206 msgid "Sort _Photos" msgstr "Kārtot _fotogrāfijas" -#: ui/event.ui:209 ui/media.ui:209 ui/tags.ui:209 +#: ui/event.ui:209 ui/faces.ui:209 ui/media.ui:209 ui/tags.ui:209 msgid "By _Title" msgstr "Pēc _nosaukuma" -#: ui/event.ui:214 ui/media.ui:214 ui/tags.ui:214 +#: ui/event.ui:214 ui/faces.ui:214 ui/media.ui:214 ui/tags.ui:214 msgid "By _Filename" msgstr "Pēc _datņu nosaukuma" -#: ui/event.ui:219 ui/media.ui:219 ui/tags.ui:219 +#: ui/event.ui:219 ui/faces.ui:219 ui/media.ui:219 ui/tags.ui:219 msgid "By Exposure _Date" msgstr "Pēc uzņemšanas _datuma" -#: ui/event.ui:224 ui/media.ui:224 ui/tags.ui:224 +#: ui/event.ui:224 ui/faces.ui:224 ui/media.ui:224 ui/tags.ui:224 msgid "By _Rating" msgstr "Pēc vē_rtējuma" -#: ui/event.ui:251 ui/import.ui:174 ui/media.ui:251 ui/photo.ui:135 -#: ui/tags.ui:251 -#| msgid "D_escending" +#: ui/event.ui:251 ui/faces.ui:251 ui/import.ui:174 ui/media.ui:251 +#: ui/photo.ui:135 ui/tags.ui:251 msgid "_Descending" msgstr "_Dilstoši" -#: ui/event.ui:275 ui/media.ui:275 ui/tags.ui:275 +#: ui/event.ui:275 ui/faces.ui:275 ui/media.ui:275 ui/tags.ui:275 msgid "_Photos" msgstr "_Fotogrāfijas" +#: ui/faces.ui:465 +#| msgid "_Rename…" +msgid "Rename…" +msgstr "Pārdēvēt…" + #: ui/import_queue.ui:8 msgid "_Stop Import" msgstr "_Apturēt importēšanu" -#: ui/preferences_dialog.ui:65 -msgid "white" -msgstr "balts" - -#: ui/preferences_dialog.ui:92 -msgid "black" -msgstr "melns" - -#: ui/preferences_dialog.ui:123 +#: ui/preferences_dialog.ui:67 msgid "Display" msgstr "Attēlot" -#: ui/preferences_dialog.ui:160 -msgid "_Background:" -msgstr "_Fons:" - -#: ui/preferences_dialog.ui:175 +#: ui/preferences_dialog.ui:103 msgid "_Import photos to:" msgstr "_Importēt fotogrāfijas uz:" -#: ui/preferences_dialog.ui:186 +#: ui/preferences_dialog.ui:114 msgid "_Watch library directory for new files" msgstr "_Sekot līdzi jaunām datnēm manā bibliotēkā" -#: ui/preferences_dialog.ui:209 +#: ui/preferences_dialog.ui:137 msgid "Importing" msgstr "Importē" -#: ui/preferences_dialog.ui:226 +#: ui/preferences_dialog.ui:154 msgid "_Directory structure:" msgstr "_Direktoriju struktūra:" -#: ui/preferences_dialog.ui:241 +#: ui/preferences_dialog.ui:169 msgid "Example:" msgstr "Piemērs:" -#: ui/preferences_dialog.ui:250 +#: ui/preferences_dialog.ui:178 msgid "R_ename imported files to lowercase" msgstr "Pārdēvēt importētās datnes uz mazajiem burti_em" -#: ui/preferences_dialog.ui:272 +#: ui/preferences_dialog.ui:200 msgid "Metadata" msgstr "Metadati" -#: ui/preferences_dialog.ui:285 +#: ui/preferences_dialog.ui:213 msgid "Write tags, titles, and other _metadata to photo files" msgstr "Rakstīt tagus, nosaukumus un citus _metadatus fotogrāfiju datnēs" -#: ui/preferences_dialog.ui:307 +#: ui/preferences_dialog.ui:235 msgid "RAW Developer" msgstr "RAW attīstītājs" -#: ui/preferences_dialog.ui:324 +#: ui/preferences_dialog.ui:252 msgid "De_fault:" msgstr "No_klusējuma:" -#: ui/preferences_dialog.ui:378 +#: ui/preferences_dialog.ui:306 msgid "_Pattern:" msgstr "Šabl_ons:" -#: ui/preferences_dialog.ui:414 -#| msgid "_Background:" +#: ui/preferences_dialog.ui:339 +msgid "" +"When viewing images that are transparent, they will be drawn against this " +"background." +msgstr "Kad skata caurspīdīgus attēlus, tiek tiks zīmēti uz šī fona." + +#: ui/preferences_dialog.ui:343 msgid "Transparent Background:" msgstr "Caurspīdīgs fons" -#: ui/preferences_dialog.ui:428 +#: ui/preferences_dialog.ui:357 msgid "Checkered" msgstr "Rūtains" -#: ui/preferences_dialog.ui:449 +#: ui/preferences_dialog.ui:378 msgid "Solid color" msgstr "Viendabīga krāsa" -#: ui/preferences_dialog.ui:539 +#: ui/preferences_dialog.ui:441 +msgid "Use dark theme:" +msgstr "Izmantot tumšo motīvu:" + +#: ui/preferences_dialog.ui:492 msgid "E_xternal photo editor:" msgstr "Ārējais fotogrāfiju r_edaktors:" -#: ui/preferences_dialog.ui:556 +#: ui/preferences_dialog.ui:509 msgid "External _RAW editor:" msgstr "Ārējais _RAW redaktors:" -#: ui/preferences_dialog.ui:617 +#: ui/preferences_dialog.ui:570 msgid "External Editors" msgstr "Ārējie redaktori" -#: ui/preferences_dialog.ui:642 +#: ui/preferences_dialog.ui:595 msgid "Plugins" msgstr "Spraudņi" -#: ui/preferences_dialog.ui:668 +#: ui/preferences_dialog.ui:621 msgid "Shotwell Preferences" msgstr "Shotwell iestatījumi" @@ -6446,23 +6591,23 @@ msgstr "Cik ilgi katra fotogrāfija tiek rādīta uz darbvirsmas fona" msgid "New _Tag…" msgstr "Jauns _tags…" -#: ui/slideshow_settings.ui:91 +#: ui/slideshow_settings.ui:98 msgid "_Delay:" msgstr "Ai_zture:" -#: ui/slideshow_settings.ui:105 +#: ui/slideshow_settings.ui:112 msgid "_Transition effect:" msgstr "Pārejas efek_ti:" -#: ui/slideshow_settings.ui:119 +#: ui/slideshow_settings.ui:126 msgid "Transition d_elay:" msgstr "Pār_ejas aizture:" -#: ui/slideshow_settings.ui:129 +#: ui/slideshow_settings.ui:136 msgid "Show t_itle" msgstr "Rādīt v_irsrakstu" -#: ui/slideshow_settings.ui:212 ui/slideshow_settings.ui:223 +#: ui/slideshow_settings.ui:219 ui/slideshow_settings.ui:230 msgid "seconds" msgstr "sekundes" @@ -6474,6 +6619,24 @@ msgstr "etiķete" msgid "Delete all photos in the trash" msgstr "Dzēst visas fotogrāfijas no miskastes" +#~ msgid "background color" +#~ msgstr "fona krāsa" + +#~ msgid "A grayscale color for use as the background color." +#~ msgstr "Pelēktoņu krāsa, ko izmantot kā fona krāsu." + +#~ msgid "Extended Information" +#~ msgstr "Paplašināta informācija" + +#~ msgid "white" +#~ msgstr "balts" + +#~ msgid "black" +#~ msgstr "melns" + +#~ msgid "_Background:" +#~ msgstr "_Fons:" + #~ msgid "" #~ "Welcome to the F-Spot library import service.\n" #~ "\n" diff --git a/po/mk.gmo b/po/mk.gmo deleted file mode 100644 index fbcd2f5..0000000 Binary files a/po/mk.gmo and /dev/null differ diff --git a/po/ml.gmo b/po/ml.gmo deleted file mode 100644 index cb887f8..0000000 Binary files a/po/ml.gmo and /dev/null differ diff --git a/po/mr.gmo b/po/mr.gmo deleted file mode 100644 index 2746ed6..0000000 Binary files a/po/mr.gmo and /dev/null differ diff --git a/po/nb.gmo b/po/nb.gmo deleted file mode 100644 index d028719..0000000 Binary files a/po/nb.gmo and /dev/null differ diff --git a/po/nl.gmo b/po/nl.gmo deleted file mode 100644 index d502a61..0000000 Binary files a/po/nl.gmo and /dev/null differ diff --git a/po/nn.gmo b/po/nn.gmo deleted file mode 100644 index e5e882b..0000000 Binary files a/po/nn.gmo and /dev/null differ diff --git a/po/oc.gmo b/po/oc.gmo deleted file mode 100644 index e23abf2..0000000 Binary files a/po/oc.gmo and /dev/null differ diff --git a/po/or.gmo b/po/or.gmo deleted file mode 100644 index 1a82adf..0000000 Binary files a/po/or.gmo and /dev/null differ diff --git a/po/pa.gmo b/po/pa.gmo deleted file mode 100644 index 88cace0..0000000 Binary files a/po/pa.gmo and /dev/null differ diff --git a/po/pl.gmo b/po/pl.gmo deleted file mode 100644 index 7612591..0000000 Binary files a/po/pl.gmo and /dev/null differ diff --git a/po/pl.po b/po/pl.po index 4881464..fa5dc49 100644 --- a/po/pl.po +++ b/po/pl.po @@ -9,10 +9,9 @@ msgid "" msgstr "" "Project-Id-Version: shotwell\n" -"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" -"product=shotwell&keywords=I18N+L10N&component=Internationalization\n" -"POT-Creation-Date: 2018-05-06 13:12+0000\n" -"PO-Revision-Date: 2018-05-06 18:57+0200\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/shotwell/issues\n" +"POT-Creation-Date: 2018-06-03 05:50+0000\n" +"PO-Revision-Date: 2018-06-03 14:40+0200\n" "Last-Translator: Piotr Drąg \n" "Language-Team: Polish \n" "Language: pl\n" @@ -25,8 +24,8 @@ msgstr "" #: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in:4 #: plugins/shotwell-publishing-extras/GalleryConnector.vala:115 #: src/photos/RawSupport.vala:308 ui/collection.ui:85 ui/event.ui:356 -#: ui/event.ui:524 ui/media.ui:356 ui/photo_context.ui:91 ui/photo.ui:347 -#: ui/tags.ui:356 +#: ui/event.ui:524 ui/faces.ui:356 ui/media.ui:356 ui/photo_context.ui:91 +#: ui/photo.ui:347 ui/tags.ui:356 msgid "Shotwell" msgstr "Shotwell" @@ -488,12 +487,12 @@ msgid "Pin toolbar in fullscreen, or not." msgstr "Przypinanie paska narzędziowego na pełnym ekranie." #: misc/org.yorba.shotwell.gschema.xml:161 -msgid "background color" -msgstr "kolor tła" +msgid "prefer GTK+’s dark theme" +msgstr "preferowanie ciemnego motywu biblioteki GTK+" #: misc/org.yorba.shotwell.gschema.xml:162 -msgid "A grayscale color for use as the background color." -msgstr "Kolor w skali szarości używany jako kolor tła." +msgid "Whether to use the dark theme of GTK+ for Shotwell or not." +msgstr "Czy używać ciemnego motywu biblioteki GTK+ dla programu Shotwell." #: misc/org.yorba.shotwell.gschema.xml:167 msgid "background for transparent images" @@ -1553,7 +1552,7 @@ msgstr "Nie można wczytać interfejsu użytkownika: %s" msgid "Visit the Shotwell home page" msgstr "Witryna programu Shotwell" -#: plugins/common/Resources.vala:31 src/AppWindow.vala:611 +#: plugins/common/Resources.vala:31 src/AppWindow.vala:603 msgid "translator-credits" msgstr "" "verayin , 2011\n" @@ -1705,7 +1704,7 @@ msgstr "_Wyloguj" #: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:156 #: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:121 #: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:115 -#: src/CollectionPage.vala:82 src/PhotoPage.vala:2469 +#: src/CollectionPage.vala:82 src/PhotoPage.vala:2492 msgid "_Publish" msgstr "Opu_blikuj" @@ -2174,7 +2173,7 @@ msgid "Logout" msgstr "Wyloguj" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:268 -#: src/Resources.vala:296 ui/collection.ui:192 +#: src/Resources.vala:266 ui/collection.ui:192 msgid "Publish" msgstr "Opublikuj" @@ -2207,8 +2206,8 @@ msgid "Certificate of %s" msgstr "Certyfikat „%s”" #: plugins/shotwell-publishing/PiwigoPublishing.vala:1051 -#: src/Resources.vala:167 ui/multitextentrydialog.ui:40 -#: ui/slideshow_settings.ui:49 +#: src/Resources.vala:137 ui/multitextentrydialog.ui:40 +#: ui/slideshow_settings.ui:52 msgid "_OK" msgstr "_OK" @@ -2416,17 +2415,18 @@ msgstr "Przypina pasek narzędziowy" msgid "Leave fullscreen" msgstr "Opuszcza pełny ekran" -#: src/AppWindow.vala:538 src/AppWindow.vala:559 src/AppWindow.vala:576 +#: src/AppWindow.vala:530 src/AppWindow.vala:551 src/AppWindow.vala:568 #: src/data_imports/DataImportsUI.vala:302 #: src/data_imports/DataImportsUI.vala:420 src/Dialogs.vala:20 -#: src/Dialogs.vala:28 src/Dialogs.vala:753 src/Dialogs.vala:776 -#: src/publishing/PublishingUI.vala:305 src/publishing/PublishingUI.vala:529 -#: src/Resources.vala:158 ui/multitextentrydialog.ui:25 -#: ui/slideshow_settings.ui:35 ui/textentrydialog.ui:19 +#: src/Dialogs.vala:28 src/Dialogs.vala:58 src/Dialogs.vala:766 +#: src/Dialogs.vala:789 src/publishing/PublishingUI.vala:305 +#: src/publishing/PublishingUI.vala:529 src/Resources.vala:128 +#: ui/multitextentrydialog.ui:25 ui/slideshow_settings.ui:38 +#: ui/textentrydialog.ui:19 msgid "_Cancel" msgstr "_Anuluj" -#: src/AppWindow.vala:586 +#: src/AppWindow.vala:578 #, c-format msgid "" "A fatal error occurred when accessing Shotwell’s library. Shotwell cannot " @@ -2439,21 +2439,21 @@ msgstr "" "\n" "%s" -#: src/AppWindow.vala:607 +#: src/AppWindow.vala:599 msgid "Visit the Shotwell web site" msgstr "Witryna programu Shotwell" -#: src/AppWindow.vala:620 +#: src/AppWindow.vala:612 #, c-format msgid "Unable to display help: %s" msgstr "Nie można wyświetlić pomocy: %s" -#: src/AppWindow.vala:628 +#: src/AppWindow.vala:620 #, c-format msgid "Unable to navigate to bug database: %s" msgstr "Nie można przejść do bazy danych błędów: %s" -#: src/AppWindow.vala:636 +#: src/AppWindow.vala:628 #, c-format msgid "Unable to display FAQ: %s" msgstr "Nie można wyświetlić dokumentu FAQ: %s" @@ -2529,8 +2529,8 @@ msgstr "Lista wszystkich wykrytych aparatów" #: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:711 #: src/camera/ImportPage.vala:727 src/photos/RawSupport.vala:311 -#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/media.ui:361 -#: ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 +#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/faces.ui:361 +#: ui/media.ui:361 ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 msgid "Camera" msgstr "Aparat" @@ -2540,7 +2540,7 @@ msgstr "Aparat" msgid "%s (%s)" msgstr "%s — %s" -#: src/camera/ImportPage.vala:311 src/Properties.vala:230 +#: src/camera/ImportPage.vala:311 src/Properties.vala:231 msgid "RAW+JPEG" msgstr "RAW+JPEG" @@ -2676,7 +2676,7 @@ msgstr[0] "Usunąć te pliki z aparatu?" msgstr[1] "Usunąć %d pliki z aparatu?" msgstr[2] "Usunąć %d plików z aparatu?" -#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:720 +#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:733 msgid "_Keep" msgstr "_Zatrzymaj" @@ -2694,21 +2694,21 @@ msgstr[1] "Nie można usunąć %d zdjęć/nagrań wideo z aparatu z powodu bł msgstr[2] "Nie można usunąć %d zdjęć/nagrań wideo z aparatu z powodu błędów." #: src/CollectionPage.vala:80 src/direct/DirectPhotoPage.vala:85 -#: src/PhotoPage.vala:2464 src/Resources.vala:171 +#: src/PhotoPage.vala:2487 src/Resources.vala:141 msgid "_Print" msgstr "Wy_drukuj" -#: src/CollectionPage.vala:83 src/Resources.vala:324 ui/collection.ui:128 +#: src/CollectionPage.vala:83 src/Resources.vala:294 ui/collection.ui:128 #: ui/direct_context.ui:23 ui/direct.ui:23 ui/event.ui:567 ui/photo.ui:28 msgid "Send _To…" msgstr "Wyślij _do…" #: src/CollectionPage.vala:84 src/direct/DirectPhotoPage.vala:90 -#: src/PhotoPage.vala:2474 src/Resources.vala:221 +#: src/PhotoPage.vala:2497 src/Resources.vala:191 msgid "Set as _Desktop Background" msgstr "Ustaw jako tło p_ulpitu" -#: src/CollectionPage.vala:92 src/Resources.vala:287 +#: src/CollectionPage.vala:92 src/Resources.vala:257 msgid "_Duplicate" msgstr "Utwórz _kopię" @@ -2720,43 +2720,43 @@ msgstr "Pełny ekran" msgid "S_lideshow" msgstr "Pokaz s_lajdów" -#: src/CollectionPage.vala:110 src/Resources.vala:140 ui/direct.ui:111 +#: src/CollectionPage.vala:110 src/Resources.vala:110 ui/direct.ui:111 #: ui/photo.ui:200 msgid "Rotate _Right" msgstr "Obróć w p_rawo" -#: src/CollectionPage.vala:113 src/Resources.vala:145 ui/direct.ui:116 +#: src/CollectionPage.vala:113 src/Resources.vala:115 ui/direct.ui:116 #: ui/photo.ui:205 msgid "Rotate _Left" msgstr "Obróć w _lewo" -#: src/CollectionPage.vala:116 src/Resources.vala:150 ui/direct.ui:121 +#: src/CollectionPage.vala:116 src/Resources.vala:120 ui/direct.ui:121 #: ui/photo.ui:210 msgid "Flip Hori_zontally" msgstr "Odwróć po_ziomo" -#: src/CollectionPage.vala:117 src/Resources.vala:153 ui/direct.ui:125 +#: src/CollectionPage.vala:117 src/Resources.vala:123 ui/direct.ui:125 #: ui/photo.ui:214 msgid "Flip Verti_cally" msgstr "Odwróć pi_onowo" -#: src/CollectionPage.vala:119 src/Resources.vala:187 ui/collection.ui:8 +#: src/CollectionPage.vala:119 src/Resources.vala:157 ui/collection.ui:8 #: ui/direct_context.ui:7 ui/direct.ui:134 ui/event.ui:447 #: ui/photo_context.ui:6 ui/photo.ui:223 msgid "_Enhance" msgstr "_Uwydatnij" -#: src/CollectionPage.vala:120 src/Resources.vala:215 ui/collection.ui:13 +#: src/CollectionPage.vala:120 src/Resources.vala:185 ui/collection.ui:13 #: ui/direct_context.ui:12 ui/direct.ui:161 ui/event.ui:452 #: ui/photo_context.ui:11 ui/photo.ui:250 msgid "Re_vert to Original" msgstr "Przy_wróć oryginalne" -#: src/CollectionPage.vala:122 src/Resources.vala:191 ui/photo.ui:256 +#: src/CollectionPage.vala:122 src/Resources.vala:161 ui/photo.ui:256 msgid "_Copy Color Adjustments" msgstr "S_kopiuj dostosowania kolorów" -#: src/CollectionPage.vala:125 src/Resources.vala:195 ui/photo.ui:261 +#: src/CollectionPage.vala:125 src/Resources.vala:165 ui/photo.ui:261 msgid "_Paste Color Adjustments" msgstr "_Wklej dostosowania kolorów" @@ -2764,17 +2764,17 @@ msgstr "_Wklej dostosowania kolorów" msgid "Adjust Date and Time…" msgstr "Dostosuj datę i czas…" -#: src/CollectionPage.vala:143 src/Resources.vala:320 ui/collection.ui:108 +#: src/CollectionPage.vala:143 src/Resources.vala:290 ui/collection.ui:108 #: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:361 msgid "Open With E_xternal Editor" msgstr "_Otwórz za pomocą zewnętrznego edytora" -#: src/CollectionPage.vala:146 src/Resources.vala:322 ui/collection.ui:113 +#: src/CollectionPage.vala:146 src/Resources.vala:292 ui/collection.ui:113 #: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:366 msgid "Open With RA_W Editor" msgstr "Otwórz za pomocą edytora plików _RAW" -#: src/CollectionPage.vala:149 src/Resources.vala:168 +#: src/CollectionPage.vala:149 src/Resources.vala:138 msgid "_Play" msgstr "Od_twórz" @@ -2785,7 +2785,7 @@ msgstr[0] "Eksport zdjęcia/nagrania wideo" msgstr[1] "Eksport zdjęć/nagrań wideo" msgstr[2] "Eksport zdjęć/nagrań wideo" -#: src/CollectionPage.vala:412 src/Dialogs.vala:59 src/PhotoPage.vala:2998 +#: src/CollectionPage.vala:412 src/Dialogs.vala:74 src/PhotoPage.vala:3021 msgid "Export Photo" msgid_plural "Export Photos" msgstr[0] "Eksport zdjęcia" @@ -2840,39 +2840,39 @@ msgstr "Zastosowywanie przekształceń kolorów" msgid "Undoing Color Transformations" msgstr "Cofanie przekształceń kolorów" -#: src/Commands.vala:1007 +#: src/Commands.vala:1006 msgid "Creating New Event" msgstr "Tworzenie nowego wydarzenia" -#: src/Commands.vala:1008 +#: src/Commands.vala:1007 msgid "Removing Event" msgstr "Usuwanie wydarzenia" -#: src/Commands.vala:1017 +#: src/Commands.vala:1016 msgid "Moving Photos to New Event" msgstr "Przenoszenie zdjęć do nowego wydarzenia" -#: src/Commands.vala:1018 +#: src/Commands.vala:1017 msgid "Setting Photos to Previous Event" msgstr "Ustawianie zdjęć do poprzedniego wydarzenia" -#: src/Commands.vala:1075 +#: src/Commands.vala:1074 msgid "Merging" msgstr "Łączenie" -#: src/Commands.vala:1076 +#: src/Commands.vala:1075 msgid "Unmerging" msgstr "Cofanie łączenia" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Duplicating photos" msgstr "Tworzenie kopii zdjęć" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Removing duplicated photos" msgstr "Usuwanie podwójnych kopii zdjęć" -#: src/Commands.vala:1108 +#: src/Commands.vala:1107 #, c-format msgid "Unable to duplicate one photo due to a file error" msgid_plural "Unable to duplicate %d photos due to file errors" @@ -2880,54 +2880,54 @@ msgstr[0] "Nie można utworzyć kopii zdjęcia z powodu błędu pliku" msgstr[1] "Nie można utworzyć kopii %d zdjęć z powodu błędów plików" msgstr[2] "Nie można utworzyć kopii %d zdjęć z powodu błędów plików" -#: src/Commands.vala:1195 +#: src/Commands.vala:1194 msgid "Restoring previous rating" msgstr "Przywracanie poprzedniej oceny" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Increasing ratings" msgstr "Zwiększanie ocen" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Decreasing ratings" msgstr "Zmniejszanie ocen" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Setting RAW developer" msgstr "Ustawianie wywoływacza RAW" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Restoring previous RAW developer" msgstr "Przywracanie poprzedniego wywoływacza RAW" -#: src/Commands.vala:1257 +#: src/Commands.vala:1256 msgid "Set Developer" msgstr "Ustaw wywoływacz" -#: src/Commands.vala:1347 +#: src/Commands.vala:1346 msgid "Original photo could not be adjusted." msgstr "Nie można dostosować oryginalnego zdjęcia." -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Adjusting Date and Time" msgstr "Dostosowywanie daty i czasu" -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Undoing Date and Time Adjustment" msgstr "Cofanie dostosowania daty i czasu" -#: src/Commands.vala:1399 +#: src/Commands.vala:1398 msgid "One original photo could not be adjusted." msgid_plural "The following original photos could not be adjusted." msgstr[0] "Nie można dostosować jednego oryginalnego zdjęcia." msgstr[1] "Nie można dostosować poniższych oryginalnych zdjęć." msgstr[2] "Nie można dostosować poniższych oryginalnych zdjęć." -#: src/Commands.vala:1401 src/Commands.vala:1425 +#: src/Commands.vala:1400 src/Commands.vala:1424 msgid "Time Adjustment Error" msgstr "Błąd dostosowania czasu" -#: src/Commands.vala:1423 +#: src/Commands.vala:1422 msgid "Time adjustments could not be undone on the following photo file." msgid_plural "" "Time adjustments could not be undone on the following photo files." @@ -2935,60 +2935,60 @@ msgstr[0] "Nie można cofnąć dostosowania czasu na poniższym pliku zdjęcia." msgstr[1] "Nie można cofnąć dostosowania czasu na poniższych plikach zdjęć." msgstr[2] "Nie można cofnąć dostosowania czasu na poniższych plikach zdjęć." -#: src/Commands.vala:1637 src/Commands.vala:1660 +#: src/Commands.vala:1636 src/Commands.vala:1659 msgid "Create Tag" msgstr "Utwórz etykietę" -#: src/Commands.vala:1695 +#: src/Commands.vala:1694 #, c-format msgid "Move Tag “%s”" msgstr "Przenieś etykietę „%s”" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Move Photos to Trash" msgstr "Przenieś zdjęcia do kosza" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Restore Photos from Trash" msgstr "Przywróć zdjęcia z kosza" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Move the photos to the Shotwell trash" msgstr "Przenosi zdjęcia do kosza programu Shotwell" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Restore the photos back to the Shotwell library" msgstr "Przywraca zdjęcia z powrotem do kolekcji programu Shotwell" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Moving Photos to Trash" msgstr "Przenoszenie zdjęć do kosza" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Restoring Photos From Trash" msgstr "Przywracanie zdjęć z kosza" -#: src/Commands.vala:2453 +#: src/Commands.vala:2452 msgid "Flag selected photos" msgstr "Dodaje flagę do wybranych zdjęć" -#: src/Commands.vala:2454 +#: src/Commands.vala:2453 msgid "Unflag selected photos" msgstr "Usuwa flagę z wybranych zdjęć" -#: src/Commands.vala:2455 +#: src/Commands.vala:2454 msgid "Flagging selected photos" msgstr "Oznaczanie zaznaczonych zdjęć flagą" -#: src/Commands.vala:2456 +#: src/Commands.vala:2455 msgid "Unflagging selected photos" msgstr "Cofanie oznaczeń zdjęć flagą" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Flag" msgstr "Dodaj flagę" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Unflag" msgstr "Usuń flagę" @@ -3030,7 +3030,7 @@ msgstr "" msgid "Database file:" msgstr "Plik bazy danych:" -#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:782 +#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:806 msgid "_Import" msgstr "Zai_mportuj" @@ -3111,10 +3111,11 @@ msgstr[0] "Etykieta „%s” zostanie usunięta ze zdjęcia. Kontynuować?" msgstr[1] "Etykieta „%s” zostanie usunięta z %d zdjęć. Kontynuować?" msgstr[2] "Etykieta „%s” zostanie usunięta z %d zdjęć. Kontynuować?" -#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:721 -#: src/Resources.vala:159 src/Resources.vala:362 src/Resources.vala:415 -#: src/Resources.vala:659 ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 -#: ui/trash.ui:216 ui/trash.ui:258 +#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:58 +#: src/Dialogs.vala:734 src/Resources.vala:129 src/Resources.vala:310 +#: src/Resources.vala:341 src/Resources.vala:394 src/Resources.vala:734 +#: ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 ui/trash.ui:216 +#: ui/trash.ui:258 msgid "_Delete" msgstr "_Usuń" @@ -3144,11 +3145,19 @@ msgstr[2] "" msgid "_Switch Developer" msgstr "_Przełącz wywoływacz" -#: src/Dialogs.vala:59 +#: src/Dialogs.vala:54 +#, c-format +msgid "This will remove the face “%s” from one photo. Continue?" +msgid_plural "This will remove the face “%s” from %d photos. Continue?" +msgstr[0] "Twarz „%s” zostanie usunięta ze zdjęcia. Kontynuować?" +msgstr[1] "Twarz „%s” zostanie usunięta z %d zdjęć. Kontynuować?" +msgstr[2] "Twarz „%s” zostanie usunięta z %d zdjęć. Kontynuować?" + +#: src/Dialogs.vala:74 msgid "Export Video" msgstr "Eksport nagrań wideo" -#: src/Dialogs.vala:84 +#: src/Dialogs.vala:99 msgid "Export Photos" msgstr "Eksport zdjęć" @@ -3157,7 +3166,7 @@ msgstr "Eksport zdjęć" #. if we can't copy an image over for editing in an external tool. #. Did we fail because we can't write to this directory? #. Yes - display an alternate error message here. -#: src/Dialogs.vala:112 +#: src/Dialogs.vala:127 #, c-format msgid "" "Shotwell couldn’t create a file for editing this photo because you do not " @@ -3166,7 +3175,7 @@ msgstr "" "Program Shotwell nie może utworzyć pliku do modyfikowania tego zdjęcia, " "ponieważ brak uprawnień do zapisywania w %s." -#: src/Dialogs.vala:121 +#: src/Dialogs.vala:136 msgid "" "Unable to export the following photo due to a file error.\n" "\n" @@ -3174,7 +3183,7 @@ msgstr "" "Nie można wyeksportować zdjęcia z powodu błędu pliku.\n" "\n" -#: src/Dialogs.vala:127 +#: src/Dialogs.vala:142 msgid "" "\n" "\n" @@ -3184,28 +3193,28 @@ msgstr "" "\n" "Kontynuować eksportowanie?" -#: src/Dialogs.vala:128 +#: src/Dialogs.vala:143 msgid "Con_tinue" msgstr "Ko_ntynuuj" -#: src/Dialogs.vala:139 +#: src/Dialogs.vala:153 msgid "Save Details…" msgstr "Zapisz szczegóły…" -#: src/Dialogs.vala:140 +#: src/Dialogs.vala:154 msgid "Save Details" msgstr "Zapisz szczegóły" -#: src/Dialogs.vala:155 +#: src/Dialogs.vala:169 #, c-format msgid "(and %d more)\n" msgstr "(oraz %d więcej)\n" -#: src/Dialogs.vala:208 +#: src/Dialogs.vala:222 msgid "Import Results Report" msgstr "Zaimportuj raport o wynikach" -#: src/Dialogs.vala:212 +#: src/Dialogs.vala:226 #, c-format msgid "Attempted to import %d file." msgid_plural "Attempted to import %d files." @@ -3213,7 +3222,7 @@ msgstr[0] "Spróbowano zaimportować %d plik." msgstr[1] "Spróbowano zaimportować %d pliki." msgstr[2] "Spróbowano zaimportować %d plików." -#: src/Dialogs.vala:215 +#: src/Dialogs.vala:229 #, c-format msgid "Of these, %d file was successfully imported." msgid_plural "Of these, %d files were successfully imported." @@ -3224,30 +3233,30 @@ msgstr[2] "%d plik zostało pomyślnie zaimportowanych." #. #. Duplicates #. -#: src/Dialogs.vala:227 +#: src/Dialogs.vala:241 msgid "Duplicate Photos/Videos Not Imported:" msgstr "Niezaimportowane podwójne kopie zdjęć/nagrań wideo:" -#: src/Dialogs.vala:231 +#: src/Dialogs.vala:245 msgid "duplicates existing media item" msgstr "tworzy kopię istniejącego elementu multimedialnego" #. #. Files Not Imported Due to Camera Errors #. -#: src/Dialogs.vala:242 +#: src/Dialogs.vala:256 msgid "Photos/Videos Not Imported Due to Camera Errors:" msgstr "Niezaimportowane zdjęcia/nagrania wideo z powodu błędów aparatu:" -#: src/Dialogs.vala:245 src/Dialogs.vala:260 src/Dialogs.vala:275 -#: src/Dialogs.vala:291 src/Dialogs.vala:306 src/Dialogs.vala:320 +#: src/Dialogs.vala:259 src/Dialogs.vala:274 src/Dialogs.vala:289 +#: src/Dialogs.vala:305 src/Dialogs.vala:320 src/Dialogs.vala:334 msgid "error message:" msgstr "komunikat o błędzie:" #. #. Files Not Imported Because They Weren't Recognized as Photos or Videos #. -#: src/Dialogs.vala:256 +#: src/Dialogs.vala:270 msgid "Files Not Imported Because They Weren’t Recognized as Photos or Videos:" msgstr "" "Niezaimportowane pliki, ponieważ nie zostały rozpoznane jako zdjęcia lub " @@ -3256,7 +3265,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands #. -#: src/Dialogs.vala:271 +#: src/Dialogs.vala:285 msgid "" "Photos/Videos Not Imported Because They Weren’t in a Format Shotwell " "Understands:" @@ -3267,7 +3276,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library #. -#: src/Dialogs.vala:286 +#: src/Dialogs.vala:300 msgid "" "Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into its " "Library:" @@ -3275,7 +3284,7 @@ msgstr "" "Niezaimportowane pliki, ponieważ program Shotwell nie mógł skopiować ich do " "kolekcji:" -#: src/Dialogs.vala:290 +#: src/Dialogs.vala:304 #, c-format msgid "" "couldn’t copy %s\n" @@ -3287,18 +3296,18 @@ msgstr "" #. #. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt #. -#: src/Dialogs.vala:302 +#: src/Dialogs.vala:316 msgid "Photos/Videos Not Imported Because Files Are Corrupt:" msgstr "Nie zaimportowano zdjęć/nagrań wideo, ponieważ pliki są uszkodzone:" #. #. Photos/Videos Not Imported for Other Reasons #. -#: src/Dialogs.vala:317 +#: src/Dialogs.vala:331 msgid "Photos/Videos Not Imported for Other Reasons:" msgstr "Niezaimportowane pliki z innego powodu:" -#: src/Dialogs.vala:337 +#: src/Dialogs.vala:351 #, c-format msgid "1 duplicate photo was not imported:\n" msgid_plural "%d duplicate photos were not imported:\n" @@ -3306,7 +3315,7 @@ msgstr[0] "Jedna kopia zdjęcia nie została zaimportowana:\n" msgstr[1] "%d kopie zdjęć nie zostały zaimportowane:\n" msgstr[2] "%d kopii zdjęć nie zostało zaimportowanych:\n" -#: src/Dialogs.vala:340 +#: src/Dialogs.vala:354 #, c-format msgid "1 duplicate video was not imported:\n" msgid_plural "%d duplicate videos were not imported:\n" @@ -3314,7 +3323,7 @@ msgstr[0] "Jedna kopia nagrania wideo nie została zaimportowana:\n" msgstr[1] "%d kopie nagrań wideo nie zostały zaimportowane:\n" msgstr[2] "%d kopii nagrań wideo nie zostało zaimportowanych:\n" -#: src/Dialogs.vala:343 +#: src/Dialogs.vala:357 #, c-format msgid "1 duplicate photo/video was not imported:\n" msgid_plural "%d duplicate photos/videos were not imported:\n" @@ -3322,7 +3331,7 @@ msgstr[0] "Jedna kopia zdjęcia/nagrania wideo nie została zaimportowana:\n" msgstr[1] "%d kopie zdjęć/nagrań wideo nie zostały zaimportowane:\n" msgstr[2] "%d kopii zdjęć/nagrań wideo nie zostało zaimportowanych:\n" -#: src/Dialogs.vala:357 +#: src/Dialogs.vala:371 #, c-format msgid "1 photo failed to import due to a file or hardware error:\n" msgid_plural "%d photos failed to import due to a file or hardware error:\n" @@ -3334,7 +3343,7 @@ msgstr[1] "" msgstr[2] "" "Zaimportowanie %d zdjęć się nie powiodło z powodu błędu pliku lub sprzętu:\n" -#: src/Dialogs.vala:360 +#: src/Dialogs.vala:374 #, c-format msgid "1 video failed to import due to a file or hardware error:\n" msgid_plural "%d videos failed to import due to a file or hardware error:\n" @@ -3348,7 +3357,7 @@ msgstr[2] "" "Zaimportowanie %d nagrań wideo się nie powiodło z powodu błędu pliku lub " "sprzętu:\n" -#: src/Dialogs.vala:363 +#: src/Dialogs.vala:377 #, c-format msgid "1 photo/video failed to import due to a file or hardware error:\n" msgid_plural "" @@ -3363,7 +3372,7 @@ msgstr[2] "" "Zaimportowanie %d zdjęć/nagrań wideo się nie powiodło z powodu błędu pliku " "lub sprzętu:\n" -#: src/Dialogs.vala:366 +#: src/Dialogs.vala:380 #, c-format msgid "1 file failed to import due to a file or hardware error:\n" msgid_plural "%d files failed to import due to a file or hardware error:\n" @@ -3375,7 +3384,7 @@ msgstr[1] "" msgstr[2] "" "Zaimportowanie %d plików się nie powiodło z powodu błędu pliku lub sprzętu:\n" -#: src/Dialogs.vala:380 +#: src/Dialogs.vala:394 #, c-format msgid "" "1 photo failed to import because the photo library folder was not writable:\n" @@ -3392,7 +3401,7 @@ msgstr[2] "" "Zaimportowanie %d zdjęć się nie powiodło, ponieważ katalog kolekcji zdjęć " "nie jest zapisywalny:\n" -#: src/Dialogs.vala:383 +#: src/Dialogs.vala:397 #, c-format msgid "" "1 video failed to import because the photo library folder was not writable:\n" @@ -3409,7 +3418,7 @@ msgstr[2] "" "Zaimportowanie %d nagrań wideo się nie powiodło, ponieważ katalog kolekcji " "zdjęć nie jest zapisywalny:\n" -#: src/Dialogs.vala:386 +#: src/Dialogs.vala:400 #, c-format msgid "" "1 photo/video failed to import because the photo library folder was not " @@ -3427,7 +3436,7 @@ msgstr[2] "" "Zaimportowanie %d zdjęć/nagrań wideo się nie powiodło, ponieważ katalog " "kolekcji zdjęć nie jest zapisywalny:\n" -#: src/Dialogs.vala:389 +#: src/Dialogs.vala:403 #, c-format msgid "" "1 file failed to import because the photo library folder was not writable:\n" @@ -3444,7 +3453,7 @@ msgstr[2] "" "Zaimportowanie %d plików się nie powiodło, ponieważ katalog kolekcji zdjęć " "nie jest zapisywalny:\n" -#: src/Dialogs.vala:403 +#: src/Dialogs.vala:417 #, c-format msgid "1 photo failed to import due to a camera error:\n" msgid_plural "%d photos failed to import due to a camera error:\n" @@ -3453,7 +3462,7 @@ msgstr[0] "" msgstr[1] "Zaimportowanie %d zdjęć się nie powiodło z powodu błędu aparatu:\n" msgstr[2] "Zaimportowanie %d zdjęć się nie powiodło z powodu błędu aparatu:\n" -#: src/Dialogs.vala:406 +#: src/Dialogs.vala:420 #, c-format msgid "1 video failed to import due to a camera error:\n" msgid_plural "%d videos failed to import due to a camera error:\n" @@ -3465,7 +3474,7 @@ msgstr[1] "" msgstr[2] "" "Zaimportowanie %d nagrań wideo się nie powiodło z powodu błędu aparatu:\n" -#: src/Dialogs.vala:409 +#: src/Dialogs.vala:423 #, c-format msgid "1 photo/video failed to import due to a camera error:\n" msgid_plural "%d photos/videos failed to import due to a camera error:\n" @@ -3479,7 +3488,7 @@ msgstr[2] "" "Zaimportowanie %d zdjęć/nagrań wideo się nie powiodło z powodu błędu " "aparatu:\n" -#: src/Dialogs.vala:412 +#: src/Dialogs.vala:426 #, c-format msgid "1 file failed to import due to a camera error:\n" msgid_plural "%d files failed to import due to a camera error:\n" @@ -3488,7 +3497,7 @@ msgstr[0] "" msgstr[1] "Zaimportowanie %d plików się nie powiodło z powodu błędu aparatu:\n" msgstr[2] "Zaimportowanie %d plików się nie powiodło z powodu błędu aparatu:\n" -#: src/Dialogs.vala:426 +#: src/Dialogs.vala:440 #, c-format msgid "1 photo failed to import because it was corrupt:\n" msgid_plural "%d photos failed to import because they were corrupt:\n" @@ -3500,7 +3509,7 @@ msgstr[1] "" msgstr[2] "" "Zaimportowanie %d zdjęć się nie powiodło, ponieważ są one uszkodzone:\n" -#: src/Dialogs.vala:429 +#: src/Dialogs.vala:443 #, c-format msgid "1 video failed to import because it was corrupt:\n" msgid_plural "%d videos failed to import because they were corrupt:\n" @@ -3514,7 +3523,7 @@ msgstr[2] "" "Zaimportowanie %d nagrań wideo się nie powiodło, ponieważ są one " "uszkodzone:\n" -#: src/Dialogs.vala:432 +#: src/Dialogs.vala:446 #, c-format msgid "1 photo/video failed to import because it was corrupt:\n" msgid_plural "%d photos/videos failed to import because they were corrupt:\n" @@ -3528,7 +3537,7 @@ msgstr[2] "" "Zaimportowanie %d zdjęć/nagrań wideo się nie powiodło, ponieważ są one " "uszkodzone:\n" -#: src/Dialogs.vala:435 +#: src/Dialogs.vala:449 #, c-format msgid "1 file failed to import because it was corrupt:\n" msgid_plural "%d files failed to import because it was corrupt:\n" @@ -3543,7 +3552,7 @@ msgstr[2] "" #. standard container formats are supported, it's just that the streams in them #. might or might not be interpretable), so this message does not need to be #. media specific -#: src/Dialogs.vala:452 +#: src/Dialogs.vala:466 #, c-format msgid "1 unsupported photo skipped:\n" msgid_plural "%d unsupported photos skipped:\n" @@ -3553,7 +3562,7 @@ msgstr[2] "Pominięto %d nieobsługiwanych zdjęć:\n" #. we have no notion of "non-video" video files right now in Shotwell, so this #. message doesn't need to be media specific -#: src/Dialogs.vala:467 +#: src/Dialogs.vala:481 #, c-format msgid "1 non-image file skipped.\n" msgid_plural "%d non-image files skipped.\n" @@ -3561,7 +3570,7 @@ msgstr[0] "Pominięto jeden plik niebędący obrazem.\n" msgstr[1] "Pominięto %d pliki niebędące obrazami.\n" msgstr[2] "Pominięto %d plików niebędących obrazami.\n" -#: src/Dialogs.vala:478 +#: src/Dialogs.vala:492 #, c-format msgid "1 photo skipped due to user cancel:\n" msgid_plural "%d photos skipped due to user cancel:\n" @@ -3569,7 +3578,7 @@ msgstr[0] "Pominięto jedno zdjęcie z powodu anulowania przez użytkownika:\n" msgstr[1] "Pominięto %d zdjęcia z powodu anulowania przez użytkownika:\n" msgstr[2] "Pominięto %d zdjęć z powodu anulowania przez użytkownika:\n" -#: src/Dialogs.vala:481 +#: src/Dialogs.vala:495 #, c-format msgid "1 video skipped due to user cancel:\n" msgid_plural "%d videos skipped due to user cancel:\n" @@ -3579,7 +3588,7 @@ msgstr[1] "" "Pominięto %d nagrania wideo z powodu anulowania przez użytkownika:\n" msgstr[2] "Pominięto %d nagrań wideo z powodu anulowania przez użytkownika:\n" -#: src/Dialogs.vala:484 +#: src/Dialogs.vala:498 #, c-format msgid "1 photo/video skipped due to user cancel:\n" msgid_plural "%d photos/videos skipped due to user cancel:\n" @@ -3591,7 +3600,7 @@ msgstr[1] "" msgstr[2] "" "Pominięto %d zdjęć/nagrań wideo z powodu anulowania przez użytkownika:\n" -#: src/Dialogs.vala:487 +#: src/Dialogs.vala:501 #, c-format msgid "1 file skipped due to user cancel:\n" msgid_plural "%d file skipped due to user cancel:\n" @@ -3599,7 +3608,7 @@ msgstr[0] "Pominięto jeden plik z powodu anulowania na żądanie użytkownika: msgstr[1] "Pominięto %d pliki z powodu anulowania na żądanie użytkownika:\n" msgstr[2] "Pominięto %d plików z powodu anulowania na żądanie użytkownika:\n" -#: src/Dialogs.vala:501 +#: src/Dialogs.vala:515 #, c-format msgid "1 photo successfully imported.\n" msgid_plural "%d photos successfully imported.\n" @@ -3607,7 +3616,7 @@ msgstr[0] "Jedno zdjęcie zostało pomyślnie zaimportowane.\n" msgstr[1] "%d zdjęcia zostały pomyślnie zaimportowane.\n" msgstr[2] "%d zdjęć zostało pomyślnie zaimportowanych.\n" -#: src/Dialogs.vala:504 +#: src/Dialogs.vala:518 #, c-format msgid "1 video successfully imported.\n" msgid_plural "%d videos successfully imported.\n" @@ -3615,7 +3624,7 @@ msgstr[0] "Jedno nagranie wideo zostało pomyślnie zaimportowane.\n" msgstr[1] "%d nagrania wideo zostały pomyślnie zaimportowane.\n" msgstr[2] "%d nagrań wideo zostało pomyślnie zaimportowanych.\n" -#: src/Dialogs.vala:507 +#: src/Dialogs.vala:521 #, c-format msgid "1 photo/video successfully imported.\n" msgid_plural "%d photos/videos successfully imported.\n" @@ -3625,65 +3634,65 @@ msgstr[2] "%d zdjęć/nagrań wideo zostało pomyślnie zaimportowanych.\n" #. if no media items were imported at all (i.e. an empty directory attempted), need to at least #. report that nothing was imported -#: src/Dialogs.vala:523 +#: src/Dialogs.vala:537 msgid "No photos or videos imported.\n" msgstr "Nie zaimportowano żadnych zdjęć lub nagrań wideo.\n" -#: src/Dialogs.vala:530 src/Dialogs.vala:549 +#: src/Dialogs.vala:544 src/Dialogs.vala:563 msgid "Import Complete" msgstr "Ukończono importowanie" -#: src/Dialogs.vala:650 src/Resources.vala:232 +#: src/Dialogs.vala:663 src/Resources.vala:202 msgid "Rename Event" msgstr "Zmień nazwę wydarzenia" -#: src/Dialogs.vala:650 +#: src/Dialogs.vala:663 msgid "Name:" msgstr "Nazwa:" #. Dialog title -#: src/Dialogs.vala:661 +#: src/Dialogs.vala:674 msgctxt "Dialog Title" msgid "Edit Title" msgstr "Modyfikacja tytułu" -#: src/Dialogs.vala:662 src/Properties.vala:343 +#: src/Dialogs.vala:675 src/Properties.vala:344 msgid "Title:" msgstr "Tytuł:" #. Dialog title -#: src/Dialogs.vala:678 src/Resources.vala:308 +#: src/Dialogs.vala:691 src/Resources.vala:278 msgid "Edit Event Comment" msgstr "Modyfikuj komentarz wydarzenia" -#: src/Dialogs.vala:679 +#: src/Dialogs.vala:692 msgid "Edit Photo/Video Comment" msgstr "Modyfikuj komentarz zdjęcia/nagrania wideo" -#: src/Dialogs.vala:680 src/Properties.vala:631 +#: src/Dialogs.vala:693 src/Properties.vala:632 msgid "Comment:" msgstr "Komentarz:" -#: src/Dialogs.vala:696 +#: src/Dialogs.vala:709 msgid "Remove and _Trash File" msgid_plural "Remove and _Trash Files" msgstr[0] "_Przenieś plik do kosza" msgstr[1] "_Przenieś pliki do kosza" msgstr[2] "_Przenieś pliki do kosza" -#: src/Dialogs.vala:700 +#: src/Dialogs.vala:713 msgid "_Remove From Library" msgstr "_Usuń z kolekcji" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edit?" msgstr "Odwrócić zewnętrzną modyfikację?" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edits?" msgstr "Odwrócić zewnętrzne modyfikacje?" -#: src/Dialogs.vala:745 +#: src/Dialogs.vala:758 #, c-format msgid "This will destroy all changes made to the external file. Continue?" msgid_plural "" @@ -3697,15 +3706,15 @@ msgstr[2] "" "Unieważni to wszystkie zmiany wprowadzone do %d zewnętrznych plików. " "Kontynuować?" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edit" msgstr "Od_wróć zewnętrzną modyfikację" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edits" msgstr "Od_wróć zewnętrzne modyfikacje" -#: src/Dialogs.vala:770 +#: src/Dialogs.vala:783 #, c-format msgid "This will remove the photo from the library. Continue?" msgid_plural "This will remove %d photos from the library. Continue?" @@ -3713,19 +3722,19 @@ msgstr[0] "Zdjęcie zostanie usunięte z kolekcji. Kontynuować?" msgstr[1] "%d zdjęcia zostaną usunięte z kolekcji. Kontynuować?" msgstr[2] "%d zdjęć zostaną usuniętych z kolekcji. Kontynuować?" -#: src/Dialogs.vala:777 src/Resources.vala:174 +#: src/Dialogs.vala:790 src/Resources.vala:144 msgid "_Remove" msgstr "_Usuń" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photo From Library" msgstr "Usuwanie zdjęcia z kolekcji" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photos From Library" msgstr "Usuwanie zdjęć z kolekcji" -#: src/Dialogs.vala:798 +#: src/Dialogs.vala:811 #, c-format msgid "" "\n" @@ -3748,45 +3757,45 @@ msgstr[2] "" "\n" "Oraz %d innych." -#: src/Dialogs.vala:822 src/Dialogs.vala:849 +#: src/Dialogs.vala:835 src/Dialogs.vala:862 msgid "Tags (separated by commas):" msgstr "Etykiety (oddzielone przecinkami):" #. This function is used to determine whether or not files should be copied or linked when imported. #. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. -#: src/Dialogs.vala:908 +#: src/Dialogs.vala:921 msgid "" "Shotwell can copy the photos into your library folder or it can import them " "without copying." msgstr "" -"Program Shotwell może skopiować zdjęcia do katalogu kolekcji lub może " +"Program Shotwell może skopiować zdjęcia do katalogu kolekcji lub " "zaimportować je bez tworzenia ich kopii." -#: src/Dialogs.vala:913 +#: src/Dialogs.vala:926 msgid "Co_py Photos" msgstr "_Skopiuj zdjęcia" -#: src/Dialogs.vala:914 +#: src/Dialogs.vala:927 msgid "_Import in Place" msgstr "_Zaimportuj" -#: src/Dialogs.vala:915 +#: src/Dialogs.vala:928 msgid "Import to Library" msgstr "Import do kolekcji" -#: src/Dialogs.vala:925 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:938 src/PhotoPage.vala:2897 msgid "Remove From Library" msgstr "Usuń z kolekcji" -#: src/Dialogs.vala:926 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:939 src/PhotoPage.vala:2897 msgid "Removing Photo From Library" msgstr "Usuwanie zdjęcia z kolekcji" -#: src/Dialogs.vala:926 +#: src/Dialogs.vala:939 msgid "Removing Photos From Library" msgstr "Usuwanie zdjęć z kolekcji" -#: src/Dialogs.vala:940 +#: src/Dialogs.vala:953 #, c-format msgid "" "This will remove the photo/video from your Shotwell library. Would you also " @@ -3814,7 +3823,7 @@ msgstr[2] "" "\n" "Tej czynności nie można cofnąć." -#: src/Dialogs.vala:944 +#: src/Dialogs.vala:957 #, c-format msgid "" "This will remove the video from your Shotwell library. Would you also like " @@ -3842,7 +3851,7 @@ msgstr[2] "" "\n" "Tej czynności nie można cofnąć." -#: src/Dialogs.vala:948 +#: src/Dialogs.vala:961 #, c-format msgid "" "This will remove the photo from your Shotwell library. Would you also like " @@ -3870,7 +3879,7 @@ msgstr[2] "" "\n" "Tej czynności nie można cofnąć." -#: src/Dialogs.vala:980 +#: src/Dialogs.vala:993 #, c-format msgid "" "The photo or video cannot be moved to your desktop trash. Delete this file?" @@ -3884,7 +3893,7 @@ msgstr[2] "" "Nie można przenieść %d zdjęć lub nagrań wideo do kosza. Usunąć te pliki?" #. Alert the user that the files were not removed. -#: src/Dialogs.vala:997 +#: src/Dialogs.vala:1010 #, c-format msgid "The photo or video cannot be deleted." msgid_plural "%d photos/videos cannot be deleted." @@ -3924,7 +3933,7 @@ msgstr "" msgid "Unable open photo %s. Sorry." msgstr "Nie można otworzyć zdjęcia %s." -#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:176 ui/direct.ui:8 +#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:146 ui/direct.ui:8 #: ui/textentrydialog.ui:33 msgid "_Save" msgstr "Zapi_sz" @@ -4084,35 +4093,35 @@ msgstr "Eksportowanie _metadanych:" #. We're installed system-wide, so use the system help. #. We're being run from the build directory; we'll have to handle clicks to this #. link manually ourselves, due to a limitation of help: URIs. -#: src/dialogs/Preferences.vala:115 src/dialogs/Preferences.vala:119 +#: src/dialogs/Preferences.vala:108 src/dialogs/Preferences.vala:112 msgid "(Help)" msgstr "(Pomoc)" -#: src/dialogs/Preferences.vala:123 +#: src/dialogs/Preferences.vala:116 #, c-format msgid "Year%sMonth%sDay" msgstr "Rok%sMiesiąc%sDzień" -#: src/dialogs/Preferences.vala:125 +#: src/dialogs/Preferences.vala:118 #, c-format msgid "Year%sMonth" msgstr "Rok%sMiesiąc" -#: src/dialogs/Preferences.vala:127 +#: src/dialogs/Preferences.vala:120 #, c-format msgid "Year%sMonth-Day" msgstr "Rok%sMiesiąc-Dzień" -#: src/dialogs/Preferences.vala:129 +#: src/dialogs/Preferences.vala:122 msgid "Year-Month-Day" msgstr "Rok-Miesiąc-Dzień" -#: src/dialogs/Preferences.vala:130 src/editing_tools/EditingTools.vala:760 +#: src/dialogs/Preferences.vala:123 src/editing_tools/EditingTools.vala:760 msgid "Custom" msgstr "Niestandardowy" #. Invalid pattern. -#: src/dialogs/Preferences.vala:369 +#: src/dialogs/Preferences.vala:351 msgid "Invalid pattern" msgstr "Nieprawidłowy wzór" @@ -4304,7 +4313,7 @@ msgstr "30×40 cm" msgid "A3 (297 × 420 mm)" msgstr "A3 (297×420 mm)" -#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:398 +#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:399 msgid "Size:" msgstr "Rozmiar:" @@ -4322,8 +4331,8 @@ msgid "_Reset" msgstr "P_rzywróć" #. fit both on the top line, emit and move on -#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:439 -#: src/Properties.vala:443 src/Properties.vala:450 +#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:440 +#: src/Properties.vala:444 src/Properties.vala:451 msgid "Exposure:" msgstr "Ekspozycja:" @@ -4397,7 +4406,7 @@ msgstr "Rozszerzenie kontrastu" msgid "Angle:" msgstr "Kąt:" -#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:203 +#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:173 #: ui/direct.ui:144 ui/photo.ui:233 msgid "_Straighten" msgstr "_Wyrównaj" @@ -4410,7 +4419,7 @@ msgstr[0] "%d zdjęcie/nagranie wideo" msgstr[1] "%d zdjęcia/nagrania wideo" msgstr[2] "%d zdjęć/nagrań wideo" -#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:358 +#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:359 #, c-format msgid "%d Video" msgid_plural "%d Videos" @@ -4418,7 +4427,7 @@ msgstr[0] "%d nagranie wideo" msgstr[1] "%d nagrania wideo" msgstr[2] "%d nagrań wideo" -#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:356 +#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:357 #, c-format msgid "%d Photo" msgid_plural "%d Photos" @@ -4498,6 +4507,70 @@ msgstr "Z_astąp wszystkie" msgid "Export" msgstr "Eksport" +#: src/faces/FacesBranch.vala:89 src/Resources.vala:305 src/Resources.vala:306 +#: ui/faces.ui:403 +msgid "Faces" +msgstr "Twarze" + +#: src/faces/FacesTool.vala:115 +msgid "Detect faces…" +msgstr "Wykryj twarze…" + +#: src/faces/FacesTool.vala:140 +msgid "Detect faces on this photo" +msgstr "Wykrywa twarze na tym zdjęciu" + +#: src/faces/FacesTool.vala:142 +msgid "Cancel face detection" +msgstr "Anuluje wykrywanie twarzy" + +#: src/faces/FacesTool.vala:146 +msgid "Close the Faces tool without saving changes" +msgstr "Zamyka narzędzie wykrywania twarzy bez zapisywania zmian" + +#: src/faces/FacesTool.vala:153 src/faces/FacesTool.vala:185 +msgid "Click and drag to tag a face" +msgstr "Kliknięcie i przeciągnięcie oznaczy twarz" + +#: src/faces/FacesTool.vala:180 +#, c-format +msgid "Click to edit face %s" +msgstr "Kliknięcie zmodyfikuje twarz %s" + +#: src/faces/FacesTool.vala:189 +msgid "Stop dragging to add your face and name it." +msgstr "Zatrzymanie przeciągania doda twarz i umożliwi jej nazwanie." + +#: src/faces/FacesTool.vala:193 +msgid "Type a name for this face, then press Enter" +msgstr "Należy wpisać nazwę tej twarzy, a następnie nacisnąć klawisz Enter" + +#: src/faces/FacesTool.vala:197 +msgid "Move or modify the face shape or name and press Enter" +msgstr "" +"Można przenieść lub zmodyfikować kształt twarzy lub nazwę i nacisnąć klawisz " +"Enter" + +#: src/faces/FacesTool.vala:201 +msgid "Detecting faces" +msgstr "Wykrywanie twarzy" + +#: src/faces/FacesTool.vala:212 +msgid "If you don’t set the name of unknown faces they won’t be saved." +msgstr "Twarze bez ustawionych nazw nie zostaną zapisane." + +#: src/faces/FacesTool.vala:233 +msgid "Save changes and close the Faces tool" +msgstr "Zapisuje zmiany i zamyka narzędzie wykrywania twarzy" + +#: src/faces/FacesTool.vala:235 +msgid "No changes to save" +msgstr "Brak zmian do zapisania" + +#: src/faces/FacesTool.vala:956 +msgid "Error trying to spawn face detection program:\n" +msgstr "Błąd podczas wywoływania programu do wykrywania twarzy:\n" + #: src/folders/FoldersBranch.vala:144 msgid "Folders" msgstr "Katalogi" @@ -4506,8 +4579,16 @@ msgstr "Katalogi" msgid "Browse the library’s folder structure" msgstr "Przegląda strukturę katalogów kolekcji" -#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1100 -#: src/SearchFilter.vala:1101 +#: src/import-roll/ImportRollBranch.vala:44 +msgid "Imports" +msgstr "Zaimportowane" + +#: src/import-roll/ImportRollBranch.vala:44 +msgid "Browse the library’s import history" +msgstr "Przegląda historię importowania do kolekcji" + +#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1124 +#: src/SearchFilter.vala:1125 msgid "Flagged" msgstr "Oznaczone flagą" @@ -4529,7 +4610,7 @@ msgid "Last Import" msgstr "Ostatni import" #: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 -#: ui/preferences_dialog.ui:512 +#: ui/preferences_dialog.ui:465 msgid "Library" msgstr "Kolekcja" @@ -4537,27 +4618,27 @@ msgstr "Kolekcja" msgid "Organize and browse your photos" msgstr "Przegląda i organizuje zdjęcia" -#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1081 +#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1105 msgid "Photos" msgstr "Zdjęcia" -#: src/library/LibraryWindow.vala:508 +#: src/library/LibraryWindow.vala:532 msgid "Import From Folder" msgstr "Importowanie z katalogu" -#: src/library/LibraryWindow.vala:515 +#: src/library/LibraryWindow.vala:539 msgid "Recurse Into Subfolders" msgstr "Także podkatalogi" -#: src/library/LibraryWindow.vala:583 ui/trash.ui:288 +#: src/library/LibraryWindow.vala:607 ui/trash.ui:288 msgid "Empty Trash" msgstr "Opróżnij kosz" -#: src/library/LibraryWindow.vala:583 +#: src/library/LibraryWindow.vala:607 msgid "Emptying Trash…" msgstr "Opróżnianie kosza…" -#: src/library/LibraryWindow.vala:779 +#: src/library/LibraryWindow.vala:803 #, c-format msgid "" "Shotwell is configured to import photos to your home directory.\n" @@ -4571,33 +4652,33 @@ msgstr "" "Preferencje.\n" "Kontynuować importowanie zdjęć?" -#: src/library/LibraryWindow.vala:782 ui/preferences_dialog.ui:142 +#: src/library/LibraryWindow.vala:806 ui/preferences_dialog.ui:86 msgid "Library Location" msgstr "Położenie kolekcji" #. TODO: Specify which directory/file. -#: src/library/LibraryWindow.vala:795 +#: src/library/LibraryWindow.vala:819 msgid "Photos cannot be imported from this directory." msgstr "Nie można importować zdjęć z tego katalogu." -#: src/library/LibraryWindow.vala:1075 +#: src/library/LibraryWindow.vala:1099 #, c-format msgid "%s (%d%%)" msgstr "%s (%d%%)" -#: src/library/LibraryWindow.vala:1119 src/library/LibraryWindow.vala:1130 +#: src/library/LibraryWindow.vala:1143 src/library/LibraryWindow.vala:1154 msgid "Updating library…" msgstr "Aktualizowanie kolekcji…" -#: src/library/LibraryWindow.vala:1136 +#: src/library/LibraryWindow.vala:1160 msgid "Preparing to auto-import photos…" msgstr "Przygotowywanie do automatycznego zaimportowania zdjęć…" -#: src/library/LibraryWindow.vala:1141 +#: src/library/LibraryWindow.vala:1165 msgid "Auto-importing photos…" msgstr "Automatyczne importowanie zdjęć…" -#: src/library/LibraryWindow.vala:1149 +#: src/library/LibraryWindow.vala:1173 msgid "Writing metadata to files…" msgstr "Zapisywanie metadanych do plików…" @@ -4617,7 +4698,7 @@ msgstr "Kosz" msgid "Trash is empty" msgstr "Kosz jest pusty" -#: src/library/TrashPage.vala:110 +#: src/library/TrashPage.vala:110 ui/faces.ui:469 msgid "Delete" msgstr "Usuń" @@ -4666,40 +4747,40 @@ msgid "Unknown error attempting to verify Shotwell’s database: %s" msgstr "" "Nieznany błąd podczas próby sprawdzenia bazy danych programu Shotwell: %s" -#: src/main.vala:104 +#: src/main.vala:108 msgid "Loading Shotwell" msgstr "Wczytywanie programu Shotwell" -#: src/main.vala:303 +#: src/main.vala:320 msgid "Path to Shotwell’s private data" msgstr "Ścieżka do prywatnych danych programu Shotwell" -#: src/main.vala:303 +#: src/main.vala:320 msgid "DIRECTORY" msgstr "KATALOG" -#: src/main.vala:307 +#: src/main.vala:324 msgid "Do not monitor library directory at runtime for changes" msgstr "Bez monitorowania zmian w katalogu kolekcji podczas uruchamiania" -#: src/main.vala:311 +#: src/main.vala:328 msgid "Don’t display startup progress meter" msgstr "Bez wyświetlania paska postępu uruchamiania" -#: src/main.vala:315 +#: src/main.vala:332 msgid "Show the application’s version" msgstr "Wyświetla wersję programu" -#: src/main.vala:319 +#: src/main.vala:336 msgid "Start the application in fullscreen mode" msgstr "Uruchamia program w trybie pełnoekranowym" #. init GTK (valac has already called g_threads_init()) -#: src/main.vala:356 +#: src/main.vala:373 msgid "[FILE]" msgstr "[PLIK]" -#: src/main.vala:360 +#: src/main.vala:380 #, c-format msgid "Run “%s --help” to see a full list of available command line options.\n" msgstr "" @@ -4711,11 +4792,11 @@ msgstr "" msgid "Unable to process monitoring updates: %s" msgstr "Nie można przetworzyć aktualizacji monitorowania: %s" -#: src/MediaPage.vala:158 +#: src/MediaPage.vala:157 msgid "Adjust the size of the thumbnails" msgstr "Dopasowuje rozmiar miniatur" -#: src/MediaPage.vala:502 +#: src/MediaPage.vala:500 #, c-format msgid "" "Shotwell was unable to play the selected video:\n" @@ -4724,34 +4805,34 @@ msgstr "" "Program Shotwell nie może odtworzyć wybranego nagrania wideo:\n" "%s" -#: src/Page.vala:1327 +#: src/Page.vala:1324 msgid "No photos/videos" msgstr "Brak zdjęć/nagrań wideo" -#: src/Page.vala:1331 +#: src/Page.vala:1328 msgid "No photos/videos found which match the current filter" msgstr "Nie odnaleziono zdjęć/nagrań wideo pasujących do bieżącego filtra" -#: src/Page.vala:2644 +#: src/Page.vala:2641 msgid "Photos cannot be exported to this directory." msgstr "Nie można eksportować zdjęć do tego katalogu." #. previous button -#: src/PhotoPage.vala:538 +#: src/PhotoPage.vala:550 msgid "Previous photo" msgstr "Poprzednie zdjęcie" #. next button -#: src/PhotoPage.vala:544 +#: src/PhotoPage.vala:556 msgid "Next photo" msgstr "Następne zdjęcie" -#: src/PhotoPage.vala:1850 +#: src/PhotoPage.vala:1862 #, c-format msgid "Photo source file missing: %s" msgstr "Brak pliku źródłowego zdjęcia: %s" -#: src/PhotoPage.vala:3018 +#: src/PhotoPage.vala:3041 #, c-format msgid "Unable to export %s: %s" msgstr "Nie można wyeksportować: %s: %s" @@ -4760,6 +4841,10 @@ msgstr "Nie można wyeksportować: %s: %s" msgid "BMP" msgstr "BMP" +#: src/photos/GifSupport.vala:32 +msgid "GIF" +msgstr "GIF" + #: src/photos/JfifSupport.vala:84 msgid "JPEG" msgstr "JPEG" @@ -4847,19 +4932,19 @@ msgstr "" "\n" "%s" -#: src/Properties.vala:87 +#: src/Properties.vala:88 msgid "Today" msgstr "Dzisiaj" -#: src/Properties.vala:89 +#: src/Properties.vala:90 msgid "Yesterday" msgstr "Wczoraj" -#: src/Properties.vala:346 +#: src/Properties.vala:347 msgid "Items:" msgstr "Elementy:" -#: src/Properties.vala:349 +#: src/Properties.vala:350 #, c-format msgid "%d Event" msgid_plural "%d Events" @@ -4868,104 +4953,104 @@ msgstr[1] "%d wydarzenia" msgstr[2] "%d wydarzeń" #. display only one date if start and end are the same -#: src/Properties.vala:380 +#: src/Properties.vala:381 msgid "Date:" msgstr "Data:" #. display only one time if start and end are the same -#: src/Properties.vala:384 +#: src/Properties.vala:385 msgid "Time:" msgstr "Czas:" #. display time range #. display date range -#: src/Properties.vala:387 src/Properties.vala:392 +#: src/Properties.vala:388 src/Properties.vala:393 msgid "From:" msgstr "Od:" -#: src/Properties.vala:388 src/Properties.vala:393 +#: src/Properties.vala:389 src/Properties.vala:394 msgid "To:" msgstr "Do:" -#: src/Properties.vala:407 +#: src/Properties.vala:408 msgid "Duration:" msgstr "Czas trwania:" -#: src/Properties.vala:407 +#: src/Properties.vala:408 #, c-format msgid "%.1f seconds" msgstr "%.1f s" -#: src/Properties.vala:411 +#: src/Properties.vala:412 msgid "Developer:" msgstr "Wywoływacz:" #. nothing special to be done for now for Events -#: src/Properties.vala:586 +#: src/Properties.vala:587 msgid "Location:" msgstr "Położenie:" -#: src/Properties.vala:589 +#: src/Properties.vala:590 msgid "File size:" msgstr "Rozmiar pliku:" -#: src/Properties.vala:593 +#: src/Properties.vala:594 msgid "Current Development:" msgstr "Bieżący wywoływacz:" -#: src/Properties.vala:595 +#: src/Properties.vala:596 msgid "Original dimensions:" msgstr "Oryginalne wymiary:" -#: src/Properties.vala:598 +#: src/Properties.vala:599 msgid "Camera make:" msgstr "Producent aparatu:" -#: src/Properties.vala:601 +#: src/Properties.vala:602 msgid "Camera model:" msgstr "Model aparatu:" -#: src/Properties.vala:604 +#: src/Properties.vala:605 msgid "Flash:" msgstr "Lampa błyskowa:" -#: src/Properties.vala:606 +#: src/Properties.vala:607 msgid "Focal length:" msgstr "Odległość ogniskowa:" -#: src/Properties.vala:609 +#: src/Properties.vala:610 msgid "Exposure date:" msgstr "Data ekspozycji:" -#: src/Properties.vala:612 +#: src/Properties.vala:613 msgid "Exposure time:" msgstr "Czas ekspozycji:" -#: src/Properties.vala:615 +#: src/Properties.vala:616 msgid "Exposure bias:" msgstr "Wpływ na ekspozycję:" -#: src/Properties.vala:617 +#: src/Properties.vala:618 msgid "GPS latitude:" msgstr "Szerokość geograficzna GPS:" -#: src/Properties.vala:620 +#: src/Properties.vala:621 msgid "GPS longitude:" msgstr "Długość geograficzna GPS:" -#: src/Properties.vala:623 +#: src/Properties.vala:624 msgid "Artist:" msgstr "Artysta:" -#: src/Properties.vala:625 +#: src/Properties.vala:626 msgid "Copyright:" msgstr "Prawa autorskie:" -#: src/Properties.vala:627 +#: src/Properties.vala:628 msgid "Software:" msgstr "Oprogramowanie:" -#: src/Properties.vala:642 +#: src/Properties.vala:643 msgid "Extended Information" msgstr "Rozszerzone informacje" @@ -5064,590 +5149,615 @@ msgstr "" msgid "Publishing" msgstr "Publikowanie" -#: src/Resources.vala:141 src/Resources.vala:146 ui/collection.ui:151 +#: src/Resources.vala:111 src/Resources.vala:116 ui/collection.ui:151 msgid "Rotate" msgstr "Obróć" -#: src/Resources.vala:142 +#: src/Resources.vala:112 msgid "Rotate Right" msgstr "Obróć w prawo" -#: src/Resources.vala:143 ui/collection.ui:148 +#: src/Resources.vala:113 ui/collection.ui:148 msgid "Rotate the photos right (press Ctrl to rotate left)" msgstr "Obraca zdjęcia w prawo (naciśnięcie klawisza Ctrl obraca w lewo)" -#: src/Resources.vala:147 +#: src/Resources.vala:117 msgid "Rotate Left" msgstr "Obróć w lewo" -#: src/Resources.vala:148 +#: src/Resources.vala:118 msgid "Rotate the photos left" msgstr "Obraca zdjęcia w lewo" -#: src/Resources.vala:151 +#: src/Resources.vala:121 msgid "Flip Horizontally" msgstr "Odwróć poziomo" -#: src/Resources.vala:154 +#: src/Resources.vala:124 msgid "Flip Vertically" msgstr "Odwróć pionowo" -#: src/Resources.vala:156 ui/direct.ui:192 ui/events_directory.ui:168 -#: ui/event.ui:438 ui/import_queue.ui:83 ui/import.ui:201 +#: src/Resources.vala:126 ui/direct.ui:192 ui/events_directory.ui:168 +#: ui/event.ui:438 ui/faces.ui:448 ui/import_queue.ui:83 ui/import.ui:201 #: ui/manifest_widget.ui:35 ui/media.ui:421 ui/offline.ui:198 ui/photo.ui:405 #: ui/tags.ui:440 ui/trash.ui:207 msgid "_About" msgstr "_O programie" -#: src/Resources.vala:157 +#: src/Resources.vala:127 msgid "_Apply" msgstr "_Zastosuj" -#: src/Resources.vala:160 ui/direct.ui:44 ui/events_directory.ui:32 -#: ui/event.ui:47 ui/import.ui:40 ui/media.ui:47 ui/offline.ui:32 -#: ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 +#: src/Resources.vala:130 ui/direct.ui:44 ui/events_directory.ui:32 +#: ui/event.ui:47 ui/faces.ui:47 ui/import.ui:40 ui/media.ui:47 +#: ui/offline.ui:32 ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 msgid "_Edit" msgstr "_Edycja" -#: src/Resources.vala:161 +#: src/Resources.vala:131 msgid "_Forward" msgstr "_Dalej" -#: src/Resources.vala:162 ui/direct.ui:62 ui/events_directory.ui:125 +#: src/Resources.vala:132 ui/direct.ui:62 ui/events_directory.ui:125 #: ui/photo.ui:173 msgid "Fulls_creen" msgstr "_Pełny ekran" -#: src/Resources.vala:163 ui/direct.ui:174 ui/direct.ui:177 +#: src/Resources.vala:133 ui/direct.ui:174 ui/direct.ui:177 #: ui/events_directory.ui:150 ui/events_directory.ui:153 ui/event.ui:420 -#: ui/event.ui:423 ui/import_queue.ui:65 ui/import_queue.ui:68 ui/import.ui:183 -#: ui/import.ui:186 ui/media.ui:403 ui/media.ui:406 ui/offline.ui:180 -#: ui/offline.ui:183 ui/photo.ui:387 ui/photo.ui:390 ui/tags.ui:422 -#: ui/tags.ui:425 ui/trash.ui:189 ui/trash.ui:192 +#: ui/event.ui:423 ui/faces.ui:430 ui/faces.ui:433 ui/import_queue.ui:65 +#: ui/import_queue.ui:68 ui/import.ui:183 ui/import.ui:186 ui/media.ui:403 +#: ui/media.ui:406 ui/offline.ui:180 ui/offline.ui:183 ui/photo.ui:387 +#: ui/photo.ui:390 ui/tags.ui:422 ui/tags.ui:425 ui/trash.ui:189 +#: ui/trash.ui:192 msgid "_Help" msgstr "Pomo_c" -#: src/Resources.vala:164 +#: src/Resources.vala:134 msgid "Leave _Fullscreen" msgstr "Opuść p_ełny ekran" -#: src/Resources.vala:165 src/Resources.vala:364 ui/tags.ui:450 +#: src/Resources.vala:135 src/Resources.vala:343 ui/tags.ui:450 msgid "_New" msgstr "_Nowa" -#: src/Resources.vala:166 +#: src/Resources.vala:136 msgid "_Next" msgstr "_Dalej" -#: src/Resources.vala:169 src/Resources.vala:318 ui/events_directory.ui:65 -#: ui/event.ui:93 ui/import.ui:68 ui/media.ui:93 ui/offline.ui:72 -#: ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 +#: src/Resources.vala:139 src/Resources.vala:288 ui/events_directory.ui:65 +#: ui/event.ui:93 ui/faces.ui:93 ui/import.ui:68 ui/media.ui:93 +#: ui/offline.ui:72 ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 msgid "_Preferences" msgstr "_Preferencje" -#: src/Resources.vala:170 +#: src/Resources.vala:140 msgid "_Previous" msgstr "_Wstecz" -#: src/Resources.vala:172 ui/direct.ui:37 ui/events_directory.ui:25 -#: ui/event.ui:40 ui/import_queue.ui:31 ui/import.ui:33 ui/media.ui:40 -#: ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 +#: src/Resources.vala:142 ui/direct.ui:37 ui/events_directory.ui:25 +#: ui/event.ui:40 ui/faces.ui:40 ui/import_queue.ui:31 ui/import.ui:33 +#: ui/media.ui:40 ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 msgid "_Quit" msgstr "Za_kończ" -#: src/Resources.vala:173 +#: src/Resources.vala:143 msgid "_Refresh" msgstr "_Odśwież" -#: src/Resources.vala:175 +#: src/Resources.vala:145 msgid "_Revert" msgstr "P_rzywróć" -#: src/Resources.vala:177 +#: src/Resources.vala:147 msgid "Save _As" msgstr "Z_apisz jako" -#: src/Resources.vala:178 +#: src/Resources.vala:148 msgid "Sort _Ascending" msgstr "Porządkowanie _rosnąco" -#: src/Resources.vala:179 +#: src/Resources.vala:149 msgid "Sort _Descending" msgstr "Porządkowanie mal_ejąco" -#: src/Resources.vala:180 +#: src/Resources.vala:150 msgid "_Stop" msgstr "_Zatrzymaj" -#: src/Resources.vala:181 +#: src/Resources.vala:151 msgid "_Undelete" msgstr "_Cofnij usunięcie" -#: src/Resources.vala:182 +#: src/Resources.vala:152 msgid "_Normal Size" msgstr "Z_wykły rozmiar" -#: src/Resources.vala:183 +#: src/Resources.vala:153 msgid "Best _Fit" msgstr "_Najlepsze dopasowanie" -#: src/Resources.vala:184 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 -#: ui/photo.ui:144 ui/tags.ui:260 +#: src/Resources.vala:154 ui/direct.ui:69 ui/event.ui:260 ui/faces.ui:260 +#: ui/media.ui:260 ui/photo.ui:144 ui/tags.ui:260 msgid "Zoom _In" msgstr "Pow_iększ" -#: src/Resources.vala:185 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 -#: ui/photo.ui:149 ui/tags.ui:265 +#: src/Resources.vala:155 ui/direct.ui:74 ui/event.ui:265 ui/faces.ui:265 +#: ui/media.ui:265 ui/photo.ui:149 ui/tags.ui:265 msgid "Zoom _Out" msgstr "P_omniejsz" -#: src/Resources.vala:188 ui/collection.ui:167 +#: src/Resources.vala:158 ui/collection.ui:167 msgid "Enhance" msgstr "Uwydatnij" -#: src/Resources.vala:189 ui/collection.ui:164 +#: src/Resources.vala:159 ui/collection.ui:164 msgid "Automatically improve the photo’s appearance" msgstr "Automatycznie ulepsza wygląd zdjęcia" -#: src/Resources.vala:192 +#: src/Resources.vala:162 msgid "Copy Color Adjustments" msgstr "Skopiuj dostosowania kolorów" -#: src/Resources.vala:193 +#: src/Resources.vala:163 msgid "Copy the color adjustments applied to the photo" msgstr "Kopiuje dostosowania kolorów zastosowane na zdjęciu" -#: src/Resources.vala:196 +#: src/Resources.vala:166 msgid "Paste Color Adjustments" msgstr "Wklej dostosowania kolorów" -#: src/Resources.vala:197 +#: src/Resources.vala:167 msgid "Apply copied color adjustments to the selected photos" msgstr "Wkleja skopiowane dostosowania kolorów zastosowane na zdjęciu" -#: src/Resources.vala:199 ui/direct.ui:139 ui/photo.ui:228 +#: src/Resources.vala:169 ui/direct.ui:139 ui/photo.ui:228 msgid "_Crop" msgstr "Przyt_nij" -#: src/Resources.vala:200 +#: src/Resources.vala:170 msgid "Crop" msgstr "Przytnij" -#: src/Resources.vala:201 +#: src/Resources.vala:171 msgid "Crop the photo’s size" msgstr "Przycina rozmiar zdjęcia" -#: src/Resources.vala:204 +#: src/Resources.vala:174 msgid "Straighten" msgstr "Wyrównaj" -#: src/Resources.vala:205 +#: src/Resources.vala:175 msgid "Straighten the photo" msgstr "Wyrównuje zdjęcie" -#: src/Resources.vala:207 ui/direct.ui:149 ui/photo.ui:238 +#: src/Resources.vala:177 ui/direct.ui:149 ui/photo.ui:238 msgid "_Red-eye" msgstr "_Czerwone oczy" -#: src/Resources.vala:208 +#: src/Resources.vala:178 msgid "Red-eye" msgstr "Czerwone oczy" -#: src/Resources.vala:209 +#: src/Resources.vala:179 msgid "Reduce or eliminate any red-eye effects in the photo" msgstr "Zmniejsza lub usuwa wszystkie efekty czerwonych oczu na zdjęciu" -#: src/Resources.vala:211 ui/direct.ui:154 ui/photo.ui:243 +#: src/Resources.vala:181 ui/direct.ui:154 ui/photo.ui:243 msgid "_Adjust" msgstr "_Dopasuj" -#: src/Resources.vala:212 +#: src/Resources.vala:182 msgid "Adjust" msgstr "Dopasuj" -#: src/Resources.vala:213 +#: src/Resources.vala:183 msgid "Adjust the photo’s color and tone" msgstr "Dopasowuje kolor i tonację zdjęcia" -#: src/Resources.vala:216 +#: src/Resources.vala:186 msgid "Revert to Original" msgstr "Przywróć oryginalne" -#: src/Resources.vala:218 +#: src/Resources.vala:188 msgid "Revert External E_dits" msgstr "Odwróć zewnętrzne mo_dyfikacje" -#: src/Resources.vala:219 +#: src/Resources.vala:189 msgid "Revert to the master photo" msgstr "Przywraca pierwotne zdjęcie" -#: src/Resources.vala:222 +#: src/Resources.vala:192 msgid "Set selected image to be the new desktop background" msgstr "Ustawia wybrany obraz jako nowe tło pulpitu" -#: src/Resources.vala:223 +#: src/Resources.vala:193 msgid "Set as _Desktop Slideshow…" msgstr "Ustaw jako pokaz slaj_dów pulpitu…" -#: src/Resources.vala:225 ui/direct.ui:47 ui/events_directory.ui:35 -#: ui/event.ui:50 ui/import.ui:43 ui/media.ui:50 ui/offline.ui:35 -#: ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 +#: src/Resources.vala:195 ui/direct.ui:47 ui/events_directory.ui:35 +#: ui/event.ui:50 ui/faces.ui:50 ui/import.ui:43 ui/media.ui:50 +#: ui/offline.ui:35 ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 msgid "_Undo" msgstr "Cof_nij" -#: src/Resources.vala:226 +#: src/Resources.vala:196 msgid "Undo" msgstr "Cofnij" -#: src/Resources.vala:228 ui/direct.ui:52 ui/events_directory.ui:40 -#: ui/event.ui:55 ui/import.ui:48 ui/media.ui:55 ui/offline.ui:40 -#: ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 +#: src/Resources.vala:198 ui/direct.ui:52 ui/events_directory.ui:40 +#: ui/event.ui:55 ui/faces.ui:55 ui/import.ui:48 ui/media.ui:55 +#: ui/offline.ui:40 ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 msgid "_Redo" msgstr "P_onów" -#: src/Resources.vala:229 +#: src/Resources.vala:199 msgid "Redo" msgstr "Ponów" -#: src/Resources.vala:231 ui/events_directory.ui:139 ui/events_directory.ui:181 +#: src/Resources.vala:201 ui/events_directory.ui:139 ui/events_directory.ui:181 #: ui/event.ui:393 ui/event.ui:588 msgid "Re_name Event…" msgstr "Zmień _nazwę wydarzenia…" -#: src/Resources.vala:234 ui/event.ui:373 ui/event.ui:580 +#: src/Resources.vala:204 ui/event.ui:373 ui/event.ui:580 msgid "Make _Key Photo for Event" msgstr "Utwórz _kluczowe zdjęcie dla wydarzenia" -#: src/Resources.vala:235 +#: src/Resources.vala:205 msgid "Make Key Photo for Event" msgstr "Tworzy kluczowe zdjęcie dla wydarzenia" -#: src/Resources.vala:237 ui/event.ui:382 ui/media.ui:376 ui/tags.ui:376 +#: src/Resources.vala:207 ui/event.ui:382 ui/faces.ui:376 ui/media.ui:376 +#: ui/tags.ui:376 msgid "_New Event" msgstr "_Nowe wydarzenie" -#: src/Resources.vala:238 +#: src/Resources.vala:208 msgid "New Event" msgstr "Nowe wydarzenie" -#: src/Resources.vala:240 +#: src/Resources.vala:210 msgid "Move Photos" msgstr "Przenieś zdjęcia" -#: src/Resources.vala:241 +#: src/Resources.vala:211 msgid "Move photos to an event" msgstr "Przenosi zdjęcia do innego wydarzenia" -#: src/Resources.vala:243 ui/events_directory.ui:135 ui/events_directory.ui:177 +#: src/Resources.vala:213 ui/events_directory.ui:135 ui/events_directory.ui:177 msgid "_Merge Events" msgstr "_Połącz wydarzenia" -#: src/Resources.vala:244 +#: src/Resources.vala:214 msgid "Merge" msgstr "Połącz" -#: src/Resources.vala:245 +#: src/Resources.vala:215 msgid "Combine events into a single event" msgstr "Łączy wydarzenia w jedno" -#: src/Resources.vala:247 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 -#: ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 ui/tags.ui:286 +#: src/Resources.vala:217 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 +#: ui/faces.ui:286 ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 +#: ui/tags.ui:286 msgid "_Set Rating" msgstr "U_staw ocenę" -#: src/Resources.vala:248 +#: src/Resources.vala:218 msgid "Set Rating" msgstr "Ustaw ocenę" -#: src/Resources.vala:249 +#: src/Resources.vala:219 msgid "Change the rating of your photo" msgstr "Zmienia ocenę zdjęcia" -#: src/Resources.vala:251 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 -#: ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 ui/tags.ui:326 +#: src/Resources.vala:221 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 +#: ui/faces.ui:326 ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 +#: ui/tags.ui:326 msgid "_Increase" msgstr "Z_większ" -#: src/Resources.vala:252 +#: src/Resources.vala:222 msgid "Increase Rating" msgstr "Zwiększ ocenę" -#: src/Resources.vala:254 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 -#: ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 ui/tags.ui:331 +#: src/Resources.vala:224 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 +#: ui/faces.ui:331 ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 +#: ui/tags.ui:331 msgid "_Decrease" msgstr "_Zmniejsz" -#: src/Resources.vala:255 +#: src/Resources.vala:225 msgid "Decrease Rating" msgstr "Zmniejsz ocenę" -#: src/Resources.vala:257 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 -#: ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 ui/tags.ui:314 +#: src/Resources.vala:227 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 +#: ui/faces.ui:314 ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 +#: ui/tags.ui:314 msgid "_Unrated" msgstr "_Bez oceny" -#: src/Resources.vala:258 +#: src/Resources.vala:228 msgid "Unrated" msgstr "Bez oceny" -#: src/Resources.vala:259 +#: src/Resources.vala:229 msgid "Rate Unrated" msgstr "Ustaw jako bez oceny" -#: src/Resources.vala:260 +#: src/Resources.vala:230 msgid "Setting as unrated" msgstr "Ustawianie jako bez oceny" -#: src/Resources.vala:261 +#: src/Resources.vala:231 msgid "Remove any ratings" msgstr "Usuwa wszystkie oceny" -#: src/Resources.vala:263 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 -#: ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 ui/tags.ui:319 +#: src/Resources.vala:233 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 +#: ui/faces.ui:319 ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 +#: ui/tags.ui:319 msgid "_Rejected" msgstr "_Odrzucona" -#: src/Resources.vala:264 +#: src/Resources.vala:234 msgid "Rejected" msgstr "Odrzucona" -#: src/Resources.vala:265 +#: src/Resources.vala:235 msgid "Rate Rejected" msgstr "Odrzucona ocena" -#: src/Resources.vala:266 +#: src/Resources.vala:236 msgid "Setting as rejected" msgstr "Ustawianie jako odrzucona" -#: src/Resources.vala:267 +#: src/Resources.vala:237 msgid "Set rating to rejected" msgstr "Ustawia ocenę jako odrzuconą" -#: src/Resources.vala:269 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 -#: ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 ui/trash.ui:162 +#: src/Resources.vala:239 ui/event.ui:196 ui/faces.ui:196 ui/import.ui:156 +#: ui/media.ui:196 ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 +#: ui/trash.ui:162 msgid "Rejected _Only" msgstr "Tylko _odrzucone" -#: src/Resources.vala:270 +#: src/Resources.vala:240 msgid "Rejected Only" msgstr "Tylko odrzucone" -#: src/Resources.vala:271 +#: src/Resources.vala:241 msgid "Show only rejected photos" msgstr "Wyświetla tylko odrzucone zdjęcia" -#: src/Resources.vala:273 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 -#: ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 ui/trash.ui:156 +#: src/Resources.vala:243 ui/event.ui:190 ui/faces.ui:190 ui/import.ui:150 +#: ui/media.ui:190 ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 +#: ui/trash.ui:156 msgid "All + _Rejected" msgstr "Wszystkie + _odrzucone" -#: src/Resources.vala:274 +#: src/Resources.vala:244 msgctxt "Tooltip" msgid "Show all photos, including rejected" msgstr "Wyświetla wszystkie zdjęcia, w tym odrzucone" -#: src/Resources.vala:276 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 -#: ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 ui/trash.ui:150 +#: src/Resources.vala:246 ui/event.ui:184 ui/faces.ui:184 ui/import.ui:144 +#: ui/media.ui:184 ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 +#: ui/trash.ui:150 msgid "_All Photos" msgstr "_Wszystkie zdjęcia" #. Button tooltip -#: src/Resources.vala:278 +#: src/Resources.vala:248 msgid "Show all photos" msgstr "Wyświetla wszystkie zdjęcia" -#: src/Resources.vala:280 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 -#: ui/tags.ui:144 +#: src/Resources.vala:250 ui/event.ui:144 ui/faces.ui:144 ui/media.ui:144 +#: ui/photo.ui:120 ui/tags.ui:144 msgid "_Ratings" msgstr "O_ceny" -#: src/Resources.vala:281 +#: src/Resources.vala:251 msgid "Display each photo’s rating" msgstr "Wyświetla oceny każdego zdjęcia" -#: src/Resources.vala:283 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 -#: ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 +#: src/Resources.vala:253 ui/event.ui:151 ui/faces.ui:151 ui/import.ui:111 +#: ui/media.ui:151 ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 msgid "_Filter Photos" msgstr "_Filtruj zdjęcia" -#: src/Resources.vala:284 +#: src/Resources.vala:254 msgid "Filter Photos" msgstr "Filtruj zdjęcia" -#: src/Resources.vala:285 +#: src/Resources.vala:255 msgid "Limit the number of photos displayed based on a filter" msgstr "Ogranicza liczbę wyświetlanych zdjęć na podstawie filtru" -#: src/Resources.vala:288 +#: src/Resources.vala:258 msgid "Duplicate" msgstr "Utwórz kopię" -#: src/Resources.vala:289 +#: src/Resources.vala:259 msgid "Make a duplicate of the photo" msgstr "Tworzy kopię zdjęcia" -#: src/Resources.vala:291 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 -#: ui/tags.ui:17 +#: src/Resources.vala:261 ui/event.ui:17 ui/faces.ui:17 ui/media.ui:17 +#: ui/photo.ui:17 ui/tags.ui:17 msgid "_Export…" msgstr "Wy_eksportuj…" -#: src/Resources.vala:293 +#: src/Resources.vala:263 msgid "_Print…" msgstr "Wy_drukuj…" -#: src/Resources.vala:295 +#: src/Resources.vala:265 msgid "Pu_blish…" msgstr "Opu_blikuj…" -#: src/Resources.vala:297 ui/collection.ui:189 +#: src/Resources.vala:267 ui/collection.ui:189 msgid "Publish to various websites" msgstr "Publikuje na różnych witrynach WWW" -#: src/Resources.vala:299 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 -#: ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 ui/tags.ui:340 +#: src/Resources.vala:269 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 +#: ui/faces.ui:340 ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 +#: ui/tags.ui:340 msgid "Edit _Title…" msgstr "Mo_dyfikuj tytuł…" #. Button label -#: src/Resources.vala:301 +#: src/Resources.vala:271 msgctxt "Button Label" msgid "Edit Title" msgstr "Modyfikuj tytuł" -#: src/Resources.vala:303 ui/collection.ui:103 ui/events_directory.ui:144 +#: src/Resources.vala:273 ui/collection.ui:103 ui/events_directory.ui:144 #: ui/events_directory.ui:186 ui/event.ui:345 ui/event.ui:398 ui/event.ui:542 -#: ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 ui/tags.ui:345 +#: ui/faces.ui:345 ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 +#: ui/tags.ui:345 msgid "Edit _Comment…" msgstr "Modyfikuj _komentarz…" #. Button label -#: src/Resources.vala:305 +#: src/Resources.vala:275 msgid "Edit Comment" msgstr "Modyfikacja komentarza" -#: src/Resources.vala:307 ui/event.ui:592 +#: src/Resources.vala:277 ui/event.ui:592 msgid "Edit Event _Comment…" msgstr "Modyfikuj _komentarz wydarzenia…" -#: src/Resources.vala:310 ui/direct.ui:167 ui/photo.ui:337 +#: src/Resources.vala:280 ui/direct.ui:167 ui/photo.ui:337 msgid "_Adjust Date and Time…" msgstr "Dostosuj d_atę i czas…" -#: src/Resources.vala:311 +#: src/Resources.vala:281 msgid "Adjust Date and Time" msgstr "Dostosowuje datę i czas" -#: src/Resources.vala:313 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 -#: ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 +#: src/Resources.vala:283 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 +#: ui/faces.ui:390 ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 msgid "Add _Tags…" msgstr "Dodaj e_tykiety…" -#: src/Resources.vala:314 ui/photo_context.ui:17 +#: src/Resources.vala:284 ui/photo_context.ui:17 msgid "_Add Tags…" msgstr "_Dodaj etykiety…" #. Dialog title -#: src/Resources.vala:316 +#: src/Resources.vala:286 msgctxt "Dialog Title" msgid "Add Tags" msgstr "Dodanie etykiet" -#: src/Resources.vala:325 ui/photo_context.ui:135 +#: src/Resources.vala:295 ui/photo_context.ui:135 msgid "Send T_o…" msgstr "Wyślij d_o…" -#: src/Resources.vala:327 +#: src/Resources.vala:297 msgid "_Find…" msgstr "_Znajdź…" -#: src/Resources.vala:328 ui/collection.ui:217 ui/offline.ui:239 +#: src/Resources.vala:298 ui/collection.ui:217 ui/offline.ui:239 #: ui/trash.ui:312 msgid "Find" msgstr "Wyszukiwanie" -#: src/Resources.vala:329 ui/collection.ui:214 ui/offline.ui:236 +#: src/Resources.vala:299 ui/collection.ui:214 ui/offline.ui:236 #: ui/trash.ui:309 msgid "Find an image by typing text that appears in its name or tags" msgstr "" "Wyszukuje obraz przez wpisanie tekstu pojawiającego się w jego nazwie lub " "etykietach" -#: src/Resources.vala:331 +#: src/Resources.vala:301 msgid "_Flag" msgstr "_Dodaj flagę" -#: src/Resources.vala:333 +#: src/Resources.vala:303 msgid "Un_flag" msgstr "_Usuń flagę" -#: src/Resources.vala:336 +#: src/Resources.vala:307 +msgid "Mark faces of people in the photo" +msgstr "Oznacza twarze osób na zdjęciu" + +#: src/Resources.vala:308 +msgid "Modify Faces" +msgstr "Modyfikuj twarze" + +#: src/Resources.vala:309 +msgid "Delete Face" +msgstr "Usuń twarz" + +#: src/Resources.vala:311 src/Resources.vala:353 ui/tags.ui:456 +msgid "_Rename…" +msgstr "_Zmień nazwę…" + +#: src/Resources.vala:315 #, c-format msgid "Unable to launch editor: %s" msgstr "Nie można uruchomić edytora: %s" -#: src/Resources.vala:341 +#: src/Resources.vala:320 #, c-format msgid "Add Tag “%s”" msgstr "Dodaj etykietę „%s”" #. Used when adding two tags to photo(s) -#: src/Resources.vala:344 +#: src/Resources.vala:323 #, c-format msgid "Add Tags “%s” and “%s”" msgstr "Dodaj etykiety „%s” i „%s”" #. Undo/Redo command name (in Edit menu) -#: src/Resources.vala:349 +#: src/Resources.vala:328 msgctxt "UndoRedo menu entry" msgid "Add Tags" msgstr "Dodaj etykiety" -#: src/Resources.vala:354 +#: src/Resources.vala:333 #, c-format msgid "_Delete Tag “%s”" msgstr "_Usuń etykietę „%s”" -#: src/Resources.vala:358 +#: src/Resources.vala:337 #, c-format msgid "Delete Tag “%s”" msgstr "Usuń etykietę „%s”" -#: src/Resources.vala:361 +#: src/Resources.vala:340 msgid "Delete Tag" msgstr "Usuń etykietę" -#: src/Resources.vala:367 +#: src/Resources.vala:346 #, c-format msgid "Re_name Tag “%s”…" msgstr "Zmień _nazwę etykiety „%s”…" -#: src/Resources.vala:371 +#: src/Resources.vala:350 #, c-format msgid "Rename Tag “%s” to “%s”" msgstr "Zmień nazwę etykiety „%s” na „%s”" -#: src/Resources.vala:374 ui/tags.ui:456 -msgid "_Rename…" -msgstr "_Zmień nazwę…" - -#: src/Resources.vala:376 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 -#: ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 ui/tags.ui:395 +#: src/Resources.vala:355 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 +#: ui/faces.ui:395 ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 +#: ui/tags.ui:395 msgid "Modif_y Tags…" msgstr "M_odyfikuj etykiety…" -#: src/Resources.vala:377 +#: src/Resources.vala:356 msgid "Modify Tags" msgstr "Modyfikuj etykiety" -#: src/Resources.vala:380 +#: src/Resources.vala:359 #, c-format msgid "Tag Photo as “%s”" msgid_plural "Tag Photos as “%s”" -msgstr[0] "Dodaje etykietę „%s” do zdjęcia" -msgstr[1] "Dodaje etykietę „%s” do zdjęć" -msgstr[2] "Dodaje etykietę „%s” do zdjęć" +msgstr[0] "Dodaj etykietę „%s” do zdjęcia" +msgstr[1] "Dodaj etykietę „%s” do zdjęć" +msgstr[2] "Dodaj etykietę „%s” do zdjęć" -#: src/Resources.vala:386 +#: src/Resources.vala:365 #, c-format msgid "Tag the selected photo as “%s”" msgid_plural "Tag the selected photos as “%s”" @@ -5655,29 +5765,29 @@ msgstr[0] "Dodaje etykietę „%s” do wybranego zdjęcia" msgstr[1] "Dodaje etykietę „%s” do wybranych zdjęć" msgstr[2] "Dodaje etykietę „%s” do wybranych zdjęć" -#: src/Resources.vala:392 +#: src/Resources.vala:371 #, c-format msgid "Remove Tag “%s” From _Photo" msgid_plural "Remove Tag “%s” From _Photos" -msgstr[0] "Usuwa etykietę „%s” ze _zdjęcia" -msgstr[1] "Usuwa etykietę „%s” ze _zdjęć" -msgstr[2] "Usuwa etykietę „%s” ze _zdjęć" +msgstr[0] "Usuń etykietę „%s” ze _zdjęcia" +msgstr[1] "Usuń etykietę „%s” ze _zdjęć" +msgstr[2] "Usuń etykietę „%s” ze _zdjęć" -#: src/Resources.vala:398 +#: src/Resources.vala:377 #, c-format msgid "Remove Tag “%s” From Photo" msgid_plural "Remove Tag “%s” From Photos" -msgstr[0] "Usuwa etykietę „%s” ze zdjęcia" -msgstr[1] "Usuwa etykietę „%s” ze zdjęć" -msgstr[2] "Usuwa etykietę „%s” ze zdjęć" +msgstr[0] "Usuń etykietę „%s” ze zdjęcia" +msgstr[1] "Usuń etykietę „%s” ze zdjęć" +msgstr[2] "Usuń etykietę „%s” ze zdjęć" -#: src/Resources.vala:404 +#: src/Resources.vala:383 #, c-format msgid "Unable to rename tag to “%s” because the tag already exists." msgstr "" "Nie można zmienić nazwy etykiety na „%s”, ponieważ ta etykieta już istnieje." -#: src/Resources.vala:408 +#: src/Resources.vala:387 #, c-format msgid "Unable to rename search to “%s” because the search already exists." msgstr "" @@ -5685,120 +5795,165 @@ msgstr "" "już istnieje." #. Saved search button -#: src/Resources.vala:411 src/SearchFilter.vala:1122 +#: src/Resources.vala:390 src/SearchFilter.vala:1146 msgid "Saved Search" msgstr "Zapisane wyszukiwanie" -#: src/Resources.vala:413 +#: src/Resources.vala:392 msgid "Delete Search" msgstr "Usunięcie wyszukiwania" -#: src/Resources.vala:416 ui/savedsearch.ui:10 +#: src/Resources.vala:395 ui/savedsearch.ui:10 msgid "_Edit…" msgstr "_Modyfikuj…" -#: src/Resources.vala:417 ui/savedsearch.ui:6 +#: src/Resources.vala:396 ui/savedsearch.ui:6 msgid "Re_name…" msgstr "Zmień _nazwę…" -#: src/Resources.vala:420 +#: src/Resources.vala:399 #, c-format msgid "Rename Search “%s” to “%s”" msgstr "Zmienia nazwę wyszukiwania z „%s” na „%s”" -#: src/Resources.vala:424 +#: src/Resources.vala:403 #, c-format msgid "Delete Search “%s”" msgstr "Usuwa wyszukiwanie „%s”" -#: src/Resources.vala:561 +#: src/Resources.vala:408 +#, c-format +msgid "Unable to rename face to “%s” because the face already exists." +msgstr "" +"Nie można zmienić nazwy twarzy na „%s”, ponieważ ta twarz już istnieje." + +#: src/Resources.vala:412 +#, c-format +msgid "Remove Face “%s” From _Photo" +msgid_plural "Remove Face “%s” From _Photos" +msgstr[0] "Usuń twarz „%s” ze _zdjęcia" +msgstr[1] "Usuń twarz „%s” ze _zdjęć" +msgstr[2] "Usuń twarz „%s” ze _zdjęć" + +#: src/Resources.vala:417 +#, c-format +msgid "Remove Face “%s” From Photo" +msgid_plural "Remove Face “%s” From Photos" +msgstr[0] "Usuń twarz „%s” ze zdjęcia" +msgstr[1] "Usuń twarz „%s” ze zdjęć" +msgstr[2] "Usuń twarz „%s” ze zdjęć" + +#: src/Resources.vala:422 +#, c-format +msgid "Re_name Face “%s”…" +msgstr "Zmień _nazwę twarzy „%s”…" + +#: src/Resources.vala:426 +#, c-format +msgid "Rename Face “%s” to “%s”" +msgstr "Zmień nazwę twarzy „%s” na „%s”" + +#: src/Resources.vala:430 +#, c-format +msgid "_Delete Face “%s”" +msgstr "_Usuń twarz „%s”" + +#: src/Resources.vala:434 +#, c-format +msgid "Delete Face “%s”" +msgstr "Usuń twarz „%s”" + +#: src/Resources.vala:636 #, c-format msgid "Rate %s" msgstr "Ocena %s" -#: src/Resources.vala:562 +#: src/Resources.vala:637 #, c-format msgid "Set rating to %s" msgstr "Ustaw ocenę na %s" -#: src/Resources.vala:563 +#: src/Resources.vala:638 #, c-format msgid "Setting rating to %s" msgstr "Ustawianie oceny na %s" -#: src/Resources.vala:565 +#: src/Resources.vala:640 #, c-format msgid "Display %s" msgstr "Wyświetlanie %s" -#: src/Resources.vala:566 +#: src/Resources.vala:641 #, c-format msgid "Only show photos with a rating of %s" msgstr "Wyświetla tylko z oceną %s" -#: src/Resources.vala:567 +#: src/Resources.vala:642 #, c-format msgid "%s or Better" msgstr "%s lub lepszą" -#: src/Resources.vala:568 +#: src/Resources.vala:643 #, c-format msgid "Display %s or Better" msgstr "Wyświetlanie %s lub lepszych" -#: src/Resources.vala:569 +#: src/Resources.vala:644 #, c-format msgid "Only show photos with a rating of %s or better" msgstr "Wyświetla tylko zdjęcia z oceną %s lub lepszą" -#: src/Resources.vala:660 ui/trash.ui:255 +#: src/Resources.vala:735 ui/trash.ui:255 msgid "Remove the selected photos from the trash" msgstr "Usuwa wybrane zdjęcia z kosza" -#: src/Resources.vala:661 ui/offline.ui:221 +#: src/Resources.vala:736 ui/offline.ui:221 msgid "Remove the selected photos from the library" msgstr "Usuwa wybrane zdjęcia z kolekcji" -#: src/Resources.vala:663 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 +#: src/Resources.vala:738 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 msgid "_Restore" msgstr "P_rzywróć" -#: src/Resources.vala:664 ui/trash.ui:270 +#: src/Resources.vala:739 ui/trash.ui:270 msgid "Move the selected photos back into the library" msgstr "Przenosi wybrane zdjęcia z powrotem do kolekcji" -#: src/Resources.vala:666 ui/collection.ui:123 ui/direct_context.ui:18 -#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/media.ui:27 +#: src/Resources.vala:741 ui/collection.ui:123 ui/direct_context.ui:18 +#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/faces.ui:27 ui/media.ui:27 #: ui/photo_context.ui:130 ui/photo.ui:35 ui/tags.ui:27 ui/trash.ui:19 #: ui/trash.ui:227 msgid "Show in File Mana_ger" msgstr "Wyświetl w mene_dżerze plików" -#: src/Resources.vala:667 +#: src/Resources.vala:742 msgid "Open the selected photo’s directory in the file manager" msgstr "Otwiera wybrany katalog zdjęć w menedżerze plików" -#: src/Resources.vala:670 +#: src/Resources.vala:745 #, c-format msgid "Unable to open in file manager: %s" msgstr "Nie można otworzyć w menedżerze plików: %s" -#: src/Resources.vala:673 ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 -#: ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 ui/tags.ui:74 +#: src/Resources.vala:748 ui/event.ui:74 ui/faces.ui:74 ui/media.ui:74 +#: ui/offline.ui:58 ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 +#: ui/tags.ui:74 msgid "R_emove From Library" msgstr "_Usuń z kolekcji" -#: src/Resources.vala:675 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 -#: ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 ui/tags.ui:79 +#: src/Resources.vala:750 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 +#: ui/faces.ui:79 ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 +#: ui/tags.ui:79 msgid "_Move to Trash" msgstr "Przenieś do _kosza" -#: src/Resources.vala:677 ui/events_directory.ui:58 ui/event.ui:86 -#: ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 ui/trash.ui:74 +#: src/Resources.vala:752 ui/events_directory.ui:58 ui/event.ui:86 +#: ui/faces.ui:86 ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 +#: ui/trash.ui:74 msgid "Select _All" msgstr "Z_aznacz wszystkie" -#: src/Resources.vala:678 +#: src/Resources.vala:753 msgid "Select all items" msgstr "Zaznacza wszystkie elementy" @@ -5811,14 +5966,14 @@ msgstr "Zaznacza wszystkie elementy" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format #. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:739 +#: src/Resources.vala:814 msgid "%a %b %d, %Y" msgstr "%a, %-d %b %Y" #. / Locale-specific starting date format for multi-date strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:744 +#: src/Resources.vala:819 msgctxt "MultidayFormat" msgid "%a %b %d" msgstr "%a, %-d %b" @@ -5826,7 +5981,7 @@ msgstr "%a, %-d %b" #. / Locale-specific ending date format for multi-date strings, #. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:749 +#: src/Resources.vala:824 msgctxt "MultidayFormat" msgid "%d, %Y" msgstr "%-d, %Y" @@ -5834,7 +5989,7 @@ msgstr "%-d, %Y" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:754 +#: src/Resources.vala:829 msgctxt "MultimonthFormat" msgid "%a %b %d" msgstr "%a, %-d %b" @@ -5842,170 +5997,174 @@ msgstr "%a, %-d %b" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:759 +#: src/Resources.vala:834 msgctxt "MultimonthFormat" msgid "%a %b %d, %Y" msgstr "%a, %-d %b %Y" -#: src/Screensaver.vala:18 src/SlideshowPage.vala:115 +#: src/Screensaver.vala:18 src/SlideshowPage.vala:117 msgid "Slideshow" msgstr "Pokaz slajdów" #. Ordering must correspond with SearchConditionText.Context -#: src/searches/SavedSearchDialog.vala:167 +#: src/searches/SavedSearchDialog.vala:170 msgid "contains" msgstr "zawiera" #. Ordering must correspond with Context -#: src/searches/SavedSearchDialog.vala:168 -#: src/searches/SavedSearchDialog.vala:499 +#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:502 msgid "is exactly" msgstr "wynosi dokładnie" -#: src/searches/SavedSearchDialog.vala:169 +#: src/searches/SavedSearchDialog.vala:172 msgid "starts with" msgstr "rozpoczyna się od" -#: src/searches/SavedSearchDialog.vala:170 +#: src/searches/SavedSearchDialog.vala:173 msgid "ends with" msgstr "kończy się na" -#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:174 msgid "does not contain" msgstr "nie zawiera" -#: src/searches/SavedSearchDialog.vala:172 -#: src/searches/SavedSearchDialog.vala:503 +#: src/searches/SavedSearchDialog.vala:175 +#: src/searches/SavedSearchDialog.vala:506 msgid "is not set" msgstr "nie jest ustawione" -#: src/searches/SavedSearchDialog.vala:173 +#: src/searches/SavedSearchDialog.vala:176 msgid "is set" msgstr "jest ustawione" #. Ordering must correspond with SearchConditionMediaType.Context -#: src/searches/SavedSearchDialog.vala:247 -#: src/searches/SavedSearchDialog.vala:378 -#: src/searches/SavedSearchDialog.vala:443 +#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:381 +#: src/searches/SavedSearchDialog.vala:446 msgid "is" msgstr "jest" -#: src/searches/SavedSearchDialog.vala:248 +#: src/searches/SavedSearchDialog.vala:251 msgid "is not" msgstr "nie jest" #. Ordering must correspond with SearchConditionMediaType.MediaType -#: src/searches/SavedSearchDialog.vala:254 +#: src/searches/SavedSearchDialog.vala:257 msgid "any photo" msgstr "wszystkie zdjęcia" -#: src/searches/SavedSearchDialog.vala:255 +#: src/searches/SavedSearchDialog.vala:258 msgid "a raw photo" msgstr "surowe zdjęcie" -#: src/searches/SavedSearchDialog.vala:256 +#: src/searches/SavedSearchDialog.vala:259 msgid "a video" msgstr "nagranie wideo" -#: src/searches/SavedSearchDialog.vala:310 +#: src/searches/SavedSearchDialog.vala:313 msgid "has" msgstr "ma" -#: src/searches/SavedSearchDialog.vala:311 +#: src/searches/SavedSearchDialog.vala:314 msgid "has no" msgstr "nie ma" -#: src/searches/SavedSearchDialog.vala:316 +#: src/searches/SavedSearchDialog.vala:319 msgid "modifications" msgstr "modyfikacje" -#: src/searches/SavedSearchDialog.vala:317 +#: src/searches/SavedSearchDialog.vala:320 msgid "internal modifications" msgstr "wewnętrzne modyfikacje" -#: src/searches/SavedSearchDialog.vala:318 +#: src/searches/SavedSearchDialog.vala:321 msgid "external modifications" msgstr "zewnętrzne modyfikacje" #. Ordering must correspond with SearchConditionFlagged.State -#: src/searches/SavedSearchDialog.vala:372 +#: src/searches/SavedSearchDialog.vala:375 msgid "flagged" msgstr "oznaczone flagą" -#: src/searches/SavedSearchDialog.vala:373 +#: src/searches/SavedSearchDialog.vala:376 msgid "not flagged" msgstr "nieoznaczone flagą" -#: src/searches/SavedSearchDialog.vala:436 +#: src/searches/SavedSearchDialog.vala:439 msgid "and higher" msgstr "i wyższe" -#: src/searches/SavedSearchDialog.vala:437 +#: src/searches/SavedSearchDialog.vala:440 msgid "only" msgstr "tylko" -#: src/searches/SavedSearchDialog.vala:438 +#: src/searches/SavedSearchDialog.vala:441 msgid "and lower" msgstr "i niższe" -#: src/searches/SavedSearchDialog.vala:500 +#: src/searches/SavedSearchDialog.vala:503 msgid "is after" msgstr "jest po" -#: src/searches/SavedSearchDialog.vala:501 +#: src/searches/SavedSearchDialog.vala:504 msgid "is before" msgstr "jest przed" -#: src/searches/SavedSearchDialog.vala:502 +#: src/searches/SavedSearchDialog.vala:505 msgid "is between" msgstr "jest między" -#: src/searches/SavedSearchDialog.vala:515 +#: src/searches/SavedSearchDialog.vala:518 msgid "and" msgstr "oraz" -#: src/searches/SearchBoolean.vala:157 +#: src/searches/SearchBoolean.vala:169 msgid "Any text" msgstr "Dowolny tekst" -#: src/searches/SearchBoolean.vala:160 +#: src/searches/SearchBoolean.vala:172 msgid "Title" msgstr "Tytuł" -#: src/searches/SearchBoolean.vala:163 +#: src/searches/SearchBoolean.vala:175 msgid "Tag" msgstr "Etykieta" -#: src/searches/SearchBoolean.vala:166 +#: src/searches/SearchBoolean.vala:178 msgid "Comment" msgstr "Komentarz" -#: src/searches/SearchBoolean.vala:169 +#: src/searches/SearchBoolean.vala:181 msgid "Event name" msgstr "Nazwa wydarzenia" -#: src/searches/SearchBoolean.vala:172 +#: src/searches/SearchBoolean.vala:184 msgid "File name" msgstr "Nazwa pliku" -#: src/searches/SearchBoolean.vala:175 +#: src/searches/SearchBoolean.vala:187 +msgid "Face" +msgstr "Twarz" + +#: src/searches/SearchBoolean.vala:190 msgid "Media type" msgstr "Typ nośnika" -#: src/searches/SearchBoolean.vala:178 +#: src/searches/SearchBoolean.vala:193 msgid "Flag state" msgstr "Stan flagi" -#: src/searches/SearchBoolean.vala:181 +#: src/searches/SearchBoolean.vala:196 msgid "Photo state" msgstr "Stan zdjęcia" -#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:829 -#: src/SearchFilter.vala:1112 +#: src/searches/SearchBoolean.vala:199 src/SearchFilter.vala:853 +#: src/SearchFilter.vala:1136 msgid "Rating" msgstr "Ocena" -#: src/searches/SearchBoolean.vala:187 +#: src/searches/SearchBoolean.vala:202 msgid "Date" msgstr "Data" @@ -6017,27 +6176,27 @@ msgstr "Zapisane wyszukiwania" msgid "Organize your saved searches" msgstr "Organizuje zapisane wyszukiwania" -#: src/SearchFilter.vala:813 +#: src/SearchFilter.vala:837 msgid "★+ Rating" msgstr "Ocena ★+" -#: src/SearchFilter.vala:816 +#: src/SearchFilter.vala:840 msgid "★★+ Rating" msgstr "Ocena ★★+" -#: src/SearchFilter.vala:819 +#: src/SearchFilter.vala:843 msgid "★★★+ Rating" msgstr "Ocena ★★★+" -#: src/SearchFilter.vala:822 +#: src/SearchFilter.vala:846 msgid "★★★★+ Rating" msgstr "Ocena ★★★★+" -#: src/SearchFilter.vala:826 +#: src/SearchFilter.vala:850 msgid "★★★★★+ Rating" msgstr "Ocena ★★★★★+" -#: src/SearchFilter.vala:1062 +#: src/SearchFilter.vala:1086 #, c-format msgid "Error loading search bar UI: %s" msgstr "Błąd podczas wczytywania interfejsu użytkownika paska wyszukiwania: %s" @@ -6047,72 +6206,72 @@ msgstr "Błąd podczas wczytywania interfejsu użytkownika paska wyszukiwania: % #. Prepare the close menu for use, but don't #. display it yet; we'll connect it to secondary #. click later on. -#: src/SearchFilter.vala:1071 +#: src/SearchFilter.vala:1095 msgid "Close" msgstr "Zamknij" #. Type label and toggles -#: src/SearchFilter.vala:1077 +#: src/SearchFilter.vala:1101 msgid "Type" msgstr "Typ" -#: src/SearchFilter.vala:1084 +#: src/SearchFilter.vala:1108 msgid "Videos" msgstr "Nagrania wideo" -#: src/SearchFilter.vala:1087 +#: src/SearchFilter.vala:1111 msgid "RAW Photos" msgstr "Zdjęcia RAW" -#: src/SearchFilter.vala:1123 +#: src/SearchFilter.vala:1147 msgid "Use a saved search to filter items in the current view" msgstr "" "Używa zapisanego wyszukiwania do filtrowania elementów w bieżącym widoku" #. Set up toolbar #. add toolbar buttons -#: src/SlideshowPage.vala:134 +#: src/SlideshowPage.vala:136 msgid "Back" msgstr "Wstecz" -#: src/SlideshowPage.vala:136 +#: src/SlideshowPage.vala:138 msgid "Go to the previous photo" msgstr "Przechodzi do poprzedniego zdjęcia" -#: src/SlideshowPage.vala:141 src/SlideshowPage.vala:248 +#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:250 msgid "Pause" msgstr "Wstrzymaj" -#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:249 +#: src/SlideshowPage.vala:145 src/SlideshowPage.vala:251 msgid "Pause the slideshow" msgstr "Wstrzymuje pokaz slajdów" -#: src/SlideshowPage.vala:148 +#: src/SlideshowPage.vala:150 msgid "Next" msgstr "Dalej" -#: src/SlideshowPage.vala:150 +#: src/SlideshowPage.vala:152 msgid "Go to the next photo" msgstr "Przechodzi do następnego zdjęcia" -#: src/SlideshowPage.vala:157 ui/slideshow_settings.ui:21 +#: src/SlideshowPage.vala:159 ui/slideshow_settings.ui:21 msgid "Settings" msgstr "Ustawienia" -#: src/SlideshowPage.vala:158 +#: src/SlideshowPage.vala:160 msgid "Change slideshow settings" msgstr "Zmienia ustawienia pokazu slajdów" #. An entire slideshow set might be missing, so check for a loop. -#: src/SlideshowPage.vala:212 +#: src/SlideshowPage.vala:214 msgid "All photo source files are missing." msgstr "Brak wszystkich plików źródłowych zdjęć." -#: src/SlideshowPage.vala:244 +#: src/SlideshowPage.vala:246 msgid "Play" msgstr "Odtwórz" -#: src/SlideshowPage.vala:245 +#: src/SlideshowPage.vala:247 msgid "Continue the slideshow" msgstr "Kontynuuje pokaz slajdów" @@ -6124,7 +6283,7 @@ msgstr "Przejścia pokazu slajdów" msgid "(None)" msgstr "(Brak)" -#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:485 +#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:414 msgid "None" msgstr "Brak" @@ -6149,24 +6308,24 @@ msgstr "bez nazwy" msgid "Export Videos" msgstr "Eksport nagrań wideo" -#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/media.ui:281 -#: ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 +#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/faces.ui:281 +#: ui/media.ui:281 ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 msgid "Toggle _Flag" msgstr "_Przełącz flagę" -#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/media.ui:353 -#: ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 +#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/faces.ui:353 +#: ui/media.ui:353 ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 msgid "_Developer" msgstr "_Wywoływacz" -#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/media.ui:381 -#: ui/photo_context.ui:126 ui/tags.ui:381 +#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/faces.ui:381 +#: ui/media.ui:381 ui/photo_context.ui:126 ui/tags.ui:381 msgid "View Eve_nt for Photo" msgstr "Wyświetl wydarze_nie dla zdjęcia" -#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/import_queue.ui:5 -#: ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 ui/photo.ui:5 ui/tags.ui:5 -#: ui/trash.ui:5 +#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/faces.ui:5 +#: ui/import_queue.ui:5 ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 +#: ui/photo.ui:5 ui/tags.ui:5 ui/trash.ui:5 msgid "_File" msgstr "_Plik" @@ -6174,7 +6333,7 @@ msgstr "_Plik" msgid "Save _As…" msgstr "Z_apisz jako…" -#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 +#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 ui/faces.ui:99 #: ui/import_queue.ui:38 ui/import.ui:74 ui/media.ui:99 ui/offline.ui:78 #: ui/photo.ui:95 ui/tags.ui:99 ui/trash.ui:87 msgid "_View" @@ -6208,229 +6367,240 @@ msgstr "_Następne zdjęcie" msgid "T_ools" msgstr "_Narzędzia" -#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 +#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 ui/faces.ui:438 #: ui/import_queue.ui:73 ui/import.ui:191 ui/media.ui:411 ui/offline.ui:188 #: ui/photo.ui:395 ui/tags.ui:430 ui/trash.ui:197 msgid "_Frequently Asked Questions" msgstr "Naj_częściej zadawane pytania" -#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 +#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 ui/faces.ui:442 #: ui/import_queue.ui:77 ui/import.ui:195 ui/media.ui:415 ui/offline.ui:192 #: ui/photo.ui:399 ui/tags.ui:434 ui/trash.ui:201 msgid "_Report a Problem…" msgstr "_Zgłoś problem…" -#: ui/events_directory.ui:8 ui/event.ui:8 ui/import_queue.ui:14 ui/import.ui:8 -#: ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 ui/trash.ui:8 +#: ui/events_directory.ui:8 ui/event.ui:8 ui/faces.ui:8 ui/import_queue.ui:14 +#: ui/import.ui:8 ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 +#: ui/trash.ui:8 msgid "_Import From Folder…" msgstr "_Zaimportuj z katalogu…" -#: ui/events_directory.ui:13 ui/event.ui:13 ui/import_queue.ui:19 -#: ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 ui/photo.ui:13 ui/tags.ui:13 -#: ui/trash.ui:13 +#: ui/events_directory.ui:13 ui/event.ui:13 ui/faces.ui:13 +#: ui/import_queue.ui:19 ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 +#: ui/photo.ui:13 ui/tags.ui:13 ui/trash.ui:13 msgid "Import From _Application…" msgstr "Zaimportuj z p_rogramu…" -#: ui/events_directory.ui:19 ui/event.ui:34 ui/import_queue.ui:25 -#: ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 ui/photo.ui:42 ui/tags.ui:34 -#: ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 +#: ui/events_directory.ui:19 ui/event.ui:34 ui/faces.ui:34 +#: ui/import_queue.ui:25 ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 +#: ui/photo.ui:42 ui/tags.ui:34 ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 msgid "Empty T_rash" msgstr "Opróżnij _kosz" -#: ui/events_directory.ui:47 ui/event.ui:62 ui/import.ui:55 ui/media.ui:62 -#: ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 +#: ui/events_directory.ui:47 ui/event.ui:62 ui/faces.ui:62 ui/import.ui:55 +#: ui/media.ui:62 ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 msgid "_Find" msgstr "_Znajdź" -#: ui/events_directory.ui:51 ui/event.ui:66 ui/media.ui:66 ui/offline.ui:51 -#: ui/photo.ui:70 ui/search_sidebar_context.ui:6 +#: ui/events_directory.ui:51 ui/event.ui:66 ui/faces.ui:66 ui/media.ui:66 +#: ui/offline.ui:51 ui/photo.ui:70 ui/search_sidebar_context.ui:6 #: ui/sidebar_default_context.ui:6 ui/tags.ui:66 ui/trash.ui:56 msgid "Ne_w Saved Search…" msgstr "No_we zapisane wyszukiwanie…" -#: ui/events_directory.ui:74 ui/event.ui:102 ui/import_queue.ui:41 -#: ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 ui/photo.ui:98 -#: ui/tags.ui:102 ui/trash.ui:90 +#: ui/events_directory.ui:74 ui/event.ui:102 ui/faces.ui:102 +#: ui/import_queue.ui:41 ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 +#: ui/photo.ui:98 ui/tags.ui:102 ui/trash.ui:90 msgid "_Basic Information" msgstr "_Podstawowe informacje" -#: ui/events_directory.ui:79 ui/event.ui:107 ui/import.ui:82 ui/media.ui:107 -#: ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 ui/trash.ui:95 +#: ui/events_directory.ui:79 ui/event.ui:107 ui/faces.ui:107 ui/import.ui:82 +#: ui/media.ui:107 ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 +#: ui/trash.ui:95 msgid "E_xtended Information" msgstr "_Rozszerzone informacje" -#: ui/events_directory.ui:84 ui/event.ui:112 ui/import.ui:87 ui/media.ui:112 -#: ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 +#: ui/events_directory.ui:84 ui/event.ui:112 ui/faces.ui:112 ui/import.ui:87 +#: ui/media.ui:112 ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 msgid "_Search Bar" msgstr "Pasek wy_szukiwania" -#: ui/events_directory.ui:89 ui/event.ui:117 ui/import.ui:92 ui/media.ui:117 -#: ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 ui/trash.ui:105 +#: ui/events_directory.ui:89 ui/event.ui:117 ui/faces.ui:117 ui/import.ui:92 +#: ui/media.ui:117 ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 +#: ui/trash.ui:105 msgid "S_idebar" msgstr "Panel _boczny" -#: ui/events_directory.ui:94 ui/event.ui:122 ui/import.ui:97 ui/media.ui:122 -#: ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 ui/trash.ui:110 +#: ui/events_directory.ui:94 ui/event.ui:122 ui/faces.ui:122 ui/import.ui:97 +#: ui/media.ui:122 ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 +#: ui/trash.ui:110 msgid "T_oolbar" msgstr "_Pasek narzędziowy" -#: ui/events_directory.ui:101 ui/event.ui:134 ui/media.ui:134 ui/tags.ui:134 +#: ui/events_directory.ui:101 ui/event.ui:134 ui/faces.ui:134 ui/media.ui:134 +#: ui/tags.ui:134 msgid "_Comments" msgstr "_Komentarze" -#: ui/events_directory.ui:108 ui/event.ui:243 ui/import_queue.ui:48 -#: ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 ui/photo.ui:127 -#: ui/tags.ui:243 ui/trash.ui:172 +#: ui/events_directory.ui:108 ui/event.ui:243 ui/faces.ui:243 +#: ui/import_queue.ui:48 ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 +#: ui/photo.ui:127 ui/tags.ui:243 ui/trash.ui:172 msgid "Sort _Events" msgstr "Uporządkuj wydarz_enia" -#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 -#: ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 ui/media.ui:246 -#: ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 ui/tags.ui:246 -#: ui/trash.ui:175 +#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 ui/faces.ui:231 +#: ui/faces.ui:246 ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 +#: ui/media.ui:246 ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 +#: ui/tags.ui:246 ui/trash.ui:175 msgid "_Ascending" msgstr "_Rosnąco" -#: ui/events_directory.ui:116 ui/event.ui:236 ui/import_queue.ui:56 -#: ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 ui/trash.ui:180 +#: ui/events_directory.ui:116 ui/event.ui:236 ui/faces.ui:236 +#: ui/import_queue.ui:56 ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 +#: ui/trash.ui:180 msgid "D_escending" msgstr "Mal_ejąco" -#: ui/events_directory.ui:132 ui/event.ui:379 ui/media.ui:373 ui/tags.ui:373 +#: ui/events_directory.ui:132 ui/event.ui:379 ui/faces.ui:373 ui/media.ui:373 +#: ui/tags.ui:373 msgid "Even_ts" msgstr "Wy_darzenia" -#: ui/event.ui:129 ui/import.ui:104 ui/media.ui:129 ui/tags.ui:129 +#: ui/event.ui:129 ui/faces.ui:129 ui/import.ui:104 ui/media.ui:129 +#: ui/tags.ui:129 msgid "_Titles" msgstr "_Tytuły" -#: ui/event.ui:139 ui/event.ui:404 ui/media.ui:139 ui/media.ui:387 -#: ui/photo.ui:372 ui/tags.ui:139 ui/tags.ui:387 +#: ui/event.ui:139 ui/event.ui:404 ui/faces.ui:139 ui/faces.ui:387 +#: ui/media.ui:139 ui/media.ui:387 ui/photo.ui:372 ui/tags.ui:139 +#: ui/tags.ui:387 msgid "Ta_gs" msgstr "_Etykiety" -#: ui/event.ui:206 ui/media.ui:206 ui/tags.ui:206 +#: ui/event.ui:206 ui/faces.ui:206 ui/media.ui:206 ui/tags.ui:206 msgid "Sort _Photos" msgstr "_Uporządkuj zdjęcia" -#: ui/event.ui:209 ui/media.ui:209 ui/tags.ui:209 +#: ui/event.ui:209 ui/faces.ui:209 ui/media.ui:209 ui/tags.ui:209 msgid "By _Title" msgstr "Według _tytułu" -#: ui/event.ui:214 ui/media.ui:214 ui/tags.ui:214 +#: ui/event.ui:214 ui/faces.ui:214 ui/media.ui:214 ui/tags.ui:214 msgid "By _Filename" msgstr "Według _nazw plików" -#: ui/event.ui:219 ui/media.ui:219 ui/tags.ui:219 +#: ui/event.ui:219 ui/faces.ui:219 ui/media.ui:219 ui/tags.ui:219 msgid "By Exposure _Date" msgstr "We_dług daty ekspozycji" -#: ui/event.ui:224 ui/media.ui:224 ui/tags.ui:224 +#: ui/event.ui:224 ui/faces.ui:224 ui/media.ui:224 ui/tags.ui:224 msgid "By _Rating" msgstr "Według _oceny" -#: ui/event.ui:251 ui/import.ui:174 ui/media.ui:251 ui/photo.ui:135 -#: ui/tags.ui:251 +#: ui/event.ui:251 ui/faces.ui:251 ui/import.ui:174 ui/media.ui:251 +#: ui/photo.ui:135 ui/tags.ui:251 msgid "_Descending" msgstr "Mal_ejąco" -#: ui/event.ui:275 ui/media.ui:275 ui/tags.ui:275 +#: ui/event.ui:275 ui/faces.ui:275 ui/media.ui:275 ui/tags.ui:275 msgid "_Photos" msgstr "_Zdjęcia" +#: ui/faces.ui:465 +msgid "Rename…" +msgstr "Zmień nazwę…" + #: ui/import_queue.ui:8 msgid "_Stop Import" msgstr "_Zatrzymaj importowanie" -#: ui/preferences_dialog.ui:65 -msgid "white" -msgstr "biały" - -#: ui/preferences_dialog.ui:92 -msgid "black" -msgstr "czarny" - -#: ui/preferences_dialog.ui:123 +#: ui/preferences_dialog.ui:67 msgid "Display" msgstr "Ekran" -#: ui/preferences_dialog.ui:160 -msgid "_Background:" -msgstr "_Tło:" - -#: ui/preferences_dialog.ui:175 +#: ui/preferences_dialog.ui:103 msgid "_Import photos to:" msgstr "_Importowanie zdjęć do:" -#: ui/preferences_dialog.ui:186 +#: ui/preferences_dialog.ui:114 msgid "_Watch library directory for new files" msgstr "_Obserwacja katalogu kolekcji pod kątem nowych plików" -#: ui/preferences_dialog.ui:209 +#: ui/preferences_dialog.ui:137 msgid "Importing" msgstr "Importowanie" -#: ui/preferences_dialog.ui:226 +#: ui/preferences_dialog.ui:154 msgid "_Directory structure:" msgstr "Struktura _katalogów:" -#: ui/preferences_dialog.ui:241 +#: ui/preferences_dialog.ui:169 msgid "Example:" msgstr "Przykład:" -#: ui/preferences_dialog.ui:250 +#: ui/preferences_dialog.ui:178 msgid "R_ename imported files to lowercase" msgstr "_Zmienianie nazw importowanych plików na małe litery" -#: ui/preferences_dialog.ui:272 +#: ui/preferences_dialog.ui:200 msgid "Metadata" msgstr "Metadane" -#: ui/preferences_dialog.ui:285 +#: ui/preferences_dialog.ui:213 msgid "Write tags, titles, and other _metadata to photo files" msgstr "Zapisywanie etykiet, tytułów i innych _metadanych do plików zdjęć" -#: ui/preferences_dialog.ui:307 +#: ui/preferences_dialog.ui:235 msgid "RAW Developer" msgstr "Wywoływacz RAW" -#: ui/preferences_dialog.ui:324 +#: ui/preferences_dialog.ui:252 msgid "De_fault:" msgstr "_Domyślnie:" -#: ui/preferences_dialog.ui:378 +#: ui/preferences_dialog.ui:306 msgid "_Pattern:" msgstr "_Wzór:" -#: ui/preferences_dialog.ui:414 +#: ui/preferences_dialog.ui:339 +msgid "" +"When viewing images that are transparent, they will be drawn against this " +"background." +msgstr "Przezroczyste obrazy będą wyświetlane na tym tle." + +#: ui/preferences_dialog.ui:343 msgid "Transparent Background:" msgstr "Przezroczyste tło:" -#: ui/preferences_dialog.ui:428 +#: ui/preferences_dialog.ui:357 msgid "Checkered" msgstr "Szachownica" -#: ui/preferences_dialog.ui:449 +#: ui/preferences_dialog.ui:378 msgid "Solid color" msgstr "Jeden kolor" -#: ui/preferences_dialog.ui:539 +#: ui/preferences_dialog.ui:441 +msgid "Use dark theme:" +msgstr "Ciemny motyw:" + +#: ui/preferences_dialog.ui:492 msgid "E_xternal photo editor:" msgstr "_Zewnętrzny edytor zdjęć:" -#: ui/preferences_dialog.ui:556 +#: ui/preferences_dialog.ui:509 msgid "External _RAW editor:" msgstr "Zewnętrzny edytor plików _RAW:" -#: ui/preferences_dialog.ui:617 +#: ui/preferences_dialog.ui:570 msgid "External Editors" msgstr "Zewnętrzne edytory" -#: ui/preferences_dialog.ui:642 +#: ui/preferences_dialog.ui:595 msgid "Plugins" msgstr "Wtyczki" -#: ui/preferences_dialog.ui:668 +#: ui/preferences_dialog.ui:621 msgid "Shotwell Preferences" msgstr "Preferencje" @@ -6556,23 +6726,23 @@ msgstr "Jak długo każde zdjęcie jest wyświetlane jako tło pulpitu" msgid "New _Tag…" msgstr "Nowa _etykieta…" -#: ui/slideshow_settings.ui:91 +#: ui/slideshow_settings.ui:98 msgid "_Delay:" msgstr "_Opóźnienie:" -#: ui/slideshow_settings.ui:105 +#: ui/slideshow_settings.ui:112 msgid "_Transition effect:" msgstr "_Efekt przejścia:" -#: ui/slideshow_settings.ui:119 +#: ui/slideshow_settings.ui:126 msgid "Transition d_elay:" msgstr "Opóźnienie prz_ejścia:" -#: ui/slideshow_settings.ui:129 +#: ui/slideshow_settings.ui:136 msgid "Show t_itle" msgstr "Wyświetlanie tyt_ułu" -#: ui/slideshow_settings.ui:212 ui/slideshow_settings.ui:223 +#: ui/slideshow_settings.ui:219 ui/slideshow_settings.ui:230 msgid "seconds" msgstr "s" @@ -6583,3 +6753,6 @@ msgstr "etykieta" #: ui/trash.ui:285 msgid "Delete all photos in the trash" msgstr "Usuwa wszystkie zdjęcia z kosza" + +msgid "WebP" +msgstr "WebP" diff --git a/po/pt.gmo b/po/pt.gmo deleted file mode 100644 index 1054aa1..0000000 Binary files a/po/pt.gmo and /dev/null differ diff --git a/po/pt_BR.gmo b/po/pt_BR.gmo deleted file mode 100644 index 1ef9823..0000000 Binary files a/po/pt_BR.gmo and /dev/null differ diff --git a/po/pt_BR.po b/po/pt_BR.po index dfa6c37..c97e75c 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -17,10 +17,9 @@ msgid "" msgstr "" "Project-Id-Version: shotwell\n" -"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?product=shotwe" -"ll&keywords=I18N+L10N&component=Internationalization\n" -"POT-Creation-Date: 2017-12-24 15:23+0000\n" -"PO-Revision-Date: 2018-01-13 12:23-0200\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/shotwell/issues\n" +"POT-Creation-Date: 2018-06-03 05:50+0000\n" +"PO-Revision-Date: 2018-06-05 22:47-0200\n" "Last-Translator: Rafael Fontenelle \n" "Language-Team: Brazilian Portuguese \n" "Language: pt_BR\n" @@ -34,8 +33,8 @@ msgstr "" #: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in:4 #: plugins/shotwell-publishing-extras/GalleryConnector.vala:115 #: src/photos/RawSupport.vala:308 ui/collection.ui:85 ui/event.ui:356 -#: ui/event.ui:524 ui/media.ui:356 ui/photo_context.ui:91 ui/photo.ui:347 -#: ui/tags.ui:356 +#: ui/event.ui:524 ui/faces.ui:356 ui/media.ui:356 ui/photo_context.ui:91 +#: ui/photo.ui:347 ui/tags.ui:356 msgid "Shotwell" msgstr "Shotwell" @@ -489,12 +488,12 @@ msgid "Pin toolbar in fullscreen, or not." msgstr "Fixa a barra de ferramentas em tela cheia, ou não." #: misc/org.yorba.shotwell.gschema.xml:161 -msgid "background color" -msgstr "cor do plano de fundo" +msgid "prefer GTK+’s dark theme" +msgstr "preferir tema escuro do GTK+" #: misc/org.yorba.shotwell.gschema.xml:162 -msgid "A grayscale color for use as the background color." -msgstr "Uma cor em escala de cinza para usar como plano de fundo." +msgid "Whether to use the dark theme of GTK+ for Shotwell or not." +msgstr "Se deve-se usar o tema escuro do GTK+ para o Shotwell." #: misc/org.yorba.shotwell.gschema.xml:167 msgid "background for transparent images" @@ -1575,7 +1574,7 @@ msgstr "Não foi possível carregar a UI: %s" msgid "Visit the Shotwell home page" msgstr "Visitar o site do Shotwell" -#: plugins/common/Resources.vala:31 src/AppWindow.vala:611 +#: plugins/common/Resources.vala:31 src/AppWindow.vala:603 msgid "translator-credits" msgstr "" "Djavan Fagundes \n" @@ -1735,7 +1734,7 @@ msgstr "_Sair" #: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:156 #: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:121 #: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:115 -#: src/CollectionPage.vala:82 src/PhotoPage.vala:2469 +#: src/CollectionPage.vala:82 src/PhotoPage.vala:2492 msgid "_Publish" msgstr "_Publicar" @@ -2202,7 +2201,7 @@ msgid "Logout" msgstr "Encerrar sessão" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:268 -#: src/Resources.vala:296 ui/collection.ui:192 +#: src/Resources.vala:266 ui/collection.ui:192 msgid "Publish" msgstr "Publicar" @@ -2234,8 +2233,8 @@ msgid "Certificate of %s" msgstr "Certificado de %s" #: plugins/shotwell-publishing/PiwigoPublishing.vala:1051 -#: src/Resources.vala:167 ui/multitextentrydialog.ui:40 -#: ui/slideshow_settings.ui:49 +#: src/Resources.vala:137 ui/multitextentrydialog.ui:40 +#: ui/slideshow_settings.ui:52 msgid "_OK" msgstr "_OK" @@ -2442,17 +2441,18 @@ msgstr "Fixar a barra de ferramentas aberta" msgid "Leave fullscreen" msgstr "Sai da tela cheia" -#: src/AppWindow.vala:538 src/AppWindow.vala:559 src/AppWindow.vala:576 +#: src/AppWindow.vala:530 src/AppWindow.vala:551 src/AppWindow.vala:568 #: src/data_imports/DataImportsUI.vala:302 #: src/data_imports/DataImportsUI.vala:420 src/Dialogs.vala:20 -#: src/Dialogs.vala:28 src/Dialogs.vala:753 src/Dialogs.vala:776 -#: src/publishing/PublishingUI.vala:302 src/publishing/PublishingUI.vala:526 -#: src/Resources.vala:158 ui/multitextentrydialog.ui:25 -#: ui/slideshow_settings.ui:35 ui/textentrydialog.ui:19 +#: src/Dialogs.vala:28 src/Dialogs.vala:58 src/Dialogs.vala:766 +#: src/Dialogs.vala:789 src/publishing/PublishingUI.vala:305 +#: src/publishing/PublishingUI.vala:529 src/Resources.vala:128 +#: ui/multitextentrydialog.ui:25 ui/slideshow_settings.ui:38 +#: ui/textentrydialog.ui:19 msgid "_Cancel" msgstr "_Cancelar" -#: src/AppWindow.vala:586 +#: src/AppWindow.vala:578 #, c-format msgid "" "A fatal error occurred when accessing Shotwell’s library. Shotwell cannot " @@ -2465,21 +2465,21 @@ msgstr "" "\n" "%s" -#: src/AppWindow.vala:607 +#: src/AppWindow.vala:599 msgid "Visit the Shotwell web site" msgstr "Visitar o página web do Shotwell" -#: src/AppWindow.vala:620 +#: src/AppWindow.vala:612 #, c-format msgid "Unable to display help: %s" msgstr "Não foi possível exibir a ajuda: %s" -#: src/AppWindow.vala:628 +#: src/AppWindow.vala:620 #, c-format msgid "Unable to navigate to bug database: %s" msgstr "Não foi possível navegar no banco de dados de bugs: %s" -#: src/AppWindow.vala:636 +#: src/AppWindow.vala:628 #, c-format msgid "Unable to display FAQ: %s" msgstr "Não foi possível exibir FAQ: %s" @@ -2555,8 +2555,8 @@ msgstr "Lista de todos os dispositivos de câmera encontrados" #: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:711 #: src/camera/ImportPage.vala:727 src/photos/RawSupport.vala:311 -#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/media.ui:361 -#: ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 +#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/faces.ui:361 +#: ui/media.ui:361 ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 msgid "Camera" msgstr "Câmera" @@ -2566,7 +2566,7 @@ msgstr "Câmera" msgid "%s (%s)" msgstr "%s (%s)" -#: src/camera/ImportPage.vala:311 src/Properties.vala:230 +#: src/camera/ImportPage.vala:311 src/Properties.vala:231 msgid "RAW+JPEG" msgstr "RAW+JPEG" @@ -2697,7 +2697,7 @@ msgid_plural "Delete these %d files from camera?" msgstr[0] "Apagar esse arquivo da câmera?" msgstr[1] "Apagar esses %d arquivos da câmera?" -#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:720 +#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:733 msgid "_Keep" msgstr "_Manter" @@ -2713,21 +2713,21 @@ msgstr[0] "Não foi possível excluir %d foto/vídeo da câmera devido a erros." msgstr[1] "Não foi possível excluir %d fotos/vídeos da câmera devido a erros." #: src/CollectionPage.vala:80 src/direct/DirectPhotoPage.vala:85 -#: src/PhotoPage.vala:2464 src/Resources.vala:171 +#: src/PhotoPage.vala:2487 src/Resources.vala:141 msgid "_Print" msgstr "Im_primir" -#: src/CollectionPage.vala:83 src/Resources.vala:324 ui/collection.ui:128 +#: src/CollectionPage.vala:83 src/Resources.vala:294 ui/collection.ui:128 #: ui/direct_context.ui:23 ui/direct.ui:23 ui/event.ui:567 ui/photo.ui:28 msgid "Send _To…" msgstr "Enviar _para…" #: src/CollectionPage.vala:84 src/direct/DirectPhotoPage.vala:90 -#: src/PhotoPage.vala:2474 src/Resources.vala:221 +#: src/PhotoPage.vala:2497 src/Resources.vala:191 msgid "Set as _Desktop Background" msgstr "Definir como _plano de fundo da área de trabalho" -#: src/CollectionPage.vala:92 src/Resources.vala:287 +#: src/CollectionPage.vala:92 src/Resources.vala:257 msgid "_Duplicate" msgstr "_Duplicar" @@ -2739,43 +2739,43 @@ msgstr "Tela cheia" msgid "S_lideshow" msgstr "Apresentação de s_lides" -#: src/CollectionPage.vala:110 src/Resources.vala:140 ui/direct.ui:111 +#: src/CollectionPage.vala:110 src/Resources.vala:110 ui/direct.ui:111 #: ui/photo.ui:200 msgid "Rotate _Right" msgstr "Girar à _direita" -#: src/CollectionPage.vala:113 src/Resources.vala:145 ui/direct.ui:116 +#: src/CollectionPage.vala:113 src/Resources.vala:115 ui/direct.ui:116 #: ui/photo.ui:205 msgid "Rotate _Left" msgstr "Girar à _esquerda" -#: src/CollectionPage.vala:116 src/Resources.vala:150 ui/direct.ui:121 +#: src/CollectionPage.vala:116 src/Resources.vala:120 ui/direct.ui:121 #: ui/photo.ui:210 msgid "Flip Hori_zontally" msgstr "Inverter hori_zontalmente" -#: src/CollectionPage.vala:117 src/Resources.vala:153 ui/direct.ui:125 +#: src/CollectionPage.vala:117 src/Resources.vala:123 ui/direct.ui:125 #: ui/photo.ui:214 msgid "Flip Verti_cally" msgstr "Inverter verti_calmente" -#: src/CollectionPage.vala:119 src/Resources.vala:187 ui/collection.ui:8 +#: src/CollectionPage.vala:119 src/Resources.vala:157 ui/collection.ui:8 #: ui/direct_context.ui:7 ui/direct.ui:134 ui/event.ui:447 #: ui/photo_context.ui:6 ui/photo.ui:223 msgid "_Enhance" msgstr "_Melhorar" -#: src/CollectionPage.vala:120 src/Resources.vala:215 ui/collection.ui:13 +#: src/CollectionPage.vala:120 src/Resources.vala:185 ui/collection.ui:13 #: ui/direct_context.ui:12 ui/direct.ui:161 ui/event.ui:452 #: ui/photo_context.ui:11 ui/photo.ui:250 msgid "Re_vert to Original" msgstr "Re_verter para o original" -#: src/CollectionPage.vala:122 src/Resources.vala:191 ui/photo.ui:256 +#: src/CollectionPage.vala:122 src/Resources.vala:161 ui/photo.ui:256 msgid "_Copy Color Adjustments" msgstr "_Copiar ajustes de cor" -#: src/CollectionPage.vala:125 src/Resources.vala:195 ui/photo.ui:261 +#: src/CollectionPage.vala:125 src/Resources.vala:165 ui/photo.ui:261 msgid "_Paste Color Adjustments" msgstr "C_olar ajustes de cor" @@ -2783,17 +2783,17 @@ msgstr "C_olar ajustes de cor" msgid "Adjust Date and Time…" msgstr "Ajustar a data e hora…" -#: src/CollectionPage.vala:143 src/Resources.vala:320 ui/collection.ui:108 +#: src/CollectionPage.vala:143 src/Resources.vala:290 ui/collection.ui:108 #: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:361 msgid "Open With E_xternal Editor" msgstr "Abrir com o editor e_xterno" -#: src/CollectionPage.vala:146 src/Resources.vala:322 ui/collection.ui:113 +#: src/CollectionPage.vala:146 src/Resources.vala:292 ui/collection.ui:113 #: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:366 msgid "Open With RA_W Editor" msgstr "Abrir com editor de RA_W" -#: src/CollectionPage.vala:149 src/Resources.vala:168 +#: src/CollectionPage.vala:149 src/Resources.vala:138 msgid "_Play" msgstr "_Reproduzir" @@ -2803,7 +2803,7 @@ msgid_plural "Export Photos/Videos" msgstr[0] "Exportar foto/vídeo" msgstr[1] "Exportar fotos/vídeos" -#: src/CollectionPage.vala:412 src/Dialogs.vala:59 src/PhotoPage.vala:2998 +#: src/CollectionPage.vala:412 src/Dialogs.vala:74 src/PhotoPage.vala:3021 msgid "Export Photo" msgid_plural "Export Photos" msgstr[0] "Exportar foto" @@ -2857,92 +2857,92 @@ msgstr "Aplicando transformações de cor" msgid "Undoing Color Transformations" msgstr "Desfazendo transformações de cor" -#: src/Commands.vala:1007 +#: src/Commands.vala:1006 msgid "Creating New Event" msgstr "Criando novo evento" -#: src/Commands.vala:1008 +#: src/Commands.vala:1007 msgid "Removing Event" msgstr "Removendo evento" -#: src/Commands.vala:1017 +#: src/Commands.vala:1016 msgid "Moving Photos to New Event" msgstr "Movendo fotos para novo evento" -#: src/Commands.vala:1018 +#: src/Commands.vala:1017 msgid "Setting Photos to Previous Event" msgstr "Atribuindo fotos ao evento anterior" -#: src/Commands.vala:1075 +#: src/Commands.vala:1074 msgid "Merging" msgstr "Mesclando" -#: src/Commands.vala:1076 +#: src/Commands.vala:1075 msgid "Unmerging" msgstr "Separando" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Duplicating photos" msgstr "Duplicando fotos" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Removing duplicated photos" msgstr "Removendo fotos duplicadas" -#: src/Commands.vala:1108 +#: src/Commands.vala:1107 #, c-format msgid "Unable to duplicate one photo due to a file error" msgid_plural "Unable to duplicate %d photos due to file errors" msgstr[0] "Não foi possível duplicar uma foto, término com erro de arquivo" msgstr[1] "Não foi possível duplicar %d fotos, término com erros de arquivo" -#: src/Commands.vala:1195 +#: src/Commands.vala:1194 msgid "Restoring previous rating" msgstr "Restaurar avaliação anterior" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Increasing ratings" msgstr "Aumentar avaliação" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Decreasing ratings" msgstr "Diminuir avaliação" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Setting RAW developer" msgstr "Definindo desenvolvedor RAW" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Restoring previous RAW developer" msgstr "Restaurando desenvolvedor RAW anterior" -#: src/Commands.vala:1257 +#: src/Commands.vala:1256 msgid "Set Developer" msgstr "Definir desenvolvedor" -#: src/Commands.vala:1347 +#: src/Commands.vala:1346 msgid "Original photo could not be adjusted." msgstr "A foto original não pôde ser ajustada." -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Adjusting Date and Time" msgstr "Ajustando data e hora" -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Undoing Date and Time Adjustment" msgstr "Desfazendo ajuste de data e hora" -#: src/Commands.vala:1399 +#: src/Commands.vala:1398 msgid "One original photo could not be adjusted." msgid_plural "The following original photos could not be adjusted." msgstr[0] "Uma foto original não pôde ser ajustada." msgstr[1] "As seguintes fotos originais não puderam ser ajustadas." -#: src/Commands.vala:1401 src/Commands.vala:1425 +#: src/Commands.vala:1400 src/Commands.vala:1424 msgid "Time Adjustment Error" msgstr "Erro de ajuste de hora" -#: src/Commands.vala:1423 +#: src/Commands.vala:1422 msgid "Time adjustments could not be undone on the following photo file." msgid_plural "" "Time adjustments could not be undone on the following photo files." @@ -2951,60 +2951,60 @@ msgstr[0] "" msgstr[1] "" "Os ajustes de hora não puderam ser desfeitos nos seguintes arquivos de fotos." -#: src/Commands.vala:1637 src/Commands.vala:1660 +#: src/Commands.vala:1636 src/Commands.vala:1659 msgid "Create Tag" msgstr "Criar etiqueta" -#: src/Commands.vala:1695 +#: src/Commands.vala:1694 #, c-format msgid "Move Tag “%s”" msgstr "Mover etiqueta “%s”" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Move Photos to Trash" msgstr "Mover fotos para a lixeira" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Restore Photos from Trash" msgstr "Restaurar fotos da lixeira" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Move the photos to the Shotwell trash" msgstr "Mover as fotos para a lixeira do Shotwell" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Restore the photos back to the Shotwell library" msgstr "Restaurar as fotos selecionadas para a biblioteca" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Moving Photos to Trash" msgstr "Movendo fotos para a lixeira" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Restoring Photos From Trash" msgstr "Restaurando fotos da lixeira" -#: src/Commands.vala:2453 +#: src/Commands.vala:2452 msgid "Flag selected photos" msgstr "Marcar fotos selecionadas" -#: src/Commands.vala:2454 +#: src/Commands.vala:2453 msgid "Unflag selected photos" msgstr "Desmarcar fotos selecionadas" -#: src/Commands.vala:2455 +#: src/Commands.vala:2454 msgid "Flagging selected photos" msgstr "Marcando fotos selecionadas" -#: src/Commands.vala:2456 +#: src/Commands.vala:2455 msgid "Unflagging selected photos" msgstr "Desmarcando fotos selecionadas" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Flag" msgstr "Marcar" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Unflag" msgstr "Desmarcar" @@ -3043,7 +3043,7 @@ msgstr "" msgid "Database file:" msgstr "Arquivo de banco de dados:" -#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:782 +#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:806 msgid "_Import" msgstr "Parar _importação" @@ -3055,7 +3055,7 @@ msgstr "Importação de aplicativo" msgid "Import media _from:" msgstr "Impo_rtação de mídia de:" -#: src/data_imports/DataImportsUI.vala:415 src/publishing/PublishingUI.vala:521 +#: src/data_imports/DataImportsUI.vala:415 src/publishing/PublishingUI.vala:524 msgid "_Close" msgstr "Fe_char" @@ -3125,10 +3125,11 @@ msgid_plural "This will remove the tag “%s” from %d photos. Continue?" msgstr[0] "Isto irá remover a etiqueta “%s” de uma foto. Continuar?" msgstr[1] "Isto irá remover a etiqueta “%s” de %d fotos. Continuar?" -#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:721 -#: src/Resources.vala:159 src/Resources.vala:362 src/Resources.vala:415 -#: src/Resources.vala:659 ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 -#: ui/trash.ui:216 ui/trash.ui:258 +#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:58 +#: src/Dialogs.vala:734 src/Resources.vala:129 src/Resources.vala:310 +#: src/Resources.vala:341 src/Resources.vala:394 src/Resources.vala:734 +#: ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 ui/trash.ui:216 +#: ui/trash.ui:258 msgid "_Delete" msgstr "_Apagar" @@ -3155,11 +3156,20 @@ msgstr[1] "" msgid "_Switch Developer" msgstr "_Mudar Desenvolvedor" -#: src/Dialogs.vala:59 +#: src/Dialogs.vala:54 +#, c-format +#| msgid "This will remove the tag “%s” from one photo. Continue?" +#| msgid_plural "This will remove the tag “%s” from %d photos. Continue?" +msgid "This will remove the face “%s” from one photo. Continue?" +msgid_plural "This will remove the face “%s” from %d photos. Continue?" +msgstr[0] "Isto irá remover a face “%s” de uma foto. Continuar?" +msgstr[1] "Isto irá remover a face “%s” de %d fotos. Continuar?" + +#: src/Dialogs.vala:74 msgid "Export Video" msgstr "Exportar vídeo" -#: src/Dialogs.vala:84 +#: src/Dialogs.vala:99 msgid "Export Photos" msgstr "Exportar fotos" @@ -3168,7 +3178,7 @@ msgstr "Exportar fotos" #. if we can't copy an image over for editing in an external tool. #. Did we fail because we can't write to this directory? #. Yes - display an alternate error message here. -#: src/Dialogs.vala:112 +#: src/Dialogs.vala:127 #, c-format msgid "" "Shotwell couldn’t create a file for editing this photo because you do not " @@ -3177,7 +3187,7 @@ msgstr "" "O Shotwell não pôde criar um arquivo para edição desta foto pelo fato de " "você não possuir permissão de gravação em %s." -#: src/Dialogs.vala:121 +#: src/Dialogs.vala:136 msgid "" "Unable to export the following photo due to a file error.\n" "\n" @@ -3185,7 +3195,7 @@ msgstr "" "Não foi possível exportar a seguinte foto, término com erro de arquivo.\n" "\n" -#: src/Dialogs.vala:127 +#: src/Dialogs.vala:142 msgid "" "\n" "\n" @@ -3195,35 +3205,35 @@ msgstr "" "\n" "Você deseja continuar exportando?" -#: src/Dialogs.vala:128 +#: src/Dialogs.vala:143 msgid "Con_tinue" msgstr "Con_tinuar" -#: src/Dialogs.vala:139 +#: src/Dialogs.vala:153 msgid "Save Details…" msgstr "Salvar detalhes…" -#: src/Dialogs.vala:140 +#: src/Dialogs.vala:154 msgid "Save Details" msgstr "Salvar Detalhes" -#: src/Dialogs.vala:155 +#: src/Dialogs.vala:169 #, c-format msgid "(and %d more)\n" msgstr "(e %d outras)\n" -#: src/Dialogs.vala:208 +#: src/Dialogs.vala:222 msgid "Import Results Report" msgstr "Importar Formulários de Resultados" -#: src/Dialogs.vala:212 +#: src/Dialogs.vala:226 #, c-format msgid "Attempted to import %d file." msgid_plural "Attempted to import %d files." msgstr[0] "Tentada a importação de %d arquivo." msgstr[1] "Tentada a importação de %d arquivos." -#: src/Dialogs.vala:215 +#: src/Dialogs.vala:229 #, c-format msgid "Of these, %d file was successfully imported." msgid_plural "Of these, %d files were successfully imported." @@ -3233,30 +3243,30 @@ msgstr[1] "Dessa tentativa, %d arquivos foram importados com sucesso." #. #. Duplicates #. -#: src/Dialogs.vala:227 +#: src/Dialogs.vala:241 msgid "Duplicate Photos/Videos Not Imported:" msgstr "Duplicar Fotos/Vídeos Não importados:" -#: src/Dialogs.vala:231 +#: src/Dialogs.vala:245 msgid "duplicates existing media item" msgstr "duplica itens de mídia existentes" #. #. Files Not Imported Due to Camera Errors #. -#: src/Dialogs.vala:242 +#: src/Dialogs.vala:256 msgid "Photos/Videos Not Imported Due to Camera Errors:" msgstr "As Fotos/Vídeos não forma Importadas devido à erros com a Câmera:" -#: src/Dialogs.vala:245 src/Dialogs.vala:260 src/Dialogs.vala:275 -#: src/Dialogs.vala:291 src/Dialogs.vala:306 src/Dialogs.vala:320 +#: src/Dialogs.vala:259 src/Dialogs.vala:274 src/Dialogs.vala:289 +#: src/Dialogs.vala:305 src/Dialogs.vala:320 src/Dialogs.vala:334 msgid "error message:" msgstr "mensagem de erro:" #. #. Files Not Imported Because They Weren't Recognized as Photos or Videos #. -#: src/Dialogs.vala:256 +#: src/Dialogs.vala:270 msgid "Files Not Imported Because They Weren’t Recognized as Photos or Videos:" msgstr "" "Arquivos não foram importados porque não foram reconhecidos como Fotos ou " @@ -3265,7 +3275,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands #. -#: src/Dialogs.vala:271 +#: src/Dialogs.vala:285 msgid "" "Photos/Videos Not Imported Because They Weren’t in a Format Shotwell " "Understands:" @@ -3276,7 +3286,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library #. -#: src/Dialogs.vala:286 +#: src/Dialogs.vala:300 msgid "" "Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into its " "Library:" @@ -3284,7 +3294,7 @@ msgstr "" "As Fotos/Vídeos não foram importadas pois o Shotwell não pôde copiá-las para " "sua Biblioteca:" -#: src/Dialogs.vala:290 +#: src/Dialogs.vala:304 #, c-format msgid "" "couldn’t copy %s\n" @@ -3296,39 +3306,39 @@ msgstr "" #. #. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt #. -#: src/Dialogs.vala:302 +#: src/Dialogs.vala:316 msgid "Photos/Videos Not Imported Because Files Are Corrupt:" msgstr "Fotos/Vídeos não importados porque os arquivos estão corrompidos:" #. #. Photos/Videos Not Imported for Other Reasons #. -#: src/Dialogs.vala:317 +#: src/Dialogs.vala:331 msgid "Photos/Videos Not Imported for Other Reasons:" msgstr "As Fotos/Vídeos não foram importadas por outras razões:" -#: src/Dialogs.vala:337 +#: src/Dialogs.vala:351 #, c-format msgid "1 duplicate photo was not imported:\n" msgid_plural "%d duplicate photos were not imported:\n" msgstr[0] "1 foto duplicada não foi importada:\n" msgstr[1] "%d fotos duplicadas não foram importadas:\n" -#: src/Dialogs.vala:340 +#: src/Dialogs.vala:354 #, c-format msgid "1 duplicate video was not imported:\n" msgid_plural "%d duplicate videos were not imported:\n" msgstr[0] "1 vídeo duplicado não foi importado:\n" msgstr[1] "%d vídeos duplicados não foram importados:\n" -#: src/Dialogs.vala:343 +#: src/Dialogs.vala:357 #, c-format msgid "1 duplicate photo/video was not imported:\n" msgid_plural "%d duplicate photos/videos were not imported:\n" msgstr[0] "1 foto/vídeo duplicado não foi importado:\n" msgstr[1] "%d fotos/vídeos duplicados não foram importados:\n" -#: src/Dialogs.vala:357 +#: src/Dialogs.vala:371 #, c-format msgid "1 photo failed to import due to a file or hardware error:\n" msgid_plural "%d photos failed to import due to a file or hardware error:\n" @@ -3338,7 +3348,7 @@ msgstr[1] "" "%d fotos falharam ao serem importadas, ocorreu um erro de arquivo ou de " "hardware:\n" -#: src/Dialogs.vala:360 +#: src/Dialogs.vala:374 #, c-format msgid "1 video failed to import due to a file or hardware error:\n" msgid_plural "%d videos failed to import due to a file or hardware error:\n" @@ -3348,7 +3358,7 @@ msgstr[1] "" "%d vídeos falharam ao serem importados devido a um erro de arquivo ou " "hardware:\n" -#: src/Dialogs.vala:363 +#: src/Dialogs.vala:377 #, c-format msgid "1 photo/video failed to import due to a file or hardware error:\n" msgid_plural "" @@ -3360,7 +3370,7 @@ msgstr[1] "" "%d fotos/vídeos falharam ao serem importados devido a um erro de arquivo ou " "hardware:\n" -#: src/Dialogs.vala:366 +#: src/Dialogs.vala:380 #, c-format msgid "1 file failed to import due to a file or hardware error:\n" msgid_plural "%d files failed to import due to a file or hardware error:\n" @@ -3370,7 +3380,7 @@ msgstr[1] "" "%d arquivos falharam ao serem importados devido a um erro de arquivo ou " "hardware:\n" -#: src/Dialogs.vala:380 +#: src/Dialogs.vala:394 #, c-format msgid "" "1 photo failed to import because the photo library folder was not writable:\n" @@ -3384,7 +3394,7 @@ msgstr[1] "" "%d fotos falharam ao serem importadas pelo fato da pasta de biblioteca de " "fotos não ser gravável:\n" -#: src/Dialogs.vala:383 +#: src/Dialogs.vala:397 #, c-format msgid "" "1 video failed to import because the photo library folder was not writable:\n" @@ -3398,7 +3408,7 @@ msgstr[1] "" "%d vídeos falharam ao serem importados pelo fato da pasta de biblioteca de " "fotos não ser gravável:\n" -#: src/Dialogs.vala:386 +#: src/Dialogs.vala:400 #, c-format msgid "" "1 photo/video failed to import because the photo library folder was not " @@ -3413,7 +3423,7 @@ msgstr[1] "" "%d fotos/vídeos falharam ao serem importados pelo fato da pasta de " "biblioteca de fotos não ser gravável:\n" -#: src/Dialogs.vala:389 +#: src/Dialogs.vala:403 #, c-format msgid "" "1 file failed to import because the photo library folder was not writable:\n" @@ -3427,14 +3437,14 @@ msgstr[1] "" "%d arquivos falharam ao serem importados pelo fato da pasta de biblioteca de " "fotos não ser gravável:\n" -#: src/Dialogs.vala:403 +#: src/Dialogs.vala:417 #, c-format msgid "1 photo failed to import due to a camera error:\n" msgid_plural "%d photos failed to import due to a camera error:\n" msgstr[0] "1 foto falhou ao ser importada, ocorreu um erro de câmera:\n" msgstr[1] "%d fotos falharam ao serem importadas, ocorreu um erro de câmera:\n" -#: src/Dialogs.vala:406 +#: src/Dialogs.vala:420 #, c-format msgid "1 video failed to import due to a camera error:\n" msgid_plural "%d videos failed to import due to a camera error:\n" @@ -3442,7 +3452,7 @@ msgstr[0] "1 vídeo falhou ao ser importado devido a um erro da câmera:\n" msgstr[1] "" "%d vídeos falharam ao serem importados devido a um erro da câmera:\n" -#: src/Dialogs.vala:409 +#: src/Dialogs.vala:423 #, c-format msgid "1 photo/video failed to import due to a camera error:\n" msgid_plural "%d photos/videos failed to import due to a camera error:\n" @@ -3450,7 +3460,7 @@ msgstr[0] "1 foto/vídeo falhou ao ser importado devido a um erro da câmera:\n" msgstr[1] "" "%d fotos/vídeos falharam ao serem importados devido a um erro da câmera:\n" -#: src/Dialogs.vala:412 +#: src/Dialogs.vala:426 #, c-format msgid "1 file failed to import due to a camera error:\n" msgid_plural "%d files failed to import due to a camera error:\n" @@ -3458,21 +3468,21 @@ msgstr[0] "1 arquivo falhou ao ser importado devido a um erro da câmera:\n" msgstr[1] "" "%d arquivos falharam ao serem importados devido a um erro da câmera:\n" -#: src/Dialogs.vala:426 +#: src/Dialogs.vala:440 #, c-format msgid "1 photo failed to import because it was corrupt:\n" msgid_plural "%d photos failed to import because they were corrupt:\n" msgstr[0] "1 foto falhou na importação porque estava corrompida:\n" msgstr[1] "%d fotos falharam na importação porque estavam corrompidas:\n" -#: src/Dialogs.vala:429 +#: src/Dialogs.vala:443 #, c-format msgid "1 video failed to import because it was corrupt:\n" msgid_plural "%d videos failed to import because they were corrupt:\n" msgstr[0] "1 vídeo falhou na importação porque estava corrompido:\n" msgstr[1] "%d vídeos falharam na importação porque estavam corrompidos:\n" -#: src/Dialogs.vala:432 +#: src/Dialogs.vala:446 #, c-format msgid "1 photo/video failed to import because it was corrupt:\n" msgid_plural "%d photos/videos failed to import because they were corrupt:\n" @@ -3480,7 +3490,7 @@ msgstr[0] "1 foto/vídeo falhou na importação porque estava corrompido(a):\n" msgstr[1] "" "%d vídeos/fotos falharam na importação porque estavam corrompidos:\n" -#: src/Dialogs.vala:435 +#: src/Dialogs.vala:449 #, c-format msgid "1 file failed to import because it was corrupt:\n" msgid_plural "%d files failed to import because it was corrupt:\n" @@ -3491,7 +3501,7 @@ msgstr[1] "%d arquivos falharam na importação porque estavam corrompidos:\n" #. standard container formats are supported, it's just that the streams in them #. might or might not be interpretable), so this message does not need to be #. media specific -#: src/Dialogs.vala:452 +#: src/Dialogs.vala:466 #, c-format msgid "1 unsupported photo skipped:\n" msgid_plural "%d unsupported photos skipped:\n" @@ -3500,56 +3510,56 @@ msgstr[1] "%d fotos sem suporte foram puladas:\n" #. we have no notion of "non-video" video files right now in Shotwell, so this #. message doesn't need to be media specific -#: src/Dialogs.vala:467 +#: src/Dialogs.vala:481 #, c-format msgid "1 non-image file skipped.\n" msgid_plural "%d non-image files skipped.\n" msgstr[0] "Pulando um arquivo não-imagem.\n" msgstr[1] "Pulando %d arquivos não-imagem.\n" -#: src/Dialogs.vala:478 +#: src/Dialogs.vala:492 #, c-format msgid "1 photo skipped due to user cancel:\n" msgid_plural "%d photos skipped due to user cancel:\n" msgstr[0] "1 foto pulada pelo cancelamento do usuário:\n" msgstr[1] "%d fotos puladas pelo cancelamento do usuário:\n" -#: src/Dialogs.vala:481 +#: src/Dialogs.vala:495 #, c-format msgid "1 video skipped due to user cancel:\n" msgid_plural "%d videos skipped due to user cancel:\n" msgstr[0] "1 vídeo ignorado por cancelamento do usuário:\n" msgstr[1] "%d vídeos ignorados por cancelamento do usuário:\n" -#: src/Dialogs.vala:484 +#: src/Dialogs.vala:498 #, c-format msgid "1 photo/video skipped due to user cancel:\n" msgid_plural "%d photos/videos skipped due to user cancel:\n" msgstr[0] "1 foto/vídeo ignorado por cancelamento do usuário:\n" msgstr[1] "%d fotos/vídeos ignorados por cancelamento do usuário:\n" -#: src/Dialogs.vala:487 +#: src/Dialogs.vala:501 #, c-format msgid "1 file skipped due to user cancel:\n" msgid_plural "%d file skipped due to user cancel:\n" msgstr[0] "1 arquivo ignorado por cancelamento do usuário:\n" msgstr[1] "%d arquivos ignorados por cancelamento do usuário:\n" -#: src/Dialogs.vala:501 +#: src/Dialogs.vala:515 #, c-format msgid "1 photo successfully imported.\n" msgid_plural "%d photos successfully imported.\n" msgstr[0] "1 foto foi importada com sucesso.\n" msgstr[1] "%d fotos foram importadas com sucesso.\n" -#: src/Dialogs.vala:504 +#: src/Dialogs.vala:518 #, c-format msgid "1 video successfully imported.\n" msgid_plural "%d videos successfully imported.\n" msgstr[0] "1 vídeo importado com sucesso.\n" msgstr[1] "%d vídeos importados com sucesso.\n" -#: src/Dialogs.vala:507 +#: src/Dialogs.vala:521 #, c-format msgid "1 photo/video successfully imported.\n" msgid_plural "%d photos/videos successfully imported.\n" @@ -3558,64 +3568,64 @@ msgstr[1] "%d fotos/vídeos importados com sucesso.\n" #. if no media items were imported at all (i.e. an empty directory attempted), need to at least #. report that nothing was imported -#: src/Dialogs.vala:523 +#: src/Dialogs.vala:537 msgid "No photos or videos imported.\n" msgstr "Sem fotos ou vídeos importados.\n" -#: src/Dialogs.vala:530 src/Dialogs.vala:549 +#: src/Dialogs.vala:544 src/Dialogs.vala:563 msgid "Import Complete" msgstr "Importação concluída" -#: src/Dialogs.vala:650 src/Resources.vala:232 +#: src/Dialogs.vala:663 src/Resources.vala:202 msgid "Rename Event" msgstr "Renomear evento" -#: src/Dialogs.vala:650 +#: src/Dialogs.vala:663 msgid "Name:" msgstr "Nome:" #. Dialog title -#: src/Dialogs.vala:661 +#: src/Dialogs.vala:674 msgctxt "Dialog Title" msgid "Edit Title" msgstr "Editar título" -#: src/Dialogs.vala:662 src/Properties.vala:343 +#: src/Dialogs.vala:675 src/Properties.vala:344 msgid "Title:" msgstr "Título:" #. Dialog title -#: src/Dialogs.vala:678 src/Resources.vala:308 +#: src/Dialogs.vala:691 src/Resources.vala:278 msgid "Edit Event Comment" msgstr "Editar comentário de evento" -#: src/Dialogs.vala:679 +#: src/Dialogs.vala:692 msgid "Edit Photo/Video Comment" msgstr "Editar comentário de foto/vídeo" -#: src/Dialogs.vala:680 src/Properties.vala:631 +#: src/Dialogs.vala:693 src/Properties.vala:632 msgid "Comment:" msgstr "Comentário:" -#: src/Dialogs.vala:696 +#: src/Dialogs.vala:709 msgid "Remove and _Trash File" msgid_plural "Remove and _Trash Files" msgstr[0] "Remover e _apagar arquivo" msgstr[1] "Remover e _apagar arquivos" -#: src/Dialogs.vala:700 +#: src/Dialogs.vala:713 msgid "_Remove From Library" msgstr "_Remover da biblioteca" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edit?" msgstr "Reverter edição externa?" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edits?" msgstr "Reverter edições externas?" -#: src/Dialogs.vala:745 +#: src/Dialogs.vala:758 #, c-format msgid "This will destroy all changes made to the external file. Continue?" msgid_plural "" @@ -3627,34 +3637,34 @@ msgstr[1] "" "Isto irá destruir todas as alterações feitas para %d arquivos externos. " "Continuar?" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edit" msgstr "Re_verter edição externa" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edits" msgstr "Re_verter edições externas" -#: src/Dialogs.vala:770 +#: src/Dialogs.vala:783 #, c-format msgid "This will remove the photo from the library. Continue?" msgid_plural "This will remove %d photos from the library. Continue?" msgstr[0] "Isto irá remover a foto da biblioteca. Continuar?" msgstr[1] "Isto irá remover %d fotos da biblioteca. Continuar?" -#: src/Dialogs.vala:777 src/Resources.vala:174 +#: src/Dialogs.vala:790 src/Resources.vala:144 msgid "_Remove" msgstr "_Remover" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photo From Library" msgstr "Remover fotos da biblioteca" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photos From Library" msgstr "Remover fotos da biblioteca" -#: src/Dialogs.vala:798 +#: src/Dialogs.vala:811 #, c-format msgid "" "\n" @@ -3673,13 +3683,13 @@ msgstr[1] "" "\n" "e %d outras." -#: src/Dialogs.vala:822 src/Dialogs.vala:849 +#: src/Dialogs.vala:835 src/Dialogs.vala:862 msgid "Tags (separated by commas):" msgstr "Etiquetas (separadas por vírgulas):" #. This function is used to determine whether or not files should be copied or linked when imported. #. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. -#: src/Dialogs.vala:908 +#: src/Dialogs.vala:921 msgid "" "Shotwell can copy the photos into your library folder or it can import them " "without copying." @@ -3687,31 +3697,31 @@ msgstr "" "Shotwell pode copiar as fotos na sua pasta de biblioteca ou pode importá-los " "sem copiar." -#: src/Dialogs.vala:913 +#: src/Dialogs.vala:926 msgid "Co_py Photos" msgstr "Co_piar fotos" -#: src/Dialogs.vala:914 +#: src/Dialogs.vala:927 msgid "_Import in Place" msgstr "_Importar no local" -#: src/Dialogs.vala:915 +#: src/Dialogs.vala:928 msgid "Import to Library" msgstr "Importar para a biblioteca" -#: src/Dialogs.vala:925 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:938 src/PhotoPage.vala:2897 msgid "Remove From Library" msgstr "Remover da biblioteca" -#: src/Dialogs.vala:926 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:939 src/PhotoPage.vala:2897 msgid "Removing Photo From Library" msgstr "Removendo fotos da biblioteca" -#: src/Dialogs.vala:926 +#: src/Dialogs.vala:939 msgid "Removing Photos From Library" msgstr "Removendo fotos da biblioteca" -#: src/Dialogs.vala:940 +#: src/Dialogs.vala:953 #, c-format msgid "" "This will remove the photo/video from your Shotwell library. Would you also " @@ -3734,7 +3744,7 @@ msgstr[1] "" "\n" "Essa ação não poderá ser desfeita." -#: src/Dialogs.vala:944 +#: src/Dialogs.vala:957 #, c-format msgid "" "This will remove the video from your Shotwell library. Would you also like " @@ -3757,7 +3767,7 @@ msgstr[1] "" "\n" "Essa ação não poderá ser desfeita." -#: src/Dialogs.vala:948 +#: src/Dialogs.vala:961 #, c-format msgid "" "This will remove the photo from your Shotwell library. Would you also like " @@ -3780,7 +3790,7 @@ msgstr[1] "" "\n" "Essa ação não poderá ser desfeita." -#: src/Dialogs.vala:980 +#: src/Dialogs.vala:993 #, c-format msgid "" "The photo or video cannot be moved to your desktop trash. Delete this file?" @@ -3792,7 +3802,7 @@ msgstr[1] "" "%d fotos/vídeos não podem ser movidos para lixeira. Excluir esses arquivos?" #. Alert the user that the files were not removed. -#: src/Dialogs.vala:997 +#: src/Dialogs.vala:1010 #, c-format msgid "The photo or video cannot be deleted." msgid_plural "%d photos/videos cannot be deleted." @@ -3831,7 +3841,7 @@ msgstr "" msgid "Unable open photo %s. Sorry." msgstr "Não foi possível abrir a foto %s. Desculpe-me." -#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:176 ui/direct.ui:8 +#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:146 ui/direct.ui:8 #: ui/textentrydialog.ui:33 msgid "_Save" msgstr "_Salvar" @@ -3985,35 +3995,35 @@ msgstr "Exportar _metadados:" #. We're installed system-wide, so use the system help. #. We're being run from the build directory; we'll have to handle clicks to this #. link manually ourselves, due to a limitation of help: URIs. -#: src/dialogs/Preferences.vala:115 src/dialogs/Preferences.vala:119 +#: src/dialogs/Preferences.vala:108 src/dialogs/Preferences.vala:112 msgid "(Help)" msgstr "(Ajuda)" -#: src/dialogs/Preferences.vala:123 +#: src/dialogs/Preferences.vala:116 #, c-format msgid "Year%sMonth%sDay" msgstr "Ano%sMês%sDia" -#: src/dialogs/Preferences.vala:125 +#: src/dialogs/Preferences.vala:118 #, c-format msgid "Year%sMonth" msgstr "Ano%sMês" -#: src/dialogs/Preferences.vala:127 +#: src/dialogs/Preferences.vala:120 #, c-format msgid "Year%sMonth-Day" msgstr "Ano%sMês-Dia" -#: src/dialogs/Preferences.vala:129 +#: src/dialogs/Preferences.vala:122 msgid "Year-Month-Day" msgstr "Ano-Mês-Dia" -#: src/dialogs/Preferences.vala:130 src/editing_tools/EditingTools.vala:760 +#: src/dialogs/Preferences.vala:123 src/editing_tools/EditingTools.vala:760 msgid "Custom" msgstr "Personalizar" #. Invalid pattern. -#: src/dialogs/Preferences.vala:369 +#: src/dialogs/Preferences.vala:351 msgid "Invalid pattern" msgstr "Padrão inválido" @@ -4201,7 +4211,7 @@ msgstr "30 × 40 cm" msgid "A3 (297 × 420 mm)" msgstr "A3 (297 × 420 mm)" -#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:398 +#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:399 msgid "Size:" msgstr "Tamanho:" @@ -4219,8 +4229,8 @@ msgid "_Reset" msgstr "_Reiniciar" #. fit both on the top line, emit and move on -#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:439 -#: src/Properties.vala:443 src/Properties.vala:450 +#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:440 +#: src/Properties.vala:444 src/Properties.vala:451 msgid "Exposure:" msgstr "Exposição:" @@ -4294,7 +4304,7 @@ msgstr "Expansão de contraste" msgid "Angle:" msgstr "Ângulo:" -#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:203 +#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:173 #: ui/direct.ui:144 ui/photo.ui:233 msgid "_Straighten" msgstr "En_direitar" @@ -4306,14 +4316,14 @@ msgid_plural "%d Photos/Videos" msgstr[0] "%d fotos/vídeos" msgstr[1] "%d foto/vídeo" -#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:358 +#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:359 #, c-format msgid "%d Video" msgid_plural "%d Videos" msgstr[0] "%d vídeo" msgstr[1] "%d vídeos" -#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:356 +#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:357 #, c-format msgid "%d Photo" msgid_plural "%d Photos" @@ -4392,6 +4402,72 @@ msgstr "Sobrescrever _todas" msgid "Export" msgstr "Exportar" +#: src/faces/FacesBranch.vala:89 src/Resources.vala:305 src/Resources.vala:306 +#: ui/faces.ui:403 +msgid "Faces" +msgstr "Faces" + +#: src/faces/FacesTool.vala:115 +msgid "Detect faces…" +msgstr "Detectar faces…" + +#: src/faces/FacesTool.vala:140 +#| msgid "Set the crop for this photo" +msgid "Detect faces on this photo" +msgstr "Detectar faces nesta foto" + +#: src/faces/FacesTool.vala:142 +msgid "Cancel face detection" +msgstr "Cancelar detecção facial" + +#: src/faces/FacesTool.vala:146 +msgid "Close the Faces tool without saving changes" +msgstr "Fechar a ferramenta de Faces sem salvar as alterações" + +#: src/faces/FacesTool.vala:153 src/faces/FacesTool.vala:185 +msgid "Click and drag to tag a face" +msgstr "Clique e arraste para marcar uma face" + +#: src/faces/FacesTool.vala:180 +#, c-format +msgid "Click to edit face %s" +msgstr "Clique para editar a face %s" + +#: src/faces/FacesTool.vala:189 +msgid "Stop dragging to add your face and name it." +msgstr "Pare de arrastar para adicionar sua face e dar um nome a ela." + +#: src/faces/FacesTool.vala:193 +msgid "Type a name for this face, then press Enter" +msgstr "Digite um nome para essa face e, então, pressione Enter" + +#: src/faces/FacesTool.vala:197 +msgid "Move or modify the face shape or name and press Enter" +msgstr "Mova ou modifique a forma da face ou nomeia e pressione Enter" + +#: src/faces/FacesTool.vala:201 +#| msgid "Settings" +msgid "Detecting faces" +msgstr "Detectando faces" + +#: src/faces/FacesTool.vala:212 +msgid "If you don’t set the name of unknown faces they won’t be saved." +msgstr "" +"Se você não definir o nome de faces desconhecidas, elas não serão salvas." + +#: src/faces/FacesTool.vala:233 +msgid "Save changes and close the Faces tool" +msgstr "Salvar alterações e fechar a ferramenta Faces" + +#: src/faces/FacesTool.vala:235 +#| msgid "Lose changes to %s?" +msgid "No changes to save" +msgstr "Nenhuma alteração para salvar" + +#: src/faces/FacesTool.vala:956 +msgid "Error trying to spawn face detection program:\n" +msgstr "Erro ao tentar iniciar programa de detecção de face:\n" + #: src/folders/FoldersBranch.vala:144 msgid "Folders" msgstr "Pastas" @@ -4400,8 +4476,18 @@ msgstr "Pastas" msgid "Browse the library’s folder structure" msgstr "Navegue na estrutura de pasta da biblioteca" -#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1098 -#: src/SearchFilter.vala:1099 +#: src/import-roll/ImportRollBranch.vala:44 +#| msgid "_Import" +msgid "Imports" +msgstr "Importações" + +#: src/import-roll/ImportRollBranch.vala:44 +#| msgid "Browse the library’s folder structure" +msgid "Browse the library’s import history" +msgstr "Navegue na histórico de importação da biblioteca" + +#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1124 +#: src/SearchFilter.vala:1125 msgid "Flagged" msgstr "Marcadas" @@ -4423,7 +4509,7 @@ msgid "Last Import" msgstr "Última importação" #: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 -#: ui/preferences_dialog.ui:512 +#: ui/preferences_dialog.ui:465 msgid "Library" msgstr "Biblioteca" @@ -4431,27 +4517,27 @@ msgstr "Biblioteca" msgid "Organize and browse your photos" msgstr "Organize e navegue por suas fotos" -#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1079 +#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1105 msgid "Photos" msgstr "Fotos" -#: src/library/LibraryWindow.vala:508 +#: src/library/LibraryWindow.vala:532 msgid "Import From Folder" msgstr "Importa da pasta" -#: src/library/LibraryWindow.vala:515 +#: src/library/LibraryWindow.vala:539 msgid "Recurse Into Subfolders" msgstr "Recursividade em subpastas" -#: src/library/LibraryWindow.vala:583 ui/trash.ui:288 +#: src/library/LibraryWindow.vala:607 ui/trash.ui:288 msgid "Empty Trash" msgstr "Esvaziar lixeira" -#: src/library/LibraryWindow.vala:583 +#: src/library/LibraryWindow.vala:607 msgid "Emptying Trash…" msgstr "Esvaziando lixeira…" -#: src/library/LibraryWindow.vala:779 +#: src/library/LibraryWindow.vala:803 #, c-format msgid "" "Shotwell is configured to import photos to your home directory.\n" @@ -4464,33 +4550,33 @@ msgstr "" "%s.\n" "Você deseja continuar a importação de fotos?" -#: src/library/LibraryWindow.vala:782 ui/preferences_dialog.ui:142 +#: src/library/LibraryWindow.vala:806 ui/preferences_dialog.ui:86 msgid "Library Location" msgstr "Localização da biblioteca" #. TODO: Specify which directory/file. -#: src/library/LibraryWindow.vala:795 +#: src/library/LibraryWindow.vala:819 msgid "Photos cannot be imported from this directory." msgstr "Fotos não podem ser importadas deste diretório." -#: src/library/LibraryWindow.vala:1075 +#: src/library/LibraryWindow.vala:1099 #, c-format msgid "%s (%d%%)" msgstr "%s (%d%%)" -#: src/library/LibraryWindow.vala:1119 src/library/LibraryWindow.vala:1130 +#: src/library/LibraryWindow.vala:1143 src/library/LibraryWindow.vala:1154 msgid "Updating library…" msgstr "Atualizando biblioteca…" -#: src/library/LibraryWindow.vala:1136 +#: src/library/LibraryWindow.vala:1160 msgid "Preparing to auto-import photos…" msgstr "Preparando para auto-importação de fotos…" -#: src/library/LibraryWindow.vala:1141 +#: src/library/LibraryWindow.vala:1165 msgid "Auto-importing photos…" msgstr "Auto-importação de fotos…" -#: src/library/LibraryWindow.vala:1149 +#: src/library/LibraryWindow.vala:1173 msgid "Writing metadata to files…" msgstr "Escrevendo metadados para arquivos…" @@ -4510,7 +4596,7 @@ msgstr "Lixeira" msgid "Trash is empty" msgstr "A lixeira está vazia" -#: src/library/TrashPage.vala:110 +#: src/library/TrashPage.vala:110 ui/faces.ui:469 msgid "Delete" msgstr "Apagar" @@ -4558,42 +4644,42 @@ msgstr "" msgid "Unknown error attempting to verify Shotwell’s database: %s" msgstr "Erro desconhecido ao tentar verificar o banco de dados do Shotwell: %s" -#: src/main.vala:104 +#: src/main.vala:108 msgid "Loading Shotwell" msgstr "Carregando Shotwell" -#: src/main.vala:303 +#: src/main.vala:320 msgid "Path to Shotwell’s private data" msgstr "Caminho para os dados privados do Shotwell" -#: src/main.vala:303 +#: src/main.vala:320 msgid "DIRECTORY" msgstr "DIRETÓRIO" -#: src/main.vala:307 +#: src/main.vala:324 msgid "Do not monitor library directory at runtime for changes" msgstr "" "Não monitora o diretório da biblioteca durante o tempo de execução para " "mudanças" -#: src/main.vala:311 +#: src/main.vala:328 msgid "Don’t display startup progress meter" msgstr "Não exibe a medida do progresso de inicialização" -#: src/main.vala:315 +#: src/main.vala:332 msgid "Show the application’s version" msgstr "Mostra a versão do aplicativo" -#: src/main.vala:319 +#: src/main.vala:336 msgid "Start the application in fullscreen mode" msgstr "Inicia o aplicativo em modo tela cheia" #. init GTK (valac has already called g_threads_init()) -#: src/main.vala:356 +#: src/main.vala:373 msgid "[FILE]" msgstr "[ARQUIVO]" -#: src/main.vala:360 +#: src/main.vala:380 #, c-format msgid "Run “%s --help” to see a full list of available command line options.\n" msgstr "" @@ -4605,11 +4691,11 @@ msgstr "" msgid "Unable to process monitoring updates: %s" msgstr "Não foi possível processar as atualizações monitoradas: %s" -#: src/MediaPage.vala:158 +#: src/MediaPage.vala:157 msgid "Adjust the size of the thumbnails" msgstr "Ajustar o tamanho das miniaturas" -#: src/MediaPage.vala:502 +#: src/MediaPage.vala:500 #, c-format msgid "" "Shotwell was unable to play the selected video:\n" @@ -4618,34 +4704,34 @@ msgstr "" "Shotwell foi incapaz de reproduzir o vídeo selecionado:\n" "%s" -#: src/Page.vala:1327 +#: src/Page.vala:1324 msgid "No photos/videos" msgstr "Sem fotos/vídeos" -#: src/Page.vala:1331 +#: src/Page.vala:1328 msgid "No photos/videos found which match the current filter" msgstr "Nenhuma foto ou vídeo encontrados que correspondam ao filtro atual" -#: src/Page.vala:2644 +#: src/Page.vala:2641 msgid "Photos cannot be exported to this directory." msgstr "Fotos não podem ser exportadas para este diretório." #. previous button -#: src/PhotoPage.vala:538 +#: src/PhotoPage.vala:550 msgid "Previous photo" msgstr "Foto anterior" #. next button -#: src/PhotoPage.vala:544 +#: src/PhotoPage.vala:556 msgid "Next photo" msgstr "Próxima foto" -#: src/PhotoPage.vala:1850 +#: src/PhotoPage.vala:1862 #, c-format msgid "Photo source file missing: %s" msgstr "Faltando arquivo fonte da foto: %s" -#: src/PhotoPage.vala:3018 +#: src/PhotoPage.vala:3041 #, c-format msgid "Unable to export %s: %s" msgstr "Não foi possível exportar %s: %s" @@ -4654,6 +4740,10 @@ msgstr "Não foi possível exportar %s: %s" msgid "BMP" msgstr "BMP" +#: src/photos/GifSupport.vala:32 +msgid "GIF" +msgstr "GIF" + #: src/photos/JfifSupport.vala:84 msgid "JPEG" msgstr "JPEG" @@ -4741,19 +4831,19 @@ msgstr "" "\n" "%s" -#: src/Properties.vala:87 +#: src/Properties.vala:88 msgid "Today" msgstr "Hoje" -#: src/Properties.vala:89 +#: src/Properties.vala:90 msgid "Yesterday" msgstr "Ontem" -#: src/Properties.vala:346 +#: src/Properties.vala:347 msgid "Items:" msgstr "Itens:" -#: src/Properties.vala:349 +#: src/Properties.vala:350 #, c-format msgid "%d Event" msgid_plural "%d Events" @@ -4761,104 +4851,104 @@ msgstr[0] "%d evento" msgstr[1] "%d eventos" #. display only one date if start and end are the same -#: src/Properties.vala:380 +#: src/Properties.vala:381 msgid "Date:" msgstr "Data:" #. display only one time if start and end are the same -#: src/Properties.vala:384 +#: src/Properties.vala:385 msgid "Time:" msgstr "Hora:" #. display time range #. display date range -#: src/Properties.vala:387 src/Properties.vala:392 +#: src/Properties.vala:388 src/Properties.vala:393 msgid "From:" msgstr "De:" -#: src/Properties.vala:388 src/Properties.vala:393 +#: src/Properties.vala:389 src/Properties.vala:394 msgid "To:" msgstr "Para:" -#: src/Properties.vala:407 +#: src/Properties.vala:408 msgid "Duration:" msgstr "Duração:" -#: src/Properties.vala:407 +#: src/Properties.vala:408 #, c-format msgid "%.1f seconds" msgstr "%.1f segundos" -#: src/Properties.vala:411 +#: src/Properties.vala:412 msgid "Developer:" msgstr "Desenvolvedor:" #. nothing special to be done for now for Events -#: src/Properties.vala:586 +#: src/Properties.vala:587 msgid "Location:" msgstr "Localização:" -#: src/Properties.vala:589 +#: src/Properties.vala:590 msgid "File size:" msgstr "Tamanho do arquivo:" -#: src/Properties.vala:593 +#: src/Properties.vala:594 msgid "Current Development:" msgstr "Desenvolvimento atual:" -#: src/Properties.vala:595 +#: src/Properties.vala:596 msgid "Original dimensions:" msgstr "Dimensões originais:" -#: src/Properties.vala:598 +#: src/Properties.vala:599 msgid "Camera make:" msgstr "Câmera:" -#: src/Properties.vala:601 +#: src/Properties.vala:602 msgid "Camera model:" msgstr "Modelo da câmera:" -#: src/Properties.vala:604 +#: src/Properties.vala:605 msgid "Flash:" msgstr "Flash:" -#: src/Properties.vala:606 +#: src/Properties.vala:607 msgid "Focal length:" msgstr "Comprimento focal:" -#: src/Properties.vala:609 +#: src/Properties.vala:610 msgid "Exposure date:" msgstr "Data de exposição:" -#: src/Properties.vala:612 +#: src/Properties.vala:613 msgid "Exposure time:" msgstr "Horário da exposição:" -#: src/Properties.vala:615 +#: src/Properties.vala:616 msgid "Exposure bias:" msgstr "Exposição bias:" -#: src/Properties.vala:617 +#: src/Properties.vala:618 msgid "GPS latitude:" msgstr "Latitude do GPS:" -#: src/Properties.vala:620 +#: src/Properties.vala:621 msgid "GPS longitude:" msgstr "Longitude do GPS:" -#: src/Properties.vala:623 +#: src/Properties.vala:624 msgid "Artist:" msgstr "Artista:" -#: src/Properties.vala:625 +#: src/Properties.vala:626 msgid "Copyright:" msgstr "Copyright:" -#: src/Properties.vala:627 +#: src/Properties.vala:628 msgid "Software:" msgstr "Software:" -#: src/Properties.vala:642 +#: src/Properties.vala:643 msgid "Extended Information" msgstr "Informações estendidas" @@ -4906,37 +4996,37 @@ msgstr "Obtendo informação da conta…" msgid "Logging in…" msgstr "Autenticando…" -#: src/publishing/PublishingUI.vala:194 +#: src/publishing/PublishingUI.vala:197 msgid "Publish Photos" msgstr "Publicar fotos" -#: src/publishing/PublishingUI.vala:195 +#: src/publishing/PublishingUI.vala:198 msgid "Publish photos _to:" msgstr "Publicar fotos pa_ra:" -#: src/publishing/PublishingUI.vala:197 +#: src/publishing/PublishingUI.vala:200 msgid "Publish Videos" msgstr "Publicar vídeos" -#: src/publishing/PublishingUI.vala:198 +#: src/publishing/PublishingUI.vala:201 msgid "Publish videos _to" msgstr "Publicar vídeos pa_ra" -#: src/publishing/PublishingUI.vala:200 +#: src/publishing/PublishingUI.vala:203 msgid "Publish Photos and Videos" msgstr "Publicar fotos e vídeos" -#: src/publishing/PublishingUI.vala:201 +#: src/publishing/PublishingUI.vala:204 msgid "Publish photos and videos _to" msgstr "Publicar fotos e vídeos pa_ra" #. There are no enabled publishing services that accept this media type, #. warn the user. -#: src/publishing/PublishingUI.vala:411 +#: src/publishing/PublishingUI.vala:414 msgid "Unable to publish" msgstr "Não é possível publicar" -#: src/publishing/PublishingUI.vala:412 +#: src/publishing/PublishingUI.vala:415 #, c-format msgid "" "Shotwell cannot publish the selected items because you do not have a " @@ -4953,738 +5043,815 @@ msgstr "" msgid "Publishing" msgstr "Publicando" -#: src/Resources.vala:141 src/Resources.vala:146 ui/collection.ui:151 +#: src/Resources.vala:111 src/Resources.vala:116 ui/collection.ui:151 msgid "Rotate" msgstr "Girar" -#: src/Resources.vala:142 +#: src/Resources.vala:112 msgid "Rotate Right" msgstr "Girar à direita" -#: src/Resources.vala:143 ui/collection.ui:148 +#: src/Resources.vala:113 ui/collection.ui:148 msgid "Rotate the photos right (press Ctrl to rotate left)" msgstr "Gira as fotos para direita (pressione Ctrl para girar para esquerda)" -#: src/Resources.vala:147 +#: src/Resources.vala:117 msgid "Rotate Left" msgstr "Girar à esquerda" -#: src/Resources.vala:148 +#: src/Resources.vala:118 msgid "Rotate the photos left" msgstr "Gira a foto para a esquerda" -#: src/Resources.vala:151 +#: src/Resources.vala:121 msgid "Flip Horizontally" msgstr "Inverter horizontalmente" -#: src/Resources.vala:154 +#: src/Resources.vala:124 msgid "Flip Vertically" msgstr "Inverter verticalmente" -#: src/Resources.vala:156 ui/direct.ui:192 ui/events_directory.ui:168 -#: ui/event.ui:438 ui/import_queue.ui:83 ui/import.ui:201 +#: src/Resources.vala:126 ui/direct.ui:192 ui/events_directory.ui:168 +#: ui/event.ui:438 ui/faces.ui:448 ui/import_queue.ui:83 ui/import.ui:201 #: ui/manifest_widget.ui:35 ui/media.ui:421 ui/offline.ui:198 ui/photo.ui:405 #: ui/tags.ui:440 ui/trash.ui:207 msgid "_About" msgstr "S_obre" -#: src/Resources.vala:157 +#: src/Resources.vala:127 msgid "_Apply" msgstr "_Aplicar" -#: src/Resources.vala:160 ui/direct.ui:44 ui/events_directory.ui:32 -#: ui/event.ui:47 ui/import.ui:40 ui/media.ui:47 ui/offline.ui:32 -#: ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 +#: src/Resources.vala:130 ui/direct.ui:44 ui/events_directory.ui:32 +#: ui/event.ui:47 ui/faces.ui:47 ui/import.ui:40 ui/media.ui:47 +#: ui/offline.ui:32 ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 msgid "_Edit" msgstr "_Editar" -#: src/Resources.vala:161 +#: src/Resources.vala:131 msgid "_Forward" msgstr "A_vançar" -#: src/Resources.vala:162 ui/direct.ui:62 ui/events_directory.ui:125 +#: src/Resources.vala:132 ui/direct.ui:62 ui/events_directory.ui:125 #: ui/photo.ui:173 msgid "Fulls_creen" msgstr "Tela _cheia" -#: src/Resources.vala:163 ui/direct.ui:174 ui/direct.ui:177 +#: src/Resources.vala:133 ui/direct.ui:174 ui/direct.ui:177 #: ui/events_directory.ui:150 ui/events_directory.ui:153 ui/event.ui:420 -#: ui/event.ui:423 ui/import_queue.ui:65 ui/import_queue.ui:68 ui/import.ui:183 -#: ui/import.ui:186 ui/media.ui:403 ui/media.ui:406 ui/offline.ui:180 -#: ui/offline.ui:183 ui/photo.ui:387 ui/photo.ui:390 ui/tags.ui:422 -#: ui/tags.ui:425 ui/trash.ui:189 ui/trash.ui:192 +#: ui/event.ui:423 ui/faces.ui:430 ui/faces.ui:433 ui/import_queue.ui:65 +#: ui/import_queue.ui:68 ui/import.ui:183 ui/import.ui:186 ui/media.ui:403 +#: ui/media.ui:406 ui/offline.ui:180 ui/offline.ui:183 ui/photo.ui:387 +#: ui/photo.ui:390 ui/tags.ui:422 ui/tags.ui:425 ui/trash.ui:189 +#: ui/trash.ui:192 msgid "_Help" msgstr "A_juda" -#: src/Resources.vala:164 +#: src/Resources.vala:134 msgid "Leave _Fullscreen" msgstr "Sair da _tela cheia" -#: src/Resources.vala:165 src/Resources.vala:364 ui/tags.ui:450 +#: src/Resources.vala:135 src/Resources.vala:343 ui/tags.ui:450 msgid "_New" msgstr "_Nova" -#: src/Resources.vala:166 +#: src/Resources.vala:136 msgid "_Next" msgstr "_Próximo" -#: src/Resources.vala:169 src/Resources.vala:318 ui/events_directory.ui:65 -#: ui/event.ui:93 ui/import.ui:68 ui/media.ui:93 ui/offline.ui:72 -#: ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 +#: src/Resources.vala:139 src/Resources.vala:288 ui/events_directory.ui:65 +#: ui/event.ui:93 ui/faces.ui:93 ui/import.ui:68 ui/media.ui:93 +#: ui/offline.ui:72 ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 msgid "_Preferences" msgstr "_Preferências" -#: src/Resources.vala:170 +#: src/Resources.vala:140 msgid "_Previous" msgstr "_Anterior" -#: src/Resources.vala:172 ui/direct.ui:37 ui/events_directory.ui:25 -#: ui/event.ui:40 ui/import_queue.ui:31 ui/import.ui:33 ui/media.ui:40 -#: ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 +#: src/Resources.vala:142 ui/direct.ui:37 ui/events_directory.ui:25 +#: ui/event.ui:40 ui/faces.ui:40 ui/import_queue.ui:31 ui/import.ui:33 +#: ui/media.ui:40 ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 msgid "_Quit" msgstr "_Sair" -#: src/Resources.vala:173 +#: src/Resources.vala:143 msgid "_Refresh" msgstr "Atualiza_r" -#: src/Resources.vala:175 +#: src/Resources.vala:145 msgid "_Revert" msgstr "_Reverter" -#: src/Resources.vala:177 +#: src/Resources.vala:147 msgid "Save _As" msgstr "_Salvar como" -#: src/Resources.vala:178 +#: src/Resources.vala:148 msgid "Sort _Ascending" msgstr "Ordem _crescente" -#: src/Resources.vala:179 +#: src/Resources.vala:149 msgid "Sort _Descending" msgstr "Ordem _decrescente" -#: src/Resources.vala:180 +#: src/Resources.vala:150 msgid "_Stop" msgstr "_Parar" -#: src/Resources.vala:181 +#: src/Resources.vala:151 msgid "_Undelete" msgstr "Rec_uperar" -#: src/Resources.vala:182 +#: src/Resources.vala:152 msgid "_Normal Size" msgstr "Tamanho _normal" -#: src/Resources.vala:183 +#: src/Resources.vala:153 msgid "Best _Fit" msgstr "Melhor aj_uste" -#: src/Resources.vala:184 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 -#: ui/photo.ui:144 ui/tags.ui:260 +#: src/Resources.vala:154 ui/direct.ui:69 ui/event.ui:260 ui/faces.ui:260 +#: ui/media.ui:260 ui/photo.ui:144 ui/tags.ui:260 msgid "Zoom _In" msgstr "Ampl_iar" -#: src/Resources.vala:185 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 -#: ui/photo.ui:149 ui/tags.ui:265 +#: src/Resources.vala:155 ui/direct.ui:74 ui/event.ui:265 ui/faces.ui:265 +#: ui/media.ui:265 ui/photo.ui:149 ui/tags.ui:265 msgid "Zoom _Out" msgstr "Redu_zir" -#: src/Resources.vala:188 ui/collection.ui:167 +#: src/Resources.vala:158 ui/collection.ui:167 msgid "Enhance" msgstr "Melhorar" -#: src/Resources.vala:189 ui/collection.ui:164 +#: src/Resources.vala:159 ui/collection.ui:164 msgid "Automatically improve the photo’s appearance" msgstr "Melhora automaticamente a aparência da foto" -#: src/Resources.vala:192 +#: src/Resources.vala:162 msgid "Copy Color Adjustments" msgstr "Copiar ajustes de cor" -#: src/Resources.vala:193 +#: src/Resources.vala:163 msgid "Copy the color adjustments applied to the photo" msgstr "Copiar os ajustes de cor aplicados na foto" -#: src/Resources.vala:196 +#: src/Resources.vala:166 msgid "Paste Color Adjustments" msgstr "Colar ajustes de cor" -#: src/Resources.vala:197 +#: src/Resources.vala:167 msgid "Apply copied color adjustments to the selected photos" msgstr "Aplicar ajustes de cor copiados nas fotos selecionadas" -#: src/Resources.vala:199 ui/direct.ui:139 ui/photo.ui:228 +#: src/Resources.vala:169 ui/direct.ui:139 ui/photo.ui:228 msgid "_Crop" msgstr "_Cortar" -#: src/Resources.vala:200 +#: src/Resources.vala:170 msgid "Crop" msgstr "Cortar" -#: src/Resources.vala:201 +#: src/Resources.vala:171 msgid "Crop the photo’s size" msgstr "Corta o tamanho da foto" -#: src/Resources.vala:204 +#: src/Resources.vala:174 msgid "Straighten" msgstr "Endireitar" -#: src/Resources.vala:205 +#: src/Resources.vala:175 msgid "Straighten the photo" msgstr "Endireita foto" -#: src/Resources.vala:207 ui/direct.ui:149 ui/photo.ui:238 +#: src/Resources.vala:177 ui/direct.ui:149 ui/photo.ui:238 msgid "_Red-eye" msgstr "Olhos ve_rmelhos" -#: src/Resources.vala:208 +#: src/Resources.vala:178 msgid "Red-eye" msgstr "Olhos vermelhos" -#: src/Resources.vala:209 +#: src/Resources.vala:179 msgid "Reduce or eliminate any red-eye effects in the photo" msgstr "Reduz ou elimina qualquer efeito de olhos vermelhos na foto" -#: src/Resources.vala:211 ui/direct.ui:154 ui/photo.ui:243 +#: src/Resources.vala:181 ui/direct.ui:154 ui/photo.ui:243 msgid "_Adjust" msgstr "_Ajustar" -#: src/Resources.vala:212 +#: src/Resources.vala:182 msgid "Adjust" msgstr "Ajustar" -#: src/Resources.vala:213 +#: src/Resources.vala:183 msgid "Adjust the photo’s color and tone" msgstr "Ajusta a cor e os tons das fotos" -#: src/Resources.vala:216 +#: src/Resources.vala:186 msgid "Revert to Original" msgstr "Reverter para o original" -#: src/Resources.vala:218 +#: src/Resources.vala:188 msgid "Revert External E_dits" msgstr "Reverter e_dição externa" -#: src/Resources.vala:219 +#: src/Resources.vala:189 msgid "Revert to the master photo" msgstr "Reverter para a foto mestre" -#: src/Resources.vala:222 +#: src/Resources.vala:192 msgid "Set selected image to be the new desktop background" msgstr "" "Definir a imagem selecionada como novo plano de fundo da área de trabalho" -#: src/Resources.vala:223 +#: src/Resources.vala:193 msgid "Set as _Desktop Slideshow…" msgstr "Definir como apresentação de sli_des da área de trabalho…" -#: src/Resources.vala:225 ui/direct.ui:47 ui/events_directory.ui:35 -#: ui/event.ui:50 ui/import.ui:43 ui/media.ui:50 ui/offline.ui:35 -#: ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 +#: src/Resources.vala:195 ui/direct.ui:47 ui/events_directory.ui:35 +#: ui/event.ui:50 ui/faces.ui:50 ui/import.ui:43 ui/media.ui:50 +#: ui/offline.ui:35 ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 msgid "_Undo" msgstr "Des_fazer" -#: src/Resources.vala:226 +#: src/Resources.vala:196 msgid "Undo" msgstr "Desfazer" -#: src/Resources.vala:228 ui/direct.ui:52 ui/events_directory.ui:40 -#: ui/event.ui:55 ui/import.ui:48 ui/media.ui:55 ui/offline.ui:40 -#: ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 +#: src/Resources.vala:198 ui/direct.ui:52 ui/events_directory.ui:40 +#: ui/event.ui:55 ui/faces.ui:55 ui/import.ui:48 ui/media.ui:55 +#: ui/offline.ui:40 ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 msgid "_Redo" msgstr "_Refazer" -#: src/Resources.vala:229 +#: src/Resources.vala:199 msgid "Redo" msgstr "Refazer" -#: src/Resources.vala:231 ui/events_directory.ui:139 ui/events_directory.ui:181 +#: src/Resources.vala:201 ui/events_directory.ui:139 ui/events_directory.ui:181 #: ui/event.ui:393 ui/event.ui:588 msgid "Re_name Event…" msgstr "Re_nomear evento…" -#: src/Resources.vala:234 ui/event.ui:373 ui/event.ui:580 +#: src/Resources.vala:204 ui/event.ui:373 ui/event.ui:580 msgid "Make _Key Photo for Event" msgstr "Designar f_oto como chave para evento" -#: src/Resources.vala:235 +#: src/Resources.vala:205 msgid "Make Key Photo for Event" msgstr "Designa a foto como chave para evento" -#: src/Resources.vala:237 ui/event.ui:382 ui/media.ui:376 ui/tags.ui:376 +#: src/Resources.vala:207 ui/event.ui:382 ui/faces.ui:376 ui/media.ui:376 +#: ui/tags.ui:376 msgid "_New Event" msgstr "_Novo evento" -#: src/Resources.vala:238 +#: src/Resources.vala:208 msgid "New Event" msgstr "Novo evento" -#: src/Resources.vala:240 +#: src/Resources.vala:210 msgid "Move Photos" msgstr "Mover fotos" -#: src/Resources.vala:241 +#: src/Resources.vala:211 msgid "Move photos to an event" msgstr "Mover as fotos selecionadas para um evento" -#: src/Resources.vala:243 ui/events_directory.ui:135 ui/events_directory.ui:177 +#: src/Resources.vala:213 ui/events_directory.ui:135 ui/events_directory.ui:177 msgid "_Merge Events" msgstr "_Unir eventos" -#: src/Resources.vala:244 +#: src/Resources.vala:214 msgid "Merge" msgstr "Unir" -#: src/Resources.vala:245 +#: src/Resources.vala:215 msgid "Combine events into a single event" msgstr "Combinar eventos em um único evento" -#: src/Resources.vala:247 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 -#: ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 ui/tags.ui:286 +#: src/Resources.vala:217 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 +#: ui/faces.ui:286 ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 +#: ui/tags.ui:286 msgid "_Set Rating" msgstr "A_valiar" -#: src/Resources.vala:248 +#: src/Resources.vala:218 msgid "Set Rating" msgstr "Avaliar" -#: src/Resources.vala:249 +#: src/Resources.vala:219 msgid "Change the rating of your photo" msgstr "Alterar a avaliação da foto" -#: src/Resources.vala:251 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 -#: ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 ui/tags.ui:326 +#: src/Resources.vala:221 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 +#: ui/faces.ui:326 ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 +#: ui/tags.ui:326 msgid "_Increase" msgstr "_Aumentar" -#: src/Resources.vala:252 +#: src/Resources.vala:222 msgid "Increase Rating" msgstr "Aumentar avaliação" -#: src/Resources.vala:254 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 -#: ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 ui/tags.ui:331 +#: src/Resources.vala:224 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 +#: ui/faces.ui:331 ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 +#: ui/tags.ui:331 msgid "_Decrease" msgstr "_Diminuir" -#: src/Resources.vala:255 +#: src/Resources.vala:225 msgid "Decrease Rating" msgstr "Diminuir avaliação" -#: src/Resources.vala:257 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 -#: ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 ui/tags.ui:314 +#: src/Resources.vala:227 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 +#: ui/faces.ui:314 ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 +#: ui/tags.ui:314 msgid "_Unrated" msgstr "_Sem avaliação" -#: src/Resources.vala:258 +#: src/Resources.vala:228 msgid "Unrated" msgstr "Sem avaliação" -#: src/Resources.vala:259 +#: src/Resources.vala:229 msgid "Rate Unrated" msgstr "Apagar avaliação" -#: src/Resources.vala:260 +#: src/Resources.vala:230 msgid "Setting as unrated" msgstr "Definir como não avaliado" -#: src/Resources.vala:261 +#: src/Resources.vala:231 msgid "Remove any ratings" msgstr "Remove avaliação" -#: src/Resources.vala:263 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 -#: ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 ui/tags.ui:319 +#: src/Resources.vala:233 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 +#: ui/faces.ui:319 ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 +#: ui/tags.ui:319 msgid "_Rejected" msgstr "_Rejeitada" -#: src/Resources.vala:264 +#: src/Resources.vala:234 msgid "Rejected" msgstr "Rejeitada" -#: src/Resources.vala:265 +#: src/Resources.vala:235 msgid "Rate Rejected" msgstr "Avaliar como rejeitada" -#: src/Resources.vala:266 +#: src/Resources.vala:236 msgid "Setting as rejected" msgstr "Definir como rejeitada" -#: src/Resources.vala:267 +#: src/Resources.vala:237 msgid "Set rating to rejected" msgstr "Avaliar como rejeitada" -#: src/Resources.vala:269 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 -#: ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 ui/trash.ui:162 +#: src/Resources.vala:239 ui/event.ui:196 ui/faces.ui:196 ui/import.ui:156 +#: ui/media.ui:196 ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 +#: ui/trash.ui:162 msgid "Rejected _Only" msgstr "Rejeitada _apenas" -#: src/Resources.vala:270 +#: src/Resources.vala:240 msgid "Rejected Only" msgstr "Rejeitadas apenas" -#: src/Resources.vala:271 +#: src/Resources.vala:241 msgid "Show only rejected photos" msgstr "Exibir apenas fotos rejeitadas" -#: src/Resources.vala:273 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 -#: ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 ui/trash.ui:156 +#: src/Resources.vala:243 ui/event.ui:190 ui/faces.ui:190 ui/import.ui:150 +#: ui/media.ui:190 ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 +#: ui/trash.ui:156 msgid "All + _Rejected" msgstr "Tudo + _rejeitadas" -#: src/Resources.vala:274 +#: src/Resources.vala:244 msgctxt "Tooltip" msgid "Show all photos, including rejected" msgstr "Mostrar todas as fotos, inclusive as rejeitadas" -#: src/Resources.vala:276 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 -#: ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 ui/trash.ui:150 +#: src/Resources.vala:246 ui/event.ui:184 ui/faces.ui:184 ui/import.ui:144 +#: ui/media.ui:184 ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 +#: ui/trash.ui:150 msgid "_All Photos" msgstr "Todas as _fotos" #. Button tooltip -#: src/Resources.vala:278 +#: src/Resources.vala:248 msgid "Show all photos" msgstr "Exibe todas fotos" -#: src/Resources.vala:280 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 -#: ui/tags.ui:144 +#: src/Resources.vala:250 ui/event.ui:144 ui/faces.ui:144 ui/media.ui:144 +#: ui/photo.ui:120 ui/tags.ui:144 msgid "_Ratings" msgstr "_Avaliações" -#: src/Resources.vala:281 +#: src/Resources.vala:251 msgid "Display each photo’s rating" msgstr "Exibe as avaliações de cada foto" -#: src/Resources.vala:283 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 -#: ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 +#: src/Resources.vala:253 ui/event.ui:151 ui/faces.ui:151 ui/import.ui:111 +#: ui/media.ui:151 ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 msgid "_Filter Photos" msgstr "_Filtrar fotos" -#: src/Resources.vala:284 +#: src/Resources.vala:254 msgid "Filter Photos" msgstr "Filtrar fotos" -#: src/Resources.vala:285 +#: src/Resources.vala:255 msgid "Limit the number of photos displayed based on a filter" msgstr "Limita o número de fotos mostradas com base num filtro" -#: src/Resources.vala:288 +#: src/Resources.vala:258 msgid "Duplicate" msgstr "Duplicar" -#: src/Resources.vala:289 +#: src/Resources.vala:259 msgid "Make a duplicate of the photo" msgstr "Duplicar a foto" -#: src/Resources.vala:291 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 -#: ui/tags.ui:17 +#: src/Resources.vala:261 ui/event.ui:17 ui/faces.ui:17 ui/media.ui:17 +#: ui/photo.ui:17 ui/tags.ui:17 msgid "_Export…" msgstr "_Exportar…" -#: src/Resources.vala:293 +#: src/Resources.vala:263 msgid "_Print…" msgstr "Im_primir…" -#: src/Resources.vala:295 +#: src/Resources.vala:265 msgid "Pu_blish…" msgstr "Pu_blicar…" -#: src/Resources.vala:297 ui/collection.ui:189 +#: src/Resources.vala:267 ui/collection.ui:189 msgid "Publish to various websites" msgstr "Publicar para vários sites" -#: src/Resources.vala:299 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 -#: ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 ui/tags.ui:340 +#: src/Resources.vala:269 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 +#: ui/faces.ui:340 ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 +#: ui/tags.ui:340 msgid "Edit _Title…" msgstr "Editar _título…" #. Button label -#: src/Resources.vala:301 +#: src/Resources.vala:271 msgctxt "Button Label" msgid "Edit Title" msgstr "Editar título" -#: src/Resources.vala:303 ui/collection.ui:103 ui/events_directory.ui:144 +#: src/Resources.vala:273 ui/collection.ui:103 ui/events_directory.ui:144 #: ui/events_directory.ui:186 ui/event.ui:345 ui/event.ui:398 ui/event.ui:542 -#: ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 ui/tags.ui:345 +#: ui/faces.ui:345 ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 +#: ui/tags.ui:345 msgid "Edit _Comment…" msgstr "Editar _comentário…" #. Button label -#: src/Resources.vala:305 +#: src/Resources.vala:275 msgid "Edit Comment" msgstr "Editar comentário" -#: src/Resources.vala:307 ui/event.ui:592 +#: src/Resources.vala:277 ui/event.ui:592 msgid "Edit Event _Comment…" msgstr "Editar _comentário de evento…" -#: src/Resources.vala:310 ui/direct.ui:167 ui/photo.ui:337 +#: src/Resources.vala:280 ui/direct.ui:167 ui/photo.ui:337 msgid "_Adjust Date and Time…" msgstr "_Ajustar data e hora…" -#: src/Resources.vala:311 +#: src/Resources.vala:281 msgid "Adjust Date and Time" msgstr "Ajustar a data e hora" -#: src/Resources.vala:313 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 -#: ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 +#: src/Resources.vala:283 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 +#: ui/faces.ui:390 ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 msgid "Add _Tags…" msgstr "Adicionar e_tiquetas…" -#: src/Resources.vala:314 ui/photo_context.ui:17 +#: src/Resources.vala:284 ui/photo_context.ui:17 msgid "_Add Tags…" msgstr "_Adicionar etiquetas…" #. Dialog title -#: src/Resources.vala:316 +#: src/Resources.vala:286 msgctxt "Dialog Title" msgid "Add Tags" msgstr "Adicionar etiquetas" -#: src/Resources.vala:325 ui/photo_context.ui:135 +#: src/Resources.vala:295 ui/photo_context.ui:135 msgid "Send T_o…" msgstr "Enviar p_ara…" -#: src/Resources.vala:327 +#: src/Resources.vala:297 msgid "_Find…" msgstr "_Localizar…" -#: src/Resources.vala:328 ui/collection.ui:217 ui/offline.ui:239 +#: src/Resources.vala:298 ui/collection.ui:217 ui/offline.ui:239 #: ui/trash.ui:312 msgid "Find" msgstr "Localização" -#: src/Resources.vala:329 ui/collection.ui:214 ui/offline.ui:236 +#: src/Resources.vala:299 ui/collection.ui:214 ui/offline.ui:236 #: ui/trash.ui:309 msgid "Find an image by typing text that appears in its name or tags" msgstr "" "Encontre uma imagem digitando o texto que aparece em seu nome ou etiquetas" -#: src/Resources.vala:331 +#: src/Resources.vala:301 msgid "_Flag" msgstr "_Marcar" -#: src/Resources.vala:333 +#: src/Resources.vala:303 msgid "Un_flag" msgstr "Des_marcar" -#: src/Resources.vala:336 +#: src/Resources.vala:307 +#| msgid "Make a duplicate of the photo" +msgid "Mark faces of people in the photo" +msgstr "Marca faces de pessoas na foto" + +#: src/Resources.vala:308 +#| msgid "Modify Tags" +msgid "Modify Faces" +msgstr "Modificar faces" + +#: src/Resources.vala:309 +#| msgid "Delete Tag" +msgid "Delete Face" +msgstr "Excluir face" + +#: src/Resources.vala:311 src/Resources.vala:353 ui/tags.ui:456 +msgid "_Rename…" +msgstr "_Renomear…" + +#: src/Resources.vala:315 #, c-format msgid "Unable to launch editor: %s" msgstr "Não foi possível iniciar o editor: %s" -#: src/Resources.vala:341 +#: src/Resources.vala:320 #, c-format msgid "Add Tag “%s”" msgstr "Adicionar etiqueta “%s”" #. Used when adding two tags to photo(s) -#: src/Resources.vala:344 +#: src/Resources.vala:323 #, c-format msgid "Add Tags “%s” and “%s”" msgstr "Adicionar etiquetas “%s” e “%s”" #. Undo/Redo command name (in Edit menu) -#: src/Resources.vala:349 +#: src/Resources.vala:328 msgctxt "UndoRedo menu entry" msgid "Add Tags" msgstr "Adicionar etiquetas" -#: src/Resources.vala:354 +#: src/Resources.vala:333 #, c-format msgid "_Delete Tag “%s”" msgstr "A_pagar etiqueta “%s”" -#: src/Resources.vala:358 +#: src/Resources.vala:337 #, c-format msgid "Delete Tag “%s”" msgstr "Apagar etiqueta “%s”" -#: src/Resources.vala:361 +#: src/Resources.vala:340 msgid "Delete Tag" msgstr "Apagar etiqueta" -#: src/Resources.vala:367 +#: src/Resources.vala:346 #, c-format msgid "Re_name Tag “%s”…" msgstr "Re_nomear etiqueta “%s”…" -#: src/Resources.vala:371 +#: src/Resources.vala:350 #, c-format msgid "Rename Tag “%s” to “%s”" msgstr "Renomear a etiqueta “%s” para “%s”" -#: src/Resources.vala:374 ui/tags.ui:456 -msgid "_Rename…" -msgstr "_Renomear…" - -#: src/Resources.vala:376 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 -#: ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 ui/tags.ui:395 +#: src/Resources.vala:355 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 +#: ui/faces.ui:395 ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 +#: ui/tags.ui:395 msgid "Modif_y Tags…" msgstr "_Modificar etiquetas…" -#: src/Resources.vala:377 +#: src/Resources.vala:356 msgid "Modify Tags" msgstr "Modificar etiquetas" -#: src/Resources.vala:380 +#: src/Resources.vala:359 #, c-format msgid "Tag Photo as “%s”" msgid_plural "Tag Photos as “%s”" msgstr[0] "Etiquetar foto como “%s”" msgstr[1] "Etiquetar fotos como “%s”" -#: src/Resources.vala:386 +#: src/Resources.vala:365 #, c-format msgid "Tag the selected photo as “%s”" msgid_plural "Tag the selected photos as “%s”" msgstr[0] "Etiquetar a foto selecionada como “%s”" msgstr[1] "Etiquetar as fotos selecionadas como “%s”" -#: src/Resources.vala:392 +#: src/Resources.vala:371 #, c-format msgid "Remove Tag “%s” From _Photo" msgid_plural "Remove Tag “%s” From _Photos" msgstr[0] "Remover etiqueta “%s” da _foto" msgstr[1] "Remover etiqueta “%s” das _fotos" -#: src/Resources.vala:398 +#: src/Resources.vala:377 #, c-format msgid "Remove Tag “%s” From Photo" msgid_plural "Remove Tag “%s” From Photos" msgstr[0] "Remove a etiqueta “%s” da foto" msgstr[1] "Remove a etiqueta “%s” das fotos" -#: src/Resources.vala:404 +#: src/Resources.vala:383 #, c-format msgid "Unable to rename tag to “%s” because the tag already exists." msgstr "" -"Não foi possível renomear a etiqueta para “%s” pelo fato da etiqueta já " -"existir." +"Não foi possível renomear a etiqueta para “%s” porque a etiqueta já existe." -#: src/Resources.vala:408 +#: src/Resources.vala:387 #, c-format msgid "Unable to rename search to “%s” because the search already exists." msgstr "" -"Não foi possível renomear a pesquisa para “%s” pelo fato da pesquisa já " -"existir." +"Não foi possível renomear a pesquisa para “%s” porque a pesquisa já existe." #. Saved search button -#: src/Resources.vala:411 src/SearchFilter.vala:1120 +#: src/Resources.vala:390 src/SearchFilter.vala:1146 msgid "Saved Search" msgstr "Pesquisa salva" -#: src/Resources.vala:413 +#: src/Resources.vala:392 msgid "Delete Search" msgstr "Apagar pesquisa" -#: src/Resources.vala:416 ui/savedsearch.ui:10 +#: src/Resources.vala:395 ui/savedsearch.ui:10 msgid "_Edit…" msgstr "_Editar…" -#: src/Resources.vala:417 ui/savedsearch.ui:6 +#: src/Resources.vala:396 ui/savedsearch.ui:6 msgid "Re_name…" msgstr "Re_nomear…" -#: src/Resources.vala:420 +#: src/Resources.vala:399 #, c-format msgid "Rename Search “%s” to “%s”" msgstr "Renomeia a pesquisa “%s” para “%s”" -#: src/Resources.vala:424 +#: src/Resources.vala:403 #, c-format msgid "Delete Search “%s”" msgstr "Apagar pesquisa “%s”" -#: src/Resources.vala:561 +#: src/Resources.vala:408 +#, c-format +#| msgid "Unable to rename tag to “%s” because the tag already exists." +msgid "Unable to rename face to “%s” because the face already exists." +msgstr "Não foi possível renomear a face para “%s” porque a face já existe." + +#: src/Resources.vala:412 +#, c-format +#| msgid "Remove Tag “%s” From _Photo" +#| msgid_plural "Remove Tag “%s” From _Photos" +msgid "Remove Face “%s” From _Photo" +msgid_plural "Remove Face “%s” From _Photos" +msgstr[0] "Remover face “%s” da _foto" +msgstr[1] "Remover face “%s” das _fotos" + +#: src/Resources.vala:417 +#, c-format +#| msgid "Remove Tag “%s” From Photo" +#| msgid_plural "Remove Tag “%s” From Photos" +msgid "Remove Face “%s” From Photo" +msgid_plural "Remove Face “%s” From Photos" +msgstr[0] "Remove face “%s” da foto" +msgstr[1] "Remove face “%s” das fotos" + +#: src/Resources.vala:422 +#, c-format +#| msgid "Re_name Tag “%s”…" +msgid "Re_name Face “%s”…" +msgstr "Re_nomear face “%s”…" + +#: src/Resources.vala:426 +#, c-format +#| msgid "Rename Tag “%s” to “%s”" +msgid "Rename Face “%s” to “%s”" +msgstr "Renomear a face “%s” para “%s”" + +#: src/Resources.vala:430 +#, c-format +#| msgid "_Delete Tag “%s”" +msgid "_Delete Face “%s”" +msgstr "A_pagar face “%s”" + +#: src/Resources.vala:434 +#, c-format +#| msgid "Delete Tag “%s”" +msgid "Delete Face “%s”" +msgstr "Apagar face “%s”" + +#: src/Resources.vala:636 #, c-format msgid "Rate %s" msgstr "Avaliar %s" -#: src/Resources.vala:562 +#: src/Resources.vala:637 #, c-format msgid "Set rating to %s" msgstr "Avaliar como %s" -#: src/Resources.vala:563 +#: src/Resources.vala:638 #, c-format msgid "Setting rating to %s" msgstr "Avaliando como %s" -#: src/Resources.vala:565 +#: src/Resources.vala:640 #, c-format msgid "Display %s" msgstr "Mostra %s" -#: src/Resources.vala:566 +#: src/Resources.vala:641 #, c-format msgid "Only show photos with a rating of %s" msgstr "Mostra somente as fotos com avaliação de %s" -#: src/Resources.vala:567 +#: src/Resources.vala:642 #, c-format msgid "%s or Better" msgstr "%s ou melhor" -#: src/Resources.vala:568 +#: src/Resources.vala:643 #, c-format msgid "Display %s or Better" msgstr "Mostrar %s ou melhor" -#: src/Resources.vala:569 +#: src/Resources.vala:644 #, c-format msgid "Only show photos with a rating of %s or better" msgstr "Mostra somente as fotos com avaliação de %s ou melhor" -#: src/Resources.vala:660 ui/trash.ui:255 +#: src/Resources.vala:735 ui/trash.ui:255 msgid "Remove the selected photos from the trash" msgstr "Remover as fotos selecionadas para a lixeira" -#: src/Resources.vala:661 ui/offline.ui:221 +#: src/Resources.vala:736 ui/offline.ui:221 msgid "Remove the selected photos from the library" msgstr "Remover as fotos selecionadas da biblioteca" -#: src/Resources.vala:663 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 +#: src/Resources.vala:738 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 msgid "_Restore" msgstr "_Restaurar" -#: src/Resources.vala:664 ui/trash.ui:270 +#: src/Resources.vala:739 ui/trash.ui:270 msgid "Move the selected photos back into the library" msgstr "Mover as fotos selecionadas para a biblioteca" -#: src/Resources.vala:666 ui/collection.ui:123 ui/direct_context.ui:18 -#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/media.ui:27 +#: src/Resources.vala:741 ui/collection.ui:123 ui/direct_context.ui:18 +#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/faces.ui:27 ui/media.ui:27 #: ui/photo_context.ui:130 ui/photo.ui:35 ui/tags.ui:27 ui/trash.ui:19 #: ui/trash.ui:227 msgid "Show in File Mana_ger" msgstr "Abrir com o gerenciador de a_rquivos" -#: src/Resources.vala:667 +#: src/Resources.vala:742 msgid "Open the selected photo’s directory in the file manager" msgstr "Abre o diretório da foto selecionada no gerenciador de arquivos" -#: src/Resources.vala:670 +#: src/Resources.vala:745 #, c-format msgid "Unable to open in file manager: %s" msgstr "Não foi possível abrir no gerenciador de arquivos: %s" -#: src/Resources.vala:673 ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 -#: ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 ui/tags.ui:74 +#: src/Resources.vala:748 ui/event.ui:74 ui/faces.ui:74 ui/media.ui:74 +#: ui/offline.ui:58 ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 +#: ui/tags.ui:74 msgid "R_emove From Library" msgstr "R_emover da biblioteca" -#: src/Resources.vala:675 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 -#: ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 ui/tags.ui:79 +#: src/Resources.vala:750 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 +#: ui/faces.ui:79 ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 +#: ui/tags.ui:79 msgid "_Move to Trash" msgstr "_Mover para a lixeira" -#: src/Resources.vala:677 ui/events_directory.ui:58 ui/event.ui:86 -#: ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 ui/trash.ui:74 +#: src/Resources.vala:752 ui/events_directory.ui:58 ui/event.ui:86 +#: ui/faces.ui:86 ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 +#: ui/trash.ui:74 msgid "Select _All" msgstr "Selecionar _todas" -#: src/Resources.vala:678 +#: src/Resources.vala:753 msgid "Select all items" msgstr "Selecionar todos os itens" @@ -5697,14 +5864,14 @@ msgstr "Selecionar todos os itens" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format #. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:739 +#: src/Resources.vala:814 msgid "%a %b %d, %Y" msgstr "%a, %d de %b de %Y" #. / Locale-specific starting date format for multi-date strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:744 +#: src/Resources.vala:819 msgctxt "MultidayFormat" msgid "%a %b %d" msgstr "%a, %d de %b" @@ -5712,7 +5879,7 @@ msgstr "%a, %d de %b" #. / Locale-specific ending date format for multi-date strings, #. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:749 +#: src/Resources.vala:824 msgctxt "MultidayFormat" msgid "%d, %Y" msgstr "%d, %Y" @@ -5720,7 +5887,7 @@ msgstr "%d, %Y" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:754 +#: src/Resources.vala:829 msgctxt "MultimonthFormat" msgid "%a %b %d" msgstr "%a, %d de %b" @@ -5728,170 +5895,174 @@ msgstr "%a, %d de %b" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:759 +#: src/Resources.vala:834 msgctxt "MultimonthFormat" msgid "%a %b %d, %Y" msgstr "%a, %d de %b de %Y" -#: src/Screensaver.vala:18 src/SlideshowPage.vala:115 +#: src/Screensaver.vala:18 src/SlideshowPage.vala:117 msgid "Slideshow" msgstr "Apresentação de slides" #. Ordering must correspond with SearchConditionText.Context -#: src/searches/SavedSearchDialog.vala:167 +#: src/searches/SavedSearchDialog.vala:170 msgid "contains" msgstr "contém" #. Ordering must correspond with Context -#: src/searches/SavedSearchDialog.vala:168 -#: src/searches/SavedSearchDialog.vala:499 +#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:502 msgid "is exactly" msgstr "é exatamente" -#: src/searches/SavedSearchDialog.vala:169 +#: src/searches/SavedSearchDialog.vala:172 msgid "starts with" msgstr "inicia com" -#: src/searches/SavedSearchDialog.vala:170 +#: src/searches/SavedSearchDialog.vala:173 msgid "ends with" msgstr "termina com" -#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:174 msgid "does not contain" msgstr "não contém" -#: src/searches/SavedSearchDialog.vala:172 -#: src/searches/SavedSearchDialog.vala:503 +#: src/searches/SavedSearchDialog.vala:175 +#: src/searches/SavedSearchDialog.vala:506 msgid "is not set" msgstr "não está definido" -#: src/searches/SavedSearchDialog.vala:173 +#: src/searches/SavedSearchDialog.vala:176 msgid "is set" msgstr "está definido" #. Ordering must correspond with SearchConditionMediaType.Context -#: src/searches/SavedSearchDialog.vala:247 -#: src/searches/SavedSearchDialog.vala:378 -#: src/searches/SavedSearchDialog.vala:443 +#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:381 +#: src/searches/SavedSearchDialog.vala:446 msgid "is" msgstr "é" -#: src/searches/SavedSearchDialog.vala:248 +#: src/searches/SavedSearchDialog.vala:251 msgid "is not" msgstr "não é" #. Ordering must correspond with SearchConditionMediaType.MediaType -#: src/searches/SavedSearchDialog.vala:254 +#: src/searches/SavedSearchDialog.vala:257 msgid "any photo" msgstr "qualquer foto" -#: src/searches/SavedSearchDialog.vala:255 +#: src/searches/SavedSearchDialog.vala:258 msgid "a raw photo" msgstr "uma foto raw" -#: src/searches/SavedSearchDialog.vala:256 +#: src/searches/SavedSearchDialog.vala:259 msgid "a video" msgstr "um vídeo" -#: src/searches/SavedSearchDialog.vala:310 +#: src/searches/SavedSearchDialog.vala:313 msgid "has" msgstr "tem" -#: src/searches/SavedSearchDialog.vala:311 +#: src/searches/SavedSearchDialog.vala:314 msgid "has no" msgstr "não tem" -#: src/searches/SavedSearchDialog.vala:316 +#: src/searches/SavedSearchDialog.vala:319 msgid "modifications" msgstr "modificações" -#: src/searches/SavedSearchDialog.vala:317 +#: src/searches/SavedSearchDialog.vala:320 msgid "internal modifications" msgstr "modificações internas" -#: src/searches/SavedSearchDialog.vala:318 +#: src/searches/SavedSearchDialog.vala:321 msgid "external modifications" msgstr "modificações externas" #. Ordering must correspond with SearchConditionFlagged.State -#: src/searches/SavedSearchDialog.vala:372 +#: src/searches/SavedSearchDialog.vala:375 msgid "flagged" msgstr "marcada" -#: src/searches/SavedSearchDialog.vala:373 +#: src/searches/SavedSearchDialog.vala:376 msgid "not flagged" msgstr "não marcada" -#: src/searches/SavedSearchDialog.vala:436 +#: src/searches/SavedSearchDialog.vala:439 msgid "and higher" msgstr "e maior" -#: src/searches/SavedSearchDialog.vala:437 +#: src/searches/SavedSearchDialog.vala:440 msgid "only" msgstr "somente" -#: src/searches/SavedSearchDialog.vala:438 +#: src/searches/SavedSearchDialog.vala:441 msgid "and lower" msgstr "e baixo" -#: src/searches/SavedSearchDialog.vala:500 +#: src/searches/SavedSearchDialog.vala:503 msgid "is after" msgstr "é depois" -#: src/searches/SavedSearchDialog.vala:501 +#: src/searches/SavedSearchDialog.vala:504 msgid "is before" msgstr "é antes" -#: src/searches/SavedSearchDialog.vala:502 +#: src/searches/SavedSearchDialog.vala:505 msgid "is between" msgstr "é entre" -#: src/searches/SavedSearchDialog.vala:515 +#: src/searches/SavedSearchDialog.vala:518 msgid "and" msgstr "e" -#: src/searches/SearchBoolean.vala:157 +#: src/searches/SearchBoolean.vala:169 msgid "Any text" msgstr "Qualquer texto" -#: src/searches/SearchBoolean.vala:160 +#: src/searches/SearchBoolean.vala:172 msgid "Title" msgstr "Título" -#: src/searches/SearchBoolean.vala:163 +#: src/searches/SearchBoolean.vala:175 msgid "Tag" msgstr "Etiqueta" -#: src/searches/SearchBoolean.vala:166 +#: src/searches/SearchBoolean.vala:178 msgid "Comment" msgstr "Comentário" -#: src/searches/SearchBoolean.vala:169 +#: src/searches/SearchBoolean.vala:181 msgid "Event name" msgstr "Nome do evento" -#: src/searches/SearchBoolean.vala:172 +#: src/searches/SearchBoolean.vala:184 msgid "File name" msgstr "Nome do arquivo" -#: src/searches/SearchBoolean.vala:175 +#: src/searches/SearchBoolean.vala:187 +msgid "Face" +msgstr "Face" + +#: src/searches/SearchBoolean.vala:190 msgid "Media type" msgstr "Tipo de mídia" -#: src/searches/SearchBoolean.vala:178 +#: src/searches/SearchBoolean.vala:193 msgid "Flag state" msgstr "Marcada" -#: src/searches/SearchBoolean.vala:181 +#: src/searches/SearchBoolean.vala:196 msgid "Photo state" msgstr "Estado da foto" -#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:827 -#: src/SearchFilter.vala:1110 +#: src/searches/SearchBoolean.vala:199 src/SearchFilter.vala:853 +#: src/SearchFilter.vala:1136 msgid "Rating" msgstr "Avaliação" -#: src/searches/SearchBoolean.vala:187 +#: src/searches/SearchBoolean.vala:202 msgid "Date" msgstr "Data" @@ -5903,27 +6074,27 @@ msgstr "Pesquisas salvas" msgid "Organize your saved searches" msgstr "Organize suas pesquisas salvas" -#: src/SearchFilter.vala:811 +#: src/SearchFilter.vala:837 msgid "★+ Rating" msgstr "★+ Avaliação" -#: src/SearchFilter.vala:814 +#: src/SearchFilter.vala:840 msgid "★★+ Rating" msgstr "★★+ Avaliação" -#: src/SearchFilter.vala:817 +#: src/SearchFilter.vala:843 msgid "★★★+ Rating" msgstr "★★★+ Avaliação" -#: src/SearchFilter.vala:820 +#: src/SearchFilter.vala:846 msgid "★★★★+ Rating" msgstr "★★★★+ Avaliação" -#: src/SearchFilter.vala:824 +#: src/SearchFilter.vala:850 msgid "★★★★★+ Rating" msgstr "★★★★★+ Avaliação" -#: src/SearchFilter.vala:1060 +#: src/SearchFilter.vala:1086 #, c-format msgid "Error loading search bar UI: %s" msgstr "Erro ao carregar barra de pesquisa de UI: %s" @@ -5933,71 +6104,71 @@ msgstr "Erro ao carregar barra de pesquisa de UI: %s" #. Prepare the close menu for use, but don't #. display it yet; we'll connect it to secondary #. click later on. -#: src/SearchFilter.vala:1069 +#: src/SearchFilter.vala:1095 msgid "Close" msgstr "Fechar" #. Type label and toggles -#: src/SearchFilter.vala:1075 +#: src/SearchFilter.vala:1101 msgid "Type" msgstr "Tipo" -#: src/SearchFilter.vala:1082 +#: src/SearchFilter.vala:1108 msgid "Videos" msgstr "Vídeos" -#: src/SearchFilter.vala:1085 +#: src/SearchFilter.vala:1111 msgid "RAW Photos" msgstr "Fotos RAW" -#: src/SearchFilter.vala:1121 +#: src/SearchFilter.vala:1147 msgid "Use a saved search to filter items in the current view" msgstr "Use uma pesquisa salva para filtrar itens na visão atual" #. Set up toolbar #. add toolbar buttons -#: src/SlideshowPage.vala:134 +#: src/SlideshowPage.vala:136 msgid "Back" msgstr "Voltar" -#: src/SlideshowPage.vala:136 +#: src/SlideshowPage.vala:138 msgid "Go to the previous photo" msgstr "Ir para a foto anterior" -#: src/SlideshowPage.vala:141 src/SlideshowPage.vala:248 +#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:250 msgid "Pause" msgstr "Pausar" -#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:249 +#: src/SlideshowPage.vala:145 src/SlideshowPage.vala:251 msgid "Pause the slideshow" msgstr "Pausar apresentação de slides" -#: src/SlideshowPage.vala:148 +#: src/SlideshowPage.vala:150 msgid "Next" msgstr "Próxima" -#: src/SlideshowPage.vala:150 +#: src/SlideshowPage.vala:152 msgid "Go to the next photo" msgstr "Ir para a próxima foto" -#: src/SlideshowPage.vala:157 ui/slideshow_settings.ui:21 +#: src/SlideshowPage.vala:159 ui/slideshow_settings.ui:21 msgid "Settings" msgstr "Configurações" -#: src/SlideshowPage.vala:158 +#: src/SlideshowPage.vala:160 msgid "Change slideshow settings" msgstr "Alterar configuração da apresentação de slides" #. An entire slideshow set might be missing, so check for a loop. -#: src/SlideshowPage.vala:212 +#: src/SlideshowPage.vala:214 msgid "All photo source files are missing." msgstr "Faltam arquivos fonte de todas as fotos." -#: src/SlideshowPage.vala:244 +#: src/SlideshowPage.vala:246 msgid "Play" msgstr "Reproduzir" -#: src/SlideshowPage.vala:245 +#: src/SlideshowPage.vala:247 msgid "Continue the slideshow" msgstr "Continuar a apresentação de slides" @@ -6009,7 +6180,7 @@ msgstr "Transição de apresentação de slides" msgid "(None)" msgstr "(Nenhum)" -#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:485 +#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:414 msgid "None" msgstr "Nenhum" @@ -6034,24 +6205,24 @@ msgstr "sem título" msgid "Export Videos" msgstr "Exportar vídeos" -#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/media.ui:281 -#: ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 +#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/faces.ui:281 +#: ui/media.ui:281 ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 msgid "Toggle _Flag" msgstr "Alternar _marca" -#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/media.ui:353 -#: ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 +#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/faces.ui:353 +#: ui/media.ui:353 ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 msgid "_Developer" msgstr "_Desenvolvedor" -#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/media.ui:381 -#: ui/photo_context.ui:126 ui/tags.ui:381 +#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/faces.ui:381 +#: ui/media.ui:381 ui/photo_context.ui:126 ui/tags.ui:381 msgid "View Eve_nt for Photo" msgstr "Ver eve_nto para foto" -#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/import_queue.ui:5 -#: ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 ui/photo.ui:5 ui/tags.ui:5 -#: ui/trash.ui:5 +#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/faces.ui:5 +#: ui/import_queue.ui:5 ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 +#: ui/photo.ui:5 ui/tags.ui:5 ui/trash.ui:5 msgid "_File" msgstr "_Arquivo" @@ -6059,7 +6230,7 @@ msgstr "_Arquivo" msgid "Save _As…" msgstr "Salvar _como…" -#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 +#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 ui/faces.ui:99 #: ui/import_queue.ui:38 ui/import.ui:74 ui/media.ui:99 ui/offline.ui:78 #: ui/photo.ui:95 ui/tags.ui:99 ui/trash.ui:87 msgid "_View" @@ -6093,229 +6264,243 @@ msgstr "Próxi_ma foto" msgid "T_ools" msgstr "F_erramentas" -#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 +#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 ui/faces.ui:438 #: ui/import_queue.ui:73 ui/import.ui:191 ui/media.ui:411 ui/offline.ui:188 #: ui/photo.ui:395 ui/tags.ui:430 ui/trash.ui:197 msgid "_Frequently Asked Questions" msgstr "Perguntas _frequentes (FAQ)" -#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 +#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 ui/faces.ui:442 #: ui/import_queue.ui:77 ui/import.ui:195 ui/media.ui:415 ui/offline.ui:192 #: ui/photo.ui:399 ui/tags.ui:434 ui/trash.ui:201 msgid "_Report a Problem…" msgstr "_Relate um problema…" -#: ui/events_directory.ui:8 ui/event.ui:8 ui/import_queue.ui:14 ui/import.ui:8 -#: ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 ui/trash.ui:8 +#: ui/events_directory.ui:8 ui/event.ui:8 ui/faces.ui:8 ui/import_queue.ui:14 +#: ui/import.ui:8 ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 +#: ui/trash.ui:8 msgid "_Import From Folder…" msgstr "_Importar da pasta…" -#: ui/events_directory.ui:13 ui/event.ui:13 ui/import_queue.ui:19 -#: ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 ui/photo.ui:13 ui/tags.ui:13 -#: ui/trash.ui:13 +#: ui/events_directory.ui:13 ui/event.ui:13 ui/faces.ui:13 +#: ui/import_queue.ui:19 ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 +#: ui/photo.ui:13 ui/tags.ui:13 ui/trash.ui:13 msgid "Import From _Application…" msgstr "Importação de _aplicativo…" -#: ui/events_directory.ui:19 ui/event.ui:34 ui/import_queue.ui:25 -#: ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 ui/photo.ui:42 ui/tags.ui:34 -#: ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 +#: ui/events_directory.ui:19 ui/event.ui:34 ui/faces.ui:34 +#: ui/import_queue.ui:25 ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 +#: ui/photo.ui:42 ui/tags.ui:34 ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 msgid "Empty T_rash" msgstr "Esvaziar l_ixeira" -#: ui/events_directory.ui:47 ui/event.ui:62 ui/import.ui:55 ui/media.ui:62 -#: ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 +#: ui/events_directory.ui:47 ui/event.ui:62 ui/faces.ui:62 ui/import.ui:55 +#: ui/media.ui:62 ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 msgid "_Find" msgstr "_Localizar" -#: ui/events_directory.ui:51 ui/event.ui:66 ui/media.ui:66 ui/offline.ui:51 -#: ui/photo.ui:70 ui/search_sidebar_context.ui:6 +#: ui/events_directory.ui:51 ui/event.ui:66 ui/faces.ui:66 ui/media.ui:66 +#: ui/offline.ui:51 ui/photo.ui:70 ui/search_sidebar_context.ui:6 #: ui/sidebar_default_context.ui:6 ui/tags.ui:66 ui/trash.ui:56 msgid "Ne_w Saved Search…" msgstr "No_va pesquisa salva…" -#: ui/events_directory.ui:74 ui/event.ui:102 ui/import_queue.ui:41 -#: ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 ui/photo.ui:98 -#: ui/tags.ui:102 ui/trash.ui:90 +#: ui/events_directory.ui:74 ui/event.ui:102 ui/faces.ui:102 +#: ui/import_queue.ui:41 ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 +#: ui/photo.ui:98 ui/tags.ui:102 ui/trash.ui:90 msgid "_Basic Information" msgstr "Informações _básicas" -#: ui/events_directory.ui:79 ui/event.ui:107 ui/import.ui:82 ui/media.ui:107 -#: ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 ui/trash.ui:95 +#: ui/events_directory.ui:79 ui/event.ui:107 ui/faces.ui:107 ui/import.ui:82 +#: ui/media.ui:107 ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 +#: ui/trash.ui:95 msgid "E_xtended Information" msgstr "Informações _estendidas" -#: ui/events_directory.ui:84 ui/event.ui:112 ui/import.ui:87 ui/media.ui:112 -#: ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 +#: ui/events_directory.ui:84 ui/event.ui:112 ui/faces.ui:112 ui/import.ui:87 +#: ui/media.ui:112 ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 msgid "_Search Bar" msgstr "Barra de pe_squisa" -#: ui/events_directory.ui:89 ui/event.ui:117 ui/import.ui:92 ui/media.ui:117 -#: ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 ui/trash.ui:105 +#: ui/events_directory.ui:89 ui/event.ui:117 ui/faces.ui:117 ui/import.ui:92 +#: ui/media.ui:117 ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 +#: ui/trash.ui:105 msgid "S_idebar" msgstr "Ba_rra lateral" -#: ui/events_directory.ui:94 ui/event.ui:122 ui/import.ui:97 ui/media.ui:122 -#: ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 ui/trash.ui:110 +#: ui/events_directory.ui:94 ui/event.ui:122 ui/faces.ui:122 ui/import.ui:97 +#: ui/media.ui:122 ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 +#: ui/trash.ui:110 msgid "T_oolbar" msgstr "Barra de _ferramentas" -#: ui/events_directory.ui:101 ui/event.ui:134 ui/media.ui:134 ui/tags.ui:134 +#: ui/events_directory.ui:101 ui/event.ui:134 ui/faces.ui:134 ui/media.ui:134 +#: ui/tags.ui:134 msgid "_Comments" msgstr "_Comentários" -#: ui/events_directory.ui:108 ui/event.ui:243 ui/import_queue.ui:48 -#: ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 ui/photo.ui:127 -#: ui/tags.ui:243 ui/trash.ui:172 +#: ui/events_directory.ui:108 ui/event.ui:243 ui/faces.ui:243 +#: ui/import_queue.ui:48 ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 +#: ui/photo.ui:127 ui/tags.ui:243 ui/trash.ui:172 msgid "Sort _Events" msgstr "Ordenar _eventos" -#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 -#: ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 ui/media.ui:246 -#: ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 ui/tags.ui:246 -#: ui/trash.ui:175 +#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 ui/faces.ui:231 +#: ui/faces.ui:246 ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 +#: ui/media.ui:246 ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 +#: ui/tags.ui:246 ui/trash.ui:175 msgid "_Ascending" msgstr "_Ascendente" -#: ui/events_directory.ui:116 ui/event.ui:236 ui/import_queue.ui:56 -#: ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 ui/trash.ui:180 +#: ui/events_directory.ui:116 ui/event.ui:236 ui/faces.ui:236 +#: ui/import_queue.ui:56 ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 +#: ui/trash.ui:180 msgid "D_escending" msgstr "D_escendente" -#: ui/events_directory.ui:132 ui/event.ui:379 ui/media.ui:373 ui/tags.ui:373 +#: ui/events_directory.ui:132 ui/event.ui:379 ui/faces.ui:373 ui/media.ui:373 +#: ui/tags.ui:373 msgid "Even_ts" msgstr "Even_tos" -#: ui/event.ui:129 ui/import.ui:104 ui/media.ui:129 ui/tags.ui:129 +#: ui/event.ui:129 ui/faces.ui:129 ui/import.ui:104 ui/media.ui:129 +#: ui/tags.ui:129 msgid "_Titles" msgstr "_Títulos" -#: ui/event.ui:139 ui/event.ui:404 ui/media.ui:139 ui/media.ui:387 -#: ui/photo.ui:372 ui/tags.ui:139 ui/tags.ui:387 +#: ui/event.ui:139 ui/event.ui:404 ui/faces.ui:139 ui/faces.ui:387 +#: ui/media.ui:139 ui/media.ui:387 ui/photo.ui:372 ui/tags.ui:139 +#: ui/tags.ui:387 msgid "Ta_gs" msgstr "Eti_quetas" -#: ui/event.ui:206 ui/media.ui:206 ui/tags.ui:206 +#: ui/event.ui:206 ui/faces.ui:206 ui/media.ui:206 ui/tags.ui:206 msgid "Sort _Photos" msgstr "Ordenar _fotos" -#: ui/event.ui:209 ui/media.ui:209 ui/tags.ui:209 +#: ui/event.ui:209 ui/faces.ui:209 ui/media.ui:209 ui/tags.ui:209 msgid "By _Title" msgstr "Por _título" -#: ui/event.ui:214 ui/media.ui:214 ui/tags.ui:214 +#: ui/event.ui:214 ui/faces.ui:214 ui/media.ui:214 ui/tags.ui:214 msgid "By _Filename" msgstr "Por _nome de arquivo" -#: ui/event.ui:219 ui/media.ui:219 ui/tags.ui:219 +#: ui/event.ui:219 ui/faces.ui:219 ui/media.ui:219 ui/tags.ui:219 msgid "By Exposure _Date" msgstr "Por _data de exposição" -#: ui/event.ui:224 ui/media.ui:224 ui/tags.ui:224 +#: ui/event.ui:224 ui/faces.ui:224 ui/media.ui:224 ui/tags.ui:224 msgid "By _Rating" msgstr "Por _avaliação" -#: ui/event.ui:251 ui/import.ui:174 ui/media.ui:251 ui/photo.ui:135 -#: ui/tags.ui:251 +#: ui/event.ui:251 ui/faces.ui:251 ui/import.ui:174 ui/media.ui:251 +#: ui/photo.ui:135 ui/tags.ui:251 msgid "_Descending" msgstr "_Descendente" -#: ui/event.ui:275 ui/media.ui:275 ui/tags.ui:275 +#: ui/event.ui:275 ui/faces.ui:275 ui/media.ui:275 ui/tags.ui:275 msgid "_Photos" msgstr "_Fotos" +#: ui/faces.ui:465 +#| msgid "_Rename…" +msgid "Rename…" +msgstr "Renomear…" + #: ui/import_queue.ui:8 msgid "_Stop Import" msgstr "Pa_rar importação" -#: ui/preferences_dialog.ui:65 -msgid "white" -msgstr "branco" - -#: ui/preferences_dialog.ui:92 -msgid "black" -msgstr "preto" - -#: ui/preferences_dialog.ui:123 +#: ui/preferences_dialog.ui:67 msgid "Display" msgstr "Exibição" -#: ui/preferences_dialog.ui:160 -msgid "_Background:" -msgstr "_Plano de fundo:" - -#: ui/preferences_dialog.ui:175 +#: ui/preferences_dialog.ui:103 msgid "_Import photos to:" msgstr "_Importar fotos para:" -#: ui/preferences_dialog.ui:186 +#: ui/preferences_dialog.ui:114 msgid "_Watch library directory for new files" msgstr "_Monitorar diretório da biblioteca por novos arquivos" -#: ui/preferences_dialog.ui:209 +#: ui/preferences_dialog.ui:137 msgid "Importing" msgstr "Importando" -#: ui/preferences_dialog.ui:226 +#: ui/preferences_dialog.ui:154 msgid "_Directory structure:" msgstr "Estrutura de _diretório:" -#: ui/preferences_dialog.ui:241 +#: ui/preferences_dialog.ui:169 msgid "Example:" msgstr "Exemplo:" -#: ui/preferences_dialog.ui:250 +#: ui/preferences_dialog.ui:178 msgid "R_ename imported files to lowercase" msgstr "R_enomear arquivos importados para letra minúscula" -#: ui/preferences_dialog.ui:272 +#: ui/preferences_dialog.ui:200 msgid "Metadata" msgstr "Metadados" -#: ui/preferences_dialog.ui:285 +#: ui/preferences_dialog.ui:213 msgid "Write tags, titles, and other _metadata to photo files" msgstr "Gravar etiquetas, títulos e outros _metadados para arquivos de fotos" -#: ui/preferences_dialog.ui:307 +#: ui/preferences_dialog.ui:235 msgid "RAW Developer" msgstr "Desenvolvedor RAW" -#: ui/preferences_dialog.ui:324 +#: ui/preferences_dialog.ui:252 msgid "De_fault:" msgstr "Pa_drão:" -#: ui/preferences_dialog.ui:378 +#: ui/preferences_dialog.ui:306 msgid "_Pattern:" msgstr "_Padrão:" -#: ui/preferences_dialog.ui:414 +#: ui/preferences_dialog.ui:339 +msgid "" +"When viewing images that are transparent, they will be drawn against this " +"background." +msgstr "" +"Ao visualizar imagens que são transparentes, elas serão desenhadas sobre " +"esse plano de fundo." + +#: ui/preferences_dialog.ui:343 msgid "Transparent Background:" msgstr "Plano de fundo transparente:" -#: ui/preferences_dialog.ui:428 +#: ui/preferences_dialog.ui:357 msgid "Checkered" msgstr "Quadriculado" -#: ui/preferences_dialog.ui:449 +#: ui/preferences_dialog.ui:378 msgid "Solid color" msgstr "Cor sólida" -#: ui/preferences_dialog.ui:539 +#: ui/preferences_dialog.ui:441 +msgid "Use dark theme:" +msgstr "Usar tema escuro:" + +#: ui/preferences_dialog.ui:492 msgid "E_xternal photo editor:" msgstr "Editor de foto e_xterno:" -#: ui/preferences_dialog.ui:556 +#: ui/preferences_dialog.ui:509 msgid "External _RAW editor:" msgstr "Editor _RAW externo:" -#: ui/preferences_dialog.ui:617 +#: ui/preferences_dialog.ui:570 msgid "External Editors" msgstr "Editores externos" -#: ui/preferences_dialog.ui:642 +#: ui/preferences_dialog.ui:595 msgid "Plugins" msgstr "Plug-ins" -#: ui/preferences_dialog.ui:668 +#: ui/preferences_dialog.ui:621 msgid "Shotwell Preferences" msgstr "Preferências do Shotwell" @@ -6442,23 +6627,23 @@ msgstr "" msgid "New _Tag…" msgstr "Nova etique_ta…" -#: ui/slideshow_settings.ui:91 +#: ui/slideshow_settings.ui:98 msgid "_Delay:" msgstr "A_traso:" -#: ui/slideshow_settings.ui:105 +#: ui/slideshow_settings.ui:112 msgid "_Transition effect:" msgstr "Efeito de _transição:" -#: ui/slideshow_settings.ui:119 +#: ui/slideshow_settings.ui:126 msgid "Transition d_elay:" msgstr "A_traso de transição:" -#: ui/slideshow_settings.ui:129 +#: ui/slideshow_settings.ui:136 msgid "Show t_itle" msgstr "Mostrar títul_o" -#: ui/slideshow_settings.ui:212 ui/slideshow_settings.ui:223 +#: ui/slideshow_settings.ui:219 ui/slideshow_settings.ui:230 msgid "seconds" msgstr "segundos" @@ -6470,6 +6655,21 @@ msgstr "rótulo" msgid "Delete all photos in the trash" msgstr "Apaga todas as fotos na lixeira" +#~ msgid "background color" +#~ msgstr "cor do plano de fundo" + +#~ msgid "A grayscale color for use as the background color." +#~ msgstr "Uma cor em escala de cinza para usar como plano de fundo." + +#~ msgid "white" +#~ msgstr "branco" + +#~ msgid "black" +#~ msgstr "preto" + +#~ msgid "_Background:" +#~ msgstr "_Plano de fundo:" + #~ msgid "" #~ "Enter the confirmation number which appears after you log into Flickr in " #~ "your Web browser." diff --git a/po/quot.sed b/po/quot.sed deleted file mode 100644 index 0122c46..0000000 --- a/po/quot.sed +++ /dev/null @@ -1,6 +0,0 @@ -s/"\([^"]*\)"/“\1”/g -s/`\([^`']*\)'/‘\1’/g -s/ '\([^`']*\)' / ‘\1’ /g -s/ '\([^`']*\)'$/ ‘\1’/g -s/^'\([^`']*\)' /‘\1’ /g -s/“”/""/g diff --git a/po/remove-potcdate.sin b/po/remove-potcdate.sin deleted file mode 100644 index 2436c49..0000000 --- a/po/remove-potcdate.sin +++ /dev/null @@ -1,19 +0,0 @@ -# Sed script that remove the POT-Creation-Date line in the header entry -# from a POT file. -# -# The distinction between the first and the following occurrences of the -# pattern is achieved by looking at the hold space. -/^"POT-Creation-Date: .*"$/{ -x -# Test if the hold space is empty. -s/P/P/ -ta -# Yes it was empty. First occurrence. Remove the line. -g -d -bb -:a -# The hold space was nonempty. Following occurrences. Do nothing. -x -:b -} diff --git a/po/ro.gmo b/po/ro.gmo deleted file mode 100644 index ac1d921..0000000 Binary files a/po/ro.gmo and /dev/null differ diff --git a/po/ru.gmo b/po/ru.gmo deleted file mode 100644 index 7d4523d..0000000 Binary files a/po/ru.gmo and /dev/null differ diff --git a/po/shotwell.pot b/po/shotwell.pot deleted file mode 100644 index 744afae..0000000 --- a/po/shotwell.pot +++ /dev/null @@ -1,6005 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR Translation copyright holder -# This file is distributed under the same license as the shotwell package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: shotwell 0.28.4\n" -"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" -"product=Shotwell&component=Internationalization\n" -"POT-Creation-Date: 2018-07-14 13:07+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" - -#: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in:4 -#: plugins/shotwell-publishing-extras/GalleryConnector.vala:115 -#: src/photos/RawSupport.vala:308 ui/collection.ui:85 ui/event.ui:356 -#: ui/event.ui:524 ui/media.ui:356 ui/photo_context.ui:91 ui/photo.ui:347 -#: ui/tags.ui:356 -msgid "Shotwell" -msgstr "" - -#: misc/shotwell.appdata.xml.in:9 -msgid "Popular photo manager" -msgstr "" - -#: misc/shotwell.appdata.xml.in:11 -msgid "" -"Shotwell is an easy-to-use, fast photo organizer designed for the GNOME " -"desktop. It allows you to import photos from your camera or disk, organize " -"them by date and subject matter, even ratings. It also offers basic photo " -"editing, like crop, red-eye correction, color adjustments, and straighten. " -"Shotwell’s non-destructive photo editor does not alter your master photos, " -"making it easy to experiment and correct errors." -msgstr "" - -#: misc/shotwell.appdata.xml.in:18 -msgid "" -"When ready, Shotwell can upload your photos to various web sites, such as " -"Facebook, Flickr, Picasa (Google Plus), and more." -msgstr "" - -#: misc/shotwell.appdata.xml.in:22 -msgid "Shotwell supports JPEG, PNG, TIFF, and a variety of RAW file formats." -msgstr "" - -#: misc/shotwell.appdata.xml.in:52 -msgid "The Shotwell developers" -msgstr "" - -#: misc/shotwell.desktop.in:5 src/Resources.vala:17 -msgid "Photo Manager" -msgstr "" - -#: misc/shotwell.desktop.in:6 -msgid "Organize your photos" -msgstr "" - -#. Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! -#: misc/shotwell.desktop.in:8 -msgid "" -"album;camera;cameras;crop;edit;enhance;export;gallery;image;images;import;" -"organize;photo;photographs;photos;picture;pictures;photography;print;publish;" -"rotate;share;tags;video;facebook;flickr;picasa;youtube;piwigo;" -msgstr "" - -#. Translators: Do NOT translate or transliterate this text (this is an icon file name)! -#: misc/shotwell.desktop.in:11 misc/shotwell-viewer.desktop.in:8 -msgid "shotwell" -msgstr "" - -#: misc/shotwell-viewer.desktop.in:4 -msgid "Shotwell Viewer" -msgstr "" - -#: misc/shotwell-viewer.desktop.in:5 src/Resources.vala:18 -msgid "Photo Viewer" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:6 -msgid "authentication token" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:7 -msgid "Yandex-Fotki authentication token, if logged in." -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:14 -msgid "Token" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:15 -msgid "The token to access tumblr" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:20 -msgid "Secret token" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:21 -msgid "The secret token to sign oauth requests" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:26 -#: misc/org.yorba.shotwell.gschema.xml:498 -msgid "default size" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:27 -msgid "" -"A numeric code representing the default size for photos uploaded to Tumblr" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:32 -msgid "default blog" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:33 -msgid "The name of the default blog of the user, if any" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:40 -msgid "Rajce URL" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:41 -msgid "URL of the Rajce server." -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:46 -#: misc/org.yorba.shotwell.gschema.xml:466 -#: misc/org.yorba.shotwell.gschema.xml:524 -#: misc/org.yorba.shotwell.gschema.xml:580 -msgid "username" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:47 -msgid "Rajce username, if logged in." -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:52 -msgid "token" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:53 -msgid "user token, if remembered." -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:58 -#: misc/org.yorba.shotwell.gschema.xml:542 -msgid "last category" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:59 -msgid "The last selected Rajce category." -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:64 -#: misc/org.yorba.shotwell.gschema.xml:554 -msgid "last photo size" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:65 -msgid "" -"A numeric code representing the last photo size preset used when publishing " -"to Rajce." -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:70 -msgid "remember" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:71 -msgid "If true, remember last login." -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:76 -msgid "hide album" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:77 -msgid "If true, hide the newly created Rajce album." -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:82 -msgid "open album in web browser" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:83 -msgid "" -"If true, open target album in the web browser just after uploading photos" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:88 -#: misc/org.yorba.shotwell.gschema.xml:446 -#: misc/org.yorba.shotwell.gschema.xml:484 -#: misc/org.yorba.shotwell.gschema.xml:510 -#: misc/org.yorba.shotwell.gschema.xml:560 -#: misc/org.yorba.shotwell.gschema.xml:604 -msgid "remove sensitive info from uploads" -msgstr "" - -#: misc/org.yorba.shotwell-extras.gschema.xml:89 -msgid "" -"Whether images being uploaded to Rajce should have their metadata removed " -"first" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:23 -msgid "display basic properties" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:24 -msgid "True if the basic properties pane is to be displayed, false otherwise." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:29 -msgid "display extended properties" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:30 -msgid "" -"True if the extended properties window is to be displayed, false otherwise." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:35 -msgid "display sidebar" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:36 -msgid "True if the sidebar is to be displayed, false otherwise." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:41 -msgid "display toolbar" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:42 -msgid "True if the bottom toolbar is to be displayed, false otherwise." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:47 -msgid "display search bar" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:48 -msgid "True if the Search/Filter Toolbar is to be displayed, false otherwise." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:53 -msgid "display photo titles" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:54 -msgid "" -"True if photo titles are to be displayed beneath thumbnails in collection " -"views, false otherwise." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:59 -msgid "display photo comments" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:60 -msgid "" -"True if photo comments are to be displayed beneath thumbnails in collection " -"views, false otherwise." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:65 -msgid "display event comments" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:66 -msgid "" -"True if event comments are to be displayed beneath thumbnails in event " -"views, false otherwise." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:71 -msgid "display photo tags" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:72 -msgid "" -"True if photo tags are to be listed beneath thumbnails in collection views, " -"false otherwise." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:77 -msgid "display photo ratings" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:78 -msgid "" -"True if a photo’s rating should be displayed as overlaid trinket, false " -"otherwise." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:83 -msgid "rating filter level" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:84 -msgid "" -"Determines how to filter photos based on their ratings. 1: Rejected or " -"better, 2: Unrated or better, 3: One or better, 4: Two or better, 5: Three " -"or better, 6: Four or better, 7: Five or better." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:89 -msgid "sort events ascending" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:90 -msgid "True if events should be sorted ascending, false if descending." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:95 -msgid "sort library photos ascending" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:96 -msgid "True if library photos should be sorted ascending, false if descending." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:101 -msgid "sort library photos criteria" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:102 -msgid "" -"A numeric code that specifies the sort criteria for photos in library views." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:107 -msgid "sort event photos ascending" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:108 -msgid "True if event photos should be sorted ascending, false if descending." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:113 -msgid "sort event photos criteria" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:114 -msgid "Specifies the sort criteria for event photos." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:119 -msgid "use 24 hour time" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:120 -msgid "" -"True if should display times with a 24 hour clock, false if times should use " -"AM/PM notation." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:125 -msgid "keep relative time between photos" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:126 -msgid "" -"True if when adjusting time/date of photos, relative time should be " -"maintained. False if all photos should be set to the same time." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:131 -msgid "modify original photo files" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:132 -msgid "" -"True if when adjusting time/date of photos, the original files should be " -"modified as well. False if changes are made only in the database." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:137 -msgid "show welcome dialog on startup" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:138 -msgid "" -"True if, when on startup, a welcome dialog should be shown. False if it " -"should not be shown." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:143 -msgid "sidebar position" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:144 -msgid "The width, in pixels, of the sidebar" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:149 -msgid "photo thumbnail scale" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:150 -msgid "The scale of photo thumbnails, ranging from 72 to 360." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:155 -msgid "pin toolbar state" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:156 -msgid "Pin toolbar in fullscreen, or not." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:161 -msgid "background color" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:162 -msgid "A grayscale color for use as the background color." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:167 -msgid "background for transparent images" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:168 -msgid "The background to use for transparent images." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:173 -msgid "color for solid transparency background" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:174 -msgid "Color to use if background for transparent images is set to solid color" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:179 -msgid "Selection state of “hide photos” option" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:180 -msgid "" -"Last used selection state of the “hide photos already imported” option in " -"the import page." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:187 -msgid "delay" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:188 -msgid "Delay (in seconds) between photos in the slideshow." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:193 -msgid "transition delay" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:194 -msgid "" -"The time (in seconds) that a transition runs between photos in a slideshow" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:199 -msgid "transition effect id" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:200 -msgid "" -"The name of the transition effect that will be used between photos when " -"running a slideshow" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:205 -msgid "Show title" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:206 -msgid "Whether to show the title of a photo during the slideshow" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:213 -msgid "maximize library window" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:214 -msgid "True if library application is maximized, false otherwise." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:219 -msgid "width of library window" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:220 -msgid "The last recorded width of the library application window." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:225 -msgid "height of library window" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:226 -msgid "The last recorded height of the library application window." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:231 -msgid "maximize direct-edit window" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:232 -msgid "True if direct-edit application is maximized, false otherwise." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:237 -msgid "width of direct-edit window" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:238 -msgid "The last recorded width of the direct-edit application window." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:243 -msgid "height of direct-edit window" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:244 -msgid "The last recorded height of the direct-edit application window." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:249 -msgid "sidebar divider position" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:250 -msgid "" -"The last recorded position of the divider between the sidebar and view in " -"library application window." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:257 -msgid "import directory" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:258 -msgid "Directory in which imported photo files are placed." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:263 -msgid "watch library directory for new files" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:264 -msgid "" -"If true, files added to the library directory are automatically imported." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:269 -msgid "write metadata to master files" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:270 -msgid "" -"If true, changes to metadata (tags, titles, etc.) are written to the master " -"photo file." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:275 -msgid "use lowercase filenames" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:276 -msgid "" -"If true, Shotwell will convert all filenames to lowercase when importing " -"photo files" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:281 -msgid "directory pattern" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:282 -msgid "" -"A string encoding a naming pattern that will be used to name photo " -"directories on import." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:287 -msgid "directory pattern custom" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:288 -msgid "" -"A string encoding a custom naming pattern that will be used to name photo " -"directories on import." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:293 -msgid "RAW developer default" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:294 -msgid "Default option for which RAW developer Shotwell will use." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:301 -msgid "Most-recently-used crop aspect ratio menu choice." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:302 -msgid "A numeric code representing the last crop menu choice the user made." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:306 -msgid "Most-recently-used crop custom aspect ratio’s numerator." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:307 -msgid "" -"A nonzero, positive integer representing the width part of the last custom " -"crop ratio the user entered." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:311 -msgid "Most-recently-used crop custom aspect ratio’s denominator." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:312 -msgid "" -"A nonzero, positive integer representing the height part of the last custom " -"crop ratio the user entered." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:319 -msgid "external photo editor" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:320 -msgid "External application used to edit photos." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:325 -msgid "external raw editor" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:326 -msgid "External application used to edit RAW photos." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:364 -#: misc/org.yorba.shotwell.gschema.xml:365 -msgid "Setting in export dialog: how to trim images" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:370 -msgid "export metadata" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:371 -msgid "Setting in export dialog: option to export metadata" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:376 -msgid "format setting, special value" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:377 -msgid "Setting in export dialog: format setting, special value" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:382 -msgid "format setting, type value" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:383 -msgid "Setting in export dialog: format setting, type value" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:388 -msgid "JPEG quality option" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:389 -msgid "Setting in export dialog: jpeg quality option" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:394 -msgid "maximal size of image" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:395 -msgid "Setting in export dialog: maximal size of image" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:402 -msgid "last used publishing service" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:403 -#: misc/org.yorba.shotwell.gschema.xml:409 -msgid "" -"A numeric code representing the last service to which photos were published" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:408 -msgid "default publishing service" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:422 -msgid "access token" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:423 -msgid "Facebook OAuth token for the currently logged in session, if any" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:428 -msgid "user i.d." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:429 -msgid "Facebook user i.d. for the currently logged in user, if any" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:434 -msgid "user name" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:435 -msgid "The name of the currently logged in Facebook user, if any" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:440 -#: misc/org.yorba.shotwell.gschema.xml:472 -msgid "default size code" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:441 -msgid "" -"A numeric code representing the default size for photos published to Facebook" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:447 -msgid "" -"Whether images being uploaded to Facebook should have their metadata removed " -"first" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:454 -msgid "OAuth Access Phase Token" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:455 -msgid "The authorization token for the currently logged in Flickr user, if any" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:460 -msgid "OAuth Access Phase Token Secret" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:461 -msgid "" -"The cryptographic secret used to sign requests against the authorization " -"token for the currently logged in Flickr user, if any" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:467 -msgid "The user name of the currently logged in Flickr user, if any" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:473 -msgid "" -"A numeric code representing the default size for photos published to Flickr" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:478 -msgid "default visibility" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:479 -msgid "" -"A numeric code representing the default visibility for photos published to " -"Flickr" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:485 -msgid "" -"Whether images being uploaded to Flickr should have their metadata removed " -"first" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:492 -#: misc/org.yorba.shotwell.gschema.xml:624 -msgid "refresh token" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:493 -msgid "" -"The OAuth token used to refresh the Picasa Web Albums session for the " -"currently logged in user, if any." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:499 -msgid "" -"A numeric code representing the default size for photos uploaded to Picasa " -"Web Albums" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:504 -#: misc/org.yorba.shotwell.gschema.xml:598 -msgid "last album" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:505 -#: misc/org.yorba.shotwell.gschema.xml:599 -msgid "The name of the last album the user published photos to, if any" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:511 -msgid "" -"Whether images being uploaded to Picasa should have their metadata removed " -"first" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:518 -msgid "Piwigo URL" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:519 -msgid "URL of the Piwigo server." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:525 -msgid "Piwigo username, if logged in." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:530 -msgid "password" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:531 -msgid "Piwigo password, if logged in." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:536 -msgid "remember password" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:537 -msgid "If true, remember the Piwigo password." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:543 -msgid "The last selected Piwigo category." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:548 -msgid "last permission level" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:549 -msgid "The last chosen Piwigo permission level." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:555 -msgid "" -"A numeric code representing the last photo size preset used when publishing " -"to Piwigo." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:561 -msgid "" -"Whether images being uploaded to Piwigo should have their metadata removed " -"first" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:566 -msgid "" -"if title is set and comment unset, use title as comment for uploads to Piwigo" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:567 -msgid "" -"Whether images being uploaded to Piwigo should have their comment set from " -"the title if title is set and comment unset" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:572 -msgid "do not upload tags when uploading to Piwigo" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:573 -msgid "" -"Whether images being uploaded to Piwigo should have their tags removed on " -"upload, such that these tags will not appear on the remote Piwigo server." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:581 -msgid "Gallery3 username" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:586 -msgid "API key" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:587 -msgid "Gallery3 API key" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:592 -msgid "URL" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:593 -msgid "Gallery3 site URL" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:605 -msgid "" -"Indicates whether images being uploaded to Gallery3 should have their " -"metadata removed first" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:610 -msgid "scaling constraint of uploaded picture" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:611 -msgid "The scaling constraint ID of the picture to be uploaded" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:616 -msgid "pixels of the major axis uploaded picture" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:617 -msgid "" -"The pixels of the major axis of the picture to be uploaded; used only if " -"scaling-constraint-id is an appropriate value" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:625 -msgid "" -"The OAuth token used to refresh the YouTube session for the currently logged " -"in user, if any." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:632 -msgid "last used import service" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:633 -msgid "" -"A numeric code representing the last service from which photos were imported" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:640 -msgid "interpreter state cookie" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:641 -msgid "" -"A numeric code that captures the state of the GStreamer plug-in environment" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:648 -msgid "content layout mode" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:649 -msgid "" -"A numeric code that describes how photos are laid out on the page during " -"printing" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:654 -msgid "content ppi" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:655 -msgid "The number of pixels per inch (ppi) sent to the printer during printing" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:660 -msgid "content width" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:661 -msgid "The width of the printed emulsion on the page when printing" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:666 -msgid "content height" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:667 -msgid "The height of the printed emulsion on the page when printing" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:672 -msgid "content units" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:673 -msgid "" -"A numeric code representing unit of measure (inches or centimeters) used " -"when printing" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:678 -msgid "images per page code" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:679 -msgid "" -"A numeric code representing the currently selected images per page mode used " -"when printing" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:684 -msgid "size selection" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:685 -msgid "" -"The index of the current print size in a pre-defined list of standard sizes" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:690 -msgid "match aspect ratio" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:691 -msgid "" -"Determines whether custom print sizes must match the aspect ratio of the " -"original photo" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:696 -msgid "print titles" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:697 -msgid "" -"True if the title of a photo should be printed when the photo is printed, " -"false otherwise." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:702 -msgid "titles font" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:703 -msgid "The name of the font to use for photo titles when they are printed." -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:714 -msgid "enable facebook publishing plugin" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:715 -msgid "True if the Facebook publishing plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:720 -msgid "enable flickr publishing plugin" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:721 -msgid "True if the Flickr publishing plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:726 -msgid "enable picasa publishing plugin" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:727 -msgid "" -"True if the Picasa Web Albums publishing plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:732 -msgid "enable youtube publishing plugin" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:733 -msgid "True if the YouTube publishing plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:738 -msgid "enable piwigo publishing plugin" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:739 -msgid "True if the Piwigo publishing plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:744 -msgid "enable yandex publishing plugin" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:745 -msgid "True if the Yandex.Fotki publishing plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:750 -msgid "enable tumblr publishing plugin" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:751 -msgid "True if the Tumblr publishing plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:756 -msgid "enable rajce publishing plugin" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:757 -msgid "True if the Rajce publishing plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:762 -msgid "enable gallery3 publishing plugin" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:763 -msgid "True if the Gallery3 publishing plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:768 -msgid "enable F-Spot import plugin" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:769 -msgid "True if the F-Spot import plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:774 -msgid "enable slideshow crumble transition" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:775 -msgid "" -"True if the Crumble slideshow transition plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:780 -msgid "enable slideshow fade transition" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:781 -msgid "" -"True if the Fade slideshow transition plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:786 -msgid "enable slideshow slide transition" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:787 -msgid "" -"True if the Slide slideshow transition plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:792 -msgid "enable slideshow clock transition" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:793 -msgid "" -"True if the Clock slideshow transition plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:798 -msgid "enable slideshow circle transition" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:799 -msgid "" -"True if the Circle slideshow transition plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:804 -msgid "enable slideshow circles transition" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:805 -msgid "" -"True if the Circles slideshow transition plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:810 -msgid "enable slideshow blinds transition" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:811 -msgid "" -"True if the Blinds slideshow transition plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:816 -msgid "enable slideshow squares transition" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:817 -msgid "" -"True if the Squares slideshow transition plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:822 -msgid "enable slideshow stripes transition" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:823 -msgid "" -"True if the Stripes slideshow transition plugin is enabled, false otherwise" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:828 -msgid "enable slideshow chess transition" -msgstr "" - -#: misc/org.yorba.shotwell.gschema.xml:829 -msgid "" -"True if the Chess-Board slideshow transition plugin is enabled, false " -"otherwise" -msgstr "" - -#: plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala:166 -msgid "" -"You are not currently logged into Facebook.\n" -"\n" -"If you don’t yet have a Facebook account, you can create one during the " -"login process. During login, Shotwell Connect may ask you for permission to " -"upload photos and publish to your feed. These permissions are required for " -"Shotwell Connect to function." -msgstr "" - -#: plugins/authenticator/shotwell/FacebookPublishingAuthenticator.vala:168 -msgid "" -"You have already logged in and out of Facebook during this Shotwell " -"session.\n" -"To continue publishing to Facebook, quit and restart Shotwell, then try " -"publishing again." -msgstr "" - -#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:17 -msgid "" -"You are not currently logged into Flickr.\n" -"\n" -"Click Log in to log into Flickr in your Web browser. You will have to " -"authorize Shotwell Connect to link to your Flickr account." -msgstr "" - -#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:124 -msgid "Preparing for login…" -msgstr "" - -#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:193 -msgid "Flickr authorization failed" -msgstr "" - -#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:200 -msgid "Verifying authorization…" -msgstr "" - -#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:137 -msgid "" -"You have already logged in and out of a Google service during this Shotwell " -"session.\n" -"\n" -"To continue publishing to Google services, quit and restart Shotwell, then " -"try publishing again." -msgstr "" - -#: plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala:32 -msgid "" -"You are not currently logged into Picasa Web Albums.\n" -"\n" -"Click Log in to log into Picasa Web Albums in your Web browser. You will " -"have to authorize Shotwell Connect to link to your Picasa Web Albums account." -msgstr "" - -#: plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala:35 -msgid "" -"You are not currently logged into YouTube.\n" -"\n" -"You must have already signed up for a Google account and set it up for use " -"with YouTube to continue. You can set up most accounts by using your browser " -"to log into the YouTube site at least once." -msgstr "" - -#: plugins/authenticator/shotwell/tumblr_authentication_pane.ui:42 -#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:42 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:892 -msgid "_Email address" -msgstr "" - -#: plugins/authenticator/shotwell/tumblr_authentication_pane.ui:82 -#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:82 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:893 -#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:119 -msgid "_Password" -msgstr "" - -#: plugins/authenticator/shotwell/tumblr_authentication_pane.ui:104 -#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:120 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:895 -#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:154 -msgid "Log in" -msgstr "" - -#: plugins/authenticator/shotwell/TumblrAuthenticator.vala:25 -msgid "Enter the username and password associated with your Tumblr account." -msgstr "" - -#: plugins/authenticator/shotwell/TumblrAuthenticator.vala:26 -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1081 -msgid "Username and/or password invalid. Please try again" -msgstr "" - -#: plugins/authenticator/shotwell/TumblrAuthenticator.vala:53 -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1117 -msgid "Invalid User Name or Password" -msgstr "" - -#: plugins/authenticator/shotwell/TumblrAuthenticator.vala:72 -#: plugins/shotwell-publishing/TumblrPublishing.vala:498 -#, c-format -msgid "Could not load UI: %s" -msgstr "" - -#: plugins/common/Resources.vala:12 -msgid "Visit the Shotwell home page" -msgstr "" - -#: plugins/common/Resources.vala:31 src/AppWindow.vala:611 -msgid "translator-credits" -msgstr "" - -#. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:217 -msgid "" -"⚫ This website presented identification that belongs to a different website." -msgstr "" - -#. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:222 -msgid "" -"⚫ This website’s identification is too old to trust. Check the date on your " -"computer’s calendar." -msgstr "" - -#. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:227 -msgid "" -"⚫ This website’s identification was not issued by a trusted organization." -msgstr "" - -#. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:232 -msgid "" -"⚫ This website’s identification could not be processed. It may be corrupted." -msgstr "" - -#. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:237 -msgid "" -"⚫ This website’s identification has been revoked by the trusted organization " -"that issued it." -msgstr "" - -#. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:242 -msgid "" -"⚫ This website’s identification cannot be trusted because it uses very weak " -"encryption." -msgstr "" - -#. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:247 -msgid "" -"⚫ This website’s identification is only valid for future dates. Check the " -"date on your computer’s calendar." -msgstr "" - -#: plugins/common/RESTSupport.vala:524 -#: plugins/shotwell-publishing/TumblrPublishing.vala:623 -msgid "A temporary file needed for publishing is unavailable" -msgstr "" - -#: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:28 -msgid "_Gallery3 URL:" -msgstr "" - -#: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:55 -msgid "_User name:" -msgstr "" - -#: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:68 -msgid "_Password:" -msgstr "" - -#: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:108 -msgid "Go _Back" -msgstr "" - -#: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:125 -#: ui/shotwell.ui:76 -msgid "_Log in" -msgstr "" - -#: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:154 -msgid "API _Key:" -msgstr "" - -#: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:180 -msgid "or" -msgstr "" - -#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:34 -msgid "An _existing album" -msgstr "" - -#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:60 -msgid "A _new album" -msgstr "" - -#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:86 -msgid "_Remove location, tag and camera-identifying data before uploading" -msgstr "" - -#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:108 -msgid "Scaling constraint:" -msgstr "" - -#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:124 -msgid "pixels" -msgstr "" - -#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:158 -#: plugins/shotwell-publishing/FlickrPublishing.vala:687 -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1306 -#: src/Dimensions.vala:17 -msgid "Original size" -msgstr "" - -#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:159 -#: src/Dimensions.vala:20 -msgid "Longest edge" -msgstr "" - -#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:203 -#: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:39 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:1019 -#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:145 -#: plugins/shotwell-publishing/facebook_publishing_options_pane.ui:177 -#: plugins/shotwell-publishing/flickr_publishing_options_pane.ui:125 -#: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:142 -#: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:105 -#: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:99 -msgid "_Logout" -msgstr "" - -#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:216 -#: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:220 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:1018 -#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:159 -#: plugins/shotwell-publishing/facebook_publishing_options_pane.ui:192 -#: plugins/shotwell-publishing/flickr_publishing_options_pane.ui:141 -#: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:156 -#: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:121 -#: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:115 -#: src/CollectionPage.vala:82 src/PhotoPage.vala:2469 -msgid "_Publish" -msgstr "" - -#: plugins/shotwell-publishing-extras/GalleryConnector.vala:41 -msgid "Gallery3 publishing module" -msgstr "" - -#: plugins/shotwell-publishing-extras/GalleryConnector.vala:114 -msgid "" -"You are not currently logged into your Gallery.\n" -"\n" -"You must have already signed up for a Gallery3 account to complete the login " -"process." -msgstr "" - -#: plugins/shotwell-publishing-extras/GalleryConnector.vala:117 -msgid "Shotwell default directory" -msgstr "" - -#: plugins/shotwell-publishing-extras/GalleryConnector.vala:801 -#, c-format -msgid "" -"\n" -"\n" -"The file “%s” may not be supported by or may be too large for this instance " -"of Gallery3." -msgstr "" - -#: plugins/shotwell-publishing-extras/GalleryConnector.vala:802 -msgid "" -"\n" -"Note that Gallery3 only supports the video types that Flowplayer does." -msgstr "" - -#: plugins/shotwell-publishing-extras/GalleryConnector.vala:1021 -#: plugins/shotwell-publishing-extras/GalleryConnector.vala:1773 -#, c-format -msgid "" -"A file required for publishing is unavailable. Publishing to %s can’t " -"continue." -msgstr "" - -#. populate any widgets whose contents are -#. programmatically-generated -#: plugins/shotwell-publishing-extras/GalleryConnector.vala:1550 -#, c-format -msgid "Publishing to %s as %s." -msgstr "" - -#: plugins/shotwell-publishing-extras/GalleryConnector.vala:1817 -msgid "" -"Enter the URL for your Gallery3 site and the username and password (or API " -"key) for your Gallery3 account." -msgstr "" - -#: plugins/shotwell-publishing-extras/GalleryConnector.vala:1818 -msgid "" -"The username and password or API key were incorrect. To try again, re-enter " -"your username and password below." -msgstr "" - -#: plugins/shotwell-publishing-extras/GalleryConnector.vala:1819 -msgid "" -"The URL entered does not appear to be the main directory of a Gallery3 " -"instance. Please make sure you typed it correctly and it does not have any " -"trailing components (e.g., index.php)." -msgstr "" - -#: plugins/shotwell-publishing-extras/GalleryConnector.vala:1872 -msgid "Unrecognized User" -msgstr "" - -#: plugins/shotwell-publishing-extras/GalleryConnector.vala:1877 -msgid " Site Not Found" -msgstr "" - -#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:100 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:894 -msgid "_Remember" -msgstr "" - -#: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:104 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:1015 -msgid "An _existing album:" -msgstr "" - -#: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:123 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:1016 -msgid "A _new album named:" -msgstr "" - -#: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:141 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:1006 -msgid "_Hide album" -msgstr "" - -#: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:156 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:1017 -msgid "Open target _album in browser" -msgstr "" - -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:40 -msgid "Copyright © 2013 rajce.net" -msgstr "" - -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:744 -msgid "An error message occurred when publishing to Rajce. Please try again." -msgstr "" - -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:833 -msgid "Enter email and password associated with your Rajce account." -msgstr "" - -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:834 -msgid "Invalid email and/or password. Please try again" -msgstr "" - -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:865 -msgid "Invalid User Email or Password" -msgstr "" - -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:1013 -#, c-format -msgid "You are logged into Rajce as %s." -msgstr "" - -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:1014 -#: plugins/shotwell-publishing/PicasaPublishing.vala:571 -#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:20 -msgid "Photos will appear in:" -msgstr "" - -#: plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala:27 -msgid "Shotwell Extra Publishing Services" -msgstr "" - -#: plugins/shotwell-publishing-extras/YandexPublishing.vala:22 -msgid "Copyright 2010+ Evgeniy Polyakov " -msgstr "" - -#: plugins/shotwell-publishing-extras/YandexPublishing.vala:25 -msgid "Visit the Yandex.Fotki web site" -msgstr "" - -#: plugins/shotwell-publishing-extras/YandexPublishing.vala:609 -msgid "You are not currently logged into Yandex.Fotki." -msgstr "" - -#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:12 -msgid "Public" -msgstr "" - -#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:15 -#: plugins/shotwell-publishing/FacebookPublishing.vala:888 -msgid "Friends" -msgstr "" - -#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:18 -#: plugins/shotwell-publishing/YouTubePublishing.vala:378 -msgid "Private" -msgstr "" - -#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:47 -msgid "_Albums (or write new):" -msgstr "" - -#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:85 -msgid "Access _type:" -msgstr "" - -#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:106 -msgid "Disable _comments" -msgstr "" - -#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:123 -msgid "_Forbid downloading original photo" -msgstr "" - -#: plugins/shotwell-publishing/facebook_publishing_options_pane.ui:42 -msgid "Publish to an e_xisting album:" -msgstr "" - -#: plugins/shotwell-publishing/facebook_publishing_options_pane.ui:58 -msgid "Create a _new album named:" -msgstr "" - -#: plugins/shotwell-publishing/facebook_publishing_options_pane.ui:100 -#: plugins/shotwell-publishing/FacebookPublishing.vala:725 -msgid "Upload _size:" -msgstr "" - -#: plugins/shotwell-publishing/facebook_publishing_options_pane.ui:125 -msgid "Videos and new photo albums _visible to:" -msgstr "" - -#: plugins/shotwell-publishing/facebook_publishing_options_pane.ui:155 -#: plugins/shotwell-publishing/flickr_publishing_options_pane.ui:92 -#: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:59 -#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:203 -msgid "" -"_Remove location, camera, and other identifying information before uploading" -msgstr "" - -#: plugins/shotwell-publishing/FacebookPublishing.vala:33 -#: plugins/shotwell-publishing/FlickrPublishing.vala:33 -#: plugins/shotwell-publishing/PicasaPublishing.vala:33 -#: plugins/shotwell-publishing/PiwigoPublishing.vala:33 -#: plugins/shotwell-publishing/YouTubePublishing.vala:33 src/Resources.vala:27 -msgid "Copyright 2016 Software Freedom Conservancy Inc." -msgstr "" - -#: plugins/shotwell-publishing/FacebookPublishing.vala:61 -#: plugins/shotwell-publishing/PicasaPublishing.vala:58 -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1188 -msgid "Shotwell Connect" -msgstr "" - -#: plugins/shotwell-publishing/FacebookPublishing.vala:81 -msgid "Standard (720 pixels)" -msgstr "" - -#: plugins/shotwell-publishing/FacebookPublishing.vala:84 -msgid "Large (2048 pixels)" -msgstr "" - -#: plugins/shotwell-publishing/FacebookPublishing.vala:314 -msgid "Creating album…" -msgstr "" - -#: plugins/shotwell-publishing/FacebookPublishing.vala:340 -msgid "" -"A file required for publishing is unavailable. Publishing to Facebook can’t " -"continue." -msgstr "" - -#: plugins/shotwell-publishing/FacebookPublishing.vala:723 -#, c-format -msgid "" -"You are logged into Facebook as %s.\n" -"\n" -msgstr "" - -#: plugins/shotwell-publishing/FacebookPublishing.vala:724 -msgid "Where would you like to publish the selected photos?" -msgstr "" - -#: plugins/shotwell-publishing/FacebookPublishing.vala:887 -#: plugins/shotwell-publishing/FlickrPublishing.vala:665 -msgid "Just me" -msgstr "" - -#: plugins/shotwell-publishing/FacebookPublishing.vala:889 -#: plugins/shotwell-publishing/FlickrPublishing.vala:661 -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1290 -msgid "Everyone" -msgstr "" - -#: plugins/shotwell-publishing/flickr_publishing_options_pane.ui:61 -#: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:59 -msgid "Photo _size:" -msgstr "" - -#: plugins/shotwell-publishing/FlickrPublishing.vala:340 -msgid "" -"A file required for publishing is unavailable. Publishing to Flickr can’t " -"continue." -msgstr "" - -#: plugins/shotwell-publishing/FlickrPublishing.vala:607 -#, c-format -msgid "" -"You are logged into Flickr as %s.\n" -"\n" -msgstr "" - -#: plugins/shotwell-publishing/FlickrPublishing.vala:609 -#, c-format -msgid "" -"Your free Flickr account limits how much data you can upload per month.\n" -"This month you have %s remaining in your upload quota." -msgstr "" - -#: plugins/shotwell-publishing/FlickrPublishing.vala:611 -msgid "Your Flickr Pro account entitles you to unlimited uploads." -msgstr "" - -#: plugins/shotwell-publishing/FlickrPublishing.vala:616 -msgid "Photos _visible to:" -msgstr "" - -#: plugins/shotwell-publishing/FlickrPublishing.vala:618 -msgid "Videos _visible to:" -msgstr "" - -#: plugins/shotwell-publishing/FlickrPublishing.vala:621 -msgid "Photos and videos _visible to:" -msgstr "" - -#: plugins/shotwell-publishing/FlickrPublishing.vala:662 -msgid "Friends & family only" -msgstr "" - -#: plugins/shotwell-publishing/FlickrPublishing.vala:663 -msgid "Family only" -msgstr "" - -#: plugins/shotwell-publishing/FlickrPublishing.vala:664 -msgid "Friends only" -msgstr "" - -#: plugins/shotwell-publishing/FlickrPublishing.vala:683 -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1302 -#: plugins/shotwell-publishing/TumblrPublishing.vala:103 -msgid "500 × 375 pixels" -msgstr "" - -#: plugins/shotwell-publishing/FlickrPublishing.vala:684 -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1303 -#: plugins/shotwell-publishing/TumblrPublishing.vala:104 -msgid "1024 × 768 pixels" -msgstr "" - -#: plugins/shotwell-publishing/FlickrPublishing.vala:685 -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1304 -msgid "2048 × 1536 pixels" -msgstr "" - -#: plugins/shotwell-publishing/FlickrPublishing.vala:686 -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1305 -msgid "4096 × 3072 pixels" -msgstr "" - -#: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:93 -msgid "Photo _size preset:" -msgstr "" - -#. Add album that will push to the default feed for all the new users -#. Activate last known album id. If none was chosen, either use the old default (Shotwell connect) -#. or the new "Default album" album for Google Photos -#: plugins/shotwell-publishing/PicasaPublishing.vala:96 -#: plugins/shotwell-publishing/PicasaPublishing.vala:630 -msgid "Default album" -msgstr "" - -#: plugins/shotwell-publishing/PicasaPublishing.vala:291 -msgid "" -"A file required for publishing is unavailable. Publishing to Picasa can’t " -"continue." -msgstr "" - -#. populate any widgets whose contents are programmatically-generated. -#: plugins/shotwell-publishing/PicasaPublishing.vala:560 -#, c-format -msgid "You are logged into Picasa Web Albums as %s." -msgstr "" - -#: plugins/shotwell-publishing/PicasaPublishing.vala:566 -msgid "Videos will appear in:" -msgstr "" - -#: plugins/shotwell-publishing/PicasaPublishing.vala:610 -msgid "Small (640 × 480 pixels)" -msgstr "" - -#: plugins/shotwell-publishing/PicasaPublishing.vala:611 -msgid "Medium (1024 × 768 pixels)" -msgstr "" - -#: plugins/shotwell-publishing/PicasaPublishing.vala:612 -msgid "Recommended (1600 × 1200 pixels)" -msgstr "" - -#: plugins/shotwell-publishing/PicasaPublishing.vala:613 -msgid "Google+ (2048 × 1536 pixels)" -msgstr "" - -#: plugins/shotwell-publishing/PicasaPublishing.vala:614 -#: src/editing_tools/EditingTools.vala:735 -msgid "Original Size" -msgstr "" - -#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:44 -msgid "_URL of your Piwigo photo library" -msgstr "" - -#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:94 -msgid "User _name" -msgstr "" - -#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:133 -msgid "Remember Password" -msgstr "" - -#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:36 -msgid "An _existing category" -msgstr "" - -#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:110 -msgid "A _new album named" -msgstr "" - -#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:142 -msgid "within category" -msgstr "" - -#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:155 -msgid "Album comment" -msgstr "" - -#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:167 -msgid "Photos will be _visible by" -msgstr "" - -#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:181 -msgid "Photo size" -msgstr "" - -#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:219 -msgid "_If a title is set and comment unset, use title as comment" -msgstr "" - -#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:235 -msgid "_Do no upload tags" -msgstr "" - -#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:255 -msgid "Logout" -msgstr "" - -#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:268 -#: src/Resources.vala:296 ui/collection.ui:192 -msgid "Publish" -msgstr "" - -#: plugins/shotwell-publishing/PiwigoPublishing.vala:773 -#, c-format -msgid "Creating album %s…" -msgstr "" - -#: plugins/shotwell-publishing/PiwigoPublishing.vala:946 -msgid "An error message occurred when publishing to Piwigo. Please try again." -msgstr "" - -#. %s is the host name that we tried to connect to -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1030 -#, c-format -msgid "" -"This does not look like the real %s. Attackers might be trying to " -"steal or alter information going to or from this site (for example, private " -"messages, credit card information, or passwords)." -msgstr "" - -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1048 -#, c-format -msgid "Certificate of %s" -msgstr "" - -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1051 -#: src/Resources.vala:167 ui/multitextentrydialog.ui:40 -#: ui/slideshow_settings.ui:49 -msgid "_OK" -msgstr "" - -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1079 -msgid "" -"Enter the URL of your Piwigo photo library as well as the username and " -"password associated with your Piwigo account for that library." -msgstr "" - -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1080 -msgid "" -"Shotwell cannot contact your Piwigo photo library. Please verify the URL you " -"entered" -msgstr "" - -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1112 -msgid "Invalid URL" -msgstr "" - -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1291 -msgid "Admins, Family, Friends, Contacts" -msgstr "" - -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1292 -msgid "Admins, Family, Friends" -msgstr "" - -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1293 -msgid "Admins, Family" -msgstr "" - -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1294 -msgid "Admins" -msgstr "" - -#: plugins/shotwell-publishing/piwigo_ssl_failure_pane.ui:21 -msgid "This connection is not secure" -msgstr "" - -#: plugins/shotwell-publishing/piwigo_ssl_failure_pane.ui:75 -msgid "Show the certificate…" -msgstr "" - -#: plugins/shotwell-publishing/piwigo_ssl_failure_pane.ui:88 -msgid "I understand, please _proceed." -msgstr "" - -#: plugins/shotwell-publishing/shotwell-publishing.vala:59 -msgid "Core Publishing Services" -msgstr "" - -#: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:44 -msgid "Blogs:" -msgstr "" - -#: plugins/shotwell-publishing/TumblrPublishing.vala:35 -msgid "Copyright 2012 BJA Electronics" -msgstr "" - -#: plugins/shotwell-publishing/TumblrPublishing.vala:105 -msgid "1280 × 853 pixels" -msgstr "" - -#: plugins/shotwell-publishing/TumblrPublishing.vala:407 -msgid "" -"TumblrPublisher: start( ): can’t start; this publisher is not restartable." -msgstr "" - -#: plugins/shotwell-publishing/TumblrPublishing.vala:480 -#, c-format -msgid "" -"You are logged into Tumblr as %s.\n" -"\n" -msgstr "" - -#: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:55 -msgid "Video privacy _setting:" -msgstr "" - -#: plugins/shotwell-publishing/YouTubePublishing.vala:236 -msgid "" -"A file required for publishing is unavailable. Publishing to YouTube can’t " -"continue." -msgstr "" - -#: plugins/shotwell-publishing/YouTubePublishing.vala:344 -#, c-format -msgid "You are logged into YouTube as %s." -msgstr "" - -#: plugins/shotwell-publishing/YouTubePublishing.vala:376 -msgid "Public listed" -msgstr "" - -#: plugins/shotwell-publishing/YouTubePublishing.vala:377 -msgid "Public unlisted" -msgstr "" - -#: plugins/shotwell-transitions/BlindsEffect.vala:20 -msgid "Blinds" -msgstr "" - -#: plugins/shotwell-transitions/ChessEffect.vala:20 -msgid "Chess" -msgstr "" - -#: plugins/shotwell-transitions/CircleEffect.vala:20 -msgid "Circle" -msgstr "" - -#: plugins/shotwell-transitions/CirclesEffect.vala:20 -msgid "Circles" -msgstr "" - -#: plugins/shotwell-transitions/ClockEffect.vala:20 -msgid "Clock" -msgstr "" - -#: plugins/shotwell-transitions/CrumbleEffect.vala:20 -msgid "Crumble" -msgstr "" - -#: plugins/shotwell-transitions/FadeEffect.vala:20 -msgid "Fade" -msgstr "" - -#: plugins/shotwell-transitions/shotwell-transitions.vala:28 -msgid "Core Slideshow Transitions" -msgstr "" - -#: plugins/shotwell-transitions/shotwell-transitions.vala:76 -msgid "" -"Copyright 2010 Maxim Kartashev, Copyright 2016 Software Freedom Conservancy " -"Inc." -msgstr "" - -#: plugins/shotwell-transitions/SlideEffect.vala:20 -msgid "Slide" -msgstr "" - -#: plugins/shotwell-transitions/SquaresEffect.vala:20 -msgid "Squares" -msgstr "" - -#: plugins/shotwell-transitions/StripesEffect.vala:20 -msgid "Stripes" -msgstr "" - -#: src/AppDirs.vala:64 src/AppDirs.vala:115 -#, c-format -msgid "Unable to create cache directory %s: %s" -msgstr "" - -#: src/AppDirs.vala:74 src/AppDirs.vala:104 -#, c-format -msgid "Unable to create data directory %s: %s" -msgstr "" - -#. If XDG yarfed, use ~/Pictures -#: src/AppDirs.vala:168 -msgid "Pictures" -msgstr "" - -#: src/AppDirs.vala:206 -#, c-format -msgid "Unable to create temporary directory %s: %s" -msgstr "" - -#: src/AppDirs.vala:223 src/AppDirs.vala:254 -#, c-format -msgid "Unable to create data subdirectory %s: %s" -msgstr "" - -#: src/AppDirs.vala:236 -#, c-format -msgid "Could not make directory %s writable" -msgstr "" - -#: src/AppDirs.vala:239 -#, c-format -msgid "Could not make directory %s writable: %s" -msgstr "" - -#: src/AppWindow.vala:47 -msgid "Pin Toolbar" -msgstr "" - -#: src/AppWindow.vala:48 -msgid "Pin the toolbar open" -msgstr "" - -#: src/AppWindow.vala:53 -msgid "Leave fullscreen" -msgstr "" - -#: src/AppWindow.vala:538 src/AppWindow.vala:559 src/AppWindow.vala:576 -#: src/data_imports/DataImportsUI.vala:302 -#: src/data_imports/DataImportsUI.vala:420 src/Dialogs.vala:20 -#: src/Dialogs.vala:28 src/Dialogs.vala:753 src/Dialogs.vala:776 -#: src/publishing/PublishingUI.vala:305 src/publishing/PublishingUI.vala:529 -#: src/Resources.vala:158 ui/multitextentrydialog.ui:25 -#: ui/slideshow_settings.ui:35 ui/textentrydialog.ui:19 -msgid "_Cancel" -msgstr "" - -#: src/AppWindow.vala:586 -#, c-format -msgid "" -"A fatal error occurred when accessing Shotwell’s library. Shotwell cannot " -"continue.\n" -"\n" -"%s" -msgstr "" - -#: src/AppWindow.vala:607 -msgid "Visit the Shotwell web site" -msgstr "" - -#: src/AppWindow.vala:620 -#, c-format -msgid "Unable to display help: %s" -msgstr "" - -#: src/AppWindow.vala:628 -#, c-format -msgid "Unable to navigate to bug database: %s" -msgstr "" - -#: src/AppWindow.vala:636 -#, c-format -msgid "Unable to display FAQ: %s" -msgstr "" - -#: src/BatchImport.vala:26 -msgid "Success" -msgstr "" - -#: src/BatchImport.vala:29 -msgid "File error" -msgstr "" - -#: src/BatchImport.vala:32 -msgid "Unable to decode file" -msgstr "" - -#: src/BatchImport.vala:35 -msgid "Database error" -msgstr "" - -#: src/BatchImport.vala:38 -msgid "User aborted import" -msgstr "" - -#: src/BatchImport.vala:41 -msgid "Not a file" -msgstr "" - -#: src/BatchImport.vala:44 -msgid "File already exists in database" -msgstr "" - -#: src/BatchImport.vala:47 -msgid "Unsupported file format" -msgstr "" - -#: src/BatchImport.vala:50 -msgid "Not an image file" -msgstr "" - -#: src/BatchImport.vala:53 -msgid "Disk failure" -msgstr "" - -#: src/BatchImport.vala:56 -msgid "Disk full" -msgstr "" - -#: src/BatchImport.vala:59 -msgid "Camera error" -msgstr "" - -#: src/BatchImport.vala:62 -msgid "File write error" -msgstr "" - -#: src/BatchImport.vala:65 -msgid "Corrupt image file" -msgstr "" - -#: src/BatchImport.vala:68 -#, c-format -msgid "Imported failed (%d)" -msgstr "" - -#: src/camera/CameraBranch.vala:85 -msgid "Cameras" -msgstr "" - -#: src/camera/CameraBranch.vala:85 -msgid "List of all discovered camera devices" -msgstr "" - -#: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:711 -#: src/camera/ImportPage.vala:727 src/photos/RawSupport.vala:311 -#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/media.ui:361 -#: ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 -msgid "Camera" -msgstr "" - -#. Translators: First %s is the name of camera as gotten from GPhoto, second is the GVolume name, e.g. Mass storage camera (510MB volume) -#: src/camera/CameraTable.vala:246 -#, c-format -msgid "%s (%s)" -msgstr "" - -#: src/camera/ImportPage.vala:311 src/Properties.vala:230 -msgid "RAW+JPEG" -msgstr "" - -#: src/camera/ImportPage.vala:466 -msgid "" -"Unable to unmount camera. Try unmounting the camera from the file manager." -msgstr "" - -#. hide duplicates checkbox -#: src/camera/ImportPage.vala:776 -msgid "Hide photos already imported" -msgstr "" - -#: src/camera/ImportPage.vala:777 -msgid "Only display photos that have not been imported" -msgstr "" - -#: src/camera/ImportPage.vala:816 ui/import.ui:13 ui/import.ui:210 -msgid "Import _Selected" -msgstr "" - -#: src/camera/ImportPage.vala:826 ui/import.ui:17 ui/import.ui:214 -msgid "Import _All" -msgstr "" - -#: src/camera/ImportPage.vala:850 -msgid "The camera seems to be empty. No photos/videos found to import" -msgstr "" - -#: src/camera/ImportPage.vala:854 -msgid "No new photos/videos found on camera" -msgstr "" - -#. it's mounted, offer to unmount for the user -#: src/camera/ImportPage.vala:1025 -msgid "" -"Shotwell needs to unmount the camera from the filesystem in order to access " -"it. Continue?" -msgstr "" - -#: src/camera/ImportPage.vala:1031 -msgid "_Unmount" -msgstr "" - -#: src/camera/ImportPage.vala:1036 -msgid "Please unmount the camera." -msgstr "" - -#: src/camera/ImportPage.vala:1041 -msgid "" -"The camera is locked by another application. Shotwell can only access the " -"camera when it’s unlocked. Please close any other application using the " -"camera and try again." -msgstr "" - -#: src/camera/ImportPage.vala:1051 -msgid "Please close any other application using the camera." -msgstr "" - -#: src/camera/ImportPage.vala:1056 -#, c-format -msgid "" -"Unable to fetch previews from the camera:\n" -"%s" -msgstr "" - -#: src/camera/ImportPage.vala:1073 -msgid "Unmounting…" -msgstr "" - -#: src/camera/ImportPage.vala:1166 -msgid "Connecting to camera, please wait…" -msgstr "" - -#: src/camera/ImportPage.vala:1198 -msgid "Starting import, please wait…" -msgstr "" - -#: src/camera/ImportPage.vala:1204 -msgid "Fetching photo information" -msgstr "" - -#: src/camera/ImportPage.vala:1563 -#, c-format -msgid "Fetching preview for %s" -msgstr "" - -#: src/camera/ImportPage.vala:1671 -#, c-format -msgid "Unable to lock camera: %s" -msgstr "" - -#: src/camera/ImportPage.vala:1756 -#, c-format -msgid "Delete this photo from camera?" -msgid_plural "Delete these %d photos from camera?" -msgstr[0] "" -msgstr[1] "" - -#: src/camera/ImportPage.vala:1759 -#, c-format -msgid "Delete this video from camera?" -msgid_plural "Delete these %d videos from camera?" -msgstr[0] "" -msgstr[1] "" - -#: src/camera/ImportPage.vala:1762 -#, c-format -msgid "Delete this photo/video from camera?" -msgid_plural "Delete these %d photos/videos from camera?" -msgstr[0] "" -msgstr[1] "" - -#: src/camera/ImportPage.vala:1765 -#, c-format -msgid "Delete these files from camera?" -msgid_plural "Delete these %d files from camera?" -msgstr[0] "" -msgstr[1] "" - -#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:720 -msgid "_Keep" -msgstr "" - -#: src/camera/ImportPage.vala:1792 -msgid "Removing photos/videos from camera" -msgstr "" - -#: src/camera/ImportPage.vala:1796 -#, c-format -msgid "Unable to delete %d photo/video from the camera due to errors." -msgid_plural "Unable to delete %d photos/videos from the camera due to errors." -msgstr[0] "" -msgstr[1] "" - -#: src/CollectionPage.vala:80 src/direct/DirectPhotoPage.vala:85 -#: src/PhotoPage.vala:2464 src/Resources.vala:171 -msgid "_Print" -msgstr "" - -#: src/CollectionPage.vala:83 src/Resources.vala:324 ui/collection.ui:128 -#: ui/direct_context.ui:23 ui/direct.ui:23 ui/event.ui:567 ui/photo.ui:28 -msgid "Send _To…" -msgstr "" - -#: src/CollectionPage.vala:84 src/direct/DirectPhotoPage.vala:90 -#: src/PhotoPage.vala:2474 src/Resources.vala:221 -msgid "Set as _Desktop Background" -msgstr "" - -#: src/CollectionPage.vala:92 src/Resources.vala:287 -msgid "_Duplicate" -msgstr "" - -#: src/CollectionPage.vala:100 -msgid "Fullscreen" -msgstr "" - -#: src/CollectionPage.vala:102 ui/photo.ui:180 -msgid "S_lideshow" -msgstr "" - -#: src/CollectionPage.vala:110 src/Resources.vala:140 ui/direct.ui:111 -#: ui/photo.ui:200 -msgid "Rotate _Right" -msgstr "" - -#: src/CollectionPage.vala:113 src/Resources.vala:145 ui/direct.ui:116 -#: ui/photo.ui:205 -msgid "Rotate _Left" -msgstr "" - -#: src/CollectionPage.vala:116 src/Resources.vala:150 ui/direct.ui:121 -#: ui/photo.ui:210 -msgid "Flip Hori_zontally" -msgstr "" - -#: src/CollectionPage.vala:117 src/Resources.vala:153 ui/direct.ui:125 -#: ui/photo.ui:214 -msgid "Flip Verti_cally" -msgstr "" - -#: src/CollectionPage.vala:119 src/Resources.vala:187 ui/collection.ui:8 -#: ui/direct_context.ui:7 ui/direct.ui:134 ui/event.ui:447 -#: ui/photo_context.ui:6 ui/photo.ui:223 -msgid "_Enhance" -msgstr "" - -#: src/CollectionPage.vala:120 src/Resources.vala:215 ui/collection.ui:13 -#: ui/direct_context.ui:12 ui/direct.ui:161 ui/event.ui:452 -#: ui/photo_context.ui:11 ui/photo.ui:250 -msgid "Re_vert to Original" -msgstr "" - -#: src/CollectionPage.vala:122 src/Resources.vala:191 ui/photo.ui:256 -msgid "_Copy Color Adjustments" -msgstr "" - -#: src/CollectionPage.vala:125 src/Resources.vala:195 ui/photo.ui:261 -msgid "_Paste Color Adjustments" -msgstr "" - -#: src/CollectionPage.vala:135 -msgid "Adjust Date and Time…" -msgstr "" - -#: src/CollectionPage.vala:143 src/Resources.vala:320 ui/collection.ui:108 -#: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:361 -msgid "Open With E_xternal Editor" -msgstr "" - -#: src/CollectionPage.vala:146 src/Resources.vala:322 ui/collection.ui:113 -#: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:366 -msgid "Open With RA_W Editor" -msgstr "" - -#: src/CollectionPage.vala:149 src/Resources.vala:168 -msgid "_Play" -msgstr "" - -#: src/CollectionPage.vala:410 -msgid "Export Photo/Video" -msgid_plural "Export Photos/Videos" -msgstr[0] "" -msgstr[1] "" - -#: src/CollectionPage.vala:412 src/Dialogs.vala:59 src/PhotoPage.vala:2998 -msgid "Export Photo" -msgid_plural "Export Photos" -msgstr[0] "" -msgstr[1] "" - -#: src/CollectionPage.vala:499 src/CollectionPage.vala:515 -msgid "Rotating" -msgstr "" - -#: src/CollectionPage.vala:499 src/CollectionPage.vala:515 -msgid "Undoing Rotate" -msgstr "" - -#: src/CollectionPage.vala:524 -msgid "Flipping Horizontally" -msgstr "" - -#: src/CollectionPage.vala:525 -msgid "Undoing Flip Horizontally" -msgstr "" - -#: src/CollectionPage.vala:534 -msgid "Flipping Vertically" -msgstr "" - -#: src/CollectionPage.vala:535 -msgid "Undoing Flip Vertically" -msgstr "" - -#: src/Commands.vala:737 -msgid "Reverting" -msgstr "" - -#: src/Commands.vala:737 -msgid "Undoing Revert" -msgstr "" - -#: src/Commands.vala:781 -msgid "Enhancing" -msgstr "" - -#: src/Commands.vala:781 -msgid "Undoing Enhance" -msgstr "" - -#: src/Commands.vala:857 -msgid "Applying Color Transformations" -msgstr "" - -#: src/Commands.vala:857 -msgid "Undoing Color Transformations" -msgstr "" - -#: src/Commands.vala:1007 -msgid "Creating New Event" -msgstr "" - -#: src/Commands.vala:1008 -msgid "Removing Event" -msgstr "" - -#: src/Commands.vala:1017 -msgid "Moving Photos to New Event" -msgstr "" - -#: src/Commands.vala:1018 -msgid "Setting Photos to Previous Event" -msgstr "" - -#: src/Commands.vala:1075 -msgid "Merging" -msgstr "" - -#: src/Commands.vala:1076 -msgid "Unmerging" -msgstr "" - -#: src/Commands.vala:1085 -msgid "Duplicating photos" -msgstr "" - -#: src/Commands.vala:1085 -msgid "Removing duplicated photos" -msgstr "" - -#: src/Commands.vala:1108 -#, c-format -msgid "Unable to duplicate one photo due to a file error" -msgid_plural "Unable to duplicate %d photos due to file errors" -msgstr[0] "" -msgstr[1] "" - -#: src/Commands.vala:1195 -msgid "Restoring previous rating" -msgstr "" - -#: src/Commands.vala:1205 src/Commands.vala:1206 -msgid "Increasing ratings" -msgstr "" - -#: src/Commands.vala:1205 src/Commands.vala:1206 -msgid "Decreasing ratings" -msgstr "" - -#: src/Commands.vala:1256 -msgid "Setting RAW developer" -msgstr "" - -#: src/Commands.vala:1256 -msgid "Restoring previous RAW developer" -msgstr "" - -#: src/Commands.vala:1257 -msgid "Set Developer" -msgstr "" - -#: src/Commands.vala:1347 -msgid "Original photo could not be adjusted." -msgstr "" - -#: src/Commands.vala:1368 -msgid "Adjusting Date and Time" -msgstr "" - -#: src/Commands.vala:1368 -msgid "Undoing Date and Time Adjustment" -msgstr "" - -#: src/Commands.vala:1399 -msgid "One original photo could not be adjusted." -msgid_plural "The following original photos could not be adjusted." -msgstr[0] "" -msgstr[1] "" - -#: src/Commands.vala:1401 src/Commands.vala:1425 -msgid "Time Adjustment Error" -msgstr "" - -#: src/Commands.vala:1423 -msgid "Time adjustments could not be undone on the following photo file." -msgid_plural "" -"Time adjustments could not be undone on the following photo files." -msgstr[0] "" -msgstr[1] "" - -#: src/Commands.vala:1637 src/Commands.vala:1660 -msgid "Create Tag" -msgstr "" - -#: src/Commands.vala:1695 -#, c-format -msgid "Move Tag “%s”" -msgstr "" - -#: src/Commands.vala:2347 -msgid "Move Photos to Trash" -msgstr "" - -#: src/Commands.vala:2347 -msgid "Restore Photos from Trash" -msgstr "" - -#: src/Commands.vala:2348 -msgid "Move the photos to the Shotwell trash" -msgstr "" - -#: src/Commands.vala:2348 -msgid "Restore the photos back to the Shotwell library" -msgstr "" - -#: src/Commands.vala:2367 -msgid "Moving Photos to Trash" -msgstr "" - -#: src/Commands.vala:2367 -msgid "Restoring Photos From Trash" -msgstr "" - -#: src/Commands.vala:2453 -msgid "Flag selected photos" -msgstr "" - -#: src/Commands.vala:2454 -msgid "Unflag selected photos" -msgstr "" - -#: src/Commands.vala:2455 -msgid "Flagging selected photos" -msgstr "" - -#: src/Commands.vala:2456 -msgid "Unflagging selected photos" -msgstr "" - -#: src/Commands.vala:2463 -msgid "Flag" -msgstr "" - -#: src/Commands.vala:2463 -msgid "Unflag" -msgstr "" - -#. Send an empty job to the queue to mark the end of the import -#: src/data_imports/DataImportsPluginHost.vala:65 -#: src/data_imports/DataImportsPluginHost.vala:78 -#, c-format -msgid "%s Database" -msgstr "" - -#: src/data_imports/DataImportsPluginHost.vala:148 -#: src/data_imports/DataImportsPluginHost.vala:294 -#, c-format -msgid "Importing from %s can’t continue because an error occurred:" -msgstr "" - -#: src/data_imports/DataImportsPluginHost.vala:151 -msgid "To try importing from another service, select one from the above menu." -msgstr "" - -#: src/data_imports/DataImportsUI.vala:10 -msgid "" -"You do not have any data imports plugins enabled.\n" -"\n" -"In order to use the Import From Application functionality, you need to have " -"at least one data imports plugin enabled. Plugins can be enabled in the " -"Preferences dialog." -msgstr "" - -#: src/data_imports/DataImportsUI.vala:100 -msgid "Database file:" -msgstr "" - -#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:783 -msgid "_Import" -msgstr "" - -#: src/data_imports/DataImportsUI.vala:219 -msgid "Import From Application" -msgstr "" - -#: src/data_imports/DataImportsUI.vala:220 -msgid "Import media _from:" -msgstr "" - -#: src/data_imports/DataImportsUI.vala:415 src/publishing/PublishingUI.vala:524 -msgid "_Close" -msgstr "" - -#: src/data_imports/DataImports.vala:22 -msgid "Data Imports" -msgstr "" - -#: src/db/DatabaseTable.vala:37 -#, c-format -msgid "Unable to open/create photo database %s: error code %d" -msgstr "" - -#: src/db/DatabaseTable.vala:46 -#, c-format -msgid "" -"Unable to write to photo database file:\n" -" %s" -msgstr "" - -#: src/db/DatabaseTable.vala:48 -#, c-format -msgid "" -"Error accessing database file:\n" -" %s\n" -"\n" -"Error was: \n" -"%s" -msgstr "" - -#: src/db/DatabaseTable.vala:92 -#, c-format -msgid "Unable to restore photo database %s" -msgstr "" - -#: src/DesktopIntegration.vala:121 -#, c-format -msgid "Unable to launch Nautilus Send-To: %s" -msgstr "" - -#: src/DesktopIntegration.vala:129 -msgid "Send To" -msgstr "" - -#: src/DesktopIntegration.vala:174 -#, c-format -msgid "Unable to export background to %s: %s" -msgstr "" - -#: src/DesktopIntegration.vala:311 -#, c-format -msgid "Unable to prepare desktop slideshow: %s" -msgstr "" - -#: src/Dialogs.vala:16 -#, c-format -msgid "This will remove the tag “%s” from one photo. Continue?" -msgid_plural "This will remove the tag “%s” from %d photos. Continue?" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:721 -#: src/Resources.vala:159 src/Resources.vala:362 src/Resources.vala:415 -#: src/Resources.vala:659 ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 -#: ui/trash.ui:216 ui/trash.ui:258 -msgid "_Delete" -msgstr "" - -#: src/Dialogs.vala:25 -#, c-format -msgid "This will remove the saved search “%s”. Continue?" -msgstr "" - -#: src/Dialogs.vala:36 -msgid "" -"Switching developers will undo all changes you have made to this photo in " -"Shotwell" -msgid_plural "" -"Switching developers will undo all changes you have made to these photos in " -"Shotwell" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:40 -msgid "_Switch Developer" -msgstr "" - -#: src/Dialogs.vala:59 -msgid "Export Video" -msgstr "" - -#: src/Dialogs.vala:84 -msgid "Export Photos" -msgstr "" - -#. Ticket #3023 -#. Attempt to replace the system error with something friendlier -#. if we can't copy an image over for editing in an external tool. -#. Did we fail because we can't write to this directory? -#. Yes - display an alternate error message here. -#: src/Dialogs.vala:112 -#, c-format -msgid "" -"Shotwell couldn’t create a file for editing this photo because you do not " -"have permission to write to %s." -msgstr "" - -#: src/Dialogs.vala:121 -msgid "" -"Unable to export the following photo due to a file error.\n" -"\n" -msgstr "" - -#: src/Dialogs.vala:127 -msgid "" -"\n" -"\n" -"Would you like to continue exporting?" -msgstr "" - -#: src/Dialogs.vala:128 -msgid "Con_tinue" -msgstr "" - -#: src/Dialogs.vala:139 -msgid "Save Details…" -msgstr "" - -#: src/Dialogs.vala:140 -msgid "Save Details" -msgstr "" - -#: src/Dialogs.vala:155 -#, c-format -msgid "(and %d more)\n" -msgstr "" - -#: src/Dialogs.vala:208 -msgid "Import Results Report" -msgstr "" - -#: src/Dialogs.vala:212 -#, c-format -msgid "Attempted to import %d file." -msgid_plural "Attempted to import %d files." -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:215 -#, c-format -msgid "Of these, %d file was successfully imported." -msgid_plural "Of these, %d files were successfully imported." -msgstr[0] "" -msgstr[1] "" - -#. -#. Duplicates -#. -#: src/Dialogs.vala:227 -msgid "Duplicate Photos/Videos Not Imported:" -msgstr "" - -#: src/Dialogs.vala:231 -msgid "duplicates existing media item" -msgstr "" - -#. -#. Files Not Imported Due to Camera Errors -#. -#: src/Dialogs.vala:242 -msgid "Photos/Videos Not Imported Due to Camera Errors:" -msgstr "" - -#: src/Dialogs.vala:245 src/Dialogs.vala:260 src/Dialogs.vala:275 -#: src/Dialogs.vala:291 src/Dialogs.vala:306 src/Dialogs.vala:320 -msgid "error message:" -msgstr "" - -#. -#. Files Not Imported Because They Weren't Recognized as Photos or Videos -#. -#: src/Dialogs.vala:256 -msgid "Files Not Imported Because They Weren’t Recognized as Photos or Videos:" -msgstr "" - -#. -#. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands -#. -#: src/Dialogs.vala:271 -msgid "" -"Photos/Videos Not Imported Because They Weren’t in a Format Shotwell " -"Understands:" -msgstr "" - -#. -#. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library -#. -#: src/Dialogs.vala:286 -msgid "" -"Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into its " -"Library:" -msgstr "" - -#: src/Dialogs.vala:290 -#, c-format -msgid "" -"couldn’t copy %s\n" -"\tto %s" -msgstr "" - -#. -#. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt -#. -#: src/Dialogs.vala:302 -msgid "Photos/Videos Not Imported Because Files Are Corrupt:" -msgstr "" - -#. -#. Photos/Videos Not Imported for Other Reasons -#. -#: src/Dialogs.vala:317 -msgid "Photos/Videos Not Imported for Other Reasons:" -msgstr "" - -#: src/Dialogs.vala:337 -#, c-format -msgid "1 duplicate photo was not imported:\n" -msgid_plural "%d duplicate photos were not imported:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:340 -#, c-format -msgid "1 duplicate video was not imported:\n" -msgid_plural "%d duplicate videos were not imported:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:343 -#, c-format -msgid "1 duplicate photo/video was not imported:\n" -msgid_plural "%d duplicate photos/videos were not imported:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:357 -#, c-format -msgid "1 photo failed to import due to a file or hardware error:\n" -msgid_plural "%d photos failed to import due to a file or hardware error:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:360 -#, c-format -msgid "1 video failed to import due to a file or hardware error:\n" -msgid_plural "%d videos failed to import due to a file or hardware error:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:363 -#, c-format -msgid "1 photo/video failed to import due to a file or hardware error:\n" -msgid_plural "" -"%d photos/videos failed to import due to a file or hardware error:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:366 -#, c-format -msgid "1 file failed to import due to a file or hardware error:\n" -msgid_plural "%d files failed to import due to a file or hardware error:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:380 -#, c-format -msgid "" -"1 photo failed to import because the photo library folder was not writable:\n" -msgid_plural "" -"%d photos failed to import because the photo library folder was not " -"writable:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:383 -#, c-format -msgid "" -"1 video failed to import because the photo library folder was not writable:\n" -msgid_plural "" -"%d videos failed to import because the photo library folder was not " -"writable:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:386 -#, c-format -msgid "" -"1 photo/video failed to import because the photo library folder was not " -"writable:\n" -msgid_plural "" -"%d photos/videos failed to import because the photo library folder was not " -"writable:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:389 -#, c-format -msgid "" -"1 file failed to import because the photo library folder was not writable:\n" -msgid_plural "" -"%d files failed to import because the photo library folder was not " -"writable:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:403 -#, c-format -msgid "1 photo failed to import due to a camera error:\n" -msgid_plural "%d photos failed to import due to a camera error:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:406 -#, c-format -msgid "1 video failed to import due to a camera error:\n" -msgid_plural "%d videos failed to import due to a camera error:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:409 -#, c-format -msgid "1 photo/video failed to import due to a camera error:\n" -msgid_plural "%d photos/videos failed to import due to a camera error:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:412 -#, c-format -msgid "1 file failed to import due to a camera error:\n" -msgid_plural "%d files failed to import due to a camera error:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:426 -#, c-format -msgid "1 photo failed to import because it was corrupt:\n" -msgid_plural "%d photos failed to import because they were corrupt:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:429 -#, c-format -msgid "1 video failed to import because it was corrupt:\n" -msgid_plural "%d videos failed to import because they were corrupt:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:432 -#, c-format -msgid "1 photo/video failed to import because it was corrupt:\n" -msgid_plural "%d photos/videos failed to import because they were corrupt:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:435 -#, c-format -msgid "1 file failed to import because it was corrupt:\n" -msgid_plural "%d files failed to import because it was corrupt:\n" -msgstr[0] "" -msgstr[1] "" - -#. we have no notion of "unsupported" video files right now in Shotwell (all -#. standard container formats are supported, it's just that the streams in them -#. might or might not be interpretable), so this message does not need to be -#. media specific -#: src/Dialogs.vala:452 -#, c-format -msgid "1 unsupported photo skipped:\n" -msgid_plural "%d unsupported photos skipped:\n" -msgstr[0] "" -msgstr[1] "" - -#. we have no notion of "non-video" video files right now in Shotwell, so this -#. message doesn't need to be media specific -#: src/Dialogs.vala:467 -#, c-format -msgid "1 non-image file skipped.\n" -msgid_plural "%d non-image files skipped.\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:478 -#, c-format -msgid "1 photo skipped due to user cancel:\n" -msgid_plural "%d photos skipped due to user cancel:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:481 -#, c-format -msgid "1 video skipped due to user cancel:\n" -msgid_plural "%d videos skipped due to user cancel:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:484 -#, c-format -msgid "1 photo/video skipped due to user cancel:\n" -msgid_plural "%d photos/videos skipped due to user cancel:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:487 -#, c-format -msgid "1 file skipped due to user cancel:\n" -msgid_plural "%d file skipped due to user cancel:\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:501 -#, c-format -msgid "1 photo successfully imported.\n" -msgid_plural "%d photos successfully imported.\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:504 -#, c-format -msgid "1 video successfully imported.\n" -msgid_plural "%d videos successfully imported.\n" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:507 -#, c-format -msgid "1 photo/video successfully imported.\n" -msgid_plural "%d photos/videos successfully imported.\n" -msgstr[0] "" -msgstr[1] "" - -#. if no media items were imported at all (i.e. an empty directory attempted), need to at least -#. report that nothing was imported -#: src/Dialogs.vala:523 -msgid "No photos or videos imported.\n" -msgstr "" - -#: src/Dialogs.vala:530 src/Dialogs.vala:549 -msgid "Import Complete" -msgstr "" - -#: src/Dialogs.vala:650 src/Resources.vala:232 -msgid "Rename Event" -msgstr "" - -#: src/Dialogs.vala:650 -msgid "Name:" -msgstr "" - -#. Dialog title -#: src/Dialogs.vala:661 -msgctxt "Dialog Title" -msgid "Edit Title" -msgstr "" - -#: src/Dialogs.vala:662 src/Properties.vala:343 -msgid "Title:" -msgstr "" - -#. Dialog title -#: src/Dialogs.vala:678 src/Resources.vala:308 -msgid "Edit Event Comment" -msgstr "" - -#: src/Dialogs.vala:679 -msgid "Edit Photo/Video Comment" -msgstr "" - -#: src/Dialogs.vala:680 src/Properties.vala:631 -msgid "Comment:" -msgstr "" - -#: src/Dialogs.vala:696 -msgid "Remove and _Trash File" -msgid_plural "Remove and _Trash Files" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:700 -msgid "_Remove From Library" -msgstr "" - -#: src/Dialogs.vala:743 -msgid "Revert External Edit?" -msgstr "" - -#: src/Dialogs.vala:743 -msgid "Revert External Edits?" -msgstr "" - -#: src/Dialogs.vala:745 -#, c-format -msgid "This will destroy all changes made to the external file. Continue?" -msgid_plural "" -"This will destroy all changes made to %d external files. Continue?" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:749 -msgid "Re_vert External Edit" -msgstr "" - -#: src/Dialogs.vala:749 -msgid "Re_vert External Edits" -msgstr "" - -#: src/Dialogs.vala:770 -#, c-format -msgid "This will remove the photo from the library. Continue?" -msgid_plural "This will remove %d photos from the library. Continue?" -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:777 src/Resources.vala:174 -msgid "_Remove" -msgstr "" - -#: src/Dialogs.vala:778 -msgid "Remove Photo From Library" -msgstr "" - -#: src/Dialogs.vala:778 -msgid "Remove Photos From Library" -msgstr "" - -#: src/Dialogs.vala:798 -#, c-format -msgid "" -"\n" -"\n" -"And %d other." -msgid_plural "" -"\n" -"\n" -"And %d others." -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:822 src/Dialogs.vala:849 -msgid "Tags (separated by commas):" -msgstr "" - -#. This function is used to determine whether or not files should be copied or linked when imported. -#. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. -#: src/Dialogs.vala:908 -msgid "" -"Shotwell can copy the photos into your library folder or it can import them " -"without copying." -msgstr "" - -#: src/Dialogs.vala:913 -msgid "Co_py Photos" -msgstr "" - -#: src/Dialogs.vala:914 -msgid "_Import in Place" -msgstr "" - -#: src/Dialogs.vala:915 -msgid "Import to Library" -msgstr "" - -#: src/Dialogs.vala:925 src/PhotoPage.vala:2874 -msgid "Remove From Library" -msgstr "" - -#: src/Dialogs.vala:926 src/PhotoPage.vala:2874 -msgid "Removing Photo From Library" -msgstr "" - -#: src/Dialogs.vala:926 -msgid "Removing Photos From Library" -msgstr "" - -#: src/Dialogs.vala:940 -#, c-format -msgid "" -"This will remove the photo/video from your Shotwell library. Would you also " -"like to move the file to your desktop trash?\n" -"\n" -"This action cannot be undone." -msgid_plural "" -"This will remove %d photos/videos from your Shotwell library. Would you also " -"like to move the files to your desktop trash?\n" -"\n" -"This action cannot be undone." -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:944 -#, c-format -msgid "" -"This will remove the video from your Shotwell library. Would you also like " -"to move the file to your desktop trash?\n" -"\n" -"This action cannot be undone." -msgid_plural "" -"This will remove %d videos from your Shotwell library. Would you also like " -"to move the files to your desktop trash?\n" -"\n" -"This action cannot be undone." -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:948 -#, c-format -msgid "" -"This will remove the photo from your Shotwell library. Would you also like " -"to move the file to your desktop trash?\n" -"\n" -"This action cannot be undone." -msgid_plural "" -"This will remove %d photos from your Shotwell library. Would you also like " -"to move the files to your desktop trash?\n" -"\n" -"This action cannot be undone." -msgstr[0] "" -msgstr[1] "" - -#: src/Dialogs.vala:980 -#, c-format -msgid "" -"The photo or video cannot be moved to your desktop trash. Delete this file?" -msgid_plural "" -"%d photos/videos cannot be moved to your desktop trash. Delete these files?" -msgstr[0] "" -msgstr[1] "" - -#. Alert the user that the files were not removed. -#: src/Dialogs.vala:997 -#, c-format -msgid "The photo or video cannot be deleted." -msgid_plural "%d photos/videos cannot be deleted." -msgstr[0] "" -msgstr[1] "" - -#: src/Dimensions.vala:23 -msgid "Width" -msgstr "" - -#: src/Dimensions.vala:26 -msgid "Height" -msgstr "" - -#: src/direct/DirectPhotoPage.vala:99 -#, c-format -msgid "%s does not exist." -msgstr "" - -#: src/direct/DirectPhotoPage.vala:101 -#, c-format -msgid "%s is not a file." -msgstr "" - -#: src/direct/DirectPhotoPage.vala:103 -#, c-format -msgid "" -"%s does not support the file format of\n" -"%s." -msgstr "" - -#: src/direct/DirectPhotoPage.vala:120 -#, c-format -msgid "Unable open photo %s. Sorry." -msgstr "" - -#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:176 ui/direct.ui:8 -#: ui/textentrydialog.ui:33 -msgid "_Save" -msgstr "" - -#: src/direct/DirectPhotoPage.vala:316 -msgid "_Save a Copy" -msgstr "" - -#: src/direct/DirectPhotoPage.vala:319 -#, c-format -msgid "Lose changes to %s?" -msgstr "" - -#: src/direct/DirectPhotoPage.vala:320 -msgid "Close _without Saving" -msgstr "" - -#: src/direct/DirectPhotoPage.vala:353 -#, c-format -msgid "Error while saving to %s: %s" -msgstr "" - -#: src/direct/DirectPhotoPage.vala:383 src/direct/DirectPhotoPage.vala:404 -msgid "Save As" -msgstr "" - -#. verify this is a directory -#: src/DirectoryMonitor.vala:891 -#, c-format -msgid "Unable to monitor %s: Not a directory (%s)" -msgstr "" - -#: src/dialogs/AdjustDateTimeDialog.vala:78 -msgid "AM" -msgstr "" - -#: src/dialogs/AdjustDateTimeDialog.vala:79 -msgid "PM" -msgstr "" - -#: src/dialogs/AdjustDateTimeDialog.vala:80 -msgid "24 Hr" -msgstr "" - -#: src/dialogs/AdjustDateTimeDialog.vala:95 -msgid "_Shift photos/videos by the same amount" -msgstr "" - -#: src/dialogs/AdjustDateTimeDialog.vala:100 -msgid "Set _all photos/videos to this time" -msgstr "" - -#: src/dialogs/AdjustDateTimeDialog.vala:106 -msgid "_Modify original photo file" -msgid_plural "_Modify original photo files" -msgstr[0] "" -msgstr[1] "" - -#: src/dialogs/AdjustDateTimeDialog.vala:110 -msgid "_Modify original file" -msgid_plural "_Modify original files" -msgstr[0] "" -msgstr[1] "" - -#: src/dialogs/AdjustDateTimeDialog.vala:213 -msgid "Original: " -msgstr "" - -#: src/dialogs/AdjustDateTimeDialog.vala:214 -msgid "%m/%d/%Y, %H:%M:%S" -msgstr "" - -#: src/dialogs/AdjustDateTimeDialog.vala:215 -msgid "%m/%d/%Y, %I:%M:%S %p" -msgstr "" - -#: src/dialogs/AdjustDateTimeDialog.vala:306 -#, c-format -msgid "" -"Exposure time will be shifted forward by\n" -"%d %s, %d %s, %d %s, and %d %s." -msgstr "" - -#: src/dialogs/AdjustDateTimeDialog.vala:307 -#, c-format -msgid "" -"Exposure time will be shifted backward by\n" -"%d %s, %d %s, %d %s, and %d %s." -msgstr "" - -#: src/dialogs/AdjustDateTimeDialog.vala:309 -msgid "day" -msgid_plural "days" -msgstr[0] "" -msgstr[1] "" - -#: src/dialogs/AdjustDateTimeDialog.vala:310 -msgid "hour" -msgid_plural "hours" -msgstr[0] "" -msgstr[1] "" - -#: src/dialogs/AdjustDateTimeDialog.vala:311 -msgid "minute" -msgid_plural "minutes" -msgstr[0] "" -msgstr[1] "" - -#: src/dialogs/AdjustDateTimeDialog.vala:312 -msgid "second" -msgid_plural "seconds" -msgstr[0] "" -msgstr[1] "" - -#. "Unmodified" and "Current," though they appear in the "Format:" popup menu, really -#. aren't formats so much as they are operating modes that determine specific formats. -#. Hereafter we'll refer to these as "special formats." -#: src/dialogs/ExportDialog.vala:15 -msgid "Unmodified" -msgstr "" - -#: src/dialogs/ExportDialog.vala:16 -msgid "Current" -msgstr "" - -#. layout controls -#: src/dialogs/ExportDialog.vala:90 -msgid "_Format:" -msgstr "" - -#: src/dialogs/ExportDialog.vala:93 -msgid "_Quality:" -msgstr "" - -#: src/dialogs/ExportDialog.vala:96 -msgid "_Scaling constraint:" -msgstr "" - -#: src/dialogs/ExportDialog.vala:99 -msgid "_Pixels:" -msgstr "" - -#: src/dialogs/ExportDialog.vala:103 -msgid "Export _metadata:" -msgstr "" - -#. We're installed system-wide, so use the system help. -#. We're being run from the build directory; we'll have to handle clicks to this -#. link manually ourselves, due to a limitation of help: URIs. -#: src/dialogs/Preferences.vala:115 src/dialogs/Preferences.vala:119 -msgid "(Help)" -msgstr "" - -#: src/dialogs/Preferences.vala:123 -#, c-format -msgid "Year%sMonth%sDay" -msgstr "" - -#: src/dialogs/Preferences.vala:125 -#, c-format -msgid "Year%sMonth" -msgstr "" - -#: src/dialogs/Preferences.vala:127 -#, c-format -msgid "Year%sMonth-Day" -msgstr "" - -#: src/dialogs/Preferences.vala:129 -msgid "Year-Month-Day" -msgstr "" - -#: src/dialogs/Preferences.vala:130 src/editing_tools/EditingTools.vala:760 -msgid "Custom" -msgstr "" - -#. Invalid pattern. -#: src/dialogs/Preferences.vala:369 -msgid "Invalid pattern" -msgstr "" - -#: src/dialogs/ProgressDialog.vala:97 -#, c-format -msgid "%d%%" -msgstr "" - -#: src/dialogs/SetBackgroundSlideshow.vala:49 -#, c-format -msgid "%d second" -msgid_plural "%d seconds" -msgstr[0] "" -msgstr[1] "" - -#: src/dialogs/SetBackgroundSlideshow.vala:52 -#, c-format -msgid "%d minute" -msgid_plural "%d minutes" -msgstr[0] "" -msgstr[1] "" - -#: src/dialogs/SetBackgroundSlideshow.vala:56 -#, c-format -msgid "%d hour" -msgid_plural "%d hours" -msgstr[0] "" -msgstr[1] "" - -#: src/dialogs/SetBackgroundSlideshow.vala:59 -msgid "1 day" -msgstr "" - -#: src/dialogs/WelcomeDialog.vala:35 -msgid "Welcome!" -msgstr "" - -#: src/dialogs/WelcomeDialog.vala:42 -msgid "Welcome to Shotwell!" -msgstr "" - -#: src/dialogs/WelcomeDialog.vala:47 -msgid "To get started, import photos in any of these ways:" -msgstr "" - -#: src/dialogs/WelcomeDialog.vala:67 -#, c-format -msgid "Choose File %s Import From Folder" -msgstr "" - -#: src/dialogs/WelcomeDialog.vala:68 -msgid "Drag and drop photos onto the Shotwell window" -msgstr "" - -#: src/dialogs/WelcomeDialog.vala:69 -msgid "Connect a camera to your computer and import" -msgstr "" - -#: src/dialogs/WelcomeDialog.vala:80 -#, c-format -msgid "_Import photos from your %s folder" -msgstr "" - -#: src/dialogs/WelcomeDialog.vala:87 -msgid "You can also import photos in any of these ways:" -msgstr "" - -#: src/dialogs/WelcomeDialog.vala:98 -msgid "_Don’t show this message again" -msgstr "" - -#: src/dialogs/WelcomeDialog.vala:135 -#, c-format -msgid "Import photos from your %s library" -msgstr "" - -#: src/editing_tools/EditingTools.vala:644 -msgid "Return to current photo dimensions" -msgstr "" - -#: src/editing_tools/EditingTools.vala:647 -msgid "Set the crop for this photo" -msgstr "" - -#: src/editing_tools/EditingTools.vala:659 -msgid "Pivot the crop rectangle between portrait and landscape orientations" -msgstr "" - -#: src/editing_tools/EditingTools.vala:732 -msgid "Unconstrained" -msgstr "" - -#: src/editing_tools/EditingTools.vala:733 -msgid "Square" -msgstr "" - -#: src/editing_tools/EditingTools.vala:734 -msgid "Screen" -msgstr "" - -#: src/editing_tools/EditingTools.vala:736 -#: src/editing_tools/EditingTools.vala:739 -#: src/editing_tools/EditingTools.vala:749 -#: src/editing_tools/EditingTools.vala:759 -msgid "-" -msgstr "" - -#: src/editing_tools/EditingTools.vala:737 -msgid "SD Video (4 ∶ 3)" -msgstr "" - -#: src/editing_tools/EditingTools.vala:738 -msgid "HD Video (16 ∶ 9)" -msgstr "" - -#: src/editing_tools/EditingTools.vala:740 src/Printing.vala:792 -msgid "Wallet (2 × 3 in.)" -msgstr "" - -#: src/editing_tools/EditingTools.vala:741 src/Printing.vala:795 -msgid "Notecard (3 × 5 in.)" -msgstr "" - -#: src/editing_tools/EditingTools.vala:742 src/Printing.vala:798 -msgid "4 × 6 in." -msgstr "" - -#: src/editing_tools/EditingTools.vala:743 src/Printing.vala:801 -msgid "5 × 7 in." -msgstr "" - -#: src/editing_tools/EditingTools.vala:744 src/Printing.vala:804 -msgid "8 × 10 in." -msgstr "" - -#: src/editing_tools/EditingTools.vala:745 -msgid "Letter (8.5 × 11 in.)" -msgstr "" - -#: src/editing_tools/EditingTools.vala:746 src/Printing.vala:807 -msgid "11 × 14 in." -msgstr "" - -#: src/editing_tools/EditingTools.vala:747 -msgid "Tabloid (11 × 17 in.)" -msgstr "" - -#: src/editing_tools/EditingTools.vala:748 src/Printing.vala:810 -msgid "16 × 20 in." -msgstr "" - -#: src/editing_tools/EditingTools.vala:750 src/Printing.vala:816 -msgid "Metric Wallet (9 × 13 cm)" -msgstr "" - -#: src/editing_tools/EditingTools.vala:751 src/Printing.vala:819 -msgid "Postcard (10 × 15 cm)" -msgstr "" - -#: src/editing_tools/EditingTools.vala:752 src/Printing.vala:822 -msgid "13 × 18 cm" -msgstr "" - -#: src/editing_tools/EditingTools.vala:753 src/Printing.vala:825 -msgid "18 × 24 cm" -msgstr "" - -#: src/editing_tools/EditingTools.vala:754 -msgid "A4 (210 × 297 mm)" -msgstr "" - -#: src/editing_tools/EditingTools.vala:755 src/Printing.vala:828 -msgid "20 × 30 cm" -msgstr "" - -#: src/editing_tools/EditingTools.vala:756 src/Printing.vala:831 -msgid "24 × 40 cm" -msgstr "" - -#: src/editing_tools/EditingTools.vala:757 src/Printing.vala:834 -msgid "30 × 40 cm" -msgstr "" - -#: src/editing_tools/EditingTools.vala:758 -msgid "A3 (297 × 420 mm)" -msgstr "" - -#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:398 -msgid "Size:" -msgstr "" - -#: src/editing_tools/EditingTools.vala:1873 -msgid "Close the red-eye tool" -msgstr "" - -#: src/editing_tools/EditingTools.vala:1876 -msgid "Remove any red-eye effects in the selected region" -msgstr "" - -#: src/editing_tools/EditingTools.vala:2216 -#: src/editing_tools/StraightenTool.vala:102 -msgid "_Reset" -msgstr "" - -#. fit both on the top line, emit and move on -#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:439 -#: src/Properties.vala:443 src/Properties.vala:450 -msgid "Exposure:" -msgstr "" - -#: src/editing_tools/EditingTools.vala:2239 -msgid "Contrast:" -msgstr "" - -#: src/editing_tools/EditingTools.vala:2248 -msgid "Saturation:" -msgstr "" - -#: src/editing_tools/EditingTools.vala:2257 -msgid "Tint:" -msgstr "" - -#: src/editing_tools/EditingTools.vala:2267 -msgid "Temperature:" -msgstr "" - -#: src/editing_tools/EditingTools.vala:2276 -msgid "Shadows:" -msgstr "" - -#. FIXME: Hack to make the slider the same length as the other. Find out why it is aligned -#. Differently (probably because it only has positive values) -#: src/editing_tools/EditingTools.vala:2287 -msgid "Highlights:" -msgstr "" - -#: src/editing_tools/EditingTools.vala:2344 -msgid "Reset Colors" -msgstr "" - -#: src/editing_tools/EditingTools.vala:2344 -msgid "Reset all color adjustments to original" -msgstr "" - -#: src/editing_tools/EditingTools.vala:2703 -msgid "Temperature" -msgstr "" - -#: src/editing_tools/EditingTools.vala:2715 -msgid "Tint" -msgstr "" - -#: src/editing_tools/EditingTools.vala:2727 -msgid "Contrast" -msgstr "" - -#: src/editing_tools/EditingTools.vala:2741 -msgid "Saturation" -msgstr "" - -#: src/editing_tools/EditingTools.vala:2754 -msgid "Exposure" -msgstr "" - -#: src/editing_tools/EditingTools.vala:2767 -msgid "Shadows" -msgstr "" - -#: src/editing_tools/EditingTools.vala:2780 -msgid "Highlights" -msgstr "" - -#: src/editing_tools/EditingTools.vala:2790 -msgid "Contrast Expansion" -msgstr "" - -#: src/editing_tools/StraightenTool.vala:99 -msgid "Angle:" -msgstr "" - -#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:203 -#: ui/direct.ui:144 ui/photo.ui:233 -msgid "_Straighten" -msgstr "" - -#: src/events/EventDirectoryItem.vala:97 -#, c-format -msgid "%d Photo/Video" -msgid_plural "%d Photos/Videos" -msgstr[0] "" -msgstr[1] "" - -#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:358 -#, c-format -msgid "%d Video" -msgid_plural "%d Videos" -msgstr[0] "" -msgstr[1] "" - -#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:356 -#, c-format -msgid "%d Photo" -msgid_plural "%d Photos" -msgstr[0] "" -msgstr[1] "" - -#: src/events/EventPage.vala:128 -msgid "No Event" -msgstr "" - -#: src/events/EventsBranch.vala:25 -msgid "Events" -msgstr "" - -#: src/events/EventsBranch.vala:25 -msgid "Browse through your events" -msgstr "" - -#: src/events/EventsDirectoryPage.vala:149 -msgid "No events" -msgstr "" - -#: src/events/EventsDirectoryPage.vala:153 -msgid "No events found" -msgstr "" - -#: src/events/EventsDirectoryPage.vala:226 -msgid "All Events" -msgstr "" - -#: src/events/EventsDirectoryPage.vala:240 -msgid "Undated" -msgstr "" - -#: src/events/EventsDirectoryPage.vala:241 -msgid "%Y" -msgstr "" - -#: src/events/EventsDirectoryPage.vala:242 -msgid "%B" -msgstr "" - -#. if no name, pretty up the start time -#: src/Event.vala:753 -#, c-format -msgid "Event %s" -msgstr "" - -#: src/Exporter.vala:232 -#, c-format -msgid "Unable to generate a temporary file for %s: %s" -msgstr "" - -#: src/Exporter.vala:299 -msgid "Exporting" -msgstr "" - -#: src/Exporter.vala:317 -#, c-format -msgid "File %s already exists. Replace?" -msgstr "" - -#: src/Exporter.vala:319 -msgid "_Skip" -msgstr "" - -#: src/Exporter.vala:319 -msgid "_Replace" -msgstr "" - -#: src/Exporter.vala:319 -msgid "Replace _All" -msgstr "" - -#: src/Exporter.vala:319 -msgid "Export" -msgstr "" - -#: src/folders/FoldersBranch.vala:144 -msgid "Folders" -msgstr "" - -#: src/folders/FoldersBranch.vala:144 -msgid "Browse the library’s folder structure" -msgstr "" - -#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1100 -#: src/SearchFilter.vala:1101 -msgid "Flagged" -msgstr "" - -#: src/library/ImportQueuePage.vala:8 -msgid "Importing…" -msgstr "" - -#: src/library/ImportQueuePage.vala:129 -msgid "Preparing to import…" -msgstr "" - -#: src/library/ImportQueuePage.vala:156 -#, c-format -msgid "Imported %s" -msgstr "" - -#: src/library/LastImportPage.vala:8 -msgid "Last Import" -msgstr "" - -#: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 -#: ui/preferences_dialog.ui:512 -msgid "Library" -msgstr "" - -#: src/library/LibraryBranch.vala:30 -msgid "Organize and browse your photos" -msgstr "" - -#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1081 -msgid "Photos" -msgstr "" - -#: src/library/LibraryWindow.vala:509 -msgid "Import From Folder" -msgstr "" - -#: src/library/LibraryWindow.vala:516 -msgid "Recurse Into Subfolders" -msgstr "" - -#: src/library/LibraryWindow.vala:584 ui/trash.ui:288 -msgid "Empty Trash" -msgstr "" - -#: src/library/LibraryWindow.vala:584 -msgid "Emptying Trash…" -msgstr "" - -#: src/library/LibraryWindow.vala:780 -#, c-format -msgid "" -"Shotwell is configured to import photos to your home directory.\n" -"We recommend changing this in Edit %s Preferences.\n" -"Do you want to continue importing photos?" -msgstr "" - -#: src/library/LibraryWindow.vala:783 ui/preferences_dialog.ui:142 -msgid "Library Location" -msgstr "" - -#. TODO: Specify which directory/file. -#: src/library/LibraryWindow.vala:796 -msgid "Photos cannot be imported from this directory." -msgstr "" - -#: src/library/LibraryWindow.vala:1076 -#, c-format -msgid "%s (%d%%)" -msgstr "" - -#: src/library/LibraryWindow.vala:1120 src/library/LibraryWindow.vala:1131 -msgid "Updating library…" -msgstr "" - -#: src/library/LibraryWindow.vala:1137 -msgid "Preparing to auto-import photos…" -msgstr "" - -#: src/library/LibraryWindow.vala:1142 -msgid "Auto-importing photos…" -msgstr "" - -#: src/library/LibraryWindow.vala:1150 -msgid "Writing metadata to files…" -msgstr "" - -#: src/library/OfflinePage.vala:8 -msgid "Missing Files" -msgstr "" - -#: src/library/OfflinePage.vala:110 -msgid "Deleting…" -msgstr "" - -#: src/library/TrashPage.vala:8 -msgid "Trash" -msgstr "" - -#: src/library/TrashPage.vala:106 -msgid "Trash is empty" -msgstr "" - -#: src/library/TrashPage.vala:110 -msgid "Delete" -msgstr "" - -#: src/library/TrashPage.vala:111 -msgid "Deleting Photos" -msgstr "" - -#: src/main.vala:54 -#, c-format -msgid "" -"Your photo library is not compatible with this version of Shotwell. It " -"appears it was created by Shotwell %s (schema %d). This version is %s " -"(schema %d). Please use the latest version of Shotwell." -msgstr "" - -#: src/main.vala:59 -#, c-format -msgid "" -"Shotwell was unable to upgrade your photo library from version %s (schema " -"%d) to %s (schema %d). For more information please check the Shotwell Wiki " -"at %s" -msgstr "" - -#: src/main.vala:65 -#, c-format -msgid "" -"Your photo library is not compatible with this version of Shotwell. It " -"appears it was created by Shotwell %s (schema %d). This version is %s " -"(schema %d). Please clear your library by deleting %s and re-import your " -"photos." -msgstr "" - -#: src/main.vala:71 -#, c-format -msgid "Unknown error attempting to verify Shotwell’s database: %s" -msgstr "" - -#: src/main.vala:104 -msgid "Loading Shotwell" -msgstr "" - -#: src/main.vala:303 -msgid "Path to Shotwell’s private data" -msgstr "" - -#: src/main.vala:303 -msgid "DIRECTORY" -msgstr "" - -#: src/main.vala:307 -msgid "Do not monitor library directory at runtime for changes" -msgstr "" - -#: src/main.vala:311 -msgid "Don’t display startup progress meter" -msgstr "" - -#: src/main.vala:315 -msgid "Show the application’s version" -msgstr "" - -#: src/main.vala:319 -msgid "Start the application in fullscreen mode" -msgstr "" - -#. init GTK (valac has already called g_threads_init()) -#: src/main.vala:356 -msgid "[FILE]" -msgstr "" - -#: src/main.vala:360 -#, c-format -msgid "Run “%s --help” to see a full list of available command line options.\n" -msgstr "" - -#: src/MediaMonitor.vala:400 -#, c-format -msgid "Unable to process monitoring updates: %s" -msgstr "" - -#: src/MediaPage.vala:158 -msgid "Adjust the size of the thumbnails" -msgstr "" - -#: src/MediaPage.vala:502 -#, c-format -msgid "" -"Shotwell was unable to play the selected video:\n" -"%s" -msgstr "" - -#: src/Page.vala:1327 -msgid "No photos/videos" -msgstr "" - -#: src/Page.vala:1331 -msgid "No photos/videos found which match the current filter" -msgstr "" - -#: src/Page.vala:2644 -msgid "Photos cannot be exported to this directory." -msgstr "" - -#. previous button -#: src/PhotoPage.vala:538 -msgid "Previous photo" -msgstr "" - -#. next button -#: src/PhotoPage.vala:544 -msgid "Next photo" -msgstr "" - -#: src/PhotoPage.vala:1850 -#, c-format -msgid "Photo source file missing: %s" -msgstr "" - -#: src/PhotoPage.vala:3018 -#, c-format -msgid "Unable to export %s: %s" -msgstr "" - -#: src/photos/BmpSupport.vala:32 -msgid "BMP" -msgstr "" - -#: src/photos/JfifSupport.vala:84 -msgid "JPEG" -msgstr "" - -#: src/photos/JfifSupport.vala:185 -#, c-format -msgid "Low (%d%%)" -msgstr "" - -#: src/photos/JfifSupport.vala:188 -#, c-format -msgid "Medium (%d%%)" -msgstr "" - -#: src/photos/JfifSupport.vala:191 -#, c-format -msgid "High (%d%%)" -msgstr "" - -#: src/photos/JfifSupport.vala:194 -#, c-format -msgid "Maximum (%d%%)" -msgstr "" - -#: src/photos/PngSupport.vala:30 -msgid "PNG" -msgstr "" - -#: src/photos/RawSupport.vala:134 -msgid "RAW" -msgstr "" - -#: src/photos/TiffSupport.vala:86 -msgid "TIFF" -msgstr "" - -#: src/Photo.vala:3774 -msgid "modified" -msgstr "" - -#: src/Printing.vala:255 -msgid "Fill the entire page" -msgstr "" - -#: src/Printing.vala:256 -msgid "2 images per page" -msgstr "" - -#: src/Printing.vala:257 -msgid "4 images per page" -msgstr "" - -#: src/Printing.vala:258 -msgid "6 images per page" -msgstr "" - -#: src/Printing.vala:259 -msgid "8 images per page" -msgstr "" - -#: src/Printing.vala:260 -msgid "16 images per page" -msgstr "" - -#: src/Printing.vala:261 -msgid "32 images per page" -msgstr "" - -#: src/Printing.vala:851 -msgid "Image Settings" -msgstr "" - -#: src/Printing.vala:864 -msgid "Printing…" -msgstr "" - -#: src/Printing.vala:884 src/Printing.vala:1087 -#, c-format -msgid "" -"Unable to print photo:\n" -"\n" -"%s" -msgstr "" - -#: src/Properties.vala:87 -msgid "Today" -msgstr "" - -#: src/Properties.vala:89 -msgid "Yesterday" -msgstr "" - -#: src/Properties.vala:346 -msgid "Items:" -msgstr "" - -#: src/Properties.vala:349 -#, c-format -msgid "%d Event" -msgid_plural "%d Events" -msgstr[0] "" -msgstr[1] "" - -#. display only one date if start and end are the same -#: src/Properties.vala:380 -msgid "Date:" -msgstr "" - -#. display only one time if start and end are the same -#: src/Properties.vala:384 -msgid "Time:" -msgstr "" - -#. display time range -#. display date range -#: src/Properties.vala:387 src/Properties.vala:392 -msgid "From:" -msgstr "" - -#: src/Properties.vala:388 src/Properties.vala:393 -msgid "To:" -msgstr "" - -#: src/Properties.vala:407 -msgid "Duration:" -msgstr "" - -#: src/Properties.vala:407 -#, c-format -msgid "%.1f seconds" -msgstr "" - -#: src/Properties.vala:411 -msgid "Developer:" -msgstr "" - -#. nothing special to be done for now for Events -#: src/Properties.vala:586 -msgid "Location:" -msgstr "" - -#: src/Properties.vala:589 -msgid "File size:" -msgstr "" - -#: src/Properties.vala:593 -msgid "Current Development:" -msgstr "" - -#: src/Properties.vala:595 -msgid "Original dimensions:" -msgstr "" - -#: src/Properties.vala:598 -msgid "Camera make:" -msgstr "" - -#: src/Properties.vala:601 -msgid "Camera model:" -msgstr "" - -#: src/Properties.vala:604 -msgid "Flash:" -msgstr "" - -#: src/Properties.vala:606 -msgid "Focal length:" -msgstr "" - -#: src/Properties.vala:609 -msgid "Exposure date:" -msgstr "" - -#: src/Properties.vala:612 -msgid "Exposure time:" -msgstr "" - -#: src/Properties.vala:615 -msgid "Exposure bias:" -msgstr "" - -#: src/Properties.vala:617 -msgid "GPS latitude:" -msgstr "" - -#: src/Properties.vala:620 -msgid "GPS longitude:" -msgstr "" - -#: src/Properties.vala:623 -msgid "Artist:" -msgstr "" - -#: src/Properties.vala:625 -msgid "Copyright:" -msgstr "" - -#: src/Properties.vala:627 -msgid "Software:" -msgstr "" - -#: src/Properties.vala:642 -msgid "Extended Information" -msgstr "" - -#: src/publishing/PublishingPluginHost.vala:11 -msgid "Preparing for upload" -msgstr "" - -#: src/publishing/PublishingPluginHost.vala:12 -#, c-format -msgid "Uploading %d of %d" -msgstr "" - -#: src/publishing/PublishingPluginHost.vala:81 -#, c-format -msgid "Publishing to %s can’t continue because an error occurred:" -msgstr "" - -#: src/publishing/PublishingPluginHost.vala:84 -msgid "To try publishing to another service, select one from the above menu." -msgstr "" - -#. Here, we check whether more than one item is being uploaded, and if so, display -#. an alternate message. -#: src/publishing/PublishingUI.vala:104 -msgid "The selected video was successfully published." -msgid_plural "The selected videos were successfully published." -msgstr[0] "" -msgstr[1] "" - -#: src/publishing/PublishingUI.vala:109 -msgid "The selected photo was successfully published." -msgid_plural "The selected photos were successfully published." -msgstr[0] "" -msgstr[1] "" - -#: src/publishing/PublishingUI.vala:115 -msgid "The selected photos/videos were successfully published." -msgstr "" - -#: src/publishing/PublishingUI.vala:127 -msgid "Fetching account information…" -msgstr "" - -#: src/publishing/PublishingUI.vala:133 -msgid "Logging in…" -msgstr "" - -#: src/publishing/PublishingUI.vala:197 -msgid "Publish Photos" -msgstr "" - -#: src/publishing/PublishingUI.vala:198 -msgid "Publish photos _to:" -msgstr "" - -#: src/publishing/PublishingUI.vala:200 -msgid "Publish Videos" -msgstr "" - -#: src/publishing/PublishingUI.vala:201 -msgid "Publish videos _to" -msgstr "" - -#: src/publishing/PublishingUI.vala:203 -msgid "Publish Photos and Videos" -msgstr "" - -#: src/publishing/PublishingUI.vala:204 -msgid "Publish photos and videos _to" -msgstr "" - -#. There are no enabled publishing services that accept this media type, -#. warn the user. -#: src/publishing/PublishingUI.vala:414 -msgid "Unable to publish" -msgstr "" - -#: src/publishing/PublishingUI.vala:415 -#, c-format -msgid "" -"Shotwell cannot publish the selected items because you do not have a " -"compatible publishing plugin enabled. To correct this, choose Edit %s " -"Preferences and enable one or more of the publishing plugins on the " -"Plugins tab." -msgstr "" - -#: src/publishing/Publishing.vala:16 -msgid "Publishing" -msgstr "" - -#: src/Resources.vala:141 src/Resources.vala:146 ui/collection.ui:151 -msgid "Rotate" -msgstr "" - -#: src/Resources.vala:142 -msgid "Rotate Right" -msgstr "" - -#: src/Resources.vala:143 ui/collection.ui:148 -msgid "Rotate the photos right (press Ctrl to rotate left)" -msgstr "" - -#: src/Resources.vala:147 -msgid "Rotate Left" -msgstr "" - -#: src/Resources.vala:148 -msgid "Rotate the photos left" -msgstr "" - -#: src/Resources.vala:151 -msgid "Flip Horizontally" -msgstr "" - -#: src/Resources.vala:154 -msgid "Flip Vertically" -msgstr "" - -#: src/Resources.vala:156 ui/direct.ui:192 ui/events_directory.ui:168 -#: ui/event.ui:438 ui/import_queue.ui:83 ui/import.ui:201 -#: ui/manifest_widget.ui:35 ui/media.ui:421 ui/offline.ui:198 ui/photo.ui:405 -#: ui/tags.ui:440 ui/trash.ui:207 -msgid "_About" -msgstr "" - -#: src/Resources.vala:157 -msgid "_Apply" -msgstr "" - -#: src/Resources.vala:160 ui/direct.ui:44 ui/events_directory.ui:32 -#: ui/event.ui:47 ui/import.ui:40 ui/media.ui:47 ui/offline.ui:32 -#: ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 -msgid "_Edit" -msgstr "" - -#: src/Resources.vala:161 -msgid "_Forward" -msgstr "" - -#: src/Resources.vala:162 ui/direct.ui:62 ui/events_directory.ui:125 -#: ui/photo.ui:173 -msgid "Fulls_creen" -msgstr "" - -#: src/Resources.vala:163 ui/direct.ui:174 ui/direct.ui:177 -#: ui/events_directory.ui:150 ui/events_directory.ui:153 ui/event.ui:420 -#: ui/event.ui:423 ui/import_queue.ui:65 ui/import_queue.ui:68 ui/import.ui:183 -#: ui/import.ui:186 ui/media.ui:403 ui/media.ui:406 ui/offline.ui:180 -#: ui/offline.ui:183 ui/photo.ui:387 ui/photo.ui:390 ui/tags.ui:422 -#: ui/tags.ui:425 ui/trash.ui:189 ui/trash.ui:192 -msgid "_Help" -msgstr "" - -#: src/Resources.vala:164 -msgid "Leave _Fullscreen" -msgstr "" - -#: src/Resources.vala:165 src/Resources.vala:364 ui/tags.ui:450 -msgid "_New" -msgstr "" - -#: src/Resources.vala:166 -msgid "_Next" -msgstr "" - -#: src/Resources.vala:169 src/Resources.vala:318 ui/events_directory.ui:65 -#: ui/event.ui:93 ui/import.ui:68 ui/media.ui:93 ui/offline.ui:72 -#: ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 -msgid "_Preferences" -msgstr "" - -#: src/Resources.vala:170 -msgid "_Previous" -msgstr "" - -#: src/Resources.vala:172 ui/direct.ui:37 ui/events_directory.ui:25 -#: ui/event.ui:40 ui/import_queue.ui:31 ui/import.ui:33 ui/media.ui:40 -#: ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 -msgid "_Quit" -msgstr "" - -#: src/Resources.vala:173 -msgid "_Refresh" -msgstr "" - -#: src/Resources.vala:175 -msgid "_Revert" -msgstr "" - -#: src/Resources.vala:177 -msgid "Save _As" -msgstr "" - -#: src/Resources.vala:178 -msgid "Sort _Ascending" -msgstr "" - -#: src/Resources.vala:179 -msgid "Sort _Descending" -msgstr "" - -#: src/Resources.vala:180 -msgid "_Stop" -msgstr "" - -#: src/Resources.vala:181 -msgid "_Undelete" -msgstr "" - -#: src/Resources.vala:182 -msgid "_Normal Size" -msgstr "" - -#: src/Resources.vala:183 -msgid "Best _Fit" -msgstr "" - -#: src/Resources.vala:184 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 -#: ui/photo.ui:144 ui/tags.ui:260 -msgid "Zoom _In" -msgstr "" - -#: src/Resources.vala:185 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 -#: ui/photo.ui:149 ui/tags.ui:265 -msgid "Zoom _Out" -msgstr "" - -#: src/Resources.vala:188 ui/collection.ui:167 -msgid "Enhance" -msgstr "" - -#: src/Resources.vala:189 ui/collection.ui:164 -msgid "Automatically improve the photo’s appearance" -msgstr "" - -#: src/Resources.vala:192 -msgid "Copy Color Adjustments" -msgstr "" - -#: src/Resources.vala:193 -msgid "Copy the color adjustments applied to the photo" -msgstr "" - -#: src/Resources.vala:196 -msgid "Paste Color Adjustments" -msgstr "" - -#: src/Resources.vala:197 -msgid "Apply copied color adjustments to the selected photos" -msgstr "" - -#: src/Resources.vala:199 ui/direct.ui:139 ui/photo.ui:228 -msgid "_Crop" -msgstr "" - -#: src/Resources.vala:200 -msgid "Crop" -msgstr "" - -#: src/Resources.vala:201 -msgid "Crop the photo’s size" -msgstr "" - -#: src/Resources.vala:204 -msgid "Straighten" -msgstr "" - -#: src/Resources.vala:205 -msgid "Straighten the photo" -msgstr "" - -#: src/Resources.vala:207 ui/direct.ui:149 ui/photo.ui:238 -msgid "_Red-eye" -msgstr "" - -#: src/Resources.vala:208 -msgid "Red-eye" -msgstr "" - -#: src/Resources.vala:209 -msgid "Reduce or eliminate any red-eye effects in the photo" -msgstr "" - -#: src/Resources.vala:211 ui/direct.ui:154 ui/photo.ui:243 -msgid "_Adjust" -msgstr "" - -#: src/Resources.vala:212 -msgid "Adjust" -msgstr "" - -#: src/Resources.vala:213 -msgid "Adjust the photo’s color and tone" -msgstr "" - -#: src/Resources.vala:216 -msgid "Revert to Original" -msgstr "" - -#: src/Resources.vala:218 -msgid "Revert External E_dits" -msgstr "" - -#: src/Resources.vala:219 -msgid "Revert to the master photo" -msgstr "" - -#: src/Resources.vala:222 -msgid "Set selected image to be the new desktop background" -msgstr "" - -#: src/Resources.vala:223 -msgid "Set as _Desktop Slideshow…" -msgstr "" - -#: src/Resources.vala:225 ui/direct.ui:47 ui/events_directory.ui:35 -#: ui/event.ui:50 ui/import.ui:43 ui/media.ui:50 ui/offline.ui:35 -#: ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 -msgid "_Undo" -msgstr "" - -#: src/Resources.vala:226 -msgid "Undo" -msgstr "" - -#: src/Resources.vala:228 ui/direct.ui:52 ui/events_directory.ui:40 -#: ui/event.ui:55 ui/import.ui:48 ui/media.ui:55 ui/offline.ui:40 -#: ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 -msgid "_Redo" -msgstr "" - -#: src/Resources.vala:229 -msgid "Redo" -msgstr "" - -#: src/Resources.vala:231 ui/events_directory.ui:139 ui/events_directory.ui:181 -#: ui/event.ui:393 ui/event.ui:588 -msgid "Re_name Event…" -msgstr "" - -#: src/Resources.vala:234 ui/event.ui:373 ui/event.ui:580 -msgid "Make _Key Photo for Event" -msgstr "" - -#: src/Resources.vala:235 -msgid "Make Key Photo for Event" -msgstr "" - -#: src/Resources.vala:237 ui/event.ui:382 ui/media.ui:376 ui/tags.ui:376 -msgid "_New Event" -msgstr "" - -#: src/Resources.vala:238 -msgid "New Event" -msgstr "" - -#: src/Resources.vala:240 -msgid "Move Photos" -msgstr "" - -#: src/Resources.vala:241 -msgid "Move photos to an event" -msgstr "" - -#: src/Resources.vala:243 ui/events_directory.ui:135 ui/events_directory.ui:177 -msgid "_Merge Events" -msgstr "" - -#: src/Resources.vala:244 -msgid "Merge" -msgstr "" - -#: src/Resources.vala:245 -msgid "Combine events into a single event" -msgstr "" - -#: src/Resources.vala:247 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 -#: ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 ui/tags.ui:286 -msgid "_Set Rating" -msgstr "" - -#: src/Resources.vala:248 -msgid "Set Rating" -msgstr "" - -#: src/Resources.vala:249 -msgid "Change the rating of your photo" -msgstr "" - -#: src/Resources.vala:251 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 -#: ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 ui/tags.ui:326 -msgid "_Increase" -msgstr "" - -#: src/Resources.vala:252 -msgid "Increase Rating" -msgstr "" - -#: src/Resources.vala:254 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 -#: ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 ui/tags.ui:331 -msgid "_Decrease" -msgstr "" - -#: src/Resources.vala:255 -msgid "Decrease Rating" -msgstr "" - -#: src/Resources.vala:257 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 -#: ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 ui/tags.ui:314 -msgid "_Unrated" -msgstr "" - -#: src/Resources.vala:258 -msgid "Unrated" -msgstr "" - -#: src/Resources.vala:259 -msgid "Rate Unrated" -msgstr "" - -#: src/Resources.vala:260 -msgid "Setting as unrated" -msgstr "" - -#: src/Resources.vala:261 -msgid "Remove any ratings" -msgstr "" - -#: src/Resources.vala:263 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 -#: ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 ui/tags.ui:319 -msgid "_Rejected" -msgstr "" - -#: src/Resources.vala:264 -msgid "Rejected" -msgstr "" - -#: src/Resources.vala:265 -msgid "Rate Rejected" -msgstr "" - -#: src/Resources.vala:266 -msgid "Setting as rejected" -msgstr "" - -#: src/Resources.vala:267 -msgid "Set rating to rejected" -msgstr "" - -#: src/Resources.vala:269 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 -#: ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 ui/trash.ui:162 -msgid "Rejected _Only" -msgstr "" - -#: src/Resources.vala:270 -msgid "Rejected Only" -msgstr "" - -#: src/Resources.vala:271 -msgid "Show only rejected photos" -msgstr "" - -#: src/Resources.vala:273 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 -#: ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 ui/trash.ui:156 -msgid "All + _Rejected" -msgstr "" - -#: src/Resources.vala:274 -msgctxt "Tooltip" -msgid "Show all photos, including rejected" -msgstr "" - -#: src/Resources.vala:276 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 -#: ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 ui/trash.ui:150 -msgid "_All Photos" -msgstr "" - -#. Button tooltip -#: src/Resources.vala:278 -msgid "Show all photos" -msgstr "" - -#: src/Resources.vala:280 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 -#: ui/tags.ui:144 -msgid "_Ratings" -msgstr "" - -#: src/Resources.vala:281 -msgid "Display each photo’s rating" -msgstr "" - -#: src/Resources.vala:283 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 -#: ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 -msgid "_Filter Photos" -msgstr "" - -#: src/Resources.vala:284 -msgid "Filter Photos" -msgstr "" - -#: src/Resources.vala:285 -msgid "Limit the number of photos displayed based on a filter" -msgstr "" - -#: src/Resources.vala:288 -msgid "Duplicate" -msgstr "" - -#: src/Resources.vala:289 -msgid "Make a duplicate of the photo" -msgstr "" - -#: src/Resources.vala:291 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 -#: ui/tags.ui:17 -msgid "_Export…" -msgstr "" - -#: src/Resources.vala:293 -msgid "_Print…" -msgstr "" - -#: src/Resources.vala:295 -msgid "Pu_blish…" -msgstr "" - -#: src/Resources.vala:297 ui/collection.ui:189 -msgid "Publish to various websites" -msgstr "" - -#: src/Resources.vala:299 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 -#: ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 ui/tags.ui:340 -msgid "Edit _Title…" -msgstr "" - -#. Button label -#: src/Resources.vala:301 -msgctxt "Button Label" -msgid "Edit Title" -msgstr "" - -#: src/Resources.vala:303 ui/collection.ui:103 ui/events_directory.ui:144 -#: ui/events_directory.ui:186 ui/event.ui:345 ui/event.ui:398 ui/event.ui:542 -#: ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 ui/tags.ui:345 -msgid "Edit _Comment…" -msgstr "" - -#. Button label -#: src/Resources.vala:305 -msgid "Edit Comment" -msgstr "" - -#: src/Resources.vala:307 ui/event.ui:592 -msgid "Edit Event _Comment…" -msgstr "" - -#: src/Resources.vala:310 ui/direct.ui:167 ui/photo.ui:337 -msgid "_Adjust Date and Time…" -msgstr "" - -#: src/Resources.vala:311 -msgid "Adjust Date and Time" -msgstr "" - -#: src/Resources.vala:313 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 -#: ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 -msgid "Add _Tags…" -msgstr "" - -#: src/Resources.vala:314 ui/photo_context.ui:17 -msgid "_Add Tags…" -msgstr "" - -#. Dialog title -#: src/Resources.vala:316 -msgctxt "Dialog Title" -msgid "Add Tags" -msgstr "" - -#: src/Resources.vala:325 ui/photo_context.ui:135 -msgid "Send T_o…" -msgstr "" - -#: src/Resources.vala:327 -msgid "_Find…" -msgstr "" - -#: src/Resources.vala:328 ui/collection.ui:217 ui/offline.ui:239 -#: ui/trash.ui:312 -msgid "Find" -msgstr "" - -#: src/Resources.vala:329 ui/collection.ui:214 ui/offline.ui:236 -#: ui/trash.ui:309 -msgid "Find an image by typing text that appears in its name or tags" -msgstr "" - -#: src/Resources.vala:331 -msgid "_Flag" -msgstr "" - -#: src/Resources.vala:333 -msgid "Un_flag" -msgstr "" - -#: src/Resources.vala:336 -#, c-format -msgid "Unable to launch editor: %s" -msgstr "" - -#: src/Resources.vala:341 -#, c-format -msgid "Add Tag “%s”" -msgstr "" - -#. Used when adding two tags to photo(s) -#: src/Resources.vala:344 -#, c-format -msgid "Add Tags “%s” and “%s”" -msgstr "" - -#. Undo/Redo command name (in Edit menu) -#: src/Resources.vala:349 -msgctxt "UndoRedo menu entry" -msgid "Add Tags" -msgstr "" - -#: src/Resources.vala:354 -#, c-format -msgid "_Delete Tag “%s”" -msgstr "" - -#: src/Resources.vala:358 -#, c-format -msgid "Delete Tag “%s”" -msgstr "" - -#: src/Resources.vala:361 -msgid "Delete Tag" -msgstr "" - -#: src/Resources.vala:367 -#, c-format -msgid "Re_name Tag “%s”…" -msgstr "" - -#: src/Resources.vala:371 -#, c-format -msgid "Rename Tag “%s” to “%s”" -msgstr "" - -#: src/Resources.vala:374 ui/tags.ui:456 -msgid "_Rename…" -msgstr "" - -#: src/Resources.vala:376 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 -#: ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 ui/tags.ui:395 -msgid "Modif_y Tags…" -msgstr "" - -#: src/Resources.vala:377 -msgid "Modify Tags" -msgstr "" - -#: src/Resources.vala:380 -#, c-format -msgid "Tag Photo as “%s”" -msgid_plural "Tag Photos as “%s”" -msgstr[0] "" -msgstr[1] "" - -#: src/Resources.vala:386 -#, c-format -msgid "Tag the selected photo as “%s”" -msgid_plural "Tag the selected photos as “%s”" -msgstr[0] "" -msgstr[1] "" - -#: src/Resources.vala:392 -#, c-format -msgid "Remove Tag “%s” From _Photo" -msgid_plural "Remove Tag “%s” From _Photos" -msgstr[0] "" -msgstr[1] "" - -#: src/Resources.vala:398 -#, c-format -msgid "Remove Tag “%s” From Photo" -msgid_plural "Remove Tag “%s” From Photos" -msgstr[0] "" -msgstr[1] "" - -#: src/Resources.vala:404 -#, c-format -msgid "Unable to rename tag to “%s” because the tag already exists." -msgstr "" - -#: src/Resources.vala:408 -#, c-format -msgid "Unable to rename search to “%s” because the search already exists." -msgstr "" - -#. Saved search button -#: src/Resources.vala:411 src/SearchFilter.vala:1122 -msgid "Saved Search" -msgstr "" - -#: src/Resources.vala:413 -msgid "Delete Search" -msgstr "" - -#: src/Resources.vala:416 ui/savedsearch.ui:10 -msgid "_Edit…" -msgstr "" - -#: src/Resources.vala:417 ui/savedsearch.ui:6 -msgid "Re_name…" -msgstr "" - -#: src/Resources.vala:420 -#, c-format -msgid "Rename Search “%s” to “%s”" -msgstr "" - -#: src/Resources.vala:424 -#, c-format -msgid "Delete Search “%s”" -msgstr "" - -#: src/Resources.vala:561 -#, c-format -msgid "Rate %s" -msgstr "" - -#: src/Resources.vala:562 -#, c-format -msgid "Set rating to %s" -msgstr "" - -#: src/Resources.vala:563 -#, c-format -msgid "Setting rating to %s" -msgstr "" - -#: src/Resources.vala:565 -#, c-format -msgid "Display %s" -msgstr "" - -#: src/Resources.vala:566 -#, c-format -msgid "Only show photos with a rating of %s" -msgstr "" - -#: src/Resources.vala:567 -#, c-format -msgid "%s or Better" -msgstr "" - -#: src/Resources.vala:568 -#, c-format -msgid "Display %s or Better" -msgstr "" - -#: src/Resources.vala:569 -#, c-format -msgid "Only show photos with a rating of %s or better" -msgstr "" - -#: src/Resources.vala:660 ui/trash.ui:255 -msgid "Remove the selected photos from the trash" -msgstr "" - -#: src/Resources.vala:661 ui/offline.ui:221 -msgid "Remove the selected photos from the library" -msgstr "" - -#: src/Resources.vala:663 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 -msgid "_Restore" -msgstr "" - -#: src/Resources.vala:664 ui/trash.ui:270 -msgid "Move the selected photos back into the library" -msgstr "" - -#: src/Resources.vala:666 ui/collection.ui:123 ui/direct_context.ui:18 -#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/media.ui:27 -#: ui/photo_context.ui:130 ui/photo.ui:35 ui/tags.ui:27 ui/trash.ui:19 -#: ui/trash.ui:227 -msgid "Show in File Mana_ger" -msgstr "" - -#: src/Resources.vala:667 -msgid "Open the selected photo’s directory in the file manager" -msgstr "" - -#: src/Resources.vala:670 -#, c-format -msgid "Unable to open in file manager: %s" -msgstr "" - -#: src/Resources.vala:673 ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 -#: ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 ui/tags.ui:74 -msgid "R_emove From Library" -msgstr "" - -#: src/Resources.vala:675 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 -#: ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 ui/tags.ui:79 -msgid "_Move to Trash" -msgstr "" - -#: src/Resources.vala:677 ui/events_directory.ui:58 ui/event.ui:86 -#: ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 ui/trash.ui:74 -msgid "Select _All" -msgstr "" - -#: src/Resources.vala:678 -msgid "Select all items" -msgstr "" - -#. ...precache the timestamp string... -#. / Locale-specific time format for 12-hour time, i.e. 8:31 PM -#. / Precede modifier with a dash ("-") to pad with spaces, otherwise will pad with zeroes -#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#. / Locale-specific time format for 12-hour time with seconds, i.e. 8:31:42 PM -#. / Precede modifier with a dash ("-") to pad with spaces, otherwise will pad with zeroes -#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" -#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:739 -msgid "%a %b %d, %Y" -msgstr "" - -#. / Locale-specific starting date format for multi-date strings, -#. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" -#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:744 -msgctxt "MultidayFormat" -msgid "%a %b %d" -msgstr "" - -#. / Locale-specific ending date format for multi-date strings, -#. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" -#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:749 -msgctxt "MultidayFormat" -msgid "%d, %Y" -msgstr "" - -#. / Locale-specific calendar date format for multi-month strings, -#. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" -#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:754 -msgctxt "MultimonthFormat" -msgid "%a %b %d" -msgstr "" - -#. / Locale-specific calendar date format for multi-month strings, -#. / i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006" -#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:759 -msgctxt "MultimonthFormat" -msgid "%a %b %d, %Y" -msgstr "" - -#: src/Screensaver.vala:18 src/SlideshowPage.vala:115 -msgid "Slideshow" -msgstr "" - -#. Ordering must correspond with SearchConditionText.Context -#: src/searches/SavedSearchDialog.vala:167 -msgid "contains" -msgstr "" - -#. Ordering must correspond with Context -#: src/searches/SavedSearchDialog.vala:168 -#: src/searches/SavedSearchDialog.vala:499 -msgid "is exactly" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:169 -msgid "starts with" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:170 -msgid "ends with" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:171 -msgid "does not contain" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:172 -#: src/searches/SavedSearchDialog.vala:503 -msgid "is not set" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:173 -msgid "is set" -msgstr "" - -#. Ordering must correspond with SearchConditionMediaType.Context -#: src/searches/SavedSearchDialog.vala:247 -#: src/searches/SavedSearchDialog.vala:378 -#: src/searches/SavedSearchDialog.vala:443 -msgid "is" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:248 -msgid "is not" -msgstr "" - -#. Ordering must correspond with SearchConditionMediaType.MediaType -#: src/searches/SavedSearchDialog.vala:254 -msgid "any photo" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:255 -msgid "a raw photo" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:256 -msgid "a video" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:310 -msgid "has" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:311 -msgid "has no" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:316 -msgid "modifications" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:317 -msgid "internal modifications" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:318 -msgid "external modifications" -msgstr "" - -#. Ordering must correspond with SearchConditionFlagged.State -#: src/searches/SavedSearchDialog.vala:372 -msgid "flagged" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:373 -msgid "not flagged" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:436 -msgid "and higher" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:437 -msgid "only" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:438 -msgid "and lower" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:500 -msgid "is after" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:501 -msgid "is before" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:502 -msgid "is between" -msgstr "" - -#: src/searches/SavedSearchDialog.vala:515 -msgid "and" -msgstr "" - -#: src/searches/SearchBoolean.vala:157 -msgid "Any text" -msgstr "" - -#: src/searches/SearchBoolean.vala:160 -msgid "Title" -msgstr "" - -#: src/searches/SearchBoolean.vala:163 -msgid "Tag" -msgstr "" - -#: src/searches/SearchBoolean.vala:166 -msgid "Comment" -msgstr "" - -#: src/searches/SearchBoolean.vala:169 -msgid "Event name" -msgstr "" - -#: src/searches/SearchBoolean.vala:172 -msgid "File name" -msgstr "" - -#: src/searches/SearchBoolean.vala:175 -msgid "Media type" -msgstr "" - -#: src/searches/SearchBoolean.vala:178 -msgid "Flag state" -msgstr "" - -#: src/searches/SearchBoolean.vala:181 -msgid "Photo state" -msgstr "" - -#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:829 -#: src/SearchFilter.vala:1112 -msgid "Rating" -msgstr "" - -#: src/searches/SearchBoolean.vala:187 -msgid "Date" -msgstr "" - -#: src/searches/SearchesBranch.vala:68 -msgid "Saved Searches" -msgstr "" - -#: src/searches/SearchesBranch.vala:68 -msgid "Organize your saved searches" -msgstr "" - -#: src/SearchFilter.vala:813 -msgid "★+ Rating" -msgstr "" - -#: src/SearchFilter.vala:816 -msgid "★★+ Rating" -msgstr "" - -#: src/SearchFilter.vala:819 -msgid "★★★+ Rating" -msgstr "" - -#: src/SearchFilter.vala:822 -msgid "★★★★+ Rating" -msgstr "" - -#: src/SearchFilter.vala:826 -msgid "★★★★★+ Rating" -msgstr "" - -#: src/SearchFilter.vala:1062 -#, c-format -msgid "Error loading search bar UI: %s" -msgstr "" - -#. Ticket #3260 - Add a 'close' context menu to -#. the searchbar. -#. Prepare the close menu for use, but don't -#. display it yet; we'll connect it to secondary -#. click later on. -#: src/SearchFilter.vala:1071 -msgid "Close" -msgstr "" - -#. Type label and toggles -#: src/SearchFilter.vala:1077 -msgid "Type" -msgstr "" - -#: src/SearchFilter.vala:1084 -msgid "Videos" -msgstr "" - -#: src/SearchFilter.vala:1087 -msgid "RAW Photos" -msgstr "" - -#: src/SearchFilter.vala:1123 -msgid "Use a saved search to filter items in the current view" -msgstr "" - -#. Set up toolbar -#. add toolbar buttons -#: src/SlideshowPage.vala:134 -msgid "Back" -msgstr "" - -#: src/SlideshowPage.vala:136 -msgid "Go to the previous photo" -msgstr "" - -#: src/SlideshowPage.vala:141 src/SlideshowPage.vala:248 -msgid "Pause" -msgstr "" - -#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:249 -msgid "Pause the slideshow" -msgstr "" - -#: src/SlideshowPage.vala:148 -msgid "Next" -msgstr "" - -#: src/SlideshowPage.vala:150 -msgid "Go to the next photo" -msgstr "" - -#: src/SlideshowPage.vala:157 ui/slideshow_settings.ui:21 -msgid "Settings" -msgstr "" - -#: src/SlideshowPage.vala:158 -msgid "Change slideshow settings" -msgstr "" - -#. An entire slideshow set might be missing, so check for a loop. -#: src/SlideshowPage.vala:212 -msgid "All photo source files are missing." -msgstr "" - -#: src/SlideshowPage.vala:244 -msgid "Play" -msgstr "" - -#: src/SlideshowPage.vala:245 -msgid "Continue the slideshow" -msgstr "" - -#: src/slideshow/Slideshow.vala:22 -msgid "Slideshow Transitions" -msgstr "" - -#: src/slideshow/TransitionEffects.vala:98 -msgid "(None)" -msgstr "" - -#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:485 -msgid "None" -msgstr "" - -#: src/slideshow/TransitionEffects.vala:339 -msgid "Random" -msgstr "" - -#: src/tags/TagsBranch.vala:131 -msgid "Tags" -msgstr "" - -#: src/tags/TagsBranch.vala:131 -msgid "Organize and browse your photo’s tags" -msgstr "" - -#: src/Tag.vala:830 -msgid "untitled" -msgstr "" - -#. multiple videos -#: src/VideoSupport.vala:521 -msgid "Export Videos" -msgstr "" - -#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/media.ui:281 -#: ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 -msgid "Toggle _Flag" -msgstr "" - -#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/media.ui:353 -#: ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 -msgid "_Developer" -msgstr "" - -#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/media.ui:381 -#: ui/photo_context.ui:126 ui/tags.ui:381 -msgid "View Eve_nt for Photo" -msgstr "" - -#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/import_queue.ui:5 -#: ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 ui/photo.ui:5 ui/tags.ui:5 -#: ui/trash.ui:5 -msgid "_File" -msgstr "" - -#: ui/direct.ui:13 -msgid "Save _As…" -msgstr "" - -#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 -#: ui/import_queue.ui:38 ui/import.ui:74 ui/media.ui:99 ui/offline.ui:78 -#: ui/photo.ui:95 ui/tags.ui:99 ui/trash.ui:87 -msgid "_View" -msgstr "" - -#: ui/direct.ui:81 ui/photo.ui:156 -msgid "Fit to _Page" -msgstr "" - -#: ui/direct.ui:86 ui/photo.ui:161 -msgid "Zoom _100%" -msgstr "" - -#: ui/direct.ui:91 ui/photo.ui:166 -msgid "Zoom _200%" -msgstr "" - -#: ui/direct.ui:98 ui/photo.ui:187 -msgid "_Photo" -msgstr "" - -#: ui/direct.ui:101 ui/photo.ui:190 -msgid "_Previous Photo" -msgstr "" - -#: ui/direct.ui:105 ui/photo.ui:194 -msgid "_Next Photo" -msgstr "" - -#: ui/direct.ui:131 ui/photo.ui:220 -msgid "T_ools" -msgstr "" - -#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 -#: ui/import_queue.ui:73 ui/import.ui:191 ui/media.ui:411 ui/offline.ui:188 -#: ui/photo.ui:395 ui/tags.ui:430 ui/trash.ui:197 -msgid "_Frequently Asked Questions" -msgstr "" - -#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 -#: ui/import_queue.ui:77 ui/import.ui:195 ui/media.ui:415 ui/offline.ui:192 -#: ui/photo.ui:399 ui/tags.ui:434 ui/trash.ui:201 -msgid "_Report a Problem…" -msgstr "" - -#: ui/events_directory.ui:8 ui/event.ui:8 ui/import_queue.ui:14 ui/import.ui:8 -#: ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 ui/trash.ui:8 -msgid "_Import From Folder…" -msgstr "" - -#: ui/events_directory.ui:13 ui/event.ui:13 ui/import_queue.ui:19 -#: ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 ui/photo.ui:13 ui/tags.ui:13 -#: ui/trash.ui:13 -msgid "Import From _Application…" -msgstr "" - -#: ui/events_directory.ui:19 ui/event.ui:34 ui/import_queue.ui:25 -#: ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 ui/photo.ui:42 ui/tags.ui:34 -#: ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 -msgid "Empty T_rash" -msgstr "" - -#: ui/events_directory.ui:47 ui/event.ui:62 ui/import.ui:55 ui/media.ui:62 -#: ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 -msgid "_Find" -msgstr "" - -#: ui/events_directory.ui:51 ui/event.ui:66 ui/media.ui:66 ui/offline.ui:51 -#: ui/photo.ui:70 ui/search_sidebar_context.ui:6 -#: ui/sidebar_default_context.ui:6 ui/tags.ui:66 ui/trash.ui:56 -msgid "Ne_w Saved Search…" -msgstr "" - -#: ui/events_directory.ui:74 ui/event.ui:102 ui/import_queue.ui:41 -#: ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 ui/photo.ui:98 -#: ui/tags.ui:102 ui/trash.ui:90 -msgid "_Basic Information" -msgstr "" - -#: ui/events_directory.ui:79 ui/event.ui:107 ui/import.ui:82 ui/media.ui:107 -#: ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 ui/trash.ui:95 -msgid "E_xtended Information" -msgstr "" - -#: ui/events_directory.ui:84 ui/event.ui:112 ui/import.ui:87 ui/media.ui:112 -#: ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 -msgid "_Search Bar" -msgstr "" - -#: ui/events_directory.ui:89 ui/event.ui:117 ui/import.ui:92 ui/media.ui:117 -#: ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 ui/trash.ui:105 -msgid "S_idebar" -msgstr "" - -#: ui/events_directory.ui:94 ui/event.ui:122 ui/import.ui:97 ui/media.ui:122 -#: ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 ui/trash.ui:110 -msgid "T_oolbar" -msgstr "" - -#: ui/events_directory.ui:101 ui/event.ui:134 ui/media.ui:134 ui/tags.ui:134 -msgid "_Comments" -msgstr "" - -#: ui/events_directory.ui:108 ui/event.ui:243 ui/import_queue.ui:48 -#: ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 ui/photo.ui:127 -#: ui/tags.ui:243 ui/trash.ui:172 -msgid "Sort _Events" -msgstr "" - -#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 -#: ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 ui/media.ui:246 -#: ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 ui/tags.ui:246 -#: ui/trash.ui:175 -msgid "_Ascending" -msgstr "" - -#: ui/events_directory.ui:116 ui/event.ui:236 ui/import_queue.ui:56 -#: ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 ui/trash.ui:180 -msgid "D_escending" -msgstr "" - -#: ui/events_directory.ui:132 ui/event.ui:379 ui/media.ui:373 ui/tags.ui:373 -msgid "Even_ts" -msgstr "" - -#: ui/event.ui:129 ui/import.ui:104 ui/media.ui:129 ui/tags.ui:129 -msgid "_Titles" -msgstr "" - -#: ui/event.ui:139 ui/event.ui:404 ui/media.ui:139 ui/media.ui:387 -#: ui/photo.ui:372 ui/tags.ui:139 ui/tags.ui:387 -msgid "Ta_gs" -msgstr "" - -#: ui/event.ui:206 ui/media.ui:206 ui/tags.ui:206 -msgid "Sort _Photos" -msgstr "" - -#: ui/event.ui:209 ui/media.ui:209 ui/tags.ui:209 -msgid "By _Title" -msgstr "" - -#: ui/event.ui:214 ui/media.ui:214 ui/tags.ui:214 -msgid "By _Filename" -msgstr "" - -#: ui/event.ui:219 ui/media.ui:219 ui/tags.ui:219 -msgid "By Exposure _Date" -msgstr "" - -#: ui/event.ui:224 ui/media.ui:224 ui/tags.ui:224 -msgid "By _Rating" -msgstr "" - -#: ui/event.ui:251 ui/import.ui:174 ui/media.ui:251 ui/photo.ui:135 -#: ui/tags.ui:251 -msgid "_Descending" -msgstr "" - -#: ui/event.ui:275 ui/media.ui:275 ui/tags.ui:275 -msgid "_Photos" -msgstr "" - -#: ui/import_queue.ui:8 -msgid "_Stop Import" -msgstr "" - -#: ui/preferences_dialog.ui:65 -msgid "white" -msgstr "" - -#: ui/preferences_dialog.ui:92 -msgid "black" -msgstr "" - -#: ui/preferences_dialog.ui:123 -msgid "Display" -msgstr "" - -#: ui/preferences_dialog.ui:160 -msgid "_Background:" -msgstr "" - -#: ui/preferences_dialog.ui:175 -msgid "_Import photos to:" -msgstr "" - -#: ui/preferences_dialog.ui:186 -msgid "_Watch library directory for new files" -msgstr "" - -#: ui/preferences_dialog.ui:209 -msgid "Importing" -msgstr "" - -#: ui/preferences_dialog.ui:226 -msgid "_Directory structure:" -msgstr "" - -#: ui/preferences_dialog.ui:241 -msgid "Example:" -msgstr "" - -#: ui/preferences_dialog.ui:250 -msgid "R_ename imported files to lowercase" -msgstr "" - -#: ui/preferences_dialog.ui:272 -msgid "Metadata" -msgstr "" - -#: ui/preferences_dialog.ui:285 -msgid "Write tags, titles, and other _metadata to photo files" -msgstr "" - -#: ui/preferences_dialog.ui:307 -msgid "RAW Developer" -msgstr "" - -#: ui/preferences_dialog.ui:324 -msgid "De_fault:" -msgstr "" - -#: ui/preferences_dialog.ui:378 -msgid "_Pattern:" -msgstr "" - -#: ui/preferences_dialog.ui:414 -msgid "Transparent Background:" -msgstr "" - -#: ui/preferences_dialog.ui:428 -msgid "Checkered" -msgstr "" - -#: ui/preferences_dialog.ui:449 -msgid "Solid color" -msgstr "" - -#: ui/preferences_dialog.ui:539 -msgid "E_xternal photo editor:" -msgstr "" - -#: ui/preferences_dialog.ui:556 -msgid "External _RAW editor:" -msgstr "" - -#: ui/preferences_dialog.ui:617 -msgid "External Editors" -msgstr "" - -#: ui/preferences_dialog.ui:642 -msgid "Plugins" -msgstr "" - -#: ui/preferences_dialog.ui:668 -msgid "Shotwell Preferences" -msgstr "" - -#: ui/printing_widget.ui:18 -msgid "Printed Image Size" -msgstr "" - -#: ui/printing_widget.ui:38 -msgid "Use a _standard size:" -msgstr "" - -#: ui/printing_widget.ui:65 -msgid "Use a c_ustom size:" -msgstr "" - -#. Abbrevation for "inch" -#: ui/printing_widget.ui:128 -msgid "in." -msgstr "" - -#. Abbrevation for "centimeters" -#: ui/printing_widget.ui:129 -msgid "cm" -msgstr "" - -#: ui/printing_widget.ui:146 -msgid "_Match photo aspect ratio" -msgstr "" - -#: ui/printing_widget.ui:161 -msgid "_Autosize:" -msgstr "" - -#: ui/printing_widget.ui:202 -msgid "Titles" -msgstr "" - -#: ui/printing_widget.ui:219 -msgid "Print image _title" -msgstr "" - -#: ui/printing_widget.ui:262 -msgid "Pixel Resolution" -msgstr "" - -#: ui/printing_widget.ui:282 -msgid "_Output photo at:" -msgstr "" - -#: ui/printing_widget.ui:316 -msgid "pixels per inch" -msgstr "" - -#: ui/saved_search_dialog.ui:7 -msgid "Search" -msgstr "" - -#: ui/saved_search_dialog.ui:23 -msgid "Cancel" -msgstr "" - -#: ui/saved_search_dialog.ui:36 -msgid "OK" -msgstr "" - -#: ui/saved_search_dialog.ui:74 -msgid "_Name of search:" -msgstr "" - -#: ui/saved_search_dialog.ui:132 -msgid "_Match" -msgstr "" - -#: ui/saved_search_dialog.ui:149 -msgid "any" -msgstr "" - -#: ui/saved_search_dialog.ui:150 -msgid "all" -msgstr "" - -#: ui/saved_search_dialog.ui:151 -msgid "none" -msgstr "" - -#: ui/saved_search_dialog.ui:165 -msgid "of the following:" -msgstr "" - -#: ui/set_background_dialog.ui:9 -msgid "Set as Desktop Background" -msgstr "" - -#: ui/set_background_dialog.ui:69 ui/set_background_slideshow_dialog.ui:132 -msgid "Use for Desktop" -msgstr "" - -#: ui/set_background_dialog.ui:86 ui/set_background_slideshow_dialog.ui:149 -msgid "Use for Lock Screen" -msgstr "" - -#: ui/set_background_slideshow_dialog.ui:16 -msgid "Set as Desktop Slideshow" -msgstr "" - -#: ui/set_background_slideshow_dialog.ui:54 -msgid "Generate desktop background slideshow" -msgstr "" - -#: ui/set_background_slideshow_dialog.ui:80 -msgid "Show each photo for" -msgstr "" - -#: ui/set_background_slideshow_dialog.ui:92 -msgid "period of time" -msgstr "" - -#: ui/set_background_slideshow_dialog.ui:114 -msgid "How long each photo is shown on the desktop background" -msgstr "" - -#: ui/sidebar_default_context.ui:11 ui/tag_sidebar_context.ui:6 -msgid "New _Tag…" -msgstr "" - -#: ui/slideshow_settings.ui:91 -msgid "_Delay:" -msgstr "" - -#: ui/slideshow_settings.ui:105 -msgid "_Transition effect:" -msgstr "" - -#: ui/slideshow_settings.ui:119 -msgid "Transition d_elay:" -msgstr "" - -#: ui/slideshow_settings.ui:129 -msgid "Show t_itle" -msgstr "" - -#: ui/slideshow_settings.ui:212 ui/slideshow_settings.ui:223 -msgid "seconds" -msgstr "" - -#: ui/textentrydialog.ui:66 -msgid "label" -msgstr "" - -#: ui/trash.ui:285 -msgid "Delete all photos in the trash" -msgstr "" diff --git a/po/sk.gmo b/po/sk.gmo deleted file mode 100644 index 3274827..0000000 Binary files a/po/sk.gmo and /dev/null differ diff --git a/po/sl.gmo b/po/sl.gmo deleted file mode 100644 index 163ef35..0000000 Binary files a/po/sl.gmo and /dev/null differ diff --git a/po/sr.gmo b/po/sr.gmo deleted file mode 100644 index 215e526..0000000 Binary files a/po/sr.gmo and /dev/null differ diff --git a/po/sr@latin.gmo b/po/sr@latin.gmo deleted file mode 100644 index 24021c9..0000000 Binary files a/po/sr@latin.gmo and /dev/null differ diff --git a/po/stamp-po b/po/stamp-po deleted file mode 100644 index 9788f70..0000000 --- a/po/stamp-po +++ /dev/null @@ -1 +0,0 @@ -timestamp diff --git a/po/sv.gmo b/po/sv.gmo deleted file mode 100644 index 1800b7e..0000000 Binary files a/po/sv.gmo and /dev/null differ diff --git a/po/sv.po b/po/sv.po index 05da572..8742422 100644 --- a/po/sv.po +++ b/po/sv.po @@ -10,29 +10,28 @@ # verayin , 2011 # lsbeeler , 2011 # Josef Andersson , 2015. -# Anders Jonsson , 2016. +# Anders Jonsson , 2016, 2018. msgid "" msgstr "" "Project-Id-Version: shotwell\n" -"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" -"product=shotwell&keywords=I18N+L10N&component=Internationalization\n" -"POT-Creation-Date: 2017-11-27 19:54+0000\n" -"PO-Revision-Date: 2017-11-27 18:57+0100\n" -"Last-Translator: Josef Andersson \n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/shotwell/issues\n" +"POT-Creation-Date: 2018-09-05 07:37+0000\n" +"PO-Revision-Date: 2018-09-05 12:57+0200\n" +"Last-Translator: Anders Jonsson \n" "Language-Team: Swedish \n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 2.0.4\n" +"X-Generator: Poedit 2.1.1\n" "X-Project-Style: gnome\n" #: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in:4 #: plugins/shotwell-publishing-extras/GalleryConnector.vala:115 #: src/photos/RawSupport.vala:308 ui/collection.ui:85 ui/event.ui:356 -#: ui/event.ui:524 ui/media.ui:356 ui/photo_context.ui:91 ui/photo.ui:346 -#: ui/tags.ui:356 +#: ui/event.ui:524 ui/faces.ui:356 ui/media.ui:356 ui/photo_context.ui:91 +#: ui/photo.ui:347 ui/tags.ui:356 msgid "Shotwell" msgstr "Shotwell" @@ -467,12 +466,13 @@ msgid "Pin toolbar in fullscreen, or not." msgstr "Fäst verktygsfält vid helskärm, eller fäst inte." #: misc/org.yorba.shotwell.gschema.xml:161 -msgid "background color" -msgstr "bakgrundsfärg" +msgid "prefer GTK+’s dark theme" +msgstr "föredra GTK+:s mörka tema" #: misc/org.yorba.shotwell.gschema.xml:162 -msgid "A grayscale color for use as the background color." -msgstr "En gråskalefärg att använda som bakgrundsfärg." +msgid "Whether to use the dark theme of GTK+ for Shotwell or not." +msgstr "" +"Huruvida det mörka temat för GTK+ ska användas för Shotwell eller inte." #: misc/org.yorba.shotwell.gschema.xml:167 msgid "background for transparent images" @@ -1069,7 +1069,7 @@ msgstr "En sifferkod som fångar upp tillståndet för GStreamers insticksmiljö #: misc/org.yorba.shotwell.gschema.xml:648 msgid "content layout mode" -msgstr "Layoutläge för innehåll" +msgstr "layoutläge för innehåll" #: misc/org.yorba.shotwell.gschema.xml:649 msgid "" @@ -1421,7 +1421,7 @@ msgstr "Misslyckades med Flickr-auktorisering" msgid "Verifying authorization…" msgstr "Verifierar behörighet…" -#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:118 +#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:137 msgid "" "You have already logged in and out of a Google service during this Shotwell " "session.\n" @@ -1504,7 +1504,7 @@ msgstr "Kunde inte ladda användargränssnittet: %s" msgid "Visit the Shotwell home page" msgstr "Besök Shotwells webbplats" -#: plugins/common/Resources.vala:31 src/AppWindow.vala:611 +#: plugins/common/Resources.vala:31 src/AppWindow.vala:603 msgid "translator-credits" msgstr "" "Daniel Nylander \n" @@ -1595,7 +1595,7 @@ msgid "Go _Back" msgstr "_Bakåt" #: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:125 -#: ui/shotwell.ui:363 +#: ui/shotwell.ui:76 msgid "_Log in" msgstr "_Logga in" @@ -1662,7 +1662,7 @@ msgstr "_Logga ut" #: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:156 #: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:121 #: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:115 -#: src/CollectionPage.vala:82 src/PhotoPage.vala:2469 +#: src/CollectionPage.vala:82 src/PhotoPage.vala:2492 msgid "_Publish" msgstr "_Publicera" @@ -2126,7 +2126,7 @@ msgid "Logout" msgstr "Logga ut" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:268 -#: src/Resources.vala:296 ui/collection.ui:192 +#: src/Resources.vala:266 ui/collection.ui:192 msgid "Publish" msgstr "Publicera" @@ -2157,7 +2157,8 @@ msgid "Certificate of %s" msgstr "Certifikat för %s" #: plugins/shotwell-publishing/PiwigoPublishing.vala:1051 -#: src/Resources.vala:167 ui/slideshow_settings.ui:49 +#: src/Resources.vala:137 ui/multitextentrydialog.ui:40 +#: ui/slideshow_settings.ui:52 msgid "_OK" msgstr "_OK" @@ -2364,16 +2365,18 @@ msgstr "Fäst verktygsfältet i öppet läge" msgid "Leave fullscreen" msgstr "Avsluta helskärmsläge" -#: src/AppWindow.vala:538 src/AppWindow.vala:559 src/AppWindow.vala:576 -#: src/data_imports/DataImportsUI.vala:303 -#: src/data_imports/DataImportsUI.vala:421 src/Dialogs.vala:20 -#: src/Dialogs.vala:28 src/Dialogs.vala:1420 src/Dialogs.vala:1443 -#: src/publishing/PublishingUI.vala:303 src/publishing/PublishingUI.vala:527 -#: src/Resources.vala:158 ui/slideshow_settings.ui:35 +#: src/AppWindow.vala:530 src/AppWindow.vala:551 src/AppWindow.vala:568 +#: src/data_imports/DataImportsUI.vala:302 +#: src/data_imports/DataImportsUI.vala:420 src/Dialogs.vala:20 +#: src/Dialogs.vala:28 src/Dialogs.vala:58 src/Dialogs.vala:766 +#: src/Dialogs.vala:789 src/publishing/PublishingUI.vala:305 +#: src/publishing/PublishingUI.vala:529 src/Resources.vala:128 +#: ui/multitextentrydialog.ui:25 ui/slideshow_settings.ui:38 +#: ui/textentrydialog.ui:19 msgid "_Cancel" msgstr "_Avbryt" -#: src/AppWindow.vala:586 +#: src/AppWindow.vala:578 #, c-format msgid "" "A fatal error occurred when accessing Shotwell’s library. Shotwell cannot " @@ -2386,21 +2389,21 @@ msgstr "" "\n" "%s" -#: src/AppWindow.vala:607 +#: src/AppWindow.vala:599 msgid "Visit the Shotwell web site" msgstr "Besök Shotwells webbplats" -#: src/AppWindow.vala:620 +#: src/AppWindow.vala:612 #, c-format msgid "Unable to display help: %s" msgstr "Kunde inte visa hjälp: %s" -#: src/AppWindow.vala:628 +#: src/AppWindow.vala:620 #, c-format msgid "Unable to navigate to bug database: %s" msgstr "Det går inte att komma åt feldatabasen: %s" -#: src/AppWindow.vala:636 +#: src/AppWindow.vala:628 #, c-format msgid "Unable to display FAQ: %s" msgstr "Kunde inte visa återkommande frågor: %s" @@ -2476,18 +2479,18 @@ msgstr "Lista över identifierade kameraenheter" #: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:711 #: src/camera/ImportPage.vala:727 src/photos/RawSupport.vala:311 -#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/media.ui:361 -#: ui/photo_context.ui:96 ui/photo.ui:351 ui/tags.ui:361 +#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/faces.ui:361 +#: ui/media.ui:361 ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 msgid "Camera" msgstr "Kamera" #. Translators: First %s is the name of camera as gotten from GPhoto, second is the GVolume name, e.g. Mass storage camera (510MB volume) -#: src/camera/CameraTable.vala:351 +#: src/camera/CameraTable.vala:256 #, c-format msgid "%s (%s)" msgstr "%s (%s)" -#: src/camera/ImportPage.vala:311 src/Properties.vala:230 +#: src/camera/ImportPage.vala:307 src/Properties.vala:234 msgid "RAW+JPEG" msgstr "RAW+JPEG" @@ -2617,7 +2620,7 @@ msgid_plural "Delete these %d files from camera?" msgstr[0] "Radera denna fil från kameran?" msgstr[1] "Radera dessa %d filer från kameran?" -#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:1387 +#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:733 msgid "_Keep" msgstr "_Behåll" @@ -2635,21 +2638,21 @@ msgstr[1] "" "Kunde inte radera %d bilder och filmer från kameran på grund av ett fel." #: src/CollectionPage.vala:80 src/direct/DirectPhotoPage.vala:85 -#: src/PhotoPage.vala:2464 src/Resources.vala:171 +#: src/PhotoPage.vala:2487 src/Resources.vala:141 msgid "_Print" msgstr "Skriv _ut" -#: src/CollectionPage.vala:83 src/Resources.vala:324 ui/collection.ui:128 +#: src/CollectionPage.vala:83 src/Resources.vala:294 ui/collection.ui:128 #: ui/direct_context.ui:23 ui/direct.ui:23 ui/event.ui:567 ui/photo.ui:28 msgid "Send _To…" msgstr "Skicka t_ill…" #: src/CollectionPage.vala:84 src/direct/DirectPhotoPage.vala:90 -#: src/PhotoPage.vala:2474 src/Resources.vala:221 +#: src/PhotoPage.vala:2497 src/Resources.vala:191 msgid "Set as _Desktop Background" msgstr "Använd som skrivbords_bakgrund" -#: src/CollectionPage.vala:92 src/Resources.vala:287 +#: src/CollectionPage.vala:92 src/Resources.vala:257 msgid "_Duplicate" msgstr "_Duplicera" @@ -2661,43 +2664,43 @@ msgstr "Helskärm" msgid "S_lideshow" msgstr "_Bildspel" -#: src/CollectionPage.vala:110 src/Resources.vala:140 ui/direct.ui:111 +#: src/CollectionPage.vala:110 src/Resources.vala:110 ui/direct.ui:111 #: ui/photo.ui:200 msgid "Rotate _Right" msgstr "Rotera åt _höger" -#: src/CollectionPage.vala:113 src/Resources.vala:145 ui/direct.ui:116 +#: src/CollectionPage.vala:113 src/Resources.vala:115 ui/direct.ui:116 #: ui/photo.ui:205 msgid "Rotate _Left" msgstr "Rotera åt _vänster" -#: src/CollectionPage.vala:116 src/Resources.vala:150 ui/direct.ui:121 +#: src/CollectionPage.vala:116 src/Resources.vala:120 ui/direct.ui:121 #: ui/photo.ui:210 msgid "Flip Hori_zontally" msgstr "Vänd hor_isontellt" -#: src/CollectionPage.vala:117 src/Resources.vala:153 ui/direct.ui:125 +#: src/CollectionPage.vala:117 src/Resources.vala:123 ui/direct.ui:125 #: ui/photo.ui:214 msgid "Flip Verti_cally" msgstr "Vänd verti_kalt" -#: src/CollectionPage.vala:119 src/Resources.vala:187 ui/collection.ui:8 +#: src/CollectionPage.vala:119 src/Resources.vala:157 ui/collection.ui:8 #: ui/direct_context.ui:7 ui/direct.ui:134 ui/event.ui:447 #: ui/photo_context.ui:6 ui/photo.ui:223 msgid "_Enhance" msgstr "Förbä_ttra" -#: src/CollectionPage.vala:120 src/Resources.vala:215 ui/collection.ui:13 +#: src/CollectionPage.vala:120 src/Resources.vala:185 ui/collection.ui:13 #: ui/direct_context.ui:12 ui/direct.ui:161 ui/event.ui:452 #: ui/photo_context.ui:11 ui/photo.ui:250 msgid "Re_vert to Original" msgstr "_Återställ till original" -#: src/CollectionPage.vala:122 src/Resources.vala:191 ui/photo.ui:256 +#: src/CollectionPage.vala:122 src/Resources.vala:161 ui/photo.ui:256 msgid "_Copy Color Adjustments" msgstr "_Kopiera färgjusteringar" -#: src/CollectionPage.vala:125 src/Resources.vala:195 ui/photo.ui:261 +#: src/CollectionPage.vala:125 src/Resources.vala:165 ui/photo.ui:261 msgid "_Paste Color Adjustments" msgstr "_Klistra in färgjusteringar" @@ -2705,17 +2708,17 @@ msgstr "_Klistra in färgjusteringar" msgid "Adjust Date and Time…" msgstr "Justera datum och tid…" -#: src/CollectionPage.vala:143 src/Resources.vala:320 ui/collection.ui:108 -#: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:360 +#: src/CollectionPage.vala:143 src/Resources.vala:290 ui/collection.ui:108 +#: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:361 msgid "Open With E_xternal Editor" msgstr "Öppna med e_xtern redigerare" -#: src/CollectionPage.vala:146 src/Resources.vala:322 ui/collection.ui:113 -#: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:365 +#: src/CollectionPage.vala:146 src/Resources.vala:292 ui/collection.ui:113 +#: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:366 msgid "Open With RA_W Editor" msgstr "Öppna i RA_W-redigerare" -#: src/CollectionPage.vala:149 src/Resources.vala:168 +#: src/CollectionPage.vala:149 src/Resources.vala:138 msgid "_Play" msgstr "_Spela" @@ -2725,7 +2728,7 @@ msgid_plural "Export Photos/Videos" msgstr[0] "Exportera bild/film" msgstr[1] "Exportera bilder/filmer" -#: src/CollectionPage.vala:412 src/Dialogs.vala:59 src/PhotoPage.vala:2998 +#: src/CollectionPage.vala:412 src/Dialogs.vala:74 src/PhotoPage.vala:3021 msgid "Export Photo" msgid_plural "Export Photos" msgstr[0] "Exportera bild" @@ -2779,152 +2782,152 @@ msgstr "Verkställer färgtransformationer" msgid "Undoing Color Transformations" msgstr "Ångrar färgtransformationer" -#: src/Commands.vala:1007 +#: src/Commands.vala:1006 msgid "Creating New Event" msgstr "Skapar ny händelse" -#: src/Commands.vala:1008 +#: src/Commands.vala:1007 msgid "Removing Event" msgstr "Tar bort händelse" -#: src/Commands.vala:1017 +#: src/Commands.vala:1016 msgid "Moving Photos to New Event" msgstr "Flyttar bilder till ny händelse" -#: src/Commands.vala:1018 +#: src/Commands.vala:1017 msgid "Setting Photos to Previous Event" msgstr "Ställer in bilder till föregående händelse" -#: src/Commands.vala:1075 +#: src/Commands.vala:1074 msgid "Merging" msgstr "Sammanfogar" -#: src/Commands.vala:1076 +#: src/Commands.vala:1075 msgid "Unmerging" msgstr "Delar upp" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Duplicating photos" msgstr "Skapar kopior av bilderna" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Removing duplicated photos" msgstr "Tar bort kopior på bilderna" -#: src/Commands.vala:1108 +#: src/Commands.vala:1107 #, c-format msgid "Unable to duplicate one photo due to a file error" msgid_plural "Unable to duplicate %d photos due to file errors" msgstr[0] "Kunde inte kopiera en bild på grund av en felaktig fil" msgstr[1] "Det gick inte kopiera %d bilder på grund av felaktiga filer" -#: src/Commands.vala:1195 +#: src/Commands.vala:1194 msgid "Restoring previous rating" msgstr "Återställer tidigare betyg" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Increasing ratings" msgstr "Ökar betyg" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Decreasing ratings" msgstr "Sänker betyg" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Setting RAW developer" msgstr "Ställer in RAW-framkallare" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Restoring previous RAW developer" msgstr "Återställer tidigare RAW-framkallare" -#: src/Commands.vala:1257 +#: src/Commands.vala:1256 msgid "Set Developer" msgstr "Ange framkallare" -#: src/Commands.vala:1347 +#: src/Commands.vala:1346 msgid "Original photo could not be adjusted." msgstr "Den ursprungliga bilden kunde inte justeras." -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Adjusting Date and Time" msgstr "Justerar datum och tid" -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Undoing Date and Time Adjustment" msgstr "Ångrar justering för datum och tid" -#: src/Commands.vala:1399 +#: src/Commands.vala:1398 msgid "One original photo could not be adjusted." msgid_plural "The following original photos could not be adjusted." msgstr[0] "Den ursprungliga bilden kunde inte anpassas." msgstr[1] "Följande ursprungliga bilder kunde inte anpassas." -#: src/Commands.vala:1401 src/Commands.vala:1425 +#: src/Commands.vala:1400 src/Commands.vala:1424 msgid "Time Adjustment Error" msgstr "Anpassning av tidsfel" -#: src/Commands.vala:1423 +#: src/Commands.vala:1422 msgid "Time adjustments could not be undone on the following photo file." msgid_plural "" "Time adjustments could not be undone on the following photo files." msgstr[0] "Tidsanpassningen kunde inte återställas för den här bilden." msgstr[1] "Tidsanpassningen kunde inte återställas för följande bilder." -#: src/Commands.vala:1637 src/Commands.vala:1660 +#: src/Commands.vala:1636 src/Commands.vala:1659 msgid "Create Tag" msgstr "Skapa tagg" -#: src/Commands.vala:1695 +#: src/Commands.vala:1694 #, c-format msgid "Move Tag “%s”" msgstr "Flytta taggen ”%s”" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Move Photos to Trash" msgstr "Flytta bilder till papperskorgen" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Restore Photos from Trash" msgstr "Återställ bilder från papperskorgen" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Move the photos to the Shotwell trash" msgstr "Flytta bilderna till Shotwells papperskorg" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Restore the photos back to the Shotwell library" msgstr "Återställ bilder tillbaka till Shotwell-biblioteket" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Moving Photos to Trash" msgstr "Flyttar bilder till papperskorgen" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Restoring Photos From Trash" msgstr "Återställer bilderna från papperskorgen" -#: src/Commands.vala:2453 +#: src/Commands.vala:2452 msgid "Flag selected photos" msgstr "Flagga markerade bilder" -#: src/Commands.vala:2454 +#: src/Commands.vala:2453 msgid "Unflag selected photos" msgstr "Flagga av markerade bilder" -#: src/Commands.vala:2455 +#: src/Commands.vala:2454 msgid "Flagging selected photos" msgstr "Flaggar markerade bilder" -#: src/Commands.vala:2456 +#: src/Commands.vala:2455 msgid "Unflagging selected photos" msgstr "Flaggar av markerade bilder" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Flag" msgstr "Flagga" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Unflag" msgstr "Flagga av" @@ -2965,19 +2968,19 @@ msgstr "" msgid "Database file:" msgstr "Databasfil:" -#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:782 +#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:783 msgid "_Import" msgstr "_Importera" -#: src/data_imports/DataImportsUI.vala:220 +#: src/data_imports/DataImportsUI.vala:219 msgid "Import From Application" msgstr "Importera från program" -#: src/data_imports/DataImportsUI.vala:221 +#: src/data_imports/DataImportsUI.vala:220 msgid "Import media _from:" msgstr "Importera mediafiler från:" -#: src/data_imports/DataImportsUI.vala:416 src/publishing/PublishingUI.vala:522 +#: src/data_imports/DataImportsUI.vala:415 src/publishing/PublishingUI.vala:524 msgid "_Close" msgstr "S_täng" @@ -3047,10 +3050,11 @@ msgstr[0] "" msgstr[1] "" "Det här kommer att ta bort taggen ”%s” från %d bilder. Vill du fortsätta?" -#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:1388 -#: src/Resources.vala:159 src/Resources.vala:362 src/Resources.vala:415 -#: src/Resources.vala:659 ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 -#: ui/trash.ui:216 ui/trash.ui:258 +#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:58 +#: src/Dialogs.vala:734 src/Resources.vala:129 src/Resources.vala:310 +#: src/Resources.vala:341 src/Resources.vala:394 src/Resources.vala:762 +#: ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 ui/trash.ui:216 +#: ui/trash.ui:258 msgid "_Delete" msgstr "_Radera" @@ -3077,11 +3081,20 @@ msgstr[1] "" msgid "_Switch Developer" msgstr "_Byt råbildsframkallare" -#: src/Dialogs.vala:59 +#: src/Dialogs.vala:54 +#, c-format +msgid "This will remove the face “%s” from one photo. Continue?" +msgid_plural "This will remove the face “%s” from %d photos. Continue?" +msgstr[0] "" +"Det här kommer att ta bort ansiktet ”%s” från bilden. Vill du fortsätta?" +msgstr[1] "" +"Det här kommer att ta bort ansiktet ”%s” från %d bilder. Vill du fortsätta?" + +#: src/Dialogs.vala:74 msgid "Export Video" msgstr "Exportera film" -#: src/Dialogs.vala:84 +#: src/Dialogs.vala:99 msgid "Export Photos" msgstr "Exportera bilder" @@ -3090,7 +3103,7 @@ msgstr "Exportera bilder" #. if we can't copy an image over for editing in an external tool. #. Did we fail because we can't write to this directory? #. Yes - display an alternate error message here. -#: src/Dialogs.vala:112 +#: src/Dialogs.vala:127 #, c-format msgid "" "Shotwell couldn’t create a file for editing this photo because you do not " @@ -3099,7 +3112,7 @@ msgstr "" "Shotwell kunde inte skapa en fil för redigering av denna bild därför att du " "inte har behörighet att skriva till %s." -#: src/Dialogs.vala:121 +#: src/Dialogs.vala:136 msgid "" "Unable to export the following photo due to a file error.\n" "\n" @@ -3107,7 +3120,7 @@ msgstr "" "Kunde inte exportera följande bild på grund av ett filfel.\n" "\n" -#: src/Dialogs.vala:127 +#: src/Dialogs.vala:142 msgid "" "\n" "\n" @@ -3117,67 +3130,35 @@ msgstr "" "\n" "Vill du fortsätta att exportera?" -#: src/Dialogs.vala:128 +#: src/Dialogs.vala:143 msgid "Con_tinue" msgstr "_Fortsätt" -#. "Unmodified" and "Current," though they appear in the "Format:" popup menu, really -#. aren't formats so much as they are operating modes that determine specific formats. -#. Hereafter we'll refer to these as "special formats." -#: src/Dialogs.vala:144 -msgid "Unmodified" -msgstr "Oförändrad" - -#: src/Dialogs.vala:145 -msgid "Current" -msgstr "Aktuellt" - -#. layout controls -#: src/Dialogs.vala:221 -msgid "_Format:" -msgstr "_Format:" - -#: src/Dialogs.vala:224 -msgid "_Quality:" -msgstr "_Kvalitet:" - -#: src/Dialogs.vala:227 -msgid "_Scaling constraint:" -msgstr "_Skalningsbegränsning:" - -#: src/Dialogs.vala:230 -msgid "_Pixels:" -msgstr "_Bildpunkter:" - -#: src/Dialogs.vala:234 -msgid "Export _metadata:" -msgstr "Exportera _metadata:" - -#: src/Dialogs.vala:478 +#: src/Dialogs.vala:153 msgid "Save Details…" msgstr "Spara detaljer…" -#: src/Dialogs.vala:479 +#: src/Dialogs.vala:154 msgid "Save Details" msgstr "Spara detaljer" -#: src/Dialogs.vala:494 +#: src/Dialogs.vala:169 #, c-format msgid "(and %d more)\n" msgstr "(och ytterligare %d)\n" -#: src/Dialogs.vala:547 +#: src/Dialogs.vala:222 msgid "Import Results Report" msgstr "Importera resultatrapport" -#: src/Dialogs.vala:551 +#: src/Dialogs.vala:226 #, c-format msgid "Attempted to import %d file." msgid_plural "Attempted to import %d files." msgstr[0] "Försökte importera %d fil." msgstr[1] "Försökte importera %d filer." -#: src/Dialogs.vala:554 +#: src/Dialogs.vala:229 #, c-format msgid "Of these, %d file was successfully imported." msgid_plural "Of these, %d files were successfully imported." @@ -3187,30 +3168,30 @@ msgstr[1] "Av dessa importerades %d filer framgångsrikt." #. #. Duplicates #. -#: src/Dialogs.vala:566 +#: src/Dialogs.vala:241 msgid "Duplicate Photos/Videos Not Imported:" msgstr "Dubbletter av bilder/filmer som inte importerades:" -#: src/Dialogs.vala:570 +#: src/Dialogs.vala:245 msgid "duplicates existing media item" msgstr "dubblett av befintligt media" #. #. Files Not Imported Due to Camera Errors #. -#: src/Dialogs.vala:581 +#: src/Dialogs.vala:256 msgid "Photos/Videos Not Imported Due to Camera Errors:" msgstr "På grund av ett kamerafel importerades inga bilder eller filmer:" -#: src/Dialogs.vala:584 src/Dialogs.vala:599 src/Dialogs.vala:614 -#: src/Dialogs.vala:630 src/Dialogs.vala:645 src/Dialogs.vala:659 +#: src/Dialogs.vala:259 src/Dialogs.vala:274 src/Dialogs.vala:289 +#: src/Dialogs.vala:305 src/Dialogs.vala:320 src/Dialogs.vala:334 msgid "error message:" msgstr "felmeddelande:" #. #. Files Not Imported Because They Weren't Recognized as Photos or Videos #. -#: src/Dialogs.vala:595 +#: src/Dialogs.vala:270 msgid "Files Not Imported Because They Weren’t Recognized as Photos or Videos:" msgstr "" "Filerna importerades inte på grund av att de inte kändes igen som bild- " @@ -3219,7 +3200,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands #. -#: src/Dialogs.vala:610 +#: src/Dialogs.vala:285 msgid "" "Photos/Videos Not Imported Because They Weren’t in a Format Shotwell " "Understands:" @@ -3230,7 +3211,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library #. -#: src/Dialogs.vala:625 +#: src/Dialogs.vala:300 msgid "" "Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into its " "Library:" @@ -3238,7 +3219,7 @@ msgstr "" "Bilderna eller filmerna importerades inte på grund av att det inte gick att " "kopiera dem till biblioteket:" -#: src/Dialogs.vala:629 +#: src/Dialogs.vala:304 #, c-format msgid "" "couldn’t copy %s\n" @@ -3250,39 +3231,39 @@ msgstr "" #. #. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt #. -#: src/Dialogs.vala:641 +#: src/Dialogs.vala:316 msgid "Photos/Videos Not Imported Because Files Are Corrupt:" msgstr "Bilder/filmer importerades inte eftersom filer är korrupta:" #. #. Photos/Videos Not Imported for Other Reasons #. -#: src/Dialogs.vala:656 +#: src/Dialogs.vala:331 msgid "Photos/Videos Not Imported for Other Reasons:" msgstr "Bilder/filmer importerades inte på grund av andra anledningar:" -#: src/Dialogs.vala:676 +#: src/Dialogs.vala:351 #, c-format msgid "1 duplicate photo was not imported:\n" msgid_plural "%d duplicate photos were not imported:\n" msgstr[0] "1 bilddubblett importerades inte:\n" msgstr[1] "%d bilddubbletter importerades inte:\n" -#: src/Dialogs.vala:679 +#: src/Dialogs.vala:354 #, c-format msgid "1 duplicate video was not imported:\n" msgid_plural "%d duplicate videos were not imported:\n" msgstr[0] "1 filmdubblett importerades inte:\n" msgstr[1] "%d filmdubbletter importerades inte:\n" -#: src/Dialogs.vala:682 +#: src/Dialogs.vala:357 #, c-format msgid "1 duplicate photo/video was not imported:\n" msgid_plural "%d duplicate photos/videos were not imported:\n" msgstr[0] "1 film-/bilddubblett importerades inte:\n" msgstr[1] "%d bild- och filmdubbletter importerades inte:\n" -#: src/Dialogs.vala:696 +#: src/Dialogs.vala:371 #, c-format msgid "1 photo failed to import due to a file or hardware error:\n" msgid_plural "%d photos failed to import due to a file or hardware error:\n" @@ -3291,7 +3272,7 @@ msgstr[0] "" msgstr[1] "" "Import av %d bilder misslyckades på grund av ett fil- eller hårdvarufel:\n" -#: src/Dialogs.vala:699 +#: src/Dialogs.vala:374 #, c-format msgid "1 video failed to import due to a file or hardware error:\n" msgid_plural "%d videos failed to import due to a file or hardware error:\n" @@ -3300,7 +3281,7 @@ msgstr[0] "" msgstr[1] "" "%d filmer gick inte att importera på grund av ett fil- eller hårdvarufel:\n" -#: src/Dialogs.vala:702 +#: src/Dialogs.vala:377 #, c-format msgid "1 photo/video failed to import due to a file or hardware error:\n" msgid_plural "" @@ -3311,7 +3292,7 @@ msgstr[1] "" "%d bilder och filmer gick inte att importera på grund av ett fil- eller " "hårdvarufel:\n" -#: src/Dialogs.vala:705 +#: src/Dialogs.vala:380 #, c-format msgid "1 file failed to import due to a file or hardware error:\n" msgid_plural "%d files failed to import due to a file or hardware error:\n" @@ -3320,7 +3301,7 @@ msgstr[0] "" msgstr[1] "" "%d filer gick inte att importera på grund av ett fil- eller hårdvarufel:\n" -#: src/Dialogs.vala:719 +#: src/Dialogs.vala:394 #, c-format msgid "" "1 photo failed to import because the photo library folder was not writable:\n" @@ -3334,7 +3315,7 @@ msgstr[1] "" "%d bilder gick inte att importera därför att bildbiblioteksmappen inte var " "skrivbar:\n" -#: src/Dialogs.vala:722 +#: src/Dialogs.vala:397 #, c-format msgid "" "1 video failed to import because the photo library folder was not writable:\n" @@ -3348,7 +3329,7 @@ msgstr[1] "" "%d filmer gick inte att importera därför att bildbiblioteksmappen inte var " "skrivbar:\n" -#: src/Dialogs.vala:725 +#: src/Dialogs.vala:400 #, c-format msgid "" "1 photo/video failed to import because the photo library folder was not " @@ -3363,7 +3344,7 @@ msgstr[1] "" "%d bilder och filmer gick inte att importera därför att bildbiblioteksmappen " "inte var skrivbar:\n" -#: src/Dialogs.vala:728 +#: src/Dialogs.vala:403 #, c-format msgid "" "1 file failed to import because the photo library folder was not writable:\n" @@ -3377,21 +3358,21 @@ msgstr[1] "" "%d filer gick inte att importera på grund av att bildbibliotekets mapp inte " "var skrivbar:\n" -#: src/Dialogs.vala:742 +#: src/Dialogs.vala:417 #, c-format msgid "1 photo failed to import due to a camera error:\n" msgid_plural "%d photos failed to import due to a camera error:\n" msgstr[0] "Import av ett bild misslyckades på grund av ett kamerafel:\n" msgstr[1] "%d bilder gick inte att importera på grund av ett kamerafel:\n" -#: src/Dialogs.vala:745 +#: src/Dialogs.vala:420 #, c-format msgid "1 video failed to import due to a camera error:\n" msgid_plural "%d videos failed to import due to a camera error:\n" msgstr[0] "1 video gick inte att importera på grund av ett kamerafel:\n" msgstr[1] "%d filmer gick inte att importera på grund av ett kamerafel:\n" -#: src/Dialogs.vala:748 +#: src/Dialogs.vala:423 #, c-format msgid "1 photo/video failed to import due to a camera error:\n" msgid_plural "%d photos/videos failed to import due to a camera error:\n" @@ -3399,14 +3380,14 @@ msgstr[0] "1 bild/film gick inte att importera på grund av ett kamerafel:\n" msgstr[1] "" "%d bilder och filmer gick inte att importera på grund av ett kamerafel:\n" -#: src/Dialogs.vala:751 +#: src/Dialogs.vala:426 #, c-format msgid "1 file failed to import due to a camera error:\n" msgid_plural "%d files failed to import due to a camera error:\n" msgstr[0] "En fil gick inte att importera på grund av ett kamerafel:\n" msgstr[1] "%d filer gick inte att importera på grund av ett kamerafel:\n" -#: src/Dialogs.vala:765 +#: src/Dialogs.vala:440 #, c-format msgid "1 photo failed to import because it was corrupt:\n" msgid_plural "%d photos failed to import because they were corrupt:\n" @@ -3414,7 +3395,7 @@ msgstr[0] "Misslyckades med att importera en bild eftersom den var korrupt:\n" msgstr[1] "" "Misslyckades med att importera %d bilder eftersom de var korrupta:\n" -#: src/Dialogs.vala:768 +#: src/Dialogs.vala:443 #, c-format msgid "1 video failed to import because it was corrupt:\n" msgid_plural "%d videos failed to import because they were corrupt:\n" @@ -3422,7 +3403,7 @@ msgstr[0] "Misslyckades med att importera en film eftersom den var korrupt:\n" msgstr[1] "" "Misslyckades med att importera %d filmer eftersom de var korrupta:\n" -#: src/Dialogs.vala:771 +#: src/Dialogs.vala:446 #, c-format msgid "1 photo/video failed to import because it was corrupt:\n" msgid_plural "%d photos/videos failed to import because they were corrupt:\n" @@ -3431,7 +3412,7 @@ msgstr[0] "" msgstr[1] "" "Misslyckades med att importera %d bilder/filmer eftersom de var korrupta:\n" -#: src/Dialogs.vala:774 +#: src/Dialogs.vala:449 #, c-format msgid "1 file failed to import because it was corrupt:\n" msgid_plural "%d files failed to import because it was corrupt:\n" @@ -3442,7 +3423,7 @@ msgstr[1] "Misslyckades med att importera %d filer eftersom de var korrupta:\n" #. standard container formats are supported, it's just that the streams in them #. might or might not be interpretable), so this message does not need to be #. media specific -#: src/Dialogs.vala:791 +#: src/Dialogs.vala:466 #, c-format msgid "1 unsupported photo skipped:\n" msgid_plural "%d unsupported photos skipped:\n" @@ -3451,56 +3432,56 @@ msgstr[1] "%d bilder som inte stöds hoppades över:\n" #. we have no notion of "non-video" video files right now in Shotwell, so this #. message doesn't need to be media specific -#: src/Dialogs.vala:806 +#: src/Dialogs.vala:481 #, c-format msgid "1 non-image file skipped.\n" msgid_plural "%d non-image files skipped.\n" msgstr[0] "En icke-bildfil hoppades över.\n" msgstr[1] "%d icke-bildfiler hoppades över.\n" -#: src/Dialogs.vala:817 +#: src/Dialogs.vala:492 #, c-format msgid "1 photo skipped due to user cancel:\n" msgid_plural "%d photos skipped due to user cancel:\n" msgstr[0] "En bild hoppades över därför att användaren avbröt:\n" msgstr[1] "%d bilder hoppades över därför att användaren avbröt:\n" -#: src/Dialogs.vala:820 +#: src/Dialogs.vala:495 #, c-format msgid "1 video skipped due to user cancel:\n" msgid_plural "%d videos skipped due to user cancel:\n" msgstr[0] "1 film hoppades över därför att användaren avbröt:\n" msgstr[1] "%d filmer hoppades över därför att användaren avbröt:\n" -#: src/Dialogs.vala:823 +#: src/Dialogs.vala:498 #, c-format msgid "1 photo/video skipped due to user cancel:\n" msgid_plural "%d photos/videos skipped due to user cancel:\n" msgstr[0] "1 bild/film hoppades över därför att användaren avbröt:\n" msgstr[1] "%d bilder och filmer hoppades över därför att användaren avbröt:\n" -#: src/Dialogs.vala:826 +#: src/Dialogs.vala:501 #, c-format msgid "1 file skipped due to user cancel:\n" msgid_plural "%d file skipped due to user cancel:\n" msgstr[0] "En fil hoppades över därför att användaren avbröt:\n" msgstr[1] "%d filer hoppades över därför att användaren avbröt:\n" -#: src/Dialogs.vala:840 +#: src/Dialogs.vala:515 #, c-format msgid "1 photo successfully imported.\n" msgid_plural "%d photos successfully imported.\n" msgstr[0] "En bild importerades.\n" msgstr[1] "%d bilder importerades.\n" -#: src/Dialogs.vala:843 +#: src/Dialogs.vala:518 #, c-format msgid "1 video successfully imported.\n" msgid_plural "%d videos successfully imported.\n" msgstr[0] "En film importerades.\n" msgstr[1] "%d filmer importerades.\n" -#: src/Dialogs.vala:846 +#: src/Dialogs.vala:521 #, c-format msgid "1 photo/video successfully imported.\n" msgid_plural "%d photos/videos successfully imported.\n" @@ -3509,89 +3490,64 @@ msgstr[1] "%d bilder och filmer importerades.\n" #. if no media items were imported at all (i.e. an empty directory attempted), need to at least #. report that nothing was imported -#: src/Dialogs.vala:862 +#: src/Dialogs.vala:537 msgid "No photos or videos imported.\n" msgstr "Inga bilder eller filmer importerades.\n" -#: src/Dialogs.vala:869 src/Dialogs.vala:888 +#: src/Dialogs.vala:544 src/Dialogs.vala:563 msgid "Import Complete" msgstr "Importen är färdig" -#: src/Dialogs.vala:1160 -#, c-format -msgid "%d second" -msgid_plural "%d seconds" -msgstr[0] "%d sekund" -msgstr[1] "%d sekunder" - -#: src/Dialogs.vala:1163 -#, c-format -msgid "%d minute" -msgid_plural "%d minutes" -msgstr[0] "%d minut" -msgstr[1] "%d minuter" - -#: src/Dialogs.vala:1167 -#, c-format -msgid "%d hour" -msgid_plural "%d hours" -msgstr[0] "%d timme" -msgstr[1] "%d timmar" - -#: src/Dialogs.vala:1170 -msgid "1 day" -msgstr "Ett dygn" - -#: src/Dialogs.vala:1317 src/Resources.vala:232 +#: src/Dialogs.vala:663 src/Resources.vala:202 msgid "Rename Event" msgstr "Byt namn på händelse" -#: src/Dialogs.vala:1317 +#: src/Dialogs.vala:663 msgid "Name:" msgstr "Namn:" #. Dialog title -#: src/Dialogs.vala:1328 +#: src/Dialogs.vala:674 msgctxt "Dialog Title" msgid "Edit Title" msgstr "Redigera titel" -#: src/Dialogs.vala:1329 src/Properties.vala:343 +#: src/Dialogs.vala:675 src/Properties.vala:347 msgid "Title:" msgstr "Titel:" #. Dialog title -#: src/Dialogs.vala:1345 src/Resources.vala:308 +#: src/Dialogs.vala:691 src/Resources.vala:278 msgid "Edit Event Comment" msgstr "Redigera händelsekommentar" -#: src/Dialogs.vala:1346 +#: src/Dialogs.vala:692 msgid "Edit Photo/Video Comment" msgstr "Redigera bild/filmkommentar" -#: src/Dialogs.vala:1347 src/Properties.vala:631 +#: src/Dialogs.vala:693 src/Properties.vala:646 msgid "Comment:" msgstr "Kommentar:" -#: src/Dialogs.vala:1363 +#: src/Dialogs.vala:709 msgid "Remove and _Trash File" msgid_plural "Remove and _Trash Files" msgstr[0] "_Flytta filen till papperskorgen" msgstr[1] "_Flytta filerna till papperskorgen" -#: src/Dialogs.vala:1367 +#: src/Dialogs.vala:713 msgid "_Remove From Library" msgstr "_Ta bort från bibliotek" -#: src/Dialogs.vala:1410 +#: src/Dialogs.vala:756 msgid "Revert External Edit?" msgstr "Återställ extern redigering?" -#: src/Dialogs.vala:1410 +#: src/Dialogs.vala:756 msgid "Revert External Edits?" msgstr "Återställ externa redigeringar?" -#: src/Dialogs.vala:1412 +#: src/Dialogs.vala:758 #, c-format msgid "This will destroy all changes made to the external file. Continue?" msgid_plural "" @@ -3603,15 +3559,15 @@ msgstr[1] "" "Det här kommer att förstöra alla ändringar som gjorts i de %d externa " "filerna. Vill du fortsätta?" -#: src/Dialogs.vala:1416 +#: src/Dialogs.vala:762 msgid "Re_vert External Edit" msgstr "Åters_täll externa redigeringar" -#: src/Dialogs.vala:1416 +#: src/Dialogs.vala:762 msgid "Re_vert External Edits" msgstr "Åt_erställ externa redigeringar" -#: src/Dialogs.vala:1437 +#: src/Dialogs.vala:783 #, c-format msgid "This will remove the photo from the library. Continue?" msgid_plural "This will remove %d photos from the library. Continue?" @@ -3620,110 +3576,19 @@ msgstr[0] "" msgstr[1] "" "Det här kommer att ta bort %d bilder från biblioteket. Vill du fortsätta?" -#: src/Dialogs.vala:1444 src/Resources.vala:174 +#: src/Dialogs.vala:790 src/Resources.vala:144 msgid "_Remove" msgstr "_Ta bort" -#: src/Dialogs.vala:1445 +#: src/Dialogs.vala:791 msgid "Remove Photo From Library" msgstr "Ta bort bild från biblioteket" -#: src/Dialogs.vala:1445 +#: src/Dialogs.vala:791 msgid "Remove Photos From Library" msgstr "Ta bort bilder från bibliotek" -#: src/Dialogs.vala:1543 -#, c-format -msgid "%d%%" -msgstr "%d%%" - -#: src/Dialogs.vala:1698 -msgid "AM" -msgstr "AM" - -#: src/Dialogs.vala:1699 -msgid "PM" -msgstr "PM" - -#: src/Dialogs.vala:1700 -msgid "24 Hr" -msgstr "24 timmar" - -#: src/Dialogs.vala:1715 -msgid "_Shift photos/videos by the same amount" -msgstr "_Förskjut bilder/filmer med samma värde" - -#: src/Dialogs.vala:1720 -msgid "Set _all photos/videos to this time" -msgstr "Ställ in _alla bilder/filmer till denna tid" - -#: src/Dialogs.vala:1726 -msgid "_Modify original photo file" -msgid_plural "_Modify original photo files" -msgstr[0] "_Modifiera originalbilden" -msgstr[1] "_Modifiera originalbilderna" - -#: src/Dialogs.vala:1730 -msgid "_Modify original file" -msgid_plural "_Modify original files" -msgstr[0] "Än_dra originalfil" -msgstr[1] "Än_dra originalfilerna" - -#: src/Dialogs.vala:1833 -msgid "Original: " -msgstr "Original: " - -#: src/Dialogs.vala:1834 -msgid "%m/%d/%Y, %H:%M:%S" -msgstr "%Y-%m-%d, %H:%M:%S" - -#: src/Dialogs.vala:1835 -msgid "%m/%d/%Y, %I:%M:%S %p" -msgstr "%Y-%m-%d, %H:%M:%S" - -#: src/Dialogs.vala:1924 -#, c-format -msgid "" -"Exposure time will be shifted forward by\n" -"%d %s, %d %s, %d %s, and %d %s." -msgstr "" -"Exponeringsögonblicket kommer att flyttas framåt med\n" -"%d %s, %d %s, %d %s och %d %s." - -#: src/Dialogs.vala:1925 -#, c-format -msgid "" -"Exposure time will be shifted backward by\n" -"%d %s, %d %s, %d %s, and %d %s." -msgstr "" -"Exponeringsögonblicket kommer att flyttas bakåt med\n" -"%d %s, %d %s, %d %s och %d %s." - -#: src/Dialogs.vala:1927 -msgid "day" -msgid_plural "days" -msgstr[0] "dag" -msgstr[1] "dagar" - -#: src/Dialogs.vala:1928 -msgid "hour" -msgid_plural "hours" -msgstr[0] "timme" -msgstr[1] "timmar" - -#: src/Dialogs.vala:1929 -msgid "minute" -msgid_plural "minutes" -msgstr[0] "minut" -msgstr[1] "minuter" - -#: src/Dialogs.vala:1930 -msgid "second" -msgid_plural "seconds" -msgstr[0] "sekund" -msgstr[1] "sekunder" - -#: src/Dialogs.vala:1974 +#: src/Dialogs.vala:811 #, c-format msgid "" "\n" @@ -3742,91 +3607,13 @@ msgstr[1] "" "\n" "och %d andra." -#: src/Dialogs.vala:1998 src/Dialogs.vala:2025 +#: src/Dialogs.vala:835 src/Dialogs.vala:862 msgid "Tags (separated by commas):" msgstr "Taggar (separerade med kommatecken):" -#: src/Dialogs.vala:2105 -msgid "Welcome!" -msgstr "Välkommen!" - -#: src/Dialogs.vala:2112 -msgid "Welcome to Shotwell!" -msgstr "Välkommen till Shotwell!" - -#: src/Dialogs.vala:2117 -msgid "To get started, import photos in any of these ways:" -msgstr "Importera bilder på något av dessa sätt för att komma igång:" - -#: src/Dialogs.vala:2137 -#, c-format -msgid "Choose File %s Import From Folder" -msgstr "Välj Arkiv %s Importera från mapp" - -#: src/Dialogs.vala:2138 -msgid "Drag and drop photos onto the Shotwell window" -msgstr "Dra och släpp bilder till Shotwell-fönstret" - -#: src/Dialogs.vala:2139 -msgid "Connect a camera to your computer and import" -msgstr "Anslut en kamera till din dator och importera" - -#: src/Dialogs.vala:2150 -#, c-format -msgid "_Import photos from your %s folder" -msgstr "_Importera bilder från din %s-mapp" - -#: src/Dialogs.vala:2157 -msgid "You can also import photos in any of these ways:" -msgstr "Du kan även importera bilder på något av dessa sätt:" - -#: src/Dialogs.vala:2168 -msgid "_Don’t show this message again" -msgstr "Visa _inte detta meddelande igen" - -#: src/Dialogs.vala:2205 -#, c-format -msgid "Import photos from your %s library" -msgstr "Importera bilder från ditt %s-bibliotek" - -#. We're installed system-wide, so use the system help. -#. We're being run from the build directory; we'll have to handle clicks to this -#. link manually ourselves, due to a limitation of help: URIs. -#: src/Dialogs.vala:2389 src/Dialogs.vala:2393 -msgid "(Help)" -msgstr "(Hjälp)" - -#: src/Dialogs.vala:2397 -#, c-format -msgid "Year%sMonth%sDay" -msgstr "År%sMånad%sDag" - -#: src/Dialogs.vala:2399 -#, c-format -msgid "Year%sMonth" -msgstr "År%sMånad" - -#: src/Dialogs.vala:2401 -#, c-format -msgid "Year%sMonth-Day" -msgstr "År%sMånad-Dag" - -#: src/Dialogs.vala:2403 -msgid "Year-Month-Day" -msgstr "År-Månad-Dag" - -#: src/Dialogs.vala:2404 src/editing_tools/EditingTools.vala:760 -msgid "Custom" -msgstr "Anpassad" - -#. Invalid pattern. -#: src/Dialogs.vala:2643 -msgid "Invalid pattern" -msgstr "Ogiltigt mönster" - #. This function is used to determine whether or not files should be copied or linked when imported. #. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. -#: src/Dialogs.vala:2747 +#: src/Dialogs.vala:921 msgid "" "Shotwell can copy the photos into your library folder or it can import them " "without copying." @@ -3834,31 +3621,31 @@ msgstr "" "Shotwell kan kopiera bilderna till din biblioteksmapp eller importera dem " "utan att kopiera dem." -#: src/Dialogs.vala:2752 +#: src/Dialogs.vala:926 msgid "Co_py Photos" msgstr "Ko_piera bilder" -#: src/Dialogs.vala:2753 +#: src/Dialogs.vala:927 msgid "_Import in Place" msgstr "_Importera på plats" -#: src/Dialogs.vala:2754 +#: src/Dialogs.vala:928 msgid "Import to Library" msgstr "Importera till biblioteket" -#: src/Dialogs.vala:2764 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:938 src/PhotoPage.vala:2897 msgid "Remove From Library" msgstr "Ta bort från biblioteket" -#: src/Dialogs.vala:2765 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:939 src/PhotoPage.vala:2897 msgid "Removing Photo From Library" msgstr "Tar bort bild från bibliotek" -#: src/Dialogs.vala:2765 +#: src/Dialogs.vala:939 msgid "Removing Photos From Library" msgstr "Tar bort bilder från bibliotek" -#: src/Dialogs.vala:2779 +#: src/Dialogs.vala:953 #, c-format msgid "" "This will remove the photo/video from your Shotwell library. Would you also " @@ -3881,7 +3668,7 @@ msgstr[1] "" "\n" "Den här åtgärden kan inte ångras." -#: src/Dialogs.vala:2783 +#: src/Dialogs.vala:957 #, c-format msgid "" "This will remove the video from your Shotwell library. Would you also like " @@ -3904,7 +3691,7 @@ msgstr[1] "" "\n" "Den här åtgärd kan inte ångras." -#: src/Dialogs.vala:2787 +#: src/Dialogs.vala:961 #, c-format msgid "" "This will remove the photo from your Shotwell library. Would you also like " @@ -3927,7 +3714,7 @@ msgstr[1] "" "\n" "Den här åtgärden kan inte ångras." -#: src/Dialogs.vala:2819 +#: src/Dialogs.vala:993 #, c-format msgid "" "The photo or video cannot be moved to your desktop trash. Delete this file?" @@ -3941,7 +3728,7 @@ msgstr[1] "" "dessa filer direkt?" #. Alert the user that the files were not removed. -#: src/Dialogs.vala:2836 +#: src/Dialogs.vala:1010 #, c-format msgid "The photo or video cannot be deleted." msgid_plural "%d photos/videos cannot be deleted." @@ -3980,7 +3767,8 @@ msgstr "" msgid "Unable open photo %s. Sorry." msgstr "Kunde inte öppna bilden %s." -#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:176 ui/direct.ui:8 +#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:146 ui/direct.ui:8 +#: ui/textentrydialog.ui:33 msgid "_Save" msgstr "_Spara" @@ -4012,36 +3800,262 @@ msgstr "Spara som" msgid "Unable to monitor %s: Not a directory (%s)" msgstr "Kunde inte övervaka %s: Det är inte en mapp (%s)" -#: src/editing_tools/EditingTools.vala:644 -msgid "Return to current photo dimensions" -msgstr "Återgå till befintliga bilddimensioner" - -#: src/editing_tools/EditingTools.vala:647 -msgid "Set the crop for this photo" -msgstr "Ställ in beskärningen för den här bilden" +#: src/dialogs/AdjustDateTimeDialog.vala:78 +msgid "AM" +msgstr "AM" -#: src/editing_tools/EditingTools.vala:659 -msgid "Pivot the crop rectangle between portrait and landscape orientations" -msgstr "Växla mellan porträtt- och landskapsläge" +#: src/dialogs/AdjustDateTimeDialog.vala:79 +msgid "PM" +msgstr "PM" -#: src/editing_tools/EditingTools.vala:732 -msgid "Unconstrained" -msgstr "Obegränsad" +#: src/dialogs/AdjustDateTimeDialog.vala:80 +msgid "24 Hr" +msgstr "24 timmar" -#: src/editing_tools/EditingTools.vala:733 -msgid "Square" -msgstr "Kvadrat" +#: src/dialogs/AdjustDateTimeDialog.vala:95 +msgid "_Shift photos/videos by the same amount" +msgstr "_Förskjut bilder/filmer med samma värde" -#: src/editing_tools/EditingTools.vala:734 -msgid "Screen" -msgstr "Skärm" +#: src/dialogs/AdjustDateTimeDialog.vala:100 +msgid "Set _all photos/videos to this time" +msgstr "Ställ in _alla bilder/filmer till denna tid" -#: src/editing_tools/EditingTools.vala:736 -#: src/editing_tools/EditingTools.vala:739 -#: src/editing_tools/EditingTools.vala:749 -#: src/editing_tools/EditingTools.vala:759 -msgid "-" -msgstr "-" +#: src/dialogs/AdjustDateTimeDialog.vala:106 +msgid "_Modify original photo file" +msgid_plural "_Modify original photo files" +msgstr[0] "_Modifiera originalbilden" +msgstr[1] "_Modifiera originalbilderna" + +#: src/dialogs/AdjustDateTimeDialog.vala:110 +msgid "_Modify original file" +msgid_plural "_Modify original files" +msgstr[0] "Än_dra originalfil" +msgstr[1] "Än_dra originalfilerna" + +#: src/dialogs/AdjustDateTimeDialog.vala:213 +msgid "Original: " +msgstr "Original: " + +#: src/dialogs/AdjustDateTimeDialog.vala:214 +msgid "%m/%d/%Y, %H:%M:%S" +msgstr "%Y-%m-%d, %H:%M:%S" + +#: src/dialogs/AdjustDateTimeDialog.vala:215 +msgid "%m/%d/%Y, %I:%M:%S %p" +msgstr "%Y-%m-%d, %H:%M:%S" + +#: src/dialogs/AdjustDateTimeDialog.vala:306 +#, c-format +msgid "" +"Exposure time will be shifted forward by\n" +"%d %s, %d %s, %d %s, and %d %s." +msgstr "" +"Exponeringsögonblicket kommer att flyttas framåt med\n" +"%d %s, %d %s, %d %s och %d %s." + +#: src/dialogs/AdjustDateTimeDialog.vala:307 +#, c-format +msgid "" +"Exposure time will be shifted backward by\n" +"%d %s, %d %s, %d %s, and %d %s." +msgstr "" +"Exponeringsögonblicket kommer att flyttas bakåt med\n" +"%d %s, %d %s, %d %s och %d %s." + +#: src/dialogs/AdjustDateTimeDialog.vala:309 +msgid "day" +msgid_plural "days" +msgstr[0] "dag" +msgstr[1] "dagar" + +#: src/dialogs/AdjustDateTimeDialog.vala:310 +msgid "hour" +msgid_plural "hours" +msgstr[0] "timme" +msgstr[1] "timmar" + +#: src/dialogs/AdjustDateTimeDialog.vala:311 +msgid "minute" +msgid_plural "minutes" +msgstr[0] "minut" +msgstr[1] "minuter" + +#: src/dialogs/AdjustDateTimeDialog.vala:312 +msgid "second" +msgid_plural "seconds" +msgstr[0] "sekund" +msgstr[1] "sekunder" + +#. "Unmodified" and "Current," though they appear in the "Format:" popup menu, really +#. aren't formats so much as they are operating modes that determine specific formats. +#. Hereafter we'll refer to these as "special formats." +#: src/dialogs/ExportDialog.vala:15 +msgid "Unmodified" +msgstr "Oförändrad" + +#: src/dialogs/ExportDialog.vala:16 +msgid "Current" +msgstr "Aktuellt" + +#. layout controls +#: src/dialogs/ExportDialog.vala:90 +msgid "_Format:" +msgstr "_Format:" + +#: src/dialogs/ExportDialog.vala:93 +msgid "_Quality:" +msgstr "_Kvalitet:" + +#: src/dialogs/ExportDialog.vala:96 +msgid "_Scaling constraint:" +msgstr "_Skalningsbegränsning:" + +#: src/dialogs/ExportDialog.vala:99 +msgid "_Pixels:" +msgstr "_Bildpunkter:" + +#: src/dialogs/ExportDialog.vala:103 +msgid "Export _metadata:" +msgstr "Exportera _metadata:" + +#. We're installed system-wide, so use the system help. +#. We're being run from the build directory; we'll have to handle clicks to this +#. link manually ourselves, due to a limitation of help: URIs. +#: src/dialogs/Preferences.vala:108 src/dialogs/Preferences.vala:112 +msgid "(Help)" +msgstr "(Hjälp)" + +#: src/dialogs/Preferences.vala:116 +#, c-format +msgid "Year%sMonth%sDay" +msgstr "År%sMånad%sDag" + +#: src/dialogs/Preferences.vala:118 +#, c-format +msgid "Year%sMonth" +msgstr "År%sMånad" + +#: src/dialogs/Preferences.vala:120 +#, c-format +msgid "Year%sMonth-Day" +msgstr "År%sMånad-Dag" + +#: src/dialogs/Preferences.vala:122 +msgid "Year-Month-Day" +msgstr "År-Månad-Dag" + +#: src/dialogs/Preferences.vala:123 src/editing_tools/EditingTools.vala:760 +msgid "Custom" +msgstr "Anpassad" + +#. Invalid pattern. +#: src/dialogs/Preferences.vala:351 +msgid "Invalid pattern" +msgstr "Ogiltigt mönster" + +#: src/dialogs/ProgressDialog.vala:97 +#, c-format +msgid "%d%%" +msgstr "%d%%" + +#: src/dialogs/SetBackgroundSlideshow.vala:49 +#, c-format +msgid "%d second" +msgid_plural "%d seconds" +msgstr[0] "%d sekund" +msgstr[1] "%d sekunder" + +#: src/dialogs/SetBackgroundSlideshow.vala:52 +#, c-format +msgid "%d minute" +msgid_plural "%d minutes" +msgstr[0] "%d minut" +msgstr[1] "%d minuter" + +#: src/dialogs/SetBackgroundSlideshow.vala:56 +#, c-format +msgid "%d hour" +msgid_plural "%d hours" +msgstr[0] "%d timme" +msgstr[1] "%d timmar" + +#: src/dialogs/SetBackgroundSlideshow.vala:59 +msgid "1 day" +msgstr "Ett dygn" + +#: src/dialogs/WelcomeDialog.vala:35 +msgid "Welcome!" +msgstr "Välkommen!" + +#: src/dialogs/WelcomeDialog.vala:42 +msgid "Welcome to Shotwell!" +msgstr "Välkommen till Shotwell!" + +#: src/dialogs/WelcomeDialog.vala:47 +msgid "To get started, import photos in any of these ways:" +msgstr "Importera bilder på något av dessa sätt för att komma igång:" + +#: src/dialogs/WelcomeDialog.vala:67 +#, c-format +msgid "Choose File %s Import From Folder" +msgstr "Välj Arkiv %s Importera från mapp" + +#: src/dialogs/WelcomeDialog.vala:68 +msgid "Drag and drop photos onto the Shotwell window" +msgstr "Dra och släpp bilder till Shotwell-fönstret" + +#: src/dialogs/WelcomeDialog.vala:69 +msgid "Connect a camera to your computer and import" +msgstr "Anslut en kamera till din dator och importera" + +#: src/dialogs/WelcomeDialog.vala:80 +#, c-format +msgid "_Import photos from your %s folder" +msgstr "_Importera bilder från din %s-mapp" + +#: src/dialogs/WelcomeDialog.vala:87 +msgid "You can also import photos in any of these ways:" +msgstr "Du kan även importera bilder på något av dessa sätt:" + +#: src/dialogs/WelcomeDialog.vala:98 +msgid "_Don’t show this message again" +msgstr "Visa _inte detta meddelande igen" + +#: src/dialogs/WelcomeDialog.vala:135 +#, c-format +msgid "Import photos from your %s library" +msgstr "Importera bilder från ditt %s-bibliotek" + +#: src/editing_tools/EditingTools.vala:644 +msgid "Return to current photo dimensions" +msgstr "Återgå till befintliga bilddimensioner" + +#: src/editing_tools/EditingTools.vala:647 +msgid "Set the crop for this photo" +msgstr "Ställ in beskärningen för den här bilden" + +#: src/editing_tools/EditingTools.vala:659 +msgid "Pivot the crop rectangle between portrait and landscape orientations" +msgstr "Växla mellan porträtt- och landskapsläge" + +#: src/editing_tools/EditingTools.vala:732 +msgid "Unconstrained" +msgstr "Obegränsad" + +#: src/editing_tools/EditingTools.vala:733 +msgid "Square" +msgstr "Kvadrat" + +#: src/editing_tools/EditingTools.vala:734 +msgid "Screen" +msgstr "Skärm" + +#: src/editing_tools/EditingTools.vala:736 +#: src/editing_tools/EditingTools.vala:739 +#: src/editing_tools/EditingTools.vala:749 +#: src/editing_tools/EditingTools.vala:759 +msgid "-" +msgstr "-" #: src/editing_tools/EditingTools.vala:737 msgid "SD Video (4 ∶ 3)" @@ -4123,7 +4137,7 @@ msgstr "30 × 40 cm" msgid "A3 (297 × 420 mm)" msgstr "A3 (297 × 420 mm)" -#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:398 +#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:402 msgid "Size:" msgstr "Storlek:" @@ -4141,8 +4155,8 @@ msgid "_Reset" msgstr "Åt_erställ" #. fit both on the top line, emit and move on -#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:439 -#: src/Properties.vala:443 src/Properties.vala:450 +#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:443 +#: src/Properties.vala:447 src/Properties.vala:454 msgid "Exposure:" msgstr "Exponering:" @@ -4166,47 +4180,49 @@ msgstr "Färgtemperatur:" msgid "Shadows:" msgstr "Skuggor:" -#: src/editing_tools/EditingTools.vala:2285 +#. FIXME: Hack to make the slider the same length as the other. Find out why it is aligned +#. Differently (probably because it only has positive values) +#: src/editing_tools/EditingTools.vala:2287 msgid "Highlights:" msgstr "Höjdpunkter:" -#: src/editing_tools/EditingTools.vala:2341 +#: src/editing_tools/EditingTools.vala:2344 msgid "Reset Colors" msgstr "Återställ färger" -#: src/editing_tools/EditingTools.vala:2341 +#: src/editing_tools/EditingTools.vala:2344 msgid "Reset all color adjustments to original" msgstr "Återställ alla färgjusteringar till de ursprungliga värdena" -#: src/editing_tools/EditingTools.vala:2700 +#: src/editing_tools/EditingTools.vala:2703 msgid "Temperature" msgstr "Färgtemperatur" -#: src/editing_tools/EditingTools.vala:2712 +#: src/editing_tools/EditingTools.vala:2715 msgid "Tint" msgstr "Färgton" -#: src/editing_tools/EditingTools.vala:2724 +#: src/editing_tools/EditingTools.vala:2727 msgid "Contrast" msgstr "Kontrast" -#: src/editing_tools/EditingTools.vala:2738 +#: src/editing_tools/EditingTools.vala:2741 msgid "Saturation" msgstr "Mättnad" -#: src/editing_tools/EditingTools.vala:2751 +#: src/editing_tools/EditingTools.vala:2754 msgid "Exposure" msgstr "Exponering" -#: src/editing_tools/EditingTools.vala:2764 +#: src/editing_tools/EditingTools.vala:2767 msgid "Shadows" msgstr "Skuggor" -#: src/editing_tools/EditingTools.vala:2777 +#: src/editing_tools/EditingTools.vala:2780 msgid "Highlights" msgstr "Höjdpunkter" -#: src/editing_tools/EditingTools.vala:2787 +#: src/editing_tools/EditingTools.vala:2790 msgid "Contrast Expansion" msgstr "Kontrastökning" @@ -4214,7 +4230,7 @@ msgstr "Kontrastökning" msgid "Angle:" msgstr "Vinkel:" -#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:203 +#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:173 #: ui/direct.ui:144 ui/photo.ui:233 msgid "_Straighten" msgstr "_Räta ut" @@ -4226,14 +4242,14 @@ msgid_plural "%d Photos/Videos" msgstr[0] "%d bild/film" msgstr[1] "%d bilder/filmer" -#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:358 +#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:362 #, c-format msgid "%d Video" msgid_plural "%d Videos" msgstr[0] "%d film" msgstr[1] "%d filmer" -#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:356 +#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:360 #, c-format msgid "%d Photo" msgid_plural "%d Photos" @@ -4312,6 +4328,69 @@ msgstr "Ersätt _alla" msgid "Export" msgstr "Exportera" +#: src/faces/FacesBranch.vala:89 src/Resources.vala:305 src/Resources.vala:306 +#: ui/faces.ui:403 +msgid "Faces" +msgstr "Ansikten" + +#: src/faces/FacesTool.vala:115 +msgid "Detect faces…" +msgstr "Upptäck ansikten…" + +#: src/faces/FacesTool.vala:140 +msgid "Detect faces on this photo" +msgstr "Upptäck ansikten i den här bilden" + +#: src/faces/FacesTool.vala:142 +msgid "Cancel face detection" +msgstr "Avbryt ansiktsupptäckt" + +#: src/faces/FacesTool.vala:146 +msgid "Close the Faces tool without saving changes" +msgstr "Stäng verktyget Ansikten utan att spara ändringar" + +#: src/faces/FacesTool.vala:153 src/faces/FacesTool.vala:185 +msgid "Click and drag to tag a face" +msgstr "Klicka och dra för att tagga ett ansikte" + +#: src/faces/FacesTool.vala:180 +#, c-format +msgid "Click to edit face %s" +msgstr "Klicka för att redigera ansiktet %s" + +#: src/faces/FacesTool.vala:189 +msgid "Stop dragging to add your face and name it." +msgstr "Sluta dra för att lägga till ditt ansikte och namnge det." + +#: src/faces/FacesTool.vala:193 +msgid "Type a name for this face, then press Enter" +msgstr "Mata in ett namn för detta ansikte, tryck sedan Retur" + +#: src/faces/FacesTool.vala:197 +msgid "Move or modify the face shape or name and press Enter" +msgstr "Flytta eller ändra ansiktsformen eller namnet och tryck Retur" + +#: src/faces/FacesTool.vala:201 +msgid "Detecting faces" +msgstr "Upptäcker ansikten" + +#: src/faces/FacesTool.vala:212 +msgid "If you don’t set the name of unknown faces they won’t be saved." +msgstr "" +"Om du inte ställer in namnet för okända ansikten kommer de inte att sparas." + +#: src/faces/FacesTool.vala:233 +msgid "Save changes and close the Faces tool" +msgstr "Spara ändringar och stäng verktyget Ansikten" + +#: src/faces/FacesTool.vala:235 +msgid "No changes to save" +msgstr "Inga ändringar att spara" + +#: src/faces/FacesTool.vala:956 +msgid "Error trying to spawn face detection program:\n" +msgstr "Fel vid försök att starta program för ansiktsupptäckt:\n" + #: src/folders/FoldersBranch.vala:144 msgid "Folders" msgstr "Mappar" @@ -4320,8 +4399,16 @@ msgstr "Mappar" msgid "Browse the library’s folder structure" msgstr "Bläddra genom bibliotekets mappstruktur" -#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1098 -#: src/SearchFilter.vala:1099 +#: src/import-roll/ImportRollBranch.vala:43 +msgid "Imports" +msgstr "Importer" + +#: src/import-roll/ImportRollBranch.vala:43 +msgid "Browse the library’s import history" +msgstr "Bläddra genom bibliotekets importhistorik" + +#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1124 +#: src/SearchFilter.vala:1125 msgid "Flagged" msgstr "Flaggade" @@ -4343,7 +4430,7 @@ msgid "Last Import" msgstr "Senaste import" #: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 -#: ui/preferences_dialog.ui:512 +#: ui/preferences_dialog.ui:465 msgid "Library" msgstr "Bibliotek" @@ -4351,27 +4438,27 @@ msgstr "Bibliotek" msgid "Organize and browse your photos" msgstr "Organisera och visa dina bilder" -#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1079 +#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1105 msgid "Photos" msgstr "Bilder" -#: src/library/LibraryWindow.vala:508 +#: src/library/LibraryWindow.vala:526 msgid "Import From Folder" msgstr "Importera från mapp" -#: src/library/LibraryWindow.vala:515 +#: src/library/LibraryWindow.vala:533 msgid "Recurse Into Subfolders" msgstr "Gå rekursivt in i undermappar" -#: src/library/LibraryWindow.vala:583 ui/trash.ui:288 +#: src/library/LibraryWindow.vala:601 ui/trash.ui:288 msgid "Empty Trash" msgstr "Töm papperskorgen" -#: src/library/LibraryWindow.vala:583 +#: src/library/LibraryWindow.vala:601 msgid "Emptying Trash…" msgstr "Tömmer papperskorgen…" -#: src/library/LibraryWindow.vala:779 +#: src/library/LibraryWindow.vala:780 #, c-format msgid "" "Shotwell is configured to import photos to your home directory.\n" @@ -4384,33 +4471,33 @@ msgstr "" "inställningar.\n" "Vill du fortsätta att importera bilder?" -#: src/library/LibraryWindow.vala:782 ui/preferences_dialog.ui:142 +#: src/library/LibraryWindow.vala:783 ui/preferences_dialog.ui:86 msgid "Library Location" msgstr "Biblioteksplats" #. TODO: Specify which directory/file. -#: src/library/LibraryWindow.vala:795 +#: src/library/LibraryWindow.vala:796 msgid "Photos cannot be imported from this directory." msgstr "Bilder kan inte importeras från denna mapp." -#: src/library/LibraryWindow.vala:1075 +#: src/library/LibraryWindow.vala:1076 #, c-format msgid "%s (%d%%)" msgstr "%s (%d%%)" -#: src/library/LibraryWindow.vala:1119 src/library/LibraryWindow.vala:1130 +#: src/library/LibraryWindow.vala:1120 src/library/LibraryWindow.vala:1131 msgid "Updating library…" msgstr "Uppdaterar biblioteket…" -#: src/library/LibraryWindow.vala:1136 +#: src/library/LibraryWindow.vala:1137 msgid "Preparing to auto-import photos…" msgstr "Förbereder automatisk import av bilder…" -#: src/library/LibraryWindow.vala:1141 +#: src/library/LibraryWindow.vala:1142 msgid "Auto-importing photos…" msgstr "Importerar bilder automatiskt…" -#: src/library/LibraryWindow.vala:1149 +#: src/library/LibraryWindow.vala:1150 msgid "Writing metadata to files…" msgstr "Skriver metadata till filer…" @@ -4430,7 +4517,7 @@ msgstr "Papperskorg" msgid "Trash is empty" msgstr "Papperskorgen är tom" -#: src/library/TrashPage.vala:110 +#: src/library/TrashPage.vala:110 ui/faces.ui:469 msgid "Delete" msgstr "Radera" @@ -4478,40 +4565,40 @@ msgstr "" msgid "Unknown error attempting to verify Shotwell’s database: %s" msgstr "Okänt fel vid försök att verifiera Shotwells databas: %s" -#: src/main.vala:104 +#: src/main.vala:108 msgid "Loading Shotwell" msgstr "Läser in Shotwell" -#: src/main.vala:303 +#: src/main.vala:320 msgid "Path to Shotwell’s private data" msgstr "Sökväg till Shotwells privata data" -#: src/main.vala:303 +#: src/main.vala:320 msgid "DIRECTORY" msgstr "KATALOG" -#: src/main.vala:307 +#: src/main.vala:324 msgid "Do not monitor library directory at runtime for changes" msgstr "Sök inte efter ändringar i biblioteket medan programmet används" -#: src/main.vala:311 +#: src/main.vala:328 msgid "Don’t display startup progress meter" msgstr "Visa inte hur uppstarten framskrider" -#: src/main.vala:315 +#: src/main.vala:332 msgid "Show the application’s version" msgstr "Visa programversion" -#: src/main.vala:319 +#: src/main.vala:336 msgid "Start the application in fullscreen mode" msgstr "Starta programmet i helskärmsläge" #. init GTK (valac has already called g_threads_init()) -#: src/main.vala:356 +#: src/main.vala:373 msgid "[FILE]" msgstr "[FIL]" -#: src/main.vala:360 +#: src/main.vala:380 #, c-format msgid "Run “%s --help” to see a full list of available command line options.\n" msgstr "" @@ -4523,11 +4610,11 @@ msgstr "" msgid "Unable to process monitoring updates: %s" msgstr "Kunde inte behandla övervakningsuppdateringar: %s" -#: src/MediaPage.vala:158 +#: src/MediaPage.vala:76 msgid "Adjust the size of the thumbnails" msgstr "Justera storleken på miniatyrbilderna" -#: src/MediaPage.vala:502 +#: src/MediaPage.vala:419 #, c-format msgid "" "Shotwell was unable to play the selected video:\n" @@ -4536,34 +4623,34 @@ msgstr "" "Shotwell kunde inte spela upp den markerade filmen:\n" "%s" -#: src/Page.vala:1327 +#: src/Page.vala:1324 msgid "No photos/videos" msgstr "Inga bilder eller filmer" -#: src/Page.vala:1331 +#: src/Page.vala:1328 msgid "No photos/videos found which match the current filter" msgstr "Inga bilder/videor hittades som matchar nuvarande filter" -#: src/Page.vala:2644 +#: src/Page.vala:2641 msgid "Photos cannot be exported to this directory." msgstr "Bilderna kan inte exporteras till denna mapp." #. previous button -#: src/PhotoPage.vala:538 +#: src/PhotoPage.vala:550 msgid "Previous photo" msgstr "Föregående bild" #. next button -#: src/PhotoPage.vala:544 +#: src/PhotoPage.vala:556 msgid "Next photo" msgstr "Nästa bild" -#: src/PhotoPage.vala:1850 +#: src/PhotoPage.vala:1862 #, c-format msgid "Photo source file missing: %s" msgstr "Källfilen för bilden saknas: %s" -#: src/PhotoPage.vala:3018 +#: src/PhotoPage.vala:3041 #, c-format msgid "Unable to export %s: %s" msgstr "Kunde inte exportera %s: %s" @@ -4572,6 +4659,10 @@ msgstr "Kunde inte exportera %s: %s" msgid "BMP" msgstr "BMP" +#: src/photos/GifSupport.vala:32 +msgid "GIF" +msgstr "GIF" + #: src/photos/JfifSupport.vala:84 msgid "JPEG" msgstr "JPEG" @@ -4659,19 +4750,19 @@ msgstr "" "\n" "%s" -#: src/Properties.vala:87 +#: src/Properties.vala:98 msgid "Today" msgstr "Idag" -#: src/Properties.vala:89 +#: src/Properties.vala:100 msgid "Yesterday" msgstr "Igår" -#: src/Properties.vala:346 +#: src/Properties.vala:350 msgid "Items:" msgstr "Objekt:" -#: src/Properties.vala:349 +#: src/Properties.vala:353 #, c-format msgid "%d Event" msgid_plural "%d Events" @@ -4679,107 +4770,103 @@ msgstr[0] "%d händelse" msgstr[1] "%d händelser" #. display only one date if start and end are the same -#: src/Properties.vala:380 +#: src/Properties.vala:384 msgid "Date:" msgstr "Datum:" #. display only one time if start and end are the same -#: src/Properties.vala:384 +#: src/Properties.vala:388 msgid "Time:" msgstr "Tid:" #. display time range #. display date range -#: src/Properties.vala:387 src/Properties.vala:392 +#: src/Properties.vala:391 src/Properties.vala:396 msgid "From:" msgstr "Från:" -#: src/Properties.vala:388 src/Properties.vala:393 +#: src/Properties.vala:392 src/Properties.vala:397 msgid "To:" msgstr "Till:" -#: src/Properties.vala:407 +#: src/Properties.vala:411 msgid "Duration:" msgstr "Speltid:" -#: src/Properties.vala:407 +#: src/Properties.vala:411 #, c-format msgid "%.1f seconds" msgstr "%.1f sekunder" -#: src/Properties.vala:411 +#: src/Properties.vala:415 msgid "Developer:" msgstr "Framkallare:" #. nothing special to be done for now for Events -#: src/Properties.vala:586 +#: src/Properties.vala:593 msgid "Location:" msgstr "Plats:" -#: src/Properties.vala:589 +#: src/Properties.vala:596 msgid "File size:" msgstr "Filstorlek:" -#: src/Properties.vala:593 +#: src/Properties.vala:600 msgid "Current Development:" msgstr "Nuvarande framkallare:" -#: src/Properties.vala:595 +#: src/Properties.vala:602 msgid "Original dimensions:" msgstr "Ursprungsstorlek:" -#: src/Properties.vala:598 +#: src/Properties.vala:605 msgid "Camera make:" msgstr "Kameratillverkare:" -#: src/Properties.vala:601 +#: src/Properties.vala:608 msgid "Camera model:" msgstr "Kameramodell:" -#: src/Properties.vala:604 +#: src/Properties.vala:611 msgid "Flash:" msgstr "Blixt:" -#: src/Properties.vala:606 +#: src/Properties.vala:613 msgid "Focal length:" msgstr "Brännvidd:" -#: src/Properties.vala:609 +#: src/Properties.vala:616 msgid "Exposure date:" msgstr "Exponeringsögonblick:" -#: src/Properties.vala:612 +#: src/Properties.vala:619 msgid "Exposure time:" msgstr "Exponeringstid:" -#: src/Properties.vala:615 +#: src/Properties.vala:622 msgid "Exposure bias:" msgstr "Exponeringskompensation:" -#: src/Properties.vala:617 +#: src/Properties.vala:632 msgid "GPS latitude:" msgstr "GPS-latitud:" -#: src/Properties.vala:620 +#: src/Properties.vala:635 msgid "GPS longitude:" msgstr "GPS-longitud:" -#: src/Properties.vala:623 +#: src/Properties.vala:638 msgid "Artist:" msgstr "Konstnär:" -#: src/Properties.vala:625 +#: src/Properties.vala:640 msgid "Copyright:" msgstr "Upphovsrätt:" -#: src/Properties.vala:627 +#: src/Properties.vala:642 msgid "Software:" msgstr "Program:" -#: src/Properties.vala:644 -msgid "Extended Information" -msgstr "Utökad information" - #: src/publishing/PublishingPluginHost.vala:11 msgid "Preparing for upload" msgstr "Förbereder att skicka upp" @@ -4827,37 +4914,37 @@ msgstr "Hämtar kontoinformation…" msgid "Logging in…" msgstr "Loggar in…" -#: src/publishing/PublishingUI.vala:195 +#: src/publishing/PublishingUI.vala:197 msgid "Publish Photos" msgstr "Publicera bilder" -#: src/publishing/PublishingUI.vala:196 +#: src/publishing/PublishingUI.vala:198 msgid "Publish photos _to:" msgstr "Publicera bilder _till:" -#: src/publishing/PublishingUI.vala:198 +#: src/publishing/PublishingUI.vala:200 msgid "Publish Videos" msgstr "Publicera filmer" -#: src/publishing/PublishingUI.vala:199 +#: src/publishing/PublishingUI.vala:201 msgid "Publish videos _to" msgstr "Publicera filmer _till" -#: src/publishing/PublishingUI.vala:201 +#: src/publishing/PublishingUI.vala:203 msgid "Publish Photos and Videos" msgstr "Publicera bilder och filmer" -#: src/publishing/PublishingUI.vala:202 +#: src/publishing/PublishingUI.vala:204 msgid "Publish photos and videos _to" msgstr "Publicera bilder och filmer _till" #. There are no enabled publishing services that accept this media type, #. warn the user. -#: src/publishing/PublishingUI.vala:412 +#: src/publishing/PublishingUI.vala:414 msgid "Unable to publish" msgstr "Kunde inte publicera" -#: src/publishing/PublishingUI.vala:413 +#: src/publishing/PublishingUI.vala:415 #, c-format msgid "" "Shotwell cannot publish the selected items because you do not have a " @@ -4874,733 +4961,802 @@ msgstr "" msgid "Publishing" msgstr "Publicering" -#: src/Resources.vala:141 src/Resources.vala:146 ui/collection.ui:151 +#: src/Resources.vala:111 src/Resources.vala:116 ui/collection.ui:151 msgid "Rotate" msgstr "Rotera" -#: src/Resources.vala:142 +#: src/Resources.vala:112 msgid "Rotate Right" msgstr "Rotera åt höger" -#: src/Resources.vala:143 ui/collection.ui:148 +#: src/Resources.vala:113 ui/collection.ui:148 msgid "Rotate the photos right (press Ctrl to rotate left)" msgstr "Rotera bilderna åt höger (tryck Ctrl för att rotera åt vänster)" -#: src/Resources.vala:147 +#: src/Resources.vala:117 msgid "Rotate Left" msgstr "Rotera åt vänster" -#: src/Resources.vala:148 +#: src/Resources.vala:118 msgid "Rotate the photos left" msgstr "Rotera bilderna åt vänster" -#: src/Resources.vala:151 +#: src/Resources.vala:121 msgid "Flip Horizontally" msgstr "Vänd horisontellt" -#: src/Resources.vala:154 +#: src/Resources.vala:124 msgid "Flip Vertically" msgstr "Vänd vertikalt" -#: src/Resources.vala:156 ui/direct.ui:191 ui/events_directory.ui:168 -#: ui/event.ui:438 ui/import_queue.ui:83 ui/import.ui:201 ui/media.ui:421 -#: ui/offline.ui:198 ui/photo.ui:404 ui/tags.ui:440 ui/trash.ui:207 +#: src/Resources.vala:126 ui/direct.ui:192 ui/events_directory.ui:168 +#: ui/event.ui:438 ui/faces.ui:448 ui/import_queue.ui:83 ui/import.ui:201 +#: ui/manifest_widget.ui:35 ui/media.ui:421 ui/offline.ui:198 ui/photo.ui:405 +#: ui/tags.ui:440 ui/trash.ui:207 msgid "_About" msgstr "_Om" -#: src/Resources.vala:157 +#: src/Resources.vala:127 msgid "_Apply" msgstr "_Verkställ" -#: src/Resources.vala:160 ui/direct.ui:44 ui/events_directory.ui:32 -#: ui/event.ui:47 ui/import.ui:40 ui/media.ui:47 ui/offline.ui:32 -#: ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 +#: src/Resources.vala:130 ui/direct.ui:44 ui/events_directory.ui:32 +#: ui/event.ui:47 ui/faces.ui:47 ui/import.ui:40 ui/media.ui:47 +#: ui/offline.ui:32 ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 msgid "_Edit" msgstr "_Redigera" -#: src/Resources.vala:161 +#: src/Resources.vala:131 msgid "_Forward" msgstr "_Framåt" -#: src/Resources.vala:162 ui/direct.ui:62 ui/events_directory.ui:125 +#: src/Resources.vala:132 ui/direct.ui:62 ui/events_directory.ui:125 #: ui/photo.ui:173 msgid "Fulls_creen" msgstr "_Helskärm" -#: src/Resources.vala:163 ui/direct.ui:173 ui/direct.ui:176 +#: src/Resources.vala:133 ui/direct.ui:174 ui/direct.ui:177 #: ui/events_directory.ui:150 ui/events_directory.ui:153 ui/event.ui:420 -#: ui/event.ui:423 ui/import_queue.ui:65 ui/import_queue.ui:68 ui/import.ui:183 -#: ui/import.ui:186 ui/media.ui:403 ui/media.ui:406 ui/offline.ui:180 -#: ui/offline.ui:183 ui/photo.ui:386 ui/photo.ui:389 ui/tags.ui:422 -#: ui/tags.ui:425 ui/trash.ui:189 ui/trash.ui:192 +#: ui/event.ui:423 ui/faces.ui:430 ui/faces.ui:433 ui/import_queue.ui:65 +#: ui/import_queue.ui:68 ui/import.ui:183 ui/import.ui:186 ui/media.ui:403 +#: ui/media.ui:406 ui/offline.ui:180 ui/offline.ui:183 ui/photo.ui:387 +#: ui/photo.ui:390 ui/tags.ui:422 ui/tags.ui:425 ui/trash.ui:189 +#: ui/trash.ui:192 msgid "_Help" msgstr "_Hjälp" -#: src/Resources.vala:164 +#: src/Resources.vala:134 msgid "Leave _Fullscreen" msgstr "Avsluta _helskärmsläge" -#: src/Resources.vala:165 src/Resources.vala:364 ui/tags.ui:450 +#: src/Resources.vala:135 src/Resources.vala:343 ui/tags.ui:450 msgid "_New" msgstr "_Ny" -#: src/Resources.vala:166 +#: src/Resources.vala:136 msgid "_Next" msgstr "_Nästa" -#: src/Resources.vala:169 src/Resources.vala:318 ui/events_directory.ui:65 -#: ui/event.ui:93 ui/import.ui:68 ui/media.ui:93 ui/offline.ui:72 -#: ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 +#: src/Resources.vala:139 src/Resources.vala:288 ui/events_directory.ui:65 +#: ui/event.ui:93 ui/faces.ui:93 ui/import.ui:68 ui/media.ui:93 +#: ui/offline.ui:72 ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 msgid "_Preferences" msgstr "_Inställningar" -#: src/Resources.vala:170 +#: src/Resources.vala:140 msgid "_Previous" msgstr "_Föregående" -#: src/Resources.vala:172 ui/direct.ui:37 ui/events_directory.ui:25 -#: ui/event.ui:40 ui/import_queue.ui:31 ui/import.ui:33 ui/media.ui:40 -#: ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 +#: src/Resources.vala:142 ui/direct.ui:37 ui/events_directory.ui:25 +#: ui/event.ui:40 ui/faces.ui:40 ui/import_queue.ui:31 ui/import.ui:33 +#: ui/media.ui:40 ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 msgid "_Quit" msgstr "_Avsluta" -#: src/Resources.vala:173 +#: src/Resources.vala:143 msgid "_Refresh" msgstr "_Uppdatera" -#: src/Resources.vala:175 +#: src/Resources.vala:145 msgid "_Revert" msgstr "_Återställ" -#: src/Resources.vala:177 +#: src/Resources.vala:147 msgid "Save _As" msgstr "_Spara som" -#: src/Resources.vala:178 +#: src/Resources.vala:148 msgid "Sort _Ascending" msgstr "Sortera _stigande" -#: src/Resources.vala:179 +#: src/Resources.vala:149 msgid "Sort _Descending" msgstr "Sortera _fallande" -#: src/Resources.vala:180 +#: src/Resources.vala:150 msgid "_Stop" msgstr "_Stoppa" -#: src/Resources.vala:181 +#: src/Resources.vala:151 msgid "_Undelete" msgstr "_Ångra radering" -#: src/Resources.vala:182 +#: src/Resources.vala:152 msgid "_Normal Size" msgstr "_Normalstorlek" -#: src/Resources.vala:183 +#: src/Resources.vala:153 msgid "Best _Fit" msgstr "_Passa" -#: src/Resources.vala:184 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 -#: ui/photo.ui:144 ui/tags.ui:260 +#: src/Resources.vala:154 ui/direct.ui:69 ui/event.ui:260 ui/faces.ui:260 +#: ui/media.ui:260 ui/photo.ui:144 ui/tags.ui:260 msgid "Zoom _In" msgstr "_Förstora" -#: src/Resources.vala:185 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 -#: ui/photo.ui:149 ui/tags.ui:265 +#: src/Resources.vala:155 ui/direct.ui:74 ui/event.ui:265 ui/faces.ui:265 +#: ui/media.ui:265 ui/photo.ui:149 ui/tags.ui:265 msgid "Zoom _Out" msgstr "_Förminska" -#: src/Resources.vala:188 ui/collection.ui:167 +#: src/Resources.vala:158 ui/collection.ui:167 msgid "Enhance" msgstr "Förbättra" -#: src/Resources.vala:189 ui/collection.ui:164 +#: src/Resources.vala:159 ui/collection.ui:164 msgid "Automatically improve the photo’s appearance" msgstr "Förbättra visningen av bilden automatiskt" -#: src/Resources.vala:192 +#: src/Resources.vala:162 msgid "Copy Color Adjustments" msgstr "Kopiera färgjusteringar" -#: src/Resources.vala:193 +#: src/Resources.vala:163 msgid "Copy the color adjustments applied to the photo" msgstr "Kopiera färgjusteringarna verkställda på bilden" -#: src/Resources.vala:196 +#: src/Resources.vala:166 msgid "Paste Color Adjustments" msgstr "Klistra in färgjusteringar" -#: src/Resources.vala:197 +#: src/Resources.vala:167 msgid "Apply copied color adjustments to the selected photos" msgstr "Verkställ kopierade färgjusteringar till de markerade bilderna" -#: src/Resources.vala:199 ui/direct.ui:139 ui/photo.ui:228 +#: src/Resources.vala:169 ui/direct.ui:139 ui/photo.ui:228 msgid "_Crop" msgstr "_Beskär" -#: src/Resources.vala:200 +#: src/Resources.vala:170 msgid "Crop" msgstr "Beskär" -#: src/Resources.vala:201 +#: src/Resources.vala:171 msgid "Crop the photo’s size" msgstr "Beskär bildstorlek" -#: src/Resources.vala:204 +#: src/Resources.vala:174 msgid "Straighten" msgstr "Räta ut" -#: src/Resources.vala:205 +#: src/Resources.vala:175 msgid "Straighten the photo" msgstr "Räta ut bilden" -#: src/Resources.vala:207 ui/direct.ui:149 ui/photo.ui:238 +#: src/Resources.vala:177 ui/direct.ui:149 ui/photo.ui:238 msgid "_Red-eye" msgstr "_Röda ögon" -#: src/Resources.vala:208 +#: src/Resources.vala:178 msgid "Red-eye" msgstr "Röda ögon" -#: src/Resources.vala:209 +#: src/Resources.vala:179 msgid "Reduce or eliminate any red-eye effects in the photo" msgstr "Minska eller ta bort röda ögon i bilden" -#: src/Resources.vala:211 ui/direct.ui:154 ui/photo.ui:243 +#: src/Resources.vala:181 ui/direct.ui:154 ui/photo.ui:243 msgid "_Adjust" msgstr "_Justera" -#: src/Resources.vala:212 +#: src/Resources.vala:182 msgid "Adjust" msgstr "Justera" -#: src/Resources.vala:213 +#: src/Resources.vala:183 msgid "Adjust the photo’s color and tone" msgstr "Justera bildens färg och ton" -#: src/Resources.vala:216 +#: src/Resources.vala:186 msgid "Revert to Original" msgstr "Återställ till original" -#: src/Resources.vala:218 +#: src/Resources.vala:188 msgid "Revert External E_dits" msgstr "Återställ externa r_edigeringar" -#: src/Resources.vala:219 +#: src/Resources.vala:189 msgid "Revert to the master photo" msgstr "Återställ till huvudbild" -#: src/Resources.vala:222 +#: src/Resources.vala:192 msgid "Set selected image to be the new desktop background" msgstr "Använd bilden som ny skrivbordsbakgrund" -#: src/Resources.vala:223 +#: src/Resources.vala:193 msgid "Set as _Desktop Slideshow…" msgstr "Ange som _skrivbordsbildspel…" -#: src/Resources.vala:225 ui/direct.ui:47 ui/events_directory.ui:35 -#: ui/event.ui:50 ui/import.ui:43 ui/media.ui:50 ui/offline.ui:35 -#: ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 +#: src/Resources.vala:195 ui/direct.ui:47 ui/events_directory.ui:35 +#: ui/event.ui:50 ui/faces.ui:50 ui/import.ui:43 ui/media.ui:50 +#: ui/offline.ui:35 ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 msgid "_Undo" msgstr "_Ångra" -#: src/Resources.vala:226 +#: src/Resources.vala:196 msgid "Undo" msgstr "Ångra" -#: src/Resources.vala:228 ui/direct.ui:52 ui/events_directory.ui:40 -#: ui/event.ui:55 ui/import.ui:48 ui/media.ui:55 ui/offline.ui:40 -#: ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 +#: src/Resources.vala:198 ui/direct.ui:52 ui/events_directory.ui:40 +#: ui/event.ui:55 ui/faces.ui:55 ui/import.ui:48 ui/media.ui:55 +#: ui/offline.ui:40 ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 msgid "_Redo" msgstr "_Gör om" -#: src/Resources.vala:229 +#: src/Resources.vala:199 msgid "Redo" msgstr "Gör om" -#: src/Resources.vala:231 ui/events_directory.ui:139 ui/events_directory.ui:181 +#: src/Resources.vala:201 ui/events_directory.ui:139 ui/events_directory.ui:181 #: ui/event.ui:393 ui/event.ui:588 msgid "Re_name Event…" msgstr "Byt namn på händelse…" -#: src/Resources.vala:234 ui/event.ui:373 ui/event.ui:580 +#: src/Resources.vala:204 ui/event.ui:373 ui/event.ui:580 msgid "Make _Key Photo for Event" msgstr "Gör till _huvudbild för händelsen" -#: src/Resources.vala:235 +#: src/Resources.vala:205 msgid "Make Key Photo for Event" msgstr "Gör till huvudbild för händelsen" -#: src/Resources.vala:237 ui/event.ui:382 ui/media.ui:376 ui/tags.ui:376 +#: src/Resources.vala:207 ui/event.ui:382 ui/faces.ui:376 ui/media.ui:376 +#: ui/tags.ui:376 msgid "_New Event" msgstr "_Ny händelse" -#: src/Resources.vala:238 +#: src/Resources.vala:208 msgid "New Event" msgstr "Ny händelse" -#: src/Resources.vala:240 +#: src/Resources.vala:210 msgid "Move Photos" msgstr "Flytta bilder" -#: src/Resources.vala:241 +#: src/Resources.vala:211 msgid "Move photos to an event" msgstr "Flytta bilder till en händelse" -#: src/Resources.vala:243 ui/events_directory.ui:135 ui/events_directory.ui:177 +#: src/Resources.vala:213 ui/events_directory.ui:135 ui/events_directory.ui:177 msgid "_Merge Events" msgstr "Sa_mmanfoga händelser" -#: src/Resources.vala:244 +#: src/Resources.vala:214 msgid "Merge" msgstr "Sammanfoga" -#: src/Resources.vala:245 +#: src/Resources.vala:215 msgid "Combine events into a single event" msgstr "Lägg samman händelser till en enskild händelse" -#: src/Resources.vala:247 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 -#: ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 ui/tags.ui:286 +#: src/Resources.vala:217 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 +#: ui/faces.ui:286 ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 +#: ui/tags.ui:286 msgid "_Set Rating" msgstr "_Betygsätt" -#: src/Resources.vala:248 +#: src/Resources.vala:218 msgid "Set Rating" msgstr "Betygsätt" -#: src/Resources.vala:249 +#: src/Resources.vala:219 msgid "Change the rating of your photo" msgstr "Ändra betyget för din bild" -#: src/Resources.vala:251 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 -#: ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 ui/tags.ui:326 +#: src/Resources.vala:221 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 +#: ui/faces.ui:326 ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 +#: ui/tags.ui:326 msgid "_Increase" msgstr "_Höj" -#: src/Resources.vala:252 +#: src/Resources.vala:222 msgid "Increase Rating" msgstr "Höj betyg" -#: src/Resources.vala:254 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 -#: ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 ui/tags.ui:331 +#: src/Resources.vala:224 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 +#: ui/faces.ui:331 ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 +#: ui/tags.ui:331 msgid "_Decrease" msgstr "_Sänk" -#: src/Resources.vala:255 +#: src/Resources.vala:225 msgid "Decrease Rating" msgstr "Sänk betyg" -#: src/Resources.vala:257 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 -#: ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 ui/tags.ui:314 +#: src/Resources.vala:227 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 +#: ui/faces.ui:314 ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 +#: ui/tags.ui:314 msgid "_Unrated" msgstr "_Ej betygsatt" -#: src/Resources.vala:258 +#: src/Resources.vala:228 msgid "Unrated" msgstr "Ej betygsatt" -#: src/Resources.vala:259 +#: src/Resources.vala:229 msgid "Rate Unrated" msgstr "Ange som ej betygsatt" -#: src/Resources.vala:260 +#: src/Resources.vala:230 msgid "Setting as unrated" msgstr "Anger som ej betygsatt" -#: src/Resources.vala:261 +#: src/Resources.vala:231 msgid "Remove any ratings" msgstr "Ta bort eventuella betyg" -#: src/Resources.vala:263 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 -#: ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 ui/tags.ui:319 +#: src/Resources.vala:233 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 +#: ui/faces.ui:319 ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 +#: ui/tags.ui:319 msgid "_Rejected" msgstr "_Avvisad" -#: src/Resources.vala:264 +#: src/Resources.vala:234 msgid "Rejected" msgstr "Avvisad" -#: src/Resources.vala:265 +#: src/Resources.vala:235 msgid "Rate Rejected" msgstr "Ange som avvisad" -#: src/Resources.vala:266 +#: src/Resources.vala:236 msgid "Setting as rejected" msgstr "Anger som avvisad" -#: src/Resources.vala:267 +#: src/Resources.vala:237 msgid "Set rating to rejected" msgstr "Ange som avvisad" -#: src/Resources.vala:269 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 -#: ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 ui/trash.ui:162 +#: src/Resources.vala:239 ui/event.ui:196 ui/faces.ui:196 ui/import.ui:156 +#: ui/media.ui:196 ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 +#: ui/trash.ui:162 msgid "Rejected _Only" msgstr "_Enbart avvisade" -#: src/Resources.vala:270 +#: src/Resources.vala:240 msgid "Rejected Only" msgstr "Enbart avvisade" -#: src/Resources.vala:271 +#: src/Resources.vala:241 msgid "Show only rejected photos" msgstr "Visa enbart avvisade bilder" -#: src/Resources.vala:273 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 -#: ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 ui/trash.ui:156 +#: src/Resources.vala:243 ui/event.ui:190 ui/faces.ui:190 ui/import.ui:150 +#: ui/media.ui:190 ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 +#: ui/trash.ui:156 msgid "All + _Rejected" msgstr "Alla + _avvisade" -#: src/Resources.vala:274 +#: src/Resources.vala:244 msgctxt "Tooltip" msgid "Show all photos, including rejected" msgstr "Visa alla bilder, inklusive avvisade" -#: src/Resources.vala:276 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 -#: ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 ui/trash.ui:150 +#: src/Resources.vala:246 ui/event.ui:184 ui/faces.ui:184 ui/import.ui:144 +#: ui/media.ui:184 ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 +#: ui/trash.ui:150 msgid "_All Photos" msgstr "_Alla bilder" #. Button tooltip -#: src/Resources.vala:278 +#: src/Resources.vala:248 msgid "Show all photos" msgstr "Visa alla bilder" -#: src/Resources.vala:280 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 -#: ui/tags.ui:144 +#: src/Resources.vala:250 ui/event.ui:144 ui/faces.ui:144 ui/media.ui:144 +#: ui/photo.ui:120 ui/tags.ui:144 msgid "_Ratings" msgstr "_Betyg" -#: src/Resources.vala:281 +#: src/Resources.vala:251 msgid "Display each photo’s rating" msgstr "Visa betyg för varje bild" -#: src/Resources.vala:283 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 -#: ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 +#: src/Resources.vala:253 ui/event.ui:151 ui/faces.ui:151 ui/import.ui:111 +#: ui/media.ui:151 ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 msgid "_Filter Photos" msgstr "_Filtrera bilder" -#: src/Resources.vala:284 +#: src/Resources.vala:254 msgid "Filter Photos" msgstr "Filtrera bilder" -#: src/Resources.vala:285 +#: src/Resources.vala:255 msgid "Limit the number of photos displayed based on a filter" msgstr "Begränsa antalet bilder som visas baserat på ett filter" -#: src/Resources.vala:288 +#: src/Resources.vala:258 msgid "Duplicate" msgstr "Duplicera" -#: src/Resources.vala:289 +#: src/Resources.vala:259 msgid "Make a duplicate of the photo" msgstr "Gör en kopia av bilden" -#: src/Resources.vala:291 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 -#: ui/tags.ui:17 +#: src/Resources.vala:261 ui/event.ui:17 ui/faces.ui:17 ui/media.ui:17 +#: ui/photo.ui:17 ui/tags.ui:17 msgid "_Export…" msgstr "_Exportera…" -#: src/Resources.vala:293 +#: src/Resources.vala:263 msgid "_Print…" msgstr "_Skriv _ut…" -#: src/Resources.vala:295 +#: src/Resources.vala:265 msgid "Pu_blish…" msgstr "_Publicera…" -#: src/Resources.vala:297 ui/collection.ui:189 +#: src/Resources.vala:267 ui/collection.ui:189 msgid "Publish to various websites" msgstr "Publicera till olika webbplatser" -#: src/Resources.vala:299 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 -#: ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 ui/tags.ui:340 +#: src/Resources.vala:269 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 +#: ui/faces.ui:340 ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 +#: ui/tags.ui:340 msgid "Edit _Title…" msgstr "_Redigera titel…" #. Button label -#: src/Resources.vala:301 +#: src/Resources.vala:271 msgctxt "Button Label" msgid "Edit Title" msgstr "Redigera titel" -#: src/Resources.vala:303 ui/collection.ui:103 ui/events_directory.ui:144 +#: src/Resources.vala:273 ui/collection.ui:103 ui/events_directory.ui:144 #: ui/events_directory.ui:186 ui/event.ui:345 ui/event.ui:398 ui/event.ui:542 -#: ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 ui/tags.ui:345 +#: ui/faces.ui:345 ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 +#: ui/tags.ui:345 msgid "Edit _Comment…" msgstr "Redigera _kommentar…" #. Button label -#: src/Resources.vala:305 +#: src/Resources.vala:275 msgid "Edit Comment" msgstr "Redigera kommentar" -#: src/Resources.vala:307 ui/event.ui:592 +#: src/Resources.vala:277 ui/event.ui:592 msgid "Edit Event _Comment…" msgstr "Redigera _händelsekommentar…" -#: src/Resources.vala:310 ui/direct.ui:167 ui/photo.ui:337 +#: src/Resources.vala:280 ui/direct.ui:167 ui/photo.ui:337 msgid "_Adjust Date and Time…" msgstr "_Justera datum och tid…" -#: src/Resources.vala:311 +#: src/Resources.vala:281 msgid "Adjust Date and Time" msgstr "Justera datum och tid" -#: src/Resources.vala:313 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 -#: ui/media.ui:390 ui/photo.ui:374 ui/tags.ui:390 +#: src/Resources.vala:283 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 +#: ui/faces.ui:390 ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 msgid "Add _Tags…" msgstr "Lägg till _taggar…" -#: src/Resources.vala:314 ui/photo_context.ui:17 +#: src/Resources.vala:284 ui/photo_context.ui:17 msgid "_Add Tags…" msgstr "_Lägg till taggar…" #. Dialog title -#: src/Resources.vala:316 +#: src/Resources.vala:286 msgctxt "Dialog Title" msgid "Add Tags" msgstr "Lägg till taggar" -#: src/Resources.vala:325 ui/photo_context.ui:135 +#: src/Resources.vala:295 ui/photo_context.ui:135 msgid "Send T_o…" msgstr "Skicka t_ill…" -#: src/Resources.vala:327 +#: src/Resources.vala:297 msgid "_Find…" msgstr "_Sök…" -#: src/Resources.vala:328 ui/collection.ui:217 ui/offline.ui:239 +#: src/Resources.vala:298 ui/collection.ui:217 ui/offline.ui:239 #: ui/trash.ui:312 msgid "Find" msgstr "Sök" -#: src/Resources.vala:329 ui/collection.ui:214 ui/offline.ui:236 +#: src/Resources.vala:299 ui/collection.ui:214 ui/offline.ui:236 #: ui/trash.ui:309 msgid "Find an image by typing text that appears in its name or tags" msgstr "" "Sök efter en bild genom att skriva något som finns i dess namn eller taggar" -#: src/Resources.vala:331 +#: src/Resources.vala:301 msgid "_Flag" msgstr "_Flagga" -#: src/Resources.vala:333 +#: src/Resources.vala:303 msgid "Un_flag" msgstr "Flagga _av" -#: src/Resources.vala:336 +#: src/Resources.vala:307 +msgid "Mark faces of people in the photo" +msgstr "Markera ansikten på personer i bilden" + +#: src/Resources.vala:308 +msgid "Modify Faces" +msgstr "Ändra ansikten" + +#: src/Resources.vala:309 +msgid "Delete Face" +msgstr "Ta bort ansikte" + +#: src/Resources.vala:311 src/Resources.vala:353 ui/tags.ui:456 +msgid "_Rename…" +msgstr "_Byt namn…" + +#: src/Resources.vala:315 #, c-format msgid "Unable to launch editor: %s" msgstr "Kunde inte starta redigerare: %s" -#: src/Resources.vala:341 +#: src/Resources.vala:320 #, c-format msgid "Add Tag “%s”" msgstr "Lägg till taggen ”%s”" #. Used when adding two tags to photo(s) -#: src/Resources.vala:344 +#: src/Resources.vala:323 #, c-format msgid "Add Tags “%s” and “%s”" msgstr "Lägg till taggarna ”%s” och ”%s”" #. Undo/Redo command name (in Edit menu) -#: src/Resources.vala:349 +#: src/Resources.vala:328 msgctxt "UndoRedo menu entry" msgid "Add Tags" msgstr "Lägg till taggar" -#: src/Resources.vala:354 +#: src/Resources.vala:333 #, c-format msgid "_Delete Tag “%s”" msgstr "_Ta bort taggen ”%s”" -#: src/Resources.vala:358 +#: src/Resources.vala:337 #, c-format msgid "Delete Tag “%s”" msgstr "Ta bort taggen ”%s”" -#: src/Resources.vala:361 +#: src/Resources.vala:340 msgid "Delete Tag" msgstr "Ta bort tagg" -#: src/Resources.vala:367 +#: src/Resources.vala:346 #, c-format msgid "Re_name Tag “%s”…" msgstr "B_yt namn på taggen ”%s”…" -#: src/Resources.vala:371 +#: src/Resources.vala:350 #, c-format msgid "Rename Tag “%s” to “%s”" msgstr "Byt namn på taggen ”%s” till ”%s”" -#: src/Resources.vala:374 ui/tags.ui:456 -msgid "_Rename…" -msgstr "_Byt namn…" - -#: src/Resources.vala:376 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 -#: ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:379 ui/tags.ui:395 +#: src/Resources.vala:355 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 +#: ui/faces.ui:395 ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 +#: ui/tags.ui:395 msgid "Modif_y Tags…" msgstr "_Ändra taggar…" -#: src/Resources.vala:377 +#: src/Resources.vala:356 msgid "Modify Tags" msgstr "Ändra taggar" -#: src/Resources.vala:380 +#: src/Resources.vala:359 #, c-format msgid "Tag Photo as “%s”" msgid_plural "Tag Photos as “%s”" msgstr[0] "Lägg till taggen ”%s” till bilden" msgstr[1] "Lägg till taggen ”%s” till bilderna" -#: src/Resources.vala:386 +#: src/Resources.vala:365 #, c-format msgid "Tag the selected photo as “%s”" msgid_plural "Tag the selected photos as “%s”" msgstr[0] "Lägg till taggen ”%s” på den markerade bilden" msgstr[1] "Lägg till taggen ”%s” på de markerade bilderna" -#: src/Resources.vala:392 +#: src/Resources.vala:371 #, c-format msgid "Remove Tag “%s” From _Photo" msgid_plural "Remove Tag “%s” From _Photos" msgstr[0] "_Ta bort taggen ”%s” från bilden" msgstr[1] "_Ta bort taggen ”%s” från bilderna" -#: src/Resources.vala:398 +#: src/Resources.vala:377 #, c-format msgid "Remove Tag “%s” From Photo" msgid_plural "Remove Tag “%s” From Photos" msgstr[0] "Ta bort taggen ”%s” från bilden" msgstr[1] "Ta bort taggen ”%s” från bilderna" -#: src/Resources.vala:404 +#: src/Resources.vala:383 #, c-format msgid "Unable to rename tag to “%s” because the tag already exists." msgstr "Kunde inte byta namn på taggen till ”%s” eftersom taggen redan finns." -#: src/Resources.vala:408 +#: src/Resources.vala:387 #, c-format msgid "Unable to rename search to “%s” because the search already exists." msgstr "" "Kunde inte byta namn på sökningen till ”%s” eftersom sökningen redan finns." #. Saved search button -#: src/Resources.vala:411 src/SearchFilter.vala:1120 +#: src/Resources.vala:390 src/SearchFilter.vala:1146 msgid "Saved Search" msgstr "Sparad sökning" -#: src/Resources.vala:413 +#: src/Resources.vala:392 msgid "Delete Search" msgstr "Ta bort sökning" -#: src/Resources.vala:416 ui/savedsearch.ui:10 +#: src/Resources.vala:395 ui/savedsearch.ui:10 msgid "_Edit…" msgstr "_Redigera…" -#: src/Resources.vala:417 ui/savedsearch.ui:6 +#: src/Resources.vala:396 ui/savedsearch.ui:6 msgid "Re_name…" msgstr "Byt _namn…" -#: src/Resources.vala:420 +#: src/Resources.vala:399 #, c-format msgid "Rename Search “%s” to “%s”" msgstr "Byt namn på sökningen ”%s” till ”%s”" -#: src/Resources.vala:424 +#: src/Resources.vala:403 #, c-format msgid "Delete Search “%s”" msgstr "Ta bort sökningen ”%s”" -#: src/Resources.vala:561 +#: src/Resources.vala:408 +#, c-format +msgid "Unable to rename face to “%s” because the face already exists." +msgstr "" +"Kunde inte byta namn på ansikte till ”%s” eftersom ansiktet redan finns." + +#: src/Resources.vala:412 +#, c-format +msgid "Remove Face “%s” From _Photo" +msgid_plural "Remove Face “%s” From _Photos" +msgstr[0] "_Ta bort ansiktet ”%s” från bilden" +msgstr[1] "_Ta bort ansiktet ”%s” från bilderna" + +#: src/Resources.vala:417 +#, c-format +msgid "Remove Face “%s” From Photo" +msgid_plural "Remove Face “%s” From Photos" +msgstr[0] "Ta bort ansiktet ”%s” från bilden" +msgstr[1] "Ta bort ansiktet ”%s” från bilderna" + +#: src/Resources.vala:422 +#, c-format +msgid "Re_name Face “%s”…" +msgstr "B_yt namn på ansiktet ”%s”…" + +#: src/Resources.vala:426 +#, c-format +msgid "Rename Face “%s” to “%s”" +msgstr "Byt namn på ansiktet ”%s” till ”%s”" + +#: src/Resources.vala:430 +#, c-format +msgid "_Delete Face “%s”" +msgstr "_Ta bort ansiktet ”%s”" + +#: src/Resources.vala:434 +#, c-format +msgid "Delete Face “%s”" +msgstr "Ta bort ansiktet ”%s”" + +#: src/Resources.vala:664 #, c-format msgid "Rate %s" msgstr "Betyg %s" -#: src/Resources.vala:562 +#: src/Resources.vala:665 #, c-format msgid "Set rating to %s" msgstr "Sätt betyget %s" -#: src/Resources.vala:563 +#: src/Resources.vala:666 #, c-format msgid "Setting rating to %s" msgstr "Sätt betyget till %s" -#: src/Resources.vala:565 +#: src/Resources.vala:668 #, c-format msgid "Display %s" msgstr "Visa %s" -#: src/Resources.vala:566 +#: src/Resources.vala:669 #, c-format msgid "Only show photos with a rating of %s" msgstr "Visa endast bilder med betyget %s" -#: src/Resources.vala:567 +#: src/Resources.vala:670 #, c-format msgid "%s or Better" msgstr "%s eller högre" -#: src/Resources.vala:568 +#: src/Resources.vala:671 #, c-format msgid "Display %s or Better" msgstr "Visa %s eller högre" -#: src/Resources.vala:569 +#: src/Resources.vala:672 #, c-format msgid "Only show photos with a rating of %s or better" msgstr "Visa endast bilder med betyget %s eller högre" -#: src/Resources.vala:660 ui/trash.ui:255 +#: src/Resources.vala:763 ui/trash.ui:255 msgid "Remove the selected photos from the trash" msgstr "Ta bort markerade bilder från papperskorgen" -#: src/Resources.vala:661 ui/offline.ui:221 +#: src/Resources.vala:764 ui/offline.ui:221 msgid "Remove the selected photos from the library" msgstr "Ta bort markerade bilder från biblioteket" -#: src/Resources.vala:663 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 +#: src/Resources.vala:766 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 msgid "_Restore" msgstr "Åt_erställ" -#: src/Resources.vala:664 ui/trash.ui:270 +#: src/Resources.vala:767 ui/trash.ui:270 msgid "Move the selected photos back into the library" msgstr "Flytta tillbaka markerade bilder till biblioteket" -#: src/Resources.vala:666 ui/collection.ui:123 ui/direct_context.ui:18 -#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/media.ui:27 +#: src/Resources.vala:769 ui/collection.ui:123 ui/direct_context.ui:18 +#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/faces.ui:27 ui/media.ui:27 #: ui/photo_context.ui:130 ui/photo.ui:35 ui/tags.ui:27 ui/trash.ui:19 #: ui/trash.ui:227 msgid "Show in File Mana_ger" msgstr "Öppna med _filhanteraren" -#: src/Resources.vala:667 +#: src/Resources.vala:770 msgid "Open the selected photo’s directory in the file manager" msgstr "Öppna mappen för den markerade bilden i filhanteraren" -#: src/Resources.vala:670 +#: src/Resources.vala:773 #, c-format msgid "Unable to open in file manager: %s" msgstr "Kunde inte öppna i filhanterare: %s" -#: src/Resources.vala:673 ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 -#: ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 ui/tags.ui:74 +#: src/Resources.vala:776 ui/event.ui:74 ui/faces.ui:74 ui/media.ui:74 +#: ui/offline.ui:58 ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 +#: ui/tags.ui:74 msgid "R_emove From Library" msgstr "Ta _bort från biblioteket" -#: src/Resources.vala:675 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 -#: ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 ui/tags.ui:79 +#: src/Resources.vala:778 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 +#: ui/faces.ui:79 ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 +#: ui/tags.ui:79 msgid "_Move to Trash" msgstr "_Flytta till papperskorgen" -#: src/Resources.vala:677 ui/events_directory.ui:58 ui/event.ui:86 -#: ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 ui/trash.ui:74 +#: src/Resources.vala:780 ui/events_directory.ui:58 ui/event.ui:86 +#: ui/faces.ui:86 ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 +#: ui/trash.ui:74 msgid "Select _All" msgstr "Markera _alla" -#: src/Resources.vala:678 +#: src/Resources.vala:781 msgid "Select all items" msgstr "Markera alla objekt" @@ -5613,7 +5769,7 @@ msgstr "Markera alla objekt" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format #. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:739 +#: src/Resources.vala:842 msgid "%a %b %d, %Y" msgstr "%a %d %b, %Y" @@ -5621,7 +5777,7 @@ msgstr "%a %d %b, %Y" #. / Locale-specific starting date format for multi-date strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:744 +#: src/Resources.vala:847 msgctxt "MultidayFormat" msgid "%a %b %d" msgstr "%a %b %d" @@ -5629,7 +5785,7 @@ msgstr "%a %b %d" #. / Locale-specific ending date format for multi-date strings, #. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:749 +#: src/Resources.vala:852 msgctxt "MultidayFormat" msgid "%d, %Y" msgstr "%d, %Y" @@ -5637,7 +5793,7 @@ msgstr "%d, %Y" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:754 +#: src/Resources.vala:857 msgctxt "MultimonthFormat" msgid "%a %b %d" msgstr "%a %d %b" @@ -5645,194 +5801,174 @@ msgstr "%a %d %b" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:759 +#: src/Resources.vala:862 msgctxt "MultimonthFormat" msgid "%a %b %d, %Y" msgstr "%a %d %b, %Y" -#: src/Screensaver.vala:18 src/SlideshowPage.vala:115 +#: src/Screensaver.vala:18 src/SlideshowPage.vala:117 msgid "Slideshow" msgstr "Bildspel" #. Ordering must correspond with SearchConditionText.Context -#: src/searches/SavedSearchDialog.vala:162 +#: src/searches/SavedSearchDialog.vala:170 msgid "contains" msgstr "innehåller" #. Ordering must correspond with Context -#: src/searches/SavedSearchDialog.vala:163 -#: src/searches/SavedSearchDialog.vala:494 +#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:502 msgid "is exactly" msgstr "är exakt" -#: src/searches/SavedSearchDialog.vala:164 +#: src/searches/SavedSearchDialog.vala:172 msgid "starts with" msgstr "börjar med" -#: src/searches/SavedSearchDialog.vala:165 +#: src/searches/SavedSearchDialog.vala:173 msgid "ends with" msgstr "slutar med" -#: src/searches/SavedSearchDialog.vala:166 +#: src/searches/SavedSearchDialog.vala:174 msgid "does not contain" msgstr "innehåller inte" -#: src/searches/SavedSearchDialog.vala:167 -#: src/searches/SavedSearchDialog.vala:498 +#: src/searches/SavedSearchDialog.vala:175 +#: src/searches/SavedSearchDialog.vala:506 msgid "is not set" msgstr "är inte inställd" -#: src/searches/SavedSearchDialog.vala:168 +#: src/searches/SavedSearchDialog.vala:176 msgid "is set" msgstr "är satt" #. Ordering must correspond with SearchConditionMediaType.Context -#: src/searches/SavedSearchDialog.vala:242 -#: src/searches/SavedSearchDialog.vala:373 -#: src/searches/SavedSearchDialog.vala:438 +#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:381 +#: src/searches/SavedSearchDialog.vala:446 msgid "is" msgstr "är" -#: src/searches/SavedSearchDialog.vala:243 +#: src/searches/SavedSearchDialog.vala:251 msgid "is not" msgstr "är inte" #. Ordering must correspond with SearchConditionMediaType.MediaType -#: src/searches/SavedSearchDialog.vala:249 +#: src/searches/SavedSearchDialog.vala:257 msgid "any photo" msgstr "valfri bild" -#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:258 msgid "a raw photo" msgstr "en råfil" -#: src/searches/SavedSearchDialog.vala:251 +#: src/searches/SavedSearchDialog.vala:259 msgid "a video" msgstr "en film" -#: src/searches/SavedSearchDialog.vala:305 +#: src/searches/SavedSearchDialog.vala:313 msgid "has" msgstr "har" -#: src/searches/SavedSearchDialog.vala:306 +#: src/searches/SavedSearchDialog.vala:314 msgid "has no" msgstr "har inte" -#: src/searches/SavedSearchDialog.vala:311 +#: src/searches/SavedSearchDialog.vala:319 msgid "modifications" msgstr "ändringar" -#: src/searches/SavedSearchDialog.vala:312 +#: src/searches/SavedSearchDialog.vala:320 msgid "internal modifications" msgstr "interna ändringar" -#: src/searches/SavedSearchDialog.vala:313 +#: src/searches/SavedSearchDialog.vala:321 msgid "external modifications" msgstr "externa ändringar" #. Ordering must correspond with SearchConditionFlagged.State -#: src/searches/SavedSearchDialog.vala:367 +#: src/searches/SavedSearchDialog.vala:375 msgid "flagged" msgstr "flaggad" -#: src/searches/SavedSearchDialog.vala:368 +#: src/searches/SavedSearchDialog.vala:376 msgid "not flagged" msgstr "ej flaggad" -#: src/searches/SavedSearchDialog.vala:431 +#: src/searches/SavedSearchDialog.vala:439 msgid "and higher" msgstr "och högre" -#: src/searches/SavedSearchDialog.vala:432 +#: src/searches/SavedSearchDialog.vala:440 msgid "only" msgstr "endast" -#: src/searches/SavedSearchDialog.vala:433 +#: src/searches/SavedSearchDialog.vala:441 msgid "and lower" msgstr "och lägre" -#: src/searches/SavedSearchDialog.vala:495 +#: src/searches/SavedSearchDialog.vala:503 msgid "is after" msgstr "är efter" -#: src/searches/SavedSearchDialog.vala:496 +#: src/searches/SavedSearchDialog.vala:504 msgid "is before" msgstr "är före" -#: src/searches/SavedSearchDialog.vala:497 +#: src/searches/SavedSearchDialog.vala:505 msgid "is between" msgstr "är mellan" -#: src/searches/SavedSearchDialog.vala:510 +#: src/searches/SavedSearchDialog.vala:518 msgid "and" msgstr "och" -#: src/searches/SavedSearchDialog.vala:691 -msgid "Search" -msgstr "Sök" - -#: src/searches/SavedSearchDialog.vala:696 -msgid "Cancel" -msgstr "Avbryt" - -#: src/searches/SavedSearchDialog.vala:697 -msgid "OK" -msgstr "OK" - -#: src/searches/SavedSearchDialog.vala:716 -msgid "any" -msgstr "någon" - -#: src/searches/SavedSearchDialog.vala:717 -msgid "all" -msgstr "alla" - -#: src/searches/SavedSearchDialog.vala:718 -msgid "none" -msgstr "ingen" - -#: src/searches/SearchBoolean.vala:157 +#: src/searches/SearchBoolean.vala:169 msgid "Any text" msgstr "Valfri text" -#: src/searches/SearchBoolean.vala:160 +#: src/searches/SearchBoolean.vala:172 msgid "Title" msgstr "Titel" -#: src/searches/SearchBoolean.vala:163 +#: src/searches/SearchBoolean.vala:175 msgid "Tag" msgstr "Tagg" -#: src/searches/SearchBoolean.vala:166 +#: src/searches/SearchBoolean.vala:178 msgid "Comment" msgstr "Kommentar" -#: src/searches/SearchBoolean.vala:169 +#: src/searches/SearchBoolean.vala:181 msgid "Event name" msgstr "Händelsenamn" -#: src/searches/SearchBoolean.vala:172 +#: src/searches/SearchBoolean.vala:184 msgid "File name" msgstr "Filnamn" -#: src/searches/SearchBoolean.vala:175 +#: src/searches/SearchBoolean.vala:187 +msgid "Face" +msgstr "Ansikte" + +#: src/searches/SearchBoolean.vala:190 msgid "Media type" msgstr "Mediatyp" -#: src/searches/SearchBoolean.vala:178 +#: src/searches/SearchBoolean.vala:193 msgid "Flag state" msgstr "Tillstånd på flagga" -#: src/searches/SearchBoolean.vala:181 +#: src/searches/SearchBoolean.vala:196 msgid "Photo state" msgstr "Bildtillstånd" -#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:827 -#: src/SearchFilter.vala:1110 +#: src/searches/SearchBoolean.vala:199 src/SearchFilter.vala:853 +#: src/SearchFilter.vala:1136 msgid "Rating" msgstr "Betyg" -#: src/searches/SearchBoolean.vala:187 +#: src/searches/SearchBoolean.vala:202 msgid "Date" msgstr "Datum" @@ -5844,27 +5980,27 @@ msgstr "Sparade sökningar" msgid "Organize your saved searches" msgstr "Organisera dina sparade sökningar" -#: src/SearchFilter.vala:811 +#: src/SearchFilter.vala:837 msgid "★+ Rating" msgstr "★+ i betyg" -#: src/SearchFilter.vala:814 +#: src/SearchFilter.vala:840 msgid "★★+ Rating" msgstr "★★+ i betyg" -#: src/SearchFilter.vala:817 +#: src/SearchFilter.vala:843 msgid "★★★+ Rating" msgstr "★★★+ i betyg" -#: src/SearchFilter.vala:820 +#: src/SearchFilter.vala:846 msgid "★★★★+ Rating" msgstr "★★★★+ i betyg" -#: src/SearchFilter.vala:824 +#: src/SearchFilter.vala:850 msgid "★★★★★+ Rating" msgstr "★★★★★+ i betyg" -#: src/SearchFilter.vala:1060 +#: src/SearchFilter.vala:1086 #, c-format msgid "Error loading search bar UI: %s" msgstr "Fel vid inläsning av sökfältet: %s" @@ -5874,71 +6010,71 @@ msgstr "Fel vid inläsning av sökfältet: %s" #. Prepare the close menu for use, but don't #. display it yet; we'll connect it to secondary #. click later on. -#: src/SearchFilter.vala:1069 +#: src/SearchFilter.vala:1095 msgid "Close" msgstr "Stäng" #. Type label and toggles -#: src/SearchFilter.vala:1075 +#: src/SearchFilter.vala:1101 msgid "Type" msgstr "Typ" -#: src/SearchFilter.vala:1082 +#: src/SearchFilter.vala:1108 msgid "Videos" msgstr "Filmer" -#: src/SearchFilter.vala:1085 +#: src/SearchFilter.vala:1111 msgid "RAW Photos" msgstr "RAW-bilder" -#: src/SearchFilter.vala:1121 +#: src/SearchFilter.vala:1147 msgid "Use a saved search to filter items in the current view" msgstr "Använd en sparad sökning för att filtrera objekt i aktuell vy" #. Set up toolbar #. add toolbar buttons -#: src/SlideshowPage.vala:134 +#: src/SlideshowPage.vala:136 msgid "Back" msgstr "Bakåt" -#: src/SlideshowPage.vala:136 +#: src/SlideshowPage.vala:138 msgid "Go to the previous photo" msgstr "Gå till föregående bild" -#: src/SlideshowPage.vala:141 src/SlideshowPage.vala:248 +#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:250 msgid "Pause" msgstr "Pausa" -#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:249 +#: src/SlideshowPage.vala:145 src/SlideshowPage.vala:251 msgid "Pause the slideshow" msgstr "Pausa bildspelet" -#: src/SlideshowPage.vala:148 +#: src/SlideshowPage.vala:150 msgid "Next" msgstr "Nästa" -#: src/SlideshowPage.vala:150 +#: src/SlideshowPage.vala:152 msgid "Go to the next photo" msgstr "Gå till nästa bild" -#: src/SlideshowPage.vala:157 ui/slideshow_settings.ui:21 +#: src/SlideshowPage.vala:159 ui/slideshow_settings.ui:21 msgid "Settings" msgstr "Inställningar" -#: src/SlideshowPage.vala:158 +#: src/SlideshowPage.vala:160 msgid "Change slideshow settings" msgstr "Ändra inställningar för bildspel" #. An entire slideshow set might be missing, so check for a loop. -#: src/SlideshowPage.vala:212 +#: src/SlideshowPage.vala:214 msgid "All photo source files are missing." msgstr "Alla källbildfiler saknas." -#: src/SlideshowPage.vala:244 +#: src/SlideshowPage.vala:246 msgid "Play" msgstr "Spela upp" -#: src/SlideshowPage.vala:245 +#: src/SlideshowPage.vala:247 msgid "Continue the slideshow" msgstr "Fortsätt bildspelet" @@ -5950,7 +6086,7 @@ msgstr "Bildspelsövergångar" msgid "(None)" msgstr "(Ingen)" -#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:485 +#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:414 msgid "None" msgstr "Ingen" @@ -5975,24 +6111,24 @@ msgstr "namnlös" msgid "Export Videos" msgstr "Exportera filmer" -#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/media.ui:281 -#: ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 +#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/faces.ui:281 +#: ui/media.ui:281 ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 msgid "Toggle _Flag" msgstr "_Växla flagga" -#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/media.ui:353 -#: ui/photo_context.ui:88 ui/photo.ui:343 ui/tags.ui:353 +#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/faces.ui:353 +#: ui/media.ui:353 ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 msgid "_Developer" msgstr "_Framkallare" -#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/media.ui:381 -#: ui/photo_context.ui:126 ui/tags.ui:381 +#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/faces.ui:381 +#: ui/media.ui:381 ui/photo_context.ui:126 ui/tags.ui:381 msgid "View Eve_nt for Photo" msgstr "_Visa bildhändelse" -#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/import_queue.ui:5 -#: ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 ui/photo.ui:5 ui/tags.ui:5 -#: ui/trash.ui:5 +#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/faces.ui:5 +#: ui/import_queue.ui:5 ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 +#: ui/photo.ui:5 ui/tags.ui:5 ui/trash.ui:5 msgid "_File" msgstr "_Arkiv" @@ -6000,7 +6136,7 @@ msgstr "_Arkiv" msgid "Save _As…" msgstr "_Spara som…" -#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 +#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 ui/faces.ui:99 #: ui/import_queue.ui:38 ui/import.ui:74 ui/media.ui:99 ui/offline.ui:78 #: ui/photo.ui:95 ui/tags.ui:99 ui/trash.ui:87 msgid "_View" @@ -6034,229 +6170,240 @@ msgstr "_Nästa bild" msgid "T_ools" msgstr "_Verktyg" -#: ui/direct.ui:181 ui/events_directory.ui:158 ui/event.ui:428 +#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 ui/faces.ui:438 #: ui/import_queue.ui:73 ui/import.ui:191 ui/media.ui:411 ui/offline.ui:188 -#: ui/photo.ui:394 ui/tags.ui:430 ui/trash.ui:197 +#: ui/photo.ui:395 ui/tags.ui:430 ui/trash.ui:197 msgid "_Frequently Asked Questions" msgstr "_Återkommande frågor" -#: ui/direct.ui:185 ui/events_directory.ui:162 ui/event.ui:432 +#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 ui/faces.ui:442 #: ui/import_queue.ui:77 ui/import.ui:195 ui/media.ui:415 ui/offline.ui:192 -#: ui/photo.ui:398 ui/tags.ui:434 ui/trash.ui:201 +#: ui/photo.ui:399 ui/tags.ui:434 ui/trash.ui:201 msgid "_Report a Problem…" msgstr "_Rapportera ett problem…" -#: ui/events_directory.ui:8 ui/event.ui:8 ui/import_queue.ui:14 ui/import.ui:8 -#: ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 ui/trash.ui:8 +#: ui/events_directory.ui:8 ui/event.ui:8 ui/faces.ui:8 ui/import_queue.ui:14 +#: ui/import.ui:8 ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 +#: ui/trash.ui:8 msgid "_Import From Folder…" msgstr "_Importera från mapp…" -#: ui/events_directory.ui:13 ui/event.ui:13 ui/import_queue.ui:19 -#: ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 ui/photo.ui:13 ui/tags.ui:13 -#: ui/trash.ui:13 +#: ui/events_directory.ui:13 ui/event.ui:13 ui/faces.ui:13 +#: ui/import_queue.ui:19 ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 +#: ui/photo.ui:13 ui/tags.ui:13 ui/trash.ui:13 msgid "Import From _Application…" msgstr "Importera från _program…" -#: ui/events_directory.ui:19 ui/event.ui:34 ui/import_queue.ui:25 -#: ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 ui/photo.ui:42 ui/tags.ui:34 -#: ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 +#: ui/events_directory.ui:19 ui/event.ui:34 ui/faces.ui:34 +#: ui/import_queue.ui:25 ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 +#: ui/photo.ui:42 ui/tags.ui:34 ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 msgid "Empty T_rash" msgstr "_Töm papperskorgen" -#: ui/events_directory.ui:47 ui/event.ui:62 ui/import.ui:55 ui/media.ui:62 -#: ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 +#: ui/events_directory.ui:47 ui/event.ui:62 ui/faces.ui:62 ui/import.ui:55 +#: ui/media.ui:62 ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 msgid "_Find" msgstr "_Sök" -#: ui/events_directory.ui:51 ui/event.ui:66 ui/media.ui:66 ui/offline.ui:51 -#: ui/photo.ui:70 ui/search_sidebar_context.ui:6 +#: ui/events_directory.ui:51 ui/event.ui:66 ui/faces.ui:66 ui/media.ui:66 +#: ui/offline.ui:51 ui/photo.ui:70 ui/search_sidebar_context.ui:6 #: ui/sidebar_default_context.ui:6 ui/tags.ui:66 ui/trash.ui:56 msgid "Ne_w Saved Search…" msgstr "_Ny sparad sökning…" -#: ui/events_directory.ui:74 ui/event.ui:102 ui/import_queue.ui:41 -#: ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 ui/photo.ui:98 -#: ui/tags.ui:102 ui/trash.ui:90 +#: ui/events_directory.ui:74 ui/event.ui:102 ui/faces.ui:102 +#: ui/import_queue.ui:41 ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 +#: ui/photo.ui:98 ui/tags.ui:102 ui/trash.ui:90 msgid "_Basic Information" msgstr "_Grundläggande information" -#: ui/events_directory.ui:79 ui/event.ui:107 ui/import.ui:82 ui/media.ui:107 -#: ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 ui/trash.ui:95 +#: ui/events_directory.ui:79 ui/event.ui:107 ui/faces.ui:107 ui/import.ui:82 +#: ui/media.ui:107 ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 +#: ui/trash.ui:95 msgid "E_xtended Information" msgstr "_Utökad Information" -#: ui/events_directory.ui:84 ui/event.ui:112 ui/import.ui:87 ui/media.ui:112 -#: ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 +#: ui/events_directory.ui:84 ui/event.ui:112 ui/faces.ui:112 ui/import.ui:87 +#: ui/media.ui:112 ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 msgid "_Search Bar" msgstr "_Sökfält" -#: ui/events_directory.ui:89 ui/event.ui:117 ui/import.ui:92 ui/media.ui:117 -#: ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 ui/trash.ui:105 +#: ui/events_directory.ui:89 ui/event.ui:117 ui/faces.ui:117 ui/import.ui:92 +#: ui/media.ui:117 ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 +#: ui/trash.ui:105 msgid "S_idebar" msgstr "S_idofält" -#: ui/events_directory.ui:94 ui/event.ui:122 ui/import.ui:97 ui/media.ui:122 -#: ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 ui/trash.ui:110 +#: ui/events_directory.ui:94 ui/event.ui:122 ui/faces.ui:122 ui/import.ui:97 +#: ui/media.ui:122 ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 +#: ui/trash.ui:110 msgid "T_oolbar" msgstr "V_erktygsfält" -#: ui/events_directory.ui:101 ui/event.ui:134 ui/media.ui:134 ui/tags.ui:134 +#: ui/events_directory.ui:101 ui/event.ui:134 ui/faces.ui:134 ui/media.ui:134 +#: ui/tags.ui:134 msgid "_Comments" msgstr "_Kommentarer" -#: ui/events_directory.ui:108 ui/event.ui:243 ui/import_queue.ui:48 -#: ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 ui/photo.ui:127 -#: ui/tags.ui:243 ui/trash.ui:172 +#: ui/events_directory.ui:108 ui/event.ui:243 ui/faces.ui:243 +#: ui/import_queue.ui:48 ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 +#: ui/photo.ui:127 ui/tags.ui:243 ui/trash.ui:172 msgid "Sort _Events" msgstr "_Sortera händelser" -#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 -#: ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 ui/media.ui:246 -#: ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 ui/tags.ui:246 -#: ui/trash.ui:175 +#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 ui/faces.ui:231 +#: ui/faces.ui:246 ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 +#: ui/media.ui:246 ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 +#: ui/tags.ui:246 ui/trash.ui:175 msgid "_Ascending" msgstr "_Stigande" -#: ui/events_directory.ui:116 ui/event.ui:236 ui/import_queue.ui:56 -#: ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 ui/trash.ui:180 +#: ui/events_directory.ui:116 ui/event.ui:236 ui/faces.ui:236 +#: ui/import_queue.ui:56 ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 +#: ui/trash.ui:180 msgid "D_escending" msgstr "_Fallande" -#: ui/events_directory.ui:132 ui/event.ui:379 ui/media.ui:373 ui/tags.ui:373 +#: ui/events_directory.ui:132 ui/event.ui:379 ui/faces.ui:373 ui/media.ui:373 +#: ui/tags.ui:373 msgid "Even_ts" msgstr "_Händelser" -#: ui/event.ui:129 ui/import.ui:104 ui/media.ui:129 ui/tags.ui:129 +#: ui/event.ui:129 ui/faces.ui:129 ui/import.ui:104 ui/media.ui:129 +#: ui/tags.ui:129 msgid "_Titles" msgstr "_Titlar" -#: ui/event.ui:139 ui/event.ui:404 ui/media.ui:139 ui/media.ui:387 -#: ui/photo.ui:371 ui/tags.ui:139 ui/tags.ui:387 +#: ui/event.ui:139 ui/event.ui:404 ui/faces.ui:139 ui/faces.ui:387 +#: ui/media.ui:139 ui/media.ui:387 ui/photo.ui:372 ui/tags.ui:139 +#: ui/tags.ui:387 msgid "Ta_gs" msgstr "Ta_ggar" -#: ui/event.ui:206 ui/media.ui:206 ui/tags.ui:206 +#: ui/event.ui:206 ui/faces.ui:206 ui/media.ui:206 ui/tags.ui:206 msgid "Sort _Photos" msgstr "Sortera _bilder" -#: ui/event.ui:209 ui/media.ui:209 ui/tags.ui:209 +#: ui/event.ui:209 ui/faces.ui:209 ui/media.ui:209 ui/tags.ui:209 msgid "By _Title" msgstr "Efter _titel" -#: ui/event.ui:214 ui/media.ui:214 ui/tags.ui:214 +#: ui/event.ui:214 ui/faces.ui:214 ui/media.ui:214 ui/tags.ui:214 msgid "By _Filename" msgstr "Efter _filnamn" -#: ui/event.ui:219 ui/media.ui:219 ui/tags.ui:219 +#: ui/event.ui:219 ui/faces.ui:219 ui/media.ui:219 ui/tags.ui:219 msgid "By Exposure _Date" msgstr "Efter exponerings_ögonblick" -#: ui/event.ui:224 ui/media.ui:224 ui/tags.ui:224 +#: ui/event.ui:224 ui/faces.ui:224 ui/media.ui:224 ui/tags.ui:224 msgid "By _Rating" msgstr "Efter _betyg" -#: ui/event.ui:251 ui/import.ui:174 ui/media.ui:251 ui/photo.ui:135 -#: ui/tags.ui:251 +#: ui/event.ui:251 ui/faces.ui:251 ui/import.ui:174 ui/media.ui:251 +#: ui/photo.ui:135 ui/tags.ui:251 msgid "_Descending" msgstr "_Fallande" -#: ui/event.ui:275 ui/media.ui:275 ui/tags.ui:275 +#: ui/event.ui:275 ui/faces.ui:275 ui/media.ui:275 ui/tags.ui:275 msgid "_Photos" msgstr "_Bilder" +#: ui/faces.ui:465 +msgid "Rename…" +msgstr "Byt namn…" + #: ui/import_queue.ui:8 msgid "_Stop Import" msgstr "_Avbryt importen" -#: ui/preferences_dialog.ui:65 -msgid "white" -msgstr "vit" - -#: ui/preferences_dialog.ui:92 -msgid "black" -msgstr "svart" - -#: ui/preferences_dialog.ui:123 +#: ui/preferences_dialog.ui:67 msgid "Display" msgstr "Visning" -#: ui/preferences_dialog.ui:160 -msgid "_Background:" -msgstr "_Bakgrund:" - -#: ui/preferences_dialog.ui:175 +#: ui/preferences_dialog.ui:103 msgid "_Import photos to:" msgstr "_Importera bilder till:" -#: ui/preferences_dialog.ui:186 +#: ui/preferences_dialog.ui:114 msgid "_Watch library directory for new files" msgstr "_Bevaka bibliotekskatalogen efter nya filer" -#: ui/preferences_dialog.ui:209 +#: ui/preferences_dialog.ui:137 msgid "Importing" msgstr "Import" -#: ui/preferences_dialog.ui:226 +#: ui/preferences_dialog.ui:154 msgid "_Directory structure:" msgstr "_Katalogstruktur:" -#: ui/preferences_dialog.ui:241 +#: ui/preferences_dialog.ui:169 msgid "Example:" msgstr "Exempel:" -#: ui/preferences_dialog.ui:250 +#: ui/preferences_dialog.ui:178 msgid "R_ename imported files to lowercase" msgstr "B_yt namn på importerade filer till enbart gemener" -#: ui/preferences_dialog.ui:272 +#: ui/preferences_dialog.ui:200 msgid "Metadata" msgstr "Metadata" -#: ui/preferences_dialog.ui:285 +#: ui/preferences_dialog.ui:213 msgid "Write tags, titles, and other _metadata to photo files" msgstr "Skriv taggar, titlar och annan _metadata till bildfilerna" -#: ui/preferences_dialog.ui:307 +#: ui/preferences_dialog.ui:235 msgid "RAW Developer" msgstr "RAW-framkallare" -#: ui/preferences_dialog.ui:324 +#: ui/preferences_dialog.ui:252 msgid "De_fault:" msgstr "_Standard:" -#: ui/preferences_dialog.ui:378 +#: ui/preferences_dialog.ui:306 msgid "_Pattern:" msgstr "_Mönster:" -#: ui/preferences_dialog.ui:414 +#: ui/preferences_dialog.ui:339 +msgid "" +"When viewing images that are transparent, they will be drawn against this " +"background." +msgstr "Då transparenta bilder visas kommer de att ritas på denna bakgrund." + +#: ui/preferences_dialog.ui:343 msgid "Transparent Background:" msgstr "_Transparent bakgrund:" -#: ui/preferences_dialog.ui:428 +#: ui/preferences_dialog.ui:357 msgid "Checkered" msgstr "Rutig" -#: ui/preferences_dialog.ui:449 +#: ui/preferences_dialog.ui:378 msgid "Solid color" msgstr "Enfärgad" -#: ui/preferences_dialog.ui:539 +#: ui/preferences_dialog.ui:441 +msgid "Use dark theme:" +msgstr "Använd mörkt tema:" + +#: ui/preferences_dialog.ui:492 msgid "E_xternal photo editor:" msgstr "E_xtern bildredigerare:" -#: ui/preferences_dialog.ui:556 +#: ui/preferences_dialog.ui:509 msgid "External _RAW editor:" msgstr "Extern _RAW-redigerare:" -#: ui/preferences_dialog.ui:617 +#: ui/preferences_dialog.ui:570 msgid "External Editors" msgstr "Externa redigerare" -#: ui/preferences_dialog.ui:642 +#: ui/preferences_dialog.ui:595 msgid "Plugins" msgstr "Insticksmoduler" -#: ui/preferences_dialog.ui:668 +#: ui/preferences_dialog.ui:621 msgid "Shotwell Preferences" msgstr "Inställningar för Shotwell" @@ -6310,6 +6457,42 @@ msgstr "_Skriv ut bild till:" msgid "pixels per inch" msgstr "pixlar per tum" +#: ui/saved_search_dialog.ui:7 +msgid "Search" +msgstr "Sök" + +#: ui/saved_search_dialog.ui:23 +msgid "Cancel" +msgstr "Avbryt" + +#: ui/saved_search_dialog.ui:36 +msgid "OK" +msgstr "OK" + +#: ui/saved_search_dialog.ui:74 +msgid "_Name of search:" +msgstr "_Namn på sökningen:" + +#: ui/saved_search_dialog.ui:132 +msgid "_Match" +msgstr "_Matcha" + +#: ui/saved_search_dialog.ui:149 +msgid "any" +msgstr "någon" + +#: ui/saved_search_dialog.ui:150 +msgid "all" +msgstr "alla" + +#: ui/saved_search_dialog.ui:151 +msgid "none" +msgstr "ingen" + +#: ui/saved_search_dialog.ui:165 +msgid "of the following:" +msgstr "följande:" + #: ui/set_background_dialog.ui:9 msgid "Set as Desktop Background" msgstr "Ange som skrivbordsbakgrund" @@ -6342,50 +6525,56 @@ msgstr "tidsperiod" msgid "How long each photo is shown on the desktop background" msgstr "Hur länge varje bild ska visas på skrivbordsbakgrunden" -#: ui/shotwell.ui:22 -msgid "_Name of search:" -msgstr "_Namn på sökningen:" - -#: ui/shotwell.ui:76 -msgid "_Match" -msgstr "_Matcha" - -#: ui/shotwell.ui:103 -msgid "of the following:" -msgstr "följande:" - -#: ui/shotwell.ui:184 -msgid "label" -msgstr "etikett" - #: ui/sidebar_default_context.ui:11 ui/tag_sidebar_context.ui:6 msgid "New _Tag…" msgstr "_Ny tagg…" -#: ui/slideshow_settings.ui:91 +#: ui/slideshow_settings.ui:98 msgid "_Delay:" msgstr "_Fördröjning:" -#: ui/slideshow_settings.ui:105 +#: ui/slideshow_settings.ui:112 msgid "_Transition effect:" msgstr "_Övergångseffekt:" -#: ui/slideshow_settings.ui:119 +#: ui/slideshow_settings.ui:126 msgid "Transition d_elay:" msgstr "_Övergångsfördröjning:" -#: ui/slideshow_settings.ui:129 +#: ui/slideshow_settings.ui:136 msgid "Show t_itle" msgstr "_Visa titel" -#: ui/slideshow_settings.ui:212 ui/slideshow_settings.ui:223 +#: ui/slideshow_settings.ui:219 ui/slideshow_settings.ui:230 msgid "seconds" msgstr "sekunder" +#: ui/textentrydialog.ui:66 +msgid "label" +msgstr "etikett" + #: ui/trash.ui:285 msgid "Delete all photos in the trash" msgstr "Radera alla bilder från papperskorgen" +#~ msgid "background color" +#~ msgstr "bakgrundsfärg" + +#~ msgid "A grayscale color for use as the background color." +#~ msgstr "En gråskalefärg att använda som bakgrundsfärg." + +#~ msgid "Extended Information" +#~ msgstr "Utökad information" + +#~ msgid "white" +#~ msgstr "vit" + +#~ msgid "black" +#~ msgstr "svart" + +#~ msgid "_Background:" +#~ msgstr "_Bakgrund:" + #~ msgid "" #~ "Enter the confirmation number which appears after you log into Flickr in " #~ "your Web browser." diff --git a/po/ta.gmo b/po/ta.gmo deleted file mode 100644 index af60a05..0000000 Binary files a/po/ta.gmo and /dev/null differ diff --git a/po/te.gmo b/po/te.gmo deleted file mode 100644 index b13d368..0000000 Binary files a/po/te.gmo and /dev/null differ diff --git a/po/th.gmo b/po/th.gmo deleted file mode 100644 index 4e8475f..0000000 Binary files a/po/th.gmo and /dev/null differ diff --git a/po/tr.gmo b/po/tr.gmo deleted file mode 100644 index 776f469..0000000 Binary files a/po/tr.gmo and /dev/null differ diff --git a/po/tr.po b/po/tr.po index 4bbe2b7..fd50578 100644 --- a/po/tr.po +++ b/po/tr.po @@ -12,15 +12,14 @@ # verayin , 2011 # İşbaran Akçayır , 2015. # Muhammet Kara , 2011, 2016. -# Emin Tufan Çetin , 2017. +# Emin Tufan Çetin , 2017, 2018. # msgid "" msgstr "" "Project-Id-Version: shotwell-0.15\n" -"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" -"product=shotwell&keywords=I18N+L10N&component=Internationalization\n" -"POT-Creation-Date: 2017-06-07 14:23+0300\n" -"PO-Revision-Date: 2017-06-07 14:32+0300\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/shotwell/issues\n" +"POT-Creation-Date: 2018-06-25 16:43+0000\n" +"PO-Revision-Date: 2018-08-15 22:06+0300\n" "Last-Translator: Emin Tufan Çetin \n" "Language-Team: Türkçe \n" "Language: tr\n" @@ -34,8 +33,8 @@ msgstr "" #: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in:4 #: plugins/shotwell-publishing-extras/GalleryConnector.vala:115 #: src/photos/RawSupport.vala:308 ui/collection.ui:85 ui/event.ui:356 -#: ui/event.ui:524 ui/media.ui:356 ui/photo_context.ui:91 ui/photo.ui:346 -#: ui/tags.ui:356 +#: ui/event.ui:524 ui/faces.ui:356 ui/media.ui:356 ui/photo_context.ui:91 +#: ui/photo.ui:347 ui/tags.ui:356 msgid "Shotwell" msgstr "Shotwell" @@ -344,6 +343,8 @@ msgid "" "True if a photo’s rating should be displayed as overlaid trinket, false " "otherwise." msgstr "" +"Eğer fotoğrafın oylaması kaplayan biblo olarak gösterilmeliyse doğru, " +"değilse yanlış." #: misc/org.yorba.shotwell.gschema.xml:83 msgid "rating filter level" @@ -355,6 +356,9 @@ msgid "" "better, 2: Unrated or better, 3: One or better, 4: Two or better, 5: Three " "or better, 6: Four or better, 7: Five or better." msgstr "" +"Fotoğrafların puanlarına göre nasıl süzüleceğini saptar: 1: Reddedilmiş veya " +"daha iyi, 2: Puansız veya daha iyi, 3: Bir veya daha iyi, 4: İki veya daha " +"iyi, 5: Üç veya daha iyi, 6: Dört veya daha iyi, 7: Beş veya daha iyi." #: misc/org.yorba.shotwell.gschema.xml:89 msgid "sort events ascending" @@ -417,13 +421,15 @@ msgstr "" #: misc/org.yorba.shotwell.gschema.xml:125 msgid "keep relative time between photos" -msgstr "" +msgstr "fotoğraflar arası göreceli zaman tut" #: misc/org.yorba.shotwell.gschema.xml:126 msgid "" "True if when adjusting time/date of photos, relative time should be " "maintained. False if all photos should be set to the same time." msgstr "" +"Fotoğrafların zamanı/tarihi ayarlanırken göreceli zaman korunacaksa doğru. " +"Tüm fotoğraflar aynı zamana ayarlanacaksa yanlış." #: misc/org.yorba.shotwell.gschema.xml:131 msgid "modify original photo files" @@ -434,6 +440,8 @@ msgid "" "True if when adjusting time/date of photos, the original files should be " "modified as well. False if changes are made only in the database." msgstr "" +"Fotoğrafların zamanı/tarihi ayarlanırken özgün dosyalar da değiştirilecekse " +"doğru. Değişiklikler yalnızca veri tabanında yapılacaksa yanlış." #: misc/org.yorba.shotwell.gschema.xml:137 msgid "show welcome dialog on startup" @@ -472,12 +480,13 @@ msgid "Pin toolbar in fullscreen, or not." msgstr "Tam ekranda araç çubuğunu sabitle ya da sabitleme." #: misc/org.yorba.shotwell.gschema.xml:161 -msgid "background color" -msgstr "arka plan rengi" +msgid "prefer GTK+’s dark theme" +msgstr "GTK+ʼnın karanlık gövdesini yeğle" #: misc/org.yorba.shotwell.gschema.xml:162 -msgid "A grayscale color for use as the background color." -msgstr "Arka plan rengi olarak kullanmak için gri tonda bir renk." +msgid "Whether to use the dark theme of GTK+ for Shotwell or not." +msgstr "" +"Shotwell için GTK+ʼnın karanlık gövdesinin kullanılıp kullanılmayacağı." #: misc/org.yorba.shotwell.gschema.xml:167 msgid "background for transparent images" @@ -618,7 +627,7 @@ msgstr "İçe aktarılan fotoğrafların konumlanacağı dizin." #: misc/org.yorba.shotwell.gschema.xml:263 msgid "watch library directory for new files" -msgstr "yeni dosyalar için kitaplık dizinini izle" +msgstr "yeni dosyalar için kitaplık dizinini gözle" #: misc/org.yorba.shotwell.gschema.xml:264 msgid "" @@ -660,16 +669,20 @@ msgid "" "A string encoding a naming pattern that will be used to name photo " "directories on import." msgstr "" +"İçe aktarılacak fotoğraf dizinlerini adlandırmada kullanılacak adlandırma " +"yapısını kodlayan dizge." #: misc/org.yorba.shotwell.gschema.xml:287 msgid "directory pattern custom" -msgstr "" +msgstr "özel dizin yapısı" #: misc/org.yorba.shotwell.gschema.xml:288 msgid "" "A string encoding a custom naming pattern that will be used to name photo " "directories on import." msgstr "" +"İçe aktarılacak fotoğraf dizinlerini adlandırmada kullanılacak özel " +"adlandırma yapısını kodlayan dizge." #: misc/org.yorba.shotwell.gschema.xml:293 msgid "RAW developer default" @@ -677,7 +690,7 @@ msgstr "RAW geliştirici öntanımlısı" #: misc/org.yorba.shotwell.gschema.xml:294 msgid "Default option for which RAW developer Shotwell will use." -msgstr "Shotwell’in kullanacağı RAW geliştiricisi için öntanımlı seçenek" +msgstr "Shotwell’in kullanacağı RAW geliştiricisi için öntanımlı seçenek." #: misc/org.yorba.shotwell.gschema.xml:301 msgid "Most-recently-used crop aspect ratio menu choice." @@ -686,27 +699,31 @@ msgstr "En son kullanılan kırpma en/boy oranı menü seçeneği." #: misc/org.yorba.shotwell.gschema.xml:302 msgid "A numeric code representing the last crop menu choice the user made." msgstr "" -"Kullanıcının yaptığı son kırpma menüsü seçimini temsil eden sayısal kod" +"Kullanıcının yaptığı son kırpma menüsü seçimini temsil eden sayısal kod." #: misc/org.yorba.shotwell.gschema.xml:306 msgid "Most-recently-used crop custom aspect ratio’s numerator." -msgstr "" +msgstr "En son kullanılan kırpma özel en boy oranının payı." #: misc/org.yorba.shotwell.gschema.xml:307 msgid "" "A nonzero, positive integer representing the width part of the last custom " "crop ratio the user entered." msgstr "" +"Kullanıcının girdiği son özel kırpma oranının genişlik bölümünü temsil eden " +"sıfır olmayan, pozitif tam sayı." #: misc/org.yorba.shotwell.gschema.xml:311 msgid "Most-recently-used crop custom aspect ratio’s denominator." -msgstr "" +msgstr "En son kullanılan kırpma özel en boy oranının paydası." #: misc/org.yorba.shotwell.gschema.xml:312 msgid "" "A nonzero, positive integer representing the height part of the last custom " "crop ratio the user entered." msgstr "" +"Kullanıcının girdiği son özel kırpma oranının yükseklik bölümünü temsil eden " +"sıfır olmayan, pozitif tam sayı." #: misc/org.yorba.shotwell.gschema.xml:319 msgid "external photo editor" @@ -846,6 +863,8 @@ msgid "" "The cryptographic secret used to sign requests against the authorization " "token for the currently logged in Flickr user, if any" msgstr "" +"Giriş yapmış geçerli Flick kullanıcısı için istekleri yetkilendirme " +"simgesine dayanarak imzalamada kullanılacak kriptografik giz" #: misc/org.yorba.shotwell.gschema.xml:467 msgid "The user name of the currently logged in Flickr user, if any" @@ -930,7 +949,7 @@ msgstr "Eğer giriş yapıldıysa, Piwigo kullanıcı adı." #: misc/org.yorba.shotwell.gschema.xml:530 msgid "password" -msgstr "şifre" +msgstr "parola" #: misc/org.yorba.shotwell.gschema.xml:531 msgid "Piwigo password, if logged in." @@ -938,7 +957,7 @@ msgstr "Eğer giriş yapıldıysa, Piwigo parolası." #: misc/org.yorba.shotwell.gschema.xml:536 msgid "remember password" -msgstr "şifreyi anımsa" +msgstr "parolayı anımsa" #: misc/org.yorba.shotwell.gschema.xml:537 msgid "If true, remember the Piwigo password." @@ -985,7 +1004,7 @@ msgid "" "the title if title is set and comment unset" msgstr "" "Eğer başlık ayarlı yorum değilse, Piwigo’ya yüklenecek resimlerin " -"yorumlarının başlıktan belirlenip belirlenmeyeceği." +"yorumlarının başlıktan belirlenip belirlenmeyeceği" #: misc/org.yorba.shotwell.gschema.xml:572 msgid "do not upload tags when uploading to Piwigo" @@ -1017,7 +1036,7 @@ msgstr "URL" #: misc/org.yorba.shotwell.gschema.xml:593 msgid "Gallery3 site URL" -msgstr "Gallery3 site URL’si:" +msgstr "Gallery3 site URL’si" #: misc/org.yorba.shotwell.gschema.xml:605 msgid "" @@ -1029,21 +1048,23 @@ msgstr "" #: misc/org.yorba.shotwell.gschema.xml:610 msgid "scaling constraint of uploaded picture" -msgstr "" +msgstr "yüklenen resmin ölçek kısıtlaması" #: misc/org.yorba.shotwell.gschema.xml:611 msgid "The scaling constraint ID of the picture to be uploaded" -msgstr "" +msgstr "Yüklenecek resmin ölçek kısıtlama kimliği" #: misc/org.yorba.shotwell.gschema.xml:616 msgid "pixels of the major axis uploaded picture" -msgstr "" +msgstr "yüklenen resmin ana eksen pikselleri" #: misc/org.yorba.shotwell.gschema.xml:617 msgid "" "The pixels of the major axis of the picture to be uploaded; used only if " "scaling-constraint-id is an appropriate value" msgstr "" +"Yüklenecek resmin ana ekseninin pikselleri; yalnızca ölçek kısıtlama kimliği " +"uygun bir değerse kullanılır" #: misc/org.yorba.shotwell.gschema.xml:625 msgid "" @@ -1064,7 +1085,7 @@ msgstr "Fotoğrafların içe aktarıldığı son hizmeti temsil eden sayısal ko #: misc/org.yorba.shotwell.gschema.xml:640 msgid "interpreter state cookie" -msgstr "" +msgstr "yorumlayıcı durum çerezi" #: misc/org.yorba.shotwell.gschema.xml:641 msgid "" @@ -1080,6 +1101,8 @@ msgid "" "A numeric code that describes how photos are laid out on the page during " "printing" msgstr "" +"Yazdırma sırasında fotoğrafların sayfaya nasıl yerleştireceğini açıklayan " +"sayısal kod" #: misc/org.yorba.shotwell.gschema.xml:654 msgid "content ppi" @@ -1095,7 +1118,7 @@ msgstr "içerik genişliği" #: misc/org.yorba.shotwell.gschema.xml:661 msgid "The width of the printed emulsion on the page when printing" -msgstr "" +msgstr "Yazdırırken sayfada basılı emülsiyonun genişliği" #: misc/org.yorba.shotwell.gschema.xml:666 msgid "content height" @@ -1103,7 +1126,7 @@ msgstr "içerik yüksekliği" #: misc/org.yorba.shotwell.gschema.xml:667 msgid "The height of the printed emulsion on the page when printing" -msgstr "" +msgstr "Yazdırırken sayfada basılı emülsiyonun yüksekliği" #: misc/org.yorba.shotwell.gschema.xml:672 msgid "content units" @@ -1126,6 +1149,7 @@ msgid "" "A numeric code representing the currently selected images per page mode used " "when printing" msgstr "" +"Yazdırma sırasında sayfa başına seçilen resim kipini temsil eden sayısal kod" #: misc/org.yorba.shotwell.gschema.xml:684 msgid "size selection" @@ -1135,6 +1159,8 @@ msgstr "boyut seçimi" msgid "" "The index of the current print size in a pre-defined list of standard sizes" msgstr "" +"Standart boyutların önceden tanımlı listesindeki geçerli yazdırma boyutunun " +"indeksi" #: misc/org.yorba.shotwell.gschema.xml:690 msgid "match aspect ratio" @@ -1166,7 +1192,8 @@ msgstr "başlıkların yazı tipi" #: misc/org.yorba.shotwell.gschema.xml:703 msgid "The name of the font to use for photo titles when they are printed." -msgstr "Baskı sırasında fotoğraf başlıkları için kullanılacak yazı tipinin adı" +msgstr "" +"Baskı sırasında fotoğraf başlıkları için kullanılacak yazı tipinin adı." #: misc/org.yorba.shotwell.gschema.xml:714 msgid "enable facebook publishing plugin" @@ -1361,10 +1388,10 @@ msgid "" "upload photos and publish to your feed. These permissions are required for " "Shotwell Connect to function." msgstr "" -"Facebook’ta oturum açmadınız.\n" +"Henüz Facebook’ta oturum açmadınız.\n" "\n" -"Henüz bir Facebook hesabınız yoksa, oturum açma sürecinde bir tane " -"oluşturabilirsiniz. Oturum açma sırasında, Shotwell Connect fotoğraflarınızı " +"Henüz bir Facebook hesabınız yoksa oturum açma sürecinde bir tane " +"oluşturabilirsiniz. Oturum açma sırasında Shotwell Connect fotoğraflarınızı " "karşıya yüklemek ve beslemelerinizde yayımlamak için izin isteyebilir. " "Shotwell Connect’in işlevini yerine getirmesi için bu izinler gereklidir." @@ -1379,52 +1406,31 @@ msgstr "" "Facebook’ta yayımlamaya devam etmek için, Shotwell’i kapatın ve yeniden " "başlatın, daha sonra yeniden yayımlamayı deneyin." -#: plugins/authenticator/shotwell/flickr_pin_entry_pane.ui:17 -msgid "" -"Enter the confirmation number which appears after you log into Flickr in " -"your Web browser." -msgstr "" -"Flickr’a Web tarayıcınızdan girdikten sonra çıkan doğrulama sayısını girin:" - -#: plugins/authenticator/shotwell/flickr_pin_entry_pane.ui:37 -msgid "Authorization _Number:" -msgstr "Yetkilendirme _Numarası:" - -#: plugins/authenticator/shotwell/flickr_pin_entry_pane.ui:70 -#: src/Dialogs.vala:128 -msgid "Con_tinue" -msgstr "Devam _Et" - -#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:187 +#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:17 msgid "" "You are not currently logged into Flickr.\n" "\n" "Click Log in to log into Flickr in your Web browser. You will have to " "authorize Shotwell Connect to link to your Flickr account." msgstr "" -"Şu anda Flickr’da oturum açmış bulunmuyorsunuz.\n" +"Henüz Flickr’da oturum açmadınız.\n" "\n" "Flickr’a giriş yapmak için web tarayıcınızda Oturum Aç’a tıklayın. Flickr " "hesabınıza Shotwell Connect’i bağlamak için yetki vermeniz gerekiyor." -#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:364 +#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:124 msgid "Preparing for login…" msgstr "Giriş için hazırlanıyor…" -#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:468 -#: plugins/shotwell-publishing/FlickrPublishing.vala:341 -msgid "" -"A file required for publishing is unavailable. Publishing to Flickr can’t " -"continue." -msgstr "" -"Yayımlama için gerekli bir dosya kullanılamıyor. Flickr’da yayımlama devam " -"edemiyor." +#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:193 +msgid "Flickr authorization failed" +msgstr "Flick yetkilendirmesi başarısız" -#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:481 +#: plugins/authenticator/shotwell/FlickrPublishingAuthenticator.vala:200 msgid "Verifying authorization…" msgstr "Yetkilendirme doğrulanıyor…" -#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:118 +#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:137 msgid "" "You have already logged in and out of a Google service during this Shotwell " "session.\n" @@ -1436,22 +1442,22 @@ msgstr "" "yaptınız.\n" "\n" "Google servislerine yayımlamaya devam etmek için, çıkın ve Shotwell’i " -"yeniden başlatın, ardından yayımlamayı yeniden deneyin." +"yeniden başlatın, ardından yeniden yayımlamayı deneyin." -#: plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala:31 +#: plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala:32 msgid "" "You are not currently logged into Picasa Web Albums.\n" "\n" "Click Log in to log into Picasa Web Albums in your Web browser. You will " "have to authorize Shotwell Connect to link to your Picasa Web Albums account." msgstr "" -"Şu anda Picasa Web Albümleri’nde oturum açmış bulunmuyorsunuz.\n" +"Henüz Picasa Web Albümleri’nde oturum açmadınız.\n" "\n" "Picasa Web Albümleri’ne giriş yapmak için web tarayıcınızda Oturum Aç’a " "tıklayın. Picasa Web Albümleri’nize Shotwell Connect’i bağlamak için yetki " "vermeniz gerekiyor." -#: plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala:34 +#: plugins/authenticator/shotwell/ShotwellAuthenticatorFactory.vala:35 msgid "" "You are not currently logged into YouTube.\n" "\n" @@ -1459,17 +1465,58 @@ msgid "" "with YouTube to continue. You can set up most accounts by using your browser " "to log into the YouTube site at least once." msgstr "" -"Şu anda YouTube’da oturum açmış bulunmuyorsunuz.\n" +"Henüz YouTube’da oturum açmadınız.\n" "\n" "Devam etmek için YouTube’la birlikte kullanabilecek şekilde ayarlanmış bir " "Google hesabınız olmalı. Tarayıcınızı kullanıp en az bir kez YouTube " -"sitesinde oturum açarak pek çok hesap kurabilirsiniz. " +"sitesinde oturum açarak pek çok hesap kurabilirsiniz." + +#: plugins/authenticator/shotwell/tumblr_authentication_pane.ui:42 +#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:42 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:892 +msgid "_Email address" +msgstr "_Eposta adresi" + +#: plugins/authenticator/shotwell/tumblr_authentication_pane.ui:82 +#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:82 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:893 +#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:119 +msgid "_Password" +msgstr "_Parola" + +#: plugins/authenticator/shotwell/tumblr_authentication_pane.ui:104 +#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:120 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:895 +#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:154 +msgid "Log in" +msgstr "Oturum aç" + +#: plugins/authenticator/shotwell/TumblrAuthenticator.vala:25 +msgid "Enter the username and password associated with your Tumblr account." +msgstr "" +"Lütfen Tumblr hesabınızla ilişkili kullanıcı adınızı ve parolanızı giriniz." + +#: plugins/authenticator/shotwell/TumblrAuthenticator.vala:26 +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1081 +msgid "Username and/or password invalid. Please try again" +msgstr "Kullanıcı adı ve/veya parola geçersiz. Lütfen yeniden deneyin" + +#: plugins/authenticator/shotwell/TumblrAuthenticator.vala:53 +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1117 +msgid "Invalid User Name or Password" +msgstr "Geçersiz Kullanıcı Adı veya Parola" + +#: plugins/authenticator/shotwell/TumblrAuthenticator.vala:72 +#: plugins/shotwell-publishing/TumblrPublishing.vala:498 +#, c-format +msgid "Could not load UI: %s" +msgstr "Kullanıcı arayüzü yüklenemedi: %s" #: plugins/common/Resources.vala:12 msgid "Visit the Shotwell home page" msgstr "Shotwell ev sayfasınnı ziyaret et" -#: plugins/common/Resources.vala:31 src/AppWindow.vala:604 +#: plugins/common/Resources.vala:31 src/AppWindow.vala:603 msgid "translator-credits" msgstr "" "Yiğit Ateş \n" @@ -1478,13 +1525,13 @@ msgstr "" "Emin Tufan Çetin " #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:202 +#: plugins/common/RESTSupport.vala:217 msgid "" "⚫ This website presented identification that belongs to a different website." msgstr "⚫ Bu web sitesi bir başka web sitesine ait olan kimlik sundu." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:207 +#: plugins/common/RESTSupport.vala:222 msgid "" "⚫ This website’s identification is too old to trust. Check the date on your " "computer’s calendar." @@ -1493,20 +1540,20 @@ msgstr "" "takvimi gözden geçirin." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:212 +#: plugins/common/RESTSupport.vala:227 msgid "" "⚫ This website’s identification was not issued by a trusted organization." msgstr "" "⚫ Bu web sitesinin kimliği güvenilen bir kuruluş tarafından verilmemiş." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:217 +#: plugins/common/RESTSupport.vala:232 msgid "" "⚫ This website’s identification could not be processed. It may be corrupted." msgstr "⚫ Bu web sitesinin kimliği işlenemedi. Bozulmuş olabilir." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:222 +#: plugins/common/RESTSupport.vala:237 msgid "" "⚫ This website’s identification has been revoked by the trusted organization " "that issued it." @@ -1515,7 +1562,7 @@ msgstr "" "edilmiş." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:227 +#: plugins/common/RESTSupport.vala:242 msgid "" "⚫ This website’s identification cannot be trusted because it uses very weak " "encryption." @@ -1523,7 +1570,7 @@ msgstr "" "⚫ Bu web sitesinin kimliği güvenilmez çünkü çok düşük şifreleme kullanıyor." #. Possible error message when a site presents a bad certificate. -#: plugins/common/RESTSupport.vala:232 +#: plugins/common/RESTSupport.vala:247 msgid "" "⚫ This website’s identification is only valid for future dates. Check the " "date on your computer’s calendar." @@ -1531,8 +1578,8 @@ msgstr "" "⚫ Bu web sitesinin kimliği yalnızca ileri tarihler için geçerli. " "Bilgisayarınızdaki takvimi gözden geçirin." -#: plugins/common/RESTSupport.vala:509 -#: plugins/shotwell-publishing/TumblrPublishing.vala:959 +#: plugins/common/RESTSupport.vala:524 +#: plugins/shotwell-publishing/TumblrPublishing.vala:623 msgid "A temporary file needed for publishing is unavailable" msgstr "Yayımlama için gerekli geçici bir dosya kullanılamıyor" @@ -1553,7 +1600,7 @@ msgid "Go _Back" msgstr "Geri _Git" #: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:125 -#: ui/shotwell.ui:363 +#: ui/shotwell.ui:76 msgid "_Log in" msgstr "_Oturum aç" @@ -1575,18 +1622,18 @@ msgstr "Yeni _bir albüm" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:86 msgid "_Remove location, tag and camera-identifying data before uploading" -msgstr "Yüklemeden önce konum, etiket ve kamera-tanımlayıcı veriyi _kaldır" +msgstr "Yüklemeden önce konum, etiket ve kamera tanımlayıcı veriyi _kaldır" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:108 msgid "Scaling constraint:" -msgstr "Ölçekleme kısıtlaması:" +msgstr "Ölçek kısıtlaması:" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:124 msgid "pixels" msgstr "piksel" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:158 -#: plugins/shotwell-publishing/FlickrPublishing.vala:880 +#: plugins/shotwell-publishing/FlickrPublishing.vala:687 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1306 #: src/Dimensions.vala:17 msgid "Original size" @@ -1594,8 +1641,8 @@ msgstr "Özgün boyut" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:159 #: src/Dimensions.vala:20 -msgid "Width or height" -msgstr "Genişlik veya yükseklik" +msgid "Longest edge" +msgstr "En uzun köşe" #: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:203 #: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:39 @@ -1618,7 +1665,7 @@ msgstr "_Çıkış" #: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:156 #: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:121 #: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:115 -#: src/CollectionPage.vala:82 src/PhotoPage.vala:2469 +#: src/CollectionPage.vala:82 src/PhotoPage.vala:2492 msgid "_Publish" msgstr "_Yayımla" @@ -1640,7 +1687,7 @@ msgstr "" #: plugins/shotwell-publishing-extras/GalleryConnector.vala:117 msgid "Shotwell default directory" -msgstr "Shotwell öntaımlı dizin" +msgstr "Shotwell öntanımlı dizin" #: plugins/shotwell-publishing-extras/GalleryConnector.vala:801 #, c-format @@ -1693,7 +1740,7 @@ msgid "" "The username and password or API key were incorrect. To try again, re-enter " "your username and password below." msgstr "" -"Kullanıcı adı ve parola veya API anahtarı geçersizdi. Tekrar denemek için, " +"Kullanıcı adı ve parola veya API anahtarı geçersizdi. Yeniden denemek için " "aşağıya kullanıcı adı ve parolanızı girin." #: plugins/shotwell-publishing-extras/GalleryConnector.vala:1819 @@ -1713,40 +1760,20 @@ msgstr "Tanınmayan Kullanıcı" msgid " Site Not Found" msgstr " Site Bulunamadı" -#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:42 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:892 -#: plugins/shotwell-publishing/tumblr_authentication_pane.ui:42 -msgid "_Email address" -msgstr "_Eposta adresi" - -#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:82 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:893 -#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:119 -#: plugins/shotwell-publishing/tumblr_authentication_pane.ui:82 -msgid "_Password" -msgstr "_Şifre" - #: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:100 #: plugins/shotwell-publishing-extras/RajcePublishing.vala:894 msgid "_Remember" -msgstr "_Hatırla" - -#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:120 -#: plugins/shotwell-publishing-extras/RajcePublishing.vala:895 -#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:154 -#: plugins/shotwell-publishing/tumblr_authentication_pane.ui:104 -msgid "Log in" -msgstr "Oturum aç" +msgstr "_Anımsa" #: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:104 #: plugins/shotwell-publishing-extras/RajcePublishing.vala:1015 msgid "An _existing album:" -msgstr "_Varolan bir albüm:" +msgstr "_Var olan albüm:" #: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:123 #: plugins/shotwell-publishing-extras/RajcePublishing.vala:1016 msgid "A _new album named:" -msgstr "_Yeni bir albüm adlandırıldı" +msgstr "Şu adda _yeni albüm:" #: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:141 #: plugins/shotwell-publishing-extras/RajcePublishing.vala:1006 @@ -1773,7 +1800,7 @@ msgstr "Rajce hesabınızla ilişkili e-posta ve parolanızı girin." #: plugins/shotwell-publishing-extras/RajcePublishing.vala:834 msgid "Invalid email and/or password. Please try again" -msgstr "Geçersiz e-posta ve/veya parola. Lütfen tekrar deneyin" +msgstr "Geçersiz e-posta ve/veya parola. Lütfen yeniden deneyin" #: plugins/shotwell-publishing-extras/RajcePublishing.vala:865 msgid "Invalid User Email or Password" @@ -1909,12 +1936,12 @@ msgid "Where would you like to publish the selected photos?" msgstr "Seçilen fotoğrafları nerede yayımlamak istersiniz?" #: plugins/shotwell-publishing/FacebookPublishing.vala:887 -#: plugins/shotwell-publishing/FlickrPublishing.vala:858 +#: plugins/shotwell-publishing/FlickrPublishing.vala:665 msgid "Just me" msgstr "Yalnızca ben" #: plugins/shotwell-publishing/FacebookPublishing.vala:889 -#: plugins/shotwell-publishing/FlickrPublishing.vala:854 +#: plugins/shotwell-publishing/FlickrPublishing.vala:661 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1290 msgid "Everyone" msgstr "Herkes" @@ -1924,7 +1951,15 @@ msgstr "Herkes" msgid "Photo _size:" msgstr "Fotoğraf _boyutu:" -#: plugins/shotwell-publishing/FlickrPublishing.vala:800 +#: plugins/shotwell-publishing/FlickrPublishing.vala:340 +msgid "" +"A file required for publishing is unavailable. Publishing to Flickr can’t " +"continue." +msgstr "" +"Yayımlama için gerekli bir dosya kullanılamıyor. Flickr’da yayımlama devam " +"edemiyor." + +#: plugins/shotwell-publishing/FlickrPublishing.vala:607 #, c-format msgid "" "You are logged into Flickr as %s.\n" @@ -1933,7 +1968,7 @@ msgstr "" "Flickr’da %s olarak oturum açtınız.\n" "\n" -#: plugins/shotwell-publishing/FlickrPublishing.vala:802 +#: plugins/shotwell-publishing/FlickrPublishing.vala:609 #, c-format msgid "" "Your free Flickr account limits how much data you can upload per month.\n" @@ -1943,52 +1978,52 @@ msgstr "" "sınırlandırır.\n" "Bu ay, %s karşıya yükleme kotanız kaldı." -#: plugins/shotwell-publishing/FlickrPublishing.vala:804 +#: plugins/shotwell-publishing/FlickrPublishing.vala:611 msgid "Your Flickr Pro account entitles you to unlimited uploads." msgstr "Flickr Pro hesabınız, sınırsız karşıya yükleme yapmanıza olanak tanır." -#: plugins/shotwell-publishing/FlickrPublishing.vala:809 +#: plugins/shotwell-publishing/FlickrPublishing.vala:616 msgid "Photos _visible to:" msgstr "Fotoğrafları _görebilecekler:" -#: plugins/shotwell-publishing/FlickrPublishing.vala:811 +#: plugins/shotwell-publishing/FlickrPublishing.vala:618 msgid "Videos _visible to:" msgstr "Videolar şunlara _görülebilir:" -#: plugins/shotwell-publishing/FlickrPublishing.vala:814 +#: plugins/shotwell-publishing/FlickrPublishing.vala:621 msgid "Photos and videos _visible to:" msgstr "Fotoğraflar ve videolar _şunlara görülebilir:" -#: plugins/shotwell-publishing/FlickrPublishing.vala:855 +#: plugins/shotwell-publishing/FlickrPublishing.vala:662 msgid "Friends & family only" msgstr "Yalnızca aile & arkadaşlar" -#: plugins/shotwell-publishing/FlickrPublishing.vala:856 +#: plugins/shotwell-publishing/FlickrPublishing.vala:663 msgid "Family only" msgstr "Aileye özel" -#: plugins/shotwell-publishing/FlickrPublishing.vala:857 +#: plugins/shotwell-publishing/FlickrPublishing.vala:664 msgid "Friends only" msgstr "Arkadaşlara özel" -#: plugins/shotwell-publishing/FlickrPublishing.vala:876 +#: plugins/shotwell-publishing/FlickrPublishing.vala:683 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1302 -#: plugins/shotwell-publishing/TumblrPublishing.vala:105 +#: plugins/shotwell-publishing/TumblrPublishing.vala:103 msgid "500 × 375 pixels" msgstr "500 × 375 piksel" -#: plugins/shotwell-publishing/FlickrPublishing.vala:877 +#: plugins/shotwell-publishing/FlickrPublishing.vala:684 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1303 -#: plugins/shotwell-publishing/TumblrPublishing.vala:106 +#: plugins/shotwell-publishing/TumblrPublishing.vala:104 msgid "1024 × 768 pixels" msgstr "1024 × 768 piksel" -#: plugins/shotwell-publishing/FlickrPublishing.vala:878 +#: plugins/shotwell-publishing/FlickrPublishing.vala:685 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1304 msgid "2048 × 1536 pixels" msgstr "2048 × 1536 benek" -#: plugins/shotwell-publishing/FlickrPublishing.vala:879 +#: plugins/shotwell-publishing/FlickrPublishing.vala:686 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1305 msgid "4096 × 3072 pixels" msgstr "4096 × 3072 benek" @@ -2058,19 +2093,17 @@ msgstr "Parolayı Anımsa" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:36 msgid "An _existing category" -msgstr "Var _olan bir kategori" +msgstr "Var _olan kategori" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:110 -#, fuzzy #| msgid "A _new album named:" msgid "A _new album named" -msgstr "_Yeni bir albüm adlandırıldı" +msgstr "Şu adda yeni albüm:" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:142 -#, fuzzy #| msgid "within category:" msgid "within category" -msgstr "kategoride:" +msgstr "şu kategoride:" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:155 msgid "Album comment" @@ -2099,7 +2132,7 @@ msgid "Logout" msgstr "Çıkış" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:268 -#: src/Resources.vala:296 ui/collection.ui:192 +#: src/Resources.vala:266 ui/collection.ui:192 msgid "Publish" msgstr "Yayımla" @@ -2132,7 +2165,8 @@ msgid "Certificate of %s" msgstr "%s’in sertifikası" #: plugins/shotwell-publishing/PiwigoPublishing.vala:1051 -#: src/Resources.vala:167 ui/slideshow_settings.ui:49 +#: src/Resources.vala:137 ui/multitextentrydialog.ui:40 +#: ui/slideshow_settings.ui:52 msgid "_OK" msgstr "_Tamam" @@ -2142,7 +2176,7 @@ msgid "" "password associated with your Piwigo account for that library." msgstr "" "Piwigo fotoğraf kitaplığınızın URL’sinin yanı sıra bu kitaplık için Piwigo " -"hesabınızla ilişkili kullanıcı adınızı ve şifrenizi giriniz." +"hesabınızla ilişkili kullanıcı adınızı ve parolanızı giriniz." #: plugins/shotwell-publishing/PiwigoPublishing.vala:1080 msgid "" @@ -2152,20 +2186,10 @@ msgstr "" "Shotwell Piwigo fotoğraf kitaplığınızla bağlantı kuramıyor. Lüften " "girdiğiniz URL’yi denetleyin" -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1081 -#: plugins/shotwell-publishing/TumblrPublishing.vala:588 -msgid "Username and/or password invalid. Please try again" -msgstr "Kullanıcı adı ve/veya şifre geçersiz. Lütfen tekrar deneyin" - #: plugins/shotwell-publishing/PiwigoPublishing.vala:1112 msgid "Invalid URL" msgstr "Geçersiz URL" -#: plugins/shotwell-publishing/PiwigoPublishing.vala:1117 -#: plugins/shotwell-publishing/TumblrPublishing.vala:615 -msgid "Invalid User Name or Password" -msgstr "Geçersiz Kullanıcı Adı veya Şifre" - #: plugins/shotwell-publishing/PiwigoPublishing.vala:1291 msgid "Admins, Family, Friends, Contacts" msgstr "Yöneticiler, Aile, Arkadaşlar, Bağlantılar" @@ -2202,39 +2226,22 @@ msgstr "Çekirdek Yayımlama Hizmetleri" msgid "Blogs:" msgstr "Bloglar:" -#: plugins/shotwell-publishing/TumblrPublishing.vala:36 +#: plugins/shotwell-publishing/TumblrPublishing.vala:35 msgid "Copyright 2012 BJA Electronics" msgstr "Telif Hakkı 2012 BJA Electronics" -#: plugins/shotwell-publishing/TumblrPublishing.vala:107 +#: plugins/shotwell-publishing/TumblrPublishing.vala:105 msgid "1280 × 853 pixels" msgstr "1280 × 853 piksel" -#: plugins/shotwell-publishing/TumblrPublishing.vala:311 -#: plugins/shotwell-publishing/TumblrPublishing.vala:321 -#, c-format -msgid "“%s” isn’t a valid response to an OAuth authentication request" -msgstr "“%s” bir OAuth kimlik doğrulama isteği için geçerli bir yanıt değildir" - -#: plugins/shotwell-publishing/TumblrPublishing.vala:559 +#: plugins/shotwell-publishing/TumblrPublishing.vala:407 msgid "" "TumblrPublisher: start( ): can’t start; this publisher is not restartable." msgstr "" "TumblrPublisher: start( ): başlatılamıyor; bu yayımcı yeniden başlatılabilir " "değildir." -#: plugins/shotwell-publishing/TumblrPublishing.vala:587 -msgid "Enter the username and password associated with your Tumblr account." -msgstr "" -"Lütfen Tumblr hesabınızla ilişkili kullanıcı adınızı ve şifrenizi giriniz." - -#: plugins/shotwell-publishing/TumblrPublishing.vala:635 -#: plugins/shotwell-publishing/TumblrPublishing.vala:753 -#, c-format -msgid "Could not load UI: %s" -msgstr "Kullanıcı arayüzü yüklenemedi: %s" - -#: plugins/shotwell-publishing/TumblrPublishing.vala:735 +#: plugins/shotwell-publishing/TumblrPublishing.vala:480 #, c-format msgid "" "You are logged into Tumblr as %s.\n" @@ -2328,7 +2335,7 @@ msgstr "Önbellek dizini oluşturulamıyor %s: %s" #: src/AppDirs.vala:74 src/AppDirs.vala:104 #, c-format msgid "Unable to create data directory %s: %s" -msgstr "Veri klasörü oluşturulamadı %s: %s" +msgstr "Veri dizini oluşturulamadı %s: %s" #. If XDG yarfed, use ~/Pictures #: src/AppDirs.vala:168 @@ -2338,12 +2345,12 @@ msgstr "Resimler" #: src/AppDirs.vala:206 #, c-format msgid "Unable to create temporary directory %s: %s" -msgstr "Geçici klasör oluşturulamadı %s: %s" +msgstr "Geçici dizin oluşturulamadı %s: %s" #: src/AppDirs.vala:223 src/AppDirs.vala:254 #, c-format msgid "Unable to create data subdirectory %s: %s" -msgstr "Altklasör oluşturulamadı %s: %s" +msgstr "Altdizin oluşturulamadı %s: %s" #: src/AppDirs.vala:236 #, c-format @@ -2367,16 +2374,18 @@ msgstr "Araç çubuğunu açık olarak sabitle" msgid "Leave fullscreen" msgstr "Tam ekrandan çık" -#: src/AppWindow.vala:531 src/AppWindow.vala:552 src/AppWindow.vala:569 -#: src/data_imports/DataImportsUI.vala:303 -#: src/data_imports/DataImportsUI.vala:421 src/Dialogs.vala:20 -#: src/Dialogs.vala:28 src/Dialogs.vala:1420 src/Dialogs.vala:1443 -#: src/publishing/PublishingUI.vala:303 src/publishing/PublishingUI.vala:527 -#: src/Resources.vala:158 ui/slideshow_settings.ui:35 +#: src/AppWindow.vala:530 src/AppWindow.vala:551 src/AppWindow.vala:568 +#: src/data_imports/DataImportsUI.vala:302 +#: src/data_imports/DataImportsUI.vala:420 src/Dialogs.vala:20 +#: src/Dialogs.vala:28 src/Dialogs.vala:58 src/Dialogs.vala:766 +#: src/Dialogs.vala:789 src/publishing/PublishingUI.vala:305 +#: src/publishing/PublishingUI.vala:529 src/Resources.vala:128 +#: ui/multitextentrydialog.ui:25 ui/slideshow_settings.ui:38 +#: ui/textentrydialog.ui:19 msgid "_Cancel" msgstr "İ_ptal" -#: src/AppWindow.vala:579 +#: src/AppWindow.vala:578 #, c-format msgid "" "A fatal error occurred when accessing Shotwell’s library. Shotwell cannot " @@ -2389,21 +2398,21 @@ msgstr "" "\n" "%s" -#: src/AppWindow.vala:600 +#: src/AppWindow.vala:599 msgid "Visit the Shotwell web site" msgstr "Shotwell web sitesini ziyaret et" -#: src/AppWindow.vala:613 +#: src/AppWindow.vala:612 #, c-format msgid "Unable to display help: %s" msgstr "Yardım görüntülenemiyor: %s" -#: src/AppWindow.vala:621 +#: src/AppWindow.vala:620 #, c-format msgid "Unable to navigate to bug database: %s" msgstr "Hata veri tabanına yönlendirme başarısız: %s" -#: src/AppWindow.vala:629 +#: src/AppWindow.vala:628 #, c-format msgid "Unable to display FAQ: %s" msgstr "SSS gösterilemiyor: %s" @@ -2473,14 +2482,25 @@ msgstr "İçe aktarılamadı (%d)" msgid "Cameras" msgstr "Kameralar" -#: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:718 -#: src/camera/ImportPage.vala:734 src/photos/RawSupport.vala:311 -#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/media.ui:361 -#: ui/photo_context.ui:96 ui/photo.ui:351 ui/tags.ui:361 +#: src/camera/CameraBranch.vala:85 +msgid "List of all discovered camera devices" +msgstr "Tüm keşfedilen kamera aygıtlarını listele" + +#: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:711 +#: src/camera/ImportPage.vala:727 src/photos/RawSupport.vala:311 +#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/faces.ui:361 +#: ui/media.ui:361 ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 msgid "Camera" msgstr "Kamera" -#: src/camera/ImportPage.vala:311 src/Properties.vala:230 +#. Translators: First %s is the name of camera as gotten from GPhoto, second is the GVolume name, e.g. Mass storage camera (510MB volume) +#: src/camera/CameraTable.vala:367 +#, c-format +#| msgid "%s (%d%%)" +msgid "%s (%s)" +msgstr "%s (%s)" + +#: src/camera/ImportPage.vala:311 src/Properties.vala:233 msgid "RAW+JPEG" msgstr "RAW+JPEG" @@ -2490,32 +2510,32 @@ msgid "" msgstr "Kamera ayrılamadı. Kamerayı dosya yöneticisinden ayırmayı deneyin." #. hide duplicates checkbox -#: src/camera/ImportPage.vala:783 +#: src/camera/ImportPage.vala:776 msgid "Hide photos already imported" msgstr "İçe aktarılmış fotoğrafları gizle" -#: src/camera/ImportPage.vala:784 +#: src/camera/ImportPage.vala:777 msgid "Only display photos that have not been imported" msgstr "Yalnızca içe aktarılmamış fotoğrafları görüntüle" -#: src/camera/ImportPage.vala:823 ui/import.ui:13 ui/import.ui:210 +#: src/camera/ImportPage.vala:816 ui/import.ui:13 ui/import.ui:210 msgid "Import _Selected" msgstr "_Seçili Ögeleri İçe Aktar" -#: src/camera/ImportPage.vala:833 ui/import.ui:17 ui/import.ui:214 +#: src/camera/ImportPage.vala:826 ui/import.ui:17 ui/import.ui:214 msgid "Import _All" msgstr "_Tümünü İçe Aktar" -#: src/camera/ImportPage.vala:857 +#: src/camera/ImportPage.vala:850 msgid "The camera seems to be empty. No photos/videos found to import" msgstr "Kamera boş gözüküyor. İçe aktarılacak fotoğraf/video bulunamadı" -#: src/camera/ImportPage.vala:861 +#: src/camera/ImportPage.vala:854 msgid "No new photos/videos found on camera" msgstr "Kamerada hiç yeni fotoğraf/video bulunamadı" #. it's mounted, offer to unmount for the user -#: src/camera/ImportPage.vala:1021 +#: src/camera/ImportPage.vala:1025 msgid "" "Shotwell needs to unmount the camera from the filesystem in order to access " "it. Continue?" @@ -2523,15 +2543,15 @@ msgstr "" "Shotwell, erişim sağlamak için kameranın dosya sisteminden ayrılmasına " "gereksiniyor. Devam edilsin mi?" -#: src/camera/ImportPage.vala:1027 +#: src/camera/ImportPage.vala:1031 msgid "_Unmount" msgstr "_Ayır" -#: src/camera/ImportPage.vala:1032 +#: src/camera/ImportPage.vala:1036 msgid "Please unmount the camera." msgstr "Lütfen kamerayı ayırın." -#: src/camera/ImportPage.vala:1037 +#: src/camera/ImportPage.vala:1041 msgid "" "The camera is locked by another application. Shotwell can only access the " "camera when it’s unlocked. Please close any other application using the " @@ -2541,11 +2561,11 @@ msgstr "" "yalnızca boştayken erişebilir. Lütfen kamerayı kullanan diğer uygulamayı " "kapatın ve yeniden deneyin." -#: src/camera/ImportPage.vala:1047 +#: src/camera/ImportPage.vala:1051 msgid "Please close any other application using the camera." msgstr "Lütfen kamerayı kullanırken diğer programları kapatın." -#: src/camera/ImportPage.vala:1052 +#: src/camera/ImportPage.vala:1056 #, c-format msgid "" "Unable to fetch previews from the camera:\n" @@ -2554,130 +2574,135 @@ msgstr "" "Kameradan önizlemeler alınamadı:\n" "%s" -#: src/camera/ImportPage.vala:1069 +#: src/camera/ImportPage.vala:1073 msgid "Unmounting…" msgstr "Ayrılıyor…" -#: src/camera/ImportPage.vala:1160 +#: src/camera/ImportPage.vala:1166 +#| msgid "Starting import, please wait…" +msgid "Connecting to camera, please wait…" +msgstr "Kameraya bağlanılıyor, lütfen bekleyin…" + +#: src/camera/ImportPage.vala:1198 msgid "Starting import, please wait…" msgstr "İçe aktarım başlıyor, lütfen bekleyin…" -#: src/camera/ImportPage.vala:1177 +#: src/camera/ImportPage.vala:1204 msgid "Fetching photo information" msgstr "Fotoğraf bilgisi alınıyor" -#: src/camera/ImportPage.vala:1535 +#: src/camera/ImportPage.vala:1563 #, c-format msgid "Fetching preview for %s" msgstr "%s için önizleme alınıyor" -#: src/camera/ImportPage.vala:1649 +#: src/camera/ImportPage.vala:1671 #, c-format msgid "Unable to lock camera: %s" msgstr "Kamera kilitlenemedi: %s" -#: src/camera/ImportPage.vala:1734 +#: src/camera/ImportPage.vala:1756 #, c-format msgid "Delete this photo from camera?" msgid_plural "Delete these %d photos from camera?" msgstr[0] "Bu %d fotoğraf kameradan silinsin mi?" -#: src/camera/ImportPage.vala:1737 +#: src/camera/ImportPage.vala:1759 #, c-format msgid "Delete this video from camera?" msgid_plural "Delete these %d videos from camera?" msgstr[0] "Bu %d video kameradan silinsin mi?" -#: src/camera/ImportPage.vala:1740 +#: src/camera/ImportPage.vala:1762 #, c-format msgid "Delete this photo/video from camera?" msgid_plural "Delete these %d photos/videos from camera?" msgstr[0] "Bu %d fotoğraf/video kameradan silinsin mi?" -#: src/camera/ImportPage.vala:1743 +#: src/camera/ImportPage.vala:1765 #, c-format msgid "Delete these files from camera?" msgid_plural "Delete these %d files from camera?" msgstr[0] "Bu %d dosya kameradan silinsin mi?" -#: src/camera/ImportPage.vala:1751 src/Dialogs.vala:1387 +#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:733 msgid "_Keep" msgstr "_Koru" -#: src/camera/ImportPage.vala:1770 +#: src/camera/ImportPage.vala:1792 msgid "Removing photos/videos from camera" msgstr "Fotoğraflar/Videolar kameradan kaldırılıyor" -#: src/camera/ImportPage.vala:1774 +#: src/camera/ImportPage.vala:1796 #, c-format msgid "Unable to delete %d photo/video from the camera due to errors." msgid_plural "Unable to delete %d photos/videos from the camera due to errors." msgstr[0] "%d fotoğraf/video hatalar sebebiyle kameradan silinemiyor." #: src/CollectionPage.vala:80 src/direct/DirectPhotoPage.vala:85 -#: src/PhotoPage.vala:2464 src/Resources.vala:171 +#: src/PhotoPage.vala:2487 src/Resources.vala:141 msgid "_Print" -msgstr "_Baskı" +msgstr "_Yazdır" -#: src/CollectionPage.vala:83 src/Resources.vala:324 ui/collection.ui:128 +#: src/CollectionPage.vala:83 src/Resources.vala:294 ui/collection.ui:128 #: ui/direct_context.ui:23 ui/direct.ui:23 ui/event.ui:567 ui/photo.ui:28 msgid "Send _To…" msgstr "_Gönder…" #: src/CollectionPage.vala:84 src/direct/DirectPhotoPage.vala:90 -#: src/PhotoPage.vala:2474 src/Resources.vala:221 +#: src/PhotoPage.vala:2497 src/Resources.vala:191 msgid "Set as _Desktop Background" msgstr "_Masaüstü Arkapılan olarak ayarla" -#: src/CollectionPage.vala:92 src/Resources.vala:287 +#: src/CollectionPage.vala:92 src/Resources.vala:257 msgid "_Duplicate" msgstr "_Kopya Oluştur" #: src/CollectionPage.vala:100 msgid "Fullscreen" -msgstr "Tam ekran" +msgstr "Tam Ekran" #: src/CollectionPage.vala:102 ui/photo.ui:180 msgid "S_lideshow" msgstr "S_layt Gösterisi" -#: src/CollectionPage.vala:110 src/Resources.vala:140 ui/direct.ui:111 +#: src/CollectionPage.vala:110 src/Resources.vala:110 ui/direct.ui:111 #: ui/photo.ui:200 msgid "Rotate _Right" msgstr "_Sağa Döndür" -#: src/CollectionPage.vala:113 src/Resources.vala:145 ui/direct.ui:116 +#: src/CollectionPage.vala:113 src/Resources.vala:115 ui/direct.ui:116 #: ui/photo.ui:205 msgid "Rotate _Left" msgstr "S_ola Döndür" -#: src/CollectionPage.vala:116 src/Resources.vala:150 ui/direct.ui:121 +#: src/CollectionPage.vala:116 src/Resources.vala:120 ui/direct.ui:121 #: ui/photo.ui:210 msgid "Flip Hori_zontally" msgstr "Ya_tay Döndür" -#: src/CollectionPage.vala:117 src/Resources.vala:153 ui/direct.ui:125 +#: src/CollectionPage.vala:117 src/Resources.vala:123 ui/direct.ui:125 #: ui/photo.ui:214 msgid "Flip Verti_cally" msgstr "Di_key Döndür" -#: src/CollectionPage.vala:119 src/Resources.vala:187 ui/collection.ui:8 +#: src/CollectionPage.vala:119 src/Resources.vala:157 ui/collection.ui:8 #: ui/direct_context.ui:7 ui/direct.ui:134 ui/event.ui:447 #: ui/photo_context.ui:6 ui/photo.ui:223 msgid "_Enhance" msgstr "_İyileştir" -#: src/CollectionPage.vala:120 src/Resources.vala:215 ui/collection.ui:13 +#: src/CollectionPage.vala:120 src/Resources.vala:185 ui/collection.ui:13 #: ui/direct_context.ui:12 ui/direct.ui:161 ui/event.ui:452 #: ui/photo_context.ui:11 ui/photo.ui:250 msgid "Re_vert to Original" msgstr "Özgün Haline Dö_ndür" -#: src/CollectionPage.vala:122 src/Resources.vala:191 ui/photo.ui:256 +#: src/CollectionPage.vala:122 src/Resources.vala:161 ui/photo.ui:256 msgid "_Copy Color Adjustments" msgstr "Renk Düzenlemelerini _Kopyala" -#: src/CollectionPage.vala:125 src/Resources.vala:195 ui/photo.ui:261 +#: src/CollectionPage.vala:125 src/Resources.vala:165 ui/photo.ui:261 msgid "_Paste Color Adjustments" msgstr "Renk Düzenlemelerini _Yapıştır" @@ -2685,17 +2710,17 @@ msgstr "Renk Düzenlemelerini _Yapıştır" msgid "Adjust Date and Time…" msgstr "Tarih ve Zamanı Ayarla…" -#: src/CollectionPage.vala:143 src/Resources.vala:320 ui/collection.ui:108 -#: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:360 +#: src/CollectionPage.vala:143 src/Resources.vala:290 ui/collection.ui:108 +#: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:361 msgid "Open With E_xternal Editor" msgstr "_Harici Düzenleyici ile Aç" -#: src/CollectionPage.vala:146 src/Resources.vala:322 ui/collection.ui:113 -#: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:365 +#: src/CollectionPage.vala:146 src/Resources.vala:292 ui/collection.ui:113 +#: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:366 msgid "Open With RA_W Editor" msgstr "RA_W Düzenleyici İle Aç" -#: src/CollectionPage.vala:149 src/Resources.vala:168 +#: src/CollectionPage.vala:149 src/Resources.vala:138 msgid "_Play" msgstr "_Oynat" @@ -2704,7 +2729,7 @@ msgid "Export Photo/Video" msgid_plural "Export Photos/Videos" msgstr[0] "Resimleri/Videoları Dışa Aktar" -#: src/CollectionPage.vala:412 src/Dialogs.vala:59 src/PhotoPage.vala:2998 +#: src/CollectionPage.vala:412 src/Dialogs.vala:74 src/PhotoPage.vala:3021 msgid "Export Photo" msgid_plural "Export Photos" msgstr[0] "Fotoğrafları Dışa Aktar" @@ -2757,150 +2782,150 @@ msgstr "Renk Dönüşümleri Uygulanıyor" msgid "Undoing Color Transformations" msgstr "Renk Dönüşümleri Geri Alınıyor" -#: src/Commands.vala:1007 +#: src/Commands.vala:1006 msgid "Creating New Event" msgstr "Yeni Olay Oluşturuluyor" -#: src/Commands.vala:1008 +#: src/Commands.vala:1007 msgid "Removing Event" msgstr "Olay Kaldırılıyor" -#: src/Commands.vala:1017 +#: src/Commands.vala:1016 msgid "Moving Photos to New Event" msgstr "Fotoğraflar Yeni Olaya Taşınıyor" -#: src/Commands.vala:1018 +#: src/Commands.vala:1017 msgid "Setting Photos to Previous Event" msgstr "Fotoğraflar Önceki Olayla İlişkilendiriliyor" -#: src/Commands.vala:1075 +#: src/Commands.vala:1074 msgid "Merging" msgstr "Birleştiriliyor" -#: src/Commands.vala:1076 +#: src/Commands.vala:1075 msgid "Unmerging" msgstr "Ayrılıyor" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Duplicating photos" msgstr "Fotoğraflar çoğaltılıyor" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Removing duplicated photos" msgstr "Yinelenen fotoğraflar kaldırılıyor" -#: src/Commands.vala:1108 +#: src/Commands.vala:1107 #, c-format msgid "Unable to duplicate one photo due to a file error" msgid_plural "Unable to duplicate %d photos due to file errors" msgstr[0] "%d fotoğraf, dosya hatası nedeniyle çoğaltılamadı" -#: src/Commands.vala:1195 +#: src/Commands.vala:1194 msgid "Restoring previous rating" -msgstr "Önceki puanlamaya geri dön" +msgstr "Önceki puana geri dön" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Increasing ratings" -msgstr "Puanlandırmalar artırılıyor" +msgstr "Puanlar artırılıyor" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Decreasing ratings" -msgstr "Puanlandırmalar düşürülüyor" +msgstr "Puanlar düşürülüyor" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Setting RAW developer" msgstr "RAW geliştiricisi ayarlanıyor" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Restoring previous RAW developer" msgstr "Önceki RAW geliştirici onarılıyor" -#: src/Commands.vala:1257 +#: src/Commands.vala:1256 msgid "Set Developer" msgstr "Geliştirici Ayarla" -#: src/Commands.vala:1347 +#: src/Commands.vala:1346 msgid "Original photo could not be adjusted." msgstr "Özgün fotoğraf ayarlanamadı." -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Adjusting Date and Time" msgstr "Tarih ve Saat Ayarlanıyor" -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Undoing Date and Time Adjustment" msgstr "Tarih ve Saat Ayarlama İşlemi Geri Alınıyor" -#: src/Commands.vala:1399 +#: src/Commands.vala:1398 msgid "One original photo could not be adjusted." msgid_plural "The following original photos could not be adjusted." msgstr[0] "Özgün fotoğraf(lar) ayarlanamadı." -#: src/Commands.vala:1401 src/Commands.vala:1425 +#: src/Commands.vala:1400 src/Commands.vala:1424 msgid "Time Adjustment Error" msgstr "Saat Ayarlama Hatası" -#: src/Commands.vala:1423 +#: src/Commands.vala:1422 msgid "Time adjustments could not be undone on the following photo file." msgid_plural "" "Time adjustments could not be undone on the following photo files." msgstr[0] "" "Zaman ayarlamaları sonraki fotoğraf dosyası(ları) üzerine geri alınamaz." -#: src/Commands.vala:1637 src/Commands.vala:1660 +#: src/Commands.vala:1636 src/Commands.vala:1659 msgid "Create Tag" msgstr "Etiket Oluştur" -#: src/Commands.vala:1695 +#: src/Commands.vala:1694 #, c-format msgid "Move Tag “%s”" msgstr "“%s” Etiketini Taşı" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Move Photos to Trash" msgstr "Fotoğrafları Çöpe Taşı" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Restore Photos from Trash" msgstr "Çöpteki Fotoğrafları Geri Getir" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Move the photos to the Shotwell trash" msgstr "Fotoğrafları Shotwell çöp kutusuna taşı" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Restore the photos back to the Shotwell library" msgstr "Shotwell kitaplığındaki fotoğrafları geri getir" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Moving Photos to Trash" msgstr "Fotoğraflar Çöp Kutusuna Taşınıyor" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Restoring Photos From Trash" msgstr "Fotoğraflar Çöp Kutusundan Geri Getiriliyor" -#: src/Commands.vala:2453 +#: src/Commands.vala:2452 msgid "Flag selected photos" msgstr "Seçili fotoğrafları işaretle" -#: src/Commands.vala:2454 +#: src/Commands.vala:2453 msgid "Unflag selected photos" msgstr "Seçili fotoğrafların işaretini kaldır" -#: src/Commands.vala:2455 +#: src/Commands.vala:2454 msgid "Flagging selected photos" msgstr "Seçili fotoğraflar işaretleniyor" -#: src/Commands.vala:2456 +#: src/Commands.vala:2455 msgid "Unflagging selected photos" msgstr "Seçili fotoğrafların işaretleri kaldırılıyor" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Flag" msgstr "İşaretle" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Unflag" msgstr "İşaretleme" @@ -2941,19 +2966,19 @@ msgstr "" msgid "Database file:" msgstr "Veri tabanı dosyası:" -#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:781 +#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:783 msgid "_Import" msgstr "_İçe Aktar" -#: src/data_imports/DataImportsUI.vala:220 +#: src/data_imports/DataImportsUI.vala:219 msgid "Import From Application" msgstr "Uygulamadan İçe Aktar" -#: src/data_imports/DataImportsUI.vala:221 +#: src/data_imports/DataImportsUI.vala:220 msgid "Import media _from:" msgstr "Ortamı _şuradan içe aktar:" -#: src/data_imports/DataImportsUI.vala:416 src/publishing/PublishingUI.vala:522 +#: src/data_imports/DataImportsUI.vala:415 src/publishing/PublishingUI.vala:524 msgid "_Close" msgstr "_Kapat" @@ -3019,12 +3044,13 @@ msgstr "Masaüstü slayt gösterisi hazırlanamadı: %s" msgid "This will remove the tag “%s” from one photo. Continue?" msgid_plural "This will remove the tag “%s” from %d photos. Continue?" msgstr[0] "" -"Bu işlem “%s” etiketini %d fotoğraftan kaldıracak. Devam edilsin mi? " +"Bu işlem “%s” etiketini %d fotoğraftan kaldıracak. Devam edilsin mi?" -#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:1388 -#: src/Resources.vala:159 src/Resources.vala:362 src/Resources.vala:415 -#: src/Resources.vala:659 ui/savedsearch.ui:15 ui/tags.ui:460 ui/trash.ui:63 -#: ui/trash.ui:216 ui/trash.ui:258 +#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:58 +#: src/Dialogs.vala:734 src/Resources.vala:129 src/Resources.vala:310 +#: src/Resources.vala:341 src/Resources.vala:394 src/Resources.vala:734 +#: ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 ui/trash.ui:216 +#: ui/trash.ui:258 msgid "_Delete" msgstr "_Sil" @@ -3048,11 +3074,19 @@ msgstr[0] "" msgid "_Switch Developer" msgstr "_Geliştirici Değiştir" -#: src/Dialogs.vala:59 +#: src/Dialogs.vala:54 +#, c-format +#| msgid "This will remove the tag “%s” from one photo. Continue?" +#| msgid_plural "This will remove the tag “%s” from %d photos. Continue?" +msgid "This will remove the face “%s” from one photo. Continue?" +msgid_plural "This will remove the face “%s” from %d photos. Continue?" +msgstr[0] "Bu işlem “%s” yüzünü %d fotoğraftan kaldıracak. Devam edilsin mi?" + +#: src/Dialogs.vala:74 msgid "Export Video" msgstr "Video Ihracatı" -#: src/Dialogs.vala:84 +#: src/Dialogs.vala:99 msgid "Export Photos" msgstr "Fotoğrafları Dışa Aktar" @@ -3061,7 +3095,7 @@ msgstr "Fotoğrafları Dışa Aktar" #. if we can't copy an image over for editing in an external tool. #. Did we fail because we can't write to this directory? #. Yes - display an alternate error message here. -#: src/Dialogs.vala:112 +#: src/Dialogs.vala:127 #, c-format msgid "" "Shotwell couldn’t create a file for editing this photo because you do not " @@ -3070,7 +3104,7 @@ msgstr "" "Shotwell bu fotoğrafı düzenlemek için bir dosya oluşturamıyor çünkü %s’e " "yazmaya izniniz yok." -#: src/Dialogs.vala:121 +#: src/Dialogs.vala:136 msgid "" "Unable to export the following photo due to a file error.\n" "\n" @@ -3078,7 +3112,7 @@ msgstr "" "İzleyen fotoğraf bir dosya hatası nedeniyle dışa aktarılamadı.\n" "\n" -#: src/Dialogs.vala:127 +#: src/Dialogs.vala:142 msgid "" "\n" "\n" @@ -3088,62 +3122,34 @@ msgstr "" "\n" "Dışa aktarmaya devam etmek istiyor musunuz?" -#. "Unmodified" and "Current," though they appear in the "Format:" popup menu, really -#. aren't formats so much as they are operating modes that determine specific formats. -#. Hereafter we'll refer to these as "special formats." -#: src/Dialogs.vala:144 -msgid "Unmodified" -msgstr "Değiştirilmemiş" - -#: src/Dialogs.vala:145 -msgid "Current" -msgstr "Mevcut" - -#. layout controls -#: src/Dialogs.vala:221 -msgid "_Format:" -msgstr "_Biçim:" - -#: src/Dialogs.vala:224 -msgid "_Quality:" -msgstr "_Kalite:" - -#: src/Dialogs.vala:227 -msgid "_Scaling constraint:" -msgstr "_Baskı ölçeklendiriliyor:" - -#: src/Dialogs.vala:230 -msgid "_Pixels:" -msgstr "_Piksel:" - -#: src/Dialogs.vala:234 -msgid "Export _metadata:" -msgstr "_Üstveriyi dışa aktar:" +#: src/Dialogs.vala:143 +msgid "Con_tinue" +msgstr "Devam _Et" -#: src/Dialogs.vala:478 +#: src/Dialogs.vala:153 msgid "Save Details…" msgstr "Ayrıntıları Kaydet…" -#: src/Dialogs.vala:479 +#: src/Dialogs.vala:154 msgid "Save Details" msgstr "Detayları Kaydet" -#: src/Dialogs.vala:494 +#: src/Dialogs.vala:169 #, c-format msgid "(and %d more)\n" msgstr "(ve %d tane daha)\n" -#: src/Dialogs.vala:547 +#: src/Dialogs.vala:222 msgid "Import Results Report" msgstr "Sonuç Raporunu İçe Aktar" -#: src/Dialogs.vala:551 +#: src/Dialogs.vala:226 #, c-format msgid "Attempted to import %d file." msgid_plural "Attempted to import %d files." msgstr[0] "%d dosya içe aktarılmaya çalışıldı." -#: src/Dialogs.vala:554 +#: src/Dialogs.vala:229 #, c-format msgid "Of these, %d file was successfully imported." msgid_plural "Of these, %d files were successfully imported." @@ -3152,37 +3158,37 @@ msgstr[0] "Bunlardan, %d dosya başarıyla içe aktarıldı." #. #. Duplicates #. -#: src/Dialogs.vala:566 +#: src/Dialogs.vala:241 msgid "Duplicate Photos/Videos Not Imported:" msgstr "İçe Aktarılmayan Fotoğraf/Videoları çoğalt:" -#: src/Dialogs.vala:570 +#: src/Dialogs.vala:245 msgid "duplicates existing media item" msgstr "mevcut ortam ögesini çoğaltır" #. #. Files Not Imported Due to Camera Errors #. -#: src/Dialogs.vala:581 +#: src/Dialogs.vala:256 msgid "Photos/Videos Not Imported Due to Camera Errors:" msgstr "Kamera Hataları Sebebiyle İçe Aktarılmayan Fotoğraflar/Videolar:" -#: src/Dialogs.vala:584 src/Dialogs.vala:599 src/Dialogs.vala:614 -#: src/Dialogs.vala:630 src/Dialogs.vala:645 src/Dialogs.vala:659 +#: src/Dialogs.vala:259 src/Dialogs.vala:274 src/Dialogs.vala:289 +#: src/Dialogs.vala:305 src/Dialogs.vala:320 src/Dialogs.vala:334 msgid "error message:" msgstr "hata mesajı:" #. #. Files Not Imported Because They Weren't Recognized as Photos or Videos #. -#: src/Dialogs.vala:595 +#: src/Dialogs.vala:270 msgid "Files Not Imported Because They Weren’t Recognized as Photos or Videos:" msgstr "Fotoğraf Veya Video Olarak Tanınmadığı İçin İçe Aktarılmayan Dosyalar:" #. #. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands #. -#: src/Dialogs.vala:610 +#: src/Dialogs.vala:285 msgid "" "Photos/Videos Not Imported Because They Weren’t in a Format Shotwell " "Understands:" @@ -3193,7 +3199,7 @@ msgstr "" #. #. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library #. -#: src/Dialogs.vala:625 +#: src/Dialogs.vala:300 msgid "" "Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into its " "Library:" @@ -3201,7 +3207,7 @@ msgstr "" "Shotwell Kendi Kitaplığına Kopyalayamadığı İçin İçe Aktarılmayan Fotoğraflar/" "Videolar:" -#: src/Dialogs.vala:629 +#: src/Dialogs.vala:304 #, c-format msgid "" "couldn’t copy %s\n" @@ -3213,50 +3219,50 @@ msgstr "" #. #. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt #. -#: src/Dialogs.vala:641 +#: src/Dialogs.vala:316 msgid "Photos/Videos Not Imported Because Files Are Corrupt:" msgstr "Dosyalar Bozuk Olduğundan Fotoğraflar/Videolar İçe Aktarılmadı:" #. #. Photos/Videos Not Imported for Other Reasons #. -#: src/Dialogs.vala:656 +#: src/Dialogs.vala:331 msgid "Photos/Videos Not Imported for Other Reasons:" msgstr "Başka Sebeplerden İçe Aktarılmayan Fotoğraflar/Videolar:" -#: src/Dialogs.vala:676 +#: src/Dialogs.vala:351 #, c-format msgid "1 duplicate photo was not imported:\n" msgid_plural "%d duplicate photos were not imported:\n" msgstr[0] "%d fotoğraf kopyası içe aktarılmadı:\n" -#: src/Dialogs.vala:679 +#: src/Dialogs.vala:354 #, c-format msgid "1 duplicate video was not imported:\n" msgid_plural "%d duplicate videos were not imported:\n" msgstr[0] "%d video kopyası içe aktarılmadı:\n" -#: src/Dialogs.vala:682 +#: src/Dialogs.vala:357 #, c-format msgid "1 duplicate photo/video was not imported:\n" msgid_plural "%d duplicate photos/videos were not imported:\n" msgstr[0] "%d fotoğraf/video kopyası içe aktarılmadı:\n" -#: src/Dialogs.vala:696 +#: src/Dialogs.vala:371 #, c-format msgid "1 photo failed to import due to a file or hardware error:\n" msgid_plural "%d photos failed to import due to a file or hardware error:\n" msgstr[0] "" "%d fotoğrafın dosya veya donanım hatası dolayısıyla içe aktarımı başarısız:\n" -#: src/Dialogs.vala:699 +#: src/Dialogs.vala:374 #, c-format msgid "1 video failed to import due to a file or hardware error:\n" msgid_plural "%d videos failed to import due to a file or hardware error:\n" msgstr[0] "" "%d videonun dosya veya donanım hatası dolayısıyla içe aktarımı başarısız:\n" -#: src/Dialogs.vala:702 +#: src/Dialogs.vala:377 #, c-format msgid "1 photo/video failed to import due to a file or hardware error:\n" msgid_plural "" @@ -3265,14 +3271,14 @@ msgstr[0] "" "%d fotoğrafın/videonun dosya veya donanım hatası dolayısıyla içe aktarımı " "başarısız:\n" -#: src/Dialogs.vala:705 +#: src/Dialogs.vala:380 #, c-format msgid "1 file failed to import due to a file or hardware error:\n" msgid_plural "%d files failed to import due to a file or hardware error:\n" msgstr[0] "" "%d dosyanın içe aktarımı dosya veya donanım hatası dolayısıyla başarısız:\n" -#: src/Dialogs.vala:719 +#: src/Dialogs.vala:394 #, c-format msgid "" "1 photo failed to import because the photo library folder was not writable:\n" @@ -3283,7 +3289,7 @@ msgstr[0] "" "%d fotoğrafın içe aktarımı başarısız çünkü fotoğraf kitaplığı klasörü " "yazılabilir değildi:\n" -#: src/Dialogs.vala:722 +#: src/Dialogs.vala:397 #, c-format msgid "" "1 video failed to import because the photo library folder was not writable:\n" @@ -3294,7 +3300,7 @@ msgstr[0] "" "%d videonun içe aktarımı başarısız çünkü fotoğraf kitaplığı klasörü " "yazılabilir değildi:\n" -#: src/Dialogs.vala:725 +#: src/Dialogs.vala:400 #, c-format msgid "" "1 photo/video failed to import because the photo library folder was not " @@ -3306,7 +3312,7 @@ msgstr[0] "" "%d fotoğrafın/videonun içe aktarımı başarısız çünkü fotoğraf kitaplığı " "klasörü yazılabilir değildi:\n" -#: src/Dialogs.vala:728 +#: src/Dialogs.vala:403 #, c-format msgid "" "1 file failed to import because the photo library folder was not writable:\n" @@ -3317,50 +3323,50 @@ msgstr[0] "" "%d dosyanın içe aktarımı başarısız çünkü fotoğraf kitaplığı klasörü " "yazılabilir değildi:\n" -#: src/Dialogs.vala:742 +#: src/Dialogs.vala:417 #, c-format msgid "1 photo failed to import due to a camera error:\n" msgid_plural "%d photos failed to import due to a camera error:\n" msgstr[0] "%d fotoğrafın içe aktarımı kamera hatası dolayısıyla başarısız:\n" -#: src/Dialogs.vala:745 +#: src/Dialogs.vala:420 #, c-format msgid "1 video failed to import due to a camera error:\n" msgid_plural "%d videos failed to import due to a camera error:\n" msgstr[0] "%d videonun içe aktarımı kamera hatası dolayısıyla başarısız:\n" -#: src/Dialogs.vala:748 +#: src/Dialogs.vala:423 #, c-format msgid "1 photo/video failed to import due to a camera error:\n" msgid_plural "%d photos/videos failed to import due to a camera error:\n" msgstr[0] "" "%d fotoğrafın/videonun içe aktarımı kamera hatası dolayısıyla başarısız:\n" -#: src/Dialogs.vala:751 +#: src/Dialogs.vala:426 #, c-format msgid "1 file failed to import due to a camera error:\n" msgid_plural "%d files failed to import due to a camera error:\n" msgstr[0] "%d dosyanın içe aktarımı kamera hatası dolayısıyla başarısız:\n" -#: src/Dialogs.vala:765 +#: src/Dialogs.vala:440 #, c-format msgid "1 photo failed to import because it was corrupt:\n" msgid_plural "%d photos failed to import because they were corrupt:\n" msgstr[0] "%d fotoğraf bozuk olduğundan içe aktarılamadı:\n" -#: src/Dialogs.vala:768 +#: src/Dialogs.vala:443 #, c-format msgid "1 video failed to import because it was corrupt:\n" msgid_plural "%d videos failed to import because they were corrupt:\n" msgstr[0] "%d video bozuk olduğundan içe aktarılamadı:\n" -#: src/Dialogs.vala:771 +#: src/Dialogs.vala:446 #, c-format msgid "1 photo/video failed to import because it was corrupt:\n" msgid_plural "%d photos/videos failed to import because they were corrupt:\n" msgstr[0] "%d fotoğraf/video bozuk olduğundan içe aktarılamadı:\n" -#: src/Dialogs.vala:774 +#: src/Dialogs.vala:449 #, c-format msgid "1 file failed to import because it was corrupt:\n" msgid_plural "%d files failed to import because it was corrupt:\n" @@ -3370,7 +3376,7 @@ msgstr[0] "%d dosya bozuk olduğundan içe aktarılamadı:\n" #. standard container formats are supported, it's just that the streams in them #. might or might not be interpretable), so this message does not need to be #. media specific -#: src/Dialogs.vala:791 +#: src/Dialogs.vala:466 #, c-format msgid "1 unsupported photo skipped:\n" msgid_plural "%d unsupported photos skipped:\n" @@ -3378,49 +3384,49 @@ msgstr[0] "%d desteklenmeyen fotoğraf atlandı:\n" #. we have no notion of "non-video" video files right now in Shotwell, so this #. message doesn't need to be media specific -#: src/Dialogs.vala:806 +#: src/Dialogs.vala:481 #, c-format msgid "1 non-image file skipped.\n" msgid_plural "%d non-image files skipped.\n" msgstr[0] "%d resim olmayan dosya atlandı:\n" -#: src/Dialogs.vala:817 +#: src/Dialogs.vala:492 #, c-format msgid "1 photo skipped due to user cancel:\n" msgid_plural "%d photos skipped due to user cancel:\n" msgstr[0] "%d fotoğraf kulanıcının iptali dolayısıyla atlandı:\n" -#: src/Dialogs.vala:820 +#: src/Dialogs.vala:495 #, c-format msgid "1 video skipped due to user cancel:\n" msgid_plural "%d videos skipped due to user cancel:\n" msgstr[0] "%d video kulanıcının iptali dolayısıyla atlandı:\n" -#: src/Dialogs.vala:823 +#: src/Dialogs.vala:498 #, c-format msgid "1 photo/video skipped due to user cancel:\n" msgid_plural "%d photos/videos skipped due to user cancel:\n" msgstr[0] "%d fotoğraf/video kulanıcının iptali dolayısıyla atlandı:\n" -#: src/Dialogs.vala:826 +#: src/Dialogs.vala:501 #, c-format msgid "1 file skipped due to user cancel:\n" msgid_plural "%d file skipped due to user cancel:\n" msgstr[0] "%d dosya kulanıcının iptali dolayısıyla atlandı:\n" -#: src/Dialogs.vala:840 +#: src/Dialogs.vala:515 #, c-format msgid "1 photo successfully imported.\n" msgid_plural "%d photos successfully imported.\n" msgstr[0] "%d fotoğraf başarıyla içe aktarıldı.\n" -#: src/Dialogs.vala:843 +#: src/Dialogs.vala:518 #, c-format msgid "1 video successfully imported.\n" msgid_plural "%d videos successfully imported.\n" msgstr[0] "%d video başarıyla içe aktarıldı.\n" -#: src/Dialogs.vala:846 +#: src/Dialogs.vala:521 #, c-format msgid "1 photo/video successfully imported.\n" msgid_plural "%d photos/videos successfully imported.\n" @@ -3428,85 +3434,63 @@ msgstr[0] "%d fotoğraf/video başarıyla içe aktarıldı.\n" #. if no media items were imported at all (i.e. an empty directory attempted), need to at least #. report that nothing was imported -#: src/Dialogs.vala:862 +#: src/Dialogs.vala:537 msgid "No photos or videos imported.\n" msgstr "Alınan resim ve videolar yok.\n" -#: src/Dialogs.vala:869 src/Dialogs.vala:888 +#: src/Dialogs.vala:544 src/Dialogs.vala:563 msgid "Import Complete" msgstr "İçe Aktarma Tamamlandı" -#: src/Dialogs.vala:1160 -#, c-format -msgid "%d second" -msgid_plural "%d seconds" -msgstr[0] "%d saniye" - -#: src/Dialogs.vala:1163 -#, c-format -msgid "%d minute" -msgid_plural "%d minutes" -msgstr[0] "%d dakika" - -#: src/Dialogs.vala:1167 -#, c-format -msgid "%d hour" -msgid_plural "%d hours" -msgstr[0] "%d saat" - -#: src/Dialogs.vala:1170 -msgid "1 day" -msgstr "1 gün" - -#: src/Dialogs.vala:1317 src/Resources.vala:232 +#: src/Dialogs.vala:663 src/Resources.vala:202 msgid "Rename Event" msgstr "Olayı Yeniden Adlandır" -#: src/Dialogs.vala:1317 +#: src/Dialogs.vala:663 msgid "Name:" msgstr "Ad:" #. Dialog title -#: src/Dialogs.vala:1328 +#: src/Dialogs.vala:674 msgctxt "Dialog Title" msgid "Edit Title" msgstr "Başlığı Düzenle" -#: src/Dialogs.vala:1329 src/Properties.vala:343 +#: src/Dialogs.vala:675 src/Properties.vala:346 msgid "Title:" msgstr "Başlık:" #. Dialog title -#: src/Dialogs.vala:1345 src/Resources.vala:308 +#: src/Dialogs.vala:691 src/Resources.vala:278 msgid "Edit Event Comment" msgstr "Olay Yorumunu Düzenle" -#: src/Dialogs.vala:1346 +#: src/Dialogs.vala:692 msgid "Edit Photo/Video Comment" msgstr "Fotoğraf/Video Yorumu Düzenle" -#: src/Dialogs.vala:1347 src/Properties.vala:631 +#: src/Dialogs.vala:693 src/Properties.vala:645 msgid "Comment:" msgstr "Yorum:" -#: src/Dialogs.vala:1363 +#: src/Dialogs.vala:709 msgid "Remove and _Trash File" msgid_plural "Remove and _Trash Files" msgstr[0] "Dosyayı Sil ve _Çöpe Gönder" -#: src/Dialogs.vala:1367 +#: src/Dialogs.vala:713 msgid "_Remove From Library" msgstr "_Kitaplıktan Kaldır" -#: src/Dialogs.vala:1410 +#: src/Dialogs.vala:756 msgid "Revert External Edit?" msgstr "Harici Düzenlemeye Dönsün mü?" -#: src/Dialogs.vala:1410 +#: src/Dialogs.vala:756 msgid "Revert External Edits?" msgstr "Harici Düzenlemelere Dönsün mü?" -#: src/Dialogs.vala:1412 +#: src/Dialogs.vala:758 #, c-format msgid "This will destroy all changes made to the external file. Continue?" msgid_plural "" @@ -3515,118 +3499,33 @@ msgstr[0] "" "Bu işlem %d harici dosyaya yapılan tüm değişiklikleri yok edecek. Devam " "edilsin mi?" -#: src/Dialogs.vala:1416 +#: src/Dialogs.vala:762 msgid "Re_vert External Edit" msgstr "Harici Düzenlemeye D_ön" -#: src/Dialogs.vala:1416 +#: src/Dialogs.vala:762 msgid "Re_vert External Edits" msgstr "Harici Düzenlemelere D_ön" -#: src/Dialogs.vala:1437 +#: src/Dialogs.vala:783 #, c-format msgid "This will remove the photo from the library. Continue?" msgid_plural "This will remove %d photos from the library. Continue?" -msgstr[0] "Bu işlem kitaplıktan %d fotoğrafı kaldıracak. Devam edilsin mi? " +msgstr[0] "Bu işlem kitaplıktan %d fotoğrafı kaldıracak. Devam edilsin mi?" -#: src/Dialogs.vala:1444 src/Resources.vala:174 +#: src/Dialogs.vala:790 src/Resources.vala:144 msgid "_Remove" msgstr "_Kaldır" -#: src/Dialogs.vala:1445 +#: src/Dialogs.vala:791 msgid "Remove Photo From Library" msgstr "Kitaplıktan Fotoğrafı Kaldır" -#: src/Dialogs.vala:1445 +#: src/Dialogs.vala:791 msgid "Remove Photos From Library" msgstr "Kitaplıktan Fotoğrafları Kaldır" -#: src/Dialogs.vala:1543 -#, c-format -msgid "%d%%" -msgstr "%d%%" - -#: src/Dialogs.vala:1697 -msgid "AM" -msgstr "ÖÖ" - -#: src/Dialogs.vala:1698 -msgid "PM" -msgstr "ÖS" - -#: src/Dialogs.vala:1699 -msgid "24 Hr" -msgstr "24 Saat" - -#: src/Dialogs.vala:1714 -msgid "_Shift photos/videos by the same amount" -msgstr "_Aynı değerde olan fotoğrafları/videoları değiştir" - -#: src/Dialogs.vala:1719 -msgid "Set _all photos/videos to this time" -msgstr "Tüm fotoğrafları/videoları bu zamana _ayarla" - -#: src/Dialogs.vala:1725 -msgid "_Modify original photo file" -msgid_plural "_Modify original photo files" -msgstr[0] "Özgün fotoğraf dosyasını _değiştir" - -#: src/Dialogs.vala:1729 -msgid "_Modify original file" -msgid_plural "_Modify original files" -msgstr[0] "Özgün dosyayı _değiştir" - -#: src/Dialogs.vala:1817 -msgid "Original: " -msgstr "Özgün:" - -#: src/Dialogs.vala:1818 -msgid "%m/%d/%Y, %H:%M:%S" -msgstr "%d/%m/%Y, %H:%M:%S" - -#: src/Dialogs.vala:1819 -msgid "%m/%d/%Y, %I:%M:%S %p" -msgstr "%d/m/%Y, %I:%M:%S %p" - -#: src/Dialogs.vala:1908 -#, c-format -msgid "" -"Exposure time will be shifted forward by\n" -"%d %s, %d %s, %d %s, and %d %s." -msgstr "" -"Çekim tarihi ileri ötelenecek\n" -"%d %s, %d %s, %d %s, and %d %s." - -#: src/Dialogs.vala:1909 -#, c-format -msgid "" -"Exposure time will be shifted backward by\n" -"%d %s, %d %s, %d %s, and %d %s." -msgstr "" -"Çekim tarihi ötelenecek\n" -"%d %s, %d %s, %d %s, and %d %s." - -#: src/Dialogs.vala:1911 -msgid "day" -msgid_plural "days" -msgstr[0] "gün" - -#: src/Dialogs.vala:1912 -msgid "hour" -msgid_plural "hours" -msgstr[0] "saat" - -#: src/Dialogs.vala:1913 -msgid "minute" -msgid_plural "minutes" -msgstr[0] "dakika" - -#: src/Dialogs.vala:1914 -msgid "second" -msgid_plural "seconds" -msgstr[0] "saniye" - -#: src/Dialogs.vala:1958 +#: src/Dialogs.vala:811 #, c-format msgid "" "\n" @@ -3639,96 +3538,15 @@ msgid_plural "" msgstr[0] "" "\n" "\n" -"Ve %d diğer(ler)i." +"Ve diğer %d." -#: src/Dialogs.vala:1982 src/Dialogs.vala:2009 +#: src/Dialogs.vala:835 src/Dialogs.vala:862 msgid "Tags (separated by commas):" msgstr "Etiketler (virgülle ayrılmış):" -#: src/Dialogs.vala:2089 -msgid "Welcome!" -msgstr "Hoşgeldiniz!" - -#: src/Dialogs.vala:2096 -msgid "Welcome to Shotwell!" -msgstr "Shotwell’e Hoş Geldiniz!" - -#: src/Dialogs.vala:2101 -msgid "To get started, import photos in any of these ways:" -msgstr "" -"Başlangıç olarak, fotoğraflarınızı şu yöntemlerden birini kullanarak içe " -"aktarabilirsiniz:" - -#: src/Dialogs.vala:2121 -#, c-format -msgid "Choose File %s Import From Folder" -msgstr "Seç Dosya %s Dizinden İçeri Aktar" - -#: src/Dialogs.vala:2122 -msgid "Drag and drop photos onto the Shotwell window" -msgstr "Fotoğrafları sürükleyip Shotwell penceresine bırakın" - -#: src/Dialogs.vala:2123 -msgid "Connect a camera to your computer and import" -msgstr "Bilgisayarınıza bir kamera bağlayın ve içe aktarın" - -#: src/Dialogs.vala:2134 -#, c-format -msgid "_Import photos from your %s folder" -msgstr "_%s klasörünüzden fotoğrafları içe aktarın" - -#: src/Dialogs.vala:2141 -msgid "You can also import photos in any of these ways:" -msgstr "" -"Ayrıca fotoğrafları bu yollardan herhangi biriyle içe aktarabilirsiniz:" - -#: src/Dialogs.vala:2152 -msgid "_Don’t show this message again" -msgstr "Bu iletiyi yeniden göster_me" - -#: src/Dialogs.vala:2189 -#, c-format -msgid "Import photos from your %s library" -msgstr "%s kitaplığınızdan fotoğrafları içe aktarın" - -#. We're installed system-wide, so use the system help. -#. We're being run from the build directory; we'll have to handle clicks to this -#. link manually ourselves, due to a limitation of help: URIs. -#: src/Dialogs.vala:2373 src/Dialogs.vala:2377 -msgid "(Help)" -msgstr "(Yardım)" - -#: src/Dialogs.vala:2381 -#, c-format -msgid "Year%sMonth%sDay" -msgstr "Yıl%sAy%sGün" - -#: src/Dialogs.vala:2383 -#, c-format -msgid "Year%sMonth" -msgstr "Yıl%sAy" - -#: src/Dialogs.vala:2385 -#, c-format -msgid "Year%sMonth-Day" -msgstr "Yıl%sAy-Gün" - -#: src/Dialogs.vala:2387 -msgid "Year-Month-Day" -msgstr "Yıl-Ay-Gün" - -#: src/Dialogs.vala:2388 src/editing_tools/EditingTools.vala:760 -msgid "Custom" -msgstr "Özel" - -#. Invalid pattern. -#: src/Dialogs.vala:2627 -msgid "Invalid pattern" -msgstr "Geçersiz şablon" - #. This function is used to determine whether or not files should be copied or linked when imported. #. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. -#: src/Dialogs.vala:2731 +#: src/Dialogs.vala:921 msgid "" "Shotwell can copy the photos into your library folder or it can import them " "without copying." @@ -3736,31 +3554,31 @@ msgstr "" "Shotwell fotoğrafları kitaplık klasörünün içine kopyalayabilir ya da " "kopyalama olmadan içe aktarabilir." -#: src/Dialogs.vala:2736 +#: src/Dialogs.vala:926 msgid "Co_py Photos" msgstr "Fotoğrafları K_opyala" -#: src/Dialogs.vala:2737 +#: src/Dialogs.vala:927 msgid "_Import in Place" -msgstr "_Yerin içine aktar" +msgstr "_Yerin İçine Aktar" -#: src/Dialogs.vala:2738 +#: src/Dialogs.vala:928 msgid "Import to Library" msgstr "Kitaplığa Aktar" -#: src/Dialogs.vala:2748 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:938 src/PhotoPage.vala:2897 msgid "Remove From Library" msgstr "Kitaplıktan Kaldır" -#: src/Dialogs.vala:2749 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:939 src/PhotoPage.vala:2897 msgid "Removing Photo From Library" msgstr "Kitaplıktan Fotoğraf Kaldırılıyor" -#: src/Dialogs.vala:2749 +#: src/Dialogs.vala:939 msgid "Removing Photos From Library" msgstr "Kitaplıktan Fotoğraflar Kaldırılıyor" -#: src/Dialogs.vala:2763 +#: src/Dialogs.vala:953 #, c-format msgid "" "This will remove the photo/video from your Shotwell library. Would you also " @@ -3778,7 +3596,7 @@ msgstr[0] "" "\n" "Bu eylem geri alınamaz." -#: src/Dialogs.vala:2767 +#: src/Dialogs.vala:957 #, c-format msgid "" "This will remove the video from your Shotwell library. Would you also like " @@ -3796,7 +3614,7 @@ msgstr[0] "" "\n" "Bu eylem geri alınamaz." -#: src/Dialogs.vala:2771 +#: src/Dialogs.vala:961 #, c-format msgid "" "This will remove the photo from your Shotwell library. Would you also like " @@ -3814,7 +3632,7 @@ msgstr[0] "" "\n" "Bu eylem geri alınamaz." -#: src/Dialogs.vala:2803 +#: src/Dialogs.vala:993 #, c-format msgid "" "The photo or video cannot be moved to your desktop trash. Delete this file?" @@ -3825,7 +3643,7 @@ msgstr[0] "" "silinsin mi?" #. Alert the user that the files were not removed. -#: src/Dialogs.vala:2820 +#: src/Dialogs.vala:1010 #, c-format msgid "The photo or video cannot be deleted." msgid_plural "%d photos/videos cannot be deleted." @@ -3863,7 +3681,8 @@ msgstr "" msgid "Unable open photo %s. Sorry." msgstr "%s fotoğrafı açılamıyor. Üzgünüm." -#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:176 ui/direct.ui:8 +#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:146 ui/direct.ui:8 +#: ui/textentrydialog.ui:33 msgid "_Save" msgstr "_Kaydet" @@ -3893,7 +3712,227 @@ msgstr "Farklı Kaydet" #: src/DirectoryMonitor.vala:891 #, c-format msgid "Unable to monitor %s: Not a directory (%s)" -msgstr "İzlenemiyor %s: Bir dizin değil (%s)" +msgstr "%s izlenemiyor: Bir dizin değil (%s)" + +#: src/dialogs/AdjustDateTimeDialog.vala:78 +msgid "AM" +msgstr "ÖÖ" + +#: src/dialogs/AdjustDateTimeDialog.vala:79 +msgid "PM" +msgstr "ÖS" + +#: src/dialogs/AdjustDateTimeDialog.vala:80 +msgid "24 Hr" +msgstr "24 Saat" + +#: src/dialogs/AdjustDateTimeDialog.vala:95 +msgid "_Shift photos/videos by the same amount" +msgstr "_Aynı değerde olan fotoğrafları/videoları değiştir" + +#: src/dialogs/AdjustDateTimeDialog.vala:100 +msgid "Set _all photos/videos to this time" +msgstr "Tüm fotoğrafları/videoları bu zamana _ayarla" + +#: src/dialogs/AdjustDateTimeDialog.vala:106 +msgid "_Modify original photo file" +msgid_plural "_Modify original photo files" +msgstr[0] "Özgün fotoğraf dosyasını _değiştir" + +#: src/dialogs/AdjustDateTimeDialog.vala:110 +msgid "_Modify original file" +msgid_plural "_Modify original files" +msgstr[0] "Özgün dosyayı _değiştir" + +#: src/dialogs/AdjustDateTimeDialog.vala:213 +msgid "Original: " +msgstr "Özgün: " + +#: src/dialogs/AdjustDateTimeDialog.vala:214 +msgid "%m/%d/%Y, %H:%M:%S" +msgstr "%d/%m/%Y, %H:%M:%S" + +#: src/dialogs/AdjustDateTimeDialog.vala:215 +msgid "%m/%d/%Y, %I:%M:%S %p" +msgstr "%d/m/%Y, %I:%M:%S %p" + +#: src/dialogs/AdjustDateTimeDialog.vala:306 +#, c-format +msgid "" +"Exposure time will be shifted forward by\n" +"%d %s, %d %s, %d %s, and %d %s." +msgstr "" +"Çekim tarihi ileri ötelenecek\n" +"%d %s, %d %s, %d %s, and %d %s." + +#: src/dialogs/AdjustDateTimeDialog.vala:307 +#, c-format +msgid "" +"Exposure time will be shifted backward by\n" +"%d %s, %d %s, %d %s, and %d %s." +msgstr "" +"Çekim tarihi ötelenecek\n" +"%d %s, %d %s, %d %s, and %d %s." + +#: src/dialogs/AdjustDateTimeDialog.vala:309 +msgid "day" +msgid_plural "days" +msgstr[0] "gün" + +#: src/dialogs/AdjustDateTimeDialog.vala:310 +msgid "hour" +msgid_plural "hours" +msgstr[0] "saat" + +#: src/dialogs/AdjustDateTimeDialog.vala:311 +msgid "minute" +msgid_plural "minutes" +msgstr[0] "dakika" + +#: src/dialogs/AdjustDateTimeDialog.vala:312 +msgid "second" +msgid_plural "seconds" +msgstr[0] "saniye" + +#. "Unmodified" and "Current," though they appear in the "Format:" popup menu, really +#. aren't formats so much as they are operating modes that determine specific formats. +#. Hereafter we'll refer to these as "special formats." +#: src/dialogs/ExportDialog.vala:15 +msgid "Unmodified" +msgstr "Değiştirilmemiş" + +#: src/dialogs/ExportDialog.vala:16 +msgid "Current" +msgstr "Geçerli" + +#. layout controls +#: src/dialogs/ExportDialog.vala:90 +msgid "_Format:" +msgstr "_Biçim:" + +#: src/dialogs/ExportDialog.vala:93 +msgid "_Quality:" +msgstr "_Kalite:" + +#: src/dialogs/ExportDialog.vala:96 +msgid "_Scaling constraint:" +msgstr "_Ölçek kısıtlama:" + +#: src/dialogs/ExportDialog.vala:99 +msgid "_Pixels:" +msgstr "_Piksel:" + +#: src/dialogs/ExportDialog.vala:103 +msgid "Export _metadata:" +msgstr "_Üstveriyi dışa aktar:" + +#. We're installed system-wide, so use the system help. +#. We're being run from the build directory; we'll have to handle clicks to this +#. link manually ourselves, due to a limitation of help: URIs. +#: src/dialogs/Preferences.vala:108 src/dialogs/Preferences.vala:112 +msgid "(Help)" +msgstr "(Yardım)" + +#: src/dialogs/Preferences.vala:116 +#, c-format +msgid "Year%sMonth%sDay" +msgstr "Yıl%sAy%sGün" + +#: src/dialogs/Preferences.vala:118 +#, c-format +msgid "Year%sMonth" +msgstr "Yıl%sAy" + +#: src/dialogs/Preferences.vala:120 +#, c-format +msgid "Year%sMonth-Day" +msgstr "Yıl%sAy-Gün" + +#: src/dialogs/Preferences.vala:122 +msgid "Year-Month-Day" +msgstr "Yıl-Ay-Gün" + +#: src/dialogs/Preferences.vala:123 src/editing_tools/EditingTools.vala:760 +msgid "Custom" +msgstr "Özel" + +#. Invalid pattern. +#: src/dialogs/Preferences.vala:351 +msgid "Invalid pattern" +msgstr "Geçersiz şablon" + +#: src/dialogs/ProgressDialog.vala:97 +#, c-format +msgid "%d%%" +msgstr "%d%%" + +#: src/dialogs/SetBackgroundSlideshow.vala:49 +#, c-format +msgid "%d second" +msgid_plural "%d seconds" +msgstr[0] "%d saniye" + +#: src/dialogs/SetBackgroundSlideshow.vala:52 +#, c-format +msgid "%d minute" +msgid_plural "%d minutes" +msgstr[0] "%d dakika" + +#: src/dialogs/SetBackgroundSlideshow.vala:56 +#, c-format +msgid "%d hour" +msgid_plural "%d hours" +msgstr[0] "%d saat" + +#: src/dialogs/SetBackgroundSlideshow.vala:59 +msgid "1 day" +msgstr "1 gün" + +#: src/dialogs/WelcomeDialog.vala:35 +msgid "Welcome!" +msgstr "Hoş Geldiniz!" + +#: src/dialogs/WelcomeDialog.vala:42 +msgid "Welcome to Shotwell!" +msgstr "Shotwell’e Hoş Geldiniz!" + +#: src/dialogs/WelcomeDialog.vala:47 +msgid "To get started, import photos in any of these ways:" +msgstr "" +"Başlangıç olarak, fotoğraflarınızı şu yöntemlerden birini kullanarak içe " +"aktarabilirsiniz:" + +#: src/dialogs/WelcomeDialog.vala:67 +#, c-format +msgid "Choose File %s Import From Folder" +msgstr "Dosya %s Dizinden İçeri Aktarı seçerek" + +#: src/dialogs/WelcomeDialog.vala:68 +msgid "Drag and drop photos onto the Shotwell window" +msgstr "Fotoğrafları sürükleyip Shotwell penceresine bırakarak" + +#: src/dialogs/WelcomeDialog.vala:69 +msgid "Connect a camera to your computer and import" +msgstr "Bilgisayarınıza kamera bağlayıp ve içe aktararak" + +#: src/dialogs/WelcomeDialog.vala:80 +#, c-format +msgid "_Import photos from your %s folder" +msgstr "_%s klasörünüzden fotoğrafları içe aktarın" + +#: src/dialogs/WelcomeDialog.vala:87 +msgid "You can also import photos in any of these ways:" +msgstr "" +"Ayrıca fotoğrafları şu yollardan herhangi biriyle içe aktarabilirsiniz:" + +#: src/dialogs/WelcomeDialog.vala:98 +msgid "_Don’t show this message again" +msgstr "Bu iletiyi yeniden göster_me" + +#: src/dialogs/WelcomeDialog.vala:135 +#, c-format +msgid "Import photos from your %s library" +msgstr "%s kitaplığınızdan fotoğrafları içe aktarın" #: src/editing_tools/EditingTools.vala:644 msgid "Return to current photo dimensions" @@ -3940,7 +3979,7 @@ msgstr "Cüzdan (2 × 3 inç)" #: src/editing_tools/EditingTools.vala:741 src/Printing.vala:795 msgid "Notecard (3 × 5 in.)" -msgstr "Not kartı (3 × 5 inç)" +msgstr "Not Kartı (3 × 5 inç)" #: src/editing_tools/EditingTools.vala:742 src/Printing.vala:798 msgid "4 × 6 in." @@ -4006,17 +4045,17 @@ msgstr "30 × 40 cm" msgid "A3 (297 × 420 mm)" msgstr "A3 (297 × 420 mm)" -#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:398 +#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:401 msgid "Size:" msgstr "Boyut:" #: src/editing_tools/EditingTools.vala:1873 msgid "Close the red-eye tool" -msgstr "Kırmızı-göz aracını kapat" +msgstr "Kırmızı göz aracını kapat" #: src/editing_tools/EditingTools.vala:1876 msgid "Remove any red-eye effects in the selected region" -msgstr "Seçili bölgedeki kırmızı-göz etkilerini kaldır" +msgstr "Seçili bölgedeki kırmızı göz etkilerini kaldır" #: src/editing_tools/EditingTools.vala:2216 #: src/editing_tools/StraightenTool.vala:102 @@ -4024,8 +4063,8 @@ msgid "_Reset" msgstr "_Sıfırla" #. fit both on the top line, emit and move on -#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:439 -#: src/Properties.vala:443 src/Properties.vala:450 +#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:442 +#: src/Properties.vala:446 src/Properties.vala:453 msgid "Exposure:" msgstr "Pozlandırma:" @@ -4049,47 +4088,49 @@ msgstr "Sıcaklık:" msgid "Shadows:" msgstr "Gölgeler:" -#: src/editing_tools/EditingTools.vala:2285 +#. FIXME: Hack to make the slider the same length as the other. Find out why it is aligned +#. Differently (probably because it only has positive values) +#: src/editing_tools/EditingTools.vala:2287 msgid "Highlights:" msgstr "Vurgulamalar:" -#: src/editing_tools/EditingTools.vala:2341 +#: src/editing_tools/EditingTools.vala:2344 msgid "Reset Colors" msgstr "Renkleri Sıfırla" -#: src/editing_tools/EditingTools.vala:2341 +#: src/editing_tools/EditingTools.vala:2344 msgid "Reset all color adjustments to original" msgstr "Tüm renk ayarlamalarını özgün haline getir" -#: src/editing_tools/EditingTools.vala:2700 +#: src/editing_tools/EditingTools.vala:2703 msgid "Temperature" msgstr "Sıcaklık" -#: src/editing_tools/EditingTools.vala:2712 +#: src/editing_tools/EditingTools.vala:2715 msgid "Tint" msgstr "Renk tonu" -#: src/editing_tools/EditingTools.vala:2724 +#: src/editing_tools/EditingTools.vala:2727 msgid "Contrast" msgstr "Karşıtlık" -#: src/editing_tools/EditingTools.vala:2738 +#: src/editing_tools/EditingTools.vala:2741 msgid "Saturation" msgstr "Renk doygunluğu" -#: src/editing_tools/EditingTools.vala:2751 +#: src/editing_tools/EditingTools.vala:2754 msgid "Exposure" msgstr "Pozlandırma" -#: src/editing_tools/EditingTools.vala:2764 +#: src/editing_tools/EditingTools.vala:2767 msgid "Shadows" msgstr "Gölgeler" -#: src/editing_tools/EditingTools.vala:2777 +#: src/editing_tools/EditingTools.vala:2780 msgid "Highlights" msgstr "Vurgulamalar" -#: src/editing_tools/EditingTools.vala:2787 +#: src/editing_tools/EditingTools.vala:2790 msgid "Contrast Expansion" msgstr "Karşıtlık Genişlemesi" @@ -4097,28 +4138,24 @@ msgstr "Karşıtlık Genişlemesi" msgid "Angle:" msgstr "Açı:" -#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:203 +#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:173 #: ui/direct.ui:144 ui/photo.ui:233 msgid "_Straighten" msgstr "_Düzleştir" -#: src/events/EventsBranch.vala:25 -msgid "Events" -msgstr "Olaylar" - -#: src/events/EventDirectoryItem.vala:83 +#: src/events/EventDirectoryItem.vala:97 #, c-format msgid "%d Photo/Video" msgid_plural "%d Photos/Videos" msgstr[0] "%d Photoğraf/Video" -#: src/events/EventDirectoryItem.vala:85 src/Properties.vala:358 +#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:361 #, c-format msgid "%d Video" msgid_plural "%d Videos" msgstr[0] "%d videolar" -#: src/events/EventDirectoryItem.vala:87 src/Properties.vala:356 +#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:359 #, c-format msgid "%d Photo" msgid_plural "%d Photos" @@ -4128,6 +4165,14 @@ msgstr[0] "%d Fotoğraf" msgid "No Event" msgstr "Olay yok" +#: src/events/EventsBranch.vala:25 +msgid "Events" +msgstr "Olaylar" + +#: src/events/EventsBranch.vala:25 +msgid "Browse through your events" +msgstr "Olaylarınız arasında gezinin" + #: src/events/EventsDirectoryPage.vala:149 msgid "No events" msgstr "Olaylar yok" @@ -4188,21 +4233,90 @@ msgstr "_Tümünü Değiştir" msgid "Export" msgstr "Dışa Aktar" +#: src/faces/FacesBranch.vala:89 src/Resources.vala:305 src/Resources.vala:306 +#: ui/faces.ui:403 +msgid "Faces" +msgstr "Yüzler" + +#: src/faces/FacesTool.vala:115 +msgid "Detect faces…" +msgstr "Yüzleri tanı…" + +#: src/faces/FacesTool.vala:140 +#| msgid "Set the crop for this photo" +msgid "Detect faces on this photo" +msgstr "Bu fotoğraftaki yüzleri tanı" + +#: src/faces/FacesTool.vala:142 +msgid "Cancel face detection" +msgstr "Yüz tanımayı iptal et" + +#: src/faces/FacesTool.vala:146 +msgid "Close the Faces tool without saving changes" +msgstr "Yüzler aracını değişiklikleri kaydetmeden kapat" + +#: src/faces/FacesTool.vala:153 src/faces/FacesTool.vala:185 +msgid "Click and drag to tag a face" +msgstr "Yüz etiketlemek için tıklayın ve sürükleyin" + +#: src/faces/FacesTool.vala:180 +#, c-format +msgid "Click to edit face %s" +msgstr "%s yüzünü düzenlemek için tıklayın" + +#: src/faces/FacesTool.vala:189 +msgid "Stop dragging to add your face and name it." +msgstr "Yüzünüzü eklemek için sürüklemeyi durdurun ve adlandırın." + +#: src/faces/FacesTool.vala:193 +msgid "Type a name for this face, then press Enter" +msgstr "Bu yüz için bir ad yazın, ardından Enterʼa basın" + +#: src/faces/FacesTool.vala:197 +msgid "Move or modify the face shape or name and press Enter" +msgstr "Yüz biçimini taşıyın veya düzenleyin, adı düzenleyin ve Enterʼa basın" + +#: src/faces/FacesTool.vala:201 +#| msgid "Settings" +msgid "Detecting faces" +msgstr "Yüzler tanınıyor" + +#: src/faces/FacesTool.vala:212 +msgid "If you don’t set the name of unknown faces they won’t be saved." +msgstr "Bilinmeyen yüzlerin adını belirlemezseniz onlar kaydedilmeyecektir." + +#: src/faces/FacesTool.vala:233 +msgid "Save changes and close the Faces tool" +msgstr "Değişiklikleri kaydet ve Yüzler aracını kapat" + +#: src/faces/FacesTool.vala:235 +#| msgid "Lose changes to %s?" +msgid "No changes to save" +msgstr "Kaydedilecek değişiklik yok" + +#: src/faces/FacesTool.vala:956 +msgid "Error trying to spawn face detection program:\n" +msgstr "Yüz tanıma programı yaratılmaya çalışırken hata:\n" + #: src/folders/FoldersBranch.vala:144 msgid "Folders" msgstr "Klasörler" -#: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 -#: ui/preferences_dialog.ui:512 -msgid "Library" -msgstr "Kitaplık" +#: src/folders/FoldersBranch.vala:144 +msgid "Browse the library’s folder structure" +msgstr "Kitaplığın klasör yapısına göz at" -#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1083 -msgid "Photos" -msgstr "Fotoğraflar" +#: src/import-roll/ImportRollBranch.vala:44 +#| msgid "_Import" +msgid "Imports" +msgstr "İçe Aktarımlar" -#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1102 -#: src/SearchFilter.vala:1103 +#: src/import-roll/ImportRollBranch.vala:44 +msgid "Browse the library’s import history" +msgstr "Kitaplığın içe aktarma geçmişine göz at" + +#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1124 +#: src/SearchFilter.vala:1125 msgid "Flagged" msgstr "İşaretli" @@ -4223,23 +4337,37 @@ msgstr "İçe Aktarıldı %s" msgid "Last Import" msgstr "Son İçe Aktarılanlar" -#: src/library/LibraryWindow.vala:508 +#: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 +#: ui/preferences_dialog.ui:465 +msgid "Library" +msgstr "Kitaplık" + +#: src/library/LibraryBranch.vala:30 +#| msgid "Organize your photos" +msgid "Organize and browse your photos" +msgstr "Fotoğraflarınızı gözden geçirin ve düzenleyin" + +#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1105 +msgid "Photos" +msgstr "Fotoğraflar" + +#: src/library/LibraryWindow.vala:526 msgid "Import From Folder" msgstr "Dizinden İçe Aktar" -#: src/library/LibraryWindow.vala:515 +#: src/library/LibraryWindow.vala:533 msgid "Recurse Into Subfolders" msgstr "Alt Klasörler İçine Yinele" -#: src/library/LibraryWindow.vala:582 ui/trash.ui:288 +#: src/library/LibraryWindow.vala:601 ui/trash.ui:288 msgid "Empty Trash" msgstr "Çöp Kutusunu Boşalt" -#: src/library/LibraryWindow.vala:582 +#: src/library/LibraryWindow.vala:601 msgid "Emptying Trash…" msgstr "Çöp Kutusu boşaltılıyor…" -#: src/library/LibraryWindow.vala:778 +#: src/library/LibraryWindow.vala:780 #, c-format msgid "" "Shotwell is configured to import photos to your home directory.\n" @@ -4252,33 +4380,33 @@ msgstr "" "değiştirmenizi tavsiye\n" "ederiz. Fotoğrafları içe aktarmaya devam etmek istiyor musunuz?" -#: src/library/LibraryWindow.vala:781 ui/preferences_dialog.ui:142 +#: src/library/LibraryWindow.vala:783 ui/preferences_dialog.ui:86 msgid "Library Location" msgstr "Kitaplık Konumu" #. TODO: Specify which directory/file. -#: src/library/LibraryWindow.vala:794 +#: src/library/LibraryWindow.vala:796 msgid "Photos cannot be imported from this directory." msgstr "Fotoğraflar, bu dizinden içe aktarılamadı." -#: src/library/LibraryWindow.vala:1074 +#: src/library/LibraryWindow.vala:1076 #, c-format msgid "%s (%d%%)" msgstr "%s (%d%%)" -#: src/library/LibraryWindow.vala:1118 src/library/LibraryWindow.vala:1129 +#: src/library/LibraryWindow.vala:1120 src/library/LibraryWindow.vala:1131 msgid "Updating library…" msgstr "Kitaplık güncelleniyor…" -#: src/library/LibraryWindow.vala:1135 +#: src/library/LibraryWindow.vala:1137 msgid "Preparing to auto-import photos…" msgstr "Fotoğraflar kendiliğinden içe aktarmaya hazırlanıyor…" -#: src/library/LibraryWindow.vala:1140 +#: src/library/LibraryWindow.vala:1142 msgid "Auto-importing photos…" msgstr "Fotoğraflar kendiliğinden içe aktarılıyor…" -#: src/library/LibraryWindow.vala:1148 +#: src/library/LibraryWindow.vala:1150 msgid "Writing metadata to files…" msgstr "Dosyalara üstveri yazılıyor…" @@ -4298,7 +4426,7 @@ msgstr "Çöp" msgid "Trash is empty" msgstr "Çöp boş" -#: src/library/TrashPage.vala:110 +#: src/library/TrashPage.vala:110 ui/faces.ui:469 msgid "Delete" msgstr "Sil" @@ -4345,40 +4473,40 @@ msgstr "" msgid "Unknown error attempting to verify Shotwell’s database: %s" msgstr "Shotwell veri tabanını doğrulama denenirken bilinmeyen hata: %s" -#: src/main.vala:104 +#: src/main.vala:108 msgid "Loading Shotwell" msgstr "Shotwell Yükleniyor" -#: src/main.vala:303 +#: src/main.vala:320 msgid "Path to Shotwell’s private data" msgstr "Shotwell’in gizli veri yolu" -#: src/main.vala:303 +#: src/main.vala:320 msgid "DIRECTORY" msgstr "DİZİN" -#: src/main.vala:307 +#: src/main.vala:324 msgid "Do not monitor library directory at runtime for changes" msgstr "Kitaplık dizinini çalışırken değişiklikler için izleme" -#: src/main.vala:311 +#: src/main.vala:328 msgid "Don’t display startup progress meter" msgstr "Başlangıç ilerleme metresini gösterme" -#: src/main.vala:315 +#: src/main.vala:332 msgid "Show the application’s version" msgstr "Uygulama sürümünü göster" -#: src/main.vala:319 +#: src/main.vala:336 msgid "Start the application in fullscreen mode" msgstr "Uygulamayı tam ekran kipinde başlat" #. init GTK (valac has already called g_threads_init()) -#: src/main.vala:356 +#: src/main.vala:373 msgid "[FILE]" msgstr "[DOSYA]" -#: src/main.vala:360 +#: src/main.vala:380 #, c-format msgid "Run “%s --help” to see a full list of available command line options.\n" msgstr "" @@ -4390,45 +4518,45 @@ msgstr "" msgid "Unable to process monitoring updates: %s" msgstr "İzleme güncellemeleri işlenemedi: %s" -#: src/MediaPage.vala:158 +#: src/MediaPage.vala:157 msgid "Adjust the size of the thumbnails" msgstr "Önizleme boyutunu ayarla" -#: src/MediaPage.vala:503 +#: src/MediaPage.vala:500 #, c-format msgid "" "Shotwell was unable to play the selected video:\n" "%s" msgstr "Shotwell seçili videoyu oynatamadı: %s" -#: src/Page.vala:1306 +#: src/Page.vala:1324 msgid "No photos/videos" msgstr "Resim/Video Yok" -#: src/Page.vala:1310 +#: src/Page.vala:1328 msgid "No photos/videos found which match the current filter" msgstr "Geçerli süzgeçle eşleşen video/fotoğraf yok" -#: src/Page.vala:2623 +#: src/Page.vala:2641 msgid "Photos cannot be exported to this directory." msgstr "Fotoğraflar, bu dizinden dışa aktarılamadı." #. previous button -#: src/PhotoPage.vala:538 +#: src/PhotoPage.vala:550 msgid "Previous photo" msgstr "Önceki fotoğraf" #. next button -#: src/PhotoPage.vala:544 +#: src/PhotoPage.vala:556 msgid "Next photo" msgstr "Sonraki fotoğraf" -#: src/PhotoPage.vala:1850 +#: src/PhotoPage.vala:1862 #, c-format msgid "Photo source file missing: %s" msgstr "Fotoğraf kaynağı bulunamadı: %s" -#: src/PhotoPage.vala:3018 +#: src/PhotoPage.vala:3041 #, c-format msgid "Unable to export %s: %s" msgstr "Dışa aktarılamadı %s: %s" @@ -4437,6 +4565,10 @@ msgstr "Dışa aktarılamadı %s: %s" msgid "BMP" msgstr "BMP" +#: src/photos/GifSupport.vala:32 +msgid "GIF" +msgstr "GIF" + #: src/photos/JfifSupport.vala:84 msgid "JPEG" msgstr "JPEG" @@ -4473,7 +4605,7 @@ msgstr "RAW" msgid "TIFF" msgstr "TIFF" -#: src/Photo.vala:3755 +#: src/Photo.vala:3774 msgid "modified" msgstr "değiştirilmiş" @@ -4524,126 +4656,122 @@ msgstr "" "\n" "%s" -#: src/Properties.vala:87 +#: src/Properties.vala:97 msgid "Today" msgstr "Bugün" -#: src/Properties.vala:89 +#: src/Properties.vala:99 msgid "Yesterday" msgstr "Dün" -#: src/Properties.vala:346 +#: src/Properties.vala:349 msgid "Items:" msgstr "Ögeler:" -#: src/Properties.vala:349 +#: src/Properties.vala:352 #, c-format msgid "%d Event" msgid_plural "%d Events" msgstr[0] "%d Olaylar" #. display only one date if start and end are the same -#: src/Properties.vala:380 +#: src/Properties.vala:383 msgid "Date:" msgstr "Tarih:" #. display only one time if start and end are the same -#: src/Properties.vala:384 +#: src/Properties.vala:387 msgid "Time:" msgstr "Zaman:" #. display time range #. display date range -#: src/Properties.vala:387 src/Properties.vala:392 +#: src/Properties.vala:390 src/Properties.vala:395 msgid "From:" -msgstr "İlk Tarih" +msgstr "İlk Tarih:" -#: src/Properties.vala:388 src/Properties.vala:393 +#: src/Properties.vala:391 src/Properties.vala:396 msgid "To:" msgstr "Son Tarih:" -#: src/Properties.vala:407 +#: src/Properties.vala:410 msgid "Duration:" msgstr "Süre:" -#: src/Properties.vala:407 +#: src/Properties.vala:410 #, c-format msgid "%.1f seconds" msgstr "%.1f saniye" -#: src/Properties.vala:411 +#: src/Properties.vala:414 msgid "Developer:" msgstr "Geliştirici:" #. nothing special to be done for now for Events -#: src/Properties.vala:586 +#: src/Properties.vala:592 msgid "Location:" msgstr "Konum:" -#: src/Properties.vala:589 +#: src/Properties.vala:595 msgid "File size:" msgstr "Dosya boyutu:" -#: src/Properties.vala:593 +#: src/Properties.vala:599 msgid "Current Development:" msgstr "Mevcut Geliştirme:" -#: src/Properties.vala:595 +#: src/Properties.vala:601 msgid "Original dimensions:" msgstr "Özgün boyutlar:" -#: src/Properties.vala:598 +#: src/Properties.vala:604 msgid "Camera make:" msgstr "Kamera yapımı:" -#: src/Properties.vala:601 +#: src/Properties.vala:607 msgid "Camera model:" msgstr "Kamera modeli:" -#: src/Properties.vala:604 +#: src/Properties.vala:610 msgid "Flash:" msgstr "Flaş:" -#: src/Properties.vala:606 +#: src/Properties.vala:612 msgid "Focal length:" msgstr "Odak uzaklığı:" -#: src/Properties.vala:609 +#: src/Properties.vala:615 msgid "Exposure date:" msgstr "Poz tarihi:" -#: src/Properties.vala:612 +#: src/Properties.vala:618 msgid "Exposure time:" msgstr "Poz zamanı:" -#: src/Properties.vala:615 +#: src/Properties.vala:621 msgid "Exposure bias:" msgstr "Pozlandırma sapması:" -#: src/Properties.vala:617 +#: src/Properties.vala:631 msgid "GPS latitude:" msgstr "GPS enlemi:" -#: src/Properties.vala:620 +#: src/Properties.vala:634 msgid "GPS longitude:" msgstr "GPS boylamı:" -#: src/Properties.vala:623 +#: src/Properties.vala:637 msgid "Artist:" msgstr "Sanatçı:" -#: src/Properties.vala:625 +#: src/Properties.vala:639 msgid "Copyright:" msgstr "Telif hakkı:" -#: src/Properties.vala:627 +#: src/Properties.vala:641 msgid "Software:" msgstr "Yazılım:" -#: src/Properties.vala:644 -msgid "Extended Information" -msgstr "Ayrıntılı Bilgi" - #: src/publishing/PublishingPluginHost.vala:11 msgid "Preparing for upload" msgstr "Yükleme için hazırlanıyor" @@ -4688,37 +4816,37 @@ msgstr "Hesap bilgisi alınıyor…" msgid "Logging in…" msgstr "Oturum açılıyor…" -#: src/publishing/PublishingUI.vala:195 +#: src/publishing/PublishingUI.vala:197 msgid "Publish Photos" msgstr "Fotoğrafları Yayımla" -#: src/publishing/PublishingUI.vala:196 +#: src/publishing/PublishingUI.vala:198 msgid "Publish photos _to:" msgstr "Fotoğrafları ş_urada yayımla:" -#: src/publishing/PublishingUI.vala:198 +#: src/publishing/PublishingUI.vala:200 msgid "Publish Videos" msgstr "Videoları Yayımla" -#: src/publishing/PublishingUI.vala:199 +#: src/publishing/PublishingUI.vala:201 msgid "Publish videos _to" msgstr "Videoları _şuraya yayımla" -#: src/publishing/PublishingUI.vala:201 +#: src/publishing/PublishingUI.vala:203 msgid "Publish Photos and Videos" msgstr "Resimler ve Videoları Yayımla" -#: src/publishing/PublishingUI.vala:202 +#: src/publishing/PublishingUI.vala:204 msgid "Publish photos and videos _to" msgstr "Resimleri ve videoları _şuraya yayımla" #. There are no enabled publishing services that accept this media type, #. warn the user. -#: src/publishing/PublishingUI.vala:412 +#: src/publishing/PublishingUI.vala:414 msgid "Unable to publish" msgstr "Yayımlanamıyor" -#: src/publishing/PublishingUI.vala:413 +#: src/publishing/PublishingUI.vala:415 #, c-format msgid "" "Shotwell cannot publish the selected items because you do not have a " @@ -4733,729 +4861,807 @@ msgstr "" #: src/publishing/Publishing.vala:16 msgid "Publishing" -msgstr "Yayımlanıyor" +msgstr "Yayımlama" -#: src/Resources.vala:141 src/Resources.vala:146 ui/collection.ui:151 +#: src/Resources.vala:111 src/Resources.vala:116 ui/collection.ui:151 msgid "Rotate" msgstr "Döndür" -#: src/Resources.vala:142 +#: src/Resources.vala:112 msgid "Rotate Right" msgstr "Sağa Döndür" -#: src/Resources.vala:143 ui/collection.ui:148 +#: src/Resources.vala:113 ui/collection.ui:148 msgid "Rotate the photos right (press Ctrl to rotate left)" msgstr "Fotoğrafları sağa döndür (Sola döndürmek için Ctrl’ye bas)" -#: src/Resources.vala:147 +#: src/Resources.vala:117 msgid "Rotate Left" msgstr "Sola Döndür" -#: src/Resources.vala:148 +#: src/Resources.vala:118 msgid "Rotate the photos left" msgstr "Fotoğrafları sola döndür" -#: src/Resources.vala:151 +#: src/Resources.vala:121 msgid "Flip Horizontally" msgstr "Yatay Döndür" -#: src/Resources.vala:154 +#: src/Resources.vala:124 msgid "Flip Vertically" msgstr "Dikey Döndür" -#: src/Resources.vala:156 ui/direct.ui:191 ui/events_directory.ui:168 -#: ui/event.ui:438 ui/import_queue.ui:83 ui/import.ui:201 ui/media.ui:421 -#: ui/offline.ui:198 ui/photo.ui:404 ui/tags.ui:440 ui/trash.ui:207 +#: src/Resources.vala:126 ui/direct.ui:192 ui/events_directory.ui:168 +#: ui/event.ui:438 ui/faces.ui:448 ui/import_queue.ui:83 ui/import.ui:201 +#: ui/manifest_widget.ui:35 ui/media.ui:421 ui/offline.ui:198 ui/photo.ui:405 +#: ui/tags.ui:440 ui/trash.ui:207 msgid "_About" msgstr "_Hakkında" -#: src/Resources.vala:157 +#: src/Resources.vala:127 msgid "_Apply" msgstr "_Uygula" -#: src/Resources.vala:160 ui/direct.ui:44 ui/events_directory.ui:32 -#: ui/event.ui:47 ui/import.ui:40 ui/media.ui:47 ui/offline.ui:32 -#: ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 +#: src/Resources.vala:130 ui/direct.ui:44 ui/events_directory.ui:32 +#: ui/event.ui:47 ui/faces.ui:47 ui/import.ui:40 ui/media.ui:47 +#: ui/offline.ui:32 ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 msgid "_Edit" msgstr "_Düzenle" -#: src/Resources.vala:161 +#: src/Resources.vala:131 msgid "_Forward" msgstr "_İleri" -#: src/Resources.vala:162 ui/direct.ui:62 ui/events_directory.ui:125 +#: src/Resources.vala:132 ui/direct.ui:62 ui/events_directory.ui:125 #: ui/photo.ui:173 msgid "Fulls_creen" msgstr "Tam e_kran" -#: src/Resources.vala:163 ui/direct.ui:173 ui/direct.ui:176 +#: src/Resources.vala:133 ui/direct.ui:174 ui/direct.ui:177 #: ui/events_directory.ui:150 ui/events_directory.ui:153 ui/event.ui:420 -#: ui/event.ui:423 ui/import_queue.ui:65 ui/import_queue.ui:68 ui/import.ui:183 -#: ui/import.ui:186 ui/media.ui:403 ui/media.ui:406 ui/offline.ui:180 -#: ui/offline.ui:183 ui/photo.ui:386 ui/photo.ui:389 ui/tags.ui:422 -#: ui/tags.ui:425 ui/trash.ui:189 ui/trash.ui:192 +#: ui/event.ui:423 ui/faces.ui:430 ui/faces.ui:433 ui/import_queue.ui:65 +#: ui/import_queue.ui:68 ui/import.ui:183 ui/import.ui:186 ui/media.ui:403 +#: ui/media.ui:406 ui/offline.ui:180 ui/offline.ui:183 ui/photo.ui:387 +#: ui/photo.ui:390 ui/tags.ui:422 ui/tags.ui:425 ui/trash.ui:189 +#: ui/trash.ui:192 msgid "_Help" msgstr "_Yardım" -#: src/Resources.vala:164 +#: src/Resources.vala:134 msgid "Leave _Fullscreen" msgstr "_Tam Ekrandan Çık" -#: src/Resources.vala:165 src/Resources.vala:364 ui/tags.ui:450 +#: src/Resources.vala:135 src/Resources.vala:343 ui/tags.ui:450 msgid "_New" msgstr "_Yeni" -#: src/Resources.vala:166 +#: src/Resources.vala:136 msgid "_Next" msgstr "_Sonraki" -#: src/Resources.vala:169 src/Resources.vala:318 ui/events_directory.ui:65 -#: ui/event.ui:93 ui/import.ui:68 ui/media.ui:93 ui/offline.ui:72 -#: ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 +#: src/Resources.vala:139 src/Resources.vala:288 ui/events_directory.ui:65 +#: ui/event.ui:93 ui/faces.ui:93 ui/import.ui:68 ui/media.ui:93 +#: ui/offline.ui:72 ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 msgid "_Preferences" msgstr "_Tercihler" -#: src/Resources.vala:170 +#: src/Resources.vala:140 msgid "_Previous" msgstr "_Önceki" -#: src/Resources.vala:172 ui/direct.ui:37 ui/events_directory.ui:25 -#: ui/event.ui:40 ui/import_queue.ui:31 ui/import.ui:33 ui/media.ui:40 -#: ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 +#: src/Resources.vala:142 ui/direct.ui:37 ui/events_directory.ui:25 +#: ui/event.ui:40 ui/faces.ui:40 ui/import_queue.ui:31 ui/import.ui:33 +#: ui/media.ui:40 ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 msgid "_Quit" msgstr "_Çık" -#: src/Resources.vala:173 +#: src/Resources.vala:143 msgid "_Refresh" msgstr "_Yenile" -#: src/Resources.vala:175 +#: src/Resources.vala:145 msgid "_Revert" msgstr "_Ters Döndür" -#: src/Resources.vala:177 +#: src/Resources.vala:147 msgid "Save _As" msgstr "_Farklı Kaydet" -#: src/Resources.vala:178 +#: src/Resources.vala:148 msgid "Sort _Ascending" msgstr "_Artan Şekilde Sırala" -#: src/Resources.vala:179 +#: src/Resources.vala:149 msgid "Sort _Descending" msgstr "A_zalan Şekilde Sırala" -#: src/Resources.vala:180 +#: src/Resources.vala:150 msgid "_Stop" msgstr "_Durdur" -#: src/Resources.vala:181 +#: src/Resources.vala:151 msgid "_Undelete" msgstr "_Silmeyi Geri Al" -#: src/Resources.vala:182 +#: src/Resources.vala:152 msgid "_Normal Size" msgstr "_Özgün Boyut" -#: src/Resources.vala:183 +#: src/Resources.vala:153 msgid "Best _Fit" msgstr "En _Uygun" -#: src/Resources.vala:184 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 -#: ui/photo.ui:144 ui/tags.ui:260 +#: src/Resources.vala:154 ui/direct.ui:69 ui/event.ui:260 ui/faces.ui:260 +#: ui/media.ui:260 ui/photo.ui:144 ui/tags.ui:260 msgid "Zoom _In" msgstr "_Yakınlaştır" -#: src/Resources.vala:185 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 -#: ui/photo.ui:149 ui/tags.ui:265 +#: src/Resources.vala:155 ui/direct.ui:74 ui/event.ui:265 ui/faces.ui:265 +#: ui/media.ui:265 ui/photo.ui:149 ui/tags.ui:265 msgid "Zoom _Out" msgstr "_Uzaklaştır" -#: src/Resources.vala:188 ui/collection.ui:167 +#: src/Resources.vala:158 ui/collection.ui:167 msgid "Enhance" msgstr "İyileştir" -#: src/Resources.vala:189 ui/collection.ui:164 +#: src/Resources.vala:159 ui/collection.ui:164 msgid "Automatically improve the photo’s appearance" msgstr "Fotoğraf görünüşünü kendiliğinden iyileştir" -#: src/Resources.vala:192 +#: src/Resources.vala:162 msgid "Copy Color Adjustments" msgstr "Renk Düzenlemelerini Kopyala" -#: src/Resources.vala:193 +#: src/Resources.vala:163 msgid "Copy the color adjustments applied to the photo" msgstr "Fotoğrafa uygulanan renk düzenlemelerini kopyala" -#: src/Resources.vala:196 +#: src/Resources.vala:166 msgid "Paste Color Adjustments" msgstr "Renk Düzenlemelerini Yapıştır" -#: src/Resources.vala:197 +#: src/Resources.vala:167 msgid "Apply copied color adjustments to the selected photos" msgstr "Kopyalanan renk ayarlamalarını seçili fotoğraflara uygula" -#: src/Resources.vala:199 ui/direct.ui:139 ui/photo.ui:228 +#: src/Resources.vala:169 ui/direct.ui:139 ui/photo.ui:228 msgid "_Crop" msgstr "_Kırp" -#: src/Resources.vala:200 +#: src/Resources.vala:170 msgid "Crop" msgstr "Kırp" -#: src/Resources.vala:201 +#: src/Resources.vala:171 msgid "Crop the photo’s size" msgstr "Fotoğrafın boyutunu kırp" -#: src/Resources.vala:204 +#: src/Resources.vala:174 msgid "Straighten" msgstr "Düzleştir" -#: src/Resources.vala:205 +#: src/Resources.vala:175 msgid "Straighten the photo" msgstr "Fotoğrafı düzleştir" -#: src/Resources.vala:207 ui/direct.ui:149 ui/photo.ui:238 +#: src/Resources.vala:177 ui/direct.ui:149 ui/photo.ui:238 msgid "_Red-eye" -msgstr "_Kırmızı-göz" +msgstr "_Kırmızı göz" -#: src/Resources.vala:208 +#: src/Resources.vala:178 msgid "Red-eye" -msgstr "Kırmızı-göz" +msgstr "Kırmızı göz" -#: src/Resources.vala:209 +#: src/Resources.vala:179 msgid "Reduce or eliminate any red-eye effects in the photo" -msgstr "Fotoğraftaki kırmızı-göz etkilerini azalt veya kaldır" +msgstr "Fotoğraftaki kırmızı göz etkilerini azalt veya kaldır" -#: src/Resources.vala:211 ui/direct.ui:154 ui/photo.ui:243 +#: src/Resources.vala:181 ui/direct.ui:154 ui/photo.ui:243 msgid "_Adjust" msgstr "_Ayarla" -#: src/Resources.vala:212 +#: src/Resources.vala:182 msgid "Adjust" msgstr "Ayarla" -#: src/Resources.vala:213 +#: src/Resources.vala:183 msgid "Adjust the photo’s color and tone" msgstr "Fotoğrafın rengini ve tonunu ayarla" -#: src/Resources.vala:216 +#: src/Resources.vala:186 msgid "Revert to Original" msgstr "Özgün Haline Döndür" -#: src/Resources.vala:218 +#: src/Resources.vala:188 msgid "Revert External E_dits" msgstr "Harici Değ_işiklikleri Geri Al" -#: src/Resources.vala:219 +#: src/Resources.vala:189 msgid "Revert to the master photo" msgstr "Esas fotoğrafa döndür" -#: src/Resources.vala:222 +#: src/Resources.vala:192 msgid "Set selected image to be the new desktop background" msgstr "Seçili görüntüyü yeni masaüstü artalanı olarak ayarla" -#: src/Resources.vala:223 +#: src/Resources.vala:193 msgid "Set as _Desktop Slideshow…" msgstr "_Masaüstü Slayt Gösterisi Olarak Ayarla…" -#: src/Resources.vala:225 ui/direct.ui:47 ui/events_directory.ui:35 -#: ui/event.ui:50 ui/import.ui:43 ui/media.ui:50 ui/offline.ui:35 -#: ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 +#: src/Resources.vala:195 ui/direct.ui:47 ui/events_directory.ui:35 +#: ui/event.ui:50 ui/faces.ui:50 ui/import.ui:43 ui/media.ui:50 +#: ui/offline.ui:35 ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 msgid "_Undo" msgstr "_Geri Al" -#: src/Resources.vala:226 +#: src/Resources.vala:196 msgid "Undo" msgstr "Geri Al" -#: src/Resources.vala:228 ui/direct.ui:52 ui/events_directory.ui:40 -#: ui/event.ui:55 ui/import.ui:48 ui/media.ui:55 ui/offline.ui:40 -#: ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 +#: src/Resources.vala:198 ui/direct.ui:52 ui/events_directory.ui:40 +#: ui/event.ui:55 ui/faces.ui:55 ui/import.ui:48 ui/media.ui:55 +#: ui/offline.ui:40 ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 msgid "_Redo" msgstr "_Yinele" -#: src/Resources.vala:229 +#: src/Resources.vala:199 msgid "Redo" msgstr "Yinele" -#: src/Resources.vala:231 ui/events_directory.ui:139 ui/events_directory.ui:181 +#: src/Resources.vala:201 ui/events_directory.ui:139 ui/events_directory.ui:181 #: ui/event.ui:393 ui/event.ui:588 msgid "Re_name Event…" msgstr "Olayı Ye_niden Adlandır…" -#: src/Resources.vala:234 ui/event.ui:373 ui/event.ui:580 +#: src/Resources.vala:204 ui/event.ui:373 ui/event.ui:580 msgid "Make _Key Photo for Event" msgstr "Olay İçin _Anahtar Fotoğraf Oluştur" -#: src/Resources.vala:235 +#: src/Resources.vala:205 msgid "Make Key Photo for Event" msgstr "Olay İçin Anahtar Fotoğraf Oluştur" -#: src/Resources.vala:237 ui/event.ui:382 ui/media.ui:376 ui/tags.ui:376 +#: src/Resources.vala:207 ui/event.ui:382 ui/faces.ui:376 ui/media.ui:376 +#: ui/tags.ui:376 msgid "_New Event" msgstr "_Yeni Olay" -#: src/Resources.vala:238 +#: src/Resources.vala:208 msgid "New Event" msgstr "Yeni Olay" -#: src/Resources.vala:240 +#: src/Resources.vala:210 msgid "Move Photos" msgstr "Fotoğrafları Taşı" -#: src/Resources.vala:241 +#: src/Resources.vala:211 msgid "Move photos to an event" msgstr "Fotoğrafları bir olaya taşı" -#: src/Resources.vala:243 ui/events_directory.ui:135 ui/events_directory.ui:177 +#: src/Resources.vala:213 ui/events_directory.ui:135 ui/events_directory.ui:177 msgid "_Merge Events" msgstr "Olayları _Birleştir" -#: src/Resources.vala:244 +#: src/Resources.vala:214 msgid "Merge" msgstr "Birleştir" -#: src/Resources.vala:245 +#: src/Resources.vala:215 msgid "Combine events into a single event" msgstr "Olayları tek bir olay içinde birleştir" -#: src/Resources.vala:247 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 -#: ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 ui/tags.ui:286 +#: src/Resources.vala:217 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 +#: ui/faces.ui:286 ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 +#: ui/tags.ui:286 msgid "_Set Rating" -msgstr "_Derecelendirmeyi Ayarla" +msgstr "_Puanı Ayarla" -#: src/Resources.vala:248 +#: src/Resources.vala:218 msgid "Set Rating" -msgstr "Derecelendirmeyi Ayarla" +msgstr "Puanı Ayarla" -#: src/Resources.vala:249 +#: src/Resources.vala:219 msgid "Change the rating of your photo" -msgstr "Fotoğrafınızın derecelendirmesini değiştirin" +msgstr "Fotoğrafınızın puanını değiştirin" -#: src/Resources.vala:251 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 -#: ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 ui/tags.ui:326 +#: src/Resources.vala:221 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 +#: ui/faces.ui:326 ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 +#: ui/tags.ui:326 msgid "_Increase" -msgstr "_Derecelendirmeyi arttır" +msgstr "_Arttır" -#: src/Resources.vala:252 +#: src/Resources.vala:222 msgid "Increase Rating" -msgstr "Derecelendirmeyi Arttır" +msgstr "Puanı Arttır" -#: src/Resources.vala:254 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 -#: ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 ui/tags.ui:331 +#: src/Resources.vala:224 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 +#: ui/faces.ui:331 ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 +#: ui/tags.ui:331 msgid "_Decrease" -msgstr "_Derecelendirmeyi Azalt" +msgstr "A_zalt" -#: src/Resources.vala:255 +#: src/Resources.vala:225 msgid "Decrease Rating" -msgstr "Derecelendirmeyi Azalt" +msgstr "Puanı Azalt" -#: src/Resources.vala:257 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 -#: ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 ui/tags.ui:314 +#: src/Resources.vala:227 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 +#: ui/faces.ui:314 ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 +#: ui/tags.ui:314 msgid "_Unrated" -msgstr "_Derecesiz" +msgstr "P_uansız" -#: src/Resources.vala:258 +#: src/Resources.vala:228 msgid "Unrated" -msgstr "Değerlenmemiş" +msgstr "Puansız" -#: src/Resources.vala:259 +#: src/Resources.vala:229 msgid "Rate Unrated" -msgstr "Derecesiz Oran" +msgstr "Puansız Yap" -#: src/Resources.vala:260 +#: src/Resources.vala:230 msgid "Setting as unrated" -msgstr "Derecelendirilmemiş olarak ayarla" +msgstr "Puansız olarak ayarla" -#: src/Resources.vala:261 +#: src/Resources.vala:231 msgid "Remove any ratings" -msgstr "Derecelendirilmeyi kaldır" +msgstr "Tüm puanları kaldır" -#: src/Resources.vala:263 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 -#: ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 ui/tags.ui:319 +#: src/Resources.vala:233 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 +#: ui/faces.ui:319 ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 +#: ui/tags.ui:319 msgid "_Rejected" msgstr "_Reddedilmiş" -#: src/Resources.vala:264 +#: src/Resources.vala:234 msgid "Rejected" msgstr "Reddedilmiş" -#: src/Resources.vala:265 +#: src/Resources.vala:235 msgid "Rate Rejected" -msgstr "Reddedilmiş Oran" +msgstr "Reddedilmiş Yap" -#: src/Resources.vala:266 +#: src/Resources.vala:236 msgid "Setting as rejected" -msgstr "Reddedilen olarak ayarla" +msgstr "Reddedilmiş olarak ayarla" -#: src/Resources.vala:267 +#: src/Resources.vala:237 msgid "Set rating to rejected" -msgstr "Reddedilmiş derecelendirmeyi ayarla" +msgstr "Reddedilmiş olarak puanla" -#: src/Resources.vala:269 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 -#: ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 ui/trash.ui:162 +#: src/Resources.vala:239 ui/event.ui:196 ui/faces.ui:196 ui/import.ui:156 +#: ui/media.ui:196 ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 +#: ui/trash.ui:162 msgid "Rejected _Only" -msgstr "_Sadece Reddedilmiş" +msgstr "_Yalnızca Reddedilmiş" -#: src/Resources.vala:270 +#: src/Resources.vala:240 msgid "Rejected Only" -msgstr "Sadece Reddedilmiş" +msgstr "Yalnızca Reddedilmiş" -#: src/Resources.vala:271 +#: src/Resources.vala:241 msgid "Show only rejected photos" -msgstr "Sadece reddedilen fotoğraf" +msgstr "Yalnızca reddedilmiş fotoğrafları göster" -#: src/Resources.vala:273 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 -#: ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 ui/trash.ui:156 +#: src/Resources.vala:243 ui/event.ui:190 ui/faces.ui:190 ui/import.ui:150 +#: ui/media.ui:190 ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 +#: ui/trash.ui:156 msgid "All + _Rejected" -msgstr "Tüm + _Reddedilen" +msgstr "Tüm + _Reddedilmişler" -#: src/Resources.vala:274 +#: src/Resources.vala:244 msgctxt "Tooltip" msgid "Show all photos, including rejected" -msgstr "Reddedilen dahil tüm fotoğrafları göster" +msgstr "Reddedilmişler dahil tüm fotoğrafları göster" -#: src/Resources.vala:276 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 -#: ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 ui/trash.ui:150 +#: src/Resources.vala:246 ui/event.ui:184 ui/faces.ui:184 ui/import.ui:144 +#: ui/media.ui:184 ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 +#: ui/trash.ui:150 msgid "_All Photos" msgstr "_Tüm Fotoğraflar" #. Button tooltip -#: src/Resources.vala:278 +#: src/Resources.vala:248 msgid "Show all photos" msgstr "Tüm fotoğrafları göster" -#: src/Resources.vala:280 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 -#: ui/tags.ui:144 +#: src/Resources.vala:250 ui/event.ui:144 ui/faces.ui:144 ui/media.ui:144 +#: ui/photo.ui:120 ui/tags.ui:144 msgid "_Ratings" -msgstr "_Değerlemeler" +msgstr "_Puanlar" -#: src/Resources.vala:281 +#: src/Resources.vala:251 msgid "Display each photo’s rating" msgstr "Her fotoğrafın puanını göster" -#: src/Resources.vala:283 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 -#: ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 +#: src/Resources.vala:253 ui/event.ui:151 ui/faces.ui:151 ui/import.ui:111 +#: ui/media.ui:151 ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 msgid "_Filter Photos" msgstr "Fotoğrafları _Süz" -#: src/Resources.vala:284 +#: src/Resources.vala:254 msgid "Filter Photos" msgstr "Fotoğrafları Süz" -#: src/Resources.vala:285 +#: src/Resources.vala:255 msgid "Limit the number of photos displayed based on a filter" msgstr "Süzgece dayalı gösterilen fotoğrafların sayısını sınırla" -#: src/Resources.vala:288 +#: src/Resources.vala:258 msgid "Duplicate" msgstr "Kopya Oluştur" -#: src/Resources.vala:289 +#: src/Resources.vala:259 msgid "Make a duplicate of the photo" msgstr "Fotoğrafın bir kopyasını oluştur" -#: src/Resources.vala:291 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 -#: ui/tags.ui:17 +#: src/Resources.vala:261 ui/event.ui:17 ui/faces.ui:17 ui/media.ui:17 +#: ui/photo.ui:17 ui/tags.ui:17 msgid "_Export…" msgstr "_Dışa Aktar…" -#: src/Resources.vala:293 +#: src/Resources.vala:263 msgid "_Print…" -msgstr "_Baskı…" +msgstr "_Yazdır…" -#: src/Resources.vala:295 +#: src/Resources.vala:265 msgid "Pu_blish…" msgstr "Yayı_mla…" -#: src/Resources.vala:297 ui/collection.ui:189 +#: src/Resources.vala:267 ui/collection.ui:189 msgid "Publish to various websites" msgstr "Çeşitli web sitelerinde yayımla" -#: src/Resources.vala:299 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 -#: ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 ui/tags.ui:340 +#: src/Resources.vala:269 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 +#: ui/faces.ui:340 ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 +#: ui/tags.ui:340 msgid "Edit _Title…" msgstr "Başlığı _Düzenle…" #. Button label -#: src/Resources.vala:301 +#: src/Resources.vala:271 msgctxt "Button Label" msgid "Edit Title" msgstr "Başlığı Düzenle" -#: src/Resources.vala:303 ui/collection.ui:103 ui/events_directory.ui:144 +#: src/Resources.vala:273 ui/collection.ui:103 ui/events_directory.ui:144 #: ui/events_directory.ui:186 ui/event.ui:345 ui/event.ui:398 ui/event.ui:542 -#: ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 ui/tags.ui:345 +#: ui/faces.ui:345 ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 +#: ui/tags.ui:345 msgid "Edit _Comment…" msgstr "_Yorumu Düzenle…" #. Button label -#: src/Resources.vala:305 +#: src/Resources.vala:275 msgid "Edit Comment" msgstr "Yorumu Düzenle" -#: src/Resources.vala:307 ui/event.ui:592 +#: src/Resources.vala:277 ui/event.ui:592 msgid "Edit Event _Comment…" msgstr "Olay _Yorumunu Düzenle…" -#: src/Resources.vala:310 ui/direct.ui:167 ui/photo.ui:337 +#: src/Resources.vala:280 ui/direct.ui:167 ui/photo.ui:337 msgid "_Adjust Date and Time…" msgstr "Tarih ve Zamanı _Ayarla…" -#: src/Resources.vala:311 +#: src/Resources.vala:281 msgid "Adjust Date and Time" msgstr "Tarih ve Zamanı Ayarla" -#: src/Resources.vala:313 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 -#: ui/media.ui:390 ui/photo.ui:374 ui/tags.ui:390 +#: src/Resources.vala:283 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 +#: ui/faces.ui:390 ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 msgid "Add _Tags…" msgstr "E_tiket Ekle…" -#: src/Resources.vala:314 ui/photo_context.ui:17 +#: src/Resources.vala:284 ui/photo_context.ui:17 msgid "_Add Tags…" msgstr "Etiket _Ekle…" #. Dialog title -#: src/Resources.vala:316 +#: src/Resources.vala:286 msgctxt "Dialog Title" msgid "Add Tags" msgstr "Etiket Ekle" -#: src/Resources.vala:325 ui/photo_context.ui:135 +#: src/Resources.vala:295 ui/photo_context.ui:135 msgid "Send T_o…" msgstr "G_önder…" -#: src/Resources.vala:327 +#: src/Resources.vala:297 msgid "_Find…" msgstr "_Bul…" -#: src/Resources.vala:328 ui/collection.ui:217 ui/offline.ui:239 +#: src/Resources.vala:298 ui/collection.ui:217 ui/offline.ui:239 #: ui/trash.ui:312 msgid "Find" msgstr "Bul" -#: src/Resources.vala:329 ui/collection.ui:214 ui/offline.ui:236 +#: src/Resources.vala:299 ui/collection.ui:214 ui/offline.ui:236 #: ui/trash.ui:309 msgid "Find an image by typing text that appears in its name or tags" msgstr "Metin yazarak adında veya etiketlerinde görünen bi resmi bul" -#: src/Resources.vala:331 +#: src/Resources.vala:301 msgid "_Flag" msgstr "_İşaretle" -#: src/Resources.vala:333 +#: src/Resources.vala:303 msgid "Un_flag" msgstr "İşareti _Kaldır" -#: src/Resources.vala:336 +#: src/Resources.vala:307 +#| msgid "Make a duplicate of the photo" +msgid "Mark faces of people in the photo" +msgstr "Fotoğraftaki insanların yüzünü imle" + +#: src/Resources.vala:308 +#| msgid "Modify Tags" +msgid "Modify Faces" +msgstr "Yüzleri Düzenle" + +#: src/Resources.vala:309 +#| msgid "Delete Tag" +msgid "Delete Face" +msgstr "Yüzü Sil" + +#: src/Resources.vala:311 src/Resources.vala:353 ui/tags.ui:456 +msgid "_Rename…" +msgstr "_Yeniden Adlandır…" + +#: src/Resources.vala:315 #, c-format msgid "Unable to launch editor: %s" msgstr "Düzenleyici çalıştırılamadı: %s" -#: src/Resources.vala:341 +#: src/Resources.vala:320 #, c-format msgid "Add Tag “%s”" msgstr "“%s” Etiketini Ekle" #. Used when adding two tags to photo(s) -#: src/Resources.vala:344 +#: src/Resources.vala:323 #, c-format msgid "Add Tags “%s” and “%s”" msgstr "“%s” ve “%s” Etiketini Ekle" #. Undo/Redo command name (in Edit menu) -#: src/Resources.vala:349 +#: src/Resources.vala:328 msgctxt "UndoRedo menu entry" msgid "Add Tags" msgstr "Etiket Ekle" -#: src/Resources.vala:354 +#: src/Resources.vala:333 #, c-format msgid "_Delete Tag “%s”" msgstr "“%s” Etiketini _Sil" -#: src/Resources.vala:358 +#: src/Resources.vala:337 #, c-format msgid "Delete Tag “%s”" msgstr "“%s” Etiketini Sil" -#: src/Resources.vala:361 +#: src/Resources.vala:340 msgid "Delete Tag" msgstr "Etiketi Sil" -#: src/Resources.vala:367 +#: src/Resources.vala:346 #, c-format msgid "Re_name Tag “%s”…" msgstr "“%s” Etiketini Yeniden _Adlandır…" -#: src/Resources.vala:371 +#: src/Resources.vala:350 #, c-format msgid "Rename Tag “%s” to “%s”" msgstr "“%s” Etiketini “%s” Olarak Yeniden Adlandır" -#: src/Resources.vala:374 ui/tags.ui:456 -msgid "_Rename…" -msgstr "_Yeniden Adlandır…" - -#: src/Resources.vala:376 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 -#: ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:379 ui/tags.ui:395 +#: src/Resources.vala:355 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 +#: ui/faces.ui:395 ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 +#: ui/tags.ui:395 msgid "Modif_y Tags…" msgstr "Etiketleri Düzenl_e…" -#: src/Resources.vala:377 +#: src/Resources.vala:356 msgid "Modify Tags" msgstr "Etiketleri Düzenle" -#: src/Resources.vala:380 +#: src/Resources.vala:359 #, c-format msgid "Tag Photo as “%s”" msgid_plural "Tag Photos as “%s”" msgstr[0] "Fotoğrafı “%s” olarak etiketle" -#: src/Resources.vala:386 +#: src/Resources.vala:365 #, c-format msgid "Tag the selected photo as “%s”" msgid_plural "Tag the selected photos as “%s”" msgstr[0] "Seçili fotoğrafı “%s” olarak etiketle" -#: src/Resources.vala:392 +#: src/Resources.vala:371 #, c-format msgid "Remove Tag “%s” From _Photo" msgid_plural "Remove Tag “%s” From _Photos" msgstr[0] "“%s” Etiketini _Fotoğraftan Kaldır" -#: src/Resources.vala:398 +#: src/Resources.vala:377 #, c-format msgid "Remove Tag “%s” From Photo" msgid_plural "Remove Tag “%s” From Photos" msgstr[0] "“%s” Etiketini Fotoğraftan Kaldır" -#: src/Resources.vala:404 +#: src/Resources.vala:383 #, c-format msgid "Unable to rename tag to “%s” because the tag already exists." msgstr "Etiket “%s” olarak adlandırılamadı çünkü etiket zaten var." -#: src/Resources.vala:408 +#: src/Resources.vala:387 #, c-format msgid "Unable to rename search to “%s” because the search already exists." msgstr "Arama “%s” olarak yeniden adlandırılamıyor çünkü bu arama zaten var." #. Saved search button -#: src/Resources.vala:411 src/SearchFilter.vala:1124 +#: src/Resources.vala:390 src/SearchFilter.vala:1146 msgid "Saved Search" msgstr "Kayıtlı Arama" -#: src/Resources.vala:413 +#: src/Resources.vala:392 msgid "Delete Search" msgstr "Aramayı Sil" -#: src/Resources.vala:416 ui/savedsearch.ui:11 +#: src/Resources.vala:395 ui/savedsearch.ui:10 msgid "_Edit…" msgstr "_Düzenle…" -#: src/Resources.vala:417 ui/savedsearch.ui:7 +#: src/Resources.vala:396 ui/savedsearch.ui:6 msgid "Re_name…" msgstr "Ye_niden Adlandır…" -#: src/Resources.vala:420 +#: src/Resources.vala:399 #, c-format msgid "Rename Search “%s” to “%s”" msgstr "“%s” Aramasını “%s” Olarak Yeniden Adlandır" -#: src/Resources.vala:424 +#: src/Resources.vala:403 #, c-format msgid "Delete Search “%s”" msgstr "“%s” Aramasını Sil" -#: src/Resources.vala:561 +#: src/Resources.vala:408 +#, c-format +#| msgid "Unable to rename tag to “%s” because the tag already exists." +msgid "Unable to rename face to “%s” because the face already exists." +msgstr "Yüz “%s” olarak adlandırılamadı çünkü yüz zaten var." + +#: src/Resources.vala:412 +#, c-format +#| msgid "Remove Tag “%s” From _Photo" +#| msgid_plural "Remove Tag “%s” From _Photos" +msgid "Remove Face “%s” From _Photo" +msgid_plural "Remove Face “%s” From _Photos" +msgstr[0] "“%s” Yüzünü _Fotoğraftan Kaldır" + +#: src/Resources.vala:417 +#, c-format +#| msgid "Remove Tag “%s” From Photo" +#| msgid_plural "Remove Tag “%s” From Photos" +msgid "Remove Face “%s” From Photo" +msgid_plural "Remove Face “%s” From Photos" +msgstr[0] "“%s” Yüzünü Fotoğraftan Kaldır" + +#: src/Resources.vala:422 +#, c-format +#| msgid "Re_name Tag “%s”…" +msgid "Re_name Face “%s”…" +msgstr "“%s” Yüzünü Yeniden _Adlandır…" + +#: src/Resources.vala:426 +#, c-format +#| msgid "Rename Tag “%s” to “%s”" +msgid "Rename Face “%s” to “%s”" +msgstr "“%s” Yüzünü “%s” Olarak Yeniden Adlandır" + +#: src/Resources.vala:430 +#, c-format +#| msgid "_Delete Tag “%s”" +msgid "_Delete Face “%s”" +msgstr "“%s” Yüzünü _Sil" + +#: src/Resources.vala:434 +#, c-format +#| msgid "Delete Tag “%s”" +msgid "Delete Face “%s”" +msgstr "“%s” Yüzünü Sil" + +#: src/Resources.vala:636 #, c-format msgid "Rate %s" -msgstr "%s i Değerle" +msgstr "%sʼi Puanla" -#: src/Resources.vala:562 +#: src/Resources.vala:637 #, c-format msgid "Set rating to %s" -msgstr "Değerlemeyi %s e ayarla" +msgstr "Puanı %s olarak ayarla" -#: src/Resources.vala:563 +#: src/Resources.vala:638 #, c-format msgid "Setting rating to %s" -msgstr "Değerleme %s e ayarlanıyor" +msgstr "Puan %s olarak ayarlanıyor" -#: src/Resources.vala:565 +#: src/Resources.vala:640 #, c-format msgid "Display %s" -msgstr "%s i Göster" +msgstr "%sʼi Göster" -#: src/Resources.vala:566 +#: src/Resources.vala:641 #, c-format msgid "Only show photos with a rating of %s" -msgstr "Değerlemesi yalnızca %s olan fotoğrafları göster" +msgstr "Puanı yalnızca %s olan fotoğrafları göster" -#: src/Resources.vala:567 +#: src/Resources.vala:642 #, c-format msgid "%s or Better" -msgstr "%s veya Daha İyisi " +msgstr "%s veya Daha İyisi" -#: src/Resources.vala:568 +#: src/Resources.vala:643 #, c-format msgid "Display %s or Better" msgstr "%s veya Daha İyisini Göster" -#: src/Resources.vala:569 +#: src/Resources.vala:644 #, c-format msgid "Only show photos with a rating of %s or better" -msgstr "Değerlemesi yalnızca %s veya daha iyisi olan fotoğrafları göster" +msgstr "Puanı yalnızca %s veya daha iyisi olan fotoğrafları göster" -#: src/Resources.vala:660 ui/trash.ui:255 +#: src/Resources.vala:735 ui/trash.ui:255 msgid "Remove the selected photos from the trash" msgstr "Seçili fotoğrafları çöp kutusundan geri getir" -#: src/Resources.vala:661 ui/offline.ui:221 +#: src/Resources.vala:736 ui/offline.ui:221 msgid "Remove the selected photos from the library" msgstr "Seçili fotoğrafları kitaplıktan çıkar" -#: src/Resources.vala:663 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 +#: src/Resources.vala:738 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 msgid "_Restore" msgstr "_Geri Getir" -#: src/Resources.vala:664 ui/trash.ui:270 +#: src/Resources.vala:739 ui/trash.ui:270 msgid "Move the selected photos back into the library" msgstr "Seçili fotoğrafları kitaplığa geri taşı" -#: src/Resources.vala:666 ui/collection.ui:123 ui/direct_context.ui:18 -#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/media.ui:27 +#: src/Resources.vala:741 ui/collection.ui:123 ui/direct_context.ui:18 +#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/faces.ui:27 ui/media.ui:27 #: ui/photo_context.ui:130 ui/photo.ui:35 ui/tags.ui:27 ui/trash.ui:19 #: ui/trash.ui:227 msgid "Show in File Mana_ger" -msgstr "Dosya Yö_neticisinde Göster " +msgstr "Dosya Yö_neticisinde Göster" -#: src/Resources.vala:667 +#: src/Resources.vala:742 msgid "Open the selected photo’s directory in the file manager" msgstr "Seçili fotoğrafın ait olduğu dizini dosya yöneticisinde aç" -#: src/Resources.vala:670 +#: src/Resources.vala:745 #, c-format msgid "Unable to open in file manager: %s" msgstr "Dosya yöneticisinde açılamıyor: %s" -#: src/Resources.vala:673 ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 -#: ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 ui/tags.ui:74 +#: src/Resources.vala:748 ui/event.ui:74 ui/faces.ui:74 ui/media.ui:74 +#: ui/offline.ui:58 ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 +#: ui/tags.ui:74 msgid "R_emove From Library" msgstr "Kitaplıktan K_aldır" -#: src/Resources.vala:675 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 -#: ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 ui/tags.ui:79 +#: src/Resources.vala:750 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 +#: ui/faces.ui:79 ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 +#: ui/tags.ui:79 msgid "_Move to Trash" msgstr "_Çöpe Taşı" -#: src/Resources.vala:677 ui/events_directory.ui:58 ui/event.ui:86 -#: ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 ui/trash.ui:74 +#: src/Resources.vala:752 ui/events_directory.ui:58 ui/event.ui:86 +#: ui/faces.ui:86 ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 +#: ui/trash.ui:74 msgid "Select _All" msgstr "_Tümünü Seç" -#: src/Resources.vala:678 +#: src/Resources.vala:753 msgid "Select all items" msgstr "Tüm ögeleri seç" @@ -5468,14 +5674,14 @@ msgstr "Tüm ögeleri seç" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format #. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:739 +#: src/Resources.vala:814 msgid "%a %b %d, %Y" msgstr "%d %b %Y %a" #. / Locale-specific starting date format for multi-date strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:744 +#: src/Resources.vala:819 msgctxt "MultidayFormat" msgid "%a %b %d" msgstr "%d %b %a" @@ -5483,7 +5689,7 @@ msgstr "%d %b %a" #. / Locale-specific ending date format for multi-date strings, #. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:749 +#: src/Resources.vala:824 msgctxt "MultidayFormat" msgid "%d, %Y" msgstr "%d, %Y" @@ -5491,7 +5697,7 @@ msgstr "%d, %Y" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:754 +#: src/Resources.vala:829 msgctxt "MultimonthFormat" msgid "%a %b %d" msgstr "%d %b %a" @@ -5499,224 +5705,208 @@ msgstr "%d %b %a" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:759 +#: src/Resources.vala:834 msgctxt "MultimonthFormat" msgid "%a %b %d, %Y" msgstr "%d %b %Y %a" -#: src/Screensaver.vala:18 src/SlideshowPage.vala:115 +#: src/Screensaver.vala:18 src/SlideshowPage.vala:117 msgid "Slideshow" msgstr "Slayt gösterisi" -#: src/searches/SearchesBranch.vala:68 -msgid "Saved Searches" -msgstr "Kaydedilmiş Aramalar" - #. Ordering must correspond with SearchConditionText.Context -#: src/searches/SavedSearchDialog.vala:162 +#: src/searches/SavedSearchDialog.vala:170 msgid "contains" msgstr "içerir" #. Ordering must correspond with Context -#: src/searches/SavedSearchDialog.vala:163 -#: src/searches/SavedSearchDialog.vala:494 +#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:502 msgid "is exactly" msgstr "tam olarak" -#: src/searches/SavedSearchDialog.vala:164 +#: src/searches/SavedSearchDialog.vala:172 msgid "starts with" msgstr "ile başlar" -#: src/searches/SavedSearchDialog.vala:165 +#: src/searches/SavedSearchDialog.vala:173 msgid "ends with" msgstr "ile biter" -#: src/searches/SavedSearchDialog.vala:166 +#: src/searches/SavedSearchDialog.vala:174 msgid "does not contain" msgstr "içermez" -#: src/searches/SavedSearchDialog.vala:167 -#: src/searches/SavedSearchDialog.vala:498 +#: src/searches/SavedSearchDialog.vala:175 +#: src/searches/SavedSearchDialog.vala:506 msgid "is not set" msgstr "ayarlı değil" -#: src/searches/SavedSearchDialog.vala:168 -#, fuzzy +#: src/searches/SavedSearchDialog.vala:176 #| msgid "is not set" msgid "is set" msgstr "ayarlı" #. Ordering must correspond with SearchConditionMediaType.Context -#: src/searches/SavedSearchDialog.vala:242 -#: src/searches/SavedSearchDialog.vala:373 -#: src/searches/SavedSearchDialog.vala:438 +#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:381 +#: src/searches/SavedSearchDialog.vala:446 msgid "is" msgstr "dir" -#: src/searches/SavedSearchDialog.vala:243 +#: src/searches/SavedSearchDialog.vala:251 msgid "is not" msgstr "değildir" #. Ordering must correspond with SearchConditionMediaType.MediaType -#: src/searches/SavedSearchDialog.vala:249 +#: src/searches/SavedSearchDialog.vala:257 msgid "any photo" msgstr "herhangi bir fotoğraf" -#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:258 msgid "a raw photo" msgstr "işenmemiş (raw) bir fotoğraf" -#: src/searches/SavedSearchDialog.vala:251 +#: src/searches/SavedSearchDialog.vala:259 msgid "a video" msgstr "bir video" -#: src/searches/SavedSearchDialog.vala:305 +#: src/searches/SavedSearchDialog.vala:313 msgid "has" msgstr "içerir" -#: src/searches/SavedSearchDialog.vala:306 +#: src/searches/SavedSearchDialog.vala:314 msgid "has no" msgstr "içermez" -#: src/searches/SavedSearchDialog.vala:311 +#: src/searches/SavedSearchDialog.vala:319 msgid "modifications" msgstr "değişiklikler" -#: src/searches/SavedSearchDialog.vala:312 +#: src/searches/SavedSearchDialog.vala:320 msgid "internal modifications" msgstr "dahili değişiklikler" -#: src/searches/SavedSearchDialog.vala:313 +#: src/searches/SavedSearchDialog.vala:321 msgid "external modifications" msgstr "harici düzenlemeler" #. Ordering must correspond with SearchConditionFlagged.State -#: src/searches/SavedSearchDialog.vala:367 +#: src/searches/SavedSearchDialog.vala:375 msgid "flagged" msgstr "işaretli" -#: src/searches/SavedSearchDialog.vala:368 +#: src/searches/SavedSearchDialog.vala:376 msgid "not flagged" msgstr "işaretsiz" -#: src/searches/SavedSearchDialog.vala:431 +#: src/searches/SavedSearchDialog.vala:439 msgid "and higher" msgstr "ve daha yüksek" -#: src/searches/SavedSearchDialog.vala:432 +#: src/searches/SavedSearchDialog.vala:440 msgid "only" msgstr "yalnızca" -#: src/searches/SavedSearchDialog.vala:433 +#: src/searches/SavedSearchDialog.vala:441 msgid "and lower" msgstr "ve daha alçak" -#: src/searches/SavedSearchDialog.vala:495 +#: src/searches/SavedSearchDialog.vala:503 msgid "is after" -msgstr "sonrakidir" +msgstr "sonradır" -#: src/searches/SavedSearchDialog.vala:496 +#: src/searches/SavedSearchDialog.vala:504 msgid "is before" -msgstr "öncekidir" +msgstr "öncedir" -#: src/searches/SavedSearchDialog.vala:497 +#: src/searches/SavedSearchDialog.vala:505 msgid "is between" msgstr "arasındadır" -#: src/searches/SavedSearchDialog.vala:510 +#: src/searches/SavedSearchDialog.vala:518 msgid "and" msgstr "ve" -#: src/searches/SavedSearchDialog.vala:691 -msgid "Search" -msgstr "Ara" - -#: src/searches/SavedSearchDialog.vala:696 -msgid "Cancel" -msgstr "İptal" - -#: src/searches/SavedSearchDialog.vala:697 -msgid "OK" -msgstr "Tamam" - -#: src/searches/SavedSearchDialog.vala:716 -msgid "any" -msgstr "herhangi" - -#: src/searches/SavedSearchDialog.vala:717 -msgid "all" -msgstr "tümü" - -#: src/searches/SavedSearchDialog.vala:718 -msgid "none" -msgstr "hiçbiri" - -#: src/searches/SearchBoolean.vala:157 +#: src/searches/SearchBoolean.vala:169 msgid "Any text" msgstr "Herhangi bir metin" -#: src/searches/SearchBoolean.vala:160 +#: src/searches/SearchBoolean.vala:172 msgid "Title" msgstr "Başlık" -#: src/searches/SearchBoolean.vala:163 +#: src/searches/SearchBoolean.vala:175 msgid "Tag" msgstr "Etiket" -#: src/searches/SearchBoolean.vala:166 +#: src/searches/SearchBoolean.vala:178 msgid "Comment" msgstr "Yorum" -#: src/searches/SearchBoolean.vala:169 +#: src/searches/SearchBoolean.vala:181 msgid "Event name" msgstr "Etkinlik adı" -#: src/searches/SearchBoolean.vala:172 +#: src/searches/SearchBoolean.vala:184 msgid "File name" msgstr "Dosya adı" -#: src/searches/SearchBoolean.vala:175 +#: src/searches/SearchBoolean.vala:187 +msgid "Face" +msgstr "Yüz" + +#: src/searches/SearchBoolean.vala:190 msgid "Media type" msgstr "Ortam türü" -#: src/searches/SearchBoolean.vala:178 +#: src/searches/SearchBoolean.vala:193 msgid "Flag state" msgstr "İşaret durumu" -#: src/searches/SearchBoolean.vala:181 +#: src/searches/SearchBoolean.vala:196 msgid "Photo state" msgstr "Fotoğraf durumu" -#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:831 -#: src/SearchFilter.vala:1114 +#: src/searches/SearchBoolean.vala:199 src/SearchFilter.vala:853 +#: src/SearchFilter.vala:1136 msgid "Rating" -msgstr "Değerleme" +msgstr "Puan" -#: src/searches/SearchBoolean.vala:187 +#: src/searches/SearchBoolean.vala:202 msgid "Date" msgstr "Tarih" -#: src/SearchFilter.vala:815 +#: src/searches/SearchesBranch.vala:68 +msgid "Saved Searches" +msgstr "Kaydedilmiş Aramalar" + +#: src/searches/SearchesBranch.vala:68 +#| msgid "Organize your photos" +msgid "Organize your saved searches" +msgstr "Kaydedilmiş aramalarınızı düzenleyin" + +#: src/SearchFilter.vala:837 msgid "★+ Rating" msgstr "★+ Puan" -#: src/SearchFilter.vala:818 +#: src/SearchFilter.vala:840 msgid "★★+ Rating" msgstr "★★+ Puan" -#: src/SearchFilter.vala:821 +#: src/SearchFilter.vala:843 msgid "★★★+ Rating" msgstr "★★★+ Puan" -#: src/SearchFilter.vala:824 +#: src/SearchFilter.vala:846 msgid "★★★★+ Rating" msgstr "★★★★+ Puan" -#: src/SearchFilter.vala:828 +#: src/SearchFilter.vala:850 msgid "★★★★★+ Rating" msgstr "★★★★★+ Puan" -#: src/SearchFilter.vala:1064 +#: src/SearchFilter.vala:1086 #, c-format msgid "Error loading search bar UI: %s" msgstr "Arama çubuğu kullanıcı arayüzü yüklenirken hata: %s" @@ -5726,71 +5916,71 @@ msgstr "Arama çubuğu kullanıcı arayüzü yüklenirken hata: %s" #. Prepare the close menu for use, but don't #. display it yet; we'll connect it to secondary #. click later on. -#: src/SearchFilter.vala:1073 +#: src/SearchFilter.vala:1095 msgid "Close" msgstr "Kapat" #. Type label and toggles -#: src/SearchFilter.vala:1079 +#: src/SearchFilter.vala:1101 msgid "Type" msgstr "Tür" -#: src/SearchFilter.vala:1086 +#: src/SearchFilter.vala:1108 msgid "Videos" msgstr "Videolar" -#: src/SearchFilter.vala:1089 +#: src/SearchFilter.vala:1111 msgid "RAW Photos" msgstr "RAW Fotoğraflar" -#: src/SearchFilter.vala:1125 +#: src/SearchFilter.vala:1147 msgid "Use a saved search to filter items in the current view" msgstr "Geçerli görünümde ögeleri süzmek için kayıtlı bir arama kullan" #. Set up toolbar #. add toolbar buttons -#: src/SlideshowPage.vala:134 +#: src/SlideshowPage.vala:136 msgid "Back" msgstr "Geri" -#: src/SlideshowPage.vala:136 +#: src/SlideshowPage.vala:138 msgid "Go to the previous photo" msgstr "Önceki fotoğrafa git" -#: src/SlideshowPage.vala:141 src/SlideshowPage.vala:248 +#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:250 msgid "Pause" msgstr "Durdur" -#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:249 +#: src/SlideshowPage.vala:145 src/SlideshowPage.vala:251 msgid "Pause the slideshow" msgstr "Slayt gösterisini durdur" -#: src/SlideshowPage.vala:148 +#: src/SlideshowPage.vala:150 msgid "Next" msgstr "Sonraki" -#: src/SlideshowPage.vala:150 +#: src/SlideshowPage.vala:152 msgid "Go to the next photo" msgstr "Sonraki fotoğrafa git" -#: src/SlideshowPage.vala:157 ui/slideshow_settings.ui:21 +#: src/SlideshowPage.vala:159 ui/slideshow_settings.ui:21 msgid "Settings" msgstr "Ayarlar" -#: src/SlideshowPage.vala:158 +#: src/SlideshowPage.vala:160 msgid "Change slideshow settings" msgstr "Slayt gösterisi ayarlarını değiştir" #. An entire slideshow set might be missing, so check for a loop. -#: src/SlideshowPage.vala:212 +#: src/SlideshowPage.vala:214 msgid "All photo source files are missing." msgstr "Fotoğraf kaynak dosyaları bulunamıyor." -#: src/SlideshowPage.vala:244 +#: src/SlideshowPage.vala:246 msgid "Play" msgstr "Oynat" -#: src/SlideshowPage.vala:245 +#: src/SlideshowPage.vala:247 msgid "Continue the slideshow" msgstr "Slayt gösterisine devam et" @@ -5802,7 +5992,7 @@ msgstr "Slayt Gösterisi Geçişleri" msgid "(None)" msgstr "(Hiçbiri)" -#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:485 +#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:414 msgid "None" msgstr "Hiçbiri" @@ -5814,33 +6004,38 @@ msgstr "Rastgele" msgid "Tags" msgstr "Etiketler" +#: src/tags/TagsBranch.vala:131 +#| msgid "Organize your photos" +msgid "Organize and browse your photo’s tags" +msgstr "Fotoğraflarınızın etiketlerini gözden geçirin ve düzenleyin" + #: src/Tag.vala:830 msgid "untitled" msgstr "başlıksız" #. multiple videos -#: src/VideoSupport.vala:520 +#: src/VideoSupport.vala:521 msgid "Export Videos" msgstr "Videoları Dışa Aktar" -#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/media.ui:281 -#: ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 +#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/faces.ui:281 +#: ui/media.ui:281 ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 msgid "Toggle _Flag" msgstr "İşareti _Aç/Kapat" -#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/media.ui:353 -#: ui/photo_context.ui:88 ui/photo.ui:343 ui/tags.ui:353 +#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/faces.ui:353 +#: ui/media.ui:353 ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 msgid "_Developer" msgstr "_Geliştirici" -#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/media.ui:381 -#: ui/photo_context.ui:126 ui/tags.ui:381 +#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/faces.ui:381 +#: ui/media.ui:381 ui/photo_context.ui:126 ui/tags.ui:381 msgid "View Eve_nt for Photo" msgstr "Resmin Etki_nliğine Bak" -#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/import_queue.ui:5 -#: ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 ui/photo.ui:5 ui/tags.ui:5 -#: ui/trash.ui:5 +#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/faces.ui:5 +#: ui/import_queue.ui:5 ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 +#: ui/photo.ui:5 ui/tags.ui:5 ui/trash.ui:5 msgid "_File" msgstr "_Dosya" @@ -5848,7 +6043,7 @@ msgstr "_Dosya" msgid "Save _As…" msgstr "_Farklı Kaydet…" -#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 +#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 ui/faces.ui:99 #: ui/import_queue.ui:38 ui/import.ui:74 ui/media.ui:99 ui/offline.ui:78 #: ui/photo.ui:95 ui/tags.ui:99 ui/trash.ui:87 msgid "_View" @@ -5882,278 +6077,330 @@ msgstr "_Sonraki Fotoğraf" msgid "T_ools" msgstr "A_raçlar" -#: ui/direct.ui:181 ui/events_directory.ui:158 ui/event.ui:428 +#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 ui/faces.ui:438 #: ui/import_queue.ui:73 ui/import.ui:191 ui/media.ui:411 ui/offline.ui:188 -#: ui/photo.ui:394 ui/tags.ui:430 ui/trash.ui:197 +#: ui/photo.ui:395 ui/tags.ui:430 ui/trash.ui:197 msgid "_Frequently Asked Questions" msgstr "_Sıkça Sorulan Sorular" -#: ui/direct.ui:185 ui/events_directory.ui:162 ui/event.ui:432 +#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 ui/faces.ui:442 #: ui/import_queue.ui:77 ui/import.ui:195 ui/media.ui:415 ui/offline.ui:192 -#: ui/photo.ui:398 ui/tags.ui:434 ui/trash.ui:201 +#: ui/photo.ui:399 ui/tags.ui:434 ui/trash.ui:201 msgid "_Report a Problem…" msgstr "Bir Sorun _Bildir…" -#: ui/events_directory.ui:8 ui/event.ui:8 ui/import_queue.ui:14 ui/import.ui:8 -#: ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 ui/trash.ui:8 +#: ui/events_directory.ui:8 ui/event.ui:8 ui/faces.ui:8 ui/import_queue.ui:14 +#: ui/import.ui:8 ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 +#: ui/trash.ui:8 msgid "_Import From Folder…" msgstr "Dizinden _İçe Aktar…" -#: ui/events_directory.ui:13 ui/event.ui:13 ui/import_queue.ui:19 -#: ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 ui/photo.ui:13 ui/tags.ui:13 -#: ui/trash.ui:13 +#: ui/events_directory.ui:13 ui/event.ui:13 ui/faces.ui:13 +#: ui/import_queue.ui:19 ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 +#: ui/photo.ui:13 ui/tags.ui:13 ui/trash.ui:13 msgid "Import From _Application…" msgstr "_Uygulamadan İçe Aktar…" -#: ui/events_directory.ui:19 ui/event.ui:34 ui/import_queue.ui:25 -#: ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 ui/photo.ui:42 ui/tags.ui:34 -#: ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 +#: ui/events_directory.ui:19 ui/event.ui:34 ui/faces.ui:34 +#: ui/import_queue.ui:25 ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 +#: ui/photo.ui:42 ui/tags.ui:34 ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 msgid "Empty T_rash" msgstr "Çö_p Kutusunu Boşalt" -#: ui/events_directory.ui:47 ui/event.ui:62 ui/import.ui:55 ui/media.ui:62 -#: ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 +#: ui/events_directory.ui:47 ui/event.ui:62 ui/faces.ui:62 ui/import.ui:55 +#: ui/media.ui:62 ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 msgid "_Find" msgstr "_Bul" -#: ui/events_directory.ui:51 ui/event.ui:66 ui/media.ui:66 ui/offline.ui:51 -#: ui/photo.ui:70 ui/search_sidebar_context.ui:6 +#: ui/events_directory.ui:51 ui/event.ui:66 ui/faces.ui:66 ui/media.ui:66 +#: ui/offline.ui:51 ui/photo.ui:70 ui/search_sidebar_context.ui:6 #: ui/sidebar_default_context.ui:6 ui/tags.ui:66 ui/trash.ui:56 msgid "Ne_w Saved Search…" msgstr "Ye_ni Kaydedilmiş Arama…" -#: ui/events_directory.ui:74 ui/event.ui:102 ui/import_queue.ui:41 -#: ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 ui/photo.ui:98 -#: ui/tags.ui:102 ui/trash.ui:90 +#: ui/events_directory.ui:74 ui/event.ui:102 ui/faces.ui:102 +#: ui/import_queue.ui:41 ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 +#: ui/photo.ui:98 ui/tags.ui:102 ui/trash.ui:90 msgid "_Basic Information" msgstr "_Temel Bilgiler" -#: ui/events_directory.ui:79 ui/event.ui:107 ui/import.ui:82 ui/media.ui:107 -#: ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 ui/trash.ui:95 +#: ui/events_directory.ui:79 ui/event.ui:107 ui/faces.ui:107 ui/import.ui:82 +#: ui/media.ui:107 ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 +#: ui/trash.ui:95 msgid "E_xtended Information" msgstr "A_yrıntılı Bilgiler" -#: ui/events_directory.ui:84 ui/event.ui:112 ui/import.ui:87 ui/media.ui:112 -#: ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 +#: ui/events_directory.ui:84 ui/event.ui:112 ui/faces.ui:112 ui/import.ui:87 +#: ui/media.ui:112 ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 msgid "_Search Bar" msgstr "_Arama Çubuğu" -#: ui/events_directory.ui:89 ui/event.ui:117 ui/import.ui:92 ui/media.ui:117 -#: ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 ui/trash.ui:105 +#: ui/events_directory.ui:89 ui/event.ui:117 ui/faces.ui:117 ui/import.ui:92 +#: ui/media.ui:117 ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 +#: ui/trash.ui:105 msgid "S_idebar" msgstr "Kenar Çubuğ_u" -#: ui/events_directory.ui:94 ui/event.ui:122 ui/import.ui:97 ui/media.ui:122 -#: ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 ui/trash.ui:110 +#: ui/events_directory.ui:94 ui/event.ui:122 ui/faces.ui:122 ui/import.ui:97 +#: ui/media.ui:122 ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 +#: ui/trash.ui:110 msgid "T_oolbar" msgstr "Araç Ç_ubuğunu" -#: ui/events_directory.ui:101 ui/event.ui:134 ui/media.ui:134 ui/tags.ui:134 +#: ui/events_directory.ui:101 ui/event.ui:134 ui/faces.ui:134 ui/media.ui:134 +#: ui/tags.ui:134 msgid "_Comments" msgstr "_Yorumlar" -#: ui/events_directory.ui:108 ui/event.ui:243 ui/import_queue.ui:48 -#: ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 ui/photo.ui:127 -#: ui/tags.ui:243 ui/trash.ui:172 +#: ui/events_directory.ui:108 ui/event.ui:243 ui/faces.ui:243 +#: ui/import_queue.ui:48 ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 +#: ui/photo.ui:127 ui/tags.ui:243 ui/trash.ui:172 msgid "Sort _Events" msgstr "_Olayları Sırala" -#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 -#: ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 ui/media.ui:246 -#: ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 ui/tags.ui:246 -#: ui/trash.ui:175 +#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 ui/faces.ui:231 +#: ui/faces.ui:246 ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 +#: ui/media.ui:246 ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 +#: ui/tags.ui:246 ui/trash.ui:175 msgid "_Ascending" msgstr "_Artan" -#: ui/events_directory.ui:116 ui/event.ui:236 ui/import_queue.ui:56 -#: ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 ui/trash.ui:180 +#: ui/events_directory.ui:116 ui/event.ui:236 ui/faces.ui:236 +#: ui/import_queue.ui:56 ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 +#: ui/trash.ui:180 msgid "D_escending" msgstr "A_zalan" -#: ui/events_directory.ui:132 ui/event.ui:379 ui/media.ui:373 ui/tags.ui:373 +#: ui/events_directory.ui:132 ui/event.ui:379 ui/faces.ui:373 ui/media.ui:373 +#: ui/tags.ui:373 msgid "Even_ts" msgstr "Ola_ylar" -#: ui/event.ui:129 ui/import.ui:104 ui/media.ui:129 ui/tags.ui:129 +#: ui/event.ui:129 ui/faces.ui:129 ui/import.ui:104 ui/media.ui:129 +#: ui/tags.ui:129 msgid "_Titles" msgstr "_Başlıklar" -#: ui/event.ui:139 ui/event.ui:404 ui/media.ui:139 ui/media.ui:387 -#: ui/photo.ui:371 ui/tags.ui:139 ui/tags.ui:387 +#: ui/event.ui:139 ui/event.ui:404 ui/faces.ui:139 ui/faces.ui:387 +#: ui/media.ui:139 ui/media.ui:387 ui/photo.ui:372 ui/tags.ui:139 +#: ui/tags.ui:387 msgid "Ta_gs" msgstr "E_tiketler" -#: ui/event.ui:206 ui/media.ui:206 ui/tags.ui:206 +#: ui/event.ui:206 ui/faces.ui:206 ui/media.ui:206 ui/tags.ui:206 msgid "Sort _Photos" msgstr "_Fotoğrafları Sırala" -#: ui/event.ui:209 ui/media.ui:209 ui/tags.ui:209 +#: ui/event.ui:209 ui/faces.ui:209 ui/media.ui:209 ui/tags.ui:209 msgid "By _Title" msgstr "_Başlığa Göre" -#: ui/event.ui:214 ui/media.ui:214 ui/tags.ui:214 +#: ui/event.ui:214 ui/faces.ui:214 ui/media.ui:214 ui/tags.ui:214 msgid "By _Filename" msgstr "_Dosya Adına Göre" -#: ui/event.ui:219 ui/media.ui:219 ui/tags.ui:219 +#: ui/event.ui:219 ui/faces.ui:219 ui/media.ui:219 ui/tags.ui:219 msgid "By Exposure _Date" msgstr "Çekim _Tarihine Göre" -#: ui/event.ui:224 ui/media.ui:224 ui/tags.ui:224 +#: ui/event.ui:224 ui/faces.ui:224 ui/media.ui:224 ui/tags.ui:224 msgid "By _Rating" msgstr "Puanlamaya Gö_re" -#: ui/event.ui:251 ui/import.ui:174 ui/media.ui:251 ui/photo.ui:135 -#: ui/tags.ui:251 +#: ui/event.ui:251 ui/faces.ui:251 ui/import.ui:174 ui/media.ui:251 +#: ui/photo.ui:135 ui/tags.ui:251 msgid "_Descending" msgstr "A_zalan" -#: ui/event.ui:275 ui/media.ui:275 ui/tags.ui:275 +#: ui/event.ui:275 ui/faces.ui:275 ui/media.ui:275 ui/tags.ui:275 msgid "_Photos" msgstr "_Fotoğraflar" +#: ui/faces.ui:465 +#| msgid "_Rename…" +msgid "Rename…" +msgstr "Yeniden Adlandır…" + #: ui/import_queue.ui:8 msgid "_Stop Import" msgstr "İçe Aktarmayı _Durdur" -#: ui/preferences_dialog.ui:65 -msgid "white" -msgstr "beyaz" - -#: ui/preferences_dialog.ui:92 -msgid "black" -msgstr "siyah" - -#: ui/preferences_dialog.ui:123 +#: ui/preferences_dialog.ui:67 msgid "Display" msgstr "Göster" -#: ui/preferences_dialog.ui:160 -msgid "_Background:" -msgstr "_Arka plan" - -#: ui/preferences_dialog.ui:175 +#: ui/preferences_dialog.ui:103 msgid "_Import photos to:" msgstr "_Fotoğrafları şunun içine aktar:" -#: ui/preferences_dialog.ui:186 +#: ui/preferences_dialog.ui:114 msgid "_Watch library directory for new files" -msgstr "_Yeni dosyalar için kitaplık dizinini izle" +msgstr "_Yeni dosyalar için kitaplık dizinini gözle" -#: ui/preferences_dialog.ui:209 +#: ui/preferences_dialog.ui:137 msgid "Importing" msgstr "İçe Aktarılıyor" -#: ui/preferences_dialog.ui:226 +#: ui/preferences_dialog.ui:154 msgid "_Directory structure:" msgstr "_Dizin yapısı:" -#: ui/preferences_dialog.ui:241 +#: ui/preferences_dialog.ui:169 msgid "Example:" msgstr "Örnek:" -#: ui/preferences_dialog.ui:250 +#: ui/preferences_dialog.ui:178 msgid "R_ename imported files to lowercase" -msgstr "İçe aktarılan dosyaları küçük harfe y_eniden adlandır" +msgstr "İçe aktarılan dosyaları küçük harflerle y_eniden adlandır" -#: ui/preferences_dialog.ui:272 +#: ui/preferences_dialog.ui:200 msgid "Metadata" msgstr "Üstveri" -#: ui/preferences_dialog.ui:285 +#: ui/preferences_dialog.ui:213 msgid "Write tags, titles, and other _metadata to photo files" msgstr "Fotoğraf dosyalarına etiketleri, başlıkları ve diğer _üstveriyi yaz" -#: ui/preferences_dialog.ui:307 +#: ui/preferences_dialog.ui:235 msgid "RAW Developer" msgstr "RAW Geliştirici" -#: ui/preferences_dialog.ui:324 +#: ui/preferences_dialog.ui:252 msgid "De_fault:" msgstr "Öntanım_lı:" -#: ui/preferences_dialog.ui:378 +#: ui/preferences_dialog.ui:306 msgid "_Pattern:" msgstr "_Şablon:" -#: ui/preferences_dialog.ui:414 +#: ui/preferences_dialog.ui:339 +msgid "" +"When viewing images that are transparent, they will be drawn against this " +"background." +msgstr "Saydam görüntüler gösterilirken bu arka planın üzerine çizilecekler." + +#: ui/preferences_dialog.ui:343 msgid "Transparent Background:" msgstr "Saydam Arka Plan:" -#: ui/preferences_dialog.ui:428 +#: ui/preferences_dialog.ui:357 msgid "Checkered" msgstr "Damalı" -#: ui/preferences_dialog.ui:449 +#: ui/preferences_dialog.ui:378 msgid "Solid color" msgstr "Katı renk" -#: ui/preferences_dialog.ui:539 +#: ui/preferences_dialog.ui:441 +msgid "Use dark theme:" +msgstr "Karanlık gövde kullan:" + +#: ui/preferences_dialog.ui:492 msgid "E_xternal photo editor:" msgstr "H_arici fotoğraf düzenleyici:" -#: ui/preferences_dialog.ui:556 +#: ui/preferences_dialog.ui:509 msgid "External _RAW editor:" msgstr "Harici _RAW düzenleyici:" -#: ui/preferences_dialog.ui:617 +#: ui/preferences_dialog.ui:570 msgid "External Editors" msgstr "Harici Düzenleyiciler" -#: ui/preferences_dialog.ui:642 +#: ui/preferences_dialog.ui:595 msgid "Plugins" msgstr "Eklentiler" -#: ui/printing_widget.ui:19 +#: ui/preferences_dialog.ui:621 +msgid "Shotwell Preferences" +msgstr "Shotwell Tercihleri" + +#: ui/printing_widget.ui:18 msgid "Printed Image Size" msgstr "Yazdırılmış Resim Boyutu" -#: ui/printing_widget.ui:36 +#: ui/printing_widget.ui:38 msgid "Use a _standard size:" msgstr "_Standart bir boyut kullan:" -#: ui/printing_widget.ui:80 +#: ui/printing_widget.ui:65 msgid "Use a c_ustom size:" msgstr "Ö_zel bir boyut kullan:" #. Abbrevation for "inch" -#: ui/printing_widget.ui:146 +#: ui/printing_widget.ui:128 msgid "in." msgstr "inç" #. Abbrevation for "centimeters" -#: ui/printing_widget.ui:147 +#: ui/printing_widget.ui:129 msgid "cm" msgstr "cm" -#: ui/printing_widget.ui:173 +#: ui/printing_widget.ui:146 msgid "_Match photo aspect ratio" msgstr "Fotoğraf en-boy oranını _eşleştir" -#: ui/printing_widget.ui:197 +#: ui/printing_widget.ui:161 msgid "_Autosize:" msgstr "_Otomatik Ölçütlendirme:" -#: ui/printing_widget.ui:237 +#: ui/printing_widget.ui:202 msgid "Titles" msgstr "Başlıklar" -#: ui/printing_widget.ui:254 +#: ui/printing_widget.ui:219 msgid "Print image _title" msgstr "Resim _başlığını yazdır" -#: ui/printing_widget.ui:297 +#: ui/printing_widget.ui:262 msgid "Pixel Resolution" msgstr "Piksel Çözünürlüğü" -#: ui/printing_widget.ui:317 +#: ui/printing_widget.ui:282 msgid "_Output photo at:" msgstr "Dosya çıktısı _konumu:" -#: ui/printing_widget.ui:351 +#: ui/printing_widget.ui:316 msgid "pixels per inch" msgstr "inç başına benek miktarı" +#: ui/saved_search_dialog.ui:7 +msgid "Search" +msgstr "Ara" + +#: ui/saved_search_dialog.ui:23 +msgid "Cancel" +msgstr "İptal" + +#: ui/saved_search_dialog.ui:36 +msgid "OK" +msgstr "Tamam" + +#: ui/saved_search_dialog.ui:74 +msgid "_Name of search:" +msgstr "_Arama adı:" + +#: ui/saved_search_dialog.ui:132 +msgid "_Match" +msgstr "Şunların" + +#: ui/saved_search_dialog.ui:149 +msgid "any" +msgstr "herhangi birini" + +#: ui/saved_search_dialog.ui:150 +msgid "all" +msgstr "tümünü" + +#: ui/saved_search_dialog.ui:151 +msgid "none" +msgstr "hiçbirini" + +#: ui/saved_search_dialog.ui:165 +msgid "of the following:" +msgstr "eşleştir:" + #: ui/set_background_dialog.ui:9 msgid "Set as Desktop Background" msgstr "Masaüstü Arka Planı Olarak Ayarla" @@ -6186,50 +6433,73 @@ msgstr "zaman dilimi" msgid "How long each photo is shown on the desktop background" msgstr "Her fotoğrafın masaüstü arka planı üzerinde ne kadar süre gösterildiği" -#: ui/shotwell.ui:22 -msgid "_Name of search:" -msgstr "_Arama adı:" - -#: ui/shotwell.ui:76 -msgid "_Match" -msgstr "_Eşleşen" - -#: ui/shotwell.ui:103 -msgid "of the following:" -msgstr "aşağıdakilerden:" - -#: ui/shotwell.ui:184 -msgid "label" -msgstr "etiket" - #: ui/sidebar_default_context.ui:11 ui/tag_sidebar_context.ui:6 msgid "New _Tag…" msgstr "Yeni _Etiket…" -#: ui/slideshow_settings.ui:91 +#: ui/slideshow_settings.ui:98 msgid "_Delay:" msgstr "_Gecikme:" -#: ui/slideshow_settings.ui:105 +#: ui/slideshow_settings.ui:112 msgid "_Transition effect:" msgstr "_Geçiş etkisi:" -#: ui/slideshow_settings.ui:119 +#: ui/slideshow_settings.ui:126 msgid "Transition d_elay:" msgstr "Geçiş G_ecikmesi:" -#: ui/slideshow_settings.ui:129 +#: ui/slideshow_settings.ui:136 msgid "Show t_itle" msgstr "Başlığı g_öster" -#: ui/slideshow_settings.ui:212 ui/slideshow_settings.ui:223 +#: ui/slideshow_settings.ui:219 ui/slideshow_settings.ui:230 msgid "seconds" msgstr "saniye" +#: ui/textentrydialog.ui:66 +msgid "label" +msgstr "etiket" + #: ui/trash.ui:285 msgid "Delete all photos in the trash" msgstr "Çöp kutusundaki tüm fotoğrafları sil" +#~ msgid "background color" +#~ msgstr "arka plan rengi" + +#~ msgid "A grayscale color for use as the background color." +#~ msgstr "Arka plan rengi olarak kullanmak için gri tonda bir renk." + +#~ msgid "" +#~ "Enter the confirmation number which appears after you log into Flickr in " +#~ "your Web browser." +#~ msgstr "" +#~ "Flickr’a Web tarayıcınızdan girdikten sonra çıkan doğrulama sayısını " +#~ "girin:" + +#~ msgid "Authorization _Number:" +#~ msgstr "Yetkilendirme _Numarası:" + +#~ msgid "Width or height" +#~ msgstr "Genişlik veya yükseklik" + +#~ msgid "“%s” isn’t a valid response to an OAuth authentication request" +#~ msgstr "" +#~ "“%s” bir OAuth kimlik doğrulama isteği için geçerli bir yanıt değildir" + +#~ msgid "Extended Information" +#~ msgstr "Ayrıntılı Bilgi" + +#~ msgid "white" +#~ msgstr "beyaz" + +#~ msgid "black" +#~ msgstr "siyah" + +#~ msgid "_Background:" +#~ msgstr "_Arka plan" + #~| msgid "Copyright 2009-2014 Yorba Foundation" #~ msgid "Copyright 2009-2015 Yorba Foundation" #~ msgstr "Telif Hakkı 2009-2015 Yorba Foundation" @@ -6524,9 +6794,6 @@ msgstr "Çöp kutusundaki tüm fotoğrafları sil" #~ msgid "The selected photos were successfully published." #~ msgstr "Seçili fotoğraflar başarıyla yayımlandı." -#~ msgid "Shotwell Preferences" -#~ msgstr "Shotwell Tercihleri" - #~| msgid "" #~| "A file required for publishing is unavailable. Publishing to Flickr " #~| "can't continue." diff --git a/po/uk.gmo b/po/uk.gmo deleted file mode 100644 index 25d8c17..0000000 Binary files a/po/uk.gmo and /dev/null differ diff --git a/po/vi.gmo b/po/vi.gmo deleted file mode 100644 index 8c97455..0000000 Binary files a/po/vi.gmo and /dev/null differ diff --git a/po/zh_CN.gmo b/po/zh_CN.gmo deleted file mode 100644 index 1789991..0000000 Binary files a/po/zh_CN.gmo and /dev/null differ diff --git a/po/zh_CN.po b/po/zh_CN.po index be56e1e..d0474b5 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -31,4559 +31,6787 @@ msgid "" msgstr "" "Project-Id-Version: shotwell-0.15\n" "Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" -"product=shotwell&keywords=I18N+L10N&component=general\n" -"POT-Creation-Date: 2014-01-15 20:17+0000\n" -"PO-Revision-Date: 2014-01-18 17:45+0800\n" -"Last-Translator: 甘露(Gan Lu) \n" +"product=shotwell&keywords=I18N+L10N&component=Internationalization\n" +"POT-Creation-Date: 2016-12-23 00:18+0000\n" +"PO-Revision-Date: 2016-12-25 19:01+0800\n" +"Last-Translator: Boyuan Yang <073plan@gmail.com>\n" "Language-Team: Chinese (Simplified) \n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Gtranslator 2.91.6\n" +"X-Generator: Poedit 1.8.11\n" -#: ../plugins/common/RESTSupport.vala:424 -#: ../plugins/shotwell-publishing-extras/TumblrPublishing.vala:968 -msgid "A temporary file needed for publishing is unavailable" -msgstr "用于发布需要的临时文件不可用" +#: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in.in:4 +#: plugins/shotwell-publishing-extras/GalleryConnector.vala:115 +#: src/photos/RawSupport.vala:300 ui/collection.ui:85 ui/event.ui:354 +#: ui/event.ui:522 ui/media.ui:354 ui/photo_context.ui:91 ui/photo.ui:344 +#: ui/tags.ui:354 +msgid "Shotwell" +msgstr "Shotwell" -#: ../plugins/common/RESTSupport.vala:1138 +#: misc/shotwell.appdata.xml.in:9 +msgid "Popular photo manager" +msgstr "流行的照片管理器" + +#: misc/shotwell.appdata.xml.in:11 msgid "" -"You have already logged in and out of a Google service during this Shotwell " -"session.\n" -"\n" -"To continue publishing to Google services, quit and restart Shotwell, then " -"try publishing again." +"Shotwell is an easy-to-use, fast photo organizer designed for the GNOME " +"desktop. It allows you to import photos from your camera or disk, organize " +"them by date and subject matter, even ratings. It also offers basic photo " +"editing, like crop, red-eye correction, color adjustments, and straighten. " +"Shotwell’s non-destructive photo editor does not alter your master photos, " +"making it easy to experiment and correct errors." msgstr "" -"在本次 Shotwell 会话中您登录 Google 服务然后退出了。\n" -"要继续发布到 Google,请退出并重新启动 Shotwell,然后再尝试发布。" +"Shotwell 是一个易用的、快速的照片组织软件,为 GNOME 桌面而设计。它可以帮助您" +"从您的照相机或磁盘中导入照片、按照时间和主题内容进行组织,甚至是进行评分。它" +"同时提供了基础的照片编辑功能,如剪裁、红眼修正、颜色调整和倾斜修正。Shotwell " +"的非破坏性照片编辑器不会修改您的原始照片,可以更方便您的试验并对编辑错误进行" +"修正。" -#: ../plugins/common/Resources.vala:9 ../src/AppWindow.vala:683 -msgid "Visit the Yorba web site" -msgstr "访问 Yorba 网站" - -#: ../plugins/common/Resources.vala:28 ../src/AppWindow.vala:686 -msgid "translator-credits" +#: misc/shotwell.appdata.xml.in:18 +msgid "" +"When ready, Shotwell can upload your photos to various web sites, such as " +"Facebook, Flickr, Picasa (Google Plus), and more." msgstr "" -"Tommy He , 2011\n" -"zheng7fu2 , 2011\n" -"Xhacker Liu , 2011\n" -"b6i , 2011\n" -"YunQiang Su , 2012\n" -"Aron Xu , 2012\n" -"Jason Lau, 刘家昌 , 2013\n" -"甘露(Gan Lu) , 2014\n" -"\n" -"Launchpad Contributions:\n" -" Aron Xu https://launchpad.net/~happyaron\n" -" David Gao https://launchpad.net/~davidgao1001\n" -" H https://launchpad.net/~zheng7fu2\n" -" Meng Zhuo https://launchpad.net/~mengzhuo1203\n" -" Qiu Haoyu https://launchpad.net/~timothyqiu\n" -" Tommy He https://launchpad.net/~tommy-he\n" -" Vera Yin https://launchpad.net/~vera-yorba\n" -" Wylmer Wang https://launchpad.net/~wantinghard\n" -" Xhacker Liu https://launchpad.net/~xhacker\n" -" YunQiang Su https://launchpad.net/~wzssyqa\n" -" mike2718 https://launchpad.net/~mike2718\n" -" slgray https://launchpad.net/~chenlibinpeter-gmail\n" -" 丁威扬 https://launchpad.net/~dingvyoung" +"一切就绪后,Shotwell 可以将您的照片上传到各个网站上,例如 Fackbook, Flickr, " +"Picasa (Google Plus) 等等。" -#: ../plugins/shotwell-data-imports/FSpotImporter.vala:34 -#: ../plugins/shotwell-publishing/FacebookPublishing.vala:32 -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:34 -#: ../plugins/shotwell-publishing/PicasaPublishing.vala:32 -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:32 -#: ../plugins/shotwell-publishing/YouTubePublishing.vala:32 -#: ../src/Resources.vala:27 -msgid "Copyright 2009-2013 Yorba Foundation" -msgstr "版权所有 2009-2013 Yorba Foundation, Yorba 基金会" +#: misc/shotwell.appdata.xml.in:22 +msgid "Shotwell supports JPEG, PNG, TIFF, and a variety of RAW file formats." +msgstr "Shotwell 支持 JPEG, PNG, TIFF 以及许多 RAW 文件格式。" -#: ../plugins/shotwell-data-imports/FSpotImporter.vala:56 -msgid "" -"Welcome to the F-Spot library import service.\n" -"\n" -"Please select a library to import, either by selecting one of the existing " -"libraries found by Shotwell or by selecting an alternative F-Spot database " -"file." -msgstr "" -"欢迎使用 F-Spot 媒体库导入服务。\n" -"\n" -"请选择一个要导入的媒体库,既可以是 Shotwell 找到的现存库,也可以选择其他 F-" -"Spot 数据库文件。" +#: misc/shotwell.desktop.in.in:5 src/Resources.vala:17 +msgid "Photo Manager" +msgstr "照片管理器" -#: ../plugins/shotwell-data-imports/FSpotImporter.vala:58 +#: misc/shotwell.desktop.in.in:6 +msgid "Organize your photos" +msgstr "组织您的照片" + +#. Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! +#: misc/shotwell.desktop.in.in:8 msgid "" -"Welcome to the F-Spot library import service.\n" -"\n" -"Please select an F-Spot database file." +"album;camera;cameras;crop;edit;enhance;export;gallery;image;images;import;" +"organize;photo;photographs;photos;picture;pictures;photography;print;publish;" +"rotate;share;tags;video;facebook;flickr;picasa;youtube;piwigo;" msgstr "" -"欢迎使用 F-Spot 媒体库导入服务。\n" -"\n" -"请选择一个 F-Spot 数据库文件。" +"album;camera;cameras;crop;edit;enhance;export;gallery;image;images;import;" +"organize;photo;photographs;photos;picture;pictures;photography;print;publish;" +"rotate;share;tags;video;facebook;flickr;picasa;youtube;piwigo;相册;图像;照片;" +"发布;脸书;照相机;编辑;录像;摄像;" -#: ../plugins/shotwell-data-imports/FSpotImporter.vala:60 -msgid "Manually select an F-Spot database file to import:" -msgstr "手工选择一个要导入的 F-Spot 数据库文件:" +#. Translators: Do NOT translate or transliterate this text (this is an icon file name)! +#: misc/shotwell.desktop.in.in:11 misc/shotwell-viewer.desktop.in.in:8 +msgid "shotwell" +msgstr "shotwell" -#: ../plugins/shotwell-data-imports/FSpotImporter.vala:62 -msgid "" -"Cannot open the selected F-Spot database file: the file does not exist or is " -"not an F-Spot database" -msgstr "无法打开选定的 F-Spot 数据库文件:文件不存在或不是 F-Spot 数据库" +#: misc/shotwell-viewer.desktop.in.in:4 +msgid "Shotwell Viewer" +msgstr "Shotwell 查看器" -#: ../plugins/shotwell-data-imports/FSpotImporter.vala:64 -msgid "" -"Cannot open the selected F-Spot database file: this version of the F-Spot " -"database is not supported by Shotwell" +#: misc/shotwell-viewer.desktop.in.in:5 src/Resources.vala:18 +msgid "Photo Viewer" +msgstr "照片查看器" + +#: misc/org.yorba.shotwell-extras.gschema.xml:6 +msgid "authentication token" +msgstr "验证凭据" + +#: misc/org.yorba.shotwell-extras.gschema.xml:7 +msgid "Yandex-Fotki authentication token, if logged in." +msgstr "Yandex-Fotki 验证凭据,如果已登录。" + +#: misc/org.yorba.shotwell-extras.gschema.xml:14 +msgid "Token" msgstr "" -"无法打开选定的 F-Spot 数据库文件:Shotwell 不支持此版本的 F-Spot 数据库" -#: ../plugins/shotwell-data-imports/FSpotImporter.vala:66 -msgid "" -"Cannot read the selected F-Spot database file: error while reading tags table" -msgstr "无法读取选定的 F-Spot 数据库文件:读取标签列表出错" +#: misc/org.yorba.shotwell-extras.gschema.xml:15 +msgid "The token to access tumblr" +msgstr "访问 tumblr 的凭据" -#: ../plugins/shotwell-data-imports/FSpotImporter.vala:68 -msgid "" -"Cannot read the selected F-Spot database file: error while reading photos " -"table" -msgstr "无法读取选定的 F-Spot 数据库文件:读取照片出错" +#: misc/org.yorba.shotwell-extras.gschema.xml:20 +msgid "Secret token" +msgstr "" -#: ../plugins/shotwell-data-imports/FSpotImporter.vala:70 -#, c-format -msgid "" -"Shotwell has found %d photos in the F-Spot library and is currently " -"importing them. Duplicates will be automatically detected and removed.\n" -"\n" -"You can close this dialog and start using Shotwell while the import is " -"taking place in the background." +#: misc/org.yorba.shotwell-extras.gschema.xml:21 +msgid "The secret token to sign oauth requests" msgstr "" -"Shotwell 在 F-Spot 媒体库中找到 %d 个照片并正在导入它们。重复的文件会被自动去" -"除。\n" -"\n" -"您可以关闭这个会话并开始使用 Shotwell,导入工作将在后台继续进行。" -#: ../plugins/shotwell-data-imports/FSpotImporter.vala:84 -#, c-format -msgid "F-Spot library: %s" -msgstr "F-Spot 媒体库:%s" +#: misc/org.yorba.shotwell-extras.gschema.xml:26 +#: misc/org.yorba.shotwell.gschema.xml:486 +msgid "default size" +msgstr "默认大小" -#: ../plugins/shotwell-data-imports/FSpotImporter.vala:416 -msgid "Preparing to import" -msgstr "正在准备导入" +#: misc/org.yorba.shotwell-extras.gschema.xml:27 +msgid "" +"A numeric code representing the default size for photos uploaded to Tumblr" +msgstr "" -#: ../plugins/shotwell-data-imports/shotwell-data-imports.vala:22 -msgid "Core Data Import Services" -msgstr "核心数据导入服务" +#: misc/org.yorba.shotwell-extras.gschema.xml:32 +msgid "default blog" +msgstr "默认博客" -#: ../plugins/shotwell-publishing-extras/TumblrPublishing.vala:35 -msgid "Copyright 2012 BJA Electronics" -msgstr "版权所有 2012 BJA Electronics" +#: misc/org.yorba.shotwell-extras.gschema.xml:33 +msgid "The name of the default blog of the user, if any" +msgstr "" -#: ../plugins/shotwell-publishing-extras/TumblrPublishing.vala:104 -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:1229 -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:1246 -msgid "500 x 375 pixels" -msgstr "500 x 375 像素" +#: misc/org.yorba.shotwell-extras.gschema.xml:40 +msgid "Rajce URL" +msgstr "Rajce URL" -#: ../plugins/shotwell-publishing-extras/TumblrPublishing.vala:105 -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:1230 -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:1247 -msgid "1024 x 768 pixels" -msgstr "1024 x 768 像素" +#: misc/org.yorba.shotwell-extras.gschema.xml:41 +msgid "URL of the Rajce server." +msgstr "Rajce 服务器的 URL。" -#: ../plugins/shotwell-publishing-extras/TumblrPublishing.vala:106 -msgid "1280 x 853 pixels" -msgstr "1280 x 853 像素" +#: misc/org.yorba.shotwell-extras.gschema.xml:46 +#: misc/org.yorba.shotwell.gschema.xml:454 +#: misc/org.yorba.shotwell.gschema.xml:512 +#: misc/org.yorba.shotwell.gschema.xml:568 +msgid "username" +msgstr "用户名" -#: ../plugins/shotwell-publishing-extras/TumblrPublishing.vala:310 -#: ../plugins/shotwell-publishing-extras/TumblrPublishing.vala:320 -#, c-format -msgid "'%s' isn't a valid response to an OAuth authentication request" -msgstr "'%s' 不是一个有效的 OAuth 授权请求响应" +#: misc/org.yorba.shotwell-extras.gschema.xml:47 +msgid "Rajce username, if logged in." +msgstr "Rajce 用户名,如果已登录。" -#: ../plugins/shotwell-publishing-extras/TumblrPublishing.vala:558 -msgid "" -"TumblrPublisher: start( ): can't start; this publisher is not restartable." -msgstr "TumblrPublisher: start( ): 无法启动;无法重启该发布器。" +#: misc/org.yorba.shotwell-extras.gschema.xml:52 +msgid "token" +msgstr "" -#: ../plugins/shotwell-publishing-extras/TumblrPublishing.vala:586 -msgid "Enter the username and password associated with your Tumblr account." -msgstr "输入和您 Tumblr 账户关联的用户名和密码。" +#: misc/org.yorba.shotwell-extras.gschema.xml:53 +msgid "user token, if remembered." +msgstr "" -#: ../plugins/shotwell-publishing-extras/TumblrPublishing.vala:587 -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:1000 -msgid "Username and/or password invalid. Please try again" -msgstr "用户名或密码无效。请重试" +#: misc/org.yorba.shotwell-extras.gschema.xml:58 +#: misc/org.yorba.shotwell.gschema.xml:530 +#, fuzzy +#| msgid "within category:" +msgid "last category" +msgstr "在以下分类中:" -#: ../plugins/shotwell-publishing-extras/TumblrPublishing.vala:617 -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:1037 -msgid "Invalid User Name or Password" -msgstr "无效的用户名或密码" +#: misc/org.yorba.shotwell-extras.gschema.xml:59 +msgid "The last selected Rajce category." +msgstr "" -#: ../plugins/shotwell-publishing-extras/TumblrPublishing.vala:636 -#: ../plugins/shotwell-publishing-extras/TumblrPublishing.vala:757 -#, c-format -msgid "Could not load UI: %s" -msgstr "无法载入 UI:%s" +#: misc/org.yorba.shotwell-extras.gschema.xml:64 +#: misc/org.yorba.shotwell.gschema.xml:542 +#, fuzzy +#| msgid "Photo size:" +msgid "last photo size" +msgstr "照片尺寸:" -#: ../plugins/shotwell-publishing-extras/TumblrPublishing.vala:739 -#, c-format +#: misc/org.yorba.shotwell-extras.gschema.xml:65 msgid "" -"You are logged into Tumblr as %s.\n" -"\n" +"A numeric code representing the last photo size preset used when publishing " +"to Rajce." msgstr "" -"您登录的 Tumblr 账户为 %s。\n" -"\n" -#: ../plugins/shotwell-publishing-extras/YandexPublishing.vala:22 -msgid "Copyright 2010+ Evgeniy Polyakov " -msgstr "版权所有 2010+ Evgeniy Polyakov " - -#: ../plugins/shotwell-publishing-extras/YandexPublishing.vala:25 -msgid "Visit the Yandex.Fotki web site" -msgstr "访问 Yandex.Fotki 网站" +#: misc/org.yorba.shotwell-extras.gschema.xml:70 +msgid "remember" +msgstr "" -#: ../plugins/shotwell-publishing-extras/YandexPublishing.vala:632 -msgid "You are not currently logged into Yandex.Fotki." -msgstr "您当前未登陆至 Yandex.Fotki。" +#: misc/org.yorba.shotwell-extras.gschema.xml:71 +msgid "If true, remember last login." +msgstr "如果为真,则记录上次登录的信息。" -#: ../plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala:18 -msgid "Shotwell Extra Publishing Services" -msgstr "Shotwell 额外发布服务" +#: misc/org.yorba.shotwell-extras.gschema.xml:76 +msgid "hide album" +msgstr "隐藏相册" -#: ../plugins/shotwell-publishing-extras/tumblr_authentication_pane.glade.h:1 -#: ../plugins/shotwell-publishing/piwigo_authentication_pane.glade.h:1 -#: ../ui/shotwell.glade.h:15 -msgid "label" -msgstr "标签" +#: misc/org.yorba.shotwell-extras.gschema.xml:77 +msgid "If true, hide the newly created Rajce album." +msgstr "" -#: ../plugins/shotwell-publishing-extras/tumblr_authentication_pane.glade.h:2 -msgid "_Email address" -msgstr "邮箱地址(_E)" +#: misc/org.yorba.shotwell-extras.gschema.xml:82 +msgid "open album in web browser" +msgstr "在网页浏览器中打开相册" -#: ../plugins/shotwell-publishing-extras/tumblr_authentication_pane.glade.h:3 -#: ../plugins/shotwell-publishing/piwigo_authentication_pane.glade.h:4 -msgid "_Password" -msgstr "密码(_)" +#: misc/org.yorba.shotwell-extras.gschema.xml:83 +msgid "" +"If true, open target album in the web browser just after uploading photos" +msgstr "" -#: ../plugins/shotwell-publishing-extras/tumblr_authentication_pane.glade.h:4 -#: ../plugins/shotwell-publishing/piwigo_authentication_pane.glade.h:6 -msgid "Login" -msgstr "登录" +#: misc/org.yorba.shotwell-extras.gschema.xml:88 +#: misc/org.yorba.shotwell.gschema.xml:434 +#: misc/org.yorba.shotwell.gschema.xml:472 +#: misc/org.yorba.shotwell.gschema.xml:498 +#: misc/org.yorba.shotwell.gschema.xml:548 +#: misc/org.yorba.shotwell.gschema.xml:592 +msgid "remove sensitive info from uploads" +msgstr "" -#: ../plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.glade.h:1 +#: misc/org.yorba.shotwell-extras.gschema.xml:89 msgid "" -"You are logged into Tumblr as (name).\n" -"\n" -"(this label's string is populated and set inside the code, \n" -"so changes made here will not display)" +"Whether images being uploaded to Rajce should have their metadata removed " +"first" msgstr "" -"您正在以 (name) 身份登录 Tumblr.\n" -"\n" -"(该标签字符串在源码内产生并设定,\n" -"因此此处的更改将不会显示)" - -#: ../plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.glade.h:5 -msgid "Blogs:" -msgstr "博客:" -#: ../plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.glade.h:6 -#: ../plugins/shotwell-publishing/flickr_publishing_options_pane.glade.h:6 -msgid "Photo _size:" -msgstr "照片尺寸(_S):" +#: misc/org.yorba.shotwell.gschema.xml:23 +msgid "display basic properties" +msgstr "" -#: ../plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.glade.h:7 -#: ../plugins/shotwell-publishing-extras/yandex_publish_model.glade.h:5 -#: ../plugins/shotwell-publishing/facebook_publishing_options_pane.glade.h:8 -#: ../plugins/shotwell-publishing/flickr_publishing_options_pane.glade.h:8 -#: ../plugins/shotwell-publishing/picasa_publishing_options_pane.glade.h:10 -#: ../plugins/shotwell-publishing/youtube_publishing_options_pane.glade.h:2 -msgid "_Logout" -msgstr "注销(_L)" +#: misc/org.yorba.shotwell.gschema.xml:24 +msgid "True if the basic properties pane is to be displayed, false otherwise." +msgstr "" -#: ../plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.glade.h:8 -#: ../plugins/shotwell-publishing-extras/yandex_publish_model.glade.h:6 -#: ../plugins/shotwell-publishing/facebook_publishing_options_pane.glade.h:9 -#: ../plugins/shotwell-publishing/flickr_publishing_options_pane.glade.h:9 -#: ../plugins/shotwell-publishing/picasa_publishing_options_pane.glade.h:11 -#: ../plugins/shotwell-publishing/youtube_publishing_options_pane.glade.h:3 -msgid "_Publish" -msgstr "发布(_P)" +#: misc/org.yorba.shotwell.gschema.xml:29 +#, fuzzy +#| msgid "Display extended information for the selection" +msgid "display extended properties" +msgstr "显示所选项的扩展信息" -#: ../plugins/shotwell-publishing-extras/yandex_publish_model.glade.h:1 -msgid "_Albums (or write new):" -msgstr "已有或新相册(_A):" +#: misc/org.yorba.shotwell.gschema.xml:30 +msgid "" +"True if the extended properties window is to be displayed, false otherwise." +msgstr "" -#: ../plugins/shotwell-publishing-extras/yandex_publish_model.glade.h:2 -msgid "Access _type:" -msgstr "访问类型(_T):" +#: misc/org.yorba.shotwell.gschema.xml:35 +msgid "display sidebar" +msgstr "显示侧边栏" -#: ../plugins/shotwell-publishing-extras/yandex_publish_model.glade.h:3 -msgid "Disable _comments" -msgstr "禁用评论(_C)" +#: misc/org.yorba.shotwell.gschema.xml:36 +msgid "True if the sidebar is to be displayed, false otherwise." +msgstr "" -#: ../plugins/shotwell-publishing-extras/yandex_publish_model.glade.h:4 -msgid "_Forbid downloading original photo" -msgstr "禁止下载原始照片(_F)" +#: misc/org.yorba.shotwell.gschema.xml:41 +msgid "display toolbar" +msgstr "显示工具栏" -#: ../plugins/shotwell-publishing-extras/yandex_publish_model.glade.h:7 -msgid "Public" -msgstr "公开" +#: misc/org.yorba.shotwell.gschema.xml:42 +msgid "True if the bottom toolbar is to be displayed, false otherwise." +msgstr "" -#: ../plugins/shotwell-publishing-extras/yandex_publish_model.glade.h:8 -#: ../plugins/shotwell-publishing/FacebookPublishing.vala:1181 -msgid "Friends" -msgstr "朋友" +#: misc/org.yorba.shotwell.gschema.xml:47 +msgid "display search bar" +msgstr "显示搜索栏" -#: ../plugins/shotwell-publishing-extras/yandex_publish_model.glade.h:9 -#: ../plugins/shotwell-publishing/YouTubePublishing.vala:497 -msgid "Private" -msgstr "私人" +#: misc/org.yorba.shotwell.gschema.xml:48 +msgid "True if the Search/Filter Toolbar is to be displayed, false otherwise." +msgstr "" -#: ../plugins/shotwell-publishing/FacebookPublishing.vala:61 -#: ../plugins/shotwell-publishing/PicasaPublishing.vala:59 -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:1127 -msgid "Shotwell Connect" -msgstr "Shotwell 连接" +#: misc/org.yorba.shotwell.gschema.xml:53 +#, fuzzy +#| msgid "Display each photo's tags" +msgid "display photo titles" +msgstr "显示每张照片的标签" -#: ../plugins/shotwell-publishing/FacebookPublishing.vala:63 +#: misc/org.yorba.shotwell.gschema.xml:54 msgid "" -"You are not currently logged into Facebook.\n" -"\n" -"If you don't yet have a Facebook account, you can create one during the " -"login process. During login, Shotwell Connect may ask you for permission to " -"upload photos and publish to your feed. These permissions are required for " -"Shotwell Connect to function." +"True if photo titles are to be displayed beneath thumbnails in collection " +"views, false otherwise." msgstr "" -"您尚未登录 Facebook.\n" -"\n" -"如果您没有 Facebook 帐号,可以在登录过程中创建一个。在登陆过程中, Shotwell " -"Connect 将请求您上传照片和发布到订阅列表的权限。这些权限对于 Shotwell " -"Connect 的工作是必须的。" -#: ../plugins/shotwell-publishing/FacebookPublishing.vala:65 +#: misc/org.yorba.shotwell.gschema.xml:59 +#, fuzzy +#| msgid "Display each photo's tags" +msgid "display photo comments" +msgstr "显示每张照片的标签" + +#: misc/org.yorba.shotwell.gschema.xml:60 msgid "" -"You have already logged in and out of Facebook during this Shotwell " -"session.\n" -"To continue publishing to Facebook, quit and restart Shotwell, then try " -"publishing again." +"True if photo comments are to be displayed beneath thumbnails in collection " +"views, false otherwise." msgstr "" -"您已经登录了 Facebook 但并不在当前 Shotwell 进程中。\n" -"继续在 Facebook 上发布,退出并重新启动,然后再次尝试发布。" -#: ../plugins/shotwell-publishing/FacebookPublishing.vala:86 -msgid "Standard (720 pixels)" -msgstr "标准 (720 像素)" +#: misc/org.yorba.shotwell.gschema.xml:65 +#, fuzzy +#| msgid "Edit Event Comment" +msgid "display event comments" +msgstr "修改事件备注" -#: ../plugins/shotwell-publishing/FacebookPublishing.vala:89 -msgid "Large (2048 pixels)" -msgstr "大型 (2048 像素)" +#: misc/org.yorba.shotwell.gschema.xml:66 +msgid "" +"True if event comments are to be displayed beneath thumbnails in event " +"views, false otherwise." +msgstr "" -#: ../plugins/shotwell-publishing/FacebookPublishing.vala:254 -msgid "Testing connection to Facebook..." -msgstr "正在测试连接到 Facebook..." +#: misc/org.yorba.shotwell.gschema.xml:71 +#, fuzzy +#| msgid "Display each photo's tags" +msgid "display photo tags" +msgstr "显示每张照片的标签" -#: ../plugins/shotwell-publishing/FacebookPublishing.vala:347 -#: ../plugins/shotwell-publishing/PicasaPublishing.vala:379 -msgid "Creating album..." -msgstr "创建相册..." +#: misc/org.yorba.shotwell.gschema.xml:72 +msgid "" +"True if photo tags are to be listed beneath thumbnails in collection views, " +"false otherwise." +msgstr "" -#: ../plugins/shotwell-publishing/FacebookPublishing.vala:374 +#: misc/org.yorba.shotwell.gschema.xml:77 +#, fuzzy +#| msgid "Display each photo's rating" +msgid "display photo ratings" +msgstr "显示每张照片的评分" + +#: misc/org.yorba.shotwell.gschema.xml:78 msgid "" -"A file required for publishing is unavailable. Publishing to Facebook can't " -"continue." -msgstr "一个发布所需要的文件不存在。无法继续发布至 Facebook。" +"True if a photo’s rating should be displayed as overlaid trinket, false " +"otherwise." +msgstr "" -#: ../plugins/shotwell-publishing/FacebookPublishing.vala:1019 -#, c-format +#: misc/org.yorba.shotwell.gschema.xml:83 +msgid "rating filter level" +msgstr "" + +#: misc/org.yorba.shotwell.gschema.xml:84 msgid "" -"You are logged into Facebook as %s.\n" -"\n" +"Determines how to filter photos based on their ratings. 1: Rejected or " +"better, 2: Unrated or better, 3: One or better, 4: Two or better, 5: Three " +"or better, 6: Four or better, 7: Five or better." msgstr "" -"您已经作为 %s 登录 Facebook。\n" -"\n" -#: ../plugins/shotwell-publishing/FacebookPublishing.vala:1020 -msgid "Where would you like to publish the selected photos?" -msgstr "想在哪里发布选中的照片?" +#: misc/org.yorba.shotwell.gschema.xml:89 +#, fuzzy +#| msgid "No events found" +msgid "sort events ascending" +msgstr "没有找到事件" -#: ../plugins/shotwell-publishing/FacebookPublishing.vala:1021 -#: ../plugins/shotwell-publishing/facebook_publishing_options_pane.glade.h:5 -msgid "Upload _size:" -msgstr "上传大小(_S):" +#: misc/org.yorba.shotwell.gschema.xml:90 +msgid "True if events should be sorted ascending, false if descending." +msgstr "" -#: ../plugins/shotwell-publishing/FacebookPublishing.vala:1180 -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:1211 -msgid "Just me" -msgstr "仅有我" +#: misc/org.yorba.shotwell.gschema.xml:95 +#, fuzzy +#| msgid "Sort photos in an ascending order" +msgid "sort library photos ascending" +msgstr "按照升序排列照片" -#: ../plugins/shotwell-publishing/FacebookPublishing.vala:1182 -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:1207 -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:1234 -msgid "Everyone" -msgstr "所有人" +#: misc/org.yorba.shotwell.gschema.xml:96 +msgid "True if library photos should be sorted ascending, false if descending." +msgstr "" -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:61 -msgid "" -"You are not currently logged into Flickr.\n" -"\n" -"Click Login to log into Flickr in your Web browser. You will have to " -"authorize Shotwell Connect to link to your Flickr account." +#: misc/org.yorba.shotwell.gschema.xml:101 +msgid "sort library photos criteria" msgstr "" -"您目前尚未登录到 Flickr。\n" -"\n" -"在您的浏览器中点击“登录”以登录到 Flickr。您必须授权 Shotwell 连接到您" -"的 Flickr 帐号。" -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:63 +#: misc/org.yorba.shotwell.gschema.xml:102 msgid "" -"You have already logged in and out of Flickr during this Shotwell session.\n" -"To continue publishing to Flickr, quit and restart Shotwell, then try " -"publishing again." +"A numeric code that specifies the sort criteria for photos in library views." msgstr "" -"在本次 Shotwell 会话中您登录了 Flickr 服务然后退出了。\n" -"要继续发布到 Flickr,请退出并重新启动 Shotwell,然后再尝试发布。" -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:375 -msgid "Preparing for login..." -msgstr "准备登录..." +#: misc/org.yorba.shotwell.gschema.xml:107 +#, fuzzy +#| msgid "Sort photos in an ascending order" +msgid "sort event photos ascending" +msgstr "按照升序排列照片" -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:444 -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:595 -msgid "" -"A file required for publishing is unavailable. Publishing to Flickr can't " -"continue." -msgstr "一个发布所需要的文件不存在。无法继续发布至 Flickr。" +#: misc/org.yorba.shotwell.gschema.xml:108 +msgid "True if event photos should be sorted ascending, false if descending." +msgstr "" -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:457 -msgid "Verifying authorization..." -msgstr "校验认证信息..." +#: misc/org.yorba.shotwell.gschema.xml:113 +#, fuzzy +#| msgid "Sort photos by title" +msgid "sort event photos criteria" +msgstr "按照标题排序" -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:1153 -#, c-format +#: misc/org.yorba.shotwell.gschema.xml:114 +msgid "Specifies the sort criteria for event photos." +msgstr "" + +#: misc/org.yorba.shotwell.gschema.xml:119 +msgid "use 24 hour time" +msgstr "使用24小时制" + +#: misc/org.yorba.shotwell.gschema.xml:120 msgid "" -"You are logged into Flickr as %s.\n" -"\n" +"True if should display times with a 24 hour clock, false if times should use " +"AM/PM notation." msgstr "" -"您已经作为 %s 登录到 Flickr。\n" -"\n" -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:1155 -#, c-format +#: misc/org.yorba.shotwell.gschema.xml:125 +msgid "keep relative time between photos" +msgstr "" + +#: misc/org.yorba.shotwell.gschema.xml:126 msgid "" -"Your free Flickr account limits how much data you can upload per month.\n" -"This month, you have %d megabytes remaining in your upload quota." +"True if when adjusting time/date of photos, relative time should be " +"maintained. False if all photos should be set to the same time." msgstr "" -"您的 Flickr 免费帐号限制您每月可以上传的数据。\n" -"本月您的流量限额还剩 %d MB。" -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:1157 -msgid "Your Flickr Pro account entitles you to unlimited uploads." -msgstr "您的 Flickr Pro 帐号让您可以无限上传。" +#: misc/org.yorba.shotwell.gschema.xml:131 +#, fuzzy +#| msgid "_Modify original photo files" +msgid "modify original photo files" +msgstr "修改原始照片文件(_M)" -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:1162 -msgid "Photos _visible to:" -msgstr "照片公开给(_V):" +#: misc/org.yorba.shotwell.gschema.xml:132 +msgid "" +"True if when adjusting time/date of photos, the original files should be " +"modified as well. False if changes are made only in the database." +msgstr "" -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:1164 -msgid "Videos _visible to:" -msgstr "视频公开给(_V):" +#: misc/org.yorba.shotwell.gschema.xml:137 +msgid "show welcome dialog on startup" +msgstr "" -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:1167 -msgid "Photos and videos _visible to:" -msgstr "照片和视频公开给(_V):" +#: misc/org.yorba.shotwell.gschema.xml:138 +msgid "" +"True if, when on startup, a welcome dialog should be shown. False if it " +"should not be shown." +msgstr "" -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:1208 -msgid "Friends & family only" -msgstr "仅朋友和家人" +#: misc/org.yorba.shotwell.gschema.xml:143 +#, fuzzy +#| msgid "Library Location" +msgid "sidebar position" +msgstr "媒体库位置" -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:1209 -msgid "Family only" -msgstr "仅限家人" +#: misc/org.yorba.shotwell.gschema.xml:144 +msgid "The width, in pixels, of the sidebar" +msgstr "" -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:1210 -msgid "Friends only" -msgstr "仅限朋友" +#: misc/org.yorba.shotwell.gschema.xml:149 +msgid "photo thumbnail scale" +msgstr "照片缩略图尺寸" + +#: misc/org.yorba.shotwell.gschema.xml:150 +msgid "The scale of photo thumbnails, ranging from 72 to 360." +msgstr "照片缩略图的尺寸,范围为 72 至 360。" -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:1231 -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:1248 -msgid "2048 x 1536 pixels" -msgstr "2048 x 1536 像素" +#: misc/org.yorba.shotwell.gschema.xml:155 +#, fuzzy +#| msgid "Pin the toolbar open" +msgid "pin toolbar state" +msgstr "将工具栏固定为打开" -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:1232 -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:1249 -msgid "4096 x 3072 pixels" -msgstr "4096 x 3072 像素" +#: misc/org.yorba.shotwell.gschema.xml:156 +msgid "Pin toolbar in fullscreen, or not." +msgstr "" -#: ../plugins/shotwell-publishing/FlickrPublishing.vala:1233 -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:1250 -#: ../src/Dimensions.vala:17 -msgid "Original size" -msgstr "原始尺寸" +#: misc/org.yorba.shotwell.gschema.xml:161 +#, fuzzy +#| msgid "_Background:" +msgid "background color" +msgstr "背景(_B):" + +#: misc/org.yorba.shotwell.gschema.xml:162 +msgid "A grayscale color for use as the background color." +msgstr "" + +#: misc/org.yorba.shotwell.gschema.xml:167 +msgid "Selection state of “hide photos” option" +msgstr "" -#: ../plugins/shotwell-publishing/PicasaPublishing.vala:58 +#: misc/org.yorba.shotwell.gschema.xml:168 msgid "" -"You are not currently logged into Picasa Web Albums.\n" -"\n" -"Click Login to log into Picasa Web Albums in your Web browser. You will have " -"to authorize Shotwell Connect to link to your Picasa Web Albums account." +"Last used selection state of the “hide photos already imported” option in " +"the import page." msgstr "" -"您当前尚未登录 Picasa 网络相册。\n" -"\n" -"在您的浏览器中点击登录来完成 Picasa 网络相册等各路。您必须授权 Shotwell " -"Connect 来连接至您的 Picasa 网络相册。" -#: ../plugins/shotwell-publishing/PicasaPublishing.vala:361 +#: misc/org.yorba.shotwell.gschema.xml:175 +#, fuzzy +#| msgid "_Delay:" +msgid "delay" +msgstr "延时(_D):" + +#: misc/org.yorba.shotwell.gschema.xml:176 +msgid "Delay (in seconds) between photos in the slideshow." +msgstr "" + +#: misc/org.yorba.shotwell.gschema.xml:181 +#, fuzzy +#| msgid "Transition d_elay:" +msgid "transition delay" +msgstr "过渡延时(_E):" + +#: misc/org.yorba.shotwell.gschema.xml:182 msgid "" -"A file required for publishing is unavailable. Publishing to Picasa can't " -"continue." -msgstr "一个发布所需要的文件不存在。无法继续发布至 Picasa。" +"The time (in seconds) that a transition runs between photos in a slideshow" +msgstr "" -#. populate any widgets whose contents are programmatically-generated. -#: ../plugins/shotwell-publishing/PicasaPublishing.vala:659 -#, c-format -msgid "You are logged into Picasa Web Albums as %s." -msgstr "您已经作为 %s 登录 Picasa 网络相册。" +#: misc/org.yorba.shotwell.gschema.xml:187 +#, fuzzy +#| msgid "_Transition effect:" +msgid "transition effect id" +msgstr "过渡效果(_T):" -#: ../plugins/shotwell-publishing/PicasaPublishing.vala:665 -msgid "Videos will appear in:" -msgstr "视频将出现在:" +#: misc/org.yorba.shotwell.gschema.xml:188 +msgid "" +"The name of the transition effect that will be used between photos when " +"running a slideshow" +msgstr "" -#: ../plugins/shotwell-publishing/PicasaPublishing.vala:670 -#: ../plugins/shotwell-publishing/piwigo_publishing_options_pane.glade.h:1 -msgid "Photos will appear in:" -msgstr "照片将出现在:" +#: misc/org.yorba.shotwell.gschema.xml:193 +msgid "Show title" +msgstr "显示标题" -#: ../plugins/shotwell-publishing/PicasaPublishing.vala:746 -msgid "Small (640 x 480 pixels)" -msgstr "小 (640 x 480 像素)" +#: misc/org.yorba.shotwell.gschema.xml:194 +msgid "Whether to show the title of a photo during the slideshow" +msgstr "" -#: ../plugins/shotwell-publishing/PicasaPublishing.vala:747 -msgid "Medium (1024 x 768 pixels)" -msgstr "中 (1024 x 768 像素)" +#: misc/org.yorba.shotwell.gschema.xml:201 +msgid "maximize library window" +msgstr "" -#: ../plugins/shotwell-publishing/PicasaPublishing.vala:748 -msgid "Recommended (1600 x 1200 pixels)" -msgstr "推荐 (1600 x 1200 像素)" +#: misc/org.yorba.shotwell.gschema.xml:202 +msgid "True if library application is maximized, false otherwise." +msgstr "" -#: ../plugins/shotwell-publishing/PicasaPublishing.vala:749 -msgid "Google+ (2048 x 1536 pixels)" -msgstr "Google+ (2048 x 1536 像素)" +#: misc/org.yorba.shotwell.gschema.xml:207 +msgid "width of library window" +msgstr "" -#: ../plugins/shotwell-publishing/PicasaPublishing.vala:750 -#: ../src/editing_tools/EditingTools.vala:756 -msgid "Original Size" -msgstr "原始尺寸" +#: misc/org.yorba.shotwell.gschema.xml:208 +msgid "The last recorded width of the library application window." +msgstr "" -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:746 -#, c-format -msgid "Creating album %s..." -msgstr "正在创建相册 %s…" +#: misc/org.yorba.shotwell.gschema.xml:213 +msgid "height of library window" +msgstr "" -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:917 -msgid "An error message occurred when publishing to Piwigo. Please try again." -msgstr "在发布至 Piwigo 时发生了错误,请重试。" +#: misc/org.yorba.shotwell.gschema.xml:214 +msgid "The last recorded height of the library application window." +msgstr "" -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:998 -msgid "" -"Enter the URL of your Piwigo photo library as well as the username and " -"password associated with your Piwigo account for that library." -msgstr "输入您 Piwigo 照片库的 URL 以及对应 Piwigo 照片库相关的用户名和密码。" +#: misc/org.yorba.shotwell.gschema.xml:219 +msgid "maximize direct-edit window" +msgstr "" -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:999 -msgid "" -"Shotwell cannot contact your Piwigo photo library. Please verify the URL you " -"entered" -msgstr "Shotwell 无法连接至您的 Piwigo 照片库。请检查您输入的 URL。" +#: misc/org.yorba.shotwell.gschema.xml:220 +msgid "True if direct-edit application is maximized, false otherwise." +msgstr "" -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:1032 -msgid "Invalid URL" -msgstr "无效的 URL" +#: misc/org.yorba.shotwell.gschema.xml:225 +msgid "width of direct-edit window" +msgstr "" -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:1235 -msgid "Admins, Family, Friends, Contacts" -msgstr "管理员,家人,朋友,联系人" +#: misc/org.yorba.shotwell.gschema.xml:226 +msgid "The last recorded width of the direct-edit application window." +msgstr "" -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:1236 -msgid "Admins, Family, Friends" -msgstr "管理员,家人,朋友" +#: misc/org.yorba.shotwell.gschema.xml:231 +msgid "height of direct-edit window" +msgstr "" -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:1237 -msgid "Admins, Family" -msgstr "管理员,家人" +#: misc/org.yorba.shotwell.gschema.xml:232 +msgid "The last recorded height of the direct-edit application window." +msgstr "" -#: ../plugins/shotwell-publishing/PiwigoPublishing.vala:1238 -msgid "Admins" -msgstr "管理员" +#: misc/org.yorba.shotwell.gschema.xml:237 +msgid "sidebar divider position" +msgstr "" -#: ../plugins/shotwell-publishing/YouTubePublishing.vala:57 +#: misc/org.yorba.shotwell.gschema.xml:238 msgid "" -"You are not currently logged into YouTube.\n" -"\n" -"You must have already signed up for a Google account and set it up for use " -"with YouTube to continue. You can set up most accounts by using your browser " -"to log into the YouTube site at least once." +"The last recorded position of the divider between the sidebar and view in " +"library application window." msgstr "" -"您尚未登录 YouTube。\n" -"\n" -"您必须已经注册了一个 Google 帐号并设置为使用 YouTube 才能继续。您可以通过浏览" -"器设置绝大多数帐号并至少登录 YouTube 一次。" -#: ../plugins/shotwell-publishing/YouTubePublishing.vala:362 -msgid "" -"A file required for publishing is unavailable. Publishing to Youtube can't " -"continue." -msgstr "一个发布所需要的文件不存在。无法继续发布至 YouTube。" +#: misc/org.yorba.shotwell.gschema.xml:245 +msgid "import directory" +msgstr "导入目录" -#: ../plugins/shotwell-publishing/YouTubePublishing.vala:461 -#, c-format -msgid "You are logged into YouTube as %s." -msgstr "您已经作为 %s 登录 YouTube。" +#: misc/org.yorba.shotwell.gschema.xml:246 +msgid "Directory in which imported photo files are placed." +msgstr "" -#: ../plugins/shotwell-publishing/YouTubePublishing.vala:463 -#, c-format -msgid "Videos will appear in '%s'" -msgstr "视频将出现在“%s”" +#: misc/org.yorba.shotwell.gschema.xml:251 +#, fuzzy +#| msgid "_Watch library directory for new files" +msgid "watch library directory for new files" +msgstr "监视媒体库文件夹中的新文件(_W)" -#: ../plugins/shotwell-publishing/YouTubePublishing.vala:495 -msgid "Public listed" -msgstr "公开列出" +#: misc/org.yorba.shotwell.gschema.xml:252 +msgid "" +"If true, files added to the library directory are automatically imported." +msgstr "" -#: ../plugins/shotwell-publishing/YouTubePublishing.vala:496 -msgid "Public unlisted" -msgstr "公开未列出" +#: misc/org.yorba.shotwell.gschema.xml:257 +#, fuzzy +#| msgid "Writing metadata to files..." +msgid "write metadata to master files" +msgstr "写入元数据到文件..." -#: ../plugins/shotwell-publishing/facebook_publishing_options_pane.glade.h:1 +#: misc/org.yorba.shotwell.gschema.xml:258 msgid "" -" (text depends on fb username and is modified in the app - \n" -"anything put into this field won't display)" +"If true, changes to metadata (tags, titles, etc.) are written to the master " +"photo file." msgstr "" -"(文本依赖于 FB 用户名,已在程序中修改 -\n" -"在此输入此框内的一切均不会显示)" -#: ../plugins/shotwell-publishing/facebook_publishing_options_pane.glade.h:3 -msgid "Publish to an e_xisting album:" -msgstr "发布到已有相册(_X):" +#: misc/org.yorba.shotwell.gschema.xml:263 +msgid "use lowercase filenames" +msgstr "" -#: ../plugins/shotwell-publishing/facebook_publishing_options_pane.glade.h:4 -msgid "Create a _new album named:" -msgstr "创建一个新相册名为(_N):" +#: misc/org.yorba.shotwell.gschema.xml:264 +msgid "" +"If true, Shotwell will convert all filenames to lowercase when importing " +"photo files" +msgstr "" -#: ../plugins/shotwell-publishing/facebook_publishing_options_pane.glade.h:6 -msgid "Videos and new photo albums _visible to:" -msgstr "视频和新照片相册可见于(_V):" +#: misc/org.yorba.shotwell.gschema.xml:269 +#, fuzzy +#| msgid "_Directory structure:" +msgid "directory pattern" +msgstr "目录结构(_D):" -#: ../plugins/shotwell-publishing/facebook_publishing_options_pane.glade.h:7 -#: ../plugins/shotwell-publishing/flickr_publishing_options_pane.glade.h:7 -#: ../plugins/shotwell-publishing/picasa_publishing_options_pane.glade.h:9 -#: ../plugins/shotwell-publishing/piwigo_publishing_options_pane.glade.h:8 +#: misc/org.yorba.shotwell.gschema.xml:270 msgid "" -"_Remove location, camera, and other identifying information before uploading" -msgstr "上传前去除照片的地理位置、相机型号和其他可供辨认的信息(_R)" +"A string encoding a naming pattern that will be used to name photo " +"directories on import." +msgstr "" -#: ../plugins/shotwell-publishing/flickr_pin_entry_pane.glade.h:1 +#: misc/org.yorba.shotwell.gschema.xml:275 +msgid "directory pattern custom" +msgstr "" + +#: misc/org.yorba.shotwell.gschema.xml:276 msgid "" -"Enter the confirmation number which appears after you log into Flickr in " -"your Web browser." -msgstr "输入您使用网页浏览器登录 Flickr 后出现的确认码。" +"A string encoding a custom naming pattern that will be used to name photo " +"directories on import." +msgstr "" -#: ../plugins/shotwell-publishing/flickr_pin_entry_pane.glade.h:2 -msgid "Authorization _Number:" -msgstr "认证码(_N):" +#: misc/org.yorba.shotwell.gschema.xml:281 +#, fuzzy +#| msgid "RAW Developer" +msgid "RAW developer default" +msgstr "RAW 开发者:" -#: ../plugins/shotwell-publishing/flickr_pin_entry_pane.glade.h:3 -#: ../src/Dialogs.vala:131 -msgid "Con_tinue" -msgstr "继续(_T)" +#: misc/org.yorba.shotwell.gschema.xml:282 +msgid "Default option for which RAW developer Shotwell will use." +msgstr "" + +#: misc/org.yorba.shotwell.gschema.xml:289 +msgid "Most-recently-used crop aspect ratio menu choice." +msgstr "" + +#: misc/org.yorba.shotwell.gschema.xml:290 +msgid "A numeric code representing the last crop menu choice the user made." +msgstr "" -#: ../plugins/shotwell-publishing/flickr_publishing_options_pane.glade.h:1 +#: misc/org.yorba.shotwell.gschema.xml:294 +msgid "Most-recently-used crop custom aspect ratio’s numerator." +msgstr "" + +#: misc/org.yorba.shotwell.gschema.xml:295 msgid "" -"You are logged into Flickr as (name).\n" -"\n" -"(this label's string is populated and set inside the code, \n" -"so changes made here will not display)" +"A nonzero, positive integer representing the width part of the last custom " +"crop ratio the user entered." msgstr "" -"您已登录到 Flickr 的 (name) 用户。\n" -"\n" -"(这个标签串设定于代码中\n" -"在此的改变不会被显示)" -#: ../plugins/shotwell-publishing/flickr_publishing_options_pane.glade.h:5 -msgid "_visibility label (populated in the code)" -msgstr "可见度标签 (代码中)(_V)" +#: misc/org.yorba.shotwell.gschema.xml:299 +msgid "Most-recently-used crop custom aspect ratio’s denominator." +msgstr "" -#: ../plugins/shotwell-publishing/picasa_publishing_options_pane.glade.h:1 +#: misc/org.yorba.shotwell.gschema.xml:300 msgid "" -"'you are logged in as $name'\n" -"(populated in the application code)" +"A nonzero, positive integer representing the height part of the last custom " +"crop ratio the user entered." msgstr "" -"'您已登录为 $name'\n" -"(程序代码中)" -#: ../plugins/shotwell-publishing/picasa_publishing_options_pane.glade.h:3 -msgid "An _existing album:" -msgstr "一个已有的相册(_E):" +#: misc/org.yorba.shotwell.gschema.xml:307 +#, fuzzy +#| msgid "E_xternal photo editor:" +msgid "external photo editor" +msgstr "外部照片编辑器(_X):" -#: ../plugins/shotwell-publishing/picasa_publishing_options_pane.glade.h:4 -#: ../plugins/shotwell-publishing/piwigo_publishing_options_pane.glade.h:3 -msgid "A _new album named:" -msgstr "一个新相册(_N):" +#: misc/org.yorba.shotwell.gschema.xml:308 +msgid "External application used to edit photos." +msgstr "" -#: ../plugins/shotwell-publishing/picasa_publishing_options_pane.glade.h:5 -msgid "L_ist album in public gallery" -msgstr "显示公开相片库里的相册(_I)" +#: misc/org.yorba.shotwell.gschema.xml:313 +#, fuzzy +#| msgid "External _RAW editor:" +msgid "external raw editor" +msgstr "外部 RAW 编辑器(_R):" -#: ../plugins/shotwell-publishing/picasa_publishing_options_pane.glade.h:6 -msgid "" -"$mediatype will appear in\n" -"(populated in code)" +#: misc/org.yorba.shotwell.gschema.xml:314 +msgid "External application used to edit RAW photos." msgstr "" -"$mediatype 会被显示于\n" -"(代码中)" -#: ../plugins/shotwell-publishing/picasa_publishing_options_pane.glade.h:8 -msgid "Photo _size preset:" -msgstr "预置照片尺寸(_S):" +#: misc/org.yorba.shotwell.gschema.xml:352 +#: misc/org.yorba.shotwell.gschema.xml:353 +msgid "Setting in export dialog: how to trim images" +msgstr "" -#: ../plugins/shotwell-publishing/piwigo_authentication_pane.glade.h:2 -msgid "_URL of your Piwigo photo library" -msgstr "您的 Piwigo 照片库 _URL(_)" +#: misc/org.yorba.shotwell.gschema.xml:358 +#, fuzzy +#| msgid "Export metadata" +msgid "export metadata" +msgstr "导出元数据" -#: ../plugins/shotwell-publishing/piwigo_authentication_pane.glade.h:3 -msgid "User _name" -msgstr "用户名(_)" +#: misc/org.yorba.shotwell.gschema.xml:359 +msgid "Setting in export dialog: option to export metadata" +msgstr "" -#: ../plugins/shotwell-publishing/piwigo_authentication_pane.glade.h:5 -msgid "_Remember Password" -msgstr "记住密码(_R)" +#: misc/org.yorba.shotwell.gschema.xml:364 +msgid "format setting, special value" +msgstr "" -#: ../plugins/shotwell-publishing/piwigo_publishing_options_pane.glade.h:2 -msgid "An _existing category:" -msgstr "一个已有的分类(_):" +#: misc/org.yorba.shotwell.gschema.xml:365 +msgid "Setting in export dialog: format setting, special value" +msgstr "" -#: ../plugins/shotwell-publishing/piwigo_publishing_options_pane.glade.h:4 -msgid "Photos will be _visible by:" -msgstr "照片可见(_V):" +#: misc/org.yorba.shotwell.gschema.xml:370 +msgid "format setting, type value" +msgstr "" -#: ../plugins/shotwell-publishing/piwigo_publishing_options_pane.glade.h:5 -msgid "Photo size:" -msgstr "照片尺寸:" +#: misc/org.yorba.shotwell.gschema.xml:371 +msgid "Setting in export dialog: format setting, type value" +msgstr "" -#: ../plugins/shotwell-publishing/piwigo_publishing_options_pane.glade.h:6 -msgid "within category:" -msgstr "在以下分类中:" +#: misc/org.yorba.shotwell.gschema.xml:376 +msgid "JPEG quality option" +msgstr "" -#: ../plugins/shotwell-publishing/piwigo_publishing_options_pane.glade.h:7 -msgid "Album comment:" -msgstr "相册备注:" +#: misc/org.yorba.shotwell.gschema.xml:377 +msgid "Setting in export dialog: jpeg quality option" +msgstr "" -#: ../plugins/shotwell-publishing/piwigo_publishing_options_pane.glade.h:9 -msgid "_If a title is set and comment unset, use title as comment" -msgstr "如果有标题而没有备注,将标题作为备注(_I)" +#: misc/org.yorba.shotwell.gschema.xml:382 +msgid "maximal size of image" +msgstr "" -#: ../plugins/shotwell-publishing/piwigo_publishing_options_pane.glade.h:10 -msgid "_Do no upload tags" -msgstr "不上传标签(_D)" +#: misc/org.yorba.shotwell.gschema.xml:383 +msgid "Setting in export dialog: maximal size of image" +msgstr "" -#: ../plugins/shotwell-publishing/piwigo_publishing_options_pane.glade.h:11 -msgid "Logout" -msgstr "登出" +#: misc/org.yorba.shotwell.gschema.xml:390 +#, fuzzy +#| msgid "Core Publishing Services" +msgid "last used publishing service" +msgstr "主要上传服务" -#: ../plugins/shotwell-publishing/piwigo_publishing_options_pane.glade.h:12 -#: ../src/Resources.vala:270 -msgid "Publish" -msgstr "发布" +#: misc/org.yorba.shotwell.gschema.xml:391 +#: misc/org.yorba.shotwell.gschema.xml:397 +msgid "" +"A numeric code representing the last service to which photos were published" +msgstr "" -#: ../plugins/shotwell-publishing/shotwell-publishing.vala:26 -msgid "Core Publishing Services" +#: misc/org.yorba.shotwell.gschema.xml:396 +#, fuzzy +#| msgid "Core Publishing Services" +msgid "default publishing service" msgstr "主要上传服务" -#: ../plugins/shotwell-publishing/youtube_publishing_options_pane.glade.h:1 -msgid "Video privacy _setting:" -msgstr "视频隐私设置(_S):" +#: misc/org.yorba.shotwell.gschema.xml:410 +msgid "access token" +msgstr "访问凭据" -#: ../plugins/shotwell-transitions/BlindsEffect.vala:20 -msgid "Blinds" -msgstr "百叶窗" +#: misc/org.yorba.shotwell.gschema.xml:411 +msgid "Facebook OAuth token for the currently logged in session, if any" +msgstr "" -#: ../plugins/shotwell-transitions/ChessEffect.vala:20 -msgid "Chess" -msgstr "茄子" +#: misc/org.yorba.shotwell.gschema.xml:416 +msgid "user i.d." +msgstr "" -#: ../plugins/shotwell-transitions/CircleEffect.vala:20 -msgid "Circle" -msgstr "圈子" +#: misc/org.yorba.shotwell.gschema.xml:417 +msgid "Facebook user i.d. for the currently logged in user, if any" +msgstr "" -#: ../plugins/shotwell-transitions/CirclesEffect.vala:20 -msgid "Circles" -msgstr "圆圈" +#: misc/org.yorba.shotwell.gschema.xml:422 +msgid "user name" +msgstr "用户名" -#: ../plugins/shotwell-transitions/ClockEffect.vala:20 -msgid "Clock" -msgstr "时钟" +#: misc/org.yorba.shotwell.gschema.xml:423 +#, fuzzy +#| msgid "You are not currently logged into Yandex.Fotki." +msgid "The name of the currently logged in Facebook user, if any" +msgstr "您当前未登陆至 Yandex.Fotki。" -#: ../plugins/shotwell-transitions/CrumbleEffect.vala:20 -msgid "Crumble" -msgstr "碎片" +#: misc/org.yorba.shotwell.gschema.xml:428 +#: misc/org.yorba.shotwell.gschema.xml:460 +msgid "default size code" +msgstr "" -#: ../plugins/shotwell-transitions/FadeEffect.vala:20 -msgid "Fade" -msgstr "渐出" +#: misc/org.yorba.shotwell.gschema.xml:429 +msgid "" +"A numeric code representing the default size for photos published to Facebook" +msgstr "" -#: ../plugins/shotwell-transitions/SlideEffect.vala:20 -msgid "Slide" -msgstr "幻灯片演示" +#: misc/org.yorba.shotwell.gschema.xml:435 +msgid "" +"Whether images being uploaded to Facebook should have their metadata removed " +"first" +msgstr "" -#: ../plugins/shotwell-transitions/SquaresEffect.vala:20 -msgid "Squares" -msgstr "方格" +#: misc/org.yorba.shotwell.gschema.xml:442 +msgid "OAuth Access Phase Token" +msgstr "" -#: ../plugins/shotwell-transitions/StripesEffect.vala:20 -msgid "Stripes" -msgstr "条纹" +#: misc/org.yorba.shotwell.gschema.xml:443 +msgid "The authorization token for the currently logged in Flickr user, if any" +msgstr "" -#: ../plugins/shotwell-transitions/shotwell-transitions.vala:28 -msgid "Core Slideshow Transitions" -msgstr "主要幻灯片变换" +#: misc/org.yorba.shotwell.gschema.xml:448 +msgid "OAuth Access Phase Token Secret" +msgstr "" -#: ../plugins/shotwell-transitions/shotwell-transitions.vala:75 -msgid "Copyright 2010 Maxim Kartashev, Copyright 2011-2013 Yorba Foundation" +#: misc/org.yorba.shotwell.gschema.xml:449 +msgid "" +"The cryptographic secret used to sign requests against the authorization " +"token for the currently logged in Flickr user, if any" msgstr "" -"Copyright 2010 Maxim Kartashev, Copyright 2011-2013 Yorba Foundation, Yorba " -"基金会版权所有" -#: ../src/AppDirs.vala:48 ../src/AppDirs.vala:99 -#, c-format -msgid "Unable to create cache directory %s: %s" -msgstr "无法创建缓存目录 %s:%s" - -#: ../src/AppDirs.vala:58 ../src/AppDirs.vala:88 -#, c-format -msgid "Unable to create data directory %s: %s" -msgstr "无法创建数据文件夹 %s:%s" +#: misc/org.yorba.shotwell.gschema.xml:455 +msgid "The user name of the currently logged in Flickr user, if any" +msgstr "" -#. If XDG yarfed, use ~/Pictures -#: ../src/AppDirs.vala:152 -msgid "Pictures" -msgstr "图片" +#: misc/org.yorba.shotwell.gschema.xml:461 +msgid "" +"A numeric code representing the default size for photos published to Flickr" +msgstr "" -#: ../src/AppDirs.vala:190 -#, c-format -msgid "Unable to create temporary directory %s: %s" -msgstr "无法创建临时文件夹 %s:%s" +#: misc/org.yorba.shotwell.gschema.xml:466 +msgid "default visibility" +msgstr "" -#: ../src/AppDirs.vala:207 ../src/AppDirs.vala:223 -#, c-format -msgid "Unable to create data subdirectory %s: %s" -msgstr "无法创建数据子文件夹 %s:%s" +#: misc/org.yorba.shotwell.gschema.xml:467 +msgid "" +"A numeric code representing the default visibility for photos published to " +"Flickr" +msgstr "" -#: ../src/AppWindow.vala:49 -msgid "Pin Toolbar" -msgstr "固定工具栏" +#: misc/org.yorba.shotwell.gschema.xml:473 +msgid "" +"Whether images being uploaded to Flickr should have their metadata removed " +"first" +msgstr "" -#: ../src/AppWindow.vala:50 -msgid "Pin the toolbar open" -msgstr "将工具栏固定为打开" +#: misc/org.yorba.shotwell.gschema.xml:480 +#: misc/org.yorba.shotwell.gschema.xml:612 +msgid "refresh token" +msgstr "" -#: ../src/AppWindow.vala:53 ../src/AppWindow.vala:131 -msgid "Leave fullscreen" -msgstr "退出全屏" +#: misc/org.yorba.shotwell.gschema.xml:481 +msgid "" +"The OAuth token used to refresh the Picasa Web Albums session for the " +"currently logged in user, if any." +msgstr "" -#: ../src/AppWindow.vala:130 -msgid "Leave _Fullscreen" -msgstr "退出全屏(_F)" +#: misc/org.yorba.shotwell.gschema.xml:487 +msgid "" +"A numeric code representing the default size for photos uploaded to Picasa " +"Web Albums" +msgstr "" -#: ../src/AppWindow.vala:491 -msgid "_Quit" -msgstr "退出(_Q)" +#: misc/org.yorba.shotwell.gschema.xml:492 +#: misc/org.yorba.shotwell.gschema.xml:586 +msgid "last album" +msgstr "" -#: ../src/AppWindow.vala:496 -msgid "_About" -msgstr "关于(_A)" +#: misc/org.yorba.shotwell.gschema.xml:493 +#: misc/org.yorba.shotwell.gschema.xml:587 +msgid "The name of the last album the user published photos to, if any" +msgstr "" -#: ../src/AppWindow.vala:501 -msgid "Fulls_creen" -msgstr "全屏(_C)" +#: misc/org.yorba.shotwell.gschema.xml:499 +msgid "" +"Whether images being uploaded to Picasa should have their metadata removed " +"first" +msgstr "" -#: ../src/AppWindow.vala:506 -msgid "_Contents" -msgstr "目录(_C)" +#: misc/org.yorba.shotwell.gschema.xml:506 +msgid "Piwigo URL" +msgstr "Piwigo URL" -#: ../src/AppWindow.vala:511 -msgid "_Frequently Asked Questions" -msgstr "常见问题(_F)" +#: misc/org.yorba.shotwell.gschema.xml:507 +msgid "URL of the Piwigo server." +msgstr "Piwigo 服务器的 URL。" -#: ../src/AppWindow.vala:516 -msgid "_Report a Problem..." -msgstr "汇报问题(_R)…" +#: misc/org.yorba.shotwell.gschema.xml:513 +msgid "Piwigo username, if logged in." +msgstr "" -#: ../src/AppWindow.vala:615 ../src/AppWindow.vala:636 -#: ../src/AppWindow.vala:653 ../src/Dialogs.vala:20 ../src/Dialogs.vala:28 -#: ../src/Dialogs.vala:1361 ../src/Dialogs.vala:1384 -#: ../src/data_imports/DataImportsUI.vala:399 -#: ../src/publishing/PublishingUI.vala:498 -msgid "_Cancel" -msgstr "取消(_C)" +#: misc/org.yorba.shotwell.gschema.xml:518 +msgid "password" +msgstr "密码" -#: ../src/AppWindow.vala:663 -#, c-format -msgid "" -"A fatal error occurred when accessing Shotwell's library. Shotwell cannot " -"continue.\n" -"\n" -"%s" +#: misc/org.yorba.shotwell.gschema.xml:519 +msgid "Piwigo password, if logged in." msgstr "" -"访问 Shotwell 媒体库时出现致命错误。Shotwell 无法继续。\n" -"\n" -"%s" -#: ../src/AppWindow.vala:695 -#, c-format -msgid "Unable to display help: %s" -msgstr "无法显示帮助 %s" +#: misc/org.yorba.shotwell.gschema.xml:524 +msgid "remember password" +msgstr "记住密码" -#: ../src/AppWindow.vala:703 -#, c-format -msgid "Unable to navigate to bug database: %s" -msgstr "无法转向 Bug 数据库:%s" +#: misc/org.yorba.shotwell.gschema.xml:525 +msgid "If true, remember the Piwigo password." +msgstr "" -#: ../src/AppWindow.vala:711 -#, c-format -msgid "Unable to display FAQ: %s" -msgstr "无法显示常见问题 %s" +#: misc/org.yorba.shotwell.gschema.xml:531 +msgid "The last selected Piwigo category." +msgstr "" -#: ../src/BatchImport.vala:26 -msgid "Success" -msgstr "成功" +#: misc/org.yorba.shotwell.gschema.xml:536 +msgid "last permission level" +msgstr "" -#: ../src/BatchImport.vala:29 -msgid "File error" -msgstr "文件错误" +#: misc/org.yorba.shotwell.gschema.xml:537 +msgid "The last chosen Piwigo permission level." +msgstr "" -#: ../src/BatchImport.vala:32 -msgid "Unable to decode file" -msgstr "无法解码文件" +#: misc/org.yorba.shotwell.gschema.xml:543 +msgid "" +"A numeric code representing the last photo size preset used when publishing " +"to Piwigo." +msgstr "" -#: ../src/BatchImport.vala:35 -msgid "Database error" -msgstr "数据库错误" +#: misc/org.yorba.shotwell.gschema.xml:549 +msgid "" +"Whether images being uploaded to Piwigo should have their metadata removed " +"first" +msgstr "" -#: ../src/BatchImport.vala:38 -msgid "User aborted import" -msgstr "用户中止导入" +#: misc/org.yorba.shotwell.gschema.xml:554 +#, fuzzy +#| msgid "_If a title is set and comment unset, use title as comment" +msgid "" +"if title is set and comment unset, use title as comment for uploads to Piwigo" +msgstr "如果有标题而没有备注,将标题作为备注(_I)" -#: ../src/BatchImport.vala:41 -msgid "Not a file" -msgstr "不是一个文件" +#: misc/org.yorba.shotwell.gschema.xml:555 +msgid "" +"Whether images being uploaded to Piwigo should have their comment set from " +"the title if title is set and comment unset" +msgstr "" -#: ../src/BatchImport.vala:44 -msgid "File already exists in database" -msgstr "文件已存在于数据库中" +#: misc/org.yorba.shotwell.gschema.xml:560 +msgid "do not upload tags when uploading to Piwigo" +msgstr "" -#: ../src/BatchImport.vala:47 -msgid "Unsupported file format" -msgstr "不支持的文件格式" +#: misc/org.yorba.shotwell.gschema.xml:561 +msgid "" +"Whether images being uploaded to Piwigo should have their tags removed on " +"upload, such that these tags will not appear on the remote Piwigo server." +msgstr "" -#: ../src/BatchImport.vala:50 -msgid "Not an image file" -msgstr "不是照片文件" +#: misc/org.yorba.shotwell.gschema.xml:569 +msgid "Gallery3 username" +msgstr "Gallery3 用户名" -#: ../src/BatchImport.vala:53 -msgid "Disk failure" -msgstr "磁盘错误" +#: misc/org.yorba.shotwell.gschema.xml:574 +msgid "API key" +msgstr "" -#: ../src/BatchImport.vala:56 -msgid "Disk full" -msgstr "磁盘已满" +#: misc/org.yorba.shotwell.gschema.xml:575 +msgid "Gallery3 API key" +msgstr "" -#: ../src/BatchImport.vala:59 -msgid "Camera error" -msgstr "相机错误" +#: misc/org.yorba.shotwell.gschema.xml:580 +msgid "URL" +msgstr "URL" -#: ../src/BatchImport.vala:62 -msgid "File write error" -msgstr "文件写入错误" +#: misc/org.yorba.shotwell.gschema.xml:581 +msgid "Gallery3 site URL" +msgstr "URL" -#: ../src/BatchImport.vala:65 -msgid "Corrupt image file" -msgstr "损坏的图片" +#: misc/org.yorba.shotwell.gschema.xml:593 +msgid "" +"Indicates whether images being uploaded to Gallery3 should have their " +"metadata removed first" +msgstr "" -#: ../src/BatchImport.vala:68 -#, c-format -msgid "Imported failed (%d)" -msgstr "导入失败(%d)" +#: misc/org.yorba.shotwell.gschema.xml:598 +msgid "scaling constraint of uploaded picture" +msgstr "" -#: ../src/CollectionPage.vala:230 ../src/PhotoPage.vala:2627 -msgid "S_lideshow" -msgstr "幻灯片演示(_L)" +#: misc/org.yorba.shotwell.gschema.xml:599 +msgid "The scaling constraint ID of the picture to be uploaded" +msgstr "" -#: ../src/CollectionPage.vala:231 ../src/PhotoPage.vala:2628 -msgid "Play a slideshow" -msgstr "开始幻灯片播放" +#: misc/org.yorba.shotwell.gschema.xml:604 +msgid "pixels of the major axis uploaded picture" +msgstr "" -#: ../src/CollectionPage.vala:456 -msgid "Export Photo/Video" -msgstr "导出照片/视频" +#: misc/org.yorba.shotwell.gschema.xml:605 +msgid "" +"The pixels of the major axis of the picture to be uploaded; used only if " +"scaling-constraint-id is an appropriate value" +msgstr "" -#: ../src/CollectionPage.vala:456 -msgid "Export Photos/Videos" -msgstr "导出照片/视频" +#: misc/org.yorba.shotwell.gschema.xml:613 +msgid "" +"The OAuth token used to refresh the YouTube session for the currently logged " +"in user, if any." +msgstr "" -#: ../src/CollectionPage.vala:458 ../src/Dialogs.vala:58 -#: ../src/PhotoPage.vala:3200 -msgid "Export Photo" -msgstr "导出照片" +#: misc/org.yorba.shotwell.gschema.xml:620 +#, fuzzy +#| msgid "Core Data Import Services" +msgid "last used import service" +msgstr "核心数据导入服务" -#: ../src/CollectionPage.vala:458 ../src/Dialogs.vala:87 -msgid "Export Photos" -msgstr "导出照片" +#: misc/org.yorba.shotwell.gschema.xml:621 +msgid "" +"A numeric code representing the last service from which photos were imported" +msgstr "" -#: ../src/CollectionPage.vala:545 ../src/CollectionPage.vala:561 -msgid "Rotating" -msgstr "正在旋转" +#: misc/org.yorba.shotwell.gschema.xml:628 +msgid "interpreter state cookie" +msgstr "" -#: ../src/CollectionPage.vala:545 ../src/CollectionPage.vala:561 -msgid "Undoing Rotate" -msgstr "正在取消旋转" +#: misc/org.yorba.shotwell.gschema.xml:629 +msgid "" +"A numeric code that captures the state of the GStreamer plug-in environment" +msgstr "" -#: ../src/CollectionPage.vala:570 -msgid "Flipping Horizontally" -msgstr "正在水平翻转" +#: misc/org.yorba.shotwell.gschema.xml:636 +msgid "content layout mode" +msgstr "" -#: ../src/CollectionPage.vala:571 -msgid "Undoing Flip Horizontally" -msgstr "正在取消水平翻转" +#: misc/org.yorba.shotwell.gschema.xml:637 +msgid "" +"A numeric code that describes how photos are laid out on the page during " +"printing" +msgstr "" -#: ../src/CollectionPage.vala:580 -msgid "Flipping Vertically" -msgstr "正在垂直翻转" +#: misc/org.yorba.shotwell.gschema.xml:642 +#, fuzzy +#| msgid "_Contents" +msgid "content ppi" +msgstr "目录(_C)" -#: ../src/CollectionPage.vala:581 -msgid "Undoing Flip Vertically" -msgstr "正在取消垂直翻转" +#: misc/org.yorba.shotwell.gschema.xml:643 +msgid "The number of pixels per inch (ppi) sent to the printer during printing" +msgstr "" -#: ../src/Commands.vala:733 -msgid "Reverting" -msgstr "正在还原" +#: misc/org.yorba.shotwell.gschema.xml:648 +msgid "content width" +msgstr "" -#: ../src/Commands.vala:733 -msgid "Undoing Revert" -msgstr "正在取消还原" +#: misc/org.yorba.shotwell.gschema.xml:649 +msgid "The width of the printed emulsion on the page when printing" +msgstr "" -#: ../src/Commands.vala:777 -msgid "Enhancing" -msgstr "正在增强" +#: misc/org.yorba.shotwell.gschema.xml:654 +#, fuzzy +#| msgid "Rotate Right" +msgid "content height" +msgstr "向右旋转" -#: ../src/Commands.vala:777 -msgid "Undoing Enhance" -msgstr "正在取消增强" +#: misc/org.yorba.shotwell.gschema.xml:655 +msgid "The height of the printed emulsion on the page when printing" +msgstr "" -#: ../src/Commands.vala:845 -msgid "Applying Color Transformations" -msgstr "应用颜色变换" +#: misc/org.yorba.shotwell.gschema.xml:660 +#, fuzzy +#| msgid "_Contents" +msgid "content units" +msgstr "目录(_C)" -#: ../src/Commands.vala:845 -msgid "Undoing Color Transformations" -msgstr "撤销颜色变换" +#: misc/org.yorba.shotwell.gschema.xml:661 +msgid "" +"A numeric code representing unit of measure (inches or centimeters) used " +"when printing" +msgstr "" -#: ../src/Commands.vala:995 -msgid "Creating New Event" -msgstr "正在创建新的事件" +#: misc/org.yorba.shotwell.gschema.xml:666 +#, fuzzy +#| msgid "2 images per page" +msgid "images per page code" +msgstr "每页 2 张" -#: ../src/Commands.vala:996 -msgid "Removing Event" -msgstr "正在移除事件" +#: misc/org.yorba.shotwell.gschema.xml:667 +msgid "" +"A numeric code representing the currently selected images per page mode used " +"when printing" +msgstr "" -#: ../src/Commands.vala:1005 -msgid "Moving Photos to New Event" -msgstr "正在移动照片到新事件" +#: misc/org.yorba.shotwell.gschema.xml:672 +msgid "size selection" +msgstr "" -#: ../src/Commands.vala:1006 -msgid "Setting Photos to Previous Event" -msgstr "正在设置照片至先前的事件" +#: misc/org.yorba.shotwell.gschema.xml:673 +msgid "" +"The index of the current print size in a pre-defined list of standard sizes" +msgstr "" -#: ../src/Commands.vala:1063 -msgid "Merging" -msgstr "正在合并" +#: misc/org.yorba.shotwell.gschema.xml:678 +#, fuzzy +#| msgid "_Match photo aspect ratio" +msgid "match aspect ratio" +msgstr "匹配照片比例(_M)" -#: ../src/Commands.vala:1064 -msgid "Unmerging" -msgstr "正在取消合并" +#: misc/org.yorba.shotwell.gschema.xml:679 +msgid "" +"Determines whether custom print sizes must match the aspect ratio of the " +"original photo" +msgstr "" -#: ../src/Commands.vala:1073 -msgid "Duplicating photos" -msgstr "正在创建照片副本" +#: misc/org.yorba.shotwell.gschema.xml:684 +#, fuzzy +#| msgid "Print image _title" +msgid "print titles" +msgstr "打印图像标题(_T)" -#: ../src/Commands.vala:1073 -msgid "Removing duplicated photos" -msgstr "正在移除照片副本" +#: misc/org.yorba.shotwell.gschema.xml:685 +msgid "" +"True if the title of a photo should be printed when the photo is printed, " +"false otherwise." +msgstr "" -#: ../src/Commands.vala:1096 -#, c-format -msgid "Unable to duplicate one photo due to a file error" -msgid_plural "Unable to duplicate %d photos due to file errors" -msgstr[0] "由于文件错误无法创建 %d 照片副本" +#: misc/org.yorba.shotwell.gschema.xml:690 +msgid "titles font" +msgstr "标题字体" -#: ../src/Commands.vala:1183 -msgid "Restoring previous rating" -msgstr "恢复先前评分" +#: misc/org.yorba.shotwell.gschema.xml:691 +msgid "The name of the font to use for photo titles when they are printed." +msgstr "" -#: ../src/Commands.vala:1193 ../src/Commands.vala:1194 -msgid "Increasing ratings" -msgstr "提高评分" +#: misc/org.yorba.shotwell.gschema.xml:702 +msgid "enable facebook publishing plugin" +msgstr "启用 facebook 发布插件" -#: ../src/Commands.vala:1193 ../src/Commands.vala:1194 -msgid "Decreasing ratings" -msgstr "降低评分" +#: misc/org.yorba.shotwell.gschema.xml:703 +msgid "True if the Facebook publishing plugin is enabled, false otherwise" +msgstr "" -#: ../src/Commands.vala:1244 -msgid "Setting RAW developer" -msgstr "设置 RAW 开发者" +#: misc/org.yorba.shotwell.gschema.xml:708 +msgid "enable flickr publishing plugin" +msgstr "启用 flickr 发布插件" -#: ../src/Commands.vala:1244 -msgid "Restoring previous RAW developer" -msgstr "恢复原先的 RAW 开发者" +#: misc/org.yorba.shotwell.gschema.xml:709 +msgid "True if the Flickr publishing plugin is enabled, false otherwise" +msgstr "" -#: ../src/Commands.vala:1245 -msgid "Set Developer" -msgstr "设置开发人员" +#: misc/org.yorba.shotwell.gschema.xml:714 +msgid "enable picasa publishing plugin" +msgstr "启用 picasa 发布插件" -#: ../src/Commands.vala:1335 -msgid "Original photo could not be adjusted." -msgstr "无法修改原始照片。" +#: misc/org.yorba.shotwell.gschema.xml:715 +msgid "" +"True if the Picasa Web Albums publishing plugin is enabled, false otherwise" +msgstr "" -#: ../src/Commands.vala:1356 -msgid "Adjusting Date and Time" -msgstr "正在调整日期和时间" +#: misc/org.yorba.shotwell.gschema.xml:720 +msgid "enable youtube publishing plugin" +msgstr "启用 youtube 发布插件" -#: ../src/Commands.vala:1356 -msgid "Undoing Date and Time Adjustment" -msgstr "正在取消日期和时间调整" +#: misc/org.yorba.shotwell.gschema.xml:721 +msgid "True if the YouTube publishing plugin is enabled, false otherwise" +msgstr "" -#: ../src/Commands.vala:1387 -msgid "One original photo could not be adjusted." -msgid_plural "The following original photos could not be adjusted." -msgstr[0] "无法修改下列原始照片。" +#: misc/org.yorba.shotwell.gschema.xml:726 +msgid "enable piwigo publishing plugin" +msgstr "启用 piwigo 发布插件" -#: ../src/Commands.vala:1389 ../src/Commands.vala:1413 -msgid "Time Adjustment Error" -msgstr "时间调整出错" +#: misc/org.yorba.shotwell.gschema.xml:727 +msgid "True if the Piwigo publishing plugin is enabled, false otherwise" +msgstr "" -#: ../src/Commands.vala:1411 -msgid "Time adjustments could not be undone on the following photo file." -msgid_plural "" -"Time adjustments could not be undone on the following photo files." -msgstr[0] "时间修改无法在以下照片上取消。" +#: misc/org.yorba.shotwell.gschema.xml:732 +msgid "enable yandex publishing plugin" +msgstr "启用 yandex 发布插件" -#: ../src/Commands.vala:1625 ../src/Commands.vala:1648 -msgid "Create Tag" -msgstr "创建标签" +#: misc/org.yorba.shotwell.gschema.xml:733 +msgid "True if the Yandex.Fotki publishing plugin is enabled, false otherwise" +msgstr "" -#: ../src/Commands.vala:1683 -#, c-format -msgid "Move Tag \"%s\"" -msgstr "移动标签 %s" +#: misc/org.yorba.shotwell.gschema.xml:738 +msgid "enable tumblr publishing plugin" +msgstr "启用 tumblr 发布插件" -#: ../src/Commands.vala:2335 -msgid "Move Photos to Trash" -msgstr "移动照片至回收站" +#: misc/org.yorba.shotwell.gschema.xml:739 +msgid "True if the Tumblr publishing plugin is enabled, false otherwise" +msgstr "" -#: ../src/Commands.vala:2335 -msgid "Restore Photos from Trash" -msgstr "从回收站还原照片" +#: misc/org.yorba.shotwell.gschema.xml:744 +msgid "enable rajce publishing plugin" +msgstr "启用 rajce 发布插件" -#: ../src/Commands.vala:2336 -msgid "Move the photos to the Shotwell trash" -msgstr "将照片移至 Shotwell 回收站" - -#: ../src/Commands.vala:2336 -msgid "Restore the photos back to the Shotwell library" -msgstr "恢复这些照片到 Shotwell 媒体库" - -#: ../src/Commands.vala:2355 -msgid "Moving Photos to Trash" -msgstr "正在将照片移动到回收站" +#: misc/org.yorba.shotwell.gschema.xml:745 +msgid "True if the Rajce publishing plugin is enabled, false otherwise" +msgstr "" -#: ../src/Commands.vala:2355 -msgid "Restoring Photos From Trash" -msgstr "正在从回收站还原照片" +#: misc/org.yorba.shotwell.gschema.xml:750 +msgid "enable gallery3 publishing plugin" +msgstr "启用 gallery3 发布插件" -#: ../src/Commands.vala:2441 -msgid "Flag selected photos" -msgstr "标注选定照片" +#: misc/org.yorba.shotwell.gschema.xml:751 +msgid "True if the Gallery3 publishing plugin is enabled, false otherwise" +msgstr "" -#: ../src/Commands.vala:2442 -msgid "Unflag selected photos" -msgstr "取消标注选定照片" +#: misc/org.yorba.shotwell.gschema.xml:756 +msgid "enable F-Spot import plugin" +msgstr "" -#: ../src/Commands.vala:2443 -msgid "Flagging selected photos" -msgstr "正在标注选定照片" +#: misc/org.yorba.shotwell.gschema.xml:757 +msgid "True if the F-Spot import plugin is enabled, false otherwise" +msgstr "" -#: ../src/Commands.vala:2444 -msgid "Unflagging selected photos" -msgstr "正在取消标注选定照片" +#: misc/org.yorba.shotwell.gschema.xml:762 +#, fuzzy +#| msgid "Core Slideshow Transitions" +msgid "enable slideshow crumble transition" +msgstr "主要幻灯片变换" -#: ../src/Commands.vala:2451 -msgid "Flag" -msgstr "标注" +#: misc/org.yorba.shotwell.gschema.xml:763 +msgid "" +"True if the Crumble slideshow transition plugin is enabled, false otherwise" +msgstr "" -#: ../src/Commands.vala:2451 -msgid "Unflag" -msgstr "取消标注" +#: misc/org.yorba.shotwell.gschema.xml:768 +#, fuzzy +#| msgid "Core Slideshow Transitions" +msgid "enable slideshow fade transition" +msgstr "主要幻灯片变换" -#: ../src/DesktopIntegration.vala:118 -#, c-format -msgid "Unable to launch Nautilus Send-To: %s" -msgstr "无法启动 Nautilus 文件管理器的发送至:%s" +#: misc/org.yorba.shotwell.gschema.xml:769 +msgid "" +"True if the Fade slideshow transition plugin is enabled, false otherwise" +msgstr "" -#: ../src/DesktopIntegration.vala:126 -msgid "Send To" -msgstr "发送至" +#: misc/org.yorba.shotwell.gschema.xml:774 +#: misc/org.yorba.shotwell.gschema.xml:798 +#, fuzzy +#| msgid "Core Slideshow Transitions" +msgid "enable slideshow slide transition" +msgstr "主要幻灯片变换" -#: ../src/DesktopIntegration.vala:171 -#, c-format -msgid "Unable to export background to %s: %s" -msgstr "不能输出为背景到 %s:%s" +#: misc/org.yorba.shotwell.gschema.xml:775 +msgid "" +"True if the Slide slideshow transition plugin is enabled, false otherwise" +msgstr "" -#: ../src/DesktopIntegration.vala:299 -#, c-format -msgid "Unable to prepare desktop slideshow: %s" -msgstr "无法准备桌面幻灯片:%s" +#: misc/org.yorba.shotwell.gschema.xml:780 +#, fuzzy +#| msgid "Core Slideshow Transitions" +msgid "enable slideshow clock transition" +msgstr "主要幻灯片变换" -#: ../src/Dialogs.vala:16 -#, c-format -msgid "This will remove the tag \"%s\" from one photo. Continue?" -msgid_plural "This will remove the tag \"%s\" from %d photos. Continue?" -msgstr[0] "这将移除标签 \"%s\" 从 %d 张照片中。继续么?" +#: misc/org.yorba.shotwell.gschema.xml:781 +msgid "" +"True if the Clock slideshow transition plugin is enabled, false otherwise" +msgstr "" -#: ../src/Dialogs.vala:20 ../src/Dialogs.vala:28 ../src/Dialogs.vala:1329 -#: ../src/Resources.vala:330 ../src/Resources.vala:378 -#: ../src/Resources.vala:643 -msgid "_Delete" -msgstr "删除(_D)" +#: misc/org.yorba.shotwell.gschema.xml:786 +#: misc/org.yorba.shotwell.gschema.xml:792 +#, fuzzy +#| msgid "Core Slideshow Transitions" +msgid "enable slideshow circle transition" +msgstr "主要幻灯片变换" -#: ../src/Dialogs.vala:25 -#, c-format -msgid "This will remove the saved search \"%s\". Continue?" -msgstr "这将移除已保存搜索 %s。是否继续?" +#: misc/org.yorba.shotwell.gschema.xml:787 +msgid "" +"True if the Circle slideshow transition plugin is enabled, false otherwise" +msgstr "" -#: ../src/Dialogs.vala:35 +#: misc/org.yorba.shotwell.gschema.xml:793 msgid "" -"Switching developers will undo all changes you have made to this photo in " -"Shotwell" -msgid_plural "" -"Switching developers will undo all changes you have made to these photos in " -"Shotwell" -msgstr[0] "切换开发者将撤销您对于此照片所作的全部更改" +"True if the Circles slideshow transition plugin is enabled, false otherwise" +msgstr "" -#: ../src/Dialogs.vala:39 -msgid "_Switch Developer" -msgstr "切换开发者(_S)" +#: misc/org.yorba.shotwell.gschema.xml:799 +msgid "" +"True if the Blinds slideshow transition plugin is enabled, false otherwise" +msgstr "" -#: ../src/Dialogs.vala:58 -msgid "Export Video" -msgstr "导出视频" +#: misc/org.yorba.shotwell.gschema.xml:804 +#, fuzzy +#| msgid "Core Slideshow Transitions" +msgid "enable slideshow squares transition" +msgstr "主要幻灯片变换" -#. Ticket #3023 -#. Attempt to replace the system error with something friendlier -#. if we can't copy an image over for editing in an external tool. -#. Did we fail because we can't write to this directory? -#. Yes - display an alternate error message here. -#: ../src/Dialogs.vala:115 -#, c-format +#: misc/org.yorba.shotwell.gschema.xml:805 msgid "" -"Shotwell couldn't create a file for editing this photo because you do not " -"have permission to write to %s." -msgstr "Shotwell 无法为编辑此照片创建必需的文件,因为您没有写入 %s 的权限。" +"True if the Squares slideshow transition plugin is enabled, false otherwise" +msgstr "" + +#: misc/org.yorba.shotwell.gschema.xml:810 +#, fuzzy +#| msgid "Core Slideshow Transitions" +msgid "enable slideshow stripes transition" +msgstr "主要幻灯片变换" -#: ../src/Dialogs.vala:124 +#: misc/org.yorba.shotwell.gschema.xml:811 msgid "" -"Unable to export the following photo due to a file error.\n" -"\n" +"True if the Stripes slideshow transition plugin is enabled, false otherwise" msgstr "" -"由于文件错误无法导出以下照片。\n" -"\n" -#: ../src/Dialogs.vala:130 +#: misc/org.yorba.shotwell.gschema.xml:816 +#, fuzzy +#| msgid "Core Slideshow Transitions" +msgid "enable slideshow chess transition" +msgstr "主要幻灯片变换" + +#: misc/org.yorba.shotwell.gschema.xml:817 msgid "" -"\n" -"\n" -"Would you like to continue exporting?" +"True if the Chess-Board slideshow transition plugin is enabled, false " +"otherwise" msgstr "" -"\n" -"\n" -"您想要继续导出吗?" - -#. "Unmodified" and "Current," though they appear in the "Format:" popup menu, really -#. aren't formats so much as they are operating modes that determine specific formats. -#. Hereafter we'll refer to these as "special formats." -#: ../src/Dialogs.vala:147 -msgid "Unmodified" -msgstr "未修改的" -#: ../src/Dialogs.vala:148 -msgid "Current" -msgstr "当前" +#: plugins/common/Resources.vala:12 +msgid "Visit the Shotwell home page" +msgstr "访问 Shotwell 主页" -#. layout controls -#: ../src/Dialogs.vala:212 -msgid "_Format:" -msgstr "格式(_F):" +#: plugins/common/Resources.vala:31 src/AppWindow.vala:603 +msgid "translator-credits" +msgstr "" +"Tommy He , 2011\n" +"zheng7fu2 , 2011\n" +"Xhacker Liu , 2011\n" +"b6i , 2011\n" +"YunQiang Su , 2012\n" +"Aron Xu , 2012\n" +"Jason Lau, 刘家昌 , 2013\n" +"甘露(Gan Lu) , 2014\n" +"Boyuan Yang <073plan@gmail.com>, 2016\n" +"\n" +"Launchpad Contributions:\n" +" Aron Xu https://launchpad.net/~happyaron\n" +" David Gao https://launchpad.net/~davidgao1001\n" +" H https://launchpad.net/~zheng7fu2\n" +" Meng Zhuo https://launchpad.net/~mengzhuo1203\n" +" Qiu Haoyu https://launchpad.net/~timothyqiu\n" +" Tommy He https://launchpad.net/~tommy-he\n" +" Vera Yin https://launchpad.net/~vera-yorba\n" +" Wylmer Wang https://launchpad.net/~wantinghard\n" +" Xhacker Liu https://launchpad.net/~xhacker\n" +" YunQiang Su https://launchpad.net/~wzssyqa\n" +" mike2718 https://launchpad.net/~mike2718\n" +" slgray https://launchpad.net/~chenlibinpeter-gmail\n" +" 丁威扬 https://launchpad.net/~dingvyoung" -#: ../src/Dialogs.vala:215 -msgid "_Quality:" -msgstr "质量(_Q):" +#. Possible error message when a site presents a bad certificate. +#: plugins/common/RESTSupport.vala:202 +msgid "" +"⚫ This website presented identification that belongs to a different website." +msgstr "" -#: ../src/Dialogs.vala:218 -msgid "_Scaling constraint:" -msgstr "缩放限制(_S):" +#. Possible error message when a site presents a bad certificate. +#: plugins/common/RESTSupport.vala:207 +msgid "" +"⚫ This website’s identification is too old to trust. Check the date on your " +"computer’s calendar." +msgstr "" -#: ../src/Dialogs.vala:221 -msgid " _pixels" -msgstr " 像素(_P)" +#. Possible error message when a site presents a bad certificate. +#: plugins/common/RESTSupport.vala:212 +msgid "" +"⚫ This website’s identification was not issued by a trusted organization." +msgstr "" -#: ../src/Dialogs.vala:229 -msgid "Export metadata" -msgstr "导出元数据" +#. Possible error message when a site presents a bad certificate. +#: plugins/common/RESTSupport.vala:217 +msgid "" +"⚫ This website’s identification could not be processed. It may be corrupted." +msgstr "" -#: ../src/Dialogs.vala:465 -msgid "Save Details..." -msgstr "保存详细信息..." +#. Possible error message when a site presents a bad certificate. +#: plugins/common/RESTSupport.vala:222 +msgid "" +"⚫ This website’s identification has been revoked by the trusted organization " +"that issued it." +msgstr "" -#: ../src/Dialogs.vala:466 -msgid "Save Details" -msgstr "保存详细信息..." +#. Possible error message when a site presents a bad certificate. +#: plugins/common/RESTSupport.vala:227 +msgid "" +"⚫ This website’s identification cannot be trusted because it uses very weak " +"encryption." +msgstr "" -#: ../src/Dialogs.vala:481 -#, c-format -msgid "(and %d more)\n" -msgstr "(和另外 %d 个)\n" +#. Possible error message when a site presents a bad certificate. +#: plugins/common/RESTSupport.vala:232 +msgid "" +"⚫ This website’s identification is only valid for future dates. Check the " +"date on your computer’s calendar." +msgstr "" -#: ../src/Dialogs.vala:534 -msgid "Import Results Report" -msgstr "导入结果报告" +#: plugins/common/RESTSupport.vala:509 +#: plugins/shotwell-publishing-extras/TumblrPublishing.vala:959 +msgid "A temporary file needed for publishing is unavailable" +msgstr "用于发布需要的临时文件不可用" -#: ../src/Dialogs.vala:538 -#, c-format -msgid "Attempted to import %d file." -msgid_plural "Attempted to import %d files." -msgstr[0] "尝试导入 %d 个文件。" +#: plugins/common/RESTSupport.vala:1167 +msgid "" +"You have already logged in and out of a Google service during this Shotwell " +"session.\n" +"\n" +"To continue publishing to Google services, quit and restart Shotwell, then " +"try publishing again." +msgstr "" +"在本次 Shotwell 会话中您登录 Google 服务然后退出了。\n" +"要继续发布到 Google,请退出并重新启动 Shotwell,然后再尝试发布。" -#: ../src/Dialogs.vala:541 -#, c-format -msgid "Of these, %d file was successfully imported." -msgid_plural "Of these, %d files were successfully imported." -msgstr[0] "其中,%d 个文件被成功导入。" +#: plugins/shotwell-data-imports/FSpotImporter.vala:36 +#: plugins/shotwell-publishing/FacebookPublishing.vala:33 +#: plugins/shotwell-publishing/FlickrPublishing.vala:33 +#: plugins/shotwell-publishing/PicasaPublishing.vala:33 +#: plugins/shotwell-publishing/PiwigoPublishing.vala:33 +#: plugins/shotwell-publishing/YouTubePublishing.vala:33 src/Resources.vala:27 +msgid "Copyright 2016 Software Freedom Conservancy Inc." +msgstr "版权所有 2016 Software Freedom Conservancy Inc." -#. -#. Duplicates -#. -#: ../src/Dialogs.vala:553 -msgid "Duplicate Photos/Videos Not Imported:" -msgstr "以下重复的照片/视频没有被导入:" +#: plugins/shotwell-data-imports/FSpotImporter.vala:58 +msgid "" +"Welcome to the F-Spot library import service.\n" +"\n" +"Please select a library to import, either by selecting one of the existing " +"libraries found by Shotwell or by selecting an alternative F-Spot database " +"file." +msgstr "" +"欢迎使用 F-Spot 媒体库导入服务。\n" +"\n" +"请选择一个要导入的媒体库,既可以是 Shotwell 找到的现存库,也可以选择其他 F-" +"Spot 数据库文件。" -#: ../src/Dialogs.vala:557 -msgid "duplicates existing media item" -msgstr "创建现有媒体文件的副本" +#: plugins/shotwell-data-imports/FSpotImporter.vala:60 +msgid "" +"Welcome to the F-Spot library import service.\n" +"\n" +"Please select an F-Spot database file." +msgstr "" +"欢迎使用 F-Spot 媒体库导入服务。\n" +"\n" +"请选择一个 F-Spot 数据库文件。" -#. -#. Files Not Imported Due to Camera Errors -#. -#: ../src/Dialogs.vala:568 -msgid "Photos/Videos Not Imported Due to Camera Errors:" -msgstr "照片/视频因为相机错误而未被导入:" +#: plugins/shotwell-data-imports/FSpotImporter.vala:62 +msgid "Manually select an F-Spot database file to import:" +msgstr "手工选择一个要导入的 F-Spot 数据库文件:" -#: ../src/Dialogs.vala:571 ../src/Dialogs.vala:586 ../src/Dialogs.vala:601 -#: ../src/Dialogs.vala:617 ../src/Dialogs.vala:632 ../src/Dialogs.vala:646 -msgid "error message:" -msgstr "错误信息:" +#: plugins/shotwell-data-imports/FSpotImporter.vala:64 +msgid "" +"Cannot open the selected F-Spot database file: the file does not exist or is " +"not an F-Spot database" +msgstr "无法打开选定的 F-Spot 数据库文件:文件不存在或不是 F-Spot 数据库" -#. -#. Files Not Imported Because They Weren't Recognized as Photos or Videos -#. -#: ../src/Dialogs.vala:582 -msgid "Files Not Imported Because They Weren't Recognized as Photos or Videos:" -msgstr "以下文件因为它们不被识别为照片或视频而未被导入:" +#: plugins/shotwell-data-imports/FSpotImporter.vala:66 +msgid "" +"Cannot open the selected F-Spot database file: this version of the F-Spot " +"database is not supported by Shotwell" +msgstr "" +"无法打开选定的 F-Spot 数据库文件:Shotwell 不支持此版本的 F-Spot 数据库" -#. -#. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands -#. -#: ../src/Dialogs.vala:597 +#: plugins/shotwell-data-imports/FSpotImporter.vala:68 msgid "" -"Photos/Videos Not Imported Because They Weren't in a Format Shotwell " -"Understands:" -msgstr "以下照片/视频因为它们不是 Shotwell 识别的格式而未被导入:" +"Cannot read the selected F-Spot database file: error while reading tags table" +msgstr "无法读取选定的 F-Spot 数据库文件:读取标签列表出错" -#. -#. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library -#. -#: ../src/Dialogs.vala:612 +#: plugins/shotwell-data-imports/FSpotImporter.vala:70 msgid "" -"Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its " -"Library:" -msgstr "以下照片/视频因为 Shotwell 无法拷贝它们而未被导入:" +"Cannot read the selected F-Spot database file: error while reading photos " +"table" +msgstr "无法读取选定的 F-Spot 数据库文件:读取照片出错" -#: ../src/Dialogs.vala:616 +#: plugins/shotwell-data-imports/FSpotImporter.vala:72 #, c-format msgid "" -"couldn't copy %s\n" -"\tto %s" -msgstr "无法将 %s⏎ »拷贝到 %s" +"Shotwell has found %d photos in the F-Spot library and is currently " +"importing them. Duplicates will be automatically detected and removed.\n" +"\n" +"You can close this dialog and start using Shotwell while the import is " +"taking place in the background." +msgstr "" +"Shotwell 在 F-Spot 媒体库中找到 %d 个照片并正在导入它们。重复的文件会被自动去" +"除。\n" +"\n" +"您可以关闭这个会话并开始使用 Shotwell,导入工作将在后台继续进行。" -#. -#. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt -#. -#: ../src/Dialogs.vala:628 -msgid "Photos/Videos Not Imported Because Files Are Corrupt:" -msgstr "以下照片/视频因为文件损坏而未被导入:" +#: plugins/shotwell-data-imports/FSpotImporter.vala:86 +#, c-format +msgid "F-Spot library: %s" +msgstr "F-Spot 媒体库:%s" + +#: plugins/shotwell-data-imports/FSpotImporter.vala:424 +msgid "Preparing to import" +msgstr "正在准备导入" + +#: plugins/shotwell-data-imports/shotwell-data-imports.vala:22 +msgid "Core Data Import Services" +msgstr "核心数据导入服务" + +#: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:28 +msgid "_Gallery3 URL:" +msgstr "" + +#: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:55 +msgid "_User name:" +msgstr "用户名称(_U):" + +#: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:68 +msgid "_Password:" +msgstr "密码(_P):" + +#: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:108 +#, fuzzy +#| msgid "Back" +msgid "Go _Back" +msgstr "后退" + +#: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:125 +#: ui/shotwell.ui:1464 +msgid "_Log in" +msgstr "登录(_L)" + +#: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:154 +msgid "API _Key:" +msgstr "" + +#: plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui:180 +#, fuzzy +#| msgid "hour" +#| msgid_plural "hours" +msgid "or" +msgstr "小时" + +#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:34 +msgid "An _existing album" +msgstr "一个已有的相册(_E)" + +#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:60 +msgid "A _new album" +msgstr "一个新相册(_N)" + +#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:86 +#, fuzzy +#| msgid "" +#| "_Remove location, camera, and other identifying information before " +#| "uploading" +msgid "_Remove location, tag and camera-identifying data before uploading" +msgstr "上传前去除照片的地理位置、相机型号和其他可供辨认的信息(_R)" + +#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:108 +#, fuzzy +#| msgid "_Scaling constraint:" +msgid "Scaling constraint:" +msgstr "缩放限制(_S):" + +#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:124 +msgid "pixels" +msgstr " 像素" + +#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:158 +#: plugins/shotwell-publishing/FlickrPublishing.vala:1209 +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1306 +#: src/Dimensions.vala:17 +msgid "Original size" +msgstr "原始尺寸" + +#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:159 +#: src/Dimensions.vala:20 +msgid "Width or height" +msgstr "宽度或者高度" + +#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:203 +#: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:39 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:1019 +#: plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.ui:105 +#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:145 +#: plugins/shotwell-publishing/facebook_publishing_options_pane.ui:177 +#: plugins/shotwell-publishing/flickr_publishing_options_pane.ui:125 +#: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:208 +#: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:99 +msgid "_Logout" +msgstr "注销(_L)" + +#: plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui:216 +#: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:220 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:1018 +#: plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.ui:121 +#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:159 +#: plugins/shotwell-publishing/facebook_publishing_options_pane.ui:192 +#: plugins/shotwell-publishing/flickr_publishing_options_pane.ui:141 +#: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:222 +#: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:115 +#: src/CollectionPage.vala:76 src/PhotoPage.vala:2456 +msgid "_Publish" +msgstr "发布(_P)" + +#: plugins/shotwell-publishing-extras/GalleryConnector.vala:41 +msgid "Gallery3 publishing module" +msgstr "" + +#: plugins/shotwell-publishing-extras/GalleryConnector.vala:114 +#, fuzzy +#| msgid "" +#| "You are not currently logged into YouTube.\n" +#| "\n" +#| "You must have already signed up for a Google account and set it up for " +#| "use with YouTube to continue. You can set up most accounts by using your " +#| "browser to log into the YouTube site at least once." +msgid "" +"You are not currently logged into your Gallery.\n" +"\n" +"You must have already signed up for a Gallery3 account to complete the login " +"process." +msgstr "" +"您尚未登录 YouTube。\n" +"\n" +"您必须已经注册了一个 Google 帐号并设置为使用 YouTube 才能继续。您可以通过浏览" +"器设置绝大多数帐号并至少登录 YouTube 一次。" + +#: plugins/shotwell-publishing-extras/GalleryConnector.vala:117 +msgid "Shotwell default directory" +msgstr "Shotwell 默认目录" + +#: plugins/shotwell-publishing-extras/GalleryConnector.vala:801 +#, c-format +msgid "" +"\n" +"\n" +"The file “%s” may not be supported by or may be too large for this instance " +"of Gallery3." +msgstr "" + +#: plugins/shotwell-publishing-extras/GalleryConnector.vala:802 +msgid "" +"\n" +"Note that Gallery3 only supports the video types that Flowplayer does." +msgstr "" + +#: plugins/shotwell-publishing-extras/GalleryConnector.vala:1021 +#: plugins/shotwell-publishing-extras/GalleryConnector.vala:1773 +#, fuzzy, c-format +#| msgid "" +#| "A file required for publishing is unavailable. Publishing to Picasa can't " +#| "continue." +msgid "" +"A file required for publishing is unavailable. Publishing to %s can’t " +"continue." +msgstr "一个发布所需要的文件不存在。无法继续发布至 Picasa。" + +#. populate any widgets whose contents are +#. programmatically-generated +#: plugins/shotwell-publishing-extras/GalleryConnector.vala:1550 +#, fuzzy, c-format +#| msgid "Publish Photos and Videos" +msgid "Publishing to %s as %s." +msgstr "发布照片和视频" + +#: plugins/shotwell-publishing-extras/GalleryConnector.vala:1817 +#, fuzzy +#| msgid "" +#| "Enter the URL of your Piwigo photo library as well as the username and " +#| "password associated with your Piwigo account for that library." +msgid "" +"Enter the URL for your Gallery3 site and the username and password (or API " +"key) for your Gallery3 account." +msgstr "输入您 Piwigo 照片库的 URL 以及对应 Piwigo 照片库相关的用户名和密码。" + +#: plugins/shotwell-publishing-extras/GalleryConnector.vala:1818 +msgid "" +"The username and password or API key were incorrect. To try again, re-enter " +"your username and password below." +msgstr "" + +#: plugins/shotwell-publishing-extras/GalleryConnector.vala:1819 +msgid "" +"The URL entered does not appear to be the main directory of a Gallery3 " +"instance. Please make sure you typed it correctly and it does not have any " +"trailing components (e.g., index.php)." +msgstr "" + +#: plugins/shotwell-publishing-extras/GalleryConnector.vala:1872 +msgid "Unrecognized User" +msgstr "" + +#: plugins/shotwell-publishing-extras/GalleryConnector.vala:1877 +msgid " Site Not Found" +msgstr "站点未找到" + +#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:42 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:892 +#: plugins/shotwell-publishing-extras/tumblr_authentication_pane.ui:42 +msgid "_Email address" +msgstr "邮箱地址(_E)" + +#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:82 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:893 +#: plugins/shotwell-publishing-extras/tumblr_authentication_pane.ui:82 +#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:119 +msgid "_Password" +msgstr "密码(_)" + +#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:100 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:894 +#, fuzzy +#| msgid "_Remember Password" +msgid "_Remember" +msgstr "记住密码(_R)" + +#: plugins/shotwell-publishing-extras/rajce_authentication_pane.ui:120 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:895 +#: plugins/shotwell-publishing-extras/tumblr_authentication_pane.ui:104 +#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:154 +#, fuzzy +#| msgid "Logging in..." +msgid "Log in" +msgstr "正在登录……" + +#: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:104 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:1015 +#: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:70 +msgid "An _existing album:" +msgstr "一个已有的相册(_E):" + +#: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:123 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:1016 +#: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:87 +msgid "A _new album named:" +msgstr "一个新相册(_N):" + +#: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:141 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:1006 +msgid "_Hide album" +msgstr "" + +#: plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui:156 +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:1017 +msgid "Open target _album in browser" +msgstr "" + +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:40 +msgid "Copyright © 2013 rajce.net" +msgstr "版权所有 © 2013 rajce.net" + +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:744 +#, fuzzy +#| msgid "" +#| "An error message occurred when publishing to Piwigo. Please try again." +msgid "An error message occurred when publishing to Rajce. Please try again." +msgstr "在发布至 Piwigo 时发生了错误,请重试。" + +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:833 +#, fuzzy +#| msgid "Enter the username and password associated with your Tumblr account." +msgid "Enter email and password associated with your Rajce account." +msgstr "输入和您 Tumblr 账户关联的用户名和密码。" + +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:834 +#, fuzzy +#| msgid "Username and/or password invalid. Please try again" +msgid "Invalid email and/or password. Please try again" +msgstr "用户名或密码无效。请重试" + +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:865 +#, fuzzy +#| msgid "Invalid User Name or Password" +msgid "Invalid User Email or Password" +msgstr "无效的用户名或密码" + +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:1013 +#, fuzzy, c-format +#| msgid "" +#| "You are logged into Facebook as %s.\n" +#| "\n" +msgid "You are logged into Rajce as %s." +msgstr "" +"您已经作为 %s 登录 Facebook。\n" +"\n" + +#: plugins/shotwell-publishing-extras/RajcePublishing.vala:1014 +#: plugins/shotwell-publishing/PicasaPublishing.vala:670 +#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:20 +msgid "Photos will appear in:" +msgstr "照片将出现在:" + +#: plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala:20 +msgid "Shotwell Extra Publishing Services" +msgstr "Shotwell 额外发布服务" + +#: plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.ui:44 +msgid "Blogs:" +msgstr "博客:" + +#: plugins/shotwell-publishing-extras/tumblr_publishing_options_pane.ui:59 +#: plugins/shotwell-publishing/flickr_publishing_options_pane.ui:61 +msgid "Photo _size:" +msgstr "照片尺寸(_S):" + +#: plugins/shotwell-publishing-extras/TumblrPublishing.vala:36 +msgid "Copyright 2012 BJA Electronics" +msgstr "版权所有 2012 BJA Electronics" + +#: plugins/shotwell-publishing-extras/TumblrPublishing.vala:105 +#: plugins/shotwell-publishing/FlickrPublishing.vala:1205 +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1302 +msgid "500 × 375 pixels" +msgstr "500 × 375 像素" + +#: plugins/shotwell-publishing-extras/TumblrPublishing.vala:106 +#: plugins/shotwell-publishing/FlickrPublishing.vala:1206 +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1303 +msgid "1024 × 768 pixels" +msgstr "1024 × 768 像素" + +#: plugins/shotwell-publishing-extras/TumblrPublishing.vala:107 +msgid "1280 × 853 pixels" +msgstr "1280 × 853 像素" + +#: plugins/shotwell-publishing-extras/TumblrPublishing.vala:311 +#: plugins/shotwell-publishing-extras/TumblrPublishing.vala:321 +#, fuzzy, c-format +#| msgid "'%s' isn't a valid response to an OAuth authentication request" +msgid "“%s” isn’t a valid response to an OAuth authentication request" +msgstr "'%s' 不是一个有效的 OAuth 授权请求响应" + +#: plugins/shotwell-publishing-extras/TumblrPublishing.vala:559 +#, fuzzy +#| msgid "" +#| "TumblrPublisher: start( ): can't start; this publisher is not restartable." +msgid "" +"TumblrPublisher: start( ): can’t start; this publisher is not restartable." +msgstr "TumblrPublisher: start( ): 无法启动;无法重启该发布器。" + +#: plugins/shotwell-publishing-extras/TumblrPublishing.vala:587 +msgid "Enter the username and password associated with your Tumblr account." +msgstr "输入和您 Tumblr 账户关联的用户名和密码。" + +#: plugins/shotwell-publishing-extras/TumblrPublishing.vala:588 +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1081 +msgid "Username and/or password invalid. Please try again" +msgstr "用户名或密码无效。请重试" + +#: plugins/shotwell-publishing-extras/TumblrPublishing.vala:615 +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1117 +msgid "Invalid User Name or Password" +msgstr "无效的用户名或密码" + +#: plugins/shotwell-publishing-extras/TumblrPublishing.vala:635 +#: plugins/shotwell-publishing-extras/TumblrPublishing.vala:753 +#, c-format +msgid "Could not load UI: %s" +msgstr "无法载入 UI:%s" + +#: plugins/shotwell-publishing-extras/TumblrPublishing.vala:735 +#, c-format +msgid "" +"You are logged into Tumblr as %s.\n" +"\n" +msgstr "" +"您登录的 Tumblr 账户为 %s。\n" +"\n" + +#: plugins/shotwell-publishing-extras/YandexPublishing.vala:22 +msgid "Copyright 2010+ Evgeniy Polyakov " +msgstr "版权所有 2010+ Evgeniy Polyakov " + +#: plugins/shotwell-publishing-extras/YandexPublishing.vala:25 +msgid "Visit the Yandex.Fotki web site" +msgstr "访问 Yandex.Fotki 网站" + +#: plugins/shotwell-publishing-extras/YandexPublishing.vala:609 +msgid "You are not currently logged into Yandex.Fotki." +msgstr "您当前未登陆至 Yandex.Fotki。" + +#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:12 +msgid "Public" +msgstr "公开" + +#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:15 +#: plugins/shotwell-publishing/FacebookPublishing.vala:1144 +msgid "Friends" +msgstr "朋友" + +#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:18 +#: plugins/shotwell-publishing/YouTubePublishing.vala:498 +msgid "Private" +msgstr "私人" + +#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:47 +msgid "_Albums (or write new):" +msgstr "已有或新相册(_A):" + +#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:85 +msgid "Access _type:" +msgstr "访问类型(_T):" + +#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:106 +msgid "Disable _comments" +msgstr "禁用评论(_C)" + +#: plugins/shotwell-publishing-extras/yandex_publish_model.ui:123 +msgid "_Forbid downloading original photo" +msgstr "禁止下载原始照片(_F)" + +#: plugins/shotwell-publishing/facebook_publishing_options_pane.ui:42 +msgid "Publish to an e_xisting album:" +msgstr "发布到已有相册(_X):" + +#: plugins/shotwell-publishing/facebook_publishing_options_pane.ui:58 +msgid "Create a _new album named:" +msgstr "创建一个新相册名为(_N):" + +#: plugins/shotwell-publishing/facebook_publishing_options_pane.ui:100 +#: plugins/shotwell-publishing/FacebookPublishing.vala:984 +msgid "Upload _size:" +msgstr "上传大小(_S):" + +#: plugins/shotwell-publishing/facebook_publishing_options_pane.ui:125 +msgid "Videos and new photo albums _visible to:" +msgstr "视频和新照片相册可见于(_V):" + +#: plugins/shotwell-publishing/facebook_publishing_options_pane.ui:155 +#: plugins/shotwell-publishing/flickr_publishing_options_pane.ui:92 +#: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:159 +#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:203 +msgid "" +"_Remove location, camera, and other identifying information before uploading" +msgstr "上传前去除照片的地理位置、相机型号和其他可供辨认的信息(_R)" + +#: plugins/shotwell-publishing/FacebookPublishing.vala:62 +#: plugins/shotwell-publishing/PicasaPublishing.vala:60 +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1188 +msgid "Shotwell Connect" +msgstr "Shotwell 连接" + +#: plugins/shotwell-publishing/FacebookPublishing.vala:64 +#, fuzzy +#| msgid "" +#| "You are not currently logged into Facebook.\n" +#| "\n" +#| "If you don't yet have a Facebook account, you can create one during the " +#| "login process. During login, Shotwell Connect may ask you for permission " +#| "to upload photos and publish to your feed. These permissions are required " +#| "for Shotwell Connect to function." +msgid "" +"You are not currently logged into Facebook.\n" +"\n" +"If you don’t yet have a Facebook account, you can create one during the " +"login process. During login, Shotwell Connect may ask you for permission to " +"upload photos and publish to your feed. These permissions are required for " +"Shotwell Connect to function." +msgstr "" +"您尚未登录 Facebook.\n" +"\n" +"如果您没有 Facebook 帐号,可以在登录过程中创建一个。在登陆过程中, Shotwell " +"Connect 将请求您上传照片和发布到订阅列表的权限。这些权限对于 Shotwell " +"Connect 的工作是必须的。" + +#: plugins/shotwell-publishing/FacebookPublishing.vala:66 +msgid "" +"You have already logged in and out of Facebook during this Shotwell " +"session.\n" +"To continue publishing to Facebook, quit and restart Shotwell, then try " +"publishing again." +msgstr "" +"您已经登录了 Facebook 但并不在当前 Shotwell 进程中。\n" +"继续在 Facebook 上发布,退出并重新启动,然后再次尝试发布。" + +#: plugins/shotwell-publishing/FacebookPublishing.vala:87 +msgid "Standard (720 pixels)" +msgstr "标准 (720 像素)" + +#: plugins/shotwell-publishing/FacebookPublishing.vala:90 +msgid "Large (2048 pixels)" +msgstr "大型 (2048 像素)" + +#: plugins/shotwell-publishing/FacebookPublishing.vala:255 +msgid "Testing connection to Facebook…" +msgstr "正在测试连接到 Facebook..." + +#: plugins/shotwell-publishing/FacebookPublishing.vala:348 +#: plugins/shotwell-publishing/PicasaPublishing.vala:379 +msgid "Creating album…" +msgstr "创建相册..." + +#: plugins/shotwell-publishing/FacebookPublishing.vala:374 +#, fuzzy +#| msgid "" +#| "A file required for publishing is unavailable. Publishing to Facebook " +#| "can't continue." +msgid "" +"A file required for publishing is unavailable. Publishing to Facebook can’t " +"continue." +msgstr "一个发布所需要的文件不存在。无法继续发布至 Facebook。" + +#: plugins/shotwell-publishing/FacebookPublishing.vala:982 +#, c-format +msgid "" +"You are logged into Facebook as %s.\n" +"\n" +msgstr "" +"您已经作为 %s 登录 Facebook。\n" +"\n" + +#: plugins/shotwell-publishing/FacebookPublishing.vala:983 +msgid "Where would you like to publish the selected photos?" +msgstr "想在哪里发布选中的照片?" + +#: plugins/shotwell-publishing/FacebookPublishing.vala:1143 +#: plugins/shotwell-publishing/FlickrPublishing.vala:1187 +msgid "Just me" +msgstr "仅有我" + +#: plugins/shotwell-publishing/FacebookPublishing.vala:1145 +#: plugins/shotwell-publishing/FlickrPublishing.vala:1183 +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1290 +msgid "Everyone" +msgstr "所有人" + +#: plugins/shotwell-publishing/flickr_pin_entry_pane.ui:17 +msgid "" +"Enter the confirmation number which appears after you log into Flickr in " +"your Web browser." +msgstr "输入您使用网页浏览器登录 Flickr 后出现的确认码。" + +#: plugins/shotwell-publishing/flickr_pin_entry_pane.ui:37 +msgid "Authorization _Number:" +msgstr "认证码(_N):" + +#: plugins/shotwell-publishing/flickr_pin_entry_pane.ui:70 src/Dialogs.vala:128 +msgid "Con_tinue" +msgstr "继续(_T)" + +#: plugins/shotwell-publishing/FlickrPublishing.vala:60 +#, fuzzy +#| msgid "" +#| "You are not currently logged into Flickr.\n" +#| "\n" +#| "Click Login to log into Flickr in your Web browser. You will have to " +#| "authorize Shotwell Connect to link to your Flickr account." +msgid "" +"You are not currently logged into Flickr.\n" +"\n" +"Click Log in to log into Flickr in your Web browser. You will have to " +"authorize Shotwell Connect to link to your Flickr account." +msgstr "" +"您目前尚未登录到 Flickr。\n" +"\n" +"在您的浏览器中点击“登录”以登录到 Flickr。您必须授权 Shotwell 连接到您的 " +"Flickr 帐号。" + +#: plugins/shotwell-publishing/FlickrPublishing.vala:62 +msgid "" +"You have already logged in and out of Flickr during this Shotwell session.\n" +"To continue publishing to Flickr, quit and restart Shotwell, then try " +"publishing again." +msgstr "" +"在本次 Shotwell 会话中您登录了 Flickr 服务然后退出了。\n" +"要继续发布到 Flickr,请退出并重新启动 Shotwell,然后再尝试发布。" + +#: plugins/shotwell-publishing/FlickrPublishing.vala:374 +#, fuzzy +#| msgid "Preparing for login..." +msgid "Preparing for login…" +msgstr "准备登录..." + +#: plugins/shotwell-publishing/FlickrPublishing.vala:434 +#: plugins/shotwell-publishing/FlickrPublishing.vala:571 +#, fuzzy +#| msgid "" +#| "A file required for publishing is unavailable. Publishing to Flickr can't " +#| "continue." +msgid "" +"A file required for publishing is unavailable. Publishing to Flickr can’t " +"continue." +msgstr "一个发布所需要的文件不存在。无法继续发布至 Flickr。" + +#: plugins/shotwell-publishing/FlickrPublishing.vala:447 +#, fuzzy +#| msgid "Verifying authorization..." +msgid "Verifying authorization…" +msgstr "校验认证信息..." + +#: plugins/shotwell-publishing/FlickrPublishing.vala:1129 +#, c-format +msgid "" +"You are logged into Flickr as %s.\n" +"\n" +msgstr "" +"您已经作为 %s 登录到 Flickr。\n" +"\n" + +#: plugins/shotwell-publishing/FlickrPublishing.vala:1131 +#, fuzzy, c-format +#| msgid "" +#| "Your free Flickr account limits how much data you can upload per month.\n" +#| "This month, you have %d megabytes remaining in your upload quota." +msgid "" +"Your free Flickr account limits how much data you can upload per month.\n" +"This month you have %s remaining in your upload quota." +msgstr "" +"您的 Flickr 免费帐号限制您每月可以上传的数据。\n" +"本月您的流量限额还剩 %d MB。" + +#: plugins/shotwell-publishing/FlickrPublishing.vala:1133 +msgid "Your Flickr Pro account entitles you to unlimited uploads." +msgstr "您的 Flickr Pro 帐号让您可以无限上传。" + +#: plugins/shotwell-publishing/FlickrPublishing.vala:1138 +msgid "Photos _visible to:" +msgstr "照片公开给(_V):" + +#: plugins/shotwell-publishing/FlickrPublishing.vala:1140 +msgid "Videos _visible to:" +msgstr "视频公开给(_V):" + +#: plugins/shotwell-publishing/FlickrPublishing.vala:1143 +msgid "Photos and videos _visible to:" +msgstr "照片和视频公开给(_V):" + +#: plugins/shotwell-publishing/FlickrPublishing.vala:1184 +msgid "Friends & family only" +msgstr "仅朋友和家人" + +#: plugins/shotwell-publishing/FlickrPublishing.vala:1185 +msgid "Family only" +msgstr "仅限家人" + +#: plugins/shotwell-publishing/FlickrPublishing.vala:1186 +msgid "Friends only" +msgstr "仅限朋友" + +#: plugins/shotwell-publishing/FlickrPublishing.vala:1207 +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1304 +msgid "2048 × 1536 pixels" +msgstr "2048 × 1536 像素" + +#: plugins/shotwell-publishing/FlickrPublishing.vala:1208 +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1305 +msgid "4096 × 3072 pixels" +msgstr "4096 × 3072 像素" + +#: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:103 +msgid "L_ist album in public gallery" +msgstr "显示公开相片库里的相册(_I)" + +#: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:137 +msgid "Photo _size preset:" +msgstr "预置照片尺寸(_S):" + +#: plugins/shotwell-publishing/PicasaPublishing.vala:59 +#, fuzzy +#| msgid "" +#| "You are not currently logged into Picasa Web Albums.\n" +#| "\n" +#| "Click Login to log into Picasa Web Albums in your Web browser. You will " +#| "have to authorize Shotwell Connect to link to your Picasa Web Albums " +#| "account." +msgid "" +"You are not currently logged into Picasa Web Albums.\n" +"\n" +"Click Log in to log into Picasa Web Albums in your Web browser. You will " +"have to authorize Shotwell Connect to link to your Picasa Web Albums account." +msgstr "" +"您当前尚未登录 Picasa 网络相册。\n" +"\n" +"在您的浏览器中点击登录来完成 Picasa 网络相册等各路。您必须授权 Shotwell " +"Connect 来连接至您的 Picasa 网络相册。" + +#: plugins/shotwell-publishing/PicasaPublishing.vala:361 +#, fuzzy +#| msgid "" +#| "A file required for publishing is unavailable. Publishing to Picasa can't " +#| "continue." +msgid "" +"A file required for publishing is unavailable. Publishing to Picasa can’t " +"continue." +msgstr "一个发布所需要的文件不存在。无法继续发布至 Picasa。" + +#. populate any widgets whose contents are programmatically-generated. +#: plugins/shotwell-publishing/PicasaPublishing.vala:659 +#, c-format +msgid "You are logged into Picasa Web Albums as %s." +msgstr "您已经作为 %s 登录 Picasa 网络相册。" + +#: plugins/shotwell-publishing/PicasaPublishing.vala:665 +msgid "Videos will appear in:" +msgstr "视频将出现在:" + +#: plugins/shotwell-publishing/PicasaPublishing.vala:746 +msgid "Small (640 × 480 pixels)" +msgstr "小 (640 × 480 像素)" + +#: plugins/shotwell-publishing/PicasaPublishing.vala:747 +msgid "Medium (1024 × 768 pixels)" +msgstr "中 (1024 × 768 像素)" + +#: plugins/shotwell-publishing/PicasaPublishing.vala:748 +msgid "Recommended (1600 × 1200 pixels)" +msgstr "推荐 (1600 × 1200 像素)" + +#: plugins/shotwell-publishing/PicasaPublishing.vala:749 +msgid "Google+ (2048 × 1536 pixels)" +msgstr "Google+ (2048 × 1536 像素)" + +#: plugins/shotwell-publishing/PicasaPublishing.vala:750 +#: src/editing_tools/EditingTools.vala:757 +msgid "Original Size" +msgstr "原始尺寸" + +#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:44 +msgid "_URL of your Piwigo photo library" +msgstr "您的 Piwigo 照片库 _URL(_)" + +#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:94 +msgid "User _name" +msgstr "用户名(_)" + +#: plugins/shotwell-publishing/piwigo_authentication_pane.ui:133 +#, fuzzy +#| msgid "_Remember Password" +msgid "Remember Password" +msgstr "记住密码(_R)" + +#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:36 +#, fuzzy +#| msgid "An _existing category:" +msgid "An _existing category" +msgstr "一个已有的分类(_):" + +#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:110 +#, fuzzy +#| msgid "A _new album named:" +msgid "A _new album named" +msgstr "一个新相册(_N):" + +#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:142 +#, fuzzy +#| msgid "within category:" +msgid "within category" +msgstr "在以下分类中:" + +#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:155 +msgid "Album comment" +msgstr "相册备注" + +#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:167 +#, fuzzy +#| msgid "Photos will be _visible by:" +msgid "Photos will be _visible by" +msgstr "照片可见(_V):" + +#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:181 +msgid "Photo size" +msgstr "照片尺寸" + +#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:219 +msgid "_If a title is set and comment unset, use title as comment" +msgstr "如果有标题而没有备注,将标题作为备注(_I)" + +#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:235 +msgid "_Do no upload tags" +msgstr "不上传标签(_D)" + +#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:255 +msgid "Logout" +msgstr "登出" + +#: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:268 +#: src/Resources.vala:295 ui/collection.ui:190 +msgid "Publish" +msgstr "发布" + +#: plugins/shotwell-publishing/PiwigoPublishing.vala:773 +#, fuzzy, c-format +#| msgid "Creating album %s..." +msgid "Creating album %s…" +msgstr "正在创建相册 %s…" + +#: plugins/shotwell-publishing/PiwigoPublishing.vala:946 +msgid "An error message occurred when publishing to Piwigo. Please try again." +msgstr "在发布至 Piwigo 时发生了错误,请重试。" + +#. %s is the host name that we tried to connect to +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1030 +#, c-format +msgid "" +"This does not look like the real %s. Attackers might be trying to " +"steal or alter information going to or from this site (for example, private " +"messages, credit card information, or passwords)." +msgstr "" + +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1048 +#, c-format +msgid "Certificate of %s" +msgstr "%s 的证书" + +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1051 +#: src/Resources.vala:166 +msgid "_OK" +msgstr "确定(_O)" + +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1079 +msgid "" +"Enter the URL of your Piwigo photo library as well as the username and " +"password associated with your Piwigo account for that library." +msgstr "输入您 Piwigo 照片库的 URL 以及对应 Piwigo 照片库相关的用户名和密码。" + +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1080 +msgid "" +"Shotwell cannot contact your Piwigo photo library. Please verify the URL you " +"entered" +msgstr "Shotwell 无法连接至您的 Piwigo 照片库。请检查您输入的 URL。" + +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1112 +msgid "Invalid URL" +msgstr "无效的 URL" + +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1291 +msgid "Admins, Family, Friends, Contacts" +msgstr "管理员,家人,朋友,联系人" + +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1292 +msgid "Admins, Family, Friends" +msgstr "管理员,家人,朋友" + +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1293 +msgid "Admins, Family" +msgstr "管理员,家人" + +#: plugins/shotwell-publishing/PiwigoPublishing.vala:1294 +msgid "Admins" +msgstr "管理员" + +#: plugins/shotwell-publishing/piwigo_ssl_failure_pane.ui:21 +msgid "This connection is not secure" +msgstr "这个连接不安全" + +#: plugins/shotwell-publishing/piwigo_ssl_failure_pane.ui:75 +msgid "Show the certificate…" +msgstr "显示证书…" + +#: plugins/shotwell-publishing/piwigo_ssl_failure_pane.ui:88 +msgid "I understand, please _proceed." +msgstr "我已经了解,请继续。(_P)" + +#: plugins/shotwell-publishing/shotwell-publishing.vala:26 +msgid "Core Publishing Services" +msgstr "主要上传服务" + +#: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:55 +msgid "Video privacy _setting:" +msgstr "视频隐私设置(_S):" + +#: plugins/shotwell-publishing/YouTubePublishing.vala:58 +msgid "" +"You are not currently logged into YouTube.\n" +"\n" +"You must have already signed up for a Google account and set it up for use " +"with YouTube to continue. You can set up most accounts by using your browser " +"to log into the YouTube site at least once." +msgstr "" +"您尚未登录 YouTube。\n" +"\n" +"您必须已经注册了一个 Google 帐号并设置为使用 YouTube 才能继续。您可以通过浏览" +"器设置绝大多数帐号并至少登录 YouTube 一次。" -#. -#. Photos/Videos Not Imported for Other Reasons -#. -#: ../src/Dialogs.vala:643 -msgid "Photos/Videos Not Imported for Other Reasons:" -msgstr "因为其他原因而未被导入的照片/视频:" +#: plugins/shotwell-publishing/YouTubePublishing.vala:363 +#, fuzzy +#| msgid "" +#| "A file required for publishing is unavailable. Publishing to Youtube " +#| "can't continue." +msgid "" +"A file required for publishing is unavailable. Publishing to YouTube can’t " +"continue." +msgstr "一个发布所需要的文件不存在。无法继续发布至 YouTube。" -#: ../src/Dialogs.vala:663 +#: plugins/shotwell-publishing/YouTubePublishing.vala:462 #, c-format -msgid "1 duplicate photo was not imported:\n" -msgid_plural "%d duplicate photos were not imported:\n" -msgstr[0] "%d 个重复的照片没有导入:\n" +msgid "You are logged into YouTube as %s." +msgstr "您已经作为 %s 登录 YouTube。" + +#: plugins/shotwell-publishing/YouTubePublishing.vala:464 +#, fuzzy, c-format +#| msgid "Videos will appear in '%s'" +msgid "Videos will appear in “%s”" +msgstr "视频将出现在“%s”" + +#: plugins/shotwell-publishing/YouTubePublishing.vala:496 +msgid "Public listed" +msgstr "公开列出" + +#: plugins/shotwell-publishing/YouTubePublishing.vala:497 +msgid "Public unlisted" +msgstr "公开未列出" + +#: plugins/shotwell-transitions/BlindsEffect.vala:20 +msgid "Blinds" +msgstr "百叶窗" + +#: plugins/shotwell-transitions/ChessEffect.vala:20 +msgid "Chess" +msgstr "茄子" + +#: plugins/shotwell-transitions/CircleEffect.vala:20 +msgid "Circle" +msgstr "圈子" + +#: plugins/shotwell-transitions/CirclesEffect.vala:20 +msgid "Circles" +msgstr "圆圈" + +#: plugins/shotwell-transitions/ClockEffect.vala:20 +msgid "Clock" +msgstr "时钟" + +#: plugins/shotwell-transitions/CrumbleEffect.vala:20 +msgid "Crumble" +msgstr "碎片" + +#: plugins/shotwell-transitions/FadeEffect.vala:20 +msgid "Fade" +msgstr "渐出" + +#: plugins/shotwell-transitions/shotwell-transitions.vala:28 +msgid "Core Slideshow Transitions" +msgstr "主要幻灯片变换" + +#: plugins/shotwell-transitions/shotwell-transitions.vala:76 +#, fuzzy +#| msgid "Copyright 2010 Maxim Kartashev, Copyright 2011-2013 Yorba Foundation" +msgid "" +"Copyright 2010 Maxim Kartashev, Copyright 2016 Software Freedom Conservancy " +"Inc." +msgstr "" +"Copyright 2010 Maxim Kartashev, Copyright 2011-2013 Yorba Foundation, Yorba " +"基金会版权所有" + +#: plugins/shotwell-transitions/SlideEffect.vala:20 +msgid "Slide" +msgstr "幻灯片演示" + +#: plugins/shotwell-transitions/SquaresEffect.vala:20 +msgid "Squares" +msgstr "方格" + +#: plugins/shotwell-transitions/StripesEffect.vala:20 +msgid "Stripes" +msgstr "条纹" -#: ../src/Dialogs.vala:666 +#: src/AppDirs.vala:64 src/AppDirs.vala:115 #, c-format -msgid "1 duplicate video was not imported:\n" -msgid_plural "%d duplicate videos were not imported:\n" -msgstr[0] "%d 个重复的视频没有导入:\n" +msgid "Unable to create cache directory %s: %s" +msgstr "无法创建缓存目录 %s:%s" -#: ../src/Dialogs.vala:669 +#: src/AppDirs.vala:74 src/AppDirs.vala:104 #, c-format -msgid "1 duplicate photo/video was not imported:\n" -msgid_plural "%d duplicate photos/videos were not imported:\n" -msgstr[0] "%d 个重复的照片/视频没有导入:\n" +msgid "Unable to create data directory %s: %s" +msgstr "无法创建数据文件夹 %s:%s" + +#. If XDG yarfed, use ~/Pictures +#: src/AppDirs.vala:168 +msgid "Pictures" +msgstr "图片" -#: ../src/Dialogs.vala:683 +#: src/AppDirs.vala:206 #, c-format -msgid "1 photo failed to import due to a file or hardware error:\n" -msgid_plural "%d photos failed to import due to a file or hardware error:\n" -msgstr[0] "%d 个照片由于文件或硬件错误导入失败:\n" +msgid "Unable to create temporary directory %s: %s" +msgstr "无法创建临时文件夹 %s:%s" -#: ../src/Dialogs.vala:686 +#: src/AppDirs.vala:223 src/AppDirs.vala:254 #, c-format -msgid "1 video failed to import due to a file or hardware error:\n" -msgid_plural "%d videos failed to import due to a file or hardware error:\n" -msgstr[0] "%d 个视频由于文件或硬件错误导入失败:\n" +msgid "Unable to create data subdirectory %s: %s" +msgstr "无法创建数据子文件夹 %s:%s" -#: ../src/Dialogs.vala:689 +#: src/AppDirs.vala:236 #, c-format -msgid "1 photo/video failed to import due to a file or hardware error:\n" -msgid_plural "" -"%d photos/videos failed to import due to a file or hardware error:\n" -msgstr[0] "%d 个照片/视频由于文件或硬件错误导入失败:\n" +msgid "Could not make directory %s writable" +msgstr "无法将 %s 目录设为可写状态" -#: ../src/Dialogs.vala:692 +#: src/AppDirs.vala:239 +#, fuzzy, c-format +#| msgid "Unable to create cache directory %s: %s" +msgid "Could not make directory %s writable: %s" +msgstr "无法创建缓存目录 %s:%s" + +#: src/AppWindow.vala:47 +msgid "Pin Toolbar" +msgstr "固定工具栏" + +#: src/AppWindow.vala:48 +msgid "Pin the toolbar open" +msgstr "将工具栏固定为打开" + +#: src/AppWindow.vala:53 +msgid "Leave fullscreen" +msgstr "退出全屏" + +#: src/AppWindow.vala:532 src/AppWindow.vala:553 src/AppWindow.vala:570 +#: src/data_imports/DataImportsUI.vala:301 +#: src/data_imports/DataImportsUI.vala:419 src/Dialogs.vala:20 +#: src/Dialogs.vala:28 src/Dialogs.vala:1420 src/Dialogs.vala:1443 +#: src/publishing/PublishingUI.vala:301 src/publishing/PublishingUI.vala:525 +#: src/Resources.vala:157 +msgid "_Cancel" +msgstr "取消(_C)" + +#: src/AppWindow.vala:580 +#, fuzzy, c-format +#| msgid "" +#| "A fatal error occurred when accessing Shotwell's library. Shotwell " +#| "cannot continue.\n" +#| "\n" +#| "%s" +msgid "" +"A fatal error occurred when accessing Shotwell’s library. Shotwell cannot " +"continue.\n" +"\n" +"%s" +msgstr "" +"访问 Shotwell 媒体库时出现致命错误。Shotwell 无法继续。\n" +"\n" +"%s" + +#: src/AppWindow.vala:600 +#, fuzzy +#| msgid "Visit the Yorba web site" +msgid "Visit the Shotwell web site" +msgstr "访问 Yorba 网站" + +#: src/AppWindow.vala:612 #, c-format -msgid "1 file failed to import due to a file or hardware error:\n" -msgid_plural "%d files failed to import due to a file or hardware error:\n" -msgstr[0] "%d 文件导入失败由于文件或硬件错误:\n" +msgid "Unable to display help: %s" +msgstr "无法显示帮助 %s" -#: ../src/Dialogs.vala:706 +#: src/AppWindow.vala:620 #, c-format -msgid "" -"1 photo failed to import because the photo library folder was not writable:\n" -msgid_plural "" -"%d photos failed to import because the photo library folder was not " -"writable:\n" -msgstr[0] "%d 个照片由于无法写入媒体库导入失败:\n" +msgid "Unable to navigate to bug database: %s" +msgstr "无法转向 Bug 数据库:%s" -#: ../src/Dialogs.vala:709 +#: src/AppWindow.vala:628 #, c-format -msgid "" -"1 video failed to import because the photo library folder was not writable:\n" -msgid_plural "" -"%d videos failed to import because the photo library folder was not " -"writable:\n" -msgstr[0] "%d 个视频由于无法写入媒体库导入失败:\n" +msgid "Unable to display FAQ: %s" +msgstr "无法显示常见问题 %s" + +#: src/BatchImport.vala:26 +msgid "Success" +msgstr "成功" + +#: src/BatchImport.vala:29 +msgid "File error" +msgstr "文件错误" + +#: src/BatchImport.vala:32 +msgid "Unable to decode file" +msgstr "无法解码文件" + +#: src/BatchImport.vala:35 +msgid "Database error" +msgstr "数据库错误" + +#: src/BatchImport.vala:38 +msgid "User aborted import" +msgstr "用户中止导入" + +#: src/BatchImport.vala:41 +msgid "Not a file" +msgstr "不是一个文件" -#: ../src/Dialogs.vala:712 +#: src/BatchImport.vala:44 +msgid "File already exists in database" +msgstr "文件已存在于数据库中" + +#: src/BatchImport.vala:47 +msgid "Unsupported file format" +msgstr "不支持的文件格式" + +#: src/BatchImport.vala:50 +msgid "Not an image file" +msgstr "不是照片文件" + +#: src/BatchImport.vala:53 +msgid "Disk failure" +msgstr "磁盘错误" + +#: src/BatchImport.vala:56 +msgid "Disk full" +msgstr "磁盘已满" + +#: src/BatchImport.vala:59 +msgid "Camera error" +msgstr "相机错误" + +#: src/BatchImport.vala:62 +msgid "File write error" +msgstr "文件写入错误" + +#: src/BatchImport.vala:65 +msgid "Corrupt image file" +msgstr "损坏的图片" + +#: src/BatchImport.vala:68 #, c-format +msgid "Imported failed (%d)" +msgstr "导入失败(%d)" + +#: src/camera/Branch.vala:85 +msgid "Cameras" +msgstr "相机" + +#: src/camera/Branch.vala:99 src/camera/ImportPage.vala:710 +#: src/camera/ImportPage.vala:726 src/photos/RawSupport.vala:303 +#: ui/collection.ui:90 ui/event.ui:359 ui/event.ui:527 ui/media.ui:359 +#: ui/photo_context.ui:96 ui/photo.ui:349 ui/tags.ui:359 +msgid "Camera" +msgstr "相机" + +#: src/camera/ImportPage.vala:311 src/Properties.vala:230 +msgid "RAW+JPEG" +msgstr "RAW+JPEG" + +#: src/camera/ImportPage.vala:458 +#, fuzzy +#| msgid "" +#| "Unable to unmount camera. Try unmounting the camera from the file " +#| "manager." msgid "" -"1 photo/video failed to import because the photo library folder was not " -"writable:\n" -msgid_plural "" -"%d photos/videos failed to import because the photo library folder was not " -"writable:\n" -msgstr[0] "%d 个照片/视频由于无法写入媒体库导入失败:\n" +"Unable to unmount camera. Try unmounting the camera from the file manager." +msgstr "不能卸载相机。请尝试从文件管理器中卸载相机。" + +#. hide duplicates checkbox +#: src/camera/ImportPage.vala:775 +msgid "Hide photos already imported" +msgstr "隐藏已经导入的照片" + +#: src/camera/ImportPage.vala:776 +msgid "Only display photos that have not been imported" +msgstr "只显示尚未导入的照片" + +#: src/camera/ImportPage.vala:815 ui/import.ui:17 ui/import.ui:214 +msgid "Import _All" +msgstr "导入全部(_A)" + +#: src/camera/ImportPage.vala:825 ui/import.ui:13 ui/import.ui:210 +msgid "Import _Selected" +msgstr "导入选中项目(_S)" + +#: src/camera/ImportPage.vala:849 +msgid "The camera seems to be empty. No photos/videos found to import" +msgstr "照相机好像是空的。没有找到可以导入的照片或视频" + +#: src/camera/ImportPage.vala:853 +#, fuzzy +#| msgid "No photos/videos found" +msgid "No new photos/videos found on camera" +msgstr "没有找到照片或视频" + +#. it's mounted, offer to unmount for the user +#: src/camera/ImportPage.vala:1006 +#, fuzzy +#| msgid "" +#| "Shotwell needs to unmount the camera from the filesystem in order to " +#| "access it. Continue?" +msgid "" +"Shotwell needs to unmount the camera from the filesystem in order to access " +"it. Continue?" +msgstr "Shotwell 需要从文件系统卸载相机来访问它。是否继续?" -#: ../src/Dialogs.vala:715 +#: src/camera/ImportPage.vala:1012 +msgid "_Unmount" +msgstr "卸载(_U)" + +#: src/camera/ImportPage.vala:1017 +msgid "Please unmount the camera." +msgstr "请卸载相机。" + +#: src/camera/ImportPage.vala:1022 +#, fuzzy +#| msgid "" +#| "The camera is locked by another application. Shotwell can only access " +#| "the camera when it's unlocked. Please close any other application using " +#| "the camera and try again." +msgid "" +"The camera is locked by another application. Shotwell can only access the " +"camera when it’s unlocked. Please close any other application using the " +"camera and try again." +msgstr "" +"该相机被其他程序锁定,仅在解锁后 Shotwell 才能访问。请关闭其他使用该相机的程" +"序后重试。" + +#: src/camera/ImportPage.vala:1032 +msgid "Please close any other application using the camera." +msgstr "请关闭其他使用该相机的程序。" + +#: src/camera/ImportPage.vala:1037 #, c-format msgid "" -"1 file failed to import because the photo library folder was not writable:\n" -msgid_plural "" -"%d files failed to import because the photo library folder was not " -"writable:\n" -msgstr[0] "%d 文件导入失败因为照片库文件夹不可写入:\n" +"Unable to fetch previews from the camera:\n" +"%s" +msgstr "" +"无法从相机获取预览:\n" +"%s" + +#: src/camera/ImportPage.vala:1054 +#, fuzzy +#| msgid "Unmounting..." +msgid "Unmounting…" +msgstr "卸载..." + +#: src/camera/ImportPage.vala:1145 +#, fuzzy +#| msgid "Starting import, please wait..." +msgid "Starting import, please wait…" +msgstr "正在开始导入,请稍候..." + +#: src/camera/ImportPage.vala:1162 +msgid "Fetching photo information" +msgstr "获取照片信息" -#: ../src/Dialogs.vala:729 +#: src/camera/ImportPage.vala:1520 #, c-format -msgid "1 photo failed to import due to a camera error:\n" -msgid_plural "%d photos failed to import due to a camera error:\n" -msgstr[0] "%d 个照片由于相机错误导入失败:\n" +msgid "Fetching preview for %s" +msgstr "获取 %s 的预览" -#: ../src/Dialogs.vala:732 +#: src/camera/ImportPage.vala:1636 #, c-format -msgid "1 video failed to import due to a camera error:\n" -msgid_plural "%d videos failed to import due to a camera error:\n" -msgstr[0] "%d 个视频由于相机错误导入失败:\n" +msgid "Unable to lock camera: %s" +msgstr "无法锁定相机:%s" -#: ../src/Dialogs.vala:735 +#: src/camera/ImportPage.vala:1721 #, c-format -msgid "1 photo/video failed to import due to a camera error:\n" -msgid_plural "%d photos/videos failed to import due to a camera error:\n" -msgstr[0] "%d 个照片/视频由于相机错误导入失败:\n" +msgid "Delete this photo from camera?" +msgid_plural "Delete these %d photos from camera?" +msgstr[0] "从相机删除 %d 张照片?" -#: ../src/Dialogs.vala:738 +#: src/camera/ImportPage.vala:1724 #, c-format -msgid "1 file failed to import due to a camera error:\n" -msgid_plural "%d files failed to import due to a camera error:\n" -msgstr[0] "%d 文件导入失败由于相机错误:\n" +msgid "Delete this video from camera?" +msgid_plural "Delete these %d videos from camera?" +msgstr[0] "从相机删除这 %d 个视频?" -#: ../src/Dialogs.vala:752 +#: src/camera/ImportPage.vala:1727 #, c-format -msgid "1 photo failed to import because it was corrupt:\n" -msgid_plural "%d photos failed to import because they were corrupt:\n" -msgstr[0] "%d 个照片由于文件损坏导入失败:\n" +msgid "Delete this photo/video from camera?" +msgid_plural "Delete these %d photos/videos from camera?" +msgstr[0] "从相机删除 %d 个照片/视频?" -#: ../src/Dialogs.vala:755 +#: src/camera/ImportPage.vala:1730 #, c-format -msgid "1 video failed to import because it was corrupt:\n" -msgid_plural "%d videos failed to import because they were corrupt:\n" -msgstr[0] "%d 个视频由于文件损坏导入失败:\n" +msgid "Delete these files from camera?" +msgid_plural "Delete these %d files from camera?" +msgstr[0] "从相机删除 %d 个文件?" -#: ../src/Dialogs.vala:758 -#, c-format -msgid "1 photo/video failed to import because it was corrupt:\n" -msgid_plural "%d photos/videos failed to import because they were corrupt:\n" -msgstr[0] "%d 个照片/视频由于文件损坏导入失败:\n" +#: src/camera/ImportPage.vala:1738 src/Dialogs.vala:1387 +msgid "_Keep" +msgstr "保留(_K)" -#: ../src/Dialogs.vala:761 -#, c-format -msgid "1 file failed to import because it was corrupt:\n" -msgid_plural "%d files failed to import because it was corrupt:\n" -msgstr[0] "%d 文件由于损坏导入失败:\n" +#: src/camera/ImportPage.vala:1757 +msgid "Removing photos/videos from camera" +msgstr "正在从相机移除照片/视频" -#. we have no notion of "unsupported" video files right now in Shotwell (all -#. standard container formats are supported, it's just that the streams in them -#. might or might not be interpretable), so this message does not need to be -#. media specific -#: ../src/Dialogs.vala:778 +#: src/camera/ImportPage.vala:1761 #, c-format -msgid "1 unsupported photo skipped:\n" -msgid_plural "%d unsupported photos skipped:\n" -msgstr[0] "跳过 %d 个不支持的照片:\n" +msgid "Unable to delete %d photo/video from the camera due to errors." +msgid_plural "Unable to delete %d photos/videos from the camera due to errors." +msgstr[0] "由于错误无法从相机中删除 %d 个照片/视频。" -#. we have no notion of "non-video" video files right now in Shotwell, so this -#. message doesn't need to be media specific -#: ../src/Dialogs.vala:793 -#, c-format -msgid "1 non-image file skipped.\n" -msgid_plural "%d non-image files skipped.\n" -msgstr[0] "跳过 %d 个非照片文件。\n" +#: src/CollectionPage.vala:74 src/direct/DirectPhotoPage.vala:78 +#: src/PhotoPage.vala:2451 src/Resources.vala:170 +#, fuzzy +#| msgid "_Print..." +msgid "_Print" +msgstr "打印(_P)..." -#: ../src/Dialogs.vala:804 -#, c-format -msgid "1 photo skipped due to user cancel:\n" -msgid_plural "%d photos skipped due to user cancel:\n" -msgstr[0] "由于用户取消跳过 %d 个照片:\n" +#: src/CollectionPage.vala:77 src/Resources.vala:323 ui/collection.ui:126 +#: ui/direct_context.ui:25 ui/direct.ui:23 ui/event.ui:563 ui/photo.ui:28 +#, fuzzy +#| msgid "Send To" +msgid "Send _To…" +msgstr "发送至" -#: ../src/Dialogs.vala:807 -#, c-format -msgid "1 video skipped due to user cancel:\n" -msgid_plural "%d videos skipped due to user cancel:\n" -msgstr[0] "由于用户取消跳过 %d 个视频:\n" +#: src/CollectionPage.vala:78 src/direct/DirectPhotoPage.vala:83 +#: src/PhotoPage.vala:2461 src/Resources.vala:220 +msgid "Set as _Desktop Background" +msgstr "设置为桌面背景(_D)" -#: ../src/Dialogs.vala:810 -#, c-format -msgid "1 photo/video skipped due to user cancel:\n" -msgid_plural "%d photos/videos skipped due to user cancel:\n" -msgstr[0] "由于用户取消跳过 %d 个照片/视频:\n" +#: src/CollectionPage.vala:86 src/Resources.vala:286 +msgid "_Duplicate" +msgstr "副本(_D)" -#: ../src/Dialogs.vala:813 -#, c-format -msgid "1 file skipped due to user cancel:\n" -msgid_plural "%d file skipped due to user cancel:\n" -msgstr[0] "%d 文件被跳过由于用户取消:\n" +#: src/CollectionPage.vala:94 +#, fuzzy +#| msgid "Fulls_creen" +msgid "Fullscreen" +msgstr "全屏(_C)" -#: ../src/Dialogs.vala:827 -#, c-format -msgid "1 photo successfully imported.\n" -msgid_plural "%d photos successfully imported.\n" -msgstr[0] "%d 个照片成功导入。\n" +#: src/CollectionPage.vala:96 ui/photo.ui:180 +msgid "S_lideshow" +msgstr "幻灯片演示(_L)" -#: ../src/Dialogs.vala:830 -#, c-format -msgid "1 video successfully imported.\n" -msgid_plural "%d videos successfully imported.\n" -msgstr[0] "%d 个视频成功导入。\n" +#: src/CollectionPage.vala:104 src/Resources.vala:139 ui/direct.ui:111 +#: ui/photo.ui:200 +msgid "Rotate _Right" +msgstr "向右旋转(_R)" -#: ../src/Dialogs.vala:833 -#, c-format -msgid "1 photo/video successfully imported.\n" -msgid_plural "%d photos/videos successfully imported.\n" -msgstr[0] "%d 个照片/视频成功导入。\n" +#: src/CollectionPage.vala:107 src/Resources.vala:144 ui/direct.ui:116 +#: ui/photo.ui:205 +msgid "Rotate _Left" +msgstr "向左旋转(_L)" -#. if no media items were imported at all (i.e. an empty directory attempted), need to at least -#. report that nothing was imported -#: ../src/Dialogs.vala:849 -msgid "No photos or videos imported.\n" -msgstr "没有导入照片或视频。\n" +#: src/CollectionPage.vala:110 src/Resources.vala:149 ui/direct.ui:121 +#: ui/photo.ui:210 +msgid "Flip Hori_zontally" +msgstr "水平翻转(_Z)" -#: ../src/Dialogs.vala:856 ../src/Dialogs.vala:875 -msgid "Import Complete" -msgstr "导入完成" +#: src/CollectionPage.vala:111 src/Resources.vala:152 ui/direct.ui:125 +#: ui/photo.ui:214 +msgid "Flip Verti_cally" +msgstr "竖直翻转(_C)" -#: ../src/Dialogs.vala:1103 -#, c-format -msgid "%d second" -msgid_plural "%d seconds" -msgstr[0] "%d 秒" +#: src/CollectionPage.vala:113 src/Resources.vala:186 ui/collection.ui:8 +#: ui/direct_context.ui:9 ui/direct.ui:134 ui/event.ui:445 +#: ui/photo_context.ui:6 ui/photo.ui:223 +msgid "_Enhance" +msgstr "增强(_E)" -#: ../src/Dialogs.vala:1106 -#, c-format -msgid "%d minute" -msgid_plural "%d minutes" -msgstr[0] "%d 分钟" +#: src/CollectionPage.vala:114 src/Resources.vala:214 ui/collection.ui:13 +#: ui/direct_context.ui:14 ui/direct.ui:161 ui/event.ui:450 +#: ui/photo_context.ui:11 ui/photo.ui:250 +msgid "Re_vert to Original" +msgstr "恢复到原始(_V)" -#: ../src/Dialogs.vala:1110 -#, c-format -msgid "%d hour" -msgid_plural "%d hours" -msgstr[0] "%d 小时" +#: src/CollectionPage.vala:116 src/Resources.vala:190 ui/photo.ui:256 +msgid "_Copy Color Adjustments" +msgstr "复制颜色调整(_C)" -#: ../src/Dialogs.vala:1113 -msgid "1 day" -msgstr "1 天" +#: src/CollectionPage.vala:119 src/Resources.vala:194 ui/photo.ui:261 +msgid "_Paste Color Adjustments" +msgstr "粘贴颜色调整(_P)" -#: ../src/Dialogs.vala:1263 ../src/Resources.vala:205 -msgid "Rename Event" -msgstr "重命名事件" +#: src/CollectionPage.vala:129 +#, fuzzy +#| msgid "Adjust Date and Time" +msgid "Adjust Date and Time…" +msgstr "修改日期和时间" -#: ../src/Dialogs.vala:1263 -msgid "Name:" -msgstr "名称:" +#: src/CollectionPage.vala:137 src/Resources.vala:319 +msgid "Open With E_xternal Editor" +msgstr "用外部编辑器打开(_X)" -#: ../src/Dialogs.vala:1273 ../src/Resources.vala:274 -msgid "Edit Title" -msgstr "编辑标题" +#: src/CollectionPage.vala:140 src/Resources.vala:321 ui/collection.ui:111 +#: ui/event.ui:548 ui/photo_context.ui:118 ui/photo.ui:363 +msgid "Open With RA_W Editor" +msgstr "用 RA_W 编辑器打开" -#: ../src/Dialogs.vala:1273 ../src/Properties.vala:340 -msgid "Title:" -msgstr "标题:" +#: src/CollectionPage.vala:143 src/Resources.vala:167 +msgid "_Play" +msgstr "播放(_P)" -#: ../src/Dialogs.vala:1287 ../src/Resources.vala:280 -msgid "Edit Event Comment" -msgstr "修改事件备注" +#: src/CollectionPage.vala:402 +msgid "Export Photo/Video" +msgstr "导出照片/视频" -#: ../src/Dialogs.vala:1287 -msgid "Edit Photo/Video Comment" -msgstr "修改照片/视频备注" +#: src/CollectionPage.vala:402 +msgid "Export Photos/Videos" +msgstr "导出照片/视频" -#: ../src/Dialogs.vala:1288 ../src/Properties.vala:630 -msgid "Comment:" -msgstr "备注:" +#: src/CollectionPage.vala:404 src/Dialogs.vala:59 src/PhotoPage.vala:2977 +msgid "Export Photo" +msgstr "导出照片" -#: ../src/Dialogs.vala:1304 -msgid "_Trash File" -msgid_plural "_Trash Files" -msgstr[0] "移至垃圾箱(_T)" +#: src/CollectionPage.vala:404 src/Dialogs.vala:84 +msgid "Export Photos" +msgstr "导出照片" -#: ../src/Dialogs.vala:1308 -msgid "Only _Remove" -msgstr "只移除(_R)" +#: src/CollectionPage.vala:491 src/CollectionPage.vala:507 +msgid "Rotating" +msgstr "正在旋转" -#: ../src/Dialogs.vala:1328 ../src/camera/ImportPage.vala:1739 -msgid "_Keep" -msgstr "保留(_K)" +#: src/CollectionPage.vala:491 src/CollectionPage.vala:507 +msgid "Undoing Rotate" +msgstr "正在取消旋转" -#: ../src/Dialogs.vala:1351 -msgid "Revert External Edit?" -msgstr "恢复额外修改?" +#: src/CollectionPage.vala:516 +msgid "Flipping Horizontally" +msgstr "正在水平翻转" -#: ../src/Dialogs.vala:1351 -msgid "Revert External Edits?" -msgstr "恢复额外修改?" +#: src/CollectionPage.vala:517 +msgid "Undoing Flip Horizontally" +msgstr "正在取消水平翻转" -#: ../src/Dialogs.vala:1353 -#, c-format -msgid "This will destroy all changes made to the external file. Continue?" -msgid_plural "" -"This will destroy all changes made to %d external files. Continue?" -msgstr[0] "这将毁掉对于 %d 个外部文件所做的全部修改。继续?" +#: src/CollectionPage.vala:526 +msgid "Flipping Vertically" +msgstr "正在垂直翻转" -#: ../src/Dialogs.vala:1357 -msgid "Re_vert External Edit" -msgstr "恢复额外修改(_V)" +#: src/CollectionPage.vala:527 +msgid "Undoing Flip Vertically" +msgstr "正在取消垂直翻转" -#: ../src/Dialogs.vala:1357 -msgid "Re_vert External Edits" -msgstr "恢复额外修改(_V)" +#: src/Commands.vala:737 +msgid "Reverting" +msgstr "正在还原" + +#: src/Commands.vala:737 +msgid "Undoing Revert" +msgstr "正在取消还原" + +#: src/Commands.vala:781 +msgid "Enhancing" +msgstr "正在增强" + +#: src/Commands.vala:781 +msgid "Undoing Enhance" +msgstr "正在取消增强" + +#: src/Commands.vala:857 +msgid "Applying Color Transformations" +msgstr "应用颜色变换" + +#: src/Commands.vala:857 +msgid "Undoing Color Transformations" +msgstr "撤销颜色变换" + +#: src/Commands.vala:1007 +msgid "Creating New Event" +msgstr "正在创建新的事件" + +#: src/Commands.vala:1008 +msgid "Removing Event" +msgstr "正在移除事件" + +#: src/Commands.vala:1017 +msgid "Moving Photos to New Event" +msgstr "正在移动照片到新事件" + +#: src/Commands.vala:1018 +msgid "Setting Photos to Previous Event" +msgstr "正在设置照片至先前的事件" + +#: src/Commands.vala:1075 +msgid "Merging" +msgstr "正在合并" + +#: src/Commands.vala:1076 +msgid "Unmerging" +msgstr "正在取消合并" + +#: src/Commands.vala:1085 +msgid "Duplicating photos" +msgstr "正在创建照片副本" + +#: src/Commands.vala:1085 +msgid "Removing duplicated photos" +msgstr "正在移除照片副本" -#: ../src/Dialogs.vala:1378 +#: src/Commands.vala:1108 #, c-format -msgid "This will remove the photo from the library. Continue?" -msgid_plural "This will remove %d photos from the library. Continue?" -msgstr[0] "这将从媒体库中移除 %d 张照片中。继续么?" +msgid "Unable to duplicate one photo due to a file error" +msgid_plural "Unable to duplicate %d photos due to file errors" +msgstr[0] "由于文件错误无法创建 %d 照片副本" -#: ../src/Dialogs.vala:1385 -msgid "_Remove" -msgstr "移除(_R)" +#: src/Commands.vala:1195 +msgid "Restoring previous rating" +msgstr "恢复先前评分" -#: ../src/Dialogs.vala:1386 -msgid "Remove Photo From Library" -msgstr "从照片库移除照片" +#: src/Commands.vala:1205 src/Commands.vala:1206 +msgid "Increasing ratings" +msgstr "提高评分" -#: ../src/Dialogs.vala:1386 -msgid "Remove Photos From Library" -msgstr "从照片库移除照片" +#: src/Commands.vala:1205 src/Commands.vala:1206 +msgid "Decreasing ratings" +msgstr "降低评分" + +#: src/Commands.vala:1256 +msgid "Setting RAW developer" +msgstr "设置 RAW 开发者" + +#: src/Commands.vala:1256 +msgid "Restoring previous RAW developer" +msgstr "恢复原先的 RAW 开发者" + +#: src/Commands.vala:1257 +msgid "Set Developer" +msgstr "设置开发人员" + +#: src/Commands.vala:1347 +msgid "Original photo could not be adjusted." +msgstr "无法修改原始照片。" -#: ../src/Dialogs.vala:1479 -#, c-format -msgid "%d%%" -msgstr "%d%%" +#: src/Commands.vala:1368 +msgid "Adjusting Date and Time" +msgstr "正在调整日期和时间" -#: ../src/Dialogs.vala:1626 -msgid "AM" -msgstr "上午" +#: src/Commands.vala:1368 +msgid "Undoing Date and Time Adjustment" +msgstr "正在取消日期和时间调整" -#: ../src/Dialogs.vala:1627 -msgid "PM" -msgstr "下午" +#: src/Commands.vala:1399 +msgid "One original photo could not be adjusted." +msgid_plural "The following original photos could not be adjusted." +msgstr[0] "无法修改下列原始照片。" -#: ../src/Dialogs.vala:1628 -msgid "24 Hr" -msgstr "24 小时" +#: src/Commands.vala:1401 src/Commands.vala:1425 +msgid "Time Adjustment Error" +msgstr "时间调整出错" -#: ../src/Dialogs.vala:1643 -msgid "_Shift photos/videos by the same amount" -msgstr "按照同样大小调整照片/视频(_S)" +#: src/Commands.vala:1423 +msgid "Time adjustments could not be undone on the following photo file." +msgid_plural "" +"Time adjustments could not be undone on the following photo files." +msgstr[0] "时间修改无法在以下照片上取消。" -#: ../src/Dialogs.vala:1648 -msgid "Set _all photos/videos to this time" -msgstr "设置所有照片/视频到这个时间(_A)" +#: src/Commands.vala:1637 src/Commands.vala:1660 +msgid "Create Tag" +msgstr "创建标签" -#: ../src/Dialogs.vala:1655 -msgid "_Modify original photo file" -msgstr "修改原始照片文件(_M)" +#: src/Commands.vala:1695 +#, fuzzy, c-format +#| msgid "Move Tag \"%s\"" +msgid "Move Tag “%s”" +msgstr "移动标签 %s" -#: ../src/Dialogs.vala:1655 -msgid "_Modify original photo files" -msgstr "修改原始照片文件(_M)" +#: src/Commands.vala:2347 +msgid "Move Photos to Trash" +msgstr "移动照片至回收站" -#: ../src/Dialogs.vala:1658 -msgid "_Modify original file" -msgstr "修改原始文件(_M)" +#: src/Commands.vala:2347 +msgid "Restore Photos from Trash" +msgstr "从回收站还原照片" -#: ../src/Dialogs.vala:1658 -msgid "_Modify original files" -msgstr "修改原始文件(_M)" +#: src/Commands.vala:2348 +msgid "Move the photos to the Shotwell trash" +msgstr "将照片移至 Shotwell 回收站" -#: ../src/Dialogs.vala:1744 -msgid "Original: " -msgstr "原始:" +#: src/Commands.vala:2348 +msgid "Restore the photos back to the Shotwell library" +msgstr "恢复这些照片到 Shotwell 媒体库" -#: ../src/Dialogs.vala:1745 -msgid "%m/%d/%Y, %H:%M:%S" -msgstr "%Y/%m/%d %H:%M:%S" +#: src/Commands.vala:2367 +msgid "Moving Photos to Trash" +msgstr "正在将照片移动到回收站" -#: ../src/Dialogs.vala:1746 -msgid "%m/%d/%Y, %I:%M:%S %p" -msgstr "%Y/%m/%d %p%I:%M:%S" +#: src/Commands.vala:2367 +msgid "Restoring Photos From Trash" +msgstr "正在从回收站还原照片" -#: ../src/Dialogs.vala:1835 -#, c-format -msgid "" -"Exposure time will be shifted forward by\n" -"%d %s, %d %s, %d %s, and %d %s." -msgstr "" -"曝光时间将会向较早时改变 \n" -"%d %s、%d %s、%d %s 和 %d %s。" +#: src/Commands.vala:2453 +msgid "Flag selected photos" +msgstr "标注选定照片" -#: ../src/Dialogs.vala:1836 -#, c-format -msgid "" -"Exposure time will be shifted backward by\n" -"%d %s, %d %s, %d %s, and %d %s." -msgstr "" -"曝光时间将会向较晚时改变 \n" -"%d %s、%d %s、%d %s 和 %d %s。" +#: src/Commands.vala:2454 +msgid "Unflag selected photos" +msgstr "取消标注选定照片" -#: ../src/Dialogs.vala:1838 -msgid "day" -msgid_plural "days" -msgstr[0] "日" +#: src/Commands.vala:2455 +msgid "Flagging selected photos" +msgstr "正在标注选定照片" -#: ../src/Dialogs.vala:1839 -msgid "hour" -msgid_plural "hours" -msgstr[0] "小时" +#: src/Commands.vala:2456 +msgid "Unflagging selected photos" +msgstr "正在取消标注选定照片" -#: ../src/Dialogs.vala:1840 -msgid "minute" -msgid_plural "minutes" -msgstr[0] "分钟" +#: src/Commands.vala:2463 +msgid "Flag" +msgstr "标注" -#: ../src/Dialogs.vala:1841 -msgid "second" -msgid_plural "seconds" -msgstr[0] "秒" +#: src/Commands.vala:2463 +msgid "Unflag" +msgstr "取消标注" -#: ../src/Dialogs.vala:1885 +#. Send an empty job to the queue to mark the end of the import +#: src/data_imports/DataImportsPluginHost.vala:65 +#: src/data_imports/DataImportsPluginHost.vala:78 #, c-format +msgid "%s Database" +msgstr "%s 数据库" + +#: src/data_imports/DataImportsPluginHost.vala:148 +#: src/data_imports/DataImportsPluginHost.vala:294 +#, fuzzy, c-format +#| msgid "Importing from %s can't continue because an error occurred:" +msgid "Importing from %s can’t continue because an error occurred:" +msgstr "发生错误,无法继续导入 %s:" + +#: src/data_imports/DataImportsPluginHost.vala:151 +msgid "To try importing from another service, select one from the above menu." +msgstr "要尝试从其他服务导入,请从上面的菜单中选择一个。" + +#: src/data_imports/DataImportsUI.vala:10 msgid "" +"You do not have any data imports plugins enabled.\n" "\n" +"In order to use the Import From Application functionality, you need to have " +"at least one data imports plugin enabled. Plugins can be enabled in the " +"Preferences dialog." +msgstr "" +"您没有启用任何数据导入插件。\n" "\n" -"And %d other." -msgid_plural "" -"\n" -"\n" -"And %d others." -msgstr[0] "" -"\n" -"\n" -"和另外 %d 个。" - -#: ../src/Dialogs.vala:1907 ../src/Dialogs.vala:1934 -msgid "Tags (separated by commas):" -msgstr "标签(由逗号分割):" +"要使用从应用程序导入数据的功能,您需要至少启用一个数据导入插件。您可在首选想" +"对话框中启用插件。" -#: ../src/Dialogs.vala:2014 -msgid "Welcome!" -msgstr "欢迎!" +#: src/data_imports/DataImportsUI.vala:100 +msgid "Database file:" +msgstr "数据库文件:" -#: ../src/Dialogs.vala:2021 -msgid "Welcome to Shotwell!" -msgstr "欢迎使用 Shotwell !" +#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:773 +msgid "_Import" +msgstr "导入(_I)" -#: ../src/Dialogs.vala:2025 -msgid "To get started, import photos in any of these ways:" -msgstr "要开始使用,请用以下任意一种方式导入照片:" +#: src/data_imports/DataImportsUI.vala:220 +msgid "Import From Application" +msgstr "从应用程序导入" -#: ../src/Dialogs.vala:2044 -#, c-format -msgid "Choose File %s Import From Folder" -msgstr "选择 文件 %s 从文件夹导入" +#: src/data_imports/DataImportsUI.vala:221 +msgid "Import media _from:" +msgstr "从以下位置导入媒体(_F):" -#: ../src/Dialogs.vala:2045 -msgid "Drag and drop photos onto the Shotwell window" -msgstr "拖放照片到 Shotwell 窗口中" +#: src/data_imports/DataImportsUI.vala:414 src/publishing/PublishingUI.vala:520 +msgid "_Close" +msgstr "关闭(_C)" -#: ../src/Dialogs.vala:2046 -msgid "Connect a camera to your computer and import" -msgstr "链接相机到电脑上并导入" +#: src/data_imports/DataImports.vala:22 +msgid "Data Imports" +msgstr "数据导入" -#: ../src/Dialogs.vala:2056 +#: src/db/DatabaseTable.vala:37 #, c-format -msgid "_Import photos from your %s folder" -msgstr "从您的 %s 文件夹导入照片(_I)" - -#: ../src/Dialogs.vala:2063 -msgid "You can also import photos in any of these ways:" -msgstr "您可以使用以下任意方式导入照片:" +msgid "Unable to open/create photo database %s: error code %d" +msgstr "无法打开/创建照片数据库 %s:错误代码 %d" -#: ../src/Dialogs.vala:2073 -msgid "_Don't show this message again" -msgstr "不再显示该消息(_D)" +#: src/db/DatabaseTable.vala:46 +#, c-format +msgid "" +"Unable to write to photo database file:\n" +" %s" +msgstr "" +"无法写入照片数据库文件:\n" +"%s" -#: ../src/Dialogs.vala:2108 +#: src/db/DatabaseTable.vala:48 #, c-format -msgid "Import photos from your %s library" -msgstr "从您的 %s 照片库导入照片" +msgid "" +"Error accessing database file:\n" +" %s\n" +"\n" +"Error was: \n" +"%s" +msgstr "" +"访问数据库文件错误:\n" +"%s\n" +"\n" +"错误是:\n" +"%s" -#. We're installed system-wide, so use the system help. -#. We're being run from the build directory; we'll have to handle clicks to this -#. link manually ourselves, due to a limitation ghelp: URIs. -#: ../src/Dialogs.vala:2252 ../src/Dialogs.vala:2256 -msgid "(Help)" -msgstr "(帮助)" +#: src/db/DatabaseTable.vala:92 +#, fuzzy, c-format +#| msgid "" +#| "Unable to write to photo database file:\n" +#| " %s" +msgid "Unable to restore photo database %s" +msgstr "" +"无法写入照片数据库文件:\n" +"%s" -#: ../src/Dialogs.vala:2265 +#: src/DesktopIntegration.vala:121 #, c-format -msgid "Year%sMonth%sDay" -msgstr "年%s月%s日" +msgid "Unable to launch Nautilus Send-To: %s" +msgstr "无法启动 Nautilus 文件管理器的发送至:%s" + +#: src/DesktopIntegration.vala:129 +msgid "Send To" +msgstr "发送至" -#: ../src/Dialogs.vala:2267 +#: src/DesktopIntegration.vala:174 #, c-format -msgid "Year%sMonth" -msgstr "年%s月" +msgid "Unable to export background to %s: %s" +msgstr "不能输出为背景到 %s:%s" -#: ../src/Dialogs.vala:2269 +#: src/DesktopIntegration.vala:311 #, c-format -msgid "Year%sMonth-Day" -msgstr "年%s月-日" +msgid "Unable to prepare desktop slideshow: %s" +msgstr "无法准备桌面幻灯片:%s" -#: ../src/Dialogs.vala:2271 -msgid "Year-Month-Day" -msgstr "年-月-日" +#: src/Dialogs.vala:16 +#, fuzzy, c-format +#| msgid "This will remove the tag \"%s\" from one photo. Continue?" +#| msgid_plural "This will remove the tag \"%s\" from %d photos. Continue?" +msgid "This will remove the tag “%s” from one photo. Continue?" +msgid_plural "This will remove the tag “%s” from %d photos. Continue?" +msgstr[0] "这将移除标签 \"%s\" 从 %d 张照片中。继续么?" -#: ../src/Dialogs.vala:2272 ../src/editing_tools/EditingTools.vala:781 -msgid "Custom" -msgstr "自定义" +#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:1388 +#: src/Resources.vala:158 src/Resources.vala:361 src/Resources.vala:414 +#: src/Resources.vala:658 ui/savedsearch.ui:15 ui/tags.ui:458 ui/trash.ui:63 +#: ui/trash.ui:216 ui/trash.ui:258 +msgid "_Delete" +msgstr "删除(_D)" -#. Invalid pattern. -#: ../src/Dialogs.vala:2509 -msgid "Invalid pattern" -msgstr "无效的样式" +#: src/Dialogs.vala:25 +#, fuzzy, c-format +#| msgid "This will remove the saved search \"%s\". Continue?" +msgid "This will remove the saved search “%s”. Continue?" +msgstr "这将移除已保存搜索 %s。是否继续?" -#. This function is used to determine whether or not files should be copied or linked when imported. -#. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. -#: ../src/Dialogs.vala:2612 +#: src/Dialogs.vala:36 msgid "" -"Shotwell can copy the photos into your library folder or it can import them " -"without copying." -msgstr "Shotwell 可以复制照片到您的媒体库,或者可以导入但并不复制。" - -#: ../src/Dialogs.vala:2617 -msgid "Co_py Photos" -msgstr "复制照片(_P)" - -#: ../src/Dialogs.vala:2618 -msgid "_Import in Place" -msgstr "保留原位置导入(_I)" - -#: ../src/Dialogs.vala:2619 -msgid "Import to Library" -msgstr "导入到媒体库" - -#: ../src/Dialogs.vala:2629 ../src/PhotoPage.vala:3079 -msgid "Remove From Library" -msgstr "从媒体库移除" +"Switching developers will undo all changes you have made to this photo in " +"Shotwell" +msgid_plural "" +"Switching developers will undo all changes you have made to these photos in " +"Shotwell" +msgstr[0] "切换开发者将撤销您对于此照片所作的全部更改" -#: ../src/Dialogs.vala:2630 ../src/PhotoPage.vala:3079 -msgid "Removing Photo From Library" -msgstr "正在从媒体库移除照片" +#: src/Dialogs.vala:40 +msgid "_Switch Developer" +msgstr "切换开发者(_S)" -#: ../src/Dialogs.vala:2630 -msgid "Removing Photos From Library" -msgstr "从照片库移除照片" +#: src/Dialogs.vala:59 +msgid "Export Video" +msgstr "导出视频" -#: ../src/Dialogs.vala:2644 -#, c-format +#. Ticket #3023 +#. Attempt to replace the system error with something friendlier +#. if we can't copy an image over for editing in an external tool. +#. Did we fail because we can't write to this directory? +#. Yes - display an alternate error message here. +#: src/Dialogs.vala:112 +#, fuzzy, c-format +#| msgid "" +#| "Shotwell couldn't create a file for editing this photo because you do not " +#| "have permission to write to %s." msgid "" -"This will remove the photo/video from your Shotwell library. Would you also " -"like to move the file to your desktop trash?\n" -"\n" -"This action cannot be undone." -msgid_plural "" -"This will remove %d photos/videos from your Shotwell library. Would you " -"also like to move the files to your desktop trash?\n" -"\n" -"This action cannot be undone." -msgstr[0] "" -"将从 Shotwell 媒体库移除 %d 个照片/视频。你也想要从将这些文件移至桌面垃圾箱" -"么?\n" -"\n" -"该操作将不可撤销。" +"Shotwell couldn’t create a file for editing this photo because you do not " +"have permission to write to %s." +msgstr "Shotwell 无法为编辑此照片创建必需的文件,因为您没有写入 %s 的权限。" -#: ../src/Dialogs.vala:2648 -#, c-format +#: src/Dialogs.vala:121 msgid "" -"This will remove the video from your Shotwell library. Would you also like " -"to move the file to your desktop trash?\n" -"\n" -"This action cannot be undone." -msgid_plural "" -"This will remove %d videos from your Shotwell library. Would you also like " -"to move the files to your desktop trash?\n" +"Unable to export the following photo due to a file error.\n" "\n" -"This action cannot be undone." -msgstr[0] "" -"将从 Shotwell 媒体库移除 %d 个视频。你也想要从将这些文件移至桌面垃圾箱么?\n" +msgstr "" +"由于文件错误无法导出以下照片。\n" "\n" -"该操作将不可撤销。" -#: ../src/Dialogs.vala:2652 -#, c-format +#: src/Dialogs.vala:127 msgid "" -"This will remove the photo from your Shotwell library. Would you also like " -"to move the file to your desktop trash?\n" "\n" -"This action cannot be undone." -msgid_plural "" -"This will remove %d photos from your Shotwell library. Would you also like " -"to move the files to your desktop trash?\n" "\n" -"This action cannot be undone." -msgstr[0] "" -"将从 Shotwell 媒体库移除 %d 个照片。你也想要从将这些文件移至桌面垃圾箱么?\n" +"Would you like to continue exporting?" +msgstr "" "\n" -"该操作将不可撤销。" +"\n" +"您想要继续导出吗?" -#: ../src/Dialogs.vala:2684 -#, c-format -msgid "" -"The photo or video cannot be moved to your desktop trash. Delete this file?" -msgid_plural "" -"%d photos/videos cannot be moved to your desktop trash. Delete these files?" -msgstr[0] "%d 个照片/视频无法移动到您的桌面回收站。删除这些文件?" +#. "Unmodified" and "Current," though they appear in the "Format:" popup menu, really +#. aren't formats so much as they are operating modes that determine specific formats. +#. Hereafter we'll refer to these as "special formats." +#: src/Dialogs.vala:144 +msgid "Unmodified" +msgstr "未修改的" -#. Alert the user that the files were not removed. -#: ../src/Dialogs.vala:2701 -#, c-format -msgid "The photo or video cannot be deleted." -msgid_plural "%d photos/videos cannot be deleted." -msgstr[0] "%d 照片/视频无法被删除。" +#: src/Dialogs.vala:145 +msgid "Current" +msgstr "当前" -#: ../src/Dimensions.vala:20 -msgid "Width or height" -msgstr "宽度或者高度" +#. layout controls +#: src/Dialogs.vala:221 +msgid "_Format:" +msgstr "格式(_F):" -#: ../src/Dimensions.vala:23 -msgid "Width" -msgstr "宽度" +#: src/Dialogs.vala:224 +msgid "_Quality:" +msgstr "质量(_Q):" -#: ../src/Dimensions.vala:26 -msgid "Height" -msgstr "高度" +#: src/Dialogs.vala:227 +msgid "_Scaling constraint:" +msgstr "缩放限制(_S):" -#. verify this is a directory -#: ../src/DirectoryMonitor.vala:889 -#, c-format -msgid "Unable to monitor %s: Not a directory (%s)" -msgstr "无法监视 %s:不是一个目录(%s)" +#: src/Dialogs.vala:230 +msgid "_Pixels:" +msgstr " 像素(_P):" -#. if no name, pretty up the start time -#: ../src/Event.vala:737 -#, c-format -msgid "Event %s" -msgstr "事件 %s" +#: src/Dialogs.vala:234 +#, fuzzy +#| msgid "Export metadata" +msgid "Export _metadata:" +msgstr "导出元数据" -#: ../src/Exporter.vala:232 -#, c-format -msgid "Unable to generate a temporary file for %s: %s" -msgstr "无法为 %s 生成临时文件:%s" +#: src/Dialogs.vala:478 +#, fuzzy +#| msgid "Save Details" +msgid "Save Details…" +msgstr "保存详细信息..." -#: ../src/Exporter.vala:299 -msgid "Exporting" -msgstr "正在导出" +#: src/Dialogs.vala:479 +msgid "Save Details" +msgstr "保存详细信息..." -#: ../src/Exporter.vala:317 +#: src/Dialogs.vala:494 #, c-format -msgid "File %s already exists. Replace?" -msgstr "文件 %s 已存在。是否替换?" - -#: ../src/Exporter.vala:319 -msgid "_Skip" -msgstr "跳过(_S)" - -#: ../src/Exporter.vala:319 -msgid "_Replace" -msgstr "替换(_R)" - -#: ../src/Exporter.vala:319 -msgid "Replace _All" -msgstr "全部替换(_A)" +msgid "(and %d more)\n" +msgstr "(和另外 %d 个)\n" -#: ../src/Exporter.vala:319 -msgid "Export" -msgstr "导出" +#: src/Dialogs.vala:547 +msgid "Import Results Report" +msgstr "导入结果报告" -#: ../src/MediaMonitor.vala:400 +#: src/Dialogs.vala:551 #, c-format -msgid "Unable to process monitoring updates: %s" -msgstr "无法进行监控更新:%s" - -#: ../src/MediaPage.vala:143 -msgid "Adjust the size of the thumbnails" -msgstr "改变缩略图大小" +msgid "Attempted to import %d file." +msgid_plural "Attempted to import %d files." +msgstr[0] "尝试导入 %d 个文件。" -#: ../src/MediaPage.vala:325 ../src/PhotoPage.vala:2583 -#: ../src/direct/DirectPhotoPage.vala:174 -msgid "Zoom _In" -msgstr "放大(_I)" +#: src/Dialogs.vala:554 +#, c-format +msgid "Of these, %d file was successfully imported." +msgid_plural "Of these, %d files were successfully imported." +msgstr[0] "其中,%d 个文件被成功导入。" -#: ../src/MediaPage.vala:326 -msgid "Increase the magnification of the thumbnails" -msgstr "放大缩略图" +#. +#. Duplicates +#. +#: src/Dialogs.vala:566 +msgid "Duplicate Photos/Videos Not Imported:" +msgstr "以下重复的照片/视频没有被导入:" -#: ../src/MediaPage.vala:331 ../src/PhotoPage.vala:2589 -#: ../src/direct/DirectPhotoPage.vala:180 -msgid "Zoom _Out" -msgstr "缩小(_O)" +#: src/Dialogs.vala:570 +msgid "duplicates existing media item" +msgstr "创建现有媒体文件的副本" -#: ../src/MediaPage.vala:332 -msgid "Decrease the magnification of the thumbnails" -msgstr "缩小缩略图" +#. +#. Files Not Imported Due to Camera Errors +#. +#: src/Dialogs.vala:581 +msgid "Photos/Videos Not Imported Due to Camera Errors:" +msgstr "照片/视频因为相机错误而未被导入:" -#: ../src/MediaPage.vala:399 -msgid "Sort _Photos" -msgstr "照片排序(_P)" +#: src/Dialogs.vala:584 src/Dialogs.vala:599 src/Dialogs.vala:614 +#: src/Dialogs.vala:630 src/Dialogs.vala:645 src/Dialogs.vala:659 +msgid "error message:" +msgstr "错误信息:" -#: ../src/MediaPage.vala:408 -msgid "_Play Video" -msgstr "播放视频(_P)" +#. +#. Files Not Imported Because They Weren't Recognized as Photos or Videos +#. +#: src/Dialogs.vala:595 +#, fuzzy +#| msgid "" +#| "Files Not Imported Because They Weren't Recognized as Photos or Videos:" +msgid "Files Not Imported Because They Weren’t Recognized as Photos or Videos:" +msgstr "以下文件因为它们不被识别为照片或视频而未被导入:" -#: ../src/MediaPage.vala:409 -msgid "Open the selected videos in the system video player" -msgstr "在系统视频播放器中打开选定视频" +#. +#. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands +#. +#: src/Dialogs.vala:610 +#, fuzzy +#| msgid "" +#| "Photos/Videos Not Imported Because They Weren't in a Format Shotwell " +#| "Understands:" +msgid "" +"Photos/Videos Not Imported Because They Weren’t in a Format Shotwell " +"Understands:" +msgstr "以下照片/视频因为它们不是 Shotwell 识别的格式而未被导入:" -#: ../src/MediaPage.vala:413 ../src/PhotoPage.vala:2632 -msgid "_Developer" -msgstr "开发人员(_D)" +#. +#. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library +#. +#: src/Dialogs.vala:625 +#, fuzzy +#| msgid "" +#| "Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its " +#| "Library:" +msgid "" +"Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into its " +"Library:" +msgstr "以下照片/视频因为 Shotwell 无法拷贝它们而未被导入:" -#: ../src/MediaPage.vala:420 ../src/photos/RawSupport.vala:297 -msgid "Shotwell" -msgstr "Shotwell" +#: src/Dialogs.vala:629 +#, fuzzy, c-format +#| msgid "" +#| "couldn't copy %s\n" +#| "\tto %s" +msgid "" +"couldn’t copy %s\n" +"\tto %s" +msgstr "无法将 %s⏎ »拷贝到 %s" -#: ../src/MediaPage.vala:425 ../src/camera/Branch.vala:101 -#: ../src/camera/ImportPage.vala:711 ../src/camera/ImportPage.vala:727 -#: ../src/photos/RawSupport.vala:300 -msgid "Camera" -msgstr "相机" +#. +#. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt +#. +#: src/Dialogs.vala:641 +msgid "Photos/Videos Not Imported Because Files Are Corrupt:" +msgstr "以下照片/视频因为文件损坏而未被导入:" -#: ../src/MediaPage.vala:436 ../src/camera/ImportPage.vala:872 -msgid "_Titles" -msgstr "标题(_T)" +#. +#. Photos/Videos Not Imported for Other Reasons +#. +#: src/Dialogs.vala:656 +msgid "Photos/Videos Not Imported for Other Reasons:" +msgstr "因为其他原因而未被导入的照片/视频:" -#: ../src/MediaPage.vala:437 ../src/camera/ImportPage.vala:873 -msgid "Display the title of each photo" -msgstr "显示每张照片的标题" +#: src/Dialogs.vala:676 +#, c-format +msgid "1 duplicate photo was not imported:\n" +msgid_plural "%d duplicate photos were not imported:\n" +msgstr[0] "%d 个重复的照片没有导入:\n" -#: ../src/MediaPage.vala:442 ../src/events/EventsDirectoryPage.vala:130 -msgid "_Comments" -msgstr "备注(_C)" +#: src/Dialogs.vala:679 +#, c-format +msgid "1 duplicate video was not imported:\n" +msgid_plural "%d duplicate videos were not imported:\n" +msgstr[0] "%d 个重复的视频没有导入:\n" -#: ../src/MediaPage.vala:443 -msgid "Display the comment of each photo" -msgstr "显示每张照片的备注" +#: src/Dialogs.vala:682 +#, c-format +msgid "1 duplicate photo/video was not imported:\n" +msgid_plural "%d duplicate photos/videos were not imported:\n" +msgstr[0] "%d 个重复的照片/视频没有导入:\n" -#: ../src/MediaPage.vala:454 ../src/library/LibraryWindow.vala:376 -msgid "Ta_gs" -msgstr "标签(_G)" +#: src/Dialogs.vala:696 +#, c-format +msgid "1 photo failed to import due to a file or hardware error:\n" +msgid_plural "%d photos failed to import due to a file or hardware error:\n" +msgstr[0] "%d 个照片由于文件或硬件错误导入失败:\n" -#: ../src/MediaPage.vala:455 -msgid "Display each photo's tags" -msgstr "显示每张照片的标签" +#: src/Dialogs.vala:699 +#, c-format +msgid "1 video failed to import due to a file or hardware error:\n" +msgid_plural "%d videos failed to import due to a file or hardware error:\n" +msgstr[0] "%d 个视频由于文件或硬件错误导入失败:\n" -#: ../src/MediaPage.vala:471 -msgid "By _Title" -msgstr "按照标题(_T)" +#: src/Dialogs.vala:702 +#, c-format +msgid "1 photo/video failed to import due to a file or hardware error:\n" +msgid_plural "" +"%d photos/videos failed to import due to a file or hardware error:\n" +msgstr[0] "%d 个照片/视频由于文件或硬件错误导入失败:\n" -#: ../src/MediaPage.vala:472 -msgid "Sort photos by title" -msgstr "按照标题排序" +#: src/Dialogs.vala:705 +#, c-format +msgid "1 file failed to import due to a file or hardware error:\n" +msgid_plural "%d files failed to import due to a file or hardware error:\n" +msgstr[0] "%d 文件导入失败由于文件或硬件错误:\n" -#: ../src/MediaPage.vala:477 -msgid "By Exposure _Date" -msgstr "按照曝光日期(_D)" +#: src/Dialogs.vala:719 +#, c-format +msgid "" +"1 photo failed to import because the photo library folder was not writable:\n" +msgid_plural "" +"%d photos failed to import because the photo library folder was not " +"writable:\n" +msgstr[0] "%d 个照片由于无法写入媒体库导入失败:\n" -#: ../src/MediaPage.vala:478 -msgid "Sort photos by exposure date" -msgstr "按照曝光日期排序" +#: src/Dialogs.vala:722 +#, c-format +msgid "" +"1 video failed to import because the photo library folder was not writable:\n" +msgid_plural "" +"%d videos failed to import because the photo library folder was not " +"writable:\n" +msgstr[0] "%d 个视频由于无法写入媒体库导入失败:\n" -#: ../src/MediaPage.vala:483 -msgid "By _Rating" -msgstr "按照评分(_R)" +#: src/Dialogs.vala:725 +#, c-format +msgid "" +"1 photo/video failed to import because the photo library folder was not " +"writable:\n" +msgid_plural "" +"%d photos/videos failed to import because the photo library folder was not " +"writable:\n" +msgstr[0] "%d 个照片/视频由于无法写入媒体库导入失败:\n" -#: ../src/MediaPage.vala:484 -msgid "Sort photos by rating" -msgstr "按照评分排序" +#: src/Dialogs.vala:728 +#, c-format +msgid "" +"1 file failed to import because the photo library folder was not writable:\n" +msgid_plural "" +"%d files failed to import because the photo library folder was not " +"writable:\n" +msgstr[0] "%d 文件导入失败因为照片库文件夹不可写入:\n" -#: ../src/MediaPage.vala:494 ../src/library/LibraryWindow.vala:422 -msgid "_Ascending" -msgstr "升序(_A)" +#: src/Dialogs.vala:742 +#, c-format +msgid "1 photo failed to import due to a camera error:\n" +msgid_plural "%d photos failed to import due to a camera error:\n" +msgstr[0] "%d 个照片由于相机错误导入失败:\n" -#: ../src/MediaPage.vala:495 ../src/library/LibraryWindow.vala:423 -msgid "Sort photos in an ascending order" -msgstr "按照升序排列照片" +#: src/Dialogs.vala:745 +#, c-format +msgid "1 video failed to import due to a camera error:\n" +msgid_plural "%d videos failed to import due to a camera error:\n" +msgstr[0] "%d 个视频由于相机错误导入失败:\n" -#: ../src/MediaPage.vala:500 ../src/library/LibraryWindow.vala:429 -msgid "D_escending" -msgstr "降序(_D)" +#: src/Dialogs.vala:748 +#, c-format +msgid "1 photo/video failed to import due to a camera error:\n" +msgid_plural "%d photos/videos failed to import due to a camera error:\n" +msgstr[0] "%d 个照片/视频由于相机错误导入失败:\n" -#: ../src/MediaPage.vala:501 ../src/library/LibraryWindow.vala:430 -msgid "Sort photos in a descending order" -msgstr "按照降序排列照片" +#: src/Dialogs.vala:751 +#, c-format +msgid "1 file failed to import due to a camera error:\n" +msgid_plural "%d files failed to import due to a camera error:\n" +msgstr[0] "%d 文件导入失败由于相机错误:\n" -#: ../src/MediaPage.vala:702 +#: src/Dialogs.vala:765 #, c-format -msgid "" -"Shotwell was unable to play the selected video:\n" -"%s" -msgstr "" -"Shotwell 无法播放选中视频:\n" -"%s" +msgid "1 photo failed to import because it was corrupt:\n" +msgid_plural "%d photos failed to import because they were corrupt:\n" +msgstr[0] "%d 个照片由于文件损坏导入失败:\n" -#: ../src/Page.vala:1268 -msgid "No photos/videos" -msgstr "没有照片/视频" +#: src/Dialogs.vala:768 +#, c-format +msgid "1 video failed to import because it was corrupt:\n" +msgid_plural "%d videos failed to import because they were corrupt:\n" +msgstr[0] "%d 个视频由于文件损坏导入失败:\n" -#: ../src/Page.vala:1272 -msgid "No photos/videos found" -msgstr "没有找到照片或视频" +#: src/Dialogs.vala:771 +#, c-format +msgid "1 photo/video failed to import because it was corrupt:\n" +msgid_plural "%d photos/videos failed to import because they were corrupt:\n" +msgstr[0] "%d 个照片/视频由于文件损坏导入失败:\n" -#: ../src/Page.vala:2569 -msgid "Photos cannot be exported to this directory." -msgstr "照片不可以被导出到该文件夹。" +#: src/Dialogs.vala:774 +#, c-format +msgid "1 file failed to import because it was corrupt:\n" +msgid_plural "%d files failed to import because it was corrupt:\n" +msgstr[0] "%d 文件由于损坏导入失败:\n" -#: ../src/Photo.vala:3656 -msgid "modified" -msgstr "修改" +#. we have no notion of "unsupported" video files right now in Shotwell (all +#. standard container formats are supported, it's just that the streams in them +#. might or might not be interpretable), so this message does not need to be +#. media specific +#: src/Dialogs.vala:791 +#, c-format +msgid "1 unsupported photo skipped:\n" +msgid_plural "%d unsupported photos skipped:\n" +msgstr[0] "跳过 %d 个不支持的照片:\n" -#. previous button -#: ../src/PhotoPage.vala:532 -msgid "Previous photo" -msgstr "上一张照片" +#. we have no notion of "non-video" video files right now in Shotwell, so this +#. message doesn't need to be media specific +#: src/Dialogs.vala:806 +#, c-format +msgid "1 non-image file skipped.\n" +msgid_plural "%d non-image files skipped.\n" +msgstr[0] "跳过 %d 个非照片文件。\n" -#. next button -#: ../src/PhotoPage.vala:537 -msgid "Next photo" -msgstr "下一张照片" +#: src/Dialogs.vala:817 +#, c-format +msgid "1 photo skipped due to user cancel:\n" +msgid_plural "%d photos skipped due to user cancel:\n" +msgstr[0] "由于用户取消跳过 %d 个照片:\n" -#: ../src/PhotoPage.vala:1844 +#: src/Dialogs.vala:820 #, c-format -msgid "Photo source file missing: %s" -msgstr "照片源文件丢失:%s" +msgid "1 video skipped due to user cancel:\n" +msgid_plural "%d videos skipped due to user cancel:\n" +msgstr[0] "由于用户取消跳过 %d 个视频:\n" -#: ../src/PhotoPage.vala:2404 ../src/direct/DirectPhotoPage.vala:165 -#: ../src/library/LibraryWindow.vala:360 -msgid "_View" -msgstr "查看(_V)" +#: src/Dialogs.vala:823 +#, c-format +msgid "1 photo/video skipped due to user cancel:\n" +msgid_plural "%d photos/videos skipped due to user cancel:\n" +msgstr[0] "由于用户取消跳过 %d 个照片/视频:\n" -#: ../src/PhotoPage.vala:2408 ../src/direct/DirectPhotoPage.vala:81 -msgid "T_ools" -msgstr "工具(_O)" +#: src/Dialogs.vala:826 +#, c-format +msgid "1 file skipped due to user cancel:\n" +msgid_plural "%d file skipped due to user cancel:\n" +msgstr[0] "%d 文件被跳过由于用户取消:\n" -#: ../src/PhotoPage.vala:2413 ../src/direct/DirectPhotoPage.vala:86 -msgid "_Previous Photo" -msgstr "前一张照片(_P)" +#: src/Dialogs.vala:840 +#, c-format +msgid "1 photo successfully imported.\n" +msgid_plural "%d photos successfully imported.\n" +msgstr[0] "%d 个照片成功导入。\n" -#: ../src/PhotoPage.vala:2414 ../src/direct/DirectPhotoPage.vala:87 -msgid "Previous Photo" -msgstr "前一张照片" +#: src/Dialogs.vala:843 +#, c-format +msgid "1 video successfully imported.\n" +msgid_plural "%d videos successfully imported.\n" +msgstr[0] "%d 个视频成功导入。\n" -#: ../src/PhotoPage.vala:2419 ../src/direct/DirectPhotoPage.vala:92 -msgid "_Next Photo" -msgstr "下一张照片(_N)" +#: src/Dialogs.vala:846 +#, c-format +msgid "1 photo/video successfully imported.\n" +msgid_plural "%d photos/videos successfully imported.\n" +msgstr[0] "%d 个照片/视频成功导入。\n" -#: ../src/PhotoPage.vala:2420 ../src/direct/DirectPhotoPage.vala:93 -msgid "Next Photo" -msgstr "下一张照片" +#. if no media items were imported at all (i.e. an empty directory attempted), need to at least +#. report that nothing was imported +#: src/Dialogs.vala:862 +msgid "No photos or videos imported.\n" +msgstr "没有导入照片或视频。\n" -#: ../src/PhotoPage.vala:2584 ../src/direct/DirectPhotoPage.vala:175 -msgid "Increase the magnification of the photo" -msgstr "放大缩略图" +#: src/Dialogs.vala:869 src/Dialogs.vala:888 +msgid "Import Complete" +msgstr "导入完成" -#: ../src/PhotoPage.vala:2590 ../src/direct/DirectPhotoPage.vala:181 -msgid "Decrease the magnification of the photo" -msgstr "缩小缩略图" +#: src/Dialogs.vala:1160 +#, c-format +msgid "%d second" +msgid_plural "%d seconds" +msgstr[0] "%d 秒" -#: ../src/PhotoPage.vala:2595 ../src/direct/DirectPhotoPage.vala:186 -msgid "Fit to _Page" -msgstr "适合页面(_P)" +#: src/Dialogs.vala:1163 +#, c-format +msgid "%d minute" +msgid_plural "%d minutes" +msgstr[0] "%d 分钟" -#: ../src/PhotoPage.vala:2596 ../src/direct/DirectPhotoPage.vala:187 -msgid "Zoom the photo to fit on the screen" -msgstr "缩放照片以适合屏幕" +#: src/Dialogs.vala:1167 +#, c-format +msgid "%d hour" +msgid_plural "%d hours" +msgstr[0] "%d 小时" -#: ../src/PhotoPage.vala:2602 ../src/direct/DirectPhotoPage.vala:193 -#, no-c-format -msgid "Zoom _100%" -msgstr "缩放 _100%" +#: src/Dialogs.vala:1170 +msgid "1 day" +msgstr "1 天" -#: ../src/PhotoPage.vala:2604 ../src/direct/DirectPhotoPage.vala:195 -#, no-c-format -msgid "Zoom the photo to 100% magnification" -msgstr "缩放照片至 100% 比例" +#: src/Dialogs.vala:1317 src/Resources.vala:231 +msgid "Rename Event" +msgstr "重命名事件" -#: ../src/PhotoPage.vala:2610 ../src/direct/DirectPhotoPage.vala:201 -#, no-c-format -msgid "Zoom _200%" -msgstr "缩放 _200%" +#: src/Dialogs.vala:1317 +msgid "Name:" +msgstr "名称:" -#: ../src/PhotoPage.vala:2612 ../src/direct/DirectPhotoPage.vala:203 -#, no-c-format -msgid "Zoom the photo to 200% magnification" -msgstr "缩放照片至 200% 比例" +#. Dialog title +#: src/Dialogs.vala:1328 +#, fuzzy +#| msgid "Edit Title" +msgctxt "Dialog Title" +msgid "Edit Title" +msgstr "编辑标题" -#: ../src/PhotoPage.vala:3220 -#, c-format -msgid "Unable to export %s: %s" -msgstr "无法导出 %s:%s" +#: src/Dialogs.vala:1329 src/Properties.vala:343 +msgid "Title:" +msgstr "标题:" -#: ../src/Printing.vala:255 -msgid "Fill the entire page" -msgstr "填充整个页面" +#. Dialog title +#: src/Dialogs.vala:1345 src/Resources.vala:307 +msgid "Edit Event Comment" +msgstr "修改事件备注" -#: ../src/Printing.vala:256 -msgid "2 images per page" -msgstr "每页 2 张" +#: src/Dialogs.vala:1346 +msgid "Edit Photo/Video Comment" +msgstr "修改照片/视频备注" -#: ../src/Printing.vala:257 -msgid "4 images per page" -msgstr "每页 4 张" +#: src/Dialogs.vala:1347 src/Properties.vala:631 +msgid "Comment:" +msgstr "备注:" -#: ../src/Printing.vala:258 -msgid "6 images per page" -msgstr "每页 6 张" +#: src/Dialogs.vala:1363 +#, fuzzy +#| msgid "_Trash File" +#| msgid_plural "_Trash Files" +msgid "Remove and _Trash File" +msgid_plural "Remove and _Trash Files" +msgstr[0] "移至垃圾箱(_T)" -#: ../src/Printing.vala:259 -msgid "8 images per page" -msgstr "每页 8 张" +#: src/Dialogs.vala:1367 +#, fuzzy +#| msgid "Remove From Library" +msgid "_Remove From Library" +msgstr "从媒体库移除" -#: ../src/Printing.vala:260 -msgid "16 images per page" -msgstr "每页 16 张" +#: src/Dialogs.vala:1410 +msgid "Revert External Edit?" +msgstr "恢复额外修改?" -#: ../src/Printing.vala:261 -msgid "32 images per page" -msgstr "每页 32 张" +#: src/Dialogs.vala:1410 +msgid "Revert External Edits?" +msgstr "恢复额外修改?" -#: ../src/Printing.vala:348 -msgid "in." -msgstr "英寸" +#: src/Dialogs.vala:1412 +#, fuzzy, c-format +#| msgid "This will destroy all changes made to the external file. Continue?" +#| msgid_plural "" +#| "This will destroy all changes made to %d external files. Continue?" +msgid "This will destroy all changes made to the external file. Continue?" +msgid_plural "" +"This will destroy all changes made to %d external files. Continue?" +msgstr[0] "这将毁掉对于 %d 个外部文件所做的全部修改。继续?" -#: ../src/Printing.vala:349 -msgid "cm" -msgstr "厘米" +#: src/Dialogs.vala:1416 +msgid "Re_vert External Edit" +msgstr "恢复额外修改(_V)" -#: ../src/Printing.vala:817 ../src/editing_tools/EditingTools.vala:761 -msgid "Wallet (2 x 3 in.)" -msgstr "用于皮夹(2 x 3 英寸)" +#: src/Dialogs.vala:1416 +msgid "Re_vert External Edits" +msgstr "恢复额外修改(_V)" -#: ../src/Printing.vala:820 ../src/editing_tools/EditingTools.vala:762 -msgid "Notecard (3 x 5 in.)" -msgstr "留言卡(3 x 5 英寸)" +#: src/Dialogs.vala:1437 +#, c-format +msgid "This will remove the photo from the library. Continue?" +msgid_plural "This will remove %d photos from the library. Continue?" +msgstr[0] "这将从媒体库中移除 %d 张照片。继续么?" -#: ../src/Printing.vala:823 ../src/editing_tools/EditingTools.vala:763 -msgid "4 x 6 in." -msgstr "4 x 6 英寸" +#: src/Dialogs.vala:1444 src/Resources.vala:173 +msgid "_Remove" +msgstr "移除(_R)" -#: ../src/Printing.vala:826 ../src/editing_tools/EditingTools.vala:764 -msgid "5 x 7 in." -msgstr "5 x 7 英寸" +#: src/Dialogs.vala:1445 +msgid "Remove Photo From Library" +msgstr "从照片库移除照片" -#: ../src/Printing.vala:829 ../src/editing_tools/EditingTools.vala:765 -msgid "8 x 10 in." -msgstr "8 x 10 英寸" +#: src/Dialogs.vala:1445 +msgid "Remove Photos From Library" +msgstr "从照片库移除照片" -#: ../src/Printing.vala:832 ../src/editing_tools/EditingTools.vala:767 -msgid "11 x 14 in." -msgstr "11 x 14 英寸" +#: src/Dialogs.vala:1543 +#, c-format +msgid "%d%%" +msgstr "%d%%" -#: ../src/Printing.vala:835 ../src/editing_tools/EditingTools.vala:769 -msgid "16 x 20 in." -msgstr "16 x 20 英寸" +#: src/Dialogs.vala:1697 +msgid "AM" +msgstr "上午" -#: ../src/Printing.vala:841 ../src/editing_tools/EditingTools.vala:771 -msgid "Metric Wallet (9 x 13 cm)" -msgstr "用于皮夹(9 x 13 厘米)" +#: src/Dialogs.vala:1698 +msgid "PM" +msgstr "下午" -#: ../src/Printing.vala:844 ../src/editing_tools/EditingTools.vala:772 -msgid "Postcard (10 x 15 cm)" -msgstr "明信片(10 x 15 厘米)" +#: src/Dialogs.vala:1699 +msgid "24 Hr" +msgstr "24 小时" -#: ../src/Printing.vala:847 ../src/editing_tools/EditingTools.vala:773 -msgid "13 x 18 cm" -msgstr "13 x 18 厘米" +#: src/Dialogs.vala:1714 +msgid "_Shift photos/videos by the same amount" +msgstr "按照同样大小调整照片/视频(_S)" -#: ../src/Printing.vala:850 ../src/editing_tools/EditingTools.vala:774 -msgid "18 x 24 cm" -msgstr "18 x 24 厘米" +#: src/Dialogs.vala:1719 +msgid "Set _all photos/videos to this time" +msgstr "设置所有照片/视频到这个时间(_A)" -#: ../src/Printing.vala:853 ../src/editing_tools/EditingTools.vala:776 -msgid "20 x 30 cm" -msgstr "20 x 30 厘米" +#: src/Dialogs.vala:1725 +msgid "_Modify original photo file" +msgid_plural "_Modify original photo files" +msgstr[0] "修改原始照片文件(_M)" -#: ../src/Printing.vala:856 ../src/editing_tools/EditingTools.vala:777 -msgid "24 x 40 cm" -msgstr "24 x 40 厘米" +#: src/Dialogs.vala:1729 +msgid "_Modify original file" +msgid_plural "_Modify original files" +msgstr[0] "修改原始文件(_M)" -#: ../src/Printing.vala:859 ../src/editing_tools/EditingTools.vala:778 -msgid "30 x 40 cm" -msgstr "30 x 40 厘米" +#: src/Dialogs.vala:1817 +msgid "Original: " +msgstr "原始:" -#: ../src/Printing.vala:875 -msgid "Image Settings" -msgstr "图像设置" +#: src/Dialogs.vala:1818 +msgid "%m/%d/%Y, %H:%M:%S" +msgstr "%Y/%m/%d %H:%M:%S" -#: ../src/Printing.vala:888 -msgid "Printing..." -msgstr "打印中..." +#: src/Dialogs.vala:1819 +msgid "%m/%d/%Y, %I:%M:%S %p" +msgstr "%Y/%m/%d %p%I:%M:%S" -#: ../src/Printing.vala:908 ../src/Printing.vala:1111 +#: src/Dialogs.vala:1908 #, c-format msgid "" -"Unable to print photo:\n" -"\n" -"%s" +"Exposure time will be shifted forward by\n" +"%d %s, %d %s, %d %s, and %d %s." msgstr "" -"无法打印照片:\n" -"\n" -"%s" - -#: ../src/Properties.vala:84 -msgid "Today" -msgstr "今天" +"曝光时间将会向较早时改变 \n" +"%d %s、%d %s、%d %s 和 %d %s。" -#: ../src/Properties.vala:86 -msgid "Yesterday" -msgstr "昨天" +#: src/Dialogs.vala:1909 +#, c-format +msgid "" +"Exposure time will be shifted backward by\n" +"%d %s, %d %s, %d %s, and %d %s." +msgstr "" +"曝光时间将会向较晚时改变 \n" +"%d %s、%d %s、%d %s 和 %d %s。" -#: ../src/Properties.vala:227 ../src/camera/ImportPage.vala:312 -msgid "RAW+JPEG" -msgstr "RAW+JPEG" +#: src/Dialogs.vala:1911 +msgid "day" +msgid_plural "days" +msgstr[0] "日" -#: ../src/Properties.vala:343 -msgid "Items:" -msgstr "项目:" +#: src/Dialogs.vala:1912 +msgid "hour" +msgid_plural "hours" +msgstr[0] "小时" -#: ../src/Properties.vala:346 -#, c-format -msgid "%d Event" -msgid_plural "%d Events" -msgstr[0] "%d 个事件" +#: src/Dialogs.vala:1913 +msgid "minute" +msgid_plural "minutes" +msgstr[0] "分钟" -#: ../src/Properties.vala:353 ../src/events/EventDirectoryItem.vala:87 -#, c-format -msgid "%d Photo" -msgid_plural "%d Photos" -msgstr[0] "%d 个照片" +#: src/Dialogs.vala:1914 +msgid "second" +msgid_plural "seconds" +msgstr[0] "秒" -#: ../src/Properties.vala:355 ../src/events/EventDirectoryItem.vala:85 +#: src/Dialogs.vala:1958 #, c-format -msgid "%d Video" -msgid_plural "%d Videos" -msgstr[0] "%d 个视频" - -#. display only one date if start and end are the same -#: ../src/Properties.vala:377 -msgid "Date:" -msgstr "日期:" - -#. display only one time if start and end are the same -#: ../src/Properties.vala:381 -msgid "Time:" -msgstr "时间:" +msgid "" +"\n" +"\n" +"And %d other." +msgid_plural "" +"\n" +"\n" +"And %d others." +msgstr[0] "" +"\n" +"\n" +"和另外 %d 个。" -#. display time range -#. display date range -#: ../src/Properties.vala:384 ../src/Properties.vala:389 -msgid "From:" -msgstr "从:" +#: src/Dialogs.vala:1982 src/Dialogs.vala:2009 +msgid "Tags (separated by commas):" +msgstr "标签(由逗号分割):" -#: ../src/Properties.vala:385 ../src/Properties.vala:390 -msgid "To:" -msgstr "到:" +#: src/Dialogs.vala:2089 +msgid "Welcome!" +msgstr "欢迎!" -#: ../src/Properties.vala:395 ../src/editing_tools/EditingTools.vala:1861 -msgid "Size:" -msgstr "大小:" +#: src/Dialogs.vala:2096 +msgid "Welcome to Shotwell!" +msgstr "欢迎使用 Shotwell !" -#: ../src/Properties.vala:404 -msgid "Duration:" -msgstr "持续时长:" +#: src/Dialogs.vala:2101 +msgid "To get started, import photos in any of these ways:" +msgstr "要开始使用,请用以下任意一种方式导入照片:" -#: ../src/Properties.vala:404 +#: src/Dialogs.vala:2121 #, c-format -msgid "%.1f seconds" -msgstr "%.1f 秒" +msgid "Choose File %s Import From Folder" +msgstr "选择 文件 %s 从文件夹导入" -#: ../src/Properties.vala:408 -msgid "Developer:" -msgstr "开发者:" +#: src/Dialogs.vala:2122 +msgid "Drag and drop photos onto the Shotwell window" +msgstr "拖放照片到 Shotwell 窗口中" -#. fit both on the top line, emit and move on -#: ../src/Properties.vala:436 ../src/Properties.vala:440 -#: ../src/Properties.vala:447 ../src/editing_tools/EditingTools.vala:2229 -msgid "Exposure:" -msgstr "曝光:" +#: src/Dialogs.vala:2123 +msgid "Connect a camera to your computer and import" +msgstr "链接相机到电脑上并导入" -#. nothing special to be done for now for Events -#: ../src/Properties.vala:585 -msgid "Location:" -msgstr "地点:" +#: src/Dialogs.vala:2134 +#, c-format +msgid "_Import photos from your %s folder" +msgstr "从您的 %s 文件夹导入照片(_I)" -#: ../src/Properties.vala:588 -msgid "File size:" -msgstr "文件大小:" +#: src/Dialogs.vala:2141 +msgid "You can also import photos in any of these ways:" +msgstr "您可以使用以下任意方式导入照片:" -#: ../src/Properties.vala:592 -msgid "Current Development:" -msgstr "当前开发:" +#: src/Dialogs.vala:2152 +msgid "_Don’t show this message again" +msgstr "不再显示该消息(_D)" -#: ../src/Properties.vala:594 -msgid "Original dimensions:" -msgstr "原始尺寸:" +#: src/Dialogs.vala:2189 +#, c-format +msgid "Import photos from your %s library" +msgstr "从您的 %s 照片库导入照片" -#: ../src/Properties.vala:597 -msgid "Camera make:" -msgstr "相机厂商:" +#. We're installed system-wide, so use the system help. +#. We're being run from the build directory; we'll have to handle clicks to this +#. link manually ourselves, due to a limitation of help: URIs. +#: src/Dialogs.vala:2335 src/Dialogs.vala:2339 +msgid "(Help)" +msgstr "(帮助)" -#: ../src/Properties.vala:600 -msgid "Camera model:" -msgstr "相机型号:" +#: src/Dialogs.vala:2346 +#, c-format +msgid "Year%sMonth%sDay" +msgstr "年%s月%s日" -#: ../src/Properties.vala:603 -msgid "Flash:" -msgstr "闪光灯:" +#: src/Dialogs.vala:2348 +#, c-format +msgid "Year%sMonth" +msgstr "年%s月" -#: ../src/Properties.vala:605 -msgid "Focal length:" -msgstr "焦距:" +#: src/Dialogs.vala:2350 +#, c-format +msgid "Year%sMonth-Day" +msgstr "年%s月-日" -#: ../src/Properties.vala:608 -msgid "Exposure date:" -msgstr "曝光日期:" +#: src/Dialogs.vala:2352 +msgid "Year-Month-Day" +msgstr "年-月-日" -#: ../src/Properties.vala:611 -msgid "Exposure time:" -msgstr "曝光时间:" +#: src/Dialogs.vala:2353 src/editing_tools/EditingTools.vala:782 +msgid "Custom" +msgstr "自定义" -#: ../src/Properties.vala:614 -msgid "Exposure bias:" -msgstr "曝光偏差:" +#. Invalid pattern. +#: src/Dialogs.vala:2590 +msgid "Invalid pattern" +msgstr "无效的样式" -#: ../src/Properties.vala:616 -msgid "GPS latitude:" -msgstr "GPS 纬度:" +#. This function is used to determine whether or not files should be copied or linked when imported. +#. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. +#: src/Dialogs.vala:2692 +msgid "" +"Shotwell can copy the photos into your library folder or it can import them " +"without copying." +msgstr "Shotwell 可以复制照片到您的媒体库,或者可以导入但并不复制。" -#: ../src/Properties.vala:619 -msgid "GPS longitude:" -msgstr "GPS 经度:" +#: src/Dialogs.vala:2697 +msgid "Co_py Photos" +msgstr "复制照片(_P)" -#: ../src/Properties.vala:622 -msgid "Artist:" -msgstr "艺术家:" +#: src/Dialogs.vala:2698 +msgid "_Import in Place" +msgstr "保留原位置导入(_I)" -#: ../src/Properties.vala:624 -msgid "Copyright:" -msgstr "版权:" +#: src/Dialogs.vala:2699 +msgid "Import to Library" +msgstr "导入到媒体库" -#: ../src/Properties.vala:626 -msgid "Software:" -msgstr "软件:" +#: src/Dialogs.vala:2709 src/PhotoPage.vala:2853 +msgid "Remove From Library" +msgstr "从媒体库移除" -#: ../src/Properties.vala:639 -msgid "Extended Information" -msgstr "扩展信息" +#: src/Dialogs.vala:2710 src/PhotoPage.vala:2853 +msgid "Removing Photo From Library" +msgstr "正在从媒体库移除照片" -#: ../src/Resources.vala:17 -msgid "Photo Manager" -msgstr "照片管理器" +#: src/Dialogs.vala:2710 +msgid "Removing Photos From Library" +msgstr "从照片库移除照片" -#: ../src/Resources.vala:18 -msgid "Photo Viewer" -msgstr "照片查看器" +#: src/Dialogs.vala:2724 +#, fuzzy, c-format +#| msgid "" +#| "This will remove the photo/video from your Shotwell library. Would you " +#| "also like to move the file to your desktop trash?\n" +#| "\n" +#| "This action cannot be undone." +#| msgid_plural "" +#| "This will remove %d photos/videos from your Shotwell library. Would you " +#| "also like to move the files to your desktop trash?\n" +#| "\n" +#| "This action cannot be undone." +msgid "" +"This will remove the photo/video from your Shotwell library. Would you also " +"like to move the file to your desktop trash?\n" +"\n" +"This action cannot be undone." +msgid_plural "" +"This will remove %d photos/videos from your Shotwell library. Would you also " +"like to move the files to your desktop trash?\n" +"\n" +"This action cannot be undone." +msgstr[0] "" +"将从 Shotwell 媒体库移除 %d 个照片/视频。你也想要从将这些文件移至桌面垃圾箱" +"么?\n" +"\n" +"该操作将不可撤销。" -#: ../src/Resources.vala:144 -msgid "Rotate _Right" -msgstr "向右旋转(_R)" +#: src/Dialogs.vala:2728 +#, fuzzy, c-format +#| msgid "" +#| "This will remove the video from your Shotwell library. Would you also " +#| "like to move the file to your desktop trash?\n" +#| "\n" +#| "This action cannot be undone." +#| msgid_plural "" +#| "This will remove %d videos from your Shotwell library. Would you also " +#| "like to move the files to your desktop trash?\n" +#| "\n" +#| "This action cannot be undone." +msgid "" +"This will remove the video from your Shotwell library. Would you also like " +"to move the file to your desktop trash?\n" +"\n" +"This action cannot be undone." +msgid_plural "" +"This will remove %d videos from your Shotwell library. Would you also like " +"to move the files to your desktop trash?\n" +"\n" +"This action cannot be undone." +msgstr[0] "" +"将从 Shotwell 媒体库移除 %d 个视频。你也想要从将这些文件移至桌面垃圾箱么?\n" +"\n" +"该操作将不可撤销。" -#: ../src/Resources.vala:145 ../src/Resources.vala:150 -msgid "Rotate" -msgstr "旋转" +#: src/Dialogs.vala:2732 +#, fuzzy, c-format +#| msgid "" +#| "This will remove the photo from your Shotwell library. Would you also " +#| "like to move the file to your desktop trash?\n" +#| "\n" +#| "This action cannot be undone." +#| msgid_plural "" +#| "This will remove %d photos from your Shotwell library. Would you also " +#| "like to move the files to your desktop trash?\n" +#| "\n" +#| "This action cannot be undone." +msgid "" +"This will remove the photo from your Shotwell library. Would you also like " +"to move the file to your desktop trash?\n" +"\n" +"This action cannot be undone." +msgid_plural "" +"This will remove %d photos from your Shotwell library. Would you also like " +"to move the files to your desktop trash?\n" +"\n" +"This action cannot be undone." +msgstr[0] "" +"将从 Shotwell 媒体库移除 %d 个照片。你也想要从将这些文件移至桌面垃圾箱么?\n" +"\n" +"该操作将不可撤销。" -#: ../src/Resources.vala:146 -msgid "Rotate Right" -msgstr "向右旋转" +#: src/Dialogs.vala:2764 +#, fuzzy, c-format +#| msgid "" +#| "The photo or video cannot be moved to your desktop trash. Delete this " +#| "file?" +#| msgid_plural "" +#| "%d photos/videos cannot be moved to your desktop trash. Delete these " +#| "files?" +msgid "" +"The photo or video cannot be moved to your desktop trash. Delete this file?" +msgid_plural "" +"%d photos/videos cannot be moved to your desktop trash. Delete these files?" +msgstr[0] "%d 个照片/视频无法移动到您的桌面回收站。删除这些文件?" -#: ../src/Resources.vala:147 -msgid "Rotate the photos right (press Ctrl to rotate left)" -msgstr "向右旋转照片(按住 Ctrl 向左旋转)" +#. Alert the user that the files were not removed. +#: src/Dialogs.vala:2781 +#, c-format +msgid "The photo or video cannot be deleted." +msgid_plural "%d photos/videos cannot be deleted." +msgstr[0] "%d 照片/视频无法被删除。" -#: ../src/Resources.vala:149 -msgid "Rotate _Left" -msgstr "向左旋转(_L)" +#: src/Dimensions.vala:23 +msgid "Width" +msgstr "宽度" -#: ../src/Resources.vala:151 -msgid "Rotate Left" -msgstr "向左旋转" +#: src/Dimensions.vala:26 +msgid "Height" +msgstr "高度" -#: ../src/Resources.vala:152 -msgid "Rotate the photos left" -msgstr "向左旋转照片" +#: src/direct/DirectPhotoPage.vala:92 +#, c-format +msgid "%s does not exist." +msgstr "%s 不存在。" -#: ../src/Resources.vala:154 -msgid "Flip Hori_zontally" -msgstr "水平翻转(_Z)" +#: src/direct/DirectPhotoPage.vala:94 +#, c-format +msgid "%s is not a file." +msgstr "%s 不是一个文件。" -#: ../src/Resources.vala:155 -msgid "Flip Horizontally" -msgstr "水平翻转" +#: src/direct/DirectPhotoPage.vala:96 +#, c-format +msgid "" +"%s does not support the file format of\n" +"%s." +msgstr "%s 不支持 %s 类型的文件。" -#: ../src/Resources.vala:157 -msgid "Flip Verti_cally" -msgstr "竖直翻转(_C)" +#: src/direct/DirectPhotoPage.vala:113 +#, fuzzy, c-format +#| msgid "" +#| "Unable to print photo:\n" +#| "\n" +#| "%s" +msgid "Unable open photo %s. Sorry." +msgstr "" +"无法打印照片:\n" +"\n" +"%s" -#: ../src/Resources.vala:158 -msgid "Flip Vertically" -msgstr "竖直翻转" +#: src/direct/DirectPhotoPage.vala:297 src/Resources.vala:175 ui/direct.ui:8 +msgid "_Save" +msgstr "保存(_S)" -#: ../src/Resources.vala:160 -msgid "_Enhance" -msgstr "增强(_E)" +#: src/direct/DirectPhotoPage.vala:297 +msgid "_Save a Copy" +msgstr "保存副本(_S)" -#: ../src/Resources.vala:161 -msgid "Enhance" -msgstr "增强" +#: src/direct/DirectPhotoPage.vala:300 +#, c-format +msgid "Lose changes to %s?" +msgstr "放弃对 %s 的更改?" -#: ../src/Resources.vala:162 -msgid "Automatically improve the photo's appearance" -msgstr "自动增强照片的观感" +#: src/direct/DirectPhotoPage.vala:301 +msgid "Close _without Saving" +msgstr "关闭但不保存(_W)" -#: ../src/Resources.vala:164 -msgid "_Copy Color Adjustments" -msgstr "复制颜色调整(_C)" +#: src/direct/DirectPhotoPage.vala:334 +#, c-format +msgid "Error while saving to %s: %s" +msgstr "保存 %s 时出错:%s" -#: ../src/Resources.vala:165 -msgid "Copy Color Adjustments" -msgstr "复制颜色调整" +#: src/direct/DirectPhotoPage.vala:362 src/direct/DirectPhotoPage.vala:383 +msgid "Save As" +msgstr "另存为" -#: ../src/Resources.vala:166 -msgid "Copy the color adjustments applied to the photo" -msgstr "复制应用于照片的颜色调整" +#. verify this is a directory +#: src/DirectoryMonitor.vala:889 +#, c-format +msgid "Unable to monitor %s: Not a directory (%s)" +msgstr "无法监视 %s:不是一个目录(%s)" -#: ../src/Resources.vala:168 -msgid "_Paste Color Adjustments" -msgstr "粘贴颜色调整(_P)" +#: src/editing_tools/EditingTools.vala:666 +msgid "Return to current photo dimensions" +msgstr "回到当前照片尺寸" -#: ../src/Resources.vala:169 -msgid "Paste Color Adjustments" -msgstr "粘贴颜色调整" +#: src/editing_tools/EditingTools.vala:669 +msgid "Set the crop for this photo" +msgstr "对这张照片进行剪裁" -#: ../src/Resources.vala:170 -msgid "Apply copied color adjustments to the selected photos" -msgstr "将复制的颜色调整应用于选定的照片" +#: src/editing_tools/EditingTools.vala:681 +msgid "Pivot the crop rectangle between portrait and landscape orientations" +msgstr "在肖像和风景方向上旋转剪裁矩形" -#: ../src/Resources.vala:172 -msgid "_Crop" -msgstr "剪裁(_C)" +#: src/editing_tools/EditingTools.vala:754 +msgid "Unconstrained" +msgstr "不限制" -#: ../src/Resources.vala:173 -msgid "Crop" -msgstr "剪裁" +#: src/editing_tools/EditingTools.vala:755 +msgid "Square" +msgstr "方形" -#: ../src/Resources.vala:174 -msgid "Crop the photo's size" -msgstr "剪裁照片尺寸" +#: src/editing_tools/EditingTools.vala:756 +msgid "Screen" +msgstr "屏幕" -#: ../src/Resources.vala:176 ../src/editing_tools/StraightenTool.vala:100 -msgid "_Straighten" -msgstr "校正(_S)" +#: src/editing_tools/EditingTools.vala:758 +#: src/editing_tools/EditingTools.vala:761 +#: src/editing_tools/EditingTools.vala:771 +#: src/editing_tools/EditingTools.vala:781 +msgid "-" +msgstr "-" -#: ../src/Resources.vala:177 -msgid "Straighten" -msgstr "校正" +#: src/editing_tools/EditingTools.vala:759 +msgid "SD Video (4 ∶ 3)" +msgstr "标清视频 (4 ∶ 3)" + +#: src/editing_tools/EditingTools.vala:760 +msgid "HD Video (16 ∶ 9)" +msgstr "高清视频 (16 ∶ 9)" + +#: src/editing_tools/EditingTools.vala:762 src/Printing.vala:818 +msgid "Wallet (2 × 3 in.)" +msgstr "用于皮夹(2 × 3 英寸)" -#: ../src/Resources.vala:178 -msgid "Straighten the photo" -msgstr "校正照片" +#: src/editing_tools/EditingTools.vala:763 src/Printing.vala:821 +msgid "Notecard (3 × 5 in.)" +msgstr "留言卡(3 × 5 英寸)" -#: ../src/Resources.vala:180 -msgid "_Red-eye" -msgstr "红眼(_R)" +#: src/editing_tools/EditingTools.vala:764 src/Printing.vala:824 +msgid "4 × 6 in." +msgstr "4 × 6 英寸" -#: ../src/Resources.vala:181 -msgid "Red-eye" -msgstr "红眼" +#: src/editing_tools/EditingTools.vala:765 src/Printing.vala:827 +msgid "5 × 7 in." +msgstr "5 × 7 英寸" -#: ../src/Resources.vala:182 -msgid "Reduce or eliminate any red-eye effects in the photo" -msgstr "降低或去除照片上的红眼效果" +#: src/editing_tools/EditingTools.vala:766 src/Printing.vala:830 +msgid "8 × 10 in." +msgstr "8 × 10 英寸" -#: ../src/Resources.vala:184 -msgid "_Adjust" -msgstr "调整(_A)" +#: src/editing_tools/EditingTools.vala:767 +msgid "Letter (8.5 × 11 in.)" +msgstr "书信 (8.5 × 11 英寸)" -#: ../src/Resources.vala:185 -msgid "Adjust" -msgstr "调整" +#: src/editing_tools/EditingTools.vala:768 src/Printing.vala:833 +msgid "11 × 14 in." +msgstr "11 × 14 英寸" -#: ../src/Resources.vala:186 -msgid "Adjust the photo's color and tone" -msgstr "调整照片的色彩和色调" +#: src/editing_tools/EditingTools.vala:769 +msgid "Tabloid (11 × 17 in.)" +msgstr "小型海报 (11 × 17 英寸)" -#: ../src/Resources.vala:188 -msgid "Re_vert to Original" -msgstr "恢复到原始(_V)" +#: src/editing_tools/EditingTools.vala:770 src/Printing.vala:836 +msgid "16 × 20 in." +msgstr "16 × 20 英寸" -#: ../src/Resources.vala:189 -msgid "Revert to Original" -msgstr "恢复到原始" +#: src/editing_tools/EditingTools.vala:772 src/Printing.vala:842 +msgid "Metric Wallet (9 × 13 cm)" +msgstr "用于皮夹(9 × 13 厘米)" -#: ../src/Resources.vala:191 -msgid "Revert External E_dits" -msgstr "恢复额外修改(_D)" +#: src/editing_tools/EditingTools.vala:773 src/Printing.vala:845 +msgid "Postcard (10 × 15 cm)" +msgstr "明信片(10 × 15 厘米)" -#: ../src/Resources.vala:192 -msgid "Revert to the master photo" -msgstr "恢复到主照片" +#: src/editing_tools/EditingTools.vala:774 src/Printing.vala:848 +msgid "13 × 18 cm" +msgstr "13 × 18 厘米" -#: ../src/Resources.vala:194 -msgid "Set as _Desktop Background" -msgstr "设置为桌面背景(_D)" +#: src/editing_tools/EditingTools.vala:775 src/Printing.vala:851 +msgid "18 × 24 cm" +msgstr "18 × 24 厘米" -#: ../src/Resources.vala:195 -msgid "Set selected image to be the new desktop background" -msgstr "设置选定照片为新的桌面背景" +#: src/editing_tools/EditingTools.vala:776 +msgid "A4 (210 × 297 mm)" +msgstr "A4 (210 × 297 毫米)" -#: ../src/Resources.vala:196 -msgid "Set as _Desktop Slideshow..." -msgstr "设置为桌面幻灯片(_D)..." +#: src/editing_tools/EditingTools.vala:777 src/Printing.vala:854 +msgid "20 × 30 cm" +msgstr "20 × 30 厘米" -#: ../src/Resources.vala:198 -msgid "_Undo" -msgstr "取消(_U)" +#: src/editing_tools/EditingTools.vala:778 src/Printing.vala:857 +msgid "24 × 40 cm" +msgstr "24 × 40 厘米" -#: ../src/Resources.vala:199 -msgid "Undo" -msgstr "取消" +#: src/editing_tools/EditingTools.vala:779 src/Printing.vala:860 +msgid "30 × 40 cm" +msgstr "30 × 40 厘米" -#: ../src/Resources.vala:201 -msgid "_Redo" -msgstr "重做(_R)" +#: src/editing_tools/EditingTools.vala:780 +msgid "A3 (297 × 420 mm)" +msgstr "A3 (297 × 420 毫米)" -#: ../src/Resources.vala:202 -msgid "Redo" -msgstr "重做" +#: src/editing_tools/EditingTools.vala:1880 src/Properties.vala:398 +msgid "Size:" +msgstr "大小:" -#: ../src/Resources.vala:204 -msgid "Re_name Event..." -msgstr "重新命名事件(_N)..." +#: src/editing_tools/EditingTools.vala:1895 +msgid "Close the red-eye tool" +msgstr "关闭红眼工具" -#: ../src/Resources.vala:207 -msgid "Make _Key Photo for Event" -msgstr "为事件创建关键照片(_K)" +#: src/editing_tools/EditingTools.vala:1898 +msgid "Remove any red-eye effects in the selected region" +msgstr "移除在选定区域内的所有红眼效果" -#: ../src/Resources.vala:208 -msgid "Make Key Photo for Event" -msgstr "创建事件关键照片" +#: src/editing_tools/EditingTools.vala:2238 +#: src/editing_tools/StraightenTool.vala:102 +msgid "_Reset" +msgstr "重置(_R)" -#: ../src/Resources.vala:210 -msgid "_New Event" -msgstr "新建事件(_N)" +#. fit both on the top line, emit and move on +#: src/editing_tools/EditingTools.vala:2252 src/Properties.vala:439 +#: src/Properties.vala:443 src/Properties.vala:450 +msgid "Exposure:" +msgstr "曝光:" -#: ../src/Resources.vala:211 -msgid "New Event" -msgstr "新建事件" +#: src/editing_tools/EditingTools.vala:2261 +msgid "Contrast:" +msgstr "" -#: ../src/Resources.vala:213 -msgid "Move Photos" -msgstr "移动照片" +#: src/editing_tools/EditingTools.vala:2270 +msgid "Saturation:" +msgstr "饱和度:" -#: ../src/Resources.vala:214 -msgid "Move photos to an event" -msgstr "将照片移动到一个事件" +#: src/editing_tools/EditingTools.vala:2279 +msgid "Tint:" +msgstr "色彩:" -#: ../src/Resources.vala:216 -msgid "_Merge Events" -msgstr "合并事件(_M)" +#: src/editing_tools/EditingTools.vala:2289 +msgid "Temperature:" +msgstr "色温:" -#: ../src/Resources.vala:217 -msgid "Merge" -msgstr "合并" +#: src/editing_tools/EditingTools.vala:2298 +msgid "Shadows:" +msgstr "阴影:" -#: ../src/Resources.vala:218 -msgid "Combine events into a single event" -msgstr "将多个事件合并为一个" +#: src/editing_tools/EditingTools.vala:2307 +msgid "Highlights:" +msgstr "高亮:" -#: ../src/Resources.vala:220 -msgid "_Set Rating" -msgstr "设置评分(_S)" +#: src/editing_tools/EditingTools.vala:2363 +msgid "Reset Colors" +msgstr "重置颜色" -#: ../src/Resources.vala:221 -msgid "Set Rating" -msgstr "设置评分" +#: src/editing_tools/EditingTools.vala:2363 +msgid "Reset all color adjustments to original" +msgstr "将所有颜色修正重置至原始值" -#: ../src/Resources.vala:222 -msgid "Change the rating of your photo" -msgstr "改变您照片的评分" +#: src/editing_tools/EditingTools.vala:2722 +msgid "Temperature" +msgstr "色温" -#: ../src/Resources.vala:224 -msgid "_Increase" -msgstr "提高(_I)" +#: src/editing_tools/EditingTools.vala:2734 +msgid "Tint" +msgstr "色彩" -#: ../src/Resources.vala:225 -msgid "Increase Rating" -msgstr "提高评分" +#: src/editing_tools/EditingTools.vala:2746 +#, fuzzy +#| msgid "Contrast Expansion" +msgid "Contrast" +msgstr "对比度扩展" -#: ../src/Resources.vala:227 -msgid "_Decrease" -msgstr "降低(_D)" +#: src/editing_tools/EditingTools.vala:2760 +msgid "Saturation" +msgstr "饱和度" -#: ../src/Resources.vala:228 -msgid "Decrease Rating" -msgstr "降低评分" +#: src/editing_tools/EditingTools.vala:2773 +msgid "Exposure" +msgstr "曝光" -#: ../src/Resources.vala:230 -msgid "_Unrated" -msgstr "未评分(_U)" +#: src/editing_tools/EditingTools.vala:2786 +msgid "Shadows" +msgstr "阴影" -#: ../src/Resources.vala:231 -msgid "Unrated" -msgstr "未评分" +#: src/editing_tools/EditingTools.vala:2799 +msgid "Highlights" +msgstr "高亮" -#: ../src/Resources.vala:232 -msgid "Rate Unrated" -msgstr "未评分" +#: src/editing_tools/EditingTools.vala:2809 +msgid "Contrast Expansion" +msgstr "对比度扩展" -#: ../src/Resources.vala:233 -msgid "Setting as unrated" -msgstr "设置为未评分" +#: src/editing_tools/StraightenTool.vala:99 +msgid "Angle:" +msgstr "角度:" -#: ../src/Resources.vala:234 -msgid "Remove any ratings" -msgstr "移除任何评分" +#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:202 +#: ui/direct.ui:144 ui/photo.ui:233 +msgid "_Straighten" +msgstr "校正(_S)" -#: ../src/Resources.vala:236 -msgid "_Rejected" -msgstr "次品(_R)" +#: src/events/Branch.vala:25 +msgid "Events" +msgstr "事件" -#: ../src/Resources.vala:237 -msgid "Rejected" -msgstr "次品" +#: src/events/EventDirectoryItem.vala:83 +#, c-format +msgid "%d Photo/Video" +msgid_plural "%d Photos/Videos" +msgstr[0] "%d 个照片/视频" -#: ../src/Resources.vala:238 -msgid "Rate Rejected" -msgstr "评为次品" +#: src/events/EventDirectoryItem.vala:85 src/Properties.vala:358 +#, c-format +msgid "%d Video" +msgid_plural "%d Videos" +msgstr[0] "%d 个视频" -#: ../src/Resources.vala:239 -msgid "Setting as rejected" -msgstr "设置为次品" +#: src/events/EventDirectoryItem.vala:87 src/Properties.vala:356 +#, c-format +msgid "%d Photo" +msgid_plural "%d Photos" +msgstr[0] "%d 个照片" -#: ../src/Resources.vala:240 -msgid "Set rating to rejected" -msgstr "设置评分为次品" +#: src/events/EventPage.vala:121 +msgid "No Event" +msgstr "没有事件" -#: ../src/Resources.vala:242 -msgid "Rejected _Only" -msgstr "仅次品(_R)" +#: src/events/EventsDirectoryPage.vala:143 +msgid "No events" +msgstr "没有事件" -#: ../src/Resources.vala:243 -msgid "Rejected Only" -msgstr "仅次品(_R)" +#: src/events/EventsDirectoryPage.vala:147 +msgid "No events found" +msgstr "没有找到事件" -#: ../src/Resources.vala:244 -msgid "Show only rejected photos" -msgstr "只显示次要的照片" +#: src/events/EventsDirectoryPage.vala:220 +#, fuzzy +#| msgid "Events" +msgid "All Events" +msgstr "事件" -#: ../src/Resources.vala:246 -msgid "All + _Rejected" -msgstr "全部为次品(_R)" +#: src/events/EventsDirectoryPage.vala:234 +msgid "Undated" +msgstr "取消隐藏" -#: ../src/Resources.vala:247 ../src/Resources.vala:248 -msgid "Show all photos, including rejected" -msgstr "显示所有照片,包括次品" +#: src/events/EventsDirectoryPage.vala:235 +msgid "%Y" +msgstr "%Y" -#: ../src/Resources.vala:250 -msgid "_All Photos" -msgstr "所有照片(_A)" +#: src/events/EventsDirectoryPage.vala:236 +msgid "%B" +msgstr "%m" -#: ../src/Resources.vala:251 ../src/Resources.vala:252 -msgid "Show all photos" -msgstr "显示所有照片" +#. if no name, pretty up the start time +#: src/Event.vala:753 +#, c-format +msgid "Event %s" +msgstr "事件 %s" -#: ../src/Resources.vala:254 -msgid "_Ratings" -msgstr "评分(_R)" +#: src/Exporter.vala:232 +#, c-format +msgid "Unable to generate a temporary file for %s: %s" +msgstr "无法为 %s 生成临时文件:%s" -#: ../src/Resources.vala:255 -msgid "Display each photo's rating" -msgstr "显示每张照片的评分" +#: src/Exporter.vala:299 +msgid "Exporting" +msgstr "正在导出" -#: ../src/Resources.vala:257 -msgid "_Filter Photos" -msgstr "过滤照片(_F)" +#: src/Exporter.vala:317 +#, fuzzy, c-format +#| msgid "File %s already exists. Replace?" +msgid "File %s already exists. Replace?" +msgstr "文件 %s 已存在。是否替换?" -#: ../src/Resources.vala:258 -msgid "Filter Photos" -msgstr "过滤照片" +#: src/Exporter.vala:319 +msgid "_Skip" +msgstr "跳过(_S)" -#: ../src/Resources.vala:259 -msgid "Limit the number of photos displayed based on a filter" -msgstr "限制在过滤条件下显示的照片数量" +#: src/Exporter.vala:319 +msgid "_Replace" +msgstr "替换(_R)" -#: ../src/Resources.vala:261 -msgid "_Duplicate" -msgstr "副本(_D)" +#: src/Exporter.vala:319 +msgid "Replace _All" +msgstr "全部替换(_A)" -#: ../src/Resources.vala:262 -msgid "Duplicate" -msgstr "副本" +#: src/Exporter.vala:319 +msgid "Export" +msgstr "导出" -#: ../src/Resources.vala:263 -msgid "Make a duplicate of the photo" -msgstr "创建照片副本" +#: src/folders/Branch.vala:144 +msgid "Folders" +msgstr "文件夹" -#: ../src/Resources.vala:265 -msgid "_Export..." -msgstr "导出(_E)..." +#: src/library/Branch.vala:30 src/library/Branch.vala:130 ui/shotwell.ui:412 +msgid "Library" +msgstr "媒体库" -#: ../src/Resources.vala:267 -msgid "_Print..." -msgstr "打印(_P)..." +#: src/library/Branch.vala:97 src/SearchFilter.vala:1083 +msgid "Photos" +msgstr "照片" -#: ../src/Resources.vala:269 -msgid "Pu_blish..." -msgstr "发布(_B)..." +#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1102 +#: src/SearchFilter.vala:1103 +msgid "Flagged" +msgstr "已标注" -#: ../src/Resources.vala:271 -msgid "Publish to various websites" -msgstr "将所选照片发布到各种网站上" +#: src/library/ImportQueuePage.vala:8 +#, fuzzy +#| msgid "Importing" +msgid "Importing…" +msgstr "导入中" -#: ../src/Resources.vala:273 -msgid "Edit _Title..." -msgstr "编辑标题(_T)..." +#: src/library/ImportQueuePage.vala:122 +#, fuzzy +#| msgid "Preparing to import" +msgid "Preparing to import…" +msgstr "正在准备导入" -#: ../src/Resources.vala:276 -msgid "Edit _Comment..." -msgstr "编辑备注(_C)..." +#: src/library/ImportQueuePage.vala:149 +#, c-format +msgid "Imported %s" +msgstr "已导入 %s" -#: ../src/Resources.vala:277 -msgid "Edit Comment" -msgstr "修改备注" +#: src/library/LastImportPage.vala:8 +msgid "Last Import" +msgstr "最近导入" -#: ../src/Resources.vala:279 -msgid "Edit Event _Comment..." -msgstr "修改事件备注(_C)" +#: src/library/LibraryWindow.vala:505 +msgid "Import From Folder" +msgstr "从文件夹导入" -#: ../src/Resources.vala:282 -msgid "_Adjust Date and Time..." -msgstr "修改日期和时间(_A)..." +#: src/library/LibraryWindow.vala:574 ui/trash.ui:288 +msgid "Empty Trash" +msgstr "清空回收站" -#: ../src/Resources.vala:283 -msgid "Adjust Date and Time" -msgstr "修改日期和时间" +#: src/library/LibraryWindow.vala:574 +#, fuzzy +#| msgid "Emptying Trash..." +msgid "Emptying Trash…" +msgstr "正在清空回收站..." -#: ../src/Resources.vala:285 -msgid "Add _Tags..." -msgstr "添加标签(_T)..." +#: src/library/LibraryWindow.vala:770 +#, c-format +msgid "" +"Shotwell is configured to import photos to your home directory.\n" +"We recommend changing this in Edit %s Preferences.\n" +"Do you want to continue importing photos?" +msgstr "" +"Shotwell 配置为将照片导入到您的主文件夹。\n" +"我们推荐您在 编辑 %s 首选项中更改此设置。\n" +"您想继续导入照片吗?" -#: ../src/Resources.vala:286 -msgid "_Add Tags..." -msgstr "添加标注(A)…" +#: src/library/LibraryWindow.vala:773 ui/shotwell.ui:142 +msgid "Library Location" +msgstr "媒体库位置" -#: ../src/Resources.vala:287 ../src/Resources.vala:318 -msgid "Add Tags" -msgstr "添加标签" +#. TODO: Specify which directory/file. +#: src/library/LibraryWindow.vala:786 +msgid "Photos cannot be imported from this directory." +msgstr "无法从此文件夹导入照片。" -#: ../src/Resources.vala:289 -msgid "_Preferences" -msgstr "首选项(_P)" +#: src/library/LibraryWindow.vala:1066 +#, c-format +msgid "%s (%d%%)" +msgstr "%s (%d%%)" -#: ../src/Resources.vala:291 -msgid "Open With E_xternal Editor" -msgstr "用外部编辑器打开(_X)" +#: src/library/LibraryWindow.vala:1110 src/library/LibraryWindow.vala:1121 +#, fuzzy +#| msgid "Updating library..." +msgid "Updating library…" +msgstr "更新媒体库..." -#: ../src/Resources.vala:293 -msgid "Open With RA_W Editor" -msgstr "用 RA_W 编辑器打开" +#: src/library/LibraryWindow.vala:1127 +#, fuzzy +#| msgid "Preparing to auto-import photos..." +msgid "Preparing to auto-import photos…" +msgstr "准备自动导入照片..." -#: ../src/Resources.vala:295 -msgid "Send _To..." -msgstr "发送至(_T)..." +#: src/library/LibraryWindow.vala:1132 +#, fuzzy +#| msgid "Auto-importing photos..." +msgid "Auto-importing photos…" +msgstr "自动导入照片..." -#: ../src/Resources.vala:296 -msgid "Send T_o..." -msgstr "发送至(_O)…" +#: src/library/LibraryWindow.vala:1140 +#, fuzzy +#| msgid "Writing metadata to files..." +msgid "Writing metadata to files…" +msgstr "写入元数据到文件..." -#: ../src/Resources.vala:298 -msgid "_Find..." -msgstr "查找(_F)..." +#: src/library/OfflinePage.vala:8 +msgid "Missing Files" +msgstr "丢失文件" -#: ../src/Resources.vala:299 -msgid "Find" -msgstr "查找" +#: src/library/OfflinePage.vala:103 +#, fuzzy +#| msgid "Deleting..." +msgid "Deleting…" +msgstr "删除..." -#: ../src/Resources.vala:300 -msgid "Find an image by typing text that appears in its name or tags" -msgstr "依据名称或者标签查找图片" +#: src/library/TrashPage.vala:8 +msgid "Trash" +msgstr "回收站" -#: ../src/Resources.vala:302 -msgid "_Flag" -msgstr "标注(_F)" +#: src/library/TrashPage.vala:101 +msgid "Trash is empty" +msgstr "回收站为空" -#: ../src/Resources.vala:304 -msgid "Un_flag" -msgstr "取消标注(_F)" +#: src/library/TrashPage.vala:105 +msgid "Delete" +msgstr "刪除" -#: ../src/Resources.vala:307 -#, c-format -msgid "Unable to launch editor: %s" -msgstr "无法启动编辑器:%s" +#: src/library/TrashPage.vala:106 +msgid "Deleting Photos" +msgstr "删除照片" -#: ../src/Resources.vala:312 -#, c-format -msgid "Add Tag \"%s\"" -msgstr "添加标签 %s" +#: src/main.vala:54 +#, fuzzy, c-format +#| msgid "" +#| "Your photo library is not compatible with this version of Shotwell. It " +#| "appears it was created by Shotwell %s (schema %d). This version is %s " +#| "(schema %d). Please use the latest version of Shotwell." +msgid "" +"Your photo library is not compatible with this version of Shotwell. It " +"appears it was created by Shotwell %s (schema %d). This version is %s " +"(schema %d). Please use the latest version of Shotwell." +msgstr "" +"您的媒体库和当前版本的 Shotwell 不兼容。它似乎是由 Shotwell %s (schema %d)创" +"建的,而当前版本是 %s (schema %d) 。请使用最新版本的 Shotwell。" -#: ../src/Resources.vala:314 -#, c-format -msgid "Add Tags \"%s\" and \"%s\"" -msgstr "添加标签 %s 和 %s" +#: src/main.vala:59 +#, fuzzy, c-format +#| msgid "" +#| "Shotwell was unable to upgrade your photo library from version %s (schema " +#| "%d) to %s (schema %d). For more information please check the Shotwell " +#| "Wiki at %s" +msgid "" +"Shotwell was unable to upgrade your photo library from version %s (schema " +"%d) to %s (schema %d). For more information please check the Shotwell Wiki " +"at %s" +msgstr "" +"Shotwell 无法将您的媒体库从 %s (schema %d)版本升级到 %s (schema %d)版本。更多" +"的信息请查询 Shotwell 维基 %s" -#: ../src/Resources.vala:322 -#, c-format -msgid "_Delete Tag \"%s\"" -msgstr "删除标签 %s (_D)" +#: src/main.vala:65 +#, fuzzy, c-format +#| msgid "" +#| "Your photo library is not compatible with this version of Shotwell. It " +#| "appears it was created by Shotwell %s (schema %d). This version is %s " +#| "(schema %d). Please clear your library by deleting %s and re-import your " +#| "photos." +msgid "" +"Your photo library is not compatible with this version of Shotwell. It " +"appears it was created by Shotwell %s (schema %d). This version is %s " +"(schema %d). Please clear your library by deleting %s and re-import your " +"photos." +msgstr "" +"您的媒体库和当前版本的 Shotwell 不兼容。它似乎是由 Shotwell %s (schema %d)创" +"建的。当前版本是 %s (schema %d)。请删除 %s 来释放您的照片库然后重新导入照片。" -#: ../src/Resources.vala:326 -#, c-format -msgid "Delete Tag \"%s\"" -msgstr "删除标签 %s" +#: src/main.vala:71 +#, fuzzy, c-format +#| msgid "Unknown error attempting to verify Shotwell's database: %s" +msgid "Unknown error attempting to verify Shotwell’s database: %s" +msgstr "验证 Shotwell 数据库时发生未知错误:%s" -#: ../src/Resources.vala:329 -msgid "Delete Tag" -msgstr "删除标签" +#: src/main.vala:104 +msgid "Loading Shotwell" +msgstr "正在载入 Shotwell" -#: ../src/Resources.vala:332 -msgid "_New" -msgstr "新建(_N)" +#: src/main.vala:294 +#, fuzzy +#| msgid "Path to Shotwell's private data" +msgid "Path to Shotwell’s private data" +msgstr "Shotwell 程序数据目录" -#: ../src/Resources.vala:335 -#, c-format -msgid "Re_name Tag \"%s\"..." -msgstr "重命名标签 %s (_N)..." +#: src/main.vala:294 +msgid "DIRECTORY" +msgstr "文件夹" -#: ../src/Resources.vala:339 -#, c-format -msgid "Rename Tag \"%s\" to \"%s\"" -msgstr "重命名标签 %s 为 %s" +#: src/main.vala:298 +msgid "Do not monitor library directory at runtime for changes" +msgstr "请勿在程序运行时监视文件夹变化" -#: ../src/Resources.vala:342 -msgid "_Rename..." -msgstr "重命名(_R)..." +#: src/main.vala:302 +#, fuzzy +#| msgid "Don't display startup progress meter" +msgid "Don’t display startup progress meter" +msgstr "不显示启动进程条" -#: ../src/Resources.vala:344 -msgid "Modif_y Tags..." -msgstr "修改标签(_Y)..." +#: src/main.vala:306 +#, fuzzy +#| msgid "Show the application's version" +msgid "Show the application’s version" +msgstr "显示程序版本" -#: ../src/Resources.vala:345 -msgid "Modify Tags" -msgstr "修改标签" +#. init GTK (valac has already called g_threads_init()) +#: src/main.vala:338 +msgid "[FILE]" +msgstr "[文件]" -#: ../src/Resources.vala:348 -#, c-format -msgid "Tag Photo as \"%s\"" -msgstr "为照片添加标签 %s" +#: src/main.vala:342 +#, fuzzy, c-format +#| msgid "" +#| "Run '%s --help' to see a full list of available command line options.\n" +msgid "Run “%s --help” to see a full list of available command line options.\n" +msgstr "运行 '%s --help' 来查看可用命令行选项的完整列表。\n" -#: ../src/Resources.vala:348 +#: src/MediaMonitor.vala:400 #, c-format -msgid "Tag Photos as \"%s\"" -msgstr "为照片添加标签 %s" +msgid "Unable to process monitoring updates: %s" +msgstr "无法进行监控更新:%s" -#: ../src/Resources.vala:352 -#, c-format -msgid "Tag the selected photo as \"%s\"" -msgstr "为选中的照片添加标签 %s" +#: src/MediaPage.vala:158 +msgid "Adjust the size of the thumbnails" +msgstr "改变缩略图大小" -#: ../src/Resources.vala:353 +#: src/MediaPage.vala:493 #, c-format -msgid "Tag the selected photos as \"%s\"" -msgstr "为选中的照片添加标签 %s" +msgid "" +"Shotwell was unable to play the selected video:\n" +"%s" +msgstr "" +"Shotwell 无法播放选中视频:\n" +"%s" -#: ../src/Resources.vala:357 -#, c-format -msgid "Remove Tag \"%s\" From _Photo" -msgstr "从照片移除标签 %s (_P)" +#: src/Page.vala:1300 +msgid "No photos/videos" +msgstr "没有照片/视频" -#: ../src/Resources.vala:358 -#, c-format -msgid "Remove Tag \"%s\" From _Photos" -msgstr "从照片移除标签 %s (_P)" +#: src/Page.vala:1304 +msgid "No photos/videos found which match the current filter" +msgstr "" -#: ../src/Resources.vala:362 -#, c-format -msgid "Remove Tag \"%s\" From Photo" -msgstr "从照片移除标签 %s" +#: src/Page.vala:2610 +msgid "Photos cannot be exported to this directory." +msgstr "照片不可以被导出到该文件夹。" -#: ../src/Resources.vala:363 -#, c-format -msgid "Remove Tag \"%s\" From Photos" -msgstr "从照片移除标签 %s" +#. previous button +#: src/PhotoPage.vala:535 +msgid "Previous photo" +msgstr "上一张照片" -#: ../src/Resources.vala:367 -#, c-format -msgid "Unable to rename tag to \"%s\" because the tag already exists." -msgstr "无法重命名标签为 %s,同名标签已存在。" +#. next button +#: src/PhotoPage.vala:541 +msgid "Next photo" +msgstr "下一张照片" -#: ../src/Resources.vala:371 +#: src/PhotoPage.vala:1847 #, c-format -msgid "Unable to rename search to \"%s\" because the search already exists." -msgstr "无法重命名搜索为 %s,同名搜索已存在。" - -#: ../src/Resources.vala:374 -msgid "Saved Search" -msgstr "保存搜索" +msgid "Photo source file missing: %s" +msgstr "照片源文件丢失:%s" -#: ../src/Resources.vala:376 -msgid "Delete Search" -msgstr "删除搜索" +#: src/PhotoPage.vala:2997 +#, c-format +msgid "Unable to export %s: %s" +msgstr "无法导出 %s:%s" -#: ../src/Resources.vala:379 -msgid "_Edit..." -msgstr "编辑(_E)..." +#: src/photos/BmpSupport.vala:32 +msgid "BMP" +msgstr "BMP" -#: ../src/Resources.vala:380 -msgid "Re_name..." -msgstr "重命名(_N)..." +#: src/photos/JfifSupport.vala:84 +msgid "JPEG" +msgstr "JPEG" -#: ../src/Resources.vala:383 +#: src/photos/JfifSupport.vala:185 #, c-format -msgid "Rename Search \"%s\" to \"%s\"" -msgstr "重命名搜索 %s 为 %s" +msgid "Low (%d%%)" +msgstr "低(%d%%)" -#: ../src/Resources.vala:387 +#: src/photos/JfifSupport.vala:188 #, c-format -msgid "Delete Search \"%s\"" -msgstr "删除搜索 %s" +msgid "Medium (%d%%)" +msgstr "中(%d%%)" -#: ../src/Resources.vala:545 +#: src/photos/JfifSupport.vala:191 #, c-format -msgid "Rate %s" -msgstr "评分 %s" +msgid "High (%d%%)" +msgstr "高(%d%%)" -#: ../src/Resources.vala:546 +#: src/photos/JfifSupport.vala:194 #, c-format -msgid "Set rating to %s" -msgstr "设置评分为 %s" +msgid "Maximum (%d%%)" +msgstr "最大(%d%%)" -#: ../src/Resources.vala:547 -#, c-format -msgid "Setting rating to %s" -msgstr "设置评分为 %s" +#: src/photos/PngSupport.vala:30 +msgid "PNG" +msgstr "PNG" -#: ../src/Resources.vala:549 -#, c-format -msgid "Display %s" -msgstr "显示 %s" +#: src/photos/RawSupport.vala:134 +msgid "RAW" +msgstr "RAW" -#: ../src/Resources.vala:550 -#, c-format -msgid "Only show photos with a rating of %s" -msgstr "只显示评分为 %s 的照片" +#: src/photos/TiffSupport.vala:86 +msgid "TIFF" +msgstr "TIFF" -#: ../src/Resources.vala:551 -#, c-format -msgid "%s or Better" -msgstr "%s 或更高" +#: src/Photo.vala:3753 +msgid "modified" +msgstr "修改" -#: ../src/Resources.vala:552 -#, c-format -msgid "Display %s or Better" -msgstr "显示 %s 或更高" +#: src/Printing.vala:255 +msgid "Fill the entire page" +msgstr "填充整个页面" -#: ../src/Resources.vala:553 -#, c-format -msgid "Only show photos with a rating of %s or better" -msgstr "只显示评分为 %s 或更高的照片" +#: src/Printing.vala:256 +msgid "2 images per page" +msgstr "每页 2 张" -#: ../src/Resources.vala:644 -msgid "Remove the selected photos from the trash" -msgstr "从回收站中移除选中照片" +#: src/Printing.vala:257 +msgid "4 images per page" +msgstr "每页 4 张" -#: ../src/Resources.vala:645 -msgid "Remove the selected photos from the library" -msgstr "从媒体库移除选定照片" +#: src/Printing.vala:258 +msgid "6 images per page" +msgstr "每页 6 张" -#: ../src/Resources.vala:647 -msgid "_Restore" -msgstr "还原(_R)" +#: src/Printing.vala:259 +msgid "8 images per page" +msgstr "每页 8 张" -#: ../src/Resources.vala:648 -msgid "Move the selected photos back into the library" -msgstr "将选定照片移回至媒体库" +#: src/Printing.vala:260 +msgid "16 images per page" +msgstr "每页 16 张" -#: ../src/Resources.vala:650 -msgid "Show in File Mana_ger" -msgstr "在文件管理器显示(_G)" +#: src/Printing.vala:261 +msgid "32 images per page" +msgstr "每页 32 张" -#: ../src/Resources.vala:651 -msgid "Open the selected photo's directory in the file manager" -msgstr "在文件管理器中打开选定照片目录" +#: src/Printing.vala:348 +msgid "in." +msgstr "英寸" -#: ../src/Resources.vala:654 -#, c-format -msgid "Unable to open in file manager: %s" -msgstr "无法在文件管理器中打开:%s" +#: src/Printing.vala:349 +msgid "cm" +msgstr "厘米" -#: ../src/Resources.vala:657 -msgid "R_emove From Library" -msgstr "从媒体库移除(_E)" +#: src/Printing.vala:876 +msgid "Image Settings" +msgstr "图像设置" -#: ../src/Resources.vala:659 -msgid "_Move to Trash" -msgstr "移至回收站(_M)" +#: src/Printing.vala:889 +#, fuzzy +#| msgid "Printing..." +msgid "Printing…" +msgstr "打印中..." -#: ../src/Resources.vala:661 -msgid "Select _All" -msgstr "选择全部(_A)" +#: src/Printing.vala:909 src/Printing.vala:1112 +#, c-format +msgid "" +"Unable to print photo:\n" +"\n" +"%s" +msgstr "" +"无法打印照片:\n" +"\n" +"%s" -#: ../src/Resources.vala:662 -msgid "Select all items" -msgstr "选择全部项目" +#: src/Properties.vala:87 +msgid "Today" +msgstr "今天" -#. ...precache the timestamp string... -#. / Locale-specific time format for 12-hour time, i.e. 8:31 PM -#. / Precede modifier with a dash ("-") to pad with spaces, otherwise will pad with zeroes -#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: ../src/Resources.vala:743 -msgid "%-I:%M %p" -msgstr "%-I:%M %p" +#: src/Properties.vala:89 +msgid "Yesterday" +msgstr "昨天" -#. / Locale-specific time format for 12-hour time with seconds, i.e. 8:31:42 PM -#. / Precede modifier with a dash ("-") to pad with spaces, otherwise will pad with zeroes -#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: ../src/Resources.vala:748 -msgid "%-I:%M:%S %p" -msgstr "%-I:%M:%S %p" +#: src/Properties.vala:346 +msgid "Items:" +msgstr "项目:" -#. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" -#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: ../src/Resources.vala:752 -msgid "%a %b %d, %Y" -msgstr "%Y年%m月%d日%A" +#: src/Properties.vala:349 +#, c-format +msgid "%d Event" +msgid_plural "%d Events" +msgstr[0] "%d 个事件" -#. / Locale-specific starting date format for multi-date strings, -#. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" -#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#. / Locale-specific calendar date format for multi-month strings, -#. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" -#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: ../src/Resources.vala:757 ../src/Resources.vala:767 -msgid "%a %b %d" -msgstr "%m月%d日%A" +#. display only one date if start and end are the same +#: src/Properties.vala:380 +msgid "Date:" +msgstr "日期:" -#. / Locale-specific ending date format for multi-date strings, -#. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" -#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: ../src/Resources.vala:762 -msgid "%d, %Y" -msgstr "%Y年%m月%d日" +#. display only one time if start and end are the same +#: src/Properties.vala:384 +msgid "Time:" +msgstr "时间:" + +#. display time range +#. display date range +#: src/Properties.vala:387 src/Properties.vala:392 +msgid "From:" +msgstr "从:" -#: ../src/Screensaver.vala:18 ../src/SlideshowPage.vala:141 -msgid "Slideshow" -msgstr "幻灯片放映" +#: src/Properties.vala:388 src/Properties.vala:393 +msgid "To:" +msgstr "到:" -#. Flagged label and toggle -#: ../src/SearchFilter.vala:587 ../src/SearchFilter.vala:588 -#: ../src/SearchFilter.vala:990 ../src/library/FlaggedPage.vala:8 -msgid "Flagged" -msgstr "已标注" +#: src/Properties.vala:407 +msgid "Duration:" +msgstr "持续时长:" -#: ../src/SearchFilter.vala:593 ../src/SearchFilter.vala:594 -msgid "Photos" -msgstr "照片" +#: src/Properties.vala:407 +#, c-format +msgid "%.1f seconds" +msgstr "%.1f 秒" -#: ../src/SearchFilter.vala:599 ../src/SearchFilter.vala:600 -msgid "Videos" -msgstr "视频" +#: src/Properties.vala:411 +msgid "Developer:" +msgstr "开发者:" -#: ../src/SearchFilter.vala:605 -msgid "RAW Photos" -msgstr "RAW 照片" +#. nothing special to be done for now for Events +#: src/Properties.vala:586 +msgid "Location:" +msgstr "地点:" -#: ../src/SearchFilter.vala:606 -msgid "RAW photos" -msgstr "RAW 照片" +#: src/Properties.vala:589 +msgid "File size:" +msgstr "文件大小:" -#: ../src/SearchFilter.vala:952 -#, c-format -msgid "Error loading UI file %s: %s" -msgstr "载入 UI 文件 %s 时出错:%s" +#: src/Properties.vala:593 +msgid "Current Development:" +msgstr "当前开发:" -#. Type label and toggles -#: ../src/SearchFilter.vala:969 -msgid "Type" -msgstr "类型" +#: src/Properties.vala:595 +msgid "Original dimensions:" +msgstr "原始尺寸:" -#. Rating label and button -#: ../src/SearchFilter.vala:1003 ../src/searches/SearchBoolean.vala:184 -msgid "Rating" -msgstr "评分" +#: src/Properties.vala:598 +msgid "Camera make:" +msgstr "相机厂商:" -#: ../src/SlideshowPage.vala:49 ../src/SlideshowPage.vala:182 -msgid "Settings" -msgstr "设置" +#: src/Properties.vala:601 +msgid "Camera model:" +msgstr "相机型号:" -#. Set up toolbar -#. add toolbar buttons -#: ../src/SlideshowPage.vala:161 -msgid "Back" -msgstr "后退" +#: src/Properties.vala:604 +msgid "Flash:" +msgstr "闪光灯:" -#: ../src/SlideshowPage.vala:162 -msgid "Go to the previous photo" -msgstr "跳到上一张照片" +#: src/Properties.vala:606 +msgid "Focal length:" +msgstr "焦距:" -#: ../src/SlideshowPage.vala:168 ../src/SlideshowPage.vala:273 -msgid "Pause" -msgstr "暂停" +#: src/Properties.vala:609 +msgid "Exposure date:" +msgstr "曝光日期:" -#: ../src/SlideshowPage.vala:169 ../src/SlideshowPage.vala:274 -msgid "Pause the slideshow" -msgstr "暂停幻灯片演示" +#: src/Properties.vala:612 +msgid "Exposure time:" +msgstr "曝光时间:" -#: ../src/SlideshowPage.vala:175 -msgid "Next" -msgstr "前进" +#: src/Properties.vala:615 +msgid "Exposure bias:" +msgstr "曝光偏差:" -#: ../src/SlideshowPage.vala:176 -msgid "Go to the next photo" -msgstr "跳到下一张照片" +#: src/Properties.vala:617 +msgid "GPS latitude:" +msgstr "GPS 纬度:" -#: ../src/SlideshowPage.vala:183 -msgid "Change slideshow settings" -msgstr "改变幻灯片演示设置" +#: src/Properties.vala:620 +msgid "GPS longitude:" +msgstr "GPS 经度:" -#. An entire slideshow set might be missing, so check for a loop. -#: ../src/SlideshowPage.vala:237 -msgid "All photo source files are missing." -msgstr "所有的照片源文件丢失。" +#: src/Properties.vala:623 +msgid "Artist:" +msgstr "艺术家:" -#: ../src/SlideshowPage.vala:269 -msgid "Play" -msgstr "播放" +#: src/Properties.vala:625 +msgid "Copyright:" +msgstr "版权:" -#: ../src/SlideshowPage.vala:270 -msgid "Continue the slideshow" -msgstr "继续幻灯片演示" +#: src/Properties.vala:627 +msgid "Software:" +msgstr "软件:" -#: ../src/Tag.vala:817 -msgid "untitled" -msgstr "未命名" +#: src/Properties.vala:644 +msgid "Extended Information" +msgstr "扩展信息" -#. multiple videos -#: ../src/VideoSupport.vala:492 -msgid "Export Videos" -msgstr "导出视频" +#: src/publishing/PublishingPluginHost.vala:11 +msgid "Preparing for upload" +msgstr "准备上传" -#: ../src/camera/Branch.vala:87 -msgid "Cameras" -msgstr "相机" +#: src/publishing/PublishingPluginHost.vala:12 +#, c-format +msgid "Uploading %d of %d" +msgstr "正在上传 %d/%d" -#: ../src/camera/ImportPage.vala:459 -msgid "" -"Unable to unmount camera. Try unmounting the camera from the file manager." -msgstr "不能卸载相机。请尝试从文件管理器中卸载相机。" +#: src/publishing/PublishingPluginHost.vala:81 +#, fuzzy, c-format +#| msgid "Publishing to %s can't continue because an error occurred:" +msgid "Publishing to %s can’t continue because an error occurred:" +msgstr "无法继续发布到 %s 因为发生了一个错误:" -#. hide duplicates checkbox -#: ../src/camera/ImportPage.vala:776 -msgid "Hide photos already imported" -msgstr "隐藏已经导入的照片" +#: src/publishing/PublishingPluginHost.vala:84 +msgid "To try publishing to another service, select one from the above menu." +msgstr "尝试发布到其他的服务,从上面的菜单中选择一个。" -#: ../src/camera/ImportPage.vala:777 -msgid "Only display photos that have not been imported" -msgstr "只显示尚未导入的照片" +#. Here, we check whether more than one item is being uploaded, and if so, display +#. an alternate message. +#: src/publishing/PublishingUI.vala:104 +#, fuzzy +#| msgid "The selected video was successfully published." +msgid "The selected video was successfully published." +msgid_plural "The selected videos were successfully published." +msgstr[0] "选中的视频已经成功发布。" -#. Ticket #3304 - Import page shouldn't display confusing message -#. prior to import. -#. TODO: replace this with approved text for "talking to camera, -#. please wait" once new strings are being accepted. -#: ../src/camera/ImportPage.vala:845 -msgid "Starting import, please wait..." -msgstr "正在开始导入,请稍候..." +#: src/publishing/PublishingUI.vala:109 +#, fuzzy +#| msgid "The selected photo was successfully published." +msgid "The selected photo was successfully published." +msgid_plural "The selected photos were successfully published." +msgstr[0] "选中的照片已经成功发布。" -#: ../src/camera/ImportPage.vala:884 -msgid "Import _Selected" -msgstr "导入选中项目(_S)" +#: src/publishing/PublishingUI.vala:115 +msgid "The selected photos/videos were successfully published." +msgstr "选中的照片/视频已经成功发布。" -#: ../src/camera/ImportPage.vala:885 -msgid "Import the selected photos into your library" -msgstr "导入选定的照片到您的媒体库" +#: src/publishing/PublishingUI.vala:127 +#, fuzzy +#| msgid "Fetching account information..." +msgid "Fetching account information…" +msgstr "获取帐号信息..." -#: ../src/camera/ImportPage.vala:890 -msgid "Import _All" -msgstr "导入全部(_A)" +#: src/publishing/PublishingUI.vala:133 +#, fuzzy +#| msgid "Logging in..." +msgid "Logging in…" +msgstr "正在登录……" -#: ../src/camera/ImportPage.vala:891 -msgid "Import all the photos into your library" -msgstr "导入所有照片到您的媒体库" +#: src/publishing/PublishingUI.vala:193 +msgid "Publish Photos" +msgstr "发布照片" -#. it's mounted, offer to unmount for the user -#: ../src/camera/ImportPage.vala:1012 -msgid "" -"Shotwell needs to unmount the camera from the filesystem in order to access " -"it. Continue?" -msgstr "Shotwell 需要从文件系统卸载相机来访问它。是否继续?" +#: src/publishing/PublishingUI.vala:194 +msgid "Publish photos _to:" +msgstr "发布照片到(_T):" -#: ../src/camera/ImportPage.vala:1018 -msgid "_Unmount" -msgstr "卸载(_U)" +#: src/publishing/PublishingUI.vala:196 +msgid "Publish Videos" +msgstr "发布视频" -#: ../src/camera/ImportPage.vala:1023 -msgid "Please unmount the camera." -msgstr "请卸载相机。" +#: src/publishing/PublishingUI.vala:197 +msgid "Publish videos _to" +msgstr "发布视频到(_T)" -#: ../src/camera/ImportPage.vala:1028 -msgid "" -"The camera is locked by another application. Shotwell can only access the " -"camera when it's unlocked. Please close any other application using the " -"camera and try again." -msgstr "" -"该相机被其他程序锁定,仅在解锁后 Shotwell 才能访问。请关闭其他使用该相机的程" -"序后重试。" +#: src/publishing/PublishingUI.vala:199 +msgid "Publish Photos and Videos" +msgstr "发布照片和视频" -#: ../src/camera/ImportPage.vala:1038 -msgid "Please close any other application using the camera." -msgstr "请关闭其他使用该相机的程序。" +#: src/publishing/PublishingUI.vala:200 +msgid "Publish photos and videos _to" +msgstr "发布照片和视频到(_T)" + +#. There are no enabled publishing services that accept this media type, +#. warn the user. +#: src/publishing/PublishingUI.vala:410 +msgid "Unable to publish" +msgstr "无法发布" -#: ../src/camera/ImportPage.vala:1043 +#: src/publishing/PublishingUI.vala:411 #, c-format msgid "" -"Unable to fetch previews from the camera:\n" -"%s" +"Shotwell cannot publish the selected items because you do not have a " +"compatible publishing plugin enabled. To correct this, choose Edit %s " +"Preferences and enable one or more of the publishing plugins on the " +"Plugins tab." msgstr "" -"无法从相机获取预览:\n" -"%s" - -#: ../src/camera/ImportPage.vala:1060 -msgid "Unmounting..." -msgstr "卸载..." +"Shotwell 无法发布选定项目,因为您尚未启用兼容的发布插件。要修复此问题,请选择" +"编辑 %s 首选项,并且在插件标签页中启用一个或多个发布插件。" -#: ../src/camera/ImportPage.vala:1166 -msgid "Fetching photo information" -msgstr "获取照片信息" +#: src/publishing/Publishing.vala:16 +msgid "Publishing" +msgstr "发布" -#: ../src/camera/ImportPage.vala:1521 -#, c-format -msgid "Fetching preview for %s" -msgstr "获取 %s 的预览" +#: src/Resources.vala:140 src/Resources.vala:145 ui/collection.ui:149 +msgid "Rotate" +msgstr "旋转" -#: ../src/camera/ImportPage.vala:1637 -#, c-format -msgid "Unable to lock camera: %s" -msgstr "无法锁定相机:%s" +#: src/Resources.vala:141 +msgid "Rotate Right" +msgstr "向右旋转" -#: ../src/camera/ImportPage.vala:1722 -#, c-format -msgid "Delete this photo from camera?" -msgid_plural "Delete these %d photos from camera?" -msgstr[0] "从相机删除 %d 张照片?" +#: src/Resources.vala:142 ui/collection.ui:146 +msgid "Rotate the photos right (press Ctrl to rotate left)" +msgstr "向右旋转照片(按住 Ctrl 向左旋转)" -#: ../src/camera/ImportPage.vala:1725 -#, c-format -msgid "Delete this video from camera?" -msgid_plural "Delete these %d videos from camera?" -msgstr[0] "从相机删除这 %d 个视频?" +#: src/Resources.vala:146 +msgid "Rotate Left" +msgstr "向左旋转" -#: ../src/camera/ImportPage.vala:1728 -#, c-format -msgid "Delete this photo/video from camera?" -msgid_plural "Delete these %d photos/videos from camera?" -msgstr[0] "从相机删除 %d 个照片/视频?" +#: src/Resources.vala:147 +msgid "Rotate the photos left" +msgstr "向左旋转照片" -#: ../src/camera/ImportPage.vala:1731 -#, c-format -msgid "Delete these files from camera?" -msgid_plural "Delete these %d files from camera?" -msgstr[0] "从相机删除 %d 个文件?" +#: src/Resources.vala:150 +msgid "Flip Horizontally" +msgstr "水平翻转" -#: ../src/camera/ImportPage.vala:1758 -msgid "Removing photos/videos from camera" -msgstr "正在从相机移除照片/视频" +#: src/Resources.vala:153 +msgid "Flip Vertically" +msgstr "竖直翻转" -#: ../src/camera/ImportPage.vala:1762 -#, c-format -msgid "Unable to delete %d photo/video from the camera due to errors." -msgid_plural "Unable to delete %d photos/videos from the camera due to errors." -msgstr[0] "由于错误无法从相机中删除 %d 个照片/视频。" +#: src/Resources.vala:155 ui/direct.ui:191 ui/events_directory.ui:168 +#: ui/event.ui:436 ui/import_queue.ui:83 ui/import.ui:201 ui/media.ui:419 +#: ui/offline.ui:198 ui/photo.ui:402 ui/tags.ui:438 ui/trash.ui:207 +msgid "_About" +msgstr "关于(_A)" -#: ../src/data_imports/DataImports.vala:22 -msgid "Data Imports" -msgstr "数据导入" +#: src/Resources.vala:156 +msgid "_Apply" +msgstr "应用(_A)" -#. Send an empty job to the queue to mark the end of the import -#: ../src/data_imports/DataImportsPluginHost.vala:65 -#: ../src/data_imports/DataImportsPluginHost.vala:78 -#, c-format -msgid "%s Database" -msgstr "%s 数据库" +#: src/Resources.vala:159 ui/direct.ui:44 ui/events_directory.ui:32 +#: ui/event.ui:47 ui/import.ui:40 ui/media.ui:47 ui/offline.ui:32 +#: ui/photo.ui:55 ui/tags.ui:47 ui/top.ui:10 ui/trash.ui:37 +msgid "_Edit" +msgstr "编辑(_E)" -#: ../src/data_imports/DataImportsPluginHost.vala:148 -#: ../src/data_imports/DataImportsPluginHost.vala:294 -#, c-format -msgid "Importing from %s can't continue because an error occurred:" -msgstr "发生错误,无法继续导入 %s:" +#: src/Resources.vala:160 +#, fuzzy +#| msgid "_Format:" +msgid "_Forward" +msgstr "格式(_F):" -#: ../src/data_imports/DataImportsPluginHost.vala:151 -msgid "To try importing from another service, select one from the above menu." -msgstr "要尝试从其他服务导入,请从上面的菜单中选择一个。" +#: src/Resources.vala:161 ui/direct.ui:62 ui/events_directory.ui:125 +#: ui/photo.ui:173 +msgid "Fulls_creen" +msgstr "全屏(_C)" -#: ../src/data_imports/DataImportsUI.vala:10 -msgid "" -"You do not have any data imports plugins enabled.\n" -"\n" -"In order to use the Import From Application functionality, you need to have " -"at least one data imports plugin enabled. Plugins can be enabled in the " -"Preferences dialog." -msgstr "" -"您没有启用任何数据导入插件。\n" -"\n" -"要使用从应用程序导入数据的功能,您需要至少启用一个数据导入插件。您可在首选想" -"对话框中启用插件。" +#: src/Resources.vala:162 ui/direct.ui:173 ui/direct.ui:176 +#: ui/events_directory.ui:150 ui/events_directory.ui:153 ui/event.ui:418 +#: ui/event.ui:421 ui/import_queue.ui:65 ui/import_queue.ui:68 ui/import.ui:183 +#: ui/import.ui:186 ui/media.ui:401 ui/media.ui:404 ui/offline.ui:180 +#: ui/offline.ui:183 ui/photo.ui:384 ui/photo.ui:387 ui/tags.ui:420 +#: ui/tags.ui:423 ui/top.ui:40 ui/trash.ui:189 ui/trash.ui:192 +msgid "_Help" +msgstr "帮助(_H)" -#: ../src/data_imports/DataImportsUI.vala:100 -msgid "Database file:" -msgstr "数据库文件:" +#: src/Resources.vala:163 +msgid "Leave _Fullscreen" +msgstr "退出全屏(_F)" -#: ../src/data_imports/DataImportsUI.vala:112 -#: ../src/library/LibraryWindow.vala:899 -msgid "_Import" -msgstr "导入(_I)" +#: src/Resources.vala:164 src/Resources.vala:363 ui/tags.ui:448 +msgid "_New" +msgstr "新建(_N)" -#: ../src/data_imports/DataImportsUI.vala:216 -msgid "Import From Application" -msgstr "从应用程序导入" +#: src/Resources.vala:165 +#, fuzzy +#| msgid "Next" +msgid "_Next" +msgstr "前进" -#: ../src/data_imports/DataImportsUI.vala:217 -msgid "Import media _from:" -msgstr "从以下位置导入媒体(_F):" +#: src/Resources.vala:168 src/Resources.vala:317 ui/events_directory.ui:65 +#: ui/event.ui:93 ui/import.ui:68 ui/media.ui:93 ui/offline.ui:72 +#: ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 +msgid "_Preferences" +msgstr "首选项(_P)" -#: ../src/data_imports/DataImportsUI.vala:394 -#: ../src/publishing/PublishingUI.vala:493 -msgid "_Close" -msgstr "关闭(_C)" +#: src/Resources.vala:169 +#, fuzzy +#| msgid "_Previous Photo" +msgid "_Previous" +msgstr "前一张照片(_P)" -#: ../src/db/DatabaseTable.vala:37 -#, c-format -msgid "Unable to open/create photo database %s: error code %d" -msgstr "无法打开/创建照片数据库 %s:错误代码 %d" +#: src/Resources.vala:171 ui/direct.ui:37 ui/events_directory.ui:25 +#: ui/event.ui:40 ui/import_queue.ui:31 ui/import.ui:33 ui/media.ui:40 +#: ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 +msgid "_Quit" +msgstr "退出(_Q)" -#: ../src/db/DatabaseTable.vala:46 -#, c-format -msgid "" -"Unable to write to photo database file:\n" -" %s" -msgstr "" -"无法写入照片数据库文件:\n" -"%s" +#: src/Resources.vala:172 +msgid "_Refresh" +msgstr "刷新(_R)" -#: ../src/db/DatabaseTable.vala:48 -#, c-format -msgid "" -"Error accessing database file:\n" -" %s\n" -"\n" -"Error was: \n" -"%s" -msgstr "" -"访问数据库文件错误:\n" -"%s\n" -"\n" -"错误是:\n" -"%s" +#: src/Resources.vala:174 +#, fuzzy +#| msgid "Reverting" +msgid "_Revert" +msgstr "正在还原" -#: ../src/direct/DirectPhotoPage.vala:46 ../src/library/LibraryWindow.vala:352 -msgid "_File" -msgstr "文件(_F)" +#: src/Resources.vala:176 +msgid "Save _As" +msgstr "另存为(_A)" -#: ../src/direct/DirectPhotoPage.vala:51 -#: ../src/direct/DirectPhotoPage.vala:417 -msgid "_Save" -msgstr "保存(_S)" +#: src/Resources.vala:177 +#, fuzzy +#| msgid "_Ascending" +msgid "Sort _Ascending" +msgstr "升序(_A)" -#: ../src/direct/DirectPhotoPage.vala:52 -msgid "Save photo" -msgstr "保存照片" +#: src/Resources.vala:178 +#, fuzzy +#| msgid "D_escending" +msgid "Sort _Descending" +msgstr "降序(_D)" -#: ../src/direct/DirectPhotoPage.vala:57 -msgid "Save _As..." -msgstr "另存为(_A)..." +#: src/Resources.vala:179 +msgid "_Stop" +msgstr "停止(_S)" -#: ../src/direct/DirectPhotoPage.vala:58 -msgid "Save photo with a different name" -msgstr "以其他名字保存照片" +#: src/Resources.vala:180 +msgid "_Undelete" +msgstr "取消删除(_U)" -#: ../src/direct/DirectPhotoPage.vala:69 -msgid "Print the photo to a printer connected to your computer" -msgstr "使用连接到此电脑的打印机打印照片" +#: src/Resources.vala:181 +#, fuzzy +#| msgid "Original Size" +msgid "_Normal Size" +msgstr "原始尺寸" -#: ../src/direct/DirectPhotoPage.vala:73 ../src/library/LibraryWindow.vala:356 -msgid "_Edit" -msgstr "编辑(_E)" +#: src/Resources.vala:182 +msgid "Best _Fit" +msgstr "" -#: ../src/direct/DirectPhotoPage.vala:77 ../src/library/LibraryWindow.vala:364 -msgid "_Photo" -msgstr "照片(_P)" +#: src/Resources.vala:183 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 +#: ui/photo.ui:144 ui/tags.ui:260 +msgid "Zoom _In" +msgstr "放大(_I)" -#: ../src/direct/DirectPhotoPage.vala:169 -#: ../src/library/LibraryWindow.vala:380 -msgid "_Help" -msgstr "帮助(_H)" +#: src/Resources.vala:184 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 +#: ui/photo.ui:149 ui/tags.ui:265 +msgid "Zoom _Out" +msgstr "缩小(_O)" -#: ../src/direct/DirectPhotoPage.vala:227 -#, c-format -msgid "%s does not exist." -msgstr "%s 不存在。" +#: src/Resources.vala:187 ui/collection.ui:165 +msgid "Enhance" +msgstr "增强" -#: ../src/direct/DirectPhotoPage.vala:229 -#, c-format -msgid "%s is not a file." -msgstr "%s 不是一个文件。" +#: src/Resources.vala:188 ui/collection.ui:162 +#, fuzzy +#| msgid "Automatically improve the photo's appearance" +msgid "Automatically improve the photo’s appearance" +msgstr "自动增强照片的观感" -#: ../src/direct/DirectPhotoPage.vala:231 -#, c-format -msgid "" -"%s does not support the file format of\n" -"%s." -msgstr "%s 不支持 %s 类型的文件。" +#: src/Resources.vala:191 +msgid "Copy Color Adjustments" +msgstr "复制颜色调整" -#: ../src/direct/DirectPhotoPage.vala:417 -msgid "_Save a Copy" -msgstr "保存副本(_S)" +#: src/Resources.vala:192 +msgid "Copy the color adjustments applied to the photo" +msgstr "复制应用于照片的颜色调整" -#: ../src/direct/DirectPhotoPage.vala:420 -#, c-format -msgid "Lose changes to %s?" -msgstr "放弃对 %s 的更改?" +#: src/Resources.vala:195 +msgid "Paste Color Adjustments" +msgstr "粘贴颜色调整" -#: ../src/direct/DirectPhotoPage.vala:421 -msgid "Close _without Saving" -msgstr "关闭但不保存(_W)" +#: src/Resources.vala:196 +msgid "Apply copied color adjustments to the selected photos" +msgstr "将复制的颜色调整应用于选定的照片" -#: ../src/direct/DirectPhotoPage.vala:454 -#, c-format -msgid "Error while saving to %s: %s" -msgstr "保存 %s 时出错:%s" +#: src/Resources.vala:198 ui/direct.ui:139 ui/photo.ui:228 +msgid "_Crop" +msgstr "剪裁(_C)" -#: ../src/direct/DirectPhotoPage.vala:482 -#: ../src/direct/DirectPhotoPage.vala:503 -msgid "Save As" -msgstr "另存为" +#: src/Resources.vala:199 +msgid "Crop" +msgstr "剪裁" -#: ../src/editing_tools/EditingTools.vala:665 -msgid "Return to current photo dimensions" -msgstr "回到当前照片尺寸" +#: src/Resources.vala:200 +#, fuzzy +#| msgid "Crop the photo's size" +msgid "Crop the photo’s size" +msgstr "剪裁照片尺寸" -#: ../src/editing_tools/EditingTools.vala:668 -msgid "Set the crop for this photo" -msgstr "对这张照片进行剪裁" +#: src/Resources.vala:203 +msgid "Straighten" +msgstr "校正" -#: ../src/editing_tools/EditingTools.vala:680 -msgid "Pivot the crop rectangle between portrait and landscape orientations" -msgstr "在肖像和风景方向上旋转剪裁矩形" +#: src/Resources.vala:204 +msgid "Straighten the photo" +msgstr "校正照片" -#: ../src/editing_tools/EditingTools.vala:753 -msgid "Unconstrained" -msgstr "不限制" +#: src/Resources.vala:206 ui/direct.ui:149 ui/photo.ui:238 +msgid "_Red-eye" +msgstr "红眼(_R)" -#: ../src/editing_tools/EditingTools.vala:754 -msgid "Square" -msgstr "方形" +#: src/Resources.vala:207 +msgid "Red-eye" +msgstr "红眼" -#: ../src/editing_tools/EditingTools.vala:755 -msgid "Screen" -msgstr "屏幕" +#: src/Resources.vala:208 +msgid "Reduce or eliminate any red-eye effects in the photo" +msgstr "降低或去除照片上的红眼效果" -#: ../src/editing_tools/EditingTools.vala:757 -#: ../src/editing_tools/EditingTools.vala:760 -#: ../src/editing_tools/EditingTools.vala:770 -#: ../src/editing_tools/EditingTools.vala:780 -msgid "-" -msgstr "-" +#: src/Resources.vala:210 ui/direct.ui:154 ui/photo.ui:243 +msgid "_Adjust" +msgstr "调整(_A)" -#: ../src/editing_tools/EditingTools.vala:758 -msgid "SD Video (4 : 3)" -msgstr "标清视频(4 : 3)" +#: src/Resources.vala:211 +msgid "Adjust" +msgstr "调整" -#: ../src/editing_tools/EditingTools.vala:759 -msgid "HD Video (16 : 9)" -msgstr "高清视频(16 : 9)" +#: src/Resources.vala:212 +#, fuzzy +#| msgid "Adjust the photo's color and tone" +msgid "Adjust the photo’s color and tone" +msgstr "调整照片的色彩和色调" -#: ../src/editing_tools/EditingTools.vala:766 -msgid "Letter (8.5 x 11 in.)" -msgstr "书信 (8.5 x 11 英寸)" +#: src/Resources.vala:215 +msgid "Revert to Original" +msgstr "恢复到原始" -#: ../src/editing_tools/EditingTools.vala:768 -msgid "Tabloid (11 x 17 in.)" -msgstr "小型海报 (11 x 17 英寸)" +#: src/Resources.vala:217 +msgid "Revert External E_dits" +msgstr "恢复额外修改(_D)" -#: ../src/editing_tools/EditingTools.vala:775 -msgid "A4 (210 x 297 mm)" -msgstr "A4 (210 x 297 毫米)" +#: src/Resources.vala:218 +msgid "Revert to the master photo" +msgstr "恢复到主照片" -#: ../src/editing_tools/EditingTools.vala:779 -msgid "A3 (297 x 420 mm)" -msgstr "A3 (297 x 420 毫米)" +#: src/Resources.vala:221 +msgid "Set selected image to be the new desktop background" +msgstr "设置选定照片为新的桌面背景" -#: ../src/editing_tools/EditingTools.vala:1876 -msgid "Close the red-eye tool" -msgstr "关闭红眼工具" +#: src/Resources.vala:222 +#, fuzzy +#| msgid "Set as Desktop Slideshow" +msgid "Set as _Desktop Slideshow…" +msgstr "设置为桌面幻灯片" -#: ../src/editing_tools/EditingTools.vala:1879 -msgid "Remove any red-eye effects in the selected region" -msgstr "移除在选定区域内的所有红眼效果" +#: src/Resources.vala:224 ui/direct.ui:47 ui/events_directory.ui:35 +#: ui/event.ui:50 ui/import.ui:43 ui/media.ui:50 ui/offline.ui:35 +#: ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 +msgid "_Undo" +msgstr "取消(_U)" -#: ../src/editing_tools/EditingTools.vala:2215 -#: ../src/editing_tools/StraightenTool.vala:102 -msgid "_Reset" -msgstr "重置(_R)" +#: src/Resources.vala:225 +msgid "Undo" +msgstr "取消" -#: ../src/editing_tools/EditingTools.vala:2237 -msgid "Saturation:" -msgstr "饱和度:" +#: src/Resources.vala:227 ui/direct.ui:52 ui/events_directory.ui:40 +#: ui/event.ui:55 ui/import.ui:48 ui/media.ui:55 ui/offline.ui:40 +#: ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 +msgid "_Redo" +msgstr "重做(_R)" -#: ../src/editing_tools/EditingTools.vala:2245 -msgid "Tint:" -msgstr "色彩:" +#: src/Resources.vala:228 +msgid "Redo" +msgstr "重做" -#: ../src/editing_tools/EditingTools.vala:2254 -msgid "Temperature:" -msgstr "色温:" +#: src/Resources.vala:230 ui/events_directory.ui:139 ui/events_directory.ui:181 +#: ui/event.ui:391 ui/event.ui:584 +#, fuzzy +#| msgid "Rename Event" +msgid "Re_name Event…" +msgstr "重命名事件" -#: ../src/editing_tools/EditingTools.vala:2262 -msgid "Shadows:" -msgstr "阴影:" +#: src/Resources.vala:233 ui/event.ui:371 ui/event.ui:576 +msgid "Make _Key Photo for Event" +msgstr "为事件创建关键照片(_K)" -#: ../src/editing_tools/EditingTools.vala:2270 -msgid "Highlights:" -msgstr "高亮:" +#: src/Resources.vala:234 +msgid "Make Key Photo for Event" +msgstr "创建事件关键照片" -#: ../src/editing_tools/EditingTools.vala:2324 -msgid "Reset Colors" -msgstr "重置颜色" +#: src/Resources.vala:236 ui/event.ui:380 ui/media.ui:374 ui/tags.ui:374 +msgid "_New Event" +msgstr "新建事件(_N)" -#: ../src/editing_tools/EditingTools.vala:2324 -msgid "Reset all color adjustments to original" -msgstr "将所有颜色修正重置至原始值" +#: src/Resources.vala:237 +msgid "New Event" +msgstr "新建事件" -#: ../src/editing_tools/EditingTools.vala:2676 -msgid "Temperature" -msgstr "色温" +#: src/Resources.vala:239 +msgid "Move Photos" +msgstr "移动照片" -#: ../src/editing_tools/EditingTools.vala:2689 -msgid "Tint" -msgstr "色彩" +#: src/Resources.vala:240 +msgid "Move photos to an event" +msgstr "将照片移动到一个事件" -#: ../src/editing_tools/EditingTools.vala:2702 -msgid "Saturation" -msgstr "饱和度" +#: src/Resources.vala:242 ui/events_directory.ui:135 ui/events_directory.ui:177 +msgid "_Merge Events" +msgstr "合并事件(_M)" -#: ../src/editing_tools/EditingTools.vala:2715 -msgid "Exposure" -msgstr "曝光" +#: src/Resources.vala:243 +msgid "Merge" +msgstr "合并" -#: ../src/editing_tools/EditingTools.vala:2728 -msgid "Shadows" -msgstr "阴影" +#: src/Resources.vala:244 +msgid "Combine events into a single event" +msgstr "将多个事件合并为一个" -#: ../src/editing_tools/EditingTools.vala:2741 -msgid "Highlights" -msgstr "高亮" +#: src/Resources.vala:246 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:476 +#: ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 ui/tags.ui:286 +msgid "_Set Rating" +msgstr "设置评分(_S)" -#: ../src/editing_tools/EditingTools.vala:2751 -msgid "Contrast Expansion" -msgstr "对比度扩展" +#: src/Resources.vala:247 +msgid "Set Rating" +msgstr "设置评分" -#: ../src/editing_tools/StraightenTool.vala:99 -msgid "Angle:" -msgstr "角度:" +#: src/Resources.vala:248 +msgid "Change the rating of your photo" +msgstr "改变您照片的评分" -#: ../src/events/EventDirectoryItem.vala:83 -#, c-format -msgid "%d Photo/Video" -msgid_plural "%d Photos/Videos" -msgstr[0] "%d 个照片/视频" +#: src/Resources.vala:250 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:509 +#: ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 ui/tags.ui:326 +msgid "_Increase" +msgstr "提高(_I)" -#: ../src/events/EventPage.vala:129 -msgid "No Event" -msgstr "没有事件" +#: src/Resources.vala:251 +msgid "Increase Rating" +msgstr "提高评分" -#: ../src/events/EventsDirectoryPage.vala:131 -msgid "Display the comment of each event" -msgstr "显示每个事件的备注" +#: src/Resources.vala:253 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:513 +#: ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 ui/tags.ui:331 +msgid "_Decrease" +msgstr "降低(_D)" -#: ../src/events/EventsDirectoryPage.vala:155 -msgid "No events" -msgstr "没有事件" +#: src/Resources.vala:254 +msgid "Decrease Rating" +msgstr "降低评分" -#: ../src/events/EventsDirectoryPage.vala:159 -msgid "No events found" -msgstr "没有找到事件" +#: src/Resources.vala:256 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:499 +#: ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 ui/tags.ui:314 +msgid "_Unrated" +msgstr "未评分(_U)" -#: ../src/events/EventsDirectoryPage.vala:230 -msgid "Events" -msgstr "事件" +#: src/Resources.vala:257 +msgid "Unrated" +msgstr "未评分" -#: ../src/events/EventsDirectoryPage.vala:244 -msgid "Undated" -msgstr "取消隐藏" +#: src/Resources.vala:258 +msgid "Rate Unrated" +msgstr "未评分" -#: ../src/events/EventsDirectoryPage.vala:245 -msgid "%Y" -msgstr "%Y" +#: src/Resources.vala:259 +msgid "Setting as unrated" +msgstr "设置为未评分" -#: ../src/events/EventsDirectoryPage.vala:246 -msgid "%B" -msgstr "%m" +#: src/Resources.vala:260 +msgid "Remove any ratings" +msgstr "移除任何评分" -#: ../src/folders/Branch.vala:141 -msgid "Folders" -msgstr "文件夹" +#: src/Resources.vala:262 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:503 +#: ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 ui/tags.ui:319 +msgid "_Rejected" +msgstr "次品(_R)" -#: ../src/library/Branch.vala:37 ../ui/shotwell.glade.h:33 -msgid "Library" -msgstr "媒体库" +#: src/Resources.vala:263 +msgid "Rejected" +msgstr "次品" -#: ../src/library/ImportQueuePage.vala:8 -msgid "Importing..." -msgstr "导入..." +#: src/Resources.vala:264 +msgid "Rate Rejected" +msgstr "评为次品" -#: ../src/library/ImportQueuePage.vala:66 -msgid "_Stop Import" -msgstr "停止导入(_S)" +#: src/Resources.vala:265 +msgid "Setting as rejected" +msgstr "设置为次品" -#: ../src/library/ImportQueuePage.vala:67 -msgid "Stop importing photos" -msgstr "停止导入照片" +#: src/Resources.vala:266 +msgid "Set rating to rejected" +msgstr "设置评分为次品" -#: ../src/library/ImportQueuePage.vala:123 -msgid "Preparing to import..." -msgstr "准备导入..." +#: src/Resources.vala:268 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 +#: ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 ui/trash.ui:162 +msgid "Rejected _Only" +msgstr "仅次品(_R)" -#: ../src/library/ImportQueuePage.vala:150 -#, c-format -msgid "Imported %s" -msgstr "已导入 %s" +#: src/Resources.vala:269 +msgid "Rejected Only" +msgstr "仅次品(_R)" -#: ../src/library/LastImportPage.vala:8 -msgid "Last Import" -msgstr "最近导入" +#: src/Resources.vala:270 +msgid "Show only rejected photos" +msgstr "只显示次要的照片" -#: ../src/library/LibraryWindow.vala:301 -msgid "_Import From Folder..." -msgstr "从文件夹导入(_I)..." +#: src/Resources.vala:272 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 +#: ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 ui/trash.ui:156 +msgid "All + _Rejected" +msgstr "全部为次品(_R)" -#: ../src/library/LibraryWindow.vala:302 -msgid "Import photos from disk to library" -msgstr "从磁盘导入照片到媒体库" +#: src/Resources.vala:273 +#, fuzzy +#| msgid "Show all photos, including rejected" +msgctxt "Tooltip" +msgid "Show all photos, including rejected" +msgstr "显示所有照片,包括次品" -#: ../src/library/LibraryWindow.vala:309 -msgid "Import From _Application..." -msgstr "从应用程序导入(_A)..." +#: src/Resources.vala:275 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 +#: ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 ui/trash.ui:150 +msgid "_All Photos" +msgstr "所有照片(_A)" -#: ../src/library/LibraryWindow.vala:313 -msgid "Sort _Events" -msgstr "排列事件(_E)" +#. Button tooltip +#: src/Resources.vala:277 +msgid "Show all photos" +msgstr "显示所有照片" -#: ../src/library/LibraryWindow.vala:323 -msgid "Empty T_rash" -msgstr "清空回收站(_R)" +#: src/Resources.vala:279 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 +#: ui/tags.ui:144 +msgid "_Ratings" +msgstr "评分(_R)" -#: ../src/library/LibraryWindow.vala:324 -msgid "Delete all photos in the trash" -msgstr "删除在回收站中的全部照片" +#: src/Resources.vala:280 +#, fuzzy +#| msgid "Display each photo's rating" +msgid "Display each photo’s rating" +msgstr "显示每张照片的评分" -#: ../src/library/LibraryWindow.vala:329 -msgid "View Eve_nt for Photo" -msgstr "查看照片所属活动(_N)" +#: src/Resources.vala:282 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 +#: ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 +msgid "_Filter Photos" +msgstr "过滤照片(_F)" -#: ../src/library/LibraryWindow.vala:334 -msgid "_Find" -msgstr "查找(_F)" +#: src/Resources.vala:283 +msgid "Filter Photos" +msgstr "过滤照片" -#: ../src/library/LibraryWindow.vala:335 -msgid "Find photos and videos by search criteria" -msgstr "按照规则查找照片和视频" +#: src/Resources.vala:284 +msgid "Limit the number of photos displayed based on a filter" +msgstr "限制在过滤条件下显示的照片数量" -#: ../src/library/LibraryWindow.vala:346 ../src/searches/Branch.vala:77 -#: ../src/sidebar/Tree.vala:195 -msgid "Ne_w Saved Search..." -msgstr "新建保存搜索(_W)..." +#: src/Resources.vala:287 +msgid "Duplicate" +msgstr "副本" -#: ../src/library/LibraryWindow.vala:368 -msgid "_Photos" -msgstr "照片(_P)" +#: src/Resources.vala:288 +msgid "Make a duplicate of the photo" +msgstr "创建照片副本" -#: ../src/library/LibraryWindow.vala:372 -msgid "Even_ts" -msgstr "活动(_T)" +#: src/Resources.vala:290 +#, fuzzy +#| msgid "Export" +msgid "_Export…" +msgstr "导出" -#: ../src/library/LibraryWindow.vala:391 -msgid "_Basic Information" -msgstr "基本信息(_B)" +#: src/Resources.vala:292 +msgid "_Print…" +msgstr "打印(_P)..." -#: ../src/library/LibraryWindow.vala:392 -msgid "Display basic information for the selection" -msgstr "显示所选项的基本信息" +#: src/Resources.vala:294 +#, fuzzy +#| msgid "Publish" +msgid "Pu_blish…" +msgstr "发布" -#: ../src/library/LibraryWindow.vala:397 -msgid "E_xtended Information" -msgstr "扩展信息(_X)" +#: src/Resources.vala:296 ui/collection.ui:187 +msgid "Publish to various websites" +msgstr "将所选照片发布到各种网站上" -#: ../src/library/LibraryWindow.vala:398 -msgid "Display extended information for the selection" -msgstr "显示所选项的扩展信息" +#: src/Resources.vala:298 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:535 +#: ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 ui/tags.ui:340 +#, fuzzy +#| msgid "Edit Title" +msgid "Edit _Title…" +msgstr "编辑标题" -#: ../src/library/LibraryWindow.vala:403 -msgid "_Search Bar" -msgstr "搜索栏(_S)" +#. Button label +#: src/Resources.vala:300 +#, fuzzy +#| msgid "Edit Title" +msgctxt "Button Label" +msgid "Edit Title" +msgstr "编辑标题" -#: ../src/library/LibraryWindow.vala:404 -msgid "Display the search bar" -msgstr "显示搜索栏" +#: src/Resources.vala:302 ui/collection.ui:102 ui/events_directory.ui:144 +#: ui/events_directory.ui:186 ui/event.ui:344 ui/event.ui:396 ui/event.ui:539 +#: ui/media.ui:344 ui/photo_context.ui:109 ui/photo.ui:331 ui/tags.ui:344 +#, fuzzy +#| msgid "Edit Comment" +msgid "Edit _Comment…" +msgstr "修改备注" -#: ../src/library/LibraryWindow.vala:409 -msgid "S_idebar" -msgstr "侧边栏(_S)" +#. Button label +#: src/Resources.vala:304 +msgid "Edit Comment" +msgstr "修改备注" -#: ../src/library/LibraryWindow.vala:410 -msgid "Display the sidebar" -msgstr "显示侧边栏" +#: src/Resources.vala:306 ui/event.ui:588 +#, fuzzy +#| msgid "Edit Event Comment" +msgid "Edit Event _Comment…" +msgstr "修改事件备注" -#: ../src/library/LibraryWindow.vala:668 -msgid "Import From Folder" -msgstr "从文件夹导入" +#: src/Resources.vala:309 ui/direct.ui:167 ui/photo.ui:335 +#, fuzzy +#| msgid "Adjust Date and Time" +msgid "_Adjust Date and Time…" +msgstr "修改日期和时间" -#: ../src/library/LibraryWindow.vala:737 -msgid "Empty Trash" -msgstr "清空回收站" +#: src/Resources.vala:310 +msgid "Adjust Date and Time" +msgstr "修改日期和时间" -#: ../src/library/LibraryWindow.vala:737 -msgid "Emptying Trash..." -msgstr "正在清空回收站..." +#: src/Resources.vala:312 ui/collection.ui:19 ui/event.ui:405 ui/event.ui:456 +#: ui/media.ui:388 ui/photo.ui:372 ui/tags.ui:388 +#, fuzzy +#| msgid "Add Tags" +msgid "Add _Tags…" +msgstr "添加标签" -#: ../src/library/LibraryWindow.vala:896 -#, c-format -msgid "" -"Shotwell is configured to import photos to your home directory.\n" -"We recommend changing this in Edit %s Preferences.\n" -"Do you want to continue importing photos?" -msgstr "" -"Shotwell 配置为将照片导入到您的主文件夹。\n" -"我们推荐您在 编辑 %s 首选项中更改此设置。\n" -"您想继续导入照片吗?" +#: src/Resources.vala:313 ui/photo_context.ui:17 +#, fuzzy +#| msgid "Add Tags" +msgid "_Add Tags…" +msgstr "添加标签" -#: ../src/library/LibraryWindow.vala:899 ../ui/shotwell.glade.h:19 -msgid "Library Location" -msgstr "媒体库位置" +#. Dialog title +#: src/Resources.vala:315 +#, fuzzy +#| msgid "Add Tags" +msgctxt "Dialog Title" +msgid "Add Tags" +msgstr "添加标签" -#. TODO: Specify which directory/file. -#: ../src/library/LibraryWindow.vala:912 -msgid "Photos cannot be imported from this directory." -msgstr "无法从此文件夹导入照片。" +#: src/Resources.vala:324 ui/photo_context.ui:133 +#, fuzzy +#| msgid "Send To" +msgid "Send T_o…" +msgstr "发送至" -#: ../src/library/LibraryWindow.vala:1200 -#, c-format -msgid "%s (%d%%)" -msgstr "%s (%d%%)" +#: src/Resources.vala:326 +#, fuzzy +#| msgid "_Find" +msgid "_Find…" +msgstr "查找(_F)" -#: ../src/library/LibraryWindow.vala:1244 -#: ../src/library/LibraryWindow.vala:1255 -msgid "Updating library..." -msgstr "更新媒体库..." +#: src/Resources.vala:327 ui/collection.ui:215 ui/offline.ui:239 +#: ui/trash.ui:312 +msgid "Find" +msgstr "查找" -#: ../src/library/LibraryWindow.vala:1261 -msgid "Preparing to auto-import photos..." -msgstr "准备自动导入照片..." +#: src/Resources.vala:328 ui/collection.ui:212 ui/offline.ui:236 +#: ui/trash.ui:309 +msgid "Find an image by typing text that appears in its name or tags" +msgstr "依据名称或者标签查找图片" -#: ../src/library/LibraryWindow.vala:1266 -msgid "Auto-importing photos..." -msgstr "自动导入照片..." +#: src/Resources.vala:330 +msgid "_Flag" +msgstr "标注(_F)" -#: ../src/library/LibraryWindow.vala:1274 -msgid "Writing metadata to files..." -msgstr "写入元数据到文件..." +#: src/Resources.vala:332 +msgid "Un_flag" +msgstr "取消标注(_F)" -#: ../src/library/OfflinePage.vala:8 -msgid "Missing Files" -msgstr "丢失文件" +#: src/Resources.vala:335 +#, c-format +msgid "Unable to launch editor: %s" +msgstr "无法启动编辑器:%s" -#: ../src/library/OfflinePage.vala:106 -msgid "Deleting..." -msgstr "删除..." +#: src/Resources.vala:340 +#, fuzzy, c-format +#| msgid "Add Tag \"%s\"" +msgid "Add Tag “%s”" +msgstr "添加标签 %s" -#: ../src/library/TrashPage.vala:8 -msgid "Trash" -msgstr "回收站" +#. Used when adding two tags to photo(s) +#: src/Resources.vala:343 +#, fuzzy, c-format +#| msgid "Add Tags \"%s\" and \"%s\"" +msgid "Add Tags “%s” and “%s”" +msgstr "添加标签 %s 和 %s" -#: ../src/library/TrashPage.vala:108 -msgid "Trash is empty" -msgstr "回收站为空" +#. Undo/Redo command name (in Edit menu) +#: src/Resources.vala:348 +#, fuzzy +#| msgid "Add Tags" +msgctxt "UndoRedo menu entry" +msgid "Add Tags" +msgstr "添加标签" -#: ../src/library/TrashPage.vala:112 -msgid "Delete" -msgstr "刪除" +#: src/Resources.vala:353 +#, fuzzy, c-format +#| msgid "_Delete Tag \"%s\"" +msgid "_Delete Tag “%s”" +msgstr "删除标签 %s (_D)" -#: ../src/library/TrashPage.vala:113 -msgid "Deleting Photos" -msgstr "删除照片" +#: src/Resources.vala:357 +#, fuzzy, c-format +#| msgid "Delete Tag \"%s\"" +msgid "Delete Tag “%s”" +msgstr "删除标签 %s" -#: ../src/main.vala:54 -#, c-format -msgid "" -"Your photo library is not compatible with this version of Shotwell. It " -"appears it was created by Shotwell %s (schema %d). This version is %s " -"(schema %d). Please use the latest version of Shotwell." -msgstr "" -"您的媒体库和当前版本的 Shotwell 不兼容。它似乎是由 Shotwell %s (schema %d)创" -"建的,而当前版本是 %s (schema %d) 。请使用最新版本的 Shotwell。" +#: src/Resources.vala:360 +msgid "Delete Tag" +msgstr "删除标签" -#: ../src/main.vala:59 -#, c-format -msgid "" -"Shotwell was unable to upgrade your photo library from version %s (schema " -"%d) to %s (schema %d). For more information please check the Shotwell Wiki " -"at %s" -msgstr "" -"Shotwell 无法将您的媒体库从 %s (schema %d)版本升级到 %s (schema %d)版本。更多" -"的信息请查询 Shotwell 维基 %s" +#: src/Resources.vala:366 +#, fuzzy, c-format +#| msgid "Re_name Tag \"%s\"..." +msgid "Re_name Tag “%s”…" +msgstr "重命名标签 %s (_N)..." -#: ../src/main.vala:65 -#, c-format -msgid "" -"Your photo library is not compatible with this version of Shotwell. It " -"appears it was created by Shotwell %s (schema %d). This version is %s " -"(schema %d). Please clear your library by deleting %s and re-import your " -"photos." -msgstr "" -"您的媒体库和当前版本的 Shotwell 不兼容。它似乎是由 Shotwell %s (schema %d)创" -"建的。当前版本是 %s (schema %d)。请删除 %s 来释放您的照片库然后重新导入照片。" +#: src/Resources.vala:370 +#, fuzzy, c-format +#| msgid "Rename Tag \"%s\" to \"%s\"" +msgid "Rename Tag “%s” to “%s”" +msgstr "重命名标签 %s 为 %s" -#: ../src/main.vala:71 -#, c-format -msgid "Unknown error attempting to verify Shotwell's database: %s" -msgstr "验证 Shotwell 数据库时发生未知错误:%s" +#: src/Resources.vala:373 ui/tags.ui:454 +#, fuzzy +#| msgid "_Rename..." +msgid "_Rename…" +msgstr "重命名(_R)..." -#: ../src/main.vala:104 -msgid "Loading Shotwell" -msgstr "正在载入 Shotwell" +#: src/Resources.vala:375 ui/collection.ui:24 ui/event.ui:410 ui/event.ui:461 +#: ui/media.ui:393 ui/photo_context.ui:22 ui/photo.ui:377 ui/tags.ui:393 +#, fuzzy +#| msgid "Modify Tags" +msgid "Modif_y Tags…" +msgstr "修改标签" -#: ../src/main.vala:294 -msgid "Path to Shotwell's private data" -msgstr "Shotwell 程序数据目录" +#: src/Resources.vala:376 +msgid "Modify Tags" +msgstr "修改标签" -#: ../src/main.vala:294 -msgid "DIRECTORY" -msgstr "文件夹" +#: src/Resources.vala:379 +#, fuzzy, c-format +#| msgid "Tag Photo as \"%s\"" +msgid "Tag Photo as “%s”" +msgid_plural "Tag Photos as “%s”" +msgstr[0] "为照片添加标签 %s" + +#: src/Resources.vala:385 +#, fuzzy, c-format +#| msgid "Tag the selected photo as \"%s\"" +msgid "Tag the selected photo as “%s”" +msgid_plural "Tag the selected photos as “%s”" +msgstr[0] "为选中的照片添加标签 %s" + +#: src/Resources.vala:391 +#, fuzzy, c-format +#| msgid "Remove Tag \"%s\" From _Photo" +msgid "Remove Tag “%s” From _Photo" +msgid_plural "Remove Tag “%s” From _Photos" +msgstr[0] "从照片移除标签 %s (_P)" + +#: src/Resources.vala:397 +#, fuzzy, c-format +#| msgid "Remove Tag \"%s\" From Photo" +msgid "Remove Tag “%s” From Photo" +msgid_plural "Remove Tag “%s” From Photos" +msgstr[0] "从照片移除标签 %s" + +#: src/Resources.vala:403 +#, fuzzy, c-format +#| msgid "Unable to rename tag to \"%s\" because the tag already exists." +msgid "Unable to rename tag to “%s” because the tag already exists." +msgstr "无法重命名标签为 %s,同名标签已存在。" -#: ../src/main.vala:298 -msgid "Do not monitor library directory at runtime for changes" -msgstr "请勿在程序运行时监视文件夹变化" +#: src/Resources.vala:407 +#, fuzzy, c-format +#| msgid "Unable to rename search to \"%s\" because the search already exists." +msgid "Unable to rename search to “%s” because the search already exists." +msgstr "无法重命名搜索为 %s,同名搜索已存在。" -#: ../src/main.vala:302 -msgid "Don't display startup progress meter" -msgstr "不显示启动进程条" +#. Saved search button +#: src/Resources.vala:410 src/SearchFilter.vala:1124 +msgid "Saved Search" +msgstr "保存搜索" -#: ../src/main.vala:306 -msgid "Show the application's version" -msgstr "显示程序版本" +#: src/Resources.vala:412 +msgid "Delete Search" +msgstr "删除搜索" -#. init GTK (valac has already called g_threads_init()) -#: ../src/main.vala:338 -msgid "[FILE]" -msgstr "[文件]" +#: src/Resources.vala:415 ui/savedsearch.ui:11 +msgid "_Edit…" +msgstr "编辑(_E)…" -#: ../src/main.vala:342 -#, c-format -msgid "Run '%s --help' to see a full list of available command line options.\n" -msgstr "运行 '%s --help' 来查看可用命令行选项的完整列表。\n" +#: src/Resources.vala:416 ui/savedsearch.ui:7 +#, fuzzy +#| msgid "Re_name..." +msgid "Re_name…" +msgstr "重命名(_N)..." -#: ../src/photos/BmpSupport.vala:32 -msgid "BMP" -msgstr "BMP" +#: src/Resources.vala:419 +#, fuzzy, c-format +#| msgid "Rename Search \"%s\" to \"%s\"" +msgid "Rename Search “%s” to “%s”" +msgstr "重命名搜索 %s 为 %s" -#: ../src/photos/JfifSupport.vala:84 -msgid "JPEG" -msgstr "JPEG" +#: src/Resources.vala:423 +#, fuzzy, c-format +#| msgid "Delete Search \"%s\"" +msgid "Delete Search “%s”" +msgstr "删除搜索 %s" -#: ../src/photos/JfifSupport.vala:182 +#: src/Resources.vala:560 #, c-format -msgid "Low (%d%%)" -msgstr "低(%d%%)" +msgid "Rate %s" +msgstr "评分 %s" -#: ../src/photos/JfifSupport.vala:185 +#: src/Resources.vala:561 #, c-format -msgid "Medium (%d%%)" -msgstr "中(%d%%)" +msgid "Set rating to %s" +msgstr "设置评分为 %s" -#: ../src/photos/JfifSupport.vala:188 +#: src/Resources.vala:562 #, c-format -msgid "High (%d%%)" -msgstr "高(%d%%)" +msgid "Setting rating to %s" +msgstr "设置评分为 %s" -#: ../src/photos/JfifSupport.vala:191 +#: src/Resources.vala:564 #, c-format -msgid "Maximum (%d%%)" -msgstr "最大(%d%%)" - -#: ../src/photos/PngSupport.vala:30 -msgid "PNG" -msgstr "PNG" - -#: ../src/photos/RawSupport.vala:134 -msgid "RAW" -msgstr "RAW" - -#: ../src/photos/TiffSupport.vala:86 -msgid "TIFF" -msgstr "TIFF" +msgid "Display %s" +msgstr "显示 %s" -#: ../src/publishing/Publishing.vala:16 -msgid "Publishing" -msgstr "发布" +#: src/Resources.vala:565 +#, c-format +msgid "Only show photos with a rating of %s" +msgstr "只显示评分为 %s 的照片" -#: ../src/publishing/PublishingPluginHost.vala:11 -msgid "Preparing for upload" -msgstr "准备上传" +#: src/Resources.vala:566 +#, c-format +msgid "%s or Better" +msgstr "%s 或更高" -#: ../src/publishing/PublishingPluginHost.vala:12 +#: src/Resources.vala:567 #, c-format -msgid "Uploading %d of %d" -msgstr "正在上传 %d/%d" +msgid "Display %s or Better" +msgstr "显示 %s 或更高" -#: ../src/publishing/PublishingPluginHost.vala:81 +#: src/Resources.vala:568 #, c-format -msgid "Publishing to %s can't continue because an error occurred:" -msgstr "无法继续发布到 %s 因为发生了一个错误:" +msgid "Only show photos with a rating of %s or better" +msgstr "只显示评分为 %s 或更高的照片" -#: ../src/publishing/PublishingPluginHost.vala:84 -msgid "To try publishing to another service, select one from the above menu." -msgstr "尝试发布到其他的服务,从上面的菜单中选择一个。" +#: src/Resources.vala:659 ui/trash.ui:255 +msgid "Remove the selected photos from the trash" +msgstr "从回收站中移除选中照片" -#: ../src/publishing/PublishingUI.vala:105 -msgid "The selected photos/videos were successfully published." -msgstr "选中的照片/视频已经成功发布。" +#: src/Resources.vala:660 ui/offline.ui:221 +msgid "Remove the selected photos from the library" +msgstr "从媒体库移除选定照片" -#: ../src/publishing/PublishingUI.vala:107 -msgid "The selected videos were successfully published." -msgstr "选中的视频已经成功发布。" +#: src/Resources.vala:662 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 +msgid "_Restore" +msgstr "还原(_R)" -#: ../src/publishing/PublishingUI.vala:109 -msgid "The selected photos were successfully published." -msgstr "选中照片已经成功发布。" +#: src/Resources.vala:663 ui/trash.ui:270 +msgid "Move the selected photos back into the library" +msgstr "将选定照片移回至媒体库" -#: ../src/publishing/PublishingUI.vala:112 -msgid "The selected video was successfully published." -msgstr "选中的视频已经成功发布。" +#: src/Resources.vala:665 ui/collection.ui:121 ui/direct_context.ui:20 +#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:558 ui/media.ui:27 +#: ui/photo_context.ui:128 ui/photo.ui:35 ui/tags.ui:27 ui/trash.ui:19 +#: ui/trash.ui:227 +msgid "Show in File Mana_ger" +msgstr "在文件管理器显示(_G)" -#: ../src/publishing/PublishingUI.vala:114 -msgid "The selected photo was successfully published." -msgstr "选中的照片已经成功发布。" +#: src/Resources.vala:666 +#, fuzzy +#| msgid "Open the selected photo's directory in the file manager" +msgid "Open the selected photo’s directory in the file manager" +msgstr "在文件管理器中打开选定照片目录" -#: ../src/publishing/PublishingUI.vala:122 -msgid "Fetching account information..." -msgstr "获取帐号信息..." +#: src/Resources.vala:669 +#, c-format +msgid "Unable to open in file manager: %s" +msgstr "无法在文件管理器中打开:%s" -#: ../src/publishing/PublishingUI.vala:128 -msgid "Logging in..." -msgstr "正在登录……" +#: src/Resources.vala:672 ui/offline.ui:224 +msgid "R_emove From Library" +msgstr "从媒体库移除(_E)" -#: ../src/publishing/PublishingUI.vala:183 -msgid "Publish Photos" -msgstr "发布照片" +#: src/Resources.vala:674 ui/collection.ui:132 ui/event.ui:79 ui/event.ui:569 +#: ui/media.ui:79 ui/photo_context.ui:139 ui/photo.ui:82 ui/tags.ui:79 +msgid "_Move to Trash" +msgstr "移至回收站(_M)" -#: ../src/publishing/PublishingUI.vala:184 -msgid "Publish photos _to:" -msgstr "发布照片到(_T):" +#: src/Resources.vala:676 ui/events_directory.ui:58 ui/event.ui:86 +#: ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 ui/trash.ui:74 +msgid "Select _All" +msgstr "选择全部(_A)" -#: ../src/publishing/PublishingUI.vala:186 -msgid "Publish Videos" -msgstr "发布视频" +#: src/Resources.vala:677 +msgid "Select all items" +msgstr "选择全部项目" -#: ../src/publishing/PublishingUI.vala:187 -msgid "Publish videos _to" -msgstr "发布视频到(_T)" +#. ...precache the timestamp string... +#. / Locale-specific time format for 12-hour time, i.e. 8:31 PM +#. / Precede modifier with a dash ("-") to pad with spaces, otherwise will pad with zeroes +#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format +#. / Locale-specific time format for 12-hour time with seconds, i.e. 8:31:42 PM +#. / Precede modifier with a dash ("-") to pad with spaces, otherwise will pad with zeroes +#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format +#. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" +#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format +#: src/Resources.vala:739 +msgid "%a %b %d, %Y" +msgstr "%Y年%m月%d日%A" -#: ../src/publishing/PublishingUI.vala:189 -msgid "Publish Photos and Videos" -msgstr "发布照片和视频" +#. / Locale-specific starting date format for multi-date strings, +#. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" +#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format +#: src/Resources.vala:744 +#, fuzzy +#| msgid "%a %b %d" +msgctxt "MultidayFormat" +msgid "%a %b %d" +msgstr "%m月%d日%A" -#: ../src/publishing/PublishingUI.vala:190 -msgid "Publish photos and videos _to" -msgstr "发布照片和视频到(_T)" +#. / Locale-specific ending date format for multi-date strings, +#. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" +#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format +#: src/Resources.vala:749 +#, fuzzy +#| msgid "%d, %Y" +msgctxt "MultidayFormat" +msgid "%d, %Y" +msgstr "%Y年%m月%d日" -#. There are no enabled publishing services that accept this media type, -#. warn the user. -#: ../src/publishing/PublishingUI.vala:383 -msgid "Unable to publish" -msgstr "无法发布" +#. / Locale-specific calendar date format for multi-month strings, +#. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" +#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format +#: src/Resources.vala:754 +#, fuzzy +#| msgid "%a %b %d" +msgctxt "MultimonthFormat" +msgid "%a %b %d" +msgstr "%m月%d日%A" -#: ../src/publishing/PublishingUI.vala:384 -#, c-format -msgid "" -"Shotwell cannot publish the selected items because you do not have a " -"compatible publishing plugin enabled. To correct this, choose Edit %s " -"Preferences and enable one or more of the publishing plugins on the " -"Plugins tab." -msgstr "" -"Shotwell 无法发布选定项目,因为您尚未启用兼容的发布插件。要修复此问题,请选择" -"编辑 %s 首选项,并且在插件标签页中启用一个或多个发布插件。" +#. / Locale-specific calendar date format for multi-month strings, +#. / i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006" +#. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format +#: src/Resources.vala:759 +#, fuzzy +#| msgid "%a %b %d, %Y" +msgctxt "MultimonthFormat" +msgid "%a %b %d, %Y" +msgstr "%Y年%m月%d日%A" + +#: src/Screensaver.vala:18 src/SlideshowPage.vala:141 +msgid "Slideshow" +msgstr "幻灯片放映" -#: ../src/searches/Branch.vala:68 +#: src/searches/Branch.vala:68 msgid "Saved Searches" msgstr "已保存搜索" #. Ordering must correspond with SearchConditionText.Context -#: ../src/searches/SavedSearchDialog.vala:169 +#: src/searches/SavedSearchDialog.vala:162 msgid "contains" msgstr "包含" #. Ordering must correspond with Context -#: ../src/searches/SavedSearchDialog.vala:170 -#: ../src/searches/SavedSearchDialog.vala:497 +#: src/searches/SavedSearchDialog.vala:163 +#: src/searches/SavedSearchDialog.vala:494 msgid "is exactly" msgstr "必须有" -#: ../src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:164 msgid "starts with" msgstr "以开始" -#: ../src/searches/SavedSearchDialog.vala:172 +#: src/searches/SavedSearchDialog.vala:165 msgid "ends with" msgstr "结束以" -#: ../src/searches/SavedSearchDialog.vala:173 +#: src/searches/SavedSearchDialog.vala:166 msgid "does not contain" msgstr "不包含" -#: ../src/searches/SavedSearchDialog.vala:174 -#: ../src/searches/SavedSearchDialog.vala:501 +#: src/searches/SavedSearchDialog.vala:167 +#: src/searches/SavedSearchDialog.vala:498 msgid "is not set" msgstr "未设为" +#: src/searches/SavedSearchDialog.vala:168 +#, fuzzy +#| msgid "is not set" +msgid "is set" +msgstr "未设为" + #. Ordering must correspond with SearchConditionMediaType.Context -#: ../src/searches/SavedSearchDialog.vala:245 -#: ../src/searches/SavedSearchDialog.vala:376 -#: ../src/searches/SavedSearchDialog.vala:441 +#: src/searches/SavedSearchDialog.vala:242 +#: src/searches/SavedSearchDialog.vala:373 +#: src/searches/SavedSearchDialog.vala:438 msgid "is" msgstr "是" -#: ../src/searches/SavedSearchDialog.vala:246 +#: src/searches/SavedSearchDialog.vala:243 msgid "is not" msgstr "不是" #. Ordering must correspond with SearchConditionMediaType.MediaType -#: ../src/searches/SavedSearchDialog.vala:252 +#: src/searches/SavedSearchDialog.vala:249 msgid "any photo" msgstr "任意照片" -#: ../src/searches/SavedSearchDialog.vala:253 +#: src/searches/SavedSearchDialog.vala:250 msgid "a raw photo" msgstr "一个 RAW 照片" -#: ../src/searches/SavedSearchDialog.vala:254 +#: src/searches/SavedSearchDialog.vala:251 msgid "a video" msgstr "一个视频" -#: ../src/searches/SavedSearchDialog.vala:308 +#: src/searches/SavedSearchDialog.vala:305 msgid "has" msgstr "有" -#: ../src/searches/SavedSearchDialog.vala:309 +#: src/searches/SavedSearchDialog.vala:306 msgid "has no" msgstr "没有" -#: ../src/searches/SavedSearchDialog.vala:314 +#: src/searches/SavedSearchDialog.vala:311 msgid "modifications" msgstr "修改" -#: ../src/searches/SavedSearchDialog.vala:315 +#: src/searches/SavedSearchDialog.vala:312 msgid "internal modifications" msgstr "内部修改" -#: ../src/searches/SavedSearchDialog.vala:316 +#: src/searches/SavedSearchDialog.vala:313 msgid "external modifications" msgstr "外部修改" #. Ordering must correspond with SearchConditionFlagged.State -#: ../src/searches/SavedSearchDialog.vala:370 +#: src/searches/SavedSearchDialog.vala:367 msgid "flagged" msgstr "已标注" -#: ../src/searches/SavedSearchDialog.vala:371 +#: src/searches/SavedSearchDialog.vala:368 msgid "not flagged" msgstr "未标注" -#: ../src/searches/SavedSearchDialog.vala:434 +#: src/searches/SavedSearchDialog.vala:431 msgid "and higher" msgstr "及更高" -#: ../src/searches/SavedSearchDialog.vala:435 +#: src/searches/SavedSearchDialog.vala:432 msgid "only" msgstr "仅" -#: ../src/searches/SavedSearchDialog.vala:436 +#: src/searches/SavedSearchDialog.vala:433 msgid "and lower" msgstr "及更低" -#: ../src/searches/SavedSearchDialog.vala:498 +#: src/searches/SavedSearchDialog.vala:495 msgid "is after" msgstr "晚于" -#: ../src/searches/SavedSearchDialog.vala:499 +#: src/searches/SavedSearchDialog.vala:496 msgid "is before" msgstr "先于" -#: ../src/searches/SavedSearchDialog.vala:500 -msgid "is between" -msgstr "介于" +#: src/searches/SavedSearchDialog.vala:497 +msgid "is between" +msgstr "介于" + +#: src/searches/SavedSearchDialog.vala:510 +msgid "and" +msgstr "和" + +#: src/searches/SavedSearchDialog.vala:691 +msgid "Search" +msgstr "搜索" + +#: src/searches/SavedSearchDialog.vala:696 +msgid "Cancel" +msgstr "取消" + +#: src/searches/SavedSearchDialog.vala:697 +msgid "OK" +msgstr "" + +#: src/searches/SavedSearchDialog.vala:716 +msgid "any" +msgstr "任何" + +#: src/searches/SavedSearchDialog.vala:717 +msgid "all" +msgstr "全部" + +#: src/searches/SavedSearchDialog.vala:718 +msgid "none" +msgstr "无" + +#: src/searches/SearchBoolean.vala:157 +msgid "Any text" +msgstr "任意文字" + +#: src/searches/SearchBoolean.vala:160 +msgid "Title" +msgstr "标题" + +#: src/searches/SearchBoolean.vala:163 +msgid "Tag" +msgstr "标签" + +#: src/searches/SearchBoolean.vala:166 +msgid "Comment" +msgstr "备注" + +#: src/searches/SearchBoolean.vala:169 +msgid "Event name" +msgstr "事件名称" + +#: src/searches/SearchBoolean.vala:172 +msgid "File name" +msgstr "文件名" + +#: src/searches/SearchBoolean.vala:175 +msgid "Media type" +msgstr "媒体类型" + +#: src/searches/SearchBoolean.vala:178 +msgid "Flag state" +msgstr "标注状态" + +#: src/searches/SearchBoolean.vala:181 +msgid "Photo state" +msgstr "照片状态" + +#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:831 +#: src/SearchFilter.vala:1114 +msgid "Rating" +msgstr "评分" + +#: src/searches/SearchBoolean.vala:187 +msgid "Date" +msgstr "日期" + +#: src/SearchFilter.vala:815 +#, fuzzy +#| msgid "Rating" +msgid "★+ Rating" +msgstr "评分" + +#: src/SearchFilter.vala:818 +#, fuzzy +#| msgid "Rating" +msgid "★★+ Rating" +msgstr "评分" + +#: src/SearchFilter.vala:821 +msgid "★★★+ Rating" +msgstr "" + +#: src/SearchFilter.vala:824 +msgid "★★★★+ Rating" +msgstr "" + +#: src/SearchFilter.vala:828 +msgid "★★★★★+ Rating" +msgstr "" + +#: src/SearchFilter.vala:1064 +#, fuzzy, c-format +#| msgid "Error loading UI file %s: %s" +msgid "Error loading search bar UI: %s" +msgstr "载入 UI 文件 %s 时出错:%s" + +#. Ticket #3260 - Add a 'close' context menu to +#. the searchbar. +#. Prepare the close menu for use, but don't +#. display it yet; we'll connect it to secondary +#. click later on. +#: src/SearchFilter.vala:1073 +msgid "Close" +msgstr "关闭" + +#. Type label and toggles +#: src/SearchFilter.vala:1079 +msgid "Type" +msgstr "类型" + +#: src/SearchFilter.vala:1086 +msgid "Videos" +msgstr "视频" + +#: src/SearchFilter.vala:1089 +msgid "RAW Photos" +msgstr "RAW 照片" + +#: src/SearchFilter.vala:1125 +msgid "Use a saved search to filter items in the current view" +msgstr "" + +#: src/SlideshowPage.vala:49 src/SlideshowPage.vala:183 +msgid "Settings" +msgstr "设置" + +#. Set up toolbar +#. add toolbar buttons +#: src/SlideshowPage.vala:160 +msgid "Back" +msgstr "后退" + +#: src/SlideshowPage.vala:162 +msgid "Go to the previous photo" +msgstr "跳到上一张照片" + +#: src/SlideshowPage.vala:167 src/SlideshowPage.vala:274 +msgid "Pause" +msgstr "暂停" + +#: src/SlideshowPage.vala:169 src/SlideshowPage.vala:275 +msgid "Pause the slideshow" +msgstr "暂停幻灯片演示" + +#: src/SlideshowPage.vala:174 +msgid "Next" +msgstr "前进" + +#: src/SlideshowPage.vala:176 +msgid "Go to the next photo" +msgstr "跳到下一张照片" + +#: src/SlideshowPage.vala:184 +msgid "Change slideshow settings" +msgstr "改变幻灯片演示设置" + +#. An entire slideshow set might be missing, so check for a loop. +#: src/SlideshowPage.vala:238 +msgid "All photo source files are missing." +msgstr "所有的照片源文件丢失。" + +#: src/SlideshowPage.vala:270 +msgid "Play" +msgstr "播放" + +#: src/SlideshowPage.vala:271 +msgid "Continue the slideshow" +msgstr "继续幻灯片演示" + +#: src/slideshow/Slideshow.vala:22 +msgid "Slideshow Transitions" +msgstr "幻灯片过渡" + +#: src/slideshow/TransitionEffects.vala:98 +msgid "(None)" +msgstr "(无)" + +#: src/slideshow/TransitionEffects.vala:287 +msgid "None" +msgstr "无" + +#: src/slideshow/TransitionEffects.vala:339 +msgid "Random" +msgstr "随机" + +#: src/tags/Branch.vala:131 +msgid "Tags" +msgstr "标签" + +#: src/Tag.vala:830 +msgid "untitled" +msgstr "未命名" + +#. multiple videos +#: src/VideoSupport.vala:507 +msgid "Export Videos" +msgstr "导出视频" + +#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:470 ui/media.ui:281 +#: ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 +msgid "Toggle _Flag" +msgstr "" + +#: ui/collection.ui:82 ui/event.ui:351 ui/event.ui:519 ui/media.ui:351 +#: ui/photo_context.ui:88 ui/photo.ui:341 ui/tags.ui:351 +msgid "_Developer" +msgstr "开发人员(_D)" + +#: ui/collection.ui:106 ui/event.ui:543 ui/photo_context.ui:113 ui/photo.ui:358 +msgid "Open with E_xternal Editor" +msgstr "用外部编辑器打开(_X)" + +#: ui/collection.ui:117 ui/event.ui:385 ui/event.ui:554 ui/media.ui:379 +#: ui/photo_context.ui:124 ui/tags.ui:379 +msgid "View Eve_nt for Photo" +msgstr "查看照片所属活动(_N)" + +#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/import_queue.ui:5 +#: ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 ui/photo.ui:5 ui/tags.ui:5 +#: ui/top.ui:5 ui/trash.ui:5 +msgid "_File" +msgstr "文件(_F)" + +#: ui/direct.ui:13 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 ui/tags.ui:17 +msgid "Save _As…" +msgstr "另存为(_A)…" + +#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 +#: ui/import_queue.ui:38 ui/import.ui:74 ui/media.ui:99 ui/offline.ui:78 +#: ui/photo.ui:95 ui/tags.ui:99 ui/top.ui:15 ui/trash.ui:87 +msgid "_View" +msgstr "查看(_V)" + +#: ui/direct.ui:81 ui/photo.ui:156 +msgid "Fit to _Page" +msgstr "适合页面(_P)" + +#: ui/direct.ui:86 ui/photo.ui:161 +msgid "Zoom _100%" +msgstr "缩放 _100%" + +#: ui/direct.ui:91 ui/photo.ui:166 +msgid "Zoom _200%" +msgstr "缩放 _200%" + +#: ui/direct.ui:98 ui/photo.ui:187 ui/top.ui:20 +msgid "_Photo" +msgstr "照片(_P)" + +#: ui/direct.ui:101 ui/photo.ui:190 +msgid "_Previous Photo" +msgstr "前一张照片(_P)" + +#: ui/direct.ui:105 ui/photo.ui:194 +msgid "_Next Photo" +msgstr "下一张照片(_N)" + +#: ui/direct.ui:131 ui/photo.ui:220 +msgid "T_ools" +msgstr "工具(_O)" + +#: ui/direct.ui:181 ui/events_directory.ui:158 ui/event.ui:426 +#: ui/import_queue.ui:73 ui/import.ui:191 ui/media.ui:409 ui/offline.ui:188 +#: ui/photo.ui:392 ui/tags.ui:428 ui/trash.ui:197 +msgid "_Frequently Asked Questions" +msgstr "常见问题(_F)" + +#: ui/direct.ui:185 ui/events_directory.ui:162 ui/event.ui:430 +#: ui/import_queue.ui:77 ui/import.ui:195 ui/media.ui:413 ui/offline.ui:192 +#: ui/photo.ui:396 ui/tags.ui:432 ui/trash.ui:201 +msgid "_Report a Problem…" +msgstr "汇报问题(_R)…" + +#: ui/events_directory.ui:8 ui/event.ui:8 ui/import_queue.ui:14 ui/import.ui:8 +#: ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 ui/trash.ui:8 +#, fuzzy +#| msgid "Import From Folder" +msgid "_Import from Folder…" +msgstr "从文件夹导入" + +#: ui/events_directory.ui:13 ui/event.ui:13 ui/import_queue.ui:19 +#: ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 ui/photo.ui:13 ui/tags.ui:13 +#: ui/trash.ui:13 +#, fuzzy +#| msgid "Import From Application" +msgid "Import From _Application…" +msgstr "从应用程序导入" + +#: ui/events_directory.ui:19 ui/event.ui:34 ui/import_queue.ui:25 +#: ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 ui/photo.ui:42 ui/tags.ui:34 +#: ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 +msgid "Empty T_rash" +msgstr "清空回收站(_R)" + +#: ui/events_directory.ui:47 ui/event.ui:62 ui/import.ui:55 ui/media.ui:62 +#: ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 +msgid "_Find" +msgstr "查找(_F)" + +#: ui/events_directory.ui:51 ui/event.ui:66 ui/media.ui:66 ui/offline.ui:51 +#: ui/photo.ui:70 ui/search_sidebar_context.ui:6 +#: ui/sidebar_default_context.ui:6 ui/tags.ui:66 ui/trash.ui:56 +#, fuzzy +#| msgid "Ne_w Saved Search..." +msgid "Ne_w Saved Search…" +msgstr "新建保存搜索(_W)..." + +#: ui/events_directory.ui:74 ui/event.ui:102 ui/import_queue.ui:41 +#: ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 ui/photo.ui:98 +#: ui/tags.ui:102 ui/trash.ui:90 +msgid "_Basic Information" +msgstr "基本信息(_B)" + +#: ui/events_directory.ui:79 ui/event.ui:107 ui/import.ui:82 ui/media.ui:107 +#: ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 ui/trash.ui:95 +msgid "E_xtended Information" +msgstr "扩展信息(_X)" + +#: ui/events_directory.ui:84 ui/event.ui:112 ui/import.ui:87 ui/media.ui:112 +#: ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 +msgid "_Search Bar" +msgstr "搜索栏(_S)" + +#: ui/events_directory.ui:89 ui/event.ui:117 ui/import.ui:92 ui/media.ui:117 +#: ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 ui/trash.ui:105 +msgid "S_idebar" +msgstr "侧边栏(_S)" -#: ../src/searches/SavedSearchDialog.vala:513 -msgid "and" -msgstr "和" +#: ui/events_directory.ui:94 ui/event.ui:122 ui/import.ui:97 ui/media.ui:122 +#: ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 ui/trash.ui:110 +#, fuzzy +#| msgid "Pin Toolbar" +msgid "T_oolbar" +msgstr "固定工具栏" -#: ../src/searches/SavedSearchDialog.vala:720 -msgid "any" -msgstr "任何" +#: ui/events_directory.ui:101 ui/event.ui:134 ui/media.ui:134 ui/tags.ui:134 +msgid "_Comments" +msgstr "备注(_C)" -#: ../src/searches/SavedSearchDialog.vala:721 -msgid "all" -msgstr "全部" +#: ui/events_directory.ui:108 ui/event.ui:243 ui/import_queue.ui:48 +#: ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 ui/photo.ui:127 +#: ui/tags.ui:243 ui/trash.ui:172 +msgid "Sort _Events" +msgstr "排列事件(_E)" -#: ../src/searches/SavedSearchDialog.vala:722 -msgid "none" -msgstr "无" +#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 +#: ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 ui/media.ui:246 +#: ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 ui/tags.ui:246 +#: ui/trash.ui:175 +msgid "_Ascending" +msgstr "升序(_A)" -#: ../src/searches/SearchBoolean.vala:157 -msgid "Any text" -msgstr "任意文字" +#: ui/events_directory.ui:116 ui/event.ui:236 ui/import_queue.ui:56 +#: ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 ui/trash.ui:180 +msgid "D_escending" +msgstr "降序(_D)" -#: ../src/searches/SearchBoolean.vala:160 -msgid "Title" -msgstr "标题" +#: ui/events_directory.ui:132 ui/event.ui:377 ui/media.ui:371 ui/tags.ui:371 +#: ui/top.ui:30 +msgid "Even_ts" +msgstr "活动(_T)" -#: ../src/searches/SearchBoolean.vala:163 -msgid "Tag" -msgstr "标签" +#: ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 ui/offline.ui:207 +#: ui/photo.ui:77 ui/tags.ui:74 +#, fuzzy +#| msgid "R_emove From Library" +msgid "R_emove from Library" +msgstr "从媒体库移除(_E)" -#: ../src/searches/SearchBoolean.vala:166 -msgid "Comment" -msgstr "备注" +#: ui/event.ui:129 ui/import.ui:104 ui/media.ui:129 ui/tags.ui:129 +msgid "_Titles" +msgstr "标题(_T)" -#: ../src/searches/SearchBoolean.vala:169 -msgid "Event name" -msgstr "事件名称" +#: ui/event.ui:139 ui/event.ui:402 ui/media.ui:139 ui/media.ui:385 +#: ui/photo.ui:369 ui/tags.ui:139 ui/tags.ui:385 ui/top.ui:35 +msgid "Ta_gs" +msgstr "标签(_G)" -#: ../src/searches/SearchBoolean.vala:172 -msgid "File name" -msgstr "文件名" +#: ui/event.ui:206 ui/media.ui:206 ui/tags.ui:206 +msgid "Sort _Photos" +msgstr "照片排序(_P)" -#: ../src/searches/SearchBoolean.vala:175 -msgid "Media type" -msgstr "媒体类型" +#: ui/event.ui:209 ui/media.ui:209 ui/tags.ui:209 +msgid "By _Title" +msgstr "按照标题(_T)" -#: ../src/searches/SearchBoolean.vala:178 -msgid "Flag state" -msgstr "标注状态" +#: ui/event.ui:214 ui/media.ui:214 ui/tags.ui:214 +#, fuzzy +#| msgid "File name" +msgid "By _Filename" +msgstr "文件名" -#: ../src/searches/SearchBoolean.vala:181 -msgid "Photo state" -msgstr "照片状态" +#: ui/event.ui:219 ui/media.ui:219 ui/tags.ui:219 +msgid "By Exposure _Date" +msgstr "按照曝光日期(_D)" -#: ../src/searches/SearchBoolean.vala:187 -msgid "Date" -msgstr "日期" +#: ui/event.ui:224 ui/media.ui:224 ui/tags.ui:224 +msgid "By _Rating" +msgstr "按照评分(_R)" -#: ../src/sidebar/Tree.vala:199 -msgid "New _Tag..." -msgstr "新建标签(_T)..." +#: ui/event.ui:251 ui/import.ui:174 ui/media.ui:251 ui/photo.ui:135 +#: ui/tags.ui:251 +#, fuzzy +#| msgid "D_escending" +msgid "_Descending" +msgstr "降序(_D)" -#: ../src/slideshow/Slideshow.vala:22 -msgid "Slideshow Transitions" -msgstr "幻灯片过渡" +#: ui/event.ui:275 ui/media.ui:275 ui/tags.ui:275 ui/top.ui:25 +msgid "_Photos" +msgstr "照片(_P)" -#: ../src/slideshow/TransitionEffects.vala:98 -msgid "(None)" -msgstr "(无)" +#: ui/import_queue.ui:8 +msgid "_Stop Import" +msgstr "停止导入(_S)" -#: ../src/slideshow/TransitionEffects.vala:287 -msgid "None" -msgstr "无" +#: ui/set_background_dialog.ui:9 +#, fuzzy +#| msgid "Set as _Desktop Background" +msgid "Set as Desktop Background" +msgstr "设置为桌面背景(_D)" -#: ../src/slideshow/TransitionEffects.vala:339 -msgid "Random" -msgstr "随机" +#: ui/set_background_dialog.ui:69 ui/set_background_slideshow_dialog.ui:134 +msgid "Use for Desktop" +msgstr "用作桌面" -#: ../src/tags/Branch.vala:127 -msgid "Tags" -msgstr "标签" +#: ui/set_background_dialog.ui:86 ui/set_background_slideshow_dialog.ui:151 +msgid "Use for Lock Screen" +msgstr "用作锁屏背景" -#: ../ui/set_background_dialog.glade.h:1 +#: ui/set_background_slideshow_dialog.ui:16 msgid "Set as Desktop Slideshow" msgstr "设置为桌面幻灯片" -#: ../ui/set_background_dialog.glade.h:2 +#: ui/set_background_slideshow_dialog.ui:56 msgid "Generate desktop background slideshow" msgstr "生成桌面背景幻灯片" -#: ../ui/set_background_dialog.glade.h:3 +#: ui/set_background_slideshow_dialog.ui:82 msgid "Show each photo for" msgstr "显示每张照片为" -#: ../ui/set_background_dialog.glade.h:4 +#: ui/set_background_slideshow_dialog.ui:94 msgid "period of time" msgstr "时间段" -#: ../ui/set_background_dialog.glade.h:5 +#: ui/set_background_slideshow_dialog.ui:116 msgid "How long each photo is shown on the desktop background" msgstr "每张照片在桌面背景上出现多长时间" -#: ../ui/shotwell.glade.h:1 -msgid "Search" -msgstr "搜索" +#: ui/shotwell.ui:65 +msgid "white" +msgstr "白" -#: ../ui/shotwell.glade.h:2 -msgid "_Name of search:" -msgstr "搜索名称(_N):" +#: ui/shotwell.ui:92 +msgid "black" +msgstr "黑" -#: ../ui/shotwell.glade.h:3 -msgid "_Match" -msgstr "匹配(_M)" +#: ui/shotwell.ui:123 +msgid "Display" +msgstr "显示" -#: ../ui/shotwell.glade.h:4 -msgid "of the following:" -msgstr "以下这些:" +#: ui/shotwell.ui:160 +msgid "_Background:" +msgstr "背景(_B):" + +#: ui/shotwell.ui:175 +msgid "_Import photos to:" +msgstr "导入照片到(_I):" + +#: ui/shotwell.ui:186 +msgid "_Watch library directory for new files" +msgstr "监视媒体库文件夹中的新文件(_W)" + +#: ui/shotwell.ui:209 +msgid "Importing" +msgstr "导入中" + +#: ui/shotwell.ui:226 +msgid "_Directory structure:" +msgstr "目录结构(_D):" + +#: ui/shotwell.ui:240 +msgid "Example:" +msgstr "例如:" + +#: ui/shotwell.ui:249 +msgid "R_ename imported files to lowercase" +msgstr "将导入文件以小写重命名(_E)" + +#: ui/shotwell.ui:271 +msgid "Metadata" +msgstr "元数据" + +#: ui/shotwell.ui:284 +msgid "Write tags, titles, and other _metadata to photo files" +msgstr "写入标签、标题和其他元数据到照片文件(_M)" + +#: ui/shotwell.ui:306 +msgid "RAW Developer" +msgstr "RAW 开发者:" + +#: ui/shotwell.ui:323 +msgid "De_fault:" +msgstr "默认(_F):" + +#: ui/shotwell.ui:377 +msgid "_Pattern:" +msgstr "范例(_P):" + +#: ui/shotwell.ui:439 +msgid "E_xternal photo editor:" +msgstr "外部照片编辑器(_X):" + +#: ui/shotwell.ui:456 +msgid "External _RAW editor:" +msgstr "外部 RAW 编辑器(_R):" + +#: ui/shotwell.ui:517 +msgid "External Editors" +msgstr "外部编辑器" -#: ../ui/shotwell.glade.h:5 +#: ui/shotwell.ui:542 +msgid "Plugins" +msgstr "插件" + +#: ui/shotwell.ui:583 msgid "Printed Image Size" msgstr "印刷尺寸" -#: ../ui/shotwell.glade.h:6 +#: ui/shotwell.ui:600 msgid "Use a _standard size:" msgstr "使用标准尺寸(_S):" -#: ../ui/shotwell.glade.h:7 +#: ui/shotwell.ui:643 msgid "Use a c_ustom size:" msgstr "使用自定义尺寸(_U):" -#: ../ui/shotwell.glade.h:8 +#: ui/shotwell.ui:731 msgid "_Match photo aspect ratio" msgstr "匹配照片比例(_M)" -#: ../ui/shotwell.glade.h:9 +#: ui/shotwell.ui:755 msgid "_Autosize:" msgstr "自动(_A):" -#: ../ui/shotwell.glade.h:10 +#: ui/shotwell.ui:795 msgid "Titles" msgstr "标题" -#: ../ui/shotwell.glade.h:11 +#: ui/shotwell.ui:812 msgid "Print image _title" msgstr "打印图像标题(_T)" -#: ../ui/shotwell.glade.h:12 +#: ui/shotwell.ui:855 msgid "Pixel Resolution" msgstr "像素分辨率" -#: ../ui/shotwell.glade.h:13 +#: ui/shotwell.ui:875 msgid "_Output photo at:" msgstr "输出照片为(_O):" -#: ../ui/shotwell.glade.h:14 +#: ui/shotwell.ui:909 msgid "pixels per inch" msgstr "每英寸像素数" -#: ../ui/shotwell.glade.h:16 -msgid "Shotwell Preferences" -msgstr "Shotwell 首选项" +#: ui/shotwell.ui:949 +msgid "_Name of search:" +msgstr "搜索名称(_N):" -#: ../ui/shotwell.glade.h:17 -msgid "white" -msgstr "白" +#: ui/shotwell.ui:1003 +msgid "_Match" +msgstr "匹配(_M)" -#: ../ui/shotwell.glade.h:18 -msgid "black" -msgstr "黑" +#: ui/shotwell.ui:1030 +msgid "of the following:" +msgstr "以下这些:" -#: ../ui/shotwell.glade.h:20 -msgid "_Watch library directory for new files" -msgstr "监视媒体库文件夹中的新文件(_W)" +#: ui/shotwell.ui:1111 +msgid "label" +msgstr "标签" -#: ../ui/shotwell.glade.h:21 -msgid "Metadata" -msgstr "元数据" +#: ui/shotwell.ui:1262 +msgid "_Delay:" +msgstr "延时(_D):" -#: ../ui/shotwell.glade.h:22 -msgid "Write tags, titles, and other _metadata to photo files" -msgstr "写入标签、标题和其他元数据到照片文件(_M)" +#: ui/shotwell.ui:1276 +msgid "_Transition effect:" +msgstr "过渡效果(_T):" -#: ../ui/shotwell.glade.h:23 -msgid "Display" -msgstr "显示" +#: ui/shotwell.ui:1290 +msgid "Transition d_elay:" +msgstr "过渡延时(_E):" -#: ../ui/shotwell.glade.h:24 -msgid "_Import photos to:" -msgstr "导入照片到(_I):" +#: ui/shotwell.ui:1300 +msgid "Show t_itle" +msgstr "显示标题(_I)" -#: ../ui/shotwell.glade.h:25 -msgid "_Background:" -msgstr "背景(_B):" +#: ui/shotwell.ui:1375 ui/shotwell.ui:1386 +msgid "seconds" +msgstr "秒" -#: ../ui/shotwell.glade.h:26 -msgid "Importing" -msgstr "导入中" +#: ui/sidebar_default_context.ui:11 ui/tag_sidebar_context.ui:6 +#, fuzzy +#| msgid "New _Tag..." +msgid "New _Tag…" +msgstr "新建标签(_T)..." -#: ../ui/shotwell.glade.h:27 -msgid "_Directory structure:" -msgstr "目录结构(_D):" +#: ui/trash.ui:285 +msgid "Delete all photos in the trash" +msgstr "删除在回收站中的全部照片" -#: ../ui/shotwell.glade.h:28 -msgid "_Pattern:" -msgstr "范例(_P):" +#~ msgid "Login" +#~ msgstr "登录" -#: ../ui/shotwell.glade.h:29 -msgid "Example:" -msgstr "例如:" +#~ msgid "" +#~ "You are logged into Tumblr as (name).\n" +#~ "\n" +#~ "(this label's string is populated and set inside the code, \n" +#~ "so changes made here will not display)" +#~ msgstr "" +#~ "您正在以 (name) 身份登录 Tumblr.\n" +#~ "\n" +#~ "(该标签字符串在源码内产生并设定,\n" +#~ "因此此处的更改将不会显示)" -#: ../ui/shotwell.glade.h:30 -msgid "R_ename imported files to lowercase" -msgstr "将导入文件以小写重命名(_E)" +#~ msgid "" +#~ " (text depends on fb username and is modified in the app - \n" +#~ "anything put into this field won't display)" +#~ msgstr "" +#~ "(文本依赖于 FB 用户名,已在程序中修改 -\n" +#~ "在此输入此框内的一切均不会显示)" -#: ../ui/shotwell.glade.h:31 -msgid "RAW Developer" -msgstr "RAW 开发者:" +#~ msgid "" +#~ "You are logged into Flickr as (name).\n" +#~ "\n" +#~ "(this label's string is populated and set inside the code, \n" +#~ "so changes made here will not display)" +#~ msgstr "" +#~ "您已登录到 Flickr 的 (name) 用户。\n" +#~ "\n" +#~ "(这个标签串设定于代码中\n" +#~ "在此的改变不会被显示)" -#: ../ui/shotwell.glade.h:32 -msgid "De_fault:" -msgstr "默认(_F):" +#~ msgid "_visibility label (populated in the code)" +#~ msgstr "可见度标签 (代码中)(_V)" -#: ../ui/shotwell.glade.h:34 -msgid "E_xternal photo editor:" -msgstr "外部照片编辑器(_X):" +#~ msgid "" +#~ "'you are logged in as $name'\n" +#~ "(populated in the application code)" +#~ msgstr "" +#~ "'您已登录为 $name'\n" +#~ "(程序代码中)" -#: ../ui/shotwell.glade.h:35 -msgid "External _RAW editor:" -msgstr "外部 RAW 编辑器(_R):" +#~ msgid "" +#~ "$mediatype will appear in\n" +#~ "(populated in code)" +#~ msgstr "" +#~ "$mediatype 会被显示于\n" +#~ "(代码中)" -#: ../ui/shotwell.glade.h:36 -msgid "External Editors" -msgstr "外部编辑器" +#~ msgid "Play a slideshow" +#~ msgstr "开始幻灯片播放" -#: ../ui/shotwell.glade.h:37 -msgid "Plugins" -msgstr "插件" +#~ msgid "Save Details..." +#~ msgstr "保存详细信息..." -#: ../ui/shotwell.glade.h:38 -msgid "_Delay:" -msgstr "延时(_D):" +#~ msgid "Only _Remove" +#~ msgstr "只移除(_R)" -#: ../ui/shotwell.glade.h:39 -msgid "_Transition effect:" -msgstr "过渡效果(_T):" +#~ msgid "_Modify original files" +#~ msgstr "修改原始文件(_M)" -#: ../ui/shotwell.glade.h:40 -msgid "Transition d_elay:" -msgstr "过渡延时(_E):" +#~ msgid "Increase the magnification of the thumbnails" +#~ msgstr "放大缩略图" -#: ../ui/shotwell.glade.h:41 -msgid "Show t_itle" -msgstr "显示标题(_I)" +#~ msgid "Decrease the magnification of the thumbnails" +#~ msgstr "缩小缩略图" -#: ../ui/shotwell.glade.h:42 -msgid "seconds" -msgstr "秒" +#~ msgid "_Play Video" +#~ msgstr "播放视频(_P)" -#: ../ui/shotwell.glade.h:43 -msgid "_Login" -msgstr "登录(_L)" +#~ msgid "Open the selected videos in the system video player" +#~ msgstr "在系统视频播放器中打开选定视频" + +#~ msgid "Display the title of each photo" +#~ msgstr "显示每张照片的标题" + +#~ msgid "Display the comment of each photo" +#~ msgstr "显示每张照片的备注" + +#~ msgid "Sort photos by exposure date" +#~ msgstr "按照曝光日期排序" + +#~ msgid "Sort photos by rating" +#~ msgstr "按照评分排序" + +#~ msgid "Sort photos in a descending order" +#~ msgstr "按照降序排列照片" + +#~ msgid "Previous Photo" +#~ msgstr "前一张照片" + +#~ msgid "Next Photo" +#~ msgstr "下一张照片" + +#~ msgid "Increase the magnification of the photo" +#~ msgstr "放大缩略图" + +#~ msgid "Decrease the magnification of the photo" +#~ msgstr "缩小缩略图" + +#~ msgid "Zoom the photo to fit on the screen" +#~ msgstr "缩放照片以适合屏幕" + +#~ msgid "Zoom the photo to 100% magnification" +#~ msgstr "缩放照片至 100% 比例" + +#~ msgid "Zoom the photo to 200% magnification" +#~ msgstr "缩放照片至 200% 比例" + +#~ msgid "Set as _Desktop Slideshow..." +#~ msgstr "设置为桌面幻灯片(_D)..." + +#~ msgid "Re_name Event..." +#~ msgstr "重新命名事件(_N)..." + +#~ msgid "_Export..." +#~ msgstr "导出(_E)..." + +#~ msgid "Pu_blish..." +#~ msgstr "发布(_B)..." + +#~ msgid "Edit _Title..." +#~ msgstr "编辑标题(_T)..." + +#~ msgid "Edit _Comment..." +#~ msgstr "编辑备注(_C)..." + +#~ msgid "Edit Event _Comment..." +#~ msgstr "修改事件备注(_C)" + +#~ msgid "_Adjust Date and Time..." +#~ msgstr "修改日期和时间(_A)..." + +#~ msgid "Add _Tags..." +#~ msgstr "添加标签(_T)..." + +#~ msgid "_Add Tags..." +#~ msgstr "添加标注(A)…" + +#~ msgid "Send _To..." +#~ msgstr "发送至(_T)..." + +#~ msgid "Send T_o..." +#~ msgstr "发送至(_O)…" + +#~ msgid "_Find..." +#~ msgstr "查找(_F)..." + +#~ msgid "Modif_y Tags..." +#~ msgstr "修改标签(_Y)..." + +#~ msgid "Tag Photos as \"%s\"" +#~ msgstr "为照片添加标签 %s" + +#~ msgid "Tag the selected photos as \"%s\"" +#~ msgstr "为选中的照片添加标签 %s" + +#~ msgid "Remove Tag \"%s\" From _Photos" +#~ msgstr "从照片移除标签 %s (_P)" + +#~ msgid "Remove Tag \"%s\" From Photos" +#~ msgstr "从照片移除标签 %s" + +#~ msgid "_Edit..." +#~ msgstr "编辑(_E)..." + +#~ msgid "%-I:%M %p" +#~ msgstr "%-I:%M %p" + +#~ msgid "%-I:%M:%S %p" +#~ msgstr "%-I:%M:%S %p" + +#~ msgid "RAW photos" +#~ msgstr "RAW 照片" + +#~ msgid "Import the selected photos into your library" +#~ msgstr "导入选定的照片到您的媒体库" + +#~ msgid "Import all the photos into your library" +#~ msgstr "导入所有照片到您的媒体库" + +#~ msgid "Save photo" +#~ msgstr "保存照片" + +#~ msgid "Save _As..." +#~ msgstr "另存为(_A)..." + +#~ msgid "Save photo with a different name" +#~ msgstr "以其他名字保存照片" + +#~ msgid "Print the photo to a printer connected to your computer" +#~ msgstr "使用连接到此电脑的打印机打印照片" + +#~ msgid "Display the comment of each event" +#~ msgstr "显示每个事件的备注" + +#~ msgid "Importing..." +#~ msgstr "导入..." + +#~ msgid "Stop importing photos" +#~ msgstr "停止导入照片" + +#~ msgid "Preparing to import..." +#~ msgstr "准备导入..." + +#~ msgid "_Import From Folder..." +#~ msgstr "从文件夹导入(_I)..." + +#~ msgid "Import photos from disk to library" +#~ msgstr "从磁盘导入照片到媒体库" + +#~ msgid "Import From _Application..." +#~ msgstr "从应用程序导入(_A)..." + +#~ msgid "Find photos and videos by search criteria" +#~ msgstr "按照规则查找照片和视频" + +#~ msgid "Display basic information for the selection" +#~ msgstr "显示所选项的基本信息" + +#~ msgid "The selected videos were successfully published." +#~ msgstr "选中的视频已经成功发布。" + +#~ msgid "The selected photos were successfully published." +#~ msgstr "选中照片已经成功发布。" #~ msgid "Shotwell is configured to import photos to your home directory.\n" #~ msgstr "Shotwell 被配置为从您的主目录导入照片。\n" diff --git a/po/zh_HK.gmo b/po/zh_HK.gmo deleted file mode 100644 index d5ae797..0000000 Binary files a/po/zh_HK.gmo and /dev/null differ diff --git a/po/zh_TW.gmo b/po/zh_TW.gmo deleted file mode 100644 index 82b5dca..0000000 Binary files a/po/zh_TW.gmo and /dev/null differ diff --git a/po/zh_TW.po b/po/zh_TW.po index 0fac1eb..c12d013 100644 --- a/po/zh_TW.po +++ b/po/zh_TW.po @@ -13,10 +13,9 @@ msgid "" msgstr "" "Project-Id-Version: shotwell-0.26\n" -"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?" -"product=shotwell&keywords=I18N+L10N&component=Internationalization\n" -"POT-Creation-Date: 2017-12-24 15:23+0000\n" -"PO-Revision-Date: 2018-01-02 19:21+0800\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/shotwell/issues\n" +"POT-Creation-Date: 2018-08-06 17:03+0000\n" +"PO-Revision-Date: 2018-08-21 23:44+0800\n" "Last-Translator: Cheng-Chia Tseng \n" "Language-Team: Chinese (Taiwan) \n" "Language: zh_TW\n" @@ -24,13 +23,13 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Poedit 2.0.3\n" +"X-Generator: Poedit 2.1.1\n" #: misc/shotwell.appdata.xml.in:8 misc/shotwell.desktop.in:4 #: plugins/shotwell-publishing-extras/GalleryConnector.vala:115 #: src/photos/RawSupport.vala:308 ui/collection.ui:85 ui/event.ui:356 -#: ui/event.ui:524 ui/media.ui:356 ui/photo_context.ui:91 ui/photo.ui:347 -#: ui/tags.ui:356 +#: ui/event.ui:524 ui/faces.ui:356 ui/media.ui:356 ui/photo_context.ui:91 +#: ui/photo.ui:347 ui/tags.ui:356 msgid "Shotwell" msgstr "Shotwell" @@ -104,27 +103,27 @@ msgstr "相片檢視器" #: misc/org.yorba.shotwell-extras.gschema.xml:6 msgid "authentication token" -msgstr "核對驗符" +msgstr "核對代符" #: misc/org.yorba.shotwell-extras.gschema.xml:7 msgid "Yandex-Fotki authentication token, if logged in." -msgstr "Yandex-Fotki 身份核對驗符,若已登入的話。" +msgstr "Yandex-Fotki 身份核對代符,若已登入的話。" #: misc/org.yorba.shotwell-extras.gschema.xml:14 msgid "Token" -msgstr "驗符" +msgstr "代符" #: misc/org.yorba.shotwell-extras.gschema.xml:15 msgid "The token to access tumblr" -msgstr "存取 tumblr 的驗符" +msgstr "存取 tumblr 的代符" #: misc/org.yorba.shotwell-extras.gschema.xml:20 msgid "Secret token" -msgstr "祕密驗符" +msgstr "祕密代符" #: misc/org.yorba.shotwell-extras.gschema.xml:21 msgid "The secret token to sign oauth requests" -msgstr "登入 oauth 請求的祕密驗符" +msgstr "登入 oauth 請求的祕密代符" #: misc/org.yorba.shotwell-extras.gschema.xml:26 #: misc/org.yorba.shotwell.gschema.xml:498 @@ -165,11 +164,11 @@ msgstr "Rajce 使用者名稱,若已登入的話。" #: misc/org.yorba.shotwell-extras.gschema.xml:52 msgid "token" -msgstr "驗符" +msgstr "代符" #: misc/org.yorba.shotwell-extras.gschema.xml:53 msgid "user token, if remembered." -msgstr "使用者驗符,若已記住的話。" +msgstr "使用者代符,若已記住的話。" #: misc/org.yorba.shotwell-extras.gschema.xml:58 #: misc/org.yorba.shotwell.gschema.xml:542 @@ -445,12 +444,12 @@ msgid "Pin toolbar in fullscreen, or not." msgstr "在全螢幕時釘住工具列,或者不要。" #: misc/org.yorba.shotwell.gschema.xml:161 -msgid "background color" -msgstr "背景色" +msgid "prefer GTK+’s dark theme" +msgstr "較喜好 GTK+ 的暗色主題" #: misc/org.yorba.shotwell.gschema.xml:162 -msgid "A grayscale color for use as the background color." -msgstr "作為背景色使用的灰階色彩。" +msgid "Whether to use the dark theme of GTK+ for Shotwell or not." +msgstr "是否使用 GTK+ 的暗色主題。" #: misc/org.yorba.shotwell.gschema.xml:167 msgid "background for transparent images" @@ -1313,7 +1312,7 @@ msgstr "Flickr 授權失敗" msgid "Verifying authorization…" msgstr "正在驗證授權…" -#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:118 +#: plugins/authenticator/shotwell/GoogleAuthenticator.vala:137 msgid "" "You have already logged in and out of a Google service during this Shotwell " "session.\n" @@ -1394,10 +1393,11 @@ msgstr "無法載入使用者介面:%s" msgid "Visit the Shotwell home page" msgstr "造訪 Shotwell 網頁" -#: plugins/common/Resources.vala:31 src/AppWindow.vala:611 +#: plugins/common/Resources.vala:31 src/AppWindow.vala:603 msgid "translator-credits" msgstr "" -"Cheng-Chia Tseng , 2011, 2012, 2013, 2014, 2015, 2017." +"Cheng-Chia Tseng , 2011, 2012, 2013, 2014, 2015, 2017.\n" +"pan93412 , 2018." #. Possible error message when a site presents a bad certificate. #: plugins/common/RESTSupport.vala:217 @@ -1532,7 +1532,7 @@ msgstr "登出(_L)" #: plugins/shotwell-publishing/picasa_publishing_options_pane.ui:156 #: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:121 #: plugins/shotwell-publishing/youtube_publishing_options_pane.ui:115 -#: src/CollectionPage.vala:82 src/PhotoPage.vala:2469 +#: src/CollectionPage.vala:82 src/PhotoPage.vala:2492 msgid "_Publish" msgstr "發布(_P)" @@ -1804,7 +1804,7 @@ msgstr "只有我" #: plugins/shotwell-publishing/FlickrPublishing.vala:661 #: plugins/shotwell-publishing/PiwigoPublishing.vala:1290 msgid "Everyone" -msgstr "每個人" +msgstr "任何人" #: plugins/shotwell-publishing/flickr_publishing_options_pane.ui:61 #: plugins/shotwell-publishing/tumblr_publishing_options_pane.ui:59 @@ -1983,7 +1983,7 @@ msgid "Logout" msgstr "登出" #: plugins/shotwell-publishing/piwigo_publishing_options_pane.ui:268 -#: src/Resources.vala:296 ui/collection.ui:192 +#: src/Resources.vala:266 ui/collection.ui:192 msgid "Publish" msgstr "發布" @@ -2013,8 +2013,8 @@ msgid "Certificate of %s" msgstr "%s 的憑證" #: plugins/shotwell-publishing/PiwigoPublishing.vala:1051 -#: src/Resources.vala:167 ui/multitextentrydialog.ui:40 -#: ui/slideshow_settings.ui:49 +#: src/Resources.vala:137 ui/multitextentrydialog.ui:40 +#: ui/slideshow_settings.ui:52 msgid "_OK" msgstr "確定(_O)" @@ -2215,17 +2215,18 @@ msgstr "開啟釘住工具列功能" msgid "Leave fullscreen" msgstr "離開全螢幕" -#: src/AppWindow.vala:538 src/AppWindow.vala:559 src/AppWindow.vala:576 +#: src/AppWindow.vala:530 src/AppWindow.vala:551 src/AppWindow.vala:568 #: src/data_imports/DataImportsUI.vala:302 #: src/data_imports/DataImportsUI.vala:420 src/Dialogs.vala:20 -#: src/Dialogs.vala:28 src/Dialogs.vala:753 src/Dialogs.vala:776 -#: src/publishing/PublishingUI.vala:302 src/publishing/PublishingUI.vala:526 -#: src/Resources.vala:158 ui/multitextentrydialog.ui:25 -#: ui/slideshow_settings.ui:35 ui/textentrydialog.ui:19 +#: src/Dialogs.vala:28 src/Dialogs.vala:58 src/Dialogs.vala:766 +#: src/Dialogs.vala:789 src/publishing/PublishingUI.vala:305 +#: src/publishing/PublishingUI.vala:529 src/Resources.vala:128 +#: ui/multitextentrydialog.ui:25 ui/slideshow_settings.ui:38 +#: ui/textentrydialog.ui:19 msgid "_Cancel" msgstr "取消(_C)" -#: src/AppWindow.vala:586 +#: src/AppWindow.vala:578 #, c-format msgid "" "A fatal error occurred when accessing Shotwell’s library. Shotwell cannot " @@ -2237,21 +2238,21 @@ msgstr "" "\n" "%s" -#: src/AppWindow.vala:607 +#: src/AppWindow.vala:599 msgid "Visit the Shotwell web site" msgstr "造訪 Shotwell 網頁" -#: src/AppWindow.vala:620 +#: src/AppWindow.vala:612 #, c-format msgid "Unable to display help: %s" msgstr "無法顯示幫助:%s" -#: src/AppWindow.vala:628 +#: src/AppWindow.vala:620 #, c-format msgid "Unable to navigate to bug database: %s" msgstr "無法瀏覽臭蟲資料庫:%s" -#: src/AppWindow.vala:636 +#: src/AppWindow.vala:628 #, c-format msgid "Unable to display FAQ: %s" msgstr "無法顯示 FAQ:%s" @@ -2327,18 +2328,18 @@ msgstr "列出所有探查到的相機裝置" #: src/camera/CameraBranch.vala:99 src/camera/ImportPage.vala:711 #: src/camera/ImportPage.vala:727 src/photos/RawSupport.vala:311 -#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/media.ui:361 -#: ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 +#: ui/collection.ui:90 ui/event.ui:361 ui/event.ui:529 ui/faces.ui:361 +#: ui/media.ui:361 ui/photo_context.ui:96 ui/photo.ui:352 ui/tags.ui:361 msgid "Camera" msgstr "相機" #. Translators: First %s is the name of camera as gotten from GPhoto, second is the GVolume name, e.g. Mass storage camera (510MB volume) -#: src/camera/CameraTable.vala:351 +#: src/camera/CameraTable.vala:256 #, c-format msgid "%s (%s)" msgstr "%s (%s)" -#: src/camera/ImportPage.vala:311 src/Properties.vala:230 +#: src/camera/ImportPage.vala:307 src/Properties.vala:234 msgid "RAW+JPEG" msgstr "RAW+JPEG" @@ -2459,7 +2460,7 @@ msgid "Delete these files from camera?" msgid_plural "Delete these %d files from camera?" msgstr[0] "要從相機刪除這 %d 份檔案嗎?" -#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:720 +#: src/camera/ImportPage.vala:1773 src/Dialogs.vala:733 msgid "_Keep" msgstr "保留(_K)" @@ -2474,21 +2475,21 @@ msgid_plural "Unable to delete %d photos/videos from the camera due to errors." msgstr[0] "由於錯誤發生,無法從相機刪除 %d 份相片/視訊。" #: src/CollectionPage.vala:80 src/direct/DirectPhotoPage.vala:85 -#: src/PhotoPage.vala:2464 src/Resources.vala:171 +#: src/PhotoPage.vala:2487 src/Resources.vala:141 msgid "_Print" msgstr "列印(_P)" -#: src/CollectionPage.vala:83 src/Resources.vala:324 ui/collection.ui:128 +#: src/CollectionPage.vala:83 src/Resources.vala:294 ui/collection.ui:128 #: ui/direct_context.ui:23 ui/direct.ui:23 ui/event.ui:567 ui/photo.ui:28 msgid "Send _To…" msgstr "傳送至(_T)…" #: src/CollectionPage.vala:84 src/direct/DirectPhotoPage.vala:90 -#: src/PhotoPage.vala:2474 src/Resources.vala:221 +#: src/PhotoPage.vala:2497 src/Resources.vala:191 msgid "Set as _Desktop Background" msgstr "設為桌面背景(_D)" -#: src/CollectionPage.vala:92 src/Resources.vala:287 +#: src/CollectionPage.vala:92 src/Resources.vala:257 msgid "_Duplicate" msgstr "再製(_D)" @@ -2500,43 +2501,43 @@ msgstr "全螢幕" msgid "S_lideshow" msgstr "投影秀(_L)" -#: src/CollectionPage.vala:110 src/Resources.vala:140 ui/direct.ui:111 +#: src/CollectionPage.vala:110 src/Resources.vala:110 ui/direct.ui:111 #: ui/photo.ui:200 msgid "Rotate _Right" msgstr "向右旋轉(_R)" -#: src/CollectionPage.vala:113 src/Resources.vala:145 ui/direct.ui:116 +#: src/CollectionPage.vala:113 src/Resources.vala:115 ui/direct.ui:116 #: ui/photo.ui:205 msgid "Rotate _Left" msgstr "向左旋轉(_L)" -#: src/CollectionPage.vala:116 src/Resources.vala:150 ui/direct.ui:121 +#: src/CollectionPage.vala:116 src/Resources.vala:120 ui/direct.ui:121 #: ui/photo.ui:210 msgid "Flip Hori_zontally" msgstr "水平翻轉(_Z)" -#: src/CollectionPage.vala:117 src/Resources.vala:153 ui/direct.ui:125 +#: src/CollectionPage.vala:117 src/Resources.vala:123 ui/direct.ui:125 #: ui/photo.ui:214 msgid "Flip Verti_cally" msgstr "垂直翻轉(_C)" -#: src/CollectionPage.vala:119 src/Resources.vala:187 ui/collection.ui:8 +#: src/CollectionPage.vala:119 src/Resources.vala:157 ui/collection.ui:8 #: ui/direct_context.ui:7 ui/direct.ui:134 ui/event.ui:447 #: ui/photo_context.ui:6 ui/photo.ui:223 msgid "_Enhance" msgstr "補強(_E)" -#: src/CollectionPage.vala:120 src/Resources.vala:215 ui/collection.ui:13 +#: src/CollectionPage.vala:120 src/Resources.vala:185 ui/collection.ui:13 #: ui/direct_context.ui:12 ui/direct.ui:161 ui/event.ui:452 #: ui/photo_context.ui:11 ui/photo.ui:250 msgid "Re_vert to Original" msgstr "還原至原始(_V)" -#: src/CollectionPage.vala:122 src/Resources.vala:191 ui/photo.ui:256 +#: src/CollectionPage.vala:122 src/Resources.vala:161 ui/photo.ui:256 msgid "_Copy Color Adjustments" msgstr "複製色彩調整(_C)" -#: src/CollectionPage.vala:125 src/Resources.vala:195 ui/photo.ui:261 +#: src/CollectionPage.vala:125 src/Resources.vala:165 ui/photo.ui:261 msgid "_Paste Color Adjustments" msgstr "貼上色彩調整(_P)" @@ -2544,17 +2545,17 @@ msgstr "貼上色彩調整(_P)" msgid "Adjust Date and Time…" msgstr "調整日期與時間…" -#: src/CollectionPage.vala:143 src/Resources.vala:320 ui/collection.ui:108 +#: src/CollectionPage.vala:143 src/Resources.vala:290 ui/collection.ui:108 #: ui/event.ui:547 ui/photo_context.ui:115 ui/photo.ui:361 msgid "Open With E_xternal Editor" msgstr "以外部編輯器開啟(_X)" -#: src/CollectionPage.vala:146 src/Resources.vala:322 ui/collection.ui:113 +#: src/CollectionPage.vala:146 src/Resources.vala:292 ui/collection.ui:113 #: ui/event.ui:552 ui/photo_context.ui:120 ui/photo.ui:366 msgid "Open With RA_W Editor" msgstr "以 RA_W 編輯器開啟" -#: src/CollectionPage.vala:149 src/Resources.vala:168 +#: src/CollectionPage.vala:149 src/Resources.vala:138 msgid "_Play" msgstr "播放(_P)" @@ -2563,7 +2564,7 @@ msgid "Export Photo/Video" msgid_plural "Export Photos/Videos" msgstr[0] "匯出相片/視訊" -#: src/CollectionPage.vala:412 src/Dialogs.vala:59 src/PhotoPage.vala:2998 +#: src/CollectionPage.vala:412 src/Dialogs.vala:74 src/PhotoPage.vala:3021 msgid "Export Photo" msgid_plural "Export Photos" msgstr[0] "匯出相片" @@ -2616,149 +2617,149 @@ msgstr "正在套用色彩轉換" msgid "Undoing Color Transformations" msgstr "正在復原色彩轉換" -#: src/Commands.vala:1007 +#: src/Commands.vala:1006 msgid "Creating New Event" msgstr "正在建立新事件" -#: src/Commands.vala:1008 +#: src/Commands.vala:1007 msgid "Removing Event" msgstr "正在移除事件" -#: src/Commands.vala:1017 +#: src/Commands.vala:1016 msgid "Moving Photos to New Event" msgstr "正在將相片移動至新事件" -#: src/Commands.vala:1018 +#: src/Commands.vala:1017 msgid "Setting Photos to Previous Event" msgstr "正在將相片設定為上個事件" -#: src/Commands.vala:1075 +#: src/Commands.vala:1074 msgid "Merging" msgstr "正在合併" -#: src/Commands.vala:1076 +#: src/Commands.vala:1075 msgid "Unmerging" msgstr "正在取消合併" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Duplicating photos" msgstr "正在製作相片複本" -#: src/Commands.vala:1085 +#: src/Commands.vala:1084 msgid "Removing duplicated photos" msgstr "正在移除相片複本" -#: src/Commands.vala:1108 +#: src/Commands.vala:1107 #, c-format msgid "Unable to duplicate one photo due to a file error" msgid_plural "Unable to duplicate %d photos due to file errors" msgstr[0] "由於檔案錯誤,無法製作 %d 張相片的複本" -#: src/Commands.vala:1195 +#: src/Commands.vala:1194 msgid "Restoring previous rating" msgstr "正在復原前次評等" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Increasing ratings" msgstr "正在增加評等" -#: src/Commands.vala:1205 src/Commands.vala:1206 +#: src/Commands.vala:1204 src/Commands.vala:1205 msgid "Decreasing ratings" msgstr "正在降低評等" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Setting RAW developer" msgstr "正在設定 RAW 顯影器" -#: src/Commands.vala:1256 +#: src/Commands.vala:1255 msgid "Restoring previous RAW developer" msgstr "正在還原前個 RAW 顯影器" -#: src/Commands.vala:1257 +#: src/Commands.vala:1256 msgid "Set Developer" msgstr "設定顯影器" -#: src/Commands.vala:1347 +#: src/Commands.vala:1346 msgid "Original photo could not be adjusted." msgstr "無法調整原始相片。" -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Adjusting Date and Time" msgstr "正在調整日期與時間" -#: src/Commands.vala:1368 +#: src/Commands.vala:1367 msgid "Undoing Date and Time Adjustment" msgstr "正在復原日期與時間調整" -#: src/Commands.vala:1399 +#: src/Commands.vala:1398 msgid "One original photo could not be adjusted." msgid_plural "The following original photos could not be adjusted." msgstr[0] "下列原始相片無法調整。" -#: src/Commands.vala:1401 src/Commands.vala:1425 +#: src/Commands.vala:1400 src/Commands.vala:1424 msgid "Time Adjustment Error" msgstr "時間調整發生錯誤" -#: src/Commands.vala:1423 +#: src/Commands.vala:1422 msgid "Time adjustments could not be undone on the following photo file." msgid_plural "" "Time adjustments could not be undone on the following photo files." msgstr[0] "下列相片檔案的時間調整無法復原。" -#: src/Commands.vala:1637 src/Commands.vala:1660 +#: src/Commands.vala:1636 src/Commands.vala:1659 msgid "Create Tag" msgstr "建立標籤" -#: src/Commands.vala:1695 +#: src/Commands.vala:1694 #, c-format msgid "Move Tag “%s”" msgstr "移動「%s」標籤" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Move Photos to Trash" -msgstr "將相片移至回收筒" +msgstr "將相片移至垃圾桶" -#: src/Commands.vala:2347 +#: src/Commands.vala:2346 msgid "Restore Photos from Trash" -msgstr "從回收筒還原檔案" +msgstr "從垃圾桶還原檔案" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Move the photos to the Shotwell trash" -msgstr "將相片移至 Shotwell 回收筒" +msgstr "將相片移至 Shotwell 垃圾桶" -#: src/Commands.vala:2348 +#: src/Commands.vala:2347 msgid "Restore the photos back to the Shotwell library" msgstr "將相片還原至 Shotwell 珍藏館" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Moving Photos to Trash" -msgstr "正在將相片移至回收筒" +msgstr "正在將相片移至垃圾桶" -#: src/Commands.vala:2367 +#: src/Commands.vala:2366 msgid "Restoring Photos From Trash" -msgstr "正在從回收筒還原相片" +msgstr "正在從垃圾桶還原相片" -#: src/Commands.vala:2453 +#: src/Commands.vala:2452 msgid "Flag selected photos" msgstr "將所選相片加上旗幟" -#: src/Commands.vala:2454 +#: src/Commands.vala:2453 msgid "Unflag selected photos" msgstr "移除所選相片的旗幟" -#: src/Commands.vala:2455 +#: src/Commands.vala:2454 msgid "Flagging selected photos" msgstr "正為所選相片加上旗幟" -#: src/Commands.vala:2456 +#: src/Commands.vala:2455 msgid "Unflagging selected photos" msgstr "正為所選相片移除旗幟" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Flag" msgstr "加上旗幟" -#: src/Commands.vala:2463 +#: src/Commands.vala:2462 msgid "Unflag" msgstr "移除旗幟" @@ -2796,7 +2797,7 @@ msgstr "" msgid "Database file:" msgstr "資料庫檔案:" -#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:782 +#: src/data_imports/DataImportsUI.vala:112 src/library/LibraryWindow.vala:783 msgid "_Import" msgstr "匯入(_I)" @@ -2808,7 +2809,7 @@ msgstr "從應用程式匯入" msgid "Import media _from:" msgstr "從何處匯入媒體(_F):" -#: src/data_imports/DataImportsUI.vala:415 src/publishing/PublishingUI.vala:521 +#: src/data_imports/DataImportsUI.vala:415 src/publishing/PublishingUI.vala:524 msgid "_Close" msgstr "關閉(_C)" @@ -2875,10 +2876,11 @@ msgid "This will remove the tag “%s” from one photo. Continue?" msgid_plural "This will remove the tag “%s” from %d photos. Continue?" msgstr[0] "這會移除「%s」標籤,共 %d 張相片。要繼續嗎?" -#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:721 -#: src/Resources.vala:159 src/Resources.vala:362 src/Resources.vala:415 -#: src/Resources.vala:659 ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 -#: ui/trash.ui:216 ui/trash.ui:258 +#: src/Dialogs.vala:20 src/Dialogs.vala:28 src/Dialogs.vala:58 +#: src/Dialogs.vala:734 src/Resources.vala:129 src/Resources.vala:310 +#: src/Resources.vala:341 src/Resources.vala:394 src/Resources.vala:762 +#: ui/savedsearch.ui:14 ui/tags.ui:460 ui/trash.ui:63 ui/trash.ui:216 +#: ui/trash.ui:258 msgid "_Delete" msgstr "刪除(_D)" @@ -2900,11 +2902,17 @@ msgstr[0] "切換顯影器將取消所有您在 Shotwell 中對此相片中所 msgid "_Switch Developer" msgstr "切換顯影器(_S)" -#: src/Dialogs.vala:59 +#: src/Dialogs.vala:54 +#, c-format +msgid "This will remove the face “%s” from one photo. Continue?" +msgid_plural "This will remove the face “%s” from %d photos. Continue?" +msgstr[0] "這將會從 %2$d 張圖片中移除臉孔「%1$s」。要繼續嗎?" + +#: src/Dialogs.vala:74 msgid "Export Video" msgstr "匯出視訊" -#: src/Dialogs.vala:84 +#: src/Dialogs.vala:99 msgid "Export Photos" msgstr "匯出相片" @@ -2913,14 +2921,14 @@ msgstr "匯出相片" #. if we can't copy an image over for editing in an external tool. #. Did we fail because we can't write to this directory? #. Yes - display an alternate error message here. -#: src/Dialogs.vala:112 +#: src/Dialogs.vala:127 #, c-format msgid "" "Shotwell couldn’t create a file for editing this photo because you do not " "have permission to write to %s." msgstr "因為您尚未獲取寫入 %s 的授權,Shotwell 無法建立檔案以供此相片編輯。" -#: src/Dialogs.vala:121 +#: src/Dialogs.vala:136 msgid "" "Unable to export the following photo due to a file error.\n" "\n" @@ -2928,7 +2936,7 @@ msgstr "" "由於檔案錯誤,無法匯出下列相片。\n" "\n" -#: src/Dialogs.vala:127 +#: src/Dialogs.vala:142 msgid "" "\n" "\n" @@ -2938,34 +2946,34 @@ msgstr "" "\n" "您想要繼續匯出嗎?" -#: src/Dialogs.vala:128 +#: src/Dialogs.vala:143 msgid "Con_tinue" msgstr "繼續(_T)" -#: src/Dialogs.vala:139 +#: src/Dialogs.vala:153 msgid "Save Details…" msgstr "儲存細節…" -#: src/Dialogs.vala:140 +#: src/Dialogs.vala:154 msgid "Save Details" msgstr "儲存細節" -#: src/Dialogs.vala:155 +#: src/Dialogs.vala:169 #, c-format msgid "(and %d more)\n" msgstr "(還有 %d 項)\n" -#: src/Dialogs.vala:208 +#: src/Dialogs.vala:222 msgid "Import Results Report" msgstr "匯入成果報告" -#: src/Dialogs.vala:212 +#: src/Dialogs.vala:226 #, c-format msgid "Attempted to import %d file." msgid_plural "Attempted to import %d files." msgstr[0] "試圖匯入 %d 份檔案。" -#: src/Dialogs.vala:215 +#: src/Dialogs.vala:229 #, c-format msgid "Of these, %d file was successfully imported." msgid_plural "Of these, %d files were successfully imported." @@ -2974,37 +2982,37 @@ msgstr[0] "其中有 %d 份檔案已成功匯入。" #. #. Duplicates #. -#: src/Dialogs.vala:227 +#: src/Dialogs.vala:241 msgid "Duplicate Photos/Videos Not Imported:" msgstr "重複的相片/視訊並未匯入:" -#: src/Dialogs.vala:231 +#: src/Dialogs.vala:245 msgid "duplicates existing media item" msgstr "媒體項目與既有媒體重複" #. #. Files Not Imported Due to Camera Errors #. -#: src/Dialogs.vala:242 +#: src/Dialogs.vala:256 msgid "Photos/Videos Not Imported Due to Camera Errors:" msgstr "相片/視訊因相機錯誤而未匯入:" -#: src/Dialogs.vala:245 src/Dialogs.vala:260 src/Dialogs.vala:275 -#: src/Dialogs.vala:291 src/Dialogs.vala:306 src/Dialogs.vala:320 +#: src/Dialogs.vala:259 src/Dialogs.vala:274 src/Dialogs.vala:289 +#: src/Dialogs.vala:305 src/Dialogs.vala:320 src/Dialogs.vala:334 msgid "error message:" msgstr "錯誤訊息:" #. #. Files Not Imported Because They Weren't Recognized as Photos or Videos #. -#: src/Dialogs.vala:256 +#: src/Dialogs.vala:270 msgid "Files Not Imported Because They Weren’t Recognized as Photos or Videos:" msgstr "檔案因無法辨別為相片或視訊而未匯入:" #. #. Photos/Videos Not Imported Because They Weren't in a Format Shotwell Understands #. -#: src/Dialogs.vala:271 +#: src/Dialogs.vala:285 msgid "" "Photos/Videos Not Imported Because They Weren’t in a Format Shotwell " "Understands:" @@ -3013,13 +3021,13 @@ msgstr "相片/視訊因格式非 Shotwell 所能認識而未匯入:" #. #. Photos/Videos Not Imported Because Shotwell Couldn't Copy Them into its Library #. -#: src/Dialogs.vala:286 +#: src/Dialogs.vala:300 msgid "" "Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into its " "Library:" msgstr "相片/視訊因 Shotwell 無法將它們複製到珍藏館中而未匯入:" -#: src/Dialogs.vala:290 +#: src/Dialogs.vala:304 #, c-format msgid "" "couldn’t copy %s\n" @@ -3031,61 +3039,61 @@ msgstr "" #. #. Photos/Videos Not Imported Because GDK Pixbuf Library Identified them as Corrupt #. -#: src/Dialogs.vala:302 +#: src/Dialogs.vala:316 msgid "Photos/Videos Not Imported Because Files Are Corrupt:" msgstr "相片/視訊因檔案損毀而未匯入:" #. #. Photos/Videos Not Imported for Other Reasons #. -#: src/Dialogs.vala:317 +#: src/Dialogs.vala:331 msgid "Photos/Videos Not Imported for Other Reasons:" msgstr "相片/視訊因其他原因而未匯入:" -#: src/Dialogs.vala:337 +#: src/Dialogs.vala:351 #, c-format msgid "1 duplicate photo was not imported:\n" msgid_plural "%d duplicate photos were not imported:\n" msgstr[0] "%d 份相片複本未被匯入:\n" -#: src/Dialogs.vala:340 +#: src/Dialogs.vala:354 #, c-format msgid "1 duplicate video was not imported:\n" msgid_plural "%d duplicate videos were not imported:\n" msgstr[0] "%d 份視訊複本未被匯入:\n" -#: src/Dialogs.vala:343 +#: src/Dialogs.vala:357 #, c-format msgid "1 duplicate photo/video was not imported:\n" msgid_plural "%d duplicate photos/videos were not imported:\n" msgstr[0] "%d 份相片/視訊複本未被匯入:\n" -#: src/Dialogs.vala:357 +#: src/Dialogs.vala:371 #, c-format msgid "1 photo failed to import due to a file or hardware error:\n" msgid_plural "%d photos failed to import due to a file or hardware error:\n" msgstr[0] "由於檔案或硬體錯誤,%d 張相片匯入失敗:\n" -#: src/Dialogs.vala:360 +#: src/Dialogs.vala:374 #, c-format msgid "1 video failed to import due to a file or hardware error:\n" msgid_plural "%d videos failed to import due to a file or hardware error:\n" msgstr[0] "由於檔案或硬體錯誤,%d 份視訊匯入失敗:\n" -#: src/Dialogs.vala:363 +#: src/Dialogs.vala:377 #, c-format msgid "1 photo/video failed to import due to a file or hardware error:\n" msgid_plural "" "%d photos/videos failed to import due to a file or hardware error:\n" msgstr[0] "由於檔案或硬體錯誤,%d 份相片/視訊匯入失敗:\n" -#: src/Dialogs.vala:366 +#: src/Dialogs.vala:380 #, c-format msgid "1 file failed to import due to a file or hardware error:\n" msgid_plural "%d files failed to import due to a file or hardware error:\n" msgstr[0] "由於檔案或硬體錯誤,%d 份檔案未能匯入:\n" -#: src/Dialogs.vala:380 +#: src/Dialogs.vala:394 #, c-format msgid "" "1 photo failed to import because the photo library folder was not writable:\n" @@ -3094,7 +3102,7 @@ msgid_plural "" "writable:\n" msgstr[0] "因為相片珍藏館資料夾無法寫入,%d 份視訊匯入失敗:\n" -#: src/Dialogs.vala:383 +#: src/Dialogs.vala:397 #, c-format msgid "" "1 video failed to import because the photo library folder was not writable:\n" @@ -3103,7 +3111,7 @@ msgid_plural "" "writable:\n" msgstr[0] "因為相片珍藏館資料夾無法寫入,%d 份視訊匯入失敗:\n" -#: src/Dialogs.vala:386 +#: src/Dialogs.vala:400 #, c-format msgid "" "1 photo/video failed to import because the photo library folder was not " @@ -3113,7 +3121,7 @@ msgid_plural "" "writable:\n" msgstr[0] "因為相片珍藏館資料夾無法寫入,%d 份相片/視訊匯入失敗:\n" -#: src/Dialogs.vala:389 +#: src/Dialogs.vala:403 #, c-format msgid "" "1 file failed to import because the photo library folder was not writable:\n" @@ -3122,49 +3130,49 @@ msgid_plural "" "writable:\n" msgstr[0] "因為相片珍藏館資料夾無法寫入,%d 份檔案未能匯入:\n" -#: src/Dialogs.vala:403 +#: src/Dialogs.vala:417 #, c-format msgid "1 photo failed to import due to a camera error:\n" msgid_plural "%d photos failed to import due to a camera error:\n" msgstr[0] "由於相機錯誤,%d 張相片匯入失敗:\n" -#: src/Dialogs.vala:406 +#: src/Dialogs.vala:420 #, c-format msgid "1 video failed to import due to a camera error:\n" msgid_plural "%d videos failed to import due to a camera error:\n" msgstr[0] "由於相機錯誤,%d 份視訊匯入失敗:\n" -#: src/Dialogs.vala:409 +#: src/Dialogs.vala:423 #, c-format msgid "1 photo/video failed to import due to a camera error:\n" msgid_plural "%d photos/videos failed to import due to a camera error:\n" msgstr[0] "由於相機錯誤,%d 份相片/視訊匯入失敗:\n" -#: src/Dialogs.vala:412 +#: src/Dialogs.vala:426 #, c-format msgid "1 file failed to import due to a camera error:\n" msgid_plural "%d files failed to import due to a camera error:\n" msgstr[0] "%d 份檔案因相機錯誤而未能匯入:\n" -#: src/Dialogs.vala:426 +#: src/Dialogs.vala:440 #, c-format msgid "1 photo failed to import because it was corrupt:\n" msgid_plural "%d photos failed to import because they were corrupt:\n" msgstr[0] "%d 張相片因相片損毀而未能匯入:\n" -#: src/Dialogs.vala:429 +#: src/Dialogs.vala:443 #, c-format msgid "1 video failed to import because it was corrupt:\n" msgid_plural "%d videos failed to import because they were corrupt:\n" msgstr[0] "%d 份視訊因視訊損毀而未能匯入:\n" -#: src/Dialogs.vala:432 +#: src/Dialogs.vala:446 #, c-format msgid "1 photo/video failed to import because it was corrupt:\n" msgid_plural "%d photos/videos failed to import because they were corrupt:\n" msgstr[0] "%d 份相片/視訊因損毀而未能匯入:\n" -#: src/Dialogs.vala:435 +#: src/Dialogs.vala:449 #, c-format msgid "1 file failed to import because it was corrupt:\n" msgid_plural "%d files failed to import because it was corrupt:\n" @@ -3174,7 +3182,7 @@ msgstr[0] "%d 份檔案因損毀而未能匯入:\n" #. standard container formats are supported, it's just that the streams in them #. might or might not be interpretable), so this message does not need to be #. media specific -#: src/Dialogs.vala:452 +#: src/Dialogs.vala:466 #, c-format msgid "1 unsupported photo skipped:\n" msgid_plural "%d unsupported photos skipped:\n" @@ -3182,49 +3190,49 @@ msgstr[0] "已略過 %d 張未支援相片:\n" #. we have no notion of "non-video" video files right now in Shotwell, so this #. message doesn't need to be media specific -#: src/Dialogs.vala:467 +#: src/Dialogs.vala:481 #, c-format msgid "1 non-image file skipped.\n" msgid_plural "%d non-image files skipped.\n" msgstr[0] "已略過 %d 份非影像檔案。\n" -#: src/Dialogs.vala:478 +#: src/Dialogs.vala:492 #, c-format msgid "1 photo skipped due to user cancel:\n" msgid_plural "%d photos skipped due to user cancel:\n" msgstr[0] "由於使用者取消,已略過 %d 張相片:\n" -#: src/Dialogs.vala:481 +#: src/Dialogs.vala:495 #, c-format msgid "1 video skipped due to user cancel:\n" msgid_plural "%d videos skipped due to user cancel:\n" msgstr[0] "由於使用者取消,已略過 %d 份視訊:\n" -#: src/Dialogs.vala:484 +#: src/Dialogs.vala:498 #, c-format msgid "1 photo/video skipped due to user cancel:\n" msgid_plural "%d photos/videos skipped due to user cancel:\n" msgstr[0] "由於使用者取消,已略過 %d 份相片/視訊:\n" -#: src/Dialogs.vala:487 +#: src/Dialogs.vala:501 #, c-format msgid "1 file skipped due to user cancel:\n" msgid_plural "%d file skipped due to user cancel:\n" msgstr[0] "%d 檔案已略過,因為使用者取消:\n" -#: src/Dialogs.vala:501 +#: src/Dialogs.vala:515 #, c-format msgid "1 photo successfully imported.\n" msgid_plural "%d photos successfully imported.\n" msgstr[0] "已成功匯入 %d 張相片。\n" -#: src/Dialogs.vala:504 +#: src/Dialogs.vala:518 #, c-format msgid "1 video successfully imported.\n" msgid_plural "%d videos successfully imported.\n" msgstr[0] "已成功匯入 %d 份視訊。\n" -#: src/Dialogs.vala:507 +#: src/Dialogs.vala:521 #, c-format msgid "1 photo/video successfully imported.\n" msgid_plural "%d photos/videos successfully imported.\n" @@ -3232,96 +3240,96 @@ msgstr[0] "已成功匯入 %d 份相片/視訊。\n" #. if no media items were imported at all (i.e. an empty directory attempted), need to at least #. report that nothing was imported -#: src/Dialogs.vala:523 +#: src/Dialogs.vala:537 msgid "No photos or videos imported.\n" msgstr "沒有匯入相片或視訊。\n" -#: src/Dialogs.vala:530 src/Dialogs.vala:549 +#: src/Dialogs.vala:544 src/Dialogs.vala:563 msgid "Import Complete" msgstr "完成匯入" -#: src/Dialogs.vala:650 src/Resources.vala:232 +#: src/Dialogs.vala:663 src/Resources.vala:202 msgid "Rename Event" msgstr "重新命名事件" -#: src/Dialogs.vala:650 +#: src/Dialogs.vala:663 msgid "Name:" msgstr "名稱:" #. Dialog title -#: src/Dialogs.vala:661 +#: src/Dialogs.vala:674 msgctxt "Dialog Title" msgid "Edit Title" msgstr "編輯標題" -#: src/Dialogs.vala:662 src/Properties.vala:343 +#: src/Dialogs.vala:675 src/Properties.vala:347 msgid "Title:" msgstr "標題:" #. Dialog title -#: src/Dialogs.vala:678 src/Resources.vala:308 +#: src/Dialogs.vala:691 src/Resources.vala:278 msgid "Edit Event Comment" msgstr "編輯事件評註" -#: src/Dialogs.vala:679 +#: src/Dialogs.vala:692 msgid "Edit Photo/Video Comment" msgstr "編輯相片/視訊評註" -#: src/Dialogs.vala:680 src/Properties.vala:631 +#: src/Dialogs.vala:693 src/Properties.vala:646 msgid "Comment:" msgstr "評註:" -#: src/Dialogs.vala:696 +#: src/Dialogs.vala:709 msgid "Remove and _Trash File" msgid_plural "Remove and _Trash Files" -msgstr[0] "移除並將檔案移至回收筒(_T)" +msgstr[0] "移除並將檔案移至垃圾桶(_T)" -#: src/Dialogs.vala:700 +#: src/Dialogs.vala:713 msgid "_Remove From Library" msgstr "從珍藏館移除(_R)" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edit?" msgstr "是否還原外部編輯?" -#: src/Dialogs.vala:743 +#: src/Dialogs.vala:756 msgid "Revert External Edits?" msgstr "要還原外部編輯嗎?" -#: src/Dialogs.vala:745 +#: src/Dialogs.vala:758 #, c-format msgid "This will destroy all changes made to the external file. Continue?" msgid_plural "" "This will destroy all changes made to %d external files. Continue?" msgstr[0] "這會破壞 %d 份外部檔案已做的所有變更。要繼續嗎?" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edit" msgstr "還原外部編輯(_V)" -#: src/Dialogs.vala:749 +#: src/Dialogs.vala:762 msgid "Re_vert External Edits" msgstr "還原外部編輯(_V)" -#: src/Dialogs.vala:770 +#: src/Dialogs.vala:783 #, c-format msgid "This will remove the photo from the library. Continue?" msgid_plural "This will remove %d photos from the library. Continue?" msgstr[0] "這會從珍藏館移除 %d 張相片。要繼續嗎?" -#: src/Dialogs.vala:777 src/Resources.vala:174 +#: src/Dialogs.vala:790 src/Resources.vala:144 msgid "_Remove" msgstr "移除(_R)" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photo From Library" msgstr "從珍藏館移除相片" -#: src/Dialogs.vala:778 +#: src/Dialogs.vala:791 msgid "Remove Photos From Library" msgstr "從珍藏館移除相片" -#: src/Dialogs.vala:798 +#: src/Dialogs.vala:811 #, c-format msgid "" "\n" @@ -3336,43 +3344,43 @@ msgstr[0] "" "\n" "與其它 %d 項。" -#: src/Dialogs.vala:822 src/Dialogs.vala:849 +#: src/Dialogs.vala:835 src/Dialogs.vala:862 msgid "Tags (separated by commas):" msgstr "標籤 (以半形逗號 \",\" 隔開):" #. This function is used to determine whether or not files should be copied or linked when imported. #. Returns ACCEPT for copy, REJECT for link, and CANCEL for (drum-roll) cancel. -#: src/Dialogs.vala:908 +#: src/Dialogs.vala:921 msgid "" "Shotwell can copy the photos into your library folder or it can import them " "without copying." msgstr "Shotwell 可以複製相片至您的珍藏館,或是直接將它們匯入而不必複製。" -#: src/Dialogs.vala:913 +#: src/Dialogs.vala:926 msgid "Co_py Photos" msgstr "複製相片(_P)" -#: src/Dialogs.vala:914 +#: src/Dialogs.vala:927 msgid "_Import in Place" msgstr "匯入位置(_I)" -#: src/Dialogs.vala:915 +#: src/Dialogs.vala:928 msgid "Import to Library" msgstr "匯入至珍藏館" -#: src/Dialogs.vala:925 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:938 src/PhotoPage.vala:2897 msgid "Remove From Library" msgstr "從珍藏館移除" -#: src/Dialogs.vala:926 src/PhotoPage.vala:2874 +#: src/Dialogs.vala:939 src/PhotoPage.vala:2897 msgid "Removing Photo From Library" msgstr "正在從珍藏館移除相片" -#: src/Dialogs.vala:926 +#: src/Dialogs.vala:939 msgid "Removing Photos From Library" msgstr "正在從珍藏館移除相片" -#: src/Dialogs.vala:940 +#: src/Dialogs.vala:953 #, c-format msgid "" "This will remove the photo/video from your Shotwell library. Would you also " @@ -3386,11 +3394,11 @@ msgid_plural "" "This action cannot be undone." msgstr[0] "" "這會從您的 Shotwell 珍藏館移除 %d 份相片/視訊。您是否也想要將這些檔案移至您的" -"桌面回收筒呢?\n" +"桌面垃圾桶呢?\n" "\n" "這個動作無法還原。" -#: src/Dialogs.vala:944 +#: src/Dialogs.vala:957 #, c-format msgid "" "This will remove the video from your Shotwell library. Would you also like " @@ -3404,11 +3412,11 @@ msgid_plural "" "This action cannot be undone." msgstr[0] "" "這會從您的 Shotwell 珍藏館移除 %d 份視訊。您是否也想要將這些檔案移至您的桌面" -"回收筒呢?\n" +"垃圾桶呢?\n" "\n" "這個動作無法還原。" -#: src/Dialogs.vala:948 +#: src/Dialogs.vala:961 #, c-format msgid "" "This will remove the photo from your Shotwell library. Would you also like " @@ -3422,20 +3430,20 @@ msgid_plural "" "This action cannot be undone." msgstr[0] "" "這會從您的 Shotwell 珍藏館移除 %d 張相片。您是否也想要將這些檔案移至您的桌面" -"回收筒呢?\n" +"垃圾桶呢?\n" "\n" "這個動作無法還原。" -#: src/Dialogs.vala:980 +#: src/Dialogs.vala:993 #, c-format msgid "" "The photo or video cannot be moved to your desktop trash. Delete this file?" msgid_plural "" "%d photos/videos cannot be moved to your desktop trash. Delete these files?" -msgstr[0] "%d 份相片/視訊無法移至您的桌面回收筒。要刪除這些檔案嗎?" +msgstr[0] "%d 份相片/視訊無法移至您的桌面垃圾桶。要刪除這些檔案嗎?" #. Alert the user that the files were not removed. -#: src/Dialogs.vala:997 +#: src/Dialogs.vala:1010 #, c-format msgid "The photo or video cannot be deleted." msgid_plural "%d photos/videos cannot be deleted." @@ -3473,7 +3481,7 @@ msgstr "" msgid "Unable open photo %s. Sorry." msgstr "無法列印相片 %s。抱歉。" -#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:176 ui/direct.ui:8 +#: src/direct/DirectPhotoPage.vala:316 src/Resources.vala:146 ui/direct.ui:8 #: ui/textentrydialog.ui:33 msgid "_Save" msgstr "儲存(_S)" @@ -3621,35 +3629,35 @@ msgstr "匯出中介資料(_M):" #. We're installed system-wide, so use the system help. #. We're being run from the build directory; we'll have to handle clicks to this #. link manually ourselves, due to a limitation of help: URIs. -#: src/dialogs/Preferences.vala:115 src/dialogs/Preferences.vala:119 +#: src/dialogs/Preferences.vala:108 src/dialogs/Preferences.vala:112 msgid "(Help)" msgstr "(幫助)" -#: src/dialogs/Preferences.vala:123 +#: src/dialogs/Preferences.vala:116 #, c-format msgid "Year%sMonth%sDay" msgstr "年%s月%s日" -#: src/dialogs/Preferences.vala:125 +#: src/dialogs/Preferences.vala:118 #, c-format msgid "Year%sMonth" msgstr "年%s月" -#: src/dialogs/Preferences.vala:127 +#: src/dialogs/Preferences.vala:120 #, c-format msgid "Year%sMonth-Day" msgstr "年%s月-日" -#: src/dialogs/Preferences.vala:129 +#: src/dialogs/Preferences.vala:122 msgid "Year-Month-Day" msgstr "年-月-日" -#: src/dialogs/Preferences.vala:130 src/editing_tools/EditingTools.vala:760 +#: src/dialogs/Preferences.vala:123 src/editing_tools/EditingTools.vala:760 msgid "Custom" msgstr "自訂" #. Invalid pattern. -#: src/dialogs/Preferences.vala:369 +#: src/dialogs/Preferences.vala:351 msgid "Invalid pattern" msgstr "無效的樣式" @@ -3834,7 +3842,7 @@ msgstr "30 x 40 公分" msgid "A3 (297 × 420 mm)" msgstr "A3 (297 x 420 公釐)" -#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:398 +#: src/editing_tools/EditingTools.vala:1858 src/Properties.vala:402 msgid "Size:" msgstr "大小:" @@ -3852,8 +3860,8 @@ msgid "_Reset" msgstr "重設(_R)" #. fit both on the top line, emit and move on -#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:439 -#: src/Properties.vala:443 src/Properties.vala:450 +#: src/editing_tools/EditingTools.vala:2230 src/Properties.vala:443 +#: src/Properties.vala:447 src/Properties.vala:454 msgid "Exposure:" msgstr "曝光:" @@ -3927,7 +3935,7 @@ msgstr "對比擴展" msgid "Angle:" msgstr "角度:" -#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:203 +#: src/editing_tools/StraightenTool.vala:100 src/Resources.vala:173 #: ui/direct.ui:144 ui/photo.ui:233 msgid "_Straighten" msgstr "拉直(_S)" @@ -3938,13 +3946,13 @@ msgid "%d Photo/Video" msgid_plural "%d Photos/Videos" msgstr[0] "%d 份相片/視訊" -#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:358 +#: src/events/EventDirectoryItem.vala:99 src/Properties.vala:362 #, c-format msgid "%d Video" msgid_plural "%d Videos" msgstr[0] "%d 份視訊" -#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:356 +#: src/events/EventDirectoryItem.vala:101 src/Properties.vala:360 #, c-format msgid "%d Photo" msgid_plural "%d Photos" @@ -4022,6 +4030,68 @@ msgstr "全部取代(_A)" msgid "Export" msgstr "匯出" +#: src/faces/FacesBranch.vala:89 src/Resources.vala:305 src/Resources.vala:306 +#: ui/faces.ui:403 +msgid "Faces" +msgstr "臉孔" + +#: src/faces/FacesTool.vala:115 +msgid "Detect faces…" +msgstr "偵測臉孔…" + +#: src/faces/FacesTool.vala:140 +msgid "Detect faces on this photo" +msgstr "偵測此相片上的臉孔" + +#: src/faces/FacesTool.vala:142 +msgid "Cancel face detection" +msgstr "取消臉孔偵測" + +#: src/faces/FacesTool.vala:146 +msgid "Close the Faces tool without saving changes" +msgstr "關閉臉孔工具,而不儲存變更" + +#: src/faces/FacesTool.vala:153 src/faces/FacesTool.vala:185 +msgid "Click and drag to tag a face" +msgstr "點擊並拖曳以標記臉孔" + +#: src/faces/FacesTool.vala:180 +#, c-format +msgid "Click to edit face %s" +msgstr "點擊以編輯 %s 臉孔" + +#: src/faces/FacesTool.vala:189 +msgid "Stop dragging to add your face and name it." +msgstr "停止拖曳,改增加您的臉孔並命名它。" + +#: src/faces/FacesTool.vala:193 +msgid "Type a name for this face, then press Enter" +msgstr "輸入此臉孔的名稱,然後按下 Enter" + +#: src/faces/FacesTool.vala:197 +msgid "Move or modify the face shape or name and press Enter" +msgstr "拖曳或修改臉孔的外形或名稱,並按下 Enter" + +#: src/faces/FacesTool.vala:201 +msgid "Detecting faces" +msgstr "偵測臉孔" + +#: src/faces/FacesTool.vala:212 +msgid "If you don’t set the name of unknown faces they won’t be saved." +msgstr "如果您不設定未知臉孔的名稱,它們將不能儲存。" + +#: src/faces/FacesTool.vala:233 +msgid "Save changes and close the Faces tool" +msgstr "儲存變更,並關閉臉孔工具" + +#: src/faces/FacesTool.vala:235 +msgid "No changes to save" +msgstr "沒有要儲存的變更" + +#: src/faces/FacesTool.vala:956 +msgid "Error trying to spawn face detection program:\n" +msgstr "嘗試生成臉孔偵測程式時錯誤:\n" + #: src/folders/FoldersBranch.vala:144 msgid "Folders" msgstr "資料夾" @@ -4030,8 +4100,16 @@ msgstr "資料夾" msgid "Browse the library’s folder structure" msgstr "瀏覽珍藏館的資料夾結構" -#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1098 -#: src/SearchFilter.vala:1099 +#: src/import-roll/ImportRollBranch.vala:43 +msgid "Imports" +msgstr "匯入" + +#: src/import-roll/ImportRollBranch.vala:43 +msgid "Browse the library’s import history" +msgstr "瀏覽珍藏館的匯入紀錄" + +#: src/library/FlaggedPage.vala:8 src/SearchFilter.vala:1124 +#: src/SearchFilter.vala:1125 msgid "Flagged" msgstr "已加上旗幟" @@ -4053,7 +4131,7 @@ msgid "Last Import" msgstr "上次匯入" #: src/library/LibraryBranch.vala:30 src/library/LibraryBranch.vala:130 -#: ui/preferences_dialog.ui:512 +#: ui/preferences_dialog.ui:465 msgid "Library" msgstr "珍藏館" @@ -4061,27 +4139,27 @@ msgstr "珍藏館" msgid "Organize and browse your photos" msgstr "整理並瀏覽您的相片" -#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1079 +#: src/library/LibraryBranch.vala:97 src/SearchFilter.vala:1105 msgid "Photos" msgstr "相片" -#: src/library/LibraryWindow.vala:508 +#: src/library/LibraryWindow.vala:526 msgid "Import From Folder" msgstr "從資料夾匯入" -#: src/library/LibraryWindow.vala:515 +#: src/library/LibraryWindow.vala:533 msgid "Recurse Into Subfolders" msgstr "遞迴進入子資料夾" -#: src/library/LibraryWindow.vala:583 ui/trash.ui:288 +#: src/library/LibraryWindow.vala:601 ui/trash.ui:288 msgid "Empty Trash" -msgstr "清空回收筒" +msgstr "清空垃圾桶" -#: src/library/LibraryWindow.vala:583 +#: src/library/LibraryWindow.vala:601 msgid "Emptying Trash…" -msgstr "正在清空回收筒…" +msgstr "正在清空垃圾桶…" -#: src/library/LibraryWindow.vala:779 +#: src/library/LibraryWindow.vala:780 #, c-format msgid "" "Shotwell is configured to import photos to your home directory.\n" @@ -4093,33 +4171,33 @@ msgstr "" "我們建議您在 編輯 %s 偏好設定 中更改此設定。\n" "您是否想要繼續匯入相片?" -#: src/library/LibraryWindow.vala:782 ui/preferences_dialog.ui:142 +#: src/library/LibraryWindow.vala:783 ui/preferences_dialog.ui:86 msgid "Library Location" msgstr "珍藏館位置" #. TODO: Specify which directory/file. -#: src/library/LibraryWindow.vala:795 +#: src/library/LibraryWindow.vala:796 msgid "Photos cannot be imported from this directory." msgstr "相片無法從此目錄匯入。" -#: src/library/LibraryWindow.vala:1075 +#: src/library/LibraryWindow.vala:1076 #, c-format msgid "%s (%d%%)" msgstr "%s (%d%%)" -#: src/library/LibraryWindow.vala:1119 src/library/LibraryWindow.vala:1130 +#: src/library/LibraryWindow.vala:1120 src/library/LibraryWindow.vala:1131 msgid "Updating library…" msgstr "正在更新珍藏館…" -#: src/library/LibraryWindow.vala:1136 +#: src/library/LibraryWindow.vala:1137 msgid "Preparing to auto-import photos…" msgstr "正在準備自動匯入相片…" -#: src/library/LibraryWindow.vala:1141 +#: src/library/LibraryWindow.vala:1142 msgid "Auto-importing photos…" msgstr "正在自動匯入相片…" -#: src/library/LibraryWindow.vala:1149 +#: src/library/LibraryWindow.vala:1150 msgid "Writing metadata to files…" msgstr "正在將中介資料寫入檔案中…" @@ -4133,13 +4211,13 @@ msgstr "正在刪除…" #: src/library/TrashPage.vala:8 msgid "Trash" -msgstr "回收筒" +msgstr "垃圾桶" #: src/library/TrashPage.vala:106 msgid "Trash is empty" -msgstr "空的回收筒" +msgstr "空的垃圾桶" -#: src/library/TrashPage.vala:110 +#: src/library/TrashPage.vala:110 ui/faces.ui:469 msgid "Delete" msgstr "刪除" @@ -4184,40 +4262,40 @@ msgstr "" msgid "Unknown error attempting to verify Shotwell’s database: %s" msgstr "試圖驗證 Shotwell 資料庫時發生未知錯誤:%s" -#: src/main.vala:104 +#: src/main.vala:108 msgid "Loading Shotwell" msgstr "正載入 Shotwell" -#: src/main.vala:303 +#: src/main.vala:320 msgid "Path to Shotwell’s private data" msgstr "Shotwell 的私人資料路徑" -#: src/main.vala:303 +#: src/main.vala:320 msgid "DIRECTORY" msgstr "目錄" -#: src/main.vala:307 +#: src/main.vala:324 msgid "Do not monitor library directory at runtime for changes" msgstr "執行時期不要監視珍藏館目錄是否有變動" -#: src/main.vala:311 +#: src/main.vala:328 msgid "Don’t display startup progress meter" msgstr "不要顯示初始啟動時的進度條" -#: src/main.vala:315 +#: src/main.vala:332 msgid "Show the application’s version" msgstr "顯示應用程式的版本" -#: src/main.vala:319 +#: src/main.vala:336 msgid "Start the application in fullscreen mode" msgstr "以全螢幕模式啟動應用程式" #. init GTK (valac has already called g_threads_init()) -#: src/main.vala:356 +#: src/main.vala:373 msgid "[FILE]" msgstr "[檔案]" -#: src/main.vala:360 +#: src/main.vala:380 #, c-format msgid "Run “%s --help” to see a full list of available command line options.\n" msgstr "執行「%s --help」來查看可用命令列選項的完整清單。\n" @@ -4227,11 +4305,11 @@ msgstr "執行「%s --help」來查看可用命令列選項的完整清單。\n" msgid "Unable to process monitoring updates: %s" msgstr "無法處理監視更新:%s" -#: src/MediaPage.vala:158 +#: src/MediaPage.vala:76 msgid "Adjust the size of the thumbnails" msgstr "調整縮圖大小" -#: src/MediaPage.vala:502 +#: src/MediaPage.vala:419 #, c-format msgid "" "Shotwell was unable to play the selected video:\n" @@ -4240,34 +4318,34 @@ msgstr "" "Shotwell 無法播放所選的視訊:\n" "%s" -#: src/Page.vala:1327 +#: src/Page.vala:1324 msgid "No photos/videos" msgstr "無相片/視訊" -#: src/Page.vala:1331 +#: src/Page.vala:1328 msgid "No photos/videos found which match the current filter" msgstr "根據目前的過濾器找不到符合的相片/視訊" -#: src/Page.vala:2644 +#: src/Page.vala:2641 msgid "Photos cannot be exported to this directory." msgstr "無法匯出相片至此目錄。" #. previous button -#: src/PhotoPage.vala:538 +#: src/PhotoPage.vala:550 msgid "Previous photo" msgstr "上一張相片" #. next button -#: src/PhotoPage.vala:544 +#: src/PhotoPage.vala:556 msgid "Next photo" msgstr "下一張相片" -#: src/PhotoPage.vala:1850 +#: src/PhotoPage.vala:1862 #, c-format msgid "Photo source file missing: %s" msgstr "相片來源檔案遺失:%s" -#: src/PhotoPage.vala:3018 +#: src/PhotoPage.vala:3041 #, c-format msgid "Unable to export %s: %s" msgstr "無法匯出 %s:%s" @@ -4276,6 +4354,10 @@ msgstr "無法匯出 %s:%s" msgid "BMP" msgstr "BMP" +#: src/photos/GifSupport.vala:32 +msgid "GIF" +msgstr "GIF" + #: src/photos/JfifSupport.vala:84 msgid "JPEG" msgstr "JPEG" @@ -4363,126 +4445,122 @@ msgstr "" "\n" "%s" -#: src/Properties.vala:87 +#: src/Properties.vala:98 msgid "Today" msgstr "今天" -#: src/Properties.vala:89 +#: src/Properties.vala:100 msgid "Yesterday" msgstr "昨天" -#: src/Properties.vala:346 +#: src/Properties.vala:350 msgid "Items:" msgstr "項目:" -#: src/Properties.vala:349 +#: src/Properties.vala:353 #, c-format msgid "%d Event" msgid_plural "%d Events" msgstr[0] "%d 個事件" #. display only one date if start and end are the same -#: src/Properties.vala:380 +#: src/Properties.vala:384 msgid "Date:" msgstr "日期:" #. display only one time if start and end are the same -#: src/Properties.vala:384 +#: src/Properties.vala:388 msgid "Time:" msgstr "時間:" #. display time range #. display date range -#: src/Properties.vala:387 src/Properties.vala:392 +#: src/Properties.vala:391 src/Properties.vala:396 msgid "From:" msgstr "從:" -#: src/Properties.vala:388 src/Properties.vala:393 +#: src/Properties.vala:392 src/Properties.vala:397 msgid "To:" msgstr "到:" -#: src/Properties.vala:407 +#: src/Properties.vala:411 msgid "Duration:" msgstr "時間:" -#: src/Properties.vala:407 +#: src/Properties.vala:411 #, c-format msgid "%.1f seconds" msgstr "%.1f 秒" -#: src/Properties.vala:411 +#: src/Properties.vala:415 msgid "Developer:" msgstr "顯影器:" #. nothing special to be done for now for Events -#: src/Properties.vala:586 +#: src/Properties.vala:593 msgid "Location:" msgstr "位置:" -#: src/Properties.vala:589 +#: src/Properties.vala:596 msgid "File size:" msgstr "檔案大小:" -#: src/Properties.vala:593 +#: src/Properties.vala:600 msgid "Current Development:" msgstr "目前顯影:" -#: src/Properties.vala:595 +#: src/Properties.vala:602 msgid "Original dimensions:" msgstr "原始維度:" -#: src/Properties.vala:598 +#: src/Properties.vala:605 msgid "Camera make:" msgstr "相機製造商:" -#: src/Properties.vala:601 +#: src/Properties.vala:608 msgid "Camera model:" msgstr "相機型號:" -#: src/Properties.vala:604 +#: src/Properties.vala:611 msgid "Flash:" msgstr "閃光:" -#: src/Properties.vala:606 +#: src/Properties.vala:613 msgid "Focal length:" msgstr "焦距:" -#: src/Properties.vala:609 +#: src/Properties.vala:616 msgid "Exposure date:" msgstr "曝光日期:" -#: src/Properties.vala:612 +#: src/Properties.vala:619 msgid "Exposure time:" msgstr "曝光時間:" -#: src/Properties.vala:615 +#: src/Properties.vala:622 msgid "Exposure bias:" msgstr "曝光補償:" -#: src/Properties.vala:617 +#: src/Properties.vala:632 msgid "GPS latitude:" msgstr "GPS 緯度:" -#: src/Properties.vala:620 +#: src/Properties.vala:635 msgid "GPS longitude:" msgstr "GPS 經度:" -#: src/Properties.vala:623 +#: src/Properties.vala:638 msgid "Artist:" msgstr "藝人:" -#: src/Properties.vala:625 +#: src/Properties.vala:640 msgid "Copyright:" msgstr "著作權:" -#: src/Properties.vala:627 +#: src/Properties.vala:642 msgid "Software:" msgstr "軟體:" -#: src/Properties.vala:642 -msgid "Extended Information" -msgstr "擴展資訊" - #: src/publishing/PublishingPluginHost.vala:11 msgid "Preparing for upload" msgstr "正在準備上傳" @@ -4525,37 +4603,37 @@ msgstr "正在擷取帳號資訊…" msgid "Logging in…" msgstr "正在登入…" -#: src/publishing/PublishingUI.vala:194 +#: src/publishing/PublishingUI.vala:197 msgid "Publish Photos" msgstr "發布相片" -#: src/publishing/PublishingUI.vala:195 +#: src/publishing/PublishingUI.vala:198 msgid "Publish photos _to:" msgstr "將相片發布至(_T):" -#: src/publishing/PublishingUI.vala:197 +#: src/publishing/PublishingUI.vala:200 msgid "Publish Videos" msgstr "發布視訊" -#: src/publishing/PublishingUI.vala:198 +#: src/publishing/PublishingUI.vala:201 msgid "Publish videos _to" msgstr "將視訊發布至(_T)" -#: src/publishing/PublishingUI.vala:200 +#: src/publishing/PublishingUI.vala:203 msgid "Publish Photos and Videos" msgstr "發布相片與視訊" -#: src/publishing/PublishingUI.vala:201 +#: src/publishing/PublishingUI.vala:204 msgid "Publish photos and videos _to" msgstr "將相片與視訊發布至(_T)" #. There are no enabled publishing services that accept this media type, #. warn the user. -#: src/publishing/PublishingUI.vala:411 +#: src/publishing/PublishingUI.vala:414 msgid "Unable to publish" msgstr "無法發布" -#: src/publishing/PublishingUI.vala:412 +#: src/publishing/PublishingUI.vala:415 #, c-format msgid "" "Shotwell cannot publish the selected items because you do not have a " @@ -4570,728 +4648,793 @@ msgstr "" msgid "Publishing" msgstr "發布" -#: src/Resources.vala:141 src/Resources.vala:146 ui/collection.ui:151 +#: src/Resources.vala:111 src/Resources.vala:116 ui/collection.ui:151 msgid "Rotate" msgstr "旋轉" -#: src/Resources.vala:142 +#: src/Resources.vala:112 msgid "Rotate Right" msgstr "向右旋轉" -#: src/Resources.vala:143 ui/collection.ui:148 +#: src/Resources.vala:113 ui/collection.ui:148 msgid "Rotate the photos right (press Ctrl to rotate left)" msgstr "將相片向右旋轉 (按下 Ctrl 鍵以向左旋轉)" -#: src/Resources.vala:147 +#: src/Resources.vala:117 msgid "Rotate Left" msgstr "向左旋轉" -#: src/Resources.vala:148 +#: src/Resources.vala:118 msgid "Rotate the photos left" msgstr "將相片向左旋轉" -#: src/Resources.vala:151 +#: src/Resources.vala:121 msgid "Flip Horizontally" msgstr "水平翻轉" -#: src/Resources.vala:154 +#: src/Resources.vala:124 msgid "Flip Vertically" msgstr "垂直翻轉" -#: src/Resources.vala:156 ui/direct.ui:192 ui/events_directory.ui:168 -#: ui/event.ui:438 ui/import_queue.ui:83 ui/import.ui:201 +#: src/Resources.vala:126 ui/direct.ui:192 ui/events_directory.ui:168 +#: ui/event.ui:438 ui/faces.ui:448 ui/import_queue.ui:83 ui/import.ui:201 #: ui/manifest_widget.ui:35 ui/media.ui:421 ui/offline.ui:198 ui/photo.ui:405 #: ui/tags.ui:440 ui/trash.ui:207 msgid "_About" msgstr "關於(_A)" -#: src/Resources.vala:157 +#: src/Resources.vala:127 msgid "_Apply" msgstr "套用(_A)" -#: src/Resources.vala:160 ui/direct.ui:44 ui/events_directory.ui:32 -#: ui/event.ui:47 ui/import.ui:40 ui/media.ui:47 ui/offline.ui:32 -#: ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 +#: src/Resources.vala:130 ui/direct.ui:44 ui/events_directory.ui:32 +#: ui/event.ui:47 ui/faces.ui:47 ui/import.ui:40 ui/media.ui:47 +#: ui/offline.ui:32 ui/photo.ui:55 ui/tags.ui:47 ui/trash.ui:37 msgid "_Edit" msgstr "編輯(_E)" -#: src/Resources.vala:161 +#: src/Resources.vala:131 msgid "_Forward" msgstr "前進(_F)" -#: src/Resources.vala:162 ui/direct.ui:62 ui/events_directory.ui:125 +#: src/Resources.vala:132 ui/direct.ui:62 ui/events_directory.ui:125 #: ui/photo.ui:173 msgid "Fulls_creen" msgstr "全螢幕(_C)" -#: src/Resources.vala:163 ui/direct.ui:174 ui/direct.ui:177 +#: src/Resources.vala:133 ui/direct.ui:174 ui/direct.ui:177 #: ui/events_directory.ui:150 ui/events_directory.ui:153 ui/event.ui:420 -#: ui/event.ui:423 ui/import_queue.ui:65 ui/import_queue.ui:68 ui/import.ui:183 -#: ui/import.ui:186 ui/media.ui:403 ui/media.ui:406 ui/offline.ui:180 -#: ui/offline.ui:183 ui/photo.ui:387 ui/photo.ui:390 ui/tags.ui:422 -#: ui/tags.ui:425 ui/trash.ui:189 ui/trash.ui:192 +#: ui/event.ui:423 ui/faces.ui:430 ui/faces.ui:433 ui/import_queue.ui:65 +#: ui/import_queue.ui:68 ui/import.ui:183 ui/import.ui:186 ui/media.ui:403 +#: ui/media.ui:406 ui/offline.ui:180 ui/offline.ui:183 ui/photo.ui:387 +#: ui/photo.ui:390 ui/tags.ui:422 ui/tags.ui:425 ui/trash.ui:189 +#: ui/trash.ui:192 msgid "_Help" msgstr "求助(_H)" -#: src/Resources.vala:164 +#: src/Resources.vala:134 msgid "Leave _Fullscreen" msgstr "離開全螢幕(_F)" -#: src/Resources.vala:165 src/Resources.vala:364 ui/tags.ui:450 +#: src/Resources.vala:135 src/Resources.vala:343 ui/tags.ui:450 msgid "_New" msgstr "新增(_N)" -#: src/Resources.vala:166 +#: src/Resources.vala:136 msgid "_Next" msgstr "下一張(_N)" -#: src/Resources.vala:169 src/Resources.vala:318 ui/events_directory.ui:65 -#: ui/event.ui:93 ui/import.ui:68 ui/media.ui:93 ui/offline.ui:72 -#: ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 +#: src/Resources.vala:139 src/Resources.vala:288 ui/events_directory.ui:65 +#: ui/event.ui:93 ui/faces.ui:93 ui/import.ui:68 ui/media.ui:93 +#: ui/offline.ui:72 ui/photo.ui:89 ui/tags.ui:93 ui/trash.ui:81 msgid "_Preferences" msgstr "偏好設定(_P)" -#: src/Resources.vala:170 +#: src/Resources.vala:140 msgid "_Previous" msgstr "上一張(_P)" -#: src/Resources.vala:172 ui/direct.ui:37 ui/events_directory.ui:25 -#: ui/event.ui:40 ui/import_queue.ui:31 ui/import.ui:33 ui/media.ui:40 -#: ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 +#: src/Resources.vala:142 ui/direct.ui:37 ui/events_directory.ui:25 +#: ui/event.ui:40 ui/faces.ui:40 ui/import_queue.ui:31 ui/import.ui:33 +#: ui/media.ui:40 ui/offline.ui:25 ui/photo.ui:48 ui/tags.ui:40 ui/trash.ui:30 msgid "_Quit" msgstr "退出(_Q)" -#: src/Resources.vala:173 +#: src/Resources.vala:143 msgid "_Refresh" msgstr "重新整理(_R)" -#: src/Resources.vala:175 +#: src/Resources.vala:145 msgid "_Revert" msgstr "還原(_R)" -#: src/Resources.vala:177 +#: src/Resources.vala:147 msgid "Save _As" msgstr "另存新檔(_A)" -#: src/Resources.vala:178 +#: src/Resources.vala:148 msgid "Sort _Ascending" msgstr "遞增排序(_A)" -#: src/Resources.vala:179 +#: src/Resources.vala:149 msgid "Sort _Descending" msgstr "遞減排序(_E)" -#: src/Resources.vala:180 +#: src/Resources.vala:150 msgid "_Stop" msgstr "停止(_S)" -#: src/Resources.vala:181 +#: src/Resources.vala:151 msgid "_Undelete" msgstr "取消刪除(_U)" -#: src/Resources.vala:182 +#: src/Resources.vala:152 msgid "_Normal Size" msgstr "正常大小(_N)" -#: src/Resources.vala:183 +#: src/Resources.vala:153 msgid "Best _Fit" msgstr "自動調整(_F)" -#: src/Resources.vala:184 ui/direct.ui:69 ui/event.ui:260 ui/media.ui:260 -#: ui/photo.ui:144 ui/tags.ui:260 +#: src/Resources.vala:154 ui/direct.ui:69 ui/event.ui:260 ui/faces.ui:260 +#: ui/media.ui:260 ui/photo.ui:144 ui/tags.ui:260 msgid "Zoom _In" msgstr "拉近(_I)" -#: src/Resources.vala:185 ui/direct.ui:74 ui/event.ui:265 ui/media.ui:265 -#: ui/photo.ui:149 ui/tags.ui:265 +#: src/Resources.vala:155 ui/direct.ui:74 ui/event.ui:265 ui/faces.ui:265 +#: ui/media.ui:265 ui/photo.ui:149 ui/tags.ui:265 msgid "Zoom _Out" msgstr "拉遠(_O)" -#: src/Resources.vala:188 ui/collection.ui:167 +#: src/Resources.vala:158 ui/collection.ui:167 msgid "Enhance" msgstr "補強" -#: src/Resources.vala:189 ui/collection.ui:164 +#: src/Resources.vala:159 ui/collection.ui:164 msgid "Automatically improve the photo’s appearance" msgstr "自動改善相片外觀" -#: src/Resources.vala:192 +#: src/Resources.vala:162 msgid "Copy Color Adjustments" msgstr "複製色彩調整" -#: src/Resources.vala:193 +#: src/Resources.vala:163 msgid "Copy the color adjustments applied to the photo" msgstr "複製套用至該相片的色彩調整" -#: src/Resources.vala:196 +#: src/Resources.vala:166 msgid "Paste Color Adjustments" msgstr "貼上色彩調整" -#: src/Resources.vala:197 +#: src/Resources.vala:167 msgid "Apply copied color adjustments to the selected photos" msgstr "將複製的色彩調整套用至所選的相片上" -#: src/Resources.vala:199 ui/direct.ui:139 ui/photo.ui:228 +#: src/Resources.vala:169 ui/direct.ui:139 ui/photo.ui:228 msgid "_Crop" msgstr "裁切(_C)" -#: src/Resources.vala:200 +#: src/Resources.vala:170 msgid "Crop" msgstr "裁切" -#: src/Resources.vala:201 +#: src/Resources.vala:171 msgid "Crop the photo’s size" msgstr "裁切相片大小" -#: src/Resources.vala:204 +#: src/Resources.vala:174 msgid "Straighten" msgstr "拉直" -#: src/Resources.vala:205 +#: src/Resources.vala:175 msgid "Straighten the photo" msgstr "拉直相片" -#: src/Resources.vala:207 ui/direct.ui:149 ui/photo.ui:238 +#: src/Resources.vala:177 ui/direct.ui:149 ui/photo.ui:238 msgid "_Red-eye" msgstr "紅眼(_R)" -#: src/Resources.vala:208 +#: src/Resources.vala:178 msgid "Red-eye" msgstr "紅眼" -#: src/Resources.vala:209 +#: src/Resources.vala:179 msgid "Reduce or eliminate any red-eye effects in the photo" msgstr "減少或消除相片中的紅眼效應" -#: src/Resources.vala:211 ui/direct.ui:154 ui/photo.ui:243 +#: src/Resources.vala:181 ui/direct.ui:154 ui/photo.ui:243 msgid "_Adjust" msgstr "調整(_A)" -#: src/Resources.vala:212 +#: src/Resources.vala:182 msgid "Adjust" msgstr "調整" -#: src/Resources.vala:213 +#: src/Resources.vala:183 msgid "Adjust the photo’s color and tone" msgstr "調整相片的色彩與色調" -#: src/Resources.vala:216 +#: src/Resources.vala:186 msgid "Revert to Original" msgstr "還原至原始" -#: src/Resources.vala:218 +#: src/Resources.vala:188 msgid "Revert External E_dits" msgstr "還原外部編輯(_D)" -#: src/Resources.vala:219 +#: src/Resources.vala:189 msgid "Revert to the master photo" msgstr "還原至主相片" -#: src/Resources.vala:222 +#: src/Resources.vala:192 msgid "Set selected image to be the new desktop background" msgstr "將所選的影像設為新的桌面背景" -#: src/Resources.vala:223 +#: src/Resources.vala:193 msgid "Set as _Desktop Slideshow…" msgstr "設為桌面投影秀(_D)…" -#: src/Resources.vala:225 ui/direct.ui:47 ui/events_directory.ui:35 -#: ui/event.ui:50 ui/import.ui:43 ui/media.ui:50 ui/offline.ui:35 -#: ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 +#: src/Resources.vala:195 ui/direct.ui:47 ui/events_directory.ui:35 +#: ui/event.ui:50 ui/faces.ui:50 ui/import.ui:43 ui/media.ui:50 +#: ui/offline.ui:35 ui/photo.ui:58 ui/tags.ui:50 ui/trash.ui:40 msgid "_Undo" msgstr "復原(_U)" -#: src/Resources.vala:226 +#: src/Resources.vala:196 msgid "Undo" msgstr "復原" -#: src/Resources.vala:228 ui/direct.ui:52 ui/events_directory.ui:40 -#: ui/event.ui:55 ui/import.ui:48 ui/media.ui:55 ui/offline.ui:40 -#: ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 +#: src/Resources.vala:198 ui/direct.ui:52 ui/events_directory.ui:40 +#: ui/event.ui:55 ui/faces.ui:55 ui/import.ui:48 ui/media.ui:55 +#: ui/offline.ui:40 ui/photo.ui:63 ui/tags.ui:55 ui/trash.ui:45 msgid "_Redo" msgstr "取消復原(_R)" -#: src/Resources.vala:229 +#: src/Resources.vala:199 msgid "Redo" msgstr "取消復原" -#: src/Resources.vala:231 ui/events_directory.ui:139 ui/events_directory.ui:181 +#: src/Resources.vala:201 ui/events_directory.ui:139 ui/events_directory.ui:181 #: ui/event.ui:393 ui/event.ui:588 msgid "Re_name Event…" msgstr "重新命名事件(_N)…" -#: src/Resources.vala:234 ui/event.ui:373 ui/event.ui:580 +#: src/Resources.vala:204 ui/event.ui:373 ui/event.ui:580 msgid "Make _Key Photo for Event" msgstr "作為事件的代表性相片(_K)" -#: src/Resources.vala:235 +#: src/Resources.vala:205 msgid "Make Key Photo for Event" msgstr "作為事件的代表性相片" -#: src/Resources.vala:237 ui/event.ui:382 ui/media.ui:376 ui/tags.ui:376 +#: src/Resources.vala:207 ui/event.ui:382 ui/faces.ui:376 ui/media.ui:376 +#: ui/tags.ui:376 msgid "_New Event" msgstr "新事件(_N)" -#: src/Resources.vala:238 +#: src/Resources.vala:208 msgid "New Event" msgstr "新事件" -#: src/Resources.vala:240 +#: src/Resources.vala:210 msgid "Move Photos" msgstr "移動相片" -#: src/Resources.vala:241 +#: src/Resources.vala:211 msgid "Move photos to an event" msgstr "移動相片至某事件" -#: src/Resources.vala:243 ui/events_directory.ui:135 ui/events_directory.ui:177 +#: src/Resources.vala:213 ui/events_directory.ui:135 ui/events_directory.ui:177 msgid "_Merge Events" msgstr "合併事件(_M)" -#: src/Resources.vala:244 +#: src/Resources.vala:214 msgid "Merge" msgstr "合併" -#: src/Resources.vala:245 +#: src/Resources.vala:215 msgid "Combine events into a single event" msgstr "合併多事件為單一事件" -#: src/Resources.vala:247 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 -#: ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 ui/tags.ui:286 +#: src/Resources.vala:217 ui/collection.ui:39 ui/event.ui:286 ui/event.ui:478 +#: ui/faces.ui:286 ui/media.ui:286 ui/photo_context.ui:35 ui/photo.ui:273 +#: ui/tags.ui:286 msgid "_Set Rating" msgstr "設定評等(_S)" -#: src/Resources.vala:248 +#: src/Resources.vala:218 msgid "Set Rating" msgstr "設定評等" -#: src/Resources.vala:249 +#: src/Resources.vala:219 msgid "Change the rating of your photo" msgstr "變更您相片的評等" -#: src/Resources.vala:251 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 -#: ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 ui/tags.ui:326 +#: src/Resources.vala:221 ui/collection.ui:72 ui/event.ui:326 ui/event.ui:511 +#: ui/faces.ui:326 ui/media.ui:326 ui/photo_context.ui:75 ui/photo.ui:313 +#: ui/tags.ui:326 msgid "_Increase" msgstr "增加(_I)" -#: src/Resources.vala:252 +#: src/Resources.vala:222 msgid "Increase Rating" msgstr "增加評等" -#: src/Resources.vala:254 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 -#: ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 ui/tags.ui:331 +#: src/Resources.vala:224 ui/collection.ui:76 ui/event.ui:331 ui/event.ui:515 +#: ui/faces.ui:331 ui/media.ui:331 ui/photo_context.ui:80 ui/photo.ui:318 +#: ui/tags.ui:331 msgid "_Decrease" msgstr "降低(_D)" -#: src/Resources.vala:255 +#: src/Resources.vala:225 msgid "Decrease Rating" msgstr "降低評等" -#: src/Resources.vala:257 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 -#: ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 ui/tags.ui:314 +#: src/Resources.vala:227 ui/collection.ui:62 ui/event.ui:314 ui/event.ui:501 +#: ui/faces.ui:314 ui/media.ui:314 ui/photo_context.ui:63 ui/photo.ui:301 +#: ui/tags.ui:314 msgid "_Unrated" msgstr "無評等(_U)" -#: src/Resources.vala:258 +#: src/Resources.vala:228 msgid "Unrated" msgstr "未評等" -#: src/Resources.vala:259 +#: src/Resources.vala:229 msgid "Rate Unrated" msgstr "無評等" -#: src/Resources.vala:260 +#: src/Resources.vala:230 msgid "Setting as unrated" msgstr "設定為無評等" -#: src/Resources.vala:261 +#: src/Resources.vala:231 msgid "Remove any ratings" msgstr "移除任何評等" -#: src/Resources.vala:263 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 -#: ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 ui/tags.ui:319 +#: src/Resources.vala:233 ui/collection.ui:66 ui/event.ui:319 ui/event.ui:505 +#: ui/faces.ui:319 ui/media.ui:319 ui/photo_context.ui:68 ui/photo.ui:306 +#: ui/tags.ui:319 msgid "_Rejected" msgstr "退絕(_R)" -#: src/Resources.vala:264 +#: src/Resources.vala:234 msgid "Rejected" msgstr "退絕" -#: src/Resources.vala:265 +#: src/Resources.vala:235 msgid "Rate Rejected" msgstr "評等退絕" -#: src/Resources.vala:266 +#: src/Resources.vala:236 msgid "Setting as rejected" msgstr "設定為退絕" -#: src/Resources.vala:267 +#: src/Resources.vala:237 msgid "Set rating to rejected" msgstr "將評等設為退絕" -#: src/Resources.vala:269 ui/event.ui:196 ui/import.ui:156 ui/media.ui:196 -#: ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 ui/trash.ui:162 +#: src/Resources.vala:239 ui/event.ui:196 ui/faces.ui:196 ui/import.ui:156 +#: ui/media.ui:196 ui/offline.ui:153 ui/search_bar.ui:6 ui/tags.ui:196 +#: ui/trash.ui:162 msgid "Rejected _Only" msgstr "只有退絕(_O)" -#: src/Resources.vala:270 +#: src/Resources.vala:240 msgid "Rejected Only" msgstr "只有退絕" -#: src/Resources.vala:271 +#: src/Resources.vala:241 msgid "Show only rejected photos" msgstr "只顯示退絕的相片" -#: src/Resources.vala:273 ui/event.ui:190 ui/import.ui:150 ui/media.ui:190 -#: ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 ui/trash.ui:156 +#: src/Resources.vala:243 ui/event.ui:190 ui/faces.ui:190 ui/import.ui:150 +#: ui/media.ui:190 ui/offline.ui:147 ui/search_bar.ui:12 ui/tags.ui:190 +#: ui/trash.ui:156 msgid "All + _Rejected" msgstr "全部 + 退絕(_R)" -#: src/Resources.vala:274 +#: src/Resources.vala:244 msgctxt "Tooltip" msgid "Show all photos, including rejected" msgstr "顯示全部相片,包括退絕相片" -#: src/Resources.vala:276 ui/event.ui:184 ui/import.ui:144 ui/media.ui:184 -#: ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 ui/trash.ui:150 +#: src/Resources.vala:246 ui/event.ui:184 ui/faces.ui:184 ui/import.ui:144 +#: ui/media.ui:184 ui/offline.ui:141 ui/search_bar.ui:18 ui/tags.ui:184 +#: ui/trash.ui:150 msgid "_All Photos" msgstr "全部相片(_A)" #. Button tooltip -#: src/Resources.vala:278 +#: src/Resources.vala:248 msgid "Show all photos" msgstr "顯示全部相片" -#: src/Resources.vala:280 ui/event.ui:144 ui/media.ui:144 ui/photo.ui:120 -#: ui/tags.ui:144 +#: src/Resources.vala:250 ui/event.ui:144 ui/faces.ui:144 ui/media.ui:144 +#: ui/photo.ui:120 ui/tags.ui:144 msgid "_Ratings" msgstr "評等(_R)" -#: src/Resources.vala:281 +#: src/Resources.vala:251 msgid "Display each photo’s rating" msgstr "顯示每張相片的評等" -#: src/Resources.vala:283 ui/event.ui:151 ui/import.ui:111 ui/media.ui:151 -#: ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 +#: src/Resources.vala:253 ui/event.ui:151 ui/faces.ui:151 ui/import.ui:111 +#: ui/media.ui:151 ui/offline.ui:108 ui/tags.ui:151 ui/trash.ui:117 msgid "_Filter Photos" msgstr "過濾相片(_F)" -#: src/Resources.vala:284 +#: src/Resources.vala:254 msgid "Filter Photos" msgstr "過濾相片" -#: src/Resources.vala:285 +#: src/Resources.vala:255 msgid "Limit the number of photos displayed based on a filter" msgstr "限制過濾條件所顯示的相片數目" -#: src/Resources.vala:288 +#: src/Resources.vala:258 msgid "Duplicate" msgstr "再製" -#: src/Resources.vala:289 +#: src/Resources.vala:259 msgid "Make a duplicate of the photo" msgstr "製作相片的複本" -#: src/Resources.vala:291 ui/event.ui:17 ui/media.ui:17 ui/photo.ui:17 -#: ui/tags.ui:17 +#: src/Resources.vala:261 ui/event.ui:17 ui/faces.ui:17 ui/media.ui:17 +#: ui/photo.ui:17 ui/tags.ui:17 msgid "_Export…" msgstr "匯出(_E)…" -#: src/Resources.vala:293 +#: src/Resources.vala:263 msgid "_Print…" msgstr "列印(_P)…" -#: src/Resources.vala:295 +#: src/Resources.vala:265 msgid "Pu_blish…" msgstr "發布(_B)…" -#: src/Resources.vala:297 ui/collection.ui:189 +#: src/Resources.vala:267 ui/collection.ui:189 msgid "Publish to various websites" msgstr "發布至各個網站" -#: src/Resources.vala:299 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 -#: ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 ui/tags.ui:340 +#: src/Resources.vala:269 ui/collection.ui:98 ui/event.ui:340 ui/event.ui:537 +#: ui/faces.ui:340 ui/media.ui:340 ui/photo_context.ui:105 ui/photo.ui:327 +#: ui/tags.ui:340 msgid "Edit _Title…" msgstr "編輯標題(_T)…" #. Button label -#: src/Resources.vala:301 +#: src/Resources.vala:271 msgctxt "Button Label" msgid "Edit Title" msgstr "編輯標題" -#: src/Resources.vala:303 ui/collection.ui:103 ui/events_directory.ui:144 +#: src/Resources.vala:273 ui/collection.ui:103 ui/events_directory.ui:144 #: ui/events_directory.ui:186 ui/event.ui:345 ui/event.ui:398 ui/event.ui:542 -#: ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 ui/tags.ui:345 +#: ui/faces.ui:345 ui/media.ui:345 ui/photo_context.ui:110 ui/photo.ui:332 +#: ui/tags.ui:345 msgid "Edit _Comment…" msgstr "編輯評註(_C)…" #. Button label -#: src/Resources.vala:305 +#: src/Resources.vala:275 msgid "Edit Comment" msgstr "編輯評註" -#: src/Resources.vala:307 ui/event.ui:592 +#: src/Resources.vala:277 ui/event.ui:592 msgid "Edit Event _Comment…" msgstr "編輯事件評註(_C)…" -#: src/Resources.vala:310 ui/direct.ui:167 ui/photo.ui:337 +#: src/Resources.vala:280 ui/direct.ui:167 ui/photo.ui:337 msgid "_Adjust Date and Time…" msgstr "調整日期與時間(_A)…" -#: src/Resources.vala:311 +#: src/Resources.vala:281 msgid "Adjust Date and Time" msgstr "調整日期與時間" -#: src/Resources.vala:313 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 -#: ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 +#: src/Resources.vala:283 ui/collection.ui:19 ui/event.ui:407 ui/event.ui:458 +#: ui/faces.ui:390 ui/media.ui:390 ui/photo.ui:375 ui/tags.ui:390 msgid "Add _Tags…" msgstr "加入標籤(_T)…" -#: src/Resources.vala:314 ui/photo_context.ui:17 +#: src/Resources.vala:284 ui/photo_context.ui:17 msgid "_Add Tags…" msgstr "加入標籤(_A)…" #. Dialog title -#: src/Resources.vala:316 +#: src/Resources.vala:286 msgctxt "Dialog Title" msgid "Add Tags" msgstr "加入標籤" -#: src/Resources.vala:325 ui/photo_context.ui:135 +#: src/Resources.vala:295 ui/photo_context.ui:135 msgid "Send T_o…" msgstr "傳送至(_O)…" -#: src/Resources.vala:327 +#: src/Resources.vala:297 msgid "_Find…" msgstr "尋找(_F)…" -#: src/Resources.vala:328 ui/collection.ui:217 ui/offline.ui:239 +#: src/Resources.vala:298 ui/collection.ui:217 ui/offline.ui:239 #: ui/trash.ui:312 msgid "Find" msgstr "尋找" -#: src/Resources.vala:329 ui/collection.ui:214 ui/offline.ui:236 +#: src/Resources.vala:299 ui/collection.ui:214 ui/offline.ui:236 #: ui/trash.ui:309 msgid "Find an image by typing text that appears in its name or tags" msgstr "輸入出現在影像的名稱內或標籤上的文字來尋找影像" -#: src/Resources.vala:331 +#: src/Resources.vala:301 msgid "_Flag" msgstr "加上旗幟(_F)" -#: src/Resources.vala:333 +#: src/Resources.vala:303 msgid "Un_flag" msgstr "移除旗幟(_F)" -#: src/Resources.vala:336 +#: src/Resources.vala:307 +msgid "Mark faces of people in the photo" +msgstr "在圖片中標記人們的臉孔" + +#: src/Resources.vala:308 +msgid "Modify Faces" +msgstr "修改臉孔" + +#: src/Resources.vala:309 +msgid "Delete Face" +msgstr "刪除臉孔" + +#: src/Resources.vala:311 src/Resources.vala:353 ui/tags.ui:456 +msgid "_Rename…" +msgstr "重新命名(_R)…" + +#: src/Resources.vala:315 #, c-format msgid "Unable to launch editor: %s" msgstr "無法開啟編輯器:%s" -#: src/Resources.vala:341 +#: src/Resources.vala:320 #, c-format msgid "Add Tag “%s”" msgstr "加入「%s」標籤" #. Used when adding two tags to photo(s) -#: src/Resources.vala:344 +#: src/Resources.vala:323 #, c-format msgid "Add Tags “%s” and “%s”" msgstr "加入「%s」與「%s」標籤" #. Undo/Redo command name (in Edit menu) -#: src/Resources.vala:349 +#: src/Resources.vala:328 msgctxt "UndoRedo menu entry" msgid "Add Tags" msgstr "加入標籤" -#: src/Resources.vala:354 +#: src/Resources.vala:333 #, c-format msgid "_Delete Tag “%s”" msgstr "刪除「%s」標籤(_D)" -#: src/Resources.vala:358 +#: src/Resources.vala:337 #, c-format msgid "Delete Tag “%s”" msgstr "刪除「%s」標籤" -#: src/Resources.vala:361 +#: src/Resources.vala:340 msgid "Delete Tag" msgstr "刪除標籤" -#: src/Resources.vala:367 +#: src/Resources.vala:346 #, c-format msgid "Re_name Tag “%s”…" msgstr "重新命名「%s」標籤…" -#: src/Resources.vala:371 +#: src/Resources.vala:350 #, c-format msgid "Rename Tag “%s” to “%s”" msgstr "重新將「%s」標籤命名為「%s」" -#: src/Resources.vala:374 ui/tags.ui:456 -msgid "_Rename…" -msgstr "重新命名(_R)…" - -#: src/Resources.vala:376 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 -#: ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 ui/tags.ui:395 +#: src/Resources.vala:355 ui/collection.ui:24 ui/event.ui:412 ui/event.ui:463 +#: ui/faces.ui:395 ui/media.ui:395 ui/photo_context.ui:22 ui/photo.ui:380 +#: ui/tags.ui:395 msgid "Modif_y Tags…" msgstr "修改標籤(_Y)…" -#: src/Resources.vala:377 +#: src/Resources.vala:356 msgid "Modify Tags" msgstr "修改標籤" -#: src/Resources.vala:380 +#: src/Resources.vala:359 #, c-format msgid "Tag Photo as “%s”" msgid_plural "Tag Photos as “%s”" msgstr[0] "將相片加上「%s」標籤" -#: src/Resources.vala:386 +#: src/Resources.vala:365 #, c-format msgid "Tag the selected photo as “%s”" msgid_plural "Tag the selected photos as “%s”" msgstr[0] "將所選相片加上「%s」標籤" -#: src/Resources.vala:392 +#: src/Resources.vala:371 #, c-format msgid "Remove Tag “%s” From _Photo" msgid_plural "Remove Tag “%s” From _Photos" msgstr[0] "從相片移除「%s」標籤(_P)" -#: src/Resources.vala:398 +#: src/Resources.vala:377 #, c-format msgid "Remove Tag “%s” From Photo" msgid_plural "Remove Tag “%s” From Photos" msgstr[0] "從相片移除「%s」標籤" -#: src/Resources.vala:404 +#: src/Resources.vala:383 #, c-format msgid "Unable to rename tag to “%s” because the tag already exists." msgstr "「%s」標籤已經存在,故無法重新命名該標籤。" -#: src/Resources.vala:408 +#: src/Resources.vala:387 #, c-format msgid "Unable to rename search to “%s” because the search already exists." msgstr "「%s」搜尋已經存在,故無法重新命名該搜尋。" #. Saved search button -#: src/Resources.vala:411 src/SearchFilter.vala:1120 +#: src/Resources.vala:390 src/SearchFilter.vala:1146 msgid "Saved Search" msgstr "儲存的搜尋" -#: src/Resources.vala:413 +#: src/Resources.vala:392 msgid "Delete Search" msgstr "刪除搜尋" -#: src/Resources.vala:416 ui/savedsearch.ui:10 +#: src/Resources.vala:395 ui/savedsearch.ui:10 msgid "_Edit…" msgstr "編輯(_E)…" -#: src/Resources.vala:417 ui/savedsearch.ui:6 +#: src/Resources.vala:396 ui/savedsearch.ui:6 msgid "Re_name…" msgstr "重新命名(_N)…" -#: src/Resources.vala:420 +#: src/Resources.vala:399 #, c-format msgid "Rename Search “%s” to “%s”" msgstr "重新將「%s」搜尋命名為「%s」" -#: src/Resources.vala:424 +#: src/Resources.vala:403 #, c-format msgid "Delete Search “%s”" msgstr "刪除「%s」搜尋" -#: src/Resources.vala:561 +#: src/Resources.vala:408 +#, c-format +msgid "Unable to rename face to “%s” because the face already exists." +msgstr "無法重新將臉孔命名為「%s」,因為已經存在該人物。" + +#: src/Resources.vala:412 +#, c-format +msgid "Remove Face “%s” From _Photo" +msgid_plural "Remove Face “%s” From _Photos" +msgstr[0] "從相片中移除「%s」臉孔(_P)" + +#: src/Resources.vala:417 +#, c-format +msgid "Remove Face “%s” From Photo" +msgid_plural "Remove Face “%s” From Photos" +msgstr[0] "從相片移除「%s」臉孔" + +#: src/Resources.vala:422 +#, c-format +msgid "Re_name Face “%s”…" +msgstr "重新命名「%s」臉孔…" + +#: src/Resources.vala:426 +#, c-format +msgid "Rename Face “%s” to “%s”" +msgstr "重新將「%s」臉孔命名為「%s」" + +#: src/Resources.vala:430 +#, c-format +msgid "_Delete Face “%s”" +msgstr "刪除「%s」臉孔(_D)" + +#: src/Resources.vala:434 +#, c-format +msgid "Delete Face “%s”" +msgstr "刪除「%s」臉孔" + +#: src/Resources.vala:664 #, c-format msgid "Rate %s" msgstr "為 %s 評等" -#: src/Resources.vala:562 +#: src/Resources.vala:665 #, c-format msgid "Set rating to %s" msgstr "設定評等為 %s" -#: src/Resources.vala:563 +#: src/Resources.vala:666 #, c-format msgid "Setting rating to %s" msgstr "正在設定評等為 %s" -#: src/Resources.vala:565 +#: src/Resources.vala:668 #, c-format msgid "Display %s" msgstr "顯示 %s" -#: src/Resources.vala:566 +#: src/Resources.vala:669 #, c-format msgid "Only show photos with a rating of %s" msgstr "只顯示評等為 %s 的相片" -#: src/Resources.vala:567 +#: src/Resources.vala:670 #, c-format msgid "%s or Better" msgstr "%s 或更高" -#: src/Resources.vala:568 +#: src/Resources.vala:671 #, c-format msgid "Display %s or Better" msgstr "顯示 %s 或更高" -#: src/Resources.vala:569 +#: src/Resources.vala:672 #, c-format msgid "Only show photos with a rating of %s or better" msgstr "只顯示評等為 %s 或更高的相片" -#: src/Resources.vala:660 ui/trash.ui:255 +#: src/Resources.vala:763 ui/trash.ui:255 msgid "Remove the selected photos from the trash" -msgstr "從回收筒移除所選的相片" +msgstr "從垃圾桶移除所選的相片" -#: src/Resources.vala:661 ui/offline.ui:221 +#: src/Resources.vala:764 ui/offline.ui:221 msgid "Remove the selected photos from the library" msgstr "從珍藏館移除所選的相片" -#: src/Resources.vala:663 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 +#: src/Resources.vala:766 ui/trash.ui:68 ui/trash.ui:221 ui/trash.ui:273 msgid "_Restore" msgstr "還原(_R)" -#: src/Resources.vala:664 ui/trash.ui:270 +#: src/Resources.vala:767 ui/trash.ui:270 msgid "Move the selected photos back into the library" msgstr "將所選的相片移回珍藏館" -#: src/Resources.vala:666 ui/collection.ui:123 ui/direct_context.ui:18 -#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/media.ui:27 +#: src/Resources.vala:769 ui/collection.ui:123 ui/direct_context.ui:18 +#: ui/direct.ui:30 ui/event.ui:27 ui/event.ui:562 ui/faces.ui:27 ui/media.ui:27 #: ui/photo_context.ui:130 ui/photo.ui:35 ui/tags.ui:27 ui/trash.ui:19 #: ui/trash.ui:227 msgid "Show in File Mana_ger" msgstr "以檔案管理員開啟(_G)" -#: src/Resources.vala:667 +#: src/Resources.vala:770 msgid "Open the selected photo’s directory in the file manager" msgstr "在檔案管理員內開啟所選的相片目錄" -#: src/Resources.vala:670 +#: src/Resources.vala:773 #, c-format msgid "Unable to open in file manager: %s" msgstr "無法於檔案管理員內開啟:%s" -#: src/Resources.vala:673 ui/event.ui:74 ui/media.ui:74 ui/offline.ui:58 -#: ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 ui/tags.ui:74 +#: src/Resources.vala:776 ui/event.ui:74 ui/faces.ui:74 ui/media.ui:74 +#: ui/offline.ui:58 ui/offline.ui:207 ui/offline.ui:224 ui/photo.ui:77 +#: ui/tags.ui:74 msgid "R_emove From Library" msgstr "從珍藏館移除(_E)" -#: src/Resources.vala:675 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 -#: ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 ui/tags.ui:79 +#: src/Resources.vala:778 ui/collection.ui:134 ui/event.ui:79 ui/event.ui:573 +#: ui/faces.ui:79 ui/media.ui:79 ui/photo_context.ui:141 ui/photo.ui:82 +#: ui/tags.ui:79 msgid "_Move to Trash" -msgstr "移至回收筒(_M)" +msgstr "移至垃圾桶(_M)" -#: src/Resources.vala:677 ui/events_directory.ui:58 ui/event.ui:86 -#: ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 ui/trash.ui:74 +#: src/Resources.vala:780 ui/events_directory.ui:58 ui/event.ui:86 +#: ui/faces.ui:86 ui/import.ui:61 ui/media.ui:86 ui/offline.ui:65 ui/tags.ui:86 +#: ui/trash.ui:74 msgid "Select _All" msgstr "全選(_A)" -#: src/Resources.vala:678 +#: src/Resources.vala:781 msgid "Select all items" msgstr "選取全部項目" @@ -5304,14 +5447,14 @@ msgstr "選取全部項目" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format #. / Locale-specific calendar date format, i.e. "Tue Mar 08, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:739 +#: src/Resources.vala:842 msgid "%a %b %d, %Y" msgstr "%Y年%b%d日(%a)" #. / Locale-specific starting date format for multi-date strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:744 +#: src/Resources.vala:847 msgctxt "MultidayFormat" msgid "%a %b %d" msgstr "%Y年%b%d日(%a)" @@ -5319,7 +5462,7 @@ msgstr "%Y年%b%d日(%a)" #. / Locale-specific ending date format for multi-date strings, #. / i.e. the "10, 2006" in "Tue Mar 08 - 10, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:749 +#: src/Resources.vala:852 msgctxt "MultidayFormat" msgid "%d, %Y" msgstr "%d日" @@ -5327,7 +5470,7 @@ msgstr "%d日" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Tue Mar 08" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:754 +#: src/Resources.vala:857 msgctxt "MultimonthFormat" msgid "%a %b %d" msgstr "%Y年%b%d日(%a)" @@ -5335,170 +5478,174 @@ msgstr "%Y年%b%d日(%a)" #. / Locale-specific calendar date format for multi-month strings, #. / i.e. the "Mon Apr 06, 2006" in "Tue Mar 08 to Mon Apr 06, 2006" #. / See http://developer.gnome.org/glib/2.32/glib-GDateTime.html#g-date-time-format -#: src/Resources.vala:759 +#: src/Resources.vala:862 msgctxt "MultimonthFormat" msgid "%a %b %d, %Y" msgstr "%b%d日(%a)" -#: src/Screensaver.vala:18 src/SlideshowPage.vala:115 +#: src/Screensaver.vala:18 src/SlideshowPage.vala:117 msgid "Slideshow" msgstr "投影秀" #. Ordering must correspond with SearchConditionText.Context -#: src/searches/SavedSearchDialog.vala:167 +#: src/searches/SavedSearchDialog.vala:170 msgid "contains" msgstr "包含" #. Ordering must correspond with Context -#: src/searches/SavedSearchDialog.vala:168 -#: src/searches/SavedSearchDialog.vala:499 +#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:502 msgid "is exactly" msgstr "完全是" -#: src/searches/SavedSearchDialog.vala:169 +#: src/searches/SavedSearchDialog.vala:172 msgid "starts with" msgstr "開頭為" -#: src/searches/SavedSearchDialog.vala:170 +#: src/searches/SavedSearchDialog.vala:173 msgid "ends with" msgstr "結尾為" -#: src/searches/SavedSearchDialog.vala:171 +#: src/searches/SavedSearchDialog.vala:174 msgid "does not contain" msgstr "不包含" -#: src/searches/SavedSearchDialog.vala:172 -#: src/searches/SavedSearchDialog.vala:503 +#: src/searches/SavedSearchDialog.vala:175 +#: src/searches/SavedSearchDialog.vala:506 msgid "is not set" msgstr "未設定" -#: src/searches/SavedSearchDialog.vala:173 +#: src/searches/SavedSearchDialog.vala:176 msgid "is set" msgstr "有設定" #. Ordering must correspond with SearchConditionMediaType.Context -#: src/searches/SavedSearchDialog.vala:247 -#: src/searches/SavedSearchDialog.vala:378 -#: src/searches/SavedSearchDialog.vala:443 +#: src/searches/SavedSearchDialog.vala:250 +#: src/searches/SavedSearchDialog.vala:381 +#: src/searches/SavedSearchDialog.vala:446 msgid "is" msgstr "是" -#: src/searches/SavedSearchDialog.vala:248 +#: src/searches/SavedSearchDialog.vala:251 msgid "is not" msgstr "不是" #. Ordering must correspond with SearchConditionMediaType.MediaType -#: src/searches/SavedSearchDialog.vala:254 +#: src/searches/SavedSearchDialog.vala:257 msgid "any photo" msgstr "任意相片" -#: src/searches/SavedSearchDialog.vala:255 +#: src/searches/SavedSearchDialog.vala:258 msgid "a raw photo" msgstr "RAW 相片" -#: src/searches/SavedSearchDialog.vala:256 +#: src/searches/SavedSearchDialog.vala:259 msgid "a video" msgstr "視訊" -#: src/searches/SavedSearchDialog.vala:310 +#: src/searches/SavedSearchDialog.vala:313 msgid "has" msgstr "有" -#: src/searches/SavedSearchDialog.vala:311 +#: src/searches/SavedSearchDialog.vala:314 msgid "has no" msgstr "沒有" -#: src/searches/SavedSearchDialog.vala:316 +#: src/searches/SavedSearchDialog.vala:319 msgid "modifications" msgstr "修改" -#: src/searches/SavedSearchDialog.vala:317 +#: src/searches/SavedSearchDialog.vala:320 msgid "internal modifications" msgstr "內部修改" -#: src/searches/SavedSearchDialog.vala:318 +#: src/searches/SavedSearchDialog.vala:321 msgid "external modifications" msgstr "外部修改" #. Ordering must correspond with SearchConditionFlagged.State -#: src/searches/SavedSearchDialog.vala:372 +#: src/searches/SavedSearchDialog.vala:375 msgid "flagged" msgstr "已加上旗幟" -#: src/searches/SavedSearchDialog.vala:373 +#: src/searches/SavedSearchDialog.vala:376 msgid "not flagged" msgstr "未加上旗幟" -#: src/searches/SavedSearchDialog.vala:436 +#: src/searches/SavedSearchDialog.vala:439 msgid "and higher" msgstr "與更高" -#: src/searches/SavedSearchDialog.vala:437 +#: src/searches/SavedSearchDialog.vala:440 msgid "only" msgstr "只有" -#: src/searches/SavedSearchDialog.vala:438 +#: src/searches/SavedSearchDialog.vala:441 msgid "and lower" msgstr "與更低" -#: src/searches/SavedSearchDialog.vala:500 +#: src/searches/SavedSearchDialog.vala:503 msgid "is after" msgstr "晚於" -#: src/searches/SavedSearchDialog.vala:501 +#: src/searches/SavedSearchDialog.vala:504 msgid "is before" msgstr "早於" -#: src/searches/SavedSearchDialog.vala:502 +#: src/searches/SavedSearchDialog.vala:505 msgid "is between" msgstr "介於" -#: src/searches/SavedSearchDialog.vala:515 +#: src/searches/SavedSearchDialog.vala:518 msgid "and" msgstr "與" -#: src/searches/SearchBoolean.vala:157 +#: src/searches/SearchBoolean.vala:169 msgid "Any text" msgstr "任意文字" -#: src/searches/SearchBoolean.vala:160 +#: src/searches/SearchBoolean.vala:172 msgid "Title" msgstr "標題" -#: src/searches/SearchBoolean.vala:163 +#: src/searches/SearchBoolean.vala:175 msgid "Tag" msgstr "標籤" -#: src/searches/SearchBoolean.vala:166 +#: src/searches/SearchBoolean.vala:178 msgid "Comment" msgstr "評註" -#: src/searches/SearchBoolean.vala:169 +#: src/searches/SearchBoolean.vala:181 msgid "Event name" msgstr "事件名稱" -#: src/searches/SearchBoolean.vala:172 +#: src/searches/SearchBoolean.vala:184 msgid "File name" msgstr "檔案名稱" -#: src/searches/SearchBoolean.vala:175 +#: src/searches/SearchBoolean.vala:187 +msgid "Face" +msgstr "臉孔" + +#: src/searches/SearchBoolean.vala:190 msgid "Media type" msgstr "媒體類型" -#: src/searches/SearchBoolean.vala:178 +#: src/searches/SearchBoolean.vala:193 msgid "Flag state" msgstr "旗幟狀態" -#: src/searches/SearchBoolean.vala:181 +#: src/searches/SearchBoolean.vala:196 msgid "Photo state" msgstr "相片狀態" -#: src/searches/SearchBoolean.vala:184 src/SearchFilter.vala:827 -#: src/SearchFilter.vala:1110 +#: src/searches/SearchBoolean.vala:199 src/SearchFilter.vala:853 +#: src/SearchFilter.vala:1136 msgid "Rating" msgstr "評等" -#: src/searches/SearchBoolean.vala:187 +#: src/searches/SearchBoolean.vala:202 msgid "Date" msgstr "日期" @@ -5510,27 +5657,27 @@ msgstr "儲存的搜尋" msgid "Organize your saved searches" msgstr "整理您儲存的搜尋" -#: src/SearchFilter.vala:811 +#: src/SearchFilter.vala:837 msgid "★+ Rating" msgstr "★+ 評等" -#: src/SearchFilter.vala:814 +#: src/SearchFilter.vala:840 msgid "★★+ Rating" msgstr "★★+ 評等" -#: src/SearchFilter.vala:817 +#: src/SearchFilter.vala:843 msgid "★★★+ Rating" msgstr "★★★+ 評等" -#: src/SearchFilter.vala:820 +#: src/SearchFilter.vala:846 msgid "★★★★+ Rating" msgstr "★★★★+ 評等" -#: src/SearchFilter.vala:824 +#: src/SearchFilter.vala:850 msgid "★★★★★+ Rating" msgstr "★★★★★+ 評等" -#: src/SearchFilter.vala:1060 +#: src/SearchFilter.vala:1086 #, c-format msgid "Error loading search bar UI: %s" msgstr "載入搜尋列 UI 時發生錯誤:%s" @@ -5540,71 +5687,71 @@ msgstr "載入搜尋列 UI 時發生錯誤:%s" #. Prepare the close menu for use, but don't #. display it yet; we'll connect it to secondary #. click later on. -#: src/SearchFilter.vala:1069 +#: src/SearchFilter.vala:1095 msgid "Close" msgstr "關閉" #. Type label and toggles -#: src/SearchFilter.vala:1075 +#: src/SearchFilter.vala:1101 msgid "Type" msgstr "類型" -#: src/SearchFilter.vala:1082 +#: src/SearchFilter.vala:1108 msgid "Videos" msgstr "視訊" -#: src/SearchFilter.vala:1085 +#: src/SearchFilter.vala:1111 msgid "RAW Photos" msgstr "RAW 相片" -#: src/SearchFilter.vala:1121 +#: src/SearchFilter.vala:1147 msgid "Use a saved search to filter items in the current view" msgstr "使用儲存的搜尋來過濾目前檢視畫面中的項目" #. Set up toolbar #. add toolbar buttons -#: src/SlideshowPage.vala:134 +#: src/SlideshowPage.vala:136 msgid "Back" msgstr "返回" -#: src/SlideshowPage.vala:136 +#: src/SlideshowPage.vala:138 msgid "Go to the previous photo" msgstr "前往上一張相片" -#: src/SlideshowPage.vala:141 src/SlideshowPage.vala:248 +#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:250 msgid "Pause" msgstr "暫停" -#: src/SlideshowPage.vala:143 src/SlideshowPage.vala:249 +#: src/SlideshowPage.vala:145 src/SlideshowPage.vala:251 msgid "Pause the slideshow" msgstr "暫停投影秀" -#: src/SlideshowPage.vala:148 +#: src/SlideshowPage.vala:150 msgid "Next" msgstr "下一張" -#: src/SlideshowPage.vala:150 +#: src/SlideshowPage.vala:152 msgid "Go to the next photo" msgstr "前往下一張相片" -#: src/SlideshowPage.vala:157 ui/slideshow_settings.ui:21 +#: src/SlideshowPage.vala:159 ui/slideshow_settings.ui:21 msgid "Settings" msgstr "設定值" -#: src/SlideshowPage.vala:158 +#: src/SlideshowPage.vala:160 msgid "Change slideshow settings" msgstr "變更投影秀設定值" #. An entire slideshow set might be missing, so check for a loop. -#: src/SlideshowPage.vala:212 +#: src/SlideshowPage.vala:214 msgid "All photo source files are missing." msgstr "遺失全部相片來源檔。" -#: src/SlideshowPage.vala:244 +#: src/SlideshowPage.vala:246 msgid "Play" msgstr "播放" -#: src/SlideshowPage.vala:245 +#: src/SlideshowPage.vala:247 msgid "Continue the slideshow" msgstr "繼續投影秀" @@ -5616,7 +5763,7 @@ msgstr "投影秀轉場" msgid "(None)" msgstr "(無)" -#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:485 +#: src/slideshow/TransitionEffects.vala:287 ui/preferences_dialog.ui:414 msgid "None" msgstr "無" @@ -5641,24 +5788,24 @@ msgstr "無標題" msgid "Export Videos" msgstr "匯出視訊" -#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/media.ui:281 -#: ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 +#: ui/collection.ui:33 ui/event.ui:281 ui/event.ui:472 ui/faces.ui:281 +#: ui/media.ui:281 ui/photo_context.ui:30 ui/photo.ui:268 ui/tags.ui:281 msgid "Toggle _Flag" msgstr "切換旗幟(_F)" -#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/media.ui:353 -#: ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 +#: ui/collection.ui:82 ui/event.ui:353 ui/event.ui:521 ui/faces.ui:353 +#: ui/media.ui:353 ui/photo_context.ui:88 ui/photo.ui:344 ui/tags.ui:353 msgid "_Developer" msgstr "顯影器(_D)" -#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/media.ui:381 -#: ui/photo_context.ui:126 ui/tags.ui:381 +#: ui/collection.ui:119 ui/event.ui:387 ui/event.ui:558 ui/faces.ui:381 +#: ui/media.ui:381 ui/photo_context.ui:126 ui/tags.ui:381 msgid "View Eve_nt for Photo" msgstr "檢視相片的事件(_N)" -#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/import_queue.ui:5 -#: ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 ui/photo.ui:5 ui/tags.ui:5 -#: ui/trash.ui:5 +#: ui/direct.ui:5 ui/events_directory.ui:5 ui/event.ui:5 ui/faces.ui:5 +#: ui/import_queue.ui:5 ui/import.ui:5 ui/media.ui:5 ui/offline.ui:5 +#: ui/photo.ui:5 ui/tags.ui:5 ui/trash.ui:5 msgid "_File" msgstr "檔案(_F)" @@ -5666,7 +5813,7 @@ msgstr "檔案(_F)" msgid "Save _As…" msgstr "另存為(_A)…" -#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 +#: ui/direct.ui:59 ui/events_directory.ui:71 ui/event.ui:99 ui/faces.ui:99 #: ui/import_queue.ui:38 ui/import.ui:74 ui/media.ui:99 ui/offline.ui:78 #: ui/photo.ui:95 ui/tags.ui:99 ui/trash.ui:87 msgid "_View" @@ -5700,229 +5847,240 @@ msgstr "下一張相片(_N)" msgid "T_ools" msgstr "工具(_O)" -#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 +#: ui/direct.ui:182 ui/events_directory.ui:158 ui/event.ui:428 ui/faces.ui:438 #: ui/import_queue.ui:73 ui/import.ui:191 ui/media.ui:411 ui/offline.ui:188 #: ui/photo.ui:395 ui/tags.ui:430 ui/trash.ui:197 msgid "_Frequently Asked Questions" msgstr "常見問答集(_F)" -#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 +#: ui/direct.ui:186 ui/events_directory.ui:162 ui/event.ui:432 ui/faces.ui:442 #: ui/import_queue.ui:77 ui/import.ui:195 ui/media.ui:415 ui/offline.ui:192 #: ui/photo.ui:399 ui/tags.ui:434 ui/trash.ui:201 msgid "_Report a Problem…" msgstr "回報問題(_R)…" -#: ui/events_directory.ui:8 ui/event.ui:8 ui/import_queue.ui:14 ui/import.ui:8 -#: ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 ui/trash.ui:8 +#: ui/events_directory.ui:8 ui/event.ui:8 ui/faces.ui:8 ui/import_queue.ui:14 +#: ui/import.ui:8 ui/media.ui:8 ui/offline.ui:8 ui/photo.ui:8 ui/tags.ui:8 +#: ui/trash.ui:8 msgid "_Import From Folder…" msgstr "從資料夾匯入(_I)…" -#: ui/events_directory.ui:13 ui/event.ui:13 ui/import_queue.ui:19 -#: ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 ui/photo.ui:13 ui/tags.ui:13 -#: ui/trash.ui:13 +#: ui/events_directory.ui:13 ui/event.ui:13 ui/faces.ui:13 +#: ui/import_queue.ui:19 ui/import.ui:21 ui/media.ui:13 ui/offline.ui:13 +#: ui/photo.ui:13 ui/tags.ui:13 ui/trash.ui:13 msgid "Import From _Application…" msgstr "從應用程式匯入(_A)…" -#: ui/events_directory.ui:19 ui/event.ui:34 ui/import_queue.ui:25 -#: ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 ui/photo.ui:42 ui/tags.ui:34 -#: ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 +#: ui/events_directory.ui:19 ui/event.ui:34 ui/faces.ui:34 +#: ui/import_queue.ui:25 ui/import.ui:27 ui/media.ui:34 ui/offline.ui:19 +#: ui/photo.ui:42 ui/tags.ui:34 ui/trash.ui:24 ui/trash.ui:234 ui/trash.ui:242 msgid "Empty T_rash" -msgstr "清空回收筒(_R)" +msgstr "清空垃圾桶(_R)" -#: ui/events_directory.ui:47 ui/event.ui:62 ui/import.ui:55 ui/media.ui:62 -#: ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 +#: ui/events_directory.ui:47 ui/event.ui:62 ui/faces.ui:62 ui/import.ui:55 +#: ui/media.ui:62 ui/offline.ui:47 ui/tags.ui:62 ui/trash.ui:52 msgid "_Find" msgstr "尋找(_F)" -#: ui/events_directory.ui:51 ui/event.ui:66 ui/media.ui:66 ui/offline.ui:51 -#: ui/photo.ui:70 ui/search_sidebar_context.ui:6 +#: ui/events_directory.ui:51 ui/event.ui:66 ui/faces.ui:66 ui/media.ui:66 +#: ui/offline.ui:51 ui/photo.ui:70 ui/search_sidebar_context.ui:6 #: ui/sidebar_default_context.ui:6 ui/tags.ui:66 ui/trash.ui:56 msgid "Ne_w Saved Search…" msgstr "新的儲存搜尋(_W)…" -#: ui/events_directory.ui:74 ui/event.ui:102 ui/import_queue.ui:41 -#: ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 ui/photo.ui:98 -#: ui/tags.ui:102 ui/trash.ui:90 +#: ui/events_directory.ui:74 ui/event.ui:102 ui/faces.ui:102 +#: ui/import_queue.ui:41 ui/import.ui:77 ui/media.ui:102 ui/offline.ui:81 +#: ui/photo.ui:98 ui/tags.ui:102 ui/trash.ui:90 msgid "_Basic Information" msgstr "基本資訊(_B)" -#: ui/events_directory.ui:79 ui/event.ui:107 ui/import.ui:82 ui/media.ui:107 -#: ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 ui/trash.ui:95 +#: ui/events_directory.ui:79 ui/event.ui:107 ui/faces.ui:107 ui/import.ui:82 +#: ui/media.ui:107 ui/offline.ui:86 ui/photo.ui:103 ui/tags.ui:107 +#: ui/trash.ui:95 msgid "E_xtended Information" msgstr "擴充資訊(_X)" -#: ui/events_directory.ui:84 ui/event.ui:112 ui/import.ui:87 ui/media.ui:112 -#: ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 +#: ui/events_directory.ui:84 ui/event.ui:112 ui/faces.ui:112 ui/import.ui:87 +#: ui/media.ui:112 ui/offline.ui:91 ui/tags.ui:112 ui/trash.ui:100 msgid "_Search Bar" msgstr "搜尋列(_S)" -#: ui/events_directory.ui:89 ui/event.ui:117 ui/import.ui:92 ui/media.ui:117 -#: ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 ui/trash.ui:105 +#: ui/events_directory.ui:89 ui/event.ui:117 ui/faces.ui:117 ui/import.ui:92 +#: ui/media.ui:117 ui/offline.ui:96 ui/photo.ui:108 ui/tags.ui:117 +#: ui/trash.ui:105 msgid "S_idebar" msgstr "側邊欄(_I)" -#: ui/events_directory.ui:94 ui/event.ui:122 ui/import.ui:97 ui/media.ui:122 -#: ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 ui/trash.ui:110 +#: ui/events_directory.ui:94 ui/event.ui:122 ui/faces.ui:122 ui/import.ui:97 +#: ui/media.ui:122 ui/offline.ui:101 ui/photo.ui:113 ui/tags.ui:122 +#: ui/trash.ui:110 msgid "T_oolbar" msgstr "工具列(_O)" -#: ui/events_directory.ui:101 ui/event.ui:134 ui/media.ui:134 ui/tags.ui:134 +#: ui/events_directory.ui:101 ui/event.ui:134 ui/faces.ui:134 ui/media.ui:134 +#: ui/tags.ui:134 msgid "_Comments" msgstr "評註(_C)" -#: ui/events_directory.ui:108 ui/event.ui:243 ui/import_queue.ui:48 -#: ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 ui/photo.ui:127 -#: ui/tags.ui:243 ui/trash.ui:172 +#: ui/events_directory.ui:108 ui/event.ui:243 ui/faces.ui:243 +#: ui/import_queue.ui:48 ui/import.ui:166 ui/media.ui:243 ui/offline.ui:163 +#: ui/photo.ui:127 ui/tags.ui:243 ui/trash.ui:172 msgid "Sort _Events" msgstr "排序事件(_E)" -#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 -#: ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 ui/media.ui:246 -#: ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 ui/tags.ui:246 -#: ui/trash.ui:175 +#: ui/events_directory.ui:111 ui/event.ui:231 ui/event.ui:246 ui/faces.ui:231 +#: ui/faces.ui:246 ui/import_queue.ui:51 ui/import.ui:169 ui/media.ui:231 +#: ui/media.ui:246 ui/offline.ui:166 ui/photo.ui:130 ui/tags.ui:231 +#: ui/tags.ui:246 ui/trash.ui:175 msgid "_Ascending" msgstr "遞增(_A)" -#: ui/events_directory.ui:116 ui/event.ui:236 ui/import_queue.ui:56 -#: ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 ui/trash.ui:180 +#: ui/events_directory.ui:116 ui/event.ui:236 ui/faces.ui:236 +#: ui/import_queue.ui:56 ui/media.ui:236 ui/offline.ui:171 ui/tags.ui:236 +#: ui/trash.ui:180 msgid "D_escending" msgstr "遞減(_E)" -#: ui/events_directory.ui:132 ui/event.ui:379 ui/media.ui:373 ui/tags.ui:373 +#: ui/events_directory.ui:132 ui/event.ui:379 ui/faces.ui:373 ui/media.ui:373 +#: ui/tags.ui:373 msgid "Even_ts" msgstr "事件(_T)" -#: ui/event.ui:129 ui/import.ui:104 ui/media.ui:129 ui/tags.ui:129 +#: ui/event.ui:129 ui/faces.ui:129 ui/import.ui:104 ui/media.ui:129 +#: ui/tags.ui:129 msgid "_Titles" msgstr "標題(_T)" -#: ui/event.ui:139 ui/event.ui:404 ui/media.ui:139 ui/media.ui:387 -#: ui/photo.ui:372 ui/tags.ui:139 ui/tags.ui:387 +#: ui/event.ui:139 ui/event.ui:404 ui/faces.ui:139 ui/faces.ui:387 +#: ui/media.ui:139 ui/media.ui:387 ui/photo.ui:372 ui/tags.ui:139 +#: ui/tags.ui:387 msgid "Ta_gs" msgstr "標籤(_G)" -#: ui/event.ui:206 ui/media.ui:206 ui/tags.ui:206 +#: ui/event.ui:206 ui/faces.ui:206 ui/media.ui:206 ui/tags.ui:206 msgid "Sort _Photos" msgstr "排序相片(_P)" -#: ui/event.ui:209 ui/media.ui:209 ui/tags.ui:209 +#: ui/event.ui:209 ui/faces.ui:209 ui/media.ui:209 ui/tags.ui:209 msgid "By _Title" msgstr "依標題(_T)" -#: ui/event.ui:214 ui/media.ui:214 ui/tags.ui:214 +#: ui/event.ui:214 ui/faces.ui:214 ui/media.ui:214 ui/tags.ui:214 msgid "By _Filename" msgstr "依檔名(_F)" -#: ui/event.ui:219 ui/media.ui:219 ui/tags.ui:219 +#: ui/event.ui:219 ui/faces.ui:219 ui/media.ui:219 ui/tags.ui:219 msgid "By Exposure _Date" msgstr "依拍攝日期(_D)" -#: ui/event.ui:224 ui/media.ui:224 ui/tags.ui:224 +#: ui/event.ui:224 ui/faces.ui:224 ui/media.ui:224 ui/tags.ui:224 msgid "By _Rating" msgstr "依評等(_R)" -#: ui/event.ui:251 ui/import.ui:174 ui/media.ui:251 ui/photo.ui:135 -#: ui/tags.ui:251 +#: ui/event.ui:251 ui/faces.ui:251 ui/import.ui:174 ui/media.ui:251 +#: ui/photo.ui:135 ui/tags.ui:251 msgid "_Descending" msgstr "遞減(_D)" -#: ui/event.ui:275 ui/media.ui:275 ui/tags.ui:275 +#: ui/event.ui:275 ui/faces.ui:275 ui/media.ui:275 ui/tags.ui:275 msgid "_Photos" msgstr "相片(_P)" +#: ui/faces.ui:465 +msgid "Rename…" +msgstr "重新命名…" + #: ui/import_queue.ui:8 msgid "_Stop Import" msgstr "停止匯入(_S)" -#: ui/preferences_dialog.ui:65 -msgid "white" -msgstr "白" - -#: ui/preferences_dialog.ui:92 -msgid "black" -msgstr "黑" - -#: ui/preferences_dialog.ui:123 +#: ui/preferences_dialog.ui:67 msgid "Display" msgstr "顯示" -#: ui/preferences_dialog.ui:160 -msgid "_Background:" -msgstr "背景(_B):" - -#: ui/preferences_dialog.ui:175 +#: ui/preferences_dialog.ui:103 msgid "_Import photos to:" msgstr "匯入相片至(_I):" -#: ui/preferences_dialog.ui:186 +#: ui/preferences_dialog.ui:114 msgid "_Watch library directory for new files" msgstr "監視珍藏館目錄是否有新檔案(_W)" -#: ui/preferences_dialog.ui:209 +#: ui/preferences_dialog.ui:137 msgid "Importing" msgstr "匯入" -#: ui/preferences_dialog.ui:226 +#: ui/preferences_dialog.ui:154 msgid "_Directory structure:" msgstr "目錄結構(_D):" -#: ui/preferences_dialog.ui:241 +#: ui/preferences_dialog.ui:169 msgid "Example:" msgstr "範例:" -#: ui/preferences_dialog.ui:250 +#: ui/preferences_dialog.ui:178 msgid "R_ename imported files to lowercase" msgstr "將匯入的檔案重新命名為小寫(_E)" -#: ui/preferences_dialog.ui:272 +#: ui/preferences_dialog.ui:200 msgid "Metadata" msgstr "中介資料" -#: ui/preferences_dialog.ui:285 +#: ui/preferences_dialog.ui:213 msgid "Write tags, titles, and other _metadata to photo files" msgstr "寫入標籤、標題與其它中介資料至相片檔案(_M)" -#: ui/preferences_dialog.ui:307 +#: ui/preferences_dialog.ui:235 msgid "RAW Developer" msgstr "RAW 顯影器" -#: ui/preferences_dialog.ui:324 +#: ui/preferences_dialog.ui:252 msgid "De_fault:" msgstr "預設(_F):" -#: ui/preferences_dialog.ui:378 +#: ui/preferences_dialog.ui:306 msgid "_Pattern:" msgstr "樣式(_P):" -#: ui/preferences_dialog.ui:414 +#: ui/preferences_dialog.ui:339 +msgid "" +"When viewing images that are transparent, they will be drawn against this " +"background." +msgstr "當查看透明圖片時,其將會在這個背景下繪製。" + +#: ui/preferences_dialog.ui:343 msgid "Transparent Background:" msgstr "透明背景:" -#: ui/preferences_dialog.ui:428 +#: ui/preferences_dialog.ui:357 msgid "Checkered" msgstr "棋盤格狀" -#: ui/preferences_dialog.ui:449 +#: ui/preferences_dialog.ui:378 msgid "Solid color" msgstr "單一色彩" -#: ui/preferences_dialog.ui:539 +#: ui/preferences_dialog.ui:441 +msgid "Use dark theme:" +msgstr "使用暗色主題:" + +#: ui/preferences_dialog.ui:492 msgid "E_xternal photo editor:" msgstr "外部編輯器(_X):" -#: ui/preferences_dialog.ui:556 +#: ui/preferences_dialog.ui:509 msgid "External _RAW editor:" msgstr "外部 _RAW 編輯器:" -#: ui/preferences_dialog.ui:617 +#: ui/preferences_dialog.ui:570 msgid "External Editors" msgstr "外部編輯器" -#: ui/preferences_dialog.ui:642 +#: ui/preferences_dialog.ui:595 msgid "Plugins" msgstr "插件" -#: ui/preferences_dialog.ui:668 +#: ui/preferences_dialog.ui:621 msgid "Shotwell Preferences" msgstr "Shotwell 偏好設定" @@ -6048,23 +6206,23 @@ msgstr "每張相片要顯示為桌面背景多久" msgid "New _Tag…" msgstr "新增標籤(_T)…" -#: ui/slideshow_settings.ui:91 +#: ui/slideshow_settings.ui:98 msgid "_Delay:" msgstr "延遲(_D):" -#: ui/slideshow_settings.ui:105 +#: ui/slideshow_settings.ui:112 msgid "_Transition effect:" msgstr "轉場效果(_T):" -#: ui/slideshow_settings.ui:119 +#: ui/slideshow_settings.ui:126 msgid "Transition d_elay:" msgstr "轉場延遲(_D):" -#: ui/slideshow_settings.ui:129 +#: ui/slideshow_settings.ui:136 msgid "Show t_itle" msgstr "顯示標題(_I)" -#: ui/slideshow_settings.ui:212 ui/slideshow_settings.ui:223 +#: ui/slideshow_settings.ui:219 ui/slideshow_settings.ui:230 msgid "seconds" msgstr "秒" @@ -6074,7 +6232,25 @@ msgstr "標籤" #: ui/trash.ui:285 msgid "Delete all photos in the trash" -msgstr "刪除回收筒中的所有相片" +msgstr "刪除垃圾桶中的所有相片" + +#~ msgid "Extended Information" +#~ msgstr "擴展資訊" + +#~ msgid "background color" +#~ msgstr "背景色" + +#~ msgid "A grayscale color for use as the background color." +#~ msgstr "作為背景色使用的灰階色彩。" + +#~ msgid "white" +#~ msgstr "白" + +#~ msgid "black" +#~ msgstr "黑" + +#~ msgid "_Background:" +#~ msgstr "背景(_B):" #~ msgid "" #~ "Enter the confirmation number which appears after you log into Flickr in " diff --git a/publish-extra.am b/publish-extra.am deleted file mode 100644 index 2bf13e5..0000000 --- a/publish-extra.am +++ /dev/null @@ -1,52 +0,0 @@ -plugin_LTLIBRARIES += plugins/shotwell-publishing-extras/shotwell-publishing-extras.la - -dist_noinst_DATA += \ - plugins/shotwell-publishing-extras/gallery3.png \ - plugins/shotwell-publishing-extras/rajce.png \ - plugins/shotwell-publishing-extras/gallery3_authentication_pane.ui \ - plugins/shotwell-publishing-extras/gallery3_publishing_options_pane.ui \ - plugins/shotwell-publishing-extras/rajce_authentication_pane.ui \ - plugins/shotwell-publishing-extras/rajce_publishing_options_pane.ui \ - plugins/shotwell-publishing-extras/yandex_publish_model.ui \ - plugins/shotwell-publishing-extras/org.gnome.Shotwell.Publishing.Extras.gresource.xml - -plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_SOURCES = \ - plugins/shotwell-publishing-extras/GalleryConnector.vala \ - plugins/shotwell-publishing-extras/RajcePublishing.vala \ - plugins/shotwell-publishing-extras/shotwell-publishing-extras.vala \ - plugins/shotwell-publishing-extras/YandexPublishing.vala \ - plugins/shotwell-plugin-common.vapi - -nodist_plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_SOURCES = \ - plugins/shotwell-publishing-extras/resource.c -MOSTLYCLEANFILES += plugins/shotwell-publishing-extras/resource.c - -plugins/shotwell-publishing-extras/resource.c: plugins/shotwell-publishing-extras/org.gnome.Shotwell.Publishing.Extras.gresource.xml - $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(abs_top_srcdir)/plugins/shotwell-publishing-extras --generate $< - - -plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_VALAFLAGS = \ - $(COMMON_VALAFLAGS) \ - @PUBLISHER_VALAFLAGS@ \ - --pkg gtk+-3.0 \ - --pkg libsoup-2.4 \ - --pkg gexiv2 \ - --pkg gee-0.8 \ - --pkg json-glib-1.0 \ - --pkg shotwell-plugin-dev-1.0 \ - --pkg libxml-2.0 \ - --pkg webkit2gtk-4.0 \ - --vapidir $(abs_top_srcdir)/plugins - -plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_CFLAGS = \ - -DPLUGIN_RESOURCE_PATH='"/org/gnome/Shotwell/Publishing/Extras"' \ - $(PLUGIN_CFLAGS) \ - $(COMMON_CFLAGS) \ - -I $(abs_top_srcdir)/plugins - -plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_LDFLAGS = \ - $(SHOTWELL_PLUGIN_LDFLAGS) - -plugins_shotwell_publishing_extras_shotwell_publishing_extras_la_LIBADD = \ - $(PUBLISHING_LIBS) \ - $(top_builddir)/plugins/common/libshotwell-plugin-common.la diff --git a/publish.am b/publish.am deleted file mode 100644 index e98d533..0000000 --- a/publish.am +++ /dev/null @@ -1,78 +0,0 @@ -plugin_LTLIBRARIES += plugins/shotwell-publishing/shotwell-publishing.la - -dist_noinst_DATA += \ - plugins/shotwell-publishing/facebook.png \ - plugins/shotwell-publishing/flickr.png \ - plugins/shotwell-publishing/tumblr.png \ - plugins/shotwell-publishing/picasa.png \ - plugins/shotwell-publishing/piwigo.png \ - plugins/shotwell-publishing/youtube.png \ - plugins/shotwell-publishing/facebook_publishing_options_pane.ui \ - plugins/shotwell-publishing/flickr_publishing_options_pane.ui \ - plugins/shotwell-publishing/picasa_publishing_options_pane.ui \ - plugins/shotwell-publishing/piwigo_authentication_pane.ui \ - plugins/shotwell-publishing/piwigo_publishing_options_pane.ui \ - plugins/shotwell-publishing/piwigo_ssl_failure_pane.ui \ - plugins/shotwell-publishing/tumblr_publishing_options_pane.ui \ - plugins/shotwell-publishing/youtube_publishing_options_pane.ui \ - plugins/shotwell-publishing/org.gnome.Shotwell.Publishing.gresource.xml - -plugins_shotwell_publishing_shotwell_publishing_la_SOURCES = \ - plugins/shotwell-publishing/shotwell-publishing.vala \ - plugins/shotwell-publishing/FacebookPublishing.vala \ - plugins/shotwell-publishing/PicasaPublishing.vala \ - plugins/shotwell-publishing/FlickrPublishing.vala \ - plugins/shotwell-publishing/TumblrPublishing.vala \ - plugins/shotwell-publishing/YouTubePublishing.vala \ - plugins/shotwell-publishing/PiwigoPublishing.vala \ - plugins/shotwell-plugin-common.vapi \ - plugins/authenticator/shotwell-authenticator.vapi \ - vapi/libgdata.vapi - -nodist_plugins_shotwell_publishing_shotwell_publishing_la_SOURCES = \ - plugins/shotwell-publishing/resource.c -MOSTLYCLEANFILES += plugins/shotwell-publishing/resource.c - -PUBLISHING_RESOURCE_FILE := $(abs_top_srcdir)/plugins/shotwell-publishing/org.gnome.Shotwell.Publishing.gresource.xml - -PUBLISHING_RESOURCE_DEPS = $(shell $(GLIB_COMPILE_RESOURCES) \ - --sourcedir=$(abs_top_srcdir)/plugins/shotwell-publishing \ - --generate-dependencies $(PUBLISHING_RESOURCE_FILE)) - -plugins/shotwell-publishing/resource.c: $(PUBLISHING_RESOURCE_DEPS) $(PUBLISHING_RESOURCE_FILE) - $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) \ - --target=$@ \ - --sourcedir=$(abs_top_srcdir)/plugins/shotwell-publishing \ - --generate $(PUBLISHING_RESOURCE_FILE) - -plugins_shotwell_publishing_shotwell_publishing_la_VALAFLAGS = \ - $(COMMON_VALAFLAGS) \ - @PUBLISHER_VALAFLAGS@ \ - --pkg gtk+-3.0 \ - --pkg libsoup-2.4 \ - --pkg gexiv2 \ - --pkg gee-0.8 \ - --pkg json-glib-1.0 \ - --pkg shotwell-plugin-dev-1.0 \ - --pkg libxml-2.0 \ - --pkg webkit2gtk-4.0 \ - --pkg gcr-3 \ - --pkg gcr-ui-3 \ - --vapidir $(abs_top_srcdir)/plugins - -plugins_shotwell_publishing_shotwell_publishing_la_CFLAGS = \ - -DPLUGIN_RESOURCE_PATH='"/org/gnome/Shotwell/Publishing"' \ - $(PLUGIN_CFLAGS) \ - $(COMMON_CFLAGS) \ - -DGCR_API_SUBJECT_TO_CHANGE \ - $(PUBLISHING_CFLAGS) \ - -I $(top_srcdir)/plugins \ - -I $(top_srcdir)/plugins/authenticator - -plugins_shotwell_publishing_shotwell_publishing_la_LDFLAGS = \ - $(SHOTWELL_PLUGIN_LDFLAGS) - -plugins_shotwell_publishing_shotwell_publishing_la_LIBADD = \ - $(PUBLISHING_LIBS) \ - $(top_builddir)/plugins/common/libshotwell-plugin-common.la \ - $(top_builddir)/plugins/authenticator/libshotwell-authenticator.la diff --git a/samples/simple-plugin/README b/samples/simple-plugin/README new file mode 100644 index 0000000..090389e --- /dev/null +++ b/samples/simple-plugin/README @@ -0,0 +1,27 @@ + + simple-plugin + ------------- + + This sample plugin implements the barebones for a SPIT module that can be + loaded by Shotwell at startupp. However, because it implements no + Spit.Pluggables, is does not actually extend Shotwell's functionality. + + Note that the Shotwell plugin developer headers must be installed prior + to building simple-plugin. This can be done from the source code like so: + + $ ./configure --install-headers + $ make + $ make install + + You probably need to be root prior to running "make install" ("sudo make + install" or some variant). + + NOTE: simple-plugin's Makefile is *not* designed to install the plugin in + a system directory. Rather, it installs the plugin in the user's plugin + directory (in ~/.gnome2/shotwell/plugins). To build and install + simple-plugin: + + $ make + $ make install + + Copyright 2016 Software Freedom Conservancy Inc. diff --git a/samples/simple-plugin/simple-plugin.vala b/samples/simple-plugin/simple-plugin.vala new file mode 100644 index 0000000..8c57496 --- /dev/null +++ b/samples/simple-plugin/simple-plugin.vala @@ -0,0 +1,49 @@ +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + */ + +extern const string _VERSION; + +// +// Each .so has a Spit.Module that describes the module and offers zero or more Spit.Pluggables +// to Shotwell to extend its functionality, +// + +private class SimplePluginModule : Object, Spit.Module { + public unowned string get_module_name() { + return "Simple Plugin Sample"; + } + + public unowned string get_version() { + return _VERSION; + } + + // Every module needs to have a unique ID. + public unowned string get_id() { + return "org.yorba.shotwell.samples.simple-plugin"; + } + + public unowned Spit.Pluggable[]? get_pluggables() { + return null; + } +} + +// +// spit_entry_point() is required for all SPIT modules. +// + +public Spit.Module? spit_entry_point(Spit.EntryPointParams *params) { + // Spit.negotiate_interfaces is a simple way to deal with the parameters from the host + params->module_spit_interface = Spit.negotiate_interfaces(params->host_min_spit_interface, + params->host_max_spit_interface, Spit.CURRENT_INTERFACE); + + return (params->module_spit_interface != Spit.UNSUPPORTED_INTERFACE) + ? new SimplePluginModule() : null; +} + +// This is here to keep valac happy. +private void dummy_main() { +} + diff --git a/shotwell-plugin-dev-1.0.m4 b/shotwell-plugin-dev-1.0.m4 new file mode 100644 index 0000000..1cbf175 --- /dev/null +++ b/shotwell-plugin-dev-1.0.m4 @@ -0,0 +1,11 @@ +prefix=_PREFIX_ +exec_prefix=${prefix} +libdir=${exec_prefix}/_LIB_ +includedir=${prefix}/include + +Name: Shotwell Plugin Development +Description: Headers for building Shotwell plugins +Requires: _REQUIREMENTS_ +Version: _VERSION_ +Cflags: -I${includedir}/shotwell + diff --git a/shotwell.am b/shotwell.am deleted file mode 100644 index ec6cf0d..0000000 --- a/shotwell.am +++ /dev/null @@ -1,244 +0,0 @@ -bin_PROGRAMS = shotwell -shotwell_CFLAGS = \ - $(SHOTWELL_CFLAGS) \ - $(UNITY_CFLAGS) \ - $(COMMON_CFLAGS) \ - -I$(top_builddir)/plugins \ - -I$(abs_top_srcdir)/plugins \ - -I$(abs_top_srcdir)/src - -I$(abs_top_builddir)/src - -shotwell_LDADD = \ - src/plugins/libplugin.la \ - src/libgraphics-processor.la \ - $(SHOTWELL_LIBS) \ - $(UNITY_LIBS) - -shotwell_VALAFLAGS = $(COMMON_VALAFLAGS) \ - --pkg gio-2.0 --pkg gtk+-3.0 --pkg gee-0.8 \ - --pkg gio-unix-2.0 --pkg sqlite3 --pkg gmodule-2.0 \ - --vapidir $(abs_top_srcdir)/vapi \ - --pkg libgphoto2 --pkg posix --pkg libraw --pkg gexiv2 \ - --pkg libexif --pkg gudev-1.0 --pkg gstreamer-1.0 \ - --pkg gstreamer-pbutils-1.0 --pkg misc \ - --gresources $(abs_top_srcdir)/org.gnome.Shotwell.gresource.xml \ - $(UNITY_VALAFLAGS) \ - $(COMMON_VALAFLAGS_POST) - -dist_noinst_DATA += org.gnome.Shotwell.gresource.xml - -nodist_shotwell_SOURCES = \ - resource.c -MOSTLYCLEANFILES += resource.c - -shotwell_resource_deps := $(shell $(GLIB_COMPILE_RESOURCES) \ - --sourcedir=$(abs_top_srcdir) \ - --generate-dependencies $(abs_top_srcdir)/org.gnome.Shotwell.gresource.xml) - -resource.c: org.gnome.Shotwell.gresource.xml $(shotwell_resource_deps) - $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ \ - --sourcedir=$(abs_top_srcdir) \ - --generate $(abs_top_srcdir)/org.gnome.Shotwell.gresource.xml - -shotwell_SOURCES = \ - src/unit/Unit.vala \ - src/util/Util.vala \ - src/util/file.vala \ - src/util/image.vala \ - src/util/misc.vala \ - src/util/string.vala \ - src/util/system.vala \ - src/util/ui.vala \ - src/threads/Threads.vala \ - src/threads/Workers.vala \ - src/threads/BackgroundJob.vala \ - src/threads/Semaphore.vala \ - src/db/Db.vala \ - src/db/DatabaseTable.vala \ - src/db/PhotoTable.vala \ - src/db/EventTable.vala \ - src/db/TagTable.vala \ - src/db/TombstoneTable.vala \ - src/db/VideoTable.vala \ - src/db/VersionTable.vala \ - src/db/SavedSearchDBTable.vala \ - src/dialogs/Preferences.vala \ - src/dialogs/EntryMultiCompletion.vala \ - src/dialogs/ExportDialog.vala \ - src/dialogs/TextEntry.vala \ - src/dialogs/WelcomeDialog.vala \ - src/dialogs/MultiTextEntryDialog.vala \ - src/dialogs/AdjustDateTimeDialog.vala \ - src/dialogs/SetBackground.vala \ - src/dialogs/ProgressDialog.vala \ - src/dialogs/SetBackgroundSlideshow.vala \ - src/editing_tools/EditingTools.vala \ - src/editing_tools/RGBHistogramManipulator.vala \ - src/editing_tools/StraightenTool.vala \ - src/slideshow/Slideshow.vala \ - src/slideshow/TransitionEffects.vala \ - src/photos/Photos.vala \ - src/photos/PhotoFileAdapter.vala \ - src/photos/PhotoFileFormat.vala \ - src/photos/PhotoFileSniffer.vala \ - src/photos/PhotoMetadata.vala \ - src/photos/GRaw.vala \ - src/photos/GdkSupport.vala \ - src/photos/JfifSupport.vala \ - src/photos/BmpSupport.vala \ - src/photos/RawSupport.vala \ - src/photos/PngSupport.vala \ - src/photos/TiffSupport.vala \ - src/plugins/Plugins.vala \ - src/plugins/StandardHostInterface.vala \ - src/plugins/ManifestWidget.vala \ - src/publishing/Publishing.vala \ - src/publishing/PublishingUI.vala \ - src/publishing/PublishingPluginHost.vala \ - src/publishing/APIGlue.vala \ - src/library/Library.vala \ - src/library/LibraryWindow.vala \ - src/library/LibraryBranch.vala \ - src/library/TrashSidebarEntry.vala \ - src/library/OfflineSidebarEntry.vala \ - src/library/FlaggedSidebarEntry.vala \ - src/library/LastImportSidebarEntry.vala \ - src/library/ImportQueueSidebarEntry.vala \ - src/library/FlaggedPage.vala \ - src/library/ImportQueuePage.vala \ - src/library/LastImportPage.vala \ - src/library/OfflinePage.vala \ - src/library/TrashPage.vala \ - src/direct/Direct.vala \ - src/direct/DirectWindow.vala \ - src/direct/DirectPhoto.vala \ - src/direct/DirectPhotoPage.vala \ - src/direct/DirectView.vala \ - src/core/Core.vala \ - src/core/DataCollection.vala \ - src/core/DataSet.vala \ - src/core/util.vala \ - src/core/SourceCollection.vala \ - src/core/SourceHoldingTank.vala \ - src/core/DatabaseSourceCollection.vala \ - src/core/ContainerSourceCollection.vala \ - src/core/ViewCollection.vala \ - src/core/DataObject.vala \ - src/core/Alteration.vala \ - src/core/DataSource.vala \ - src/core/DataSourceTypes.vala \ - src/core/DataView.vala \ - src/core/DataViewTypes.vala \ - src/core/Tracker.vala \ - src/core/SourceInterfaces.vala \ - src/sidebar/Sidebar.vala \ - src/sidebar/Branch.vala \ - src/sidebar/Entry.vala \ - src/sidebar/Tree.vala \ - src/sidebar/common.vala \ - src/events/Events.vala \ - src/events/EventsBranch.vala \ - src/events/EventsDirectoryPage.vala \ - src/events/EventPage.vala \ - src/events/EventDirectoryItem.vala \ - src/tags/Tags.vala \ - src/tags/TagsBranch.vala \ - src/tags/TagPage.vala \ - src/tags/HierarchicalTagIndex.vala \ - src/tags/HierarchicalTagUtilities.vala \ - src/camera/Camera.vala \ - src/camera/CameraBranch.vala \ - src/camera/CameraTable.vala \ - src/camera/GPhoto.vala \ - src/camera/ImportPage.vala \ - src/searches/Searches.vala \ - src/searches/SearchesBranch.vala \ - src/searches/SearchBoolean.vala \ - src/searches/SavedSearchPage.vala \ - src/searches/SavedSearchDialog.vala \ - src/config/Config.vala \ - src/config/ConfigurationInterfaces.vala \ - src/config/GSettingsEngine.vala \ - src/data_imports/DataImports.vala \ - src/data_imports/DataImportsPluginHost.vala \ - src/data_imports/DataImportsUI.vala \ - src/data_imports/DataImportJob.vala \ - src/data_imports/DataImportSource.vala \ - src/folders/Folders.vala \ - src/folders/FoldersBranch.vala \ - src/folders/FoldersPage.vala \ - src/main.vala \ - src/AppWindow.vala \ - src/CollectionPage.vala \ - src/NaturalCollate.vala \ - src/Thumbnail.vala \ - src/ThumbnailCache.vala \ - src/CheckerboardLayout.vala \ - src/PhotoPage.vala \ - src/Page.vala \ - src/SortedList.vala \ - src/Dimensions.vala \ - src/Box.vala \ - src/Photo.vala \ - src/Orientation.vala \ - src/BatchImport.vala \ - src/Dialogs.vala \ - src/Resources.vala \ - src/Debug.vala \ - src/Properties.vala \ - src/Event.vala \ - src/International.vala \ - src/AppDirs.vala \ - src/PixbufCache.vala \ - src/CommandManager.vala \ - src/Commands.vala \ - src/SlideshowPage.vala \ - src/LibraryFiles.vala \ - src/Printing.vala \ - src/Tag.vala \ - src/Screensaver.vala \ - src/Exporter.vala \ - src/DirectoryMonitor.vala \ - src/LibraryMonitor.vala \ - src/VideoSupport.vala \ - src/Tombstone.vala \ - src/MetadataWriter.vala \ - src/Application.vala \ - src/TimedQueue.vala \ - src/MediaPage.vala \ - src/MediaDataRepresentation.vala \ - src/DesktopIntegration.vala \ - src/MediaInterfaces.vala \ - src/MediaMetadata.vala \ - src/VideoMetadata.vala \ - src/MediaMonitor.vala \ - src/PhotoMonitor.vala \ - src/VideoMonitor.vala \ - src/SearchFilter.vala \ - src/MediaViewTracker.vala \ - src/UnityProgressBar.vala \ - src/Upgrades.vala \ - src/.unitize/_UnitInternals.vala \ - src/.unitize/_UtilInternals.vala \ - src/.unitize/_ThreadsInternals.vala \ - src/.unitize/_DbInternals.vala \ - src/.unitize/_EditingToolsInternals.vala \ - src/.unitize/_PluginsInternals.vala \ - src/.unitize/_SlideshowInternals.vala \ - src/.unitize/_PhotosInternals.vala \ - src/.unitize/_PublishingInternals.vala \ - src/.unitize/_LibraryInternals.vala \ - src/.unitize/_DirectInternals.vala \ - src/.unitize/_CoreInternals.vala \ - src/.unitize/_SidebarInternals.vala \ - src/.unitize/_EventsInternals.vala \ - src/.unitize/_TagsInternals.vala \ - src/.unitize/_CameraInternals.vala \ - src/.unitize/_SearchesInternals.vala \ - src/.unitize/_ConfigInternals.vala \ - src/.unitize/_DataImportsInternals.vala \ - src/.unitize/_FoldersInternals.vala \ - src/.unitize/_Library_unitize_entry.vala \ - src/.unitize/_Direct_unitize_entry.vala \ - plugins/shotwell-plugin-dev-1.0.vapi \ - src/shotwell-graphics-processor.vapi diff --git a/shotwell.doap b/shotwell.doap new file mode 100644 index 0000000..c95847b --- /dev/null +++ b/shotwell.doap @@ -0,0 +1,29 @@ + + + + shotwell + Digital photo organizer + Shotwell is a digital photo manager designed for the GNOME desktop + environment. It allows you to import photos from disk or camera, + organize them by keywords and events, view them in full-window or fullscreen + mode, and share them with others via social networking and more. + + + + + + Vala + + + + Jens Georg + + jensgeorg + + + + diff --git a/shotwell_vala.stamp b/shotwell_vala.stamp deleted file mode 100644 index 859afb1..0000000 --- a/shotwell_vala.stamp +++ /dev/null @@ -1 +0,0 @@ -stamp diff --git a/src/.unitize/_CameraInternals.c b/src/.unitize/_CameraInternals.c deleted file mode 100644 index e3fa04d..0000000 --- a/src/.unitize/_CameraInternals.c +++ /dev/null @@ -1,120 +0,0 @@ -/* _CameraInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _CameraInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint camera__unit_init_count; -gint camera__unit_init_count = 0; - -void camera_init_entry (GError** error); -void unit_init_entry (GError** error); -void sidebar_init_entry (GError** error); -void camera_init (GError** error); -void camera_terminate_entry (void); -void camera_terminate (void); -void unit_terminate_entry (void); -void sidebar_terminate_entry (void); - - -void -camera_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - _tmp0_ = camera__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - camera__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - return; -#line 45 "_CameraInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - return; -#line 55 "_CameraInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - sidebar_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - return; -#line 65 "_CameraInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - camera_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - return; -#line 75 "_CameraInternals.c" - } -} - - -void -camera_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - _tmp1_ = camera__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - _tmp0_ = TRUE; -#line 91 "_CameraInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - _tmp2_ = camera__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - camera__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - _tmp3_ = camera__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 103 "_CameraInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - return; -#line 109 "_CameraInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - camera_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - unit_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_CameraInternals.vala" - sidebar_terminate_entry (); -#line 117 "_CameraInternals.c" -} - - - diff --git a/src/.unitize/_ConfigInternals.c b/src/.unitize/_ConfigInternals.c deleted file mode 100644 index a9c0493..0000000 --- a/src/.unitize/_ConfigInternals.c +++ /dev/null @@ -1,106 +0,0 @@ -/* _ConfigInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _ConfigInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint config__unit_init_count; -gint config__unit_init_count = 0; - -void config_init_entry (GError** error); -void unit_init_entry (GError** error); -void config_init (GError** error); -void config_terminate_entry (void); -void config_terminate (void); -void unit_terminate_entry (void); - - -void -config_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - _tmp0_ = config__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - config__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - return; -#line 43 "_ConfigInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - return; -#line 53 "_ConfigInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - config_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - return; -#line 63 "_ConfigInternals.c" - } -} - - -void -config_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - _tmp1_ = config__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - _tmp0_ = TRUE; -#line 79 "_ConfigInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - _tmp2_ = config__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - config__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - _tmp3_ = config__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 91 "_ConfigInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - return; -#line 97 "_ConfigInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - config_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_ConfigInternals.vala" - unit_terminate_entry (); -#line 103 "_ConfigInternals.c" -} - - - diff --git a/src/.unitize/_CoreInternals.c b/src/.unitize/_CoreInternals.c deleted file mode 100644 index c53d97d..0000000 --- a/src/.unitize/_CoreInternals.c +++ /dev/null @@ -1,106 +0,0 @@ -/* _CoreInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _CoreInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint core__unit_init_count; -gint core__unit_init_count = 0; - -void core_init_entry (GError** error); -void unit_init_entry (GError** error); -void core_init (GError** error); -void core_terminate_entry (void); -void core_terminate (void); -void unit_terminate_entry (void); - - -void -core_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - _tmp0_ = core__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - core__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - return; -#line 43 "_CoreInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - return; -#line 53 "_CoreInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - core_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - return; -#line 63 "_CoreInternals.c" - } -} - - -void -core_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - _tmp1_ = core__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - _tmp0_ = TRUE; -#line 79 "_CoreInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - _tmp2_ = core__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - core__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - _tmp3_ = core__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 91 "_CoreInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - return; -#line 97 "_CoreInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - core_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_CoreInternals.vala" - unit_terminate_entry (); -#line 103 "_CoreInternals.c" -} - - - diff --git a/src/.unitize/_DataImportsInternals.c b/src/.unitize/_DataImportsInternals.c deleted file mode 100644 index e99bde1..0000000 --- a/src/.unitize/_DataImportsInternals.c +++ /dev/null @@ -1,106 +0,0 @@ -/* _DataImportsInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _DataImportsInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint data_imports__unit_init_count; -gint data_imports__unit_init_count = 0; - -void data_imports_init_entry (GError** error); -void unit_init_entry (GError** error); -void data_imports_init (GError** error); -void data_imports_terminate_entry (void); -void data_imports_terminate (void); -void unit_terminate_entry (void); - - -void -data_imports_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - _tmp0_ = data_imports__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - data_imports__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - return; -#line 43 "_DataImportsInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - return; -#line 53 "_DataImportsInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - data_imports_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - return; -#line 63 "_DataImportsInternals.c" - } -} - - -void -data_imports_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - _tmp1_ = data_imports__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - _tmp0_ = TRUE; -#line 79 "_DataImportsInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - _tmp2_ = data_imports__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - data_imports__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - _tmp3_ = data_imports__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 91 "_DataImportsInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - return; -#line 97 "_DataImportsInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - data_imports_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_DataImportsInternals.vala" - unit_terminate_entry (); -#line 103 "_DataImportsInternals.c" -} - - - diff --git a/src/.unitize/_DbInternals.c b/src/.unitize/_DbInternals.c deleted file mode 100644 index c024dc5..0000000 --- a/src/.unitize/_DbInternals.c +++ /dev/null @@ -1,106 +0,0 @@ -/* _DbInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _DbInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint db__unit_init_count; -gint db__unit_init_count = 0; - -void db_init_entry (GError** error); -void unit_init_entry (GError** error); -void db_init (GError** error); -void db_terminate_entry (void); -void db_terminate (void); -void unit_terminate_entry (void); - - -void -db_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - _tmp0_ = db__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - db__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - return; -#line 43 "_DbInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - return; -#line 53 "_DbInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - db_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - return; -#line 63 "_DbInternals.c" - } -} - - -void -db_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - _tmp1_ = db__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - _tmp0_ = TRUE; -#line 79 "_DbInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - _tmp2_ = db__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - db__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - _tmp3_ = db__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 91 "_DbInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - return; -#line 97 "_DbInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - db_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_DbInternals.vala" - unit_terminate_entry (); -#line 103 "_DbInternals.c" -} - - - diff --git a/src/.unitize/_DirectInternals.c b/src/.unitize/_DirectInternals.c deleted file mode 100644 index e9b9492..0000000 --- a/src/.unitize/_DirectInternals.c +++ /dev/null @@ -1,176 +0,0 @@ -/* _DirectInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _DirectInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint direct__unit_init_count; -gint direct__unit_init_count = 0; - -void direct_init_entry (GError** error); -void unit_init_entry (GError** error); -void db_init_entry (GError** error); -void util_init_entry (GError** error); -void photos_init_entry (GError** error); -void slideshow_init_entry (GError** error); -void core_init_entry (GError** error); -void direct_init (GError** error); -void direct_terminate_entry (void); -void direct_terminate (void); -void unit_terminate_entry (void); -void db_terminate_entry (void); -void util_terminate_entry (void); -void photos_terminate_entry (void); -void slideshow_terminate_entry (void); -void core_terminate_entry (void); - - -void -direct_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - _tmp0_ = direct__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - direct__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - return; -#line 53 "_DirectInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - return; -#line 63 "_DirectInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - db_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - return; -#line 73 "_DirectInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - util_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - return; -#line 83 "_DirectInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - photos_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - return; -#line 93 "_DirectInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - slideshow_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - return; -#line 103 "_DirectInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - core_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - return; -#line 113 "_DirectInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - direct_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - return; -#line 123 "_DirectInternals.c" - } -} - - -void -direct_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - _tmp1_ = direct__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - _tmp0_ = TRUE; -#line 139 "_DirectInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - _tmp2_ = direct__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - direct__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - _tmp3_ = direct__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 151 "_DirectInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - return; -#line 157 "_DirectInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - direct_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - unit_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - db_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - util_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - photos_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - slideshow_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_DirectInternals.vala" - core_terminate_entry (); -#line 173 "_DirectInternals.c" -} - - - diff --git a/src/.unitize/_Direct_unitize_entry.c b/src/.unitize/_Direct_unitize_entry.c deleted file mode 100644 index 1e4c50c..0000000 --- a/src/.unitize/_Direct_unitize_entry.c +++ /dev/null @@ -1,51 +0,0 @@ -/* _Direct_unitize_entry.c generated by valac 0.40.4, the Vala compiler - * generated from _Direct_unitize_entry.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - - -void direct_app_init (GError** error); -void direct_init_entry (GError** error); -void direct_app_terminate (void); -void direct_terminate_entry (void); - - -void -direct_app_init (GError** error) -{ - GError * _inner_error_ = NULL; -#line 12 "/home/jens/Source/shotwell/src/.unitize/_Direct_unitize_entry.vala" - direct_init_entry (&_inner_error_); -#line 12 "/home/jens/Source/shotwell/src/.unitize/_Direct_unitize_entry.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12 "/home/jens/Source/shotwell/src/.unitize/_Direct_unitize_entry.vala" - g_propagate_error (error, _inner_error_); -#line 12 "/home/jens/Source/shotwell/src/.unitize/_Direct_unitize_entry.vala" - return; -#line 38 "_Direct_unitize_entry.c" - } -} - - -void -direct_app_terminate (void) -{ -#line 16 "/home/jens/Source/shotwell/src/.unitize/_Direct_unitize_entry.vala" - direct_terminate_entry (); -#line 48 "_Direct_unitize_entry.c" -} - - - diff --git a/src/.unitize/_EditingToolsInternals.c b/src/.unitize/_EditingToolsInternals.c deleted file mode 100644 index 0bce746..0000000 --- a/src/.unitize/_EditingToolsInternals.c +++ /dev/null @@ -1,106 +0,0 @@ -/* _EditingToolsInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _EditingToolsInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint editing_tools__unit_init_count; -gint editing_tools__unit_init_count = 0; - -void editing_tools_init_entry (GError** error); -void unit_init_entry (GError** error); -void editing_tools_init (GError** error); -void editing_tools_terminate_entry (void); -void editing_tools_terminate (void); -void unit_terminate_entry (void); - - -void -editing_tools_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - _tmp0_ = editing_tools__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - editing_tools__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - return; -#line 43 "_EditingToolsInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - return; -#line 53 "_EditingToolsInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - editing_tools_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - return; -#line 63 "_EditingToolsInternals.c" - } -} - - -void -editing_tools_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - _tmp1_ = editing_tools__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - _tmp0_ = TRUE; -#line 79 "_EditingToolsInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - _tmp2_ = editing_tools__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - editing_tools__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - _tmp3_ = editing_tools__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 91 "_EditingToolsInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - return; -#line 97 "_EditingToolsInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - editing_tools_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_EditingToolsInternals.vala" - unit_terminate_entry (); -#line 103 "_EditingToolsInternals.c" -} - - - diff --git a/src/.unitize/_EventsInternals.c b/src/.unitize/_EventsInternals.c deleted file mode 100644 index 4474675..0000000 --- a/src/.unitize/_EventsInternals.c +++ /dev/null @@ -1,120 +0,0 @@ -/* _EventsInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _EventsInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint events__unit_init_count; -gint events__unit_init_count = 0; - -void events_init_entry (GError** error); -void unit_init_entry (GError** error); -void sidebar_init_entry (GError** error); -void events_init (GError** error); -void events_terminate_entry (void); -void events_terminate (void); -void unit_terminate_entry (void); -void sidebar_terminate_entry (void); - - -void -events_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - _tmp0_ = events__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - events__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - return; -#line 45 "_EventsInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - return; -#line 55 "_EventsInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - sidebar_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - return; -#line 65 "_EventsInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - events_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - return; -#line 75 "_EventsInternals.c" - } -} - - -void -events_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - _tmp1_ = events__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - _tmp0_ = TRUE; -#line 91 "_EventsInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - _tmp2_ = events__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - events__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - _tmp3_ = events__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 103 "_EventsInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - return; -#line 109 "_EventsInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - events_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - unit_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_EventsInternals.vala" - sidebar_terminate_entry (); -#line 117 "_EventsInternals.c" -} - - - diff --git a/src/.unitize/_FoldersInternals.c b/src/.unitize/_FoldersInternals.c deleted file mode 100644 index 74a8652..0000000 --- a/src/.unitize/_FoldersInternals.c +++ /dev/null @@ -1,134 +0,0 @@ -/* _FoldersInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _FoldersInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint folders__unit_init_count; -gint folders__unit_init_count = 0; - -void folders_init_entry (GError** error); -void unit_init_entry (GError** error); -void sidebar_init_entry (GError** error); -void photos_init_entry (GError** error); -void folders_init (GError** error); -void folders_terminate_entry (void); -void folders_terminate (void); -void unit_terminate_entry (void); -void sidebar_terminate_entry (void); -void photos_terminate_entry (void); - - -void -folders_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - _tmp0_ = folders__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - folders__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - return; -#line 47 "_FoldersInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - return; -#line 57 "_FoldersInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - sidebar_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - return; -#line 67 "_FoldersInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - photos_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - return; -#line 77 "_FoldersInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - folders_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - return; -#line 87 "_FoldersInternals.c" - } -} - - -void -folders_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - _tmp1_ = folders__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - _tmp0_ = TRUE; -#line 103 "_FoldersInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - _tmp2_ = folders__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - folders__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - _tmp3_ = folders__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 115 "_FoldersInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - return; -#line 121 "_FoldersInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - folders_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - unit_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - sidebar_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_FoldersInternals.vala" - photos_terminate_entry (); -#line 131 "_FoldersInternals.c" -} - - - diff --git a/src/.unitize/_LibraryInternals.c b/src/.unitize/_LibraryInternals.c deleted file mode 100644 index 84c32c0..0000000 --- a/src/.unitize/_LibraryInternals.c +++ /dev/null @@ -1,316 +0,0 @@ -/* _LibraryInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _LibraryInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint library__unit_init_count; -gint library__unit_init_count = 0; - -void library_init_entry (GError** error); -void unit_init_entry (GError** error); -void util_init_entry (GError** error); -void threads_init_entry (GError** error); -void db_init_entry (GError** error); -void plugins_init_entry (GError** error); -void slideshow_init_entry (GError** error); -void photos_init_entry (GError** error); -void publishing_init_entry (GError** error); -void core_init_entry (GError** error); -void sidebar_init_entry (GError** error); -void events_init_entry (GError** error); -void tags_init_entry (GError** error); -void camera_init_entry (GError** error); -void searches_init_entry (GError** error); -void data_imports_init_entry (GError** error); -void folders_init_entry (GError** error); -void library_init (GError** error); -void library_terminate_entry (void); -void library_terminate (void); -void unit_terminate_entry (void); -void util_terminate_entry (void); -void threads_terminate_entry (void); -void db_terminate_entry (void); -void plugins_terminate_entry (void); -void slideshow_terminate_entry (void); -void photos_terminate_entry (void); -void publishing_terminate_entry (void); -void core_terminate_entry (void); -void sidebar_terminate_entry (void); -void events_terminate_entry (void); -void tags_terminate_entry (void); -void camera_terminate_entry (void); -void searches_terminate_entry (void); -void data_imports_terminate_entry (void); -void folders_terminate_entry (void); - - -void -library_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - _tmp0_ = library__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - library__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 73 "_LibraryInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 83 "_LibraryInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - util_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 93 "_LibraryInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - threads_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 103 "_LibraryInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - db_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 113 "_LibraryInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - plugins_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 123 "_LibraryInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - slideshow_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 133 "_LibraryInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - photos_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 143 "_LibraryInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - publishing_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 153 "_LibraryInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - core_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 163 "_LibraryInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - sidebar_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 173 "_LibraryInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - events_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 183 "_LibraryInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - tags_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 193 "_LibraryInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - camera_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 203 "_LibraryInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - searches_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 213 "_LibraryInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - data_imports_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 223 "_LibraryInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - folders_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 233 "_LibraryInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - library_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 243 "_LibraryInternals.c" - } -} - - -void -library_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - _tmp1_ = library__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - _tmp0_ = TRUE; -#line 259 "_LibraryInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - _tmp2_ = library__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - library__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - _tmp3_ = library__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 271 "_LibraryInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - return; -#line 277 "_LibraryInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - library_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - unit_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - util_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - threads_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - db_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - plugins_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - slideshow_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - photos_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - publishing_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - core_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - sidebar_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - events_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - tags_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - camera_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - searches_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - data_imports_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_LibraryInternals.vala" - folders_terminate_entry (); -#line 313 "_LibraryInternals.c" -} - - - diff --git a/src/.unitize/_Library_unitize_entry.c b/src/.unitize/_Library_unitize_entry.c deleted file mode 100644 index a0172d9..0000000 --- a/src/.unitize/_Library_unitize_entry.c +++ /dev/null @@ -1,51 +0,0 @@ -/* _Library_unitize_entry.c generated by valac 0.40.4, the Vala compiler - * generated from _Library_unitize_entry.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - - -void library_app_init (GError** error); -void library_init_entry (GError** error); -void library_app_terminate (void); -void library_terminate_entry (void); - - -void -library_app_init (GError** error) -{ - GError * _inner_error_ = NULL; -#line 12 "/home/jens/Source/shotwell/src/.unitize/_Library_unitize_entry.vala" - library_init_entry (&_inner_error_); -#line 12 "/home/jens/Source/shotwell/src/.unitize/_Library_unitize_entry.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12 "/home/jens/Source/shotwell/src/.unitize/_Library_unitize_entry.vala" - g_propagate_error (error, _inner_error_); -#line 12 "/home/jens/Source/shotwell/src/.unitize/_Library_unitize_entry.vala" - return; -#line 38 "_Library_unitize_entry.c" - } -} - - -void -library_app_terminate (void) -{ -#line 16 "/home/jens/Source/shotwell/src/.unitize/_Library_unitize_entry.vala" - library_terminate_entry (); -#line 48 "_Library_unitize_entry.c" -} - - - diff --git a/src/.unitize/_PhotosInternals.c b/src/.unitize/_PhotosInternals.c deleted file mode 100644 index 8a32cae..0000000 --- a/src/.unitize/_PhotosInternals.c +++ /dev/null @@ -1,106 +0,0 @@ -/* _PhotosInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _PhotosInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint photos__unit_init_count; -gint photos__unit_init_count = 0; - -void photos_init_entry (GError** error); -void unit_init_entry (GError** error); -void photos_init (GError** error); -void photos_terminate_entry (void); -void photos_terminate (void); -void unit_terminate_entry (void); - - -void -photos_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - _tmp0_ = photos__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - photos__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - return; -#line 43 "_PhotosInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - return; -#line 53 "_PhotosInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - photos_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - return; -#line 63 "_PhotosInternals.c" - } -} - - -void -photos_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - _tmp1_ = photos__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - _tmp0_ = TRUE; -#line 79 "_PhotosInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - _tmp2_ = photos__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - photos__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - _tmp3_ = photos__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 91 "_PhotosInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - return; -#line 97 "_PhotosInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - photos_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_PhotosInternals.vala" - unit_terminate_entry (); -#line 103 "_PhotosInternals.c" -} - - - diff --git a/src/.unitize/_PluginsInternals.c b/src/.unitize/_PluginsInternals.c deleted file mode 100644 index 350ca1d..0000000 --- a/src/.unitize/_PluginsInternals.c +++ /dev/null @@ -1,120 +0,0 @@ -/* _PluginsInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _PluginsInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint plugins__unit_init_count; -gint plugins__unit_init_count = 0; - -void plugins_init_entry (GError** error); -void unit_init_entry (GError** error); -void util_init_entry (GError** error); -void plugins_init (GError** error); -void plugins_terminate_entry (void); -void plugins_terminate (void); -void unit_terminate_entry (void); -void util_terminate_entry (void); - - -void -plugins_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - _tmp0_ = plugins__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - plugins__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - return; -#line 45 "_PluginsInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - return; -#line 55 "_PluginsInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - util_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - return; -#line 65 "_PluginsInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - plugins_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - return; -#line 75 "_PluginsInternals.c" - } -} - - -void -plugins_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - _tmp1_ = plugins__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - _tmp0_ = TRUE; -#line 91 "_PluginsInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - _tmp2_ = plugins__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - plugins__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - _tmp3_ = plugins__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 103 "_PluginsInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - return; -#line 109 "_PluginsInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - plugins_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - unit_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_PluginsInternals.vala" - util_terminate_entry (); -#line 117 "_PluginsInternals.c" -} - - - diff --git a/src/.unitize/_PublishingInternals.c b/src/.unitize/_PublishingInternals.c deleted file mode 100644 index df50c67..0000000 --- a/src/.unitize/_PublishingInternals.c +++ /dev/null @@ -1,120 +0,0 @@ -/* _PublishingInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _PublishingInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint publishing__unit_init_count; -gint publishing__unit_init_count = 0; - -void publishing_init_entry (GError** error); -void unit_init_entry (GError** error); -void plugins_init_entry (GError** error); -void publishing_init (GError** error); -void publishing_terminate_entry (void); -void publishing_terminate (void); -void unit_terminate_entry (void); -void plugins_terminate_entry (void); - - -void -publishing_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - _tmp0_ = publishing__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - publishing__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - return; -#line 45 "_PublishingInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - return; -#line 55 "_PublishingInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - plugins_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - return; -#line 65 "_PublishingInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - publishing_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - return; -#line 75 "_PublishingInternals.c" - } -} - - -void -publishing_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - _tmp1_ = publishing__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - _tmp0_ = TRUE; -#line 91 "_PublishingInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - _tmp2_ = publishing__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - publishing__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - _tmp3_ = publishing__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 103 "_PublishingInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - return; -#line 109 "_PublishingInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - publishing_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - unit_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_PublishingInternals.vala" - plugins_terminate_entry (); -#line 117 "_PublishingInternals.c" -} - - - diff --git a/src/.unitize/_SearchesInternals.c b/src/.unitize/_SearchesInternals.c deleted file mode 100644 index c630aff..0000000 --- a/src/.unitize/_SearchesInternals.c +++ /dev/null @@ -1,106 +0,0 @@ -/* _SearchesInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _SearchesInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint searches__unit_init_count; -gint searches__unit_init_count = 0; - -void searches_init_entry (GError** error); -void unit_init_entry (GError** error); -void searches_init (GError** error); -void searches_terminate_entry (void); -void searches_terminate (void); -void unit_terminate_entry (void); - - -void -searches_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - _tmp0_ = searches__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - searches__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - return; -#line 43 "_SearchesInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - return; -#line 53 "_SearchesInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - searches_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - return; -#line 63 "_SearchesInternals.c" - } -} - - -void -searches_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - _tmp1_ = searches__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - _tmp0_ = TRUE; -#line 79 "_SearchesInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - _tmp2_ = searches__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - searches__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - _tmp3_ = searches__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 91 "_SearchesInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - return; -#line 97 "_SearchesInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - searches_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_SearchesInternals.vala" - unit_terminate_entry (); -#line 103 "_SearchesInternals.c" -} - - - diff --git a/src/.unitize/_SidebarInternals.c b/src/.unitize/_SidebarInternals.c deleted file mode 100644 index 6ea5d4e..0000000 --- a/src/.unitize/_SidebarInternals.c +++ /dev/null @@ -1,106 +0,0 @@ -/* _SidebarInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _SidebarInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint sidebar__unit_init_count; -gint sidebar__unit_init_count = 0; - -void sidebar_init_entry (GError** error); -void unit_init_entry (GError** error); -void sidebar_init (GError** error); -void sidebar_terminate_entry (void); -void sidebar_terminate (void); -void unit_terminate_entry (void); - - -void -sidebar_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - _tmp0_ = sidebar__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - sidebar__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - return; -#line 43 "_SidebarInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - return; -#line 53 "_SidebarInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - sidebar_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - return; -#line 63 "_SidebarInternals.c" - } -} - - -void -sidebar_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - _tmp1_ = sidebar__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - _tmp0_ = TRUE; -#line 79 "_SidebarInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - _tmp2_ = sidebar__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - sidebar__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - _tmp3_ = sidebar__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 91 "_SidebarInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - return; -#line 97 "_SidebarInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - sidebar_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_SidebarInternals.vala" - unit_terminate_entry (); -#line 103 "_SidebarInternals.c" -} - - - diff --git a/src/.unitize/_SlideshowInternals.c b/src/.unitize/_SlideshowInternals.c deleted file mode 100644 index 1fc0686..0000000 --- a/src/.unitize/_SlideshowInternals.c +++ /dev/null @@ -1,120 +0,0 @@ -/* _SlideshowInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _SlideshowInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint slideshow__unit_init_count; -gint slideshow__unit_init_count = 0; - -void slideshow_init_entry (GError** error); -void unit_init_entry (GError** error); -void plugins_init_entry (GError** error); -void slideshow_init (GError** error); -void slideshow_terminate_entry (void); -void slideshow_terminate (void); -void unit_terminate_entry (void); -void plugins_terminate_entry (void); - - -void -slideshow_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - _tmp0_ = slideshow__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - slideshow__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - return; -#line 45 "_SlideshowInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - return; -#line 55 "_SlideshowInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - plugins_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - return; -#line 65 "_SlideshowInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - slideshow_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - return; -#line 75 "_SlideshowInternals.c" - } -} - - -void -slideshow_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - _tmp1_ = slideshow__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - _tmp0_ = TRUE; -#line 91 "_SlideshowInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - _tmp2_ = slideshow__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - slideshow__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - _tmp3_ = slideshow__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 103 "_SlideshowInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - return; -#line 109 "_SlideshowInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - slideshow_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - unit_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_SlideshowInternals.vala" - plugins_terminate_entry (); -#line 117 "_SlideshowInternals.c" -} - - - diff --git a/src/.unitize/_TagsInternals.c b/src/.unitize/_TagsInternals.c deleted file mode 100644 index 0383b23..0000000 --- a/src/.unitize/_TagsInternals.c +++ /dev/null @@ -1,120 +0,0 @@ -/* _TagsInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _TagsInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint tags__unit_init_count; -gint tags__unit_init_count = 0; - -void tags_init_entry (GError** error); -void unit_init_entry (GError** error); -void sidebar_init_entry (GError** error); -void tags_init (GError** error); -void tags_terminate_entry (void); -void tags_terminate (void); -void unit_terminate_entry (void); -void sidebar_terminate_entry (void); - - -void -tags_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - _tmp0_ = tags__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - tags__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - return; -#line 45 "_TagsInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - return; -#line 55 "_TagsInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - sidebar_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - return; -#line 65 "_TagsInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - tags_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - return; -#line 75 "_TagsInternals.c" - } -} - - -void -tags_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - _tmp1_ = tags__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - _tmp0_ = TRUE; -#line 91 "_TagsInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - _tmp2_ = tags__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - tags__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - _tmp3_ = tags__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 103 "_TagsInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - return; -#line 109 "_TagsInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - tags_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - unit_terminate_entry (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_TagsInternals.vala" - sidebar_terminate_entry (); -#line 117 "_TagsInternals.c" -} - - - diff --git a/src/.unitize/_ThreadsInternals.c b/src/.unitize/_ThreadsInternals.c deleted file mode 100644 index db67d9d..0000000 --- a/src/.unitize/_ThreadsInternals.c +++ /dev/null @@ -1,106 +0,0 @@ -/* _ThreadsInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _ThreadsInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint threads__unit_init_count; -gint threads__unit_init_count = 0; - -void threads_init_entry (GError** error); -void unit_init_entry (GError** error); -void threads_init (GError** error); -void threads_terminate_entry (void); -void threads_terminate (void); -void unit_terminate_entry (void); - - -void -threads_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - _tmp0_ = threads__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - threads__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - return; -#line 43 "_ThreadsInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - return; -#line 53 "_ThreadsInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - threads_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - return; -#line 63 "_ThreadsInternals.c" - } -} - - -void -threads_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - _tmp1_ = threads__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - _tmp0_ = TRUE; -#line 79 "_ThreadsInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - _tmp2_ = threads__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - threads__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - _tmp3_ = threads__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 91 "_ThreadsInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - return; -#line 97 "_ThreadsInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - threads_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_ThreadsInternals.vala" - unit_terminate_entry (); -#line 103 "_ThreadsInternals.c" -} - - - diff --git a/src/.unitize/_UnitInternals.c b/src/.unitize/_UnitInternals.c deleted file mode 100644 index 998da34..0000000 --- a/src/.unitize/_UnitInternals.c +++ /dev/null @@ -1,92 +0,0 @@ -/* _UnitInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _UnitInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint unit__unit_init_count; -gint unit__unit_init_count = 0; - -void unit_init_entry (GError** error); -void unit_init (GError** error); -void unit_terminate_entry (void); -void unit_terminate (void); - - -void -unit_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - _tmp0_ = unit__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - unit__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - return; -#line 41 "_UnitInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - unit_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - return; -#line 51 "_UnitInternals.c" - } -} - - -void -unit_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - _tmp1_ = unit__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - _tmp0_ = TRUE; -#line 67 "_UnitInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - _tmp2_ = unit__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - unit__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - _tmp3_ = unit__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 79 "_UnitInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - return; -#line 85 "_UnitInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_UnitInternals.vala" - unit_terminate (); -#line 89 "_UnitInternals.c" -} - - - diff --git a/src/.unitize/_UtilInternals.c b/src/.unitize/_UtilInternals.c deleted file mode 100644 index c52fbcd..0000000 --- a/src/.unitize/_UtilInternals.c +++ /dev/null @@ -1,106 +0,0 @@ -/* _UtilInternals.c generated by valac 0.40.4, the Vala compiler - * generated from _UtilInternals.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - * - * Auto-generated file. Do not modify! - */ - - -#include -#include - - - -extern gint util__unit_init_count; -gint util__unit_init_count = 0; - -void util_init_entry (GError** error); -void unit_init_entry (GError** error); -void util_init (GError** error); -void util_terminate_entry (void); -void util_terminate (void); -void unit_terminate_entry (void); - - -void -util_init_entry (GError** error) -{ - gint _tmp0_; - GError * _inner_error_ = NULL; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - _tmp0_ = util__unit_init_count; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - util__unit_init_count = _tmp0_ + 1; -#line 14 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - if (_tmp0_ != 0) { -#line 15 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - return; -#line 43 "_UtilInternals.c" - } -#line 17 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - unit_init_entry (&_inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - g_propagate_error (error, _inner_error_); -#line 17 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - return; -#line 53 "_UtilInternals.c" - } -#line 19 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - util_init (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - g_propagate_error (error, _inner_error_); -#line 19 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - return; -#line 63 "_UtilInternals.c" - } -} - - -void -util_terminate_entry (void) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - _tmp1_ = util__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - if (_tmp1_ == 0) { -#line 23 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - _tmp0_ = TRUE; -#line 79 "_UtilInternals.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - _tmp2_ = util__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - util__unit_init_count = _tmp2_ - 1; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - _tmp3_ = util__unit_init_count; -#line 23 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - _tmp0_ = _tmp3_ != 0; -#line 91 "_UtilInternals.c" - } -#line 23 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - if (_tmp0_) { -#line 24 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - return; -#line 97 "_UtilInternals.c" - } -#line 26 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - util_terminate (); -#line 28 "/home/jens/Source/shotwell/src/.unitize/_UtilInternals.vala" - unit_terminate_entry (); -#line 103 "_UtilInternals.c" -} - - - diff --git a/src/AppDirs.c b/src/AppDirs.c deleted file mode 100644 index ed0c0ca..0000000 --- a/src/AppDirs.c +++ /dev/null @@ -1,2647 +0,0 @@ -/* AppDirs.c generated by valac 0.40.4, the Vala compiler - * generated from AppDirs.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_APP_DIRS (app_dirs_get_type ()) -#define APP_DIRS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_DIRS, AppDirs)) -#define APP_DIRS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_DIRS, AppDirsClass)) -#define IS_APP_DIRS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_DIRS)) -#define IS_APP_DIRS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_DIRS)) -#define APP_DIRS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_DIRS, AppDirsClass)) - -typedef struct _AppDirs AppDirs; -typedef struct _AppDirsClass AppDirsClass; -typedef struct _AppDirsPrivate AppDirsPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL))) -typedef struct _ParamSpecAppDirs ParamSpecAppDirs; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _AppDirs { - GTypeInstance parent_instance; - volatile int ref_count; - AppDirsPrivate * priv; -}; - -struct _AppDirsClass { - GTypeClass parent_class; - void (*finalize) (AppDirs *self); -}; - -struct _ParamSpecAppDirs { - GParamSpec parent_instance; -}; - - -static gpointer app_dirs_parent_class = NULL; -static GFile* app_dirs_exec_dir; -static GFile* app_dirs_exec_dir = NULL; -static GFile* app_dirs_data_dir; -static GFile* app_dirs_data_dir = NULL; -static GFile* app_dirs_tmp_dir; -static GFile* app_dirs_tmp_dir = NULL; -static GFile* app_dirs_libexec_dir; -static GFile* app_dirs_libexec_dir = NULL; - -gpointer app_dirs_ref (gpointer instance); -void app_dirs_unref (gpointer instance); -GParamSpec* param_spec_app_dirs (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_app_dirs (GValue* value, - gpointer v_object); -void value_take_app_dirs (GValue* value, - gpointer v_object); -gpointer value_get_app_dirs (const GValue* value); -GType app_dirs_get_type (void) G_GNUC_CONST; -#define APP_DIRS_DEFAULT_DATA_DIR "shotwell" -void app_dirs_init (const gchar* arg0); -void app_dirs_terminate (void); -GFile* app_dirs_get_home_dir (void); -GFile* app_dirs_get_cache_dir (void); -void app_dirs_try_migrate_data (void); -GFile* app_dirs_get_user_plugins_dir (void); -GFile* app_dirs_get_data_dir (void); -void app_window_panic (const gchar* msg); -void app_dirs_set_data_dir (const gchar* user_data_dir); -gboolean is_string_empty (const gchar* s); -gchar* strip_pretty_path (const gchar* path); -void app_dirs_verify_data_dir (void); -void app_dirs_verify_cache_dir (void); -GFile* app_dirs_get_libexec_dir (void); -GFile* app_dirs_get_install_dir (void); -GFile* app_dirs_get_exec_dir (void); -#define RESOURCES_LIBEXECDIR _LIBEXECDIR -GFile* get_sys_install_dir (GFile* exec_dir); -GFile* app_dirs_get_import_dir (void); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gchar* configuration_facade_get_import_dir (ConfigurationFacade* self); -GFile* app_dirs_get_baked_import_dir (time_t tm); -gchar* configuration_facade_get_directory_pattern (ConfigurationFacade* self); -gchar* configuration_facade_get_directory_pattern_custom (ConfigurationFacade* self); -gboolean app_dirs_is_in_import_dir (GFile* file); -void app_dirs_set_import_dir (const gchar* path); -void configuration_facade_set_import_dir (ConfigurationFacade* self, - const gchar* import_dir); -GFile* app_dirs_get_temp_dir (void); -GFile* app_dirs_get_data_subdir (const gchar* name, - const gchar* subname); -void app_dirs_ensure_writable (GFile* dir); -GFile* app_dirs_get_cache_subdir (const gchar* name, - const gchar* subname); -GFile* app_dirs_get_lib_dir (void); -#define RESOURCES_LIB _LIB -GFile* app_dirs_get_system_plugins_dir (void); -GFile* app_dirs_get_log_file (void); -GFile* app_dirs_get_thumbnailer_bin (void); -GFile* app_dirs_get_settings_migrator_bin (void); -AppDirs* app_dirs_new (void); -AppDirs* app_dirs_construct (GType object_type); -static void app_dirs_finalize (AppDirs * obj); - - -void -app_dirs_init (const gchar* arg0) -{ - GFile* exec_file = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GFile* _tmp4_; - GFile* _tmp5_; - GFile* _tmp6_; -#line 16 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_return_if_fail (arg0 != NULL); -#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = g_find_program_in_path (arg0); -#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = realpath (_tmp1_, NULL); -#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = _tmp2_; -#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = g_file_new_for_path (_tmp3_); -#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = _tmp4_; -#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp3_); -#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp1_); -#line 17 "/home/jens/Source/shotwell/src/AppDirs.vala" - exec_file = _tmp5_; -#line 18 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = g_file_get_parent (exec_file); -#line 18 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (app_dirs_exec_dir); -#line 18 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_dirs_exec_dir = _tmp6_; -#line 16 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (exec_file); -#line 191 "AppDirs.c" -} - - -void -app_dirs_terminate (void) -{ -} - - -GFile* -app_dirs_get_home_dir (void) -{ - GFile* result = NULL; - const gchar* _tmp0_; - GFile* _tmp1_; -#line 27 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = g_get_home_dir (); -#line 27 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = g_file_new_for_path (_tmp0_); -#line 27 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp1_; -#line 27 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 215 "AppDirs.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 33 "/home/jens/Source/shotwell/src/AppDirs.vala" - return self ? g_object_ref (self) : NULL; -#line 224 "AppDirs.c" -} - - -GFile* -app_dirs_get_cache_dir (void) -{ - GFile* result = NULL; - GFile* _tmp0_ = NULL; - GFile* _tmp1_; -#line 31 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = app_dirs_data_dir; -#line 31 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (_tmp1_ == NULL) { -#line 238 "AppDirs.c" - const gchar* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - GFile* _tmp5_; -#line 32 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = g_get_user_cache_dir (); -#line 32 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = g_file_new_for_path (_tmp2_); -#line 32 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = _tmp3_; -#line 32 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = g_file_get_child (_tmp4_, APP_DIRS_DEFAULT_DATA_DIR); -#line 32 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp0_); -#line 32 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = _tmp5_; -#line 32 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp4_); -#line 257 "AppDirs.c" - } else { - GFile* _tmp6_; - GFile* _tmp7_; -#line 33 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = app_dirs_data_dir; -#line 33 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp7_ = _g_object_ref0 (_tmp6_); -#line 33 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp0_); -#line 33 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = _tmp7_; -#line 269 "AppDirs.c" - } -#line 31 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp0_; -#line 31 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 275 "AppDirs.c" -} - - -void -app_dirs_try_migrate_data (void) -{ - GFile* user_plugin_dir = NULL; - GFile* _tmp0_; - GFile* old_dir = NULL; - GFile* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - GFile* _tmp5_; - GFile* _tmp6_; - GFile* _tmp7_; - GFile* _tmp8_; - gboolean _tmp9_ = FALSE; - GFile* _tmp10_; - GFile* new_dir = NULL; - GFile* _tmp19_; - GFile* _tmp20_; - GFile* _tmp21_; - GFile* _tmp22_; - gboolean _tmp23_ = FALSE; - GFile* _tmp24_; - GFile* cache_dir = NULL; - GFile* _tmp26_; - mode_t mask = {0}; - GFile* _tmp27_; - GFile* _tmp36_; - GFile* _tmp37_; - GFile* _tmp38_; - gchar* _tmp39_; - gchar* _tmp40_; - GFile* _tmp41_; - GFile* _tmp42_; - GFile* _tmp43_; - gchar* _tmp44_; - gchar* _tmp45_; - GFile* _tmp46_; - GFile* _tmp47_; - GFile* _tmp48_; - gboolean _tmp49_; - GFile* _tmp62_; - gchar* _tmp63_; - gchar* _tmp64_; - GFile* _tmp65_; - gchar* _tmp66_; - gchar* _tmp67_; - GFile* _tmp68_; - gchar* _tmp69_; - gchar* _tmp70_; - mode_t _tmp71_; - GError * _inner_error_ = NULL; -#line 38 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = app_dirs_get_user_plugins_dir (); -#line 38 "/home/jens/Source/shotwell/src/AppDirs.vala" - user_plugin_dir = _tmp0_; -#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = app_dirs_get_home_dir (); -#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = _tmp1_; -#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = g_file_get_child (_tmp2_, ".gnome2"); -#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = _tmp3_; -#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = g_file_get_child (_tmp4_, "shotwell"); -#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = _tmp5_; -#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp7_ = g_file_get_child (_tmp6_, "plugins"); -#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp8_ = _tmp7_; -#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp6_); -#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp4_); -#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp2_); -#line 39 "/home/jens/Source/shotwell/src/AppDirs.vala" - old_dir = _tmp8_; -#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp10_ = old_dir; -#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (g_file_query_exists (_tmp10_, NULL)) { -#line 363 "AppDirs.c" - GFile* _tmp11_; - GFile* _tmp12_; - GFile* _tmp13_; -#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp11_ = user_plugin_dir; -#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp12_ = g_file_get_parent (_tmp11_); -#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp13_ = _tmp12_; -#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp9_ = !g_file_query_exists (_tmp13_, NULL); -#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp13_); -#line 377 "AppDirs.c" - } else { -#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp9_ = FALSE; -#line 381 "AppDirs.c" - } -#line 42 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (_tmp9_) { -#line 385 "AppDirs.c" - { - GFile* _tmp14_; - GFile* _tmp15_; - GFile* _tmp16_; -#line 44 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp14_ = user_plugin_dir; -#line 44 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp15_ = g_file_get_parent (_tmp14_); -#line 44 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp16_ = _tmp15_; -#line 44 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_file_make_directory_with_parents (_tmp16_, NULL, &_inner_error_); -#line 44 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp16_); -#line 44 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 402 "AppDirs.c" - goto __catch452_g_error; - } - } - goto __finally452; - __catch452_g_error: - { - GError* err = NULL; -#line 43 "/home/jens/Source/shotwell/src/AppDirs.vala" - err = _inner_error_; -#line 43 "/home/jens/Source/shotwell/src/AppDirs.vala" - _inner_error_ = NULL; -#line 43 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_error_free0 (err); -#line 416 "AppDirs.c" - } - __finally452: -#line 43 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 43 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (old_dir); -#line 43 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (user_plugin_dir); -#line 43 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 43 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_clear_error (&_inner_error_); -#line 43 "/home/jens/Source/shotwell/src/AppDirs.vala" - return; -#line 431 "AppDirs.c" - } - } - { - GFile* _tmp17_; - GFile* _tmp18_; -#line 49 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp17_ = old_dir; -#line 49 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp18_ = user_plugin_dir; -#line 49 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_file_move (_tmp17_, _tmp18_, G_FILE_COPY_NONE, NULL, NULL, NULL, &_inner_error_); -#line 49 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 445 "AppDirs.c" - goto __catch453_g_error; - } - } - goto __finally453; - __catch453_g_error: - { - GError* err = NULL; -#line 48 "/home/jens/Source/shotwell/src/AppDirs.vala" - err = _inner_error_; -#line 48 "/home/jens/Source/shotwell/src/AppDirs.vala" - _inner_error_ = NULL; -#line 48 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_error_free0 (err); -#line 459 "AppDirs.c" - } - __finally453: -#line 48 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 48 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (old_dir); -#line 48 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (user_plugin_dir); -#line 48 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 48 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_clear_error (&_inner_error_); -#line 48 "/home/jens/Source/shotwell/src/AppDirs.vala" - return; -#line 474 "AppDirs.c" - } -#line 53 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp19_ = app_dirs_get_data_dir (); -#line 53 "/home/jens/Source/shotwell/src/AppDirs.vala" - new_dir = _tmp19_; -#line 54 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp20_ = app_dirs_get_home_dir (); -#line 54 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp21_ = _tmp20_; -#line 54 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp22_ = g_file_get_child (_tmp21_, ".shotwell"); -#line 54 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (old_dir); -#line 54 "/home/jens/Source/shotwell/src/AppDirs.vala" - old_dir = _tmp22_; -#line 54 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp21_); -#line 55 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp24_ = new_dir; -#line 55 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (g_file_query_exists (_tmp24_, NULL)) { -#line 55 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp23_ = TRUE; -#line 498 "AppDirs.c" - } else { - GFile* _tmp25_; -#line 55 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp25_ = old_dir; -#line 55 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp23_ = !g_file_query_exists (_tmp25_, NULL); -#line 505 "AppDirs.c" - } -#line 55 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (_tmp23_) { -#line 56 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (new_dir); -#line 56 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (old_dir); -#line 56 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (user_plugin_dir); -#line 56 "/home/jens/Source/shotwell/src/AppDirs.vala" - return; -#line 517 "AppDirs.c" - } -#line 58 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp26_ = app_dirs_get_cache_dir (); -#line 58 "/home/jens/Source/shotwell/src/AppDirs.vala" - cache_dir = _tmp26_; -#line 59 "/home/jens/Source/shotwell/src/AppDirs.vala" - mask = umask ((mode_t) 0077); -#line 60 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp27_ = cache_dir; -#line 60 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (!g_file_query_exists (_tmp27_, NULL)) { -#line 529 "AppDirs.c" - { - GFile* _tmp28_; -#line 62 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp28_ = cache_dir; -#line 62 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_file_make_directory_with_parents (_tmp28_, NULL, &_inner_error_); -#line 62 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 538 "AppDirs.c" - goto __catch454_g_error; - } - } - goto __finally454; - __catch454_g_error: - { - GError* err = NULL; - GFile* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - GError* _tmp32_; - const gchar* _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; -#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala" - err = _inner_error_; -#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala" - _inner_error_ = NULL; -#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp29_ = cache_dir; -#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp30_ = g_file_get_path (_tmp29_); -#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp31_ = _tmp30_; -#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp32_ = err; -#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp33_ = _tmp32_->message; -#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp34_ = g_strdup_printf (_ ("Unable to create cache directory %s: %s"), _tmp31_, _tmp33_); -#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp35_ = _tmp34_; -#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_window_panic (_tmp35_); -#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp35_); -#line 64 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp31_); -#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_error_free0 (err); -#line 579 "AppDirs.c" - } - __finally454: -#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (cache_dir); -#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (new_dir); -#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (old_dir); -#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (user_plugin_dir); -#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_clear_error (&_inner_error_); -#line 61 "/home/jens/Source/shotwell/src/AppDirs.vala" - return; -#line 598 "AppDirs.c" - } - } -#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp36_ = old_dir; -#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp37_ = g_file_get_child (_tmp36_, "thumbs"); -#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp38_ = _tmp37_; -#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp39_ = g_file_get_path (_tmp38_); -#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp40_ = _tmp39_; -#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp41_ = cache_dir; -#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp42_ = g_file_get_child (_tmp41_, "thumbs"); -#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp43_ = _tmp42_; -#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp44_ = g_file_get_path (_tmp43_); -#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp45_ = _tmp44_; -#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_rename (_tmp40_, _tmp45_); -#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp45_); -#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp43_); -#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp40_); -#line 68 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp38_); -#line 70 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp46_ = new_dir; -#line 70 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp47_ = g_file_get_parent (_tmp46_); -#line 70 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp48_ = _tmp47_; -#line 70 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp49_ = !g_file_query_exists (_tmp48_, NULL); -#line 70 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp48_); -#line 70 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (_tmp49_) { -#line 643 "AppDirs.c" - { - GFile* _tmp50_; - GFile* _tmp51_; - GFile* _tmp52_; -#line 72 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp50_ = new_dir; -#line 72 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp51_ = g_file_get_parent (_tmp50_); -#line 72 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp52_ = _tmp51_; -#line 72 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_file_make_directory_with_parents (_tmp52_, NULL, &_inner_error_); -#line 72 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp52_); -#line 72 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 660 "AppDirs.c" - goto __catch455_g_error; - } - } - goto __finally455; - __catch455_g_error: - { - GError* err = NULL; - GFile* _tmp53_; - GFile* _tmp54_; - GFile* _tmp55_; - gchar* _tmp56_; - gchar* _tmp57_; - GError* _tmp58_; - const gchar* _tmp59_; - gchar* _tmp60_; - gchar* _tmp61_; -#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala" - err = _inner_error_; -#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala" - _inner_error_ = NULL; -#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp53_ = new_dir; -#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp54_ = g_file_get_parent (_tmp53_); -#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp55_ = _tmp54_; -#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp56_ = g_file_get_path (_tmp55_); -#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp57_ = _tmp56_; -#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp58_ = err; -#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp59_ = _tmp58_->message; -#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp60_ = g_strdup_printf (_ ("Unable to create data directory %s: %s"), _tmp57_, _tmp59_); -#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp61_ = _tmp60_; -#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_window_panic (_tmp61_); -#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp61_); -#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp57_); -#line 74 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp55_); -#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_error_free0 (err); -#line 709 "AppDirs.c" - } - __finally455: -#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (cache_dir); -#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (new_dir); -#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (old_dir); -#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (user_plugin_dir); -#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_clear_error (&_inner_error_); -#line 71 "/home/jens/Source/shotwell/src/AppDirs.vala" - return; -#line 728 "AppDirs.c" - } - } -#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp62_ = old_dir; -#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp63_ = g_file_get_path (_tmp62_); -#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp64_ = _tmp63_; -#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp65_ = new_dir; -#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp66_ = g_file_get_path (_tmp65_); -#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp67_ = _tmp66_; -#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_rename (_tmp64_, _tmp67_); -#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp67_); -#line 78 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp64_); -#line 79 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp68_ = new_dir; -#line 79 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp69_ = g_file_get_path (_tmp68_); -#line 79 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp70_ = _tmp69_; -#line 79 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_chmod (_tmp70_, 0700); -#line 79 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp70_); -#line 81 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp71_ = mask; -#line 81 "/home/jens/Source/shotwell/src/AppDirs.vala" - umask (_tmp71_); -#line 36 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (cache_dir); -#line 36 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (new_dir); -#line 36 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (old_dir); -#line 36 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (user_plugin_dir); -#line 771 "AppDirs.c" -} - - -void -app_dirs_set_data_dir (const gchar* user_data_dir) -{ - GFile* _tmp0_; - gchar* path = NULL; - gchar* _tmp1_; - const gchar* _tmp2_; - GFile* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; -#line 85 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_return_if_fail (user_data_dir != NULL); -#line 85 "/home/jens/Source/shotwell/src/AppDirs.vala" - _vala_return_if_fail (!is_string_empty (user_data_dir), "!is_string_empty(user_data_dir)"); -#line 86 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = app_dirs_data_dir; -#line 86 "/home/jens/Source/shotwell/src/AppDirs.vala" - _vala_assert (_tmp0_ == NULL, "data_dir == null"); -#line 89 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = strip_pretty_path (user_data_dir); -#line 89 "/home/jens/Source/shotwell/src/AppDirs.vala" - path = _tmp1_; -#line 90 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = path; -#line 90 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (!g_path_is_absolute (_tmp2_)) { -#line 801 "AppDirs.c" - GFile* _tmp3_; - GFile* _tmp4_; - const gchar* _tmp5_; - GFile* _tmp6_; -#line 91 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = app_dirs_get_home_dir (); -#line 91 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = _tmp3_; -#line 91 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = path; -#line 91 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = g_file_get_child (_tmp4_, _tmp5_); -#line 91 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (app_dirs_data_dir); -#line 91 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_dirs_data_dir = _tmp6_; -#line 91 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp4_); -#line 820 "AppDirs.c" - } else { - const gchar* _tmp7_; - GFile* _tmp8_; -#line 93 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp7_ = path; -#line 93 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp8_ = g_file_new_for_path (_tmp7_); -#line 93 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (app_dirs_data_dir); -#line 93 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_dirs_data_dir = _tmp8_; -#line 832 "AppDirs.c" - } -#line 95 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp9_ = app_dirs_data_dir; -#line 95 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp10_ = g_file_get_path (_tmp9_); -#line 95 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp11_ = _tmp10_; -#line 95 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_message ("AppDirs.vala:95: Setting private data directory to %s", _tmp11_); -#line 95 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp11_); -#line 85 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (path); -#line 846 "AppDirs.c" -} - - -void -app_dirs_verify_data_dir (void) -{ - GFile* data_dir = NULL; - GFile* _tmp0_; - GError * _inner_error_ = NULL; -#line 99 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = app_dirs_get_data_dir (); -#line 99 "/home/jens/Source/shotwell/src/AppDirs.vala" - data_dir = _tmp0_; -#line 860 "AppDirs.c" - { - GFile* _tmp1_; -#line 101 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = data_dir; -#line 101 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (!g_file_query_exists (_tmp1_, NULL)) { -#line 867 "AppDirs.c" - GFile* _tmp2_; -#line 102 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = data_dir; -#line 102 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_file_make_directory_with_parents (_tmp2_, NULL, &_inner_error_); -#line 102 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 875 "AppDirs.c" - goto __catch456_g_error; - } - } - } - goto __finally456; - __catch456_g_error: - { - GError* err = NULL; - GFile* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - GError* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 100 "/home/jens/Source/shotwell/src/AppDirs.vala" - err = _inner_error_; -#line 100 "/home/jens/Source/shotwell/src/AppDirs.vala" - _inner_error_ = NULL; -#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = data_dir; -#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = g_file_get_path (_tmp3_); -#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = _tmp4_; -#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = err; -#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp7_ = _tmp6_->message; -#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp8_ = g_strdup_printf (_ ("Unable to create data directory %s: %s"), _tmp5_, _tmp7_); -#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp9_ = _tmp8_; -#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_window_panic (_tmp9_); -#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp9_); -#line 104 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp5_); -#line 100 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_error_free0 (err); -#line 917 "AppDirs.c" - } - __finally456: -#line 100 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 100 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (data_dir); -#line 100 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 100 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_clear_error (&_inner_error_); -#line 100 "/home/jens/Source/shotwell/src/AppDirs.vala" - return; -#line 930 "AppDirs.c" - } -#line 98 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (data_dir); -#line 934 "AppDirs.c" -} - - -void -app_dirs_verify_cache_dir (void) -{ - GFile* cache_dir = NULL; - GFile* _tmp0_; - GError * _inner_error_ = NULL; -#line 110 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = app_dirs_get_cache_dir (); -#line 110 "/home/jens/Source/shotwell/src/AppDirs.vala" - cache_dir = _tmp0_; -#line 948 "AppDirs.c" - { - GFile* _tmp1_; -#line 112 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = cache_dir; -#line 112 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (!g_file_query_exists (_tmp1_, NULL)) { -#line 955 "AppDirs.c" - GFile* _tmp2_; -#line 113 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = cache_dir; -#line 113 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_file_make_directory_with_parents (_tmp2_, NULL, &_inner_error_); -#line 113 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 963 "AppDirs.c" - goto __catch457_g_error; - } - } - } - goto __finally457; - __catch457_g_error: - { - GError* err = NULL; - GFile* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - GError* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 111 "/home/jens/Source/shotwell/src/AppDirs.vala" - err = _inner_error_; -#line 111 "/home/jens/Source/shotwell/src/AppDirs.vala" - _inner_error_ = NULL; -#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = cache_dir; -#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = g_file_get_path (_tmp3_); -#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = _tmp4_; -#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = err; -#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp7_ = _tmp6_->message; -#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp8_ = g_strdup_printf (_ ("Unable to create cache directory %s: %s"), _tmp5_, _tmp7_); -#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp9_ = _tmp8_; -#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_window_panic (_tmp9_); -#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp9_); -#line 115 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp5_); -#line 111 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_error_free0 (err); -#line 1005 "AppDirs.c" - } - __finally457: -#line 111 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 111 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (cache_dir); -#line 111 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 111 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_clear_error (&_inner_error_); -#line 111 "/home/jens/Source/shotwell/src/AppDirs.vala" - return; -#line 1018 "AppDirs.c" - } -#line 109 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (cache_dir); -#line 1022 "AppDirs.c" -} - - -/** - * @brief Returns the build directory if not installed yet, or a path - * to where any helper applets we need will live if installed. - */ -GFile* -app_dirs_get_libexec_dir (void) -{ - GFile* result = NULL; - GFile* _tmp0_; - GFile* _tmp6_; - GFile* _tmp7_; -#line 125 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = app_dirs_libexec_dir; -#line 125 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (_tmp0_ == NULL) { -#line 1041 "AppDirs.c" - GFile* _tmp1_; - GFile* _tmp2_; - gboolean _tmp3_; -#line 126 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = app_dirs_get_install_dir (); -#line 126 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = _tmp1_; -#line 126 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = _tmp2_ == NULL; -#line 126 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp2_); -#line 126 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (_tmp3_) { -#line 1055 "AppDirs.c" - GFile* _tmp4_; -#line 128 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = app_dirs_get_exec_dir (); -#line 128 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (app_dirs_libexec_dir); -#line 128 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_dirs_libexec_dir = _tmp4_; -#line 1063 "AppDirs.c" - } else { - GFile* _tmp5_; -#line 130 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = g_file_new_for_path (RESOURCES_LIBEXECDIR); -#line 130 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (app_dirs_libexec_dir); -#line 130 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_dirs_libexec_dir = _tmp5_; -#line 1072 "AppDirs.c" - } - } -#line 134 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = app_dirs_libexec_dir; -#line 134 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp7_ = _g_object_ref0 (_tmp6_); -#line 134 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp7_; -#line 134 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 1083 "AppDirs.c" -} - - -GFile* -app_dirs_get_install_dir (void) -{ - GFile* result = NULL; - GFile* _tmp0_; - GFile* _tmp1_; -#line 139 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = app_dirs_exec_dir; -#line 139 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = get_sys_install_dir (_tmp0_); -#line 139 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp1_; -#line 139 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 1101 "AppDirs.c" -} - - -GFile* -app_dirs_get_data_dir (void) -{ - GFile* result = NULL; - GFile* _tmp0_ = NULL; - GFile* _tmp1_; -#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = app_dirs_data_dir; -#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (_tmp1_ == NULL) { -#line 1115 "AppDirs.c" - const gchar* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - GFile* _tmp5_; -#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = g_get_user_data_dir (); -#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = g_file_new_for_path (_tmp2_); -#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = _tmp3_; -#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = g_file_get_child (_tmp4_, APP_DIRS_DEFAULT_DATA_DIR); -#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp0_); -#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = _tmp5_; -#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp4_); -#line 1134 "AppDirs.c" - } else { - GFile* _tmp6_; - GFile* _tmp7_; -#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = app_dirs_data_dir; -#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp7_ = _g_object_ref0 (_tmp6_); -#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp0_); -#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = _tmp7_; -#line 1146 "AppDirs.c" - } -#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp0_; -#line 143 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 1152 "AppDirs.c" -} - - -GFile* -app_dirs_get_import_dir (void) -{ - GFile* result = NULL; - gchar* path = NULL; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; - const gchar* _tmp15_; - gchar* _tmp16_; - const gchar* _tmp17_; - GFile* _tmp20_; - GFile* _tmp21_; - GFile* _tmp22_; - GFile* _tmp23_; -#line 149 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = config_facade_get_instance (); -#line 149 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = _tmp0_; -#line 149 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = configuration_facade_get_import_dir (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 149 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = _tmp2_; -#line 149 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp1_); -#line 149 "/home/jens/Source/shotwell/src/AppDirs.vala" - path = _tmp3_; -#line 150 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = path; -#line 150 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (!is_string_empty (_tmp4_)) { -#line 1189 "AppDirs.c" - const gchar* _tmp5_; - gchar* _tmp6_; - const gchar* _tmp7_; - const gchar* _tmp13_; - GFile* _tmp14_; -#line 152 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = path; -#line 152 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = strip_pretty_path (_tmp5_); -#line 152 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (path); -#line 152 "/home/jens/Source/shotwell/src/AppDirs.vala" - path = _tmp6_; -#line 155 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp7_ = path; -#line 155 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (!g_path_is_absolute (_tmp7_)) { -#line 1207 "AppDirs.c" - GFile* _tmp8_; - GFile* _tmp9_; - const gchar* _tmp10_; - GFile* _tmp11_; - GFile* _tmp12_; -#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp8_ = app_dirs_get_home_dir (); -#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp9_ = _tmp8_; -#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp10_ = path; -#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp11_ = g_file_get_child (_tmp9_, _tmp10_); -#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp12_ = _tmp11_; -#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp9_); -#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp12_; -#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (path); -#line 156 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 1231 "AppDirs.c" - } -#line 159 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp13_ = path; -#line 159 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp14_ = g_file_new_for_path (_tmp13_); -#line 159 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp14_; -#line 159 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (path); -#line 159 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 1243 "AppDirs.c" - } -#line 163 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp15_ = g_get_user_special_dir (G_USER_DIRECTORY_PICTURES); -#line 163 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp16_ = g_strdup (_tmp15_); -#line 163 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (path); -#line 163 "/home/jens/Source/shotwell/src/AppDirs.vala" - path = _tmp16_; -#line 164 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp17_ = path; -#line 164 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (!is_string_empty (_tmp17_)) { -#line 1257 "AppDirs.c" - const gchar* _tmp18_; - GFile* _tmp19_; -#line 165 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp18_ = path; -#line 165 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp19_ = g_file_new_for_path (_tmp18_); -#line 165 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp19_; -#line 165 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (path); -#line 165 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 1270 "AppDirs.c" - } -#line 168 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp20_ = app_dirs_get_home_dir (); -#line 168 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp21_ = _tmp20_; -#line 168 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp22_ = g_file_get_child (_tmp21_, _ ("Pictures")); -#line 168 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp23_ = _tmp22_; -#line 168 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp21_); -#line 168 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp23_; -#line 168 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (path); -#line 168 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 1288 "AppDirs.c" -} - - -GFile* -app_dirs_get_baked_import_dir (time_t tm) -{ - GFile* result = NULL; - gchar* pattern = NULL; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; - const gchar* _tmp8_; - GDateTime* date = NULL; - GDateTime* _tmp10_; - GFile* _tmp11_; - GFile* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - const gchar* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - GFile* _tmp22_; - GFile* _tmp23_; -#line 173 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = config_facade_get_instance (); -#line 173 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = _tmp0_; -#line 173 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = configuration_facade_get_directory_pattern (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 173 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = _tmp2_; -#line 173 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp1_); -#line 173 "/home/jens/Source/shotwell/src/AppDirs.vala" - pattern = _tmp3_; -#line 174 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = pattern; -#line 174 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (is_string_empty (_tmp4_)) { -#line 1334 "AppDirs.c" - ConfigFacade* _tmp5_; - ConfigFacade* _tmp6_; - gchar* _tmp7_; -#line 175 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = config_facade_get_instance (); -#line 175 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = _tmp5_; -#line 175 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp7_ = configuration_facade_get_directory_pattern_custom (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 175 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (pattern); -#line 175 "/home/jens/Source/shotwell/src/AppDirs.vala" - pattern = _tmp7_; -#line 175 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp6_); -#line 1350 "AppDirs.c" - } -#line 176 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp8_ = pattern; -#line 176 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (is_string_empty (_tmp8_)) { -#line 1356 "AppDirs.c" - gchar* _tmp9_; -#line 177 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp9_ = g_strdup ("%Y" G_DIR_SEPARATOR_S "%m" G_DIR_SEPARATOR_S "%d"); -#line 177 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (pattern); -#line 177 "/home/jens/Source/shotwell/src/AppDirs.vala" - pattern = _tmp9_; -#line 1364 "AppDirs.c" - } -#line 179 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp10_ = g_date_time_new_from_unix_local ((gint64) tm); -#line 179 "/home/jens/Source/shotwell/src/AppDirs.vala" - date = _tmp10_; -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp11_ = app_dirs_get_import_dir (); -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp12_ = _tmp11_; -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp13_ = g_file_get_path (_tmp12_); -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp14_ = _tmp13_; -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp15_ = g_strconcat (_tmp14_, G_DIR_SEPARATOR_S, NULL); -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp16_ = _tmp15_; -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp17_ = pattern; -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp18_ = g_date_time_format (date, _tmp17_); -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp19_ = _tmp18_; -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp20_ = g_strconcat (_tmp16_, _tmp19_, NULL); -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp21_ = _tmp20_; -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp22_ = g_file_new_for_path (_tmp21_); -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp23_ = _tmp22_; -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp21_); -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp19_); -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp16_); -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp14_); -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp12_); -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp23_; -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_date_time_unref0 (date); -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (pattern); -#line 180 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 1414 "AppDirs.c" -} - - -gboolean -app_dirs_is_in_import_dir (GFile* file) -{ - gboolean result = FALSE; - GFile* import_dir = NULL; - GFile* _tmp0_; - gboolean _tmp1_ = FALSE; - GFile* _tmp2_; -#line 184 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 185 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = app_dirs_get_import_dir (); -#line 185 "/home/jens/Source/shotwell/src/AppDirs.vala" - import_dir = _tmp0_; -#line 187 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = import_dir; -#line 187 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (g_file_has_prefix (file, _tmp2_)) { -#line 187 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = TRUE; -#line 1438 "AppDirs.c" - } else { - GFile* _tmp3_; -#line 187 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = import_dir; -#line 187 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = g_file_equal (file, _tmp3_); -#line 1445 "AppDirs.c" - } -#line 187 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp1_; -#line 187 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (import_dir); -#line 187 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 1453 "AppDirs.c" -} - - -void -app_dirs_set_import_dir (const gchar* path) -{ - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 190 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_return_if_fail (path != NULL); -#line 191 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = config_facade_get_instance (); -#line 191 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = _tmp0_; -#line 191 "/home/jens/Source/shotwell/src/AppDirs.vala" - configuration_facade_set_import_dir (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), path); -#line 191 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp1_); -#line 1472 "AppDirs.c" -} - - -GFile* -app_dirs_get_exec_dir (void) -{ - GFile* result = NULL; - GFile* _tmp0_; - GFile* _tmp1_; -#line 195 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = app_dirs_exec_dir; -#line 195 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 195 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp1_; -#line 195 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 1490 "AppDirs.c" -} - - -GFile* -app_dirs_get_temp_dir (void) -{ - GFile* result = NULL; - GFile* _tmp0_; - GFile* _tmp15_; - GFile* _tmp16_; - GError * _inner_error_ = NULL; -#line 199 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = app_dirs_tmp_dir; -#line 199 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (_tmp0_ == NULL) { -#line 1506 "AppDirs.c" - const gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - GFile* _tmp5_; -#line 200 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = g_get_tmp_dir (); -#line 200 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = g_strconcat (_tmp1_, "/shotwell-XXXXXX", NULL); -#line 200 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = mkdtemp (_tmp2_); -#line 200 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = _tmp3_; -#line 200 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = g_file_new_for_path (_tmp4_); -#line 200 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (app_dirs_tmp_dir); -#line 200 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_dirs_tmp_dir = _tmp5_; -#line 200 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp4_); -#line 1528 "AppDirs.c" - { - GFile* _tmp6_; -#line 203 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = app_dirs_tmp_dir; -#line 203 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (!g_file_query_exists (_tmp6_, NULL)) { -#line 1535 "AppDirs.c" - GFile* _tmp7_; -#line 204 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp7_ = app_dirs_tmp_dir; -#line 204 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_file_make_directory_with_parents (_tmp7_, NULL, &_inner_error_); -#line 204 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1543 "AppDirs.c" - goto __catch458_g_error; - } - } - } - goto __finally458; - __catch458_g_error: - { - GError* err = NULL; - GFile* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - GError* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; -#line 202 "/home/jens/Source/shotwell/src/AppDirs.vala" - err = _inner_error_; -#line 202 "/home/jens/Source/shotwell/src/AppDirs.vala" - _inner_error_ = NULL; -#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp8_ = app_dirs_tmp_dir; -#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp9_ = g_file_get_path (_tmp8_); -#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp10_ = _tmp9_; -#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp11_ = err; -#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp12_ = _tmp11_->message; -#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp13_ = g_strdup_printf (_ ("Unable to create temporary directory %s: %s"), _tmp10_, _tmp12_); -#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp14_ = _tmp13_; -#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_window_panic (_tmp14_); -#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp14_); -#line 206 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp10_); -#line 202 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_error_free0 (err); -#line 1585 "AppDirs.c" - } - __finally458: -#line 202 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 202 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 202 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_clear_error (&_inner_error_); -#line 202 "/home/jens/Source/shotwell/src/AppDirs.vala" - return NULL; -#line 1596 "AppDirs.c" - } - } -#line 211 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp15_ = app_dirs_tmp_dir; -#line 211 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp16_ = _g_object_ref0 (_tmp15_); -#line 211 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp16_; -#line 211 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 1607 "AppDirs.c" -} - - -GFile* -app_dirs_get_data_subdir (const gchar* name, - const gchar* subname) -{ - GFile* result = NULL; - GFile* subdir = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - GError * _inner_error_ = NULL; -#line 214 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 215 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = app_dirs_get_data_dir (); -#line 215 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = _tmp0_; -#line 215 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = g_file_get_child (_tmp1_, name); -#line 215 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = _tmp2_; -#line 215 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp1_); -#line 215 "/home/jens/Source/shotwell/src/AppDirs.vala" - subdir = _tmp3_; -#line 216 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (subname != NULL) { -#line 1638 "AppDirs.c" - GFile* _tmp4_; - GFile* _tmp5_; -#line 217 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = subdir; -#line 217 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = g_file_get_child (_tmp4_, subname); -#line 217 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (subdir); -#line 217 "/home/jens/Source/shotwell/src/AppDirs.vala" - subdir = _tmp5_; -#line 1649 "AppDirs.c" - } - { - GFile* _tmp6_; -#line 220 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = subdir; -#line 220 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (!g_file_query_exists (_tmp6_, NULL)) { -#line 1657 "AppDirs.c" - GFile* _tmp7_; -#line 221 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp7_ = subdir; -#line 221 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_file_make_directory_with_parents (_tmp7_, NULL, &_inner_error_); -#line 221 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1665 "AppDirs.c" - goto __catch459_g_error; - } - } - } - goto __finally459; - __catch459_g_error: - { - GError* err = NULL; - GFile* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - GError* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; -#line 219 "/home/jens/Source/shotwell/src/AppDirs.vala" - err = _inner_error_; -#line 219 "/home/jens/Source/shotwell/src/AppDirs.vala" - _inner_error_ = NULL; -#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp8_ = subdir; -#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp9_ = g_file_get_path (_tmp8_); -#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp10_ = _tmp9_; -#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp11_ = err; -#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp12_ = _tmp11_->message; -#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp13_ = g_strdup_printf (_ ("Unable to create data subdirectory %s: %s"), _tmp10_, _tmp12_); -#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp14_ = _tmp13_; -#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_window_panic (_tmp14_); -#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp14_); -#line 223 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp10_); -#line 219 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_error_free0 (err); -#line 1707 "AppDirs.c" - } - __finally459: -#line 219 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 219 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (subdir); -#line 219 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 219 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_clear_error (&_inner_error_); -#line 219 "/home/jens/Source/shotwell/src/AppDirs.vala" - return NULL; -#line 1720 "AppDirs.c" - } -#line 227 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = subdir; -#line 227 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 1726 "AppDirs.c" -} - - -void -app_dirs_ensure_writable (GFile* dir) -{ - GError * _inner_error_ = NULL; -#line 230 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 231 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (g_file_query_exists (dir, NULL)) { -#line 1738 "AppDirs.c" - { - GFileInfo* info = NULL; - GFileInfo* _tmp0_; - guint32 mode = 0U; - GFileInfo* _tmp1_; - gboolean _tmp2_ = FALSE; - guint32 _tmp3_; -#line 233 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = g_file_query_info (dir, G_FILE_ATTRIBUTE_UNIX_MODE, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_); -#line 233 "/home/jens/Source/shotwell/src/AppDirs.vala" - info = _tmp0_; -#line 233 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1752 "AppDirs.c" - goto __catch460_g_error; - } -#line 234 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = info; -#line 234 "/home/jens/Source/shotwell/src/AppDirs.vala" - mode = g_file_info_get_attribute_uint32 (_tmp1_, G_FILE_ATTRIBUTE_UNIX_MODE) | 0700; -#line 235 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = mode; -#line 235 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = g_file_set_attribute_uint32 (dir, G_FILE_ATTRIBUTE_UNIX_MODE, _tmp3_, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_); -#line 235 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 235 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (info); -#line 1767 "AppDirs.c" - goto __catch460_g_error; - } -#line 235 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (!_tmp2_) { -#line 1772 "AppDirs.c" - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 236 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = g_file_get_path (dir); -#line 236 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = _tmp4_; -#line 236 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = g_strdup_printf (_ ("Could not make directory %s writable"), _tmp5_); -#line 236 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp7_ = _tmp6_; -#line 236 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_window_panic (_tmp7_); -#line 236 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp7_); -#line 236 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp5_); -#line 1791 "AppDirs.c" - } -#line 232 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (info); -#line 1795 "AppDirs.c" - } - goto __finally460; - __catch460_g_error: - { - GError* err = NULL; - gchar* _tmp8_; - gchar* _tmp9_; - GError* _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 232 "/home/jens/Source/shotwell/src/AppDirs.vala" - err = _inner_error_; -#line 232 "/home/jens/Source/shotwell/src/AppDirs.vala" - _inner_error_ = NULL; -#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp8_ = g_file_get_path (dir); -#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp9_ = _tmp8_; -#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp10_ = err; -#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp11_ = _tmp10_->message; -#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp12_ = g_strdup_printf (_ ("Could not make directory %s writable: %s"), _tmp9_, _tmp11_); -#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp13_ = _tmp12_; -#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_window_panic (_tmp13_); -#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp13_); -#line 239 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp9_); -#line 232 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_error_free0 (err); -#line 1831 "AppDirs.c" - } - __finally460: -#line 232 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 232 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 232 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_clear_error (&_inner_error_); -#line 232 "/home/jens/Source/shotwell/src/AppDirs.vala" - return; -#line 1842 "AppDirs.c" - } - } -} - - -GFile* -app_dirs_get_cache_subdir (const gchar* name, - const gchar* subname) -{ - GFile* result = NULL; - GFile* subdir = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - GFile* _tmp16_; - GError * _inner_error_ = NULL; -#line 244 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 245 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = app_dirs_get_cache_dir (); -#line 245 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = _tmp0_; -#line 245 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = g_file_get_child (_tmp1_, name); -#line 245 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = _tmp2_; -#line 245 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp1_); -#line 245 "/home/jens/Source/shotwell/src/AppDirs.vala" - subdir = _tmp3_; -#line 246 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = subdir; -#line 246 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_dirs_ensure_writable (_tmp4_); -#line 247 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (subname != NULL) { -#line 1881 "AppDirs.c" - GFile* _tmp5_; - GFile* _tmp6_; -#line 248 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = subdir; -#line 248 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = g_file_get_child (_tmp5_, subname); -#line 248 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (subdir); -#line 248 "/home/jens/Source/shotwell/src/AppDirs.vala" - subdir = _tmp6_; -#line 1892 "AppDirs.c" - } - { - GFile* _tmp7_; -#line 251 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp7_ = subdir; -#line 251 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (!g_file_query_exists (_tmp7_, NULL)) { -#line 1900 "AppDirs.c" - GFile* _tmp8_; -#line 252 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp8_ = subdir; -#line 252 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_file_make_directory_with_parents (_tmp8_, NULL, &_inner_error_); -#line 252 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1908 "AppDirs.c" - goto __catch461_g_error; - } - } - } - goto __finally461; - __catch461_g_error: - { - GError* err = NULL; - GFile* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - GError* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; -#line 250 "/home/jens/Source/shotwell/src/AppDirs.vala" - err = _inner_error_; -#line 250 "/home/jens/Source/shotwell/src/AppDirs.vala" - _inner_error_ = NULL; -#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp9_ = subdir; -#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp10_ = g_file_get_path (_tmp9_); -#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp11_ = _tmp10_; -#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp12_ = err; -#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp13_ = _tmp12_->message; -#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp14_ = g_strdup_printf (_ ("Unable to create data subdirectory %s: %s"), _tmp11_, _tmp13_); -#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp15_ = _tmp14_; -#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_window_panic (_tmp15_); -#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp15_); -#line 254 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp11_); -#line 250 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_error_free0 (err); -#line 1950 "AppDirs.c" - } - __finally461: -#line 250 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 250 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (subdir); -#line 250 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 250 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_clear_error (&_inner_error_); -#line 250 "/home/jens/Source/shotwell/src/AppDirs.vala" - return NULL; -#line 1963 "AppDirs.c" - } -#line 257 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp16_ = subdir; -#line 257 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_dirs_ensure_writable (_tmp16_); -#line 258 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = subdir; -#line 258 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 1973 "AppDirs.c" -} - - -GFile* -app_dirs_get_lib_dir (void) -{ - GFile* result = NULL; - GFile* install_dir = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - GFile* _tmp12_; - GFile* _tmp13_; - GFile* _tmp14_; - GFile* _tmp15_; - GFile* _tmp16_; -#line 262 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = app_dirs_get_install_dir (); -#line 262 "/home/jens/Source/shotwell/src/AppDirs.vala" - install_dir = _tmp0_; -#line 265 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = install_dir; -#line 265 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (_tmp1_ == NULL) { -#line 1997 "AppDirs.c" - GFile* _tmp2_; - GFile* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gboolean _tmp6_; - GFile* _tmp11_; -#line 267 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = app_dirs_get_exec_dir (); -#line 267 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = _tmp2_; -#line 267 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = g_file_get_path (_tmp3_); -#line 267 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = _tmp4_; -#line 267 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = g_str_has_suffix (_tmp5_, "src"); -#line 267 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_free0 (_tmp5_); -#line 267 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp3_); -#line 267 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (_tmp6_) { -#line 2020 "AppDirs.c" - GFile* _tmp7_; - GFile* _tmp8_; - GFile* _tmp9_; - GFile* _tmp10_; -#line 268 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp7_ = app_dirs_get_exec_dir (); -#line 268 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp8_ = _tmp7_; -#line 268 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp9_ = g_file_get_parent (_tmp8_); -#line 268 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp10_ = _tmp9_; -#line 268 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp8_); -#line 268 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp10_; -#line 268 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (install_dir); -#line 268 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 2041 "AppDirs.c" - } -#line 271 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp11_ = app_dirs_get_exec_dir (); -#line 271 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp11_; -#line 271 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (install_dir); -#line 271 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 2051 "AppDirs.c" - } -#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp12_ = install_dir; -#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp13_ = g_file_get_child (_tmp12_, RESOURCES_LIB); -#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp14_ = _tmp13_; -#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp15_ = g_file_get_child (_tmp14_, "shotwell"); -#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp16_ = _tmp15_; -#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp14_); -#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp16_; -#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (install_dir); -#line 274 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 2071 "AppDirs.c" -} - - -GFile* -app_dirs_get_system_plugins_dir (void) -{ - GFile* result = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; -#line 278 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = app_dirs_get_lib_dir (); -#line 278 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = _tmp0_; -#line 278 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = g_file_get_child (_tmp1_, "plugins"); -#line 278 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = _tmp2_; -#line 278 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp1_); -#line 278 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp3_; -#line 278 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 2097 "AppDirs.c" -} - - -GFile* -app_dirs_get_user_plugins_dir (void) -{ - GFile* result = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; -#line 282 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = app_dirs_get_data_dir (); -#line 282 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = _tmp0_; -#line 282 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = g_file_get_child (_tmp1_, "plugins"); -#line 282 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = _tmp2_; -#line 282 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp1_); -#line 282 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp3_; -#line 282 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 2123 "AppDirs.c" -} - - -GFile* -app_dirs_get_log_file (void) -{ - GFile* result = NULL; - const gchar* _tmp0_; -#line 286 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = g_getenv ("SHOTWELL_LOG_FILE"); -#line 286 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (_tmp0_ != NULL) { -#line 2136 "AppDirs.c" - const gchar* _tmp1_; -#line 287 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = g_getenv ("SHOTWELL_LOG_FILE"); -#line 287 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (g_strcmp0 (_tmp1_, ":console:") == 0) { -#line 288 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = NULL; -#line 288 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 2146 "AppDirs.c" - } else { - const gchar* _tmp2_; - GFile* _tmp3_; -#line 290 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = g_getenv ("SHOTWELL_LOG_FILE"); -#line 290 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = g_file_new_for_path (_tmp2_); -#line 290 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp3_; -#line 290 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 2158 "AppDirs.c" - } - } else { - const gchar* _tmp4_; - GFile* _tmp5_; - GFile* _tmp6_; - GFile* _tmp7_; - GFile* _tmp8_; - GFile* _tmp9_; - GFile* _tmp10_; -#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = g_get_user_cache_dir (); -#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = g_file_new_for_path (_tmp4_); -#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = _tmp5_; -#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp7_ = g_file_get_child (_tmp6_, "shotwell"); -#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp8_ = _tmp7_; -#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp9_ = g_file_get_child (_tmp8_, "shotwell.log"); -#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp10_ = _tmp9_; -#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp8_); -#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp6_); -#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = _tmp10_; -#line 293 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 2190 "AppDirs.c" - } -} - - -GFile* -app_dirs_get_thumbnailer_bin (void) -{ - GFile* result = NULL; -#line 299 "/home/jens/Source/shotwell/src/AppDirs.vala" - static const char filename[] = "shotwell-video-thumbnailer"; -#line 2201 "AppDirs.c" - GFile* f = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - GFile* _tmp5_; - GFile* _tmp6_; -#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = app_dirs_get_libexec_dir (); -#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = _tmp0_; -#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = g_file_get_child (_tmp1_, "thumbnailer"); -#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = _tmp2_; -#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = g_file_get_child (_tmp3_, filename); -#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = _tmp4_; -#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp3_); -#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp1_); -#line 300 "/home/jens/Source/shotwell/src/AppDirs.vala" - f = _tmp5_; -#line 301 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = f; -#line 301 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (!g_file_query_exists (_tmp6_, NULL)) { -#line 2232 "AppDirs.c" - GFile* _tmp7_; - GFile* _tmp8_; - GFile* _tmp9_; - GFile* _tmp10_; - GFile* _tmp11_; -#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp7_ = app_dirs_get_libexec_dir (); -#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp8_ = _tmp7_; -#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp9_ = g_file_get_child (_tmp8_, "shotwell"); -#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp10_ = _tmp9_; -#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp11_ = g_file_get_child (_tmp10_, filename); -#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (f); -#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala" - f = _tmp11_; -#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp10_); -#line 303 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp8_); -#line 2256 "AppDirs.c" - } -#line 305 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = f; -#line 305 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 2262 "AppDirs.c" -} - - -GFile* -app_dirs_get_settings_migrator_bin (void) -{ - GFile* result = NULL; -#line 309 "/home/jens/Source/shotwell/src/AppDirs.vala" - static const char filename[] = "shotwell-settings-migrator"; -#line 2272 "AppDirs.c" - GFile* f = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - GFile* _tmp5_; - GFile* _tmp6_; -#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp0_ = app_dirs_get_libexec_dir (); -#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp1_ = _tmp0_; -#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp2_ = g_file_get_child (_tmp1_, "settings-migrator"); -#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp3_ = _tmp2_; -#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp4_ = g_file_get_child (_tmp3_, filename); -#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp5_ = _tmp4_; -#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp3_); -#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp1_); -#line 310 "/home/jens/Source/shotwell/src/AppDirs.vala" - f = _tmp5_; -#line 311 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp6_ = f; -#line 311 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (!g_file_query_exists (_tmp6_, NULL)) { -#line 2303 "AppDirs.c" - GFile* _tmp7_; - GFile* _tmp8_; - GFile* _tmp9_; - GFile* _tmp10_; - GFile* _tmp11_; -#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp7_ = app_dirs_get_libexec_dir (); -#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp8_ = _tmp7_; -#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp9_ = g_file_get_child (_tmp8_, "shotwell"); -#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp10_ = _tmp9_; -#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala" - _tmp11_ = g_file_get_child (_tmp10_, filename); -#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (f); -#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala" - f = _tmp11_; -#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp10_); -#line 313 "/home/jens/Source/shotwell/src/AppDirs.vala" - _g_object_unref0 (_tmp8_); -#line 2327 "AppDirs.c" - } -#line 315 "/home/jens/Source/shotwell/src/AppDirs.vala" - result = f; -#line 315 "/home/jens/Source/shotwell/src/AppDirs.vala" - return result; -#line 2333 "AppDirs.c" -} - - -AppDirs* -app_dirs_construct (GType object_type) -{ - AppDirs* self = NULL; -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - self = (AppDirs*) g_type_create_instance (object_type); -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - return self; -#line 2345 "AppDirs.c" -} - - -AppDirs* -app_dirs_new (void) -{ -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - return app_dirs_construct (TYPE_APP_DIRS); -#line 2354 "AppDirs.c" -} - - -static void -value_app_dirs_init (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - value->data[0].v_pointer = NULL; -#line 2363 "AppDirs.c" -} - - -static void -value_app_dirs_free_value (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_dirs_unref (value->data[0].v_pointer); -#line 2374 "AppDirs.c" - } -} - - -static void -value_app_dirs_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (src_value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - dest_value->data[0].v_pointer = app_dirs_ref (src_value->data[0].v_pointer); -#line 2387 "AppDirs.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - dest_value->data[0].v_pointer = NULL; -#line 2391 "AppDirs.c" - } -} - - -static gpointer -value_app_dirs_peek_pointer (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - return value->data[0].v_pointer; -#line 2401 "AppDirs.c" -} - - -static gchar* -value_app_dirs_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (collect_values[0].v_pointer) { -#line 2413 "AppDirs.c" - AppDirs * object; - object = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (object->parent_instance.g_class == NULL) { -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2420 "AppDirs.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2424 "AppDirs.c" - } -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - value->data[0].v_pointer = app_dirs_ref (object); -#line 2428 "AppDirs.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - value->data[0].v_pointer = NULL; -#line 2432 "AppDirs.c" - } -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - return NULL; -#line 2436 "AppDirs.c" -} - - -static gchar* -value_app_dirs_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - AppDirs ** object_p; - object_p = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (!object_p) { -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2452 "AppDirs.c" - } -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (!value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - *object_p = NULL; -#line 2458 "AppDirs.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - *object_p = value->data[0].v_pointer; -#line 2462 "AppDirs.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - *object_p = app_dirs_ref (value->data[0].v_pointer); -#line 2466 "AppDirs.c" - } -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - return NULL; -#line 2470 "AppDirs.c" -} - - -GParamSpec* -param_spec_app_dirs (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecAppDirs* spec; -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_APP_DIRS), NULL); -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - return G_PARAM_SPEC (spec); -#line 2490 "AppDirs.c" -} - - -gpointer -value_get_app_dirs (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_APP_DIRS), NULL); -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - return value->data[0].v_pointer; -#line 2501 "AppDirs.c" -} - - -void -value_set_app_dirs (GValue* value, - gpointer v_object) -{ - AppDirs * old; -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_APP_DIRS)); -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_APP_DIRS)); -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - value->data[0].v_pointer = v_object; -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_dirs_ref (value->data[0].v_pointer); -#line 2524 "AppDirs.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - value->data[0].v_pointer = NULL; -#line 2528 "AppDirs.c" - } -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_dirs_unref (old); -#line 2534 "AppDirs.c" - } -} - - -void -value_take_app_dirs (GValue* value, - gpointer v_object) -{ - AppDirs * old; -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_APP_DIRS)); -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_APP_DIRS)); -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - value->data[0].v_pointer = v_object; -#line 2556 "AppDirs.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - value->data[0].v_pointer = NULL; -#line 2560 "AppDirs.c" - } -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_dirs_unref (old); -#line 2566 "AppDirs.c" - } -} - - -static void -app_dirs_class_init (AppDirsClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - app_dirs_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - ((AppDirsClass *) klass)->finalize = app_dirs_finalize; -#line 2578 "AppDirs.c" -} - - -static void -app_dirs_instance_init (AppDirs * self) -{ -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - self->ref_count = 1; -#line 2587 "AppDirs.c" -} - - -static void -app_dirs_finalize (AppDirs * obj) -{ - AppDirs * self; -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_APP_DIRS, AppDirs); -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_signal_handlers_destroy (self); -#line 2599 "AppDirs.c" -} - - -GType -app_dirs_get_type (void) -{ - static volatile gsize app_dirs_type_id__volatile = 0; - if (g_once_init_enter (&app_dirs_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_app_dirs_init, value_app_dirs_free_value, value_app_dirs_copy_value, value_app_dirs_peek_pointer, "p", value_app_dirs_collect_value, "p", value_app_dirs_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (AppDirsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) app_dirs_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AppDirs), 0, (GInstanceInitFunc) app_dirs_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType app_dirs_type_id; - app_dirs_type_id = g_type_register_fundamental (g_type_fundamental_next (), "AppDirs", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&app_dirs_type_id__volatile, app_dirs_type_id); - } - return app_dirs_type_id__volatile; -} - - -gpointer -app_dirs_ref (gpointer instance) -{ - AppDirs * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_atomic_int_inc (&self->ref_count); -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - return instance; -#line 2628 "AppDirs.c" -} - - -void -app_dirs_unref (gpointer instance) -{ - AppDirs * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - APP_DIRS_GET_CLASS (self)->finalize (self); -#line 7 "/home/jens/Source/shotwell/src/AppDirs.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2643 "AppDirs.c" - } -} - - - diff --git a/src/AppDirs.vala b/src/AppDirs.vala index ffea859..74b045f 100644 --- a/src/AppDirs.vala +++ b/src/AppDirs.vala @@ -258,6 +258,15 @@ class AppDirs { return subdir; } +#if ENABLE_FACES + public static File get_resources_dir() { + File? install_dir = get_install_dir(); + + return (install_dir != null) ? install_dir.get_child("share").get_child("shotwell") + : get_exec_dir(); + } +#endif + public static File get_lib_dir() { File? install_dir = get_install_dir(); @@ -302,6 +311,11 @@ class AppDirs { // If we're running installed. f = AppDirs.get_libexec_dir () .get_child ("shotwell").get_child (filename); } + + if (!f.query_exists()) { + f = AppDirs.get_libexec_dir().get_parent().get_child("thumbnailer").get_child(filename); + } + return f; } @@ -314,5 +328,25 @@ class AppDirs { } return f; } + +#if ENABLE_FACES + public static File get_facedetect_bin() { + const string filename = "shotwell-facedetect"; + File f = AppDirs.get_libexec_dir().get_parent().get_child("facedetect").get_child (filename); + if (!f.query_exists()) { + f = AppDirs.get_libexec_dir().get_child("shotwell").get_child(filename); + } + return f; + } + + public static File get_haarcascade_file() { + File f = File.new_for_path(AppDirs.get_exec_dir().get_parent().get_parent().get_child("facedetect").get_child("facedetect-haarcascade.xml").get_path()); + if (f.query_exists()) {//testing meson builddir + return f; + } + return get_resources_dir().get_child("facedetect-haarcascade.xml"); + } +#endif + } diff --git a/src/AppWindow.c b/src/AppWindow.c deleted file mode 100644 index d7a3963..0000000 --- a/src/AppWindow.c +++ /dev/null @@ -1,5595 +0,0 @@ -/* AppWindow.c generated by valac 0.40.4, the Vala compiler - * generated from AppWindow.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; -typedef struct _PageWindowPrivate PageWindowPrivate; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; -typedef struct _FullscreenWindowPrivate FullscreenWindowPrivate; -enum { - FULLSCREEN_WINDOW_0_PROPERTY, - FULLSCREEN_WINDOW_NUM_PROPERTIES -}; -static GParamSpec* fullscreen_window_properties[FULLSCREEN_WINDOW_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; - -#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ()) -#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)) -#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) -#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE)) -#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE)) -#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) - -typedef struct _SinglePhotoPage SinglePhotoPage; -typedef struct _SinglePhotoPageClass SinglePhotoPageClass; - -#define TYPE_SLIDESHOW_PAGE (slideshow_page_get_type ()) -#define SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPage)) -#define SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDESHOW_PAGE, SlideshowPageClass)) -#define IS_SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDESHOW_PAGE)) -#define IS_SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDESHOW_PAGE)) -#define SLIDESHOW_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPageClass)) - -typedef struct _SlideshowPage SlideshowPage; -typedef struct _SlideshowPageClass SlideshowPageClass; -enum { - PAGE_WINDOW_0_PROPERTY, - PAGE_WINDOW_NUM_PROPERTIES -}; -static GParamSpec* page_window_properties[PAGE_WINDOW_NUM_PROPERTIES]; - -#define TYPE_APPLICATION (application_get_type ()) -#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application)) -#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass)) -#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION)) -#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION)) -#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass)) - -typedef struct _Application Application; -typedef struct _ApplicationClass ApplicationClass; -#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL))) -typedef struct _AppWindowPrivate AppWindowPrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -enum { - APP_WINDOW_0_PROPERTY, - APP_WINDOW_NUM_PROPERTIES -}; -static GParamSpec* app_window_properties[APP_WINDOW_NUM_PROPERTIES]; - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; - -#define TYPE_DIRECT_WINDOW (direct_window_get_type ()) -#define DIRECT_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_WINDOW, DirectWindow)) -#define DIRECT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_WINDOW, DirectWindowClass)) -#define IS_DIRECT_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_WINDOW)) -#define IS_DIRECT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_WINDOW)) -#define DIRECT_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_WINDOW, DirectWindowClass)) - -typedef struct _DirectWindow DirectWindow; -typedef struct _DirectWindowClass DirectWindowClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; -#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) - -#define TYPE_COMMAND_DESCRIPTION (command_description_get_type ()) -#define COMMAND_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_DESCRIPTION, CommandDescription)) -#define IS_COMMAND_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_DESCRIPTION)) -#define COMMAND_DESCRIPTION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_COMMAND_DESCRIPTION, CommandDescriptionIface)) - -typedef struct _CommandDescription CommandDescription; -typedef struct _CommandDescriptionIface CommandDescriptionIface; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PageWindow { - GtkApplicationWindow parent_instance; - PageWindowPrivate * priv; -}; - -struct _PageWindowClass { - GtkApplicationWindowClass parent_class; - void (*switched_pages) (PageWindow* self, Page* old_page, Page* new_page); - void (*set_current_page) (PageWindow* self, Page* page); - void (*clear_current_page) (PageWindow* self); -}; - -struct _FullscreenWindow { - PageWindow parent_instance; - FullscreenWindowPrivate * priv; -}; - -struct _FullscreenWindowClass { - PageWindowClass parent_class; -}; - -struct _FullscreenWindowPrivate { - GtkOverlay* overlay; - GtkToolbar* toolbar; - GtkToolButton* close_button; - GtkToggleToolButton* pin_button; - gboolean is_toolbar_shown; - gboolean waiting_for_invoke; - time_t left_toolbar_time; - gboolean switched_to; - gboolean is_toolbar_dismissal_enabled; -}; - -struct _PageWindowPrivate { - Page* current_page; - gint busy_counter; -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _AppWindow { - PageWindow parent_instance; - AppWindowPrivate * priv; - gboolean maximized; - Dimensions dimensions; - gint pos_x; - gint pos_y; -}; - -struct _AppWindowClass { - PageWindowClass parent_class; - void (*on_fullscreen) (AppWindow* self); - gchar* (*get_app_role) (AppWindow* self); - void (*on_quit) (AppWindow* self); - void (*add_actions) (AppWindow* self); - void (*update_common_action_availability) (AppWindow* self, Page* old_page, Page* new_page); - void (*update_common_actions) (AppWindow* self, Page* page, gint selected_count, gint count); -}; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -struct _CommandDescriptionIface { - GTypeInterface parent_iface; - gchar* (*get_name) (CommandDescription* self); - gchar* (*get_explanation) (CommandDescription* self); -}; - - -static gpointer fullscreen_window_parent_class = NULL; -static gpointer page_window_parent_class = NULL; -static gpointer app_window_parent_class = NULL; -extern AppWindow* app_window_instance; -AppWindow* app_window_instance = NULL; -static FullscreenWindow* app_window_fullscreen_window; -static FullscreenWindow* app_window_fullscreen_window = NULL; -static CommandManager* app_window_command_manager; -static CommandManager* app_window_command_manager = NULL; - -GType page_window_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -#define FULLSCREEN_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_FULLSCREEN_WINDOW, FullscreenWindowPrivate)) -#define FULLSCREEN_WINDOW_TOOLBAR_INVOCATION_MSEC 250 -#define FULLSCREEN_WINDOW_TOOLBAR_DISMISSAL_SEC 2 -#define FULLSCREEN_WINDOW_TOOLBAR_CHECK_DISMISSAL_MSEC 500 -static void fullscreen_window_on_close (FullscreenWindow* self); -static void _fullscreen_window_on_close_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -FullscreenWindow* fullscreen_window_new (Page* page); -FullscreenWindow* fullscreen_window_construct (GType object_type, - Page* page); -PageWindow* page_window_construct (GType object_type); -void page_window_set_current_page (PageWindow* self, - Page* page); -void application_set_accels_for_action (const gchar* action, - gchar** accel, - int accel_length1); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -static void fullscreen_window_get_monitor_geometry (FullscreenWindow* self, - GdkRectangle* result); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gboolean configuration_facade_get_pin_toolbar_state (ConfigurationFacade* self); -void fullscreen_window_update_toolbar_dismissal (FullscreenWindow* self); -static void _fullscreen_window_update_toolbar_dismissal_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self); -GtkToolbar* page_get_toolbar (Page* self); -#define RESOURCES_TRANSIENT_WINDOW_OPACITY 0.90 -GType single_photo_page_get_type (void) G_GNUC_CONST; -GType slideshow_page_get_type (void) G_GNUC_CONST; -static void fullscreen_window_hide_toolbar (FullscreenWindow* self); -static void _fullscreen_window_hide_toolbar_slideshow_page_hide_toolbar (SlideshowPage* _sender, - gpointer self); -void page_set_cursor_hide_time (Page* self, - gint hide_time); -void page_start_cursor_hiding (Page* self); -gboolean configuration_facade_get_display_toolbar (ConfigurationFacade* self); -static void fullscreen_window_invoke_toolbar (FullscreenWindow* self); -void fullscreen_window_disable_toolbar_dismissal (FullscreenWindow* self); -static gboolean fullscreen_window_real_configure_event (GtkWidget* base, - GdkEventConfigure* event); -Page* page_window_get_current_page (PageWindow* self); -void page_switched_to (Page* self); -static gboolean fullscreen_window_real_key_press_event (GtkWidget* base, - GdkEventKey* event); -void configuration_facade_set_pin_toolbar_state (ConfigurationFacade* self, - gboolean state); -void app_window_end_fullscreen (AppWindow* self); -void fullscreen_window_close (FullscreenWindow* self); -static void fullscreen_window_real_destroy (GtkWidget* base); -void page_window_clear_current_page (PageWindow* self); -void page_stop_cursor_hiding (Page* self); -void page_switching_from (Page* self); -static gboolean fullscreen_window_real_delete_event (GtkWidget* base, - GdkEventAny* event); -static gboolean fullscreen_window_real_motion_notify_event (GtkWidget* base, - GdkEventMotion* event); -static gboolean fullscreen_window_is_pointer_in_toolbar (FullscreenWindow* self); -static gboolean fullscreen_window_on_check_toolbar_invocation (FullscreenWindow* self); -static gboolean _fullscreen_window_on_check_toolbar_invocation_gsource_func (gpointer self); -static gboolean fullscreen_window_on_check_toolbar_dismissal (FullscreenWindow* self); -static gboolean _fullscreen_window_on_check_toolbar_dismissal_gsource_func (gpointer self); -static void fullscreen_window_finalize (GObject * obj); -#define PAGE_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PAGE_WINDOW, PageWindowPrivate)) -void page_window_switched_pages (PageWindow* self, - Page* old_page, - Page* new_page); -static void page_window_real_switched_pages (PageWindow* self, - Page* old_page, - Page* new_page); -gpointer application_ref (gpointer instance); -void application_unref (gpointer instance); -GParamSpec* param_spec_application (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_application (GValue* value, - gpointer v_object); -void value_take_application (GValue* value, - gpointer v_object); -gpointer value_get_application (const GValue* value); -GType application_get_type (void) G_GNUC_CONST; -Application* application_get_instance (void); -GtkApplication* application_get_system_app (Application* self); -static void page_window_real_set_current_page (PageWindow* self, - Page* page); -void page_clear_container (Page* self); -void page_set_container (Page* self, - GtkWindow* container); -static void page_window_real_clear_current_page (PageWindow* self); -static gboolean page_window_real_key_press_event (GtkWidget* base, - GdkEventKey* event); -gboolean page_notify_app_key_pressed (Page* self, - GdkEventKey* event); -static gboolean page_window_real_key_release_event (GtkWidget* base, - GdkEventKey* event); -gboolean page_notify_app_key_released (Page* self, - GdkEventKey* event); -static gboolean page_window_real_focus_in_event (GtkWidget* base, - GdkEventFocus* event); -gboolean page_notify_app_focus_in (Page* self, - GdkEventFocus* event); -static gboolean page_window_real_focus_out_event (GtkWidget* base, - GdkEventFocus* event); -gboolean page_notify_app_focus_out (Page* self, - GdkEventFocus* event); -static gboolean page_window_real_configure_event (GtkWidget* base, - GdkEventConfigure* event); -gboolean page_notify_configure_event (Page* self, - GdkEventConfigure* event); -void page_window_set_busy_cursor (PageWindow* self); -void spin_event_loop (void); -void page_window_set_normal_cursor (PageWindow* self); -static void page_window_finalize (GObject * obj); -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -#define APP_WINDOW_DND_ICON_SCALE 128 -void app_window_on_about (AppWindow* self); -static void _app_window_on_about_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void app_window_on_quit (AppWindow* self); -static void _app_window_on_quit_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void app_window_on_fullscreen (AppWindow* self); -static void _app_window_on_fullscreen_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void app_window_on_help_contents (AppWindow* self); -static void _app_window_on_help_contents_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void app_window_on_help_faq (AppWindow* self); -static void _app_window_on_help_faq_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void app_window_on_help_report_problem (AppWindow* self); -static void _app_window_on_help_report_problem_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void app_window_on_undo (AppWindow* self); -static void _app_window_on_undo_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void app_window_on_redo (AppWindow* self); -static void _app_window_on_redo_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void app_window_on_jump_to_file (AppWindow* self); -static void _app_window_on_jump_to_file_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void app_window_on_select_all (AppWindow* self); -static void _app_window_on_select_all_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void app_window_on_select_none (AppWindow* self); -static void _app_window_on_select_none_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -AppWindow* app_window_construct (GType object_type); -#define RESOURCES_APP_TITLE "Shotwell" -GType library_window_get_type (void) G_GNUC_CONST; -void configuration_facade_get_library_window_state (ConfigurationFacade* self, - gboolean* maximize, - Dimensions* dimensions); -GType direct_window_get_type (void) G_GNUC_CONST; -void configuration_facade_get_direct_window_state (ConfigurationFacade* self, - gboolean* maximize, - Dimensions* dimensions); -#define COMMAND_MANAGER_DEFAULT_DEPTH 20 -CommandManager* command_manager_new (gint depth); -CommandManager* command_manager_construct (GType object_type, - gint depth); -static void app_window_on_command_manager_altered (AppWindow* self); -static void _app_window_on_command_manager_altered_command_manager_altered (CommandManager* _sender, - gboolean can_undo, - gboolean can_redo, - gpointer self); -void app_window_add_actions (AppWindow* self); -#define RESOURCES_CUSTOM_CSS "LibraryWindow .pane-separator {\n" \ -" background-color: @borders;\n" \ -" }\n" \ -" SearchFilterToolbar {\n" \ -" border-width: 0 0 1px 0;\n" \ -" border-style: solid;\n" \ -" border-color: @borders;\n" \ -" }" -static void app_window_real_on_fullscreen (AppWindow* self); -gboolean app_window_has_instance (void); -FullscreenWindow* app_window_get_fullscreen (void); -GtkBuilder* app_window_create_builder (const gchar* glade_filename, - void* user); -gchar* resources_get_ui (const gchar* filename); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -void app_window_error_message_with_title (const gchar* title, - const gchar* message, - GtkWindow* parent, - gboolean should_escape); -gchar* build_alert_body_text (const gchar* primary_text, - const gchar* secondary_text, - gboolean should_escape); -gboolean app_window_negate_affirm_question (const gchar* message, - const gchar* negative, - const gchar* affirmative, - const gchar* title, - GtkWindow* parent); -GtkResponseType app_window_negate_affirm_cancel_question (const gchar* message, - const gchar* negative, - const gchar* affirmative, - const gchar* title, - GtkWindow* parent); -GtkResponseType app_window_affirm_cancel_question (const gchar* message, - const gchar* affirmative, - const gchar* title, - GtkWindow* parent); -GtkResponseType app_window_negate_affirm_all_cancel_question (const gchar* message, - const gchar* negative, - const gchar* affirmative, - const gchar* affirmative_all, - const gchar* title, - GtkWindow* parent); -GQuark database_error_quark (void); -void app_window_database_error (GError* err); -void app_window_panic (const gchar* msg); -void application_panic (Application* self); -gchar* app_window_get_app_role (AppWindow* self); -static gchar* app_window_real_get_app_role (AppWindow* self); -#define RESOURCES_APP_VERSION _VERSION -#define RESOURCES_COPYRIGHT _ ("Copyright 2016 Software Freedom Conservancy Inc.") -#define RESOURCES_HOME_URL "https://wiki.gnome.org/Apps/Shotwell" -#define RESOURCES_LICENSE "\n" \ -"Shotwell is free software; you can redistribute it and/or modify it un" \ -"der the \n" \ -"terms of the GNU Lesser General Public License as published by the Fre" \ -"e \n" \ -"Software Foundation; either version 2.1 of the License, or (at your op" \ -"tion) \n" \ -"any later version.\n" \ -"\n" \ -"Shotwell is distributed in the hope that it will be useful, but WITHOU" \ -"T \n" \ -"ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or " \ -"FITNESS\n" \ -"FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License f" \ -"or \n" \ -"more details.\n" \ -"\n" \ -"You should have received a copy of the GNU Lesser General Public Licen" \ -"se \n" \ -"along with Shotwell; if not, write to the Free Software Foundation, In" \ -"c., \n" \ -"51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n" -GdkPixbuf* resources_get_icon (const gchar* name, - gint scale); -#define RESOURCES_ICON_ABOUT_LOGO "about-braunschweig.jpg" -void resources_launch_help (GdkScreen* screen, - const gchar* anchor, - GError** error); -void app_window_show_uri (AppWindow* self, - const gchar* url, - GError** error); -#define RESOURCES_BUG_DB_URL "https://wiki.gnome.org/Apps/Shotwell/ReportingABug" -#define RESOURCES_FAQ_URL "https://wiki.gnome.org/Apps/Shotwell/FAQ" -static void app_window_real_on_quit (AppWindow* self); -void application_exit (Application* self); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -gint view_collection_get_selected_count (ViewCollection* self); -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -DataView* view_collection_get_selected_at (ViewCollection* self, - gint index); -DataSource* data_view_get_source (DataView* self); -void app_window_show_file_uri (AppWindow* self, - GFile* file, - GError** error); -GFile* media_source_get_master_file (MediaSource* self); -gchar* resources_jump_to_file_failed (GError* err); -static void app_window_real_destroy (GtkWidget* base); -gchar* get_nautilus_install_location (void); -void show_file_in_nautilus (const gchar* filename, - GError** error); -void sys_show_uri (GdkScreen* screen, - const gchar* uri, - GError** error); -static void app_window_real_add_actions (AppWindow* self); -void app_window_go_fullscreen (AppWindow* self, - Page* page); -void page_switching_to_fullscreen (Page* self, - FullscreenWindow* fsw); -void page_returning_from_fullscreen (Page* self, - FullscreenWindow* fsw); -GAction* app_window_get_common_action (AppWindow* self, - const gchar* name); -void app_window_set_common_action_sensitive (AppWindow* self, - const gchar* name, - gboolean sensitive); -void app_window_set_common_action_important (AppWindow* self, - const gchar* name, - gboolean important); -void app_window_set_common_action_visible (AppWindow* self, - const gchar* name, - gboolean visible); -static void app_window_real_switched_pages (PageWindow* base, - Page* old_page, - Page* new_page); -void app_window_update_common_action_availability (AppWindow* self, - Page* old_page, - Page* new_page); -static void app_window_on_update_common_actions (AppWindow* self); -static void _app_window_on_update_common_actions_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self); -static void _app_window_on_update_common_actions_view_collection_selection_group_altered (ViewCollection* _sender, - gpointer self); -static void _app_window_on_update_common_actions_view_collection_items_state_changed (ViewCollection* _sender, - GeeIterable* changed, - gpointer self); -void app_window_update_common_actions (AppWindow* self, - Page* page, - gint selected_count, - gint count); -gint data_collection_get_count (DataCollection* self); -static void app_window_real_update_common_action_availability (AppWindow* self, - Page* old_page, - Page* new_page); -GType checkerboard_page_get_type (void) G_GNUC_CONST; -static void app_window_real_update_common_actions (AppWindow* self, - Page* page, - gint selected_count, - gint count); -void app_window_decorate_undo_action (AppWindow* self); -void app_window_decorate_redo_action (AppWindow* self); -void app_window_update_menu_item_label (AppWindow* self, - const gchar* id, - const gchar* new_label); -GMenuModel* page_get_menubar (Page* self); -CommandManager* app_window_get_command_manager (void); -GType command_description_get_type (void) G_GNUC_CONST; -static void app_window_decorate_command_manager_action (AppWindow* self, - const gchar* name, - const gchar* prefix, - const gchar* default_explanation, - CommandDescription* desc); -gchar* command_description_get_name (CommandDescription* self); -#define RESOURCES_UNDO_MENU _ ("_Undo") -CommandDescription* command_manager_get_undo_description (CommandManager* self); -#define RESOURCES_REDO_MENU _ ("_Redo") -CommandDescription* command_manager_get_redo_description (CommandManager* self); -gboolean command_manager_undo (CommandManager* self); -gboolean command_manager_redo (CommandManager* self); -void view_collection_select_all (ViewCollection* self); -void view_collection_unselect_all (ViewCollection* self); -static gboolean app_window_real_configure_event (GtkWidget* base, - GdkEventConfigure* event); -static void app_window_finalize (GObject * obj); - -static const GActionEntry FULLSCREEN_WINDOW_entries[1] = {{"LeaveFullscreen", _fullscreen_window_on_close_gsimple_action_activate_callback}}; -static const GActionEntry APP_WINDOW_common_actions[11] = {{"CommonAbout", _app_window_on_about_gsimple_action_activate_callback}, {"CommonQuit", _app_window_on_quit_gsimple_action_activate_callback}, {"CommonFullscreen", _app_window_on_fullscreen_gsimple_action_activate_callback}, {"CommonHelpContents", _app_window_on_help_contents_gsimple_action_activate_callback}, {"CommonHelpFAQ", _app_window_on_help_faq_gsimple_action_activate_callback}, {"CommonHelpReportProblem", _app_window_on_help_report_problem_gsimple_action_activate_callback}, {"CommonUndo", _app_window_on_undo_gsimple_action_activate_callback}, {"CommonRedo", _app_window_on_redo_gsimple_action_activate_callback}, {"CommonJumpToFile", _app_window_on_jump_to_file_gsimple_action_activate_callback}, {"CommonSelectAll", _app_window_on_select_all_gsimple_action_activate_callback}, {"CommonSelectNone", _app_window_on_select_none_gsimple_action_activate_callback}}; -extern const gchar* RESOURCES_AUTHORS[6]; - -static void -_fullscreen_window_on_close_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 22 "/home/jens/Source/shotwell/src/AppWindow.vala" - fullscreen_window_on_close ((FullscreenWindow*) self); -#line 737 "AppWindow.c" -} - - -static void -_fullscreen_window_update_toolbar_dismissal_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self) -{ -#line 50 "/home/jens/Source/shotwell/src/AppWindow.vala" - fullscreen_window_update_toolbar_dismissal ((FullscreenWindow*) self); -#line 747 "AppWindow.c" -} - - -static void -_fullscreen_window_hide_toolbar_slideshow_page_hide_toolbar (SlideshowPage* _sender, - gpointer self) -{ -#line 65 "/home/jens/Source/shotwell/src/AppWindow.vala" - fullscreen_window_hide_toolbar ((FullscreenWindow*) self); -#line 757 "AppWindow.c" -} - - -FullscreenWindow* -fullscreen_window_construct (GType object_type, - Page* page) -{ - FullscreenWindow * self = NULL; -#line 32 "/home/jens/Source/shotwell/src/AppWindow.vala" - static const gchar* accels[2] = {"F11", NULL}; -#line 768 "AppWindow.c" - AppWindow* _tmp0_; - AppWindow* _tmp1_; - GdkScreen* _tmp2_; - GdkRectangle monitor = {0}; - GdkRectangle _tmp3_ = {0}; - GdkRectangle _tmp4_; - gint _tmp5_; - GdkRectangle _tmp6_; - gint _tmp7_; - ConfigFacade* _tmp8_; - ConfigFacade* _tmp9_; - GtkToggleToolButton* _tmp10_; - GtkToggleToolButton* _tmp11_; - GtkToggleToolButton* _tmp12_; - GtkToggleToolButton* _tmp13_; - gboolean _tmp14_; - GtkToggleToolButton* _tmp15_; - GtkToolButton* _tmp16_; - GtkToolButton* _tmp17_; - GtkToolButton* _tmp18_; - GtkToolbar* _tmp19_; - GtkToolbar* _tmp20_; - GtkToolbar* _tmp21_; - GtkToolbar* _tmp22_; - GtkToolbar* _tmp23_; - GtkToolbar* _tmp24_; - GtkToolbar* _tmp27_; - GtkToolButton* _tmp28_; - GtkOverlay* _tmp29_; - GtkOverlay* _tmp30_; - GtkOverlay* _tmp31_; - GtkToolbar* _tmp32_; - GdkRectangle _tmp33_; - gint _tmp34_; - GdkRectangle _tmp35_; - gint _tmp36_; - gboolean _tmp37_ = FALSE; - ConfigFacade* _tmp38_; - ConfigFacade* _tmp39_; - gboolean _tmp40_; -#line 26 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (IS_PAGE (page), NULL); -#line 27 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = (FullscreenWindow*) page_window_construct (object_type); -#line 29 "/home/jens/Source/shotwell/src/AppWindow.vala" - page_window_set_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow), page); -#line 31 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), FULLSCREEN_WINDOW_entries, G_N_ELEMENTS (FULLSCREEN_WINDOW_entries), self); -#line 33 "/home/jens/Source/shotwell/src/AppWindow.vala" - application_set_accels_for_action ("win.LeaveFullscreen", accels, G_N_ELEMENTS (accels)); -#line 35 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_get_instance (); -#line 35 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _tmp0_; -#line 35 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = gtk_window_get_screen (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow)); -#line 35 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_set_screen (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp2_); -#line 35 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp1_); -#line 38 "/home/jens/Source/shotwell/src/AppWindow.vala" - fullscreen_window_get_monitor_geometry (self, &_tmp3_); -#line 38 "/home/jens/Source/shotwell/src/AppWindow.vala" - monitor = _tmp3_; -#line 39 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = monitor; -#line 39 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = _tmp4_.x; -#line 39 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = monitor; -#line 39 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = _tmp6_.y; -#line 39 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_move (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp5_, _tmp7_); -#line 41 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), (guint) 0); -#line 44 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp8_ = config_facade_get_instance (); -#line 44 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp9_ = _tmp8_; -#line 44 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->is_toolbar_dismissal_enabled = configuration_facade_get_pin_toolbar_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 44 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp9_); -#line 46 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp10_ = self->priv->pin_button; -#line 46 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_tool_button_set_icon_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_tool_button_get_type (), GtkToolButton), "pin-toolbar"); -#line 47 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp11_ = self->priv->pin_button; -#line 47 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_tool_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_tool_button_get_type (), GtkToolButton), _ ("Pin Toolbar")); -#line 48 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp12_ = self->priv->pin_button; -#line 48 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_tool_item_get_type (), GtkToolItem), _ ("Pin the toolbar open")); -#line 49 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp13_ = self->priv->pin_button; -#line 49 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp14_ = self->priv->is_toolbar_dismissal_enabled; -#line 49 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_toggle_tool_button_set_active (_tmp13_, !_tmp14_); -#line 50 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp15_ = self->priv->pin_button; -#line 50 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_tool_button_get_type (), GtkToolButton), "clicked", (GCallback) _fullscreen_window_update_toolbar_dismissal_gtk_tool_button_clicked, self, 0); -#line 52 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp16_ = self->priv->close_button; -#line 52 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_tool_button_set_icon_name (_tmp16_, "view-restore"); -#line 53 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp17_ = self->priv->close_button; -#line 53 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_tool_item_get_type (), GtkToolItem), _ ("Leave fullscreen")); -#line 54 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp18_ = self->priv->close_button; -#line 54 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_actionable_get_type (), GtkActionable), "win.LeaveFullscreen"); -#line 56 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp19_ = page_get_toolbar (page); -#line 56 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (self->priv->toolbar); -#line 56 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->toolbar = _tmp19_; -#line 57 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp20_ = self->priv->toolbar; -#line 57 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_toolbar_set_show_arrow (_tmp20_, FALSE); -#line 58 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp21_ = self->priv->toolbar; -#line 58 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_END); -#line 59 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp22_ = self->priv->toolbar; -#line 59 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 60 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp23_ = self->priv->toolbar; -#line 60 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_object_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), "expand", FALSE, NULL); -#line 61 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp24_ = self->priv->toolbar; -#line 61 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_set_opacity (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_widget_get_type (), GtkWidget), RESOURCES_TRANSIENT_WINDOW_OPACITY); -#line 63 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_SLIDESHOW_PAGE)) { -#line 65 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_SLIDESHOW_PAGE, SlideshowPage), "hide-toolbar", (GCallback) _fullscreen_window_hide_toolbar_slideshow_page_hide_toolbar, self, 0); -#line 917 "AppWindow.c" - } else { - GtkToolbar* _tmp25_; - GtkToggleToolButton* _tmp26_; -#line 68 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp25_ = self->priv->toolbar; -#line 68 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp26_ = self->priv->pin_button; -#line 68 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_toolbar_insert (_tmp25_, G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 927 "AppWindow.c" - } -#line 71 "/home/jens/Source/shotwell/src/AppWindow.vala" - page_set_cursor_hide_time (page, FULLSCREEN_WINDOW_TOOLBAR_DISMISSAL_SEC * 1000); -#line 72 "/home/jens/Source/shotwell/src/AppWindow.vala" - page_start_cursor_hiding (page); -#line 74 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp27_ = self->priv->toolbar; -#line 74 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp28_ = self->priv->close_button; -#line 74 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_toolbar_insert (_tmp27_, G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 76 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp29_ = self->priv->overlay; -#line 76 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget)); -#line 77 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp30_ = self->priv->overlay; -#line 77 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (page, gtk_widget_get_type (), GtkWidget)); -#line 78 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp31_ = self->priv->overlay; -#line 78 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp32_ = self->priv->toolbar; -#line 78 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_overlay_add_overlay (_tmp31_, G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_widget_get_type (), GtkWidget)); -#line 83 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp33_ = monitor; -#line 83 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp34_ = _tmp33_.width; -#line 83 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp35_ = monitor; -#line 83 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp36_ = _tmp35_.height; -#line 83 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_set_default_size (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp34_, _tmp36_); -#line 86 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_fullscreen (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); -#line 87 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 90 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) GDK_POINTER_MOTION_MASK); -#line 95 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp38_ = config_facade_get_instance (); -#line 95 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp39_ = _tmp38_; -#line 95 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp40_ = configuration_facade_get_display_toolbar (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 95 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp39_); -#line 95 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp40_) { -#line 95 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp37_ = TRUE; -#line 981 "AppWindow.c" - } else { - gboolean _tmp41_; -#line 96 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp41_ = self->priv->is_toolbar_dismissal_enabled; -#line 96 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp37_ = !_tmp41_; -#line 988 "AppWindow.c" - } -#line 95 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp37_) { -#line 97 "/home/jens/Source/shotwell/src/AppWindow.vala" - fullscreen_window_invoke_toolbar (self); -#line 994 "AppWindow.c" - } else { -#line 99 "/home/jens/Source/shotwell/src/AppWindow.vala" - fullscreen_window_hide_toolbar (self); -#line 998 "AppWindow.c" - } -#line 103 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (page, gtk_widget_get_type (), GtkWidget)); -#line 106 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_application_window_set_show_menubar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), FALSE); -#line 26 "/home/jens/Source/shotwell/src/AppWindow.vala" - return self; -#line 1006 "AppWindow.c" -} - - -FullscreenWindow* -fullscreen_window_new (Page* page) -{ -#line 26 "/home/jens/Source/shotwell/src/AppWindow.vala" - return fullscreen_window_construct (TYPE_FULLSCREEN_WINDOW, page); -#line 1015 "AppWindow.c" -} - - -void -fullscreen_window_disable_toolbar_dismissal (FullscreenWindow* self) -{ -#line 109 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_FULLSCREEN_WINDOW (self)); -#line 110 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->is_toolbar_dismissal_enabled = FALSE; -#line 1026 "AppWindow.c" -} - - -void -fullscreen_window_update_toolbar_dismissal (FullscreenWindow* self) -{ - GtkToggleToolButton* _tmp0_; -#line 113 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_FULLSCREEN_WINDOW (self)); -#line 114 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = self->priv->pin_button; -#line 114 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->is_toolbar_dismissal_enabled = !gtk_toggle_tool_button_get_active (_tmp0_); -#line 1040 "AppWindow.c" -} - - -static void -fullscreen_window_get_monitor_geometry (FullscreenWindow* self, - GdkRectangle* result) -{ - GdkRectangle monitor = {0}; - GdkScreen* _tmp0_; - GdkScreen* _tmp1_; - AppWindow* _tmp2_; - AppWindow* _tmp3_; - GdkWindow* _tmp4_; - GdkRectangle _tmp5_ = {0}; -#line 117 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_FULLSCREEN_WINDOW (self)); -#line 120 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = gtk_window_get_screen (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); -#line 120 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = gtk_window_get_screen (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); -#line 120 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = app_window_get_instance (); -#line 120 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = _tmp2_; -#line 120 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget)); -#line 120 "/home/jens/Source/shotwell/src/AppWindow.vala" - gdk_screen_get_monitor_geometry (_tmp0_, gdk_screen_get_monitor_at_window (_tmp1_, _tmp4_), &_tmp5_); -#line 120 "/home/jens/Source/shotwell/src/AppWindow.vala" - monitor = _tmp5_; -#line 120 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp3_); -#line 123 "/home/jens/Source/shotwell/src/AppWindow.vala" - *result = monitor; -#line 123 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 1077 "AppWindow.c" -} - - -static gboolean -fullscreen_window_real_configure_event (GtkWidget* base, - GdkEventConfigure* event) -{ - FullscreenWindow * self; - gboolean result = FALSE; - gboolean _result_ = FALSE; - gboolean _tmp0_; -#line 126 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FULLSCREEN_WINDOW, FullscreenWindow); -#line 126 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 127 "/home/jens/Source/shotwell/src/AppWindow.vala" - _result_ = GTK_WIDGET_CLASS (fullscreen_window_parent_class)->configure_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow), gtk_widget_get_type (), GtkWidget), event); -#line 129 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = self->priv->switched_to; -#line 129 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (!_tmp0_) { -#line 1099 "AppWindow.c" - Page* _tmp1_; - Page* _tmp2_; -#line 130 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 130 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = _tmp1_; -#line 130 "/home/jens/Source/shotwell/src/AppWindow.vala" - page_switched_to (_tmp2_); -#line 130 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp2_); -#line 131 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->switched_to = TRUE; -#line 1112 "AppWindow.c" - } -#line 134 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = _result_; -#line 134 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1118 "AppWindow.c" -} - - -static gboolean -fullscreen_window_real_key_press_event (GtkWidget* base, - GdkEventKey* event) -{ - FullscreenWindow * self; - gboolean result = FALSE; - guint _tmp0_; - const gchar* _tmp1_; - gboolean _tmp2_ = FALSE; - AppWindow* _tmp3_; - AppWindow* _tmp4_; - gboolean _tmp5_ = FALSE; - gboolean _tmp6_; -#line 137 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FULLSCREEN_WINDOW, FullscreenWindow); -#line 137 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 139 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = event->keyval; -#line 139 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = gdk_keyval_name (_tmp0_); -#line 139 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (g_strcmp0 (_tmp1_, "Escape") == 0) { -#line 140 "/home/jens/Source/shotwell/src/AppWindow.vala" - fullscreen_window_on_close (self); -#line 142 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = TRUE; -#line 142 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1151 "AppWindow.c" - } -#line 146 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (GTK_WIDGET_CLASS (fullscreen_window_parent_class)->key_press_event != NULL) { -#line 146 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = GTK_WIDGET_CLASS (fullscreen_window_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow), gtk_widget_get_type (), GtkWidget), event); -#line 1157 "AppWindow.c" - } else { -#line 146 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = FALSE; -#line 1161 "AppWindow.c" - } -#line 146 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp2_) { -#line 147 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = TRUE; -#line 147 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1169 "AppWindow.c" - } -#line 150 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = app_window_get_instance (); -#line 150 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = _tmp3_; -#line 150 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), "key-press-event", event, &_tmp5_); -#line 150 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = _tmp5_; -#line 150 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp4_); -#line 150 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = _tmp6_; -#line 150 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1185 "AppWindow.c" -} - - -static void -fullscreen_window_on_close (FullscreenWindow* self) -{ - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gboolean _tmp2_; - AppWindow* _tmp3_; - AppWindow* _tmp4_; -#line 153 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_FULLSCREEN_WINDOW (self)); -#line 154 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = config_facade_get_instance (); -#line 154 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _tmp0_; -#line 154 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = self->priv->is_toolbar_dismissal_enabled; -#line 154 "/home/jens/Source/shotwell/src/AppWindow.vala" - configuration_facade_set_pin_toolbar_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_); -#line 154 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp1_); -#line 155 "/home/jens/Source/shotwell/src/AppWindow.vala" - fullscreen_window_hide_toolbar (self); -#line 157 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = app_window_get_instance (); -#line 157 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = _tmp3_; -#line 157 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_end_fullscreen (_tmp4_); -#line 157 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp4_); -#line 1219 "AppWindow.c" -} - - -void -fullscreen_window_close (FullscreenWindow* self) -{ -#line 160 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_FULLSCREEN_WINDOW (self)); -#line 161 "/home/jens/Source/shotwell/src/AppWindow.vala" - fullscreen_window_on_close (self); -#line 1230 "AppWindow.c" -} - - -static void -fullscreen_window_real_destroy (GtkWidget* base) -{ - FullscreenWindow * self; - Page* page = NULL; - Page* _tmp0_; - Page* _tmp1_; -#line 164 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FULLSCREEN_WINDOW, FullscreenWindow); -#line 165 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 165 "/home/jens/Source/shotwell/src/AppWindow.vala" - page = _tmp0_; -#line 166 "/home/jens/Source/shotwell/src/AppWindow.vala" - page_window_clear_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 168 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = page; -#line 168 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp1_ != NULL) { -#line 1253 "AppWindow.c" - Page* _tmp2_; - Page* _tmp3_; -#line 169 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = page; -#line 169 "/home/jens/Source/shotwell/src/AppWindow.vala" - page_stop_cursor_hiding (_tmp2_); -#line 170 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = page; -#line 170 "/home/jens/Source/shotwell/src/AppWindow.vala" - page_switching_from (_tmp3_); -#line 1264 "AppWindow.c" - } -#line 173 "/home/jens/Source/shotwell/src/AppWindow.vala" - GTK_WIDGET_CLASS (fullscreen_window_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow), gtk_widget_get_type (), GtkWidget)); -#line 164 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (page); -#line 1270 "AppWindow.c" -} - - -static gboolean -fullscreen_window_real_delete_event (GtkWidget* base, - GdkEventAny* event) -{ - FullscreenWindow * self; - gboolean result = FALSE; - AppWindow* _tmp0_; - AppWindow* _tmp1_; -#line 176 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FULLSCREEN_WINDOW, FullscreenWindow); -#line 176 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 177 "/home/jens/Source/shotwell/src/AppWindow.vala" - fullscreen_window_on_close (self); -#line 178 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_get_instance (); -#line 178 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _tmp0_; -#line 178 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 178 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp1_); -#line 180 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = TRUE; -#line 180 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1300 "AppWindow.c" -} - - -static gboolean -_fullscreen_window_on_check_toolbar_invocation_gsource_func (gpointer self) -{ - gboolean result; - result = fullscreen_window_on_check_toolbar_invocation ((FullscreenWindow*) self); -#line 189 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1311 "AppWindow.c" -} - - -static gboolean -fullscreen_window_real_motion_notify_event (GtkWidget* base, - GdkEventMotion* event) -{ - FullscreenWindow * self; - gboolean result = FALSE; - gboolean _tmp0_; - gboolean _tmp3_ = FALSE; -#line 183 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FULLSCREEN_WINDOW, FullscreenWindow); -#line 183 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 184 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = self->priv->is_toolbar_shown; -#line 184 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (!_tmp0_) { -#line 1331 "AppWindow.c" - gboolean _tmp1_ = FALSE; - gboolean _tmp2_; -#line 188 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = self->priv->waiting_for_invoke; -#line 188 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (!_tmp2_) { -#line 188 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = fullscreen_window_is_pointer_in_toolbar (self); -#line 1340 "AppWindow.c" - } else { -#line 188 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = FALSE; -#line 1344 "AppWindow.c" - } -#line 188 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp1_) { -#line 189 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) FULLSCREEN_WINDOW_TOOLBAR_INVOCATION_MSEC, _fullscreen_window_on_check_toolbar_invocation_gsource_func, g_object_ref (self), g_object_unref); -#line 190 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->waiting_for_invoke = TRUE; -#line 1352 "AppWindow.c" - } - } -#line 194 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (GTK_WIDGET_CLASS (fullscreen_window_parent_class)->motion_notify_event != NULL) { -#line 194 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = GTK_WIDGET_CLASS (fullscreen_window_parent_class)->motion_notify_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow), gtk_widget_get_type (), GtkWidget), event); -#line 1359 "AppWindow.c" - } else { -#line 194 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = FALSE; -#line 1363 "AppWindow.c" - } -#line 194 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = _tmp3_; -#line 194 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1369 "AppWindow.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 198 "/home/jens/Source/shotwell/src/AppWindow.vala" - return self ? g_object_ref (self) : NULL; -#line 1378 "AppWindow.c" -} - - -static gboolean -fullscreen_window_is_pointer_in_toolbar (FullscreenWindow* self) -{ - gboolean result = FALSE; - GdkDeviceManager* devmgr = NULL; - GdkDisplay* _tmp0_; - GdkDeviceManager* _tmp1_; - GdkDeviceManager* _tmp2_; - GdkDeviceManager* _tmp3_; - gint py = 0; - GdkDeviceManager* _tmp4_; - GdkDevice* _tmp5_; - gint _tmp6_ = 0; - gint wy = 0; - GtkToolbar* _tmp7_; - GdkWindow* _tmp8_; - gint _tmp9_ = 0; - gint _tmp10_; - gint _tmp11_; -#line 197 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (IS_FULLSCREEN_WINDOW (self), FALSE); -#line 198 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = gtk_widget_get_display (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 198 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = gdk_display_get_device_manager (_tmp0_); -#line 198 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 198 "/home/jens/Source/shotwell/src/AppWindow.vala" - devmgr = _tmp2_; -#line 199 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = devmgr; -#line 199 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp3_ == NULL) { -#line 200 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_debug ("AppWindow.vala:200: No device manager for display"); -#line 202 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = FALSE; -#line 202 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (devmgr); -#line 202 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1423 "AppWindow.c" - } -#line 206 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = devmgr; -#line 206 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = gdk_device_manager_get_client_pointer (_tmp4_); -#line 206 "/home/jens/Source/shotwell/src/AppWindow.vala" - gdk_device_get_position (_tmp5_, NULL, NULL, &_tmp6_); -#line 206 "/home/jens/Source/shotwell/src/AppWindow.vala" - py = _tmp6_; -#line 209 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = self->priv->toolbar; -#line 209 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp8_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget)); -#line 209 "/home/jens/Source/shotwell/src/AppWindow.vala" - gdk_window_get_geometry (_tmp8_, NULL, &_tmp9_, NULL, NULL); -#line 209 "/home/jens/Source/shotwell/src/AppWindow.vala" - wy = _tmp9_; -#line 211 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp10_ = py; -#line 211 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp11_ = wy; -#line 211 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = _tmp10_ >= _tmp11_; -#line 211 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (devmgr); -#line 211 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1451 "AppWindow.c" -} - - -static gboolean -fullscreen_window_on_check_toolbar_invocation (FullscreenWindow* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 214 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (IS_FULLSCREEN_WINDOW (self), FALSE); -#line 215 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->waiting_for_invoke = FALSE; -#line 217 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = self->priv->is_toolbar_shown; -#line 217 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp0_) { -#line 218 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = FALSE; -#line 218 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1472 "AppWindow.c" - } -#line 220 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (!fullscreen_window_is_pointer_in_toolbar (self)) { -#line 221 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = FALSE; -#line 221 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1480 "AppWindow.c" - } -#line 223 "/home/jens/Source/shotwell/src/AppWindow.vala" - fullscreen_window_invoke_toolbar (self); -#line 225 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = FALSE; -#line 225 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1488 "AppWindow.c" -} - - -static gboolean -_fullscreen_window_on_check_toolbar_dismissal_gsource_func (gpointer self) -{ - gboolean result; - result = fullscreen_window_on_check_toolbar_dismissal ((FullscreenWindow*) self); -#line 233 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1499 "AppWindow.c" -} - - -static void -fullscreen_window_invoke_toolbar (FullscreenWindow* self) -{ - GtkToolbar* _tmp0_; -#line 228 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_FULLSCREEN_WINDOW (self)); -#line 229 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = self->priv->toolbar; -#line 229 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 231 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->is_toolbar_shown = TRUE; -#line 233 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) FULLSCREEN_WINDOW_TOOLBAR_CHECK_DISMISSAL_MSEC, _fullscreen_window_on_check_toolbar_dismissal_gsource_func, g_object_ref (self), g_object_unref); -#line 1517 "AppWindow.c" -} - - -static gboolean -fullscreen_window_on_check_toolbar_dismissal (FullscreenWindow* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; - gboolean _tmp1_; - time_t _tmp2_; - time_t now = 0; - time_t _tmp4_; - time_t _tmp5_; - time_t _tmp6_; - time_t _tmp7_; - time_t _tmp8_; -#line 236 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (IS_FULLSCREEN_WINDOW (self), FALSE); -#line 237 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = self->priv->is_toolbar_shown; -#line 237 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (!_tmp0_) { -#line 238 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = FALSE; -#line 238 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1544 "AppWindow.c" - } -#line 241 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = self->priv->is_toolbar_dismissal_enabled; -#line 241 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (!_tmp1_) { -#line 242 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = TRUE; -#line 242 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1554 "AppWindow.c" - } -#line 245 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (fullscreen_window_is_pointer_in_toolbar (self)) { -#line 246 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->left_toolbar_time = (time_t) 0; -#line 248 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = TRUE; -#line 248 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1564 "AppWindow.c" - } -#line 252 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = self->priv->left_toolbar_time; -#line 252 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp2_ == ((time_t) 0)) { -#line 1570 "AppWindow.c" - time_t _tmp3_; -#line 253 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = time (NULL); -#line 253 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->left_toolbar_time = _tmp3_; -#line 255 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = TRUE; -#line 255 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1580 "AppWindow.c" - } -#line 259 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = time (NULL); -#line 259 "/home/jens/Source/shotwell/src/AppWindow.vala" - now = _tmp4_; -#line 260 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = now; -#line 260 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = self->priv->left_toolbar_time; -#line 260 "/home/jens/Source/shotwell/src/AppWindow.vala" - _vala_assert (_tmp5_ >= _tmp6_, "now >= left_toolbar_time"); -#line 262 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = now; -#line 262 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp8_ = self->priv->left_toolbar_time; -#line 262 "/home/jens/Source/shotwell/src/AppWindow.vala" - if ((_tmp7_ - _tmp8_) < ((time_t) FULLSCREEN_WINDOW_TOOLBAR_DISMISSAL_SEC)) { -#line 263 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = TRUE; -#line 263 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1602 "AppWindow.c" - } -#line 265 "/home/jens/Source/shotwell/src/AppWindow.vala" - fullscreen_window_hide_toolbar (self); -#line 267 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = FALSE; -#line 267 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1610 "AppWindow.c" -} - - -static void -fullscreen_window_hide_toolbar (FullscreenWindow* self) -{ - GtkToolbar* _tmp0_; -#line 270 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_FULLSCREEN_WINDOW (self)); -#line 271 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = self->priv->toolbar; -#line 271 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 272 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->is_toolbar_shown = FALSE; -#line 1626 "AppWindow.c" -} - - -static void -fullscreen_window_class_init (FullscreenWindowClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala" - fullscreen_window_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_type_class_add_private (klass, sizeof (FullscreenWindowPrivate)); -#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((GtkWidgetClass *) klass)->configure_event = (gboolean (*) (GtkWidget *, GdkEventConfigure*)) fullscreen_window_real_configure_event; -#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) fullscreen_window_real_key_press_event; -#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((GtkWidgetClass *) klass)->destroy = (void (*) (GtkWidget *)) fullscreen_window_real_destroy; -#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((GtkWidgetClass *) klass)->delete_event = (gboolean (*) (GtkWidget *, GdkEventAny*)) fullscreen_window_real_delete_event; -#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((GtkWidgetClass *) klass)->motion_notify_event = (gboolean (*) (GtkWidget *, GdkEventMotion*)) fullscreen_window_real_motion_notify_event; -#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala" - G_OBJECT_CLASS (klass)->finalize = fullscreen_window_finalize; -#line 1649 "AppWindow.c" -} - - -static void -fullscreen_window_instance_init (FullscreenWindow * self) -{ - GtkOverlay* _tmp0_; - GtkToolButton* _tmp1_; - GtkToggleToolButton* _tmp2_; -#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv = FULLSCREEN_WINDOW_GET_PRIVATE (self); -#line 12 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = (GtkOverlay*) gtk_overlay_new (); -#line 12 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_object_ref_sink (_tmp0_); -#line 12 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->overlay = _tmp0_; -#line 13 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->toolbar = NULL; -#line 14 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = (GtkToolButton*) gtk_tool_button_new (NULL, NULL); -#line 14 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_object_ref_sink (_tmp1_); -#line 14 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->close_button = _tmp1_; -#line 15 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = (GtkToggleToolButton*) gtk_toggle_tool_button_new (); -#line 15 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_object_ref_sink (_tmp2_); -#line 15 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->pin_button = _tmp2_; -#line 16 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->is_toolbar_shown = FALSE; -#line 17 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->waiting_for_invoke = FALSE; -#line 18 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->left_toolbar_time = (time_t) 0; -#line 19 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->switched_to = FALSE; -#line 1689 "AppWindow.c" -} - - -static void -fullscreen_window_finalize (GObject * obj) -{ - FullscreenWindow * self; -#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FULLSCREEN_WINDOW, FullscreenWindow); -#line 12 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (self->priv->overlay); -#line 13 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (self->priv->toolbar); -#line 14 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (self->priv->close_button); -#line 15 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (self->priv->pin_button); -#line 7 "/home/jens/Source/shotwell/src/AppWindow.vala" - G_OBJECT_CLASS (fullscreen_window_parent_class)->finalize (obj); -#line 1709 "AppWindow.c" -} - - -GType -fullscreen_window_get_type (void) -{ - static volatile gsize fullscreen_window_type_id__volatile = 0; - if (g_once_init_enter (&fullscreen_window_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FullscreenWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fullscreen_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FullscreenWindow), 0, (GInstanceInitFunc) fullscreen_window_instance_init, NULL }; - GType fullscreen_window_type_id; - fullscreen_window_type_id = g_type_register_static (TYPE_PAGE_WINDOW, "FullscreenWindow", &g_define_type_info, 0); - g_once_init_leave (&fullscreen_window_type_id__volatile, fullscreen_window_type_id); - } - return fullscreen_window_type_id__volatile; -} - - -static void -page_window_real_switched_pages (PageWindow* self, - Page* old_page, - Page* new_page) -{ -#line 287 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail ((old_page == NULL) || IS_PAGE (old_page)); -#line 287 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail ((new_page == NULL) || IS_PAGE (new_page)); -#line 1736 "AppWindow.c" -} - - -void -page_window_switched_pages (PageWindow* self, - Page* old_page, - Page* new_page) -{ -#line 287 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_PAGE_WINDOW (self)); -#line 287 "/home/jens/Source/shotwell/src/AppWindow.vala" - PAGE_WINDOW_GET_CLASS (self)->switched_pages (self, old_page, new_page); -#line 1749 "AppWindow.c" -} - - -PageWindow* -page_window_construct (GType object_type) -{ - PageWindow * self = NULL; - Application* _tmp0_; - Application* _tmp1_; - GtkApplication* _tmp2_; - GtkApplication* _tmp3_; -#line 291 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = application_get_instance (); -#line 291 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _tmp0_; -#line 291 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = application_get_system_app (_tmp1_); -#line 291 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = _tmp2_; -#line 291 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = (PageWindow*) g_object_new (object_type, "application", _tmp3_, NULL); -#line 291 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp3_); -#line 291 "/home/jens/Source/shotwell/src/AppWindow.vala" - _application_unref0 (_tmp1_); -#line 294 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) ((GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK) | GDK_STRUCTURE_MASK)); -#line 296 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_application_window_set_show_menubar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), TRUE); -#line 290 "/home/jens/Source/shotwell/src/AppWindow.vala" - return self; -#line 1781 "AppWindow.c" -} - - -Page* -page_window_get_current_page (PageWindow* self) -{ - Page* result = NULL; - Page* _tmp0_; - Page* _tmp1_; -#line 299 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (IS_PAGE_WINDOW (self), NULL); -#line 300 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = self->priv->current_page; -#line 300 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 300 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = _tmp1_; -#line 300 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1801 "AppWindow.c" -} - - -static void -page_window_real_set_current_page (PageWindow* self, - Page* page) -{ - Page* _tmp0_; - Page* old_page = NULL; - Page* _tmp2_; - Page* _tmp3_; - Page* _tmp4_; - Page* _tmp5_; -#line 303 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_PAGE (page)); -#line 304 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = self->priv->current_page; -#line 304 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp0_ != NULL) { -#line 1821 "AppWindow.c" - Page* _tmp1_; -#line 305 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = self->priv->current_page; -#line 305 "/home/jens/Source/shotwell/src/AppWindow.vala" - page_clear_container (_tmp1_); -#line 1827 "AppWindow.c" - } -#line 307 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = self->priv->current_page; -#line 307 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 307 "/home/jens/Source/shotwell/src/AppWindow.vala" - old_page = _tmp3_; -#line 308 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = _g_object_ref0 (page); -#line 308 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (self->priv->current_page); -#line 308 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->current_page = _tmp4_; -#line 309 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = self->priv->current_page; -#line 309 "/home/jens/Source/shotwell/src/AppWindow.vala" - page_set_container (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); -#line 311 "/home/jens/Source/shotwell/src/AppWindow.vala" - page_window_switched_pages (self, old_page, page); -#line 303 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (old_page); -#line 1849 "AppWindow.c" -} - - -void -page_window_set_current_page (PageWindow* self, - Page* page) -{ -#line 303 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_PAGE_WINDOW (self)); -#line 303 "/home/jens/Source/shotwell/src/AppWindow.vala" - PAGE_WINDOW_GET_CLASS (self)->set_current_page (self, page); -#line 1861 "AppWindow.c" -} - - -static void -page_window_real_clear_current_page (PageWindow* self) -{ - Page* _tmp0_; - Page* old_page = NULL; - Page* _tmp2_; - Page* _tmp3_; -#line 315 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = self->priv->current_page; -#line 315 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp0_ != NULL) { -#line 1876 "AppWindow.c" - Page* _tmp1_; -#line 316 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = self->priv->current_page; -#line 316 "/home/jens/Source/shotwell/src/AppWindow.vala" - page_clear_container (_tmp1_); -#line 1882 "AppWindow.c" - } -#line 318 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = self->priv->current_page; -#line 318 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 318 "/home/jens/Source/shotwell/src/AppWindow.vala" - old_page = _tmp3_; -#line 319 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (self->priv->current_page); -#line 319 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->current_page = NULL; -#line 321 "/home/jens/Source/shotwell/src/AppWindow.vala" - page_window_switched_pages (self, old_page, NULL); -#line 314 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (old_page); -#line 1898 "AppWindow.c" -} - - -void -page_window_clear_current_page (PageWindow* self) -{ -#line 314 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_PAGE_WINDOW (self)); -#line 314 "/home/jens/Source/shotwell/src/AppWindow.vala" - PAGE_WINDOW_GET_CLASS (self)->clear_current_page (self); -#line 1909 "AppWindow.c" -} - - -static gboolean -page_window_real_key_press_event (GtkWidget* base, - GdkEventKey* event) -{ - PageWindow * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - GtkWidget* _tmp1_; - gboolean _tmp4_ = FALSE; - Page* _tmp5_; - gboolean _tmp7_ = FALSE; -#line 324 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PAGE_WINDOW, PageWindow); -#line 324 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 325 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = gtk_window_get_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); -#line 325 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_entry_get_type ())) { -#line 1932 "AppWindow.c" - GtkWidget* _tmp2_; - gboolean _tmp3_ = FALSE; -#line 325 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = gtk_window_get_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); -#line 325 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_signal_emit_by_name (_tmp2_, "key-press-event", event, &_tmp3_); -#line 325 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = _tmp3_; -#line 1941 "AppWindow.c" - } else { -#line 325 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = FALSE; -#line 1945 "AppWindow.c" - } -#line 325 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp0_) { -#line 326 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = TRUE; -#line 326 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1953 "AppWindow.c" - } -#line 328 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = self->priv->current_page; -#line 328 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp5_ != NULL) { -#line 1959 "AppWindow.c" - Page* _tmp6_; -#line 328 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = self->priv->current_page; -#line 328 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = page_notify_app_key_pressed (_tmp6_, event); -#line 1965 "AppWindow.c" - } else { -#line 328 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = FALSE; -#line 1969 "AppWindow.c" - } -#line 328 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp4_) { -#line 329 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = TRUE; -#line 329 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1977 "AppWindow.c" - } -#line 331 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (GTK_WIDGET_CLASS (page_window_parent_class)->key_press_event != NULL) { -#line 331 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = GTK_WIDGET_CLASS (page_window_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), gtk_widget_get_type (), GtkWidget), event); -#line 1983 "AppWindow.c" - } else { -#line 331 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = FALSE; -#line 1987 "AppWindow.c" - } -#line 331 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = _tmp7_; -#line 331 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 1993 "AppWindow.c" -} - - -static gboolean -page_window_real_key_release_event (GtkWidget* base, - GdkEventKey* event) -{ - PageWindow * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - GtkWidget* _tmp1_; - gboolean _tmp4_ = FALSE; - Page* _tmp5_; - gboolean _tmp7_ = FALSE; -#line 334 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PAGE_WINDOW, PageWindow); -#line 334 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 335 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = gtk_window_get_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); -#line 335 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_entry_get_type ())) { -#line 2016 "AppWindow.c" - GtkWidget* _tmp2_; - gboolean _tmp3_ = FALSE; -#line 335 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = gtk_window_get_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); -#line 335 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_signal_emit_by_name (_tmp2_, "key-release-event", event, &_tmp3_); -#line 335 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = _tmp3_; -#line 2025 "AppWindow.c" - } else { -#line 335 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = FALSE; -#line 2029 "AppWindow.c" - } -#line 335 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp0_) { -#line 336 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = TRUE; -#line 336 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 2037 "AppWindow.c" - } -#line 338 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = self->priv->current_page; -#line 338 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp5_ != NULL) { -#line 2043 "AppWindow.c" - Page* _tmp6_; -#line 338 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = self->priv->current_page; -#line 338 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = page_notify_app_key_released (_tmp6_, event); -#line 2049 "AppWindow.c" - } else { -#line 338 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = FALSE; -#line 2053 "AppWindow.c" - } -#line 338 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp4_) { -#line 339 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = TRUE; -#line 339 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 2061 "AppWindow.c" - } -#line 341 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (GTK_WIDGET_CLASS (page_window_parent_class)->key_release_event != NULL) { -#line 341 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = GTK_WIDGET_CLASS (page_window_parent_class)->key_release_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), gtk_widget_get_type (), GtkWidget), event); -#line 2067 "AppWindow.c" - } else { -#line 341 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = FALSE; -#line 2071 "AppWindow.c" - } -#line 341 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = _tmp7_; -#line 341 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 2077 "AppWindow.c" -} - - -static gboolean -page_window_real_focus_in_event (GtkWidget* base, - GdkEventFocus* event) -{ - PageWindow * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - Page* _tmp1_; - gboolean _tmp3_ = FALSE; -#line 344 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PAGE_WINDOW, PageWindow); -#line 344 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 345 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = self->priv->current_page; -#line 345 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp1_ != NULL) { -#line 2098 "AppWindow.c" - Page* _tmp2_; -#line 345 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = self->priv->current_page; -#line 345 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = page_notify_app_focus_in (_tmp2_, event); -#line 2104 "AppWindow.c" - } else { -#line 345 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = FALSE; -#line 2108 "AppWindow.c" - } -#line 345 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp0_) { -#line 346 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = TRUE; -#line 346 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 2116 "AppWindow.c" - } -#line 348 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (GTK_WIDGET_CLASS (page_window_parent_class)->focus_in_event != NULL) { -#line 348 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = GTK_WIDGET_CLASS (page_window_parent_class)->focus_in_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), gtk_widget_get_type (), GtkWidget), event); -#line 2122 "AppWindow.c" - } else { -#line 348 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = FALSE; -#line 2126 "AppWindow.c" - } -#line 348 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = _tmp3_; -#line 348 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 2132 "AppWindow.c" -} - - -static gboolean -page_window_real_focus_out_event (GtkWidget* base, - GdkEventFocus* event) -{ - PageWindow * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - Page* _tmp1_; - gboolean _tmp3_ = FALSE; -#line 351 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PAGE_WINDOW, PageWindow); -#line 351 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 352 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = self->priv->current_page; -#line 352 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp1_ != NULL) { -#line 2153 "AppWindow.c" - Page* _tmp2_; -#line 352 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = self->priv->current_page; -#line 352 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = page_notify_app_focus_out (_tmp2_, event); -#line 2159 "AppWindow.c" - } else { -#line 352 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = FALSE; -#line 2163 "AppWindow.c" - } -#line 352 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp0_) { -#line 353 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = TRUE; -#line 353 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 2171 "AppWindow.c" - } -#line 355 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (GTK_WIDGET_CLASS (page_window_parent_class)->focus_out_event != NULL) { -#line 355 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = GTK_WIDGET_CLASS (page_window_parent_class)->focus_out_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), gtk_widget_get_type (), GtkWidget), event); -#line 2177 "AppWindow.c" - } else { -#line 355 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = FALSE; -#line 2181 "AppWindow.c" - } -#line 355 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = _tmp3_; -#line 355 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 2187 "AppWindow.c" -} - - -static gboolean -page_window_real_configure_event (GtkWidget* base, - GdkEventConfigure* event) -{ - PageWindow * self; - gboolean result = FALSE; - Page* _tmp0_; - gboolean _tmp2_ = FALSE; -#line 358 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PAGE_WINDOW, PageWindow); -#line 358 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 359 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = self->priv->current_page; -#line 359 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp0_ != NULL) { -#line 2207 "AppWindow.c" - Page* _tmp1_; -#line 360 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = self->priv->current_page; -#line 360 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (page_notify_configure_event (_tmp1_, event)) { -#line 361 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = TRUE; -#line 361 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 2217 "AppWindow.c" - } - } -#line 364 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (GTK_WIDGET_CLASS (page_window_parent_class)->configure_event != NULL) { -#line 364 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = GTK_WIDGET_CLASS (page_window_parent_class)->configure_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), gtk_widget_get_type (), GtkWidget), event); -#line 2224 "AppWindow.c" - } else { -#line 364 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = FALSE; -#line 2228 "AppWindow.c" - } -#line 364 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = _tmp2_; -#line 364 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 2234 "AppWindow.c" -} - - -void -page_window_set_busy_cursor (PageWindow* self) -{ - gint _tmp0_; - GdkDisplay* display = NULL; - GdkWindow* _tmp1_; - GdkDisplay* _tmp2_; - GdkDisplay* _tmp3_; - GdkCursor* cursor = NULL; - GdkDisplay* _tmp4_; - GdkCursor* _tmp5_; - GdkWindow* _tmp6_; - GdkCursor* _tmp7_; -#line 367 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_PAGE_WINDOW (self)); -#line 368 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = self->priv->busy_counter; -#line 368 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->busy_counter = _tmp0_ + 1; -#line 368 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp0_ > 0) { -#line 369 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 2261 "AppWindow.c" - } -#line 371 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 371 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = gdk_window_get_display (_tmp1_); -#line 371 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 371 "/home/jens/Source/shotwell/src/AppWindow.vala" - display = _tmp3_; -#line 372 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = display; -#line 372 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = gdk_cursor_new_for_display (_tmp4_, GDK_WATCH); -#line 372 "/home/jens/Source/shotwell/src/AppWindow.vala" - cursor = _tmp5_; -#line 373 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 373 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = cursor; -#line 373 "/home/jens/Source/shotwell/src/AppWindow.vala" - gdk_window_set_cursor (_tmp6_, _tmp7_); -#line 374 "/home/jens/Source/shotwell/src/AppWindow.vala" - spin_event_loop (); -#line 367 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (cursor); -#line 367 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (display); -#line 2289 "AppWindow.c" -} - - -void -page_window_set_normal_cursor (PageWindow* self) -{ - gint _tmp0_; - GdkDisplay* display = NULL; - GdkWindow* _tmp3_; - GdkDisplay* _tmp4_; - GdkDisplay* _tmp5_; - GdkCursor* cursor = NULL; - GdkDisplay* _tmp6_; - GdkCursor* _tmp7_; - GdkWindow* _tmp8_; - GdkCursor* _tmp9_; -#line 377 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_PAGE_WINDOW (self)); -#line 378 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = self->priv->busy_counter; -#line 378 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp0_ <= 0) { -#line 379 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->busy_counter = 0; -#line 380 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 2316 "AppWindow.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 381 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = self->priv->busy_counter; -#line 381 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->busy_counter = _tmp1_ - 1; -#line 381 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = self->priv->busy_counter; -#line 381 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp2_ > 0) { -#line 382 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 2330 "AppWindow.c" - } - } -#line 385 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 385 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = gdk_window_get_display (_tmp3_); -#line 385 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = _g_object_ref0 (_tmp4_); -#line 385 "/home/jens/Source/shotwell/src/AppWindow.vala" - display = _tmp5_; -#line 386 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = display; -#line 386 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = gdk_cursor_new_for_display (_tmp6_, GDK_LEFT_PTR); -#line 386 "/home/jens/Source/shotwell/src/AppWindow.vala" - cursor = _tmp7_; -#line 387 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp8_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 387 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp9_ = cursor; -#line 387 "/home/jens/Source/shotwell/src/AppWindow.vala" - gdk_window_set_cursor (_tmp8_, _tmp9_); -#line 388 "/home/jens/Source/shotwell/src/AppWindow.vala" - spin_event_loop (); -#line 377 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (cursor); -#line 377 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (display); -#line 2359 "AppWindow.c" -} - - -static void -page_window_class_init (PageWindowClass * klass) -{ -#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala" - page_window_parent_class = g_type_class_peek_parent (klass); -#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_type_class_add_private (klass, sizeof (PageWindowPrivate)); -#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((PageWindowClass *) klass)->switched_pages = (void (*) (PageWindow *, Page*, Page*)) page_window_real_switched_pages; -#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((PageWindowClass *) klass)->set_current_page = (void (*) (PageWindow *, Page*)) page_window_real_set_current_page; -#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((PageWindowClass *) klass)->clear_current_page = (void (*) (PageWindow *)) page_window_real_clear_current_page; -#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) page_window_real_key_press_event; -#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((GtkWidgetClass *) klass)->key_release_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) page_window_real_key_release_event; -#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((GtkWidgetClass *) klass)->focus_in_event = (gboolean (*) (GtkWidget *, GdkEventFocus*)) page_window_real_focus_in_event; -#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((GtkWidgetClass *) klass)->focus_out_event = (gboolean (*) (GtkWidget *, GdkEventFocus*)) page_window_real_focus_out_event; -#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((GtkWidgetClass *) klass)->configure_event = (gboolean (*) (GtkWidget *, GdkEventConfigure*)) page_window_real_configure_event; -#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala" - G_OBJECT_CLASS (klass)->finalize = page_window_finalize; -#line 2388 "AppWindow.c" -} - - -static void -page_window_instance_init (PageWindow * self) -{ -#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv = PAGE_WINDOW_GET_PRIVATE (self); -#line 284 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->current_page = NULL; -#line 285 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->priv->busy_counter = 0; -#line 2401 "AppWindow.c" -} - - -static void -page_window_finalize (GObject * obj) -{ - PageWindow * self; -#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PAGE_WINDOW, PageWindow); -#line 284 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (self->priv->current_page); -#line 283 "/home/jens/Source/shotwell/src/AppWindow.vala" - G_OBJECT_CLASS (page_window_parent_class)->finalize (obj); -#line 2415 "AppWindow.c" -} - - -GType -page_window_get_type (void) -{ - static volatile gsize page_window_type_id__volatile = 0; - if (g_once_init_enter (&page_window_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PageWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) page_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PageWindow), 0, (GInstanceInitFunc) page_window_instance_init, NULL }; - GType page_window_type_id; - page_window_type_id = g_type_register_static (gtk_application_window_get_type (), "PageWindow", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&page_window_type_id__volatile, page_window_type_id); - } - return page_window_type_id__volatile; -} - - -static void -_app_window_on_about_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_on_about ((AppWindow*) self); -#line 2440 "AppWindow.c" -} - - -static void -_app_window_on_quit_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_on_quit ((AppWindow*) self); -#line 2451 "AppWindow.c" -} - - -static void -_app_window_on_fullscreen_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_on_fullscreen ((AppWindow*) self); -#line 2462 "AppWindow.c" -} - - -static void -_app_window_on_help_contents_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_on_help_contents ((AppWindow*) self); -#line 2473 "AppWindow.c" -} - - -static void -_app_window_on_help_faq_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_on_help_faq ((AppWindow*) self); -#line 2484 "AppWindow.c" -} - - -static void -_app_window_on_help_report_problem_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_on_help_report_problem ((AppWindow*) self); -#line 2495 "AppWindow.c" -} - - -static void -_app_window_on_undo_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_on_undo ((AppWindow*) self); -#line 2506 "AppWindow.c" -} - - -static void -_app_window_on_redo_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_on_redo ((AppWindow*) self); -#line 2517 "AppWindow.c" -} - - -static void -_app_window_on_jump_to_file_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_on_jump_to_file ((AppWindow*) self); -#line 2528 "AppWindow.c" -} - - -static void -_app_window_on_select_all_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_on_select_all ((AppWindow*) self); -#line 2539 "AppWindow.c" -} - - -static void -_app_window_on_select_none_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 456 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_on_select_none ((AppWindow*) self); -#line 2550 "AppWindow.c" -} - - -static void -_app_window_on_command_manager_altered_command_manager_altered (CommandManager* _sender, - gboolean can_undo, - gboolean can_redo, - gpointer self) -{ -#line 437 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_on_command_manager_altered ((AppWindow*) self); -#line 2562 "AppWindow.c" -} - - -AppWindow* -app_window_construct (GType object_type) -{ - AppWindow * self = NULL; - AppWindow* _tmp0_; - AppWindow* _tmp1_; - Dimensions _tmp10_; - gint _tmp11_; - Dimensions _tmp12_; - gint _tmp13_; - gboolean _tmp14_; - CommandManager* _tmp15_; - CommandManager* _tmp16_; - CommandManager* _tmp17_; - GtkCssProvider* provider = NULL; - GtkCssProvider* _tmp18_; - GError * _inner_error_ = NULL; -#line 414 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = (AppWindow*) page_window_construct (object_type); -#line 416 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_instance; -#line 416 "/home/jens/Source/shotwell/src/AppWindow.vala" - _vala_assert (_tmp0_ == NULL, "instance == null"); -#line 417 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _g_object_ref0 (self); -#line 417 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (app_window_instance); -#line 417 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_instance = _tmp1_; -#line 419 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), RESOURCES_APP_TITLE); -#line 420 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_set_default_icon_name ("shotwell"); -#line 423 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (self, TYPE_LIBRARY_WINDOW)) { -#line 2601 "AppWindow.c" - ConfigFacade* _tmp2_; - ConfigFacade* _tmp3_; - gboolean _tmp4_ = FALSE; - Dimensions _tmp5_ = {0}; -#line 424 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = config_facade_get_instance (); -#line 424 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = _tmp2_; -#line 424 "/home/jens/Source/shotwell/src/AppWindow.vala" - configuration_facade_get_library_window_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp4_, &_tmp5_); -#line 424 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->maximized = _tmp4_; -#line 424 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->dimensions = _tmp5_; -#line 424 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp3_); -#line 2618 "AppWindow.c" - } else { - ConfigFacade* _tmp6_; - ConfigFacade* _tmp7_; - gboolean _tmp8_ = FALSE; - Dimensions _tmp9_ = {0}; -#line 426 "/home/jens/Source/shotwell/src/AppWindow.vala" - _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (self, TYPE_DIRECT_WINDOW), "this is DirectWindow"); -#line 427 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = config_facade_get_instance (); -#line 427 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = _tmp6_; -#line 427 "/home/jens/Source/shotwell/src/AppWindow.vala" - configuration_facade_get_direct_window_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp8_, &_tmp9_); -#line 427 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->maximized = _tmp8_; -#line 427 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->dimensions = _tmp9_; -#line 427 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp7_); -#line 2638 "AppWindow.c" - } -#line 430 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp10_ = self->dimensions; -#line 430 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp11_ = _tmp10_.width; -#line 430 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp12_ = self->dimensions; -#line 430 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp13_ = _tmp12_.height; -#line 430 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_set_default_size (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp11_, _tmp13_); -#line 432 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp14_ = self->maximized; -#line 432 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp14_) { -#line 433 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_maximize (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); -#line 2656 "AppWindow.c" - } -#line 435 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp15_ = app_window_command_manager; -#line 435 "/home/jens/Source/shotwell/src/AppWindow.vala" - _vala_assert (_tmp15_ == NULL, "command_manager == null"); -#line 436 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp16_ = command_manager_new (COMMAND_MANAGER_DEFAULT_DEPTH); -#line 436 "/home/jens/Source/shotwell/src/AppWindow.vala" - _command_manager_unref0 (app_window_command_manager); -#line 436 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_command_manager = _tmp16_; -#line 437 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp17_ = app_window_command_manager; -#line 437 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_signal_connect_object (_tmp17_, "altered", (GCallback) _app_window_on_command_manager_altered_command_manager_altered, self, 0); -#line 445 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_add_actions (self); -#line 447 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp18_ = gtk_css_provider_new (); -#line 447 "/home/jens/Source/shotwell/src/AppWindow.vala" - provider = _tmp18_; -#line 2678 "AppWindow.c" - { - GdkScreen* _tmp19_; -#line 449 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_css_provider_load_from_data (provider, RESOURCES_CUSTOM_CSS, (gssize) -1, &_inner_error_); -#line 449 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2685 "AppWindow.c" - goto __catch238_g_error; - } -#line 450 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp19_ = gdk_screen_get_default (); -#line 450 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_style_context_add_provider_for_screen (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (provider, gtk_style_provider_get_type (), GtkStyleProvider), (guint) GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); -#line 2692 "AppWindow.c" - } - goto __finally238; - __catch238_g_error: - { - GError* err = NULL; - GError* _tmp20_; - const gchar* _tmp21_; -#line 448 "/home/jens/Source/shotwell/src/AppWindow.vala" - err = _inner_error_; -#line 448 "/home/jens/Source/shotwell/src/AppWindow.vala" - _inner_error_ = NULL; -#line 452 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp20_ = err; -#line 452 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp21_ = _tmp20_->message; -#line 452 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_debug ("AppWindow.vala:452: Unable to load custom CSS: %s", _tmp21_); -#line 448 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_error_free0 (err); -#line 2712 "AppWindow.c" - } - __finally238: -#line 448 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 448 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (provider); -#line 448 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 448 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_clear_error (&_inner_error_); -#line 448 "/home/jens/Source/shotwell/src/AppWindow.vala" - return NULL; -#line 2725 "AppWindow.c" - } -#line 414 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (provider); -#line 414 "/home/jens/Source/shotwell/src/AppWindow.vala" - return self; -#line 2731 "AppWindow.c" -} - - -static void -app_window_real_on_fullscreen (AppWindow* self) -{ -#line 470 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_critical ("Type `%s' does not implement abstract method `app_window_on_fullscreen'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 470 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 2742 "AppWindow.c" -} - - -void -app_window_on_fullscreen (AppWindow* self) -{ -#line 470 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 470 "/home/jens/Source/shotwell/src/AppWindow.vala" - APP_WINDOW_GET_CLASS (self)->on_fullscreen (self); -#line 2753 "AppWindow.c" -} - - -gboolean -app_window_has_instance (void) -{ - gboolean result = FALSE; - AppWindow* _tmp0_; -#line 473 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_instance; -#line 473 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = _tmp0_ != NULL; -#line 473 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 2768 "AppWindow.c" -} - - -AppWindow* -app_window_get_instance (void) -{ - AppWindow* result = NULL; - AppWindow* _tmp0_; - AppWindow* _tmp1_; -#line 477 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_instance; -#line 477 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 477 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = _tmp1_; -#line 477 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 2786 "AppWindow.c" -} - - -FullscreenWindow* -app_window_get_fullscreen (void) -{ - FullscreenWindow* result = NULL; - FullscreenWindow* _tmp0_; - FullscreenWindow* _tmp1_; -#line 481 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_fullscreen_window; -#line 481 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 481 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = _tmp1_; -#line 481 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 2804 "AppWindow.c" -} - - -GtkBuilder* -app_window_create_builder (const gchar* glade_filename, - void* user) -{ - GtkBuilder* result = NULL; - GtkBuilder* builder = NULL; - GtkBuilder* _tmp0_; - GError * _inner_error_ = NULL; -#line 484 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (glade_filename != NULL, NULL); -#line 485 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = gtk_builder_new (); -#line 485 "/home/jens/Source/shotwell/src/AppWindow.vala" - builder = _tmp0_; -#line 2822 "AppWindow.c" - { - gchar* _tmp1_; - gchar* _tmp2_; -#line 487 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = resources_get_ui (glade_filename); -#line 487 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = _tmp1_; -#line 487 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_builder_add_from_resource (builder, _tmp2_, &_inner_error_); -#line 487 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp2_); -#line 487 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2836 "AppWindow.c" - goto __catch239_g_error; - } - } - goto __finally239; - __catch239_g_error: - { - GError* _error_ = NULL; - GError* _tmp3_; - const gchar* _tmp4_; -#line 486 "/home/jens/Source/shotwell/src/AppWindow.vala" - _error_ = _inner_error_; -#line 486 "/home/jens/Source/shotwell/src/AppWindow.vala" - _inner_error_ = NULL; -#line 489 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = _error_; -#line 489 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = _tmp3_->message; -#line 489 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_warning ("AppWindow.vala:489: Unable to create Gtk.Builder: %s\n", _tmp4_); -#line 486 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_error_free0 (_error_); -#line 2858 "AppWindow.c" - } - __finally239: -#line 486 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 486 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (builder); -#line 486 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 486 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_clear_error (&_inner_error_); -#line 486 "/home/jens/Source/shotwell/src/AppWindow.vala" - return NULL; -#line 2871 "AppWindow.c" - } -#line 492 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_builder_connect_signals (builder, user); -#line 494 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = builder; -#line 494 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 2879 "AppWindow.c" -} - - -void -app_window_error_message (const gchar* message, - GtkWindow* parent) -{ -#line 497 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (message != NULL); -#line 497 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail ((parent == NULL) || GTK_IS_WINDOW (parent)); -#line 498 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_error_message_with_title (RESOURCES_APP_TITLE, message, parent, TRUE); -#line 2893 "AppWindow.c" -} - - -void -app_window_error_message_with_title (const gchar* title, - const gchar* message, - GtkWindow* parent, - gboolean should_escape) -{ - GtkWindow* _tmp0_ = NULL; - GtkMessageDialog* dialog = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GtkMessageDialog* _tmp5_; - GtkMessageDialog* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 501 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (title != NULL); -#line 501 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (message != NULL); -#line 501 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail ((parent == NULL) || GTK_IS_WINDOW (parent)); -#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (parent != NULL) { -#line 2919 "AppWindow.c" - GtkWindow* _tmp1_; -#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _g_object_ref0 (parent); -#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = _tmp1_; -#line 2927 "AppWindow.c" - } else { - AppWindow* _tmp2_; -#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = app_window_get_instance (); -#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_window_get_type (), GtkWindow); -#line 2936 "AppWindow.c" - } -#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = build_alert_body_text (title, message, should_escape); -#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = _tmp3_; -#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = (GtkMessageDialog*) gtk_message_dialog_new_with_markup (_tmp0_, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", _tmp4_); -#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_object_ref_sink (_tmp5_); -#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = _tmp5_; -#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp4_); -#line 505 "/home/jens/Source/shotwell/src/AppWindow.vala" - dialog = _tmp6_; -#line 509 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = build_alert_body_text (title, message, should_escape); -#line 509 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp8_ = _tmp7_; -#line 509 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_message_dialog_set_markup (dialog, _tmp8_); -#line 509 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp8_); -#line 511 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_object_set (dialog, "use-markup", TRUE, NULL); -#line 512 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog)); -#line 513 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget)); -#line 501 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (dialog); -#line 501 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 2970 "AppWindow.c" -} - - -gboolean -app_window_negate_affirm_question (const gchar* message, - const gchar* negative, - const gchar* affirmative, - const gchar* title, - GtkWindow* parent) -{ - gboolean result = FALSE; - GtkWindow* _tmp0_ = NULL; - GtkMessageDialog* dialog = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GtkMessageDialog* _tmp5_; - GtkMessageDialog* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gboolean response = FALSE; -#line 516 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (message != NULL, FALSE); -#line 516 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (negative != NULL, FALSE); -#line 516 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (affirmative != NULL, FALSE); -#line 516 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail ((parent == NULL) || GTK_IS_WINDOW (parent), FALSE); -#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (parent != NULL) { -#line 3001 "AppWindow.c" - GtkWindow* _tmp1_; -#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _g_object_ref0 (parent); -#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = _tmp1_; -#line 3009 "AppWindow.c" - } else { - AppWindow* _tmp2_; -#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = app_window_get_instance (); -#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_window_get_type (), GtkWindow); -#line 3018 "AppWindow.c" - } -#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = build_alert_body_text (title, message, TRUE); -#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = _tmp3_; -#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = (GtkMessageDialog*) gtk_message_dialog_new (_tmp0_, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", _tmp4_); -#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_object_ref_sink (_tmp5_); -#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = _tmp5_; -#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp4_); -#line 518 "/home/jens/Source/shotwell/src/AppWindow.vala" - dialog = _tmp6_; -#line 521 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = build_alert_body_text (title, message, TRUE); -#line 521 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp8_ = _tmp7_; -#line 521 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_message_dialog_set_markup (dialog, _tmp8_); -#line 521 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp8_); -#line 522 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_dialog_add_buttons (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), negative, GTK_RESPONSE_NO, affirmative, GTK_RESPONSE_YES, NULL); -#line 523 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_set_urgency_hint (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_window_get_type (), GtkWindow), TRUE); -#line 525 "/home/jens/Source/shotwell/src/AppWindow.vala" - response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_YES); -#line 527 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget)); -#line 529 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = response; -#line 529 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (dialog); -#line 529 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 529 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 3058 "AppWindow.c" -} - - -GtkResponseType -app_window_negate_affirm_cancel_question (const gchar* message, - const gchar* negative, - const gchar* affirmative, - const gchar* title, - GtkWindow* parent) -{ - GtkResponseType result = 0; - GtkWindow* _tmp0_ = NULL; - GtkMessageDialog* dialog = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GtkMessageDialog* _tmp5_; - GtkMessageDialog* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gint response = 0; -#line 532 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (message != NULL, 0); -#line 532 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (negative != NULL, 0); -#line 532 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (affirmative != NULL, 0); -#line 532 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail ((parent == NULL) || GTK_IS_WINDOW (parent), 0); -#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (parent != NULL) { -#line 3089 "AppWindow.c" - GtkWindow* _tmp1_; -#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _g_object_ref0 (parent); -#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = _tmp1_; -#line 3097 "AppWindow.c" - } else { - AppWindow* _tmp2_; -#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = app_window_get_instance (); -#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_window_get_type (), GtkWindow); -#line 3106 "AppWindow.c" - } -#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = build_alert_body_text (title, message, TRUE); -#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = _tmp3_; -#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = (GtkMessageDialog*) gtk_message_dialog_new_with_markup (_tmp0_, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", _tmp4_); -#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_object_ref_sink (_tmp5_); -#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = _tmp5_; -#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp4_); -#line 534 "/home/jens/Source/shotwell/src/AppWindow.vala" - dialog = _tmp6_; -#line 537 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_dialog_add_buttons (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), negative, GTK_RESPONSE_NO, affirmative, GTK_RESPONSE_YES, _ ("_Cancel"), GTK_RESPONSE_CANCEL, NULL); -#line 541 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = build_alert_body_text (title, message, TRUE); -#line 541 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp8_ = _tmp7_; -#line 541 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_message_dialog_set_markup (dialog, _tmp8_); -#line 541 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp8_); -#line 542 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_object_set (dialog, "use-markup", TRUE, NULL); -#line 544 "/home/jens/Source/shotwell/src/AppWindow.vala" - response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog)); -#line 546 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget)); -#line 548 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = (GtkResponseType) response; -#line 548 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (dialog); -#line 548 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 548 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 3146 "AppWindow.c" -} - - -GtkResponseType -app_window_affirm_cancel_question (const gchar* message, - const gchar* affirmative, - const gchar* title, - GtkWindow* parent) -{ - GtkResponseType result = 0; - GtkWindow* _tmp0_ = NULL; - GtkMessageDialog* dialog = NULL; - GtkMessageDialog* _tmp3_; - GtkMessageDialog* _tmp4_; - GtkMessageDialog* _tmp5_; - const gchar* _tmp6_ = NULL; - GtkMessageDialog* _tmp7_; - GtkMessageDialog* _tmp8_; - gint response = 0; - GtkMessageDialog* _tmp9_; - GtkMessageDialog* _tmp10_; -#line 551 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (message != NULL, 0); -#line 551 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (affirmative != NULL, 0); -#line 551 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail ((parent == NULL) || GTK_IS_WINDOW (parent), 0); -#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (parent != NULL) { -#line 3176 "AppWindow.c" - GtkWindow* _tmp1_; -#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _g_object_ref0 (parent); -#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = _tmp1_; -#line 3184 "AppWindow.c" - } else { - AppWindow* _tmp2_; -#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = app_window_get_instance (); -#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_window_get_type (), GtkWindow); -#line 3193 "AppWindow.c" - } -#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = (GtkMessageDialog*) gtk_message_dialog_new_with_markup (_tmp0_, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", message); -#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_object_ref_sink (_tmp3_); -#line 553 "/home/jens/Source/shotwell/src/AppWindow.vala" - dialog = _tmp3_; -#line 556 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = dialog; -#line 556 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_message_dialog_set_markup (_tmp4_, message); -#line 557 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = dialog; -#line 557 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_object_set (_tmp5_, "use-markup", TRUE, NULL); -#line 558 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (title != NULL) { -#line 558 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = title; -#line 3213 "AppWindow.c" - } else { -#line 558 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = RESOURCES_APP_TITLE; -#line 3217 "AppWindow.c" - } -#line 558 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = dialog; -#line 558 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_window_get_type (), GtkWindow), _tmp6_); -#line 559 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp8_ = dialog; -#line 559 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_dialog_add_buttons (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_dialog_get_type (), GtkDialog), affirmative, GTK_RESPONSE_YES, _ ("_Cancel"), GTK_RESPONSE_CANCEL, NULL); -#line 562 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp9_ = dialog; -#line 562 "/home/jens/Source/shotwell/src/AppWindow.vala" - response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_dialog_get_type (), GtkDialog)); -#line 564 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp10_ = dialog; -#line 564 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget)); -#line 566 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = (GtkResponseType) response; -#line 566 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (dialog); -#line 566 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 566 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 3243 "AppWindow.c" -} - - -GtkResponseType -app_window_negate_affirm_all_cancel_question (const gchar* message, - const gchar* negative, - const gchar* affirmative, - const gchar* affirmative_all, - const gchar* title, - GtkWindow* parent) -{ - GtkResponseType result = 0; - GtkWindow* _tmp0_ = NULL; - GtkMessageDialog* dialog = NULL; - GtkMessageDialog* _tmp3_; - const gchar* _tmp4_ = NULL; - GtkMessageDialog* _tmp5_; - GtkMessageDialog* _tmp6_; - gint response = 0; - GtkMessageDialog* _tmp7_; - GtkMessageDialog* _tmp8_; -#line 569 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (message != NULL, 0); -#line 569 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (negative != NULL, 0); -#line 569 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (affirmative != NULL, 0); -#line 569 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (affirmative_all != NULL, 0); -#line 569 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail ((parent == NULL) || GTK_IS_WINDOW (parent), 0); -#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (parent != NULL) { -#line 3277 "AppWindow.c" - GtkWindow* _tmp1_; -#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _g_object_ref0 (parent); -#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = _tmp1_; -#line 3285 "AppWindow.c" - } else { - AppWindow* _tmp2_; -#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = app_window_get_instance (); -#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_window_get_type (), GtkWindow); -#line 3294 "AppWindow.c" - } -#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = (GtkMessageDialog*) gtk_message_dialog_new (_tmp0_, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", message); -#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_object_ref_sink (_tmp3_); -#line 572 "/home/jens/Source/shotwell/src/AppWindow.vala" - dialog = _tmp3_; -#line 574 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (title != NULL) { -#line 574 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = title; -#line 3306 "AppWindow.c" - } else { -#line 574 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = RESOURCES_APP_TITLE; -#line 3310 "AppWindow.c" - } -#line 574 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = dialog; -#line 574 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_window_get_type (), GtkWindow), _tmp4_); -#line 575 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = dialog; -#line 575 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_dialog_add_buttons (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_dialog_get_type (), GtkDialog), negative, GTK_RESPONSE_NO, affirmative, GTK_RESPONSE_YES, affirmative_all, GTK_RESPONSE_APPLY, _ ("_Cancel"), GTK_RESPONSE_CANCEL, NULL); -#line 578 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = dialog; -#line 578 "/home/jens/Source/shotwell/src/AppWindow.vala" - response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_dialog_get_type (), GtkDialog)); -#line 580 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp8_ = dialog; -#line 580 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget)); -#line 582 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = (GtkResponseType) response; -#line 582 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (dialog); -#line 582 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 582 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 3336 "AppWindow.c" -} - - -void -app_window_database_error (GError* err) -{ - const gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 586 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = err->message; -#line 586 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = g_strdup_printf (_ ("A fatal error occurred when accessing Shotwell’s library. Shotwell can" \ -"not continue.\n" \ -"\n" \ -"%s"), _tmp0_); -#line 586 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = _tmp1_; -#line 586 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_panic (_tmp2_); -#line 586 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp2_); -#line 3356 "AppWindow.c" -} - - -void -app_window_panic (const gchar* msg) -{ - Application* _tmp0_; - Application* _tmp1_; -#line 590 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (msg != NULL); -#line 591 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_critical ("AppWindow.vala:591: %s", msg); -#line 592 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_error_message (msg, NULL); -#line 594 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = application_get_instance (); -#line 594 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _tmp0_; -#line 594 "/home/jens/Source/shotwell/src/AppWindow.vala" - application_panic (_tmp1_); -#line 594 "/home/jens/Source/shotwell/src/AppWindow.vala" - _application_unref0 (_tmp1_); -#line 3379 "AppWindow.c" -} - - -static gchar* -app_window_real_get_app_role (AppWindow* self) -{ -#line 597 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_critical ("Type `%s' does not implement abstract method `app_window_get_app_role'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 597 "/home/jens/Source/shotwell/src/AppWindow.vala" - return NULL; -#line 3390 "AppWindow.c" -} - - -gchar* -app_window_get_app_role (AppWindow* self) -{ -#line 597 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (IS_APP_WINDOW (self), NULL); -#line 597 "/home/jens/Source/shotwell/src/AppWindow.vala" - return APP_WINDOW_GET_CLASS (self)->get_app_role (self); -#line 3401 "AppWindow.c" -} - - -void -app_window_on_about (AppWindow* self) -{ -#line 600 "/home/jens/Source/shotwell/src/AppWindow.vala" - static const gchar* artists[2] = {"Braunschweiger Löwe created by Magnus Manske., CC BY-SA 3.0, https://c" \ -"ommons.wikimedia.org/w/index.php?curid=109735", NULL}; -#line 3410 "AppWindow.c" - gchar* _tmp0_; - gchar* _tmp1_; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; -#line 599 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 601 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_get_app_role (self); -#line 601 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _tmp0_; -#line 601 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = resources_get_icon (RESOURCES_ICON_ABOUT_LOGO, -1); -#line 601 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = _tmp2_; -#line 601 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_show_about_dialog (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), "version", RESOURCES_APP_VERSION " \u2013 \"Braunschweig\"", "comments", _tmp1_, "copyright", RESOURCES_COPYRIGHT, "website", RESOURCES_HOME_URL, "license", RESOURCES_LICENSE, "website-label", _ ("Visit the Shotwell web site"), "authors", RESOURCES_AUTHORS, "logo", _tmp3_, "artists", artists, "translator-credits", _ ("translator-credits"), NULL, NULL); -#line 601 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp3_); -#line 601 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp1_); -#line 3431 "AppWindow.c" -} - - -static void -app_window_on_help_contents (AppWindow* self) -{ - GError * _inner_error_ = NULL; -#line 616 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 3441 "AppWindow.c" - { - GdkScreen* _tmp0_; -#line 618 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = gtk_window_get_screen (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); -#line 618 "/home/jens/Source/shotwell/src/AppWindow.vala" - resources_launch_help (_tmp0_, NULL, &_inner_error_); -#line 618 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3450 "AppWindow.c" - goto __catch240_g_error; - } - } - goto __finally240; - __catch240_g_error: - { - GError* err = NULL; - GError* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 617 "/home/jens/Source/shotwell/src/AppWindow.vala" - err = _inner_error_; -#line 617 "/home/jens/Source/shotwell/src/AppWindow.vala" - _inner_error_ = NULL; -#line 620 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = err; -#line 620 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = _tmp1_->message; -#line 620 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = g_strdup_printf (_ ("Unable to display help: %s"), _tmp2_); -#line 620 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = _tmp3_; -#line 620 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_error_message (_tmp4_, NULL); -#line 620 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp4_); -#line 617 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_error_free0 (err); -#line 3480 "AppWindow.c" - } - __finally240: -#line 617 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 617 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 617 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_clear_error (&_inner_error_); -#line 617 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 3491 "AppWindow.c" - } -} - - -static void -app_window_on_help_report_problem (AppWindow* self) -{ - GError * _inner_error_ = NULL; -#line 624 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 3502 "AppWindow.c" - { -#line 626 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_show_uri (self, RESOURCES_BUG_DB_URL, &_inner_error_); -#line 626 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3508 "AppWindow.c" - goto __catch241_g_error; - } - } - goto __finally241; - __catch241_g_error: - { - GError* err = NULL; - GError* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 625 "/home/jens/Source/shotwell/src/AppWindow.vala" - err = _inner_error_; -#line 625 "/home/jens/Source/shotwell/src/AppWindow.vala" - _inner_error_ = NULL; -#line 628 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = err; -#line 628 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _tmp0_->message; -#line 628 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = g_strdup_printf (_ ("Unable to navigate to bug database: %s"), _tmp1_); -#line 628 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = _tmp2_; -#line 628 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_error_message (_tmp3_, NULL); -#line 628 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp3_); -#line 625 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_error_free0 (err); -#line 3538 "AppWindow.c" - } - __finally241: -#line 625 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 625 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 625 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_clear_error (&_inner_error_); -#line 625 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 3549 "AppWindow.c" - } -} - - -static void -app_window_on_help_faq (AppWindow* self) -{ - GError * _inner_error_ = NULL; -#line 632 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 3560 "AppWindow.c" - { -#line 634 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_show_uri (self, RESOURCES_FAQ_URL, &_inner_error_); -#line 634 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3566 "AppWindow.c" - goto __catch242_g_error; - } - } - goto __finally242; - __catch242_g_error: - { - GError* err = NULL; - GError* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 633 "/home/jens/Source/shotwell/src/AppWindow.vala" - err = _inner_error_; -#line 633 "/home/jens/Source/shotwell/src/AppWindow.vala" - _inner_error_ = NULL; -#line 636 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = err; -#line 636 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _tmp0_->message; -#line 636 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = g_strdup_printf (_ ("Unable to display FAQ: %s"), _tmp1_); -#line 636 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = _tmp2_; -#line 636 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_error_message (_tmp3_, NULL); -#line 636 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp3_); -#line 633 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_error_free0 (err); -#line 3596 "AppWindow.c" - } - __finally242: -#line 633 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 633 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 633 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_clear_error (&_inner_error_); -#line 633 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 3607 "AppWindow.c" - } -} - - -static void -app_window_real_on_quit (AppWindow* self) -{ - Application* _tmp0_; - Application* _tmp1_; -#line 641 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = application_get_instance (); -#line 641 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _tmp0_; -#line 641 "/home/jens/Source/shotwell/src/AppWindow.vala" - application_exit (_tmp1_); -#line 641 "/home/jens/Source/shotwell/src/AppWindow.vala" - _application_unref0 (_tmp1_); -#line 3625 "AppWindow.c" -} - - -void -app_window_on_quit (AppWindow* self) -{ -#line 640 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 640 "/home/jens/Source/shotwell/src/AppWindow.vala" - APP_WINDOW_GET_CLASS (self)->on_quit (self); -#line 3636 "AppWindow.c" -} - - -void -app_window_on_jump_to_file (AppWindow* self) -{ - Page* _tmp0_; - Page* _tmp1_; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; - gboolean _tmp4_; - MediaSource* media = NULL; - Page* _tmp5_; - Page* _tmp6_; - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; - DataView* _tmp9_; - DataView* _tmp10_; - DataSource* _tmp11_; - MediaSource* _tmp12_; - MediaSource* _tmp13_; - MediaSource* _tmp14_; - GError * _inner_error_ = NULL; -#line 644 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 645 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 645 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _tmp0_; -#line 645 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = page_get_view (_tmp1_); -#line 645 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = _tmp2_; -#line 645 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = view_collection_get_selected_count (_tmp3_) != 1; -#line 645 "/home/jens/Source/shotwell/src/AppWindow.vala" - _data_collection_unref0 (_tmp3_); -#line 645 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp1_); -#line 645 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp4_) { -#line 646 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 3680 "AppWindow.c" - } -#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = _tmp5_; -#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = page_get_view (_tmp6_); -#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp8_ = _tmp7_; -#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp9_ = view_collection_get_selected_at (_tmp8_, 0); -#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp10_ = _tmp9_; -#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp11_ = data_view_get_source (_tmp10_); -#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp12_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_MEDIA_SOURCE) ? ((MediaSource*) _tmp11_) : NULL; -#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp12_ == NULL) { -#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp11_); -#line 3702 "AppWindow.c" - } -#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp13_ = _tmp12_; -#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp10_); -#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala" - _data_collection_unref0 (_tmp8_); -#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp6_); -#line 648 "/home/jens/Source/shotwell/src/AppWindow.vala" - media = _tmp13_; -#line 650 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp14_ = media; -#line 650 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp14_ == NULL) { -#line 651 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (media); -#line 651 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 3722 "AppWindow.c" - } - { - AppWindow* _tmp15_; - AppWindow* _tmp16_; - MediaSource* _tmp17_; - GFile* _tmp18_; - GFile* _tmp19_; -#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp15_ = app_window_get_instance (); -#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp16_ = _tmp15_; -#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp17_ = media; -#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp18_ = media_source_get_master_file (_tmp17_); -#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp19_ = _tmp18_; -#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_show_file_uri (_tmp16_, _tmp19_, &_inner_error_); -#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp19_); -#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp16_); -#line 654 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3748 "AppWindow.c" - goto __catch243_g_error; - } - } - goto __finally243; - __catch243_g_error: - { - GError* err = NULL; - GError* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; -#line 653 "/home/jens/Source/shotwell/src/AppWindow.vala" - err = _inner_error_; -#line 653 "/home/jens/Source/shotwell/src/AppWindow.vala" - _inner_error_ = NULL; -#line 656 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp20_ = err; -#line 656 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp21_ = resources_jump_to_file_failed (_tmp20_); -#line 656 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp22_ = _tmp21_; -#line 656 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_error_message (_tmp22_, NULL); -#line 656 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp22_); -#line 653 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_error_free0 (err); -#line 3775 "AppWindow.c" - } - __finally243: -#line 653 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 653 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (media); -#line 653 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 653 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_clear_error (&_inner_error_); -#line 653 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 3788 "AppWindow.c" - } -#line 644 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (media); -#line 3792 "AppWindow.c" -} - - -static void -app_window_real_destroy (GtkWidget* base) -{ - AppWindow * self; -#line 660 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_APP_WINDOW, AppWindow); -#line 661 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_on_quit (self); -#line 3804 "AppWindow.c" -} - - -static gchar* -string_replace (const gchar* self, - const gchar* old, - const gchar* replacement) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 3827 "AppWindow.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 3831 "AppWindow.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 3837 "AppWindow.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 3841 "AppWindow.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 3845 "AppWindow.c" - gchar* _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = g_strdup (self); -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3853 "AppWindow.c" - } - { - GRegex* regex = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GRegex* _tmp5_; - GRegex* _tmp6_; - gchar* _tmp7_ = NULL; - GRegex* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_regex_escape_string (old, -1); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp5_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp4_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - regex = _tmp6_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 3881 "AppWindow.c" - goto __catch244_g_regex_error; - } -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 3890 "AppWindow.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = regex; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp9_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 3904 "AppWindow.c" - goto __catch244_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 3915 "AppWindow.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = _tmp7_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = NULL; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp10_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp7_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3929 "AppWindow.c" - } - goto __finally244; - __catch244_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 3943 "AppWindow.c" - } - __finally244: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 3954 "AppWindow.c" - } -} - - -void -app_window_show_file_uri (AppWindow* self, - GFile* file, - GError** error) -{ - gchar* tmp = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_; - GError * _inner_error_ = NULL; -#line 664 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 664 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 669 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = get_nautilus_install_location (); -#line 669 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _tmp0_; -#line 669 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = _tmp1_ != NULL; -#line 669 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp1_); -#line 669 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp2_) { -#line 3983 "AppWindow.c" - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - const gchar* _tmp6_; -#line 670 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = g_file_get_uri (file); -#line 670 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = _tmp3_; -#line 670 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = string_replace (_tmp4_, "'", "\\\'"); -#line 670 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (tmp); -#line 670 "/home/jens/Source/shotwell/src/AppWindow.vala" - tmp = _tmp5_; -#line 670 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp4_); -#line 671 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = tmp; -#line 671 "/home/jens/Source/shotwell/src/AppWindow.vala" - show_file_in_nautilus (_tmp6_, &_inner_error_); -#line 671 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 671 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_propagate_error (error, _inner_error_); -#line 671 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (tmp); -#line 671 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 4012 "AppWindow.c" - } - } else { - GFile* _tmp7_; - GFile* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - const gchar* _tmp12_; -#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = g_file_get_parent (file); -#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp8_ = _tmp7_; -#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp9_ = g_file_get_uri (_tmp8_); -#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp10_ = _tmp9_; -#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp11_ = string_replace (_tmp10_, "'", "\\\'"); -#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (tmp); -#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala" - tmp = _tmp11_; -#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp10_); -#line 673 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp8_); -#line 674 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp12_ = tmp; -#line 674 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_show_uri (self, _tmp12_, &_inner_error_); -#line 674 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 674 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_propagate_error (error, _inner_error_); -#line 674 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (tmp); -#line 674 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 4051 "AppWindow.c" - } - } -#line 664 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (tmp); -#line 4056 "AppWindow.c" -} - - -void -app_window_show_uri (AppWindow* self, - const gchar* url, - GError** error) -{ - GdkWindow* _tmp0_; - GdkScreen* _tmp1_; - GError * _inner_error_ = NULL; -#line 678 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 678 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (url != NULL); -#line 679 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 679 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = gdk_window_get_screen (_tmp0_); -#line 679 "/home/jens/Source/shotwell/src/AppWindow.vala" - sys_show_uri (_tmp1_, url, &_inner_error_); -#line 679 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 679 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_propagate_error (error, _inner_error_); -#line 679 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 4084 "AppWindow.c" - } -} - - -static void -app_window_real_add_actions (AppWindow* self) -{ -#line 683 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), APP_WINDOW_common_actions, G_N_ELEMENTS (APP_WINDOW_common_actions), self); -#line 4094 "AppWindow.c" -} - - -void -app_window_add_actions (AppWindow* self) -{ -#line 682 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 682 "/home/jens/Source/shotwell/src/AppWindow.vala" - APP_WINDOW_GET_CLASS (self)->add_actions (self); -#line 4105 "AppWindow.c" -} - - -void -app_window_go_fullscreen (AppWindow* self, - Page* page) -{ - FullscreenWindow* _tmp0_; - gint _tmp2_ = 0; - gint _tmp3_ = 0; - FullscreenWindow* fsw = NULL; - FullscreenWindow* _tmp4_; - Page* _tmp5_; - Page* _tmp6_; - gboolean _tmp7_; - FullscreenWindow* _tmp11_; - FullscreenWindow* _tmp12_; - FullscreenWindow* _tmp13_; -#line 686 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 686 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_PAGE (page)); -#line 688 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_fullscreen_window; -#line 688 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp0_ != NULL) { -#line 4132 "AppWindow.c" - FullscreenWindow* _tmp1_; -#line 689 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = app_window_fullscreen_window; -#line 689 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow)); -#line 691 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 4140 "AppWindow.c" - } -#line 694 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_get_position (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), &_tmp2_, &_tmp3_); -#line 694 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->pos_x = _tmp2_; -#line 694 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->pos_y = _tmp3_; -#line 695 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 697 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = fullscreen_window_new (page); -#line 697 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_object_ref_sink (_tmp4_); -#line 697 "/home/jens/Source/shotwell/src/AppWindow.vala" - fsw = _tmp4_; -#line 699 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 699 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = _tmp5_; -#line 699 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = _tmp6_ != NULL; -#line 699 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp6_); -#line 699 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp7_) { -#line 4166 "AppWindow.c" - Page* _tmp8_; - Page* _tmp9_; - FullscreenWindow* _tmp10_; -#line 700 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp8_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 700 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp9_ = _tmp8_; -#line 700 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp10_ = fsw; -#line 700 "/home/jens/Source/shotwell/src/AppWindow.vala" - page_switching_to_fullscreen (_tmp9_, _tmp10_); -#line 700 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp9_); -#line 4180 "AppWindow.c" - } -#line 702 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp11_ = fsw; -#line 702 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp12_ = _g_object_ref0 (_tmp11_); -#line 702 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (app_window_fullscreen_window); -#line 702 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_fullscreen_window = _tmp12_; -#line 703 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp13_ = app_window_fullscreen_window; -#line 703 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_window_get_type (), GtkWindow)); -#line 686 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (fsw); -#line 4196 "AppWindow.c" -} - - -void -app_window_end_fullscreen (AppWindow* self) -{ - FullscreenWindow* _tmp0_; - gint _tmp1_; - gint _tmp2_; - Page* _tmp3_; - Page* _tmp4_; - gboolean _tmp5_; - FullscreenWindow* _tmp9_; - FullscreenWindow* _tmp10_; -#line 706 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 707 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_fullscreen_window; -#line 707 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp0_ == NULL) { -#line 708 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 4219 "AppWindow.c" - } -#line 710 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = self->pos_x; -#line 710 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = self->pos_y; -#line 710 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_move (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp1_, _tmp2_); -#line 712 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 714 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 714 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = _tmp3_; -#line 714 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = _tmp4_ != NULL; -#line 714 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp4_); -#line 714 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp5_) { -#line 4239 "AppWindow.c" - Page* _tmp6_; - Page* _tmp7_; - FullscreenWindow* _tmp8_; -#line 715 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 715 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = _tmp6_; -#line 715 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp8_ = app_window_fullscreen_window; -#line 715 "/home/jens/Source/shotwell/src/AppWindow.vala" - page_returning_from_fullscreen (_tmp7_, _tmp8_); -#line 715 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp7_); -#line 4253 "AppWindow.c" - } -#line 717 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp9_ = app_window_fullscreen_window; -#line 717 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget)); -#line 718 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp10_ = app_window_fullscreen_window; -#line 718 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget)); -#line 719 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (app_window_fullscreen_window); -#line 719 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_fullscreen_window = NULL; -#line 721 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); -#line 4269 "AppWindow.c" -} - - -GAction* -app_window_get_common_action (AppWindow* self, - const gchar* name) -{ - GAction* result = NULL; - GAction* _tmp0_; - GAction* _tmp1_; -#line 724 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (IS_APP_WINDOW (self), NULL); -#line 724 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 725 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), name); -#line 725 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 725 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = _tmp1_; -#line 725 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 4292 "AppWindow.c" -} - - -void -app_window_set_common_action_sensitive (AppWindow* self, - const gchar* name, - gboolean sensitive) -{ - GSimpleAction* action = NULL; - GAction* _tmp0_; - GSimpleAction* _tmp1_; - GSimpleAction* _tmp2_; -#line 728 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 728 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (name != NULL); -#line 729 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_get_common_action (self, name); -#line 729 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL; -#line 729 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp1_ == NULL) { -#line 729 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 4317 "AppWindow.c" - } -#line 729 "/home/jens/Source/shotwell/src/AppWindow.vala" - action = _tmp1_; -#line 730 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = action; -#line 730 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp2_ != NULL) { -#line 4325 "AppWindow.c" - GSimpleAction* _tmp3_; -#line 731 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = action; -#line 731 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_simple_action_set_enabled (_tmp3_, sensitive); -#line 4331 "AppWindow.c" - } -#line 728 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (action); -#line 4335 "AppWindow.c" -} - - -void -app_window_set_common_action_important (AppWindow* self, - const gchar* name, - gboolean important) -{ - GSimpleAction* action = NULL; - GAction* _tmp0_; - GSimpleAction* _tmp1_; - GSimpleAction* _tmp2_; -#line 734 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 734 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (name != NULL); -#line 735 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_get_common_action (self, name); -#line 735 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL; -#line 735 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp1_ == NULL) { -#line 735 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 4360 "AppWindow.c" - } -#line 735 "/home/jens/Source/shotwell/src/AppWindow.vala" - action = _tmp1_; -#line 736 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = action; -#line 736 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp2_ != NULL) { -#line 4368 "AppWindow.c" - GSimpleAction* _tmp3_; - gboolean _tmp4_; - gboolean _tmp5_; -#line 737 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = action; -#line 737 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 737 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = _tmp4_; -#line 737 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_simple_action_set_enabled (_tmp3_, _tmp5_); -#line 4380 "AppWindow.c" - } -#line 734 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (action); -#line 4384 "AppWindow.c" -} - - -void -app_window_set_common_action_visible (AppWindow* self, - const gchar* name, - gboolean visible) -{ - GSimpleAction* action = NULL; - GAction* _tmp0_; - GSimpleAction* _tmp1_; - GSimpleAction* _tmp2_; -#line 740 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 740 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (name != NULL); -#line 741 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_get_common_action (self, name); -#line 741 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL; -#line 741 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp1_ == NULL) { -#line 741 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 4409 "AppWindow.c" - } -#line 741 "/home/jens/Source/shotwell/src/AppWindow.vala" - action = _tmp1_; -#line 742 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = action; -#line 742 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp2_ != NULL) { -#line 4417 "AppWindow.c" - GSimpleAction* _tmp3_; - gboolean _tmp4_; - gboolean _tmp5_; -#line 743 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = action; -#line 743 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 743 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = _tmp4_; -#line 743 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_simple_action_set_enabled (_tmp3_, _tmp5_); -#line 4429 "AppWindow.c" - } -#line 740 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (action); -#line 4433 "AppWindow.c" -} - - -static void -_app_window_on_update_common_actions_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self) -{ -#line 750 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_on_update_common_actions ((AppWindow*) self); -#line 4445 "AppWindow.c" -} - - -static void -_app_window_on_update_common_actions_view_collection_selection_group_altered (ViewCollection* _sender, - gpointer self) -{ -#line 751 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_on_update_common_actions ((AppWindow*) self); -#line 4455 "AppWindow.c" -} - - -static void -_app_window_on_update_common_actions_view_collection_items_state_changed (ViewCollection* _sender, - GeeIterable* changed, - gpointer self) -{ -#line 752 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_on_update_common_actions ((AppWindow*) self); -#line 4466 "AppWindow.c" -} - - -static void -app_window_real_switched_pages (PageWindow* base, - Page* old_page, - Page* new_page) -{ - AppWindow * self; -#line 746 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_APP_WINDOW, AppWindow); -#line 746 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail ((old_page == NULL) || IS_PAGE (old_page)); -#line 746 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail ((new_page == NULL) || IS_PAGE (new_page)); -#line 747 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_update_common_action_availability (self, old_page, new_page); -#line 749 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (old_page != NULL) { -#line 4486 "AppWindow.c" - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - guint _tmp2_; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - guint _tmp5_; - ViewCollection* _tmp6_; - ViewCollection* _tmp7_; - guint _tmp8_; -#line 750 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = page_get_view (old_page); -#line 750 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _tmp0_; -#line 750 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp2_, NULL, FALSE); -#line 750 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _app_window_on_update_common_actions_data_collection_contents_altered, self); -#line 750 "/home/jens/Source/shotwell/src/AppWindow.vala" - _data_collection_unref0 (_tmp1_); -#line 751 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = page_get_view (old_page); -#line 751 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = _tmp3_; -#line 751 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_signal_parse_name ("selection-group-altered", TYPE_VIEW_COLLECTION, &_tmp5_, NULL, FALSE); -#line 751 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _app_window_on_update_common_actions_view_collection_selection_group_altered, self); -#line 751 "/home/jens/Source/shotwell/src/AppWindow.vala" - _data_collection_unref0 (_tmp4_); -#line 752 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = page_get_view (old_page); -#line 752 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = _tmp6_; -#line 752 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_signal_parse_name ("items-state-changed", TYPE_VIEW_COLLECTION, &_tmp8_, NULL, FALSE); -#line 752 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_signal_handlers_disconnect_matched (_tmp7_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _app_window_on_update_common_actions_view_collection_items_state_changed, self); -#line 752 "/home/jens/Source/shotwell/src/AppWindow.vala" - _data_collection_unref0 (_tmp7_); -#line 4526 "AppWindow.c" - } -#line 755 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (new_page != NULL) { -#line 4530 "AppWindow.c" - ViewCollection* _tmp9_; - ViewCollection* _tmp10_; - ViewCollection* _tmp11_; - ViewCollection* _tmp12_; - ViewCollection* _tmp13_; - ViewCollection* _tmp14_; - ViewCollection* _tmp15_; - ViewCollection* _tmp16_; - ViewCollection* _tmp17_; - ViewCollection* _tmp18_; -#line 756 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp9_ = page_get_view (new_page); -#line 756 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp10_ = _tmp9_; -#line 756 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _app_window_on_update_common_actions_data_collection_contents_altered, self, 0); -#line 756 "/home/jens/Source/shotwell/src/AppWindow.vala" - _data_collection_unref0 (_tmp10_); -#line 757 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp11_ = page_get_view (new_page); -#line 757 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp12_ = _tmp11_; -#line 757 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_signal_connect_object (_tmp12_, "selection-group-altered", (GCallback) _app_window_on_update_common_actions_view_collection_selection_group_altered, self, 0); -#line 757 "/home/jens/Source/shotwell/src/AppWindow.vala" - _data_collection_unref0 (_tmp12_); -#line 758 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp13_ = page_get_view (new_page); -#line 758 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp14_ = _tmp13_; -#line 758 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_signal_connect_object (_tmp14_, "items-state-changed", (GCallback) _app_window_on_update_common_actions_view_collection_items_state_changed, self, 0); -#line 758 "/home/jens/Source/shotwell/src/AppWindow.vala" - _data_collection_unref0 (_tmp14_); -#line 760 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp15_ = page_get_view (new_page); -#line 760 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp16_ = _tmp15_; -#line 760 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp17_ = page_get_view (new_page); -#line 760 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp18_ = _tmp17_; -#line 760 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_update_common_actions (self, new_page, view_collection_get_selected_count (_tmp16_), data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_COLLECTION, DataCollection))); -#line 760 "/home/jens/Source/shotwell/src/AppWindow.vala" - _data_collection_unref0 (_tmp18_); -#line 760 "/home/jens/Source/shotwell/src/AppWindow.vala" - _data_collection_unref0 (_tmp16_); -#line 4579 "AppWindow.c" - } -#line 764 "/home/jens/Source/shotwell/src/AppWindow.vala" - PAGE_WINDOW_CLASS (app_window_parent_class)->switched_pages (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow), old_page, new_page); -#line 4583 "AppWindow.c" -} - - -static void -app_window_real_update_common_action_availability (AppWindow* self, - Page* old_page, - Page* new_page) -{ - gboolean is_checkerboard = FALSE; -#line 770 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail ((old_page == NULL) || IS_PAGE (old_page)); -#line 770 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail ((new_page == NULL) || IS_PAGE (new_page)); -#line 771 "/home/jens/Source/shotwell/src/AppWindow.vala" - is_checkerboard = G_TYPE_CHECK_INSTANCE_TYPE (new_page, TYPE_CHECKERBOARD_PAGE); -#line 773 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_set_common_action_sensitive (self, "CommonSelectAll", is_checkerboard); -#line 774 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_set_common_action_sensitive (self, "CommonSelectNone", is_checkerboard); -#line 4603 "AppWindow.c" -} - - -void -app_window_update_common_action_availability (AppWindow* self, - Page* old_page, - Page* new_page) -{ -#line 770 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 770 "/home/jens/Source/shotwell/src/AppWindow.vala" - APP_WINDOW_GET_CLASS (self)->update_common_action_availability (self, old_page, new_page); -#line 4616 "AppWindow.c" -} - - -static void -app_window_real_update_common_actions (AppWindow* self, - Page* page, - gint selected_count, - gint count) -{ -#line 780 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_PAGE (page)); -#line 781 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_CHECKERBOARD_PAGE)) { -#line 782 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_set_common_action_sensitive (self, "CommonSelectAll", count > 0); -#line 4632 "AppWindow.c" - } -#line 783 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_set_common_action_sensitive (self, "CommonJumpToFile", selected_count == 1); -#line 785 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_decorate_undo_action (self); -#line 786 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_decorate_redo_action (self); -#line 4640 "AppWindow.c" -} - - -void -app_window_update_common_actions (AppWindow* self, - Page* page, - gint selected_count, - gint count) -{ -#line 780 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 780 "/home/jens/Source/shotwell/src/AppWindow.vala" - APP_WINDOW_GET_CLASS (self)->update_common_actions (self, page, selected_count, count); -#line 4654 "AppWindow.c" -} - - -static void -app_window_on_update_common_actions (AppWindow* self) -{ - Page* page = NULL; - Page* _tmp0_; - Page* _tmp1_; -#line 789 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 790 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 790 "/home/jens/Source/shotwell/src/AppWindow.vala" - page = _tmp0_; -#line 791 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = page; -#line 791 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp1_ != NULL) { -#line 4674 "AppWindow.c" - Page* _tmp2_; - Page* _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - Page* _tmp6_; - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; -#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = page; -#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = page; -#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = page_get_view (_tmp3_); -#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = _tmp4_; -#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = page; -#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = page_get_view (_tmp6_); -#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp8_ = _tmp7_; -#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_update_common_actions (self, _tmp2_, view_collection_get_selected_count (_tmp5_), data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection))); -#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala" - _data_collection_unref0 (_tmp8_); -#line 792 "/home/jens/Source/shotwell/src/AppWindow.vala" - _data_collection_unref0 (_tmp5_); -#line 4702 "AppWindow.c" - } -#line 789 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (page); -#line 4706 "AppWindow.c" -} - - -void -app_window_update_menu_item_label (AppWindow* self, - const gchar* id, - const gchar* new_label) -{ - GMenu* bar = NULL; - Page* _tmp0_; - Page* _tmp1_; - GMenuModel* _tmp2_; - GMenu* _tmp3_; - GMenu* _tmp4_; - GMenu* _tmp5_; - gint items = 0; - GMenu* _tmp6_; -#line 795 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 795 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (id != NULL); -#line 795 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (new_label != NULL); -#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _tmp0_; -#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = page_get_menubar (_tmp1_); -#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, g_menu_get_type ()) ? ((GMenu*) _tmp2_) : NULL; -#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp3_ == NULL) { -#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp2_); -#line 4742 "AppWindow.c" - } -#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = _tmp3_; -#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp1_); -#line 797 "/home/jens/Source/shotwell/src/AppWindow.vala" - bar = _tmp4_; -#line 799 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = bar; -#line 799 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp5_ == NULL) { -#line 800 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (bar); -#line 800 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 4758 "AppWindow.c" - } -#line 803 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = bar; -#line 803 "/home/jens/Source/shotwell/src/AppWindow.vala" - items = g_menu_model_get_n_items (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, g_menu_model_get_type (), GMenuModel)); -#line 4764 "AppWindow.c" - { - gint i = 0; -#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala" - i = 0; -#line 4769 "AppWindow.c" - { - gboolean _tmp7_ = FALSE; -#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = TRUE; -#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala" - while (TRUE) { -#line 4776 "AppWindow.c" - gint _tmp9_; - gint _tmp10_; - GMenuModel* model = NULL; - GMenu* _tmp11_; - gint _tmp12_; - GMenuModel* _tmp13_; - GMenu* _tmp14_; - gint model_items = 0; - GMenuModel* _tmp15_; -#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (!_tmp7_) { -#line 4788 "AppWindow.c" - gint _tmp8_; -#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp8_ = i; -#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala" - i = _tmp8_ + 1; -#line 4794 "AppWindow.c" - } -#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = FALSE; -#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp9_ = i; -#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp10_ = items; -#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (!(_tmp9_ < _tmp10_)) { -#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala" - break; -#line 4806 "AppWindow.c" - } -#line 805 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp11_ = bar; -#line 805 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp12_ = i; -#line 805 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp13_ = g_menu_model_get_item_link (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, g_menu_model_get_type (), GMenuModel), _tmp12_, G_MENU_LINK_SUBMENU); -#line 805 "/home/jens/Source/shotwell/src/AppWindow.vala" - model = _tmp13_; -#line 806 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp14_ = bar; -#line 806 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp14_ == NULL) { -#line 807 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (model); -#line 807 "/home/jens/Source/shotwell/src/AppWindow.vala" - continue; -#line 4824 "AppWindow.c" - } -#line 810 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp15_ = model; -#line 810 "/home/jens/Source/shotwell/src/AppWindow.vala" - model_items = g_menu_model_get_n_items (_tmp15_); -#line 4830 "AppWindow.c" - { - gint j = 0; -#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" - j = 0; -#line 4835 "AppWindow.c" - { - gboolean _tmp16_ = FALSE; -#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp16_ = TRUE; -#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" - while (TRUE) { -#line 4842 "AppWindow.c" - gint _tmp18_; - gint _tmp19_; - GMenuModel* subsection = NULL; - GMenuModel* _tmp20_; - gint _tmp21_; - GMenuModel* _tmp22_; - GMenuModel* _tmp23_; - gint sub_items = 0; - GMenuModel* _tmp24_; -#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (!_tmp16_) { -#line 4854 "AppWindow.c" - gint _tmp17_; -#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp17_ = j; -#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" - j = _tmp17_ + 1; -#line 4860 "AppWindow.c" - } -#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp16_ = FALSE; -#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp18_ = j; -#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp19_ = model_items; -#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (!(_tmp18_ < _tmp19_)) { -#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" - break; -#line 4872 "AppWindow.c" - } -#line 812 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp20_ = model; -#line 812 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp21_ = j; -#line 812 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp22_ = g_menu_model_get_item_link (_tmp20_, _tmp21_, G_MENU_LINK_SECTION); -#line 812 "/home/jens/Source/shotwell/src/AppWindow.vala" - subsection = _tmp22_; -#line 814 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp23_ = subsection; -#line 814 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp23_ == NULL) { -#line 815 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (subsection); -#line 815 "/home/jens/Source/shotwell/src/AppWindow.vala" - continue; -#line 4890 "AppWindow.c" - } -#line 818 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp24_ = subsection; -#line 818 "/home/jens/Source/shotwell/src/AppWindow.vala" - sub_items = g_menu_model_get_n_items (_tmp24_); -#line 4896 "AppWindow.c" - { - gint k = 0; -#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala" - k = 0; -#line 4901 "AppWindow.c" - { - gboolean _tmp25_ = FALSE; -#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp25_ = TRUE; -#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala" - while (TRUE) { -#line 4908 "AppWindow.c" - gint _tmp27_; - gint _tmp28_; - GMenuAttributeIter* it = NULL; - GMenuModel* _tmp29_; - gint _tmp30_; - GMenuAttributeIter* _tmp31_; -#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (!_tmp25_) { -#line 4917 "AppWindow.c" - gint _tmp26_; -#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp26_ = k; -#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala" - k = _tmp26_ + 1; -#line 4923 "AppWindow.c" - } -#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp25_ = FALSE; -#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp27_ = k; -#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp28_ = sub_items; -#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (!(_tmp27_ < _tmp28_)) { -#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala" - break; -#line 4935 "AppWindow.c" - } -#line 820 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp29_ = subsection; -#line 820 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp30_ = k; -#line 820 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp31_ = g_menu_model_iterate_item_attributes (_tmp29_, _tmp30_); -#line 820 "/home/jens/Source/shotwell/src/AppWindow.vala" - it = _tmp31_; -#line 821 "/home/jens/Source/shotwell/src/AppWindow.vala" - while (TRUE) { -#line 4947 "AppWindow.c" - GMenuAttributeIter* _tmp32_; - gboolean _tmp33_ = FALSE; - gboolean _tmp34_ = FALSE; - GMenuAttributeIter* _tmp35_; - const gchar* _tmp36_; -#line 821 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp32_ = it; -#line 821 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (!g_menu_attribute_iter_next (_tmp32_)) { -#line 821 "/home/jens/Source/shotwell/src/AppWindow.vala" - break; -#line 4959 "AppWindow.c" - } -#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp35_ = it; -#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp36_ = g_menu_attribute_iter_get_name (_tmp35_); -#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (g_strcmp0 (_tmp36_, "id") == 0) { -#line 4967 "AppWindow.c" - GMenuAttributeIter* _tmp37_; - GVariant* _tmp38_; - GVariant* _tmp39_; - const gchar* _tmp40_; -#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp37_ = it; -#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp38_ = g_menu_attribute_iter_get_value (_tmp37_); -#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp39_ = _tmp38_; -#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp40_ = g_variant_get_string (_tmp39_, NULL); -#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp34_ = g_strcmp0 (_tmp40_, id) == 0; -#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_variant_unref0 (_tmp39_); -#line 4984 "AppWindow.c" - } else { -#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp34_ = FALSE; -#line 4988 "AppWindow.c" - } -#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp34_) { -#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp33_ = TRUE; -#line 4994 "AppWindow.c" - } else { - gboolean _tmp41_ = FALSE; - GMenuAttributeIter* _tmp42_; - const gchar* _tmp43_; -#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp42_ = it; -#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp43_ = g_menu_attribute_iter_get_name (_tmp42_); -#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (g_strcmp0 (_tmp43_, "action") == 0) { -#line 5005 "AppWindow.c" - GMenuAttributeIter* _tmp44_; - GVariant* _tmp45_; - GVariant* _tmp46_; - const gchar* _tmp47_; - gchar* _tmp48_; - gchar* _tmp49_; -#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp44_ = it; -#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp45_ = g_menu_attribute_iter_get_value (_tmp44_); -#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp46_ = _tmp45_; -#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp47_ = g_variant_get_string (_tmp46_, NULL); -#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp48_ = g_strconcat (".", id, NULL); -#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp49_ = _tmp48_; -#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp41_ = g_str_has_suffix (_tmp47_, _tmp49_); -#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp49_); -#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_variant_unref0 (_tmp46_); -#line 5030 "AppWindow.c" - } else { -#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp41_ = FALSE; -#line 5034 "AppWindow.c" - } -#line 823 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp33_ = _tmp41_; -#line 5038 "AppWindow.c" - } -#line 822 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp33_) { -#line 5042 "AppWindow.c" - GMenu* md = NULL; - GMenuModel* _tmp50_; - GMenu* _tmp51_; - GMenuItem* m = NULL; - GMenuModel* _tmp52_; - gint _tmp53_; - GMenuItem* _tmp54_; - GMenuItem* _tmp55_; - GMenu* _tmp56_; - gint _tmp57_; - GMenu* _tmp58_; - gint _tmp59_; - GMenuItem* _tmp60_; -#line 824 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp50_ = subsection; -#line 824 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp51_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp50_, g_menu_get_type ()) ? ((GMenu*) _tmp50_) : NULL); -#line 824 "/home/jens/Source/shotwell/src/AppWindow.vala" - md = _tmp51_; -#line 825 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp52_ = subsection; -#line 825 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp53_ = k; -#line 825 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp54_ = g_menu_item_new_from_model (_tmp52_, _tmp53_); -#line 825 "/home/jens/Source/shotwell/src/AppWindow.vala" - m = _tmp54_; -#line 826 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp55_ = m; -#line 826 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_menu_item_set_label (_tmp55_, new_label); -#line 827 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp56_ = md; -#line 827 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp57_ = k; -#line 827 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_menu_remove (_tmp56_, _tmp57_); -#line 828 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp58_ = md; -#line 828 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp59_ = k; -#line 828 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp60_ = m; -#line 828 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_menu_insert_item (_tmp58_, _tmp59_, _tmp60_); -#line 830 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (m); -#line 830 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (md); -#line 830 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (it); -#line 830 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (subsection); -#line 830 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (model); -#line 830 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (bar); -#line 830 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 5102 "AppWindow.c" - } - } -#line 819 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (it); -#line 5107 "AppWindow.c" - } - } - } -#line 811 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (subsection); -#line 5113 "AppWindow.c" - } - } - } -#line 804 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (model); -#line 5119 "AppWindow.c" - } - } - } -#line 795 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (bar); -#line 5125 "AppWindow.c" -} - - -static gpointer -_command_manager_ref0 (gpointer self) -{ -#line 841 "/home/jens/Source/shotwell/src/AppWindow.vala" - return self ? command_manager_ref (self) : NULL; -#line 5134 "AppWindow.c" -} - - -CommandManager* -app_window_get_command_manager (void) -{ - CommandManager* result = NULL; - CommandManager* _tmp0_; - CommandManager* _tmp1_; -#line 841 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_command_manager; -#line 841 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _command_manager_ref0 (_tmp0_); -#line 841 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = _tmp1_; -#line 841 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 5152 "AppWindow.c" -} - - -static void -app_window_on_command_manager_altered (AppWindow* self) -{ -#line 844 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 845 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_decorate_undo_action (self); -#line 846 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_decorate_redo_action (self); -#line 5165 "AppWindow.c" -} - - -static void -app_window_decorate_command_manager_action (AppWindow* self, - const gchar* name, - const gchar* prefix, - const gchar* default_explanation, - CommandDescription* desc) -{ - GSimpleAction* action = NULL; - GAction* _tmp0_; - GSimpleAction* _tmp1_; - GSimpleAction* _tmp2_; - gchar* label = NULL; - gchar* _tmp3_; - const gchar* _tmp13_; -#line 849 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 849 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (name != NULL); -#line 849 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (prefix != NULL); -#line 849 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (default_explanation != NULL); -#line 849 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail ((desc == NULL) || IS_COMMAND_DESCRIPTION (desc)); -#line 851 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_get_common_action (self, name); -#line 851 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL; -#line 851 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp1_ == NULL) { -#line 851 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 5201 "AppWindow.c" - } -#line 851 "/home/jens/Source/shotwell/src/AppWindow.vala" - action = _tmp1_; -#line 852 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = action; -#line 852 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp2_ == NULL) { -#line 853 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (action); -#line 853 "/home/jens/Source/shotwell/src/AppWindow.vala" - return; -#line 5213 "AppWindow.c" - } -#line 856 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = g_strdup (prefix); -#line 856 "/home/jens/Source/shotwell/src/AppWindow.vala" - label = _tmp3_; -#line 858 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (desc != NULL) { -#line 5221 "AppWindow.c" - const gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - GSimpleAction* _tmp10_; -#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = label; -#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = command_description_get_name (desc); -#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp6_ = _tmp5_; -#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp7_ = g_strconcat (" ", _tmp6_, NULL); -#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp8_ = _tmp7_; -#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp9_ = g_strconcat (_tmp4_, _tmp8_, NULL); -#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (label); -#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala" - label = _tmp9_; -#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp8_); -#line 859 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (_tmp6_); -#line 860 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp10_ = action; -#line 860 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_simple_action_set_enabled (_tmp10_, TRUE); -#line 5253 "AppWindow.c" - } else { - gchar* _tmp11_; - GSimpleAction* _tmp12_; -#line 862 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp11_ = g_strdup (prefix); -#line 862 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (label); -#line 862 "/home/jens/Source/shotwell/src/AppWindow.vala" - label = _tmp11_; -#line 863 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp12_ = action; -#line 863 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_simple_action_set_enabled (_tmp12_, FALSE); -#line 5267 "AppWindow.c" - } -#line 865 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp13_ = label; -#line 865 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_update_menu_item_label (self, name, _tmp13_); -#line 849 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_free0 (label); -#line 849 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (action); -#line 5277 "AppWindow.c" -} - - -void -app_window_decorate_undo_action (AppWindow* self) -{ - CommandManager* _tmp0_; - CommandManager* _tmp1_; - CommandDescription* _tmp2_; - CommandDescription* _tmp3_; -#line 868 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 869 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_get_command_manager (); -#line 869 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _tmp0_; -#line 869 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = command_manager_get_undo_description (_tmp1_); -#line 869 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = _tmp2_; -#line 869 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_decorate_command_manager_action (self, "CommonUndo", RESOURCES_UNDO_MENU, "", _tmp3_); -#line 869 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp3_); -#line 869 "/home/jens/Source/shotwell/src/AppWindow.vala" - _command_manager_unref0 (_tmp1_); -#line 5304 "AppWindow.c" -} - - -void -app_window_decorate_redo_action (AppWindow* self) -{ - CommandManager* _tmp0_; - CommandManager* _tmp1_; - CommandDescription* _tmp2_; - CommandDescription* _tmp3_; -#line 873 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 874 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_get_command_manager (); -#line 874 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = _tmp0_; -#line 874 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = command_manager_get_redo_description (_tmp1_); -#line 874 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = _tmp2_; -#line 874 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_decorate_command_manager_action (self, "CommonRedo", RESOURCES_REDO_MENU, "", _tmp3_); -#line 874 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp3_); -#line 874 "/home/jens/Source/shotwell/src/AppWindow.vala" - _command_manager_unref0 (_tmp1_); -#line 5331 "AppWindow.c" -} - - -static void -app_window_on_undo (AppWindow* self) -{ - CommandManager* _tmp0_; -#line 878 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 879 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_command_manager; -#line 879 "/home/jens/Source/shotwell/src/AppWindow.vala" - command_manager_undo (_tmp0_); -#line 5345 "AppWindow.c" -} - - -static void -app_window_on_redo (AppWindow* self) -{ - CommandManager* _tmp0_; -#line 882 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 883 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = app_window_command_manager; -#line 883 "/home/jens/Source/shotwell/src/AppWindow.vala" - command_manager_redo (_tmp0_); -#line 5359 "AppWindow.c" -} - - -static void -app_window_on_select_all (AppWindow* self) -{ - Page* page = NULL; - Page* _tmp0_; - CheckerboardPage* _tmp1_; - Page* _tmp2_; -#line 886 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 887 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 887 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) _tmp0_) : NULL; -#line 887 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp1_ == NULL) { -#line 887 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 5380 "AppWindow.c" - } -#line 887 "/home/jens/Source/shotwell/src/AppWindow.vala" - page = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page); -#line 888 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = page; -#line 888 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp2_ != NULL) { -#line 5388 "AppWindow.c" - Page* _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; -#line 889 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = page; -#line 889 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = page_get_view (_tmp3_); -#line 889 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = _tmp4_; -#line 889 "/home/jens/Source/shotwell/src/AppWindow.vala" - view_collection_select_all (_tmp5_); -#line 889 "/home/jens/Source/shotwell/src/AppWindow.vala" - _data_collection_unref0 (_tmp5_); -#line 5402 "AppWindow.c" - } -#line 886 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (page); -#line 5406 "AppWindow.c" -} - - -static void -app_window_on_select_none (AppWindow* self) -{ - Page* page = NULL; - Page* _tmp0_; - CheckerboardPage* _tmp1_; - Page* _tmp2_; -#line 892 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_if_fail (IS_APP_WINDOW (self)); -#line 893 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 893 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) _tmp0_) : NULL; -#line 893 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp1_ == NULL) { -#line 893 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (_tmp0_); -#line 5427 "AppWindow.c" - } -#line 893 "/home/jens/Source/shotwell/src/AppWindow.vala" - page = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page); -#line 894 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp2_ = page; -#line 894 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (_tmp2_ != NULL) { -#line 5435 "AppWindow.c" - Page* _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; -#line 895 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp3_ = page; -#line 895 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp4_ = page_get_view (_tmp3_); -#line 895 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp5_ = _tmp4_; -#line 895 "/home/jens/Source/shotwell/src/AppWindow.vala" - view_collection_unselect_all (_tmp5_); -#line 895 "/home/jens/Source/shotwell/src/AppWindow.vala" - _data_collection_unref0 (_tmp5_); -#line 5449 "AppWindow.c" - } -#line 892 "/home/jens/Source/shotwell/src/AppWindow.vala" - _g_object_unref0 (page); -#line 5453 "AppWindow.c" -} - - -static gboolean -app_window_real_configure_event (GtkWidget* base, - GdkEventConfigure* event) -{ - AppWindow * self; - gboolean result = FALSE; - GdkWindow* _tmp0_; - gboolean _tmp1_; -#line 898 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_APP_WINDOW, AppWindow); -#line 898 "/home/jens/Source/shotwell/src/AppWindow.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 899 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp0_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 899 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->maximized = gdk_window_get_state (_tmp0_) == GDK_WINDOW_STATE_MAXIMIZED; -#line 901 "/home/jens/Source/shotwell/src/AppWindow.vala" - _tmp1_ = self->maximized; -#line 901 "/home/jens/Source/shotwell/src/AppWindow.vala" - if (!_tmp1_) { -#line 5477 "AppWindow.c" - gint _tmp2_ = 0; - gint _tmp3_ = 0; -#line 902 "/home/jens/Source/shotwell/src/AppWindow.vala" - gtk_window_get_size (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), &_tmp2_, &_tmp3_); -#line 902 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->dimensions.width = _tmp2_; -#line 902 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->dimensions.height = _tmp3_; -#line 5486 "AppWindow.c" - } -#line 904 "/home/jens/Source/shotwell/src/AppWindow.vala" - result = GTK_WIDGET_CLASS (app_window_parent_class)->configure_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow), gtk_widget_get_type (), GtkWidget), event); -#line 904 "/home/jens/Source/shotwell/src/AppWindow.vala" - return result; -#line 5492 "AppWindow.c" -} - - -static void -app_window_class_init (AppWindowClass * klass) -{ -#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala" - app_window_parent_class = g_type_class_peek_parent (klass); -#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((AppWindowClass *) klass)->on_fullscreen = (void (*) (AppWindow *)) app_window_real_on_fullscreen; -#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((AppWindowClass *) klass)->get_app_role = (gchar* (*) (AppWindow *)) app_window_real_get_app_role; -#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((AppWindowClass *) klass)->on_quit = (void (*) (AppWindow *)) app_window_real_on_quit; -#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((GtkWidgetClass *) klass)->destroy = (void (*) (GtkWidget *)) app_window_real_destroy; -#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((AppWindowClass *) klass)->add_actions = (void (*) (AppWindow *)) app_window_real_add_actions; -#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((PageWindowClass *) klass)->switched_pages = (void (*) (PageWindow *, Page*, Page*)) app_window_real_switched_pages; -#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((AppWindowClass *) klass)->update_common_action_availability = (void (*) (AppWindow *, Page*, Page*)) app_window_real_update_common_action_availability; -#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((AppWindowClass *) klass)->update_common_actions = (void (*) (AppWindow *, Page*, gint, gint)) app_window_real_update_common_actions; -#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala" - ((GtkWidgetClass *) klass)->configure_event = (gboolean (*) (GtkWidget *, GdkEventConfigure*)) app_window_real_configure_event; -#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala" - G_OBJECT_CLASS (klass)->finalize = app_window_finalize; -#line 5521 "AppWindow.c" -} - - -static void -app_window_instance_init (AppWindow * self) -{ -#line 409 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->maximized = FALSE; -#line 411 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->pos_x = 0; -#line 412 "/home/jens/Source/shotwell/src/AppWindow.vala" - self->pos_y = 0; -#line 5534 "AppWindow.c" -} - - -static void -app_window_finalize (GObject * obj) -{ - AppWindow * self; -#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_APP_WINDOW, AppWindow); -#line 399 "/home/jens/Source/shotwell/src/AppWindow.vala" - G_OBJECT_CLASS (app_window_parent_class)->finalize (obj); -#line 5546 "AppWindow.c" -} - - -GType -app_window_get_type (void) -{ - static volatile gsize app_window_type_id__volatile = 0; - if (g_once_init_enter (&app_window_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (AppWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) app_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AppWindow), 0, (GInstanceInitFunc) app_window_instance_init, NULL }; - GType app_window_type_id; - app_window_type_id = g_type_register_static (TYPE_PAGE_WINDOW, "AppWindow", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&app_window_type_id__volatile, app_window_type_id); - } - return app_window_type_id__volatile; -} - - - diff --git a/src/AppWindow.vala b/src/AppWindow.vala index aefe3c6..22b47c2 100644 --- a/src/AppWindow.vala +++ b/src/AppWindow.vala @@ -43,13 +43,13 @@ public class FullscreenWindow : PageWindow { // restore pin state is_toolbar_dismissal_enabled = Config.Facade.get_instance().get_pin_toolbar_state(); - pin_button.set_icon_name("pin-toolbar"); + pin_button.set_icon_name("view-pin-symbolic"); pin_button.set_label(_("Pin Toolbar")); pin_button.set_tooltip_text(_("Pin the toolbar open")); pin_button.set_active(!is_toolbar_dismissal_enabled); pin_button.clicked.connect(update_toolbar_dismissal); - close_button.set_icon_name("view-restore"); + close_button.set_icon_name("view-restore-symbolic"); close_button.set_tooltip_text(_("Leave fullscreen")); close_button.set_action_name ("win.LeaveFullscreen"); @@ -115,12 +115,8 @@ public class FullscreenWindow : PageWindow { } private Gdk.Rectangle get_monitor_geometry() { - Gdk.Rectangle monitor; - - get_screen().get_monitor_geometry( - get_screen().get_monitor_at_window(AppWindow.get_instance().get_window()), out monitor); - - return monitor; + var monitor = get_display().get_monitor_at_window(AppWindow.get_instance().get_window()); + return monitor.get_geometry(); } public override bool configure_event(Gdk.EventConfigure event) { @@ -195,15 +191,15 @@ public class FullscreenWindow : PageWindow { } private bool is_pointer_in_toolbar() { - Gdk.DeviceManager? devmgr = get_display().get_device_manager(); - if (devmgr == null) { - debug("No device manager for display"); + var seat = get_display().get_default_seat(); + if (seat == null) { + debug("No seat for display"); return false; } int py; - devmgr.get_client_pointer().get_position(null, null, out py); + seat.get_pointer().get_position(null, null, out py); int wy; toolbar.get_window().get_geometry(null, out wy, null, null); @@ -445,12 +441,8 @@ public abstract class AppWindow : PageWindow { add_actions (); Gtk.CssProvider provider = new Gtk.CssProvider(); - try { - provider.load_from_data(Resources.CUSTOM_CSS, -1); - Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(), provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION); - } catch (Error err) { - debug("Unable to load custom CSS: %s", err.message); - } + provider.load_from_resource("/org/gnome/Shotwell/misc/org.gnome.Shotwell.css"); + Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(), provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION); } private const GLib.ActionEntry[] common_actions = { @@ -597,9 +589,9 @@ public abstract class AppWindow : PageWindow { public abstract string get_app_role(); protected void on_about() { - const string[] artists = { "Braunschweiger Löwe created by Magnus Manske., CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=109735", null }; + const string[] artists = { "Celler Schloss created by Hajotthu, CC BY-SA 3.0, https://commons.wikimedia.org/wiki/File:Celler_Schloss_April_2010.jpg#file", null }; Gtk.show_about_dialog(this, - "version", Resources.APP_VERSION + " \u2013 \"Braunschweig\"", + "version", Resources.APP_VERSION + " \u2013 “Celle”", "comments", get_app_role(), "copyright", Resources.COPYRIGHT, "website", Resources.HOME_URL, @@ -615,7 +607,7 @@ public abstract class AppWindow : PageWindow { private void on_help_contents() { try { - Resources.launch_help(get_screen()); + Resources.launch_help(this); } catch (Error err) { error_message(_("Unable to display help: %s").printf(err.message)); } @@ -662,21 +654,11 @@ public abstract class AppWindow : PageWindow { } public void show_file_uri(File file) throws Error { - string tmp; - - // if file manager is nautilus then pass the full path to file; otherwise pass - // the enclosing directory - if(get_nautilus_install_location() != null) { - tmp = file.get_uri().replace("'","\\\'"); - show_file_in_nautilus(tmp); - } else { - tmp = file.get_parent().get_uri().replace("'","\\\'"); - show_uri(tmp); - } + show_file_in_filemanager.begin(file); } public void show_uri(string url) throws Error { - sys_show_uri(get_window().get_screen(), url); + Gtk.show_uri_on_window(this, url, Gdk.CURRENT_TIME); } protected virtual void add_actions () { diff --git a/src/Application.c b/src/Application.c deleted file mode 100644 index fe89877..0000000 --- a/src/Application.c +++ /dev/null @@ -1,1379 +0,0 @@ -/* Application.c generated by valac 0.40.4, the Vala compiler - * generated from Application.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_APPLICATION (application_get_type ()) -#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application)) -#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass)) -#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION)) -#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION)) -#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass)) - -typedef struct _Application Application; -typedef struct _ApplicationClass ApplicationClass; -typedef struct _ApplicationPrivate ApplicationPrivate; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL))) - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _ParamSpecApplication ParamSpecApplication; -enum { - APPLICATION_STARTING_SIGNAL, - APPLICATION_EXITING_SIGNAL, - APPLICATION_INIT_DONE_SIGNAL, - APPLICATION_NUM_SIGNALS -}; -static guint application_signals[APPLICATION_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _Application { - GTypeInstance parent_instance; - volatile int ref_count; - ApplicationPrivate * priv; -}; - -struct _ApplicationClass { - GTypeClass parent_class; - void (*finalize) (Application *self); - void (*starting) (Application* self); - void (*exiting) (Application* self, gboolean panicked); - void (*init_done) (Application* self); -}; - -struct _ApplicationPrivate { - GtkApplication* system_app; - gint system_app_run_retval; - gboolean direct; - gboolean fixup_raw_thumbs; - gboolean running; - gboolean exiting_fired; -}; - -struct _ParamSpecApplication { - GParamSpec parent_instance; -}; - - -static gpointer application_parent_class = NULL; -static Application* application_instance; -static Application* application_instance = NULL; - -gpointer application_ref (gpointer instance); -void application_unref (gpointer instance); -GParamSpec* param_spec_application (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_application (GValue* value, - gpointer v_object); -void value_take_application (GValue* value, - gpointer v_object); -gpointer value_get_application (const GValue* value); -GType application_get_type (void) G_GNUC_CONST; -#define APPLICATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_APPLICATION, ApplicationPrivate)) -void application_set_raw_thumbs_fix_required (Application* self, - gboolean should_fixup); -gboolean application_get_raw_thumbs_fix_required (Application* self); -GtkApplication* application_get_system_app (Application* self); -static Application* application_new (gboolean is_direct); -static Application* application_construct (GType object_type, - gboolean is_direct); -void application_panic (Application* self); -gint application_on_command_line (GApplicationCommandLine* acl); -static gint _application_on_command_line_g_application_command_line (GApplication* _sender, - GApplicationCommandLine* command_line, - gpointer self); -void application_on_activated (void); -static void _application_on_activated_g_application_activate (GApplication* _sender, - gpointer self); -static void _application_on_activated_g_application_startup (GApplication* _sender, - gpointer self); -void application_send_to_primary_instance (gchar** argv, - int argv_length1); -Application* application_get_instance (void); -void application_present_primary_instance (void); -gboolean application_get_is_remote (void); -gboolean application_get_is_direct (void); -void application_set_accels_for_action (const gchar* action, - gchar** accel, - int accel_length1); -void application_set_menubar (GMenuModel* model); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -GType library_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -LibraryWindow* library_window_get_app (void); -void library_window_mounted_camera_shell_notification (LibraryWindow* self, - const gchar* uri, - gboolean at_startup); -void application_init (gboolean is_direct); -void application_terminate (void); -void application_exit (Application* self); -void application_start (Application* self, - gchar** argv, - int argv_length1); -guint application_inhibit (Application* self, - GtkApplicationInhibitFlags what, - const gchar* reason); -void application_uninhibit (Application* self, - guint cookie); -gint application_get_run_return_value (Application* self); -static void application_real_starting (Application* self); -static void application_real_exiting (Application* self, - gboolean panicked); -static void application_real_init_done (Application* self); -static void application_finalize (Application * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -void -application_set_raw_thumbs_fix_required (Application* self, - gboolean should_fixup) -{ -#line 24 "/home/jens/Source/shotwell/src/Application.vala" - g_return_if_fail (IS_APPLICATION (self)); -#line 25 "/home/jens/Source/shotwell/src/Application.vala" - self->priv->fixup_raw_thumbs = should_fixup; -#line 192 "Application.c" -} - - -gboolean -application_get_raw_thumbs_fix_required (Application* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 28 "/home/jens/Source/shotwell/src/Application.vala" - g_return_val_if_fail (IS_APPLICATION (self), FALSE); -#line 29 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = self->priv->fixup_raw_thumbs; -#line 29 "/home/jens/Source/shotwell/src/Application.vala" - result = _tmp0_; -#line 29 "/home/jens/Source/shotwell/src/Application.vala" - return result; -#line 209 "Application.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 33 "/home/jens/Source/shotwell/src/Application.vala" - return self ? g_object_ref (self) : NULL; -#line 218 "Application.c" -} - - -GtkApplication* -application_get_system_app (Application* self) -{ - GtkApplication* result = NULL; - GtkApplication* _tmp0_; - GtkApplication* _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/Application.vala" - g_return_val_if_fail (IS_APPLICATION (self), NULL); -#line 33 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = self->priv->system_app; -#line 33 "/home/jens/Source/shotwell/src/Application.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 33 "/home/jens/Source/shotwell/src/Application.vala" - result = _tmp1_; -#line 33 "/home/jens/Source/shotwell/src/Application.vala" - return result; -#line 238 "Application.c" -} - - -static gint -_application_on_command_line_g_application_command_line (GApplication* _sender, - GApplicationCommandLine* command_line, - gpointer self) -{ - gint result; - result = application_on_command_line (command_line); -#line 65 "/home/jens/Source/shotwell/src/Application.vala" - return result; -#line 251 "Application.c" -} - - -static void -_application_on_activated_g_application_activate (GApplication* _sender, - gpointer self) -{ -#line 68 "/home/jens/Source/shotwell/src/Application.vala" - application_on_activated (); -#line 261 "Application.c" -} - - -static void -_application_on_activated_g_application_startup (GApplication* _sender, - gpointer self) -{ -#line 69 "/home/jens/Source/shotwell/src/Application.vala" - application_on_activated (); -#line 271 "Application.c" -} - - -static Application* -application_construct (GType object_type, - gboolean is_direct) -{ - Application* self = NULL; - gboolean _tmp3_; - GtkApplication* _tmp5_; - GtkApplication* _tmp6_; - GError * _inner_error_ = NULL; -#line 39 "/home/jens/Source/shotwell/src/Application.vala" - self = (Application*) g_type_create_instance (object_type); -#line 40 "/home/jens/Source/shotwell/src/Application.vala" - if (is_direct) { -#line 288 "Application.c" - GtkApplication* _tmp0_; -#line 45 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = gtk_application_new ("org.yorba.shotwell-direct", G_APPLICATION_HANDLES_OPEN | G_APPLICATION_NON_UNIQUE); -#line 45 "/home/jens/Source/shotwell/src/Application.vala" - _g_object_unref0 (self->priv->system_app); -#line 45 "/home/jens/Source/shotwell/src/Application.vala" - self->priv->system_app = _tmp0_; -#line 296 "Application.c" - } else { - GtkApplication* _tmp1_; -#line 51 "/home/jens/Source/shotwell/src/Application.vala" - _tmp1_ = gtk_application_new ("org.yorba.shotwell", G_APPLICATION_HANDLES_OPEN | G_APPLICATION_HANDLES_COMMAND_LINE); -#line 51 "/home/jens/Source/shotwell/src/Application.vala" - _g_object_unref0 (self->priv->system_app); -#line 51 "/home/jens/Source/shotwell/src/Application.vala" - self->priv->system_app = _tmp1_; -#line 305 "Application.c" - } - { - GtkApplication* _tmp2_; -#line 57 "/home/jens/Source/shotwell/src/Application.vala" - _tmp2_ = self->priv->system_app; -#line 57 "/home/jens/Source/shotwell/src/Application.vala" - g_application_register (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, g_application_get_type (), GApplication), NULL, &_inner_error_); -#line 57 "/home/jens/Source/shotwell/src/Application.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 315 "Application.c" - goto __catch569_g_error; - } - } - goto __finally569; - __catch569_g_error: - { - GError* e = NULL; -#line 56 "/home/jens/Source/shotwell/src/Application.vala" - e = _inner_error_; -#line 56 "/home/jens/Source/shotwell/src/Application.vala" - _inner_error_ = NULL; -#line 59 "/home/jens/Source/shotwell/src/Application.vala" - application_panic (self); -#line 56 "/home/jens/Source/shotwell/src/Application.vala" - _g_error_free0 (e); -#line 331 "Application.c" - } - __finally569: -#line 56 "/home/jens/Source/shotwell/src/Application.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 56 "/home/jens/Source/shotwell/src/Application.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 56 "/home/jens/Source/shotwell/src/Application.vala" - g_clear_error (&_inner_error_); -#line 56 "/home/jens/Source/shotwell/src/Application.vala" - return NULL; -#line 342 "Application.c" - } -#line 62 "/home/jens/Source/shotwell/src/Application.vala" - self->priv->direct = is_direct; -#line 64 "/home/jens/Source/shotwell/src/Application.vala" - _tmp3_ = self->priv->direct; -#line 64 "/home/jens/Source/shotwell/src/Application.vala" - if (!_tmp3_) { -#line 350 "Application.c" - GtkApplication* _tmp4_; -#line 65 "/home/jens/Source/shotwell/src/Application.vala" - _tmp4_ = self->priv->system_app; -#line 65 "/home/jens/Source/shotwell/src/Application.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, g_application_get_type (), GApplication), "command-line", (GCallback) _application_on_command_line_g_application_command_line, NULL); -#line 356 "Application.c" - } -#line 68 "/home/jens/Source/shotwell/src/Application.vala" - _tmp5_ = self->priv->system_app; -#line 68 "/home/jens/Source/shotwell/src/Application.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, g_application_get_type (), GApplication), "activate", (GCallback) _application_on_activated_g_application_activate, NULL); -#line 69 "/home/jens/Source/shotwell/src/Application.vala" - _tmp6_ = self->priv->system_app; -#line 69 "/home/jens/Source/shotwell/src/Application.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, g_application_get_type (), GApplication), "startup", (GCallback) _application_on_activated_g_application_startup, NULL); -#line 39 "/home/jens/Source/shotwell/src/Application.vala" - return self; -#line 368 "Application.c" -} - - -static Application* -application_new (gboolean is_direct) -{ -#line 39 "/home/jens/Source/shotwell/src/Application.vala" - return application_construct (TYPE_APPLICATION, is_direct); -#line 377 "Application.c" -} - - -/** - * @brief This is a helper for library mode that should only be - * called if we've gotten a camera mount and are _not_ the primary - * instance. - */ -void -application_send_to_primary_instance (gchar** argv, - int argv_length1) -{ - Application* _tmp0_; - Application* _tmp1_; - GtkApplication* _tmp2_; -#line 78 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = application_get_instance (); -#line 78 "/home/jens/Source/shotwell/src/Application.vala" - _tmp1_ = _tmp0_; -#line 78 "/home/jens/Source/shotwell/src/Application.vala" - _tmp2_ = _tmp1_->priv->system_app; -#line 78 "/home/jens/Source/shotwell/src/Application.vala" - g_application_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, g_application_get_type (), GApplication), argv_length1, argv); -#line 78 "/home/jens/Source/shotwell/src/Application.vala" - _application_unref0 (_tmp1_); -#line 403 "Application.c" -} - - -/** - * @brief A helper for library mode that tells the primary - * instance to bring its window to the foreground. This - * should only be called if we are _not_ the primary instance. - */ -void -application_present_primary_instance (void) -{ - Application* _tmp0_; - Application* _tmp1_; - GtkApplication* _tmp2_; -#line 87 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = application_get_instance (); -#line 87 "/home/jens/Source/shotwell/src/Application.vala" - _tmp1_ = _tmp0_; -#line 87 "/home/jens/Source/shotwell/src/Application.vala" - _tmp2_ = _tmp1_->priv->system_app; -#line 87 "/home/jens/Source/shotwell/src/Application.vala" - g_application_activate (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, g_application_get_type (), GApplication)); -#line 87 "/home/jens/Source/shotwell/src/Application.vala" - _application_unref0 (_tmp1_); -#line 428 "Application.c" -} - - -gboolean -application_get_is_remote (void) -{ - gboolean result = FALSE; - Application* _tmp0_; - Application* _tmp1_; - GtkApplication* _tmp2_; - gboolean _tmp3_; -#line 91 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = application_get_instance (); -#line 91 "/home/jens/Source/shotwell/src/Application.vala" - _tmp1_ = _tmp0_; -#line 91 "/home/jens/Source/shotwell/src/Application.vala" - _tmp2_ = _tmp1_->priv->system_app; -#line 91 "/home/jens/Source/shotwell/src/Application.vala" - _tmp3_ = g_application_get_is_remote (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, g_application_get_type (), GApplication)); -#line 91 "/home/jens/Source/shotwell/src/Application.vala" - _application_unref0 (_tmp1_); -#line 91 "/home/jens/Source/shotwell/src/Application.vala" - result = _tmp3_; -#line 91 "/home/jens/Source/shotwell/src/Application.vala" - return result; -#line 454 "Application.c" -} - - -gboolean -application_get_is_direct (void) -{ - gboolean result = FALSE; - Application* _tmp0_; - Application* _tmp1_; - gboolean _tmp2_; - gboolean _tmp3_; -#line 95 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = application_get_instance (); -#line 95 "/home/jens/Source/shotwell/src/Application.vala" - _tmp1_ = _tmp0_; -#line 95 "/home/jens/Source/shotwell/src/Application.vala" - _tmp2_ = _tmp1_->priv->direct; -#line 95 "/home/jens/Source/shotwell/src/Application.vala" - _tmp3_ = _tmp2_; -#line 95 "/home/jens/Source/shotwell/src/Application.vala" - _application_unref0 (_tmp1_); -#line 95 "/home/jens/Source/shotwell/src/Application.vala" - result = _tmp3_; -#line 95 "/home/jens/Source/shotwell/src/Application.vala" - return result; -#line 480 "Application.c" -} - - -void -application_set_accels_for_action (const gchar* action, - gchar** accel, - int accel_length1) -{ - Application* _tmp0_; - Application* _tmp1_; - GtkApplication* _tmp2_; -#line 98 "/home/jens/Source/shotwell/src/Application.vala" - g_return_if_fail (action != NULL); -#line 99 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = application_get_instance (); -#line 99 "/home/jens/Source/shotwell/src/Application.vala" - _tmp1_ = _tmp0_; -#line 99 "/home/jens/Source/shotwell/src/Application.vala" - _tmp2_ = _tmp1_->priv->system_app; -#line 99 "/home/jens/Source/shotwell/src/Application.vala" - gtk_application_set_accels_for_action (_tmp2_, action, accel); -#line 99 "/home/jens/Source/shotwell/src/Application.vala" - _application_unref0 (_tmp1_); -#line 504 "Application.c" -} - - -void -application_set_menubar (GMenuModel* model) -{ - Application* _tmp0_; - Application* _tmp1_; - GtkApplication* _tmp2_; -#line 102 "/home/jens/Source/shotwell/src/Application.vala" - g_return_if_fail ((model == NULL) || G_IS_MENU_MODEL (model)); -#line 103 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = application_get_instance (); -#line 103 "/home/jens/Source/shotwell/src/Application.vala" - _tmp1_ = _tmp0_; -#line 103 "/home/jens/Source/shotwell/src/Application.vala" - _tmp2_ = _tmp1_->priv->system_app; -#line 103 "/home/jens/Source/shotwell/src/Application.vala" - gtk_application_set_menubar (_tmp2_, model); -#line 103 "/home/jens/Source/shotwell/src/Application.vala" - _application_unref0 (_tmp1_); -#line 526 "Application.c" -} - - -/** - * @brief Signal handler for GApplication's 'command-line' signal. - * - * The most likely scenario for this to be fired is if the user - * either tried to run us twice in library mode, or we've just gotten - * a camera/removable-storage mount; in either case, the remote instance - * will trigger this and exit, and we'll need to bring the window back up... - */ -void -application_on_activated (void) -{ - Application* _tmp0_; - Application* _tmp1_; - LibraryWindow* lw = NULL; - AppWindow* _tmp2_; - LibraryWindow* _tmp3_; - gboolean _tmp4_ = FALSE; - LibraryWindow* _tmp5_; -#line 115 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = application_get_instance (); -#line 115 "/home/jens/Source/shotwell/src/Application.vala" - _tmp1_ = _tmp0_; -#line 115 "/home/jens/Source/shotwell/src/Application.vala" - _application_unref0 (_tmp1_); -#line 117 "/home/jens/Source/shotwell/src/Application.vala" - _tmp2_ = app_window_get_instance (); -#line 117 "/home/jens/Source/shotwell/src/Application.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_LIBRARY_WINDOW) ? ((LibraryWindow*) _tmp2_) : NULL; -#line 117 "/home/jens/Source/shotwell/src/Application.vala" - if (_tmp3_ == NULL) { -#line 117 "/home/jens/Source/shotwell/src/Application.vala" - _g_object_unref0 (_tmp2_); -#line 562 "Application.c" - } -#line 117 "/home/jens/Source/shotwell/src/Application.vala" - lw = _tmp3_; -#line 118 "/home/jens/Source/shotwell/src/Application.vala" - _tmp5_ = lw; -#line 118 "/home/jens/Source/shotwell/src/Application.vala" - if (_tmp5_ != NULL) { -#line 118 "/home/jens/Source/shotwell/src/Application.vala" - _tmp4_ = !application_get_is_direct (); -#line 572 "Application.c" - } else { -#line 118 "/home/jens/Source/shotwell/src/Application.vala" - _tmp4_ = FALSE; -#line 576 "Application.c" - } -#line 118 "/home/jens/Source/shotwell/src/Application.vala" - if (_tmp4_) { -#line 580 "Application.c" - LibraryWindow* _tmp6_; - LibraryWindow* _tmp7_; -#line 119 "/home/jens/Source/shotwell/src/Application.vala" - _tmp6_ = library_window_get_app (); -#line 119 "/home/jens/Source/shotwell/src/Application.vala" - _tmp7_ = _tmp6_; -#line 119 "/home/jens/Source/shotwell/src/Application.vala" - gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_window_get_type (), GtkWindow)); -#line 119 "/home/jens/Source/shotwell/src/Application.vala" - _g_object_unref0 (_tmp7_); -#line 591 "Application.c" - } -#line 114 "/home/jens/Source/shotwell/src/Application.vala" - _g_object_unref0 (lw); -#line 595 "Application.c" -} - - -/** - * @brief Signal handler for GApplication's 'command-line' signal. - * - * Gets fired whenever a remote instance tries to run, usually - * with an incoming camera connection. - * - * @note This does _not_ get called in direct-edit mode. - */ -gint -application_on_command_line (GApplicationCommandLine* acl) -{ - gint result = 0; - gchar** argv = NULL; - gint _tmp0_; - gchar** _tmp1_; - gint argv_length1; - gint _argv_size_; - gchar** _tmp2_; - gint _tmp2__length1; -#line 131 "/home/jens/Source/shotwell/src/Application.vala" - g_return_val_if_fail (G_IS_APPLICATION_COMMAND_LINE (acl), 0); -#line 132 "/home/jens/Source/shotwell/src/Application.vala" - _tmp1_ = g_application_command_line_get_arguments (acl, &_tmp0_); -#line 132 "/home/jens/Source/shotwell/src/Application.vala" - argv = _tmp1_; -#line 132 "/home/jens/Source/shotwell/src/Application.vala" - argv_length1 = _tmp0_; -#line 132 "/home/jens/Source/shotwell/src/Application.vala" - _argv_size_ = argv_length1; -#line 134 "/home/jens/Source/shotwell/src/Application.vala" - _tmp2_ = argv; -#line 134 "/home/jens/Source/shotwell/src/Application.vala" - _tmp2__length1 = argv_length1; -#line 134 "/home/jens/Source/shotwell/src/Application.vala" - if (_tmp2_ != NULL) { -#line 634 "Application.c" - gchar** _tmp3_; - gint _tmp3__length1; -#line 135 "/home/jens/Source/shotwell/src/Application.vala" - _tmp3_ = argv; -#line 135 "/home/jens/Source/shotwell/src/Application.vala" - _tmp3__length1 = argv_length1; -#line 641 "Application.c" - { - gchar** s_collection = NULL; - gint s_collection_length1 = 0; - gint _s_collection_size_ = 0; - gint s_it = 0; -#line 135 "/home/jens/Source/shotwell/src/Application.vala" - s_collection = _tmp3_; -#line 135 "/home/jens/Source/shotwell/src/Application.vala" - s_collection_length1 = _tmp3__length1; -#line 135 "/home/jens/Source/shotwell/src/Application.vala" - for (s_it = 0; s_it < _tmp3__length1; s_it = s_it + 1) { -#line 653 "Application.c" - gchar* _tmp4_; - gchar* s = NULL; -#line 135 "/home/jens/Source/shotwell/src/Application.vala" - _tmp4_ = g_strdup (s_collection[s_it]); -#line 135 "/home/jens/Source/shotwell/src/Application.vala" - s = _tmp4_; -#line 660 "Application.c" - { - LibraryWindow* lw = NULL; - AppWindow* _tmp5_; - LibraryWindow* _tmp6_; - LibraryWindow* _tmp7_; -#line 136 "/home/jens/Source/shotwell/src/Application.vala" - _tmp5_ = app_window_get_instance (); -#line 136 "/home/jens/Source/shotwell/src/Application.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_LIBRARY_WINDOW) ? ((LibraryWindow*) _tmp5_) : NULL; -#line 136 "/home/jens/Source/shotwell/src/Application.vala" - if (_tmp6_ == NULL) { -#line 136 "/home/jens/Source/shotwell/src/Application.vala" - _g_object_unref0 (_tmp5_); -#line 674 "Application.c" - } -#line 136 "/home/jens/Source/shotwell/src/Application.vala" - lw = _tmp6_; -#line 137 "/home/jens/Source/shotwell/src/Application.vala" - _tmp7_ = lw; -#line 137 "/home/jens/Source/shotwell/src/Application.vala" - if (_tmp7_ != NULL) { -#line 682 "Application.c" - LibraryWindow* _tmp8_; - const gchar* _tmp9_; -#line 138 "/home/jens/Source/shotwell/src/Application.vala" - _tmp8_ = lw; -#line 138 "/home/jens/Source/shotwell/src/Application.vala" - _tmp9_ = s; -#line 138 "/home/jens/Source/shotwell/src/Application.vala" - library_window_mounted_camera_shell_notification (_tmp8_, _tmp9_, FALSE); -#line 691 "Application.c" - } -#line 135 "/home/jens/Source/shotwell/src/Application.vala" - _g_object_unref0 (lw); -#line 135 "/home/jens/Source/shotwell/src/Application.vala" - _g_free0 (s); -#line 697 "Application.c" - } - } - } - } -#line 142 "/home/jens/Source/shotwell/src/Application.vala" - application_on_activated (); -#line 143 "/home/jens/Source/shotwell/src/Application.vala" - result = 0; -#line 143 "/home/jens/Source/shotwell/src/Application.vala" - argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL); -#line 143 "/home/jens/Source/shotwell/src/Application.vala" - return result; -#line 710 "Application.c" -} - - -/** - * @brief Initializes the Shotwell application object and prepares - * it for use. - * - * @param is_direct Whether the application was invoked in direct - * or in library mode; defaults to FALSE, that is, library mode. - * - * @note This MUST be called prior to calling get_instance(), as the - * application needs to know what mode it was brought up in; failure to - * call this first will lead to an assertion. - */ -void -application_init (gboolean is_direct) -{ - Application* _tmp0_; -#line 158 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = application_instance; -#line 158 "/home/jens/Source/shotwell/src/Application.vala" - if (_tmp0_ == NULL) { -#line 733 "Application.c" - Application* _tmp1_; -#line 159 "/home/jens/Source/shotwell/src/Application.vala" - _tmp1_ = application_new (is_direct); -#line 159 "/home/jens/Source/shotwell/src/Application.vala" - _application_unref0 (application_instance); -#line 159 "/home/jens/Source/shotwell/src/Application.vala" - application_instance = _tmp1_; -#line 741 "Application.c" - } -} - - -void -application_terminate (void) -{ - Application* _tmp0_; - Application* _tmp1_; -#line 163 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = application_get_instance (); -#line 163 "/home/jens/Source/shotwell/src/Application.vala" - _tmp1_ = _tmp0_; -#line 163 "/home/jens/Source/shotwell/src/Application.vala" - application_exit (_tmp1_); -#line 163 "/home/jens/Source/shotwell/src/Application.vala" - _application_unref0 (_tmp1_); -#line 759 "Application.c" -} - - -static gpointer -_application_ref0 (gpointer self) -{ -#line 169 "/home/jens/Source/shotwell/src/Application.vala" - return self ? application_ref (self) : NULL; -#line 768 "Application.c" -} - - -Application* -application_get_instance (void) -{ - Application* result = NULL; - Application* _tmp0_; - Application* _tmp1_; - Application* _tmp2_; -#line 167 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = application_instance; -#line 167 "/home/jens/Source/shotwell/src/Application.vala" - _vala_assert (_tmp0_ != NULL, "instance != null"); -#line 169 "/home/jens/Source/shotwell/src/Application.vala" - _tmp1_ = application_instance; -#line 169 "/home/jens/Source/shotwell/src/Application.vala" - _tmp2_ = _application_ref0 (_tmp1_); -#line 169 "/home/jens/Source/shotwell/src/Application.vala" - result = _tmp2_; -#line 169 "/home/jens/Source/shotwell/src/Application.vala" - return result; -#line 791 "Application.c" -} - - -void -application_start (Application* self, - gchar** argv, - int argv_length1) -{ - gboolean _tmp0_; - AppWindow* _tmp1_; - AppWindow* _tmp2_; - GtkApplication* _tmp3_; - AppWindow* _tmp4_; - AppWindow* _tmp5_; - GtkApplication* _tmp6_; - gboolean _tmp7_; - GtkApplication* _tmp10_; - guint _tmp11_; - GtkApplication* _tmp12_; - guint _tmp13_; -#line 172 "/home/jens/Source/shotwell/src/Application.vala" - g_return_if_fail (IS_APPLICATION (self)); -#line 173 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = self->priv->running; -#line 173 "/home/jens/Source/shotwell/src/Application.vala" - if (_tmp0_) { -#line 174 "/home/jens/Source/shotwell/src/Application.vala" - return; -#line 820 "Application.c" - } -#line 176 "/home/jens/Source/shotwell/src/Application.vala" - self->priv->running = TRUE; -#line 178 "/home/jens/Source/shotwell/src/Application.vala" - g_signal_emit (self, application_signals[APPLICATION_STARTING_SIGNAL], 0); -#line 180 "/home/jens/Source/shotwell/src/Application.vala" - _tmp1_ = app_window_get_instance (); -#line 180 "/home/jens/Source/shotwell/src/Application.vala" - _tmp2_ = _tmp1_; -#line 180 "/home/jens/Source/shotwell/src/Application.vala" - _vala_assert (_tmp2_ != NULL, "AppWindow.get_instance() != null"); -#line 180 "/home/jens/Source/shotwell/src/Application.vala" - _g_object_unref0 (_tmp2_); -#line 181 "/home/jens/Source/shotwell/src/Application.vala" - _tmp3_ = self->priv->system_app; -#line 181 "/home/jens/Source/shotwell/src/Application.vala" - _tmp4_ = app_window_get_instance (); -#line 181 "/home/jens/Source/shotwell/src/Application.vala" - _tmp5_ = _tmp4_; -#line 181 "/home/jens/Source/shotwell/src/Application.vala" - gtk_application_add_window (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_window_get_type (), GtkWindow)); -#line 181 "/home/jens/Source/shotwell/src/Application.vala" - _g_object_unref0 (_tmp5_); -#line 182 "/home/jens/Source/shotwell/src/Application.vala" - _tmp6_ = self->priv->system_app; -#line 182 "/home/jens/Source/shotwell/src/Application.vala" - self->priv->system_app_run_retval = g_application_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, g_application_get_type (), GApplication), argv_length1, argv); -#line 184 "/home/jens/Source/shotwell/src/Application.vala" - _tmp7_ = self->priv->direct; -#line 184 "/home/jens/Source/shotwell/src/Application.vala" - if (!_tmp7_) { -#line 852 "Application.c" - GtkApplication* _tmp8_; - guint _tmp9_; -#line 185 "/home/jens/Source/shotwell/src/Application.vala" - _tmp8_ = self->priv->system_app; -#line 185 "/home/jens/Source/shotwell/src/Application.vala" - g_signal_parse_name ("command-line", g_application_get_type (), &_tmp9_, NULL, FALSE); -#line 185 "/home/jens/Source/shotwell/src/Application.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, g_application_get_type (), GApplication), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _application_on_command_line_g_application_command_line, NULL); -#line 861 "Application.c" - } -#line 188 "/home/jens/Source/shotwell/src/Application.vala" - _tmp10_ = self->priv->system_app; -#line 188 "/home/jens/Source/shotwell/src/Application.vala" - g_signal_parse_name ("activate", g_application_get_type (), &_tmp11_, NULL, FALSE); -#line 188 "/home/jens/Source/shotwell/src/Application.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, g_application_get_type (), GApplication), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _application_on_activated_g_application_activate, NULL); -#line 189 "/home/jens/Source/shotwell/src/Application.vala" - _tmp12_ = self->priv->system_app; -#line 189 "/home/jens/Source/shotwell/src/Application.vala" - g_signal_parse_name ("startup", g_application_get_type (), &_tmp13_, NULL, FALSE); -#line 189 "/home/jens/Source/shotwell/src/Application.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, g_application_get_type (), GApplication), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _application_on_activated_g_application_startup, NULL); -#line 191 "/home/jens/Source/shotwell/src/Application.vala" - self->priv->running = FALSE; -#line 877 "Application.c" -} - - -void -application_exit (Application* self) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; - GtkApplication* _tmp3_; -#line 194 "/home/jens/Source/shotwell/src/Application.vala" - g_return_if_fail (IS_APPLICATION (self)); -#line 197 "/home/jens/Source/shotwell/src/Application.vala" - _tmp1_ = self->priv->exiting_fired; -#line 197 "/home/jens/Source/shotwell/src/Application.vala" - if (_tmp1_) { -#line 197 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = TRUE; -#line 895 "Application.c" - } else { - gboolean _tmp2_; -#line 197 "/home/jens/Source/shotwell/src/Application.vala" - _tmp2_ = self->priv->running; -#line 197 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = !_tmp2_; -#line 902 "Application.c" - } -#line 197 "/home/jens/Source/shotwell/src/Application.vala" - if (_tmp0_) { -#line 198 "/home/jens/Source/shotwell/src/Application.vala" - return; -#line 908 "Application.c" - } -#line 200 "/home/jens/Source/shotwell/src/Application.vala" - self->priv->exiting_fired = TRUE; -#line 202 "/home/jens/Source/shotwell/src/Application.vala" - g_signal_emit (self, application_signals[APPLICATION_EXITING_SIGNAL], 0, FALSE); -#line 204 "/home/jens/Source/shotwell/src/Application.vala" - _tmp3_ = self->priv->system_app; -#line 204 "/home/jens/Source/shotwell/src/Application.vala" - g_application_release (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, g_application_get_type (), GApplication)); -#line 918 "Application.c" -} - - -void -application_panic (Application* self) -{ - gboolean _tmp0_; -#line 209 "/home/jens/Source/shotwell/src/Application.vala" - g_return_if_fail (IS_APPLICATION (self)); -#line 210 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = self->priv->exiting_fired; -#line 210 "/home/jens/Source/shotwell/src/Application.vala" - if (!_tmp0_) { -#line 211 "/home/jens/Source/shotwell/src/Application.vala" - self->priv->exiting_fired = TRUE; -#line 212 "/home/jens/Source/shotwell/src/Application.vala" - g_signal_emit (self, application_signals[APPLICATION_EXITING_SIGNAL], 0, TRUE); -#line 936 "Application.c" - } -#line 214 "/home/jens/Source/shotwell/src/Application.vala" - exit (1); -#line 940 "Application.c" -} - - -/** - * @brief Allows the caller to ask for some part of the desktop session's functionality to - * be prevented from running; wrapper for Gtk.Application.inhibit(). - * - * @note The return value is a 'cookie' that needs to be passed to 'uninhibit' to turn - * off a requested inhibition and should be saved by the caller. - */ -guint -application_inhibit (Application* self, - GtkApplicationInhibitFlags what, - const gchar* reason) -{ - guint result = 0U; - GtkApplication* _tmp0_; - AppWindow* _tmp1_; - AppWindow* _tmp2_; - guint _tmp3_; -#line 224 "/home/jens/Source/shotwell/src/Application.vala" - g_return_val_if_fail (IS_APPLICATION (self), 0U); -#line 225 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = self->priv->system_app; -#line 225 "/home/jens/Source/shotwell/src/Application.vala" - _tmp1_ = app_window_get_instance (); -#line 225 "/home/jens/Source/shotwell/src/Application.vala" - _tmp2_ = _tmp1_; -#line 225 "/home/jens/Source/shotwell/src/Application.vala" - _tmp3_ = gtk_application_inhibit (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_window_get_type (), GtkWindow), what, reason); -#line 225 "/home/jens/Source/shotwell/src/Application.vala" - _g_object_unref0 (_tmp2_); -#line 225 "/home/jens/Source/shotwell/src/Application.vala" - result = _tmp3_; -#line 225 "/home/jens/Source/shotwell/src/Application.vala" - return result; -#line 977 "Application.c" -} - - -/** - * @brief Turns off a previously-requested inhibition. Wrapper for - * Gtk.Application.uninhibit(). - */ -void -application_uninhibit (Application* self, - guint cookie) -{ - GtkApplication* _tmp0_; -#line 232 "/home/jens/Source/shotwell/src/Application.vala" - g_return_if_fail (IS_APPLICATION (self)); -#line 233 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = self->priv->system_app; -#line 233 "/home/jens/Source/shotwell/src/Application.vala" - gtk_application_uninhibit (_tmp0_, cookie); -#line 996 "Application.c" -} - - -gint -application_get_run_return_value (Application* self) -{ - gint result = 0; - gint _tmp0_; -#line 236 "/home/jens/Source/shotwell/src/Application.vala" - g_return_val_if_fail (IS_APPLICATION (self), 0); -#line 237 "/home/jens/Source/shotwell/src/Application.vala" - _tmp0_ = self->priv->system_app_run_retval; -#line 237 "/home/jens/Source/shotwell/src/Application.vala" - result = _tmp0_; -#line 237 "/home/jens/Source/shotwell/src/Application.vala" - return result; -#line 1013 "Application.c" -} - - -static void -application_real_starting (Application* self) -{ -} - - -static void -application_real_exiting (Application* self, - gboolean panicked) -{ -} - - -static void -application_real_init_done (Application* self) -{ -} - - -static void -value_application_init (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - value->data[0].v_pointer = NULL; -#line 1041 "Application.c" -} - - -static void -value_application_free_value (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - if (value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - application_unref (value->data[0].v_pointer); -#line 1052 "Application.c" - } -} - - -static void -value_application_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - if (src_value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - dest_value->data[0].v_pointer = application_ref (src_value->data[0].v_pointer); -#line 1065 "Application.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - dest_value->data[0].v_pointer = NULL; -#line 1069 "Application.c" - } -} - - -static gpointer -value_application_peek_pointer (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - return value->data[0].v_pointer; -#line 1079 "Application.c" -} - - -static gchar* -value_application_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - if (collect_values[0].v_pointer) { -#line 1091 "Application.c" - Application * object; - object = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - if (object->parent_instance.g_class == NULL) { -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1098 "Application.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1102 "Application.c" - } -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - value->data[0].v_pointer = application_ref (object); -#line 1106 "Application.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - value->data[0].v_pointer = NULL; -#line 1110 "Application.c" - } -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - return NULL; -#line 1114 "Application.c" -} - - -static gchar* -value_application_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - Application ** object_p; - object_p = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - if (!object_p) { -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1130 "Application.c" - } -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - if (!value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - *object_p = NULL; -#line 1136 "Application.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - *object_p = value->data[0].v_pointer; -#line 1140 "Application.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - *object_p = application_ref (value->data[0].v_pointer); -#line 1144 "Application.c" - } -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - return NULL; -#line 1148 "Application.c" -} - - -GParamSpec* -param_spec_application (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecApplication* spec; -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_APPLICATION), NULL); -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - return G_PARAM_SPEC (spec); -#line 1168 "Application.c" -} - - -gpointer -value_get_application (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_APPLICATION), NULL); -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - return value->data[0].v_pointer; -#line 1179 "Application.c" -} - - -void -value_set_application (GValue* value, - gpointer v_object) -{ - Application * old; -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_APPLICATION)); -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_APPLICATION)); -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - value->data[0].v_pointer = v_object; -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - application_ref (value->data[0].v_pointer); -#line 1202 "Application.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - value->data[0].v_pointer = NULL; -#line 1206 "Application.c" - } -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - application_unref (old); -#line 1212 "Application.c" - } -} - - -void -value_take_application (GValue* value, - gpointer v_object) -{ - Application * old; -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_APPLICATION)); -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_APPLICATION)); -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - value->data[0].v_pointer = v_object; -#line 1234 "Application.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - value->data[0].v_pointer = NULL; -#line 1238 "Application.c" - } -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - application_unref (old); -#line 1244 "Application.c" - } -} - - -static void -application_class_init (ApplicationClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - application_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - ((ApplicationClass *) klass)->finalize = application_finalize; -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - g_type_class_add_private (klass, sizeof (ApplicationPrivate)); -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - ((ApplicationClass *) klass)->starting = application_real_starting; -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - ((ApplicationClass *) klass)->exiting = application_real_exiting; -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - ((ApplicationClass *) klass)->init_done = application_real_init_done; -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - application_signals[APPLICATION_STARTING_SIGNAL] = g_signal_new ("starting", TYPE_APPLICATION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ApplicationClass, starting), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - application_signals[APPLICATION_EXITING_SIGNAL] = g_signal_new ("exiting", TYPE_APPLICATION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ApplicationClass, exiting), NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - application_signals[APPLICATION_INIT_DONE_SIGNAL] = g_signal_new ("init-done", TYPE_APPLICATION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ApplicationClass, init_done), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 1270 "Application.c" -} - - -static void -application_instance_init (Application * self) -{ -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - self->priv = APPLICATION_GET_PRIVATE (self); -#line 9 "/home/jens/Source/shotwell/src/Application.vala" - self->priv->system_app = NULL; -#line 10 "/home/jens/Source/shotwell/src/Application.vala" - self->priv->system_app_run_retval = 0; -#line 22 "/home/jens/Source/shotwell/src/Application.vala" - self->priv->fixup_raw_thumbs = FALSE; -#line 36 "/home/jens/Source/shotwell/src/Application.vala" - self->priv->running = FALSE; -#line 37 "/home/jens/Source/shotwell/src/Application.vala" - self->priv->exiting_fired = FALSE; -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - self->ref_count = 1; -#line 1291 "Application.c" -} - - -static void -application_finalize (Application * obj) -{ - Application * self; -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_APPLICATION, Application); -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - g_signal_handlers_destroy (self); -#line 9 "/home/jens/Source/shotwell/src/Application.vala" - _g_object_unref0 (self->priv->system_app); -#line 1305 "Application.c" -} - - -GType -application_get_type (void) -{ - static volatile gsize application_type_id__volatile = 0; - if (g_once_init_enter (&application_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_application_init, value_application_free_value, value_application_copy_value, value_application_peek_pointer, "p", value_application_collect_value, "p", value_application_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (ApplicationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) application_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Application), 0, (GInstanceInitFunc) application_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType application_type_id; - application_type_id = g_type_register_fundamental (g_type_fundamental_next (), "Application", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&application_type_id__volatile, application_type_id); - } - return application_type_id__volatile; -} - - -gpointer -application_ref (gpointer instance) -{ - Application * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - g_atomic_int_inc (&self->ref_count); -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - return instance; -#line 1334 "Application.c" -} - - -void -application_unref (gpointer instance) -{ - Application * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - APPLICATION_GET_CLASS (self)->finalize (self); -#line 7 "/home/jens/Source/shotwell/src/Application.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1349 "Application.c" - } -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/Application.vala b/src/Application.vala index a1fff47..36acc41 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -42,13 +42,13 @@ public class Application { // attempt to be unique. We don't request any command-line handling // here because this is processed elsewhere, and we don't need to handle // command lines from remote instances, since we don't care about them. - system_app = new Gtk.Application("org.yorba.shotwell-direct", GLib.ApplicationFlags.HANDLES_OPEN | + system_app = new Gtk.Application("org.gnome.Shotwell-direct", GLib.ApplicationFlags.HANDLES_OPEN | GLib.ApplicationFlags.NON_UNIQUE); } else { // we've been invoked in library mode; set up for uniqueness and handling // of incoming command lines from remote instances (needed for getting // storage device and camera mounts). - system_app = new Gtk.Application("org.yorba.shotwell", GLib.ApplicationFlags.HANDLES_OPEN | + system_app = new Gtk.Application("org.gnome.Shotwell", GLib.ApplicationFlags.HANDLES_OPEN | GLib.ApplicationFlags.HANDLES_COMMAND_LINE); } diff --git a/src/BatchImport.c b/src/BatchImport.c deleted file mode 100644 index 8ee3b4f..0000000 --- a/src/BatchImport.c +++ /dev/null @@ -1,17579 +0,0 @@ -/* BatchImport.c generated by valac 0.40.4, the Vala compiler - * generated from BatchImport.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_IMPORT_RESULT (import_result_get_type ()) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ()) -#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob)) -#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass)) -#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB)) -#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB)) -#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass)) - -typedef struct _BatchImportJob BatchImportJob; -typedef struct _BatchImportJobClass BatchImportJobClass; -typedef struct _BatchImportJobPrivate BatchImportJobPrivate; - -#define TYPE_DUPLICATED_FILE (duplicated_file_get_type ()) -#define DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATED_FILE, DuplicatedFile)) -#define DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATED_FILE, DuplicatedFileClass)) -#define IS_DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATED_FILE)) -#define IS_DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATED_FILE)) -#define DUPLICATED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATED_FILE, DuplicatedFileClass)) - -typedef struct _DuplicatedFile DuplicatedFile; -typedef struct _DuplicatedFileClass DuplicatedFileClass; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_BATCH_IMPORT_ROLL (batch_import_roll_get_type ()) -#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll)) -#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass)) -#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL)) -#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL)) -#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass)) - -typedef struct _BatchImportRoll BatchImportRoll; -typedef struct _BatchImportRollClass BatchImportRollClass; -typedef struct _ParamSpecBatchImportJob ParamSpecBatchImportJob; - -#define TYPE_FILE_IMPORT_JOB (file_import_job_get_type ()) -#define FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILE_IMPORT_JOB, FileImportJob)) -#define FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILE_IMPORT_JOB, FileImportJobClass)) -#define IS_FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILE_IMPORT_JOB)) -#define IS_FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILE_IMPORT_JOB)) -#define FILE_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILE_IMPORT_JOB, FileImportJobClass)) - -typedef struct _FileImportJob FileImportJob; -typedef struct _FileImportJobClass FileImportJobClass; -typedef struct _FileImportJobPrivate FileImportJobPrivate; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _batch_import_job_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_job_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _BatchImportRollPrivate BatchImportRollPrivate; - -#define TYPE_IMPORT_ID (import_id_get_type ()) -typedef struct _ImportID ImportID; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -typedef struct _ParamSpecBatchImportRoll ParamSpecBatchImportRoll; - -#define TYPE_BATCH_IMPORT_RESULT (batch_import_result_get_type ()) -#define BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResult)) -#define BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass)) -#define IS_BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_RESULT)) -#define IS_BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_RESULT)) -#define BATCH_IMPORT_RESULT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass)) - -typedef struct _BatchImportResult BatchImportResult; -typedef struct _BatchImportResultClass BatchImportResultClass; -typedef struct _BatchImportResultPrivate BatchImportResultPrivate; -typedef struct _ParamSpecBatchImportResult ParamSpecBatchImportResult; - -#define TYPE_IMPORT_MANIFEST (import_manifest_get_type ()) -#define IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_MANIFEST, ImportManifest)) -#define IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_MANIFEST, ImportManifestClass)) -#define IS_IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_MANIFEST)) -#define IS_IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_MANIFEST)) -#define IMPORT_MANIFEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_MANIFEST, ImportManifestClass)) - -typedef struct _ImportManifest ImportManifest; -typedef struct _ImportManifestClass ImportManifestClass; -typedef struct _ImportManifestPrivate ImportManifestPrivate; -#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL))) -#define _batch_import_result_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_result_unref (var), NULL))) -typedef struct _ParamSpecImportManifest ParamSpecImportManifest; - -#define TYPE_BATCH_IMPORT (batch_import_get_type ()) -#define BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT, BatchImport)) -#define BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT, BatchImportClass)) -#define IS_BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT)) -#define IS_BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT)) -#define BATCH_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT, BatchImportClass)) - -typedef struct _BatchImport BatchImport; -typedef struct _BatchImportClass BatchImportClass; -typedef struct _BatchImportPrivate BatchImportPrivate; - -#define TYPE_PREPARED_FILE (prepared_file_get_type ()) -#define PREPARED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PREPARED_FILE, PreparedFile)) -#define PREPARED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PREPARED_FILE, PreparedFileClass)) -#define IS_PREPARED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PREPARED_FILE)) -#define IS_PREPARED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PREPARED_FILE)) -#define PREPARED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PREPARED_FILE, PreparedFileClass)) - -typedef struct _PreparedFile PreparedFile; -typedef struct _PreparedFileClass PreparedFileClass; - -#define TYPE_COMPLETED_IMPORT_OBJECT (completed_import_object_get_type ()) -#define COMPLETED_IMPORT_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMPLETED_IMPORT_OBJECT, CompletedImportObject)) -#define COMPLETED_IMPORT_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMPLETED_IMPORT_OBJECT, CompletedImportObjectClass)) -#define IS_COMPLETED_IMPORT_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMPLETED_IMPORT_OBJECT)) -#define IS_COMPLETED_IMPORT_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMPLETED_IMPORT_OBJECT)) -#define COMPLETED_IMPORT_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMPLETED_IMPORT_OBJECT, CompletedImportObjectClass)) - -typedef struct _CompletedImportObject CompletedImportObject; -typedef struct _CompletedImportObjectClass CompletedImportObjectClass; -enum { - BATCH_IMPORT_0_PROPERTY, - BATCH_IMPORT_NUM_PROPERTIES -}; -static GParamSpec* batch_import_properties[BATCH_IMPORT_NUM_PROPERTIES]; - -#define TYPE_APPLICATION (application_get_type ()) -#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application)) -#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass)) -#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION)) -#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION)) -#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass)) - -typedef struct _Application Application; -typedef struct _ApplicationClass ApplicationClass; -#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL))) - -#define TYPE_WORKERS (workers_get_type ()) -#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers)) -#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass)) -#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS)) -#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS)) -#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass)) - -typedef struct _Workers Workers; -typedef struct _WorkersClass WorkersClass; -#define _batch_import_roll_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_roll_unref (var), NULL))) -#define _import_manifest_unref0(var) ((var == NULL) ? NULL : (var = (import_manifest_unref (var), NULL))) - -#define TYPE_BACKGROUND_JOB (background_job_get_type ()) -#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob)) -#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass)) -#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB)) -#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB)) -#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass)) - -typedef struct _BackgroundJob BackgroundJob; -typedef struct _BackgroundJobClass BackgroundJobClass; - -#define TYPE_BACKGROUND_IMPORT_JOB (background_import_job_get_type ()) -#define BACKGROUND_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob)) -#define BACKGROUND_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJobClass)) -#define IS_BACKGROUND_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_IMPORT_JOB)) -#define IS_BACKGROUND_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_IMPORT_JOB)) -#define BACKGROUND_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJobClass)) - -typedef struct _BackgroundImportJob BackgroundImportJob; -typedef struct _BackgroundImportJobClass BackgroundImportJobClass; -typedef struct _BackgroundJobPrivate BackgroundJobPrivate; - -#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ()) -typedef struct _BackgroundImportJobPrivate BackgroundImportJobPrivate; - -#define TYPE_WORK_SNIFFER (work_sniffer_get_type ()) -#define WORK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORK_SNIFFER, WorkSniffer)) -#define WORK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORK_SNIFFER, WorkSnifferClass)) -#define IS_WORK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORK_SNIFFER)) -#define IS_WORK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORK_SNIFFER)) -#define WORK_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORK_SNIFFER, WorkSnifferClass)) - -typedef struct _WorkSniffer WorkSniffer; -typedef struct _WorkSnifferClass WorkSnifferClass; -#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL))) -typedef struct _WorkSnifferPrivate WorkSnifferPrivate; - -#define TYPE_FILE_TO_PREPARE (file_to_prepare_get_type ()) -#define FILE_TO_PREPARE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILE_TO_PREPARE, FileToPrepare)) -#define FILE_TO_PREPARE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILE_TO_PREPARE, FileToPrepareClass)) -#define IS_FILE_TO_PREPARE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILE_TO_PREPARE)) -#define IS_FILE_TO_PREPARE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILE_TO_PREPARE)) -#define FILE_TO_PREPARE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILE_TO_PREPARE, FileToPrepareClass)) - -typedef struct _FileToPrepare FileToPrepare; -typedef struct _FileToPrepareClass FileToPrepareClass; - -#define TYPE_PREPARE_FILES_JOB (prepare_files_job_get_type ()) -#define PREPARE_FILES_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PREPARE_FILES_JOB, PrepareFilesJob)) -#define PREPARE_FILES_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PREPARE_FILES_JOB, PrepareFilesJobClass)) -#define IS_PREPARE_FILES_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PREPARE_FILES_JOB)) -#define IS_PREPARE_FILES_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PREPARE_FILES_JOB)) -#define PREPARE_FILES_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PREPARE_FILES_JOB, PrepareFilesJobClass)) - -typedef struct _PrepareFilesJob PrepareFilesJob; -typedef struct _PrepareFilesJobClass PrepareFilesJobClass; - -#define TYPE_NOTIFICATION_OBJECT (notification_object_get_type ()) -#define NOTIFICATION_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NOTIFICATION_OBJECT, NotificationObject)) -#define NOTIFICATION_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NOTIFICATION_OBJECT, NotificationObjectClass)) -#define IS_NOTIFICATION_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NOTIFICATION_OBJECT)) -#define IS_NOTIFICATION_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NOTIFICATION_OBJECT)) -#define NOTIFICATION_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NOTIFICATION_OBJECT, NotificationObjectClass)) - -typedef struct _NotificationObject NotificationObject; -typedef struct _NotificationObjectClass NotificationObjectClass; - -#define TYPE_THUMBNAIL_WRITER_JOB (thumbnail_writer_job_get_type ()) -#define THUMBNAIL_WRITER_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJob)) -#define THUMBNAIL_WRITER_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJobClass)) -#define IS_THUMBNAIL_WRITER_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_WRITER_JOB)) -#define IS_THUMBNAIL_WRITER_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_WRITER_JOB)) -#define THUMBNAIL_WRITER_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJobClass)) - -typedef struct _ThumbnailWriterJob ThumbnailWriterJob; -typedef struct _ThumbnailWriterJobClass ThumbnailWriterJobClass; -#define _completed_import_object_unref0(var) ((var == NULL) ? NULL : (var = (completed_import_object_unref (var), NULL))) - -#define TYPE_PREPARED_FILE_IMPORT_JOB (prepared_file_import_job_get_type ()) -#define PREPARED_FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJob)) -#define PREPARED_FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJobClass)) -#define IS_PREPARED_FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PREPARED_FILE_IMPORT_JOB)) -#define IS_PREPARED_FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PREPARED_FILE_IMPORT_JOB)) -#define PREPARED_FILE_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJobClass)) - -typedef struct _PreparedFileImportJob PreparedFileImportJob; -typedef struct _PreparedFileImportJobClass PreparedFileImportJobClass; -#define _prepared_file_unref0(var) ((var == NULL) ? NULL : (var = (prepared_file_unref (var), NULL))) -typedef struct _PreparedFilePrivate PreparedFilePrivate; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_INTERLOCKED_NOTIFICATION_OBJECT (interlocked_notification_object_get_type ()) -#define INTERLOCKED_NOTIFICATION_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObject)) -#define INTERLOCKED_NOTIFICATION_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObjectClass)) -#define IS_INTERLOCKED_NOTIFICATION_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INTERLOCKED_NOTIFICATION_OBJECT)) -#define IS_INTERLOCKED_NOTIFICATION_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INTERLOCKED_NOTIFICATION_OBJECT)) -#define INTERLOCKED_NOTIFICATION_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObjectClass)) - -typedef struct _InterlockedNotificationObject InterlockedNotificationObject; -typedef struct _InterlockedNotificationObjectClass InterlockedNotificationObjectClass; - -#define TYPE_PREPARED_FILE_CLUSTER (prepared_file_cluster_get_type ()) -#define PREPARED_FILE_CLUSTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PREPARED_FILE_CLUSTER, PreparedFileCluster)) -#define PREPARED_FILE_CLUSTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PREPARED_FILE_CLUSTER, PreparedFileClusterClass)) -#define IS_PREPARED_FILE_CLUSTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PREPARED_FILE_CLUSTER)) -#define IS_PREPARED_FILE_CLUSTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PREPARED_FILE_CLUSTER)) -#define PREPARED_FILE_CLUSTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PREPARED_FILE_CLUSTER, PreparedFileClusterClass)) - -typedef struct _PreparedFileCluster PreparedFileCluster; -typedef struct _PreparedFileClusterClass PreparedFileClusterClass; -typedef struct _NotificationObjectPrivate NotificationObjectPrivate; -typedef struct _InterlockedNotificationObjectPrivate InterlockedNotificationObjectPrivate; -typedef struct _PreparedFileClusterPrivate PreparedFileClusterPrivate; -#define _notification_object_unref0(var) ((var == NULL) ? NULL : (var = (notification_object_unref (var), NULL))) - -#define LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE (library_photo_source_collection_state_get_type ()) - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ()) -#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) - -typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; -typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; - -#define VIDEO_SOURCE_COLLECTION_TYPE_STATE (video_source_collection_state_get_type ()) - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; - -#define TYPE_VIDEO_SOURCE_COLLECTION (video_source_collection_get_type ()) -#define VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection)) -#define VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) -#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION)) -#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION)) -#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) - -typedef struct _VideoSourceCollection VideoSourceCollection; -typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass; - -#define TYPE_VIDEO_ID (video_id_get_type ()) -typedef struct _VideoID VideoID; - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; - -#define TYPE_VIDEO_TABLE (video_table_get_type ()) -#define VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_TABLE, VideoTable)) -#define VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_TABLE, VideoTableClass)) -#define IS_VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_TABLE)) -#define IS_VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_TABLE)) -#define VIDEO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_TABLE, VideoTableClass)) - -typedef struct _VideoTable VideoTable; -typedef struct _VideoTableClass VideoTableClass; -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) - -#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ()) -#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)) -#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) -#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK)) -#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK)) -#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) - -typedef struct _SourceHoldingTank SourceHoldingTank; -typedef struct _SourceHoldingTankClass SourceHoldingTankClass; - -#define TYPE_DATABASE_SOURCE_HOLDING_TANK (database_source_holding_tank_get_type ()) -#define DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank)) -#define DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass)) -#define IS_DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK)) -#define IS_DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK)) -#define DATABASE_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass)) - -typedef struct _DatabaseSourceHoldingTank DatabaseSourceHoldingTank; -typedef struct _DatabaseSourceHoldingTankClass DatabaseSourceHoldingTankClass; - -#define TYPE_MEDIA_SOURCE_HOLDING_TANK (media_source_holding_tank_get_type ()) -#define MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank)) -#define MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass)) -#define IS_MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK)) -#define IS_MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK)) -#define MEDIA_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass)) - -typedef struct _MediaSourceHoldingTank MediaSourceHoldingTank; -typedef struct _MediaSourceHoldingTankClass MediaSourceHoldingTankClass; -#define _source_holding_tank_unref0(var) ((var == NULL) ? NULL : (var = (source_holding_tank_unref (var), NULL))) - -#define TYPE_MONITORABLE (monitorable_get_type ()) -#define MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE, Monitorable)) -#define IS_MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE)) -#define MONITORABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MONITORABLE, MonitorableIface)) - -typedef struct _Monitorable Monitorable; -typedef struct _MonitorableIface MonitorableIface; - -#define TYPE_PHOTO_ID (photo_id_get_type ()) -typedef struct _PhotoID PhotoID; - -#define TYPE_PHOTO_TABLE (photo_table_get_type ()) -#define PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TABLE, PhotoTable)) -#define PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TABLE, PhotoTableClass)) -#define IS_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TABLE)) -#define IS_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TABLE)) -#define PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TABLE, PhotoTableClass)) - -typedef struct _PhotoTable PhotoTable; -typedef struct _PhotoTableClass PhotoTableClass; -typedef struct _BatchImportProcessPreparedFilesData BatchImportProcessPreparedFilesData; -typedef struct _PrepareFilesJobPrivate PrepareFilesJobPrivate; -typedef struct _PreparedFileImportJobPrivate PreparedFileImportJobPrivate; - -#define TYPE_READY_FOR_IMPORT (ready_for_import_get_type ()) -#define READY_FOR_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_READY_FOR_IMPORT, ReadyForImport)) -#define READY_FOR_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_READY_FOR_IMPORT, ReadyForImportClass)) -#define IS_READY_FOR_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_READY_FOR_IMPORT)) -#define IS_READY_FOR_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_READY_FOR_IMPORT)) -#define READY_FOR_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_READY_FOR_IMPORT, ReadyForImportClass)) - -typedef struct _ReadyForImport ReadyForImport; -typedef struct _ReadyForImportClass ReadyForImportClass; -typedef struct _ReadyForImportPrivate ReadyForImportPrivate; - -#define TYPE_PHOTO_IMPORT_PARAMS (photo_import_params_get_type ()) -#define PHOTO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParams)) -#define PHOTO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParamsClass)) -#define IS_PHOTO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_IMPORT_PARAMS)) -#define IS_PHOTO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_IMPORT_PARAMS)) -#define PHOTO_IMPORT_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParamsClass)) - -typedef struct _PhotoImportParams PhotoImportParams; -typedef struct _PhotoImportParamsClass PhotoImportParamsClass; - -#define TYPE_VIDEO_IMPORT_PARAMS (video_import_params_get_type ()) -#define VIDEO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_IMPORT_PARAMS, VideoImportParams)) -#define VIDEO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_IMPORT_PARAMS, VideoImportParamsClass)) -#define IS_VIDEO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_IMPORT_PARAMS)) -#define IS_VIDEO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_IMPORT_PARAMS)) -#define VIDEO_IMPORT_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_IMPORT_PARAMS, VideoImportParamsClass)) - -typedef struct _VideoImportParams VideoImportParams; -typedef struct _VideoImportParamsClass VideoImportParamsClass; - -#define TYPE_TOMBSTONE (tombstone_get_type ()) -#define TOMBSTONE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE, Tombstone)) -#define TOMBSTONE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE, TombstoneClass)) -#define IS_TOMBSTONE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE)) -#define IS_TOMBSTONE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE)) -#define TOMBSTONE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE, TombstoneClass)) - -typedef struct _Tombstone Tombstone; -typedef struct _TombstoneClass TombstoneClass; - -#define TYPE_TOMBSTONE_SOURCE_COLLECTION (tombstone_source_collection_get_type ()) -#define TOMBSTONE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollection)) -#define TOMBSTONE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollectionClass)) -#define IS_TOMBSTONE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION)) -#define IS_TOMBSTONE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE_SOURCE_COLLECTION)) -#define TOMBSTONE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollectionClass)) - -typedef struct _TombstoneSourceCollection TombstoneSourceCollection; -typedef struct _TombstoneSourceCollectionClass TombstoneSourceCollectionClass; -typedef struct _PhotoImportParamsPrivate PhotoImportParamsPrivate; - -#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ()) - -#define TYPE_THUMBNAILS (thumbnails_get_type ()) -#define THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAILS, Thumbnails)) -#define THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAILS, ThumbnailsClass)) -#define IS_THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAILS)) -#define IS_THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAILS)) -#define THUMBNAILS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAILS, ThumbnailsClass)) - -typedef struct _Thumbnails Thumbnails; -typedef struct _ThumbnailsClass ThumbnailsClass; - -#define TYPE_PHOTO_ROW (photo_row_get_type ()) -#define PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_ROW, PhotoRow)) -#define PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_ROW, PhotoRowClass)) -#define IS_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_ROW)) -#define IS_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_ROW)) -#define PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_ROW, PhotoRowClass)) - -typedef struct _PhotoRow PhotoRow; -typedef struct _PhotoRowClass PhotoRowClass; - -#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ()) -#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow)) -#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) -#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW)) -#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW)) -#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) - -typedef struct _BackingPhotoRow BackingPhotoRow; -typedef struct _BackingPhotoRowClass BackingPhotoRowClass; -typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate; - -#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ()) -typedef struct _BackingPhotoID BackingPhotoID; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_ORIENTATION (orientation_get_type ()) - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) -#define _backing_photo_row_unref0(var) ((var == NULL) ? NULL : (var = (backing_photo_row_unref (var), NULL))) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define _thumbnails_unref0(var) ((var == NULL) ? NULL : (var = (thumbnails_unref (var), NULL))) -typedef struct _ThumbnailWriterJobPrivate ThumbnailWriterJobPrivate; -typedef struct _CompletedImportObjectPrivate CompletedImportObjectPrivate; - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_EVENT_SOURCE_COLLECTION (event_source_collection_get_type ()) -#define EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection)) -#define EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass)) -#define IS_EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE_COLLECTION)) -#define IS_EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE_COLLECTION)) -#define EVENT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass)) - -typedef struct _EventSourceCollection EventSourceCollection; -typedef struct _EventSourceCollectionClass EventSourceCollectionClass; - -#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ()) -#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection)) -#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) -#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION)) -#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION)) -#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) - -typedef struct _TagSourceCollection TagSourceCollection; -typedef struct _TagSourceCollectionClass TagSourceCollectionClass; -enum { - BATCH_IMPORT_STARTING_SIGNAL, - BATCH_IMPORT_PREPARING_SIGNAL, - BATCH_IMPORT_PROGRESS_SIGNAL, - BATCH_IMPORT_IMPORTED_SIGNAL, - BATCH_IMPORT_FATAL_ERROR_SIGNAL, - BATCH_IMPORT_IMPORT_JOB_FAILED_SIGNAL, - BATCH_IMPORT_IMPORT_COMPLETE_SIGNAL, - BATCH_IMPORT_NUM_SIGNALS -}; -static guint batch_import_signals[BATCH_IMPORT_NUM_SIGNALS] = {0}; -typedef struct _DuplicatedFilePrivate DuplicatedFilePrivate; -enum { - DUPLICATED_FILE_0_PROPERTY, - DUPLICATED_FILE_NUM_PROPERTIES -}; -static GParamSpec* duplicated_file_properties[DUPLICATED_FILE_NUM_PROPERTIES]; -#define _video_id_free0(var) ((var == NULL) ? NULL : (var = (video_id_free (var), NULL))) -#define _photo_id_free0(var) ((var == NULL) ? NULL : (var = (photo_id_free (var), NULL))) - -#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ()) -#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)) -#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) -#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE)) -#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE)) -#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) - -typedef struct _AbstractSemaphore AbstractSemaphore; -typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass; -typedef struct _FileToPreparePrivate FileToPreparePrivate; -#define _file_to_prepare_unref0(var) ((var == NULL) ? NULL : (var = (file_to_prepare_unref (var), NULL))) -typedef struct _ParamSpecFileToPrepare ParamSpecFileToPrepare; - -#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ()) -#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties)) -#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) - -typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties; -typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass; - -#define TYPE_RAW_FILE_FORMAT_PROPERTIES (raw_file_format_properties_get_type ()) -#define RAW_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties)) -#define RAW_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatPropertiesClass)) -#define IS_RAW_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RAW_FILE_FORMAT_PROPERTIES)) -#define IS_RAW_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RAW_FILE_FORMAT_PROPERTIES)) -#define RAW_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatPropertiesClass)) - -typedef struct _RawFileFormatProperties RawFileFormatProperties; -typedef struct _RawFileFormatPropertiesClass RawFileFormatPropertiesClass; -#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL))) - -#define TYPE_JFIF_FILE_FORMAT_PROPERTIES (jfif_file_format_properties_get_type ()) -#define JFIF_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties)) -#define JFIF_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatPropertiesClass)) -#define IS_JFIF_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_JFIF_FILE_FORMAT_PROPERTIES)) -#define IS_JFIF_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_JFIF_FILE_FORMAT_PROPERTIES)) -#define JFIF_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatPropertiesClass)) - -typedef struct _JfifFileFormatProperties JfifFileFormatProperties; -typedef struct _JfifFileFormatPropertiesClass JfifFileFormatPropertiesClass; -typedef struct _ParamSpecPreparedFile ParamSpecPreparedFile; - -#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ()) -#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)) -#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) -#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER)) -#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER)) -#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) - -typedef struct _PhotoFileAdapter PhotoFileAdapter; -typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass; - -#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ()) -#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader)) -#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) -#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER)) -#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER)) -#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) - -typedef struct _PhotoFileReader PhotoFileReader; -typedef struct _PhotoFileReaderClass PhotoFileReaderClass; - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; -#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL))) -#define _photo_file_adapter_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_adapter_unref (var), NULL))) -#define _photo_import_params_unref0(var) ((var == NULL) ? NULL : (var = (photo_import_params_unref (var), NULL))) -#define _video_import_params_unref0(var) ((var == NULL) ? NULL : (var = (video_import_params_unref (var), NULL))) -typedef struct _VideoImportParamsPrivate VideoImportParamsPrivate; - -#define TYPE_VIDEO_ROW (video_row_get_type ()) -#define VIDEO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_ROW, VideoRow)) -#define VIDEO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_ROW, VideoRowClass)) -#define IS_VIDEO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_ROW)) -#define IS_VIDEO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_ROW)) -#define VIDEO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_ROW, VideoRowClass)) - -typedef struct _VideoRow VideoRow; -typedef struct _VideoRowClass VideoRowClass; -typedef struct _ParamSpecReadyForImport ParamSpecReadyForImport; -#define _ready_for_import_unref0(var) ((var == NULL) ? NULL : (var = (ready_for_import_unref (var), NULL))) - -#define THUMBNAIL_CACHE_TYPE_SIZE (thumbnail_cache_size_get_type ()) -typedef struct _ParamSpecCompletedImportObject ParamSpecCompletedImportObject; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef enum { - IMPORT_RESULT_SUCCESS, - IMPORT_RESULT_FILE_ERROR, - IMPORT_RESULT_DECODE_ERROR, - IMPORT_RESULT_DATABASE_ERROR, - IMPORT_RESULT_USER_ABORT, - IMPORT_RESULT_NOT_A_FILE, - IMPORT_RESULT_PHOTO_EXISTS, - IMPORT_RESULT_UNSUPPORTED_FORMAT, - IMPORT_RESULT_NOT_AN_IMAGE, - IMPORT_RESULT_DISK_FAILURE, - IMPORT_RESULT_DISK_FULL, - IMPORT_RESULT_CAMERA_ERROR, - IMPORT_RESULT_FILE_WRITE_ERROR, - IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE -} ImportResult; - -typedef enum { - GPHOTO_ERROR_LIBRARY -} GPhotoError; -#define GPHOTO_ERROR gphoto_error_quark () -struct _BatchImportJob { - GTypeInstance parent_instance; - volatile int ref_count; - BatchImportJobPrivate * priv; -}; - -struct _BatchImportJobClass { - GTypeClass parent_class; - void (*finalize) (BatchImportJob *self); - gchar* (*get_dest_identifier) (BatchImportJob* self); - gchar* (*get_source_identifier) (BatchImportJob* self); - gboolean (*is_directory) (BatchImportJob* self); - gchar* (*get_basename) (BatchImportJob* self); - gchar* (*get_path) (BatchImportJob* self); - DuplicatedFile* (*get_duplicated_file) (BatchImportJob* self); - GFile* (*get_associated_file) (BatchImportJob* self); - void (*set_associated) (BatchImportJob* self, BatchImportJob* associated); - gboolean (*determine_file_size) (BatchImportJob* self, guint64* filesize, GFile* * file_or_dir); - gboolean (*prepare) (BatchImportJob* self, GFile* * file_to_import, gboolean* copy_to_library, GError** error); - gboolean (*complete) (BatchImportJob* self, MediaSource* source, BatchImportRoll* import_roll, GError** error); - time_t (*get_exposure_time_override) (BatchImportJob* self); - gboolean (*recurse) (BatchImportJob* self); -}; - -struct _ParamSpecBatchImportJob { - GParamSpec parent_instance; -}; - -struct _FileImportJob { - BatchImportJob parent_instance; - FileImportJobPrivate * priv; -}; - -struct _FileImportJobClass { - BatchImportJobClass parent_class; -}; - -struct _FileImportJobPrivate { - GFile* file_or_dir; - gboolean copy_to_library; - FileImportJob* associated; - gboolean _recurse; -}; - -struct _ImportID { - gint64 id; -}; - -struct _BatchImportRoll { - GTypeInstance parent_instance; - volatile int ref_count; - BatchImportRollPrivate * priv; - ImportID import_id; - ViewCollection* generated_events; -}; - -struct _BatchImportRollClass { - GTypeClass parent_class; - void (*finalize) (BatchImportRoll *self); -}; - -struct _ParamSpecBatchImportRoll { - GParamSpec parent_instance; -}; - -struct _BatchImportResult { - GTypeInstance parent_instance; - volatile int ref_count; - BatchImportResultPrivate * priv; - BatchImportJob* job; - GFile* file; - gchar* src_identifier; - gchar* dest_identifier; - ImportResult result; - gchar* errmsg; - DuplicatedFile* duplicate_of; -}; - -struct _BatchImportResultClass { - GTypeClass parent_class; - void (*finalize) (BatchImportResult *self); -}; - -struct _ParamSpecBatchImportResult { - GParamSpec parent_instance; -}; - -struct _ImportManifest { - GTypeInstance parent_instance; - volatile int ref_count; - ImportManifestPrivate * priv; - GeeList* imported; - GeeList* success; - GeeList* camera_failed; - GeeList* failed; - GeeList* write_failed; - GeeList* skipped_photos; - GeeList* skipped_files; - GeeList* aborted; - GeeList* already_imported; - GeeList* corrupt_files; - GeeList* all; - GTimer* timer; -}; - -struct _ImportManifestClass { - GTypeClass parent_class; - void (*finalize) (ImportManifest *self); -}; - -struct _ParamSpecImportManifest { - GParamSpec parent_instance; -}; - -struct _BatchImport { - GObject parent_instance; - BatchImportPrivate * priv; -}; - -struct _BatchImportClass { - GObjectClass parent_class; -}; - -typedef void (*BatchImportImportReporter) (ImportManifest* manifest, BatchImportRoll* import_roll, void* user_data); -struct _BatchImportPrivate { - GeeIterable* jobs; - BatchImportRoll* import_roll; - gchar* name; - guint64 completed_bytes; - guint64 total_bytes; - BatchImportImportReporter reporter; - gpointer reporter_target; - ImportManifest* manifest; - gboolean scheduled; - gboolean completed; - gint file_imports_to_perform; - gint file_imports_completed; - GCancellable* cancellable; - gulong last_preparing_ms; - GeeHashSet* skipset; - GeeHashMap* imported_full_md5_table; - guint throbber_id; - guint max_outstanding_import_jobs; - gboolean untrash_duplicates; - gboolean mark_duplicates_online; - GeeList* ready_files; - GeeList* ready_thumbnails; - GeeList* display_imported_queue; - GeeList* ready_sources; -}; - -typedef enum { - BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100, - BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75, - BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50, - BACKGROUND_JOB_JOB_PRIORITY_LOW = 25, - BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0 -} BackgroundJobJobPriority; - -struct _BackgroundJob { - GTypeInstance parent_instance; - volatile int ref_count; - BackgroundJobPrivate * priv; -}; - -struct _BackgroundJobClass { - GTypeClass parent_class; - void (*finalize) (BackgroundJob *self); - void (*execute) (BackgroundJob* self); - BackgroundJobJobPriority (*get_priority) (BackgroundJob* self); -}; - -struct _BackgroundImportJob { - BackgroundJob parent_instance; - BackgroundImportJobPrivate * priv; - ImportResult abort_flag; - GeeList* failed; -}; - -struct _BackgroundImportJobClass { - BackgroundJobClass parent_class; -}; - -typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data); -typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data); -struct _WorkSniffer { - BackgroundImportJob parent_instance; - WorkSnifferPrivate * priv; - GeeList* files_to_prepare; - guint64 total_bytes; -}; - -struct _WorkSnifferClass { - BackgroundImportJobClass parent_class; -}; - -typedef void (*NotificationCallback) (BackgroundJob* job, NotificationObject* user, void* user_data); -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _PreparedFile { - GTypeInstance parent_instance; - volatile int ref_count; - PreparedFilePrivate * priv; - BatchImportJob* job; - ImportResult result; - GFile* file; - GFile* associated_file; - gchar* source_id; - gchar* dest_id; - gboolean copy_to_library; - gchar* exif_md5; - gchar* thumbnail_md5; - gchar* full_md5; - PhotoFileFormat file_format; - guint64 filesize; - gboolean is_video; -}; - -struct _PreparedFileClass { - GTypeClass parent_class; - void (*finalize) (PreparedFile *self); -}; - -struct _NotificationObject { - GTypeInstance parent_instance; - volatile int ref_count; - NotificationObjectPrivate * priv; -}; - -struct _NotificationObjectClass { - GTypeClass parent_class; - void (*finalize) (NotificationObject *self); -}; - -struct _InterlockedNotificationObject { - NotificationObject parent_instance; - InterlockedNotificationObjectPrivate * priv; -}; - -struct _InterlockedNotificationObjectClass { - NotificationObjectClass parent_class; -}; - -struct _PreparedFileCluster { - InterlockedNotificationObject parent_instance; - PreparedFileClusterPrivate * priv; - GeeArrayList* list; -}; - -struct _PreparedFileClusterClass { - InterlockedNotificationObjectClass parent_class; -}; - -typedef enum { - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_UNKNOWN, - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE, - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE, - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH, - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE, - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER -} LibraryPhotoSourceCollectionState; - -typedef enum { - VIDEO_SOURCE_COLLECTION_STATE_UNKNOWN, - VIDEO_SOURCE_COLLECTION_STATE_ONLINE, - VIDEO_SOURCE_COLLECTION_STATE_OFFLINE, - VIDEO_SOURCE_COLLECTION_STATE_TRASH -} VideoSourceCollectionState; - -struct _VideoID { - gint64 id; -}; - -struct _MonitorableIface { - GTypeInterface parent_iface; - gboolean (*is_offline) (Monitorable* self); - void (*mark_online) (Monitorable* self); - void (*mark_offline) (Monitorable* self); - void (*set_master_file) (Monitorable* self, GFile* file); - void (*set_master_timestamp) (Monitorable* self, GFileInfo* info); -}; - -struct _PhotoID { - gint64 id; -}; - -struct _BatchImportProcessPreparedFilesData { - int _state_; - GObject* _source_object_; - GAsyncResult* _res_; - GTask* _async_result; - GAsyncReadyCallback _callback_; - gboolean _task_complete_; - BatchImport* self; - GeeList* list; - GeeList* _prepared_file_list; - GeeList* _tmp0_; - gint _prepared_file_size; - GeeList* _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint _prepared_file_index; - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; - PreparedFile* prepared_file; - GeeList* _tmp7_; - gint _tmp8_; - gpointer _tmp9_; - BatchImportResult* import_result; - LibraryPhotoSourceCollectionState photo_state; - LibraryPhoto* photo; - LibraryPhotoSourceCollection* _tmp10_; - PreparedFile* _tmp11_; - GFile* _tmp12_; - LibraryPhotoSourceCollectionState _tmp13_; - LibraryPhoto* _tmp14_; - LibraryPhoto* _tmp15_; - LibraryPhotoSourceCollectionState _tmp16_; - PreparedFile* _tmp17_; - BatchImportJob* _tmp18_; - PreparedFile* _tmp19_; - GFile* _tmp20_; - PreparedFile* _tmp21_; - GFile* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - PreparedFile* _tmp25_; - GFile* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - LibraryPhoto* _tmp29_; - GFile* _tmp30_; - GFile* _tmp31_; - DuplicatedFile* _tmp32_; - DuplicatedFile* _tmp33_; - BatchImportResult* _tmp34_; - LibraryPhotoSourceCollectionState _tmp35_; - LibraryPhoto* _tmp36_; - LibraryPhotoSourceCollectionState _tmp37_; - GEnumValue* _tmp38_; - BatchImportResult* _tmp39_; - BatchImportResult* _tmp40_; - VideoSourceCollectionState video_state; - Video* video; - VideoSourceCollection* _tmp41_; - PreparedFile* _tmp42_; - GFile* _tmp43_; - VideoSourceCollectionState _tmp44_; - Video* _tmp45_; - Video* _tmp46_; - VideoSourceCollectionState _tmp47_; - PreparedFile* _tmp48_; - BatchImportJob* _tmp49_; - PreparedFile* _tmp50_; - GFile* _tmp51_; - PreparedFile* _tmp52_; - GFile* _tmp53_; - gchar* _tmp54_; - gchar* _tmp55_; - PreparedFile* _tmp56_; - GFile* _tmp57_; - gchar* _tmp58_; - gchar* _tmp59_; - Video* _tmp60_; - GFile* _tmp61_; - GFile* _tmp62_; - DuplicatedFile* _tmp63_; - DuplicatedFile* _tmp64_; - BatchImportResult* _tmp65_; - VideoSourceCollectionState _tmp66_; - Video* _tmp67_; - VideoSourceCollectionState _tmp68_; - GEnumValue* _tmp69_; - BatchImportResult* _tmp70_; - BatchImportResult* _tmp71_; - gboolean _tmp72_; - PreparedFile* _tmp73_; - gboolean _tmp74_; - PreparedFile* _tmp75_; - GFile* _tmp76_; - PreparedFile* _tmp77_; - const gchar* _tmp78_; - VideoID* duplicate_ids; - VideoTable* _tmp79_; - VideoTable* _tmp80_; - PreparedFile* _tmp81_; - GFile* _tmp82_; - PreparedFile* _tmp83_; - const gchar* _tmp84_; - gint _tmp85_; - VideoID* _tmp86_; - VideoID* _tmp87_; - gint _tmp87__length1; - gint duplicate_ids_length1; - gint _duplicate_ids_size_; - VideoID* _tmp88_; - gint _tmp88__length1; - DuplicatedFile* duplicated_file; - VideoID* _tmp89_; - gint _tmp89__length1; - VideoID _tmp90_; - DuplicatedFile* _tmp91_; - ImportResult result_code; - gboolean _tmp92_; - Video* dupe_video; - VideoSourceCollection* _tmp93_; - MediaSourceHoldingTank* _tmp94_; - MediaSourceHoldingTank* _tmp95_; - PreparedFile* _tmp96_; - GFile* _tmp97_; - MediaSource* _tmp98_; - Video* _tmp99_; - Video* _tmp100_; - VideoSourceCollection* _tmp101_; - MediaSourceHoldingTank* _tmp102_; - MediaSourceHoldingTank* _tmp103_; - PreparedFile* _tmp104_; - const gchar* _tmp105_; - MediaSource* _tmp106_; - Video* _tmp107_; - PreparedFile* _tmp108_; - GFile* _tmp109_; - gchar* _tmp110_; - gchar* _tmp111_; - Video* _tmp112_; - PreparedFile* _tmp113_; - GFile* _tmp114_; - Video* _tmp115_; - ImportManifest* _tmp116_; - GeeList* _tmp117_; - Video* _tmp118_; - Video* _tmp119_; - PreparedFile* _tmp120_; - BatchImportJob* _tmp121_; - PreparedFile* _tmp122_; - GFile* _tmp123_; - PreparedFile* _tmp124_; - GFile* _tmp125_; - gchar* _tmp126_; - gchar* _tmp127_; - PreparedFile* _tmp128_; - GFile* _tmp129_; - gchar* _tmp130_; - gchar* _tmp131_; - DuplicatedFile* _tmp132_; - ImportResult _tmp133_; - BatchImportResult* _tmp134_; - ImportResult _tmp135_; - ImportManifest* _tmp136_; - BatchImportResult* _tmp137_; - PreparedFile* _tmp138_; - GFile* _tmp139_; - GFile* _tmp140_; - gboolean _tmp141_; - PreparedFile* _tmp142_; - BatchImportJob* _tmp143_; - PreparedFile* _tmp144_; - GFile* _tmp145_; - PreparedFile* _tmp146_; - GFile* _tmp147_; - gchar* _tmp148_; - gchar* _tmp149_; - PreparedFile* _tmp150_; - GFile* _tmp151_; - gchar* _tmp152_; - gchar* _tmp153_; - PreparedFile* _tmp154_; - GFile* _tmp155_; - GFile* _tmp156_; - DuplicatedFile* _tmp157_; - DuplicatedFile* _tmp158_; - BatchImportResult* _tmp159_; - PreparedFile* _tmp160_; - GFile* _tmp161_; - PreparedFile* _tmp162_; - const gchar* _tmp163_; - PreparedFile* _tmp164_; - PhotoFileFormat _tmp165_; - gboolean _tmp166_; - LibraryPhotoSourceCollection* _tmp167_; - PreparedFile* _tmp168_; - GFile* _tmp169_; - LibraryPhoto* _tmp170_; - gboolean _tmp171_; - LibraryPhoto* _tmp172_; - PreparedFile* _tmp173_; - const gchar* _tmp174_; - LibraryPhotoSourceCollection* _tmp175_; - PreparedFile* _tmp176_; - const gchar* _tmp177_; - LibraryPhoto* _tmp178_; - LibraryPhoto* _tmp179_; - PreparedFile* _tmp180_; - GFile* _tmp181_; - gchar* _tmp182_; - gchar* _tmp183_; - LibraryPhoto* _tmp184_; - PreparedFile* _tmp185_; - GFile* _tmp186_; - LibraryPhoto* _tmp187_; - LibraryPhoto* _tmp188_; - gboolean _tmp189_; - LibraryPhoto* _tmp190_; - gboolean _tmp191_; - LibraryPhotoSourceCollection* _tmp192_; - PreparedFile* _tmp193_; - GFile* _tmp194_; - LibraryPhoto* _tmp195_; - gboolean _tmp196_; - LibraryPhoto* _tmp197_; - PreparedFile* _tmp198_; - const gchar* _tmp199_; - LibraryPhotoSourceCollection* _tmp200_; - PreparedFile* _tmp201_; - const gchar* _tmp202_; - LibraryPhoto* _tmp203_; - LibraryPhoto* _tmp204_; - PreparedFile* _tmp205_; - GFile* _tmp206_; - gchar* _tmp207_; - gchar* _tmp208_; - LibraryPhoto* _tmp209_; - PreparedFile* _tmp210_; - GFile* _tmp211_; - LibraryPhoto* _tmp212_; - LibraryPhoto* _tmp213_; - PreparedFile* _tmp214_; - BatchImportJob* _tmp215_; - PreparedFile* _tmp216_; - GFile* _tmp217_; - PreparedFile* _tmp218_; - GFile* _tmp219_; - gchar* _tmp220_; - gchar* _tmp221_; - PreparedFile* _tmp222_; - GFile* _tmp223_; - gchar* _tmp224_; - gchar* _tmp225_; - BatchImportResult* _tmp226_; - ImportManifest* _tmp227_; - GeeList* _tmp228_; - LibraryPhoto* _tmp229_; - ImportManifest* _tmp230_; - BatchImportResult* _tmp231_; - LibraryPhoto* _tmp232_; - PreparedFile* _tmp233_; - GFile* _tmp234_; - gchar* _tmp235_; - gchar* _tmp236_; - PhotoID* photo_ids; - PhotoTable* _tmp237_; - PhotoTable* _tmp238_; - PreparedFile* _tmp239_; - GFile* _tmp240_; - PreparedFile* _tmp241_; - const gchar* _tmp242_; - PreparedFile* _tmp243_; - PhotoFileFormat _tmp244_; - gint _tmp245_; - PhotoID* _tmp246_; - PhotoID* _tmp247_; - gint _tmp247__length1; - gint photo_ids_length1; - gint _photo_ids_size_; - PhotoID* _tmp248_; - gint _tmp248__length1; - DuplicatedFile* _vala1_duplicated_file; - PhotoID* _tmp249_; - gint _tmp249__length1; - PhotoID _tmp250_; - DuplicatedFile* _tmp251_; - PreparedFile* _tmp252_; - BatchImportJob* _tmp253_; - PreparedFile* _tmp254_; - GFile* _tmp255_; - PreparedFile* _tmp256_; - GFile* _tmp257_; - gchar* _tmp258_; - gchar* _tmp259_; - PreparedFile* _tmp260_; - GFile* _tmp261_; - gchar* _tmp262_; - gchar* _tmp263_; - DuplicatedFile* _tmp264_; - BatchImportResult* _tmp265_; - BatchImportResult* _tmp266_; - BatchImportResult* _tmp267_; - GeeList* _tmp268_; - PreparedFile* _tmp269_; -}; - -struct _PrepareFilesJob { - BackgroundImportJob parent_instance; - PrepareFilesJobPrivate * priv; - gint prepared_files; -}; - -struct _PrepareFilesJobClass { - BackgroundImportJobClass parent_class; -}; - -struct _PreparedFileImportJob { - BackgroundJob parent_instance; - PreparedFileImportJobPrivate * priv; - PreparedFile* not_ready; - ReadyForImport* ready; - BatchImportResult* failed; -}; - -struct _PreparedFileImportJobClass { - BackgroundJobClass parent_class; -}; - -struct _ReadyForImport { - GTypeInstance parent_instance; - volatile int ref_count; - ReadyForImportPrivate * priv; - GFile* final_file; - PreparedFile* prepared_file; - PhotoImportParams* photo_import_params; - VideoImportParams* video_import_params; - BatchImportResult* batch_result; - gboolean is_video; -}; - -struct _ReadyForImportClass { - GTypeClass parent_class; - void (*finalize) (ReadyForImport *self); -}; - -typedef enum { - PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000, - PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001 -} PhotoFileSnifferOptions; - -struct _PhotoImportParams { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoImportParamsPrivate * priv; - GFile* file; - GFile* final_associated_file; - ImportID import_id; - PhotoFileSnifferOptions sniffer_options; - gchar* exif_md5; - gchar* thumbnail_md5; - gchar* full_md5; - Thumbnails* thumbnails; - PhotoRow* row; - GeeCollection* keywords; -}; - -struct _PhotoImportParamsClass { - GTypeClass parent_class; - void (*finalize) (PhotoImportParams *self); -}; - -struct _BackingPhotoID { - gint64 id; -}; - -struct _Dimensions { - gint width; - gint height; -}; - -typedef enum { - ORIENTATION_MIN = 1, - ORIENTATION_TOP_LEFT = 1, - ORIENTATION_TOP_RIGHT = 2, - ORIENTATION_BOTTOM_RIGHT = 3, - ORIENTATION_BOTTOM_LEFT = 4, - ORIENTATION_LEFT_TOP = 5, - ORIENTATION_RIGHT_TOP = 6, - ORIENTATION_RIGHT_BOTTOM = 7, - ORIENTATION_LEFT_BOTTOM = 8, - ORIENTATION_MAX = 8 -} Orientation; - -struct _BackingPhotoRow { - GTypeInstance parent_instance; - volatile int ref_count; - BackingPhotoRowPrivate * priv; - BackingPhotoID id; - time_t time_created; - gchar* filepath; - gint64 filesize; - time_t timestamp; - PhotoFileFormat file_format; - Dimensions dim; - Orientation original_orientation; -}; - -struct _BackingPhotoRowClass { - GTypeClass parent_class; - void (*finalize) (BackingPhotoRow *self); -}; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _ThumbnailWriterJob { - BackgroundImportJob parent_instance; - ThumbnailWriterJobPrivate * priv; - CompletedImportObject* completed_import_source; -}; - -struct _ThumbnailWriterJobClass { - BackgroundImportJobClass parent_class; -}; - -struct _CompletedImportObject { - GTypeInstance parent_instance; - volatile int ref_count; - CompletedImportObjectPrivate * priv; - Thumbnails* thumbnails; - BatchImportResult* batch_result; - MediaSource* source; - BatchImportJob* original_job; - GdkPixbuf* user_preview; -}; - -struct _CompletedImportObjectClass { - GTypeClass parent_class; - void (*finalize) (CompletedImportObject *self); -}; - -struct _DuplicatedFile { - GObject parent_instance; - DuplicatedFilePrivate * priv; -}; - -struct _DuplicatedFileClass { - GObjectClass parent_class; -}; - -struct _DuplicatedFilePrivate { - VideoID* video_id; - PhotoID* photo_id; - GFile* file; -}; - -struct _FileToPrepare { - GTypeInstance parent_instance; - volatile int ref_count; - FileToPreparePrivate * priv; - BatchImportJob* job; - GFile* file; - gboolean copy_to_library; - FileToPrepare* associated; -}; - -struct _FileToPrepareClass { - GTypeClass parent_class; - void (*finalize) (FileToPrepare *self); -}; - -struct _ParamSpecFileToPrepare { - GParamSpec parent_instance; -}; - -struct _WorkSnifferPrivate { - GeeIterable* jobs; - GeeHashSet* skipset; -}; - -struct _ParamSpecPreparedFile { - GParamSpec parent_instance; -}; - -struct _PrepareFilesJobPrivate { - GeeList* files_to_prepare; - NotificationCallback notification; - gpointer notification_target; - GFile* library_dir; - gint import_file_count; - gint fail_every; - gint skip_every; -}; - -struct _VideoImportParams { - GTypeInstance parent_instance; - volatile int ref_count; - VideoImportParamsPrivate * priv; - GFile* file; - ImportID import_id; - gchar* md5; - time_t exposure_time_override; - Thumbnails* thumbnails; - VideoRow* row; -}; - -struct _VideoImportParamsClass { - GTypeClass parent_class; - void (*finalize) (VideoImportParams *self); -}; - -struct _ParamSpecReadyForImport { - GParamSpec parent_instance; -}; - -struct _PreparedFileImportJobPrivate { - ImportID import_id; -}; - -typedef enum { - THUMBNAIL_CACHE_SIZE_LARGEST = 360, - THUMBNAIL_CACHE_SIZE_BIG = 360, - THUMBNAIL_CACHE_SIZE_MEDIUM = 128, - THUMBNAIL_CACHE_SIZE_SMALLEST = 128 -} ThumbnailCacheSize; - -struct _ParamSpecCompletedImportObject { - GParamSpec parent_instance; -}; - - -static gpointer batch_import_job_parent_class = NULL; -static gpointer file_import_job_parent_class = NULL; -static gpointer batch_import_roll_parent_class = NULL; -static gpointer batch_import_result_parent_class = NULL; -static gpointer import_manifest_parent_class = NULL; -static gpointer batch_import_parent_class = NULL; -static Workers* batch_import_feeder_workers; -static Workers* batch_import_feeder_workers = NULL; -static Workers* batch_import_import_workers; -static Workers* batch_import_import_workers = NULL; -extern LibraryPhotoSourceCollection* library_photo_global; -extern VideoSourceCollection* video_global; -extern TombstoneSourceCollection* tombstone_global; -extern EventSourceCollection* event_global; -extern TagSourceCollection* tag_global; -static gpointer duplicated_file_parent_class = NULL; -static gpointer background_import_job_parent_class = NULL; -static gpointer file_to_prepare_parent_class = NULL; -static gpointer work_sniffer_parent_class = NULL; -static gpointer prepared_file_parent_class = NULL; -static gpointer prepared_file_cluster_parent_class = NULL; -static gpointer prepare_files_job_parent_class = NULL; -static gpointer ready_for_import_parent_class = NULL; -static gpointer prepared_file_import_job_parent_class = NULL; -static gpointer completed_import_object_parent_class = NULL; -static gpointer thumbnail_writer_job_parent_class = NULL; - -GType import_result_get_type (void) G_GNUC_CONST; -gchar* import_result_to_string (ImportResult self); -gboolean import_result_is_abort (ImportResult self); -gboolean import_result_is_nonuser_abort (ImportResult self); -ImportResult import_result_convert_error (GError* err, - ImportResult default_result); -GQuark gphoto_error_quark (void); -gpointer batch_import_job_ref (gpointer instance); -void batch_import_job_unref (gpointer instance); -GParamSpec* param_spec_batch_import_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_job (GValue* value, - gpointer v_object); -void value_take_batch_import_job (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_job (const GValue* value); -GType batch_import_job_get_type (void) G_GNUC_CONST; -GType duplicated_file_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -gpointer batch_import_roll_ref (gpointer instance); -void batch_import_roll_unref (gpointer instance); -GParamSpec* param_spec_batch_import_roll (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_roll (GValue* value, - gpointer v_object); -void value_take_batch_import_roll (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_roll (const GValue* value); -GType batch_import_roll_get_type (void) G_GNUC_CONST; -gchar* batch_import_job_get_dest_identifier (BatchImportJob* self); -static gchar* batch_import_job_real_get_dest_identifier (BatchImportJob* self); -gchar* batch_import_job_get_source_identifier (BatchImportJob* self); -static gchar* batch_import_job_real_get_source_identifier (BatchImportJob* self); -gboolean batch_import_job_is_directory (BatchImportJob* self); -static gboolean batch_import_job_real_is_directory (BatchImportJob* self); -gchar* batch_import_job_get_basename (BatchImportJob* self); -static gchar* batch_import_job_real_get_basename (BatchImportJob* self); -gchar* batch_import_job_get_path (BatchImportJob* self); -static gchar* batch_import_job_real_get_path (BatchImportJob* self); -DuplicatedFile* batch_import_job_get_duplicated_file (BatchImportJob* self); -static DuplicatedFile* batch_import_job_real_get_duplicated_file (BatchImportJob* self); -GFile* batch_import_job_get_associated_file (BatchImportJob* self); -static GFile* batch_import_job_real_get_associated_file (BatchImportJob* self); -void batch_import_job_set_associated (BatchImportJob* self, - BatchImportJob* associated); -static void batch_import_job_real_set_associated (BatchImportJob* self, - BatchImportJob* associated); -gboolean batch_import_job_determine_file_size (BatchImportJob* self, - guint64* filesize, - GFile* * file_or_dir); -static gboolean batch_import_job_real_determine_file_size (BatchImportJob* self, - guint64* filesize, - GFile* * file_or_dir); -gboolean batch_import_job_prepare (BatchImportJob* self, - GFile* * file_to_import, - gboolean* copy_to_library, - GError** error); -static gboolean batch_import_job_real_prepare (BatchImportJob* self, - GFile* * file_to_import, - gboolean* copy_to_library, - GError** error); -gboolean batch_import_job_complete (BatchImportJob* self, - MediaSource* source, - BatchImportRoll* import_roll, - GError** error); -static gboolean batch_import_job_real_complete (BatchImportJob* self, - MediaSource* source, - BatchImportRoll* import_roll, - GError** error); -time_t batch_import_job_get_exposure_time_override (BatchImportJob* self); -static time_t batch_import_job_real_get_exposure_time_override (BatchImportJob* self); -gboolean batch_import_job_recurse (BatchImportJob* self); -static gboolean batch_import_job_real_recurse (BatchImportJob* self); -BatchImportJob* batch_import_job_construct (GType object_type); -static void batch_import_job_finalize (BatchImportJob * obj); -GType file_import_job_get_type (void) G_GNUC_CONST; -#define FILE_IMPORT_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_FILE_IMPORT_JOB, FileImportJobPrivate)) -FileImportJob* file_import_job_new (GFile* file_or_dir, - gboolean copy_to_library, - gboolean recurse); -FileImportJob* file_import_job_construct (GType object_type, - GFile* file_or_dir, - gboolean copy_to_library, - gboolean recurse); -static gchar* file_import_job_real_get_dest_identifier (BatchImportJob* base); -static gchar* file_import_job_real_get_source_identifier (BatchImportJob* base); -static gboolean file_import_job_real_is_directory (BatchImportJob* base); -gboolean query_is_directory (GFile* file); -static gchar* file_import_job_real_get_basename (BatchImportJob* base); -static gchar* file_import_job_real_get_path (BatchImportJob* base); -static void file_import_job_real_set_associated (BatchImportJob* base, - BatchImportJob* associated); -static gboolean file_import_job_real_determine_file_size (BatchImportJob* base, - guint64* filesize, - GFile* * file); -static gboolean file_import_job_real_prepare (BatchImportJob* base, - GFile* * file_to_import, - gboolean* copy, - GError** error); -GFile* file_import_job_get_file (FileImportJob* self); -static gboolean file_import_job_real_recurse (BatchImportJob* base); -static void file_import_job_finalize (BatchImportJob * obj); -GType import_id_get_type (void) G_GNUC_CONST; -ImportID* import_id_dup (const ImportID* self); -void import_id_free (ImportID* self); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* view_collection_new (const gchar* name); -ViewCollection* view_collection_construct (GType object_type, - const gchar* name); -BatchImportRoll* batch_import_roll_new (void); -BatchImportRoll* batch_import_roll_construct (GType object_type); -void import_id_generate (ImportID* result); -static void batch_import_roll_finalize (BatchImportRoll * obj); -gpointer batch_import_result_ref (gpointer instance); -void batch_import_result_unref (gpointer instance); -GParamSpec* param_spec_batch_import_result (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_result (GValue* value, - gpointer v_object); -void value_take_batch_import_result (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_result (const GValue* value); -GType batch_import_result_get_type (void) G_GNUC_CONST; -BatchImportResult* batch_import_result_new (BatchImportJob* job, - GFile* file, - const gchar* src_identifier, - const gchar* dest_identifier, - DuplicatedFile* duplicate_of, - ImportResult _result_); -BatchImportResult* batch_import_result_construct (GType object_type, - BatchImportJob* job, - GFile* file, - const gchar* src_identifier, - const gchar* dest_identifier, - DuplicatedFile* duplicate_of, - ImportResult _result_); -BatchImportResult* batch_import_result_new_from_error (BatchImportJob* job, - GFile* file, - const gchar* src_identifier, - const gchar* dest_identifier, - GError* err, - ImportResult default_result); -BatchImportResult* batch_import_result_construct_from_error (GType object_type, - BatchImportJob* job, - GFile* file, - const gchar* src_identifier, - const gchar* dest_identifier, - GError* err, - ImportResult default_result); -static void batch_import_result_finalize (BatchImportResult * obj); -gpointer import_manifest_ref (gpointer instance); -void import_manifest_unref (gpointer instance); -GParamSpec* param_spec_import_manifest (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_import_manifest (GValue* value, - gpointer v_object); -void value_take_import_manifest (GValue* value, - gpointer v_object); -gpointer value_get_import_manifest (const GValue* value); -GType import_manifest_get_type (void) G_GNUC_CONST; -ImportManifest* import_manifest_new (GeeList* prefailed, - GeeList* pre_already_imported); -ImportManifest* import_manifest_construct (GType object_type, - GeeList* prefailed, - GeeList* pre_already_imported); -void import_manifest_add_result (ImportManifest* self, - BatchImportResult* batch_result); -static void import_manifest_finalize (ImportManifest * obj); -GType batch_import_get_type (void) G_GNUC_CONST; -gpointer prepared_file_ref (gpointer instance); -void prepared_file_unref (gpointer instance); -GParamSpec* param_spec_prepared_file (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_prepared_file (GValue* value, - gpointer v_object); -void value_take_prepared_file (GValue* value, - gpointer v_object); -gpointer value_get_prepared_file (const GValue* value); -GType prepared_file_get_type (void) G_GNUC_CONST; -gpointer completed_import_object_ref (gpointer instance); -void completed_import_object_unref (gpointer instance); -GParamSpec* param_spec_completed_import_object (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_completed_import_object (GValue* value, - gpointer v_object); -void value_take_completed_import_object (GValue* value, - gpointer v_object); -gpointer value_get_completed_import_object (const GValue* value); -GType completed_import_object_get_type (void) G_GNUC_CONST; -#define BATCH_IMPORT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_BATCH_IMPORT, BatchImportPrivate)) -gpointer application_ref (gpointer instance); -void application_unref (gpointer instance); -GParamSpec* param_spec_application (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_application (GValue* value, - gpointer v_object); -void value_take_application (GValue* value, - gpointer v_object); -gpointer value_get_application (const GValue* value); -GType application_get_type (void) G_GNUC_CONST; -Application* application_get_instance (void); -void batch_import_user_halt (BatchImport* self); -static void _batch_import_user_halt_application_exiting (Application* _sender, - gboolean panicked, - gpointer self); -gpointer workers_ref (gpointer instance); -void workers_unref (gpointer instance); -GParamSpec* param_spec_workers (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_workers (GValue* value, - gpointer v_object); -void value_take_workers (GValue* value, - gpointer v_object); -gpointer value_get_workers (const GValue* value); -GType workers_get_type (void) G_GNUC_CONST; -Workers* workers_new (guint max_threads, - gboolean exclusive); -Workers* workers_construct (GType object_type, - guint max_threads, - gboolean exclusive); -guint workers_thread_per_cpu_minus_one (void); -#define BATCH_IMPORT_WORK_SNIFFER_THROBBER_MSEC 125 -#define BATCH_IMPORT_REPORT_EVERY_N_PREPARED_FILES 100 -#define BATCH_IMPORT_REPORT_PREPARED_FILES_EVERY_N_MSEC 3000 -#define BATCH_IMPORT_READY_SOURCES_COUNT_OVERFLOW 10 -#define BATCH_IMPORT_DISPLAY_QUEUE_TIMER_MSEC 125 -#define BATCH_IMPORT_DISPLAY_QUEUE_HYSTERESIS_OVERFLOW ((3 * 1000) / BATCH_IMPORT_DISPLAY_QUEUE_TIMER_MSEC) -BatchImport* batch_import_new (GeeIterable* jobs, - const gchar* name, - BatchImportImportReporter reporter, - void* reporter_target, - GeeArrayList* prefailed, - GeeArrayList* pre_already_imported, - GCancellable* cancellable, - BatchImportRoll* import_roll, - ImportManifest* skip_manifest); -BatchImport* batch_import_construct (GType object_type, - GeeIterable* jobs, - const gchar* name, - BatchImportImportReporter reporter, - void* reporter_target, - GeeArrayList* prefailed, - GeeArrayList* pre_already_imported, - GCancellable* cancellable, - BatchImportRoll* import_roll, - ImportManifest* skip_manifest); -guint file_hash (GFile* file); -static guint _file_hash_gee_hash_data_func (gconstpointer v, - gpointer self); -gboolean file_equal (GFile* a, - GFile* b); -static gboolean _file_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -GFile* media_source_get_file (MediaSource* self); -static gboolean batch_import_display_imported_timer (BatchImport* self); -static gboolean _batch_import_display_imported_timer_gsource_func (gpointer self); -gchar* batch_import_get_name (BatchImport* self); -gboolean batch_import_get_untrash_duplicates (BatchImport* self); -void batch_import_set_untrash_duplicates (BatchImport* self, - gboolean untrash_duplicates); -gboolean batch_import_get_mark_duplicates_online (BatchImport* self); -void batch_import_set_mark_duplicates_online (BatchImport* self, - gboolean mark_duplicates_online); -static void batch_import_log_status (BatchImport* self, - const gchar* where); -static gboolean batch_import_report_failure (BatchImport* self, - BatchImportResult* import_result); -guint64 query_total_file_size (GFile* file_or_dir, - GCancellable* cancellable, - GError** error); -static void batch_import_report_progress (BatchImport* self, - guint64 increment_of_progress); -gulong now_ms (void); -gpointer background_job_ref (gpointer instance); -void background_job_unref (gpointer instance); -GParamSpec* param_spec_background_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_background_job (GValue* value, - gpointer v_object); -void value_take_background_job (GValue* value, - gpointer v_object); -gpointer value_get_background_job (const GValue* value); -GType background_job_get_type (void) G_GNUC_CONST; -GType background_import_job_get_type (void) G_GNUC_CONST; -static gboolean batch_import_report_failures (BatchImport* self, - BackgroundImportJob* background_job); -GType background_job_job_priority_get_type (void) G_GNUC_CONST; -static void batch_import_report_completed (BatchImport* self, - const gchar* where); -static void batch_import_flush_ready_sources (BatchImport* self); -static void batch_import_file_import_complete (BatchImport* self); -void batch_import_schedule (BatchImport* self); -void workers_enqueue (Workers* self, - BackgroundJob* job); -static void batch_import_on_work_sniffed_out (BatchImport* self, - BackgroundJob* j); -static void _batch_import_on_work_sniffed_out_completion_callback (BackgroundJob* job, - gpointer self); -static void batch_import_on_sniffer_cancelled (BatchImport* self, - BackgroundJob* j); -static void _batch_import_on_sniffer_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self); -WorkSniffer* work_sniffer_new (BatchImport* owner, - GeeIterable* jobs, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target, - GeeHashSet* skipset); -WorkSniffer* work_sniffer_construct (GType object_type, - BatchImport* owner, - GeeIterable* jobs, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target, - GeeHashSet* skipset); -GType work_sniffer_get_type (void) G_GNUC_CONST; -static gboolean batch_import_on_sniffer_working (BatchImport* self); -static gboolean _batch_import_on_sniffer_working_gsource_func (gpointer self); -gpointer file_to_prepare_ref (gpointer instance); -void file_to_prepare_unref (gpointer instance); -GParamSpec* param_spec_file_to_prepare (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_file_to_prepare (GValue* value, - gpointer v_object); -void value_take_file_to_prepare (GValue* value, - gpointer v_object); -gpointer value_get_file_to_prepare (const GValue* value); -GType file_to_prepare_get_type (void) G_GNUC_CONST; -GType prepare_files_job_get_type (void) G_GNUC_CONST; -gpointer notification_object_ref (gpointer instance); -void notification_object_unref (gpointer instance); -GParamSpec* param_spec_notification_object (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_notification_object (GValue* value, - gpointer v_object); -void value_take_notification_object (GValue* value, - gpointer v_object); -gpointer value_get_notification_object (const GValue* value); -GType notification_object_get_type (void) G_GNUC_CONST; -static void batch_import_on_file_prepared (BatchImport* self, - BackgroundJob* j, - NotificationObject* user); -static void _batch_import_on_file_prepared_notification_callback (BackgroundJob* job, - NotificationObject* user, - gpointer self); -static void batch_import_on_files_prepared (BatchImport* self, - BackgroundJob* j); -static void _batch_import_on_files_prepared_completion_callback (BackgroundJob* job, - gpointer self); -static void batch_import_on_file_prepare_cancelled (BatchImport* self, - BackgroundJob* j); -static void _batch_import_on_file_prepare_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self); -PrepareFilesJob* prepare_files_job_new (BatchImport* owner, - GeeList* files_to_prepare, - NotificationCallback notification, - void* notification_target, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target); -PrepareFilesJob* prepare_files_job_construct (GType object_type, - BatchImport* owner, - GeeList* files_to_prepare, - NotificationCallback notification, - void* notification_target, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target); -static void batch_import_flush_import_jobs (BatchImport* self); -gint workers_get_pending_job_count (Workers* self); -static void batch_import_on_thumbnail_writer_completed (BatchImport* self, - BackgroundJob* j); -static void _batch_import_on_thumbnail_writer_completed_completion_callback (BackgroundJob* job, - gpointer self); -static void batch_import_on_thumbnail_writer_cancelled (BatchImport* self, - BackgroundJob* j); -static void _batch_import_on_thumbnail_writer_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self); -ThumbnailWriterJob* thumbnail_writer_job_new (BatchImport* owner, - CompletedImportObject* completed_import_source, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancel_callback, - void* cancel_callback_target); -ThumbnailWriterJob* thumbnail_writer_job_construct (GType object_type, - BatchImport* owner, - CompletedImportObject* completed_import_source, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancel_callback, - void* cancel_callback_target); -GType thumbnail_writer_job_get_type (void) G_GNUC_CONST; -static void batch_import_on_import_files_completed (BatchImport* self, - BackgroundJob* j); -static void _batch_import_on_import_files_completed_completion_callback (BackgroundJob* job, - gpointer self); -static void batch_import_on_import_files_cancelled (BatchImport* self, - BackgroundJob* j); -static void _batch_import_on_import_files_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self); -PreparedFileImportJob* prepared_file_import_job_new (BatchImport* owner, - PreparedFile* prepared_file, - ImportID* import_id, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target); -PreparedFileImportJob* prepared_file_import_job_construct (GType object_type, - BatchImport* owner, - PreparedFile* prepared_file, - ImportID* import_id, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target); -GType prepared_file_import_job_get_type (void) G_GNUC_CONST; -static GFile* batch_import_get_in_current_import (BatchImport* self, - PreparedFile* prepared_file); -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType interlocked_notification_object_get_type (void) G_GNUC_CONST; -GType prepared_file_cluster_get_type (void) G_GNUC_CONST; -static void batch_import_process_prepared_files (BatchImport* self, - GeeList* list, - GAsyncReadyCallback _callback_, - gpointer _user_data_); -static void batch_import_process_prepared_files_finish (BatchImport* self, - GAsyncResult* _res_); -static void batch_import_process_prepared_files_data_free (gpointer _data); -static void batch_import_process_prepared_files_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data); -static gboolean batch_import_process_prepared_files_co (BatchImportProcessPreparedFilesData* _data_); -static gboolean _batch_import_process_prepared_files_co_gsource_func (gpointer self); -GType library_photo_source_collection_state_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -LibraryPhoto* library_photo_source_collection_get_state_by_file (LibraryPhotoSourceCollection* self, - GFile* file, - LibraryPhotoSourceCollectionState* state); -DuplicatedFile* duplicated_file_create_from_file (GFile* file); -GFile* media_source_get_master_file (MediaSource* self); -void media_source_mark_online (MediaSource* self); -const gchar* library_photo_source_collection_state_to_string (LibraryPhotoSourceCollectionState self); -GType video_source_collection_state_get_type (void) G_GNUC_CONST; -GType video_source_get_type (void) G_GNUC_CONST; -GType video_get_type (void) G_GNUC_CONST; -GType video_source_collection_get_type (void) G_GNUC_CONST; -Video* video_source_collection_get_state_by_file (VideoSourceCollection* self, - GFile* file, - VideoSourceCollectionState* state); -const gchar* video_source_collection_state_to_string (VideoSourceCollectionState self); -gboolean video_is_duplicate (GFile* file, - const gchar* full_md5); -GType video_id_get_type (void) G_GNUC_CONST; -VideoID* video_id_dup (const VideoID* self); -void video_id_free (VideoID* self); -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType video_table_get_type (void) G_GNUC_CONST; -VideoTable* video_table_get_instance (void); -VideoID* video_table_get_duplicate_ids (VideoTable* self, - GFile* file, - const gchar* md5, - int* result_length1); -DuplicatedFile* duplicated_file_create_from_video_id (VideoID* video_id); -gpointer source_holding_tank_ref (gpointer instance); -void source_holding_tank_unref (gpointer instance); -GParamSpec* param_spec_source_holding_tank (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_holding_tank (GValue* value, - gpointer v_object); -void value_take_source_holding_tank (GValue* value, - gpointer v_object); -gpointer value_get_source_holding_tank (const GValue* value); -GType source_holding_tank_get_type (void) G_GNUC_CONST; -GType database_source_holding_tank_get_type (void) G_GNUC_CONST; -GType media_source_holding_tank_get_type (void) G_GNUC_CONST; -MediaSourceHoldingTank* media_source_collection_get_offline_bin (MediaSourceCollection* self); -MediaSource* media_source_holding_tank_fetch_by_master_file (MediaSourceHoldingTank* self, - GFile* file); -MediaSource* media_source_holding_tank_fetch_by_md5 (MediaSourceHoldingTank* self, - const gchar* md5); -GType monitorable_get_type (void) G_GNUC_CONST; -void monitorable_set_master_file (Monitorable* self, - GFile* file); -guint64 media_source_get_filesize (MediaSource* self); -gboolean photo_is_duplicate (GFile* file, - const gchar* thumbnail_md5, - const gchar* full_md5, - PhotoFileFormat file_format); -LibraryPhoto* library_photo_source_collection_get_trashed_by_file (LibraryPhotoSourceCollection* self, - GFile* file); -LibraryPhoto* library_photo_source_collection_get_trashed_by_md5 (LibraryPhotoSourceCollection* self, - const gchar* md5); -void media_source_untrash (MediaSource* self); -void photo_remove_all_transformations (Photo* self); -LibraryPhoto* library_photo_source_collection_get_offline_by_file (LibraryPhotoSourceCollection* self, - GFile* file); -LibraryPhoto* library_photo_source_collection_get_offline_by_md5 (LibraryPhotoSourceCollection* self, - const gchar* md5); -GType photo_id_get_type (void) G_GNUC_CONST; -PhotoID* photo_id_dup (const PhotoID* self); -void photo_id_free (PhotoID* self); -GType photo_table_get_type (void) G_GNUC_CONST; -PhotoTable* photo_table_get_instance (void); -PhotoID* photo_table_get_duplicate_ids (PhotoTable* self, - GFile* file, - const gchar* thumbnail_md5, - const gchar* md5, - PhotoFileFormat file_format, - int* result_length1); -DuplicatedFile* duplicated_file_create_from_photo_id (PhotoID* photo_id); -static void batch_import_done_preparing_files (BatchImport* self, - BackgroundJob* j, - const gchar* caller); -gpointer ready_for_import_ref (gpointer instance); -void ready_for_import_unref (gpointer instance); -GParamSpec* param_spec_ready_for_import (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_ready_for_import (GValue* value, - gpointer v_object); -void value_take_ready_for_import (GValue* value, - gpointer v_object); -gpointer value_get_ready_for_import (const GValue* value); -GType ready_for_import_get_type (void) G_GNUC_CONST; -gpointer photo_import_params_ref (gpointer instance); -void photo_import_params_unref (gpointer instance); -GParamSpec* param_spec_photo_import_params (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_import_params (GValue* value, - gpointer v_object); -void value_take_photo_import_params (GValue* value, - gpointer v_object); -gpointer value_get_photo_import_params (const GValue* value); -GType photo_import_params_get_type (void) G_GNUC_CONST; -gpointer video_import_params_ref (gpointer instance); -void video_import_params_unref (gpointer instance); -GParamSpec* param_spec_video_import_params (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_video_import_params (GValue* value, - gpointer v_object); -void value_take_video_import_params (GValue* value, - gpointer v_object); -gpointer value_get_video_import_params (const GValue* value); -GType video_import_params_get_type (void) G_GNUC_CONST; -GType tombstone_get_type (void) G_GNUC_CONST; -GType tombstone_source_collection_get_type (void) G_GNUC_CONST; -Tombstone* tombstone_source_collection_locate (TombstoneSourceCollection* self, - GFile* file); -void tombstone_source_collection_resurrect (TombstoneSourceCollection* self, - Tombstone* tombstone); -ImportResult video_import_create (VideoImportParams* params, - Video* * video); -ImportResult library_photo_import_create (PhotoImportParams* params, - LibraryPhoto* * photo); -GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST; -gpointer thumbnails_ref (gpointer instance); -void thumbnails_unref (gpointer instance); -GParamSpec* param_spec_thumbnails (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_thumbnails (GValue* value, - gpointer v_object); -void value_take_thumbnails (GValue* value, - gpointer v_object); -gpointer value_get_thumbnails (const GValue* value); -GType thumbnails_get_type (void) G_GNUC_CONST; -gpointer photo_row_ref (gpointer instance); -void photo_row_unref (gpointer instance); -GParamSpec* param_spec_photo_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_row (GValue* value, - gpointer v_object); -void value_take_photo_row (GValue* value, - gpointer v_object); -gpointer value_get_photo_row (const GValue* value); -GType photo_row_get_type (void) G_GNUC_CONST; -gpointer backing_photo_row_ref (gpointer instance); -void backing_photo_row_unref (gpointer instance); -GParamSpec* param_spec_backing_photo_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_backing_photo_row (GValue* value, - gpointer v_object); -void value_take_backing_photo_row (GValue* value, - gpointer v_object); -gpointer value_get_backing_photo_row (const GValue* value); -GType backing_photo_row_get_type (void) G_GNUC_CONST; -BackingPhotoRow* backing_photo_row_new (void); -BackingPhotoRow* backing_photo_row_construct (GType object_type); -GType backing_photo_id_get_type (void) G_GNUC_CONST; -BackingPhotoID* backing_photo_id_dup (const BackingPhotoID* self); -void backing_photo_id_free (BackingPhotoID* self); -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType orientation_get_type (void) G_GNUC_CONST; -GType raw_developer_get_type (void) G_GNUC_CONST; -void photo_add_backing_photo_for_development (Photo* self, - RawDeveloper d, - BackingPhotoRow* bpr, - gboolean notify, - GError** error); -PhotoFileFormat photo_get_master_file_format (Photo* self); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -RawDeveloper configuration_facade_get_default_raw_developer (ConfigurationFacade* self); -gboolean photo_is_raw_developer_available (Photo* self, - RawDeveloper d); -void photo_set_default_raw_developer (Photo* self, - RawDeveloper d); -void photo_set_raw_developer (Photo* self, - RawDeveloper d, - gboolean notify); -Thumbnails* ready_for_import_get_thumbnails (ReadyForImport* self); -CompletedImportObject* completed_import_object_new (MediaSource* source, - Thumbnails* thumbnails, - BatchImportJob* original_job, - BatchImportResult* import_result); -CompletedImportObject* completed_import_object_construct (GType object_type, - MediaSource* source, - Thumbnails* thumbnails, - BatchImportJob* original_job, - BatchImportResult* import_result); -BatchImportResult* ready_for_import_abort (ReadyForImport* self); -gchar* data_object_to_string (DataObject* self); -void library_photo_import_failed (LibraryPhoto* photo); -void video_import_failed (Video* video); -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -void media_collection_registry_begin_transaction_on_all (MediaCollectionRegistry* self); -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType event_source_collection_get_type (void) G_GNUC_CONST; -void data_collection_freeze_notifications (DataCollection* self); -GType tag_source_collection_get_type (void) G_GNUC_CONST; -void media_source_collection_import_many (MediaSourceCollection* self, - GeeCollection* media); -void event_generate_many_events (GeeCollection* sources, - ViewCollection* events_so_far); -void data_collection_thaw_notifications (DataCollection* self); -void media_collection_registry_commit_transaction_on_all (MediaCollectionRegistry* self); -guint64 media_source_get_master_filesize (MediaSource* self); -static void g_cclosure_user_marshal_VOID__UINT64_UINT64 (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_INT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void g_cclosure_user_marshal_VOID__ENUM_STRING (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void g_cclosure_user_marshal_VOID__BATCH_IMPORT_RESULT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void g_cclosure_user_marshal_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void batch_import_finalize (GObject * obj); -#define DUPLICATED_FILE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DUPLICATED_FILE, DuplicatedFilePrivate)) -static DuplicatedFile* duplicated_file_new (void); -static DuplicatedFile* duplicated_file_construct (GType object_type); -gboolean photo_id_is_valid (PhotoID *self); -gboolean video_id_is_valid (VideoID *self); -GFile* duplicated_file_get_file (DuplicatedFile* self); -LibraryPhoto* library_photo_source_collection_fetch (LibraryPhotoSourceCollection* self, - PhotoID* photo_id); -Video* video_source_collection_fetch (VideoSourceCollection* self, - VideoID* video_id); -static void duplicated_file_finalize (GObject * obj); -BackgroundImportJob* background_import_job_construct (GType object_type, - BatchImport* owner, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target); -gpointer abstract_semaphore_ref (gpointer instance); -void abstract_semaphore_unref (gpointer instance); -GParamSpec* param_spec_abstract_semaphore (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_abstract_semaphore (GValue* value, - gpointer v_object); -void value_take_abstract_semaphore (GValue* value, - gpointer v_object); -gpointer value_get_abstract_semaphore (const GValue* value); -GType abstract_semaphore_get_type (void) G_GNUC_CONST; -BackgroundJob* background_job_construct (GType object_type, - GObject* owner, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target, - AbstractSemaphore* completion_semaphore); -ImportResult background_import_job_abort_check (BackgroundImportJob* self); -gboolean background_job_is_cancelled (BackgroundJob* self); -void background_import_job_abort (BackgroundImportJob* self, - ImportResult _result_); -void background_import_job_report_failure (BackgroundImportJob* self, - BatchImportJob* job, - GFile* file, - const gchar* src_identifier, - const gchar* dest_identifier, - ImportResult _result_); -void background_import_job_report_error (BackgroundImportJob* self, - BatchImportJob* job, - GFile* file, - const gchar* src_identifier, - const gchar* dest_identifier, - GError* err, - ImportResult default_result); -static void background_import_job_finalize (BackgroundJob * obj); -FileToPrepare* file_to_prepare_new (BatchImportJob* job, - GFile* file, - gboolean copy_to_library); -FileToPrepare* file_to_prepare_construct (GType object_type, - BatchImportJob* job, - GFile* file, - gboolean copy_to_library); -void file_to_prepare_set_associated (FileToPrepare* self, - FileToPrepare* a); -gchar* file_to_prepare_get_parent_path (FileToPrepare* self); -gchar* file_to_prepare_get_path (FileToPrepare* self); -gchar* file_to_prepare_get_basename (FileToPrepare* self); -gboolean file_to_prepare_is_directory (FileToPrepare* self); -static void file_to_prepare_finalize (FileToPrepare * obj); -#define WORK_SNIFFER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_WORK_SNIFFER, WorkSnifferPrivate)) -static void work_sniffer_real_execute (BackgroundJob* base); -static void work_sniffer_sniff_job (WorkSniffer* self, - BatchImportJob* job, - GError** error); -static gint __lambda11_ (WorkSniffer* self, - FileToPrepare* a, - FileToPrepare* b); -gint utf8_cs_compare (void* a, - void* b); -static gint ___lambda11__gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -void disassemble_filename (const gchar* basename, - gchar* * name, - gchar* * ext); -gboolean is_string_empty (const gchar* s); -gpointer photo_file_format_properties_ref (gpointer instance); -void photo_file_format_properties_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_properties (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_format_properties (GValue* value, - gpointer v_object); -void value_take_photo_file_format_properties (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_format_properties (const GValue* value); -GType photo_file_format_properties_get_type (void) G_GNUC_CONST; -GType raw_file_format_properties_get_type (void) G_GNUC_CONST; -RawFileFormatProperties* raw_file_format_properties_get_instance (void); -gboolean photo_file_format_properties_is_recognized_extension (PhotoFileFormatProperties* self, - const gchar* ext); -static gboolean work_sniffer_is_paired (WorkSniffer* self, - FileToPrepare* raw, - FileToPrepare* maybe_paired); -GType jfif_file_format_properties_get_type (void) G_GNUC_CONST; -JfifFileFormatProperties* jfif_file_format_properties_get_instance (void); -void work_sniffer_search_dir (WorkSniffer* self, - BatchImportJob* job, - GFile* dir, - gboolean copy_to_library, - gboolean recurse, - GError** error); -GCancellable* background_job_get_cancellable (BackgroundJob* self); -gboolean photo_is_file_image (GFile* file); -gboolean photo_file_format_is_file_supported (GFile* file); -gboolean video_reader_is_supported_video_file (GFile* file); -static void work_sniffer_finalize (BackgroundJob * obj); -PreparedFile* prepared_file_new (BatchImportJob* job, - GFile* file, - GFile* associated_file, - const gchar* source_id, - const gchar* dest_id, - gboolean copy_to_library, - const gchar* exif_md5, - const gchar* thumbnail_md5, - const gchar* full_md5, - PhotoFileFormat file_format, - guint64 filesize, - gboolean is_video); -PreparedFile* prepared_file_construct (GType object_type, - BatchImportJob* job, - GFile* file, - GFile* associated_file, - const gchar* source_id, - const gchar* dest_id, - gboolean copy_to_library, - const gchar* exif_md5, - const gchar* thumbnail_md5, - const gchar* full_md5, - PhotoFileFormat file_format, - guint64 filesize, - gboolean is_video); -static void prepared_file_finalize (PreparedFile * obj); -PreparedFileCluster* prepared_file_cluster_new (GeeArrayList* list); -PreparedFileCluster* prepared_file_cluster_construct (GType object_type, - GeeArrayList* list); -InterlockedNotificationObject* interlocked_notification_object_construct (GType object_type); -static void prepared_file_cluster_finalize (NotificationObject * obj); -#define PREPARE_FILES_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PREPARE_FILES_JOB, PrepareFilesJobPrivate)) -GFile* app_dirs_get_import_dir (void); -static gint prepare_files_job_get_test_variable (const gchar* name); -void background_job_set_notification_priority (BackgroundJob* self, - gint priority); -static void prepare_files_job_real_execute (BackgroundJob* base); -static gboolean prepare_files_job_create_file (PrepareFilesJob* self, - BatchImportJob* job, - GFile* * file, - gboolean* copy_to_library); -static ImportResult prepare_files_job_prepare_file (PrepareFilesJob* self, - BatchImportJob* job, - GFile* file, - GFile* associated_file, - gboolean copy_to_library, - PreparedFile* * prepared_file); -void background_job_notify (BackgroundJob* self, - NotificationCallback callback, - void* callback_target, - NotificationObject* user); -gchar* md5_file (GFile* file, - GError** error); -PhotoFileFormat photo_file_format_get_by_file_extension (GFile* file); -gpointer photo_file_adapter_ref (gpointer instance); -void photo_file_adapter_unref (gpointer instance); -GParamSpec* param_spec_photo_file_adapter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_adapter (GValue* value, - gpointer v_object); -void value_take_photo_file_adapter (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_adapter (const GValue* value); -GType photo_file_adapter_get_type (void) G_GNUC_CONST; -GType photo_file_reader_get_type (void) G_GNUC_CONST; -PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self, - const gchar* filepath); -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -PhotoMetadata* photo_file_reader_read_metadata (PhotoFileReader* self, - GError** error); -gchar* photo_metadata_exif_hash (PhotoMetadata* self); -gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self); -static void prepare_files_job_finalize (BackgroundJob * obj); -ReadyForImport* ready_for_import_new (GFile* final_file, - PreparedFile* prepared_file, - PhotoImportParams* photo_import_params, - VideoImportParams* video_import_params, - BatchImportResult* batch_result); -ReadyForImport* ready_for_import_construct (GType object_type, - GFile* final_file, - PreparedFile* prepared_file, - PhotoImportParams* photo_import_params, - VideoImportParams* video_import_params, - BatchImportResult* batch_result); -gpointer video_row_ref (gpointer instance); -void video_row_unref (gpointer instance); -GParamSpec* param_spec_video_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_video_row (GValue* value, - gpointer v_object); -void value_take_video_row (GValue* value, - gpointer v_object); -gpointer value_get_video_row (const GValue* value); -GType video_row_get_type (void) G_GNUC_CONST; -static void ready_for_import_finalize (ReadyForImport * obj); -#define PREPARED_FILE_IMPORT_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJobPrivate)) -void background_job_set_completion_priority (BackgroundJob* self, - gint priority); -static void prepared_file_import_job_real_execute (BackgroundJob* base); -GFile* library_files_duplicate (GFile* src, - GFileProgressCallback progress_callback, - void* progress_callback_target, - gboolean blacklist, - GError** error); -Thumbnails* thumbnails_new (void); -Thumbnails* thumbnails_construct (GType object_type); -VideoImportParams* video_import_params_new (GFile* file, - ImportID* import_id, - const gchar* md5, - Thumbnails* thumbnails, - time_t exposure_time_override); -VideoImportParams* video_import_params_construct (GType object_type, - GFile* file, - ImportID* import_id, - const gchar* md5, - Thumbnails* thumbnails, - time_t exposure_time_override); -ImportResult video_reader_prepare_for_import (VideoImportParams* params); -PhotoImportParams* photo_import_params_new (GFile* file, - GFile* final_associated_file, - ImportID* import_id, - PhotoFileSnifferOptions sniffer_options, - const gchar* exif_md5, - const gchar* thumbnail_md5, - const gchar* full_md5, - Thumbnails* thumbnails); -PhotoImportParams* photo_import_params_construct (GType object_type, - GFile* file, - GFile* final_associated_file, - ImportID* import_id, - PhotoFileSnifferOptions sniffer_options, - const gchar* exif_md5, - const gchar* thumbnail_md5, - const gchar* full_md5, - Thumbnails* thumbnails); -ImportResult photo_prepare_for_import (PhotoImportParams* params); -static void prepared_file_import_job_finalize (BackgroundJob * obj); -GType thumbnail_cache_size_get_type (void) G_GNUC_CONST; -GdkPixbuf* thumbnails_get (Thumbnails* self, - ThumbnailCacheSize size); -static void completed_import_object_finalize (CompletedImportObject * obj); -static void thumbnail_writer_job_real_execute (BackgroundJob* base); -void thumbnail_cache_import_thumbnails (ThumbnailSource* source, - Thumbnails* thumbnails, - gboolean force, - GError** error); -static void thumbnail_writer_job_finalize (BackgroundJob * obj); - - -gchar* -import_result_to_string (ImportResult self) -{ - gchar* result = NULL; -#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala" - switch (self) { -#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_SUCCESS: -#line 2767 "BatchImport.c" - { - gchar* _tmp0_; -#line 26 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = g_strdup (_ ("Success")); -#line 26 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp0_; -#line 26 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 2776 "BatchImport.c" - } -#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_FILE_ERROR: -#line 2780 "BatchImport.c" - { - gchar* _tmp1_; -#line 29 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = g_strdup (_ ("File error")); -#line 29 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp1_; -#line 29 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 2789 "BatchImport.c" - } -#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_DECODE_ERROR: -#line 2793 "BatchImport.c" - { - gchar* _tmp2_; -#line 32 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = g_strdup (_ ("Unable to decode file")); -#line 32 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp2_; -#line 32 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 2802 "BatchImport.c" - } -#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_DATABASE_ERROR: -#line 2806 "BatchImport.c" - { - gchar* _tmp3_; -#line 35 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = g_strdup (_ ("Database error")); -#line 35 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp3_; -#line 35 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 2815 "BatchImport.c" - } -#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_USER_ABORT: -#line 2819 "BatchImport.c" - { - gchar* _tmp4_; -#line 38 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = g_strdup (_ ("User aborted import")); -#line 38 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp4_; -#line 38 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 2828 "BatchImport.c" - } -#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_NOT_A_FILE: -#line 2832 "BatchImport.c" - { - gchar* _tmp5_; -#line 41 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = g_strdup (_ ("Not a file")); -#line 41 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp5_; -#line 41 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 2841 "BatchImport.c" - } -#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_PHOTO_EXISTS: -#line 2845 "BatchImport.c" - { - gchar* _tmp6_; -#line 44 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = g_strdup (_ ("File already exists in database")); -#line 44 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp6_; -#line 44 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 2854 "BatchImport.c" - } -#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_UNSUPPORTED_FORMAT: -#line 2858 "BatchImport.c" - { - gchar* _tmp7_; -#line 47 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = g_strdup (_ ("Unsupported file format")); -#line 47 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp7_; -#line 47 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 2867 "BatchImport.c" - } -#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_NOT_AN_IMAGE: -#line 2871 "BatchImport.c" - { - gchar* _tmp8_; -#line 50 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = g_strdup (_ ("Not an image file")); -#line 50 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp8_; -#line 50 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 2880 "BatchImport.c" - } -#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_DISK_FAILURE: -#line 2884 "BatchImport.c" - { - gchar* _tmp9_; -#line 53 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = g_strdup (_ ("Disk failure")); -#line 53 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp9_; -#line 53 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 2893 "BatchImport.c" - } -#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_DISK_FULL: -#line 2897 "BatchImport.c" - { - gchar* _tmp10_; -#line 56 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = g_strdup (_ ("Disk full")); -#line 56 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp10_; -#line 56 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 2906 "BatchImport.c" - } -#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_CAMERA_ERROR: -#line 2910 "BatchImport.c" - { - gchar* _tmp11_; -#line 59 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = g_strdup (_ ("Camera error")); -#line 59 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp11_; -#line 59 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 2919 "BatchImport.c" - } -#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_FILE_WRITE_ERROR: -#line 2923 "BatchImport.c" - { - gchar* _tmp12_; -#line 62 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = g_strdup (_ ("File write error")); -#line 62 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp12_; -#line 62 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 2932 "BatchImport.c" - } -#line 24 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE: -#line 2936 "BatchImport.c" - { - gchar* _tmp13_; -#line 65 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = g_strdup (_ ("Corrupt image file")); -#line 65 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp13_; -#line 65 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 2945 "BatchImport.c" - } - default: - { - gchar* _tmp14_; -#line 68 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = g_strdup_printf (_ ("Imported failed (%d)"), (gint) self); -#line 68 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp14_; -#line 68 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 2956 "BatchImport.c" - } - } -} - - -gboolean -import_result_is_abort (ImportResult self) -{ - gboolean result = FALSE; -#line 73 "/home/jens/Source/shotwell/src/BatchImport.vala" - switch (self) { -#line 73 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_DISK_FULL: -#line 73 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_DISK_FAILURE: -#line 73 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_USER_ABORT: -#line 2974 "BatchImport.c" - { -#line 77 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = TRUE; -#line 77 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 2980 "BatchImport.c" - } - default: - { -#line 80 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = FALSE; -#line 80 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 2988 "BatchImport.c" - } - } -} - - -gboolean -import_result_is_nonuser_abort (ImportResult self) -{ - gboolean result = FALSE; -#line 85 "/home/jens/Source/shotwell/src/BatchImport.vala" - switch (self) { -#line 85 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_DISK_FULL: -#line 85 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_DISK_FAILURE: -#line 3004 "BatchImport.c" - { -#line 88 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = TRUE; -#line 88 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3010 "BatchImport.c" - } - default: - { -#line 91 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = FALSE; -#line 91 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3018 "BatchImport.c" - } - } -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 97 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self ? g_error_copy (self) : NULL; -#line 3029 "BatchImport.c" -} - - -ImportResult -import_result_convert_error (GError* err, - ImportResult default_result) -{ - ImportResult result = 0; -#line 96 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (err->domain == G_FILE_ERROR) { -#line 3040 "BatchImport.c" - GError* ferr = NULL; - GError* _tmp0_; - GError* _tmp1_; -#line 97 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _g_error_copy0 ((GError*) err); -#line 97 "/home/jens/Source/shotwell/src/BatchImport.vala" - ferr = _tmp0_; -#line 99 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = ferr; -#line 99 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_error_matches (_tmp1_, G_FILE_ERROR, G_FILE_ERROR_NOSPC)) { -#line 100 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_DISK_FULL; -#line 100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (ferr); -#line 100 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3058 "BatchImport.c" - } else { - GError* _tmp2_; -#line 101 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = ferr; -#line 101 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_error_matches (_tmp2_, G_FILE_ERROR, G_FILE_ERROR_IO)) { -#line 102 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_DISK_FAILURE; -#line 102 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (ferr); -#line 102 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3071 "BatchImport.c" - } else { - GError* _tmp3_; -#line 103 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = ferr; -#line 103 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_error_matches (_tmp3_, G_FILE_ERROR, G_FILE_ERROR_ISDIR)) { -#line 104 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_NOT_A_FILE; -#line 104 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (ferr); -#line 104 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3084 "BatchImport.c" - } else { - GError* _tmp4_; -#line 105 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = ferr; -#line 105 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_error_matches (_tmp4_, G_FILE_ERROR, G_FILE_ERROR_ACCES)) { -#line 106 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_FILE_WRITE_ERROR; -#line 106 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (ferr); -#line 106 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3097 "BatchImport.c" - } else { - GError* _tmp5_; -#line 107 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = ferr; -#line 107 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_error_matches (_tmp5_, G_FILE_ERROR, G_FILE_ERROR_PERM)) { -#line 108 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_FILE_WRITE_ERROR; -#line 108 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (ferr); -#line 108 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3110 "BatchImport.c" - } else { -#line 110 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_FILE_ERROR; -#line 110 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (ferr); -#line 110 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3118 "BatchImport.c" - } - } - } - } - } -#line 96 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (ferr); -#line 3126 "BatchImport.c" - } else { -#line 111 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (err->domain == G_IO_ERROR) { -#line 3130 "BatchImport.c" - GError* ioerr = NULL; - GError* _tmp6_; - GError* _tmp7_; -#line 112 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = _g_error_copy0 ((GError*) err); -#line 112 "/home/jens/Source/shotwell/src/BatchImport.vala" - ioerr = _tmp6_; -#line 114 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = ioerr; -#line 114 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_error_matches (_tmp7_, G_IO_ERROR, G_IO_ERROR_NO_SPACE)) { -#line 115 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_DISK_FULL; -#line 115 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (ioerr); -#line 115 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3148 "BatchImport.c" - } else { - GError* _tmp8_; -#line 116 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = ioerr; -#line 116 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_error_matches (_tmp8_, G_IO_ERROR, G_IO_ERROR_FAILED)) { -#line 117 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_DISK_FAILURE; -#line 117 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (ioerr); -#line 117 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3161 "BatchImport.c" - } else { - GError* _tmp9_; -#line 118 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = ioerr; -#line 118 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_error_matches (_tmp9_, G_IO_ERROR, G_IO_ERROR_IS_DIRECTORY)) { -#line 119 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_NOT_A_FILE; -#line 119 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (ioerr); -#line 119 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3174 "BatchImport.c" - } else { - GError* _tmp10_; -#line 120 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = ioerr; -#line 120 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_error_matches (_tmp10_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) { -#line 121 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_USER_ABORT; -#line 121 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (ioerr); -#line 121 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3187 "BatchImport.c" - } else { - GError* _tmp11_; -#line 122 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = ioerr; -#line 122 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_error_matches (_tmp11_, G_IO_ERROR, G_IO_ERROR_READ_ONLY)) { -#line 123 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_FILE_WRITE_ERROR; -#line 123 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (ioerr); -#line 123 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3200 "BatchImport.c" - } else { - GError* _tmp12_; -#line 124 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = ioerr; -#line 124 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_error_matches (_tmp12_, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED)) { -#line 125 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_FILE_WRITE_ERROR; -#line 125 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (ioerr); -#line 125 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3213 "BatchImport.c" - } else { -#line 127 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_FILE_ERROR; -#line 127 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (ioerr); -#line 127 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3221 "BatchImport.c" - } - } - } - } - } - } -#line 111 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (ioerr); -#line 3230 "BatchImport.c" - } else { -#line 128 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (err->domain == GPHOTO_ERROR) { -#line 129 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_CAMERA_ERROR; -#line 129 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3238 "BatchImport.c" - } else { -#line 130 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (err->domain == GDK_PIXBUF_ERROR) { -#line 3242 "BatchImport.c" - GError* pixbuferr = NULL; - GError* _tmp13_; - GError* _tmp14_; -#line 131 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = _g_error_copy0 ((GError*) err); -#line 131 "/home/jens/Source/shotwell/src/BatchImport.vala" - pixbuferr = _tmp13_; -#line 133 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = pixbuferr; -#line 133 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_error_matches (_tmp14_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_CORRUPT_IMAGE)) { -#line 134 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE; -#line 134 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (pixbuferr); -#line 134 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3260 "BatchImport.c" - } else { - GError* _tmp15_; -#line 135 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = pixbuferr; -#line 135 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_error_matches (_tmp15_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY)) { -#line 136 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = default_result; -#line 136 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (pixbuferr); -#line 136 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3273 "BatchImport.c" - } else { - GError* _tmp16_; -#line 137 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = pixbuferr; -#line 137 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_error_matches (_tmp16_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_BAD_OPTION)) { -#line 138 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = default_result; -#line 138 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (pixbuferr); -#line 138 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3286 "BatchImport.c" - } else { - GError* _tmp17_; -#line 139 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = pixbuferr; -#line 139 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_error_matches (_tmp17_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_UNKNOWN_TYPE)) { -#line 140 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_UNSUPPORTED_FORMAT; -#line 140 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (pixbuferr); -#line 140 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3299 "BatchImport.c" - } else { - GError* _tmp18_; -#line 141 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = pixbuferr; -#line 141 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_error_matches (_tmp18_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION)) { -#line 142 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = default_result; -#line 142 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (pixbuferr); -#line 142 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3312 "BatchImport.c" - } else { - GError* _tmp19_; -#line 143 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp19_ = pixbuferr; -#line 143 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_error_matches (_tmp19_, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_FAILED)) { -#line 144 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = default_result; -#line 144 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (pixbuferr); -#line 144 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3325 "BatchImport.c" - } else { -#line 146 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = default_result; -#line 146 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (pixbuferr); -#line 146 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3333 "BatchImport.c" - } - } - } - } - } - } -#line 130 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (pixbuferr); -#line 3342 "BatchImport.c" - } - } - } - } -#line 149 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = default_result; -#line 149 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3351 "BatchImport.c" -} - - -GType -import_result_get_type (void) -{ - static volatile gsize import_result_type_id__volatile = 0; - if (g_once_init_enter (&import_result_type_id__volatile)) { - static const GEnumValue values[] = {{IMPORT_RESULT_SUCCESS, "IMPORT_RESULT_SUCCESS", "success"}, {IMPORT_RESULT_FILE_ERROR, "IMPORT_RESULT_FILE_ERROR", "file-error"}, {IMPORT_RESULT_DECODE_ERROR, "IMPORT_RESULT_DECODE_ERROR", "decode-error"}, {IMPORT_RESULT_DATABASE_ERROR, "IMPORT_RESULT_DATABASE_ERROR", "database-error"}, {IMPORT_RESULT_USER_ABORT, "IMPORT_RESULT_USER_ABORT", "user-abort"}, {IMPORT_RESULT_NOT_A_FILE, "IMPORT_RESULT_NOT_A_FILE", "not-a-file"}, {IMPORT_RESULT_PHOTO_EXISTS, "IMPORT_RESULT_PHOTO_EXISTS", "photo-exists"}, {IMPORT_RESULT_UNSUPPORTED_FORMAT, "IMPORT_RESULT_UNSUPPORTED_FORMAT", "unsupported-format"}, {IMPORT_RESULT_NOT_AN_IMAGE, "IMPORT_RESULT_NOT_AN_IMAGE", "not-an-image"}, {IMPORT_RESULT_DISK_FAILURE, "IMPORT_RESULT_DISK_FAILURE", "disk-failure"}, {IMPORT_RESULT_DISK_FULL, "IMPORT_RESULT_DISK_FULL", "disk-full"}, {IMPORT_RESULT_CAMERA_ERROR, "IMPORT_RESULT_CAMERA_ERROR", "camera-error"}, {IMPORT_RESULT_FILE_WRITE_ERROR, "IMPORT_RESULT_FILE_WRITE_ERROR", "file-write-error"}, {IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE, "IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE", "pixbuf-corrupt-image"}, {0, NULL, NULL}}; - GType import_result_type_id; - import_result_type_id = g_enum_register_static ("ImportResult", values); - g_once_init_leave (&import_result_type_id__volatile, import_result_type_id); - } - return import_result_type_id__volatile; -} - - -static gchar* -batch_import_job_real_get_dest_identifier (BatchImportJob* self) -{ -#line 161 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("Type `%s' does not implement abstract method `batch_import_job_get_dest_identifier'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 161 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 3376 "BatchImport.c" -} - - -gchar* -batch_import_job_get_dest_identifier (BatchImportJob* self) -{ -#line 161 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL); -#line 161 "/home/jens/Source/shotwell/src/BatchImport.vala" - return BATCH_IMPORT_JOB_GET_CLASS (self)->get_dest_identifier (self); -#line 3387 "BatchImport.c" -} - - -static gchar* -batch_import_job_real_get_source_identifier (BatchImportJob* self) -{ -#line 163 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("Type `%s' does not implement abstract method `batch_import_job_get_source_identifier'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 163 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 3398 "BatchImport.c" -} - - -gchar* -batch_import_job_get_source_identifier (BatchImportJob* self) -{ -#line 163 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL); -#line 163 "/home/jens/Source/shotwell/src/BatchImport.vala" - return BATCH_IMPORT_JOB_GET_CLASS (self)->get_source_identifier (self); -#line 3409 "BatchImport.c" -} - - -static gboolean -batch_import_job_real_is_directory (BatchImportJob* self) -{ - gboolean _tmp0_ = FALSE; -#line 165 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("Type `%s' does not implement abstract method `batch_import_job_is_directory'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 165 "/home/jens/Source/shotwell/src/BatchImport.vala" - return _tmp0_; -#line 3421 "BatchImport.c" -} - - -gboolean -batch_import_job_is_directory (BatchImportJob* self) -{ -#line 165 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), FALSE); -#line 165 "/home/jens/Source/shotwell/src/BatchImport.vala" - return BATCH_IMPORT_JOB_GET_CLASS (self)->is_directory (self); -#line 3432 "BatchImport.c" -} - - -static gchar* -batch_import_job_real_get_basename (BatchImportJob* self) -{ -#line 167 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("Type `%s' does not implement abstract method `batch_import_job_get_basename'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 167 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 3443 "BatchImport.c" -} - - -gchar* -batch_import_job_get_basename (BatchImportJob* self) -{ -#line 167 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL); -#line 167 "/home/jens/Source/shotwell/src/BatchImport.vala" - return BATCH_IMPORT_JOB_GET_CLASS (self)->get_basename (self); -#line 3454 "BatchImport.c" -} - - -static gchar* -batch_import_job_real_get_path (BatchImportJob* self) -{ -#line 169 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("Type `%s' does not implement abstract method `batch_import_job_get_path'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 169 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 3465 "BatchImport.c" -} - - -gchar* -batch_import_job_get_path (BatchImportJob* self) -{ -#line 169 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL); -#line 169 "/home/jens/Source/shotwell/src/BatchImport.vala" - return BATCH_IMPORT_JOB_GET_CLASS (self)->get_path (self); -#line 3476 "BatchImport.c" -} - - -static DuplicatedFile* -batch_import_job_real_get_duplicated_file (BatchImportJob* self) -{ - DuplicatedFile* result = NULL; -#line 172 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = NULL; -#line 172 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3488 "BatchImport.c" -} - - -DuplicatedFile* -batch_import_job_get_duplicated_file (BatchImportJob* self) -{ -#line 171 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL); -#line 171 "/home/jens/Source/shotwell/src/BatchImport.vala" - return BATCH_IMPORT_JOB_GET_CLASS (self)->get_duplicated_file (self); -#line 3499 "BatchImport.c" -} - - -static GFile* -batch_import_job_real_get_associated_file (BatchImportJob* self) -{ - GFile* result = NULL; -#line 176 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = NULL; -#line 176 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3511 "BatchImport.c" -} - - -GFile* -batch_import_job_get_associated_file (BatchImportJob* self) -{ -#line 175 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), NULL); -#line 175 "/home/jens/Source/shotwell/src/BatchImport.vala" - return BATCH_IMPORT_JOB_GET_CLASS (self)->get_associated_file (self); -#line 3522 "BatchImport.c" -} - - -static void -batch_import_job_real_set_associated (BatchImportJob* self, - BatchImportJob* associated) -{ -#line 180 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("Type `%s' does not implement abstract method `batch_import_job_set_associated'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 180 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 3534 "BatchImport.c" -} - - -void -batch_import_job_set_associated (BatchImportJob* self, - BatchImportJob* associated) -{ -#line 180 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT_JOB (self)); -#line 180 "/home/jens/Source/shotwell/src/BatchImport.vala" - BATCH_IMPORT_JOB_GET_CLASS (self)->set_associated (self, associated); -#line 3546 "BatchImport.c" -} - - -static gboolean -batch_import_job_real_determine_file_size (BatchImportJob* self, - guint64* filesize, - GFile* * file_or_dir) -{ - gboolean _tmp0_ = FALSE; -#line 187 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("Type `%s' does not implement abstract method `batch_import_job_determine_file_size'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 187 "/home/jens/Source/shotwell/src/BatchImport.vala" - return _tmp0_; -#line 3560 "BatchImport.c" -} - - -gboolean -batch_import_job_determine_file_size (BatchImportJob* self, - guint64* filesize, - GFile* * file_or_dir) -{ -#line 187 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), FALSE); -#line 187 "/home/jens/Source/shotwell/src/BatchImport.vala" - return BATCH_IMPORT_JOB_GET_CLASS (self)->determine_file_size (self, filesize, file_or_dir); -#line 3573 "BatchImport.c" -} - - -static gboolean -batch_import_job_real_prepare (BatchImportJob* self, - GFile* * file_to_import, - gboolean* copy_to_library, - GError** error) -{ - gboolean _tmp0_ = FALSE; -#line 190 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("Type `%s' does not implement abstract method `batch_import_job_prepare'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 190 "/home/jens/Source/shotwell/src/BatchImport.vala" - return _tmp0_; -#line 3588 "BatchImport.c" -} - - -gboolean -batch_import_job_prepare (BatchImportJob* self, - GFile* * file_to_import, - gboolean* copy_to_library, - GError** error) -{ -#line 190 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), FALSE); -#line 190 "/home/jens/Source/shotwell/src/BatchImport.vala" - return BATCH_IMPORT_JOB_GET_CLASS (self)->prepare (self, file_to_import, copy_to_library, error); -#line 3602 "BatchImport.c" -} - - -static gboolean -batch_import_job_real_complete (BatchImportJob* self, - MediaSource* source, - BatchImportRoll* import_roll, - GError** error) -{ - gboolean result = FALSE; -#line 200 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE); -#line 200 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_ROLL (import_roll), FALSE); -#line 201 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = FALSE; -#line 201 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3621 "BatchImport.c" -} - - -gboolean -batch_import_job_complete (BatchImportJob* self, - MediaSource* source, - BatchImportRoll* import_roll, - GError** error) -{ -#line 200 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), FALSE); -#line 200 "/home/jens/Source/shotwell/src/BatchImport.vala" - return BATCH_IMPORT_JOB_GET_CLASS (self)->complete (self, source, import_roll, error); -#line 3635 "BatchImport.c" -} - - -static time_t -batch_import_job_real_get_exposure_time_override (BatchImportJob* self) -{ - time_t result = 0; -#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = (time_t) 0; -#line 207 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3647 "BatchImport.c" -} - - -time_t -batch_import_job_get_exposure_time_override (BatchImportJob* self) -{ -#line 206 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), 0); -#line 206 "/home/jens/Source/shotwell/src/BatchImport.vala" - return BATCH_IMPORT_JOB_GET_CLASS (self)->get_exposure_time_override (self); -#line 3658 "BatchImport.c" -} - - -static gboolean -batch_import_job_real_recurse (BatchImportJob* self) -{ - gboolean result = FALSE; -#line 211 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = TRUE; -#line 211 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 3670 "BatchImport.c" -} - - -gboolean -batch_import_job_recurse (BatchImportJob* self) -{ -#line 210 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (self), FALSE); -#line 210 "/home/jens/Source/shotwell/src/BatchImport.vala" - return BATCH_IMPORT_JOB_GET_CLASS (self)->recurse (self); -#line 3681 "BatchImport.c" -} - - -BatchImportJob* -batch_import_job_construct (GType object_type) -{ - BatchImportJob* self = NULL; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (BatchImportJob*) g_type_create_instance (object_type); -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 3693 "BatchImport.c" -} - - -static void -value_batch_import_job_init (GValue* value) -{ -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 3702 "BatchImport.c" -} - - -static void -value_batch_import_job_free_value (GValue* value) -{ -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (value->data[0].v_pointer) { -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_job_unref (value->data[0].v_pointer); -#line 3713 "BatchImport.c" - } -} - - -static void -value_batch_import_job_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (src_value->data[0].v_pointer) { -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - dest_value->data[0].v_pointer = batch_import_job_ref (src_value->data[0].v_pointer); -#line 3726 "BatchImport.c" - } else { -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - dest_value->data[0].v_pointer = NULL; -#line 3730 "BatchImport.c" - } -} - - -static gpointer -value_batch_import_job_peek_pointer (const GValue* value) -{ -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - return value->data[0].v_pointer; -#line 3740 "BatchImport.c" -} - - -static gchar* -value_batch_import_job_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (collect_values[0].v_pointer) { -#line 3752 "BatchImport.c" - BatchImportJob * object; - object = collect_values[0].v_pointer; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (object->parent_instance.g_class == NULL) { -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3759 "BatchImport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3763 "BatchImport.c" - } -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = batch_import_job_ref (object); -#line 3767 "BatchImport.c" - } else { -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 3771 "BatchImport.c" - } -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 3775 "BatchImport.c" -} - - -static gchar* -value_batch_import_job_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - BatchImportJob ** object_p; - object_p = collect_values[0].v_pointer; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!object_p) { -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 3791 "BatchImport.c" - } -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!value->data[0].v_pointer) { -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = NULL; -#line 3797 "BatchImport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = value->data[0].v_pointer; -#line 3801 "BatchImport.c" - } else { -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = batch_import_job_ref (value->data[0].v_pointer); -#line 3805 "BatchImport.c" - } -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 3809 "BatchImport.c" -} - - -GParamSpec* -param_spec_batch_import_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecBatchImportJob* spec; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_BATCH_IMPORT_JOB), NULL); -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - return G_PARAM_SPEC (spec); -#line 3829 "BatchImport.c" -} - - -gpointer -value_get_batch_import_job (const GValue* value) -{ -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_JOB), NULL); -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - return value->data[0].v_pointer; -#line 3840 "BatchImport.c" -} - - -void -value_set_batch_import_job (GValue* value, - gpointer v_object) -{ - BatchImportJob * old; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_JOB)); -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - old = value->data[0].v_pointer; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (v_object) { -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BATCH_IMPORT_JOB)); -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = v_object; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_job_ref (value->data[0].v_pointer); -#line 3863 "BatchImport.c" - } else { -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 3867 "BatchImport.c" - } -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (old) { -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_job_unref (old); -#line 3873 "BatchImport.c" - } -} - - -void -value_take_batch_import_job (GValue* value, - gpointer v_object) -{ - BatchImportJob * old; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_JOB)); -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - old = value->data[0].v_pointer; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (v_object) { -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BATCH_IMPORT_JOB)); -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = v_object; -#line 3895 "BatchImport.c" - } else { -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 3899 "BatchImport.c" - } -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (old) { -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_job_unref (old); -#line 3905 "BatchImport.c" - } -} - - -static void -batch_import_job_class_init (BatchImportJobClass * klass) -{ -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_job_parent_class = g_type_class_peek_parent (klass); -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->finalize = batch_import_job_finalize; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->get_dest_identifier = (gchar* (*) (BatchImportJob *)) batch_import_job_real_get_dest_identifier; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->get_source_identifier = (gchar* (*) (BatchImportJob *)) batch_import_job_real_get_source_identifier; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->is_directory = (gboolean (*) (BatchImportJob *)) batch_import_job_real_is_directory; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->get_basename = (gchar* (*) (BatchImportJob *)) batch_import_job_real_get_basename; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->get_path = (gchar* (*) (BatchImportJob *)) batch_import_job_real_get_path; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->get_duplicated_file = (DuplicatedFile* (*) (BatchImportJob *)) batch_import_job_real_get_duplicated_file; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->get_associated_file = (GFile* (*) (BatchImportJob *)) batch_import_job_real_get_associated_file; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->set_associated = (void (*) (BatchImportJob *, BatchImportJob*)) batch_import_job_real_set_associated; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->determine_file_size = (gboolean (*) (BatchImportJob *, guint64*, GFile* *)) batch_import_job_real_determine_file_size; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->prepare = (gboolean (*) (BatchImportJob *, GFile* *, gboolean*, GError**)) batch_import_job_real_prepare; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->complete = (gboolean (*) (BatchImportJob *, MediaSource*, BatchImportRoll*, GError**)) batch_import_job_real_complete; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->get_exposure_time_override = (time_t (*) (BatchImportJob *)) batch_import_job_real_get_exposure_time_override; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->recurse = (gboolean (*) (BatchImportJob *)) batch_import_job_real_recurse; -#line 3943 "BatchImport.c" -} - - -static void -batch_import_job_instance_init (BatchImportJob * self) -{ -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->ref_count = 1; -#line 3952 "BatchImport.c" -} - - -static void -batch_import_job_finalize (BatchImportJob * obj) -{ - BatchImportJob * self; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BATCH_IMPORT_JOB, BatchImportJob); -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_handlers_destroy (self); -#line 3964 "BatchImport.c" -} - - -GType -batch_import_job_get_type (void) -{ - static volatile gsize batch_import_job_type_id__volatile = 0; - if (g_once_init_enter (&batch_import_job_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_batch_import_job_init, value_batch_import_job_free_value, value_batch_import_job_copy_value, value_batch_import_job_peek_pointer, "p", value_batch_import_job_collect_value, "p", value_batch_import_job_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (BatchImportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) batch_import_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BatchImportJob), 0, (GInstanceInitFunc) batch_import_job_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType batch_import_job_type_id; - batch_import_job_type_id = g_type_register_fundamental (g_type_fundamental_next (), "BatchImportJob", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&batch_import_job_type_id__volatile, batch_import_job_type_id); - } - return batch_import_job_type_id__volatile; -} - - -gpointer -batch_import_job_ref (gpointer instance) -{ - BatchImportJob * self; - self = instance; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_atomic_int_inc (&self->ref_count); -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - return instance; -#line 3993 "BatchImport.c" -} - - -void -batch_import_job_unref (gpointer instance) -{ - BatchImportJob * self; - self = instance; -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - BATCH_IMPORT_JOB_GET_CLASS (self)->finalize (self); -#line 160 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 4008 "BatchImport.c" - } -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 222 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self ? g_object_ref (self) : NULL; -#line 4018 "BatchImport.c" -} - - -FileImportJob* -file_import_job_construct (GType object_type, - GFile* file_or_dir, - gboolean copy_to_library, - gboolean recurse) -{ - FileImportJob* self = NULL; - GFile* _tmp0_; -#line 221 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_IS_FILE (file_or_dir), NULL); -#line 221 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (FileImportJob*) batch_import_job_construct (object_type); -#line 222 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _g_object_ref0 (file_or_dir); -#line 222 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->file_or_dir); -#line 222 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->file_or_dir = _tmp0_; -#line 223 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->copy_to_library = copy_to_library; -#line 224 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->_recurse = recurse; -#line 221 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 4046 "BatchImport.c" -} - - -FileImportJob* -file_import_job_new (GFile* file_or_dir, - gboolean copy_to_library, - gboolean recurse) -{ -#line 221 "/home/jens/Source/shotwell/src/BatchImport.vala" - return file_import_job_construct (TYPE_FILE_IMPORT_JOB, file_or_dir, copy_to_library, recurse); -#line 4057 "BatchImport.c" -} - - -static gchar* -file_import_job_real_get_dest_identifier (BatchImportJob* base) -{ - FileImportJob * self; - gchar* result = NULL; - GFile* _tmp0_; - gchar* _tmp1_; -#line 227 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob); -#line 228 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->file_or_dir; -#line 228 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = g_file_get_path (_tmp0_); -#line 228 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp1_; -#line 228 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 4078 "BatchImport.c" -} - - -static gchar* -file_import_job_real_get_source_identifier (BatchImportJob* base) -{ - FileImportJob * self; - gchar* result = NULL; - GFile* _tmp0_; - gchar* _tmp1_; -#line 231 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob); -#line 232 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->file_or_dir; -#line 232 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = g_file_get_path (_tmp0_); -#line 232 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp1_; -#line 232 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 4099 "BatchImport.c" -} - - -static gboolean -file_import_job_real_is_directory (BatchImportJob* base) -{ - FileImportJob * self; - gboolean result = FALSE; - GFile* _tmp0_; -#line 235 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob); -#line 236 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->file_or_dir; -#line 236 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = query_is_directory (_tmp0_); -#line 236 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 4117 "BatchImport.c" -} - - -static gchar* -file_import_job_real_get_basename (BatchImportJob* base) -{ - FileImportJob * self; - gchar* result = NULL; - GFile* _tmp0_; - gchar* _tmp1_; -#line 239 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob); -#line 240 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->file_or_dir; -#line 240 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = g_file_get_basename (_tmp0_); -#line 240 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp1_; -#line 240 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 4138 "BatchImport.c" -} - - -static gchar* -file_import_job_real_get_path (BatchImportJob* base) -{ - FileImportJob * self; - gchar* result = NULL; - gchar* _tmp0_ = NULL; -#line 243 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob); -#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (batch_import_job_is_directory (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BATCH_IMPORT_JOB, BatchImportJob))) { -#line 4152 "BatchImport.c" - GFile* _tmp1_; - gchar* _tmp2_; -#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = self->priv->file_or_dir; -#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = g_file_get_path (_tmp1_); -#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp0_); -#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _tmp2_; -#line 4163 "BatchImport.c" - } else { - GFile* _tmp3_; - GFile* _tmp4_; - GFile* _tmp5_; - gchar* _tmp6_; -#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = self->priv->file_or_dir; -#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = g_file_get_parent (_tmp3_); -#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = _tmp4_; -#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = g_file_get_path (_tmp5_); -#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp0_); -#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _tmp6_; -#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp5_); -#line 4183 "BatchImport.c" - } -#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp0_; -#line 244 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 4189 "BatchImport.c" -} - - -static gpointer -_batch_import_job_ref0 (gpointer self) -{ -#line 248 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self ? batch_import_job_ref (self) : NULL; -#line 4198 "BatchImport.c" -} - - -static void -file_import_job_real_set_associated (BatchImportJob* base, - BatchImportJob* associated) -{ - FileImportJob * self; - FileImportJob* _tmp0_; -#line 247 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob); -#line 247 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT_JOB (associated)); -#line 248 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _batch_import_job_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (associated, TYPE_FILE_IMPORT_JOB) ? ((FileImportJob*) associated) : NULL); -#line 248 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (self->priv->associated); -#line 248 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->associated = _tmp0_; -#line 4218 "BatchImport.c" -} - - -static gboolean -file_import_job_real_determine_file_size (BatchImportJob* base, - guint64* filesize, - GFile* * file) -{ - FileImportJob * self; - guint64 _vala_filesize = 0ULL; - GFile* _vala_file = NULL; - gboolean result = FALSE; - GFile* _tmp0_; - GFile* _tmp1_; -#line 251 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob); -#line 252 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_filesize = (guint64) 0; -#line 253 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->file_or_dir; -#line 253 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 253 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_vala_file); -#line 253 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_file = _tmp1_; -#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = FALSE; -#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (filesize) { -#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala" - *filesize = _vala_filesize; -#line 4251 "BatchImport.c" - } -#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (file) { -#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala" - *file = _vala_file; -#line 4257 "BatchImport.c" - } else { -#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_vala_file); -#line 4261 "BatchImport.c" - } -#line 255 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 4265 "BatchImport.c" -} - - -static gboolean -file_import_job_real_prepare (BatchImportJob* base, - GFile* * file_to_import, - gboolean* copy, - GError** error) -{ - FileImportJob * self; - GFile* _vala_file_to_import = NULL; - gboolean _vala_copy = FALSE; - gboolean result = FALSE; - GFile* _tmp0_; - GFile* _tmp1_; - gboolean _tmp2_; -#line 258 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob); -#line 259 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->file_or_dir; -#line 259 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 259 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_vala_file_to_import); -#line 259 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_file_to_import = _tmp1_; -#line 260 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = self->priv->copy_to_library; -#line 260 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_copy = _tmp2_; -#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = TRUE; -#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (file_to_import) { -#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala" - *file_to_import = _vala_file_to_import; -#line 4302 "BatchImport.c" - } else { -#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_vala_file_to_import); -#line 4306 "BatchImport.c" - } -#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (copy) { -#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala" - *copy = _vala_copy; -#line 4312 "BatchImport.c" - } -#line 262 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 4316 "BatchImport.c" -} - - -GFile* -file_import_job_get_file (FileImportJob* self) -{ - GFile* result = NULL; - GFile* _tmp0_; - GFile* _tmp1_; -#line 265 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_FILE_IMPORT_JOB (self), NULL); -#line 266 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->file_or_dir; -#line 266 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 266 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp1_; -#line 266 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 4336 "BatchImport.c" -} - - -static gboolean -file_import_job_real_recurse (BatchImportJob* base) -{ - FileImportJob * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 269 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FILE_IMPORT_JOB, FileImportJob); -#line 270 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->_recurse; -#line 270 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp0_; -#line 270 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 4354 "BatchImport.c" -} - - -static void -file_import_job_class_init (FileImportJobClass * klass) -{ -#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala" - file_import_job_parent_class = g_type_class_peek_parent (klass); -#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->finalize = file_import_job_finalize; -#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_type_class_add_private (klass, sizeof (FileImportJobPrivate)); -#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->get_dest_identifier = (gchar* (*) (BatchImportJob *)) file_import_job_real_get_dest_identifier; -#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->get_source_identifier = (gchar* (*) (BatchImportJob *)) file_import_job_real_get_source_identifier; -#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->is_directory = (gboolean (*) (BatchImportJob *)) file_import_job_real_is_directory; -#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->get_basename = (gchar* (*) (BatchImportJob *)) file_import_job_real_get_basename; -#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->get_path = (gchar* (*) (BatchImportJob *)) file_import_job_real_get_path; -#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->set_associated = (void (*) (BatchImportJob *, BatchImportJob*)) file_import_job_real_set_associated; -#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->determine_file_size = (gboolean (*) (BatchImportJob *, guint64*, GFile* *)) file_import_job_real_determine_file_size; -#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->prepare = (gboolean (*) (BatchImportJob *, GFile* *, gboolean*, GError**)) file_import_job_real_prepare; -#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportJobClass *) klass)->recurse = (gboolean (*) (BatchImportJob *)) file_import_job_real_recurse; -#line 4385 "BatchImport.c" -} - - -static void -file_import_job_instance_init (FileImportJob * self) -{ -#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv = FILE_IMPORT_JOB_GET_PRIVATE (self); -#line 218 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->associated = NULL; -#line 4396 "BatchImport.c" -} - - -static void -file_import_job_finalize (BatchImportJob * obj) -{ - FileImportJob * self; -#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FILE_IMPORT_JOB, FileImportJob); -#line 216 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->file_or_dir); -#line 218 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (self->priv->associated); -#line 215 "/home/jens/Source/shotwell/src/BatchImport.vala" - BATCH_IMPORT_JOB_CLASS (file_import_job_parent_class)->finalize (obj); -#line 4412 "BatchImport.c" -} - - -GType -file_import_job_get_type (void) -{ - static volatile gsize file_import_job_type_id__volatile = 0; - if (g_once_init_enter (&file_import_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FileImportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) file_import_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FileImportJob), 0, (GInstanceInitFunc) file_import_job_instance_init, NULL }; - GType file_import_job_type_id; - file_import_job_type_id = g_type_register_static (TYPE_BATCH_IMPORT_JOB, "FileImportJob", &g_define_type_info, 0); - g_once_init_leave (&file_import_job_type_id__volatile, file_import_job_type_id); - } - return file_import_job_type_id__volatile; -} - - -BatchImportRoll* -batch_import_roll_construct (GType object_type) -{ - BatchImportRoll* self = NULL; - ImportID _tmp0_ = {0}; -#line 281 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (BatchImportRoll*) g_type_create_instance (object_type); -#line 282 "/home/jens/Source/shotwell/src/BatchImport.vala" - import_id_generate (&_tmp0_); -#line 282 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->import_id = _tmp0_; -#line 281 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 4443 "BatchImport.c" -} - - -BatchImportRoll* -batch_import_roll_new (void) -{ -#line 281 "/home/jens/Source/shotwell/src/BatchImport.vala" - return batch_import_roll_construct (TYPE_BATCH_IMPORT_ROLL); -#line 4452 "BatchImport.c" -} - - -static void -value_batch_import_roll_init (GValue* value) -{ -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 4461 "BatchImport.c" -} - - -static void -value_batch_import_roll_free_value (GValue* value) -{ -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (value->data[0].v_pointer) { -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_roll_unref (value->data[0].v_pointer); -#line 4472 "BatchImport.c" - } -} - - -static void -value_batch_import_roll_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (src_value->data[0].v_pointer) { -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - dest_value->data[0].v_pointer = batch_import_roll_ref (src_value->data[0].v_pointer); -#line 4485 "BatchImport.c" - } else { -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - dest_value->data[0].v_pointer = NULL; -#line 4489 "BatchImport.c" - } -} - - -static gpointer -value_batch_import_roll_peek_pointer (const GValue* value) -{ -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - return value->data[0].v_pointer; -#line 4499 "BatchImport.c" -} - - -static gchar* -value_batch_import_roll_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (collect_values[0].v_pointer) { -#line 4511 "BatchImport.c" - BatchImportRoll * object; - object = collect_values[0].v_pointer; -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (object->parent_instance.g_class == NULL) { -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4518 "BatchImport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4522 "BatchImport.c" - } -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = batch_import_roll_ref (object); -#line 4526 "BatchImport.c" - } else { -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 4530 "BatchImport.c" - } -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 4534 "BatchImport.c" -} - - -static gchar* -value_batch_import_roll_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - BatchImportRoll ** object_p; - object_p = collect_values[0].v_pointer; -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!object_p) { -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 4550 "BatchImport.c" - } -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!value->data[0].v_pointer) { -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = NULL; -#line 4556 "BatchImport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = value->data[0].v_pointer; -#line 4560 "BatchImport.c" - } else { -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = batch_import_roll_ref (value->data[0].v_pointer); -#line 4564 "BatchImport.c" - } -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 4568 "BatchImport.c" -} - - -GParamSpec* -param_spec_batch_import_roll (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecBatchImportRoll* spec; -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_BATCH_IMPORT_ROLL), NULL); -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - return G_PARAM_SPEC (spec); -#line 4588 "BatchImport.c" -} - - -gpointer -value_get_batch_import_roll (const GValue* value) -{ -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_ROLL), NULL); -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - return value->data[0].v_pointer; -#line 4599 "BatchImport.c" -} - - -void -value_set_batch_import_roll (GValue* value, - gpointer v_object) -{ - BatchImportRoll * old; -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_ROLL)); -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - old = value->data[0].v_pointer; -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (v_object) { -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BATCH_IMPORT_ROLL)); -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = v_object; -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_roll_ref (value->data[0].v_pointer); -#line 4622 "BatchImport.c" - } else { -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 4626 "BatchImport.c" - } -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (old) { -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_roll_unref (old); -#line 4632 "BatchImport.c" - } -} - - -void -value_take_batch_import_roll (GValue* value, - gpointer v_object) -{ - BatchImportRoll * old; -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_ROLL)); -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - old = value->data[0].v_pointer; -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (v_object) { -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BATCH_IMPORT_ROLL)); -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = v_object; -#line 4654 "BatchImport.c" - } else { -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 4658 "BatchImport.c" - } -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (old) { -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_roll_unref (old); -#line 4664 "BatchImport.c" - } -} - - -static void -batch_import_roll_class_init (BatchImportRollClass * klass) -{ -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_roll_parent_class = g_type_class_peek_parent (klass); -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportRollClass *) klass)->finalize = batch_import_roll_finalize; -#line 4676 "BatchImport.c" -} - - -static void -batch_import_roll_instance_init (BatchImportRoll * self) -{ - ViewCollection* _tmp0_; -#line 279 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = view_collection_new ("BatchImportRoll generated events"); -#line 279 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->generated_events = _tmp0_; -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->ref_count = 1; -#line 4690 "BatchImport.c" -} - - -static void -batch_import_roll_finalize (BatchImportRoll * obj) -{ - BatchImportRoll * self; -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BATCH_IMPORT_ROLL, BatchImportRoll); -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_handlers_destroy (self); -#line 279 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_collection_unref0 (self->generated_events); -#line 4704 "BatchImport.c" -} - - -GType -batch_import_roll_get_type (void) -{ - static volatile gsize batch_import_roll_type_id__volatile = 0; - if (g_once_init_enter (&batch_import_roll_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_batch_import_roll_init, value_batch_import_roll_free_value, value_batch_import_roll_copy_value, value_batch_import_roll_peek_pointer, "p", value_batch_import_roll_collect_value, "p", value_batch_import_roll_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (BatchImportRollClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) batch_import_roll_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BatchImportRoll), 0, (GInstanceInitFunc) batch_import_roll_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType batch_import_roll_type_id; - batch_import_roll_type_id = g_type_register_fundamental (g_type_fundamental_next (), "BatchImportRoll", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&batch_import_roll_type_id__volatile, batch_import_roll_type_id); - } - return batch_import_roll_type_id__volatile; -} - - -gpointer -batch_import_roll_ref (gpointer instance) -{ - BatchImportRoll * self; - self = instance; -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_atomic_int_inc (&self->ref_count); -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - return instance; -#line 4733 "BatchImport.c" -} - - -void -batch_import_roll_unref (gpointer instance) -{ - BatchImportRoll * self; - self = instance; -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - BATCH_IMPORT_ROLL_GET_CLASS (self)->finalize (self); -#line 277 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 4748 "BatchImport.c" - } -} - - -BatchImportResult* -batch_import_result_construct (GType object_type, - BatchImportJob* job, - GFile* file, - const gchar* src_identifier, - const gchar* dest_identifier, - DuplicatedFile* duplicate_of, - ImportResult _result_) -{ - BatchImportResult* self = NULL; - BatchImportJob* _tmp0_; - GFile* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - DuplicatedFile* _tmp4_; -#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), NULL); -#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL); -#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (src_identifier != NULL, NULL); -#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (dest_identifier != NULL, NULL); -#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail ((duplicate_of == NULL) || IS_DUPLICATED_FILE (duplicate_of), NULL); -#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (BatchImportResult*) g_type_create_instance (object_type); -#line 303 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _batch_import_job_ref0 (job); -#line 303 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (self->job); -#line 303 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->job = _tmp0_; -#line 304 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _g_object_ref0 (file); -#line 304 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->file); -#line 304 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->file = _tmp1_; -#line 305 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = g_strdup (src_identifier); -#line 305 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->src_identifier); -#line 305 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->src_identifier = _tmp2_; -#line 306 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = g_strdup (dest_identifier); -#line 306 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->dest_identifier); -#line 306 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->dest_identifier = _tmp3_; -#line 307 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _g_object_ref0 (duplicate_of); -#line 307 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->duplicate_of); -#line 307 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->duplicate_of = _tmp4_; -#line 308 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->result = _result_; -#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 4814 "BatchImport.c" -} - - -BatchImportResult* -batch_import_result_new (BatchImportJob* job, - GFile* file, - const gchar* src_identifier, - const gchar* dest_identifier, - DuplicatedFile* duplicate_of, - ImportResult _result_) -{ -#line 301 "/home/jens/Source/shotwell/src/BatchImport.vala" - return batch_import_result_construct (TYPE_BATCH_IMPORT_RESULT, job, file, src_identifier, dest_identifier, duplicate_of, _result_); -#line 4828 "BatchImport.c" -} - - -BatchImportResult* -batch_import_result_construct_from_error (GType object_type, - BatchImportJob* job, - GFile* file, - const gchar* src_identifier, - const gchar* dest_identifier, - GError* err, - ImportResult default_result) -{ - BatchImportResult* self = NULL; - BatchImportJob* _tmp0_; - GFile* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; -#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), NULL); -#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL); -#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (src_identifier != NULL, NULL); -#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (dest_identifier != NULL, NULL); -#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (BatchImportResult*) g_type_create_instance (object_type); -#line 313 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _batch_import_job_ref0 (job); -#line 313 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (self->job); -#line 313 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->job = _tmp0_; -#line 314 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _g_object_ref0 (file); -#line 314 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->file); -#line 314 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->file = _tmp1_; -#line 315 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = g_strdup (src_identifier); -#line 315 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->src_identifier); -#line 315 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->src_identifier = _tmp2_; -#line 316 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = g_strdup (dest_identifier); -#line 316 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->dest_identifier); -#line 316 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->dest_identifier = _tmp3_; -#line 317 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->result = import_result_convert_error (err, default_result); -#line 318 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = err->message; -#line 318 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = g_strdup (_tmp4_); -#line 318 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->errmsg); -#line 318 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->errmsg = _tmp5_; -#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 4894 "BatchImport.c" -} - - -BatchImportResult* -batch_import_result_new_from_error (BatchImportJob* job, - GFile* file, - const gchar* src_identifier, - const gchar* dest_identifier, - GError* err, - ImportResult default_result) -{ -#line 311 "/home/jens/Source/shotwell/src/BatchImport.vala" - return batch_import_result_construct_from_error (TYPE_BATCH_IMPORT_RESULT, job, file, src_identifier, dest_identifier, err, default_result); -#line 4908 "BatchImport.c" -} - - -static void -value_batch_import_result_init (GValue* value) -{ -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 4917 "BatchImport.c" -} - - -static void -value_batch_import_result_free_value (GValue* value) -{ -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (value->data[0].v_pointer) { -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_result_unref (value->data[0].v_pointer); -#line 4928 "BatchImport.c" - } -} - - -static void -value_batch_import_result_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (src_value->data[0].v_pointer) { -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - dest_value->data[0].v_pointer = batch_import_result_ref (src_value->data[0].v_pointer); -#line 4941 "BatchImport.c" - } else { -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - dest_value->data[0].v_pointer = NULL; -#line 4945 "BatchImport.c" - } -} - - -static gpointer -value_batch_import_result_peek_pointer (const GValue* value) -{ -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - return value->data[0].v_pointer; -#line 4955 "BatchImport.c" -} - - -static gchar* -value_batch_import_result_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (collect_values[0].v_pointer) { -#line 4967 "BatchImport.c" - BatchImportResult * object; - object = collect_values[0].v_pointer; -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (object->parent_instance.g_class == NULL) { -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4974 "BatchImport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4978 "BatchImport.c" - } -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = batch_import_result_ref (object); -#line 4982 "BatchImport.c" - } else { -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 4986 "BatchImport.c" - } -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 4990 "BatchImport.c" -} - - -static gchar* -value_batch_import_result_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - BatchImportResult ** object_p; - object_p = collect_values[0].v_pointer; -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!object_p) { -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 5006 "BatchImport.c" - } -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!value->data[0].v_pointer) { -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = NULL; -#line 5012 "BatchImport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = value->data[0].v_pointer; -#line 5016 "BatchImport.c" - } else { -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = batch_import_result_ref (value->data[0].v_pointer); -#line 5020 "BatchImport.c" - } -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 5024 "BatchImport.c" -} - - -GParamSpec* -param_spec_batch_import_result (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecBatchImportResult* spec; -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_BATCH_IMPORT_RESULT), NULL); -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - return G_PARAM_SPEC (spec); -#line 5044 "BatchImport.c" -} - - -gpointer -value_get_batch_import_result (const GValue* value) -{ -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_RESULT), NULL); -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - return value->data[0].v_pointer; -#line 5055 "BatchImport.c" -} - - -void -value_set_batch_import_result (GValue* value, - gpointer v_object) -{ - BatchImportResult * old; -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_RESULT)); -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - old = value->data[0].v_pointer; -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (v_object) { -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BATCH_IMPORT_RESULT)); -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = v_object; -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_result_ref (value->data[0].v_pointer); -#line 5078 "BatchImport.c" - } else { -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 5082 "BatchImport.c" - } -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (old) { -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_result_unref (old); -#line 5088 "BatchImport.c" - } -} - - -void -value_take_batch_import_result (GValue* value, - gpointer v_object) -{ - BatchImportResult * old; -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BATCH_IMPORT_RESULT)); -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - old = value->data[0].v_pointer; -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (v_object) { -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BATCH_IMPORT_RESULT)); -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = v_object; -#line 5110 "BatchImport.c" - } else { -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 5114 "BatchImport.c" - } -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (old) { -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_result_unref (old); -#line 5120 "BatchImport.c" - } -} - - -static void -batch_import_result_class_init (BatchImportResultClass * klass) -{ -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_result_parent_class = g_type_class_peek_parent (klass); -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BatchImportResultClass *) klass)->finalize = batch_import_result_finalize; -#line 5132 "BatchImport.c" -} - - -static void -batch_import_result_instance_init (BatchImportResult * self) -{ -#line 298 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->errmsg = NULL; -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->ref_count = 1; -#line 5143 "BatchImport.c" -} - - -static void -batch_import_result_finalize (BatchImportResult * obj) -{ - BatchImportResult * self; -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BATCH_IMPORT_RESULT, BatchImportResult); -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_handlers_destroy (self); -#line 293 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (self->job); -#line 294 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->file); -#line 295 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->src_identifier); -#line 296 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->dest_identifier); -#line 298 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->errmsg); -#line 299 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->duplicate_of); -#line 5167 "BatchImport.c" -} - - -GType -batch_import_result_get_type (void) -{ - static volatile gsize batch_import_result_type_id__volatile = 0; - if (g_once_init_enter (&batch_import_result_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_batch_import_result_init, value_batch_import_result_free_value, value_batch_import_result_copy_value, value_batch_import_result_peek_pointer, "p", value_batch_import_result_collect_value, "p", value_batch_import_result_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (BatchImportResultClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) batch_import_result_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BatchImportResult), 0, (GInstanceInitFunc) batch_import_result_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType batch_import_result_type_id; - batch_import_result_type_id = g_type_register_fundamental (g_type_fundamental_next (), "BatchImportResult", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&batch_import_result_type_id__volatile, batch_import_result_type_id); - } - return batch_import_result_type_id__volatile; -} - - -gpointer -batch_import_result_ref (gpointer instance) -{ - BatchImportResult * self; - self = instance; -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_atomic_int_inc (&self->ref_count); -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - return instance; -#line 5196 "BatchImport.c" -} - - -void -batch_import_result_unref (gpointer instance) -{ - BatchImportResult * self; - self = instance; -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - BATCH_IMPORT_RESULT_GET_CLASS (self)->finalize (self); -#line 292 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 5211 "BatchImport.c" - } -} - - -ImportManifest* -import_manifest_construct (GType object_type, - GeeList* prefailed, - GeeList* pre_already_imported) -{ - ImportManifest* self = NULL; - GTimer* _tmp0_; -#line 336 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail ((prefailed == NULL) || GEE_IS_LIST (prefailed), NULL); -#line 336 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail ((pre_already_imported == NULL) || GEE_IS_LIST (pre_already_imported), NULL); -#line 336 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (ImportManifest*) g_type_create_instance (object_type); -#line 338 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = g_timer_new (); -#line 338 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_timer_destroy0 (self->timer); -#line 338 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->timer = _tmp0_; -#line 339 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (prefailed != NULL) { -#line 5237 "BatchImport.c" - { - GeeList* _job_list = NULL; - GeeList* _tmp1_; - gint _job_size = 0; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _job_index = 0; -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _g_object_ref0 (prefailed); -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _job_list = _tmp1_; -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = _job_list; -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _tmp3_; -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _job_size = _tmp4_; -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _job_index = -1; -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - while (TRUE) { -#line 5262 "BatchImport.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - BatchImportJob* job = NULL; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - BatchImportResult* batch_result = NULL; - BatchImportJob* _tmp11_; - BatchImportJob* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - BatchImportJob* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - BatchImportResult* _tmp18_; - BatchImportResult* _tmp19_; - BatchImportResult* _tmp20_; -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = _job_index; -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _job_index = _tmp5_ + 1; -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = _job_index; -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = _job_size; -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 5293 "BatchImport.c" - } -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = _job_list; -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = _job_index; -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - job = (BatchImportJob*) _tmp10_; -#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = job; -#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = job; -#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = batch_import_job_get_source_identifier (_tmp12_); -#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = _tmp13_; -#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = job; -#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = batch_import_job_get_dest_identifier (_tmp15_); -#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = _tmp16_; -#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = batch_import_result_new (_tmp11_, NULL, _tmp14_, _tmp17_, NULL, IMPORT_RESULT_FILE_ERROR); -#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp19_ = _tmp18_; -#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp17_); -#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp14_); -#line 341 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_result = _tmp19_; -#line 345 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp20_ = batch_result; -#line 345 "/home/jens/Source/shotwell/src/BatchImport.vala" - import_manifest_add_result (self, _tmp20_); -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (batch_result); -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (job); -#line 5335 "BatchImport.c" - } -#line 340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_job_list); -#line 5339 "BatchImport.c" - } - } -#line 349 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (pre_already_imported != NULL) { -#line 5344 "BatchImport.c" - { - GeeList* _job_list = NULL; - GeeList* _tmp21_; - gint _job_size = 0; - GeeList* _tmp22_; - gint _tmp23_; - gint _tmp24_; - gint _job_index = 0; -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp21_ = _g_object_ref0 (pre_already_imported); -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - _job_list = _tmp21_; -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp22_ = _job_list; -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp23_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp24_ = _tmp23_; -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - _job_size = _tmp24_; -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - _job_index = -1; -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - while (TRUE) { -#line 5369 "BatchImport.c" - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; - BatchImportJob* job = NULL; - GeeList* _tmp28_; - gint _tmp29_; - gpointer _tmp30_; - BatchImportResult* batch_result = NULL; - BatchImportJob* _tmp31_; - BatchImportJob* _tmp32_; - gchar* _tmp33_; - gchar* _tmp34_; - GFile* _tmp35_; - GFile* _tmp36_; - BatchImportJob* _tmp37_; - gchar* _tmp38_; - gchar* _tmp39_; - BatchImportJob* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; - BatchImportJob* _tmp43_; - DuplicatedFile* _tmp44_; - DuplicatedFile* _tmp45_; - BatchImportResult* _tmp46_; - BatchImportResult* _tmp47_; - BatchImportResult* _tmp48_; -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp25_ = _job_index; -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - _job_index = _tmp25_ + 1; -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp26_ = _job_index; -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp27_ = _job_size; -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!(_tmp26_ < _tmp27_)) { -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 5408 "BatchImport.c" - } -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp28_ = _job_list; -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp29_ = _job_index; -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp30_ = gee_list_get (_tmp28_, _tmp29_); -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - job = (BatchImportJob*) _tmp30_; -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp31_ = job; -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp32_ = job; -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp33_ = batch_import_job_get_basename (_tmp32_); -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp34_ = _tmp33_; -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp35_ = g_file_new_for_path (_tmp34_); -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp36_ = _tmp35_; -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp37_ = job; -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp38_ = batch_import_job_get_source_identifier (_tmp37_); -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp39_ = _tmp38_; -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp40_ = job; -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp41_ = batch_import_job_get_dest_identifier (_tmp40_); -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp42_ = _tmp41_; -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp43_ = job; -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp44_ = batch_import_job_get_duplicated_file (_tmp43_); -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp45_ = _tmp44_; -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp46_ = batch_import_result_new (_tmp31_, _tmp36_, _tmp39_, _tmp42_, _tmp45_, IMPORT_RESULT_PHOTO_EXISTS); -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp47_ = _tmp46_; -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp45_); -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp42_); -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp39_); -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp36_); -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp34_); -#line 351 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_result = _tmp47_; -#line 356 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp48_ = batch_result; -#line 356 "/home/jens/Source/shotwell/src/BatchImport.vala" - import_manifest_add_result (self, _tmp48_); -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (batch_result); -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (job); -#line 5472 "BatchImport.c" - } -#line 350 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_job_list); -#line 5476 "BatchImport.c" - } - } -#line 336 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 5481 "BatchImport.c" -} - - -ImportManifest* -import_manifest_new (GeeList* prefailed, - GeeList* pre_already_imported) -{ -#line 336 "/home/jens/Source/shotwell/src/BatchImport.vala" - return import_manifest_construct (TYPE_IMPORT_MANIFEST, prefailed, pre_already_imported); -#line 5491 "BatchImport.c" -} - - -void -import_manifest_add_result (ImportManifest* self, - BatchImportResult* batch_result) -{ - gboolean reported = FALSE; - ImportResult _tmp0_; - gboolean _tmp13_; -#line 361 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_IMPORT_MANIFEST (self)); -#line 361 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT_RESULT (batch_result)); -#line 362 "/home/jens/Source/shotwell/src/BatchImport.vala" - reported = TRUE; -#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = batch_result->result; -#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala" - switch (_tmp0_) { -#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_SUCCESS: -#line 5514 "BatchImport.c" - { - GeeList* _tmp1_; -#line 365 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = self->success; -#line 365 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), batch_result); -#line 366 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 5523 "BatchImport.c" - } -#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_USER_ABORT: -#line 5527 "BatchImport.c" - { - gboolean _tmp2_ = FALSE; - GFile* _tmp3_; -#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = batch_result->file; -#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp3_ != NULL) { -#line 5535 "BatchImport.c" - GFile* _tmp4_; -#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = batch_result->file; -#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = !query_is_directory (_tmp4_); -#line 5541 "BatchImport.c" - } else { -#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = FALSE; -#line 5545 "BatchImport.c" - } -#line 369 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp2_) { -#line 5549 "BatchImport.c" - GeeList* _tmp5_; -#line 370 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = self->aborted; -#line 370 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), batch_result); -#line 5555 "BatchImport.c" - } else { -#line 372 "/home/jens/Source/shotwell/src/BatchImport.vala" - reported = FALSE; -#line 5559 "BatchImport.c" - } -#line 373 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 5563 "BatchImport.c" - } -#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_UNSUPPORTED_FORMAT: -#line 5567 "BatchImport.c" - { - GeeList* _tmp6_; -#line 376 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = self->skipped_photos; -#line 376 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), batch_result); -#line 377 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 5576 "BatchImport.c" - } -#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_NOT_A_FILE: -#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_NOT_AN_IMAGE: -#line 5582 "BatchImport.c" - { - GeeList* _tmp7_; -#line 381 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = self->skipped_files; -#line 381 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection), batch_result); -#line 382 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 5591 "BatchImport.c" - } -#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_PHOTO_EXISTS: -#line 5595 "BatchImport.c" - { - GeeList* _tmp8_; -#line 385 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = self->already_imported; -#line 385 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection), batch_result); -#line 386 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 5604 "BatchImport.c" - } -#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_CAMERA_ERROR: -#line 5608 "BatchImport.c" - { - GeeList* _tmp9_; -#line 389 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = self->camera_failed; -#line 389 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection), batch_result); -#line 390 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 5617 "BatchImport.c" - } -#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_FILE_WRITE_ERROR: -#line 5621 "BatchImport.c" - { - GeeList* _tmp10_; -#line 393 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = self->write_failed; -#line 393 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection), batch_result); -#line 394 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 5630 "BatchImport.c" - } -#line 363 "/home/jens/Source/shotwell/src/BatchImport.vala" - case IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE: -#line 5634 "BatchImport.c" - { - GeeList* _tmp11_; -#line 397 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = self->corrupt_files; -#line 397 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection), batch_result); -#line 398 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 5643 "BatchImport.c" - } - default: - { - GeeList* _tmp12_; -#line 401 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = self->failed; -#line 401 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), batch_result); -#line 402 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 5654 "BatchImport.c" - } - } -#line 405 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = reported; -#line 405 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp13_) { -#line 5661 "BatchImport.c" - GeeList* _tmp14_; -#line 406 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = self->all; -#line 406 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection), batch_result); -#line 5667 "BatchImport.c" - } -} - - -static void -value_import_manifest_init (GValue* value) -{ -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 5677 "BatchImport.c" -} - - -static void -value_import_manifest_free_value (GValue* value) -{ -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (value->data[0].v_pointer) { -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - import_manifest_unref (value->data[0].v_pointer); -#line 5688 "BatchImport.c" - } -} - - -static void -value_import_manifest_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (src_value->data[0].v_pointer) { -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - dest_value->data[0].v_pointer = import_manifest_ref (src_value->data[0].v_pointer); -#line 5701 "BatchImport.c" - } else { -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - dest_value->data[0].v_pointer = NULL; -#line 5705 "BatchImport.c" - } -} - - -static gpointer -value_import_manifest_peek_pointer (const GValue* value) -{ -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - return value->data[0].v_pointer; -#line 5715 "BatchImport.c" -} - - -static gchar* -value_import_manifest_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (collect_values[0].v_pointer) { -#line 5727 "BatchImport.c" - ImportManifest * object; - object = collect_values[0].v_pointer; -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (object->parent_instance.g_class == NULL) { -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5734 "BatchImport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5738 "BatchImport.c" - } -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = import_manifest_ref (object); -#line 5742 "BatchImport.c" - } else { -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 5746 "BatchImport.c" - } -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 5750 "BatchImport.c" -} - - -static gchar* -value_import_manifest_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - ImportManifest ** object_p; - object_p = collect_values[0].v_pointer; -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!object_p) { -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 5766 "BatchImport.c" - } -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!value->data[0].v_pointer) { -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = NULL; -#line 5772 "BatchImport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = value->data[0].v_pointer; -#line 5776 "BatchImport.c" - } else { -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = import_manifest_ref (value->data[0].v_pointer); -#line 5780 "BatchImport.c" - } -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 5784 "BatchImport.c" -} - - -GParamSpec* -param_spec_import_manifest (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecImportManifest* spec; -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_IMPORT_MANIFEST), NULL); -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - return G_PARAM_SPEC (spec); -#line 5804 "BatchImport.c" -} - - -gpointer -value_get_import_manifest (const GValue* value) -{ -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_IMPORT_MANIFEST), NULL); -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - return value->data[0].v_pointer; -#line 5815 "BatchImport.c" -} - - -void -value_set_import_manifest (GValue* value, - gpointer v_object) -{ - ImportManifest * old; -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_IMPORT_MANIFEST)); -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - old = value->data[0].v_pointer; -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (v_object) { -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_IMPORT_MANIFEST)); -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = v_object; -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - import_manifest_ref (value->data[0].v_pointer); -#line 5838 "BatchImport.c" - } else { -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 5842 "BatchImport.c" - } -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (old) { -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - import_manifest_unref (old); -#line 5848 "BatchImport.c" - } -} - - -void -value_take_import_manifest (GValue* value, - gpointer v_object) -{ - ImportManifest * old; -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_IMPORT_MANIFEST)); -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - old = value->data[0].v_pointer; -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (v_object) { -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_IMPORT_MANIFEST)); -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = v_object; -#line 5870 "BatchImport.c" - } else { -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 5874 "BatchImport.c" - } -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (old) { -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - import_manifest_unref (old); -#line 5880 "BatchImport.c" - } -} - - -static void -import_manifest_class_init (ImportManifestClass * klass) -{ -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - import_manifest_parent_class = g_type_class_peek_parent (klass); -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((ImportManifestClass *) klass)->finalize = import_manifest_finalize; -#line 5892 "BatchImport.c" -} - - -static void -import_manifest_instance_init (ImportManifest * self) -{ - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; - GeeArrayList* _tmp2_; - GeeArrayList* _tmp3_; - GeeArrayList* _tmp4_; - GeeArrayList* _tmp5_; - GeeArrayList* _tmp6_; - GeeArrayList* _tmp7_; - GeeArrayList* _tmp8_; - GeeArrayList* _tmp9_; - GeeArrayList* _tmp10_; -#line 323 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 323 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->imported = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList); -#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL); -#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->success = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_LIST, GeeList); -#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL); -#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->camera_failed = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_LIST, GeeList); -#line 326 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL); -#line 326 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->failed = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_LIST, GeeList); -#line 327 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL); -#line 327 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->write_failed = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_LIST, GeeList); -#line 328 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL); -#line 328 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->skipped_photos = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_LIST, GeeList); -#line 329 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL); -#line 329 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->skipped_files = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_LIST, GeeList); -#line 330 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL); -#line 330 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->aborted = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_LIST, GeeList); -#line 331 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL); -#line 331 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->already_imported = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_LIST, GeeList); -#line 332 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL); -#line 332 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->corrupt_files = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_LIST, GeeList); -#line 333 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL); -#line 333 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->all = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_LIST, GeeList); -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->ref_count = 1; -#line 5956 "BatchImport.c" -} - - -static void -import_manifest_finalize (ImportManifest * obj) -{ - ImportManifest * self; -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_IMPORT_MANIFEST, ImportManifest); -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_handlers_destroy (self); -#line 323 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->imported); -#line 324 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->success); -#line 325 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->camera_failed); -#line 326 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->failed); -#line 327 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->write_failed); -#line 328 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->skipped_photos); -#line 329 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->skipped_files); -#line 330 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->aborted); -#line 331 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->already_imported); -#line 332 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->corrupt_files); -#line 333 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->all); -#line 334 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_timer_destroy0 (self->timer); -#line 5992 "BatchImport.c" -} - - -GType -import_manifest_get_type (void) -{ - static volatile gsize import_manifest_type_id__volatile = 0; - if (g_once_init_enter (&import_manifest_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_import_manifest_init, value_import_manifest_free_value, value_import_manifest_copy_value, value_import_manifest_peek_pointer, "p", value_import_manifest_collect_value, "p", value_import_manifest_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (ImportManifestClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_manifest_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportManifest), 0, (GInstanceInitFunc) import_manifest_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType import_manifest_type_id; - import_manifest_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ImportManifest", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&import_manifest_type_id__volatile, import_manifest_type_id); - } - return import_manifest_type_id__volatile; -} - - -gpointer -import_manifest_ref (gpointer instance) -{ - ImportManifest * self; - self = instance; -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_atomic_int_inc (&self->ref_count); -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - return instance; -#line 6021 "BatchImport.c" -} - - -void -import_manifest_unref (gpointer instance) -{ - ImportManifest * self; - self = instance; -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - IMPORT_MANIFEST_GET_CLASS (self)->finalize (self); -#line 322 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 6036 "BatchImport.c" - } -} - - -static void -_batch_import_user_halt_application_exiting (Application* _sender, - gboolean panicked, - gpointer self) -{ -#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_user_halt ((BatchImport*) self); -#line 6048 "BatchImport.c" -} - - -static gpointer -_batch_import_roll_ref0 (gpointer self) -{ -#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self ? batch_import_roll_ref (self) : NULL; -#line 6057 "BatchImport.c" -} - - -static guint -_file_hash_gee_hash_data_func (gconstpointer v, - gpointer self) -{ - guint result; - result = file_hash ((GFile*) v); -#line 507 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 6069 "BatchImport.c" -} - - -static gboolean -_file_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gboolean result; - result = file_equal ((GFile*) a, (GFile*) b); -#line 507 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 6082 "BatchImport.c" -} - - -static gboolean -_batch_import_display_imported_timer_gsource_func (gpointer self) -{ - gboolean result; - result = batch_import_display_imported_timer ((BatchImport*) self); -#line 517 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 6093 "BatchImport.c" -} - - -BatchImport* -batch_import_construct (GType object_type, - GeeIterable* jobs, - const gchar* name, - BatchImportImportReporter reporter, - void* reporter_target, - GeeArrayList* prefailed, - GeeArrayList* pre_already_imported, - GCancellable* cancellable, - BatchImportRoll* import_roll, - ImportManifest* skip_manifest) -{ - BatchImport * self = NULL; - GeeIterable* _tmp0_; - gchar* _tmp1_; - ImportManifest* _tmp2_; - GCancellable* _tmp3_ = NULL; - GCancellable* _tmp6_; - BatchImportRoll* _tmp7_ = NULL; - BatchImportRoll* _tmp10_; - Application* _tmp27_; - Application* _tmp28_; -#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (jobs), NULL); -#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail ((prefailed == NULL) || GEE_IS_ARRAY_LIST (prefailed), NULL); -#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail ((pre_already_imported == NULL) || GEE_IS_ARRAY_LIST (pre_already_imported), NULL); -#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable), NULL); -#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail ((import_roll == NULL) || IS_BATCH_IMPORT_ROLL (import_roll), NULL); -#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail ((skip_manifest == NULL) || IS_IMPORT_MANIFEST (skip_manifest), NULL); -#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (BatchImport*) g_object_new (object_type, NULL); -#line 499 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _g_object_ref0 (jobs); -#line 499 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->jobs); -#line 499 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->jobs = _tmp0_; -#line 500 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = g_strdup (name); -#line 500 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->priv->name); -#line 500 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->name = _tmp1_; -#line 501 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->reporter = reporter; -#line 501 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->reporter_target = reporter_target; -#line 502 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = import_manifest_new (G_TYPE_CHECK_INSTANCE_CAST (prefailed, GEE_TYPE_LIST, GeeList), G_TYPE_CHECK_INSTANCE_CAST (pre_already_imported, GEE_TYPE_LIST, GeeList)); -#line 502 "/home/jens/Source/shotwell/src/BatchImport.vala" - _import_manifest_unref0 (self->priv->manifest); -#line 502 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->manifest = _tmp2_; -#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (cancellable != NULL) { -#line 6159 "BatchImport.c" - GCancellable* _tmp4_; -#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _g_object_ref0 (cancellable); -#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp3_); -#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = _tmp4_; -#line 6167 "BatchImport.c" - } else { - GCancellable* _tmp5_; -#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = g_cancellable_new (); -#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp3_); -#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = _tmp5_; -#line 6176 "BatchImport.c" - } -#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = _g_object_ref0 (_tmp3_); -#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->cancellable); -#line 503 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->cancellable = _tmp6_; -#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (import_roll != NULL) { -#line 6186 "BatchImport.c" - BatchImportRoll* _tmp8_; -#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = _batch_import_roll_ref0 (import_roll); -#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_roll_unref0 (_tmp7_); -#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = _tmp8_; -#line 6194 "BatchImport.c" - } else { - BatchImportRoll* _tmp9_; -#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = batch_import_roll_new (); -#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_roll_unref0 (_tmp7_); -#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = _tmp9_; -#line 6203 "BatchImport.c" - } -#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = _batch_import_roll_ref0 (_tmp7_); -#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_roll_unref0 (self->priv->import_roll); -#line 504 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->import_roll = _tmp10_; -#line 506 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (skip_manifest != NULL) { -#line 6213 "BatchImport.c" - GeeHashSet* _tmp11_; -#line 507 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = gee_hash_set_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); -#line 507 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->skipset); -#line 507 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->skipset = _tmp11_; -#line 6221 "BatchImport.c" - { - GeeList* _source_list = NULL; - GeeList* _tmp12_; - GeeList* _tmp13_; - gint _source_size = 0; - GeeList* _tmp14_; - gint _tmp15_; - gint _tmp16_; - gint _source_index = 0; -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = skip_manifest->imported; -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = _g_object_ref0 (_tmp12_); -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _source_list = _tmp13_; -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = _source_list; -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = _tmp15_; -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _source_size = _tmp16_; -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _source_index = -1; -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - while (TRUE) { -#line 6249 "BatchImport.c" - gint _tmp17_; - gint _tmp18_; - gint _tmp19_; - MediaSource* source = NULL; - GeeList* _tmp20_; - gint _tmp21_; - gpointer _tmp22_; - GeeHashSet* _tmp23_; - MediaSource* _tmp24_; - GFile* _tmp25_; - GFile* _tmp26_; -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = _source_index; -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _source_index = _tmp17_ + 1; -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = _source_index; -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp19_ = _source_size; -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!(_tmp18_ < _tmp19_)) { -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 6273 "BatchImport.c" - } -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp20_ = _source_list; -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp21_ = _source_index; -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp22_ = gee_list_get (_tmp20_, _tmp21_); -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - source = (MediaSource*) _tmp22_; -#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp23_ = self->priv->skipset; -#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp24_ = source; -#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp25_ = media_source_get_file (_tmp24_); -#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp26_ = _tmp25_; -#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp26_); -#line 509 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp26_); -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (source); -#line 6297 "BatchImport.c" - } -#line 508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_source_list); -#line 6301 "BatchImport.c" - } - } -#line 514 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp27_ = application_get_instance (); -#line 514 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp28_ = _tmp27_; -#line 514 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_connect_object (_tmp28_, "exiting", (GCallback) _batch_import_user_halt_application_exiting, self, 0); -#line 514 "/home/jens/Source/shotwell/src/BatchImport.vala" - _application_unref0 (_tmp28_); -#line 517 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) BATCH_IMPORT_DISPLAY_QUEUE_TIMER_MSEC, _batch_import_display_imported_timer_gsource_func, g_object_ref (self), g_object_unref); -#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_roll_unref0 (_tmp7_); -#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp3_); -#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 6320 "BatchImport.c" -} - - -BatchImport* -batch_import_new (GeeIterable* jobs, - const gchar* name, - BatchImportImportReporter reporter, - void* reporter_target, - GeeArrayList* prefailed, - GeeArrayList* pre_already_imported, - GCancellable* cancellable, - BatchImportRoll* import_roll, - ImportManifest* skip_manifest) -{ -#line 494 "/home/jens/Source/shotwell/src/BatchImport.vala" - return batch_import_construct (TYPE_BATCH_IMPORT, jobs, name, reporter, reporter_target, prefailed, pre_already_imported, cancellable, import_roll, skip_manifest); -#line 6337 "BatchImport.c" -} - - -gchar* -batch_import_get_name (BatchImport* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 527 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT (self), NULL); -#line 528 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->name; -#line 528 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 528 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp1_; -#line 528 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 6357 "BatchImport.c" -} - - -void -batch_import_user_halt (BatchImport* self) -{ - GCancellable* _tmp0_; -#line 531 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 532 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->cancellable; -#line 532 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_cancellable_cancel (_tmp0_); -#line 6371 "BatchImport.c" -} - - -gboolean -batch_import_get_untrash_duplicates (BatchImport* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 535 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE); -#line 536 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->untrash_duplicates; -#line 536 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp0_; -#line 536 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 6388 "BatchImport.c" -} - - -void -batch_import_set_untrash_duplicates (BatchImport* self, - gboolean untrash_duplicates) -{ -#line 539 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 540 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->untrash_duplicates = untrash_duplicates; -#line 6400 "BatchImport.c" -} - - -gboolean -batch_import_get_mark_duplicates_online (BatchImport* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 543 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE); -#line 544 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->mark_duplicates_online; -#line 544 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp0_; -#line 544 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 6417 "BatchImport.c" -} - - -void -batch_import_set_mark_duplicates_online (BatchImport* self, - gboolean mark_duplicates_online) -{ -#line 547 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 548 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->mark_duplicates_online = mark_duplicates_online; -#line 6429 "BatchImport.c" -} - - -static void -batch_import_log_status (BatchImport* self, - const gchar* where) -{ -#line 551 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 551 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (where != NULL); -#line 6441 "BatchImport.c" -} - - -static gboolean -batch_import_report_failure (BatchImport* self, - BatchImportResult* import_result) -{ - gboolean result = FALSE; - gboolean proceed = FALSE; - ImportManifest* _tmp0_; - ImportResult _tmp1_; - gboolean _tmp14_ = FALSE; - ImportResult _tmp15_; - GError * _inner_error_ = NULL; -#line 561 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE); -#line 561 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_RESULT (import_result), FALSE); -#line 562 "/home/jens/Source/shotwell/src/BatchImport.vala" - proceed = TRUE; -#line 564 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->manifest; -#line 564 "/home/jens/Source/shotwell/src/BatchImport.vala" - import_manifest_add_result (_tmp0_, import_result); -#line 566 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = import_result->result; -#line 566 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp1_ != IMPORT_RESULT_SUCCESS) { -#line 6470 "BatchImport.c" - gboolean _tmp2_ = FALSE; - GFile* _tmp3_; -#line 567 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_emit (self, batch_import_signals[BATCH_IMPORT_IMPORT_JOB_FAILED_SIGNAL], 0, import_result); -#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = import_result->file; -#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp3_ != NULL) { -#line 6479 "BatchImport.c" - ImportResult _tmp4_; -#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = import_result->result; -#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = !import_result_is_abort (_tmp4_); -#line 6485 "BatchImport.c" - } else { -#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = FALSE; -#line 6489 "BatchImport.c" - } -#line 569 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp2_) { -#line 6493 "BatchImport.c" - guint64 filesize = 0ULL; - guint64 _tmp13_; -#line 570 "/home/jens/Source/shotwell/src/BatchImport.vala" - filesize = (guint64) 0; -#line 6498 "BatchImport.c" - { - guint64 _tmp5_ = 0ULL; - GFile* _tmp6_; -#line 573 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = import_result->file; -#line 573 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = query_total_file_size (_tmp6_, NULL, &_inner_error_); -#line 573 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6508 "BatchImport.c" - goto __catch423_g_error; - } -#line 573 "/home/jens/Source/shotwell/src/BatchImport.vala" - filesize = _tmp5_; -#line 6513 "BatchImport.c" - } - goto __finally423; - __catch423_g_error: - { - GError* err = NULL; - GFile* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - GError* _tmp10_; - const gchar* _tmp11_; -#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala" - err = _inner_error_; -#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala" - _inner_error_ = NULL; -#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = import_result->file; -#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = g_file_get_path (_tmp7_); -#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = _tmp8_; -#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = err; -#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = _tmp10_->message; -#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_warning ("BatchImport.vala:575: Unable to query file size of %s: %s", _tmp9_, _tmp11_); -#line 575 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp9_); -#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (err); -#line 6544 "BatchImport.c" - } - __finally423: -#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6549 "BatchImport.c" - gboolean _tmp12_ = FALSE; -#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_clear_error (&_inner_error_); -#line 571 "/home/jens/Source/shotwell/src/BatchImport.vala" - return _tmp12_; -#line 6557 "BatchImport.c" - } -#line 579 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = filesize; -#line 579 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_progress (self, _tmp13_); -#line 6563 "BatchImport.c" - } - } -#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = import_result->result; -#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (import_result_is_nonuser_abort (_tmp15_)) { -#line 6570 "BatchImport.c" - gboolean _tmp16_; -#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = proceed; -#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = _tmp16_; -#line 6576 "BatchImport.c" - } else { -#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = FALSE; -#line 6580 "BatchImport.c" - } -#line 584 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp14_) { -#line 6584 "BatchImport.c" - ImportResult _tmp17_; - const gchar* _tmp18_; -#line 585 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = import_result->result; -#line 585 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = import_result->errmsg; -#line 585 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_emit (self, batch_import_signals[BATCH_IMPORT_FATAL_ERROR_SIGNAL], 0, _tmp17_, _tmp18_); -#line 586 "/home/jens/Source/shotwell/src/BatchImport.vala" - proceed = FALSE; -#line 6595 "BatchImport.c" - } -#line 589 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = proceed; -#line 589 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 6601 "BatchImport.c" -} - - -static void -batch_import_report_progress (BatchImport* self, - guint64 increment_of_progress) -{ - guint64 _tmp0_; - guint64 _tmp1_; -#line 592 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 593 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->completed_bytes; -#line 593 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->completed_bytes = _tmp0_ + increment_of_progress; -#line 597 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = self->priv->completed_bytes; -#line 597 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp1_ == ((guint64) 0)) { -#line 6621 "BatchImport.c" - gulong now = 0UL; - gulong _tmp2_; - gulong _tmp3_; -#line 598 "/home/jens/Source/shotwell/src/BatchImport.vala" - now = now_ms (); -#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = now; -#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = self->priv->last_preparing_ms; -#line 599 "/home/jens/Source/shotwell/src/BatchImport.vala" - if ((_tmp2_ - _tmp3_) > ((gulong) 250)) { -#line 6633 "BatchImport.c" - gulong _tmp4_; -#line 600 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = now; -#line 600 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->last_preparing_ms = _tmp4_; -#line 601 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_emit (self, batch_import_signals[BATCH_IMPORT_PREPARING_SIGNAL], 0); -#line 6641 "BatchImport.c" - } - } else { -#line 603 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (increment_of_progress > ((guint64) 0)) { -#line 6646 "BatchImport.c" - gulong now = 0UL; - gulong _tmp5_; - gulong _tmp6_; -#line 604 "/home/jens/Source/shotwell/src/BatchImport.vala" - now = now_ms (); -#line 605 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = now; -#line 605 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = self->priv->last_preparing_ms; -#line 605 "/home/jens/Source/shotwell/src/BatchImport.vala" - if ((_tmp5_ - _tmp6_) > ((gulong) 250)) { -#line 6658 "BatchImport.c" - gulong _tmp7_; - guint64 _tmp8_; - guint64 _tmp9_; -#line 606 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = now; -#line 606 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->last_preparing_ms = _tmp7_; -#line 607 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = self->priv->completed_bytes; -#line 607 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = self->priv->total_bytes; -#line 607 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_emit (self, batch_import_signals[BATCH_IMPORT_PROGRESS_SIGNAL], 0, _tmp8_, _tmp9_); -#line 6672 "BatchImport.c" - } - } - } -} - - -static gboolean -batch_import_report_failures (BatchImport* self, - BackgroundImportJob* background_job) -{ - gboolean result = FALSE; - gboolean proceed = FALSE; -#line 612 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE); -#line 612 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BACKGROUND_IMPORT_JOB (background_job), FALSE); -#line 613 "/home/jens/Source/shotwell/src/BatchImport.vala" - proceed = TRUE; -#line 6691 "BatchImport.c" - { - GeeList* _import_result_list = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _import_result_size = 0; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _import_result_index = 0; -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = background_job->failed; -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - _import_result_list = _tmp1_; -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = _import_result_list; -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _tmp3_; -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - _import_result_size = _tmp4_; -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - _import_result_index = -1; -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - while (TRUE) { -#line 6719 "BatchImport.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - BatchImportResult* import_result = NULL; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - BatchImportResult* _tmp11_; -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = _import_result_index; -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - _import_result_index = _tmp5_ + 1; -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = _import_result_index; -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = _import_result_size; -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 6740 "BatchImport.c" - } -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = _import_result_list; -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = _import_result_index; -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - import_result = (BatchImportResult*) _tmp10_; -#line 616 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = import_result; -#line 616 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!batch_import_report_failure (self, _tmp11_)) { -#line 617 "/home/jens/Source/shotwell/src/BatchImport.vala" - proceed = FALSE; -#line 6756 "BatchImport.c" - } -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (import_result); -#line 6760 "BatchImport.c" - } -#line 615 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_import_result_list); -#line 6764 "BatchImport.c" - } -#line 620 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = proceed; -#line 620 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 6770 "BatchImport.c" -} - - -static void -batch_import_report_completed (BatchImport* self, - const gchar* where) -{ - gboolean _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - ImportManifest* _tmp3_; - GTimer* _tmp4_; - gdouble _tmp5_; - BatchImportImportReporter _tmp6_; - void* _tmp6__target; - ImportManifest* _tmp10_; - BatchImportRoll* _tmp11_; -#line 623 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 623 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (where != NULL); -#line 624 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->completed; -#line 624 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp0_) { -#line 625 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_error ("BatchImport.vala:625: Attempted to complete already-completed import: " \ -"%s", where); -#line 6798 "BatchImport.c" - } -#line 627 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->completed = TRUE; -#line 629 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_flush_ready_sources (self); -#line 631 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = g_strdup_printf ("Import completed: %s", where); -#line 631 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = _tmp1_; -#line 631 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_log_status (self, _tmp2_); -#line 631 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp2_); -#line 632 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = self->priv->manifest; -#line 632 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _tmp3_->timer; -#line 632 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = g_timer_elapsed (_tmp4_, NULL); -#line 632 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_debug ("BatchImport.vala:632: Import complete after %f", _tmp5_); -#line 635 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = self->priv->reporter; -#line 635 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6__target = self->priv->reporter_target; -#line 635 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp6_ != NULL) { -#line 6826 "BatchImport.c" - BatchImportImportReporter _tmp7_; - void* _tmp7__target; - ImportManifest* _tmp8_; - BatchImportRoll* _tmp9_; -#line 636 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = self->priv->reporter; -#line 636 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7__target = self->priv->reporter_target; -#line 636 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = self->priv->manifest; -#line 636 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = self->priv->import_roll; -#line 636 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ (_tmp8_, _tmp9_, _tmp7__target); -#line 6841 "BatchImport.c" - } -#line 638 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = self->priv->manifest; -#line 638 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = self->priv->import_roll; -#line 638 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_emit (self, batch_import_signals[BATCH_IMPORT_IMPORT_COMPLETE_SIGNAL], 0, _tmp10_, _tmp11_); -#line 6849 "BatchImport.c" -} - - -static void -batch_import_file_import_complete (BatchImport* self) -{ - gint _tmp0_; - gint _tmp1_; - gboolean _tmp4_ = FALSE; - gint _tmp5_; -#line 642 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 644 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->file_imports_completed; -#line 644 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->file_imports_completed = _tmp0_ + 1; -#line 645 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = self->priv->file_imports_to_perform; -#line 645 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp1_ != -1) { -#line 6870 "BatchImport.c" - gint _tmp2_; - gint _tmp3_; -#line 646 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = self->priv->file_imports_completed; -#line 646 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = self->priv->file_imports_to_perform; -#line 646 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (_tmp2_ <= _tmp3_, "file_imports_completed <= file_imports_to_perform"); -#line 6879 "BatchImport.c" - } -#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = self->priv->file_imports_to_perform; -#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp5_ != -1) { -#line 6885 "BatchImport.c" - gint _tmp6_; - gint _tmp7_; -#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = self->priv->file_imports_completed; -#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = self->priv->file_imports_to_perform; -#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _tmp6_ == _tmp7_; -#line 6894 "BatchImport.c" - } else { -#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = FALSE; -#line 6898 "BatchImport.c" - } -#line 650 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp4_) { -#line 651 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_completed (self, "completed preparing files, all outstanding imports completed"); -#line 6904 "BatchImport.c" - } -} - - -static void -_batch_import_on_work_sniffed_out_completion_callback (BackgroundJob* job, - gpointer self) -{ -#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_on_work_sniffed_out ((BatchImport*) self, job); -#line 6915 "BatchImport.c" -} - - -static void -_batch_import_on_sniffer_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self) -{ -#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_on_sniffer_cancelled ((BatchImport*) self, job); -#line 6925 "BatchImport.c" -} - - -static gboolean -_batch_import_on_sniffer_working_gsource_func (gpointer self) -{ - gboolean result; - result = batch_import_on_sniffer_working ((BatchImport*) self); -#line 663 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 6936 "BatchImport.c" -} - - -void -batch_import_schedule (BatchImport* self) -{ - gboolean _tmp0_; - Workers* _tmp1_; - GeeIterable* _tmp2_; - GCancellable* _tmp3_; - GeeHashSet* _tmp4_; - WorkSniffer* _tmp5_; - WorkSniffer* _tmp6_; -#line 654 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 655 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->scheduled; -#line 655 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (_tmp0_ == FALSE, "scheduled == false"); -#line 656 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->scheduled = TRUE; -#line 658 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_emit (self, batch_import_signals[BATCH_IMPORT_STARTING_SIGNAL], 0); -#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = batch_import_feeder_workers; -#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = self->priv->jobs; -#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = self->priv->cancellable; -#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = self->priv->skipset; -#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = work_sniffer_new (self, _tmp2_, _batch_import_on_work_sniffed_out_completion_callback, self, _tmp3_, _batch_import_on_sniffer_cancelled_cancellation_callback, self, _tmp4_); -#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = _tmp5_; -#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala" - workers_enqueue (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 661 "/home/jens/Source/shotwell/src/BatchImport.vala" - _background_job_unref0 (_tmp6_); -#line 663 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->throbber_id = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) BATCH_IMPORT_WORK_SNIFFER_THROBBER_MSEC, _batch_import_on_sniffer_working_gsource_func, g_object_ref (self), g_object_unref); -#line 6978 "BatchImport.c" -} - - -static gboolean -batch_import_on_sniffer_working (BatchImport* self) -{ - gboolean result = FALSE; -#line 670 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE); -#line 671 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_progress (self, (guint64) 0); -#line 673 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = TRUE; -#line 673 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 6994 "BatchImport.c" -} - - -static gpointer -_background_job_ref0 (gpointer self) -{ -#line 679 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self ? background_job_ref (self) : NULL; -#line 7003 "BatchImport.c" -} - - -static void -_batch_import_on_file_prepared_notification_callback (BackgroundJob* job, - NotificationObject* user, - gpointer self) -{ -#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_on_file_prepared ((BatchImport*) self, job, user); -#line 7014 "BatchImport.c" -} - - -static void -_batch_import_on_files_prepared_completion_callback (BackgroundJob* job, - gpointer self) -{ -#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_on_files_prepared ((BatchImport*) self, job); -#line 7024 "BatchImport.c" -} - - -static void -_batch_import_on_file_prepare_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self) -{ -#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_on_file_prepare_cancelled ((BatchImport*) self, job); -#line 7034 "BatchImport.c" -} - - -static void -batch_import_on_work_sniffed_out (BatchImport* self, - BackgroundJob* j) -{ - gboolean _tmp0_; - WorkSniffer* sniffer = NULL; - WorkSniffer* _tmp1_; - gboolean _tmp2_ = FALSE; - WorkSniffer* _tmp3_; - WorkSniffer* _tmp8_; - guint64 _tmp9_; - PrepareFilesJob* prepare_files_job = NULL; - WorkSniffer* _tmp10_; - GeeList* _tmp11_; - GCancellable* _tmp12_; - PrepareFilesJob* _tmp13_; - Workers* _tmp14_; - PrepareFilesJob* _tmp15_; - guint _tmp16_; -#line 676 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 676 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 677 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->completed; -#line 677 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (!_tmp0_, "!completed"); -#line 679 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_WORK_SNIFFER, WorkSniffer)); -#line 679 "/home/jens/Source/shotwell/src/BatchImport.vala" - sniffer = _tmp1_; -#line 681 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_log_status (self, "on_work_sniffed_out"); -#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = sniffer; -#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!batch_import_report_failures (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob))) { -#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = TRUE; -#line 7077 "BatchImport.c" - } else { - WorkSniffer* _tmp4_; - GeeList* _tmp5_; - gint _tmp6_; - gint _tmp7_; -#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = sniffer; -#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = _tmp4_->files_to_prepare; -#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = _tmp6_; -#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = _tmp7_ == 0; -#line 7093 "BatchImport.c" - } -#line 683 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp2_) { -#line 684 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_completed (self, "work sniffed out: nothing to do"); -#line 686 "/home/jens/Source/shotwell/src/BatchImport.vala" - _background_job_unref0 (sniffer); -#line 686 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 7103 "BatchImport.c" - } -#line 689 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = sniffer; -#line 689 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = _tmp8_->total_bytes; -#line 689 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->total_bytes = _tmp9_; -#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = sniffer; -#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = _tmp10_->files_to_prepare; -#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = self->priv->cancellable; -#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = prepare_files_job_new (self, _tmp11_, _batch_import_on_file_prepared_notification_callback, self, _batch_import_on_files_prepared_completion_callback, self, _tmp12_, _batch_import_on_file_prepare_cancelled_cancellation_callback, self); -#line 696 "/home/jens/Source/shotwell/src/BatchImport.vala" - prepare_files_job = _tmp13_; -#line 699 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = batch_import_feeder_workers; -#line 699 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = prepare_files_job; -#line 699 "/home/jens/Source/shotwell/src/BatchImport.vala" - workers_enqueue (_tmp14_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 701 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = self->priv->throbber_id; -#line 701 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp16_ > ((guint) 0)) { -#line 7131 "BatchImport.c" - guint _tmp17_; -#line 702 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = self->priv->throbber_id; -#line 702 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_source_remove (_tmp17_); -#line 703 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->throbber_id = (guint) 0; -#line 7139 "BatchImport.c" - } -#line 676 "/home/jens/Source/shotwell/src/BatchImport.vala" - _background_job_unref0 (prepare_files_job); -#line 676 "/home/jens/Source/shotwell/src/BatchImport.vala" - _background_job_unref0 (sniffer); -#line 7145 "BatchImport.c" -} - - -static void -batch_import_on_sniffer_cancelled (BatchImport* self, - BackgroundJob* j) -{ - gboolean _tmp0_; - WorkSniffer* sniffer = NULL; - WorkSniffer* _tmp1_; - WorkSniffer* _tmp2_; - guint _tmp3_; -#line 707 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 707 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 708 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->completed; -#line 708 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (!_tmp0_, "!completed"); -#line 710 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_WORK_SNIFFER, WorkSniffer)); -#line 710 "/home/jens/Source/shotwell/src/BatchImport.vala" - sniffer = _tmp1_; -#line 712 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_log_status (self, "on_sniffer_cancelled"); -#line 714 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = sniffer; -#line 714 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_failures (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob)); -#line 715 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_completed (self, "work sniffer cancelled"); -#line 717 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = self->priv->throbber_id; -#line 717 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp3_ > ((guint) 0)) { -#line 7182 "BatchImport.c" - guint _tmp4_; -#line 718 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = self->priv->throbber_id; -#line 718 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_source_remove (_tmp4_); -#line 719 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->throbber_id = (guint) 0; -#line 7190 "BatchImport.c" - } -#line 707 "/home/jens/Source/shotwell/src/BatchImport.vala" - _background_job_unref0 (sniffer); -#line 7194 "BatchImport.c" -} - - -static void -_batch_import_on_thumbnail_writer_completed_completion_callback (BackgroundJob* job, - gpointer self) -{ -#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_on_thumbnail_writer_completed ((BatchImport*) self, job); -#line 7204 "BatchImport.c" -} - - -static void -_batch_import_on_thumbnail_writer_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self) -{ -#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_on_thumbnail_writer_cancelled ((BatchImport*) self, job); -#line 7214 "BatchImport.c" -} - - -static void -_batch_import_on_import_files_completed_completion_callback (BackgroundJob* job, - gpointer self) -{ -#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_on_import_files_completed ((BatchImport*) self, job); -#line 7224 "BatchImport.c" -} - - -static void -_batch_import_on_import_files_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self) -{ -#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_on_import_files_cancelled ((BatchImport*) self, job); -#line 7234 "BatchImport.c" -} - - -static void -batch_import_flush_import_jobs (BatchImport* self) -{ -#line 727 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala" - while (TRUE) { -#line 7245 "BatchImport.c" - gboolean _tmp0_ = FALSE; - GeeList* _tmp1_; - gint _tmp2_; - gint _tmp3_; - Workers* _tmp6_; - GeeList* _tmp7_; - gpointer _tmp8_; - CompletedImportObject* _tmp9_; - GCancellable* _tmp10_; - ThumbnailWriterJob* _tmp11_; - ThumbnailWriterJob* _tmp12_; -#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = self->priv->ready_thumbnails; -#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = _tmp2_; -#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp3_ > 0) { -#line 7265 "BatchImport.c" - Workers* _tmp4_; - guint _tmp5_; -#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = batch_import_import_workers; -#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = self->priv->max_outstanding_import_jobs; -#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = ((guint) workers_get_pending_job_count (_tmp4_)) < _tmp5_; -#line 7274 "BatchImport.c" - } else { -#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = FALSE; -#line 7278 "BatchImport.c" - } -#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!_tmp0_) { -#line 732 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 7284 "BatchImport.c" - } -#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = batch_import_import_workers; -#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = self->priv->ready_thumbnails; -#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = gee_list_remove_at (_tmp7_, 0); -#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = (CompletedImportObject*) _tmp8_; -#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = self->priv->cancellable; -#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = thumbnail_writer_job_new (self, _tmp9_, _batch_import_on_thumbnail_writer_completed_completion_callback, self, _tmp10_, _batch_import_on_thumbnail_writer_cancelled_cancellation_callback, self); -#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = _tmp11_; -#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala" - workers_enqueue (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala" - _background_job_unref0 (_tmp12_); -#line 733 "/home/jens/Source/shotwell/src/BatchImport.vala" - _completed_import_object_unref0 (_tmp9_); -#line 7306 "BatchImport.c" - } -#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala" - while (TRUE) { -#line 7310 "BatchImport.c" - gboolean _tmp13_ = FALSE; - GeeList* _tmp14_; - gint _tmp15_; - gint _tmp16_; - Workers* _tmp19_; - GeeList* _tmp20_; - gpointer _tmp21_; - PreparedFile* _tmp22_; - BatchImportRoll* _tmp23_; - ImportID _tmp24_; - GCancellable* _tmp25_; - PreparedFileImportJob* _tmp26_; - PreparedFileImportJob* _tmp27_; -#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = self->priv->ready_files; -#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = _tmp15_; -#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp16_ > 0) { -#line 7332 "BatchImport.c" - Workers* _tmp17_; - guint _tmp18_; -#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = batch_import_import_workers; -#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = self->priv->max_outstanding_import_jobs; -#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = ((guint) workers_get_pending_job_count (_tmp17_)) < _tmp18_; -#line 7341 "BatchImport.c" - } else { -#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = FALSE; -#line 7345 "BatchImport.c" - } -#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!_tmp13_) { -#line 737 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 7351 "BatchImport.c" - } -#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp19_ = batch_import_import_workers; -#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp20_ = self->priv->ready_files; -#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp21_ = gee_list_remove_at (_tmp20_, 0); -#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp22_ = (PreparedFile*) _tmp21_; -#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp23_ = self->priv->import_roll; -#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp24_ = _tmp23_->import_id; -#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp25_ = self->priv->cancellable; -#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp26_ = prepared_file_import_job_new (self, _tmp22_, &_tmp24_, _batch_import_on_import_files_completed_completion_callback, self, _tmp25_, _batch_import_on_import_files_cancelled_cancellation_callback, self); -#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp27_ = _tmp26_; -#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala" - workers_enqueue (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala" - _background_job_unref0 (_tmp27_); -#line 738 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (_tmp22_); -#line 7377 "BatchImport.c" - } -} - - -static GFile* -batch_import_get_in_current_import (BatchImport* self, - PreparedFile* prepared_file) -{ - GFile* result = NULL; - gboolean _tmp0_ = FALSE; - const gchar* _tmp1_; - const gchar* _tmp7_; -#line 746 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT (self), NULL); -#line 746 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_PREPARED_FILE (prepared_file), NULL); -#line 748 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = prepared_file->full_md5; -#line 748 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp1_ != NULL) { -#line 7398 "BatchImport.c" - GeeHashMap* _tmp2_; - const gchar* _tmp3_; -#line 749 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = self->priv->imported_full_md5_table; -#line 749 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = prepared_file->full_md5; -#line 749 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_); -#line 7407 "BatchImport.c" - } else { -#line 748 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = FALSE; -#line 7411 "BatchImport.c" - } -#line 748 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp0_) { -#line 7415 "BatchImport.c" - GeeHashMap* _tmp4_; - const gchar* _tmp5_; - gpointer _tmp6_; -#line 751 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = self->priv->imported_full_md5_table; -#line 751 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = prepared_file->full_md5; -#line 751 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_); -#line 751 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = (GFile*) _tmp6_; -#line 751 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 7429 "BatchImport.c" - } -#line 755 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = prepared_file->full_md5; -#line 755 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp7_ != NULL) { -#line 7435 "BatchImport.c" - GeeHashMap* _tmp8_; - const gchar* _tmp9_; - GFile* _tmp10_; -#line 756 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = self->priv->imported_full_md5_table; -#line 756 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = prepared_file->full_md5; -#line 756 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = prepared_file->file; -#line 756 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, _tmp10_); -#line 7447 "BatchImport.c" - } -#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = NULL; -#line 758 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 7453 "BatchImport.c" -} - - -static gpointer -_notification_object_ref0 (gpointer self) -{ -#line 765 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self ? notification_object_ref (self) : NULL; -#line 7462 "BatchImport.c" -} - - -static void -batch_import_on_file_prepared (BatchImport* self, - BackgroundJob* j, - NotificationObject* user) -{ - gboolean _tmp0_; - PreparedFileCluster* cluster = NULL; - PreparedFileCluster* _tmp1_; - GeeArrayList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GeeArrayList* _tmp7_; -#line 762 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 762 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 762 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail ((user == NULL) || IS_NOTIFICATION_OBJECT (user)); -#line 763 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->completed; -#line 763 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (!_tmp0_, "!completed"); -#line 765 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _notification_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (user, TYPE_PREPARED_FILE_CLUSTER, PreparedFileCluster)); -#line 765 "/home/jens/Source/shotwell/src/BatchImport.vala" - cluster = _tmp1_; -#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = cluster->list; -#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _tmp3_; -#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = g_strdup_printf ("on_file_prepared (%d files)", _tmp4_); -#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = _tmp5_; -#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_log_status (self, _tmp6_); -#line 767 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp6_); -#line 769 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = cluster->list; -#line 769 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_process_prepared_files (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_LIST, GeeList), NULL, NULL); -#line 762 "/home/jens/Source/shotwell/src/BatchImport.vala" - _notification_object_unref0 (cluster); -#line 7514 "BatchImport.c" -} - - -static void -batch_import_process_prepared_files_data_free (gpointer _data) -{ - BatchImportProcessPreparedFilesData* _data_; - _data_ = _data; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->list); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->self); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_slice_free (BatchImportProcessPreparedFilesData, _data_); -#line 7529 "BatchImport.c" -} - - -static void -batch_import_process_prepared_files_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data) -{ - BatchImportProcessPreparedFilesData* _task_data_; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - _task_data_ = g_task_get_task_data (G_TASK (res)); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_task_data_->_callback_ != NULL) { -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - _task_data_->_callback_ (source_object, res, user_data); -#line 7545 "BatchImport.c" - } -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - _task_data_->_task_complete_ = TRUE; -#line 7549 "BatchImport.c" -} - - -static void -batch_import_process_prepared_files (BatchImport* self, - GeeList* list, - GAsyncReadyCallback _callback_, - gpointer _user_data_) -{ - BatchImportProcessPreparedFilesData* _data_; - BatchImport* _tmp0_; - GeeList* _tmp1_; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_ = g_slice_new0 (BatchImportProcessPreparedFilesData); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_callback_ = _callback_; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_async_result = g_task_new (G_OBJECT (self), NULL, batch_import_process_prepared_files_async_ready_wrapper, _user_data_); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_callback_ == NULL) { -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_task_complete_ = TRUE; -#line 7572 "BatchImport.c" - } -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_task_set_task_data (_data_->_async_result, _data_, batch_import_process_prepared_files_data_free); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _g_object_ref0 (self); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->self = _tmp0_; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _g_object_ref0 (list); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->list); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->list = _tmp1_; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_process_prepared_files_co (_data_); -#line 7588 "BatchImport.c" -} - - -static void -batch_import_process_prepared_files_finish (BatchImport* self, - GAsyncResult* _res_) -{ - BatchImportProcessPreparedFilesData* _data_; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_ = g_task_propagate_pointer (G_TASK (_res_), NULL); -#line 7599 "BatchImport.c" -} - - -static gboolean -_batch_import_process_prepared_files_co_gsource_func (gpointer self) -{ - gboolean result; - result = batch_import_process_prepared_files_co (self); -#line 776 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 7610 "BatchImport.c" -} - - -static gboolean -batch_import_process_prepared_files_co (BatchImportProcessPreparedFilesData* _data_) -{ -#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala" - switch (_data_->_state_) { -#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala" - case 0: -#line 7621 "BatchImport.c" - goto _state_0; -#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala" - case 1: -#line 7625 "BatchImport.c" - goto _state_1; - default: -#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_assert_not_reached (); -#line 7630 "BatchImport.c" - } - _state_0: - { -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp0_ = _g_object_ref0 (_data_->list); -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_prepared_file_list = _data_->_tmp0_; -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp1_ = _data_->_prepared_file_list; -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp3_ = _data_->_tmp2_; -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_prepared_file_size = _data_->_tmp3_; -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_prepared_file_index = -1; -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - while (TRUE) { -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp4_ = _data_->_prepared_file_index; -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_prepared_file_index = _data_->_tmp4_ + 1; -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp5_ = _data_->_prepared_file_index; -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp6_ = _data_->_prepared_file_size; -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!(_data_->_tmp5_ < _data_->_tmp6_)) { -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 7662 "BatchImport.c" - } -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp7_ = _data_->_prepared_file_list; -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp8_ = _data_->_prepared_file_index; -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp9_ = gee_list_get (_data_->_tmp7_, _data_->_tmp8_); -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->prepared_file = (PreparedFile*) _data_->_tmp9_; -#line 776 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _batch_import_process_prepared_files_co_gsource_func, _data_, NULL); -#line 777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_state_ = 1; -#line 777 "/home/jens/Source/shotwell/src/BatchImport.vala" - return FALSE; -#line 7678 "BatchImport.c" - _state_1: - ; -#line 779 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->import_result = NULL; -#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp10_ = library_photo_global; -#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp11_ = _data_->prepared_file; -#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp12_ = _data_->_tmp11_->file; -#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp13_ = 0; -#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp14_ = library_photo_source_collection_get_state_by_file (_data_->_tmp10_, _data_->_tmp12_, &_data_->_tmp13_); -#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->photo_state = _data_->_tmp13_; -#line 784 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->photo = _data_->_tmp14_; -#line 786 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp15_ = _data_->photo; -#line 786 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp15_ != NULL) { -#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp16_ = _data_->photo_state; -#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala" - switch (_data_->_tmp16_) { -#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE: -#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE: -#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE: -#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER: -#line 7713 "BatchImport.c" - { -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp17_ = _data_->prepared_file; -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp18_ = _data_->_tmp17_->job; -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp19_ = _data_->prepared_file; -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp20_ = _data_->_tmp19_->file; -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp21_ = _data_->prepared_file; -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp22_ = _data_->_tmp21_->file; -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp23_ = g_file_get_path (_data_->_tmp22_); -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp24_ = _data_->_tmp23_; -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp25_ = _data_->prepared_file; -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp26_ = _data_->_tmp25_->file; -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp27_ = g_file_get_path (_data_->_tmp26_); -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp28_ = _data_->_tmp27_; -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp29_ = _data_->photo; -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp30_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp29_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp31_ = _data_->_tmp30_; -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp32_ = duplicated_file_create_from_file (_data_->_tmp31_); -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp33_ = _data_->_tmp32_; -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp34_ = batch_import_result_new (_data_->_tmp18_, _data_->_tmp20_, _data_->_tmp24_, _data_->_tmp28_, _data_->_tmp33_, IMPORT_RESULT_PHOTO_EXISTS); -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (_data_->import_result); -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->import_result = _data_->_tmp34_; -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->_tmp33_); -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->_tmp31_); -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_data_->_tmp28_); -#line 792 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_data_->_tmp24_); -#line 797 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp35_ = _data_->photo_state; -#line 797 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp35_ == LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE) { -#line 798 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp36_ = _data_->photo; -#line 798 "/home/jens/Source/shotwell/src/BatchImport.vala" - media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp36_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 7771 "BatchImport.c" - } -#line 799 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 7775 "BatchImport.c" - } -#line 787 "/home/jens/Source/shotwell/src/BatchImport.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH: -#line 7779 "BatchImport.c" - { -#line 803 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 7783 "BatchImport.c" - } - default: - { -#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp37_ = _data_->photo_state; -#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp38_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _data_->_tmp37_); -#line 806 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_error ("BatchImport.vala:806: Unknown LibraryPhotoSourceCollection state: %s", (_data_->_tmp38_ != NULL) ? _data_->_tmp38_->value_name : NULL); -#line 7793 "BatchImport.c" - } - } - } -#line 810 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp39_ = _data_->import_result; -#line 810 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp39_ != NULL) { -#line 811 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp40_ = _data_->import_result; -#line 811 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_failure (_data_->self, _data_->_tmp40_); -#line 812 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_file_import_complete (_data_->self); -#line 814 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->photo); -#line 814 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (_data_->import_result); -#line 814 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (_data_->prepared_file); -#line 814 "/home/jens/Source/shotwell/src/BatchImport.vala" - continue; -#line 7815 "BatchImport.c" - } -#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp41_ = video_global; -#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp42_ = _data_->prepared_file; -#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp43_ = _data_->_tmp42_->file; -#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp44_ = 0; -#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp45_ = video_source_collection_get_state_by_file (_data_->_tmp41_, _data_->_tmp43_, &_data_->_tmp44_); -#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->video_state = _data_->_tmp44_; -#line 818 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->video = _data_->_tmp45_; -#line 819 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp46_ = _data_->video; -#line 819 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp46_ != NULL) { -#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp47_ = _data_->video_state; -#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala" - switch (_data_->_tmp47_) { -#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala" - case VIDEO_SOURCE_COLLECTION_STATE_ONLINE: -#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala" - case VIDEO_SOURCE_COLLECTION_STATE_OFFLINE: -#line 7843 "BatchImport.c" - { -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp48_ = _data_->prepared_file; -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp49_ = _data_->_tmp48_->job; -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp50_ = _data_->prepared_file; -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp51_ = _data_->_tmp50_->file; -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp52_ = _data_->prepared_file; -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp53_ = _data_->_tmp52_->file; -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp54_ = g_file_get_path (_data_->_tmp53_); -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp55_ = _data_->_tmp54_; -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp56_ = _data_->prepared_file; -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp57_ = _data_->_tmp56_->file; -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp58_ = g_file_get_path (_data_->_tmp57_); -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp59_ = _data_->_tmp58_; -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp60_ = _data_->video; -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp61_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp60_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp62_ = _data_->_tmp61_; -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp63_ = duplicated_file_create_from_file (_data_->_tmp62_); -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp64_ = _data_->_tmp63_; -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp65_ = batch_import_result_new (_data_->_tmp49_, _data_->_tmp51_, _data_->_tmp55_, _data_->_tmp59_, _data_->_tmp64_, IMPORT_RESULT_PHOTO_EXISTS); -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (_data_->import_result); -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->import_result = _data_->_tmp65_; -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->_tmp64_); -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->_tmp62_); -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_data_->_tmp59_); -#line 823 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_data_->_tmp55_); -#line 828 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp66_ = _data_->video_state; -#line 828 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp66_ == VIDEO_SOURCE_COLLECTION_STATE_OFFLINE) { -#line 829 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp67_ = _data_->video; -#line 829 "/home/jens/Source/shotwell/src/BatchImport.vala" - media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp67_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 7901 "BatchImport.c" - } -#line 830 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 7905 "BatchImport.c" - } -#line 820 "/home/jens/Source/shotwell/src/BatchImport.vala" - case VIDEO_SOURCE_COLLECTION_STATE_TRASH: -#line 7909 "BatchImport.c" - { -#line 834 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 7913 "BatchImport.c" - } - default: - { -#line 837 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp68_ = _data_->video_state; -#line 837 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp69_ = g_enum_get_value (g_type_class_ref (VIDEO_SOURCE_COLLECTION_TYPE_STATE), _data_->_tmp68_); -#line 837 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_error ("BatchImport.vala:837: Unknown VideoSourceCollection state: %s", (_data_->_tmp69_ != NULL) ? _data_->_tmp69_->value_name : NULL); -#line 7923 "BatchImport.c" - } - } - } -#line 841 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp70_ = _data_->import_result; -#line 841 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp70_ != NULL) { -#line 842 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp71_ = _data_->import_result; -#line 842 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_failure (_data_->self, _data_->_tmp71_); -#line 843 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_file_import_complete (_data_->self); -#line 845 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->video); -#line 845 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->photo); -#line 845 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (_data_->import_result); -#line 845 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (_data_->prepared_file); -#line 845 "/home/jens/Source/shotwell/src/BatchImport.vala" - continue; -#line 7947 "BatchImport.c" - } -#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp73_ = _data_->prepared_file; -#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp74_ = _data_->_tmp73_->is_video; -#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp74_) { -#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp75_ = _data_->prepared_file; -#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp76_ = _data_->_tmp75_->file; -#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp77_ = _data_->prepared_file; -#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp78_ = _data_->_tmp77_->full_md5; -#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp72_ = video_is_duplicate (_data_->_tmp76_, _data_->_tmp78_); -#line 7965 "BatchImport.c" - } else { -#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp72_ = FALSE; -#line 7969 "BatchImport.c" - } -#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp72_) { -#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp79_ = video_table_get_instance (); -#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp80_ = _data_->_tmp79_; -#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp81_ = _data_->prepared_file; -#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp82_ = _data_->_tmp81_->file; -#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp83_ = _data_->prepared_file; -#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp84_ = _data_->_tmp83_->full_md5; -#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp86_ = video_table_get_duplicate_ids (_data_->_tmp80_, _data_->_tmp82_, _data_->_tmp84_, &_data_->_tmp85_); -#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp87_ = _data_->_tmp86_; -#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp87__length1 = _data_->_tmp85_; -#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala" - _database_table_unref0 (_data_->_tmp80_); -#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->duplicate_ids = _data_->_tmp87_; -#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->duplicate_ids_length1 = _data_->_tmp87__length1; -#line 851 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_duplicate_ids_size_ = _data_->duplicate_ids_length1; -#line 854 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp88_ = _data_->duplicate_ids; -#line 854 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp88__length1 = _data_->duplicate_ids_length1; -#line 854 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (_data_->_tmp88__length1 > 0, "duplicate_ids.length > 0"); -#line 856 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp89_ = _data_->duplicate_ids; -#line 856 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp89__length1 = _data_->duplicate_ids_length1; -#line 856 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp90_ = _data_->_tmp89_[0]; -#line 856 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp91_ = duplicated_file_create_from_video_id (&_data_->_tmp90_); -#line 856 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->duplicated_file = _data_->_tmp91_; -#line 859 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->result_code = IMPORT_RESULT_PHOTO_EXISTS; -#line 860 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp92_ = _data_->self->priv->mark_duplicates_online; -#line 860 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp92_) { -#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp93_ = video_global; -#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp94_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp93_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp95_ = _data_->_tmp94_; -#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp96_ = _data_->prepared_file; -#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp97_ = _data_->_tmp96_->file; -#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp98_ = media_source_holding_tank_fetch_by_master_file (_data_->_tmp95_, _data_->_tmp97_); -#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp99_ = G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp98_, TYPE_VIDEO, Video); -#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala" - _source_holding_tank_unref0 (_data_->_tmp95_); -#line 861 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->dupe_video = _data_->_tmp99_; -#line 863 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp100_ = _data_->dupe_video; -#line 863 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp100_ == NULL) { -#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp101_ = video_global; -#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp102_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp101_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp103_ = _data_->_tmp102_; -#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp104_ = _data_->prepared_file; -#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp105_ = _data_->_tmp104_->full_md5; -#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp106_ = media_source_holding_tank_fetch_by_md5 (_data_->_tmp103_, _data_->_tmp105_); -#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->dupe_video); -#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->dupe_video = G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp106_, TYPE_VIDEO, Video); -#line 864 "/home/jens/Source/shotwell/src/BatchImport.vala" - _source_holding_tank_unref0 (_data_->_tmp103_); -#line 8061 "BatchImport.c" - } -#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp107_ = _data_->dupe_video; -#line 866 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp107_ != NULL) { -#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp108_ = _data_->prepared_file; -#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp109_ = _data_->_tmp108_->file; -#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp110_ = g_file_get_path (_data_->_tmp109_); -#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp111_ = _data_->_tmp110_; -#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_debug ("BatchImport.vala:867: duplicate video found offline, marking as online" \ -": %s", _data_->_tmp111_); -#line 867 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_data_->_tmp111_); -#line 870 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp112_ = _data_->dupe_video; -#line 870 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp113_ = _data_->prepared_file; -#line 870 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp114_ = _data_->_tmp113_->file; -#line 870 "/home/jens/Source/shotwell/src/BatchImport.vala" - monitorable_set_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp112_, TYPE_MONITORABLE, Monitorable), _data_->_tmp114_); -#line 871 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp115_ = _data_->dupe_video; -#line 871 "/home/jens/Source/shotwell/src/BatchImport.vala" - media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp115_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 873 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->duplicated_file); -#line 873 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->duplicated_file = NULL; -#line 875 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp116_ = _data_->self->priv->manifest; -#line 875 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp117_ = _data_->_tmp116_->imported; -#line 875 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp118_ = _data_->dupe_video; -#line 875 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp117_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp118_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 876 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp119_ = _data_->dupe_video; -#line 876 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_progress (_data_->self, media_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp119_, TYPE_MEDIA_SOURCE, MediaSource))); -#line 877 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_file_import_complete (_data_->self); -#line 879 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->result_code = IMPORT_RESULT_SUCCESS; -#line 8111 "BatchImport.c" - } -#line 860 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->dupe_video); -#line 8115 "BatchImport.c" - } -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp120_ = _data_->prepared_file; -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp121_ = _data_->_tmp120_->job; -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp122_ = _data_->prepared_file; -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp123_ = _data_->_tmp122_->file; -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp124_ = _data_->prepared_file; -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp125_ = _data_->_tmp124_->file; -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp126_ = g_file_get_path (_data_->_tmp125_); -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp127_ = _data_->_tmp126_; -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp128_ = _data_->prepared_file; -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp129_ = _data_->_tmp128_->file; -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp130_ = g_file_get_path (_data_->_tmp129_); -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp131_ = _data_->_tmp130_; -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp132_ = _data_->duplicated_file; -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp133_ = _data_->result_code; -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp134_ = batch_import_result_new (_data_->_tmp121_, _data_->_tmp123_, _data_->_tmp127_, _data_->_tmp131_, _data_->_tmp132_, _data_->_tmp133_); -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (_data_->import_result); -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->import_result = _data_->_tmp134_; -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_data_->_tmp131_); -#line 883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_data_->_tmp127_); -#line 887 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp135_ = _data_->result_code; -#line 887 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp135_ == IMPORT_RESULT_SUCCESS) { -#line 888 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp136_ = _data_->self->priv->manifest; -#line 888 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp137_ = _data_->import_result; -#line 888 "/home/jens/Source/shotwell/src/BatchImport.vala" - import_manifest_add_result (_data_->_tmp136_, _data_->_tmp137_); -#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->duplicated_file); -#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->duplicate_ids = (g_free (_data_->duplicate_ids), NULL); -#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->video); -#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->photo); -#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (_data_->import_result); -#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (_data_->prepared_file); -#line 890 "/home/jens/Source/shotwell/src/BatchImport.vala" - continue; -#line 8179 "BatchImport.c" - } -#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->duplicated_file); -#line 850 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->duplicate_ids = (g_free (_data_->duplicate_ids), NULL); -#line 8185 "BatchImport.c" - } -#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp138_ = _data_->prepared_file; -#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp139_ = batch_import_get_in_current_import (_data_->self, _data_->_tmp138_); -#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp140_ = _data_->_tmp139_; -#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp141_ = _data_->_tmp140_ != NULL; -#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->_tmp140_); -#line 894 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp141_) { -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp142_ = _data_->prepared_file; -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp143_ = _data_->_tmp142_->job; -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp144_ = _data_->prepared_file; -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp145_ = _data_->_tmp144_->file; -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp146_ = _data_->prepared_file; -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp147_ = _data_->_tmp146_->file; -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp148_ = g_file_get_path (_data_->_tmp147_); -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp149_ = _data_->_tmp148_; -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp150_ = _data_->prepared_file; -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp151_ = _data_->_tmp150_->file; -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp152_ = g_file_get_path (_data_->_tmp151_); -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp153_ = _data_->_tmp152_; -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp154_ = _data_->prepared_file; -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp155_ = batch_import_get_in_current_import (_data_->self, _data_->_tmp154_); -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp156_ = _data_->_tmp155_; -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp157_ = duplicated_file_create_from_file (_data_->_tmp156_); -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp158_ = _data_->_tmp157_; -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp159_ = batch_import_result_new (_data_->_tmp143_, _data_->_tmp145_, _data_->_tmp149_, _data_->_tmp153_, _data_->_tmp158_, IMPORT_RESULT_PHOTO_EXISTS); -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (_data_->import_result); -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->import_result = _data_->_tmp159_; -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->_tmp158_); -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->_tmp156_); -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_data_->_tmp153_); -#line 897 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_data_->_tmp149_); -#line 8247 "BatchImport.c" - } else { -#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp160_ = _data_->prepared_file; -#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp161_ = _data_->_tmp160_->file; -#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp162_ = _data_->prepared_file; -#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp163_ = _data_->_tmp162_->full_md5; -#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp164_ = _data_->prepared_file; -#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp165_ = _data_->_tmp164_->file_format; -#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (photo_is_duplicate (_data_->_tmp161_, NULL, _data_->_tmp163_, _data_->_tmp165_)) { -#line 903 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp166_ = _data_->self->priv->untrash_duplicates; -#line 903 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp166_) { -#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp167_ = library_photo_global; -#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp168_ = _data_->prepared_file; -#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp169_ = _data_->_tmp168_->file; -#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp170_ = library_photo_source_collection_get_trashed_by_file (_data_->_tmp167_, _data_->_tmp169_); -#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->photo); -#line 906 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->photo = _data_->_tmp170_; -#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp172_ = _data_->photo; -#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp172_ == NULL) { -#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp173_ = _data_->prepared_file; -#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp174_ = _data_->_tmp173_->full_md5; -#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp171_ = _data_->_tmp174_ != NULL; -#line 8289 "BatchImport.c" - } else { -#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp171_ = FALSE; -#line 8293 "BatchImport.c" - } -#line 908 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp171_) { -#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp175_ = library_photo_global; -#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp176_ = _data_->prepared_file; -#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp177_ = _data_->_tmp176_->full_md5; -#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp178_ = library_photo_source_collection_get_trashed_by_md5 (_data_->_tmp175_, _data_->_tmp177_); -#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->photo); -#line 909 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->photo = _data_->_tmp178_; -#line 8309 "BatchImport.c" - } -#line 911 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp179_ = _data_->photo; -#line 911 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp179_ != NULL) { -#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp180_ = _data_->prepared_file; -#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp181_ = _data_->_tmp180_->file; -#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp182_ = g_file_get_path (_data_->_tmp181_); -#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp183_ = _data_->_tmp182_; -#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_debug ("BatchImport.vala:912: duplicate linked photo found in trash, untrashin" \ -"g and removing transforms for %s", _data_->_tmp183_); -#line 912 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_data_->_tmp183_); -#line 915 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp184_ = _data_->photo; -#line 915 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp185_ = _data_->prepared_file; -#line 915 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp186_ = _data_->_tmp185_->file; -#line 915 "/home/jens/Source/shotwell/src/BatchImport.vala" - monitorable_set_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp184_, TYPE_MONITORABLE, Monitorable), _data_->_tmp186_); -#line 916 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp187_ = _data_->photo; -#line 916 "/home/jens/Source/shotwell/src/BatchImport.vala" - media_source_untrash (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp187_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 917 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp188_ = _data_->photo; -#line 917 "/home/jens/Source/shotwell/src/BatchImport.vala" - photo_remove_all_transformations (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp188_, TYPE_PHOTO, Photo)); -#line 8343 "BatchImport.c" - } - } -#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp190_ = _data_->photo; -#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp190_ == NULL) { -#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp191_ = _data_->self->priv->mark_duplicates_online; -#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp189_ = _data_->_tmp191_; -#line 8354 "BatchImport.c" - } else { -#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp189_ = FALSE; -#line 8358 "BatchImport.c" - } -#line 921 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp189_) { -#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp192_ = library_photo_global; -#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp193_ = _data_->prepared_file; -#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp194_ = _data_->_tmp193_->file; -#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp195_ = library_photo_source_collection_get_offline_by_file (_data_->_tmp192_, _data_->_tmp194_); -#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->photo); -#line 923 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->photo = _data_->_tmp195_; -#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp197_ = _data_->photo; -#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp197_ == NULL) { -#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp198_ = _data_->prepared_file; -#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp199_ = _data_->_tmp198_->full_md5; -#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp196_ = _data_->_tmp199_ != NULL; -#line 8384 "BatchImport.c" - } else { -#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp196_ = FALSE; -#line 8388 "BatchImport.c" - } -#line 925 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp196_) { -#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp200_ = library_photo_global; -#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp201_ = _data_->prepared_file; -#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp202_ = _data_->_tmp201_->full_md5; -#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp203_ = library_photo_source_collection_get_offline_by_md5 (_data_->_tmp200_, _data_->_tmp202_); -#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->photo); -#line 926 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->photo = _data_->_tmp203_; -#line 8404 "BatchImport.c" - } -#line 928 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp204_ = _data_->photo; -#line 928 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp204_ != NULL) { -#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp205_ = _data_->prepared_file; -#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp206_ = _data_->_tmp205_->file; -#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp207_ = g_file_get_path (_data_->_tmp206_); -#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp208_ = _data_->_tmp207_; -#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_debug ("BatchImport.vala:929: duplicate photo found marked offline, marking on" \ -"line: %s", _data_->_tmp208_); -#line 929 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_data_->_tmp208_); -#line 932 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp209_ = _data_->photo; -#line 932 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp210_ = _data_->prepared_file; -#line 932 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp211_ = _data_->_tmp210_->file; -#line 932 "/home/jens/Source/shotwell/src/BatchImport.vala" - monitorable_set_master_file (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp209_, TYPE_MONITORABLE, Monitorable), _data_->_tmp211_); -#line 933 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp212_ = _data_->photo; -#line 933 "/home/jens/Source/shotwell/src/BatchImport.vala" - media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp212_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 8434 "BatchImport.c" - } - } -#line 937 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp213_ = _data_->photo; -#line 937 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp213_ != NULL) { -#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp214_ = _data_->prepared_file; -#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp215_ = _data_->_tmp214_->job; -#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp216_ = _data_->prepared_file; -#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp217_ = _data_->_tmp216_->file; -#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp218_ = _data_->prepared_file; -#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp219_ = _data_->_tmp218_->file; -#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp220_ = g_file_get_path (_data_->_tmp219_); -#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp221_ = _data_->_tmp220_; -#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp222_ = _data_->prepared_file; -#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp223_ = _data_->_tmp222_->file; -#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp224_ = g_file_get_path (_data_->_tmp223_); -#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp225_ = _data_->_tmp224_; -#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp226_ = batch_import_result_new (_data_->_tmp215_, _data_->_tmp217_, _data_->_tmp221_, _data_->_tmp225_, NULL, IMPORT_RESULT_SUCCESS); -#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (_data_->import_result); -#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->import_result = _data_->_tmp226_; -#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_data_->_tmp225_); -#line 938 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_data_->_tmp221_); -#line 942 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp227_ = _data_->self->priv->manifest; -#line 942 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp228_ = _data_->_tmp227_->imported; -#line 942 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp229_ = _data_->photo; -#line 942 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp228_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp229_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp230_ = _data_->self->priv->manifest; -#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp231_ = _data_->import_result; -#line 943 "/home/jens/Source/shotwell/src/BatchImport.vala" - import_manifest_add_result (_data_->_tmp230_, _data_->_tmp231_); -#line 945 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp232_ = _data_->photo; -#line 945 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_progress (_data_->self, media_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp232_, TYPE_MEDIA_SOURCE, MediaSource))); -#line 946 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_file_import_complete (_data_->self); -#line 948 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->video); -#line 948 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->photo); -#line 948 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (_data_->import_result); -#line 948 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (_data_->prepared_file); -#line 948 "/home/jens/Source/shotwell/src/BatchImport.vala" - continue; -#line 8505 "BatchImport.c" - } -#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp233_ = _data_->prepared_file; -#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp234_ = _data_->_tmp233_->file; -#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp235_ = g_file_get_path (_data_->_tmp234_); -#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp236_ = _data_->_tmp235_; -#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_debug ("BatchImport.vala:951: duplicate photo detected, not importing %s", _data_->_tmp236_); -#line 951 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_data_->_tmp236_); -#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp237_ = photo_table_get_instance (); -#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp238_ = _data_->_tmp237_; -#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp239_ = _data_->prepared_file; -#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp240_ = _data_->_tmp239_->file; -#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp241_ = _data_->prepared_file; -#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp242_ = _data_->_tmp241_->full_md5; -#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp243_ = _data_->prepared_file; -#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp244_ = _data_->_tmp243_->file_format; -#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp246_ = photo_table_get_duplicate_ids (_data_->_tmp238_, _data_->_tmp240_, NULL, _data_->_tmp242_, _data_->_tmp244_, &_data_->_tmp245_); -#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp247_ = _data_->_tmp246_; -#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp247__length1 = _data_->_tmp245_; -#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala" - _database_table_unref0 (_data_->_tmp238_); -#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->photo_ids = _data_->_tmp247_; -#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->photo_ids_length1 = _data_->_tmp247__length1; -#line 953 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_photo_ids_size_ = _data_->photo_ids_length1; -#line 956 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp248_ = _data_->photo_ids; -#line 956 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp248__length1 = _data_->photo_ids_length1; -#line 956 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (_data_->_tmp248__length1 > 0, "photo_ids.length > 0"); -#line 958 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp249_ = _data_->photo_ids; -#line 958 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp249__length1 = _data_->photo_ids_length1; -#line 958 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp250_ = _data_->_tmp249_[0]; -#line 958 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp251_ = duplicated_file_create_from_photo_id (&_data_->_tmp250_); -#line 958 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_vala1_duplicated_file = _data_->_tmp251_; -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp252_ = _data_->prepared_file; -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp253_ = _data_->_tmp252_->job; -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp254_ = _data_->prepared_file; -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp255_ = _data_->_tmp254_->file; -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp256_ = _data_->prepared_file; -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp257_ = _data_->_tmp256_->file; -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp258_ = g_file_get_path (_data_->_tmp257_); -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp259_ = _data_->_tmp258_; -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp260_ = _data_->prepared_file; -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp261_ = _data_->_tmp260_->file; -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp262_ = g_file_get_path (_data_->_tmp261_); -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp263_ = _data_->_tmp262_; -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp264_ = _data_->_vala1_duplicated_file; -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp265_ = batch_import_result_new (_data_->_tmp253_, _data_->_tmp255_, _data_->_tmp259_, _data_->_tmp263_, _data_->_tmp264_, IMPORT_RESULT_PHOTO_EXISTS); -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (_data_->import_result); -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->import_result = _data_->_tmp265_; -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_data_->_tmp263_); -#line 960 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_data_->_tmp259_); -#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->_vala1_duplicated_file); -#line 901 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->photo_ids = (g_free (_data_->photo_ids), NULL); -#line 8605 "BatchImport.c" - } - } -#line 965 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp266_ = _data_->import_result; -#line 965 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_tmp266_ != NULL) { -#line 966 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp267_ = _data_->import_result; -#line 966 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_failure (_data_->self, _data_->_tmp267_); -#line 967 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_file_import_complete (_data_->self); -#line 969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->video); -#line 969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->photo); -#line 969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (_data_->import_result); -#line 969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (_data_->prepared_file); -#line 969 "/home/jens/Source/shotwell/src/BatchImport.vala" - continue; -#line 8628 "BatchImport.c" - } -#line 972 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_progress (_data_->self, (guint64) 0); -#line 973 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp268_ = _data_->self->priv->ready_files; -#line 973 "/home/jens/Source/shotwell/src/BatchImport.vala" - _data_->_tmp269_ = _data_->prepared_file; -#line 973 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp268_, GEE_TYPE_COLLECTION, GeeCollection), _data_->_tmp269_); -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->video); -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->photo); -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (_data_->import_result); -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (_data_->prepared_file); -#line 8646 "BatchImport.c" - } -#line 775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_data_->_prepared_file_list); -#line 8650 "BatchImport.c" - } -#line 976 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_flush_import_jobs (_data_->self); -#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_task_return_pointer (_data_->_async_result, _data_, NULL); -#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_data_->_state_ != 0) { -#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala" - while (_data_->_task_complete_ != TRUE) { -#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); -#line 8662 "BatchImport.c" - } - } -#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_object_unref (_data_->_async_result); -#line 774 "/home/jens/Source/shotwell/src/BatchImport.vala" - return FALSE; -#line 8669 "BatchImport.c" -} - - -static void -batch_import_done_preparing_files (BatchImport* self, - BackgroundJob* j, - const gchar* caller) -{ - gboolean _tmp0_; - PrepareFilesJob* prepare_files_job = NULL; - PrepareFilesJob* _tmp1_; - PrepareFilesJob* _tmp2_; - PrepareFilesJob* _tmp3_; - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; - gboolean _tmp7_ = FALSE; - gint _tmp8_; -#line 979 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 979 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 979 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (caller != NULL); -#line 980 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->completed; -#line 980 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (!_tmp0_, "!completed"); -#line 982 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_PREPARE_FILES_JOB, PrepareFilesJob)); -#line 982 "/home/jens/Source/shotwell/src/BatchImport.vala" - prepare_files_job = _tmp1_; -#line 984 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = prepare_files_job; -#line 984 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_failures (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob)); -#line 987 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = prepare_files_job; -#line 987 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _tmp3_->prepared_files; -#line 987 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->file_imports_to_perform = _tmp4_; -#line 988 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = self->priv->file_imports_to_perform; -#line 988 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = self->priv->file_imports_completed; -#line 988 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (_tmp5_ >= _tmp6_, "file_imports_to_perform >= file_imports_completed"); -#line 990 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_log_status (self, caller); -#line 993 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_flush_import_jobs (self); -#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = self->priv->file_imports_to_perform; -#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp8_ == 0) { -#line 8726 "BatchImport.c" - gboolean _tmp9_; -#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = self->priv->completed; -#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = !_tmp9_; -#line 8732 "BatchImport.c" - } else { -#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = FALSE; -#line 8736 "BatchImport.c" - } -#line 997 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp7_) { -#line 998 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_completed (self, "no files prepared for import"); -#line 8742 "BatchImport.c" - } else { - gboolean _tmp10_ = FALSE; - gint _tmp11_; - gint _tmp12_; -#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = self->priv->file_imports_completed; -#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = self->priv->file_imports_to_perform; -#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp11_ == _tmp12_) { -#line 8753 "BatchImport.c" - gboolean _tmp13_; -#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = self->priv->completed; -#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = !_tmp13_; -#line 8759 "BatchImport.c" - } else { -#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = FALSE; -#line 8763 "BatchImport.c" - } -#line 999 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp10_) { -#line 1000 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_completed (self, "completed preparing files, all outstanding imports completed"); -#line 8769 "BatchImport.c" - } - } -#line 979 "/home/jens/Source/shotwell/src/BatchImport.vala" - _background_job_unref0 (prepare_files_job); -#line 8774 "BatchImport.c" -} - - -static void -batch_import_on_files_prepared (BatchImport* self, - BackgroundJob* j) -{ -#line 1003 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 1003 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 1004 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_done_preparing_files (self, j, "on_files_prepared"); -#line 8788 "BatchImport.c" -} - - -static void -batch_import_on_file_prepare_cancelled (BatchImport* self, - BackgroundJob* j) -{ -#line 1007 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 1007 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 1008 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_done_preparing_files (self, j, "on_file_prepare_cancelled"); -#line 8802 "BatchImport.c" -} - - -static void -batch_import_on_import_files_completed (BatchImport* self, - BackgroundJob* j) -{ - gboolean _tmp0_; - PreparedFileImportJob* job = NULL; - PreparedFileImportJob* _tmp1_; - PreparedFileImportJob* _tmp2_; - PreparedFile* _tmp3_; - PreparedFileImportJob* _tmp4_; - BatchImportResult* _tmp5_; - PreparedFileImportJob* _tmp11_; - ReadyForImport* _tmp12_; - GError * _inner_error_ = NULL; -#line 1015 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 1015 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 1016 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->completed; -#line 1016 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (!_tmp0_, "!completed"); -#line 1018 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJob)); -#line 1018 "/home/jens/Source/shotwell/src/BatchImport.vala" - job = _tmp1_; -#line 1020 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_log_status (self, "on_import_files_completed"); -#line 1023 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = job; -#line 1023 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = _tmp2_->not_ready; -#line 1023 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (_tmp3_ == NULL, "job.not_ready == null"); -#line 1026 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = job; -#line 1026 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = _tmp4_->failed; -#line 1026 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp5_ != NULL) { -#line 8846 "BatchImport.c" - PreparedFileImportJob* _tmp6_; - BatchImportResult* _tmp7_; - ImportResult _tmp8_; - PreparedFileImportJob* _tmp9_; - BatchImportResult* _tmp10_; -#line 1027 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = job; -#line 1027 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = _tmp6_->failed; -#line 1027 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = _tmp7_->result; -#line 1027 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (_tmp8_ != IMPORT_RESULT_SUCCESS, "job.failed.result != ImportResult.SUCCESS"); -#line 1029 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = job; -#line 1029 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = _tmp9_->failed; -#line 1029 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_failure (self, _tmp10_); -#line 1030 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_file_import_complete (self); -#line 8868 "BatchImport.c" - } -#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = job; -#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = _tmp11_->ready; -#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp12_ != NULL) { -#line 8876 "BatchImport.c" - PreparedFileImportJob* _tmp13_; - ReadyForImport* _tmp14_; - BatchImportResult* _tmp15_; - ImportResult _tmp16_; - Tombstone* tombstone = NULL; - TombstoneSourceCollection* _tmp17_; - PreparedFileImportJob* _tmp18_; - ReadyForImport* _tmp19_; - GFile* _tmp20_; - Tombstone* _tmp21_; - Tombstone* _tmp22_; - MediaSource* source = NULL; - PreparedFileImportJob* _tmp25_; - ReadyForImport* _tmp26_; - gboolean _tmp27_; - PreparedFileImportJob* _tmp83_; - ReadyForImport* _tmp84_; - BatchImportResult* _tmp85_; - ImportResult _tmp86_; -#line 1036 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = job; -#line 1036 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = _tmp13_->ready; -#line 1036 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = _tmp14_->batch_result; -#line 1036 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = _tmp15_->result; -#line 1036 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (_tmp16_ == IMPORT_RESULT_SUCCESS, "job.ready.batch_result.result == ImportResult.SUCCESS"); -#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = tombstone_global; -#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = job; -#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp19_ = _tmp18_->ready; -#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp20_ = _tmp19_->final_file; -#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp21_ = tombstone_source_collection_locate (_tmp17_, _tmp20_); -#line 1038 "/home/jens/Source/shotwell/src/BatchImport.vala" - tombstone = _tmp21_; -#line 1039 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp22_ = tombstone; -#line 1039 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp22_ != NULL) { -#line 8922 "BatchImport.c" - TombstoneSourceCollection* _tmp23_; - Tombstone* _tmp24_; -#line 1040 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp23_ = tombstone_global; -#line 1040 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp24_ = tombstone; -#line 1040 "/home/jens/Source/shotwell/src/BatchImport.vala" - tombstone_source_collection_resurrect (_tmp23_, _tmp24_); -#line 8931 "BatchImport.c" - } -#line 1043 "/home/jens/Source/shotwell/src/BatchImport.vala" - source = NULL; -#line 1044 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp25_ = job; -#line 1044 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp26_ = _tmp25_->ready; -#line 1044 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp27_ = _tmp26_->is_video; -#line 1044 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp27_) { -#line 8943 "BatchImport.c" - PreparedFileImportJob* _tmp28_; - ReadyForImport* _tmp29_; - BatchImportResult* _tmp30_; - PreparedFileImportJob* _tmp31_; - ReadyForImport* _tmp32_; - VideoImportParams* _tmp33_; - Video* _tmp34_ = NULL; - ImportResult _tmp35_; -#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp28_ = job; -#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp29_ = _tmp28_->ready; -#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp30_ = _tmp29_->batch_result; -#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp31_ = job; -#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp32_ = _tmp31_->ready; -#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp33_ = _tmp32_->video_import_params; -#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp35_ = video_import_create (_tmp33_, &_tmp34_); -#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (source); -#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala" - source = G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_MEDIA_SOURCE, MediaSource); -#line 1045 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp30_->result = _tmp35_; -#line 8972 "BatchImport.c" - } else { - PreparedFileImportJob* _tmp36_; - ReadyForImport* _tmp37_; - BatchImportResult* _tmp38_; - PreparedFileImportJob* _tmp39_; - ReadyForImport* _tmp40_; - PhotoImportParams* _tmp41_; - LibraryPhoto* _tmp42_ = NULL; - ImportResult _tmp43_; - Photo* photo = NULL; - MediaSource* _tmp44_; - Photo* _tmp45_; - PreparedFileImportJob* _tmp46_; - ReadyForImport* _tmp47_; - PhotoImportParams* _tmp48_; - GFile* _tmp49_; - Photo* _tmp71_; -#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp36_ = job; -#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp37_ = _tmp36_->ready; -#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp38_ = _tmp37_->batch_result; -#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp39_ = job; -#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp40_ = _tmp39_->ready; -#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp41_ = _tmp40_->photo_import_params; -#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp43_ = library_photo_import_create (_tmp41_, &_tmp42_); -#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (source); -#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala" - source = G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_MEDIA_SOURCE, MediaSource); -#line 1048 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp38_->result = _tmp43_; -#line 1050 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp44_ = source; -#line 1050 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp45_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp44_, TYPE_PHOTO) ? ((Photo*) _tmp44_) : NULL); -#line 1050 "/home/jens/Source/shotwell/src/BatchImport.vala" - photo = _tmp45_; -#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp46_ = job; -#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp47_ = _tmp46_->ready; -#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp48_ = _tmp47_->photo_import_params; -#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp49_ = _tmp48_->final_associated_file; -#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp49_ != NULL) { -#line 9026 "BatchImport.c" - BackingPhotoRow* bpr = NULL; - BackingPhotoRow* _tmp50_; - BackingPhotoRow* _tmp51_; - BackingPhotoRow* _tmp52_; - PreparedFileImportJob* _tmp53_; - ReadyForImport* _tmp54_; - PhotoImportParams* _tmp55_; - GFile* _tmp56_; - gchar* _tmp57_; - MediaSource* _tmp58_; - GFile* _tmp59_; - GFile* _tmp60_; - gchar* _tmp61_; - gchar* _tmp62_; - BackingPhotoRow* _tmp63_; - const gchar* _tmp64_; -#line 1054 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp50_ = backing_photo_row_new (); -#line 1054 "/home/jens/Source/shotwell/src/BatchImport.vala" - bpr = _tmp50_; -#line 1055 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp51_ = bpr; -#line 1055 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp51_->file_format = PHOTO_FILE_FORMAT_JFIF; -#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp52_ = bpr; -#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp53_ = job; -#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp54_ = _tmp53_->ready; -#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp55_ = _tmp54_->photo_import_params; -#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp56_ = _tmp55_->final_associated_file; -#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp57_ = g_file_get_path (_tmp56_); -#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp52_->filepath); -#line 1056 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp52_->filepath = _tmp57_; -#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp58_ = source; -#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp59_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, TYPE_PHOTO, Photo), TYPE_MEDIA_SOURCE, MediaSource)); -#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp60_ = _tmp59_; -#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp61_ = g_file_get_path (_tmp60_); -#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp62_ = _tmp61_; -#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp63_ = bpr; -#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp64_ = _tmp63_->filepath; -#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_debug ("BatchImport.vala:1057: Associating %s with sibling %s", _tmp62_, _tmp64_); -#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp62_); -#line 1057 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp60_); -#line 9087 "BatchImport.c" - { - MediaSource* _tmp65_; - BackingPhotoRow* _tmp66_; -#line 1060 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp65_ = source; -#line 1060 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp66_ = bpr; -#line 1060 "/home/jens/Source/shotwell/src/BatchImport.vala" - photo_add_backing_photo_for_development (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, TYPE_PHOTO, Photo), RAW_DEVELOPER_CAMERA, _tmp66_, TRUE, &_inner_error_); -#line 1060 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9099 "BatchImport.c" - goto __catch424_g_error; - } - } - goto __finally424; - __catch424_g_error: - { - GError* e = NULL; - BackingPhotoRow* _tmp67_; - const gchar* _tmp68_; - GError* _tmp69_; - const gchar* _tmp70_; -#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala" - e = _inner_error_; -#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala" - _inner_error_ = NULL; -#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp67_ = bpr; -#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp68_ = _tmp67_->filepath; -#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp69_ = e; -#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp70_ = _tmp69_->message; -#line 1062 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_warning ("BatchImport.vala:1062: Unable to associate JPEG with RAW. File: %s Err" \ -"or: %s", _tmp68_, _tmp70_); -#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (e); -#line 9127 "BatchImport.c" - } - __finally424: -#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala" - _backing_photo_row_unref0 (bpr); -#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (photo); -#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (source); -#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (tombstone); -#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala" - _background_job_unref0 (job); -#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_clear_error (&_inner_error_); -#line 1059 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 9148 "BatchImport.c" - } -#line 1052 "/home/jens/Source/shotwell/src/BatchImport.vala" - _backing_photo_row_unref0 (bpr); -#line 9152 "BatchImport.c" - } -#line 1068 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp71_ = photo; -#line 1068 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (photo_get_master_file_format (_tmp71_) == PHOTO_FILE_FORMAT_RAW) { -#line 9158 "BatchImport.c" - RawDeveloper d = 0; - ConfigFacade* _tmp72_; - ConfigFacade* _tmp73_; - RawDeveloper _tmp74_; - gboolean _tmp75_ = FALSE; - RawDeveloper _tmp76_; - Photo* _tmp79_; - RawDeveloper _tmp80_; - Photo* _tmp81_; - RawDeveloper _tmp82_; -#line 1069 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp72_ = config_facade_get_instance (); -#line 1069 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp73_ = _tmp72_; -#line 1069 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp74_ = configuration_facade_get_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 1069 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp73_); -#line 1069 "/home/jens/Source/shotwell/src/BatchImport.vala" - d = _tmp74_; -#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp76_ = d; -#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp76_ == RAW_DEVELOPER_CAMERA) { -#line 9183 "BatchImport.c" - Photo* _tmp77_; - RawDeveloper _tmp78_; -#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp77_ = photo; -#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp78_ = d; -#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp75_ = !photo_is_raw_developer_available (_tmp77_, _tmp78_); -#line 9192 "BatchImport.c" - } else { -#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp75_ = FALSE; -#line 9196 "BatchImport.c" - } -#line 1070 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp75_) { -#line 1071 "/home/jens/Source/shotwell/src/BatchImport.vala" - d = RAW_DEVELOPER_EMBEDDED; -#line 9202 "BatchImport.c" - } -#line 1073 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp79_ = photo; -#line 1073 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp80_ = d; -#line 1073 "/home/jens/Source/shotwell/src/BatchImport.vala" - photo_set_default_raw_developer (_tmp79_, _tmp80_); -#line 1074 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp81_ = photo; -#line 1074 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp82_ = d; -#line 1074 "/home/jens/Source/shotwell/src/BatchImport.vala" - photo_set_raw_developer (_tmp81_, _tmp82_, FALSE); -#line 9216 "BatchImport.c" - } -#line 1044 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (photo); -#line 9220 "BatchImport.c" - } -#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp83_ = job; -#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp84_ = _tmp83_->ready; -#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp85_ = _tmp84_->batch_result; -#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp86_ = _tmp85_->result; -#line 1078 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp86_ != IMPORT_RESULT_SUCCESS) { -#line 9232 "BatchImport.c" - PreparedFileImportJob* _tmp87_; - ReadyForImport* _tmp88_; - BatchImportResult* _tmp89_; - ImportResult _tmp90_; - gchar* _tmp91_; - gchar* _tmp92_; - PreparedFileImportJob* _tmp93_; - ReadyForImport* _tmp94_; - BatchImportResult* _tmp95_; -#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp87_ = job; -#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp88_ = _tmp87_->ready; -#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp89_ = _tmp88_->batch_result; -#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp90_ = _tmp89_->result; -#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp91_ = import_result_to_string (_tmp90_); -#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp92_ = _tmp91_; -#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_debug ("BatchImport.vala:1079: on_import_file_completed: %s", _tmp92_); -#line 1079 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp92_); -#line 1081 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp93_ = job; -#line 1081 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp94_ = _tmp93_->ready; -#line 1081 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp95_ = _tmp94_->batch_result; -#line 1081 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_failure (self, _tmp95_); -#line 1082 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_file_import_complete (self); -#line 9268 "BatchImport.c" - } else { - GeeList* _tmp96_; - MediaSource* _tmp97_; - PreparedFileImportJob* _tmp98_; - ReadyForImport* _tmp99_; - Thumbnails* _tmp100_; - Thumbnails* _tmp101_; - PreparedFileImportJob* _tmp102_; - ReadyForImport* _tmp103_; - PreparedFile* _tmp104_; - BatchImportJob* _tmp105_; - PreparedFileImportJob* _tmp106_; - ReadyForImport* _tmp107_; - BatchImportResult* _tmp108_; - CompletedImportObject* _tmp109_; - CompletedImportObject* _tmp110_; -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp96_ = self->priv->ready_thumbnails; -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp97_ = source; -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp98_ = job; -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp99_ = _tmp98_->ready; -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp100_ = ready_for_import_get_thumbnails (_tmp99_); -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp101_ = _tmp100_; -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp102_ = job; -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp103_ = _tmp102_->ready; -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp104_ = _tmp103_->prepared_file; -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp105_ = _tmp104_->job; -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp106_ = job; -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp107_ = _tmp106_->ready; -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp108_ = _tmp107_->batch_result; -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp109_ = completed_import_object_new (_tmp97_, _tmp101_, _tmp105_, _tmp108_); -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp110_ = _tmp109_; -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp96_, GEE_TYPE_COLLECTION, GeeCollection), _tmp110_); -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - _completed_import_object_unref0 (_tmp110_); -#line 1084 "/home/jens/Source/shotwell/src/BatchImport.vala" - _thumbnails_unref0 (_tmp101_); -#line 9321 "BatchImport.c" - } -#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (source); -#line 1035 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (tombstone); -#line 9327 "BatchImport.c" - } -#line 1089 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_flush_import_jobs (self); -#line 1015 "/home/jens/Source/shotwell/src/BatchImport.vala" - _background_job_unref0 (job); -#line 9333 "BatchImport.c" -} - - -static void -batch_import_on_import_files_cancelled (BatchImport* self, - BackgroundJob* j) -{ - gboolean _tmp0_; - PreparedFileImportJob* job = NULL; - PreparedFileImportJob* _tmp1_; - PreparedFileImportJob* _tmp2_; - PreparedFile* _tmp3_; - PreparedFileImportJob* _tmp22_; - BatchImportResult* _tmp23_; - PreparedFileImportJob* _tmp26_; - ReadyForImport* _tmp27_; -#line 1092 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 1092 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 1093 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->completed; -#line 1093 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (!_tmp0_, "!completed"); -#line 1095 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJob)); -#line 1095 "/home/jens/Source/shotwell/src/BatchImport.vala" - job = _tmp1_; -#line 1097 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_log_status (self, "on_import_files_cancelled"); -#line 1099 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = job; -#line 1099 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = _tmp2_->not_ready; -#line 1099 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp3_ != NULL) { -#line 9370 "BatchImport.c" - PreparedFileImportJob* _tmp4_; - PreparedFile* _tmp5_; - BatchImportJob* _tmp6_; - PreparedFileImportJob* _tmp7_; - PreparedFile* _tmp8_; - GFile* _tmp9_; - PreparedFileImportJob* _tmp10_; - PreparedFile* _tmp11_; - GFile* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - PreparedFileImportJob* _tmp15_; - PreparedFile* _tmp16_; - GFile* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - BatchImportResult* _tmp20_; - BatchImportResult* _tmp21_; -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = job; -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = _tmp4_->not_ready; -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = _tmp5_->job; -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = job; -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = _tmp7_->not_ready; -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = _tmp8_->file; -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = job; -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = _tmp10_->not_ready; -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = _tmp11_->file; -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = g_file_get_path (_tmp12_); -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = _tmp13_; -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = job; -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = _tmp15_->not_ready; -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = _tmp16_->file; -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = g_file_get_path (_tmp17_); -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp19_ = _tmp18_; -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp20_ = batch_import_result_new (_tmp6_, _tmp9_, _tmp14_, _tmp19_, NULL, IMPORT_RESULT_USER_ABORT); -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp21_ = _tmp20_; -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_failure (self, _tmp21_); -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (_tmp21_); -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp19_); -#line 1100 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp14_); -#line 1103 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_file_import_complete (self); -#line 9435 "BatchImport.c" - } -#line 1106 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp22_ = job; -#line 1106 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp23_ = _tmp22_->failed; -#line 1106 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp23_ != NULL) { -#line 9443 "BatchImport.c" - PreparedFileImportJob* _tmp24_; - BatchImportResult* _tmp25_; -#line 1107 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp24_ = job; -#line 1107 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp25_ = _tmp24_->failed; -#line 1107 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_failure (self, _tmp25_); -#line 1108 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_file_import_complete (self); -#line 9454 "BatchImport.c" - } -#line 1111 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp26_ = job; -#line 1111 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp27_ = _tmp26_->ready; -#line 1111 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp27_ != NULL) { -#line 9462 "BatchImport.c" - PreparedFileImportJob* _tmp28_; - ReadyForImport* _tmp29_; - BatchImportResult* _tmp30_; - BatchImportResult* _tmp31_; -#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp28_ = job; -#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp29_ = _tmp28_->ready; -#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp30_ = ready_for_import_abort (_tmp29_); -#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp31_ = _tmp30_; -#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_failure (self, _tmp31_); -#line 1112 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (_tmp31_); -#line 1113 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_file_import_complete (self); -#line 9481 "BatchImport.c" - } -#line 1116 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_flush_import_jobs (self); -#line 1092 "/home/jens/Source/shotwell/src/BatchImport.vala" - _background_job_unref0 (job); -#line 9487 "BatchImport.c" -} - - -static gpointer -_completed_import_object_ref0 (gpointer self) -{ -#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self ? completed_import_object_ref (self) : NULL; -#line 9496 "BatchImport.c" -} - - -static void -batch_import_on_thumbnail_writer_completed (BatchImport* self, - BackgroundJob* j) -{ - gboolean _tmp0_; - ThumbnailWriterJob* job = NULL; - ThumbnailWriterJob* _tmp1_; - CompletedImportObject* completed = NULL; - ThumbnailWriterJob* _tmp2_; - CompletedImportObject* _tmp3_; - CompletedImportObject* _tmp4_; - CompletedImportObject* _tmp5_; - BatchImportResult* _tmp6_; - ImportResult _tmp7_; -#line 1126 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 1126 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 1127 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->completed; -#line 1127 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (!_tmp0_, "!completed"); -#line 1129 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJob)); -#line 1129 "/home/jens/Source/shotwell/src/BatchImport.vala" - job = _tmp1_; -#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = job; -#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = _tmp2_->completed_import_source; -#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _completed_import_object_ref0 (_tmp3_); -#line 1130 "/home/jens/Source/shotwell/src/BatchImport.vala" - completed = _tmp4_; -#line 1132 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_log_status (self, "on_thumbnail_writer_completed"); -#line 1134 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = completed; -#line 1134 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = _tmp5_->batch_result; -#line 1134 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = _tmp6_->result; -#line 1134 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp7_ != IMPORT_RESULT_SUCCESS) { -#line 9544 "BatchImport.c" - CompletedImportObject* _tmp8_; - MediaSource* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - CompletedImportObject* _tmp12_; - BatchImportResult* _tmp13_; - ImportResult _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - CompletedImportObject* _tmp17_; - MediaSource* _tmp18_; - CompletedImportObject* _tmp25_; - BatchImportResult* _tmp26_; -#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = completed; -#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = _tmp8_->source; -#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject)); -#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = _tmp10_; -#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = completed; -#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = _tmp12_->batch_result; -#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = _tmp13_->result; -#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = import_result_to_string (_tmp14_); -#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = _tmp15_; -#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_warning ("BatchImport.vala:1135: Failed to import %s: unable to write thumbnails" \ -" (%s)", _tmp11_, _tmp16_); -#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp16_); -#line 1135 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp11_); -#line 1138 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = completed; -#line 1138 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = _tmp17_->source; -#line 1138 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, TYPE_LIBRARY_PHOTO)) { -#line 9588 "BatchImport.c" - CompletedImportObject* _tmp19_; - MediaSource* _tmp20_; -#line 1139 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp19_ = completed; -#line 1139 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp20_ = _tmp19_->source; -#line 1139 "/home/jens/Source/shotwell/src/BatchImport.vala" - library_photo_import_failed (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp20_) : NULL); -#line 9597 "BatchImport.c" - } else { - CompletedImportObject* _tmp21_; - MediaSource* _tmp22_; -#line 1140 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp21_ = completed; -#line 1140 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp22_ = _tmp21_->source; -#line 1140 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, TYPE_VIDEO)) { -#line 9607 "BatchImport.c" - CompletedImportObject* _tmp23_; - MediaSource* _tmp24_; -#line 1141 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp23_ = completed; -#line 1141 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp24_ = _tmp23_->source; -#line 1141 "/home/jens/Source/shotwell/src/BatchImport.vala" - video_import_failed (G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, TYPE_VIDEO) ? ((Video*) _tmp24_) : NULL); -#line 9616 "BatchImport.c" - } - } -#line 1143 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp25_ = completed; -#line 1143 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp26_ = _tmp25_->batch_result; -#line 1143 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_failure (self, _tmp26_); -#line 1144 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_file_import_complete (self); -#line 9627 "BatchImport.c" - } else { - ImportManifest* _tmp27_; - GeeList* _tmp28_; - CompletedImportObject* _tmp29_; - MediaSource* _tmp30_; - ImportManifest* _tmp31_; - CompletedImportObject* _tmp32_; - BatchImportResult* _tmp33_; - GeeList* _tmp34_; - CompletedImportObject* _tmp35_; -#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp27_ = self->priv->manifest; -#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp28_ = _tmp27_->imported; -#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp29_ = completed; -#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp30_ = _tmp29_->source; -#line 1146 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection), _tmp30_); -#line 1147 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp31_ = self->priv->manifest; -#line 1147 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp32_ = completed; -#line 1147 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp33_ = _tmp32_->batch_result; -#line 1147 "/home/jens/Source/shotwell/src/BatchImport.vala" - import_manifest_add_result (_tmp31_, _tmp33_); -#line 1149 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp34_ = self->priv->display_imported_queue; -#line 1149 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp35_ = completed; -#line 1149 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection), _tmp35_); -#line 9662 "BatchImport.c" - } -#line 1152 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_flush_import_jobs (self); -#line 1126 "/home/jens/Source/shotwell/src/BatchImport.vala" - _completed_import_object_unref0 (completed); -#line 1126 "/home/jens/Source/shotwell/src/BatchImport.vala" - _background_job_unref0 (job); -#line 9670 "BatchImport.c" -} - - -static void -batch_import_on_thumbnail_writer_cancelled (BatchImport* self, - BackgroundJob* j) -{ - gboolean _tmp0_; - ThumbnailWriterJob* job = NULL; - ThumbnailWriterJob* _tmp1_; - CompletedImportObject* completed = NULL; - ThumbnailWriterJob* _tmp2_; - CompletedImportObject* _tmp3_; - CompletedImportObject* _tmp4_; - CompletedImportObject* _tmp5_; - MediaSource* _tmp6_; - CompletedImportObject* _tmp13_; - BatchImportResult* _tmp14_; -#line 1155 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 1155 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 1156 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->completed; -#line 1156 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (!_tmp0_, "!completed"); -#line 1158 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJob)); -#line 1158 "/home/jens/Source/shotwell/src/BatchImport.vala" - job = _tmp1_; -#line 1159 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = job; -#line 1159 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = _tmp2_->completed_import_source; -#line 1159 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _completed_import_object_ref0 (_tmp3_); -#line 1159 "/home/jens/Source/shotwell/src/BatchImport.vala" - completed = _tmp4_; -#line 1161 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_log_status (self, "on_thumbnail_writer_cancelled"); -#line 1163 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = completed; -#line 1163 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = _tmp5_->source; -#line 1163 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, TYPE_LIBRARY_PHOTO)) { -#line 9717 "BatchImport.c" - CompletedImportObject* _tmp7_; - MediaSource* _tmp8_; -#line 1164 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = completed; -#line 1164 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = _tmp7_->source; -#line 1164 "/home/jens/Source/shotwell/src/BatchImport.vala" - library_photo_import_failed (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp8_) : NULL); -#line 9726 "BatchImport.c" - } else { - CompletedImportObject* _tmp9_; - MediaSource* _tmp10_; -#line 1165 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = completed; -#line 1165 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = _tmp9_->source; -#line 1165 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, TYPE_VIDEO)) { -#line 9736 "BatchImport.c" - CompletedImportObject* _tmp11_; - MediaSource* _tmp12_; -#line 1166 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = completed; -#line 1166 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = _tmp11_->source; -#line 1166 "/home/jens/Source/shotwell/src/BatchImport.vala" - video_import_failed (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, TYPE_VIDEO) ? ((Video*) _tmp12_) : NULL); -#line 9745 "BatchImport.c" - } - } -#line 1168 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = completed; -#line 1168 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = _tmp13_->batch_result; -#line 1168 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_failure (self, _tmp14_); -#line 1169 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_file_import_complete (self); -#line 1171 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_flush_import_jobs (self); -#line 1155 "/home/jens/Source/shotwell/src/BatchImport.vala" - _completed_import_object_unref0 (completed); -#line 1155 "/home/jens/Source/shotwell/src/BatchImport.vala" - _background_job_unref0 (job); -#line 9762 "BatchImport.c" -} - - -static void -batch_import_flush_ready_sources (BatchImport* self) -{ - GeeList* _tmp0_; - gint _tmp1_; - gint _tmp2_; - GeeList* _tmp3_; - gint _tmp4_; - gint _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - GeeArrayList* all = NULL; - GeeArrayList* _tmp8_; - GeeArrayList* photos = NULL; - GeeArrayList* _tmp9_; - GeeArrayList* videos = NULL; - GeeArrayList* _tmp10_; - GeeHashMap* completion_list = NULL; - GeeHashMap* _tmp11_; - MediaCollectionRegistry* _tmp41_; - MediaCollectionRegistry* _tmp42_; - EventSourceCollection* _tmp43_; - TagSourceCollection* _tmp44_; - LibraryPhotoSourceCollection* _tmp45_; - GeeArrayList* _tmp46_; - VideoSourceCollection* _tmp47_; - GeeArrayList* _tmp48_; - GeeArrayList* _tmp69_; - BatchImportRoll* _tmp70_; - ViewCollection* _tmp71_; - TagSourceCollection* _tmp72_; - EventSourceCollection* _tmp73_; - MediaCollectionRegistry* _tmp74_; - MediaCollectionRegistry* _tmp75_; - GeeList* _tmp76_; - GError * _inner_error_ = NULL; -#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT (self)); -#line 1179 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->ready_sources; -#line 1179 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1179 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = _tmp1_; -#line 1179 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp2_ == 0) { -#line 1180 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 9814 "BatchImport.c" - } -#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = self->priv->ready_sources; -#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = _tmp4_; -#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = g_strdup_printf ("flush_ready_sources (%d)", _tmp5_); -#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = _tmp6_; -#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_log_status (self, _tmp7_); -#line 1185 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp7_); -#line 1187 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1187 "/home/jens/Source/shotwell/src/BatchImport.vala" - all = _tmp8_; -#line 1188 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1188 "/home/jens/Source/shotwell/src/BatchImport.vala" - photos = _tmp9_; -#line 1189 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1189 "/home/jens/Source/shotwell/src/BatchImport.vala" - videos = _tmp10_; -#line 1190 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = gee_hash_map_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_BATCH_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1190 "/home/jens/Source/shotwell/src/BatchImport.vala" - completion_list = _tmp11_; -#line 9846 "BatchImport.c" - { - GeeList* _completed_list = NULL; - GeeList* _tmp12_; - GeeList* _tmp13_; - gint _completed_size = 0; - GeeList* _tmp14_; - gint _tmp15_; - gint _tmp16_; - gint _completed_index = 0; -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = self->priv->ready_sources; -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = _g_object_ref0 (_tmp12_); -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - _completed_list = _tmp13_; -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = _completed_list; -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = _tmp15_; -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - _completed_size = _tmp16_; -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - _completed_index = -1; -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - while (TRUE) { -#line 9874 "BatchImport.c" - gint _tmp17_; - gint _tmp18_; - gint _tmp19_; - CompletedImportObject* completed = NULL; - GeeList* _tmp20_; - gint _tmp21_; - gpointer _tmp22_; - GeeArrayList* _tmp23_; - CompletedImportObject* _tmp24_; - MediaSource* _tmp25_; - CompletedImportObject* _tmp26_; - MediaSource* _tmp27_; - GeeHashMap* _tmp36_; - CompletedImportObject* _tmp37_; - MediaSource* _tmp38_; - CompletedImportObject* _tmp39_; - BatchImportJob* _tmp40_; -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = _completed_index; -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - _completed_index = _tmp17_ + 1; -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = _completed_index; -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp19_ = _completed_size; -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!(_tmp18_ < _tmp19_)) { -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 9904 "BatchImport.c" - } -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp20_ = _completed_list; -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp21_ = _completed_index; -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp22_ = gee_list_get (_tmp20_, _tmp21_); -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - completed = (CompletedImportObject*) _tmp22_; -#line 1193 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp23_ = all; -#line 1193 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp24_ = completed; -#line 1193 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp25_ = _tmp24_->source; -#line 1193 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp25_); -#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp26_ = completed; -#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp27_ = _tmp26_->source; -#line 1195 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, TYPE_LIBRARY_PHOTO)) { -#line 9928 "BatchImport.c" - GeeArrayList* _tmp28_; - CompletedImportObject* _tmp29_; - MediaSource* _tmp30_; -#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp28_ = photos; -#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp29_ = completed; -#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp30_ = _tmp29_->source; -#line 1196 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 9940 "BatchImport.c" - } else { - CompletedImportObject* _tmp31_; - MediaSource* _tmp32_; -#line 1197 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp31_ = completed; -#line 1197 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp32_ = _tmp31_->source; -#line 1197 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp32_, TYPE_VIDEO)) { -#line 9950 "BatchImport.c" - GeeArrayList* _tmp33_; - CompletedImportObject* _tmp34_; - MediaSource* _tmp35_; -#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp33_ = videos; -#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp34_ = completed; -#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp35_ = _tmp34_->source; -#line 1198 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_VIDEO, Video)); -#line 9962 "BatchImport.c" - } - } -#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp36_ = completion_list; -#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp37_ = completed; -#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp38_ = _tmp37_->source; -#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp39_ = completed; -#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp40_ = _tmp39_->original_job; -#line 1200 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp38_, _tmp40_); -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - _completed_import_object_unref0 (completed); -#line 9979 "BatchImport.c" - } -#line 1192 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_completed_list); -#line 9983 "BatchImport.c" - } -#line 1203 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp41_ = media_collection_registry_get_instance (); -#line 1203 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp42_ = _tmp41_; -#line 1203 "/home/jens/Source/shotwell/src/BatchImport.vala" - media_collection_registry_begin_transaction_on_all (_tmp42_); -#line 1203 "/home/jens/Source/shotwell/src/BatchImport.vala" - _media_collection_registry_unref0 (_tmp42_); -#line 1204 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp43_ = event_global; -#line 1204 "/home/jens/Source/shotwell/src/BatchImport.vala" - data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1205 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp44_ = tag_global; -#line 1205 "/home/jens/Source/shotwell/src/BatchImport.vala" - data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1207 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp45_ = library_photo_global; -#line 1207 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp46_ = photos; -#line 1207 "/home/jens/Source/shotwell/src/BatchImport.vala" - media_source_collection_import_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1208 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp47_ = video_global; -#line 1208 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp48_ = videos; -#line 1208 "/home/jens/Source/shotwell/src/BatchImport.vala" - media_source_collection_import_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 10013 "BatchImport.c" - { - GeeIterator* _media_it = NULL; - GeeHashMap* _tmp49_; - GeeSet* _tmp50_; - GeeSet* _tmp51_; - GeeSet* _tmp52_; - GeeIterator* _tmp53_; - GeeIterator* _tmp54_; -#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp49_ = completion_list; -#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp50_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp51_ = _tmp50_; -#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp52_ = _tmp51_; -#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp53_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp54_ = _tmp53_; -#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp52_); -#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala" - _media_it = _tmp54_; -#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala" - while (TRUE) { -#line 10040 "BatchImport.c" - GeeIterator* _tmp55_; - MediaSource* media = NULL; - GeeIterator* _tmp56_; - gpointer _tmp57_; -#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp55_ = _media_it; -#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!gee_iterator_next (_tmp55_)) { -#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 10051 "BatchImport.c" - } -#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp56_ = _media_it; -#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp57_ = gee_iterator_get (_tmp56_); -#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala" - media = (MediaSource*) _tmp57_; -#line 10059 "BatchImport.c" - { - GeeHashMap* _tmp58_; - MediaSource* _tmp59_; - gpointer _tmp60_; - BatchImportJob* _tmp61_; - MediaSource* _tmp62_; - BatchImportRoll* _tmp63_; -#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp58_ = completion_list; -#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp59_ = media; -#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp60_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp59_); -#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp61_ = (BatchImportJob*) _tmp60_; -#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp62_ = media; -#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp63_ = self->priv->import_roll; -#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_job_complete (_tmp61_, _tmp62_, _tmp63_, &_inner_error_); -#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (_tmp61_); -#line 1213 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 10085 "BatchImport.c" - goto __catch425_g_error; - } - } - goto __finally425; - __catch425_g_error: - { - GError* err = NULL; - MediaSource* _tmp64_; - gchar* _tmp65_; - gchar* _tmp66_; - GError* _tmp67_; - const gchar* _tmp68_; -#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala" - err = _inner_error_; -#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala" - _inner_error_ = NULL; -#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp64_ = media; -#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp65_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_DATA_OBJECT, DataObject)); -#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp66_ = _tmp65_; -#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp67_ = err; -#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp68_ = _tmp67_->message; -#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_warning ("BatchImport.vala:1215: Completion error when finalizing import of %s: " \ -"%s", _tmp66_, _tmp68_); -#line 1215 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp66_); -#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (err); -#line 10118 "BatchImport.c" - } - __finally425: -#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (media); -#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_media_it); -#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (completion_list); -#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (videos); -#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (photos); -#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (all); -#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_clear_error (&_inner_error_); -#line 1212 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 10141 "BatchImport.c" - } -#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (media); -#line 10145 "BatchImport.c" - } -#line 1211 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_media_it); -#line 10149 "BatchImport.c" - } -#line 1221 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp69_ = all; -#line 1221 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp70_ = self->priv->import_roll; -#line 1221 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp71_ = _tmp70_->generated_events; -#line 1221 "/home/jens/Source/shotwell/src/BatchImport.vala" - event_generate_many_events (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, GEE_TYPE_COLLECTION, GeeCollection), _tmp71_); -#line 1223 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp72_ = tag_global; -#line 1223 "/home/jens/Source/shotwell/src/BatchImport.vala" - data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1224 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp73_ = event_global; -#line 1224 "/home/jens/Source/shotwell/src/BatchImport.vala" - data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1225 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp74_ = media_collection_registry_get_instance (); -#line 1225 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp75_ = _tmp74_; -#line 1225 "/home/jens/Source/shotwell/src/BatchImport.vala" - media_collection_registry_commit_transaction_on_all (_tmp75_); -#line 1225 "/home/jens/Source/shotwell/src/BatchImport.vala" - _media_collection_registry_unref0 (_tmp75_); -#line 1227 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp76_ = self->priv->ready_sources; -#line 1227 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (completion_list); -#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (videos); -#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (photos); -#line 1178 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (all); -#line 10187 "BatchImport.c" -} - - -static gboolean -batch_import_display_imported_timer (BatchImport* self) -{ - gboolean result = FALSE; - GeeList* _tmp0_; - gint _tmp1_; - gint _tmp2_; - GCancellable* _tmp4_; - gint total = 0; - GCancellable* _tmp8_; - gint _tmp15_; - GeeList* _tmp16_; - gint _tmp17_; - gint _tmp18_; - gboolean _tmp41_ = FALSE; - GeeList* _tmp42_; - gint _tmp43_; - gint _tmp44_; -#line 1232 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT (self), FALSE); -#line 1233 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->display_imported_queue; -#line 1233 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1233 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = _tmp1_; -#line 1233 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp2_ == 0) { -#line 10219 "BatchImport.c" - gboolean _tmp3_; -#line 1234 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = self->priv->completed; -#line 1234 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = !_tmp3_; -#line 1234 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 10227 "BatchImport.c" - } -#line 1236 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = self->priv->cancellable; -#line 1236 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_cancellable_is_cancelled (_tmp4_)) { -#line 10233 "BatchImport.c" - GeeList* _tmp5_; - gint _tmp6_; - gint _tmp7_; -#line 1237 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = self->priv->display_imported_queue; -#line 1237 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1237 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = _tmp6_; -#line 1237 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_debug ("BatchImport.vala:1237: Importing %d photos at once", _tmp7_); -#line 10245 "BatchImport.c" - } -#line 1239 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_log_status (self, "display_imported_timer"); -#line 1249 "/home/jens/Source/shotwell/src/BatchImport.vala" - total = 1; -#line 1250 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = self->priv->cancellable; -#line 1250 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!g_cancellable_is_cancelled (_tmp8_)) { -#line 10255 "BatchImport.c" - GeeList* _tmp9_; - gint _tmp10_; - gint _tmp11_; -#line 1251 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = self->priv->display_imported_queue; -#line 1251 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1251 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = _tmp10_; -#line 1251 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp11_ > BATCH_IMPORT_DISPLAY_QUEUE_HYSTERESIS_OVERFLOW) { -#line 10267 "BatchImport.c" - GeeList* _tmp12_; - gint _tmp13_; - gint _tmp14_; -#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = self->priv->display_imported_queue; -#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = _tmp13_; -#line 1252 "/home/jens/Source/shotwell/src/BatchImport.vala" - total = 1 << CLAMP ((_tmp14_ / BATCH_IMPORT_DISPLAY_QUEUE_HYSTERESIS_OVERFLOW) + 2, 0, 16); -#line 10279 "BatchImport.c" - } - } else { -#line 1256 "/home/jens/Source/shotwell/src/BatchImport.vala" - total = BATCH_IMPORT_DISPLAY_QUEUE_HYSTERESIS_OVERFLOW; -#line 10284 "BatchImport.c" - } -#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = total; -#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = self->priv->display_imported_queue; -#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = _tmp17_; -#line 1259 "/home/jens/Source/shotwell/src/BatchImport.vala" - total = MIN (_tmp15_, _tmp18_); -#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala" - while (TRUE) { -#line 10298 "BatchImport.c" - gint _tmp19_; - CompletedImportObject* completed_object = NULL; - GeeList* _tmp20_; - gpointer _tmp21_; - GdkPixbuf* user_preview = NULL; - CompletedImportObject* _tmp22_; - GdkPixbuf* _tmp23_; - GdkPixbuf* _tmp24_; - CompletedImportObject* _tmp25_; - CompletedImportObject* _tmp26_; - GeeList* _tmp27_; - CompletedImportObject* _tmp28_; - CompletedImportObject* _tmp29_; - MediaSource* _tmp30_; - GdkPixbuf* _tmp31_; - gint _tmp32_; - CompletedImportObject* _tmp33_; - MediaSource* _tmp34_; -#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp19_ = total; -#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala" - total = _tmp19_ - 1; -#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!(_tmp19_ > 0)) { -#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 10325 "BatchImport.c" - } -#line 1270 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp20_ = self->priv->display_imported_queue; -#line 1270 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp21_ = gee_list_remove_at (_tmp20_, 0); -#line 1270 "/home/jens/Source/shotwell/src/BatchImport.vala" - completed_object = (CompletedImportObject*) _tmp21_; -#line 1273 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp22_ = completed_object; -#line 1273 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp23_ = _tmp22_->user_preview; -#line 1273 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp24_ = _g_object_ref0 (_tmp23_); -#line 1273 "/home/jens/Source/shotwell/src/BatchImport.vala" - user_preview = _tmp24_; -#line 1276 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp25_ = completed_object; -#line 1276 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp25_->user_preview); -#line 1276 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp25_->user_preview = NULL; -#line 1277 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp26_ = completed_object; -#line 1277 "/home/jens/Source/shotwell/src/BatchImport.vala" - _thumbnails_unref0 (_tmp26_->thumbnails); -#line 1277 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp26_->thumbnails = NULL; -#line 1282 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp27_ = self->priv->ready_sources; -#line 1282 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp28_ = completed_object; -#line 1282 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection), _tmp28_); -#line 1284 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp29_ = completed_object; -#line 1284 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp30_ = _tmp29_->source; -#line 1284 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp31_ = user_preview; -#line 1284 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp32_ = total; -#line 1284 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_emit (self, batch_import_signals[BATCH_IMPORT_IMPORTED_SIGNAL], 0, _tmp30_, _tmp31_, _tmp32_); -#line 1287 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp33_ = completed_object; -#line 1287 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp34_ = _tmp33_->source; -#line 1287 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp34_, TYPE_PHOTO_SOURCE)) { -#line 10375 "BatchImport.c" - PhotoSource* photo_source = NULL; - CompletedImportObject* _tmp35_; - MediaSource* _tmp36_; - PhotoSource* _tmp37_; - PhotoSource* _tmp38_; -#line 1288 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp35_ = completed_object; -#line 1288 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp36_ = _tmp35_->source; -#line 1288 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp37_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp36_, TYPE_PHOTO_SOURCE) ? ((PhotoSource*) _tmp36_) : NULL); -#line 1288 "/home/jens/Source/shotwell/src/BatchImport.vala" - photo_source = _tmp37_; -#line 1289 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp38_ = photo_source; -#line 1289 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_progress (self, media_source_get_master_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_MEDIA_SOURCE, MediaSource))); -#line 1287 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (photo_source); -#line 10395 "BatchImport.c" - } else { - CompletedImportObject* _tmp39_; - MediaSource* _tmp40_; -#line 1291 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp39_ = completed_object; -#line 1291 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp40_ = _tmp39_->source; -#line 1291 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_report_progress (self, media_source_get_filesize (_tmp40_)); -#line 10405 "BatchImport.c" - } -#line 1293 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_file_import_complete (self); -#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (user_preview); -#line 1269 "/home/jens/Source/shotwell/src/BatchImport.vala" - _completed_import_object_unref0 (completed_object); -#line 10413 "BatchImport.c" - } -#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp42_ = self->priv->ready_sources; -#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp43_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp44_ = _tmp43_; -#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp44_ >= BATCH_IMPORT_READY_SOURCES_COUNT_OVERFLOW) { -#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp41_ = TRUE; -#line 10425 "BatchImport.c" - } else { - GCancellable* _tmp45_; -#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp45_ = self->priv->cancellable; -#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp41_ = g_cancellable_is_cancelled (_tmp45_); -#line 10432 "BatchImport.c" - } -#line 1296 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp41_) { -#line 1297 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_flush_ready_sources (self); -#line 10438 "BatchImport.c" - } -#line 1299 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = TRUE; -#line 1299 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 10444 "BatchImport.c" -} - - -static void -g_cclosure_user_marshal_VOID__UINT64_UINT64 (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__UINT64_UINT64) (gpointer data1, guint64 arg_1, guint64 arg_2, gpointer data2); - register GMarshalFunc_VOID__UINT64_UINT64 callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (n_param_values == 3); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data1 = closure->data; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data2 = param_values->data[0].v_pointer; -#line 10470 "BatchImport.c" - } else { -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data1 = param_values->data[0].v_pointer; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data2 = closure->data; -#line 10476 "BatchImport.c" - } -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - callback = (GMarshalFunc_VOID__UINT64_UINT64) (marshal_data ? marshal_data : cc->callback); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - callback (data1, g_value_get_uint64 (param_values + 1), g_value_get_uint64 (param_values + 2), data2); -#line 10482 "BatchImport.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_OBJECT_INT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_INT) (gpointer data1, gpointer arg_1, gpointer arg_2, gint arg_3, gpointer data2); - register GMarshalFunc_VOID__OBJECT_OBJECT_INT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (n_param_values == 4); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data1 = closure->data; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data2 = param_values->data[0].v_pointer; -#line 10508 "BatchImport.c" - } else { -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data1 = param_values->data[0].v_pointer; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data2 = closure->data; -#line 10514 "BatchImport.c" - } -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - callback = (GMarshalFunc_VOID__OBJECT_OBJECT_INT) (marshal_data ? marshal_data : cc->callback); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), g_value_get_int (param_values + 3), data2); -#line 10520 "BatchImport.c" -} - - -static void -g_cclosure_user_marshal_VOID__ENUM_STRING (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__ENUM_STRING) (gpointer data1, gint arg_1, const char* arg_2, gpointer data2); - register GMarshalFunc_VOID__ENUM_STRING callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (n_param_values == 3); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data1 = closure->data; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data2 = param_values->data[0].v_pointer; -#line 10546 "BatchImport.c" - } else { -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data1 = param_values->data[0].v_pointer; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data2 = closure->data; -#line 10552 "BatchImport.c" - } -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - callback = (GMarshalFunc_VOID__ENUM_STRING) (marshal_data ? marshal_data : cc->callback); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - callback (data1, g_value_get_enum (param_values + 1), g_value_get_string (param_values + 2), data2); -#line 10558 "BatchImport.c" -} - - -static void -g_cclosure_user_marshal_VOID__BATCH_IMPORT_RESULT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__BATCH_IMPORT_RESULT) (gpointer data1, gpointer arg_1, gpointer data2); - register GMarshalFunc_VOID__BATCH_IMPORT_RESULT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (n_param_values == 2); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data1 = closure->data; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data2 = param_values->data[0].v_pointer; -#line 10584 "BatchImport.c" - } else { -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data1 = param_values->data[0].v_pointer; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data2 = closure->data; -#line 10590 "BatchImport.c" - } -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - callback = (GMarshalFunc_VOID__BATCH_IMPORT_RESULT) (marshal_data ? marshal_data : cc->callback); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - callback (data1, value_get_batch_import_result (param_values + 1), data2); -#line 10596 "BatchImport.c" -} - - -static void -g_cclosure_user_marshal_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2); - register GMarshalFunc_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (n_param_values == 3); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data1 = closure->data; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data2 = param_values->data[0].v_pointer; -#line 10622 "BatchImport.c" - } else { -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data1 = param_values->data[0].v_pointer; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - data2 = closure->data; -#line 10628 "BatchImport.c" - } -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - callback = (GMarshalFunc_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL) (marshal_data ? marshal_data : cc->callback); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - callback (data1, value_get_import_manifest (param_values + 1), value_get_batch_import_roll (param_values + 2), data2); -#line 10634 "BatchImport.c" -} - - -static void -batch_import_class_init (BatchImportClass * klass) -{ - Workers* _tmp0_; - Workers* _tmp1_; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_parent_class = g_type_class_peek_parent (klass); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_type_class_add_private (klass, sizeof (BatchImportPrivate)); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - G_OBJECT_CLASS (klass)->finalize = batch_import_finalize; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_signals[BATCH_IMPORT_STARTING_SIGNAL] = g_signal_new ("starting", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_signals[BATCH_IMPORT_PREPARING_SIGNAL] = g_signal_new ("preparing", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_signals[BATCH_IMPORT_PROGRESS_SIGNAL] = g_signal_new ("progress", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__UINT64_UINT64, G_TYPE_NONE, 2, G_TYPE_UINT64, G_TYPE_UINT64); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_signals[BATCH_IMPORT_IMPORTED_SIGNAL] = g_signal_new ("imported", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_INT, G_TYPE_NONE, 3, TYPE_MEDIA_SOURCE, gdk_pixbuf_get_type (), G_TYPE_INT); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_signals[BATCH_IMPORT_FATAL_ERROR_SIGNAL] = g_signal_new ("fatal-error", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__ENUM_STRING, G_TYPE_NONE, 2, TYPE_IMPORT_RESULT, G_TYPE_STRING); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_signals[BATCH_IMPORT_IMPORT_JOB_FAILED_SIGNAL] = g_signal_new ("import-job-failed", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__BATCH_IMPORT_RESULT, G_TYPE_NONE, 1, TYPE_BATCH_IMPORT_RESULT); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_signals[BATCH_IMPORT_IMPORT_COMPLETE_SIGNAL] = g_signal_new ("import-complete", TYPE_BATCH_IMPORT, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__IMPORT_MANIFEST_BATCH_IMPORT_ROLL, G_TYPE_NONE, 2, TYPE_IMPORT_MANIFEST, TYPE_BATCH_IMPORT_ROLL); -#line 429 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = workers_new ((guint) 1, FALSE); -#line 429 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_feeder_workers = _tmp0_; -#line 430 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = workers_new (workers_thread_per_cpu_minus_one (), FALSE); -#line 430 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_import_import_workers = _tmp1_; -#line 10671 "BatchImport.c" -} - - -static void -batch_import_instance_init (BatchImport * self) -{ - GeeHashMap* _tmp0_; - GeeLinkedList* _tmp1_; - GeeLinkedList* _tmp2_; - GeeLinkedList* _tmp3_; - GeeLinkedList* _tmp4_; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv = BATCH_IMPORT_GET_PRIVATE (self); -#line 435 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->completed_bytes = (guint64) 0; -#line 436 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->total_bytes = (guint64) 0; -#line 439 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->scheduled = FALSE; -#line 440 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->completed = FALSE; -#line 441 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->file_imports_to_perform = -1; -#line 442 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->file_imports_completed = 0; -#line 443 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->cancellable = NULL; -#line 444 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->last_preparing_ms = (gulong) 0; -#line 447 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 447 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->imported_full_md5_table = _tmp0_; -#line 449 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->throbber_id = (guint) 0; -#line 450 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->max_outstanding_import_jobs = workers_thread_per_cpu_minus_one (); -#line 451 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->untrash_duplicates = TRUE; -#line 452 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->mark_duplicates_online = TRUE; -#line 456 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = gee_linked_list_new (TYPE_PREPARED_FILE, (GBoxedCopyFunc) prepared_file_ref, (GDestroyNotify) prepared_file_unref, NULL, NULL, NULL); -#line 456 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->ready_files = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_LIST, GeeList); -#line 457 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = gee_linked_list_new (TYPE_COMPLETED_IMPORT_OBJECT, (GBoxedCopyFunc) completed_import_object_ref, (GDestroyNotify) completed_import_object_unref, NULL, NULL, NULL); -#line 457 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->ready_thumbnails = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_LIST, GeeList); -#line 459 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = gee_linked_list_new (TYPE_COMPLETED_IMPORT_OBJECT, (GBoxedCopyFunc) completed_import_object_ref, (GDestroyNotify) completed_import_object_unref, NULL, NULL, NULL); -#line 459 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->display_imported_queue = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_LIST, GeeList); -#line 461 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = gee_linked_list_new (TYPE_COMPLETED_IMPORT_OBJECT, (GBoxedCopyFunc) completed_import_object_ref, (GDestroyNotify) completed_import_object_unref, NULL, NULL, NULL); -#line 461 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->ready_sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_LIST, GeeList); -#line 10729 "BatchImport.c" -} - - -static void -batch_import_finalize (GObject * obj) -{ - BatchImport * self; - Application* _tmp0_; - Application* _tmp1_; - guint _tmp2_; -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BATCH_IMPORT, BatchImport); -#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = application_get_instance (); -#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _tmp0_; -#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_parse_name ("exiting", TYPE_APPLICATION, &_tmp2_, NULL, FALSE); -#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _batch_import_user_halt_application_exiting, self); -#line 524 "/home/jens/Source/shotwell/src/BatchImport.vala" - _application_unref0 (_tmp1_); -#line 432 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->jobs); -#line 433 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_roll_unref0 (self->priv->import_roll); -#line 434 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->priv->name); -#line 438 "/home/jens/Source/shotwell/src/BatchImport.vala" - _import_manifest_unref0 (self->priv->manifest); -#line 443 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->cancellable); -#line 445 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->skipset); -#line 447 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->imported_full_md5_table); -#line 456 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->ready_files); -#line 457 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->ready_thumbnails); -#line 459 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->display_imported_queue); -#line 461 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->ready_sources); -#line 418 "/home/jens/Source/shotwell/src/BatchImport.vala" - G_OBJECT_CLASS (batch_import_parent_class)->finalize (obj); -#line 10776 "BatchImport.c" -} - - -GType -batch_import_get_type (void) -{ - static volatile gsize batch_import_type_id__volatile = 0; - if (g_once_init_enter (&batch_import_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (BatchImportClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) batch_import_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BatchImport), 0, (GInstanceInitFunc) batch_import_instance_init, NULL }; - GType batch_import_type_id; - batch_import_type_id = g_type_register_static (G_TYPE_OBJECT, "BatchImport", &g_define_type_info, 0); - g_once_init_leave (&batch_import_type_id__volatile, batch_import_type_id); - } - return batch_import_type_id__volatile; -} - - -static DuplicatedFile* -duplicated_file_construct (GType object_type) -{ - DuplicatedFile * self = NULL; -#line 1308 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (DuplicatedFile*) g_object_new (object_type, NULL); -#line 1309 "/home/jens/Source/shotwell/src/BatchImport.vala" - _video_id_free0 (self->priv->video_id); -#line 1309 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->video_id = NULL; -#line 1310 "/home/jens/Source/shotwell/src/BatchImport.vala" - _photo_id_free0 (self->priv->photo_id); -#line 1310 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->photo_id = NULL; -#line 1311 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->file); -#line 1311 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->file = NULL; -#line 1308 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 10814 "BatchImport.c" -} - - -static DuplicatedFile* -duplicated_file_new (void) -{ -#line 1308 "/home/jens/Source/shotwell/src/BatchImport.vala" - return duplicated_file_construct (TYPE_DUPLICATED_FILE); -#line 10823 "BatchImport.c" -} - - -static gpointer -_photo_id_dup0 (gpointer self) -{ -#line 1318 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self ? photo_id_dup (self) : NULL; -#line 10832 "BatchImport.c" -} - - -DuplicatedFile* -duplicated_file_create_from_photo_id (PhotoID* photo_id) -{ - DuplicatedFile* result = NULL; - DuplicatedFile* _result_ = NULL; - DuplicatedFile* _tmp0_; - PhotoID _tmp1_; - PhotoID* _tmp2_; -#line 1314 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (photo_id != NULL, NULL); -#line 1315 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (photo_id_is_valid (photo_id), "photo_id.is_valid()"); -#line 1317 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = duplicated_file_new (); -#line 1317 "/home/jens/Source/shotwell/src/BatchImport.vala" - _result_ = _tmp0_; -#line 1318 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = *photo_id; -#line 1318 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = _photo_id_dup0 (&_tmp1_); -#line 1318 "/home/jens/Source/shotwell/src/BatchImport.vala" - _photo_id_free0 (_result_->priv->photo_id); -#line 1318 "/home/jens/Source/shotwell/src/BatchImport.vala" - _result_->priv->photo_id = _tmp2_; -#line 1319 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _result_; -#line 1319 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 10864 "BatchImport.c" -} - - -static gpointer -_video_id_dup0 (gpointer self) -{ -#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self ? video_id_dup (self) : NULL; -#line 10873 "BatchImport.c" -} - - -DuplicatedFile* -duplicated_file_create_from_video_id (VideoID* video_id) -{ - DuplicatedFile* result = NULL; - DuplicatedFile* _result_ = NULL; - DuplicatedFile* _tmp0_; - VideoID _tmp1_; - VideoID* _tmp2_; -#line 1322 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (video_id != NULL, NULL); -#line 1323 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (video_id_is_valid (video_id), "video_id.is_valid()"); -#line 1325 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = duplicated_file_new (); -#line 1325 "/home/jens/Source/shotwell/src/BatchImport.vala" - _result_ = _tmp0_; -#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = *video_id; -#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = _video_id_dup0 (&_tmp1_); -#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala" - _video_id_free0 (_result_->priv->video_id); -#line 1326 "/home/jens/Source/shotwell/src/BatchImport.vala" - _result_->priv->video_id = _tmp2_; -#line 1327 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _result_; -#line 1327 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 10905 "BatchImport.c" -} - - -DuplicatedFile* -duplicated_file_create_from_file (GFile* file) -{ - DuplicatedFile* result = NULL; - DuplicatedFile* _result_ = NULL; - DuplicatedFile* _tmp0_; - GFile* _tmp1_; -#line 1330 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 1331 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = duplicated_file_new (); -#line 1331 "/home/jens/Source/shotwell/src/BatchImport.vala" - _result_ = _tmp0_; -#line 1333 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _g_object_ref0 (file); -#line 1333 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_result_->priv->file); -#line 1333 "/home/jens/Source/shotwell/src/BatchImport.vala" - _result_->priv->file = _tmp1_; -#line 1335 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _result_; -#line 1335 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 10932 "BatchImport.c" -} - - -GFile* -duplicated_file_get_file (DuplicatedFile* self) -{ - GFile* result = NULL; - GFile* _tmp0_; -#line 1338 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_DUPLICATED_FILE (self), NULL); -#line 1339 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->file; -#line 1339 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp0_ != NULL) { -#line 10947 "BatchImport.c" - GFile* _tmp1_; - GFile* _tmp2_; -#line 1340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = self->priv->file; -#line 1340 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 1340 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp2_; -#line 1340 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 10958 "BatchImport.c" - } else { - PhotoID* _tmp3_; -#line 1341 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = self->priv->photo_id; -#line 1341 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp3_ != NULL) { -#line 10965 "BatchImport.c" - Photo* photo_object = NULL; - LibraryPhotoSourceCollection* _tmp4_; - PhotoID* _tmp5_; - PhotoID _tmp6_; - LibraryPhoto* _tmp7_; - Photo* _tmp8_; - GFile* _tmp9_; - GFile* _tmp10_; - GFile* _tmp11_; -#line 1342 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = library_photo_global; -#line 1342 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = self->priv->photo_id; -#line 1342 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = *_tmp5_; -#line 1342 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = library_photo_source_collection_fetch (_tmp4_, &_tmp6_); -#line 1342 "/home/jens/Source/shotwell/src/BatchImport.vala" - photo_object = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO, Photo); -#line 1343 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = photo_object; -#line 1343 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1343 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->file); -#line 1343 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->file = _tmp9_; -#line 1344 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = self->priv->file; -#line 1344 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = _g_object_ref0 (_tmp10_); -#line 1344 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp11_; -#line 1344 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (photo_object); -#line 1344 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 11003 "BatchImport.c" - } else { - VideoID* _tmp12_; -#line 1345 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = self->priv->video_id; -#line 1345 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp12_ != NULL) { -#line 11010 "BatchImport.c" - Video* video_object = NULL; - VideoSourceCollection* _tmp13_; - VideoID* _tmp14_; - VideoID _tmp15_; - Video* _tmp16_; - Video* _tmp17_; - GFile* _tmp18_; - GFile* _tmp19_; - GFile* _tmp20_; -#line 1346 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = video_global; -#line 1346 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = self->priv->video_id; -#line 1346 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = *_tmp14_; -#line 1346 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = video_source_collection_fetch (_tmp13_, &_tmp15_); -#line 1346 "/home/jens/Source/shotwell/src/BatchImport.vala" - video_object = G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_VIDEO, Video); -#line 1347 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = video_object; -#line 1347 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1347 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->file); -#line 1347 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->file = _tmp18_; -#line 1348 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp19_ = self->priv->file; -#line 1348 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp20_ = _g_object_ref0 (_tmp19_); -#line 1348 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp20_; -#line 1348 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (video_object); -#line 1348 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 11048 "BatchImport.c" - } else { -#line 1350 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_assert_not_reached (); -#line 11052 "BatchImport.c" - } - } - } -} - - -static void -duplicated_file_class_init (DuplicatedFileClass * klass) -{ -#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala" - duplicated_file_parent_class = g_type_class_peek_parent (klass); -#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_type_class_add_private (klass, sizeof (DuplicatedFilePrivate)); -#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala" - G_OBJECT_CLASS (klass)->finalize = duplicated_file_finalize; -#line 11068 "BatchImport.c" -} - - -static void -duplicated_file_instance_init (DuplicatedFile * self) -{ -#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv = DUPLICATED_FILE_GET_PRIVATE (self); -#line 11077 "BatchImport.c" -} - - -static void -duplicated_file_finalize (GObject * obj) -{ - DuplicatedFile * self; -#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DUPLICATED_FILE, DuplicatedFile); -#line 1304 "/home/jens/Source/shotwell/src/BatchImport.vala" - _video_id_free0 (self->priv->video_id); -#line 1305 "/home/jens/Source/shotwell/src/BatchImport.vala" - _photo_id_free0 (self->priv->photo_id); -#line 1306 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->file); -#line 1303 "/home/jens/Source/shotwell/src/BatchImport.vala" - G_OBJECT_CLASS (duplicated_file_parent_class)->finalize (obj); -#line 11095 "BatchImport.c" -} - - -GType -duplicated_file_get_type (void) -{ - static volatile gsize duplicated_file_type_id__volatile = 0; - if (g_once_init_enter (&duplicated_file_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DuplicatedFileClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) duplicated_file_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DuplicatedFile), 0, (GInstanceInitFunc) duplicated_file_instance_init, NULL }; - GType duplicated_file_type_id; - duplicated_file_type_id = g_type_register_static (G_TYPE_OBJECT, "DuplicatedFile", &g_define_type_info, 0); - g_once_init_leave (&duplicated_file_type_id__volatile, duplicated_file_type_id); - } - return duplicated_file_type_id__volatile; -} - - -BackgroundImportJob* -background_import_job_construct (GType object_type, - BatchImport* owner, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target) -{ - BackgroundImportJob* self = NULL; -#line 1377 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT (owner), NULL); -#line 1377 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL); -#line 1379 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (BackgroundImportJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), callback, callback_target, cancellable, cancellation, cancellation_target, NULL); -#line 1377 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 11131 "BatchImport.c" -} - - -ImportResult -background_import_job_abort_check (BackgroundImportJob* self) -{ - ImportResult result = 0; - gboolean _tmp0_ = FALSE; - ImportResult _tmp1_; - ImportResult _tmp2_; -#line 1384 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BACKGROUND_IMPORT_JOB (self), 0); -#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = self->abort_flag; -#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp1_ == IMPORT_RESULT_SUCCESS) { -#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = background_job_is_cancelled (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 11150 "BatchImport.c" - } else { -#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = FALSE; -#line 11154 "BatchImport.c" - } -#line 1385 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp0_) { -#line 1386 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->abort_flag = IMPORT_RESULT_USER_ABORT; -#line 11160 "BatchImport.c" - } -#line 1388 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = self->abort_flag; -#line 1388 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp2_; -#line 1388 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 11168 "BatchImport.c" -} - - -void -background_import_job_abort (BackgroundImportJob* self, - ImportResult _result_) -{ - ImportResult _tmp0_; -#line 1391 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BACKGROUND_IMPORT_JOB (self)); -#line 1393 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->abort_flag; -#line 1393 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp0_ == IMPORT_RESULT_SUCCESS) { -#line 1394 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->abort_flag = _result_; -#line 11185 "BatchImport.c" - } -} - - -void -background_import_job_report_failure (BackgroundImportJob* self, - BatchImportJob* job, - GFile* file, - const gchar* src_identifier, - const gchar* dest_identifier, - ImportResult _result_) -{ - GeeList* _tmp2_; - BatchImportResult* _tmp3_; - BatchImportResult* _tmp4_; -#line 1397 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BACKGROUND_IMPORT_JOB (self)); -#line 1397 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT_JOB (job)); -#line 1397 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail ((file == NULL) || G_IS_FILE (file)); -#line 1397 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (src_identifier != NULL); -#line 1397 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (dest_identifier != NULL); -#line 1399 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (_result_ != IMPORT_RESULT_SUCCESS, "result != ImportResult.SUCCESS"); -#line 1402 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (import_result_is_abort (_result_)) { -#line 1403 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_import_job_abort (self, _result_); -#line 11217 "BatchImport.c" - } else { - gchar* _tmp0_; - gchar* _tmp1_; -#line 1405 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = import_result_to_string (_result_); -#line 1405 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _tmp0_; -#line 1405 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_warning ("BatchImport.vala:1405: Import failure %s: %s", src_identifier, _tmp1_); -#line 1405 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp1_); -#line 11229 "BatchImport.c" - } -#line 1407 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = self->failed; -#line 1407 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = batch_import_result_new (job, file, src_identifier, dest_identifier, NULL, _result_); -#line 1407 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _tmp3_; -#line 1407 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), _tmp4_); -#line 1407 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (_tmp4_); -#line 11241 "BatchImport.c" -} - - -void -background_import_job_report_error (BackgroundImportJob* self, - BatchImportJob* job, - GFile* file, - const gchar* src_identifier, - const gchar* dest_identifier, - GError* err, - ImportResult default_result) -{ - ImportResult _result_ = 0; - const gchar* _tmp0_; - ImportResult _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - ImportResult _tmp4_; - GeeList* _tmp6_; - BatchImportResult* _tmp7_; - BatchImportResult* _tmp8_; -#line 1411 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BACKGROUND_IMPORT_JOB (self)); -#line 1411 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT_JOB (job)); -#line 1411 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail ((file == NULL) || G_IS_FILE (file)); -#line 1411 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (src_identifier != NULL); -#line 1411 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (dest_identifier != NULL); -#line 1413 "/home/jens/Source/shotwell/src/BatchImport.vala" - _result_ = import_result_convert_error (err, default_result); -#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = err->message; -#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _result_; -#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = import_result_to_string (_tmp1_); -#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = _tmp2_; -#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_warning ("BatchImport.vala:1415: Import error %s: %s (%s)", src_identifier, _tmp0_, _tmp3_); -#line 1415 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp3_); -#line 1417 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _result_; -#line 1417 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (import_result_is_abort (_tmp4_)) { -#line 11291 "BatchImport.c" - ImportResult _tmp5_; -#line 1418 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = _result_; -#line 1418 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_import_job_abort (self, _tmp5_); -#line 11297 "BatchImport.c" - } -#line 1420 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = self->failed; -#line 1420 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = batch_import_result_new_from_error (job, file, src_identifier, dest_identifier, err, default_result); -#line 1420 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = _tmp7_; -#line 1420 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), _tmp8_); -#line 1420 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (_tmp8_); -#line 11309 "BatchImport.c" -} - - -static void -background_import_job_class_init (BackgroundImportJobClass * klass) -{ -#line 1373 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_import_job_parent_class = g_type_class_peek_parent (klass); -#line 1373 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BackgroundJobClass *) klass)->finalize = background_import_job_finalize; -#line 11320 "BatchImport.c" -} - - -static void -background_import_job_instance_init (BackgroundImportJob * self) -{ - GeeArrayList* _tmp0_; -#line 1374 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->abort_flag = IMPORT_RESULT_SUCCESS; -#line 1375 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = gee_array_list_new (TYPE_BATCH_IMPORT_RESULT, (GBoxedCopyFunc) batch_import_result_ref, (GDestroyNotify) batch_import_result_unref, NULL, NULL, NULL); -#line 1375 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->failed = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList); -#line 11334 "BatchImport.c" -} - - -static void -background_import_job_finalize (BackgroundJob * obj) -{ - BackgroundImportJob * self; -#line 1373 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob); -#line 1375 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->failed); -#line 1373 "/home/jens/Source/shotwell/src/BatchImport.vala" - BACKGROUND_JOB_CLASS (background_import_job_parent_class)->finalize (obj); -#line 11348 "BatchImport.c" -} - - -GType -background_import_job_get_type (void) -{ - static volatile gsize background_import_job_type_id__volatile = 0; - if (g_once_init_enter (&background_import_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (BackgroundImportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) background_import_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BackgroundImportJob), 0, (GInstanceInitFunc) background_import_job_instance_init, NULL }; - GType background_import_job_type_id; - background_import_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "BackgroundImportJob", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&background_import_job_type_id__volatile, background_import_job_type_id); - } - return background_import_job_type_id__volatile; -} - - -FileToPrepare* -file_to_prepare_construct (GType object_type, - BatchImportJob* job, - GFile* file, - gboolean copy_to_library) -{ - FileToPrepare* self = NULL; - BatchImportJob* _tmp0_; - GFile* _tmp1_; -#line 1431 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), NULL); -#line 1431 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL); -#line 1431 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (FileToPrepare*) g_type_create_instance (object_type); -#line 1432 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _batch_import_job_ref0 (job); -#line 1432 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (self->job); -#line 1432 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->job = _tmp0_; -#line 1433 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _g_object_ref0 (file); -#line 1433 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->file); -#line 1433 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->file = _tmp1_; -#line 1434 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->copy_to_library = copy_to_library; -#line 1431 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 11397 "BatchImport.c" -} - - -FileToPrepare* -file_to_prepare_new (BatchImportJob* job, - GFile* file, - gboolean copy_to_library) -{ -#line 1431 "/home/jens/Source/shotwell/src/BatchImport.vala" - return file_to_prepare_construct (TYPE_FILE_TO_PREPARE, job, file, copy_to_library); -#line 11408 "BatchImport.c" -} - - -static gpointer -_file_to_prepare_ref0 (gpointer self) -{ -#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self ? file_to_prepare_ref (self) : NULL; -#line 11417 "BatchImport.c" -} - - -void -file_to_prepare_set_associated (FileToPrepare* self, - FileToPrepare* a) -{ - FileToPrepare* _tmp0_; -#line 1437 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_FILE_TO_PREPARE (self)); -#line 1437 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail ((a == NULL) || IS_FILE_TO_PREPARE (a)); -#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _file_to_prepare_ref0 (a); -#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_unref0 (self->associated); -#line 1438 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->associated = _tmp0_; -#line 11436 "BatchImport.c" -} - - -gchar* -file_to_prepare_get_parent_path (FileToPrepare* self) -{ - gchar* result = NULL; - gchar* _tmp0_ = NULL; - GFile* _tmp1_; -#line 1441 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_FILE_TO_PREPARE (self), NULL); -#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = self->file; -#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp1_ != NULL) { -#line 11452 "BatchImport.c" - GFile* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - gchar* _tmp5_; -#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = self->file; -#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = g_file_get_parent (_tmp2_); -#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _tmp3_; -#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = g_file_get_path (_tmp4_); -#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp0_); -#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _tmp5_; -#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp4_); -#line 11471 "BatchImport.c" - } else { - BatchImportJob* _tmp6_; - gchar* _tmp7_; -#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = self->job; -#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = batch_import_job_get_path (_tmp6_); -#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp0_); -#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _tmp7_; -#line 11483 "BatchImport.c" - } -#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp0_; -#line 1442 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 11489 "BatchImport.c" -} - - -gchar* -file_to_prepare_get_path (FileToPrepare* self) -{ - gchar* result = NULL; - gchar* _tmp0_ = NULL; - GFile* _tmp1_; -#line 1445 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_FILE_TO_PREPARE (self), NULL); -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = self->file; -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp1_ != NULL) { -#line 11505 "BatchImport.c" - GFile* _tmp2_; - gchar* _tmp3_; -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = self->file; -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = g_file_get_path (_tmp2_); -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp0_); -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _tmp3_; -#line 11516 "BatchImport.c" - } else { - BatchImportJob* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GFile* _tmp7_; - GFile* _tmp8_; - BatchImportJob* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - GFile* _tmp12_; - GFile* _tmp13_; - gchar* _tmp14_; -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = self->job; -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = batch_import_job_get_path (_tmp4_); -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = _tmp5_; -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = g_file_new_for_path (_tmp6_); -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = _tmp7_; -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = self->job; -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = batch_import_job_get_basename (_tmp9_); -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = _tmp10_; -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = g_file_get_child (_tmp8_, _tmp11_); -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = _tmp12_; -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = g_file_get_path (_tmp13_); -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp0_); -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _tmp14_; -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp13_); -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp11_); -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp8_); -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp6_); -#line 11563 "BatchImport.c" - } -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp0_; -#line 1446 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 11569 "BatchImport.c" -} - - -gchar* -file_to_prepare_get_basename (FileToPrepare* self) -{ - gchar* result = NULL; - gchar* _tmp0_ = NULL; - GFile* _tmp1_; -#line 1450 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_FILE_TO_PREPARE (self), NULL); -#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = self->file; -#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp1_ != NULL) { -#line 11585 "BatchImport.c" - GFile* _tmp2_; - gchar* _tmp3_; -#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = self->file; -#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = g_file_get_basename (_tmp2_); -#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp0_); -#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _tmp3_; -#line 11596 "BatchImport.c" - } else { - BatchImportJob* _tmp4_; - gchar* _tmp5_; -#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = self->job; -#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = batch_import_job_get_basename (_tmp4_); -#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp0_); -#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _tmp5_; -#line 11608 "BatchImport.c" - } -#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp0_; -#line 1451 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 11614 "BatchImport.c" -} - - -gboolean -file_to_prepare_is_directory (FileToPrepare* self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - GFile* _tmp1_; -#line 1454 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_FILE_TO_PREPARE (self), FALSE); -#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = self->file; -#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp1_ != NULL) { -#line 11630 "BatchImport.c" - GFile* _tmp2_; -#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = self->file; -#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = g_file_query_file_type (_tmp2_, G_FILE_QUERY_INFO_NONE, NULL) == G_FILE_TYPE_DIRECTORY; -#line 11636 "BatchImport.c" - } else { - BatchImportJob* _tmp3_; -#line 1456 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = self->job; -#line 1456 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = batch_import_job_is_directory (_tmp3_); -#line 11643 "BatchImport.c" - } -#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp0_; -#line 1455 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 11649 "BatchImport.c" -} - - -static void -value_file_to_prepare_init (GValue* value) -{ -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 11658 "BatchImport.c" -} - - -static void -value_file_to_prepare_free_value (GValue* value) -{ -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (value->data[0].v_pointer) { -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - file_to_prepare_unref (value->data[0].v_pointer); -#line 11669 "BatchImport.c" - } -} - - -static void -value_file_to_prepare_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (src_value->data[0].v_pointer) { -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - dest_value->data[0].v_pointer = file_to_prepare_ref (src_value->data[0].v_pointer); -#line 11682 "BatchImport.c" - } else { -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - dest_value->data[0].v_pointer = NULL; -#line 11686 "BatchImport.c" - } -} - - -static gpointer -value_file_to_prepare_peek_pointer (const GValue* value) -{ -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - return value->data[0].v_pointer; -#line 11696 "BatchImport.c" -} - - -static gchar* -value_file_to_prepare_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (collect_values[0].v_pointer) { -#line 11708 "BatchImport.c" - FileToPrepare * object; - object = collect_values[0].v_pointer; -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (object->parent_instance.g_class == NULL) { -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 11715 "BatchImport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 11719 "BatchImport.c" - } -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = file_to_prepare_ref (object); -#line 11723 "BatchImport.c" - } else { -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 11727 "BatchImport.c" - } -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 11731 "BatchImport.c" -} - - -static gchar* -value_file_to_prepare_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - FileToPrepare ** object_p; - object_p = collect_values[0].v_pointer; -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!object_p) { -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 11747 "BatchImport.c" - } -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!value->data[0].v_pointer) { -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = NULL; -#line 11753 "BatchImport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = value->data[0].v_pointer; -#line 11757 "BatchImport.c" - } else { -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = file_to_prepare_ref (value->data[0].v_pointer); -#line 11761 "BatchImport.c" - } -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 11765 "BatchImport.c" -} - - -GParamSpec* -param_spec_file_to_prepare (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecFileToPrepare* spec; -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_FILE_TO_PREPARE), NULL); -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - return G_PARAM_SPEC (spec); -#line 11785 "BatchImport.c" -} - - -gpointer -value_get_file_to_prepare (const GValue* value) -{ -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_FILE_TO_PREPARE), NULL); -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - return value->data[0].v_pointer; -#line 11796 "BatchImport.c" -} - - -void -value_set_file_to_prepare (GValue* value, - gpointer v_object) -{ - FileToPrepare * old; -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_FILE_TO_PREPARE)); -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - old = value->data[0].v_pointer; -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (v_object) { -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_FILE_TO_PREPARE)); -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = v_object; -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - file_to_prepare_ref (value->data[0].v_pointer); -#line 11819 "BatchImport.c" - } else { -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 11823 "BatchImport.c" - } -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (old) { -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - file_to_prepare_unref (old); -#line 11829 "BatchImport.c" - } -} - - -void -value_take_file_to_prepare (GValue* value, - gpointer v_object) -{ - FileToPrepare * old; -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_FILE_TO_PREPARE)); -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - old = value->data[0].v_pointer; -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (v_object) { -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_FILE_TO_PREPARE)); -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = v_object; -#line 11851 "BatchImport.c" - } else { -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 11855 "BatchImport.c" - } -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (old) { -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - file_to_prepare_unref (old); -#line 11861 "BatchImport.c" - } -} - - -static void -file_to_prepare_class_init (FileToPrepareClass * klass) -{ -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - file_to_prepare_parent_class = g_type_class_peek_parent (klass); -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((FileToPrepareClass *) klass)->finalize = file_to_prepare_finalize; -#line 11873 "BatchImport.c" -} - - -static void -file_to_prepare_instance_init (FileToPrepare * self) -{ -#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->associated = NULL; -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->ref_count = 1; -#line 11884 "BatchImport.c" -} - - -static void -file_to_prepare_finalize (FileToPrepare * obj) -{ - FileToPrepare * self; -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FILE_TO_PREPARE, FileToPrepare); -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_handlers_destroy (self); -#line 1426 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (self->job); -#line 1427 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->file); -#line 1429 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_unref0 (self->associated); -#line 11902 "BatchImport.c" -} - - -GType -file_to_prepare_get_type (void) -{ - static volatile gsize file_to_prepare_type_id__volatile = 0; - if (g_once_init_enter (&file_to_prepare_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_file_to_prepare_init, value_file_to_prepare_free_value, value_file_to_prepare_copy_value, value_file_to_prepare_peek_pointer, "p", value_file_to_prepare_collect_value, "p", value_file_to_prepare_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (FileToPrepareClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) file_to_prepare_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FileToPrepare), 0, (GInstanceInitFunc) file_to_prepare_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType file_to_prepare_type_id; - file_to_prepare_type_id = g_type_register_fundamental (g_type_fundamental_next (), "FileToPrepare", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&file_to_prepare_type_id__volatile, file_to_prepare_type_id); - } - return file_to_prepare_type_id__volatile; -} - - -gpointer -file_to_prepare_ref (gpointer instance) -{ - FileToPrepare * self; - self = instance; -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_atomic_int_inc (&self->ref_count); -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - return instance; -#line 11931 "BatchImport.c" -} - - -void -file_to_prepare_unref (gpointer instance) -{ - FileToPrepare * self; - self = instance; -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - FILE_TO_PREPARE_GET_CLASS (self)->finalize (self); -#line 1425 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 11946 "BatchImport.c" - } -} - - -WorkSniffer* -work_sniffer_construct (GType object_type, - BatchImport* owner, - GeeIterable* jobs, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target, - GeeHashSet* skipset) -{ - WorkSniffer* self = NULL; - GeeIterable* _tmp0_; - GeeHashSet* _tmp1_; -#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT (owner), NULL); -#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (jobs), NULL); -#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL); -#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail ((skipset == NULL) || GEE_IS_HASH_SET (skipset), NULL); -#line 1469 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (WorkSniffer*) background_import_job_construct (object_type, owner, callback, callback_target, cancellable, cancellation, cancellation_target); -#line 1471 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _g_object_ref0 (jobs); -#line 1471 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->jobs); -#line 1471 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->jobs = _tmp0_; -#line 1472 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _g_object_ref0 (skipset); -#line 1472 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->skipset); -#line 1472 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->skipset = _tmp1_; -#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 11989 "BatchImport.c" -} - - -WorkSniffer* -work_sniffer_new (BatchImport* owner, - GeeIterable* jobs, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target, - GeeHashSet* skipset) -{ -#line 1467 "/home/jens/Source/shotwell/src/BatchImport.vala" - return work_sniffer_construct (TYPE_WORK_SNIFFER, owner, jobs, callback, callback_target, cancellable, cancellation, cancellation_target, skipset); -#line 12005 "BatchImport.c" -} - - -static gint -__lambda11_ (WorkSniffer* self, - FileToPrepare* a, - FileToPrepare* b) -{ - gint result = 0; - FileToPrepare* file_a = NULL; - FileToPrepare* _tmp0_; - FileToPrepare* file_b = NULL; - FileToPrepare* _tmp1_; - gchar* sa = NULL; - gchar* _tmp2_; - gchar* sb = NULL; - gchar* _tmp3_; -#line 1507 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_FILE_TO_PREPARE (a), 0); -#line 1507 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_FILE_TO_PREPARE (b), 0); -#line 1508 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _file_to_prepare_ref0 (G_TYPE_CHECK_INSTANCE_CAST (a, TYPE_FILE_TO_PREPARE, FileToPrepare)); -#line 1508 "/home/jens/Source/shotwell/src/BatchImport.vala" - file_a = _tmp0_; -#line 1509 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _file_to_prepare_ref0 (G_TYPE_CHECK_INSTANCE_CAST (b, TYPE_FILE_TO_PREPARE, FileToPrepare)); -#line 1509 "/home/jens/Source/shotwell/src/BatchImport.vala" - file_b = _tmp1_; -#line 1510 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = file_to_prepare_get_path (file_a); -#line 1510 "/home/jens/Source/shotwell/src/BatchImport.vala" - sa = _tmp2_; -#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = file_to_prepare_get_path (file_b); -#line 1511 "/home/jens/Source/shotwell/src/BatchImport.vala" - sb = _tmp3_; -#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = utf8_cs_compare (sa, sb); -#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (sb); -#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (sa); -#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_unref0 (file_b); -#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_unref0 (file_a); -#line 1512 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 12055 "BatchImport.c" -} - - -static gint -___lambda11__gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = __lambda11_ ((WorkSniffer*) self, (FileToPrepare*) a, (FileToPrepare*) b); -#line 1507 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 12068 "BatchImport.c" -} - - -static void -work_sniffer_real_execute (BackgroundJob* base) -{ - WorkSniffer * self; - GeeList* sorted = NULL; - GeeArrayList* _tmp23_; - GeeList* _tmp38_; - GError * _inner_error_ = NULL; -#line 1475 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_WORK_SNIFFER, WorkSniffer); -#line 12082 "BatchImport.c" - { - GeeIterator* _job_it = NULL; - GeeIterable* _tmp0_; - GeeIterator* _tmp1_; -#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->priv->jobs; -#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = gee_iterable_iterator (_tmp0_); -#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala" - _job_it = _tmp1_; -#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala" - while (TRUE) { -#line 12095 "BatchImport.c" - GeeIterator* _tmp2_; - BatchImportJob* job = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - ImportResult _result_ = 0; - ImportResult _tmp5_; -#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = _job_it; -#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 12108 "BatchImport.c" - } -#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = _job_it; -#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala" - job = (BatchImportJob*) _tmp4_; -#line 1480 "/home/jens/Source/shotwell/src/BatchImport.vala" - _result_ = background_import_job_abort_check (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob)); -#line 1481 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = _result_; -#line 1481 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp5_ != IMPORT_RESULT_SUCCESS) { -#line 12122 "BatchImport.c" - BatchImportJob* _tmp6_; - BatchImportJob* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - BatchImportJob* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - ImportResult _tmp13_; -#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = job; -#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = job; -#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = batch_import_job_get_source_identifier (_tmp7_); -#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = _tmp8_; -#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = job; -#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = batch_import_job_get_dest_identifier (_tmp10_); -#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = _tmp11_; -#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = _result_; -#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp6_, NULL, _tmp9_, _tmp12_, _tmp13_); -#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp12_); -#line 1482 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp9_); -#line 1485 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (job); -#line 1485 "/home/jens/Source/shotwell/src/BatchImport.vala" - continue; -#line 12157 "BatchImport.c" - } - { - BatchImportJob* _tmp14_; -#line 1489 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = job; -#line 1489 "/home/jens/Source/shotwell/src/BatchImport.vala" - work_sniffer_sniff_job (self, _tmp14_, &_inner_error_); -#line 1489 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12167 "BatchImport.c" - goto __catch426_g_error; - } - } - goto __finally426; - __catch426_g_error: - { - GError* err = NULL; - BatchImportJob* _tmp15_; - BatchImportJob* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - BatchImportJob* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - GError* _tmp22_; -#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala" - err = _inner_error_; -#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala" - _inner_error_ = NULL; -#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = job; -#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = job; -#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = batch_import_job_get_source_identifier (_tmp16_); -#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = _tmp17_; -#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp19_ = job; -#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp20_ = batch_import_job_get_dest_identifier (_tmp19_); -#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp21_ = _tmp20_; -#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp22_ = err; -#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_import_job_report_error (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp15_, NULL, _tmp18_, _tmp21_, _tmp22_, IMPORT_RESULT_FILE_ERROR); -#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp21_); -#line 1491 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp18_); -#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (err); -#line 12211 "BatchImport.c" - } - __finally426: -#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (job); -#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_job_it); -#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_clear_error (&_inner_error_); -#line 1488 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 12226 "BatchImport.c" - } -#line 1495 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (background_job_is_cancelled (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob))) { -#line 1496 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (job); -#line 1496 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 12234 "BatchImport.c" - } -#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (job); -#line 12238 "BatchImport.c" - } -#line 1479 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_job_it); -#line 12242 "BatchImport.c" - } -#line 1502 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp23_ = gee_array_list_new (TYPE_FILE_TO_PREPARE, (GBoxedCopyFunc) file_to_prepare_ref, (GDestroyNotify) file_to_prepare_unref, NULL, NULL, NULL); -#line 1502 "/home/jens/Source/shotwell/src/BatchImport.vala" - sorted = G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_LIST, GeeList); -#line 12248 "BatchImport.c" - { - GeeList* _ftp_list = NULL; - GeeList* _tmp24_; - GeeList* _tmp25_; - gint _ftp_size = 0; - GeeList* _tmp26_; - gint _tmp27_; - gint _tmp28_; - gint _ftp_index = 0; -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp24_ = self->files_to_prepare; -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp25_ = _g_object_ref0 (_tmp24_); -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _ftp_list = _tmp25_; -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp26_ = _ftp_list; -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp27_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp28_ = _tmp27_; -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _ftp_size = _tmp28_; -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _ftp_index = -1; -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - while (TRUE) { -#line 12276 "BatchImport.c" - gint _tmp29_; - gint _tmp30_; - gint _tmp31_; - FileToPrepare* ftp = NULL; - GeeList* _tmp32_; - gint _tmp33_; - gpointer _tmp34_; - FileToPrepare* _tmp35_; -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp29_ = _ftp_index; -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _ftp_index = _tmp29_ + 1; -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp30_ = _ftp_index; -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp31_ = _ftp_size; -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!(_tmp30_ < _tmp31_)) { -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 12297 "BatchImport.c" - } -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp32_ = _ftp_list; -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp33_ = _ftp_index; -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp34_ = gee_list_get (_tmp32_, _tmp33_); -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - ftp = (FileToPrepare*) _tmp34_; -#line 1504 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp35_ = ftp; -#line 1504 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!file_to_prepare_is_directory (_tmp35_)) { -#line 12311 "BatchImport.c" - GeeList* _tmp36_; - FileToPrepare* _tmp37_; -#line 1505 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp36_ = sorted; -#line 1505 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp37_ = ftp; -#line 1505 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_COLLECTION, GeeCollection), _tmp37_); -#line 12320 "BatchImport.c" - } -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_unref0 (ftp); -#line 12324 "BatchImport.c" - } -#line 1503 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_ftp_list); -#line 12328 "BatchImport.c" - } -#line 1507 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp38_ = sorted; -#line 1507 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_list_sort (_tmp38_, ___lambda11__gcompare_data_func, background_job_ref (self), background_job_unref); -#line 12334 "BatchImport.c" - { - gint i = 0; -#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala" - i = 0; -#line 12339 "BatchImport.c" - { - gboolean _tmp39_ = FALSE; -#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp39_ = TRUE; -#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala" - while (TRUE) { -#line 12346 "BatchImport.c" - gint _tmp41_; - GeeList* _tmp42_; - gint _tmp43_; - gint _tmp44_; - gchar* name = NULL; - gchar* ext = NULL; - FileToPrepare* ftp = NULL; - GeeList* _tmp45_; - gint _tmp46_; - gpointer _tmp47_; - FileToPrepare* _tmp48_; - gchar* _tmp49_; - gchar* _tmp50_; - gchar* _tmp51_ = NULL; - gchar* _tmp52_ = NULL; - const gchar* _tmp53_; - RawFileFormatProperties* _tmp54_; - RawFileFormatProperties* _tmp55_; - const gchar* _tmp56_; - gboolean _tmp57_; -#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!_tmp39_) { -#line 12369 "BatchImport.c" - gint _tmp40_; -#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp40_ = i; -#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala" - i = _tmp40_ + 1; -#line 12375 "BatchImport.c" - } -#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp39_ = FALSE; -#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp41_ = i; -#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp42_ = sorted; -#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp43_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp44_ = _tmp43_; -#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!(_tmp41_ < _tmp44_)) { -#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 12391 "BatchImport.c" - } -#line 1519 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp45_ = sorted; -#line 1519 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp46_ = i; -#line 1519 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp47_ = gee_list_get (_tmp45_, _tmp46_); -#line 1519 "/home/jens/Source/shotwell/src/BatchImport.vala" - ftp = (FileToPrepare*) _tmp47_; -#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp48_ = ftp; -#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp49_ = file_to_prepare_get_basename (_tmp48_); -#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp50_ = _tmp49_; -#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala" - disassemble_filename (_tmp50_, &_tmp51_, &_tmp52_); -#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (name); -#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala" - name = _tmp51_; -#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (ext); -#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala" - ext = _tmp52_; -#line 1520 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp50_); -#line 1522 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp53_ = ext; -#line 1522 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (is_string_empty (_tmp53_)) { -#line 1523 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_unref0 (ftp); -#line 1523 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (ext); -#line 1523 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (name); -#line 1523 "/home/jens/Source/shotwell/src/BatchImport.vala" - continue; -#line 12431 "BatchImport.c" - } -#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp54_ = raw_file_format_properties_get_instance (); -#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp55_ = _tmp54_; -#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp56_ = ext; -#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp57_ = photo_file_format_properties_is_recognized_extension (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties), _tmp56_); -#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala" - _photo_file_format_properties_unref0 (_tmp55_); -#line 1525 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp57_) { -#line 12445 "BatchImport.c" - gboolean _tmp58_ = FALSE; - gint _tmp59_; -#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp59_ = i; -#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp59_ > 0) { -#line 12452 "BatchImport.c" - FileToPrepare* _tmp60_; - GeeList* _tmp61_; - gint _tmp62_; - gpointer _tmp63_; - FileToPrepare* _tmp64_; -#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp60_ = ftp; -#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp61_ = sorted; -#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp62_ = i; -#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp63_ = gee_list_get (_tmp61_, _tmp62_ - 1); -#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp64_ = (FileToPrepare*) _tmp63_; -#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp58_ = work_sniffer_is_paired (self, _tmp60_, _tmp64_); -#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_unref0 (_tmp64_); -#line 12472 "BatchImport.c" - } else { -#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp58_ = FALSE; -#line 12476 "BatchImport.c" - } -#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp58_) { -#line 12480 "BatchImport.c" - FileToPrepare* associated_file = NULL; - GeeList* _tmp65_; - gint _tmp66_; - gpointer _tmp67_; - GeeList* _tmp68_; - FileToPrepare* _tmp69_; - FileToPrepare* _tmp70_; - FileToPrepare* _tmp71_; -#line 1529 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp65_ = sorted; -#line 1529 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp66_ = i; -#line 1529 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp67_ = gee_list_get (_tmp65_, _tmp66_ - 1); -#line 1529 "/home/jens/Source/shotwell/src/BatchImport.vala" - associated_file = (FileToPrepare*) _tmp67_; -#line 1530 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp68_ = self->files_to_prepare; -#line 1530 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp69_ = associated_file; -#line 1530 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GEE_TYPE_COLLECTION, GeeCollection), _tmp69_); -#line 1531 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp70_ = ftp; -#line 1531 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp71_ = associated_file; -#line 1531 "/home/jens/Source/shotwell/src/BatchImport.vala" - file_to_prepare_set_associated (_tmp70_, _tmp71_); -#line 1528 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_unref0 (associated_file); -#line 12511 "BatchImport.c" - } else { - gboolean _tmp72_ = FALSE; - gint _tmp73_; - GeeList* _tmp74_; - gint _tmp75_; - gint _tmp76_; -#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp73_ = i; -#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp74_ = sorted; -#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp75_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp76_ = _tmp75_; -#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp73_ < (_tmp76_ - 1)) { -#line 12528 "BatchImport.c" - FileToPrepare* _tmp77_; - GeeList* _tmp78_; - gint _tmp79_; - gpointer _tmp80_; - FileToPrepare* _tmp81_; -#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp77_ = ftp; -#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp78_ = sorted; -#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp79_ = i; -#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp80_ = gee_list_get (_tmp78_, _tmp79_ + 1); -#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp81_ = (FileToPrepare*) _tmp80_; -#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp72_ = work_sniffer_is_paired (self, _tmp77_, _tmp81_); -#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_unref0 (_tmp81_); -#line 12548 "BatchImport.c" - } else { -#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp72_ = FALSE; -#line 12552 "BatchImport.c" - } -#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp72_) { -#line 12556 "BatchImport.c" - FileToPrepare* associated_file = NULL; - GeeList* _tmp82_; - gint _tmp83_; - gpointer _tmp84_; - GeeList* _tmp85_; - FileToPrepare* _tmp86_; - FileToPrepare* _tmp87_; - FileToPrepare* _tmp88_; -#line 1533 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp82_ = sorted; -#line 1533 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp83_ = i; -#line 1533 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp84_ = gee_list_get (_tmp82_, _tmp83_ + 1); -#line 1533 "/home/jens/Source/shotwell/src/BatchImport.vala" - associated_file = (FileToPrepare*) _tmp84_; -#line 1534 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp85_ = self->files_to_prepare; -#line 1534 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp86_ = associated_file; -#line 1534 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, GEE_TYPE_COLLECTION, GeeCollection), _tmp86_); -#line 1535 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp87_ = ftp; -#line 1535 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp88_ = associated_file; -#line 1535 "/home/jens/Source/shotwell/src/BatchImport.vala" - file_to_prepare_set_associated (_tmp87_, _tmp88_); -#line 1532 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_unref0 (associated_file); -#line 12587 "BatchImport.c" - } - } - } -#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_unref0 (ftp); -#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (ext); -#line 1517 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (name); -#line 12597 "BatchImport.c" - } - } - } -#line 1475 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (sorted); -#line 12603 "BatchImport.c" -} - - -static gboolean -work_sniffer_is_paired (WorkSniffer* self, - FileToPrepare* raw, - FileToPrepare* maybe_paired) -{ - gboolean result = FALSE; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gboolean _tmp4_; - gchar* name = NULL; - gchar* ext = NULL; - gchar* test_name = NULL; - gchar* test_ext = NULL; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_ = NULL; - gchar* _tmp8_ = NULL; - JfifFileFormatProperties* _tmp9_; - JfifFileFormatProperties* _tmp10_; - const gchar* _tmp11_; - gboolean _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_ = NULL; - gchar* _tmp16_ = NULL; - const gchar* _tmp17_; - const gchar* _tmp18_; -#line 1544 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_WORK_SNIFFER (self), FALSE); -#line 1544 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_FILE_TO_PREPARE (raw), FALSE); -#line 1544 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_FILE_TO_PREPARE (maybe_paired), FALSE); -#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = file_to_prepare_get_parent_path (raw); -#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _tmp0_; -#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = file_to_prepare_get_parent_path (maybe_paired); -#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = _tmp2_; -#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = g_strcmp0 (_tmp1_, _tmp3_) != 0; -#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp3_); -#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp1_); -#line 1545 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp4_) { -#line 1546 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = FALSE; -#line 1546 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 12662 "BatchImport.c" - } -#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = file_to_prepare_get_basename (maybe_paired); -#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = _tmp5_; -#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala" - disassemble_filename (_tmp6_, &_tmp7_, &_tmp8_); -#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (test_name); -#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala" - test_name = _tmp7_; -#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (test_ext); -#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala" - test_ext = _tmp8_; -#line 1549 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp6_); -#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = jfif_file_format_properties_get_instance (); -#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = _tmp9_; -#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = test_ext; -#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = !photo_file_format_properties_is_recognized_extension (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties), _tmp11_); -#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala" - _photo_file_format_properties_unref0 (_tmp10_); -#line 1551 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp12_) { -#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = FALSE; -#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (test_ext); -#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (test_name); -#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (ext); -#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (name); -#line 1552 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 12704 "BatchImport.c" - } -#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = file_to_prepare_get_basename (raw); -#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = _tmp13_; -#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala" - disassemble_filename (_tmp14_, &_tmp15_, &_tmp16_); -#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (name); -#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala" - name = _tmp15_; -#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (ext); -#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala" - ext = _tmp16_; -#line 1554 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp14_); -#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = name; -#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = test_name; -#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = g_strcmp0 (_tmp17_, _tmp18_) == 0; -#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (test_ext); -#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (test_name); -#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (ext); -#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (name); -#line 1556 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 12738 "BatchImport.c" -} - - -static void -work_sniffer_sniff_job (WorkSniffer* self, - BatchImportJob* job, - GError** error) -{ - guint64 size = 0ULL; - GFile* file_or_dir = NULL; - gboolean determined_size = FALSE; - guint64 _tmp0_ = 0ULL; - GFile* _tmp1_ = NULL; - gboolean _tmp2_; - gboolean _tmp3_; - GError * _inner_error_ = NULL; -#line 1559 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_WORK_SNIFFER (self)); -#line 1559 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT_JOB (job)); -#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = batch_import_job_determine_file_size (job, &_tmp0_, &_tmp1_); -#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala" - size = _tmp0_; -#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (file_or_dir); -#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala" - file_or_dir = _tmp1_; -#line 1562 "/home/jens/Source/shotwell/src/BatchImport.vala" - determined_size = _tmp2_; -#line 1563 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = determined_size; -#line 1563 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp3_) { -#line 12773 "BatchImport.c" - guint64 _tmp4_; - guint64 _tmp5_; -#line 1564 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = self->total_bytes; -#line 1564 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = size; -#line 1564 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->total_bytes = _tmp4_ + _tmp5_; -#line 12782 "BatchImport.c" - } -#line 1566 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (batch_import_job_is_directory (job)) { -#line 12786 "BatchImport.c" - GFile* dir = NULL; - gboolean copy_to_library = FALSE; - gboolean _tmp6_ = FALSE; - GFile* _tmp7_ = NULL; - gboolean _tmp8_ = FALSE; - gboolean _tmp9_; - GFile* _tmp14_; -#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = batch_import_job_prepare (job, &_tmp7_, &_tmp8_, &_inner_error_); -#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (dir); -#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala" - dir = _tmp7_; -#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala" - copy_to_library = _tmp8_; -#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = _tmp9_; -#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_propagate_error (error, _inner_error_); -#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (dir); -#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (file_or_dir); -#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 12814 "BatchImport.c" - } -#line 1571 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!_tmp6_) { -#line 12818 "BatchImport.c" - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = batch_import_job_get_source_identifier (job); -#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = _tmp10_; -#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = batch_import_job_get_dest_identifier (job); -#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = _tmp12_; -#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), job, NULL, _tmp11_, _tmp13_, IMPORT_RESULT_FILE_ERROR); -#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp13_); -#line 1572 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp11_); -#line 1575 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (dir); -#line 1575 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (file_or_dir); -#line 1575 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 12843 "BatchImport.c" - } -#line 1577 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = dir; -#line 1577 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (query_is_directory (_tmp14_), "query_is_directory(dir)"); -#line 12849 "BatchImport.c" - { - GFile* _tmp15_; - gboolean _tmp16_; -#line 1580 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = dir; -#line 1580 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = copy_to_library; -#line 1580 "/home/jens/Source/shotwell/src/BatchImport.vala" - work_sniffer_search_dir (self, job, _tmp15_, _tmp16_, batch_import_job_recurse (job), &_inner_error_); -#line 1580 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12861 "BatchImport.c" - goto __catch427_g_error; - } - } - goto __finally427; - __catch427_g_error: - { - GError* err = NULL; - GFile* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - GFile* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - GError* _tmp23_; -#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala" - err = _inner_error_; -#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala" - _inner_error_ = NULL; -#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = dir; -#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = batch_import_job_get_source_identifier (job); -#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp19_ = _tmp18_; -#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp20_ = dir; -#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp21_ = g_file_get_path (_tmp20_); -#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp22_ = _tmp21_; -#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp23_ = err; -#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_import_job_report_error (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), job, _tmp17_, _tmp19_, _tmp22_, _tmp23_, IMPORT_RESULT_FILE_ERROR); -#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp22_); -#line 1582 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp19_); -#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (err); -#line 12902 "BatchImport.c" - } - __finally427: -#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_propagate_error (error, _inner_error_); -#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (dir); -#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (file_or_dir); -#line 1579 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 12915 "BatchImport.c" - } -#line 1566 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (dir); -#line 12919 "BatchImport.c" - } else { - gboolean _tmp24_; - gboolean _tmp31_ = FALSE; - gboolean _tmp32_ = FALSE; - GFile* _tmp33_; - GeeList* _tmp37_; - FileToPrepare* _tmp38_; - FileToPrepare* _tmp39_; -#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp24_ = determined_size; -#line 1587 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!_tmp24_) { -#line 12932 "BatchImport.c" - guint64 _tmp25_ = 0ULL; - GFile* _tmp26_; - GCancellable* _tmp27_; - GCancellable* _tmp28_; - guint64 _tmp29_; - guint64 _tmp30_; -#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp26_ = file_or_dir; -#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp27_ = background_job_get_cancellable (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp28_ = _tmp27_; -#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp29_ = query_total_file_size (_tmp26_, _tmp28_, &_inner_error_); -#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp28_); -#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp25_ = _tmp29_; -#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_propagate_error (error, _inner_error_); -#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (file_or_dir); -#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 12959 "BatchImport.c" - } -#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp30_ = self->total_bytes; -#line 1588 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->total_bytes = _tmp30_ + _tmp25_; -#line 12965 "BatchImport.c" - } -#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp33_ = file_or_dir; -#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp33_ != NULL) { -#line 12971 "BatchImport.c" - GeeHashSet* _tmp34_; -#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp34_ = self->priv->skipset; -#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp32_ = _tmp34_ != NULL; -#line 12977 "BatchImport.c" - } else { -#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp32_ = FALSE; -#line 12981 "BatchImport.c" - } -#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp32_) { -#line 12985 "BatchImport.c" - GeeHashSet* _tmp35_; - GFile* _tmp36_; -#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp35_ = self->priv->skipset; -#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp36_ = file_or_dir; -#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp31_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp36_); -#line 12994 "BatchImport.c" - } else { -#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp31_ = FALSE; -#line 12998 "BatchImport.c" - } -#line 1591 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp31_) { -#line 1592 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (file_or_dir); -#line 1592 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 13006 "BatchImport.c" - } -#line 1595 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp37_ = self->files_to_prepare; -#line 1595 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp38_ = file_to_prepare_new (job, NULL, TRUE); -#line 1595 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp39_ = _tmp38_; -#line 1595 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection), _tmp39_); -#line 1595 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_unref0 (_tmp39_); -#line 13018 "BatchImport.c" - } -#line 1559 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (file_or_dir); -#line 13022 "BatchImport.c" -} - - -void -work_sniffer_search_dir (WorkSniffer* self, - BatchImportJob* job, - GFile* dir, - gboolean copy_to_library, - gboolean recurse, - GError** error) -{ - GFileEnumerator* enumerator = NULL; - GFileEnumerator* _tmp0_; - GFileInfo* info = NULL; - GError * _inner_error_ = NULL; -#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_WORK_SNIFFER (self)); -#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (IS_BATCH_IMPORT_JOB (job)); -#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = g_file_enumerate_children (dir, "standard::*", G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_); -#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala" - enumerator = _tmp0_; -#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_propagate_error (error, _inner_error_); -#line 1600 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 13054 "BatchImport.c" - } -#line 1603 "/home/jens/Source/shotwell/src/BatchImport.vala" - info = NULL; -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - while (TRUE) { -#line 13060 "BatchImport.c" - GFileInfo* _tmp1_ = NULL; - GFileEnumerator* _tmp2_; - GCancellable* _tmp3_; - GCancellable* _tmp4_; - GFileInfo* _tmp5_; - GFileInfo* _tmp6_; - GFileInfo* _tmp7_; - GFileInfo* _tmp8_; - GFile* child = NULL; - GFileInfo* _tmp9_; - const gchar* _tmp10_; - GFile* _tmp11_; - GFileType file_type = 0; - GFileInfo* _tmp12_; - GFileType _tmp13_; -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = enumerator; -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = background_job_get_cancellable (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _tmp3_; -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = g_file_enumerator_next_file (_tmp2_, _tmp4_, &_inner_error_); -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = _tmp5_; -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp4_); -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _tmp6_; -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_propagate_error (error, _inner_error_); -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (info); -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (enumerator); -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 13100 "BatchImport.c" - } -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = _tmp1_; -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = NULL; -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (info); -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - info = _tmp7_; -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = info; -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!(_tmp8_ != NULL)) { -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp1_); -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 13118 "BatchImport.c" - } -#line 1606 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (background_job_is_cancelled (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob))) { -#line 1607 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp1_); -#line 1607 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 13126 "BatchImport.c" - } -#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = info; -#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = g_file_info_get_name (_tmp9_); -#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = g_file_get_child (dir, _tmp10_); -#line 1609 "/home/jens/Source/shotwell/src/BatchImport.vala" - child = _tmp11_; -#line 1610 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = info; -#line 1610 "/home/jens/Source/shotwell/src/BatchImport.vala" - file_type = g_file_info_get_file_type (_tmp12_); -#line 1612 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = file_type; -#line 1612 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp13_ == G_FILE_TYPE_DIRECTORY) { -#line 13144 "BatchImport.c" - GFileInfo* _tmp14_; - const gchar* _tmp15_; -#line 1613 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!recurse) { -#line 1614 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (child); -#line 1614 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp1_); -#line 1614 "/home/jens/Source/shotwell/src/BatchImport.vala" - continue; -#line 13155 "BatchImport.c" - } -#line 1616 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = info; -#line 1616 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = g_file_info_get_name (_tmp14_); -#line 1616 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_str_has_prefix (_tmp15_, ".")) { -#line 1617 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (child); -#line 1617 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp1_); -#line 1617 "/home/jens/Source/shotwell/src/BatchImport.vala" - continue; -#line 13169 "BatchImport.c" - } - { - GFile* _tmp16_; -#line 1620 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = child; -#line 1620 "/home/jens/Source/shotwell/src/BatchImport.vala" - work_sniffer_search_dir (self, job, _tmp16_, copy_to_library, recurse, &_inner_error_); -#line 1620 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 13179 "BatchImport.c" - goto __catch428_g_error; - } - } - goto __finally428; - __catch428_g_error: - { - GError* err = NULL; - GFile* _tmp17_; - GFile* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - GFile* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - GError* _tmp24_; -#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala" - err = _inner_error_; -#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala" - _inner_error_ = NULL; -#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = child; -#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = child; -#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp19_ = g_file_get_path (_tmp18_); -#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp20_ = _tmp19_; -#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp21_ = child; -#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp22_ = g_file_get_path (_tmp21_); -#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp23_ = _tmp22_; -#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp24_ = err; -#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_import_job_report_error (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), job, _tmp17_, _tmp20_, _tmp23_, _tmp24_, IMPORT_RESULT_FILE_ERROR); -#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp23_); -#line 1622 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp20_); -#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (err); -#line 13223 "BatchImport.c" - } - __finally428: -#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_propagate_error (error, _inner_error_); -#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (child); -#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp1_); -#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (info); -#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (enumerator); -#line 1619 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 13240 "BatchImport.c" - } - } else { - GFileType _tmp25_; -#line 1625 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp25_ = file_type; -#line 1625 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp25_ == G_FILE_TYPE_REGULAR) { -#line 13248 "BatchImport.c" - gboolean _tmp26_ = FALSE; - GeeHashSet* _tmp27_; - gboolean _tmp30_ = FALSE; - gboolean _tmp31_ = FALSE; - GFile* _tmp32_; -#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp27_ = self->priv->skipset; -#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp27_ != NULL) { -#line 13258 "BatchImport.c" - GeeHashSet* _tmp28_; - GFile* _tmp29_; -#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp28_ = self->priv->skipset; -#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp29_ = child; -#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp26_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp29_); -#line 13267 "BatchImport.c" - } else { -#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp26_ = FALSE; -#line 13271 "BatchImport.c" - } -#line 1626 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp26_) { -#line 1627 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (child); -#line 1627 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp1_); -#line 1627 "/home/jens/Source/shotwell/src/BatchImport.vala" - continue; -#line 13281 "BatchImport.c" - } -#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp32_ = child; -#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (photo_is_file_image (_tmp32_)) { -#line 13287 "BatchImport.c" - GFile* _tmp33_; -#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp33_ = child; -#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp31_ = photo_file_format_is_file_supported (_tmp33_); -#line 13293 "BatchImport.c" - } else { -#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp31_ = FALSE; -#line 13297 "BatchImport.c" - } -#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp31_) { -#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp30_ = TRUE; -#line 13303 "BatchImport.c" - } else { - GFile* _tmp34_; -#line 1630 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp34_ = child; -#line 1630 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp30_ = video_reader_is_supported_video_file (_tmp34_); -#line 13310 "BatchImport.c" - } -#line 1629 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp30_) { -#line 13314 "BatchImport.c" - guint64 _tmp35_; - GFileInfo* _tmp36_; - GeeList* _tmp37_; - GFile* _tmp38_; - FileToPrepare* _tmp39_; - FileToPrepare* _tmp40_; -#line 1631 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp35_ = self->total_bytes; -#line 1631 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp36_ = info; -#line 1631 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->total_bytes = _tmp35_ + g_file_info_get_size (_tmp36_); -#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp37_ = self->files_to_prepare; -#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp38_ = child; -#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp39_ = file_to_prepare_new (job, _tmp38_, copy_to_library); -#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp40_ = _tmp39_; -#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection), _tmp40_); -#line 1632 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_unref0 (_tmp40_); -#line 1634 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (child); -#line 1634 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp1_); -#line 1634 "/home/jens/Source/shotwell/src/BatchImport.vala" - continue; -#line 13345 "BatchImport.c" - } - } else { - GFile* _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; - GFileType _tmp44_; -#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp41_ = child; -#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp42_ = g_file_get_path (_tmp41_); -#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp43_ = _tmp42_; -#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp44_ = file_type; -#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_warning ("BatchImport.vala:1637: Ignoring import of %s file type %d", _tmp43_, (gint) _tmp44_); -#line 1637 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp43_); -#line 13364 "BatchImport.c" - } - } -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (child); -#line 1604 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp1_); -#line 13371 "BatchImport.c" - } -#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (info); -#line 1599 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (enumerator); -#line 13377 "BatchImport.c" -} - - -static void -work_sniffer_class_init (WorkSnifferClass * klass) -{ -#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala" - work_sniffer_parent_class = g_type_class_peek_parent (klass); -#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BackgroundJobClass *) klass)->finalize = work_sniffer_finalize; -#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_type_class_add_private (klass, sizeof (WorkSnifferPrivate)); -#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) work_sniffer_real_execute; -#line 13392 "BatchImport.c" -} - - -static void -work_sniffer_instance_init (WorkSniffer * self) -{ - GeeArrayList* _tmp0_; -#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv = WORK_SNIFFER_GET_PRIVATE (self); -#line 1461 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = gee_array_list_new (TYPE_FILE_TO_PREPARE, (GBoxedCopyFunc) file_to_prepare_ref, (GDestroyNotify) file_to_prepare_unref, NULL, NULL, NULL); -#line 1461 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->files_to_prepare = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList); -#line 1462 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->total_bytes = (guint64) 0; -#line 13408 "BatchImport.c" -} - - -static void -work_sniffer_finalize (BackgroundJob * obj) -{ - WorkSniffer * self; -#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_WORK_SNIFFER, WorkSniffer); -#line 1461 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->files_to_prepare); -#line 1464 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->jobs); -#line 1465 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->skipset); -#line 1460 "/home/jens/Source/shotwell/src/BatchImport.vala" - BACKGROUND_JOB_CLASS (work_sniffer_parent_class)->finalize (obj); -#line 13426 "BatchImport.c" -} - - -GType -work_sniffer_get_type (void) -{ - static volatile gsize work_sniffer_type_id__volatile = 0; - if (g_once_init_enter (&work_sniffer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (WorkSnifferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) work_sniffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (WorkSniffer), 0, (GInstanceInitFunc) work_sniffer_instance_init, NULL }; - GType work_sniffer_type_id; - work_sniffer_type_id = g_type_register_static (TYPE_BACKGROUND_IMPORT_JOB, "WorkSniffer", &g_define_type_info, 0); - g_once_init_leave (&work_sniffer_type_id__volatile, work_sniffer_type_id); - } - return work_sniffer_type_id__volatile; -} - - -PreparedFile* -prepared_file_construct (GType object_type, - BatchImportJob* job, - GFile* file, - GFile* associated_file, - const gchar* source_id, - const gchar* dest_id, - gboolean copy_to_library, - const gchar* exif_md5, - const gchar* thumbnail_md5, - const gchar* full_md5, - PhotoFileFormat file_format, - guint64 filesize, - gboolean is_video) -{ - PreparedFile* self = NULL; - BatchImportJob* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), NULL); -#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail ((associated_file == NULL) || G_IS_FILE (associated_file), NULL); -#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (source_id != NULL, NULL); -#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (dest_id != NULL, NULL); -#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (PreparedFile*) g_type_create_instance (object_type); -#line 1661 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _batch_import_job_ref0 (job); -#line 1661 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (self->job); -#line 1661 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->job = _tmp0_; -#line 1662 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->result = IMPORT_RESULT_SUCCESS; -#line 1663 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _g_object_ref0 (file); -#line 1663 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->file); -#line 1663 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->file = _tmp1_; -#line 1664 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = _g_object_ref0 (associated_file); -#line 1664 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->associated_file); -#line 1664 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->associated_file = _tmp2_; -#line 1665 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = g_strdup (source_id); -#line 1665 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->source_id); -#line 1665 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->source_id = _tmp3_; -#line 1666 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = g_strdup (dest_id); -#line 1666 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->dest_id); -#line 1666 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->dest_id = _tmp4_; -#line 1667 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->copy_to_library = copy_to_library; -#line 1668 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = g_strdup (exif_md5); -#line 1668 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->exif_md5); -#line 1668 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->exif_md5 = _tmp5_; -#line 1669 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = g_strdup (thumbnail_md5); -#line 1669 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->thumbnail_md5); -#line 1669 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->thumbnail_md5 = _tmp6_; -#line 1670 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = g_strdup (full_md5); -#line 1670 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->full_md5); -#line 1670 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->full_md5 = _tmp7_; -#line 1671 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->file_format = file_format; -#line 1672 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->filesize = filesize; -#line 1673 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->is_video = is_video; -#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 13540 "BatchImport.c" -} - - -PreparedFile* -prepared_file_new (BatchImportJob* job, - GFile* file, - GFile* associated_file, - const gchar* source_id, - const gchar* dest_id, - gboolean copy_to_library, - const gchar* exif_md5, - const gchar* thumbnail_md5, - const gchar* full_md5, - PhotoFileFormat file_format, - guint64 filesize, - gboolean is_video) -{ -#line 1658 "/home/jens/Source/shotwell/src/BatchImport.vala" - return prepared_file_construct (TYPE_PREPARED_FILE, job, file, associated_file, source_id, dest_id, copy_to_library, exif_md5, thumbnail_md5, full_md5, file_format, filesize, is_video); -#line 13560 "BatchImport.c" -} - - -static void -value_prepared_file_init (GValue* value) -{ -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 13569 "BatchImport.c" -} - - -static void -value_prepared_file_free_value (GValue* value) -{ -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (value->data[0].v_pointer) { -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - prepared_file_unref (value->data[0].v_pointer); -#line 13580 "BatchImport.c" - } -} - - -static void -value_prepared_file_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (src_value->data[0].v_pointer) { -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - dest_value->data[0].v_pointer = prepared_file_ref (src_value->data[0].v_pointer); -#line 13593 "BatchImport.c" - } else { -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - dest_value->data[0].v_pointer = NULL; -#line 13597 "BatchImport.c" - } -} - - -static gpointer -value_prepared_file_peek_pointer (const GValue* value) -{ -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - return value->data[0].v_pointer; -#line 13607 "BatchImport.c" -} - - -static gchar* -value_prepared_file_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (collect_values[0].v_pointer) { -#line 13619 "BatchImport.c" - PreparedFile * object; - object = collect_values[0].v_pointer; -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (object->parent_instance.g_class == NULL) { -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 13626 "BatchImport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 13630 "BatchImport.c" - } -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = prepared_file_ref (object); -#line 13634 "BatchImport.c" - } else { -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 13638 "BatchImport.c" - } -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 13642 "BatchImport.c" -} - - -static gchar* -value_prepared_file_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PreparedFile ** object_p; - object_p = collect_values[0].v_pointer; -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!object_p) { -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 13658 "BatchImport.c" - } -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!value->data[0].v_pointer) { -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = NULL; -#line 13664 "BatchImport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = value->data[0].v_pointer; -#line 13668 "BatchImport.c" - } else { -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = prepared_file_ref (value->data[0].v_pointer); -#line 13672 "BatchImport.c" - } -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 13676 "BatchImport.c" -} - - -GParamSpec* -param_spec_prepared_file (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecPreparedFile* spec; -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_PREPARED_FILE), NULL); -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - return G_PARAM_SPEC (spec); -#line 13696 "BatchImport.c" -} - - -gpointer -value_get_prepared_file (const GValue* value) -{ -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PREPARED_FILE), NULL); -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - return value->data[0].v_pointer; -#line 13707 "BatchImport.c" -} - - -void -value_set_prepared_file (GValue* value, - gpointer v_object) -{ - PreparedFile * old; -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PREPARED_FILE)); -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - old = value->data[0].v_pointer; -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (v_object) { -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PREPARED_FILE)); -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = v_object; -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - prepared_file_ref (value->data[0].v_pointer); -#line 13730 "BatchImport.c" - } else { -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 13734 "BatchImport.c" - } -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (old) { -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - prepared_file_unref (old); -#line 13740 "BatchImport.c" - } -} - - -void -value_take_prepared_file (GValue* value, - gpointer v_object) -{ - PreparedFile * old; -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PREPARED_FILE)); -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - old = value->data[0].v_pointer; -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (v_object) { -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PREPARED_FILE)); -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = v_object; -#line 13762 "BatchImport.c" - } else { -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 13766 "BatchImport.c" - } -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (old) { -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - prepared_file_unref (old); -#line 13772 "BatchImport.c" - } -} - - -static void -prepared_file_class_init (PreparedFileClass * klass) -{ -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - prepared_file_parent_class = g_type_class_peek_parent (klass); -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((PreparedFileClass *) klass)->finalize = prepared_file_finalize; -#line 13784 "BatchImport.c" -} - - -static void -prepared_file_instance_init (PreparedFile * self) -{ -#line 1647 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->associated_file = NULL; -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->ref_count = 1; -#line 13795 "BatchImport.c" -} - - -static void -prepared_file_finalize (PreparedFile * obj) -{ - PreparedFile * self; -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PREPARED_FILE, PreparedFile); -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_handlers_destroy (self); -#line 1644 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (self->job); -#line 1646 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->file); -#line 1647 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->associated_file); -#line 1648 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->source_id); -#line 1649 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->dest_id); -#line 1651 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->exif_md5); -#line 1652 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->thumbnail_md5); -#line 1653 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (self->full_md5); -#line 13823 "BatchImport.c" -} - - -GType -prepared_file_get_type (void) -{ - static volatile gsize prepared_file_type_id__volatile = 0; - if (g_once_init_enter (&prepared_file_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_prepared_file_init, value_prepared_file_free_value, value_prepared_file_copy_value, value_prepared_file_peek_pointer, "p", value_prepared_file_collect_value, "p", value_prepared_file_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PreparedFileClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) prepared_file_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PreparedFile), 0, (GInstanceInitFunc) prepared_file_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType prepared_file_type_id; - prepared_file_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PreparedFile", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&prepared_file_type_id__volatile, prepared_file_type_id); - } - return prepared_file_type_id__volatile; -} - - -gpointer -prepared_file_ref (gpointer instance) -{ - PreparedFile * self; - self = instance; -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_atomic_int_inc (&self->ref_count); -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - return instance; -#line 13852 "BatchImport.c" -} - - -void -prepared_file_unref (gpointer instance) -{ - PreparedFile * self; - self = instance; -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - PREPARED_FILE_GET_CLASS (self)->finalize (self); -#line 1643 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 13867 "BatchImport.c" - } -} - - -PreparedFileCluster* -prepared_file_cluster_construct (GType object_type, - GeeArrayList* list) -{ - PreparedFileCluster* self = NULL; - GeeArrayList* _tmp0_; -#line 1680 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (GEE_IS_ARRAY_LIST (list), NULL); -#line 1680 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (PreparedFileCluster*) interlocked_notification_object_construct (object_type); -#line 1681 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _g_object_ref0 (list); -#line 1681 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->list); -#line 1681 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->list = _tmp0_; -#line 1680 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 13890 "BatchImport.c" -} - - -PreparedFileCluster* -prepared_file_cluster_new (GeeArrayList* list) -{ -#line 1680 "/home/jens/Source/shotwell/src/BatchImport.vala" - return prepared_file_cluster_construct (TYPE_PREPARED_FILE_CLUSTER, list); -#line 13899 "BatchImport.c" -} - - -static void -prepared_file_cluster_class_init (PreparedFileClusterClass * klass) -{ -#line 1677 "/home/jens/Source/shotwell/src/BatchImport.vala" - prepared_file_cluster_parent_class = g_type_class_peek_parent (klass); -#line 1677 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((NotificationObjectClass *) klass)->finalize = prepared_file_cluster_finalize; -#line 13910 "BatchImport.c" -} - - -static void -prepared_file_cluster_instance_init (PreparedFileCluster * self) -{ -} - - -static void -prepared_file_cluster_finalize (NotificationObject * obj) -{ - PreparedFileCluster * self; -#line 1677 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PREPARED_FILE_CLUSTER, PreparedFileCluster); -#line 1678 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->list); -#line 1677 "/home/jens/Source/shotwell/src/BatchImport.vala" - NOTIFICATION_OBJECT_CLASS (prepared_file_cluster_parent_class)->finalize (obj); -#line 13930 "BatchImport.c" -} - - -GType -prepared_file_cluster_get_type (void) -{ - static volatile gsize prepared_file_cluster_type_id__volatile = 0; - if (g_once_init_enter (&prepared_file_cluster_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PreparedFileClusterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) prepared_file_cluster_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PreparedFileCluster), 0, (GInstanceInitFunc) prepared_file_cluster_instance_init, NULL }; - GType prepared_file_cluster_type_id; - prepared_file_cluster_type_id = g_type_register_static (TYPE_INTERLOCKED_NOTIFICATION_OBJECT, "PreparedFileCluster", &g_define_type_info, 0); - g_once_init_leave (&prepared_file_cluster_type_id__volatile, prepared_file_cluster_type_id); - } - return prepared_file_cluster_type_id__volatile; -} - - -PrepareFilesJob* -prepare_files_job_construct (GType object_type, - BatchImport* owner, - GeeList* files_to_prepare, - NotificationCallback notification, - void* notification_target, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target) -{ - PrepareFilesJob* self = NULL; - GeeList* _tmp0_; - GFile* _tmp1_; -#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT (owner), NULL); -#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (GEE_IS_LIST (files_to_prepare), NULL); -#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL); -#line 1701 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (PrepareFilesJob*) background_import_job_construct (object_type, owner, callback, callback_target, cancellable, cancellation, cancellation_target); -#line 1703 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _g_object_ref0 (files_to_prepare); -#line 1703 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->files_to_prepare); -#line 1703 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->files_to_prepare = _tmp0_; -#line 1704 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->notification = notification; -#line 1704 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->notification_target = notification_target; -#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = app_dirs_get_import_dir (); -#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->library_dir); -#line 1705 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->library_dir = _tmp1_; -#line 1706 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->fail_every = prepare_files_job_get_test_variable ("SHOTWELL_FAIL_EVERY"); -#line 1707 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->skip_every = prepare_files_job_get_test_variable ("SHOTWELL_SKIP_EVERY"); -#line 1709 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_job_set_notification_priority (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), G_PRIORITY_LOW); -#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 13995 "BatchImport.c" -} - - -PrepareFilesJob* -prepare_files_job_new (BatchImport* owner, - GeeList* files_to_prepare, - NotificationCallback notification, - void* notification_target, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target) -{ -#line 1698 "/home/jens/Source/shotwell/src/BatchImport.vala" - return prepare_files_job_construct (TYPE_PREPARE_FILES_JOB, owner, files_to_prepare, notification, notification_target, callback, callback_target, cancellable, cancellation, cancellation_target); -#line 14012 "BatchImport.c" -} - - -static gint -prepare_files_job_get_test_variable (const gchar* name) -{ - gint result = 0; - gchar* value = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; - gint _tmp2_ = 0; - gboolean _tmp3_ = FALSE; - const gchar* _tmp4_; -#line 1712 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (name != NULL, 0); -#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = g_getenv (name); -#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 1713 "/home/jens/Source/shotwell/src/BatchImport.vala" - value = _tmp1_; -#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = value; -#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp4_ == NULL) { -#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = TRUE; -#line 14040 "BatchImport.c" - } else { - const gchar* _tmp5_; - gint _tmp6_; - gint _tmp7_; -#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = value; -#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = strlen (_tmp5_); -#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = _tmp6_; -#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = _tmp7_ == 0; -#line 14053 "BatchImport.c" - } -#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp3_) { -#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = 0; -#line 14059 "BatchImport.c" - } else { - const gchar* _tmp8_; -#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = value; -#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = atoi (_tmp8_); -#line 14066 "BatchImport.c" - } -#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp2_; -#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (value); -#line 1715 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 14074 "BatchImport.c" -} - - -static void -prepare_files_job_real_execute (BackgroundJob* base) -{ - PrepareFilesJob * self; - GTimer* timer = NULL; - GTimer* _tmp0_; - GeeArrayList* list = NULL; - GeeArrayList* _tmp1_; - GeeArrayList* _tmp89_; - gint _tmp90_; - gint _tmp91_; -#line 1718 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PREPARE_FILES_JOB, PrepareFilesJob); -#line 1719 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = g_timer_new (); -#line 1719 "/home/jens/Source/shotwell/src/BatchImport.vala" - timer = _tmp0_; -#line 1721 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = gee_array_list_new (TYPE_PREPARED_FILE, (GBoxedCopyFunc) prepared_file_ref, (GDestroyNotify) prepared_file_unref, NULL, NULL, NULL); -#line 1721 "/home/jens/Source/shotwell/src/BatchImport.vala" - list = _tmp1_; -#line 14099 "BatchImport.c" - { - GeeList* _file_to_prepare_list = NULL; - GeeList* _tmp2_; - GeeList* _tmp3_; - gint _file_to_prepare_size = 0; - GeeList* _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _file_to_prepare_index = 0; -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = self->priv->files_to_prepare; -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_list = _tmp3_; -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _file_to_prepare_list; -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = _tmp5_; -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_size = _tmp6_; -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_index = -1; -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - while (TRUE) { -#line 14127 "BatchImport.c" - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - FileToPrepare* file_to_prepare = NULL; - GeeList* _tmp10_; - gint _tmp11_; - gpointer _tmp12_; - ImportResult _result_ = 0; - ImportResult _tmp13_; - BatchImportJob* job = NULL; - FileToPrepare* _tmp25_; - BatchImportJob* _tmp26_; - BatchImportJob* _tmp27_; - GFile* file = NULL; - FileToPrepare* _tmp28_; - GFile* _tmp29_; - GFile* _tmp30_; - GFile* _tmp31_ = NULL; - FileToPrepare* _tmp32_; - FileToPrepare* _tmp33_; - GFile* associated = NULL; - GFile* _tmp37_; - gboolean copy_to_library = FALSE; - FileToPrepare* _tmp38_; - gboolean _tmp39_; - GFile* _tmp40_; - gboolean _tmp45_ = FALSE; - GFile* _tmp46_; - PreparedFile* prepared_file = NULL; - BatchImportJob* _tmp54_; - GFile* _tmp55_; - GFile* _tmp56_; - gboolean _tmp57_; - PreparedFile* _tmp58_ = NULL; - ImportResult _tmp59_; - ImportResult _tmp60_; - gboolean _tmp73_ = FALSE; - GeeArrayList* _tmp74_; - gint _tmp75_; - gint _tmp76_; -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = _file_to_prepare_index; -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_index = _tmp7_ + 1; -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = _file_to_prepare_index; -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = _file_to_prepare_size; -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!(_tmp8_ < _tmp9_)) { -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 14180 "BatchImport.c" - } -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = _file_to_prepare_list; -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = _file_to_prepare_index; -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = gee_list_get (_tmp10_, _tmp11_); -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - file_to_prepare = (FileToPrepare*) _tmp12_; -#line 1723 "/home/jens/Source/shotwell/src/BatchImport.vala" - _result_ = background_import_job_abort_check (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob)); -#line 1724 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = _result_; -#line 1724 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp13_ != IMPORT_RESULT_SUCCESS) { -#line 14196 "BatchImport.c" - FileToPrepare* _tmp14_; - BatchImportJob* _tmp15_; - FileToPrepare* _tmp16_; - BatchImportJob* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - FileToPrepare* _tmp20_; - BatchImportJob* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - ImportResult _tmp24_; -#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = file_to_prepare; -#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = _tmp14_->job; -#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = file_to_prepare; -#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = _tmp16_->job; -#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = batch_import_job_get_dest_identifier (_tmp17_); -#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp19_ = _tmp18_; -#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp20_ = file_to_prepare; -#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp21_ = _tmp20_->job; -#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp22_ = batch_import_job_get_source_identifier (_tmp21_); -#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp23_ = _tmp22_; -#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp24_ = _result_; -#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp15_, NULL, _tmp19_, _tmp23_, _tmp24_); -#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp23_); -#line 1725 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp19_); -#line 1728 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_unref0 (file_to_prepare); -#line 1728 "/home/jens/Source/shotwell/src/BatchImport.vala" - continue; -#line 14240 "BatchImport.c" - } -#line 1731 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp25_ = file_to_prepare; -#line 1731 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp26_ = _tmp25_->job; -#line 1731 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp27_ = _batch_import_job_ref0 (_tmp26_); -#line 1731 "/home/jens/Source/shotwell/src/BatchImport.vala" - job = _tmp27_; -#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp28_ = file_to_prepare; -#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp29_ = _tmp28_->file; -#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp30_ = _g_object_ref0 (_tmp29_); -#line 1732 "/home/jens/Source/shotwell/src/BatchImport.vala" - file = _tmp30_; -#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp32_ = file_to_prepare; -#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp33_ = _tmp32_->associated; -#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp33_ != NULL) { -#line 14264 "BatchImport.c" - FileToPrepare* _tmp34_; - FileToPrepare* _tmp35_; - GFile* _tmp36_; -#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp34_ = file_to_prepare; -#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp35_ = _tmp34_->associated; -#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp36_ = _tmp35_->file; -#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp31_ = _tmp36_; -#line 14276 "BatchImport.c" - } else { -#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp31_ = NULL; -#line 14280 "BatchImport.c" - } -#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp37_ = _g_object_ref0 (_tmp31_); -#line 1733 "/home/jens/Source/shotwell/src/BatchImport.vala" - associated = _tmp37_; -#line 1734 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp38_ = file_to_prepare; -#line 1734 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp39_ = _tmp38_->copy_to_library; -#line 1734 "/home/jens/Source/shotwell/src/BatchImport.vala" - copy_to_library = _tmp39_; -#line 1737 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp40_ = file; -#line 1737 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp40_ == NULL) { -#line 14296 "BatchImport.c" - BatchImportJob* _tmp41_; - GFile* _tmp42_ = NULL; - gboolean _tmp43_ = FALSE; - gboolean _tmp44_; -#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp41_ = job; -#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp44_ = prepare_files_job_create_file (self, _tmp41_, &_tmp42_, &_tmp43_); -#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (file); -#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala" - file = _tmp42_; -#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala" - copy_to_library = _tmp43_; -#line 1738 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!_tmp44_) { -#line 1739 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (associated); -#line 1739 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (file); -#line 1739 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (job); -#line 1739 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_unref0 (file_to_prepare); -#line 1739 "/home/jens/Source/shotwell/src/BatchImport.vala" - continue; -#line 14323 "BatchImport.c" - } - } -#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp46_ = associated; -#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp46_ == NULL) { -#line 14330 "BatchImport.c" - FileToPrepare* _tmp47_; - FileToPrepare* _tmp48_; -#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp47_ = file_to_prepare; -#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp48_ = _tmp47_->associated; -#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp45_ = _tmp48_ != NULL; -#line 14339 "BatchImport.c" - } else { -#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp45_ = FALSE; -#line 14343 "BatchImport.c" - } -#line 1742 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp45_) { -#line 14347 "BatchImport.c" - FileToPrepare* _tmp49_; - FileToPrepare* _tmp50_; - BatchImportJob* _tmp51_; - GFile* _tmp52_ = NULL; - gboolean _tmp53_ = FALSE; -#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp49_ = file_to_prepare; -#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp50_ = _tmp49_->associated; -#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp51_ = _tmp50_->job; -#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala" - prepare_files_job_create_file (self, _tmp51_, &_tmp52_, &_tmp53_); -#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (associated); -#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala" - associated = _tmp52_; -#line 1743 "/home/jens/Source/shotwell/src/BatchImport.vala" - copy_to_library = _tmp53_; -#line 14367 "BatchImport.c" - } -#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp54_ = job; -#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp55_ = file; -#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp56_ = associated; -#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp57_ = copy_to_library; -#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp59_ = prepare_files_job_prepare_file (self, _tmp54_, _tmp55_, _tmp56_, _tmp57_, &_tmp58_); -#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (prepared_file); -#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala" - prepared_file = _tmp58_; -#line 1747 "/home/jens/Source/shotwell/src/BatchImport.vala" - _result_ = _tmp59_; -#line 1748 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp60_ = _result_; -#line 1748 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp60_ == IMPORT_RESULT_SUCCESS) { -#line 14389 "BatchImport.c" - gint _tmp61_; - GeeArrayList* _tmp62_; - PreparedFile* _tmp63_; -#line 1749 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp61_ = self->prepared_files; -#line 1749 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->prepared_files = _tmp61_ + 1; -#line 1750 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp62_ = list; -#line 1750 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp63_ = prepared_file; -#line 1750 "/home/jens/Source/shotwell/src/BatchImport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp63_); -#line 14403 "BatchImport.c" - } else { - BatchImportJob* _tmp64_; - GFile* _tmp65_; - BatchImportJob* _tmp66_; - gchar* _tmp67_; - gchar* _tmp68_; - GFile* _tmp69_; - gchar* _tmp70_; - gchar* _tmp71_; - ImportResult _tmp72_; -#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp64_ = job; -#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp65_ = file; -#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp66_ = job; -#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp67_ = batch_import_job_get_source_identifier (_tmp66_); -#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp68_ = _tmp67_; -#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp69_ = file; -#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp70_ = g_file_get_path (_tmp69_); -#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp71_ = _tmp70_; -#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp72_ = _result_; -#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp64_, _tmp65_, _tmp68_, _tmp71_, _tmp72_); -#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp71_); -#line 1752 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp68_); -#line 14438 "BatchImport.c" - } -#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp74_ = list; -#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp75_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp76_ = _tmp75_; -#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp76_ >= BATCH_IMPORT_REPORT_EVERY_N_PREPARED_FILES) { -#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp73_ = TRUE; -#line 14450 "BatchImport.c" - } else { - gboolean _tmp77_ = FALSE; - GTimer* _tmp78_; - gdouble _tmp79_; -#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp78_ = timer; -#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp79_ = g_timer_elapsed (_tmp78_, NULL); -#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala" - if ((_tmp79_ * 1000.0) > ((gdouble) BATCH_IMPORT_REPORT_PREPARED_FILES_EVERY_N_MSEC)) { -#line 14461 "BatchImport.c" - GeeArrayList* _tmp80_; - gint _tmp81_; - gint _tmp82_; -#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp80_ = list; -#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp81_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp82_ = _tmp81_; -#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp77_ = _tmp82_ > 0; -#line 14473 "BatchImport.c" - } else { -#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp77_ = FALSE; -#line 14477 "BatchImport.c" - } -#line 1757 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp73_ = _tmp77_; -#line 14481 "BatchImport.c" - } -#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp73_) { -#line 14485 "BatchImport.c" - PreparedFileCluster* cluster = NULL; - GeeArrayList* _tmp83_; - PreparedFileCluster* _tmp84_; - GeeArrayList* _tmp85_; - NotificationCallback _tmp86_; - void* _tmp86__target; - PreparedFileCluster* _tmp87_; - GTimer* _tmp88_; -#line 1761 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp83_ = list; -#line 1761 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp84_ = prepared_file_cluster_new (_tmp83_); -#line 1761 "/home/jens/Source/shotwell/src/BatchImport.vala" - cluster = _tmp84_; -#line 1762 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp85_ = gee_array_list_new (TYPE_PREPARED_FILE, (GBoxedCopyFunc) prepared_file_ref, (GDestroyNotify) prepared_file_unref, NULL, NULL, NULL); -#line 1762 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (list); -#line 1762 "/home/jens/Source/shotwell/src/BatchImport.vala" - list = _tmp85_; -#line 1763 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp86_ = self->priv->notification; -#line 1763 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp86__target = self->priv->notification_target; -#line 1763 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp87_ = cluster; -#line 1763 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_job_notify (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), _tmp86_, _tmp86__target, G_TYPE_CHECK_INSTANCE_CAST (_tmp87_, TYPE_NOTIFICATION_OBJECT, NotificationObject)); -#line 1764 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp88_ = timer; -#line 1764 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_timer_start (_tmp88_); -#line 1756 "/home/jens/Source/shotwell/src/BatchImport.vala" - _notification_object_unref0 (cluster); -#line 14520 "BatchImport.c" - } -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (prepared_file); -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (associated); -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (file); -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (job); -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _file_to_prepare_unref0 (file_to_prepare); -#line 14532 "BatchImport.c" - } -#line 1722 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_file_to_prepare_list); -#line 14536 "BatchImport.c" - } -#line 1768 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp89_ = list; -#line 1768 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp90_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp89_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1768 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp91_ = _tmp90_; -#line 1768 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp91_ > 0) { -#line 14546 "BatchImport.c" - ImportResult _result_ = 0; - ImportResult _tmp92_; -#line 1769 "/home/jens/Source/shotwell/src/BatchImport.vala" - _result_ = background_import_job_abort_check (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob)); -#line 1770 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp92_ = _result_; -#line 1770 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp92_ == IMPORT_RESULT_SUCCESS) { -#line 14555 "BatchImport.c" - NotificationCallback _tmp93_; - void* _tmp93__target; - GeeArrayList* _tmp94_; - PreparedFileCluster* _tmp95_; - PreparedFileCluster* _tmp96_; -#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp93_ = self->priv->notification; -#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp93__target = self->priv->notification_target; -#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp94_ = list; -#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp95_ = prepared_file_cluster_new (_tmp94_); -#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp96_ = _tmp95_; -#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_job_notify (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), _tmp93_, _tmp93__target, G_TYPE_CHECK_INSTANCE_CAST (_tmp96_, TYPE_NOTIFICATION_OBJECT, NotificationObject)); -#line 1771 "/home/jens/Source/shotwell/src/BatchImport.vala" - _notification_object_unref0 (_tmp96_); -#line 14575 "BatchImport.c" - } else { - gint _tmp97_; - GeeArrayList* _tmp98_; - gint _tmp99_; - gint _tmp100_; - gint _tmp101_; - GeeArrayList* _tmp102_; - gint _tmp103_; - gint _tmp104_; -#line 1774 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp97_ = self->prepared_files; -#line 1774 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp98_ = list; -#line 1774 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp99_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp98_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1774 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp100_ = _tmp99_; -#line 1774 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (_tmp97_ >= _tmp100_, "prepared_files >= list.size"); -#line 1775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp101_ = self->prepared_files; -#line 1775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp102_ = list; -#line 1775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp103_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp102_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1775 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp104_ = _tmp103_; -#line 1775 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->prepared_files = _tmp101_ - _tmp104_; -#line 14605 "BatchImport.c" - { - GeeArrayList* _prepared_file_list = NULL; - GeeArrayList* _tmp105_; - GeeArrayList* _tmp106_; - gint _prepared_file_size = 0; - GeeArrayList* _tmp107_; - gint _tmp108_; - gint _tmp109_; - gint _prepared_file_index = 0; -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp105_ = list; -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp106_ = _g_object_ref0 (_tmp105_); -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_list = _tmp106_; -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp107_ = _prepared_file_list; -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp108_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp107_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp109_ = _tmp108_; -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_size = _tmp109_; -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_index = -1; -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - while (TRUE) { -#line 14633 "BatchImport.c" - gint _tmp110_; - gint _tmp111_; - gint _tmp112_; - PreparedFile* prepared_file = NULL; - GeeArrayList* _tmp113_; - gint _tmp114_; - gpointer _tmp115_; - PreparedFile* _tmp116_; - BatchImportJob* _tmp117_; - PreparedFile* _tmp118_; - GFile* _tmp119_; - PreparedFile* _tmp120_; - BatchImportJob* _tmp121_; - gchar* _tmp122_; - gchar* _tmp123_; - PreparedFile* _tmp124_; - GFile* _tmp125_; - gchar* _tmp126_; - gchar* _tmp127_; - ImportResult _tmp128_; -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp110_ = _prepared_file_index; -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_index = _tmp110_ + 1; -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp111_ = _prepared_file_index; -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp112_ = _prepared_file_size; -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!(_tmp111_ < _tmp112_)) { -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - break; -#line 14666 "BatchImport.c" - } -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp113_ = _prepared_file_list; -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp114_ = _prepared_file_index; -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp115_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp113_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp114_); -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - prepared_file = (PreparedFile*) _tmp115_; -#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp116_ = prepared_file; -#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp117_ = _tmp116_->job; -#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp118_ = prepared_file; -#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp119_ = _tmp118_->file; -#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp120_ = prepared_file; -#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp121_ = _tmp120_->job; -#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp122_ = batch_import_job_get_source_identifier (_tmp121_); -#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp123_ = _tmp122_; -#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp124_ = prepared_file; -#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp125_ = _tmp124_->file; -#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp126_ = g_file_get_path (_tmp125_); -#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp127_ = _tmp126_; -#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp128_ = _result_; -#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), _tmp117_, _tmp119_, _tmp123_, _tmp127_, _tmp128_); -#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp127_); -#line 1778 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp123_); -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (prepared_file); -#line 14710 "BatchImport.c" - } -#line 1777 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_prepared_file_list); -#line 14714 "BatchImport.c" - } - } - } -#line 1718 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (list); -#line 1718 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_timer_destroy0 (timer); -#line 14722 "BatchImport.c" -} - - -static gboolean -prepare_files_job_create_file (PrepareFilesJob* self, - BatchImportJob* job, - GFile* * file, - gboolean* copy_to_library) -{ - GFile* _vala_file = NULL; - gboolean _vala_copy_to_library = FALSE; - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 1787 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_PREPARE_FILES_JOB (self), FALSE); -#line 1787 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), FALSE); -#line 14740 "BatchImport.c" - { - gboolean _tmp0_ = FALSE; - GFile* _tmp1_ = NULL; - gboolean _tmp2_ = FALSE; - gboolean _tmp3_; -#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = batch_import_job_prepare (job, &_tmp1_, &_tmp2_, &_inner_error_); -#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_vala_file); -#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_file = _tmp1_; -#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_copy_to_library = _tmp2_; -#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _tmp3_; -#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 14758 "BatchImport.c" - goto __catch429_g_error; - } -#line 1789 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!_tmp0_) { -#line 14763 "BatchImport.c" - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = batch_import_job_get_source_identifier (job); -#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = _tmp4_; -#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = batch_import_job_get_dest_identifier (job); -#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = _tmp6_; -#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_import_job_report_failure (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), job, NULL, _tmp5_, _tmp7_, IMPORT_RESULT_FILE_ERROR); -#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp7_); -#line 1790 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp5_); -#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = FALSE; -#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (file) { -#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala" - *file = _vala_file; -#line 14788 "BatchImport.c" - } else { -#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_vala_file); -#line 14792 "BatchImport.c" - } -#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (copy_to_library) { -#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala" - *copy_to_library = _vala_copy_to_library; -#line 14798 "BatchImport.c" - } -#line 1793 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 14802 "BatchImport.c" - } - } - goto __finally429; - __catch429_g_error: - { - GError* err = NULL; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - GError* _tmp12_; -#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala" - err = _inner_error_; -#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala" - _inner_error_ = NULL; -#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = batch_import_job_get_source_identifier (job); -#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = _tmp8_; -#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = batch_import_job_get_dest_identifier (job); -#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = _tmp10_; -#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = err; -#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_import_job_report_error (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_IMPORT_JOB, BackgroundImportJob), job, NULL, _tmp9_, _tmp11_, _tmp12_, IMPORT_RESULT_FILE_ERROR); -#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp11_); -#line 1796 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp9_); -#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = FALSE; -#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (err); -#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (file) { -#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala" - *file = _vala_file; -#line 14842 "BatchImport.c" - } else { -#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_vala_file); -#line 14846 "BatchImport.c" - } -#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (copy_to_library) { -#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala" - *copy_to_library = _vala_copy_to_library; -#line 14852 "BatchImport.c" - } -#line 1799 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 14856 "BatchImport.c" - } - __finally429: -#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 14861 "BatchImport.c" - gboolean _tmp13_ = FALSE; -#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_clear_error (&_inner_error_); -#line 1788 "/home/jens/Source/shotwell/src/BatchImport.vala" - return _tmp13_; -#line 14869 "BatchImport.c" - } -#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = TRUE; -#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (file) { -#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala" - *file = _vala_file; -#line 14877 "BatchImport.c" - } else { -#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_vala_file); -#line 14881 "BatchImport.c" - } -#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (copy_to_library) { -#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala" - *copy_to_library = _vala_copy_to_library; -#line 14887 "BatchImport.c" - } -#line 1801 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 14891 "BatchImport.c" -} - - -static ImportResult -prepare_files_job_prepare_file (PrepareFilesJob* self, - BatchImportJob* job, - GFile* file, - GFile* associated_file, - gboolean copy_to_library, - PreparedFile* * prepared_file) -{ - PreparedFile* _vala_prepared_file = NULL; - ImportResult result = 0; - gboolean is_video = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; - gboolean _tmp2_ = FALSE; - gboolean _tmp3_; - gint _tmp4_; - gint _tmp5_; - gint _tmp8_; - gchar* exif_only_md5 = NULL; - gchar* thumbnail_md5 = NULL; - gchar* full_md5 = NULL; - PhotoFileFormat file_format = 0; - gboolean _tmp19_; - guint64 filesize = 0ULL; - gboolean is_in_library_dir = FALSE; - GFile* _tmp50_; - gboolean _tmp51_ = FALSE; - gchar* _tmp53_; - gchar* _tmp54_; - gchar* _tmp55_; - gchar* _tmp56_; - const gchar* _tmp57_; - const gchar* _tmp58_; - const gchar* _tmp59_; - PhotoFileFormat _tmp60_; - guint64 _tmp61_; - gboolean _tmp62_; - PreparedFile* _tmp63_; - GError * _inner_error_ = NULL; -#line 1804 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_PREPARE_FILES_JOB (self), 0); -#line 1804 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (job), 0); -#line 1804 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_IS_FILE (file), 0); -#line 1804 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail ((associated_file == NULL) || G_IS_FILE (associated_file), 0); -#line 1806 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (_vala_prepared_file); -#line 1806 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_prepared_file = NULL; -#line 1808 "/home/jens/Source/shotwell/src/BatchImport.vala" - is_video = video_reader_is_supported_video_file (file); -#line 1810 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = is_video; -#line 1810 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!_tmp1_) { -#line 1810 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = !photo_is_file_image (file); -#line 14954 "BatchImport.c" - } else { -#line 1810 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = FALSE; -#line 14958 "BatchImport.c" - } -#line 1810 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp0_) { -#line 1811 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_NOT_AN_IMAGE; -#line 1811 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (prepared_file) { -#line 1811 "/home/jens/Source/shotwell/src/BatchImport.vala" - *prepared_file = _vala_prepared_file; -#line 14968 "BatchImport.c" - } else { -#line 1811 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (_vala_prepared_file); -#line 14972 "BatchImport.c" - } -#line 1811 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 14976 "BatchImport.c" - } -#line 1813 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = is_video; -#line 1813 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!_tmp3_) { -#line 1813 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = !photo_file_format_is_file_supported (file); -#line 14984 "BatchImport.c" - } else { -#line 1813 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = FALSE; -#line 14988 "BatchImport.c" - } -#line 1813 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp2_) { -#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_UNSUPPORTED_FORMAT; -#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (prepared_file) { -#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala" - *prepared_file = _vala_prepared_file; -#line 14998 "BatchImport.c" - } else { -#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (_vala_prepared_file); -#line 15002 "BatchImport.c" - } -#line 1814 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 15006 "BatchImport.c" - } -#line 1816 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = self->priv->import_file_count; -#line 1816 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->import_file_count = _tmp4_ + 1; -#line 1819 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = self->priv->fail_every; -#line 1819 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp5_ > 0) { -#line 15016 "BatchImport.c" - gint _tmp6_; - gint _tmp7_; -#line 1820 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = self->priv->import_file_count; -#line 1820 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = self->priv->fail_every; -#line 1820 "/home/jens/Source/shotwell/src/BatchImport.vala" - if ((_tmp6_ % _tmp7_) == 0) { -#line 1821 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_FILE_ERROR; -#line 1821 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (prepared_file) { -#line 1821 "/home/jens/Source/shotwell/src/BatchImport.vala" - *prepared_file = _vala_prepared_file; -#line 15031 "BatchImport.c" - } else { -#line 1821 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (_vala_prepared_file); -#line 15035 "BatchImport.c" - } -#line 1821 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 15039 "BatchImport.c" - } - } -#line 1825 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = self->priv->skip_every; -#line 1825 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp8_ > 0) { -#line 15046 "BatchImport.c" - gint _tmp9_; - gint _tmp10_; -#line 1826 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = self->priv->import_file_count; -#line 1826 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = self->priv->skip_every; -#line 1826 "/home/jens/Source/shotwell/src/BatchImport.vala" - if ((_tmp9_ % _tmp10_) == 0) { -#line 1827 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_NOT_A_FILE; -#line 1827 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (prepared_file) { -#line 1827 "/home/jens/Source/shotwell/src/BatchImport.vala" - *prepared_file = _vala_prepared_file; -#line 15061 "BatchImport.c" - } else { -#line 1827 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (_vala_prepared_file); -#line 15065 "BatchImport.c" - } -#line 1827 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 15069 "BatchImport.c" - } - } -#line 1830 "/home/jens/Source/shotwell/src/BatchImport.vala" - exif_only_md5 = NULL; -#line 1831 "/home/jens/Source/shotwell/src/BatchImport.vala" - thumbnail_md5 = NULL; -#line 1832 "/home/jens/Source/shotwell/src/BatchImport.vala" - full_md5 = NULL; -#line 15078 "BatchImport.c" - { - gchar* _tmp11_ = NULL; - gchar* _tmp12_; - gchar* _tmp13_; -#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = md5_file (file, &_inner_error_); -#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = _tmp12_; -#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 15089 "BatchImport.c" - goto __catch430_g_error; - } -#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = _tmp11_; -#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = NULL; -#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (full_md5); -#line 1835 "/home/jens/Source/shotwell/src/BatchImport.vala" - full_md5 = _tmp13_; -#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp11_); -#line 15102 "BatchImport.c" - } - goto __finally430; - __catch430_g_error: - { - GError* err = NULL; - gchar* _tmp14_; - gchar* _tmp15_; - GError* _tmp16_; - const gchar* _tmp17_; - GError* _tmp18_; -#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala" - err = _inner_error_; -#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala" - _inner_error_ = NULL; -#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = g_file_get_path (file); -#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = _tmp14_; -#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = err; -#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = _tmp16_->message; -#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_warning ("BatchImport.vala:1840: Unable to perform MD5 checksum on file %s: %s", _tmp15_, _tmp17_); -#line 1840 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp15_); -#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = err; -#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = import_result_convert_error (_tmp18_, IMPORT_RESULT_FILE_ERROR); -#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (err); -#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (full_md5); -#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (thumbnail_md5); -#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (exif_only_md5); -#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (prepared_file) { -#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala" - *prepared_file = _vala_prepared_file; -#line 15145 "BatchImport.c" - } else { -#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (_vala_prepared_file); -#line 15149 "BatchImport.c" - } -#line 1843 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 15153 "BatchImport.c" - } - __finally430: -#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (full_md5); -#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (thumbnail_md5); -#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (exif_only_md5); -#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_clear_error (&_inner_error_); -#line 1834 "/home/jens/Source/shotwell/src/BatchImport.vala" - return 0; -#line 15170 "BatchImport.c" - } -#line 1848 "/home/jens/Source/shotwell/src/BatchImport.vala" - file_format = photo_file_format_get_by_file_extension (file); -#line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp19_ = is_video; -#line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!_tmp19_) { -#line 15178 "BatchImport.c" - PhotoFileFormat _tmp20_; - PhotoFileReader* reader = NULL; - PhotoFileFormat _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - PhotoFileReader* _tmp26_; - PhotoFileReader* _tmp27_; - PhotoMetadata* metadata = NULL; - PhotoMetadata* _tmp36_; -#line 1850 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp20_ = file_format; -#line 1850 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp20_ == PHOTO_FILE_FORMAT_UNKNOWN) { -#line 15192 "BatchImport.c" - gchar* _tmp21_; - gchar* _tmp22_; -#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp21_ = g_file_get_path (file); -#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp22_ = _tmp21_; -#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_warning ("BatchImport.vala:1851: Skipping %s: unrecognized file extension", _tmp22_); -#line 1851 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp22_); -#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_UNSUPPORTED_FORMAT; -#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (full_md5); -#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (thumbnail_md5); -#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (exif_only_md5); -#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (prepared_file) { -#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala" - *prepared_file = _vala_prepared_file; -#line 15215 "BatchImport.c" - } else { -#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (_vala_prepared_file); -#line 15219 "BatchImport.c" - } -#line 1853 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 15223 "BatchImport.c" - } -#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp23_ = file_format; -#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp24_ = g_file_get_path (file); -#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp25_ = _tmp24_; -#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp26_ = photo_file_format_create_reader (_tmp23_, _tmp25_); -#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp27_ = _tmp26_; -#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp25_); -#line 1855 "/home/jens/Source/shotwell/src/BatchImport.vala" - reader = _tmp27_; -#line 1856 "/home/jens/Source/shotwell/src/BatchImport.vala" - metadata = NULL; -#line 15241 "BatchImport.c" - { - PhotoMetadata* _tmp28_ = NULL; - PhotoFileReader* _tmp29_; - PhotoMetadata* _tmp30_; - PhotoMetadata* _tmp31_; -#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp29_ = reader; -#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp30_ = photo_file_reader_read_metadata (_tmp29_, &_inner_error_); -#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp28_ = _tmp30_; -#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 15255 "BatchImport.c" - goto __catch431_g_error; - } -#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp31_ = _tmp28_; -#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp28_ = NULL; -#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala" - _media_metadata_unref0 (metadata); -#line 1858 "/home/jens/Source/shotwell/src/BatchImport.vala" - metadata = _tmp31_; -#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala" - _media_metadata_unref0 (_tmp28_); -#line 15268 "BatchImport.c" - } - goto __finally431; - __catch431_g_error: - { - GError* err = NULL; - gchar* _tmp32_; - gchar* _tmp33_; - GError* _tmp34_; - const gchar* _tmp35_; -#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala" - err = _inner_error_; -#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala" - _inner_error_ = NULL; -#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp32_ = g_file_get_path (file); -#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp33_ = _tmp32_; -#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp34_ = err; -#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp35_ = _tmp34_->message; -#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_warning ("BatchImport.vala:1860: Unable to read metadata for %s (%s): continuing" \ -" to attempt import", _tmp33_, _tmp35_); -#line 1860 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp33_); -#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (err); -#line 15296 "BatchImport.c" - } - __finally431: -#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala" - _media_metadata_unref0 (metadata); -#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala" - _photo_file_adapter_unref0 (reader); -#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (full_md5); -#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (thumbnail_md5); -#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (exif_only_md5); -#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_clear_error (&_inner_error_); -#line 1857 "/home/jens/Source/shotwell/src/BatchImport.vala" - return 0; -#line 15317 "BatchImport.c" - } -#line 1864 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp36_ = metadata; -#line 1864 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp36_ != NULL) { -#line 15323 "BatchImport.c" - PhotoMetadata* _tmp37_; - gchar* _tmp38_; - PhotoMetadata* _tmp39_; - gchar* _tmp40_; -#line 1865 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp37_ = metadata; -#line 1865 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp38_ = photo_metadata_exif_hash (_tmp37_); -#line 1865 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (exif_only_md5); -#line 1865 "/home/jens/Source/shotwell/src/BatchImport.vala" - exif_only_md5 = _tmp38_; -#line 1866 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp39_ = metadata; -#line 1866 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp40_ = photo_metadata_thumbnail_hash (_tmp39_); -#line 1866 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (thumbnail_md5); -#line 1866 "/home/jens/Source/shotwell/src/BatchImport.vala" - thumbnail_md5 = _tmp40_; -#line 15344 "BatchImport.c" - } -#line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala" - _media_metadata_unref0 (metadata); -#line 1849 "/home/jens/Source/shotwell/src/BatchImport.vala" - _photo_file_adapter_unref0 (reader); -#line 15350 "BatchImport.c" - } -#line 1870 "/home/jens/Source/shotwell/src/BatchImport.vala" - filesize = (guint64) 0; -#line 15354 "BatchImport.c" - { - guint64 _tmp41_ = 0ULL; - GCancellable* _tmp42_; - GCancellable* _tmp43_; - guint64 _tmp44_; -#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp42_ = background_job_get_cancellable (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp43_ = _tmp42_; -#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp44_ = query_total_file_size (file, _tmp43_, &_inner_error_); -#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp43_); -#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp41_ = _tmp44_; -#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 15372 "BatchImport.c" - goto __catch432_g_error; - } -#line 1872 "/home/jens/Source/shotwell/src/BatchImport.vala" - filesize = _tmp41_; -#line 15377 "BatchImport.c" - } - goto __finally432; - __catch432_g_error: - { - GError* err = NULL; - gchar* _tmp45_; - gchar* _tmp46_; - GError* _tmp47_; - const gchar* _tmp48_; - GError* _tmp49_; -#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala" - err = _inner_error_; -#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala" - _inner_error_ = NULL; -#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp45_ = g_file_get_path (file); -#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp46_ = _tmp45_; -#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp47_ = err; -#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp48_ = _tmp47_->message; -#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_warning ("BatchImport.vala:1874: Unable to query file size of %s: %s", _tmp46_, _tmp48_); -#line 1874 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp46_); -#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp49_ = err; -#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = import_result_convert_error (_tmp49_, IMPORT_RESULT_FILE_ERROR); -#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (err); -#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (full_md5); -#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (thumbnail_md5); -#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (exif_only_md5); -#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (prepared_file) { -#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala" - *prepared_file = _vala_prepared_file; -#line 15420 "BatchImport.c" - } else { -#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (_vala_prepared_file); -#line 15424 "BatchImport.c" - } -#line 1876 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 15428 "BatchImport.c" - } - __finally432: -#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (full_md5); -#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (thumbnail_md5); -#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (exif_only_md5); -#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_clear_error (&_inner_error_); -#line 1871 "/home/jens/Source/shotwell/src/BatchImport.vala" - return 0; -#line 15445 "BatchImport.c" - } -#line 1880 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp50_ = self->priv->library_dir; -#line 1880 "/home/jens/Source/shotwell/src/BatchImport.vala" - is_in_library_dir = g_file_has_prefix (file, _tmp50_); -#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (copy_to_library) { -#line 15453 "BatchImport.c" - gboolean _tmp52_; -#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp52_ = is_in_library_dir; -#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp51_ = !_tmp52_; -#line 15459 "BatchImport.c" - } else { -#line 1884 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp51_ = FALSE; -#line 15463 "BatchImport.c" - } -#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp53_ = batch_import_job_get_source_identifier (job); -#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp54_ = _tmp53_; -#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp55_ = batch_import_job_get_dest_identifier (job); -#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp56_ = _tmp55_; -#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp57_ = exif_only_md5; -#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp58_ = thumbnail_md5; -#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp59_ = full_md5; -#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp60_ = file_format; -#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp61_ = filesize; -#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp62_ = is_video; -#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp63_ = prepared_file_new (job, file, associated_file, _tmp54_, _tmp56_, _tmp51_, _tmp57_, _tmp58_, _tmp59_, _tmp60_, _tmp61_, _tmp62_); -#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (_vala_prepared_file); -#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_prepared_file = _tmp63_; -#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp56_); -#line 1883 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp54_); -#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = IMPORT_RESULT_SUCCESS; -#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (full_md5); -#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (thumbnail_md5); -#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (exif_only_md5); -#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (prepared_file) { -#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala" - *prepared_file = _vala_prepared_file; -#line 15507 "BatchImport.c" - } else { -#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (_vala_prepared_file); -#line 15511 "BatchImport.c" - } -#line 1887 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 15515 "BatchImport.c" -} - - -static void -prepare_files_job_class_init (PrepareFilesJobClass * klass) -{ -#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala" - prepare_files_job_parent_class = g_type_class_peek_parent (klass); -#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BackgroundJobClass *) klass)->finalize = prepare_files_job_finalize; -#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_type_class_add_private (klass, sizeof (PrepareFilesJobPrivate)); -#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) prepare_files_job_real_execute; -#line 15530 "BatchImport.c" -} - - -static void -prepare_files_job_instance_init (PrepareFilesJob * self) -{ -#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv = PREPARE_FILES_JOB_GET_PRIVATE (self); -#line 1687 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->prepared_files = 0; -#line 1694 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->import_file_count = 0; -#line 1695 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->fail_every = 0; -#line 1696 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->skip_every = 0; -#line 15547 "BatchImport.c" -} - - -static void -prepare_files_job_finalize (BackgroundJob * obj) -{ - PrepareFilesJob * self; -#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PREPARE_FILES_JOB, PrepareFilesJob); -#line 1689 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->files_to_prepare); -#line 1691 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->priv->library_dir); -#line 1685 "/home/jens/Source/shotwell/src/BatchImport.vala" - BACKGROUND_JOB_CLASS (prepare_files_job_parent_class)->finalize (obj); -#line 15563 "BatchImport.c" -} - - -GType -prepare_files_job_get_type (void) -{ - static volatile gsize prepare_files_job_type_id__volatile = 0; - if (g_once_init_enter (&prepare_files_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PrepareFilesJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) prepare_files_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PrepareFilesJob), 0, (GInstanceInitFunc) prepare_files_job_instance_init, NULL }; - GType prepare_files_job_type_id; - prepare_files_job_type_id = g_type_register_static (TYPE_BACKGROUND_IMPORT_JOB, "PrepareFilesJob", &g_define_type_info, 0); - g_once_init_leave (&prepare_files_job_type_id__volatile, prepare_files_job_type_id); - } - return prepare_files_job_type_id__volatile; -} - - -static gpointer -_prepared_file_ref0 (gpointer self) -{ -#line 1908 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self ? prepared_file_ref (self) : NULL; -#line 15586 "BatchImport.c" -} - - -static gpointer -_batch_import_result_ref0 (gpointer self) -{ -#line 1909 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self ? batch_import_result_ref (self) : NULL; -#line 15595 "BatchImport.c" -} - - -static gpointer -_video_import_params_ref0 (gpointer self) -{ -#line 1910 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self ? video_import_params_ref (self) : NULL; -#line 15604 "BatchImport.c" -} - - -static gpointer -_photo_import_params_ref0 (gpointer self) -{ -#line 1911 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self ? photo_import_params_ref (self) : NULL; -#line 15613 "BatchImport.c" -} - - -ReadyForImport* -ready_for_import_construct (GType object_type, - GFile* final_file, - PreparedFile* prepared_file, - PhotoImportParams* photo_import_params, - VideoImportParams* video_import_params, - BatchImportResult* batch_result) -{ - ReadyForImport* self = NULL; - gboolean _tmp0_; - GFile* _tmp3_; - PreparedFile* _tmp4_; - BatchImportResult* _tmp5_; - VideoImportParams* _tmp6_; - PhotoImportParams* _tmp7_; - gboolean _tmp8_; -#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_IS_FILE (final_file), NULL); -#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_PREPARED_FILE (prepared_file), NULL); -#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail ((photo_import_params == NULL) || IS_PHOTO_IMPORT_PARAMS (photo_import_params), NULL); -#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail ((video_import_params == NULL) || IS_VIDEO_IMPORT_PARAMS (video_import_params), NULL); -#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_RESULT (batch_result), NULL); -#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (ReadyForImport*) g_type_create_instance (object_type); -#line 1902 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = prepared_file->is_video; -#line 1902 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp0_) { -#line 15649 "BatchImport.c" - gboolean _tmp1_ = FALSE; -#line 1903 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (video_import_params != NULL) { -#line 1903 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = photo_import_params == NULL; -#line 15655 "BatchImport.c" - } else { -#line 1903 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = FALSE; -#line 15659 "BatchImport.c" - } -#line 1903 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (_tmp1_, "(video_import_params != null) && (photo_import_params == null)"); -#line 15663 "BatchImport.c" - } else { - gboolean _tmp2_ = FALSE; -#line 1905 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (video_import_params == NULL) { -#line 1905 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = photo_import_params != NULL; -#line 15670 "BatchImport.c" - } else { -#line 1905 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = FALSE; -#line 15674 "BatchImport.c" - } -#line 1905 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (_tmp2_, "(video_import_params == null) && (photo_import_params != null)"); -#line 15678 "BatchImport.c" - } -#line 1907 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = _g_object_ref0 (final_file); -#line 1907 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->final_file); -#line 1907 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->final_file = _tmp3_; -#line 1908 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _prepared_file_ref0 (prepared_file); -#line 1908 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (self->prepared_file); -#line 1908 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->prepared_file = _tmp4_; -#line 1909 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = _batch_import_result_ref0 (batch_result); -#line 1909 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (self->batch_result); -#line 1909 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->batch_result = _tmp5_; -#line 1910 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = _video_import_params_ref0 (video_import_params); -#line 1910 "/home/jens/Source/shotwell/src/BatchImport.vala" - _video_import_params_unref0 (self->video_import_params); -#line 1910 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->video_import_params = _tmp6_; -#line 1911 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = _photo_import_params_ref0 (photo_import_params); -#line 1911 "/home/jens/Source/shotwell/src/BatchImport.vala" - _photo_import_params_unref0 (self->photo_import_params); -#line 1911 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->photo_import_params = _tmp7_; -#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = prepared_file->is_video; -#line 1912 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->is_video = _tmp8_; -#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 15716 "BatchImport.c" -} - - -ReadyForImport* -ready_for_import_new (GFile* final_file, - PreparedFile* prepared_file, - PhotoImportParams* photo_import_params, - VideoImportParams* video_import_params, - BatchImportResult* batch_result) -{ -#line 1899 "/home/jens/Source/shotwell/src/BatchImport.vala" - return ready_for_import_construct (TYPE_READY_FOR_IMPORT, final_file, prepared_file, photo_import_params, video_import_params, batch_result); -#line 15729 "BatchImport.c" -} - - -BatchImportResult* -ready_for_import_abort (ReadyForImport* self) -{ - BatchImportResult* result = NULL; - gboolean _tmp0_ = FALSE; - GFile* _tmp1_; - PreparedFile* _tmp14_; - BatchImportJob* _tmp15_; - PreparedFile* _tmp16_; - GFile* _tmp17_; - PreparedFile* _tmp18_; - BatchImportJob* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - PreparedFile* _tmp22_; - BatchImportJob* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - BatchImportResult* _tmp26_; - BatchImportResult* _tmp27_; - BatchImportResult* _tmp28_; - GError * _inner_error_ = NULL; -#line 1915 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_READY_FOR_IMPORT (self), NULL); -#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = self->final_file; -#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp1_ != NULL) { -#line 15761 "BatchImport.c" - GFile* _tmp2_; - PreparedFile* _tmp3_; - GFile* _tmp4_; -#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = self->final_file; -#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = self->prepared_file; -#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _tmp3_->file; -#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _tmp2_ != _tmp4_; -#line 15773 "BatchImport.c" - } else { -#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = FALSE; -#line 15777 "BatchImport.c" - } -#line 1917 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp0_) { -#line 15781 "BatchImport.c" - GFile* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 1918 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = self->final_file; -#line 1918 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = g_file_get_path (_tmp5_); -#line 1918 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = _tmp6_; -#line 1918 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_debug ("BatchImport.vala:1918: Deleting aborted import copy %s", _tmp7_); -#line 1918 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp7_); -#line 15795 "BatchImport.c" - { - GFile* _tmp8_; -#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = self->final_file; -#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_file_delete (_tmp8_, NULL, &_inner_error_); -#line 1920 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 15804 "BatchImport.c" - goto __catch433_g_error; - } - } - goto __finally433; - __catch433_g_error: - { - GError* err = NULL; - GFile* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - GError* _tmp12_; - const gchar* _tmp13_; -#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala" - err = _inner_error_; -#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala" - _inner_error_ = NULL; -#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = self->final_file; -#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = g_file_get_path (_tmp9_); -#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = _tmp10_; -#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = err; -#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = _tmp12_->message; -#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_warning ("BatchImport.vala:1922: Unable to delete copy of imported file (aborted" \ -" import) %s: %s", _tmp11_, _tmp13_); -#line 1922 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp11_); -#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (err); -#line 15837 "BatchImport.c" - } - __finally433: -#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_clear_error (&_inner_error_); -#line 1919 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 15848 "BatchImport.c" - } - } -#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = self->prepared_file; -#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = _tmp14_->job; -#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = self->prepared_file; -#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = _tmp16_->file; -#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = self->prepared_file; -#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp19_ = _tmp18_->job; -#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp20_ = batch_import_job_get_source_identifier (_tmp19_); -#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp21_ = _tmp20_; -#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp22_ = self->prepared_file; -#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp23_ = _tmp22_->job; -#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp24_ = batch_import_job_get_dest_identifier (_tmp23_); -#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp25_ = _tmp24_; -#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp26_ = batch_import_result_new (_tmp15_, _tmp17_, _tmp21_, _tmp25_, NULL, IMPORT_RESULT_USER_ABORT); -#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (self->batch_result); -#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->batch_result = _tmp26_; -#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp25_); -#line 1927 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp21_); -#line 1931 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp27_ = self->batch_result; -#line 1931 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp28_ = _batch_import_result_ref0 (_tmp27_); -#line 1931 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp28_; -#line 1931 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 15893 "BatchImport.c" -} - - -static gpointer -_thumbnails_ref0 (gpointer self) -{ -#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self ? thumbnails_ref (self) : NULL; -#line 15902 "BatchImport.c" -} - - -Thumbnails* -ready_for_import_get_thumbnails (ReadyForImport* self) -{ - Thumbnails* result = NULL; - Thumbnails* _tmp0_ = NULL; - PhotoImportParams* _tmp1_; - Thumbnails* _tmp6_; -#line 1934 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_READY_FOR_IMPORT (self), NULL); -#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = self->photo_import_params; -#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp1_ != NULL) { -#line 15919 "BatchImport.c" - PhotoImportParams* _tmp2_; - Thumbnails* _tmp3_; -#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = self->photo_import_params; -#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = _tmp2_->thumbnails; -#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _tmp3_; -#line 15928 "BatchImport.c" - } else { - VideoImportParams* _tmp4_; - Thumbnails* _tmp5_; -#line 1936 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = self->video_import_params; -#line 1936 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = _tmp4_->thumbnails; -#line 1936 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _tmp5_; -#line 15938 "BatchImport.c" - } -#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = _thumbnails_ref0 (_tmp0_); -#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala" - result = _tmp6_; -#line 1935 "/home/jens/Source/shotwell/src/BatchImport.vala" - return result; -#line 15946 "BatchImport.c" -} - - -static void -value_ready_for_import_init (GValue* value) -{ -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 15955 "BatchImport.c" -} - - -static void -value_ready_for_import_free_value (GValue* value) -{ -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (value->data[0].v_pointer) { -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - ready_for_import_unref (value->data[0].v_pointer); -#line 15966 "BatchImport.c" - } -} - - -static void -value_ready_for_import_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (src_value->data[0].v_pointer) { -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - dest_value->data[0].v_pointer = ready_for_import_ref (src_value->data[0].v_pointer); -#line 15979 "BatchImport.c" - } else { -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - dest_value->data[0].v_pointer = NULL; -#line 15983 "BatchImport.c" - } -} - - -static gpointer -value_ready_for_import_peek_pointer (const GValue* value) -{ -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - return value->data[0].v_pointer; -#line 15993 "BatchImport.c" -} - - -static gchar* -value_ready_for_import_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (collect_values[0].v_pointer) { -#line 16005 "BatchImport.c" - ReadyForImport * object; - object = collect_values[0].v_pointer; -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (object->parent_instance.g_class == NULL) { -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 16012 "BatchImport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 16016 "BatchImport.c" - } -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = ready_for_import_ref (object); -#line 16020 "BatchImport.c" - } else { -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 16024 "BatchImport.c" - } -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 16028 "BatchImport.c" -} - - -static gchar* -value_ready_for_import_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - ReadyForImport ** object_p; - object_p = collect_values[0].v_pointer; -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!object_p) { -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 16044 "BatchImport.c" - } -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!value->data[0].v_pointer) { -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = NULL; -#line 16050 "BatchImport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = value->data[0].v_pointer; -#line 16054 "BatchImport.c" - } else { -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = ready_for_import_ref (value->data[0].v_pointer); -#line 16058 "BatchImport.c" - } -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 16062 "BatchImport.c" -} - - -GParamSpec* -param_spec_ready_for_import (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecReadyForImport* spec; -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_READY_FOR_IMPORT), NULL); -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - return G_PARAM_SPEC (spec); -#line 16082 "BatchImport.c" -} - - -gpointer -value_get_ready_for_import (const GValue* value) -{ -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_READY_FOR_IMPORT), NULL); -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - return value->data[0].v_pointer; -#line 16093 "BatchImport.c" -} - - -void -value_set_ready_for_import (GValue* value, - gpointer v_object) -{ - ReadyForImport * old; -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_READY_FOR_IMPORT)); -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - old = value->data[0].v_pointer; -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (v_object) { -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_READY_FOR_IMPORT)); -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = v_object; -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - ready_for_import_ref (value->data[0].v_pointer); -#line 16116 "BatchImport.c" - } else { -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 16120 "BatchImport.c" - } -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (old) { -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - ready_for_import_unref (old); -#line 16126 "BatchImport.c" - } -} - - -void -value_take_ready_for_import (GValue* value, - gpointer v_object) -{ - ReadyForImport * old; -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_READY_FOR_IMPORT)); -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - old = value->data[0].v_pointer; -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (v_object) { -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_READY_FOR_IMPORT)); -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = v_object; -#line 16148 "BatchImport.c" - } else { -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 16152 "BatchImport.c" - } -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (old) { -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - ready_for_import_unref (old); -#line 16158 "BatchImport.c" - } -} - - -static void -ready_for_import_class_init (ReadyForImportClass * klass) -{ -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - ready_for_import_parent_class = g_type_class_peek_parent (klass); -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((ReadyForImportClass *) klass)->finalize = ready_for_import_finalize; -#line 16170 "BatchImport.c" -} - - -static void -ready_for_import_instance_init (ReadyForImport * self) -{ -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->ref_count = 1; -#line 16179 "BatchImport.c" -} - - -static void -ready_for_import_finalize (ReadyForImport * obj) -{ - ReadyForImport * self; -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_READY_FOR_IMPORT, ReadyForImport); -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_handlers_destroy (self); -#line 1892 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->final_file); -#line 1893 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (self->prepared_file); -#line 1894 "/home/jens/Source/shotwell/src/BatchImport.vala" - _photo_import_params_unref0 (self->photo_import_params); -#line 1895 "/home/jens/Source/shotwell/src/BatchImport.vala" - _video_import_params_unref0 (self->video_import_params); -#line 1896 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (self->batch_result); -#line 16201 "BatchImport.c" -} - - -GType -ready_for_import_get_type (void) -{ - static volatile gsize ready_for_import_type_id__volatile = 0; - if (g_once_init_enter (&ready_for_import_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_ready_for_import_init, value_ready_for_import_free_value, value_ready_for_import_copy_value, value_ready_for_import_peek_pointer, "p", value_ready_for_import_collect_value, "p", value_ready_for_import_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (ReadyForImportClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) ready_for_import_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ReadyForImport), 0, (GInstanceInitFunc) ready_for_import_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType ready_for_import_type_id; - ready_for_import_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ReadyForImport", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&ready_for_import_type_id__volatile, ready_for_import_type_id); - } - return ready_for_import_type_id__volatile; -} - - -gpointer -ready_for_import_ref (gpointer instance) -{ - ReadyForImport * self; - self = instance; -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_atomic_int_inc (&self->ref_count); -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - return instance; -#line 16230 "BatchImport.c" -} - - -void -ready_for_import_unref (gpointer instance) -{ - ReadyForImport * self; - self = instance; -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - READY_FOR_IMPORT_GET_CLASS (self)->finalize (self); -#line 1891 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 16245 "BatchImport.c" - } -} - - -PreparedFileImportJob* -prepared_file_import_job_construct (GType object_type, - BatchImport* owner, - PreparedFile* prepared_file, - ImportID* import_id, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target) -{ - PreparedFileImportJob* self = NULL; - ImportID _tmp0_; - PreparedFile* _tmp1_; -#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT (owner), NULL); -#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_PREPARED_FILE (prepared_file), NULL); -#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (import_id != NULL, NULL); -#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL); -#line 1949 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (PreparedFileImportJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), callback, callback_target, cancellable, cancellation, cancellation_target, NULL); -#line 1951 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = *import_id; -#line 1951 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv->import_id = _tmp0_; -#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _prepared_file_ref0 (prepared_file); -#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (self->not_ready); -#line 1952 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->not_ready = _tmp1_; -#line 1954 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_job_set_completion_priority (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), G_PRIORITY_LOW); -#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 16288 "BatchImport.c" -} - - -PreparedFileImportJob* -prepared_file_import_job_new (BatchImport* owner, - PreparedFile* prepared_file, - ImportID* import_id, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target) -{ -#line 1947 "/home/jens/Source/shotwell/src/BatchImport.vala" - return prepared_file_import_job_construct (TYPE_PREPARED_FILE_IMPORT_JOB, owner, prepared_file, import_id, callback, callback_target, cancellable, cancellation, cancellation_target); -#line 16304 "BatchImport.c" -} - - -static void -prepared_file_import_job_real_execute (BackgroundJob* base) -{ - PreparedFileImportJob * self; - PreparedFile* prepared_file = NULL; - PreparedFile* _tmp0_; - PreparedFile* _tmp1_; - GFile* final_file = NULL; - PreparedFile* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - GFile* final_associated_file = NULL; - PreparedFile* _tmp5_; - GFile* _tmp6_; - GFile* _tmp7_; - PreparedFile* _tmp8_; - gboolean _tmp9_; - GFile* _tmp51_; - GFile* _tmp55_; - gchar* _tmp56_; - gchar* _tmp57_; - ImportResult _result_ = 0; - VideoImportParams* video_import_params = NULL; - PhotoImportParams* photo_import_params = NULL; - PreparedFile* _tmp58_; - gboolean _tmp59_; - gboolean _tmp83_ = FALSE; - ImportResult _tmp84_; - BatchImportResult* batch_result = NULL; - PreparedFile* _tmp97_; - BatchImportJob* _tmp98_; - GFile* _tmp99_; - GFile* _tmp100_; - gchar* _tmp101_; - gchar* _tmp102_; - GFile* _tmp103_; - gchar* _tmp104_; - gchar* _tmp105_; - ImportResult _tmp106_; - BatchImportResult* _tmp107_; - BatchImportResult* _tmp108_; - BatchImportResult* _tmp109_; - ImportResult _tmp110_; - GError * _inner_error_ = NULL; -#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJob); -#line 1958 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->not_ready; -#line 1958 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _prepared_file_ref0 (_tmp0_); -#line 1958 "/home/jens/Source/shotwell/src/BatchImport.vala" - prepared_file = _tmp1_; -#line 1959 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (self->not_ready); -#line 1959 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->not_ready = NULL; -#line 1961 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = prepared_file; -#line 1961 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = _tmp2_->file; -#line 1961 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = _g_object_ref0 (_tmp3_); -#line 1961 "/home/jens/Source/shotwell/src/BatchImport.vala" - final_file = _tmp4_; -#line 1962 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = prepared_file; -#line 1962 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = _tmp5_->associated_file; -#line 1962 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = _g_object_ref0 (_tmp6_); -#line 1962 "/home/jens/Source/shotwell/src/BatchImport.vala" - final_associated_file = _tmp7_; -#line 1964 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = prepared_file; -#line 1964 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = _tmp8_->copy_to_library; -#line 1964 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp9_) { -#line 16386 "BatchImport.c" - { - GFile* _tmp10_ = NULL; - PreparedFile* _tmp11_; - GFile* _tmp12_; - GFile* _tmp13_; - GFile* _tmp14_; - GFile* _tmp15_; - GFile* _tmp29_; -#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp11_ = prepared_file; -#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp12_ = _tmp11_->file; -#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp13_ = library_files_duplicate (_tmp12_, NULL, NULL, TRUE, &_inner_error_); -#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = _tmp13_; -#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 16405 "BatchImport.c" - goto __catch434_g_error; - } -#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp14_ = _tmp10_; -#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp10_ = NULL; -#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (final_file); -#line 1967 "/home/jens/Source/shotwell/src/BatchImport.vala" - final_file = _tmp14_; -#line 1968 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp15_ = final_file; -#line 1968 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp15_ == NULL) { -#line 16420 "BatchImport.c" - PreparedFile* _tmp16_; - BatchImportJob* _tmp17_; - PreparedFile* _tmp18_; - GFile* _tmp19_; - PreparedFile* _tmp20_; - GFile* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - PreparedFile* _tmp24_; - GFile* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; - BatchImportResult* _tmp28_; -#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp16_ = prepared_file; -#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp17_ = _tmp16_->job; -#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp18_ = prepared_file; -#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp19_ = _tmp18_->file; -#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp20_ = prepared_file; -#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp21_ = _tmp20_->file; -#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp22_ = g_file_get_path (_tmp21_); -#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp23_ = _tmp22_; -#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp24_ = prepared_file; -#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp25_ = _tmp24_->file; -#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp26_ = g_file_get_path (_tmp25_); -#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp27_ = _tmp26_; -#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp28_ = batch_import_result_new (_tmp17_, _tmp19_, _tmp23_, _tmp27_, NULL, IMPORT_RESULT_FILE_ERROR); -#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (self->failed); -#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->failed = _tmp28_; -#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp27_); -#line 1969 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp23_); -#line 1973 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp10_); -#line 1973 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (final_associated_file); -#line 1973 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (final_file); -#line 1973 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (prepared_file); -#line 1973 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 16478 "BatchImport.c" - } -#line 1977 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp29_ = final_associated_file; -#line 1977 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp29_ != NULL) { -#line 16484 "BatchImport.c" - GFile* _tmp30_ = NULL; - PreparedFile* _tmp31_; - GFile* _tmp32_; - GFile* _tmp33_; - GFile* _tmp34_; -#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp31_ = prepared_file; -#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp32_ = _tmp31_->associated_file; -#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp33_ = library_files_duplicate (_tmp32_, NULL, NULL, TRUE, &_inner_error_); -#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp30_ = _tmp33_; -#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp10_); -#line 16502 "BatchImport.c" - goto __catch434_g_error; - } -#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp34_ = _tmp30_; -#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp30_ = NULL; -#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (final_associated_file); -#line 1978 "/home/jens/Source/shotwell/src/BatchImport.vala" - final_associated_file = _tmp34_; -#line 1977 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp30_); -#line 16515 "BatchImport.c" - } -#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (_tmp10_); -#line 16519 "BatchImport.c" - } - goto __finally434; - __catch434_g_error: - { - GError* err = NULL; - gchar* _tmp35_ = NULL; - GFile* _tmp36_; - gchar* filename = NULL; - gchar* _tmp42_; - PreparedFile* _tmp43_; - BatchImportJob* _tmp44_; - PreparedFile* _tmp45_; - GFile* _tmp46_; - const gchar* _tmp47_; - const gchar* _tmp48_; - GError* _tmp49_; - BatchImportResult* _tmp50_; -#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala" - err = _inner_error_; -#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala" - _inner_error_ = NULL; -#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp36_ = final_file; -#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp36_ != NULL) { -#line 16545 "BatchImport.c" - GFile* _tmp37_; - gchar* _tmp38_; -#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp37_ = final_file; -#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp38_ = g_file_get_path (_tmp37_); -#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp35_); -#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp35_ = _tmp38_; -#line 16556 "BatchImport.c" - } else { - PreparedFile* _tmp39_; - const gchar* _tmp40_; - gchar* _tmp41_; -#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp39_ = prepared_file; -#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp40_ = _tmp39_->source_id; -#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp41_ = g_strdup (_tmp40_); -#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp35_); -#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp35_ = _tmp41_; -#line 16571 "BatchImport.c" - } -#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp42_ = g_strdup (_tmp35_); -#line 1981 "/home/jens/Source/shotwell/src/BatchImport.vala" - filename = _tmp42_; -#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp43_ = prepared_file; -#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp44_ = _tmp43_->job; -#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp45_ = prepared_file; -#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp46_ = _tmp45_->file; -#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp47_ = filename; -#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp48_ = filename; -#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp49_ = err; -#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp50_ = batch_import_result_new_from_error (_tmp44_, _tmp46_, _tmp47_, _tmp48_, _tmp49_, IMPORT_RESULT_FILE_ERROR); -#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (self->failed); -#line 1982 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->failed = _tmp50_; -#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (filename); -#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp35_); -#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (err); -#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (final_associated_file); -#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (final_file); -#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (prepared_file); -#line 1985 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 16611 "BatchImport.c" - } - __finally434: -#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (final_associated_file); -#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (final_file); -#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (prepared_file); -#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_clear_error (&_inner_error_); -#line 1965 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 16628 "BatchImport.c" - } - } -#line 1991 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp51_ = final_associated_file; -#line 1991 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp51_ == NULL) { -#line 16635 "BatchImport.c" - PreparedFile* _tmp52_; - BatchImportJob* _tmp53_; - GFile* _tmp54_; -#line 1992 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp52_ = prepared_file; -#line 1992 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp53_ = _tmp52_->job; -#line 1992 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp54_ = batch_import_job_get_associated_file (_tmp53_); -#line 1992 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (final_associated_file); -#line 1992 "/home/jens/Source/shotwell/src/BatchImport.vala" - final_associated_file = _tmp54_; -#line 16649 "BatchImport.c" - } -#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp55_ = final_file; -#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp56_ = g_file_get_path (_tmp55_); -#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp57_ = _tmp56_; -#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_debug ("BatchImport.vala:1995: Importing %s", _tmp57_); -#line 1995 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp57_); -#line 1997 "/home/jens/Source/shotwell/src/BatchImport.vala" - _result_ = IMPORT_RESULT_SUCCESS; -#line 1998 "/home/jens/Source/shotwell/src/BatchImport.vala" - video_import_params = NULL; -#line 1999 "/home/jens/Source/shotwell/src/BatchImport.vala" - photo_import_params = NULL; -#line 2000 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp58_ = prepared_file; -#line 2000 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp59_ = _tmp58_->is_video; -#line 2000 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp59_) { -#line 16673 "BatchImport.c" - GFile* _tmp60_; - ImportID _tmp61_; - PreparedFile* _tmp62_; - const gchar* _tmp63_; - Thumbnails* _tmp64_; - Thumbnails* _tmp65_; - PreparedFile* _tmp66_; - BatchImportJob* _tmp67_; - VideoImportParams* _tmp68_; - VideoImportParams* _tmp69_; -#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp60_ = final_file; -#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp61_ = self->priv->import_id; -#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp62_ = prepared_file; -#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp63_ = _tmp62_->full_md5; -#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp64_ = thumbnails_new (); -#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp65_ = _tmp64_; -#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp66_ = prepared_file; -#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp67_ = _tmp66_->job; -#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp68_ = video_import_params_new (_tmp60_, &_tmp61_, _tmp63_, _tmp65_, batch_import_job_get_exposure_time_override (_tmp67_)); -#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala" - _video_import_params_unref0 (video_import_params); -#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala" - video_import_params = _tmp68_; -#line 2001 "/home/jens/Source/shotwell/src/BatchImport.vala" - _thumbnails_unref0 (_tmp65_); -#line 2005 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp69_ = video_import_params; -#line 2005 "/home/jens/Source/shotwell/src/BatchImport.vala" - _result_ = video_reader_prepare_for_import (_tmp69_); -#line 16712 "BatchImport.c" - } else { - GFile* _tmp70_; - GFile* _tmp71_; - ImportID _tmp72_; - PreparedFile* _tmp73_; - const gchar* _tmp74_; - PreparedFile* _tmp75_; - const gchar* _tmp76_; - PreparedFile* _tmp77_; - const gchar* _tmp78_; - Thumbnails* _tmp79_; - Thumbnails* _tmp80_; - PhotoImportParams* _tmp81_; - PhotoImportParams* _tmp82_; -#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp70_ = final_file; -#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp71_ = final_associated_file; -#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp72_ = self->priv->import_id; -#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp73_ = prepared_file; -#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp74_ = _tmp73_->exif_md5; -#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp75_ = prepared_file; -#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp76_ = _tmp75_->thumbnail_md5; -#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp77_ = prepared_file; -#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp78_ = _tmp77_->full_md5; -#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp79_ = thumbnails_new (); -#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp80_ = _tmp79_; -#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp81_ = photo_import_params_new (_tmp70_, _tmp71_, &_tmp72_, PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL, _tmp74_, _tmp76_, _tmp78_, _tmp80_); -#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala" - _photo_import_params_unref0 (photo_import_params); -#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala" - photo_import_params = _tmp81_; -#line 2007 "/home/jens/Source/shotwell/src/BatchImport.vala" - _thumbnails_unref0 (_tmp80_); -#line 2011 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp82_ = photo_import_params; -#line 2011 "/home/jens/Source/shotwell/src/BatchImport.vala" - _result_ = photo_prepare_for_import (_tmp82_); -#line 16761 "BatchImport.c" - } -#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp84_ = _result_; -#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp84_ != IMPORT_RESULT_SUCCESS) { -#line 16767 "BatchImport.c" - GFile* _tmp85_; - PreparedFile* _tmp86_; - GFile* _tmp87_; -#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp85_ = final_file; -#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp86_ = prepared_file; -#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp87_ = _tmp86_->file; -#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp83_ = _tmp85_ != _tmp87_; -#line 16779 "BatchImport.c" - } else { -#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp83_ = FALSE; -#line 16783 "BatchImport.c" - } -#line 2014 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp83_) { -#line 16787 "BatchImport.c" - GFile* _tmp88_; - gchar* _tmp89_; - gchar* _tmp90_; -#line 2015 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp88_ = final_file; -#line 2015 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp89_ = g_file_get_path (_tmp88_); -#line 2015 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp90_ = _tmp89_; -#line 2015 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_debug ("BatchImport.vala:2015: Deleting failed imported copy %s", _tmp90_); -#line 2015 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp90_); -#line 16801 "BatchImport.c" - { - GFile* _tmp91_; -#line 2017 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp91_ = final_file; -#line 2017 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_file_delete (_tmp91_, NULL, &_inner_error_); -#line 2017 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 16810 "BatchImport.c" - goto __catch435_g_error; - } - } - goto __finally435; - __catch435_g_error: - { - GError* err = NULL; - GFile* _tmp92_; - gchar* _tmp93_; - gchar* _tmp94_; - GError* _tmp95_; - const gchar* _tmp96_; -#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala" - err = _inner_error_; -#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala" - _inner_error_ = NULL; -#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp92_ = final_file; -#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp93_ = g_file_get_path (_tmp92_); -#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp94_ = _tmp93_; -#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp95_ = err; -#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp96_ = _tmp95_->message; -#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_warning ("BatchImport.vala:2020: Unable to delete copy of imported file %s: %s", _tmp94_, _tmp96_); -#line 2020 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp94_); -#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (err); -#line 16843 "BatchImport.c" - } - __finally435: -#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala" - _photo_import_params_unref0 (photo_import_params); -#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala" - _video_import_params_unref0 (video_import_params); -#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (final_associated_file); -#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (final_file); -#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (prepared_file); -#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_clear_error (&_inner_error_); -#line 2016 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 16864 "BatchImport.c" - } - } -#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp97_ = prepared_file; -#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp98_ = _tmp97_->job; -#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp99_ = final_file; -#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp100_ = final_file; -#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp101_ = g_file_get_path (_tmp100_); -#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp102_ = _tmp101_; -#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp103_ = final_file; -#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp104_ = g_file_get_path (_tmp103_); -#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp105_ = _tmp104_; -#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp106_ = _result_; -#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp107_ = batch_import_result_new (_tmp98_, _tmp99_, _tmp102_, _tmp105_, NULL, _tmp106_); -#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp108_ = _tmp107_; -#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp105_); -#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_free0 (_tmp102_); -#line 2025 "/home/jens/Source/shotwell/src/BatchImport.vala" - batch_result = _tmp108_; -#line 2027 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp109_ = batch_result; -#line 2027 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp110_ = _tmp109_->result; -#line 2027 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (_tmp110_ != IMPORT_RESULT_SUCCESS) { -#line 16903 "BatchImport.c" - BatchImportResult* _tmp111_; - BatchImportResult* _tmp112_; -#line 2028 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp111_ = batch_result; -#line 2028 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp112_ = _batch_import_result_ref0 (_tmp111_); -#line 2028 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (self->failed); -#line 2028 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->failed = _tmp112_; -#line 16914 "BatchImport.c" - } else { - GFile* _tmp113_; - PreparedFile* _tmp114_; - PhotoImportParams* _tmp115_; - VideoImportParams* _tmp116_; - BatchImportResult* _tmp117_; - ReadyForImport* _tmp118_; -#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp113_ = final_file; -#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp114_ = prepared_file; -#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp115_ = photo_import_params; -#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp116_ = video_import_params; -#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp117_ = batch_result; -#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp118_ = ready_for_import_new (_tmp113_, _tmp114_, _tmp115_, _tmp116_, _tmp117_); -#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala" - _ready_for_import_unref0 (self->ready); -#line 2030 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->ready = _tmp118_; -#line 16938 "BatchImport.c" - } -#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (batch_result); -#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala" - _photo_import_params_unref0 (photo_import_params); -#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala" - _video_import_params_unref0 (video_import_params); -#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (final_associated_file); -#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (final_file); -#line 1957 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (prepared_file); -#line 16952 "BatchImport.c" -} - - -static void -prepared_file_import_job_class_init (PreparedFileImportJobClass * klass) -{ -#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala" - prepared_file_import_job_parent_class = g_type_class_peek_parent (klass); -#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BackgroundJobClass *) klass)->finalize = prepared_file_import_job_finalize; -#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_type_class_add_private (klass, sizeof (PreparedFileImportJobPrivate)); -#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) prepared_file_import_job_real_execute; -#line 16967 "BatchImport.c" -} - - -static void -prepared_file_import_job_instance_init (PreparedFileImportJob * self) -{ -#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->priv = PREPARED_FILE_IMPORT_JOB_GET_PRIVATE (self); -#line 1942 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->ready = NULL; -#line 1943 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->failed = NULL; -#line 16980 "BatchImport.c" -} - - -static void -prepared_file_import_job_finalize (BackgroundJob * obj) -{ - PreparedFileImportJob * self; -#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PREPARED_FILE_IMPORT_JOB, PreparedFileImportJob); -#line 1941 "/home/jens/Source/shotwell/src/BatchImport.vala" - _prepared_file_unref0 (self->not_ready); -#line 1942 "/home/jens/Source/shotwell/src/BatchImport.vala" - _ready_for_import_unref0 (self->ready); -#line 1943 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (self->failed); -#line 1940 "/home/jens/Source/shotwell/src/BatchImport.vala" - BACKGROUND_JOB_CLASS (prepared_file_import_job_parent_class)->finalize (obj); -#line 16998 "BatchImport.c" -} - - -GType -prepared_file_import_job_get_type (void) -{ - static volatile gsize prepared_file_import_job_type_id__volatile = 0; - if (g_once_init_enter (&prepared_file_import_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PreparedFileImportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) prepared_file_import_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PreparedFileImportJob), 0, (GInstanceInitFunc) prepared_file_import_job_instance_init, NULL }; - GType prepared_file_import_job_type_id; - prepared_file_import_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "PreparedFileImportJob", &g_define_type_info, 0); - g_once_init_leave (&prepared_file_import_job_type_id__volatile, prepared_file_import_job_type_id); - } - return prepared_file_import_job_type_id__volatile; -} - - -CompletedImportObject* -completed_import_object_construct (GType object_type, - MediaSource* source, - Thumbnails* thumbnails, - BatchImportJob* original_job, - BatchImportResult* import_result) -{ - CompletedImportObject* self = NULL; - Thumbnails* _tmp0_; - BatchImportResult* _tmp1_; - MediaSource* _tmp2_; - BatchImportJob* _tmp3_; - GdkPixbuf* _tmp4_; -#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL); -#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_THUMBNAILS (thumbnails), NULL); -#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_JOB (original_job), NULL); -#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_RESULT (import_result), NULL); -#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (CompletedImportObject*) g_type_create_instance (object_type); -#line 2044 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = _thumbnails_ref0 (thumbnails); -#line 2044 "/home/jens/Source/shotwell/src/BatchImport.vala" - _thumbnails_unref0 (self->thumbnails); -#line 2044 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->thumbnails = _tmp0_; -#line 2045 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _batch_import_result_ref0 (import_result); -#line 2045 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (self->batch_result); -#line 2045 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->batch_result = _tmp1_; -#line 2046 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = _g_object_ref0 (source); -#line 2046 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->source); -#line 2046 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->source = _tmp2_; -#line 2047 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = _batch_import_job_ref0 (original_job); -#line 2047 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (self->original_job); -#line 2047 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->original_job = _tmp3_; -#line 2048 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = thumbnails_get (thumbnails, THUMBNAIL_CACHE_SIZE_LARGEST); -#line 2048 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->user_preview); -#line 2048 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->user_preview = _tmp4_; -#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 17071 "BatchImport.c" -} - - -CompletedImportObject* -completed_import_object_new (MediaSource* source, - Thumbnails* thumbnails, - BatchImportJob* original_job, - BatchImportResult* import_result) -{ -#line 2042 "/home/jens/Source/shotwell/src/BatchImport.vala" - return completed_import_object_construct (TYPE_COMPLETED_IMPORT_OBJECT, source, thumbnails, original_job, import_result); -#line 17083 "BatchImport.c" -} - - -static void -value_completed_import_object_init (GValue* value) -{ -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 17092 "BatchImport.c" -} - - -static void -value_completed_import_object_free_value (GValue* value) -{ -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (value->data[0].v_pointer) { -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - completed_import_object_unref (value->data[0].v_pointer); -#line 17103 "BatchImport.c" - } -} - - -static void -value_completed_import_object_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (src_value->data[0].v_pointer) { -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - dest_value->data[0].v_pointer = completed_import_object_ref (src_value->data[0].v_pointer); -#line 17116 "BatchImport.c" - } else { -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - dest_value->data[0].v_pointer = NULL; -#line 17120 "BatchImport.c" - } -} - - -static gpointer -value_completed_import_object_peek_pointer (const GValue* value) -{ -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - return value->data[0].v_pointer; -#line 17130 "BatchImport.c" -} - - -static gchar* -value_completed_import_object_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (collect_values[0].v_pointer) { -#line 17142 "BatchImport.c" - CompletedImportObject * object; - object = collect_values[0].v_pointer; -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (object->parent_instance.g_class == NULL) { -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 17149 "BatchImport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 17153 "BatchImport.c" - } -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = completed_import_object_ref (object); -#line 17157 "BatchImport.c" - } else { -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 17161 "BatchImport.c" - } -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 17165 "BatchImport.c" -} - - -static gchar* -value_completed_import_object_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - CompletedImportObject ** object_p; - object_p = collect_values[0].v_pointer; -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!object_p) { -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 17181 "BatchImport.c" - } -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (!value->data[0].v_pointer) { -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = NULL; -#line 17187 "BatchImport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = value->data[0].v_pointer; -#line 17191 "BatchImport.c" - } else { -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - *object_p = completed_import_object_ref (value->data[0].v_pointer); -#line 17195 "BatchImport.c" - } -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - return NULL; -#line 17199 "BatchImport.c" -} - - -GParamSpec* -param_spec_completed_import_object (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecCompletedImportObject* spec; -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_COMPLETED_IMPORT_OBJECT), NULL); -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - return G_PARAM_SPEC (spec); -#line 17219 "BatchImport.c" -} - - -gpointer -value_get_completed_import_object (const GValue* value) -{ -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_COMPLETED_IMPORT_OBJECT), NULL); -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - return value->data[0].v_pointer; -#line 17230 "BatchImport.c" -} - - -void -value_set_completed_import_object (GValue* value, - gpointer v_object) -{ - CompletedImportObject * old; -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_COMPLETED_IMPORT_OBJECT)); -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - old = value->data[0].v_pointer; -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (v_object) { -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_COMPLETED_IMPORT_OBJECT)); -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = v_object; -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - completed_import_object_ref (value->data[0].v_pointer); -#line 17253 "BatchImport.c" - } else { -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 17257 "BatchImport.c" - } -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (old) { -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - completed_import_object_unref (old); -#line 17263 "BatchImport.c" - } -} - - -void -value_take_completed_import_object (GValue* value, - gpointer v_object) -{ - CompletedImportObject * old; -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_COMPLETED_IMPORT_OBJECT)); -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - old = value->data[0].v_pointer; -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (v_object) { -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_COMPLETED_IMPORT_OBJECT)); -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = v_object; -#line 17285 "BatchImport.c" - } else { -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - value->data[0].v_pointer = NULL; -#line 17289 "BatchImport.c" - } -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (old) { -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - completed_import_object_unref (old); -#line 17295 "BatchImport.c" - } -} - - -static void -completed_import_object_class_init (CompletedImportObjectClass * klass) -{ -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - completed_import_object_parent_class = g_type_class_peek_parent (klass); -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((CompletedImportObjectClass *) klass)->finalize = completed_import_object_finalize; -#line 17307 "BatchImport.c" -} - - -static void -completed_import_object_instance_init (CompletedImportObject * self) -{ -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->ref_count = 1; -#line 17316 "BatchImport.c" -} - - -static void -completed_import_object_finalize (CompletedImportObject * obj) -{ - CompletedImportObject * self; -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COMPLETED_IMPORT_OBJECT, CompletedImportObject); -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_signal_handlers_destroy (self); -#line 2036 "/home/jens/Source/shotwell/src/BatchImport.vala" - _thumbnails_unref0 (self->thumbnails); -#line 2037 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_result_unref0 (self->batch_result); -#line 2038 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->source); -#line 2039 "/home/jens/Source/shotwell/src/BatchImport.vala" - _batch_import_job_unref0 (self->original_job); -#line 2040 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_object_unref0 (self->user_preview); -#line 17338 "BatchImport.c" -} - - -GType -completed_import_object_get_type (void) -{ - static volatile gsize completed_import_object_type_id__volatile = 0; - if (g_once_init_enter (&completed_import_object_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_completed_import_object_init, value_completed_import_object_free_value, value_completed_import_object_copy_value, value_completed_import_object_peek_pointer, "p", value_completed_import_object_collect_value, "p", value_completed_import_object_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (CompletedImportObjectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) completed_import_object_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CompletedImportObject), 0, (GInstanceInitFunc) completed_import_object_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType completed_import_object_type_id; - completed_import_object_type_id = g_type_register_fundamental (g_type_fundamental_next (), "CompletedImportObject", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&completed_import_object_type_id__volatile, completed_import_object_type_id); - } - return completed_import_object_type_id__volatile; -} - - -gpointer -completed_import_object_ref (gpointer instance) -{ - CompletedImportObject * self; - self = instance; -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_atomic_int_inc (&self->ref_count); -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - return instance; -#line 17367 "BatchImport.c" -} - - -void -completed_import_object_unref (gpointer instance) -{ - CompletedImportObject * self; - self = instance; -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - COMPLETED_IMPORT_OBJECT_GET_CLASS (self)->finalize (self); -#line 2035 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 17382 "BatchImport.c" - } -} - - -ThumbnailWriterJob* -thumbnail_writer_job_construct (GType object_type, - BatchImport* owner, - CompletedImportObject* completed_import_source, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancel_callback, - void* cancel_callback_target) -{ - ThumbnailWriterJob* self = NULL; - Thumbnails* _tmp0_; - CompletedImportObject* _tmp1_; -#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_BATCH_IMPORT (owner), NULL); -#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (IS_COMPLETED_IMPORT_OBJECT (completed_import_source), NULL); -#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL); -#line 2057 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = (ThumbnailWriterJob*) background_import_job_construct (object_type, owner, callback, callback_target, cancellable, cancel_callback, cancel_callback_target); -#line 2059 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = completed_import_source->thumbnails; -#line 2059 "/home/jens/Source/shotwell/src/BatchImport.vala" - _vala_assert (_tmp0_ != NULL, "completed_import_source.thumbnails != null"); -#line 2060 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _completed_import_object_ref0 (completed_import_source); -#line 2060 "/home/jens/Source/shotwell/src/BatchImport.vala" - _completed_import_object_unref0 (self->completed_import_source); -#line 2060 "/home/jens/Source/shotwell/src/BatchImport.vala" - self->completed_import_source = _tmp1_; -#line 2062 "/home/jens/Source/shotwell/src/BatchImport.vala" - background_job_set_completion_priority (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), G_PRIORITY_LOW); -#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala" - return self; -#line 17422 "BatchImport.c" -} - - -ThumbnailWriterJob* -thumbnail_writer_job_new (BatchImport* owner, - CompletedImportObject* completed_import_source, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancel_callback, - void* cancel_callback_target) -{ -#line 2055 "/home/jens/Source/shotwell/src/BatchImport.vala" - return thumbnail_writer_job_construct (TYPE_THUMBNAIL_WRITER_JOB, owner, completed_import_source, callback, callback_target, cancellable, cancel_callback, cancel_callback_target); -#line 17437 "BatchImport.c" -} - - -static void -thumbnail_writer_job_real_execute (BackgroundJob* base) -{ - ThumbnailWriterJob * self; - CompletedImportObject* _tmp9_; - GError * _inner_error_ = NULL; -#line 2065 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJob); -#line 17449 "BatchImport.c" - { - CompletedImportObject* _tmp0_; - MediaSource* _tmp1_; - CompletedImportObject* _tmp2_; - Thumbnails* _tmp3_; - CompletedImportObject* _tmp4_; - BatchImportResult* _tmp5_; -#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp0_ = self->completed_import_source; -#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp1_ = _tmp0_->source; -#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp2_ = self->completed_import_source; -#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp3_ = _tmp2_->thumbnails; -#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala" - thumbnail_cache_import_thumbnails (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), _tmp3_, TRUE, &_inner_error_); -#line 2067 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17469 "BatchImport.c" - goto __catch436_g_error; - } -#line 2069 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp4_ = self->completed_import_source; -#line 2069 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_ = _tmp4_->batch_result; -#line 2069 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp5_->result = IMPORT_RESULT_SUCCESS; -#line 17478 "BatchImport.c" - } - goto __finally436; - __catch436_g_error: - { - GError* err = NULL; - CompletedImportObject* _tmp6_; - BatchImportResult* _tmp7_; - GError* _tmp8_; -#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala" - err = _inner_error_; -#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala" - _inner_error_ = NULL; -#line 2071 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp6_ = self->completed_import_source; -#line 2071 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_ = _tmp6_->batch_result; -#line 2071 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp8_ = err; -#line 2071 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp7_->result = import_result_convert_error (_tmp8_, IMPORT_RESULT_FILE_ERROR); -#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala" - _g_error_free0 (err); -#line 17501 "BatchImport.c" - } - __finally436: -#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala" - g_clear_error (&_inner_error_); -#line 2066 "/home/jens/Source/shotwell/src/BatchImport.vala" - return; -#line 17512 "BatchImport.c" - } -#line 2076 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_ = self->completed_import_source; -#line 2076 "/home/jens/Source/shotwell/src/BatchImport.vala" - _thumbnails_unref0 (_tmp9_->thumbnails); -#line 2076 "/home/jens/Source/shotwell/src/BatchImport.vala" - _tmp9_->thumbnails = NULL; -#line 17520 "BatchImport.c" -} - - -static void -thumbnail_writer_job_class_init (ThumbnailWriterJobClass * klass) -{ -#line 2052 "/home/jens/Source/shotwell/src/BatchImport.vala" - thumbnail_writer_job_parent_class = g_type_class_peek_parent (klass); -#line 2052 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BackgroundJobClass *) klass)->finalize = thumbnail_writer_job_finalize; -#line 2052 "/home/jens/Source/shotwell/src/BatchImport.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) thumbnail_writer_job_real_execute; -#line 17533 "BatchImport.c" -} - - -static void -thumbnail_writer_job_instance_init (ThumbnailWriterJob * self) -{ -} - - -static void -thumbnail_writer_job_finalize (BackgroundJob * obj) -{ - ThumbnailWriterJob * self; -#line 2052 "/home/jens/Source/shotwell/src/BatchImport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_THUMBNAIL_WRITER_JOB, ThumbnailWriterJob); -#line 2053 "/home/jens/Source/shotwell/src/BatchImport.vala" - _completed_import_object_unref0 (self->completed_import_source); -#line 2052 "/home/jens/Source/shotwell/src/BatchImport.vala" - BACKGROUND_JOB_CLASS (thumbnail_writer_job_parent_class)->finalize (obj); -#line 17553 "BatchImport.c" -} - - -GType -thumbnail_writer_job_get_type (void) -{ - static volatile gsize thumbnail_writer_job_type_id__volatile = 0; - if (g_once_init_enter (&thumbnail_writer_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ThumbnailWriterJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) thumbnail_writer_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ThumbnailWriterJob), 0, (GInstanceInitFunc) thumbnail_writer_job_instance_init, NULL }; - GType thumbnail_writer_job_type_id; - thumbnail_writer_job_type_id = g_type_register_static (TYPE_BACKGROUND_IMPORT_JOB, "ThumbnailWriterJob", &g_define_type_info, 0); - g_once_init_leave (&thumbnail_writer_job_type_id__volatile, thumbnail_writer_job_type_id); - } - return thumbnail_writer_job_type_id__volatile; -} - - - diff --git a/src/Box.c b/src/Box.c deleted file mode 100644 index e88688d..0000000 --- a/src/Box.c +++ /dev/null @@ -1,2821 +0,0 @@ -/* Box.c generated by valac 0.40.4, the Vala compiler - * generated from Box.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_BOX_LOCATION (box_location_get_type ()) - -#define TYPE_BOX_COMPLEMENTS (box_complements_get_type ()) - -#define TYPE_BOX (box_get_type ()) -typedef struct _Box Box; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef enum { - BOX_LOCATION_OUTSIDE, - BOX_LOCATION_INSIDE, - BOX_LOCATION_TOP_SIDE, - BOX_LOCATION_LEFT_SIDE, - BOX_LOCATION_RIGHT_SIDE, - BOX_LOCATION_BOTTOM_SIDE, - BOX_LOCATION_TOP_LEFT, - BOX_LOCATION_BOTTOM_LEFT, - BOX_LOCATION_TOP_RIGHT, - BOX_LOCATION_BOTTOM_RIGHT -} BoxLocation; - -typedef enum { - BOX_COMPLEMENTS_NONE, - BOX_COMPLEMENTS_VERTICAL, - BOX_COMPLEMENTS_HORIZONTAL, - BOX_COMPLEMENTS_BOTH -} BoxComplements; - -struct _Box { - gint left; - gint top; - gint right; - gint bottom; -}; - -struct _Dimensions { - gint width; - gint height; -}; - - - -GType box_location_get_type (void) G_GNUC_CONST; -GType box_complements_get_type (void) G_GNUC_CONST; -BoxComplements box_complements_derive (gboolean horizontal_complement, - gboolean vertical_complement); -GType box_get_type (void) G_GNUC_CONST; -Box* box_dup (const Box* self); -void box_free (Box* self); -#define BOX_HAND_GRENADES 12 -void box_init (Box *self, - gint left, - gint top, - gint right, - gint bottom); -void box_from_rectangle (GdkRectangle* rect, - Box* result); -void box_from_allocation (GtkAllocation* alloc, - Box* result); -void box_from_points (GdkPoint* corner1, - GdkPoint* corner2, - Box* result); -void box_from_center (GdkPoint* center, - gint width, - gint height, - Box* result); -gint box_get_width (Box *self); -gint box_get_height (Box *self); -gboolean box_is_valid (Box *self); -gboolean box_equals (Box *self, - Box* box); -void box_adjust_width (Box *self, - gint width); -void box_adjust_height (Box *self, - gint height); -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -void box_get_scaled (Box *self, - Dimensions* scaled, - Box* result); -void box_get_dimensions (Box *self, - Dimensions* result); -void dimensions_get_scale_ratios (Dimensions *self, - Dimensions* scaled, - gdouble* width_ratio, - gdouble* height_ratio); -void box_get_scaled_similar (Box *self, - Dimensions* original, - Dimensions* scaled, - Box* result); -void box_get_offset (Box *self, - gint xofs, - gint yofs, - Box* result); -void dimensions_init (Dimensions *self, - gint width, - gint height); -void box_get_points (Box *self, - GdkPoint* top_left, - GdkPoint* bottom_right); -void box_get_rectangle (Box *self, - GdkRectangle* result); -void box_get_center (Box *self, - GdkPoint* result); -void box_rotate_clockwise (Box *self, - Dimensions* space, - Box* result); -void box_rotate_counterclockwise (Box *self, - Dimensions* space, - Box* result); -void box_flip_left_to_right (Box *self, - Dimensions* space, - Box* result); -void box_flip_top_to_bottom (Box *self, - Dimensions* space, - Box* result); -gboolean box_intersects (Box *self, - Box* compare); -void box_get_reduced (Box *self, - gint amount, - Box* result); -void box_get_expanded (Box *self, - gint amount, - Box* result); -gboolean box_contains (Box *self, - GdkPoint* point); -BoxComplements box_resized_complements (Box *self, - Box* resized, - Box* horizontal, - gboolean* horizontal_enlarged, - Box* vertical, - gboolean* vertical_enlarged); -BoxComplements box_shifted_complements (Box *self, - Box* shifted, - Box* horizontal_this, - Box* vertical_this, - Box* horizontal_shifted, - Box* vertical_shifted); -void box_rubber_band (Box *self, - GdkPoint* point, - Box* result); -gchar* box_to_string (Box *self); -gchar* dimensions_to_string (Dimensions *self); -static gboolean box_in_zone (gdouble pos, - gint zone); -static gboolean box_in_between (gdouble pos, - gint top, - gint bottom); -static gboolean box_near_in_between (gdouble pos, - gint top, - gint bottom); -BoxLocation box_approx_location (Box *self, - gint x, - gint y); - - -GType -box_location_get_type (void) -{ - static volatile gsize box_location_type_id__volatile = 0; - if (g_once_init_enter (&box_location_type_id__volatile)) { - static const GEnumValue values[] = {{BOX_LOCATION_OUTSIDE, "BOX_LOCATION_OUTSIDE", "outside"}, {BOX_LOCATION_INSIDE, "BOX_LOCATION_INSIDE", "inside"}, {BOX_LOCATION_TOP_SIDE, "BOX_LOCATION_TOP_SIDE", "top-side"}, {BOX_LOCATION_LEFT_SIDE, "BOX_LOCATION_LEFT_SIDE", "left-side"}, {BOX_LOCATION_RIGHT_SIDE, "BOX_LOCATION_RIGHT_SIDE", "right-side"}, {BOX_LOCATION_BOTTOM_SIDE, "BOX_LOCATION_BOTTOM_SIDE", "bottom-side"}, {BOX_LOCATION_TOP_LEFT, "BOX_LOCATION_TOP_LEFT", "top-left"}, {BOX_LOCATION_BOTTOM_LEFT, "BOX_LOCATION_BOTTOM_LEFT", "bottom-left"}, {BOX_LOCATION_TOP_RIGHT, "BOX_LOCATION_TOP_RIGHT", "top-right"}, {BOX_LOCATION_BOTTOM_RIGHT, "BOX_LOCATION_BOTTOM_RIGHT", "bottom-right"}, {0, NULL, NULL}}; - GType box_location_type_id; - box_location_type_id = g_enum_register_static ("BoxLocation", values); - g_once_init_leave (&box_location_type_id__volatile, box_location_type_id); - } - return box_location_type_id__volatile; -} - - -BoxComplements -box_complements_derive (gboolean horizontal_complement, - gboolean vertical_complement) -{ - BoxComplements result = 0; - gboolean _tmp0_ = FALSE; -#line 27 "/home/jens/Source/shotwell/src/Box.vala" - if (horizontal_complement) { -#line 27 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = vertical_complement; -#line 211 "Box.c" - } else { -#line 27 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = FALSE; -#line 215 "Box.c" - } -#line 27 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp0_) { -#line 28 "/home/jens/Source/shotwell/src/Box.vala" - result = BOX_COMPLEMENTS_BOTH; -#line 28 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 223 "Box.c" - } else { -#line 29 "/home/jens/Source/shotwell/src/Box.vala" - if (horizontal_complement) { -#line 30 "/home/jens/Source/shotwell/src/Box.vala" - result = BOX_COMPLEMENTS_HORIZONTAL; -#line 30 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 231 "Box.c" - } else { -#line 31 "/home/jens/Source/shotwell/src/Box.vala" - if (vertical_complement) { -#line 32 "/home/jens/Source/shotwell/src/Box.vala" - result = BOX_COMPLEMENTS_VERTICAL; -#line 32 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 239 "Box.c" - } - } - } -#line 34 "/home/jens/Source/shotwell/src/Box.vala" - result = BOX_COMPLEMENTS_NONE; -#line 34 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 247 "Box.c" -} - - -GType -box_complements_get_type (void) -{ - static volatile gsize box_complements_type_id__volatile = 0; - if (g_once_init_enter (&box_complements_type_id__volatile)) { - static const GEnumValue values[] = {{BOX_COMPLEMENTS_NONE, "BOX_COMPLEMENTS_NONE", "none"}, {BOX_COMPLEMENTS_VERTICAL, "BOX_COMPLEMENTS_VERTICAL", "vertical"}, {BOX_COMPLEMENTS_HORIZONTAL, "BOX_COMPLEMENTS_HORIZONTAL", "horizontal"}, {BOX_COMPLEMENTS_BOTH, "BOX_COMPLEMENTS_BOTH", "both"}, {0, NULL, NULL}}; - GType box_complements_type_id; - box_complements_type_id = g_enum_register_static ("BoxComplements", values); - g_once_init_leave (&box_complements_type_id__volatile, box_complements_type_id); - } - return box_complements_type_id__volatile; -} - - -void -box_init (Box *self, - gint left, - gint top, - gint right, - gint bottom) -{ -#line 46 "/home/jens/Source/shotwell/src/Box.vala" - memset (self, 0, sizeof (Box)); -#line 48 "/home/jens/Source/shotwell/src/Box.vala" - left = CLAMP (left, 0, G_MAXINT); -#line 49 "/home/jens/Source/shotwell/src/Box.vala" - top = CLAMP (top, 0, G_MAXINT); -#line 53 "/home/jens/Source/shotwell/src/Box.vala" - if (right <= left) { -#line 54 "/home/jens/Source/shotwell/src/Box.vala" - right = left + 1; -#line 282 "Box.c" - } -#line 56 "/home/jens/Source/shotwell/src/Box.vala" - if (bottom <= top) { -#line 57 "/home/jens/Source/shotwell/src/Box.vala" - bottom = top + 1; -#line 288 "Box.c" - } -#line 59 "/home/jens/Source/shotwell/src/Box.vala" - (*self).left = left; -#line 60 "/home/jens/Source/shotwell/src/Box.vala" - (*self).top = top; -#line 61 "/home/jens/Source/shotwell/src/Box.vala" - (*self).right = right; -#line 62 "/home/jens/Source/shotwell/src/Box.vala" - (*self).bottom = bottom; -#line 298 "Box.c" -} - - -void -box_from_rectangle (GdkRectangle* rect, - Box* result) -{ - GdkRectangle _tmp0_; - gint _tmp1_; - GdkRectangle _tmp2_; - gint _tmp3_; - GdkRectangle _tmp4_; - gint _tmp5_; - GdkRectangle _tmp6_; - gint _tmp7_; - GdkRectangle _tmp8_; - gint _tmp9_; - GdkRectangle _tmp10_; - gint _tmp11_; - Box _tmp12_ = {0}; -#line 65 "/home/jens/Source/shotwell/src/Box.vala" - g_return_if_fail (rect != NULL); -#line 66 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = *rect; -#line 66 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = _tmp0_.x; -#line 66 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = *rect; -#line 66 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = _tmp2_.y; -#line 66 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = *rect; -#line 66 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = _tmp4_.x; -#line 66 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = *rect; -#line 66 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = _tmp6_.width; -#line 66 "/home/jens/Source/shotwell/src/Box.vala" - _tmp8_ = *rect; -#line 66 "/home/jens/Source/shotwell/src/Box.vala" - _tmp9_ = _tmp8_.y; -#line 66 "/home/jens/Source/shotwell/src/Box.vala" - _tmp10_ = *rect; -#line 66 "/home/jens/Source/shotwell/src/Box.vala" - _tmp11_ = _tmp10_.height; -#line 66 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_tmp12_, _tmp1_, _tmp3_, (_tmp5_ + _tmp7_) - 1, (_tmp9_ + _tmp11_) - 1); -#line 66 "/home/jens/Source/shotwell/src/Box.vala" - *result = _tmp12_; -#line 66 "/home/jens/Source/shotwell/src/Box.vala" - return; -#line 351 "Box.c" -} - - -void -box_from_allocation (GtkAllocation* alloc, - Box* result) -{ - GtkAllocation _tmp0_; - gint _tmp1_; - GtkAllocation _tmp2_; - gint _tmp3_; - GtkAllocation _tmp4_; - gint _tmp5_; - GtkAllocation _tmp6_; - gint _tmp7_; - GtkAllocation _tmp8_; - gint _tmp9_; - GtkAllocation _tmp10_; - gint _tmp11_; - Box _tmp12_ = {0}; -#line 69 "/home/jens/Source/shotwell/src/Box.vala" - g_return_if_fail (alloc != NULL); -#line 70 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = *alloc; -#line 70 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = _tmp0_.x; -#line 70 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = *alloc; -#line 70 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = _tmp2_.y; -#line 70 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = *alloc; -#line 70 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = _tmp4_.x; -#line 70 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = *alloc; -#line 70 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = _tmp6_.width; -#line 70 "/home/jens/Source/shotwell/src/Box.vala" - _tmp8_ = *alloc; -#line 70 "/home/jens/Source/shotwell/src/Box.vala" - _tmp9_ = _tmp8_.y; -#line 70 "/home/jens/Source/shotwell/src/Box.vala" - _tmp10_ = *alloc; -#line 70 "/home/jens/Source/shotwell/src/Box.vala" - _tmp11_ = _tmp10_.height; -#line 70 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_tmp12_, _tmp1_, _tmp3_, (_tmp5_ + _tmp7_) - 1, (_tmp9_ + _tmp11_) - 1); -#line 70 "/home/jens/Source/shotwell/src/Box.vala" - *result = _tmp12_; -#line 70 "/home/jens/Source/shotwell/src/Box.vala" - return; -#line 404 "Box.c" -} - - -void -box_from_points (GdkPoint* corner1, - GdkPoint* corner2, - Box* result) -{ - GdkPoint _tmp0_; - gint _tmp1_; - GdkPoint _tmp2_; - gint _tmp3_; - GdkPoint _tmp4_; - gint _tmp5_; - GdkPoint _tmp6_; - gint _tmp7_; - GdkPoint _tmp8_; - gint _tmp9_; - GdkPoint _tmp10_; - gint _tmp11_; - GdkPoint _tmp12_; - gint _tmp13_; - GdkPoint _tmp14_; - gint _tmp15_; - Box _tmp16_ = {0}; -#line 75 "/home/jens/Source/shotwell/src/Box.vala" - g_return_if_fail (corner1 != NULL); -#line 75 "/home/jens/Source/shotwell/src/Box.vala" - g_return_if_fail (corner2 != NULL); -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = *corner1; -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = _tmp0_.x; -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = *corner2; -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = _tmp2_.x; -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = *corner1; -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = _tmp4_.y; -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = *corner2; -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = _tmp6_.y; -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - _tmp8_ = *corner1; -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - _tmp9_ = _tmp8_.x; -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - _tmp10_ = *corner2; -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - _tmp11_ = _tmp10_.x; -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - _tmp12_ = *corner1; -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - _tmp13_ = _tmp12_.y; -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - _tmp14_ = *corner2; -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - _tmp15_ = _tmp14_.y; -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_tmp16_, MIN (_tmp1_, _tmp3_), MIN (_tmp5_, _tmp7_), MAX (_tmp9_, _tmp11_), MAX (_tmp13_, _tmp15_)); -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - *result = _tmp16_; -#line 76 "/home/jens/Source/shotwell/src/Box.vala" - return; -#line 472 "Box.c" -} - - -void -box_from_center (GdkPoint* center, - gint width, - gint height, - Box* result) -{ - GdkPoint _tmp0_; - gint _tmp1_; - GdkPoint _tmp2_; - gint _tmp3_; - GdkPoint _tmp4_; - gint _tmp5_; - GdkPoint _tmp6_; - gint _tmp7_; - Box _tmp8_ = {0}; -#line 80 "/home/jens/Source/shotwell/src/Box.vala" - g_return_if_fail (center != NULL); -#line 81 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = *center; -#line 81 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = _tmp0_.x; -#line 81 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = *center; -#line 81 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = _tmp2_.y; -#line 81 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = *center; -#line 81 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = _tmp4_.x; -#line 81 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = *center; -#line 81 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = _tmp6_.y; -#line 81 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_tmp8_, _tmp1_ - (width / 2), _tmp3_ - (height / 2), _tmp5_ + (width / 2), _tmp7_ + (height / 2)); -#line 81 "/home/jens/Source/shotwell/src/Box.vala" - *result = _tmp8_; -#line 81 "/home/jens/Source/shotwell/src/Box.vala" - return; -#line 515 "Box.c" -} - - -gint -box_get_width (Box *self) -{ - gint result = 0; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; -#line 86 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = (*self).right; -#line 86 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = (*self).left; -#line 86 "/home/jens/Source/shotwell/src/Box.vala" - _vala_assert (_tmp0_ >= _tmp1_, "right >= left"); -#line 88 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = (*self).right; -#line 88 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = (*self).left; -#line 88 "/home/jens/Source/shotwell/src/Box.vala" - result = (_tmp2_ - _tmp3_) + 1; -#line 88 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 541 "Box.c" -} - - -gint -box_get_height (Box *self) -{ - gint result = 0; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; -#line 92 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = (*self).bottom; -#line 92 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = (*self).top; -#line 92 "/home/jens/Source/shotwell/src/Box.vala" - _vala_assert (_tmp0_ >= _tmp1_, "bottom >= top"); -#line 94 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = (*self).bottom; -#line 94 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = (*self).top; -#line 94 "/home/jens/Source/shotwell/src/Box.vala" - result = (_tmp2_ - _tmp3_) + 1; -#line 94 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 567 "Box.c" -} - - -gboolean -box_is_valid (Box *self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - gint _tmp3_; -#line 98 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = (*self).left; -#line 98 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp3_ >= 0) { -#line 583 "Box.c" - gint _tmp4_; -#line 98 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = (*self).top; -#line 98 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = _tmp4_ >= 0; -#line 589 "Box.c" - } else { -#line 98 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = FALSE; -#line 593 "Box.c" - } -#line 98 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp2_) { -#line 597 "Box.c" - gint _tmp5_; - gint _tmp6_; -#line 98 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = (*self).right; -#line 98 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = (*self).left; -#line 98 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = _tmp5_ >= _tmp6_; -#line 606 "Box.c" - } else { -#line 98 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = FALSE; -#line 610 "Box.c" - } -#line 98 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp1_) { -#line 614 "Box.c" - gint _tmp7_; - gint _tmp8_; -#line 98 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = (*self).bottom; -#line 98 "/home/jens/Source/shotwell/src/Box.vala" - _tmp8_ = (*self).top; -#line 98 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = _tmp7_ >= _tmp8_; -#line 623 "Box.c" - } else { -#line 98 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = FALSE; -#line 627 "Box.c" - } -#line 98 "/home/jens/Source/shotwell/src/Box.vala" - result = _tmp0_; -#line 98 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 633 "Box.c" -} - - -gboolean -box_equals (Box *self, - Box* box) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - gint _tmp3_; - Box _tmp4_; - gint _tmp5_; -#line 101 "/home/jens/Source/shotwell/src/Box.vala" - g_return_val_if_fail (box != NULL, FALSE); -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = (*self).left; -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = *box; -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = _tmp4_.left; -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp3_ == _tmp5_) { -#line 658 "Box.c" - gint _tmp6_; - Box _tmp7_; - gint _tmp8_; -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = (*self).top; -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = *box; -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp8_ = _tmp7_.top; -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = _tmp6_ == _tmp8_; -#line 670 "Box.c" - } else { -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = FALSE; -#line 674 "Box.c" - } -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp2_) { -#line 678 "Box.c" - gint _tmp9_; - Box _tmp10_; - gint _tmp11_; -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp9_ = (*self).right; -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp10_ = *box; -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp11_ = _tmp10_.right; -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = _tmp9_ == _tmp11_; -#line 690 "Box.c" - } else { -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = FALSE; -#line 694 "Box.c" - } -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp1_) { -#line 698 "Box.c" - gint _tmp12_; - Box _tmp13_; - gint _tmp14_; -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp12_ = (*self).bottom; -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp13_ = *box; -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp14_ = _tmp13_.bottom; -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = _tmp12_ == _tmp14_; -#line 710 "Box.c" - } else { -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = FALSE; -#line 714 "Box.c" - } -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - result = _tmp0_; -#line 102 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 720 "Box.c" -} - - -void -box_adjust_width (Box *self, - gint width) -{ - gint center_x = 0; - gint _tmp0_; - gint _tmp1_; -#line 107 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = (*self).left; -#line 107 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = (*self).right; -#line 107 "/home/jens/Source/shotwell/src/Box.vala" - center_x = (_tmp0_ + _tmp1_) / 2; -#line 108 "/home/jens/Source/shotwell/src/Box.vala" - (*self).left = center_x - (width / 2); -#line 109 "/home/jens/Source/shotwell/src/Box.vala" - (*self).right = center_x + (width / 2); -#line 741 "Box.c" -} - - -void -box_adjust_height (Box *self, - gint height) -{ - gint center_y = 0; - gint _tmp0_; - gint _tmp1_; -#line 114 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = (*self).top; -#line 114 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = (*self).bottom; -#line 114 "/home/jens/Source/shotwell/src/Box.vala" - center_y = (_tmp0_ + _tmp1_) / 2; -#line 115 "/home/jens/Source/shotwell/src/Box.vala" - (*self).top = center_y - (height / 2); -#line 116 "/home/jens/Source/shotwell/src/Box.vala" - (*self).bottom = center_y + (height / 2); -#line 762 "Box.c" -} - - -void -box_get_scaled (Box *self, - Dimensions* scaled, - Box* result) -{ - gdouble x_scale = 0.0; - gdouble y_scale = 0.0; - Dimensions _tmp0_ = {0}; - Dimensions _tmp1_; - gdouble _tmp2_ = 0.0; - gdouble _tmp3_ = 0.0; - gint l = 0; - gint _tmp4_; - gdouble _tmp5_; - gint t = 0; - gint _tmp6_; - gdouble _tmp7_; - gint r = 0; - gint _tmp8_; - Dimensions _tmp9_; - gint _tmp10_; - gint b = 0; - gint _tmp11_; - Dimensions _tmp12_; - gint _tmp13_; - Box box = {0}; - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; - gint _tmp17_; - gboolean _tmp18_ = FALSE; - Dimensions _tmp19_; - gint _tmp20_; -#line 119 "/home/jens/Source/shotwell/src/Box.vala" - g_return_if_fail (scaled != NULL); -#line 121 "/home/jens/Source/shotwell/src/Box.vala" - box_get_dimensions (&(*self), &_tmp0_); -#line 121 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = *scaled; -#line 121 "/home/jens/Source/shotwell/src/Box.vala" - dimensions_get_scale_ratios (&_tmp0_, &_tmp1_, &_tmp2_, &_tmp3_); -#line 121 "/home/jens/Source/shotwell/src/Box.vala" - x_scale = _tmp2_; -#line 121 "/home/jens/Source/shotwell/src/Box.vala" - y_scale = _tmp3_; -#line 123 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = (*self).left; -#line 123 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = x_scale; -#line 123 "/home/jens/Source/shotwell/src/Box.vala" - l = (gint) round (((gdouble) _tmp4_) * _tmp5_); -#line 124 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = (*self).top; -#line 124 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = y_scale; -#line 124 "/home/jens/Source/shotwell/src/Box.vala" - t = (gint) round (((gdouble) _tmp6_) * _tmp7_); -#line 127 "/home/jens/Source/shotwell/src/Box.vala" - _tmp8_ = l; -#line 127 "/home/jens/Source/shotwell/src/Box.vala" - _tmp9_ = *scaled; -#line 127 "/home/jens/Source/shotwell/src/Box.vala" - _tmp10_ = _tmp9_.width; -#line 127 "/home/jens/Source/shotwell/src/Box.vala" - r = (_tmp8_ + _tmp10_) - 1; -#line 128 "/home/jens/Source/shotwell/src/Box.vala" - _tmp11_ = t; -#line 128 "/home/jens/Source/shotwell/src/Box.vala" - _tmp12_ = *scaled; -#line 128 "/home/jens/Source/shotwell/src/Box.vala" - _tmp13_ = _tmp12_.height; -#line 128 "/home/jens/Source/shotwell/src/Box.vala" - b = (_tmp11_ + _tmp13_) - 1; -#line 130 "/home/jens/Source/shotwell/src/Box.vala" - _tmp14_ = l; -#line 130 "/home/jens/Source/shotwell/src/Box.vala" - _tmp15_ = t; -#line 130 "/home/jens/Source/shotwell/src/Box.vala" - _tmp16_ = r; -#line 130 "/home/jens/Source/shotwell/src/Box.vala" - _tmp17_ = b; -#line 130 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&box, _tmp14_, _tmp15_, _tmp16_, _tmp17_); -#line 131 "/home/jens/Source/shotwell/src/Box.vala" - _tmp19_ = *scaled; -#line 131 "/home/jens/Source/shotwell/src/Box.vala" - _tmp20_ = _tmp19_.width; -#line 131 "/home/jens/Source/shotwell/src/Box.vala" - if (box_get_width (&box) == _tmp20_) { -#line 131 "/home/jens/Source/shotwell/src/Box.vala" - _tmp18_ = TRUE; -#line 857 "Box.c" - } else { - Dimensions _tmp21_; - gint _tmp22_; -#line 131 "/home/jens/Source/shotwell/src/Box.vala" - _tmp21_ = *scaled; -#line 131 "/home/jens/Source/shotwell/src/Box.vala" - _tmp22_ = _tmp21_.height; -#line 131 "/home/jens/Source/shotwell/src/Box.vala" - _tmp18_ = box_get_height (&box) == _tmp22_; -#line 867 "Box.c" - } -#line 131 "/home/jens/Source/shotwell/src/Box.vala" - _vala_assert (_tmp18_, "box.get_width() == scaled.width || box.get_height() == scaled.height"); -#line 133 "/home/jens/Source/shotwell/src/Box.vala" - *result = box; -#line 133 "/home/jens/Source/shotwell/src/Box.vala" - return; -#line 875 "Box.c" -} - - -void -box_get_scaled_similar (Box *self, - Dimensions* original, - Dimensions* scaled, - Box* result) -{ - gdouble x_scale = 0.0; - gdouble y_scale = 0.0; - Dimensions _tmp0_; - gdouble _tmp1_ = 0.0; - gdouble _tmp2_ = 0.0; - gint l = 0; - gint _tmp3_; - gdouble _tmp4_; - gint t = 0; - gint _tmp5_; - gdouble _tmp6_; - gint r = 0; - gint _tmp7_; - gdouble _tmp8_; - gint b = 0; - gint _tmp9_; - gdouble _tmp10_; - gint _tmp11_; - Dimensions _tmp12_; - gint _tmp13_; - gint _tmp16_; - Dimensions _tmp17_; - gint _tmp18_; - gint _tmp21_; - gint _tmp22_; - gint _tmp23_; - gint _tmp24_; - Box _tmp25_ = {0}; -#line 136 "/home/jens/Source/shotwell/src/Box.vala" - g_return_if_fail (original != NULL); -#line 136 "/home/jens/Source/shotwell/src/Box.vala" - g_return_if_fail (scaled != NULL); -#line 138 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = *scaled; -#line 138 "/home/jens/Source/shotwell/src/Box.vala" - dimensions_get_scale_ratios (original, &_tmp0_, &_tmp1_, &_tmp2_); -#line 138 "/home/jens/Source/shotwell/src/Box.vala" - x_scale = _tmp1_; -#line 138 "/home/jens/Source/shotwell/src/Box.vala" - y_scale = _tmp2_; -#line 140 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = (*self).left; -#line 140 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = x_scale; -#line 140 "/home/jens/Source/shotwell/src/Box.vala" - l = (gint) round (((gdouble) _tmp3_) * _tmp4_); -#line 141 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = (*self).top; -#line 141 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = y_scale; -#line 141 "/home/jens/Source/shotwell/src/Box.vala" - t = (gint) round (((gdouble) _tmp5_) * _tmp6_); -#line 142 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = (*self).right; -#line 142 "/home/jens/Source/shotwell/src/Box.vala" - _tmp8_ = x_scale; -#line 142 "/home/jens/Source/shotwell/src/Box.vala" - r = (gint) round (((gdouble) _tmp7_) * _tmp8_); -#line 143 "/home/jens/Source/shotwell/src/Box.vala" - _tmp9_ = (*self).bottom; -#line 143 "/home/jens/Source/shotwell/src/Box.vala" - _tmp10_ = y_scale; -#line 143 "/home/jens/Source/shotwell/src/Box.vala" - b = (gint) round (((gdouble) _tmp9_) * _tmp10_); -#line 146 "/home/jens/Source/shotwell/src/Box.vala" - _tmp11_ = r; -#line 146 "/home/jens/Source/shotwell/src/Box.vala" - _tmp12_ = *scaled; -#line 146 "/home/jens/Source/shotwell/src/Box.vala" - _tmp13_ = _tmp12_.width; -#line 146 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp11_ >= _tmp13_) { -#line 957 "Box.c" - Dimensions _tmp14_; - gint _tmp15_; -#line 147 "/home/jens/Source/shotwell/src/Box.vala" - _tmp14_ = *scaled; -#line 147 "/home/jens/Source/shotwell/src/Box.vala" - _tmp15_ = _tmp14_.width; -#line 147 "/home/jens/Source/shotwell/src/Box.vala" - r = _tmp15_ - 1; -#line 966 "Box.c" - } -#line 149 "/home/jens/Source/shotwell/src/Box.vala" - _tmp16_ = b; -#line 149 "/home/jens/Source/shotwell/src/Box.vala" - _tmp17_ = *scaled; -#line 149 "/home/jens/Source/shotwell/src/Box.vala" - _tmp18_ = _tmp17_.height; -#line 149 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp16_ >= _tmp18_) { -#line 976 "Box.c" - Dimensions _tmp19_; - gint _tmp20_; -#line 150 "/home/jens/Source/shotwell/src/Box.vala" - _tmp19_ = *scaled; -#line 150 "/home/jens/Source/shotwell/src/Box.vala" - _tmp20_ = _tmp19_.height; -#line 150 "/home/jens/Source/shotwell/src/Box.vala" - b = _tmp20_ - 1; -#line 985 "Box.c" - } -#line 152 "/home/jens/Source/shotwell/src/Box.vala" - _tmp21_ = l; -#line 152 "/home/jens/Source/shotwell/src/Box.vala" - _tmp22_ = t; -#line 152 "/home/jens/Source/shotwell/src/Box.vala" - _tmp23_ = r; -#line 152 "/home/jens/Source/shotwell/src/Box.vala" - _tmp24_ = b; -#line 152 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_tmp25_, _tmp21_, _tmp22_, _tmp23_, _tmp24_); -#line 152 "/home/jens/Source/shotwell/src/Box.vala" - *result = _tmp25_; -#line 152 "/home/jens/Source/shotwell/src/Box.vala" - return; -#line 1001 "Box.c" -} - - -void -box_get_offset (Box *self, - gint xofs, - gint yofs, - Box* result) -{ - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - Box _tmp4_ = {0}; -#line 156 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = (*self).left; -#line 156 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = (*self).top; -#line 156 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = (*self).right; -#line 156 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = (*self).bottom; -#line 156 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_tmp4_, _tmp0_ + xofs, _tmp1_ + yofs, _tmp2_ + xofs, _tmp3_ + yofs); -#line 156 "/home/jens/Source/shotwell/src/Box.vala" - *result = _tmp4_; -#line 156 "/home/jens/Source/shotwell/src/Box.vala" - return; -#line 1030 "Box.c" -} - - -void -box_get_dimensions (Box *self, - Dimensions* result) -{ - Dimensions _tmp0_ = {0}; -#line 160 "/home/jens/Source/shotwell/src/Box.vala" - dimensions_init (&_tmp0_, box_get_width (&(*self)), box_get_height (&(*self))); -#line 160 "/home/jens/Source/shotwell/src/Box.vala" - *result = _tmp0_; -#line 160 "/home/jens/Source/shotwell/src/Box.vala" - return; -#line 1045 "Box.c" -} - - -void -box_get_points (Box *self, - GdkPoint* top_left, - GdkPoint* bottom_right) -{ - GdkPoint _vala_top_left = {0}; - GdkPoint _vala_bottom_right = {0}; - gint _tmp0_; - gint _tmp1_; - GdkPoint _tmp2_ = {0}; - gint _tmp3_; - gint _tmp4_; - GdkPoint _tmp5_ = {0}; -#line 164 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = (*self).left; -#line 164 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = (*self).top; -#line 164 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_.x = _tmp0_; -#line 164 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_.y = _tmp1_; -#line 164 "/home/jens/Source/shotwell/src/Box.vala" - _vala_top_left = _tmp2_; -#line 165 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = (*self).right; -#line 165 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = (*self).bottom; -#line 165 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_.x = _tmp3_; -#line 165 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_.y = _tmp4_; -#line 165 "/home/jens/Source/shotwell/src/Box.vala" - _vala_bottom_right = _tmp5_; -#line 163 "/home/jens/Source/shotwell/src/Box.vala" - if (top_left) { -#line 163 "/home/jens/Source/shotwell/src/Box.vala" - *top_left = _vala_top_left; -#line 1086 "Box.c" - } -#line 163 "/home/jens/Source/shotwell/src/Box.vala" - if (bottom_right) { -#line 163 "/home/jens/Source/shotwell/src/Box.vala" - *bottom_right = _vala_bottom_right; -#line 1092 "Box.c" - } -} - - -void -box_get_rectangle (Box *self, - GdkRectangle* result) -{ - GdkRectangle rect = {0}; - gint _tmp0_; - gint _tmp1_; -#line 169 "/home/jens/Source/shotwell/src/Box.vala" - memset (&rect, 0, sizeof (GdkRectangle)); -#line 170 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = (*self).left; -#line 170 "/home/jens/Source/shotwell/src/Box.vala" - rect.x = _tmp0_; -#line 171 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = (*self).top; -#line 171 "/home/jens/Source/shotwell/src/Box.vala" - rect.y = _tmp1_; -#line 172 "/home/jens/Source/shotwell/src/Box.vala" - rect.width = box_get_width (&(*self)); -#line 173 "/home/jens/Source/shotwell/src/Box.vala" - rect.height = box_get_height (&(*self)); -#line 175 "/home/jens/Source/shotwell/src/Box.vala" - *result = rect; -#line 175 "/home/jens/Source/shotwell/src/Box.vala" - return; -#line 1122 "Box.c" -} - - -void -box_get_center (Box *self, - GdkPoint* result) -{ - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - GdkPoint _tmp4_ = {0}; -#line 179 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = (*self).left; -#line 179 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = (*self).right; -#line 179 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = (*self).top; -#line 179 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = (*self).bottom; -#line 179 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_.x = (_tmp0_ + _tmp1_) / 2; -#line 179 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_.y = (_tmp2_ + _tmp3_) / 2; -#line 179 "/home/jens/Source/shotwell/src/Box.vala" - *result = _tmp4_; -#line 179 "/home/jens/Source/shotwell/src/Box.vala" - return; -#line 1151 "Box.c" -} - - -void -box_rotate_clockwise (Box *self, - Dimensions* space, - Box* result) -{ - gint l = 0; - Dimensions _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint t = 0; - gint _tmp3_; - gint r = 0; - Dimensions _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint b = 0; - gint _tmp7_; - Box _tmp8_ = {0}; -#line 182 "/home/jens/Source/shotwell/src/Box.vala" - g_return_if_fail (space != NULL); -#line 183 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = *space; -#line 183 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = _tmp0_.width; -#line 183 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = (*self).bottom; -#line 183 "/home/jens/Source/shotwell/src/Box.vala" - l = (_tmp1_ - _tmp2_) - 1; -#line 184 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = (*self).left; -#line 184 "/home/jens/Source/shotwell/src/Box.vala" - t = _tmp3_; -#line 185 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = *space; -#line 185 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = _tmp4_.width; -#line 185 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = (*self).top; -#line 185 "/home/jens/Source/shotwell/src/Box.vala" - r = (_tmp5_ - _tmp6_) - 1; -#line 186 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = (*self).right; -#line 186 "/home/jens/Source/shotwell/src/Box.vala" - b = _tmp7_; -#line 188 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_tmp8_, l, t, r, b); -#line 188 "/home/jens/Source/shotwell/src/Box.vala" - *result = _tmp8_; -#line 188 "/home/jens/Source/shotwell/src/Box.vala" - return; -#line 1205 "Box.c" -} - - -void -box_rotate_counterclockwise (Box *self, - Dimensions* space, - Box* result) -{ - gint l = 0; - gint _tmp0_; - gint t = 0; - Dimensions _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint r = 0; - gint _tmp4_; - gint b = 0; - Dimensions _tmp5_; - gint _tmp6_; - gint _tmp7_; - Box _tmp8_ = {0}; -#line 191 "/home/jens/Source/shotwell/src/Box.vala" - g_return_if_fail (space != NULL); -#line 192 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = (*self).top; -#line 192 "/home/jens/Source/shotwell/src/Box.vala" - l = _tmp0_; -#line 193 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = *space; -#line 193 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = _tmp1_.height; -#line 193 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = (*self).right; -#line 193 "/home/jens/Source/shotwell/src/Box.vala" - t = (_tmp2_ - _tmp3_) - 1; -#line 194 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = (*self).bottom; -#line 194 "/home/jens/Source/shotwell/src/Box.vala" - r = _tmp4_; -#line 195 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = *space; -#line 195 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = _tmp5_.height; -#line 195 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = (*self).left; -#line 195 "/home/jens/Source/shotwell/src/Box.vala" - b = (_tmp6_ - _tmp7_) - 1; -#line 197 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_tmp8_, l, t, r, b); -#line 197 "/home/jens/Source/shotwell/src/Box.vala" - *result = _tmp8_; -#line 197 "/home/jens/Source/shotwell/src/Box.vala" - return; -#line 1259 "Box.c" -} - - -void -box_flip_left_to_right (Box *self, - Dimensions* space, - Box* result) -{ - gint l = 0; - Dimensions _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint r = 0; - Dimensions _tmp3_; - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - Box _tmp8_ = {0}; -#line 200 "/home/jens/Source/shotwell/src/Box.vala" - g_return_if_fail (space != NULL); -#line 201 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = *space; -#line 201 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = _tmp0_.width; -#line 201 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = (*self).right; -#line 201 "/home/jens/Source/shotwell/src/Box.vala" - l = (_tmp1_ - _tmp2_) - 1; -#line 202 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = *space; -#line 202 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = _tmp3_.width; -#line 202 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = (*self).left; -#line 202 "/home/jens/Source/shotwell/src/Box.vala" - r = (_tmp4_ - _tmp5_) - 1; -#line 204 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = (*self).top; -#line 204 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = (*self).bottom; -#line 204 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_tmp8_, l, _tmp6_, r, _tmp7_); -#line 204 "/home/jens/Source/shotwell/src/Box.vala" - *result = _tmp8_; -#line 204 "/home/jens/Source/shotwell/src/Box.vala" - return; -#line 1307 "Box.c" -} - - -void -box_flip_top_to_bottom (Box *self, - Dimensions* space, - Box* result) -{ - gint t = 0; - Dimensions _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint b = 0; - Dimensions _tmp3_; - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - Box _tmp8_ = {0}; -#line 207 "/home/jens/Source/shotwell/src/Box.vala" - g_return_if_fail (space != NULL); -#line 208 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = *space; -#line 208 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = _tmp0_.height; -#line 208 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = (*self).bottom; -#line 208 "/home/jens/Source/shotwell/src/Box.vala" - t = (_tmp1_ - _tmp2_) - 1; -#line 209 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = *space; -#line 209 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = _tmp3_.height; -#line 209 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = (*self).top; -#line 209 "/home/jens/Source/shotwell/src/Box.vala" - b = (_tmp4_ - _tmp5_) - 1; -#line 211 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = (*self).left; -#line 211 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = (*self).right; -#line 211 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_tmp8_, _tmp6_, t, _tmp7_, b); -#line 211 "/home/jens/Source/shotwell/src/Box.vala" - *result = _tmp8_; -#line 211 "/home/jens/Source/shotwell/src/Box.vala" - return; -#line 1355 "Box.c" -} - - -gboolean -box_intersects (Box *self, - Box* compare) -{ - gboolean result = FALSE; - gint left_intersect = 0; - gint _tmp0_; - Box _tmp1_; - gint _tmp2_; - gint top_intersect = 0; - gint _tmp3_; - Box _tmp4_; - gint _tmp5_; - gint right_intersect = 0; - gint _tmp6_; - Box _tmp7_; - gint _tmp8_; - gint bottom_intersect = 0; - gint _tmp9_; - Box _tmp10_; - gint _tmp11_; - gboolean _tmp12_ = FALSE; - gint _tmp13_; - gint _tmp14_; -#line 214 "/home/jens/Source/shotwell/src/Box.vala" - g_return_val_if_fail (compare != NULL, FALSE); -#line 215 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = (*self).left; -#line 215 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = *compare; -#line 215 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = _tmp1_.left; -#line 215 "/home/jens/Source/shotwell/src/Box.vala" - left_intersect = MAX (_tmp0_, _tmp2_); -#line 216 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = (*self).top; -#line 216 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = *compare; -#line 216 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = _tmp4_.top; -#line 216 "/home/jens/Source/shotwell/src/Box.vala" - top_intersect = MAX (_tmp3_, _tmp5_); -#line 217 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = (*self).right; -#line 217 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = *compare; -#line 217 "/home/jens/Source/shotwell/src/Box.vala" - _tmp8_ = _tmp7_.right; -#line 217 "/home/jens/Source/shotwell/src/Box.vala" - right_intersect = MIN (_tmp6_, _tmp8_); -#line 218 "/home/jens/Source/shotwell/src/Box.vala" - _tmp9_ = (*self).bottom; -#line 218 "/home/jens/Source/shotwell/src/Box.vala" - _tmp10_ = *compare; -#line 218 "/home/jens/Source/shotwell/src/Box.vala" - _tmp11_ = _tmp10_.bottom; -#line 218 "/home/jens/Source/shotwell/src/Box.vala" - bottom_intersect = MIN (_tmp9_, _tmp11_); -#line 220 "/home/jens/Source/shotwell/src/Box.vala" - _tmp13_ = right_intersect; -#line 220 "/home/jens/Source/shotwell/src/Box.vala" - _tmp14_ = left_intersect; -#line 220 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp13_ >= _tmp14_) { -#line 1423 "Box.c" - gint _tmp15_; - gint _tmp16_; -#line 220 "/home/jens/Source/shotwell/src/Box.vala" - _tmp15_ = bottom_intersect; -#line 220 "/home/jens/Source/shotwell/src/Box.vala" - _tmp16_ = top_intersect; -#line 220 "/home/jens/Source/shotwell/src/Box.vala" - _tmp12_ = _tmp15_ >= _tmp16_; -#line 1432 "Box.c" - } else { -#line 220 "/home/jens/Source/shotwell/src/Box.vala" - _tmp12_ = FALSE; -#line 1436 "Box.c" - } -#line 220 "/home/jens/Source/shotwell/src/Box.vala" - result = _tmp12_; -#line 220 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 1442 "Box.c" -} - - -void -box_get_reduced (Box *self, - gint amount, - Box* result) -{ - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - Box _tmp4_ = {0}; -#line 224 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = (*self).left; -#line 224 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = (*self).top; -#line 224 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = (*self).right; -#line 224 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = (*self).bottom; -#line 224 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_tmp4_, _tmp0_ + amount, _tmp1_ + amount, _tmp2_ - amount, _tmp3_ - amount); -#line 224 "/home/jens/Source/shotwell/src/Box.vala" - *result = _tmp4_; -#line 224 "/home/jens/Source/shotwell/src/Box.vala" - return; -#line 1470 "Box.c" -} - - -void -box_get_expanded (Box *self, - gint amount, - Box* result) -{ - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - Box _tmp4_ = {0}; -#line 228 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = (*self).left; -#line 228 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = (*self).top; -#line 228 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = (*self).right; -#line 228 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = (*self).bottom; -#line 228 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_tmp4_, _tmp0_ - amount, _tmp1_ - amount, _tmp2_ + amount, _tmp3_ + amount); -#line 228 "/home/jens/Source/shotwell/src/Box.vala" - *result = _tmp4_; -#line 228 "/home/jens/Source/shotwell/src/Box.vala" - return; -#line 1498 "Box.c" -} - - -gboolean -box_contains (Box *self, - GdkPoint* point) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - GdkPoint _tmp3_; - gint _tmp4_; - gint _tmp5_; -#line 231 "/home/jens/Source/shotwell/src/Box.vala" - g_return_val_if_fail (point != NULL, FALSE); -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = *point; -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = _tmp3_.x; -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = (*self).left; -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp4_ >= _tmp5_) { -#line 1523 "Box.c" - GdkPoint _tmp6_; - gint _tmp7_; - gint _tmp8_; -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = *point; -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = _tmp6_.x; -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp8_ = (*self).right; -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = _tmp7_ <= _tmp8_; -#line 1535 "Box.c" - } else { -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = FALSE; -#line 1539 "Box.c" - } -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp2_) { -#line 1543 "Box.c" - GdkPoint _tmp9_; - gint _tmp10_; - gint _tmp11_; -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp9_ = *point; -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp10_ = _tmp9_.y; -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp11_ = (*self).top; -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = _tmp10_ >= _tmp11_; -#line 1555 "Box.c" - } else { -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = FALSE; -#line 1559 "Box.c" - } -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp1_) { -#line 1563 "Box.c" - GdkPoint _tmp12_; - gint _tmp13_; - gint _tmp14_; -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp12_ = *point; -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp13_ = _tmp12_.y; -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp14_ = (*self).bottom; -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = _tmp13_ <= _tmp14_; -#line 1575 "Box.c" - } else { -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = FALSE; -#line 1579 "Box.c" - } -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - result = _tmp0_; -#line 232 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 1585 "Box.c" -} - - -BoxComplements -box_resized_complements (Box *self, - Box* resized, - Box* horizontal, - gboolean* horizontal_enlarged, - Box* vertical, - gboolean* vertical_enlarged) -{ - Box _vala_horizontal = {0}; - gboolean _vala_horizontal_enlarged = FALSE; - Box _vala_vertical = {0}; - gboolean _vala_vertical_enlarged = FALSE; - BoxComplements result = 0; - gboolean horizontal_complement = FALSE; - Box _tmp0_; - gint _tmp1_; - gint _tmp2_; - gboolean vertical_complement = FALSE; - Box _tmp36_; - gint _tmp37_; - gint _tmp38_; - gboolean _tmp72_; - gboolean _tmp73_; -#line 238 "/home/jens/Source/shotwell/src/Box.vala" - g_return_val_if_fail (resized != NULL, 0); -#line 241 "/home/jens/Source/shotwell/src/Box.vala" - horizontal_complement = TRUE; -#line 242 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = *resized; -#line 242 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = _tmp0_.top; -#line 242 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = (*self).top; -#line 242 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp1_ < _tmp2_) { -#line 1624 "Box.c" - Box _tmp3_; - gint _tmp4_; - Box _tmp5_; - gint _tmp6_; - Box _tmp7_; - gint _tmp8_; - gint _tmp9_; -#line 244 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = *resized; -#line 244 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = _tmp3_.left; -#line 244 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = *resized; -#line 244 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = _tmp5_.top; -#line 244 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = *resized; -#line 244 "/home/jens/Source/shotwell/src/Box.vala" - _tmp8_ = _tmp7_.right; -#line 244 "/home/jens/Source/shotwell/src/Box.vala" - _tmp9_ = (*self).top; -#line 244 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_horizontal, _tmp4_, _tmp6_, _tmp8_, _tmp9_); -#line 245 "/home/jens/Source/shotwell/src/Box.vala" - _vala_horizontal_enlarged = TRUE; -#line 1650 "Box.c" - } else { - Box _tmp10_; - gint _tmp11_; - gint _tmp12_; -#line 246 "/home/jens/Source/shotwell/src/Box.vala" - _tmp10_ = *resized; -#line 246 "/home/jens/Source/shotwell/src/Box.vala" - _tmp11_ = _tmp10_.top; -#line 246 "/home/jens/Source/shotwell/src/Box.vala" - _tmp12_ = (*self).top; -#line 246 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp11_ > _tmp12_) { -#line 1663 "Box.c" - gint _tmp13_; - gint _tmp14_; - gint _tmp15_; - Box _tmp16_; - gint _tmp17_; -#line 248 "/home/jens/Source/shotwell/src/Box.vala" - _tmp13_ = (*self).left; -#line 248 "/home/jens/Source/shotwell/src/Box.vala" - _tmp14_ = (*self).top; -#line 248 "/home/jens/Source/shotwell/src/Box.vala" - _tmp15_ = (*self).right; -#line 248 "/home/jens/Source/shotwell/src/Box.vala" - _tmp16_ = *resized; -#line 248 "/home/jens/Source/shotwell/src/Box.vala" - _tmp17_ = _tmp16_.top; -#line 248 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_horizontal, _tmp13_, _tmp14_, _tmp15_, _tmp17_); -#line 249 "/home/jens/Source/shotwell/src/Box.vala" - _vala_horizontal_enlarged = FALSE; -#line 1683 "Box.c" - } else { - Box _tmp18_; - gint _tmp19_; - gint _tmp20_; -#line 250 "/home/jens/Source/shotwell/src/Box.vala" - _tmp18_ = *resized; -#line 250 "/home/jens/Source/shotwell/src/Box.vala" - _tmp19_ = _tmp18_.bottom; -#line 250 "/home/jens/Source/shotwell/src/Box.vala" - _tmp20_ = (*self).bottom; -#line 250 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp19_ < _tmp20_) { -#line 1696 "Box.c" - gint _tmp21_; - Box _tmp22_; - gint _tmp23_; - gint _tmp24_; - gint _tmp25_; -#line 252 "/home/jens/Source/shotwell/src/Box.vala" - _tmp21_ = (*self).left; -#line 252 "/home/jens/Source/shotwell/src/Box.vala" - _tmp22_ = *resized; -#line 252 "/home/jens/Source/shotwell/src/Box.vala" - _tmp23_ = _tmp22_.bottom; -#line 252 "/home/jens/Source/shotwell/src/Box.vala" - _tmp24_ = (*self).right; -#line 252 "/home/jens/Source/shotwell/src/Box.vala" - _tmp25_ = (*self).bottom; -#line 252 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_horizontal, _tmp21_, _tmp23_, _tmp24_, _tmp25_); -#line 253 "/home/jens/Source/shotwell/src/Box.vala" - _vala_horizontal_enlarged = FALSE; -#line 1716 "Box.c" - } else { - Box _tmp26_; - gint _tmp27_; - gint _tmp28_; -#line 254 "/home/jens/Source/shotwell/src/Box.vala" - _tmp26_ = *resized; -#line 254 "/home/jens/Source/shotwell/src/Box.vala" - _tmp27_ = _tmp26_.bottom; -#line 254 "/home/jens/Source/shotwell/src/Box.vala" - _tmp28_ = (*self).bottom; -#line 254 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp27_ > _tmp28_) { -#line 1729 "Box.c" - Box _tmp29_; - gint _tmp30_; - gint _tmp31_; - Box _tmp32_; - gint _tmp33_; - Box _tmp34_; - gint _tmp35_; -#line 256 "/home/jens/Source/shotwell/src/Box.vala" - _tmp29_ = *resized; -#line 256 "/home/jens/Source/shotwell/src/Box.vala" - _tmp30_ = _tmp29_.left; -#line 256 "/home/jens/Source/shotwell/src/Box.vala" - _tmp31_ = (*self).bottom; -#line 256 "/home/jens/Source/shotwell/src/Box.vala" - _tmp32_ = *resized; -#line 256 "/home/jens/Source/shotwell/src/Box.vala" - _tmp33_ = _tmp32_.right; -#line 256 "/home/jens/Source/shotwell/src/Box.vala" - _tmp34_ = *resized; -#line 256 "/home/jens/Source/shotwell/src/Box.vala" - _tmp35_ = _tmp34_.bottom; -#line 256 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_horizontal, _tmp30_, _tmp31_, _tmp33_, _tmp35_); -#line 257 "/home/jens/Source/shotwell/src/Box.vala" - _vala_horizontal_enlarged = TRUE; -#line 1755 "Box.c" - } else { -#line 259 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_horizontal, 0, 0, 0, 0); -#line 260 "/home/jens/Source/shotwell/src/Box.vala" - _vala_horizontal_enlarged = FALSE; -#line 261 "/home/jens/Source/shotwell/src/Box.vala" - horizontal_complement = FALSE; -#line 1763 "Box.c" - } - } - } - } -#line 264 "/home/jens/Source/shotwell/src/Box.vala" - vertical_complement = TRUE; -#line 265 "/home/jens/Source/shotwell/src/Box.vala" - _tmp36_ = *resized; -#line 265 "/home/jens/Source/shotwell/src/Box.vala" - _tmp37_ = _tmp36_.left; -#line 265 "/home/jens/Source/shotwell/src/Box.vala" - _tmp38_ = (*self).left; -#line 265 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp37_ < _tmp38_) { -#line 1778 "Box.c" - Box _tmp39_; - gint _tmp40_; - Box _tmp41_; - gint _tmp42_; - gint _tmp43_; - Box _tmp44_; - gint _tmp45_; -#line 267 "/home/jens/Source/shotwell/src/Box.vala" - _tmp39_ = *resized; -#line 267 "/home/jens/Source/shotwell/src/Box.vala" - _tmp40_ = _tmp39_.left; -#line 267 "/home/jens/Source/shotwell/src/Box.vala" - _tmp41_ = *resized; -#line 267 "/home/jens/Source/shotwell/src/Box.vala" - _tmp42_ = _tmp41_.top; -#line 267 "/home/jens/Source/shotwell/src/Box.vala" - _tmp43_ = (*self).left; -#line 267 "/home/jens/Source/shotwell/src/Box.vala" - _tmp44_ = *resized; -#line 267 "/home/jens/Source/shotwell/src/Box.vala" - _tmp45_ = _tmp44_.bottom; -#line 267 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_vertical, _tmp40_, _tmp42_, _tmp43_, _tmp45_); -#line 268 "/home/jens/Source/shotwell/src/Box.vala" - _vala_vertical_enlarged = TRUE; -#line 1804 "Box.c" - } else { - Box _tmp46_; - gint _tmp47_; - gint _tmp48_; -#line 269 "/home/jens/Source/shotwell/src/Box.vala" - _tmp46_ = *resized; -#line 269 "/home/jens/Source/shotwell/src/Box.vala" - _tmp47_ = _tmp46_.left; -#line 269 "/home/jens/Source/shotwell/src/Box.vala" - _tmp48_ = (*self).left; -#line 269 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp47_ > _tmp48_) { -#line 1817 "Box.c" - gint _tmp49_; - gint _tmp50_; - Box _tmp51_; - gint _tmp52_; - gint _tmp53_; -#line 271 "/home/jens/Source/shotwell/src/Box.vala" - _tmp49_ = (*self).left; -#line 271 "/home/jens/Source/shotwell/src/Box.vala" - _tmp50_ = (*self).top; -#line 271 "/home/jens/Source/shotwell/src/Box.vala" - _tmp51_ = *resized; -#line 271 "/home/jens/Source/shotwell/src/Box.vala" - _tmp52_ = _tmp51_.left; -#line 271 "/home/jens/Source/shotwell/src/Box.vala" - _tmp53_ = (*self).bottom; -#line 271 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_vertical, _tmp49_, _tmp50_, _tmp52_, _tmp53_); -#line 272 "/home/jens/Source/shotwell/src/Box.vala" - _vala_vertical_enlarged = FALSE; -#line 1837 "Box.c" - } else { - Box _tmp54_; - gint _tmp55_; - gint _tmp56_; -#line 273 "/home/jens/Source/shotwell/src/Box.vala" - _tmp54_ = *resized; -#line 273 "/home/jens/Source/shotwell/src/Box.vala" - _tmp55_ = _tmp54_.right; -#line 273 "/home/jens/Source/shotwell/src/Box.vala" - _tmp56_ = (*self).right; -#line 273 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp55_ < _tmp56_) { -#line 1850 "Box.c" - Box _tmp57_; - gint _tmp58_; - gint _tmp59_; - gint _tmp60_; - gint _tmp61_; -#line 275 "/home/jens/Source/shotwell/src/Box.vala" - _tmp57_ = *resized; -#line 275 "/home/jens/Source/shotwell/src/Box.vala" - _tmp58_ = _tmp57_.right; -#line 275 "/home/jens/Source/shotwell/src/Box.vala" - _tmp59_ = (*self).top; -#line 275 "/home/jens/Source/shotwell/src/Box.vala" - _tmp60_ = (*self).right; -#line 275 "/home/jens/Source/shotwell/src/Box.vala" - _tmp61_ = (*self).bottom; -#line 275 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_vertical, _tmp58_, _tmp59_, _tmp60_, _tmp61_); -#line 276 "/home/jens/Source/shotwell/src/Box.vala" - _vala_vertical_enlarged = FALSE; -#line 1870 "Box.c" - } else { - Box _tmp62_; - gint _tmp63_; - gint _tmp64_; -#line 277 "/home/jens/Source/shotwell/src/Box.vala" - _tmp62_ = *resized; -#line 277 "/home/jens/Source/shotwell/src/Box.vala" - _tmp63_ = _tmp62_.right; -#line 277 "/home/jens/Source/shotwell/src/Box.vala" - _tmp64_ = (*self).right; -#line 277 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp63_ > _tmp64_) { -#line 1883 "Box.c" - gint _tmp65_; - Box _tmp66_; - gint _tmp67_; - Box _tmp68_; - gint _tmp69_; - Box _tmp70_; - gint _tmp71_; -#line 279 "/home/jens/Source/shotwell/src/Box.vala" - _tmp65_ = (*self).right; -#line 279 "/home/jens/Source/shotwell/src/Box.vala" - _tmp66_ = *resized; -#line 279 "/home/jens/Source/shotwell/src/Box.vala" - _tmp67_ = _tmp66_.top; -#line 279 "/home/jens/Source/shotwell/src/Box.vala" - _tmp68_ = *resized; -#line 279 "/home/jens/Source/shotwell/src/Box.vala" - _tmp69_ = _tmp68_.right; -#line 279 "/home/jens/Source/shotwell/src/Box.vala" - _tmp70_ = *resized; -#line 279 "/home/jens/Source/shotwell/src/Box.vala" - _tmp71_ = _tmp70_.bottom; -#line 279 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_vertical, _tmp65_, _tmp67_, _tmp69_, _tmp71_); -#line 280 "/home/jens/Source/shotwell/src/Box.vala" - _vala_vertical_enlarged = TRUE; -#line 1909 "Box.c" - } else { -#line 282 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_vertical, 0, 0, 0, 0); -#line 283 "/home/jens/Source/shotwell/src/Box.vala" - _vala_vertical_enlarged = FALSE; -#line 284 "/home/jens/Source/shotwell/src/Box.vala" - vertical_complement = FALSE; -#line 1917 "Box.c" - } - } - } - } -#line 287 "/home/jens/Source/shotwell/src/Box.vala" - _tmp72_ = horizontal_complement; -#line 287 "/home/jens/Source/shotwell/src/Box.vala" - _tmp73_ = vertical_complement; -#line 287 "/home/jens/Source/shotwell/src/Box.vala" - result = box_complements_derive (_tmp72_, _tmp73_); -#line 287 "/home/jens/Source/shotwell/src/Box.vala" - if (horizontal) { -#line 287 "/home/jens/Source/shotwell/src/Box.vala" - *horizontal = _vala_horizontal; -#line 1932 "Box.c" - } -#line 287 "/home/jens/Source/shotwell/src/Box.vala" - if (horizontal_enlarged) { -#line 287 "/home/jens/Source/shotwell/src/Box.vala" - *horizontal_enlarged = _vala_horizontal_enlarged; -#line 1938 "Box.c" - } -#line 287 "/home/jens/Source/shotwell/src/Box.vala" - if (vertical) { -#line 287 "/home/jens/Source/shotwell/src/Box.vala" - *vertical = _vala_vertical; -#line 1944 "Box.c" - } -#line 287 "/home/jens/Source/shotwell/src/Box.vala" - if (vertical_enlarged) { -#line 287 "/home/jens/Source/shotwell/src/Box.vala" - *vertical_enlarged = _vala_vertical_enlarged; -#line 1950 "Box.c" - } -#line 287 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 1954 "Box.c" -} - - -BoxComplements -box_shifted_complements (Box *self, - Box* shifted, - Box* horizontal_this, - Box* vertical_this, - Box* horizontal_shifted, - Box* vertical_shifted) -{ - Box _vala_horizontal_this = {0}; - Box _vala_vertical_this = {0}; - Box _vala_horizontal_shifted = {0}; - Box _vala_vertical_shifted = {0}; - BoxComplements result = 0; - gboolean horizontal_complement = FALSE; - gboolean _tmp0_ = FALSE; - Box _tmp1_; - gint _tmp2_; - gint _tmp3_; - gboolean vertical_complement = FALSE; - gboolean _tmp38_ = FALSE; - Box _tmp39_; - gint _tmp40_; - gint _tmp41_; - gboolean _tmp76_; - gboolean _tmp77_; -#line 293 "/home/jens/Source/shotwell/src/Box.vala" - g_return_val_if_fail (shifted != NULL, 0); -#line 295 "/home/jens/Source/shotwell/src/Box.vala" - _vala_assert (box_get_width (&(*self)) == box_get_width (shifted), "get_width() == shifted.get_width()"); -#line 296 "/home/jens/Source/shotwell/src/Box.vala" - _vala_assert (box_get_height (&(*self)) == box_get_height (shifted), "get_height() == shifted.get_height()"); -#line 298 "/home/jens/Source/shotwell/src/Box.vala" - horizontal_complement = TRUE; -#line 299 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = *shifted; -#line 299 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = _tmp1_.top; -#line 299 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = (*self).top; -#line 299 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp2_ < _tmp3_) { -#line 1999 "Box.c" - Box _tmp4_; - gint _tmp5_; - gint _tmp6_; -#line 299 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = *shifted; -#line 299 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = _tmp4_.bottom; -#line 299 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = (*self).top; -#line 299 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = _tmp5_ > _tmp6_; -#line 2011 "Box.c" - } else { -#line 299 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = FALSE; -#line 2015 "Box.c" - } -#line 299 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp0_) { -#line 2019 "Box.c" - gint _tmp7_; - Box _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; - Box _tmp12_; - gint _tmp13_; - Box _tmp14_; - gint _tmp15_; - Box _tmp16_; - gint _tmp17_; - gint _tmp18_; -#line 301 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = (*self).left; -#line 301 "/home/jens/Source/shotwell/src/Box.vala" - _tmp8_ = *shifted; -#line 301 "/home/jens/Source/shotwell/src/Box.vala" - _tmp9_ = _tmp8_.bottom; -#line 301 "/home/jens/Source/shotwell/src/Box.vala" - _tmp10_ = (*self).right; -#line 301 "/home/jens/Source/shotwell/src/Box.vala" - _tmp11_ = (*self).bottom; -#line 301 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_horizontal_this, _tmp7_, _tmp9_, _tmp10_, _tmp11_); -#line 302 "/home/jens/Source/shotwell/src/Box.vala" - _tmp12_ = *shifted; -#line 302 "/home/jens/Source/shotwell/src/Box.vala" - _tmp13_ = _tmp12_.left; -#line 302 "/home/jens/Source/shotwell/src/Box.vala" - _tmp14_ = *shifted; -#line 302 "/home/jens/Source/shotwell/src/Box.vala" - _tmp15_ = _tmp14_.top; -#line 302 "/home/jens/Source/shotwell/src/Box.vala" - _tmp16_ = *shifted; -#line 302 "/home/jens/Source/shotwell/src/Box.vala" - _tmp17_ = _tmp16_.right; -#line 302 "/home/jens/Source/shotwell/src/Box.vala" - _tmp18_ = (*self).top; -#line 302 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_horizontal_shifted, _tmp13_, _tmp15_, _tmp17_, _tmp18_); -#line 2060 "Box.c" - } else { - gboolean _tmp19_ = FALSE; - Box _tmp20_; - gint _tmp21_; - gint _tmp22_; -#line 303 "/home/jens/Source/shotwell/src/Box.vala" - _tmp20_ = *shifted; -#line 303 "/home/jens/Source/shotwell/src/Box.vala" - _tmp21_ = _tmp20_.top; -#line 303 "/home/jens/Source/shotwell/src/Box.vala" - _tmp22_ = (*self).top; -#line 303 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp21_ > _tmp22_) { -#line 2074 "Box.c" - Box _tmp23_; - gint _tmp24_; - gint _tmp25_; -#line 303 "/home/jens/Source/shotwell/src/Box.vala" - _tmp23_ = *shifted; -#line 303 "/home/jens/Source/shotwell/src/Box.vala" - _tmp24_ = _tmp23_.top; -#line 303 "/home/jens/Source/shotwell/src/Box.vala" - _tmp25_ = (*self).bottom; -#line 303 "/home/jens/Source/shotwell/src/Box.vala" - _tmp19_ = _tmp24_ < _tmp25_; -#line 2086 "Box.c" - } else { -#line 303 "/home/jens/Source/shotwell/src/Box.vala" - _tmp19_ = FALSE; -#line 2090 "Box.c" - } -#line 303 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp19_) { -#line 2094 "Box.c" - gint _tmp26_; - gint _tmp27_; - gint _tmp28_; - Box _tmp29_; - gint _tmp30_; - Box _tmp31_; - gint _tmp32_; - gint _tmp33_; - Box _tmp34_; - gint _tmp35_; - Box _tmp36_; - gint _tmp37_; -#line 305 "/home/jens/Source/shotwell/src/Box.vala" - _tmp26_ = (*self).left; -#line 305 "/home/jens/Source/shotwell/src/Box.vala" - _tmp27_ = (*self).top; -#line 305 "/home/jens/Source/shotwell/src/Box.vala" - _tmp28_ = (*self).right; -#line 305 "/home/jens/Source/shotwell/src/Box.vala" - _tmp29_ = *shifted; -#line 305 "/home/jens/Source/shotwell/src/Box.vala" - _tmp30_ = _tmp29_.top; -#line 305 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_horizontal_this, _tmp26_, _tmp27_, _tmp28_, _tmp30_); -#line 306 "/home/jens/Source/shotwell/src/Box.vala" - _tmp31_ = *shifted; -#line 306 "/home/jens/Source/shotwell/src/Box.vala" - _tmp32_ = _tmp31_.left; -#line 306 "/home/jens/Source/shotwell/src/Box.vala" - _tmp33_ = (*self).bottom; -#line 306 "/home/jens/Source/shotwell/src/Box.vala" - _tmp34_ = *shifted; -#line 306 "/home/jens/Source/shotwell/src/Box.vala" - _tmp35_ = _tmp34_.right; -#line 306 "/home/jens/Source/shotwell/src/Box.vala" - _tmp36_ = *shifted; -#line 306 "/home/jens/Source/shotwell/src/Box.vala" - _tmp37_ = _tmp36_.bottom; -#line 306 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_horizontal_shifted, _tmp32_, _tmp33_, _tmp35_, _tmp37_); -#line 2135 "Box.c" - } else { -#line 309 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_horizontal_this, 0, 0, 0, 0); -#line 310 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_horizontal_shifted, 0, 0, 0, 0); -#line 311 "/home/jens/Source/shotwell/src/Box.vala" - horizontal_complement = FALSE; -#line 2143 "Box.c" - } - } -#line 314 "/home/jens/Source/shotwell/src/Box.vala" - vertical_complement = TRUE; -#line 315 "/home/jens/Source/shotwell/src/Box.vala" - _tmp39_ = *shifted; -#line 315 "/home/jens/Source/shotwell/src/Box.vala" - _tmp40_ = _tmp39_.left; -#line 315 "/home/jens/Source/shotwell/src/Box.vala" - _tmp41_ = (*self).left; -#line 315 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp40_ < _tmp41_) { -#line 2156 "Box.c" - Box _tmp42_; - gint _tmp43_; - gint _tmp44_; -#line 315 "/home/jens/Source/shotwell/src/Box.vala" - _tmp42_ = *shifted; -#line 315 "/home/jens/Source/shotwell/src/Box.vala" - _tmp43_ = _tmp42_.right; -#line 315 "/home/jens/Source/shotwell/src/Box.vala" - _tmp44_ = (*self).left; -#line 315 "/home/jens/Source/shotwell/src/Box.vala" - _tmp38_ = _tmp43_ > _tmp44_; -#line 2168 "Box.c" - } else { -#line 315 "/home/jens/Source/shotwell/src/Box.vala" - _tmp38_ = FALSE; -#line 2172 "Box.c" - } -#line 315 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp38_) { -#line 2176 "Box.c" - Box _tmp45_; - gint _tmp46_; - gint _tmp47_; - gint _tmp48_; - gint _tmp49_; - Box _tmp50_; - gint _tmp51_; - Box _tmp52_; - gint _tmp53_; - gint _tmp54_; - Box _tmp55_; - gint _tmp56_; -#line 317 "/home/jens/Source/shotwell/src/Box.vala" - _tmp45_ = *shifted; -#line 317 "/home/jens/Source/shotwell/src/Box.vala" - _tmp46_ = _tmp45_.right; -#line 317 "/home/jens/Source/shotwell/src/Box.vala" - _tmp47_ = (*self).top; -#line 317 "/home/jens/Source/shotwell/src/Box.vala" - _tmp48_ = (*self).right; -#line 317 "/home/jens/Source/shotwell/src/Box.vala" - _tmp49_ = (*self).bottom; -#line 317 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_vertical_this, _tmp46_, _tmp47_, _tmp48_, _tmp49_); -#line 318 "/home/jens/Source/shotwell/src/Box.vala" - _tmp50_ = *shifted; -#line 318 "/home/jens/Source/shotwell/src/Box.vala" - _tmp51_ = _tmp50_.left; -#line 318 "/home/jens/Source/shotwell/src/Box.vala" - _tmp52_ = *shifted; -#line 318 "/home/jens/Source/shotwell/src/Box.vala" - _tmp53_ = _tmp52_.top; -#line 318 "/home/jens/Source/shotwell/src/Box.vala" - _tmp54_ = (*self).left; -#line 318 "/home/jens/Source/shotwell/src/Box.vala" - _tmp55_ = *shifted; -#line 318 "/home/jens/Source/shotwell/src/Box.vala" - _tmp56_ = _tmp55_.bottom; -#line 318 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_vertical_shifted, _tmp51_, _tmp53_, _tmp54_, _tmp56_); -#line 2217 "Box.c" - } else { - gboolean _tmp57_ = FALSE; - Box _tmp58_; - gint _tmp59_; - gint _tmp60_; -#line 319 "/home/jens/Source/shotwell/src/Box.vala" - _tmp58_ = *shifted; -#line 319 "/home/jens/Source/shotwell/src/Box.vala" - _tmp59_ = _tmp58_.left; -#line 319 "/home/jens/Source/shotwell/src/Box.vala" - _tmp60_ = (*self).left; -#line 319 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp59_ > _tmp60_) { -#line 2231 "Box.c" - Box _tmp61_; - gint _tmp62_; - gint _tmp63_; -#line 319 "/home/jens/Source/shotwell/src/Box.vala" - _tmp61_ = *shifted; -#line 319 "/home/jens/Source/shotwell/src/Box.vala" - _tmp62_ = _tmp61_.left; -#line 319 "/home/jens/Source/shotwell/src/Box.vala" - _tmp63_ = (*self).right; -#line 319 "/home/jens/Source/shotwell/src/Box.vala" - _tmp57_ = _tmp62_ < _tmp63_; -#line 2243 "Box.c" - } else { -#line 319 "/home/jens/Source/shotwell/src/Box.vala" - _tmp57_ = FALSE; -#line 2247 "Box.c" - } -#line 319 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp57_) { -#line 2251 "Box.c" - gint _tmp64_; - gint _tmp65_; - Box _tmp66_; - gint _tmp67_; - gint _tmp68_; - gint _tmp69_; - Box _tmp70_; - gint _tmp71_; - Box _tmp72_; - gint _tmp73_; - Box _tmp74_; - gint _tmp75_; -#line 321 "/home/jens/Source/shotwell/src/Box.vala" - _tmp64_ = (*self).left; -#line 321 "/home/jens/Source/shotwell/src/Box.vala" - _tmp65_ = (*self).top; -#line 321 "/home/jens/Source/shotwell/src/Box.vala" - _tmp66_ = *shifted; -#line 321 "/home/jens/Source/shotwell/src/Box.vala" - _tmp67_ = _tmp66_.left; -#line 321 "/home/jens/Source/shotwell/src/Box.vala" - _tmp68_ = (*self).bottom; -#line 321 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_vertical_this, _tmp64_, _tmp65_, _tmp67_, _tmp68_); -#line 322 "/home/jens/Source/shotwell/src/Box.vala" - _tmp69_ = (*self).right; -#line 322 "/home/jens/Source/shotwell/src/Box.vala" - _tmp70_ = *shifted; -#line 322 "/home/jens/Source/shotwell/src/Box.vala" - _tmp71_ = _tmp70_.top; -#line 322 "/home/jens/Source/shotwell/src/Box.vala" - _tmp72_ = *shifted; -#line 322 "/home/jens/Source/shotwell/src/Box.vala" - _tmp73_ = _tmp72_.right; -#line 322 "/home/jens/Source/shotwell/src/Box.vala" - _tmp74_ = *shifted; -#line 322 "/home/jens/Source/shotwell/src/Box.vala" - _tmp75_ = _tmp74_.bottom; -#line 322 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_vertical_shifted, _tmp69_, _tmp71_, _tmp73_, _tmp75_); -#line 2292 "Box.c" - } else { -#line 325 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_vertical_this, 0, 0, 0, 0); -#line 326 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_vala_vertical_shifted, 0, 0, 0, 0); -#line 327 "/home/jens/Source/shotwell/src/Box.vala" - vertical_complement = FALSE; -#line 2300 "Box.c" - } - } -#line 330 "/home/jens/Source/shotwell/src/Box.vala" - _tmp76_ = horizontal_complement; -#line 330 "/home/jens/Source/shotwell/src/Box.vala" - _tmp77_ = vertical_complement; -#line 330 "/home/jens/Source/shotwell/src/Box.vala" - result = box_complements_derive (_tmp76_, _tmp77_); -#line 330 "/home/jens/Source/shotwell/src/Box.vala" - if (horizontal_this) { -#line 330 "/home/jens/Source/shotwell/src/Box.vala" - *horizontal_this = _vala_horizontal_this; -#line 2313 "Box.c" - } -#line 330 "/home/jens/Source/shotwell/src/Box.vala" - if (vertical_this) { -#line 330 "/home/jens/Source/shotwell/src/Box.vala" - *vertical_this = _vala_vertical_this; -#line 2319 "Box.c" - } -#line 330 "/home/jens/Source/shotwell/src/Box.vala" - if (horizontal_shifted) { -#line 330 "/home/jens/Source/shotwell/src/Box.vala" - *horizontal_shifted = _vala_horizontal_shifted; -#line 2325 "Box.c" - } -#line 330 "/home/jens/Source/shotwell/src/Box.vala" - if (vertical_shifted) { -#line 330 "/home/jens/Source/shotwell/src/Box.vala" - *vertical_shifted = _vala_vertical_shifted; -#line 2331 "Box.c" - } -#line 330 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 2335 "Box.c" -} - - -void -box_rubber_band (Box *self, - GdkPoint* point, - Box* result) -{ - GdkPoint _tmp0_; - gint _tmp1_; - GdkPoint _tmp2_; - gint _tmp3_; - gint t = 0; - gint _tmp4_; - GdkPoint _tmp5_; - gint _tmp6_; - gint b = 0; - gint _tmp7_; - GdkPoint _tmp8_; - gint _tmp9_; - gint l = 0; - gint _tmp10_; - GdkPoint _tmp11_; - gint _tmp12_; - gint r = 0; - gint _tmp13_; - GdkPoint _tmp14_; - gint _tmp15_; - Box _tmp16_ = {0}; -#line 333 "/home/jens/Source/shotwell/src/Box.vala" - g_return_if_fail (point != NULL); -#line 334 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = *point; -#line 334 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = _tmp0_.x; -#line 334 "/home/jens/Source/shotwell/src/Box.vala" - _vala_assert (_tmp1_ >= 0, "point.x >= 0"); -#line 335 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = *point; -#line 335 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = _tmp2_.y; -#line 335 "/home/jens/Source/shotwell/src/Box.vala" - _vala_assert (_tmp3_ >= 0, "point.y >= 0"); -#line 337 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = (*self).top; -#line 337 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = *point; -#line 337 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = _tmp5_.y; -#line 337 "/home/jens/Source/shotwell/src/Box.vala" - t = MIN (_tmp4_, _tmp6_); -#line 338 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = (*self).bottom; -#line 338 "/home/jens/Source/shotwell/src/Box.vala" - _tmp8_ = *point; -#line 338 "/home/jens/Source/shotwell/src/Box.vala" - _tmp9_ = _tmp8_.y; -#line 338 "/home/jens/Source/shotwell/src/Box.vala" - b = MAX (_tmp7_, _tmp9_); -#line 339 "/home/jens/Source/shotwell/src/Box.vala" - _tmp10_ = (*self).left; -#line 339 "/home/jens/Source/shotwell/src/Box.vala" - _tmp11_ = *point; -#line 339 "/home/jens/Source/shotwell/src/Box.vala" - _tmp12_ = _tmp11_.x; -#line 339 "/home/jens/Source/shotwell/src/Box.vala" - l = MIN (_tmp10_, _tmp12_); -#line 340 "/home/jens/Source/shotwell/src/Box.vala" - _tmp13_ = (*self).right; -#line 340 "/home/jens/Source/shotwell/src/Box.vala" - _tmp14_ = *point; -#line 340 "/home/jens/Source/shotwell/src/Box.vala" - _tmp15_ = _tmp14_.x; -#line 340 "/home/jens/Source/shotwell/src/Box.vala" - r = MAX (_tmp13_, _tmp15_); -#line 342 "/home/jens/Source/shotwell/src/Box.vala" - box_init (&_tmp16_, l, t, r, b); -#line 342 "/home/jens/Source/shotwell/src/Box.vala" - *result = _tmp16_; -#line 342 "/home/jens/Source/shotwell/src/Box.vala" - return; -#line 2417 "Box.c" -} - - -gchar* -box_to_string (Box *self) -{ - gchar* result = NULL; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - Dimensions _tmp4_ = {0}; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 346 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = (*self).left; -#line 346 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = (*self).top; -#line 346 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = (*self).right; -#line 346 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = (*self).bottom; -#line 346 "/home/jens/Source/shotwell/src/Box.vala" - box_get_dimensions (&(*self), &_tmp4_); -#line 346 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = dimensions_to_string (&_tmp4_); -#line 346 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = _tmp5_; -#line 346 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = g_strdup_printf ("%d,%d %d,%d (%s)", _tmp0_, _tmp1_, _tmp2_, _tmp3_, _tmp6_); -#line 346 "/home/jens/Source/shotwell/src/Box.vala" - _tmp8_ = _tmp7_; -#line 346 "/home/jens/Source/shotwell/src/Box.vala" - _g_free0 (_tmp6_); -#line 346 "/home/jens/Source/shotwell/src/Box.vala" - result = _tmp8_; -#line 346 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 2458 "Box.c" -} - - -static gboolean -box_in_zone (gdouble pos, - gint zone) -{ - gboolean result = FALSE; - gint top_zone = 0; - gint bottom_zone = 0; -#line 350 "/home/jens/Source/shotwell/src/Box.vala" - top_zone = zone - BOX_HAND_GRENADES; -#line 351 "/home/jens/Source/shotwell/src/Box.vala" - bottom_zone = zone + BOX_HAND_GRENADES; -#line 353 "/home/jens/Source/shotwell/src/Box.vala" - result = box_in_between (pos, top_zone, bottom_zone); -#line 353 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 2477 "Box.c" -} - - -static gboolean -box_in_between (gdouble pos, - gint top, - gint bottom) -{ - gboolean result = FALSE; - gint ipos = 0; - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 357 "/home/jens/Source/shotwell/src/Box.vala" - ipos = (gint) pos; -#line 359 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = ipos; -#line 359 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp1_ > top) { -#line 2496 "Box.c" - gint _tmp2_; -#line 359 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = ipos; -#line 359 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = _tmp2_ < bottom; -#line 2502 "Box.c" - } else { -#line 359 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = FALSE; -#line 2506 "Box.c" - } -#line 359 "/home/jens/Source/shotwell/src/Box.vala" - result = _tmp0_; -#line 359 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 2512 "Box.c" -} - - -static gboolean -box_near_in_between (gdouble pos, - gint top, - gint bottom) -{ - gboolean result = FALSE; - gint ipos = 0; - gint top_zone = 0; - gint bottom_zone = 0; - gboolean _tmp0_ = FALSE; - gint _tmp1_; - gint _tmp2_; -#line 363 "/home/jens/Source/shotwell/src/Box.vala" - ipos = (gint) pos; -#line 364 "/home/jens/Source/shotwell/src/Box.vala" - top_zone = top - BOX_HAND_GRENADES; -#line 365 "/home/jens/Source/shotwell/src/Box.vala" - bottom_zone = bottom + BOX_HAND_GRENADES; -#line 367 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = ipos; -#line 367 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = top_zone; -#line 367 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp1_ > _tmp2_) { -#line 2540 "Box.c" - gint _tmp3_; - gint _tmp4_; -#line 367 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = ipos; -#line 367 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = bottom_zone; -#line 367 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = _tmp3_ < _tmp4_; -#line 2549 "Box.c" - } else { -#line 367 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = FALSE; -#line 2553 "Box.c" - } -#line 367 "/home/jens/Source/shotwell/src/Box.vala" - result = _tmp0_; -#line 367 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 2559 "Box.c" -} - - -BoxLocation -box_approx_location (Box *self, - gint x, - gint y) -{ - BoxLocation result = 0; - gboolean near_width = FALSE; - gint _tmp0_; - gint _tmp1_; - gboolean near_height = FALSE; - gint _tmp2_; - gint _tmp3_; - gboolean _tmp4_ = FALSE; - gint _tmp5_; -#line 371 "/home/jens/Source/shotwell/src/Box.vala" - _tmp0_ = (*self).left; -#line 371 "/home/jens/Source/shotwell/src/Box.vala" - _tmp1_ = (*self).right; -#line 371 "/home/jens/Source/shotwell/src/Box.vala" - near_width = box_near_in_between ((gdouble) x, _tmp0_, _tmp1_); -#line 372 "/home/jens/Source/shotwell/src/Box.vala" - _tmp2_ = (*self).top; -#line 372 "/home/jens/Source/shotwell/src/Box.vala" - _tmp3_ = (*self).bottom; -#line 372 "/home/jens/Source/shotwell/src/Box.vala" - near_height = box_near_in_between ((gdouble) y, _tmp2_, _tmp3_); -#line 374 "/home/jens/Source/shotwell/src/Box.vala" - _tmp5_ = (*self).left; -#line 374 "/home/jens/Source/shotwell/src/Box.vala" - if (box_in_zone ((gdouble) x, _tmp5_)) { -#line 2593 "Box.c" - gboolean _tmp6_; -#line 374 "/home/jens/Source/shotwell/src/Box.vala" - _tmp6_ = near_height; -#line 374 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = _tmp6_; -#line 2599 "Box.c" - } else { -#line 374 "/home/jens/Source/shotwell/src/Box.vala" - _tmp4_ = FALSE; -#line 2603 "Box.c" - } -#line 374 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp4_) { -#line 2607 "Box.c" - gint _tmp7_; -#line 375 "/home/jens/Source/shotwell/src/Box.vala" - _tmp7_ = (*self).top; -#line 375 "/home/jens/Source/shotwell/src/Box.vala" - if (box_in_zone ((gdouble) y, _tmp7_)) { -#line 376 "/home/jens/Source/shotwell/src/Box.vala" - result = BOX_LOCATION_TOP_LEFT; -#line 376 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 2617 "Box.c" - } else { - gint _tmp8_; -#line 377 "/home/jens/Source/shotwell/src/Box.vala" - _tmp8_ = (*self).bottom; -#line 377 "/home/jens/Source/shotwell/src/Box.vala" - if (box_in_zone ((gdouble) y, _tmp8_)) { -#line 378 "/home/jens/Source/shotwell/src/Box.vala" - result = BOX_LOCATION_BOTTOM_LEFT; -#line 378 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 2628 "Box.c" - } else { -#line 380 "/home/jens/Source/shotwell/src/Box.vala" - result = BOX_LOCATION_LEFT_SIDE; -#line 380 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 2634 "Box.c" - } - } - } else { - gboolean _tmp9_ = FALSE; - gint _tmp10_; -#line 382 "/home/jens/Source/shotwell/src/Box.vala" - _tmp10_ = (*self).right; -#line 382 "/home/jens/Source/shotwell/src/Box.vala" - if (box_in_zone ((gdouble) x, _tmp10_)) { -#line 2644 "Box.c" - gboolean _tmp11_; -#line 382 "/home/jens/Source/shotwell/src/Box.vala" - _tmp11_ = near_height; -#line 382 "/home/jens/Source/shotwell/src/Box.vala" - _tmp9_ = _tmp11_; -#line 2650 "Box.c" - } else { -#line 382 "/home/jens/Source/shotwell/src/Box.vala" - _tmp9_ = FALSE; -#line 2654 "Box.c" - } -#line 382 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp9_) { -#line 2658 "Box.c" - gint _tmp12_; -#line 383 "/home/jens/Source/shotwell/src/Box.vala" - _tmp12_ = (*self).top; -#line 383 "/home/jens/Source/shotwell/src/Box.vala" - if (box_in_zone ((gdouble) y, _tmp12_)) { -#line 384 "/home/jens/Source/shotwell/src/Box.vala" - result = BOX_LOCATION_TOP_RIGHT; -#line 384 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 2668 "Box.c" - } else { - gint _tmp13_; -#line 385 "/home/jens/Source/shotwell/src/Box.vala" - _tmp13_ = (*self).bottom; -#line 385 "/home/jens/Source/shotwell/src/Box.vala" - if (box_in_zone ((gdouble) y, _tmp13_)) { -#line 386 "/home/jens/Source/shotwell/src/Box.vala" - result = BOX_LOCATION_BOTTOM_RIGHT; -#line 386 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 2679 "Box.c" - } else { -#line 388 "/home/jens/Source/shotwell/src/Box.vala" - result = BOX_LOCATION_RIGHT_SIDE; -#line 388 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 2685 "Box.c" - } - } - } else { - gboolean _tmp14_ = FALSE; - gint _tmp15_; -#line 390 "/home/jens/Source/shotwell/src/Box.vala" - _tmp15_ = (*self).top; -#line 390 "/home/jens/Source/shotwell/src/Box.vala" - if (box_in_zone ((gdouble) y, _tmp15_)) { -#line 2695 "Box.c" - gboolean _tmp16_; -#line 390 "/home/jens/Source/shotwell/src/Box.vala" - _tmp16_ = near_width; -#line 390 "/home/jens/Source/shotwell/src/Box.vala" - _tmp14_ = _tmp16_; -#line 2701 "Box.c" - } else { -#line 390 "/home/jens/Source/shotwell/src/Box.vala" - _tmp14_ = FALSE; -#line 2705 "Box.c" - } -#line 390 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp14_) { -#line 392 "/home/jens/Source/shotwell/src/Box.vala" - result = BOX_LOCATION_TOP_SIDE; -#line 392 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 2713 "Box.c" - } else { - gboolean _tmp17_ = FALSE; - gint _tmp18_; -#line 393 "/home/jens/Source/shotwell/src/Box.vala" - _tmp18_ = (*self).bottom; -#line 393 "/home/jens/Source/shotwell/src/Box.vala" - if (box_in_zone ((gdouble) y, _tmp18_)) { -#line 2721 "Box.c" - gboolean _tmp19_; -#line 393 "/home/jens/Source/shotwell/src/Box.vala" - _tmp19_ = near_width; -#line 393 "/home/jens/Source/shotwell/src/Box.vala" - _tmp17_ = _tmp19_; -#line 2727 "Box.c" - } else { -#line 393 "/home/jens/Source/shotwell/src/Box.vala" - _tmp17_ = FALSE; -#line 2731 "Box.c" - } -#line 393 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp17_) { -#line 395 "/home/jens/Source/shotwell/src/Box.vala" - result = BOX_LOCATION_BOTTOM_SIDE; -#line 395 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 2739 "Box.c" - } else { - gboolean _tmp20_ = FALSE; - gint _tmp21_; - gint _tmp22_; -#line 396 "/home/jens/Source/shotwell/src/Box.vala" - _tmp21_ = (*self).left; -#line 396 "/home/jens/Source/shotwell/src/Box.vala" - _tmp22_ = (*self).right; -#line 396 "/home/jens/Source/shotwell/src/Box.vala" - if (box_in_between ((gdouble) x, _tmp21_, _tmp22_)) { -#line 2750 "Box.c" - gint _tmp23_; - gint _tmp24_; -#line 396 "/home/jens/Source/shotwell/src/Box.vala" - _tmp23_ = (*self).top; -#line 396 "/home/jens/Source/shotwell/src/Box.vala" - _tmp24_ = (*self).bottom; -#line 396 "/home/jens/Source/shotwell/src/Box.vala" - _tmp20_ = box_in_between ((gdouble) y, _tmp23_, _tmp24_); -#line 2759 "Box.c" - } else { -#line 396 "/home/jens/Source/shotwell/src/Box.vala" - _tmp20_ = FALSE; -#line 2763 "Box.c" - } -#line 396 "/home/jens/Source/shotwell/src/Box.vala" - if (_tmp20_) { -#line 397 "/home/jens/Source/shotwell/src/Box.vala" - result = BOX_LOCATION_INSIDE; -#line 397 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 2771 "Box.c" - } else { -#line 399 "/home/jens/Source/shotwell/src/Box.vala" - result = BOX_LOCATION_OUTSIDE; -#line 399 "/home/jens/Source/shotwell/src/Box.vala" - return result; -#line 2777 "Box.c" - } - } - } - } - } -} - - -Box* -box_dup (const Box* self) -{ - Box* dup; -#line 38 "/home/jens/Source/shotwell/src/Box.vala" - dup = g_new0 (Box, 1); -#line 38 "/home/jens/Source/shotwell/src/Box.vala" - memcpy (dup, self, sizeof (Box)); -#line 38 "/home/jens/Source/shotwell/src/Box.vala" - return dup; -#line 2796 "Box.c" -} - - -void -box_free (Box* self) -{ -#line 38 "/home/jens/Source/shotwell/src/Box.vala" - g_free (self); -#line 2805 "Box.c" -} - - -GType -box_get_type (void) -{ - static volatile gsize box_type_id__volatile = 0; - if (g_once_init_enter (&box_type_id__volatile)) { - GType box_type_id; - box_type_id = g_boxed_type_register_static ("Box", (GBoxedCopyFunc) box_dup, (GBoxedFreeFunc) box_free); - g_once_init_leave (&box_type_id__volatile, box_type_id); - } - return box_type_id__volatile; -} - - - diff --git a/src/CheckerboardLayout.c b/src/CheckerboardLayout.c deleted file mode 100644 index 18080e8..0000000 --- a/src/CheckerboardLayout.c +++ /dev/null @@ -1,12162 +0,0 @@ -/* CheckerboardLayout.c generated by valac 0.40.4, the Vala compiler - * generated from CheckerboardLayout.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_CHECKERBOARD_ITEM_TEXT (checkerboard_item_text_get_type ()) -#define CHECKERBOARD_ITEM_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM_TEXT, CheckerboardItemText)) -#define CHECKERBOARD_ITEM_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM_TEXT, CheckerboardItemTextClass)) -#define IS_CHECKERBOARD_ITEM_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM_TEXT)) -#define IS_CHECKERBOARD_ITEM_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM_TEXT)) -#define CHECKERBOARD_ITEM_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM_TEXT, CheckerboardItemTextClass)) - -typedef struct _CheckerboardItemText CheckerboardItemText; -typedef struct _CheckerboardItemTextClass CheckerboardItemTextClass; -typedef struct _CheckerboardItemTextPrivate CheckerboardItemTextPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; -typedef struct _ParamSpecCheckerboardItemText ParamSpecCheckerboardItemText; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; -typedef struct _DataViewPrivate DataViewPrivate; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; -typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; -typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; -enum { - CHECKERBOARD_ITEM_0_PROPERTY, - CHECKERBOARD_ITEM_HAS_TAGS_PROPERTY, - CHECKERBOARD_ITEM_NUM_PROPERTIES -}; -static GParamSpec* checkerboard_item_properties[CHECKERBOARD_ITEM_NUM_PROPERTIES]; -#define _checkerboard_item_text_unref0(var) ((var == NULL) ? NULL : (var = (checkerboard_item_text_unref (var), NULL))) - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL))) -#define _cairo_pattern_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_pattern_destroy (var), NULL))) - -#define TYPE_CHECKERBOARD_LAYOUT (checkerboard_layout_get_type ()) -#define CHECKERBOARD_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout)) -#define CHECKERBOARD_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayoutClass)) -#define IS_CHECKERBOARD_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_LAYOUT)) -#define IS_CHECKERBOARD_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_LAYOUT)) -#define CHECKERBOARD_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayoutClass)) - -typedef struct _CheckerboardLayout CheckerboardLayout; -typedef struct _CheckerboardLayoutClass CheckerboardLayoutClass; -typedef struct _CheckerboardLayoutPrivate CheckerboardLayoutPrivate; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; - -#define CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW (checkerboard_layout_layout_row_get_type ()) -#define CHECKERBOARD_LAYOUT_LAYOUT_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW, CheckerboardLayoutLayoutRow)) -#define CHECKERBOARD_LAYOUT_LAYOUT_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW, CheckerboardLayoutLayoutRowClass)) -#define CHECKERBOARD_LAYOUT_IS_LAYOUT_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW)) -#define CHECKERBOARD_LAYOUT_IS_LAYOUT_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW)) -#define CHECKERBOARD_LAYOUT_LAYOUT_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW, CheckerboardLayoutLayoutRowClass)) - -typedef struct _CheckerboardLayoutLayoutRow CheckerboardLayoutLayoutRow; -typedef struct _CheckerboardLayoutLayoutRowClass CheckerboardLayoutLayoutRowClass; -enum { - CHECKERBOARD_LAYOUT_0_PROPERTY, - CHECKERBOARD_LAYOUT_NUM_PROPERTIES -}; -static GParamSpec* checkerboard_layout_properties[CHECKERBOARD_LAYOUT_NUM_PROPERTIES]; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -typedef struct _CheckerboardLayoutLayoutRowPrivate CheckerboardLayoutLayoutRowPrivate; -#define _checkerboard_layout_layout_row_unref0(var) ((var == NULL) ? NULL : (var = (checkerboard_layout_layout_row_unref (var), NULL))) - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; - -#define TYPE_COMPASS_POINT (compass_point_get_type ()) - -#define TYPE_BOX (box_get_type ()) -typedef struct _Box Box; -typedef struct _CheckerboardLayoutParamSpecLayoutRow CheckerboardLayoutParamSpecLayoutRow; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _CheckerboardItemText { - GTypeInstance parent_instance; - volatile int ref_count; - CheckerboardItemTextPrivate * priv; - GdkRectangle allocation; -}; - -struct _CheckerboardItemTextClass { - GTypeClass parent_class; - void (*finalize) (CheckerboardItemText *self); -}; - -struct _CheckerboardItemTextPrivate { - gchar* text; - gboolean marked_up; - PangoAlignment alignment; - PangoLayout* layout; - gboolean single_line; - gint height; -}; - -struct _ParamSpecCheckerboardItemText { - GParamSpec parent_instance; -}; - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataView { - DataObject parent_instance; - DataViewPrivate * priv; -}; - -struct _DataViewClass { - DataObjectClass parent_class; - void (*notify_view_altered) (DataView* self); - void (*notify_geometry_altered) (DataView* self); - void (*notify_unsubscribed) (DataView* self, DataSource* source); - void (*state_changed) (DataView* self, gboolean selected); - void (*visibility_changed) (DataView* self, gboolean visible); - void (*view_altered) (DataView* self); - void (*geometry_altered) (DataView* self); - void (*unsubscribed) (DataView* self, DataSource* source); -}; - -struct _ThumbnailView { - DataView parent_instance; - ThumbnailViewPrivate * priv; -}; - -struct _ThumbnailViewClass { - DataViewClass parent_class; - void (*notify_thumbnail_altered) (ThumbnailView* self); - void (*thumbnail_altered) (ThumbnailView* self); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _CheckerboardItem { - ThumbnailView parent_instance; - CheckerboardItemPrivate * priv; - Dimensions requisition; - GdkRectangle allocation; -}; - -struct _CheckerboardItemClass { - ThumbnailViewClass parent_class; - void (*exposed) (CheckerboardItem* self); - void (*unexposed) (CheckerboardItem* self); - gboolean (*is_exposed) (CheckerboardItem* self); - void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha); - void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width); - void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin); - GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale); -}; - -struct _CheckerboardItemPrivate { - gboolean exposure; - CheckerboardItemText* title; - gboolean title_visible; - CheckerboardItemText* comment; - gboolean comment_visible; - CheckerboardItemText* subtitle; - gboolean subtitle_visible; - gboolean is_cursor; - PangoAlignment tag_alignment; - GeeList* user_visible_tag_list; - GeeCollection* tags; - GdkPixbuf* pixbuf; - GdkPixbuf* display_pixbuf; - GdkPixbuf* brightened; - Dimensions pixbuf_dim; - gint col; - gint row; - gint horizontal_trinket_offset; - gboolean _has_tags; -}; - -struct _CheckerboardLayout { - GtkDrawingArea parent_instance; - CheckerboardLayoutPrivate * priv; -}; - -struct _CheckerboardLayoutClass { - GtkDrawingAreaClass parent_class; -}; - -struct _CheckerboardLayoutPrivate { - ViewCollection* view; - gchar* page_name; - CheckerboardLayoutLayoutRow** item_rows; - gint item_rows_length1; - gint _item_rows_size_; - GeeHashSet* exposed_items; - GtkAdjustment* hadjustment; - GtkAdjustment* vadjustment; - gchar* message; - GdkRGBA selected_color; - GdkRGBA unselected_color; - GdkRGBA border_color; - GdkRGBA bg_color; - GdkRectangle visible_page; - gint last_width; - gint columns; - gint rows; - GdkPoint drag_origin; - GdkPoint drag_endpoint; - GdkRectangle selection_band; - gint scale; - gboolean flow_scheduled; - gboolean exposure_dirty; - CheckerboardItem* anchor; - CheckerboardItem* cursor; - gboolean in_center_on_anchor; - gboolean size_allocate_due_to_reflow; - gboolean is_in_view; - gboolean reflow_needed; -}; - -struct _CheckerboardLayoutLayoutRow { - GTypeInstance parent_instance; - volatile int ref_count; - CheckerboardLayoutLayoutRowPrivate * priv; - gint y; - gint height; - CheckerboardItem** items; - gint items_length1; - gint _items_size_; -}; - -struct _CheckerboardLayoutLayoutRowClass { - GTypeClass parent_class; - void (*finalize) (CheckerboardLayoutLayoutRow *self); -}; - -typedef enum { - COMPASS_POINT_NORTH, - COMPASS_POINT_SOUTH, - COMPASS_POINT_EAST, - COMPASS_POINT_WEST -} CompassPoint; - -struct _Box { - gint left; - gint top; - gint right; - gint bottom; -}; - -struct _CheckerboardLayoutParamSpecLayoutRow { - GParamSpec parent_instance; -}; - - -static gpointer checkerboard_item_text_parent_class = NULL; -static gint checkerboard_item_text_one_line_height; -static gint checkerboard_item_text_one_line_height = 0; -static gpointer checkerboard_item_parent_class = NULL; -static gpointer checkerboard_layout_parent_class = NULL; -static gpointer checkerboard_layout_layout_row_parent_class = NULL; - -gpointer checkerboard_item_text_ref (gpointer instance); -void checkerboard_item_text_unref (gpointer instance); -GParamSpec* param_spec_checkerboard_item_text (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_checkerboard_item_text (GValue* value, - gpointer v_object); -void value_take_checkerboard_item_text (GValue* value, - gpointer v_object); -gpointer value_get_checkerboard_item_text (const GValue* value); -GType checkerboard_item_text_get_type (void) G_GNUC_CONST; -#define CHECKERBOARD_ITEM_TEXT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CHECKERBOARD_ITEM_TEXT, CheckerboardItemTextPrivate)) -CheckerboardItemText* checkerboard_item_text_new (const gchar* text, - PangoAlignment alignment, - gboolean marked_up); -CheckerboardItemText* checkerboard_item_text_construct (GType object_type, - const gchar* text, - PangoAlignment alignment, - gboolean marked_up); -static gboolean checkerboard_item_text_is_single_line (CheckerboardItemText* self); -gboolean string_contains_char (const gchar* haystack, - gunichar needle); -gboolean checkerboard_item_text_is_marked_up (CheckerboardItemText* self); -gboolean checkerboard_item_text_is_set_to (CheckerboardItemText* self, - const gchar* text, - gboolean marked_up, - PangoAlignment alignment); -gchar* checkerboard_item_text_get_text (CheckerboardItemText* self); -gint checkerboard_item_text_get_height (CheckerboardItemText* self); -static void checkerboard_item_text_update_height (CheckerboardItemText* self); -PangoLayout* checkerboard_item_text_get_pango_layout (CheckerboardItemText* self, - gint max_width); -static void checkerboard_item_text_create_pango (CheckerboardItemText* self); -void checkerboard_item_text_clear_pango_layout (CheckerboardItemText* self); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -static void checkerboard_item_text_finalize (CheckerboardItemText * obj); -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType tag_get_type (void) G_GNUC_CONST; -#define CHECKERBOARD_ITEM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CHECKERBOARD_ITEM, CheckerboardItemPrivate)) -void dimensions_init (Dimensions *self, - gint width, - gint height); -#define CHECKERBOARD_ITEM_PROP_SHOW_TITLES "show-titles" -#define CHECKERBOARD_ITEM_PROP_SHOW_COMMENTS "show-comments" -#define CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES "show-subtitles" -#define CHECKERBOARD_ITEM_FRAME_WIDTH 8 -#define CHECKERBOARD_ITEM_LABEL_PADDING 4 -#define CHECKERBOARD_ITEM_BORDER_WIDTH 1 -#define CHECKERBOARD_ITEM_SHADOW_RADIUS 4 -#define CHECKERBOARD_ITEM_SHADOW_INITIAL_ALPHA 0.5f -#define CHECKERBOARD_ITEM_TRINKET_SCALE 12 -#define CHECKERBOARD_ITEM_TRINKET_PADDING 1 -#define CHECKERBOARD_ITEM_BRIGHTEN_SHIFT 0x18 -GType thumbnail_source_get_type (void) G_GNUC_CONST; -CheckerboardItem* checkerboard_item_construct (GType object_type, - ThumbnailSource* source, - Dimensions* initial_pixbuf_dim, - const gchar* title, - const gchar* comment, - gboolean marked_up, - PangoAlignment alignment); -ThumbnailView* thumbnail_view_new (ThumbnailSource* source); -ThumbnailView* thumbnail_view_construct (GType object_type, - ThumbnailSource* source); -static gchar* checkerboard_item_real_get_name (DataObject* base); -gchar* data_object_get_name (DataObject* self); -gchar* checkerboard_item_get_title (CheckerboardItem* self); -gchar* checkerboard_item_get_comment (CheckerboardItem* self); -void checkerboard_item_set_title (CheckerboardItem* self, - const gchar* text, - gboolean marked_up, - PangoAlignment alignment); -static void checkerboard_item_recalc_size (CheckerboardItem* self, - const gchar* reason); -void data_view_notify_view_altered (DataView* self); -void checkerboard_item_translate_coordinates (CheckerboardItem* self, - gint* x, - gint* y); -void checkerboard_item_clear_title (CheckerboardItem* self); -static void checkerboard_item_set_title_visible (CheckerboardItem* self, - gboolean visible); -void checkerboard_item_set_comment (CheckerboardItem* self, - const gchar* text, - gboolean marked_up, - PangoAlignment alignment); -void checkerboard_item_clear_comment (CheckerboardItem* self); -static void checkerboard_item_set_comment_visible (CheckerboardItem* self, - gboolean visible); -void checkerboard_item_set_tags (CheckerboardItem* self, - GeeCollection* tags, - PangoAlignment alignment); -static void checkerboard_item_set_has_tags (CheckerboardItem* self, - gboolean value); -gboolean checkerboard_item_get_has_tags (CheckerboardItem* self); -GeeList* tag_make_user_visible_tag_list (GeeCollection* tags); -gchar* tag_make_tag_markup_string (GeeList* tags, - gint highlight_index); -void checkerboard_item_clear_tags (CheckerboardItem* self); -void checkerboard_item_clear_subtitle (CheckerboardItem* self); -void checkerboard_item_highlight_user_visible_tag (CheckerboardItem* self, - gint index); -Tag* checkerboard_item_get_user_visible_tag (CheckerboardItem* self, - gint index); -PangoLayout* checkerboard_item_get_tag_list_layout (CheckerboardItem* self); -void checkerboard_item_get_subtitle_allocation (CheckerboardItem* self, - GdkRectangle* result); -gchar* checkerboard_item_get_subtitle (CheckerboardItem* self); -void checkerboard_item_set_subtitle (CheckerboardItem* self, - const gchar* text, - gboolean marked_up, - PangoAlignment alignment); -static void checkerboard_item_set_subtitle_visible (CheckerboardItem* self, - gboolean visible); -void checkerboard_item_set_is_cursor (CheckerboardItem* self, - gboolean is_cursor); -gboolean checkerboard_item_get_is_cursor (CheckerboardItem* self); -static void checkerboard_item_real_notify_membership_changed (DataObject* base, - DataCollection* collection); -void data_object_get_collection_property (DataObject* self, - const gchar* name, - GValue* def, - GValue* result); -static void _vala_GValue_free (GValue* self); -gboolean dimensions_has_area (Dimensions *self); -void data_object_notify_membership_changed (DataObject* self, - DataCollection* collection); -static void checkerboard_item_real_notify_collection_property_set (DataObject* base, - const gchar* name, - GValue* old, - GValue* val); -void data_object_notify_collection_property_set (DataObject* self, - const gchar* name, - GValue* old, - GValue* val); -gint checkerboard_item_get_alignment_point (CheckerboardItem* self); -void checkerboard_item_exposed (CheckerboardItem* self); -static void checkerboard_item_real_exposed (CheckerboardItem* self); -void checkerboard_item_unexposed (CheckerboardItem* self); -static void checkerboard_item_real_unexposed (CheckerboardItem* self); -gboolean checkerboard_item_is_exposed (CheckerboardItem* self); -static gboolean checkerboard_item_real_is_exposed (CheckerboardItem* self); -gboolean checkerboard_item_has_image (CheckerboardItem* self); -GdkPixbuf* checkerboard_item_get_image (CheckerboardItem* self); -void checkerboard_item_set_image (CheckerboardItem* self, - GdkPixbuf* pixbuf); -void dimensions_for_pixbuf (GdkPixbuf* pixbuf, - Dimensions* result); -void checkerboard_item_clear_image (CheckerboardItem* self, - Dimensions* dim); -gint checkerboard_item_get_max_width (gint scale); -gboolean dimensions_approx_equals (Dimensions *self, - Dimensions* dim, - gint fudge); -void data_view_notify_geometry_altered (DataView* self); -void checkerboard_item_get_border_dimensions (Dimensions* object_dim, - gint border_width, - Dimensions* result); -void checkerboard_item_get_border_origin (GdkPoint* object_origin, - gint border_width, - GdkPoint* result); -void checkerboard_item_paint_shadow (CheckerboardItem* self, - cairo_t* ctx, - Dimensions* dimensions, - GdkPoint* origin, - gint radius, - gfloat initial_alpha); -static void checkerboard_item_real_paint_shadow (CheckerboardItem* self, - cairo_t* ctx, - Dimensions* dimensions, - GdkPoint* origin, - gint radius, - gfloat initial_alpha); -void checkerboard_item_paint_shadow_in_corner (CheckerboardItem* self, - cairo_t* ctx, - gint x, - gint y, - gdouble rgb_all, - gfloat radius, - gfloat initial_alpha, - gdouble arc1, - gdouble arc2); -void checkerboard_item_paint_border (CheckerboardItem* self, - cairo_t* ctx, - Dimensions* object_dimensions, - GdkPoint* object_origin, - gint border_width); -static void checkerboard_item_real_paint_border (CheckerboardItem* self, - cairo_t* ctx, - Dimensions* object_dimensions, - GdkPoint* object_origin, - gint border_width); -void draw_rounded_corners_filled (cairo_t* ctx, - Dimensions* dim, - GdkPoint* origin, - gdouble radius_proportion); -void checkerboard_item_paint_image (CheckerboardItem* self, - cairo_t* ctx, - GdkPixbuf* pixbuf, - GdkPoint* origin); -static void checkerboard_item_real_paint_image (CheckerboardItem* self, - cairo_t* ctx, - GdkPixbuf* pixbuf, - GdkPoint* origin); -void paint_pixmap_with_background (cairo_t* ctx, - GdkPixbuf* pixbuf, - gint x, - gint y); -static gint checkerboard_item_get_selection_border_width (CheckerboardItem* self, - gint scale); -gint thumbnail_get_MIN_SCALE (void); -gint thumbnail_get_MAX_SCALE (void); -GdkPixbuf* checkerboard_item_get_top_left_trinket (CheckerboardItem* self, - gint scale); -static GdkPixbuf* checkerboard_item_real_get_top_left_trinket (CheckerboardItem* self, - gint scale); -GdkPixbuf* checkerboard_item_get_top_right_trinket (CheckerboardItem* self, - gint scale); -static GdkPixbuf* checkerboard_item_real_get_top_right_trinket (CheckerboardItem* self, - gint scale); -GdkPixbuf* checkerboard_item_get_bottom_left_trinket (CheckerboardItem* self, - gint scale); -static GdkPixbuf* checkerboard_item_real_get_bottom_left_trinket (CheckerboardItem* self, - gint scale); -GdkPixbuf* checkerboard_item_get_bottom_right_trinket (CheckerboardItem* self, - gint scale); -static GdkPixbuf* checkerboard_item_real_get_bottom_right_trinket (CheckerboardItem* self, - gint scale); -void checkerboard_item_paint (CheckerboardItem* self, - cairo_t* ctx, - GdkRGBA* bg_color, - GdkRGBA* selected_color, - GdkRGBA* text_color, - GdkRGBA* border_color); -gboolean data_view_is_selected (DataView* self); -gint checkerboard_item_get_horizontal_trinket_offset (CheckerboardItem* self); -void checkerboard_item_set_horizontal_trinket_offset (CheckerboardItem* self, - gint horizontal_trinket_offset); -void checkerboard_item_set_grid_coordinates (CheckerboardItem* self, - gint col, - gint row); -gint checkerboard_item_get_column (CheckerboardItem* self); -gint checkerboard_item_get_row (CheckerboardItem* self); -void checkerboard_item_brighten (CheckerboardItem* self); -void shift_colors (GdkPixbuf* pixbuf, - gint red, - gint green, - gint blue, - gint alpha); -void checkerboard_item_unbrighten (CheckerboardItem* self); -static void checkerboard_item_real_visibility_changed (DataView* base, - gboolean visible); -static gboolean checkerboard_item_query_tooltip_on_text (CheckerboardItem* self, - CheckerboardItemText* text, - GtkTooltip* tooltip); -gboolean checkerboard_item_query_tooltip (CheckerboardItem* self, - gint x, - gint y, - GtkTooltip* tooltip); -gboolean coord_in_rectangle (gint x, - gint y, - GdkRectangle* rect); -static void checkerboard_item_finalize (GObject * obj); -static void _vala_checkerboard_item_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_checkerboard_item_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -GType checkerboard_layout_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -static gpointer checkerboard_layout_layout_row_ref (gpointer instance); -static void checkerboard_layout_layout_row_unref (gpointer instance); -static GParamSpec* checkerboard_layout_param_spec_layout_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void checkerboard_layout_value_set_layout_row (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void checkerboard_layout_value_take_layout_row (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer checkerboard_layout_value_get_layout_row (const GValue* value) G_GNUC_UNUSED; -static GType checkerboard_layout_layout_row_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define CHECKERBOARD_LAYOUT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayoutPrivate)) -static void checkerboard_layout_on_contents_altered (CheckerboardLayout* self, - GeeIterable* added, - GeeIterable* removed); -static void _checkerboard_layout_on_contents_altered_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self); -static void checkerboard_layout_on_items_altered (CheckerboardLayout* self); -static void _checkerboard_layout_on_items_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -static void checkerboard_layout_on_items_state_changed (CheckerboardLayout* self, - GeeIterable* changed); -static void _checkerboard_layout_on_items_state_changed_view_collection_items_state_changed (ViewCollection* _sender, - GeeIterable* changed, - gpointer self); -static void checkerboard_layout_on_items_visibility_changed (CheckerboardLayout* self, - GeeIterable* changed); -static void _checkerboard_layout_on_items_visibility_changed_view_collection_items_visibility_changed (ViewCollection* _sender, - GeeCollection* changed, - gpointer self); -static void checkerboard_layout_on_ordering_changed (CheckerboardLayout* self); -static void _checkerboard_layout_on_ordering_changed_data_collection_ordering_changed (DataCollection* _sender, - gpointer self); -static void checkerboard_layout_on_views_altered (CheckerboardLayout* self, - GeeCollection* altered); -static void _checkerboard_layout_on_views_altered_view_collection_views_altered (ViewCollection* _sender, - GeeCollection* views, - gpointer self); -static void checkerboard_layout_on_geometries_altered (CheckerboardLayout* self); -static void _checkerboard_layout_on_geometries_altered_view_collection_geometries_altered (ViewCollection* _sender, - GeeCollection* views, - gpointer self); -static void checkerboard_layout_on_items_selection_changed (CheckerboardLayout* self); -static void _checkerboard_layout_on_items_selection_changed_view_collection_items_selected (ViewCollection* _sender, - GeeIterable* selected, - gpointer self); -static void _checkerboard_layout_on_items_selection_changed_view_collection_items_unselected (ViewCollection* _sender, - GeeIterable* unselected, - gpointer self); -static void checkerboard_layout_on_viewport_shifted (CheckerboardLayout* self); -static void _checkerboard_layout_on_viewport_shifted_gtk_adjustment_value_changed (GtkAdjustment* _sender, - gpointer self); -static void checkerboard_layout_on_viewport_resized (CheckerboardLayout* self); -static void _checkerboard_layout_on_viewport_resized_gtk_widget_size_allocate (GtkWidget* _sender, - GtkAllocation* allocation, - gpointer self); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -static void checkerboard_layout_on_colors_changed (CheckerboardLayout* self); -static void _checkerboard_layout_on_colors_changed_config_facade_colors_changed (ConfigFacade* _sender, - gpointer self); -#define CHECKERBOARD_LAYOUT_TOP_PADDING 16 -#define CHECKERBOARD_LAYOUT_BOTTOM_PADDING 16 -#define CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING 24 -#define CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING 24 -#define CHECKERBOARD_LAYOUT_SELECTION_ALPHA 0.40 -#define CHECKERBOARD_LAYOUT_SCROLLBAR_PLACEHOLDER_WIDTH 1 -CheckerboardLayout* checkerboard_layout_new (ViewCollection* view); -CheckerboardLayout* checkerboard_layout_construct (GType object_type, - ViewCollection* view); -void checkerboard_layout_clear_drag_select (CheckerboardLayout* self); -void config_facade_get_bg_color (ConfigFacade* self, - GdkRGBA* result); -void checkerboard_layout_set_adjustments (CheckerboardLayout* self, - GtkAdjustment* hadjustment, - GtkAdjustment* vadjustment); -void checkerboard_layout_set_scale (CheckerboardLayout* self, - gint scale); -gint checkerboard_layout_get_scale (CheckerboardLayout* self); -void checkerboard_layout_set_name (CheckerboardLayout* self, - const gchar* name); -static void checkerboard_layout_viewport_resized (CheckerboardLayout* self); -static void checkerboard_layout_clear_anchor (CheckerboardLayout* self); -static void checkerboard_layout_update_visible_page (CheckerboardLayout* self); -static void checkerboard_layout_need_exposure (CheckerboardLayout* self, - const gchar* caller); -static void checkerboard_layout_update_anchor (CheckerboardLayout* self); -GeeList* checkerboard_layout_intersection (CheckerboardLayout* self, - GdkRectangle* area); -static void checkerboard_layout_center_on_anchor (CheckerboardLayout* self, - gdouble upper); -void checkerboard_layout_set_cursor (CheckerboardLayout* self, - CheckerboardItem* item); -gboolean data_collection_contains (DataCollection* self, - DataObject* object); -CheckerboardItem* checkerboard_layout_get_cursor (CheckerboardLayout* self); -static void checkerboard_layout_need_reflow (CheckerboardLayout* self, - const gchar* caller); -static void checkerboard_layout_items_dirty (CheckerboardLayout* self, - const gchar* reason, - GeeIterable* items); -static gboolean checkerboard_layout_do_reflow (CheckerboardLayout* self); -static gboolean _checkerboard_layout_do_reflow_gsource_func (gpointer self); -static void checkerboard_layout_reflow (CheckerboardLayout* self, - const gchar* caller); -void checkerboard_layout_set_message (CheckerboardLayout* self, - const gchar* text); -void checkerboard_layout_unset_message (CheckerboardLayout* self); -void get_adjustment_page (GtkAdjustment* hadj, - GtkAdjustment* vadj, - GdkRectangle* result); -void checkerboard_layout_set_in_view (CheckerboardLayout* self, - gboolean in_view); -static void checkerboard_layout_unexpose_items (CheckerboardLayout* self, - const gchar* caller); -CheckerboardItem* checkerboard_layout_get_item_at_pixel (CheckerboardLayout* self, - gdouble xd, - gdouble yd); -gint checkerboard_layout_get_tag_index_at_pos (const gchar* tag_list, - gint pos); -#define TAG_TAG_LIST_SEPARATOR_STRING ", " -static gint checkerboard_layout_internal_handle_tag_mouse_event (CheckerboardLayout* self, - CheckerboardItem* item, - gint x, - gint y); -gboolean checkerboard_layout_handle_mouse_motion (CheckerboardLayout* self, - CheckerboardItem* item, - gint x, - gint y, - GdkModifierType mask); -gboolean checkerboard_layout_is_drag_select_active (CheckerboardLayout* self); -gboolean checkerboard_layout_handle_left_click (CheckerboardLayout* self, - CheckerboardItem* item, - gdouble xd, - gdouble yd, - GdkModifierType mask); -GType library_window_get_type (void) G_GNUC_CONST; -LibraryWindow* library_window_get_app (void); -void library_window_switch_to_tag (LibraryWindow* self, - Tag* tag); -GeeList* checkerboard_layout_get_visible_items (CheckerboardLayout* self); -GType compass_point_get_type (void) G_GNUC_CONST; -CheckerboardItem* checkerboard_layout_get_item_relative_to (CheckerboardLayout* self, - CheckerboardItem* item, - CompassPoint point); -gint data_collection_get_count (DataCollection* self); -CheckerboardItem* checkerboard_layout_get_item_at_coordinate (CheckerboardLayout* self, - gint col, - gint row); -DataView* view_collection_get_last (ViewCollection* self); -void checkerboard_layout_set_drag_select_origin (CheckerboardLayout* self, - gint x, - gint y); -void checkerboard_layout_set_drag_select_endpoint (CheckerboardLayout* self, - gint x, - gint y); -GType box_get_type (void) G_GNUC_CONST; -Box* box_dup (const Box* self); -void box_free (Box* self); -void box_from_points (GdkPoint* corner1, - GdkPoint* corner2, - Box* result); -void box_get_rectangle (Box *self, - GdkRectangle* result); -GeeList* checkerboard_layout_items_in_selection_band (CheckerboardLayout* self); -void dimensions_for_rectangle (GdkRectangle* rect, - Dimensions* result); -static void checkerboard_layout_expose_items (CheckerboardLayout* self, - const gchar* caller); -void data_collection_freeze_notifications (DataCollection* self); -void data_collection_thaw_notifications (DataCollection* self); -gboolean data_view_is_visible (DataView* self); -DataObject* data_collection_get_at (DataCollection* self, - gint index); -static CheckerboardLayoutLayoutRow* checkerboard_layout_layout_row_new (gint y, - gint height, - gint num_in_row); -static CheckerboardLayoutLayoutRow* checkerboard_layout_layout_row_construct (GType object_type, - gint y, - gint height, - gint num_in_row); -static void checkerboard_layout_real_map (GtkWidget* base); -static void checkerboard_layout_set_colors (CheckerboardLayout* self, - gboolean in_focus); -void config_facade_get_selected_color (ConfigFacade* self, - gboolean in_focus, - GdkRGBA* result); -void config_facade_get_unselected_color (ConfigFacade* self, - GdkRGBA* result); -void config_facade_get_border_color (ConfigFacade* self, - GdkRGBA* result); -static void checkerboard_layout_real_size_allocate (GtkWidget* base, - GtkAllocation* allocation); -static gboolean checkerboard_layout_real_draw (GtkWidget* base, - cairo_t* ctx); -static void checkerboard_layout_draw_selection_band (CheckerboardLayout* self, - cairo_t* ctx); -static gboolean checkerboard_layout_real_query_tooltip (GtkWidget* base, - gint x, - gint y, - gboolean keyboard_mode, - GtkTooltip* tooltip); -void invalidate_transparent_background (void); -static gboolean checkerboard_layout_real_focus_in_event (GtkWidget* base, - GdkEventFocus* event); -GeeList* view_collection_get_selected (ViewCollection* self); -static gboolean checkerboard_layout_real_focus_out_event (GtkWidget* base, - GdkEventFocus* event); -static void checkerboard_layout_layout_row_finalize (CheckerboardLayoutLayoutRow * obj); -static void checkerboard_layout_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -CheckerboardItemText* -checkerboard_item_text_construct (GType object_type, - const gchar* text, - PangoAlignment alignment, - gboolean marked_up) -{ - CheckerboardItemText* self = NULL; - gchar* _tmp0_; -#line 19 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (text != NULL, NULL); -#line 19 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = (CheckerboardItemText*) g_type_create_instance (object_type); -#line 21 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = g_strdup (text); -#line 21 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (self->priv->text); -#line 21 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->text = _tmp0_; -#line 22 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->marked_up = marked_up; -#line 23 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->alignment = alignment; -#line 25 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->single_line = checkerboard_item_text_is_single_line (self); -#line 19 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return self; -#line 1007 "CheckerboardLayout.c" -} - - -CheckerboardItemText* -checkerboard_item_text_new (const gchar* text, - PangoAlignment alignment, - gboolean marked_up) -{ -#line 19 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return checkerboard_item_text_construct (TYPE_CHECKERBOARD_ITEM_TEXT, text, alignment, marked_up); -#line 1018 "CheckerboardLayout.c" -} - - -static gboolean -checkerboard_item_text_is_single_line (CheckerboardItemText* self) -{ - gboolean result = FALSE; - const gchar* _tmp0_; -#line 28 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self), FALSE); -#line 29 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->text; -#line 29 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = !string_contains_char (_tmp0_, (gunichar) '\n'); -#line 29 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 1035 "CheckerboardLayout.c" -} - - -gboolean -checkerboard_item_text_is_marked_up (CheckerboardItemText* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 32 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self), FALSE); -#line 33 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->marked_up; -#line 33 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp0_; -#line 33 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 1052 "CheckerboardLayout.c" -} - - -gboolean -checkerboard_item_text_is_set_to (CheckerboardItemText* self, - const gchar* text, - gboolean marked_up, - PangoAlignment alignment) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_; -#line 36 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self), FALSE); -#line 36 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (text != NULL, FALSE); -#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->marked_up; -#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp2_ == marked_up) { -#line 1074 "CheckerboardLayout.c" - PangoAlignment _tmp3_; -#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = self->priv->alignment; -#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _tmp3_ == alignment; -#line 1080 "CheckerboardLayout.c" - } else { -#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = FALSE; -#line 1084 "CheckerboardLayout.c" - } -#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_) { -#line 1088 "CheckerboardLayout.c" - const gchar* _tmp4_; -#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = self->priv->text; -#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = g_strcmp0 (_tmp4_, text) == 0; -#line 1094 "CheckerboardLayout.c" - } else { -#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = FALSE; -#line 1098 "CheckerboardLayout.c" - } -#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp0_; -#line 37 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 1104 "CheckerboardLayout.c" -} - - -gchar* -checkerboard_item_text_get_text (CheckerboardItemText* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 40 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self), NULL); -#line 41 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->text; -#line 41 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 41 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp1_; -#line 41 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 1124 "CheckerboardLayout.c" -} - - -gint -checkerboard_item_text_get_height (CheckerboardItemText* self) -{ - gint result = 0; - gint _tmp0_; - gint _tmp1_; -#line 44 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self), 0); -#line 45 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->height; -#line 45 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_ == 0) { -#line 46 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_text_update_height (self); -#line 1142 "CheckerboardLayout.c" - } -#line 48 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->height; -#line 48 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp1_; -#line 48 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 1150 "CheckerboardLayout.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 58 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return self ? g_object_ref (self) : NULL; -#line 1159 "CheckerboardLayout.c" -} - - -PangoLayout* -checkerboard_item_text_get_pango_layout (CheckerboardItemText* self, - gint max_width) -{ - PangoLayout* result = NULL; - PangoLayout* _tmp0_; - PangoLayout* _tmp2_; - PangoLayout* _tmp3_; -#line 51 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self), NULL); -#line 52 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->layout; -#line 52 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_ == NULL) { -#line 53 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_text_create_pango (self); -#line 1179 "CheckerboardLayout.c" - } -#line 55 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (max_width > 0) { -#line 1183 "CheckerboardLayout.c" - PangoLayout* _tmp1_; -#line 56 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->layout; -#line 56 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - pango_layout_set_width (_tmp1_, max_width * PANGO_SCALE); -#line 1189 "CheckerboardLayout.c" - } -#line 58 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->layout; -#line 58 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 58 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp3_; -#line 58 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 1199 "CheckerboardLayout.c" -} - - -void -checkerboard_item_text_clear_pango_layout (CheckerboardItemText* self) -{ -#line 61 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self)); -#line 62 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->layout); -#line 62 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->layout = NULL; -#line 1212 "CheckerboardLayout.c" -} - - -static void -checkerboard_item_text_update_height (CheckerboardItemText* self) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 65 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self)); -#line 66 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = checkerboard_item_text_one_line_height; -#line 66 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_ != 0) { -#line 1227 "CheckerboardLayout.c" - gboolean _tmp2_; -#line 66 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->single_line; -#line 66 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _tmp2_; -#line 1233 "CheckerboardLayout.c" - } else { -#line 66 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = FALSE; -#line 1237 "CheckerboardLayout.c" - } -#line 66 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_) { -#line 1241 "CheckerboardLayout.c" - gint _tmp3_; -#line 67 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = checkerboard_item_text_one_line_height; -#line 67 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->height = _tmp3_; -#line 1247 "CheckerboardLayout.c" - } else { -#line 69 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_text_create_pango (self); -#line 1251 "CheckerboardLayout.c" - } -} - - -static void -checkerboard_item_text_create_pango (CheckerboardItemText* self) -{ - AppWindow* _tmp0_; - AppWindow* _tmp1_; - PangoLayout* _tmp2_; - gboolean _tmp3_; - PangoLayout* _tmp8_; - PangoLayout* _tmp9_; - PangoAlignment _tmp10_; - gboolean _tmp11_ = FALSE; - gint _tmp12_; -#line 72 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM_TEXT (self)); -#line 74 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = app_window_get_instance (); -#line 74 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _tmp0_; -#line 74 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = gtk_widget_create_pango_layout (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), NULL); -#line 74 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->layout); -#line 74 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->layout = _tmp2_; -#line 74 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp1_); -#line 75 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = self->priv->marked_up; -#line 75 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!_tmp3_) { -#line 1286 "CheckerboardLayout.c" - PangoLayout* _tmp4_; - const gchar* _tmp5_; -#line 76 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = self->priv->layout; -#line 76 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = self->priv->text; -#line 76 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - pango_layout_set_text (_tmp4_, _tmp5_, -1); -#line 1295 "CheckerboardLayout.c" - } else { - PangoLayout* _tmp6_; - const gchar* _tmp7_; -#line 78 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = self->priv->layout; -#line 78 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = self->priv->text; -#line 78 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - pango_layout_set_markup (_tmp6_, _tmp7_, -1); -#line 1305 "CheckerboardLayout.c" - } -#line 80 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = self->priv->layout; -#line 80 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - pango_layout_set_ellipsize (_tmp8_, PANGO_ELLIPSIZE_END); -#line 81 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = self->priv->layout; -#line 81 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = self->priv->alignment; -#line 81 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - pango_layout_set_alignment (_tmp9_, _tmp10_); -#line 85 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = checkerboard_item_text_one_line_height; -#line 85 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp12_ != 0) { -#line 1321 "CheckerboardLayout.c" - gboolean _tmp13_; -#line 85 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = self->priv->single_line; -#line 85 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = _tmp13_; -#line 1327 "CheckerboardLayout.c" - } else { -#line 85 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = FALSE; -#line 1331 "CheckerboardLayout.c" - } -#line 85 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp11_) { -#line 1335 "CheckerboardLayout.c" - gint _tmp14_; -#line 86 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = checkerboard_item_text_one_line_height; -#line 86 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->height = _tmp14_; -#line 1341 "CheckerboardLayout.c" - } else { - gint width = 0; - PangoLayout* _tmp15_; - gint _tmp16_ = 0; - gint _tmp17_ = 0; - gboolean _tmp18_ = FALSE; - gint _tmp19_; -#line 89 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = self->priv->layout; -#line 89 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - pango_layout_get_pixel_size (_tmp15_, &_tmp16_, &_tmp17_); -#line 89 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - width = _tmp16_; -#line 89 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->height = _tmp17_; -#line 92 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = checkerboard_item_text_one_line_height; -#line 92 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp19_ == 0) { -#line 1361 "CheckerboardLayout.c" - gboolean _tmp20_; -#line 92 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp20_ = self->priv->single_line; -#line 92 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = _tmp20_; -#line 1367 "CheckerboardLayout.c" - } else { -#line 92 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = FALSE; -#line 1371 "CheckerboardLayout.c" - } -#line 92 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp18_) { -#line 1375 "CheckerboardLayout.c" - gint _tmp21_; -#line 93 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp21_ = self->priv->height; -#line 93 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_text_one_line_height = _tmp21_; -#line 1381 "CheckerboardLayout.c" - } - } -} - - -static void -value_checkerboard_item_text_init (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - value->data[0].v_pointer = NULL; -#line 1392 "CheckerboardLayout.c" -} - - -static void -value_checkerboard_item_text_free_value (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_text_unref (value->data[0].v_pointer); -#line 1403 "CheckerboardLayout.c" - } -} - - -static void -value_checkerboard_item_text_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (src_value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - dest_value->data[0].v_pointer = checkerboard_item_text_ref (src_value->data[0].v_pointer); -#line 1416 "CheckerboardLayout.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - dest_value->data[0].v_pointer = NULL; -#line 1420 "CheckerboardLayout.c" - } -} - - -static gpointer -value_checkerboard_item_text_peek_pointer (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return value->data[0].v_pointer; -#line 1430 "CheckerboardLayout.c" -} - - -static gchar* -value_checkerboard_item_text_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (collect_values[0].v_pointer) { -#line 1442 "CheckerboardLayout.c" - CheckerboardItemText * object; - object = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (object->parent_instance.g_class == NULL) { -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1449 "CheckerboardLayout.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1453 "CheckerboardLayout.c" - } -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - value->data[0].v_pointer = checkerboard_item_text_ref (object); -#line 1457 "CheckerboardLayout.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - value->data[0].v_pointer = NULL; -#line 1461 "CheckerboardLayout.c" - } -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return NULL; -#line 1465 "CheckerboardLayout.c" -} - - -static gchar* -value_checkerboard_item_text_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - CheckerboardItemText ** object_p; - object_p = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!object_p) { -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1481 "CheckerboardLayout.c" - } -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - *object_p = NULL; -#line 1487 "CheckerboardLayout.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - *object_p = value->data[0].v_pointer; -#line 1491 "CheckerboardLayout.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - *object_p = checkerboard_item_text_ref (value->data[0].v_pointer); -#line 1495 "CheckerboardLayout.c" - } -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return NULL; -#line 1499 "CheckerboardLayout.c" -} - - -GParamSpec* -param_spec_checkerboard_item_text (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecCheckerboardItemText* spec; -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_CHECKERBOARD_ITEM_TEXT), NULL); -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return G_PARAM_SPEC (spec); -#line 1519 "CheckerboardLayout.c" -} - - -gpointer -value_get_checkerboard_item_text (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CHECKERBOARD_ITEM_TEXT), NULL); -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return value->data[0].v_pointer; -#line 1530 "CheckerboardLayout.c" -} - - -void -value_set_checkerboard_item_text (GValue* value, - gpointer v_object) -{ - CheckerboardItemText * old; -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CHECKERBOARD_ITEM_TEXT)); -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_CHECKERBOARD_ITEM_TEXT)); -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - value->data[0].v_pointer = v_object; -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_text_ref (value->data[0].v_pointer); -#line 1553 "CheckerboardLayout.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - value->data[0].v_pointer = NULL; -#line 1557 "CheckerboardLayout.c" - } -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_text_unref (old); -#line 1563 "CheckerboardLayout.c" - } -} - - -void -value_take_checkerboard_item_text (GValue* value, - gpointer v_object) -{ - CheckerboardItemText * old; -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CHECKERBOARD_ITEM_TEXT)); -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_CHECKERBOARD_ITEM_TEXT)); -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - value->data[0].v_pointer = v_object; -#line 1585 "CheckerboardLayout.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - value->data[0].v_pointer = NULL; -#line 1589 "CheckerboardLayout.c" - } -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_text_unref (old); -#line 1595 "CheckerboardLayout.c" - } -} - - -static void -checkerboard_item_text_class_init (CheckerboardItemTextClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_text_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((CheckerboardItemTextClass *) klass)->finalize = checkerboard_item_text_finalize; -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_type_class_add_private (klass, sizeof (CheckerboardItemTextPrivate)); -#line 1609 "CheckerboardLayout.c" -} - - -static void -checkerboard_item_text_instance_init (CheckerboardItemText * self) -{ -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv = CHECKERBOARD_ITEM_TEXT_GET_PRIVATE (self); -#line 13 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->layout = NULL; -#line 14 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->single_line = TRUE; -#line 15 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->height = 0; -#line 17 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - memset (&self->allocation, 0, sizeof (GdkRectangle)); -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->ref_count = 1; -#line 1628 "CheckerboardLayout.c" -} - - -static void -checkerboard_item_text_finalize (CheckerboardItemText * obj) -{ - CheckerboardItemText * self; -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CHECKERBOARD_ITEM_TEXT, CheckerboardItemText); -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_handlers_destroy (self); -#line 10 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (self->priv->text); -#line 13 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->layout); -#line 1644 "CheckerboardLayout.c" -} - - -GType -checkerboard_item_text_get_type (void) -{ - static volatile gsize checkerboard_item_text_type_id__volatile = 0; - if (g_once_init_enter (&checkerboard_item_text_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_checkerboard_item_text_init, value_checkerboard_item_text_free_value, value_checkerboard_item_text_copy_value, value_checkerboard_item_text_peek_pointer, "p", value_checkerboard_item_text_collect_value, "p", value_checkerboard_item_text_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (CheckerboardItemTextClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) checkerboard_item_text_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CheckerboardItemText), 0, (GInstanceInitFunc) checkerboard_item_text_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType checkerboard_item_text_type_id; - checkerboard_item_text_type_id = g_type_register_fundamental (g_type_fundamental_next (), "CheckerboardItemText", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&checkerboard_item_text_type_id__volatile, checkerboard_item_text_type_id); - } - return checkerboard_item_text_type_id__volatile; -} - - -gpointer -checkerboard_item_text_ref (gpointer instance) -{ - CheckerboardItemText * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_atomic_int_inc (&self->ref_count); -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return instance; -#line 1673 "CheckerboardLayout.c" -} - - -void -checkerboard_item_text_unref (gpointer instance) -{ - CheckerboardItemText * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - CHECKERBOARD_ITEM_TEXT_GET_CLASS (self)->finalize (self); -#line 7 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1688 "CheckerboardLayout.c" - } -} - - -static gchar* -string_replace (const gchar* self, - const gchar* old, - const gchar* replacement) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 1712 "CheckerboardLayout.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 1716 "CheckerboardLayout.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 1722 "CheckerboardLayout.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 1726 "CheckerboardLayout.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1730 "CheckerboardLayout.c" - gchar* _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = g_strdup (self); -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1738 "CheckerboardLayout.c" - } - { - GRegex* regex = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GRegex* _tmp5_; - GRegex* _tmp6_; - gchar* _tmp7_ = NULL; - GRegex* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_regex_escape_string (old, -1); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp5_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp4_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - regex = _tmp6_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 1766 "CheckerboardLayout.c" - goto __catch254_g_regex_error; - } -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 1775 "CheckerboardLayout.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = regex; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp9_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 1789 "CheckerboardLayout.c" - goto __catch254_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 1800 "CheckerboardLayout.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = _tmp7_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = NULL; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp10_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp7_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1814 "CheckerboardLayout.c" - } - goto __finally254; - __catch254_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 1828 "CheckerboardLayout.c" - } - __finally254: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 1839 "CheckerboardLayout.c" - } -} - - -CheckerboardItem* -checkerboard_item_construct (GType object_type, - ThumbnailSource* source, - Dimensions* initial_pixbuf_dim, - const gchar* title, - const gchar* comment, - gboolean marked_up, - PangoAlignment alignment) -{ - CheckerboardItem * self = NULL; - Dimensions _tmp0_; - CheckerboardItemText* _tmp1_; -#line 141 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), NULL); -#line 141 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (initial_pixbuf_dim != NULL, NULL); -#line 141 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (title != NULL, NULL); -#line 143 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = (CheckerboardItem*) thumbnail_view_construct (object_type, source); -#line 145 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = *initial_pixbuf_dim; -#line 145 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->pixbuf_dim = _tmp0_; -#line 146 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = checkerboard_item_text_new (title, alignment, marked_up); -#line 146 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_item_text_unref0 (self->priv->title); -#line 146 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->title = _tmp1_; -#line 152 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (comment != NULL) { -#line 1876 "CheckerboardLayout.c" - gchar* _tmp2_; - gchar* _tmp3_; - CheckerboardItemText* _tmp4_; -#line 153 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = string_replace (comment, "\n", " "); -#line 153 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = _tmp2_; -#line 153 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = checkerboard_item_text_new (_tmp3_, alignment, marked_up); -#line 153 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_item_text_unref0 (self->priv->comment); -#line 153 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->comment = _tmp4_; -#line 153 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp3_); -#line 1892 "CheckerboardLayout.c" - } -#line 141 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return self; -#line 1896 "CheckerboardLayout.c" -} - - -static gchar* -checkerboard_item_real_get_name (DataObject* base) -{ - CheckerboardItem * self; - gchar* result = NULL; - gchar* _tmp0_ = NULL; - CheckerboardItemText* _tmp1_; -#line 163 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->title; -#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_ != NULL) { -#line 1913 "CheckerboardLayout.c" - CheckerboardItemText* _tmp2_; - gchar* _tmp3_; -#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->title; -#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = checkerboard_item_text_get_text (_tmp2_); -#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp0_); -#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _tmp3_; -#line 1924 "CheckerboardLayout.c" - } else { - gchar* _tmp4_; -#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = DATA_OBJECT_CLASS (checkerboard_item_parent_class)->get_name (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_VIEW, ThumbnailView), TYPE_DATA_OBJECT, DataObject)); -#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp0_); -#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _tmp4_; -#line 1933 "CheckerboardLayout.c" - } -#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp0_; -#line 164 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 1939 "CheckerboardLayout.c" -} - - -gchar* -checkerboard_item_get_title (CheckerboardItem* self) -{ - gchar* result = NULL; - gchar* _tmp0_ = NULL; - CheckerboardItemText* _tmp1_; -#line 167 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL); -#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->title; -#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_ != NULL) { -#line 1955 "CheckerboardLayout.c" - CheckerboardItemText* _tmp2_; - gchar* _tmp3_; -#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->title; -#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = checkerboard_item_text_get_text (_tmp2_); -#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp0_); -#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _tmp3_; -#line 1966 "CheckerboardLayout.c" - } else { - gchar* _tmp4_; -#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = g_strdup (""); -#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp0_); -#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _tmp4_; -#line 1975 "CheckerboardLayout.c" - } -#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp0_; -#line 168 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 1981 "CheckerboardLayout.c" -} - - -gchar* -checkerboard_item_get_comment (CheckerboardItem* self) -{ - gchar* result = NULL; - gchar* _tmp0_ = NULL; - CheckerboardItemText* _tmp1_; -#line 171 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL); -#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->comment; -#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_ != NULL) { -#line 1997 "CheckerboardLayout.c" - CheckerboardItemText* _tmp2_; - gchar* _tmp3_; -#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->comment; -#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = checkerboard_item_text_get_text (_tmp2_); -#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp0_); -#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _tmp3_; -#line 2008 "CheckerboardLayout.c" - } else { - gchar* _tmp4_; -#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = g_strdup (""); -#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp0_); -#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _tmp4_; -#line 2017 "CheckerboardLayout.c" - } -#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp0_; -#line 172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 2023 "CheckerboardLayout.c" -} - - -void -checkerboard_item_set_title (CheckerboardItem* self, - const gchar* text, - gboolean marked_up, - PangoAlignment alignment) -{ - gboolean _tmp0_ = FALSE; - CheckerboardItemText* _tmp1_; - CheckerboardItemText* _tmp3_; - gboolean _tmp4_; -#line 175 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 175 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (text != NULL); -#line 177 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->title; -#line 177 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_ != NULL) { -#line 2045 "CheckerboardLayout.c" - CheckerboardItemText* _tmp2_; -#line 177 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->title; -#line 177 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = checkerboard_item_text_is_set_to (_tmp2_, text, marked_up, alignment); -#line 2051 "CheckerboardLayout.c" - } else { -#line 177 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = FALSE; -#line 2055 "CheckerboardLayout.c" - } -#line 177 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_) { -#line 178 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 2061 "CheckerboardLayout.c" - } -#line 180 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = checkerboard_item_text_new (text, alignment, marked_up); -#line 180 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_item_text_unref0 (self->priv->title); -#line 180 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->title = _tmp3_; -#line 182 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = self->priv->title_visible; -#line 182 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp4_) { -#line 183 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_recalc_size (self, "set_title"); -#line 184 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 2077 "CheckerboardLayout.c" - } -} - - -void -checkerboard_item_translate_coordinates (CheckerboardItem* self, - gint* x, - gint* y) -{ - GdkRectangle _tmp0_; - gint _tmp1_; - GdkRectangle _tmp2_; - gint _tmp3_; -#line 188 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 189 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->allocation; -#line 189 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _tmp0_.x; -#line 189 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - *x = (*x) - (_tmp1_ + CHECKERBOARD_ITEM_FRAME_WIDTH); -#line 190 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->allocation; -#line 190 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = _tmp2_.y; -#line 190 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - *y = (*y) - (_tmp3_ + CHECKERBOARD_ITEM_FRAME_WIDTH); -#line 2105 "CheckerboardLayout.c" -} - - -void -checkerboard_item_clear_title (CheckerboardItem* self) -{ - CheckerboardItemText* _tmp0_; - gboolean _tmp1_; -#line 193 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 194 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->title; -#line 194 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_ == NULL) { -#line 195 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 2122 "CheckerboardLayout.c" - } -#line 197 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_item_text_unref0 (self->priv->title); -#line 197 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->title = NULL; -#line 199 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->title_visible; -#line 199 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_) { -#line 200 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_recalc_size (self, "clear_title"); -#line 201 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 2136 "CheckerboardLayout.c" - } -} - - -static void -checkerboard_item_set_title_visible (CheckerboardItem* self, - gboolean visible) -{ - gboolean _tmp0_; -#line 205 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 206 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->title_visible; -#line 206 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_ == visible) { -#line 207 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 2154 "CheckerboardLayout.c" - } -#line 209 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->title_visible = visible; -#line 211 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_recalc_size (self, "set_title_visible"); -#line 212 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 2162 "CheckerboardLayout.c" -} - - -void -checkerboard_item_set_comment (CheckerboardItem* self, - const gchar* text, - gboolean marked_up, - PangoAlignment alignment) -{ - gboolean _tmp0_ = FALSE; - CheckerboardItemText* _tmp1_; - gchar* _tmp3_; - gchar* _tmp4_; - CheckerboardItemText* _tmp5_; - gboolean _tmp6_; -#line 215 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 215 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (text != NULL); -#line 217 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->comment; -#line 217 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_ != NULL) { -#line 2186 "CheckerboardLayout.c" - CheckerboardItemText* _tmp2_; -#line 217 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->comment; -#line 217 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = checkerboard_item_text_is_set_to (_tmp2_, text, marked_up, alignment); -#line 2192 "CheckerboardLayout.c" - } else { -#line 217 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = FALSE; -#line 2196 "CheckerboardLayout.c" - } -#line 217 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_) { -#line 218 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 2202 "CheckerboardLayout.c" - } -#line 220 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = string_replace (text, "\n", " "); -#line 220 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = _tmp3_; -#line 220 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = checkerboard_item_text_new (_tmp4_, alignment, marked_up); -#line 220 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_item_text_unref0 (self->priv->comment); -#line 220 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->comment = _tmp5_; -#line 220 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp4_); -#line 222 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = self->priv->comment_visible; -#line 222 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp6_) { -#line 223 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_recalc_size (self, "set_comment"); -#line 224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 2224 "CheckerboardLayout.c" - } -} - - -void -checkerboard_item_clear_comment (CheckerboardItem* self) -{ - CheckerboardItemText* _tmp0_; - gboolean _tmp1_; -#line 228 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 229 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->comment; -#line 229 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_ == NULL) { -#line 230 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 2242 "CheckerboardLayout.c" - } -#line 232 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_item_text_unref0 (self->priv->comment); -#line 232 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->comment = NULL; -#line 234 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->comment_visible; -#line 234 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_) { -#line 235 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_recalc_size (self, "clear_comment"); -#line 236 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 2256 "CheckerboardLayout.c" - } -} - - -static void -checkerboard_item_set_comment_visible (CheckerboardItem* self, - gboolean visible) -{ - gboolean _tmp0_; -#line 240 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 241 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->comment_visible; -#line 241 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_ == visible) { -#line 242 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 2274 "CheckerboardLayout.c" - } -#line 244 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->comment_visible = visible; -#line 246 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_recalc_size (self, "set_comment_visible"); -#line 247 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 2282 "CheckerboardLayout.c" -} - - -void -checkerboard_item_set_tags (CheckerboardItem* self, - GeeCollection* tags, - PangoAlignment alignment) -{ - gboolean _tmp0_ = FALSE; - gchar* text = NULL; - gboolean _tmp3_; - gboolean _tmp9_ = FALSE; - CheckerboardItemText* _tmp10_; - const gchar* _tmp13_; - CheckerboardItemText* _tmp14_; - gboolean _tmp15_; -#line 250 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 250 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail ((tags == NULL) || GEE_IS_COLLECTION (tags)); -#line 252 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (tags != NULL) { -#line 2305 "CheckerboardLayout.c" - gint _tmp1_; - gint _tmp2_; -#line 252 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = gee_collection_get_size (tags); -#line 252 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _tmp1_; -#line 252 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _tmp2_ > 0; -#line 2314 "CheckerboardLayout.c" - } else { -#line 252 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = FALSE; -#line 2318 "CheckerboardLayout.c" - } -#line 252 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_set_has_tags (self, _tmp0_); -#line 253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->tag_alignment = alignment; -#line 255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = self->priv->_has_tags; -#line 255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp3_) { -#line 2328 "CheckerboardLayout.c" - GeeCollection* _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp6_; - gchar* _tmp7_; -#line 256 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = _g_object_ref0 (tags); -#line 256 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->tags); -#line 256 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->tags = _tmp4_; -#line 257 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = tag_make_user_visible_tag_list (tags); -#line 257 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->user_visible_tag_list); -#line 257 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->user_visible_tag_list = _tmp5_; -#line 258 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = self->priv->user_visible_tag_list; -#line 258 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = tag_make_tag_markup_string (_tmp6_, -1); -#line 258 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (text); -#line 258 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - text = _tmp7_; -#line 2353 "CheckerboardLayout.c" - } else { - gchar* _tmp8_; -#line 260 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = g_strdup ("."); -#line 260 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (text); -#line 260 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - text = _tmp8_; -#line 2362 "CheckerboardLayout.c" - } -#line 263 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = self->priv->subtitle; -#line 263 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp10_ != NULL) { -#line 2368 "CheckerboardLayout.c" - CheckerboardItemText* _tmp11_; - const gchar* _tmp12_; -#line 263 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = self->priv->subtitle; -#line 263 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = text; -#line 263 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = checkerboard_item_text_is_set_to (_tmp11_, _tmp12_, TRUE, alignment); -#line 2377 "CheckerboardLayout.c" - } else { -#line 263 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = FALSE; -#line 2381 "CheckerboardLayout.c" - } -#line 263 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp9_) { -#line 264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (text); -#line 264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 2389 "CheckerboardLayout.c" - } -#line 265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = text; -#line 265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = checkerboard_item_text_new (_tmp13_, alignment, TRUE); -#line 265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_item_text_unref0 (self->priv->subtitle); -#line 265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->subtitle = _tmp14_; -#line 267 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = self->priv->subtitle_visible; -#line 267 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp15_) { -#line 268 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_recalc_size (self, "set_subtitle"); -#line 269 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 2407 "CheckerboardLayout.c" - } -#line 250 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (text); -#line 2411 "CheckerboardLayout.c" -} - - -void -checkerboard_item_clear_tags (CheckerboardItem* self) -{ -#line 273 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 274 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_clear_subtitle (self); -#line 275 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_set_has_tags (self, FALSE); -#line 276 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->user_visible_tag_list); -#line 276 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->user_visible_tag_list = NULL; -#line 2428 "CheckerboardLayout.c" -} - - -void -checkerboard_item_highlight_user_visible_tag (CheckerboardItem* self, - gint index) -{ - GeeList* _tmp0_; - gchar* text = NULL; - GeeList* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; - PangoAlignment _tmp4_; - CheckerboardItemText* _tmp5_; - gboolean _tmp6_; -#line 279 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 279 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->user_visible_tag_list; -#line 279 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _vala_return_if_fail (_tmp0_ != NULL, "user_visible_tag_list != null"); -#line 281 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->user_visible_tag_list; -#line 281 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = tag_make_tag_markup_string (_tmp1_, index); -#line 281 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - text = _tmp2_; -#line 282 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = text; -#line 282 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = self->priv->tag_alignment; -#line 282 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = checkerboard_item_text_new (_tmp3_, _tmp4_, TRUE); -#line 282 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_item_text_unref0 (self->priv->subtitle); -#line 282 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->subtitle = _tmp5_; -#line 284 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = self->priv->subtitle_visible; -#line 284 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp6_) { -#line 285 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 2472 "CheckerboardLayout.c" - } -#line 279 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (text); -#line 2476 "CheckerboardLayout.c" -} - - -Tag* -checkerboard_item_get_user_visible_tag (CheckerboardItem* self, - gint index) -{ - Tag* result = NULL; - GeeList* _tmp0_; - gint _tmp1_; - gint _tmp2_; - GeeList* _tmp3_; - gpointer _tmp4_; -#line 288 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL); -#line 288 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->user_visible_tag_list; -#line 288 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 288 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _tmp1_; -#line 288 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _vala_return_val_if_fail ((index >= 0) && (index < _tmp2_), "index >= 0 && index < user_visible_tag_list.size", NULL); -#line 290 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = self->priv->user_visible_tag_list; -#line 290 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = gee_list_get (_tmp3_, index); -#line 290 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = (Tag*) _tmp4_; -#line 290 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 2508 "CheckerboardLayout.c" -} - - -PangoLayout* -checkerboard_item_get_tag_list_layout (CheckerboardItem* self) -{ - PangoLayout* result = NULL; - PangoLayout* _tmp0_ = NULL; - gboolean _tmp1_; -#line 293 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL); -#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->_has_tags; -#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_) { -#line 2524 "CheckerboardLayout.c" - CheckerboardItemText* _tmp2_; - PangoLayout* _tmp3_; -#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->subtitle; -#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = checkerboard_item_text_get_pango_layout (_tmp2_, 0); -#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp0_); -#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _tmp3_; -#line 2535 "CheckerboardLayout.c" - } else { -#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp0_); -#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = NULL; -#line 2541 "CheckerboardLayout.c" - } -#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp0_; -#line 294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 2547 "CheckerboardLayout.c" -} - - -void -checkerboard_item_get_subtitle_allocation (CheckerboardItem* self, - GdkRectangle* result) -{ - CheckerboardItemText* _tmp0_; - GdkRectangle _tmp1_; -#line 297 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 298 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->subtitle; -#line 298 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _tmp0_->allocation; -#line 298 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - *result = _tmp1_; -#line 298 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 2567 "CheckerboardLayout.c" -} - - -gchar* -checkerboard_item_get_subtitle (CheckerboardItem* self) -{ - gchar* result = NULL; - gchar* _tmp0_ = NULL; - CheckerboardItemText* _tmp1_; -#line 301 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL); -#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->subtitle; -#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_ != NULL) { -#line 2583 "CheckerboardLayout.c" - CheckerboardItemText* _tmp2_; - gchar* _tmp3_; -#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->subtitle; -#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = checkerboard_item_text_get_text (_tmp2_); -#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp0_); -#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _tmp3_; -#line 2594 "CheckerboardLayout.c" - } else { - gchar* _tmp4_; -#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = g_strdup (""); -#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp0_); -#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _tmp4_; -#line 2603 "CheckerboardLayout.c" - } -#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp0_; -#line 302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 2609 "CheckerboardLayout.c" -} - - -void -checkerboard_item_set_subtitle (CheckerboardItem* self, - const gchar* text, - gboolean marked_up, - PangoAlignment alignment) -{ - gboolean _tmp0_ = FALSE; - CheckerboardItemText* _tmp1_; - CheckerboardItemText* _tmp3_; - gboolean _tmp4_; -#line 305 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 305 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (text != NULL); -#line 307 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->subtitle; -#line 307 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_ != NULL) { -#line 2631 "CheckerboardLayout.c" - CheckerboardItemText* _tmp2_; -#line 307 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->subtitle; -#line 307 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = checkerboard_item_text_is_set_to (_tmp2_, text, marked_up, alignment); -#line 2637 "CheckerboardLayout.c" - } else { -#line 307 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = FALSE; -#line 2641 "CheckerboardLayout.c" - } -#line 307 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_) { -#line 308 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 2647 "CheckerboardLayout.c" - } -#line 310 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = checkerboard_item_text_new (text, alignment, marked_up); -#line 310 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_item_text_unref0 (self->priv->subtitle); -#line 310 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->subtitle = _tmp3_; -#line 312 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = self->priv->subtitle_visible; -#line 312 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp4_) { -#line 313 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_recalc_size (self, "set_subtitle"); -#line 314 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 2663 "CheckerboardLayout.c" - } -} - - -void -checkerboard_item_clear_subtitle (CheckerboardItem* self) -{ - CheckerboardItemText* _tmp0_; - gboolean _tmp1_; -#line 318 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 319 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->subtitle; -#line 319 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_ == NULL) { -#line 320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 2681 "CheckerboardLayout.c" - } -#line 322 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_item_text_unref0 (self->priv->subtitle); -#line 322 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->subtitle = NULL; -#line 324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->subtitle_visible; -#line 324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_) { -#line 325 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_recalc_size (self, "clear_subtitle"); -#line 326 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 2695 "CheckerboardLayout.c" - } -} - - -static void -checkerboard_item_set_subtitle_visible (CheckerboardItem* self, - gboolean visible) -{ - gboolean _tmp0_; -#line 330 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 331 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->subtitle_visible; -#line 331 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_ == visible) { -#line 332 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 2713 "CheckerboardLayout.c" - } -#line 334 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->subtitle_visible = visible; -#line 336 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_recalc_size (self, "set_subtitle_visible"); -#line 337 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 2721 "CheckerboardLayout.c" -} - - -void -checkerboard_item_set_is_cursor (CheckerboardItem* self, - gboolean is_cursor) -{ -#line 340 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 341 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->is_cursor = is_cursor; -#line 2733 "CheckerboardLayout.c" -} - - -gboolean -checkerboard_item_get_is_cursor (CheckerboardItem* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 344 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), FALSE); -#line 345 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->is_cursor; -#line 345 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp0_; -#line 345 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 2750 "CheckerboardLayout.c" -} - - -static void -_vala_GValue_free (GValue* self) -{ -#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_value_unset (self); -#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_free (self); -#line 2761 "CheckerboardLayout.c" -} - - -static void -checkerboard_item_real_notify_membership_changed (DataObject* base, - DataCollection* collection) -{ - CheckerboardItem * self; - gboolean title_visible = FALSE; - GValue* _tmp0_ = NULL; - GValue _tmp1_ = {0}; - gboolean _tmp2_; - gboolean comment_visible = FALSE; - GValue* _tmp3_ = NULL; - GValue _tmp4_ = {0}; - gboolean _tmp5_; - gboolean subtitle_visible = FALSE; - GValue* _tmp6_ = NULL; - GValue _tmp7_ = {0}; - gboolean _tmp8_; - gboolean altered = FALSE; - gboolean _tmp9_; - gboolean _tmp10_; - gboolean _tmp12_; - gboolean _tmp13_; - gboolean _tmp15_; - gboolean _tmp16_; - gboolean _tmp18_ = FALSE; - gboolean _tmp19_; -#line 348 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 348 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail ((collection == NULL) || IS_DATA_COLLECTION (collection)); -#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = g_new0 (GValue, 1); -#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_value_init (_tmp0_, G_TYPE_BOOLEAN); -#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_value_set_boolean (_tmp0_, TRUE); -#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_object_get_collection_property (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), CHECKERBOARD_ITEM_PROP_SHOW_TITLES, _tmp0_, &_tmp1_); -#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = g_value_get_boolean (&_tmp1_); -#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - __vala_GValue_free0 (_tmp0_); -#line 349 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - title_visible = _tmp2_; -#line 350 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = g_new0 (GValue, 1); -#line 350 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_value_init (_tmp3_, G_TYPE_BOOLEAN); -#line 350 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_value_set_boolean (_tmp3_, TRUE); -#line 350 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_object_get_collection_property (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), CHECKERBOARD_ITEM_PROP_SHOW_COMMENTS, _tmp3_, &_tmp4_); -#line 350 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = g_value_get_boolean (&_tmp4_); -#line 350 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - __vala_GValue_free0 (_tmp3_); -#line 350 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - comment_visible = _tmp5_; -#line 351 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = g_new0 (GValue, 1); -#line 351 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_value_init (_tmp6_, G_TYPE_BOOLEAN); -#line 351 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_value_set_boolean (_tmp6_, FALSE); -#line 351 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_object_get_collection_property (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES, _tmp6_, &_tmp7_); -#line 351 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = g_value_get_boolean (&_tmp7_); -#line 351 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - __vala_GValue_free0 (_tmp6_); -#line 351 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - subtitle_visible = _tmp8_; -#line 353 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - altered = FALSE; -#line 354 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = self->priv->title_visible; -#line 354 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = title_visible; -#line 354 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp9_ != _tmp10_) { -#line 2845 "CheckerboardLayout.c" - gboolean _tmp11_; -#line 355 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = title_visible; -#line 355 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->title_visible = _tmp11_; -#line 356 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - altered = TRUE; -#line 2853 "CheckerboardLayout.c" - } -#line 359 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = self->priv->comment_visible; -#line 359 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = comment_visible; -#line 359 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp12_ != _tmp13_) { -#line 2861 "CheckerboardLayout.c" - gboolean _tmp14_; -#line 360 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = comment_visible; -#line 360 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->comment_visible = _tmp14_; -#line 361 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - altered = TRUE; -#line 2869 "CheckerboardLayout.c" - } -#line 364 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = self->priv->subtitle_visible; -#line 364 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = subtitle_visible; -#line 364 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp15_ != _tmp16_) { -#line 2877 "CheckerboardLayout.c" - gboolean _tmp17_; -#line 365 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp17_ = subtitle_visible; -#line 365 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->subtitle_visible = _tmp17_; -#line 366 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - altered = TRUE; -#line 2885 "CheckerboardLayout.c" - } -#line 369 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = altered; -#line 369 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp19_) { -#line 369 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = TRUE; -#line 2893 "CheckerboardLayout.c" - } else { -#line 369 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = !dimensions_has_area (&self->requisition); -#line 2897 "CheckerboardLayout.c" - } -#line 369 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp18_) { -#line 370 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_recalc_size (self, "notify_membership_changed"); -#line 371 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 2905 "CheckerboardLayout.c" - } -#line 374 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - DATA_OBJECT_CLASS (checkerboard_item_parent_class)->notify_membership_changed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_VIEW, ThumbnailView), TYPE_DATA_OBJECT, DataObject), collection); -#line 2909 "CheckerboardLayout.c" -} - - -static void -checkerboard_item_real_notify_collection_property_set (DataObject* base, - const gchar* name, - GValue* old, - GValue* val) -{ - CheckerboardItem * self; - const gchar* _tmp0_; - GQuark _tmp2_ = 0U; - GValue _tmp6_; -#line 377 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 377 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (name != NULL); -#line 377 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (val != NULL); -#line 378 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = name; -#line 378 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_); -#line 378 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp2_ == g_quark_from_string (CHECKERBOARD_ITEM_PROP_SHOW_TITLES)) { -#line 378 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - switch (0) { -#line 2937 "CheckerboardLayout.c" - default: - { - GValue _tmp3_; -#line 380 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = *val; -#line 380 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_set_title_visible (self, g_value_get_boolean (&_tmp3_)); -#line 381 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 2947 "CheckerboardLayout.c" - } - } - } else if (_tmp2_ == g_quark_from_string (CHECKERBOARD_ITEM_PROP_SHOW_COMMENTS)) { -#line 378 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - switch (0) { -#line 2953 "CheckerboardLayout.c" - default: - { - GValue _tmp4_; -#line 384 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = *val; -#line 384 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_set_comment_visible (self, g_value_get_boolean (&_tmp4_)); -#line 385 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 2963 "CheckerboardLayout.c" - } - } - } else if (_tmp2_ == g_quark_from_string (CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES)) { -#line 378 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - switch (0) { -#line 2969 "CheckerboardLayout.c" - default: - { - GValue _tmp5_; -#line 388 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = *val; -#line 388 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_set_subtitle_visible (self, g_value_get_boolean (&_tmp5_)); -#line 389 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 2979 "CheckerboardLayout.c" - } - } - } -#line 392 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = *val; -#line 392 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - DATA_OBJECT_CLASS (checkerboard_item_parent_class)->notify_collection_property_set (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_VIEW, ThumbnailView), TYPE_DATA_OBJECT, DataObject), name, old, &_tmp6_); -#line 2987 "CheckerboardLayout.c" -} - - -gint -checkerboard_item_get_alignment_point (CheckerboardItem* self) -{ - gint result = 0; - Dimensions _tmp0_; - gint _tmp1_; -#line 398 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), 0); -#line 399 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->pixbuf_dim; -#line 399 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _tmp0_.height; -#line 399 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = (CHECKERBOARD_ITEM_FRAME_WIDTH + CHECKERBOARD_ITEM_BORDER_WIDTH) + _tmp1_; -#line 399 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 3007 "CheckerboardLayout.c" -} - - -static void -checkerboard_item_real_exposed (CheckerboardItem* self) -{ -#line 403 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->exposure = TRUE; -#line 3016 "CheckerboardLayout.c" -} - - -void -checkerboard_item_exposed (CheckerboardItem* self) -{ -#line 402 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 402 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - CHECKERBOARD_ITEM_GET_CLASS (self)->exposed (self); -#line 3027 "CheckerboardLayout.c" -} - - -static void -checkerboard_item_real_unexposed (CheckerboardItem* self) -{ - CheckerboardItemText* _tmp0_; - CheckerboardItemText* _tmp2_; - CheckerboardItemText* _tmp4_; -#line 407 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->exposure = FALSE; -#line 409 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->title; -#line 409 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_ != NULL) { -#line 3043 "CheckerboardLayout.c" - CheckerboardItemText* _tmp1_; -#line 410 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->title; -#line 410 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_text_clear_pango_layout (_tmp1_); -#line 3049 "CheckerboardLayout.c" - } -#line 412 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->comment; -#line 412 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp2_ != NULL) { -#line 3055 "CheckerboardLayout.c" - CheckerboardItemText* _tmp3_; -#line 413 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = self->priv->comment; -#line 413 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_text_clear_pango_layout (_tmp3_); -#line 3061 "CheckerboardLayout.c" - } -#line 415 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = self->priv->subtitle; -#line 415 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp4_ != NULL) { -#line 3067 "CheckerboardLayout.c" - CheckerboardItemText* _tmp5_; -#line 416 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = self->priv->subtitle; -#line 416 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_text_clear_pango_layout (_tmp5_); -#line 3073 "CheckerboardLayout.c" - } -} - - -void -checkerboard_item_unexposed (CheckerboardItem* self) -{ -#line 406 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 406 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - CHECKERBOARD_ITEM_GET_CLASS (self)->unexposed (self); -#line 3085 "CheckerboardLayout.c" -} - - -static gboolean -checkerboard_item_real_is_exposed (CheckerboardItem* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 420 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->exposure; -#line 420 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp0_; -#line 420 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 3100 "CheckerboardLayout.c" -} - - -gboolean -checkerboard_item_is_exposed (CheckerboardItem* self) -{ -#line 419 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), FALSE); -#line 419 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return CHECKERBOARD_ITEM_GET_CLASS (self)->is_exposed (self); -#line 3111 "CheckerboardLayout.c" -} - - -gboolean -checkerboard_item_has_image (CheckerboardItem* self) -{ - gboolean result = FALSE; - GdkPixbuf* _tmp0_; -#line 423 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), FALSE); -#line 424 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->pixbuf; -#line 424 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp0_ != NULL; -#line 424 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 3128 "CheckerboardLayout.c" -} - - -GdkPixbuf* -checkerboard_item_get_image (CheckerboardItem* self) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; -#line 427 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL); -#line 428 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->pixbuf; -#line 428 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 428 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp1_; -#line 428 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 3148 "CheckerboardLayout.c" -} - - -void -checkerboard_item_set_image (CheckerboardItem* self, - GdkPixbuf* pixbuf) -{ - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - Dimensions _tmp2_ = {0}; -#line 431 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 431 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _g_object_ref0 (pixbuf); -#line 432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->pixbuf); -#line 432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->pixbuf = _tmp0_; -#line 433 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _g_object_ref0 (pixbuf); -#line 433 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->display_pixbuf); -#line 433 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->display_pixbuf = _tmp1_; -#line 434 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - dimensions_for_pixbuf (pixbuf, &_tmp2_); -#line 434 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->pixbuf_dim = _tmp2_; -#line 436 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_recalc_size (self, "set_image"); -#line 437 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 3183 "CheckerboardLayout.c" -} - - -void -checkerboard_item_clear_image (CheckerboardItem* self, - Dimensions* dim) -{ - gboolean had_image = FALSE; - GdkPixbuf* _tmp0_; - Dimensions _tmp1_; - gboolean _tmp2_; -#line 440 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 440 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (dim != NULL); -#line 441 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->pixbuf; -#line 441 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - had_image = _tmp0_ != NULL; -#line 443 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->pixbuf); -#line 443 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->pixbuf = NULL; -#line 444 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->display_pixbuf); -#line 444 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->display_pixbuf = NULL; -#line 445 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = *dim; -#line 445 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->pixbuf_dim = _tmp1_; -#line 447 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_recalc_size (self, "clear_image"); -#line 449 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = had_image; -#line 449 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp2_) { -#line 450 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 3223 "CheckerboardLayout.c" - } -} - - -gint -checkerboard_item_get_max_width (gint scale) -{ - gint result = 0; -#line 456 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = (CHECKERBOARD_ITEM_FRAME_WIDTH * 2) + scale; -#line 456 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 3236 "CheckerboardLayout.c" -} - - -static void -checkerboard_item_recalc_size (CheckerboardItem* self, - const gchar* reason) -{ - Dimensions old_requisition = {0}; - Dimensions _tmp0_; - gint _tmp1_ = 0; - gboolean _tmp2_ = FALSE; - CheckerboardItemText* _tmp3_; - gint title_height = 0; - gint _tmp6_ = 0; - gboolean _tmp7_ = FALSE; - CheckerboardItemText* _tmp8_; - gint comment_height = 0; - gint _tmp11_ = 0; - gboolean _tmp12_ = FALSE; - CheckerboardItemText* _tmp13_; - gint subtitle_height = 0; - Dimensions _tmp16_; - gint _tmp17_; - Dimensions _tmp18_; - gint _tmp19_; - gint _tmp20_; - gint _tmp21_; - gint _tmp22_; - Dimensions _tmp23_; -#line 459 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 459 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (reason != NULL); -#line 460 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->requisition; -#line 460 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - old_requisition = _tmp0_; -#line 463 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = self->priv->title; -#line 463 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp3_ != NULL) { -#line 3278 "CheckerboardLayout.c" - gboolean _tmp4_; -#line 463 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = self->priv->title_visible; -#line 463 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _tmp4_; -#line 3284 "CheckerboardLayout.c" - } else { -#line 463 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = FALSE; -#line 3288 "CheckerboardLayout.c" - } -#line 463 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp2_) { -#line 3292 "CheckerboardLayout.c" - CheckerboardItemText* _tmp5_; -#line 464 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = self->priv->title; -#line 464 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = checkerboard_item_text_get_height (_tmp5_) + CHECKERBOARD_ITEM_LABEL_PADDING; -#line 3298 "CheckerboardLayout.c" - } else { -#line 464 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = 0; -#line 3302 "CheckerboardLayout.c" - } -#line 463 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - title_height = _tmp1_; -#line 465 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = self->priv->comment; -#line 465 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp8_ != NULL) { -#line 3310 "CheckerboardLayout.c" - gboolean _tmp9_; -#line 465 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = self->priv->comment_visible; -#line 465 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = _tmp9_; -#line 3316 "CheckerboardLayout.c" - } else { -#line 465 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = FALSE; -#line 3320 "CheckerboardLayout.c" - } -#line 465 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp7_) { -#line 3324 "CheckerboardLayout.c" - CheckerboardItemText* _tmp10_; -#line 466 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = self->priv->comment; -#line 466 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = checkerboard_item_text_get_height (_tmp10_) + CHECKERBOARD_ITEM_LABEL_PADDING; -#line 3330 "CheckerboardLayout.c" - } else { -#line 466 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = 0; -#line 3334 "CheckerboardLayout.c" - } -#line 465 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - comment_height = _tmp6_; -#line 467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = self->priv->subtitle; -#line 467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp13_ != NULL) { -#line 3342 "CheckerboardLayout.c" - gboolean _tmp14_; -#line 467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = self->priv->subtitle_visible; -#line 467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = _tmp14_; -#line 3348 "CheckerboardLayout.c" - } else { -#line 467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = FALSE; -#line 3352 "CheckerboardLayout.c" - } -#line 467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp12_) { -#line 3356 "CheckerboardLayout.c" - CheckerboardItemText* _tmp15_; -#line 468 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = self->priv->subtitle; -#line 468 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = checkerboard_item_text_get_height (_tmp15_) + CHECKERBOARD_ITEM_LABEL_PADDING; -#line 3362 "CheckerboardLayout.c" - } else { -#line 468 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = 0; -#line 3366 "CheckerboardLayout.c" - } -#line 467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - subtitle_height = _tmp11_; -#line 472 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = self->priv->pixbuf_dim; -#line 472 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp17_ = _tmp16_.width; -#line 472 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->requisition.width = ((CHECKERBOARD_ITEM_FRAME_WIDTH * 2) + (CHECKERBOARD_ITEM_BORDER_WIDTH * 2)) + _tmp17_; -#line 476 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = self->priv->pixbuf_dim; -#line 476 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = _tmp18_.height; -#line 476 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp20_ = title_height; -#line 476 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp21_ = comment_height; -#line 476 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp22_ = subtitle_height; -#line 476 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->requisition.height = (((((CHECKERBOARD_ITEM_FRAME_WIDTH * 2) + (CHECKERBOARD_ITEM_BORDER_WIDTH * 2)) + _tmp19_) + _tmp20_) + _tmp21_) + _tmp22_; -#line 485 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp23_ = old_requisition; -#line 485 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!dimensions_approx_equals (&self->requisition, &_tmp23_, 1)) { -#line 489 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view_notify_geometry_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 3394 "CheckerboardLayout.c" - } -} - - -void -checkerboard_item_get_border_dimensions (Dimensions* object_dim, - gint border_width, - Dimensions* result) -{ - Dimensions dimensions = {0}; - Dimensions _tmp0_; - gint _tmp1_; - Dimensions _tmp2_; - gint _tmp3_; -#line 493 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (object_dim != NULL); -#line 494 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - dimensions_init (&dimensions, 0, 0); -#line 495 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = *object_dim; -#line 495 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _tmp0_.width; -#line 495 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - dimensions.width = _tmp1_ + (border_width * 2); -#line 496 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = *object_dim; -#line 496 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = _tmp2_.height; -#line 496 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - dimensions.height = _tmp3_ + (border_width * 2); -#line 497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - *result = dimensions; -#line 497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 3429 "CheckerboardLayout.c" -} - - -void -checkerboard_item_get_border_origin (GdkPoint* object_origin, - gint border_width, - GdkPoint* result) -{ - GdkPoint origin = {0}; - GdkPoint _tmp0_; - gint _tmp1_; - GdkPoint _tmp2_; - gint _tmp3_; -#line 500 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (object_origin != NULL); -#line 501 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - memset (&origin, 0, sizeof (GdkPoint)); -#line 502 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = *object_origin; -#line 502 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _tmp0_.x; -#line 502 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - origin.x = _tmp1_ - border_width; -#line 503 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = *object_origin; -#line 503 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = _tmp2_.y; -#line 503 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - origin.y = _tmp3_ - border_width; -#line 504 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - *result = origin; -#line 504 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 3463 "CheckerboardLayout.c" -} - - -static void -checkerboard_item_real_paint_shadow (CheckerboardItem* self, - cairo_t* ctx, - Dimensions* dimensions, - GdkPoint* origin, - gint radius, - gfloat initial_alpha) -{ - gdouble rgb_all = 0.0; - GdkPoint _tmp0_; - gint _tmp1_; - Dimensions _tmp2_; - gint _tmp3_; - GdkPoint _tmp4_; - gint _tmp5_; - GdkPoint _tmp6_; - gint _tmp7_; - Dimensions _tmp8_; - gint _tmp9_; - GdkPoint _tmp10_; - gint _tmp11_; - Dimensions _tmp12_; - gint _tmp13_; - GdkPoint _tmp14_; - gint _tmp15_; - GdkPoint _tmp16_; - gint _tmp17_; - Dimensions _tmp18_; - gint _tmp19_; - cairo_pattern_t* lr = NULL; - GdkPoint _tmp20_; - gint _tmp21_; - Dimensions _tmp22_; - gint _tmp23_; - GdkPoint _tmp24_; - gint _tmp25_; - Dimensions _tmp26_; - gint _tmp27_; - cairo_pattern_t* _tmp28_; - GdkPoint _tmp29_; - gint _tmp30_; - GdkPoint _tmp31_; - gint _tmp32_; - Dimensions _tmp33_; - gint _tmp34_; - Dimensions _tmp35_; - gint _tmp36_; - cairo_pattern_t* td = NULL; - GdkPoint _tmp37_; - gint _tmp38_; - Dimensions _tmp39_; - gint _tmp40_; - GdkPoint _tmp41_; - gint _tmp42_; - Dimensions _tmp43_; - gint _tmp44_; - cairo_pattern_t* _tmp45_; - GdkPoint _tmp46_; - gint _tmp47_; - Dimensions _tmp48_; - gint _tmp49_; - GdkPoint _tmp50_; - gint _tmp51_; - Dimensions _tmp52_; - gint _tmp53_; -#line 507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (ctx != NULL); -#line 507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (dimensions != NULL); -#line 507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (origin != NULL); -#line 509 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - rgb_all = 0.0; -#line 512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = *origin; -#line 512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _tmp0_.x; -#line 512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = *dimensions; -#line 512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = _tmp2_.width; -#line 512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = *origin; -#line 512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = _tmp4_.y; -#line 512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_paint_shadow_in_corner (self, ctx, _tmp1_ + _tmp3_, _tmp5_ + radius, rgb_all, (gfloat) radius, initial_alpha, (-0.5) * G_PI, (gdouble) 0); -#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = *origin; -#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = _tmp6_.x; -#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = *dimensions; -#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = _tmp8_.width; -#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = *origin; -#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = _tmp10_.y; -#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = *dimensions; -#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = _tmp12_.height; -#line 515 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_paint_shadow_in_corner (self, ctx, _tmp7_ + _tmp9_, _tmp11_ + _tmp13_, rgb_all, (gfloat) radius, initial_alpha, (gdouble) 0, 0.5 * G_PI); -#line 518 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = *origin; -#line 518 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = _tmp14_.x; -#line 518 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = *origin; -#line 518 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp17_ = _tmp16_.y; -#line 518 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = *dimensions; -#line 518 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = _tmp18_.height; -#line 518 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_paint_shadow_in_corner (self, ctx, _tmp15_ + radius, _tmp17_ + _tmp19_, rgb_all, (gfloat) radius, initial_alpha, 0.5 * G_PI, G_PI); -#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp20_ = *origin; -#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp21_ = _tmp20_.y; -#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp22_ = *dimensions; -#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp23_ = _tmp22_.height; -#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp24_ = *origin; -#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp25_ = _tmp24_.y; -#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp26_ = *dimensions; -#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp27_ = _tmp26_.height; -#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp28_ = cairo_pattern_create_linear ((gdouble) 0, (gdouble) (_tmp21_ + _tmp23_), (gdouble) 0, (gdouble) ((_tmp25_ + _tmp27_) + radius)); -#line 522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - lr = _tmp28_; -#line 524 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_pattern_add_color_stop_rgba (lr, 0.0, rgb_all, rgb_all, rgb_all, (gdouble) initial_alpha); -#line 525 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_pattern_add_color_stop_rgba (lr, 1.0, rgb_all, rgb_all, rgb_all, 0.0); -#line 526 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_set_source (ctx, lr); -#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp29_ = *origin; -#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp30_ = _tmp29_.x; -#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp31_ = *origin; -#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp32_ = _tmp31_.y; -#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp33_ = *dimensions; -#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp34_ = _tmp33_.height; -#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp35_ = *dimensions; -#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp36_ = _tmp35_.width; -#line 527 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_rectangle (ctx, (gdouble) (_tmp30_ + radius), (gdouble) (_tmp32_ + _tmp34_), (gdouble) (_tmp36_ - radius), (gdouble) radius); -#line 528 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_fill (ctx); -#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp37_ = *origin; -#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp38_ = _tmp37_.x; -#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp39_ = *dimensions; -#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp40_ = _tmp39_.width; -#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp41_ = *origin; -#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp42_ = _tmp41_.x; -#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp43_ = *dimensions; -#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp44_ = _tmp43_.width; -#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp45_ = cairo_pattern_create_linear ((gdouble) (_tmp38_ + _tmp40_), (gdouble) 0, (gdouble) ((_tmp42_ + _tmp44_) + radius), (gdouble) 0); -#line 531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - td = _tmp45_; -#line 533 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_pattern_add_color_stop_rgba (td, 0.0, rgb_all, rgb_all, rgb_all, (gdouble) initial_alpha); -#line 534 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_pattern_add_color_stop_rgba (td, 1.0, rgb_all, rgb_all, rgb_all, 0.0); -#line 535 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_set_source (ctx, td); -#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp46_ = *origin; -#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp47_ = _tmp46_.x; -#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp48_ = *dimensions; -#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp49_ = _tmp48_.width; -#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp50_ = *origin; -#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp51_ = _tmp50_.y; -#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp52_ = *dimensions; -#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp53_ = _tmp52_.height; -#line 536 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_rectangle (ctx, (gdouble) (_tmp47_ + _tmp49_), (gdouble) (_tmp51_ + radius), (gdouble) radius, (gdouble) (_tmp53_ - radius)); -#line 538 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_fill (ctx); -#line 507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _cairo_pattern_destroy0 (td); -#line 507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _cairo_pattern_destroy0 (lr); -#line 3682 "CheckerboardLayout.c" -} - - -void -checkerboard_item_paint_shadow (CheckerboardItem* self, - cairo_t* ctx, - Dimensions* dimensions, - GdkPoint* origin, - gint radius, - gfloat initial_alpha) -{ -#line 507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - CHECKERBOARD_ITEM_GET_CLASS (self)->paint_shadow (self, ctx, dimensions, origin, radius, initial_alpha); -#line 3698 "CheckerboardLayout.c" -} - - -void -checkerboard_item_paint_shadow_in_corner (CheckerboardItem* self, - cairo_t* ctx, - gint x, - gint y, - gdouble rgb_all, - gfloat radius, - gfloat initial_alpha, - gdouble arc1, - gdouble arc2) -{ - cairo_pattern_t* p = NULL; - cairo_pattern_t* _tmp0_; -#line 541 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 541 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (ctx != NULL); -#line 543 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = cairo_pattern_create_radial ((gdouble) x, (gdouble) y, (gdouble) 0, (gdouble) x, (gdouble) y, (gdouble) radius); -#line 543 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - p = _tmp0_; -#line 544 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_pattern_add_color_stop_rgba (p, 0.0, rgb_all, rgb_all, rgb_all, (gdouble) initial_alpha); -#line 545 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_pattern_add_color_stop_rgba (p, 1.0, rgb_all, rgb_all, rgb_all, (gdouble) 0); -#line 546 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_set_source (ctx, p); -#line 547 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_move_to (ctx, (gdouble) x, (gdouble) y); -#line 548 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_arc (ctx, (gdouble) x, (gdouble) y, (gdouble) radius, arc1, arc2); -#line 549 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_close_path (ctx); -#line 550 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_fill (ctx); -#line 541 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _cairo_pattern_destroy0 (p); -#line 3739 "CheckerboardLayout.c" -} - - -static void -checkerboard_item_real_paint_border (CheckerboardItem* self, - cairo_t* ctx, - Dimensions* object_dimensions, - GdkPoint* object_origin, - gint border_width) -{ -#line 553 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (ctx != NULL); -#line 553 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (object_dimensions != NULL); -#line 553 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (object_origin != NULL); -#line 555 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (border_width == 1) { -#line 3758 "CheckerboardLayout.c" - GdkPoint _tmp0_; - gint _tmp1_; - GdkPoint _tmp2_; - gint _tmp3_; - Dimensions _tmp4_; - gint _tmp5_; - Dimensions _tmp6_; - gint _tmp7_; -#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = *object_origin; -#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _tmp0_.x; -#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = *object_origin; -#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = _tmp2_.y; -#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = *object_dimensions; -#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = _tmp4_.width; -#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = *object_dimensions; -#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = _tmp6_.height; -#line 556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_rectangle (ctx, (gdouble) (_tmp1_ - border_width), (gdouble) (_tmp3_ - border_width), (gdouble) (_tmp5_ + (border_width * 2)), (gdouble) (_tmp7_ + (border_width * 2))); -#line 559 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_fill (ctx); -#line 3787 "CheckerboardLayout.c" - } else { - Dimensions dimensions = {0}; - Dimensions _tmp8_; - Dimensions _tmp9_ = {0}; - GdkPoint origin = {0}; - GdkPoint _tmp10_; - GdkPoint _tmp11_ = {0}; - gdouble scale = 0.0; - Dimensions _tmp12_; - gint _tmp13_; - Dimensions _tmp14_; - gint _tmp15_; - Dimensions _tmp16_; - GdkPoint _tmp17_; - gdouble _tmp18_; -#line 561 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = *object_dimensions; -#line 561 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_get_border_dimensions (&_tmp8_, border_width, &_tmp9_); -#line 561 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - dimensions = _tmp9_; -#line 562 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = *object_origin; -#line 562 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_get_border_origin (&_tmp10_, border_width, &_tmp11_); -#line 562 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - origin = _tmp11_; -#line 565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = *object_dimensions; -#line 565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = _tmp12_.width; -#line 565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = *object_dimensions; -#line 565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = _tmp14_.height; -#line 565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - scale = (gdouble) MAX (_tmp13_, _tmp15_); -#line 566 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = dimensions; -#line 566 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp17_ = origin; -#line 566 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = scale; -#line 566 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - draw_rounded_corners_filled (ctx, &_tmp16_, &_tmp17_, 0.25 * _tmp18_); -#line 3833 "CheckerboardLayout.c" - } -} - - -void -checkerboard_item_paint_border (CheckerboardItem* self, - cairo_t* ctx, - Dimensions* object_dimensions, - GdkPoint* object_origin, - gint border_width) -{ -#line 553 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 553 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - CHECKERBOARD_ITEM_GET_CLASS (self)->paint_border (self, ctx, object_dimensions, object_origin, border_width); -#line 3849 "CheckerboardLayout.c" -} - - -static void -checkerboard_item_real_paint_image (CheckerboardItem* self, - cairo_t* ctx, - GdkPixbuf* pixbuf, - GdkPoint* origin) -{ - GdkPoint _tmp0_; - gint _tmp1_; - GdkPoint _tmp2_; - gint _tmp3_; -#line 570 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (ctx != NULL); -#line 570 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 570 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (origin != NULL); -#line 571 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = *origin; -#line 571 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _tmp0_.x; -#line 571 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = *origin; -#line 571 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = _tmp2_.y; -#line 571 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - paint_pixmap_with_background (ctx, pixbuf, _tmp1_, _tmp3_); -#line 3879 "CheckerboardLayout.c" -} - - -void -checkerboard_item_paint_image (CheckerboardItem* self, - cairo_t* ctx, - GdkPixbuf* pixbuf, - GdkPoint* origin) -{ -#line 570 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 570 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - CHECKERBOARD_ITEM_GET_CLASS (self)->paint_image (self, ctx, pixbuf, origin); -#line 3893 "CheckerboardLayout.c" -} - - -static gint -checkerboard_item_get_selection_border_width (CheckerboardItem* self, - gint scale) -{ - gint result = 0; - gint _tmp0_ = 0; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint _tmp4_; -#line 574 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), 0); -#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = thumbnail_get_MIN_SCALE (); -#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _tmp1_; -#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = thumbnail_get_MAX_SCALE (); -#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = _tmp3_; -#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (scale <= ((_tmp2_ + _tmp4_) / 3)) { -#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = 2; -#line 3921 "CheckerboardLayout.c" - } else { -#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = 3; -#line 3925 "CheckerboardLayout.c" - } -#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp0_ + CHECKERBOARD_ITEM_BORDER_WIDTH; -#line 575 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 3931 "CheckerboardLayout.c" -} - - -static GdkPixbuf* -checkerboard_item_real_get_top_left_trinket (CheckerboardItem* self, - gint scale) -{ - GdkPixbuf* result = NULL; -#line 580 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = NULL; -#line 580 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 3944 "CheckerboardLayout.c" -} - - -GdkPixbuf* -checkerboard_item_get_top_left_trinket (CheckerboardItem* self, - gint scale) -{ -#line 579 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL); -#line 579 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return CHECKERBOARD_ITEM_GET_CLASS (self)->get_top_left_trinket (self, scale); -#line 3956 "CheckerboardLayout.c" -} - - -static GdkPixbuf* -checkerboard_item_real_get_top_right_trinket (CheckerboardItem* self, - gint scale) -{ - GdkPixbuf* result = NULL; -#line 584 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = NULL; -#line 584 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 3969 "CheckerboardLayout.c" -} - - -GdkPixbuf* -checkerboard_item_get_top_right_trinket (CheckerboardItem* self, - gint scale) -{ -#line 583 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL); -#line 583 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return CHECKERBOARD_ITEM_GET_CLASS (self)->get_top_right_trinket (self, scale); -#line 3981 "CheckerboardLayout.c" -} - - -static GdkPixbuf* -checkerboard_item_real_get_bottom_left_trinket (CheckerboardItem* self, - gint scale) -{ - GdkPixbuf* result = NULL; -#line 588 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = NULL; -#line 588 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 3994 "CheckerboardLayout.c" -} - - -GdkPixbuf* -checkerboard_item_get_bottom_left_trinket (CheckerboardItem* self, - gint scale) -{ -#line 587 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL); -#line 587 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return CHECKERBOARD_ITEM_GET_CLASS (self)->get_bottom_left_trinket (self, scale); -#line 4006 "CheckerboardLayout.c" -} - - -static GdkPixbuf* -checkerboard_item_real_get_bottom_right_trinket (CheckerboardItem* self, - gint scale) -{ - GdkPixbuf* result = NULL; -#line 592 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = NULL; -#line 592 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 4019 "CheckerboardLayout.c" -} - - -GdkPixbuf* -checkerboard_item_get_bottom_right_trinket (CheckerboardItem* self, - gint scale) -{ -#line 591 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), NULL); -#line 591 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return CHECKERBOARD_ITEM_GET_CLASS (self)->get_bottom_right_trinket (self, scale); -#line 4031 "CheckerboardLayout.c" -} - - -void -checkerboard_item_paint (CheckerboardItem* self, - cairo_t* ctx, - GdkRGBA* bg_color, - GdkRGBA* selected_color, - GdkRGBA* text_color, - GdkRGBA* border_color) -{ - GdkRectangle _tmp0_; - gint _tmp1_; - GdkRectangle _tmp2_; - gint _tmp3_; - GdkPoint pixbuf_origin = {0}; - GdkRGBA _tmp4_; - gdouble _tmp5_; - GdkRGBA _tmp6_; - gdouble _tmp7_; - GdkRGBA _tmp8_; - gdouble _tmp9_; - GdkRGBA _tmp10_; - gdouble _tmp11_; - gboolean _tmp18_; - GdkPixbuf* _tmp41_; - GdkRGBA _tmp52_; - gdouble _tmp53_; - GdkRGBA _tmp54_; - gdouble _tmp55_; - GdkRGBA _tmp56_; - gdouble _tmp57_; - GdkRGBA _tmp58_; - gdouble _tmp59_; - gint text_y = 0; - Dimensions _tmp60_; - gint _tmp61_; - gboolean _tmp62_ = FALSE; - CheckerboardItemText* _tmp63_; - gboolean _tmp86_ = FALSE; - CheckerboardItemText* _tmp87_; - gboolean _tmp110_ = FALSE; - CheckerboardItemText* _tmp111_; - GdkRGBA _tmp132_; - gdouble _tmp133_; - GdkRGBA _tmp134_; - gdouble _tmp135_; - GdkRGBA _tmp136_; - gdouble _tmp137_; - GdkRGBA _tmp138_; - gdouble _tmp139_; - GdkPixbuf* trinket = NULL; - GdkPixbuf* _tmp140_; - GdkPixbuf* _tmp141_; - GdkPixbuf* _tmp156_; - GdkPixbuf* _tmp157_; - GdkPixbuf* _tmp169_; - GdkPixbuf* _tmp170_; - GdkPixbuf* _tmp187_; - GdkPixbuf* _tmp188_; -#line 595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (ctx != NULL); -#line 595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (bg_color != NULL); -#line 595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (selected_color != NULL); -#line 595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (text_color != NULL); -#line 597 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_save (ctx); -#line 598 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->allocation; -#line 598 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _tmp0_.x; -#line 598 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->allocation; -#line 598 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = _tmp2_.y; -#line 598 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_translate (ctx, (gdouble) (_tmp1_ + CHECKERBOARD_ITEM_FRAME_WIDTH), (gdouble) (_tmp3_ + CHECKERBOARD_ITEM_FRAME_WIDTH)); -#line 601 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - memset (&pixbuf_origin, 0, sizeof (GdkPoint)); -#line 602 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - pixbuf_origin.x = CHECKERBOARD_ITEM_BORDER_WIDTH; -#line 603 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - pixbuf_origin.y = CHECKERBOARD_ITEM_BORDER_WIDTH; -#line 605 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_set_line_width (ctx, (gdouble) CHECKERBOARD_ITEM_FRAME_WIDTH); -#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = *selected_color; -#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = _tmp4_.red; -#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = *selected_color; -#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = _tmp6_.green; -#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = *selected_color; -#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = _tmp8_.blue; -#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = *selected_color; -#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = _tmp10_.alpha; -#line 606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_set_source_rgba (ctx, _tmp5_, _tmp7_, _tmp9_, _tmp11_); -#line 610 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (border_color != NULL) { -#line 4142 "CheckerboardLayout.c" - Dimensions shadow_dim = {0}; - Dimensions _tmp12_; - gint _tmp13_; - Dimensions _tmp14_; - gint _tmp15_; - Dimensions _tmp16_; - GdkPoint _tmp17_; -#line 611 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_save (ctx); -#line 612 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - dimensions_init (&shadow_dim, 0, 0); -#line 613 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = self->priv->pixbuf_dim; -#line 613 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = _tmp12_.width; -#line 613 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - shadow_dim.width = _tmp13_ + CHECKERBOARD_ITEM_BORDER_WIDTH; -#line 614 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = self->priv->pixbuf_dim; -#line 614 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = _tmp14_.height; -#line 614 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - shadow_dim.height = _tmp15_ + CHECKERBOARD_ITEM_BORDER_WIDTH; -#line 615 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = shadow_dim; -#line 615 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp17_ = pixbuf_origin; -#line 615 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_paint_shadow (self, ctx, &_tmp16_, &_tmp17_, CHECKERBOARD_ITEM_SHADOW_RADIUS, CHECKERBOARD_ITEM_SHADOW_INITIAL_ALPHA); -#line 616 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_restore (ctx); -#line 4174 "CheckerboardLayout.c" - } -#line 620 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = self->priv->is_cursor; -#line 620 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp18_) { -#line 4180 "CheckerboardLayout.c" - gdouble _tmp19_; - gdouble _tmp20_; - gdouble _tmp21_; - gdouble _tmp22_; - Dimensions _tmp23_; - GdkPoint _tmp24_; - Dimensions _tmp25_; - gint _tmp26_; - Dimensions _tmp27_; - gint _tmp28_; -#line 621 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_save (ctx); -#line 622 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = (*border_color).red; -#line 622 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp20_ = (*border_color).green; -#line 622 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp21_ = (*border_color).blue; -#line 622 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp22_ = (*border_color).alpha; -#line 622 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_set_source_rgba (ctx, _tmp19_, _tmp20_, _tmp21_, _tmp22_); -#line 624 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp23_ = self->priv->pixbuf_dim; -#line 624 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp24_ = pixbuf_origin; -#line 624 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp25_ = self->priv->pixbuf_dim; -#line 624 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp26_ = _tmp25_.width; -#line 624 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp27_ = self->priv->pixbuf_dim; -#line 624 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp28_ = _tmp27_.height; -#line 624 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_paint_border (self, ctx, &_tmp23_, &_tmp24_, checkerboard_item_get_selection_border_width (self, MAX (_tmp26_, _tmp28_))); -#line 626 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_restore (ctx); -#line 4219 "CheckerboardLayout.c" - } -#line 630 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView))) { -#line 4223 "CheckerboardLayout.c" - Dimensions _tmp29_; - GdkPoint _tmp30_; - Dimensions _tmp31_; - gint _tmp32_; - Dimensions _tmp33_; - gint _tmp34_; -#line 632 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_save (ctx); -#line 633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp29_ = self->priv->pixbuf_dim; -#line 633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp30_ = pixbuf_origin; -#line 633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp31_ = self->priv->pixbuf_dim; -#line 633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp32_ = _tmp31_.width; -#line 633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp33_ = self->priv->pixbuf_dim; -#line 633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp34_ = _tmp33_.height; -#line 633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_paint_border (self, ctx, &_tmp29_, &_tmp30_, checkerboard_item_get_selection_border_width (self, MAX (_tmp32_, _tmp34_))); -#line 635 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_restore (ctx); -#line 4248 "CheckerboardLayout.c" - } -#line 639 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (border_color != NULL) { -#line 4252 "CheckerboardLayout.c" - gdouble _tmp35_; - gdouble _tmp36_; - gdouble _tmp37_; - gdouble _tmp38_; - Dimensions _tmp39_; - GdkPoint _tmp40_; -#line 640 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_save (ctx); -#line 641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp35_ = (*border_color).red; -#line 641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp36_ = (*border_color).green; -#line 641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp37_ = (*border_color).blue; -#line 641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp38_ = (*border_color).alpha; -#line 641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_set_source_rgba (ctx, _tmp35_, _tmp36_, _tmp37_, _tmp38_); -#line 643 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp39_ = self->priv->pixbuf_dim; -#line 643 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp40_ = pixbuf_origin; -#line 643 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_paint_border (self, ctx, &_tmp39_, &_tmp40_, CHECKERBOARD_ITEM_BORDER_WIDTH); -#line 644 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_restore (ctx); -#line 4279 "CheckerboardLayout.c" - } -#line 647 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp41_ = self->priv->display_pixbuf; -#line 647 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp41_ != NULL) { -#line 4285 "CheckerboardLayout.c" - GdkRGBA _tmp42_; - gdouble _tmp43_; - GdkRGBA _tmp44_; - gdouble _tmp45_; - GdkRGBA _tmp46_; - gdouble _tmp47_; - GdkRGBA _tmp48_; - gdouble _tmp49_; - GdkPixbuf* _tmp50_; - GdkPoint _tmp51_; -#line 648 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_save (ctx); -#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp42_ = *bg_color; -#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp43_ = _tmp42_.red; -#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp44_ = *bg_color; -#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp45_ = _tmp44_.green; -#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp46_ = *bg_color; -#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp47_ = _tmp46_.blue; -#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp48_ = *bg_color; -#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp49_ = _tmp48_.alpha; -#line 649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_set_source_rgba (ctx, _tmp43_, _tmp45_, _tmp47_, _tmp49_); -#line 650 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp50_ = self->priv->display_pixbuf; -#line 650 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp51_ = pixbuf_origin; -#line 650 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_paint_image (self, ctx, _tmp50_, &_tmp51_); -#line 651 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_restore (ctx); -#line 4324 "CheckerboardLayout.c" - } -#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp52_ = *text_color; -#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp53_ = _tmp52_.red; -#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp54_ = *text_color; -#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp55_ = _tmp54_.green; -#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp56_ = *text_color; -#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp57_ = _tmp56_.blue; -#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp58_ = *text_color; -#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp59_ = _tmp58_.alpha; -#line 654 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_set_source_rgba (ctx, _tmp53_, _tmp55_, _tmp57_, _tmp59_); -#line 657 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp60_ = self->priv->pixbuf_dim; -#line 657 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp61_ = _tmp60_.height; -#line 657 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - text_y = (_tmp61_ + CHECKERBOARD_ITEM_FRAME_WIDTH) + CHECKERBOARD_ITEM_LABEL_PADDING; -#line 658 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp63_ = self->priv->title; -#line 658 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp63_ != NULL) { -#line 4354 "CheckerboardLayout.c" - gboolean _tmp64_; -#line 658 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp64_ = self->priv->title_visible; -#line 658 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp62_ = _tmp64_; -#line 4360 "CheckerboardLayout.c" - } else { -#line 658 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp62_ = FALSE; -#line 4364 "CheckerboardLayout.c" - } -#line 658 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp62_) { -#line 4368 "CheckerboardLayout.c" - CheckerboardItemText* _tmp65_; - CheckerboardItemText* _tmp66_; - gint _tmp67_; - CheckerboardItemText* _tmp68_; - Dimensions _tmp69_; - gint _tmp70_; - CheckerboardItemText* _tmp71_; - CheckerboardItemText* _tmp72_; - CheckerboardItemText* _tmp73_; - GdkRectangle _tmp74_; - gint _tmp75_; - CheckerboardItemText* _tmp76_; - GdkRectangle _tmp77_; - gint _tmp78_; - CheckerboardItemText* _tmp79_; - Dimensions _tmp80_; - gint _tmp81_; - PangoLayout* _tmp82_; - PangoLayout* _tmp83_; - gint _tmp84_; - CheckerboardItemText* _tmp85_; -#line 661 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp65_ = self->priv->title; -#line 661 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp65_->allocation.x = 0; -#line 662 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp66_ = self->priv->title; -#line 662 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp67_ = text_y; -#line 662 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp66_->allocation.y = _tmp67_; -#line 663 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp68_ = self->priv->title; -#line 663 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp69_ = self->priv->pixbuf_dim; -#line 663 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp70_ = _tmp69_.width; -#line 663 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp68_->allocation.width = _tmp70_; -#line 664 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp71_ = self->priv->title; -#line 664 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp72_ = self->priv->title; -#line 664 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp71_->allocation.height = checkerboard_item_text_get_height (_tmp72_); -#line 666 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp73_ = self->priv->title; -#line 666 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp74_ = _tmp73_->allocation; -#line 666 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp75_ = _tmp74_.x; -#line 666 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp76_ = self->priv->title; -#line 666 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp77_ = _tmp76_->allocation; -#line 666 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp78_ = _tmp77_.y; -#line 666 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_move_to (ctx, (gdouble) _tmp75_, (gdouble) _tmp78_); -#line 667 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp79_ = self->priv->title; -#line 667 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp80_ = self->priv->pixbuf_dim; -#line 667 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp81_ = _tmp80_.width; -#line 667 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp82_ = checkerboard_item_text_get_pango_layout (_tmp79_, _tmp81_); -#line 667 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp83_ = _tmp82_; -#line 667 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - pango_cairo_show_layout (ctx, _tmp83_); -#line 667 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp83_); -#line 669 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp84_ = text_y; -#line 669 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp85_ = self->priv->title; -#line 669 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - text_y = _tmp84_ + (checkerboard_item_text_get_height (_tmp85_) + CHECKERBOARD_ITEM_LABEL_PADDING); -#line 4448 "CheckerboardLayout.c" - } -#line 672 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp87_ = self->priv->comment; -#line 672 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp87_ != NULL) { -#line 4454 "CheckerboardLayout.c" - gboolean _tmp88_; -#line 672 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp88_ = self->priv->comment_visible; -#line 672 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp86_ = _tmp88_; -#line 4460 "CheckerboardLayout.c" - } else { -#line 672 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp86_ = FALSE; -#line 4464 "CheckerboardLayout.c" - } -#line 672 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp86_) { -#line 4468 "CheckerboardLayout.c" - CheckerboardItemText* _tmp89_; - CheckerboardItemText* _tmp90_; - gint _tmp91_; - CheckerboardItemText* _tmp92_; - Dimensions _tmp93_; - gint _tmp94_; - CheckerboardItemText* _tmp95_; - CheckerboardItemText* _tmp96_; - CheckerboardItemText* _tmp97_; - GdkRectangle _tmp98_; - gint _tmp99_; - CheckerboardItemText* _tmp100_; - GdkRectangle _tmp101_; - gint _tmp102_; - CheckerboardItemText* _tmp103_; - Dimensions _tmp104_; - gint _tmp105_; - PangoLayout* _tmp106_; - PangoLayout* _tmp107_; - gint _tmp108_; - CheckerboardItemText* _tmp109_; -#line 673 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp89_ = self->priv->comment; -#line 673 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp89_->allocation.x = 0; -#line 674 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp90_ = self->priv->comment; -#line 674 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp91_ = text_y; -#line 674 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp90_->allocation.y = _tmp91_; -#line 675 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp92_ = self->priv->comment; -#line 675 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp93_ = self->priv->pixbuf_dim; -#line 675 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp94_ = _tmp93_.width; -#line 675 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp92_->allocation.width = _tmp94_; -#line 676 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp95_ = self->priv->comment; -#line 676 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp96_ = self->priv->comment; -#line 676 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp95_->allocation.height = checkerboard_item_text_get_height (_tmp96_); -#line 678 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp97_ = self->priv->comment; -#line 678 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp98_ = _tmp97_->allocation; -#line 678 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp99_ = _tmp98_.x; -#line 678 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp100_ = self->priv->comment; -#line 678 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp101_ = _tmp100_->allocation; -#line 678 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp102_ = _tmp101_.y; -#line 678 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_move_to (ctx, (gdouble) _tmp99_, (gdouble) _tmp102_); -#line 679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp103_ = self->priv->comment; -#line 679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp104_ = self->priv->pixbuf_dim; -#line 679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp105_ = _tmp104_.width; -#line 679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp106_ = checkerboard_item_text_get_pango_layout (_tmp103_, _tmp105_); -#line 679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp107_ = _tmp106_; -#line 679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - pango_cairo_show_layout (ctx, _tmp107_); -#line 679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp107_); -#line 681 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp108_ = text_y; -#line 681 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp109_ = self->priv->comment; -#line 681 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - text_y = _tmp108_ + (checkerboard_item_text_get_height (_tmp109_) + CHECKERBOARD_ITEM_LABEL_PADDING); -#line 4548 "CheckerboardLayout.c" - } -#line 684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp111_ = self->priv->subtitle; -#line 684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp111_ != NULL) { -#line 4554 "CheckerboardLayout.c" - gboolean _tmp112_; -#line 684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp112_ = self->priv->subtitle_visible; -#line 684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp110_ = _tmp112_; -#line 4560 "CheckerboardLayout.c" - } else { -#line 684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp110_ = FALSE; -#line 4564 "CheckerboardLayout.c" - } -#line 684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp110_) { -#line 4568 "CheckerboardLayout.c" - CheckerboardItemText* _tmp113_; - CheckerboardItemText* _tmp114_; - gint _tmp115_; - CheckerboardItemText* _tmp116_; - Dimensions _tmp117_; - gint _tmp118_; - CheckerboardItemText* _tmp119_; - CheckerboardItemText* _tmp120_; - CheckerboardItemText* _tmp121_; - GdkRectangle _tmp122_; - gint _tmp123_; - CheckerboardItemText* _tmp124_; - GdkRectangle _tmp125_; - gint _tmp126_; - CheckerboardItemText* _tmp127_; - Dimensions _tmp128_; - gint _tmp129_; - PangoLayout* _tmp130_; - PangoLayout* _tmp131_; -#line 685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp113_ = self->priv->subtitle; -#line 685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp113_->allocation.x = 0; -#line 686 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp114_ = self->priv->subtitle; -#line 686 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp115_ = text_y; -#line 686 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp114_->allocation.y = _tmp115_; -#line 687 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp116_ = self->priv->subtitle; -#line 687 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp117_ = self->priv->pixbuf_dim; -#line 687 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp118_ = _tmp117_.width; -#line 687 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp116_->allocation.width = _tmp118_; -#line 688 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp119_ = self->priv->subtitle; -#line 688 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp120_ = self->priv->subtitle; -#line 688 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp119_->allocation.height = checkerboard_item_text_get_height (_tmp120_); -#line 690 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp121_ = self->priv->subtitle; -#line 690 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp122_ = _tmp121_->allocation; -#line 690 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp123_ = _tmp122_.x; -#line 690 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp124_ = self->priv->subtitle; -#line 690 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp125_ = _tmp124_->allocation; -#line 690 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp126_ = _tmp125_.y; -#line 690 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_move_to (ctx, (gdouble) _tmp123_, (gdouble) _tmp126_); -#line 691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp127_ = self->priv->subtitle; -#line 691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp128_ = self->priv->pixbuf_dim; -#line 691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp129_ = _tmp128_.width; -#line 691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp130_ = checkerboard_item_text_get_pango_layout (_tmp127_, _tmp129_); -#line 691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp131_ = _tmp130_; -#line 691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - pango_cairo_show_layout (ctx, _tmp131_); -#line 691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp131_); -#line 4640 "CheckerboardLayout.c" - } -#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp132_ = *selected_color; -#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp133_ = _tmp132_.red; -#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp134_ = *selected_color; -#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp135_ = _tmp134_.green; -#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp136_ = *selected_color; -#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp137_ = _tmp136_.blue; -#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp138_ = *selected_color; -#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp139_ = _tmp138_.alpha; -#line 696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_set_source_rgba (ctx, _tmp133_, _tmp135_, _tmp137_, _tmp139_); -#line 700 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp140_ = checkerboard_item_get_bottom_left_trinket (self, CHECKERBOARD_ITEM_TRINKET_SCALE); -#line 700 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - trinket = _tmp140_; -#line 701 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp141_ = trinket; -#line 701 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp141_ != NULL) { -#line 4668 "CheckerboardLayout.c" - gint x = 0; - GdkPoint _tmp142_; - gint _tmp143_; - gint y = 0; - GdkPoint _tmp144_; - gint _tmp145_; - Dimensions _tmp146_; - gint _tmp147_; - GdkPixbuf* _tmp148_; - GdkPixbuf* _tmp149_; - gint _tmp150_; - gint _tmp151_; - gint _tmp152_; - gint _tmp153_; - GdkPixbuf* _tmp154_; - GdkPixbuf* _tmp155_; -#line 702 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp142_ = pixbuf_origin; -#line 702 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp143_ = _tmp142_.x; -#line 702 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - x = (_tmp143_ + CHECKERBOARD_ITEM_TRINKET_PADDING) + checkerboard_item_get_horizontal_trinket_offset (self); -#line 703 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp144_ = pixbuf_origin; -#line 703 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp145_ = _tmp144_.y; -#line 703 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp146_ = self->priv->pixbuf_dim; -#line 703 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp147_ = _tmp146_.height; -#line 703 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp148_ = trinket; -#line 703 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - y = ((_tmp145_ + _tmp147_) - gdk_pixbuf_get_height (_tmp148_)) - CHECKERBOARD_ITEM_TRINKET_PADDING; -#line 705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp149_ = trinket; -#line 705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp150_ = x; -#line 705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp151_ = y; -#line 705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp149_, (gdouble) _tmp150_, (gdouble) _tmp151_); -#line 706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp152_ = x; -#line 706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp153_ = y; -#line 706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp154_ = trinket; -#line 706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp155_ = trinket; -#line 706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_rectangle (ctx, (gdouble) _tmp152_, (gdouble) _tmp153_, (gdouble) gdk_pixbuf_get_width (_tmp154_), (gdouble) gdk_pixbuf_get_height (_tmp155_)); -#line 707 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_fill (ctx); -#line 4723 "CheckerboardLayout.c" - } -#line 710 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp156_ = checkerboard_item_get_top_left_trinket (self, CHECKERBOARD_ITEM_TRINKET_SCALE); -#line 710 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (trinket); -#line 710 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - trinket = _tmp156_; -#line 711 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp157_ = trinket; -#line 711 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp157_ != NULL) { -#line 4735 "CheckerboardLayout.c" - gint x = 0; - GdkPoint _tmp158_; - gint _tmp159_; - gint y = 0; - GdkPoint _tmp160_; - gint _tmp161_; - GdkPixbuf* _tmp162_; - gint _tmp163_; - gint _tmp164_; - gint _tmp165_; - gint _tmp166_; - GdkPixbuf* _tmp167_; - GdkPixbuf* _tmp168_; -#line 712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp158_ = pixbuf_origin; -#line 712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp159_ = _tmp158_.x; -#line 712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - x = (_tmp159_ + CHECKERBOARD_ITEM_TRINKET_PADDING) + checkerboard_item_get_horizontal_trinket_offset (self); -#line 713 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp160_ = pixbuf_origin; -#line 713 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp161_ = _tmp160_.y; -#line 713 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - y = _tmp161_ + CHECKERBOARD_ITEM_TRINKET_PADDING; -#line 714 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp162_ = trinket; -#line 714 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp163_ = x; -#line 714 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp164_ = y; -#line 714 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp162_, (gdouble) _tmp163_, (gdouble) _tmp164_); -#line 715 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp165_ = x; -#line 715 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp166_ = y; -#line 715 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp167_ = trinket; -#line 715 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp168_ = trinket; -#line 715 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_rectangle (ctx, (gdouble) _tmp165_, (gdouble) _tmp166_, (gdouble) gdk_pixbuf_get_width (_tmp167_), (gdouble) gdk_pixbuf_get_height (_tmp168_)); -#line 716 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_fill (ctx); -#line 4781 "CheckerboardLayout.c" - } -#line 719 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp169_ = checkerboard_item_get_top_right_trinket (self, CHECKERBOARD_ITEM_TRINKET_SCALE); -#line 719 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (trinket); -#line 719 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - trinket = _tmp169_; -#line 720 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp170_ = trinket; -#line 720 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp170_ != NULL) { -#line 4793 "CheckerboardLayout.c" - gint x = 0; - GdkPoint _tmp171_; - gint _tmp172_; - Dimensions _tmp173_; - gint _tmp174_; - GdkPixbuf* _tmp175_; - gint _tmp176_; - gint _tmp177_; - gint y = 0; - GdkPoint _tmp178_; - gint _tmp179_; - GdkPixbuf* _tmp180_; - gint _tmp181_; - gint _tmp182_; - gint _tmp183_; - gint _tmp184_; - GdkPixbuf* _tmp185_; - GdkPixbuf* _tmp186_; -#line 721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp171_ = pixbuf_origin; -#line 721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp172_ = _tmp171_.x; -#line 721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp173_ = self->priv->pixbuf_dim; -#line 721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp174_ = _tmp173_.width; -#line 721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp175_ = trinket; -#line 721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp176_ = gdk_pixbuf_get_width (_tmp175_); -#line 721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp177_ = _tmp176_; -#line 721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - x = (((_tmp172_ + _tmp174_) - _tmp177_) - checkerboard_item_get_horizontal_trinket_offset (self)) - CHECKERBOARD_ITEM_TRINKET_PADDING; -#line 723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp178_ = pixbuf_origin; -#line 723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp179_ = _tmp178_.y; -#line 723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - y = _tmp179_ + CHECKERBOARD_ITEM_TRINKET_PADDING; -#line 724 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp180_ = trinket; -#line 724 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp181_ = x; -#line 724 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp182_ = y; -#line 724 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp180_, (gdouble) _tmp181_, (gdouble) _tmp182_); -#line 725 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp183_ = x; -#line 725 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp184_ = y; -#line 725 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp185_ = trinket; -#line 725 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp186_ = trinket; -#line 725 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_rectangle (ctx, (gdouble) _tmp183_, (gdouble) _tmp184_, (gdouble) gdk_pixbuf_get_width (_tmp185_), (gdouble) gdk_pixbuf_get_height (_tmp186_)); -#line 726 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_fill (ctx); -#line 4854 "CheckerboardLayout.c" - } -#line 729 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp187_ = checkerboard_item_get_bottom_right_trinket (self, CHECKERBOARD_ITEM_TRINKET_SCALE); -#line 729 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (trinket); -#line 729 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - trinket = _tmp187_; -#line 730 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp188_ = trinket; -#line 730 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp188_ != NULL) { -#line 4866 "CheckerboardLayout.c" - gint x = 0; - GdkPoint _tmp189_; - gint _tmp190_; - Dimensions _tmp191_; - gint _tmp192_; - GdkPixbuf* _tmp193_; - gint _tmp194_; - gint _tmp195_; - gint y = 0; - GdkPoint _tmp196_; - gint _tmp197_; - Dimensions _tmp198_; - gint _tmp199_; - GdkPixbuf* _tmp200_; - gint _tmp201_; - gint _tmp202_; - GdkPixbuf* _tmp203_; - gint _tmp204_; - gint _tmp205_; - gint _tmp206_; - gint _tmp207_; - GdkPixbuf* _tmp208_; - GdkPixbuf* _tmp209_; -#line 731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp189_ = pixbuf_origin; -#line 731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp190_ = _tmp189_.x; -#line 731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp191_ = self->priv->pixbuf_dim; -#line 731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp192_ = _tmp191_.width; -#line 731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp193_ = trinket; -#line 731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp194_ = gdk_pixbuf_get_width (_tmp193_); -#line 731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp195_ = _tmp194_; -#line 731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - x = (((_tmp190_ + _tmp192_) - _tmp195_) - checkerboard_item_get_horizontal_trinket_offset (self)) - CHECKERBOARD_ITEM_TRINKET_PADDING; -#line 733 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp196_ = pixbuf_origin; -#line 733 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp197_ = _tmp196_.y; -#line 733 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp198_ = self->priv->pixbuf_dim; -#line 733 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp199_ = _tmp198_.height; -#line 733 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp200_ = trinket; -#line 733 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp201_ = gdk_pixbuf_get_height (_tmp200_); -#line 733 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp202_ = _tmp201_; -#line 733 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - y = ((_tmp197_ + _tmp199_) - _tmp202_) - CHECKERBOARD_ITEM_TRINKET_PADDING; -#line 735 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp203_ = trinket; -#line 735 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp204_ = x; -#line 735 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp205_ = y; -#line 735 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp203_, (gdouble) _tmp204_, (gdouble) _tmp205_); -#line 736 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp206_ = x; -#line 736 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp207_ = y; -#line 736 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp208_ = trinket; -#line 736 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp209_ = trinket; -#line 736 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_rectangle (ctx, (gdouble) _tmp206_, (gdouble) _tmp207_, (gdouble) gdk_pixbuf_get_width (_tmp208_), (gdouble) gdk_pixbuf_get_height (_tmp209_)); -#line 737 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_fill (ctx); -#line 4942 "CheckerboardLayout.c" - } -#line 739 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_restore (ctx); -#line 595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (trinket); -#line 4948 "CheckerboardLayout.c" -} - - -void -checkerboard_item_set_horizontal_trinket_offset (CheckerboardItem* self, - gint horizontal_trinket_offset) -{ -#line 742 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 743 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _vala_assert (horizontal_trinket_offset >= 0, "horizontal_trinket_offset >= 0"); -#line 744 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->horizontal_trinket_offset = horizontal_trinket_offset; -#line 4962 "CheckerboardLayout.c" -} - - -gint -checkerboard_item_get_horizontal_trinket_offset (CheckerboardItem* self) -{ - gint result = 0; - gint _tmp0_; -#line 747 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), 0); -#line 748 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->horizontal_trinket_offset; -#line 748 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp0_; -#line 748 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 4979 "CheckerboardLayout.c" -} - - -void -checkerboard_item_set_grid_coordinates (CheckerboardItem* self, - gint col, - gint row) -{ -#line 751 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 752 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->col = col; -#line 753 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->row = row; -#line 4994 "CheckerboardLayout.c" -} - - -gint -checkerboard_item_get_column (CheckerboardItem* self) -{ - gint result = 0; - gint _tmp0_; -#line 756 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), 0); -#line 757 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->col; -#line 757 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp0_; -#line 757 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 5011 "CheckerboardLayout.c" -} - - -gint -checkerboard_item_get_row (CheckerboardItem* self) -{ - gint result = 0; - gint _tmp0_; -#line 760 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), 0); -#line 761 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->row; -#line 761 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp0_; -#line 761 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 5028 "CheckerboardLayout.c" -} - - -void -checkerboard_item_brighten (CheckerboardItem* self) -{ - gboolean _tmp0_ = FALSE; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; - GdkPixbuf* _tmp7_; -#line 764 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 766 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->brightened; -#line 766 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_ != NULL) { -#line 766 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = TRUE; -#line 5050 "CheckerboardLayout.c" - } else { - GdkPixbuf* _tmp2_; -#line 766 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->pixbuf; -#line 766 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _tmp2_ == NULL; -#line 5057 "CheckerboardLayout.c" - } -#line 766 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_) { -#line 767 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 5063 "CheckerboardLayout.c" - } -#line 770 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = self->priv->pixbuf; -#line 770 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = gdk_pixbuf_copy (_tmp3_); -#line 770 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->brightened); -#line 770 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->brightened = _tmp4_; -#line 771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = self->priv->brightened; -#line 771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - shift_colors (_tmp5_, CHECKERBOARD_ITEM_BRIGHTEN_SHIFT, CHECKERBOARD_ITEM_BRIGHTEN_SHIFT, CHECKERBOARD_ITEM_BRIGHTEN_SHIFT, 0); -#line 773 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = self->priv->brightened; -#line 773 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = _g_object_ref0 (_tmp6_); -#line 773 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->display_pixbuf); -#line 773 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->display_pixbuf = _tmp7_; -#line 775 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 5087 "CheckerboardLayout.c" -} - - -void -checkerboard_item_unbrighten (CheckerboardItem* self) -{ - gboolean _tmp0_ = FALSE; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; -#line 778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 780 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->brightened; -#line 780 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_ == NULL) { -#line 780 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = TRUE; -#line 5106 "CheckerboardLayout.c" - } else { - GdkPixbuf* _tmp2_; -#line 780 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->pixbuf; -#line 780 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _tmp2_ == NULL; -#line 5113 "CheckerboardLayout.c" - } -#line 780 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_) { -#line 781 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 5119 "CheckerboardLayout.c" - } -#line 783 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->brightened); -#line 783 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->brightened = NULL; -#line 786 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = self->priv->pixbuf; -#line 786 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = _g_object_ref0 (_tmp3_); -#line 786 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->display_pixbuf); -#line 786 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->display_pixbuf = _tmp4_; -#line 788 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 5135 "CheckerboardLayout.c" -} - - -static void -checkerboard_item_real_visibility_changed (DataView* base, - gboolean visible) -{ - CheckerboardItem * self; -#line 791 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 793 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!visible) { -#line 794 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_unbrighten (self); -#line 5150 "CheckerboardLayout.c" - } -#line 796 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - DATA_VIEW_CLASS (checkerboard_item_parent_class)->visibility_changed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_VIEW, ThumbnailView), TYPE_DATA_VIEW, DataView), visible); -#line 5154 "CheckerboardLayout.c" -} - - -static gboolean -checkerboard_item_query_tooltip_on_text (CheckerboardItem* self, - CheckerboardItemText* text, - GtkTooltip* tooltip) -{ - gboolean result = FALSE; - PangoLayout* _tmp0_; - PangoLayout* _tmp1_; - gboolean _tmp2_; -#line 799 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), FALSE); -#line 799 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM_TEXT (text), FALSE); -#line 799 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (GTK_IS_TOOLTIP (tooltip), FALSE); -#line 800 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = checkerboard_item_text_get_pango_layout (text, 0); -#line 800 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _tmp0_; -#line 800 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = !pango_layout_is_ellipsized (_tmp1_); -#line 800 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp1_); -#line 800 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp2_) { -#line 801 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = FALSE; -#line 801 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 5187 "CheckerboardLayout.c" - } -#line 803 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (checkerboard_item_text_is_marked_up (text)) { -#line 5191 "CheckerboardLayout.c" - gchar* _tmp3_; - gchar* _tmp4_; -#line 804 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = checkerboard_item_text_get_text (text); -#line 804 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = _tmp3_; -#line 804 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_tooltip_set_markup (tooltip, _tmp4_); -#line 804 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp4_); -#line 5202 "CheckerboardLayout.c" - } else { - gchar* _tmp5_; - gchar* _tmp6_; -#line 806 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = checkerboard_item_text_get_text (text); -#line 806 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = _tmp5_; -#line 806 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_tooltip_set_text (tooltip, _tmp6_); -#line 806 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp6_); -#line 5214 "CheckerboardLayout.c" - } -#line 808 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = TRUE; -#line 808 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 5220 "CheckerboardLayout.c" -} - - -gboolean -checkerboard_item_query_tooltip (CheckerboardItem* self, - gint x, - gint y, - GtkTooltip* tooltip) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - CheckerboardItemText* _tmp2_; - gboolean _tmp7_ = FALSE; - gboolean _tmp8_ = FALSE; - CheckerboardItemText* _tmp9_; - gboolean _tmp14_ = FALSE; - gboolean _tmp15_ = FALSE; - CheckerboardItemText* _tmp16_; -#line 811 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), FALSE); -#line 811 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (GTK_IS_TOOLTIP (tooltip), FALSE); -#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->title; -#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp2_ != NULL) { -#line 5248 "CheckerboardLayout.c" - gboolean _tmp3_; -#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = self->priv->title_visible; -#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _tmp3_; -#line 5254 "CheckerboardLayout.c" - } else { -#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = FALSE; -#line 5258 "CheckerboardLayout.c" - } -#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_) { -#line 5262 "CheckerboardLayout.c" - CheckerboardItemText* _tmp4_; - GdkRectangle _tmp5_; -#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = self->priv->title; -#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = _tmp4_->allocation; -#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = coord_in_rectangle (x, y, &_tmp5_); -#line 5271 "CheckerboardLayout.c" - } else { -#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = FALSE; -#line 5275 "CheckerboardLayout.c" - } -#line 812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_) { -#line 5279 "CheckerboardLayout.c" - CheckerboardItemText* _tmp6_; -#line 813 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = self->priv->title; -#line 813 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = checkerboard_item_query_tooltip_on_text (self, _tmp6_, tooltip); -#line 813 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 5287 "CheckerboardLayout.c" - } -#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = self->priv->comment; -#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp9_ != NULL) { -#line 5293 "CheckerboardLayout.c" - gboolean _tmp10_; -#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = self->priv->comment_visible; -#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = _tmp10_; -#line 5299 "CheckerboardLayout.c" - } else { -#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = FALSE; -#line 5303 "CheckerboardLayout.c" - } -#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp8_) { -#line 5307 "CheckerboardLayout.c" - CheckerboardItemText* _tmp11_; - GdkRectangle _tmp12_; -#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = self->priv->comment; -#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = _tmp11_->allocation; -#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = coord_in_rectangle (x, y, &_tmp12_); -#line 5316 "CheckerboardLayout.c" - } else { -#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = FALSE; -#line 5320 "CheckerboardLayout.c" - } -#line 815 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp7_) { -#line 5324 "CheckerboardLayout.c" - CheckerboardItemText* _tmp13_; -#line 816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = self->priv->comment; -#line 816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = checkerboard_item_query_tooltip_on_text (self, _tmp13_, tooltip); -#line 816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 5332 "CheckerboardLayout.c" - } -#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = self->priv->subtitle; -#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp16_ != NULL) { -#line 5338 "CheckerboardLayout.c" - gboolean _tmp17_; -#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp17_ = self->priv->subtitle_visible; -#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = _tmp17_; -#line 5344 "CheckerboardLayout.c" - } else { -#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = FALSE; -#line 5348 "CheckerboardLayout.c" - } -#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp15_) { -#line 5352 "CheckerboardLayout.c" - CheckerboardItemText* _tmp18_; - GdkRectangle _tmp19_; -#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = self->priv->subtitle; -#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = _tmp18_->allocation; -#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = coord_in_rectangle (x, y, &_tmp19_); -#line 5361 "CheckerboardLayout.c" - } else { -#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = FALSE; -#line 5365 "CheckerboardLayout.c" - } -#line 818 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp14_) { -#line 5369 "CheckerboardLayout.c" - CheckerboardItemText* _tmp20_; -#line 819 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp20_ = self->priv->subtitle; -#line 819 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = checkerboard_item_query_tooltip_on_text (self, _tmp20_, tooltip); -#line 819 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 5377 "CheckerboardLayout.c" - } -#line 821 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = FALSE; -#line 821 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 5383 "CheckerboardLayout.c" -} - - -gboolean -checkerboard_item_get_has_tags (CheckerboardItem* self) -{ - gboolean result; - gboolean _tmp0_; -#line 161 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (self), FALSE); -#line 161 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->_has_tags; -#line 161 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp0_; -#line 161 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 5400 "CheckerboardLayout.c" -} - - -static void -checkerboard_item_set_has_tags (CheckerboardItem* self, - gboolean value) -{ -#line 161 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (self)); -#line 161 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (checkerboard_item_get_has_tags (self) != value) { -#line 161 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->_has_tags = value; -#line 161 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_object_notify_by_pspec ((GObject *) self, checkerboard_item_properties[CHECKERBOARD_ITEM_HAS_TAGS_PROPERTY]); -#line 5416 "CheckerboardLayout.c" - } -} - - -static void -checkerboard_item_class_init (CheckerboardItemClass * klass) -{ -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_parent_class = g_type_class_peek_parent (klass); -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_type_class_add_private (klass, sizeof (CheckerboardItemPrivate)); -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) checkerboard_item_real_get_name; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((DataObjectClass *) klass)->notify_membership_changed = (void (*) (DataObject *, DataCollection*)) checkerboard_item_real_notify_membership_changed; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((DataObjectClass *) klass)->notify_collection_property_set = (void (*) (DataObject *, const gchar*, GValue*, GValue*)) checkerboard_item_real_notify_collection_property_set; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((CheckerboardItemClass *) klass)->exposed = (void (*) (CheckerboardItem *)) checkerboard_item_real_exposed; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((CheckerboardItemClass *) klass)->unexposed = (void (*) (CheckerboardItem *)) checkerboard_item_real_unexposed; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((CheckerboardItemClass *) klass)->is_exposed = (gboolean (*) (CheckerboardItem *)) checkerboard_item_real_is_exposed; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((CheckerboardItemClass *) klass)->paint_shadow = (void (*) (CheckerboardItem *, cairo_t*, Dimensions*, GdkPoint*, gint, gfloat)) checkerboard_item_real_paint_shadow; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((CheckerboardItemClass *) klass)->paint_border = (void (*) (CheckerboardItem *, cairo_t*, Dimensions*, GdkPoint*, gint)) checkerboard_item_real_paint_border; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((CheckerboardItemClass *) klass)->paint_image = (void (*) (CheckerboardItem *, cairo_t*, GdkPixbuf*, GdkPoint*)) checkerboard_item_real_paint_image; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((CheckerboardItemClass *) klass)->get_top_left_trinket = (GdkPixbuf* (*) (CheckerboardItem *, gint)) checkerboard_item_real_get_top_left_trinket; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((CheckerboardItemClass *) klass)->get_top_right_trinket = (GdkPixbuf* (*) (CheckerboardItem *, gint)) checkerboard_item_real_get_top_right_trinket; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((CheckerboardItemClass *) klass)->get_bottom_left_trinket = (GdkPixbuf* (*) (CheckerboardItem *, gint)) checkerboard_item_real_get_bottom_left_trinket; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((CheckerboardItemClass *) klass)->get_bottom_right_trinket = (GdkPixbuf* (*) (CheckerboardItem *, gint)) checkerboard_item_real_get_bottom_right_trinket; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((DataViewClass *) klass)->visibility_changed = (void (*) (DataView *, gboolean)) checkerboard_item_real_visibility_changed; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_checkerboard_item_get_property; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_checkerboard_item_set_property; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - G_OBJECT_CLASS (klass)->finalize = checkerboard_item_finalize; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), CHECKERBOARD_ITEM_HAS_TAGS_PROPERTY, checkerboard_item_properties[CHECKERBOARD_ITEM_HAS_TAGS_PROPERTY] = g_param_spec_boolean ("has-tags", "has-tags", "has-tags", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 5464 "CheckerboardLayout.c" -} - - -static void -checkerboard_item_instance_init (CheckerboardItem * self) -{ -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv = CHECKERBOARD_ITEM_GET_PRIVATE (self); -#line 119 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - dimensions_init (&self->requisition, 0, 0); -#line 120 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - memset (&self->allocation, 0, sizeof (GdkRectangle)); -#line 122 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->exposure = FALSE; -#line 123 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->title = NULL; -#line 124 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->title_visible = TRUE; -#line 125 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->comment = NULL; -#line 126 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->comment_visible = TRUE; -#line 127 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->subtitle = NULL; -#line 128 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->subtitle_visible = FALSE; -#line 129 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->is_cursor = FALSE; -#line 130 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->tag_alignment = PANGO_ALIGN_LEFT; -#line 131 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->user_visible_tag_list = NULL; -#line 133 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->pixbuf = NULL; -#line 134 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->display_pixbuf = NULL; -#line 135 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->brightened = NULL; -#line 136 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - dimensions_init (&self->priv->pixbuf_dim, 0, 0); -#line 137 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->col = -1; -#line 138 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->row = -1; -#line 139 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->horizontal_trinket_offset = 0; -#line 5511 "CheckerboardLayout.c" -} - - -static void -checkerboard_item_finalize (GObject * obj) -{ - CheckerboardItem * self; -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 123 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_item_text_unref0 (self->priv->title); -#line 125 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_item_text_unref0 (self->priv->comment); -#line 127 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_item_text_unref0 (self->priv->subtitle); -#line 131 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->user_visible_tag_list); -#line 132 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->tags); -#line 133 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->pixbuf); -#line 134 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->display_pixbuf); -#line 135 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->brightened); -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - G_OBJECT_CLASS (checkerboard_item_parent_class)->finalize (obj); -#line 5539 "CheckerboardLayout.c" -} - - -GType -checkerboard_item_get_type (void) -{ - static volatile gsize checkerboard_item_type_id__volatile = 0; - if (g_once_init_enter (&checkerboard_item_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CheckerboardItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) checkerboard_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CheckerboardItem), 0, (GInstanceInitFunc) checkerboard_item_instance_init, NULL }; - GType checkerboard_item_type_id; - checkerboard_item_type_id = g_type_register_static (TYPE_THUMBNAIL_VIEW, "CheckerboardItem", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&checkerboard_item_type_id__volatile, checkerboard_item_type_id); - } - return checkerboard_item_type_id__volatile; -} - - -static void -_vala_checkerboard_item_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - CheckerboardItem * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - switch (property_id) { -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - case CHECKERBOARD_ITEM_HAS_TAGS_PROPERTY: -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_value_set_boolean (value, checkerboard_item_get_has_tags (self)); -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 5573 "CheckerboardLayout.c" - default: -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 5579 "CheckerboardLayout.c" - } -} - - -static void -_vala_checkerboard_item_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - CheckerboardItem * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - switch (property_id) { -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - case CHECKERBOARD_ITEM_HAS_TAGS_PROPERTY: -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_set_has_tags (self, g_value_get_boolean (value)); -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 5600 "CheckerboardLayout.c" - default: -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 98 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 5606 "CheckerboardLayout.c" - } -} - - -static void -_checkerboard_layout_on_contents_altered_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self) -{ -#line 911 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_on_contents_altered ((CheckerboardLayout*) self, added, removed); -#line 5619 "CheckerboardLayout.c" -} - - -static void -_checkerboard_layout_on_items_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 912 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_on_items_altered ((CheckerboardLayout*) self); -#line 5630 "CheckerboardLayout.c" -} - - -static void -_checkerboard_layout_on_items_state_changed_view_collection_items_state_changed (ViewCollection* _sender, - GeeIterable* changed, - gpointer self) -{ -#line 913 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_on_items_state_changed ((CheckerboardLayout*) self, changed); -#line 5641 "CheckerboardLayout.c" -} - - -static void -_checkerboard_layout_on_items_visibility_changed_view_collection_items_visibility_changed (ViewCollection* _sender, - GeeCollection* changed, - gpointer self) -{ -#line 914 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_on_items_visibility_changed ((CheckerboardLayout*) self, changed); -#line 5652 "CheckerboardLayout.c" -} - - -static void -_checkerboard_layout_on_ordering_changed_data_collection_ordering_changed (DataCollection* _sender, - gpointer self) -{ -#line 915 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_on_ordering_changed ((CheckerboardLayout*) self); -#line 5662 "CheckerboardLayout.c" -} - - -static void -_checkerboard_layout_on_views_altered_view_collection_views_altered (ViewCollection* _sender, - GeeCollection* views, - gpointer self) -{ -#line 916 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_on_views_altered ((CheckerboardLayout*) self, views); -#line 5673 "CheckerboardLayout.c" -} - - -static void -_checkerboard_layout_on_geometries_altered_view_collection_geometries_altered (ViewCollection* _sender, - GeeCollection* views, - gpointer self) -{ -#line 917 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_on_geometries_altered ((CheckerboardLayout*) self); -#line 5684 "CheckerboardLayout.c" -} - - -static void -_checkerboard_layout_on_items_selection_changed_view_collection_items_selected (ViewCollection* _sender, - GeeIterable* selected, - gpointer self) -{ -#line 918 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_on_items_selection_changed ((CheckerboardLayout*) self); -#line 5695 "CheckerboardLayout.c" -} - - -static void -_checkerboard_layout_on_items_selection_changed_view_collection_items_unselected (ViewCollection* _sender, - GeeIterable* unselected, - gpointer self) -{ -#line 919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_on_items_selection_changed ((CheckerboardLayout*) self); -#line 5706 "CheckerboardLayout.c" -} - - -static void -_checkerboard_layout_on_viewport_shifted_gtk_adjustment_value_changed (GtkAdjustment* _sender, - gpointer self) -{ -#line 922 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_on_viewport_shifted ((CheckerboardLayout*) self); -#line 5716 "CheckerboardLayout.c" -} - - -static void -_checkerboard_layout_on_viewport_resized_gtk_widget_size_allocate (GtkWidget* _sender, - GtkAllocation* allocation, - gpointer self) -{ -#line 928 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_on_viewport_resized ((CheckerboardLayout*) self); -#line 5727 "CheckerboardLayout.c" -} - - -static void -_checkerboard_layout_on_colors_changed_config_facade_colors_changed (ConfigFacade* _sender, - gpointer self) -{ -#line 930 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_on_colors_changed ((CheckerboardLayout*) self); -#line 5737 "CheckerboardLayout.c" -} - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 883 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return self ? data_collection_ref (self) : NULL; -#line 5746 "CheckerboardLayout.c" -} - - -CheckerboardLayout* -checkerboard_layout_construct (GType object_type, - ViewCollection* view) -{ - CheckerboardLayout * self = NULL; - ViewCollection* _tmp0_; - ConfigFacade* _tmp1_; - ConfigFacade* _tmp2_; - GdkRGBA _tmp3_ = {0}; - ConfigFacade* _tmp4_; - ConfigFacade* _tmp5_; -#line 882 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (view), NULL); -#line 882 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = (CheckerboardLayout*) g_object_new (object_type, NULL); -#line 883 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _data_collection_ref0 (view); -#line 883 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _data_collection_unref0 (self->priv->view); -#line 883 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->view = _tmp0_; -#line 885 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_clear_drag_select (self); -#line 888 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _checkerboard_layout_on_contents_altered_data_collection_contents_altered, self, 0); -#line 889 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _checkerboard_layout_on_items_altered_data_collection_items_altered, self, 0); -#line 890 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_connect_object (view, "items-state-changed", (GCallback) _checkerboard_layout_on_items_state_changed_view_collection_items_state_changed, self, 0); -#line 891 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_connect_object (view, "items-visibility-changed", (GCallback) _checkerboard_layout_on_items_visibility_changed_view_collection_items_visibility_changed, self, 0); -#line 892 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_COLLECTION, DataCollection), "ordering-changed", (GCallback) _checkerboard_layout_on_ordering_changed_data_collection_ordering_changed, self, 0); -#line 893 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_connect_object (view, "views-altered", (GCallback) _checkerboard_layout_on_views_altered_view_collection_views_altered, self, 0); -#line 894 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_connect_object (view, "geometries-altered", (GCallback) _checkerboard_layout_on_geometries_altered_view_collection_geometries_altered, self, 0); -#line 895 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_connect_object (view, "items-selected", (GCallback) _checkerboard_layout_on_items_selection_changed_view_collection_items_selected, self, 0); -#line 896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_connect_object (view, "items-unselected", (GCallback) _checkerboard_layout_on_items_selection_changed_view_collection_items_unselected, self, 0); -#line 898 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = config_facade_get_instance (); -#line 898 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _tmp1_; -#line 898 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - config_facade_get_bg_color (_tmp2_, &_tmp3_); -#line 898 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_override_background_color (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), GTK_STATE_FLAG_NORMAL, &_tmp3_); -#line 898 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp2_); -#line 900 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = config_facade_get_instance (); -#line 900 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = _tmp4_; -#line 900 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_connect_object (_tmp5_, "colors-changed", (GCallback) _checkerboard_layout_on_colors_changed_config_facade_colors_changed, self, 0); -#line 900 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp5_); -#line 903 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_set_has_tooltip (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), TRUE); -#line 882 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return self; -#line 5813 "CheckerboardLayout.c" -} - - -CheckerboardLayout* -checkerboard_layout_new (ViewCollection* view) -{ -#line 882 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return checkerboard_layout_construct (TYPE_CHECKERBOARD_LAYOUT, view); -#line 5822 "CheckerboardLayout.c" -} - - -void -checkerboard_layout_set_adjustments (CheckerboardLayout* self, - GtkAdjustment* hadjustment, - GtkAdjustment* vadjustment) -{ - GtkAdjustment* _tmp0_; - GtkAdjustment* _tmp1_; - GtkContainer* _tmp2_; - GtkContainer* _tmp3_; -#line 933 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 933 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (GTK_IS_ADJUSTMENT (hadjustment)); -#line 933 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (GTK_IS_ADJUSTMENT (vadjustment)); -#line 934 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _g_object_ref0 (hadjustment); -#line 934 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->hadjustment); -#line 934 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->hadjustment = _tmp0_; -#line 935 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _g_object_ref0 (vadjustment); -#line 935 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->vadjustment); -#line 935 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->vadjustment = _tmp1_; -#line 938 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_connect_object (hadjustment, "value-changed", (GCallback) _checkerboard_layout_on_viewport_shifted_gtk_adjustment_value_changed, self, 0); -#line 939 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_connect_object (vadjustment, "value-changed", (GCallback) _checkerboard_layout_on_viewport_shifted_gtk_adjustment_value_changed, self, 0); -#line 942 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 942 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = _tmp2_; -#line 942 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), "size-allocate", (GCallback) _checkerboard_layout_on_viewport_resized_gtk_widget_size_allocate, self, 0); -#line 5863 "CheckerboardLayout.c" -} - - -void -checkerboard_layout_set_scale (CheckerboardLayout* self, - gint scale) -{ -#line 947 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 948 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->scale = scale; -#line 5875 "CheckerboardLayout.c" -} - - -gint -checkerboard_layout_get_scale (CheckerboardLayout* self) -{ - gint result = 0; - gint _tmp0_; -#line 951 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), 0); -#line 952 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->scale; -#line 952 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp0_; -#line 952 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 5892 "CheckerboardLayout.c" -} - - -void -checkerboard_layout_set_name (CheckerboardLayout* self, - const gchar* name) -{ - gchar* _tmp0_; -#line 955 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 955 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (name != NULL); -#line 956 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = g_strdup (name); -#line 956 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (self->priv->page_name); -#line 956 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->page_name = _tmp0_; -#line 5911 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_on_viewport_resized (CheckerboardLayout* self) -{ - GtkRequisition req = {0}; - GtkRequisition _tmp0_ = {0}; - GtkAllocation parent_allocation = {0}; - GtkContainer* _tmp1_; - GtkContainer* _tmp2_; - GtkAllocation _tmp3_ = {0}; - const gchar* _tmp4_; - gboolean _tmp15_; -#line 959 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 961 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_get_preferred_size (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), NULL, &_tmp0_); -#line 961 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - req = _tmp0_; -#line 964 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 964 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _tmp1_; -#line 964 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), &_tmp3_); -#line 964 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - parent_allocation = _tmp3_; -#line 966 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = self->priv->message; -#line 966 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp4_ == NULL) { -#line 5944 "CheckerboardLayout.c" - GtkRequisition _tmp5_; - gint _tmp6_; -#line 975 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = req; -#line 975 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = _tmp5_.height; -#line 975 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp6_ != 0) { -#line 5953 "CheckerboardLayout.c" - GtkAllocation _tmp7_; - gint _tmp8_; - GtkRequisition _tmp9_; - gint _tmp10_; -#line 976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = parent_allocation; -#line 976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = _tmp7_.width; -#line 976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = req; -#line 976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = _tmp9_.height; -#line 976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp8_ - CHECKERBOARD_LAYOUT_SCROLLBAR_PLACEHOLDER_WIDTH, _tmp10_); -#line 5968 "CheckerboardLayout.c" - } - } else { - GtkAllocation _tmp11_; - gint _tmp12_; - GtkAllocation _tmp13_; - gint _tmp14_; -#line 980 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = parent_allocation; -#line 980 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = _tmp11_.width; -#line 980 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = parent_allocation; -#line 980 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = _tmp13_.height; -#line 980 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp12_, _tmp14_); -#line 5985 "CheckerboardLayout.c" - } -#line 985 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_viewport_resized (self); -#line 987 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = self->priv->size_allocate_due_to_reflow; -#line 987 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!_tmp15_) { -#line 988 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_clear_anchor (self); -#line 5995 "CheckerboardLayout.c" - } else { -#line 990 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->size_allocate_due_to_reflow = FALSE; -#line 5999 "CheckerboardLayout.c" - } -} - - -static void -checkerboard_layout_on_viewport_shifted (CheckerboardLayout* self) -{ -#line 993 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 994 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_update_visible_page (self); -#line 995 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_need_exposure (self, "on_viewport_shift"); -#line 997 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_clear_anchor (self); -#line 6015 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_on_items_selection_changed (CheckerboardLayout* self) -{ -#line 1000 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1001 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_clear_anchor (self); -#line 6026 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_clear_anchor (CheckerboardLayout* self) -{ - gboolean _tmp0_; -#line 1004 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1005 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->in_center_on_anchor; -#line 1005 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_) { -#line 1006 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 6042 "CheckerboardLayout.c" - } -#line 1008 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->anchor); -#line 1008 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->anchor = NULL; -#line 6048 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_update_anchor (CheckerboardLayout* self) -{ - gboolean _tmp0_; - GeeList* items_on_page = NULL; - GdkRectangle _tmp1_; - GeeList* _tmp2_; - GeeList* _tmp3_; - gint _tmp4_; - gint _tmp5_; - GtkAdjustment* _tmp20_; - GeeList* _tmp21_; - GeeList* _tmp22_; - gint _tmp23_; - gint _tmp24_; - gpointer _tmp25_; -#line 1011 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->in_center_on_anchor; -#line 1012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _vala_assert (!_tmp0_, "!in_center_on_anchor"); -#line 1014 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->visible_page; -#line 1014 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = checkerboard_layout_intersection (self, &_tmp1_); -#line 1014 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - items_on_page = _tmp2_; -#line 1015 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = items_on_page; -#line 1015 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1015 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = _tmp4_; -#line 1015 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp5_ == 0) { -#line 1016 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->anchor); -#line 1016 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->anchor = NULL; -#line 1017 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (items_on_page); -#line 1017 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 6096 "CheckerboardLayout.c" - } - { - GeeList* _item_list = NULL; - GeeList* _tmp6_; - GeeList* _tmp7_; - gint _item_size = 0; - GeeList* _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _item_index = 0; -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = items_on_page; -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = _g_object_ref0 (_tmp6_); -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _item_list = _tmp7_; -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = _item_list; -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = _tmp9_; -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _item_size = _tmp10_; -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _item_index = -1; -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - while (TRUE) { -#line 6125 "CheckerboardLayout.c" - gint _tmp11_; - gint _tmp12_; - gint _tmp13_; - CheckerboardItem* item = NULL; - GeeList* _tmp14_; - gint _tmp15_; - gpointer _tmp16_; - CheckerboardItem* _tmp17_; -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = _item_index; -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _item_index = _tmp11_ + 1; -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = _item_index; -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = _item_size; -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!(_tmp12_ < _tmp13_)) { -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 6146 "CheckerboardLayout.c" - } -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = _item_list; -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = _item_index; -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = gee_list_get (_tmp14_, _tmp15_); -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item = (CheckerboardItem*) _tmp16_; -#line 1021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp17_ = item; -#line 1021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_VIEW, DataView))) { -#line 6160 "CheckerboardLayout.c" - CheckerboardItem* _tmp18_; - CheckerboardItem* _tmp19_; -#line 1022 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = item; -#line 1022 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = _g_object_ref0 (_tmp18_); -#line 1022 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->anchor); -#line 1022 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->anchor = _tmp19_; -#line 1023 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 1023 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_item_list); -#line 1023 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (items_on_page); -#line 1023 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 6179 "CheckerboardLayout.c" - } -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 6183 "CheckerboardLayout.c" - } -#line 1020 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_item_list); -#line 6187 "CheckerboardLayout.c" - } -#line 1027 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp20_ = self->priv->vadjustment; -#line 1027 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (gtk_adjustment_get_value (_tmp20_) == ((gdouble) 0)) { -#line 1028 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->anchor); -#line 1028 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->anchor = NULL; -#line 1029 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (items_on_page); -#line 1029 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 6201 "CheckerboardLayout.c" - } -#line 1034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp21_ = items_on_page; -#line 1034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp22_ = items_on_page; -#line 1034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp23_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp24_ = _tmp23_; -#line 1034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp25_ = gee_list_get (_tmp21_, ((gint) _tmp24_) / 2); -#line 1034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->anchor); -#line 1034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->anchor = (CheckerboardItem*) _tmp25_; -#line 1011 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (items_on_page); -#line 6219 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_center_on_anchor (CheckerboardLayout* self, - gdouble upper) -{ - CheckerboardItem* _tmp0_; - gdouble anchor_pos = 0.0; - CheckerboardItem* _tmp1_; - GdkRectangle _tmp2_; - gint _tmp3_; - CheckerboardItem* _tmp4_; - GdkRectangle _tmp5_; - gint _tmp6_; - GtkAdjustment* _tmp7_; - GtkAdjustment* _tmp8_; - gdouble _tmp9_; - GtkAdjustment* _tmp10_; - GtkAdjustment* _tmp11_; - GtkAdjustment* _tmp12_; -#line 1037 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1038 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->anchor; -#line 1038 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_ == NULL) { -#line 1039 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 6249 "CheckerboardLayout.c" - } -#line 1041 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->in_center_on_anchor = TRUE; -#line 1043 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->anchor; -#line 1043 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _tmp1_->allocation; -#line 1043 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = _tmp2_.y; -#line 1043 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = self->priv->anchor; -#line 1043 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = _tmp4_->allocation; -#line 1043 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = _tmp5_.height; -#line 1043 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = self->priv->vadjustment; -#line 1043 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - anchor_pos = (_tmp3_ + (_tmp6_ / 2)) - (gtk_adjustment_get_page_size (_tmp7_) / 2); -#line 1045 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = self->priv->vadjustment; -#line 1045 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = anchor_pos; -#line 1045 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = self->priv->vadjustment; -#line 1045 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = self->priv->vadjustment; -#line 1045 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = self->priv->vadjustment; -#line 1045 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_adjustment_set_value (_tmp8_, CLAMP (_tmp9_, gtk_adjustment_get_lower (_tmp10_), gtk_adjustment_get_upper (_tmp11_) - gtk_adjustment_get_page_size (_tmp12_))); -#line 1048 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->in_center_on_anchor = FALSE; -#line 6283 "CheckerboardLayout.c" -} - - -void -checkerboard_layout_set_cursor (CheckerboardLayout* self, - CheckerboardItem* item) -{ - GeeHashSet* collection = NULL; - GeeHashSet* _tmp0_; - CheckerboardItem* _tmp1_; - CheckerboardItem* _tmp7_; - GeeHashSet* _tmp8_; - GeeHashSet* _tmp9_; -#line 1051 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1051 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (item)); -#line 1052 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = gee_hash_set_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1052 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - collection = _tmp0_; -#line 1053 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->cursor; -#line 1053 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_ != NULL) { -#line 6309 "CheckerboardLayout.c" - CheckerboardItem* _tmp2_; - ViewCollection* _tmp3_; - CheckerboardItem* _tmp4_; -#line 1054 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->cursor; -#line 1054 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_set_is_cursor (_tmp2_, FALSE); -#line 1056 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = self->priv->view; -#line 1056 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = self->priv->cursor; -#line 1056 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject))) { -#line 6323 "CheckerboardLayout.c" - GeeHashSet* _tmp5_; - CheckerboardItem* _tmp6_; -#line 1057 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = collection; -#line 1057 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = self->priv->cursor; -#line 1057 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_VIEW, DataView)); -#line 6332 "CheckerboardLayout.c" - } - } -#line 1060 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_set_is_cursor (item, TRUE); -#line 1061 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = _g_object_ref0 (item); -#line 1061 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->cursor); -#line 1061 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->cursor = _tmp7_; -#line 1062 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = collection; -#line 1062 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (item, TYPE_DATA_VIEW, DataView)); -#line 1063 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = collection; -#line 1063 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_on_items_state_changed (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1051 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (collection); -#line 6353 "CheckerboardLayout.c" -} - - -CheckerboardItem* -checkerboard_layout_get_cursor (CheckerboardLayout* self) -{ - CheckerboardItem* result = NULL; - CheckerboardItem* _tmp0_; - CheckerboardItem* _tmp1_; -#line 1066 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), NULL); -#line 1067 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->cursor; -#line 1067 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 1067 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp1_; -#line 1067 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 6373 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_on_contents_altered (CheckerboardLayout* self, - GeeIterable* added, - GeeIterable* removed) -{ -#line 1071 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1071 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added)); -#line 1071 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed)); -#line 1073 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (added != NULL) { -#line 1074 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (self->priv->message); -#line 1074 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->message = NULL; -#line 6394 "CheckerboardLayout.c" - } -#line 1076 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (removed != NULL) { -#line 6398 "CheckerboardLayout.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = gee_iterable_iterator (removed); -#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _object_it = _tmp0_; -#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - while (TRUE) { -#line 6408 "CheckerboardLayout.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - GeeHashSet* _tmp4_; - DataObject* _tmp5_; -#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _object_it; -#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 6421 "CheckerboardLayout.c" - } -#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _object_it; -#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - object = (DataObject*) _tmp3_; -#line 1078 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = self->priv->exposed_items; -#line 1078 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = object; -#line 1078 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (object); -#line 6437 "CheckerboardLayout.c" - } -#line 1077 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_object_it); -#line 6441 "CheckerboardLayout.c" - } - } -#line 1083 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->item_rows = (_vala_array_free (self->priv->item_rows, self->priv->item_rows_length1, (GDestroyNotify) checkerboard_layout_layout_row_unref), NULL); -#line 1083 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->item_rows = NULL; -#line 1083 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->item_rows_length1 = 0; -#line 1083 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->_item_rows_size_ = self->priv->item_rows_length1; -#line 1085 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_need_reflow (self, "on_contents_altered"); -#line 6454 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_on_items_altered (CheckerboardLayout* self) -{ -#line 1088 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1089 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_need_reflow (self, "on_items_altered"); -#line 6465 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_on_items_state_changed (CheckerboardLayout* self, - GeeIterable* changed) -{ -#line 1092 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1092 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (GEE_IS_ITERABLE (changed)); -#line 1093 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_items_dirty (self, "on_items_state_changed", changed); -#line 6479 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_on_items_visibility_changed (CheckerboardLayout* self, - GeeIterable* changed) -{ -#line 1096 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1096 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (GEE_IS_ITERABLE (changed)); -#line 1097 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_need_reflow (self, "on_items_visibility_changed"); -#line 6493 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_on_ordering_changed (CheckerboardLayout* self) -{ -#line 1100 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1101 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_need_reflow (self, "on_ordering_changed"); -#line 6504 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_on_views_altered (CheckerboardLayout* self, - GeeCollection* altered) -{ -#line 1104 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1104 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (GEE_IS_COLLECTION (altered)); -#line 1105 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_items_dirty (self, "on_views_altered", G_TYPE_CHECK_INSTANCE_CAST (altered, GEE_TYPE_ITERABLE, GeeIterable)); -#line 6518 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_on_geometries_altered (CheckerboardLayout* self) -{ -#line 1108 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1109 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_need_reflow (self, "on_geometries_altered"); -#line 6529 "CheckerboardLayout.c" -} - - -static gboolean -_checkerboard_layout_do_reflow_gsource_func (gpointer self) -{ - gboolean result; - result = checkerboard_layout_do_reflow ((CheckerboardLayout*) self); -#line 1125 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 6540 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_need_reflow (CheckerboardLayout* self, - const gchar* caller) -{ - gboolean _tmp0_; - gboolean _tmp1_; -#line 1112 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1112 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (caller != NULL); -#line 1113 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->flow_scheduled; -#line 1113 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_) { -#line 1114 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 6560 "CheckerboardLayout.c" - } -#line 1116 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->is_in_view; -#line 1116 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!_tmp1_) { -#line 1117 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->reflow_needed = TRUE; -#line 1118 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 6570 "CheckerboardLayout.c" - } -#line 1124 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->flow_scheduled = TRUE; -#line 1125 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_idle_add_full (G_PRIORITY_HIGH, _checkerboard_layout_do_reflow_gsource_func, g_object_ref (self), g_object_unref); -#line 6576 "CheckerboardLayout.c" -} - - -static gboolean -checkerboard_layout_do_reflow (CheckerboardLayout* self) -{ - gboolean result = FALSE; -#line 1128 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), FALSE); -#line 1129 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_reflow (self, "do_reflow"); -#line 1130 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_need_exposure (self, "do_reflow"); -#line 1132 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->flow_scheduled = FALSE; -#line 1134 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = FALSE; -#line 1134 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 6596 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_need_exposure (CheckerboardLayout* self, - const gchar* caller) -{ -#line 1137 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1137 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (caller != NULL); -#line 1141 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->exposure_dirty = TRUE; -#line 1142 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 6612 "CheckerboardLayout.c" -} - - -void -checkerboard_layout_set_message (CheckerboardLayout* self, - const gchar* text) -{ - const gchar* _tmp0_; - gchar* _tmp1_; -#line 1145 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1146 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->message; -#line 1146 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (g_strcmp0 (text, _tmp0_) == 0) { -#line 1147 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 6630 "CheckerboardLayout.c" - } -#line 1149 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = g_strdup (text); -#line 1149 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (self->priv->message); -#line 1149 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->message = _tmp1_; -#line 1151 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (text != NULL) { -#line 6640 "CheckerboardLayout.c" - GtkContainer* _tmp2_; - GtkContainer* _tmp3_; -#line 1154 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 1154 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = _tmp2_; -#line 1154 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp3_ != NULL) { -#line 6649 "CheckerboardLayout.c" - GtkAllocation parent_allocation = {0}; - GtkContainer* _tmp4_; - GtkContainer* _tmp5_; - GtkAllocation _tmp6_ = {0}; - GtkAllocation _tmp7_; - gint _tmp8_; - GtkAllocation _tmp9_; - gint _tmp10_; -#line 1156 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 1156 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = _tmp4_; -#line 1156 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), &_tmp6_); -#line 1156 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - parent_allocation = _tmp6_; -#line 1158 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = parent_allocation; -#line 1158 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = _tmp7_.width; -#line 1158 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = parent_allocation; -#line 1158 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = _tmp9_.height; -#line 1158 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp8_, _tmp10_); -#line 6676 "CheckerboardLayout.c" - } - } else { -#line 1162 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_need_reflow (self, "set_message"); -#line 6681 "CheckerboardLayout.c" - } -} - - -void -checkerboard_layout_unset_message (CheckerboardLayout* self) -{ -#line 1166 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1167 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_set_message (self, NULL); -#line 6693 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_update_visible_page (CheckerboardLayout* self) -{ - gboolean _tmp0_ = FALSE; - GtkAdjustment* _tmp1_; -#line 1170 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1171 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->hadjustment; -#line 1171 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_ != NULL) { -#line 6708 "CheckerboardLayout.c" - GtkAdjustment* _tmp2_; -#line 1171 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->vadjustment; -#line 1171 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _tmp2_ != NULL; -#line 6714 "CheckerboardLayout.c" - } else { -#line 1171 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = FALSE; -#line 6718 "CheckerboardLayout.c" - } -#line 1171 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_) { -#line 6722 "CheckerboardLayout.c" - GtkAdjustment* _tmp3_; - GtkAdjustment* _tmp4_; - GdkRectangle _tmp5_ = {0}; -#line 1172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = self->priv->hadjustment; -#line 1172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = self->priv->vadjustment; -#line 1172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - get_adjustment_page (_tmp3_, _tmp4_, &_tmp5_); -#line 1172 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->visible_page = _tmp5_; -#line 6734 "CheckerboardLayout.c" - } -} - - -void -checkerboard_layout_set_in_view (CheckerboardLayout* self, - gboolean in_view) -{ -#line 1175 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1176 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->is_in_view = in_view; -#line 1178 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (in_view) { -#line 6749 "CheckerboardLayout.c" - gboolean _tmp0_; -#line 1179 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->reflow_needed; -#line 1179 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_) { -#line 1180 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_need_reflow (self, "set_in_view (true)"); -#line 6757 "CheckerboardLayout.c" - } else { -#line 1182 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_need_exposure (self, "set_in_view (true)"); -#line 6761 "CheckerboardLayout.c" - } - } else { -#line 1184 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_unexpose_items (self, "set_in_view (false)"); -#line 6766 "CheckerboardLayout.c" - } -} - - -static gpointer -_checkerboard_layout_layout_row_ref0 (gpointer self) -{ -#line 1200 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return self ? checkerboard_layout_layout_row_ref (self) : NULL; -#line 6776 "CheckerboardLayout.c" -} - - -CheckerboardItem* -checkerboard_layout_get_item_at_pixel (CheckerboardLayout* self, - gdouble xd, - gdouble yd) -{ - CheckerboardItem* result = NULL; - gboolean _tmp0_ = FALSE; - const gchar* _tmp1_; - gint x = 0; - gint y = 0; - CheckerboardLayoutLayoutRow* in_range = NULL; - gint min = 0; - gint max = 0; - CheckerboardLayoutLayoutRow** _tmp3_; - gint _tmp3__length1; - CheckerboardLayoutLayoutRow* _tmp28_; - CheckerboardLayoutLayoutRow* _tmp29_; - CheckerboardItem** _tmp30_; - gint _tmp30__length1; -#line 1187 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), NULL); -#line 1188 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->message; -#line 1188 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_ != NULL) { -#line 1188 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = TRUE; -#line 6807 "CheckerboardLayout.c" - } else { - CheckerboardLayoutLayoutRow** _tmp2_; - gint _tmp2__length1; -#line 1188 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->item_rows; -#line 1188 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2__length1 = self->priv->item_rows_length1; -#line 1188 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _tmp2_ == NULL; -#line 6817 "CheckerboardLayout.c" - } -#line 1188 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_) { -#line 1189 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = NULL; -#line 1189 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 6825 "CheckerboardLayout.c" - } -#line 1191 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - x = (gint) xd; -#line 1192 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - y = (gint) yd; -#line 1195 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - in_range = NULL; -#line 1196 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - min = 0; -#line 1197 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = self->priv->item_rows; -#line 1197 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3__length1 = self->priv->item_rows_length1; -#line 1197 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - max = _tmp3__length1; -#line 6841 "CheckerboardLayout.c" - { - gboolean _tmp4_ = FALSE; -#line 1198 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = TRUE; -#line 1198 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - while (TRUE) { -#line 6848 "CheckerboardLayout.c" - gint mid = 0; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - CheckerboardLayoutLayoutRow* row = NULL; - CheckerboardLayoutLayoutRow** _tmp8_; - gint _tmp8__length1; - gint _tmp9_; - CheckerboardLayoutLayoutRow* _tmp10_; - CheckerboardLayoutLayoutRow* _tmp11_; - gboolean _tmp12_ = FALSE; - CheckerboardLayoutLayoutRow* _tmp13_; - gint _tmp26_; - gint _tmp27_; -#line 1198 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!_tmp4_) { -#line 6865 "CheckerboardLayout.c" - } -#line 1198 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = FALSE; -#line 1199 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = min; -#line 1199 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = max; -#line 1199 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = min; -#line 1199 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - mid = _tmp5_ + ((_tmp6_ - _tmp7_) / 2); -#line 1200 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = self->priv->item_rows; -#line 1200 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8__length1 = self->priv->item_rows_length1; -#line 1200 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = mid; -#line 1200 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = _tmp8_[_tmp9_]; -#line 1200 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = _checkerboard_layout_layout_row_ref0 (_tmp10_); -#line 1200 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = _tmp11_; -#line 1202 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = row; -#line 1202 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp13_ == NULL) { -#line 1202 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = TRUE; -#line 6895 "CheckerboardLayout.c" - } else { - gint _tmp14_; - CheckerboardLayoutLayoutRow* _tmp15_; - gint _tmp16_; -#line 1202 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = y; -#line 1202 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = row; -#line 1202 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = _tmp15_->y; -#line 1202 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = _tmp14_ < _tmp16_; -#line 6908 "CheckerboardLayout.c" - } -#line 1202 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp12_) { -#line 6912 "CheckerboardLayout.c" - gint _tmp17_; -#line 1205 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp17_ = mid; -#line 1205 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - max = _tmp17_ - 1; -#line 6918 "CheckerboardLayout.c" - } else { - gint _tmp18_; - CheckerboardLayoutLayoutRow* _tmp19_; - gint _tmp20_; - CheckerboardLayoutLayoutRow* _tmp21_; - gint _tmp22_; -#line 1206 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = y; -#line 1206 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = row; -#line 1206 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp20_ = _tmp19_->y; -#line 1206 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp21_ = row; -#line 1206 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp22_ = _tmp21_->height; -#line 1206 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp18_ > (_tmp20_ + _tmp22_)) { -#line 6937 "CheckerboardLayout.c" - gint _tmp23_; -#line 1208 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp23_ = mid; -#line 1208 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - min = _tmp23_ + 1; -#line 6943 "CheckerboardLayout.c" - } else { - CheckerboardLayoutLayoutRow* _tmp24_; - CheckerboardLayoutLayoutRow* _tmp25_; -#line 1211 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp24_ = row; -#line 1211 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp25_ = _checkerboard_layout_layout_row_ref0 (_tmp24_); -#line 1211 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (in_range); -#line 1211 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - in_range = _tmp25_; -#line 1213 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (row); -#line 1213 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 6959 "CheckerboardLayout.c" - } - } -#line 1216 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp26_ = min; -#line 1216 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp27_ = max; -#line 1216 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp26_ > _tmp27_) { -#line 1217 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (row); -#line 1217 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 6972 "CheckerboardLayout.c" - } -#line 1198 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (row); -#line 6976 "CheckerboardLayout.c" - } - } -#line 1220 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp28_ = in_range; -#line 1220 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp28_ == NULL) { -#line 1221 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = NULL; -#line 1221 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (in_range); -#line 1221 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 6989 "CheckerboardLayout.c" - } -#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp29_ = in_range; -#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp30_ = _tmp29_->items; -#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp30__length1 = _tmp29_->items_length1; -#line 6997 "CheckerboardLayout.c" - { - CheckerboardItem** item_collection = NULL; - gint item_collection_length1 = 0; - gint _item_collection_size_ = 0; - gint item_it = 0; -#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item_collection = _tmp30_; -#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item_collection_length1 = _tmp30__length1; -#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - for (item_it = 0; item_it < _tmp30__length1; item_it = item_it + 1) { -#line 7009 "CheckerboardLayout.c" - CheckerboardItem* _tmp31_; - CheckerboardItem* item = NULL; -#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp31_ = _g_object_ref0 (item_collection[item_it]); -#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item = _tmp31_; -#line 7016 "CheckerboardLayout.c" - { - CheckerboardItem* _tmp32_; - gint _tmp33_; - CheckerboardItem* _tmp34_; - GdkRectangle _tmp35_; - gint _tmp36_; - gboolean _tmp37_ = FALSE; - gboolean _tmp38_ = FALSE; - gint _tmp39_; - CheckerboardItem* _tmp40_; - GdkRectangle _tmp41_; - gint _tmp42_; - CheckerboardItem* _tmp43_; - GdkRectangle _tmp44_; - gint _tmp45_; -#line 1227 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp32_ = item; -#line 1227 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp32_ == NULL) { -#line 1228 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 1228 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - continue; -#line 7040 "CheckerboardLayout.c" - } -#line 1230 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp33_ = x; -#line 1230 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp34_ = item; -#line 1230 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp35_ = _tmp34_->allocation; -#line 1230 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp36_ = _tmp35_.x; -#line 1230 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp33_ < _tmp36_) { -#line 1232 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 1232 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 7056 "CheckerboardLayout.c" - } -#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp39_ = x; -#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp40_ = item; -#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp41_ = _tmp40_->allocation; -#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp42_ = _tmp41_.x; -#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp43_ = item; -#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp44_ = _tmp43_->allocation; -#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp45_ = _tmp44_.width; -#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp39_ <= (_tmp42_ + _tmp45_)) { -#line 7074 "CheckerboardLayout.c" - gint _tmp46_; - CheckerboardItem* _tmp47_; - GdkRectangle _tmp48_; - gint _tmp49_; -#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp46_ = y; -#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp47_ = item; -#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp48_ = _tmp47_->allocation; -#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp49_ = _tmp48_.y; -#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp38_ = _tmp46_ >= _tmp49_; -#line 7089 "CheckerboardLayout.c" - } else { -#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp38_ = FALSE; -#line 7093 "CheckerboardLayout.c" - } -#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp38_) { -#line 7097 "CheckerboardLayout.c" - gint _tmp50_; - CheckerboardItem* _tmp51_; - GdkRectangle _tmp52_; - gint _tmp53_; - CheckerboardItem* _tmp54_; - GdkRectangle _tmp55_; - gint _tmp56_; -#line 1238 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp50_ = y; -#line 1238 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp51_ = item; -#line 1238 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp52_ = _tmp51_->allocation; -#line 1238 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp53_ = _tmp52_.y; -#line 1238 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp54_ = item; -#line 1238 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp55_ = _tmp54_->allocation; -#line 1238 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp56_ = _tmp55_.height; -#line 1238 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp37_ = _tmp50_ <= (_tmp53_ + _tmp56_); -#line 7121 "CheckerboardLayout.c" - } else { -#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp37_ = FALSE; -#line 7125 "CheckerboardLayout.c" - } -#line 1237 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp37_) { -#line 1239 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = item; -#line 1239 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (in_range); -#line 1239 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 7135 "CheckerboardLayout.c" - } -#line 1224 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 7139 "CheckerboardLayout.c" - } - } - } -#line 1242 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = NULL; -#line 1242 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (in_range); -#line 1242 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 7149 "CheckerboardLayout.c" -} - - -static gchar -string_get (const gchar* self, - glong index) -{ - gchar result = '\0'; - gchar _tmp0_; -#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, '\0'); -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = ((gchar*) self)[index]; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 7167 "CheckerboardLayout.c" -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 7191 "CheckerboardLayout.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 7200 "CheckerboardLayout.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 7221 "CheckerboardLayout.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 7225 "CheckerboardLayout.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 7231 "CheckerboardLayout.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 7241 "CheckerboardLayout.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 7245 "CheckerboardLayout.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 7253 "CheckerboardLayout.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 7260 "CheckerboardLayout.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 7264 "CheckerboardLayout.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 7270 "CheckerboardLayout.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 7282 "CheckerboardLayout.c" -} - - -gint -checkerboard_layout_get_tag_index_at_pos (const gchar* tag_list, - gint pos) -{ - gint result = 0; - gint sep_len = 0; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint len = 0; - gint _tmp3_; - gint _tmp4_; - gboolean _tmp5_ = FALSE; - gint index = 0; -#line 1245 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (tag_list != NULL, 0); -#line 1246 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = strlen (TAG_TAG_LIST_SEPARATOR_STRING); -#line 1246 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _tmp0_; -#line 1246 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - sep_len = _tmp1_; -#line 1247 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = sep_len; -#line 1247 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _vala_assert (_tmp2_ > 0, "sep_len > 0"); -#line 1248 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = strlen (tag_list); -#line 1248 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = _tmp3_; -#line 1248 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - len = _tmp4_; -#line 1249 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (pos < 0) { -#line 1249 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = TRUE; -#line 7322 "CheckerboardLayout.c" - } else { - gint _tmp6_; -#line 1249 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = len; -#line 1249 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = pos >= _tmp6_; -#line 7329 "CheckerboardLayout.c" - } -#line 1249 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp5_) { -#line 1250 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = -1; -#line 1250 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 7337 "CheckerboardLayout.c" - } - { - gint i = 0; -#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - i = 0; -#line 7343 "CheckerboardLayout.c" - { - gboolean _tmp7_ = FALSE; -#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = TRUE; -#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - while (TRUE) { -#line 7350 "CheckerboardLayout.c" - gint _tmp9_; - gint _tmp10_; - gboolean _tmp11_ = FALSE; - gint _tmp12_; -#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!_tmp7_) { -#line 7357 "CheckerboardLayout.c" - gint _tmp8_; -#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = i; -#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - i = _tmp8_ + 1; -#line 7363 "CheckerboardLayout.c" - } -#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = FALSE; -#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = i; -#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = sep_len; -#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!(_tmp9_ < _tmp10_)) { -#line 1253 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 7375 "CheckerboardLayout.c" - } -#line 1254 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = i; -#line 1254 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (string_get (tag_list, (glong) pos) == string_get (TAG_TAG_LIST_SEPARATOR_STRING, (glong) _tmp12_)) { -#line 7381 "CheckerboardLayout.c" - gint _tmp13_; -#line 1254 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = i; -#line 1254 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = pos >= _tmp13_; -#line 7387 "CheckerboardLayout.c" - } else { -#line 1254 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = FALSE; -#line 7391 "CheckerboardLayout.c" - } -#line 1254 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp11_) { -#line 7395 "CheckerboardLayout.c" - gint _tmp14_; - gint _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gboolean _tmp18_; -#line 1255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = i; -#line 1255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = sep_len; -#line 1255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = string_substring (tag_list, (glong) (pos - _tmp14_), (glong) _tmp15_); -#line 1255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp17_ = _tmp16_; -#line 1255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = g_strcmp0 (_tmp17_, TAG_TAG_LIST_SEPARATOR_STRING) == 0; -#line 1255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp17_); -#line 1255 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp18_) { -#line 1256 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = -1; -#line 1256 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 7419 "CheckerboardLayout.c" - } - } - } - } - } -#line 1263 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - index = 0; -#line 7427 "CheckerboardLayout.c" - { - gint i = 0; -#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - i = 0; -#line 7432 "CheckerboardLayout.c" - { - gboolean _tmp19_ = FALSE; -#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = TRUE; -#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - while (TRUE) { -#line 7439 "CheckerboardLayout.c" - gint _tmp21_; - gboolean _tmp22_ = FALSE; - gboolean _tmp23_ = FALSE; - gint _tmp24_; -#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!_tmp19_) { -#line 7446 "CheckerboardLayout.c" - gint _tmp20_; -#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp20_ = i; -#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - i = _tmp20_ + 1; -#line 7452 "CheckerboardLayout.c" - } -#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = FALSE; -#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp21_ = i; -#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!(_tmp21_ < pos)) { -#line 1264 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 7462 "CheckerboardLayout.c" - } -#line 1265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp24_ = i; -#line 1265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (string_get (tag_list, (glong) _tmp24_) == string_get (TAG_TAG_LIST_SEPARATOR_STRING, (glong) 0)) { -#line 7468 "CheckerboardLayout.c" - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; -#line 1266 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp25_ = i; -#line 1266 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp26_ = sep_len; -#line 1266 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp27_ = len; -#line 1266 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp23_ = (_tmp25_ + _tmp26_) <= _tmp27_; -#line 7480 "CheckerboardLayout.c" - } else { -#line 1265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp23_ = FALSE; -#line 7484 "CheckerboardLayout.c" - } -#line 1265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp23_) { -#line 7488 "CheckerboardLayout.c" - gint _tmp28_; - gint _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; -#line 1267 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp28_ = i; -#line 1267 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp29_ = sep_len; -#line 1267 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp30_ = string_substring (tag_list, (glong) _tmp28_, (glong) _tmp29_); -#line 1267 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp31_ = _tmp30_; -#line 1267 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp22_ = g_strcmp0 (_tmp31_, TAG_TAG_LIST_SEPARATOR_STRING) == 0; -#line 1267 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp31_); -#line 7505 "CheckerboardLayout.c" - } else { -#line 1265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp22_ = FALSE; -#line 7509 "CheckerboardLayout.c" - } -#line 1265 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp22_) { -#line 7513 "CheckerboardLayout.c" - gint _tmp32_; - gint _tmp33_; - gint _tmp34_; -#line 1268 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp32_ = index; -#line 1268 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - index = _tmp32_ + 1; -#line 1269 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp33_ = i; -#line 1269 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp34_ = sep_len; -#line 1269 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - i = _tmp33_ + (_tmp34_ - 1); -#line 7527 "CheckerboardLayout.c" - } - } - } - } -#line 1272 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = index; -#line 1272 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 7536 "CheckerboardLayout.c" -} - - -static gint -checkerboard_layout_internal_handle_tag_mouse_event (CheckerboardLayout* self, - CheckerboardItem* item, - gint x, - gint y) -{ - gint result = 0; - PangoLayout* layout = NULL; - PangoLayout* _tmp0_; - PangoLayout* _tmp1_; - GdkRectangle rect = {0}; - GdkRectangle _tmp2_ = {0}; - gint index = 0; - gint trailing = 0; - gint px = 0; - GdkRectangle _tmp3_; - gint _tmp4_; - gint py = 0; - GdkRectangle _tmp5_; - gint _tmp6_; - PangoLayout* _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint _tmp10_ = 0; - gint _tmp11_ = 0; - gboolean _tmp12_; -#line 1275 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), 0); -#line 1275 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (item), 0); -#line 1276 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = checkerboard_item_get_tag_list_layout (item); -#line 1276 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - layout = _tmp0_; -#line 1277 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = layout; -#line 1277 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_ == NULL) { -#line 1278 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = -1; -#line 1278 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (layout); -#line 1278 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 7584 "CheckerboardLayout.c" - } -#line 1280 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_translate_coordinates (item, &x, &y); -#line 1282 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_get_subtitle_allocation (item, &_tmp2_); -#line 1282 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - rect = _tmp2_; -#line 1284 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = rect; -#line 1284 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = _tmp3_.x; -#line 1284 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - px = (x - _tmp4_) * PANGO_SCALE; -#line 1285 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = rect; -#line 1285 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = _tmp5_.y; -#line 1285 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - py = (y - _tmp6_) * PANGO_SCALE; -#line 1286 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = layout; -#line 1286 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = px; -#line 1286 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = py; -#line 1286 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = pango_layout_xy_to_index (_tmp7_, _tmp8_, _tmp9_, &_tmp10_, &_tmp11_); -#line 1286 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - index = _tmp10_; -#line 1286 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - trailing = _tmp11_; -#line 1286 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp12_) { -#line 7618 "CheckerboardLayout.c" - PangoLayout* _tmp13_; - const gchar* _tmp14_; - gint _tmp15_; -#line 1287 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = layout; -#line 1287 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = pango_layout_get_text (_tmp13_); -#line 1287 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = index; -#line 1287 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = checkerboard_layout_get_tag_index_at_pos (_tmp14_, _tmp15_); -#line 1287 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (layout); -#line 1287 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 7634 "CheckerboardLayout.c" - } -#line 1288 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = -1; -#line 1288 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (layout); -#line 1288 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 7642 "CheckerboardLayout.c" -} - - -gboolean -checkerboard_layout_handle_mouse_motion (CheckerboardLayout* self, - CheckerboardItem* item, - gint x, - gint y, - GdkModifierType mask) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; - gboolean _tmp2_; - gint tag_index = 0; - gint _tmp3_; - gint _tmp4_; -#line 1291 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), FALSE); -#line 1291 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (item), FALSE); -#line 1292 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = checkerboard_item_get_has_tags (item); -#line 1292 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _tmp1_; -#line 1292 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!_tmp2_) { -#line 1292 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = TRUE; -#line 7672 "CheckerboardLayout.c" - } else { -#line 1292 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = checkerboard_layout_is_drag_select_active (self); -#line 7676 "CheckerboardLayout.c" - } -#line 1292 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_) { -#line 1293 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = FALSE; -#line 1293 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 7684 "CheckerboardLayout.c" - } -#line 1294 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - tag_index = checkerboard_layout_internal_handle_tag_mouse_event (self, item, x, y); -#line 1295 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = tag_index; -#line 1295 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_highlight_user_visible_tag (item, _tmp3_); -#line 1296 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = tag_index; -#line 1296 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp4_ >= 0; -#line 1296 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 7698 "CheckerboardLayout.c" -} - - -gboolean -checkerboard_layout_handle_left_click (CheckerboardLayout* self, - CheckerboardItem* item, - gdouble xd, - gdouble yd, - GdkModifierType mask) -{ - gboolean result = FALSE; - gint tag_index = 0; - gint _tmp0_; -#line 1299 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), FALSE); -#line 1299 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (item), FALSE); -#line 1300 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - tag_index = checkerboard_layout_internal_handle_tag_mouse_event (self, item, (gint) round (xd), (gint) round (yd)); -#line 1301 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = tag_index; -#line 1301 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_ >= 0) { -#line 7722 "CheckerboardLayout.c" - Tag* tag = NULL; - gint _tmp1_; - Tag* _tmp2_; - LibraryWindow* _tmp3_; - LibraryWindow* _tmp4_; - Tag* _tmp5_; -#line 1302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = tag_index; -#line 1302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = checkerboard_item_get_user_visible_tag (item, _tmp1_); -#line 1302 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - tag = _tmp2_; -#line 1303 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = library_window_get_app (); -#line 1303 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = _tmp3_; -#line 1303 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = tag; -#line 1303 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - library_window_switch_to_tag (_tmp4_, _tmp5_); -#line 1303 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp4_); -#line 1304 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = TRUE; -#line 1304 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (tag); -#line 1304 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 7751 "CheckerboardLayout.c" - } -#line 1306 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = FALSE; -#line 1306 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 7757 "CheckerboardLayout.c" -} - - -GeeList* -checkerboard_layout_get_visible_items (CheckerboardLayout* self) -{ - GeeList* result = NULL; - GdkRectangle _tmp0_; - GeeList* _tmp1_; -#line 1309 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), NULL); -#line 1310 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->visible_page; -#line 1310 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = checkerboard_layout_intersection (self, &_tmp0_); -#line 1310 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp1_; -#line 1310 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 7777 "CheckerboardLayout.c" -} - - -GeeList* -checkerboard_layout_intersection (CheckerboardLayout* self, - GdkRectangle* area) -{ - GeeList* result = NULL; - GeeArrayList* intersects = NULL; - GeeArrayList* _tmp0_; - GtkAllocation allocation = {0}; - GtkAllocation _tmp1_ = {0}; - GdkRectangle bitbucket = {0}; - CheckerboardLayoutLayoutRow** _tmp2_; - gint _tmp2__length1; -#line 1313 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), NULL); -#line 1313 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (area != NULL, NULL); -#line 1314 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = gee_array_list_new (TYPE_CHECKERBOARD_ITEM, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1314 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - intersects = _tmp0_; -#line 1317 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), &_tmp1_); -#line 1317 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - allocation = _tmp1_; -#line 1319 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - memset (&bitbucket, 0, sizeof (GdkRectangle)); -#line 1320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->item_rows; -#line 1320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2__length1 = self->priv->item_rows_length1; -#line 7811 "CheckerboardLayout.c" - { - CheckerboardLayoutLayoutRow** row_collection = NULL; - gint row_collection_length1 = 0; - gint _row_collection_size_ = 0; - gint row_it = 0; -#line 1320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_collection = _tmp2_; -#line 1320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_collection_length1 = _tmp2__length1; -#line 1320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - for (row_it = 0; row_it < _tmp2__length1; row_it = row_it + 1) { -#line 7823 "CheckerboardLayout.c" - CheckerboardLayoutLayoutRow* _tmp3_; - CheckerboardLayoutLayoutRow* row = NULL; -#line 1320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = _checkerboard_layout_layout_row_ref0 (row_collection[row_it]); -#line 1320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = _tmp3_; -#line 7830 "CheckerboardLayout.c" - { - CheckerboardLayoutLayoutRow* _tmp4_; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_; - gint _tmp8_; - CheckerboardLayoutLayoutRow* _tmp9_; - gint _tmp10_; - CheckerboardLayoutLayoutRow* _tmp11_; - gint _tmp12_; - CheckerboardLayoutLayoutRow* _tmp13_; - gint _tmp14_; - GdkRectangle _tmp15_; - gint _tmp16_; - GdkRectangle row_rect = {0}; - CheckerboardLayoutLayoutRow* _tmp17_; - gint _tmp18_; - GtkAllocation _tmp19_; - gint _tmp20_; - CheckerboardLayoutLayoutRow* _tmp21_; - gint _tmp22_; - GdkRectangle _tmp23_; - GdkRectangle _tmp24_ = {0}; - gboolean _tmp25_; -#line 1321 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = row; -#line 1321 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp4_ == NULL) { -#line 1322 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (row); -#line 1322 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - continue; -#line 7863 "CheckerboardLayout.c" - } -#line 1324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = *area; -#line 1324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = _tmp5_.y; -#line 1324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = *area; -#line 1324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = _tmp7_.height; -#line 1324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = row; -#line 1324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = _tmp9_->y; -#line 1324 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if ((_tmp6_ + _tmp8_) < _tmp10_) { -#line 1326 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (row); -#line 1326 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 7883 "CheckerboardLayout.c" - } -#line 1329 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = row; -#line 1329 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = _tmp11_->y; -#line 1329 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = row; -#line 1329 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = _tmp13_->height; -#line 1329 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = *area; -#line 1329 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = _tmp15_.y; -#line 1329 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if ((_tmp12_ + _tmp14_) < _tmp16_) { -#line 1331 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (row); -#line 1331 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - continue; -#line 7903 "CheckerboardLayout.c" - } -#line 1335 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - memset (&row_rect, 0, sizeof (GdkRectangle)); -#line 1336 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_rect.x = 0; -#line 1337 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp17_ = row; -#line 1337 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = _tmp17_->y; -#line 1337 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_rect.y = _tmp18_; -#line 1338 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = allocation; -#line 1338 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp20_ = _tmp19_.width; -#line 1338 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_rect.width = _tmp20_; -#line 1339 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp21_ = row; -#line 1339 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp22_ = _tmp21_->height; -#line 1339 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_rect.height = _tmp22_; -#line 1341 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp23_ = row_rect; -#line 1341 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp25_ = gdk_rectangle_intersect (area, &_tmp23_, &_tmp24_); -#line 1341 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - bitbucket = _tmp24_; -#line 1341 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp25_) { -#line 7935 "CheckerboardLayout.c" - CheckerboardLayoutLayoutRow* _tmp26_; - CheckerboardItem** _tmp27_; - gint _tmp27__length1; -#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp26_ = row; -#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp27_ = _tmp26_->items; -#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp27__length1 = _tmp26_->items_length1; -#line 7945 "CheckerboardLayout.c" - { - CheckerboardItem** item_collection = NULL; - gint item_collection_length1 = 0; - gint _item_collection_size_ = 0; - gint item_it = 0; -#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item_collection = _tmp27_; -#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item_collection_length1 = _tmp27__length1; -#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - for (item_it = 0; item_it < _tmp27__length1; item_it = item_it + 1) { -#line 7957 "CheckerboardLayout.c" - CheckerboardItem* _tmp28_; - CheckerboardItem* item = NULL; -#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp28_ = _g_object_ref0 (item_collection[item_it]); -#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item = _tmp28_; -#line 7964 "CheckerboardLayout.c" - { - CheckerboardItem* _tmp29_; - CheckerboardItem* _tmp30_; - GdkRectangle _tmp31_; - GdkRectangle _tmp32_ = {0}; - gboolean _tmp33_; -#line 1344 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp29_ = item; -#line 1344 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp29_ == NULL) { -#line 1345 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 1345 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - continue; -#line 7979 "CheckerboardLayout.c" - } -#line 1347 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp30_ = item; -#line 1347 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp31_ = _tmp30_->allocation; -#line 1347 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp33_ = gdk_rectangle_intersect (area, &_tmp31_, &_tmp32_); -#line 1347 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - bitbucket = _tmp32_; -#line 1347 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp33_) { -#line 7991 "CheckerboardLayout.c" - GeeArrayList* _tmp34_; - CheckerboardItem* _tmp35_; -#line 1348 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp34_ = intersects; -#line 1348 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp35_ = item; -#line 1348 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp35_); -#line 8000 "CheckerboardLayout.c" - } -#line 1343 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 8004 "CheckerboardLayout.c" - } - } - } - } -#line 1320 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (row); -#line 8011 "CheckerboardLayout.c" - } - } - } -#line 1353 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (intersects, GEE_TYPE_LIST, GeeList); -#line 1353 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 8019 "CheckerboardLayout.c" -} - - -CheckerboardItem* -checkerboard_layout_get_item_relative_to (CheckerboardLayout* self, - CheckerboardItem* item, - CompassPoint point) -{ - CheckerboardItem* result = NULL; - ViewCollection* _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint col = 0; - gint row = 0; - gboolean _tmp3_ = FALSE; - gint _tmp4_; - CheckerboardItem* new_item = NULL; - gint _tmp27_; - gint _tmp28_; - CheckerboardItem* _tmp29_; - gboolean _tmp30_ = FALSE; - CheckerboardItem* _tmp31_; - CheckerboardItem* _tmp35_ = NULL; - CheckerboardItem* _tmp36_; - CheckerboardItem* _tmp38_; -#line 1356 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), NULL); -#line 1356 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_ITEM (item), NULL); -#line 1357 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->view; -#line 1357 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection)) == 0) { -#line 1358 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = NULL; -#line 1358 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 8057 "CheckerboardLayout.c" - } -#line 1360 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->columns; -#line 1360 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _vala_assert (_tmp1_ > 0, "columns > 0"); -#line 1361 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->rows; -#line 1361 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _vala_assert (_tmp2_ > 0, "rows > 0"); -#line 1363 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = checkerboard_item_get_column (item); -#line 1364 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = checkerboard_item_get_row (item); -#line 1366 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = col; -#line 1366 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp4_ < 0) { -#line 1366 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = TRUE; -#line 8077 "CheckerboardLayout.c" - } else { - gint _tmp5_; -#line 1366 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = row; -#line 1366 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = _tmp5_ < 0; -#line 8084 "CheckerboardLayout.c" - } -#line 1366 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp3_) { -#line 8088 "CheckerboardLayout.c" - gchar* _tmp6_; - gchar* _tmp7_; -#line 1367 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = checkerboard_item_get_title (item); -#line 1367 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = _tmp6_; -#line 1367 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_critical ("CheckerboardLayout.vala:1367: Attempting to locate item not placed in " \ -"layout: %s", _tmp7_); -#line 1367 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp7_); -#line 1369 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = NULL; -#line 1369 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 8103 "CheckerboardLayout.c" - } -#line 1372 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - switch (point) { -#line 1372 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - case COMPASS_POINT_NORTH: -#line 8109 "CheckerboardLayout.c" - { - gint _tmp8_; - gint _tmp9_; -#line 1374 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = row; -#line 1374 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = _tmp8_ - 1; -#line 1374 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = row; -#line 1374 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp9_ < 0) { -#line 1375 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = 0; -#line 8123 "CheckerboardLayout.c" - } -#line 1376 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 8127 "CheckerboardLayout.c" - } -#line 1372 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - case COMPASS_POINT_SOUTH: -#line 8131 "CheckerboardLayout.c" - { - gint _tmp10_; - gint _tmp11_; - gint _tmp12_; -#line 1379 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = row; -#line 1379 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = _tmp10_ + 1; -#line 1379 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = row; -#line 1379 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = self->priv->rows; -#line 1379 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp11_ >= _tmp12_) { -#line 8146 "CheckerboardLayout.c" - gint _tmp13_; -#line 1380 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = self->priv->rows; -#line 1380 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = _tmp13_ - 1; -#line 8152 "CheckerboardLayout.c" - } -#line 1381 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 8156 "CheckerboardLayout.c" - } -#line 1372 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - case COMPASS_POINT_EAST: -#line 8160 "CheckerboardLayout.c" - { - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; -#line 1384 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = col; -#line 1384 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = _tmp14_ + 1; -#line 1384 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = col; -#line 1384 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = self->priv->columns; -#line 1384 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp15_ >= _tmp16_) { -#line 8175 "CheckerboardLayout.c" - gint _tmp17_; - gint _tmp18_; - gint _tmp19_; -#line 1385 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp17_ = row; -#line 1385 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = _tmp17_ + 1; -#line 1385 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = row; -#line 1385 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = self->priv->rows; -#line 1385 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp18_ >= _tmp19_) { -#line 8189 "CheckerboardLayout.c" - gint _tmp20_; - gint _tmp21_; -#line 1386 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp20_ = self->priv->rows; -#line 1386 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = _tmp20_ - 1; -#line 1387 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp21_ = self->priv->columns; -#line 1387 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = _tmp21_ - 1; -#line 8200 "CheckerboardLayout.c" - } else { -#line 1389 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = 0; -#line 8204 "CheckerboardLayout.c" - } - } -#line 1392 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 8209 "CheckerboardLayout.c" - } -#line 1372 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - case COMPASS_POINT_WEST: -#line 8213 "CheckerboardLayout.c" - { - gint _tmp22_; - gint _tmp23_; -#line 1395 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp22_ = col; -#line 1395 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = _tmp22_ - 1; -#line 1395 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp23_ = col; -#line 1395 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp23_ < 0) { -#line 8225 "CheckerboardLayout.c" - gint _tmp24_; - gint _tmp25_; -#line 1396 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp24_ = row; -#line 1396 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = _tmp24_ - 1; -#line 1396 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp25_ = row; -#line 1396 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp25_ < 0) { -#line 1397 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = 0; -#line 1398 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = 0; -#line 8240 "CheckerboardLayout.c" - } else { - gint _tmp26_; -#line 1400 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp26_ = self->priv->columns; -#line 1400 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = _tmp26_ - 1; -#line 8247 "CheckerboardLayout.c" - } - } -#line 1403 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 8252 "CheckerboardLayout.c" - } - default: - { -#line 1406 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_error ("CheckerboardLayout.vala:1406: Bad compass point %d", (gint) point); -#line 8258 "CheckerboardLayout.c" - } - } -#line 1409 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp27_ = col; -#line 1409 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp28_ = row; -#line 1409 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp29_ = checkerboard_layout_get_item_at_coordinate (self, _tmp27_, _tmp28_); -#line 1409 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - new_item = _tmp29_; -#line 1411 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp31_ = new_item; -#line 1411 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp31_ == NULL) { -#line 1411 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp30_ = point == COMPASS_POINT_SOUTH; -#line 8275 "CheckerboardLayout.c" - } else { -#line 1411 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp30_ = FALSE; -#line 8279 "CheckerboardLayout.c" - } -#line 1411 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp30_) { -#line 8283 "CheckerboardLayout.c" - ViewCollection* _tmp32_; - DataView* _tmp33_; - CheckerboardItem* _tmp34_; -#line 1413 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp32_ = self->priv->view; -#line 1413 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp33_ = view_collection_get_last (_tmp32_); -#line 1413 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (new_item); -#line 1413 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - new_item = G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 1414 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp34_ = new_item; -#line 1414 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (checkerboard_item_get_row (_tmp34_) <= checkerboard_item_get_row (item)) { -#line 1415 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (new_item); -#line 1415 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - new_item = NULL; -#line 8303 "CheckerboardLayout.c" - } - } -#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp36_ = new_item; -#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp36_ != NULL) { -#line 8310 "CheckerboardLayout.c" - CheckerboardItem* _tmp37_; -#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp37_ = new_item; -#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp35_ = _tmp37_; -#line 8316 "CheckerboardLayout.c" - } else { -#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp35_ = item; -#line 8320 "CheckerboardLayout.c" - } -#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp38_ = _g_object_ref0 (_tmp35_); -#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp38_; -#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (new_item); -#line 1418 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 8330 "CheckerboardLayout.c" -} - - -CheckerboardItem* -checkerboard_layout_get_item_at_coordinate (CheckerboardLayout* self, - gint col, - gint row) -{ - CheckerboardItem* result = NULL; - CheckerboardLayoutLayoutRow** _tmp0_; - gint _tmp0__length1; - CheckerboardLayoutLayoutRow* item_row = NULL; - CheckerboardLayoutLayoutRow** _tmp1_; - gint _tmp1__length1; - CheckerboardLayoutLayoutRow* _tmp2_; - CheckerboardLayoutLayoutRow* _tmp3_; - CheckerboardLayoutLayoutRow* _tmp4_; - CheckerboardLayoutLayoutRow* _tmp5_; - CheckerboardItem** _tmp6_; - gint _tmp6__length1; - CheckerboardLayoutLayoutRow* _tmp7_; - CheckerboardItem** _tmp8_; - gint _tmp8__length1; - CheckerboardItem* _tmp9_; - CheckerboardItem* _tmp10_; -#line 1421 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), NULL); -#line 1422 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->item_rows; -#line 1422 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0__length1 = self->priv->item_rows_length1; -#line 1422 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (row >= _tmp0__length1) { -#line 1423 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = NULL; -#line 1423 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 8368 "CheckerboardLayout.c" - } -#line 1425 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->item_rows; -#line 1425 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1__length1 = self->priv->item_rows_length1; -#line 1425 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _tmp1_[row]; -#line 1425 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = _checkerboard_layout_layout_row_ref0 (_tmp2_); -#line 1425 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item_row = _tmp3_; -#line 1426 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = item_row; -#line 1426 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp4_ == NULL) { -#line 1427 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = NULL; -#line 1427 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (item_row); -#line 1427 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 8390 "CheckerboardLayout.c" - } -#line 1429 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = item_row; -#line 1429 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = _tmp5_->items; -#line 1429 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6__length1 = _tmp5_->items_length1; -#line 1429 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (col >= _tmp6__length1) { -#line 1430 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = NULL; -#line 1430 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (item_row); -#line 1430 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 8406 "CheckerboardLayout.c" - } -#line 1432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = item_row; -#line 1432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = _tmp7_->items; -#line 1432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8__length1 = _tmp7_->items_length1; -#line 1432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = _tmp8_[col]; -#line 1432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = _g_object_ref0 (_tmp9_); -#line 1432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp10_; -#line 1432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (item_row); -#line 1432 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 8424 "CheckerboardLayout.c" -} - - -void -checkerboard_layout_set_drag_select_origin (CheckerboardLayout* self, - gint x, - gint y) -{ - GtkAllocation allocation = {0}; - GtkAllocation _tmp0_ = {0}; - GtkAllocation _tmp1_; - gint _tmp2_; - GtkAllocation _tmp3_; - gint _tmp4_; -#line 1435 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1436 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_clear_drag_select (self); -#line 1439 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), &_tmp0_); -#line 1439 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - allocation = _tmp0_; -#line 1441 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = allocation; -#line 1441 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _tmp1_.width; -#line 1441 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->drag_origin.x = CLAMP (x, 0, _tmp2_); -#line 1442 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = allocation; -#line 1442 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = _tmp3_.height; -#line 1442 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->drag_origin.y = CLAMP (y, 0, _tmp4_); -#line 8459 "CheckerboardLayout.c" -} - - -void -checkerboard_layout_set_drag_select_endpoint (CheckerboardLayout* self, - gint x, - gint y) -{ - GtkAllocation allocation = {0}; - GtkAllocation _tmp0_ = {0}; - GtkAllocation _tmp1_; - gint _tmp2_; - GtkAllocation _tmp3_; - gint _tmp4_; - GdkRectangle old_selection_band = {0}; - GdkRectangle _tmp5_; - GdkPoint _tmp6_; - GdkPoint _tmp7_; - Box _tmp8_ = {0}; - GdkRectangle _tmp9_ = {0}; - GdkWindow* _tmp10_; -#line 1445 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1447 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), &_tmp0_); -#line 1447 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - allocation = _tmp0_; -#line 1449 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = allocation; -#line 1449 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _tmp1_.width; -#line 1449 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->drag_endpoint.x = CLAMP (x, 0, _tmp2_); -#line 1450 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = allocation; -#line 1450 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = _tmp3_.height; -#line 1450 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->drag_endpoint.y = CLAMP (y, 0, _tmp4_); -#line 1454 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = self->priv->selection_band; -#line 1454 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - old_selection_band = _tmp5_; -#line 1455 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = self->priv->drag_origin; -#line 1455 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = self->priv->drag_endpoint; -#line 1455 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - box_from_points (&_tmp6_, &_tmp7_, &_tmp8_); -#line 1455 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - box_get_rectangle (&_tmp8_, &_tmp9_); -#line 1455 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->selection_band = _tmp9_; -#line 1458 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 1458 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp10_ != NULL) { -#line 8517 "CheckerboardLayout.c" - GdkRectangle _union_ = {0}; - GdkRectangle _tmp11_; - GdkRectangle _tmp12_ = {0}; - GdkRectangle _tmp13_; - gint _tmp14_; - GdkRectangle _tmp15_; - gint _tmp16_; - GdkRectangle _tmp17_; - gint _tmp18_; - GdkRectangle _tmp19_; - gint _tmp20_; -#line 1460 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = old_selection_band; -#line 1460 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gdk_rectangle_union (&self->priv->selection_band, &_tmp11_, &_tmp12_); -#line 1460 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _union_ = _tmp12_; -#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = _union_; -#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = _tmp13_.x; -#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = _union_; -#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = _tmp15_.y; -#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp17_ = _union_; -#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = _tmp17_.width; -#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = _union_; -#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp20_ = _tmp19_.height; -#line 1462 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_queue_draw_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp14_, _tmp16_, _tmp18_, _tmp20_); -#line 8553 "CheckerboardLayout.c" - } -} - - -GeeList* -checkerboard_layout_items_in_selection_band (CheckerboardLayout* self) -{ - GeeList* result = NULL; - GdkRectangle _tmp0_; - Dimensions _tmp1_ = {0}; - GdkRectangle _tmp2_; - GeeList* _tmp3_; -#line 1466 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), NULL); -#line 1467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->selection_band; -#line 1467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - dimensions_for_rectangle (&_tmp0_, &_tmp1_); -#line 1467 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!dimensions_has_area (&_tmp1_)) { -#line 1468 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = NULL; -#line 1468 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 8578 "CheckerboardLayout.c" - } -#line 1470 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->selection_band; -#line 1470 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = checkerboard_layout_intersection (self, &_tmp2_); -#line 1470 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp3_; -#line 1470 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 8588 "CheckerboardLayout.c" -} - - -gboolean -checkerboard_layout_is_drag_select_active (CheckerboardLayout* self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - GdkPoint _tmp1_; - gint _tmp2_; -#line 1473 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (IS_CHECKERBOARD_LAYOUT (self), FALSE); -#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->drag_origin; -#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _tmp1_.x; -#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp2_ >= 0) { -#line 8607 "CheckerboardLayout.c" - GdkPoint _tmp3_; - gint _tmp4_; -#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = self->priv->drag_origin; -#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = _tmp3_.y; -#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _tmp4_ >= 0; -#line 8616 "CheckerboardLayout.c" - } else { -#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = FALSE; -#line 8620 "CheckerboardLayout.c" - } -#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp0_; -#line 1474 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 8626 "CheckerboardLayout.c" -} - - -void -checkerboard_layout_clear_drag_select (CheckerboardLayout* self) -{ -#line 1477 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1478 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - memset (&self->priv->selection_band, 0, sizeof (GdkRectangle)); -#line 1479 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->drag_origin.x = -1; -#line 1480 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->drag_origin.y = -1; -#line 1481 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->drag_endpoint.x = -1; -#line 1482 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->drag_endpoint.y = -1; -#line 1485 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 8647 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_viewport_resized (CheckerboardLayout* self) -{ - GdkRectangle _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 1488 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1490 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_update_visible_page (self); -#line 1493 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->visible_page; -#line 1493 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _tmp0_.width; -#line 1493 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->last_width; -#line 1493 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp1_ != _tmp2_) { -#line 8669 "CheckerboardLayout.c" - gint old_width = 0; - gint _tmp3_; - GdkRectangle _tmp4_; - gint _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_; - gint _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1494 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = self->priv->last_width; -#line 1494 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - old_width = _tmp3_; -#line 1495 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = self->priv->visible_page; -#line 1495 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = _tmp4_.width; -#line 1495 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->last_width = _tmp5_; -#line 1497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = old_width; -#line 1497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = self->priv->visible_page; -#line 1497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = _tmp7_.width; -#line 1497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = g_strdup_printf ("viewport_resized (%d -> %d)", _tmp6_, _tmp8_); -#line 1497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = _tmp9_; -#line 1497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_need_reflow (self, _tmp10_); -#line 1497 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp10_); -#line 8703 "CheckerboardLayout.c" - } else { - gint _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 1500 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = self->priv->last_width; -#line 1500 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = g_strdup_printf ("viewport_resized (same width=%d)", _tmp11_); -#line 1500 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = _tmp12_; -#line 1500 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_need_exposure (self, _tmp13_); -#line 1500 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp13_); -#line 8718 "CheckerboardLayout.c" - } -} - - -static void -checkerboard_layout_expose_items (CheckerboardLayout* self, - const gchar* caller) -{ - GeeHashSet* new_exposed_items = NULL; - GeeHashSet* _tmp0_; - ViewCollection* _tmp1_; - GeeList* items = NULL; - GeeList* _tmp2_; - GeeHashSet* _tmp25_; - GeeHashSet* _tmp26_; - ViewCollection* _tmp27_; -#line 1504 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1504 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (caller != NULL); -#line 1507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = gee_hash_set_new (TYPE_CHECKERBOARD_ITEM, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1507 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - new_exposed_items = _tmp0_; -#line 1509 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->view; -#line 1509 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1511 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = checkerboard_layout_get_visible_items (self); -#line 1511 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - items = _tmp2_; -#line 8751 "CheckerboardLayout.c" - { - GeeList* _item_list = NULL; - GeeList* _tmp3_; - GeeList* _tmp4_; - gint _item_size = 0; - GeeList* _tmp5_; - gint _tmp6_; - gint _tmp7_; - gint _item_index = 0; -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = items; -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = _g_object_ref0 (_tmp3_); -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _item_list = _tmp4_; -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = _item_list; -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = _tmp6_; -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _item_size = _tmp7_; -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _item_index = -1; -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - while (TRUE) { -#line 8779 "CheckerboardLayout.c" - gint _tmp8_; - gint _tmp9_; - gint _tmp10_; - CheckerboardItem* item = NULL; - GeeList* _tmp11_; - gint _tmp12_; - gpointer _tmp13_; - GeeHashSet* _tmp14_; - CheckerboardItem* _tmp15_; - GeeHashSet* _tmp16_; - CheckerboardItem* _tmp17_; -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = _item_index; -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _item_index = _tmp8_ + 1; -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = _item_index; -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = _item_size; -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!(_tmp9_ < _tmp10_)) { -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 8803 "CheckerboardLayout.c" - } -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = _item_list; -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = _item_index; -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = gee_list_get (_tmp11_, _tmp12_); -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item = (CheckerboardItem*) _tmp13_; -#line 1513 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = new_exposed_items; -#line 1513 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = item; -#line 1513 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_); -#line 1516 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = self->priv->exposed_items; -#line 1516 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp17_ = item; -#line 1516 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_)) { -#line 8825 "CheckerboardLayout.c" - CheckerboardItem* _tmp18_; -#line 1517 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = item; -#line 1517 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_exposed (_tmp18_); -#line 8831 "CheckerboardLayout.c" - } -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 8835 "CheckerboardLayout.c" - } -#line 1512 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_item_list); -#line 8839 "CheckerboardLayout.c" - } - { - GeeIterator* _item_it = NULL; - GeeHashSet* _tmp19_; - GeeIterator* _tmp20_; -#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = self->priv->exposed_items; -#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp20_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _item_it = _tmp20_; -#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - while (TRUE) { -#line 8853 "CheckerboardLayout.c" - GeeIterator* _tmp21_; - CheckerboardItem* item = NULL; - GeeIterator* _tmp22_; - gpointer _tmp23_; - CheckerboardItem* _tmp24_; -#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp21_ = _item_it; -#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!gee_iterator_next (_tmp21_)) { -#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 8865 "CheckerboardLayout.c" - } -#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp22_ = _item_it; -#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp23_ = gee_iterator_get (_tmp22_); -#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item = (CheckerboardItem*) _tmp23_; -#line 1522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp24_ = item; -#line 1522 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_unexposed (_tmp24_); -#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 8879 "CheckerboardLayout.c" - } -#line 1521 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_item_it); -#line 8883 "CheckerboardLayout.c" - } -#line 1525 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp25_ = new_exposed_items; -#line 1525 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp26_ = _g_object_ref0 (_tmp25_); -#line 1525 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->exposed_items); -#line 1525 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->exposed_items = _tmp26_; -#line 1526 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->exposure_dirty = FALSE; -#line 1531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp27_ = self->priv->view; -#line 1531 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1504 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (items); -#line 1504 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (new_exposed_items); -#line 8903 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_unexpose_items (CheckerboardLayout* self, - const gchar* caller) -{ - ViewCollection* _tmp0_; - GeeHashSet* _tmp7_; - ViewCollection* _tmp8_; -#line 1537 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1537 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (caller != NULL); -#line 1538 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->view; -#line 1538 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection)); -#line 8922 "CheckerboardLayout.c" - { - GeeIterator* _item_it = NULL; - GeeHashSet* _tmp1_; - GeeIterator* _tmp2_; -#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->exposed_items; -#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _item_it = _tmp2_; -#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - while (TRUE) { -#line 8935 "CheckerboardLayout.c" - GeeIterator* _tmp3_; - CheckerboardItem* item = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - CheckerboardItem* _tmp6_; -#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = _item_it; -#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 8947 "CheckerboardLayout.c" - } -#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = _item_it; -#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item = (CheckerboardItem*) _tmp5_; -#line 1541 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = item; -#line 1541 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_unexposed (_tmp6_); -#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 8961 "CheckerboardLayout.c" - } -#line 1540 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_item_it); -#line 8965 "CheckerboardLayout.c" - } -#line 1543 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = self->priv->exposed_items; -#line 1543 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1544 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->exposure_dirty = FALSE; -#line 1549 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = self->priv->view; -#line 1549 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection)); -#line 8977 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_reflow (CheckerboardLayout* self, - const gchar* caller) -{ - const gchar* _tmp0_; - GtkAllocation allocation = {0}; - GtkAllocation _tmp1_ = {0}; - gint _tmp2_ = 0; - GdkRectangle _tmp3_; - gint _tmp4_; - gint visible_width = 0; - gint _tmp9_; - gint total_items = 0; - ViewCollection* _tmp10_; - gint _tmp11_; - gboolean _tmp14_ = FALSE; - CheckerboardItem* _tmp15_; - gint max_cols = 0; - gint _tmp17_; - gint _tmp60_; - gint max_rows = 0; - gint _tmp61_; - gint _tmp62_; - gint row = 0; - gint tallest = 0; - gint widest = 0; - gint row_alignment_point = 0; - gint total_width = 0; - gint col = 0; - gint* column_widths = NULL; - gint _tmp63_; - gint* _tmp64_; - gint column_widths_length1; - gint _column_widths_size_; - gint* row_heights = NULL; - gint _tmp65_; - gint* _tmp66_; - gint row_heights_length1; - gint _row_heights_size_; - gint* alignment_points = NULL; - gint _tmp67_; - gint* _tmp68_; - gint alignment_points_length1; - gint _alignment_points_size_; - gint gutter = 0; - gint _tmp177_; - CheckerboardLayoutLayoutRow** _tmp178_; - gint x = 0; - gint _tmp179_; - gint y = 0; - CheckerboardLayoutLayoutRow* current_row = NULL; - CheckerboardLayoutLayoutRow* _tmp248_; - gint _tmp254_; - gint _tmp255_; - gint _tmp256_; - gint _tmp257_; - gint total_height = 0; - gint _tmp258_; - gint* _tmp259_; - gint _tmp259__length1; - gint _tmp260_; - gint _tmp261_; - gboolean _tmp262_ = FALSE; - gint _tmp263_; - GtkAllocation _tmp264_; - gint _tmp265_; -#line 1555 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1555 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (caller != NULL); -#line 1556 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->reflow_needed = FALSE; -#line 1559 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->message; -#line 1559 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_ != NULL) { -#line 1560 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 9059 "CheckerboardLayout.c" - } -#line 1563 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), &_tmp1_); -#line 1563 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - allocation = _tmp1_; -#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = self->priv->visible_page; -#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = _tmp3_.width; -#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp4_ > 0) { -#line 9071 "CheckerboardLayout.c" - GdkRectangle _tmp5_; - gint _tmp6_; -#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = self->priv->visible_page; -#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = _tmp5_.width; -#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _tmp6_; -#line 9080 "CheckerboardLayout.c" - } else { - GtkAllocation _tmp7_; - gint _tmp8_; -#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = allocation; -#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = _tmp7_.width; -#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _tmp8_; -#line 9090 "CheckerboardLayout.c" - } -#line 1565 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - visible_width = _tmp2_; -#line 1573 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = visible_width; -#line 1573 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp9_ <= 1) { -#line 1574 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 9100 "CheckerboardLayout.c" - } -#line 1576 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = self->priv->view; -#line 1576 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - total_items = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1579 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = total_items; -#line 1579 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp11_ == 0) { -#line 9110 "CheckerboardLayout.c" - gint _tmp12_; - CheckerboardLayoutLayoutRow** _tmp13_; -#line 1580 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = visible_width; -#line 1580 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp12_, 0); -#line 1581 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = g_new0 (CheckerboardLayoutLayoutRow*, 0 + 1); -#line 1581 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->item_rows = (_vala_array_free (self->priv->item_rows, self->priv->item_rows_length1, (GDestroyNotify) checkerboard_layout_layout_row_unref), NULL); -#line 1581 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->item_rows = _tmp13_; -#line 1581 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->item_rows_length1 = 0; -#line 1581 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->_item_rows_size_ = self->priv->item_rows_length1; -#line 1583 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 9129 "CheckerboardLayout.c" - } -#line 1591 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = self->priv->anchor; -#line 1591 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp15_ == NULL) { -#line 1591 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = TRUE; -#line 9137 "CheckerboardLayout.c" - } else { - CheckerboardItem* _tmp16_; -#line 1591 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = self->priv->anchor; -#line 1591 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = !data_view_is_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_VIEW, DataView)); -#line 9144 "CheckerboardLayout.c" - } -#line 1591 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp14_) { -#line 1592 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_update_anchor (self); -#line 9150 "CheckerboardLayout.c" - } -#line 1595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->item_rows = (_vala_array_free (self->priv->item_rows, self->priv->item_rows_length1, (GDestroyNotify) checkerboard_layout_layout_row_unref), NULL); -#line 1595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->item_rows = NULL; -#line 1595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->item_rows_length1 = 0; -#line 1595 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->_item_rows_size_ = self->priv->item_rows_length1; -#line 1600 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - max_cols = 0; -#line 1601 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp17_ = self->priv->scale; -#line 1601 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp17_ > 0) { -#line 9166 "CheckerboardLayout.c" - gint remaining_width = 0; - gint _tmp18_; - gint max_item_width = 0; - gint _tmp19_; - gint _tmp20_; - gint _tmp21_; - gint _tmp22_; - gint _tmp30_; - gint _tmp31_; -#line 1603 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = visible_width; -#line 1603 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - remaining_width = _tmp18_ - (CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING * 2); -#line 1604 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = self->priv->scale; -#line 1604 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - max_item_width = checkerboard_item_get_max_width (_tmp19_); -#line 1605 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp20_ = remaining_width; -#line 1605 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp21_ = max_item_width; -#line 1605 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - max_cols = _tmp20_ / _tmp21_; -#line 1606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp22_ = max_cols; -#line 1606 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp22_ <= 0) { -#line 1607 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - max_cols = 1; -#line 9196 "CheckerboardLayout.c" - } -#line 1610 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - while (TRUE) { -#line 9200 "CheckerboardLayout.c" - gboolean _tmp23_ = FALSE; - gint _tmp24_; - gint _tmp29_; -#line 1610 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp24_ = max_cols; -#line 1610 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp24_ > 1) { -#line 9208 "CheckerboardLayout.c" - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; - gint _tmp28_; -#line 1611 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp25_ = max_cols; -#line 1611 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp26_ = max_item_width; -#line 1611 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp27_ = max_cols; -#line 1611 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp28_ = remaining_width; -#line 1611 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp23_ = ((_tmp25_ * _tmp26_) + ((_tmp27_ - 1) * CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING)) > _tmp28_; -#line 9223 "CheckerboardLayout.c" - } else { -#line 1610 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp23_ = FALSE; -#line 9227 "CheckerboardLayout.c" - } -#line 1610 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!_tmp23_) { -#line 1610 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 9233 "CheckerboardLayout.c" - } -#line 1616 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp29_ = max_cols; -#line 1616 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - max_cols = _tmp29_ - 1; -#line 9239 "CheckerboardLayout.c" - } -#line 1620 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp30_ = total_items; -#line 1620 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp31_ = max_cols; -#line 1620 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp30_ < _tmp31_) { -#line 9247 "CheckerboardLayout.c" - gint _tmp32_; -#line 1621 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp32_ = total_items; -#line 1621 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - max_cols = _tmp32_; -#line 9253 "CheckerboardLayout.c" - } - } else { - gint x = 0; - gint col = 0; - gint row_width = 0; - gint widest_row = 0; - gint _tmp57_; - gint _tmp58_; -#line 1628 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - x = CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING; -#line 1629 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = 0; -#line 1630 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_width = 0; -#line 1631 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - widest_row = 0; -#line 9270 "CheckerboardLayout.c" - { - gint ctr = 0; -#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ctr = 0; -#line 9275 "CheckerboardLayout.c" - { - gboolean _tmp33_ = FALSE; -#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp33_ = TRUE; -#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - while (TRUE) { -#line 9282 "CheckerboardLayout.c" - gint _tmp35_; - gint _tmp36_; - CheckerboardItem* item = NULL; - ViewCollection* _tmp37_; - gint _tmp38_; - DataObject* _tmp39_; - Dimensions req = {0}; - CheckerboardItem* _tmp40_; - Dimensions _tmp41_; - gint _tmp42_; - Dimensions _tmp43_; - gint _tmp44_; - gint _tmp45_; - gint _tmp50_; - Dimensions _tmp51_; - gint _tmp52_; - gint _tmp53_; - Dimensions _tmp54_; - gint _tmp55_; - gint _tmp56_; -#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!_tmp33_) { -#line 9305 "CheckerboardLayout.c" - gint _tmp34_; -#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp34_ = ctr; -#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ctr = _tmp34_ + 1; -#line 9311 "CheckerboardLayout.c" - } -#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp33_ = FALSE; -#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp35_ = ctr; -#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp36_ = total_items; -#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!(_tmp35_ < _tmp36_)) { -#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 9323 "CheckerboardLayout.c" - } -#line 1634 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp37_ = self->priv->view; -#line 1634 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp38_ = ctr; -#line 1634 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp39_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, TYPE_DATA_COLLECTION, DataCollection), _tmp38_); -#line 1634 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item = G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 1635 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp40_ = item; -#line 1635 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp41_ = _tmp40_->requisition; -#line 1635 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - req = _tmp41_; -#line 1638 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _vala_assert (dimensions_has_area (&req), "req.has_area()"); -#line 1641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp42_ = x; -#line 1641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp43_ = req; -#line 1641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp44_ = _tmp43_.width; -#line 1641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp45_ = visible_width; -#line 1641 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (((_tmp42_ + _tmp44_) + CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING) > _tmp45_) { -#line 9351 "CheckerboardLayout.c" - gint _tmp46_; - gint _tmp47_; -#line 1642 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp46_ = row_width; -#line 1642 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp47_ = widest_row; -#line 1642 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp46_ > _tmp47_) { -#line 9360 "CheckerboardLayout.c" - gint _tmp48_; - gint _tmp49_; -#line 1643 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp48_ = row_width; -#line 1643 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - widest_row = _tmp48_; -#line 1644 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp49_ = col; -#line 1644 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - max_cols = _tmp49_; -#line 9371 "CheckerboardLayout.c" - } -#line 1647 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = 0; -#line 1648 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - x = CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING; -#line 1649 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_width = 0; -#line 9379 "CheckerboardLayout.c" - } -#line 1652 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp50_ = x; -#line 1652 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp51_ = req; -#line 1652 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp52_ = _tmp51_.width; -#line 1652 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - x = _tmp50_ + (_tmp52_ + CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING); -#line 1653 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp53_ = row_width; -#line 1653 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp54_ = req; -#line 1653 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp55_ = _tmp54_.width; -#line 1653 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_width = _tmp53_ + _tmp55_; -#line 1655 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp56_ = col; -#line 1655 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = _tmp56_ + 1; -#line 1633 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 9403 "CheckerboardLayout.c" - } - } - } -#line 1659 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp57_ = row_width; -#line 1659 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp58_ = widest_row; -#line 1659 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp57_ > _tmp58_) { -#line 9413 "CheckerboardLayout.c" - gint _tmp59_; -#line 1660 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp59_ = col; -#line 1660 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - max_cols = _tmp59_; -#line 9419 "CheckerboardLayout.c" - } - } -#line 1668 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp60_ = max_cols; -#line 1668 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _vala_assert (_tmp60_ > 0, "max_cols > 0"); -#line 1669 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp61_ = total_items; -#line 1669 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp62_ = max_cols; -#line 1669 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - max_rows = (_tmp61_ / _tmp62_) + 1; -#line 1673 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = 0; -#line 1674 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - tallest = 0; -#line 1675 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - widest = 0; -#line 1676 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_alignment_point = 0; -#line 1677 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - total_width = 0; -#line 1678 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = 0; -#line 1679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp63_ = max_cols; -#line 1679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp64_ = g_new0 (gint, _tmp63_); -#line 1679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - column_widths = _tmp64_; -#line 1679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - column_widths_length1 = _tmp63_; -#line 1679 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _column_widths_size_ = column_widths_length1; -#line 1680 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp65_ = max_rows; -#line 1680 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp66_ = g_new0 (gint, _tmp65_); -#line 1680 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_heights = _tmp66_; -#line 1680 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_heights_length1 = _tmp65_; -#line 1680 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _row_heights_size_ = row_heights_length1; -#line 1681 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp67_ = max_rows; -#line 1681 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp68_ = g_new0 (gint, _tmp67_); -#line 1681 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - alignment_points = _tmp68_; -#line 1681 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - alignment_points_length1 = _tmp67_; -#line 1681 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _alignment_points_size_ = alignment_points_length1; -#line 1682 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gutter = 0; -#line 9476 "CheckerboardLayout.c" - { - gboolean _tmp69_ = FALSE; -#line 1684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp69_ = TRUE; -#line 1684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - while (TRUE) { -#line 9483 "CheckerboardLayout.c" - gint _tmp124_; - gint _tmp133_; - gint _tmp134_; - gint _tmp135_; - gint _tmp136_; - gint _tmp137_; -#line 1684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!_tmp69_) { -#line 9492 "CheckerboardLayout.c" - } -#line 1684 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp69_ = FALSE; -#line 9496 "CheckerboardLayout.c" - { - gint ctr = 0; -#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ctr = 0; -#line 9501 "CheckerboardLayout.c" - { - gboolean _tmp70_ = FALSE; -#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp70_ = TRUE; -#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - while (TRUE) { -#line 9508 "CheckerboardLayout.c" - gint _tmp72_; - gint _tmp73_; - CheckerboardItem* item = NULL; - ViewCollection* _tmp74_; - gint _tmp75_; - DataObject* _tmp76_; - Dimensions req = {0}; - CheckerboardItem* _tmp77_; - Dimensions _tmp78_; - gint alignment_point = 0; - CheckerboardItem* _tmp79_; - gint _tmp80_; - Dimensions _tmp81_; - gint _tmp82_; - Dimensions _tmp83_; - gint _tmp84_; - gint _tmp85_; - Dimensions _tmp88_; - gint _tmp89_; - gint _tmp90_; - gint _tmp93_; - gint _tmp94_; - gint* _tmp96_; - gint _tmp96__length1; - gint _tmp97_; - gint _tmp98_; - Dimensions _tmp99_; - gint _tmp100_; - gint _tmp113_; - gint _tmp114_; - gint _tmp115_; -#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!_tmp70_) { -#line 9542 "CheckerboardLayout.c" - gint _tmp71_; -#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp71_ = ctr; -#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ctr = _tmp71_ + 1; -#line 9548 "CheckerboardLayout.c" - } -#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp70_ = FALSE; -#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp72_ = ctr; -#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp73_ = total_items; -#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!(_tmp72_ < _tmp73_)) { -#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 9560 "CheckerboardLayout.c" - } -#line 1686 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp74_ = self->priv->view; -#line 1686 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp75_ = ctr; -#line 1686 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp76_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, TYPE_DATA_COLLECTION, DataCollection), _tmp75_); -#line 1686 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item = G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 1687 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp77_ = item; -#line 1687 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp78_ = _tmp77_->requisition; -#line 1687 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - req = _tmp78_; -#line 1688 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp79_ = item; -#line 1688 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - alignment_point = checkerboard_item_get_alignment_point (_tmp79_); -#line 1691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp80_ = alignment_point; -#line 1691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp81_ = req; -#line 1691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp82_ = _tmp81_.height; -#line 1691 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _vala_assert (_tmp80_ < _tmp82_, "alignment_point < req.height"); -#line 1693 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp83_ = req; -#line 1693 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp84_ = _tmp83_.height; -#line 1693 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp85_ = tallest; -#line 1693 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp84_ > _tmp85_) { -#line 9596 "CheckerboardLayout.c" - Dimensions _tmp86_; - gint _tmp87_; -#line 1694 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp86_ = req; -#line 1694 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp87_ = _tmp86_.height; -#line 1694 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - tallest = _tmp87_; -#line 9605 "CheckerboardLayout.c" - } -#line 1696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp88_ = req; -#line 1696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp89_ = _tmp88_.width; -#line 1696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp90_ = widest; -#line 1696 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp89_ > _tmp90_) { -#line 9615 "CheckerboardLayout.c" - Dimensions _tmp91_; - gint _tmp92_; -#line 1697 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp91_ = req; -#line 1697 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp92_ = _tmp91_.width; -#line 1697 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - widest = _tmp92_; -#line 9624 "CheckerboardLayout.c" - } -#line 1699 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp93_ = alignment_point; -#line 1699 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp94_ = row_alignment_point; -#line 1699 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp93_ > _tmp94_) { -#line 9632 "CheckerboardLayout.c" - gint _tmp95_; -#line 1700 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp95_ = alignment_point; -#line 1700 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_alignment_point = _tmp95_; -#line 9638 "CheckerboardLayout.c" - } -#line 1704 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp96_ = column_widths; -#line 1704 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp96__length1 = column_widths_length1; -#line 1704 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp97_ = col; -#line 1704 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp98_ = _tmp96_[_tmp97_]; -#line 1704 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp99_ = req; -#line 1704 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp100_ = _tmp99_.width; -#line 1704 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp98_ < _tmp100_) { -#line 9654 "CheckerboardLayout.c" - gint _tmp101_; - gint* _tmp102_; - gint _tmp102__length1; - gint _tmp103_; - gint _tmp104_; - gint* _tmp105_; - gint _tmp105__length1; - gint _tmp106_; - Dimensions _tmp107_; - gint _tmp108_; - gint _tmp109_; - gint _tmp110_; - Dimensions _tmp111_; - gint _tmp112_; -#line 1705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp101_ = total_width; -#line 1705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp102_ = column_widths; -#line 1705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp102__length1 = column_widths_length1; -#line 1705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp103_ = col; -#line 1705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp104_ = _tmp102_[_tmp103_]; -#line 1705 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - total_width = _tmp101_ - _tmp104_; -#line 1706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp105_ = column_widths; -#line 1706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp105__length1 = column_widths_length1; -#line 1706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp106_ = col; -#line 1706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp107_ = req; -#line 1706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp108_ = _tmp107_.width; -#line 1706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp105_[_tmp106_] = _tmp108_; -#line 1706 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp109_ = _tmp105_[_tmp106_]; -#line 1707 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp110_ = total_width; -#line 1707 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp111_ = req; -#line 1707 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp112_ = _tmp111_.width; -#line 1707 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - total_width = _tmp110_ + _tmp112_; -#line 9703 "CheckerboardLayout.c" - } -#line 1710 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp113_ = col; -#line 1710 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = _tmp113_ + 1; -#line 1710 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp114_ = col; -#line 1710 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp115_ = max_cols; -#line 1710 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp114_ >= _tmp115_) { -#line 9715 "CheckerboardLayout.c" - gint* _tmp116_; - gint _tmp116__length1; - gint _tmp117_; - gint _tmp118_; - gint _tmp119_; - gint* _tmp120_; - gint _tmp120__length1; - gint _tmp121_; - gint _tmp122_; - gint _tmp123_; -#line 1711 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp116_ = alignment_points; -#line 1711 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp116__length1 = alignment_points_length1; -#line 1711 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp117_ = row; -#line 1711 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp118_ = row_alignment_point; -#line 1711 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp116_[_tmp117_] = _tmp118_; -#line 1711 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp119_ = _tmp116_[_tmp117_]; -#line 1712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp120_ = row_heights; -#line 1712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp120__length1 = row_heights_length1; -#line 1712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp121_ = row; -#line 1712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = _tmp121_ + 1; -#line 1712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp122_ = tallest; -#line 1712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp120_[_tmp121_] = _tmp122_; -#line 1712 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp123_ = _tmp120_[_tmp121_]; -#line 1714 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = 0; -#line 1715 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_alignment_point = 0; -#line 1716 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - tallest = 0; -#line 9758 "CheckerboardLayout.c" - } -#line 1685 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 9762 "CheckerboardLayout.c" - } - } - } -#line 1721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp124_ = col; -#line 1721 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp124_ != 0) { -#line 9770 "CheckerboardLayout.c" - gint* _tmp125_; - gint _tmp125__length1; - gint _tmp126_; - gint _tmp127_; - gint _tmp128_; - gint* _tmp129_; - gint _tmp129__length1; - gint _tmp130_; - gint _tmp131_; - gint _tmp132_; -#line 1722 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp125_ = alignment_points; -#line 1722 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp125__length1 = alignment_points_length1; -#line 1722 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp126_ = row; -#line 1722 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp127_ = row_alignment_point; -#line 1722 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp125_[_tmp126_] = _tmp127_; -#line 1722 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp128_ = _tmp125_[_tmp126_]; -#line 1723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp129_ = row_heights; -#line 1723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp129__length1 = row_heights_length1; -#line 1723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp130_ = row; -#line 1723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp131_ = tallest; -#line 1723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp129_[_tmp130_] = _tmp131_; -#line 1723 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp132_ = _tmp129_[_tmp130_]; -#line 9805 "CheckerboardLayout.c" - } -#line 1728 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp133_ = visible_width; -#line 1728 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp134_ = total_width; -#line 1728 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp135_ = max_cols; -#line 1728 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gutter = (_tmp133_ - _tmp134_) / (_tmp135_ + 1); -#line 1731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp136_ = max_cols; -#line 1731 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp136_ == 1) { -#line 1732 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 9821 "CheckerboardLayout.c" - } -#line 1737 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp137_ = gutter; -#line 1737 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp137_ < CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING) { -#line 9827 "CheckerboardLayout.c" - gint _tmp138_; - gint _tmp139_; - gint _tmp140_; - gint _tmp141_; - gint* _tmp142_; - gint _tmp143_; - gint* _tmp144_; - gint _tmp145_; - gint* _tmp146_; -#line 1738 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp138_ = max_cols; -#line 1738 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - max_cols = _tmp138_ - 1; -#line 1739 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp139_ = total_items; -#line 1739 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp140_ = max_cols; -#line 1739 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - max_rows = (_tmp139_ / _tmp140_) + 1; -#line 1746 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = 0; -#line 1747 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = 0; -#line 1748 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - tallest = 0; -#line 1749 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - widest = 0; -#line 1750 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - total_width = 0; -#line 1751 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_alignment_point = 0; -#line 1752 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp141_ = max_cols; -#line 1752 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp142_ = g_new0 (gint, _tmp141_); -#line 1752 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - column_widths = (g_free (column_widths), NULL); -#line 1752 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - column_widths = _tmp142_; -#line 1752 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - column_widths_length1 = _tmp141_; -#line 1752 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _column_widths_size_ = column_widths_length1; -#line 1753 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp143_ = max_rows; -#line 1753 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp144_ = g_new0 (gint, _tmp143_); -#line 1753 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_heights = (g_free (row_heights), NULL); -#line 1753 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_heights = _tmp144_; -#line 1753 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_heights_length1 = _tmp143_; -#line 1753 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _row_heights_size_ = row_heights_length1; -#line 1754 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp145_ = max_rows; -#line 1754 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp146_ = g_new0 (gint, _tmp145_); -#line 1754 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - alignment_points = (g_free (alignment_points), NULL); -#line 1754 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - alignment_points = _tmp146_; -#line 1754 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - alignment_points_length1 = _tmp145_; -#line 1754 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _alignment_points_size_ = alignment_points_length1; -#line 9895 "CheckerboardLayout.c" - } else { -#line 1756 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 9899 "CheckerboardLayout.c" - } - } - } -#line 1768 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = 0; -#line 1769 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = 0; -#line 9907 "CheckerboardLayout.c" - { - gint ctr = 0; -#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ctr = 0; -#line 9912 "CheckerboardLayout.c" - { - gboolean _tmp147_ = FALSE; -#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp147_ = TRUE; -#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - while (TRUE) { -#line 9919 "CheckerboardLayout.c" - gint _tmp149_; - gint _tmp150_; - CheckerboardItem* item = NULL; - ViewCollection* _tmp151_; - gint _tmp152_; - DataObject* _tmp153_; - Dimensions req = {0}; - CheckerboardItem* _tmp154_; - Dimensions _tmp155_; - gint true_height = 0; - Dimensions _tmp156_; - gint _tmp157_; - gint* _tmp158_; - gint _tmp158__length1; - gint _tmp159_; - gint _tmp160_; - CheckerboardItem* _tmp161_; - gint _tmp162_; - Dimensions _tmp163_; - gint _tmp164_; - gint _tmp165_; - gint* _tmp166_; - gint _tmp166__length1; - gint _tmp167_; - gint _tmp168_; - gint _tmp173_; - gint _tmp174_; - gint _tmp175_; -#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!_tmp147_) { -#line 9950 "CheckerboardLayout.c" - gint _tmp148_; -#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp148_ = ctr; -#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ctr = _tmp148_ + 1; -#line 9956 "CheckerboardLayout.c" - } -#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp147_ = FALSE; -#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp149_ = ctr; -#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp150_ = total_items; -#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!(_tmp149_ < _tmp150_)) { -#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 9968 "CheckerboardLayout.c" - } -#line 1772 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp151_ = self->priv->view; -#line 1772 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp152_ = ctr; -#line 1772 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp153_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp151_, TYPE_DATA_COLLECTION, DataCollection), _tmp152_); -#line 1772 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item = G_TYPE_CHECK_INSTANCE_CAST (_tmp153_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 1773 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp154_ = item; -#line 1773 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp155_ = _tmp154_->requisition; -#line 1773 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - req = _tmp155_; -#line 1778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp156_ = req; -#line 1778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp157_ = _tmp156_.height; -#line 1778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp158_ = alignment_points; -#line 1778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp158__length1 = alignment_points_length1; -#line 1778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp159_ = row; -#line 1778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp160_ = _tmp158_[_tmp159_]; -#line 1778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp161_ = item; -#line 1778 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - true_height = _tmp157_ + (_tmp160_ - checkerboard_item_get_alignment_point (_tmp161_)); -#line 1779 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp162_ = true_height; -#line 1779 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp163_ = req; -#line 1779 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp164_ = _tmp163_.height; -#line 1779 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _vala_assert (_tmp162_ >= _tmp164_, "true_height >= req.height"); -#line 1782 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp165_ = true_height; -#line 1782 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp166_ = row_heights; -#line 1782 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp166__length1 = row_heights_length1; -#line 1782 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp167_ = row; -#line 1782 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp168_ = _tmp166_[_tmp167_]; -#line 1782 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp165_ > _tmp168_) { -#line 10020 "CheckerboardLayout.c" - gint* _tmp169_; - gint _tmp169__length1; - gint _tmp170_; - gint _tmp171_; - gint _tmp172_; -#line 1787 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp169_ = row_heights; -#line 1787 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp169__length1 = row_heights_length1; -#line 1787 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp170_ = row; -#line 1787 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp171_ = true_height; -#line 1787 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp169_[_tmp170_] = _tmp171_; -#line 1787 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp172_ = _tmp169_[_tmp170_]; -#line 10038 "CheckerboardLayout.c" - } -#line 1791 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp173_ = col; -#line 1791 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = _tmp173_ + 1; -#line 1791 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp174_ = col; -#line 1791 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp175_ = max_cols; -#line 1791 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp174_ >= _tmp175_) { -#line 10050 "CheckerboardLayout.c" - gint _tmp176_; -#line 1792 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = 0; -#line 1793 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp176_ = row; -#line 1793 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = _tmp176_ + 1; -#line 10058 "CheckerboardLayout.c" - } -#line 1771 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 10062 "CheckerboardLayout.c" - } - } - } -#line 1798 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp177_ = max_rows; -#line 1798 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp178_ = g_new0 (CheckerboardLayoutLayoutRow*, _tmp177_ + 1); -#line 1798 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->item_rows = (_vala_array_free (self->priv->item_rows, self->priv->item_rows_length1, (GDestroyNotify) checkerboard_layout_layout_row_unref), NULL); -#line 1798 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->item_rows = _tmp178_; -#line 1798 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->item_rows_length1 = _tmp177_; -#line 1798 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->_item_rows_size_ = self->priv->item_rows_length1; -#line 1801 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp179_ = gutter; -#line 1801 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - x = _tmp179_; -#line 1802 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - y = CHECKERBOARD_LAYOUT_TOP_PADDING; -#line 1803 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = 0; -#line 1804 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = 0; -#line 1805 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - current_row = NULL; -#line 10090 "CheckerboardLayout.c" - { - gint ctr = 0; -#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ctr = 0; -#line 10095 "CheckerboardLayout.c" - { - gboolean _tmp180_ = FALSE; -#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp180_ = TRUE; -#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - while (TRUE) { -#line 10102 "CheckerboardLayout.c" - gint _tmp182_; - gint _tmp183_; - CheckerboardItem* item = NULL; - ViewCollection* _tmp184_; - gint _tmp185_; - DataObject* _tmp186_; - Dimensions req = {0}; - CheckerboardItem* _tmp187_; - Dimensions _tmp188_; - gint xpadding = 0; - gint* _tmp189_; - gint _tmp189__length1; - gint _tmp190_; - gint _tmp191_; - Dimensions _tmp192_; - gint _tmp193_; - gint _tmp194_; - gint ypadding = 0; - gint* _tmp195_; - gint _tmp195__length1; - gint _tmp196_; - gint _tmp197_; - CheckerboardItem* _tmp198_; - gint _tmp199_; - CheckerboardItem* _tmp200_; - gint _tmp201_; - gint _tmp202_; - CheckerboardItem* _tmp203_; - gint _tmp204_; - gint _tmp205_; - CheckerboardItem* _tmp206_; - Dimensions _tmp207_; - gint _tmp208_; - CheckerboardItem* _tmp209_; - Dimensions _tmp210_; - gint _tmp211_; - CheckerboardItem* _tmp212_; - gint _tmp213_; - gint _tmp214_; - CheckerboardLayoutLayoutRow* _tmp215_; - CheckerboardLayoutLayoutRow* _tmp222_; - CheckerboardItem** _tmp223_; - gint _tmp223__length1; - gint _tmp224_; - CheckerboardItem* _tmp225_; - CheckerboardItem* _tmp226_; - CheckerboardItem* _tmp227_; - gint _tmp228_; - gint* _tmp229_; - gint _tmp229__length1; - gint _tmp230_; - gint _tmp231_; - gint _tmp232_; - gint _tmp233_; - gint _tmp234_; - gint _tmp235_; -#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!_tmp180_) { -#line 10161 "CheckerboardLayout.c" - gint _tmp181_; -#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp181_ = ctr; -#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ctr = _tmp181_ + 1; -#line 10167 "CheckerboardLayout.c" - } -#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp180_ = FALSE; -#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp182_ = ctr; -#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp183_ = total_items; -#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!(_tmp182_ < _tmp183_)) { -#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 10179 "CheckerboardLayout.c" - } -#line 1808 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp184_ = self->priv->view; -#line 1808 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp185_ = ctr; -#line 1808 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp186_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp184_, TYPE_DATA_COLLECTION, DataCollection), _tmp185_); -#line 1808 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item = G_TYPE_CHECK_INSTANCE_CAST (_tmp186_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 1809 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp187_ = item; -#line 1809 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp188_ = _tmp187_->requisition; -#line 1809 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - req = _tmp188_; -#line 1812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp189_ = column_widths; -#line 1812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp189__length1 = column_widths_length1; -#line 1812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp190_ = col; -#line 1812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp191_ = _tmp189_[_tmp190_]; -#line 1812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp192_ = req; -#line 1812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp193_ = _tmp192_.width; -#line 1812 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - xpadding = (_tmp191_ - _tmp193_) / 2; -#line 1813 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp194_ = xpadding; -#line 1813 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _vala_assert (_tmp194_ >= 0, "xpadding >= 0"); -#line 1816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp195_ = alignment_points; -#line 1816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp195__length1 = alignment_points_length1; -#line 1816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp196_ = row; -#line 1816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp197_ = _tmp195_[_tmp196_]; -#line 1816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp198_ = item; -#line 1816 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ypadding = _tmp197_ - checkerboard_item_get_alignment_point (_tmp198_); -#line 1817 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp199_ = ypadding; -#line 1817 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _vala_assert (_tmp199_ >= 0, "ypadding >= 0"); -#line 1820 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp200_ = item; -#line 1820 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp201_ = x; -#line 1820 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp202_ = xpadding; -#line 1820 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp200_->allocation.x = _tmp201_ + _tmp202_; -#line 1821 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp203_ = item; -#line 1821 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp204_ = y; -#line 1821 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp205_ = ypadding; -#line 1821 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp203_->allocation.y = _tmp204_ + _tmp205_; -#line 1822 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp206_ = item; -#line 1822 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp207_ = req; -#line 1822 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp208_ = _tmp207_.width; -#line 1822 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp206_->allocation.width = _tmp208_; -#line 1823 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp209_ = item; -#line 1823 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp210_ = req; -#line 1823 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp211_ = _tmp210_.height; -#line 1823 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp209_->allocation.height = _tmp211_; -#line 1824 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp212_ = item; -#line 1824 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp213_ = col; -#line 1824 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp214_ = row; -#line 1824 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_set_grid_coordinates (_tmp212_, _tmp213_, _tmp214_); -#line 1827 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp215_ = current_row; -#line 1827 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp215_ == NULL) { -#line 10273 "CheckerboardLayout.c" - gint _tmp216_; - gint* _tmp217_; - gint _tmp217__length1; - gint _tmp218_; - gint _tmp219_; - gint _tmp220_; - CheckerboardLayoutLayoutRow* _tmp221_; -#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp216_ = y; -#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp217_ = row_heights; -#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp217__length1 = row_heights_length1; -#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp218_ = row; -#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp219_ = _tmp217_[_tmp218_]; -#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp220_ = max_cols; -#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp221_ = checkerboard_layout_layout_row_new (_tmp216_, _tmp219_, _tmp220_); -#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (current_row); -#line 1828 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - current_row = _tmp221_; -#line 10299 "CheckerboardLayout.c" - } -#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp222_ = current_row; -#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp223_ = _tmp222_->items; -#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp223__length1 = _tmp222_->items_length1; -#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp224_ = col; -#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp225_ = item; -#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp226_ = _g_object_ref0 (_tmp225_); -#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp223_[_tmp224_]); -#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp223_[_tmp224_] = _tmp226_; -#line 1830 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp227_ = _tmp223_[_tmp224_]; -#line 1832 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp228_ = x; -#line 1832 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp229_ = column_widths; -#line 1832 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp229__length1 = column_widths_length1; -#line 1832 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp230_ = col; -#line 1832 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp231_ = _tmp229_[_tmp230_]; -#line 1832 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp232_ = gutter; -#line 1832 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - x = _tmp228_ + (_tmp231_ + _tmp232_); -#line 1835 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp233_ = col; -#line 1835 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = _tmp233_ + 1; -#line 1835 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp234_ = col; -#line 1835 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp235_ = max_cols; -#line 1835 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp234_ >= _tmp235_) { -#line 10343 "CheckerboardLayout.c" - CheckerboardLayoutLayoutRow* _tmp236_; - CheckerboardLayoutLayoutRow** _tmp237_; - gint _tmp237__length1; - gint _tmp238_; - CheckerboardLayoutLayoutRow* _tmp239_; - CheckerboardLayoutLayoutRow* _tmp240_; - CheckerboardLayoutLayoutRow* _tmp241_; - gint _tmp242_; - gint _tmp243_; - gint* _tmp244_; - gint _tmp244__length1; - gint _tmp245_; - gint _tmp246_; - gint _tmp247_; -#line 1836 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp236_ = current_row; -#line 1836 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _vala_assert (_tmp236_ != NULL, "current_row != null"); -#line 1837 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp237_ = self->priv->item_rows; -#line 1837 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp237__length1 = self->priv->item_rows_length1; -#line 1837 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp238_ = row; -#line 1837 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp239_ = current_row; -#line 1837 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp240_ = _checkerboard_layout_layout_row_ref0 (_tmp239_); -#line 1837 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (_tmp237_[_tmp238_]); -#line 1837 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp237_[_tmp238_] = _tmp240_; -#line 1837 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp241_ = _tmp237_[_tmp238_]; -#line 1838 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (current_row); -#line 1838 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - current_row = NULL; -#line 1840 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp242_ = gutter; -#line 1840 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - x = _tmp242_; -#line 1841 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp243_ = y; -#line 1841 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp244_ = row_heights; -#line 1841 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp244__length1 = row_heights_length1; -#line 1841 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp245_ = row; -#line 1841 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp246_ = _tmp244_[_tmp245_]; -#line 1841 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - y = _tmp243_ + (_tmp246_ + CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING); -#line 1842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - col = 0; -#line 1843 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp247_ = row; -#line 1843 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row = _tmp247_ + 1; -#line 10404 "CheckerboardLayout.c" - } -#line 1807 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 10408 "CheckerboardLayout.c" - } - } - } -#line 1848 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp248_ = current_row; -#line 1848 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp248_ != NULL) { -#line 10416 "CheckerboardLayout.c" - CheckerboardLayoutLayoutRow** _tmp249_; - gint _tmp249__length1; - gint _tmp250_; - CheckerboardLayoutLayoutRow* _tmp251_; - CheckerboardLayoutLayoutRow* _tmp252_; - CheckerboardLayoutLayoutRow* _tmp253_; -#line 1849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp249_ = self->priv->item_rows; -#line 1849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp249__length1 = self->priv->item_rows_length1; -#line 1849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp250_ = row; -#line 1849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp251_ = current_row; -#line 1849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp252_ = _checkerboard_layout_layout_row_ref0 (_tmp251_); -#line 1849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (_tmp249_[_tmp250_]); -#line 1849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp249_[_tmp250_] = _tmp252_; -#line 1849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp253_ = _tmp249_[_tmp250_]; -#line 10439 "CheckerboardLayout.c" - } -#line 1852 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp254_ = max_cols; -#line 1852 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->columns = _tmp254_; -#line 1853 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp255_ = row; -#line 1853 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->rows = _tmp255_ + 1; -#line 1854 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp256_ = self->priv->rows; -#line 1854 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp257_ = max_rows; -#line 1854 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _vala_assert (_tmp256_ == _tmp257_, "rows == max_rows"); -#line 1858 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp258_ = y; -#line 1858 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp259_ = row_heights; -#line 1858 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp259__length1 = row_heights_length1; -#line 1858 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp260_ = row; -#line 1858 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp261_ = _tmp259_[_tmp260_]; -#line 1858 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - total_height = (_tmp258_ + _tmp261_) + CHECKERBOARD_LAYOUT_BOTTOM_PADDING; -#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp263_ = visible_width; -#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp264_ = allocation; -#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp265_ = _tmp264_.width; -#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp263_ != _tmp265_) { -#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp262_ = TRUE; -#line 10477 "CheckerboardLayout.c" - } else { - gint _tmp266_; - GtkAllocation _tmp267_; - gint _tmp268_; -#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp266_ = total_height; -#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp267_ = allocation; -#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp268_ = _tmp267_.height; -#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp262_ = _tmp266_ != _tmp268_; -#line 10490 "CheckerboardLayout.c" - } -#line 1859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp262_) { -#line 10494 "CheckerboardLayout.c" - gint _tmp269_; - gint _tmp270_; - gint _tmp271_; -#line 1864 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp269_ = visible_width; -#line 1864 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp270_ = total_height; -#line 1864 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp269_, _tmp270_); -#line 1865 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->size_allocate_due_to_reflow = TRUE; -#line 1868 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp271_ = total_height; -#line 1868 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_center_on_anchor (self, (gdouble) _tmp271_); -#line 10510 "CheckerboardLayout.c" - } -#line 1555 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _checkerboard_layout_layout_row_unref0 (current_row); -#line 1555 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - alignment_points = (g_free (alignment_points), NULL); -#line 1555 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - row_heights = (g_free (row_heights), NULL); -#line 1555 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - column_widths = (g_free (column_widths), NULL); -#line 10520 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_items_dirty (CheckerboardLayout* self, - const gchar* reason, - GeeIterable* items) -{ - GdkRectangle dirty = {0}; - gboolean _tmp30_ = FALSE; - GdkRectangle _tmp31_; - gint _tmp32_; -#line 1872 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1872 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (reason != NULL); -#line 1872 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (GEE_IS_ITERABLE (items)); -#line 1873 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - memset (&dirty, 0, sizeof (GdkRectangle)); -#line 10541 "CheckerboardLayout.c" - { - GeeIterator* _data_view_it = NULL; - GeeIterator* _tmp0_; -#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = gee_iterable_iterator (items); -#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _data_view_it = _tmp0_; -#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - while (TRUE) { -#line 10551 "CheckerboardLayout.c" - GeeIterator* _tmp1_; - DataView* data_view = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - CheckerboardItem* item = NULL; - DataView* _tmp4_; - CheckerboardItem* _tmp5_; - CheckerboardItem* _tmp6_; - ViewCollection* _tmp7_; - CheckerboardItem* _tmp8_; - gboolean _tmp9_ = FALSE; - CheckerboardItem* _tmp10_; - GdkRectangle _tmp11_; - gint _tmp12_; - GdkRectangle intersection = {0}; - CheckerboardItem* _tmp18_; - GdkRectangle _tmp19_; - GdkRectangle _tmp20_ = {0}; - gboolean _tmp21_; - gboolean _tmp22_ = FALSE; - GdkRectangle _tmp23_; - gint _tmp24_; -#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _data_view_it; -#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 10580 "CheckerboardLayout.c" - } -#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _data_view_it; -#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - data_view = (DataView*) _tmp3_; -#line 1875 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = data_view; -#line 1875 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 1875 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item = _tmp5_; -#line 1877 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = item; -#line 1877 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!data_view_is_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_VIEW, DataView))) { -#line 1878 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 1878 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (data_view); -#line 1878 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - continue; -#line 10604 "CheckerboardLayout.c" - } -#line 1880 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = self->priv->view; -#line 1880 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = item; -#line 1880 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _vala_assert (data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject)), "view.contains(item)"); -#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = item; -#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = _tmp10_->allocation; -#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = _tmp11_.width; -#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp12_ <= 0) { -#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = TRUE; -#line 10622 "CheckerboardLayout.c" - } else { - CheckerboardItem* _tmp13_; - GdkRectangle _tmp14_; - gint _tmp15_; -#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = item; -#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = _tmp13_->allocation; -#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = _tmp14_.height; -#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = _tmp15_ <= 0; -#line 10635 "CheckerboardLayout.c" - } -#line 1884 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp9_) { -#line 10639 "CheckerboardLayout.c" - gchar* _tmp16_; - gchar* _tmp17_; -#line 1885 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = g_strdup_printf ("items_dirty: %s", reason); -#line 1885 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp17_ = _tmp16_; -#line 1885 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_need_reflow (self, _tmp17_); -#line 1885 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (_tmp17_); -#line 1887 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 1887 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (data_view); -#line 1887 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_data_view_it); -#line 1887 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 10658 "CheckerboardLayout.c" - } -#line 1891 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - memset (&intersection, 0, sizeof (GdkRectangle)); -#line 1892 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = item; -#line 1892 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = _tmp18_->allocation; -#line 1892 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp21_ = gdk_rectangle_intersect (&self->priv->visible_page, &_tmp19_, &_tmp20_); -#line 1892 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - intersection = _tmp20_; -#line 1892 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!_tmp21_) { -#line 1893 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 1893 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (data_view); -#line 1893 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - continue; -#line 10678 "CheckerboardLayout.c" - } -#line 1896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp23_ = dirty; -#line 1896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp24_ = _tmp23_.width; -#line 1896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp24_ == 0) { -#line 1896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp22_ = TRUE; -#line 10688 "CheckerboardLayout.c" - } else { - GdkRectangle _tmp25_; - gint _tmp26_; -#line 1896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp25_ = dirty; -#line 1896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp26_ = _tmp25_.height; -#line 1896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp22_ = _tmp26_ == 0; -#line 10698 "CheckerboardLayout.c" - } -#line 1896 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp22_) { -#line 10702 "CheckerboardLayout.c" - GdkRectangle _tmp27_; -#line 1897 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp27_ = intersection; -#line 1897 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - dirty = _tmp27_; -#line 10708 "CheckerboardLayout.c" - } else { - GdkRectangle _tmp28_; - GdkRectangle _tmp29_ = {0}; -#line 1899 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp28_ = intersection; -#line 1899 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gdk_rectangle_union (&dirty, &_tmp28_, &_tmp29_); -#line 1899 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - dirty = _tmp29_; -#line 10718 "CheckerboardLayout.c" - } -#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (data_view); -#line 10724 "CheckerboardLayout.c" - } -#line 1874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_data_view_it); -#line 10728 "CheckerboardLayout.c" - } -#line 1902 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp31_ = dirty; -#line 1902 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp32_ = _tmp31_.width; -#line 1902 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp32_ > 0) { -#line 10736 "CheckerboardLayout.c" - GdkRectangle _tmp33_; - gint _tmp34_; -#line 1902 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp33_ = dirty; -#line 1902 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp34_ = _tmp33_.height; -#line 1902 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp30_ = _tmp34_ > 0; -#line 10745 "CheckerboardLayout.c" - } else { -#line 1902 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp30_ = FALSE; -#line 10749 "CheckerboardLayout.c" - } -#line 1902 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp30_) { -#line 10753 "CheckerboardLayout.c" - GdkRectangle _tmp35_; - gint _tmp36_; - GdkRectangle _tmp37_; - gint _tmp38_; - GdkRectangle _tmp39_; - gint _tmp40_; - GdkRectangle _tmp41_; - gint _tmp42_; -#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp35_ = dirty; -#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp36_ = _tmp35_.x; -#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp37_ = dirty; -#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp38_ = _tmp37_.y; -#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp39_ = dirty; -#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp40_ = _tmp39_.width; -#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp41_ = dirty; -#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp42_ = _tmp41_.height; -#line 1907 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_queue_draw_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp36_, _tmp38_, _tmp40_, _tmp42_); -#line 10780 "CheckerboardLayout.c" - } -} - - -static void -checkerboard_layout_real_map (GtkWidget* base) -{ - CheckerboardLayout * self; -#line 1911 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout); -#line 1912 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - GTK_WIDGET_CLASS (checkerboard_layout_parent_class)->map (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_drawing_area_get_type (), GtkDrawingArea), gtk_widget_get_type (), GtkWidget)); -#line 1914 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_set_colors (self, TRUE); -#line 10795 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_set_colors (CheckerboardLayout* self, - gboolean in_focus) -{ - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - GdkRGBA _tmp2_ = {0}; - ConfigFacade* _tmp3_; - ConfigFacade* _tmp4_; - GdkRGBA _tmp5_ = {0}; - ConfigFacade* _tmp6_; - ConfigFacade* _tmp7_; - GdkRGBA _tmp8_ = {0}; - GtkStyleContext* _tmp9_; - GdkRGBA _tmp10_ = {0}; -#line 1917 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = config_facade_get_instance (); -#line 1919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _tmp0_; -#line 1919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - config_facade_get_selected_color (_tmp1_, in_focus, &_tmp2_); -#line 1919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->selected_color = _tmp2_; -#line 1919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp1_); -#line 1920 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = config_facade_get_instance (); -#line 1920 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = _tmp3_; -#line 1920 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - config_facade_get_unselected_color (_tmp4_, &_tmp5_); -#line 1920 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->unselected_color = _tmp5_; -#line 1920 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp4_); -#line 1921 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = config_facade_get_instance (); -#line 1921 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = _tmp6_; -#line 1921 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - config_facade_get_border_color (_tmp7_, &_tmp8_); -#line 1921 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->border_color = _tmp8_; -#line 1921 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp7_); -#line 1922 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = gtk_widget_get_style_context (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 1922 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_style_context_get_background_color (_tmp9_, GTK_STATE_FLAG_NORMAL, &_tmp10_); -#line 1922 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->bg_color = _tmp10_; -#line 10852 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_real_size_allocate (GtkWidget* base, - GtkAllocation* allocation) -{ - CheckerboardLayout * self; - GtkAllocation _tmp0_; -#line 1925 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout); -#line 1925 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (allocation != NULL); -#line 1926 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = *allocation; -#line 1926 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - GTK_WIDGET_CLASS (checkerboard_layout_parent_class)->size_allocate (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_drawing_area_get_type (), GtkDrawingArea), gtk_widget_get_type (), GtkWidget), &_tmp0_); -#line 1928 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_viewport_resized (self); -#line 10872 "CheckerboardLayout.c" -} - - -static gboolean -checkerboard_layout_real_draw (GtkWidget* base, - cairo_t* ctx) -{ - CheckerboardLayout * self; - gboolean result = FALSE; - GtkAllocation allocation = {0}; - GtkAllocation _tmp0_ = {0}; - GtkStyleContext* _tmp1_; - GtkAllocation _tmp2_; - gint _tmp3_; - GtkAllocation _tmp4_; - gint _tmp5_; - const gchar* _tmp6_; - gboolean _tmp54_ = FALSE; - gboolean _result_ = FALSE; -#line 1931 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout); -#line 1931 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (ctx != NULL, FALSE); -#line 1940 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), &_tmp0_); -#line 1940 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - allocation = _tmp0_; -#line 1941 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = gtk_widget_get_style_context (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 1941 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = allocation; -#line 1941 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = _tmp2_.width; -#line 1941 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = allocation; -#line 1941 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = _tmp4_.height; -#line 1941 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_render_background (_tmp1_, ctx, (gdouble) 0, (gdouble) 0, (gdouble) _tmp3_, (gdouble) _tmp5_); -#line 1944 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = self->priv->message; -#line 1944 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp6_ == NULL) { -#line 10916 "CheckerboardLayout.c" - gboolean _tmp7_; -#line 1949 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = self->priv->exposure_dirty; -#line 1949 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp7_) { -#line 1950 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_expose_items (self, "draw"); -#line 10924 "CheckerboardLayout.c" - } - { - GeeList* _item_list = NULL; - GdkRectangle _tmp8_; - GeeList* _tmp9_; - gint _item_size = 0; - GeeList* _tmp10_; - gint _tmp11_; - gint _tmp12_; - gint _item_index = 0; -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = self->priv->visible_page; -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = checkerboard_layout_intersection (self, &_tmp8_); -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _item_list = _tmp9_; -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = _item_list; -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = _tmp11_; -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _item_size = _tmp12_; -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _item_index = -1; -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - while (TRUE) { -#line 10953 "CheckerboardLayout.c" - gint _tmp13_; - gint _tmp14_; - gint _tmp15_; - CheckerboardItem* item = NULL; - GeeList* _tmp16_; - gint _tmp17_; - gpointer _tmp18_; - GdkRGBA _tmp19_ = {0}; - CheckerboardItem* _tmp20_; - CheckerboardItem* _tmp23_; - GdkRGBA _tmp24_; - GdkRGBA _tmp25_; - GdkRGBA _tmp26_; -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = _item_index; -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _item_index = _tmp13_ + 1; -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = _item_index; -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = _item_size; -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!(_tmp14_ < _tmp15_)) { -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - break; -#line 10979 "CheckerboardLayout.c" - } -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = _item_list; -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp17_ = _item_index; -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = gee_list_get (_tmp16_, _tmp17_); -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item = (CheckerboardItem*) _tmp18_; -#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp20_ = item; -#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_VIEW, DataView))) { -#line 10993 "CheckerboardLayout.c" - GdkRGBA _tmp21_; -#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp21_ = self->priv->selected_color; -#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = _tmp21_; -#line 10999 "CheckerboardLayout.c" - } else { - GdkRGBA _tmp22_; -#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp22_ = self->priv->unselected_color; -#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = _tmp22_; -#line 11006 "CheckerboardLayout.c" - } -#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp23_ = item; -#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp24_ = self->priv->bg_color; -#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp25_ = self->priv->unselected_color; -#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp26_ = self->priv->border_color; -#line 1954 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_item_paint (_tmp23_, ctx, &_tmp24_, &_tmp19_, &_tmp25_, &_tmp26_); -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 11020 "CheckerboardLayout.c" - } -#line 1953 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_item_list); -#line 11024 "CheckerboardLayout.c" - } - } else { - PangoLayout* pango_layout = NULL; - const gchar* _tmp27_; - PangoLayout* _tmp28_; - gint text_width = 0; - gint text_height = 0; - PangoLayout* _tmp29_; - gint _tmp30_ = 0; - gint _tmp31_ = 0; - GtkAllocation _tmp32_ = {0}; - gint x = 0; - GtkAllocation _tmp33_; - gint _tmp34_; - gint _tmp35_; - gint _tmp36_ = 0; - gint _tmp37_; - gint y = 0; - GtkAllocation _tmp39_; - gint _tmp40_; - gint _tmp41_; - gint _tmp42_ = 0; - gint _tmp43_; - GdkRGBA _tmp45_; - gdouble _tmp46_; - GdkRGBA _tmp47_; - gdouble _tmp48_; - GdkRGBA _tmp49_; - gdouble _tmp50_; - gint _tmp51_; - gint _tmp52_; - PangoLayout* _tmp53_; -#line 1959 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp27_ = self->priv->message; -#line 1959 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp28_ = gtk_widget_create_pango_layout (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp27_); -#line 1959 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - pango_layout = _tmp28_; -#line 1961 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp29_ = pango_layout; -#line 1961 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - pango_layout_get_pixel_size (_tmp29_, &_tmp30_, &_tmp31_); -#line 1961 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - text_width = _tmp30_; -#line 1961 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - text_height = _tmp31_; -#line 1963 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), &_tmp32_); -#line 1963 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - allocation = _tmp32_; -#line 1965 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp33_ = allocation; -#line 1965 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp34_ = _tmp33_.width; -#line 1965 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp35_ = text_width; -#line 1965 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - x = _tmp34_ - _tmp35_; -#line 1966 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp37_ = x; -#line 1966 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp37_ > 0) { -#line 11087 "CheckerboardLayout.c" - gint _tmp38_; -#line 1966 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp38_ = x; -#line 1966 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp36_ = _tmp38_ / 2; -#line 11093 "CheckerboardLayout.c" - } else { -#line 1966 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp36_ = 0; -#line 11097 "CheckerboardLayout.c" - } -#line 1966 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - x = _tmp36_; -#line 1968 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp39_ = allocation; -#line 1968 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp40_ = _tmp39_.height; -#line 1968 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp41_ = text_height; -#line 1968 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - y = _tmp40_ - _tmp41_; -#line 1969 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp43_ = y; -#line 1969 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp43_ > 0) { -#line 11113 "CheckerboardLayout.c" - gint _tmp44_; -#line 1969 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp44_ = y; -#line 1969 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp42_ = _tmp44_ / 2; -#line 11119 "CheckerboardLayout.c" - } else { -#line 1969 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp42_ = 0; -#line 11123 "CheckerboardLayout.c" - } -#line 1969 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - y = _tmp42_; -#line 1971 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp45_ = self->priv->unselected_color; -#line 1971 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp46_ = _tmp45_.red; -#line 1971 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp47_ = self->priv->unselected_color; -#line 1971 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp48_ = _tmp47_.green; -#line 1971 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp49_ = self->priv->unselected_color; -#line 1971 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp50_ = _tmp49_.blue; -#line 1971 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_set_source_rgb (ctx, _tmp46_, _tmp48_, _tmp50_); -#line 1972 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp51_ = x; -#line 1972 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp52_ = y; -#line 1972 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_move_to (ctx, (gdouble) _tmp51_, (gdouble) _tmp52_); -#line 1973 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp53_ = pango_layout; -#line 1973 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - pango_cairo_show_layout (ctx, _tmp53_); -#line 1944 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (pango_layout); -#line 11153 "CheckerboardLayout.c" - } -#line 1976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (GTK_WIDGET_CLASS (checkerboard_layout_parent_class)->draw != NULL) { -#line 1976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp54_ = GTK_WIDGET_CLASS (checkerboard_layout_parent_class)->draw (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_drawing_area_get_type (), GtkDrawingArea), gtk_widget_get_type (), GtkWidget), ctx); -#line 11159 "CheckerboardLayout.c" - } else { -#line 1976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp54_ = TRUE; -#line 11163 "CheckerboardLayout.c" - } -#line 1976 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _result_ = _tmp54_; -#line 1979 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_draw_selection_band (self, ctx); -#line 1981 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _result_; -#line 1981 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 11173 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_draw_selection_band (CheckerboardLayout* self, - cairo_t* ctx) -{ - gboolean _tmp0_ = FALSE; - GdkRectangle _tmp1_; - gint _tmp2_; - gboolean _tmp5_ = FALSE; - GtkAdjustment* _tmp6_; - GdkRectangle visible_page = {0}; - GtkAdjustment* _tmp8_; - GtkAdjustment* _tmp9_; - GdkRectangle _tmp10_ = {0}; - GdkRectangle visible_band = {0}; - GdkRectangle _tmp11_; - GdkRectangle _tmp12_ = {0}; - gboolean _tmp13_ = FALSE; - GdkRectangle _tmp14_; - gint _tmp15_; - GdkRGBA _tmp32_; - gdouble _tmp33_; - GdkRGBA _tmp34_; - gdouble _tmp35_; - GdkRGBA _tmp36_; - gdouble _tmp37_; - GdkRectangle _tmp38_; - gint _tmp39_; - GdkRectangle _tmp40_; - gint _tmp41_; - GdkRectangle _tmp42_; - gint _tmp43_; - GdkRectangle _tmp44_; - gint _tmp45_; -#line 1984 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 1984 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (ctx != NULL); -#line 1986 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = self->priv->selection_band; -#line 1986 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _tmp1_.width; -#line 1986 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp2_ <= 1) { -#line 1986 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = TRUE; -#line 11222 "CheckerboardLayout.c" - } else { - GdkRectangle _tmp3_; - gint _tmp4_; -#line 1986 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = self->priv->selection_band; -#line 1986 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = _tmp3_.height; -#line 1986 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = _tmp4_ <= 1; -#line 11232 "CheckerboardLayout.c" - } -#line 1986 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp0_) { -#line 1987 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 11238 "CheckerboardLayout.c" - } -#line 1990 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = self->priv->hadjustment; -#line 1990 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp6_ == NULL) { -#line 1990 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = TRUE; -#line 11246 "CheckerboardLayout.c" - } else { - GtkAdjustment* _tmp7_; -#line 1990 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp7_ = self->priv->vadjustment; -#line 1990 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp5_ = _tmp7_ == NULL; -#line 11253 "CheckerboardLayout.c" - } -#line 1990 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp5_) { -#line 1991 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return; -#line 11259 "CheckerboardLayout.c" - } -#line 1994 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = self->priv->hadjustment; -#line 1994 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp9_ = self->priv->vadjustment; -#line 1994 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - get_adjustment_page (_tmp8_, _tmp9_, &_tmp10_); -#line 1994 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - visible_page = _tmp10_; -#line 1995 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - memset (&visible_band, 0, sizeof (GdkRectangle)); -#line 1996 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp11_ = self->priv->selection_band; -#line 1996 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gdk_rectangle_intersect (&visible_page, &_tmp11_, &_tmp12_); -#line 1996 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - visible_band = _tmp12_; -#line 1999 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = visible_band; -#line 1999 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp15_ = _tmp14_.width; -#line 1999 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp15_ > 1) { -#line 11283 "CheckerboardLayout.c" - GdkRectangle _tmp16_; - gint _tmp17_; -#line 1999 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = visible_band; -#line 1999 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp17_ = _tmp16_.height; -#line 1999 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = _tmp17_ > 1; -#line 11292 "CheckerboardLayout.c" - } else { -#line 1999 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp13_ = FALSE; -#line 11296 "CheckerboardLayout.c" - } -#line 1999 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp13_) { -#line 11300 "CheckerboardLayout.c" - GdkRGBA _tmp18_; - gdouble _tmp19_; - GdkRGBA _tmp20_; - gdouble _tmp21_; - GdkRGBA _tmp22_; - gdouble _tmp23_; - GdkRectangle _tmp24_; - gint _tmp25_; - GdkRectangle _tmp26_; - gint _tmp27_; - GdkRectangle _tmp28_; - gint _tmp29_; - GdkRectangle _tmp30_; - gint _tmp31_; -#line 2000 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = self->priv->selected_color; -#line 2000 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = _tmp18_.red; -#line 2000 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp20_ = self->priv->selected_color; -#line 2000 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp21_ = _tmp20_.green; -#line 2000 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp22_ = self->priv->selected_color; -#line 2000 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp23_ = _tmp22_.blue; -#line 2000 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_set_source_rgba (ctx, _tmp19_, _tmp21_, _tmp23_, CHECKERBOARD_LAYOUT_SELECTION_ALPHA); -#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp24_ = visible_band; -#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp25_ = _tmp24_.x; -#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp26_ = visible_band; -#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp27_ = _tmp26_.y; -#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp28_ = visible_band; -#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp29_ = _tmp28_.width; -#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp30_ = visible_band; -#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp31_ = _tmp30_.height; -#line 2002 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_rectangle (ctx, (gdouble) _tmp25_, (gdouble) _tmp27_, (gdouble) _tmp29_, (gdouble) _tmp31_); -#line 2004 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_fill (ctx); -#line 11349 "CheckerboardLayout.c" - } -#line 2010 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_set_line_width (ctx, 1.0); -#line 2011 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_set_line_cap (ctx, CAIRO_LINE_CAP_SQUARE); -#line 2012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp32_ = self->priv->selected_color; -#line 2012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp33_ = _tmp32_.red; -#line 2012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp34_ = self->priv->selected_color; -#line 2012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp35_ = _tmp34_.green; -#line 2012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp36_ = self->priv->selected_color; -#line 2012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp37_ = _tmp36_.blue; -#line 2012 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_set_source_rgb (ctx, _tmp33_, _tmp35_, _tmp37_); -#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp38_ = self->priv->selection_band; -#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp39_ = _tmp38_.x; -#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp40_ = self->priv->selection_band; -#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp41_ = _tmp40_.y; -#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp42_ = self->priv->selection_band; -#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp43_ = _tmp42_.width; -#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp44_ = self->priv->selection_band; -#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp45_ = _tmp44_.height; -#line 2013 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_rectangle (ctx, ((gdouble) _tmp39_) + 0.5, ((gdouble) _tmp41_) + 0.5, ((gdouble) _tmp43_) - 1.0, ((gdouble) _tmp45_) - 1.0); -#line 2015 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - cairo_stroke (ctx); -#line 11389 "CheckerboardLayout.c" -} - - -static gboolean -checkerboard_layout_real_query_tooltip (GtkWidget* base, - gint x, - gint y, - gboolean keyboard_mode, - GtkTooltip* tooltip) -{ - CheckerboardLayout * self; - gboolean result = FALSE; - CheckerboardItem* item = NULL; - CheckerboardItem* _tmp0_; - gboolean _tmp1_ = FALSE; - CheckerboardItem* _tmp2_; -#line 2018 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout); -#line 2018 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (GTK_IS_TOOLTIP (tooltip), FALSE); -#line 2019 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = checkerboard_layout_get_item_at_pixel (self, (gdouble) x, (gdouble) y); -#line 2019 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - item = _tmp0_; -#line 2021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = item; -#line 2021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp2_ != NULL) { -#line 11418 "CheckerboardLayout.c" - CheckerboardItem* _tmp3_; -#line 2021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp3_ = item; -#line 2021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = checkerboard_item_query_tooltip (_tmp3_, x, y, tooltip); -#line 11424 "CheckerboardLayout.c" - } else { -#line 2021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = FALSE; -#line 11428 "CheckerboardLayout.c" - } -#line 2021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = _tmp1_; -#line 2021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (item); -#line 2021 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 11436 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_on_colors_changed (CheckerboardLayout* self) -{ - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - GdkRGBA _tmp2_ = {0}; -#line 2024 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (IS_CHECKERBOARD_LAYOUT (self)); -#line 2025 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - invalidate_transparent_background (); -#line 2026 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = config_facade_get_instance (); -#line 2026 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = _tmp0_; -#line 2026 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - config_facade_get_bg_color (_tmp1_, &_tmp2_); -#line 2026 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - gtk_widget_override_background_color (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), GTK_STATE_FLAG_NORMAL, &_tmp2_); -#line 2026 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp1_); -#line 2027 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_set_colors (self, TRUE); -#line 11462 "CheckerboardLayout.c" -} - - -static gboolean -checkerboard_layout_real_focus_in_event (GtkWidget* base, - GdkEventFocus* event) -{ - CheckerboardLayout * self; - gboolean result = FALSE; - ViewCollection* _tmp0_; - GeeList* _tmp1_; - GeeList* _tmp2_; -#line 2030 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout); -#line 2030 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 2031 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_set_colors (self, TRUE); -#line 2032 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->view; -#line 2032 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = view_collection_get_selected (_tmp0_); -#line 2032 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _tmp1_; -#line 2032 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_items_dirty (self, "focus_in_event", G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2032 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp2_); -#line 2034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = GTK_WIDGET_CLASS (checkerboard_layout_parent_class)->focus_in_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_drawing_area_get_type (), GtkDrawingArea), gtk_widget_get_type (), GtkWidget), event); -#line 2034 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 11495 "CheckerboardLayout.c" -} - - -static gboolean -checkerboard_layout_real_focus_out_event (GtkWidget* base, - GdkEventFocus* event) -{ - CheckerboardLayout * self; - gboolean result = FALSE; - ViewCollection* _tmp0_; - GeeList* _tmp1_; - GeeList* _tmp2_; -#line 2037 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout); -#line 2037 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 2038 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_set_colors (self, FALSE); -#line 2039 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->view; -#line 2039 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = view_collection_get_selected (_tmp0_); -#line 2039 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = _tmp1_; -#line 2039 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_items_dirty (self, "focus_out_event", G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2039 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp2_); -#line 2041 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - result = GTK_WIDGET_CLASS (checkerboard_layout_parent_class)->focus_out_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_drawing_area_get_type (), GtkDrawingArea), gtk_widget_get_type (), GtkWidget), event); -#line 2041 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return result; -#line 11528 "CheckerboardLayout.c" -} - - -static CheckerboardLayoutLayoutRow* -checkerboard_layout_layout_row_construct (GType object_type, - gint y, - gint height, - gint num_in_row) -{ - CheckerboardLayoutLayoutRow* self = NULL; - CheckerboardItem** _tmp0_; -#line 847 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = (CheckerboardLayoutLayoutRow*) g_type_create_instance (object_type); -#line 848 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->y = y; -#line 849 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->height = height; -#line 850 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = g_new0 (CheckerboardItem*, num_in_row + 1); -#line 850 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->items = (_vala_array_free (self->items, self->items_length1, (GDestroyNotify) g_object_unref), NULL); -#line 850 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->items = _tmp0_; -#line 850 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->items_length1 = num_in_row; -#line 850 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->_items_size_ = self->items_length1; -#line 847 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return self; -#line 11558 "CheckerboardLayout.c" -} - - -static CheckerboardLayoutLayoutRow* -checkerboard_layout_layout_row_new (gint y, - gint height, - gint num_in_row) -{ -#line 847 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return checkerboard_layout_layout_row_construct (CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW, y, height, num_in_row); -#line 11569 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_value_layout_row_init (GValue* value) -{ -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - value->data[0].v_pointer = NULL; -#line 11578 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_value_layout_row_free_value (GValue* value) -{ -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (value->data[0].v_pointer) { -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_layout_row_unref (value->data[0].v_pointer); -#line 11589 "CheckerboardLayout.c" - } -} - - -static void -checkerboard_layout_value_layout_row_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (src_value->data[0].v_pointer) { -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - dest_value->data[0].v_pointer = checkerboard_layout_layout_row_ref (src_value->data[0].v_pointer); -#line 11602 "CheckerboardLayout.c" - } else { -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - dest_value->data[0].v_pointer = NULL; -#line 11606 "CheckerboardLayout.c" - } -} - - -static gpointer -checkerboard_layout_value_layout_row_peek_pointer (const GValue* value) -{ -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return value->data[0].v_pointer; -#line 11616 "CheckerboardLayout.c" -} - - -static gchar* -checkerboard_layout_value_layout_row_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (collect_values[0].v_pointer) { -#line 11628 "CheckerboardLayout.c" - CheckerboardLayoutLayoutRow * object; - object = collect_values[0].v_pointer; -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (object->parent_instance.g_class == NULL) { -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 11635 "CheckerboardLayout.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 11639 "CheckerboardLayout.c" - } -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - value->data[0].v_pointer = checkerboard_layout_layout_row_ref (object); -#line 11643 "CheckerboardLayout.c" - } else { -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - value->data[0].v_pointer = NULL; -#line 11647 "CheckerboardLayout.c" - } -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return NULL; -#line 11651 "CheckerboardLayout.c" -} - - -static gchar* -checkerboard_layout_value_layout_row_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - CheckerboardLayoutLayoutRow ** object_p; - object_p = collect_values[0].v_pointer; -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!object_p) { -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 11667 "CheckerboardLayout.c" - } -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (!value->data[0].v_pointer) { -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - *object_p = NULL; -#line 11673 "CheckerboardLayout.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - *object_p = value->data[0].v_pointer; -#line 11677 "CheckerboardLayout.c" - } else { -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - *object_p = checkerboard_layout_layout_row_ref (value->data[0].v_pointer); -#line 11681 "CheckerboardLayout.c" - } -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return NULL; -#line 11685 "CheckerboardLayout.c" -} - - -static GParamSpec* -checkerboard_layout_param_spec_layout_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - CheckerboardLayoutParamSpecLayoutRow* spec; -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (g_type_is_a (object_type, CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW), NULL); -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return G_PARAM_SPEC (spec); -#line 11705 "CheckerboardLayout.c" -} - - -static gpointer -checkerboard_layout_value_get_layout_row (const GValue* value) -{ -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW), NULL); -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return value->data[0].v_pointer; -#line 11716 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_value_set_layout_row (GValue* value, - gpointer v_object) -{ - CheckerboardLayoutLayoutRow * old; -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW)); -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - old = value->data[0].v_pointer; -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (v_object) { -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW)); -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - value->data[0].v_pointer = v_object; -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_layout_row_ref (value->data[0].v_pointer); -#line 11739 "CheckerboardLayout.c" - } else { -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - value->data[0].v_pointer = NULL; -#line 11743 "CheckerboardLayout.c" - } -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (old) { -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_layout_row_unref (old); -#line 11749 "CheckerboardLayout.c" - } -} - - -static void -checkerboard_layout_value_take_layout_row (GValue* value, - gpointer v_object) -{ - CheckerboardLayoutLayoutRow * old; -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW)); -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - old = value->data[0].v_pointer; -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (v_object) { -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW)); -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - value->data[0].v_pointer = v_object; -#line 11771 "CheckerboardLayout.c" - } else { -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - value->data[0].v_pointer = NULL; -#line 11775 "CheckerboardLayout.c" - } -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (old) { -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_layout_row_unref (old); -#line 11781 "CheckerboardLayout.c" - } -} - - -static void -checkerboard_layout_layout_row_class_init (CheckerboardLayoutLayoutRowClass * klass) -{ -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_layout_row_parent_class = g_type_class_peek_parent (klass); -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((CheckerboardLayoutLayoutRowClass *) klass)->finalize = checkerboard_layout_layout_row_finalize; -#line 11793 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_layout_row_instance_init (CheckerboardLayoutLayoutRow * self) -{ -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->ref_count = 1; -#line 11802 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_layout_row_finalize (CheckerboardLayoutLayoutRow * obj) -{ - CheckerboardLayoutLayoutRow * self; -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, CHECKERBOARD_LAYOUT_TYPE_LAYOUT_ROW, CheckerboardLayoutLayoutRow); -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_handlers_destroy (self); -#line 845 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->items = (_vala_array_free (self->items, self->items_length1, (GDestroyNotify) g_object_unref), NULL); -#line 11816 "CheckerboardLayout.c" -} - - -static GType -checkerboard_layout_layout_row_get_type (void) -{ - static volatile gsize checkerboard_layout_layout_row_type_id__volatile = 0; - if (g_once_init_enter (&checkerboard_layout_layout_row_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { checkerboard_layout_value_layout_row_init, checkerboard_layout_value_layout_row_free_value, checkerboard_layout_value_layout_row_copy_value, checkerboard_layout_value_layout_row_peek_pointer, "p", checkerboard_layout_value_layout_row_collect_value, "p", checkerboard_layout_value_layout_row_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (CheckerboardLayoutLayoutRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) checkerboard_layout_layout_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CheckerboardLayoutLayoutRow), 0, (GInstanceInitFunc) checkerboard_layout_layout_row_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType checkerboard_layout_layout_row_type_id; - checkerboard_layout_layout_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "CheckerboardLayoutLayoutRow", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&checkerboard_layout_layout_row_type_id__volatile, checkerboard_layout_layout_row_type_id); - } - return checkerboard_layout_layout_row_type_id__volatile; -} - - -static gpointer -checkerboard_layout_layout_row_ref (gpointer instance) -{ - CheckerboardLayoutLayoutRow * self; - self = instance; -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_atomic_int_inc (&self->ref_count); -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - return instance; -#line 11845 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_layout_row_unref (gpointer instance) -{ - CheckerboardLayoutLayoutRow * self; - self = instance; -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - CHECKERBOARD_LAYOUT_LAYOUT_ROW_GET_CLASS (self)->finalize (self); -#line 842 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 11860 "CheckerboardLayout.c" - } -} - - -static void -checkerboard_layout_class_init (CheckerboardLayoutClass * klass) -{ -#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - checkerboard_layout_parent_class = g_type_class_peek_parent (klass); -#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_type_class_add_private (klass, sizeof (CheckerboardLayoutPrivate)); -#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((GtkWidgetClass *) klass)->map = (void (*) (GtkWidget *)) checkerboard_layout_real_map; -#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((GtkWidgetClass *) klass)->size_allocate = (void (*) (GtkWidget *, GtkAllocation*)) checkerboard_layout_real_size_allocate; -#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((GtkWidgetClass *) klass)->draw = (gboolean (*) (GtkWidget *, cairo_t*)) checkerboard_layout_real_draw; -#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((GtkWidgetClass *) klass)->query_tooltip = (gboolean (*) (GtkWidget *, gint, gint, gboolean, GtkTooltip*)) checkerboard_layout_real_query_tooltip; -#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((GtkWidgetClass *) klass)->focus_in_event = (gboolean (*) (GtkWidget *, GdkEventFocus*)) checkerboard_layout_real_focus_in_event; -#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - ((GtkWidgetClass *) klass)->focus_out_event = (gboolean (*) (GtkWidget *, GdkEventFocus*)) checkerboard_layout_real_focus_out_event; -#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - G_OBJECT_CLASS (klass)->finalize = checkerboard_layout_finalize; -#line 11886 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_instance_init (CheckerboardLayout * self) -{ - gchar* _tmp0_; - GeeHashSet* _tmp1_; -#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv = CHECKERBOARD_LAYOUT_GET_PRIVATE (self); -#line 855 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = g_strdup (""); -#line 855 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->page_name = _tmp0_; -#line 856 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->item_rows = NULL; -#line 856 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->item_rows_length1 = 0; -#line 856 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->_item_rows_size_ = self->priv->item_rows_length1; -#line 857 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp1_ = gee_hash_set_new (TYPE_CHECKERBOARD_ITEM, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 857 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->exposed_items = _tmp1_; -#line 858 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->hadjustment = NULL; -#line 859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->vadjustment = NULL; -#line 860 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->message = NULL; -#line 865 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - memset (&self->priv->visible_page, 0, sizeof (GdkRectangle)); -#line 866 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->last_width = 0; -#line 867 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->columns = 0; -#line 868 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->rows = 0; -#line 869 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - memset (&self->priv->drag_origin, 0, sizeof (GdkPoint)); -#line 870 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - memset (&self->priv->drag_endpoint, 0, sizeof (GdkPoint)); -#line 871 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - memset (&self->priv->selection_band, 0, sizeof (GdkRectangle)); -#line 872 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->scale = 0; -#line 873 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->flow_scheduled = FALSE; -#line 874 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->exposure_dirty = TRUE; -#line 875 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->anchor = NULL; -#line 876 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->cursor = NULL; -#line 877 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->in_center_on_anchor = FALSE; -#line 878 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->size_allocate_due_to_reflow = FALSE; -#line 879 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->is_in_view = FALSE; -#line 880 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->reflow_needed = FALSE; -#line 11949 "CheckerboardLayout.c" -} - - -static void -checkerboard_layout_finalize (GObject * obj) -{ - CheckerboardLayout * self; - ViewCollection* _tmp0_; - guint _tmp1_; - ViewCollection* _tmp2_; - guint _tmp3_; - ViewCollection* _tmp4_; - guint _tmp5_; - ViewCollection* _tmp6_; - guint _tmp7_; - ViewCollection* _tmp8_; - guint _tmp9_; - ViewCollection* _tmp10_; - guint _tmp11_; - ViewCollection* _tmp12_; - guint _tmp13_; - ViewCollection* _tmp14_; - guint _tmp15_; - ViewCollection* _tmp16_; - guint _tmp17_; - GtkAdjustment* _tmp18_; - GtkAdjustment* _tmp21_; - GtkContainer* _tmp24_; - GtkContainer* _tmp25_; - ConfigFacade* _tmp29_; - ConfigFacade* _tmp30_; - guint _tmp31_; -#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout); -#line 911 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp0_ = self->priv->view; -#line 911 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE); -#line 911 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _checkerboard_layout_on_contents_altered_data_collection_contents_altered, self); -#line 912 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp2_ = self->priv->view; -#line 912 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE); -#line 912 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _checkerboard_layout_on_items_altered_data_collection_items_altered, self); -#line 913 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp4_ = self->priv->view; -#line 913 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_parse_name ("items-state-changed", TYPE_VIEW_COLLECTION, &_tmp5_, NULL, FALSE); -#line 913 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _checkerboard_layout_on_items_state_changed_view_collection_items_state_changed, self); -#line 914 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp6_ = self->priv->view; -#line 914 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_parse_name ("items-visibility-changed", TYPE_VIEW_COLLECTION, &_tmp7_, NULL, FALSE); -#line 914 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _checkerboard_layout_on_items_visibility_changed_view_collection_items_visibility_changed, self); -#line 915 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp8_ = self->priv->view; -#line 915 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_parse_name ("ordering-changed", TYPE_DATA_COLLECTION, &_tmp9_, NULL, FALSE); -#line 915 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _checkerboard_layout_on_ordering_changed_data_collection_ordering_changed, self); -#line 916 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp10_ = self->priv->view; -#line 916 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_parse_name ("views-altered", TYPE_VIEW_COLLECTION, &_tmp11_, NULL, FALSE); -#line 916 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_handlers_disconnect_matched (_tmp10_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _checkerboard_layout_on_views_altered_view_collection_views_altered, self); -#line 917 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp12_ = self->priv->view; -#line 917 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_parse_name ("geometries-altered", TYPE_VIEW_COLLECTION, &_tmp13_, NULL, FALSE); -#line 917 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_handlers_disconnect_matched (_tmp12_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _checkerboard_layout_on_geometries_altered_view_collection_geometries_altered, self); -#line 918 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp14_ = self->priv->view; -#line 918 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_parse_name ("items-selected", TYPE_VIEW_COLLECTION, &_tmp15_, NULL, FALSE); -#line 918 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_handlers_disconnect_matched (_tmp14_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp15_, 0, NULL, (GCallback) _checkerboard_layout_on_items_selection_changed_view_collection_items_selected, self); -#line 919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp16_ = self->priv->view; -#line 919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_parse_name ("items-unselected", TYPE_VIEW_COLLECTION, &_tmp17_, NULL, FALSE); -#line 919 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_handlers_disconnect_matched (_tmp16_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp17_, 0, NULL, (GCallback) _checkerboard_layout_on_items_selection_changed_view_collection_items_unselected, self); -#line 921 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp18_ = self->priv->hadjustment; -#line 921 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp18_ != NULL) { -#line 12042 "CheckerboardLayout.c" - GtkAdjustment* _tmp19_; - guint _tmp20_; -#line 922 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp19_ = self->priv->hadjustment; -#line 922 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_parse_name ("value-changed", gtk_adjustment_get_type (), &_tmp20_, NULL, FALSE); -#line 922 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_handlers_disconnect_matched (_tmp19_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp20_, 0, NULL, (GCallback) _checkerboard_layout_on_viewport_shifted_gtk_adjustment_value_changed, self); -#line 12051 "CheckerboardLayout.c" - } -#line 924 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp21_ = self->priv->vadjustment; -#line 924 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp21_ != NULL) { -#line 12057 "CheckerboardLayout.c" - GtkAdjustment* _tmp22_; - guint _tmp23_; -#line 925 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp22_ = self->priv->vadjustment; -#line 925 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_parse_name ("value-changed", gtk_adjustment_get_type (), &_tmp23_, NULL, FALSE); -#line 925 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_handlers_disconnect_matched (_tmp22_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp23_, 0, NULL, (GCallback) _checkerboard_layout_on_viewport_shifted_gtk_adjustment_value_changed, self); -#line 12066 "CheckerboardLayout.c" - } -#line 927 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp24_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 927 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp25_ = _tmp24_; -#line 927 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - if (_tmp25_ != NULL) { -#line 12074 "CheckerboardLayout.c" - GtkContainer* _tmp26_; - GtkContainer* _tmp27_; - guint _tmp28_; -#line 928 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp26_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 928 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp27_ = _tmp26_; -#line 928 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_parse_name ("size-allocate", gtk_widget_get_type (), &_tmp28_, NULL, FALSE); -#line 928 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp28_, 0, NULL, (GCallback) _checkerboard_layout_on_viewport_resized_gtk_widget_size_allocate, self); -#line 12086 "CheckerboardLayout.c" - } -#line 930 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp29_ = config_facade_get_instance (); -#line 930 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _tmp30_ = _tmp29_; -#line 930 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_parse_name ("colors-changed", CONFIG_TYPE_FACADE, &_tmp31_, NULL, FALSE); -#line 930 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - g_signal_handlers_disconnect_matched (_tmp30_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp31_, 0, NULL, (GCallback) _checkerboard_layout_on_colors_changed_config_facade_colors_changed, self); -#line 930 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (_tmp30_); -#line 854 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _data_collection_unref0 (self->priv->view); -#line 855 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (self->priv->page_name); -#line 856 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - self->priv->item_rows = (_vala_array_free (self->priv->item_rows, self->priv->item_rows_length1, (GDestroyNotify) checkerboard_layout_layout_row_unref), NULL); -#line 857 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->exposed_items); -#line 858 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->hadjustment); -#line 859 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->vadjustment); -#line 860 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_free0 (self->priv->message); -#line 875 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->anchor); -#line 876 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - _g_object_unref0 (self->priv->cursor); -#line 825 "/home/jens/Source/shotwell/src/CheckerboardLayout.vala" - G_OBJECT_CLASS (checkerboard_layout_parent_class)->finalize (obj); -#line 12118 "CheckerboardLayout.c" -} - - -GType -checkerboard_layout_get_type (void) -{ - static volatile gsize checkerboard_layout_type_id__volatile = 0; - if (g_once_init_enter (&checkerboard_layout_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CheckerboardLayoutClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) checkerboard_layout_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CheckerboardLayout), 0, (GInstanceInitFunc) checkerboard_layout_instance_init, NULL }; - GType checkerboard_layout_type_id; - checkerboard_layout_type_id = g_type_register_static (gtk_drawing_area_get_type (), "CheckerboardLayout", &g_define_type_info, 0); - g_once_init_leave (&checkerboard_layout_type_id__volatile, checkerboard_layout_type_id); - } - return checkerboard_layout_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/CheckerboardLayout.vala b/src/CheckerboardLayout.vala index 0c52748..c2d1a52 100644 --- a/src/CheckerboardLayout.vala +++ b/src/CheckerboardLayout.vala @@ -345,6 +345,18 @@ public abstract class CheckerboardItem : ThumbnailView { return is_cursor; } + public virtual void handle_mouse_motion(int x, int y, int height, int width) { + + } + + public virtual void handle_mouse_leave() { + unbrighten(); + } + + public virtual void handle_mouse_enter() { + brighten(); + } + protected override void notify_membership_changed(DataCollection? collection) { bool title_visible = (bool) get_collection_property(PROP_SHOW_TITLES, true); bool comment_visible = (bool) get_collection_property(PROP_SHOW_COMMENTS, true); @@ -572,7 +584,7 @@ public abstract class CheckerboardItem : ThumbnailView { } private int get_selection_border_width(int scale) { - return ((scale <= ((Thumbnail.MIN_SCALE + Thumbnail.MAX_SCALE) / 3)) ? 2 : 3) + return ((scale <= ((Thumbnail.MIN_SCALE + Thumbnail.MAX_SCALE) / 3)) ? 5 : 4) + BORDER_WIDTH; } @@ -592,8 +604,8 @@ public abstract class CheckerboardItem : ThumbnailView { return null; } - public void paint(Cairo.Context ctx, Gdk.RGBA bg_color, Gdk.RGBA selected_color, - Gdk.RGBA text_color, Gdk.RGBA? border_color) { + public void paint(Gtk.StyleContext style_context, Cairo.Context ctx, Gdk.RGBA bg_color, Gdk.RGBA selected_color, + Gdk.RGBA? border_color, Gdk.RGBA? focus_color) { ctx.save(); ctx.translate(allocation.x + FRAME_WIDTH, allocation.y + FRAME_WIDTH); @@ -619,8 +631,8 @@ public abstract class CheckerboardItem : ThumbnailView { // draw a border for the cursor with the selection width and normal border color if (is_cursor) { ctx.save(); - ctx.set_source_rgba(border_color.red, border_color.green, border_color.blue, - border_color.alpha); + ctx.set_source_rgba(focus_color.red, focus_color.green, focus_color.blue, + focus_color.alpha); paint_border(ctx, pixbuf_dim, pixbuf_origin, get_selection_border_width(int.max(pixbuf_dim.width, pixbuf_dim.height))); ctx.restore(); @@ -635,15 +647,6 @@ public abstract class CheckerboardItem : ThumbnailView { ctx.restore(); } - // draw border - if (border_color != null) { - ctx.save(); - ctx.set_source_rgba(border_color.red, border_color.green, border_color.blue, - border_color.alpha); - paint_border(ctx, pixbuf_dim, pixbuf_origin, BORDER_WIDTH); - ctx.restore(); - } - if (display_pixbuf != null) { ctx.save(); ctx.set_source_rgba(bg_color.red, bg_color.green, bg_color.blue, bg_color.alpha); @@ -651,45 +654,41 @@ public abstract class CheckerboardItem : ThumbnailView { ctx.restore(); } - ctx.set_source_rgba(text_color.red, text_color.green, text_color.blue, text_color.alpha); - // title and subtitles are LABEL_PADDING below bottom of pixbuf int text_y = pixbuf_dim.height + FRAME_WIDTH + LABEL_PADDING; if (title != null && title_visible) { - // get the layout sized so its with is no more than the pixbuf's + // get the layout sized so its width is no more than the pixbuf's // resize the text width to be no more than the pixbuf's title.allocation.x = 0; title.allocation.y = text_y; title.allocation.width = pixbuf_dim.width; title.allocation.height = title.get_height(); - - ctx.move_to(title.allocation.x, title.allocation.y); - Pango.cairo_show_layout(ctx, title.get_pango_layout(pixbuf_dim.width)); - + style_context.render_layout(ctx, title.allocation.x, title.allocation.y, + title.get_pango_layout(pixbuf_dim.width)); + text_y += title.get_height() + LABEL_PADDING; } - + if (comment != null && comment_visible) { comment.allocation.x = 0; comment.allocation.y = text_y; comment.allocation.width = pixbuf_dim.width; comment.allocation.height = comment.get_height(); - - ctx.move_to(comment.allocation.x, comment.allocation.y); - Pango.cairo_show_layout(ctx, comment.get_pango_layout(pixbuf_dim.width)); - + style_context.render_layout(ctx, comment.allocation.x, comment.allocation.y, + comment.get_pango_layout(pixbuf_dim.width)); + text_y += comment.get_height() + LABEL_PADDING; } - + if (subtitle != null && subtitle_visible) { subtitle.allocation.x = 0; subtitle.allocation.y = text_y; subtitle.allocation.width = pixbuf_dim.width; subtitle.allocation.height = subtitle.get_height(); - - ctx.move_to(subtitle.allocation.x, subtitle.allocation.y); - Pango.cairo_show_layout(ctx, subtitle.get_pango_layout(pixbuf_dim.width)); - + + style_context.render_layout(ctx, subtitle.allocation.x, subtitle.allocation.y, + subtitle.get_pango_layout(pixbuf_dim.width)); + // increment text_y if more text lines follow } @@ -775,6 +774,7 @@ public abstract class CheckerboardItem : ThumbnailView { notify_view_altered(); } + public void unbrighten() { // "should", "can", "didn't already" if (brightened == null || pixbuf == null) @@ -860,6 +860,7 @@ public class CheckerboardLayout : Gtk.DrawingArea { private string message = null; private Gdk.RGBA selected_color; private Gdk.RGBA unselected_color; + private Gdk.RGBA focus_color; private Gdk.RGBA border_color; private Gdk.RGBA bg_color; private Gdk.Rectangle visible_page = Gdk.Rectangle(); @@ -880,6 +881,7 @@ public class CheckerboardLayout : Gtk.DrawingArea { private bool reflow_needed = false; public CheckerboardLayout(ViewCollection view) { + this.get_style_context().add_class("content-view"); this.view = view; clear_drag_select(); @@ -894,8 +896,6 @@ public class CheckerboardLayout : Gtk.DrawingArea { view.geometries_altered.connect(on_geometries_altered); view.items_selected.connect(on_items_selection_changed); view.items_unselected.connect(on_items_selection_changed); - - override_background_color(Gtk.StateFlags.NORMAL, Config.Facade.get_instance().get_bg_color()); Config.Facade.get_instance().colors_changed.connect(on_colors_changed); @@ -1289,6 +1289,11 @@ public class CheckerboardLayout : Gtk.DrawingArea { } public bool handle_mouse_motion(CheckerboardItem item, int x, int y, Gdk.ModifierType mask) { + int dx = x - item.allocation.x; + int dy = y - item.allocation.y; + + item.handle_mouse_motion(dx, dy, item.allocation.height, item.allocation.width); + if (!item.has_tags || is_drag_select_active()) return false; int tag_index = internal_handle_tag_mouse_event(item, x, y); @@ -1916,10 +1921,22 @@ public class CheckerboardLayout : Gtk.DrawingArea { private void set_colors(bool in_focus = true) { // set up selected/unselected colors - selected_color = Config.Facade.get_instance().get_selected_color(in_focus); - unselected_color = Config.Facade.get_instance().get_unselected_color(); - border_color = Config.Facade.get_instance().get_border_color(); - bg_color = get_style_context().get_background_color(Gtk.StateFlags.NORMAL); + var ctx = get_style_context(); + ctx.save(); + ctx.add_class("view"); + var val = ctx.get_property("border-color", Gtk.StateFlags.NORMAL); + focus_color = *(Gdk.RGBA*)val.get_boxed(); + + val = ctx.get_property("border-color", Gtk.StateFlags.FOCUSED); + border_color = *(Gdk.RGBA*)val.get_boxed(); + + // Checked in GtkIconView - The selection is drawn using render_background + val = ctx.get_property("background-color", Gtk.StateFlags.FOCUSED | Gtk.StateFlags.SELECTED); + selected_color = *(Gdk.RGBA*)val.get_boxed(); + + val = ctx.get_property("color", Gtk.StateFlags.NORMAL); + unselected_color = *(Gdk.RGBA*)val.get_boxed(); + ctx.restore(); } public override void size_allocate(Gtk.Allocation allocation) { @@ -1951,8 +1968,8 @@ public class CheckerboardLayout : Gtk.DrawingArea { // have all items in the exposed area paint themselves foreach (CheckerboardItem item in intersection(visible_page)) { - item.paint(ctx, bg_color, item.is_selected() ? selected_color : unselected_color, - unselected_color, border_color); + item.paint(get_style_context(), ctx, bg_color, item.is_selected() ? selected_color : unselected_color, + border_color, focus_color); } } else { // draw the message in the center of the window @@ -1968,9 +1985,7 @@ public class CheckerboardLayout : Gtk.DrawingArea { int y = allocation.height - text_height; y = (y > 0) ? y / 2 : 0; - ctx.set_source_rgb(unselected_color.red, unselected_color.green, unselected_color.blue); - ctx.move_to(x, y); - Pango.cairo_show_layout(ctx, pango_layout); + get_style_context().render_layout(ctx, x, y, pango_layout); } bool result = (base.draw != null) ? base.draw(ctx) : true; @@ -1995,24 +2010,16 @@ public class CheckerboardLayout : Gtk.DrawingArea { Gdk.Rectangle visible_band = Gdk.Rectangle(); visible_page.intersect(selection_band, out visible_band); + get_style_context().save(); + get_style_context().add_class(Gtk.STYLE_CLASS_RUBBERBAND); // pixelate selection rectangle interior if (visible_band.width > 1 && visible_band.height > 1) { - ctx.set_source_rgba(selected_color.red, selected_color.green, selected_color.blue, - SELECTION_ALPHA); - ctx.rectangle(visible_band.x, visible_band.y, visible_band.width, - visible_band.height); - ctx.fill(); + get_style_context().render_background(ctx, visible_band.x, visible_band.y, visible_band.width, visible_band.height); } // border - // See this for an explanation of the adjustments to the band's dimensions - // http://cairographics.org/FAQ/#sharp_lines - ctx.set_line_width(1.0); - ctx.set_line_cap(Cairo.LineCap.SQUARE); - ctx.set_source_rgb(selected_color.red, selected_color.green, selected_color.blue); - ctx.rectangle((double) selection_band.x + 0.5, (double) selection_band.y + 0.5, - (double) selection_band.width - 1.0, (double) selection_band.height - 1.0); - ctx.stroke(); + get_style_context().render_frame(ctx, visible_band.x, visible_band.y, visible_band.width, visible_band.height); + get_style_context().restore(); } public override bool query_tooltip(int x, int y, bool keyboard_mode, Gtk.Tooltip tooltip) { @@ -2023,8 +2030,7 @@ public class CheckerboardLayout : Gtk.DrawingArea { private void on_colors_changed() { invalidate_transparent_background(); - override_background_color(Gtk.StateFlags.NORMAL, Config.Facade.get_instance().get_bg_color()); - set_colors(); + queue_draw(); } public override bool focus_in_event(Gdk.EventFocus event) { diff --git a/src/CollectionPage.c b/src/CollectionPage.c deleted file mode 100644 index 9c194d3..0000000 --- a/src/CollectionPage.c +++ /dev/null @@ -1,6738 +0,0 @@ -/* CollectionPage.c generated by valac 0.40.4, the Vala compiler - * generated from CollectionPage.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-graphics-processor.h" -#include - - -#define TYPE_VIEW_MANAGER (view_manager_get_type ()) -#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager)) -#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass)) -#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER)) -#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER)) -#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass)) - -typedef struct _ViewManager ViewManager; -typedef struct _ViewManagerClass ViewManagerClass; -typedef struct _ViewManagerPrivate ViewManagerPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_COLLECTION_VIEW_MANAGER (collection_view_manager_get_type ()) -#define COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager)) -#define COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass)) -#define IS_COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_VIEW_MANAGER)) -#define IS_COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_VIEW_MANAGER)) -#define COLLECTION_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass)) - -typedef struct _CollectionViewManager CollectionViewManager; -typedef struct _CollectionViewManagerClass CollectionViewManagerClass; -typedef struct _CollectionViewManagerPrivate CollectionViewManagerPrivate; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; -typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; - -#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ()) - -#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ()) -typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ()) -#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)) -#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) -#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER)) -#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER)) -#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) - -typedef struct _SearchViewFilter SearchViewFilter; -typedef struct _SearchViewFilterClass SearchViewFilterClass; - -#define CORE_TYPE_TRACKER (core_tracker_get_type ()) -#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) -#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) -#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) -#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) -#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) - -typedef struct _CoreTracker CoreTracker; -typedef struct _CoreTrackerClass CoreTrackerClass; - -#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) -#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) -#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) -#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) -#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) -#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) - -typedef struct _CoreViewTracker CoreViewTracker; -typedef struct _CoreViewTrackerClass CoreViewTrackerClass; -typedef struct _MediaPagePrivate MediaPagePrivate; - -#define TYPE_RATING (rating_get_type ()) - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) -typedef struct _CollectionPagePrivate CollectionPagePrivate; - -#define TYPE_EXPORTER_UI (exporter_ui_get_type ()) -#define EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER_UI, ExporterUI)) -#define EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER_UI, ExporterUIClass)) -#define IS_EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER_UI)) -#define IS_EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER_UI)) -#define EXPORTER_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER_UI, ExporterUIClass)) - -typedef struct _ExporterUI ExporterUI; -typedef struct _ExporterUIClass ExporterUIClass; - -#define TYPE_DEFAULT_SEARCH_VIEW_FILTER (default_search_view_filter_get_type ()) -#define DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilter)) -#define DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass)) -#define IS_DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER)) -#define IS_DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER)) -#define DEFAULT_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass)) - -typedef struct _DefaultSearchViewFilter DefaultSearchViewFilter; -typedef struct _DefaultSearchViewFilterClass DefaultSearchViewFilterClass; - -#define COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER (collection_page_collection_search_view_filter_get_type ()) -#define COLLECTION_PAGE_COLLECTION_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilter)) -#define COLLECTION_PAGE_COLLECTION_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilterClass)) -#define COLLECTION_PAGE_IS_COLLECTION_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER)) -#define COLLECTION_PAGE_IS_COLLECTION_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER)) -#define COLLECTION_PAGE_COLLECTION_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilterClass)) - -typedef struct _CollectionPageCollectionSearchViewFilter CollectionPageCollectionSearchViewFilter; -typedef struct _CollectionPageCollectionSearchViewFilterClass CollectionPageCollectionSearchViewFilterClass; -enum { - COLLECTION_PAGE_0_PROPERTY, - COLLECTION_PAGE_NUM_PROPERTIES -}; -static GParamSpec* collection_page_properties[COLLECTION_PAGE_NUM_PROPERTIES]; -#define _exporter_ui_unref0(var) ((var == NULL) ? NULL : (var = (exporter_ui_unref (var), NULL))) -#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL))) - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; - -#define MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY (media_page_zoom_slider_assembly_get_type ()) -#define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssembly)) -#define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssemblyClass)) -#define MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY)) -#define MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY)) -#define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssemblyClass)) - -typedef struct _MediaPageZoomSliderAssembly MediaPageZoomSliderAssembly; -typedef struct _MediaPageZoomSliderAssemblyClass MediaPageZoomSliderAssemblyClass; -#define _injection_group_unref0(var) ((var == NULL) ? NULL : (var = (injection_group_unref (var), NULL))) - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_PRINT_MANAGER (print_manager_get_type ()) -#define PRINT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PRINT_MANAGER, PrintManager)) -#define PRINT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PRINT_MANAGER, PrintManagerClass)) -#define IS_PRINT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PRINT_MANAGER)) -#define IS_PRINT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PRINT_MANAGER)) -#define PRINT_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PRINT_MANAGER, PrintManagerClass)) - -typedef struct _PrintManager PrintManager; -typedef struct _PrintManagerClass PrintManagerClass; -#define _print_manager_unref0(var) ((var == NULL) ? NULL : (var = (print_manager_unref (var), NULL))) - -#define TYPE_MEDIA_SOURCE_ITEM (media_source_item_get_type ()) -#define MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem)) -#define MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) -#define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM)) -#define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM)) -#define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) - -typedef struct _MediaSourceItem MediaSourceItem; -typedef struct _MediaSourceItemClass MediaSourceItemClass; - -#define TYPE_THUMBNAIL (thumbnail_get_type ()) -#define THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL, Thumbnail)) -#define THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL, ThumbnailClass)) -#define IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL)) -#define IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL)) -#define THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL, ThumbnailClass)) - -typedef struct _Thumbnail Thumbnail; -typedef struct _ThumbnailClass ThumbnailClass; - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; - -#define TYPE_EXPORTER (exporter_get_type ()) -#define EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER, Exporter)) -#define EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER, ExporterClass)) -#define IS_EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER)) -#define IS_EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER)) -#define EXPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER, ExporterClass)) - -typedef struct _Exporter Exporter; -typedef struct _ExporterClass ExporterClass; - -#define TYPE_EXPORT_DIALOG (export_dialog_get_type ()) -#define EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORT_DIALOG, ExportDialog)) -#define EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORT_DIALOG, ExportDialogClass)) -#define IS_EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORT_DIALOG)) -#define IS_EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORT_DIALOG)) -#define EXPORT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORT_DIALOG, ExportDialogClass)) - -typedef struct _ExportDialog ExportDialog; -typedef struct _ExportDialogClass ExportDialogClass; - -#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ()) - -#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ()) - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) -typedef struct _ExportFormatParameters ExportFormatParameters; - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -typedef struct _Scaling Scaling; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; - -#define TYPE_MULTIPLE_DATA_SOURCE_COMMAND (multiple_data_source_command_get_type ()) -#define MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)) -#define MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass)) -#define IS_MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND)) -#define IS_MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND)) -#define MULTIPLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass)) - -typedef struct _MultipleDataSourceCommand MultipleDataSourceCommand; -typedef struct _MultipleDataSourceCommandClass MultipleDataSourceCommandClass; - -#define TYPE_ROTATE_MULTIPLE_COMMAND (rotate_multiple_command_get_type ()) -#define ROTATE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommand)) -#define ROTATE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommandClass)) -#define IS_ROTATE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ROTATE_MULTIPLE_COMMAND)) -#define IS_ROTATE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ROTATE_MULTIPLE_COMMAND)) -#define ROTATE_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommandClass)) - -typedef struct _RotateMultipleCommand RotateMultipleCommand; -typedef struct _RotateMultipleCommandClass RotateMultipleCommandClass; - -#define TYPE_ROTATION (rotation_get_type ()) - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) - -#define TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND (multiple_photo_transformation_command_get_type ()) -#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommand)) -#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommandClass)) -#define IS_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND)) -#define IS_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND)) -#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommandClass)) - -typedef struct _MultiplePhotoTransformationCommand MultiplePhotoTransformationCommand; -typedef struct _MultiplePhotoTransformationCommandClass MultiplePhotoTransformationCommandClass; - -#define TYPE_REVERT_MULTIPLE_COMMAND (revert_multiple_command_get_type ()) -#define REVERT_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommand)) -#define REVERT_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommandClass)) -#define IS_REVERT_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REVERT_MULTIPLE_COMMAND)) -#define IS_REVERT_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REVERT_MULTIPLE_COMMAND)) -#define REVERT_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommandClass)) - -typedef struct _RevertMultipleCommand RevertMultipleCommand; -typedef struct _RevertMultipleCommandClass RevertMultipleCommandClass; -#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL))) - -#define TYPE_ADJUST_COLORS_MULTIPLE_COMMAND (adjust_colors_multiple_command_get_type ()) -#define ADJUST_COLORS_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommand)) -#define ADJUST_COLORS_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommandClass)) -#define IS_ADJUST_COLORS_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND)) -#define IS_ADJUST_COLORS_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND)) -#define ADJUST_COLORS_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommandClass)) - -typedef struct _AdjustColorsMultipleCommand AdjustColorsMultipleCommand; -typedef struct _AdjustColorsMultipleCommandClass AdjustColorsMultipleCommandClass; - -#define TYPE_ENHANCE_MULTIPLE_COMMAND (enhance_multiple_command_get_type ()) -#define ENHANCE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommand)) -#define ENHANCE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommandClass)) -#define IS_ENHANCE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ENHANCE_MULTIPLE_COMMAND)) -#define IS_ENHANCE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ENHANCE_MULTIPLE_COMMAND)) -#define ENHANCE_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommandClass)) - -typedef struct _EnhanceMultipleCommand EnhanceMultipleCommand; -typedef struct _EnhanceMultipleCommandClass EnhanceMultipleCommandClass; - -#define TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND (duplicate_multiple_photos_command_get_type ()) -#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand)) -#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommandClass)) -#define IS_DUPLICATE_MULTIPLE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND)) -#define IS_DUPLICATE_MULTIPLE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND)) -#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommandClass)) - -typedef struct _DuplicateMultiplePhotosCommand DuplicateMultiplePhotosCommand; -typedef struct _DuplicateMultiplePhotosCommandClass DuplicateMultiplePhotosCommandClass; - -#define TYPE_DATEABLE (dateable_get_type ()) -#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable)) -#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE)) -#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface)) - -typedef struct _Dateable Dateable; -typedef struct _DateableIface DateableIface; - -#define TYPE_ADJUST_DATE_TIME_DIALOG (adjust_date_time_dialog_get_type ()) -#define ADJUST_DATE_TIME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialog)) -#define ADJUST_DATE_TIME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialogClass)) -#define IS_ADJUST_DATE_TIME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_DATE_TIME_DIALOG)) -#define IS_ADJUST_DATE_TIME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_DATE_TIME_DIALOG)) -#define ADJUST_DATE_TIME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialogClass)) - -typedef struct _AdjustDateTimeDialog AdjustDateTimeDialog; -typedef struct _AdjustDateTimeDialogClass AdjustDateTimeDialogClass; - -#define TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND (adjust_date_time_photos_command_get_type ()) -#define ADJUST_DATE_TIME_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand)) -#define ADJUST_DATE_TIME_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommandClass)) -#define IS_ADJUST_DATE_TIME_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND)) -#define IS_ADJUST_DATE_TIME_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND)) -#define ADJUST_DATE_TIME_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommandClass)) - -typedef struct _AdjustDateTimePhotosCommand AdjustDateTimePhotosCommand; -typedef struct _AdjustDateTimePhotosCommandClass AdjustDateTimePhotosCommandClass; - -#define TYPE_SET_BACKGROUND_PHOTO_DIALOG (set_background_photo_dialog_get_type ()) -#define SET_BACKGROUND_PHOTO_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialog)) -#define SET_BACKGROUND_PHOTO_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialogClass)) -#define IS_SET_BACKGROUND_PHOTO_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG)) -#define IS_SET_BACKGROUND_PHOTO_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_BACKGROUND_PHOTO_DIALOG)) -#define SET_BACKGROUND_PHOTO_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialogClass)) - -typedef struct _SetBackgroundPhotoDialog SetBackgroundPhotoDialog; -typedef struct _SetBackgroundPhotoDialogClass SetBackgroundPhotoDialogClass; - -#define TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG (set_background_slideshow_dialog_get_type ()) -#define SET_BACKGROUND_SLIDESHOW_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialog)) -#define SET_BACKGROUND_SLIDESHOW_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialogClass)) -#define IS_SET_BACKGROUND_SLIDESHOW_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG)) -#define IS_SET_BACKGROUND_SLIDESHOW_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG)) -#define SET_BACKGROUND_SLIDESHOW_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialogClass)) - -typedef struct _SetBackgroundSlideshowDialog SetBackgroundSlideshowDialog; -typedef struct _SetBackgroundSlideshowDialogClass SetBackgroundSlideshowDialogClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ()) -#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) - -typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; -typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; - -#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ()) -#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)) -#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) -#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE)) -#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE)) -#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) - -typedef struct _SinglePhotoPage SinglePhotoPage; -typedef struct _SinglePhotoPageClass SinglePhotoPageClass; - -#define TYPE_SLIDESHOW_PAGE (slideshow_page_get_type ()) -#define SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPage)) -#define SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDESHOW_PAGE, SlideshowPageClass)) -#define IS_SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDESHOW_PAGE)) -#define IS_SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDESHOW_PAGE)) -#define SLIDESHOW_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPageClass)) - -typedef struct _SlideshowPage SlideshowPage; -typedef struct _SlideshowPageClass SlideshowPageClass; -typedef struct _ViewFilterPrivate ViewFilterPrivate; -typedef struct _SearchViewFilterPrivate SearchViewFilterPrivate; -typedef struct _DefaultSearchViewFilterPrivate DefaultSearchViewFilterPrivate; -typedef struct _CollectionPageCollectionSearchViewFilterPrivate CollectionPageCollectionSearchViewFilterPrivate; - -#define TYPE_SEARCH_FILTER_CRITERIA (search_filter_criteria_get_type ()) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _ViewManager { - GTypeInstance parent_instance; - volatile int ref_count; - ViewManagerPrivate * priv; -}; - -struct _ViewManagerClass { - GTypeClass parent_class; - void (*finalize) (ViewManager *self); - gboolean (*include_in_view) (ViewManager* self, DataSource* source); - DataView* (*create_view) (ViewManager* self, DataSource* source); -}; - -struct _CollectionViewManager { - ViewManager parent_instance; - CollectionViewManagerPrivate * priv; -}; - -struct _CollectionViewManagerClass { - ViewManagerClass parent_class; -}; - -struct _CollectionViewManagerPrivate { - CollectionPage* page; -}; - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -typedef enum { - CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, - CHECKERBOARD_PAGE_ACTIVATOR_MOUSE -} CheckerboardPageActivator; - -struct _CheckerboardPageKeyboardModifiers { - gboolean ctrl_pressed; - gboolean alt_pressed; - gboolean shift_pressed; - gboolean super_pressed; -}; - -struct _CheckerboardPage { - Page parent_instance; - CheckerboardPagePrivate * priv; - CheckerboardItem* anchor; - CheckerboardItem* cursor; -}; - -struct _CheckerboardPageClass { - PageClass parent_class; - GtkMenu* (*get_item_context_menu) (CheckerboardPage* self); - gchar* (*get_view_empty_message) (CheckerboardPage* self); - gchar* (*get_filter_no_match_message) (CheckerboardPage* self); - void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers); - SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self); - CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self); - gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask); - void (*set_display_titles) (CheckerboardPage* self, gboolean display); - void (*set_display_comments) (CheckerboardPage* self, gboolean display); -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _MediaPage { - CheckerboardPage parent_instance; - MediaPagePrivate * priv; -}; - -struct _MediaPageClass { - CheckerboardPageClass parent_class; - void (*on_zoom_changed) (MediaPage* self); - void (*on_export) (MediaPage* self); - void (*on_increase_size) (MediaPage* self); - void (*on_decrease_size) (MediaPage* self); - void (*on_increase_rating) (MediaPage* self); - void (*on_decrease_rating) (MediaPage* self); - void (*on_set_rating) (MediaPage* self, Rating rating); - void (*on_rate_rejected) (MediaPage* self); - void (*on_rate_unrated) (MediaPage* self); - void (*on_rate_one) (MediaPage* self); - void (*on_rate_two) (MediaPage* self); - void (*on_rate_three) (MediaPage* self); - void (*on_rate_four) (MediaPage* self); - void (*on_rate_five) (MediaPage* self); - void (*on_move_to_trash) (MediaPage* self); - void (*on_edit_title) (MediaPage* self); - void (*on_edit_comment) (MediaPage* self); - void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by); - void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by); - void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*developer_changed) (MediaPage* self, RawDeveloper rd); - DataView* (*create_thumbnail) (MediaPage* self, DataSource* source); -}; - -struct _CollectionPage { - MediaPage parent_instance; - CollectionPagePrivate * priv; -}; - -struct _CollectionPageClass { - MediaPageClass parent_class; -}; - -struct _CollectionPagePrivate { - ExporterUI* exporter; - CollectionPageCollectionSearchViewFilter* search_filter; -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef void (*ExporterCompletionCallback) (Exporter* exporter, gboolean is_cancelled, void* user_data); -typedef enum { - EXPORT_FORMAT_MODE_UNMODIFIED, - EXPORT_FORMAT_MODE_CURRENT, - EXPORT_FORMAT_MODE_SPECIFIED, - EXPORT_FORMAT_MODE_LAST -} ExportFormatMode; - -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -struct _ExportFormatParameters { - ExportFormatMode mode; - PhotoFileFormat specified_format; - JpegQuality quality; - gboolean export_metadata; -}; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -typedef enum { - ROTATION_CLOCKWISE, - ROTATION_COUNTERCLOCKWISE, - ROTATION_MIRROR, - ROTATION_UPSIDE_DOWN -} Rotation; - -struct _DateableIface { - GTypeInterface parent_iface; - void (*set_exposure_time) (Dateable* self, time_t target_time); - time_t (*get_exposure_time) (Dateable* self); -}; - -struct _ViewFilter { - GTypeInstance parent_instance; - volatile int ref_count; - ViewFilterPrivate * priv; -}; - -struct _ViewFilterClass { - GTypeClass parent_class; - void (*finalize) (ViewFilter *self); - gboolean (*predicate) (ViewFilter* self, DataView* view); - void (*refresh) (ViewFilter* self); -}; - -struct _SearchViewFilter { - ViewFilter parent_instance; - SearchViewFilterPrivate * priv; -}; - -struct _SearchViewFilterClass { - ViewFilterClass parent_class; - guint (*get_criteria) (SearchViewFilter* self); -}; - -struct _DefaultSearchViewFilter { - SearchViewFilter parent_instance; - DefaultSearchViewFilterPrivate * priv; -}; - -struct _DefaultSearchViewFilterClass { - SearchViewFilterClass parent_class; -}; - -struct _CollectionPageCollectionSearchViewFilter { - DefaultSearchViewFilter parent_instance; - CollectionPageCollectionSearchViewFilterPrivate * priv; -}; - -struct _CollectionPageCollectionSearchViewFilterClass { - DefaultSearchViewFilterClass parent_class; -}; - -typedef enum { - SEARCH_FILTER_CRITERIA_NONE = 0, - SEARCH_FILTER_CRITERIA_RECURSIVE = 1 << 0, - SEARCH_FILTER_CRITERIA_TEXT = 1 << 1, - SEARCH_FILTER_CRITERIA_FLAG = 1 << 2, - SEARCH_FILTER_CRITERIA_MEDIA = 1 << 3, - SEARCH_FILTER_CRITERIA_RATING = 1 << 4, - SEARCH_FILTER_CRITERIA_SAVEDSEARCH = 1 << 5, - SEARCH_FILTER_CRITERIA_ALL = 0xFFFFFFFFLL -} SearchFilterCriteria; - - -static gpointer collection_view_manager_parent_class = NULL; -static gpointer collection_page_parent_class = NULL; -extern LibraryPhotoSourceCollection* library_photo_global; -static gpointer collection_page_collection_search_view_filter_parent_class = NULL; - -gpointer view_manager_ref (gpointer instance); -void view_manager_unref (gpointer instance); -GParamSpec* param_spec_view_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_manager (GValue* value, - gpointer v_object); -void value_take_view_manager (GValue* value, - gpointer v_object); -gpointer value_get_view_manager (const GValue* value); -GType view_manager_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType collection_view_manager_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType media_page_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -#define COLLECTION_VIEW_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerPrivate)) -CollectionViewManager* collection_view_manager_new (CollectionPage* page); -CollectionViewManager* collection_view_manager_construct (GType object_type, - CollectionPage* page); -ViewManager* view_manager_construct (GType object_type); -static DataView* collection_view_manager_real_create_view (ViewManager* base, - DataSource* source); -DataView* media_page_create_thumbnail (MediaPage* self, - DataSource* source); -static void collection_view_manager_finalize (ViewManager * obj); -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType checkerboard_page_activator_get_type (void) G_GNUC_CONST; -GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST; -CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self); -void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self); -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -GType search_view_filter_get_type (void) G_GNUC_CONST; -gpointer core_tracker_ref (gpointer instance); -void core_tracker_unref (gpointer instance); -GParamSpec* core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void core_value_set_tracker (GValue* value, - gpointer v_object); -void core_value_take_tracker (GValue* value, - gpointer v_object); -gpointer core_value_get_tracker (const GValue* value); -GType core_tracker_get_type (void) G_GNUC_CONST; -GType core_view_tracker_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -GType raw_developer_get_type (void) G_GNUC_CONST; -gpointer exporter_ui_ref (gpointer instance); -void exporter_ui_unref (gpointer instance); -GParamSpec* param_spec_exporter_ui (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_exporter_ui (GValue* value, - gpointer v_object); -void value_take_exporter_ui (GValue* value, - gpointer v_object); -gpointer value_get_exporter_ui (const GValue* value); -GType exporter_ui_get_type (void) G_GNUC_CONST; -GType default_search_view_filter_get_type (void) G_GNUC_CONST; -GType collection_page_collection_search_view_filter_get_type (void) G_GNUC_CONST; -#define COLLECTION_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_COLLECTION_PAGE, CollectionPagePrivate)) -CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view_filter_new (void); -CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view_filter_construct (GType object_type); -#define COLLECTION_PAGE_DESKTOP_SLIDESHOW_TRANSITION_SEC 2.0 -static void collection_page_on_print (CollectionPage* self); -static void _collection_page_on_print_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void collection_page_on_publish (CollectionPage* self); -static void _collection_page_on_publish_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void collection_page_on_rotate_clockwise (CollectionPage* self); -static void _collection_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void collection_page_on_rotate_counterclockwise (CollectionPage* self); -static void _collection_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void collection_page_on_flip_horizontally (CollectionPage* self); -static void _collection_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void collection_page_on_flip_vertically (CollectionPage* self); -static void _collection_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void collection_page_on_enhance (CollectionPage* self); -static void _collection_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void collection_page_on_copy_adjustments (CollectionPage* self); -static void _collection_page_on_copy_adjustments_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void collection_page_on_paste_adjustments (CollectionPage* self); -static void _collection_page_on_paste_adjustments_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void collection_page_on_revert (CollectionPage* self); -static void _collection_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void collection_page_on_set_background (CollectionPage* self); -static void _collection_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void collection_page_on_duplicate_photo (CollectionPage* self); -static void _collection_page_on_duplicate_photo_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void collection_page_on_adjust_date_time (CollectionPage* self); -static void _collection_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void collection_page_on_external_edit (CollectionPage* self); -static void _collection_page_on_external_edit_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void collection_page_on_external_edit_raw (CollectionPage* self); -static void _collection_page_on_external_edit_raw_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void collection_page_on_slideshow (CollectionPage* self); -static void _collection_page_on_slideshow_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -CollectionPage* collection_page_construct (GType object_type, - const gchar* page_name); -MediaPage* media_page_construct (GType object_type, - const gchar* page_name); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -static void collection_page_on_photos_altered (CollectionPage* self, - GeeMap* altered); -static void _collection_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -void checkerboard_page_init_item_context_menu (CheckerboardPage* self, - const gchar* path); -void page_init_toolbar (Page* self, - const gchar* path); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -static void collection_page_on_external_app_changed (CollectionPage* self); -static void _collection_page_on_external_app_changed_configuration_facade_external_app_changed (ConfigurationFacade* _sender, - gpointer self); -static GtkToolbar* collection_page_real_get_toolbar (Page* base); -GtkToolbar* page_get_toolbar (Page* self); -GType media_page_zoom_slider_assembly_get_type (void) G_GNUC_CONST; -MediaPageZoomSliderAssembly* media_page_create_zoom_slider_assembly (MediaPage* self); -void media_page_connect_slider (MediaPage* self, - MediaPageZoomSliderAssembly* slider); -static InjectionGroup* collection_page_create_file_menu_injectables (void); -InjectionGroup* injection_group_new (const gchar* path); -InjectionGroup* injection_group_construct (GType object_type, - const gchar* path); -void injection_group_add_menu_item (InjectionGroup* self, - const gchar* name, - const gchar* action, - const gchar* accellerator); -void injection_group_add_separator (InjectionGroup* self); -static InjectionGroup* collection_page_create_edit_menu_injectables (void); -static InjectionGroup* collection_page_create_view_menu_fullscreen_injectables (void); -static InjectionGroup* collection_page_create_photos_menu_edits_injectables (void); -static InjectionGroup* collection_page_create_photos_menu_date_injectables (void); -static InjectionGroup* collection_page_create_photos_menu_externals_injectables (void); -static void collection_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames); -void page_init_collect_ui_filenames (Page* self, - GeeList* ui_filenames); -static void collection_page_real_add_actions (Page* base, - GActionMap* map); -void page_add_actions (Page* self, - GActionMap* map); -static void collection_page_real_remove_actions (Page* base, - GActionMap* map); -void page_remove_actions (Page* self, - GActionMap* map); -static InjectionGroup** collection_page_real_init_collect_injection_groups (Page* base, - int* result_length1); -InjectionGroup** page_init_collect_injection_groups (Page* self, - int* result_length1); -static void _vala_array_add79 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value); -static void _vala_array_add80 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value); -static void _vala_array_add81 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value); -static void _vala_array_add82 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value); -static void _vala_array_add83 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value); -static void _vala_array_add84 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value); -static gboolean collection_page_selection_has_video (CollectionPage* self); -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -gboolean media_source_collection_has_video (GeeCollection* media); -GeeList* view_collection_get_selected_sources (ViewCollection* self); -static gboolean collection_page_page_has_photo (CollectionPage* self); -gboolean media_source_collection_has_photo (GeeCollection* media); -GeeCollection* view_collection_get_sources (ViewCollection* self); -static gboolean collection_page_selection_has_photo (CollectionPage* self); -static void collection_page_real_init_actions (Page* base, - gint selected_count, - gint count); -void page_init_actions (Page* self, - gint selected_count, - gint count); -void page_set_action_sensitive (Page* self, - const gchar* name, - gboolean sensitive); -static void collection_page_real_update_actions (Page* base, - gint selected_count, - gint count); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -Page* page_window_get_current_page (PageWindow* self); -void page_update_actions (Page* self, - gint selected_count, - gint count); -DataView* view_collection_get_selected_at (ViewCollection* self, - gint index); -DataSource* data_view_get_source (DataView* self); -GType video_source_get_type (void) G_GNUC_CONST; -GType video_get_type (void) G_GNUC_CONST; -gboolean is_string_empty (const gchar* s); -gchar* configuration_facade_get_external_photo_app (ConfigurationFacade* self); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -PhotoFileFormat photo_get_master_file_format (Photo* self); -gchar* configuration_facade_get_external_raw_app (ConfigurationFacade* self); -static gboolean collection_page_can_revert_selected (CollectionPage* self); -gboolean photo_has_color_adjustments (Photo* self); -#define RESOURCES_SET_BACKGROUND_MENU _ ("Set as _Desktop Background") -#define RESOURCES_SET_BACKGROUND_SLIDESHOW_MENU _ ("Set as _Desktop Slideshow…") -void page_update_menu_item_label (Page* self, - const gchar* id, - const gchar* new_label); -gboolean data_view_is_selected (DataView* self); -gboolean alteration_has_subject (Alteration* self, - const gchar* subject); -GType library_photo_get_type (void) G_GNUC_CONST; -gint view_collection_get_selected_count (ViewCollection* self); -gpointer print_manager_ref (gpointer instance); -void print_manager_unref (gpointer instance); -GParamSpec* param_spec_print_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_print_manager (GValue* value, - gpointer v_object); -void value_take_print_manager (GValue* value, - gpointer v_object); -gpointer value_get_print_manager (const GValue* value); -GType print_manager_get_type (void) G_GNUC_CONST; -PrintManager* print_manager_get_instance (void); -void print_manager_spool_photo (PrintManager* self, - GeeCollection* to_print); -GeeList* view_collection_get_selected_sources_of_type (ViewCollection* self, - GType t); -static void collection_page_real_on_item_activated (CheckerboardPage* base, - CheckerboardItem* item, - CheckerboardPageActivator activator, - CheckerboardPageKeyboardModifiers* modifiers); -GType media_source_item_get_type (void) G_GNUC_CONST; -GType thumbnail_get_type (void) G_GNUC_CONST; -MediaSource* thumbnail_get_media_source (Thumbnail* self); -void media_page_on_play_video (MediaPage* self); -gchar* data_object_to_string (DataObject* self); -GType library_window_get_type (void) G_GNUC_CONST; -LibraryWindow* library_window_get_app (void); -void library_window_switch_to_photo_page (LibraryWindow* self, - CollectionPage* controller, - Photo* current); -static gboolean collection_page_real_on_app_key_pressed (Page* base, - GdkEventKey* event); -void page_activate_action (Page* self, - const gchar* name); -gboolean page_on_app_key_pressed (Page* self, - GdkEventKey* event); -static void collection_page_real_on_export (MediaPage* base); -GType exporter_get_type (void) G_GNUC_CONST; -ExporterUI* video_export_many (GeeCollection* videos, - ExporterCompletionCallback done, - void* done_target, - gboolean export_in_place); -static void collection_page_on_export_completed (CollectionPage* self); -static void _collection_page_on_export_completed_exporter_completion_callback (Exporter* exporter, - gboolean is_cancelled, - gpointer self); -GType export_dialog_get_type (void) G_GNUC_CONST; -ExportDialog* export_dialog_new (const gchar* title); -ExportDialog* export_dialog_construct (GType object_type, - const gchar* title); -GType export_format_parameters_get_type (void) G_GNUC_CONST; -GType export_format_mode_get_type (void) G_GNUC_CONST; -GType jpeg_quality_get_type (void) G_GNUC_CONST; -ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self); -void export_format_parameters_free (ExportFormatParameters* self); -void export_format_parameters_current (ExportFormatParameters* result); -void export_format_parameters_last (ExportFormatParameters* result); -GType scale_constraint_get_type (void) G_GNUC_CONST; -gboolean export_dialog_execute (ExportDialog* self, - gint* scale, - ScaleConstraint* constraint, - ExportFormatParameters* parameters); -GType scaling_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -void scaling_for_constraint (ScaleConstraint constraint, - gint scale, - gboolean scale_up, - Scaling* result); -GFile* export_ui_choose_file (const gchar* current_file_basename); -gchar* photo_get_export_basename_for_parameters (Photo* self, - ExportFormatParameters* params); -void page_window_set_busy_cursor (PageWindow* self); -void photo_export (Photo* self, - GFile* dest_file, - Scaling* scaling, - JpegQuality quality, - PhotoFileFormat export_format, - gboolean direct_copy_unmodified, - gboolean export_metadata, - GError** error); -PhotoFileFormat photo_get_export_format_for_parameters (Photo* self, - ExportFormatParameters* params); -void page_window_set_normal_cursor (PageWindow* self); -GtkResponseType export_error_dialog (GFile* dest, - gboolean photos_remaining); -GFile* export_ui_choose_dir (const gchar* user_title); -Exporter* exporter_new (GeeCollection* to_export, - GFile* dir, - Scaling* scaling, - ExportFormatParameters* export_params, - gboolean auto_replace_all); -Exporter* exporter_construct (GType object_type, - GeeCollection* to_export, - GFile* dir, - Scaling* scaling, - ExportFormatParameters* export_params, - gboolean auto_replace_all); -ExporterUI* exporter_ui_new (Exporter* exporter); -ExporterUI* exporter_ui_construct (GType object_type, - Exporter* exporter); -void exporter_ui_export (ExporterUI* self, - ExporterCompletionCallback completion_callback, - void* completion_callback_target); -gboolean photo_has_transformations (Photo* self); -gboolean photo_has_editable (Photo* self); -static gboolean collection_page_can_revert_editable_selected (CollectionPage* self); -GType command_get_type (void) G_GNUC_CONST; -GType page_command_get_type (void) G_GNUC_CONST; -GType multiple_data_source_command_get_type (void) G_GNUC_CONST; -GType rotate_multiple_command_get_type (void) G_GNUC_CONST; -GeeList* view_collection_get_selected (ViewCollection* self); -GType rotation_get_type (void) G_GNUC_CONST; -#define RESOURCES_ROTATE_CW_FULL_LABEL _ ("Rotate Right") -#define RESOURCES_ROTATE_CW_TOOLTIP _ ("Rotate the photos right (press Ctrl to rotate left)") -RotateMultipleCommand* rotate_multiple_command_new (GeeIterable* iter, - Rotation rotation, - const gchar* name, - const gchar* explanation, - const gchar* progress_text, - const gchar* undo_progress_text); -RotateMultipleCommand* rotate_multiple_command_construct (GType object_type, - GeeIterable* iter, - Rotation rotation, - const gchar* name, - const gchar* explanation, - const gchar* progress_text, - const gchar* undo_progress_text); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* page_get_command_manager (Page* self); -void command_manager_execute (CommandManager* self, - Command* command); -void publishing_ui_publishing_dialog_go (GeeCollection* to_publish); -#define RESOURCES_ROTATE_CCW_FULL_LABEL _ ("Rotate Left") -#define RESOURCES_ROTATE_CCW_TOOLTIP _ ("Rotate the photos left") -#define RESOURCES_HFLIP_LABEL _ ("Flip Horizontally") -#define RESOURCES_VFLIP_LABEL _ ("Flip Vertically") -gboolean revert_editable_dialog (GtkWindow* owner, - GeeCollection* photos); -void photo_revert_to_master (Photo* self, - gboolean notify); -GType multiple_photo_transformation_command_get_type (void) G_GNUC_CONST; -GType revert_multiple_command_get_type (void) G_GNUC_CONST; -RevertMultipleCommand* revert_multiple_command_new (GeeIterable* iter); -RevertMultipleCommand* revert_multiple_command_construct (GType object_type, - GeeIterable* iter); -PixelTransformationBundle* photo_get_color_adjustments (Photo* self); -GType adjust_colors_multiple_command_get_type (void) G_GNUC_CONST; -#define RESOURCES_PASTE_ADJUSTMENTS_LABEL _ ("Paste Color Adjustments") -#define RESOURCES_PASTE_ADJUSTMENTS_TOOLTIP _ ("Apply copied color adjustments to the selected photos") -AdjustColorsMultipleCommand* adjust_colors_multiple_command_new (GeeIterable* iter, - PixelTransformationBundle* transformations, - const gchar* name, - const gchar* explanation); -AdjustColorsMultipleCommand* adjust_colors_multiple_command_construct (GType object_type, - GeeIterable* iter, - PixelTransformationBundle* transformations, - const gchar* name, - const gchar* explanation); -GType enhance_multiple_command_get_type (void) G_GNUC_CONST; -EnhanceMultipleCommand* enhance_multiple_command_new (GeeIterable* iter); -EnhanceMultipleCommand* enhance_multiple_command_construct (GType object_type, - GeeIterable* iter); -GType duplicate_multiple_photos_command_get_type (void) G_GNUC_CONST; -DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_new (GeeIterable* iter); -DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_construct (GType object_type, - GeeIterable* iter); -GType dateable_get_type (void) G_GNUC_CONST; -GType adjust_date_time_dialog_get_type (void) G_GNUC_CONST; -AdjustDateTimeDialog* adjust_date_time_dialog_new (Dateable* source, - gint photo_count, - gboolean display_options, - gboolean contains_video, - gboolean only_video); -AdjustDateTimeDialog* adjust_date_time_dialog_construct (GType object_type, - Dateable* source, - gint photo_count, - gboolean display_options, - gboolean contains_video, - gboolean only_video); -gboolean adjust_date_time_dialog_execute (AdjustDateTimeDialog* self, - gint64* time_shift, - gboolean* keep_relativity, - gboolean* modify_originals); -GType adjust_date_time_photos_command_get_type (void) G_GNUC_CONST; -AdjustDateTimePhotosCommand* adjust_date_time_photos_command_new (GeeIterable* iter, - gint64 time_shift, - gboolean keep_relativity, - gboolean modify_originals); -AdjustDateTimePhotosCommand* adjust_date_time_photos_command_construct (GType object_type, - GeeIterable* iter, - gint64 time_shift, - gboolean keep_relativity, - gboolean modify_originals); -void photo_open_with_external_editor (Photo* self, - GError** error); -void open_external_editor_error_dialog (GError* err, - Photo* photo); -void photo_open_with_raw_external_editor (Photo* self, - GError** error); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -gchar* resources_launch_editor_failed (GError* err); -void media_source_collection_filter_media (GeeCollection* media, - GeeCollection* photos, - GeeCollection* videos); -GType set_background_photo_dialog_get_type (void) G_GNUC_CONST; -SetBackgroundPhotoDialog* set_background_photo_dialog_new (void); -SetBackgroundPhotoDialog* set_background_photo_dialog_construct (GType object_type); -gboolean set_background_photo_dialog_execute (SetBackgroundPhotoDialog* self, - gboolean* desktop_background, - gboolean* screensaver); -void desktop_integration_set_background (Photo* photo, - gboolean desktop, - gboolean screensaver); -GType set_background_slideshow_dialog_get_type (void) G_GNUC_CONST; -SetBackgroundSlideshowDialog* set_background_slideshow_dialog_new (void); -SetBackgroundSlideshowDialog* set_background_slideshow_dialog_construct (GType object_type); -gboolean set_background_slideshow_dialog_execute (SetBackgroundSlideshowDialog* self, - gint* delay_value, - gboolean* desktop_background, - gboolean* screensaver); -void desktop_integration_set_background_slideshow (GeeCollection* photos, - gdouble duration, - gdouble transition, - gboolean desktop_background, - gboolean screensaver); -gint data_collection_get_count (DataCollection* self); -GeeList* view_collection_get_sources_of_type (ViewCollection* self, - GType t); -DataView* view_collection_get_view_for_source (ViewCollection* self, - DataSource* source); -void app_window_go_fullscreen (AppWindow* self, - Page* page); -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -SlideshowPage* slideshow_page_new (SourceCollection* sources, - ViewCollection* controller, - Photo* start); -SlideshowPage* slideshow_page_construct (GType object_type, - SourceCollection* sources, - ViewCollection* controller, - Photo* start); -GType single_photo_page_get_type (void) G_GNUC_CONST; -GType slideshow_page_get_type (void) G_GNUC_CONST; -static gboolean collection_page_real_on_ctrl_pressed (Page* base, - GdkEventKey* event); -gboolean page_on_ctrl_pressed (Page* self, - GdkEventKey* event); -static gboolean collection_page_real_on_ctrl_released (Page* base, - GdkEventKey* event); -gboolean page_on_ctrl_released (Page* self, - GdkEventKey* event); -static SearchViewFilter* collection_page_real_get_search_view_filter (CheckerboardPage* base); -static guint collection_page_collection_search_view_filter_real_get_criteria (SearchViewFilter* base); -GType search_filter_criteria_get_type (void) G_GNUC_CONST; -DefaultSearchViewFilter* default_search_view_filter_construct (GType object_type); -static void collection_page_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - -static const GActionEntry COLLECTION_PAGE_entries[16] = {{"Print", _collection_page_on_print_gsimple_action_activate_callback}, {"Publish", _collection_page_on_publish_gsimple_action_activate_callback}, {"RotateClockwise", _collection_page_on_rotate_clockwise_gsimple_action_activate_callback}, {"RotateCounterclockwise", _collection_page_on_rotate_counterclockwise_gsimple_action_activate_callback}, {"FlipHorizontally", _collection_page_on_flip_horizontally_gsimple_action_activate_callback}, {"FlipVertically", _collection_page_on_flip_vertically_gsimple_action_activate_callback}, {"Enhance", _collection_page_on_enhance_gsimple_action_activate_callback}, {"CopyColorAdjustments", _collection_page_on_copy_adjustments_gsimple_action_activate_callback}, {"PasteColorAdjustments", _collection_page_on_paste_adjustments_gsimple_action_activate_callback}, {"Revert", _collection_page_on_revert_gsimple_action_activate_callback}, {"SetBackground", _collection_page_on_set_background_gsimple_action_activate_callback}, {"Duplicate", _collection_page_on_duplicate_photo_gsimple_action_activate_callback}, {"AdjustDateTime", _collection_page_on_adjust_date_time_gsimple_action_activate_callback}, {"ExternalEdit", _collection_page_on_external_edit_gsimple_action_activate_callback}, {"ExternalEditRAW", _collection_page_on_external_edit_raw_gsimple_action_activate_callback}, {"Slideshow", _collection_page_on_slideshow_gsimple_action_activate_callback}}; - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return self ? g_object_ref (self) : NULL; -#line 1626 "CollectionPage.c" -} - - -CollectionViewManager* -collection_view_manager_construct (GType object_type, - CollectionPage* page) -{ - CollectionViewManager* self = NULL; - CollectionPage* _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_val_if_fail (IS_COLLECTION_PAGE (page), NULL); -#line 10 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = (CollectionViewManager*) view_manager_construct (object_type); -#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = _g_object_ref0 (page); -#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (self->priv->page); -#line 11 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self->priv->page = _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return self; -#line 1648 "CollectionPage.c" -} - - -CollectionViewManager* -collection_view_manager_new (CollectionPage* page) -{ -#line 10 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return collection_view_manager_construct (TYPE_COLLECTION_VIEW_MANAGER, page); -#line 1657 "CollectionPage.c" -} - - -static DataView* -collection_view_manager_real_create_view (ViewManager* base, - DataSource* source) -{ - CollectionViewManager * self; - DataView* result = NULL; - CollectionPage* _tmp0_; - DataView* _tmp1_; -#line 14 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager); -#line 14 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = self->priv->page; -#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = media_page_create_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_PAGE, MediaPage), source); -#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = _tmp1_; -#line 15 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 1681 "CollectionPage.c" -} - - -static void -collection_view_manager_class_init (CollectionViewManagerClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_view_manager_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala" - ((ViewManagerClass *) klass)->finalize = collection_view_manager_finalize; -#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_type_class_add_private (klass, sizeof (CollectionViewManagerPrivate)); -#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala" - ((ViewManagerClass *) klass)->create_view = (DataView* (*) (ViewManager *, DataSource*)) collection_view_manager_real_create_view; -#line 1696 "CollectionPage.c" -} - - -static void -collection_view_manager_instance_init (CollectionViewManager * self) -{ -#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self->priv = COLLECTION_VIEW_MANAGER_GET_PRIVATE (self); -#line 1705 "CollectionPage.c" -} - - -static void -collection_view_manager_finalize (ViewManager * obj) -{ - CollectionViewManager * self; -#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager); -#line 8 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (self->priv->page); -#line 7 "/home/jens/Source/shotwell/src/CollectionPage.vala" - VIEW_MANAGER_CLASS (collection_view_manager_parent_class)->finalize (obj); -#line 1719 "CollectionPage.c" -} - - -GType -collection_view_manager_get_type (void) -{ - static volatile gsize collection_view_manager_type_id__volatile = 0; - if (g_once_init_enter (&collection_view_manager_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CollectionViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) collection_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CollectionViewManager), 0, (GInstanceInitFunc) collection_view_manager_instance_init, NULL }; - GType collection_view_manager_type_id; - collection_view_manager_type_id = g_type_register_static (TYPE_VIEW_MANAGER, "CollectionViewManager", &g_define_type_info, 0); - g_once_init_leave (&collection_view_manager_type_id__volatile, collection_view_manager_type_id); - } - return collection_view_manager_type_id__volatile; -} - - -static void -_collection_page_on_print_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_print ((CollectionPage*) self); -#line 1744 "CollectionPage.c" -} - - -static void -_collection_page_on_publish_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_publish ((CollectionPage*) self); -#line 1755 "CollectionPage.c" -} - - -static void -_collection_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_rotate_clockwise ((CollectionPage*) self); -#line 1766 "CollectionPage.c" -} - - -static void -_collection_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_rotate_counterclockwise ((CollectionPage*) self); -#line 1777 "CollectionPage.c" -} - - -static void -_collection_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_flip_horizontally ((CollectionPage*) self); -#line 1788 "CollectionPage.c" -} - - -static void -_collection_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_flip_vertically ((CollectionPage*) self); -#line 1799 "CollectionPage.c" -} - - -static void -_collection_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_enhance ((CollectionPage*) self); -#line 1810 "CollectionPage.c" -} - - -static void -_collection_page_on_copy_adjustments_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_copy_adjustments ((CollectionPage*) self); -#line 1821 "CollectionPage.c" -} - - -static void -_collection_page_on_paste_adjustments_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_paste_adjustments ((CollectionPage*) self); -#line 1832 "CollectionPage.c" -} - - -static void -_collection_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_revert ((CollectionPage*) self); -#line 1843 "CollectionPage.c" -} - - -static void -_collection_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_set_background ((CollectionPage*) self); -#line 1854 "CollectionPage.c" -} - - -static void -_collection_page_on_duplicate_photo_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_duplicate_photo ((CollectionPage*) self); -#line 1865 "CollectionPage.c" -} - - -static void -_collection_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_adjust_date_time ((CollectionPage*) self); -#line 1876 "CollectionPage.c" -} - - -static void -_collection_page_on_external_edit_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_external_edit ((CollectionPage*) self); -#line 1887 "CollectionPage.c" -} - - -static void -_collection_page_on_external_edit_raw_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_external_edit_raw ((CollectionPage*) self); -#line 1898 "CollectionPage.c" -} - - -static void -_collection_page_on_slideshow_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_slideshow ((CollectionPage*) self); -#line 1909 "CollectionPage.c" -} - - -static void -_collection_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_photos_altered ((CollectionPage*) self, items); -#line 1920 "CollectionPage.c" -} - - -static void -_collection_page_on_external_app_changed_configuration_facade_external_app_changed (ConfigurationFacade* _sender, - gpointer self) -{ -#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_external_app_changed ((CollectionPage*) self); -#line 1930 "CollectionPage.c" -} - - -CollectionPage* -collection_page_construct (GType object_type, - const gchar* page_name) -{ - CollectionPage * self = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - ConfigFacade* _tmp2_; - ConfigFacade* _tmp3_; -#line 32 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_val_if_fail (page_name != NULL, NULL); -#line 33 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = (CollectionPage*) media_page_construct (object_type, page_name); -#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _collection_page_on_photos_altered_data_collection_items_altered, self, 0); -#line 35 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 37 "/home/jens/Source/shotwell/src/CollectionPage.vala" - checkerboard_page_init_item_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "CollectionContextMenu"); -#line 38 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_init_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CollectionToolbar"); -#line 40 "/home/jens/Source/shotwell/src/CollectionPage.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = config_facade_get_instance (); -#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = _tmp2_; -#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "external-app-changed", (GCallback) _collection_page_on_external_app_changed_configuration_facade_external_app_changed, self, 0); -#line 43 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp3_); -#line 32 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return self; -#line 1971 "CollectionPage.c" -} - - -static GtkToolbar* -collection_page_real_get_toolbar (Page* base) -{ - CollectionPage * self; - GtkToolbar* result = NULL; - GtkToolbar* _tmp0_; - GtkToolbar* _tmp28_; - GtkToolbar* _tmp29_; -#line 46 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp0_ == NULL) { -#line 1989 "CollectionPage.c" - GtkToolbar* _tmp1_; - GtkToolbar* _tmp2_; - GtkSeparatorToolItem* separator = NULL; - GtkSeparatorToolItem* _tmp3_; - GtkSeparatorToolItem* _tmp4_; - GtkSeparatorToolItem* _tmp5_; - GtkToolbar* _tmp6_; - GtkToolbar* _tmp7_; - GtkSeparatorToolItem* _tmp8_; - GtkSeparatorToolItem* drawn_separator = NULL; - GtkSeparatorToolItem* _tmp9_; - GtkSeparatorToolItem* _tmp10_; - GtkSeparatorToolItem* _tmp11_; - GtkToolbar* _tmp12_; - GtkToolbar* _tmp13_; - GtkSeparatorToolItem* _tmp14_; - MediaPageZoomSliderAssembly* zoom_slider_assembly = NULL; - MediaPageZoomSliderAssembly* _tmp15_; - MediaPageZoomSliderAssembly* _tmp16_; - GtkToolbar* _tmp17_; - GtkToolbar* _tmp18_; - MediaPageZoomSliderAssembly* _tmp19_; - GtkToolButton* rotate_button = NULL; - GtkBuilder* _tmp20_; - GObject* _tmp21_; - GtkToolButton* _tmp22_; - GtkBindingSet* binding_set = NULL; - GtkToolButton* _tmp23_; - GObjectClass* _tmp24_; - GtkBindingSet* _tmp25_; - GtkBindingSet* _tmp26_; - GtkBindingSet* _tmp27_; -#line 48 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = PAGE_CLASS (collection_page_parent_class)->get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page)); -#line 48 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = _tmp1_; -#line 48 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp2_); -#line 51 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new (); -#line 51 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_object_ref_sink (_tmp3_); -#line 51 "/home/jens/Source/shotwell/src/CollectionPage.vala" - separator = _tmp3_; -#line 52 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = separator; -#line 52 "/home/jens/Source/shotwell/src/CollectionPage.vala" - gtk_tool_item_set_expand (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_tool_item_get_type (), GtkToolItem), TRUE); -#line 53 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = separator; -#line 53 "/home/jens/Source/shotwell/src/CollectionPage.vala" - gtk_separator_tool_item_set_draw (_tmp5_, FALSE); -#line 54 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 54 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = _tmp6_; -#line 54 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = separator; -#line 54 "/home/jens/Source/shotwell/src/CollectionPage.vala" - gtk_toolbar_insert (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 54 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp7_); -#line 56 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new (); -#line 56 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_object_ref_sink (_tmp9_); -#line 56 "/home/jens/Source/shotwell/src/CollectionPage.vala" - drawn_separator = _tmp9_; -#line 57 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = drawn_separator; -#line 57 "/home/jens/Source/shotwell/src/CollectionPage.vala" - gtk_tool_item_set_expand (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_tool_item_get_type (), GtkToolItem), FALSE); -#line 58 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = drawn_separator; -#line 58 "/home/jens/Source/shotwell/src/CollectionPage.vala" - gtk_separator_tool_item_set_draw (_tmp11_, TRUE); -#line 60 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp12_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 60 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp13_ = _tmp12_; -#line 60 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp14_ = drawn_separator; -#line 60 "/home/jens/Source/shotwell/src/CollectionPage.vala" - gtk_toolbar_insert (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 60 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp13_); -#line 63 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp15_ = media_page_create_zoom_slider_assembly (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage)); -#line 63 "/home/jens/Source/shotwell/src/CollectionPage.vala" - zoom_slider_assembly = _tmp15_; -#line 64 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp16_ = zoom_slider_assembly; -#line 64 "/home/jens/Source/shotwell/src/CollectionPage.vala" - media_page_connect_slider (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), _tmp16_); -#line 65 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp17_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 65 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp18_ = _tmp17_; -#line 65 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp19_ = zoom_slider_assembly; -#line 65 "/home/jens/Source/shotwell/src/CollectionPage.vala" - gtk_toolbar_insert (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 65 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp18_); -#line 67 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp20_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder; -#line 67 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp21_ = gtk_builder_get_object (_tmp20_, "ToolRotate"); -#line 67 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, gtk_tool_button_get_type ()) ? ((GtkToolButton*) _tmp21_) : NULL); -#line 67 "/home/jens/Source/shotwell/src/CollectionPage.vala" - rotate_button = _tmp22_; -#line 68 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp23_ = rotate_button; -#line 68 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp24_ = G_OBJECT_GET_CLASS (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, G_TYPE_OBJECT, GObject)); -#line 68 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp25_ = gtk_binding_set_by_class ((gpointer) _tmp24_); -#line 68 "/home/jens/Source/shotwell/src/CollectionPage.vala" - binding_set = _tmp25_; -#line 69 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp26_ = binding_set; -#line 69 "/home/jens/Source/shotwell/src/CollectionPage.vala" - gtk_binding_entry_add_signal (_tmp26_, (guint) GDK_KEY_KP_Space, GDK_CONTROL_MASK, "clicked", (guint) 0, NULL); -#line 70 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp27_ = binding_set; -#line 70 "/home/jens/Source/shotwell/src/CollectionPage.vala" - gtk_binding_entry_add_signal (_tmp27_, (guint) GDK_KEY_space, GDK_CONTROL_MASK, "clicked", (guint) 0, NULL); -#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (rotate_button); -#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (zoom_slider_assembly); -#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (drawn_separator); -#line 47 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (separator); -#line 2126 "CollectionPage.c" - } -#line 74 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp28_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 74 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp29_ = _g_object_ref0 (_tmp28_); -#line 74 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = _tmp29_; -#line 74 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 2136 "CollectionPage.c" -} - - -static InjectionGroup* -collection_page_create_file_menu_injectables (void) -{ - InjectionGroup* result = NULL; - InjectionGroup* group = NULL; - InjectionGroup* _tmp0_; -#line 78 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = injection_group_new ("FileExtrasPlaceholder"); -#line 78 "/home/jens/Source/shotwell/src/CollectionPage.vala" - group = _tmp0_; -#line 80 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("_Print"), "Print", "p"); -#line 81 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_separator (group); -#line 82 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("_Publish"), "Publish", "p"); -#line 83 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("Send _To…"), "SendTo", NULL); -#line 84 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("Set as _Desktop Background"), "SetBackground", "b"); -#line 86 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = group; -#line 86 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 2164 "CollectionPage.c" -} - - -static InjectionGroup* -collection_page_create_edit_menu_injectables (void) -{ - InjectionGroup* result = NULL; - InjectionGroup* group = NULL; - InjectionGroup* _tmp0_; -#line 90 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = injection_group_new ("EditExtrasPlaceholder"); -#line 90 "/home/jens/Source/shotwell/src/CollectionPage.vala" - group = _tmp0_; -#line 92 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("_Duplicate"), "Duplicate", "D"); -#line 94 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = group; -#line 94 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 2184 "CollectionPage.c" -} - - -static InjectionGroup* -collection_page_create_view_menu_fullscreen_injectables (void) -{ - InjectionGroup* result = NULL; - InjectionGroup* group = NULL; - InjectionGroup* _tmp0_; -#line 98 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = injection_group_new ("ViewExtrasFullscreenSlideshowPlaceholder"); -#line 98 "/home/jens/Source/shotwell/src/CollectionPage.vala" - group = _tmp0_; -#line 100 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("Fullscreen"), "CommonFullscreen", "F11"); -#line 101 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_separator (group); -#line 102 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("S_lideshow"), "Slideshow", "F5"); -#line 104 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = group; -#line 104 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 2208 "CollectionPage.c" -} - - -static InjectionGroup* -collection_page_create_photos_menu_edits_injectables (void) -{ - InjectionGroup* result = NULL; - InjectionGroup* group = NULL; - InjectionGroup* _tmp0_; -#line 108 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = injection_group_new ("PhotosExtrasEditsPlaceholder"); -#line 108 "/home/jens/Source/shotwell/src/CollectionPage.vala" - group = _tmp0_; -#line 110 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("Rotate _Right"), "RotateClockwise", "r"); -#line 113 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("Rotate _Left"), "RotateCounterclockwise", "r"); -#line 116 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("Flip Hori_zontally"), "FlipHorizontally", NULL); -#line 117 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("Flip Verti_cally"), "FlipVertically", NULL); -#line 118 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_separator (group); -#line 119 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("_Enhance"), "Enhance", NULL); -#line 120 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("Re_vert to Original"), "Revert", NULL); -#line 121 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_separator (group); -#line 122 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("_Copy Color Adjustments"), "CopyColorAdjustments", "c"); -#line 125 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("_Paste Color Adjustments"), "PasteColorAdjustments", "v"); -#line 129 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = group; -#line 129 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 2246 "CollectionPage.c" -} - - -static InjectionGroup* -collection_page_create_photos_menu_date_injectables (void) -{ - InjectionGroup* result = NULL; - InjectionGroup* group = NULL; - InjectionGroup* _tmp0_; -#line 133 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = injection_group_new ("PhotosExtrasDateTimePlaceholder"); -#line 133 "/home/jens/Source/shotwell/src/CollectionPage.vala" - group = _tmp0_; -#line 135 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("Adjust Date and Time…"), "AdjustDateTime", "F4"); -#line 137 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = group; -#line 137 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 2266 "CollectionPage.c" -} - - -static InjectionGroup* -collection_page_create_photos_menu_externals_injectables (void) -{ - InjectionGroup* result = NULL; - InjectionGroup* group = NULL; - InjectionGroup* _tmp0_; -#line 141 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = injection_group_new ("PhotosExtrasExternalsPlaceholder"); -#line 141 "/home/jens/Source/shotwell/src/CollectionPage.vala" - group = _tmp0_; -#line 143 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("Open With E_xternal Editor"), "ExternalEdit", "Return"); -#line 146 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("Open With RA_W Editor"), "ExternalEditRAW", "Return"); -#line 149 "/home/jens/Source/shotwell/src/CollectionPage.vala" - injection_group_add_menu_item (group, _ ("_Play"), "PlayVideo", "Y"); -#line 151 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = group; -#line 151 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 2290 "CollectionPage.c" -} - - -static void -collection_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames) -{ - CollectionPage * self; -#line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 154 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 155 "/home/jens/Source/shotwell/src/CollectionPage.vala" - PAGE_CLASS (collection_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), ui_filenames); -#line 157 "/home/jens/Source/shotwell/src/CollectionPage.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "collection.ui"); -#line 2307 "CollectionPage.c" -} - - -static void -collection_page_real_add_actions (Page* base, - GActionMap* map) -{ - CollectionPage * self; -#line 179 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 179 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 180 "/home/jens/Source/shotwell/src/CollectionPage.vala" - PAGE_CLASS (collection_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), map); -#line 182 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_action_map_add_action_entries (map, COLLECTION_PAGE_entries, G_N_ELEMENTS (COLLECTION_PAGE_entries), self); -#line 2324 "CollectionPage.c" -} - - -static void -collection_page_real_remove_actions (Page* base, - GActionMap* map) -{ - CollectionPage * self; -#line 185 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 185 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 186 "/home/jens/Source/shotwell/src/CollectionPage.vala" - PAGE_CLASS (collection_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), map); -#line 2339 "CollectionPage.c" - { - GActionEntry* entry_collection = NULL; - gint entry_collection_length1 = 0; - gint _entry_collection_size_ = 0; - gint entry_it = 0; -#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala" - entry_collection = COLLECTION_PAGE_entries; -#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala" - entry_collection_length1 = G_N_ELEMENTS (COLLECTION_PAGE_entries); -#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala" - for (entry_it = 0; entry_it < G_N_ELEMENTS (COLLECTION_PAGE_entries); entry_it = entry_it + 1) { -#line 2351 "CollectionPage.c" - GActionEntry entry = {0}; -#line 187 "/home/jens/Source/shotwell/src/CollectionPage.vala" - entry = entry_collection[entry_it]; -#line 2355 "CollectionPage.c" - { - GActionEntry _tmp0_; - const gchar* _tmp1_; -#line 188 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = entry; -#line 188 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_.name; -#line 188 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_action_map_remove_action (map, _tmp1_); -#line 2365 "CollectionPage.c" - } - } - } -} - - -static void -_vala_array_add79 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value) -{ -#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if ((*length) == (*size)) { -#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala" - *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 2384 "CollectionPage.c" - } -#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala" - (*array)[(*length)++] = value; -#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala" - (*array)[*length] = NULL; -#line 2390 "CollectionPage.c" -} - - -static void -_vala_array_add80 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value) -{ -#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if ((*length) == (*size)) { -#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala" - *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 2406 "CollectionPage.c" - } -#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala" - (*array)[(*length)++] = value; -#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala" - (*array)[*length] = NULL; -#line 2412 "CollectionPage.c" -} - - -static void -_vala_array_add81 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value) -{ -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if ((*length) == (*size)) { -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" - *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 2428 "CollectionPage.c" - } -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" - (*array)[(*length)++] = value; -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" - (*array)[*length] = NULL; -#line 2434 "CollectionPage.c" -} - - -static void -_vala_array_add82 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value) -{ -#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if ((*length) == (*size)) { -#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala" - *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 2450 "CollectionPage.c" - } -#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala" - (*array)[(*length)++] = value; -#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala" - (*array)[*length] = NULL; -#line 2456 "CollectionPage.c" -} - - -static void -_vala_array_add83 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value) -{ -#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if ((*length) == (*size)) { -#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala" - *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 2472 "CollectionPage.c" - } -#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala" - (*array)[(*length)++] = value; -#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala" - (*array)[*length] = NULL; -#line 2478 "CollectionPage.c" -} - - -static void -_vala_array_add84 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value) -{ -#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if ((*length) == (*size)) { -#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" - *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 2494 "CollectionPage.c" - } -#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" - (*array)[(*length)++] = value; -#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" - (*array)[*length] = NULL; -#line 2500 "CollectionPage.c" -} - - -static InjectionGroup** -collection_page_real_init_collect_injection_groups (Page* base, - int* result_length1) -{ - CollectionPage * self; - InjectionGroup** result = NULL; - InjectionGroup** groups = NULL; - gint _tmp0_; - InjectionGroup** _tmp1_; - gint groups_length1; - gint _groups_size_; - InjectionGroup** _tmp2_; - gint _tmp2__length1; - InjectionGroup* _tmp3_; - InjectionGroup** _tmp4_; - gint _tmp4__length1; - InjectionGroup* _tmp5_; - InjectionGroup** _tmp6_; - gint _tmp6__length1; - InjectionGroup* _tmp7_; - InjectionGroup** _tmp8_; - gint _tmp8__length1; - InjectionGroup* _tmp9_; - InjectionGroup** _tmp10_; - gint _tmp10__length1; - InjectionGroup* _tmp11_; - InjectionGroup** _tmp12_; - gint _tmp12__length1; - InjectionGroup* _tmp13_; - InjectionGroup** _tmp14_; - gint _tmp14__length1; -#line 192 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = PAGE_CLASS (collection_page_parent_class)->init_collect_injection_groups (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), &_tmp0_); -#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" - groups = _tmp1_; -#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" - groups_length1 = _tmp0_; -#line 193 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _groups_size_ = groups_length1; -#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = groups; -#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2__length1 = groups_length1; -#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = collection_page_create_file_menu_injectables (); -#line 195 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _vala_array_add79 (&groups, &groups_length1, &_groups_size_, _tmp3_); -#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = groups; -#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4__length1 = groups_length1; -#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = collection_page_create_edit_menu_injectables (); -#line 196 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _vala_array_add80 (&groups, &groups_length1, &_groups_size_, _tmp5_); -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = groups; -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6__length1 = groups_length1; -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = collection_page_create_view_menu_fullscreen_injectables (); -#line 197 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _vala_array_add81 (&groups, &groups_length1, &_groups_size_, _tmp7_); -#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = groups; -#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8__length1 = groups_length1; -#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = collection_page_create_photos_menu_edits_injectables (); -#line 198 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _vala_array_add82 (&groups, &groups_length1, &_groups_size_, _tmp9_); -#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = groups; -#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10__length1 = groups_length1; -#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = collection_page_create_photos_menu_date_injectables (); -#line 199 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _vala_array_add83 (&groups, &groups_length1, &_groups_size_, _tmp11_); -#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp12_ = groups; -#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp12__length1 = groups_length1; -#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp13_ = collection_page_create_photos_menu_externals_injectables (); -#line 200 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _vala_array_add84 (&groups, &groups_length1, &_groups_size_, _tmp13_); -#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp14_ = groups; -#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp14__length1 = groups_length1; -#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (result_length1) { -#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala" - *result_length1 = _tmp14__length1; -#line 2601 "CollectionPage.c" - } -#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = _tmp14_; -#line 202 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 2607 "CollectionPage.c" -} - - -static gboolean -collection_page_selection_has_video (CollectionPage* self) -{ - gboolean result = FALSE; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - GeeList* _tmp2_; - GeeCollection* _tmp3_; - gboolean _tmp4_; -#line 205 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE); -#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_sources (_tmp1_); -#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = media_source_collection_has_video (_tmp3_); -#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp3_); -#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = _tmp4_; -#line 206 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 2640 "CollectionPage.c" -} - - -static gboolean -collection_page_page_has_photo (CollectionPage* self) -{ - gboolean result = FALSE; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - gboolean _tmp4_; -#line 209 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE); -#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_sources (_tmp1_); -#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = media_source_collection_has_photo (_tmp3_); -#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp3_); -#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = _tmp4_; -#line 210 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 2673 "CollectionPage.c" -} - - -static gboolean -collection_page_selection_has_photo (CollectionPage* self) -{ - gboolean result = FALSE; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - GeeList* _tmp2_; - GeeCollection* _tmp3_; - gboolean _tmp4_; -#line 213 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE); -#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_sources (_tmp1_); -#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = media_source_collection_has_photo (_tmp3_); -#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp3_); -#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = _tmp4_; -#line 214 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 2706 "CollectionPage.c" -} - - -static void -collection_page_real_init_actions (Page* base, - gint selected_count, - gint count) -{ - CollectionPage * self; -#line 217 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 218 "/home/jens/Source/shotwell/src/CollectionPage.vala" - PAGE_CLASS (collection_page_parent_class)->init_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), selected_count, count); -#line 220 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", TRUE); -#line 221 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", TRUE); -#line 222 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", TRUE); -#line 223 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", TRUE); -#line 2728 "CollectionPage.c" -} - - -static void -collection_page_real_update_actions (Page* base, - gint selected_count, - gint count) -{ - CollectionPage * self; - AppWindow* _tmp0_; - AppWindow* _tmp1_; - Page* _tmp2_; - Page* _tmp3_; - gboolean _tmp4_; - gboolean one_selected = FALSE; - gboolean has_selected = FALSE; - gboolean primary_is_video = FALSE; - gboolean _tmp5_; - gboolean selection_has_videos = FALSE; - gboolean page_has_photos = FALSE; - gboolean _tmp13_ = FALSE; - gboolean _tmp14_; - gboolean _tmp16_ = FALSE; - gboolean _tmp17_ = FALSE; - gboolean _tmp18_; - gboolean _tmp24_ = FALSE; - gboolean _tmp25_ = FALSE; - gboolean _tmp26_ = FALSE; - gboolean _tmp27_; - gboolean _tmp39_ = FALSE; - gboolean _tmp40_; - gboolean _tmp41_ = FALSE; - gboolean _tmp42_; - gboolean _tmp44_ = FALSE; - gboolean _tmp45_ = FALSE; - gboolean _tmp46_; - gboolean _tmp54_ = FALSE; - gboolean _tmp55_ = FALSE; - gboolean _tmp56_; - gboolean _tmp58_ = FALSE; - gboolean _tmp59_; - gboolean _tmp61_ = FALSE; - gboolean _tmp62_; - gboolean _tmp64_ = FALSE; - gboolean _tmp65_; - gboolean _tmp67_ = FALSE; - gboolean _tmp68_; - gboolean _tmp70_; - gboolean _tmp71_; - gboolean _tmp72_; - gboolean _tmp73_; - gboolean _tmp74_ = FALSE; - gboolean _tmp75_; - gboolean _tmp77_ = FALSE; - gboolean _tmp78_; - gboolean _tmp80_; - gboolean _tmp81_ = FALSE; - gboolean _tmp82_; - gboolean _tmp84_; -#line 226 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = app_window_get_instance (); -#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow)); -#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = _tmp2_; -#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = _tmp3_ != G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page); -#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp3_); -#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp1_); -#line 228 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp4_) { -#line 229 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 2808 "CollectionPage.c" - } -#line 232 "/home/jens/Source/shotwell/src/CollectionPage.vala" - PAGE_CLASS (collection_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), selected_count, count); -#line 234 "/home/jens/Source/shotwell/src/CollectionPage.vala" - one_selected = selected_count == 1; -#line 235 "/home/jens/Source/shotwell/src/CollectionPage.vala" - has_selected = selected_count > 0; -#line 237 "/home/jens/Source/shotwell/src/CollectionPage.vala" - primary_is_video = FALSE; -#line 238 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = has_selected; -#line 238 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp5_) { -#line 2822 "CollectionPage.c" - ViewCollection* _tmp6_; - ViewCollection* _tmp7_; - DataView* _tmp8_; - DataView* _tmp9_; - DataSource* _tmp10_; - DataSource* _tmp11_; - gboolean _tmp12_; -#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = _tmp6_; -#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = view_collection_get_selected_at (_tmp7_, 0); -#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = _tmp8_; -#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = data_view_get_source (_tmp9_); -#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = _tmp10_; -#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp12_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_VIDEO); -#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp11_); -#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp9_); -#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp7_); -#line 239 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp12_) { -#line 240 "/home/jens/Source/shotwell/src/CollectionPage.vala" - primary_is_video = TRUE; -#line 2854 "CollectionPage.c" - } - } -#line 242 "/home/jens/Source/shotwell/src/CollectionPage.vala" - selection_has_videos = collection_page_selection_has_video (self); -#line 243 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_has_photos = collection_page_page_has_photo (self); -#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp14_ = has_selected; -#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp14_) { -#line 2865 "CollectionPage.c" - gboolean _tmp15_; -#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp15_ = selection_has_videos; -#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp13_ = !_tmp15_; -#line 2871 "CollectionPage.c" - } else { -#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp13_ = FALSE; -#line 2875 "CollectionPage.c" - } -#line 247 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Duplicate", _tmp13_); -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp18_ = primary_is_video; -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!_tmp18_) { -#line 2883 "CollectionPage.c" - gboolean _tmp19_; -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp19_ = one_selected; -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp17_ = _tmp19_; -#line 2889 "CollectionPage.c" - } else { -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp17_ = FALSE; -#line 2893 "CollectionPage.c" - } -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp17_) { -#line 2897 "CollectionPage.c" - ConfigFacade* _tmp20_; - ConfigFacade* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp20_ = config_facade_get_instance (); -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp21_ = _tmp20_; -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp22_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp23_ = _tmp22_; -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp16_ = !is_string_empty (_tmp23_); -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_free0 (_tmp23_); -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp21_); -#line 2916 "CollectionPage.c" - } else { -#line 249 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp16_ = FALSE; -#line 2920 "CollectionPage.c" - } -#line 248 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp16_); -#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp27_ = one_selected; -#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp27_) { -#line 2928 "CollectionPage.c" - gboolean _tmp28_; -#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp28_ = primary_is_video; -#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp26_ = !_tmp28_; -#line 2934 "CollectionPage.c" - } else { -#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp26_ = FALSE; -#line 2938 "CollectionPage.c" - } -#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp26_) { -#line 2942 "CollectionPage.c" - ViewCollection* _tmp29_; - ViewCollection* _tmp30_; - DataView* _tmp31_; - DataView* _tmp32_; - DataSource* _tmp33_; - Photo* _tmp34_; -#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp29_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp30_ = _tmp29_; -#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp31_ = view_collection_get_selected_at (_tmp30_, 0); -#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp32_ = _tmp31_; -#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp33_ = data_view_get_source (_tmp32_); -#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp34_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_PHOTO, Photo); -#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp25_ = photo_get_master_file_format (_tmp34_) == PHOTO_FILE_FORMAT_RAW; -#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp34_); -#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp32_); -#line 252 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp30_); -#line 2969 "CollectionPage.c" - } else { -#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp25_ = FALSE; -#line 2973 "CollectionPage.c" - } -#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp25_) { -#line 2977 "CollectionPage.c" - ConfigFacade* _tmp35_; - ConfigFacade* _tmp36_; - gchar* _tmp37_; - gchar* _tmp38_; -#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp35_ = config_facade_get_instance (); -#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp36_ = _tmp35_; -#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp37_ = configuration_facade_get_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp38_ = _tmp37_; -#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp24_ = !is_string_empty (_tmp38_); -#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_free0 (_tmp38_); -#line 254 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp36_); -#line 2996 "CollectionPage.c" - } else { -#line 251 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp24_ = FALSE; -#line 3000 "CollectionPage.c" - } -#line 250 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEditRAW", _tmp24_); -#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp40_ = selection_has_videos; -#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!_tmp40_) { -#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp39_ = collection_page_can_revert_selected (self); -#line 3010 "CollectionPage.c" - } else { -#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp39_ = FALSE; -#line 3014 "CollectionPage.c" - } -#line 255 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp39_); -#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp42_ = selection_has_videos; -#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!_tmp42_) { -#line 3022 "CollectionPage.c" - gboolean _tmp43_; -#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp43_ = has_selected; -#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp41_ = _tmp43_; -#line 3028 "CollectionPage.c" - } else { -#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp41_ = FALSE; -#line 3032 "CollectionPage.c" - } -#line 256 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", _tmp41_); -#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp46_ = selection_has_videos; -#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!_tmp46_) { -#line 3040 "CollectionPage.c" - gboolean _tmp47_; -#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp47_ = one_selected; -#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp45_ = _tmp47_; -#line 3046 "CollectionPage.c" - } else { -#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp45_ = FALSE; -#line 3050 "CollectionPage.c" - } -#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp45_) { -#line 3054 "CollectionPage.c" - ViewCollection* _tmp48_; - ViewCollection* _tmp49_; - DataView* _tmp50_; - DataView* _tmp51_; - DataSource* _tmp52_; - Photo* _tmp53_; -#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp48_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp49_ = _tmp48_; -#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp50_ = view_collection_get_selected_at (_tmp49_, 0); -#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp51_ = _tmp50_; -#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp52_ = data_view_get_source (_tmp51_); -#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp53_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, TYPE_PHOTO, Photo); -#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp44_ = photo_has_color_adjustments (_tmp53_); -#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp53_); -#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp51_); -#line 258 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp49_); -#line 3081 "CollectionPage.c" - } else { -#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp44_ = FALSE; -#line 3085 "CollectionPage.c" - } -#line 257 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CopyColorAdjustments", _tmp44_); -#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp56_ = selection_has_videos; -#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!_tmp56_) { -#line 3093 "CollectionPage.c" - gboolean _tmp57_; -#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp57_ = has_selected; -#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp55_ = _tmp57_; -#line 3099 "CollectionPage.c" - } else { -#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp55_ = FALSE; -#line 3103 "CollectionPage.c" - } -#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp55_) { -#line 260 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp54_ = pixel_transformation_bundle_has_copied_color_adjustments (); -#line 3109 "CollectionPage.c" - } else { -#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp54_ = FALSE; -#line 3113 "CollectionPage.c" - } -#line 259 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", _tmp54_); -#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp59_ = selection_has_videos; -#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!_tmp59_) { -#line 3121 "CollectionPage.c" - gboolean _tmp60_; -#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp60_ = has_selected; -#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp58_ = _tmp60_; -#line 3127 "CollectionPage.c" - } else { -#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp58_ = FALSE; -#line 3131 "CollectionPage.c" - } -#line 261 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", _tmp58_); -#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp62_ = selection_has_videos; -#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!_tmp62_) { -#line 3139 "CollectionPage.c" - gboolean _tmp63_; -#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp63_ = has_selected; -#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp61_ = _tmp63_; -#line 3145 "CollectionPage.c" - } else { -#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp61_ = FALSE; -#line 3149 "CollectionPage.c" - } -#line 262 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", _tmp61_); -#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp65_ = selection_has_videos; -#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!_tmp65_) { -#line 3157 "CollectionPage.c" - gboolean _tmp66_; -#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp66_ = has_selected; -#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp64_ = _tmp66_; -#line 3163 "CollectionPage.c" - } else { -#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp64_ = FALSE; -#line 3167 "CollectionPage.c" - } -#line 263 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", _tmp64_); -#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp68_ = selection_has_videos; -#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!_tmp68_) { -#line 3175 "CollectionPage.c" - gboolean _tmp69_; -#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp69_ = has_selected; -#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp67_ = _tmp69_; -#line 3181 "CollectionPage.c" - } else { -#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp67_ = FALSE; -#line 3185 "CollectionPage.c" - } -#line 264 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", _tmp67_); -#line 268 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp70_ = has_selected; -#line 268 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", _tmp70_); -#line 270 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp71_ = has_selected; -#line 270 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "NewEvent", _tmp71_); -#line 271 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp72_ = has_selected; -#line 271 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AddTags", _tmp72_); -#line 272 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp73_ = one_selected; -#line 272 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ModifyTags", _tmp73_); -#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp75_ = page_has_photos; -#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp75_) { -#line 3209 "CollectionPage.c" - gboolean _tmp76_; -#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp76_ = primary_is_video; -#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp74_ = !_tmp76_; -#line 3215 "CollectionPage.c" - } else { -#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp74_ = FALSE; -#line 3219 "CollectionPage.c" - } -#line 273 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Slideshow", _tmp74_); -#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp78_ = selection_has_videos; -#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!_tmp78_) { -#line 3227 "CollectionPage.c" - gboolean _tmp79_; -#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp79_ = has_selected; -#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp77_ = _tmp79_; -#line 3233 "CollectionPage.c" - } else { -#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp77_ = FALSE; -#line 3237 "CollectionPage.c" - } -#line 274 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Print", _tmp77_); -#line 275 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp80_ = has_selected; -#line 275 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", _tmp80_); -#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp82_ = selection_has_videos; -#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!_tmp82_) { -#line 3249 "CollectionPage.c" - gboolean _tmp83_; -#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp83_ = has_selected; -#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp81_ = _tmp83_; -#line 3255 "CollectionPage.c" - } else { -#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp81_ = FALSE; -#line 3259 "CollectionPage.c" - } -#line 277 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp81_); -#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp84_ = has_selected; -#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp84_) { -#line 3267 "CollectionPage.c" - const gchar* _tmp85_ = NULL; - gboolean _tmp86_; - gchar* label = NULL; - gchar* _tmp87_; - const gchar* _tmp88_; -#line 279 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_debug ("CollectionPage.vala:279: Setting action label for SetBackground..."); -#line 280 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp86_ = one_selected; -#line 280 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp86_) { -#line 281 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp85_ = RESOURCES_SET_BACKGROUND_MENU; -#line 3281 "CollectionPage.c" - } else { -#line 282 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp85_ = RESOURCES_SET_BACKGROUND_SLIDESHOW_MENU; -#line 3285 "CollectionPage.c" - } -#line 280 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp87_ = g_strdup (_tmp85_); -#line 280 "/home/jens/Source/shotwell/src/CollectionPage.vala" - label = _tmp87_; -#line 283 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp88_ = label; -#line 283 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_update_menu_item_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp88_); -#line 278 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_free0 (label); -#line 3297 "CollectionPage.c" - } -} - - -static void -collection_page_on_photos_altered (CollectionPage* self, - GeeMap* altered) -{ -#line 287 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 287 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (GEE_IS_MAP (altered)); -#line 3310 "CollectionPage.c" - { - GeeIterator* _object_it = NULL; - GeeSet* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = gee_map_get_keys (altered); -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = _tmp1_; -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = _tmp3_; -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp2_); -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _object_it = _tmp4_; -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" - while (TRUE) { -#line 3334 "CollectionPage.c" - GeeIterator* _tmp5_; - DataObject* object = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - DataView* view = NULL; - DataObject* _tmp8_; - DataView* _tmp9_; - gboolean _tmp10_ = FALSE; - DataView* _tmp11_; - LibraryPhoto* photo = NULL; - DataView* _tmp15_; - DataSource* _tmp16_; - LibraryPhoto* _tmp17_; - LibraryPhoto* _tmp18_; - LibraryPhoto* _tmp19_; -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = _object_it; -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" - break; -#line 3356 "CollectionPage.c" - } -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = _object_it; -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" - object = (DataObject*) _tmp7_; -#line 291 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = object; -#line 291 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_VIEW, DataView)); -#line 291 "/home/jens/Source/shotwell/src/CollectionPage.vala" - view = _tmp9_; -#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = view; -#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!data_view_is_selected (_tmp11_)) { -#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = TRUE; -#line 3376 "CollectionPage.c" - } else { - DataView* _tmp12_; - gpointer _tmp13_; - Alteration* _tmp14_; -#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp12_ = view; -#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp13_ = gee_map_get (altered, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject)); -#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp14_ = (Alteration*) _tmp13_; -#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = !alteration_has_subject (_tmp14_, "image"); -#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _alteration_unref0 (_tmp14_); -#line 3391 "CollectionPage.c" - } -#line 293 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp10_) { -#line 294 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (view); -#line 294 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (object); -#line 294 "/home/jens/Source/shotwell/src/CollectionPage.vala" - continue; -#line 3401 "CollectionPage.c" - } -#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp15_ = view; -#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp16_ = data_view_get_source (_tmp15_); -#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp17_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp16_) : NULL; -#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp17_ == NULL) { -#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp16_); -#line 3413 "CollectionPage.c" - } -#line 296 "/home/jens/Source/shotwell/src/CollectionPage.vala" - photo = _tmp17_; -#line 297 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp18_ = photo; -#line 297 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp18_ == NULL) { -#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (view); -#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (object); -#line 298 "/home/jens/Source/shotwell/src/CollectionPage.vala" - continue; -#line 3429 "CollectionPage.c" - } -#line 302 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", collection_page_can_revert_selected (self)); -#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp19_ = photo; -#line 303 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CopyColorAdjustments", photo_has_color_adjustments (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_PHOTO, Photo))); -#line 305 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 305 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (view); -#line 305 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (object); -#line 305 "/home/jens/Source/shotwell/src/CollectionPage.vala" - break; -#line 3445 "CollectionPage.c" - } -#line 290 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_object_it); -#line 3449 "CollectionPage.c" - } -} - - -static void -collection_page_on_print (CollectionPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; -#line 309 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) > 0; -#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 310 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp2_) { -#line 3472 "CollectionPage.c" - PrintManager* _tmp3_; - PrintManager* _tmp4_; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; - GeeList* _tmp7_; - GeeCollection* _tmp8_; -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = print_manager_get_instance (); -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = _tmp3_; -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = _tmp5_; -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = view_collection_get_selected_sources_of_type (_tmp6_, TYPE_PHOTO); -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection); -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" - print_manager_spool_photo (_tmp4_, _tmp8_); -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp8_); -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp6_); -#line 311 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _print_manager_unref0 (_tmp4_); -#line 3499 "CollectionPage.c" - } -} - - -static void -collection_page_on_external_app_changed (CollectionPage* self) -{ - gint selected_count = 0; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gint _tmp2_; - gboolean _tmp3_ = FALSE; - gint _tmp4_; -#line 316 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 317 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 317 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 317 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_); -#line 317 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 317 "/home/jens/Source/shotwell/src/CollectionPage.vala" - selected_count = _tmp2_; -#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = selected_count; -#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp4_ == 1) { -#line 3529 "CollectionPage.c" - ConfigFacade* _tmp5_; - ConfigFacade* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = config_facade_get_instance (); -#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = _tmp5_; -#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = _tmp7_; -#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = g_strcmp0 (_tmp8_, "") != 0; -#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_free0 (_tmp8_); -#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp6_); -#line 3548 "CollectionPage.c" - } else { -#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = FALSE; -#line 3552 "CollectionPage.c" - } -#line 319 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp3_); -#line 3556 "CollectionPage.c" -} - - -static void -collection_page_real_on_item_activated (CheckerboardPage* base, - CheckerboardItem* item, - CheckerboardPageActivator activator, - CheckerboardPageKeyboardModifiers* modifiers) -{ - CollectionPage * self; - Thumbnail* thumbnail = NULL; - Thumbnail* _tmp0_; - Thumbnail* _tmp1_; - MediaSource* _tmp2_; - MediaSource* _tmp3_; - gboolean _tmp4_; - LibraryPhoto* photo = NULL; - Thumbnail* _tmp5_; - MediaSource* _tmp6_; - LibraryPhoto* _tmp7_; - LibraryPhoto* _tmp8_; - LibraryPhoto* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; -#line 328 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 328 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (item)); -#line 328 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (modifiers != NULL); -#line 330 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (item, TYPE_THUMBNAIL, Thumbnail)); -#line 330 "/home/jens/Source/shotwell/src/CollectionPage.vala" - thumbnail = _tmp0_; -#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = thumbnail; -#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = thumbnail_get_media_source (_tmp1_); -#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = _tmp2_; -#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TYPE_VIDEO); -#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp3_); -#line 335 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp4_) { -#line 336 "/home/jens/Source/shotwell/src/CollectionPage.vala" - media_page_on_play_video (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage)); -#line 337 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (thumbnail); -#line 337 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 3609 "CollectionPage.c" - } -#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = thumbnail; -#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = thumbnail_get_media_source (_tmp5_); -#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp6_) : NULL; -#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp7_ == NULL) { -#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp6_); -#line 3621 "CollectionPage.c" - } -#line 340 "/home/jens/Source/shotwell/src/CollectionPage.vala" - photo = _tmp7_; -#line 341 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = photo; -#line 341 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp8_ == NULL) { -#line 342 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 342 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (thumbnail); -#line 342 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 3635 "CollectionPage.c" - } -#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = photo; -#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject)); -#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = _tmp10_; -#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_debug ("CollectionPage.vala:345: activating %s", _tmp11_); -#line 345 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_free0 (_tmp11_); -#line 347 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (activator == CHECKERBOARD_PAGE_ACTIVATOR_MOUSE) { -#line 3649 "CollectionPage.c" - CheckerboardPageKeyboardModifiers _tmp12_; - gboolean _tmp13_; -#line 348 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp12_ = *modifiers; -#line 348 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp13_ = _tmp12_.super_pressed; -#line 348 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp13_) { -#line 349 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_external_edit (self); -#line 3660 "CollectionPage.c" - } else { - LibraryWindow* _tmp14_; - LibraryWindow* _tmp15_; - LibraryPhoto* _tmp16_; -#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp14_ = library_window_get_app (); -#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp15_ = _tmp14_; -#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp16_ = photo; -#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala" - library_window_switch_to_photo_page (_tmp15_, self, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PHOTO, Photo)); -#line 351 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp15_); -#line 3675 "CollectionPage.c" - } - } else { -#line 352 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (activator == CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD) { -#line 3680 "CollectionPage.c" - gboolean _tmp17_ = FALSE; - CheckerboardPageKeyboardModifiers _tmp18_; - gboolean _tmp19_; -#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp18_ = *modifiers; -#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp19_ = _tmp18_.shift_pressed; -#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!_tmp19_) { -#line 3690 "CollectionPage.c" - CheckerboardPageKeyboardModifiers _tmp20_; - gboolean _tmp21_; -#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp20_ = *modifiers; -#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp21_ = _tmp20_.ctrl_pressed; -#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp17_ = !_tmp21_; -#line 3699 "CollectionPage.c" - } else { -#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp17_ = FALSE; -#line 3703 "CollectionPage.c" - } -#line 353 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp17_) { -#line 3707 "CollectionPage.c" - LibraryWindow* _tmp22_; - LibraryWindow* _tmp23_; - LibraryPhoto* _tmp24_; -#line 354 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp22_ = library_window_get_app (); -#line 354 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp23_ = _tmp22_; -#line 354 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp24_ = photo; -#line 354 "/home/jens/Source/shotwell/src/CollectionPage.vala" - library_window_switch_to_photo_page (_tmp23_, self, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_PHOTO, Photo)); -#line 354 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp23_); -#line 3721 "CollectionPage.c" - } - } - } -#line 328 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 328 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (thumbnail); -#line 3729 "CollectionPage.c" -} - - -static gboolean -collection_page_real_on_app_key_pressed (Page* base, - GdkEventKey* event) -{ - CollectionPage * self; - gboolean result = FALSE; - gboolean handled = FALSE; - guint _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - GQuark _tmp4_ = 0U; -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - static GQuark _tmp3_label0 = 0; -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - static GQuark _tmp3_label1 = 0; -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - static GQuark _tmp3_label2 = 0; -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - static GQuark _tmp3_label3 = 0; -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - static GQuark _tmp3_label4 = 0; -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - static GQuark _tmp3_label5 = 0; -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - static GQuark _tmp3_label6 = 0; -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - static GQuark _tmp3_label7 = 0; -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - static GQuark _tmp3_label8 = 0; -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - static GQuark _tmp3_label9 = 0; -#line 3764 "CollectionPage.c" - gboolean _tmp6_ = FALSE; - gboolean _tmp7_; -#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 358 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 359 "/home/jens/Source/shotwell/src/CollectionPage.vala" - handled = TRUE; -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = event->keyval; -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = gdk_keyval_name (_tmp0_); -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = _tmp1_; -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_); -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if ((((((((_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("Page_Up")))) || (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("KP_Page_Up"))))) || (_tmp4_ == ((0 != _tmp3_label2) ? _tmp3_label2 : (_tmp3_label2 = g_quark_from_static_string ("Page_Down"))))) || (_tmp4_ == ((0 != _tmp3_label3) ? _tmp3_label3 : (_tmp3_label3 = g_quark_from_static_string ("KP_Page_Down"))))) || (_tmp4_ == ((0 != _tmp3_label4) ? _tmp3_label4 : (_tmp3_label4 = g_quark_from_static_string ("Home"))))) || (_tmp4_ == ((0 != _tmp3_label5) ? _tmp3_label5 : (_tmp3_label5 = g_quark_from_static_string ("KP_Home"))))) || (_tmp4_ == ((0 != _tmp3_label6) ? _tmp3_label6 : (_tmp3_label6 = g_quark_from_static_string ("End"))))) || (_tmp4_ == ((0 != _tmp3_label7) ? _tmp3_label7 : (_tmp3_label7 = g_quark_from_static_string ("KP_End"))))) { -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - switch (0) { -#line 3785 "CollectionPage.c" - default: - { - gboolean _tmp5_ = FALSE; -#line 369 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "key-press-event", event, &_tmp5_); -#line 370 "/home/jens/Source/shotwell/src/CollectionPage.vala" - break; -#line 3793 "CollectionPage.c" - } - } - } else if (_tmp4_ == ((0 != _tmp3_label8) ? _tmp3_label8 : (_tmp3_label8 = g_quark_from_static_string ("bracketright")))) { -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - switch (0) { -#line 3799 "CollectionPage.c" - default: - { -#line 373 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise"); -#line 374 "/home/jens/Source/shotwell/src/CollectionPage.vala" - break; -#line 3806 "CollectionPage.c" - } - } - } else if (_tmp4_ == ((0 != _tmp3_label9) ? _tmp3_label9 : (_tmp3_label9 = g_quark_from_static_string ("bracketleft")))) { -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - switch (0) { -#line 3812 "CollectionPage.c" - default: - { -#line 377 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise"); -#line 378 "/home/jens/Source/shotwell/src/CollectionPage.vala" - break; -#line 3819 "CollectionPage.c" - } - } - } else { -#line 360 "/home/jens/Source/shotwell/src/CollectionPage.vala" - switch (0) { -#line 3825 "CollectionPage.c" - default: - { -#line 381 "/home/jens/Source/shotwell/src/CollectionPage.vala" - handled = FALSE; -#line 382 "/home/jens/Source/shotwell/src/CollectionPage.vala" - break; -#line 3832 "CollectionPage.c" - } - } - } -#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = handled; -#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp7_) { -#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = TRUE; -#line 3842 "CollectionPage.c" - } else { -#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = PAGE_CLASS (collection_page_parent_class)->on_app_key_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), event); -#line 3846 "CollectionPage.c" - } -#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = _tmp6_; -#line 385 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 3852 "CollectionPage.c" -} - - -static void -_collection_page_on_export_completed_exporter_completion_callback (Exporter* exporter, - gboolean is_cancelled, - gpointer self) -{ -#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_on_export_completed ((CollectionPage*) self); -#line 3863 "CollectionPage.c" -} - - -static void -collection_page_real_on_export (MediaPage* base) -{ - CollectionPage * self; - ExporterUI* _tmp0_; - GeeCollection* export_list = NULL; - ViewCollection* _tmp1_; - ViewCollection* _tmp2_; - GeeList* _tmp3_; - GeeCollection* _tmp4_; - GeeCollection* _tmp5_; - gint _tmp6_; - gint _tmp7_; - gboolean has_some_photos = FALSE; - gboolean has_some_videos = FALSE; - gboolean _tmp8_ = FALSE; - gboolean _tmp9_; - gboolean _tmp11_; - gchar* title = NULL; - gboolean _tmp14_; - ExportDialog* export_dialog = NULL; - const gchar* _tmp23_; - ExportDialog* _tmp24_; - ExportFormatParameters _tmp25_ = {0}; - gboolean _tmp26_; - ExportFormatParameters export_params = {0}; - gint scale = 0; - ScaleConstraint constraint = 0; - ExportDialog* _tmp29_; - gint _tmp30_ = 0; - ScaleConstraint _tmp31_ = 0; - gboolean _tmp32_; - Scaling scaling = {0}; - ScaleConstraint _tmp33_; - gint _tmp34_; - Scaling _tmp35_ = {0}; - GeeCollection* _tmp36_; - gint _tmp37_; - gint _tmp38_; - GFile* export_dir = NULL; - const gchar* _tmp71_; - GFile* _tmp72_; - GFile* _tmp73_; - GeeCollection* _tmp74_; - GFile* _tmp75_; - Scaling _tmp76_; - ExportFormatParameters _tmp77_; - Exporter* _tmp78_; - Exporter* _tmp79_; - ExporterUI* _tmp80_; - ExporterUI* _tmp81_; - GError * _inner_error_ = NULL; -#line 388 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 389 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = self->priv->exporter; -#line 389 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp0_ != NULL) { -#line 390 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 3927 "CollectionPage.c" - } -#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = _tmp1_; -#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = view_collection_get_selected_sources (_tmp2_); -#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection); -#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp2_); -#line 392 "/home/jens/Source/shotwell/src/CollectionPage.vala" - export_list = _tmp4_; -#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = export_list; -#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = gee_collection_get_size (_tmp5_); -#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = _tmp6_; -#line 394 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp7_ == 0) { -#line 395 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (export_list); -#line 395 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 3953 "CollectionPage.c" - } -#line 397 "/home/jens/Source/shotwell/src/CollectionPage.vala" - has_some_photos = collection_page_selection_has_photo (self); -#line 398 "/home/jens/Source/shotwell/src/CollectionPage.vala" - has_some_videos = collection_page_selection_has_video (self); -#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = has_some_photos; -#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp9_) { -#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = TRUE; -#line 3965 "CollectionPage.c" - } else { - gboolean _tmp10_; -#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = has_some_videos; -#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = _tmp10_; -#line 3972 "CollectionPage.c" - } -#line 399 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _vala_assert (_tmp8_, "has_some_photos || has_some_videos"); -#line 403 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = has_some_photos; -#line 403 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!_tmp11_) { -#line 3980 "CollectionPage.c" - GeeCollection* _tmp12_; - ExporterUI* _tmp13_; -#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp12_ = export_list; -#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp13_ = video_export_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), _collection_page_on_export_completed_exporter_completion_callback, self, FALSE); -#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _exporter_ui_unref0 (self->priv->exporter); -#line 404 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self->priv->exporter = _tmp13_; -#line 405 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (export_list); -#line 405 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 3995 "CollectionPage.c" - } -#line 408 "/home/jens/Source/shotwell/src/CollectionPage.vala" - title = NULL; -#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp14_ = has_some_videos; -#line 409 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp14_) { -#line 4003 "CollectionPage.c" - GeeCollection* _tmp15_; - gint _tmp16_; - gint _tmp17_; - gchar* _tmp18_; -#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp15_ = export_list; -#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp16_ = gee_collection_get_size (_tmp15_); -#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp17_ = _tmp16_; -#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp18_ = g_strdup (ngettext ("Export Photo/Video", "Export Photos/Videos", (gulong) _tmp17_)); -#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_free0 (title); -#line 410 "/home/jens/Source/shotwell/src/CollectionPage.vala" - title = _tmp18_; -#line 4020 "CollectionPage.c" - } else { - GeeCollection* _tmp19_; - gint _tmp20_; - gint _tmp21_; - gchar* _tmp22_; -#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp19_ = export_list; -#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp20_ = gee_collection_get_size (_tmp19_); -#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp21_ = _tmp20_; -#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp22_ = g_strdup (ngettext ("Export Photo", "Export Photos", (gulong) _tmp21_)); -#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_free0 (title); -#line 412 "/home/jens/Source/shotwell/src/CollectionPage.vala" - title = _tmp22_; -#line 4038 "CollectionPage.c" - } -#line 413 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp23_ = title; -#line 413 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp24_ = export_dialog_new (_tmp23_); -#line 413 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_object_ref_sink (_tmp24_); -#line 413 "/home/jens/Source/shotwell/src/CollectionPage.vala" - export_dialog = _tmp24_; -#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp26_ = has_some_videos; -#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp26_) { -#line 4052 "CollectionPage.c" - ExportFormatParameters _tmp27_ = {0}; -#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala" - export_format_parameters_current (&_tmp27_); -#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp25_ = _tmp27_; -#line 4058 "CollectionPage.c" - } else { - ExportFormatParameters _tmp28_ = {0}; -#line 424 "/home/jens/Source/shotwell/src/CollectionPage.vala" - export_format_parameters_last (&_tmp28_); -#line 424 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp25_ = _tmp28_; -#line 4065 "CollectionPage.c" - } -#line 423 "/home/jens/Source/shotwell/src/CollectionPage.vala" - export_params = _tmp25_; -#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp29_ = export_dialog; -#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp32_ = export_dialog_execute (_tmp29_, &_tmp30_, &_tmp31_, &export_params); -#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" - scale = _tmp30_; -#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" - constraint = _tmp31_; -#line 428 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!_tmp32_) { -#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (export_dialog); -#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_free0 (title); -#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (export_list); -#line 429 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 4087 "CollectionPage.c" - } -#line 431 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp33_ = constraint; -#line 431 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp34_ = scale; -#line 431 "/home/jens/Source/shotwell/src/CollectionPage.vala" - scaling_for_constraint (_tmp33_, _tmp34_, FALSE, &_tmp35_); -#line 431 "/home/jens/Source/shotwell/src/CollectionPage.vala" - scaling = _tmp35_; -#line 434 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp36_ = export_list; -#line 434 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp37_ = gee_collection_get_size (_tmp36_); -#line 434 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp38_ = _tmp37_; -#line 434 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp38_ == 1) { -#line 4105 "CollectionPage.c" - LibraryPhoto* photo = NULL; - GFile* save_as = NULL; - LibraryPhoto* _tmp46_; - ExportFormatParameters _tmp47_; - gchar* _tmp48_; - gchar* _tmp49_; - GFile* _tmp50_; - GFile* _tmp51_; - GFile* _tmp52_; -#line 435 "/home/jens/Source/shotwell/src/CollectionPage.vala" - photo = NULL; -#line 4117 "CollectionPage.c" - { - GeeIterator* _p_it = NULL; - GeeCollection* _tmp39_; - GeeIterator* _tmp40_; -#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp39_ = export_list; -#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp40_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection), GEE_TYPE_ITERABLE, GeeIterable)); -#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _p_it = _tmp40_; -#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" - while (TRUE) { -#line 4130 "CollectionPage.c" - GeeIterator* _tmp41_; - LibraryPhoto* p = NULL; - GeeIterator* _tmp42_; - gpointer _tmp43_; - LibraryPhoto* _tmp44_; - LibraryPhoto* _tmp45_; -#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp41_ = _p_it; -#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!gee_iterator_next (_tmp41_)) { -#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" - break; -#line 4143 "CollectionPage.c" - } -#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp42_ = _p_it; -#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp43_ = gee_iterator_get (_tmp42_); -#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" - p = (LibraryPhoto*) _tmp43_; -#line 437 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp44_ = p; -#line 437 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp45_ = _g_object_ref0 (_tmp44_); -#line 437 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 437 "/home/jens/Source/shotwell/src/CollectionPage.vala" - photo = _tmp45_; -#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (p); -#line 438 "/home/jens/Source/shotwell/src/CollectionPage.vala" - break; -#line 4163 "CollectionPage.c" - } -#line 436 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_p_it); -#line 4167 "CollectionPage.c" - } -#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp46_ = photo; -#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp47_ = export_params; -#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp48_ = photo_get_export_basename_for_parameters (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_PHOTO, Photo), &_tmp47_); -#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp49_ = _tmp48_; -#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp50_ = export_ui_choose_file (_tmp49_); -#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp51_ = _tmp50_; -#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_free0 (_tmp49_); -#line 441 "/home/jens/Source/shotwell/src/CollectionPage.vala" - save_as = _tmp51_; -#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp52_ = save_as; -#line 443 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp52_ == NULL) { -#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (save_as); -#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (export_dialog); -#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_free0 (title); -#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (export_list); -#line 444 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 4201 "CollectionPage.c" - } - { - AppWindow* _tmp53_; - AppWindow* _tmp54_; - LibraryPhoto* _tmp55_; - GFile* _tmp56_; - Scaling _tmp57_; - ExportFormatParameters _tmp58_; - JpegQuality _tmp59_; - LibraryPhoto* _tmp60_; - ExportFormatParameters _tmp61_; - ExportFormatParameters _tmp62_; - ExportFormatMode _tmp63_; - ExportFormatParameters _tmp64_; - gboolean _tmp65_; - AppWindow* _tmp66_; - AppWindow* _tmp67_; -#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp53_ = app_window_get_instance (); -#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp54_ = _tmp53_; -#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, TYPE_PAGE_WINDOW, PageWindow)); -#line 447 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp54_); -#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp55_ = photo; -#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp56_ = save_as; -#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp57_ = scaling; -#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp58_ = export_params; -#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp59_ = _tmp58_.quality; -#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp60_ = photo; -#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp61_ = export_params; -#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp62_ = export_params; -#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp63_ = _tmp62_.mode; -#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp64_ = export_params; -#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp65_ = _tmp64_.export_metadata; -#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala" - photo_export (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_PHOTO, Photo), _tmp56_, &_tmp57_, _tmp59_, photo_get_export_format_for_parameters (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_PHOTO, Photo), &_tmp61_), _tmp63_ == EXPORT_FORMAT_MODE_UNMODIFIED, _tmp65_, &_inner_error_); -#line 448 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4253 "CollectionPage.c" - goto __catch245_g_error; - } -#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp66_ = app_window_get_instance (); -#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp67_ = _tmp66_; -#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, TYPE_PAGE_WINDOW, PageWindow)); -#line 451 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp67_); -#line 4264 "CollectionPage.c" - } - goto __finally245; - __catch245_g_error: - { - GError* err = NULL; - AppWindow* _tmp68_; - AppWindow* _tmp69_; - GFile* _tmp70_; -#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" - err = _inner_error_; -#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _inner_error_ = NULL; -#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp68_ = app_window_get_instance (); -#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp69_ = _tmp68_; -#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, TYPE_PAGE_WINDOW, PageWindow)); -#line 453 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp69_); -#line 454 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp70_ = save_as; -#line 454 "/home/jens/Source/shotwell/src/CollectionPage.vala" - export_error_dialog (_tmp70_, FALSE); -#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_error_free0 (err); -#line 4291 "CollectionPage.c" - } - __finally245: -#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (save_as); -#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (export_dialog); -#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_free0 (title); -#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (export_list); -#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_clear_error (&_inner_error_); -#line 446 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 4312 "CollectionPage.c" - } -#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (save_as); -#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (export_dialog); -#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_free0 (title); -#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (export_list); -#line 457 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 4326 "CollectionPage.c" - } -#line 461 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp71_ = title; -#line 461 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp72_ = export_ui_choose_dir (_tmp71_); -#line 461 "/home/jens/Source/shotwell/src/CollectionPage.vala" - export_dir = _tmp72_; -#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp73_ = export_dir; -#line 462 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp73_ == NULL) { -#line 463 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (export_dir); -#line 463 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (export_dialog); -#line 463 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_free0 (title); -#line 463 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (export_list); -#line 463 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 4348 "CollectionPage.c" - } -#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp74_ = export_list; -#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp75_ = export_dir; -#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp76_ = scaling; -#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp77_ = export_params; -#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp78_ = exporter_new (_tmp74_, _tmp75_, &_tmp76_, &_tmp77_, FALSE); -#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp79_ = _tmp78_; -#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp80_ = exporter_ui_new (_tmp79_); -#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _exporter_ui_unref0 (self->priv->exporter); -#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self->priv->exporter = _tmp80_; -#line 465 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp79_); -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp81_ = self->priv->exporter; -#line 466 "/home/jens/Source/shotwell/src/CollectionPage.vala" - exporter_ui_export (_tmp81_, _collection_page_on_export_completed_exporter_completion_callback, self); -#line 388 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (export_dir); -#line 388 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (export_dialog); -#line 388 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_free0 (title); -#line 388 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (export_list); -#line 4382 "CollectionPage.c" -} - - -static void -collection_page_on_export_completed (CollectionPage* self) -{ -#line 469 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _exporter_ui_unref0 (self->priv->exporter); -#line 470 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self->priv->exporter = NULL; -#line 4395 "CollectionPage.c" -} - - -static gboolean -collection_page_can_revert_selected (CollectionPage* self) -{ - gboolean result = FALSE; -#line 473 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE); -#line 4405 "CollectionPage.c" - { - GeeList* _source_list = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - GeeList* _tmp2_; - GeeList* _tmp3_; - gint _source_size = 0; - GeeList* _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _source_index = 0; -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_sources (_tmp1_); -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = _tmp2_; -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _source_list = _tmp3_; -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = _source_list; -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = _tmp5_; -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _source_size = _tmp6_; -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _source_index = -1; -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - while (TRUE) { -#line 4441 "CollectionPage.c" - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - DataSource* source = NULL; - GeeList* _tmp10_; - gint _tmp11_; - gpointer _tmp12_; - LibraryPhoto* photo = NULL; - DataSource* _tmp13_; - LibraryPhoto* _tmp14_; - gboolean _tmp15_ = FALSE; - LibraryPhoto* _tmp16_; -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = _source_index; -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _source_index = _tmp7_ + 1; -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = _source_index; -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = _source_size; -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!(_tmp8_ < _tmp9_)) { -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - break; -#line 4466 "CollectionPage.c" - } -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = _source_list; -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = _source_index; -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp12_ = gee_list_get (_tmp10_, _tmp11_); -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - source = (DataSource*) _tmp12_; -#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp13_ = source; -#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp13_) : NULL); -#line 475 "/home/jens/Source/shotwell/src/CollectionPage.vala" - photo = _tmp14_; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp16_ = photo; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp16_ != NULL) { -#line 4486 "CollectionPage.c" - gboolean _tmp17_ = FALSE; - LibraryPhoto* _tmp18_; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp18_ = photo; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (photo_has_transformations (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO, Photo))) { -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp17_ = TRUE; -#line 4495 "CollectionPage.c" - } else { - LibraryPhoto* _tmp19_; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp19_ = photo; -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp17_ = photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_PHOTO, Photo)); -#line 4502 "CollectionPage.c" - } -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp15_ = _tmp17_; -#line 4506 "CollectionPage.c" - } else { -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp15_ = FALSE; -#line 4510 "CollectionPage.c" - } -#line 476 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp15_) { -#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = TRUE; -#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (source); -#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_source_list); -#line 477 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 4524 "CollectionPage.c" - } -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (source); -#line 4530 "CollectionPage.c" - } -#line 474 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_source_list); -#line 4534 "CollectionPage.c" - } -#line 480 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = FALSE; -#line 480 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 4540 "CollectionPage.c" -} - - -static gboolean -collection_page_can_revert_editable_selected (CollectionPage* self) -{ - gboolean result = FALSE; -#line 483 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_val_if_fail (IS_COLLECTION_PAGE (self), FALSE); -#line 4550 "CollectionPage.c" - { - GeeList* _source_list = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - GeeList* _tmp2_; - GeeList* _tmp3_; - gint _source_size = 0; - GeeList* _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _source_index = 0; -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_sources (_tmp1_); -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = _tmp2_; -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _source_list = _tmp3_; -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = _source_list; -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = _tmp5_; -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _source_size = _tmp6_; -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _source_index = -1; -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - while (TRUE) { -#line 4586 "CollectionPage.c" - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - DataSource* source = NULL; - GeeList* _tmp10_; - gint _tmp11_; - gpointer _tmp12_; - LibraryPhoto* photo = NULL; - DataSource* _tmp13_; - LibraryPhoto* _tmp14_; - gboolean _tmp15_ = FALSE; - LibraryPhoto* _tmp16_; -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = _source_index; -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _source_index = _tmp7_ + 1; -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = _source_index; -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = _source_size; -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!(_tmp8_ < _tmp9_)) { -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - break; -#line 4611 "CollectionPage.c" - } -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = _source_list; -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = _source_index; -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp12_ = gee_list_get (_tmp10_, _tmp11_); -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - source = (DataSource*) _tmp12_; -#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp13_ = source; -#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp13_) : NULL); -#line 485 "/home/jens/Source/shotwell/src/CollectionPage.vala" - photo = _tmp14_; -#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp16_ = photo; -#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp16_ != NULL) { -#line 4631 "CollectionPage.c" - LibraryPhoto* _tmp17_; -#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp17_ = photo; -#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp15_ = photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PHOTO, Photo)); -#line 4637 "CollectionPage.c" - } else { -#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp15_ = FALSE; -#line 4641 "CollectionPage.c" - } -#line 486 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp15_) { -#line 487 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = TRUE; -#line 487 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 487 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (source); -#line 487 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_source_list); -#line 487 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 4655 "CollectionPage.c" - } -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (source); -#line 4661 "CollectionPage.c" - } -#line 484 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_source_list); -#line 4665 "CollectionPage.c" - } -#line 490 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = FALSE; -#line 490 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 4671 "CollectionPage.c" -} - - -static void -collection_page_on_rotate_clockwise (CollectionPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - RotateMultipleCommand* command = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp6_; - RotateMultipleCommand* _tmp7_; - RotateMultipleCommand* _tmp8_; - CommandManager* _tmp9_; - CommandManager* _tmp10_; - RotateMultipleCommand* _tmp11_; -#line 493 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 494 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 494 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 494 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 494 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 494 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp2_) { -#line 495 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 4705 "CollectionPage.c" - } -#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = _tmp3_; -#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = view_collection_get_selected (_tmp4_); -#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = _tmp5_; -#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_CLOCKWISE, RESOURCES_ROTATE_CW_FULL_LABEL, RESOURCES_ROTATE_CW_TOOLTIP, _ ("Rotating"), _ ("Undoing Rotate")); -#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = _tmp7_; -#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp6_); -#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp4_); -#line 497 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command = _tmp8_; -#line 500 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 500 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = _tmp9_; -#line 500 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = command; -#line 500 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command)); -#line 500 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _command_manager_unref0 (_tmp10_); -#line 493 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (command); -#line 4737 "CollectionPage.c" -} - - -static void -collection_page_on_publish (CollectionPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; -#line 503 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) > 0; -#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 504 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp2_) { -#line 4759 "CollectionPage.c" - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GeeList* _tmp5_; - GeeCollection* _tmp6_; -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = _tmp3_; -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = view_collection_get_selected_sources (_tmp4_); -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection); -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" - publishing_ui_publishing_dialog_go (_tmp6_); -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp6_); -#line 505 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp4_); -#line 4778 "CollectionPage.c" - } -} - - -static void -collection_page_on_rotate_counterclockwise (CollectionPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - RotateMultipleCommand* command = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp6_; - RotateMultipleCommand* _tmp7_; - RotateMultipleCommand* _tmp8_; - CommandManager* _tmp9_; - CommandManager* _tmp10_; - RotateMultipleCommand* _tmp11_; -#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 510 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp2_) { -#line 511 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 4813 "CollectionPage.c" - } -#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = _tmp3_; -#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = view_collection_get_selected (_tmp4_); -#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = _tmp5_; -#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_COUNTERCLOCKWISE, RESOURCES_ROTATE_CCW_FULL_LABEL, RESOURCES_ROTATE_CCW_TOOLTIP, _ ("Rotating"), _ ("Undoing Rotate")); -#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = _tmp7_; -#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp6_); -#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp4_); -#line 513 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command = _tmp8_; -#line 516 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 516 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = _tmp9_; -#line 516 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = command; -#line 516 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command)); -#line 516 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _command_manager_unref0 (_tmp10_); -#line 509 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (command); -#line 4845 "CollectionPage.c" -} - - -static void -collection_page_on_flip_horizontally (CollectionPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - RotateMultipleCommand* command = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp6_; - RotateMultipleCommand* _tmp7_; - RotateMultipleCommand* _tmp8_; - CommandManager* _tmp9_; - CommandManager* _tmp10_; - RotateMultipleCommand* _tmp11_; -#line 519 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 520 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 520 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 520 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 520 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 520 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp2_) { -#line 521 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 4879 "CollectionPage.c" - } -#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = _tmp3_; -#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = view_collection_get_selected (_tmp4_); -#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = _tmp5_; -#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_MIRROR, RESOURCES_HFLIP_LABEL, "", _ ("Flipping Horizontally"), _ ("Undoing Flip Horizontally")); -#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = _tmp7_; -#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp6_); -#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp4_); -#line 523 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command = _tmp8_; -#line 526 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 526 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = _tmp9_; -#line 526 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = command; -#line 526 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command)); -#line 526 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _command_manager_unref0 (_tmp10_); -#line 519 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (command); -#line 4911 "CollectionPage.c" -} - - -static void -collection_page_on_flip_vertically (CollectionPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - RotateMultipleCommand* command = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp6_; - RotateMultipleCommand* _tmp7_; - RotateMultipleCommand* _tmp8_; - CommandManager* _tmp9_; - CommandManager* _tmp10_; - RotateMultipleCommand* _tmp11_; -#line 529 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 530 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 530 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 530 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 530 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 530 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp2_) { -#line 531 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 4945 "CollectionPage.c" - } -#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = _tmp3_; -#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = view_collection_get_selected (_tmp4_); -#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = _tmp5_; -#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = rotate_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), ROTATION_UPSIDE_DOWN, RESOURCES_VFLIP_LABEL, "", _ ("Flipping Vertically"), _ ("Undoing Flip Vertically")); -#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = _tmp7_; -#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp6_); -#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp4_); -#line 533 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command = _tmp8_; -#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = _tmp9_; -#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = command; -#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command)); -#line 536 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _command_manager_unref0 (_tmp10_); -#line 529 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (command); -#line 4977 "CollectionPage.c" -} - - -static void -collection_page_on_revert (CollectionPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - RevertMultipleCommand* command = NULL; - ViewCollection* _tmp24_; - ViewCollection* _tmp25_; - GeeList* _tmp26_; - GeeList* _tmp27_; - RevertMultipleCommand* _tmp28_; - RevertMultipleCommand* _tmp29_; - CommandManager* _tmp30_; - CommandManager* _tmp31_; - RevertMultipleCommand* _tmp32_; -#line 539 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 540 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 540 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 540 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 540 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 540 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp2_) { -#line 541 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 5011 "CollectionPage.c" - } -#line 543 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (collection_page_can_revert_editable_selected (self)) { -#line 5015 "CollectionPage.c" - AppWindow* _tmp3_; - AppWindow* _tmp4_; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; - GeeList* _tmp7_; - GeeCollection* _tmp8_; - gboolean _tmp9_; -#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = app_window_get_instance (); -#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = _tmp3_; -#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = _tmp5_; -#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = view_collection_get_selected_sources (_tmp6_); -#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection); -#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = !revert_editable_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow), _tmp8_); -#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp8_); -#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp6_); -#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp4_); -#line 544 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp9_) { -#line 546 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 5047 "CollectionPage.c" - } - { - GeeList* _object_list = NULL; - ViewCollection* _tmp10_; - ViewCollection* _tmp11_; - GeeList* _tmp12_; - GeeList* _tmp13_; - gint _object_size = 0; - GeeList* _tmp14_; - gint _tmp15_; - gint _tmp16_; - gint _object_index = 0; -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = _tmp10_; -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp12_ = view_collection_get_selected_sources (_tmp11_); -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp13_ = _tmp12_; -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp11_); -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _object_list = _tmp13_; -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp14_ = _object_list; -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp16_ = _tmp15_; -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _object_size = _tmp16_; -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _object_index = -1; -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - while (TRUE) { -#line 5084 "CollectionPage.c" - gint _tmp17_; - gint _tmp18_; - gint _tmp19_; - DataObject* object = NULL; - GeeList* _tmp20_; - gint _tmp21_; - gpointer _tmp22_; - DataObject* _tmp23_; -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp17_ = _object_index; -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _object_index = _tmp17_ + 1; -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp18_ = _object_index; -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp19_ = _object_size; -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!(_tmp18_ < _tmp19_)) { -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - break; -#line 5105 "CollectionPage.c" - } -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp20_ = _object_list; -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp21_ = _object_index; -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp22_ = gee_list_get (_tmp20_, _tmp21_); -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - object = G_TYPE_CHECK_INSTANCE_CAST ((DataSource*) _tmp22_, TYPE_DATA_OBJECT, DataObject); -#line 550 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp23_ = object; -#line 550 "/home/jens/Source/shotwell/src/CollectionPage.vala" - photo_revert_to_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_PHOTO, Photo), TRUE); -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (object); -#line 5121 "CollectionPage.c" - } -#line 549 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_object_list); -#line 5125 "CollectionPage.c" - } - } -#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp24_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp25_ = _tmp24_; -#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp26_ = view_collection_get_selected (_tmp25_); -#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp27_ = _tmp26_; -#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp28_ = revert_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp29_ = _tmp28_; -#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp27_); -#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp25_); -#line 553 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command = _tmp29_; -#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp30_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp31_ = _tmp30_; -#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp32_ = command; -#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command_manager_execute (_tmp31_, G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_COMMAND, Command)); -#line 554 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _command_manager_unref0 (_tmp31_); -#line 539 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (command); -#line 5158 "CollectionPage.c" -} - - -void -collection_page_on_copy_adjustments (CollectionPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - Photo* photo = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - DataView* _tmp5_; - DataView* _tmp6_; - DataSource* _tmp7_; - Photo* _tmp8_; - Photo* _tmp9_; - PixelTransformationBundle* _tmp10_; - PixelTransformationBundle* _tmp11_; -#line 557 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1; -#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 558 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp2_) { -#line 559 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 5192 "CollectionPage.c" - } -#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = _tmp3_; -#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = view_collection_get_selected_at (_tmp4_, 0); -#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = _tmp5_; -#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = data_view_get_source (_tmp6_); -#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO, Photo); -#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp6_); -#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp4_); -#line 560 "/home/jens/Source/shotwell/src/CollectionPage.vala" - photo = _tmp8_; -#line 561 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = photo; -#line 561 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = photo_get_color_adjustments (_tmp9_); -#line 561 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = _tmp10_; -#line 561 "/home/jens/Source/shotwell/src/CollectionPage.vala" - pixel_transformation_bundle_set_copied_color_adjustments (_tmp11_); -#line 561 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _pixel_transformation_bundle_unref0 (_tmp11_); -#line 562 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", TRUE); -#line 557 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 5226 "CollectionPage.c" -} - - -void -collection_page_on_paste_adjustments (CollectionPage* self) -{ - PixelTransformationBundle* copied_adjustments = NULL; - PixelTransformationBundle* _tmp0_; - gboolean _tmp1_ = FALSE; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; - gboolean _tmp4_; - AdjustColorsMultipleCommand* command = NULL; - ViewCollection* _tmp6_; - ViewCollection* _tmp7_; - GeeList* _tmp8_; - GeeList* _tmp9_; - PixelTransformationBundle* _tmp10_; - AdjustColorsMultipleCommand* _tmp11_; - AdjustColorsMultipleCommand* _tmp12_; - CommandManager* _tmp13_; - CommandManager* _tmp14_; - AdjustColorsMultipleCommand* _tmp15_; -#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = pixel_transformation_bundle_get_copied_color_adjustments (); -#line 566 "/home/jens/Source/shotwell/src/CollectionPage.vala" - copied_adjustments = _tmp0_; -#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = _tmp2_; -#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = view_collection_get_selected_count (_tmp3_) == 0; -#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp3_); -#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp4_) { -#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = TRUE; -#line 5268 "CollectionPage.c" - } else { - PixelTransformationBundle* _tmp5_; -#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = copied_adjustments; -#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp5_ == NULL; -#line 5275 "CollectionPage.c" - } -#line 567 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp1_) { -#line 568 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _pixel_transformation_bundle_unref0 (copied_adjustments); -#line 568 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 5283 "CollectionPage.c" - } -#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = _tmp6_; -#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = view_collection_get_selected (_tmp7_); -#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = _tmp8_; -#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = copied_adjustments; -#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = adjust_colors_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable), _tmp10_, RESOURCES_PASTE_ADJUSTMENTS_LABEL, RESOURCES_PASTE_ADJUSTMENTS_TOOLTIP); -#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp12_ = _tmp11_; -#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp9_); -#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp7_); -#line 570 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command = _tmp12_; -#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp13_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp14_ = _tmp13_; -#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp15_ = command; -#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command_manager_execute (_tmp14_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_COMMAND, Command)); -#line 572 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _command_manager_unref0 (_tmp14_); -#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (command); -#line 565 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _pixel_transformation_bundle_unref0 (copied_adjustments); -#line 5319 "CollectionPage.c" -} - - -static void -collection_page_on_enhance (CollectionPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - EnhanceMultipleCommand* command = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp6_; - EnhanceMultipleCommand* _tmp7_; - EnhanceMultipleCommand* _tmp8_; - CommandManager* _tmp9_; - CommandManager* _tmp10_; - EnhanceMultipleCommand* _tmp11_; -#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 576 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp2_) { -#line 577 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 5353 "CollectionPage.c" - } -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = _tmp3_; -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = view_collection_get_selected (_tmp4_); -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = _tmp5_; -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = enhance_multiple_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = _tmp7_; -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp6_); -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp4_); -#line 579 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command = _tmp8_; -#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = _tmp9_; -#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = command; -#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command)); -#line 580 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _command_manager_unref0 (_tmp10_); -#line 575 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (command); -#line 5385 "CollectionPage.c" -} - - -static void -collection_page_on_duplicate_photo (CollectionPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - DuplicateMultiplePhotosCommand* command = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp6_; - DuplicateMultiplePhotosCommand* _tmp7_; - DuplicateMultiplePhotosCommand* _tmp8_; - CommandManager* _tmp9_; - CommandManager* _tmp10_; - DuplicateMultiplePhotosCommand* _tmp11_; -#line 583 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 584 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp2_) { -#line 585 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 5419 "CollectionPage.c" - } -#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = _tmp3_; -#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = view_collection_get_selected (_tmp4_); -#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = _tmp5_; -#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = duplicate_multiple_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = _tmp7_; -#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp6_); -#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp4_); -#line 587 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command = _tmp8_; -#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = _tmp9_; -#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = command; -#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command)); -#line 589 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _command_manager_unref0 (_tmp10_); -#line 583 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (command); -#line 5451 "CollectionPage.c" -} - - -static void -collection_page_on_adjust_date_time (CollectionPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - gboolean selected_has_videos = FALSE; - gboolean only_videos_selected = FALSE; - Dateable* photo_source = NULL; - ViewCollection* _tmp20_; - ViewCollection* _tmp21_; - DataView* _tmp22_; - DataView* _tmp23_; - DataSource* _tmp24_; - Dateable* _tmp25_; - AdjustDateTimeDialog* dialog = NULL; - Dateable* _tmp26_; - ViewCollection* _tmp27_; - ViewCollection* _tmp28_; - gboolean _tmp29_; - gboolean _tmp30_; - AdjustDateTimeDialog* _tmp31_; - AdjustDateTimeDialog* _tmp32_; - gint64 time_shift = 0LL; - gboolean keep_relativity = FALSE; - gboolean modify_originals = FALSE; - AdjustDateTimeDialog* _tmp33_; - gint64 _tmp34_ = 0LL; - gboolean _tmp35_ = FALSE; - gboolean _tmp36_ = FALSE; - gboolean _tmp37_; -#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 593 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 593 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 593 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 593 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 593 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp2_) { -#line 594 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 5500 "CollectionPage.c" - } -#line 596 "/home/jens/Source/shotwell/src/CollectionPage.vala" - selected_has_videos = FALSE; -#line 597 "/home/jens/Source/shotwell/src/CollectionPage.vala" - only_videos_selected = TRUE; -#line 5506 "CollectionPage.c" - { - GeeList* _dv_list = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp6_; - gint _dv_size = 0; - GeeList* _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint _dv_index = 0; -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = _tmp3_; -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = view_collection_get_selected (_tmp4_); -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = _tmp5_; -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp4_); -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _dv_list = _tmp6_; -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = _dv_list; -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = _tmp8_; -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _dv_size = _tmp9_; -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _dv_index = -1; -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - while (TRUE) { -#line 5542 "CollectionPage.c" - gint _tmp10_; - gint _tmp11_; - gint _tmp12_; - DataView* dv = NULL; - GeeList* _tmp13_; - gint _tmp14_; - gpointer _tmp15_; - DataView* _tmp16_; - DataSource* _tmp17_; - DataSource* _tmp18_; - gboolean _tmp19_; -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = _dv_index; -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _dv_index = _tmp10_ + 1; -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = _dv_index; -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp12_ = _dv_size; -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (!(_tmp11_ < _tmp12_)) { -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - break; -#line 5566 "CollectionPage.c" - } -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp13_ = _dv_list; -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp14_ = _dv_index; -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp15_ = gee_list_get (_tmp13_, _tmp14_); -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - dv = (DataView*) _tmp15_; -#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp16_ = dv; -#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp17_ = data_view_get_source (_tmp16_); -#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp18_ = _tmp17_; -#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp19_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, TYPE_VIDEO); -#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp18_); -#line 600 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp19_) { -#line 601 "/home/jens/Source/shotwell/src/CollectionPage.vala" - selected_has_videos = TRUE; -#line 5590 "CollectionPage.c" - } else { -#line 603 "/home/jens/Source/shotwell/src/CollectionPage.vala" - only_videos_selected = FALSE; -#line 5594 "CollectionPage.c" - } -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (dv); -#line 5598 "CollectionPage.c" - } -#line 599 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_dv_list); -#line 5602 "CollectionPage.c" - } -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp20_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp21_ = _tmp20_; -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp22_ = view_collection_get_selected_at (_tmp21_, 0); -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp23_ = _tmp22_; -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp24_ = data_view_get_source (_tmp23_); -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp25_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATEABLE, Dateable); -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp23_); -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp21_); -#line 606 "/home/jens/Source/shotwell/src/CollectionPage.vala" - photo_source = _tmp25_; -#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp26_ = photo_source; -#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp27_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp28_ = _tmp27_; -#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp29_ = selected_has_videos; -#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp30_ = only_videos_selected; -#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp31_ = adjust_date_time_dialog_new (_tmp26_, view_collection_get_selected_count (_tmp28_), TRUE, _tmp29_, _tmp30_); -#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_object_ref_sink (_tmp31_); -#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp32_ = _tmp31_; -#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp28_); -#line 608 "/home/jens/Source/shotwell/src/CollectionPage.vala" - dialog = _tmp32_; -#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp33_ = dialog; -#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp37_ = adjust_date_time_dialog_execute (_tmp33_, &_tmp34_, &_tmp35_, &_tmp36_); -#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" - time_shift = _tmp34_; -#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" - keep_relativity = _tmp35_; -#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" - modify_originals = _tmp36_; -#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp37_) { -#line 5654 "CollectionPage.c" - AdjustDateTimePhotosCommand* command = NULL; - ViewCollection* _tmp38_; - ViewCollection* _tmp39_; - GeeList* _tmp40_; - GeeList* _tmp41_; - gint64 _tmp42_; - gboolean _tmp43_; - gboolean _tmp44_; - AdjustDateTimePhotosCommand* _tmp45_; - AdjustDateTimePhotosCommand* _tmp46_; - CommandManager* _tmp47_; - CommandManager* _tmp48_; - AdjustDateTimePhotosCommand* _tmp49_; -#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp38_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp39_ = _tmp38_; -#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp40_ = view_collection_get_selected (_tmp39_); -#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp41_ = _tmp40_; -#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp42_ = time_shift; -#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp43_ = keep_relativity; -#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp44_ = modify_originals; -#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp45_ = adjust_date_time_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_ITERABLE, GeeIterable), _tmp42_, _tmp43_, _tmp44_); -#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp46_ = _tmp45_; -#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp41_); -#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp39_); -#line 614 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command = _tmp46_; -#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp47_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp48_ = _tmp47_; -#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp49_ = command; -#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala" - command_manager_execute (_tmp48_, G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, TYPE_COMMAND, Command)); -#line 616 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _command_manager_unref0 (_tmp48_); -#line 613 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (command); -#line 5704 "CollectionPage.c" - } -#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (dialog); -#line 592 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo_source); -#line 5710 "CollectionPage.c" -} - - -static void -collection_page_on_external_edit (CollectionPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - Photo* photo = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - DataView* _tmp5_; - DataView* _tmp6_; - DataSource* _tmp7_; - Photo* _tmp8_; - GError * _inner_error_ = NULL; -#line 620 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1; -#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 621 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp2_) { -#line 622 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 5742 "CollectionPage.c" - } -#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = _tmp3_; -#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = view_collection_get_selected_at (_tmp4_, 0); -#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = _tmp5_; -#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = data_view_get_source (_tmp6_); -#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO, Photo); -#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp6_); -#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp4_); -#line 624 "/home/jens/Source/shotwell/src/CollectionPage.vala" - photo = _tmp8_; -#line 5762 "CollectionPage.c" - { - AppWindow* _tmp9_; - AppWindow* _tmp10_; - Photo* _tmp11_; - AppWindow* _tmp12_; - AppWindow* _tmp13_; -#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = app_window_get_instance (); -#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = _tmp9_; -#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_PAGE_WINDOW, PageWindow)); -#line 626 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp10_); -#line 627 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = photo; -#line 627 "/home/jens/Source/shotwell/src/CollectionPage.vala" - photo_open_with_external_editor (_tmp11_, &_inner_error_); -#line 627 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5783 "CollectionPage.c" - goto __catch246_g_error; - } -#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp12_ = app_window_get_instance (); -#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp13_ = _tmp12_; -#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PAGE_WINDOW, PageWindow)); -#line 628 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp13_); -#line 5794 "CollectionPage.c" - } - goto __finally246; - __catch246_g_error: - { - GError* err = NULL; - AppWindow* _tmp14_; - AppWindow* _tmp15_; - GError* _tmp16_; - Photo* _tmp17_; -#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala" - err = _inner_error_; -#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _inner_error_ = NULL; -#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp14_ = app_window_get_instance (); -#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp15_ = _tmp14_; -#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PAGE_WINDOW, PageWindow)); -#line 630 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp15_); -#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp16_ = err; -#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp17_ = photo; -#line 631 "/home/jens/Source/shotwell/src/CollectionPage.vala" - open_external_editor_error_dialog (_tmp16_, _tmp17_); -#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_error_free0 (err); -#line 5824 "CollectionPage.c" - } - __finally246: -#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_clear_error (&_inner_error_); -#line 625 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 5837 "CollectionPage.c" - } -#line 620 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 5841 "CollectionPage.c" -} - - -static void -collection_page_on_external_edit_raw (CollectionPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - Photo* photo = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - DataView* _tmp5_; - DataView* _tmp6_; - DataSource* _tmp7_; - Photo* _tmp8_; - Photo* _tmp9_; - GError * _inner_error_ = NULL; -#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1; -#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 636 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp2_) { -#line 637 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 5874 "CollectionPage.c" - } -#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = _tmp3_; -#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = view_collection_get_selected_at (_tmp4_, 0); -#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = _tmp5_; -#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = data_view_get_source (_tmp6_); -#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO, Photo); -#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp6_); -#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp4_); -#line 639 "/home/jens/Source/shotwell/src/CollectionPage.vala" - photo = _tmp8_; -#line 640 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = photo; -#line 640 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (photo_get_master_file_format (_tmp9_) != PHOTO_FILE_FORMAT_RAW) { -#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 641 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 5902 "CollectionPage.c" - } - { - AppWindow* _tmp10_; - AppWindow* _tmp11_; - Photo* _tmp12_; - AppWindow* _tmp13_; - AppWindow* _tmp14_; -#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = app_window_get_instance (); -#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = _tmp10_; -#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PAGE_WINDOW, PageWindow)); -#line 644 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp11_); -#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp12_ = photo; -#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala" - photo_open_with_raw_external_editor (_tmp12_, &_inner_error_); -#line 645 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5924 "CollectionPage.c" - goto __catch247_g_error; - } -#line 646 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp13_ = app_window_get_instance (); -#line 646 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp14_ = _tmp13_; -#line 646 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PAGE_WINDOW, PageWindow)); -#line 646 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp14_); -#line 5935 "CollectionPage.c" - } - goto __finally247; - __catch247_g_error: - { - GError* err = NULL; - AppWindow* _tmp15_; - AppWindow* _tmp16_; - GError* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; -#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala" - err = _inner_error_; -#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _inner_error_ = NULL; -#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp15_ = app_window_get_instance (); -#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp16_ = _tmp15_; -#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PAGE_WINDOW, PageWindow)); -#line 648 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp16_); -#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp17_ = err; -#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp18_ = resources_launch_editor_failed (_tmp17_); -#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp19_ = _tmp18_; -#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala" - app_window_error_message (_tmp19_, NULL); -#line 649 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_free0 (_tmp19_); -#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_error_free0 (err); -#line 5970 "CollectionPage.c" - } - __finally247: -#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_clear_error (&_inner_error_); -#line 643 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 5983 "CollectionPage.c" - } -#line 635 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 5987 "CollectionPage.c" -} - - -void -collection_page_on_set_background (CollectionPage* self) -{ - GeeArrayList* photos = NULL; - GeeArrayList* _tmp0_; - ViewCollection* _tmp1_; - ViewCollection* _tmp2_; - GeeList* _tmp3_; - GeeCollection* _tmp4_; - GeeArrayList* _tmp5_; - gboolean desktop = FALSE; - gboolean screensaver = FALSE; - GeeArrayList* _tmp6_; - gint _tmp7_; - gint _tmp8_; -#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 654 "/home/jens/Source/shotwell/src/CollectionPage.vala" - photos = _tmp0_; -#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = _tmp1_; -#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = view_collection_get_selected_sources (_tmp2_); -#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection); -#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = photos; -#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala" - media_source_collection_filter_media (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), NULL); -#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp4_); -#line 655 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp2_); -#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = photos; -#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = _tmp7_; -#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp8_ == 1) { -#line 6036 "CollectionPage.c" - SetBackgroundPhotoDialog* dialog = NULL; - SetBackgroundPhotoDialog* _tmp9_; - SetBackgroundPhotoDialog* _tmp10_; - gboolean _tmp11_ = FALSE; - gboolean _tmp12_ = FALSE; - gboolean _tmp13_; -#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = set_background_photo_dialog_new (); -#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_object_ref_sink (_tmp9_); -#line 660 "/home/jens/Source/shotwell/src/CollectionPage.vala" - dialog = _tmp9_; -#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = dialog; -#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp13_ = set_background_photo_dialog_execute (_tmp10_, &_tmp11_, &_tmp12_); -#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala" - desktop = _tmp11_; -#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala" - screensaver = _tmp12_; -#line 661 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp13_) { -#line 6059 "CollectionPage.c" - AppWindow* _tmp14_; - AppWindow* _tmp15_; - GeeArrayList* _tmp16_; - gpointer _tmp17_; - LibraryPhoto* _tmp18_; - gboolean _tmp19_; - gboolean _tmp20_; - AppWindow* _tmp21_; - AppWindow* _tmp22_; -#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp14_ = app_window_get_instance (); -#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp15_ = _tmp14_; -#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PAGE_WINDOW, PageWindow)); -#line 662 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp15_); -#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp16_ = photos; -#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp17_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp18_ = (LibraryPhoto*) _tmp17_; -#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp19_ = desktop; -#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp20_ = screensaver; -#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala" - desktop_integration_set_background (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO, Photo), _tmp19_, _tmp20_); -#line 663 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp18_); -#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp21_ = app_window_get_instance (); -#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp22_ = _tmp21_; -#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_PAGE_WINDOW, PageWindow)); -#line 664 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp22_); -#line 6099 "CollectionPage.c" - } -#line 659 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (dialog); -#line 6103 "CollectionPage.c" - } else { - GeeArrayList* _tmp23_; - gint _tmp24_; - gint _tmp25_; -#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp23_ = photos; -#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp24_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp25_ = _tmp24_; -#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp25_ > 1) { -#line 6116 "CollectionPage.c" - SetBackgroundSlideshowDialog* dialog = NULL; - SetBackgroundSlideshowDialog* _tmp26_; - gint delay = 0; - SetBackgroundSlideshowDialog* _tmp27_; - gint _tmp28_ = 0; - gboolean _tmp29_ = FALSE; - gboolean _tmp30_ = FALSE; - gboolean _tmp31_; -#line 667 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp26_ = set_background_slideshow_dialog_new (); -#line 667 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_object_ref_sink (_tmp26_); -#line 667 "/home/jens/Source/shotwell/src/CollectionPage.vala" - dialog = _tmp26_; -#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp27_ = dialog; -#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp31_ = set_background_slideshow_dialog_execute (_tmp27_, &_tmp28_, &_tmp29_, &_tmp30_); -#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala" - delay = _tmp28_; -#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala" - desktop = _tmp29_; -#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala" - screensaver = _tmp30_; -#line 669 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp31_) { -#line 6143 "CollectionPage.c" - AppWindow* _tmp32_; - AppWindow* _tmp33_; - GeeArrayList* _tmp34_; - gint _tmp35_; - gboolean _tmp36_; - gboolean _tmp37_; - AppWindow* _tmp38_; - AppWindow* _tmp39_; -#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp32_ = app_window_get_instance (); -#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp33_ = _tmp32_; -#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_PAGE_WINDOW, PageWindow)); -#line 670 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp33_); -#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp34_ = photos; -#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp35_ = delay; -#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp36_ = desktop; -#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp37_ = screensaver; -#line 671 "/home/jens/Source/shotwell/src/CollectionPage.vala" - desktop_integration_set_background_slideshow (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection), (gdouble) _tmp35_, COLLECTION_PAGE_DESKTOP_SLIDESHOW_TRANSITION_SEC, _tmp36_, _tmp37_); -#line 673 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp38_ = app_window_get_instance (); -#line 673 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp39_ = _tmp38_; -#line 673 "/home/jens/Source/shotwell/src/CollectionPage.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_PAGE_WINDOW, PageWindow)); -#line 673 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp39_); -#line 6178 "CollectionPage.c" - } -#line 666 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (dialog); -#line 6182 "CollectionPage.c" - } - } -#line 653 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photos); -#line 6187 "CollectionPage.c" -} - - -static void -collection_page_on_slideshow (CollectionPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - GeeList* _tmp3_ = NULL; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - gboolean _tmp6_; - GeeList* sources = NULL; - GeeList* _tmp13_; - gboolean _tmp14_ = FALSE; - GeeList* _tmp15_; - Thumbnail* thumbnail = NULL; - ViewCollection* _tmp19_; - ViewCollection* _tmp20_; - GeeList* _tmp21_; - gpointer _tmp22_; - DataSource* _tmp23_; - DataView* _tmp24_; - Thumbnail* _tmp25_; - Thumbnail* _tmp26_; - LibraryPhoto* photo = NULL; - Thumbnail* _tmp27_; - MediaSource* _tmp28_; - LibraryPhoto* _tmp29_; - LibraryPhoto* _tmp30_; - AppWindow* _tmp31_; - AppWindow* _tmp32_; - LibraryPhotoSourceCollection* _tmp33_; - ViewCollection* _tmp34_; - ViewCollection* _tmp35_; - LibraryPhoto* _tmp36_; - SlideshowPage* _tmp37_; - SlideshowPage* _tmp38_; -#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (self)); -#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _tmp0_; -#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)) == 0; -#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp1_); -#line 679 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp2_) { -#line 680 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 6241 "CollectionPage.c" - } -#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = _tmp4_; -#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = view_collection_get_selected_count (_tmp5_) > 0; -#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp5_); -#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp6_) { -#line 6253 "CollectionPage.c" - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; - GeeList* _tmp9_; -#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp8_ = _tmp7_; -#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp9_ = view_collection_get_selected_sources_of_type (_tmp8_, TYPE_LIBRARY_PHOTO); -#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp3_); -#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = _tmp9_; -#line 684 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp8_); -#line 6269 "CollectionPage.c" - } else { - ViewCollection* _tmp10_; - ViewCollection* _tmp11_; - GeeList* _tmp12_; -#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp11_ = _tmp10_; -#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp12_ = view_collection_get_sources_of_type (_tmp11_, TYPE_LIBRARY_PHOTO); -#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp3_); -#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = _tmp12_; -#line 685 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp11_); -#line 6286 "CollectionPage.c" - } -#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp13_ = _g_object_ref0 (_tmp3_); -#line 683 "/home/jens/Source/shotwell/src/CollectionPage.vala" - sources = _tmp13_; -#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp15_ = sources; -#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp15_ == NULL) { -#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp14_ = TRUE; -#line 6298 "CollectionPage.c" - } else { - GeeList* _tmp16_; - gint _tmp17_; - gint _tmp18_; -#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp16_ = sources; -#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp17_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp18_ = _tmp17_; -#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp14_ = _tmp18_ == 0; -#line 6311 "CollectionPage.c" - } -#line 686 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp14_) { -#line 687 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (sources); -#line 687 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp3_); -#line 687 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 6321 "CollectionPage.c" - } -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp19_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp20_ = _tmp19_; -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp21_ = sources; -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp22_ = gee_list_get (_tmp21_, 0); -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp23_ = (DataSource*) _tmp22_; -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp24_ = view_collection_get_view_for_source (_tmp20_, _tmp23_); -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp25_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_THUMBNAIL, Thumbnail); -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp23_); -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp20_); -#line 689 "/home/jens/Source/shotwell/src/CollectionPage.vala" - thumbnail = _tmp25_; -#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp26_ = thumbnail; -#line 690 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp26_ == NULL) { -#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (thumbnail); -#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (sources); -#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp3_); -#line 691 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 6355 "CollectionPage.c" - } -#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp27_ = thumbnail; -#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp28_ = thumbnail_get_media_source (_tmp27_); -#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp29_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp28_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp28_) : NULL; -#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp29_ == NULL) { -#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp28_); -#line 6367 "CollectionPage.c" - } -#line 693 "/home/jens/Source/shotwell/src/CollectionPage.vala" - photo = _tmp29_; -#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp30_ = photo; -#line 694 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp30_ == NULL) { -#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (thumbnail); -#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (sources); -#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp3_); -#line 695 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return; -#line 6385 "CollectionPage.c" - } -#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp31_ = app_window_get_instance (); -#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp32_ = _tmp31_; -#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp33_ = library_photo_global; -#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp34_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp35_ = _tmp34_; -#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp36_ = photo; -#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp37_ = slideshow_page_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp35_, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_PHOTO, Photo)); -#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_object_ref_sink (_tmp37_); -#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp38_ = _tmp37_; -#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala" - app_window_go_fullscreen (_tmp32_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_PAGE, Page)); -#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp38_); -#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _data_collection_unref0 (_tmp35_); -#line 697 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp32_); -#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (photo); -#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (thumbnail); -#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (sources); -#line 678 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (_tmp3_); -#line 6421 "CollectionPage.c" -} - - -static gboolean -collection_page_real_on_ctrl_pressed (Page* base, - GdkEventKey* event) -{ - CollectionPage * self; - gboolean result = FALSE; - GtkToolButton* rotate_button = NULL; - GtkBuilder* _tmp0_; - GObject* _tmp1_; - GtkToolButton* _tmp2_; - GtkToolButton* _tmp3_; -#line 701 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder; -#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = gtk_builder_get_object (_tmp0_, "ToolRotate"); -#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_tool_button_get_type ()) ? ((GtkToolButton*) _tmp1_) : NULL); -#line 702 "/home/jens/Source/shotwell/src/CollectionPage.vala" - rotate_button = _tmp2_; -#line 703 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = rotate_button; -#line 703 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp3_ != NULL) { -#line 6450 "CollectionPage.c" - GtkToolButton* _tmp4_; - GtkToolButton* _tmp5_; - GtkToolButton* _tmp6_; -#line 704 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = rotate_button; -#line 704 "/home/jens/Source/shotwell/src/CollectionPage.vala" - gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_actionable_get_type (), GtkActionable), "win.RotateCounterclockwise"); -#line 705 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = rotate_button; -#line 705 "/home/jens/Source/shotwell/src/CollectionPage.vala" - gtk_tool_button_set_icon_name (_tmp5_, "object-rotate-left"); -#line 706 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = rotate_button; -#line 706 "/home/jens/Source/shotwell/src/CollectionPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ROTATE_CCW_TOOLTIP); -#line 6466 "CollectionPage.c" - } -#line 709 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = PAGE_CLASS (collection_page_parent_class)->on_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), event); -#line 709 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (rotate_button); -#line 709 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 6474 "CollectionPage.c" -} - - -static gboolean -collection_page_real_on_ctrl_released (Page* base, - GdkEventKey* event) -{ - CollectionPage * self; - gboolean result = FALSE; - GtkToolButton* rotate_button = NULL; - GtkBuilder* _tmp0_; - GObject* _tmp1_; - GtkToolButton* _tmp2_; - GtkToolButton* _tmp3_; -#line 712 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 713 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder; -#line 713 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = gtk_builder_get_object (_tmp0_, "ToolRotate"); -#line 713 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_tool_button_get_type ()) ? ((GtkToolButton*) _tmp1_) : NULL); -#line 713 "/home/jens/Source/shotwell/src/CollectionPage.vala" - rotate_button = _tmp2_; -#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp3_ = rotate_button; -#line 714 "/home/jens/Source/shotwell/src/CollectionPage.vala" - if (_tmp3_ != NULL) { -#line 6503 "CollectionPage.c" - GtkToolButton* _tmp4_; - GtkToolButton* _tmp5_; - GtkToolButton* _tmp6_; -#line 715 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp4_ = rotate_button; -#line 715 "/home/jens/Source/shotwell/src/CollectionPage.vala" - gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_actionable_get_type (), GtkActionable), "win.RotateClockwise"); -#line 716 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp5_ = rotate_button; -#line 716 "/home/jens/Source/shotwell/src/CollectionPage.vala" - gtk_tool_button_set_icon_name (_tmp5_, "object-rotate-right"); -#line 717 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp6_ = rotate_button; -#line 717 "/home/jens/Source/shotwell/src/CollectionPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ROTATE_CW_TOOLTIP); -#line 6519 "CollectionPage.c" - } -#line 720 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = PAGE_CLASS (collection_page_parent_class)->on_ctrl_released (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage), TYPE_PAGE, Page), event); -#line 720 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _g_object_unref0 (rotate_button); -#line 720 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 6527 "CollectionPage.c" -} - - -static gpointer -_view_filter_ref0 (gpointer self) -{ -#line 724 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return self ? view_filter_ref (self) : NULL; -#line 6536 "CollectionPage.c" -} - - -static SearchViewFilter* -collection_page_real_get_search_view_filter (CheckerboardPage* base) -{ - CollectionPage * self; - SearchViewFilter* result = NULL; - CollectionPageCollectionSearchViewFilter* _tmp0_; - SearchViewFilter* _tmp1_; -#line 723 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COLLECTION_PAGE, CollectionPage); -#line 724 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = self->priv->search_filter; -#line 724 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 724 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = _tmp1_; -#line 724 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 6557 "CollectionPage.c" -} - - -static guint -collection_page_collection_search_view_filter_real_get_criteria (SearchViewFilter* base) -{ - CollectionPageCollectionSearchViewFilter * self; - guint result = 0U; -#line 23 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilter); -#line 24 "/home/jens/Source/shotwell/src/CollectionPage.vala" - result = (guint) ((((SEARCH_FILTER_CRITERIA_TEXT | SEARCH_FILTER_CRITERIA_FLAG) | SEARCH_FILTER_CRITERIA_MEDIA) | SEARCH_FILTER_CRITERIA_RATING) | SEARCH_FILTER_CRITERIA_SAVEDSEARCH); -#line 24 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return result; -#line 6572 "CollectionPage.c" -} - - -CollectionPageCollectionSearchViewFilter* -collection_page_collection_search_view_filter_construct (GType object_type) -{ - CollectionPageCollectionSearchViewFilter* self = NULL; -#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = (CollectionPageCollectionSearchViewFilter*) default_search_view_filter_construct (object_type); -#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return self; -#line 6584 "CollectionPage.c" -} - - -CollectionPageCollectionSearchViewFilter* -collection_page_collection_search_view_filter_new (void) -{ -#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala" - return collection_page_collection_search_view_filter_construct (COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER); -#line 6593 "CollectionPage.c" -} - - -static void -collection_page_collection_search_view_filter_class_init (CollectionPageCollectionSearchViewFilterClass * klass) -{ -#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_collection_search_view_filter_parent_class = g_type_class_peek_parent (klass); -#line 22 "/home/jens/Source/shotwell/src/CollectionPage.vala" - ((SearchViewFilterClass *) klass)->get_criteria = (guint (*) (SearchViewFilter *)) collection_page_collection_search_view_filter_real_get_criteria; -#line 6604 "CollectionPage.c" -} - - -static void -collection_page_collection_search_view_filter_instance_init (CollectionPageCollectionSearchViewFilter * self) -{ -} - - -GType -collection_page_collection_search_view_filter_get_type (void) -{ - static volatile gsize collection_page_collection_search_view_filter_type_id__volatile = 0; - if (g_once_init_enter (&collection_page_collection_search_view_filter_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CollectionPageCollectionSearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) collection_page_collection_search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CollectionPageCollectionSearchViewFilter), 0, (GInstanceInitFunc) collection_page_collection_search_view_filter_instance_init, NULL }; - GType collection_page_collection_search_view_filter_type_id; - collection_page_collection_search_view_filter_type_id = g_type_register_static (TYPE_DEFAULT_SEARCH_VIEW_FILTER, "CollectionPageCollectionSearchViewFilter", &g_define_type_info, 0); - g_once_init_leave (&collection_page_collection_search_view_filter_type_id__volatile, collection_page_collection_search_view_filter_type_id); - } - return collection_page_collection_search_view_filter_type_id__volatile; -} - - -static void -collection_page_class_init (CollectionPageClass * klass) -{ -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - collection_page_parent_class = g_type_class_peek_parent (klass); -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - g_type_class_add_private (klass, sizeof (CollectionPagePrivate)); -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - ((PageClass *) klass)->get_toolbar = (GtkToolbar* (*) (Page *)) collection_page_real_get_toolbar; -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) collection_page_real_init_collect_ui_filenames; -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) collection_page_real_add_actions; -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) collection_page_real_remove_actions; -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - ((PageClass *) klass)->init_collect_injection_groups = (InjectionGroup** (*) (Page *, int*)) collection_page_real_init_collect_injection_groups; -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - ((PageClass *) klass)->init_actions = (void (*) (Page *, gint, gint)) collection_page_real_init_actions; -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) collection_page_real_update_actions; -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - ((CheckerboardPageClass *) klass)->on_item_activated = (void (*) (CheckerboardPage *, CheckerboardItem*, CheckerboardPageActivator, CheckerboardPageKeyboardModifiers*)) collection_page_real_on_item_activated; -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - ((PageClass *) klass)->on_app_key_pressed = (gboolean (*) (Page *, GdkEventKey*)) collection_page_real_on_app_key_pressed; -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - ((MediaPageClass *) klass)->on_export = (void (*) (MediaPage *)) collection_page_real_on_export; -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - ((PageClass *) klass)->on_ctrl_pressed = (gboolean (*) (Page *, GdkEventKey*)) collection_page_real_on_ctrl_pressed; -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - ((PageClass *) klass)->on_ctrl_released = (gboolean (*) (Page *, GdkEventKey*)) collection_page_real_on_ctrl_released; -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - ((CheckerboardPageClass *) klass)->get_search_view_filter = (SearchViewFilter* (*) (CheckerboardPage *)) collection_page_real_get_search_view_filter; -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - G_OBJECT_CLASS (klass)->finalize = collection_page_finalize; -#line 6663 "CollectionPage.c" -} - - -static void -collection_page_instance_init (CollectionPage * self) -{ - CollectionPageCollectionSearchViewFilter* _tmp0_; -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self->priv = COLLECTION_PAGE_GET_PRIVATE (self); -#line 29 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self->priv->exporter = NULL; -#line 30 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _tmp0_ = collection_page_collection_search_view_filter_new (); -#line 30 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self->priv->search_filter = _tmp0_; -#line 6679 "CollectionPage.c" -} - - -static void -collection_page_finalize (GObject * obj) -{ - CollectionPage * self; -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COLLECTION_PAGE, CollectionPage); -#line 29 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _exporter_ui_unref0 (self->priv->exporter); -#line 30 "/home/jens/Source/shotwell/src/CollectionPage.vala" - _view_filter_unref0 (self->priv->search_filter); -#line 19 "/home/jens/Source/shotwell/src/CollectionPage.vala" - G_OBJECT_CLASS (collection_page_parent_class)->finalize (obj); -#line 6695 "CollectionPage.c" -} - - -GType -collection_page_get_type (void) -{ - static volatile gsize collection_page_type_id__volatile = 0; - if (g_once_init_enter (&collection_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CollectionPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) collection_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CollectionPage), 0, (GInstanceInitFunc) collection_page_instance_init, NULL }; - GType collection_page_type_id; - collection_page_type_id = g_type_register_static (TYPE_MEDIA_PAGE, "CollectionPage", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&collection_page_type_id__volatile, collection_page_type_id); - } - return collection_page_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/CollectionPage.vala b/src/CollectionPage.vala index 2b308b9..4206ec8 100644 --- a/src/CollectionPage.vala +++ b/src/CollectionPage.vala @@ -702,7 +702,7 @@ public abstract class CollectionPage : MediaPage { Gtk.ToolButton? rotate_button = this.builder.get_object ("ToolRotate") as Gtk.ToolButton; if (rotate_button != null) { rotate_button.set_action_name ("win.RotateCounterclockwise"); - rotate_button.set_icon_name ("object-rotate-left"); + rotate_button.set_icon_name (Resources.COUNTERCLOCKWISE); rotate_button.set_tooltip_text (Resources.ROTATE_CCW_TOOLTIP); } @@ -713,7 +713,7 @@ public abstract class CollectionPage : MediaPage { Gtk.ToolButton? rotate_button = this.builder.get_object ("ToolRotate") as Gtk.ToolButton; if (rotate_button != null) { rotate_button.set_action_name ("win.RotateClockwise"); - rotate_button.set_icon_name ("object-rotate-right"); + rotate_button.set_icon_name (Resources.CLOCKWISE); rotate_button.set_tooltip_text (Resources.ROTATE_CW_TOOLTIP); } diff --git a/src/ColorTransformation.c b/src/ColorTransformation.c deleted file mode 100644 index 9110ffc..0000000 --- a/src/ColorTransformation.c +++ /dev/null @@ -1,12905 +0,0 @@ -/* ColorTransformation.c generated by valac 0.40.4, the Vala compiler - * generated from ColorTransformation.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_RGB_ANALYTIC_PIXEL (rgb_analytic_pixel_get_type ()) -typedef struct _RGBAnalyticPixel RGBAnalyticPixel; - -#define TYPE_HSV_ANALYTIC_PIXEL (hsv_analytic_pixel_get_type ()) -typedef struct _HSVAnalyticPixel HSVAnalyticPixel; - -#define TYPE_COMPOSITION_MODE (composition_mode_get_type ()) - -#define TYPE_PIXEL_FORMAT (pixel_format_get_type ()) - -#define TYPE_PIXEL_TRANSFORMATION_TYPE (pixel_transformation_type_get_type ()) - -#define TYPE_PIXEL_TRANSFORMATION_BUNDLE (pixel_transformation_bundle_get_type ()) -#define PIXEL_TRANSFORMATION_BUNDLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundle)) -#define PIXEL_TRANSFORMATION_BUNDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundleClass)) -#define IS_PIXEL_TRANSFORMATION_BUNDLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE)) -#define IS_PIXEL_TRANSFORMATION_BUNDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMATION_BUNDLE)) -#define PIXEL_TRANSFORMATION_BUNDLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundleClass)) - -typedef struct _PixelTransformationBundle PixelTransformationBundle; -typedef struct _PixelTransformationBundleClass PixelTransformationBundleClass; -typedef struct _PixelTransformationBundlePrivate PixelTransformationBundlePrivate; - -#define TYPE_PIXEL_TRANSFORMATION (pixel_transformation_get_type ()) -#define PIXEL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMATION, PixelTransformation)) -#define PIXEL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMATION, PixelTransformationClass)) -#define IS_PIXEL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMATION)) -#define IS_PIXEL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMATION)) -#define PIXEL_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMATION, PixelTransformationClass)) - -typedef struct _PixelTransformation PixelTransformation; -typedef struct _PixelTransformationClass PixelTransformationClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL))) - -#define TYPE_HSV_TRANSFORMATION (hsv_transformation_get_type ()) -#define HSV_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HSV_TRANSFORMATION, HSVTransformation)) -#define HSV_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HSV_TRANSFORMATION, HSVTransformationClass)) -#define IS_HSV_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HSV_TRANSFORMATION)) -#define IS_HSV_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HSV_TRANSFORMATION)) -#define HSV_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HSV_TRANSFORMATION, HSVTransformationClass)) - -typedef struct _HSVTransformation HSVTransformation; -typedef struct _HSVTransformationClass HSVTransformationClass; - -#define TYPE_EXPANSION_TRANSFORMATION (expansion_transformation_get_type ()) -#define EXPANSION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation)) -#define EXPANSION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformationClass)) -#define IS_EXPANSION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPANSION_TRANSFORMATION)) -#define IS_EXPANSION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPANSION_TRANSFORMATION)) -#define EXPANSION_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformationClass)) - -typedef struct _ExpansionTransformation ExpansionTransformation; -typedef struct _ExpansionTransformationClass ExpansionTransformationClass; -#define _pixel_transformation_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_unref (var), NULL))) - -#define TYPE_SHADOW_DETAIL_TRANSFORMATION (shadow_detail_transformation_get_type ()) -#define SHADOW_DETAIL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformation)) -#define SHADOW_DETAIL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformationClass)) -#define IS_SHADOW_DETAIL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHADOW_DETAIL_TRANSFORMATION)) -#define IS_SHADOW_DETAIL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHADOW_DETAIL_TRANSFORMATION)) -#define SHADOW_DETAIL_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformationClass)) - -typedef struct _ShadowDetailTransformation ShadowDetailTransformation; -typedef struct _ShadowDetailTransformationClass ShadowDetailTransformationClass; - -#define TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION (highlight_detail_transformation_get_type ()) -#define HIGHLIGHT_DETAIL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformation)) -#define HIGHLIGHT_DETAIL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformationClass)) -#define IS_HIGHLIGHT_DETAIL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION)) -#define IS_HIGHLIGHT_DETAIL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION)) -#define HIGHLIGHT_DETAIL_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformationClass)) - -typedef struct _HighlightDetailTransformation HighlightDetailTransformation; -typedef struct _HighlightDetailTransformationClass HighlightDetailTransformationClass; - -#define TYPE_RGB_TRANSFORMATION (rgb_transformation_get_type ()) -#define RGB_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RGB_TRANSFORMATION, RGBTransformation)) -#define RGB_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RGB_TRANSFORMATION, RGBTransformationClass)) -#define IS_RGB_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RGB_TRANSFORMATION)) -#define IS_RGB_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RGB_TRANSFORMATION)) -#define RGB_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RGB_TRANSFORMATION, RGBTransformationClass)) - -typedef struct _RGBTransformation RGBTransformation; -typedef struct _RGBTransformationClass RGBTransformationClass; - -#define TYPE_TEMPERATURE_TRANSFORMATION (temperature_transformation_get_type ()) -#define TEMPERATURE_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformation)) -#define TEMPERATURE_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformationClass)) -#define IS_TEMPERATURE_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEMPERATURE_TRANSFORMATION)) -#define IS_TEMPERATURE_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEMPERATURE_TRANSFORMATION)) -#define TEMPERATURE_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformationClass)) - -typedef struct _TemperatureTransformation TemperatureTransformation; -typedef struct _TemperatureTransformationClass TemperatureTransformationClass; - -#define TYPE_TINT_TRANSFORMATION (tint_transformation_get_type ()) -#define TINT_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TINT_TRANSFORMATION, TintTransformation)) -#define TINT_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TINT_TRANSFORMATION, TintTransformationClass)) -#define IS_TINT_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TINT_TRANSFORMATION)) -#define IS_TINT_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TINT_TRANSFORMATION)) -#define TINT_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TINT_TRANSFORMATION, TintTransformationClass)) - -typedef struct _TintTransformation TintTransformation; -typedef struct _TintTransformationClass TintTransformationClass; - -#define TYPE_SATURATION_TRANSFORMATION (saturation_transformation_get_type ()) -#define SATURATION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SATURATION_TRANSFORMATION, SaturationTransformation)) -#define SATURATION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SATURATION_TRANSFORMATION, SaturationTransformationClass)) -#define IS_SATURATION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SATURATION_TRANSFORMATION)) -#define IS_SATURATION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SATURATION_TRANSFORMATION)) -#define SATURATION_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SATURATION_TRANSFORMATION, SaturationTransformationClass)) - -typedef struct _SaturationTransformation SaturationTransformation; -typedef struct _SaturationTransformationClass SaturationTransformationClass; - -#define TYPE_EXPOSURE_TRANSFORMATION (exposure_transformation_get_type ()) -#define EXPOSURE_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformation)) -#define EXPOSURE_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformationClass)) -#define IS_EXPOSURE_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPOSURE_TRANSFORMATION)) -#define IS_EXPOSURE_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPOSURE_TRANSFORMATION)) -#define EXPOSURE_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformationClass)) - -typedef struct _ExposureTransformation ExposureTransformation; -typedef struct _ExposureTransformationClass ExposureTransformationClass; - -#define TYPE_CONTRAST_TRANSFORMATION (contrast_transformation_get_type ()) -#define CONTRAST_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTRAST_TRANSFORMATION, ContrastTransformation)) -#define CONTRAST_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTRAST_TRANSFORMATION, ContrastTransformationClass)) -#define IS_CONTRAST_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTRAST_TRANSFORMATION)) -#define IS_CONTRAST_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTRAST_TRANSFORMATION)) -#define CONTRAST_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTRAST_TRANSFORMATION, ContrastTransformationClass)) - -typedef struct _ContrastTransformation ContrastTransformation; -typedef struct _ContrastTransformationClass ContrastTransformationClass; - -#define TYPE_KEY_VALUE_MAP (key_value_map_get_type ()) -#define KEY_VALUE_MAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_KEY_VALUE_MAP, KeyValueMap)) -#define KEY_VALUE_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_KEY_VALUE_MAP, KeyValueMapClass)) -#define IS_KEY_VALUE_MAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_KEY_VALUE_MAP)) -#define IS_KEY_VALUE_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_KEY_VALUE_MAP)) -#define KEY_VALUE_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_KEY_VALUE_MAP, KeyValueMapClass)) - -typedef struct _KeyValueMap KeyValueMap; -typedef struct _KeyValueMapClass KeyValueMapClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _key_value_map_unref0(var) ((var == NULL) ? NULL : (var = (key_value_map_unref (var), NULL))) - -#define TYPE_PIXEL_TRANSFORMER (pixel_transformer_get_type ()) -#define PIXEL_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMER, PixelTransformer)) -#define PIXEL_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMER, PixelTransformerClass)) -#define IS_PIXEL_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMER)) -#define IS_PIXEL_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMER)) -#define PIXEL_TRANSFORMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMER, PixelTransformerClass)) - -typedef struct _PixelTransformer PixelTransformer; -typedef struct _PixelTransformerClass PixelTransformerClass; -#define _pixel_transformer_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformer_unref (var), NULL))) -typedef struct _ParamSpecPixelTransformationBundle ParamSpecPixelTransformationBundle; -typedef struct _PixelTransformationPrivate PixelTransformationPrivate; -typedef struct _ParamSpecPixelTransformation ParamSpecPixelTransformation; -typedef struct _RGBTransformationPrivate RGBTransformationPrivate; -typedef struct _HSVTransformationPrivate HSVTransformationPrivate; -typedef struct _TintTransformationPrivate TintTransformationPrivate; -typedef struct _TemperatureTransformationPrivate TemperatureTransformationPrivate; -typedef struct _SaturationTransformationPrivate SaturationTransformationPrivate; -typedef struct _ExposureTransformationPrivate ExposureTransformationPrivate; -typedef struct _ContrastTransformationPrivate ContrastTransformationPrivate; -typedef struct _PixelTransformerPrivate PixelTransformerPrivate; -typedef struct _Block1Data Block1Data; -typedef struct _Block2Data Block2Data; -#define _g_thread_unref0(var) ((var == NULL) ? NULL : (var = (g_thread_unref (var), NULL))) -typedef struct _Block3Data Block3Data; -typedef struct _Block4Data Block4Data; -typedef struct _ParamSpecPixelTransformer ParamSpecPixelTransformer; - -#define TYPE_RGB_HISTOGRAM (rgb_histogram_get_type ()) -#define RGB_HISTOGRAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RGB_HISTOGRAM, RGBHistogram)) -#define RGB_HISTOGRAM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RGB_HISTOGRAM, RGBHistogramClass)) -#define IS_RGB_HISTOGRAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RGB_HISTOGRAM)) -#define IS_RGB_HISTOGRAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RGB_HISTOGRAM)) -#define RGB_HISTOGRAM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RGB_HISTOGRAM, RGBHistogramClass)) - -typedef struct _RGBHistogram RGBHistogram; -typedef struct _RGBHistogramClass RGBHistogramClass; -typedef struct _RGBHistogramPrivate RGBHistogramPrivate; -typedef struct _ParamSpecRGBHistogram ParamSpecRGBHistogram; - -#define TYPE_INTENSITY_HISTOGRAM (intensity_histogram_get_type ()) -#define INTENSITY_HISTOGRAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INTENSITY_HISTOGRAM, IntensityHistogram)) -#define INTENSITY_HISTOGRAM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INTENSITY_HISTOGRAM, IntensityHistogramClass)) -#define IS_INTENSITY_HISTOGRAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INTENSITY_HISTOGRAM)) -#define IS_INTENSITY_HISTOGRAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INTENSITY_HISTOGRAM)) -#define INTENSITY_HISTOGRAM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INTENSITY_HISTOGRAM, IntensityHistogramClass)) - -typedef struct _IntensityHistogram IntensityHistogram; -typedef struct _IntensityHistogramClass IntensityHistogramClass; -typedef struct _IntensityHistogramPrivate IntensityHistogramPrivate; -typedef struct _ParamSpecIntensityHistogram ParamSpecIntensityHistogram; -typedef struct _ExpansionTransformationPrivate ExpansionTransformationPrivate; -typedef struct _ShadowDetailTransformationPrivate ShadowDetailTransformationPrivate; - -#define TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION (hermite_gamma_approximation_function_get_type ()) -#define HERMITE_GAMMA_APPROXIMATION_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, HermiteGammaApproximationFunction)) -#define HERMITE_GAMMA_APPROXIMATION_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, HermiteGammaApproximationFunctionClass)) -#define IS_HERMITE_GAMMA_APPROXIMATION_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION)) -#define IS_HERMITE_GAMMA_APPROXIMATION_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION)) -#define HERMITE_GAMMA_APPROXIMATION_FUNCTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, HermiteGammaApproximationFunctionClass)) - -typedef struct _HermiteGammaApproximationFunction HermiteGammaApproximationFunction; -typedef struct _HermiteGammaApproximationFunctionClass HermiteGammaApproximationFunctionClass; -#define _hermite_gamma_approximation_function_unref0(var) ((var == NULL) ? NULL : (var = (hermite_gamma_approximation_function_unref (var), NULL))) -typedef struct _HermiteGammaApproximationFunctionPrivate HermiteGammaApproximationFunctionPrivate; -typedef struct _ParamSpecHermiteGammaApproximationFunction ParamSpecHermiteGammaApproximationFunction; -typedef struct _HighlightDetailTransformationPrivate HighlightDetailTransformationPrivate; -#define _intensity_histogram_unref0(var) ((var == NULL) ? NULL : (var = (intensity_histogram_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _RGBAnalyticPixel { - gfloat red; - gfloat green; - gfloat blue; -}; - -struct _HSVAnalyticPixel { - gfloat hue; - gfloat saturation; - gfloat light_value; -}; - -typedef enum { - COMPOSITION_MODE_NONE, - COMPOSITION_MODE_RGB_MATRIX, - COMPOSITION_MODE_HSV_LOOKUP -} CompositionMode; - -typedef enum { - PIXEL_FORMAT_RGB, - PIXEL_FORMAT_HSV -} PixelFormat; - -typedef enum { - PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION, - PIXEL_TRANSFORMATION_TYPE_SHADOWS, - PIXEL_TRANSFORMATION_TYPE_HIGHLIGHTS, - PIXEL_TRANSFORMATION_TYPE_TEMPERATURE, - PIXEL_TRANSFORMATION_TYPE_TINT, - PIXEL_TRANSFORMATION_TYPE_SATURATION, - PIXEL_TRANSFORMATION_TYPE_EXPOSURE, - PIXEL_TRANSFORMATION_TYPE_CONTRAST -} PixelTransformationType; - -struct _PixelTransformationBundle { - GTypeInstance parent_instance; - volatile int ref_count; - PixelTransformationBundlePrivate * priv; -}; - -struct _PixelTransformationBundleClass { - GTypeClass parent_class; - void (*finalize) (PixelTransformationBundle *self); -}; - -struct _PixelTransformationBundlePrivate { - GeeHashMap* map; -}; - -struct _ParamSpecPixelTransformationBundle { - GParamSpec parent_instance; -}; - -struct _PixelTransformation { - GTypeInstance parent_instance; - volatile int ref_count; - PixelTransformationPrivate * priv; -}; - -struct _PixelTransformationClass { - GTypeClass parent_class; - void (*finalize) (PixelTransformation *self); - CompositionMode (*get_composition_mode) (PixelTransformation* self); - void (*compose_with) (PixelTransformation* self, PixelTransformation* other); - gboolean (*is_identity) (PixelTransformation* self); - void (*transform_pixel_hsv) (PixelTransformation* self, HSVAnalyticPixel* p, HSVAnalyticPixel* result); - void (*transform_pixel_rgb) (PixelTransformation* self, RGBAnalyticPixel* p, RGBAnalyticPixel* result); - gchar* (*to_string) (PixelTransformation* self); - PixelTransformation* (*copy) (PixelTransformation* self); -}; - -struct _PixelTransformationPrivate { - PixelTransformationType type; - PixelFormat preferred_format; -}; - -struct _ParamSpecPixelTransformation { - GParamSpec parent_instance; -}; - -struct _RGBTransformation { - PixelTransformation parent_instance; - RGBTransformationPrivate * priv; - gfloat* matrix_entries; - gint matrix_entries_length1; - gboolean identity; -}; - -struct _RGBTransformationClass { - PixelTransformationClass parent_class; -}; - -struct _HSVTransformation { - PixelTransformation parent_instance; - HSVTransformationPrivate * priv; - gfloat remap_table[256]; -}; - -struct _HSVTransformationClass { - PixelTransformationClass parent_class; -}; - -struct _TintTransformation { - RGBTransformation parent_instance; - TintTransformationPrivate * priv; -}; - -struct _TintTransformationClass { - RGBTransformationClass parent_class; -}; - -struct _TintTransformationPrivate { - gfloat parameter; -}; - -struct _TemperatureTransformation { - RGBTransformation parent_instance; - TemperatureTransformationPrivate * priv; -}; - -struct _TemperatureTransformationClass { - RGBTransformationClass parent_class; -}; - -struct _TemperatureTransformationPrivate { - gfloat parameter; -}; - -struct _SaturationTransformation { - RGBTransformation parent_instance; - SaturationTransformationPrivate * priv; -}; - -struct _SaturationTransformationClass { - RGBTransformationClass parent_class; -}; - -struct _SaturationTransformationPrivate { - gfloat parameter; -}; - -struct _ExposureTransformation { - RGBTransformation parent_instance; - ExposureTransformationPrivate * priv; -}; - -struct _ExposureTransformationClass { - RGBTransformationClass parent_class; -}; - -struct _ExposureTransformationPrivate { - gfloat parameter; -}; - -struct _ContrastTransformation { - RGBTransformation parent_instance; - ContrastTransformationPrivate * priv; -}; - -struct _ContrastTransformationClass { - RGBTransformationClass parent_class; -}; - -struct _ContrastTransformationPrivate { - gfloat parameter; -}; - -struct _PixelTransformer { - GTypeInstance parent_instance; - volatile int ref_count; - PixelTransformerPrivate * priv; - PixelTransformation** optimized_transformations; - gint optimized_transformations_length1; - gint optimized_slots_used; -}; - -struct _PixelTransformerClass { - GTypeClass parent_class; - void (*finalize) (PixelTransformer *self); -}; - -struct _PixelTransformerPrivate { - GeeArrayList* transformations; -}; - -struct _Block1Data { - int _ref_count_; - PixelTransformer* self; - gint dest_width; - gint dest_num_channels; - gint dest_rowstride; - guchar* dest_pixels; - gint dest_pixels_length1; - gint _dest_pixels_size_; - gfloat* cache; - gint cache_length1; - gint _cache_size_; -}; - -struct _Block2Data { - int _ref_count_; - Block1Data * _data1_; - guint row; - guint slice_height; -}; - -struct _Block3Data { - int _ref_count_; - PixelTransformer* self; - gint n_channels; - gint rowstride; - gint rowbytes; - guchar* source_pixels; - gint source_pixels_length1; - gint _source_pixels_size_; - guchar* dest_pixels; - gint dest_pixels_length1; - gint _dest_pixels_size_; - GCancellable* cancellable; -}; - -struct _Block4Data { - int _ref_count_; - Block3Data * _data3_; - guint row; - guint slice_height; -}; - -struct _ParamSpecPixelTransformer { - GParamSpec parent_instance; -}; - -struct _RGBHistogram { - GTypeInstance parent_instance; - volatile int ref_count; - RGBHistogramPrivate * priv; -}; - -struct _RGBHistogramClass { - GTypeClass parent_class; - void (*finalize) (RGBHistogram *self); -}; - -struct _RGBHistogramPrivate { - gint* red_counts; - gint red_counts_length1; - gint _red_counts_size_; - gint* green_counts; - gint green_counts_length1; - gint _green_counts_size_; - gint* blue_counts; - gint blue_counts_length1; - gint _blue_counts_size_; - gint* qualitative_red_counts; - gint qualitative_red_counts_length1; - gint _qualitative_red_counts_size_; - gint* qualitative_green_counts; - gint qualitative_green_counts_length1; - gint _qualitative_green_counts_size_; - gint* qualitative_blue_counts; - gint qualitative_blue_counts_length1; - gint _qualitative_blue_counts_size_; - GdkPixbuf* graphic; -}; - -struct _ParamSpecRGBHistogram { - GParamSpec parent_instance; -}; - -struct _IntensityHistogram { - GTypeInstance parent_instance; - volatile int ref_count; - IntensityHistogramPrivate * priv; -}; - -struct _IntensityHistogramClass { - GTypeClass parent_class; - void (*finalize) (IntensityHistogram *self); -}; - -struct _IntensityHistogramPrivate { - gint* counts; - gint counts_length1; - gint _counts_size_; - gfloat* probabilities; - gint probabilities_length1; - gint _probabilities_size_; - gfloat* cumulative_probabilities; - gint cumulative_probabilities_length1; - gint _cumulative_probabilities_size_; -}; - -struct _ParamSpecIntensityHistogram { - GParamSpec parent_instance; -}; - -struct _ExpansionTransformation { - HSVTransformation parent_instance; - ExpansionTransformationPrivate * priv; -}; - -struct _ExpansionTransformationClass { - HSVTransformationClass parent_class; -}; - -struct _ExpansionTransformationPrivate { - gint low_kink; - gint high_kink; -}; - -struct _ShadowDetailTransformation { - HSVTransformation parent_instance; - ShadowDetailTransformationPrivate * priv; -}; - -struct _ShadowDetailTransformationClass { - HSVTransformationClass parent_class; -}; - -struct _ShadowDetailTransformationPrivate { - gfloat intensity; -}; - -struct _HermiteGammaApproximationFunction { - GTypeInstance parent_instance; - volatile int ref_count; - HermiteGammaApproximationFunctionPrivate * priv; -}; - -struct _HermiteGammaApproximationFunctionClass { - GTypeClass parent_class; - void (*finalize) (HermiteGammaApproximationFunction *self); -}; - -struct _HermiteGammaApproximationFunctionPrivate { - gfloat x_scale; - gfloat nonzero_interval_upper; -}; - -struct _ParamSpecHermiteGammaApproximationFunction { - GParamSpec parent_instance; -}; - -struct _HighlightDetailTransformation { - HSVTransformation parent_instance; - HighlightDetailTransformationPrivate * priv; -}; - -struct _HighlightDetailTransformationClass { - HSVTransformationClass parent_class; -}; - -struct _HighlightDetailTransformationPrivate { - gfloat intensity; -}; - - -static gpointer pixel_transformation_bundle_parent_class = NULL; -static PixelTransformationBundle* pixel_transformation_bundle_copied_color_adjustments; -static PixelTransformationBundle* pixel_transformation_bundle_copied_color_adjustments = NULL; -static gpointer pixel_transformation_parent_class = NULL; -static gpointer rgb_transformation_parent_class = NULL; -static gpointer hsv_transformation_parent_class = NULL; -static gpointer tint_transformation_parent_class = NULL; -static gpointer temperature_transformation_parent_class = NULL; -static gpointer saturation_transformation_parent_class = NULL; -static gpointer exposure_transformation_parent_class = NULL; -static gpointer contrast_transformation_parent_class = NULL; -static gpointer pixel_transformer_parent_class = NULL; -static gpointer rgb_histogram_parent_class = NULL; -static gpointer intensity_histogram_parent_class = NULL; -static gpointer expansion_transformation_parent_class = NULL; -static gpointer shadow_detail_transformation_parent_class = NULL; -static gpointer hermite_gamma_approximation_function_parent_class = NULL; -static gpointer highlight_detail_transformation_parent_class = NULL; - -GType rgb_analytic_pixel_get_type (void) G_GNUC_CONST; -RGBAnalyticPixel* rgb_analytic_pixel_dup (const RGBAnalyticPixel* self); -void rgb_analytic_pixel_free (RGBAnalyticPixel* self); -#define RGB_ANALYTIC_PIXEL_INV_255 (1.0f / 255.0f) -void rgb_analytic_pixel_init (RGBAnalyticPixel *self); -void rgb_analytic_pixel_init_from_components (RGBAnalyticPixel *self, - gfloat red, - gfloat green, - gfloat blue); -void rgb_analytic_pixel_init_from_quantized_components (RGBAnalyticPixel *self, - guchar red_quantized, - guchar green_quantized, - guchar blue_quantized); -GType hsv_analytic_pixel_get_type (void) G_GNUC_CONST; -HSVAnalyticPixel* hsv_analytic_pixel_dup (const HSVAnalyticPixel* self); -void hsv_analytic_pixel_free (HSVAnalyticPixel* self); -void rgb_analytic_pixel_init_from_hsv (RGBAnalyticPixel *self, - HSVAnalyticPixel* hsv_pixel); -void hsv_analytic_pixel_to_rgb (HSVAnalyticPixel *self, - RGBAnalyticPixel* result); -guchar rgb_analytic_pixel_quantized_red (RGBAnalyticPixel *self); -guchar rgb_analytic_pixel_quantized_green (RGBAnalyticPixel *self); -guchar rgb_analytic_pixel_quantized_blue (RGBAnalyticPixel *self); -gboolean rgb_analytic_pixel_equals (RGBAnalyticPixel *self, - RGBAnalyticPixel* rhs); -guint rgb_analytic_pixel_hash_code (RGBAnalyticPixel *self); -void rgb_analytic_pixel_to_hsv (RGBAnalyticPixel *self, - HSVAnalyticPixel* result); -void hsv_analytic_pixel_init_from_rgb (HSVAnalyticPixel *self, - RGBAnalyticPixel* p); -#define HSV_ANALYTIC_PIXEL_INV_255 (1.0f / 255.0f) -void hsv_analytic_pixel_init (HSVAnalyticPixel *self); -void hsv_analytic_pixel_init_from_components (HSVAnalyticPixel *self, - gfloat hue, - gfloat saturation, - gfloat light_value); -void hsv_analytic_pixel_init_from_quantized_components (HSVAnalyticPixel *self, - guchar hue_quantized, - guchar saturation_quantized, - guchar light_value_quantized); -gboolean hsv_analytic_pixel_equals (HSVAnalyticPixel *self, - HSVAnalyticPixel* rhs); -guint hsv_analytic_pixel_hash_code (HSVAnalyticPixel *self); -GType composition_mode_get_type (void) G_GNUC_CONST; -GType pixel_format_get_type (void) G_GNUC_CONST; -GType pixel_transformation_type_get_type (void) G_GNUC_CONST; -gpointer pixel_transformation_bundle_ref (gpointer instance); -void pixel_transformation_bundle_unref (gpointer instance); -GParamSpec* param_spec_pixel_transformation_bundle (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_pixel_transformation_bundle (GValue* value, - gpointer v_object); -void value_take_pixel_transformation_bundle (GValue* value, - gpointer v_object); -gpointer value_get_pixel_transformation_bundle (const GValue* value); -GType pixel_transformation_bundle_get_type (void) G_GNUC_CONST; -gpointer pixel_transformation_ref (gpointer instance); -void pixel_transformation_unref (gpointer instance); -GParamSpec* param_spec_pixel_transformation (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_pixel_transformation (GValue* value, - gpointer v_object); -void value_take_pixel_transformation (GValue* value, - gpointer v_object); -gpointer value_get_pixel_transformation (const GValue* value); -GType pixel_transformation_get_type (void) G_GNUC_CONST; -#define PIXEL_TRANSFORMATION_BUNDLE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundlePrivate)) -PixelTransformationBundle* pixel_transformation_bundle_new (void); -PixelTransformationBundle* pixel_transformation_bundle_construct (GType object_type); -PixelTransformationBundle* pixel_transformation_bundle_get_copied_color_adjustments (void); -void pixel_transformation_bundle_set_copied_color_adjustments (PixelTransformationBundle* adjustments); -gboolean pixel_transformation_bundle_has_copied_color_adjustments (void); -void pixel_transformation_bundle_set (PixelTransformationBundle* self, - PixelTransformation* transformation); -PixelTransformationType pixel_transformation_get_transformation_type (PixelTransformation* self); -void pixel_transformation_bundle_set_to_identity (PixelTransformationBundle* self); -ExpansionTransformation* expansion_transformation_new_from_extrema (gint black_point, - gint white_point); -ExpansionTransformation* expansion_transformation_construct_from_extrema (GType object_type, - gint black_point, - gint white_point); -GType hsv_transformation_get_type (void) G_GNUC_CONST; -GType expansion_transformation_get_type (void) G_GNUC_CONST; -ShadowDetailTransformation* shadow_detail_transformation_new (gfloat user_intensity); -ShadowDetailTransformation* shadow_detail_transformation_construct (GType object_type, - gfloat user_intensity); -GType shadow_detail_transformation_get_type (void) G_GNUC_CONST; -HighlightDetailTransformation* highlight_detail_transformation_new (gfloat user_intensity); -HighlightDetailTransformation* highlight_detail_transformation_construct (GType object_type, - gfloat user_intensity); -GType highlight_detail_transformation_get_type (void) G_GNUC_CONST; -TemperatureTransformation* temperature_transformation_new (gfloat client_parameter); -TemperatureTransformation* temperature_transformation_construct (GType object_type, - gfloat client_parameter); -GType rgb_transformation_get_type (void) G_GNUC_CONST; -GType temperature_transformation_get_type (void) G_GNUC_CONST; -TintTransformation* tint_transformation_new (gfloat client_param); -TintTransformation* tint_transformation_construct (GType object_type, - gfloat client_param); -GType tint_transformation_get_type (void) G_GNUC_CONST; -SaturationTransformation* saturation_transformation_new (gfloat client_parameter); -SaturationTransformation* saturation_transformation_construct (GType object_type, - gfloat client_parameter); -GType saturation_transformation_get_type (void) G_GNUC_CONST; -ExposureTransformation* exposure_transformation_new (gfloat client_parameter); -ExposureTransformation* exposure_transformation_construct (GType object_type, - gfloat client_parameter); -GType exposure_transformation_get_type (void) G_GNUC_CONST; -ContrastTransformation* contrast_transformation_new (gfloat client_parameter); -ContrastTransformation* contrast_transformation_construct (GType object_type, - gfloat client_parameter); -GType contrast_transformation_get_type (void) G_GNUC_CONST; -gpointer key_value_map_ref (gpointer instance); -void key_value_map_unref (gpointer instance); -GParamSpec* param_spec_key_value_map (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_key_value_map (GValue* value, - gpointer v_object); -void value_take_key_value_map (GValue* value, - gpointer v_object); -gpointer value_get_key_value_map (const GValue* value); -GType key_value_map_get_type (void) G_GNUC_CONST; -void pixel_transformation_bundle_load (PixelTransformationBundle* self, - KeyValueMap* store); -gchar* key_value_map_get_string (KeyValueMap* self, - const gchar* key, - const gchar* def); -ExpansionTransformation* expansion_transformation_new_from_string (const gchar* encoded_transformation); -ExpansionTransformation* expansion_transformation_construct_from_string (GType object_type, - const gchar* encoded_transformation); -gfloat key_value_map_get_float (KeyValueMap* self, - const gchar* key, - gfloat def); -KeyValueMap* pixel_transformation_bundle_save (PixelTransformationBundle* self, - const gchar* group); -KeyValueMap* key_value_map_new (const gchar* group); -KeyValueMap* key_value_map_construct (GType object_type, - const gchar* group); -PixelTransformation* pixel_transformation_bundle_get_transformation (PixelTransformationBundle* self, - PixelTransformationType type); -void key_value_map_set_string (KeyValueMap* self, - const gchar* key, - const gchar* value); -gchar* pixel_transformation_to_string (PixelTransformation* self); -void key_value_map_set_float (KeyValueMap* self, - const gchar* key, - gfloat value); -gfloat shadow_detail_transformation_get_parameter (ShadowDetailTransformation* self); -gfloat highlight_detail_transformation_get_parameter (HighlightDetailTransformation* self); -gfloat temperature_transformation_get_parameter (TemperatureTransformation* self); -gfloat tint_transformation_get_parameter (TintTransformation* self); -gfloat saturation_transformation_get_parameter (SaturationTransformation* self); -gfloat exposure_transformation_get_parameter (ExposureTransformation* self); -gfloat contrast_transformation_get_parameter (ContrastTransformation* self); -gint pixel_transformation_bundle_get_count (PixelTransformationBundle* self); -GeeIterable* pixel_transformation_bundle_get_transformations (PixelTransformationBundle* self); -gboolean pixel_transformation_bundle_is_identity (PixelTransformationBundle* self); -gboolean pixel_transformation_is_identity (PixelTransformation* self); -gpointer pixel_transformer_ref (gpointer instance); -void pixel_transformer_unref (gpointer instance); -GParamSpec* param_spec_pixel_transformer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_pixel_transformer (GValue* value, - gpointer v_object); -void value_take_pixel_transformer (GValue* value, - gpointer v_object); -gpointer value_get_pixel_transformer (const GValue* value); -GType pixel_transformer_get_type (void) G_GNUC_CONST; -PixelTransformer* pixel_transformation_bundle_generate_transformer (PixelTransformationBundle* self); -PixelTransformer* pixel_transformer_new (void); -PixelTransformer* pixel_transformer_construct (GType object_type); -void pixel_transformer_attach_transformation (PixelTransformer* self, - PixelTransformation* trans); -PixelTransformationBundle* pixel_transformation_bundle_copy (PixelTransformationBundle* self); -static void pixel_transformation_bundle_finalize (PixelTransformationBundle * obj); -#define PIXEL_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PIXEL_TRANSFORMATION, PixelTransformationPrivate)) -PixelTransformation* pixel_transformation_construct (GType object_type, - PixelTransformationType type, - PixelFormat preferred_format); -PixelFormat pixel_transformation_get_preferred_format (PixelTransformation* self); -CompositionMode pixel_transformation_get_composition_mode (PixelTransformation* self); -static CompositionMode pixel_transformation_real_get_composition_mode (PixelTransformation* self); -void pixel_transformation_compose_with (PixelTransformation* self, - PixelTransformation* other); -static void pixel_transformation_real_compose_with (PixelTransformation* self, - PixelTransformation* other); -static gboolean pixel_transformation_real_is_identity (PixelTransformation* self); -void pixel_transformation_transform_pixel_hsv (PixelTransformation* self, - HSVAnalyticPixel* p, - HSVAnalyticPixel* result); -static void pixel_transformation_real_transform_pixel_hsv (PixelTransformation* self, - HSVAnalyticPixel* p, - HSVAnalyticPixel* result); -void pixel_transformation_transform_pixel_rgb (PixelTransformation* self, - RGBAnalyticPixel* p, - RGBAnalyticPixel* result); -static void pixel_transformation_real_transform_pixel_rgb (PixelTransformation* self, - RGBAnalyticPixel* p, - RGBAnalyticPixel* result); -static gchar* pixel_transformation_real_to_string (PixelTransformation* self); -PixelTransformation* pixel_transformation_copy (PixelTransformation* self); -static PixelTransformation* pixel_transformation_real_copy (PixelTransformation* self); -static void pixel_transformation_finalize (PixelTransformation * obj); -#define RGB_TRANSFORMATION_MATRIX_SIZE 16 -RGBTransformation* rgb_transformation_new (PixelTransformationType type); -RGBTransformation* rgb_transformation_construct (GType object_type, - PixelTransformationType type); -static CompositionMode rgb_transformation_real_get_composition_mode (PixelTransformation* base); -static void rgb_transformation_real_compose_with (PixelTransformation* base, - PixelTransformation* other); -static void rgb_transformation_real_transform_pixel_hsv (PixelTransformation* base, - HSVAnalyticPixel* p, - HSVAnalyticPixel* result); -static void rgb_transformation_real_transform_pixel_rgb (PixelTransformation* base, - RGBAnalyticPixel* p, - RGBAnalyticPixel* result); -static gboolean rgb_transformation_real_is_identity (PixelTransformation* base); -static PixelTransformation* rgb_transformation_real_copy (PixelTransformation* base); -static void rgb_transformation_finalize (PixelTransformation * obj); -HSVTransformation* hsv_transformation_construct (GType object_type, - PixelTransformationType type); -static CompositionMode hsv_transformation_real_get_composition_mode (PixelTransformation* base); -static void hsv_transformation_real_transform_pixel_rgb (PixelTransformation* base, - RGBAnalyticPixel* p, - RGBAnalyticPixel* result); -static void hsv_transformation_real_compose_with (PixelTransformation* base, - PixelTransformation* other); -static void hsv_transformation_real_transform_pixel_hsv (PixelTransformation* base, - HSVAnalyticPixel* pixel, - HSVAnalyticPixel* result); -static void hsv_transformation_finalize (PixelTransformation * obj); -#define TINT_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TINT_TRANSFORMATION, TintTransformationPrivate)) -#define TINT_TRANSFORMATION_INTENSITY_FACTOR 0.25f -#define TINT_TRANSFORMATION_MIN_PARAMETER (-16.0f) -#define TINT_TRANSFORMATION_MAX_PARAMETER 16.0f -static void tint_transformation_finalize (PixelTransformation * obj); -#define TEMPERATURE_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformationPrivate)) -#define TEMPERATURE_TRANSFORMATION_INTENSITY_FACTOR 0.33f -#define TEMPERATURE_TRANSFORMATION_MIN_PARAMETER (-16.0f) -#define TEMPERATURE_TRANSFORMATION_MAX_PARAMETER 16.0f -static void temperature_transformation_finalize (PixelTransformation * obj); -#define SATURATION_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SATURATION_TRANSFORMATION, SaturationTransformationPrivate)) -#define SATURATION_TRANSFORMATION_MIN_PARAMETER (-16.0f) -#define SATURATION_TRANSFORMATION_MAX_PARAMETER 16.0f -static void saturation_transformation_finalize (PixelTransformation * obj); -#define EXPOSURE_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformationPrivate)) -#define EXPOSURE_TRANSFORMATION_MIN_PARAMETER (-16.0f) -#define EXPOSURE_TRANSFORMATION_MAX_PARAMETER 16.0f -static void exposure_transformation_finalize (PixelTransformation * obj); -#define CONTRAST_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CONTRAST_TRANSFORMATION, ContrastTransformationPrivate)) -#define CONTRAST_TRANSFORMATION_MIN_PARAMETER (-16.0f) -#define CONTRAST_TRANSFORMATION_MAX_PARAMETER 16.0f -#define CONTRAST_TRANSFORMATION_MAX_CONTRAST_ADJUSTMENT 0.5f -static void contrast_transformation_finalize (PixelTransformation * obj); -#define PIXEL_TRANSFORMER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PIXEL_TRANSFORMER, PixelTransformerPrivate)) -PixelTransformer* pixel_transformer_copy (PixelTransformer* self); -static void pixel_transformer_build_optimized_transformations (PixelTransformer* self); -void pixel_transformer_apply_transformations (PixelTransformer* self, - RGBAnalyticPixel* p, - RGBAnalyticPixel* result); -void pixel_transformer_detach_transformation (PixelTransformer* self, - PixelTransformation* victim); -void pixel_transformer_replace_transformation (PixelTransformer* self, - PixelTransformation* old_trans, - PixelTransformation* new_trans); -void pixel_transformer_transform_pixbuf (PixelTransformer* self, - GdkPixbuf* pixbuf, - GCancellable* cancellable); -void pixel_transformer_transform_to_other_pixbuf (PixelTransformer* self, - GdkPixbuf* source, - GdkPixbuf* dest, - GCancellable* cancellable, - gint jobs); -void pixel_transformer_transform_from_fp (PixelTransformer* self, - gfloat** fp_pixel_cache, - int* fp_pixel_cache_length1, - GdkPixbuf* dest); -static Block1Data* block1_data_ref (Block1Data* _data1_); -static void block1_data_unref (void * _userdata_); -static Block2Data* block2_data_ref (Block2Data* _data2_); -static void block2_data_unref (void * _userdata_); -static void* _____lambda5_ (Block2Data* _data2_); -static gpointer ______lambda5__gthread_func (gpointer self); -static Block3Data* block3_data_ref (Block3Data* _data3_); -static void block3_data_unref (void * _userdata_); -static Block4Data* block4_data_ref (Block4Data* _data4_); -static void block4_data_unref (void * _userdata_); -static void* _____lambda4_ (Block4Data* _data4_); -void pixel_transformer_apply_transformation (PixelTransformer* self, - guint row, - gint rowstride, - gint rowbytes, - gint n_channels, - guchar* source_pixels, - int source_pixels_length1, - guchar* dest_pixels, - int dest_pixels_length1); -static gpointer ______lambda4__gthread_func (gpointer self); -static void pixel_transformer_finalize (PixelTransformer * obj); -gpointer rgb_histogram_ref (gpointer instance); -void rgb_histogram_unref (gpointer instance); -GParamSpec* param_spec_rgb_histogram (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_rgb_histogram (GValue* value, - gpointer v_object); -void value_take_rgb_histogram (GValue* value, - gpointer v_object); -gpointer value_get_rgb_histogram (const GValue* value); -GType rgb_histogram_get_type (void) G_GNUC_CONST; -#define RGB_HISTOGRAM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_RGB_HISTOGRAM, RGBHistogramPrivate)) -#define RGB_HISTOGRAM_MARKED_BACKGROUND ((guchar) 30) -#define RGB_HISTOGRAM_MARKED_FOREGROUND ((guchar) 210) -#define RGB_HISTOGRAM_UNMARKED_BACKGROUND ((guchar) 120) -#define RGB_HISTOGRAM_GRAPHIC_WIDTH 256 -#define RGB_HISTOGRAM_GRAPHIC_HEIGHT 100 -RGBHistogram* rgb_histogram_new (GdkPixbuf* pixbuf); -RGBHistogram* rgb_histogram_construct (GType object_type, - GdkPixbuf* pixbuf); -static gint rgb_histogram_correct_snap_to_quantization (RGBHistogram* self, - gint* buckets, - int buckets_length1, - gint i); -static gint rgb_histogram_correct_snap_from_quantization (RGBHistogram* self, - gint* buckets, - int buckets_length1, - gint i); -static void rgb_histogram_smooth_extrema (RGBHistogram* self, - gint** count_data, - int* count_data_length1); -static void rgb_histogram_prepare_qualitative_counts (RGBHistogram* self); -GdkPixbuf* rgb_histogram_get_graphic (RGBHistogram* self); -static void rgb_histogram_finalize (RGBHistogram * obj); -gpointer intensity_histogram_ref (gpointer instance); -void intensity_histogram_unref (gpointer instance); -GParamSpec* param_spec_intensity_histogram (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_intensity_histogram (GValue* value, - gpointer v_object); -void value_take_intensity_histogram (GValue* value, - gpointer v_object); -gpointer value_get_intensity_histogram (const GValue* value); -GType intensity_histogram_get_type (void) G_GNUC_CONST; -#define INTENSITY_HISTOGRAM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_INTENSITY_HISTOGRAM, IntensityHistogramPrivate)) -IntensityHistogram* intensity_histogram_new (GdkPixbuf* pixbuf); -IntensityHistogram* intensity_histogram_construct (GType object_type, - GdkPixbuf* pixbuf); -gfloat intensity_histogram_get_cumulative_probability (IntensityHistogram* self, - gint level); -static void intensity_histogram_finalize (IntensityHistogram * obj); -#define EXPANSION_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformationPrivate)) -#define EXPANSION_TRANSFORMATION_LOW_DISCARD_MASS 0.02f -#define EXPANSION_TRANSFORMATION_HIGH_DISCARD_MASS 0.02f -ExpansionTransformation* expansion_transformation_new (IntensityHistogram* histogram); -ExpansionTransformation* expansion_transformation_construct (GType object_type, - IntensityHistogram* histogram); -static void expansion_transformation_build_remap_table (ExpansionTransformation* self); -static gchar* expansion_transformation_real_to_string (PixelTransformation* base); -gint expansion_transformation_get_white_point (ExpansionTransformation* self); -gint expansion_transformation_get_black_point (ExpansionTransformation* self); -static gboolean expansion_transformation_real_is_identity (PixelTransformation* base); -static PixelTransformation* expansion_transformation_real_copy (PixelTransformation* base); -static void expansion_transformation_finalize (PixelTransformation * obj); -#define SHADOW_DETAIL_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformationPrivate)) -#define SHADOW_DETAIL_TRANSFORMATION_MAX_EFFECT_SHIFT 0.5f -#define SHADOW_DETAIL_TRANSFORMATION_MIN_TONAL_WIDTH 0.1f -#define SHADOW_DETAIL_TRANSFORMATION_MAX_TONAL_WIDTH 1.0f -#define SHADOW_DETAIL_TRANSFORMATION_TONAL_WIDTH 1.0f -#define SHADOW_DETAIL_TRANSFORMATION_MIN_PARAMETER 0.0f -#define SHADOW_DETAIL_TRANSFORMATION_MAX_PARAMETER 32.0f -gpointer hermite_gamma_approximation_function_ref (gpointer instance); -void hermite_gamma_approximation_function_unref (gpointer instance); -GParamSpec* param_spec_hermite_gamma_approximation_function (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_hermite_gamma_approximation_function (GValue* value, - gpointer v_object); -void value_take_hermite_gamma_approximation_function (GValue* value, - gpointer v_object); -gpointer value_get_hermite_gamma_approximation_function (const GValue* value); -GType hermite_gamma_approximation_function_get_type (void) G_GNUC_CONST; -HermiteGammaApproximationFunction* hermite_gamma_approximation_function_new (gfloat user_interval_upper); -HermiteGammaApproximationFunction* hermite_gamma_approximation_function_construct (GType object_type, - gfloat user_interval_upper); -gfloat hermite_gamma_approximation_function_evaluate (HermiteGammaApproximationFunction* self, - gfloat x); -static PixelTransformation* shadow_detail_transformation_real_copy (PixelTransformation* base); -static gboolean shadow_detail_transformation_real_is_identity (PixelTransformation* base); -static void shadow_detail_transformation_finalize (PixelTransformation * obj); -#define HERMITE_GAMMA_APPROXIMATION_FUNCTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, HermiteGammaApproximationFunctionPrivate)) -static void hermite_gamma_approximation_function_finalize (HermiteGammaApproximationFunction * obj); -#define HIGHLIGHT_DETAIL_TRANSFORMATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformationPrivate)) -#define HIGHLIGHT_DETAIL_TRANSFORMATION_MAX_EFFECT_SHIFT 0.5f -#define HIGHLIGHT_DETAIL_TRANSFORMATION_MIN_TONAL_WIDTH 0.1f -#define HIGHLIGHT_DETAIL_TRANSFORMATION_MAX_TONAL_WIDTH 1.0f -#define HIGHLIGHT_DETAIL_TRANSFORMATION_TONAL_WIDTH 1.0f -#define HIGHLIGHT_DETAIL_TRANSFORMATION_MIN_PARAMETER (-32.0f) -#define HIGHLIGHT_DETAIL_TRANSFORMATION_MAX_PARAMETER 0.0f -static PixelTransformation* highlight_detail_transformation_real_copy (PixelTransformation* base); -static gboolean highlight_detail_transformation_real_is_identity (PixelTransformation* base); -static void highlight_detail_transformation_finalize (PixelTransformation * obj); -#define AUTO_ENHANCE_SHADOW_DETECT_MIN_INTENSITY 8 -#define AUTO_ENHANCE_SHADOW_DETECT_MAX_INTENSITY 100 -#define AUTO_ENHANCE_SHADOW_DETECT_INTENSITY_RANGE (AUTO_ENHANCE_SHADOW_DETECT_MAX_INTENSITY - AUTO_ENHANCE_SHADOW_DETECT_MIN_INTENSITY) -#define AUTO_ENHANCE_SHADOW_MODE_HIGH_DISCARD_MASS 0.02f -#define AUTO_ENHANCE_SHADOW_AGGRESSIVENESS_MUL 0.4f -#define AUTO_ENHANCE_EMPIRICAL_DARK 30 -PixelTransformationBundle* auto_enhance_create_auto_enhance_adjustments (GdkPixbuf* pixbuf); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - -const gfloat rgb_lookup_table[256] = {0.0f / 255.0f, 1.0f / 255.0f, 2.0f / 255.0f, 3.0f / 255.0f, 4.0f / 255.0f, 5.0f / 255.0f, 6.0f / 255.0f, 7.0f / 255.0f, 8.0f / 255.0f, 9.0f / 255.0f, 10.0f / 255.0f, 11.0f / 255.0f, 12.0f / 255.0f, 13.0f / 255.0f, 14.0f / 255.0f, 15.0f / 255.0f, 16.0f / 255.0f, 17.0f / 255.0f, 18.0f / 255.0f, 19.0f / 255.0f, 20.0f / 255.0f, 21.0f / 255.0f, 22.0f / 255.0f, 23.0f / 255.0f, 24.0f / 255.0f, 25.0f / 255.0f, 26.0f / 255.0f, 27.0f / 255.0f, 28.0f / 255.0f, 29.0f / 255.0f, 30.0f / 255.0f, 31.0f / 255.0f, 32.0f / 255.0f, 33.0f / 255.0f, 34.0f / 255.0f, 35.0f / 255.0f, 36.0f / 255.0f, 37.0f / 255.0f, 38.0f / 255.0f, 39.0f / 255.0f, 40.0f / 255.0f, 41.0f / 255.0f, 42.0f / 255.0f, 43.0f / 255.0f, 44.0f / 255.0f, 45.0f / 255.0f, 46.0f / 255.0f, 47.0f / 255.0f, 48.0f / 255.0f, 49.0f / 255.0f, 50.0f / 255.0f, 51.0f / 255.0f, 52.0f / 255.0f, 53.0f / 255.0f, 54.0f / 255.0f, 55.0f / 255.0f, 56.0f / 255.0f, 57.0f / 255.0f, 58.0f / 255.0f, 59.0f / 255.0f, 60.0f / 255.0f, 61.0f / 255.0f, 62.0f / 255.0f, 63.0f / 255.0f, 64.0f / 255.0f, 65.0f / 255.0f, 66.0f / 255.0f, 67.0f / 255.0f, 68.0f / 255.0f, 69.0f / 255.0f, 70.0f / 255.0f, 71.0f / 255.0f, 72.0f / 255.0f, 73.0f / 255.0f, 74.0f / 255.0f, 75.0f / 255.0f, 76.0f / 255.0f, 77.0f / 255.0f, 78.0f / 255.0f, 79.0f / 255.0f, 80.0f / 255.0f, 81.0f / 255.0f, 82.0f / 255.0f, 83.0f / 255.0f, 84.0f / 255.0f, 85.0f / 255.0f, 86.0f / 255.0f, 87.0f / 255.0f, 88.0f / 255.0f, 89.0f / 255.0f, 90.0f / 255.0f, 91.0f / 255.0f, 92.0f / 255.0f, 93.0f / 255.0f, 94.0f / 255.0f, 95.0f / 255.0f, 96.0f / 255.0f, 97.0f / 255.0f, 98.0f / 255.0f, 99.0f / 255.0f, 100.0f / 255.0f, 101.0f / 255.0f, 102.0f / 255.0f, 103.0f / 255.0f, 104.0f / 255.0f, 105.0f / 255.0f, 106.0f / 255.0f, 107.0f / 255.0f, 108.0f / 255.0f, 109.0f / 255.0f, 110.0f / 255.0f, 111.0f / 255.0f, 112.0f / 255.0f, 113.0f / 255.0f, 114.0f / 255.0f, 115.0f / 255.0f, 116.0f / 255.0f, 117.0f / 255.0f, 118.0f / 255.0f, 119.0f / 255.0f, 120.0f / 255.0f, 121.0f / 255.0f, 122.0f / 255.0f, 123.0f / 255.0f, 124.0f / 255.0f, 125.0f / 255.0f, 126.0f / 255.0f, 127.0f / 255.0f, 128.0f / 255.0f, 129.0f / 255.0f, 130.0f / 255.0f, 131.0f / 255.0f, 132.0f / 255.0f, 133.0f / 255.0f, 134.0f / 255.0f, 135.0f / 255.0f, 136.0f / 255.0f, 137.0f / 255.0f, 138.0f / 255.0f, 139.0f / 255.0f, 140.0f / 255.0f, 141.0f / 255.0f, 142.0f / 255.0f, 143.0f / 255.0f, 144.0f / 255.0f, 145.0f / 255.0f, 146.0f / 255.0f, 147.0f / 255.0f, 148.0f / 255.0f, 149.0f / 255.0f, 150.0f / 255.0f, 151.0f / 255.0f, 152.0f / 255.0f, 153.0f / 255.0f, 154.0f / 255.0f, 155.0f / 255.0f, 156.0f / 255.0f, 157.0f / 255.0f, 158.0f / 255.0f, 159.0f / 255.0f, 160.0f / 255.0f, 161.0f / 255.0f, 162.0f / 255.0f, 163.0f / 255.0f, 164.0f / 255.0f, 165.0f / 255.0f, 166.0f / 255.0f, 167.0f / 255.0f, 168.0f / 255.0f, 169.0f / 255.0f, 170.0f / 255.0f, 171.0f / 255.0f, 172.0f / 255.0f, 173.0f / 255.0f, 174.0f / 255.0f, 175.0f / 255.0f, 176.0f / 255.0f, 177.0f / 255.0f, 178.0f / 255.0f, 179.0f / 255.0f, 180.0f / 255.0f, 181.0f / 255.0f, 182.0f / 255.0f, 183.0f / 255.0f, 184.0f / 255.0f, 185.0f / 255.0f, 186.0f / 255.0f, 187.0f / 255.0f, 188.0f / 255.0f, 189.0f / 255.0f, 190.0f / 255.0f, 191.0f / 255.0f, 192.0f / 255.0f, 193.0f / 255.0f, 194.0f / 255.0f, 195.0f / 255.0f, 196.0f / 255.0f, 197.0f / 255.0f, 198.0f / 255.0f, 199.0f / 255.0f, 200.0f / 255.0f, 201.0f / 255.0f, 202.0f / 255.0f, 203.0f / 255.0f, 204.0f / 255.0f, 205.0f / 255.0f, 206.0f / 255.0f, 207.0f / 255.0f, 208.0f / 255.0f, 209.0f / 255.0f, 210.0f / 255.0f, 211.0f / 255.0f, 212.0f / 255.0f, 213.0f / 255.0f, 214.0f / 255.0f, 215.0f / 255.0f, 216.0f / 255.0f, 217.0f / 255.0f, 218.0f / 255.0f, 219.0f / 255.0f, 220.0f / 255.0f, 221.0f / 255.0f, 222.0f / 255.0f, 223.0f / 255.0f, 224.0f / 255.0f, 225.0f / 255.0f, 226.0f / 255.0f, 227.0f / 255.0f, 228.0f / 255.0f, 229.0f / 255.0f, 230.0f / 255.0f, 231.0f / 255.0f, 232.0f / 255.0f, 233.0f / 255.0f, 234.0f / 255.0f, 235.0f / 255.0f, 236.0f / 255.0f, 237.0f / 255.0f, 238.0f / 255.0f, 239.0f / 255.0f, 240.0f / 255.0f, 241.0f / 255.0f, 242.0f / 255.0f, 243.0f / 255.0f, 244.0f / 255.0f, 245.0f / 255.0f, 246.0f / 255.0f, 247.0f / 255.0f, 248.0f / 255.0f, 249.0f / 255.0f, 250.0f / 255.0f, 251.0f / 255.0f, 252.0f / 255.0f, 253.0f / 255.0f, 254.0f / 255.0f, 255.0f / 255.0f}; - -void -rgb_analytic_pixel_init (RGBAnalyticPixel *self) -{ -#line 14 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - memset (self, 0, sizeof (RGBAnalyticPixel)); -#line 15 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).red = 0.0f; -#line 16 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).green = 0.0f; -#line 17 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).blue = 0.0f; -#line 1069 "ColorTransformation.c" -} - - -void -rgb_analytic_pixel_init_from_components (RGBAnalyticPixel *self, - gfloat red, - gfloat green, - gfloat blue) -{ -#line 20 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - memset (self, 0, sizeof (RGBAnalyticPixel)); -#line 22 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).red = CLAMP (red, 0.0f, 1.0f); -#line 23 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).green = CLAMP (green, 0.0f, 1.0f); -#line 24 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).blue = CLAMP (blue, 0.0f, 1.0f); -#line 1087 "ColorTransformation.c" -} - - -void -rgb_analytic_pixel_init_from_quantized_components (RGBAnalyticPixel *self, - guchar red_quantized, - guchar green_quantized, - guchar blue_quantized) -{ - gfloat _tmp0_; - gfloat _tmp1_; - gfloat _tmp2_; -#line 27 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - memset (self, 0, sizeof (RGBAnalyticPixel)); -#line 29 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = rgb_lookup_table[red_quantized]; -#line 29 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).red = _tmp0_; -#line 30 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = rgb_lookup_table[green_quantized]; -#line 30 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).green = _tmp1_; -#line 31 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = rgb_lookup_table[blue_quantized]; -#line 31 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).blue = _tmp2_; -#line 1114 "ColorTransformation.c" -} - - -void -rgb_analytic_pixel_init_from_hsv (RGBAnalyticPixel *self, - HSVAnalyticPixel* hsv_pixel) -{ - RGBAnalyticPixel from_hsv = {0}; - RGBAnalyticPixel _tmp0_ = {0}; - RGBAnalyticPixel _tmp1_; - gfloat _tmp2_; - RGBAnalyticPixel _tmp3_; - gfloat _tmp4_; - RGBAnalyticPixel _tmp5_; - gfloat _tmp6_; -#line 34 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - memset (self, 0, sizeof (RGBAnalyticPixel)); -#line 35 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - hsv_analytic_pixel_to_rgb (hsv_pixel, &_tmp0_); -#line 35 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - from_hsv = _tmp0_; -#line 36 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = from_hsv; -#line 36 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = _tmp1_.red; -#line 36 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).red = _tmp2_; -#line 37 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = from_hsv; -#line 37 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = _tmp3_.green; -#line 37 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).green = _tmp4_; -#line 38 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = from_hsv; -#line 38 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = _tmp5_.blue; -#line 38 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).blue = _tmp6_; -#line 1154 "ColorTransformation.c" -} - - -guchar -rgb_analytic_pixel_quantized_red (RGBAnalyticPixel *self) -{ - guchar result = '\0'; - gfloat _tmp0_; -#line 42 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = (*self).red; -#line 42 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = (guchar) (_tmp0_ * 255.0f); -#line 42 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 1169 "ColorTransformation.c" -} - - -guchar -rgb_analytic_pixel_quantized_green (RGBAnalyticPixel *self) -{ - guchar result = '\0'; - gfloat _tmp0_; -#line 46 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = (*self).green; -#line 46 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = (guchar) (_tmp0_ * 255.0f); -#line 46 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 1184 "ColorTransformation.c" -} - - -guchar -rgb_analytic_pixel_quantized_blue (RGBAnalyticPixel *self) -{ - guchar result = '\0'; - gfloat _tmp0_; -#line 50 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = (*self).blue; -#line 50 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = (guchar) (_tmp0_ * 255.0f); -#line 50 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 1199 "ColorTransformation.c" -} - - -gboolean -rgb_analytic_pixel_equals (RGBAnalyticPixel *self, - RGBAnalyticPixel* rhs) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gfloat _tmp2_; - gfloat _tmp3_; -#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = (*self).red; -#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = (*rhs).red; -#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp2_ == _tmp3_) { -#line 1218 "ColorTransformation.c" - gfloat _tmp4_; - gfloat _tmp5_; -#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = (*self).green; -#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = (*rhs).green; -#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = _tmp4_ == _tmp5_; -#line 1227 "ColorTransformation.c" - } else { -#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = FALSE; -#line 1231 "ColorTransformation.c" - } -#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp1_) { -#line 1235 "ColorTransformation.c" - gfloat _tmp6_; - gfloat _tmp7_; -#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = (*self).blue; -#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = (*rhs).blue; -#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = _tmp6_ == _tmp7_; -#line 1244 "ColorTransformation.c" - } else { -#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = FALSE; -#line 1248 "ColorTransformation.c" - } -#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_; -#line 54 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 1254 "ColorTransformation.c" -} - - -guint -rgb_analytic_pixel_hash_code (RGBAnalyticPixel *self) -{ - guint result = 0U; - gfloat _tmp0_; - gfloat _tmp1_; - gfloat _tmp2_; -#line 58 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = (*self).red; -#line 58 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = (*self).green; -#line 58 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = (*self).blue; -#line 58 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = ((((guint) (_tmp0_ * 255.0f)) << 16) + (((guint) (_tmp1_ * 255.0f)) << 8)) + ((guint) (_tmp2_ * 255.0f)); -#line 58 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 1275 "ColorTransformation.c" -} - - -void -rgb_analytic_pixel_to_hsv (RGBAnalyticPixel *self, - HSVAnalyticPixel* result) -{ - HSVAnalyticPixel _tmp0_ = {0}; -#line 63 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - hsv_analytic_pixel_init_from_rgb (&_tmp0_, &(*self)); -#line 63 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *result = _tmp0_; -#line 63 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return; -#line 1290 "ColorTransformation.c" -} - - -RGBAnalyticPixel* -rgb_analytic_pixel_dup (const RGBAnalyticPixel* self) -{ - RGBAnalyticPixel* dup; -#line 7 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - dup = g_new0 (RGBAnalyticPixel, 1); -#line 7 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - memcpy (dup, self, sizeof (RGBAnalyticPixel)); -#line 7 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return dup; -#line 1304 "ColorTransformation.c" -} - - -void -rgb_analytic_pixel_free (RGBAnalyticPixel* self) -{ -#line 7 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_free (self); -#line 1313 "ColorTransformation.c" -} - - -GType -rgb_analytic_pixel_get_type (void) -{ - static volatile gsize rgb_analytic_pixel_type_id__volatile = 0; - if (g_once_init_enter (&rgb_analytic_pixel_type_id__volatile)) { - GType rgb_analytic_pixel_type_id; - rgb_analytic_pixel_type_id = g_boxed_type_register_static ("RGBAnalyticPixel", (GBoxedCopyFunc) rgb_analytic_pixel_dup, (GBoxedFreeFunc) rgb_analytic_pixel_free); - g_once_init_leave (&rgb_analytic_pixel_type_id__volatile, rgb_analytic_pixel_type_id); - } - return rgb_analytic_pixel_type_id__volatile; -} - - -void -hsv_analytic_pixel_init (HSVAnalyticPixel *self) -{ -#line 74 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - memset (self, 0, sizeof (HSVAnalyticPixel)); -#line 75 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).hue = 0.0f; -#line 76 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).saturation = 0.0f; -#line 77 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).light_value = 0.0f; -#line 1341 "ColorTransformation.c" -} - - -void -hsv_analytic_pixel_init_from_components (HSVAnalyticPixel *self, - gfloat hue, - gfloat saturation, - gfloat light_value) -{ -#line 80 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - memset (self, 0, sizeof (HSVAnalyticPixel)); -#line 82 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).hue = CLAMP (hue, 0.0f, 1.0f); -#line 83 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).saturation = CLAMP (saturation, 0.0f, 1.0f); -#line 84 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).light_value = CLAMP (light_value, 0.0f, 1.0f); -#line 1359 "ColorTransformation.c" -} - - -void -hsv_analytic_pixel_init_from_quantized_components (HSVAnalyticPixel *self, - guchar hue_quantized, - guchar saturation_quantized, - guchar light_value_quantized) -{ - gfloat _tmp0_; - gfloat _tmp1_; - gfloat _tmp2_; -#line 87 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - memset (self, 0, sizeof (HSVAnalyticPixel)); -#line 89 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = rgb_lookup_table[hue_quantized]; -#line 89 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).hue = _tmp0_; -#line 90 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = rgb_lookup_table[saturation_quantized]; -#line 90 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).saturation = _tmp1_; -#line 91 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = rgb_lookup_table[light_value_quantized]; -#line 91 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*self).light_value = _tmp2_; -#line 1386 "ColorTransformation.c" -} - - -gboolean -hsv_analytic_pixel_equals (HSVAnalyticPixel *self, - HSVAnalyticPixel* rhs) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gfloat _tmp2_; - HSVAnalyticPixel _tmp3_; - gfloat _tmp4_; -#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = (*self).hue; -#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = *rhs; -#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = _tmp3_.hue; -#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp2_ == _tmp4_) { -#line 1408 "ColorTransformation.c" - gfloat _tmp5_; - HSVAnalyticPixel _tmp6_; - gfloat _tmp7_; -#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = (*self).saturation; -#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = *rhs; -#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = _tmp6_.saturation; -#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = _tmp5_ == _tmp7_; -#line 1420 "ColorTransformation.c" - } else { -#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = FALSE; -#line 1424 "ColorTransformation.c" - } -#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp1_) { -#line 1428 "ColorTransformation.c" - gfloat _tmp8_; - HSVAnalyticPixel _tmp9_; - gfloat _tmp10_; -#line 100 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = (*self).light_value; -#line 100 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = *rhs; -#line 100 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = _tmp9_.light_value; -#line 100 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = _tmp8_ == _tmp10_; -#line 1440 "ColorTransformation.c" - } else { -#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = FALSE; -#line 1444 "ColorTransformation.c" - } -#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_; -#line 99 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 1450 "ColorTransformation.c" -} - - -guint -hsv_analytic_pixel_hash_code (HSVAnalyticPixel *self) -{ - guint result = 0U; - gfloat _tmp0_; - gfloat _tmp1_; - gfloat _tmp2_; -#line 104 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = (*self).hue; -#line 104 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = (*self).saturation; -#line 104 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = (*self).light_value; -#line 104 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = ((((guint) (_tmp0_ * 255.0f)) << 16) + (((guint) (_tmp1_ * 255.0f)) << 8)) + ((guint) (_tmp2_ * 255.0f)); -#line 104 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 1471 "ColorTransformation.c" -} - - -HSVAnalyticPixel* -hsv_analytic_pixel_dup (const HSVAnalyticPixel* self) -{ - HSVAnalyticPixel* dup; -#line 67 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - dup = g_new0 (HSVAnalyticPixel, 1); -#line 67 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - memcpy (dup, self, sizeof (HSVAnalyticPixel)); -#line 67 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return dup; -#line 1485 "ColorTransformation.c" -} - - -void -hsv_analytic_pixel_free (HSVAnalyticPixel* self) -{ -#line 67 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_free (self); -#line 1494 "ColorTransformation.c" -} - - -GType -hsv_analytic_pixel_get_type (void) -{ - static volatile gsize hsv_analytic_pixel_type_id__volatile = 0; - if (g_once_init_enter (&hsv_analytic_pixel_type_id__volatile)) { - GType hsv_analytic_pixel_type_id; - hsv_analytic_pixel_type_id = g_boxed_type_register_static ("HSVAnalyticPixel", (GBoxedCopyFunc) hsv_analytic_pixel_dup, (GBoxedFreeFunc) hsv_analytic_pixel_free); - g_once_init_leave (&hsv_analytic_pixel_type_id__volatile, hsv_analytic_pixel_type_id); - } - return hsv_analytic_pixel_type_id__volatile; -} - - -GType -composition_mode_get_type (void) -{ - static volatile gsize composition_mode_type_id__volatile = 0; - if (g_once_init_enter (&composition_mode_type_id__volatile)) { - static const GEnumValue values[] = {{COMPOSITION_MODE_NONE, "COMPOSITION_MODE_NONE", "none"}, {COMPOSITION_MODE_RGB_MATRIX, "COMPOSITION_MODE_RGB_MATRIX", "rgb-matrix"}, {COMPOSITION_MODE_HSV_LOOKUP, "COMPOSITION_MODE_HSV_LOOKUP", "hsv-lookup"}, {0, NULL, NULL}}; - GType composition_mode_type_id; - composition_mode_type_id = g_enum_register_static ("CompositionMode", values); - g_once_init_leave (&composition_mode_type_id__volatile, composition_mode_type_id); - } - return composition_mode_type_id__volatile; -} - - -GType -pixel_format_get_type (void) -{ - static volatile gsize pixel_format_type_id__volatile = 0; - if (g_once_init_enter (&pixel_format_type_id__volatile)) { - static const GEnumValue values[] = {{PIXEL_FORMAT_RGB, "PIXEL_FORMAT_RGB", "rgb"}, {PIXEL_FORMAT_HSV, "PIXEL_FORMAT_HSV", "hsv"}, {0, NULL, NULL}}; - GType pixel_format_type_id; - pixel_format_type_id = g_enum_register_static ("PixelFormat", values); - g_once_init_leave (&pixel_format_type_id__volatile, pixel_format_type_id); - } - return pixel_format_type_id__volatile; -} - - -GType -pixel_transformation_type_get_type (void) -{ - static volatile gsize pixel_transformation_type_type_id__volatile = 0; - if (g_once_init_enter (&pixel_transformation_type_type_id__volatile)) { - static const GEnumValue values[] = {{PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION, "PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION", "tone-expansion"}, {PIXEL_TRANSFORMATION_TYPE_SHADOWS, "PIXEL_TRANSFORMATION_TYPE_SHADOWS", "shadows"}, {PIXEL_TRANSFORMATION_TYPE_HIGHLIGHTS, "PIXEL_TRANSFORMATION_TYPE_HIGHLIGHTS", "highlights"}, {PIXEL_TRANSFORMATION_TYPE_TEMPERATURE, "PIXEL_TRANSFORMATION_TYPE_TEMPERATURE", "temperature"}, {PIXEL_TRANSFORMATION_TYPE_TINT, "PIXEL_TRANSFORMATION_TYPE_TINT", "tint"}, {PIXEL_TRANSFORMATION_TYPE_SATURATION, "PIXEL_TRANSFORMATION_TYPE_SATURATION", "saturation"}, {PIXEL_TRANSFORMATION_TYPE_EXPOSURE, "PIXEL_TRANSFORMATION_TYPE_EXPOSURE", "exposure"}, {PIXEL_TRANSFORMATION_TYPE_CONTRAST, "PIXEL_TRANSFORMATION_TYPE_CONTRAST", "contrast"}, {0, NULL, NULL}}; - GType pixel_transformation_type_type_id; - pixel_transformation_type_type_id = g_enum_register_static ("PixelTransformationType", values); - g_once_init_leave (&pixel_transformation_type_type_id__volatile, pixel_transformation_type_type_id); - } - return pixel_transformation_type_type_id__volatile; -} - - -PixelTransformationBundle* -pixel_transformation_bundle_construct (GType object_type) -{ - PixelTransformationBundle* self = NULL; -#line 137 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (PixelTransformationBundle*) g_type_create_instance (object_type); -#line 137 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 1561 "ColorTransformation.c" -} - - -PixelTransformationBundle* -pixel_transformation_bundle_new (void) -{ -#line 137 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return pixel_transformation_bundle_construct (TYPE_PIXEL_TRANSFORMATION_BUNDLE); -#line 1570 "ColorTransformation.c" -} - - -static gpointer -_pixel_transformation_bundle_ref0 (gpointer self) -{ -#line 141 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self ? pixel_transformation_bundle_ref (self) : NULL; -#line 1579 "ColorTransformation.c" -} - - -PixelTransformationBundle* -pixel_transformation_bundle_get_copied_color_adjustments (void) -{ - PixelTransformationBundle* result = NULL; - PixelTransformationBundle* _tmp0_; - PixelTransformationBundle* _tmp1_; -#line 141 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = pixel_transformation_bundle_copied_color_adjustments; -#line 141 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = _pixel_transformation_bundle_ref0 (_tmp0_); -#line 141 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp1_; -#line 141 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 1597 "ColorTransformation.c" -} - - -void -pixel_transformation_bundle_set_copied_color_adjustments (PixelTransformationBundle* adjustments) -{ - PixelTransformationBundle* _tmp0_; -#line 145 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = _pixel_transformation_bundle_ref0 (adjustments); -#line 145 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_bundle_unref0 (pixel_transformation_bundle_copied_color_adjustments); -#line 145 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_copied_color_adjustments = _tmp0_; -#line 1611 "ColorTransformation.c" -} - - -gboolean -pixel_transformation_bundle_has_copied_color_adjustments (void) -{ - gboolean result = FALSE; - PixelTransformationBundle* _tmp0_; -#line 149 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = pixel_transformation_bundle_copied_color_adjustments; -#line 149 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_ != NULL; -#line 149 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 1626 "ColorTransformation.c" -} - - -void -pixel_transformation_bundle_set (PixelTransformationBundle* self, - PixelTransformation* transformation) -{ - GeeHashMap* _tmp0_; -#line 153 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->map; -#line 153 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) ((gint) pixel_transformation_get_transformation_type (transformation))), transformation); -#line 1639 "ColorTransformation.c" -} - - -void -pixel_transformation_bundle_set_to_identity (PixelTransformationBundle* self) -{ - ExpansionTransformation* _tmp0_; - ExpansionTransformation* _tmp1_; - ShadowDetailTransformation* _tmp2_; - ShadowDetailTransformation* _tmp3_; - HighlightDetailTransformation* _tmp4_; - HighlightDetailTransformation* _tmp5_; - TemperatureTransformation* _tmp6_; - TemperatureTransformation* _tmp7_; - TintTransformation* _tmp8_; - TintTransformation* _tmp9_; - SaturationTransformation* _tmp10_; - SaturationTransformation* _tmp11_; - ExposureTransformation* _tmp12_; - ExposureTransformation* _tmp13_; - ContrastTransformation* _tmp14_; - ContrastTransformation* _tmp15_; -#line 157 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = expansion_transformation_new_from_extrema (0, 255); -#line 157 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = _tmp0_; -#line 157 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 157 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp1_); -#line 158 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = shadow_detail_transformation_new (0.0f); -#line 158 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = _tmp2_; -#line 158 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 158 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp3_); -#line 159 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = highlight_detail_transformation_new (0.0f); -#line 159 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = _tmp4_; -#line 159 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 159 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp5_); -#line 160 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = temperature_transformation_new (0.0f); -#line 160 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = _tmp6_; -#line 160 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 160 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp7_); -#line 161 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = tint_transformation_new (0.0f); -#line 161 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = _tmp8_; -#line 161 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 161 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp9_); -#line 162 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = saturation_transformation_new (0.0f); -#line 162 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = _tmp10_; -#line 162 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 162 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp11_); -#line 163 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = exposure_transformation_new (0.0f); -#line 163 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = _tmp12_; -#line 163 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 163 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp13_); -#line 164 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = contrast_transformation_new (0.0f); -#line 164 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = _tmp14_; -#line 164 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 164 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp15_); -#line 1726 "ColorTransformation.c" -} - - -void -pixel_transformation_bundle_load (PixelTransformationBundle* self, - KeyValueMap* store) -{ - gchar* expansion_params_encoded = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - ShadowDetailTransformation* _tmp7_; - ShadowDetailTransformation* _tmp8_; - HighlightDetailTransformation* _tmp9_; - HighlightDetailTransformation* _tmp10_; - TemperatureTransformation* _tmp11_; - TemperatureTransformation* _tmp12_; - TintTransformation* _tmp13_; - TintTransformation* _tmp14_; - SaturationTransformation* _tmp15_; - SaturationTransformation* _tmp16_; - ExposureTransformation* _tmp17_; - ExposureTransformation* _tmp18_; - ContrastTransformation* _tmp19_; - ContrastTransformation* _tmp20_; -#line 168 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = key_value_map_get_string (store, "expansion", "-"); -#line 168 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - expansion_params_encoded = _tmp0_; -#line 169 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = expansion_params_encoded; -#line 169 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (g_strcmp0 (_tmp1_, "-") == 0) { -#line 1759 "ColorTransformation.c" - ExpansionTransformation* _tmp2_; - ExpansionTransformation* _tmp3_; -#line 170 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = expansion_transformation_new_from_extrema (0, 255); -#line 170 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = _tmp2_; -#line 170 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 170 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp3_); -#line 1770 "ColorTransformation.c" - } else { - const gchar* _tmp4_; - ExpansionTransformation* _tmp5_; - ExpansionTransformation* _tmp6_; -#line 172 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = expansion_params_encoded; -#line 172 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = expansion_transformation_new_from_string (_tmp4_); -#line 172 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = _tmp5_; -#line 172 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 172 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp6_); -#line 1785 "ColorTransformation.c" - } -#line 174 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = shadow_detail_transformation_new (key_value_map_get_float (store, "shadows", 0.0f)); -#line 174 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = _tmp7_; -#line 174 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 174 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp8_); -#line 175 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = highlight_detail_transformation_new (key_value_map_get_float (store, "highlights", 0.0f)); -#line 175 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = _tmp9_; -#line 175 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 175 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp10_); -#line 176 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = temperature_transformation_new (key_value_map_get_float (store, "temperature", 0.0f)); -#line 176 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = _tmp11_; -#line 176 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 176 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp12_); -#line 177 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = tint_transformation_new (key_value_map_get_float (store, "tint", 0.0f)); -#line 177 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = _tmp13_; -#line 177 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 177 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp14_); -#line 178 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = saturation_transformation_new (key_value_map_get_float (store, "saturation", 0.0f)); -#line 178 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_ = _tmp15_; -#line 178 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 178 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp16_); -#line 179 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp17_ = exposure_transformation_new (key_value_map_get_float (store, "exposure", 0.0f)); -#line 179 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18_ = _tmp17_; -#line 179 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 179 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp18_); -#line 180 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_ = contrast_transformation_new (key_value_map_get_float (store, "contrast", 0.0f)); -#line 180 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20_ = _tmp19_; -#line 180 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 180 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp20_); -#line 167 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_free0 (expansion_params_encoded); -#line 1845 "ColorTransformation.c" -} - - -KeyValueMap* -pixel_transformation_bundle_save (PixelTransformationBundle* self, - const gchar* group) -{ - KeyValueMap* result = NULL; - KeyValueMap* store = NULL; - KeyValueMap* _tmp0_; - ExpansionTransformation* new_expansion_trans = NULL; - PixelTransformation* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - ShadowDetailTransformation* new_shadows_trans = NULL; - PixelTransformation* _tmp4_; - HighlightDetailTransformation* new_highlight_trans = NULL; - PixelTransformation* _tmp5_; - TemperatureTransformation* new_temp_trans = NULL; - PixelTransformation* _tmp6_; - TintTransformation* new_tint_trans = NULL; - PixelTransformation* _tmp7_; - SaturationTransformation* new_sat_trans = NULL; - PixelTransformation* _tmp8_; - ExposureTransformation* new_exposure_trans = NULL; - PixelTransformation* _tmp9_; - ContrastTransformation* new_contrast_trans = NULL; - PixelTransformation* _tmp10_; -#line 184 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = key_value_map_new (group); -#line 184 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - store = _tmp0_; -#line 186 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = pixel_transformation_bundle_get_transformation (self, PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION); -#line 186 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - new_expansion_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation); -#line 188 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _vala_assert (new_expansion_trans != NULL, "new_expansion_trans != null"); -#line 189 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = pixel_transformation_to_string (G_TYPE_CHECK_INSTANCE_CAST (new_expansion_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 189 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = _tmp2_; -#line 189 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - key_value_map_set_string (store, "expansion", _tmp3_); -#line 189 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_free0 (_tmp3_); -#line 191 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = pixel_transformation_bundle_get_transformation (self, PIXEL_TRANSFORMATION_TYPE_SHADOWS); -#line 191 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - new_shadows_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformation); -#line 193 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _vala_assert (new_shadows_trans != NULL, "new_shadows_trans != null"); -#line 194 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - key_value_map_set_float (store, "shadows", shadow_detail_transformation_get_parameter (new_shadows_trans)); -#line 196 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = pixel_transformation_bundle_get_transformation (self, PIXEL_TRANSFORMATION_TYPE_HIGHLIGHTS); -#line 196 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - new_highlight_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformation); -#line 198 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _vala_assert (new_highlight_trans != NULL, "new_highlight_trans != null"); -#line 199 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - key_value_map_set_float (store, "highlights", highlight_detail_transformation_get_parameter (new_highlight_trans)); -#line 201 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = pixel_transformation_bundle_get_transformation (self, PIXEL_TRANSFORMATION_TYPE_TEMPERATURE); -#line 201 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - new_temp_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformation); -#line 203 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _vala_assert (new_temp_trans != NULL, "new_temp_trans != null"); -#line 204 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - key_value_map_set_float (store, "temperature", temperature_transformation_get_parameter (new_temp_trans)); -#line 206 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = pixel_transformation_bundle_get_transformation (self, PIXEL_TRANSFORMATION_TYPE_TINT); -#line 206 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - new_tint_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_TINT_TRANSFORMATION, TintTransformation); -#line 208 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _vala_assert (new_tint_trans != NULL, "new_tint_trans != null"); -#line 209 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - key_value_map_set_float (store, "tint", tint_transformation_get_parameter (new_tint_trans)); -#line 211 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = pixel_transformation_bundle_get_transformation (self, PIXEL_TRANSFORMATION_TYPE_SATURATION); -#line 211 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - new_sat_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_SATURATION_TRANSFORMATION, SaturationTransformation); -#line 213 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _vala_assert (new_sat_trans != NULL, "new_sat_trans != null"); -#line 214 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - key_value_map_set_float (store, "saturation", saturation_transformation_get_parameter (new_sat_trans)); -#line 216 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = pixel_transformation_bundle_get_transformation (self, PIXEL_TRANSFORMATION_TYPE_EXPOSURE); -#line 216 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - new_exposure_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformation); -#line 218 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _vala_assert (new_exposure_trans != NULL, "new_exposure_trans != null"); -#line 219 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - key_value_map_set_float (store, "exposure", exposure_transformation_get_parameter (new_exposure_trans)); -#line 221 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = pixel_transformation_bundle_get_transformation (self, PIXEL_TRANSFORMATION_TYPE_CONTRAST); -#line 221 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - new_contrast_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_CONTRAST_TRANSFORMATION, ContrastTransformation); -#line 223 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _vala_assert (new_contrast_trans != NULL, "new_contrast_trans != null"); -#line 224 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - key_value_map_set_float (store, "contrast", contrast_transformation_get_parameter (new_contrast_trans)); -#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = store; -#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (new_contrast_trans); -#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (new_exposure_trans); -#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (new_sat_trans); -#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (new_tint_trans); -#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (new_temp_trans); -#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (new_highlight_trans); -#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (new_shadows_trans); -#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (new_expansion_trans); -#line 226 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 1968 "ColorTransformation.c" -} - - -gint -pixel_transformation_bundle_get_count (PixelTransformationBundle* self) -{ - gint result = 0; - GeeHashMap* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 230 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->map; -#line 230 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 230 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = _tmp1_; -#line 230 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp2_; -#line 230 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 1989 "ColorTransformation.c" -} - - -PixelTransformation* -pixel_transformation_bundle_get_transformation (PixelTransformationBundle* self, - PixelTransformationType type) -{ - PixelTransformation* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 234 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->map; -#line 234 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) ((gint) type))); -#line 234 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = (PixelTransformation*) _tmp1_; -#line 234 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 2008 "ColorTransformation.c" -} - - -GeeIterable* -pixel_transformation_bundle_get_transformations (PixelTransformationBundle* self) -{ - GeeIterable* result = NULL; - GeeHashMap* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; -#line 238 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->map; -#line 238 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 238 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = _tmp1_; -#line 238 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable); -#line 238 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 2029 "ColorTransformation.c" -} - - -gboolean -pixel_transformation_bundle_is_identity (PixelTransformationBundle* self) -{ - gboolean result = FALSE; - { - GeeIterator* _adjustment_it = NULL; - GeeIterable* _tmp0_; - GeeIterable* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = pixel_transformation_bundle_get_transformations (self); -#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = _tmp0_; -#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = gee_iterable_iterator (_tmp1_); -#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = _tmp2_; -#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_object_unref0 (_tmp1_); -#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _adjustment_it = _tmp3_; -#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 2057 "ColorTransformation.c" - GeeIterator* _tmp4_; - PixelTransformation* adjustment = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - PixelTransformation* _tmp7_; -#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = _adjustment_it; -#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 2069 "ColorTransformation.c" - } -#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = _adjustment_it; -#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - adjustment = (PixelTransformation*) _tmp6_; -#line 243 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = adjustment; -#line 243 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!pixel_transformation_is_identity (_tmp7_)) { -#line 244 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = FALSE; -#line 244 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (adjustment); -#line 244 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_object_unref0 (_adjustment_it); -#line 244 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 2089 "ColorTransformation.c" - } -#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (adjustment); -#line 2093 "ColorTransformation.c" - } -#line 242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_object_unref0 (_adjustment_it); -#line 2097 "ColorTransformation.c" - } -#line 247 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = TRUE; -#line 247 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 2103 "ColorTransformation.c" -} - - -PixelTransformer* -pixel_transformation_bundle_generate_transformer (PixelTransformationBundle* self) -{ - PixelTransformer* result = NULL; - PixelTransformer* transformer = NULL; - PixelTransformer* _tmp0_; -#line 251 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = pixel_transformer_new (); -#line 251 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - transformer = _tmp0_; -#line 2117 "ColorTransformation.c" - { - GeeIterator* _transformation_it = NULL; - GeeIterable* _tmp1_; - GeeIterable* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = pixel_transformation_bundle_get_transformations (self); -#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = _tmp1_; -#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = gee_iterable_iterator (_tmp2_); -#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = _tmp3_; -#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_object_unref0 (_tmp2_); -#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _transformation_it = _tmp4_; -#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 2138 "ColorTransformation.c" - GeeIterator* _tmp5_; - PixelTransformation* transformation = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - PixelTransformer* _tmp8_; - PixelTransformation* _tmp9_; -#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = _transformation_it; -#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 2151 "ColorTransformation.c" - } -#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = _transformation_it; -#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - transformation = (PixelTransformation*) _tmp7_; -#line 253 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = transformer; -#line 253 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = transformation; -#line 253 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformer_attach_transformation (_tmp8_, _tmp9_); -#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (transformation); -#line 2167 "ColorTransformation.c" - } -#line 252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_object_unref0 (_transformation_it); -#line 2171 "ColorTransformation.c" - } -#line 255 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = transformer; -#line 255 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 2177 "ColorTransformation.c" -} - - -PixelTransformationBundle* -pixel_transformation_bundle_copy (PixelTransformationBundle* self) -{ - PixelTransformationBundle* result = NULL; - PixelTransformationBundle* bundle = NULL; - PixelTransformationBundle* _tmp0_; -#line 259 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = pixel_transformation_bundle_new (); -#line 259 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - bundle = _tmp0_; -#line 2191 "ColorTransformation.c" - { - GeeIterator* _transformation_it = NULL; - GeeIterable* _tmp1_; - GeeIterable* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = pixel_transformation_bundle_get_transformations (self); -#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = _tmp1_; -#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = gee_iterable_iterator (_tmp2_); -#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = _tmp3_; -#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_object_unref0 (_tmp2_); -#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _transformation_it = _tmp4_; -#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 2212 "ColorTransformation.c" - GeeIterator* _tmp5_; - PixelTransformation* transformation = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - PixelTransformationBundle* _tmp8_; - PixelTransformation* _tmp9_; -#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = _transformation_it; -#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 2225 "ColorTransformation.c" - } -#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = _transformation_it; -#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - transformation = (PixelTransformation*) _tmp7_; -#line 261 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = bundle; -#line 261 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = transformation; -#line 261 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (_tmp8_, _tmp9_); -#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (transformation); -#line 2241 "ColorTransformation.c" - } -#line 260 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_object_unref0 (_transformation_it); -#line 2245 "ColorTransformation.c" - } -#line 263 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = bundle; -#line 263 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 2251 "ColorTransformation.c" -} - - -static void -value_pixel_transformation_bundle_init (GValue* value) -{ -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 2260 "ColorTransformation.c" -} - - -static void -value_pixel_transformation_bundle_free_value (GValue* value) -{ -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (value->data[0].v_pointer) { -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_unref (value->data[0].v_pointer); -#line 2271 "ColorTransformation.c" - } -} - - -static void -value_pixel_transformation_bundle_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (src_value->data[0].v_pointer) { -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - dest_value->data[0].v_pointer = pixel_transformation_bundle_ref (src_value->data[0].v_pointer); -#line 2284 "ColorTransformation.c" - } else { -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - dest_value->data[0].v_pointer = NULL; -#line 2288 "ColorTransformation.c" - } -} - - -static gpointer -value_pixel_transformation_bundle_peek_pointer (const GValue* value) -{ -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return value->data[0].v_pointer; -#line 2298 "ColorTransformation.c" -} - - -static gchar* -value_pixel_transformation_bundle_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (collect_values[0].v_pointer) { -#line 2310 "ColorTransformation.c" - PixelTransformationBundle * object; - object = collect_values[0].v_pointer; -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (object->parent_instance.g_class == NULL) { -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2317 "ColorTransformation.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2321 "ColorTransformation.c" - } -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = pixel_transformation_bundle_ref (object); -#line 2325 "ColorTransformation.c" - } else { -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 2329 "ColorTransformation.c" - } -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return NULL; -#line 2333 "ColorTransformation.c" -} - - -static gchar* -value_pixel_transformation_bundle_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PixelTransformationBundle ** object_p; - object_p = collect_values[0].v_pointer; -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!object_p) { -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2349 "ColorTransformation.c" - } -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!value->data[0].v_pointer) { -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = NULL; -#line 2355 "ColorTransformation.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = value->data[0].v_pointer; -#line 2359 "ColorTransformation.c" - } else { -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = pixel_transformation_bundle_ref (value->data[0].v_pointer); -#line 2363 "ColorTransformation.c" - } -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return NULL; -#line 2367 "ColorTransformation.c" -} - - -GParamSpec* -param_spec_pixel_transformation_bundle (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecPixelTransformationBundle* spec; -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_PIXEL_TRANSFORMATION_BUNDLE), NULL); -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return G_PARAM_SPEC (spec); -#line 2387 "ColorTransformation.c" -} - - -gpointer -value_get_pixel_transformation_bundle (const GValue* value) -{ -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMATION_BUNDLE), NULL); -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return value->data[0].v_pointer; -#line 2398 "ColorTransformation.c" -} - - -void -value_set_pixel_transformation_bundle (GValue* value, - gpointer v_object) -{ - PixelTransformationBundle * old; -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMATION_BUNDLE)); -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - old = value->data[0].v_pointer; -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (v_object) { -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PIXEL_TRANSFORMATION_BUNDLE)); -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = v_object; -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_ref (value->data[0].v_pointer); -#line 2421 "ColorTransformation.c" - } else { -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 2425 "ColorTransformation.c" - } -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (old) { -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_unref (old); -#line 2431 "ColorTransformation.c" - } -} - - -void -value_take_pixel_transformation_bundle (GValue* value, - gpointer v_object) -{ - PixelTransformationBundle * old; -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMATION_BUNDLE)); -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - old = value->data[0].v_pointer; -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (v_object) { -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PIXEL_TRANSFORMATION_BUNDLE)); -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = v_object; -#line 2453 "ColorTransformation.c" - } else { -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 2457 "ColorTransformation.c" - } -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (old) { -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_unref (old); -#line 2463 "ColorTransformation.c" - } -} - - -static void -pixel_transformation_bundle_class_init (PixelTransformationBundleClass * klass) -{ -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_parent_class = g_type_class_peek_parent (klass); -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationBundleClass *) klass)->finalize = pixel_transformation_bundle_finalize; -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_class_add_private (klass, sizeof (PixelTransformationBundlePrivate)); -#line 2477 "ColorTransformation.c" -} - - -static void -pixel_transformation_bundle_instance_init (PixelTransformationBundle * self) -{ - void* _tmp0_; - GDestroyNotify _tmp1_; - GeeHashDataFunc _tmp2_; - void* _tmp3_; - GDestroyNotify _tmp4_; - GeeEqualDataFunc _tmp5_; - GeeHashMap* _tmp6_; -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv = PIXEL_TRANSFORMATION_BUNDLE_GET_PRIVATE (self); -#line 134 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = gee_functions_get_hash_func_for (G_TYPE_INT, &_tmp0_, &_tmp1_); -#line 134 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = gee_functions_get_equal_func_for (G_TYPE_INT, &_tmp3_, &_tmp4_); -#line 134 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = gee_hash_map_new (G_TYPE_INT, NULL, NULL, TYPE_PIXEL_TRANSFORMATION, (GBoxedCopyFunc) pixel_transformation_ref, (GDestroyNotify) pixel_transformation_unref, _tmp2_, _tmp0_, _tmp1_, _tmp5_, _tmp3_, _tmp4_, NULL, NULL, NULL); -#line 134 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->map = _tmp6_; -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->ref_count = 1; -#line 2503 "ColorTransformation.c" -} - - -static void -pixel_transformation_bundle_finalize (PixelTransformationBundle * obj) -{ - PixelTransformationBundle * self; -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundle); -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_signal_handlers_destroy (self); -#line 134 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_object_unref0 (self->priv->map); -#line 2517 "ColorTransformation.c" -} - - -GType -pixel_transformation_bundle_get_type (void) -{ - static volatile gsize pixel_transformation_bundle_type_id__volatile = 0; - if (g_once_init_enter (&pixel_transformation_bundle_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_pixel_transformation_bundle_init, value_pixel_transformation_bundle_free_value, value_pixel_transformation_bundle_copy_value, value_pixel_transformation_bundle_peek_pointer, "p", value_pixel_transformation_bundle_collect_value, "p", value_pixel_transformation_bundle_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PixelTransformationBundleClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pixel_transformation_bundle_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PixelTransformationBundle), 0, (GInstanceInitFunc) pixel_transformation_bundle_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType pixel_transformation_bundle_type_id; - pixel_transformation_bundle_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PixelTransformationBundle", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&pixel_transformation_bundle_type_id__volatile, pixel_transformation_bundle_type_id); - } - return pixel_transformation_bundle_type_id__volatile; -} - - -gpointer -pixel_transformation_bundle_ref (gpointer instance) -{ - PixelTransformationBundle * self; - self = instance; -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_atomic_int_inc (&self->ref_count); -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return instance; -#line 2546 "ColorTransformation.c" -} - - -void -pixel_transformation_bundle_unref (gpointer instance) -{ - PixelTransformationBundle * self; - self = instance; -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - PIXEL_TRANSFORMATION_BUNDLE_GET_CLASS (self)->finalize (self); -#line 131 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2561 "ColorTransformation.c" - } -} - - -PixelTransformation* -pixel_transformation_construct (GType object_type, - PixelTransformationType type, - PixelFormat preferred_format) -{ - PixelTransformation* self = NULL; -#line 271 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (PixelTransformation*) g_type_create_instance (object_type); -#line 273 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->type = type; -#line 274 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->preferred_format = preferred_format; -#line 271 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 2580 "ColorTransformation.c" -} - - -PixelTransformationType -pixel_transformation_get_transformation_type (PixelTransformation* self) -{ - PixelTransformationType result = 0; - PixelTransformationType _tmp0_; -#line 278 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->type; -#line 278 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_; -#line 278 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 2595 "ColorTransformation.c" -} - - -PixelFormat -pixel_transformation_get_preferred_format (PixelTransformation* self) -{ - PixelFormat result = 0; - PixelFormat _tmp0_; -#line 282 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->preferred_format; -#line 282 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_; -#line 282 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 2610 "ColorTransformation.c" -} - - -static CompositionMode -pixel_transformation_real_get_composition_mode (PixelTransformation* self) -{ - CompositionMode result = 0; -#line 286 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = COMPOSITION_MODE_NONE; -#line 286 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 2622 "ColorTransformation.c" -} - - -CompositionMode -pixel_transformation_get_composition_mode (PixelTransformation* self) -{ -#line 285 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return PIXEL_TRANSFORMATION_GET_CLASS (self)->get_composition_mode (self); -#line 2631 "ColorTransformation.c" -} - - -static void -pixel_transformation_real_compose_with (PixelTransformation* self, - PixelTransformation* other) -{ -#line 290 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_error ("ColorTransformation.vala:290: %s", "PixelTransformation: compose_with( ): this type of pixel " "transformation doesn't support composition."); -#line 2641 "ColorTransformation.c" -} - - -void -pixel_transformation_compose_with (PixelTransformation* self, - PixelTransformation* other) -{ -#line 289 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - PIXEL_TRANSFORMATION_GET_CLASS (self)->compose_with (self, other); -#line 2651 "ColorTransformation.c" -} - - -static gboolean -pixel_transformation_real_is_identity (PixelTransformation* self) -{ - gboolean result = FALSE; -#line 295 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = TRUE; -#line 295 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 2663 "ColorTransformation.c" -} - - -gboolean -pixel_transformation_is_identity (PixelTransformation* self) -{ -#line 294 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return PIXEL_TRANSFORMATION_GET_CLASS (self)->is_identity (self); -#line 2672 "ColorTransformation.c" -} - - -static void -pixel_transformation_real_transform_pixel_hsv (PixelTransformation* self, - HSVAnalyticPixel* p, - HSVAnalyticPixel* result) -{ - HSVAnalyticPixel _tmp0_; -#line 299 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = *p; -#line 299 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *result = _tmp0_; -#line 299 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return; -#line 2688 "ColorTransformation.c" -} - - -void -pixel_transformation_transform_pixel_hsv (PixelTransformation* self, - HSVAnalyticPixel* p, - HSVAnalyticPixel* result) -{ -#line 298 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - PIXEL_TRANSFORMATION_GET_CLASS (self)->transform_pixel_hsv (self, p, result); -#line 2699 "ColorTransformation.c" -} - - -static void -pixel_transformation_real_transform_pixel_rgb (PixelTransformation* self, - RGBAnalyticPixel* p, - RGBAnalyticPixel* result) -{ - RGBAnalyticPixel _tmp0_; -#line 303 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = *p; -#line 303 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *result = _tmp0_; -#line 303 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return; -#line 2715 "ColorTransformation.c" -} - - -void -pixel_transformation_transform_pixel_rgb (PixelTransformation* self, - RGBAnalyticPixel* p, - RGBAnalyticPixel* result) -{ -#line 302 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - PIXEL_TRANSFORMATION_GET_CLASS (self)->transform_pixel_rgb (self, p, result); -#line 2726 "ColorTransformation.c" -} - - -static gchar* -pixel_transformation_real_to_string (PixelTransformation* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 307 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = g_strdup ("PixelTransformation"); -#line 307 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_; -#line 307 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 2741 "ColorTransformation.c" -} - - -gchar* -pixel_transformation_to_string (PixelTransformation* self) -{ -#line 306 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return PIXEL_TRANSFORMATION_GET_CLASS (self)->to_string (self); -#line 2750 "ColorTransformation.c" -} - - -static PixelTransformation* -pixel_transformation_real_copy (PixelTransformation* self) -{ -#line 310 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_critical ("Type `%s' does not implement abstract method `pixel_transformation_copy'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 310 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return NULL; -#line 2761 "ColorTransformation.c" -} - - -PixelTransformation* -pixel_transformation_copy (PixelTransformation* self) -{ -#line 310 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return PIXEL_TRANSFORMATION_GET_CLASS (self)->copy (self); -#line 2770 "ColorTransformation.c" -} - - -static void -value_pixel_transformation_init (GValue* value) -{ -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 2779 "ColorTransformation.c" -} - - -static void -value_pixel_transformation_free_value (GValue* value) -{ -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (value->data[0].v_pointer) { -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_unref (value->data[0].v_pointer); -#line 2790 "ColorTransformation.c" - } -} - - -static void -value_pixel_transformation_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (src_value->data[0].v_pointer) { -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - dest_value->data[0].v_pointer = pixel_transformation_ref (src_value->data[0].v_pointer); -#line 2803 "ColorTransformation.c" - } else { -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - dest_value->data[0].v_pointer = NULL; -#line 2807 "ColorTransformation.c" - } -} - - -static gpointer -value_pixel_transformation_peek_pointer (const GValue* value) -{ -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return value->data[0].v_pointer; -#line 2817 "ColorTransformation.c" -} - - -static gchar* -value_pixel_transformation_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (collect_values[0].v_pointer) { -#line 2829 "ColorTransformation.c" - PixelTransformation * object; - object = collect_values[0].v_pointer; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (object->parent_instance.g_class == NULL) { -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2836 "ColorTransformation.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2840 "ColorTransformation.c" - } -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = pixel_transformation_ref (object); -#line 2844 "ColorTransformation.c" - } else { -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 2848 "ColorTransformation.c" - } -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return NULL; -#line 2852 "ColorTransformation.c" -} - - -static gchar* -value_pixel_transformation_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PixelTransformation ** object_p; - object_p = collect_values[0].v_pointer; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!object_p) { -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2868 "ColorTransformation.c" - } -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!value->data[0].v_pointer) { -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = NULL; -#line 2874 "ColorTransformation.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = value->data[0].v_pointer; -#line 2878 "ColorTransformation.c" - } else { -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = pixel_transformation_ref (value->data[0].v_pointer); -#line 2882 "ColorTransformation.c" - } -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return NULL; -#line 2886 "ColorTransformation.c" -} - - -GParamSpec* -param_spec_pixel_transformation (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecPixelTransformation* spec; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_PIXEL_TRANSFORMATION), NULL); -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return G_PARAM_SPEC (spec); -#line 2906 "ColorTransformation.c" -} - - -gpointer -value_get_pixel_transformation (const GValue* value) -{ -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMATION), NULL); -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return value->data[0].v_pointer; -#line 2917 "ColorTransformation.c" -} - - -void -value_set_pixel_transformation (GValue* value, - gpointer v_object) -{ - PixelTransformation * old; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMATION)); -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - old = value->data[0].v_pointer; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (v_object) { -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PIXEL_TRANSFORMATION)); -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = v_object; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_ref (value->data[0].v_pointer); -#line 2940 "ColorTransformation.c" - } else { -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 2944 "ColorTransformation.c" - } -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (old) { -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_unref (old); -#line 2950 "ColorTransformation.c" - } -} - - -void -value_take_pixel_transformation (GValue* value, - gpointer v_object) -{ - PixelTransformation * old; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMATION)); -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - old = value->data[0].v_pointer; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (v_object) { -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PIXEL_TRANSFORMATION)); -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = v_object; -#line 2972 "ColorTransformation.c" - } else { -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 2976 "ColorTransformation.c" - } -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (old) { -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_unref (old); -#line 2982 "ColorTransformation.c" - } -} - - -static void -pixel_transformation_class_init (PixelTransformationClass * klass) -{ -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_parent_class = g_type_class_peek_parent (klass); -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->finalize = pixel_transformation_finalize; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_class_add_private (klass, sizeof (PixelTransformationPrivate)); -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->get_composition_mode = (CompositionMode (*) (PixelTransformation *)) pixel_transformation_real_get_composition_mode; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->compose_with = (void (*) (PixelTransformation *, PixelTransformation*)) pixel_transformation_real_compose_with; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->is_identity = (gboolean (*) (PixelTransformation *)) pixel_transformation_real_is_identity; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->transform_pixel_hsv = (void (*) (PixelTransformation *, HSVAnalyticPixel*, HSVAnalyticPixel*)) pixel_transformation_real_transform_pixel_hsv; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->transform_pixel_rgb = (void (*) (PixelTransformation *, RGBAnalyticPixel*, RGBAnalyticPixel*)) pixel_transformation_real_transform_pixel_rgb; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->to_string = (gchar* (*) (PixelTransformation *)) pixel_transformation_real_to_string; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->copy = (PixelTransformation* (*) (PixelTransformation *)) pixel_transformation_real_copy; -#line 3010 "ColorTransformation.c" -} - - -static void -pixel_transformation_instance_init (PixelTransformation * self) -{ -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv = PIXEL_TRANSFORMATION_GET_PRIVATE (self); -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->ref_count = 1; -#line 3021 "ColorTransformation.c" -} - - -static void -pixel_transformation_finalize (PixelTransformation * obj) -{ - PixelTransformation * self; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PIXEL_TRANSFORMATION, PixelTransformation); -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_signal_handlers_destroy (self); -#line 3033 "ColorTransformation.c" -} - - -GType -pixel_transformation_get_type (void) -{ - static volatile gsize pixel_transformation_type_id__volatile = 0; - if (g_once_init_enter (&pixel_transformation_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_pixel_transformation_init, value_pixel_transformation_free_value, value_pixel_transformation_copy_value, value_pixel_transformation_peek_pointer, "p", value_pixel_transformation_collect_value, "p", value_pixel_transformation_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PixelTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pixel_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PixelTransformation), 0, (GInstanceInitFunc) pixel_transformation_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType pixel_transformation_type_id; - pixel_transformation_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PixelTransformation", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&pixel_transformation_type_id__volatile, pixel_transformation_type_id); - } - return pixel_transformation_type_id__volatile; -} - - -gpointer -pixel_transformation_ref (gpointer instance) -{ - PixelTransformation * self; - self = instance; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_atomic_int_inc (&self->ref_count); -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return instance; -#line 3062 "ColorTransformation.c" -} - - -void -pixel_transformation_unref (gpointer instance) -{ - PixelTransformation * self; - self = instance; -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - PIXEL_TRANSFORMATION_GET_CLASS (self)->finalize (self); -#line 267 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 3077 "ColorTransformation.c" - } -} - - -RGBTransformation* -rgb_transformation_construct (GType object_type, - PixelTransformationType type) -{ - RGBTransformation* self = NULL; - gfloat* _tmp0_; -#line 323 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (RGBTransformation*) pixel_transformation_construct (object_type, type, PIXEL_FORMAT_RGB); -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = g_new0 (gfloat, 16); -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_[0] = 1.0f; -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_[1] = 0.0f; -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_[2] = 0.0f; -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_[3] = 0.0f; -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_[4] = 0.0f; -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_[5] = 1.0f; -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_[6] = 0.0f; -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_[7] = 0.0f; -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_[8] = 0.0f; -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_[9] = 0.0f; -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_[10] = 1.0f; -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_[11] = 0.0f; -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_[12] = 0.0f; -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_[13] = 0.0f; -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_[14] = 0.0f; -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_[15] = 1.0f; -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->matrix_entries = (g_free (self->matrix_entries), NULL); -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->matrix_entries = _tmp0_; -#line 329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->matrix_entries_length1 = 16; -#line 322 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 3132 "ColorTransformation.c" -} - - -RGBTransformation* -rgb_transformation_new (PixelTransformationType type) -{ -#line 322 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return rgb_transformation_construct (TYPE_RGB_TRANSFORMATION, type); -#line 3141 "ColorTransformation.c" -} - - -static CompositionMode -rgb_transformation_real_get_composition_mode (PixelTransformation* base) -{ - RGBTransformation * self; - CompositionMode result = 0; -#line 336 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RGB_TRANSFORMATION, RGBTransformation); -#line 337 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = COMPOSITION_MODE_RGB_MATRIX; -#line 337 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 3156 "ColorTransformation.c" -} - - -static gpointer -_pixel_transformation_ref0 (gpointer self) -{ -#line 345 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self ? pixel_transformation_ref (self) : NULL; -#line 3165 "ColorTransformation.c" -} - - -static void -rgb_transformation_real_compose_with (PixelTransformation* base, - PixelTransformation* other) -{ - RGBTransformation * self; - RGBTransformation* transform = NULL; - RGBTransformation* _tmp0_; - gfloat* result_matrix_entries = NULL; - gfloat* _tmp1_; - gint result_matrix_entries_length1; - gint _result_matrix_entries_size_; - gfloat* _tmp2_; - gint _tmp2__length1; - RGBTransformation* _tmp3_; - gfloat* _tmp4_; - gint _tmp4__length1; - gfloat _tmp5_; - gfloat* _tmp6_; - gint _tmp6__length1; - gfloat _tmp7_; - RGBTransformation* _tmp8_; - gfloat* _tmp9_; - gint _tmp9__length1; - gfloat _tmp10_; - gfloat* _tmp11_; - gint _tmp11__length1; - gfloat _tmp12_; - RGBTransformation* _tmp13_; - gfloat* _tmp14_; - gint _tmp14__length1; - gfloat _tmp15_; - gfloat* _tmp16_; - gint _tmp16__length1; - gfloat _tmp17_; - RGBTransformation* _tmp18_; - gfloat* _tmp19_; - gint _tmp19__length1; - gfloat _tmp20_; - gfloat* _tmp21_; - gint _tmp21__length1; - gfloat _tmp22_; - gfloat _tmp23_; - gfloat* _tmp24_; - gint _tmp24__length1; - RGBTransformation* _tmp25_; - gfloat* _tmp26_; - gint _tmp26__length1; - gfloat _tmp27_; - gfloat* _tmp28_; - gint _tmp28__length1; - gfloat _tmp29_; - RGBTransformation* _tmp30_; - gfloat* _tmp31_; - gint _tmp31__length1; - gfloat _tmp32_; - gfloat* _tmp33_; - gint _tmp33__length1; - gfloat _tmp34_; - RGBTransformation* _tmp35_; - gfloat* _tmp36_; - gint _tmp36__length1; - gfloat _tmp37_; - gfloat* _tmp38_; - gint _tmp38__length1; - gfloat _tmp39_; - RGBTransformation* _tmp40_; - gfloat* _tmp41_; - gint _tmp41__length1; - gfloat _tmp42_; - gfloat* _tmp43_; - gint _tmp43__length1; - gfloat _tmp44_; - gfloat _tmp45_; - gfloat* _tmp46_; - gint _tmp46__length1; - RGBTransformation* _tmp47_; - gfloat* _tmp48_; - gint _tmp48__length1; - gfloat _tmp49_; - gfloat* _tmp50_; - gint _tmp50__length1; - gfloat _tmp51_; - RGBTransformation* _tmp52_; - gfloat* _tmp53_; - gint _tmp53__length1; - gfloat _tmp54_; - gfloat* _tmp55_; - gint _tmp55__length1; - gfloat _tmp56_; - RGBTransformation* _tmp57_; - gfloat* _tmp58_; - gint _tmp58__length1; - gfloat _tmp59_; - gfloat* _tmp60_; - gint _tmp60__length1; - gfloat _tmp61_; - RGBTransformation* _tmp62_; - gfloat* _tmp63_; - gint _tmp63__length1; - gfloat _tmp64_; - gfloat* _tmp65_; - gint _tmp65__length1; - gfloat _tmp66_; - gfloat _tmp67_; - gfloat* _tmp68_; - gint _tmp68__length1; - RGBTransformation* _tmp69_; - gfloat* _tmp70_; - gint _tmp70__length1; - gfloat _tmp71_; - gfloat* _tmp72_; - gint _tmp72__length1; - gfloat _tmp73_; - RGBTransformation* _tmp74_; - gfloat* _tmp75_; - gint _tmp75__length1; - gfloat _tmp76_; - gfloat* _tmp77_; - gint _tmp77__length1; - gfloat _tmp78_; - RGBTransformation* _tmp79_; - gfloat* _tmp80_; - gint _tmp80__length1; - gfloat _tmp81_; - gfloat* _tmp82_; - gint _tmp82__length1; - gfloat _tmp83_; - RGBTransformation* _tmp84_; - gfloat* _tmp85_; - gint _tmp85__length1; - gfloat _tmp86_; - gfloat* _tmp87_; - gint _tmp87__length1; - gfloat _tmp88_; - gfloat _tmp89_; - gfloat* _tmp90_; - gint _tmp90__length1; - RGBTransformation* _tmp91_; - gfloat* _tmp92_; - gint _tmp92__length1; - gfloat _tmp93_; - gfloat* _tmp94_; - gint _tmp94__length1; - gfloat _tmp95_; - RGBTransformation* _tmp96_; - gfloat* _tmp97_; - gint _tmp97__length1; - gfloat _tmp98_; - gfloat* _tmp99_; - gint _tmp99__length1; - gfloat _tmp100_; - RGBTransformation* _tmp101_; - gfloat* _tmp102_; - gint _tmp102__length1; - gfloat _tmp103_; - gfloat* _tmp104_; - gint _tmp104__length1; - gfloat _tmp105_; - RGBTransformation* _tmp106_; - gfloat* _tmp107_; - gint _tmp107__length1; - gfloat _tmp108_; - gfloat* _tmp109_; - gint _tmp109__length1; - gfloat _tmp110_; - gfloat _tmp111_; - gfloat* _tmp112_; - gint _tmp112__length1; - RGBTransformation* _tmp113_; - gfloat* _tmp114_; - gint _tmp114__length1; - gfloat _tmp115_; - gfloat* _tmp116_; - gint _tmp116__length1; - gfloat _tmp117_; - RGBTransformation* _tmp118_; - gfloat* _tmp119_; - gint _tmp119__length1; - gfloat _tmp120_; - gfloat* _tmp121_; - gint _tmp121__length1; - gfloat _tmp122_; - RGBTransformation* _tmp123_; - gfloat* _tmp124_; - gint _tmp124__length1; - gfloat _tmp125_; - gfloat* _tmp126_; - gint _tmp126__length1; - gfloat _tmp127_; - RGBTransformation* _tmp128_; - gfloat* _tmp129_; - gint _tmp129__length1; - gfloat _tmp130_; - gfloat* _tmp131_; - gint _tmp131__length1; - gfloat _tmp132_; - gfloat _tmp133_; - gfloat* _tmp134_; - gint _tmp134__length1; - RGBTransformation* _tmp135_; - gfloat* _tmp136_; - gint _tmp136__length1; - gfloat _tmp137_; - gfloat* _tmp138_; - gint _tmp138__length1; - gfloat _tmp139_; - RGBTransformation* _tmp140_; - gfloat* _tmp141_; - gint _tmp141__length1; - gfloat _tmp142_; - gfloat* _tmp143_; - gint _tmp143__length1; - gfloat _tmp144_; - RGBTransformation* _tmp145_; - gfloat* _tmp146_; - gint _tmp146__length1; - gfloat _tmp147_; - gfloat* _tmp148_; - gint _tmp148__length1; - gfloat _tmp149_; - RGBTransformation* _tmp150_; - gfloat* _tmp151_; - gint _tmp151__length1; - gfloat _tmp152_; - gfloat* _tmp153_; - gint _tmp153__length1; - gfloat _tmp154_; - gfloat _tmp155_; - gfloat* _tmp156_; - gint _tmp156__length1; - RGBTransformation* _tmp157_; - gfloat* _tmp158_; - gint _tmp158__length1; - gfloat _tmp159_; - gfloat* _tmp160_; - gint _tmp160__length1; - gfloat _tmp161_; - RGBTransformation* _tmp162_; - gfloat* _tmp163_; - gint _tmp163__length1; - gfloat _tmp164_; - gfloat* _tmp165_; - gint _tmp165__length1; - gfloat _tmp166_; - RGBTransformation* _tmp167_; - gfloat* _tmp168_; - gint _tmp168__length1; - gfloat _tmp169_; - gfloat* _tmp170_; - gint _tmp170__length1; - gfloat _tmp171_; - RGBTransformation* _tmp172_; - gfloat* _tmp173_; - gint _tmp173__length1; - gfloat _tmp174_; - gfloat* _tmp175_; - gint _tmp175__length1; - gfloat _tmp176_; - gfloat _tmp177_; - gfloat* _tmp178_; - gint _tmp178__length1; - RGBTransformation* _tmp179_; - gfloat* _tmp180_; - gint _tmp180__length1; - gfloat _tmp181_; - gfloat* _tmp182_; - gint _tmp182__length1; - gfloat _tmp183_; - RGBTransformation* _tmp184_; - gfloat* _tmp185_; - gint _tmp185__length1; - gfloat _tmp186_; - gfloat* _tmp187_; - gint _tmp187__length1; - gfloat _tmp188_; - RGBTransformation* _tmp189_; - gfloat* _tmp190_; - gint _tmp190__length1; - gfloat _tmp191_; - gfloat* _tmp192_; - gint _tmp192__length1; - gfloat _tmp193_; - RGBTransformation* _tmp194_; - gfloat* _tmp195_; - gint _tmp195__length1; - gfloat _tmp196_; - gfloat* _tmp197_; - gint _tmp197__length1; - gfloat _tmp198_; - gfloat _tmp199_; - gfloat* _tmp200_; - gint _tmp200__length1; - RGBTransformation* _tmp201_; - gfloat* _tmp202_; - gint _tmp202__length1; - gfloat _tmp203_; - gfloat* _tmp204_; - gint _tmp204__length1; - gfloat _tmp205_; - RGBTransformation* _tmp206_; - gfloat* _tmp207_; - gint _tmp207__length1; - gfloat _tmp208_; - gfloat* _tmp209_; - gint _tmp209__length1; - gfloat _tmp210_; - RGBTransformation* _tmp211_; - gfloat* _tmp212_; - gint _tmp212__length1; - gfloat _tmp213_; - gfloat* _tmp214_; - gint _tmp214__length1; - gfloat _tmp215_; - RGBTransformation* _tmp216_; - gfloat* _tmp217_; - gint _tmp217__length1; - gfloat _tmp218_; - gfloat* _tmp219_; - gint _tmp219__length1; - gfloat _tmp220_; - gfloat _tmp221_; - gfloat* _tmp222_; - gint _tmp222__length1; - RGBTransformation* _tmp223_; - gfloat* _tmp224_; - gint _tmp224__length1; - gfloat _tmp225_; - gfloat* _tmp226_; - gint _tmp226__length1; - gfloat _tmp227_; - RGBTransformation* _tmp228_; - gfloat* _tmp229_; - gint _tmp229__length1; - gfloat _tmp230_; - gfloat* _tmp231_; - gint _tmp231__length1; - gfloat _tmp232_; - RGBTransformation* _tmp233_; - gfloat* _tmp234_; - gint _tmp234__length1; - gfloat _tmp235_; - gfloat* _tmp236_; - gint _tmp236__length1; - gfloat _tmp237_; - RGBTransformation* _tmp238_; - gfloat* _tmp239_; - gint _tmp239__length1; - gfloat _tmp240_; - gfloat* _tmp241_; - gint _tmp241__length1; - gfloat _tmp242_; - gfloat _tmp243_; - gfloat* _tmp244_; - gint _tmp244__length1; - RGBTransformation* _tmp245_; - gfloat* _tmp246_; - gint _tmp246__length1; - gfloat _tmp247_; - gfloat* _tmp248_; - gint _tmp248__length1; - gfloat _tmp249_; - RGBTransformation* _tmp250_; - gfloat* _tmp251_; - gint _tmp251__length1; - gfloat _tmp252_; - gfloat* _tmp253_; - gint _tmp253__length1; - gfloat _tmp254_; - RGBTransformation* _tmp255_; - gfloat* _tmp256_; - gint _tmp256__length1; - gfloat _tmp257_; - gfloat* _tmp258_; - gint _tmp258__length1; - gfloat _tmp259_; - RGBTransformation* _tmp260_; - gfloat* _tmp261_; - gint _tmp261__length1; - gfloat _tmp262_; - gfloat* _tmp263_; - gint _tmp263__length1; - gfloat _tmp264_; - gfloat _tmp265_; - gfloat* _tmp266_; - gint _tmp266__length1; - RGBTransformation* _tmp267_; - gfloat* _tmp268_; - gint _tmp268__length1; - gfloat _tmp269_; - gfloat* _tmp270_; - gint _tmp270__length1; - gfloat _tmp271_; - RGBTransformation* _tmp272_; - gfloat* _tmp273_; - gint _tmp273__length1; - gfloat _tmp274_; - gfloat* _tmp275_; - gint _tmp275__length1; - gfloat _tmp276_; - RGBTransformation* _tmp277_; - gfloat* _tmp278_; - gint _tmp278__length1; - gfloat _tmp279_; - gfloat* _tmp280_; - gint _tmp280__length1; - gfloat _tmp281_; - RGBTransformation* _tmp282_; - gfloat* _tmp283_; - gint _tmp283__length1; - gfloat _tmp284_; - gfloat* _tmp285_; - gint _tmp285__length1; - gfloat _tmp286_; - gfloat _tmp287_; - gfloat* _tmp288_; - gint _tmp288__length1; - RGBTransformation* _tmp289_; - gfloat* _tmp290_; - gint _tmp290__length1; - gfloat _tmp291_; - gfloat* _tmp292_; - gint _tmp292__length1; - gfloat _tmp293_; - RGBTransformation* _tmp294_; - gfloat* _tmp295_; - gint _tmp295__length1; - gfloat _tmp296_; - gfloat* _tmp297_; - gint _tmp297__length1; - gfloat _tmp298_; - RGBTransformation* _tmp299_; - gfloat* _tmp300_; - gint _tmp300__length1; - gfloat _tmp301_; - gfloat* _tmp302_; - gint _tmp302__length1; - gfloat _tmp303_; - RGBTransformation* _tmp304_; - gfloat* _tmp305_; - gint _tmp305__length1; - gfloat _tmp306_; - gfloat* _tmp307_; - gint _tmp307__length1; - gfloat _tmp308_; - gfloat _tmp309_; - gfloat* _tmp310_; - gint _tmp310__length1; - RGBTransformation* _tmp311_; - gfloat* _tmp312_; - gint _tmp312__length1; - gfloat _tmp313_; - gfloat* _tmp314_; - gint _tmp314__length1; - gfloat _tmp315_; - RGBTransformation* _tmp316_; - gfloat* _tmp317_; - gint _tmp317__length1; - gfloat _tmp318_; - gfloat* _tmp319_; - gint _tmp319__length1; - gfloat _tmp320_; - RGBTransformation* _tmp321_; - gfloat* _tmp322_; - gint _tmp322__length1; - gfloat _tmp323_; - gfloat* _tmp324_; - gint _tmp324__length1; - gfloat _tmp325_; - RGBTransformation* _tmp326_; - gfloat* _tmp327_; - gint _tmp327__length1; - gfloat _tmp328_; - gfloat* _tmp329_; - gint _tmp329__length1; - gfloat _tmp330_; - gfloat _tmp331_; - gfloat* _tmp332_; - gint _tmp332__length1; - RGBTransformation* _tmp333_; - gfloat* _tmp334_; - gint _tmp334__length1; - gfloat _tmp335_; - gfloat* _tmp336_; - gint _tmp336__length1; - gfloat _tmp337_; - RGBTransformation* _tmp338_; - gfloat* _tmp339_; - gint _tmp339__length1; - gfloat _tmp340_; - gfloat* _tmp341_; - gint _tmp341__length1; - gfloat _tmp342_; - RGBTransformation* _tmp343_; - gfloat* _tmp344_; - gint _tmp344__length1; - gfloat _tmp345_; - gfloat* _tmp346_; - gint _tmp346__length1; - gfloat _tmp347_; - RGBTransformation* _tmp348_; - gfloat* _tmp349_; - gint _tmp349__length1; - gfloat _tmp350_; - gfloat* _tmp351_; - gint _tmp351__length1; - gfloat _tmp352_; - gfloat _tmp353_; - gboolean _tmp363_ = FALSE; - gboolean _tmp364_; -#line 340 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RGB_TRANSFORMATION, RGBTransformation); -#line 341 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (pixel_transformation_get_composition_mode (other) != COMPOSITION_MODE_RGB_MATRIX) { -#line 342 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_error ("ColorTransformation.vala:342: %s", "RGBTransformation: compose_with( ): 'other' transformation " "does not support RGB_MATRIX composition mode"); -#line 3684 "ColorTransformation.c" - } -#line 345 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = _pixel_transformation_ref0 (G_TYPE_CHECK_INSTANCE_CAST (other, TYPE_RGB_TRANSFORMATION, RGBTransformation)); -#line 345 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - transform = _tmp0_; -#line 347 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = g_new0 (gfloat, 16); -#line 347 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result_matrix_entries = _tmp1_; -#line 347 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result_matrix_entries_length1 = 16; -#line 347 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _result_matrix_entries_size_ = result_matrix_entries_length1; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = result_matrix_entries; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2__length1 = result_matrix_entries_length1; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = transform; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = _tmp3_->matrix_entries; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4__length1 = _tmp3_->matrix_entries_length1; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = _tmp4_[0]; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = self->matrix_entries; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6__length1 = self->matrix_entries_length1; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = _tmp6_[0]; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = transform; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = _tmp8_->matrix_entries; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9__length1 = _tmp8_->matrix_entries_length1; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = _tmp9_[1]; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = self->matrix_entries; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11__length1 = self->matrix_entries_length1; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = _tmp11_[4]; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = transform; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = _tmp13_->matrix_entries; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14__length1 = _tmp13_->matrix_entries_length1; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = _tmp14_[2]; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_ = self->matrix_entries; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16__length1 = self->matrix_entries_length1; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp17_ = _tmp16_[8]; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18_ = transform; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_ = _tmp18_->matrix_entries; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19__length1 = _tmp18_->matrix_entries_length1; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20_ = _tmp19_[3]; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21_ = self->matrix_entries; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21__length1 = self->matrix_entries_length1; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22_ = _tmp21_[12]; -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_[0] = (((_tmp5_ * _tmp7_) + (_tmp10_ * _tmp12_)) + (_tmp15_ * _tmp17_)) + (_tmp20_ * _tmp22_); -#line 350 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp23_ = _tmp2_[0]; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24_ = result_matrix_entries; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24__length1 = result_matrix_entries_length1; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp25_ = transform; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp26_ = _tmp25_->matrix_entries; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp26__length1 = _tmp25_->matrix_entries_length1; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp27_ = _tmp26_[0]; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp28_ = self->matrix_entries; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp28__length1 = self->matrix_entries_length1; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp29_ = _tmp28_[1]; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp30_ = transform; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp31_ = _tmp30_->matrix_entries; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp31__length1 = _tmp30_->matrix_entries_length1; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp32_ = _tmp31_[1]; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp33_ = self->matrix_entries; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp33__length1 = self->matrix_entries_length1; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp34_ = _tmp33_[5]; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp35_ = transform; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp36_ = _tmp35_->matrix_entries; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp36__length1 = _tmp35_->matrix_entries_length1; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp37_ = _tmp36_[2]; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp38_ = self->matrix_entries; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp38__length1 = self->matrix_entries_length1; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp39_ = _tmp38_[9]; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp40_ = transform; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp41_ = _tmp40_->matrix_entries; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp41__length1 = _tmp40_->matrix_entries_length1; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp42_ = _tmp41_[3]; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp43_ = self->matrix_entries; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp43__length1 = self->matrix_entries_length1; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp44_ = _tmp43_[13]; -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24_[1] = (((_tmp27_ * _tmp29_) + (_tmp32_ * _tmp34_)) + (_tmp37_ * _tmp39_)) + (_tmp42_ * _tmp44_); -#line 356 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp45_ = _tmp24_[1]; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp46_ = result_matrix_entries; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp46__length1 = result_matrix_entries_length1; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp47_ = transform; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp48_ = _tmp47_->matrix_entries; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp48__length1 = _tmp47_->matrix_entries_length1; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp49_ = _tmp48_[0]; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp50_ = self->matrix_entries; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp50__length1 = self->matrix_entries_length1; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp51_ = _tmp50_[2]; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp52_ = transform; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp53_ = _tmp52_->matrix_entries; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp53__length1 = _tmp52_->matrix_entries_length1; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp54_ = _tmp53_[1]; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp55_ = self->matrix_entries; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp55__length1 = self->matrix_entries_length1; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp56_ = _tmp55_[6]; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp57_ = transform; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp58_ = _tmp57_->matrix_entries; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp58__length1 = _tmp57_->matrix_entries_length1; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp59_ = _tmp58_[2]; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp60_ = self->matrix_entries; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp60__length1 = self->matrix_entries_length1; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp61_ = _tmp60_[10]; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp62_ = transform; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp63_ = _tmp62_->matrix_entries; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp63__length1 = _tmp62_->matrix_entries_length1; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp64_ = _tmp63_[3]; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp65_ = self->matrix_entries; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp65__length1 = self->matrix_entries_length1; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp66_ = _tmp65_[14]; -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp46_[2] = (((_tmp49_ * _tmp51_) + (_tmp54_ * _tmp56_)) + (_tmp59_ * _tmp61_)) + (_tmp64_ * _tmp66_); -#line 362 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp67_ = _tmp46_[2]; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp68_ = result_matrix_entries; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp68__length1 = result_matrix_entries_length1; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp69_ = transform; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp70_ = _tmp69_->matrix_entries; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp70__length1 = _tmp69_->matrix_entries_length1; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp71_ = _tmp70_[0]; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp72_ = self->matrix_entries; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp72__length1 = self->matrix_entries_length1; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp73_ = _tmp72_[3]; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp74_ = transform; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp75_ = _tmp74_->matrix_entries; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp75__length1 = _tmp74_->matrix_entries_length1; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp76_ = _tmp75_[1]; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp77_ = self->matrix_entries; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp77__length1 = self->matrix_entries_length1; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp78_ = _tmp77_[7]; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp79_ = transform; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp80_ = _tmp79_->matrix_entries; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp80__length1 = _tmp79_->matrix_entries_length1; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp81_ = _tmp80_[2]; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp82_ = self->matrix_entries; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp82__length1 = self->matrix_entries_length1; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp83_ = _tmp82_[11]; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp84_ = transform; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp85_ = _tmp84_->matrix_entries; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp85__length1 = _tmp84_->matrix_entries_length1; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp86_ = _tmp85_[3]; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp87_ = self->matrix_entries; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp87__length1 = self->matrix_entries_length1; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp88_ = _tmp87_[15]; -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp68_[3] = (((_tmp71_ * _tmp73_) + (_tmp76_ * _tmp78_)) + (_tmp81_ * _tmp83_)) + (_tmp86_ * _tmp88_); -#line 368 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp89_ = _tmp68_[3]; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp90_ = result_matrix_entries; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp90__length1 = result_matrix_entries_length1; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp91_ = transform; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp92_ = _tmp91_->matrix_entries; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp92__length1 = _tmp91_->matrix_entries_length1; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp93_ = _tmp92_[4]; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp94_ = self->matrix_entries; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp94__length1 = self->matrix_entries_length1; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp95_ = _tmp94_[0]; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp96_ = transform; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp97_ = _tmp96_->matrix_entries; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp97__length1 = _tmp96_->matrix_entries_length1; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp98_ = _tmp97_[5]; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp99_ = self->matrix_entries; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp99__length1 = self->matrix_entries_length1; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp100_ = _tmp99_[4]; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp101_ = transform; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp102_ = _tmp101_->matrix_entries; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp102__length1 = _tmp101_->matrix_entries_length1; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp103_ = _tmp102_[6]; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp104_ = self->matrix_entries; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp104__length1 = self->matrix_entries_length1; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp105_ = _tmp104_[8]; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp106_ = transform; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp107_ = _tmp106_->matrix_entries; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp107__length1 = _tmp106_->matrix_entries_length1; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp108_ = _tmp107_[7]; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp109_ = self->matrix_entries; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp109__length1 = self->matrix_entries_length1; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp110_ = _tmp109_[12]; -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp90_[4] = (((_tmp93_ * _tmp95_) + (_tmp98_ * _tmp100_)) + (_tmp103_ * _tmp105_)) + (_tmp108_ * _tmp110_); -#line 375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp111_ = _tmp90_[4]; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp112_ = result_matrix_entries; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp112__length1 = result_matrix_entries_length1; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp113_ = transform; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp114_ = _tmp113_->matrix_entries; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp114__length1 = _tmp113_->matrix_entries_length1; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp115_ = _tmp114_[4]; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp116_ = self->matrix_entries; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp116__length1 = self->matrix_entries_length1; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp117_ = _tmp116_[1]; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp118_ = transform; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp119_ = _tmp118_->matrix_entries; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp119__length1 = _tmp118_->matrix_entries_length1; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp120_ = _tmp119_[5]; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp121_ = self->matrix_entries; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp121__length1 = self->matrix_entries_length1; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp122_ = _tmp121_[5]; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp123_ = transform; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp124_ = _tmp123_->matrix_entries; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp124__length1 = _tmp123_->matrix_entries_length1; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp125_ = _tmp124_[6]; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp126_ = self->matrix_entries; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp126__length1 = self->matrix_entries_length1; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp127_ = _tmp126_[9]; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp128_ = transform; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp129_ = _tmp128_->matrix_entries; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp129__length1 = _tmp128_->matrix_entries_length1; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp130_ = _tmp129_[7]; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp131_ = self->matrix_entries; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp131__length1 = self->matrix_entries_length1; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp132_ = _tmp131_[13]; -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp112_[5] = (((_tmp115_ * _tmp117_) + (_tmp120_ * _tmp122_)) + (_tmp125_ * _tmp127_)) + (_tmp130_ * _tmp132_); -#line 381 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp133_ = _tmp112_[5]; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp134_ = result_matrix_entries; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp134__length1 = result_matrix_entries_length1; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp135_ = transform; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp136_ = _tmp135_->matrix_entries; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp136__length1 = _tmp135_->matrix_entries_length1; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp137_ = _tmp136_[4]; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp138_ = self->matrix_entries; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp138__length1 = self->matrix_entries_length1; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp139_ = _tmp138_[2]; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp140_ = transform; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp141_ = _tmp140_->matrix_entries; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp141__length1 = _tmp140_->matrix_entries_length1; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp142_ = _tmp141_[5]; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp143_ = self->matrix_entries; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp143__length1 = self->matrix_entries_length1; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp144_ = _tmp143_[6]; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp145_ = transform; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp146_ = _tmp145_->matrix_entries; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp146__length1 = _tmp145_->matrix_entries_length1; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp147_ = _tmp146_[6]; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp148_ = self->matrix_entries; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp148__length1 = self->matrix_entries_length1; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp149_ = _tmp148_[10]; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp150_ = transform; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp151_ = _tmp150_->matrix_entries; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp151__length1 = _tmp150_->matrix_entries_length1; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp152_ = _tmp151_[7]; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp153_ = self->matrix_entries; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp153__length1 = self->matrix_entries_length1; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp154_ = _tmp153_[14]; -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp134_[6] = (((_tmp137_ * _tmp139_) + (_tmp142_ * _tmp144_)) + (_tmp147_ * _tmp149_)) + (_tmp152_ * _tmp154_); -#line 387 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp155_ = _tmp134_[6]; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp156_ = result_matrix_entries; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp156__length1 = result_matrix_entries_length1; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp157_ = transform; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp158_ = _tmp157_->matrix_entries; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp158__length1 = _tmp157_->matrix_entries_length1; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp159_ = _tmp158_[4]; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp160_ = self->matrix_entries; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp160__length1 = self->matrix_entries_length1; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp161_ = _tmp160_[3]; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp162_ = transform; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp163_ = _tmp162_->matrix_entries; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp163__length1 = _tmp162_->matrix_entries_length1; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp164_ = _tmp163_[5]; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp165_ = self->matrix_entries; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp165__length1 = self->matrix_entries_length1; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp166_ = _tmp165_[7]; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp167_ = transform; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp168_ = _tmp167_->matrix_entries; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp168__length1 = _tmp167_->matrix_entries_length1; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp169_ = _tmp168_[6]; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp170_ = self->matrix_entries; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp170__length1 = self->matrix_entries_length1; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp171_ = _tmp170_[11]; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp172_ = transform; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp173_ = _tmp172_->matrix_entries; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp173__length1 = _tmp172_->matrix_entries_length1; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp174_ = _tmp173_[7]; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp175_ = self->matrix_entries; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp175__length1 = self->matrix_entries_length1; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp176_ = _tmp175_[15]; -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp156_[7] = (((_tmp159_ * _tmp161_) + (_tmp164_ * _tmp166_)) + (_tmp169_ * _tmp171_)) + (_tmp174_ * _tmp176_); -#line 393 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp177_ = _tmp156_[7]; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp178_ = result_matrix_entries; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp178__length1 = result_matrix_entries_length1; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp179_ = transform; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp180_ = _tmp179_->matrix_entries; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp180__length1 = _tmp179_->matrix_entries_length1; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp181_ = _tmp180_[8]; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp182_ = self->matrix_entries; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp182__length1 = self->matrix_entries_length1; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp183_ = _tmp182_[0]; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp184_ = transform; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp185_ = _tmp184_->matrix_entries; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp185__length1 = _tmp184_->matrix_entries_length1; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp186_ = _tmp185_[9]; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp187_ = self->matrix_entries; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp187__length1 = self->matrix_entries_length1; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp188_ = _tmp187_[4]; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp189_ = transform; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp190_ = _tmp189_->matrix_entries; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp190__length1 = _tmp189_->matrix_entries_length1; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp191_ = _tmp190_[10]; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp192_ = self->matrix_entries; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp192__length1 = self->matrix_entries_length1; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp193_ = _tmp192_[8]; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp194_ = transform; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp195_ = _tmp194_->matrix_entries; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp195__length1 = _tmp194_->matrix_entries_length1; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp196_ = _tmp195_[11]; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp197_ = self->matrix_entries; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp197__length1 = self->matrix_entries_length1; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp198_ = _tmp197_[12]; -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp178_[8] = (((_tmp181_ * _tmp183_) + (_tmp186_ * _tmp188_)) + (_tmp191_ * _tmp193_)) + (_tmp196_ * _tmp198_); -#line 400 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp199_ = _tmp178_[8]; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp200_ = result_matrix_entries; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp200__length1 = result_matrix_entries_length1; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp201_ = transform; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp202_ = _tmp201_->matrix_entries; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp202__length1 = _tmp201_->matrix_entries_length1; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp203_ = _tmp202_[8]; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp204_ = self->matrix_entries; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp204__length1 = self->matrix_entries_length1; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp205_ = _tmp204_[1]; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp206_ = transform; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp207_ = _tmp206_->matrix_entries; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp207__length1 = _tmp206_->matrix_entries_length1; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp208_ = _tmp207_[9]; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp209_ = self->matrix_entries; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp209__length1 = self->matrix_entries_length1; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp210_ = _tmp209_[5]; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp211_ = transform; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp212_ = _tmp211_->matrix_entries; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp212__length1 = _tmp211_->matrix_entries_length1; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp213_ = _tmp212_[10]; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp214_ = self->matrix_entries; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp214__length1 = self->matrix_entries_length1; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp215_ = _tmp214_[9]; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp216_ = transform; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp217_ = _tmp216_->matrix_entries; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp217__length1 = _tmp216_->matrix_entries_length1; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp218_ = _tmp217_[11]; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp219_ = self->matrix_entries; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp219__length1 = self->matrix_entries_length1; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp220_ = _tmp219_[13]; -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp200_[9] = (((_tmp203_ * _tmp205_) + (_tmp208_ * _tmp210_)) + (_tmp213_ * _tmp215_)) + (_tmp218_ * _tmp220_); -#line 406 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp221_ = _tmp200_[9]; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp222_ = result_matrix_entries; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp222__length1 = result_matrix_entries_length1; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp223_ = transform; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp224_ = _tmp223_->matrix_entries; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp224__length1 = _tmp223_->matrix_entries_length1; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp225_ = _tmp224_[8]; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp226_ = self->matrix_entries; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp226__length1 = self->matrix_entries_length1; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp227_ = _tmp226_[2]; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp228_ = transform; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp229_ = _tmp228_->matrix_entries; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp229__length1 = _tmp228_->matrix_entries_length1; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp230_ = _tmp229_[9]; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp231_ = self->matrix_entries; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp231__length1 = self->matrix_entries_length1; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp232_ = _tmp231_[6]; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp233_ = transform; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp234_ = _tmp233_->matrix_entries; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp234__length1 = _tmp233_->matrix_entries_length1; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp235_ = _tmp234_[10]; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp236_ = self->matrix_entries; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp236__length1 = self->matrix_entries_length1; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp237_ = _tmp236_[10]; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp238_ = transform; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp239_ = _tmp238_->matrix_entries; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp239__length1 = _tmp238_->matrix_entries_length1; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp240_ = _tmp239_[11]; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp241_ = self->matrix_entries; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp241__length1 = self->matrix_entries_length1; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp242_ = _tmp241_[14]; -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp222_[10] = (((_tmp225_ * _tmp227_) + (_tmp230_ * _tmp232_)) + (_tmp235_ * _tmp237_)) + (_tmp240_ * _tmp242_); -#line 412 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp243_ = _tmp222_[10]; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp244_ = result_matrix_entries; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp244__length1 = result_matrix_entries_length1; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp245_ = transform; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp246_ = _tmp245_->matrix_entries; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp246__length1 = _tmp245_->matrix_entries_length1; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp247_ = _tmp246_[8]; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp248_ = self->matrix_entries; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp248__length1 = self->matrix_entries_length1; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp249_ = _tmp248_[3]; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp250_ = transform; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp251_ = _tmp250_->matrix_entries; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp251__length1 = _tmp250_->matrix_entries_length1; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp252_ = _tmp251_[9]; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp253_ = self->matrix_entries; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp253__length1 = self->matrix_entries_length1; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp254_ = _tmp253_[7]; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp255_ = transform; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp256_ = _tmp255_->matrix_entries; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp256__length1 = _tmp255_->matrix_entries_length1; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp257_ = _tmp256_[10]; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp258_ = self->matrix_entries; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp258__length1 = self->matrix_entries_length1; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp259_ = _tmp258_[11]; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp260_ = transform; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp261_ = _tmp260_->matrix_entries; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp261__length1 = _tmp260_->matrix_entries_length1; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp262_ = _tmp261_[11]; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp263_ = self->matrix_entries; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp263__length1 = self->matrix_entries_length1; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp264_ = _tmp263_[15]; -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp244_[11] = (((_tmp247_ * _tmp249_) + (_tmp252_ * _tmp254_)) + (_tmp257_ * _tmp259_)) + (_tmp262_ * _tmp264_); -#line 418 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp265_ = _tmp244_[11]; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp266_ = result_matrix_entries; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp266__length1 = result_matrix_entries_length1; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp267_ = transform; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp268_ = _tmp267_->matrix_entries; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp268__length1 = _tmp267_->matrix_entries_length1; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp269_ = _tmp268_[12]; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp270_ = self->matrix_entries; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp270__length1 = self->matrix_entries_length1; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp271_ = _tmp270_[0]; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp272_ = transform; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp273_ = _tmp272_->matrix_entries; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp273__length1 = _tmp272_->matrix_entries_length1; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp274_ = _tmp273_[13]; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp275_ = self->matrix_entries; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp275__length1 = self->matrix_entries_length1; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp276_ = _tmp275_[4]; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp277_ = transform; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp278_ = _tmp277_->matrix_entries; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp278__length1 = _tmp277_->matrix_entries_length1; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp279_ = _tmp278_[14]; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp280_ = self->matrix_entries; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp280__length1 = self->matrix_entries_length1; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp281_ = _tmp280_[8]; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp282_ = transform; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp283_ = _tmp282_->matrix_entries; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp283__length1 = _tmp282_->matrix_entries_length1; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp284_ = _tmp283_[15]; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp285_ = self->matrix_entries; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp285__length1 = self->matrix_entries_length1; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp286_ = _tmp285_[12]; -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp266_[12] = (((_tmp269_ * _tmp271_) + (_tmp274_ * _tmp276_)) + (_tmp279_ * _tmp281_)) + (_tmp284_ * _tmp286_); -#line 425 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp287_ = _tmp266_[12]; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp288_ = result_matrix_entries; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp288__length1 = result_matrix_entries_length1; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp289_ = transform; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp290_ = _tmp289_->matrix_entries; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp290__length1 = _tmp289_->matrix_entries_length1; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp291_ = _tmp290_[12]; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp292_ = self->matrix_entries; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp292__length1 = self->matrix_entries_length1; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp293_ = _tmp292_[1]; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp294_ = transform; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp295_ = _tmp294_->matrix_entries; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp295__length1 = _tmp294_->matrix_entries_length1; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp296_ = _tmp295_[13]; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp297_ = self->matrix_entries; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp297__length1 = self->matrix_entries_length1; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp298_ = _tmp297_[5]; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp299_ = transform; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp300_ = _tmp299_->matrix_entries; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp300__length1 = _tmp299_->matrix_entries_length1; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp301_ = _tmp300_[14]; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp302_ = self->matrix_entries; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp302__length1 = self->matrix_entries_length1; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp303_ = _tmp302_[9]; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp304_ = transform; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp305_ = _tmp304_->matrix_entries; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp305__length1 = _tmp304_->matrix_entries_length1; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp306_ = _tmp305_[15]; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp307_ = self->matrix_entries; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp307__length1 = self->matrix_entries_length1; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp308_ = _tmp307_[13]; -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp288_[13] = (((_tmp291_ * _tmp293_) + (_tmp296_ * _tmp298_)) + (_tmp301_ * _tmp303_)) + (_tmp306_ * _tmp308_); -#line 431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp309_ = _tmp288_[13]; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp310_ = result_matrix_entries; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp310__length1 = result_matrix_entries_length1; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp311_ = transform; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp312_ = _tmp311_->matrix_entries; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp312__length1 = _tmp311_->matrix_entries_length1; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp313_ = _tmp312_[12]; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp314_ = self->matrix_entries; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp314__length1 = self->matrix_entries_length1; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp315_ = _tmp314_[2]; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp316_ = transform; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp317_ = _tmp316_->matrix_entries; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp317__length1 = _tmp316_->matrix_entries_length1; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp318_ = _tmp317_[13]; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp319_ = self->matrix_entries; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp319__length1 = self->matrix_entries_length1; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp320_ = _tmp319_[6]; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp321_ = transform; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp322_ = _tmp321_->matrix_entries; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp322__length1 = _tmp321_->matrix_entries_length1; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp323_ = _tmp322_[14]; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp324_ = self->matrix_entries; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp324__length1 = self->matrix_entries_length1; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp325_ = _tmp324_[10]; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp326_ = transform; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp327_ = _tmp326_->matrix_entries; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp327__length1 = _tmp326_->matrix_entries_length1; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp328_ = _tmp327_[15]; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp329_ = self->matrix_entries; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp329__length1 = self->matrix_entries_length1; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp330_ = _tmp329_[14]; -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp310_[14] = (((_tmp313_ * _tmp315_) + (_tmp318_ * _tmp320_)) + (_tmp323_ * _tmp325_)) + (_tmp328_ * _tmp330_); -#line 437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp331_ = _tmp310_[14]; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp332_ = result_matrix_entries; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp332__length1 = result_matrix_entries_length1; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp333_ = transform; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp334_ = _tmp333_->matrix_entries; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp334__length1 = _tmp333_->matrix_entries_length1; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp335_ = _tmp334_[12]; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp336_ = self->matrix_entries; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp336__length1 = self->matrix_entries_length1; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp337_ = _tmp336_[3]; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp338_ = transform; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp339_ = _tmp338_->matrix_entries; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp339__length1 = _tmp338_->matrix_entries_length1; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp340_ = _tmp339_[13]; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp341_ = self->matrix_entries; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp341__length1 = self->matrix_entries_length1; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp342_ = _tmp341_[7]; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp343_ = transform; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp344_ = _tmp343_->matrix_entries; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp344__length1 = _tmp343_->matrix_entries_length1; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp345_ = _tmp344_[14]; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp346_ = self->matrix_entries; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp346__length1 = self->matrix_entries_length1; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp347_ = _tmp346_[11]; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp348_ = transform; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp349_ = _tmp348_->matrix_entries; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp349__length1 = _tmp348_->matrix_entries_length1; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp350_ = _tmp349_[15]; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp351_ = self->matrix_entries; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp351__length1 = self->matrix_entries_length1; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp352_ = _tmp351_[15]; -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp332_[15] = (((_tmp335_ * _tmp337_) + (_tmp340_ * _tmp342_)) + (_tmp345_ * _tmp347_)) + (_tmp350_ * _tmp352_); -#line 443 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp353_ = _tmp332_[15]; -#line 4722 "ColorTransformation.c" - { - gint i = 0; -#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = 0; -#line 4727 "ColorTransformation.c" - { - gboolean _tmp354_ = FALSE; -#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp354_ = TRUE; -#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 4734 "ColorTransformation.c" - gint _tmp356_; - gfloat* _tmp357_; - gint _tmp357__length1; - gint _tmp358_; - gfloat* _tmp359_; - gint _tmp359__length1; - gint _tmp360_; - gfloat _tmp361_; - gfloat _tmp362_; -#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp354_) { -#line 4746 "ColorTransformation.c" - gint _tmp355_; -#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp355_ = i; -#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp355_ + 1; -#line 4752 "ColorTransformation.c" - } -#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp354_ = FALSE; -#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp356_ = i; -#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp356_ < RGB_TRANSFORMATION_MATRIX_SIZE)) { -#line 449 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 4762 "ColorTransformation.c" - } -#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp357_ = self->matrix_entries; -#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp357__length1 = self->matrix_entries_length1; -#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp358_ = i; -#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp359_ = result_matrix_entries; -#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp359__length1 = result_matrix_entries_length1; -#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp360_ = i; -#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp361_ = _tmp359_[_tmp360_]; -#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp357_[_tmp358_] = _tmp361_; -#line 450 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp362_ = _tmp357_[_tmp358_]; -#line 4782 "ColorTransformation.c" - } - } - } -#line 452 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp364_ = self->identity; -#line 452 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp364_) { -#line 4790 "ColorTransformation.c" - RGBTransformation* _tmp365_; - gboolean _tmp366_; -#line 452 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp365_ = transform; -#line 452 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp366_ = _tmp365_->identity; -#line 452 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp363_ = _tmp366_; -#line 4799 "ColorTransformation.c" - } else { -#line 452 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp363_ = FALSE; -#line 4803 "ColorTransformation.c" - } -#line 452 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->identity = _tmp363_; -#line 340 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result_matrix_entries = (g_free (result_matrix_entries), NULL); -#line 340 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (transform); -#line 4811 "ColorTransformation.c" -} - - -static void -rgb_transformation_real_transform_pixel_hsv (PixelTransformation* base, - HSVAnalyticPixel* p, - HSVAnalyticPixel* result) -{ - RGBTransformation * self; - RGBAnalyticPixel _tmp0_ = {0}; - RGBAnalyticPixel _tmp1_ = {0}; - HSVAnalyticPixel _tmp2_ = {0}; -#line 455 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RGB_TRANSFORMATION, RGBTransformation); -#line 456 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - hsv_analytic_pixel_to_rgb (p, &_tmp0_); -#line 456 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_transform_pixel_rgb (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), &_tmp0_, &_tmp1_); -#line 456 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - rgb_analytic_pixel_to_hsv (&_tmp1_, &_tmp2_); -#line 456 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *result = _tmp2_; -#line 456 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return; -#line 4836 "ColorTransformation.c" -} - - -static gboolean -rgb_transformation_real_is_identity (PixelTransformation* base) -{ - RGBTransformation * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 461 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RGB_TRANSFORMATION, RGBTransformation); -#line 462 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->identity; -#line 462 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_; -#line 462 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 4854 "ColorTransformation.c" -} - - -static PixelTransformation* -rgb_transformation_real_copy (PixelTransformation* base) -{ - RGBTransformation * self; - PixelTransformation* result = NULL; - RGBTransformation* _result_ = NULL; - RGBTransformation* _tmp0_; -#line 465 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RGB_TRANSFORMATION, RGBTransformation); -#line 466 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = rgb_transformation_new (pixel_transformation_get_transformation_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PIXEL_TRANSFORMATION, PixelTransformation))); -#line 466 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _result_ = _tmp0_; -#line 4871 "ColorTransformation.c" - { - gint i = 0; -#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = 0; -#line 4876 "ColorTransformation.c" - { - gboolean _tmp1_ = FALSE; -#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = TRUE; -#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 4883 "ColorTransformation.c" - gint _tmp3_; - RGBTransformation* _tmp4_; - gfloat* _tmp5_; - gint _tmp5__length1; - gint _tmp6_; - gfloat* _tmp7_; - gint _tmp7__length1; - gint _tmp8_; - gfloat _tmp9_; - gfloat _tmp10_; -#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp1_) { -#line 4896 "ColorTransformation.c" - gint _tmp2_; -#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = i; -#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp2_ + 1; -#line 4902 "ColorTransformation.c" - } -#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = FALSE; -#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = i; -#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp3_ < RGB_TRANSFORMATION_MATRIX_SIZE)) { -#line 468 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 4912 "ColorTransformation.c" - } -#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = _result_; -#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = _tmp4_->matrix_entries; -#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5__length1 = _tmp4_->matrix_entries_length1; -#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = i; -#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = self->matrix_entries; -#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7__length1 = self->matrix_entries_length1; -#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = i; -#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = _tmp7_[_tmp8_]; -#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_[_tmp6_] = _tmp9_; -#line 469 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = _tmp5_[_tmp6_]; -#line 4934 "ColorTransformation.c" - } - } - } -#line 472 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_result_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation); -#line 472 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 4942 "ColorTransformation.c" -} - - -static void -rgb_transformation_class_init (RGBTransformationClass * klass) -{ -#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - rgb_transformation_parent_class = g_type_class_peek_parent (klass); -#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->finalize = rgb_transformation_finalize; -#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->get_composition_mode = (CompositionMode (*) (PixelTransformation *)) rgb_transformation_real_get_composition_mode; -#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->compose_with = (void (*) (PixelTransformation *, PixelTransformation*)) rgb_transformation_real_compose_with; -#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->transform_pixel_hsv = (void (*) (PixelTransformation *, HSVAnalyticPixel*, HSVAnalyticPixel*)) rgb_transformation_real_transform_pixel_hsv; -#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->transform_pixel_rgb = (void (*) (PixelTransformation *, RGBAnalyticPixel*, RGBAnalyticPixel*)) rgb_transformation_real_transform_pixel_rgb; -#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->is_identity = (gboolean (*) (PixelTransformation *)) rgb_transformation_real_is_identity; -#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->copy = (PixelTransformation* (*) (PixelTransformation *)) rgb_transformation_real_copy; -#line 4965 "ColorTransformation.c" -} - - -static void -rgb_transformation_instance_init (RGBTransformation * self) -{ -#line 320 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->identity = TRUE; -#line 4974 "ColorTransformation.c" -} - - -static void -rgb_transformation_finalize (PixelTransformation * obj) -{ - RGBTransformation * self; -#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RGB_TRANSFORMATION, RGBTransformation); -#line 316 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->matrix_entries = (g_free (self->matrix_entries), NULL); -#line 313 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - PIXEL_TRANSFORMATION_CLASS (rgb_transformation_parent_class)->finalize (obj); -#line 4988 "ColorTransformation.c" -} - - -GType -rgb_transformation_get_type (void) -{ - static volatile gsize rgb_transformation_type_id__volatile = 0; - if (g_once_init_enter (&rgb_transformation_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (RGBTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rgb_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RGBTransformation), 0, (GInstanceInitFunc) rgb_transformation_instance_init, NULL }; - GType rgb_transformation_type_id; - rgb_transformation_type_id = g_type_register_static (TYPE_PIXEL_TRANSFORMATION, "RGBTransformation", &g_define_type_info, 0); - g_once_init_leave (&rgb_transformation_type_id__volatile, rgb_transformation_type_id); - } - return rgb_transformation_type_id__volatile; -} - - -HSVTransformation* -hsv_transformation_construct (GType object_type, - PixelTransformationType type) -{ - HSVTransformation* self = NULL; -#line 480 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (HSVTransformation*) pixel_transformation_construct (object_type, type, PIXEL_FORMAT_HSV); -#line 479 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 5015 "ColorTransformation.c" -} - - -static CompositionMode -hsv_transformation_real_get_composition_mode (PixelTransformation* base) -{ - HSVTransformation * self; - CompositionMode result = 0; -#line 483 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HSV_TRANSFORMATION, HSVTransformation); -#line 484 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = COMPOSITION_MODE_HSV_LOOKUP; -#line 484 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 5030 "ColorTransformation.c" -} - - -static void -hsv_transformation_real_transform_pixel_rgb (PixelTransformation* base, - RGBAnalyticPixel* p, - RGBAnalyticPixel* result) -{ - HSVTransformation * self; - HSVAnalyticPixel _tmp0_ = {0}; - HSVAnalyticPixel _tmp1_ = {0}; - RGBAnalyticPixel _tmp2_ = {0}; -#line 487 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HSV_TRANSFORMATION, HSVTransformation); -#line 488 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - rgb_analytic_pixel_to_hsv (p, &_tmp0_); -#line 488 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_transform_pixel_hsv (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), &_tmp0_, &_tmp1_); -#line 488 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - hsv_analytic_pixel_to_rgb (&_tmp1_, &_tmp2_); -#line 488 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *result = _tmp2_; -#line 488 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return; -#line 5055 "ColorTransformation.c" -} - - -static void -hsv_transformation_real_compose_with (PixelTransformation* base, - PixelTransformation* other) -{ - HSVTransformation * self; - HSVTransformation* hsv_trans = NULL; - HSVTransformation* _tmp0_; -#line 491 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HSV_TRANSFORMATION, HSVTransformation); -#line 492 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (pixel_transformation_get_composition_mode (other) != COMPOSITION_MODE_HSV_LOOKUP) { -#line 493 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_error ("ColorTransformation.vala:493: HSVTransformation: compose_with(): wrong"); -#line 5072 "ColorTransformation.c" - } -#line 496 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = _pixel_transformation_ref0 (G_TYPE_CHECK_INSTANCE_CAST (other, TYPE_HSV_TRANSFORMATION, HSVTransformation)); -#line 496 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - hsv_trans = _tmp0_; -#line 5078 "ColorTransformation.c" - { - gint i = 0; -#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = 0; -#line 5083 "ColorTransformation.c" - { - gboolean _tmp1_ = FALSE; -#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = TRUE; -#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 5090 "ColorTransformation.c" - gint _tmp3_; - gint idx = 0; - gint _tmp4_; - gfloat _tmp5_; - gint _tmp6_; - HSVTransformation* _tmp7_; - gint _tmp8_; - gfloat _tmp9_; - gfloat _tmp10_; -#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp1_) { -#line 5102 "ColorTransformation.c" - gint _tmp2_; -#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = i; -#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp2_ + 1; -#line 5108 "ColorTransformation.c" - } -#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = FALSE; -#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = i; -#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp3_ < 256)) { -#line 500 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 5118 "ColorTransformation.c" - } -#line 501 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = i; -#line 501 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = self->remap_table[_tmp4_]; -#line 501 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - idx = (gint) (_tmp5_ * 255.0f); -#line 502 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = i; -#line 502 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = hsv_trans; -#line 502 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = idx; -#line 502 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = _tmp7_->remap_table[_tmp8_]; -#line 502 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->remap_table[_tmp6_] = CLAMP (_tmp9_, 0.0f, 1.0f); -#line 502 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = self->remap_table[_tmp6_]; -#line 5138 "ColorTransformation.c" - } - } - } -#line 491 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (hsv_trans); -#line 5144 "ColorTransformation.c" -} - - -static void -hsv_transformation_real_transform_pixel_hsv (PixelTransformation* base, - HSVAnalyticPixel* pixel, - HSVAnalyticPixel* result) -{ - HSVTransformation * self; - gint remap_index = 0; - HSVAnalyticPixel _tmp0_; - gfloat _tmp1_; - HSVAnalyticPixel _result_ = {0}; - HSVAnalyticPixel _tmp2_; - gfloat _tmp3_; - HSVAnalyticPixel _tmp4_; - gfloat _tmp5_; -#line 506 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HSV_TRANSFORMATION, HSVTransformation); -#line 507 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = *pixel; -#line 507 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = _tmp0_.light_value; -#line 507 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - remap_index = (gint) (_tmp1_ * 255.0f); -#line 509 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = *pixel; -#line 509 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _result_ = _tmp2_; -#line 510 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = self->remap_table[remap_index]; -#line 510 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _result_.light_value = _tmp3_; -#line 512 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = _result_; -#line 512 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = _tmp4_.light_value; -#line 512 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _result_.light_value = CLAMP (_tmp5_, 0.0f, 1.0f); -#line 514 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *result = _result_; -#line 514 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return; -#line 5188 "ColorTransformation.c" -} - - -static void -hsv_transformation_class_init (HSVTransformationClass * klass) -{ -#line 476 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - hsv_transformation_parent_class = g_type_class_peek_parent (klass); -#line 476 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->finalize = hsv_transformation_finalize; -#line 476 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->get_composition_mode = (CompositionMode (*) (PixelTransformation *)) hsv_transformation_real_get_composition_mode; -#line 476 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->transform_pixel_rgb = (void (*) (PixelTransformation *, RGBAnalyticPixel*, RGBAnalyticPixel*)) hsv_transformation_real_transform_pixel_rgb; -#line 476 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->compose_with = (void (*) (PixelTransformation *, PixelTransformation*)) hsv_transformation_real_compose_with; -#line 476 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->transform_pixel_hsv = (void (*) (PixelTransformation *, HSVAnalyticPixel*, HSVAnalyticPixel*)) hsv_transformation_real_transform_pixel_hsv; -#line 5207 "ColorTransformation.c" -} - - -static void -hsv_transformation_instance_init (HSVTransformation * self) -{ -} - - -static void -hsv_transformation_finalize (PixelTransformation * obj) -{ - HSVTransformation * self; -#line 476 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_HSV_TRANSFORMATION, HSVTransformation); -#line 476 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - PIXEL_TRANSFORMATION_CLASS (hsv_transformation_parent_class)->finalize (obj); -#line 5225 "ColorTransformation.c" -} - - -GType -hsv_transformation_get_type (void) -{ - static volatile gsize hsv_transformation_type_id__volatile = 0; - if (g_once_init_enter (&hsv_transformation_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (HSVTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) hsv_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HSVTransformation), 0, (GInstanceInitFunc) hsv_transformation_instance_init, NULL }; - GType hsv_transformation_type_id; - hsv_transformation_type_id = g_type_register_static (TYPE_PIXEL_TRANSFORMATION, "HSVTransformation", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&hsv_transformation_type_id__volatile, hsv_transformation_type_id); - } - return hsv_transformation_type_id__volatile; -} - - -TintTransformation* -tint_transformation_construct (GType object_type, - gfloat client_param) -{ - TintTransformation* self = NULL; - gfloat _tmp0_; -#line 527 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (TintTransformation*) rgb_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_TINT); -#line 529 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->parameter = CLAMP (client_param, TINT_TRANSFORMATION_MIN_PARAMETER, TINT_TRANSFORMATION_MAX_PARAMETER); -#line 531 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->parameter; -#line 531 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp0_ != 0.0f) { -#line 5257 "ColorTransformation.c" - gfloat adjusted_param = 0.0F; - gfloat _tmp1_; - gfloat _tmp2_; - gfloat* _tmp3_; - gint _tmp3__length1; - gfloat _tmp4_; - gfloat _tmp5_; - gfloat* _tmp6_; - gint _tmp6__length1; - gfloat _tmp7_; - gfloat _tmp8_; - gfloat* _tmp9_; - gint _tmp9__length1; - gfloat _tmp10_; - gfloat _tmp11_; -#line 532 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = self->priv->parameter; -#line 532 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - adjusted_param = _tmp1_ / TINT_TRANSFORMATION_MAX_PARAMETER; -#line 533 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = adjusted_param; -#line 533 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - adjusted_param = _tmp2_ * TINT_TRANSFORMATION_INTENSITY_FACTOR; -#line 535 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 535 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 535 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = adjusted_param; -#line 535 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_[11] -= _tmp4_ / 2; -#line 535 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = _tmp3_[11]; -#line 536 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 536 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 536 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = adjusted_param; -#line 536 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_[7] += _tmp7_; -#line 536 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = _tmp6_[7]; -#line 537 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 537 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 537 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = adjusted_param; -#line 537 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_[3] -= _tmp10_ / 2; -#line 537 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = _tmp9_[3]; -#line 539 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->identity = FALSE; -#line 5313 "ColorTransformation.c" - } -#line 526 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 5317 "ColorTransformation.c" -} - - -TintTransformation* -tint_transformation_new (gfloat client_param) -{ -#line 526 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return tint_transformation_construct (TYPE_TINT_TRANSFORMATION, client_param); -#line 5326 "ColorTransformation.c" -} - - -gfloat -tint_transformation_get_parameter (TintTransformation* self) -{ - gfloat result = 0.0F; - gfloat _tmp0_; -#line 544 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->parameter; -#line 544 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_; -#line 544 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 5341 "ColorTransformation.c" -} - - -static void -tint_transformation_class_init (TintTransformationClass * klass) -{ -#line 519 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - tint_transformation_parent_class = g_type_class_peek_parent (klass); -#line 519 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->finalize = tint_transformation_finalize; -#line 519 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_class_add_private (klass, sizeof (TintTransformationPrivate)); -#line 5354 "ColorTransformation.c" -} - - -static void -tint_transformation_instance_init (TintTransformation * self) -{ -#line 519 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv = TINT_TRANSFORMATION_GET_PRIVATE (self); -#line 5363 "ColorTransformation.c" -} - - -static void -tint_transformation_finalize (PixelTransformation * obj) -{ - TintTransformation * self; -#line 519 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TINT_TRANSFORMATION, TintTransformation); -#line 519 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - PIXEL_TRANSFORMATION_CLASS (tint_transformation_parent_class)->finalize (obj); -#line 5375 "ColorTransformation.c" -} - - -GType -tint_transformation_get_type (void) -{ - static volatile gsize tint_transformation_type_id__volatile = 0; - if (g_once_init_enter (&tint_transformation_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TintTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tint_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TintTransformation), 0, (GInstanceInitFunc) tint_transformation_instance_init, NULL }; - GType tint_transformation_type_id; - tint_transformation_type_id = g_type_register_static (TYPE_RGB_TRANSFORMATION, "TintTransformation", &g_define_type_info, 0); - g_once_init_leave (&tint_transformation_type_id__volatile, tint_transformation_type_id); - } - return tint_transformation_type_id__volatile; -} - - -TemperatureTransformation* -temperature_transformation_construct (GType object_type, - gfloat client_parameter) -{ - TemperatureTransformation* self = NULL; - gfloat _tmp0_; -#line 556 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (TemperatureTransformation*) rgb_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_TEMPERATURE); -#line 558 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->parameter = CLAMP (client_parameter, TEMPERATURE_TRANSFORMATION_MIN_PARAMETER, TEMPERATURE_TRANSFORMATION_MAX_PARAMETER); -#line 560 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->parameter; -#line 560 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp0_ != 0.0f) { -#line 5407 "ColorTransformation.c" - gfloat adjusted_param = 0.0F; - gfloat _tmp1_; - gfloat _tmp2_; - gfloat* _tmp3_; - gint _tmp3__length1; - gfloat _tmp4_; - gfloat _tmp5_; - gfloat* _tmp6_; - gint _tmp6__length1; - gfloat _tmp7_; - gfloat _tmp8_; - gfloat* _tmp9_; - gint _tmp9__length1; - gfloat _tmp10_; - gfloat _tmp11_; -#line 561 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = self->priv->parameter; -#line 561 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - adjusted_param = _tmp1_ / TEMPERATURE_TRANSFORMATION_MAX_PARAMETER; -#line 562 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = adjusted_param; -#line 562 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - adjusted_param = _tmp2_ * TEMPERATURE_TRANSFORMATION_INTENSITY_FACTOR; -#line 564 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 564 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 564 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = adjusted_param; -#line 564 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_[11] -= _tmp4_; -#line 564 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = _tmp3_[11]; -#line 565 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 565 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 565 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = adjusted_param; -#line 565 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_[7] += _tmp7_ / 2; -#line 565 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = _tmp6_[7]; -#line 566 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 566 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 566 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = adjusted_param; -#line 566 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_[3] += _tmp10_ / 2; -#line 566 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = _tmp9_[3]; -#line 568 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->identity = FALSE; -#line 5463 "ColorTransformation.c" - } -#line 555 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 5467 "ColorTransformation.c" -} - - -TemperatureTransformation* -temperature_transformation_new (gfloat client_parameter) -{ -#line 555 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return temperature_transformation_construct (TYPE_TEMPERATURE_TRANSFORMATION, client_parameter); -#line 5476 "ColorTransformation.c" -} - - -gfloat -temperature_transformation_get_parameter (TemperatureTransformation* self) -{ - gfloat result = 0.0F; - gfloat _tmp0_; -#line 573 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->parameter; -#line 573 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_; -#line 573 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 5491 "ColorTransformation.c" -} - - -static void -temperature_transformation_class_init (TemperatureTransformationClass * klass) -{ -#line 548 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - temperature_transformation_parent_class = g_type_class_peek_parent (klass); -#line 548 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->finalize = temperature_transformation_finalize; -#line 548 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_class_add_private (klass, sizeof (TemperatureTransformationPrivate)); -#line 5504 "ColorTransformation.c" -} - - -static void -temperature_transformation_instance_init (TemperatureTransformation * self) -{ -#line 548 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv = TEMPERATURE_TRANSFORMATION_GET_PRIVATE (self); -#line 5513 "ColorTransformation.c" -} - - -static void -temperature_transformation_finalize (PixelTransformation * obj) -{ - TemperatureTransformation * self; -#line 548 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformation); -#line 548 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - PIXEL_TRANSFORMATION_CLASS (temperature_transformation_parent_class)->finalize (obj); -#line 5525 "ColorTransformation.c" -} - - -GType -temperature_transformation_get_type (void) -{ - static volatile gsize temperature_transformation_type_id__volatile = 0; - if (g_once_init_enter (&temperature_transformation_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TemperatureTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) temperature_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TemperatureTransformation), 0, (GInstanceInitFunc) temperature_transformation_instance_init, NULL }; - GType temperature_transformation_type_id; - temperature_transformation_type_id = g_type_register_static (TYPE_RGB_TRANSFORMATION, "TemperatureTransformation", &g_define_type_info, 0); - g_once_init_leave (&temperature_transformation_type_id__volatile, temperature_transformation_type_id); - } - return temperature_transformation_type_id__volatile; -} - - -SaturationTransformation* -saturation_transformation_construct (GType object_type, - gfloat client_parameter) -{ - SaturationTransformation* self = NULL; - gfloat _tmp0_; -#line 584 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (SaturationTransformation*) rgb_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_SATURATION); -#line 586 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->parameter = CLAMP (client_parameter, SATURATION_TRANSFORMATION_MIN_PARAMETER, SATURATION_TRANSFORMATION_MAX_PARAMETER); -#line 588 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->parameter; -#line 588 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp0_ != 0.0f) { -#line 5557 "ColorTransformation.c" - gfloat adjusted_param = 0.0F; - gfloat _tmp1_; - gfloat _tmp2_; - gfloat one_third = 0.0F; - gfloat* _tmp3_; - gint _tmp3__length1; - gfloat _tmp4_; - gfloat _tmp5_; - gfloat _tmp6_; - gfloat _tmp7_; - gfloat* _tmp8_; - gint _tmp8__length1; - gfloat _tmp9_; - gfloat _tmp10_; - gfloat _tmp11_; - gfloat* _tmp12_; - gint _tmp12__length1; - gfloat _tmp13_; - gfloat _tmp14_; - gfloat _tmp15_; - gfloat* _tmp16_; - gint _tmp16__length1; - gfloat _tmp17_; - gfloat _tmp18_; - gfloat _tmp19_; - gfloat* _tmp20_; - gint _tmp20__length1; - gfloat _tmp21_; - gfloat _tmp22_; - gfloat _tmp23_; - gfloat _tmp24_; - gfloat* _tmp25_; - gint _tmp25__length1; - gfloat _tmp26_; - gfloat _tmp27_; - gfloat _tmp28_; - gfloat* _tmp29_; - gint _tmp29__length1; - gfloat _tmp30_; - gfloat _tmp31_; - gfloat _tmp32_; - gfloat* _tmp33_; - gint _tmp33__length1; - gfloat _tmp34_; - gfloat _tmp35_; - gfloat _tmp36_; - gfloat* _tmp37_; - gint _tmp37__length1; - gfloat _tmp38_; - gfloat _tmp39_; - gfloat _tmp40_; - gfloat _tmp41_; -#line 589 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = self->priv->parameter; -#line 589 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - adjusted_param = _tmp1_ / SATURATION_TRANSFORMATION_MAX_PARAMETER; -#line 590 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = adjusted_param; -#line 590 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - adjusted_param = _tmp2_ + 1.0f; -#line 592 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - one_third = 0.3333333f; -#line 594 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 594 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 594 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = adjusted_param; -#line 594 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = one_third; -#line 594 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = adjusted_param; -#line 594 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_[0] = ((1.0f - _tmp4_) * _tmp5_) + _tmp6_; -#line 594 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = _tmp3_[0]; -#line 596 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 596 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 596 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = adjusted_param; -#line 596 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = one_third; -#line 596 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_[1] = (1.0f - _tmp9_) * _tmp10_; -#line 596 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = _tmp8_[1]; -#line 597 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 597 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 597 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = adjusted_param; -#line 597 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = one_third; -#line 597 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_[2] = (1.0f - _tmp13_) * _tmp14_; -#line 597 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = _tmp12_[2]; -#line 599 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 599 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 599 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp17_ = adjusted_param; -#line 599 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18_ = one_third; -#line 599 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_[4] = (1.0f - _tmp17_) * _tmp18_; -#line 599 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_ = _tmp16_[4]; -#line 600 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 600 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 600 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21_ = adjusted_param; -#line 600 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22_ = one_third; -#line 600 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp23_ = adjusted_param; -#line 600 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20_[5] = ((1.0f - _tmp21_) * _tmp22_) + _tmp23_; -#line 600 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24_ = _tmp20_[5]; -#line 602 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp25_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 602 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp25__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 602 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp26_ = adjusted_param; -#line 602 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp27_ = one_third; -#line 602 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp25_[6] = (1.0f - _tmp26_) * _tmp27_; -#line 602 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp28_ = _tmp25_[6]; -#line 604 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp29_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 604 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp29__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 604 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp30_ = adjusted_param; -#line 604 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp31_ = one_third; -#line 604 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp29_[8] = (1.0f - _tmp30_) * _tmp31_; -#line 604 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp32_ = _tmp29_[8]; -#line 605 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp33_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 605 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp33__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 605 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp34_ = adjusted_param; -#line 605 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp35_ = one_third; -#line 605 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp33_[9] = (1.0f - _tmp34_) * _tmp35_; -#line 605 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp36_ = _tmp33_[9]; -#line 606 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp37_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 606 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp37__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 606 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp38_ = adjusted_param; -#line 606 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp39_ = one_third; -#line 606 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp40_ = adjusted_param; -#line 606 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp37_[10] = ((1.0f - _tmp38_) * _tmp39_) + _tmp40_; -#line 606 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp41_ = _tmp37_[10]; -#line 609 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->identity = FALSE; -#line 5736 "ColorTransformation.c" - } -#line 583 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 5740 "ColorTransformation.c" -} - - -SaturationTransformation* -saturation_transformation_new (gfloat client_parameter) -{ -#line 583 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return saturation_transformation_construct (TYPE_SATURATION_TRANSFORMATION, client_parameter); -#line 5749 "ColorTransformation.c" -} - - -gfloat -saturation_transformation_get_parameter (SaturationTransformation* self) -{ - gfloat result = 0.0F; - gfloat _tmp0_; -#line 614 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->parameter; -#line 614 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_; -#line 614 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 5764 "ColorTransformation.c" -} - - -static void -saturation_transformation_class_init (SaturationTransformationClass * klass) -{ -#line 577 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - saturation_transformation_parent_class = g_type_class_peek_parent (klass); -#line 577 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->finalize = saturation_transformation_finalize; -#line 577 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_class_add_private (klass, sizeof (SaturationTransformationPrivate)); -#line 5777 "ColorTransformation.c" -} - - -static void -saturation_transformation_instance_init (SaturationTransformation * self) -{ -#line 577 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv = SATURATION_TRANSFORMATION_GET_PRIVATE (self); -#line 5786 "ColorTransformation.c" -} - - -static void -saturation_transformation_finalize (PixelTransformation * obj) -{ - SaturationTransformation * self; -#line 577 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SATURATION_TRANSFORMATION, SaturationTransformation); -#line 577 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - PIXEL_TRANSFORMATION_CLASS (saturation_transformation_parent_class)->finalize (obj); -#line 5798 "ColorTransformation.c" -} - - -GType -saturation_transformation_get_type (void) -{ - static volatile gsize saturation_transformation_type_id__volatile = 0; - if (g_once_init_enter (&saturation_transformation_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SaturationTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saturation_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SaturationTransformation), 0, (GInstanceInitFunc) saturation_transformation_instance_init, NULL }; - GType saturation_transformation_type_id; - saturation_transformation_type_id = g_type_register_static (TYPE_RGB_TRANSFORMATION, "SaturationTransformation", &g_define_type_info, 0); - g_once_init_leave (&saturation_transformation_type_id__volatile, saturation_transformation_type_id); - } - return saturation_transformation_type_id__volatile; -} - - -ExposureTransformation* -exposure_transformation_construct (GType object_type, - gfloat client_parameter) -{ - ExposureTransformation* self = NULL; - gfloat _tmp0_; -#line 625 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (ExposureTransformation*) rgb_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_EXPOSURE); -#line 627 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->parameter = CLAMP (client_parameter, EXPOSURE_TRANSFORMATION_MIN_PARAMETER, EXPOSURE_TRANSFORMATION_MAX_PARAMETER); -#line 629 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->parameter; -#line 629 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp0_ != 0.0f) { -#line 5830 "ColorTransformation.c" - gfloat adjusted_param = 0.0F; - gfloat _tmp1_; - gfloat* _tmp2_; - gint _tmp2__length1; - gfloat _tmp3_; - gfloat _tmp4_; - gfloat* _tmp5_; - gint _tmp5__length1; - gfloat _tmp6_; - gfloat _tmp7_; - gfloat* _tmp8_; - gint _tmp8__length1; - gfloat _tmp9_; - gfloat _tmp10_; -#line 631 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = self->priv->parameter; -#line 631 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - adjusted_param = ((_tmp1_ + 16.0f) / 32.0f) + 0.5f; -#line 633 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 633 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 633 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = adjusted_param; -#line 633 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_[0] = _tmp3_; -#line 633 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = _tmp2_[0]; -#line 634 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 634 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 634 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = adjusted_param; -#line 634 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_[5] = _tmp6_; -#line 634 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = _tmp5_[5]; -#line 635 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 635 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 635 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = adjusted_param; -#line 635 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_[10] = _tmp9_; -#line 635 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = _tmp8_[10]; -#line 637 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->identity = FALSE; -#line 5881 "ColorTransformation.c" - } -#line 624 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 5885 "ColorTransformation.c" -} - - -ExposureTransformation* -exposure_transformation_new (gfloat client_parameter) -{ -#line 624 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return exposure_transformation_construct (TYPE_EXPOSURE_TRANSFORMATION, client_parameter); -#line 5894 "ColorTransformation.c" -} - - -gfloat -exposure_transformation_get_parameter (ExposureTransformation* self) -{ - gfloat result = 0.0F; - gfloat _tmp0_; -#line 642 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->parameter; -#line 642 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_; -#line 642 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 5909 "ColorTransformation.c" -} - - -static void -exposure_transformation_class_init (ExposureTransformationClass * klass) -{ -#line 618 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - exposure_transformation_parent_class = g_type_class_peek_parent (klass); -#line 618 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->finalize = exposure_transformation_finalize; -#line 618 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_class_add_private (klass, sizeof (ExposureTransformationPrivate)); -#line 5922 "ColorTransformation.c" -} - - -static void -exposure_transformation_instance_init (ExposureTransformation * self) -{ -#line 618 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv = EXPOSURE_TRANSFORMATION_GET_PRIVATE (self); -#line 5931 "ColorTransformation.c" -} - - -static void -exposure_transformation_finalize (PixelTransformation * obj) -{ - ExposureTransformation * self; -#line 618 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformation); -#line 618 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - PIXEL_TRANSFORMATION_CLASS (exposure_transformation_parent_class)->finalize (obj); -#line 5943 "ColorTransformation.c" -} - - -GType -exposure_transformation_get_type (void) -{ - static volatile gsize exposure_transformation_type_id__volatile = 0; - if (g_once_init_enter (&exposure_transformation_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ExposureTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) exposure_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ExposureTransformation), 0, (GInstanceInitFunc) exposure_transformation_instance_init, NULL }; - GType exposure_transformation_type_id; - exposure_transformation_type_id = g_type_register_static (TYPE_RGB_TRANSFORMATION, "ExposureTransformation", &g_define_type_info, 0); - g_once_init_leave (&exposure_transformation_type_id__volatile, exposure_transformation_type_id); - } - return exposure_transformation_type_id__volatile; -} - - -ContrastTransformation* -contrast_transformation_construct (GType object_type, - gfloat client_parameter) -{ - ContrastTransformation* self = NULL; - gfloat _tmp0_; -#line 655 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (ContrastTransformation*) rgb_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_CONTRAST); -#line 657 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->parameter = CLAMP (client_parameter, CONTRAST_TRANSFORMATION_MIN_PARAMETER, CONTRAST_TRANSFORMATION_MAX_PARAMETER); -#line 659 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->parameter; -#line 659 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp0_ != 0.0f) { -#line 5975 "ColorTransformation.c" - gfloat contrast_adjustment = 0.0F; - gfloat _tmp1_; - gfloat component_coefficient = 0.0F; - gfloat _tmp2_; - gfloat component_offset = 0.0F; - gfloat _tmp3_; - gfloat* _tmp4_; - gint _tmp4__length1; - gfloat _tmp5_; - gfloat _tmp6_; - gfloat* _tmp7_; - gint _tmp7__length1; - gfloat _tmp8_; - gfloat _tmp9_; - gfloat* _tmp10_; - gint _tmp10__length1; - gfloat _tmp11_; - gfloat _tmp12_; - gfloat* _tmp13_; - gint _tmp13__length1; - gfloat _tmp14_; - gfloat _tmp15_; - gfloat* _tmp16_; - gint _tmp16__length1; - gfloat _tmp17_; - gfloat _tmp18_; - gfloat* _tmp19_; - gint _tmp19__length1; - gfloat _tmp20_; - gfloat _tmp21_; -#line 661 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = self->priv->parameter; -#line 661 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - contrast_adjustment = (_tmp1_ / 16.0f) * CONTRAST_TRANSFORMATION_MAX_CONTRAST_ADJUSTMENT; -#line 662 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = contrast_adjustment; -#line 662 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - component_coefficient = 1.0f + _tmp2_; -#line 663 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = contrast_adjustment; -#line 663 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - component_offset = _tmp3_ / (-2.0f); -#line 665 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 665 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 665 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = component_coefficient; -#line 665 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_[0] = _tmp5_; -#line 665 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = _tmp4_[0]; -#line 666 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 666 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 666 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = component_coefficient; -#line 666 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_[5] = _tmp8_; -#line 666 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = _tmp7_[5]; -#line 667 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 667 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 667 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = component_coefficient; -#line 667 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_[10] = _tmp11_; -#line 667 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = _tmp10_[10]; -#line 669 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 669 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 669 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = component_offset; -#line 669 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_[3] = _tmp14_; -#line 669 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = _tmp13_[3]; -#line 670 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 670 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 670 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp17_ = component_offset; -#line 670 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_[7] = _tmp17_; -#line 670 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18_ = _tmp16_[7]; -#line 671 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries; -#line 671 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19__length1 = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->matrix_entries_length1; -#line 671 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20_ = component_offset; -#line 671 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_[11] = _tmp20_; -#line 671 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21_ = _tmp19_[11]; -#line 673 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_RGB_TRANSFORMATION, RGBTransformation)->identity = FALSE; -#line 6080 "ColorTransformation.c" - } -#line 654 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 6084 "ColorTransformation.c" -} - - -ContrastTransformation* -contrast_transformation_new (gfloat client_parameter) -{ -#line 654 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return contrast_transformation_construct (TYPE_CONTRAST_TRANSFORMATION, client_parameter); -#line 6093 "ColorTransformation.c" -} - - -gfloat -contrast_transformation_get_parameter (ContrastTransformation* self) -{ - gfloat result = 0.0F; - gfloat _tmp0_; -#line 678 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->parameter; -#line 678 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_; -#line 678 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 6108 "ColorTransformation.c" -} - - -static void -contrast_transformation_class_init (ContrastTransformationClass * klass) -{ -#line 646 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - contrast_transformation_parent_class = g_type_class_peek_parent (klass); -#line 646 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->finalize = contrast_transformation_finalize; -#line 646 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_class_add_private (klass, sizeof (ContrastTransformationPrivate)); -#line 6121 "ColorTransformation.c" -} - - -static void -contrast_transformation_instance_init (ContrastTransformation * self) -{ -#line 646 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv = CONTRAST_TRANSFORMATION_GET_PRIVATE (self); -#line 6130 "ColorTransformation.c" -} - - -static void -contrast_transformation_finalize (PixelTransformation * obj) -{ - ContrastTransformation * self; -#line 646 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CONTRAST_TRANSFORMATION, ContrastTransformation); -#line 646 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - PIXEL_TRANSFORMATION_CLASS (contrast_transformation_parent_class)->finalize (obj); -#line 6142 "ColorTransformation.c" -} - - -GType -contrast_transformation_get_type (void) -{ - static volatile gsize contrast_transformation_type_id__volatile = 0; - if (g_once_init_enter (&contrast_transformation_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ContrastTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) contrast_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ContrastTransformation), 0, (GInstanceInitFunc) contrast_transformation_instance_init, NULL }; - GType contrast_transformation_type_id; - contrast_transformation_type_id = g_type_register_static (TYPE_RGB_TRANSFORMATION, "ContrastTransformation", &g_define_type_info, 0); - g_once_init_leave (&contrast_transformation_type_id__volatile, contrast_transformation_type_id); - } - return contrast_transformation_type_id__volatile; -} - - -PixelTransformer* -pixel_transformer_construct (GType object_type) -{ - PixelTransformer* self = NULL; -#line 688 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (PixelTransformer*) g_type_create_instance (object_type); -#line 688 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 6168 "ColorTransformation.c" -} - - -PixelTransformer* -pixel_transformer_new (void) -{ -#line 688 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return pixel_transformer_construct (TYPE_PIXEL_TRANSFORMER); -#line 6177 "ColorTransformation.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self ? g_object_ref (self) : NULL; -#line 6186 "ColorTransformation.c" -} - - -PixelTransformer* -pixel_transformer_copy (PixelTransformer* self) -{ - PixelTransformer* result = NULL; - PixelTransformer* clone = NULL; - PixelTransformer* _tmp0_; -#line 692 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = pixel_transformer_new (); -#line 692 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - clone = _tmp0_; -#line 6200 "ColorTransformation.c" - { - GeeArrayList* _transformation_list = NULL; - GeeArrayList* _tmp1_; - GeeArrayList* _tmp2_; - gint _transformation_size = 0; - GeeArrayList* _tmp3_; - gint _tmp4_; - gint _tmp5_; - gint _transformation_index = 0; -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = self->priv->transformations; -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _transformation_list = _tmp2_; -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = _transformation_list; -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = _tmp4_; -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _transformation_size = _tmp5_; -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _transformation_index = -1; -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 6228 "ColorTransformation.c" - gint _tmp6_; - gint _tmp7_; - gint _tmp8_; - PixelTransformation* transformation = NULL; - GeeArrayList* _tmp9_; - gint _tmp10_; - gpointer _tmp11_; - PixelTransformer* _tmp12_; - GeeArrayList* _tmp13_; - PixelTransformation* _tmp14_; -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = _transformation_index; -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _transformation_index = _tmp6_ + 1; -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = _transformation_index; -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = _transformation_size; -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp7_ < _tmp8_)) { -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 6251 "ColorTransformation.c" - } -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = _transformation_list; -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = _transformation_index; -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp10_); -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - transformation = (PixelTransformation*) _tmp11_; -#line 695 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = clone; -#line 695 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = _tmp12_->priv->transformations; -#line 695 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = transformation; -#line 695 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_); -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (transformation); -#line 6271 "ColorTransformation.c" - } -#line 694 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_object_unref0 (_transformation_list); -#line 6275 "ColorTransformation.c" - } -#line 697 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = clone; -#line 697 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 6281 "ColorTransformation.c" -} - - -static void -pixel_transformer_build_optimized_transformations (PixelTransformer* self) -{ - GeeArrayList* _tmp0_; - gint _tmp1_; - gint _tmp2_; - PixelTransformation** _tmp3_; - PixelTransformation* pre_trans = NULL; -#line 701 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->transformations; -#line 701 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 701 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = _tmp1_; -#line 701 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = g_new0 (PixelTransformation*, _tmp2_ + 1); -#line 701 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_transformations = (_vala_array_free (self->optimized_transformations, self->optimized_transformations_length1, (GDestroyNotify) pixel_transformation_unref), NULL); -#line 701 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_transformations = _tmp3_; -#line 701 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_transformations_length1 = _tmp2_; -#line 703 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pre_trans = NULL; -#line 704 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_slots_used = 0; -#line 6311 "ColorTransformation.c" - { - gint i = 0; -#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = 0; -#line 6316 "ColorTransformation.c" - { - gboolean _tmp4_ = FALSE; -#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = TRUE; -#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 6323 "ColorTransformation.c" - gint _tmp6_; - GeeArrayList* _tmp7_; - gint _tmp8_; - gint _tmp9_; - PixelTransformation* trans = NULL; - GeeArrayList* _tmp10_; - gint _tmp11_; - gpointer _tmp12_; - PixelTransformation* _tmp13_; - PixelTransformation* this_trans = NULL; - PixelTransformation* _tmp14_; - gboolean _tmp19_ = FALSE; - gboolean _tmp20_ = FALSE; - PixelTransformation* _tmp21_; -#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp4_) { -#line 6340 "ColorTransformation.c" - gint _tmp5_; -#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = i; -#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp5_ + 1; -#line 6346 "ColorTransformation.c" - } -#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = FALSE; -#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = i; -#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = self->priv->transformations; -#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = _tmp8_; -#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp6_ < _tmp9_)) { -#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 6362 "ColorTransformation.c" - } -#line 706 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = self->priv->transformations; -#line 706 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = i; -#line 706 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp11_); -#line 706 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - trans = (PixelTransformation*) _tmp12_; -#line 708 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = trans; -#line 708 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (pixel_transformation_is_identity (_tmp13_)) { -#line 709 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (trans); -#line 709 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - continue; -#line 6380 "ColorTransformation.c" - } -#line 711 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - this_trans = NULL; -#line 712 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = trans; -#line 712 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (pixel_transformation_get_composition_mode (_tmp14_) == COMPOSITION_MODE_NONE) { -#line 6388 "ColorTransformation.c" - PixelTransformation* _tmp15_; - PixelTransformation* _tmp16_; -#line 713 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = trans; -#line 713 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_ = _pixel_transformation_ref0 (_tmp15_); -#line 713 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (this_trans); -#line 713 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - this_trans = _tmp16_; -#line 6399 "ColorTransformation.c" - } else { - PixelTransformation* _tmp17_; - PixelTransformation* _tmp18_; -#line 715 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp17_ = trans; -#line 715 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18_ = pixel_transformation_copy (_tmp17_); -#line 715 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (this_trans); -#line 715 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - this_trans = _tmp18_; -#line 6411 "ColorTransformation.c" - } -#line 717 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21_ = pre_trans; -#line 717 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp21_ != NULL) { -#line 6417 "ColorTransformation.c" - PixelTransformation* _tmp22_; -#line 717 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22_ = this_trans; -#line 717 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20_ = pixel_transformation_get_composition_mode (_tmp22_) != COMPOSITION_MODE_NONE; -#line 6423 "ColorTransformation.c" - } else { -#line 717 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20_ = FALSE; -#line 6427 "ColorTransformation.c" - } -#line 717 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp20_) { -#line 6431 "ColorTransformation.c" - PixelTransformation* _tmp23_; - PixelTransformation* _tmp24_; -#line 718 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp23_ = this_trans; -#line 718 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24_ = pre_trans; -#line 718 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_ = pixel_transformation_get_composition_mode (_tmp23_) == pixel_transformation_get_composition_mode (_tmp24_); -#line 6440 "ColorTransformation.c" - } else { -#line 717 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_ = FALSE; -#line 6444 "ColorTransformation.c" - } -#line 717 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp19_) { -#line 6448 "ColorTransformation.c" - PixelTransformation* _tmp25_; - PixelTransformation* _tmp26_; -#line 719 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp25_ = pre_trans; -#line 719 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp26_ = this_trans; -#line 719 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_compose_with (_tmp25_, _tmp26_); -#line 6457 "ColorTransformation.c" - } else { - PixelTransformation** _tmp27_; - gint _tmp27__length1; - gint _tmp28_; - PixelTransformation* _tmp29_; - PixelTransformation* _tmp30_; - PixelTransformation* _tmp31_; - PixelTransformation* _tmp32_; - PixelTransformation* _tmp33_; -#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp27_ = self->optimized_transformations; -#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp27__length1 = self->optimized_transformations_length1; -#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp28_ = self->optimized_slots_used; -#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_slots_used = _tmp28_ + 1; -#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp29_ = this_trans; -#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp30_ = _pixel_transformation_ref0 (_tmp29_); -#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp27_[_tmp28_]); -#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp27_[_tmp28_] = _tmp30_; -#line 721 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp31_ = _tmp27_[_tmp28_]; -#line 722 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp32_ = this_trans; -#line 722 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp33_ = _pixel_transformation_ref0 (_tmp32_); -#line 722 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (pre_trans); -#line 722 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pre_trans = _tmp33_; -#line 6493 "ColorTransformation.c" - } -#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (this_trans); -#line 705 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (trans); -#line 6499 "ColorTransformation.c" - } - } - } -#line 700 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (pre_trans); -#line 6505 "ColorTransformation.c" -} - - -void -pixel_transformer_attach_transformation (PixelTransformer* self, - PixelTransformation* trans) -{ - GeeArrayList* _tmp0_; -#line 733 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->transformations; -#line 733 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), trans); -#line 734 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_transformations = (_vala_array_free (self->optimized_transformations, self->optimized_transformations_length1, (GDestroyNotify) pixel_transformation_unref), NULL); -#line 734 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_transformations = NULL; -#line 734 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_transformations_length1 = 0; -#line 6524 "ColorTransformation.c" -} - - -void -pixel_transformer_detach_transformation (PixelTransformer* self, - PixelTransformation* victim) -{ - GeeArrayList* _tmp0_; -#line 740 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->transformations; -#line 740 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), victim); -#line 741 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_transformations = (_vala_array_free (self->optimized_transformations, self->optimized_transformations_length1, (GDestroyNotify) pixel_transformation_unref), NULL); -#line 741 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_transformations = NULL; -#line 741 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_transformations_length1 = 0; -#line 6543 "ColorTransformation.c" -} - - -void -pixel_transformer_replace_transformation (PixelTransformer* self, - PixelTransformation* old_trans, - PixelTransformation* new_trans) -{ - { - gint i = 0; -#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = 0; -#line 6556 "ColorTransformation.c" - { - gboolean _tmp0_ = FALSE; -#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = TRUE; -#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 6563 "ColorTransformation.c" - gint _tmp2_; - GeeArrayList* _tmp3_; - gint _tmp4_; - gint _tmp5_; - GeeArrayList* _tmp6_; - gint _tmp7_; - gpointer _tmp8_; - PixelTransformation* _tmp9_; - gboolean _tmp10_; -#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp0_) { -#line 6575 "ColorTransformation.c" - gint _tmp1_; -#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = i; -#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp1_ + 1; -#line 6581 "ColorTransformation.c" - } -#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = FALSE; -#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = i; -#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = self->priv->transformations; -#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = _tmp4_; -#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp2_ < _tmp5_)) { -#line 748 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 6597 "ColorTransformation.c" - } -#line 749 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = self->priv->transformations; -#line 749 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = i; -#line 749 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp7_); -#line 749 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = (PixelTransformation*) _tmp8_; -#line 749 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = _tmp9_ == old_trans; -#line 749 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp9_); -#line 749 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp10_) { -#line 6613 "ColorTransformation.c" - GeeArrayList* _tmp11_; - gint _tmp12_; -#line 750 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = self->priv->transformations; -#line 750 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = i; -#line 750 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - gee_abstract_list_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp12_, new_trans); -#line 752 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_transformations = (_vala_array_free (self->optimized_transformations, self->optimized_transformations_length1, (GDestroyNotify) pixel_transformation_unref), NULL); -#line 752 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_transformations = NULL; -#line 752 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_transformations_length1 = 0; -#line 753 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return; -#line 6630 "ColorTransformation.c" - } - } - } - } -#line 756 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_error ("ColorTransformation.vala:756: %s", "PixelTransformer: replace_transformation( ): old_trans is not present " \ -"in " "transformation collection"); -#line 6637 "ColorTransformation.c" -} - - -void -pixel_transformer_transform_pixbuf (PixelTransformer* self, - GdkPixbuf* pixbuf, - GCancellable* cancellable) -{ -#line 761 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformer_transform_to_other_pixbuf (self, pixbuf, pixbuf, cancellable, -1); -#line 6648 "ColorTransformation.c" -} - - -static Block1Data* -block1_data_ref (Block1Data* _data1_) -{ -#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_atomic_int_inc (&_data1_->_ref_count_); -#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return _data1_; -#line 6659 "ColorTransformation.c" -} - - -static void -block1_data_unref (void * _userdata_) -{ - Block1Data* _data1_; - _data1_ = (Block1Data*) _userdata_; -#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) { -#line 6670 "ColorTransformation.c" - PixelTransformer* self; -#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = _data1_->self; -#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformer_unref0 (self); -#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_slice_free (Block1Data, _data1_); -#line 6678 "ColorTransformation.c" - } -} - - -static Block2Data* -block2_data_ref (Block2Data* _data2_) -{ -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_atomic_int_inc (&_data2_->_ref_count_); -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return _data2_; -#line 6690 "ColorTransformation.c" -} - - -static void -block2_data_unref (void * _userdata_) -{ - Block2Data* _data2_; - _data2_ = (Block2Data*) _userdata_; -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) { -#line 6701 "ColorTransformation.c" - PixelTransformer* self; -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = _data2_->_data1_->self; -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - block1_data_unref (_data2_->_data1_); -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data2_->_data1_ = NULL; -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_slice_free (Block2Data, _data2_); -#line 6711 "ColorTransformation.c" - } -} - - -static void* -_____lambda5_ (Block2Data* _data2_) -{ - Block1Data* _data1_; - PixelTransformer* self; - void* result = NULL; - guint cache_pixel_ticker = 0U; - guint _tmp0_; - gint _tmp1_; -#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data1_ = _data2_->_data1_; -#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = _data1_->self; -#line 788 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = _data2_->row; -#line 788 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = _data1_->dest_width; -#line 788 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - cache_pixel_ticker = (_tmp0_ * _tmp1_) * 3; -#line 6735 "ColorTransformation.c" - { - guint j = 0U; - guint _tmp2_; -#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = _data2_->row; -#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - j = _tmp2_; -#line 6743 "ColorTransformation.c" - { - gboolean _tmp3_ = FALSE; -#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = TRUE; -#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 6750 "ColorTransformation.c" - guint _tmp5_; - guint _tmp6_; - guint row_start_index = 0U; - guint _tmp7_; - gint _tmp8_; - guint row_end_index = 0U; - guint _tmp9_; - gint _tmp10_; - gint _tmp11_; -#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp3_) { -#line 6762 "ColorTransformation.c" - guint _tmp4_; -#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = j; -#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - j = _tmp4_ + 1; -#line 6768 "ColorTransformation.c" - } -#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = FALSE; -#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = j; -#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = _data2_->slice_height; -#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp5_ < _tmp6_)) { -#line 789 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 6780 "ColorTransformation.c" - } -#line 790 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = j; -#line 790 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = _data1_->dest_rowstride; -#line 790 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - row_start_index = _tmp7_ * _tmp8_; -#line 791 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = row_start_index; -#line 791 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = _data1_->dest_width; -#line 791 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = _data1_->dest_num_channels; -#line 791 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - row_end_index = _tmp9_ + (_tmp10_ * _tmp11_); -#line 6796 "ColorTransformation.c" - { - guint i = 0U; - guint _tmp12_; -#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = row_start_index; -#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp12_; -#line 6804 "ColorTransformation.c" - { - gboolean _tmp13_ = FALSE; -#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = TRUE; -#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 6811 "ColorTransformation.c" - guint _tmp16_; - guint _tmp17_; - RGBAnalyticPixel pixel = {0}; - gfloat* _tmp18_; - gint _tmp18__length1; - guint _tmp19_; - gfloat _tmp20_; - gfloat* _tmp21_; - gint _tmp21__length1; - guint _tmp22_; - gfloat _tmp23_; - gfloat* _tmp24_; - gint _tmp24__length1; - guint _tmp25_; - gfloat _tmp26_; - guint _tmp27_; - RGBAnalyticPixel _tmp28_; - RGBAnalyticPixel _tmp29_ = {0}; - guchar* _tmp30_; - gint _tmp30__length1; - guint _tmp31_; - RGBAnalyticPixel _tmp32_; - gfloat _tmp33_; - guchar _tmp34_; - guchar* _tmp35_; - gint _tmp35__length1; - guint _tmp36_; - RGBAnalyticPixel _tmp37_; - gfloat _tmp38_; - guchar _tmp39_; - guchar* _tmp40_; - gint _tmp40__length1; - guint _tmp41_; - RGBAnalyticPixel _tmp42_; - gfloat _tmp43_; - guchar _tmp44_; -#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp13_) { -#line 6850 "ColorTransformation.c" - guint _tmp14_; - gint _tmp15_; -#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = i; -#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = _data1_->dest_num_channels; -#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp14_ + _tmp15_; -#line 6859 "ColorTransformation.c" - } -#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = FALSE; -#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_ = i; -#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp17_ = row_end_index; -#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp16_ < _tmp17_)) { -#line 792 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 6871 "ColorTransformation.c" - } -#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18_ = _data1_->cache; -#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18__length1 = _data1_->cache_length1; -#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_ = cache_pixel_ticker; -#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20_ = _tmp18_[_tmp19_]; -#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21_ = _data1_->cache; -#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21__length1 = _data1_->cache_length1; -#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22_ = cache_pixel_ticker; -#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp23_ = _tmp21_[_tmp22_ + 1]; -#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24_ = _data1_->cache; -#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24__length1 = _data1_->cache_length1; -#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp25_ = cache_pixel_ticker; -#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp26_ = _tmp24_[_tmp25_ + 2]; -#line 793 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - rgb_analytic_pixel_init_from_components (&pixel, _tmp20_, _tmp23_, _tmp26_); -#line 798 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp27_ = cache_pixel_ticker; -#line 798 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - cache_pixel_ticker = _tmp27_ + 3; -#line 800 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp28_ = pixel; -#line 800 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformer_apply_transformations (self, &_tmp28_, &_tmp29_); -#line 800 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel = _tmp29_; -#line 802 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp30_ = _data1_->dest_pixels; -#line 802 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp30__length1 = _data1_->dest_pixels_length1; -#line 802 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp31_ = i; -#line 802 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp32_ = pixel; -#line 802 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp33_ = _tmp32_.red; -#line 802 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp30_[_tmp31_] = (guchar) (_tmp33_ * 255.0f); -#line 802 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp34_ = _tmp30_[_tmp31_]; -#line 803 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp35_ = _data1_->dest_pixels; -#line 803 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp35__length1 = _data1_->dest_pixels_length1; -#line 803 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp36_ = i; -#line 803 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp37_ = pixel; -#line 803 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp38_ = _tmp37_.green; -#line 803 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp35_[_tmp36_ + 1] = (guchar) (_tmp38_ * 255.0f); -#line 803 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp39_ = _tmp35_[_tmp36_ + 1]; -#line 804 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp40_ = _data1_->dest_pixels; -#line 804 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp40__length1 = _data1_->dest_pixels_length1; -#line 804 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp41_ = i; -#line 804 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp42_ = pixel; -#line 804 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp43_ = _tmp42_.blue; -#line 804 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp40_[_tmp41_ + 2] = (guchar) (_tmp43_ * 255.0f); -#line 804 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp44_ = _tmp40_[_tmp41_ + 2]; -#line 6951 "ColorTransformation.c" - } - } - } - } - } - } -#line 808 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = NULL; -#line 808 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 6962 "ColorTransformation.c" -} - - -static gpointer -______lambda5__gthread_func (gpointer self) -{ - gpointer result; - result = _____lambda5_ (self); -#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - block2_data_unref (self); -#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 6975 "ColorTransformation.c" -} - - -static gpointer -_g_thread_ref0 (gpointer self) -{ -#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self ? g_thread_ref (self) : NULL; -#line 6984 "ColorTransformation.c" -} - - -void -pixel_transformer_transform_from_fp (PixelTransformer* self, - gfloat** fp_pixel_cache, - int* fp_pixel_cache_length1, - GdkPixbuf* dest) -{ - Block1Data* _data1_; - PixelTransformation** _tmp0_; - gint _tmp0__length1; - gint dest_height = 0; - guint8* _tmp1_; - gint jobs = 0; - guint slice_length = 0U; - gint _tmp2_; - gint _tmp3_; - GThread** threads = NULL; - gint _tmp7_; - GThread** _tmp8_; - gint threads_length1; - gint _threads_size_; - GThread** _tmp22_; - gint _tmp22__length1; -#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data1_ = g_slice_new0 (Block1Data); -#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data1_->_ref_count_ = 1; -#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data1_->self = pixel_transformer_ref (self); -#line 765 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->optimized_transformations; -#line 765 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0__length1 = self->optimized_transformations_length1; -#line 765 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp0_ == NULL) { -#line 766 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformer_build_optimized_transformations (self); -#line 7024 "ColorTransformation.c" - } -#line 768 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data1_->dest_width = gdk_pixbuf_get_width (dest); -#line 769 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - dest_height = gdk_pixbuf_get_height (dest); -#line 770 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data1_->dest_num_channels = gdk_pixbuf_get_n_channels (dest); -#line 771 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data1_->dest_rowstride = gdk_pixbuf_get_rowstride (dest); -#line 772 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = gdk_pixbuf_get_pixels (dest); -#line 772 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data1_->dest_pixels = _tmp1_; -#line 772 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data1_->dest_pixels_length1 = -1; -#line 772 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data1_->_dest_pixels_size_ = _data1_->dest_pixels_length1; -#line 774 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - jobs = ((gint) g_get_num_processors ()) - 1; -#line 776 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = dest_height; -#line 776 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - slice_length = (guint) _tmp2_; -#line 777 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = jobs; -#line 777 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp3_ > 0) { -#line 7052 "ColorTransformation.c" - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; -#line 778 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = dest_height; -#line 778 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = jobs; -#line 778 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = jobs; -#line 778 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - slice_length = (guint) ((_tmp4_ + (_tmp5_ - 1)) / _tmp6_); -#line 7064 "ColorTransformation.c" - } -#line 781 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = jobs; -#line 781 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = g_new0 (GThread*, _tmp7_ + 1); -#line 781 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - threads = _tmp8_; -#line 781 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - threads_length1 = _tmp7_; -#line 781 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _threads_size_ = threads_length1; -#line 783 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data1_->cache = *fp_pixel_cache; -#line 783 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data1_->cache_length1 = *fp_pixel_cache_length1; -#line 783 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data1_->_cache_size_ = _data1_->cache_length1; -#line 7082 "ColorTransformation.c" - { - gint job = 0; -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - job = 0; -#line 7087 "ColorTransformation.c" - { - gboolean _tmp9_ = FALSE; -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = TRUE; -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 7094 "ColorTransformation.c" - Block2Data* _data2_; - gint _tmp11_; - gint _tmp12_; - gint _tmp13_; - guint _tmp14_; - guint _tmp15_; - guint _tmp16_; - gint _tmp17_; - GThread** _tmp18_; - gint _tmp18__length1; - gint _tmp19_; - GThread* _tmp20_; - GThread* _tmp21_; -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data2_ = g_slice_new0 (Block2Data); -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data2_->_ref_count_ = 1; -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data2_->_data1_ = block1_data_ref (_data1_); -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp9_) { -#line 7116 "ColorTransformation.c" - gint _tmp10_; -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = job; -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - job = _tmp10_ + 1; -#line 7122 "ColorTransformation.c" - } -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = FALSE; -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = job; -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = jobs; -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp11_ < _tmp12_)) { -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - block2_data_unref (_data2_); -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data2_ = NULL; -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 7138 "ColorTransformation.c" - } -#line 785 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = job; -#line 785 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = slice_length; -#line 785 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data2_->row = _tmp13_ * _tmp14_; -#line 786 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = _data2_->row; -#line 786 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_ = slice_length; -#line 786 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp17_ = dest_height; -#line 786 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data2_->slice_height = CLAMP (_tmp15_ + _tmp16_, (guint) 0, (guint) _tmp17_); -#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18_ = threads; -#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18__length1 = threads_length1; -#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_ = job; -#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20_ = g_thread_new ("shotwell-worker", ______lambda5__gthread_func, block2_data_ref (_data2_)); -#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_thread_unref0 (_tmp18_[_tmp19_]); -#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18_[_tmp19_] = _tmp20_; -#line 787 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21_ = _tmp18_[_tmp19_]; -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - block2_data_unref (_data2_); -#line 784 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data2_ = NULL; -#line 7172 "ColorTransformation.c" - } - } - } -#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22_ = threads; -#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22__length1 = threads_length1; -#line 7180 "ColorTransformation.c" - { - GThread** thread_collection = NULL; - gint thread_collection_length1 = 0; - gint _thread_collection_size_ = 0; - gint thread_it = 0; -#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - thread_collection = _tmp22_; -#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - thread_collection_length1 = _tmp22__length1; -#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - for (thread_it = 0; thread_it < _tmp22__length1; thread_it = thread_it + 1) { -#line 7192 "ColorTransformation.c" - GThread* _tmp23_; - GThread* thread = NULL; -#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp23_ = _g_thread_ref0 (thread_collection[thread_it]); -#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - thread = _tmp23_; -#line 7199 "ColorTransformation.c" - { - GThread* _tmp24_; - GThread* _tmp25_; -#line 813 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24_ = thread; -#line 813 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp25_ = _g_thread_ref0 (_tmp24_); -#line 813 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_thread_join (_tmp25_); -#line 812 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_thread_unref0 (thread); -#line 7211 "ColorTransformation.c" - } - } - } -#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - threads = (_vala_array_free (threads, threads_length1, (GDestroyNotify) g_thread_unref), NULL); -#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - block1_data_unref (_data1_); -#line 764 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data1_ = NULL; -#line 7221 "ColorTransformation.c" -} - - -static Block3Data* -block3_data_ref (Block3Data* _data3_) -{ -#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_atomic_int_inc (&_data3_->_ref_count_); -#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return _data3_; -#line 7232 "ColorTransformation.c" -} - - -static void -block3_data_unref (void * _userdata_) -{ - Block3Data* _data3_; - _data3_ = (Block3Data*) _userdata_; -#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) { -#line 7243 "ColorTransformation.c" - PixelTransformer* self; -#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = _data3_->self; -#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_object_unref0 (_data3_->cancellable); -#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformer_unref0 (self); -#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_slice_free (Block3Data, _data3_); -#line 7253 "ColorTransformation.c" - } -} - - -static Block4Data* -block4_data_ref (Block4Data* _data4_) -{ -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_atomic_int_inc (&_data4_->_ref_count_); -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return _data4_; -#line 7265 "ColorTransformation.c" -} - - -static void -block4_data_unref (void * _userdata_) -{ - Block4Data* _data4_; - _data4_ = (Block4Data*) _userdata_; -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) { -#line 7276 "ColorTransformation.c" - PixelTransformer* self; -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = _data4_->_data3_->self; -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - block3_data_unref (_data4_->_data3_); -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data4_->_data3_ = NULL; -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_slice_free (Block4Data, _data4_); -#line 7286 "ColorTransformation.c" - } -} - - -static void* -_____lambda4_ (Block4Data* _data4_) -{ - Block3Data* _data3_; - PixelTransformer* self; - void* result = NULL; -#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data3_ = _data4_->_data3_; -#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = _data3_->self; -#line 7301 "ColorTransformation.c" - { - guint j = 0U; - guint _tmp0_; -#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = _data4_->row; -#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - j = _tmp0_; -#line 7309 "ColorTransformation.c" - { - gboolean _tmp1_ = FALSE; -#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = TRUE; -#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 7316 "ColorTransformation.c" - guint _tmp3_; - guint _tmp4_; - guint _tmp5_; - gint _tmp6_; - gint _tmp7_; - gint _tmp8_; - guchar* _tmp9_; - gint _tmp9__length1; - guchar* _tmp10_; - gint _tmp10__length1; - gboolean _tmp11_ = FALSE; -#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp1_) { -#line 7330 "ColorTransformation.c" - guint _tmp2_; -#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = j; -#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - j = _tmp2_ + 1; -#line 7336 "ColorTransformation.c" - } -#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = FALSE; -#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = j; -#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = _data4_->slice_height; -#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp3_ < _tmp4_)) { -#line 855 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 7348 "ColorTransformation.c" - } -#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = j; -#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = _data3_->rowstride; -#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = _data3_->rowbytes; -#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = _data3_->n_channels; -#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = _data3_->source_pixels; -#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9__length1 = _data3_->source_pixels_length1; -#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = _data3_->dest_pixels; -#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10__length1 = _data3_->dest_pixels_length1; -#line 856 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformer_apply_transformation (self, _tmp5_, _tmp6_, _tmp7_, _tmp8_, _tmp9_, _tmp9__length1, _tmp10_, _tmp10__length1); -#line 859 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_data3_->cancellable != NULL) { -#line 859 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = g_cancellable_is_cancelled (_data3_->cancellable); -#line 7372 "ColorTransformation.c" - } else { -#line 859 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = FALSE; -#line 7376 "ColorTransformation.c" - } -#line 859 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp11_) { -#line 860 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 7382 "ColorTransformation.c" - } - } - } - } -#line 864 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = NULL; -#line 864 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 7391 "ColorTransformation.c" -} - - -static gpointer -______lambda4__gthread_func (gpointer self) -{ - gpointer result; - result = _____lambda4_ (self); -#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - block4_data_unref (self); -#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 7404 "ColorTransformation.c" -} - - -void -pixel_transformer_transform_to_other_pixbuf (PixelTransformer* self, - GdkPixbuf* source, - GdkPixbuf* dest, - GCancellable* cancellable, - gint jobs) -{ - Block3Data* _data3_; - GCancellable* _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; - gint _tmp12_; - PixelTransformation** _tmp13_; - gint _tmp13__length1; - gint width = 0; - gint height = 0; - gint _tmp14_; - gint _tmp15_; - guint8* _tmp16_; - guint8* _tmp17_; - guint slice_length = 0U; - gint _tmp18_; - GThread** threads = NULL; - GThread** _tmp20_; - gint threads_length1; - gint _threads_size_; - GThread** _tmp33_; - gint _tmp33__length1; -#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data3_ = g_slice_new0 (Block3Data); -#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data3_->_ref_count_ = 1; -#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data3_->self = pixel_transformer_ref (self); -#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = _g_object_ref0 (cancellable); -#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_object_unref0 (_data3_->cancellable); -#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data3_->cancellable = _tmp0_; -#line 819 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = gdk_pixbuf_get_width (source); -#line 819 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = _tmp1_; -#line 819 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = gdk_pixbuf_get_width (dest); -#line 819 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = _tmp3_; -#line 819 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp2_ != _tmp4_) { -#line 820 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_error ("ColorTransformation.vala:820: PixelTransformer: source and destination" \ -" pixbufs must have the same width"); -#line 7469 "ColorTransformation.c" - } -#line 822 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = gdk_pixbuf_get_height (source); -#line 822 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = _tmp5_; -#line 822 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = gdk_pixbuf_get_height (dest); -#line 822 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = _tmp7_; -#line 822 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp6_ != _tmp8_) { -#line 823 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_error ("ColorTransformation.vala:823: PixelTransformer: source and destination" \ -" pixbufs must have the same height"); -#line 7483 "ColorTransformation.c" - } -#line 825 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = gdk_pixbuf_get_n_channels (source); -#line 825 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = _tmp9_; -#line 825 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = gdk_pixbuf_get_n_channels (dest); -#line 825 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = _tmp11_; -#line 825 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp10_ != _tmp12_) { -#line 826 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_error ("ColorTransformation.vala:826: %s", "PixelTransformer: source and destination pixbufs must have the same nu" \ -"mber " "of channels"); -#line 7497 "ColorTransformation.c" - } -#line 829 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = self->optimized_transformations; -#line 829 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13__length1 = self->optimized_transformations_length1; -#line 829 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp13_ == NULL) { -#line 830 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformer_build_optimized_transformations (self); -#line 7507 "ColorTransformation.c" - } -#line 832 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data3_->n_channels = gdk_pixbuf_get_n_channels (source); -#line 833 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data3_->rowstride = gdk_pixbuf_get_rowstride (source); -#line 834 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - width = gdk_pixbuf_get_width (source); -#line 835 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - height = gdk_pixbuf_get_height (source); -#line 836 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = _data3_->n_channels; -#line 836 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = width; -#line 836 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data3_->rowbytes = _tmp14_ * _tmp15_; -#line 837 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_ = gdk_pixbuf_get_pixels (source); -#line 837 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data3_->source_pixels = _tmp16_; -#line 837 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data3_->source_pixels_length1 = -1; -#line 837 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data3_->_source_pixels_size_ = _data3_->source_pixels_length1; -#line 838 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp17_ = gdk_pixbuf_get_pixels (dest); -#line 838 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data3_->dest_pixels = _tmp17_; -#line 838 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data3_->dest_pixels_length1 = -1; -#line 838 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data3_->_dest_pixels_size_ = _data3_->dest_pixels_length1; -#line 839 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (jobs == -1) { -#line 840 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - jobs = ((gint) g_get_num_processors ()) - 1; -#line 7543 "ColorTransformation.c" - } -#line 843 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18_ = height; -#line 843 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - slice_length = (guint) _tmp18_; -#line 844 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (jobs > 0) { -#line 7551 "ColorTransformation.c" - gint _tmp19_; -#line 845 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_ = height; -#line 845 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - slice_length = (guint) ((_tmp19_ + (jobs - 1)) / jobs); -#line 7557 "ColorTransformation.c" - } -#line 848 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20_ = g_new0 (GThread*, jobs + 1); -#line 848 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - threads = _tmp20_; -#line 848 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - threads_length1 = jobs; -#line 848 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _threads_size_ = threads_length1; -#line 7567 "ColorTransformation.c" - { - gint job = 0; -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - job = 0; -#line 7572 "ColorTransformation.c" - { - gboolean _tmp21_ = FALSE; -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21_ = TRUE; -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 7579 "ColorTransformation.c" - Block4Data* _data4_; - gint _tmp23_; - gint _tmp24_; - guint _tmp25_; - guint _tmp26_; - guint _tmp27_; - gint _tmp28_; - GThread** _tmp29_; - gint _tmp29__length1; - gint _tmp30_; - GThread* _tmp31_; - GThread* _tmp32_; -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data4_ = g_slice_new0 (Block4Data); -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data4_->_ref_count_ = 1; -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data4_->_data3_ = block3_data_ref (_data3_); -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp21_) { -#line 7600 "ColorTransformation.c" - gint _tmp22_; -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22_ = job; -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - job = _tmp22_ + 1; -#line 7606 "ColorTransformation.c" - } -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21_ = FALSE; -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp23_ = job; -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp23_ < jobs)) { -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - block4_data_unref (_data4_); -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data4_ = NULL; -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 7620 "ColorTransformation.c" - } -#line 851 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24_ = job; -#line 851 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp25_ = slice_length; -#line 851 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data4_->row = _tmp24_ * _tmp25_; -#line 852 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp26_ = _data4_->row; -#line 852 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp27_ = slice_length; -#line 852 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp28_ = height; -#line 852 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data4_->slice_height = CLAMP (_tmp26_ + _tmp27_, (guint) 0, (guint) _tmp28_); -#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp29_ = threads; -#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp29__length1 = threads_length1; -#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp30_ = job; -#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp31_ = g_thread_new ("shotwell-worker", ______lambda4__gthread_func, block4_data_ref (_data4_)); -#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_thread_unref0 (_tmp29_[_tmp30_]); -#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp29_[_tmp30_] = _tmp31_; -#line 854 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp32_ = _tmp29_[_tmp30_]; -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - block4_data_unref (_data4_); -#line 850 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data4_ = NULL; -#line 7654 "ColorTransformation.c" - } - } - } -#line 868 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp33_ = threads; -#line 868 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp33__length1 = threads_length1; -#line 7662 "ColorTransformation.c" - { - GThread** thread_collection = NULL; - gint thread_collection_length1 = 0; - gint _thread_collection_size_ = 0; - gint thread_it = 0; -#line 868 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - thread_collection = _tmp33_; -#line 868 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - thread_collection_length1 = _tmp33__length1; -#line 868 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - for (thread_it = 0; thread_it < _tmp33__length1; thread_it = thread_it + 1) { -#line 7674 "ColorTransformation.c" - GThread* _tmp34_; - GThread* thread = NULL; -#line 868 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp34_ = _g_thread_ref0 (thread_collection[thread_it]); -#line 868 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - thread = _tmp34_; -#line 7681 "ColorTransformation.c" - { - GThread* _tmp35_; - GThread* _tmp36_; -#line 869 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp35_ = thread; -#line 869 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp36_ = _g_thread_ref0 (_tmp35_); -#line 869 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_thread_join (_tmp36_); -#line 868 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_thread_unref0 (thread); -#line 7693 "ColorTransformation.c" - } - } - } -#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - threads = (_vala_array_free (threads, threads_length1, (GDestroyNotify) g_thread_unref), NULL); -#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - block3_data_unref (_data3_); -#line 817 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _data3_ = NULL; -#line 7703 "ColorTransformation.c" -} - - -static void -value_pixel_transformer_init (GValue* value) -{ -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 7712 "ColorTransformation.c" -} - - -static void -value_pixel_transformer_free_value (GValue* value) -{ -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (value->data[0].v_pointer) { -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformer_unref (value->data[0].v_pointer); -#line 7723 "ColorTransformation.c" - } -} - - -static void -value_pixel_transformer_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (src_value->data[0].v_pointer) { -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - dest_value->data[0].v_pointer = pixel_transformer_ref (src_value->data[0].v_pointer); -#line 7736 "ColorTransformation.c" - } else { -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - dest_value->data[0].v_pointer = NULL; -#line 7740 "ColorTransformation.c" - } -} - - -static gpointer -value_pixel_transformer_peek_pointer (const GValue* value) -{ -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return value->data[0].v_pointer; -#line 7750 "ColorTransformation.c" -} - - -static gchar* -value_pixel_transformer_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (collect_values[0].v_pointer) { -#line 7762 "ColorTransformation.c" - PixelTransformer * object; - object = collect_values[0].v_pointer; -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (object->parent_instance.g_class == NULL) { -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 7769 "ColorTransformation.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 7773 "ColorTransformation.c" - } -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = pixel_transformer_ref (object); -#line 7777 "ColorTransformation.c" - } else { -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 7781 "ColorTransformation.c" - } -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return NULL; -#line 7785 "ColorTransformation.c" -} - - -static gchar* -value_pixel_transformer_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PixelTransformer ** object_p; - object_p = collect_values[0].v_pointer; -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!object_p) { -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 7801 "ColorTransformation.c" - } -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!value->data[0].v_pointer) { -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = NULL; -#line 7807 "ColorTransformation.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = value->data[0].v_pointer; -#line 7811 "ColorTransformation.c" - } else { -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = pixel_transformer_ref (value->data[0].v_pointer); -#line 7815 "ColorTransformation.c" - } -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return NULL; -#line 7819 "ColorTransformation.c" -} - - -GParamSpec* -param_spec_pixel_transformer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecPixelTransformer* spec; -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_PIXEL_TRANSFORMER), NULL); -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return G_PARAM_SPEC (spec); -#line 7839 "ColorTransformation.c" -} - - -gpointer -value_get_pixel_transformer (const GValue* value) -{ -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMER), NULL); -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return value->data[0].v_pointer; -#line 7850 "ColorTransformation.c" -} - - -void -value_set_pixel_transformer (GValue* value, - gpointer v_object) -{ - PixelTransformer * old; -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMER)); -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - old = value->data[0].v_pointer; -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (v_object) { -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PIXEL_TRANSFORMER)); -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = v_object; -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformer_ref (value->data[0].v_pointer); -#line 7873 "ColorTransformation.c" - } else { -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 7877 "ColorTransformation.c" - } -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (old) { -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformer_unref (old); -#line 7883 "ColorTransformation.c" - } -} - - -void -value_take_pixel_transformer (GValue* value, - gpointer v_object) -{ - PixelTransformer * old; -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PIXEL_TRANSFORMER)); -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - old = value->data[0].v_pointer; -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (v_object) { -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PIXEL_TRANSFORMER)); -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = v_object; -#line 7905 "ColorTransformation.c" - } else { -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 7909 "ColorTransformation.c" - } -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (old) { -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformer_unref (old); -#line 7915 "ColorTransformation.c" - } -} - - -static void -pixel_transformer_class_init (PixelTransformerClass * klass) -{ -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformer_parent_class = g_type_class_peek_parent (klass); -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformerClass *) klass)->finalize = pixel_transformer_finalize; -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_class_add_private (klass, sizeof (PixelTransformerPrivate)); -#line 7929 "ColorTransformation.c" -} - - -static void -pixel_transformer_instance_init (PixelTransformer * self) -{ - GeeArrayList* _tmp0_; -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv = PIXEL_TRANSFORMER_GET_PRIVATE (self); -#line 683 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = gee_array_list_new (TYPE_PIXEL_TRANSFORMATION, (GBoxedCopyFunc) pixel_transformation_ref, (GDestroyNotify) pixel_transformation_unref, NULL, NULL, NULL); -#line 683 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->transformations = _tmp0_; -#line 685 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_transformations = NULL; -#line 685 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_transformations_length1 = 0; -#line 686 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_slots_used = 0; -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->ref_count = 1; -#line 7951 "ColorTransformation.c" -} - - -static void -pixel_transformer_finalize (PixelTransformer * obj) -{ - PixelTransformer * self; -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PIXEL_TRANSFORMER, PixelTransformer); -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_signal_handlers_destroy (self); -#line 683 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_object_unref0 (self->priv->transformations); -#line 685 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->optimized_transformations = (_vala_array_free (self->optimized_transformations, self->optimized_transformations_length1, (GDestroyNotify) pixel_transformation_unref), NULL); -#line 7967 "ColorTransformation.c" -} - - -GType -pixel_transformer_get_type (void) -{ - static volatile gsize pixel_transformer_type_id__volatile = 0; - if (g_once_init_enter (&pixel_transformer_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_pixel_transformer_init, value_pixel_transformer_free_value, value_pixel_transformer_copy_value, value_pixel_transformer_peek_pointer, "p", value_pixel_transformer_collect_value, "p", value_pixel_transformer_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PixelTransformerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pixel_transformer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PixelTransformer), 0, (GInstanceInitFunc) pixel_transformer_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType pixel_transformer_type_id; - pixel_transformer_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PixelTransformer", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&pixel_transformer_type_id__volatile, pixel_transformer_type_id); - } - return pixel_transformer_type_id__volatile; -} - - -gpointer -pixel_transformer_ref (gpointer instance) -{ - PixelTransformer * self; - self = instance; -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_atomic_int_inc (&self->ref_count); -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return instance; -#line 7996 "ColorTransformation.c" -} - - -void -pixel_transformer_unref (gpointer instance) -{ - PixelTransformer * self; - self = instance; -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - PIXEL_TRANSFORMER_GET_CLASS (self)->finalize (self); -#line 682 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 8011 "ColorTransformation.c" - } -} - - -RGBHistogram* -rgb_histogram_construct (GType object_type, - GdkPixbuf* pixbuf) -{ - RGBHistogram* self = NULL; - gint sample_bytes = 0; - gint pixel_bytes = 0; - gint _tmp0_; - gint row_length_bytes = 0; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - guchar* pixel_data = NULL; - guint8* _tmp4_; - gint pixel_data_length1; - gint _pixel_data_size_; -#line 898 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (RGBHistogram*) g_type_create_instance (object_type); -#line 899 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - sample_bytes = gdk_pixbuf_get_bits_per_sample (pixbuf) / 8; -#line 900 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = sample_bytes; -#line 900 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_bytes = _tmp0_ * gdk_pixbuf_get_n_channels (pixbuf); -#line 901 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = pixel_bytes; -#line 901 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = gdk_pixbuf_get_width (pixbuf); -#line 901 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = _tmp2_; -#line 901 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - row_length_bytes = _tmp1_ * _tmp3_; -#line 903 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = gdk_pixbuf_get_pixels (pixbuf); -#line 903 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_data = _tmp4_; -#line 903 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_data_length1 = -1; -#line 903 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_data_size_ = pixel_data_length1; -#line 8056 "ColorTransformation.c" - { - gint y = 0; -#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - y = 0; -#line 8061 "ColorTransformation.c" - { - gboolean _tmp5_ = FALSE; -#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = TRUE; -#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 8068 "ColorTransformation.c" - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint row_start_offset = 0; - gint _tmp10_; - gint _tmp11_; - gint _tmp12_; - gint r_offset = 0; - gint _tmp13_; - gint g_offset = 0; - gint _tmp14_; - gint _tmp15_; - gint b_offset = 0; - gint _tmp16_; - gint _tmp17_; - gint _tmp18_; -#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp5_) { -#line 8087 "ColorTransformation.c" - gint _tmp6_; -#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = y; -#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - y = _tmp6_ + 1; -#line 8093 "ColorTransformation.c" - } -#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = FALSE; -#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = y; -#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = gdk_pixbuf_get_height (pixbuf); -#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = _tmp8_; -#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp7_ < _tmp9_)) { -#line 905 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 8107 "ColorTransformation.c" - } -#line 906 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = y; -#line 906 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = gdk_pixbuf_get_rowstride (pixbuf); -#line 906 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = _tmp11_; -#line 906 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - row_start_offset = _tmp10_ * _tmp12_; -#line 908 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = row_start_offset; -#line 908 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - r_offset = _tmp13_; -#line 909 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = row_start_offset; -#line 909 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = sample_bytes; -#line 909 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_offset = _tmp14_ + _tmp15_; -#line 910 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_ = row_start_offset; -#line 910 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp17_ = sample_bytes; -#line 910 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18_ = sample_bytes; -#line 910 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - b_offset = (_tmp16_ + _tmp17_) + _tmp18_; -#line 912 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 8137 "ColorTransformation.c" - gint _tmp19_; - gint _tmp20_; - gint _tmp21_; - gint* _tmp22_; - gint _tmp22__length1; - guchar* _tmp23_; - gint _tmp23__length1; - gint _tmp24_; - guchar _tmp25_; - gint _tmp26_; - gint* _tmp27_; - gint _tmp27__length1; - guchar* _tmp28_; - gint _tmp28__length1; - gint _tmp29_; - guchar _tmp30_; - gint _tmp31_; - gint* _tmp32_; - gint _tmp32__length1; - guchar* _tmp33_; - gint _tmp33__length1; - gint _tmp34_; - guchar _tmp35_; - gint _tmp36_; - gint _tmp37_; - gint _tmp38_; - gint _tmp39_; - gint _tmp40_; - gint _tmp41_; - gint _tmp42_; -#line 912 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_ = b_offset; -#line 912 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20_ = row_start_offset; -#line 912 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21_ = row_length_bytes; -#line 912 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp19_ < (_tmp20_ + _tmp21_))) { -#line 912 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 8178 "ColorTransformation.c" - } -#line 913 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22_ = self->priv->red_counts; -#line 913 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22__length1 = self->priv->red_counts_length1; -#line 913 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp23_ = pixel_data; -#line 913 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp23__length1 = pixel_data_length1; -#line 913 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24_ = r_offset; -#line 913 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp25_ = _tmp23_[_tmp24_]; -#line 913 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22_[_tmp25_] += 1; -#line 913 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp26_ = _tmp22_[_tmp25_]; -#line 914 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp27_ = self->priv->green_counts; -#line 914 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp27__length1 = self->priv->green_counts_length1; -#line 914 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp28_ = pixel_data; -#line 914 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp28__length1 = pixel_data_length1; -#line 914 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp29_ = g_offset; -#line 914 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp30_ = _tmp28_[_tmp29_]; -#line 914 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp27_[_tmp30_] += 1; -#line 914 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp31_ = _tmp27_[_tmp30_]; -#line 915 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp32_ = self->priv->blue_counts; -#line 915 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp32__length1 = self->priv->blue_counts_length1; -#line 915 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp33_ = pixel_data; -#line 915 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp33__length1 = pixel_data_length1; -#line 915 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp34_ = b_offset; -#line 915 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp35_ = _tmp33_[_tmp34_]; -#line 915 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp32_[_tmp35_] += 1; -#line 915 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp36_ = _tmp32_[_tmp35_]; -#line 917 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp37_ = r_offset; -#line 917 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp38_ = pixel_bytes; -#line 917 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - r_offset = _tmp37_ + _tmp38_; -#line 918 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp39_ = g_offset; -#line 918 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp40_ = pixel_bytes; -#line 918 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_offset = _tmp39_ + _tmp40_; -#line 919 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp41_ = b_offset; -#line 919 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp42_ = pixel_bytes; -#line 919 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - b_offset = _tmp41_ + _tmp42_; -#line 8246 "ColorTransformation.c" - } - } - } - } -#line 898 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 8253 "ColorTransformation.c" -} - - -RGBHistogram* -rgb_histogram_new (GdkPixbuf* pixbuf) -{ -#line 898 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return rgb_histogram_construct (TYPE_RGB_HISTOGRAM, pixbuf); -#line 8262 "ColorTransformation.c" -} - - -static gint -rgb_histogram_correct_snap_to_quantization (RGBHistogram* self, - gint* buckets, - int buckets_length1, - gint i) -{ - gint result = 0; - gboolean _tmp0_ = FALSE; - gint _tmp17_; -#line 925 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _vala_assert (buckets_length1 == 256, "buckets.length == 256"); -#line 926 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (i >= 0) { -#line 926 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = i <= 255; -#line 8281 "ColorTransformation.c" - } else { -#line 926 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = FALSE; -#line 8285 "ColorTransformation.c" - } -#line 926 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _vala_assert (_tmp0_, "(i >= 0) && (i <= 255)"); -#line 928 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (i == 0) { -#line 8291 "ColorTransformation.c" - gint _tmp1_; -#line 929 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = buckets[i]; -#line 929 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp1_ > 0) { -#line 8297 "ColorTransformation.c" - gint _tmp2_; -#line 930 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = buckets[i + 1]; -#line 930 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp2_ > 0) { -#line 8303 "ColorTransformation.c" - gint _tmp3_; - gint _tmp4_; -#line 931 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = buckets[i]; -#line 931 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = buckets[i + 1]; -#line 931 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp3_ > (2 * _tmp4_)) { -#line 8312 "ColorTransformation.c" - gint _tmp5_; -#line 932 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = buckets[i + 1]; -#line 932 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp5_; -#line 932 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 8320 "ColorTransformation.c" - } - } - } - } else { -#line 933 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (i == 255) { -#line 8327 "ColorTransformation.c" - gint _tmp6_; -#line 934 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = buckets[i]; -#line 934 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp6_ > 0) { -#line 8333 "ColorTransformation.c" - gint _tmp7_; -#line 935 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = buckets[i - 1]; -#line 935 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp7_ > 0) { -#line 8339 "ColorTransformation.c" - gint _tmp8_; - gint _tmp9_; -#line 936 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = buckets[i]; -#line 936 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = buckets[i - 1]; -#line 936 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp8_ > (2 * _tmp9_)) { -#line 8348 "ColorTransformation.c" - gint _tmp10_; -#line 937 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = buckets[i - 1]; -#line 937 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp10_; -#line 937 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 8356 "ColorTransformation.c" - } - } - } - } else { - gint _tmp11_; -#line 939 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = buckets[i]; -#line 939 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp11_ > 0) { -#line 8366 "ColorTransformation.c" - gint _tmp12_; - gint _tmp13_; - gint _tmp14_; -#line 940 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = buckets[i]; -#line 940 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = buckets[i - 1]; -#line 940 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = buckets[i + 1]; -#line 940 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp12_ > ((_tmp13_ + _tmp14_) / 2)) { -#line 8378 "ColorTransformation.c" - gint _tmp15_; - gint _tmp16_; -#line 941 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = buckets[i - 1]; -#line 941 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_ = buckets[i + 1]; -#line 941 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = (_tmp15_ + _tmp16_) / 2; -#line 941 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 8389 "ColorTransformation.c" - } - } - } - } -#line 944 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp17_ = buckets[i]; -#line 944 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp17_; -#line 944 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 8400 "ColorTransformation.c" -} - - -static gint -rgb_histogram_correct_snap_from_quantization (RGBHistogram* self, - gint* buckets, - int buckets_length1, - gint i) -{ - gint result = 0; - gboolean _tmp0_ = FALSE; - gint _tmp8_; -#line 948 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _vala_assert (buckets_length1 == 256, "buckets.length == 256"); -#line 949 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (i >= 0) { -#line 949 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = i <= 255; -#line 8419 "ColorTransformation.c" - } else { -#line 949 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = FALSE; -#line 8423 "ColorTransformation.c" - } -#line 949 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _vala_assert (_tmp0_, "(i >= 0) && (i <= 255)"); -#line 951 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (i == 0) { -#line 8429 "ColorTransformation.c" - gint _tmp1_; -#line 952 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = buckets[i]; -#line 952 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp1_; -#line 952 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 8437 "ColorTransformation.c" - } else { -#line 953 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (i == 255) { -#line 8441 "ColorTransformation.c" - gint _tmp2_; -#line 954 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = buckets[i]; -#line 954 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp2_; -#line 954 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 8449 "ColorTransformation.c" - } else { - gint _tmp3_; -#line 956 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = buckets[i]; -#line 956 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp3_ == 0) { -#line 8456 "ColorTransformation.c" - gint _tmp4_; -#line 957 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = buckets[i - 1]; -#line 957 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp4_ > 0) { -#line 8462 "ColorTransformation.c" - gint _tmp5_; -#line 958 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = buckets[i + 1]; -#line 958 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp5_ > 0) { -#line 8468 "ColorTransformation.c" - gint _tmp6_; - gint _tmp7_; -#line 959 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = buckets[i - 1]; -#line 959 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = buckets[i + 1]; -#line 959 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = (_tmp6_ + _tmp7_) / 2; -#line 959 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 8479 "ColorTransformation.c" - } - } - } - } - } -#line 962 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = buckets[i]; -#line 962 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp8_; -#line 962 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 8491 "ColorTransformation.c" -} - - -static void -rgb_histogram_smooth_extrema (RGBHistogram* self, - gint** count_data, - int* count_data_length1) -{ - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; - gint _tmp12_; - gint _tmp13_; - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; - gint _tmp17_; - gint _tmp18_; - gint _tmp19_; - gint _tmp20_; - gint _tmp21_; - gint _tmp22_; - gint _tmp23_; - gint _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; - gint _tmp28_; - gint _tmp29_; - gint _tmp30_; - gint _tmp31_; - gint _tmp32_; - gint _tmp33_; - gint _tmp34_; - gint _tmp35_; - gint _tmp36_; - gint _tmp37_; - gint _tmp38_; - gint _tmp39_; - gint _tmp40_; - gint _tmp41_; - gint _tmp42_; - gint _tmp43_; - gint _tmp44_; - gint _tmp45_; - gint _tmp46_; - gint _tmp47_; - gint _tmp48_; - gint _tmp49_; - gint _tmp50_; - gint _tmp51_; - gint _tmp52_; - gint _tmp53_; -#line 966 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _vala_assert ((*count_data_length1) == 256, "count_data.length == 256"); -#line 972 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = (*count_data)[0]; -#line 972 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = (*count_data)[1]; -#line 972 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = (*count_data)[2]; -#line 972 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*count_data)[0] = (((5 * _tmp0_) + (3 * _tmp1_)) + (2 * _tmp2_)) / 10; -#line 972 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = (*count_data)[0]; -#line 974 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = (*count_data)[0]; -#line 974 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = (*count_data)[1]; -#line 974 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = (*count_data)[2]; -#line 974 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = (*count_data)[3]; -#line 974 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*count_data)[1] = ((((3 * _tmp4_) + (5 * _tmp5_)) + (3 * _tmp6_)) + (2 * _tmp7_)) / 13; -#line 974 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = (*count_data)[1]; -#line 976 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = (*count_data)[0]; -#line 976 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = (*count_data)[1]; -#line 976 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = (*count_data)[2]; -#line 976 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = (*count_data)[3]; -#line 976 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = (*count_data)[4]; -#line 976 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*count_data)[2] = (((((2 * _tmp9_) + (3 * _tmp10_)) + (5 * _tmp11_)) + (3 * _tmp12_)) + (2 * _tmp13_)) / 15; -#line 976 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = (*count_data)[2]; -#line 978 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = (*count_data)[1]; -#line 978 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_ = (*count_data)[2]; -#line 978 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp17_ = (*count_data)[3]; -#line 978 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18_ = (*count_data)[4]; -#line 978 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_ = (*count_data)[5]; -#line 978 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*count_data)[3] = (((((2 * _tmp15_) + (3 * _tmp16_)) + (5 * _tmp17_)) + (3 * _tmp18_)) + (2 * _tmp19_)) / 15; -#line 978 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20_ = (*count_data)[3]; -#line 980 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21_ = (*count_data)[2]; -#line 980 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22_ = (*count_data)[3]; -#line 980 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp23_ = (*count_data)[4]; -#line 980 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24_ = (*count_data)[5]; -#line 980 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp25_ = (*count_data)[6]; -#line 980 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*count_data)[4] = (((((2 * _tmp21_) + (3 * _tmp22_)) + (5 * _tmp23_)) + (3 * _tmp24_)) + (2 * _tmp25_)) / 15; -#line 980 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp26_ = (*count_data)[4]; -#line 983 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp27_ = (*count_data)[255]; -#line 983 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp28_ = (*count_data)[254]; -#line 983 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp29_ = (*count_data)[253]; -#line 983 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*count_data)[255] = (((5 * _tmp27_) + (3 * _tmp28_)) + (2 * _tmp29_)) / 10; -#line 983 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp30_ = (*count_data)[255]; -#line 985 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp31_ = (*count_data)[255]; -#line 985 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp32_ = (*count_data)[254]; -#line 985 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp33_ = (*count_data)[253]; -#line 985 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp34_ = (*count_data)[252]; -#line 985 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*count_data)[254] = ((((3 * _tmp31_) + (5 * _tmp32_)) + (3 * _tmp33_)) + (2 * _tmp34_)) / 13; -#line 985 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp35_ = (*count_data)[254]; -#line 987 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp36_ = (*count_data)[255]; -#line 987 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp37_ = (*count_data)[254]; -#line 987 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp38_ = (*count_data)[253]; -#line 987 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp39_ = (*count_data)[252]; -#line 987 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp40_ = (*count_data)[251]; -#line 987 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*count_data)[253] = (((((2 * _tmp36_) + (3 * _tmp37_)) + (5 * _tmp38_)) + (3 * _tmp39_)) + (2 * _tmp40_)) / 15; -#line 987 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp41_ = (*count_data)[253]; -#line 989 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp42_ = (*count_data)[254]; -#line 989 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp43_ = (*count_data)[253]; -#line 989 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp44_ = (*count_data)[252]; -#line 989 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp45_ = (*count_data)[251]; -#line 989 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp46_ = (*count_data)[250]; -#line 989 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*count_data)[252] = (((((2 * _tmp42_) + (3 * _tmp43_)) + (5 * _tmp44_)) + (3 * _tmp45_)) + (2 * _tmp46_)) / 15; -#line 989 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp47_ = (*count_data)[252]; -#line 991 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp48_ = (*count_data)[253]; -#line 991 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp49_ = (*count_data)[252]; -#line 991 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp50_ = (*count_data)[251]; -#line 991 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp51_ = (*count_data)[250]; -#line 991 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp52_ = (*count_data)[249]; -#line 991 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - (*count_data)[251] = (((((2 * _tmp48_) + (3 * _tmp49_)) + (5 * _tmp50_)) + (3 * _tmp51_)) + (2 * _tmp52_)) / 15; -#line 991 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp53_ = (*count_data)[251]; -#line 8684 "ColorTransformation.c" -} - - -static void -rgb_histogram_prepare_qualitative_counts (RGBHistogram* self) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gint* _tmp2_; - gint _tmp2__length1; - gint* _tmp5_; - gint* _tmp6_; - gint* _tmp7_; - gint* temp_red_counts = NULL; - gint* _tmp8_; - gint temp_red_counts_length1; - gint _temp_red_counts_size_; - gint* temp_green_counts = NULL; - gint* _tmp9_; - gint temp_green_counts_length1; - gint _temp_green_counts_size_; - gint* temp_blue_counts = NULL; - gint* _tmp10_; - gint temp_blue_counts_length1; - gint _temp_blue_counts_size_; - gint mean_qual_count = 0; - gint _tmp81_; - gint constrained_max_qual_count = 0; - gint _tmp82_; -#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = self->priv->qualitative_red_counts; -#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2__length1 = self->priv->qualitative_red_counts_length1; -#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp2_ != NULL) { -#line 8720 "ColorTransformation.c" - gint* _tmp3_; - gint _tmp3__length1; -#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = self->priv->qualitative_green_counts; -#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3__length1 = self->priv->qualitative_green_counts_length1; -#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = _tmp3_ != NULL; -#line 8729 "ColorTransformation.c" - } else { -#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = FALSE; -#line 8733 "ColorTransformation.c" - } -#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp1_) { -#line 8737 "ColorTransformation.c" - gint* _tmp4_; - gint _tmp4__length1; -#line 997 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = self->priv->qualitative_blue_counts; -#line 997 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4__length1 = self->priv->qualitative_blue_counts_length1; -#line 997 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = _tmp4_ != NULL; -#line 8746 "ColorTransformation.c" - } else { -#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = FALSE; -#line 8750 "ColorTransformation.c" - } -#line 996 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp0_) { -#line 998 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return; -#line 8756 "ColorTransformation.c" - } -#line 1000 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = g_new0 (gint, 256); -#line 1000 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_red_counts = (g_free (self->priv->qualitative_red_counts), NULL); -#line 1000 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_red_counts = _tmp5_; -#line 1000 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_red_counts_length1 = 256; -#line 1000 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->_qualitative_red_counts_size_ = self->priv->qualitative_red_counts_length1; -#line 1001 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = g_new0 (gint, 256); -#line 1001 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_green_counts = (g_free (self->priv->qualitative_green_counts), NULL); -#line 1001 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_green_counts = _tmp6_; -#line 1001 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_green_counts_length1 = 256; -#line 1001 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->_qualitative_green_counts_size_ = self->priv->qualitative_green_counts_length1; -#line 1002 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = g_new0 (gint, 256); -#line 1002 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_blue_counts = (g_free (self->priv->qualitative_blue_counts), NULL); -#line 1002 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_blue_counts = _tmp7_; -#line 1002 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_blue_counts_length1 = 256; -#line 1002 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->_qualitative_blue_counts_size_ = self->priv->qualitative_blue_counts_length1; -#line 1004 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = g_new0 (gint, 256); -#line 1004 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - temp_red_counts = _tmp8_; -#line 1004 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - temp_red_counts_length1 = 256; -#line 1004 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _temp_red_counts_size_ = temp_red_counts_length1; -#line 1005 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = g_new0 (gint, 256); -#line 1005 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - temp_green_counts = _tmp9_; -#line 1005 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - temp_green_counts_length1 = 256; -#line 1005 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _temp_green_counts_size_ = temp_green_counts_length1; -#line 1006 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = g_new0 (gint, 256); -#line 1006 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - temp_blue_counts = _tmp10_; -#line 1006 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - temp_blue_counts_length1 = 256; -#line 1006 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _temp_blue_counts_size_ = temp_blue_counts_length1; -#line 8812 "ColorTransformation.c" - { - gint i = 0; -#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = 0; -#line 8817 "ColorTransformation.c" - { - gboolean _tmp11_ = FALSE; -#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = TRUE; -#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 8824 "ColorTransformation.c" - gint _tmp13_; - gint* _tmp14_; - gint _tmp14__length1; - gint _tmp15_; - gint* _tmp16_; - gint _tmp16__length1; - gint _tmp17_; - gint _tmp18_; - gint* _tmp19_; - gint _tmp19__length1; - gint _tmp20_; - gint* _tmp21_; - gint _tmp21__length1; - gint _tmp22_; - gint _tmp23_; - gint* _tmp24_; - gint _tmp24__length1; - gint _tmp25_; - gint* _tmp26_; - gint _tmp26__length1; - gint _tmp27_; - gint _tmp28_; -#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp11_) { -#line 8849 "ColorTransformation.c" - gint _tmp12_; -#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = i; -#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp12_ + 1; -#line 8855 "ColorTransformation.c" - } -#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = FALSE; -#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = i; -#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp13_ < 256)) { -#line 1012 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 8865 "ColorTransformation.c" - } -#line 1013 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = self->priv->qualitative_red_counts; -#line 1013 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14__length1 = self->priv->qualitative_red_counts_length1; -#line 1013 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = i; -#line 1013 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_ = self->priv->red_counts; -#line 1013 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16__length1 = self->priv->red_counts_length1; -#line 1013 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp17_ = i; -#line 1013 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_[_tmp15_] = rgb_histogram_correct_snap_from_quantization (self, _tmp16_, _tmp16__length1, _tmp17_); -#line 1013 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18_ = _tmp14_[_tmp15_]; -#line 1015 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_ = self->priv->qualitative_green_counts; -#line 1015 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19__length1 = self->priv->qualitative_green_counts_length1; -#line 1015 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20_ = i; -#line 1015 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21_ = self->priv->green_counts; -#line 1015 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21__length1 = self->priv->green_counts_length1; -#line 1015 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22_ = i; -#line 1015 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_[_tmp20_] = rgb_histogram_correct_snap_from_quantization (self, _tmp21_, _tmp21__length1, _tmp22_); -#line 1015 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp23_ = _tmp19_[_tmp20_]; -#line 1017 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24_ = self->priv->qualitative_blue_counts; -#line 1017 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24__length1 = self->priv->qualitative_blue_counts_length1; -#line 1017 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp25_ = i; -#line 1017 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp26_ = self->priv->blue_counts; -#line 1017 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp26__length1 = self->priv->blue_counts_length1; -#line 1017 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp27_ = i; -#line 1017 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24_[_tmp25_] = rgb_histogram_correct_snap_from_quantization (self, _tmp26_, _tmp26__length1, _tmp27_); -#line 1017 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp28_ = _tmp24_[_tmp25_]; -#line 8915 "ColorTransformation.c" - } - } - } - { - gint i = 0; -#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = 0; -#line 8923 "ColorTransformation.c" - { - gboolean _tmp29_ = FALSE; -#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp29_ = TRUE; -#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 8930 "ColorTransformation.c" - gint _tmp31_; - gint* _tmp32_; - gint _tmp32__length1; - gint _tmp33_; - gint* _tmp34_; - gint _tmp34__length1; - gint _tmp35_; - gint _tmp36_; - gint _tmp37_; - gint* _tmp38_; - gint _tmp38__length1; - gint _tmp39_; - gint* _tmp40_; - gint _tmp40__length1; - gint _tmp41_; - gint _tmp42_; - gint _tmp43_; - gint* _tmp44_; - gint _tmp44__length1; - gint _tmp45_; - gint* _tmp46_; - gint _tmp46__length1; - gint _tmp47_; - gint _tmp48_; - gint _tmp49_; -#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp29_) { -#line 8958 "ColorTransformation.c" - gint _tmp30_; -#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp30_ = i; -#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp30_ + 1; -#line 8964 "ColorTransformation.c" - } -#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp29_ = FALSE; -#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp31_ = i; -#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp31_ < 256)) { -#line 1021 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 8974 "ColorTransformation.c" - } -#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp32_ = temp_red_counts; -#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp32__length1 = temp_red_counts_length1; -#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp33_ = i; -#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp34_ = self->priv->qualitative_red_counts; -#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp34__length1 = self->priv->qualitative_red_counts_length1; -#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp35_ = i; -#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp36_ = _tmp34_[_tmp35_]; -#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp32_[_tmp33_] = _tmp36_; -#line 1022 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp37_ = _tmp32_[_tmp33_]; -#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp38_ = temp_green_counts; -#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp38__length1 = temp_green_counts_length1; -#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp39_ = i; -#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp40_ = self->priv->qualitative_green_counts; -#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp40__length1 = self->priv->qualitative_green_counts_length1; -#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp41_ = i; -#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp42_ = _tmp40_[_tmp41_]; -#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp38_[_tmp39_] = _tmp42_; -#line 1023 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp43_ = _tmp38_[_tmp39_]; -#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp44_ = temp_blue_counts; -#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp44__length1 = temp_blue_counts_length1; -#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp45_ = i; -#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp46_ = self->priv->qualitative_blue_counts; -#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp46__length1 = self->priv->qualitative_blue_counts_length1; -#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp47_ = i; -#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp48_ = _tmp46_[_tmp47_]; -#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp44_[_tmp45_] = _tmp48_; -#line 1024 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp49_ = _tmp44_[_tmp45_]; -#line 9030 "ColorTransformation.c" - } - } - } - { - gint i = 0; -#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = 0; -#line 9038 "ColorTransformation.c" - { - gboolean _tmp50_ = FALSE; -#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp50_ = TRUE; -#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 9045 "ColorTransformation.c" - gint _tmp52_; - gint* _tmp53_; - gint _tmp53__length1; - gint _tmp54_; - gint* _tmp55_; - gint _tmp55__length1; - gint _tmp56_; - gint _tmp57_; - gint* _tmp58_; - gint _tmp58__length1; - gint _tmp59_; - gint* _tmp60_; - gint _tmp60__length1; - gint _tmp61_; - gint _tmp62_; - gint* _tmp63_; - gint _tmp63__length1; - gint _tmp64_; - gint* _tmp65_; - gint _tmp65__length1; - gint _tmp66_; - gint _tmp67_; -#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp50_) { -#line 9070 "ColorTransformation.c" - gint _tmp51_; -#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp51_ = i; -#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp51_ + 1; -#line 9076 "ColorTransformation.c" - } -#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp50_ = FALSE; -#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp52_ = i; -#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp52_ < 256)) { -#line 1029 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 9086 "ColorTransformation.c" - } -#line 1030 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp53_ = self->priv->qualitative_red_counts; -#line 1030 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp53__length1 = self->priv->qualitative_red_counts_length1; -#line 1030 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp54_ = i; -#line 1030 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp55_ = temp_red_counts; -#line 1030 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp55__length1 = temp_red_counts_length1; -#line 1030 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp56_ = i; -#line 1030 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp53_[_tmp54_] = rgb_histogram_correct_snap_to_quantization (self, _tmp55_, _tmp55__length1, _tmp56_); -#line 1030 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp57_ = _tmp53_[_tmp54_]; -#line 1032 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp58_ = self->priv->qualitative_green_counts; -#line 1032 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp58__length1 = self->priv->qualitative_green_counts_length1; -#line 1032 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp59_ = i; -#line 1032 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp60_ = temp_green_counts; -#line 1032 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp60__length1 = temp_green_counts_length1; -#line 1032 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp61_ = i; -#line 1032 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp58_[_tmp59_] = rgb_histogram_correct_snap_to_quantization (self, _tmp60_, _tmp60__length1, _tmp61_); -#line 1032 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp62_ = _tmp58_[_tmp59_]; -#line 1034 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp63_ = self->priv->qualitative_blue_counts; -#line 1034 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp63__length1 = self->priv->qualitative_blue_counts_length1; -#line 1034 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp64_ = i; -#line 1034 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp65_ = temp_blue_counts; -#line 1034 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp65__length1 = temp_blue_counts_length1; -#line 1034 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp66_ = i; -#line 1034 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp63_[_tmp64_] = rgb_histogram_correct_snap_to_quantization (self, _tmp65_, _tmp65__length1, _tmp66_); -#line 1034 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp67_ = _tmp63_[_tmp64_]; -#line 9136 "ColorTransformation.c" - } - } - } -#line 1040 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - mean_qual_count = 0; -#line 9142 "ColorTransformation.c" - { - gint i = 0; -#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = 0; -#line 9147 "ColorTransformation.c" - { - gboolean _tmp68_ = FALSE; -#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp68_ = TRUE; -#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 9154 "ColorTransformation.c" - gint _tmp70_; - gint _tmp71_; - gint* _tmp72_; - gint _tmp72__length1; - gint _tmp73_; - gint _tmp74_; - gint* _tmp75_; - gint _tmp75__length1; - gint _tmp76_; - gint _tmp77_; - gint* _tmp78_; - gint _tmp78__length1; - gint _tmp79_; - gint _tmp80_; -#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp68_) { -#line 9171 "ColorTransformation.c" - gint _tmp69_; -#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp69_ = i; -#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp69_ + 1; -#line 9177 "ColorTransformation.c" - } -#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp68_ = FALSE; -#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp70_ = i; -#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp70_ < 256)) { -#line 1041 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 9187 "ColorTransformation.c" - } -#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp71_ = mean_qual_count; -#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp72_ = self->priv->qualitative_red_counts; -#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp72__length1 = self->priv->qualitative_red_counts_length1; -#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp73_ = i; -#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp74_ = _tmp72_[_tmp73_]; -#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp75_ = self->priv->qualitative_green_counts; -#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp75__length1 = self->priv->qualitative_green_counts_length1; -#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp76_ = i; -#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp77_ = _tmp75_[_tmp76_]; -#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp78_ = self->priv->qualitative_blue_counts; -#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp78__length1 = self->priv->qualitative_blue_counts_length1; -#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp79_ = i; -#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp80_ = _tmp78_[_tmp79_]; -#line 1042 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - mean_qual_count = _tmp71_ + ((_tmp74_ + _tmp77_) + _tmp80_); -#line 9217 "ColorTransformation.c" - } - } - } -#line 1045 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp81_ = mean_qual_count; -#line 1045 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - mean_qual_count = _tmp81_ / (256 * 3); -#line 1046 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp82_ = mean_qual_count; -#line 1046 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - constrained_max_qual_count = 8 * _tmp82_; -#line 9229 "ColorTransformation.c" - { - gint i = 0; -#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = 0; -#line 9234 "ColorTransformation.c" - { - gboolean _tmp83_ = FALSE; -#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp83_ = TRUE; -#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 9241 "ColorTransformation.c" - gint _tmp85_; - gint* _tmp86_; - gint _tmp86__length1; - gint _tmp87_; - gint _tmp88_; - gint _tmp89_; - gint* _tmp94_; - gint _tmp94__length1; - gint _tmp95_; - gint _tmp96_; - gint _tmp97_; - gint* _tmp102_; - gint _tmp102__length1; - gint _tmp103_; - gint _tmp104_; - gint _tmp105_; -#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp83_) { -#line 9260 "ColorTransformation.c" - gint _tmp84_; -#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp84_ = i; -#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp84_ + 1; -#line 9266 "ColorTransformation.c" - } -#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp83_ = FALSE; -#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp85_ = i; -#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp85_ < 256)) { -#line 1047 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 9276 "ColorTransformation.c" - } -#line 1048 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp86_ = self->priv->qualitative_red_counts; -#line 1048 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp86__length1 = self->priv->qualitative_red_counts_length1; -#line 1048 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp87_ = i; -#line 1048 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp88_ = _tmp86_[_tmp87_]; -#line 1048 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp89_ = constrained_max_qual_count; -#line 1048 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp88_ > _tmp89_) { -#line 9290 "ColorTransformation.c" - gint* _tmp90_; - gint _tmp90__length1; - gint _tmp91_; - gint _tmp92_; - gint _tmp93_; -#line 1049 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp90_ = self->priv->qualitative_red_counts; -#line 1049 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp90__length1 = self->priv->qualitative_red_counts_length1; -#line 1049 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp91_ = i; -#line 1049 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp92_ = constrained_max_qual_count; -#line 1049 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp90_[_tmp91_] = _tmp92_; -#line 1049 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp93_ = _tmp90_[_tmp91_]; -#line 9308 "ColorTransformation.c" - } -#line 1051 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp94_ = self->priv->qualitative_green_counts; -#line 1051 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp94__length1 = self->priv->qualitative_green_counts_length1; -#line 1051 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp95_ = i; -#line 1051 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp96_ = _tmp94_[_tmp95_]; -#line 1051 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp97_ = constrained_max_qual_count; -#line 1051 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp96_ > _tmp97_) { -#line 9322 "ColorTransformation.c" - gint* _tmp98_; - gint _tmp98__length1; - gint _tmp99_; - gint _tmp100_; - gint _tmp101_; -#line 1052 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp98_ = self->priv->qualitative_green_counts; -#line 1052 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp98__length1 = self->priv->qualitative_green_counts_length1; -#line 1052 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp99_ = i; -#line 1052 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp100_ = constrained_max_qual_count; -#line 1052 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp98_[_tmp99_] = _tmp100_; -#line 1052 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp101_ = _tmp98_[_tmp99_]; -#line 9340 "ColorTransformation.c" - } -#line 1054 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp102_ = self->priv->qualitative_blue_counts; -#line 1054 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp102__length1 = self->priv->qualitative_blue_counts_length1; -#line 1054 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp103_ = i; -#line 1054 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp104_ = _tmp102_[_tmp103_]; -#line 1054 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp105_ = constrained_max_qual_count; -#line 1054 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp104_ > _tmp105_) { -#line 9354 "ColorTransformation.c" - gint* _tmp106_; - gint _tmp106__length1; - gint _tmp107_; - gint _tmp108_; - gint _tmp109_; -#line 1055 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp106_ = self->priv->qualitative_blue_counts; -#line 1055 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp106__length1 = self->priv->qualitative_blue_counts_length1; -#line 1055 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp107_ = i; -#line 1055 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp108_ = constrained_max_qual_count; -#line 1055 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp106_[_tmp107_] = _tmp108_; -#line 1055 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp109_ = _tmp106_[_tmp107_]; -#line 9372 "ColorTransformation.c" - } - } - } - } -#line 1058 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - rgb_histogram_smooth_extrema (self, &self->priv->qualitative_red_counts, &self->priv->qualitative_red_counts_length1); -#line 1059 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - rgb_histogram_smooth_extrema (self, &self->priv->qualitative_green_counts, &self->priv->qualitative_green_counts_length1); -#line 1060 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - rgb_histogram_smooth_extrema (self, &self->priv->qualitative_blue_counts, &self->priv->qualitative_blue_counts_length1); -#line 995 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - temp_blue_counts = (g_free (temp_blue_counts), NULL); -#line 995 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - temp_green_counts = (g_free (temp_green_counts), NULL); -#line 995 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - temp_red_counts = (g_free (temp_red_counts), NULL); -#line 9389 "ColorTransformation.c" -} - - -GdkPixbuf* -rgb_histogram_get_graphic (RGBHistogram* self) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp117_; - GdkPixbuf* _tmp118_; -#line 1064 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->graphic; -#line 1064 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp0_ == NULL) { -#line 9404 "ColorTransformation.c" - gint max_count = 0; - GdkPixbuf* _tmp25_; - gint rowstride = 0; - GdkPixbuf* _tmp26_; - gint _tmp27_; - gint _tmp28_; - gint sample_bytes = 0; - GdkPixbuf* _tmp29_; - gint pixel_bytes = 0; - gint _tmp30_; - GdkPixbuf* _tmp31_; - gdouble scale_bar = 0.0; - gint _tmp32_; - guchar* pixel_data = NULL; - GdkPixbuf* _tmp33_; - guint8* _tmp34_; - gint pixel_data_length1; - gint _pixel_data_size_; - gint _tmp35_; -#line 1065 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - rgb_histogram_prepare_qualitative_counts (self); -#line 1066 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - max_count = 0; -#line 9428 "ColorTransformation.c" - { - gint i = 0; -#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = 0; -#line 9433 "ColorTransformation.c" - { - gboolean _tmp1_ = FALSE; -#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = TRUE; -#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 9440 "ColorTransformation.c" - gint _tmp3_; - gint* _tmp4_; - gint _tmp4__length1; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - gint* _tmp11_; - gint _tmp11__length1; - gint _tmp12_; - gint _tmp13_; - gint _tmp14_; - gint* _tmp18_; - gint _tmp18__length1; - gint _tmp19_; - gint _tmp20_; - gint _tmp21_; -#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp1_) { -#line 9459 "ColorTransformation.c" - gint _tmp2_; -#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = i; -#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp2_ + 1; -#line 9465 "ColorTransformation.c" - } -#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = FALSE; -#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = i; -#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp3_ < 256)) { -#line 1067 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 9475 "ColorTransformation.c" - } -#line 1068 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = self->priv->qualitative_red_counts; -#line 1068 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4__length1 = self->priv->qualitative_red_counts_length1; -#line 1068 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = i; -#line 1068 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = _tmp4_[_tmp5_]; -#line 1068 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = max_count; -#line 1068 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp6_ > _tmp7_) { -#line 9489 "ColorTransformation.c" - gint* _tmp8_; - gint _tmp8__length1; - gint _tmp9_; - gint _tmp10_; -#line 1069 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = self->priv->qualitative_red_counts; -#line 1069 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8__length1 = self->priv->qualitative_red_counts_length1; -#line 1069 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = i; -#line 1069 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = _tmp8_[_tmp9_]; -#line 1069 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - max_count = _tmp10_; -#line 9504 "ColorTransformation.c" - } -#line 1070 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = self->priv->qualitative_green_counts; -#line 1070 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11__length1 = self->priv->qualitative_green_counts_length1; -#line 1070 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = i; -#line 1070 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = _tmp11_[_tmp12_]; -#line 1070 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = max_count; -#line 1070 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp13_ > _tmp14_) { -#line 9518 "ColorTransformation.c" - gint* _tmp15_; - gint _tmp15__length1; - gint _tmp16_; - gint _tmp17_; -#line 1071 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = self->priv->qualitative_green_counts; -#line 1071 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15__length1 = self->priv->qualitative_green_counts_length1; -#line 1071 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_ = i; -#line 1071 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp17_ = _tmp15_[_tmp16_]; -#line 1071 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - max_count = _tmp17_; -#line 9533 "ColorTransformation.c" - } -#line 1072 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18_ = self->priv->qualitative_blue_counts; -#line 1072 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18__length1 = self->priv->qualitative_blue_counts_length1; -#line 1072 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_ = i; -#line 1072 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20_ = _tmp18_[_tmp19_]; -#line 1072 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21_ = max_count; -#line 1072 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp20_ > _tmp21_) { -#line 9547 "ColorTransformation.c" - gint* _tmp22_; - gint _tmp22__length1; - gint _tmp23_; - gint _tmp24_; -#line 1073 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22_ = self->priv->qualitative_blue_counts; -#line 1073 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22__length1 = self->priv->qualitative_blue_counts_length1; -#line 1073 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp23_ = i; -#line 1073 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24_ = _tmp22_[_tmp23_]; -#line 1073 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - max_count = _tmp24_; -#line 9562 "ColorTransformation.c" - } - } - } - } -#line 1076 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp25_ = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, RGB_HISTOGRAM_GRAPHIC_WIDTH, RGB_HISTOGRAM_GRAPHIC_HEIGHT); -#line 1076 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_object_unref0 (self->priv->graphic); -#line 1076 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->graphic = _tmp25_; -#line 1079 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp26_ = self->priv->graphic; -#line 1079 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp27_ = gdk_pixbuf_get_rowstride (_tmp26_); -#line 1079 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp28_ = _tmp27_; -#line 1079 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - rowstride = _tmp28_; -#line 1080 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp29_ = self->priv->graphic; -#line 1080 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - sample_bytes = gdk_pixbuf_get_bits_per_sample (_tmp29_) / 8; -#line 1081 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp30_ = sample_bytes; -#line 1081 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp31_ = self->priv->graphic; -#line 1081 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_bytes = _tmp30_ * gdk_pixbuf_get_n_channels (_tmp31_); -#line 1083 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp32_ = max_count; -#line 1083 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - scale_bar = (0.98 * ((gdouble) RGB_HISTOGRAM_GRAPHIC_HEIGHT)) / ((gdouble) _tmp32_); -#line 1086 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp33_ = self->priv->graphic; -#line 1086 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp34_ = gdk_pixbuf_get_pixels (_tmp33_); -#line 1086 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_data = _tmp34_; -#line 1086 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_data_length1 = -1; -#line 1086 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_data_size_ = pixel_data_length1; -#line 1090 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp35_ = max_count; -#line 1090 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp35_ == 0) { -#line 9609 "ColorTransformation.c" - GdkPixbuf* _tmp49_; - GdkPixbuf* _tmp50_; - { - gint i = 0; -#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = 0; -#line 9616 "ColorTransformation.c" - { - gboolean _tmp36_ = FALSE; -#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp36_ = TRUE; -#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 9623 "ColorTransformation.c" - gint _tmp38_; - gint _tmp39_; - GdkPixbuf* _tmp40_; - gint _tmp41_; - gint _tmp42_; - GdkPixbuf* _tmp43_; - gint _tmp44_; - gint _tmp45_; - guchar* _tmp46_; - gint _tmp46__length1; - gint _tmp47_; - guchar _tmp48_; -#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp36_) { -#line 9638 "ColorTransformation.c" - gint _tmp37_; -#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp37_ = i; -#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp37_ + 1; -#line 9644 "ColorTransformation.c" - } -#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp36_ = FALSE; -#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp38_ = i; -#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp39_ = pixel_bytes; -#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp40_ = self->priv->graphic; -#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp41_ = gdk_pixbuf_get_width (_tmp40_); -#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp42_ = _tmp41_; -#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp43_ = self->priv->graphic; -#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp44_ = gdk_pixbuf_get_height (_tmp43_); -#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp45_ = _tmp44_; -#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp38_ < ((_tmp39_ * _tmp42_) * _tmp45_))) { -#line 1091 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 9668 "ColorTransformation.c" - } -#line 1092 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp46_ = pixel_data; -#line 1092 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp46__length1 = pixel_data_length1; -#line 1092 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp47_ = i; -#line 1092 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp46_[_tmp47_] = RGB_HISTOGRAM_UNMARKED_BACKGROUND; -#line 1092 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp48_ = _tmp46_[_tmp47_]; -#line 9680 "ColorTransformation.c" - } - } - } -#line 1094 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp49_ = self->priv->graphic; -#line 1094 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp50_ = _g_object_ref0 (_tmp49_); -#line 1094 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp50_; -#line 1094 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 9692 "ColorTransformation.c" - } - { - gint x = 0; -#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - x = 0; -#line 9698 "ColorTransformation.c" - { - gboolean _tmp51_ = FALSE; -#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp51_ = TRUE; -#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 9705 "ColorTransformation.c" - gint _tmp53_; - gint red_bar_height = 0; - gint* _tmp54_; - gint _tmp54__length1; - gint _tmp55_; - gint _tmp56_; - gdouble _tmp57_; - gint green_bar_height = 0; - gint* _tmp58_; - gint _tmp58__length1; - gint _tmp59_; - gint _tmp60_; - gdouble _tmp61_; - gint blue_bar_height = 0; - gint* _tmp62_; - gint _tmp62__length1; - gint _tmp63_; - gint _tmp64_; - gdouble _tmp65_; - gint max_bar_height = 0; - gint _tmp66_; - gint _tmp67_; - gint _tmp68_; - gint y = 0; - gint pixel_index = 0; - gint _tmp69_; - gint _tmp70_; - gint _tmp71_; - gint _tmp72_; -#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp51_) { -#line 9737 "ColorTransformation.c" - gint _tmp52_; -#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp52_ = x; -#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - x = _tmp52_ + 1; -#line 9743 "ColorTransformation.c" - } -#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp51_ = FALSE; -#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp53_ = x; -#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp53_ < 256)) { -#line 1097 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 9753 "ColorTransformation.c" - } -#line 1098 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp54_ = self->priv->qualitative_red_counts; -#line 1098 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp54__length1 = self->priv->qualitative_red_counts_length1; -#line 1098 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp55_ = x; -#line 1098 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp56_ = _tmp54_[_tmp55_]; -#line 1098 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp57_ = scale_bar; -#line 1098 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - red_bar_height = (gint) (((gdouble) _tmp56_) * _tmp57_); -#line 1100 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp58_ = self->priv->qualitative_green_counts; -#line 1100 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp58__length1 = self->priv->qualitative_green_counts_length1; -#line 1100 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp59_ = x; -#line 1100 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp60_ = _tmp58_[_tmp59_]; -#line 1100 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp61_ = scale_bar; -#line 1100 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - green_bar_height = (gint) (((gdouble) _tmp60_) * _tmp61_); -#line 1102 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp62_ = self->priv->qualitative_blue_counts; -#line 1102 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp62__length1 = self->priv->qualitative_blue_counts_length1; -#line 1102 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp63_ = x; -#line 1102 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp64_ = _tmp62_[_tmp63_]; -#line 1102 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp65_ = scale_bar; -#line 1102 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - blue_bar_height = (gint) (((gdouble) _tmp64_) * _tmp65_); -#line 1105 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp66_ = red_bar_height; -#line 1105 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp67_ = green_bar_height; -#line 1105 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp68_ = blue_bar_height; -#line 1105 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - max_bar_height = MAX (MAX (_tmp66_, _tmp67_), _tmp68_); -#line 1108 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - y = RGB_HISTOGRAM_GRAPHIC_HEIGHT - 1; -#line 1109 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp69_ = x; -#line 1109 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp70_ = pixel_bytes; -#line 1109 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp71_ = y; -#line 1109 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp72_ = rowstride; -#line 1109 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_index = (_tmp69_ * _tmp70_) + (_tmp71_ * _tmp72_); -#line 9811 "ColorTransformation.c" - { - gboolean _tmp73_ = FALSE; -#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp73_ = TRUE; -#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 9818 "ColorTransformation.c" - gint _tmp75_; - gint _tmp76_; - guchar* _tmp77_; - gint _tmp77__length1; - gint _tmp78_; - guchar _tmp79_; - guchar* _tmp80_; - gint _tmp80__length1; - gint _tmp81_; - guchar _tmp82_; - guchar* _tmp83_; - gint _tmp83__length1; - gint _tmp84_; - guchar _tmp85_; - gint _tmp86_; - gint _tmp87_; - gint _tmp91_; - gint _tmp92_; - gint _tmp96_; - gint _tmp97_; - gint _tmp101_; - gint _tmp102_; -#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp73_) { -#line 9843 "ColorTransformation.c" - gint _tmp74_; -#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp74_ = y; -#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - y = _tmp74_ - 1; -#line 9849 "ColorTransformation.c" - } -#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp73_ = FALSE; -#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp75_ = y; -#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp76_ = max_bar_height; -#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp75_ >= (RGB_HISTOGRAM_GRAPHIC_HEIGHT - _tmp76_))) { -#line 1110 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 9861 "ColorTransformation.c" - } -#line 1111 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp77_ = pixel_data; -#line 1111 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp77__length1 = pixel_data_length1; -#line 1111 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp78_ = pixel_index; -#line 1111 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp77_[_tmp78_] = RGB_HISTOGRAM_MARKED_BACKGROUND; -#line 1111 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp79_ = _tmp77_[_tmp78_]; -#line 1112 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp80_ = pixel_data; -#line 1112 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp80__length1 = pixel_data_length1; -#line 1112 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp81_ = pixel_index; -#line 1112 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp80_[_tmp81_ + 1] = RGB_HISTOGRAM_MARKED_BACKGROUND; -#line 1112 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp82_ = _tmp80_[_tmp81_ + 1]; -#line 1113 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp83_ = pixel_data; -#line 1113 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp83__length1 = pixel_data_length1; -#line 1113 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp84_ = pixel_index; -#line 1113 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp83_[_tmp84_ + 2] = RGB_HISTOGRAM_MARKED_BACKGROUND; -#line 1113 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp85_ = _tmp83_[_tmp84_ + 2]; -#line 1115 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp86_ = y; -#line 1115 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp87_ = red_bar_height; -#line 1115 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp86_ >= ((RGB_HISTOGRAM_GRAPHIC_HEIGHT - _tmp87_) - 1)) { -#line 9899 "ColorTransformation.c" - guchar* _tmp88_; - gint _tmp88__length1; - gint _tmp89_; - guchar _tmp90_; -#line 1116 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp88_ = pixel_data; -#line 1116 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp88__length1 = pixel_data_length1; -#line 1116 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp89_ = pixel_index; -#line 1116 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp88_[_tmp89_] = RGB_HISTOGRAM_MARKED_FOREGROUND; -#line 1116 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp90_ = _tmp88_[_tmp89_]; -#line 9914 "ColorTransformation.c" - } -#line 1117 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp91_ = y; -#line 1117 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp92_ = green_bar_height; -#line 1117 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp91_ >= ((RGB_HISTOGRAM_GRAPHIC_HEIGHT - _tmp92_) - 1)) { -#line 9922 "ColorTransformation.c" - guchar* _tmp93_; - gint _tmp93__length1; - gint _tmp94_; - guchar _tmp95_; -#line 1118 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp93_ = pixel_data; -#line 1118 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp93__length1 = pixel_data_length1; -#line 1118 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp94_ = pixel_index; -#line 1118 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp93_[_tmp94_ + 1] = RGB_HISTOGRAM_MARKED_FOREGROUND; -#line 1118 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp95_ = _tmp93_[_tmp94_ + 1]; -#line 9937 "ColorTransformation.c" - } -#line 1119 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp96_ = y; -#line 1119 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp97_ = blue_bar_height; -#line 1119 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp96_ >= ((RGB_HISTOGRAM_GRAPHIC_HEIGHT - _tmp97_) - 1)) { -#line 9945 "ColorTransformation.c" - guchar* _tmp98_; - gint _tmp98__length1; - gint _tmp99_; - guchar _tmp100_; -#line 1120 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp98_ = pixel_data; -#line 1120 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp98__length1 = pixel_data_length1; -#line 1120 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp99_ = pixel_index; -#line 1120 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp98_[_tmp99_ + 2] = RGB_HISTOGRAM_MARKED_FOREGROUND; -#line 1120 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp100_ = _tmp98_[_tmp99_ + 2]; -#line 9960 "ColorTransformation.c" - } -#line 1122 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp101_ = pixel_index; -#line 1122 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp102_ = rowstride; -#line 1122 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_index = _tmp101_ - _tmp102_; -#line 9968 "ColorTransformation.c" - } - } - { - gboolean _tmp103_ = FALSE; -#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp103_ = TRUE; -#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 9977 "ColorTransformation.c" - gint _tmp105_; - guchar* _tmp106_; - gint _tmp106__length1; - gint _tmp107_; - guchar _tmp108_; - guchar* _tmp109_; - gint _tmp109__length1; - gint _tmp110_; - guchar _tmp111_; - guchar* _tmp112_; - gint _tmp112__length1; - gint _tmp113_; - guchar _tmp114_; - gint _tmp115_; - gint _tmp116_; -#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp103_) { -#line 9995 "ColorTransformation.c" - gint _tmp104_; -#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp104_ = y; -#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - y = _tmp104_ - 1; -#line 10001 "ColorTransformation.c" - } -#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp103_ = FALSE; -#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp105_ = y; -#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp105_ >= 0)) { -#line 1125 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 10011 "ColorTransformation.c" - } -#line 1126 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp106_ = pixel_data; -#line 1126 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp106__length1 = pixel_data_length1; -#line 1126 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp107_ = pixel_index; -#line 1126 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp106_[_tmp107_] = RGB_HISTOGRAM_UNMARKED_BACKGROUND; -#line 1126 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp108_ = _tmp106_[_tmp107_]; -#line 1127 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp109_ = pixel_data; -#line 1127 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp109__length1 = pixel_data_length1; -#line 1127 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp110_ = pixel_index; -#line 1127 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp109_[_tmp110_ + 1] = RGB_HISTOGRAM_UNMARKED_BACKGROUND; -#line 1127 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp111_ = _tmp109_[_tmp110_ + 1]; -#line 1128 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp112_ = pixel_data; -#line 1128 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp112__length1 = pixel_data_length1; -#line 1128 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp113_ = pixel_index; -#line 1128 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp112_[_tmp113_ + 2] = RGB_HISTOGRAM_UNMARKED_BACKGROUND; -#line 1128 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp114_ = _tmp112_[_tmp113_ + 2]; -#line 1130 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp115_ = pixel_index; -#line 1130 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp116_ = rowstride; -#line 1130 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_index = _tmp115_ - _tmp116_; -#line 10049 "ColorTransformation.c" - } - } - } - } - } - } -#line 1135 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp117_ = self->priv->graphic; -#line 1135 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp118_ = _g_object_ref0 (_tmp117_); -#line 1135 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp118_; -#line 1135 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 10064 "ColorTransformation.c" -} - - -static void -value_rgb_histogram_init (GValue* value) -{ -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 10073 "ColorTransformation.c" -} - - -static void -value_rgb_histogram_free_value (GValue* value) -{ -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (value->data[0].v_pointer) { -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - rgb_histogram_unref (value->data[0].v_pointer); -#line 10084 "ColorTransformation.c" - } -} - - -static void -value_rgb_histogram_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (src_value->data[0].v_pointer) { -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - dest_value->data[0].v_pointer = rgb_histogram_ref (src_value->data[0].v_pointer); -#line 10097 "ColorTransformation.c" - } else { -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - dest_value->data[0].v_pointer = NULL; -#line 10101 "ColorTransformation.c" - } -} - - -static gpointer -value_rgb_histogram_peek_pointer (const GValue* value) -{ -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return value->data[0].v_pointer; -#line 10111 "ColorTransformation.c" -} - - -static gchar* -value_rgb_histogram_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (collect_values[0].v_pointer) { -#line 10123 "ColorTransformation.c" - RGBHistogram * object; - object = collect_values[0].v_pointer; -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (object->parent_instance.g_class == NULL) { -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 10130 "ColorTransformation.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 10134 "ColorTransformation.c" - } -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = rgb_histogram_ref (object); -#line 10138 "ColorTransformation.c" - } else { -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 10142 "ColorTransformation.c" - } -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return NULL; -#line 10146 "ColorTransformation.c" -} - - -static gchar* -value_rgb_histogram_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - RGBHistogram ** object_p; - object_p = collect_values[0].v_pointer; -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!object_p) { -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 10162 "ColorTransformation.c" - } -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!value->data[0].v_pointer) { -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = NULL; -#line 10168 "ColorTransformation.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = value->data[0].v_pointer; -#line 10172 "ColorTransformation.c" - } else { -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = rgb_histogram_ref (value->data[0].v_pointer); -#line 10176 "ColorTransformation.c" - } -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return NULL; -#line 10180 "ColorTransformation.c" -} - - -GParamSpec* -param_spec_rgb_histogram (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecRGBHistogram* spec; -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_RGB_HISTOGRAM), NULL); -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return G_PARAM_SPEC (spec); -#line 10200 "ColorTransformation.c" -} - - -gpointer -value_get_rgb_histogram (const GValue* value) -{ -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_RGB_HISTOGRAM), NULL); -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return value->data[0].v_pointer; -#line 10211 "ColorTransformation.c" -} - - -void -value_set_rgb_histogram (GValue* value, - gpointer v_object) -{ - RGBHistogram * old; -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_RGB_HISTOGRAM)); -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - old = value->data[0].v_pointer; -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (v_object) { -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_RGB_HISTOGRAM)); -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = v_object; -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - rgb_histogram_ref (value->data[0].v_pointer); -#line 10234 "ColorTransformation.c" - } else { -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 10238 "ColorTransformation.c" - } -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (old) { -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - rgb_histogram_unref (old); -#line 10244 "ColorTransformation.c" - } -} - - -void -value_take_rgb_histogram (GValue* value, - gpointer v_object) -{ - RGBHistogram * old; -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_RGB_HISTOGRAM)); -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - old = value->data[0].v_pointer; -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (v_object) { -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_RGB_HISTOGRAM)); -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = v_object; -#line 10266 "ColorTransformation.c" - } else { -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 10270 "ColorTransformation.c" - } -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (old) { -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - rgb_histogram_unref (old); -#line 10276 "ColorTransformation.c" - } -} - - -static void -rgb_histogram_class_init (RGBHistogramClass * klass) -{ -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - rgb_histogram_parent_class = g_type_class_peek_parent (klass); -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((RGBHistogramClass *) klass)->finalize = rgb_histogram_finalize; -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_class_add_private (klass, sizeof (RGBHistogramPrivate)); -#line 10290 "ColorTransformation.c" -} - - -static void -rgb_histogram_instance_init (RGBHistogram * self) -{ - gint* _tmp0_; - gint* _tmp1_; - gint* _tmp2_; -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv = RGB_HISTOGRAM_GET_PRIVATE (self); -#line 890 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = g_new0 (gint, 256); -#line 890 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->red_counts = _tmp0_; -#line 890 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->red_counts_length1 = 256; -#line 890 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->_red_counts_size_ = self->priv->red_counts_length1; -#line 891 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = g_new0 (gint, 256); -#line 891 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->green_counts = _tmp1_; -#line 891 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->green_counts_length1 = 256; -#line 891 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->_green_counts_size_ = self->priv->green_counts_length1; -#line 892 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = g_new0 (gint, 256); -#line 892 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->blue_counts = _tmp2_; -#line 892 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->blue_counts_length1 = 256; -#line 892 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->_blue_counts_size_ = self->priv->blue_counts_length1; -#line 893 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_red_counts = NULL; -#line 893 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_red_counts_length1 = 0; -#line 893 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->_qualitative_red_counts_size_ = self->priv->qualitative_red_counts_length1; -#line 894 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_green_counts = NULL; -#line 894 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_green_counts_length1 = 0; -#line 894 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->_qualitative_green_counts_size_ = self->priv->qualitative_green_counts_length1; -#line 895 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_blue_counts = NULL; -#line 895 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_blue_counts_length1 = 0; -#line 895 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->_qualitative_blue_counts_size_ = self->priv->qualitative_blue_counts_length1; -#line 896 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->graphic = NULL; -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->ref_count = 1; -#line 10348 "ColorTransformation.c" -} - - -static void -rgb_histogram_finalize (RGBHistogram * obj) -{ - RGBHistogram * self; -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RGB_HISTOGRAM, RGBHistogram); -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_signal_handlers_destroy (self); -#line 890 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->red_counts = (g_free (self->priv->red_counts), NULL); -#line 891 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->green_counts = (g_free (self->priv->green_counts), NULL); -#line 892 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->blue_counts = (g_free (self->priv->blue_counts), NULL); -#line 893 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_red_counts = (g_free (self->priv->qualitative_red_counts), NULL); -#line 894 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_green_counts = (g_free (self->priv->qualitative_green_counts), NULL); -#line 895 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->qualitative_blue_counts = (g_free (self->priv->qualitative_blue_counts), NULL); -#line 896 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_object_unref0 (self->priv->graphic); -#line 10374 "ColorTransformation.c" -} - - -GType -rgb_histogram_get_type (void) -{ - static volatile gsize rgb_histogram_type_id__volatile = 0; - if (g_once_init_enter (&rgb_histogram_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_rgb_histogram_init, value_rgb_histogram_free_value, value_rgb_histogram_copy_value, value_rgb_histogram_peek_pointer, "p", value_rgb_histogram_collect_value, "p", value_rgb_histogram_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (RGBHistogramClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rgb_histogram_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RGBHistogram), 0, (GInstanceInitFunc) rgb_histogram_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType rgb_histogram_type_id; - rgb_histogram_type_id = g_type_register_fundamental (g_type_fundamental_next (), "RGBHistogram", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&rgb_histogram_type_id__volatile, rgb_histogram_type_id); - } - return rgb_histogram_type_id__volatile; -} - - -gpointer -rgb_histogram_ref (gpointer instance) -{ - RGBHistogram * self; - self = instance; -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_atomic_int_inc (&self->ref_count); -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return instance; -#line 10403 "ColorTransformation.c" -} - - -void -rgb_histogram_unref (gpointer instance) -{ - RGBHistogram * self; - self = instance; -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - RGB_HISTOGRAM_GET_CLASS (self)->finalize (self); -#line 882 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 10418 "ColorTransformation.c" - } -} - - -IntensityHistogram* -intensity_histogram_construct (GType object_type, - GdkPixbuf* pixbuf) -{ - IntensityHistogram* self = NULL; - gint n_channels = 0; - gint rowstride = 0; - gint width = 0; - gint height = 0; - gint rowbytes = 0; - gint _tmp0_; - gint _tmp1_; - guchar* pixels = NULL; - guint8* _tmp2_; - gint pixels_length1; - gint _pixels_size_; - gfloat pixel_count = 0.0F; - gint _tmp32_; - gint _tmp33_; - gint _tmp34_; - gint _tmp35_; - gfloat accumulator = 0.0F; -#line 1144 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (IntensityHistogram*) g_type_create_instance (object_type); -#line 1145 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - n_channels = gdk_pixbuf_get_n_channels (pixbuf); -#line 1146 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - rowstride = gdk_pixbuf_get_rowstride (pixbuf); -#line 1147 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - width = gdk_pixbuf_get_width (pixbuf); -#line 1148 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - height = gdk_pixbuf_get_height (pixbuf); -#line 1149 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = n_channels; -#line 1149 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = width; -#line 1149 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - rowbytes = _tmp0_ * _tmp1_; -#line 1150 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = gdk_pixbuf_get_pixels (pixbuf); -#line 1150 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixels = _tmp2_; -#line 1150 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixels_length1 = -1; -#line 1150 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixels_size_ = pixels_length1; -#line 10469 "ColorTransformation.c" - { - gint j = 0; -#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - j = 0; -#line 10474 "ColorTransformation.c" - { - gboolean _tmp3_ = FALSE; -#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = TRUE; -#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 10481 "ColorTransformation.c" - gint _tmp5_; - gint _tmp6_; - gint row_start_index = 0; - gint _tmp7_; - gint _tmp8_; - gint row_end_index = 0; - gint _tmp9_; - gint _tmp10_; -#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp3_) { -#line 10492 "ColorTransformation.c" - gint _tmp4_; -#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = j; -#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - j = _tmp4_ + 1; -#line 10498 "ColorTransformation.c" - } -#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = FALSE; -#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = j; -#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = height; -#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp5_ < _tmp6_)) { -#line 1151 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 10510 "ColorTransformation.c" - } -#line 1152 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = j; -#line 1152 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = rowstride; -#line 1152 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - row_start_index = _tmp7_ * _tmp8_; -#line 1153 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = row_start_index; -#line 1153 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = rowbytes; -#line 1153 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - row_end_index = _tmp9_ + _tmp10_; -#line 10524 "ColorTransformation.c" - { - gint i = 0; - gint _tmp11_; -#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = row_start_index; -#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp11_; -#line 10532 "ColorTransformation.c" - { - gboolean _tmp12_ = FALSE; -#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = TRUE; -#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 10539 "ColorTransformation.c" - gint _tmp15_; - gint _tmp16_; - RGBAnalyticPixel pix_rgb = {0}; - guchar* _tmp17_; - gint _tmp17__length1; - gint _tmp18_; - guchar _tmp19_; - guchar* _tmp20_; - gint _tmp20__length1; - gint _tmp21_; - guchar _tmp22_; - guchar* _tmp23_; - gint _tmp23__length1; - gint _tmp24_; - guchar _tmp25_; - HSVAnalyticPixel pix_hsi = {0}; - RGBAnalyticPixel _tmp26_; - gint quantized_light_value = 0; - HSVAnalyticPixel _tmp27_; - gfloat _tmp28_; - gint* _tmp29_; - gint _tmp29__length1; - gint _tmp30_; - gint _tmp31_; -#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp12_) { -#line 10566 "ColorTransformation.c" - gint _tmp13_; - gint _tmp14_; -#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = i; -#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = n_channels; -#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp13_ + _tmp14_; -#line 10575 "ColorTransformation.c" - } -#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = FALSE; -#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = i; -#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_ = row_end_index; -#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp15_ < _tmp16_)) { -#line 1154 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 10587 "ColorTransformation.c" - } -#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp17_ = pixels; -#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp17__length1 = pixels_length1; -#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18_ = i; -#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_ = _tmp17_[_tmp18_]; -#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20_ = pixels; -#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20__length1 = pixels_length1; -#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21_ = i; -#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22_ = _tmp20_[_tmp21_ + 1]; -#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp23_ = pixels; -#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp23__length1 = pixels_length1; -#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24_ = i; -#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp25_ = _tmp23_[_tmp24_ + 2]; -#line 1155 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - rgb_analytic_pixel_init_from_quantized_components (&pix_rgb, _tmp19_, _tmp22_, _tmp25_); -#line 1157 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp26_ = pix_rgb; -#line 1157 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - hsv_analytic_pixel_init_from_rgb (&pix_hsi, &_tmp26_); -#line 1158 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp27_ = pix_hsi; -#line 1158 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp28_ = _tmp27_.light_value; -#line 1158 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - quantized_light_value = (gint) (_tmp28_ * 255.0f); -#line 1159 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp29_ = self->priv->counts; -#line 1159 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp29__length1 = self->priv->counts_length1; -#line 1159 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp30_ = quantized_light_value; -#line 1159 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp29_[_tmp30_] += 1; -#line 1159 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp31_ = _tmp29_[_tmp30_]; -#line 10635 "ColorTransformation.c" - } - } - } - } - } - } -#line 1163 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp32_ = gdk_pixbuf_get_width (pixbuf); -#line 1163 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp33_ = _tmp32_; -#line 1163 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp34_ = gdk_pixbuf_get_height (pixbuf); -#line 1163 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp35_ = _tmp34_; -#line 1163 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_count = (gfloat) (_tmp33_ * _tmp35_); -#line 1164 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - accumulator = 0.0f; -#line 10654 "ColorTransformation.c" - { - gint i = 0; -#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = 0; -#line 10659 "ColorTransformation.c" - { - gboolean _tmp36_ = FALSE; -#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp36_ = TRUE; -#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 10666 "ColorTransformation.c" - gint _tmp38_; - gfloat* _tmp39_; - gint _tmp39__length1; - gint _tmp40_; - gint* _tmp41_; - gint _tmp41__length1; - gint _tmp42_; - gint _tmp43_; - gfloat _tmp44_; - gfloat _tmp45_; - gfloat _tmp46_; - gfloat* _tmp47_; - gint _tmp47__length1; - gint _tmp48_; - gfloat _tmp49_; - gfloat* _tmp50_; - gint _tmp50__length1; - gint _tmp51_; - gfloat _tmp52_; - gfloat _tmp53_; -#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp36_) { -#line 10689 "ColorTransformation.c" - gint _tmp37_; -#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp37_ = i; -#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp37_ + 1; -#line 10695 "ColorTransformation.c" - } -#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp36_ = FALSE; -#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp38_ = i; -#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp38_ < 256)) { -#line 1165 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 10705 "ColorTransformation.c" - } -#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp39_ = self->priv->probabilities; -#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp39__length1 = self->priv->probabilities_length1; -#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp40_ = i; -#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp41_ = self->priv->counts; -#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp41__length1 = self->priv->counts_length1; -#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp42_ = i; -#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp43_ = _tmp41_[_tmp42_]; -#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp44_ = pixel_count; -#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp39_[_tmp40_] = ((gfloat) _tmp43_) / _tmp44_; -#line 1166 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp45_ = _tmp39_[_tmp40_]; -#line 1167 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp46_ = accumulator; -#line 1167 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp47_ = self->priv->probabilities; -#line 1167 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp47__length1 = self->priv->probabilities_length1; -#line 1167 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp48_ = i; -#line 1167 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp49_ = _tmp47_[_tmp48_]; -#line 1167 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - accumulator = _tmp46_ + _tmp49_; -#line 1168 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp50_ = self->priv->cumulative_probabilities; -#line 1168 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp50__length1 = self->priv->cumulative_probabilities_length1; -#line 1168 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp51_ = i; -#line 1168 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp52_ = accumulator; -#line 1168 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp50_[_tmp51_] = _tmp52_; -#line 1168 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp53_ = _tmp50_[_tmp51_]; -#line 10751 "ColorTransformation.c" - } - } - } -#line 1144 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 10757 "ColorTransformation.c" -} - - -IntensityHistogram* -intensity_histogram_new (GdkPixbuf* pixbuf) -{ -#line 1144 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return intensity_histogram_construct (TYPE_INTENSITY_HISTOGRAM, pixbuf); -#line 10766 "ColorTransformation.c" -} - - -gfloat -intensity_histogram_get_cumulative_probability (IntensityHistogram* self, - gint level) -{ - gfloat result = 0.0F; - gfloat* _tmp0_; - gint _tmp0__length1; - gfloat _tmp1_; -#line 1174 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - level = CLAMP (level, 0, 255); -#line 1175 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->cumulative_probabilities; -#line 1175 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0__length1 = self->priv->cumulative_probabilities_length1; -#line 1175 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = _tmp0_[level]; -#line 1175 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp1_; -#line 1175 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 10790 "ColorTransformation.c" -} - - -static void -value_intensity_histogram_init (GValue* value) -{ -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 10799 "ColorTransformation.c" -} - - -static void -value_intensity_histogram_free_value (GValue* value) -{ -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (value->data[0].v_pointer) { -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - intensity_histogram_unref (value->data[0].v_pointer); -#line 10810 "ColorTransformation.c" - } -} - - -static void -value_intensity_histogram_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (src_value->data[0].v_pointer) { -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - dest_value->data[0].v_pointer = intensity_histogram_ref (src_value->data[0].v_pointer); -#line 10823 "ColorTransformation.c" - } else { -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - dest_value->data[0].v_pointer = NULL; -#line 10827 "ColorTransformation.c" - } -} - - -static gpointer -value_intensity_histogram_peek_pointer (const GValue* value) -{ -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return value->data[0].v_pointer; -#line 10837 "ColorTransformation.c" -} - - -static gchar* -value_intensity_histogram_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (collect_values[0].v_pointer) { -#line 10849 "ColorTransformation.c" - IntensityHistogram * object; - object = collect_values[0].v_pointer; -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (object->parent_instance.g_class == NULL) { -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 10856 "ColorTransformation.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 10860 "ColorTransformation.c" - } -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = intensity_histogram_ref (object); -#line 10864 "ColorTransformation.c" - } else { -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 10868 "ColorTransformation.c" - } -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return NULL; -#line 10872 "ColorTransformation.c" -} - - -static gchar* -value_intensity_histogram_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - IntensityHistogram ** object_p; - object_p = collect_values[0].v_pointer; -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!object_p) { -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 10888 "ColorTransformation.c" - } -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!value->data[0].v_pointer) { -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = NULL; -#line 10894 "ColorTransformation.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = value->data[0].v_pointer; -#line 10898 "ColorTransformation.c" - } else { -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = intensity_histogram_ref (value->data[0].v_pointer); -#line 10902 "ColorTransformation.c" - } -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return NULL; -#line 10906 "ColorTransformation.c" -} - - -GParamSpec* -param_spec_intensity_histogram (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecIntensityHistogram* spec; -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_INTENSITY_HISTOGRAM), NULL); -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return G_PARAM_SPEC (spec); -#line 10926 "ColorTransformation.c" -} - - -gpointer -value_get_intensity_histogram (const GValue* value) -{ -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_INTENSITY_HISTOGRAM), NULL); -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return value->data[0].v_pointer; -#line 10937 "ColorTransformation.c" -} - - -void -value_set_intensity_histogram (GValue* value, - gpointer v_object) -{ - IntensityHistogram * old; -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_INTENSITY_HISTOGRAM)); -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - old = value->data[0].v_pointer; -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (v_object) { -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_INTENSITY_HISTOGRAM)); -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = v_object; -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - intensity_histogram_ref (value->data[0].v_pointer); -#line 10960 "ColorTransformation.c" - } else { -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 10964 "ColorTransformation.c" - } -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (old) { -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - intensity_histogram_unref (old); -#line 10970 "ColorTransformation.c" - } -} - - -void -value_take_intensity_histogram (GValue* value, - gpointer v_object) -{ - IntensityHistogram * old; -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_INTENSITY_HISTOGRAM)); -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - old = value->data[0].v_pointer; -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (v_object) { -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_INTENSITY_HISTOGRAM)); -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = v_object; -#line 10992 "ColorTransformation.c" - } else { -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 10996 "ColorTransformation.c" - } -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (old) { -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - intensity_histogram_unref (old); -#line 11002 "ColorTransformation.c" - } -} - - -static void -intensity_histogram_class_init (IntensityHistogramClass * klass) -{ -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - intensity_histogram_parent_class = g_type_class_peek_parent (klass); -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((IntensityHistogramClass *) klass)->finalize = intensity_histogram_finalize; -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_class_add_private (klass, sizeof (IntensityHistogramPrivate)); -#line 11016 "ColorTransformation.c" -} - - -static void -intensity_histogram_instance_init (IntensityHistogram * self) -{ - gint* _tmp0_; - gfloat* _tmp1_; - gfloat* _tmp2_; -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv = INTENSITY_HISTOGRAM_GET_PRIVATE (self); -#line 1140 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = g_new0 (gint, 256); -#line 1140 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->counts = _tmp0_; -#line 1140 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->counts_length1 = 256; -#line 1140 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->_counts_size_ = self->priv->counts_length1; -#line 1141 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = g_new0 (gfloat, 256); -#line 1141 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->probabilities = _tmp1_; -#line 1141 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->probabilities_length1 = 256; -#line 1141 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->_probabilities_size_ = self->priv->probabilities_length1; -#line 1142 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = g_new0 (gfloat, 256); -#line 1142 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->cumulative_probabilities = _tmp2_; -#line 1142 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->cumulative_probabilities_length1 = 256; -#line 1142 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->_cumulative_probabilities_size_ = self->priv->cumulative_probabilities_length1; -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->ref_count = 1; -#line 11054 "ColorTransformation.c" -} - - -static void -intensity_histogram_finalize (IntensityHistogram * obj) -{ - IntensityHistogram * self; -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_INTENSITY_HISTOGRAM, IntensityHistogram); -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_signal_handlers_destroy (self); -#line 1140 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->counts = (g_free (self->priv->counts), NULL); -#line 1141 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->probabilities = (g_free (self->priv->probabilities), NULL); -#line 1142 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->cumulative_probabilities = (g_free (self->priv->cumulative_probabilities), NULL); -#line 11072 "ColorTransformation.c" -} - - -GType -intensity_histogram_get_type (void) -{ - static volatile gsize intensity_histogram_type_id__volatile = 0; - if (g_once_init_enter (&intensity_histogram_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_intensity_histogram_init, value_intensity_histogram_free_value, value_intensity_histogram_copy_value, value_intensity_histogram_peek_pointer, "p", value_intensity_histogram_collect_value, "p", value_intensity_histogram_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (IntensityHistogramClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) intensity_histogram_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (IntensityHistogram), 0, (GInstanceInitFunc) intensity_histogram_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType intensity_histogram_type_id; - intensity_histogram_type_id = g_type_register_fundamental (g_type_fundamental_next (), "IntensityHistogram", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&intensity_histogram_type_id__volatile, intensity_histogram_type_id); - } - return intensity_histogram_type_id__volatile; -} - - -gpointer -intensity_histogram_ref (gpointer instance) -{ - IntensityHistogram * self; - self = instance; -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_atomic_int_inc (&self->ref_count); -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return instance; -#line 11101 "ColorTransformation.c" -} - - -void -intensity_histogram_unref (gpointer instance) -{ - IntensityHistogram * self; - self = instance; -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - INTENSITY_HISTOGRAM_GET_CLASS (self)->finalize (self); -#line 1139 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 11116 "ColorTransformation.c" - } -} - - -ExpansionTransformation* -expansion_transformation_construct (GType object_type, - IntensityHistogram* histogram) -{ - ExpansionTransformation* self = NULL; - gfloat LOW_KINK_MASS = 0.0F; - gfloat HIGH_KINK_MASS = 0.0F; -#line 1187 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (ExpansionTransformation*) hsv_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION); -#line 1189 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - LOW_KINK_MASS = EXPANSION_TRANSFORMATION_LOW_DISCARD_MASS; -#line 1190 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->low_kink = 0; -#line 1191 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 11136 "ColorTransformation.c" - gint _tmp0_; - gfloat _tmp1_; - gint _tmp2_; -#line 1191 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->low_kink; -#line 1191 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = LOW_KINK_MASS; -#line 1191 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(intensity_histogram_get_cumulative_probability (histogram, _tmp0_) < _tmp1_)) { -#line 1191 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 11148 "ColorTransformation.c" - } -#line 1192 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = self->priv->low_kink; -#line 1192 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->low_kink = _tmp2_ + 1; -#line 11154 "ColorTransformation.c" - } -#line 1194 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - HIGH_KINK_MASS = 1.0f - EXPANSION_TRANSFORMATION_HIGH_DISCARD_MASS; -#line 1195 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->high_kink = 255; -#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 11162 "ColorTransformation.c" - gboolean _tmp3_ = FALSE; - gint _tmp4_; - gfloat _tmp5_; - gint _tmp7_; -#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = self->priv->high_kink; -#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = HIGH_KINK_MASS; -#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (intensity_histogram_get_cumulative_probability (histogram, _tmp4_) > _tmp5_) { -#line 11173 "ColorTransformation.c" - gint _tmp6_; -#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = self->priv->high_kink; -#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = _tmp6_ > 0; -#line 11179 "ColorTransformation.c" - } else { -#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = FALSE; -#line 11183 "ColorTransformation.c" - } -#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp3_) { -#line 1196 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 11189 "ColorTransformation.c" - } -#line 1197 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = self->priv->high_kink; -#line 1197 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->high_kink = _tmp7_ - 1; -#line 11195 "ColorTransformation.c" - } -#line 1199 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - expansion_transformation_build_remap_table (self); -#line 1186 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 11201 "ColorTransformation.c" -} - - -ExpansionTransformation* -expansion_transformation_new (IntensityHistogram* histogram) -{ -#line 1186 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return expansion_transformation_construct (TYPE_EXPANSION_TRANSFORMATION, histogram); -#line 11210 "ColorTransformation.c" -} - - -ExpansionTransformation* -expansion_transformation_construct_from_extrema (GType object_type, - gint black_point, - gint white_point) -{ - ExpansionTransformation* self = NULL; -#line 1203 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (ExpansionTransformation*) hsv_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION); -#line 1205 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - white_point = CLAMP (white_point, 0, 255); -#line 1206 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - black_point = CLAMP (black_point, 0, 255); -#line 1208 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (black_point == white_point) { -#line 1209 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (black_point == 0) { -#line 1210 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - white_point = 1; -#line 11232 "ColorTransformation.c" - } else { -#line 1211 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (white_point == 255) { -#line 1212 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - black_point = 254; -#line 11238 "ColorTransformation.c" - } else { -#line 1214 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - black_point = white_point - 1; -#line 11242 "ColorTransformation.c" - } - } - } -#line 1217 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->low_kink = black_point; -#line 1218 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->high_kink = white_point; -#line 1220 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - expansion_transformation_build_remap_table (self); -#line 1202 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 11254 "ColorTransformation.c" -} - - -ExpansionTransformation* -expansion_transformation_new_from_extrema (gint black_point, - gint white_point) -{ -#line 1202 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return expansion_transformation_construct_from_extrema (TYPE_EXPANSION_TRANSFORMATION, black_point, white_point); -#line 11264 "ColorTransformation.c" -} - - -static gchar* -string_chug (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1241 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1241 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1242 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1242 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strchug (_tmp1_); -#line 1243 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1243 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 11287 "ColorTransformation.c" -} - - -static gchar* -string_chomp (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1233 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1233 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1234 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1234 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strchomp (_tmp1_); -#line 1235 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1235 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 11310 "ColorTransformation.c" -} - - -ExpansionTransformation* -expansion_transformation_construct_from_string (GType object_type, - const gchar* encoded_transformation) -{ - ExpansionTransformation* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gint num_captured = 0; -#line 1224 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (ExpansionTransformation*) hsv_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION); -#line 1226 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_strcanon (encoded_transformation, "0123456789. ", ' '); -#line 1227 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = string_chug (encoded_transformation); -#line 1227 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = _tmp0_; -#line 1227 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_free0 (_tmp1_); -#line 1228 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = string_chomp (encoded_transformation); -#line 1228 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = _tmp2_; -#line 1228 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _g_free0 (_tmp3_); -#line 1230 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - num_captured = sscanf (encoded_transformation, "%d %d", &self->priv->low_kink, &self->priv->high_kink); -#line 1233 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _vala_assert (num_captured == 2, "num_captured == 2"); -#line 1235 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - expansion_transformation_build_remap_table (self); -#line 1223 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 11348 "ColorTransformation.c" -} - - -ExpansionTransformation* -expansion_transformation_new_from_string (const gchar* encoded_transformation) -{ -#line 1223 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return expansion_transformation_construct_from_string (TYPE_EXPANSION_TRANSFORMATION, encoded_transformation); -#line 11357 "ColorTransformation.c" -} - - -static void -expansion_transformation_build_remap_table (ExpansionTransformation* self) -{ - gfloat low_kink_f = 0.0F; - gint _tmp0_; - gfloat high_kink_f = 0.0F; - gint _tmp1_; - gfloat slope = 0.0F; - gfloat _tmp2_; - gfloat _tmp3_; - gfloat intercept = 0.0F; - gfloat _tmp4_; - gfloat _tmp5_; - gfloat _tmp6_; - gint i = 0; -#line 1239 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->low_kink; -#line 1239 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - low_kink_f = ((gfloat) _tmp0_) / 255.0f; -#line 1240 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = self->priv->high_kink; -#line 1240 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - high_kink_f = ((gfloat) _tmp1_) / 255.0f; -#line 1242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = high_kink_f; -#line 1242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = low_kink_f; -#line 1242 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - slope = 1.0f / (_tmp2_ - _tmp3_); -#line 1243 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = low_kink_f; -#line 1243 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = high_kink_f; -#line 1243 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = low_kink_f; -#line 1243 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - intercept = -(_tmp4_ / (_tmp5_ - _tmp6_)); -#line 1245 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = 0; -#line 11400 "ColorTransformation.c" - { - gboolean _tmp7_ = FALSE; -#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = TRUE; -#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 11407 "ColorTransformation.c" - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; - gfloat _tmp12_; -#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp7_) { -#line 11414 "ColorTransformation.c" - gint _tmp8_; -#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = i; -#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp8_ + 1; -#line 11420 "ColorTransformation.c" - } -#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = FALSE; -#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = i; -#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = self->priv->low_kink; -#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp9_ <= _tmp10_)) { -#line 1246 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 11432 "ColorTransformation.c" - } -#line 1247 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = i; -#line 1247 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp11_] = 0.0f; -#line 1247 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp11_]; -#line 11440 "ColorTransformation.c" - } - } - { - gboolean _tmp13_ = FALSE; -#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = TRUE; -#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 11449 "ColorTransformation.c" - gint _tmp15_; - gint _tmp16_; - gint _tmp17_; - gfloat _tmp18_; - gint _tmp19_; - gfloat _tmp20_; - gfloat _tmp21_; -#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp13_) { -#line 11459 "ColorTransformation.c" - gint _tmp14_; -#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = i; -#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp14_ + 1; -#line 11465 "ColorTransformation.c" - } -#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = FALSE; -#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = i; -#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_ = self->priv->high_kink; -#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp15_ < _tmp16_)) { -#line 1249 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 11477 "ColorTransformation.c" - } -#line 1250 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp17_ = i; -#line 1250 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18_ = slope; -#line 1250 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_ = i; -#line 1250 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20_ = intercept; -#line 1250 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp17_] = (_tmp18_ * (((gfloat) _tmp19_) / 255.0f)) + _tmp20_; -#line 1250 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp17_]; -#line 11491 "ColorTransformation.c" - } - } - { - gboolean _tmp22_ = FALSE; -#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22_ = TRUE; -#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 11500 "ColorTransformation.c" - gint _tmp24_; - gint _tmp25_; - gfloat _tmp26_; -#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp22_) { -#line 11506 "ColorTransformation.c" - gint _tmp23_; -#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp23_ = i; -#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp23_ + 1; -#line 11512 "ColorTransformation.c" - } -#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22_ = FALSE; -#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24_ = i; -#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp24_ < 256)) { -#line 1252 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 11522 "ColorTransformation.c" - } -#line 1253 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp25_ = i; -#line 1253 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp25_] = 1.0f; -#line 1253 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp26_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp25_]; -#line 11530 "ColorTransformation.c" - } - } -} - - -static gchar* -expansion_transformation_real_to_string (PixelTransformation* base) -{ - ExpansionTransformation * self; - gchar* result = NULL; - gint _tmp0_; - gint _tmp1_; - gchar* _tmp2_; -#line 1256 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation); -#line 1257 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->low_kink; -#line 1257 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = self->priv->high_kink; -#line 1257 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = g_strdup_printf ("{ %d, %d }", _tmp0_, _tmp1_); -#line 1257 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp2_; -#line 1257 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 11556 "ColorTransformation.c" -} - - -gint -expansion_transformation_get_white_point (ExpansionTransformation* self) -{ - gint result = 0; - gint _tmp0_; -#line 1261 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->high_kink; -#line 1261 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_; -#line 1261 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 11571 "ColorTransformation.c" -} - - -gint -expansion_transformation_get_black_point (ExpansionTransformation* self) -{ - gint result = 0; - gint _tmp0_; -#line 1265 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->low_kink; -#line 1265 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_; -#line 1265 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 11586 "ColorTransformation.c" -} - - -static gboolean -expansion_transformation_real_is_identity (PixelTransformation* base) -{ - ExpansionTransformation * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 1268 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation); -#line 1269 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = self->priv->low_kink; -#line 1269 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp1_ == 0) { -#line 11603 "ColorTransformation.c" - gint _tmp2_; -#line 1269 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = self->priv->high_kink; -#line 1269 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = _tmp2_ == 255; -#line 11609 "ColorTransformation.c" - } else { -#line 1269 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = FALSE; -#line 11613 "ColorTransformation.c" - } -#line 1269 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_; -#line 1269 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 11619 "ColorTransformation.c" -} - - -static PixelTransformation* -expansion_transformation_real_copy (PixelTransformation* base) -{ - ExpansionTransformation * self; - PixelTransformation* result = NULL; - gint _tmp0_; - gint _tmp1_; - ExpansionTransformation* _tmp2_; -#line 1272 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation); -#line 1273 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->low_kink; -#line 1273 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = self->priv->high_kink; -#line 1273 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = expansion_transformation_new_from_extrema (_tmp0_, _tmp1_); -#line 1273 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation); -#line 1273 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 11643 "ColorTransformation.c" -} - - -static void -expansion_transformation_class_init (ExpansionTransformationClass * klass) -{ -#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - expansion_transformation_parent_class = g_type_class_peek_parent (klass); -#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->finalize = expansion_transformation_finalize; -#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_class_add_private (klass, sizeof (ExpansionTransformationPrivate)); -#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->to_string = (gchar* (*) (PixelTransformation *)) expansion_transformation_real_to_string; -#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->is_identity = (gboolean (*) (PixelTransformation *)) expansion_transformation_real_is_identity; -#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->copy = (PixelTransformation* (*) (PixelTransformation *)) expansion_transformation_real_copy; -#line 11662 "ColorTransformation.c" -} - - -static void -expansion_transformation_instance_init (ExpansionTransformation * self) -{ -#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv = EXPANSION_TRANSFORMATION_GET_PRIVATE (self); -#line 11671 "ColorTransformation.c" -} - - -static void -expansion_transformation_finalize (PixelTransformation * obj) -{ - ExpansionTransformation * self; -#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation); -#line 1179 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - PIXEL_TRANSFORMATION_CLASS (expansion_transformation_parent_class)->finalize (obj); -#line 11683 "ColorTransformation.c" -} - - -GType -expansion_transformation_get_type (void) -{ - static volatile gsize expansion_transformation_type_id__volatile = 0; - if (g_once_init_enter (&expansion_transformation_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ExpansionTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) expansion_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ExpansionTransformation), 0, (GInstanceInitFunc) expansion_transformation_instance_init, NULL }; - GType expansion_transformation_type_id; - expansion_transformation_type_id = g_type_register_static (TYPE_HSV_TRANSFORMATION, "ExpansionTransformation", &g_define_type_info, 0); - g_once_init_leave (&expansion_transformation_type_id__volatile, expansion_transformation_type_id); - } - return expansion_transformation_type_id__volatile; -} - - -ShadowDetailTransformation* -shadow_detail_transformation_construct (GType object_type, - gfloat user_intensity) -{ - ShadowDetailTransformation* self = NULL; - gfloat intensity_adj = 0.0F; - gfloat _tmp0_; - gfloat effect_shift = 0.0F; - gfloat _tmp1_; - HermiteGammaApproximationFunction* func = NULL; - HermiteGammaApproximationFunction* _tmp2_; -#line 1289 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (ShadowDetailTransformation*) hsv_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_SHADOWS); -#line 1291 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->intensity = user_intensity; -#line 1292 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->intensity; -#line 1292 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - intensity_adj = CLAMP (_tmp0_ / SHADOW_DETAIL_TRANSFORMATION_MAX_PARAMETER, 0.0f, 1.0f); -#line 1294 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = intensity_adj; -#line 1294 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - effect_shift = SHADOW_DETAIL_TRANSFORMATION_MAX_EFFECT_SHIFT * _tmp1_; -#line 1295 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = hermite_gamma_approximation_function_new (SHADOW_DETAIL_TRANSFORMATION_TONAL_WIDTH); -#line 1295 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - func = _tmp2_; -#line 11728 "ColorTransformation.c" - { - gint i = 0; -#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = 0; -#line 11733 "ColorTransformation.c" - { - gboolean _tmp3_ = FALSE; -#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = TRUE; -#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 11740 "ColorTransformation.c" - gint _tmp5_; - gfloat x = 0.0F; - gint _tmp6_; - gfloat weight = 0.0F; - HermiteGammaApproximationFunction* _tmp7_; - gfloat _tmp8_; - gint _tmp9_; - gfloat _tmp10_; - gfloat _tmp11_; - gfloat _tmp12_; - gfloat _tmp13_; - gfloat _tmp14_; - gfloat _tmp15_; -#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp3_) { -#line 11756 "ColorTransformation.c" - gint _tmp4_; -#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = i; -#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp4_ + 1; -#line 11762 "ColorTransformation.c" - } -#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = FALSE; -#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = i; -#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp5_ < 256)) { -#line 1298 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 11772 "ColorTransformation.c" - } -#line 1299 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = i; -#line 1299 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - x = ((gfloat) _tmp6_) / 255.0f; -#line 1300 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = func; -#line 1300 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = x; -#line 1300 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - weight = hermite_gamma_approximation_function_evaluate (_tmp7_, _tmp8_); -#line 1301 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = i; -#line 1301 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = weight; -#line 1301 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = x; -#line 1301 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = effect_shift; -#line 1301 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = weight; -#line 1301 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = x; -#line 1301 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp9_] = (_tmp10_ * (_tmp11_ + _tmp12_)) + ((1.0f - _tmp13_) * _tmp14_); -#line 1301 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp9_]; -#line 11800 "ColorTransformation.c" - } - } - } -#line 1288 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _hermite_gamma_approximation_function_unref0 (func); -#line 1288 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 11808 "ColorTransformation.c" -} - - -ShadowDetailTransformation* -shadow_detail_transformation_new (gfloat user_intensity) -{ -#line 1288 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return shadow_detail_transformation_construct (TYPE_SHADOW_DETAIL_TRANSFORMATION, user_intensity); -#line 11817 "ColorTransformation.c" -} - - -static PixelTransformation* -shadow_detail_transformation_real_copy (PixelTransformation* base) -{ - ShadowDetailTransformation * self; - PixelTransformation* result = NULL; - gfloat _tmp0_; - ShadowDetailTransformation* _tmp1_; -#line 1305 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformation); -#line 1306 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->intensity; -#line 1306 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = shadow_detail_transformation_new (_tmp0_); -#line 1306 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation); -#line 1306 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 11838 "ColorTransformation.c" -} - - -static gboolean -shadow_detail_transformation_real_is_identity (PixelTransformation* base) -{ - ShadowDetailTransformation * self; - gboolean result = FALSE; - gfloat _tmp0_; -#line 1309 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformation); -#line 1310 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->intensity; -#line 1310 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_ == 0.0f; -#line 1310 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 11856 "ColorTransformation.c" -} - - -gfloat -shadow_detail_transformation_get_parameter (ShadowDetailTransformation* self) -{ - gfloat result = 0.0F; - gfloat _tmp0_; -#line 1314 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->intensity; -#line 1314 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_; -#line 1314 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 11871 "ColorTransformation.c" -} - - -static void -shadow_detail_transformation_class_init (ShadowDetailTransformationClass * klass) -{ -#line 1277 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - shadow_detail_transformation_parent_class = g_type_class_peek_parent (klass); -#line 1277 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->finalize = shadow_detail_transformation_finalize; -#line 1277 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_class_add_private (klass, sizeof (ShadowDetailTransformationPrivate)); -#line 1277 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->copy = (PixelTransformation* (*) (PixelTransformation *)) shadow_detail_transformation_real_copy; -#line 1277 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->is_identity = (gboolean (*) (PixelTransformation *)) shadow_detail_transformation_real_is_identity; -#line 11888 "ColorTransformation.c" -} - - -static void -shadow_detail_transformation_instance_init (ShadowDetailTransformation * self) -{ -#line 1277 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv = SHADOW_DETAIL_TRANSFORMATION_GET_PRIVATE (self); -#line 1283 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->intensity = 0.0f; -#line 11899 "ColorTransformation.c" -} - - -static void -shadow_detail_transformation_finalize (PixelTransformation * obj) -{ - ShadowDetailTransformation * self; -#line 1277 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformation); -#line 1277 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - PIXEL_TRANSFORMATION_CLASS (shadow_detail_transformation_parent_class)->finalize (obj); -#line 11911 "ColorTransformation.c" -} - - -GType -shadow_detail_transformation_get_type (void) -{ - static volatile gsize shadow_detail_transformation_type_id__volatile = 0; - if (g_once_init_enter (&shadow_detail_transformation_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ShadowDetailTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shadow_detail_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShadowDetailTransformation), 0, (GInstanceInitFunc) shadow_detail_transformation_instance_init, NULL }; - GType shadow_detail_transformation_type_id; - shadow_detail_transformation_type_id = g_type_register_static (TYPE_HSV_TRANSFORMATION, "ShadowDetailTransformation", &g_define_type_info, 0); - g_once_init_leave (&shadow_detail_transformation_type_id__volatile, shadow_detail_transformation_type_id); - } - return shadow_detail_transformation_type_id__volatile; -} - - -HermiteGammaApproximationFunction* -hermite_gamma_approximation_function_construct (GType object_type, - gfloat user_interval_upper) -{ - HermiteGammaApproximationFunction* self = NULL; - gfloat _tmp0_; -#line 1322 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (HermiteGammaApproximationFunction*) g_type_create_instance (object_type); -#line 1323 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->nonzero_interval_upper = CLAMP (user_interval_upper, 0.1f, 1.0f); -#line 1324 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->nonzero_interval_upper; -#line 1324 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->x_scale = 1.0f / _tmp0_; -#line 1322 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 11945 "ColorTransformation.c" -} - - -HermiteGammaApproximationFunction* -hermite_gamma_approximation_function_new (gfloat user_interval_upper) -{ -#line 1322 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return hermite_gamma_approximation_function_construct (TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, user_interval_upper); -#line 11954 "ColorTransformation.c" -} - - -gfloat -hermite_gamma_approximation_function_evaluate (HermiteGammaApproximationFunction* self, - gfloat x) -{ - gfloat result = 0.0F; -#line 1328 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (x < 0.0f) { -#line 1329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = 0.0f; -#line 1329 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 11969 "ColorTransformation.c" - } else { - gfloat _tmp0_; -#line 1330 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->nonzero_interval_upper; -#line 1330 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (x > _tmp0_) { -#line 1331 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = 0.0f; -#line 1331 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 11980 "ColorTransformation.c" - } else { - gfloat indep_var = 0.0F; - gfloat _tmp1_; - gfloat dep_var = 0.0F; - gfloat _tmp2_; - gfloat _tmp3_; - gfloat _tmp4_; - gfloat _tmp5_; - gfloat _tmp6_; - gfloat _tmp7_; - gfloat _tmp8_; -#line 1333 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = self->priv->x_scale; -#line 1333 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - indep_var = _tmp1_ * x; -#line 1335 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = indep_var; -#line 1335 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = indep_var; -#line 1335 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = indep_var; -#line 1335 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = indep_var; -#line 1335 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = indep_var; -#line 1335 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = indep_var; -#line 1335 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - dep_var = 6.0f * ((((_tmp2_ * _tmp3_) * _tmp4_) - (2.0f * (_tmp5_ * _tmp6_))) + _tmp7_); -#line 1338 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = dep_var; -#line 1338 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = CLAMP (_tmp8_, 0.0f, 1.0f); -#line 1338 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 12016 "ColorTransformation.c" - } - } -} - - -static void -value_hermite_gamma_approximation_function_init (GValue* value) -{ -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 12027 "ColorTransformation.c" -} - - -static void -value_hermite_gamma_approximation_function_free_value (GValue* value) -{ -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (value->data[0].v_pointer) { -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - hermite_gamma_approximation_function_unref (value->data[0].v_pointer); -#line 12038 "ColorTransformation.c" - } -} - - -static void -value_hermite_gamma_approximation_function_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (src_value->data[0].v_pointer) { -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - dest_value->data[0].v_pointer = hermite_gamma_approximation_function_ref (src_value->data[0].v_pointer); -#line 12051 "ColorTransformation.c" - } else { -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - dest_value->data[0].v_pointer = NULL; -#line 12055 "ColorTransformation.c" - } -} - - -static gpointer -value_hermite_gamma_approximation_function_peek_pointer (const GValue* value) -{ -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return value->data[0].v_pointer; -#line 12065 "ColorTransformation.c" -} - - -static gchar* -value_hermite_gamma_approximation_function_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (collect_values[0].v_pointer) { -#line 12077 "ColorTransformation.c" - HermiteGammaApproximationFunction * object; - object = collect_values[0].v_pointer; -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (object->parent_instance.g_class == NULL) { -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 12084 "ColorTransformation.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 12088 "ColorTransformation.c" - } -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = hermite_gamma_approximation_function_ref (object); -#line 12092 "ColorTransformation.c" - } else { -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 12096 "ColorTransformation.c" - } -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return NULL; -#line 12100 "ColorTransformation.c" -} - - -static gchar* -value_hermite_gamma_approximation_function_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - HermiteGammaApproximationFunction ** object_p; - object_p = collect_values[0].v_pointer; -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!object_p) { -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 12116 "ColorTransformation.c" - } -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!value->data[0].v_pointer) { -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = NULL; -#line 12122 "ColorTransformation.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = value->data[0].v_pointer; -#line 12126 "ColorTransformation.c" - } else { -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - *object_p = hermite_gamma_approximation_function_ref (value->data[0].v_pointer); -#line 12130 "ColorTransformation.c" - } -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return NULL; -#line 12134 "ColorTransformation.c" -} - - -GParamSpec* -param_spec_hermite_gamma_approximation_function (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecHermiteGammaApproximationFunction* spec; -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION), NULL); -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return G_PARAM_SPEC (spec); -#line 12154 "ColorTransformation.c" -} - - -gpointer -value_get_hermite_gamma_approximation_function (const GValue* value) -{ -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION), NULL); -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return value->data[0].v_pointer; -#line 12165 "ColorTransformation.c" -} - - -void -value_set_hermite_gamma_approximation_function (GValue* value, - gpointer v_object) -{ - HermiteGammaApproximationFunction * old; -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION)); -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - old = value->data[0].v_pointer; -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (v_object) { -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION)); -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = v_object; -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - hermite_gamma_approximation_function_ref (value->data[0].v_pointer); -#line 12188 "ColorTransformation.c" - } else { -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 12192 "ColorTransformation.c" - } -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (old) { -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - hermite_gamma_approximation_function_unref (old); -#line 12198 "ColorTransformation.c" - } -} - - -void -value_take_hermite_gamma_approximation_function (GValue* value, - gpointer v_object) -{ - HermiteGammaApproximationFunction * old; -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION)); -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - old = value->data[0].v_pointer; -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (v_object) { -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION)); -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = v_object; -#line 12220 "ColorTransformation.c" - } else { -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - value->data[0].v_pointer = NULL; -#line 12224 "ColorTransformation.c" - } -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (old) { -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - hermite_gamma_approximation_function_unref (old); -#line 12230 "ColorTransformation.c" - } -} - - -static void -hermite_gamma_approximation_function_class_init (HermiteGammaApproximationFunctionClass * klass) -{ -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - hermite_gamma_approximation_function_parent_class = g_type_class_peek_parent (klass); -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((HermiteGammaApproximationFunctionClass *) klass)->finalize = hermite_gamma_approximation_function_finalize; -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_class_add_private (klass, sizeof (HermiteGammaApproximationFunctionPrivate)); -#line 12244 "ColorTransformation.c" -} - - -static void -hermite_gamma_approximation_function_instance_init (HermiteGammaApproximationFunction * self) -{ -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv = HERMITE_GAMMA_APPROXIMATION_FUNCTION_GET_PRIVATE (self); -#line 1319 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->x_scale = 1.0f; -#line 1320 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->nonzero_interval_upper = 1.0f; -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->ref_count = 1; -#line 12259 "ColorTransformation.c" -} - - -static void -hermite_gamma_approximation_function_finalize (HermiteGammaApproximationFunction * obj) -{ - HermiteGammaApproximationFunction * self; -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, HermiteGammaApproximationFunction); -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_signal_handlers_destroy (self); -#line 12271 "ColorTransformation.c" -} - - -GType -hermite_gamma_approximation_function_get_type (void) -{ - static volatile gsize hermite_gamma_approximation_function_type_id__volatile = 0; - if (g_once_init_enter (&hermite_gamma_approximation_function_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_hermite_gamma_approximation_function_init, value_hermite_gamma_approximation_function_free_value, value_hermite_gamma_approximation_function_copy_value, value_hermite_gamma_approximation_function_peek_pointer, "p", value_hermite_gamma_approximation_function_collect_value, "p", value_hermite_gamma_approximation_function_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (HermiteGammaApproximationFunctionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) hermite_gamma_approximation_function_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HermiteGammaApproximationFunction), 0, (GInstanceInitFunc) hermite_gamma_approximation_function_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType hermite_gamma_approximation_function_type_id; - hermite_gamma_approximation_function_type_id = g_type_register_fundamental (g_type_fundamental_next (), "HermiteGammaApproximationFunction", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&hermite_gamma_approximation_function_type_id__volatile, hermite_gamma_approximation_function_type_id); - } - return hermite_gamma_approximation_function_type_id__volatile; -} - - -gpointer -hermite_gamma_approximation_function_ref (gpointer instance) -{ - HermiteGammaApproximationFunction * self; - self = instance; -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_atomic_int_inc (&self->ref_count); -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return instance; -#line 12300 "ColorTransformation.c" -} - - -void -hermite_gamma_approximation_function_unref (gpointer instance) -{ - HermiteGammaApproximationFunction * self; - self = instance; -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - HERMITE_GAMMA_APPROXIMATION_FUNCTION_GET_CLASS (self)->finalize (self); -#line 1318 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 12315 "ColorTransformation.c" - } -} - - -HighlightDetailTransformation* -highlight_detail_transformation_construct (GType object_type, - gfloat user_intensity) -{ - HighlightDetailTransformation* self = NULL; - gfloat intensity_adj = 0.0F; - gfloat _tmp0_; - gfloat effect_shift = 0.0F; - gfloat _tmp1_; - HermiteGammaApproximationFunction* func = NULL; - HermiteGammaApproximationFunction* _tmp2_; -#line 1355 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = (HighlightDetailTransformation*) hsv_transformation_construct (object_type, PIXEL_TRANSFORMATION_TYPE_HIGHLIGHTS); -#line 1357 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->intensity = user_intensity; -#line 1358 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->intensity; -#line 1358 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - intensity_adj = CLAMP (_tmp0_ / HIGHLIGHT_DETAIL_TRANSFORMATION_MIN_PARAMETER, 0.0f, 1.0f); -#line 1360 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = intensity_adj; -#line 1360 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - effect_shift = HIGHLIGHT_DETAIL_TRANSFORMATION_MAX_EFFECT_SHIFT * _tmp1_; -#line 1361 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = hermite_gamma_approximation_function_new (HIGHLIGHT_DETAIL_TRANSFORMATION_TONAL_WIDTH); -#line 1361 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - func = _tmp2_; -#line 12347 "ColorTransformation.c" - { - gint i = 0; -#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = 0; -#line 12352 "ColorTransformation.c" - { - gboolean _tmp3_ = FALSE; -#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = TRUE; -#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 12359 "ColorTransformation.c" - gint _tmp5_; - gfloat x = 0.0F; - gint _tmp6_; - gfloat weight = 0.0F; - HermiteGammaApproximationFunction* _tmp7_; - gfloat _tmp8_; - gint _tmp9_; - gfloat _tmp10_; - gfloat _tmp11_; - gfloat _tmp12_; - gfloat _tmp13_; - gfloat _tmp14_; - gfloat _tmp15_; -#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp3_) { -#line 12375 "ColorTransformation.c" - gint _tmp4_; -#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = i; -#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - i = _tmp4_ + 1; -#line 12381 "ColorTransformation.c" - } -#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = FALSE; -#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = i; -#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp5_ < 256)) { -#line 1364 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 12391 "ColorTransformation.c" - } -#line 1365 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = i; -#line 1365 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - x = ((gfloat) _tmp6_) / 255.0f; -#line 1366 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = func; -#line 1366 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = x; -#line 1366 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - weight = hermite_gamma_approximation_function_evaluate (_tmp7_, 1.0f - _tmp8_); -#line 1367 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = i; -#line 1367 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = weight; -#line 1367 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = x; -#line 1367 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = effect_shift; -#line 1367 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = weight; -#line 1367 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = x; -#line 1367 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp9_] = (_tmp10_ * (_tmp11_ - _tmp12_)) + ((1.0f - _tmp13_) * _tmp14_); -#line 1367 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_HSV_TRANSFORMATION, HSVTransformation)->remap_table[_tmp9_]; -#line 12419 "ColorTransformation.c" - } - } - } -#line 1354 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _hermite_gamma_approximation_function_unref0 (func); -#line 1354 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return self; -#line 12427 "ColorTransformation.c" -} - - -HighlightDetailTransformation* -highlight_detail_transformation_new (gfloat user_intensity) -{ -#line 1354 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return highlight_detail_transformation_construct (TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, user_intensity); -#line 12436 "ColorTransformation.c" -} - - -static PixelTransformation* -highlight_detail_transformation_real_copy (PixelTransformation* base) -{ - HighlightDetailTransformation * self; - PixelTransformation* result = NULL; - gfloat _tmp0_; - HighlightDetailTransformation* _tmp1_; -#line 1371 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformation); -#line 1372 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->intensity; -#line 1372 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = highlight_detail_transformation_new (_tmp0_); -#line 1372 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation); -#line 1372 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 12457 "ColorTransformation.c" -} - - -static gboolean -highlight_detail_transformation_real_is_identity (PixelTransformation* base) -{ - HighlightDetailTransformation * self; - gboolean result = FALSE; - gfloat _tmp0_; -#line 1375 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformation); -#line 1376 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->intensity; -#line 1376 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_ == 0.0f; -#line 1376 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 12475 "ColorTransformation.c" -} - - -gfloat -highlight_detail_transformation_get_parameter (HighlightDetailTransformation* self) -{ - gfloat result = 0.0F; - gfloat _tmp0_; -#line 1380 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = self->priv->intensity; -#line 1380 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = _tmp0_; -#line 1380 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 12490 "ColorTransformation.c" -} - - -static void -highlight_detail_transformation_class_init (HighlightDetailTransformationClass * klass) -{ -#line 1343 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - highlight_detail_transformation_parent_class = g_type_class_peek_parent (klass); -#line 1343 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->finalize = highlight_detail_transformation_finalize; -#line 1343 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - g_type_class_add_private (klass, sizeof (HighlightDetailTransformationPrivate)); -#line 1343 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->copy = (PixelTransformation* (*) (PixelTransformation *)) highlight_detail_transformation_real_copy; -#line 1343 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - ((PixelTransformationClass *) klass)->is_identity = (gboolean (*) (PixelTransformation *)) highlight_detail_transformation_real_is_identity; -#line 12507 "ColorTransformation.c" -} - - -static void -highlight_detail_transformation_instance_init (HighlightDetailTransformation * self) -{ -#line 1343 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv = HIGHLIGHT_DETAIL_TRANSFORMATION_GET_PRIVATE (self); -#line 1349 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self->priv->intensity = 0.0f; -#line 12518 "ColorTransformation.c" -} - - -static void -highlight_detail_transformation_finalize (PixelTransformation * obj) -{ - HighlightDetailTransformation * self; -#line 1343 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformation); -#line 1343 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - PIXEL_TRANSFORMATION_CLASS (highlight_detail_transformation_parent_class)->finalize (obj); -#line 12530 "ColorTransformation.c" -} - - -GType -highlight_detail_transformation_get_type (void) -{ - static volatile gsize highlight_detail_transformation_type_id__volatile = 0; - if (g_once_init_enter (&highlight_detail_transformation_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (HighlightDetailTransformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) highlight_detail_transformation_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HighlightDetailTransformation), 0, (GInstanceInitFunc) highlight_detail_transformation_instance_init, NULL }; - GType highlight_detail_transformation_type_id; - highlight_detail_transformation_type_id = g_type_register_static (TYPE_HSV_TRANSFORMATION, "HighlightDetailTransformation", &g_define_type_info, 0); - g_once_init_leave (&highlight_detail_transformation_type_id__volatile, highlight_detail_transformation_type_id); - } - return highlight_detail_transformation_type_id__volatile; -} - - -PixelTransformationBundle* -auto_enhance_create_auto_enhance_adjustments (GdkPixbuf* pixbuf) -{ - PixelTransformationBundle* result = NULL; - PixelTransformationBundle* adjustments = NULL; - PixelTransformationBundle* _tmp0_; - IntensityHistogram* analysis_histogram = NULL; - IntensityHistogram* _tmp1_; - gfloat pct_in_range = 0.0F; - IntensityHistogram* _tmp2_; - IntensityHistogram* _tmp3_; - gfloat shadow_range_mean_prob_val = 0.0F; - IntensityHistogram* _tmp4_; - IntensityHistogram* _tmp5_; - gint shadow_mean_intensity = 0; - gboolean _tmp12_ = FALSE; - gfloat _tmp13_; - PixelTransformationBundle* _tmp39_; - HighlightDetailTransformation* _tmp40_; - HighlightDetailTransformation* _tmp41_; - PixelTransformationBundle* _tmp42_; - TemperatureTransformation* _tmp43_; - TemperatureTransformation* _tmp44_; - PixelTransformationBundle* _tmp45_; - TintTransformation* _tmp46_; - TintTransformation* _tmp47_; - PixelTransformationBundle* _tmp48_; - ExposureTransformation* _tmp49_; - ExposureTransformation* _tmp50_; - PixelTransformationBundle* _tmp51_; - ContrastTransformation* _tmp52_; - ContrastTransformation* _tmp53_; - PixelTransformationBundle* _tmp54_; - SaturationTransformation* _tmp55_; - SaturationTransformation* _tmp56_; -#line 1394 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp0_ = pixel_transformation_bundle_new (); -#line 1394 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - adjustments = _tmp0_; -#line 1396 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp1_ = intensity_histogram_new (pixbuf); -#line 1396 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - analysis_histogram = _tmp1_; -#line 1399 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp2_ = analysis_histogram; -#line 1399 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp3_ = analysis_histogram; -#line 1399 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pct_in_range = 100.0f * (intensity_histogram_get_cumulative_probability (_tmp2_, AUTO_ENHANCE_SHADOW_DETECT_MAX_INTENSITY) - intensity_histogram_get_cumulative_probability (_tmp3_, AUTO_ENHANCE_SHADOW_DETECT_MIN_INTENSITY)); -#line 1405 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp4_ = analysis_histogram; -#line 1405 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp5_ = analysis_histogram; -#line 1405 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - shadow_range_mean_prob_val = (intensity_histogram_get_cumulative_probability (_tmp4_, AUTO_ENHANCE_SHADOW_DETECT_MIN_INTENSITY) + intensity_histogram_get_cumulative_probability (_tmp5_, AUTO_ENHANCE_SHADOW_DETECT_MAX_INTENSITY)) * 0.5f; -#line 1408 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - shadow_mean_intensity = AUTO_ENHANCE_SHADOW_DETECT_MIN_INTENSITY; -#line 12605 "ColorTransformation.c" - { - gboolean _tmp6_ = FALSE; -#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = TRUE; -#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 12612 "ColorTransformation.c" - gint _tmp8_; - IntensityHistogram* _tmp9_; - gint _tmp10_; - gfloat _tmp11_; -#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp6_) { -#line 12619 "ColorTransformation.c" - gint _tmp7_; -#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp7_ = shadow_mean_intensity; -#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - shadow_mean_intensity = _tmp7_ + 1; -#line 12625 "ColorTransformation.c" - } -#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp6_ = FALSE; -#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp8_ = shadow_mean_intensity; -#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp8_ <= AUTO_ENHANCE_SHADOW_DETECT_MAX_INTENSITY)) { -#line 1409 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 12635 "ColorTransformation.c" - } -#line 1410 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp9_ = analysis_histogram; -#line 1410 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp10_ = shadow_mean_intensity; -#line 1410 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp11_ = shadow_range_mean_prob_val; -#line 1410 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (intensity_histogram_get_cumulative_probability (_tmp9_, _tmp10_) >= _tmp11_) { -#line 1411 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 12647 "ColorTransformation.c" - } - } - } -#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp13_ = pct_in_range; -#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp13_ > 40.0f) { -#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = TRUE; -#line 12657 "ColorTransformation.c" - } else { - gboolean _tmp14_ = FALSE; - gfloat _tmp15_; -#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp15_ = pct_in_range; -#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp15_ > 20.0f) { -#line 12665 "ColorTransformation.c" - gint _tmp16_; -#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp16_ = shadow_mean_intensity; -#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = _tmp16_ < AUTO_ENHANCE_EMPIRICAL_DARK; -#line 12671 "ColorTransformation.c" - } else { -#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp14_ = FALSE; -#line 12675 "ColorTransformation.c" - } -#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp12_ = _tmp14_; -#line 12679 "ColorTransformation.c" - } -#line 1419 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (_tmp12_) { -#line 12683 "ColorTransformation.c" - gfloat shadow_trans_effect_size = 0.0F; - gint _tmp17_; - gfloat _tmp18_; - PixelTransformationBundle* _tmp19_; - gfloat _tmp20_; - ShadowDetailTransformation* _tmp21_; - ShadowDetailTransformation* _tmp22_; - gint discard_point = 0; - PixelTransformationBundle* _tmp28_; - gint _tmp29_; - ExpansionTransformation* _tmp30_; - ExpansionTransformation* _tmp31_; -#line 1420 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp17_ = shadow_mean_intensity; -#line 1420 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - shadow_trans_effect_size = ((((gfloat) AUTO_ENHANCE_SHADOW_DETECT_MAX_INTENSITY) - ((gfloat) _tmp17_)) / ((gfloat) AUTO_ENHANCE_SHADOW_DETECT_INTENSITY_RANGE)) * SHADOW_DETAIL_TRANSFORMATION_MAX_PARAMETER; -#line 1424 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp18_ = shadow_trans_effect_size; -#line 1424 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - shadow_trans_effect_size = _tmp18_ * AUTO_ENHANCE_SHADOW_AGGRESSIVENESS_MUL; -#line 1426 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp19_ = adjustments; -#line 1426 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp20_ = shadow_trans_effect_size; -#line 1426 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp21_ = shadow_detail_transformation_new (_tmp20_); -#line 1426 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp22_ = _tmp21_; -#line 1426 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 1426 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp22_); -#line 1430 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - discard_point = 255; -#line 12718 "ColorTransformation.c" - { - gboolean _tmp23_ = FALSE; -#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp23_ = TRUE; -#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - while (TRUE) { -#line 12725 "ColorTransformation.c" - gint _tmp25_; - IntensityHistogram* _tmp26_; - gint _tmp27_; -#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!_tmp23_) { -#line 12731 "ColorTransformation.c" - gint _tmp24_; -#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp24_ = discard_point; -#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - discard_point = _tmp24_ - 1; -#line 12737 "ColorTransformation.c" - } -#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp23_ = FALSE; -#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp25_ = discard_point; -#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if (!(_tmp25_ > -1)) { -#line 1431 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 12747 "ColorTransformation.c" - } -#line 1432 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp26_ = analysis_histogram; -#line 1432 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp27_ = discard_point; -#line 1432 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - if ((1.0f - intensity_histogram_get_cumulative_probability (_tmp26_, _tmp27_)) > AUTO_ENHANCE_SHADOW_MODE_HIGH_DISCARD_MASS) { -#line 1434 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - break; -#line 12757 "ColorTransformation.c" - } - } - } -#line 1437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp28_ = adjustments; -#line 1437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp29_ = discard_point; -#line 1437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp30_ = expansion_transformation_new_from_extrema (0, _tmp29_); -#line 1437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp31_ = _tmp30_; -#line 1437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (_tmp28_, G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 1437 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp31_); -#line 12773 "ColorTransformation.c" - } else { - PixelTransformationBundle* _tmp32_; - IntensityHistogram* _tmp33_; - ExpansionTransformation* _tmp34_; - ExpansionTransformation* _tmp35_; - PixelTransformationBundle* _tmp36_; - ShadowDetailTransformation* _tmp37_; - ShadowDetailTransformation* _tmp38_; -#line 1440 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp32_ = adjustments; -#line 1440 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp33_ = analysis_histogram; -#line 1440 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp34_ = expansion_transformation_new (_tmp33_); -#line 1440 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp35_ = _tmp34_; -#line 1440 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (_tmp32_, G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 1440 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp35_); -#line 1441 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp36_ = adjustments; -#line 1441 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp37_ = shadow_detail_transformation_new ((gfloat) 0); -#line 1441 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp38_ = _tmp37_; -#line 1441 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (_tmp36_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 1441 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp38_); -#line 12804 "ColorTransformation.c" - } -#line 1445 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp39_ = adjustments; -#line 1445 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp40_ = highlight_detail_transformation_new (0.0f); -#line 1445 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp41_ = _tmp40_; -#line 1445 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (_tmp39_, G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 1445 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp41_); -#line 1446 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp42_ = adjustments; -#line 1446 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp43_ = temperature_transformation_new (0.0f); -#line 1446 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp44_ = _tmp43_; -#line 1446 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (_tmp42_, G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 1446 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp44_); -#line 1447 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp45_ = adjustments; -#line 1447 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp46_ = tint_transformation_new (0.0f); -#line 1447 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp47_ = _tmp46_; -#line 1447 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (_tmp45_, G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 1447 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp47_); -#line 1448 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp48_ = adjustments; -#line 1448 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp49_ = exposure_transformation_new (0.0f); -#line 1448 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp50_ = _tmp49_; -#line 1448 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (_tmp48_, G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 1448 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp50_); -#line 1449 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp51_ = adjustments; -#line 1449 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp52_ = contrast_transformation_new (0.0f); -#line 1449 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp53_ = _tmp52_; -#line 1449 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (_tmp51_, G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 1449 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp53_); -#line 1450 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp54_ = adjustments; -#line 1450 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp55_ = saturation_transformation_new (0.0f); -#line 1450 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _tmp56_ = _tmp55_; -#line 1450 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - pixel_transformation_bundle_set (_tmp54_, G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 1450 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _pixel_transformation_unref0 (_tmp56_); -#line 1452 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - result = adjustments; -#line 1452 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - _intensity_histogram_unref0 (analysis_histogram); -#line 1452 "/home/jens/Source/shotwell/src/ColorTransformation.vala" - return result; -#line 12872 "ColorTransformation.c" -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/CommandManager.c b/src/CommandManager.c deleted file mode 100644 index baf7d78..0000000 --- a/src/CommandManager.c +++ /dev/null @@ -1,1373 +0,0 @@ -/* CommandManager.c generated by valac 0.40.4, the Vala compiler - * generated from CommandManager.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include - - -#define TYPE_COMMAND_DESCRIPTION (command_description_get_type ()) -#define COMMAND_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_DESCRIPTION, CommandDescription)) -#define IS_COMMAND_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_DESCRIPTION)) -#define COMMAND_DESCRIPTION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_COMMAND_DESCRIPTION, CommandDescriptionIface)) - -typedef struct _CommandDescription CommandDescription; -typedef struct _CommandDescriptionIface CommandDescriptionIface; - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; -typedef struct _CommandPrivate CommandPrivate; - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; -enum { - COMMAND_0_PROPERTY, - COMMAND_NUM_PROPERTIES -}; -static GParamSpec* command_properties[COMMAND_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _CommandManagerPrivate CommandManagerPrivate; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _ParamSpecCommandManager ParamSpecCommandManager; -enum { - COMMAND_MANAGER_ALTERED_SIGNAL, - COMMAND_MANAGER_NUM_SIGNALS -}; -static guint command_manager_signals[COMMAND_MANAGER_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _CommandDescriptionIface { - GTypeInterface parent_iface; - gchar* (*get_name) (CommandDescription* self); - gchar* (*get_explanation) (CommandDescription* self); -}; - -struct _Command { - GObject parent_instance; - CommandPrivate * priv; -}; - -struct _CommandClass { - GObjectClass parent_class; - void (*prepare) (Command* self); - void (*execute) (Command* self); - void (*undo) (Command* self); - void (*redo) (Command* self); - gboolean (*compress) (Command* self, Command* command); - gchar* (*get_name) (Command* self); - gchar* (*get_explanation) (Command* self); -}; - -struct _CommandPrivate { - gchar* name; - gchar* explanation; - CommandManager* manager; -}; - -struct _CommandManager { - GTypeInstance parent_instance; - volatile int ref_count; - CommandManagerPrivate * priv; -}; - -struct _CommandManagerClass { - GTypeClass parent_class; - void (*finalize) (CommandManager *self); -}; - -struct _CommandManagerPrivate { - gint depth; - GeeArrayList* undo_stack; - GeeArrayList* redo_stack; -}; - -struct _ParamSpecCommandManager { - GParamSpec parent_instance; -}; - - -static gpointer command_parent_class = NULL; -static CommandDescriptionIface * command_command_description_parent_iface = NULL; -static gpointer command_manager_parent_class = NULL; - -GType command_description_get_type (void) G_GNUC_CONST; -gchar* command_description_get_name (CommandDescription* self); -gchar* command_description_get_explanation (CommandDescription* self); -GType command_get_type (void) G_GNUC_CONST; -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -#define COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_COMMAND, CommandPrivate)) -Command* command_construct (GType object_type, - const gchar* name, - const gchar* explanation); -void command_prepare (Command* self); -static void command_real_prepare (Command* self); -void command_execute (Command* self); -static void command_real_execute (Command* self); -void command_undo (Command* self); -static void command_real_undo (Command* self); -void command_redo (Command* self); -static void command_real_redo (Command* self); -gboolean command_compress (Command* self, - Command* command); -static gboolean command_real_compress (Command* self, - Command* command); -gchar* command_get_name (Command* self); -static gchar* command_real_get_name (Command* self); -gchar* command_get_explanation (Command* self); -static gchar* command_real_get_explanation (Command* self); -CommandManager* command_get_command_manager (Command* self); -void command_internal_set_command_manager (Command* self, - CommandManager* manager); -static void command_finalize (GObject * obj); -#define COMMAND_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_COMMAND_MANAGER, CommandManagerPrivate)) -#define COMMAND_MANAGER_DEFAULT_DEPTH 20 -CommandManager* command_manager_new (gint depth); -CommandManager* command_manager_construct (GType object_type, - gint depth); -void command_manager_reset (CommandManager* self); -void command_manager_execute (CommandManager* self, - Command* command); -static Command* command_manager_top (CommandManager* self, - GeeArrayList* stack); -static void command_manager_push (CommandManager* self, - GeeArrayList* stack, - Command* command); -gboolean command_manager_can_undo (CommandManager* self); -gboolean command_manager_can_redo (CommandManager* self); -CommandDescription* command_manager_get_undo_description (CommandManager* self); -gboolean command_manager_undo (CommandManager* self); -static Command* command_manager_pop (CommandManager* self, - GeeArrayList* stack); -CommandDescription* command_manager_get_redo_description (CommandManager* self); -gboolean command_manager_redo (CommandManager* self); -static void g_cclosure_user_marshal_VOID__BOOLEAN_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void command_manager_finalize (CommandManager * obj); - - -gchar* -command_description_get_name (CommandDescription* self) -{ -#line 8 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (IS_COMMAND_DESCRIPTION (self), NULL); -#line 8 "/home/jens/Source/shotwell/src/CommandManager.vala" - return COMMAND_DESCRIPTION_GET_INTERFACE (self)->get_name (self); -#line 199 "CommandManager.c" -} - - -gchar* -command_description_get_explanation (CommandDescription* self) -{ -#line 10 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (IS_COMMAND_DESCRIPTION (self), NULL); -#line 10 "/home/jens/Source/shotwell/src/CommandManager.vala" - return COMMAND_DESCRIPTION_GET_INTERFACE (self)->get_explanation (self); -#line 210 "CommandManager.c" -} - - -static void -command_description_base_init (CommandDescriptionIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/src/CommandManager.vala" - static gboolean initialized = FALSE; -#line 7 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (!initialized) { -#line 7 "/home/jens/Source/shotwell/src/CommandManager.vala" - initialized = TRUE; -#line 223 "CommandManager.c" - } -} - - -GType -command_description_get_type (void) -{ - static volatile gsize command_description_type_id__volatile = 0; - if (g_once_init_enter (&command_description_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CommandDescriptionIface), (GBaseInitFunc) command_description_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType command_description_type_id; - command_description_type_id = g_type_register_static (G_TYPE_INTERFACE, "CommandDescription", &g_define_type_info, 0); - g_type_interface_add_prerequisite (command_description_type_id, G_TYPE_OBJECT); - g_once_init_leave (&command_description_type_id__volatile, command_description_type_id); - } - return command_description_type_id__volatile; -} - - -Command* -command_construct (GType object_type, - const gchar* name, - const gchar* explanation) -{ - Command * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 32 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 32 "/home/jens/Source/shotwell/src/CommandManager.vala" - self = (Command*) g_object_new (object_type, NULL); -#line 33 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = g_strdup (name); -#line 33 "/home/jens/Source/shotwell/src/CommandManager.vala" - _g_free0 (self->priv->name); -#line 33 "/home/jens/Source/shotwell/src/CommandManager.vala" - self->priv->name = _tmp0_; -#line 34 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp1_ = g_strdup (explanation); -#line 34 "/home/jens/Source/shotwell/src/CommandManager.vala" - _g_free0 (self->priv->explanation); -#line 34 "/home/jens/Source/shotwell/src/CommandManager.vala" - self->priv->explanation = _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/CommandManager.vala" - return self; -#line 271 "CommandManager.c" -} - - -static void -command_real_prepare (Command* self) -{ -} - - -void -command_prepare (Command* self) -{ -#line 43 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (IS_COMMAND (self)); -#line 43 "/home/jens/Source/shotwell/src/CommandManager.vala" - COMMAND_GET_CLASS (self)->prepare (self); -#line 288 "CommandManager.c" -} - - -static void -command_real_execute (Command* self) -{ -#line 46 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_critical ("Type `%s' does not implement abstract method `command_execute'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 46 "/home/jens/Source/shotwell/src/CommandManager.vala" - return; -#line 299 "CommandManager.c" -} - - -void -command_execute (Command* self) -{ -#line 46 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (IS_COMMAND (self)); -#line 46 "/home/jens/Source/shotwell/src/CommandManager.vala" - COMMAND_GET_CLASS (self)->execute (self); -#line 310 "CommandManager.c" -} - - -static void -command_real_undo (Command* self) -{ -#line 48 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_critical ("Type `%s' does not implement abstract method `command_undo'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 48 "/home/jens/Source/shotwell/src/CommandManager.vala" - return; -#line 321 "CommandManager.c" -} - - -void -command_undo (Command* self) -{ -#line 48 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (IS_COMMAND (self)); -#line 48 "/home/jens/Source/shotwell/src/CommandManager.vala" - COMMAND_GET_CLASS (self)->undo (self); -#line 332 "CommandManager.c" -} - - -static void -command_real_redo (Command* self) -{ -#line 51 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_execute (self); -#line 341 "CommandManager.c" -} - - -void -command_redo (Command* self) -{ -#line 50 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (IS_COMMAND (self)); -#line 50 "/home/jens/Source/shotwell/src/CommandManager.vala" - COMMAND_GET_CLASS (self)->redo (self); -#line 352 "CommandManager.c" -} - - -static gboolean -command_real_compress (Command* self, - Command* command) -{ - gboolean result = FALSE; -#line 56 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (IS_COMMAND (command), FALSE); -#line 57 "/home/jens/Source/shotwell/src/CommandManager.vala" - result = FALSE; -#line 57 "/home/jens/Source/shotwell/src/CommandManager.vala" - return result; -#line 367 "CommandManager.c" -} - - -gboolean -command_compress (Command* self, - Command* command) -{ -#line 56 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (IS_COMMAND (self), FALSE); -#line 56 "/home/jens/Source/shotwell/src/CommandManager.vala" - return COMMAND_GET_CLASS (self)->compress (self, command); -#line 379 "CommandManager.c" -} - - -static gchar* -command_real_get_name (Command* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 61 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = self->priv->name; -#line 61 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 61 "/home/jens/Source/shotwell/src/CommandManager.vala" - result = _tmp1_; -#line 61 "/home/jens/Source/shotwell/src/CommandManager.vala" - return result; -#line 397 "CommandManager.c" -} - - -gchar* -command_get_name (Command* self) -{ -#line 60 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (IS_COMMAND (self), NULL); -#line 60 "/home/jens/Source/shotwell/src/CommandManager.vala" - return COMMAND_GET_CLASS (self)->get_name (self); -#line 408 "CommandManager.c" -} - - -static gchar* -command_real_get_explanation (Command* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 65 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = self->priv->explanation; -#line 65 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 65 "/home/jens/Source/shotwell/src/CommandManager.vala" - result = _tmp1_; -#line 65 "/home/jens/Source/shotwell/src/CommandManager.vala" - return result; -#line 426 "CommandManager.c" -} - - -gchar* -command_get_explanation (Command* self) -{ -#line 64 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (IS_COMMAND (self), NULL); -#line 64 "/home/jens/Source/shotwell/src/CommandManager.vala" - return COMMAND_GET_CLASS (self)->get_explanation (self); -#line 437 "CommandManager.c" -} - - -static gpointer -_command_manager_ref0 (gpointer self) -{ -#line 69 "/home/jens/Source/shotwell/src/CommandManager.vala" - return self ? command_manager_ref (self) : NULL; -#line 446 "CommandManager.c" -} - - -CommandManager* -command_get_command_manager (Command* self) -{ - CommandManager* result = NULL; - CommandManager* _tmp0_; - CommandManager* _tmp1_; -#line 68 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (IS_COMMAND (self), NULL); -#line 69 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = self->priv->manager; -#line 69 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp1_ = _command_manager_ref0 (_tmp0_); -#line 69 "/home/jens/Source/shotwell/src/CommandManager.vala" - result = _tmp1_; -#line 69 "/home/jens/Source/shotwell/src/CommandManager.vala" - return result; -#line 466 "CommandManager.c" -} - - -void -command_internal_set_command_manager (Command* self, - CommandManager* manager) -{ - CommandManager* _tmp0_; -#line 73 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (IS_COMMAND (self)); -#line 73 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (IS_COMMAND_MANAGER (manager)); -#line 74 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = self->priv->manager; -#line 74 "/home/jens/Source/shotwell/src/CommandManager.vala" - _vala_assert (_tmp0_ == NULL, "this.manager == null"); -#line 76 "/home/jens/Source/shotwell/src/CommandManager.vala" - self->priv->manager = manager; -#line 485 "CommandManager.c" -} - - -static void -command_class_init (CommandClass * klass) -{ -#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_parent_class = g_type_class_peek_parent (klass); -#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_type_class_add_private (klass, sizeof (CommandPrivate)); -#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala" - ((CommandClass *) klass)->prepare = (void (*) (Command *)) command_real_prepare; -#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) command_real_execute; -#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) command_real_undo; -#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala" - ((CommandClass *) klass)->redo = (void (*) (Command *)) command_real_redo; -#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala" - ((CommandClass *) klass)->compress = (gboolean (*) (Command *, Command*)) command_real_compress; -#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala" - ((CommandClass *) klass)->get_name = (gchar* (*) (Command *)) command_real_get_name; -#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala" - ((CommandClass *) klass)->get_explanation = (gchar* (*) (Command *)) command_real_get_explanation; -#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala" - G_OBJECT_CLASS (klass)->finalize = command_finalize; -#line 512 "CommandManager.c" -} - - -static void -command_command_description_interface_init (CommandDescriptionIface * iface) -{ -#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_command_description_parent_iface = g_type_interface_peek_parent (iface); -#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala" - iface->get_name = (gchar* (*) (CommandDescription *)) command_get_name; -#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala" - iface->get_explanation = (gchar* (*) (CommandDescription *)) command_get_explanation; -#line 525 "CommandManager.c" -} - - -static void -command_instance_init (Command * self) -{ -#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala" - self->priv = COMMAND_GET_PRIVATE (self); -#line 30 "/home/jens/Source/shotwell/src/CommandManager.vala" - self->priv->manager = NULL; -#line 536 "CommandManager.c" -} - - -static void -command_finalize (GObject * obj) -{ - Command * self; -#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COMMAND, Command); -#line 28 "/home/jens/Source/shotwell/src/CommandManager.vala" - _g_free0 (self->priv->name); -#line 29 "/home/jens/Source/shotwell/src/CommandManager.vala" - _g_free0 (self->priv->explanation); -#line 27 "/home/jens/Source/shotwell/src/CommandManager.vala" - G_OBJECT_CLASS (command_parent_class)->finalize (obj); -#line 552 "CommandManager.c" -} - - -GType -command_get_type (void) -{ - static volatile gsize command_type_id__volatile = 0; - if (g_once_init_enter (&command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Command), 0, (GInstanceInitFunc) command_instance_init, NULL }; - static const GInterfaceInfo command_description_info = { (GInterfaceInitFunc) command_command_description_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType command_type_id; - command_type_id = g_type_register_static (G_TYPE_OBJECT, "Command", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_type_add_interface_static (command_type_id, TYPE_COMMAND_DESCRIPTION, &command_description_info); - g_once_init_leave (&command_type_id__volatile, command_type_id); - } - return command_type_id__volatile; -} - - -CommandManager* -command_manager_construct (GType object_type, - gint depth) -{ - CommandManager* self = NULL; -#line 89 "/home/jens/Source/shotwell/src/CommandManager.vala" - self = (CommandManager*) g_type_create_instance (object_type); -#line 90 "/home/jens/Source/shotwell/src/CommandManager.vala" - _vala_assert (depth > 0, "depth > 0"); -#line 92 "/home/jens/Source/shotwell/src/CommandManager.vala" - self->priv->depth = depth; -#line 89 "/home/jens/Source/shotwell/src/CommandManager.vala" - return self; -#line 585 "CommandManager.c" -} - - -CommandManager* -command_manager_new (gint depth) -{ -#line 89 "/home/jens/Source/shotwell/src/CommandManager.vala" - return command_manager_construct (TYPE_COMMAND_MANAGER, depth); -#line 594 "CommandManager.c" -} - - -void -command_manager_reset (CommandManager* self) -{ - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; -#line 95 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (IS_COMMAND_MANAGER (self)); -#line 96 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = self->priv->undo_stack; -#line 96 "/home/jens/Source/shotwell/src/CommandManager.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 97 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp1_ = self->priv->redo_stack; -#line 97 "/home/jens/Source/shotwell/src/CommandManager.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 99 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_signal_emit (self, command_manager_signals[COMMAND_MANAGER_ALTERED_SIGNAL], 0, FALSE, FALSE); -#line 615 "CommandManager.c" -} - - -void -command_manager_execute (CommandManager* self, - Command* command) -{ - GeeArrayList* _tmp0_; - Command* top_command = NULL; - GeeArrayList* _tmp1_; - Command* _tmp2_; - Command* _tmp3_; - GeeArrayList* _tmp5_; -#line 102 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (IS_COMMAND_MANAGER (self)); -#line 102 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (IS_COMMAND (command)); -#line 104 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_internal_set_command_manager (command, self); -#line 107 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = self->priv->redo_stack; -#line 107 "/home/jens/Source/shotwell/src/CommandManager.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 110 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp1_ = self->priv->undo_stack; -#line 110 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp2_ = command_manager_top (self, _tmp1_); -#line 110 "/home/jens/Source/shotwell/src/CommandManager.vala" - top_command = _tmp2_; -#line 111 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp3_ = top_command; -#line 111 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (_tmp3_ != NULL) { -#line 649 "CommandManager.c" - Command* _tmp4_; -#line 112 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp4_ = top_command; -#line 112 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (command_compress (_tmp4_, command)) { -#line 113 "/home/jens/Source/shotwell/src/CommandManager.vala" - _g_object_unref0 (top_command); -#line 113 "/home/jens/Source/shotwell/src/CommandManager.vala" - return; -#line 659 "CommandManager.c" - } - } -#line 117 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp5_ = self->priv->undo_stack; -#line 117 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_manager_push (self, _tmp5_, command); -#line 119 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_prepare (command); -#line 120 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_execute (command); -#line 123 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_signal_emit (self, command_manager_signals[COMMAND_MANAGER_ALTERED_SIGNAL], 0, command_manager_can_undo (self), command_manager_can_redo (self)); -#line 102 "/home/jens/Source/shotwell/src/CommandManager.vala" - _g_object_unref0 (top_command); -#line 674 "CommandManager.c" -} - - -gboolean -command_manager_can_undo (CommandManager* self) -{ - gboolean result = FALSE; - GeeArrayList* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 126 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (IS_COMMAND_MANAGER (self), FALSE); -#line 127 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = self->priv->undo_stack; -#line 127 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 127 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp2_ = _tmp1_; -#line 127 "/home/jens/Source/shotwell/src/CommandManager.vala" - result = _tmp2_ > 0; -#line 127 "/home/jens/Source/shotwell/src/CommandManager.vala" - return result; -#line 697 "CommandManager.c" -} - - -CommandDescription* -command_manager_get_undo_description (CommandManager* self) -{ - CommandDescription* result = NULL; - GeeArrayList* _tmp0_; - Command* _tmp1_; -#line 130 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (IS_COMMAND_MANAGER (self), NULL); -#line 131 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = self->priv->undo_stack; -#line 131 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp1_ = command_manager_top (self, _tmp0_); -#line 131 "/home/jens/Source/shotwell/src/CommandManager.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_COMMAND_DESCRIPTION, CommandDescription); -#line 131 "/home/jens/Source/shotwell/src/CommandManager.vala" - return result; -#line 717 "CommandManager.c" -} - - -gboolean -command_manager_undo (CommandManager* self) -{ - gboolean result = FALSE; - Command* command = NULL; - GeeArrayList* _tmp0_; - Command* _tmp1_; - Command* _tmp2_; - GeeArrayList* _tmp3_; - Command* _tmp4_; - Command* _tmp5_; - Command* _tmp6_; -#line 134 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (IS_COMMAND_MANAGER (self), FALSE); -#line 135 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = self->priv->undo_stack; -#line 135 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp1_ = command_manager_pop (self, _tmp0_); -#line 135 "/home/jens/Source/shotwell/src/CommandManager.vala" - command = _tmp1_; -#line 136 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp2_ = command; -#line 136 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (_tmp2_ == NULL) { -#line 137 "/home/jens/Source/shotwell/src/CommandManager.vala" - result = FALSE; -#line 137 "/home/jens/Source/shotwell/src/CommandManager.vala" - _g_object_unref0 (command); -#line 137 "/home/jens/Source/shotwell/src/CommandManager.vala" - return result; -#line 751 "CommandManager.c" - } -#line 140 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp3_ = self->priv->redo_stack; -#line 140 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp4_ = command; -#line 140 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_manager_push (self, _tmp3_, _tmp4_); -#line 143 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp5_ = command; -#line 143 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_prepare (_tmp5_); -#line 144 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp6_ = command; -#line 144 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_undo (_tmp6_); -#line 147 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_signal_emit (self, command_manager_signals[COMMAND_MANAGER_ALTERED_SIGNAL], 0, command_manager_can_undo (self), command_manager_can_redo (self)); -#line 149 "/home/jens/Source/shotwell/src/CommandManager.vala" - result = TRUE; -#line 149 "/home/jens/Source/shotwell/src/CommandManager.vala" - _g_object_unref0 (command); -#line 149 "/home/jens/Source/shotwell/src/CommandManager.vala" - return result; -#line 775 "CommandManager.c" -} - - -gboolean -command_manager_can_redo (CommandManager* self) -{ - gboolean result = FALSE; - GeeArrayList* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 152 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (IS_COMMAND_MANAGER (self), FALSE); -#line 153 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = self->priv->redo_stack; -#line 153 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 153 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp2_ = _tmp1_; -#line 153 "/home/jens/Source/shotwell/src/CommandManager.vala" - result = _tmp2_ > 0; -#line 153 "/home/jens/Source/shotwell/src/CommandManager.vala" - return result; -#line 798 "CommandManager.c" -} - - -CommandDescription* -command_manager_get_redo_description (CommandManager* self) -{ - CommandDescription* result = NULL; - GeeArrayList* _tmp0_; - Command* _tmp1_; -#line 156 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (IS_COMMAND_MANAGER (self), NULL); -#line 157 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = self->priv->redo_stack; -#line 157 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp1_ = command_manager_top (self, _tmp0_); -#line 157 "/home/jens/Source/shotwell/src/CommandManager.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_COMMAND_DESCRIPTION, CommandDescription); -#line 157 "/home/jens/Source/shotwell/src/CommandManager.vala" - return result; -#line 818 "CommandManager.c" -} - - -gboolean -command_manager_redo (CommandManager* self) -{ - gboolean result = FALSE; - Command* command = NULL; - GeeArrayList* _tmp0_; - Command* _tmp1_; - Command* _tmp2_; - GeeArrayList* _tmp3_; - Command* _tmp4_; - Command* _tmp5_; - Command* _tmp6_; -#line 160 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (IS_COMMAND_MANAGER (self), FALSE); -#line 161 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = self->priv->redo_stack; -#line 161 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp1_ = command_manager_pop (self, _tmp0_); -#line 161 "/home/jens/Source/shotwell/src/CommandManager.vala" - command = _tmp1_; -#line 162 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp2_ = command; -#line 162 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (_tmp2_ == NULL) { -#line 163 "/home/jens/Source/shotwell/src/CommandManager.vala" - result = FALSE; -#line 163 "/home/jens/Source/shotwell/src/CommandManager.vala" - _g_object_unref0 (command); -#line 163 "/home/jens/Source/shotwell/src/CommandManager.vala" - return result; -#line 852 "CommandManager.c" - } -#line 166 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp3_ = self->priv->undo_stack; -#line 166 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp4_ = command; -#line 166 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_manager_push (self, _tmp3_, _tmp4_); -#line 169 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp5_ = command; -#line 169 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_prepare (_tmp5_); -#line 170 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp6_ = command; -#line 170 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_redo (_tmp6_); -#line 173 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_signal_emit (self, command_manager_signals[COMMAND_MANAGER_ALTERED_SIGNAL], 0, command_manager_can_undo (self), command_manager_can_redo (self)); -#line 175 "/home/jens/Source/shotwell/src/CommandManager.vala" - result = TRUE; -#line 175 "/home/jens/Source/shotwell/src/CommandManager.vala" - _g_object_unref0 (command); -#line 175 "/home/jens/Source/shotwell/src/CommandManager.vala" - return result; -#line 876 "CommandManager.c" -} - - -static Command* -command_manager_top (CommandManager* self, - GeeArrayList* stack) -{ - Command* result = NULL; - Command* _tmp0_ = NULL; - gint _tmp1_; - gint _tmp2_; -#line 178 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (IS_COMMAND_MANAGER (self), NULL); -#line 178 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (GEE_IS_ARRAY_LIST (stack), NULL); -#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp2_ = _tmp1_; -#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (_tmp2_ > 0) { -#line 898 "CommandManager.c" - gint _tmp3_; - gint _tmp4_; - gpointer _tmp5_; -#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp4_ = _tmp3_; -#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp5_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp4_ - 1); -#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala" - _g_object_unref0 (_tmp0_); -#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = (Command*) _tmp5_; -#line 912 "CommandManager.c" - } else { -#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala" - _g_object_unref0 (_tmp0_); -#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = NULL; -#line 918 "CommandManager.c" - } -#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala" - result = _tmp0_; -#line 179 "/home/jens/Source/shotwell/src/CommandManager.vala" - return result; -#line 924 "CommandManager.c" -} - - -static void -command_manager_push (CommandManager* self, - GeeArrayList* stack, - Command* command) -{ -#line 182 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (IS_COMMAND_MANAGER (self)); -#line 182 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (GEE_IS_ARRAY_LIST (stack)); -#line 182 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (IS_COMMAND (command)); -#line 183 "/home/jens/Source/shotwell/src/CommandManager.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), command); -#line 186 "/home/jens/Source/shotwell/src/CommandManager.vala" - while (TRUE) { -#line 943 "CommandManager.c" - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gpointer _tmp3_; - Command* _tmp4_; -#line 186 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 186 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp1_ = _tmp0_; -#line 186 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp2_ = self->priv->depth; -#line 186 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (!(_tmp1_ >= _tmp2_)) { -#line 186 "/home/jens/Source/shotwell/src/CommandManager.vala" - break; -#line 959 "CommandManager.c" - } -#line 187 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp3_ = gee_abstract_list_remove_at (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 187 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp4_ = (Command*) _tmp3_; -#line 187 "/home/jens/Source/shotwell/src/CommandManager.vala" - _g_object_unref0 (_tmp4_); -#line 967 "CommandManager.c" - } -} - - -static Command* -command_manager_pop (CommandManager* self, - GeeArrayList* stack) -{ - Command* result = NULL; - gint _tmp0_; - gint _tmp1_; - Command* command = NULL; - gint _tmp2_; - gint _tmp3_; - gpointer _tmp4_; - gboolean removed = FALSE; - Command* _tmp5_; - gboolean _tmp6_; -#line 190 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (IS_COMMAND_MANAGER (self), NULL); -#line 190 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (GEE_IS_ARRAY_LIST (stack), NULL); -#line 191 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 191 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp1_ = _tmp0_; -#line 191 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (_tmp1_ <= 0) { -#line 192 "/home/jens/Source/shotwell/src/CommandManager.vala" - result = NULL; -#line 192 "/home/jens/Source/shotwell/src/CommandManager.vala" - return result; -#line 1000 "CommandManager.c" - } -#line 194 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 194 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp3_ = _tmp2_; -#line 194 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp4_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp3_ - 1); -#line 194 "/home/jens/Source/shotwell/src/CommandManager.vala" - command = (Command*) _tmp4_; -#line 195 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp5_ = command; -#line 195 "/home/jens/Source/shotwell/src/CommandManager.vala" - removed = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (stack, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp5_); -#line 196 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp6_ = removed; -#line 196 "/home/jens/Source/shotwell/src/CommandManager.vala" - _vala_assert (_tmp6_, "removed"); -#line 198 "/home/jens/Source/shotwell/src/CommandManager.vala" - result = command; -#line 198 "/home/jens/Source/shotwell/src/CommandManager.vala" - return result; -#line 1022 "CommandManager.c" -} - - -static void -g_cclosure_user_marshal_VOID__BOOLEAN_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__BOOLEAN_BOOLEAN) (gpointer data1, gboolean arg_1, gboolean arg_2, gpointer data2); - register GMarshalFunc_VOID__BOOLEAN_BOOLEAN callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (n_param_values == 3); -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - data1 = closure->data; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - data2 = param_values->data[0].v_pointer; -#line 1048 "CommandManager.c" - } else { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - data1 = param_values->data[0].v_pointer; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - data2 = closure->data; -#line 1054 "CommandManager.c" - } -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - callback = (GMarshalFunc_VOID__BOOLEAN_BOOLEAN) (marshal_data ? marshal_data : cc->callback); -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - callback (data1, g_value_get_boolean (param_values + 1), g_value_get_boolean (param_values + 2), data2); -#line 1060 "CommandManager.c" -} - - -static void -value_command_manager_init (GValue* value) -{ -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - value->data[0].v_pointer = NULL; -#line 1069 "CommandManager.c" -} - - -static void -value_command_manager_free_value (GValue* value) -{ -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (value->data[0].v_pointer) { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_manager_unref (value->data[0].v_pointer); -#line 1080 "CommandManager.c" - } -} - - -static void -value_command_manager_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (src_value->data[0].v_pointer) { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - dest_value->data[0].v_pointer = command_manager_ref (src_value->data[0].v_pointer); -#line 1093 "CommandManager.c" - } else { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - dest_value->data[0].v_pointer = NULL; -#line 1097 "CommandManager.c" - } -} - - -static gpointer -value_command_manager_peek_pointer (const GValue* value) -{ -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - return value->data[0].v_pointer; -#line 1107 "CommandManager.c" -} - - -static gchar* -value_command_manager_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (collect_values[0].v_pointer) { -#line 1119 "CommandManager.c" - CommandManager * object; - object = collect_values[0].v_pointer; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (object->parent_instance.g_class == NULL) { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1126 "CommandManager.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1130 "CommandManager.c" - } -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - value->data[0].v_pointer = command_manager_ref (object); -#line 1134 "CommandManager.c" - } else { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - value->data[0].v_pointer = NULL; -#line 1138 "CommandManager.c" - } -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - return NULL; -#line 1142 "CommandManager.c" -} - - -static gchar* -value_command_manager_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - CommandManager ** object_p; - object_p = collect_values[0].v_pointer; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (!object_p) { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1158 "CommandManager.c" - } -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (!value->data[0].v_pointer) { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - *object_p = NULL; -#line 1164 "CommandManager.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - *object_p = value->data[0].v_pointer; -#line 1168 "CommandManager.c" - } else { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - *object_p = command_manager_ref (value->data[0].v_pointer); -#line 1172 "CommandManager.c" - } -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - return NULL; -#line 1176 "CommandManager.c" -} - - -GParamSpec* -param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecCommandManager* spec; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_COMMAND_MANAGER), NULL); -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - return G_PARAM_SPEC (spec); -#line 1196 "CommandManager.c" -} - - -gpointer -value_get_command_manager (const GValue* value) -{ -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_COMMAND_MANAGER), NULL); -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - return value->data[0].v_pointer; -#line 1207 "CommandManager.c" -} - - -void -value_set_command_manager (GValue* value, - gpointer v_object) -{ - CommandManager * old; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_COMMAND_MANAGER)); -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - old = value->data[0].v_pointer; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (v_object) { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_COMMAND_MANAGER)); -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - value->data[0].v_pointer = v_object; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_manager_ref (value->data[0].v_pointer); -#line 1230 "CommandManager.c" - } else { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - value->data[0].v_pointer = NULL; -#line 1234 "CommandManager.c" - } -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (old) { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_manager_unref (old); -#line 1240 "CommandManager.c" - } -} - - -void -value_take_command_manager (GValue* value, - gpointer v_object) -{ - CommandManager * old; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_COMMAND_MANAGER)); -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - old = value->data[0].v_pointer; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (v_object) { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_COMMAND_MANAGER)); -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - value->data[0].v_pointer = v_object; -#line 1262 "CommandManager.c" - } else { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - value->data[0].v_pointer = NULL; -#line 1266 "CommandManager.c" - } -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (old) { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_manager_unref (old); -#line 1272 "CommandManager.c" - } -} - - -static void -command_manager_class_init (CommandManagerClass * klass) -{ -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_manager_parent_class = g_type_class_peek_parent (klass); -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - ((CommandManagerClass *) klass)->finalize = command_manager_finalize; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_type_class_add_private (klass, sizeof (CommandManagerPrivate)); -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - command_manager_signals[COMMAND_MANAGER_ALTERED_SIGNAL] = g_signal_new ("altered", TYPE_COMMAND_MANAGER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__BOOLEAN_BOOLEAN, G_TYPE_NONE, 2, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN); -#line 1288 "CommandManager.c" -} - - -static void -command_manager_instance_init (CommandManager * self) -{ - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - self->priv = COMMAND_MANAGER_GET_PRIVATE (self); -#line 84 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp0_ = gee_array_list_new (TYPE_COMMAND, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 84 "/home/jens/Source/shotwell/src/CommandManager.vala" - self->priv->undo_stack = _tmp0_; -#line 85 "/home/jens/Source/shotwell/src/CommandManager.vala" - _tmp1_ = gee_array_list_new (TYPE_COMMAND, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 85 "/home/jens/Source/shotwell/src/CommandManager.vala" - self->priv->redo_stack = _tmp1_; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - self->ref_count = 1; -#line 1309 "CommandManager.c" -} - - -static void -command_manager_finalize (CommandManager * obj) -{ - CommandManager * self; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COMMAND_MANAGER, CommandManager); -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_signal_handlers_destroy (self); -#line 84 "/home/jens/Source/shotwell/src/CommandManager.vala" - _g_object_unref0 (self->priv->undo_stack); -#line 85 "/home/jens/Source/shotwell/src/CommandManager.vala" - _g_object_unref0 (self->priv->redo_stack); -#line 1325 "CommandManager.c" -} - - -GType -command_manager_get_type (void) -{ - static volatile gsize command_manager_type_id__volatile = 0; - if (g_once_init_enter (&command_manager_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_command_manager_init, value_command_manager_free_value, value_command_manager_copy_value, value_command_manager_peek_pointer, "p", value_command_manager_collect_value, "p", value_command_manager_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (CommandManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) command_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CommandManager), 0, (GInstanceInitFunc) command_manager_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType command_manager_type_id; - command_manager_type_id = g_type_register_fundamental (g_type_fundamental_next (), "CommandManager", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&command_manager_type_id__volatile, command_manager_type_id); - } - return command_manager_type_id__volatile; -} - - -gpointer -command_manager_ref (gpointer instance) -{ - CommandManager * self; - self = instance; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_atomic_int_inc (&self->ref_count); -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - return instance; -#line 1354 "CommandManager.c" -} - - -void -command_manager_unref (gpointer instance) -{ - CommandManager * self; - self = instance; -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - COMMAND_MANAGER_GET_CLASS (self)->finalize (self); -#line 80 "/home/jens/Source/shotwell/src/CommandManager.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1369 "CommandManager.c" - } -} - - - diff --git a/src/Commands.c b/src/Commands.c deleted file mode 100644 index 9bbd51a..0000000 --- a/src/Commands.c +++ /dev/null @@ -1,22414 +0,0 @@ -/* Commands.c generated by valac 0.40.4, the Vala compiler - * generated from Commands.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/* PageCommand stores the current page when a Command is created. Subclasses can call return_to_page()*/ -/* if it's appropriate to return to that page when executing an undo() or redo().*/ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-graphics-processor.h" -#include -#include - - -#define TYPE_COMMAND_DESCRIPTION (command_description_get_type ()) -#define COMMAND_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_DESCRIPTION, CommandDescription)) -#define IS_COMMAND_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_DESCRIPTION)) -#define COMMAND_DESCRIPTION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_COMMAND_DESCRIPTION, CommandDescriptionIface)) - -typedef struct _CommandDescription CommandDescription; -typedef struct _CommandDescriptionIface CommandDescriptionIface; - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; -typedef struct _CommandPrivate CommandPrivate; - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; -typedef struct _PageCommandPrivate PageCommandPrivate; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; -enum { - PAGE_COMMAND_0_PROPERTY, - PAGE_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* page_command_properties[PAGE_COMMAND_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ()) -#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)) -#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) -#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE)) -#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE)) -#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) - -typedef struct _SinglePhotoPage SinglePhotoPage; -typedef struct _SinglePhotoPageClass SinglePhotoPageClass; - -#define TYPE_EDITING_HOST_PAGE (editing_host_page_get_type ()) -#define EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPage)) -#define EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDITING_HOST_PAGE, EditingHostPageClass)) -#define IS_EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDITING_HOST_PAGE)) -#define IS_EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDITING_HOST_PAGE)) -#define EDITING_HOST_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPageClass)) - -typedef struct _EditingHostPage EditingHostPage; -typedef struct _EditingHostPageClass EditingHostPageClass; - -#define TYPE_LIBRARY_PHOTO_PAGE (library_photo_page_get_type ()) -#define LIBRARY_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage)) -#define LIBRARY_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPageClass)) -#define IS_LIBRARY_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_PAGE)) -#define IS_LIBRARY_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_PAGE)) -#define LIBRARY_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPageClass)) - -typedef struct _LibraryPhotoPage LibraryPhotoPage; -typedef struct _LibraryPhotoPageClass LibraryPhotoPageClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; - -#define TYPE_MEDIA_SOURCE_ITEM (media_source_item_get_type ()) -#define MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem)) -#define MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) -#define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM)) -#define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM)) -#define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) - -typedef struct _MediaSourceItem MediaSourceItem; -typedef struct _MediaSourceItemClass MediaSourceItemClass; - -#define TYPE_THUMBNAIL (thumbnail_get_type ()) -#define THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL, Thumbnail)) -#define THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL, ThumbnailClass)) -#define IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL)) -#define IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL)) -#define THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL, ThumbnailClass)) - -typedef struct _Thumbnail Thumbnail; -typedef struct _ThumbnailClass ThumbnailClass; - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; - -#define TYPE_SINGLE_DATA_SOURCE_COMMAND (single_data_source_command_get_type ()) -#define SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)) -#define SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) -#define IS_SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND)) -#define IS_SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND)) -#define SINGLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) - -typedef struct _SingleDataSourceCommand SingleDataSourceCommand; -typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass; -typedef struct _SingleDataSourceCommandPrivate SingleDataSourceCommandPrivate; -enum { - SINGLE_DATA_SOURCE_COMMAND_0_PROPERTY, - SINGLE_DATA_SOURCE_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* single_data_source_command_properties[SINGLE_DATA_SOURCE_COMMAND_NUM_PROPERTIES]; - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) - -#define TYPE_SIMPLE_PROXYABLE_COMMAND (simple_proxyable_command_get_type ()) -#define SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand)) -#define SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass)) -#define IS_SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND)) -#define IS_SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND)) -#define SIMPLE_PROXYABLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass)) - -typedef struct _SimpleProxyableCommand SimpleProxyableCommand; -typedef struct _SimpleProxyableCommandClass SimpleProxyableCommandClass; -typedef struct _SimpleProxyableCommandPrivate SimpleProxyableCommandPrivate; - -#define TYPE_SOURCE_PROXY (source_proxy_get_type ()) -#define SOURCE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_PROXY, SourceProxy)) -#define SOURCE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_PROXY, SourceProxyClass)) -#define IS_SOURCE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_PROXY)) -#define IS_SOURCE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_PROXY)) -#define SOURCE_PROXY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_PROXY, SourceProxyClass)) - -typedef struct _SourceProxy SourceProxy; -typedef struct _SourceProxyClass SourceProxyClass; -enum { - SIMPLE_PROXYABLE_COMMAND_0_PROPERTY, - SIMPLE_PROXYABLE_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* simple_proxyable_command_properties[SIMPLE_PROXYABLE_COMMAND_NUM_PROPERTIES]; -#define _source_proxy_unref0(var) ((var == NULL) ? NULL : (var = (source_proxy_unref (var), NULL))) - -#define TYPE_PROXYABLE (proxyable_get_type ()) -#define PROXYABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROXYABLE, Proxyable)) -#define IS_PROXYABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROXYABLE)) -#define PROXYABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_PROXYABLE, ProxyableIface)) - -typedef struct _Proxyable Proxyable; -typedef struct _ProxyableIface ProxyableIface; - -#define TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND (single_photo_transformation_command_get_type ()) -#define SINGLE_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND, SinglePhotoTransformationCommand)) -#define SINGLE_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND, SinglePhotoTransformationCommandClass)) -#define IS_SINGLE_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND)) -#define IS_SINGLE_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND)) -#define SINGLE_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND, SinglePhotoTransformationCommandClass)) - -typedef struct _SinglePhotoTransformationCommand SinglePhotoTransformationCommand; -typedef struct _SinglePhotoTransformationCommandClass SinglePhotoTransformationCommandClass; -typedef struct _SinglePhotoTransformationCommandPrivate SinglePhotoTransformationCommandPrivate; - -#define TYPE_PHOTO_TRANSFORMATION_STATE (photo_transformation_state_get_type ()) -#define PHOTO_TRANSFORMATION_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationState)) -#define PHOTO_TRANSFORMATION_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationStateClass)) -#define IS_PHOTO_TRANSFORMATION_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TRANSFORMATION_STATE)) -#define IS_PHOTO_TRANSFORMATION_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TRANSFORMATION_STATE)) -#define PHOTO_TRANSFORMATION_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationStateClass)) - -typedef struct _PhotoTransformationState PhotoTransformationState; -typedef struct _PhotoTransformationStateClass PhotoTransformationStateClass; -enum { - SINGLE_PHOTO_TRANSFORMATION_COMMAND_0_PROPERTY, - SINGLE_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* single_photo_transformation_command_properties[SINGLE_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES]; - -#define TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND (generic_photo_transformation_command_get_type ()) -#define GENERIC_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand)) -#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandClass)) -#define IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND)) -#define IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND)) -#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandClass)) - -typedef struct _GenericPhotoTransformationCommand GenericPhotoTransformationCommand; -typedef struct _GenericPhotoTransformationCommandClass GenericPhotoTransformationCommandClass; -typedef struct _GenericPhotoTransformationCommandPrivate GenericPhotoTransformationCommandPrivate; -enum { - GENERIC_PHOTO_TRANSFORMATION_COMMAND_0_PROPERTY, - GENERIC_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* generic_photo_transformation_command_properties[GENERIC_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES]; - -#define TYPE_MULTIPLE_DATA_SOURCE_COMMAND (multiple_data_source_command_get_type ()) -#define MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)) -#define MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass)) -#define IS_MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND)) -#define IS_MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND)) -#define MULTIPLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass)) - -typedef struct _MultipleDataSourceCommand MultipleDataSourceCommand; -typedef struct _MultipleDataSourceCommandClass MultipleDataSourceCommandClass; -typedef struct _MultipleDataSourceCommandPrivate MultipleDataSourceCommandPrivate; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; -enum { - MULTIPLE_DATA_SOURCE_COMMAND_0_PROPERTY, - MULTIPLE_DATA_SOURCE_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* multiple_data_source_command_properties[MULTIPLE_DATA_SOURCE_COMMAND_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ()) -#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController)) -#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) -#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER)) -#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER)) -#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) - -typedef struct _TransactionController TransactionController; -typedef struct _TransactionControllerClass TransactionControllerClass; - -#define TYPE_PROGRESS_DIALOG (progress_dialog_get_type ()) -#define PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROGRESS_DIALOG, ProgressDialog)) -#define PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PROGRESS_DIALOG, ProgressDialogClass)) -#define IS_PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROGRESS_DIALOG)) -#define IS_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROGRESS_DIALOG)) -#define PROGRESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROGRESS_DIALOG, ProgressDialogClass)) - -typedef struct _ProgressDialog ProgressDialog; -typedef struct _ProgressDialogClass ProgressDialogClass; - -#define TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (multiple_data_source_at_once_command_get_type ()) -#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommand)) -#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass)) -#define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND)) -#define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND)) -#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass)) - -typedef struct _MultipleDataSourceAtOnceCommand MultipleDataSourceAtOnceCommand; -typedef struct _MultipleDataSourceAtOnceCommandClass MultipleDataSourceAtOnceCommandClass; -typedef struct _MultipleDataSourceAtOnceCommandPrivate MultipleDataSourceAtOnceCommandPrivate; -enum { - MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_0_PROPERTY, - MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* multiple_data_source_at_once_command_properties[MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_NUM_PROPERTIES]; - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND (multiple_photo_transformation_command_get_type ()) -#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommand)) -#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommandClass)) -#define IS_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND)) -#define IS_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND)) -#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommandClass)) - -typedef struct _MultiplePhotoTransformationCommand MultiplePhotoTransformationCommand; -typedef struct _MultiplePhotoTransformationCommandClass MultiplePhotoTransformationCommandClass; -typedef struct _MultiplePhotoTransformationCommandPrivate MultiplePhotoTransformationCommandPrivate; -enum { - MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_0_PROPERTY, - MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* multiple_photo_transformation_command_properties[MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_NUM_PROPERTIES]; - -#define TYPE_ROTATE_SINGLE_COMMAND (rotate_single_command_get_type ()) -#define ROTATE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommand)) -#define ROTATE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommandClass)) -#define IS_ROTATE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ROTATE_SINGLE_COMMAND)) -#define IS_ROTATE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ROTATE_SINGLE_COMMAND)) -#define ROTATE_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommandClass)) - -typedef struct _RotateSingleCommand RotateSingleCommand; -typedef struct _RotateSingleCommandClass RotateSingleCommandClass; -typedef struct _RotateSingleCommandPrivate RotateSingleCommandPrivate; - -#define TYPE_ROTATION (rotation_get_type ()) -enum { - ROTATE_SINGLE_COMMAND_0_PROPERTY, - ROTATE_SINGLE_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* rotate_single_command_properties[ROTATE_SINGLE_COMMAND_NUM_PROPERTIES]; - -#define TYPE_ROTATE_MULTIPLE_COMMAND (rotate_multiple_command_get_type ()) -#define ROTATE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommand)) -#define ROTATE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommandClass)) -#define IS_ROTATE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ROTATE_MULTIPLE_COMMAND)) -#define IS_ROTATE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ROTATE_MULTIPLE_COMMAND)) -#define ROTATE_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommandClass)) - -typedef struct _RotateMultipleCommand RotateMultipleCommand; -typedef struct _RotateMultipleCommandClass RotateMultipleCommandClass; -typedef struct _RotateMultipleCommandPrivate RotateMultipleCommandPrivate; -enum { - ROTATE_MULTIPLE_COMMAND_0_PROPERTY, - ROTATE_MULTIPLE_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* rotate_multiple_command_properties[ROTATE_MULTIPLE_COMMAND_NUM_PROPERTIES]; - -#define TYPE_EDIT_TITLE_COMMAND (edit_title_command_get_type ()) -#define EDIT_TITLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_TITLE_COMMAND, EditTitleCommand)) -#define EDIT_TITLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_TITLE_COMMAND, EditTitleCommandClass)) -#define IS_EDIT_TITLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_TITLE_COMMAND)) -#define IS_EDIT_TITLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_TITLE_COMMAND)) -#define EDIT_TITLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_TITLE_COMMAND, EditTitleCommandClass)) - -typedef struct _EditTitleCommand EditTitleCommand; -typedef struct _EditTitleCommandClass EditTitleCommandClass; -typedef struct _EditTitleCommandPrivate EditTitleCommandPrivate; -enum { - EDIT_TITLE_COMMAND_0_PROPERTY, - EDIT_TITLE_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* edit_title_command_properties[EDIT_TITLE_COMMAND_NUM_PROPERTIES]; - -#define TYPE_EDIT_COMMENT_COMMAND (edit_comment_command_get_type ()) -#define EDIT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_COMMENT_COMMAND, EditCommentCommand)) -#define EDIT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_COMMENT_COMMAND, EditCommentCommandClass)) -#define IS_EDIT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_COMMENT_COMMAND)) -#define IS_EDIT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_COMMENT_COMMAND)) -#define EDIT_COMMENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_COMMENT_COMMAND, EditCommentCommandClass)) - -typedef struct _EditCommentCommand EditCommentCommand; -typedef struct _EditCommentCommandClass EditCommentCommandClass; -typedef struct _EditCommentCommandPrivate EditCommentCommandPrivate; -enum { - EDIT_COMMENT_COMMAND_0_PROPERTY, - EDIT_COMMENT_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* edit_comment_command_properties[EDIT_COMMENT_COMMAND_NUM_PROPERTIES]; - -#define TYPE_EDIT_MULTIPLE_TITLES_COMMAND (edit_multiple_titles_command_get_type ()) -#define EDIT_MULTIPLE_TITLES_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommand)) -#define EDIT_MULTIPLE_TITLES_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommandClass)) -#define IS_EDIT_MULTIPLE_TITLES_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_MULTIPLE_TITLES_COMMAND)) -#define IS_EDIT_MULTIPLE_TITLES_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_MULTIPLE_TITLES_COMMAND)) -#define EDIT_MULTIPLE_TITLES_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommandClass)) - -typedef struct _EditMultipleTitlesCommand EditMultipleTitlesCommand; -typedef struct _EditMultipleTitlesCommandClass EditMultipleTitlesCommandClass; -typedef struct _EditMultipleTitlesCommandPrivate EditMultipleTitlesCommandPrivate; -enum { - EDIT_MULTIPLE_TITLES_COMMAND_0_PROPERTY, - EDIT_MULTIPLE_TITLES_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* edit_multiple_titles_command_properties[EDIT_MULTIPLE_TITLES_COMMAND_NUM_PROPERTIES]; - -#define TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND (edit_multiple_comments_command_get_type ()) -#define EDIT_MULTIPLE_COMMENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommand)) -#define EDIT_MULTIPLE_COMMENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommandClass)) -#define IS_EDIT_MULTIPLE_COMMENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND)) -#define IS_EDIT_MULTIPLE_COMMENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND)) -#define EDIT_MULTIPLE_COMMENTS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommandClass)) - -typedef struct _EditMultipleCommentsCommand EditMultipleCommentsCommand; -typedef struct _EditMultipleCommentsCommandClass EditMultipleCommentsCommandClass; -typedef struct _EditMultipleCommentsCommandPrivate EditMultipleCommentsCommandPrivate; -enum { - EDIT_MULTIPLE_COMMENTS_COMMAND_0_PROPERTY, - EDIT_MULTIPLE_COMMENTS_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* edit_multiple_comments_command_properties[EDIT_MULTIPLE_COMMENTS_COMMAND_NUM_PROPERTIES]; - -#define TYPE_RENAME_EVENT_COMMAND (rename_event_command_get_type ()) -#define RENAME_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RENAME_EVENT_COMMAND, RenameEventCommand)) -#define RENAME_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RENAME_EVENT_COMMAND, RenameEventCommandClass)) -#define IS_RENAME_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RENAME_EVENT_COMMAND)) -#define IS_RENAME_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RENAME_EVENT_COMMAND)) -#define RENAME_EVENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RENAME_EVENT_COMMAND, RenameEventCommandClass)) - -typedef struct _RenameEventCommand RenameEventCommand; -typedef struct _RenameEventCommandClass RenameEventCommandClass; -typedef struct _RenameEventCommandPrivate RenameEventCommandPrivate; -enum { - RENAME_EVENT_COMMAND_0_PROPERTY, - RENAME_EVENT_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* rename_event_command_properties[RENAME_EVENT_COMMAND_NUM_PROPERTIES]; - -#define TYPE_EVENT_SOURCE (event_source_get_type ()) -#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource)) -#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass)) -#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE)) -#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE)) -#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass)) - -typedef struct _EventSource EventSource; -typedef struct _EventSourceClass EventSourceClass; - -#define TYPE_EVENT (event_get_type ()) -#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event)) -#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass)) -#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT)) -#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT)) -#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass)) - -typedef struct _Event Event; -typedef struct _EventClass EventClass; - -#define TYPE_EDIT_EVENT_COMMENT_COMMAND (edit_event_comment_command_get_type ()) -#define EDIT_EVENT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommand)) -#define EDIT_EVENT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommandClass)) -#define IS_EDIT_EVENT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND)) -#define IS_EDIT_EVENT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_EVENT_COMMENT_COMMAND)) -#define EDIT_EVENT_COMMENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommandClass)) - -typedef struct _EditEventCommentCommand EditEventCommentCommand; -typedef struct _EditEventCommentCommandClass EditEventCommentCommandClass; -typedef struct _EditEventCommentCommandPrivate EditEventCommentCommandPrivate; -enum { - EDIT_EVENT_COMMENT_COMMAND_0_PROPERTY, - EDIT_EVENT_COMMENT_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* edit_event_comment_command_properties[EDIT_EVENT_COMMENT_COMMAND_NUM_PROPERTIES]; - -#define TYPE_SET_KEY_PHOTO_COMMAND (set_key_photo_command_get_type ()) -#define SET_KEY_PHOTO_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_KEY_PHOTO_COMMAND, SetKeyPhotoCommand)) -#define SET_KEY_PHOTO_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_KEY_PHOTO_COMMAND, SetKeyPhotoCommandClass)) -#define IS_SET_KEY_PHOTO_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_KEY_PHOTO_COMMAND)) -#define IS_SET_KEY_PHOTO_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_KEY_PHOTO_COMMAND)) -#define SET_KEY_PHOTO_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_KEY_PHOTO_COMMAND, SetKeyPhotoCommandClass)) - -typedef struct _SetKeyPhotoCommand SetKeyPhotoCommand; -typedef struct _SetKeyPhotoCommandClass SetKeyPhotoCommandClass; -typedef struct _SetKeyPhotoCommandPrivate SetKeyPhotoCommandPrivate; -enum { - SET_KEY_PHOTO_COMMAND_0_PROPERTY, - SET_KEY_PHOTO_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* set_key_photo_command_properties[SET_KEY_PHOTO_COMMAND_NUM_PROPERTIES]; - -#define TYPE_REVERT_SINGLE_COMMAND (revert_single_command_get_type ()) -#define REVERT_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommand)) -#define REVERT_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommandClass)) -#define IS_REVERT_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REVERT_SINGLE_COMMAND)) -#define IS_REVERT_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REVERT_SINGLE_COMMAND)) -#define REVERT_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommandClass)) - -typedef struct _RevertSingleCommand RevertSingleCommand; -typedef struct _RevertSingleCommandClass RevertSingleCommandClass; -typedef struct _RevertSingleCommandPrivate RevertSingleCommandPrivate; -enum { - REVERT_SINGLE_COMMAND_0_PROPERTY, - REVERT_SINGLE_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* revert_single_command_properties[REVERT_SINGLE_COMMAND_NUM_PROPERTIES]; - -#define TYPE_REVERT_MULTIPLE_COMMAND (revert_multiple_command_get_type ()) -#define REVERT_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommand)) -#define REVERT_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommandClass)) -#define IS_REVERT_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REVERT_MULTIPLE_COMMAND)) -#define IS_REVERT_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REVERT_MULTIPLE_COMMAND)) -#define REVERT_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommandClass)) - -typedef struct _RevertMultipleCommand RevertMultipleCommand; -typedef struct _RevertMultipleCommandClass RevertMultipleCommandClass; -typedef struct _RevertMultipleCommandPrivate RevertMultipleCommandPrivate; -enum { - REVERT_MULTIPLE_COMMAND_0_PROPERTY, - REVERT_MULTIPLE_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* revert_multiple_command_properties[REVERT_MULTIPLE_COMMAND_NUM_PROPERTIES]; - -#define TYPE_ENHANCE_SINGLE_COMMAND (enhance_single_command_get_type ()) -#define ENHANCE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommand)) -#define ENHANCE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommandClass)) -#define IS_ENHANCE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ENHANCE_SINGLE_COMMAND)) -#define IS_ENHANCE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ENHANCE_SINGLE_COMMAND)) -#define ENHANCE_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommandClass)) - -typedef struct _EnhanceSingleCommand EnhanceSingleCommand; -typedef struct _EnhanceSingleCommandClass EnhanceSingleCommandClass; -typedef struct _EnhanceSingleCommandPrivate EnhanceSingleCommandPrivate; -enum { - ENHANCE_SINGLE_COMMAND_0_PROPERTY, - ENHANCE_SINGLE_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* enhance_single_command_properties[ENHANCE_SINGLE_COMMAND_NUM_PROPERTIES]; - -#define TYPE_ENHANCE_MULTIPLE_COMMAND (enhance_multiple_command_get_type ()) -#define ENHANCE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommand)) -#define ENHANCE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommandClass)) -#define IS_ENHANCE_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ENHANCE_MULTIPLE_COMMAND)) -#define IS_ENHANCE_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ENHANCE_MULTIPLE_COMMAND)) -#define ENHANCE_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommandClass)) - -typedef struct _EnhanceMultipleCommand EnhanceMultipleCommand; -typedef struct _EnhanceMultipleCommandClass EnhanceMultipleCommandClass; -typedef struct _EnhanceMultipleCommandPrivate EnhanceMultipleCommandPrivate; -enum { - ENHANCE_MULTIPLE_COMMAND_0_PROPERTY, - ENHANCE_MULTIPLE_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* enhance_multiple_command_properties[ENHANCE_MULTIPLE_COMMAND_NUM_PROPERTIES]; - -#define TYPE_STRAIGHTEN_COMMAND (straighten_command_get_type ()) -#define STRAIGHTEN_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STRAIGHTEN_COMMAND, StraightenCommand)) -#define STRAIGHTEN_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STRAIGHTEN_COMMAND, StraightenCommandClass)) -#define IS_STRAIGHTEN_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STRAIGHTEN_COMMAND)) -#define IS_STRAIGHTEN_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STRAIGHTEN_COMMAND)) -#define STRAIGHTEN_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STRAIGHTEN_COMMAND, StraightenCommandClass)) - -typedef struct _StraightenCommand StraightenCommand; -typedef struct _StraightenCommandClass StraightenCommandClass; -typedef struct _StraightenCommandPrivate StraightenCommandPrivate; - -#define TYPE_BOX (box_get_type ()) -typedef struct _Box Box; -enum { - STRAIGHTEN_COMMAND_0_PROPERTY, - STRAIGHTEN_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* straighten_command_properties[STRAIGHTEN_COMMAND_NUM_PROPERTIES]; - -#define TYPE_CROP_COMMAND (crop_command_get_type ()) -#define CROP_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CROP_COMMAND, CropCommand)) -#define CROP_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CROP_COMMAND, CropCommandClass)) -#define IS_CROP_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CROP_COMMAND)) -#define IS_CROP_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CROP_COMMAND)) -#define CROP_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CROP_COMMAND, CropCommandClass)) - -typedef struct _CropCommand CropCommand; -typedef struct _CropCommandClass CropCommandClass; -typedef struct _CropCommandPrivate CropCommandPrivate; -enum { - CROP_COMMAND_0_PROPERTY, - CROP_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* crop_command_properties[CROP_COMMAND_NUM_PROPERTIES]; - -#define TYPE_ADJUST_COLORS_SINGLE_COMMAND (adjust_colors_single_command_get_type ()) -#define ADJUST_COLORS_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommand)) -#define ADJUST_COLORS_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommandClass)) -#define IS_ADJUST_COLORS_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND)) -#define IS_ADJUST_COLORS_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_COLORS_SINGLE_COMMAND)) -#define ADJUST_COLORS_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommandClass)) - -typedef struct _AdjustColorsSingleCommand AdjustColorsSingleCommand; -typedef struct _AdjustColorsSingleCommandClass AdjustColorsSingleCommandClass; -typedef struct _AdjustColorsSingleCommandPrivate AdjustColorsSingleCommandPrivate; -enum { - ADJUST_COLORS_SINGLE_COMMAND_0_PROPERTY, - ADJUST_COLORS_SINGLE_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* adjust_colors_single_command_properties[ADJUST_COLORS_SINGLE_COMMAND_NUM_PROPERTIES]; -#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL))) - -#define TYPE_ADJUST_COLORS_MULTIPLE_COMMAND (adjust_colors_multiple_command_get_type ()) -#define ADJUST_COLORS_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommand)) -#define ADJUST_COLORS_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommandClass)) -#define IS_ADJUST_COLORS_MULTIPLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND)) -#define IS_ADJUST_COLORS_MULTIPLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND)) -#define ADJUST_COLORS_MULTIPLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommandClass)) - -typedef struct _AdjustColorsMultipleCommand AdjustColorsMultipleCommand; -typedef struct _AdjustColorsMultipleCommandClass AdjustColorsMultipleCommandClass; -typedef struct _AdjustColorsMultipleCommandPrivate AdjustColorsMultipleCommandPrivate; -enum { - ADJUST_COLORS_MULTIPLE_COMMAND_0_PROPERTY, - ADJUST_COLORS_MULTIPLE_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* adjust_colors_multiple_command_properties[ADJUST_COLORS_MULTIPLE_COMMAND_NUM_PROPERTIES]; - -#define TYPE_REDEYE_COMMAND (redeye_command_get_type ()) -#define REDEYE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REDEYE_COMMAND, RedeyeCommand)) -#define REDEYE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REDEYE_COMMAND, RedeyeCommandClass)) -#define IS_REDEYE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REDEYE_COMMAND)) -#define IS_REDEYE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REDEYE_COMMAND)) -#define REDEYE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REDEYE_COMMAND, RedeyeCommandClass)) - -typedef struct _RedeyeCommand RedeyeCommand; -typedef struct _RedeyeCommandClass RedeyeCommandClass; -typedef struct _RedeyeCommandPrivate RedeyeCommandPrivate; - -#define EDITING_TOOLS_TYPE_REDEYE_INSTANCE (editing_tools_redeye_instance_get_type ()) -typedef struct _EditingToolsRedeyeInstance EditingToolsRedeyeInstance; -enum { - REDEYE_COMMAND_0_PROPERTY, - REDEYE_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* redeye_command_properties[REDEYE_COMMAND_NUM_PROPERTIES]; - -#define TYPE_MOVE_PHOTOS_COMMAND (move_photos_command_get_type ()) -#define MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)) -#define MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass)) -#define IS_MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MOVE_PHOTOS_COMMAND)) -#define IS_MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MOVE_PHOTOS_COMMAND)) -#define MOVE_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass)) - -typedef struct _MovePhotosCommand MovePhotosCommand; -typedef struct _MovePhotosCommandClass MovePhotosCommandClass; -typedef struct _MovePhotosCommandPrivate MovePhotosCommandPrivate; - -#define MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND (move_photos_command_real_move_photos_command_get_type ()) -#define MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommand)) -#define MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommandClass)) -#define MOVE_PHOTOS_COMMAND_IS_REAL_MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND)) -#define MOVE_PHOTOS_COMMAND_IS_REAL_MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND)) -#define MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommandClass)) - -typedef struct _MovePhotosCommandRealMovePhotosCommand MovePhotosCommandRealMovePhotosCommand; -typedef struct _MovePhotosCommandRealMovePhotosCommandClass MovePhotosCommandRealMovePhotosCommandClass; -enum { - MOVE_PHOTOS_COMMAND_0_PROPERTY, - MOVE_PHOTOS_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* move_photos_command_properties[MOVE_PHOTOS_COMMAND_NUM_PROPERTIES]; -typedef struct _MovePhotosCommandRealMovePhotosCommandPrivate MovePhotosCommandRealMovePhotosCommandPrivate; -enum { - MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_0_PROPERTY, - MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* move_photos_command_real_move_photos_command_properties[MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_NUM_PROPERTIES]; - -#define TYPE_EVENT_PAGE (event_page_get_type ()) -#define EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_PAGE, EventPage)) -#define EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_PAGE, EventPageClass)) -#define IS_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_PAGE)) -#define IS_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_PAGE)) -#define EVENT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_PAGE, EventPageClass)) - -typedef struct _EventPage EventPage; -typedef struct _EventPageClass EventPageClass; - -#define TYPE_NEW_EVENT_COMMAND (new_event_command_get_type ()) -#define NEW_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NEW_EVENT_COMMAND, NewEventCommand)) -#define NEW_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NEW_EVENT_COMMAND, NewEventCommandClass)) -#define IS_NEW_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NEW_EVENT_COMMAND)) -#define IS_NEW_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NEW_EVENT_COMMAND)) -#define NEW_EVENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NEW_EVENT_COMMAND, NewEventCommandClass)) - -typedef struct _NewEventCommand NewEventCommand; -typedef struct _NewEventCommandClass NewEventCommandClass; -typedef struct _NewEventCommandPrivate NewEventCommandPrivate; -enum { - NEW_EVENT_COMMAND_0_PROPERTY, - NEW_EVENT_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* new_event_command_properties[NEW_EVENT_COMMAND_NUM_PROPERTIES]; - -#define TYPE_SET_EVENT_COMMAND (set_event_command_get_type ()) -#define SET_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_EVENT_COMMAND, SetEventCommand)) -#define SET_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_EVENT_COMMAND, SetEventCommandClass)) -#define IS_SET_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_EVENT_COMMAND)) -#define IS_SET_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_EVENT_COMMAND)) -#define SET_EVENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_EVENT_COMMAND, SetEventCommandClass)) - -typedef struct _SetEventCommand SetEventCommand; -typedef struct _SetEventCommandClass SetEventCommandClass; -typedef struct _SetEventCommandPrivate SetEventCommandPrivate; -enum { - SET_EVENT_COMMAND_0_PROPERTY, - SET_EVENT_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* set_event_command_properties[SET_EVENT_COMMAND_NUM_PROPERTIES]; - -#define TYPE_MERGE_EVENTS_COMMAND (merge_events_command_get_type ()) -#define MERGE_EVENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MERGE_EVENTS_COMMAND, MergeEventsCommand)) -#define MERGE_EVENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MERGE_EVENTS_COMMAND, MergeEventsCommandClass)) -#define IS_MERGE_EVENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MERGE_EVENTS_COMMAND)) -#define IS_MERGE_EVENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MERGE_EVENTS_COMMAND)) -#define MERGE_EVENTS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MERGE_EVENTS_COMMAND, MergeEventsCommandClass)) - -typedef struct _MergeEventsCommand MergeEventsCommand; -typedef struct _MergeEventsCommandClass MergeEventsCommandClass; -typedef struct _MergeEventsCommandPrivate MergeEventsCommandPrivate; -enum { - MERGE_EVENTS_COMMAND_0_PROPERTY, - MERGE_EVENTS_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* merge_events_command_properties[MERGE_EVENTS_COMMAND_NUM_PROPERTIES]; - -#define TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND (duplicate_multiple_photos_command_get_type ()) -#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand)) -#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommandClass)) -#define IS_DUPLICATE_MULTIPLE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND)) -#define IS_DUPLICATE_MULTIPLE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND)) -#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommandClass)) - -typedef struct _DuplicateMultiplePhotosCommand DuplicateMultiplePhotosCommand; -typedef struct _DuplicateMultiplePhotosCommandClass DuplicateMultiplePhotosCommandClass; -typedef struct _DuplicateMultiplePhotosCommandPrivate DuplicateMultiplePhotosCommandPrivate; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; -enum { - DUPLICATE_MULTIPLE_PHOTOS_COMMAND_0_PROPERTY, - DUPLICATE_MULTIPLE_PHOTOS_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* duplicate_multiple_photos_command_properties[DUPLICATE_MULTIPLE_PHOTOS_COMMAND_NUM_PROPERTIES]; - -#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ()) -#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) - -typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; -typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; - -#define TYPE_SET_RATING_SINGLE_COMMAND (set_rating_single_command_get_type ()) -#define SET_RATING_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommand)) -#define SET_RATING_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommandClass)) -#define IS_SET_RATING_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_RATING_SINGLE_COMMAND)) -#define IS_SET_RATING_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_RATING_SINGLE_COMMAND)) -#define SET_RATING_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommandClass)) - -typedef struct _SetRatingSingleCommand SetRatingSingleCommand; -typedef struct _SetRatingSingleCommandClass SetRatingSingleCommandClass; -typedef struct _SetRatingSingleCommandPrivate SetRatingSingleCommandPrivate; - -#define TYPE_RATING (rating_get_type ()) -enum { - SET_RATING_SINGLE_COMMAND_0_PROPERTY, - SET_RATING_SINGLE_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* set_rating_single_command_properties[SET_RATING_SINGLE_COMMAND_NUM_PROPERTIES]; - -#define TYPE_SET_RATING_COMMAND (set_rating_command_get_type ()) -#define SET_RATING_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RATING_COMMAND, SetRatingCommand)) -#define SET_RATING_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_RATING_COMMAND, SetRatingCommandClass)) -#define IS_SET_RATING_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_RATING_COMMAND)) -#define IS_SET_RATING_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_RATING_COMMAND)) -#define SET_RATING_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_RATING_COMMAND, SetRatingCommandClass)) - -typedef struct _SetRatingCommand SetRatingCommand; -typedef struct _SetRatingCommandClass SetRatingCommandClass; -typedef struct _SetRatingCommandPrivate SetRatingCommandPrivate; -enum { - SET_RATING_COMMAND_0_PROPERTY, - SET_RATING_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* set_rating_command_properties[SET_RATING_COMMAND_NUM_PROPERTIES]; - -#define TYPE_SET_RAW_DEVELOPER_COMMAND (set_raw_developer_command_get_type ()) -#define SET_RAW_DEVELOPER_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand)) -#define SET_RAW_DEVELOPER_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommandClass)) -#define IS_SET_RAW_DEVELOPER_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND)) -#define IS_SET_RAW_DEVELOPER_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_RAW_DEVELOPER_COMMAND)) -#define SET_RAW_DEVELOPER_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommandClass)) - -typedef struct _SetRawDeveloperCommand SetRawDeveloperCommand; -typedef struct _SetRawDeveloperCommandClass SetRawDeveloperCommandClass; -typedef struct _SetRawDeveloperCommandPrivate SetRawDeveloperCommandPrivate; - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) -enum { - SET_RAW_DEVELOPER_COMMAND_0_PROPERTY, - SET_RAW_DEVELOPER_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* set_raw_developer_command_properties[SET_RAW_DEVELOPER_COMMAND_NUM_PROPERTIES]; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND (adjust_date_time_photo_command_get_type ()) -#define ADJUST_DATE_TIME_PHOTO_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommand)) -#define ADJUST_DATE_TIME_PHOTO_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommandClass)) -#define IS_ADJUST_DATE_TIME_PHOTO_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND)) -#define IS_ADJUST_DATE_TIME_PHOTO_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND)) -#define ADJUST_DATE_TIME_PHOTO_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommandClass)) - -typedef struct _AdjustDateTimePhotoCommand AdjustDateTimePhotoCommand; -typedef struct _AdjustDateTimePhotoCommandClass AdjustDateTimePhotoCommandClass; -typedef struct _AdjustDateTimePhotoCommandPrivate AdjustDateTimePhotoCommandPrivate; - -#define TYPE_DATEABLE (dateable_get_type ()) -#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable)) -#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE)) -#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface)) - -typedef struct _Dateable Dateable; -typedef struct _DateableIface DateableIface; -enum { - ADJUST_DATE_TIME_PHOTO_COMMAND_0_PROPERTY, - ADJUST_DATE_TIME_PHOTO_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* adjust_date_time_photo_command_properties[ADJUST_DATE_TIME_PHOTO_COMMAND_NUM_PROPERTIES]; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_EVENT_SOURCE_COLLECTION (event_source_collection_get_type ()) -#define EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection)) -#define EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass)) -#define IS_EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE_COLLECTION)) -#define IS_EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE_COLLECTION)) -#define EVENT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass)) - -typedef struct _EventSourceCollection EventSourceCollection; -typedef struct _EventSourceCollectionClass EventSourceCollectionClass; - -#define TYPE_EVENT_VIEW (event_view_get_type ()) -#define EVENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_VIEW, EventView)) -#define EVENT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_VIEW, EventViewClass)) -#define IS_EVENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_VIEW)) -#define IS_EVENT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_VIEW)) -#define EVENT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_VIEW, EventViewClass)) - -typedef struct _EventView EventView; -typedef struct _EventViewClass EventViewClass; - -#define TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND (adjust_date_time_photos_command_get_type ()) -#define ADJUST_DATE_TIME_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand)) -#define ADJUST_DATE_TIME_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommandClass)) -#define IS_ADJUST_DATE_TIME_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND)) -#define IS_ADJUST_DATE_TIME_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND)) -#define ADJUST_DATE_TIME_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommandClass)) - -typedef struct _AdjustDateTimePhotosCommand AdjustDateTimePhotosCommand; -typedef struct _AdjustDateTimePhotosCommandClass AdjustDateTimePhotosCommandClass; -typedef struct _AdjustDateTimePhotosCommandPrivate AdjustDateTimePhotosCommandPrivate; -enum { - ADJUST_DATE_TIME_PHOTOS_COMMAND_0_PROPERTY, - ADJUST_DATE_TIME_PHOTOS_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* adjust_date_time_photos_command_properties[ADJUST_DATE_TIME_PHOTOS_COMMAND_NUM_PROPERTIES]; - -#define TYPE_ADD_TAGS_COMMAND (add_tags_command_get_type ()) -#define ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommand)) -#define ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass)) -#define IS_ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_COMMAND)) -#define IS_ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_COMMAND)) -#define ADD_TAGS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass)) - -typedef struct _AddTagsCommand AddTagsCommand; -typedef struct _AddTagsCommandClass AddTagsCommandClass; -typedef struct _AddTagsCommandPrivate AddTagsCommandPrivate; -enum { - ADD_TAGS_COMMAND_0_PROPERTY, - ADD_TAGS_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* add_tags_command_properties[ADD_TAGS_COMMAND_NUM_PROPERTIES]; - -#define TYPE_VIDEO_SOURCE_COLLECTION (video_source_collection_get_type ()) -#define VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection)) -#define VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) -#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION)) -#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION)) -#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) - -typedef struct _VideoSourceCollection VideoSourceCollection; -typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass; - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; - -#define TYPE_RENAME_TAG_COMMAND (rename_tag_command_get_type ()) -#define RENAME_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RENAME_TAG_COMMAND, RenameTagCommand)) -#define RENAME_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RENAME_TAG_COMMAND, RenameTagCommandClass)) -#define IS_RENAME_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RENAME_TAG_COMMAND)) -#define IS_RENAME_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RENAME_TAG_COMMAND)) -#define RENAME_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RENAME_TAG_COMMAND, RenameTagCommandClass)) - -typedef struct _RenameTagCommand RenameTagCommand; -typedef struct _RenameTagCommandClass RenameTagCommandClass; -typedef struct _RenameTagCommandPrivate RenameTagCommandPrivate; -enum { - RENAME_TAG_COMMAND_0_PROPERTY, - RENAME_TAG_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* rename_tag_command_properties[RENAME_TAG_COMMAND_NUM_PROPERTIES]; - -#define TYPE_DELETE_TAG_COMMAND (delete_tag_command_get_type ()) -#define DELETE_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_TAG_COMMAND, DeleteTagCommand)) -#define DELETE_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandClass)) -#define IS_DELETE_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DELETE_TAG_COMMAND)) -#define IS_DELETE_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DELETE_TAG_COMMAND)) -#define DELETE_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandClass)) - -typedef struct _DeleteTagCommand DeleteTagCommand; -typedef struct _DeleteTagCommandClass DeleteTagCommandClass; -typedef struct _DeleteTagCommandPrivate DeleteTagCommandPrivate; -enum { - DELETE_TAG_COMMAND_0_PROPERTY, - DELETE_TAG_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* delete_tag_command_properties[DELETE_TAG_COMMAND_NUM_PROPERTIES]; - -#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ()) -#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection)) -#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) -#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION)) -#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION)) -#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) - -typedef struct _TagSourceCollection TagSourceCollection; -typedef struct _TagSourceCollectionClass TagSourceCollectionClass; - -#define TYPE_NEW_CHILD_TAG_COMMAND (new_child_tag_command_get_type ()) -#define NEW_CHILD_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommand)) -#define NEW_CHILD_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommandClass)) -#define IS_NEW_CHILD_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NEW_CHILD_TAG_COMMAND)) -#define IS_NEW_CHILD_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NEW_CHILD_TAG_COMMAND)) -#define NEW_CHILD_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommandClass)) - -typedef struct _NewChildTagCommand NewChildTagCommand; -typedef struct _NewChildTagCommandClass NewChildTagCommandClass; -typedef struct _NewChildTagCommandPrivate NewChildTagCommandPrivate; -enum { - NEW_CHILD_TAG_COMMAND_0_PROPERTY, - NEW_CHILD_TAG_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* new_child_tag_command_properties[NEW_CHILD_TAG_COMMAND_NUM_PROPERTIES]; - -#define TYPE_NEW_ROOT_TAG_COMMAND (new_root_tag_command_get_type ()) -#define NEW_ROOT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommand)) -#define NEW_ROOT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommandClass)) -#define IS_NEW_ROOT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NEW_ROOT_TAG_COMMAND)) -#define IS_NEW_ROOT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NEW_ROOT_TAG_COMMAND)) -#define NEW_ROOT_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommandClass)) - -typedef struct _NewRootTagCommand NewRootTagCommand; -typedef struct _NewRootTagCommandClass NewRootTagCommandClass; -typedef struct _NewRootTagCommandPrivate NewRootTagCommandPrivate; -enum { - NEW_ROOT_TAG_COMMAND_0_PROPERTY, - NEW_ROOT_TAG_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* new_root_tag_command_properties[NEW_ROOT_TAG_COMMAND_NUM_PROPERTIES]; - -#define TYPE_REPARENT_TAG_COMMAND (reparent_tag_command_get_type ()) -#define REPARENT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommand)) -#define REPARENT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommandClass)) -#define IS_REPARENT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REPARENT_TAG_COMMAND)) -#define IS_REPARENT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REPARENT_TAG_COMMAND)) -#define REPARENT_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommandClass)) - -typedef struct _ReparentTagCommand ReparentTagCommand; -typedef struct _ReparentTagCommandClass ReparentTagCommandClass; -typedef struct _ReparentTagCommandPrivate ReparentTagCommandPrivate; -enum { - REPARENT_TAG_COMMAND_0_PROPERTY, - REPARENT_TAG_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* reparent_tag_command_properties[REPARENT_TAG_COMMAND_NUM_PROPERTIES]; -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) - -#define TYPE_MODIFY_TAGS_COMMAND (modify_tags_command_get_type ()) -#define MODIFY_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommand)) -#define MODIFY_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommandClass)) -#define IS_MODIFY_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MODIFY_TAGS_COMMAND)) -#define IS_MODIFY_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MODIFY_TAGS_COMMAND)) -#define MODIFY_TAGS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommandClass)) - -typedef struct _ModifyTagsCommand ModifyTagsCommand; -typedef struct _ModifyTagsCommandClass ModifyTagsCommandClass; -typedef struct _ModifyTagsCommandPrivate ModifyTagsCommandPrivate; -enum { - MODIFY_TAGS_COMMAND_0_PROPERTY, - MODIFY_TAGS_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* modify_tags_command_properties[MODIFY_TAGS_COMMAND_NUM_PROPERTIES]; - -#define TYPE_TAG_UNTAG_PHOTOS_COMMAND (tag_untag_photos_command_get_type ()) -#define TAG_UNTAG_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommand)) -#define TAG_UNTAG_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandClass)) -#define IS_TAG_UNTAG_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND)) -#define IS_TAG_UNTAG_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_UNTAG_PHOTOS_COMMAND)) -#define TAG_UNTAG_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandClass)) - -typedef struct _TagUntagPhotosCommand TagUntagPhotosCommand; -typedef struct _TagUntagPhotosCommandClass TagUntagPhotosCommandClass; -typedef struct _TagUntagPhotosCommandPrivate TagUntagPhotosCommandPrivate; -enum { - TAG_UNTAG_PHOTOS_COMMAND_0_PROPERTY, - TAG_UNTAG_PHOTOS_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* tag_untag_photos_command_properties[TAG_UNTAG_PHOTOS_COMMAND_NUM_PROPERTIES]; - -#define TYPE_RENAME_SAVED_SEARCH_COMMAND (rename_saved_search_command_get_type ()) -#define RENAME_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommand)) -#define RENAME_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommandClass)) -#define IS_RENAME_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RENAME_SAVED_SEARCH_COMMAND)) -#define IS_RENAME_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RENAME_SAVED_SEARCH_COMMAND)) -#define RENAME_SAVED_SEARCH_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommandClass)) - -typedef struct _RenameSavedSearchCommand RenameSavedSearchCommand; -typedef struct _RenameSavedSearchCommandClass RenameSavedSearchCommandClass; -typedef struct _RenameSavedSearchCommandPrivate RenameSavedSearchCommandPrivate; - -#define TYPE_SAVED_SEARCH (saved_search_get_type ()) -#define SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH, SavedSearch)) -#define SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH, SavedSearchClass)) -#define IS_SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH)) -#define IS_SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH)) -#define SAVED_SEARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH, SavedSearchClass)) - -typedef struct _SavedSearch SavedSearch; -typedef struct _SavedSearchClass SavedSearchClass; -enum { - RENAME_SAVED_SEARCH_COMMAND_0_PROPERTY, - RENAME_SAVED_SEARCH_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* rename_saved_search_command_properties[RENAME_SAVED_SEARCH_COMMAND_NUM_PROPERTIES]; - -#define TYPE_DELETE_SAVED_SEARCH_COMMAND (delete_saved_search_command_get_type ()) -#define DELETE_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommand)) -#define DELETE_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandClass)) -#define IS_DELETE_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND)) -#define IS_DELETE_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DELETE_SAVED_SEARCH_COMMAND)) -#define DELETE_SAVED_SEARCH_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandClass)) - -typedef struct _DeleteSavedSearchCommand DeleteSavedSearchCommand; -typedef struct _DeleteSavedSearchCommandClass DeleteSavedSearchCommandClass; -typedef struct _DeleteSavedSearchCommandPrivate DeleteSavedSearchCommandPrivate; -enum { - DELETE_SAVED_SEARCH_COMMAND_0_PROPERTY, - DELETE_SAVED_SEARCH_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* delete_saved_search_command_properties[DELETE_SAVED_SEARCH_COMMAND_NUM_PROPERTIES]; - -#define TYPE_SAVED_SEARCH_TABLE (saved_search_table_get_type ()) -#define SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTable)) -#define SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass)) -#define IS_SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_TABLE)) -#define IS_SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_TABLE)) -#define SAVED_SEARCH_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass)) - -typedef struct _SavedSearchTable SavedSearchTable; -typedef struct _SavedSearchTableClass SavedSearchTableClass; -#define _saved_search_table_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_table_unref (var), NULL))) - -#define TYPE_TRASH_UNTRASH_PHOTOS_COMMAND (trash_untrash_photos_command_get_type ()) -#define TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommand)) -#define TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass)) -#define IS_TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND)) -#define IS_TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND)) -#define TRASH_UNTRASH_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass)) - -typedef struct _TrashUntrashPhotosCommand TrashUntrashPhotosCommand; -typedef struct _TrashUntrashPhotosCommandClass TrashUntrashPhotosCommandClass; -typedef struct _TrashUntrashPhotosCommandPrivate TrashUntrashPhotosCommandPrivate; -enum { - TRASH_UNTRASH_PHOTOS_COMMAND_0_PROPERTY, - TRASH_UNTRASH_PHOTOS_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* trash_untrash_photos_command_properties[TRASH_UNTRASH_PHOTOS_COMMAND_NUM_PROPERTIES]; - -#define TYPE_FLAG_UNFLAG_COMMAND (flag_unflag_command_get_type ()) -#define FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand)) -#define FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass)) -#define IS_FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAG_UNFLAG_COMMAND)) -#define IS_FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLAG_UNFLAG_COMMAND)) -#define FLAG_UNFLAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass)) - -typedef struct _FlagUnflagCommand FlagUnflagCommand; -typedef struct _FlagUnflagCommandClass FlagUnflagCommandClass; -typedef struct _FlagUnflagCommandPrivate FlagUnflagCommandPrivate; -enum { - FLAG_UNFLAG_COMMAND_0_PROPERTY, - FLAG_UNFLAG_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* flag_unflag_command_properties[FLAG_UNFLAG_COMMAND_NUM_PROPERTIES]; - -#define TYPE_FLAGGABLE (flaggable_get_type ()) -#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable)) -#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE)) -#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface)) - -typedef struct _Flaggable Flaggable; -typedef struct _FlaggableIface FlaggableIface; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _CommandDescriptionIface { - GTypeInterface parent_iface; - gchar* (*get_name) (CommandDescription* self); - gchar* (*get_explanation) (CommandDescription* self); -}; - -struct _Command { - GObject parent_instance; - CommandPrivate * priv; -}; - -struct _CommandClass { - GObjectClass parent_class; - void (*prepare) (Command* self); - void (*execute) (Command* self); - void (*undo) (Command* self); - void (*redo) (Command* self); - gboolean (*compress) (Command* self, Command* command); - gchar* (*get_name) (Command* self); - gchar* (*get_explanation) (Command* self); -}; - -struct _PageCommand { - Command parent_instance; - PageCommandPrivate * priv; -}; - -struct _PageCommandClass { - CommandClass parent_class; -}; - -struct _PageCommandPrivate { - Page* page; - gboolean auto_return; - Photo* library_photo; - CollectionPage* collection_page; -}; - -struct _SingleDataSourceCommand { - PageCommand parent_instance; - SingleDataSourceCommandPrivate * priv; - DataSource* source; -}; - -struct _SingleDataSourceCommandClass { - PageCommandClass parent_class; -}; - -struct _SimpleProxyableCommand { - PageCommand parent_instance; - SimpleProxyableCommandPrivate * priv; -}; - -struct _SimpleProxyableCommandClass { - PageCommandClass parent_class; - void (*execute_on_source) (SimpleProxyableCommand* self, DataSource* source); - void (*undo_on_source) (SimpleProxyableCommand* self, DataSource* source); -}; - -struct _SimpleProxyableCommandPrivate { - SourceProxy* proxy; - GeeHashSet* proxies; -}; - -struct _ProxyableIface { - GTypeInterface parent_iface; - SourceProxy* (*get_proxy) (Proxyable* self); -}; - -struct _SinglePhotoTransformationCommand { - SingleDataSourceCommand parent_instance; - SinglePhotoTransformationCommandPrivate * priv; -}; - -struct _SinglePhotoTransformationCommandClass { - SingleDataSourceCommandClass parent_class; -}; - -struct _SinglePhotoTransformationCommandPrivate { - PhotoTransformationState* state; -}; - -struct _GenericPhotoTransformationCommand { - SingleDataSourceCommand parent_instance; - GenericPhotoTransformationCommandPrivate * priv; -}; - -struct _GenericPhotoTransformationCommandClass { - SingleDataSourceCommandClass parent_class; - void (*execute_on_photo) (GenericPhotoTransformationCommand* self, Photo* photo); - gboolean (*can_compress) (GenericPhotoTransformationCommand* self, Command* command); -}; - -struct _GenericPhotoTransformationCommandPrivate { - PhotoTransformationState* original_state; - PhotoTransformationState* transformed_state; -}; - -struct _MultipleDataSourceCommand { - PageCommand parent_instance; - MultipleDataSourceCommandPrivate * priv; - GeeArrayList* source_list; -}; - -struct _MultipleDataSourceCommandClass { - PageCommandClass parent_class; - void (*execute_on_source) (MultipleDataSourceCommand* self, DataSource* source); - void (*undo_on_source) (MultipleDataSourceCommand* self, DataSource* source); -}; - -struct _MultipleDataSourceCommandPrivate { - gchar* progress_text; - gchar* undo_progress_text; - GeeArrayList* acted_upon; - GeeHashSet* hooked_collections; -}; - -struct _MultipleDataSourceAtOnceCommand { - PageCommand parent_instance; - MultipleDataSourceAtOnceCommandPrivate * priv; -}; - -struct _MultipleDataSourceAtOnceCommandClass { - PageCommandClass parent_class; - void (*execute_on_all) (MultipleDataSourceAtOnceCommand* self, GeeCollection* sources); - void (*undo_on_all) (MultipleDataSourceAtOnceCommand* self, GeeCollection* sources); -}; - -struct _MultipleDataSourceAtOnceCommandPrivate { - GeeHashSet* sources; - GeeHashSet* hooked_collections; -}; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -struct _MultiplePhotoTransformationCommand { - MultipleDataSourceCommand parent_instance; - MultiplePhotoTransformationCommandPrivate * priv; -}; - -struct _MultiplePhotoTransformationCommandClass { - MultipleDataSourceCommandClass parent_class; -}; - -struct _MultiplePhotoTransformationCommandPrivate { - GeeHashMap* map; -}; - -struct _RotateSingleCommand { - SingleDataSourceCommand parent_instance; - RotateSingleCommandPrivate * priv; -}; - -struct _RotateSingleCommandClass { - SingleDataSourceCommandClass parent_class; -}; - -typedef enum { - ROTATION_CLOCKWISE, - ROTATION_COUNTERCLOCKWISE, - ROTATION_MIRROR, - ROTATION_UPSIDE_DOWN -} Rotation; - -struct _RotateSingleCommandPrivate { - Rotation rotation; -}; - -struct _RotateMultipleCommand { - MultipleDataSourceCommand parent_instance; - RotateMultipleCommandPrivate * priv; -}; - -struct _RotateMultipleCommandClass { - MultipleDataSourceCommandClass parent_class; -}; - -struct _RotateMultipleCommandPrivate { - Rotation rotation; -}; - -struct _EditTitleCommand { - SingleDataSourceCommand parent_instance; - EditTitleCommandPrivate * priv; -}; - -struct _EditTitleCommandClass { - SingleDataSourceCommandClass parent_class; -}; - -struct _EditTitleCommandPrivate { - gchar* new_title; - gchar* old_title; -}; - -struct _EditCommentCommand { - SingleDataSourceCommand parent_instance; - EditCommentCommandPrivate * priv; -}; - -struct _EditCommentCommandClass { - SingleDataSourceCommandClass parent_class; -}; - -struct _EditCommentCommandPrivate { - gchar* new_comment; - gchar* old_comment; -}; - -struct _EditMultipleTitlesCommand { - MultipleDataSourceAtOnceCommand parent_instance; - EditMultipleTitlesCommandPrivate * priv; - gchar* new_title; - GeeHashMap* old_titles; -}; - -struct _EditMultipleTitlesCommandClass { - MultipleDataSourceAtOnceCommandClass parent_class; -}; - -struct _EditMultipleCommentsCommand { - MultipleDataSourceAtOnceCommand parent_instance; - EditMultipleCommentsCommandPrivate * priv; - gchar* new_comment; - GeeHashMap* old_comments; -}; - -struct _EditMultipleCommentsCommandClass { - MultipleDataSourceAtOnceCommandClass parent_class; -}; - -struct _RenameEventCommand { - SimpleProxyableCommand parent_instance; - RenameEventCommandPrivate * priv; -}; - -struct _RenameEventCommandClass { - SimpleProxyableCommandClass parent_class; -}; - -struct _RenameEventCommandPrivate { - gchar* new_name; - gchar* old_name; -}; - -struct _EditEventCommentCommand { - SimpleProxyableCommand parent_instance; - EditEventCommentCommandPrivate * priv; -}; - -struct _EditEventCommentCommandClass { - SimpleProxyableCommandClass parent_class; -}; - -struct _EditEventCommentCommandPrivate { - gchar* new_comment; - gchar* old_comment; -}; - -struct _SetKeyPhotoCommand { - SingleDataSourceCommand parent_instance; - SetKeyPhotoCommandPrivate * priv; -}; - -struct _SetKeyPhotoCommandClass { - SingleDataSourceCommandClass parent_class; -}; - -struct _SetKeyPhotoCommandPrivate { - MediaSource* new_primary_source; - MediaSource* old_primary_source; -}; - -struct _RevertSingleCommand { - GenericPhotoTransformationCommand parent_instance; - RevertSingleCommandPrivate * priv; -}; - -struct _RevertSingleCommandClass { - GenericPhotoTransformationCommandClass parent_class; -}; - -struct _RevertMultipleCommand { - MultiplePhotoTransformationCommand parent_instance; - RevertMultipleCommandPrivate * priv; -}; - -struct _RevertMultipleCommandClass { - MultiplePhotoTransformationCommandClass parent_class; -}; - -struct _EnhanceSingleCommand { - GenericPhotoTransformationCommand parent_instance; - EnhanceSingleCommandPrivate * priv; -}; - -struct _EnhanceSingleCommandClass { - GenericPhotoTransformationCommandClass parent_class; -}; - -struct _EnhanceMultipleCommand { - MultiplePhotoTransformationCommand parent_instance; - EnhanceMultipleCommandPrivate * priv; -}; - -struct _EnhanceMultipleCommandClass { - MultiplePhotoTransformationCommandClass parent_class; -}; - -struct _StraightenCommand { - GenericPhotoTransformationCommand parent_instance; - StraightenCommandPrivate * priv; -}; - -struct _StraightenCommandClass { - GenericPhotoTransformationCommandClass parent_class; -}; - -struct _Box { - gint left; - gint top; - gint right; - gint bottom; -}; - -struct _StraightenCommandPrivate { - gdouble theta; - Box crop; -}; - -struct _CropCommand { - GenericPhotoTransformationCommand parent_instance; - CropCommandPrivate * priv; -}; - -struct _CropCommandClass { - GenericPhotoTransformationCommandClass parent_class; -}; - -struct _CropCommandPrivate { - Box crop; -}; - -struct _AdjustColorsSingleCommand { - GenericPhotoTransformationCommand parent_instance; - AdjustColorsSingleCommandPrivate * priv; -}; - -struct _AdjustColorsSingleCommandClass { - GenericPhotoTransformationCommandClass parent_class; -}; - -struct _AdjustColorsSingleCommandPrivate { - PixelTransformationBundle* transformations; -}; - -struct _AdjustColorsMultipleCommand { - MultiplePhotoTransformationCommand parent_instance; - AdjustColorsMultipleCommandPrivate * priv; -}; - -struct _AdjustColorsMultipleCommandClass { - MultiplePhotoTransformationCommandClass parent_class; -}; - -struct _AdjustColorsMultipleCommandPrivate { - PixelTransformationBundle* transformations; -}; - -struct _RedeyeCommand { - GenericPhotoTransformationCommand parent_instance; - RedeyeCommandPrivate * priv; -}; - -struct _RedeyeCommandClass { - GenericPhotoTransformationCommandClass parent_class; -}; - -struct _EditingToolsRedeyeInstance { - GdkPoint center; - gint radius; -}; - -struct _RedeyeCommandPrivate { - EditingToolsRedeyeInstance redeye_instance; -}; - -struct _MovePhotosCommand { - Command parent_instance; - MovePhotosCommandPrivate * priv; - MovePhotosCommandRealMovePhotosCommand* real_command; -}; - -struct _MovePhotosCommandClass { - CommandClass parent_class; -}; - -struct _MovePhotosCommandRealMovePhotosCommand { - MultipleDataSourceCommand parent_instance; - MovePhotosCommandRealMovePhotosCommandPrivate * priv; -}; - -struct _MovePhotosCommandRealMovePhotosCommandClass { - MultipleDataSourceCommandClass parent_class; -}; - -struct _MovePhotosCommandRealMovePhotosCommandPrivate { - SourceProxy* new_event_proxy; - GeeHashMap* old_events; -}; - -struct _NewEventCommand { - MovePhotosCommand parent_instance; - NewEventCommandPrivate * priv; -}; - -struct _NewEventCommandClass { - MovePhotosCommandClass parent_class; -}; - -struct _SetEventCommand { - MovePhotosCommand parent_instance; - SetEventCommandPrivate * priv; -}; - -struct _SetEventCommandClass { - MovePhotosCommandClass parent_class; -}; - -struct _MergeEventsCommand { - MovePhotosCommand parent_instance; - MergeEventsCommandPrivate * priv; -}; - -struct _MergeEventsCommandClass { - MovePhotosCommandClass parent_class; -}; - -struct _DuplicateMultiplePhotosCommand { - MultipleDataSourceCommand parent_instance; - DuplicateMultiplePhotosCommandPrivate * priv; -}; - -struct _DuplicateMultiplePhotosCommandClass { - MultipleDataSourceCommandClass parent_class; -}; - -struct _DuplicateMultiplePhotosCommandPrivate { - GeeHashMap* dupes; - gint failed; -}; - -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _SetRatingSingleCommand { - SingleDataSourceCommand parent_instance; - SetRatingSingleCommandPrivate * priv; -}; - -struct _SetRatingSingleCommandClass { - SingleDataSourceCommandClass parent_class; -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -struct _SetRatingSingleCommandPrivate { - Rating last_rating; - Rating new_rating; - gboolean set_direct; - gboolean incrementing; -}; - -struct _SetRatingCommand { - MultipleDataSourceCommand parent_instance; - SetRatingCommandPrivate * priv; -}; - -struct _SetRatingCommandClass { - MultipleDataSourceCommandClass parent_class; -}; - -struct _SetRatingCommandPrivate { - GeeHashMap* last_rating_map; - Rating new_rating; - gboolean set_direct; - gboolean incrementing; - gint action_count; -}; - -struct _SetRawDeveloperCommand { - MultipleDataSourceCommand parent_instance; - SetRawDeveloperCommandPrivate * priv; -}; - -struct _SetRawDeveloperCommandClass { - MultipleDataSourceCommandClass parent_class; -}; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _SetRawDeveloperCommandPrivate { - GeeHashMap* last_developer_map; - GeeHashMap* last_transformation_map; - RawDeveloper new_developer; -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _AdjustDateTimePhotoCommand { - SingleDataSourceCommand parent_instance; - AdjustDateTimePhotoCommandPrivate * priv; -}; - -struct _AdjustDateTimePhotoCommandClass { - SingleDataSourceCommandClass parent_class; -}; - -struct _DateableIface { - GTypeInterface parent_iface; - void (*set_exposure_time) (Dateable* self, time_t target_time); - time_t (*get_exposure_time) (Dateable* self); -}; - -struct _AdjustDateTimePhotoCommandPrivate { - Dateable* dateable; - Event* prev_event; - gint64 time_shift; - gboolean modify_original; -}; - -struct _AdjustDateTimePhotosCommand { - MultipleDataSourceCommand parent_instance; - AdjustDateTimePhotosCommandPrivate * priv; -}; - -struct _AdjustDateTimePhotosCommandClass { - MultipleDataSourceCommandClass parent_class; -}; - -struct _AdjustDateTimePhotosCommandPrivate { - gint64 time_shift; - gboolean keep_relativity; - gboolean modify_originals; - GeeMap* prev_events; - time_t* new_time; - GeeHashMap* old_times; - GeeArrayList* error_list; -}; - -struct _AddTagsCommand { - PageCommand parent_instance; - AddTagsCommandPrivate * priv; -}; - -struct _AddTagsCommandClass { - PageCommandClass parent_class; -}; - -struct _AddTagsCommandPrivate { - GeeHashMap* map; -}; - -struct _RenameTagCommand { - SimpleProxyableCommand parent_instance; - RenameTagCommandPrivate * priv; -}; - -struct _RenameTagCommandClass { - SimpleProxyableCommandClass parent_class; -}; - -struct _RenameTagCommandPrivate { - gchar* old_name; - gchar* new_name; -}; - -struct _DeleteTagCommand { - SimpleProxyableCommand parent_instance; - DeleteTagCommandPrivate * priv; -}; - -struct _DeleteTagCommandClass { - SimpleProxyableCommandClass parent_class; -}; - -struct _DeleteTagCommandPrivate { - GeeList* recursive_victim_proxies; -}; - -struct _NewChildTagCommand { - SimpleProxyableCommand parent_instance; - NewChildTagCommandPrivate * priv; -}; - -struct _NewChildTagCommandClass { - SimpleProxyableCommandClass parent_class; -}; - -struct _NewChildTagCommandPrivate { - Tag* created_child; -}; - -struct _NewRootTagCommand { - PageCommand parent_instance; - NewRootTagCommandPrivate * priv; -}; - -struct _NewRootTagCommandClass { - PageCommandClass parent_class; -}; - -struct _NewRootTagCommandPrivate { - SourceProxy* created_proxy; -}; - -struct _ReparentTagCommand { - PageCommand parent_instance; - ReparentTagCommandPrivate * priv; -}; - -struct _ReparentTagCommandClass { - PageCommandClass parent_class; -}; - -struct _ReparentTagCommandPrivate { - gchar* from_path; - gchar* to_path; - gchar* to_path_parent_path; - GeeList* src_before_state; - GeeList* dest_before_state; - GeeList* after_state; - GeeHashSet* sources_in_play; - GeeMap* dest_parent_attachments; - GeeMap* src_parent_detachments; - GeeMap* in_play_child_structure; - GeeMap* existing_dest_child_structure; - GeeSet* existing_dest_membership; - gboolean to_path_exists; -}; - -struct _ModifyTagsCommand { - SingleDataSourceCommand parent_instance; - ModifyTagsCommandPrivate * priv; -}; - -struct _ModifyTagsCommandClass { - SingleDataSourceCommandClass parent_class; -}; - -struct _ModifyTagsCommandPrivate { - MediaSource* media; - GeeArrayList* to_add; - GeeArrayList* to_remove; -}; - -struct _TagUntagPhotosCommand { - SimpleProxyableCommand parent_instance; - TagUntagPhotosCommandPrivate * priv; -}; - -struct _TagUntagPhotosCommandClass { - SimpleProxyableCommandClass parent_class; -}; - -struct _TagUntagPhotosCommandPrivate { - GeeCollection* sources; - gboolean attach; - GeeMultiMap* detached_from; - GeeList* attached_to; -}; - -struct _RenameSavedSearchCommand { - SingleDataSourceCommand parent_instance; - RenameSavedSearchCommandPrivate * priv; -}; - -struct _RenameSavedSearchCommandClass { - SingleDataSourceCommandClass parent_class; -}; - -struct _RenameSavedSearchCommandPrivate { - SavedSearch* search; - gchar* old_name; - gchar* new_name; -}; - -struct _DeleteSavedSearchCommand { - SingleDataSourceCommand parent_instance; - DeleteSavedSearchCommandPrivate * priv; -}; - -struct _DeleteSavedSearchCommandClass { - SingleDataSourceCommandClass parent_class; -}; - -struct _DeleteSavedSearchCommandPrivate { - SavedSearch* search; -}; - -struct _TrashUntrashPhotosCommand { - PageCommand parent_instance; - TrashUntrashPhotosCommandPrivate * priv; -}; - -struct _TrashUntrashPhotosCommandClass { - PageCommandClass parent_class; -}; - -struct _TrashUntrashPhotosCommandPrivate { - GeeCollection* sources; - gboolean to_trash; -}; - -struct _FlagUnflagCommand { - MultipleDataSourceAtOnceCommand parent_instance; - FlagUnflagCommandPrivate * priv; -}; - -struct _FlagUnflagCommandClass { - MultipleDataSourceAtOnceCommandClass parent_class; -}; - -struct _FlagUnflagCommandPrivate { - gboolean flag; - ProgressDialog* progress_dialog; -}; - -struct _FlaggableIface { - GTypeInterface parent_iface; - gboolean (*is_flagged) (Flaggable* self); - void (*mark_flagged) (Flaggable* self); - void (*mark_unflagged) (Flaggable* self); -}; - - -static gpointer page_command_parent_class = NULL; -static gpointer single_data_source_command_parent_class = NULL; -static gpointer simple_proxyable_command_parent_class = NULL; -static gpointer single_photo_transformation_command_parent_class = NULL; -static gpointer generic_photo_transformation_command_parent_class = NULL; -static gpointer multiple_data_source_command_parent_class = NULL; -static gpointer multiple_data_source_at_once_command_parent_class = NULL; -static gpointer multiple_photo_transformation_command_parent_class = NULL; -static gpointer rotate_single_command_parent_class = NULL; -static gpointer rotate_multiple_command_parent_class = NULL; -static gpointer edit_title_command_parent_class = NULL; -static gpointer edit_comment_command_parent_class = NULL; -static gpointer edit_multiple_titles_command_parent_class = NULL; -static gpointer edit_multiple_comments_command_parent_class = NULL; -static gpointer rename_event_command_parent_class = NULL; -static gpointer edit_event_comment_command_parent_class = NULL; -static gpointer set_key_photo_command_parent_class = NULL; -static gpointer revert_single_command_parent_class = NULL; -static gpointer revert_multiple_command_parent_class = NULL; -static gpointer enhance_single_command_parent_class = NULL; -static gpointer enhance_multiple_command_parent_class = NULL; -static gpointer straighten_command_parent_class = NULL; -static gpointer crop_command_parent_class = NULL; -static gpointer adjust_colors_single_command_parent_class = NULL; -static gpointer adjust_colors_multiple_command_parent_class = NULL; -static gpointer redeye_command_parent_class = NULL; -static gpointer move_photos_command_parent_class = NULL; -static gpointer move_photos_command_real_move_photos_command_parent_class = NULL; -static gpointer new_event_command_parent_class = NULL; -static gpointer set_event_command_parent_class = NULL; -static gpointer merge_events_command_parent_class = NULL; -static gpointer duplicate_multiple_photos_command_parent_class = NULL; -extern LibraryPhotoSourceCollection* library_photo_global; -static gpointer set_rating_single_command_parent_class = NULL; -static gpointer set_rating_command_parent_class = NULL; -static gpointer set_raw_developer_command_parent_class = NULL; -static gpointer adjust_date_time_photo_command_parent_class = NULL; -extern EventSourceCollection* event_global; -static gpointer adjust_date_time_photos_command_parent_class = NULL; -static gpointer add_tags_command_parent_class = NULL; -extern VideoSourceCollection* video_global; -static gpointer rename_tag_command_parent_class = NULL; -static gpointer delete_tag_command_parent_class = NULL; -extern TagSourceCollection* tag_global; -static gpointer new_child_tag_command_parent_class = NULL; -static gpointer new_root_tag_command_parent_class = NULL; -static gpointer reparent_tag_command_parent_class = NULL; -static gpointer modify_tags_command_parent_class = NULL; -static gpointer tag_untag_photos_command_parent_class = NULL; -static gpointer rename_saved_search_command_parent_class = NULL; -static gpointer delete_saved_search_command_parent_class = NULL; -static gpointer trash_untrash_photos_command_parent_class = NULL; -static gpointer flag_unflag_command_parent_class = NULL; - -GType command_description_get_type (void) G_GNUC_CONST; -GType command_get_type (void) G_GNUC_CONST; -GType page_command_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType media_page_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -#define PAGE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PAGE_COMMAND, PageCommandPrivate)) -static void page_command_on_page_destroyed (PageCommand* self); -static void _page_command_on_page_destroyed_gtk_widget_destroy (GtkWidget* _sender, - gpointer self); -static void page_command_on_photo_destroyed (PageCommand* self); -static void _page_command_on_photo_destroyed_data_source_destroyed (DataSource* _sender, - gpointer self); -static void page_command_on_controller_destroyed (PageCommand* self); -static void _page_command_on_controller_destroyed_gtk_widget_destroy (GtkWidget* _sender, - gpointer self); -PageCommand* page_command_construct (GType object_type, - const gchar* name, - const gchar* explanation); -Command* command_construct (GType object_type, - const gchar* name, - const gchar* explanation); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -Page* page_window_get_current_page (PageWindow* self); -GType single_photo_page_get_type (void) G_GNUC_CONST; -GType editing_host_page_get_type (void) G_GNUC_CONST; -GType library_photo_page_get_type (void) G_GNUC_CONST; -Photo* editing_host_page_get_photo (EditingHostPage* self); -CollectionPage* library_photo_page_get_controller_page (LibraryPhotoPage* self); -void page_command_set_auto_return_to_page (PageCommand* self, - gboolean auto_return); -static void page_command_real_prepare (Command* base); -void page_command_return_to_page (PageCommand* self); -void command_prepare (Command* self); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -gint data_collection_get_count (DataCollection* self); -DataObject* data_collection_get_at (DataCollection* self, - gint index); -GType data_view_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType media_source_item_get_type (void) G_GNUC_CONST; -GType thumbnail_get_type (void) G_GNUC_CONST; -MediaSource* thumbnail_get_media_source (Thumbnail* self); -GType library_window_get_type (void) G_GNUC_CONST; -LibraryWindow* library_window_get_app (void); -void library_window_switch_to_photo_page (LibraryWindow* self, - CollectionPage* controller, - Photo* current); -void page_window_set_current_page (PageWindow* self, - Page* page); -static void page_command_finalize (GObject * obj); -GType single_data_source_command_get_type (void) G_GNUC_CONST; -static void single_data_source_command_on_source_destroyed (SingleDataSourceCommand* self); -static void _single_data_source_command_on_source_destroyed_data_source_destroyed (DataSource* _sender, - gpointer self); -SingleDataSourceCommand* single_data_source_command_construct (GType object_type, - DataSource* source, - const gchar* name, - const gchar* explanation); -DataSource* single_data_source_command_get_source (SingleDataSourceCommand* self); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* command_get_command_manager (Command* self); -void command_manager_reset (CommandManager* self); -static void single_data_source_command_finalize (GObject * obj); -GType simple_proxyable_command_get_type (void) G_GNUC_CONST; -gpointer source_proxy_ref (gpointer instance); -void source_proxy_unref (gpointer instance); -GParamSpec* param_spec_source_proxy (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_proxy (GValue* value, - gpointer v_object); -void value_take_source_proxy (GValue* value, - gpointer v_object); -gpointer value_get_source_proxy (const GValue* value); -GType source_proxy_get_type (void) G_GNUC_CONST; -#define SIMPLE_PROXYABLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandPrivate)) -static void simple_proxyable_command_on_proxy_broken (SimpleProxyableCommand* self); -static void _simple_proxyable_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, - gpointer self); -void simple_proxyable_command_clear_added_proxies (SimpleProxyableCommand* self); -GType proxyable_get_type (void) G_GNUC_CONST; -SimpleProxyableCommand* simple_proxyable_command_construct (GType object_type, - Proxyable* proxyable, - const gchar* name, - const gchar* explanation); -SourceProxy* proxyable_get_proxy (Proxyable* self); -static void simple_proxyable_command_real_execute (Command* base); -void simple_proxyable_command_execute_on_source (SimpleProxyableCommand* self, - DataSource* source); -DataSource* source_proxy_get_source (SourceProxy* self); -static void simple_proxyable_command_real_execute_on_source (SimpleProxyableCommand* self, - DataSource* source); -static void simple_proxyable_command_real_undo (Command* base); -void simple_proxyable_command_undo_on_source (SimpleProxyableCommand* self, - DataSource* source); -static void simple_proxyable_command_real_undo_on_source (SimpleProxyableCommand* self, - DataSource* source); -void simple_proxyable_command_add_proxyables (SimpleProxyableCommand* self, - GeeCollection* proxyables); -static void simple_proxyable_command_finalize (GObject * obj); -GType single_photo_transformation_command_get_type (void) G_GNUC_CONST; -GType photo_transformation_state_get_type (void) G_GNUC_CONST; -#define SINGLE_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND, SinglePhotoTransformationCommandPrivate)) -static void single_photo_transformation_command_on_state_broken (SinglePhotoTransformationCommand* self); -static void _single_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender, - gpointer self); -SinglePhotoTransformationCommand* single_photo_transformation_command_construct (GType object_type, - Photo* photo, - const gchar* name, - const gchar* explanation); -PhotoTransformationState* photo_save_transformation_state (Photo* self); -static void single_photo_transformation_command_real_undo (Command* base); -gboolean photo_load_transformation_state (Photo* self, - PhotoTransformationState* state); -static void single_photo_transformation_command_finalize (GObject * obj); -GType generic_photo_transformation_command_get_type (void) G_GNUC_CONST; -#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandPrivate)) -static void generic_photo_transformation_command_on_state_broken (GenericPhotoTransformationCommand* self); -static void _generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender, - gpointer self); -GenericPhotoTransformationCommand* generic_photo_transformation_command_construct (GType object_type, - Photo* photo, - const gchar* name, - const gchar* explanation); -static void generic_photo_transformation_command_real_execute (Command* base); -void generic_photo_transformation_command_execute_on_photo (GenericPhotoTransformationCommand* self, - Photo* photo); -static void generic_photo_transformation_command_real_execute_on_photo (GenericPhotoTransformationCommand* self, - Photo* photo); -static void generic_photo_transformation_command_real_undo (Command* base); -static void generic_photo_transformation_command_real_redo (Command* base); -gboolean generic_photo_transformation_command_can_compress (GenericPhotoTransformationCommand* self, - Command* command); -static gboolean generic_photo_transformation_command_real_can_compress (GenericPhotoTransformationCommand* self, - Command* command); -static gboolean generic_photo_transformation_command_real_compress (Command* base, - Command* command); -void command_execute (Command* self); -static void generic_photo_transformation_command_finalize (GObject * obj); -GType multiple_data_source_command_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -#define MULTIPLE_DATA_SOURCE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandPrivate)) -static void multiple_data_source_command_on_source_destroyed (MultipleDataSourceCommand* self, - DataSource* source); -static void _multiple_data_source_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self); -#define MULTIPLE_DATA_SOURCE_COMMAND_MIN_OPS_FOR_PROGRESS_WINDOW 5 -MultipleDataSourceCommand* multiple_data_source_command_construct (GType object_type, - GeeIterable* iter, - const gchar* progress_text, - const gchar* undo_progress_text, - const gchar* name, - const gchar* explanation); -DataSource* data_view_get_source (DataView* self); -DataCollection* data_object_get_membership (DataObject* self); -GeeIterable* multiple_data_source_command_get_sources (MultipleDataSourceCommand* self); -gint multiple_data_source_command_get_source_count (MultipleDataSourceCommand* self); -static void multiple_data_source_command_real_execute (Command* base); -static void multiple_data_source_command_start_transaction (MultipleDataSourceCommand* self); -static void multiple_data_source_command_execute_all (MultipleDataSourceCommand* self, - gboolean exec, - gboolean can_cancel, - GeeArrayList* todo, - GeeArrayList* completed); -static void multiple_data_source_command_commit_transaction (MultipleDataSourceCommand* self); -void multiple_data_source_command_execute_on_source (MultipleDataSourceCommand* self, - DataSource* source); -static void multiple_data_source_command_real_execute_on_source (MultipleDataSourceCommand* self, - DataSource* source); -static void multiple_data_source_command_real_undo (Command* base); -void multiple_data_source_command_undo_on_source (MultipleDataSourceCommand* self, - DataSource* source); -static void multiple_data_source_command_real_undo_on_source (MultipleDataSourceCommand* self, - DataSource* source); -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -gpointer transaction_controller_ref (gpointer instance); -void transaction_controller_unref (gpointer instance); -GParamSpec* param_spec_transaction_controller (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_transaction_controller (GValue* value, - gpointer v_object); -void value_take_transaction_controller (GValue* value, - gpointer v_object); -gpointer value_get_transaction_controller (const GValue* value); -GType transaction_controller_get_type (void) G_GNUC_CONST; -TransactionController* media_source_collection_get_transaction_controller (MediaSourceCollection* self); -void transaction_controller_begin (TransactionController* self); -void transaction_controller_commit (TransactionController* self); -void page_window_set_busy_cursor (PageWindow* self); -GType progress_dialog_get_type (void) G_GNUC_CONST; -ProgressDialog* progress_dialog_new (GtkWindow* owner, - const gchar* text, - GCancellable* cancellable); -ProgressDialog* progress_dialog_construct (GType object_type, - GtkWindow* owner, - const gchar* text, - GCancellable* cancellable); -void progress_dialog_set_fraction (ProgressDialog* self, - gint current, - gint total); -void spin_event_loop (void); -void progress_dialog_close (ProgressDialog* self); -void page_window_set_normal_cursor (PageWindow* self); -static void multiple_data_source_command_finalize (GObject * obj); -GType multiple_data_source_at_once_command_get_type (void) G_GNUC_CONST; -#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandPrivate)) -static void multiple_data_source_at_once_command_on_sources_destroyed (MultipleDataSourceAtOnceCommand* self, - GeeCollection* destroyed); -static void _multiple_data_source_at_once_command_on_sources_destroyed_source_collection_items_destroyed (SourceCollection* _sender, - GeeCollection* destroyed, - gpointer self); -MultipleDataSourceAtOnceCommand* multiple_data_source_at_once_command_construct (GType object_type, - GeeCollection* sources, - const gchar* name, - const gchar* explanation); -static void multiple_data_source_at_once_command_real_execute (Command* base); -void database_table_begin_transaction (void); -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -void media_collection_registry_freeze_all (MediaCollectionRegistry* self); -void multiple_data_source_at_once_command_execute_on_all (MultipleDataSourceAtOnceCommand* self, - GeeCollection* sources); -void media_collection_registry_thaw_all (MediaCollectionRegistry* self); -GQuark database_error_quark (void); -void database_table_commit_transaction (GError** error); -void app_window_database_error (GError* err); -static void multiple_data_source_at_once_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* self, - GeeCollection* sources); -static void multiple_data_source_at_once_command_real_undo (Command* base); -void multiple_data_source_at_once_command_undo_on_all (MultipleDataSourceAtOnceCommand* self, - GeeCollection* sources); -static void multiple_data_source_at_once_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* self, - GeeCollection* sources); -static void multiple_data_source_at_once_command_finalize (GObject * obj); -GType multiple_photo_transformation_command_get_type (void) G_GNUC_CONST; -#define MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommandPrivate)) -static void multiple_photo_transformation_command_on_state_broken (MultiplePhotoTransformationCommand* self); -static void _multiple_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender, - gpointer self); -MultiplePhotoTransformationCommand* multiple_photo_transformation_command_construct (GType object_type, - GeeIterable* iter, - const gchar* progress_text, - const gchar* undo_progress_text, - const gchar* name, - const gchar* explanation); -static void multiple_photo_transformation_command_real_undo_on_source (MultipleDataSourceCommand* base, - DataSource* source); -static void multiple_photo_transformation_command_finalize (GObject * obj); -GType rotate_single_command_get_type (void) G_GNUC_CONST; -GType rotation_get_type (void) G_GNUC_CONST; -#define ROTATE_SINGLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommandPrivate)) -RotateSingleCommand* rotate_single_command_new (Photo* photo, - Rotation rotation, - const gchar* name, - const gchar* explanation); -RotateSingleCommand* rotate_single_command_construct (GType object_type, - Photo* photo, - Rotation rotation, - const gchar* name, - const gchar* explanation); -static void rotate_single_command_real_execute (Command* base); -void photo_rotate (Photo* self, - Rotation rotation); -static void rotate_single_command_real_undo (Command* base); -Rotation rotation_opposite (Rotation self); -static void rotate_single_command_finalize (GObject * obj); -GType rotate_multiple_command_get_type (void) G_GNUC_CONST; -#define ROTATE_MULTIPLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommandPrivate)) -RotateMultipleCommand* rotate_multiple_command_new (GeeIterable* iter, - Rotation rotation, - const gchar* name, - const gchar* explanation, - const gchar* progress_text, - const gchar* undo_progress_text); -RotateMultipleCommand* rotate_multiple_command_construct (GType object_type, - GeeIterable* iter, - Rotation rotation, - const gchar* name, - const gchar* explanation, - const gchar* progress_text, - const gchar* undo_progress_text); -static void rotate_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source); -static void rotate_multiple_command_real_undo_on_source (MultipleDataSourceCommand* base, - DataSource* source); -static void rotate_multiple_command_finalize (GObject * obj); -GType edit_title_command_get_type (void) G_GNUC_CONST; -#define EDIT_TITLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EDIT_TITLE_COMMAND, EditTitleCommandPrivate)) -EditTitleCommand* edit_title_command_new (MediaSource* source, - const gchar* new_title); -EditTitleCommand* edit_title_command_construct (GType object_type, - MediaSource* source, - const gchar* new_title); -#define RESOURCES_EDIT_TITLE_LABEL NC_ ("Button Label", "Edit Title") -gchar* media_source_get_title (MediaSource* self); -static void edit_title_command_real_execute (Command* base); -void media_source_set_title (MediaSource* self, - const gchar* title); -static void edit_title_command_real_undo (Command* base); -static void edit_title_command_finalize (GObject * obj); -GType edit_comment_command_get_type (void) G_GNUC_CONST; -#define EDIT_COMMENT_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EDIT_COMMENT_COMMAND, EditCommentCommandPrivate)) -EditCommentCommand* edit_comment_command_new (MediaSource* source, - const gchar* new_comment); -EditCommentCommand* edit_comment_command_construct (GType object_type, - MediaSource* source, - const gchar* new_comment); -#define RESOURCES_EDIT_COMMENT_LABEL _ ("Edit Comment") -gchar* media_source_get_comment (MediaSource* self); -static void edit_comment_command_real_execute (Command* base); -gboolean media_source_set_comment (MediaSource* self, - const gchar* comment); -static void edit_comment_command_real_undo (Command* base); -static void edit_comment_command_finalize (GObject * obj); -GType edit_multiple_titles_command_get_type (void) G_GNUC_CONST; -EditMultipleTitlesCommand* edit_multiple_titles_command_new (GeeCollection* media_sources, - const gchar* new_title); -EditMultipleTitlesCommand* edit_multiple_titles_command_construct (GType object_type, - GeeCollection* media_sources, - const gchar* new_title); -static void edit_multiple_titles_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base, - GeeCollection* sources); -static void edit_multiple_titles_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base, - GeeCollection* sources); -static void edit_multiple_titles_command_finalize (GObject * obj); -GType edit_multiple_comments_command_get_type (void) G_GNUC_CONST; -EditMultipleCommentsCommand* edit_multiple_comments_command_new (GeeCollection* media_sources, - const gchar* new_comment); -EditMultipleCommentsCommand* edit_multiple_comments_command_construct (GType object_type, - GeeCollection* media_sources, - const gchar* new_comment); -static void edit_multiple_comments_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base, - GeeCollection* sources); -static void edit_multiple_comments_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base, - GeeCollection* sources); -static void edit_multiple_comments_command_finalize (GObject * obj); -GType rename_event_command_get_type (void) G_GNUC_CONST; -#define RENAME_EVENT_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_RENAME_EVENT_COMMAND, RenameEventCommandPrivate)) -GType event_source_get_type (void) G_GNUC_CONST; -GType event_get_type (void) G_GNUC_CONST; -RenameEventCommand* rename_event_command_new (Event* event, - const gchar* new_name); -RenameEventCommand* rename_event_command_construct (GType object_type, - Event* event, - const gchar* new_name); -#define RESOURCES_RENAME_EVENT_LABEL _ ("Rename Event") -gchar* event_get_raw_name (Event* self); -static void rename_event_command_real_execute_on_source (SimpleProxyableCommand* base, - DataSource* source); -gboolean event_rename (Event* self, - const gchar* name); -static void rename_event_command_real_undo_on_source (SimpleProxyableCommand* base, - DataSource* source); -static void rename_event_command_finalize (GObject * obj); -GType edit_event_comment_command_get_type (void) G_GNUC_CONST; -#define EDIT_EVENT_COMMENT_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommandPrivate)) -EditEventCommentCommand* edit_event_comment_command_new (Event* event, - const gchar* new_comment); -EditEventCommentCommand* edit_event_comment_command_construct (GType object_type, - Event* event, - const gchar* new_comment); -gchar* event_source_get_comment (EventSource* self); -static void edit_event_comment_command_real_execute_on_source (SimpleProxyableCommand* base, - DataSource* source); -gboolean event_source_set_comment (EventSource* self, - const gchar* comment); -static void edit_event_comment_command_real_undo_on_source (SimpleProxyableCommand* base, - DataSource* source); -static void edit_event_comment_command_finalize (GObject * obj); -GType set_key_photo_command_get_type (void) G_GNUC_CONST; -#define SET_KEY_PHOTO_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_KEY_PHOTO_COMMAND, SetKeyPhotoCommandPrivate)) -SetKeyPhotoCommand* set_key_photo_command_new (Event* event, - MediaSource* new_primary_source); -SetKeyPhotoCommand* set_key_photo_command_construct (GType object_type, - Event* event, - MediaSource* new_primary_source); -#define RESOURCES_MAKE_KEY_PHOTO_LABEL _ ("Make Key Photo for Event") -MediaSource* event_get_primary_source (Event* self); -static void set_key_photo_command_real_execute (Command* base); -gboolean event_set_primary_source (Event* self, - MediaSource* source); -static void set_key_photo_command_real_undo (Command* base); -static void set_key_photo_command_finalize (GObject * obj); -GType revert_single_command_get_type (void) G_GNUC_CONST; -RevertSingleCommand* revert_single_command_new (Photo* photo); -RevertSingleCommand* revert_single_command_construct (GType object_type, - Photo* photo); -#define RESOURCES_REVERT_LABEL _ ("Revert to Original") -static void revert_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, - Photo* photo); -void photo_remove_all_transformations (Photo* self); -static gboolean revert_single_command_real_compress (Command* base, - Command* command); -GType revert_multiple_command_get_type (void) G_GNUC_CONST; -RevertMultipleCommand* revert_multiple_command_new (GeeIterable* iter); -RevertMultipleCommand* revert_multiple_command_construct (GType object_type, - GeeIterable* iter); -static void revert_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source); -GType enhance_single_command_get_type (void) G_GNUC_CONST; -EnhanceSingleCommand* enhance_single_command_new (Photo* photo); -EnhanceSingleCommand* enhance_single_command_construct (GType object_type, - Photo* photo); -#define RESOURCES_ENHANCE_LABEL _ ("Enhance") -#define RESOURCES_ENHANCE_TOOLTIP _ ("Automatically improve the photo’s appearance") -static void enhance_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, - Photo* photo); -gboolean photo_enhance (Photo* self); -static gboolean enhance_single_command_real_compress (Command* base, - Command* command); -GType enhance_multiple_command_get_type (void) G_GNUC_CONST; -EnhanceMultipleCommand* enhance_multiple_command_new (GeeIterable* iter); -EnhanceMultipleCommand* enhance_multiple_command_construct (GType object_type, - GeeIterable* iter); -static void enhance_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source); -GType straighten_command_get_type (void) G_GNUC_CONST; -GType box_get_type (void) G_GNUC_CONST; -Box* box_dup (const Box* self); -void box_free (Box* self); -#define STRAIGHTEN_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_STRAIGHTEN_COMMAND, StraightenCommandPrivate)) -StraightenCommand* straighten_command_new (Photo* photo, - gdouble theta, - Box* crop, - const gchar* name, - const gchar* explanation); -StraightenCommand* straighten_command_construct (GType object_type, - Photo* photo, - gdouble theta, - Box* crop, - const gchar* name, - const gchar* explanation); -static void straighten_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, - Photo* photo); -void data_collection_freeze_notifications (DataCollection* self); -void photo_set_straighten (Photo* self, - gdouble theta); -void photo_set_crop (Photo* self, - Box* crop); -void data_collection_thaw_notifications (DataCollection* self); -static void straighten_command_finalize (GObject * obj); -GType crop_command_get_type (void) G_GNUC_CONST; -#define CROP_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CROP_COMMAND, CropCommandPrivate)) -CropCommand* crop_command_new (Photo* photo, - Box* crop, - const gchar* name, - const gchar* explanation); -CropCommand* crop_command_construct (GType object_type, - Photo* photo, - Box* crop, - const gchar* name, - const gchar* explanation); -static void crop_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, - Photo* photo); -static void crop_command_finalize (GObject * obj); -GType adjust_colors_single_command_get_type (void) G_GNUC_CONST; -#define ADJUST_COLORS_SINGLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommandPrivate)) -AdjustColorsSingleCommand* adjust_colors_single_command_new (Photo* photo, - PixelTransformationBundle* transformations, - const gchar* name, - const gchar* explanation); -AdjustColorsSingleCommand* adjust_colors_single_command_construct (GType object_type, - Photo* photo, - PixelTransformationBundle* transformations, - const gchar* name, - const gchar* explanation); -static void adjust_colors_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, - Photo* photo); -void photo_set_color_adjustments (Photo* self, - PixelTransformationBundle* new_adjustments); -static gboolean adjust_colors_single_command_real_can_compress (GenericPhotoTransformationCommand* base, - Command* command); -static void adjust_colors_single_command_finalize (GObject * obj); -GType adjust_colors_multiple_command_get_type (void) G_GNUC_CONST; -#define ADJUST_COLORS_MULTIPLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommandPrivate)) -AdjustColorsMultipleCommand* adjust_colors_multiple_command_new (GeeIterable* iter, - PixelTransformationBundle* transformations, - const gchar* name, - const gchar* explanation); -AdjustColorsMultipleCommand* adjust_colors_multiple_command_construct (GType object_type, - GeeIterable* iter, - PixelTransformationBundle* transformations, - const gchar* name, - const gchar* explanation); -static void adjust_colors_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source); -static void adjust_colors_multiple_command_finalize (GObject * obj); -GType redeye_command_get_type (void) G_GNUC_CONST; -GType editing_tools_redeye_instance_get_type (void) G_GNUC_CONST; -EditingToolsRedeyeInstance* editing_tools_redeye_instance_dup (const EditingToolsRedeyeInstance* self); -void editing_tools_redeye_instance_free (EditingToolsRedeyeInstance* self); -#define REDEYE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_REDEYE_COMMAND, RedeyeCommandPrivate)) -RedeyeCommand* redeye_command_new (Photo* photo, - EditingToolsRedeyeInstance* redeye_instance, - const gchar* name, - const gchar* explanation); -RedeyeCommand* redeye_command_construct (GType object_type, - Photo* photo, - EditingToolsRedeyeInstance* redeye_instance, - const gchar* name, - const gchar* explanation); -static void redeye_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, - Photo* photo); -void photo_add_redeye_instance (Photo* self, - EditingToolsRedeyeInstance* redeye); -static void redeye_command_finalize (GObject * obj); -GType move_photos_command_get_type (void) G_GNUC_CONST; -GType move_photos_command_real_move_photos_command_get_type (void) G_GNUC_CONST; -MovePhotosCommand* move_photos_command_construct (GType object_type, - const gchar* name, - const gchar* explanation); -static void move_photos_command_real_prepare (Command* base); -static void move_photos_command_real_execute (Command* base); -static void move_photos_command_real_undo (Command* base); -void command_undo (Command* self); -#define MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommandPrivate)) -static void move_photos_command_real_move_photos_command_on_proxy_broken (MovePhotosCommandRealMovePhotosCommand* self); -static void _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, - gpointer self); -MovePhotosCommandRealMovePhotosCommand* move_photos_command_real_move_photos_command_new (Event* new_event, - GeeIterable* source_views, - const gchar* progress_text, - const gchar* undo_progress_text, - const gchar* name, - const gchar* explanation); -MovePhotosCommandRealMovePhotosCommand* move_photos_command_real_move_photos_command_construct (GType object_type, - Event* new_event, - GeeIterable* source_views, - const gchar* progress_text, - const gchar* undo_progress_text, - const gchar* name, - const gchar* explanation); -Event* media_source_get_event (MediaSource* self); -static void move_photos_command_real_move_photos_command_real_execute (Command* base); -GType event_page_get_type (void) G_GNUC_CONST; -Event* event_page_get_event (EventPage* self); -gint event_source_get_media_count (EventSource* self); -void library_window_switch_to_event (LibraryWindow* self, - Event* event); -static void move_photos_command_real_move_photos_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source); -gboolean media_source_set_event (MediaSource* self, - Event* new_event); -static void move_photos_command_real_move_photos_command_real_undo_on_source (MultipleDataSourceCommand* base, - DataSource* source); -static void move_photos_command_real_move_photos_command_finalize (GObject * obj); -static void move_photos_command_finalize (GObject * obj); -GType new_event_command_get_type (void) G_GNUC_CONST; -NewEventCommand* new_event_command_new (GeeIterable* iter); -NewEventCommand* new_event_command_construct (GType object_type, - GeeIterable* iter); -#define RESOURCES_NEW_EVENT_LABEL _ ("New Event") -Event* event_create_empty_event (MediaSource* source); -GType set_event_command_get_type (void) G_GNUC_CONST; -SetEventCommand* set_event_command_new (GeeIterable* iter, - Event* new_event); -SetEventCommand* set_event_command_construct (GType object_type, - GeeIterable* iter, - Event* new_event); -#define RESOURCES_SET_PHOTO_EVENT_LABEL _ ("Move Photos") -#define RESOURCES_SET_PHOTO_EVENT_TOOLTIP _ ("Move photos to an event") -GType merge_events_command_get_type (void) G_GNUC_CONST; -MergeEventsCommand* merge_events_command_new (GeeIterable* iter); -MergeEventsCommand* merge_events_command_construct (GType object_type, - GeeIterable* iter); -#define RESOURCES_MERGE_LABEL _ ("Merge") -gboolean event_has_name (Event* self); -GeeCollection* event_source_get_media (EventSource* self); -ThumbnailView* thumbnail_view_new (ThumbnailSource* source); -ThumbnailView* thumbnail_view_construct (GType object_type, - ThumbnailSource* source); -GType duplicate_multiple_photos_command_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -#define DUPLICATE_MULTIPLE_PHOTOS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommandPrivate)) -GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -static void duplicate_multiple_photos_command_on_photo_destroyed (DuplicateMultiplePhotosCommand* self, - DataSource* source); -static void _duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self); -DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_new (GeeIterable* iter); -DuplicateMultiplePhotosCommand* duplicate_multiple_photos_command_construct (GType object_type, - GeeIterable* iter); -#define RESOURCES_DUPLICATE_PHOTO_LABEL _ ("Duplicate") -#define RESOURCES_DUPLICATE_PHOTO_TOOLTIP _ ("Make a duplicate of the photo") -static void duplicate_multiple_photos_command_real_execute (Command* base); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -static void duplicate_multiple_photos_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source); -LibraryPhoto* library_photo_duplicate (LibraryPhoto* self, - GError** error); -GFile* media_source_get_file (MediaSource* self); -static void duplicate_multiple_photos_command_real_undo (Command* base); -static void duplicate_multiple_photos_command_real_undo_on_source (MultipleDataSourceCommand* base, - DataSource* source); -GType marker_get_type (void) G_GNUC_CONST; -Marker* data_collection_mark (DataCollection* self, - DataObject* object); -gint source_collection_destroy_marked (SourceCollection* self, - Marker* marker, - gboolean delete_backing, - ProgressMonitor monitor, - void* monitor_target, - GeeList* not_removed); -static void duplicate_multiple_photos_command_finalize (GObject * obj); -GType set_rating_single_command_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -#define SET_RATING_SINGLE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommandPrivate)) -SetRatingSingleCommand* set_rating_single_command_new (DataSource* source, - Rating rating); -SetRatingSingleCommand* set_rating_single_command_construct (GType object_type, - DataSource* source, - Rating rating); -const gchar* resources_rating_label (Rating rating); -Rating media_source_get_rating (MediaSource* self); -SetRatingSingleCommand* set_rating_single_command_new_inc_dec (DataSource* source, - gboolean is_incrementing); -SetRatingSingleCommand* set_rating_single_command_construct_inc_dec (GType object_type, - DataSource* source, - gboolean is_incrementing); -#define RESOURCES_INCREASE_RATING_LABEL _ ("Increase Rating") -#define RESOURCES_DECREASE_RATING_LABEL _ ("Decrease Rating") -static void set_rating_single_command_real_execute (Command* base); -void media_source_set_rating (MediaSource* self, - Rating rating); -void media_source_increase_rating (MediaSource* self); -void media_source_decrease_rating (MediaSource* self); -static void set_rating_single_command_real_undo (Command* base); -static void set_rating_single_command_finalize (GObject * obj); -GType set_rating_command_get_type (void) G_GNUC_CONST; -#define SET_RATING_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_RATING_COMMAND, SetRatingCommandPrivate)) -SetRatingCommand* set_rating_command_new (GeeIterable* iter, - Rating rating); -SetRatingCommand* set_rating_command_construct (GType object_type, - GeeIterable* iter, - Rating rating); -gchar* resources_rating_progress (Rating rating); -static void set_rating_command_save_source_states (SetRatingCommand* self, - GeeIterable* iter); -SetRatingCommand* set_rating_command_new_inc_dec (GeeIterable* iter, - gboolean is_incrementing); -SetRatingCommand* set_rating_command_construct_inc_dec (GType object_type, - GeeIterable* iter, - gboolean is_incrementing); -static void set_rating_command_real_execute (Command* base); -static void set_rating_command_real_undo (Command* base); -static void set_rating_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source); -static void set_rating_command_real_undo_on_source (MultipleDataSourceCommand* base, - DataSource* source); -static void set_rating_command_finalize (GObject * obj); -GType set_raw_developer_command_get_type (void) G_GNUC_CONST; -GType raw_developer_get_type (void) G_GNUC_CONST; -#define SET_RAW_DEVELOPER_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommandPrivate)) -SetRawDeveloperCommand* set_raw_developer_command_new (GeeIterable* iter, - RawDeveloper developer); -SetRawDeveloperCommand* set_raw_developer_command_construct (GType object_type, - GeeIterable* iter, - RawDeveloper developer); -static void set_raw_developer_command_save_source_states (SetRawDeveloperCommand* self, - GeeIterable* iter); -static gboolean set_raw_developer_command_is_raw_photo (SetRawDeveloperCommand* self, - Photo* photo); -RawDeveloper photo_get_raw_developer (Photo* self); -static void set_raw_developer_command_real_execute (Command* base); -static void set_raw_developer_command_real_undo (Command* base); -static void set_raw_developer_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source); -gboolean photo_is_raw_developer_available (Photo* self, - RawDeveloper d); -void photo_set_raw_developer (Photo* self, - RawDeveloper d, - gboolean notify); -static void set_raw_developer_command_real_undo_on_source (MultipleDataSourceCommand* base, - DataSource* source); -GType photo_file_format_get_type (void) G_GNUC_CONST; -PhotoFileFormat photo_get_master_file_format (Photo* self); -static void set_raw_developer_command_finalize (GObject * obj); -GType adjust_date_time_photo_command_get_type (void) G_GNUC_CONST; -GType dateable_get_type (void) G_GNUC_CONST; -#define ADJUST_DATE_TIME_PHOTO_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommandPrivate)) -AdjustDateTimePhotoCommand* adjust_date_time_photo_command_new (Dateable* dateable, - gint64 time_shift, - gboolean modify_original); -AdjustDateTimePhotoCommand* adjust_date_time_photo_command_construct (GType object_type, - Dateable* dateable, - gint64 time_shift, - gboolean modify_original); -#define RESOURCES_ADJUST_DATE_TIME_LABEL _ ("Adjust Date and Time") -static void adjust_date_time_photo_command_real_execute (Command* base); -static void adjust_date_time_photo_command_set_time (AdjustDateTimePhotoCommand* self, - Dateable* dateable, - time_t exposure_time); -time_t dateable_get_exposure_time (Dateable* self); -ViewCollection* view_collection_new (const gchar* name); -ViewCollection* view_collection_construct (GType object_type, - const gchar* name); -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType event_source_collection_get_type (void) G_GNUC_CONST; -GeeCollection* data_collection_get_all (DataCollection* self); -gboolean data_collection_add (DataCollection* self, - DataObject* object); -EventView* event_view_new (EventSource* source); -EventView* event_view_construct (GType object_type, - EventSource* source); -GType event_view_get_type (void) G_GNUC_CONST; -void event_generate_single_event (MediaSource* media, - ViewCollection* events_so_far, - const gchar* event_name); -static void adjust_date_time_photo_command_real_undo (Command* base); -void photo_set_exposure_time_persistent (Photo* self, - time_t time, - GError** error); -void dateable_set_exposure_time (Dateable* self, - time_t target_time); -static void adjust_date_time_photo_command_finalize (GObject * obj); -GType adjust_date_time_photos_command_get_type (void) G_GNUC_CONST; -#define ADJUST_DATE_TIME_PHOTOS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommandPrivate)) -AdjustDateTimePhotosCommand* adjust_date_time_photos_command_new (GeeIterable* iter, - gint64 time_shift, - gboolean keep_relativity, - gboolean modify_originals); -AdjustDateTimePhotosCommand* adjust_date_time_photos_command_construct (GType object_type, - GeeIterable* iter, - gint64 time_shift, - gboolean keep_relativity, - gboolean modify_originals); -static time_t* _time_t_dup (time_t* self); -static void adjust_date_time_photos_command_real_execute (Command* base); -void multiple_object_error_dialog (GeeArrayList* objects, - const gchar* message, - const gchar* title); -static void adjust_date_time_photos_command_real_undo (Command* base); -static void adjust_date_time_photos_command_set_time (AdjustDateTimePhotosCommand* self, - Dateable* dateable, - time_t exposure_time); -static void adjust_date_time_photos_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source); -static void adjust_date_time_photos_command_real_undo_on_source (MultipleDataSourceCommand* base, - DataSource* source); -static void adjust_date_time_photos_command_finalize (GObject * obj); -GType add_tags_command_get_type (void) G_GNUC_CONST; -#define ADD_TAGS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADD_TAGS_COMMAND, AddTagsCommandPrivate)) -static void add_tags_command_on_proxy_broken (AddTagsCommand* self); -static void _add_tags_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, - gpointer self); -static void add_tags_command_on_source_destroyed (AddTagsCommand* self, - DataSource* source); -static void _add_tags_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self); -GType video_source_collection_get_type (void) G_GNUC_CONST; -AddTagsCommand* add_tags_command_new (gchar** paths, - int paths_length1, - GeeCollection* sources); -AddTagsCommand* add_tags_command_construct (GType object_type, - gchar** paths, - int paths_length1, - GeeCollection* sources); -gchar* resources_add_tags_label (gchar** names, - int names_length1); -GeeList* hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path); -GType tag_get_type (void) G_GNUC_CONST; -Tag* tag_for_path (const gchar* name); -gboolean tag_contains (Tag* self, - MediaSource* source); -static void add_tags_command_real_execute (Command* base); -void tag_attach_many (Tag* self, - GeeCollection* sources); -static void add_tags_command_real_undo (Command* base); -GeeMultiMap* tag_detach_many (Tag* self, - GeeCollection* sources); -static void add_tags_command_finalize (GObject * obj); -GType rename_tag_command_get_type (void) G_GNUC_CONST; -#define RENAME_TAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_RENAME_TAG_COMMAND, RenameTagCommandPrivate)) -RenameTagCommand* rename_tag_command_new (Tag* tag, - const gchar* new_name); -RenameTagCommand* rename_tag_command_construct (GType object_type, - Tag* tag, - const gchar* new_name); -gchar* resources_rename_tag_label (const gchar* old_name, - const gchar* new_name); -gchar* tag_get_user_visible_name (Tag* self); -gchar* data_object_get_name (DataObject* self); -static void rename_tag_command_real_execute_on_source (SimpleProxyableCommand* base, - DataSource* source); -gboolean tag_rename (Tag* self, - const gchar* name); -gchar* resources_rename_tag_exists_message (const gchar* name); -static void rename_tag_command_real_undo_on_source (SimpleProxyableCommand* base, - DataSource* source); -static void rename_tag_command_finalize (GObject * obj); -GType delete_tag_command_get_type (void) G_GNUC_CONST; -#define DELETE_TAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandPrivate)) -DeleteTagCommand* delete_tag_command_new (Tag* tag); -DeleteTagCommand* delete_tag_command_construct (GType object_type, - Tag* tag); -gchar* resources_delete_tag_label (const gchar* name); -static void delete_tag_command_real_execute_on_source (SimpleProxyableCommand* base, - DataSource* source); -GeeList* tag_get_hierarchical_children (Tag* self); -static void delete_tag_command_on_proxy_broken (DeleteTagCommand* self); -static void _delete_tag_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, - gpointer self); -GType tag_source_collection_get_type (void) G_GNUC_CONST; -static void delete_tag_command_real_undo_on_source (SimpleProxyableCommand* base, - DataSource* source); -static void delete_tag_command_finalize (GObject * obj); -GType new_child_tag_command_get_type (void) G_GNUC_CONST; -#define NEW_CHILD_TAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommandPrivate)) -NewChildTagCommand* new_child_tag_command_new (Tag* tag); -NewChildTagCommand* new_child_tag_command_construct (GType object_type, - Tag* tag); -static void new_child_tag_command_real_execute_on_source (SimpleProxyableCommand* base, - DataSource* source); -Tag* tag_create_new_child (Tag* self); -static void new_child_tag_command_real_undo_on_source (SimpleProxyableCommand* base, - DataSource* source); -Tag* new_child_tag_command_get_created_child (NewChildTagCommand* self); -static void new_child_tag_command_finalize (GObject * obj); -GType new_root_tag_command_get_type (void) G_GNUC_CONST; -#define NEW_ROOT_TAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommandPrivate)) -NewRootTagCommand* new_root_tag_command_new (void); -NewRootTagCommand* new_root_tag_command_construct (GType object_type); -static void new_root_tag_command_real_execute (Command* base); -Tag* tag_create_new_root (void); -static void new_root_tag_command_real_undo (Command* base); -Tag* new_root_tag_command_get_created_tag (NewRootTagCommand* self); -static void new_root_tag_command_finalize (GObject * obj); -GType reparent_tag_command_get_type (void) G_GNUC_CONST; -#define REPARENT_TAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommandPrivate)) -static void reparent_tag_command_on_items_destroyed (ReparentTagCommand* self, - GeeCollection* destroyed); -static void _reparent_tag_command_on_items_destroyed_source_collection_items_destroyed (SourceCollection* _sender, - GeeCollection* destroyed, - gpointer self); -ReparentTagCommand* reparent_tag_command_new (Tag* tag, - const gchar* new_parent_path); -ReparentTagCommand* reparent_tag_command_construct (GType object_type, - Tag* tag, - const gchar* new_parent_path); -gchar* tag_get_path (Tag* self); -#define TAG_PATH_SEPARATOR_STRING "/" -gchar* hierarchical_tag_utilities_get_root_path_form (const gchar* client_path); -gboolean tag_source_collection_exists (TagSourceCollection* self, - const gchar* name, - gboolean treat_htags_as_root); -GeeCollection* tag_get_sources (Tag* self); -static GeeMap* reparent_tag_command_get_child_structure_at (ReparentTagCommand* self, - const gchar* client_path); -static void reparent_tag_command_restore_child_attachments_at (ReparentTagCommand* self, - const gchar* client_path, - GeeMap* child_structure); -void tag_promote (Tag* self); -void tag_attach (Tag* self, - MediaSource* source); -static void reparent_tag_command_reattach_in_play_sources_at (ReparentTagCommand* self, - const gchar* client_path); -static void reparent_tag_command_save_before_state (ReparentTagCommand* self); -static void reparent_tag_command_restore_before_state (ReparentTagCommand* self); -GeeList* tag_detach (Tag* self, - MediaSource* source); -static void reparent_tag_command_save_after_state (ReparentTagCommand* self); -static void reparent_tag_command_restore_after_state (ReparentTagCommand* self); -static void reparent_tag_command_prepare_parent (ReparentTagCommand* self, - const gchar* path); -static void reparent_tag_command_do_source_parent_detachments (ReparentTagCommand* self); -Tag* tag_get_hierarchical_parent (Tag* self); -gint tag_get_attachment_count (Tag* self, - MediaSource* source); -static void reparent_tag_command_do_source_parent_reattachments (ReparentTagCommand* self); -static void reparent_tag_command_do_destination_parent_detachments (ReparentTagCommand* self); -static void reparent_tag_command_do_destination_parent_reattachments (ReparentTagCommand* self); -static void reparent_tag_command_copy_subtree (ReparentTagCommand* self, - const gchar* from, - const gchar* to); -static void reparent_tag_command_destroy_subtree (ReparentTagCommand* self, - const gchar* client_path); -static void reparent_tag_command_real_execute (Command* base); -static void reparent_tag_command_real_undo (Command* base); -void hierarchical_tag_utilities_cleanup_root_path (const gchar* path); -static void reparent_tag_command_finalize (GObject * obj); -GType modify_tags_command_get_type (void) G_GNUC_CONST; -#define MODIFY_TAGS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommandPrivate)) -static void modify_tags_command_on_proxy_broken (ModifyTagsCommand* self); -static void _modify_tags_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, - gpointer self); -ModifyTagsCommand* modify_tags_command_new (MediaSource* media, - GeeCollection* new_tag_list); -ModifyTagsCommand* modify_tags_command_construct (GType object_type, - MediaSource* media, - GeeCollection* new_tag_list); -#define RESOURCES_MODIFY_TAGS_LABEL _ ("Modify Tags") -GeeList* tag_source_collection_fetch_for_source (TagSourceCollection* self, - MediaSource* source); -static void modify_tags_command_real_execute (Command* base); -static void modify_tags_command_real_undo (Command* base); -static void modify_tags_command_finalize (GObject * obj); -GType tag_untag_photos_command_get_type (void) G_GNUC_CONST; -#define TAG_UNTAG_PHOTOS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandPrivate)) -static void tag_untag_photos_command_on_source_destroyed (TagUntagPhotosCommand* self, - DataSource* source); -static void _tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self); -TagUntagPhotosCommand* tag_untag_photos_command_new (Tag* tag, - GeeCollection* sources, - gint count, - gboolean attach); -TagUntagPhotosCommand* tag_untag_photos_command_construct (GType object_type, - Tag* tag, - GeeCollection* sources, - gint count, - gboolean attach); -gchar* resources_tag_photos_label (const gchar* name, - gint count); -gchar* resources_untag_photos_label (const gchar* name, - gint count); -static void tag_untag_photos_command_real_execute_on_source (SimpleProxyableCommand* base, - DataSource* source); -static void tag_untag_photos_command_do_attach (TagUntagPhotosCommand* self, - Tag* tag); -static void tag_untag_photos_command_do_detach (TagUntagPhotosCommand* self, - Tag* tag); -static void tag_untag_photos_command_real_undo_on_source (SimpleProxyableCommand* base, - DataSource* source); -gchar* data_object_to_string (DataObject* self); -static void tag_untag_photos_command_finalize (GObject * obj); -GType rename_saved_search_command_get_type (void) G_GNUC_CONST; -GType saved_search_get_type (void) G_GNUC_CONST; -#define RENAME_SAVED_SEARCH_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommandPrivate)) -RenameSavedSearchCommand* rename_saved_search_command_new (SavedSearch* search, - const gchar* new_name); -RenameSavedSearchCommand* rename_saved_search_command_construct (GType object_type, - SavedSearch* search, - const gchar* new_name); -gchar* resources_rename_search_label (const gchar* old_name, - const gchar* new_name); -static void rename_saved_search_command_real_execute (Command* base); -gboolean saved_search_rename (SavedSearch* self, - const gchar* new_name); -gchar* resources_rename_search_exists_message (const gchar* name); -static void rename_saved_search_command_real_undo (Command* base); -static void rename_saved_search_command_finalize (GObject * obj); -GType delete_saved_search_command_get_type (void) G_GNUC_CONST; -#define DELETE_SAVED_SEARCH_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandPrivate)) -DeleteSavedSearchCommand* delete_saved_search_command_new (SavedSearch* search); -DeleteSavedSearchCommand* delete_saved_search_command_construct (GType object_type, - SavedSearch* search); -gchar* resources_delete_search_label (const gchar* name); -static void delete_saved_search_command_real_execute (Command* base); -gpointer saved_search_table_ref (gpointer instance); -void saved_search_table_unref (gpointer instance); -GParamSpec* param_spec_saved_search_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_saved_search_table (GValue* value, - gpointer v_object); -void value_take_saved_search_table (GValue* value, - gpointer v_object); -gpointer value_get_saved_search_table (const GValue* value); -GType saved_search_table_get_type (void) G_GNUC_CONST; -SavedSearchTable* saved_search_table_get_instance (void); -void saved_search_table_remove (SavedSearchTable* self, - SavedSearch* search); -static void delete_saved_search_command_real_undo (Command* base); -void saved_search_reconstitute (SavedSearch* self); -static void delete_saved_search_command_finalize (GObject * obj); -GType trash_untrash_photos_command_get_type (void) G_GNUC_CONST; -#define TRASH_UNTRASH_PHOTOS_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandPrivate)) -static void trash_untrash_photos_command_on_photo_destroyed (TrashUntrashPhotosCommand* self, - DataSource* source); -static void _trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self); -TrashUntrashPhotosCommand* trash_untrash_photos_command_new (GeeCollection* sources, - gboolean to_trash); -TrashUntrashPhotosCommand* trash_untrash_photos_command_construct (GType object_type, - GeeCollection* sources, - gboolean to_trash); -static ProgressDialog* trash_untrash_photos_command_get_progress_dialog (TrashUntrashPhotosCommand* self, - gboolean to_trash); -void progress_dialog_update_display_every (ProgressDialog* self, - gint update_every); -static void trash_untrash_photos_command_real_execute (Command* base); -gboolean progress_dialog_monitor (ProgressDialog* self, - guint64 count, - guint64 total, - gboolean do_event_loop); -static gboolean _progress_dialog_monitor_progress_monitor (guint64 current, - guint64 total, - gboolean do_event_loop, - gpointer self); -static void trash_untrash_photos_command_trash (TrashUntrashPhotosCommand* self, - ProgressMonitor monitor, - void* monitor_target); -static void trash_untrash_photos_command_untrash (TrashUntrashPhotosCommand* self, - ProgressMonitor monitor, - void* monitor_target); -static void trash_untrash_photos_command_real_undo (Command* base); -void media_source_trash (MediaSource* self); -void media_source_untrash (MediaSource* self); -static void trash_untrash_photos_command_finalize (GObject * obj); -GType flag_unflag_command_get_type (void) G_GNUC_CONST; -#define FLAG_UNFLAG_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandPrivate)) -#define FLAG_UNFLAG_COMMAND_MIN_PROGRESS_BAR_THRESHOLD 1000 -#define FLAG_UNFLAG_COMMAND_FLAG_SELECTED_STRING _ ("Flag selected photos") -#define FLAG_UNFLAG_COMMAND_UNFLAG_SELECTED_STRING _ ("Unflag selected photos") -#define FLAG_UNFLAG_COMMAND_FLAG_PROGRESS _ ("Flagging selected photos") -#define FLAG_UNFLAG_COMMAND_UNFLAG_PROGRESS _ ("Unflagging selected photos") -FlagUnflagCommand* flag_unflag_command_new (GeeCollection* sources, - gboolean flag); -FlagUnflagCommand* flag_unflag_command_construct (GType object_type, - GeeCollection* sources, - gboolean flag); -static void flag_unflag_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base, - GeeCollection* sources); -static void flag_unflag_command_flag_unflag (FlagUnflagCommand* self, - DataSource* source, - gboolean flag); -static void flag_unflag_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base, - GeeCollection* sources); -GType flaggable_get_type (void) G_GNUC_CONST; -void flaggable_mark_flagged (Flaggable* self); -void flaggable_mark_unflagged (Flaggable* self); -static void flag_unflag_command_finalize (GObject * obj); - - -static void -_page_command_on_page_destroyed_gtk_widget_destroy (GtkWidget* _sender, - gpointer self) -{ -#line 45 "/home/jens/Source/shotwell/src/Commands.vala" - page_command_on_page_destroyed ((PageCommand*) self); -#line 3261 "Commands.c" -} - - -static void -_page_command_on_photo_destroyed_data_source_destroyed (DataSource* _sender, - gpointer self) -{ -#line 48 "/home/jens/Source/shotwell/src/Commands.vala" - page_command_on_photo_destroyed ((PageCommand*) self); -#line 3271 "Commands.c" -} - - -static void -_page_command_on_controller_destroyed_gtk_widget_destroy (GtkWidget* _sender, - gpointer self) -{ -#line 51 "/home/jens/Source/shotwell/src/Commands.vala" - page_command_on_controller_destroyed ((PageCommand*) self); -#line 3281 "Commands.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 27 "/home/jens/Source/shotwell/src/Commands.vala" - return self ? g_object_ref (self) : NULL; -#line 3290 "Commands.c" -} - - -PageCommand* -page_command_construct (GType object_type, - const gchar* name, - const gchar* explanation) -{ - PageCommand * self = NULL; - AppWindow* _tmp0_; - AppWindow* _tmp1_; - Page* _tmp2_; - Page* _tmp3_; -#line 15 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 15 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 16 "/home/jens/Source/shotwell/src/Commands.vala" - self = (PageCommand*) command_construct (object_type, name, explanation); -#line 18 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = app_window_get_instance (); -#line 18 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 18 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow)); -#line 18 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->page); -#line 18 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->page = _tmp2_; -#line 18 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp1_); -#line 20 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = self->priv->page; -#line 20 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp3_ != NULL) { -#line 3326 "Commands.c" - Page* _tmp4_; - LibraryPhotoPage* photo_page = NULL; - Page* _tmp5_; - LibraryPhotoPage* _tmp6_; - LibraryPhotoPage* _tmp7_; -#line 21 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->page; -#line 21 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), "destroy", (GCallback) _page_command_on_page_destroyed_gtk_widget_destroy, self, 0); -#line 27 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = self->priv->page; -#line 27 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_LIBRARY_PHOTO_PAGE) ? ((LibraryPhotoPage*) _tmp5_) : NULL); -#line 27 "/home/jens/Source/shotwell/src/Commands.vala" - photo_page = _tmp6_; -#line 28 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = photo_page; -#line 28 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp7_ != NULL) { -#line 3346 "Commands.c" - LibraryPhotoPage* _tmp8_; - Photo* _tmp9_; - LibraryPhotoPage* _tmp10_; - CollectionPage* _tmp11_; - gboolean _tmp12_ = FALSE; - Photo* _tmp13_; -#line 29 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = photo_page; -#line 29 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 29 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->library_photo); -#line 29 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->library_photo = _tmp9_; -#line 30 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = photo_page; -#line 30 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = library_photo_page_get_controller_page (_tmp10_); -#line 30 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->collection_page); -#line 30 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->collection_page = _tmp11_; -#line 32 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = self->priv->library_photo; -#line 32 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp13_ != NULL) { -#line 3373 "Commands.c" - CollectionPage* _tmp14_; -#line 32 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = self->priv->collection_page; -#line 32 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = _tmp14_ != NULL; -#line 3379 "Commands.c" - } else { -#line 32 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = FALSE; -#line 3383 "Commands.c" - } -#line 32 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp12_) { -#line 3387 "Commands.c" - Photo* _tmp15_; - CollectionPage* _tmp16_; -#line 33 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = self->priv->library_photo; -#line 33 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_SOURCE, DataSource), "destroyed", (GCallback) _page_command_on_photo_destroyed_data_source_destroyed, self, 0); -#line 34 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = self->priv->collection_page; -#line 34 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), "destroy", (GCallback) _page_command_on_controller_destroyed_gtk_widget_destroy, self, 0); -#line 3398 "Commands.c" - } else { -#line 36 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->library_photo); -#line 36 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->library_photo = NULL; -#line 37 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->collection_page); -#line 37 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->collection_page = NULL; -#line 3408 "Commands.c" - } - } -#line 20 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (photo_page); -#line 3413 "Commands.c" - } -#line 15 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 3417 "Commands.c" -} - - -void -page_command_set_auto_return_to_page (PageCommand* self, - gboolean auto_return) -{ -#line 54 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_PAGE_COMMAND (self)); -#line 55 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->auto_return = auto_return; -#line 3429 "Commands.c" -} - - -static void -page_command_real_prepare (Command* base) -{ - PageCommand * self; - gboolean _tmp0_; -#line 58 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PAGE_COMMAND, PageCommand); -#line 59 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->auto_return; -#line 59 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp0_) { -#line 60 "/home/jens/Source/shotwell/src/Commands.vala" - page_command_return_to_page (self); -#line 3446 "Commands.c" - } -#line 62 "/home/jens/Source/shotwell/src/Commands.vala" - COMMAND_CLASS (page_command_parent_class)->prepare (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command)); -#line 3450 "Commands.c" -} - - -void -page_command_return_to_page (PageCommand* self) -{ - LibraryPhotoPage* photo_page = NULL; - Page* _tmp0_; - LibraryPhotoPage* _tmp1_; - LibraryPhotoPage* _tmp2_; -#line 65 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_PAGE_COMMAND (self)); -#line 66 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->page; -#line 66 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_LIBRARY_PHOTO_PAGE) ? ((LibraryPhotoPage*) _tmp0_) : NULL); -#line 66 "/home/jens/Source/shotwell/src/Commands.vala" - photo_page = _tmp1_; -#line 68 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = photo_page; -#line 68 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp2_ != NULL) { -#line 3473 "Commands.c" - gboolean _tmp3_ = FALSE; - Photo* _tmp4_; -#line 69 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->library_photo; -#line 69 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp4_ != NULL) { -#line 3480 "Commands.c" - CollectionPage* _tmp5_; -#line 69 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = self->priv->collection_page; -#line 69 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp5_ != NULL; -#line 3486 "Commands.c" - } else { -#line 69 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = FALSE; -#line 3490 "Commands.c" - } -#line 69 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp3_) { -#line 3494 "Commands.c" - gboolean photo_in_collection = FALSE; - gint count = 0; - CollectionPage* _tmp6_; - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; - gint _tmp9_; - gboolean _tmp24_; -#line 70 "/home/jens/Source/shotwell/src/Commands.vala" - photo_in_collection = FALSE; -#line 71 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = self->priv->collection_page; -#line 71 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PAGE, Page)); -#line 71 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _tmp7_; -#line 71 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection)); -#line 71 "/home/jens/Source/shotwell/src/Commands.vala" - _data_collection_unref0 (_tmp8_); -#line 71 "/home/jens/Source/shotwell/src/Commands.vala" - count = _tmp9_; -#line 3516 "Commands.c" - { - gint i = 0; -#line 72 "/home/jens/Source/shotwell/src/Commands.vala" - i = 0; -#line 3521 "Commands.c" - { - gboolean _tmp10_ = FALSE; -#line 72 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = TRUE; -#line 72 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 3528 "Commands.c" - gint _tmp12_; - gint _tmp13_; - CollectionPage* _tmp14_; - ViewCollection* _tmp15_; - ViewCollection* _tmp16_; - gint _tmp17_; - DataObject* _tmp18_; - Thumbnail* _tmp19_; - MediaSource* _tmp20_; - MediaSource* _tmp21_; - Photo* _tmp22_; - gboolean _tmp23_; -#line 72 "/home/jens/Source/shotwell/src/Commands.vala" - if (!_tmp10_) { -#line 3543 "Commands.c" - gint _tmp11_; -#line 72 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = i; -#line 72 "/home/jens/Source/shotwell/src/Commands.vala" - i = _tmp11_ + 1; -#line 3549 "Commands.c" - } -#line 72 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = FALSE; -#line 72 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = i; -#line 72 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = count; -#line 72 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp12_ < _tmp13_)) { -#line 72 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 3561 "Commands.c" - } -#line 73 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = self->priv->collection_page; -#line 73 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PAGE, Page)); -#line 73 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = _tmp15_; -#line 73 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = i; -#line 73 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection), _tmp17_); -#line 73 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_THUMBNAIL, Thumbnail); -#line 73 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = thumbnail_get_media_source (_tmp19_); -#line 73 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = _tmp20_; -#line 73 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = self->priv->library_photo; -#line 73 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = _tmp21_ == G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_MEDIA_SOURCE, MediaSource); -#line 73 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp21_); -#line 73 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp19_); -#line 73 "/home/jens/Source/shotwell/src/Commands.vala" - _data_collection_unref0 (_tmp16_); -#line 73 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp23_) { -#line 74 "/home/jens/Source/shotwell/src/Commands.vala" - photo_in_collection = TRUE; -#line 75 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 3595 "Commands.c" - } - } - } - } -#line 79 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = photo_in_collection; -#line 79 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp24_) { -#line 3604 "Commands.c" - LibraryWindow* _tmp25_; - LibraryWindow* _tmp26_; - CollectionPage* _tmp27_; - Photo* _tmp28_; -#line 80 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = library_window_get_app (); -#line 80 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = _tmp25_; -#line 80 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = self->priv->collection_page; -#line 80 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = self->priv->library_photo; -#line 80 "/home/jens/Source/shotwell/src/Commands.vala" - library_window_switch_to_photo_page (_tmp26_, _tmp27_, _tmp28_); -#line 80 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp26_); -#line 3621 "Commands.c" - } - } - } else { - Page* _tmp29_; -#line 82 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = self->priv->page; -#line 82 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp29_ != NULL) { -#line 3630 "Commands.c" - AppWindow* _tmp30_; - AppWindow* _tmp31_; - Page* _tmp32_; -#line 83 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = app_window_get_instance (); -#line 83 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp31_ = _tmp30_; -#line 83 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp32_ = self->priv->page; -#line 83 "/home/jens/Source/shotwell/src/Commands.vala" - page_window_set_current_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_PAGE_WINDOW, PageWindow), _tmp32_); -#line 83 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp31_); -#line 3644 "Commands.c" - } - } -#line 65 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (photo_page); -#line 3649 "Commands.c" -} - - -static void -page_command_on_page_destroyed (PageCommand* self) -{ - Page* _tmp0_; - guint _tmp1_; -#line 86 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_PAGE_COMMAND (self)); -#line 87 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->page; -#line 87 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("destroy", gtk_widget_get_type (), &_tmp1_, NULL, FALSE); -#line 87 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _page_command_on_page_destroyed_gtk_widget_destroy, self); -#line 88 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->page); -#line 88 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->page = NULL; -#line 3670 "Commands.c" -} - - -static void -page_command_on_photo_destroyed (PageCommand* self) -{ - Photo* _tmp0_; - guint _tmp1_; -#line 91 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_PAGE_COMMAND (self)); -#line 92 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->library_photo; -#line 92 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("destroyed", TYPE_DATA_SOURCE, &_tmp1_, NULL, FALSE); -#line 92 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_SOURCE, DataSource), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _page_command_on_photo_destroyed_data_source_destroyed, self); -#line 93 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->library_photo); -#line 93 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->library_photo = NULL; -#line 3691 "Commands.c" -} - - -static void -page_command_on_controller_destroyed (PageCommand* self) -{ - CollectionPage* _tmp0_; - guint _tmp1_; -#line 96 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_PAGE_COMMAND (self)); -#line 97 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->collection_page; -#line 97 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("destroy", gtk_widget_get_type (), &_tmp1_, NULL, FALSE); -#line 97 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _page_command_on_controller_destroyed_gtk_widget_destroy, self); -#line 98 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->collection_page); -#line 98 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->collection_page = NULL; -#line 3712 "Commands.c" -} - - -static void -page_command_class_init (PageCommandClass * klass) -{ -#line 9 "/home/jens/Source/shotwell/src/Commands.vala" - page_command_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (PageCommandPrivate)); -#line 9 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->prepare = (void (*) (Command *)) page_command_real_prepare; -#line 9 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = page_command_finalize; -#line 3727 "Commands.c" -} - - -static void -page_command_instance_init (PageCommand * self) -{ -#line 9 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = PAGE_COMMAND_GET_PRIVATE (self); -#line 11 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->auto_return = TRUE; -#line 12 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->library_photo = NULL; -#line 13 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->collection_page = NULL; -#line 3742 "Commands.c" -} - - -static void -page_command_finalize (GObject * obj) -{ - PageCommand * self; - Page* _tmp0_; - Photo* _tmp3_; - CollectionPage* _tmp6_; -#line 9 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PAGE_COMMAND, PageCommand); -#line 44 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->page; -#line 44 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp0_ != NULL) { -#line 3759 "Commands.c" - Page* _tmp1_; - guint _tmp2_; -#line 45 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->page; -#line 45 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("destroy", gtk_widget_get_type (), &_tmp2_, NULL, FALSE); -#line 45 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _page_command_on_page_destroyed_gtk_widget_destroy, self); -#line 3768 "Commands.c" - } -#line 47 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = self->priv->library_photo; -#line 47 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp3_ != NULL) { -#line 3774 "Commands.c" - Photo* _tmp4_; - guint _tmp5_; -#line 48 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->library_photo; -#line 48 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("destroyed", TYPE_DATA_SOURCE, &_tmp5_, NULL, FALSE); -#line 48 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_SOURCE, DataSource), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _page_command_on_photo_destroyed_data_source_destroyed, self); -#line 3783 "Commands.c" - } -#line 50 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = self->priv->collection_page; -#line 50 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp6_ != NULL) { -#line 3789 "Commands.c" - CollectionPage* _tmp7_; - guint _tmp8_; -#line 51 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = self->priv->collection_page; -#line 51 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("destroy", gtk_widget_get_type (), &_tmp8_, NULL, FALSE); -#line 51 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _page_command_on_controller_destroyed_gtk_widget_destroy, self); -#line 3798 "Commands.c" - } -#line 10 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->page); -#line 12 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->library_photo); -#line 13 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->collection_page); -#line 9 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (page_command_parent_class)->finalize (obj); -#line 3808 "Commands.c" -} - - -GType -page_command_get_type (void) -{ - static volatile gsize page_command_type_id__volatile = 0; - if (g_once_init_enter (&page_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PageCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) page_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PageCommand), 0, (GInstanceInitFunc) page_command_instance_init, NULL }; - GType page_command_type_id; - page_command_type_id = g_type_register_static (TYPE_COMMAND, "PageCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&page_command_type_id__volatile, page_command_type_id); - } - return page_command_type_id__volatile; -} - - -static void -_single_data_source_command_on_source_destroyed_data_source_destroyed (DataSource* _sender, - gpointer self) -{ -#line 115 "/home/jens/Source/shotwell/src/Commands.vala" - single_data_source_command_on_source_destroyed ((SingleDataSourceCommand*) self); -#line 3832 "Commands.c" -} - - -SingleDataSourceCommand* -single_data_source_command_construct (GType object_type, - DataSource* source, - const gchar* name, - const gchar* explanation) -{ - SingleDataSourceCommand * self = NULL; - DataSource* _tmp0_; -#line 106 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 106 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 106 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 107 "/home/jens/Source/shotwell/src/Commands.vala" - self = (SingleDataSourceCommand*) page_command_construct (object_type, name, explanation); -#line 109 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (source); -#line 109 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->source); -#line 109 "/home/jens/Source/shotwell/src/Commands.vala" - self->source = _tmp0_; -#line 111 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (source, "destroyed", (GCallback) _single_data_source_command_on_source_destroyed_data_source_destroyed, self, 0); -#line 106 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 3862 "Commands.c" -} - - -DataSource* -single_data_source_command_get_source (SingleDataSourceCommand* self) -{ - DataSource* result = NULL; - DataSource* _tmp0_; - DataSource* _tmp1_; -#line 118 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_SINGLE_DATA_SOURCE_COMMAND (self), NULL); -#line 119 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->source; -#line 119 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 119 "/home/jens/Source/shotwell/src/Commands.vala" - result = _tmp1_; -#line 119 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 3882 "Commands.c" -} - - -static void -single_data_source_command_on_source_destroyed (SingleDataSourceCommand* self) -{ - CommandManager* _tmp0_; - CommandManager* _tmp1_; -#line 122 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_SINGLE_DATA_SOURCE_COMMAND (self)); -#line 125 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command)); -#line 125 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 125 "/home/jens/Source/shotwell/src/Commands.vala" - command_manager_reset (_tmp1_); -#line 125 "/home/jens/Source/shotwell/src/Commands.vala" - _command_manager_unref0 (_tmp1_); -#line 3901 "Commands.c" -} - - -static void -single_data_source_command_class_init (SingleDataSourceCommandClass * klass) -{ -#line 103 "/home/jens/Source/shotwell/src/Commands.vala" - single_data_source_command_parent_class = g_type_class_peek_parent (klass); -#line 103 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = single_data_source_command_finalize; -#line 3912 "Commands.c" -} - - -static void -single_data_source_command_instance_init (SingleDataSourceCommand * self) -{ -} - - -static void -single_data_source_command_finalize (GObject * obj) -{ - SingleDataSourceCommand * self; - DataSource* _tmp0_; - guint _tmp1_; -#line 103 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand); -#line 115 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->source; -#line 115 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("destroyed", TYPE_DATA_SOURCE, &_tmp1_, NULL, FALSE); -#line 115 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _single_data_source_command_on_source_destroyed_data_source_destroyed, self); -#line 104 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->source); -#line 103 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (single_data_source_command_parent_class)->finalize (obj); -#line 3940 "Commands.c" -} - - -GType -single_data_source_command_get_type (void) -{ - static volatile gsize single_data_source_command_type_id__volatile = 0; - if (g_once_init_enter (&single_data_source_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SingleDataSourceCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) single_data_source_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SingleDataSourceCommand), 0, (GInstanceInitFunc) single_data_source_command_instance_init, NULL }; - GType single_data_source_command_type_id; - single_data_source_command_type_id = g_type_register_static (TYPE_PAGE_COMMAND, "SingleDataSourceCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&single_data_source_command_type_id__volatile, single_data_source_command_type_id); - } - return single_data_source_command_type_id__volatile; -} - - -static void -_simple_proxyable_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, - gpointer self) -{ -#line 141 "/home/jens/Source/shotwell/src/Commands.vala" - simple_proxyable_command_on_proxy_broken ((SimpleProxyableCommand*) self); -#line 3964 "Commands.c" -} - - -SimpleProxyableCommand* -simple_proxyable_command_construct (GType object_type, - Proxyable* proxyable, - const gchar* name, - const gchar* explanation) -{ - SimpleProxyableCommand * self = NULL; - SourceProxy* _tmp0_; - SourceProxy* _tmp1_; -#line 133 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_PROXYABLE (proxyable), NULL); -#line 133 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 133 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 134 "/home/jens/Source/shotwell/src/Commands.vala" - self = (SimpleProxyableCommand*) page_command_construct (object_type, name, explanation); -#line 136 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = proxyable_get_proxy (proxyable); -#line 136 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (self->priv->proxy); -#line 136 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->proxy = _tmp0_; -#line 137 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->proxy; -#line 137 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (_tmp1_, "broken", (GCallback) _simple_proxyable_command_on_proxy_broken_source_proxy_broken, self, 0); -#line 133 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 3997 "Commands.c" -} - - -static void -simple_proxyable_command_real_execute (Command* base) -{ - SimpleProxyableCommand * self; - SourceProxy* _tmp0_; - DataSource* _tmp1_; - DataSource* _tmp2_; -#line 145 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand); -#line 146 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->proxy; -#line 146 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = source_proxy_get_source (_tmp0_); -#line 146 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _tmp1_; -#line 146 "/home/jens/Source/shotwell/src/Commands.vala" - simple_proxyable_command_execute_on_source (self, _tmp2_); -#line 146 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp2_); -#line 4020 "Commands.c" -} - - -static void -simple_proxyable_command_real_execute_on_source (SimpleProxyableCommand* self, - DataSource* source) -{ -#line 149 "/home/jens/Source/shotwell/src/Commands.vala" - g_critical ("Type `%s' does not implement abstract method `simple_proxyable_command_execute_on_source'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 149 "/home/jens/Source/shotwell/src/Commands.vala" - return; -#line 4032 "Commands.c" -} - - -void -simple_proxyable_command_execute_on_source (SimpleProxyableCommand* self, - DataSource* source) -{ -#line 149 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_SIMPLE_PROXYABLE_COMMAND (self)); -#line 149 "/home/jens/Source/shotwell/src/Commands.vala" - SIMPLE_PROXYABLE_COMMAND_GET_CLASS (self)->execute_on_source (self, source); -#line 4044 "Commands.c" -} - - -static void -simple_proxyable_command_real_undo (Command* base) -{ - SimpleProxyableCommand * self; - SourceProxy* _tmp0_; - DataSource* _tmp1_; - DataSource* _tmp2_; -#line 151 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand); -#line 152 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->proxy; -#line 152 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = source_proxy_get_source (_tmp0_); -#line 152 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _tmp1_; -#line 152 "/home/jens/Source/shotwell/src/Commands.vala" - simple_proxyable_command_undo_on_source (self, _tmp2_); -#line 152 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp2_); -#line 4067 "Commands.c" -} - - -static void -simple_proxyable_command_real_undo_on_source (SimpleProxyableCommand* self, - DataSource* source) -{ -#line 155 "/home/jens/Source/shotwell/src/Commands.vala" - g_critical ("Type `%s' does not implement abstract method `simple_proxyable_command_undo_on_source'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 155 "/home/jens/Source/shotwell/src/Commands.vala" - return; -#line 4079 "Commands.c" -} - - -void -simple_proxyable_command_undo_on_source (SimpleProxyableCommand* self, - DataSource* source) -{ -#line 155 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_SIMPLE_PROXYABLE_COMMAND (self)); -#line 155 "/home/jens/Source/shotwell/src/Commands.vala" - SIMPLE_PROXYABLE_COMMAND_GET_CLASS (self)->undo_on_source (self, source); -#line 4091 "Commands.c" -} - - -void -simple_proxyable_command_add_proxyables (SimpleProxyableCommand* self, - GeeCollection* proxyables) -{ -#line 161 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_SIMPLE_PROXYABLE_COMMAND (self)); -#line 161 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (GEE_IS_COLLECTION (proxyables)); -#line 4103 "Commands.c" - { - GeeIterator* _proxyable_it = NULL; - GeeIterator* _tmp0_; -#line 162 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (proxyables, GEE_TYPE_ITERABLE, GeeIterable)); -#line 162 "/home/jens/Source/shotwell/src/Commands.vala" - _proxyable_it = _tmp0_; -#line 162 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 4113 "Commands.c" - GeeIterator* _tmp1_; - Proxyable* proxyable = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - SourceProxy* added_proxy = NULL; - Proxyable* _tmp4_; - SourceProxy* _tmp5_; - SourceProxy* _tmp6_; - GeeHashSet* _tmp7_; - SourceProxy* _tmp8_; -#line 162 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _proxyable_it; -#line 162 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 162 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 4130 "Commands.c" - } -#line 162 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _proxyable_it; -#line 162 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 162 "/home/jens/Source/shotwell/src/Commands.vala" - proxyable = (Proxyable*) _tmp3_; -#line 163 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = proxyable; -#line 163 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = proxyable_get_proxy (_tmp4_); -#line 163 "/home/jens/Source/shotwell/src/Commands.vala" - added_proxy = _tmp5_; -#line 164 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = added_proxy; -#line 164 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (_tmp6_, "broken", (GCallback) _simple_proxyable_command_on_proxy_broken_source_proxy_broken, self, 0); -#line 165 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = self->priv->proxies; -#line 165 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = added_proxy; -#line 165 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp8_); -#line 162 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (added_proxy); -#line 162 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (proxyable); -#line 4158 "Commands.c" - } -#line 162 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_proxyable_it); -#line 4162 "Commands.c" - } -} - - -void -simple_proxyable_command_clear_added_proxies (SimpleProxyableCommand* self) -{ - GeeHashSet* _tmp7_; -#line 170 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_SIMPLE_PROXYABLE_COMMAND (self)); -#line 4173 "Commands.c" - { - GeeIterator* _added_proxy_it = NULL; - GeeHashSet* _tmp0_; - GeeIterator* _tmp1_; -#line 171 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->proxies; -#line 171 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 171 "/home/jens/Source/shotwell/src/Commands.vala" - _added_proxy_it = _tmp1_; -#line 171 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 4186 "Commands.c" - GeeIterator* _tmp2_; - SourceProxy* added_proxy = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - SourceProxy* _tmp5_; - guint _tmp6_; -#line 171 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _added_proxy_it; -#line 171 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 171 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 4199 "Commands.c" - } -#line 171 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _added_proxy_it; -#line 171 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 171 "/home/jens/Source/shotwell/src/Commands.vala" - added_proxy = (SourceProxy*) _tmp4_; -#line 172 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = added_proxy; -#line 172 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp6_, NULL, FALSE); -#line 172 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _simple_proxyable_command_on_proxy_broken_source_proxy_broken, self); -#line 171 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (added_proxy); -#line 4215 "Commands.c" - } -#line 171 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_added_proxy_it); -#line 4219 "Commands.c" - } -#line 174 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = self->priv->proxies; -#line 174 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 4225 "Commands.c" -} - - -static void -simple_proxyable_command_on_proxy_broken (SimpleProxyableCommand* self) -{ - CommandManager* _tmp0_; - CommandManager* _tmp1_; -#line 177 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_SIMPLE_PROXYABLE_COMMAND (self)); -#line 178 "/home/jens/Source/shotwell/src/Commands.vala" - g_debug ("Commands.vala:178: on_proxy_broken"); -#line 179 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command)); -#line 179 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 179 "/home/jens/Source/shotwell/src/Commands.vala" - command_manager_reset (_tmp1_); -#line 179 "/home/jens/Source/shotwell/src/Commands.vala" - _command_manager_unref0 (_tmp1_); -#line 4246 "Commands.c" -} - - -static void -simple_proxyable_command_class_init (SimpleProxyableCommandClass * klass) -{ -#line 129 "/home/jens/Source/shotwell/src/Commands.vala" - simple_proxyable_command_parent_class = g_type_class_peek_parent (klass); -#line 129 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (SimpleProxyableCommandPrivate)); -#line 129 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) simple_proxyable_command_real_execute; -#line 129 "/home/jens/Source/shotwell/src/Commands.vala" - ((SimpleProxyableCommandClass *) klass)->execute_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) simple_proxyable_command_real_execute_on_source; -#line 129 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) simple_proxyable_command_real_undo; -#line 129 "/home/jens/Source/shotwell/src/Commands.vala" - ((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) simple_proxyable_command_real_undo_on_source; -#line 129 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = simple_proxyable_command_finalize; -#line 4267 "Commands.c" -} - - -static void -simple_proxyable_command_instance_init (SimpleProxyableCommand * self) -{ - GeeHashSet* _tmp0_; -#line 129 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = SIMPLE_PROXYABLE_COMMAND_GET_PRIVATE (self); -#line 131 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_hash_set_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 131 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->proxies = _tmp0_; -#line 4281 "Commands.c" -} - - -static void -simple_proxyable_command_finalize (GObject * obj) -{ - SimpleProxyableCommand * self; - SourceProxy* _tmp0_; - guint _tmp1_; -#line 129 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand); -#line 141 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->proxy; -#line 141 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp1_, NULL, FALSE); -#line 141 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _simple_proxyable_command_on_proxy_broken_source_proxy_broken, self); -#line 142 "/home/jens/Source/shotwell/src/Commands.vala" - simple_proxyable_command_clear_added_proxies (self); -#line 130 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (self->priv->proxy); -#line 131 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->proxies); -#line 129 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (simple_proxyable_command_parent_class)->finalize (obj); -#line 4307 "Commands.c" -} - - -GType -simple_proxyable_command_get_type (void) -{ - static volatile gsize simple_proxyable_command_type_id__volatile = 0; - if (g_once_init_enter (&simple_proxyable_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SimpleProxyableCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) simple_proxyable_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SimpleProxyableCommand), 0, (GInstanceInitFunc) simple_proxyable_command_instance_init, NULL }; - GType simple_proxyable_command_type_id; - simple_proxyable_command_type_id = g_type_register_static (TYPE_PAGE_COMMAND, "SimpleProxyableCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&simple_proxyable_command_type_id__volatile, simple_proxyable_command_type_id); - } - return simple_proxyable_command_type_id__volatile; -} - - -static void -_single_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender, - gpointer self) -{ -#line 194 "/home/jens/Source/shotwell/src/Commands.vala" - single_photo_transformation_command_on_state_broken ((SinglePhotoTransformationCommand*) self); -#line 4331 "Commands.c" -} - - -SinglePhotoTransformationCommand* -single_photo_transformation_command_construct (GType object_type, - Photo* photo, - const gchar* name, - const gchar* explanation) -{ - SinglePhotoTransformationCommand * self = NULL; - PhotoTransformationState* _tmp0_; - PhotoTransformationState* _tmp1_; -#line 186 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 186 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 186 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 187 "/home/jens/Source/shotwell/src/Commands.vala" - self = (SinglePhotoTransformationCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), name, explanation); -#line 189 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = photo_save_transformation_state (photo); -#line 189 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->state); -#line 189 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->state = _tmp0_; -#line 190 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->state; -#line 190 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (_tmp1_, "broken", (GCallback) _single_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self, 0); -#line 186 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 4364 "Commands.c" -} - - -static void -single_photo_transformation_command_real_undo (Command* base) -{ - SinglePhotoTransformationCommand * self; - DataSource* _tmp0_; - PhotoTransformationState* _tmp1_; -#line 197 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND, SinglePhotoTransformationCommand); -#line 198 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 198 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->state; -#line 198 "/home/jens/Source/shotwell/src/Commands.vala" - photo_load_transformation_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), _tmp1_); -#line 4382 "Commands.c" -} - - -static void -single_photo_transformation_command_on_state_broken (SinglePhotoTransformationCommand* self) -{ - CommandManager* _tmp0_; - CommandManager* _tmp1_; -#line 201 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_SINGLE_PHOTO_TRANSFORMATION_COMMAND (self)); -#line 202 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command)); -#line 202 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 202 "/home/jens/Source/shotwell/src/Commands.vala" - command_manager_reset (_tmp1_); -#line 202 "/home/jens/Source/shotwell/src/Commands.vala" - _command_manager_unref0 (_tmp1_); -#line 4401 "Commands.c" -} - - -static void -single_photo_transformation_command_class_init (SinglePhotoTransformationCommandClass * klass) -{ -#line 183 "/home/jens/Source/shotwell/src/Commands.vala" - single_photo_transformation_command_parent_class = g_type_class_peek_parent (klass); -#line 183 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (SinglePhotoTransformationCommandPrivate)); -#line 183 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) single_photo_transformation_command_real_undo; -#line 183 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = single_photo_transformation_command_finalize; -#line 4416 "Commands.c" -} - - -static void -single_photo_transformation_command_instance_init (SinglePhotoTransformationCommand * self) -{ -#line 183 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = SINGLE_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE (self); -#line 4425 "Commands.c" -} - - -static void -single_photo_transformation_command_finalize (GObject * obj) -{ - SinglePhotoTransformationCommand * self; - PhotoTransformationState* _tmp0_; - guint _tmp1_; -#line 183 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SINGLE_PHOTO_TRANSFORMATION_COMMAND, SinglePhotoTransformationCommand); -#line 194 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->state; -#line 194 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("broken", TYPE_PHOTO_TRANSFORMATION_STATE, &_tmp1_, NULL, FALSE); -#line 194 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _single_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self); -#line 184 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->state); -#line 183 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (single_photo_transformation_command_parent_class)->finalize (obj); -#line 4447 "Commands.c" -} - - -GType -single_photo_transformation_command_get_type (void) -{ - static volatile gsize single_photo_transformation_command_type_id__volatile = 0; - if (g_once_init_enter (&single_photo_transformation_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SinglePhotoTransformationCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) single_photo_transformation_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SinglePhotoTransformationCommand), 0, (GInstanceInitFunc) single_photo_transformation_command_instance_init, NULL }; - GType single_photo_transformation_command_type_id; - single_photo_transformation_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "SinglePhotoTransformationCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&single_photo_transformation_command_type_id__volatile, single_photo_transformation_command_type_id); - } - return single_photo_transformation_command_type_id__volatile; -} - - -static void -_generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender, - gpointer self) -{ -#line 216 "/home/jens/Source/shotwell/src/Commands.vala" - generic_photo_transformation_command_on_state_broken ((GenericPhotoTransformationCommand*) self); -#line 4471 "Commands.c" -} - - -GenericPhotoTransformationCommand* -generic_photo_transformation_command_construct (GType object_type, - Photo* photo, - const gchar* name, - const gchar* explanation) -{ - GenericPhotoTransformationCommand * self = NULL; -#line 210 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 210 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 210 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 211 "/home/jens/Source/shotwell/src/Commands.vala" - self = (GenericPhotoTransformationCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), name, explanation); -#line 210 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 4492 "Commands.c" -} - - -static void -generic_photo_transformation_command_real_execute (Command* base) -{ - GenericPhotoTransformationCommand * self; - Photo* photo = NULL; - DataSource* _tmp0_; - Photo* _tmp1_; - PhotoTransformationState* _tmp2_; - PhotoTransformationState* _tmp3_; - PhotoTransformationState* _tmp4_; - PhotoTransformationState* _tmp5_; -#line 222 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand); -#line 223 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 223 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo)); -#line 223 "/home/jens/Source/shotwell/src/Commands.vala" - photo = _tmp1_; -#line 225 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = photo_save_transformation_state (photo); -#line 225 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->original_state); -#line 225 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->original_state = _tmp2_; -#line 226 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = self->priv->original_state; -#line 226 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (_tmp3_, "broken", (GCallback) _generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self, 0); -#line 228 "/home/jens/Source/shotwell/src/Commands.vala" - generic_photo_transformation_command_execute_on_photo (self, photo); -#line 230 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = photo_save_transformation_state (photo); -#line 230 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->transformed_state); -#line 230 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->transformed_state = _tmp4_; -#line 231 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = self->priv->transformed_state; -#line 231 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (_tmp5_, "broken", (GCallback) _generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self, 0); -#line 222 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (photo); -#line 4539 "Commands.c" -} - - -static void -generic_photo_transformation_command_real_execute_on_photo (GenericPhotoTransformationCommand* self, - Photo* photo) -{ -#line 234 "/home/jens/Source/shotwell/src/Commands.vala" - g_critical ("Type `%s' does not implement abstract method `generic_photo_transformation_command_execute_on_photo'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 234 "/home/jens/Source/shotwell/src/Commands.vala" - return; -#line 4551 "Commands.c" -} - - -void -generic_photo_transformation_command_execute_on_photo (GenericPhotoTransformationCommand* self, - Photo* photo) -{ -#line 234 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND (self)); -#line 234 "/home/jens/Source/shotwell/src/Commands.vala" - GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS (self)->execute_on_photo (self, photo); -#line 4563 "Commands.c" -} - - -static void -generic_photo_transformation_command_real_undo (Command* base) -{ - GenericPhotoTransformationCommand * self; - DataSource* _tmp0_; - PhotoTransformationState* _tmp1_; -#line 236 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand); -#line 238 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 238 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->original_state; -#line 238 "/home/jens/Source/shotwell/src/Commands.vala" - photo_load_transformation_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), _tmp1_); -#line 4581 "Commands.c" -} - - -static void -generic_photo_transformation_command_real_redo (Command* base) -{ - GenericPhotoTransformationCommand * self; - DataSource* _tmp0_; - PhotoTransformationState* _tmp1_; -#line 241 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand); -#line 243 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 243 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->transformed_state; -#line 243 "/home/jens/Source/shotwell/src/Commands.vala" - photo_load_transformation_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), _tmp1_); -#line 4599 "Commands.c" -} - - -static gboolean -generic_photo_transformation_command_real_can_compress (GenericPhotoTransformationCommand* self, - Command* command) -{ - gboolean result = FALSE; -#line 246 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_COMMAND (command), FALSE); -#line 247 "/home/jens/Source/shotwell/src/Commands.vala" - result = FALSE; -#line 247 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 4614 "Commands.c" -} - - -gboolean -generic_photo_transformation_command_can_compress (GenericPhotoTransformationCommand* self, - Command* command) -{ -#line 246 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND (self), FALSE); -#line 246 "/home/jens/Source/shotwell/src/Commands.vala" - return GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS (self)->can_compress (self, command); -#line 4626 "Commands.c" -} - - -static gboolean -generic_photo_transformation_command_real_compress (Command* base, - Command* command) -{ - GenericPhotoTransformationCommand * self; - gboolean result = FALSE; - GenericPhotoTransformationCommand* generic = NULL; - GenericPhotoTransformationCommand* _tmp0_; - GenericPhotoTransformationCommand* _tmp1_; - GenericPhotoTransformationCommand* _tmp2_; - DataSource* _tmp3_; - DataSource* _tmp4_; - GenericPhotoTransformationCommand* _tmp5_; - GenericPhotoTransformationCommand* _tmp6_; - PhotoTransformationState* _tmp7_; - PhotoTransformationState* _tmp8_; -#line 250 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand); -#line 250 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_COMMAND (command), FALSE); -#line 251 "/home/jens/Source/shotwell/src/Commands.vala" - if (!generic_photo_transformation_command_can_compress (self, command)) { -#line 252 "/home/jens/Source/shotwell/src/Commands.vala" - result = FALSE; -#line 252 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 4656 "Commands.c" - } -#line 254 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (command, TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND) ? ((GenericPhotoTransformationCommand*) command) : NULL); -#line 254 "/home/jens/Source/shotwell/src/Commands.vala" - generic = _tmp0_; -#line 255 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = generic; -#line 255 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp1_ == NULL) { -#line 256 "/home/jens/Source/shotwell/src/Commands.vala" - result = FALSE; -#line 256 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (generic); -#line 256 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 4672 "Commands.c" - } -#line 258 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = generic; -#line 258 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 258 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 258 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp3_ != _tmp4_) { -#line 259 "/home/jens/Source/shotwell/src/Commands.vala" - result = FALSE; -#line 259 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (generic); -#line 259 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 4688 "Commands.c" - } -#line 262 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = generic; -#line 262 "/home/jens/Source/shotwell/src/Commands.vala" - command_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_COMMAND, Command)); -#line 265 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = generic; -#line 265 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _tmp6_->priv->transformed_state; -#line 265 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _g_object_ref0 (_tmp7_); -#line 265 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->transformed_state); -#line 265 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->transformed_state = _tmp8_; -#line 267 "/home/jens/Source/shotwell/src/Commands.vala" - result = TRUE; -#line 267 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (generic); -#line 267 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 4710 "Commands.c" -} - - -static void -generic_photo_transformation_command_on_state_broken (GenericPhotoTransformationCommand* self) -{ - CommandManager* _tmp0_; - CommandManager* _tmp1_; -#line 270 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND (self)); -#line 271 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command)); -#line 271 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 271 "/home/jens/Source/shotwell/src/Commands.vala" - command_manager_reset (_tmp1_); -#line 271 "/home/jens/Source/shotwell/src/Commands.vala" - _command_manager_unref0 (_tmp1_); -#line 4729 "Commands.c" -} - - -static void -generic_photo_transformation_command_class_init (GenericPhotoTransformationCommandClass * klass) -{ -#line 206 "/home/jens/Source/shotwell/src/Commands.vala" - generic_photo_transformation_command_parent_class = g_type_class_peek_parent (klass); -#line 206 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (GenericPhotoTransformationCommandPrivate)); -#line 206 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) generic_photo_transformation_command_real_execute; -#line 206 "/home/jens/Source/shotwell/src/Commands.vala" - ((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) generic_photo_transformation_command_real_execute_on_photo; -#line 206 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) generic_photo_transformation_command_real_undo; -#line 206 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->redo = (void (*) (Command *)) generic_photo_transformation_command_real_redo; -#line 206 "/home/jens/Source/shotwell/src/Commands.vala" - ((GenericPhotoTransformationCommandClass *) klass)->can_compress = (gboolean (*) (GenericPhotoTransformationCommand *, Command*)) generic_photo_transformation_command_real_can_compress; -#line 206 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->compress = (gboolean (*) (Command *, Command*)) generic_photo_transformation_command_real_compress; -#line 206 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = generic_photo_transformation_command_finalize; -#line 4754 "Commands.c" -} - - -static void -generic_photo_transformation_command_instance_init (GenericPhotoTransformationCommand * self) -{ -#line 206 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE (self); -#line 207 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->original_state = NULL; -#line 208 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->transformed_state = NULL; -#line 4767 "Commands.c" -} - - -static void -generic_photo_transformation_command_finalize (GObject * obj) -{ - GenericPhotoTransformationCommand * self; - PhotoTransformationState* _tmp0_; - PhotoTransformationState* _tmp3_; -#line 206 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand); -#line 215 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->original_state; -#line 215 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp0_ != NULL) { -#line 4783 "Commands.c" - PhotoTransformationState* _tmp1_; - guint _tmp2_; -#line 216 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->original_state; -#line 216 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("broken", TYPE_PHOTO_TRANSFORMATION_STATE, &_tmp2_, NULL, FALSE); -#line 216 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self); -#line 4792 "Commands.c" - } -#line 218 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = self->priv->transformed_state; -#line 218 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp3_ != NULL) { -#line 4798 "Commands.c" - PhotoTransformationState* _tmp4_; - guint _tmp5_; -#line 219 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->transformed_state; -#line 219 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("broken", TYPE_PHOTO_TRANSFORMATION_STATE, &_tmp5_, NULL, FALSE); -#line 219 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _generic_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self); -#line 4807 "Commands.c" - } -#line 207 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->original_state); -#line 208 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->transformed_state); -#line 206 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (generic_photo_transformation_command_parent_class)->finalize (obj); -#line 4815 "Commands.c" -} - - -GType -generic_photo_transformation_command_get_type (void) -{ - static volatile gsize generic_photo_transformation_command_type_id__volatile = 0; - if (g_once_init_enter (&generic_photo_transformation_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (GenericPhotoTransformationCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) generic_photo_transformation_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GenericPhotoTransformationCommand), 0, (GInstanceInitFunc) generic_photo_transformation_command_instance_init, NULL }; - GType generic_photo_transformation_command_type_id; - generic_photo_transformation_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "GenericPhotoTransformationCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&generic_photo_transformation_command_type_id__volatile, generic_photo_transformation_command_type_id); - } - return generic_photo_transformation_command_type_id__volatile; -} - - -static void -_multiple_data_source_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self) -{ -#line 309 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_data_source_command_on_source_destroyed ((MultipleDataSourceCommand*) self, source); -#line 4840 "Commands.c" -} - - -MultipleDataSourceCommand* -multiple_data_source_command_construct (GType object_type, - GeeIterable* iter, - const gchar* progress_text, - const gchar* undo_progress_text, - const gchar* name, - const gchar* explanation) -{ - MultipleDataSourceCommand * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 285 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL); -#line 285 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (progress_text != NULL, NULL); -#line 285 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (undo_progress_text != NULL, NULL); -#line 285 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 285 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 287 "/home/jens/Source/shotwell/src/Commands.vala" - self = (MultipleDataSourceCommand*) page_command_construct (object_type, name, explanation); -#line 289 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = g_strdup (progress_text); -#line 289 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->progress_text); -#line 289 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->progress_text = _tmp0_; -#line 290 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = g_strdup (undo_progress_text); -#line 290 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->undo_progress_text); -#line 290 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->undo_progress_text = _tmp1_; -#line 4879 "Commands.c" - { - GeeIterator* _view_it = NULL; - GeeIterator* _tmp2_; -#line 292 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = gee_iterable_iterator (iter); -#line 292 "/home/jens/Source/shotwell/src/Commands.vala" - _view_it = _tmp2_; -#line 292 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 4889 "Commands.c" - GeeIterator* _tmp3_; - DataView* view = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - DataSource* source = NULL; - DataView* _tmp6_; - DataSource* _tmp7_; - SourceCollection* collection = NULL; - DataSource* _tmp8_; - DataCollection* _tmp9_; - SourceCollection* _tmp10_; - GeeArrayList* _tmp13_; - DataSource* _tmp14_; -#line 292 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _view_it; -#line 292 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 292 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 4909 "Commands.c" - } -#line 292 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _view_it; -#line 292 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 292 "/home/jens/Source/shotwell/src/Commands.vala" - view = (DataView*) _tmp5_; -#line 293 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = view; -#line 293 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = data_view_get_source (_tmp6_); -#line 293 "/home/jens/Source/shotwell/src/Commands.vala" - source = _tmp7_; -#line 294 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = source; -#line 294 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject)); -#line 294 "/home/jens/Source/shotwell/src/Commands.vala" - collection = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_SOURCE_COLLECTION, SourceCollection); -#line 296 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = collection; -#line 296 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp10_ != NULL) { -#line 4933 "Commands.c" - GeeHashSet* _tmp11_; - SourceCollection* _tmp12_; -#line 297 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = self->priv->hooked_collections; -#line 297 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = collection; -#line 297 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp12_); -#line 4942 "Commands.c" - } -#line 299 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = self->source_list; -#line 299 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = source; -#line 299 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_); -#line 292 "/home/jens/Source/shotwell/src/Commands.vala" - _data_collection_unref0 (collection); -#line 292 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 292 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (view); -#line 4956 "Commands.c" - } -#line 292 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_view_it); -#line 4960 "Commands.c" - } - { - GeeIterator* _current_collection_it = NULL; - GeeHashSet* _tmp15_; - GeeIterator* _tmp16_; -#line 302 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = self->priv->hooked_collections; -#line 302 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 302 "/home/jens/Source/shotwell/src/Commands.vala" - _current_collection_it = _tmp16_; -#line 302 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 4974 "Commands.c" - GeeIterator* _tmp17_; - SourceCollection* current_collection = NULL; - GeeIterator* _tmp18_; - gpointer _tmp19_; - SourceCollection* _tmp20_; -#line 302 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = _current_collection_it; -#line 302 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp17_)) { -#line 302 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 4986 "Commands.c" - } -#line 302 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = _current_collection_it; -#line 302 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = gee_iterator_get (_tmp18_); -#line 302 "/home/jens/Source/shotwell/src/Commands.vala" - current_collection = (SourceCollection*) _tmp19_; -#line 303 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = current_collection; -#line 303 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (_tmp20_, "item-destroyed", (GCallback) _multiple_data_source_command_on_source_destroyed_source_collection_item_destroyed, self, 0); -#line 302 "/home/jens/Source/shotwell/src/Commands.vala" - _data_collection_unref0 (current_collection); -#line 5000 "Commands.c" - } -#line 302 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_current_collection_it); -#line 5004 "Commands.c" - } -#line 285 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 5008 "Commands.c" -} - - -GeeIterable* -multiple_data_source_command_get_sources (MultipleDataSourceCommand* self) -{ - GeeIterable* result = NULL; - GeeArrayList* _tmp0_; - GeeIterable* _tmp1_; -#line 313 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self), NULL); -#line 314 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->source_list; -#line 314 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 314 "/home/jens/Source/shotwell/src/Commands.vala" - result = _tmp1_; -#line 314 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 5028 "Commands.c" -} - - -gint -multiple_data_source_command_get_source_count (MultipleDataSourceCommand* self) -{ - gint result = 0; - GeeArrayList* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 317 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self), 0); -#line 318 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->source_list; -#line 318 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 318 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _tmp1_; -#line 318 "/home/jens/Source/shotwell/src/Commands.vala" - result = _tmp2_; -#line 318 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 5051 "Commands.c" -} - - -static void -multiple_data_source_command_on_source_destroyed (MultipleDataSourceCommand* self, - DataSource* source) -{ - GeeArrayList* _tmp0_; -#line 321 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self)); -#line 321 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 324 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->source_list; -#line 324 "/home/jens/Source/shotwell/src/Commands.vala" - if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), source)) { -#line 5068 "Commands.c" - CommandManager* _tmp1_; - CommandManager* _tmp2_; -#line 325 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command)); -#line 325 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _tmp1_; -#line 325 "/home/jens/Source/shotwell/src/Commands.vala" - command_manager_reset (_tmp2_); -#line 325 "/home/jens/Source/shotwell/src/Commands.vala" - _command_manager_unref0 (_tmp2_); -#line 5079 "Commands.c" - } -} - - -static void -multiple_data_source_command_real_execute (Command* base) -{ - MultipleDataSourceCommand * self; - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; - GeeArrayList* _tmp2_; -#line 328 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand); -#line 329 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->acted_upon; -#line 329 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 331 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_data_source_command_start_transaction (self); -#line 332 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->source_list; -#line 332 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->acted_upon; -#line 332 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_data_source_command_execute_all (self, TRUE, TRUE, _tmp1_, _tmp2_); -#line 333 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_data_source_command_commit_transaction (self); -#line 5107 "Commands.c" -} - - -static void -multiple_data_source_command_real_execute_on_source (MultipleDataSourceCommand* self, - DataSource* source) -{ -#line 336 "/home/jens/Source/shotwell/src/Commands.vala" - g_critical ("Type `%s' does not implement abstract method `multiple_data_source_command_execute_on_source'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 336 "/home/jens/Source/shotwell/src/Commands.vala" - return; -#line 5119 "Commands.c" -} - - -void -multiple_data_source_command_execute_on_source (MultipleDataSourceCommand* self, - DataSource* source) -{ -#line 336 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self)); -#line 336 "/home/jens/Source/shotwell/src/Commands.vala" - MULTIPLE_DATA_SOURCE_COMMAND_GET_CLASS (self)->execute_on_source (self, source); -#line 5131 "Commands.c" -} - - -static void -multiple_data_source_command_real_undo (Command* base) -{ - MultipleDataSourceCommand * self; - GeeArrayList* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 338 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand); -#line 339 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->acted_upon; -#line 339 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 339 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _tmp1_; -#line 339 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp2_ > 0) { -#line 5152 "Commands.c" - GeeArrayList* _tmp3_; - GeeArrayList* _tmp4_; -#line 340 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_data_source_command_start_transaction (self); -#line 341 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = self->priv->acted_upon; -#line 341 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_data_source_command_execute_all (self, FALSE, FALSE, _tmp3_, NULL); -#line 342 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_data_source_command_commit_transaction (self); -#line 344 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->acted_upon; -#line 344 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 5167 "Commands.c" - } -} - - -static void -multiple_data_source_command_real_undo_on_source (MultipleDataSourceCommand* self, - DataSource* source) -{ -#line 348 "/home/jens/Source/shotwell/src/Commands.vala" - g_critical ("Type `%s' does not implement abstract method `multiple_data_source_command_undo_on_source'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 348 "/home/jens/Source/shotwell/src/Commands.vala" - return; -#line 5180 "Commands.c" -} - - -void -multiple_data_source_command_undo_on_source (MultipleDataSourceCommand* self, - DataSource* source) -{ -#line 348 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self)); -#line 348 "/home/jens/Source/shotwell/src/Commands.vala" - MULTIPLE_DATA_SOURCE_COMMAND_GET_CLASS (self)->undo_on_source (self, source); -#line 5192 "Commands.c" -} - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 352 "/home/jens/Source/shotwell/src/Commands.vala" - return self ? data_collection_ref (self) : NULL; -#line 5201 "Commands.c" -} - - -static void -multiple_data_source_command_start_transaction (MultipleDataSourceCommand* self) -{ -#line 350 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self)); -#line 5210 "Commands.c" - { - GeeIterator* _sources_it = NULL; - GeeHashSet* _tmp0_; - GeeIterator* _tmp1_; -#line 351 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->hooked_collections; -#line 351 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 351 "/home/jens/Source/shotwell/src/Commands.vala" - _sources_it = _tmp1_; -#line 351 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 5223 "Commands.c" - GeeIterator* _tmp2_; - SourceCollection* sources = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - MediaSourceCollection* media_collection = NULL; - SourceCollection* _tmp5_; - MediaSourceCollection* _tmp6_; - MediaSourceCollection* _tmp7_; -#line 351 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _sources_it; -#line 351 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 351 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 5238 "Commands.c" - } -#line 351 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _sources_it; -#line 351 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 351 "/home/jens/Source/shotwell/src/Commands.vala" - sources = (SourceCollection*) _tmp4_; -#line 352 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = sources; -#line 352 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _data_collection_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_MEDIA_SOURCE_COLLECTION) ? ((MediaSourceCollection*) _tmp5_) : NULL); -#line 352 "/home/jens/Source/shotwell/src/Commands.vala" - media_collection = _tmp6_; -#line 353 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = media_collection; -#line 353 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp7_ != NULL) { -#line 5256 "Commands.c" - MediaSourceCollection* _tmp8_; - TransactionController* _tmp9_; - TransactionController* _tmp10_; -#line 354 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = media_collection; -#line 354 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = media_source_collection_get_transaction_controller (_tmp8_); -#line 354 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = _tmp9_; -#line 354 "/home/jens/Source/shotwell/src/Commands.vala" - transaction_controller_begin (_tmp10_); -#line 5268 "Commands.c" - } -#line 351 "/home/jens/Source/shotwell/src/Commands.vala" - _data_collection_unref0 (media_collection); -#line 351 "/home/jens/Source/shotwell/src/Commands.vala" - _data_collection_unref0 (sources); -#line 5274 "Commands.c" - } -#line 351 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_sources_it); -#line 5278 "Commands.c" - } -} - - -static void -multiple_data_source_command_commit_transaction (MultipleDataSourceCommand* self) -{ -#line 358 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self)); -#line 5288 "Commands.c" - { - GeeIterator* _sources_it = NULL; - GeeHashSet* _tmp0_; - GeeIterator* _tmp1_; -#line 359 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->hooked_collections; -#line 359 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 359 "/home/jens/Source/shotwell/src/Commands.vala" - _sources_it = _tmp1_; -#line 359 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 5301 "Commands.c" - GeeIterator* _tmp2_; - SourceCollection* sources = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - MediaSourceCollection* media_collection = NULL; - SourceCollection* _tmp5_; - MediaSourceCollection* _tmp6_; - MediaSourceCollection* _tmp7_; -#line 359 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _sources_it; -#line 359 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 359 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 5316 "Commands.c" - } -#line 359 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _sources_it; -#line 359 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 359 "/home/jens/Source/shotwell/src/Commands.vala" - sources = (SourceCollection*) _tmp4_; -#line 360 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = sources; -#line 360 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _data_collection_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_MEDIA_SOURCE_COLLECTION) ? ((MediaSourceCollection*) _tmp5_) : NULL); -#line 360 "/home/jens/Source/shotwell/src/Commands.vala" - media_collection = _tmp6_; -#line 361 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = media_collection; -#line 361 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp7_ != NULL) { -#line 5334 "Commands.c" - MediaSourceCollection* _tmp8_; - TransactionController* _tmp9_; - TransactionController* _tmp10_; -#line 362 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = media_collection; -#line 362 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = media_source_collection_get_transaction_controller (_tmp8_); -#line 362 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = _tmp9_; -#line 362 "/home/jens/Source/shotwell/src/Commands.vala" - transaction_controller_commit (_tmp10_); -#line 5346 "Commands.c" - } -#line 359 "/home/jens/Source/shotwell/src/Commands.vala" - _data_collection_unref0 (media_collection); -#line 359 "/home/jens/Source/shotwell/src/Commands.vala" - _data_collection_unref0 (sources); -#line 5352 "Commands.c" - } -#line 359 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_sources_it); -#line 5356 "Commands.c" - } -} - - -static void -multiple_data_source_command_execute_all (MultipleDataSourceCommand* self, - gboolean exec, - gboolean can_cancel, - GeeArrayList* todo, - GeeArrayList* completed) -{ - AppWindow* _tmp0_; - AppWindow* _tmp1_; - gint count = 0; - gint total = 0; - gint _tmp2_; - gint _tmp3_; - gint two_percent = 0; - gint _tmp4_; - gint _tmp5_; - const gchar* _tmp6_ = NULL; - gchar* text = NULL; - gchar* _tmp9_; - GCancellable* cancellable = NULL; - ProgressDialog* progress = NULL; - gint _tmp10_; - ProgressDialog* _tmp42_; - AppWindow* _tmp44_; - AppWindow* _tmp45_; -#line 366 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_COMMAND (self)); -#line 366 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (GEE_IS_ARRAY_LIST (todo)); -#line 366 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail ((completed == NULL) || GEE_IS_ARRAY_LIST (completed)); -#line 368 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = app_window_get_instance (); -#line 368 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 368 "/home/jens/Source/shotwell/src/Commands.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow)); -#line 368 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp1_); -#line 370 "/home/jens/Source/shotwell/src/Commands.vala" - count = 0; -#line 371 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (todo, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 371 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 371 "/home/jens/Source/shotwell/src/Commands.vala" - total = _tmp3_; -#line 372 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = total; -#line 372 "/home/jens/Source/shotwell/src/Commands.vala" - two_percent = (gint) (((gdouble) _tmp4_) / 50.0); -#line 373 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = two_percent; -#line 373 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp5_ <= 0) { -#line 374 "/home/jens/Source/shotwell/src/Commands.vala" - two_percent = 1; -#line 5418 "Commands.c" - } -#line 376 "/home/jens/Source/shotwell/src/Commands.vala" - if (exec) { -#line 5422 "Commands.c" - const gchar* _tmp7_; -#line 376 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = self->priv->progress_text; -#line 376 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tmp7_; -#line 5428 "Commands.c" - } else { - const gchar* _tmp8_; -#line 376 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = self->priv->undo_progress_text; -#line 376 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tmp8_; -#line 5435 "Commands.c" - } -#line 376 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = g_strdup (_tmp6_); -#line 376 "/home/jens/Source/shotwell/src/Commands.vala" - text = _tmp9_; -#line 378 "/home/jens/Source/shotwell/src/Commands.vala" - cancellable = NULL; -#line 379 "/home/jens/Source/shotwell/src/Commands.vala" - progress = NULL; -#line 380 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = total; -#line 380 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp10_ >= MULTIPLE_DATA_SOURCE_COMMAND_MIN_OPS_FOR_PROGRESS_WINDOW) { -#line 5449 "Commands.c" - GCancellable* _tmp11_ = NULL; - GCancellable* _tmp13_; - AppWindow* _tmp14_; - AppWindow* _tmp15_; - const gchar* _tmp16_; - GCancellable* _tmp17_; - ProgressDialog* _tmp18_; -#line 381 "/home/jens/Source/shotwell/src/Commands.vala" - if (can_cancel) { -#line 5459 "Commands.c" - GCancellable* _tmp12_; -#line 381 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = g_cancellable_new (); -#line 381 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp11_); -#line 381 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _tmp12_; -#line 5467 "Commands.c" - } else { -#line 381 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp11_); -#line 381 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = NULL; -#line 5473 "Commands.c" - } -#line 381 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = _g_object_ref0 (_tmp11_); -#line 381 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (cancellable); -#line 381 "/home/jens/Source/shotwell/src/Commands.vala" - cancellable = _tmp13_; -#line 382 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = app_window_get_instance (); -#line 382 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = _tmp14_; -#line 382 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = text; -#line 382 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = cancellable; -#line 382 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_window_get_type (), GtkWindow), _tmp16_, _tmp17_); -#line 382 "/home/jens/Source/shotwell/src/Commands.vala" - g_object_ref_sink (_tmp18_); -#line 382 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (progress); -#line 382 "/home/jens/Source/shotwell/src/Commands.vala" - progress = _tmp18_; -#line 382 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp15_); -#line 380 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp11_); -#line 5501 "Commands.c" - } - { - GeeArrayList* _source_list = NULL; - GeeArrayList* _tmp19_; - gint _source_size = 0; - GeeArrayList* _tmp20_; - gint _tmp21_; - gint _tmp22_; - gint _source_index = 0; -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = _g_object_ref0 (todo); -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - _source_list = _tmp19_; -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = _source_list; -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = _tmp21_; -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - _source_size = _tmp22_; -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - _source_index = -1; -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 5527 "Commands.c" - gint _tmp23_; - gint _tmp24_; - gint _tmp25_; - DataSource* source = NULL; - GeeArrayList* _tmp26_; - gint _tmp27_; - gpointer _tmp28_; - ProgressDialog* _tmp32_; -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = _source_index; -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - _source_index = _tmp23_ + 1; -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = _source_index; -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = _source_size; -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp24_ < _tmp25_)) { -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 5548 "Commands.c" - } -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = _source_list; -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = _source_index; -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp27_); -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - source = (DataSource*) _tmp28_; -#line 386 "/home/jens/Source/shotwell/src/Commands.vala" - if (exec) { -#line 5560 "Commands.c" - DataSource* _tmp29_; -#line 387 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = source; -#line 387 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_data_source_command_execute_on_source (self, _tmp29_); -#line 5566 "Commands.c" - } else { - DataSource* _tmp30_; -#line 389 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = source; -#line 389 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_data_source_command_undo_on_source (self, _tmp30_); -#line 5573 "Commands.c" - } -#line 391 "/home/jens/Source/shotwell/src/Commands.vala" - if (completed != NULL) { -#line 5577 "Commands.c" - DataSource* _tmp31_; -#line 392 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp31_ = source; -#line 392 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (completed, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp31_); -#line 5583 "Commands.c" - } -#line 394 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp32_ = progress; -#line 394 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp32_ != NULL) { -#line 5589 "Commands.c" - gint _tmp33_; - gint _tmp34_; - gint _tmp35_; - gboolean _tmp39_ = FALSE; - GCancellable* _tmp40_; -#line 395 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp33_ = count; -#line 395 "/home/jens/Source/shotwell/src/Commands.vala" - count = _tmp33_ + 1; -#line 395 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp34_ = count; -#line 395 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp35_ = two_percent; -#line 395 "/home/jens/Source/shotwell/src/Commands.vala" - if ((_tmp34_ % _tmp35_) == 0) { -#line 5605 "Commands.c" - ProgressDialog* _tmp36_; - gint _tmp37_; - gint _tmp38_; -#line 396 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp36_ = progress; -#line 396 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp37_ = count; -#line 396 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp38_ = total; -#line 396 "/home/jens/Source/shotwell/src/Commands.vala" - progress_dialog_set_fraction (_tmp36_, _tmp37_, _tmp38_); -#line 397 "/home/jens/Source/shotwell/src/Commands.vala" - spin_event_loop (); -#line 5619 "Commands.c" - } -#line 400 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp40_ = cancellable; -#line 400 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp40_ != NULL) { -#line 5625 "Commands.c" - GCancellable* _tmp41_; -#line 400 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp41_ = cancellable; -#line 400 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp39_ = g_cancellable_is_cancelled (_tmp41_); -#line 5631 "Commands.c" - } else { -#line 400 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp39_ = FALSE; -#line 5635 "Commands.c" - } -#line 400 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp39_) { -#line 401 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 401 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 5643 "Commands.c" - } - } -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 5648 "Commands.c" - } -#line 385 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_list); -#line 5652 "Commands.c" - } -#line 405 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp42_ = progress; -#line 405 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp42_ != NULL) { -#line 5658 "Commands.c" - ProgressDialog* _tmp43_; -#line 406 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp43_ = progress; -#line 406 "/home/jens/Source/shotwell/src/Commands.vala" - progress_dialog_close (_tmp43_); -#line 5664 "Commands.c" - } -#line 408 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp44_ = app_window_get_instance (); -#line 408 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp45_ = _tmp44_; -#line 408 "/home/jens/Source/shotwell/src/Commands.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_PAGE_WINDOW, PageWindow)); -#line 408 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp45_); -#line 366 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (progress); -#line 366 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (cancellable); -#line 366 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (text); -#line 5680 "Commands.c" -} - - -static void -multiple_data_source_command_class_init (MultipleDataSourceCommandClass * klass) -{ -#line 275 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_data_source_command_parent_class = g_type_class_peek_parent (klass); -#line 275 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (MultipleDataSourceCommandPrivate)); -#line 275 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) multiple_data_source_command_real_execute; -#line 275 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) multiple_data_source_command_real_execute_on_source; -#line 275 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) multiple_data_source_command_real_undo; -#line 275 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) multiple_data_source_command_real_undo_on_source; -#line 275 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = multiple_data_source_command_finalize; -#line 5701 "Commands.c" -} - - -static void -multiple_data_source_command_instance_init (MultipleDataSourceCommand * self) -{ - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; - GeeHashSet* _tmp2_; -#line 275 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = MULTIPLE_DATA_SOURCE_COMMAND_GET_PRIVATE (self); -#line 278 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_array_list_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 278 "/home/jens/Source/shotwell/src/Commands.vala" - self->source_list = _tmp0_; -#line 282 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_array_list_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 282 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->acted_upon = _tmp1_; -#line 283 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = gee_hash_set_new (TYPE_SOURCE_COLLECTION, (GBoxedCopyFunc) data_collection_ref, (GDestroyNotify) data_collection_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 283 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->hooked_collections = _tmp2_; -#line 5725 "Commands.c" -} - - -static void -multiple_data_source_command_finalize (GObject * obj) -{ - MultipleDataSourceCommand * self; -#line 275 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand); -#line 5735 "Commands.c" - { - GeeIterator* _current_collection_it = NULL; - GeeHashSet* _tmp0_; - GeeIterator* _tmp1_; -#line 308 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->hooked_collections; -#line 308 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 308 "/home/jens/Source/shotwell/src/Commands.vala" - _current_collection_it = _tmp1_; -#line 308 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 5748 "Commands.c" - GeeIterator* _tmp2_; - SourceCollection* current_collection = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - SourceCollection* _tmp5_; - guint _tmp6_; -#line 308 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _current_collection_it; -#line 308 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 308 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 5761 "Commands.c" - } -#line 308 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _current_collection_it; -#line 308 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 308 "/home/jens/Source/shotwell/src/Commands.vala" - current_collection = (SourceCollection*) _tmp4_; -#line 309 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = current_collection; -#line 309 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp6_, NULL, FALSE); -#line 309 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _multiple_data_source_command_on_source_destroyed_source_collection_item_destroyed, self); -#line 308 "/home/jens/Source/shotwell/src/Commands.vala" - _data_collection_unref0 (current_collection); -#line 5777 "Commands.c" - } -#line 308 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_current_collection_it); -#line 5781 "Commands.c" - } -#line 278 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->source_list); -#line 280 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->progress_text); -#line 281 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->undo_progress_text); -#line 282 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->acted_upon); -#line 283 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->hooked_collections); -#line 275 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (multiple_data_source_command_parent_class)->finalize (obj); -#line 5795 "Commands.c" -} - - -GType -multiple_data_source_command_get_type (void) -{ - static volatile gsize multiple_data_source_command_type_id__volatile = 0; - if (g_once_init_enter (&multiple_data_source_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MultipleDataSourceCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) multiple_data_source_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MultipleDataSourceCommand), 0, (GInstanceInitFunc) multiple_data_source_command_instance_init, NULL }; - GType multiple_data_source_command_type_id; - multiple_data_source_command_type_id = g_type_register_static (TYPE_PAGE_COMMAND, "MultipleDataSourceCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&multiple_data_source_command_type_id__volatile, multiple_data_source_command_type_id); - } - return multiple_data_source_command_type_id__volatile; -} - - -static void -_multiple_data_source_at_once_command_on_sources_destroyed_source_collection_items_destroyed (SourceCollection* _sender, - GeeCollection* destroyed, - gpointer self) -{ -#line 435 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_data_source_at_once_command_on_sources_destroyed ((MultipleDataSourceAtOnceCommand*) self, destroyed); -#line 5820 "Commands.c" -} - - -MultipleDataSourceAtOnceCommand* -multiple_data_source_at_once_command_construct (GType object_type, - GeeCollection* sources, - const gchar* name, - const gchar* explanation) -{ - MultipleDataSourceAtOnceCommand * self = NULL; - GeeHashSet* _tmp0_; -#line 417 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (sources), NULL); -#line 417 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 417 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 419 "/home/jens/Source/shotwell/src/Commands.vala" - self = (MultipleDataSourceAtOnceCommand*) page_command_construct (object_type, name, explanation); -#line 421 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->sources; -#line 421 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), sources); -#line 5844 "Commands.c" - { - GeeIterator* _source_it = NULL; - GeeHashSet* _tmp1_; - GeeIterator* _tmp2_; -#line 423 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->sources; -#line 423 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 423 "/home/jens/Source/shotwell/src/Commands.vala" - _source_it = _tmp2_; -#line 423 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 5857 "Commands.c" - GeeIterator* _tmp3_; - DataSource* source = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - SourceCollection* membership = NULL; - DataSource* _tmp6_; - DataCollection* _tmp7_; - SourceCollection* _tmp8_; - SourceCollection* _tmp9_; -#line 423 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _source_it; -#line 423 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 423 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 5873 "Commands.c" - } -#line 423 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _source_it; -#line 423 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 423 "/home/jens/Source/shotwell/src/Commands.vala" - source = (DataSource*) _tmp5_; -#line 424 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = source; -#line 424 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_OBJECT, DataObject)); -#line 424 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_SOURCE_COLLECTION) ? ((SourceCollection*) _tmp7_) : NULL; -#line 424 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp8_ == NULL) { -#line 424 "/home/jens/Source/shotwell/src/Commands.vala" - _data_collection_unref0 (_tmp7_); -#line 5891 "Commands.c" - } -#line 424 "/home/jens/Source/shotwell/src/Commands.vala" - membership = _tmp8_; -#line 425 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = membership; -#line 425 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp9_ != NULL) { -#line 5899 "Commands.c" - GeeHashSet* _tmp10_; - SourceCollection* _tmp11_; -#line 426 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = self->priv->hooked_collections; -#line 426 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = membership; -#line 426 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp11_); -#line 5908 "Commands.c" - } -#line 423 "/home/jens/Source/shotwell/src/Commands.vala" - _data_collection_unref0 (membership); -#line 423 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 5914 "Commands.c" - } -#line 423 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_it); -#line 5918 "Commands.c" - } - { - GeeIterator* _source_collection_it = NULL; - GeeHashSet* _tmp12_; - GeeIterator* _tmp13_; -#line 429 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = self->priv->hooked_collections; -#line 429 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 429 "/home/jens/Source/shotwell/src/Commands.vala" - _source_collection_it = _tmp13_; -#line 429 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 5932 "Commands.c" - GeeIterator* _tmp14_; - SourceCollection* source_collection = NULL; - GeeIterator* _tmp15_; - gpointer _tmp16_; - SourceCollection* _tmp17_; -#line 429 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = _source_collection_it; -#line 429 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp14_)) { -#line 429 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 5944 "Commands.c" - } -#line 429 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = _source_collection_it; -#line 429 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = gee_iterator_get (_tmp15_); -#line 429 "/home/jens/Source/shotwell/src/Commands.vala" - source_collection = (SourceCollection*) _tmp16_; -#line 430 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = source_collection; -#line 430 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (_tmp17_, "items-destroyed", (GCallback) _multiple_data_source_at_once_command_on_sources_destroyed_source_collection_items_destroyed, self, 0); -#line 429 "/home/jens/Source/shotwell/src/Commands.vala" - _data_collection_unref0 (source_collection); -#line 5958 "Commands.c" - } -#line 429 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_collection_it); -#line 5962 "Commands.c" - } -#line 417 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 5966 "Commands.c" -} - - -static void -multiple_data_source_at_once_command_real_execute (Command* base) -{ - MultipleDataSourceAtOnceCommand * self; - AppWindow* _tmp0_; - AppWindow* _tmp1_; - MediaCollectionRegistry* _tmp2_; - MediaCollectionRegistry* _tmp3_; - GeeHashSet* _tmp4_; - MediaCollectionRegistry* _tmp5_; - MediaCollectionRegistry* _tmp6_; - GError * _inner_error_ = NULL; -#line 438 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommand); -#line 439 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = app_window_get_instance (); -#line 439 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 439 "/home/jens/Source/shotwell/src/Commands.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow)); -#line 439 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp1_); -#line 441 "/home/jens/Source/shotwell/src/Commands.vala" - database_table_begin_transaction (); -#line 442 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = media_collection_registry_get_instance (); -#line 442 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 442 "/home/jens/Source/shotwell/src/Commands.vala" - media_collection_registry_freeze_all (_tmp3_); -#line 442 "/home/jens/Source/shotwell/src/Commands.vala" - _media_collection_registry_unref0 (_tmp3_); -#line 444 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->sources; -#line 444 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_data_source_at_once_command_execute_on_all (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 446 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = media_collection_registry_get_instance (); -#line 446 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tmp5_; -#line 446 "/home/jens/Source/shotwell/src/Commands.vala" - media_collection_registry_thaw_all (_tmp6_); -#line 446 "/home/jens/Source/shotwell/src/Commands.vala" - _media_collection_registry_unref0 (_tmp6_); -#line 6014 "Commands.c" - { -#line 448 "/home/jens/Source/shotwell/src/Commands.vala" - database_table_commit_transaction (&_inner_error_); -#line 448 "/home/jens/Source/shotwell/src/Commands.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 448 "/home/jens/Source/shotwell/src/Commands.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 6022 "Commands.c" - goto __catch464_database_error; - } - { - AppWindow* _tmp7_; - AppWindow* _tmp8_; -#line 452 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = app_window_get_instance (); -#line 452 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _tmp7_; -#line 452 "/home/jens/Source/shotwell/src/Commands.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PAGE_WINDOW, PageWindow)); -#line 452 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp8_); -#line 6036 "Commands.c" - } -#line 448 "/home/jens/Source/shotwell/src/Commands.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 448 "/home/jens/Source/shotwell/src/Commands.vala" - g_clear_error (&_inner_error_); -#line 448 "/home/jens/Source/shotwell/src/Commands.vala" - return; -#line 6044 "Commands.c" - } - } - goto __finally464; - __catch464_database_error: - { - GError* err = NULL; - GError* _tmp9_; -#line 447 "/home/jens/Source/shotwell/src/Commands.vala" - err = _inner_error_; -#line 447 "/home/jens/Source/shotwell/src/Commands.vala" - _inner_error_ = NULL; -#line 450 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = err; -#line 450 "/home/jens/Source/shotwell/src/Commands.vala" - app_window_database_error (_tmp9_); -#line 447 "/home/jens/Source/shotwell/src/Commands.vala" - _g_error_free0 (err); -#line 6062 "Commands.c" - } - __finally464: - { - AppWindow* _tmp10_; - AppWindow* _tmp11_; -#line 452 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = app_window_get_instance (); -#line 452 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _tmp10_; -#line 452 "/home/jens/Source/shotwell/src/Commands.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PAGE_WINDOW, PageWindow)); -#line 452 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp11_); -#line 6076 "Commands.c" - } -#line 447 "/home/jens/Source/shotwell/src/Commands.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 447 "/home/jens/Source/shotwell/src/Commands.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 447 "/home/jens/Source/shotwell/src/Commands.vala" - g_clear_error (&_inner_error_); -#line 447 "/home/jens/Source/shotwell/src/Commands.vala" - return; -#line 6086 "Commands.c" - } -} - - -static void -multiple_data_source_at_once_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* self, - GeeCollection* sources) -{ -#line 456 "/home/jens/Source/shotwell/src/Commands.vala" - g_critical ("Type `%s' does not implement abstract method `multiple_data_source_at_once_command_execute_on_all'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 456 "/home/jens/Source/shotwell/src/Commands.vala" - return; -#line 6099 "Commands.c" -} - - -void -multiple_data_source_at_once_command_execute_on_all (MultipleDataSourceAtOnceCommand* self, - GeeCollection* sources) -{ -#line 456 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (self)); -#line 456 "/home/jens/Source/shotwell/src/Commands.vala" - MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_CLASS (self)->execute_on_all (self, sources); -#line 6111 "Commands.c" -} - - -static void -multiple_data_source_at_once_command_real_undo (Command* base) -{ - MultipleDataSourceAtOnceCommand * self; - AppWindow* _tmp0_; - AppWindow* _tmp1_; - MediaCollectionRegistry* _tmp2_; - MediaCollectionRegistry* _tmp3_; - GeeHashSet* _tmp4_; - MediaCollectionRegistry* _tmp5_; - MediaCollectionRegistry* _tmp6_; - GError * _inner_error_ = NULL; -#line 458 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommand); -#line 459 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = app_window_get_instance (); -#line 459 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 459 "/home/jens/Source/shotwell/src/Commands.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow)); -#line 459 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp1_); -#line 461 "/home/jens/Source/shotwell/src/Commands.vala" - database_table_begin_transaction (); -#line 462 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = media_collection_registry_get_instance (); -#line 462 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 462 "/home/jens/Source/shotwell/src/Commands.vala" - media_collection_registry_freeze_all (_tmp3_); -#line 462 "/home/jens/Source/shotwell/src/Commands.vala" - _media_collection_registry_unref0 (_tmp3_); -#line 464 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->sources; -#line 464 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_data_source_at_once_command_undo_on_all (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 466 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = media_collection_registry_get_instance (); -#line 466 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tmp5_; -#line 466 "/home/jens/Source/shotwell/src/Commands.vala" - media_collection_registry_thaw_all (_tmp6_); -#line 466 "/home/jens/Source/shotwell/src/Commands.vala" - _media_collection_registry_unref0 (_tmp6_); -#line 6159 "Commands.c" - { -#line 468 "/home/jens/Source/shotwell/src/Commands.vala" - database_table_commit_transaction (&_inner_error_); -#line 468 "/home/jens/Source/shotwell/src/Commands.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 468 "/home/jens/Source/shotwell/src/Commands.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 6167 "Commands.c" - goto __catch465_database_error; - } - { - AppWindow* _tmp7_; - AppWindow* _tmp8_; -#line 472 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = app_window_get_instance (); -#line 472 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _tmp7_; -#line 472 "/home/jens/Source/shotwell/src/Commands.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PAGE_WINDOW, PageWindow)); -#line 472 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp8_); -#line 6181 "Commands.c" - } -#line 468 "/home/jens/Source/shotwell/src/Commands.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 468 "/home/jens/Source/shotwell/src/Commands.vala" - g_clear_error (&_inner_error_); -#line 468 "/home/jens/Source/shotwell/src/Commands.vala" - return; -#line 6189 "Commands.c" - } - } - goto __finally465; - __catch465_database_error: - { - GError* err = NULL; - GError* _tmp9_; -#line 467 "/home/jens/Source/shotwell/src/Commands.vala" - err = _inner_error_; -#line 467 "/home/jens/Source/shotwell/src/Commands.vala" - _inner_error_ = NULL; -#line 470 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = err; -#line 470 "/home/jens/Source/shotwell/src/Commands.vala" - app_window_database_error (_tmp9_); -#line 467 "/home/jens/Source/shotwell/src/Commands.vala" - _g_error_free0 (err); -#line 6207 "Commands.c" - } - __finally465: - { - AppWindow* _tmp10_; - AppWindow* _tmp11_; -#line 472 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = app_window_get_instance (); -#line 472 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _tmp10_; -#line 472 "/home/jens/Source/shotwell/src/Commands.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PAGE_WINDOW, PageWindow)); -#line 472 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp11_); -#line 6221 "Commands.c" - } -#line 467 "/home/jens/Source/shotwell/src/Commands.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 467 "/home/jens/Source/shotwell/src/Commands.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 467 "/home/jens/Source/shotwell/src/Commands.vala" - g_clear_error (&_inner_error_); -#line 467 "/home/jens/Source/shotwell/src/Commands.vala" - return; -#line 6231 "Commands.c" - } -} - - -static void -multiple_data_source_at_once_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* self, - GeeCollection* sources) -{ -#line 476 "/home/jens/Source/shotwell/src/Commands.vala" - g_critical ("Type `%s' does not implement abstract method `multiple_data_source_at_once_command_undo_on_all'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 476 "/home/jens/Source/shotwell/src/Commands.vala" - return; -#line 6244 "Commands.c" -} - - -void -multiple_data_source_at_once_command_undo_on_all (MultipleDataSourceAtOnceCommand* self, - GeeCollection* sources) -{ -#line 476 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (self)); -#line 476 "/home/jens/Source/shotwell/src/Commands.vala" - MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_CLASS (self)->undo_on_all (self, sources); -#line 6256 "Commands.c" -} - - -static void -multiple_data_source_at_once_command_on_sources_destroyed (MultipleDataSourceAtOnceCommand* self, - GeeCollection* destroyed) -{ -#line 478 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (self)); -#line 478 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (GEE_IS_COLLECTION (destroyed)); -#line 6268 "Commands.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 479 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (destroyed, GEE_TYPE_ITERABLE, GeeIterable)); -#line 479 "/home/jens/Source/shotwell/src/Commands.vala" - _source_it = _tmp0_; -#line 479 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 6278 "Commands.c" - GeeIterator* _tmp1_; - DataSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - GeeHashSet* _tmp4_; - DataSource* _tmp5_; -#line 479 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _source_it; -#line 479 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 479 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 6291 "Commands.c" - } -#line 479 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _source_it; -#line 479 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 479 "/home/jens/Source/shotwell/src/Commands.vala" - source = (DataSource*) _tmp3_; -#line 480 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->sources; -#line 480 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = source; -#line 480 "/home/jens/Source/shotwell/src/Commands.vala" - if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp5_)) { -#line 6305 "Commands.c" - CommandManager* _tmp6_; - CommandManager* _tmp7_; -#line 481 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command)); -#line 481 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _tmp6_; -#line 481 "/home/jens/Source/shotwell/src/Commands.vala" - command_manager_reset (_tmp7_); -#line 481 "/home/jens/Source/shotwell/src/Commands.vala" - _command_manager_unref0 (_tmp7_); -#line 483 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 483 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 6320 "Commands.c" - } -#line 479 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 6324 "Commands.c" - } -#line 479 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_it); -#line 6328 "Commands.c" - } -} - - -static void -multiple_data_source_at_once_command_class_init (MultipleDataSourceAtOnceCommandClass * klass) -{ -#line 413 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_data_source_at_once_command_parent_class = g_type_class_peek_parent (klass); -#line 413 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (MultipleDataSourceAtOnceCommandPrivate)); -#line 413 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) multiple_data_source_at_once_command_real_execute; -#line 413 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceAtOnceCommandClass *) klass)->execute_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) multiple_data_source_at_once_command_real_execute_on_all; -#line 413 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) multiple_data_source_at_once_command_real_undo; -#line 413 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceAtOnceCommandClass *) klass)->undo_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) multiple_data_source_at_once_command_real_undo_on_all; -#line 413 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = multiple_data_source_at_once_command_finalize; -#line 6350 "Commands.c" -} - - -static void -multiple_data_source_at_once_command_instance_init (MultipleDataSourceAtOnceCommand * self) -{ - GeeHashSet* _tmp0_; - GeeHashSet* _tmp1_; -#line 413 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_PRIVATE (self); -#line 414 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_hash_set_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 414 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->sources = _tmp0_; -#line 415 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_hash_set_new (TYPE_SOURCE_COLLECTION, (GBoxedCopyFunc) data_collection_ref, (GDestroyNotify) data_collection_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 415 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->hooked_collections = _tmp1_; -#line 6369 "Commands.c" -} - - -static void -multiple_data_source_at_once_command_finalize (GObject * obj) -{ - MultipleDataSourceAtOnceCommand * self; -#line 413 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommand); -#line 6379 "Commands.c" - { - GeeIterator* _source_collection_it = NULL; - GeeHashSet* _tmp0_; - GeeIterator* _tmp1_; -#line 434 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->hooked_collections; -#line 434 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 434 "/home/jens/Source/shotwell/src/Commands.vala" - _source_collection_it = _tmp1_; -#line 434 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 6392 "Commands.c" - GeeIterator* _tmp2_; - SourceCollection* source_collection = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - SourceCollection* _tmp5_; - guint _tmp6_; -#line 434 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _source_collection_it; -#line 434 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 434 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 6405 "Commands.c" - } -#line 434 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _source_collection_it; -#line 434 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 434 "/home/jens/Source/shotwell/src/Commands.vala" - source_collection = (SourceCollection*) _tmp4_; -#line 435 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = source_collection; -#line 435 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("items-destroyed", TYPE_SOURCE_COLLECTION, &_tmp6_, NULL, FALSE); -#line 435 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _multiple_data_source_at_once_command_on_sources_destroyed_source_collection_items_destroyed, self); -#line 434 "/home/jens/Source/shotwell/src/Commands.vala" - _data_collection_unref0 (source_collection); -#line 6421 "Commands.c" - } -#line 434 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_collection_it); -#line 6425 "Commands.c" - } -#line 414 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->sources); -#line 415 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->hooked_collections); -#line 413 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (multiple_data_source_at_once_command_parent_class)->finalize (obj); -#line 6433 "Commands.c" -} - - -GType -multiple_data_source_at_once_command_get_type (void) -{ - static volatile gsize multiple_data_source_at_once_command_type_id__volatile = 0; - if (g_once_init_enter (&multiple_data_source_at_once_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MultipleDataSourceAtOnceCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) multiple_data_source_at_once_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MultipleDataSourceAtOnceCommand), 0, (GInstanceInitFunc) multiple_data_source_at_once_command_instance_init, NULL }; - GType multiple_data_source_at_once_command_type_id; - multiple_data_source_at_once_command_type_id = g_type_register_static (TYPE_PAGE_COMMAND, "MultipleDataSourceAtOnceCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&multiple_data_source_at_once_command_type_id__volatile, multiple_data_source_at_once_command_type_id); - } - return multiple_data_source_at_once_command_type_id__volatile; -} - - -static void -_multiple_photo_transformation_command_on_state_broken_photo_transformation_state_broken (PhotoTransformationState* _sender, - gpointer self) -{ -#line 508 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_photo_transformation_command_on_state_broken ((MultiplePhotoTransformationCommand*) self); -#line 6457 "Commands.c" -} - - -MultiplePhotoTransformationCommand* -multiple_photo_transformation_command_construct (GType object_type, - GeeIterable* iter, - const gchar* progress_text, - const gchar* undo_progress_text, - const gchar* name, - const gchar* explanation) -{ - MultiplePhotoTransformationCommand * self = NULL; -#line 493 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL); -#line 493 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (progress_text != NULL, NULL); -#line 493 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (undo_progress_text != NULL, NULL); -#line 493 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 493 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 495 "/home/jens/Source/shotwell/src/Commands.vala" - self = (MultiplePhotoTransformationCommand*) multiple_data_source_command_construct (object_type, iter, progress_text, undo_progress_text, name, explanation); -#line 6482 "Commands.c" - { - GeeArrayList* _source_list = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; - gint _source_size = 0; - GeeArrayList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _source_index = 0; -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)->source_list; -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _source_list = _tmp1_; -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _source_list; -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _tmp3_; -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _source_size = _tmp4_; -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _source_index = -1; -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 6510 "Commands.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - DataSource* source = NULL; - GeeArrayList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - Photo* photo = NULL; - DataSource* _tmp11_; - Photo* _tmp12_; - PhotoTransformationState* state = NULL; - Photo* _tmp13_; - PhotoTransformationState* _tmp14_; - PhotoTransformationState* _tmp15_; - GeeHashMap* _tmp16_; - Photo* _tmp17_; - PhotoTransformationState* _tmp18_; -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _source_index; -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _source_index = _tmp5_ + 1; -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _source_index; -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _source_size; -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 6540 "Commands.c" - } -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _source_list; -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = _source_index; -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_); -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - source = (DataSource*) _tmp10_; -#line 498 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = source; -#line 498 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PHOTO, Photo)); -#line 498 "/home/jens/Source/shotwell/src/Commands.vala" - photo = _tmp12_; -#line 499 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = photo; -#line 499 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = photo_save_transformation_state (_tmp13_); -#line 499 "/home/jens/Source/shotwell/src/Commands.vala" - state = _tmp14_; -#line 500 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = state; -#line 500 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (_tmp15_, "broken", (GCallback) _multiple_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self, 0); -#line 502 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = self->priv->map; -#line 502 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = photo; -#line 502 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = state; -#line 502 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp17_, _tmp18_); -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (state); -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (photo); -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 6580 "Commands.c" - } -#line 497 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_list); -#line 6584 "Commands.c" - } -#line 493 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 6588 "Commands.c" -} - - -static void -multiple_photo_transformation_command_real_undo_on_source (MultipleDataSourceCommand* base, - DataSource* source) -{ - MultiplePhotoTransformationCommand * self; - Photo* photo = NULL; - Photo* _tmp0_; - PhotoTransformationState* state = NULL; - GeeHashMap* _tmp1_; - gpointer _tmp2_; -#line 511 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommand); -#line 511 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 512 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo)); -#line 512 "/home/jens/Source/shotwell/src/Commands.vala" - photo = _tmp0_; -#line 514 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->map; -#line 514 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo); -#line 514 "/home/jens/Source/shotwell/src/Commands.vala" - state = (PhotoTransformationState*) _tmp2_; -#line 515 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (state != NULL, "state != null"); -#line 517 "/home/jens/Source/shotwell/src/Commands.vala" - photo_load_transformation_state (photo, state); -#line 511 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (state); -#line 511 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (photo); -#line 6624 "Commands.c" -} - - -static void -multiple_photo_transformation_command_on_state_broken (MultiplePhotoTransformationCommand* self) -{ - CommandManager* _tmp0_; - CommandManager* _tmp1_; -#line 520 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND (self)); -#line 521 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command)); -#line 521 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 521 "/home/jens/Source/shotwell/src/Commands.vala" - command_manager_reset (_tmp1_); -#line 521 "/home/jens/Source/shotwell/src/Commands.vala" - _command_manager_unref0 (_tmp1_); -#line 6643 "Commands.c" -} - - -static void -multiple_photo_transformation_command_class_init (MultiplePhotoTransformationCommandClass * klass) -{ -#line 489 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_photo_transformation_command_parent_class = g_type_class_peek_parent (klass); -#line 489 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (MultiplePhotoTransformationCommandPrivate)); -#line 489 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) multiple_photo_transformation_command_real_undo_on_source; -#line 489 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = multiple_photo_transformation_command_finalize; -#line 6658 "Commands.c" -} - - -static void -multiple_photo_transformation_command_instance_init (MultiplePhotoTransformationCommand * self) -{ - GeeHashMap* _tmp0_; -#line 489 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = MULTIPLE_PHOTO_TRANSFORMATION_COMMAND_GET_PRIVATE (self); -#line 490 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_hash_map_new (TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_PHOTO_TRANSFORMATION_STATE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 490 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->map = _tmp0_; -#line 6672 "Commands.c" -} - - -static void -multiple_photo_transformation_command_finalize (GObject * obj) -{ - MultiplePhotoTransformationCommand * self; -#line 489 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, MultiplePhotoTransformationCommand); -#line 6682 "Commands.c" - { - GeeIterator* _state_it = NULL; - GeeHashMap* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 507 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->map; -#line 507 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 507 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _tmp1_; -#line 507 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 507 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 507 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp4_; -#line 507 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp3_); -#line 507 "/home/jens/Source/shotwell/src/Commands.vala" - _state_it = _tmp5_; -#line 507 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 6709 "Commands.c" - GeeIterator* _tmp6_; - PhotoTransformationState* state = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - PhotoTransformationState* _tmp9_; - guint _tmp10_; -#line 507 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _state_it; -#line 507 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 507 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 6722 "Commands.c" - } -#line 507 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _state_it; -#line 507 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 507 "/home/jens/Source/shotwell/src/Commands.vala" - state = (PhotoTransformationState*) _tmp8_; -#line 508 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = state; -#line 508 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("broken", TYPE_PHOTO_TRANSFORMATION_STATE, &_tmp10_, NULL, FALSE); -#line 508 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _multiple_photo_transformation_command_on_state_broken_photo_transformation_state_broken, self); -#line 507 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (state); -#line 6738 "Commands.c" - } -#line 507 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_state_it); -#line 6742 "Commands.c" - } -#line 490 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->map); -#line 489 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (multiple_photo_transformation_command_parent_class)->finalize (obj); -#line 6748 "Commands.c" -} - - -GType -multiple_photo_transformation_command_get_type (void) -{ - static volatile gsize multiple_photo_transformation_command_type_id__volatile = 0; - if (g_once_init_enter (&multiple_photo_transformation_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MultiplePhotoTransformationCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) multiple_photo_transformation_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MultiplePhotoTransformationCommand), 0, (GInstanceInitFunc) multiple_photo_transformation_command_instance_init, NULL }; - GType multiple_photo_transformation_command_type_id; - multiple_photo_transformation_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_COMMAND, "MultiplePhotoTransformationCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&multiple_photo_transformation_command_type_id__volatile, multiple_photo_transformation_command_type_id); - } - return multiple_photo_transformation_command_type_id__volatile; -} - - -RotateSingleCommand* -rotate_single_command_construct (GType object_type, - Photo* photo, - Rotation rotation, - const gchar* name, - const gchar* explanation) -{ - RotateSingleCommand * self = NULL; -#line 528 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 528 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 528 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 529 "/home/jens/Source/shotwell/src/Commands.vala" - self = (RotateSingleCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), name, explanation); -#line 531 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->rotation = rotation; -#line 528 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 6786 "Commands.c" -} - - -RotateSingleCommand* -rotate_single_command_new (Photo* photo, - Rotation rotation, - const gchar* name, - const gchar* explanation) -{ -#line 528 "/home/jens/Source/shotwell/src/Commands.vala" - return rotate_single_command_construct (TYPE_ROTATE_SINGLE_COMMAND, photo, rotation, name, explanation); -#line 6798 "Commands.c" -} - - -static void -rotate_single_command_real_execute (Command* base) -{ - RotateSingleCommand * self; - DataSource* _tmp0_; - Rotation _tmp1_; -#line 534 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommand); -#line 535 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 535 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->rotation; -#line 535 "/home/jens/Source/shotwell/src/Commands.vala" - photo_rotate (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), _tmp1_); -#line 6816 "Commands.c" -} - - -static void -rotate_single_command_real_undo (Command* base) -{ - RotateSingleCommand * self; - DataSource* _tmp0_; - Rotation _tmp1_; -#line 538 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommand); -#line 539 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 539 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->rotation; -#line 539 "/home/jens/Source/shotwell/src/Commands.vala" - photo_rotate (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo), rotation_opposite (_tmp1_)); -#line 6834 "Commands.c" -} - - -static void -rotate_single_command_class_init (RotateSingleCommandClass * klass) -{ -#line 525 "/home/jens/Source/shotwell/src/Commands.vala" - rotate_single_command_parent_class = g_type_class_peek_parent (klass); -#line 525 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (RotateSingleCommandPrivate)); -#line 525 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) rotate_single_command_real_execute; -#line 525 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) rotate_single_command_real_undo; -#line 525 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = rotate_single_command_finalize; -#line 6851 "Commands.c" -} - - -static void -rotate_single_command_instance_init (RotateSingleCommand * self) -{ -#line 525 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = ROTATE_SINGLE_COMMAND_GET_PRIVATE (self); -#line 6860 "Commands.c" -} - - -static void -rotate_single_command_finalize (GObject * obj) -{ - RotateSingleCommand * self; -#line 525 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommand); -#line 525 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (rotate_single_command_parent_class)->finalize (obj); -#line 6872 "Commands.c" -} - - -GType -rotate_single_command_get_type (void) -{ - static volatile gsize rotate_single_command_type_id__volatile = 0; - if (g_once_init_enter (&rotate_single_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (RotateSingleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rotate_single_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RotateSingleCommand), 0, (GInstanceInitFunc) rotate_single_command_instance_init, NULL }; - GType rotate_single_command_type_id; - rotate_single_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "RotateSingleCommand", &g_define_type_info, 0); - g_once_init_leave (&rotate_single_command_type_id__volatile, rotate_single_command_type_id); - } - return rotate_single_command_type_id__volatile; -} - - -RotateMultipleCommand* -rotate_multiple_command_construct (GType object_type, - GeeIterable* iter, - Rotation rotation, - const gchar* name, - const gchar* explanation, - const gchar* progress_text, - const gchar* undo_progress_text) -{ - RotateMultipleCommand * self = NULL; -#line 546 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL); -#line 546 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 546 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 546 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (progress_text != NULL, NULL); -#line 546 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (undo_progress_text != NULL, NULL); -#line 548 "/home/jens/Source/shotwell/src/Commands.vala" - self = (RotateMultipleCommand*) multiple_data_source_command_construct (object_type, iter, progress_text, undo_progress_text, name, explanation); -#line 550 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->rotation = rotation; -#line 546 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 6916 "Commands.c" -} - - -RotateMultipleCommand* -rotate_multiple_command_new (GeeIterable* iter, - Rotation rotation, - const gchar* name, - const gchar* explanation, - const gchar* progress_text, - const gchar* undo_progress_text) -{ -#line 546 "/home/jens/Source/shotwell/src/Commands.vala" - return rotate_multiple_command_construct (TYPE_ROTATE_MULTIPLE_COMMAND, iter, rotation, name, explanation, progress_text, undo_progress_text); -#line 6930 "Commands.c" -} - - -static void -rotate_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source) -{ - RotateMultipleCommand * self; - Rotation _tmp0_; -#line 553 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommand); -#line 553 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 554 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->rotation; -#line 554 "/home/jens/Source/shotwell/src/Commands.vala" - photo_rotate (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo), _tmp0_); -#line 6948 "Commands.c" -} - - -static void -rotate_multiple_command_real_undo_on_source (MultipleDataSourceCommand* base, - DataSource* source) -{ - RotateMultipleCommand * self; - Rotation _tmp0_; -#line 557 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommand); -#line 557 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 558 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->rotation; -#line 558 "/home/jens/Source/shotwell/src/Commands.vala" - photo_rotate (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo), rotation_opposite (_tmp0_)); -#line 6966 "Commands.c" -} - - -static void -rotate_multiple_command_class_init (RotateMultipleCommandClass * klass) -{ -#line 543 "/home/jens/Source/shotwell/src/Commands.vala" - rotate_multiple_command_parent_class = g_type_class_peek_parent (klass); -#line 543 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (RotateMultipleCommandPrivate)); -#line 543 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) rotate_multiple_command_real_execute_on_source; -#line 543 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) rotate_multiple_command_real_undo_on_source; -#line 543 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = rotate_multiple_command_finalize; -#line 6983 "Commands.c" -} - - -static void -rotate_multiple_command_instance_init (RotateMultipleCommand * self) -{ -#line 543 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = ROTATE_MULTIPLE_COMMAND_GET_PRIVATE (self); -#line 6992 "Commands.c" -} - - -static void -rotate_multiple_command_finalize (GObject * obj) -{ - RotateMultipleCommand * self; -#line 543 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ROTATE_MULTIPLE_COMMAND, RotateMultipleCommand); -#line 543 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (rotate_multiple_command_parent_class)->finalize (obj); -#line 7004 "Commands.c" -} - - -GType -rotate_multiple_command_get_type (void) -{ - static volatile gsize rotate_multiple_command_type_id__volatile = 0; - if (g_once_init_enter (&rotate_multiple_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (RotateMultipleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rotate_multiple_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RotateMultipleCommand), 0, (GInstanceInitFunc) rotate_multiple_command_instance_init, NULL }; - GType rotate_multiple_command_type_id; - rotate_multiple_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_COMMAND, "RotateMultipleCommand", &g_define_type_info, 0); - g_once_init_leave (&rotate_multiple_command_type_id__volatile, rotate_multiple_command_type_id); - } - return rotate_multiple_command_type_id__volatile; -} - - -EditTitleCommand* -edit_title_command_construct (GType object_type, - MediaSource* source, - const gchar* new_title) -{ - EditTitleCommand * self = NULL; - gchar* title = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 566 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL); -#line 566 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (new_title != NULL, NULL); -#line 567 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = g_strdup (g_dpgettext2 (NULL, "Button Label", RESOURCES_EDIT_TITLE_LABEL)); -#line 567 "/home/jens/Source/shotwell/src/Commands.vala" - title = _tmp0_; -#line 569 "/home/jens/Source/shotwell/src/Commands.vala" - self = (EditTitleCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource), title, ""); -#line 571 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = g_strdup (new_title); -#line 571 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->new_title); -#line 571 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->new_title = _tmp1_; -#line 572 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = media_source_get_title (source); -#line 572 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->old_title); -#line 572 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->old_title = _tmp2_; -#line 566 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (title); -#line 566 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 7058 "Commands.c" -} - - -EditTitleCommand* -edit_title_command_new (MediaSource* source, - const gchar* new_title) -{ -#line 566 "/home/jens/Source/shotwell/src/Commands.vala" - return edit_title_command_construct (TYPE_EDIT_TITLE_COMMAND, source, new_title); -#line 7068 "Commands.c" -} - - -static void -edit_title_command_real_execute (Command* base) -{ - EditTitleCommand * self; - DataSource* _tmp0_; - const gchar* _tmp1_; -#line 575 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_TITLE_COMMAND, EditTitleCommand); -#line 576 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 576 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->new_title; -#line 576 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_); -#line 7086 "Commands.c" -} - - -static void -edit_title_command_real_undo (Command* base) -{ - EditTitleCommand * self; - DataSource* _tmp0_; - const gchar* _tmp1_; -#line 579 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_TITLE_COMMAND, EditTitleCommand); -#line 580 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 580 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->old_title; -#line 580 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_); -#line 7104 "Commands.c" -} - - -static void -edit_title_command_class_init (EditTitleCommandClass * klass) -{ -#line 562 "/home/jens/Source/shotwell/src/Commands.vala" - edit_title_command_parent_class = g_type_class_peek_parent (klass); -#line 562 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (EditTitleCommandPrivate)); -#line 562 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) edit_title_command_real_execute; -#line 562 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) edit_title_command_real_undo; -#line 562 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = edit_title_command_finalize; -#line 7121 "Commands.c" -} - - -static void -edit_title_command_instance_init (EditTitleCommand * self) -{ -#line 562 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = EDIT_TITLE_COMMAND_GET_PRIVATE (self); -#line 7130 "Commands.c" -} - - -static void -edit_title_command_finalize (GObject * obj) -{ - EditTitleCommand * self; -#line 562 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EDIT_TITLE_COMMAND, EditTitleCommand); -#line 563 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->new_title); -#line 564 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->old_title); -#line 562 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (edit_title_command_parent_class)->finalize (obj); -#line 7146 "Commands.c" -} - - -GType -edit_title_command_get_type (void) -{ - static volatile gsize edit_title_command_type_id__volatile = 0; - if (g_once_init_enter (&edit_title_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditTitleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_title_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditTitleCommand), 0, (GInstanceInitFunc) edit_title_command_instance_init, NULL }; - GType edit_title_command_type_id; - edit_title_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "EditTitleCommand", &g_define_type_info, 0); - g_once_init_leave (&edit_title_command_type_id__volatile, edit_title_command_type_id); - } - return edit_title_command_type_id__volatile; -} - - -EditCommentCommand* -edit_comment_command_construct (GType object_type, - MediaSource* source, - const gchar* new_comment) -{ - EditCommentCommand * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 588 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL); -#line 588 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (new_comment != NULL, NULL); -#line 589 "/home/jens/Source/shotwell/src/Commands.vala" - self = (EditCommentCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource), RESOURCES_EDIT_COMMENT_LABEL, ""); -#line 591 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = g_strdup (new_comment); -#line 591 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->new_comment); -#line 591 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->new_comment = _tmp0_; -#line 592 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = media_source_get_comment (source); -#line 592 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->old_comment); -#line 592 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->old_comment = _tmp1_; -#line 588 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 7192 "Commands.c" -} - - -EditCommentCommand* -edit_comment_command_new (MediaSource* source, - const gchar* new_comment) -{ -#line 588 "/home/jens/Source/shotwell/src/Commands.vala" - return edit_comment_command_construct (TYPE_EDIT_COMMENT_COMMAND, source, new_comment); -#line 7202 "Commands.c" -} - - -static void -edit_comment_command_real_execute (Command* base) -{ - EditCommentCommand * self; - DataSource* _tmp0_; - const gchar* _tmp1_; -#line 595 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_COMMENT_COMMAND, EditCommentCommand); -#line 596 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 596 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->new_comment; -#line 596 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_); -#line 7220 "Commands.c" -} - - -static void -edit_comment_command_real_undo (Command* base) -{ - EditCommentCommand * self; - DataSource* _tmp0_; - const gchar* _tmp1_; -#line 599 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_COMMENT_COMMAND, EditCommentCommand); -#line 600 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 600 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->old_comment; -#line 600 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_); -#line 7238 "Commands.c" -} - - -static void -edit_comment_command_class_init (EditCommentCommandClass * klass) -{ -#line 584 "/home/jens/Source/shotwell/src/Commands.vala" - edit_comment_command_parent_class = g_type_class_peek_parent (klass); -#line 584 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (EditCommentCommandPrivate)); -#line 584 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) edit_comment_command_real_execute; -#line 584 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) edit_comment_command_real_undo; -#line 584 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = edit_comment_command_finalize; -#line 7255 "Commands.c" -} - - -static void -edit_comment_command_instance_init (EditCommentCommand * self) -{ -#line 584 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = EDIT_COMMENT_COMMAND_GET_PRIVATE (self); -#line 7264 "Commands.c" -} - - -static void -edit_comment_command_finalize (GObject * obj) -{ - EditCommentCommand * self; -#line 584 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EDIT_COMMENT_COMMAND, EditCommentCommand); -#line 585 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->new_comment); -#line 586 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->old_comment); -#line 584 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (edit_comment_command_parent_class)->finalize (obj); -#line 7280 "Commands.c" -} - - -GType -edit_comment_command_get_type (void) -{ - static volatile gsize edit_comment_command_type_id__volatile = 0; - if (g_once_init_enter (&edit_comment_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditCommentCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_comment_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditCommentCommand), 0, (GInstanceInitFunc) edit_comment_command_instance_init, NULL }; - GType edit_comment_command_type_id; - edit_comment_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "EditCommentCommand", &g_define_type_info, 0); - g_once_init_leave (&edit_comment_command_type_id__volatile, edit_comment_command_type_id); - } - return edit_comment_command_type_id__volatile; -} - - -EditMultipleTitlesCommand* -edit_multiple_titles_command_construct (GType object_type, - GeeCollection* media_sources, - const gchar* new_title) -{ - EditMultipleTitlesCommand * self = NULL; - gchar* title = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 608 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (media_sources), NULL); -#line 608 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (new_title != NULL, NULL); -#line 609 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = g_strdup (g_dpgettext2 (NULL, "Button Label", RESOURCES_EDIT_TITLE_LABEL)); -#line 609 "/home/jens/Source/shotwell/src/Commands.vala" - title = _tmp0_; -#line 611 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = title; -#line 611 "/home/jens/Source/shotwell/src/Commands.vala" - self = (EditMultipleTitlesCommand*) multiple_data_source_at_once_command_construct (object_type, media_sources, _tmp1_, ""); -#line 613 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = g_strdup (new_title); -#line 613 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->new_title); -#line 613 "/home/jens/Source/shotwell/src/Commands.vala" - self->new_title = _tmp2_; -#line 7326 "Commands.c" - { - GeeIterator* _media_it = NULL; - GeeIterator* _tmp3_; -#line 614 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 614 "/home/jens/Source/shotwell/src/Commands.vala" - _media_it = _tmp3_; -#line 614 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 7336 "Commands.c" - GeeIterator* _tmp4_; - MediaSource* media = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - GeeHashMap* _tmp7_; - MediaSource* _tmp8_; - MediaSource* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; -#line 614 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _media_it; -#line 614 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 614 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 7352 "Commands.c" - } -#line 614 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _media_it; -#line 614 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 614 "/home/jens/Source/shotwell/src/Commands.vala" - media = (MediaSource*) _tmp6_; -#line 615 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = self->old_titles; -#line 615 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = media; -#line 615 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = media; -#line 615 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = media_source_get_title (_tmp9_); -#line 615 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _tmp10_; -#line 615 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_, _tmp11_); -#line 615 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp11_); -#line 614 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (media); -#line 7376 "Commands.c" - } -#line 614 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_media_it); -#line 7380 "Commands.c" - } -#line 608 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (title); -#line 608 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 7386 "Commands.c" -} - - -EditMultipleTitlesCommand* -edit_multiple_titles_command_new (GeeCollection* media_sources, - const gchar* new_title) -{ -#line 608 "/home/jens/Source/shotwell/src/Commands.vala" - return edit_multiple_titles_command_construct (TYPE_EDIT_MULTIPLE_TITLES_COMMAND, media_sources, new_title); -#line 7396 "Commands.c" -} - - -static void -edit_multiple_titles_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base, - GeeCollection* sources) -{ - EditMultipleTitlesCommand * self; -#line 618 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommand); -#line 618 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 7409 "Commands.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 619 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 619 "/home/jens/Source/shotwell/src/Commands.vala" - _source_it = _tmp0_; -#line 619 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 7419 "Commands.c" - GeeIterator* _tmp1_; - DataSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataSource* _tmp4_; - const gchar* _tmp5_; -#line 619 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _source_it; -#line 619 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 619 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 7432 "Commands.c" - } -#line 619 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _source_it; -#line 619 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 619 "/home/jens/Source/shotwell/src/Commands.vala" - source = (DataSource*) _tmp3_; -#line 620 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = source; -#line 620 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = self->new_title; -#line 620 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource), _tmp5_); -#line 619 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 7448 "Commands.c" - } -#line 619 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_it); -#line 7452 "Commands.c" - } -} - - -static void -edit_multiple_titles_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base, - GeeCollection* sources) -{ - EditMultipleTitlesCommand * self; -#line 623 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommand); -#line 623 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 7466 "Commands.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 624 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 624 "/home/jens/Source/shotwell/src/Commands.vala" - _source_it = _tmp0_; -#line 624 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 7476 "Commands.c" - GeeIterator* _tmp1_; - DataSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataSource* _tmp4_; - GeeHashMap* _tmp5_; - DataSource* _tmp6_; - gpointer _tmp7_; - gchar* _tmp8_; -#line 624 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _source_it; -#line 624 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 624 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 7492 "Commands.c" - } -#line 624 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _source_it; -#line 624 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 624 "/home/jens/Source/shotwell/src/Commands.vala" - source = (DataSource*) _tmp3_; -#line 625 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = source; -#line 625 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = self->old_titles; -#line 625 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = source; -#line 625 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 625 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = (gchar*) _tmp7_; -#line 625 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource), _tmp8_); -#line 625 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp8_); -#line 624 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 7516 "Commands.c" - } -#line 624 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_it); -#line 7520 "Commands.c" - } -} - - -static void -edit_multiple_titles_command_class_init (EditMultipleTitlesCommandClass * klass) -{ -#line 604 "/home/jens/Source/shotwell/src/Commands.vala" - edit_multiple_titles_command_parent_class = g_type_class_peek_parent (klass); -#line 604 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceAtOnceCommandClass *) klass)->execute_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) edit_multiple_titles_command_real_execute_on_all; -#line 604 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceAtOnceCommandClass *) klass)->undo_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) edit_multiple_titles_command_real_undo_on_all; -#line 604 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = edit_multiple_titles_command_finalize; -#line 7536 "Commands.c" -} - - -static void -edit_multiple_titles_command_instance_init (EditMultipleTitlesCommand * self) -{ - GeeHashMap* _tmp0_; -#line 606 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_hash_map_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 606 "/home/jens/Source/shotwell/src/Commands.vala" - self->old_titles = _tmp0_; -#line 7548 "Commands.c" -} - - -static void -edit_multiple_titles_command_finalize (GObject * obj) -{ - EditMultipleTitlesCommand * self; -#line 604 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommand); -#line 605 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->new_title); -#line 606 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->old_titles); -#line 604 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (edit_multiple_titles_command_parent_class)->finalize (obj); -#line 7564 "Commands.c" -} - - -GType -edit_multiple_titles_command_get_type (void) -{ - static volatile gsize edit_multiple_titles_command_type_id__volatile = 0; - if (g_once_init_enter (&edit_multiple_titles_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditMultipleTitlesCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_multiple_titles_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditMultipleTitlesCommand), 0, (GInstanceInitFunc) edit_multiple_titles_command_instance_init, NULL }; - GType edit_multiple_titles_command_type_id; - edit_multiple_titles_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, "EditMultipleTitlesCommand", &g_define_type_info, 0); - g_once_init_leave (&edit_multiple_titles_command_type_id__volatile, edit_multiple_titles_command_type_id); - } - return edit_multiple_titles_command_type_id__volatile; -} - - -EditMultipleCommentsCommand* -edit_multiple_comments_command_construct (GType object_type, - GeeCollection* media_sources, - const gchar* new_comment) -{ - EditMultipleCommentsCommand * self = NULL; - gchar* _tmp0_; -#line 633 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (media_sources), NULL); -#line 633 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (new_comment != NULL, NULL); -#line 634 "/home/jens/Source/shotwell/src/Commands.vala" - self = (EditMultipleCommentsCommand*) multiple_data_source_at_once_command_construct (object_type, media_sources, RESOURCES_EDIT_COMMENT_LABEL, ""); -#line 636 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = g_strdup (new_comment); -#line 636 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->new_comment); -#line 636 "/home/jens/Source/shotwell/src/Commands.vala" - self->new_comment = _tmp0_; -#line 7601 "Commands.c" - { - GeeIterator* _media_it = NULL; - GeeIterator* _tmp1_; -#line 637 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 637 "/home/jens/Source/shotwell/src/Commands.vala" - _media_it = _tmp1_; -#line 637 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 7611 "Commands.c" - GeeIterator* _tmp2_; - MediaSource* media = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - GeeHashMap* _tmp5_; - MediaSource* _tmp6_; - MediaSource* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 637 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _media_it; -#line 637 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 637 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 7627 "Commands.c" - } -#line 637 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _media_it; -#line 637 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 637 "/home/jens/Source/shotwell/src/Commands.vala" - media = (MediaSource*) _tmp4_; -#line 638 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = self->old_comments; -#line 638 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = media; -#line 638 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = media; -#line 638 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = media_source_get_comment (_tmp7_); -#line 638 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = _tmp8_; -#line 638 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp6_, _tmp9_); -#line 638 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp9_); -#line 637 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (media); -#line 7651 "Commands.c" - } -#line 637 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_media_it); -#line 7655 "Commands.c" - } -#line 633 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 7659 "Commands.c" -} - - -EditMultipleCommentsCommand* -edit_multiple_comments_command_new (GeeCollection* media_sources, - const gchar* new_comment) -{ -#line 633 "/home/jens/Source/shotwell/src/Commands.vala" - return edit_multiple_comments_command_construct (TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, media_sources, new_comment); -#line 7669 "Commands.c" -} - - -static void -edit_multiple_comments_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base, - GeeCollection* sources) -{ - EditMultipleCommentsCommand * self; -#line 641 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommand); -#line 641 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 7682 "Commands.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 642 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 642 "/home/jens/Source/shotwell/src/Commands.vala" - _source_it = _tmp0_; -#line 642 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 7692 "Commands.c" - GeeIterator* _tmp1_; - DataSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataSource* _tmp4_; - const gchar* _tmp5_; -#line 642 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _source_it; -#line 642 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 642 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 7705 "Commands.c" - } -#line 642 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _source_it; -#line 642 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 642 "/home/jens/Source/shotwell/src/Commands.vala" - source = (DataSource*) _tmp3_; -#line 643 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = source; -#line 643 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = self->new_comment; -#line 643 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource), _tmp5_); -#line 642 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 7721 "Commands.c" - } -#line 642 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_it); -#line 7725 "Commands.c" - } -} - - -static void -edit_multiple_comments_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base, - GeeCollection* sources) -{ - EditMultipleCommentsCommand * self; -#line 646 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommand); -#line 646 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 7739 "Commands.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 647 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 647 "/home/jens/Source/shotwell/src/Commands.vala" - _source_it = _tmp0_; -#line 647 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 7749 "Commands.c" - GeeIterator* _tmp1_; - DataSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataSource* _tmp4_; - GeeHashMap* _tmp5_; - DataSource* _tmp6_; - gpointer _tmp7_; - gchar* _tmp8_; -#line 647 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _source_it; -#line 647 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 647 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 7765 "Commands.c" - } -#line 647 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _source_it; -#line 647 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 647 "/home/jens/Source/shotwell/src/Commands.vala" - source = (DataSource*) _tmp3_; -#line 648 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = source; -#line 648 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = self->old_comments; -#line 648 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = source; -#line 648 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 648 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = (gchar*) _tmp7_; -#line 648 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource), _tmp8_); -#line 648 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp8_); -#line 647 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 7789 "Commands.c" - } -#line 647 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_it); -#line 7793 "Commands.c" - } -} - - -static void -edit_multiple_comments_command_class_init (EditMultipleCommentsCommandClass * klass) -{ -#line 629 "/home/jens/Source/shotwell/src/Commands.vala" - edit_multiple_comments_command_parent_class = g_type_class_peek_parent (klass); -#line 629 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceAtOnceCommandClass *) klass)->execute_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) edit_multiple_comments_command_real_execute_on_all; -#line 629 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceAtOnceCommandClass *) klass)->undo_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) edit_multiple_comments_command_real_undo_on_all; -#line 629 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = edit_multiple_comments_command_finalize; -#line 7809 "Commands.c" -} - - -static void -edit_multiple_comments_command_instance_init (EditMultipleCommentsCommand * self) -{ - GeeHashMap* _tmp0_; -#line 631 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_hash_map_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 631 "/home/jens/Source/shotwell/src/Commands.vala" - self->old_comments = _tmp0_; -#line 7821 "Commands.c" -} - - -static void -edit_multiple_comments_command_finalize (GObject * obj) -{ - EditMultipleCommentsCommand * self; -#line 629 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommand); -#line 630 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->new_comment); -#line 631 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->old_comments); -#line 629 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (edit_multiple_comments_command_parent_class)->finalize (obj); -#line 7837 "Commands.c" -} - - -GType -edit_multiple_comments_command_get_type (void) -{ - static volatile gsize edit_multiple_comments_command_type_id__volatile = 0; - if (g_once_init_enter (&edit_multiple_comments_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditMultipleCommentsCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_multiple_comments_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditMultipleCommentsCommand), 0, (GInstanceInitFunc) edit_multiple_comments_command_instance_init, NULL }; - GType edit_multiple_comments_command_type_id; - edit_multiple_comments_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, "EditMultipleCommentsCommand", &g_define_type_info, 0); - g_once_init_leave (&edit_multiple_comments_command_type_id__volatile, edit_multiple_comments_command_type_id); - } - return edit_multiple_comments_command_type_id__volatile; -} - - -RenameEventCommand* -rename_event_command_construct (GType object_type, - Event* event, - const gchar* new_name) -{ - RenameEventCommand * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 656 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_EVENT (event), NULL); -#line 656 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (new_name != NULL, NULL); -#line 657 "/home/jens/Source/shotwell/src/Commands.vala" - self = (RenameEventCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_PROXYABLE, Proxyable), RESOURCES_RENAME_EVENT_LABEL, ""); -#line 659 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = g_strdup (new_name); -#line 659 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->new_name); -#line 659 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->new_name = _tmp0_; -#line 660 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = event_get_raw_name (event); -#line 660 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->old_name); -#line 660 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->old_name = _tmp1_; -#line 656 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 7883 "Commands.c" -} - - -RenameEventCommand* -rename_event_command_new (Event* event, - const gchar* new_name) -{ -#line 656 "/home/jens/Source/shotwell/src/Commands.vala" - return rename_event_command_construct (TYPE_RENAME_EVENT_COMMAND, event, new_name); -#line 7893 "Commands.c" -} - - -static void -rename_event_command_real_execute_on_source (SimpleProxyableCommand* base, - DataSource* source) -{ - RenameEventCommand * self; - const gchar* _tmp0_; -#line 663 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_EVENT_COMMAND, RenameEventCommand); -#line 663 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 664 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->new_name; -#line 664 "/home/jens/Source/shotwell/src/Commands.vala" - event_rename (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT, Event), _tmp0_); -#line 7911 "Commands.c" -} - - -static void -rename_event_command_real_undo_on_source (SimpleProxyableCommand* base, - DataSource* source) -{ - RenameEventCommand * self; - const gchar* _tmp0_; -#line 667 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_EVENT_COMMAND, RenameEventCommand); -#line 667 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 668 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->old_name; -#line 668 "/home/jens/Source/shotwell/src/Commands.vala" - event_rename (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT, Event), _tmp0_); -#line 7929 "Commands.c" -} - - -static void -rename_event_command_class_init (RenameEventCommandClass * klass) -{ -#line 652 "/home/jens/Source/shotwell/src/Commands.vala" - rename_event_command_parent_class = g_type_class_peek_parent (klass); -#line 652 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (RenameEventCommandPrivate)); -#line 652 "/home/jens/Source/shotwell/src/Commands.vala" - ((SimpleProxyableCommandClass *) klass)->execute_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) rename_event_command_real_execute_on_source; -#line 652 "/home/jens/Source/shotwell/src/Commands.vala" - ((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) rename_event_command_real_undo_on_source; -#line 652 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = rename_event_command_finalize; -#line 7946 "Commands.c" -} - - -static void -rename_event_command_instance_init (RenameEventCommand * self) -{ -#line 652 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = RENAME_EVENT_COMMAND_GET_PRIVATE (self); -#line 7955 "Commands.c" -} - - -static void -rename_event_command_finalize (GObject * obj) -{ - RenameEventCommand * self; -#line 652 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RENAME_EVENT_COMMAND, RenameEventCommand); -#line 653 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->new_name); -#line 654 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->old_name); -#line 652 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (rename_event_command_parent_class)->finalize (obj); -#line 7971 "Commands.c" -} - - -GType -rename_event_command_get_type (void) -{ - static volatile gsize rename_event_command_type_id__volatile = 0; - if (g_once_init_enter (&rename_event_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (RenameEventCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rename_event_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RenameEventCommand), 0, (GInstanceInitFunc) rename_event_command_instance_init, NULL }; - GType rename_event_command_type_id; - rename_event_command_type_id = g_type_register_static (TYPE_SIMPLE_PROXYABLE_COMMAND, "RenameEventCommand", &g_define_type_info, 0); - g_once_init_leave (&rename_event_command_type_id__volatile, rename_event_command_type_id); - } - return rename_event_command_type_id__volatile; -} - - -EditEventCommentCommand* -edit_event_comment_command_construct (GType object_type, - Event* event, - const gchar* new_comment) -{ - EditEventCommentCommand * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 676 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_EVENT (event), NULL); -#line 676 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (new_comment != NULL, NULL); -#line 677 "/home/jens/Source/shotwell/src/Commands.vala" - self = (EditEventCommentCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_PROXYABLE, Proxyable), RESOURCES_EDIT_COMMENT_LABEL, ""); -#line 679 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = g_strdup (new_comment); -#line 679 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->new_comment); -#line 679 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->new_comment = _tmp0_; -#line 680 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_EVENT_SOURCE, EventSource)); -#line 680 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->old_comment); -#line 680 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->old_comment = _tmp1_; -#line 676 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 8017 "Commands.c" -} - - -EditEventCommentCommand* -edit_event_comment_command_new (Event* event, - const gchar* new_comment) -{ -#line 676 "/home/jens/Source/shotwell/src/Commands.vala" - return edit_event_comment_command_construct (TYPE_EDIT_EVENT_COMMENT_COMMAND, event, new_comment); -#line 8027 "Commands.c" -} - - -static void -edit_event_comment_command_real_execute_on_source (SimpleProxyableCommand* base, - DataSource* source) -{ - EditEventCommentCommand * self; - const gchar* _tmp0_; -#line 683 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommand); -#line 683 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 684 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->new_comment; -#line 684 "/home/jens/Source/shotwell/src/Commands.vala" - event_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT, Event), TYPE_EVENT_SOURCE, EventSource), _tmp0_); -#line 8045 "Commands.c" -} - - -static void -edit_event_comment_command_real_undo_on_source (SimpleProxyableCommand* base, - DataSource* source) -{ - EditEventCommentCommand * self; - const gchar* _tmp0_; -#line 687 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommand); -#line 687 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 688 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->old_comment; -#line 688 "/home/jens/Source/shotwell/src/Commands.vala" - event_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT, Event), TYPE_EVENT_SOURCE, EventSource), _tmp0_); -#line 8063 "Commands.c" -} - - -static void -edit_event_comment_command_class_init (EditEventCommentCommandClass * klass) -{ -#line 672 "/home/jens/Source/shotwell/src/Commands.vala" - edit_event_comment_command_parent_class = g_type_class_peek_parent (klass); -#line 672 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (EditEventCommentCommandPrivate)); -#line 672 "/home/jens/Source/shotwell/src/Commands.vala" - ((SimpleProxyableCommandClass *) klass)->execute_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) edit_event_comment_command_real_execute_on_source; -#line 672 "/home/jens/Source/shotwell/src/Commands.vala" - ((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) edit_event_comment_command_real_undo_on_source; -#line 672 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = edit_event_comment_command_finalize; -#line 8080 "Commands.c" -} - - -static void -edit_event_comment_command_instance_init (EditEventCommentCommand * self) -{ -#line 672 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = EDIT_EVENT_COMMENT_COMMAND_GET_PRIVATE (self); -#line 8089 "Commands.c" -} - - -static void -edit_event_comment_command_finalize (GObject * obj) -{ - EditEventCommentCommand * self; -#line 672 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommand); -#line 673 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->new_comment); -#line 674 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->old_comment); -#line 672 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (edit_event_comment_command_parent_class)->finalize (obj); -#line 8105 "Commands.c" -} - - -GType -edit_event_comment_command_get_type (void) -{ - static volatile gsize edit_event_comment_command_type_id__volatile = 0; - if (g_once_init_enter (&edit_event_comment_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditEventCommentCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_event_comment_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditEventCommentCommand), 0, (GInstanceInitFunc) edit_event_comment_command_instance_init, NULL }; - GType edit_event_comment_command_type_id; - edit_event_comment_command_type_id = g_type_register_static (TYPE_SIMPLE_PROXYABLE_COMMAND, "EditEventCommentCommand", &g_define_type_info, 0); - g_once_init_leave (&edit_event_comment_command_type_id__volatile, edit_event_comment_command_type_id); - } - return edit_event_comment_command_type_id__volatile; -} - - -SetKeyPhotoCommand* -set_key_photo_command_construct (GType object_type, - Event* event, - MediaSource* new_primary_source) -{ - SetKeyPhotoCommand * self = NULL; - MediaSource* _tmp0_; - MediaSource* _tmp1_; -#line 696 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_EVENT (event), NULL); -#line 696 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (new_primary_source), NULL); -#line 697 "/home/jens/Source/shotwell/src/Commands.vala" - self = (SetKeyPhotoCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_DATA_SOURCE, DataSource), RESOURCES_MAKE_KEY_PHOTO_LABEL, ""); -#line 699 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (new_primary_source); -#line 699 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->new_primary_source); -#line 699 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->new_primary_source = _tmp0_; -#line 700 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = event_get_primary_source (event); -#line 700 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->old_primary_source); -#line 700 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->old_primary_source = _tmp1_; -#line 696 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 8151 "Commands.c" -} - - -SetKeyPhotoCommand* -set_key_photo_command_new (Event* event, - MediaSource* new_primary_source) -{ -#line 696 "/home/jens/Source/shotwell/src/Commands.vala" - return set_key_photo_command_construct (TYPE_SET_KEY_PHOTO_COMMAND, event, new_primary_source); -#line 8161 "Commands.c" -} - - -static void -set_key_photo_command_real_execute (Command* base) -{ - SetKeyPhotoCommand * self; - DataSource* _tmp0_; - MediaSource* _tmp1_; -#line 703 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_KEY_PHOTO_COMMAND, SetKeyPhotoCommand); -#line 704 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 704 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->new_primary_source; -#line 704 "/home/jens/Source/shotwell/src/Commands.vala" - event_set_primary_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EVENT, Event), _tmp1_); -#line 8179 "Commands.c" -} - - -static void -set_key_photo_command_real_undo (Command* base) -{ - SetKeyPhotoCommand * self; - DataSource* _tmp0_; - MediaSource* _tmp1_; -#line 707 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_KEY_PHOTO_COMMAND, SetKeyPhotoCommand); -#line 708 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 708 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->old_primary_source; -#line 708 "/home/jens/Source/shotwell/src/Commands.vala" - event_set_primary_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EVENT, Event), _tmp1_); -#line 8197 "Commands.c" -} - - -static void -set_key_photo_command_class_init (SetKeyPhotoCommandClass * klass) -{ -#line 692 "/home/jens/Source/shotwell/src/Commands.vala" - set_key_photo_command_parent_class = g_type_class_peek_parent (klass); -#line 692 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (SetKeyPhotoCommandPrivate)); -#line 692 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) set_key_photo_command_real_execute; -#line 692 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) set_key_photo_command_real_undo; -#line 692 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = set_key_photo_command_finalize; -#line 8214 "Commands.c" -} - - -static void -set_key_photo_command_instance_init (SetKeyPhotoCommand * self) -{ -#line 692 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = SET_KEY_PHOTO_COMMAND_GET_PRIVATE (self); -#line 8223 "Commands.c" -} - - -static void -set_key_photo_command_finalize (GObject * obj) -{ - SetKeyPhotoCommand * self; -#line 692 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SET_KEY_PHOTO_COMMAND, SetKeyPhotoCommand); -#line 693 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->new_primary_source); -#line 694 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->old_primary_source); -#line 692 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (set_key_photo_command_parent_class)->finalize (obj); -#line 8239 "Commands.c" -} - - -GType -set_key_photo_command_get_type (void) -{ - static volatile gsize set_key_photo_command_type_id__volatile = 0; - if (g_once_init_enter (&set_key_photo_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SetKeyPhotoCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_key_photo_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetKeyPhotoCommand), 0, (GInstanceInitFunc) set_key_photo_command_instance_init, NULL }; - GType set_key_photo_command_type_id; - set_key_photo_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "SetKeyPhotoCommand", &g_define_type_info, 0); - g_once_init_leave (&set_key_photo_command_type_id__volatile, set_key_photo_command_type_id); - } - return set_key_photo_command_type_id__volatile; -} - - -RevertSingleCommand* -revert_single_command_construct (GType object_type, - Photo* photo) -{ - RevertSingleCommand * self = NULL; -#line 713 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 714 "/home/jens/Source/shotwell/src/Commands.vala" - self = (RevertSingleCommand*) generic_photo_transformation_command_construct (object_type, photo, RESOURCES_REVERT_LABEL, ""); -#line 713 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 8268 "Commands.c" -} - - -RevertSingleCommand* -revert_single_command_new (Photo* photo) -{ -#line 713 "/home/jens/Source/shotwell/src/Commands.vala" - return revert_single_command_construct (TYPE_REVERT_SINGLE_COMMAND, photo); -#line 8277 "Commands.c" -} - - -static void -revert_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, - Photo* photo) -{ - RevertSingleCommand * self; -#line 717 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommand); -#line 717 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 718 "/home/jens/Source/shotwell/src/Commands.vala" - photo_remove_all_transformations (photo); -#line 8292 "Commands.c" -} - - -static gboolean -revert_single_command_real_compress (Command* base, - Command* command) -{ - RevertSingleCommand * self; - gboolean result = FALSE; - RevertSingleCommand* revert_single_command = NULL; - RevertSingleCommand* _tmp0_; - RevertSingleCommand* _tmp1_; - RevertSingleCommand* _tmp2_; - DataSource* _tmp3_; - DataSource* _tmp4_; -#line 721 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommand); -#line 721 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_COMMAND (command), FALSE); -#line 722 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (command, TYPE_REVERT_SINGLE_COMMAND) ? ((RevertSingleCommand*) command) : NULL); -#line 722 "/home/jens/Source/shotwell/src/Commands.vala" - revert_single_command = _tmp0_; -#line 723 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = revert_single_command; -#line 723 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp1_ == NULL) { -#line 724 "/home/jens/Source/shotwell/src/Commands.vala" - result = FALSE; -#line 724 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (revert_single_command); -#line 724 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 8326 "Commands.c" - } -#line 726 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = revert_single_command; -#line 726 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 726 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 726 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp3_ != _tmp4_) { -#line 727 "/home/jens/Source/shotwell/src/Commands.vala" - result = FALSE; -#line 727 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (revert_single_command); -#line 727 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 8342 "Commands.c" - } -#line 731 "/home/jens/Source/shotwell/src/Commands.vala" - result = TRUE; -#line 731 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (revert_single_command); -#line 731 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 8350 "Commands.c" -} - - -static void -revert_single_command_class_init (RevertSingleCommandClass * klass) -{ -#line 712 "/home/jens/Source/shotwell/src/Commands.vala" - revert_single_command_parent_class = g_type_class_peek_parent (klass); -#line 712 "/home/jens/Source/shotwell/src/Commands.vala" - ((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) revert_single_command_real_execute_on_photo; -#line 712 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->compress = (gboolean (*) (Command *, Command*)) revert_single_command_real_compress; -#line 8363 "Commands.c" -} - - -static void -revert_single_command_instance_init (RevertSingleCommand * self) -{ -} - - -GType -revert_single_command_get_type (void) -{ - static volatile gsize revert_single_command_type_id__volatile = 0; - if (g_once_init_enter (&revert_single_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (RevertSingleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) revert_single_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RevertSingleCommand), 0, (GInstanceInitFunc) revert_single_command_instance_init, NULL }; - GType revert_single_command_type_id; - revert_single_command_type_id = g_type_register_static (TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, "RevertSingleCommand", &g_define_type_info, 0); - g_once_init_leave (&revert_single_command_type_id__volatile, revert_single_command_type_id); - } - return revert_single_command_type_id__volatile; -} - - -RevertMultipleCommand* -revert_multiple_command_construct (GType object_type, - GeeIterable* iter) -{ - RevertMultipleCommand * self = NULL; -#line 736 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL); -#line 737 "/home/jens/Source/shotwell/src/Commands.vala" - self = (RevertMultipleCommand*) multiple_photo_transformation_command_construct (object_type, iter, _ ("Reverting"), _ ("Undoing Revert"), RESOURCES_REVERT_LABEL, ""); -#line 736 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 8398 "Commands.c" -} - - -RevertMultipleCommand* -revert_multiple_command_new (GeeIterable* iter) -{ -#line 736 "/home/jens/Source/shotwell/src/Commands.vala" - return revert_multiple_command_construct (TYPE_REVERT_MULTIPLE_COMMAND, iter); -#line 8407 "Commands.c" -} - - -static void -revert_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source) -{ - RevertMultipleCommand * self; -#line 741 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_REVERT_MULTIPLE_COMMAND, RevertMultipleCommand); -#line 741 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 742 "/home/jens/Source/shotwell/src/Commands.vala" - photo_remove_all_transformations (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo)); -#line 8422 "Commands.c" -} - - -static void -revert_multiple_command_class_init (RevertMultipleCommandClass * klass) -{ -#line 735 "/home/jens/Source/shotwell/src/Commands.vala" - revert_multiple_command_parent_class = g_type_class_peek_parent (klass); -#line 735 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) revert_multiple_command_real_execute_on_source; -#line 8433 "Commands.c" -} - - -static void -revert_multiple_command_instance_init (RevertMultipleCommand * self) -{ -} - - -GType -revert_multiple_command_get_type (void) -{ - static volatile gsize revert_multiple_command_type_id__volatile = 0; - if (g_once_init_enter (&revert_multiple_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (RevertMultipleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) revert_multiple_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RevertMultipleCommand), 0, (GInstanceInitFunc) revert_multiple_command_instance_init, NULL }; - GType revert_multiple_command_type_id; - revert_multiple_command_type_id = g_type_register_static (TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, "RevertMultipleCommand", &g_define_type_info, 0); - g_once_init_leave (&revert_multiple_command_type_id__volatile, revert_multiple_command_type_id); - } - return revert_multiple_command_type_id__volatile; -} - - -EnhanceSingleCommand* -enhance_single_command_construct (GType object_type, - Photo* photo) -{ - EnhanceSingleCommand * self = NULL; -#line 747 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 748 "/home/jens/Source/shotwell/src/Commands.vala" - self = (EnhanceSingleCommand*) generic_photo_transformation_command_construct (object_type, photo, RESOURCES_ENHANCE_LABEL, RESOURCES_ENHANCE_TOOLTIP); -#line 747 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 8468 "Commands.c" -} - - -EnhanceSingleCommand* -enhance_single_command_new (Photo* photo) -{ -#line 747 "/home/jens/Source/shotwell/src/Commands.vala" - return enhance_single_command_construct (TYPE_ENHANCE_SINGLE_COMMAND, photo); -#line 8477 "Commands.c" -} - - -static void -enhance_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, - Photo* photo) -{ - EnhanceSingleCommand * self; - AppWindow* _tmp0_; - AppWindow* _tmp1_; - AppWindow* _tmp2_; - AppWindow* _tmp3_; -#line 751 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommand); -#line 751 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 752 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = app_window_get_instance (); -#line 752 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 752 "/home/jens/Source/shotwell/src/Commands.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow)); -#line 752 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp1_); -#line 757 "/home/jens/Source/shotwell/src/Commands.vala" - photo_enhance (photo); -#line 763 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = app_window_get_instance (); -#line 763 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 763 "/home/jens/Source/shotwell/src/Commands.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PAGE_WINDOW, PageWindow)); -#line 763 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp3_); -#line 8512 "Commands.c" -} - - -static gboolean -enhance_single_command_real_compress (Command* base, - Command* command) -{ - EnhanceSingleCommand * self; - gboolean result = FALSE; - EnhanceSingleCommand* enhance_single_command = NULL; - EnhanceSingleCommand* _tmp0_; - EnhanceSingleCommand* _tmp1_; - EnhanceSingleCommand* _tmp2_; - DataSource* _tmp3_; - DataSource* _tmp4_; -#line 766 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommand); -#line 766 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_COMMAND (command), FALSE); -#line 767 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (command, TYPE_ENHANCE_SINGLE_COMMAND) ? ((EnhanceSingleCommand*) command) : NULL); -#line 767 "/home/jens/Source/shotwell/src/Commands.vala" - enhance_single_command = _tmp0_; -#line 768 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = enhance_single_command; -#line 768 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp1_ == NULL) { -#line 769 "/home/jens/Source/shotwell/src/Commands.vala" - result = FALSE; -#line 769 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (enhance_single_command); -#line 769 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 8546 "Commands.c" - } -#line 771 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = enhance_single_command; -#line 771 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 771 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 771 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp3_ != _tmp4_) { -#line 772 "/home/jens/Source/shotwell/src/Commands.vala" - result = FALSE; -#line 772 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (enhance_single_command); -#line 772 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 8562 "Commands.c" - } -#line 775 "/home/jens/Source/shotwell/src/Commands.vala" - result = TRUE; -#line 775 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (enhance_single_command); -#line 775 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 8570 "Commands.c" -} - - -static void -enhance_single_command_class_init (EnhanceSingleCommandClass * klass) -{ -#line 746 "/home/jens/Source/shotwell/src/Commands.vala" - enhance_single_command_parent_class = g_type_class_peek_parent (klass); -#line 746 "/home/jens/Source/shotwell/src/Commands.vala" - ((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) enhance_single_command_real_execute_on_photo; -#line 746 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->compress = (gboolean (*) (Command *, Command*)) enhance_single_command_real_compress; -#line 8583 "Commands.c" -} - - -static void -enhance_single_command_instance_init (EnhanceSingleCommand * self) -{ -} - - -GType -enhance_single_command_get_type (void) -{ - static volatile gsize enhance_single_command_type_id__volatile = 0; - if (g_once_init_enter (&enhance_single_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EnhanceSingleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) enhance_single_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EnhanceSingleCommand), 0, (GInstanceInitFunc) enhance_single_command_instance_init, NULL }; - GType enhance_single_command_type_id; - enhance_single_command_type_id = g_type_register_static (TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, "EnhanceSingleCommand", &g_define_type_info, 0); - g_once_init_leave (&enhance_single_command_type_id__volatile, enhance_single_command_type_id); - } - return enhance_single_command_type_id__volatile; -} - - -EnhanceMultipleCommand* -enhance_multiple_command_construct (GType object_type, - GeeIterable* iter) -{ - EnhanceMultipleCommand * self = NULL; -#line 780 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL); -#line 781 "/home/jens/Source/shotwell/src/Commands.vala" - self = (EnhanceMultipleCommand*) multiple_photo_transformation_command_construct (object_type, iter, _ ("Enhancing"), _ ("Undoing Enhance"), RESOURCES_ENHANCE_LABEL, RESOURCES_ENHANCE_TOOLTIP); -#line 780 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 8618 "Commands.c" -} - - -EnhanceMultipleCommand* -enhance_multiple_command_new (GeeIterable* iter) -{ -#line 780 "/home/jens/Source/shotwell/src/Commands.vala" - return enhance_multiple_command_construct (TYPE_ENHANCE_MULTIPLE_COMMAND, iter); -#line 8627 "Commands.c" -} - - -static void -enhance_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source) -{ - EnhanceMultipleCommand * self; -#line 785 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ENHANCE_MULTIPLE_COMMAND, EnhanceMultipleCommand); -#line 785 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 786 "/home/jens/Source/shotwell/src/Commands.vala" - photo_enhance (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo)); -#line 8642 "Commands.c" -} - - -static void -enhance_multiple_command_class_init (EnhanceMultipleCommandClass * klass) -{ -#line 779 "/home/jens/Source/shotwell/src/Commands.vala" - enhance_multiple_command_parent_class = g_type_class_peek_parent (klass); -#line 779 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) enhance_multiple_command_real_execute_on_source; -#line 8653 "Commands.c" -} - - -static void -enhance_multiple_command_instance_init (EnhanceMultipleCommand * self) -{ -} - - -GType -enhance_multiple_command_get_type (void) -{ - static volatile gsize enhance_multiple_command_type_id__volatile = 0; - if (g_once_init_enter (&enhance_multiple_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EnhanceMultipleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) enhance_multiple_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EnhanceMultipleCommand), 0, (GInstanceInitFunc) enhance_multiple_command_instance_init, NULL }; - GType enhance_multiple_command_type_id; - enhance_multiple_command_type_id = g_type_register_static (TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, "EnhanceMultipleCommand", &g_define_type_info, 0); - g_once_init_leave (&enhance_multiple_command_type_id__volatile, enhance_multiple_command_type_id); - } - return enhance_multiple_command_type_id__volatile; -} - - -StraightenCommand* -straighten_command_construct (GType object_type, - Photo* photo, - gdouble theta, - Box* crop, - const gchar* name, - const gchar* explanation) -{ - StraightenCommand * self = NULL; - Box _tmp0_; -#line 794 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 794 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (crop != NULL, NULL); -#line 794 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 794 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 795 "/home/jens/Source/shotwell/src/Commands.vala" - self = (StraightenCommand*) generic_photo_transformation_command_construct (object_type, photo, name, explanation); -#line 797 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->theta = theta; -#line 798 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = *crop; -#line 798 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->crop = _tmp0_; -#line 794 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 8705 "Commands.c" -} - - -StraightenCommand* -straighten_command_new (Photo* photo, - gdouble theta, - Box* crop, - const gchar* name, - const gchar* explanation) -{ -#line 794 "/home/jens/Source/shotwell/src/Commands.vala" - return straighten_command_construct (TYPE_STRAIGHTEN_COMMAND, photo, theta, crop, name, explanation); -#line 8718 "Commands.c" -} - - -static void -straighten_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, - Photo* photo) -{ - StraightenCommand * self; - DataCollection* collection = NULL; - DataCollection* _tmp0_; - DataCollection* _tmp1_; - gdouble _tmp3_; - Box _tmp4_; - DataCollection* _tmp5_; -#line 801 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_STRAIGHTEN_COMMAND, StraightenCommand); -#line 801 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 803 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_OBJECT, DataObject)); -#line 803 "/home/jens/Source/shotwell/src/Commands.vala" - collection = _tmp0_; -#line 804 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = collection; -#line 804 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp1_ != NULL) { -#line 8745 "Commands.c" - DataCollection* _tmp2_; -#line 805 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = collection; -#line 805 "/home/jens/Source/shotwell/src/Commands.vala" - data_collection_freeze_notifications (_tmp2_); -#line 8751 "Commands.c" - } -#line 807 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = self->priv->theta; -#line 807 "/home/jens/Source/shotwell/src/Commands.vala" - photo_set_straighten (photo, _tmp3_); -#line 808 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->crop; -#line 808 "/home/jens/Source/shotwell/src/Commands.vala" - photo_set_crop (photo, &_tmp4_); -#line 810 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = collection; -#line 810 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp5_ != NULL) { -#line 8765 "Commands.c" - DataCollection* _tmp6_; -#line 811 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = collection; -#line 811 "/home/jens/Source/shotwell/src/Commands.vala" - data_collection_thaw_notifications (_tmp6_); -#line 8771 "Commands.c" - } -#line 801 "/home/jens/Source/shotwell/src/Commands.vala" - _data_collection_unref0 (collection); -#line 8775 "Commands.c" -} - - -static void -straighten_command_class_init (StraightenCommandClass * klass) -{ -#line 790 "/home/jens/Source/shotwell/src/Commands.vala" - straighten_command_parent_class = g_type_class_peek_parent (klass); -#line 790 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (StraightenCommandPrivate)); -#line 790 "/home/jens/Source/shotwell/src/Commands.vala" - ((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) straighten_command_real_execute_on_photo; -#line 790 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = straighten_command_finalize; -#line 8790 "Commands.c" -} - - -static void -straighten_command_instance_init (StraightenCommand * self) -{ -#line 790 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = STRAIGHTEN_COMMAND_GET_PRIVATE (self); -#line 8799 "Commands.c" -} - - -static void -straighten_command_finalize (GObject * obj) -{ - StraightenCommand * self; -#line 790 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_STRAIGHTEN_COMMAND, StraightenCommand); -#line 790 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (straighten_command_parent_class)->finalize (obj); -#line 8811 "Commands.c" -} - - -GType -straighten_command_get_type (void) -{ - static volatile gsize straighten_command_type_id__volatile = 0; - if (g_once_init_enter (&straighten_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (StraightenCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) straighten_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (StraightenCommand), 0, (GInstanceInitFunc) straighten_command_instance_init, NULL }; - GType straighten_command_type_id; - straighten_command_type_id = g_type_register_static (TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, "StraightenCommand", &g_define_type_info, 0); - g_once_init_leave (&straighten_command_type_id__volatile, straighten_command_type_id); - } - return straighten_command_type_id__volatile; -} - - -CropCommand* -crop_command_construct (GType object_type, - Photo* photo, - Box* crop, - const gchar* name, - const gchar* explanation) -{ - CropCommand * self = NULL; - Box _tmp0_; -#line 818 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 818 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (crop != NULL, NULL); -#line 818 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 818 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 819 "/home/jens/Source/shotwell/src/Commands.vala" - self = (CropCommand*) generic_photo_transformation_command_construct (object_type, photo, name, explanation); -#line 821 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = *crop; -#line 821 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->crop = _tmp0_; -#line 818 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 8854 "Commands.c" -} - - -CropCommand* -crop_command_new (Photo* photo, - Box* crop, - const gchar* name, - const gchar* explanation) -{ -#line 818 "/home/jens/Source/shotwell/src/Commands.vala" - return crop_command_construct (TYPE_CROP_COMMAND, photo, crop, name, explanation); -#line 8866 "Commands.c" -} - - -static void -crop_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, - Photo* photo) -{ - CropCommand * self; - Box _tmp0_; -#line 824 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CROP_COMMAND, CropCommand); -#line 824 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 825 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->crop; -#line 825 "/home/jens/Source/shotwell/src/Commands.vala" - photo_set_crop (photo, &_tmp0_); -#line 8884 "Commands.c" -} - - -static void -crop_command_class_init (CropCommandClass * klass) -{ -#line 815 "/home/jens/Source/shotwell/src/Commands.vala" - crop_command_parent_class = g_type_class_peek_parent (klass); -#line 815 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (CropCommandPrivate)); -#line 815 "/home/jens/Source/shotwell/src/Commands.vala" - ((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) crop_command_real_execute_on_photo; -#line 815 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = crop_command_finalize; -#line 8899 "Commands.c" -} - - -static void -crop_command_instance_init (CropCommand * self) -{ -#line 815 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = CROP_COMMAND_GET_PRIVATE (self); -#line 8908 "Commands.c" -} - - -static void -crop_command_finalize (GObject * obj) -{ - CropCommand * self; -#line 815 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CROP_COMMAND, CropCommand); -#line 815 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (crop_command_parent_class)->finalize (obj); -#line 8920 "Commands.c" -} - - -GType -crop_command_get_type (void) -{ - static volatile gsize crop_command_type_id__volatile = 0; - if (g_once_init_enter (&crop_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CropCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) crop_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CropCommand), 0, (GInstanceInitFunc) crop_command_instance_init, NULL }; - GType crop_command_type_id; - crop_command_type_id = g_type_register_static (TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, "CropCommand", &g_define_type_info, 0); - g_once_init_leave (&crop_command_type_id__volatile, crop_command_type_id); - } - return crop_command_type_id__volatile; -} - - -static gpointer -_pixel_transformation_bundle_ref0 (gpointer self) -{ -#line 836 "/home/jens/Source/shotwell/src/Commands.vala" - return self ? pixel_transformation_bundle_ref (self) : NULL; -#line 8943 "Commands.c" -} - - -AdjustColorsSingleCommand* -adjust_colors_single_command_construct (GType object_type, - Photo* photo, - PixelTransformationBundle* transformations, - const gchar* name, - const gchar* explanation) -{ - AdjustColorsSingleCommand * self = NULL; - PixelTransformationBundle* _tmp0_; -#line 832 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 832 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_PIXEL_TRANSFORMATION_BUNDLE (transformations), NULL); -#line 832 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 832 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 834 "/home/jens/Source/shotwell/src/Commands.vala" - self = (AdjustColorsSingleCommand*) generic_photo_transformation_command_construct (object_type, photo, name, explanation); -#line 836 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _pixel_transformation_bundle_ref0 (transformations); -#line 836 "/home/jens/Source/shotwell/src/Commands.vala" - _pixel_transformation_bundle_unref0 (self->priv->transformations); -#line 836 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->transformations = _tmp0_; -#line 832 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 8974 "Commands.c" -} - - -AdjustColorsSingleCommand* -adjust_colors_single_command_new (Photo* photo, - PixelTransformationBundle* transformations, - const gchar* name, - const gchar* explanation) -{ -#line 832 "/home/jens/Source/shotwell/src/Commands.vala" - return adjust_colors_single_command_construct (TYPE_ADJUST_COLORS_SINGLE_COMMAND, photo, transformations, name, explanation); -#line 8986 "Commands.c" -} - - -static void -adjust_colors_single_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, - Photo* photo) -{ - AdjustColorsSingleCommand * self; - AppWindow* _tmp0_; - AppWindow* _tmp1_; - PixelTransformationBundle* _tmp2_; - AppWindow* _tmp3_; - AppWindow* _tmp4_; -#line 839 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommand); -#line 839 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 840 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = app_window_get_instance (); -#line 840 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 840 "/home/jens/Source/shotwell/src/Commands.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow)); -#line 840 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp1_); -#line 842 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->transformations; -#line 842 "/home/jens/Source/shotwell/src/Commands.vala" - photo_set_color_adjustments (photo, _tmp2_); -#line 844 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = app_window_get_instance (); -#line 844 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _tmp3_; -#line 844 "/home/jens/Source/shotwell/src/Commands.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PAGE_WINDOW, PageWindow)); -#line 844 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp4_); -#line 9024 "Commands.c" -} - - -static gboolean -adjust_colors_single_command_real_can_compress (GenericPhotoTransformationCommand* base, - Command* command) -{ - AdjustColorsSingleCommand * self; - gboolean result = FALSE; -#line 847 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommand); -#line 847 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_COMMAND (command), FALSE); -#line 848 "/home/jens/Source/shotwell/src/Commands.vala" - result = G_TYPE_CHECK_INSTANCE_TYPE (command, TYPE_ADJUST_COLORS_SINGLE_COMMAND); -#line 848 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 9042 "Commands.c" -} - - -static void -adjust_colors_single_command_class_init (AdjustColorsSingleCommandClass * klass) -{ -#line 829 "/home/jens/Source/shotwell/src/Commands.vala" - adjust_colors_single_command_parent_class = g_type_class_peek_parent (klass); -#line 829 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (AdjustColorsSingleCommandPrivate)); -#line 829 "/home/jens/Source/shotwell/src/Commands.vala" - ((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) adjust_colors_single_command_real_execute_on_photo; -#line 829 "/home/jens/Source/shotwell/src/Commands.vala" - ((GenericPhotoTransformationCommandClass *) klass)->can_compress = (gboolean (*) (GenericPhotoTransformationCommand *, Command*)) adjust_colors_single_command_real_can_compress; -#line 829 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = adjust_colors_single_command_finalize; -#line 9059 "Commands.c" -} - - -static void -adjust_colors_single_command_instance_init (AdjustColorsSingleCommand * self) -{ -#line 829 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = ADJUST_COLORS_SINGLE_COMMAND_GET_PRIVATE (self); -#line 9068 "Commands.c" -} - - -static void -adjust_colors_single_command_finalize (GObject * obj) -{ - AdjustColorsSingleCommand * self; -#line 829 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommand); -#line 830 "/home/jens/Source/shotwell/src/Commands.vala" - _pixel_transformation_bundle_unref0 (self->priv->transformations); -#line 829 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (adjust_colors_single_command_parent_class)->finalize (obj); -#line 9082 "Commands.c" -} - - -GType -adjust_colors_single_command_get_type (void) -{ - static volatile gsize adjust_colors_single_command_type_id__volatile = 0; - if (g_once_init_enter (&adjust_colors_single_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (AdjustColorsSingleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) adjust_colors_single_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AdjustColorsSingleCommand), 0, (GInstanceInitFunc) adjust_colors_single_command_instance_init, NULL }; - GType adjust_colors_single_command_type_id; - adjust_colors_single_command_type_id = g_type_register_static (TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, "AdjustColorsSingleCommand", &g_define_type_info, 0); - g_once_init_leave (&adjust_colors_single_command_type_id__volatile, adjust_colors_single_command_type_id); - } - return adjust_colors_single_command_type_id__volatile; -} - - -AdjustColorsMultipleCommand* -adjust_colors_multiple_command_construct (GType object_type, - GeeIterable* iter, - PixelTransformationBundle* transformations, - const gchar* name, - const gchar* explanation) -{ - AdjustColorsMultipleCommand * self = NULL; - PixelTransformationBundle* _tmp0_; -#line 855 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL); -#line 855 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_PIXEL_TRANSFORMATION_BUNDLE (transformations), NULL); -#line 855 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 855 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 857 "/home/jens/Source/shotwell/src/Commands.vala" - self = (AdjustColorsMultipleCommand*) multiple_photo_transformation_command_construct (object_type, iter, _ ("Applying Color Transformations"), _ ("Undoing Color Transformations"), name, explanation); -#line 860 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _pixel_transformation_bundle_ref0 (transformations); -#line 860 "/home/jens/Source/shotwell/src/Commands.vala" - _pixel_transformation_bundle_unref0 (self->priv->transformations); -#line 860 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->transformations = _tmp0_; -#line 855 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 9127 "Commands.c" -} - - -AdjustColorsMultipleCommand* -adjust_colors_multiple_command_new (GeeIterable* iter, - PixelTransformationBundle* transformations, - const gchar* name, - const gchar* explanation) -{ -#line 855 "/home/jens/Source/shotwell/src/Commands.vala" - return adjust_colors_multiple_command_construct (TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, iter, transformations, name, explanation); -#line 9139 "Commands.c" -} - - -static void -adjust_colors_multiple_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source) -{ - AdjustColorsMultipleCommand * self; - PixelTransformationBundle* _tmp0_; -#line 863 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommand); -#line 863 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 864 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->transformations; -#line 864 "/home/jens/Source/shotwell/src/Commands.vala" - photo_set_color_adjustments (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo), _tmp0_); -#line 9157 "Commands.c" -} - - -static void -adjust_colors_multiple_command_class_init (AdjustColorsMultipleCommandClass * klass) -{ -#line 852 "/home/jens/Source/shotwell/src/Commands.vala" - adjust_colors_multiple_command_parent_class = g_type_class_peek_parent (klass); -#line 852 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (AdjustColorsMultipleCommandPrivate)); -#line 852 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) adjust_colors_multiple_command_real_execute_on_source; -#line 852 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = adjust_colors_multiple_command_finalize; -#line 9172 "Commands.c" -} - - -static void -adjust_colors_multiple_command_instance_init (AdjustColorsMultipleCommand * self) -{ -#line 852 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = ADJUST_COLORS_MULTIPLE_COMMAND_GET_PRIVATE (self); -#line 9181 "Commands.c" -} - - -static void -adjust_colors_multiple_command_finalize (GObject * obj) -{ - AdjustColorsMultipleCommand * self; -#line 852 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADJUST_COLORS_MULTIPLE_COMMAND, AdjustColorsMultipleCommand); -#line 853 "/home/jens/Source/shotwell/src/Commands.vala" - _pixel_transformation_bundle_unref0 (self->priv->transformations); -#line 852 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (adjust_colors_multiple_command_parent_class)->finalize (obj); -#line 9195 "Commands.c" -} - - -GType -adjust_colors_multiple_command_get_type (void) -{ - static volatile gsize adjust_colors_multiple_command_type_id__volatile = 0; - if (g_once_init_enter (&adjust_colors_multiple_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (AdjustColorsMultipleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) adjust_colors_multiple_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AdjustColorsMultipleCommand), 0, (GInstanceInitFunc) adjust_colors_multiple_command_instance_init, NULL }; - GType adjust_colors_multiple_command_type_id; - adjust_colors_multiple_command_type_id = g_type_register_static (TYPE_MULTIPLE_PHOTO_TRANSFORMATION_COMMAND, "AdjustColorsMultipleCommand", &g_define_type_info, 0); - g_once_init_leave (&adjust_colors_multiple_command_type_id__volatile, adjust_colors_multiple_command_type_id); - } - return adjust_colors_multiple_command_type_id__volatile; -} - - -RedeyeCommand* -redeye_command_construct (GType object_type, - Photo* photo, - EditingToolsRedeyeInstance* redeye_instance, - const gchar* name, - const gchar* explanation) -{ - RedeyeCommand * self = NULL; - EditingToolsRedeyeInstance _tmp0_; -#line 871 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 871 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (redeye_instance != NULL, NULL); -#line 871 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 871 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 873 "/home/jens/Source/shotwell/src/Commands.vala" - self = (RedeyeCommand*) generic_photo_transformation_command_construct (object_type, photo, name, explanation); -#line 875 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = *redeye_instance; -#line 875 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->redeye_instance = _tmp0_; -#line 871 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 9238 "Commands.c" -} - - -RedeyeCommand* -redeye_command_new (Photo* photo, - EditingToolsRedeyeInstance* redeye_instance, - const gchar* name, - const gchar* explanation) -{ -#line 871 "/home/jens/Source/shotwell/src/Commands.vala" - return redeye_command_construct (TYPE_REDEYE_COMMAND, photo, redeye_instance, name, explanation); -#line 9250 "Commands.c" -} - - -static void -redeye_command_real_execute_on_photo (GenericPhotoTransformationCommand* base, - Photo* photo) -{ - RedeyeCommand * self; - EditingToolsRedeyeInstance _tmp0_; -#line 878 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_REDEYE_COMMAND, RedeyeCommand); -#line 878 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 879 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->redeye_instance; -#line 879 "/home/jens/Source/shotwell/src/Commands.vala" - photo_add_redeye_instance (photo, &_tmp0_); -#line 9268 "Commands.c" -} - - -static void -redeye_command_class_init (RedeyeCommandClass * klass) -{ -#line 868 "/home/jens/Source/shotwell/src/Commands.vala" - redeye_command_parent_class = g_type_class_peek_parent (klass); -#line 868 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (RedeyeCommandPrivate)); -#line 868 "/home/jens/Source/shotwell/src/Commands.vala" - ((GenericPhotoTransformationCommandClass *) klass)->execute_on_photo = (void (*) (GenericPhotoTransformationCommand *, Photo*)) redeye_command_real_execute_on_photo; -#line 868 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = redeye_command_finalize; -#line 9283 "Commands.c" -} - - -static void -redeye_command_instance_init (RedeyeCommand * self) -{ -#line 868 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = REDEYE_COMMAND_GET_PRIVATE (self); -#line 9292 "Commands.c" -} - - -static void -redeye_command_finalize (GObject * obj) -{ - RedeyeCommand * self; -#line 868 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_REDEYE_COMMAND, RedeyeCommand); -#line 868 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (redeye_command_parent_class)->finalize (obj); -#line 9304 "Commands.c" -} - - -GType -redeye_command_get_type (void) -{ - static volatile gsize redeye_command_type_id__volatile = 0; - if (g_once_init_enter (&redeye_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (RedeyeCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) redeye_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RedeyeCommand), 0, (GInstanceInitFunc) redeye_command_instance_init, NULL }; - GType redeye_command_type_id; - redeye_command_type_id = g_type_register_static (TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, "RedeyeCommand", &g_define_type_info, 0); - g_once_init_leave (&redeye_command_type_id__volatile, redeye_command_type_id); - } - return redeye_command_type_id__volatile; -} - - -MovePhotosCommand* -move_photos_command_construct (GType object_type, - const gchar* name, - const gchar* explanation) -{ - MovePhotosCommand * self = NULL; -#line 967 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 967 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 968 "/home/jens/Source/shotwell/src/Commands.vala" - self = (MovePhotosCommand*) command_construct (object_type, name, explanation); -#line 967 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 9336 "Commands.c" -} - - -static void -move_photos_command_real_prepare (Command* base) -{ - MovePhotosCommand * self; - MovePhotosCommandRealMovePhotosCommand* _tmp0_; - MovePhotosCommandRealMovePhotosCommand* _tmp1_; -#line 971 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand); -#line 972 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->real_command; -#line 972 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp0_ != NULL, "real_command != null"); -#line 973 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->real_command; -#line 973 "/home/jens/Source/shotwell/src/Commands.vala" - command_prepare (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_COMMAND, Command)); -#line 9356 "Commands.c" -} - - -static void -move_photos_command_real_execute (Command* base) -{ - MovePhotosCommand * self; - MovePhotosCommandRealMovePhotosCommand* _tmp0_; - MovePhotosCommandRealMovePhotosCommand* _tmp1_; -#line 976 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand); -#line 977 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->real_command; -#line 977 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp0_ != NULL, "real_command != null"); -#line 978 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->real_command; -#line 978 "/home/jens/Source/shotwell/src/Commands.vala" - command_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_COMMAND, Command)); -#line 9376 "Commands.c" -} - - -static void -move_photos_command_real_undo (Command* base) -{ - MovePhotosCommand * self; - MovePhotosCommandRealMovePhotosCommand* _tmp0_; - MovePhotosCommandRealMovePhotosCommand* _tmp1_; -#line 981 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand); -#line 982 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->real_command; -#line 982 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp0_ != NULL, "real_command != null"); -#line 983 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->real_command; -#line 983 "/home/jens/Source/shotwell/src/Commands.vala" - command_undo (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_COMMAND, Command)); -#line 9396 "Commands.c" -} - - -static void -_move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, - gpointer self) -{ -#line 914 "/home/jens/Source/shotwell/src/Commands.vala" - move_photos_command_real_move_photos_command_on_proxy_broken ((MovePhotosCommandRealMovePhotosCommand*) self); -#line 9406 "Commands.c" -} - - -static gpointer -_source_proxy_ref0 (gpointer self) -{ -#line 899 "/home/jens/Source/shotwell/src/Commands.vala" - return self ? source_proxy_ref (self) : NULL; -#line 9415 "Commands.c" -} - - -MovePhotosCommandRealMovePhotosCommand* -move_photos_command_real_move_photos_command_construct (GType object_type, - Event* new_event, - GeeIterable* source_views, - const gchar* progress_text, - const gchar* undo_progress_text, - const gchar* name, - const gchar* explanation) -{ - MovePhotosCommandRealMovePhotosCommand * self = NULL; - SourceProxy* _tmp25_; - SourceProxy* _tmp26_; -#line 891 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail ((new_event == NULL) || IS_EVENT (new_event), NULL); -#line 891 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (source_views), NULL); -#line 891 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (progress_text != NULL, NULL); -#line 891 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (undo_progress_text != NULL, NULL); -#line 891 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 891 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 893 "/home/jens/Source/shotwell/src/Commands.vala" - self = (MovePhotosCommandRealMovePhotosCommand*) multiple_data_source_command_construct (object_type, source_views, progress_text, undo_progress_text, name, explanation); -#line 9445 "Commands.c" - { - GeeArrayList* _source_list = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; - gint _source_size = 0; - GeeArrayList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _source_index = 0; -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)->source_list; -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _source_list = _tmp1_; -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _source_list; -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _tmp3_; -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _source_size = _tmp4_; -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _source_index = -1; -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 9473 "Commands.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - DataSource* source = NULL; - GeeArrayList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - MediaSource* current_media = NULL; - DataSource* _tmp11_; - MediaSource* _tmp12_; - Event* old_event = NULL; - MediaSource* _tmp13_; - Event* _tmp14_; - SourceProxy* _tmp15_ = NULL; - Event* _tmp16_; - SourceProxy* old_event_proxy = NULL; - SourceProxy* _tmp19_; - SourceProxy* _tmp20_; - GeeHashMap* _tmp22_; - MediaSource* _tmp23_; - SourceProxy* _tmp24_; -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _source_index; -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _source_index = _tmp5_ + 1; -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _source_index; -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _source_size; -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 9507 "Commands.c" - } -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _source_list; -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = _source_index; -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_); -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - source = (DataSource*) _tmp10_; -#line 897 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = source; -#line 897 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 897 "/home/jens/Source/shotwell/src/Commands.vala" - current_media = _tmp12_; -#line 898 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = current_media; -#line 898 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = media_source_get_event (_tmp13_); -#line 898 "/home/jens/Source/shotwell/src/Commands.vala" - old_event = _tmp14_; -#line 899 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = old_event; -#line 899 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp16_ != NULL) { -#line 9533 "Commands.c" - Event* _tmp17_; - SourceProxy* _tmp18_; -#line 899 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = old_event; -#line 899 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PROXYABLE, Proxyable)); -#line 899 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (_tmp15_); -#line 899 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = _tmp18_; -#line 9544 "Commands.c" - } else { -#line 899 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (_tmp15_); -#line 899 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = NULL; -#line 9550 "Commands.c" - } -#line 899 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = _source_proxy_ref0 (_tmp15_); -#line 899 "/home/jens/Source/shotwell/src/Commands.vala" - old_event_proxy = _tmp19_; -#line 902 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = old_event_proxy; -#line 902 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp20_ != NULL) { -#line 9560 "Commands.c" - SourceProxy* _tmp21_; -#line 903 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = old_event_proxy; -#line 903 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (_tmp21_, "broken", (GCallback) _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken, self, 0); -#line 9566 "Commands.c" - } -#line 905 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = self->priv->old_events; -#line 905 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = current_media; -#line 905 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = old_event_proxy; -#line 905 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp23_, _tmp24_); -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (old_event_proxy); -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (_tmp15_); -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (old_event); -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (current_media); -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 9586 "Commands.c" - } -#line 896 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_list); -#line 9590 "Commands.c" - } -#line 909 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (new_event, TYPE_PROXYABLE, Proxyable)); -#line 909 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (self->priv->new_event_proxy); -#line 909 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->new_event_proxy = _tmp25_; -#line 910 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = self->priv->new_event_proxy; -#line 910 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (_tmp26_, "broken", (GCallback) _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken, self, 0); -#line 891 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 9604 "Commands.c" -} - - -MovePhotosCommandRealMovePhotosCommand* -move_photos_command_real_move_photos_command_new (Event* new_event, - GeeIterable* source_views, - const gchar* progress_text, - const gchar* undo_progress_text, - const gchar* name, - const gchar* explanation) -{ -#line 891 "/home/jens/Source/shotwell/src/Commands.vala" - return move_photos_command_real_move_photos_command_construct (MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, new_event, source_views, progress_text, undo_progress_text, name, explanation); -#line 9618 "Commands.c" -} - - -static void -move_photos_command_real_move_photos_command_real_execute (Command* base) -{ - MovePhotosCommandRealMovePhotosCommand * self; - LibraryWindow* _tmp0_; - LibraryWindow* _tmp1_; - Page* _tmp2_; - Page* _tmp3_; - gboolean _tmp4_; -#line 922 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommand); -#line 925 "/home/jens/Source/shotwell/src/Commands.vala" - COMMAND_CLASS (move_photos_command_real_move_photos_command_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command)); -#line 928 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = library_window_get_app (); -#line 928 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 928 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow)); -#line 928 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 928 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TYPE_EVENT_PAGE); -#line 928 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp3_); -#line 928 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp1_); -#line 928 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp4_) { -#line 9651 "Commands.c" - Event* evt = NULL; - LibraryWindow* _tmp5_; - LibraryWindow* _tmp6_; - Page* _tmp7_; - EventPage* _tmp8_; - Event* _tmp9_; - Event* _tmp10_; - Event* _tmp11_; - GeeArrayList* _tmp12_; - gint _tmp13_; - gint _tmp14_; -#line 929 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = library_window_get_app (); -#line 929 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tmp5_; -#line 929 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PAGE_WINDOW, PageWindow)); -#line 929 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_EVENT_PAGE, EventPage); -#line 929 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = event_page_get_event (_tmp8_); -#line 929 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = _tmp9_; -#line 929 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp8_); -#line 929 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp6_); -#line 929 "/home/jens/Source/shotwell/src/Commands.vala" - evt = _tmp10_; -#line 932 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = evt; -#line 932 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)->source_list; -#line 932 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 932 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = _tmp13_; -#line 932 "/home/jens/Source/shotwell/src/Commands.vala" - if (event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_EVENT_SOURCE, EventSource)) == _tmp14_) { -#line 9691 "Commands.c" - LibraryWindow* _tmp15_; - LibraryWindow* _tmp16_; - SourceProxy* _tmp17_; - DataSource* _tmp18_; - Event* _tmp19_; -#line 935 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = library_window_get_app (); -#line 935 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = _tmp15_; -#line 935 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = self->priv->new_event_proxy; -#line 935 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = source_proxy_get_source (_tmp17_); -#line 935 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_EVENT, Event); -#line 935 "/home/jens/Source/shotwell/src/Commands.vala" - library_window_switch_to_event (_tmp16_, _tmp19_); -#line 935 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp19_); -#line 935 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp16_); -#line 9713 "Commands.c" - } -#line 928 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (evt); -#line 9717 "Commands.c" - } else { - SourceProxy* _tmp20_; - DataSource* _tmp21_; - Event* _tmp22_; - GeeArrayList* _tmp23_; - gint _tmp24_; - gint _tmp25_; - gboolean _tmp26_; -#line 941 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = self->priv->new_event_proxy; -#line 941 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = source_proxy_get_source (_tmp20_); -#line 941 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_EVENT, Event); -#line 941 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)->source_list; -#line 941 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 941 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = _tmp24_; -#line 941 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_EVENT_SOURCE, EventSource)) == _tmp25_; -#line 941 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp22_); -#line 941 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp26_) { -#line 9744 "Commands.c" - LibraryWindow* _tmp27_; - LibraryWindow* _tmp28_; - SourceProxy* _tmp29_; - DataSource* _tmp30_; - Event* _tmp31_; -#line 943 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = library_window_get_app (); -#line 943 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = _tmp27_; -#line 943 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = self->priv->new_event_proxy; -#line 943 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = source_proxy_get_source (_tmp29_); -#line 943 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp31_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_EVENT, Event); -#line 943 "/home/jens/Source/shotwell/src/Commands.vala" - library_window_switch_to_event (_tmp28_, _tmp31_); -#line 943 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp31_); -#line 943 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp28_); -#line 9766 "Commands.c" - } - } -} - - -static void -move_photos_command_real_move_photos_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source) -{ - MovePhotosCommandRealMovePhotosCommand * self; - SourceProxy* _tmp0_; - DataSource* _tmp1_; - Event* _tmp2_; -#line 949 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommand); -#line 949 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 950 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->new_event_proxy; -#line 950 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = source_proxy_get_source (_tmp0_); -#line 950 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_EVENT, Event); -#line 950 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_set_event (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), _tmp2_); -#line 950 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp2_); -#line 9794 "Commands.c" -} - - -static void -move_photos_command_real_move_photos_command_real_undo_on_source (MultipleDataSourceCommand* base, - DataSource* source) -{ - MovePhotosCommandRealMovePhotosCommand * self; - MediaSource* current_media = NULL; - MediaSource* _tmp0_; - SourceProxy* event_proxy = NULL; - GeeHashMap* _tmp1_; - MediaSource* _tmp2_; - gpointer _tmp3_; - Event* _tmp4_ = NULL; - SourceProxy* _tmp5_; - MediaSource* _tmp8_; -#line 953 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommand); -#line 953 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 954 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource)); -#line 954 "/home/jens/Source/shotwell/src/Commands.vala" - current_media = _tmp0_; -#line 955 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->old_events; -#line 955 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = current_media; -#line 955 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp2_); -#line 955 "/home/jens/Source/shotwell/src/Commands.vala" - event_proxy = (SourceProxy*) _tmp3_; -#line 957 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = event_proxy; -#line 957 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp5_ != NULL) { -#line 9832 "Commands.c" - SourceProxy* _tmp6_; - DataSource* _tmp7_; -#line 957 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = event_proxy; -#line 957 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = source_proxy_get_source (_tmp6_); -#line 957 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp4_); -#line 957 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_EVENT, Event); -#line 9843 "Commands.c" - } else { -#line 957 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp4_); -#line 957 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = NULL; -#line 9849 "Commands.c" - } -#line 957 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = current_media; -#line 957 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_set_event (_tmp8_, _tmp4_); -#line 953 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp4_); -#line 953 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (event_proxy); -#line 953 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (current_media); -#line 9861 "Commands.c" -} - - -static void -move_photos_command_real_move_photos_command_on_proxy_broken (MovePhotosCommandRealMovePhotosCommand* self) -{ - CommandManager* _tmp0_; - CommandManager* _tmp1_; -#line 960 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (MOVE_PHOTOS_COMMAND_IS_REAL_MOVE_PHOTOS_COMMAND (self)); -#line 961 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command)); -#line 961 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 961 "/home/jens/Source/shotwell/src/Commands.vala" - command_manager_reset (_tmp1_); -#line 961 "/home/jens/Source/shotwell/src/Commands.vala" - _command_manager_unref0 (_tmp1_); -#line 9880 "Commands.c" -} - - -static void -move_photos_command_real_move_photos_command_class_init (MovePhotosCommandRealMovePhotosCommandClass * klass) -{ -#line 886 "/home/jens/Source/shotwell/src/Commands.vala" - move_photos_command_real_move_photos_command_parent_class = g_type_class_peek_parent (klass); -#line 886 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (MovePhotosCommandRealMovePhotosCommandPrivate)); -#line 886 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) move_photos_command_real_move_photos_command_real_execute; -#line 886 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) move_photos_command_real_move_photos_command_real_execute_on_source; -#line 886 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) move_photos_command_real_move_photos_command_real_undo_on_source; -#line 886 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = move_photos_command_real_move_photos_command_finalize; -#line 9899 "Commands.c" -} - - -static void -move_photos_command_real_move_photos_command_instance_init (MovePhotosCommandRealMovePhotosCommand * self) -{ - GeeHashMap* _tmp0_; -#line 886 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = MOVE_PHOTOS_COMMAND_REAL_MOVE_PHOTOS_COMMAND_GET_PRIVATE (self); -#line 887 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->new_event_proxy = NULL; -#line 888 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_hash_map_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 888 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->old_events = _tmp0_; -#line 9915 "Commands.c" -} - - -static void -move_photos_command_real_move_photos_command_finalize (GObject * obj) -{ - MovePhotosCommandRealMovePhotosCommand * self; - SourceProxy* _tmp0_; - guint _tmp1_; -#line 886 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, MOVE_PHOTOS_COMMAND_TYPE_REAL_MOVE_PHOTOS_COMMAND, MovePhotosCommandRealMovePhotosCommand); -#line 914 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->new_event_proxy; -#line 914 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp1_, NULL, FALSE); -#line 914 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken, self); -#line 9933 "Commands.c" - { - GeeIterator* _proxy_it = NULL; - GeeHashMap* _tmp2_; - GeeCollection* _tmp3_; - GeeCollection* _tmp4_; - GeeCollection* _tmp5_; - GeeIterator* _tmp6_; - GeeIterator* _tmp7_; -#line 916 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->old_events; -#line 916 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 916 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _tmp3_; -#line 916 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp4_; -#line 916 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 916 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _tmp6_; -#line 916 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp5_); -#line 916 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_it = _tmp7_; -#line 916 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 9960 "Commands.c" - GeeIterator* _tmp8_; - SourceProxy* proxy = NULL; - GeeIterator* _tmp9_; - gpointer _tmp10_; - SourceProxy* _tmp11_; -#line 916 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _proxy_it; -#line 916 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp8_)) { -#line 916 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 9972 "Commands.c" - } -#line 916 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = _proxy_it; -#line 916 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = gee_iterator_get (_tmp9_); -#line 916 "/home/jens/Source/shotwell/src/Commands.vala" - proxy = (SourceProxy*) _tmp10_; -#line 917 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = proxy; -#line 917 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp11_ != NULL) { -#line 9984 "Commands.c" - SourceProxy* _tmp12_; - guint _tmp13_; -#line 918 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = proxy; -#line 918 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp13_, NULL, FALSE); -#line 918 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (_tmp12_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _move_photos_command_real_move_photos_command_on_proxy_broken_source_proxy_broken, self); -#line 9993 "Commands.c" - } -#line 916 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (proxy); -#line 9997 "Commands.c" - } -#line 916 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_proxy_it); -#line 10001 "Commands.c" - } -#line 887 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (self->priv->new_event_proxy); -#line 888 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->old_events); -#line 886 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (move_photos_command_real_move_photos_command_parent_class)->finalize (obj); -#line 10009 "Commands.c" -} - - -GType -move_photos_command_real_move_photos_command_get_type (void) -{ - static volatile gsize move_photos_command_real_move_photos_command_type_id__volatile = 0; - if (g_once_init_enter (&move_photos_command_real_move_photos_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MovePhotosCommandRealMovePhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) move_photos_command_real_move_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MovePhotosCommandRealMovePhotosCommand), 0, (GInstanceInitFunc) move_photos_command_real_move_photos_command_instance_init, NULL }; - GType move_photos_command_real_move_photos_command_type_id; - move_photos_command_real_move_photos_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_COMMAND, "MovePhotosCommandRealMovePhotosCommand", &g_define_type_info, 0); - g_once_init_leave (&move_photos_command_real_move_photos_command_type_id__volatile, move_photos_command_real_move_photos_command_type_id); - } - return move_photos_command_real_move_photos_command_type_id__volatile; -} - - -static void -move_photos_command_class_init (MovePhotosCommandClass * klass) -{ -#line 883 "/home/jens/Source/shotwell/src/Commands.vala" - move_photos_command_parent_class = g_type_class_peek_parent (klass); -#line 883 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->prepare = (void (*) (Command *)) move_photos_command_real_prepare; -#line 883 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) move_photos_command_real_execute; -#line 883 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) move_photos_command_real_undo; -#line 883 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = move_photos_command_finalize; -#line 10040 "Commands.c" -} - - -static void -move_photos_command_instance_init (MovePhotosCommand * self) -{ -} - - -static void -move_photos_command_finalize (GObject * obj) -{ - MovePhotosCommand * self; -#line 883 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand); -#line 965 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->real_command); -#line 883 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (move_photos_command_parent_class)->finalize (obj); -#line 10060 "Commands.c" -} - - -GType -move_photos_command_get_type (void) -{ - static volatile gsize move_photos_command_type_id__volatile = 0; - if (g_once_init_enter (&move_photos_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MovePhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) move_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MovePhotosCommand), 0, (GInstanceInitFunc) move_photos_command_instance_init, NULL }; - GType move_photos_command_type_id; - move_photos_command_type_id = g_type_register_static (TYPE_COMMAND, "MovePhotosCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&move_photos_command_type_id__volatile, move_photos_command_type_id); - } - return move_photos_command_type_id__volatile; -} - - -NewEventCommand* -new_event_command_construct (GType object_type, - GeeIterable* iter) -{ - NewEventCommand * self = NULL; - MediaSource* key_source = NULL; - MediaSource* _tmp9_; - Event* new_event = NULL; - MediaSource* _tmp10_; - Event* _tmp11_; - MovePhotosCommandRealMovePhotosCommand* _tmp12_; -#line 988 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL); -#line 989 "/home/jens/Source/shotwell/src/Commands.vala" - self = (NewEventCommand*) move_photos_command_construct (object_type, RESOURCES_NEW_EVENT_LABEL, ""); -#line 992 "/home/jens/Source/shotwell/src/Commands.vala" - key_source = NULL; -#line 10095 "Commands.c" - { - GeeIterator* _view_it = NULL; - GeeIterator* _tmp0_; -#line 993 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_iterable_iterator (iter); -#line 993 "/home/jens/Source/shotwell/src/Commands.vala" - _view_it = _tmp0_; -#line 993 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 10105 "Commands.c" - GeeIterator* _tmp1_; - DataView* view = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - MediaSource* current_source = NULL; - DataView* _tmp4_; - DataSource* _tmp5_; - MediaSource* _tmp6_; -#line 993 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _view_it; -#line 993 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 993 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 10120 "Commands.c" - } -#line 993 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _view_it; -#line 993 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 993 "/home/jens/Source/shotwell/src/Commands.vala" - view = (DataView*) _tmp3_; -#line 994 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = view; -#line 994 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = data_view_get_source (_tmp4_); -#line 994 "/home/jens/Source/shotwell/src/Commands.vala" - current_source = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource); -#line 996 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = key_source; -#line 996 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp6_ == NULL) { -#line 10138 "Commands.c" - MediaSource* _tmp7_; - MediaSource* _tmp8_; -#line 997 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = current_source; -#line 997 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _g_object_ref0 (_tmp7_); -#line 997 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (key_source); -#line 997 "/home/jens/Source/shotwell/src/Commands.vala" - key_source = _tmp8_; -#line 998 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (current_source); -#line 998 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (view); -#line 998 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 10155 "Commands.c" - } -#line 993 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (current_source); -#line 993 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (view); -#line 10161 "Commands.c" - } -#line 993 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_view_it); -#line 10165 "Commands.c" - } -#line 1003 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = key_source; -#line 1003 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp9_ != NULL, "key_source != null"); -#line 1005 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = key_source; -#line 1005 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = event_create_empty_event (_tmp10_); -#line 1005 "/home/jens/Source/shotwell/src/Commands.vala" - new_event = _tmp11_; -#line 1007 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = move_photos_command_real_move_photos_command_new (new_event, iter, _ ("Creating New Event"), _ ("Removing Event"), RESOURCES_NEW_EVENT_LABEL, ""); -#line 1007 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command); -#line 1007 "/home/jens/Source/shotwell/src/Commands.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command = _tmp12_; -#line 988 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (new_event); -#line 988 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (key_source); -#line 988 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 10189 "Commands.c" -} - - -NewEventCommand* -new_event_command_new (GeeIterable* iter) -{ -#line 988 "/home/jens/Source/shotwell/src/Commands.vala" - return new_event_command_construct (TYPE_NEW_EVENT_COMMAND, iter); -#line 10198 "Commands.c" -} - - -static void -new_event_command_class_init (NewEventCommandClass * klass) -{ -#line 987 "/home/jens/Source/shotwell/src/Commands.vala" - new_event_command_parent_class = g_type_class_peek_parent (klass); -#line 10207 "Commands.c" -} - - -static void -new_event_command_instance_init (NewEventCommand * self) -{ -} - - -GType -new_event_command_get_type (void) -{ - static volatile gsize new_event_command_type_id__volatile = 0; - if (g_once_init_enter (&new_event_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (NewEventCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) new_event_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NewEventCommand), 0, (GInstanceInitFunc) new_event_command_instance_init, NULL }; - GType new_event_command_type_id; - new_event_command_type_id = g_type_register_static (TYPE_MOVE_PHOTOS_COMMAND, "NewEventCommand", &g_define_type_info, 0); - g_once_init_leave (&new_event_command_type_id__volatile, new_event_command_type_id); - } - return new_event_command_type_id__volatile; -} - - -SetEventCommand* -set_event_command_construct (GType object_type, - GeeIterable* iter, - Event* new_event) -{ - SetEventCommand * self = NULL; - MovePhotosCommandRealMovePhotosCommand* _tmp0_; -#line 1014 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL); -#line 1014 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_EVENT (new_event), NULL); -#line 1015 "/home/jens/Source/shotwell/src/Commands.vala" - self = (SetEventCommand*) move_photos_command_construct (object_type, RESOURCES_SET_PHOTO_EVENT_LABEL, RESOURCES_SET_PHOTO_EVENT_TOOLTIP); -#line 1017 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = move_photos_command_real_move_photos_command_new (new_event, iter, _ ("Moving Photos to New Event"), _ ("Setting Photos to Previous Event"), RESOURCES_SET_PHOTO_EVENT_LABEL, ""); -#line 1017 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command); -#line 1017 "/home/jens/Source/shotwell/src/Commands.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command = _tmp0_; -#line 1014 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 10252 "Commands.c" -} - - -SetEventCommand* -set_event_command_new (GeeIterable* iter, - Event* new_event) -{ -#line 1014 "/home/jens/Source/shotwell/src/Commands.vala" - return set_event_command_construct (TYPE_SET_EVENT_COMMAND, iter, new_event); -#line 10262 "Commands.c" -} - - -static void -set_event_command_class_init (SetEventCommandClass * klass) -{ -#line 1013 "/home/jens/Source/shotwell/src/Commands.vala" - set_event_command_parent_class = g_type_class_peek_parent (klass); -#line 10271 "Commands.c" -} - - -static void -set_event_command_instance_init (SetEventCommand * self) -{ -} - - -GType -set_event_command_get_type (void) -{ - static volatile gsize set_event_command_type_id__volatile = 0; - if (g_once_init_enter (&set_event_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SetEventCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_event_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetEventCommand), 0, (GInstanceInitFunc) set_event_command_instance_init, NULL }; - GType set_event_command_type_id; - set_event_command_type_id = g_type_register_static (TYPE_MOVE_PHOTOS_COMMAND, "SetEventCommand", &g_define_type_info, 0); - g_once_init_leave (&set_event_command_type_id__volatile, set_event_command_type_id); - } - return set_event_command_type_id__volatile; -} - - -MergeEventsCommand* -merge_events_command_construct (GType object_type, - GeeIterable* iter) -{ - MergeEventsCommand * self = NULL; - Event* master_event = NULL; - gint named_evt_src_count = 0; - gint unnamed_evt_src_count = 0; - GeeArrayList* media_thumbs = NULL; - GeeArrayList* _tmp0_; - Event* _tmp37_; - GeeArrayList* _tmp38_; - gint _tmp39_; - gint _tmp40_; - Event* _tmp41_; - GeeArrayList* _tmp42_; - MovePhotosCommandRealMovePhotosCommand* _tmp43_; -#line 1024 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL); -#line 1025 "/home/jens/Source/shotwell/src/Commands.vala" - self = (MergeEventsCommand*) move_photos_command_construct (object_type, RESOURCES_MERGE_LABEL, ""); -#line 1031 "/home/jens/Source/shotwell/src/Commands.vala" - master_event = NULL; -#line 1032 "/home/jens/Source/shotwell/src/Commands.vala" - named_evt_src_count = 0; -#line 1033 "/home/jens/Source/shotwell/src/Commands.vala" - unnamed_evt_src_count = 0; -#line 1034 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_array_list_new (TYPE_THUMBNAIL_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1034 "/home/jens/Source/shotwell/src/Commands.vala" - media_thumbs = _tmp0_; -#line 10326 "Commands.c" - { - GeeIterator* _view_it = NULL; - GeeIterator* _tmp1_; -#line 1036 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_iterable_iterator (iter); -#line 1036 "/home/jens/Source/shotwell/src/Commands.vala" - _view_it = _tmp1_; -#line 1036 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 10336 "Commands.c" - GeeIterator* _tmp2_; - DataView* view = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - Event* event = NULL; - DataView* _tmp5_; - DataSource* _tmp6_; - Event* _tmp7_; -#line 1036 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _view_it; -#line 1036 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 1036 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 10351 "Commands.c" - } -#line 1036 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _view_it; -#line 1036 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 1036 "/home/jens/Source/shotwell/src/Commands.vala" - view = (DataView*) _tmp4_; -#line 1037 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = view; -#line 1037 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = data_view_get_source (_tmp5_); -#line 1037 "/home/jens/Source/shotwell/src/Commands.vala" - event = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_EVENT, Event); -#line 1040 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = master_event; -#line 1040 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp7_ == NULL) { -#line 10369 "Commands.c" - Event* _tmp8_; - Event* _tmp9_; - Event* _tmp10_; - Event* _tmp11_; -#line 1043 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = event; -#line 1043 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = _g_object_ref0 (_tmp8_); -#line 1043 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (master_event); -#line 1043 "/home/jens/Source/shotwell/src/Commands.vala" - master_event = _tmp9_; -#line 1044 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = master_event; -#line 1044 "/home/jens/Source/shotwell/src/Commands.vala" - unnamed_evt_src_count = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_EVENT_SOURCE, EventSource)); -#line 1045 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = event; -#line 1045 "/home/jens/Source/shotwell/src/Commands.vala" - if (event_has_name (_tmp11_)) { -#line 10390 "Commands.c" - Event* _tmp12_; -#line 1046 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = master_event; -#line 1046 "/home/jens/Source/shotwell/src/Commands.vala" - named_evt_src_count = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_EVENT_SOURCE, EventSource)); -#line 10396 "Commands.c" - } - } else { - Event* _tmp13_; -#line 1050 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = event; -#line 1050 "/home/jens/Source/shotwell/src/Commands.vala" - if (event_has_name (_tmp13_)) { -#line 10404 "Commands.c" - Event* _tmp14_; - gint _tmp15_; -#line 1051 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = event; -#line 1051 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = named_evt_src_count; -#line 1051 "/home/jens/Source/shotwell/src/Commands.vala" - if (event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_EVENT_SOURCE, EventSource)) > _tmp15_) { -#line 10413 "Commands.c" - Event* _tmp16_; - Event* _tmp17_; - Event* _tmp18_; -#line 1052 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = event; -#line 1052 "/home/jens/Source/shotwell/src/Commands.vala" - named_evt_src_count = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_EVENT_SOURCE, EventSource)); -#line 1053 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = event; -#line 1053 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = _g_object_ref0 (_tmp17_); -#line 1053 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (master_event); -#line 1053 "/home/jens/Source/shotwell/src/Commands.vala" - master_event = _tmp18_; -#line 10429 "Commands.c" - } - } else { - gint _tmp19_; -#line 1055 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = named_evt_src_count; -#line 1055 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp19_ == 0) { -#line 10437 "Commands.c" - Event* _tmp20_; - gint _tmp21_; -#line 1059 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = event; -#line 1059 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = unnamed_evt_src_count; -#line 1059 "/home/jens/Source/shotwell/src/Commands.vala" - if (event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_EVENT_SOURCE, EventSource)) > _tmp21_) { -#line 10446 "Commands.c" - Event* _tmp22_; - Event* _tmp23_; - Event* _tmp24_; -#line 1060 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = event; -#line 1060 "/home/jens/Source/shotwell/src/Commands.vala" - unnamed_evt_src_count = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_EVENT_SOURCE, EventSource)); -#line 1061 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = event; -#line 1061 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = _g_object_ref0 (_tmp23_); -#line 1061 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (master_event); -#line 1061 "/home/jens/Source/shotwell/src/Commands.vala" - master_event = _tmp24_; -#line 10462 "Commands.c" - } - } - } - } - { - GeeIterator* _media_source_it = NULL; - Event* _tmp25_; - GeeCollection* _tmp26_; - GeeCollection* _tmp27_; - GeeIterator* _tmp28_; - GeeIterator* _tmp29_; -#line 1068 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = event; -#line 1068 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = event_source_get_media (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_EVENT_SOURCE, EventSource)); -#line 1068 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = _tmp26_; -#line 1068 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1068 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = _tmp28_; -#line 1068 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp27_); -#line 1068 "/home/jens/Source/shotwell/src/Commands.vala" - _media_source_it = _tmp29_; -#line 1068 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 10490 "Commands.c" - GeeIterator* _tmp30_; - MediaSource* media_source = NULL; - GeeIterator* _tmp31_; - gpointer _tmp32_; - GeeArrayList* _tmp33_; - MediaSource* _tmp34_; - ThumbnailView* _tmp35_; - ThumbnailView* _tmp36_; -#line 1068 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = _media_source_it; -#line 1068 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp30_)) { -#line 1068 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 10505 "Commands.c" - } -#line 1068 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp31_ = _media_source_it; -#line 1068 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp32_ = gee_iterator_get (_tmp31_); -#line 1068 "/home/jens/Source/shotwell/src/Commands.vala" - media_source = (MediaSource*) _tmp32_; -#line 1069 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp33_ = media_thumbs; -#line 1069 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp34_ = media_source; -#line 1069 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp35_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 1069 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp36_ = _tmp35_; -#line 1069 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp36_); -#line 1069 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp36_); -#line 1068 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (media_source); -#line 10527 "Commands.c" - } -#line 1068 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_media_source_it); -#line 10531 "Commands.c" - } -#line 1036 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (event); -#line 1036 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (view); -#line 10537 "Commands.c" - } -#line 1036 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_view_it); -#line 10541 "Commands.c" - } -#line 1072 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp37_ = master_event; -#line 1072 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp37_ != NULL, "master_event != null"); -#line 1073 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp38_ = media_thumbs; -#line 1073 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp39_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1073 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp40_ = _tmp39_; -#line 1073 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp40_ > 0, "media_thumbs.size > 0"); -#line 1075 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp41_ = master_event; -#line 1075 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp42_ = media_thumbs; -#line 1075 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp43_ = move_photos_command_real_move_photos_command_new (_tmp41_, G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_ITERABLE, GeeIterable), _ ("Merging"), _ ("Unmerging"), RESOURCES_MERGE_LABEL, ""); -#line 1075 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command); -#line 1075 "/home/jens/Source/shotwell/src/Commands.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)->real_command = _tmp43_; -#line 1024 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (media_thumbs); -#line 1024 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (master_event); -#line 1024 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 10571 "Commands.c" -} - - -MergeEventsCommand* -merge_events_command_new (GeeIterable* iter) -{ -#line 1024 "/home/jens/Source/shotwell/src/Commands.vala" - return merge_events_command_construct (TYPE_MERGE_EVENTS_COMMAND, iter); -#line 10580 "Commands.c" -} - - -static void -merge_events_command_class_init (MergeEventsCommandClass * klass) -{ -#line 1023 "/home/jens/Source/shotwell/src/Commands.vala" - merge_events_command_parent_class = g_type_class_peek_parent (klass); -#line 10589 "Commands.c" -} - - -static void -merge_events_command_instance_init (MergeEventsCommand * self) -{ -} - - -GType -merge_events_command_get_type (void) -{ - static volatile gsize merge_events_command_type_id__volatile = 0; - if (g_once_init_enter (&merge_events_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MergeEventsCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) merge_events_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MergeEventsCommand), 0, (GInstanceInitFunc) merge_events_command_instance_init, NULL }; - GType merge_events_command_type_id; - merge_events_command_type_id = g_type_register_static (TYPE_MOVE_PHOTOS_COMMAND, "MergeEventsCommand", &g_define_type_info, 0); - g_once_init_leave (&merge_events_command_type_id__volatile, merge_events_command_type_id); - } - return merge_events_command_type_id__volatile; -} - - -static void -_duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self) -{ -#line 1092 "/home/jens/Source/shotwell/src/Commands.vala" - duplicate_multiple_photos_command_on_photo_destroyed ((DuplicateMultiplePhotosCommand*) self, source); -#line 10620 "Commands.c" -} - - -DuplicateMultiplePhotosCommand* -duplicate_multiple_photos_command_construct (GType object_type, - GeeIterable* iter) -{ - DuplicateMultiplePhotosCommand * self = NULL; - LibraryPhotoSourceCollection* _tmp0_; -#line 1084 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL); -#line 1085 "/home/jens/Source/shotwell/src/Commands.vala" - self = (DuplicateMultiplePhotosCommand*) multiple_data_source_command_construct (object_type, iter, _ ("Duplicating photos"), _ ("Removing duplicated photos"), RESOURCES_DUPLICATE_PHOTO_LABEL, RESOURCES_DUPLICATE_PHOTO_TOOLTIP); -#line 1088 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = library_photo_global; -#line 1088 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed, self, 0); -#line 1084 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 10640 "Commands.c" -} - - -DuplicateMultiplePhotosCommand* -duplicate_multiple_photos_command_new (GeeIterable* iter) -{ -#line 1084 "/home/jens/Source/shotwell/src/Commands.vala" - return duplicate_multiple_photos_command_construct (TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, iter); -#line 10649 "Commands.c" -} - - -static void -duplicate_multiple_photos_command_on_photo_destroyed (DuplicateMultiplePhotosCommand* self, - DataSource* source) -{ - GeeHashMap* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - gboolean _tmp4_; -#line 1095 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DUPLICATE_MULTIPLE_PHOTOS_COMMAND (self)); -#line 1095 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1097 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->dupes; -#line 1097 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 1097 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _tmp1_; -#line 1097 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 1097 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = gee_collection_contains (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 1097 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp3_); -#line 1097 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp4_) { -#line 10680 "Commands.c" - CommandManager* _tmp5_; - CommandManager* _tmp6_; -#line 1098 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command)); -#line 1098 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tmp5_; -#line 1098 "/home/jens/Source/shotwell/src/Commands.vala" - command_manager_reset (_tmp6_); -#line 1098 "/home/jens/Source/shotwell/src/Commands.vala" - _command_manager_unref0 (_tmp6_); -#line 10691 "Commands.c" - } -} - - -static void -duplicate_multiple_photos_command_real_execute (Command* base) -{ - DuplicateMultiplePhotosCommand * self; - GeeHashMap* _tmp0_; - gint _tmp1_; -#line 1101 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand); -#line 1102 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->dupes; -#line 1102 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_map_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 1103 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->failed = 0; -#line 1105 "/home/jens/Source/shotwell/src/Commands.vala" - COMMAND_CLASS (duplicate_multiple_photos_command_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command)); -#line 1107 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->failed; -#line 1107 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp1_ > 0) { -#line 10716 "Commands.c" - gchar* error_string = NULL; - gint _tmp2_; - gint _tmp3_; - gchar* _tmp4_; - const gchar* _tmp5_; -#line 1108 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->failed; -#line 1108 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = self->priv->failed; -#line 1108 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = g_strdup_printf (ngettext ("Unable to duplicate one photo due to a file error", "Unable to duplicate %d photos due to file errors", (gulong) _tmp2_), _tmp3_); -#line 1108 "/home/jens/Source/shotwell/src/Commands.vala" - error_string = _tmp4_; -#line 1110 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = error_string; -#line 1110 "/home/jens/Source/shotwell/src/Commands.vala" - app_window_error_message (_tmp5_, NULL); -#line 1107 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (error_string); -#line 10736 "Commands.c" - } -} - - -static void -duplicate_multiple_photos_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source) -{ - DuplicateMultiplePhotosCommand * self; - LibraryPhoto* photo = NULL; - LibraryPhoto* _tmp0_; - GError * _inner_error_ = NULL; -#line 1114 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand); -#line 1114 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1115 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 1115 "/home/jens/Source/shotwell/src/Commands.vala" - photo = _tmp0_; -#line 10757 "Commands.c" - { - LibraryPhoto* dupe = NULL; - LibraryPhoto* _tmp1_; - GeeHashMap* _tmp2_; -#line 1118 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = library_photo_duplicate (photo, &_inner_error_); -#line 1118 "/home/jens/Source/shotwell/src/Commands.vala" - dupe = _tmp1_; -#line 1118 "/home/jens/Source/shotwell/src/Commands.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 10768 "Commands.c" - goto __catch466_g_error; - } -#line 1119 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->dupes; -#line 1119 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo, dupe); -#line 1117 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (dupe); -#line 10777 "Commands.c" - } - goto __finally466; - __catch466_g_error: - { - GError* err = NULL; - GFile* _tmp3_; - GFile* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GError* _tmp7_; - const gchar* _tmp8_; - gint _tmp9_; -#line 1117 "/home/jens/Source/shotwell/src/Commands.vala" - err = _inner_error_; -#line 1117 "/home/jens/Source/shotwell/src/Commands.vala" - _inner_error_ = NULL; -#line 1121 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1121 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _tmp3_; -#line 1121 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = g_file_get_path (_tmp4_); -#line 1121 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tmp5_; -#line 1121 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = err; -#line 1121 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _tmp7_->message; -#line 1121 "/home/jens/Source/shotwell/src/Commands.vala" - g_critical ("Commands.vala:1121: Unable to duplicate file %s: %s", _tmp6_, _tmp8_); -#line 1121 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp6_); -#line 1121 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp4_); -#line 1122 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = self->priv->failed; -#line 1122 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->failed = _tmp9_ + 1; -#line 1117 "/home/jens/Source/shotwell/src/Commands.vala" - _g_error_free0 (err); -#line 10818 "Commands.c" - } - __finally466: -#line 1117 "/home/jens/Source/shotwell/src/Commands.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1117 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (photo); -#line 1117 "/home/jens/Source/shotwell/src/Commands.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1117 "/home/jens/Source/shotwell/src/Commands.vala" - g_clear_error (&_inner_error_); -#line 1117 "/home/jens/Source/shotwell/src/Commands.vala" - return; -#line 10831 "Commands.c" - } -#line 1114 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (photo); -#line 10835 "Commands.c" -} - - -static void -duplicate_multiple_photos_command_real_undo (Command* base) -{ - DuplicateMultiplePhotosCommand * self; - LibraryPhotoSourceCollection* _tmp0_; - guint _tmp1_; - GeeHashMap* _tmp2_; - LibraryPhotoSourceCollection* _tmp3_; -#line 1126 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand); -#line 1128 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = library_photo_global; -#line 1128 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE); -#line 1128 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed, self); -#line 1130 "/home/jens/Source/shotwell/src/Commands.vala" - COMMAND_CLASS (duplicate_multiple_photos_command_parent_class)->undo (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command)); -#line 1133 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->dupes; -#line 1133 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_map_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 1134 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->failed = 0; -#line 1137 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = library_photo_global; -#line 1137 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed, self, 0); -#line 10867 "Commands.c" -} - - -static void -duplicate_multiple_photos_command_real_undo_on_source (MultipleDataSourceCommand* base, - DataSource* source) -{ - DuplicateMultiplePhotosCommand * self; - LibraryPhoto* photo = NULL; - LibraryPhoto* _tmp0_; - Marker* marker = NULL; - LibraryPhotoSourceCollection* _tmp1_; - GeeHashMap* _tmp2_; - gpointer _tmp3_; - LibraryPhoto* _tmp4_; - Marker* _tmp5_; - Marker* _tmp6_; - LibraryPhotoSourceCollection* _tmp7_; -#line 1140 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand); -#line 1140 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1141 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 1141 "/home/jens/Source/shotwell/src/Commands.vala" - photo = _tmp0_; -#line 1143 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = library_photo_global; -#line 1143 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->dupes; -#line 1143 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo); -#line 1143 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = (LibraryPhoto*) _tmp3_; -#line 1143 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject)); -#line 1143 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tmp5_; -#line 1143 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp4_); -#line 1143 "/home/jens/Source/shotwell/src/Commands.vala" - marker = _tmp6_; -#line 1144 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = library_photo_global; -#line 1144 "/home/jens/Source/shotwell/src/Commands.vala" - source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_SOURCE_COLLECTION, SourceCollection), marker, TRUE, NULL, NULL, NULL); -#line 1140 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (marker); -#line 1140 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (photo); -#line 10918 "Commands.c" -} - - -static void -duplicate_multiple_photos_command_class_init (DuplicateMultiplePhotosCommandClass * klass) -{ -#line 1080 "/home/jens/Source/shotwell/src/Commands.vala" - duplicate_multiple_photos_command_parent_class = g_type_class_peek_parent (klass); -#line 1080 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (DuplicateMultiplePhotosCommandPrivate)); -#line 1080 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) duplicate_multiple_photos_command_real_execute; -#line 1080 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) duplicate_multiple_photos_command_real_execute_on_source; -#line 1080 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) duplicate_multiple_photos_command_real_undo; -#line 1080 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) duplicate_multiple_photos_command_real_undo_on_source; -#line 1080 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = duplicate_multiple_photos_command_finalize; -#line 10939 "Commands.c" -} - - -static void -duplicate_multiple_photos_command_instance_init (DuplicateMultiplePhotosCommand * self) -{ - GeeHashMap* _tmp0_; -#line 1080 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = DUPLICATE_MULTIPLE_PHOTOS_COMMAND_GET_PRIVATE (self); -#line 1081 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1081 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->dupes = _tmp0_; -#line 1082 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->failed = 0; -#line 10955 "Commands.c" -} - - -static void -duplicate_multiple_photos_command_finalize (GObject * obj) -{ - DuplicateMultiplePhotosCommand * self; - LibraryPhotoSourceCollection* _tmp0_; - guint _tmp1_; -#line 1080 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DUPLICATE_MULTIPLE_PHOTOS_COMMAND, DuplicateMultiplePhotosCommand); -#line 1092 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = library_photo_global; -#line 1092 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE); -#line 1092 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _duplicate_multiple_photos_command_on_photo_destroyed_source_collection_item_destroyed, self); -#line 1081 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->dupes); -#line 1080 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (duplicate_multiple_photos_command_parent_class)->finalize (obj); -#line 10977 "Commands.c" -} - - -GType -duplicate_multiple_photos_command_get_type (void) -{ - static volatile gsize duplicate_multiple_photos_command_type_id__volatile = 0; - if (g_once_init_enter (&duplicate_multiple_photos_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DuplicateMultiplePhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) duplicate_multiple_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DuplicateMultiplePhotosCommand), 0, (GInstanceInitFunc) duplicate_multiple_photos_command_instance_init, NULL }; - GType duplicate_multiple_photos_command_type_id; - duplicate_multiple_photos_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_COMMAND, "DuplicateMultiplePhotosCommand", &g_define_type_info, 0); - g_once_init_leave (&duplicate_multiple_photos_command_type_id__volatile, duplicate_multiple_photos_command_type_id); - } - return duplicate_multiple_photos_command_type_id__volatile; -} - - -SetRatingSingleCommand* -set_rating_single_command_construct (GType object_type, - DataSource* source, - Rating rating) -{ - SetRatingSingleCommand * self = NULL; - const gchar* _tmp0_; -#line 1154 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 1155 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = resources_rating_label (rating); -#line 1155 "/home/jens/Source/shotwell/src/Commands.vala" - self = (SetRatingSingleCommand*) single_data_source_command_construct (object_type, source, _tmp0_, ""); -#line 1156 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->set_direct = TRUE; -#line 1157 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->new_rating = rating; -#line 1159 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->last_rating = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource)); -#line 1154 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 11016 "Commands.c" -} - - -SetRatingSingleCommand* -set_rating_single_command_new (DataSource* source, - Rating rating) -{ -#line 1154 "/home/jens/Source/shotwell/src/Commands.vala" - return set_rating_single_command_construct (TYPE_SET_RATING_SINGLE_COMMAND, source, rating); -#line 11026 "Commands.c" -} - - -SetRatingSingleCommand* -set_rating_single_command_construct_inc_dec (GType object_type, - DataSource* source, - gboolean is_incrementing) -{ - SetRatingSingleCommand * self = NULL; - const gchar* _tmp0_ = NULL; -#line 1162 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 1163 "/home/jens/Source/shotwell/src/Commands.vala" - if (is_incrementing) { -#line 1163 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = RESOURCES_INCREASE_RATING_LABEL; -#line 11043 "Commands.c" - } else { -#line 1164 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = RESOURCES_DECREASE_RATING_LABEL; -#line 11047 "Commands.c" - } -#line 1163 "/home/jens/Source/shotwell/src/Commands.vala" - self = (SetRatingSingleCommand*) single_data_source_command_construct (object_type, source, _tmp0_, ""); -#line 1165 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->set_direct = FALSE; -#line 1166 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->incrementing = is_incrementing; -#line 1168 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->last_rating = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1162 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 11059 "Commands.c" -} - - -SetRatingSingleCommand* -set_rating_single_command_new_inc_dec (DataSource* source, - gboolean is_incrementing) -{ -#line 1162 "/home/jens/Source/shotwell/src/Commands.vala" - return set_rating_single_command_construct_inc_dec (TYPE_SET_RATING_SINGLE_COMMAND, source, is_incrementing); -#line 11069 "Commands.c" -} - - -static void -set_rating_single_command_real_execute (Command* base) -{ - SetRatingSingleCommand * self; - gboolean _tmp0_; -#line 1171 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommand); -#line 1172 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->set_direct; -#line 1172 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp0_) { -#line 11084 "Commands.c" - DataSource* _tmp1_; - Rating _tmp2_; -#line 1173 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 1173 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->new_rating; -#line 1173 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE, MediaSource), _tmp2_); -#line 11093 "Commands.c" - } else { - gboolean _tmp3_; -#line 1175 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = self->priv->incrementing; -#line 1175 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp3_) { -#line 11100 "Commands.c" - DataSource* _tmp4_; -#line 1176 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 1176 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_increase_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 11106 "Commands.c" - } else { - DataSource* _tmp5_; -#line 1178 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 1178 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_decrease_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 11113 "Commands.c" - } - } -} - - -static void -set_rating_single_command_real_undo (Command* base) -{ - SetRatingSingleCommand * self; - DataSource* _tmp0_; - Rating _tmp1_; -#line 1182 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommand); -#line 1183 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)->source; -#line 1183 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->last_rating; -#line 1183 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_); -#line 11133 "Commands.c" -} - - -static void -set_rating_single_command_class_init (SetRatingSingleCommandClass * klass) -{ -#line 1148 "/home/jens/Source/shotwell/src/Commands.vala" - set_rating_single_command_parent_class = g_type_class_peek_parent (klass); -#line 1148 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (SetRatingSingleCommandPrivate)); -#line 1148 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) set_rating_single_command_real_execute; -#line 1148 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) set_rating_single_command_real_undo; -#line 1148 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = set_rating_single_command_finalize; -#line 11150 "Commands.c" -} - - -static void -set_rating_single_command_instance_init (SetRatingSingleCommand * self) -{ -#line 1148 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = SET_RATING_SINGLE_COMMAND_GET_PRIVATE (self); -#line 11159 "Commands.c" -} - - -static void -set_rating_single_command_finalize (GObject * obj) -{ - SetRatingSingleCommand * self; -#line 1148 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommand); -#line 1148 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (set_rating_single_command_parent_class)->finalize (obj); -#line 11171 "Commands.c" -} - - -GType -set_rating_single_command_get_type (void) -{ - static volatile gsize set_rating_single_command_type_id__volatile = 0; - if (g_once_init_enter (&set_rating_single_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SetRatingSingleCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_rating_single_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetRatingSingleCommand), 0, (GInstanceInitFunc) set_rating_single_command_instance_init, NULL }; - GType set_rating_single_command_type_id; - set_rating_single_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "SetRatingSingleCommand", &g_define_type_info, 0); - g_once_init_leave (&set_rating_single_command_type_id__volatile, set_rating_single_command_type_id); - } - return set_rating_single_command_type_id__volatile; -} - - -SetRatingCommand* -set_rating_command_construct (GType object_type, - GeeIterable* iter, - Rating rating) -{ - SetRatingCommand * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - const gchar* _tmp2_; -#line 1194 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL); -#line 1195 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = resources_rating_progress (rating); -#line 1195 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 1195 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = resources_rating_label (rating); -#line 1195 "/home/jens/Source/shotwell/src/Commands.vala" - self = (SetRatingCommand*) multiple_data_source_command_construct (object_type, iter, _tmp1_, _ ("Restoring previous rating"), _tmp2_, ""); -#line 1195 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp1_); -#line 1197 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->set_direct = TRUE; -#line 1198 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->new_rating = rating; -#line 1200 "/home/jens/Source/shotwell/src/Commands.vala" - set_rating_command_save_source_states (self, iter); -#line 1194 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 11218 "Commands.c" -} - - -SetRatingCommand* -set_rating_command_new (GeeIterable* iter, - Rating rating) -{ -#line 1194 "/home/jens/Source/shotwell/src/Commands.vala" - return set_rating_command_construct (TYPE_SET_RATING_COMMAND, iter, rating); -#line 11228 "Commands.c" -} - - -SetRatingCommand* -set_rating_command_construct_inc_dec (GType object_type, - GeeIterable* iter, - gboolean is_incrementing) -{ - SetRatingCommand * self = NULL; - const gchar* _tmp0_ = NULL; - const gchar* _tmp1_ = NULL; - const gchar* _tmp2_ = NULL; -#line 1203 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL); -#line 1205 "/home/jens/Source/shotwell/src/Commands.vala" - if (is_incrementing) { -#line 1205 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _ ("Increasing ratings"); -#line 11247 "Commands.c" - } else { -#line 1205 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _ ("Decreasing ratings"); -#line 11251 "Commands.c" - } -#line 1206 "/home/jens/Source/shotwell/src/Commands.vala" - if (is_incrementing) { -#line 1206 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _ ("Decreasing ratings"); -#line 11257 "Commands.c" - } else { -#line 1206 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _ ("Increasing ratings"); -#line 11261 "Commands.c" - } -#line 1207 "/home/jens/Source/shotwell/src/Commands.vala" - if (is_incrementing) { -#line 1207 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = RESOURCES_INCREASE_RATING_LABEL; -#line 11267 "Commands.c" - } else { -#line 1207 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = RESOURCES_DECREASE_RATING_LABEL; -#line 11271 "Commands.c" - } -#line 1204 "/home/jens/Source/shotwell/src/Commands.vala" - self = (SetRatingCommand*) multiple_data_source_command_construct (object_type, iter, _tmp0_, _tmp1_, _tmp2_, ""); -#line 1209 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->set_direct = FALSE; -#line 1210 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->incrementing = is_incrementing; -#line 1212 "/home/jens/Source/shotwell/src/Commands.vala" - set_rating_command_save_source_states (self, iter); -#line 1203 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 11283 "Commands.c" -} - - -SetRatingCommand* -set_rating_command_new_inc_dec (GeeIterable* iter, - gboolean is_incrementing) -{ -#line 1203 "/home/jens/Source/shotwell/src/Commands.vala" - return set_rating_command_construct_inc_dec (TYPE_SET_RATING_COMMAND, iter, is_incrementing); -#line 11293 "Commands.c" -} - - -static void -set_rating_command_save_source_states (SetRatingCommand* self, - GeeIterable* iter) -{ - GeeHashMap* _tmp0_; -#line 1215 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_SET_RATING_COMMAND (self)); -#line 1215 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (GEE_IS_ITERABLE (iter)); -#line 1216 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_hash_map_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_RATING, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1216 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->last_rating_map); -#line 1216 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->last_rating_map = _tmp0_; -#line 11312 "Commands.c" - { - GeeIterator* _view_it = NULL; - GeeIterator* _tmp1_; -#line 1218 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_iterable_iterator (iter); -#line 1218 "/home/jens/Source/shotwell/src/Commands.vala" - _view_it = _tmp1_; -#line 1218 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 11322 "Commands.c" - GeeIterator* _tmp2_; - DataView* view = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - DataSource* source = NULL; - DataView* _tmp5_; - DataSource* _tmp6_; - GeeHashMap* _tmp7_; - DataSource* _tmp8_; - DataSource* _tmp9_; -#line 1218 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _view_it; -#line 1218 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 1218 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 11339 "Commands.c" - } -#line 1218 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _view_it; -#line 1218 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 1218 "/home/jens/Source/shotwell/src/Commands.vala" - view = (DataView*) _tmp4_; -#line 1219 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = view; -#line 1219 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = data_view_get_source (_tmp5_); -#line 1219 "/home/jens/Source/shotwell/src/Commands.vala" - source = _tmp6_; -#line 1220 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = self->priv->last_rating_map; -#line 1220 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = source; -#line 1220 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = source; -#line 1220 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_, (gpointer) ((gintptr) media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_SOURCE, MediaSource)))); -#line 1218 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 1218 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (view); -#line 11365 "Commands.c" - } -#line 1218 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_view_it); -#line 11369 "Commands.c" - } -} - - -static void -set_rating_command_real_execute (Command* base) -{ - SetRatingCommand * self; -#line 1224 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RATING_COMMAND, SetRatingCommand); -#line 1225 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->action_count = 0; -#line 1226 "/home/jens/Source/shotwell/src/Commands.vala" - COMMAND_CLASS (set_rating_command_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command)); -#line 11384 "Commands.c" -} - - -static void -set_rating_command_real_undo (Command* base) -{ - SetRatingCommand * self; -#line 1229 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RATING_COMMAND, SetRatingCommand); -#line 1230 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->action_count = 0; -#line 1231 "/home/jens/Source/shotwell/src/Commands.vala" - COMMAND_CLASS (set_rating_command_parent_class)->undo (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command)); -#line 11398 "Commands.c" -} - - -static void -set_rating_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source) -{ - SetRatingCommand * self; - gboolean _tmp0_; -#line 1234 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RATING_COMMAND, SetRatingCommand); -#line 1234 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1235 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->set_direct; -#line 1235 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp0_) { -#line 11416 "Commands.c" - Rating _tmp1_; -#line 1236 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->new_rating; -#line 1236 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), _tmp1_); -#line 11422 "Commands.c" - } else { - gboolean _tmp2_; -#line 1238 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->incrementing; -#line 1238 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp2_) { -#line 1239 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_increase_rating (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource)); -#line 11431 "Commands.c" - } else { -#line 1241 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_decrease_rating (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource)); -#line 11435 "Commands.c" - } - } -} - - -static void -set_rating_command_real_undo_on_source (MultipleDataSourceCommand* base, - DataSource* source) -{ - SetRatingCommand * self; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 1245 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RATING_COMMAND, SetRatingCommand); -#line 1245 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1246 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->last_rating_map; -#line 1246 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), source); -#line 1246 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), (Rating) ((gintptr) _tmp1_)); -#line 11458 "Commands.c" -} - - -static void -set_rating_command_class_init (SetRatingCommandClass * klass) -{ -#line 1187 "/home/jens/Source/shotwell/src/Commands.vala" - set_rating_command_parent_class = g_type_class_peek_parent (klass); -#line 1187 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (SetRatingCommandPrivate)); -#line 1187 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) set_rating_command_real_execute; -#line 1187 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) set_rating_command_real_undo; -#line 1187 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) set_rating_command_real_execute_on_source; -#line 1187 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) set_rating_command_real_undo_on_source; -#line 1187 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = set_rating_command_finalize; -#line 11479 "Commands.c" -} - - -static void -set_rating_command_instance_init (SetRatingCommand * self) -{ -#line 1187 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = SET_RATING_COMMAND_GET_PRIVATE (self); -#line 1192 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->action_count = 0; -#line 11490 "Commands.c" -} - - -static void -set_rating_command_finalize (GObject * obj) -{ - SetRatingCommand * self; -#line 1187 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SET_RATING_COMMAND, SetRatingCommand); -#line 1188 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->last_rating_map); -#line 1187 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (set_rating_command_parent_class)->finalize (obj); -#line 11504 "Commands.c" -} - - -GType -set_rating_command_get_type (void) -{ - static volatile gsize set_rating_command_type_id__volatile = 0; - if (g_once_init_enter (&set_rating_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SetRatingCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_rating_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetRatingCommand), 0, (GInstanceInitFunc) set_rating_command_instance_init, NULL }; - GType set_rating_command_type_id; - set_rating_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_COMMAND, "SetRatingCommand", &g_define_type_info, 0); - g_once_init_leave (&set_rating_command_type_id__volatile, set_rating_command_type_id); - } - return set_rating_command_type_id__volatile; -} - - -SetRawDeveloperCommand* -set_raw_developer_command_construct (GType object_type, - GeeIterable* iter, - RawDeveloper developer) -{ - SetRawDeveloperCommand * self = NULL; -#line 1255 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL); -#line 1256 "/home/jens/Source/shotwell/src/Commands.vala" - self = (SetRawDeveloperCommand*) multiple_data_source_command_construct (object_type, iter, _ ("Setting RAW developer"), _ ("Restoring previous RAW developer"), _ ("Set Developer"), ""); -#line 1258 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->new_developer = developer; -#line 1259 "/home/jens/Source/shotwell/src/Commands.vala" - set_raw_developer_command_save_source_states (self, iter); -#line 1255 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 11538 "Commands.c" -} - - -SetRawDeveloperCommand* -set_raw_developer_command_new (GeeIterable* iter, - RawDeveloper developer) -{ -#line 1255 "/home/jens/Source/shotwell/src/Commands.vala" - return set_raw_developer_command_construct (TYPE_SET_RAW_DEVELOPER_COMMAND, iter, developer); -#line 11548 "Commands.c" -} - - -static void -set_raw_developer_command_save_source_states (SetRawDeveloperCommand* self, - GeeIterable* iter) -{ - GeeHashMap* _tmp0_; - GeeHashMap* _tmp1_; -#line 1262 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_SET_RAW_DEVELOPER_COMMAND (self)); -#line 1262 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (GEE_IS_ITERABLE (iter)); -#line 1263 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_hash_map_new (TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_RAW_DEVELOPER, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1263 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->last_developer_map); -#line 1263 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->last_developer_map = _tmp0_; -#line 1264 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_hash_map_new (TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_PHOTO_TRANSFORMATION_STATE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1264 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->last_transformation_map); -#line 1264 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->last_transformation_map = _tmp1_; -#line 11574 "Commands.c" - { - GeeIterator* _view_it = NULL; - GeeIterator* _tmp2_; -#line 1266 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = gee_iterable_iterator (iter); -#line 1266 "/home/jens/Source/shotwell/src/Commands.vala" - _view_it = _tmp2_; -#line 1266 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 11584 "Commands.c" - GeeIterator* _tmp3_; - DataView* view = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - Photo* photo = NULL; - DataView* _tmp6_; - DataSource* _tmp7_; - Photo* _tmp8_; - Photo* _tmp9_; -#line 1266 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _view_it; -#line 1266 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 1266 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 11600 "Commands.c" - } -#line 1266 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _view_it; -#line 1266 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 1266 "/home/jens/Source/shotwell/src/Commands.vala" - view = (DataView*) _tmp5_; -#line 1267 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = view; -#line 1267 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = data_view_get_source (_tmp6_); -#line 1267 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_PHOTO) ? ((Photo*) _tmp7_) : NULL; -#line 1267 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp8_ == NULL) { -#line 1267 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp7_); -#line 11618 "Commands.c" - } -#line 1267 "/home/jens/Source/shotwell/src/Commands.vala" - photo = _tmp8_; -#line 1268 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = photo; -#line 1268 "/home/jens/Source/shotwell/src/Commands.vala" - if (set_raw_developer_command_is_raw_photo (self, _tmp9_)) { -#line 11626 "Commands.c" - GeeHashMap* _tmp10_; - Photo* _tmp11_; - Photo* _tmp12_; - GeeHashMap* _tmp13_; - Photo* _tmp14_; - Photo* _tmp15_; - PhotoTransformationState* _tmp16_; - PhotoTransformationState* _tmp17_; -#line 1269 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = self->priv->last_developer_map; -#line 1269 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = photo; -#line 1269 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = photo; -#line 1269 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp11_, (gpointer) ((gintptr) photo_get_raw_developer (_tmp12_))); -#line 1270 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = self->priv->last_transformation_map; -#line 1270 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = photo; -#line 1270 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = photo; -#line 1270 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = photo_save_transformation_state (_tmp15_); -#line 1270 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = _tmp16_; -#line 1270 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp14_, _tmp17_); -#line 1270 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp17_); -#line 11657 "Commands.c" - } -#line 1266 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (photo); -#line 1266 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (view); -#line 11663 "Commands.c" - } -#line 1266 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_view_it); -#line 11667 "Commands.c" - } -} - - -static void -set_raw_developer_command_real_execute (Command* base) -{ - SetRawDeveloperCommand * self; -#line 1275 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand); -#line 1276 "/home/jens/Source/shotwell/src/Commands.vala" - COMMAND_CLASS (set_raw_developer_command_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command)); -#line 11680 "Commands.c" -} - - -static void -set_raw_developer_command_real_undo (Command* base) -{ - SetRawDeveloperCommand * self; -#line 1279 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand); -#line 1280 "/home/jens/Source/shotwell/src/Commands.vala" - COMMAND_CLASS (set_raw_developer_command_parent_class)->undo (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command)); -#line 11692 "Commands.c" -} - - -static void -set_raw_developer_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source) -{ - SetRawDeveloperCommand * self; - Photo* photo = NULL; - Photo* _tmp0_; - Photo* _tmp1_; -#line 1283 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand); -#line 1283 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1284 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO) ? ((Photo*) source) : NULL); -#line 1284 "/home/jens/Source/shotwell/src/Commands.vala" - photo = _tmp0_; -#line 1285 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = photo; -#line 1285 "/home/jens/Source/shotwell/src/Commands.vala" - if (set_raw_developer_command_is_raw_photo (self, _tmp1_)) { -#line 11716 "Commands.c" - gboolean _tmp2_ = FALSE; - RawDeveloper _tmp3_; -#line 1286 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = self->priv->new_developer; -#line 1286 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp3_ == RAW_DEVELOPER_CAMERA) { -#line 11723 "Commands.c" - Photo* _tmp4_; -#line 1286 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = photo; -#line 1286 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = !photo_is_raw_developer_available (_tmp4_, RAW_DEVELOPER_CAMERA); -#line 11729 "Commands.c" - } else { -#line 1286 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = FALSE; -#line 11733 "Commands.c" - } -#line 1286 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp2_) { -#line 11737 "Commands.c" - Photo* _tmp5_; -#line 1287 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = photo; -#line 1287 "/home/jens/Source/shotwell/src/Commands.vala" - photo_set_raw_developer (_tmp5_, RAW_DEVELOPER_EMBEDDED, TRUE); -#line 11743 "Commands.c" - } else { - Photo* _tmp6_; - RawDeveloper _tmp7_; -#line 1289 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = photo; -#line 1289 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = self->priv->new_developer; -#line 1289 "/home/jens/Source/shotwell/src/Commands.vala" - photo_set_raw_developer (_tmp6_, _tmp7_, TRUE); -#line 11753 "Commands.c" - } - } -#line 1283 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (photo); -#line 11758 "Commands.c" -} - - -static void -set_raw_developer_command_real_undo_on_source (MultipleDataSourceCommand* base, - DataSource* source) -{ - SetRawDeveloperCommand * self; - Photo* photo = NULL; - Photo* _tmp0_; - Photo* _tmp1_; -#line 1293 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand); -#line 1293 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1294 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO) ? ((Photo*) source) : NULL); -#line 1294 "/home/jens/Source/shotwell/src/Commands.vala" - photo = _tmp0_; -#line 1295 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = photo; -#line 1295 "/home/jens/Source/shotwell/src/Commands.vala" - if (set_raw_developer_command_is_raw_photo (self, _tmp1_)) { -#line 11782 "Commands.c" - Photo* _tmp2_; - GeeHashMap* _tmp3_; - Photo* _tmp4_; - gpointer _tmp5_; - Photo* _tmp6_; - GeeHashMap* _tmp7_; - Photo* _tmp8_; - gpointer _tmp9_; - PhotoTransformationState* _tmp10_; -#line 1296 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = photo; -#line 1296 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = self->priv->last_developer_map; -#line 1296 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = photo; -#line 1296 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp4_); -#line 1296 "/home/jens/Source/shotwell/src/Commands.vala" - photo_set_raw_developer (_tmp2_, (RawDeveloper) ((gintptr) _tmp5_), TRUE); -#line 1297 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = photo; -#line 1297 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = self->priv->last_transformation_map; -#line 1297 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = photo; -#line 1297 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_); -#line 1297 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = (PhotoTransformationState*) _tmp9_; -#line 1297 "/home/jens/Source/shotwell/src/Commands.vala" - photo_load_transformation_state (_tmp6_, _tmp10_); -#line 1297 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp10_); -#line 11816 "Commands.c" - } -#line 1293 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (photo); -#line 11820 "Commands.c" -} - - -static gboolean -set_raw_developer_command_is_raw_photo (SetRawDeveloperCommand* self, - Photo* photo) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; -#line 1301 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_SET_RAW_DEVELOPER_COMMAND (self), FALSE); -#line 1301 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail ((photo == NULL) || IS_PHOTO (photo), FALSE); -#line 1302 "/home/jens/Source/shotwell/src/Commands.vala" - if (photo != NULL) { -#line 1302 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = photo_get_master_file_format (photo) == PHOTO_FILE_FORMAT_RAW; -#line 11838 "Commands.c" - } else { -#line 1302 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = FALSE; -#line 11842 "Commands.c" - } -#line 1302 "/home/jens/Source/shotwell/src/Commands.vala" - result = _tmp0_; -#line 1302 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 11848 "Commands.c" -} - - -static void -set_raw_developer_command_class_init (SetRawDeveloperCommandClass * klass) -{ -#line 1250 "/home/jens/Source/shotwell/src/Commands.vala" - set_raw_developer_command_parent_class = g_type_class_peek_parent (klass); -#line 1250 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (SetRawDeveloperCommandPrivate)); -#line 1250 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) set_raw_developer_command_real_execute; -#line 1250 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) set_raw_developer_command_real_undo; -#line 1250 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) set_raw_developer_command_real_execute_on_source; -#line 1250 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) set_raw_developer_command_real_undo_on_source; -#line 1250 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = set_raw_developer_command_finalize; -#line 11869 "Commands.c" -} - - -static void -set_raw_developer_command_instance_init (SetRawDeveloperCommand * self) -{ -#line 1250 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = SET_RAW_DEVELOPER_COMMAND_GET_PRIVATE (self); -#line 11878 "Commands.c" -} - - -static void -set_raw_developer_command_finalize (GObject * obj) -{ - SetRawDeveloperCommand * self; -#line 1250 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand); -#line 1251 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->last_developer_map); -#line 1252 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->last_transformation_map); -#line 1250 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (set_raw_developer_command_parent_class)->finalize (obj); -#line 11894 "Commands.c" -} - - -GType -set_raw_developer_command_get_type (void) -{ - static volatile gsize set_raw_developer_command_type_id__volatile = 0; - if (g_once_init_enter (&set_raw_developer_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SetRawDeveloperCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_raw_developer_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetRawDeveloperCommand), 0, (GInstanceInitFunc) set_raw_developer_command_instance_init, NULL }; - GType set_raw_developer_command_type_id; - set_raw_developer_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_COMMAND, "SetRawDeveloperCommand", &g_define_type_info, 0); - g_once_init_leave (&set_raw_developer_command_type_id__volatile, set_raw_developer_command_type_id); - } - return set_raw_developer_command_type_id__volatile; -} - - -AdjustDateTimePhotoCommand* -adjust_date_time_photo_command_construct (GType object_type, - Dateable* dateable, - gint64 time_shift, - gboolean modify_original) -{ - AdjustDateTimePhotoCommand * self = NULL; - Dateable* _tmp0_; -#line 1312 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_DATEABLE (dateable), NULL); -#line 1313 "/home/jens/Source/shotwell/src/Commands.vala" - self = (AdjustDateTimePhotoCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (dateable, TYPE_DATA_SOURCE, DataSource), RESOURCES_ADJUST_DATE_TIME_LABEL, ""); -#line 1315 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (dateable); -#line 1315 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->dateable); -#line 1315 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->dateable = _tmp0_; -#line 1316 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->time_shift = time_shift; -#line 1317 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->modify_original = modify_original; -#line 1312 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 11936 "Commands.c" -} - - -AdjustDateTimePhotoCommand* -adjust_date_time_photo_command_new (Dateable* dateable, - gint64 time_shift, - gboolean modify_original) -{ -#line 1312 "/home/jens/Source/shotwell/src/Commands.vala" - return adjust_date_time_photo_command_construct (TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, dateable, time_shift, modify_original); -#line 11947 "Commands.c" -} - - -static void -adjust_date_time_photo_command_real_execute (Command* base) -{ - AdjustDateTimePhotoCommand * self; - Dateable* _tmp0_; - Dateable* _tmp1_; - gint64 _tmp2_; - Dateable* _tmp3_; - Event* _tmp4_; - ViewCollection* all_events = NULL; - ViewCollection* _tmp5_; - Dateable* _tmp21_; - ViewCollection* _tmp22_; -#line 1320 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommand); -#line 1321 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->dateable; -#line 1321 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->dateable; -#line 1321 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->time_shift; -#line 1321 "/home/jens/Source/shotwell/src/Commands.vala" - adjust_date_time_photo_command_set_time (self, _tmp0_, dateable_get_exposure_time (_tmp1_) + ((time_t) _tmp2_)); -#line 1323 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = self->priv->dateable; -#line 1323 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = media_source_get_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1323 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->prev_event); -#line 1323 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->prev_event = _tmp4_; -#line 1325 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = view_collection_new ("tmp"); -#line 1325 "/home/jens/Source/shotwell/src/Commands.vala" - all_events = _tmp5_; -#line 11986 "Commands.c" - { - GeeIterator* _dobj_it = NULL; - EventSourceCollection* _tmp6_; - GeeCollection* _tmp7_; - GeeCollection* _tmp8_; - GeeIterator* _tmp9_; - GeeIterator* _tmp10_; -#line 1327 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = event_global; -#line 1327 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1327 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _tmp7_; -#line 1327 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1327 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = _tmp9_; -#line 1327 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp8_); -#line 1327 "/home/jens/Source/shotwell/src/Commands.vala" - _dobj_it = _tmp10_; -#line 1327 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 12010 "Commands.c" - GeeIterator* _tmp11_; - DataObject* dobj = NULL; - GeeIterator* _tmp12_; - gpointer _tmp13_; - Event* event = NULL; - DataObject* _tmp14_; - Event* _tmp15_; - Event* _tmp16_; -#line 1327 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _dobj_it; -#line 1327 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp11_)) { -#line 1327 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 12025 "Commands.c" - } -#line 1327 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = _dobj_it; -#line 1327 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = gee_iterator_get (_tmp12_); -#line 1327 "/home/jens/Source/shotwell/src/Commands.vala" - dobj = (DataObject*) _tmp13_; -#line 1328 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = dobj; -#line 1328 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, TYPE_EVENT) ? ((Event*) _tmp14_) : NULL); -#line 1328 "/home/jens/Source/shotwell/src/Commands.vala" - event = _tmp15_; -#line 1329 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = event; -#line 1329 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp16_ != NULL) { -#line 12043 "Commands.c" - ViewCollection* _tmp17_; - Event* _tmp18_; - EventView* _tmp19_; - EventView* _tmp20_; -#line 1330 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = all_events; -#line 1330 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = event; -#line 1330 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = event_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_EVENT_SOURCE, EventSource)); -#line 1330 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = _tmp19_; -#line 1330 "/home/jens/Source/shotwell/src/Commands.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_OBJECT, DataObject)); -#line 1330 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp20_); -#line 12060 "Commands.c" - } -#line 1327 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (event); -#line 1327 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (dobj); -#line 12066 "Commands.c" - } -#line 1327 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_dobj_it); -#line 12070 "Commands.c" - } -#line 1333 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = self->priv->dateable; -#line 1333 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = all_events; -#line 1333 "/home/jens/Source/shotwell/src/Commands.vala" - event_generate_single_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_MEDIA_SOURCE, MediaSource), _tmp22_, NULL); -#line 1320 "/home/jens/Source/shotwell/src/Commands.vala" - _data_collection_unref0 (all_events); -#line 12080 "Commands.c" -} - - -static void -adjust_date_time_photo_command_real_undo (Command* base) -{ - AdjustDateTimePhotoCommand * self; - Dateable* _tmp0_; - Dateable* _tmp1_; - gint64 _tmp2_; - Dateable* _tmp3_; - Event* _tmp4_; -#line 1336 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommand); -#line 1337 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->dateable; -#line 1337 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->dateable; -#line 1337 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->time_shift; -#line 1337 "/home/jens/Source/shotwell/src/Commands.vala" - adjust_date_time_photo_command_set_time (self, _tmp0_, dateable_get_exposure_time (_tmp1_) - ((time_t) _tmp2_)); -#line 1339 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = self->priv->dateable; -#line 1339 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->prev_event; -#line 1339 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_set_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource), _tmp4_); -#line 12109 "Commands.c" -} - - -static void -adjust_date_time_photo_command_set_time (AdjustDateTimePhotoCommand* self, - Dateable* dateable, - time_t exposure_time) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; - GError * _inner_error_ = NULL; -#line 1342 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_ADJUST_DATE_TIME_PHOTO_COMMAND (self)); -#line 1342 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATEABLE (dateable)); -#line 1343 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->modify_original; -#line 1343 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp1_) { -#line 1343 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_TYPE (dateable, TYPE_PHOTO); -#line 12131 "Commands.c" - } else { -#line 1343 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = FALSE; -#line 12135 "Commands.c" - } -#line 1343 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp0_) { -#line 12139 "Commands.c" - { -#line 1345 "/home/jens/Source/shotwell/src/Commands.vala" - photo_set_exposure_time_persistent (G_TYPE_CHECK_INSTANCE_CAST (dateable, TYPE_PHOTO, Photo), exposure_time, &_inner_error_); -#line 1345 "/home/jens/Source/shotwell/src/Commands.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12145 "Commands.c" - goto __catch467_g_error; - } - } - goto __finally467; - __catch467_g_error: - { - GError* err = NULL; -#line 1344 "/home/jens/Source/shotwell/src/Commands.vala" - err = _inner_error_; -#line 1344 "/home/jens/Source/shotwell/src/Commands.vala" - _inner_error_ = NULL; -#line 1347 "/home/jens/Source/shotwell/src/Commands.vala" - app_window_error_message (_ ("Original photo could not be adjusted."), NULL); -#line 1344 "/home/jens/Source/shotwell/src/Commands.vala" - _g_error_free0 (err); -#line 12161 "Commands.c" - } - __finally467: -#line 1344 "/home/jens/Source/shotwell/src/Commands.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1344 "/home/jens/Source/shotwell/src/Commands.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1344 "/home/jens/Source/shotwell/src/Commands.vala" - g_clear_error (&_inner_error_); -#line 1344 "/home/jens/Source/shotwell/src/Commands.vala" - return; -#line 12172 "Commands.c" - } - } else { -#line 1350 "/home/jens/Source/shotwell/src/Commands.vala" - dateable_set_exposure_time (dateable, exposure_time); -#line 12177 "Commands.c" - } -} - - -static void -adjust_date_time_photo_command_class_init (AdjustDateTimePhotoCommandClass * klass) -{ -#line 1306 "/home/jens/Source/shotwell/src/Commands.vala" - adjust_date_time_photo_command_parent_class = g_type_class_peek_parent (klass); -#line 1306 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (AdjustDateTimePhotoCommandPrivate)); -#line 1306 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) adjust_date_time_photo_command_real_execute; -#line 1306 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) adjust_date_time_photo_command_real_undo; -#line 1306 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = adjust_date_time_photo_command_finalize; -#line 12195 "Commands.c" -} - - -static void -adjust_date_time_photo_command_instance_init (AdjustDateTimePhotoCommand * self) -{ -#line 1306 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = ADJUST_DATE_TIME_PHOTO_COMMAND_GET_PRIVATE (self); -#line 12204 "Commands.c" -} - - -static void -adjust_date_time_photo_command_finalize (GObject * obj) -{ - AdjustDateTimePhotoCommand * self; -#line 1306 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommand); -#line 1307 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->dateable); -#line 1308 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->prev_event); -#line 1306 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (adjust_date_time_photo_command_parent_class)->finalize (obj); -#line 12220 "Commands.c" -} - - -GType -adjust_date_time_photo_command_get_type (void) -{ - static volatile gsize adjust_date_time_photo_command_type_id__volatile = 0; - if (g_once_init_enter (&adjust_date_time_photo_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (AdjustDateTimePhotoCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) adjust_date_time_photo_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AdjustDateTimePhotoCommand), 0, (GInstanceInitFunc) adjust_date_time_photo_command_instance_init, NULL }; - GType adjust_date_time_photo_command_type_id; - adjust_date_time_photo_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "AdjustDateTimePhotoCommand", &g_define_type_info, 0); - g_once_init_leave (&adjust_date_time_photo_command_type_id__volatile, adjust_date_time_photo_command_type_id); - } - return adjust_date_time_photo_command_type_id__volatile; -} - - -static time_t* -_time_t_dup (time_t* self) -{ - time_t* dup; -#line 1384 "/home/jens/Source/shotwell/src/Commands.vala" - dup = g_new0 (time_t, 1); -#line 1384 "/home/jens/Source/shotwell/src/Commands.vala" - memcpy (dup, self, sizeof (time_t)); -#line 1384 "/home/jens/Source/shotwell/src/Commands.vala" - return dup; -#line 12248 "Commands.c" -} - - -static gpointer -__time_t_dup0 (gpointer self) -{ -#line 1384 "/home/jens/Source/shotwell/src/Commands.vala" - return self ? _time_t_dup (self) : NULL; -#line 12257 "Commands.c" -} - - -AdjustDateTimePhotosCommand* -adjust_date_time_photos_command_construct (GType object_type, - GeeIterable* iter, - gint64 time_shift, - gboolean keep_relativity, - gboolean modify_originals) -{ - AdjustDateTimePhotosCommand * self = NULL; - GeeHashMap* _tmp0_; - GeeHashMap* _tmp22_; -#line 1366 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (iter), NULL); -#line 1368 "/home/jens/Source/shotwell/src/Commands.vala" - self = (AdjustDateTimePhotosCommand*) multiple_data_source_command_construct (object_type, iter, _ ("Adjusting Date and Time"), _ ("Undoing Date and Time Adjustment"), RESOURCES_ADJUST_DATE_TIME_LABEL, ""); -#line 1371 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->time_shift = time_shift; -#line 1372 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->keep_relativity = keep_relativity; -#line 1373 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->modify_originals = modify_originals; -#line 1377 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_hash_map_new (TYPE_DATEABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_EVENT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1377 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->prev_events); -#line 1377 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->prev_events = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MAP, GeeMap); -#line 12287 "Commands.c" - { - GeeIterator* _view_it = NULL; - GeeIterator* _tmp1_; -#line 1380 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_iterable_iterator (iter); -#line 1380 "/home/jens/Source/shotwell/src/Commands.vala" - _view_it = _tmp1_; -#line 1380 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 12297 "Commands.c" - GeeIterator* _tmp2_; - DataView* view = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - GeeMap* _tmp5_; - DataView* _tmp6_; - DataSource* _tmp7_; - Dateable* _tmp8_; - Dateable* _tmp9_; - DataView* _tmp10_; - DataSource* _tmp11_; - MediaSource* _tmp12_; - MediaSource* _tmp13_; - Event* _tmp14_; - Event* _tmp15_; - time_t* _tmp16_; -#line 1380 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _view_it; -#line 1380 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 1380 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 12320 "Commands.c" - } -#line 1380 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _view_it; -#line 1380 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 1380 "/home/jens/Source/shotwell/src/Commands.vala" - view = (DataView*) _tmp4_; -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = self->priv->prev_events; -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = view; -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = data_view_get_source (_tmp6_); -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_DATEABLE) ? ((Dateable*) _tmp7_) : NULL; -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp8_ == NULL) { -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp7_); -#line 12340 "Commands.c" - } -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = _tmp8_; -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = view; -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = data_view_get_source (_tmp10_); -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_MEDIA_SOURCE) ? ((MediaSource*) _tmp11_) : NULL; -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp12_ == NULL) { -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp11_); -#line 12354 "Commands.c" - } -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = _tmp12_; -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = media_source_get_event (_tmp13_); -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = _tmp14_; -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - gee_map_set (_tmp5_, _tmp9_, _tmp15_); -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp15_); -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp13_); -#line 1381 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp9_); -#line 1383 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = self->priv->new_time; -#line 1383 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp16_ == NULL) { -#line 12374 "Commands.c" - DataView* _tmp17_; - DataSource* _tmp18_; - Dateable* _tmp19_; - time_t _tmp20_; - time_t* _tmp21_; -#line 1384 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = view; -#line 1384 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = data_view_get_source (_tmp17_); -#line 1384 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATEABLE, Dateable); -#line 1384 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = dateable_get_exposure_time (_tmp19_) + ((time_t) time_shift); -#line 1384 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = __time_t_dup0 (&_tmp20_); -#line 1384 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->new_time); -#line 1384 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->new_time = _tmp21_; -#line 1384 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp19_); -#line 1386 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (view); -#line 1386 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 12400 "Commands.c" - } -#line 1380 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (view); -#line 12404 "Commands.c" - } -#line 1380 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_view_it); -#line 12408 "Commands.c" - } -#line 1390 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = gee_hash_map_new (TYPE_DATEABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_INVALID, (GBoxedCopyFunc) _time_t_dup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1390 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->old_times); -#line 1390 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->old_times = _tmp22_; -#line 1366 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 12418 "Commands.c" -} - - -AdjustDateTimePhotosCommand* -adjust_date_time_photos_command_new (GeeIterable* iter, - gint64 time_shift, - gboolean keep_relativity, - gboolean modify_originals) -{ -#line 1366 "/home/jens/Source/shotwell/src/Commands.vala" - return adjust_date_time_photos_command_construct (TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, iter, time_shift, keep_relativity, modify_originals); -#line 12430 "Commands.c" -} - - -static void -adjust_date_time_photos_command_real_execute (Command* base) -{ - AdjustDateTimePhotosCommand * self; - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; - gint _tmp2_; - gint _tmp3_; - ViewCollection* all_events = NULL; - ViewCollection* _tmp8_; -#line 1393 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand); -#line 1394 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_array_list_new (TYPE_DATEABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1394 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->error_list); -#line 1394 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->error_list = _tmp0_; -#line 1395 "/home/jens/Source/shotwell/src/Commands.vala" - COMMAND_CLASS (adjust_date_time_photos_command_parent_class)->execute (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command)); -#line 1397 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->error_list; -#line 1397 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1397 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 1397 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp3_ > 0) { -#line 12462 "Commands.c" - GeeArrayList* _tmp4_; - GeeArrayList* _tmp5_; - gint _tmp6_; - gint _tmp7_; -#line 1398 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->error_list; -#line 1398 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = self->priv->error_list; -#line 1398 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1398 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _tmp6_; -#line 1398 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_object_error_dialog (_tmp4_, ngettext ("One original photo could not be adjusted.", "The following original photos could not be adjusted.", (gulong) _tmp7_), _ ("Time Adjustment Error")); -#line 12477 "Commands.c" - } -#line 1404 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = view_collection_new ("tmp"); -#line 1404 "/home/jens/Source/shotwell/src/Commands.vala" - all_events = _tmp8_; -#line 12483 "Commands.c" - { - GeeIterator* _d_it = NULL; - GeeMap* _tmp9_; - GeeSet* _tmp10_; - GeeSet* _tmp11_; - GeeSet* _tmp12_; - GeeIterator* _tmp13_; - GeeIterator* _tmp14_; -#line 1406 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = self->priv->prev_events; -#line 1406 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = gee_map_get_keys (_tmp9_); -#line 1406 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _tmp10_; -#line 1406 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = _tmp11_; -#line 1406 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1406 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = _tmp13_; -#line 1406 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp12_); -#line 1406 "/home/jens/Source/shotwell/src/Commands.vala" - _d_it = _tmp14_; -#line 1406 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 12510 "Commands.c" - GeeIterator* _tmp15_; - Dateable* d = NULL; - GeeIterator* _tmp16_; - gpointer _tmp17_; - Dateable* _tmp33_; - ViewCollection* _tmp34_; -#line 1406 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = _d_it; -#line 1406 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp15_)) { -#line 1406 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 12523 "Commands.c" - } -#line 1406 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = _d_it; -#line 1406 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = gee_iterator_get (_tmp16_); -#line 1406 "/home/jens/Source/shotwell/src/Commands.vala" - d = (Dateable*) _tmp17_; -#line 12531 "Commands.c" - { - GeeIterator* _dobj_it = NULL; - EventSourceCollection* _tmp18_; - GeeCollection* _tmp19_; - GeeCollection* _tmp20_; - GeeIterator* _tmp21_; - GeeIterator* _tmp22_; -#line 1407 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = event_global; -#line 1407 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1407 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = _tmp19_; -#line 1407 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1407 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = _tmp21_; -#line 1407 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp20_); -#line 1407 "/home/jens/Source/shotwell/src/Commands.vala" - _dobj_it = _tmp22_; -#line 1407 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 12555 "Commands.c" - GeeIterator* _tmp23_; - DataObject* dobj = NULL; - GeeIterator* _tmp24_; - gpointer _tmp25_; - Event* event = NULL; - DataObject* _tmp26_; - Event* _tmp27_; - Event* _tmp28_; -#line 1407 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = _dobj_it; -#line 1407 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp23_)) { -#line 1407 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 12570 "Commands.c" - } -#line 1407 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = _dobj_it; -#line 1407 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = gee_iterator_get (_tmp24_); -#line 1407 "/home/jens/Source/shotwell/src/Commands.vala" - dobj = (DataObject*) _tmp25_; -#line 1408 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = dobj; -#line 1408 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp26_, TYPE_EVENT) ? ((Event*) _tmp26_) : NULL); -#line 1408 "/home/jens/Source/shotwell/src/Commands.vala" - event = _tmp27_; -#line 1409 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = event; -#line 1409 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp28_ != NULL) { -#line 12588 "Commands.c" - ViewCollection* _tmp29_; - Event* _tmp30_; - EventView* _tmp31_; - EventView* _tmp32_; -#line 1410 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = all_events; -#line 1410 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = event; -#line 1410 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp31_ = event_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_EVENT_SOURCE, EventSource)); -#line 1410 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp32_ = _tmp31_; -#line 1410 "/home/jens/Source/shotwell/src/Commands.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_DATA_OBJECT, DataObject)); -#line 1410 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp32_); -#line 12605 "Commands.c" - } -#line 1407 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (event); -#line 1407 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (dobj); -#line 12611 "Commands.c" - } -#line 1407 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_dobj_it); -#line 12615 "Commands.c" - } -#line 1413 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp33_ = d; -#line 1413 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp34_ = all_events; -#line 1413 "/home/jens/Source/shotwell/src/Commands.vala" - event_generate_single_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_MEDIA_SOURCE, MediaSource), _tmp34_, NULL); -#line 1406 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (d); -#line 12625 "Commands.c" - } -#line 1406 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_d_it); -#line 12629 "Commands.c" - } -#line 1393 "/home/jens/Source/shotwell/src/Commands.vala" - _data_collection_unref0 (all_events); -#line 12633 "Commands.c" -} - - -static void -adjust_date_time_photos_command_real_undo (Command* base) -{ - AdjustDateTimePhotosCommand * self; - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; - gint _tmp2_; - gint _tmp3_; -#line 1417 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand); -#line 1418 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_array_list_new (TYPE_DATEABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1418 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->error_list); -#line 1418 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->error_list = _tmp0_; -#line 1419 "/home/jens/Source/shotwell/src/Commands.vala" - COMMAND_CLASS (adjust_date_time_photos_command_parent_class)->undo (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand), TYPE_COMMAND, Command)); -#line 1421 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->error_list; -#line 1421 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1421 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 1421 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp3_ > 0) { -#line 12663 "Commands.c" - GeeArrayList* _tmp4_; - GeeArrayList* _tmp5_; - gint _tmp6_; - gint _tmp7_; -#line 1422 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->error_list; -#line 1422 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = self->priv->error_list; -#line 1422 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1422 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _tmp6_; -#line 1422 "/home/jens/Source/shotwell/src/Commands.vala" - multiple_object_error_dialog (_tmp4_, ngettext ("Time adjustments could not be undone on the following photo file.", "Time adjustments could not be undone on the following photo files.", (gulong) _tmp7_), _ ("Time Adjustment Error")); -#line 12678 "Commands.c" - } -} - - -static void -adjust_date_time_photos_command_set_time (AdjustDateTimePhotosCommand* self, - Dateable* dateable, - time_t exposure_time) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; - GError * _inner_error_ = NULL; -#line 1429 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_ADJUST_DATE_TIME_PHOTOS_COMMAND (self)); -#line 1429 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATEABLE (dateable)); -#line 1433 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->modify_originals; -#line 1433 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp1_) { -#line 1433 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_TYPE (dateable, TYPE_PHOTO); -#line 12701 "Commands.c" - } else { -#line 1433 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = FALSE; -#line 12705 "Commands.c" - } -#line 1433 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp0_) { -#line 12709 "Commands.c" - { -#line 1435 "/home/jens/Source/shotwell/src/Commands.vala" - photo_set_exposure_time_persistent (G_TYPE_CHECK_INSTANCE_CAST (dateable, TYPE_PHOTO, Photo), exposure_time, &_inner_error_); -#line 1435 "/home/jens/Source/shotwell/src/Commands.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12715 "Commands.c" - goto __catch468_g_error; - } - } - goto __finally468; - __catch468_g_error: - { - GError* err = NULL; - GeeArrayList* _tmp2_; -#line 1434 "/home/jens/Source/shotwell/src/Commands.vala" - err = _inner_error_; -#line 1434 "/home/jens/Source/shotwell/src/Commands.vala" - _inner_error_ = NULL; -#line 1437 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->error_list; -#line 1437 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), dateable); -#line 1434 "/home/jens/Source/shotwell/src/Commands.vala" - _g_error_free0 (err); -#line 12734 "Commands.c" - } - __finally468: -#line 1434 "/home/jens/Source/shotwell/src/Commands.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1434 "/home/jens/Source/shotwell/src/Commands.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1434 "/home/jens/Source/shotwell/src/Commands.vala" - g_clear_error (&_inner_error_); -#line 1434 "/home/jens/Source/shotwell/src/Commands.vala" - return; -#line 12745 "Commands.c" - } - } else { -#line 1442 "/home/jens/Source/shotwell/src/Commands.vala" - dateable_set_exposure_time (dateable, exposure_time); -#line 12750 "Commands.c" - } -} - - -static void -adjust_date_time_photos_command_real_execute_on_source (MultipleDataSourceCommand* base, - DataSource* source) -{ - AdjustDateTimePhotosCommand * self; - Dateable* dateable = NULL; - Dateable* _tmp0_; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_; - ViewCollection* all_events = NULL; - ViewCollection* _tmp13_; - Dateable* _tmp29_; - ViewCollection* _tmp30_; -#line 1446 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand); -#line 1446 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1447 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATEABLE, Dateable)); -#line 1447 "/home/jens/Source/shotwell/src/Commands.vala" - dateable = _tmp0_; -#line 1449 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->keep_relativity; -#line 1449 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp2_) { -#line 12780 "Commands.c" - Dateable* _tmp3_; -#line 1449 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = dateable; -#line 1449 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = dateable_get_exposure_time (_tmp3_) != ((time_t) 0); -#line 12786 "Commands.c" - } else { -#line 1449 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = FALSE; -#line 12790 "Commands.c" - } -#line 1449 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp1_) { -#line 12794 "Commands.c" - Dateable* _tmp4_; - Dateable* _tmp5_; - gint64 _tmp6_; -#line 1450 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = dateable; -#line 1450 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = dateable; -#line 1450 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = self->priv->time_shift; -#line 1450 "/home/jens/Source/shotwell/src/Commands.vala" - adjust_date_time_photos_command_set_time (self, _tmp4_, dateable_get_exposure_time (_tmp5_) + ((time_t) _tmp6_)); -#line 12806 "Commands.c" - } else { - GeeHashMap* _tmp7_; - Dateable* _tmp8_; - Dateable* _tmp9_; - time_t _tmp10_; - Dateable* _tmp11_; - time_t* _tmp12_; -#line 1452 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = self->priv->old_times; -#line 1452 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = dateable; -#line 1452 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = dateable; -#line 1452 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = dateable_get_exposure_time (_tmp9_); -#line 1452 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_, &_tmp10_); -#line 1453 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = dateable; -#line 1453 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = self->priv->new_time; -#line 1453 "/home/jens/Source/shotwell/src/Commands.vala" - adjust_date_time_photos_command_set_time (self, _tmp11_, *_tmp12_); -#line 12830 "Commands.c" - } -#line 1456 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = view_collection_new ("tmp"); -#line 1456 "/home/jens/Source/shotwell/src/Commands.vala" - all_events = _tmp13_; -#line 12836 "Commands.c" - { - GeeIterator* _dobj_it = NULL; - EventSourceCollection* _tmp14_; - GeeCollection* _tmp15_; - GeeCollection* _tmp16_; - GeeIterator* _tmp17_; - GeeIterator* _tmp18_; -#line 1458 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = event_global; -#line 1458 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1458 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = _tmp15_; -#line 1458 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1458 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = _tmp17_; -#line 1458 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp16_); -#line 1458 "/home/jens/Source/shotwell/src/Commands.vala" - _dobj_it = _tmp18_; -#line 1458 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 12860 "Commands.c" - GeeIterator* _tmp19_; - DataObject* dobj = NULL; - GeeIterator* _tmp20_; - gpointer _tmp21_; - Event* event = NULL; - DataObject* _tmp22_; - Event* _tmp23_; - Event* _tmp24_; -#line 1458 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = _dobj_it; -#line 1458 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp19_)) { -#line 1458 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 12875 "Commands.c" - } -#line 1458 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = _dobj_it; -#line 1458 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = gee_iterator_get (_tmp20_); -#line 1458 "/home/jens/Source/shotwell/src/Commands.vala" - dobj = (DataObject*) _tmp21_; -#line 1459 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = dobj; -#line 1459 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, TYPE_EVENT) ? ((Event*) _tmp22_) : NULL); -#line 1459 "/home/jens/Source/shotwell/src/Commands.vala" - event = _tmp23_; -#line 1460 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = event; -#line 1460 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp24_ != NULL) { -#line 12893 "Commands.c" - ViewCollection* _tmp25_; - Event* _tmp26_; - EventView* _tmp27_; - EventView* _tmp28_; -#line 1461 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = all_events; -#line 1461 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = event; -#line 1461 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = event_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_EVENT_SOURCE, EventSource)); -#line 1461 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = _tmp27_; -#line 1461 "/home/jens/Source/shotwell/src/Commands.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_DATA_OBJECT, DataObject)); -#line 1461 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp28_); -#line 12910 "Commands.c" - } -#line 1458 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (event); -#line 1458 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (dobj); -#line 12916 "Commands.c" - } -#line 1458 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_dobj_it); -#line 12920 "Commands.c" - } -#line 1464 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = dateable; -#line 1464 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = all_events; -#line 1464 "/home/jens/Source/shotwell/src/Commands.vala" - event_generate_single_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_MEDIA_SOURCE, MediaSource), _tmp30_, NULL); -#line 1446 "/home/jens/Source/shotwell/src/Commands.vala" - _data_collection_unref0 (all_events); -#line 1446 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (dateable); -#line 12932 "Commands.c" -} - - -static void -adjust_date_time_photos_command_real_undo_on_source (MultipleDataSourceCommand* base, - DataSource* source) -{ - AdjustDateTimePhotosCommand * self; - Dateable* photo = NULL; - Dateable* _tmp0_; - GeeHashMap* _tmp1_; - Dateable* _tmp2_; - GeeMap* _tmp13_; - gpointer _tmp14_; - Event* _tmp15_; -#line 1467 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand); -#line 1467 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1468 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATEABLE, Dateable)); -#line 1468 "/home/jens/Source/shotwell/src/Commands.vala" - photo = _tmp0_; -#line 1470 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->old_times; -#line 1470 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = photo; -#line 1470 "/home/jens/Source/shotwell/src/Commands.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp2_)) { -#line 12962 "Commands.c" - Dateable* _tmp3_; - GeeHashMap* _tmp4_; - Dateable* _tmp5_; - gpointer _tmp6_; - time_t* _tmp7_; - GeeHashMap* _tmp8_; - Dateable* _tmp9_; -#line 1471 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = photo; -#line 1471 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->old_times; -#line 1471 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = photo; -#line 1471 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_); -#line 1471 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = (time_t*) _tmp6_; -#line 1471 "/home/jens/Source/shotwell/src/Commands.vala" - adjust_date_time_photos_command_set_time (self, _tmp3_, *_tmp7_); -#line 1471 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp7_); -#line 1472 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = self->priv->old_times; -#line 1472 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = photo; -#line 1472 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, NULL); -#line 12990 "Commands.c" - } else { - Dateable* _tmp10_; - Dateable* _tmp11_; - gint64 _tmp12_; -#line 1474 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = photo; -#line 1474 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = photo; -#line 1474 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = self->priv->time_shift; -#line 1474 "/home/jens/Source/shotwell/src/Commands.vala" - adjust_date_time_photos_command_set_time (self, _tmp10_, dateable_get_exposure_time (_tmp11_) - ((time_t) _tmp12_)); -#line 13003 "Commands.c" - } -#line 1477 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = self->priv->prev_events; -#line 1477 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = gee_map_get (_tmp13_, G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_DATEABLE) ? ((Dateable*) source) : NULL); -#line 1477 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = (Event*) _tmp14_; -#line 1477 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_set_event (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_MEDIA_SOURCE) ? ((MediaSource*) source) : NULL, _tmp15_); -#line 1477 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp15_); -#line 1467 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (photo); -#line 13017 "Commands.c" -} - - -static void -adjust_date_time_photos_command_class_init (AdjustDateTimePhotosCommandClass * klass) -{ -#line 1355 "/home/jens/Source/shotwell/src/Commands.vala" - adjust_date_time_photos_command_parent_class = g_type_class_peek_parent (klass); -#line 1355 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (AdjustDateTimePhotosCommandPrivate)); -#line 1355 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) adjust_date_time_photos_command_real_execute; -#line 1355 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) adjust_date_time_photos_command_real_undo; -#line 1355 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->execute_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) adjust_date_time_photos_command_real_execute_on_source; -#line 1355 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceCommandClass *) klass)->undo_on_source = (void (*) (MultipleDataSourceCommand *, DataSource*)) adjust_date_time_photos_command_real_undo_on_source; -#line 1355 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = adjust_date_time_photos_command_finalize; -#line 13038 "Commands.c" -} - - -static void -adjust_date_time_photos_command_instance_init (AdjustDateTimePhotosCommand * self) -{ -#line 1355 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = ADJUST_DATE_TIME_PHOTOS_COMMAND_GET_PRIVATE (self); -#line 1362 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->new_time = NULL; -#line 13049 "Commands.c" -} - - -static void -adjust_date_time_photos_command_finalize (GObject * obj) -{ - AdjustDateTimePhotosCommand * self; -#line 1355 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADJUST_DATE_TIME_PHOTOS_COMMAND, AdjustDateTimePhotosCommand); -#line 1359 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->prev_events); -#line 1362 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->new_time); -#line 1363 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->old_times); -#line 1364 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->error_list); -#line 1355 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (adjust_date_time_photos_command_parent_class)->finalize (obj); -#line 13069 "Commands.c" -} - - -GType -adjust_date_time_photos_command_get_type (void) -{ - static volatile gsize adjust_date_time_photos_command_type_id__volatile = 0; - if (g_once_init_enter (&adjust_date_time_photos_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (AdjustDateTimePhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) adjust_date_time_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AdjustDateTimePhotosCommand), 0, (GInstanceInitFunc) adjust_date_time_photos_command_instance_init, NULL }; - GType adjust_date_time_photos_command_type_id; - adjust_date_time_photos_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_COMMAND, "AdjustDateTimePhotosCommand", &g_define_type_info, 0); - g_once_init_leave (&adjust_date_time_photos_command_type_id__volatile, adjust_date_time_photos_command_type_id); - } - return adjust_date_time_photos_command_type_id__volatile; -} - - -static void -_add_tags_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, - gpointer self) -{ -#line 1521 "/home/jens/Source/shotwell/src/Commands.vala" - add_tags_command_on_proxy_broken ((AddTagsCommand*) self); -#line 13093 "Commands.c" -} - - -static void -_add_tags_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self) -{ -#line 1523 "/home/jens/Source/shotwell/src/Commands.vala" - add_tags_command_on_source_destroyed ((AddTagsCommand*) self, source); -#line 13104 "Commands.c" -} - - -AddTagsCommand* -add_tags_command_construct (GType object_type, - gchar** paths, - int paths_length1, - GeeCollection* sources) -{ - AddTagsCommand * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - LibraryPhotoSourceCollection* _tmp38_; - VideoSourceCollection* _tmp39_; -#line 1485 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (sources), NULL); -#line 1486 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = resources_add_tags_label (paths, paths_length1); -#line 1486 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 1486 "/home/jens/Source/shotwell/src/Commands.vala" - self = (AddTagsCommand*) page_command_construct (object_type, _tmp1_, ""); -#line 1486 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp1_); -#line 13129 "Commands.c" - { - gchar** path_collection = NULL; - gint path_collection_length1 = 0; - gint _path_collection_size_ = 0; - gint path_it = 0; -#line 1491 "/home/jens/Source/shotwell/src/Commands.vala" - path_collection = paths; -#line 1491 "/home/jens/Source/shotwell/src/Commands.vala" - path_collection_length1 = paths_length1; -#line 1491 "/home/jens/Source/shotwell/src/Commands.vala" - for (path_it = 0; path_it < paths_length1; path_it = path_it + 1) { -#line 13141 "Commands.c" - gchar* _tmp2_; - gchar* path = NULL; -#line 1491 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = g_strdup (path_collection[path_it]); -#line 1491 "/home/jens/Source/shotwell/src/Commands.vala" - path = _tmp2_; -#line 13148 "Commands.c" - { - GeeList* paths_to_create = NULL; - const gchar* _tmp3_; - GeeList* _tmp4_; - GeeList* _tmp5_; - const gchar* _tmp6_; -#line 1492 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = path; -#line 1492 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp3_); -#line 1492 "/home/jens/Source/shotwell/src/Commands.vala" - paths_to_create = _tmp4_; -#line 1494 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = paths_to_create; -#line 1494 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = path; -#line 1494 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), _tmp6_); -#line 13167 "Commands.c" - { - GeeList* _create_path_list = NULL; - GeeList* _tmp7_; - GeeList* _tmp8_; - gint _create_path_size = 0; - GeeList* _tmp9_; - gint _tmp10_; - gint _tmp11_; - gint _create_path_index = 0; -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = paths_to_create; -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _g_object_ref0 (_tmp7_); -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _create_path_list = _tmp8_; -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = _create_path_list; -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _tmp10_; -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _create_path_size = _tmp11_; -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _create_path_index = -1; -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 13195 "Commands.c" - gint _tmp12_; - gint _tmp13_; - gint _tmp14_; - gchar* create_path = NULL; - GeeList* _tmp15_; - gint _tmp16_; - gpointer _tmp17_; - Tag* tag = NULL; - const gchar* _tmp18_; - Tag* _tmp19_; - SourceProxy* tag_proxy = NULL; - Tag* _tmp20_; - SourceProxy* _tmp21_; - GeeArrayList* add_sources = NULL; - GeeArrayList* _tmp22_; - GeeArrayList* _tmp31_; - gint _tmp32_; - gint _tmp33_; -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = _create_path_index; -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _create_path_index = _tmp12_ + 1; -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = _create_path_index; -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = _create_path_size; -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp13_ < _tmp14_)) { -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 13226 "Commands.c" - } -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = _create_path_list; -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = _create_path_index; -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = gee_list_get (_tmp15_, _tmp16_); -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - create_path = (gchar*) _tmp17_; -#line 1497 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = create_path; -#line 1497 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = tag_for_path (_tmp18_); -#line 1497 "/home/jens/Source/shotwell/src/Commands.vala" - tag = _tmp19_; -#line 1498 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = tag; -#line 1498 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PROXYABLE, Proxyable)); -#line 1498 "/home/jens/Source/shotwell/src/Commands.vala" - tag_proxy = _tmp21_; -#line 1502 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1502 "/home/jens/Source/shotwell/src/Commands.vala" - add_sources = _tmp22_; -#line 13252 "Commands.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp23_; -#line 1503 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1503 "/home/jens/Source/shotwell/src/Commands.vala" - _source_it = _tmp23_; -#line 1503 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 13262 "Commands.c" - GeeIterator* _tmp24_; - MediaSource* source = NULL; - GeeIterator* _tmp25_; - gpointer _tmp26_; - Tag* _tmp27_; - MediaSource* _tmp28_; -#line 1503 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = _source_it; -#line 1503 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp24_)) { -#line 1503 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 13275 "Commands.c" - } -#line 1503 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = _source_it; -#line 1503 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = gee_iterator_get (_tmp25_); -#line 1503 "/home/jens/Source/shotwell/src/Commands.vala" - source = (MediaSource*) _tmp26_; -#line 1504 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = tag; -#line 1504 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = source; -#line 1504 "/home/jens/Source/shotwell/src/Commands.vala" - if (!tag_contains (_tmp27_, _tmp28_)) { -#line 13289 "Commands.c" - GeeArrayList* _tmp29_; - MediaSource* _tmp30_; -#line 1505 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = add_sources; -#line 1505 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = source; -#line 1505 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp30_); -#line 13298 "Commands.c" - } -#line 1503 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 13302 "Commands.c" - } -#line 1503 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_it); -#line 13306 "Commands.c" - } -#line 1508 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp31_ = add_sources; -#line 1508 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp32_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1508 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp33_ = _tmp32_; -#line 1508 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp33_ > 0) { -#line 13316 "Commands.c" - SourceProxy* _tmp34_; - GeeHashMap* _tmp35_; - SourceProxy* _tmp36_; - GeeArrayList* _tmp37_; -#line 1509 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp34_ = tag_proxy; -#line 1509 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (_tmp34_, "broken", (GCallback) _add_tags_command_on_proxy_broken_source_proxy_broken, self, 0); -#line 1510 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp35_ = self->priv->map; -#line 1510 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp36_ = tag_proxy; -#line 1510 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp37_ = add_sources; -#line 1510 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp36_, _tmp37_); -#line 13333 "Commands.c" - } -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (add_sources); -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (tag_proxy); -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (tag); -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (create_path); -#line 13343 "Commands.c" - } -#line 1496 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_create_path_list); -#line 13347 "Commands.c" - } -#line 1491 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (paths_to_create); -#line 1491 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (path); -#line 13353 "Commands.c" - } - } - } -#line 1515 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp38_ = library_photo_global; -#line 1515 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _add_tags_command_on_source_destroyed_source_collection_item_destroyed, self, 0); -#line 1516 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp39_ = video_global; -#line 1516 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _add_tags_command_on_source_destroyed_source_collection_item_destroyed, self, 0); -#line 1485 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 13367 "Commands.c" -} - - -AddTagsCommand* -add_tags_command_new (gchar** paths, - int paths_length1, - GeeCollection* sources) -{ -#line 1485 "/home/jens/Source/shotwell/src/Commands.vala" - return add_tags_command_construct (TYPE_ADD_TAGS_COMMAND, paths, paths_length1, sources); -#line 13378 "Commands.c" -} - - -static void -add_tags_command_real_execute (Command* base) -{ - AddTagsCommand * self; -#line 1527 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADD_TAGS_COMMAND, AddTagsCommand); -#line 13388 "Commands.c" - { - GeeIterator* _tag_proxy_it = NULL; - GeeHashMap* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeSet* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 1528 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->map; -#line 1528 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 1528 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _tmp1_; -#line 1528 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 1528 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1528 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp4_; -#line 1528 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp3_); -#line 1528 "/home/jens/Source/shotwell/src/Commands.vala" - _tag_proxy_it = _tmp5_; -#line 1528 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 13415 "Commands.c" - GeeIterator* _tmp6_; - SourceProxy* tag_proxy = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - SourceProxy* _tmp9_; - DataSource* _tmp10_; - Tag* _tmp11_; - GeeHashMap* _tmp12_; - SourceProxy* _tmp13_; - gpointer _tmp14_; - GeeArrayList* _tmp15_; -#line 1528 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tag_proxy_it; -#line 1528 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 1528 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 13433 "Commands.c" - } -#line 1528 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _tag_proxy_it; -#line 1528 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 1528 "/home/jens/Source/shotwell/src/Commands.vala" - tag_proxy = (SourceProxy*) _tmp8_; -#line 1529 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = tag_proxy; -#line 1529 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = source_proxy_get_source (_tmp9_); -#line 1529 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_TAG, Tag); -#line 1529 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = self->priv->map; -#line 1529 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = tag_proxy; -#line 1529 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_); -#line 1529 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = (GeeArrayList*) _tmp14_; -#line 1529 "/home/jens/Source/shotwell/src/Commands.vala" - tag_attach_many (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1529 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp15_); -#line 1529 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp11_); -#line 1528 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (tag_proxy); -#line 13463 "Commands.c" - } -#line 1528 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tag_proxy_it); -#line 13467 "Commands.c" - } -} - - -static void -add_tags_command_real_undo (Command* base) -{ - AddTagsCommand * self; -#line 1532 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADD_TAGS_COMMAND, AddTagsCommand); -#line 13478 "Commands.c" - { - GeeIterator* _tag_proxy_it = NULL; - GeeHashMap* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeSet* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->map; -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _tmp1_; -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp4_; -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp3_); -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - _tag_proxy_it = _tmp5_; -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 13505 "Commands.c" - GeeIterator* _tmp6_; - SourceProxy* tag_proxy = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - Tag* tag = NULL; - SourceProxy* _tmp9_; - DataSource* _tmp10_; - Tag* _tmp11_; - GeeHashMap* _tmp12_; - SourceProxy* _tmp13_; - gpointer _tmp14_; - GeeArrayList* _tmp15_; - GeeMultiMap* _tmp16_; - GeeMultiMap* _tmp17_; -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tag_proxy_it; -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 13526 "Commands.c" - } -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _tag_proxy_it; -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - tag_proxy = (SourceProxy*) _tmp8_; -#line 1534 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = tag_proxy; -#line 1534 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = source_proxy_get_source (_tmp9_); -#line 1534 "/home/jens/Source/shotwell/src/Commands.vala" - tag = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_TAG, Tag); -#line 1536 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = tag; -#line 1536 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = self->priv->map; -#line 1536 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = tag_proxy; -#line 1536 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_); -#line 1536 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = (GeeArrayList*) _tmp14_; -#line 1536 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = tag_detach_many (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1536 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = _tmp16_; -#line 1536 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp17_); -#line 1536 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp15_); -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (tag); -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (tag_proxy); -#line 13562 "Commands.c" - } -#line 1533 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tag_proxy_it); -#line 13566 "Commands.c" - } -} - - -static void -add_tags_command_on_source_destroyed (AddTagsCommand* self, - DataSource* source) -{ -#line 1540 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_ADD_TAGS_COMMAND (self)); -#line 1540 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 13579 "Commands.c" - { - GeeIterator* _sources_it = NULL; - GeeHashMap* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 1541 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->map; -#line 1541 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 1541 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _tmp1_; -#line 1541 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 1541 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1541 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp4_; -#line 1541 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp3_); -#line 1541 "/home/jens/Source/shotwell/src/Commands.vala" - _sources_it = _tmp5_; -#line 1541 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 13606 "Commands.c" - GeeIterator* _tmp6_; - GeeArrayList* sources = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - GeeArrayList* _tmp9_; -#line 1541 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _sources_it; -#line 1541 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 1541 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 13618 "Commands.c" - } -#line 1541 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _sources_it; -#line 1541 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 1541 "/home/jens/Source/shotwell/src/Commands.vala" - sources = (GeeArrayList*) _tmp8_; -#line 1542 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = sources; -#line 1542 "/home/jens/Source/shotwell/src/Commands.vala" - if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource))) { -#line 13630 "Commands.c" - CommandManager* _tmp10_; - CommandManager* _tmp11_; -#line 1543 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command)); -#line 1543 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _tmp10_; -#line 1543 "/home/jens/Source/shotwell/src/Commands.vala" - command_manager_reset (_tmp11_); -#line 1543 "/home/jens/Source/shotwell/src/Commands.vala" - _command_manager_unref0 (_tmp11_); -#line 1545 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (sources); -#line 1545 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_sources_it); -#line 1545 "/home/jens/Source/shotwell/src/Commands.vala" - return; -#line 13647 "Commands.c" - } -#line 1541 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (sources); -#line 13651 "Commands.c" - } -#line 1541 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_sources_it); -#line 13655 "Commands.c" - } -} - - -static void -add_tags_command_on_proxy_broken (AddTagsCommand* self) -{ - CommandManager* _tmp0_; - CommandManager* _tmp1_; -#line 1550 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_ADD_TAGS_COMMAND (self)); -#line 1551 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command)); -#line 1551 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 1551 "/home/jens/Source/shotwell/src/Commands.vala" - command_manager_reset (_tmp1_); -#line 1551 "/home/jens/Source/shotwell/src/Commands.vala" - _command_manager_unref0 (_tmp1_); -#line 13675 "Commands.c" -} - - -static void -add_tags_command_class_init (AddTagsCommandClass * klass) -{ -#line 1481 "/home/jens/Source/shotwell/src/Commands.vala" - add_tags_command_parent_class = g_type_class_peek_parent (klass); -#line 1481 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (AddTagsCommandPrivate)); -#line 1481 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) add_tags_command_real_execute; -#line 1481 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) add_tags_command_real_undo; -#line 1481 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = add_tags_command_finalize; -#line 13692 "Commands.c" -} - - -static void -add_tags_command_instance_init (AddTagsCommand * self) -{ - GeeHashMap* _tmp0_; -#line 1481 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = ADD_TAGS_COMMAND_GET_PRIVATE (self); -#line 1482 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_hash_map_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, GEE_TYPE_ARRAY_LIST, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1482 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->map = _tmp0_; -#line 13706 "Commands.c" -} - - -static void -add_tags_command_finalize (GObject * obj) -{ - AddTagsCommand * self; - LibraryPhotoSourceCollection* _tmp11_; - guint _tmp12_; - VideoSourceCollection* _tmp13_; - guint _tmp14_; -#line 1481 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADD_TAGS_COMMAND, AddTagsCommand); -#line 13720 "Commands.c" - { - GeeIterator* _tag_proxy_it = NULL; - GeeHashMap* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeSet* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 1520 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->map; -#line 1520 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 1520 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _tmp1_; -#line 1520 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 1520 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1520 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp4_; -#line 1520 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp3_); -#line 1520 "/home/jens/Source/shotwell/src/Commands.vala" - _tag_proxy_it = _tmp5_; -#line 1520 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 13747 "Commands.c" - GeeIterator* _tmp6_; - SourceProxy* tag_proxy = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - SourceProxy* _tmp9_; - guint _tmp10_; -#line 1520 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tag_proxy_it; -#line 1520 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 1520 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 13760 "Commands.c" - } -#line 1520 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _tag_proxy_it; -#line 1520 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 1520 "/home/jens/Source/shotwell/src/Commands.vala" - tag_proxy = (SourceProxy*) _tmp8_; -#line 1521 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = tag_proxy; -#line 1521 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp10_, NULL, FALSE); -#line 1521 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _add_tags_command_on_proxy_broken_source_proxy_broken, self); -#line 1520 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (tag_proxy); -#line 13776 "Commands.c" - } -#line 1520 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tag_proxy_it); -#line 13780 "Commands.c" - } -#line 1523 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = library_photo_global; -#line 1523 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp12_, NULL, FALSE); -#line 1523 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _add_tags_command_on_source_destroyed_source_collection_item_destroyed, self); -#line 1524 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = video_global; -#line 1524 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp14_, NULL, FALSE); -#line 1524 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _add_tags_command_on_source_destroyed_source_collection_item_destroyed, self); -#line 1482 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->map); -#line 1481 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (add_tags_command_parent_class)->finalize (obj); -#line 13798 "Commands.c" -} - - -GType -add_tags_command_get_type (void) -{ - static volatile gsize add_tags_command_type_id__volatile = 0; - if (g_once_init_enter (&add_tags_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (AddTagsCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) add_tags_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AddTagsCommand), 0, (GInstanceInitFunc) add_tags_command_instance_init, NULL }; - GType add_tags_command_type_id; - add_tags_command_type_id = g_type_register_static (TYPE_PAGE_COMMAND, "AddTagsCommand", &g_define_type_info, 0); - g_once_init_leave (&add_tags_command_type_id__volatile, add_tags_command_type_id); - } - return add_tags_command_type_id__volatile; -} - - -RenameTagCommand* -rename_tag_command_construct (GType object_type, - Tag* tag, - const gchar* new_name) -{ - RenameTagCommand * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 1560 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_TAG (tag), NULL); -#line 1560 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (new_name != NULL, NULL); -#line 1561 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = tag_get_user_visible_name (tag); -#line 1561 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 1561 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = resources_rename_tag_label (_tmp1_, new_name); -#line 1561 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 1561 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject)); -#line 1561 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp4_; -#line 1561 "/home/jens/Source/shotwell/src/Commands.vala" - self = (RenameTagCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_PROXYABLE, Proxyable), _tmp3_, _tmp5_); -#line 1561 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp5_); -#line 1561 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp3_); -#line 1561 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp1_); -#line 1564 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = tag_get_user_visible_name (tag); -#line 1564 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->old_name); -#line 1564 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->old_name = _tmp6_; -#line 1565 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = g_strdup (new_name); -#line 1565 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->new_name); -#line 1565 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->new_name = _tmp7_; -#line 1560 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 13868 "Commands.c" -} - - -RenameTagCommand* -rename_tag_command_new (Tag* tag, - const gchar* new_name) -{ -#line 1560 "/home/jens/Source/shotwell/src/Commands.vala" - return rename_tag_command_construct (TYPE_RENAME_TAG_COMMAND, tag, new_name); -#line 13878 "Commands.c" -} - - -static void -rename_tag_command_real_execute_on_source (SimpleProxyableCommand* base, - DataSource* source) -{ - RenameTagCommand * self; - const gchar* _tmp0_; -#line 1568 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_TAG_COMMAND, RenameTagCommand); -#line 1568 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1569 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->new_name; -#line 1569 "/home/jens/Source/shotwell/src/Commands.vala" - if (!tag_rename (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag), _tmp0_)) { -#line 13896 "Commands.c" - const gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 1570 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->new_name; -#line 1570 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = resources_rename_tag_exists_message (_tmp1_); -#line 1570 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 1570 "/home/jens/Source/shotwell/src/Commands.vala" - app_window_error_message (_tmp3_, NULL); -#line 1570 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp3_); -#line 13910 "Commands.c" - } -} - - -static void -rename_tag_command_real_undo_on_source (SimpleProxyableCommand* base, - DataSource* source) -{ - RenameTagCommand * self; - const gchar* _tmp0_; -#line 1573 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_TAG_COMMAND, RenameTagCommand); -#line 1573 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1574 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->old_name; -#line 1574 "/home/jens/Source/shotwell/src/Commands.vala" - if (!tag_rename (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag), _tmp0_)) { -#line 13929 "Commands.c" - const gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 1575 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->old_name; -#line 1575 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = resources_rename_tag_exists_message (_tmp1_); -#line 1575 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 1575 "/home/jens/Source/shotwell/src/Commands.vala" - app_window_error_message (_tmp3_, NULL); -#line 1575 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp3_); -#line 13943 "Commands.c" - } -} - - -static void -rename_tag_command_class_init (RenameTagCommandClass * klass) -{ -#line 1555 "/home/jens/Source/shotwell/src/Commands.vala" - rename_tag_command_parent_class = g_type_class_peek_parent (klass); -#line 1555 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (RenameTagCommandPrivate)); -#line 1555 "/home/jens/Source/shotwell/src/Commands.vala" - ((SimpleProxyableCommandClass *) klass)->execute_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) rename_tag_command_real_execute_on_source; -#line 1555 "/home/jens/Source/shotwell/src/Commands.vala" - ((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) rename_tag_command_real_undo_on_source; -#line 1555 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = rename_tag_command_finalize; -#line 13961 "Commands.c" -} - - -static void -rename_tag_command_instance_init (RenameTagCommand * self) -{ -#line 1555 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = RENAME_TAG_COMMAND_GET_PRIVATE (self); -#line 13970 "Commands.c" -} - - -static void -rename_tag_command_finalize (GObject * obj) -{ - RenameTagCommand * self; -#line 1555 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RENAME_TAG_COMMAND, RenameTagCommand); -#line 1556 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->old_name); -#line 1557 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->new_name); -#line 1555 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (rename_tag_command_parent_class)->finalize (obj); -#line 13986 "Commands.c" -} - - -GType -rename_tag_command_get_type (void) -{ - static volatile gsize rename_tag_command_type_id__volatile = 0; - if (g_once_init_enter (&rename_tag_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (RenameTagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rename_tag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RenameTagCommand), 0, (GInstanceInitFunc) rename_tag_command_instance_init, NULL }; - GType rename_tag_command_type_id; - rename_tag_command_type_id = g_type_register_static (TYPE_SIMPLE_PROXYABLE_COMMAND, "RenameTagCommand", &g_define_type_info, 0); - g_once_init_leave (&rename_tag_command_type_id__volatile, rename_tag_command_type_id); - } - return rename_tag_command_type_id__volatile; -} - - -DeleteTagCommand* -delete_tag_command_construct (GType object_type, - Tag* tag) -{ - DeleteTagCommand * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 1582 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_TAG (tag), NULL); -#line 1583 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = tag_get_user_visible_name (tag); -#line 1583 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 1583 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = resources_delete_tag_label (_tmp1_); -#line 1583 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 1583 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject)); -#line 1583 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp4_; -#line 1583 "/home/jens/Source/shotwell/src/Commands.vala" - self = (DeleteTagCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_PROXYABLE, Proxyable), _tmp3_, _tmp5_); -#line 1583 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp5_); -#line 1583 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp3_); -#line 1583 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp1_); -#line 1582 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 14039 "Commands.c" -} - - -DeleteTagCommand* -delete_tag_command_new (Tag* tag) -{ -#line 1582 "/home/jens/Source/shotwell/src/Commands.vala" - return delete_tag_command_construct (TYPE_DELETE_TAG_COMMAND, tag); -#line 14048 "Commands.c" -} - - -static void -_delete_tag_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, - gpointer self) -{ -#line 1597 "/home/jens/Source/shotwell/src/Commands.vala" - delete_tag_command_on_proxy_broken ((DeleteTagCommand*) self); -#line 14058 "Commands.c" -} - - -static void -delete_tag_command_real_execute_on_source (SimpleProxyableCommand* base, - DataSource* source) -{ - DeleteTagCommand * self; - Tag* tag = NULL; - Tag* _tmp0_; - GeeList* recursive_victims = NULL; - Tag* _tmp1_; - GeeList* _tmp2_; - GeeList* _tmp3_; - gint _tmp4_; - gint _tmp5_; - TagSourceCollection* _tmp28_; - TagSourceCollection* _tmp29_; - Marker* _tmp30_; - Marker* _tmp31_; -#line 1586 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DELETE_TAG_COMMAND, DeleteTagCommand); -#line 1586 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1587 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag)); -#line 1587 "/home/jens/Source/shotwell/src/Commands.vala" - tag = _tmp0_; -#line 1590 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = tag; -#line 1590 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = tag_get_hierarchical_children (_tmp1_); -#line 1590 "/home/jens/Source/shotwell/src/Commands.vala" - recursive_victims = _tmp2_; -#line 1591 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = recursive_victims; -#line 1591 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1591 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp4_; -#line 1591 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp5_ > 0) { -#line 14101 "Commands.c" - GeeArrayList* _tmp6_; -#line 1594 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = gee_array_list_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL); -#line 1594 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->recursive_victim_proxies); -#line 1594 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->recursive_victim_proxies = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_LIST, GeeList); -#line 14109 "Commands.c" - { - GeeList* _victim_list = NULL; - GeeList* _tmp7_; - GeeList* _tmp8_; - gint _victim_size = 0; - GeeList* _tmp9_; - gint _tmp10_; - gint _tmp11_; - gint _victim_index = 0; -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = recursive_victims; -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _g_object_ref0 (_tmp7_); -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _victim_list = _tmp8_; -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = _victim_list; -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _tmp10_; -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _victim_size = _tmp11_; -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _victim_index = -1; -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 14137 "Commands.c" - gint _tmp12_; - gint _tmp13_; - gint _tmp14_; - Tag* victim = NULL; - GeeList* _tmp15_; - gint _tmp16_; - gpointer _tmp17_; - SourceProxy* proxy = NULL; - Tag* _tmp18_; - SourceProxy* _tmp19_; - SourceProxy* _tmp20_; - GeeList* _tmp21_; - SourceProxy* _tmp22_; - TagSourceCollection* _tmp23_; - TagSourceCollection* _tmp24_; - Tag* _tmp25_; - Marker* _tmp26_; - Marker* _tmp27_; -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = _victim_index; -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _victim_index = _tmp12_ + 1; -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = _victim_index; -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = _victim_size; -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp13_ < _tmp14_)) { -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 14168 "Commands.c" - } -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = _victim_list; -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = _victim_index; -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = gee_list_get (_tmp15_, _tmp16_); -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - victim = (Tag*) _tmp17_; -#line 1596 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = victim; -#line 1596 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PROXYABLE, Proxyable)); -#line 1596 "/home/jens/Source/shotwell/src/Commands.vala" - proxy = _tmp19_; -#line 1597 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = proxy; -#line 1597 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (_tmp20_, "broken", (GCallback) _delete_tag_command_on_proxy_broken_source_proxy_broken, self, 0); -#line 1598 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = self->priv->recursive_victim_proxies; -#line 1598 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = proxy; -#line 1598 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection), _tmp22_); -#line 1600 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = tag_global; -#line 1600 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = tag_global; -#line 1600 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = victim; -#line 1600 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_OBJECT, DataObject)); -#line 1600 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = _tmp26_; -#line 1600 "/home/jens/Source/shotwell/src/Commands.vala" - source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp27_, FALSE, NULL, NULL, NULL); -#line 1600 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp27_); -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (proxy); -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (victim); -#line 14212 "Commands.c" - } -#line 1595 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_victim_list); -#line 14216 "Commands.c" - } - } -#line 1605 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = tag_global; -#line 1605 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = tag_global; -#line 1605 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject)); -#line 1605 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp31_ = _tmp30_; -#line 1605 "/home/jens/Source/shotwell/src/Commands.vala" - source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp31_, FALSE, NULL, NULL, NULL); -#line 1605 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp31_); -#line 1586 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (recursive_victims); -#line 1586 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (tag); -#line 14235 "Commands.c" -} - - -static void -delete_tag_command_real_undo_on_source (SimpleProxyableCommand* base, - DataSource* source) -{ - DeleteTagCommand * self; - GeeList* _tmp0_; -#line 1608 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DELETE_TAG_COMMAND, DeleteTagCommand); -#line 1608 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1611 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_TAG), "source is Tag"); -#line 1614 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->recursive_victim_proxies; -#line 1614 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp0_ != NULL) { -#line 14255 "Commands.c" - { - gint i = 0; - GeeList* _tmp1_; - gint _tmp2_; - gint _tmp3_; -#line 1615 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->recursive_victim_proxies; -#line 1615 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1615 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 1615 "/home/jens/Source/shotwell/src/Commands.vala" - i = _tmp3_ - 1; -#line 14269 "Commands.c" - { - gboolean _tmp4_ = FALSE; -#line 1615 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = TRUE; -#line 1615 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 14276 "Commands.c" - gint _tmp6_; - SourceProxy* proxy = NULL; - GeeList* _tmp7_; - gint _tmp8_; - gpointer _tmp9_; - DataSource* victim_source = NULL; - SourceProxy* _tmp10_; - DataSource* _tmp11_; - DataSource* _tmp12_; - SourceProxy* _tmp13_; - guint _tmp14_; -#line 1615 "/home/jens/Source/shotwell/src/Commands.vala" - if (!_tmp4_) { -#line 14290 "Commands.c" - gint _tmp5_; -#line 1615 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = i; -#line 1615 "/home/jens/Source/shotwell/src/Commands.vala" - i = _tmp5_ - 1; -#line 14296 "Commands.c" - } -#line 1615 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = FALSE; -#line 1615 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = i; -#line 1615 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp6_ >= 0)) { -#line 1615 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 14306 "Commands.c" - } -#line 1616 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = self->priv->recursive_victim_proxies; -#line 1616 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = i; -#line 1616 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = gee_list_get (_tmp7_, _tmp8_); -#line 1616 "/home/jens/Source/shotwell/src/Commands.vala" - proxy = (SourceProxy*) _tmp9_; -#line 1618 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = proxy; -#line 1618 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = source_proxy_get_source (_tmp10_); -#line 1618 "/home/jens/Source/shotwell/src/Commands.vala" - victim_source = _tmp11_; -#line 1619 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = victim_source; -#line 1619 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, TYPE_TAG), "victim_source is Tag"); -#line 1621 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = proxy; -#line 1621 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp14_, NULL, FALSE); -#line 1621 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (_tmp13_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _delete_tag_command_on_proxy_broken_source_proxy_broken, self); -#line 1615 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (victim_source); -#line 1615 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (proxy); -#line 14336 "Commands.c" - } - } - } -#line 1624 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->recursive_victim_proxies); -#line 1624 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->recursive_victim_proxies = NULL; -#line 14344 "Commands.c" - } -} - - -static void -delete_tag_command_on_proxy_broken (DeleteTagCommand* self) -{ - CommandManager* _tmp0_; - CommandManager* _tmp1_; -#line 1628 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DELETE_TAG_COMMAND (self)); -#line 1629 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command)); -#line 1629 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 1629 "/home/jens/Source/shotwell/src/Commands.vala" - command_manager_reset (_tmp1_); -#line 1629 "/home/jens/Source/shotwell/src/Commands.vala" - _command_manager_unref0 (_tmp1_); -#line 14364 "Commands.c" -} - - -static void -delete_tag_command_class_init (DeleteTagCommandClass * klass) -{ -#line 1579 "/home/jens/Source/shotwell/src/Commands.vala" - delete_tag_command_parent_class = g_type_class_peek_parent (klass); -#line 1579 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (DeleteTagCommandPrivate)); -#line 1579 "/home/jens/Source/shotwell/src/Commands.vala" - ((SimpleProxyableCommandClass *) klass)->execute_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) delete_tag_command_real_execute_on_source; -#line 1579 "/home/jens/Source/shotwell/src/Commands.vala" - ((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) delete_tag_command_real_undo_on_source; -#line 1579 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = delete_tag_command_finalize; -#line 14381 "Commands.c" -} - - -static void -delete_tag_command_instance_init (DeleteTagCommand * self) -{ -#line 1579 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = DELETE_TAG_COMMAND_GET_PRIVATE (self); -#line 1580 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->recursive_victim_proxies = NULL; -#line 14392 "Commands.c" -} - - -static void -delete_tag_command_finalize (GObject * obj) -{ - DeleteTagCommand * self; -#line 1579 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DELETE_TAG_COMMAND, DeleteTagCommand); -#line 1580 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->recursive_victim_proxies); -#line 1579 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (delete_tag_command_parent_class)->finalize (obj); -#line 14406 "Commands.c" -} - - -GType -delete_tag_command_get_type (void) -{ - static volatile gsize delete_tag_command_type_id__volatile = 0; - if (g_once_init_enter (&delete_tag_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DeleteTagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) delete_tag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DeleteTagCommand), 0, (GInstanceInitFunc) delete_tag_command_instance_init, NULL }; - GType delete_tag_command_type_id; - delete_tag_command_type_id = g_type_register_static (TYPE_SIMPLE_PROXYABLE_COMMAND, "DeleteTagCommand", &g_define_type_info, 0); - g_once_init_leave (&delete_tag_command_type_id__volatile, delete_tag_command_type_id); - } - return delete_tag_command_type_id__volatile; -} - - -NewChildTagCommand* -new_child_tag_command_construct (GType object_type, - Tag* tag) -{ - NewChildTagCommand * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1636 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_TAG (tag), NULL); -#line 1637 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject)); -#line 1637 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 1637 "/home/jens/Source/shotwell/src/Commands.vala" - self = (NewChildTagCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_PROXYABLE, Proxyable), _ ("Create Tag"), _tmp1_); -#line 1637 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp1_); -#line 1636 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 14443 "Commands.c" -} - - -NewChildTagCommand* -new_child_tag_command_new (Tag* tag) -{ -#line 1636 "/home/jens/Source/shotwell/src/Commands.vala" - return new_child_tag_command_construct (TYPE_NEW_CHILD_TAG_COMMAND, tag); -#line 14452 "Commands.c" -} - - -static void -new_child_tag_command_real_execute_on_source (SimpleProxyableCommand* base, - DataSource* source) -{ - NewChildTagCommand * self; - Tag* tag = NULL; - Tag* _tmp0_; - Tag* _tmp1_; -#line 1640 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommand); -#line 1640 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1641 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag)); -#line 1641 "/home/jens/Source/shotwell/src/Commands.vala" - tag = _tmp0_; -#line 1642 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = tag_create_new_child (tag); -#line 1642 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->created_child); -#line 1642 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->created_child = _tmp1_; -#line 1640 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (tag); -#line 14480 "Commands.c" -} - - -static void -new_child_tag_command_real_undo_on_source (SimpleProxyableCommand* base, - DataSource* source) -{ - NewChildTagCommand * self; - TagSourceCollection* _tmp0_; - TagSourceCollection* _tmp1_; - Tag* _tmp2_; - Marker* _tmp3_; - Marker* _tmp4_; -#line 1645 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommand); -#line 1645 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1646 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = tag_global; -#line 1646 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = tag_global; -#line 1646 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->created_child; -#line 1646 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_OBJECT, DataObject)); -#line 1646 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _tmp3_; -#line 1646 "/home/jens/Source/shotwell/src/Commands.vala" - source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp4_, TRUE, NULL, NULL, NULL); -#line 1646 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp4_); -#line 14512 "Commands.c" -} - - -Tag* -new_child_tag_command_get_created_child (NewChildTagCommand* self) -{ - Tag* result = NULL; - Tag* _tmp0_; - Tag* _tmp1_; - Tag* _tmp2_; -#line 1649 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_NEW_CHILD_TAG_COMMAND (self), NULL); -#line 1650 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->created_child; -#line 1650 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp0_ != NULL, "created_child != null"); -#line 1652 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->created_child; -#line 1652 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 1652 "/home/jens/Source/shotwell/src/Commands.vala" - result = _tmp2_; -#line 1652 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 14537 "Commands.c" -} - - -static void -new_child_tag_command_class_init (NewChildTagCommandClass * klass) -{ -#line 1633 "/home/jens/Source/shotwell/src/Commands.vala" - new_child_tag_command_parent_class = g_type_class_peek_parent (klass); -#line 1633 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (NewChildTagCommandPrivate)); -#line 1633 "/home/jens/Source/shotwell/src/Commands.vala" - ((SimpleProxyableCommandClass *) klass)->execute_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) new_child_tag_command_real_execute_on_source; -#line 1633 "/home/jens/Source/shotwell/src/Commands.vala" - ((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) new_child_tag_command_real_undo_on_source; -#line 1633 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = new_child_tag_command_finalize; -#line 14554 "Commands.c" -} - - -static void -new_child_tag_command_instance_init (NewChildTagCommand * self) -{ -#line 1633 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = NEW_CHILD_TAG_COMMAND_GET_PRIVATE (self); -#line 1634 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->created_child = NULL; -#line 14565 "Commands.c" -} - - -static void -new_child_tag_command_finalize (GObject * obj) -{ - NewChildTagCommand * self; -#line 1633 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommand); -#line 1634 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->created_child); -#line 1633 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (new_child_tag_command_parent_class)->finalize (obj); -#line 14579 "Commands.c" -} - - -GType -new_child_tag_command_get_type (void) -{ - static volatile gsize new_child_tag_command_type_id__volatile = 0; - if (g_once_init_enter (&new_child_tag_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (NewChildTagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) new_child_tag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NewChildTagCommand), 0, (GInstanceInitFunc) new_child_tag_command_instance_init, NULL }; - GType new_child_tag_command_type_id; - new_child_tag_command_type_id = g_type_register_static (TYPE_SIMPLE_PROXYABLE_COMMAND, "NewChildTagCommand", &g_define_type_info, 0); - g_once_init_leave (&new_child_tag_command_type_id__volatile, new_child_tag_command_type_id); - } - return new_child_tag_command_type_id__volatile; -} - - -NewRootTagCommand* -new_root_tag_command_construct (GType object_type) -{ - NewRootTagCommand * self = NULL; -#line 1660 "/home/jens/Source/shotwell/src/Commands.vala" - self = (NewRootTagCommand*) page_command_construct (object_type, _ ("Create Tag"), ""); -#line 1659 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 14605 "Commands.c" -} - - -NewRootTagCommand* -new_root_tag_command_new (void) -{ -#line 1659 "/home/jens/Source/shotwell/src/Commands.vala" - return new_root_tag_command_construct (TYPE_NEW_ROOT_TAG_COMMAND); -#line 14614 "Commands.c" -} - - -static void -new_root_tag_command_real_execute (Command* base) -{ - NewRootTagCommand * self; - SourceProxy* _tmp0_; -#line 1663 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommand); -#line 1664 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->created_proxy; -#line 1664 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp0_ == NULL) { -#line 14629 "Commands.c" - Tag* _tmp1_; - Tag* _tmp2_; - SourceProxy* _tmp3_; -#line 1665 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = tag_create_new_root (); -#line 1665 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _tmp1_; -#line 1665 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PROXYABLE, Proxyable)); -#line 1665 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (self->priv->created_proxy); -#line 1665 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->created_proxy = _tmp3_; -#line 1665 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp2_); -#line 14645 "Commands.c" - } else { - SourceProxy* _tmp4_; - DataSource* _tmp5_; - DataSource* _tmp6_; -#line 1667 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->created_proxy; -#line 1667 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = source_proxy_get_source (_tmp4_); -#line 1667 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tmp5_; -#line 1667 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp6_); -#line 14658 "Commands.c" - } -} - - -static void -new_root_tag_command_real_undo (Command* base) -{ - NewRootTagCommand * self; - TagSourceCollection* _tmp0_; - TagSourceCollection* _tmp1_; - SourceProxy* _tmp2_; - DataSource* _tmp3_; - DataSource* _tmp4_; - Marker* _tmp5_; - Marker* _tmp6_; -#line 1670 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommand); -#line 1671 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = tag_global; -#line 1671 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = tag_global; -#line 1671 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->created_proxy; -#line 1671 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = source_proxy_get_source (_tmp2_); -#line 1671 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _tmp3_; -#line 1671 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject)); -#line 1671 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tmp5_; -#line 1671 "/home/jens/Source/shotwell/src/Commands.vala" - source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp6_, TRUE, NULL, NULL, NULL); -#line 1671 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp6_); -#line 1671 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp4_); -#line 14696 "Commands.c" -} - - -Tag* -new_root_tag_command_get_created_tag (NewRootTagCommand* self) -{ - Tag* result = NULL; - SourceProxy* _tmp0_; - DataSource* _tmp1_; -#line 1674 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_NEW_ROOT_TAG_COMMAND (self), NULL); -#line 1675 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->created_proxy; -#line 1675 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = source_proxy_get_source (_tmp0_); -#line 1675 "/home/jens/Source/shotwell/src/Commands.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_TAG, Tag); -#line 1675 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 14716 "Commands.c" -} - - -static void -new_root_tag_command_class_init (NewRootTagCommandClass * klass) -{ -#line 1656 "/home/jens/Source/shotwell/src/Commands.vala" - new_root_tag_command_parent_class = g_type_class_peek_parent (klass); -#line 1656 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (NewRootTagCommandPrivate)); -#line 1656 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) new_root_tag_command_real_execute; -#line 1656 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) new_root_tag_command_real_undo; -#line 1656 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = new_root_tag_command_finalize; -#line 14733 "Commands.c" -} - - -static void -new_root_tag_command_instance_init (NewRootTagCommand * self) -{ -#line 1656 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = NEW_ROOT_TAG_COMMAND_GET_PRIVATE (self); -#line 1657 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->created_proxy = NULL; -#line 14744 "Commands.c" -} - - -static void -new_root_tag_command_finalize (GObject * obj) -{ - NewRootTagCommand * self; -#line 1656 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommand); -#line 1657 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (self->priv->created_proxy); -#line 1656 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (new_root_tag_command_parent_class)->finalize (obj); -#line 14758 "Commands.c" -} - - -GType -new_root_tag_command_get_type (void) -{ - static volatile gsize new_root_tag_command_type_id__volatile = 0; - if (g_once_init_enter (&new_root_tag_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (NewRootTagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) new_root_tag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NewRootTagCommand), 0, (GInstanceInitFunc) new_root_tag_command_instance_init, NULL }; - GType new_root_tag_command_type_id; - new_root_tag_command_type_id = g_type_register_static (TYPE_PAGE_COMMAND, "NewRootTagCommand", &g_define_type_info, 0); - g_once_init_leave (&new_root_tag_command_type_id__volatile, new_root_tag_command_type_id); - } - return new_root_tag_command_type_id__volatile; -} - - -static void -_reparent_tag_command_on_items_destroyed_source_collection_items_destroyed (SourceCollection* _sender, - GeeCollection* destroyed, - gpointer self) -{ -#line 1724 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_on_items_destroyed ((ReparentTagCommand*) self, destroyed); -#line 14783 "Commands.c" -} - - -ReparentTagCommand* -reparent_tag_command_construct (GType object_type, - Tag* tag, - const gchar* new_parent_path) -{ - ReparentTagCommand * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gboolean has_children = FALSE; - GeeList* _tmp5_; - GeeList* _tmp6_; - gint _tmp7_; - gint _tmp8_; - gboolean _tmp9_; - gchar* basename = NULL; - gchar* _tmp10_; - gchar* new_to_path = NULL; - const gchar* _tmp28_; - gchar* _tmp29_; - const gchar* _tmp30_; - TagSourceCollection* _tmp33_; - const gchar* _tmp34_; - GeeHashSet* _tmp35_; - GeeCollection* _tmp36_; - GeeCollection* _tmp37_; - LibraryPhotoSourceCollection* _tmp38_; - VideoSourceCollection* _tmp39_; -#line 1694 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_TAG (tag), NULL); -#line 1694 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (new_parent_path != NULL, NULL); -#line 1695 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = tag_get_user_visible_name (tag); -#line 1695 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 1695 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = g_strdup_printf (_ ("Move Tag “%s”"), _tmp1_); -#line 1695 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 1695 "/home/jens/Source/shotwell/src/Commands.vala" - self = (ReparentTagCommand*) page_command_construct (object_type, _tmp3_, ""); -#line 1695 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp3_); -#line 1695 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp1_); -#line 1697 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = tag_get_path (tag); -#line 1697 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->from_path); -#line 1697 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->from_path = _tmp4_; -#line 1699 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = tag_get_hierarchical_children (tag); -#line 1699 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tmp5_; -#line 1699 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1699 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _tmp7_; -#line 1699 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = _tmp8_ > 0; -#line 1699 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp6_); -#line 1699 "/home/jens/Source/shotwell/src/Commands.vala" - has_children = _tmp9_; -#line 1700 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = tag_get_user_visible_name (tag); -#line 1700 "/home/jens/Source/shotwell/src/Commands.vala" - basename = _tmp10_; -#line 1702 "/home/jens/Source/shotwell/src/Commands.vala" - if (g_strcmp0 (new_parent_path, TAG_PATH_SEPARATOR_STRING) == 0) { -#line 14861 "Commands.c" - gchar* _tmp11_ = NULL; - gboolean _tmp12_; - gchar* _tmp17_; -#line 1703 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = has_children; -#line 1703 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp12_) { -#line 14869 "Commands.c" - const gchar* _tmp13_; - gchar* _tmp14_; -#line 1703 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = basename; -#line 1703 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp13_, NULL); -#line 1703 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp11_); -#line 1703 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _tmp14_; -#line 14880 "Commands.c" - } else { - const gchar* _tmp15_; - gchar* _tmp16_; -#line 1703 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = basename; -#line 1703 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = g_strdup (_tmp15_); -#line 1703 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp11_); -#line 1703 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _tmp16_; -#line 14892 "Commands.c" - } -#line 1703 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = g_strdup (_tmp11_); -#line 1703 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->to_path); -#line 1703 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->to_path = _tmp17_; -#line 1702 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp11_); -#line 14902 "Commands.c" - } else { -#line 1704 "/home/jens/Source/shotwell/src/Commands.vala" - if (g_str_has_prefix (new_parent_path, TAG_PATH_SEPARATOR_STRING)) { -#line 14906 "Commands.c" - gchar* _tmp18_; - gchar* _tmp19_; - const gchar* _tmp20_; - gchar* _tmp21_; -#line 1705 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = g_strconcat (new_parent_path, TAG_PATH_SEPARATOR_STRING, NULL); -#line 1705 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = _tmp18_; -#line 1705 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = basename; -#line 1705 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = g_strconcat (_tmp19_, _tmp20_, NULL); -#line 1705 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->to_path); -#line 1705 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->to_path = _tmp21_; -#line 1705 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp19_); -#line 14925 "Commands.c" - } else { - gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - const gchar* _tmp26_; - gchar* _tmp27_; -#line 1707 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, new_parent_path, NULL); -#line 1707 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = _tmp22_; -#line 1707 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = g_strconcat (_tmp23_, TAG_PATH_SEPARATOR_STRING, NULL); -#line 1707 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = _tmp24_; -#line 1707 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = basename; -#line 1707 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = g_strconcat (_tmp25_, _tmp26_, NULL); -#line 1707 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->to_path); -#line 1707 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->to_path = _tmp27_; -#line 1707 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp25_); -#line 1707 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp23_); -#line 14953 "Commands.c" - } - } -#line 1710 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = self->priv->to_path; -#line 1710 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = hierarchical_tag_utilities_get_root_path_form (_tmp28_); -#line 1710 "/home/jens/Source/shotwell/src/Commands.vala" - new_to_path = _tmp29_; -#line 1711 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = new_to_path; -#line 1711 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp30_ != NULL) { -#line 14966 "Commands.c" - const gchar* _tmp31_; - gchar* _tmp32_; -#line 1712 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp31_ = new_to_path; -#line 1712 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp32_ = g_strdup (_tmp31_); -#line 1712 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->to_path); -#line 1712 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->to_path = _tmp32_; -#line 14977 "Commands.c" - } -#line 1714 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp33_ = tag_global; -#line 1714 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp34_ = self->priv->to_path; -#line 1714 "/home/jens/Source/shotwell/src/Commands.vala" - if (tag_source_collection_exists (_tmp33_, _tmp34_, FALSE)) { -#line 1715 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->to_path_exists = TRUE; -#line 14987 "Commands.c" - } -#line 1717 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp35_ = self->priv->sources_in_play; -#line 1717 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp36_ = tag_get_sources (tag); -#line 1717 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp37_ = _tmp36_; -#line 1717 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_COLLECTION, GeeCollection), _tmp37_); -#line 1717 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp37_); -#line 1719 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp38_ = library_photo_global; -#line 1719 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-destroyed", (GCallback) _reparent_tag_command_on_items_destroyed_source_collection_items_destroyed, self, 0); -#line 1720 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp39_ = video_global; -#line 1720 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-destroyed", (GCallback) _reparent_tag_command_on_items_destroyed_source_collection_items_destroyed, self, 0); -#line 1694 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (new_to_path); -#line 1694 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (basename); -#line 1694 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 15013 "Commands.c" -} - - -ReparentTagCommand* -reparent_tag_command_new (Tag* tag, - const gchar* new_parent_path) -{ -#line 1694 "/home/jens/Source/shotwell/src/Commands.vala" - return reparent_tag_command_construct (TYPE_REPARENT_TAG_COMMAND, tag, new_parent_path); -#line 15023 "Commands.c" -} - - -static void -reparent_tag_command_on_items_destroyed (ReparentTagCommand* self, - GeeCollection* destroyed) -{ -#line 1728 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_REPARENT_TAG_COMMAND (self)); -#line 1728 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (GEE_IS_COLLECTION (destroyed)); -#line 15035 "Commands.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 1729 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (destroyed, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1729 "/home/jens/Source/shotwell/src/Commands.vala" - _source_it = _tmp0_; -#line 1729 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 15045 "Commands.c" - GeeIterator* _tmp1_; - DataSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - GeeHashSet* _tmp4_; - DataSource* _tmp5_; -#line 1729 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _source_it; -#line 1729 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 1729 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 15058 "Commands.c" - } -#line 1729 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _source_it; -#line 1729 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 1729 "/home/jens/Source/shotwell/src/Commands.vala" - source = (DataSource*) _tmp3_; -#line 1730 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->sources_in_play; -#line 1730 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = source; -#line 1730 "/home/jens/Source/shotwell/src/Commands.vala" - if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource))) { -#line 15072 "Commands.c" - CommandManager* _tmp6_; - CommandManager* _tmp7_; -#line 1731 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command)); -#line 1731 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _tmp6_; -#line 1731 "/home/jens/Source/shotwell/src/Commands.vala" - command_manager_reset (_tmp7_); -#line 1731 "/home/jens/Source/shotwell/src/Commands.vala" - _command_manager_unref0 (_tmp7_); -#line 15083 "Commands.c" - } -#line 1729 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 15087 "Commands.c" - } -#line 1729 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_it); -#line 15091 "Commands.c" - } -} - - -static gchar* -string_replace (const gchar* self, - const gchar* old, - const gchar* replacement) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 15115 "Commands.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 15119 "Commands.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 15125 "Commands.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 15129 "Commands.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 15133 "Commands.c" - gchar* _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = g_strdup (self); -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 15141 "Commands.c" - } - { - GRegex* regex = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GRegex* _tmp5_; - GRegex* _tmp6_; - gchar* _tmp7_ = NULL; - GRegex* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_regex_escape_string (old, -1); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp5_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp4_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - regex = _tmp6_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 15169 "Commands.c" - goto __catch469_g_regex_error; - } -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 15178 "Commands.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = regex; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp9_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 15192 "Commands.c" - goto __catch469_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 15203 "Commands.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = _tmp7_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = NULL; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp10_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp7_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 15217 "Commands.c" - } - goto __finally469; - __catch469_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 15231 "Commands.c" - } - __finally469: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 15242 "Commands.c" - } -} - - -static GeeMap* -reparent_tag_command_get_child_structure_at (ReparentTagCommand* self, - const gchar* client_path) -{ - GeeMap* result = NULL; - gchar* path = NULL; - gchar* _tmp0_; - const gchar* _tmp1_ = NULL; - const gchar* _tmp2_; - gchar* _tmp4_; - GeeMap* _result_ = NULL; - GeeHashMap* _tmp5_; - TagSourceCollection* _tmp6_; - const gchar* _tmp7_; - Tag* tag = NULL; - const gchar* _tmp8_; - Tag* _tmp9_; - gchar* path_prefix = NULL; - Tag* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; -#line 1735 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_REPARENT_TAG_COMMAND (self), NULL); -#line 1735 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (client_path != NULL, NULL); -#line 1736 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = hierarchical_tag_utilities_get_root_path_form (client_path); -#line 1736 "/home/jens/Source/shotwell/src/Commands.vala" - path = _tmp0_; -#line 1737 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = path; -#line 1737 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp2_ != NULL) { -#line 15282 "Commands.c" - const gchar* _tmp3_; -#line 1737 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = path; -#line 1737 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp3_; -#line 15288 "Commands.c" - } else { -#line 1737 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = client_path; -#line 15292 "Commands.c" - } -#line 1737 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = g_strdup (_tmp1_); -#line 1737 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (path); -#line 1737 "/home/jens/Source/shotwell/src/Commands.vala" - path = _tmp4_; -#line 1739 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1739 "/home/jens/Source/shotwell/src/Commands.vala" - _result_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_MAP, GeeMap); -#line 1742 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = tag_global; -#line 1742 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = path; -#line 1742 "/home/jens/Source/shotwell/src/Commands.vala" - if (!tag_source_collection_exists (_tmp6_, _tmp7_, FALSE)) { -#line 1743 "/home/jens/Source/shotwell/src/Commands.vala" - result = _result_; -#line 1743 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (path); -#line 1743 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 15316 "Commands.c" - } -#line 1745 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = path; -#line 1745 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = tag_for_path (_tmp8_); -#line 1745 "/home/jens/Source/shotwell/src/Commands.vala" - tag = _tmp9_; -#line 1747 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = tag; -#line 1747 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = tag_get_path (_tmp10_); -#line 1747 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = _tmp11_; -#line 1747 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = g_strconcat (_tmp12_, TAG_PATH_SEPARATOR_STRING, NULL); -#line 1747 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = _tmp13_; -#line 1747 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp12_); -#line 1747 "/home/jens/Source/shotwell/src/Commands.vala" - path_prefix = _tmp14_; -#line 15338 "Commands.c" - { - GeeList* _t_list = NULL; - Tag* _tmp15_; - GeeList* _tmp16_; - gint _t_size = 0; - GeeList* _tmp17_; - gint _tmp18_; - gint _tmp19_; - gint _t_index = 0; -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = tag; -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = tag_get_hierarchical_children (_tmp15_); -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _t_list = _tmp16_; -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = _t_list; -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = _tmp18_; -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _t_size = _tmp19_; -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _t_index = -1; -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 15366 "Commands.c" - gint _tmp20_; - gint _tmp21_; - gint _tmp22_; - Tag* t = NULL; - GeeList* _tmp23_; - gint _tmp24_; - gpointer _tmp25_; - gchar* child_subpath = NULL; - Tag* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - const gchar* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - GeeMap* _tmp32_; - const gchar* _tmp33_; - GeeHashSet* _tmp34_; - GeeHashSet* _tmp35_; - GeeMap* _tmp36_; - const gchar* _tmp37_; - gpointer _tmp38_; - GeeSet* _tmp39_; - Tag* _tmp40_; - GeeCollection* _tmp41_; - GeeCollection* _tmp42_; -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = _t_index; -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _t_index = _tmp20_ + 1; -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = _t_index; -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = _t_size; -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp21_ < _tmp22_)) { -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 15404 "Commands.c" - } -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = _t_list; -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = _t_index; -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = gee_list_get (_tmp23_, _tmp24_); -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - t = (Tag*) _tmp25_; -#line 1749 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = t; -#line 1749 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = tag_get_path (_tmp26_); -#line 1749 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = _tmp27_; -#line 1749 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = path_prefix; -#line 1749 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = string_replace (_tmp28_, _tmp29_, ""); -#line 1749 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp31_ = _tmp30_; -#line 1749 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp28_); -#line 1749 "/home/jens/Source/shotwell/src/Commands.vala" - child_subpath = _tmp31_; -#line 1751 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp32_ = _result_; -#line 1751 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp33_ = child_subpath; -#line 1751 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp34_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1751 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp35_ = _tmp34_; -#line 1751 "/home/jens/Source/shotwell/src/Commands.vala" - gee_map_set (_tmp32_, _tmp33_, G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_SET, GeeSet)); -#line 1751 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp35_); -#line 1752 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp36_ = _result_; -#line 1752 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp37_ = child_subpath; -#line 1752 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp38_ = gee_map_get (_tmp36_, _tmp37_); -#line 1752 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp39_ = (GeeSet*) _tmp38_; -#line 1752 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp40_ = t; -#line 1752 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp41_ = tag_get_sources (_tmp40_); -#line 1752 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp42_ = _tmp41_; -#line 1752 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection), _tmp42_); -#line 1752 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp42_); -#line 1752 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp39_); -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (child_subpath); -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (t); -#line 15466 "Commands.c" - } -#line 1748 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_t_list); -#line 15470 "Commands.c" - } -#line 1755 "/home/jens/Source/shotwell/src/Commands.vala" - result = _result_; -#line 1755 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (path_prefix); -#line 1755 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (tag); -#line 1755 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (path); -#line 1755 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 15482 "Commands.c" -} - - -static void -reparent_tag_command_restore_child_attachments_at (ReparentTagCommand* self, - const gchar* client_path, - GeeMap* child_structure) -{ - gchar* new_path = NULL; - gchar* _tmp0_; - const gchar* _tmp1_ = NULL; - const gchar* _tmp2_; - gchar* path = NULL; - gchar* _tmp4_; - TagSourceCollection* _tmp5_; - const gchar* _tmp6_; - Tag* tag = NULL; - const gchar* _tmp7_; - Tag* _tmp8_; -#line 1758 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_REPARENT_TAG_COMMAND (self)); -#line 1758 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (client_path != NULL); -#line 1758 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (GEE_IS_MAP (child_structure)); -#line 1761 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = hierarchical_tag_utilities_get_root_path_form (client_path); -#line 1761 "/home/jens/Source/shotwell/src/Commands.vala" - new_path = _tmp0_; -#line 1762 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = new_path; -#line 1762 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp2_ != NULL) { -#line 15516 "Commands.c" - const gchar* _tmp3_; -#line 1762 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = new_path; -#line 1762 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp3_; -#line 15522 "Commands.c" - } else { -#line 1762 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = client_path; -#line 15526 "Commands.c" - } -#line 1762 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = g_strdup (_tmp1_); -#line 1762 "/home/jens/Source/shotwell/src/Commands.vala" - path = _tmp4_; -#line 1764 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = tag_global; -#line 1764 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = path; -#line 1764 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (tag_source_collection_exists (_tmp5_, _tmp6_, FALSE), "Tag.global.exists(path)"); -#line 1765 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = path; -#line 1765 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = tag_for_path (_tmp7_); -#line 1765 "/home/jens/Source/shotwell/src/Commands.vala" - tag = _tmp8_; -#line 15544 "Commands.c" - { - GeeIterator* _child_subpath_it = NULL; - GeeSet* _tmp9_; - GeeSet* _tmp10_; - GeeSet* _tmp11_; - GeeIterator* _tmp12_; - GeeIterator* _tmp13_; -#line 1767 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = gee_map_get_keys (child_structure); -#line 1767 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = _tmp9_; -#line 1767 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _tmp10_; -#line 1767 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1767 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = _tmp12_; -#line 1767 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp11_); -#line 1767 "/home/jens/Source/shotwell/src/Commands.vala" - _child_subpath_it = _tmp13_; -#line 1767 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 15568 "Commands.c" - GeeIterator* _tmp14_; - gchar* child_subpath = NULL; - GeeIterator* _tmp15_; - gpointer _tmp16_; - gchar* child_path = NULL; - Tag* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - const gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - Tag* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; - gboolean _tmp28_; - TagSourceCollection* _tmp37_; - const gchar* _tmp38_; -#line 1767 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = _child_subpath_it; -#line 1767 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp14_)) { -#line 1767 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 15594 "Commands.c" - } -#line 1767 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = _child_subpath_it; -#line 1767 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = gee_iterator_get (_tmp15_); -#line 1767 "/home/jens/Source/shotwell/src/Commands.vala" - child_subpath = (gchar*) _tmp16_; -#line 1768 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = tag; -#line 1768 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = tag_get_path (_tmp17_); -#line 1768 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = _tmp18_; -#line 1768 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = g_strconcat (_tmp19_, TAG_PATH_SEPARATOR_STRING, NULL); -#line 1768 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = _tmp20_; -#line 1768 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = child_subpath; -#line 1768 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = g_strconcat (_tmp21_, _tmp22_, NULL); -#line 1768 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = _tmp23_; -#line 1768 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp21_); -#line 1768 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp19_); -#line 1768 "/home/jens/Source/shotwell/src/Commands.vala" - child_path = _tmp24_; -#line 1770 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = tag; -#line 1770 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = tag_get_path (_tmp25_); -#line 1770 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = _tmp26_; -#line 1770 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = !g_str_has_prefix (_tmp27_, TAG_PATH_SEPARATOR_STRING); -#line 1770 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp27_); -#line 1770 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp28_) { -#line 15636 "Commands.c" - Tag* _tmp29_; - Tag* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - gchar* _tmp34_; - const gchar* _tmp35_; - gchar* _tmp36_; -#line 1771 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = tag; -#line 1771 "/home/jens/Source/shotwell/src/Commands.vala" - tag_promote (_tmp29_); -#line 1772 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = tag; -#line 1772 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp31_ = tag_get_path (_tmp30_); -#line 1772 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp32_ = _tmp31_; -#line 1772 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp33_ = g_strconcat (_tmp32_, TAG_PATH_SEPARATOR_STRING, NULL); -#line 1772 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp34_ = _tmp33_; -#line 1772 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp35_ = child_subpath; -#line 1772 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp36_ = g_strconcat (_tmp34_, _tmp35_, NULL); -#line 1772 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (child_path); -#line 1772 "/home/jens/Source/shotwell/src/Commands.vala" - child_path = _tmp36_; -#line 1772 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp34_); -#line 1772 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp32_); -#line 15671 "Commands.c" - } -#line 1775 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp37_ = tag_global; -#line 1775 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp38_ = child_path; -#line 1775 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (tag_source_collection_exists (_tmp37_, _tmp38_, FALSE), "Tag.global.exists(child_path)"); -#line 15679 "Commands.c" - { - GeeIterator* _s_it = NULL; - const gchar* _tmp39_; - gpointer _tmp40_; - GeeSet* _tmp41_; - GeeIterator* _tmp42_; - GeeIterator* _tmp43_; -#line 1777 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp39_ = child_subpath; -#line 1777 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp40_ = gee_map_get (child_structure, _tmp39_); -#line 1777 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp41_ = (GeeSet*) _tmp40_; -#line 1777 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp42_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1777 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp43_ = _tmp42_; -#line 1777 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp41_); -#line 1777 "/home/jens/Source/shotwell/src/Commands.vala" - _s_it = _tmp43_; -#line 1777 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 15703 "Commands.c" - GeeIterator* _tmp44_; - MediaSource* s = NULL; - GeeIterator* _tmp45_; - gpointer _tmp46_; - const gchar* _tmp47_; - Tag* _tmp48_; - Tag* _tmp49_; - MediaSource* _tmp50_; -#line 1777 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp44_ = _s_it; -#line 1777 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp44_)) { -#line 1777 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 15718 "Commands.c" - } -#line 1777 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp45_ = _s_it; -#line 1777 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp46_ = gee_iterator_get (_tmp45_); -#line 1777 "/home/jens/Source/shotwell/src/Commands.vala" - s = (MediaSource*) _tmp46_; -#line 1778 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp47_ = child_path; -#line 1778 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp48_ = tag_for_path (_tmp47_); -#line 1778 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp49_ = _tmp48_; -#line 1778 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp50_ = s; -#line 1778 "/home/jens/Source/shotwell/src/Commands.vala" - tag_attach (_tmp49_, _tmp50_); -#line 1778 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp49_); -#line 1777 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (s); -#line 15740 "Commands.c" - } -#line 1777 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_s_it); -#line 15744 "Commands.c" - } -#line 1767 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (child_path); -#line 1767 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (child_subpath); -#line 15750 "Commands.c" - } -#line 1767 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_child_subpath_it); -#line 15754 "Commands.c" - } -#line 1758 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (tag); -#line 1758 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (path); -#line 1758 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (new_path); -#line 15762 "Commands.c" -} - - -static void -reparent_tag_command_reattach_in_play_sources_at (ReparentTagCommand* self, - const gchar* client_path) -{ - gchar* new_path = NULL; - gchar* _tmp0_; - const gchar* _tmp1_ = NULL; - const gchar* _tmp2_; - gchar* path = NULL; - gchar* _tmp4_; - TagSourceCollection* _tmp5_; - const gchar* _tmp6_; - Tag* tag = NULL; - const gchar* _tmp7_; - Tag* _tmp8_; -#line 1782 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_REPARENT_TAG_COMMAND (self)); -#line 1782 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (client_path != NULL); -#line 1783 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = hierarchical_tag_utilities_get_root_path_form (client_path); -#line 1783 "/home/jens/Source/shotwell/src/Commands.vala" - new_path = _tmp0_; -#line 1784 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = new_path; -#line 1784 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp2_ != NULL) { -#line 15793 "Commands.c" - const gchar* _tmp3_; -#line 1784 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = new_path; -#line 1784 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp3_; -#line 15799 "Commands.c" - } else { -#line 1784 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = client_path; -#line 15803 "Commands.c" - } -#line 1784 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = g_strdup (_tmp1_); -#line 1784 "/home/jens/Source/shotwell/src/Commands.vala" - path = _tmp4_; -#line 1786 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = tag_global; -#line 1786 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = path; -#line 1786 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (tag_source_collection_exists (_tmp5_, _tmp6_, FALSE), "Tag.global.exists(path)"); -#line 1788 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = path; -#line 1788 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = tag_for_path (_tmp7_); -#line 1788 "/home/jens/Source/shotwell/src/Commands.vala" - tag = _tmp8_; -#line 15821 "Commands.c" - { - GeeIterator* _s_it = NULL; - GeeHashSet* _tmp9_; - GeeIterator* _tmp10_; -#line 1790 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = self->priv->sources_in_play; -#line 1790 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1790 "/home/jens/Source/shotwell/src/Commands.vala" - _s_it = _tmp10_; -#line 1790 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 15834 "Commands.c" - GeeIterator* _tmp11_; - MediaSource* s = NULL; - GeeIterator* _tmp12_; - gpointer _tmp13_; - Tag* _tmp14_; - MediaSource* _tmp15_; -#line 1790 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _s_it; -#line 1790 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp11_)) { -#line 1790 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 15847 "Commands.c" - } -#line 1790 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = _s_it; -#line 1790 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = gee_iterator_get (_tmp12_); -#line 1790 "/home/jens/Source/shotwell/src/Commands.vala" - s = (MediaSource*) _tmp13_; -#line 1791 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = tag; -#line 1791 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = s; -#line 1791 "/home/jens/Source/shotwell/src/Commands.vala" - tag_attach (_tmp14_, _tmp15_); -#line 1790 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (s); -#line 15863 "Commands.c" - } -#line 1790 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_s_it); -#line 15867 "Commands.c" - } -#line 1782 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (tag); -#line 1782 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (path); -#line 1782 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (new_path); -#line 15875 "Commands.c" -} - - -static void -reparent_tag_command_save_before_state (ReparentTagCommand* self) -{ - GeeList* _tmp0_; - GeeList* _tmp1_; - GeeArrayList* _tmp2_; - GeeArrayList* _tmp3_; - GeeMap* _tmp4_; - const gchar* _tmp5_; - GeeMap* _tmp6_; - TagSourceCollection* _tmp7_; - const gchar* _tmp8_; - Tag* from_tag = NULL; - const gchar* _tmp9_; - Tag* _tmp10_; - GeeList* _tmp11_; - Tag* _tmp12_; - SourceProxy* _tmp13_; - SourceProxy* _tmp14_; - GeeList* parent_paths = NULL; - const gchar* _tmp15_; - GeeList* _tmp16_; - GeeList* _tmp17_; - gint _tmp18_; - gint _tmp19_; - const gchar* _tmp25_; - const gchar* _tmp29_; - const gchar* _tmp41_; - const gchar* _tmp57_; - GeeList* from_children = NULL; - Tag* _tmp64_; - GeeList* _tmp65_; - const gchar* _tmp79_; - const gchar* _tmp98_; -#line 1794 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_REPARENT_TAG_COMMAND (self)); -#line 1795 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->src_before_state; -#line 1795 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp0_ == NULL, "src_before_state == null"); -#line 1796 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->dest_before_state; -#line 1796 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp1_ == NULL, "dest_before_state == null"); -#line 1798 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = gee_array_list_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL); -#line 1798 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->src_before_state); -#line 1798 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->src_before_state = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_LIST, GeeList); -#line 1799 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_array_list_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL); -#line 1799 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->dest_before_state); -#line 1799 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->dest_before_state = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_LIST, GeeList); -#line 1802 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->in_play_child_structure; -#line 1802 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp4_ == NULL, "in_play_child_structure == null"); -#line 1803 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = self->priv->from_path; -#line 1803 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = reparent_tag_command_get_child_structure_at (self, _tmp5_); -#line 1803 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->in_play_child_structure); -#line 1803 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->in_play_child_structure = _tmp6_; -#line 1806 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = tag_global; -#line 1806 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = self->priv->from_path; -#line 1806 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (tag_source_collection_exists (_tmp7_, _tmp8_, FALSE), "Tag.global.exists(from_path)"); -#line 1807 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = self->priv->from_path; -#line 1807 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = tag_for_path (_tmp9_); -#line 1807 "/home/jens/Source/shotwell/src/Commands.vala" - from_tag = _tmp10_; -#line 1808 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = self->priv->src_before_state; -#line 1808 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = from_tag; -#line 1808 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PROXYABLE, Proxyable)); -#line 1808 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = _tmp13_; -#line 1808 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection), _tmp14_); -#line 1808 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (_tmp14_); -#line 1811 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = self->priv->to_path; -#line 1811 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp15_); -#line 1811 "/home/jens/Source/shotwell/src/Commands.vala" - parent_paths = _tmp16_; -#line 1812 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = parent_paths; -#line 1812 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1812 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = _tmp18_; -#line 1812 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp19_ > 0) { -#line 15985 "Commands.c" - GeeList* _tmp20_; - GeeList* _tmp21_; - gint _tmp22_; - gint _tmp23_; - gpointer _tmp24_; -#line 1813 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = parent_paths; -#line 1813 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = parent_paths; -#line 1813 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1813 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = _tmp22_; -#line 1813 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = gee_list_get (_tmp20_, _tmp23_ - 1); -#line 1813 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->to_path_parent_path); -#line 1813 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->to_path_parent_path = (gchar*) _tmp24_; -#line 16005 "Commands.c" - } -#line 1814 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = self->priv->to_path_parent_path; -#line 1814 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp25_ != NULL) { -#line 16011 "Commands.c" - GeeMap* _tmp26_; - const gchar* _tmp27_; - GeeMap* _tmp28_; -#line 1815 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = self->priv->existing_dest_child_structure; -#line 1815 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp26_ == NULL, "existing_dest_child_structure == null"); -#line 1816 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = self->priv->to_path_parent_path; -#line 1816 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = reparent_tag_command_get_child_structure_at (self, _tmp27_); -#line 1816 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->existing_dest_child_structure); -#line 1816 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->existing_dest_child_structure = _tmp28_; -#line 16027 "Commands.c" - } -#line 1820 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = self->priv->to_path_parent_path; -#line 1820 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp29_ == NULL) { -#line 16033 "Commands.c" - GeeMap* _tmp30_; - GeeSet* _tmp31_; - const gchar* _tmp32_; - GeeMap* _tmp33_; - GeeHashSet* _tmp34_; - GeeSet* _tmp35_; - const gchar* _tmp36_; - Tag* _tmp37_; - Tag* _tmp38_; - GeeCollection* _tmp39_; - GeeCollection* _tmp40_; -#line 1821 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = self->priv->existing_dest_child_structure; -#line 1821 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp30_ == NULL, "existing_dest_child_structure == null"); -#line 1822 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp31_ = self->priv->existing_dest_membership; -#line 1822 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp31_ == NULL, "existing_dest_membership == null"); -#line 1823 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp32_ = self->priv->to_path; -#line 1823 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp33_ = reparent_tag_command_get_child_structure_at (self, _tmp32_); -#line 1823 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->existing_dest_child_structure); -#line 1823 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->existing_dest_child_structure = _tmp33_; -#line 1824 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp34_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1824 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->existing_dest_membership); -#line 1824 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->existing_dest_membership = G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_SET, GeeSet); -#line 1825 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp35_ = self->priv->existing_dest_membership; -#line 1825 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp36_ = self->priv->to_path; -#line 1825 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp37_ = tag_for_path (_tmp36_); -#line 1825 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp38_ = _tmp37_; -#line 1825 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp39_ = tag_get_sources (_tmp38_); -#line 1825 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp40_ = _tmp39_; -#line 1825 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_COLLECTION, GeeCollection), _tmp40_); -#line 1825 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp40_); -#line 1825 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp38_); -#line 16085 "Commands.c" - } -#line 1829 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp41_ = self->priv->to_path_parent_path; -#line 1829 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp41_ != NULL) { -#line 16091 "Commands.c" - gchar* new_tpp = NULL; - const gchar* _tmp42_; - gchar* _tmp43_; - const gchar* _tmp44_ = NULL; - const gchar* _tmp45_; - gchar* _tmp48_; - TagSourceCollection* _tmp49_; - const gchar* _tmp50_; - GeeList* _tmp51_; - const gchar* _tmp52_; - Tag* _tmp53_; - Tag* _tmp54_; - SourceProxy* _tmp55_; - SourceProxy* _tmp56_; -#line 1830 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp42_ = self->priv->to_path_parent_path; -#line 1830 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp43_ = hierarchical_tag_utilities_get_root_path_form (_tmp42_); -#line 1830 "/home/jens/Source/shotwell/src/Commands.vala" - new_tpp = _tmp43_; -#line 1831 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp45_ = new_tpp; -#line 1831 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp45_ != NULL) { -#line 16116 "Commands.c" - const gchar* _tmp46_; -#line 1831 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp46_ = new_tpp; -#line 1831 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp44_ = _tmp46_; -#line 16122 "Commands.c" - } else { - const gchar* _tmp47_; -#line 1831 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp47_ = self->priv->to_path_parent_path; -#line 1831 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp44_ = _tmp47_; -#line 16129 "Commands.c" - } -#line 1831 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp48_ = g_strdup (_tmp44_); -#line 1831 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->to_path_parent_path); -#line 1831 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->to_path_parent_path = _tmp48_; -#line 1832 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp49_ = tag_global; -#line 1832 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp50_ = self->priv->to_path_parent_path; -#line 1832 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (tag_source_collection_exists (_tmp49_, _tmp50_, FALSE), "Tag.global.exists(to_path_parent_path)"); -#line 1833 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp51_ = self->priv->dest_before_state; -#line 1833 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp52_ = self->priv->to_path_parent_path; -#line 1833 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp53_ = tag_for_path (_tmp52_); -#line 1833 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp54_ = _tmp53_; -#line 1833 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp55_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, TYPE_PROXYABLE, Proxyable)); -#line 1833 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp56_ = _tmp55_; -#line 1833 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_COLLECTION, GeeCollection), _tmp56_); -#line 1833 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (_tmp56_); -#line 1833 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp54_); -#line 1829 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (new_tpp); -#line 16163 "Commands.c" - } -#line 1837 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp57_ = self->priv->to_path_parent_path; -#line 1837 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp57_ == NULL) { -#line 16169 "Commands.c" - GeeList* _tmp58_; - const gchar* _tmp59_; - Tag* _tmp60_; - Tag* _tmp61_; - SourceProxy* _tmp62_; - SourceProxy* _tmp63_; -#line 1838 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp58_ = self->priv->dest_before_state; -#line 1838 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp59_ = self->priv->to_path; -#line 1838 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp60_ = tag_for_path (_tmp59_); -#line 1838 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp61_ = _tmp60_; -#line 1838 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp62_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_PROXYABLE, Proxyable)); -#line 1838 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp63_ = _tmp62_; -#line 1838 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, GEE_TYPE_COLLECTION, GeeCollection), _tmp63_); -#line 1838 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (_tmp63_); -#line 1838 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp61_); -#line 16194 "Commands.c" - } -#line 1842 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp64_ = from_tag; -#line 1842 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp65_ = tag_get_hierarchical_children (_tmp64_); -#line 1842 "/home/jens/Source/shotwell/src/Commands.vala" - from_children = _tmp65_; -#line 16202 "Commands.c" - { - gint i = 0; - GeeList* _tmp66_; - gint _tmp67_; - gint _tmp68_; -#line 1843 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp66_ = from_children; -#line 1843 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp67_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1843 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp68_ = _tmp67_; -#line 1843 "/home/jens/Source/shotwell/src/Commands.vala" - i = _tmp68_ - 1; -#line 16216 "Commands.c" - { - gboolean _tmp69_ = FALSE; -#line 1843 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp69_ = TRUE; -#line 1843 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 16223 "Commands.c" - gint _tmp71_; - GeeList* _tmp72_; - GeeList* _tmp73_; - gint _tmp74_; - gpointer _tmp75_; - Tag* _tmp76_; - SourceProxy* _tmp77_; - SourceProxy* _tmp78_; -#line 1843 "/home/jens/Source/shotwell/src/Commands.vala" - if (!_tmp69_) { -#line 16234 "Commands.c" - gint _tmp70_; -#line 1843 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp70_ = i; -#line 1843 "/home/jens/Source/shotwell/src/Commands.vala" - i = _tmp70_ - 1; -#line 16240 "Commands.c" - } -#line 1843 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp69_ = FALSE; -#line 1843 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp71_ = i; -#line 1843 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp71_ >= 0)) { -#line 1843 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 16250 "Commands.c" - } -#line 1844 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp72_ = self->priv->src_before_state; -#line 1844 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp73_ = from_children; -#line 1844 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp74_ = i; -#line 1844 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp75_ = gee_list_get (_tmp73_, _tmp74_); -#line 1844 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp76_ = (Tag*) _tmp75_; -#line 1844 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp77_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, TYPE_PROXYABLE, Proxyable)); -#line 1844 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp78_ = _tmp77_; -#line 1844 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, GEE_TYPE_COLLECTION, GeeCollection), _tmp78_); -#line 1844 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (_tmp78_); -#line 1844 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp76_); -#line 16272 "Commands.c" - } - } - } -#line 1848 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp79_ = self->priv->to_path_parent_path; -#line 1848 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp79_ != NULL) { -#line 16280 "Commands.c" - GeeList* to_children = NULL; - const gchar* _tmp80_; - Tag* _tmp81_; - Tag* _tmp82_; - GeeList* _tmp83_; - GeeList* _tmp84_; -#line 1849 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp80_ = self->priv->to_path_parent_path; -#line 1849 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp81_ = tag_for_path (_tmp80_); -#line 1849 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp82_ = _tmp81_; -#line 1849 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp83_ = tag_get_hierarchical_children (_tmp82_); -#line 1849 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp84_ = _tmp83_; -#line 1849 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp82_); -#line 1849 "/home/jens/Source/shotwell/src/Commands.vala" - to_children = _tmp84_; -#line 16301 "Commands.c" - { - gint i = 0; - GeeList* _tmp85_; - gint _tmp86_; - gint _tmp87_; -#line 1850 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp85_ = to_children; -#line 1850 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp86_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1850 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp87_ = _tmp86_; -#line 1850 "/home/jens/Source/shotwell/src/Commands.vala" - i = _tmp87_ - 1; -#line 16315 "Commands.c" - { - gboolean _tmp88_ = FALSE; -#line 1850 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp88_ = TRUE; -#line 1850 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 16322 "Commands.c" - gint _tmp90_; - GeeList* _tmp91_; - GeeList* _tmp92_; - gint _tmp93_; - gpointer _tmp94_; - Tag* _tmp95_; - SourceProxy* _tmp96_; - SourceProxy* _tmp97_; -#line 1850 "/home/jens/Source/shotwell/src/Commands.vala" - if (!_tmp88_) { -#line 16333 "Commands.c" - gint _tmp89_; -#line 1850 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp89_ = i; -#line 1850 "/home/jens/Source/shotwell/src/Commands.vala" - i = _tmp89_ - 1; -#line 16339 "Commands.c" - } -#line 1850 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp88_ = FALSE; -#line 1850 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp90_ = i; -#line 1850 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp90_ >= 0)) { -#line 1850 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 16349 "Commands.c" - } -#line 1851 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp91_ = self->priv->dest_before_state; -#line 1851 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp92_ = to_children; -#line 1851 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp93_ = i; -#line 1851 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp94_ = gee_list_get (_tmp92_, _tmp93_); -#line 1851 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp95_ = (Tag*) _tmp94_; -#line 1851 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp96_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp95_, TYPE_PROXYABLE, Proxyable)); -#line 1851 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp97_ = _tmp96_; -#line 1851 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp91_, GEE_TYPE_COLLECTION, GeeCollection), _tmp97_); -#line 1851 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (_tmp97_); -#line 1851 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp95_); -#line 16371 "Commands.c" - } - } - } -#line 1848 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (to_children); -#line 16377 "Commands.c" - } -#line 1856 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp98_ = self->priv->to_path_parent_path; -#line 1856 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp98_ == NULL) { -#line 16383 "Commands.c" - GeeList* to_children = NULL; - const gchar* _tmp99_; - Tag* _tmp100_; - Tag* _tmp101_; - GeeList* _tmp102_; - GeeList* _tmp103_; -#line 1857 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp99_ = self->priv->to_path; -#line 1857 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp100_ = tag_for_path (_tmp99_); -#line 1857 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp101_ = _tmp100_; -#line 1857 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp102_ = tag_get_hierarchical_children (_tmp101_); -#line 1857 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp103_ = _tmp102_; -#line 1857 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp101_); -#line 1857 "/home/jens/Source/shotwell/src/Commands.vala" - to_children = _tmp103_; -#line 16404 "Commands.c" - { - gint i = 0; - GeeList* _tmp104_; - gint _tmp105_; - gint _tmp106_; -#line 1858 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp104_ = to_children; -#line 1858 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp105_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp104_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1858 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp106_ = _tmp105_; -#line 1858 "/home/jens/Source/shotwell/src/Commands.vala" - i = _tmp106_ - 1; -#line 16418 "Commands.c" - { - gboolean _tmp107_ = FALSE; -#line 1858 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp107_ = TRUE; -#line 1858 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 16425 "Commands.c" - gint _tmp109_; - GeeList* _tmp110_; - GeeList* _tmp111_; - gint _tmp112_; - gpointer _tmp113_; - Tag* _tmp114_; - SourceProxy* _tmp115_; - SourceProxy* _tmp116_; -#line 1858 "/home/jens/Source/shotwell/src/Commands.vala" - if (!_tmp107_) { -#line 16436 "Commands.c" - gint _tmp108_; -#line 1858 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp108_ = i; -#line 1858 "/home/jens/Source/shotwell/src/Commands.vala" - i = _tmp108_ - 1; -#line 16442 "Commands.c" - } -#line 1858 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp107_ = FALSE; -#line 1858 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp109_ = i; -#line 1858 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp109_ >= 0)) { -#line 1858 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 16452 "Commands.c" - } -#line 1859 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp110_ = self->priv->dest_before_state; -#line 1859 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp111_ = to_children; -#line 1859 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp112_ = i; -#line 1859 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp113_ = gee_list_get (_tmp111_, _tmp112_); -#line 1859 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp114_ = (Tag*) _tmp113_; -#line 1859 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp115_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp114_, TYPE_PROXYABLE, Proxyable)); -#line 1859 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp116_ = _tmp115_; -#line 1859 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp110_, GEE_TYPE_COLLECTION, GeeCollection), _tmp116_); -#line 1859 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (_tmp116_); -#line 1859 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp114_); -#line 16474 "Commands.c" - } - } - } -#line 1856 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (to_children); -#line 16480 "Commands.c" - } -#line 1794 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (from_children); -#line 1794 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (parent_paths); -#line 1794 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (from_tag); -#line 16488 "Commands.c" -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 16512 "Commands.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 16521 "Commands.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 16542 "Commands.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 16546 "Commands.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 16552 "Commands.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 16562 "Commands.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 16566 "Commands.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 16574 "Commands.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 16581 "Commands.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 16585 "Commands.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 16591 "Commands.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 16603 "Commands.c" -} - - -static void -reparent_tag_command_restore_before_state (ReparentTagCommand* self) -{ - GeeList* _tmp0_; - GeeMap* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp10_ = NULL; - const gchar* _tmp11_; - gchar* unwind_target = NULL; - gchar* _tmp14_; - const gchar* _tmp89_; -#line 1863 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_REPARENT_TAG_COMMAND (self)); -#line 1864 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->src_before_state; -#line 1864 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp0_ != NULL, "src_before_state != null"); -#line 1865 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->existing_dest_child_structure; -#line 1865 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp1_ != NULL, "existing_dest_child_structure != null"); -#line 1868 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->to_path_parent_path; -#line 1868 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp2_ != NULL) { -#line 16632 "Commands.c" - gchar* new_tpp = NULL; - const gchar* _tmp3_; - gchar* _tmp4_; - const gchar* _tmp5_ = NULL; - const gchar* _tmp6_; - gchar* _tmp9_; -#line 1869 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = self->priv->to_path_parent_path; -#line 1869 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = hierarchical_tag_utilities_get_root_path_form (_tmp3_); -#line 1869 "/home/jens/Source/shotwell/src/Commands.vala" - new_tpp = _tmp4_; -#line 1870 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = new_tpp; -#line 1870 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp6_ != NULL) { -#line 16649 "Commands.c" - const gchar* _tmp7_; -#line 1870 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = new_tpp; -#line 1870 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp7_; -#line 16655 "Commands.c" - } else { - const gchar* _tmp8_; -#line 1870 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = self->priv->to_path_parent_path; -#line 1870 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp8_; -#line 16662 "Commands.c" - } -#line 1870 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = g_strdup (_tmp5_); -#line 1870 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->to_path_parent_path); -#line 1870 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->to_path_parent_path = _tmp9_; -#line 1868 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (new_tpp); -#line 16672 "Commands.c" - } -#line 1873 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = self->priv->to_path_parent_path; -#line 1873 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp11_ != NULL) { -#line 16678 "Commands.c" - const gchar* _tmp12_; -#line 1873 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = self->priv->to_path_parent_path; -#line 1873 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = _tmp12_; -#line 16684 "Commands.c" - } else { - const gchar* _tmp13_; -#line 1873 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = self->priv->to_path; -#line 1873 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = _tmp13_; -#line 16691 "Commands.c" - } -#line 1873 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = g_strdup (_tmp10_); -#line 1873 "/home/jens/Source/shotwell/src/Commands.vala" - unwind_target = _tmp14_; -#line 16697 "Commands.c" - { - GeeList* _t_list = NULL; - const gchar* _tmp15_; - Tag* _tmp16_; - Tag* _tmp17_; - GeeList* _tmp18_; - GeeList* _tmp19_; - gint _t_size = 0; - GeeList* _tmp20_; - gint _tmp21_; - gint _tmp22_; - gint _t_index = 0; -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = unwind_target; -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = tag_for_path (_tmp15_); -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = _tmp16_; -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = tag_get_hierarchical_children (_tmp17_); -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = _tmp18_; -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp17_); -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _t_list = _tmp19_; -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = _t_list; -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = _tmp21_; -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _t_size = _tmp22_; -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _t_index = -1; -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 16736 "Commands.c" - gint _tmp23_; - gint _tmp24_; - gint _tmp25_; - Tag* t = NULL; - GeeList* _tmp26_; - gint _tmp27_; - gpointer _tmp28_; - gchar* child_subpath = NULL; - Tag* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - const gchar* _tmp32_; - gchar* _tmp33_; - gchar* _tmp34_; - const gchar* _tmp35_; - GeeMap* _tmp38_; - const gchar* _tmp39_; -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = _t_index; -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _t_index = _tmp23_ + 1; -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = _t_index; -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = _t_size; -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp24_ < _tmp25_)) { -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 16766 "Commands.c" - } -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = _t_list; -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = _t_index; -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = gee_list_get (_tmp26_, _tmp27_); -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - t = (Tag*) _tmp28_; -#line 1875 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = t; -#line 1875 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = tag_get_path (_tmp29_); -#line 1875 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp31_ = _tmp30_; -#line 1875 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp32_ = unwind_target; -#line 1875 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp33_ = string_replace (_tmp31_, _tmp32_, ""); -#line 1875 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp34_ = _tmp33_; -#line 1875 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp31_); -#line 1875 "/home/jens/Source/shotwell/src/Commands.vala" - child_subpath = _tmp34_; -#line 1876 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp35_ = child_subpath; -#line 1876 "/home/jens/Source/shotwell/src/Commands.vala" - if (g_str_has_prefix (_tmp35_, TAG_PATH_SEPARATOR_STRING)) { -#line 16796 "Commands.c" - const gchar* _tmp36_; - gchar* _tmp37_; -#line 1877 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp36_ = child_subpath; -#line 1877 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp37_ = string_substring (_tmp36_, (glong) 1, (glong) -1); -#line 1877 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (child_subpath); -#line 1877 "/home/jens/Source/shotwell/src/Commands.vala" - child_subpath = _tmp37_; -#line 16807 "Commands.c" - } -#line 1879 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp38_ = self->priv->existing_dest_child_structure; -#line 1879 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp39_ = child_subpath; -#line 1879 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_map_has_key (_tmp38_, _tmp39_)) { -#line 16815 "Commands.c" - TagSourceCollection* _tmp40_; - TagSourceCollection* _tmp41_; - Tag* _tmp42_; - Marker* _tmp43_; - Marker* _tmp44_; -#line 1880 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp40_ = tag_global; -#line 1880 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp41_ = tag_global; -#line 1880 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp42_ = t; -#line 1880 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp43_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_DATA_OBJECT, DataObject)); -#line 1880 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp44_ = _tmp43_; -#line 1880 "/home/jens/Source/shotwell/src/Commands.vala" - source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp44_, TRUE, NULL, NULL, NULL); -#line 1880 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp44_); -#line 16835 "Commands.c" - } else { - GeeSet* starting_sources = NULL; - GeeHashSet* _tmp45_; - GeeSet* _tmp46_; - Tag* _tmp47_; - GeeCollection* _tmp48_; - GeeCollection* _tmp49_; -#line 1882 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp45_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1882 "/home/jens/Source/shotwell/src/Commands.vala" - starting_sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_SET, GeeSet); -#line 1883 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp46_ = starting_sources; -#line 1883 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp47_ = t; -#line 1883 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp48_ = tag_get_sources (_tmp47_); -#line 1883 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp49_ = _tmp48_; -#line 1883 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_COLLECTION, GeeCollection), _tmp49_); -#line 1883 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp49_); -#line 16859 "Commands.c" - { - GeeIterator* _source_it = NULL; - GeeSet* _tmp50_; - GeeIterator* _tmp51_; -#line 1884 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp50_ = starting_sources; -#line 1884 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp51_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1884 "/home/jens/Source/shotwell/src/Commands.vala" - _source_it = _tmp51_; -#line 1884 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 16872 "Commands.c" - GeeIterator* _tmp52_; - MediaSource* source = NULL; - GeeIterator* _tmp53_; - gpointer _tmp54_; - GeeMap* _tmp55_; - const gchar* _tmp56_; - gpointer _tmp57_; - GeeSet* _tmp58_; - MediaSource* _tmp59_; - gboolean _tmp60_; -#line 1884 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp52_ = _source_it; -#line 1884 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp52_)) { -#line 1884 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 16889 "Commands.c" - } -#line 1884 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp53_ = _source_it; -#line 1884 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp54_ = gee_iterator_get (_tmp53_); -#line 1884 "/home/jens/Source/shotwell/src/Commands.vala" - source = (MediaSource*) _tmp54_; -#line 1885 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp55_ = self->priv->existing_dest_child_structure; -#line 1885 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp56_ = child_subpath; -#line 1885 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp57_ = gee_map_get (_tmp55_, _tmp56_); -#line 1885 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp58_ = (GeeSet*) _tmp57_; -#line 1885 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp59_ = source; -#line 1885 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp60_ = !gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, GEE_TYPE_COLLECTION, GeeCollection), _tmp59_); -#line 1885 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp58_); -#line 1885 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp60_) { -#line 16913 "Commands.c" - Tag* _tmp61_; - MediaSource* _tmp62_; - GeeList* _tmp63_; - GeeList* _tmp64_; -#line 1886 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp61_ = t; -#line 1886 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp62_ = source; -#line 1886 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp63_ = tag_detach (_tmp61_, _tmp62_); -#line 1886 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp64_ = _tmp63_; -#line 1886 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp64_); -#line 16928 "Commands.c" - } -#line 1884 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 16932 "Commands.c" - } -#line 1884 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_it); -#line 16936 "Commands.c" - } -#line 1879 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (starting_sources); -#line 16940 "Commands.c" - } -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (child_subpath); -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (t); -#line 16946 "Commands.c" - } -#line 1874 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_t_list); -#line 16950 "Commands.c" - } - { - gint i = 0; -#line 1890 "/home/jens/Source/shotwell/src/Commands.vala" - i = 0; -#line 16956 "Commands.c" - { - gboolean _tmp65_ = FALSE; -#line 1890 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp65_ = TRUE; -#line 1890 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 16963 "Commands.c" - gint _tmp67_; - GeeList* _tmp68_; - gint _tmp69_; - gint _tmp70_; - GeeList* _tmp71_; - gint _tmp72_; - gpointer _tmp73_; - SourceProxy* _tmp74_; - DataSource* _tmp75_; - DataSource* _tmp76_; -#line 1890 "/home/jens/Source/shotwell/src/Commands.vala" - if (!_tmp65_) { -#line 16976 "Commands.c" - gint _tmp66_; -#line 1890 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp66_ = i; -#line 1890 "/home/jens/Source/shotwell/src/Commands.vala" - i = _tmp66_ + 1; -#line 16982 "Commands.c" - } -#line 1890 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp65_ = FALSE; -#line 1890 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp67_ = i; -#line 1890 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp68_ = self->priv->src_before_state; -#line 1890 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp69_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1890 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp70_ = _tmp69_; -#line 1890 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp67_ < _tmp70_)) { -#line 1890 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 16998 "Commands.c" - } -#line 1891 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp71_ = self->priv->src_before_state; -#line 1891 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp72_ = i; -#line 1891 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp73_ = gee_list_get (_tmp71_, _tmp72_); -#line 1891 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp74_ = (SourceProxy*) _tmp73_; -#line 1891 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp75_ = source_proxy_get_source (_tmp74_); -#line 1891 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp76_ = _tmp75_; -#line 1891 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp76_); -#line 1891 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (_tmp74_); -#line 17016 "Commands.c" - } - } - } - { - gint i = 0; -#line 1893 "/home/jens/Source/shotwell/src/Commands.vala" - i = 0; -#line 17024 "Commands.c" - { - gboolean _tmp77_ = FALSE; -#line 1893 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp77_ = TRUE; -#line 1893 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 17031 "Commands.c" - gint _tmp79_; - GeeList* _tmp80_; - gint _tmp81_; - gint _tmp82_; - GeeList* _tmp83_; - gint _tmp84_; - gpointer _tmp85_; - SourceProxy* _tmp86_; - DataSource* _tmp87_; - DataSource* _tmp88_; -#line 1893 "/home/jens/Source/shotwell/src/Commands.vala" - if (!_tmp77_) { -#line 17044 "Commands.c" - gint _tmp78_; -#line 1893 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp78_ = i; -#line 1893 "/home/jens/Source/shotwell/src/Commands.vala" - i = _tmp78_ + 1; -#line 17050 "Commands.c" - } -#line 1893 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp77_ = FALSE; -#line 1893 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp79_ = i; -#line 1893 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp80_ = self->priv->dest_before_state; -#line 1893 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp81_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1893 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp82_ = _tmp81_; -#line 1893 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp79_ < _tmp82_)) { -#line 1893 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 17066 "Commands.c" - } -#line 1894 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp83_ = self->priv->dest_before_state; -#line 1894 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp84_ = i; -#line 1894 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp85_ = gee_list_get (_tmp83_, _tmp84_); -#line 1894 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp86_ = (SourceProxy*) _tmp85_; -#line 1894 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp87_ = source_proxy_get_source (_tmp86_); -#line 1894 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp88_ = _tmp87_; -#line 1894 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp88_); -#line 1894 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (_tmp86_); -#line 17084 "Commands.c" - } - } - } -#line 1896 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp89_ = self->priv->to_path_parent_path; -#line 1896 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp89_ != NULL) { -#line 17092 "Commands.c" - gchar* new_path = NULL; - const gchar* _tmp90_; - gchar* _tmp91_; - const gchar* _tmp92_ = NULL; - const gchar* _tmp93_; - gchar* path = NULL; - gchar* _tmp96_; - TagSourceCollection* _tmp97_; - const gchar* _tmp98_; - Tag* t = NULL; - const gchar* _tmp99_; - Tag* _tmp100_; - GeeList* kids = NULL; - Tag* _tmp101_; - GeeList* _tmp102_; - const gchar* _tmp120_; - GeeMap* _tmp121_; -#line 1897 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp90_ = self->priv->to_path_parent_path; -#line 1897 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp91_ = hierarchical_tag_utilities_get_root_path_form (_tmp90_); -#line 1897 "/home/jens/Source/shotwell/src/Commands.vala" - new_path = _tmp91_; -#line 1898 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp93_ = new_path; -#line 1898 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp93_ != NULL) { -#line 17120 "Commands.c" - const gchar* _tmp94_; -#line 1898 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp94_ = new_path; -#line 1898 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp92_ = _tmp94_; -#line 17126 "Commands.c" - } else { - const gchar* _tmp95_; -#line 1898 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp95_ = self->priv->to_path_parent_path; -#line 1898 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp92_ = _tmp95_; -#line 17133 "Commands.c" - } -#line 1898 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp96_ = g_strdup (_tmp92_); -#line 1898 "/home/jens/Source/shotwell/src/Commands.vala" - path = _tmp96_; -#line 1900 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp97_ = tag_global; -#line 1900 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp98_ = path; -#line 1900 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (tag_source_collection_exists (_tmp97_, _tmp98_, FALSE), "Tag.global.exists(path)"); -#line 1902 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp99_ = path; -#line 1902 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp100_ = tag_for_path (_tmp99_); -#line 1902 "/home/jens/Source/shotwell/src/Commands.vala" - t = _tmp100_; -#line 1904 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp101_ = t; -#line 1904 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp102_ = tag_get_hierarchical_children (_tmp101_); -#line 1904 "/home/jens/Source/shotwell/src/Commands.vala" - kids = _tmp102_; -#line 17157 "Commands.c" - { - GeeList* _kidtag_list = NULL; - GeeList* _tmp103_; - GeeList* _tmp104_; - gint _kidtag_size = 0; - GeeList* _tmp105_; - gint _tmp106_; - gint _tmp107_; - gint _kidtag_index = 0; -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp103_ = kids; -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp104_ = _g_object_ref0 (_tmp103_); -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - _kidtag_list = _tmp104_; -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp105_ = _kidtag_list; -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp106_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp105_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp107_ = _tmp106_; -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - _kidtag_size = _tmp107_; -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - _kidtag_index = -1; -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 17185 "Commands.c" - gint _tmp108_; - gint _tmp109_; - gint _tmp110_; - Tag* kidtag = NULL; - GeeList* _tmp111_; - gint _tmp112_; - gpointer _tmp113_; - Tag* _tmp114_; - Tag* _tmp115_; - GeeCollection* _tmp116_; - GeeCollection* _tmp117_; - GeeMultiMap* _tmp118_; - GeeMultiMap* _tmp119_; -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp108_ = _kidtag_index; -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - _kidtag_index = _tmp108_ + 1; -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp109_ = _kidtag_index; -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp110_ = _kidtag_size; -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp109_ < _tmp110_)) { -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 17211 "Commands.c" - } -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp111_ = _kidtag_list; -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp112_ = _kidtag_index; -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp113_ = gee_list_get (_tmp111_, _tmp112_); -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - kidtag = (Tag*) _tmp113_; -#line 1906 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp114_ = kidtag; -#line 1906 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp115_ = kidtag; -#line 1906 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp116_ = tag_get_sources (_tmp115_); -#line 1906 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp117_ = _tmp116_; -#line 1906 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp118_ = tag_detach_many (_tmp114_, _tmp117_); -#line 1906 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp119_ = _tmp118_; -#line 1906 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp119_); -#line 1906 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp117_); -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (kidtag); -#line 17239 "Commands.c" - } -#line 1905 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_kidtag_list); -#line 17243 "Commands.c" - } -#line 1908 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp120_ = path; -#line 1908 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp121_ = self->priv->existing_dest_child_structure; -#line 1908 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_restore_child_attachments_at (self, _tmp120_, _tmp121_); -#line 1896 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (kids); -#line 1896 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (t); -#line 1896 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (path); -#line 1896 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (new_path); -#line 17259 "Commands.c" - } else { - GeeSet* _tmp122_; - const gchar* _tmp123_; - Tag* _tmp124_; - Tag* _tmp125_; - const gchar* _tmp126_; - Tag* _tmp127_; - Tag* _tmp128_; - GeeCollection* _tmp129_; - GeeCollection* _tmp130_; - GeeMultiMap* _tmp131_; - GeeMultiMap* _tmp132_; - const gchar* _tmp133_; - Tag* _tmp134_; - Tag* _tmp135_; - GeeSet* _tmp136_; - GeeList* kids = NULL; - const gchar* _tmp137_; - Tag* _tmp138_; - Tag* _tmp139_; - GeeList* _tmp140_; - GeeList* _tmp141_; - const gchar* _tmp159_; - GeeMap* _tmp160_; -#line 1910 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp122_ = self->priv->existing_dest_membership; -#line 1910 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp122_ != NULL, "existing_dest_membership != null"); -#line 1911 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp123_ = self->priv->to_path; -#line 1911 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp124_ = tag_for_path (_tmp123_); -#line 1911 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp125_ = _tmp124_; -#line 1911 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp126_ = self->priv->to_path; -#line 1911 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp127_ = tag_for_path (_tmp126_); -#line 1911 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp128_ = _tmp127_; -#line 1911 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp129_ = tag_get_sources (_tmp128_); -#line 1911 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp130_ = _tmp129_; -#line 1911 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp131_ = tag_detach_many (_tmp125_, _tmp130_); -#line 1911 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp132_ = _tmp131_; -#line 1911 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp132_); -#line 1911 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp130_); -#line 1911 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp128_); -#line 1911 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp125_); -#line 1912 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp133_ = self->priv->to_path; -#line 1912 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp134_ = tag_for_path (_tmp133_); -#line 1912 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp135_ = _tmp134_; -#line 1912 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp136_ = self->priv->existing_dest_membership; -#line 1912 "/home/jens/Source/shotwell/src/Commands.vala" - tag_attach_many (_tmp135_, G_TYPE_CHECK_INSTANCE_CAST (_tmp136_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1912 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp135_); -#line 1914 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp137_ = self->priv->to_path; -#line 1914 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp138_ = tag_for_path (_tmp137_); -#line 1914 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp139_ = _tmp138_; -#line 1914 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp140_ = tag_get_hierarchical_children (_tmp139_); -#line 1914 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp141_ = _tmp140_; -#line 1914 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp139_); -#line 1914 "/home/jens/Source/shotwell/src/Commands.vala" - kids = _tmp141_; -#line 17342 "Commands.c" - { - GeeList* _kidtag_list = NULL; - GeeList* _tmp142_; - GeeList* _tmp143_; - gint _kidtag_size = 0; - GeeList* _tmp144_; - gint _tmp145_; - gint _tmp146_; - gint _kidtag_index = 0; -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp142_ = kids; -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp143_ = _g_object_ref0 (_tmp142_); -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - _kidtag_list = _tmp143_; -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp144_ = _kidtag_list; -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp145_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp144_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp146_ = _tmp145_; -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - _kidtag_size = _tmp146_; -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - _kidtag_index = -1; -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 17370 "Commands.c" - gint _tmp147_; - gint _tmp148_; - gint _tmp149_; - Tag* kidtag = NULL; - GeeList* _tmp150_; - gint _tmp151_; - gpointer _tmp152_; - Tag* _tmp153_; - Tag* _tmp154_; - GeeCollection* _tmp155_; - GeeCollection* _tmp156_; - GeeMultiMap* _tmp157_; - GeeMultiMap* _tmp158_; -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp147_ = _kidtag_index; -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - _kidtag_index = _tmp147_ + 1; -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp148_ = _kidtag_index; -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp149_ = _kidtag_size; -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp148_ < _tmp149_)) { -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 17396 "Commands.c" - } -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp150_ = _kidtag_list; -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp151_ = _kidtag_index; -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp152_ = gee_list_get (_tmp150_, _tmp151_); -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - kidtag = (Tag*) _tmp152_; -#line 1916 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp153_ = kidtag; -#line 1916 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp154_ = kidtag; -#line 1916 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp155_ = tag_get_sources (_tmp154_); -#line 1916 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp156_ = _tmp155_; -#line 1916 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp157_ = tag_detach_many (_tmp153_, _tmp156_); -#line 1916 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp158_ = _tmp157_; -#line 1916 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp158_); -#line 1916 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp156_); -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (kidtag); -#line 17424 "Commands.c" - } -#line 1915 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_kidtag_list); -#line 17428 "Commands.c" - } -#line 1918 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp159_ = self->priv->to_path; -#line 1918 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp160_ = self->priv->existing_dest_child_structure; -#line 1918 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_restore_child_attachments_at (self, _tmp159_, _tmp160_); -#line 1896 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (kids); -#line 17438 "Commands.c" - } -#line 1863 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (unwind_target); -#line 17442 "Commands.c" -} - - -static void -reparent_tag_command_save_after_state (ReparentTagCommand* self) -{ - GeeList* _tmp0_; - GeeArrayList* _tmp1_; - TagSourceCollection* _tmp2_; - const gchar* _tmp3_; - Tag* to_tag = NULL; - const gchar* _tmp4_; - Tag* _tmp5_; - GeeList* _tmp6_; - Tag* _tmp7_; - SourceProxy* _tmp8_; - SourceProxy* _tmp9_; - GeeList* to_children = NULL; - Tag* _tmp10_; - GeeList* _tmp11_; -#line 1922 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_REPARENT_TAG_COMMAND (self)); -#line 1923 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->after_state; -#line 1923 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp0_ == NULL, "after_state == null"); -#line 1925 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_array_list_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL); -#line 1925 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->after_state); -#line 1925 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->after_state = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_LIST, GeeList); -#line 1928 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = tag_global; -#line 1928 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = self->priv->to_path; -#line 1928 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (tag_source_collection_exists (_tmp2_, _tmp3_, FALSE), "Tag.global.exists(to_path)"); -#line 1929 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->to_path; -#line 1929 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = tag_for_path (_tmp4_); -#line 1929 "/home/jens/Source/shotwell/src/Commands.vala" - to_tag = _tmp5_; -#line 1930 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = self->priv->after_state; -#line 1930 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = to_tag; -#line 1930 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PROXYABLE, Proxyable)); -#line 1930 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = _tmp8_; -#line 1930 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), _tmp9_); -#line 1930 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (_tmp9_); -#line 1933 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = to_tag; -#line 1933 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = tag_get_hierarchical_children (_tmp10_); -#line 1933 "/home/jens/Source/shotwell/src/Commands.vala" - to_children = _tmp11_; -#line 17505 "Commands.c" - { - gint i = 0; - GeeList* _tmp12_; - gint _tmp13_; - gint _tmp14_; -#line 1934 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = to_children; -#line 1934 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1934 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = _tmp13_; -#line 1934 "/home/jens/Source/shotwell/src/Commands.vala" - i = _tmp14_ - 1; -#line 17519 "Commands.c" - { - gboolean _tmp15_ = FALSE; -#line 1934 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = TRUE; -#line 1934 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 17526 "Commands.c" - gint _tmp17_; - GeeList* _tmp18_; - GeeList* _tmp19_; - gint _tmp20_; - gpointer _tmp21_; - Tag* _tmp22_; - SourceProxy* _tmp23_; - SourceProxy* _tmp24_; -#line 1934 "/home/jens/Source/shotwell/src/Commands.vala" - if (!_tmp15_) { -#line 17537 "Commands.c" - gint _tmp16_; -#line 1934 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = i; -#line 1934 "/home/jens/Source/shotwell/src/Commands.vala" - i = _tmp16_ - 1; -#line 17543 "Commands.c" - } -#line 1934 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = FALSE; -#line 1934 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = i; -#line 1934 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp17_ >= 0)) { -#line 1934 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 17553 "Commands.c" - } -#line 1935 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = self->priv->after_state; -#line 1935 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = to_children; -#line 1935 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = i; -#line 1935 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = gee_list_get (_tmp19_, _tmp20_); -#line 1935 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = (Tag*) _tmp21_; -#line 1935 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_PROXYABLE, Proxyable)); -#line 1935 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = _tmp23_; -#line 1935 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection), _tmp24_); -#line 1935 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (_tmp24_); -#line 1935 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp22_); -#line 17575 "Commands.c" - } - } - } -#line 1922 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (to_children); -#line 1922 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (to_tag); -#line 17583 "Commands.c" -} - - -static void -reparent_tag_command_restore_after_state (ReparentTagCommand* self) -{ - GeeList* _tmp0_; -#line 1938 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_REPARENT_TAG_COMMAND (self)); -#line 1939 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->after_state; -#line 1939 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp0_ != NULL, "after_state != null"); -#line 17597 "Commands.c" - { - gint i = 0; -#line 1941 "/home/jens/Source/shotwell/src/Commands.vala" - i = 0; -#line 17602 "Commands.c" - { - gboolean _tmp1_ = FALSE; -#line 1941 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = TRUE; -#line 1941 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 17609 "Commands.c" - gint _tmp3_; - GeeList* _tmp4_; - gint _tmp5_; - gint _tmp6_; - GeeList* _tmp7_; - gint _tmp8_; - gpointer _tmp9_; - SourceProxy* _tmp10_; - DataSource* _tmp11_; - DataSource* _tmp12_; -#line 1941 "/home/jens/Source/shotwell/src/Commands.vala" - if (!_tmp1_) { -#line 17622 "Commands.c" - gint _tmp2_; -#line 1941 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = i; -#line 1941 "/home/jens/Source/shotwell/src/Commands.vala" - i = _tmp2_ + 1; -#line 17628 "Commands.c" - } -#line 1941 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = FALSE; -#line 1941 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = i; -#line 1941 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->after_state; -#line 1941 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1941 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tmp5_; -#line 1941 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp3_ < _tmp6_)) { -#line 1941 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 17644 "Commands.c" - } -#line 1942 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = self->priv->after_state; -#line 1942 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = i; -#line 1942 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = gee_list_get (_tmp7_, _tmp8_); -#line 1942 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = (SourceProxy*) _tmp9_; -#line 1942 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = source_proxy_get_source (_tmp10_); -#line 1942 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = _tmp11_; -#line 1942 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp12_); -#line 1942 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (_tmp10_); -#line 17662 "Commands.c" - } - } - } -} - - -static void -reparent_tag_command_prepare_parent (ReparentTagCommand* self, - const gchar* path) -{ - Tag* new_parent = NULL; - Tag* _tmp22_; -#line 1945 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_REPARENT_TAG_COMMAND (self)); -#line 1945 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (path != NULL); -#line 1947 "/home/jens/Source/shotwell/src/Commands.vala" - new_parent = NULL; -#line 1948 "/home/jens/Source/shotwell/src/Commands.vala" - if (g_str_has_prefix (path, TAG_PATH_SEPARATOR_STRING)) { -#line 17683 "Commands.c" - GeeList* parent_paths = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _tmp2_; - gint _tmp3_; -#line 1949 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = hierarchical_tag_utilities_enumerate_parent_paths (path); -#line 1949 "/home/jens/Source/shotwell/src/Commands.vala" - parent_paths = _tmp0_; -#line 1950 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = parent_paths; -#line 1950 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1950 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 1950 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp3_ > 0) { -#line 17701 "Commands.c" - gchar* immediate_parent_path = NULL; - GeeList* _tmp4_; - GeeList* _tmp5_; - gint _tmp6_; - gint _tmp7_; - gpointer _tmp8_; - TagSourceCollection* _tmp9_; - const gchar* _tmp10_; -#line 1951 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = parent_paths; -#line 1951 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = parent_paths; -#line 1951 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1951 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _tmp6_; -#line 1951 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = gee_list_get (_tmp4_, _tmp7_ - 1); -#line 1951 "/home/jens/Source/shotwell/src/Commands.vala" - immediate_parent_path = (gchar*) _tmp8_; -#line 1952 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = tag_global; -#line 1952 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = immediate_parent_path; -#line 1952 "/home/jens/Source/shotwell/src/Commands.vala" - if (tag_source_collection_exists (_tmp9_, _tmp10_, FALSE)) { -#line 17728 "Commands.c" - const gchar* _tmp11_; - Tag* _tmp12_; -#line 1953 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = immediate_parent_path; -#line 1953 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = tag_for_path (_tmp11_); -#line 1953 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (new_parent); -#line 1953 "/home/jens/Source/shotwell/src/Commands.vala" - new_parent = _tmp12_; -#line 17739 "Commands.c" - } else { - TagSourceCollection* _tmp13_; - const gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gboolean _tmp17_; -#line 1954 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = tag_global; -#line 1954 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = immediate_parent_path; -#line 1954 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = string_substring (_tmp14_, (glong) 1, (glong) -1); -#line 1954 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = _tmp15_; -#line 1954 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = tag_source_collection_exists (_tmp13_, _tmp16_, FALSE); -#line 1954 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp16_); -#line 1954 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp17_) { -#line 17760 "Commands.c" - const gchar* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - Tag* _tmp21_; -#line 1955 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = immediate_parent_path; -#line 1955 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = string_substring (_tmp18_, (glong) 1, (glong) -1); -#line 1955 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = _tmp19_; -#line 1955 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = tag_for_path (_tmp20_); -#line 1955 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (new_parent); -#line 1955 "/home/jens/Source/shotwell/src/Commands.vala" - new_parent = _tmp21_; -#line 1955 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp20_); -#line 17779 "Commands.c" - } else { -#line 1957 "/home/jens/Source/shotwell/src/Commands.vala" - g_assert_not_reached (); -#line 17783 "Commands.c" - } - } -#line 1950 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (immediate_parent_path); -#line 17788 "Commands.c" - } -#line 1948 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (parent_paths); -#line 17792 "Commands.c" - } -#line 1960 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = new_parent; -#line 1960 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp22_ != NULL) { -#line 17798 "Commands.c" - Tag* _tmp23_; -#line 1961 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = new_parent; -#line 1961 "/home/jens/Source/shotwell/src/Commands.vala" - tag_promote (_tmp23_); -#line 17804 "Commands.c" - } -#line 1945 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (new_parent); -#line 17808 "Commands.c" -} - - -static void -reparent_tag_command_do_source_parent_detachments (ReparentTagCommand* self) -{ - TagSourceCollection* _tmp0_; - const gchar* _tmp1_; - Tag* from_tag = NULL; - const gchar* _tmp2_; - Tag* _tmp3_; - GeeMap* _tmp4_; -#line 1964 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_REPARENT_TAG_COMMAND (self)); -#line 1965 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = tag_global; -#line 1965 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->from_path; -#line 1965 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (tag_source_collection_exists (_tmp0_, _tmp1_, FALSE), "Tag.global.exists(from_path)"); -#line 1966 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->from_path; -#line 1966 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = tag_for_path (_tmp2_); -#line 1966 "/home/jens/Source/shotwell/src/Commands.vala" - from_tag = _tmp3_; -#line 1969 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->src_parent_detachments; -#line 1969 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp4_ == NULL) { -#line 17839 "Commands.c" - GeeHashMap* _tmp5_; -#line 1970 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1970 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->src_parent_detachments); -#line 1970 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->src_parent_detachments = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_MAP, GeeMap); -#line 17847 "Commands.c" - { - GeeIterator* _source_it = NULL; - Tag* _tmp6_; - GeeCollection* _tmp7_; - GeeCollection* _tmp8_; - GeeIterator* _tmp9_; - GeeIterator* _tmp10_; -#line 1971 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = from_tag; -#line 1971 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = tag_get_sources (_tmp6_); -#line 1971 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _tmp7_; -#line 1971 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1971 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = _tmp9_; -#line 1971 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp8_); -#line 1971 "/home/jens/Source/shotwell/src/Commands.vala" - _source_it = _tmp10_; -#line 1971 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 17871 "Commands.c" - GeeIterator* _tmp11_; - MediaSource* source = NULL; - GeeIterator* _tmp12_; - gpointer _tmp13_; - Tag* current_parent = NULL; - Tag* _tmp14_; - Tag* _tmp15_; - gint running_attach_count = 0; - Tag* _tmp16_; - MediaSource* _tmp17_; -#line 1971 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _source_it; -#line 1971 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp11_)) { -#line 1971 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 17888 "Commands.c" - } -#line 1971 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = _source_it; -#line 1971 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = gee_iterator_get (_tmp12_); -#line 1971 "/home/jens/Source/shotwell/src/Commands.vala" - source = (MediaSource*) _tmp13_; -#line 1972 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = from_tag; -#line 1972 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = tag_get_hierarchical_parent (_tmp14_); -#line 1972 "/home/jens/Source/shotwell/src/Commands.vala" - current_parent = _tmp15_; -#line 1973 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = from_tag; -#line 1973 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = source; -#line 1973 "/home/jens/Source/shotwell/src/Commands.vala" - running_attach_count = tag_get_attachment_count (_tmp16_, _tmp17_) + 1; -#line 1974 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 17910 "Commands.c" - Tag* _tmp18_; - gchar* current_parent_path = NULL; - Tag* _tmp19_; - gchar* _tmp20_; - GeeMap* _tmp21_; - const gchar* _tmp22_; - gint curr_parent_attach_count = 0; - Tag* _tmp27_; - MediaSource* _tmp28_; - gint _tmp29_; - gint _tmp30_; - gint _tmp31_; - gint _tmp32_; - gint _tmp38_; - Tag* _tmp39_; - Tag* _tmp40_; -#line 1974 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = current_parent; -#line 1974 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp18_ != NULL)) { -#line 1974 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 17933 "Commands.c" - } -#line 1975 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = current_parent; -#line 1975 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = tag_get_path (_tmp19_); -#line 1975 "/home/jens/Source/shotwell/src/Commands.vala" - current_parent_path = _tmp20_; -#line 1976 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = self->priv->src_parent_detachments; -#line 1976 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = current_parent_path; -#line 1976 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_map_has_key (_tmp21_, _tmp22_)) { -#line 17947 "Commands.c" - GeeMap* _tmp23_; - const gchar* _tmp24_; - GeeHashSet* _tmp25_; - GeeHashSet* _tmp26_; -#line 1977 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = self->priv->src_parent_detachments; -#line 1977 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = current_parent_path; -#line 1977 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1977 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = _tmp25_; -#line 1977 "/home/jens/Source/shotwell/src/Commands.vala" - gee_map_set (_tmp23_, _tmp24_, G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_SET, GeeSet)); -#line 1977 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp26_); -#line 17964 "Commands.c" - } -#line 1979 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = current_parent; -#line 1979 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = source; -#line 1979 "/home/jens/Source/shotwell/src/Commands.vala" - curr_parent_attach_count = tag_get_attachment_count (_tmp27_, _tmp28_); -#line 1981 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = curr_parent_attach_count; -#line 1981 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = running_attach_count; -#line 1981 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp29_ >= _tmp30_, "curr_parent_attach_count >= running_attach_count"); -#line 1985 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp31_ = curr_parent_attach_count; -#line 1985 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp32_ = running_attach_count; -#line 1985 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp31_ == _tmp32_) { -#line 17984 "Commands.c" - GeeMap* _tmp33_; - const gchar* _tmp34_; - gpointer _tmp35_; - GeeSet* _tmp36_; - MediaSource* _tmp37_; -#line 1986 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp33_ = self->priv->src_parent_detachments; -#line 1986 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp34_ = current_parent_path; -#line 1986 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp35_ = gee_map_get (_tmp33_, _tmp34_); -#line 1986 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp36_ = (GeeSet*) _tmp35_; -#line 1986 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp37_ = source; -#line 1986 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_COLLECTION, GeeCollection), _tmp37_); -#line 1986 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp36_); -#line 18004 "Commands.c" - } -#line 1988 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp38_ = running_attach_count; -#line 1988 "/home/jens/Source/shotwell/src/Commands.vala" - running_attach_count = _tmp38_ + 1; -#line 1989 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp39_ = current_parent; -#line 1989 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp40_ = tag_get_hierarchical_parent (_tmp39_); -#line 1989 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (current_parent); -#line 1989 "/home/jens/Source/shotwell/src/Commands.vala" - current_parent = _tmp40_; -#line 1974 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (current_parent_path); -#line 18020 "Commands.c" - } -#line 1971 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (current_parent); -#line 1971 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 18026 "Commands.c" - } -#line 1971 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_it); -#line 18030 "Commands.c" - } - } - { - GeeIterator* _p_it = NULL; - GeeMap* _tmp41_; - GeeSet* _tmp42_; - GeeSet* _tmp43_; - GeeSet* _tmp44_; - GeeIterator* _tmp45_; - GeeIterator* _tmp46_; -#line 1995 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp41_ = self->priv->src_parent_detachments; -#line 1995 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp42_ = gee_map_get_keys (_tmp41_); -#line 1995 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp43_ = _tmp42_; -#line 1995 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp44_ = _tmp43_; -#line 1995 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp45_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1995 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp46_ = _tmp45_; -#line 1995 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp44_); -#line 1995 "/home/jens/Source/shotwell/src/Commands.vala" - _p_it = _tmp46_; -#line 1995 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 18059 "Commands.c" - GeeIterator* _tmp47_; - gchar* p = NULL; - GeeIterator* _tmp48_; - gpointer _tmp49_; -#line 1995 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp47_ = _p_it; -#line 1995 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp47_)) { -#line 1995 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 18070 "Commands.c" - } -#line 1995 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp48_ = _p_it; -#line 1995 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp49_ = gee_iterator_get (_tmp48_); -#line 1995 "/home/jens/Source/shotwell/src/Commands.vala" - p = (gchar*) _tmp49_; -#line 18078 "Commands.c" - { - GeeIterator* _s_it = NULL; - GeeMap* _tmp50_; - const gchar* _tmp51_; - gpointer _tmp52_; - GeeSet* _tmp53_; - GeeIterator* _tmp54_; - GeeIterator* _tmp55_; -#line 1996 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp50_ = self->priv->src_parent_detachments; -#line 1996 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp51_ = p; -#line 1996 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp52_ = gee_map_get (_tmp50_, _tmp51_); -#line 1996 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp53_ = (GeeSet*) _tmp52_; -#line 1996 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp54_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1996 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp55_ = _tmp54_; -#line 1996 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp53_); -#line 1996 "/home/jens/Source/shotwell/src/Commands.vala" - _s_it = _tmp55_; -#line 1996 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 18105 "Commands.c" - GeeIterator* _tmp56_; - MediaSource* s = NULL; - GeeIterator* _tmp57_; - gpointer _tmp58_; - const gchar* _tmp59_; - Tag* _tmp60_; - Tag* _tmp61_; - MediaSource* _tmp62_; - GeeList* _tmp63_; - GeeList* _tmp64_; -#line 1996 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp56_ = _s_it; -#line 1996 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp56_)) { -#line 1996 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 18122 "Commands.c" - } -#line 1996 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp57_ = _s_it; -#line 1996 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp58_ = gee_iterator_get (_tmp57_); -#line 1996 "/home/jens/Source/shotwell/src/Commands.vala" - s = (MediaSource*) _tmp58_; -#line 1997 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp59_ = p; -#line 1997 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp60_ = tag_for_path (_tmp59_); -#line 1997 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp61_ = _tmp60_; -#line 1997 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp62_ = s; -#line 1997 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp63_ = tag_detach (_tmp61_, _tmp62_); -#line 1997 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp64_ = _tmp63_; -#line 1997 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp64_); -#line 1997 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp61_); -#line 1996 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (s); -#line 18148 "Commands.c" - } -#line 1996 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_s_it); -#line 18152 "Commands.c" - } -#line 1995 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (p); -#line 18156 "Commands.c" - } -#line 1995 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_p_it); -#line 18160 "Commands.c" - } -#line 1964 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (from_tag); -#line 18164 "Commands.c" -} - - -static void -reparent_tag_command_do_source_parent_reattachments (ReparentTagCommand* self) -{ - GeeMap* _tmp0_; -#line 2000 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_REPARENT_TAG_COMMAND (self)); -#line 2001 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->src_parent_detachments; -#line 2001 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp0_ != NULL, "src_parent_detachments != null"); -#line 18178 "Commands.c" - { - GeeIterator* _p_it = NULL; - GeeMap* _tmp1_; - GeeSet* _tmp2_; - GeeSet* _tmp3_; - GeeSet* _tmp4_; - GeeIterator* _tmp5_; - GeeIterator* _tmp6_; -#line 2003 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->src_parent_detachments; -#line 2003 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = gee_map_get_keys (_tmp1_); -#line 2003 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 2003 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _tmp3_; -#line 2003 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2003 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tmp5_; -#line 2003 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp4_); -#line 2003 "/home/jens/Source/shotwell/src/Commands.vala" - _p_it = _tmp6_; -#line 2003 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 18205 "Commands.c" - GeeIterator* _tmp7_; - gchar* p = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; -#line 2003 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _p_it; -#line 2003 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp7_)) { -#line 2003 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 18216 "Commands.c" - } -#line 2003 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _p_it; -#line 2003 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = gee_iterator_get (_tmp8_); -#line 2003 "/home/jens/Source/shotwell/src/Commands.vala" - p = (gchar*) _tmp9_; -#line 18224 "Commands.c" - { - GeeIterator* _s_it = NULL; - GeeMap* _tmp10_; - const gchar* _tmp11_; - gpointer _tmp12_; - GeeSet* _tmp13_; - GeeIterator* _tmp14_; - GeeIterator* _tmp15_; -#line 2004 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = self->priv->src_parent_detachments; -#line 2004 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = p; -#line 2004 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = gee_map_get (_tmp10_, _tmp11_); -#line 2004 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = (GeeSet*) _tmp12_; -#line 2004 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2004 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = _tmp14_; -#line 2004 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp13_); -#line 2004 "/home/jens/Source/shotwell/src/Commands.vala" - _s_it = _tmp15_; -#line 2004 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 18251 "Commands.c" - GeeIterator* _tmp16_; - MediaSource* s = NULL; - GeeIterator* _tmp17_; - gpointer _tmp18_; - const gchar* _tmp19_; - Tag* _tmp20_; - Tag* _tmp21_; - MediaSource* _tmp22_; -#line 2004 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = _s_it; -#line 2004 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp16_)) { -#line 2004 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 18266 "Commands.c" - } -#line 2004 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = _s_it; -#line 2004 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = gee_iterator_get (_tmp17_); -#line 2004 "/home/jens/Source/shotwell/src/Commands.vala" - s = (MediaSource*) _tmp18_; -#line 2005 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = p; -#line 2005 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = tag_for_path (_tmp19_); -#line 2005 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = _tmp20_; -#line 2005 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = s; -#line 2005 "/home/jens/Source/shotwell/src/Commands.vala" - tag_attach (_tmp21_, _tmp22_); -#line 2005 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp21_); -#line 2004 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (s); -#line 18288 "Commands.c" - } -#line 2004 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_s_it); -#line 18292 "Commands.c" - } -#line 2003 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (p); -#line 18296 "Commands.c" - } -#line 2003 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_p_it); -#line 18300 "Commands.c" - } -} - - -static void -reparent_tag_command_do_destination_parent_detachments (ReparentTagCommand* self) -{ - GeeMap* _tmp0_; -#line 2008 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_REPARENT_TAG_COMMAND (self)); -#line 2009 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->dest_parent_attachments; -#line 2009 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp0_ != NULL, "dest_parent_attachments != null"); -#line 18315 "Commands.c" - { - GeeIterator* _p_it = NULL; - GeeMap* _tmp1_; - GeeSet* _tmp2_; - GeeSet* _tmp3_; - GeeSet* _tmp4_; - GeeIterator* _tmp5_; - GeeIterator* _tmp6_; -#line 2011 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->dest_parent_attachments; -#line 2011 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = gee_map_get_keys (_tmp1_); -#line 2011 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 2011 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _tmp3_; -#line 2011 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2011 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tmp5_; -#line 2011 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp4_); -#line 2011 "/home/jens/Source/shotwell/src/Commands.vala" - _p_it = _tmp6_; -#line 2011 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 18342 "Commands.c" - GeeIterator* _tmp7_; - gchar* p = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; -#line 2011 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _p_it; -#line 2011 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp7_)) { -#line 2011 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 18353 "Commands.c" - } -#line 2011 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _p_it; -#line 2011 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = gee_iterator_get (_tmp8_); -#line 2011 "/home/jens/Source/shotwell/src/Commands.vala" - p = (gchar*) _tmp9_; -#line 18361 "Commands.c" - { - GeeIterator* _s_it = NULL; - GeeMap* _tmp10_; - const gchar* _tmp11_; - gpointer _tmp12_; - GeeSet* _tmp13_; - GeeIterator* _tmp14_; - GeeIterator* _tmp15_; -#line 2012 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = self->priv->dest_parent_attachments; -#line 2012 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = p; -#line 2012 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = gee_map_get (_tmp10_, _tmp11_); -#line 2012 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = (GeeSet*) _tmp12_; -#line 2012 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2012 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = _tmp14_; -#line 2012 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp13_); -#line 2012 "/home/jens/Source/shotwell/src/Commands.vala" - _s_it = _tmp15_; -#line 2012 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 18388 "Commands.c" - GeeIterator* _tmp16_; - MediaSource* s = NULL; - GeeIterator* _tmp17_; - gpointer _tmp18_; - const gchar* _tmp19_; - Tag* _tmp20_; - Tag* _tmp21_; - MediaSource* _tmp22_; - GeeList* _tmp23_; - GeeList* _tmp24_; -#line 2012 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = _s_it; -#line 2012 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp16_)) { -#line 2012 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 18405 "Commands.c" - } -#line 2012 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = _s_it; -#line 2012 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = gee_iterator_get (_tmp17_); -#line 2012 "/home/jens/Source/shotwell/src/Commands.vala" - s = (MediaSource*) _tmp18_; -#line 2013 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = p; -#line 2013 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = tag_for_path (_tmp19_); -#line 2013 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = _tmp20_; -#line 2013 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = s; -#line 2013 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = tag_detach (_tmp21_, _tmp22_); -#line 2013 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = _tmp23_; -#line 2013 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp24_); -#line 2013 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp21_); -#line 2012 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (s); -#line 18431 "Commands.c" - } -#line 2012 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_s_it); -#line 18435 "Commands.c" - } -#line 2011 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (p); -#line 18439 "Commands.c" - } -#line 2011 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_p_it); -#line 18443 "Commands.c" - } -} - - -static void -reparent_tag_command_do_destination_parent_reattachments (ReparentTagCommand* self) -{ - GeeMap* _tmp0_; -#line 2016 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_REPARENT_TAG_COMMAND (self)); -#line 2017 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->dest_parent_attachments; -#line 2017 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp0_ != NULL, "dest_parent_attachments != null"); -#line 18458 "Commands.c" - { - GeeIterator* _p_it = NULL; - GeeMap* _tmp1_; - GeeSet* _tmp2_; - GeeSet* _tmp3_; - GeeSet* _tmp4_; - GeeIterator* _tmp5_; - GeeIterator* _tmp6_; -#line 2019 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->dest_parent_attachments; -#line 2019 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = gee_map_get_keys (_tmp1_); -#line 2019 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 2019 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _tmp3_; -#line 2019 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2019 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tmp5_; -#line 2019 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp4_); -#line 2019 "/home/jens/Source/shotwell/src/Commands.vala" - _p_it = _tmp6_; -#line 2019 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 18485 "Commands.c" - GeeIterator* _tmp7_; - gchar* p = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; -#line 2019 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _p_it; -#line 2019 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp7_)) { -#line 2019 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 18496 "Commands.c" - } -#line 2019 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _p_it; -#line 2019 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = gee_iterator_get (_tmp8_); -#line 2019 "/home/jens/Source/shotwell/src/Commands.vala" - p = (gchar*) _tmp9_; -#line 18504 "Commands.c" - { - GeeIterator* _s_it = NULL; - GeeMap* _tmp10_; - const gchar* _tmp11_; - gpointer _tmp12_; - GeeSet* _tmp13_; - GeeIterator* _tmp14_; - GeeIterator* _tmp15_; -#line 2020 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = self->priv->dest_parent_attachments; -#line 2020 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = p; -#line 2020 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = gee_map_get (_tmp10_, _tmp11_); -#line 2020 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = (GeeSet*) _tmp12_; -#line 2020 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2020 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = _tmp14_; -#line 2020 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp13_); -#line 2020 "/home/jens/Source/shotwell/src/Commands.vala" - _s_it = _tmp15_; -#line 2020 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 18531 "Commands.c" - GeeIterator* _tmp16_; - MediaSource* s = NULL; - GeeIterator* _tmp17_; - gpointer _tmp18_; - const gchar* _tmp19_; - Tag* _tmp20_; - Tag* _tmp21_; - MediaSource* _tmp22_; -#line 2020 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = _s_it; -#line 2020 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp16_)) { -#line 2020 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 18546 "Commands.c" - } -#line 2020 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = _s_it; -#line 2020 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = gee_iterator_get (_tmp17_); -#line 2020 "/home/jens/Source/shotwell/src/Commands.vala" - s = (MediaSource*) _tmp18_; -#line 2021 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = p; -#line 2021 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = tag_for_path (_tmp19_); -#line 2021 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = _tmp20_; -#line 2021 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = s; -#line 2021 "/home/jens/Source/shotwell/src/Commands.vala" - tag_attach (_tmp21_, _tmp22_); -#line 2021 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp21_); -#line 2020 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (s); -#line 18568 "Commands.c" - } -#line 2020 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_s_it); -#line 18572 "Commands.c" - } -#line 2019 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (p); -#line 18576 "Commands.c" - } -#line 2019 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_p_it); -#line 18580 "Commands.c" - } -} - - -static void -reparent_tag_command_copy_subtree (ReparentTagCommand* self, - const gchar* from, - const gchar* to) -{ - TagSourceCollection* _tmp0_; - Tag* from_tag = NULL; - Tag* _tmp1_; - Tag* to_tag = NULL; - Tag* _tmp2_; - GeeHashMap* _tmp3_; - GeeList* from_children = NULL; - Tag* _tmp42_; - GeeList* _tmp43_; -#line 2024 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_REPARENT_TAG_COMMAND (self)); -#line 2024 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (from != NULL); -#line 2024 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (to != NULL); -#line 2025 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = tag_global; -#line 2025 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (tag_source_collection_exists (_tmp0_, from, FALSE), "Tag.global.exists(from)"); -#line 2026 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = tag_for_path (from); -#line 2026 "/home/jens/Source/shotwell/src/Commands.vala" - from_tag = _tmp1_; -#line 2029 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = tag_for_path (to); -#line 2029 "/home/jens/Source/shotwell/src/Commands.vala" - to_tag = _tmp2_; -#line 2033 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 2033 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->dest_parent_attachments); -#line 2033 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->dest_parent_attachments = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_MAP, GeeMap); -#line 18623 "Commands.c" - { - GeeIterator* _source_it = NULL; - Tag* _tmp4_; - GeeCollection* _tmp5_; - GeeCollection* _tmp6_; - GeeIterator* _tmp7_; - GeeIterator* _tmp8_; -#line 2034 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = from_tag; -#line 2034 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = tag_get_sources (_tmp4_); -#line 2034 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tmp5_; -#line 2034 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2034 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _tmp7_; -#line 2034 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp6_); -#line 2034 "/home/jens/Source/shotwell/src/Commands.vala" - _source_it = _tmp8_; -#line 2034 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 18647 "Commands.c" - GeeIterator* _tmp9_; - MediaSource* source = NULL; - GeeIterator* _tmp10_; - gpointer _tmp11_; - Tag* current_parent = NULL; - Tag* _tmp12_; - Tag* _tmp13_; -#line 2034 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = _source_it; -#line 2034 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp9_)) { -#line 2034 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 18661 "Commands.c" - } -#line 2034 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = _source_it; -#line 2034 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = gee_iterator_get (_tmp10_); -#line 2034 "/home/jens/Source/shotwell/src/Commands.vala" - source = (MediaSource*) _tmp11_; -#line 2035 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = to_tag; -#line 2035 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = tag_get_hierarchical_parent (_tmp12_); -#line 2035 "/home/jens/Source/shotwell/src/Commands.vala" - current_parent = _tmp13_; -#line 2036 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 18677 "Commands.c" - Tag* _tmp14_; - gchar* current_parent_path = NULL; - Tag* _tmp15_; - gchar* _tmp16_; - GeeMap* _tmp17_; - const gchar* _tmp18_; - Tag* _tmp23_; - MediaSource* _tmp24_; - Tag* _tmp30_; - Tag* _tmp31_; -#line 2036 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = current_parent; -#line 2036 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp14_ != NULL)) { -#line 2036 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 18694 "Commands.c" - } -#line 2037 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = current_parent; -#line 2037 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = tag_get_path (_tmp15_); -#line 2037 "/home/jens/Source/shotwell/src/Commands.vala" - current_parent_path = _tmp16_; -#line 2038 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = self->priv->dest_parent_attachments; -#line 2038 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = current_parent_path; -#line 2038 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_map_has_key (_tmp17_, _tmp18_)) { -#line 18708 "Commands.c" - GeeMap* _tmp19_; - const gchar* _tmp20_; - GeeHashSet* _tmp21_; - GeeHashSet* _tmp22_; -#line 2039 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = self->priv->dest_parent_attachments; -#line 2039 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = current_parent_path; -#line 2039 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 2039 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = _tmp21_; -#line 2039 "/home/jens/Source/shotwell/src/Commands.vala" - gee_map_set (_tmp19_, _tmp20_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_SET, GeeSet)); -#line 2039 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp22_); -#line 18725 "Commands.c" - } -#line 2041 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = current_parent; -#line 2041 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = source; -#line 2041 "/home/jens/Source/shotwell/src/Commands.vala" - if (!tag_contains (_tmp23_, _tmp24_)) { -#line 18733 "Commands.c" - GeeMap* _tmp25_; - const gchar* _tmp26_; - gpointer _tmp27_; - GeeSet* _tmp28_; - MediaSource* _tmp29_; -#line 2042 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = self->priv->dest_parent_attachments; -#line 2042 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = current_parent_path; -#line 2042 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = gee_map_get (_tmp25_, _tmp26_); -#line 2042 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = (GeeSet*) _tmp27_; -#line 2042 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = source; -#line 2042 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection), _tmp29_); -#line 2042 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp28_); -#line 18753 "Commands.c" - } -#line 2044 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = current_parent; -#line 2044 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp31_ = tag_get_hierarchical_parent (_tmp30_); -#line 2044 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (current_parent); -#line 2044 "/home/jens/Source/shotwell/src/Commands.vala" - current_parent = _tmp31_; -#line 2036 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (current_parent_path); -#line 18765 "Commands.c" - } -#line 2034 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (current_parent); -#line 2034 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 18771 "Commands.c" - } -#line 2034 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_it); -#line 18775 "Commands.c" - } - { - GeeIterator* _source_it = NULL; - Tag* _tmp32_; - GeeCollection* _tmp33_; - GeeCollection* _tmp34_; - GeeIterator* _tmp35_; - GeeIterator* _tmp36_; -#line 2048 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp32_ = from_tag; -#line 2048 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp33_ = tag_get_sources (_tmp32_); -#line 2048 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp34_ = _tmp33_; -#line 2048 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp35_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2048 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp36_ = _tmp35_; -#line 2048 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp34_); -#line 2048 "/home/jens/Source/shotwell/src/Commands.vala" - _source_it = _tmp36_; -#line 2048 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 18800 "Commands.c" - GeeIterator* _tmp37_; - MediaSource* source = NULL; - GeeIterator* _tmp38_; - gpointer _tmp39_; - Tag* _tmp40_; - MediaSource* _tmp41_; -#line 2048 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp37_ = _source_it; -#line 2048 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp37_)) { -#line 2048 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 18813 "Commands.c" - } -#line 2048 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp38_ = _source_it; -#line 2048 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp39_ = gee_iterator_get (_tmp38_); -#line 2048 "/home/jens/Source/shotwell/src/Commands.vala" - source = (MediaSource*) _tmp39_; -#line 2049 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp40_ = to_tag; -#line 2049 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp41_ = source; -#line 2049 "/home/jens/Source/shotwell/src/Commands.vala" - tag_attach (_tmp40_, _tmp41_); -#line 2048 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 18829 "Commands.c" - } -#line 2048 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_it); -#line 18833 "Commands.c" - } -#line 2053 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp42_ = from_tag; -#line 2053 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp43_ = tag_get_hierarchical_children (_tmp42_); -#line 2053 "/home/jens/Source/shotwell/src/Commands.vala" - from_children = _tmp43_; -#line 18841 "Commands.c" - { - gint i = 0; - GeeList* _tmp44_; - gint _tmp45_; - gint _tmp46_; -#line 2054 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp44_ = from_children; -#line 2054 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp45_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 2054 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp46_ = _tmp45_; -#line 2054 "/home/jens/Source/shotwell/src/Commands.vala" - i = _tmp46_ - 1; -#line 18855 "Commands.c" - { - gboolean _tmp47_ = FALSE; -#line 2054 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp47_ = TRUE; -#line 2054 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 18862 "Commands.c" - gint _tmp49_; - Tag* from_child = NULL; - GeeList* _tmp50_; - gint _tmp51_; - gpointer _tmp52_; - gchar* child_subpath = NULL; - Tag* _tmp53_; - gchar* _tmp54_; - gchar* _tmp55_; - gchar* _tmp56_; - gchar* _tmp57_; - gchar* _tmp58_; - gchar* _tmp59_; - Tag* to_child = NULL; - Tag* _tmp60_; - gchar* _tmp61_; - gchar* _tmp62_; - gchar* _tmp63_; - gchar* _tmp64_; - const gchar* _tmp65_; - gchar* _tmp66_; - gchar* _tmp67_; - Tag* _tmp68_; - Tag* _tmp69_; -#line 2054 "/home/jens/Source/shotwell/src/Commands.vala" - if (!_tmp47_) { -#line 18889 "Commands.c" - gint _tmp48_; -#line 2054 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp48_ = i; -#line 2054 "/home/jens/Source/shotwell/src/Commands.vala" - i = _tmp48_ - 1; -#line 18895 "Commands.c" - } -#line 2054 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp47_ = FALSE; -#line 2054 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp49_ = i; -#line 2054 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp49_ >= 0)) { -#line 2054 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 18905 "Commands.c" - } -#line 2055 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp50_ = from_children; -#line 2055 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp51_ = i; -#line 2055 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp52_ = gee_list_get (_tmp50_, _tmp51_); -#line 2055 "/home/jens/Source/shotwell/src/Commands.vala" - from_child = (Tag*) _tmp52_; -#line 2057 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp53_ = from_child; -#line 2057 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp54_ = tag_get_path (_tmp53_); -#line 2057 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp55_ = _tmp54_; -#line 2057 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp56_ = g_strconcat (from, TAG_PATH_SEPARATOR_STRING, NULL); -#line 2057 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp57_ = _tmp56_; -#line 2057 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp58_ = string_replace (_tmp55_, _tmp57_, ""); -#line 2057 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp59_ = _tmp58_; -#line 2057 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp57_); -#line 2057 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp55_); -#line 2057 "/home/jens/Source/shotwell/src/Commands.vala" - child_subpath = _tmp59_; -#line 2060 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp60_ = to_tag; -#line 2060 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp61_ = tag_get_path (_tmp60_); -#line 2060 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp62_ = _tmp61_; -#line 2060 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp63_ = g_strconcat (_tmp62_, TAG_PATH_SEPARATOR_STRING, NULL); -#line 2060 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp64_ = _tmp63_; -#line 2060 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp65_ = child_subpath; -#line 2060 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp66_ = g_strconcat (_tmp64_, _tmp65_, NULL); -#line 2060 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp67_ = _tmp66_; -#line 2060 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp68_ = tag_for_path (_tmp67_); -#line 2060 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp69_ = _tmp68_; -#line 2060 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp67_); -#line 2060 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp64_); -#line 2060 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp62_); -#line 2060 "/home/jens/Source/shotwell/src/Commands.vala" - to_child = _tmp69_; -#line 18963 "Commands.c" - { - GeeIterator* _source_it = NULL; - Tag* _tmp70_; - GeeCollection* _tmp71_; - GeeCollection* _tmp72_; - GeeIterator* _tmp73_; - GeeIterator* _tmp74_; -#line 2063 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp70_ = from_child; -#line 2063 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp71_ = tag_get_sources (_tmp70_); -#line 2063 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp72_ = _tmp71_; -#line 2063 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp73_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2063 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp74_ = _tmp73_; -#line 2063 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp72_); -#line 2063 "/home/jens/Source/shotwell/src/Commands.vala" - _source_it = _tmp74_; -#line 2063 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 18987 "Commands.c" - GeeIterator* _tmp75_; - MediaSource* source = NULL; - GeeIterator* _tmp76_; - gpointer _tmp77_; - Tag* _tmp78_; - MediaSource* _tmp79_; -#line 2063 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp75_ = _source_it; -#line 2063 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp75_)) { -#line 2063 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 19000 "Commands.c" - } -#line 2063 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp76_ = _source_it; -#line 2063 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp77_ = gee_iterator_get (_tmp76_); -#line 2063 "/home/jens/Source/shotwell/src/Commands.vala" - source = (MediaSource*) _tmp77_; -#line 2064 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp78_ = to_child; -#line 2064 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp79_ = source; -#line 2064 "/home/jens/Source/shotwell/src/Commands.vala" - tag_attach (_tmp78_, _tmp79_); -#line 2063 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 19016 "Commands.c" - } -#line 2063 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_it); -#line 19020 "Commands.c" - } -#line 2054 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (to_child); -#line 2054 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (child_subpath); -#line 2054 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (from_child); -#line 19028 "Commands.c" - } - } - } -#line 2024 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (from_children); -#line 2024 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (to_tag); -#line 2024 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (from_tag); -#line 19038 "Commands.c" -} - - -static void -reparent_tag_command_destroy_subtree (ReparentTagCommand* self, - const gchar* client_path) -{ - gchar* victim_path = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - TagSourceCollection* _tmp3_; - const gchar* _tmp4_; - Tag* victim = NULL; - const gchar* _tmp5_; - Tag* _tmp6_; - GeeList* victim_children = NULL; - Tag* _tmp7_; - GeeList* _tmp8_; - TagSourceCollection* _tmp23_; - TagSourceCollection* _tmp24_; - Tag* _tmp25_; - Marker* _tmp26_; - Marker* _tmp27_; -#line 2068 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_REPARENT_TAG_COMMAND (self)); -#line 2068 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (client_path != NULL); -#line 2069 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = hierarchical_tag_utilities_get_root_path_form (client_path); -#line 2069 "/home/jens/Source/shotwell/src/Commands.vala" - victim_path = _tmp0_; -#line 2070 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = victim_path; -#line 2070 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp1_ == NULL) { -#line 19074 "Commands.c" - gchar* _tmp2_; -#line 2071 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = g_strdup (client_path); -#line 2071 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (victim_path); -#line 2071 "/home/jens/Source/shotwell/src/Commands.vala" - victim_path = _tmp2_; -#line 19082 "Commands.c" - } -#line 2073 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = tag_global; -#line 2073 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = victim_path; -#line 2073 "/home/jens/Source/shotwell/src/Commands.vala" - if (!tag_source_collection_exists (_tmp3_, _tmp4_, FALSE)) { -#line 2074 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (victim_path); -#line 2074 "/home/jens/Source/shotwell/src/Commands.vala" - return; -#line 19094 "Commands.c" - } -#line 2076 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = victim_path; -#line 2076 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = tag_for_path (_tmp5_); -#line 2076 "/home/jens/Source/shotwell/src/Commands.vala" - victim = _tmp6_; -#line 2079 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = victim; -#line 2079 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = tag_get_hierarchical_children (_tmp7_); -#line 2079 "/home/jens/Source/shotwell/src/Commands.vala" - victim_children = _tmp8_; -#line 19108 "Commands.c" - { - gint i = 0; -#line 2080 "/home/jens/Source/shotwell/src/Commands.vala" - i = 0; -#line 19113 "Commands.c" - { - gboolean _tmp9_ = FALSE; -#line 2080 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = TRUE; -#line 2080 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 19120 "Commands.c" - gint _tmp11_; - GeeList* _tmp12_; - gint _tmp13_; - gint _tmp14_; - TagSourceCollection* _tmp15_; - TagSourceCollection* _tmp16_; - GeeList* _tmp17_; - gint _tmp18_; - gpointer _tmp19_; - Tag* _tmp20_; - Marker* _tmp21_; - Marker* _tmp22_; -#line 2080 "/home/jens/Source/shotwell/src/Commands.vala" - if (!_tmp9_) { -#line 19135 "Commands.c" - gint _tmp10_; -#line 2080 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = i; -#line 2080 "/home/jens/Source/shotwell/src/Commands.vala" - i = _tmp10_ + 1; -#line 19141 "Commands.c" - } -#line 2080 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = FALSE; -#line 2080 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = i; -#line 2080 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = victim_children; -#line 2080 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 2080 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = _tmp13_; -#line 2080 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp11_ < _tmp14_)) { -#line 2080 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 19157 "Commands.c" - } -#line 2081 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = tag_global; -#line 2081 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = tag_global; -#line 2081 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = victim_children; -#line 2081 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = i; -#line 2081 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = gee_list_get (_tmp17_, _tmp18_); -#line 2081 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = (Tag*) _tmp19_; -#line 2081 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_OBJECT, DataObject)); -#line 2081 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = _tmp21_; -#line 2081 "/home/jens/Source/shotwell/src/Commands.vala" - source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp22_, TRUE, NULL, NULL, NULL); -#line 2081 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp22_); -#line 2081 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp20_); -#line 19181 "Commands.c" - } - } - } -#line 2084 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = tag_global; -#line 2084 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = tag_global; -#line 2084 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = victim; -#line 2084 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_OBJECT, DataObject)); -#line 2084 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = _tmp26_; -#line 2084 "/home/jens/Source/shotwell/src/Commands.vala" - source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp27_, TRUE, NULL, NULL, NULL); -#line 2084 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp27_); -#line 2068 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (victim_children); -#line 2068 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (victim); -#line 2068 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (victim_path); -#line 19205 "Commands.c" -} - - -static void -reparent_tag_command_real_execute (Command* base) -{ - ReparentTagCommand * self; - GeeList* _tmp0_; -#line 2087 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_REPARENT_TAG_COMMAND, ReparentTagCommand); -#line 2088 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->after_state; -#line 2088 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp0_ == NULL) { -#line 19220 "Commands.c" - const gchar* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; -#line 2089 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_save_before_state (self); -#line 2091 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->to_path; -#line 2091 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_prepare_parent (self, _tmp1_); -#line 2093 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->from_path; -#line 2093 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = self->priv->to_path; -#line 2093 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_copy_subtree (self, _tmp2_, _tmp3_); -#line 2095 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_save_after_state (self); -#line 2097 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_do_source_parent_detachments (self); -#line 2099 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->from_path; -#line 2099 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_destroy_subtree (self, _tmp4_); -#line 19245 "Commands.c" - } else { - const gchar* _tmp5_; - const gchar* _tmp6_; - GeeMap* _tmp7_; - const gchar* _tmp8_; - const gchar* _tmp9_; -#line 2101 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = self->priv->to_path; -#line 2101 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_prepare_parent (self, _tmp5_); -#line 2103 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_restore_after_state (self); -#line 2105 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = self->priv->to_path; -#line 2105 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = self->priv->in_play_child_structure; -#line 2105 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_restore_child_attachments_at (self, _tmp6_, _tmp7_); -#line 2106 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = self->priv->to_path; -#line 2106 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_reattach_in_play_sources_at (self, _tmp8_); -#line 2108 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_do_source_parent_detachments (self); -#line 2109 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_do_destination_parent_reattachments (self); -#line 2111 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = self->priv->from_path; -#line 2111 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_destroy_subtree (self, _tmp9_); -#line 19276 "Commands.c" - } -} - - -static void -reparent_tag_command_real_undo (Command* base) -{ - ReparentTagCommand * self; - GeeList* _tmp0_; - const gchar* _tmp1_; - gboolean _tmp2_; - const gchar* _tmp4_; - GeeMap* _tmp5_; - const gchar* _tmp6_; - const gchar* _tmp7_; - const gchar* _tmp8_; - const gchar* _tmp9_; -#line 2115 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_REPARENT_TAG_COMMAND, ReparentTagCommand); -#line 2116 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->src_before_state; -#line 2116 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (_tmp0_ != NULL, "src_before_state != null"); -#line 2118 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->from_path; -#line 2118 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_prepare_parent (self, _tmp1_); -#line 2120 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_restore_before_state (self); -#line 2122 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->to_path_exists; -#line 2122 "/home/jens/Source/shotwell/src/Commands.vala" - if (!_tmp2_) { -#line 19310 "Commands.c" - const gchar* _tmp3_; -#line 2123 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = self->priv->to_path; -#line 2123 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_destroy_subtree (self, _tmp3_); -#line 19316 "Commands.c" - } -#line 2125 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->from_path; -#line 2125 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = self->priv->in_play_child_structure; -#line 2125 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_restore_child_attachments_at (self, _tmp4_, _tmp5_); -#line 2126 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = self->priv->from_path; -#line 2126 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_reattach_in_play_sources_at (self, _tmp6_); -#line 2128 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_do_source_parent_reattachments (self); -#line 2129 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_do_destination_parent_detachments (self); -#line 2131 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = self->priv->to_path; -#line 2131 "/home/jens/Source/shotwell/src/Commands.vala" - hierarchical_tag_utilities_cleanup_root_path (_tmp7_); -#line 2132 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = self->priv->from_path; -#line 2132 "/home/jens/Source/shotwell/src/Commands.vala" - hierarchical_tag_utilities_cleanup_root_path (_tmp8_); -#line 2133 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = self->priv->to_path_parent_path; -#line 2133 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp9_ != NULL) { -#line 19344 "Commands.c" - const gchar* _tmp10_; -#line 2134 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = self->priv->to_path_parent_path; -#line 2134 "/home/jens/Source/shotwell/src/Commands.vala" - hierarchical_tag_utilities_cleanup_root_path (_tmp10_); -#line 19350 "Commands.c" - } -} - - -static void -reparent_tag_command_class_init (ReparentTagCommandClass * klass) -{ -#line 1679 "/home/jens/Source/shotwell/src/Commands.vala" - reparent_tag_command_parent_class = g_type_class_peek_parent (klass); -#line 1679 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (ReparentTagCommandPrivate)); -#line 1679 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) reparent_tag_command_real_execute; -#line 1679 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) reparent_tag_command_real_undo; -#line 1679 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = reparent_tag_command_finalize; -#line 19368 "Commands.c" -} - - -static void -reparent_tag_command_instance_init (ReparentTagCommand * self) -{ - GeeHashSet* _tmp0_; -#line 1679 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = REPARENT_TAG_COMMAND_GET_PRIVATE (self); -#line 1683 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->src_before_state = NULL; -#line 1684 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->dest_before_state = NULL; -#line 1685 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->after_state = NULL; -#line 1686 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1686 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->sources_in_play = _tmp0_; -#line 1687 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->dest_parent_attachments = NULL; -#line 1688 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->src_parent_detachments = NULL; -#line 1689 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->in_play_child_structure = NULL; -#line 1690 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->existing_dest_child_structure = NULL; -#line 1691 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->existing_dest_membership = NULL; -#line 1692 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->to_path_exists = FALSE; -#line 19400 "Commands.c" -} - - -static void -reparent_tag_command_finalize (GObject * obj) -{ - ReparentTagCommand * self; - LibraryPhotoSourceCollection* _tmp0_; - guint _tmp1_; - VideoSourceCollection* _tmp2_; - guint _tmp3_; -#line 1679 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_REPARENT_TAG_COMMAND, ReparentTagCommand); -#line 1724 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = library_photo_global; -#line 1724 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("items-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE); -#line 1724 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _reparent_tag_command_on_items_destroyed_source_collection_items_destroyed, self); -#line 1725 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = video_global; -#line 1725 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("items-destroyed", TYPE_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE); -#line 1725 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _reparent_tag_command_on_items_destroyed_source_collection_items_destroyed, self); -#line 1680 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->from_path); -#line 1681 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->to_path); -#line 1682 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->to_path_parent_path); -#line 1683 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->src_before_state); -#line 1684 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->dest_before_state); -#line 1685 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->after_state); -#line 1686 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->sources_in_play); -#line 1687 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->dest_parent_attachments); -#line 1688 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->src_parent_detachments); -#line 1689 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->in_play_child_structure); -#line 1690 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->existing_dest_child_structure); -#line 1691 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->existing_dest_membership); -#line 1679 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (reparent_tag_command_parent_class)->finalize (obj); -#line 19452 "Commands.c" -} - - -GType -reparent_tag_command_get_type (void) -{ - static volatile gsize reparent_tag_command_type_id__volatile = 0; - if (g_once_init_enter (&reparent_tag_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ReparentTagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) reparent_tag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ReparentTagCommand), 0, (GInstanceInitFunc) reparent_tag_command_instance_init, NULL }; - GType reparent_tag_command_type_id; - reparent_tag_command_type_id = g_type_register_static (TYPE_PAGE_COMMAND, "ReparentTagCommand", &g_define_type_info, 0); - g_once_init_leave (&reparent_tag_command_type_id__volatile, reparent_tag_command_type_id); - } - return reparent_tag_command_type_id__volatile; -} - - -static void -_modify_tags_command_on_proxy_broken_source_proxy_broken (SourceProxy* _sender, - gpointer self) -{ -#line 2179 "/home/jens/Source/shotwell/src/Commands.vala" - modify_tags_command_on_proxy_broken ((ModifyTagsCommand*) self); -#line 19476 "Commands.c" -} - - -ModifyTagsCommand* -modify_tags_command_construct (GType object_type, - MediaSource* media, - GeeCollection* new_tag_list) -{ - ModifyTagsCommand * self = NULL; - MediaSource* _tmp0_; - GeeList* original_tags = NULL; - TagSourceCollection* _tmp1_; - GeeList* _tmp2_; - GeeList* _tmp3_; - GeeSortedSet* new_paths = NULL; - GeeTreeSet* _tmp20_; -#line 2143 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (media), NULL); -#line 2143 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (new_tag_list), NULL); -#line 2144 "/home/jens/Source/shotwell/src/Commands.vala" - self = (ModifyTagsCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (media, TYPE_DATA_SOURCE, DataSource), RESOURCES_MODIFY_TAGS_LABEL, ""); -#line 2146 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (media); -#line 2146 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->media); -#line 2146 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->media = _tmp0_; -#line 2149 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = tag_global; -#line 2149 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = tag_source_collection_fetch_for_source (_tmp1_, media); -#line 2149 "/home/jens/Source/shotwell/src/Commands.vala" - original_tags = _tmp2_; -#line 2150 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = original_tags; -#line 2150 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp3_ != NULL) { -#line 19515 "Commands.c" - { - GeeList* _tag_list = NULL; - GeeList* _tmp4_; - GeeList* _tmp5_; - gint _tag_size = 0; - GeeList* _tmp6_; - gint _tmp7_; - gint _tmp8_; - gint _tag_index = 0; -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = original_tags; -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _g_object_ref0 (_tmp4_); -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _tag_list = _tmp5_; -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _tag_list; -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _tmp7_; -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _tag_size = _tmp8_; -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _tag_index = -1; -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 19543 "Commands.c" - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; - Tag* tag = NULL; - GeeList* _tmp12_; - gint _tmp13_; - gpointer _tmp14_; - SourceProxy* proxy = NULL; - Tag* _tmp15_; - SourceProxy* _tmp16_; - GeeArrayList* _tmp17_; - SourceProxy* _tmp18_; - SourceProxy* _tmp19_; -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = _tag_index; -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _tag_index = _tmp9_ + 1; -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = _tag_index; -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _tag_size; -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp10_ < _tmp11_)) { -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 19569 "Commands.c" - } -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = _tag_list; -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = _tag_index; -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = gee_list_get (_tmp12_, _tmp13_); -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - tag = (Tag*) _tmp14_; -#line 2152 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = tag; -#line 2152 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PROXYABLE, Proxyable)); -#line 2152 "/home/jens/Source/shotwell/src/Commands.vala" - proxy = _tmp16_; -#line 2153 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = self->priv->to_remove; -#line 2153 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = proxy; -#line 2153 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp18_); -#line 2154 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = proxy; -#line 2154 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (_tmp19_, "broken", (GCallback) _modify_tags_command_on_proxy_broken_source_proxy_broken, self, 0); -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (proxy); -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (tag); -#line 19599 "Commands.c" - } -#line 2151 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tag_list); -#line 19603 "Commands.c" - } - } -#line 2160 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 2160 "/home/jens/Source/shotwell/src/Commands.vala" - new_paths = G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_SORTED_SET, GeeSortedSet); -#line 19610 "Commands.c" - { - GeeIterator* _new_tag_it = NULL; - GeeIterator* _tmp21_; -#line 2161 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (new_tag_list, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2161 "/home/jens/Source/shotwell/src/Commands.vala" - _new_tag_it = _tmp21_; -#line 2161 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 19620 "Commands.c" - GeeIterator* _tmp22_; - Tag* new_tag = NULL; - GeeIterator* _tmp23_; - gpointer _tmp24_; - gchar* new_tag_path = NULL; - Tag* _tmp25_; - gchar* _tmp26_; - GeeSortedSet* _tmp27_; - const gchar* _tmp28_; - GeeSortedSet* _tmp29_; - const gchar* _tmp30_; - GeeList* _tmp31_; - GeeList* _tmp32_; -#line 2161 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = _new_tag_it; -#line 2161 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp22_)) { -#line 2161 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 19640 "Commands.c" - } -#line 2161 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = _new_tag_it; -#line 2161 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = gee_iterator_get (_tmp23_); -#line 2161 "/home/jens/Source/shotwell/src/Commands.vala" - new_tag = (Tag*) _tmp24_; -#line 2162 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = new_tag; -#line 2162 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = tag_get_path (_tmp25_); -#line 2162 "/home/jens/Source/shotwell/src/Commands.vala" - new_tag_path = _tmp26_; -#line 2164 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = new_paths; -#line 2164 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = new_tag_path; -#line 2164 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection), _tmp28_); -#line 2165 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = new_paths; -#line 2165 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = new_tag_path; -#line 2165 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp31_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp30_); -#line 2165 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp32_ = _tmp31_; -#line 2165 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 2165 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp32_); -#line 2161 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (new_tag_path); -#line 2161 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (new_tag); -#line 19676 "Commands.c" - } -#line 2161 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_new_tag_it); -#line 19680 "Commands.c" - } - { - GeeIterator* _path_it = NULL; - GeeSortedSet* _tmp33_; - GeeIterator* _tmp34_; -#line 2168 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp33_ = new_paths; -#line 2168 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp34_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2168 "/home/jens/Source/shotwell/src/Commands.vala" - _path_it = _tmp34_; -#line 2168 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 19694 "Commands.c" - GeeIterator* _tmp35_; - gchar* path = NULL; - GeeIterator* _tmp36_; - gpointer _tmp37_; - TagSourceCollection* _tmp38_; - const gchar* _tmp39_; - SourceProxy* proxy = NULL; - const gchar* _tmp40_; - Tag* _tmp41_; - Tag* _tmp42_; - SourceProxy* _tmp43_; - SourceProxy* _tmp44_; - GeeArrayList* _tmp45_; - SourceProxy* _tmp46_; - SourceProxy* _tmp47_; -#line 2168 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp35_ = _path_it; -#line 2168 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp35_)) { -#line 2168 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 19716 "Commands.c" - } -#line 2168 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp36_ = _path_it; -#line 2168 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp37_ = gee_iterator_get (_tmp36_); -#line 2168 "/home/jens/Source/shotwell/src/Commands.vala" - path = (gchar*) _tmp37_; -#line 2169 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp38_ = tag_global; -#line 2169 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp39_ = path; -#line 2169 "/home/jens/Source/shotwell/src/Commands.vala" - _vala_assert (tag_source_collection_exists (_tmp38_, _tmp39_, FALSE), "Tag.global.exists(path)"); -#line 2171 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp40_ = path; -#line 2171 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp41_ = tag_for_path (_tmp40_); -#line 2171 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp42_ = _tmp41_; -#line 2171 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp43_ = proxyable_get_proxy (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_PROXYABLE, Proxyable)); -#line 2171 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp44_ = _tmp43_; -#line 2171 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp42_); -#line 2171 "/home/jens/Source/shotwell/src/Commands.vala" - proxy = _tmp44_; -#line 2172 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp45_ = self->priv->to_add; -#line 2172 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp46_ = proxy; -#line 2172 "/home/jens/Source/shotwell/src/Commands.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp46_); -#line 2173 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp47_ = proxy; -#line 2173 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (_tmp47_, "broken", (GCallback) _modify_tags_command_on_proxy_broken_source_proxy_broken, self, 0); -#line 2168 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (proxy); -#line 2168 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (path); -#line 19758 "Commands.c" - } -#line 2168 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_path_it); -#line 19762 "Commands.c" - } -#line 2143 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (new_paths); -#line 2143 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (original_tags); -#line 2143 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 19770 "Commands.c" -} - - -ModifyTagsCommand* -modify_tags_command_new (MediaSource* media, - GeeCollection* new_tag_list) -{ -#line 2143 "/home/jens/Source/shotwell/src/Commands.vala" - return modify_tags_command_construct (TYPE_MODIFY_TAGS_COMMAND, media, new_tag_list); -#line 19780 "Commands.c" -} - - -static void -modify_tags_command_real_execute (Command* base) -{ - ModifyTagsCommand * self; -#line 2185 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommand); -#line 19790 "Commands.c" - { - GeeArrayList* _proxy_list = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; - gint _proxy_size = 0; - GeeArrayList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _proxy_index = 0; -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->to_remove; -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_list = _tmp1_; -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _proxy_list; -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _tmp3_; -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_size = _tmp4_; -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_index = -1; -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 19818 "Commands.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - SourceProxy* proxy = NULL; - GeeArrayList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - SourceProxy* _tmp11_; - DataSource* _tmp12_; - Tag* _tmp13_; - MediaSource* _tmp14_; - GeeList* _tmp15_; - GeeList* _tmp16_; -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _proxy_index; -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_index = _tmp5_ + 1; -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _proxy_index; -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _proxy_size; -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 19844 "Commands.c" - } -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _proxy_list; -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = _proxy_index; -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_); -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - proxy = (SourceProxy*) _tmp10_; -#line 2187 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = proxy; -#line 2187 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = source_proxy_get_source (_tmp11_); -#line 2187 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_TAG, Tag); -#line 2187 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = self->priv->media; -#line 2187 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = tag_detach (_tmp13_, _tmp14_); -#line 2187 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = _tmp15_; -#line 2187 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp16_); -#line 2187 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp13_); -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (proxy); -#line 19872 "Commands.c" - } -#line 2186 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_proxy_list); -#line 19876 "Commands.c" - } - { - GeeArrayList* _proxy_list = NULL; - GeeArrayList* _tmp17_; - GeeArrayList* _tmp18_; - gint _proxy_size = 0; - GeeArrayList* _tmp19_; - gint _tmp20_; - gint _tmp21_; - gint _proxy_index = 0; -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = self->priv->to_add; -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = _g_object_ref0 (_tmp17_); -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_list = _tmp18_; -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = _proxy_list; -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = _tmp20_; -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_size = _tmp21_; -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_index = -1; -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 19905 "Commands.c" - gint _tmp22_; - gint _tmp23_; - gint _tmp24_; - SourceProxy* proxy = NULL; - GeeArrayList* _tmp25_; - gint _tmp26_; - gpointer _tmp27_; - SourceProxy* _tmp28_; - DataSource* _tmp29_; - Tag* _tmp30_; - MediaSource* _tmp31_; -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = _proxy_index; -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_index = _tmp22_ + 1; -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = _proxy_index; -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = _proxy_size; -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp23_ < _tmp24_)) { -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 19929 "Commands.c" - } -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = _proxy_list; -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = _proxy_index; -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp26_); -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - proxy = (SourceProxy*) _tmp27_; -#line 2190 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = proxy; -#line 2190 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = source_proxy_get_source (_tmp28_); -#line 2190 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_TAG, Tag); -#line 2190 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp31_ = self->priv->media; -#line 2190 "/home/jens/Source/shotwell/src/Commands.vala" - tag_attach (_tmp30_, _tmp31_); -#line 2190 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp30_); -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (proxy); -#line 19953 "Commands.c" - } -#line 2189 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_proxy_list); -#line 19957 "Commands.c" - } -} - - -static void -modify_tags_command_real_undo (Command* base) -{ - ModifyTagsCommand * self; -#line 2193 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommand); -#line 19968 "Commands.c" - { - GeeArrayList* _proxy_list = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; - gint _proxy_size = 0; - GeeArrayList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _proxy_index = 0; -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->to_add; -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_list = _tmp1_; -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _proxy_list; -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _tmp3_; -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_size = _tmp4_; -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_index = -1; -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 19996 "Commands.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - SourceProxy* proxy = NULL; - GeeArrayList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - SourceProxy* _tmp11_; - DataSource* _tmp12_; - Tag* _tmp13_; - MediaSource* _tmp14_; - GeeList* _tmp15_; - GeeList* _tmp16_; -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _proxy_index; -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_index = _tmp5_ + 1; -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _proxy_index; -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _proxy_size; -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 20022 "Commands.c" - } -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _proxy_list; -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = _proxy_index; -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_); -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - proxy = (SourceProxy*) _tmp10_; -#line 2195 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = proxy; -#line 2195 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = source_proxy_get_source (_tmp11_); -#line 2195 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_TAG, Tag); -#line 2195 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = self->priv->media; -#line 2195 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = tag_detach (_tmp13_, _tmp14_); -#line 2195 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = _tmp15_; -#line 2195 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp16_); -#line 2195 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp13_); -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (proxy); -#line 20050 "Commands.c" - } -#line 2194 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_proxy_list); -#line 20054 "Commands.c" - } - { - GeeArrayList* _proxy_list = NULL; - GeeArrayList* _tmp17_; - GeeArrayList* _tmp18_; - gint _proxy_size = 0; - GeeArrayList* _tmp19_; - gint _tmp20_; - gint _tmp21_; - gint _proxy_index = 0; -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = self->priv->to_remove; -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = _g_object_ref0 (_tmp17_); -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_list = _tmp18_; -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = _proxy_list; -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = _tmp20_; -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_size = _tmp21_; -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_index = -1; -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 20083 "Commands.c" - gint _tmp22_; - gint _tmp23_; - gint _tmp24_; - SourceProxy* proxy = NULL; - GeeArrayList* _tmp25_; - gint _tmp26_; - gpointer _tmp27_; - SourceProxy* _tmp28_; - DataSource* _tmp29_; - Tag* _tmp30_; - MediaSource* _tmp31_; -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = _proxy_index; -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_index = _tmp22_ + 1; -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = _proxy_index; -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = _proxy_size; -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp23_ < _tmp24_)) { -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 20107 "Commands.c" - } -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = _proxy_list; -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = _proxy_index; -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp26_); -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - proxy = (SourceProxy*) _tmp27_; -#line 2198 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp28_ = proxy; -#line 2198 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp29_ = source_proxy_get_source (_tmp28_); -#line 2198 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp30_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_TAG, Tag); -#line 2198 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp31_ = self->priv->media; -#line 2198 "/home/jens/Source/shotwell/src/Commands.vala" - tag_attach (_tmp30_, _tmp31_); -#line 2198 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp30_); -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (proxy); -#line 20131 "Commands.c" - } -#line 2197 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_proxy_list); -#line 20135 "Commands.c" - } -} - - -static void -modify_tags_command_on_proxy_broken (ModifyTagsCommand* self) -{ - CommandManager* _tmp0_; - CommandManager* _tmp1_; -#line 2201 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_MODIFY_TAGS_COMMAND (self)); -#line 2202 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command)); -#line 2202 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 2202 "/home/jens/Source/shotwell/src/Commands.vala" - command_manager_reset (_tmp1_); -#line 2202 "/home/jens/Source/shotwell/src/Commands.vala" - _command_manager_unref0 (_tmp1_); -#line 20155 "Commands.c" -} - - -static void -modify_tags_command_class_init (ModifyTagsCommandClass * klass) -{ -#line 2138 "/home/jens/Source/shotwell/src/Commands.vala" - modify_tags_command_parent_class = g_type_class_peek_parent (klass); -#line 2138 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (ModifyTagsCommandPrivate)); -#line 2138 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) modify_tags_command_real_execute; -#line 2138 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) modify_tags_command_real_undo; -#line 2138 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = modify_tags_command_finalize; -#line 20172 "Commands.c" -} - - -static void -modify_tags_command_instance_init (ModifyTagsCommand * self) -{ - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; -#line 2138 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = MODIFY_TAGS_COMMAND_GET_PRIVATE (self); -#line 2140 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_array_list_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL); -#line 2140 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->to_add = _tmp0_; -#line 2141 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_array_list_new (TYPE_SOURCE_PROXY, (GBoxedCopyFunc) source_proxy_ref, (GDestroyNotify) source_proxy_unref, NULL, NULL, NULL); -#line 2141 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->to_remove = _tmp1_; -#line 20191 "Commands.c" -} - - -static void -modify_tags_command_finalize (GObject * obj) -{ - ModifyTagsCommand * self; -#line 2138 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommand); -#line 20201 "Commands.c" - { - GeeArrayList* _proxy_list = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; - gint _proxy_size = 0; - GeeArrayList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _proxy_index = 0; -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->to_add; -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_list = _tmp1_; -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _proxy_list; -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _tmp3_; -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_size = _tmp4_; -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_index = -1; -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 20229 "Commands.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - SourceProxy* proxy = NULL; - GeeArrayList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - SourceProxy* _tmp11_; - guint _tmp12_; -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _proxy_index; -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_index = _tmp5_ + 1; -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _proxy_index; -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _proxy_size; -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 20251 "Commands.c" - } -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _proxy_list; -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = _proxy_index; -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_); -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - proxy = (SourceProxy*) _tmp10_; -#line 2179 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = proxy; -#line 2179 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp12_, NULL, FALSE); -#line 2179 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (_tmp11_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _modify_tags_command_on_proxy_broken_source_proxy_broken, self); -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (proxy); -#line 20269 "Commands.c" - } -#line 2178 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_proxy_list); -#line 20273 "Commands.c" - } - { - GeeArrayList* _proxy_list = NULL; - GeeArrayList* _tmp13_; - GeeArrayList* _tmp14_; - gint _proxy_size = 0; - GeeArrayList* _tmp15_; - gint _tmp16_; - gint _tmp17_; - gint _proxy_index = 0; -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = self->priv->to_remove; -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = _g_object_ref0 (_tmp13_); -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_list = _tmp14_; -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = _proxy_list; -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = _tmp16_; -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_size = _tmp17_; -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_index = -1; -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 20302 "Commands.c" - gint _tmp18_; - gint _tmp19_; - gint _tmp20_; - SourceProxy* proxy = NULL; - GeeArrayList* _tmp21_; - gint _tmp22_; - gpointer _tmp23_; - SourceProxy* _tmp24_; - guint _tmp25_; -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = _proxy_index; -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - _proxy_index = _tmp18_ + 1; -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = _proxy_index; -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = _proxy_size; -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp19_ < _tmp20_)) { -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 20324 "Commands.c" - } -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = _proxy_list; -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = _proxy_index; -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp22_); -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - proxy = (SourceProxy*) _tmp23_; -#line 2182 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = proxy; -#line 2182 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("broken", TYPE_SOURCE_PROXY, &_tmp25_, NULL, FALSE); -#line 2182 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (_tmp24_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp25_, 0, NULL, (GCallback) _modify_tags_command_on_proxy_broken_source_proxy_broken, self); -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - _source_proxy_unref0 (proxy); -#line 20342 "Commands.c" - } -#line 2181 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_proxy_list); -#line 20346 "Commands.c" - } -#line 2139 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->media); -#line 2140 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->to_add); -#line 2141 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->to_remove); -#line 2138 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (modify_tags_command_parent_class)->finalize (obj); -#line 20356 "Commands.c" -} - - -GType -modify_tags_command_get_type (void) -{ - static volatile gsize modify_tags_command_type_id__volatile = 0; - if (g_once_init_enter (&modify_tags_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ModifyTagsCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) modify_tags_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ModifyTagsCommand), 0, (GInstanceInitFunc) modify_tags_command_instance_init, NULL }; - GType modify_tags_command_type_id; - modify_tags_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "ModifyTagsCommand", &g_define_type_info, 0); - g_once_init_leave (&modify_tags_command_type_id__volatile, modify_tags_command_type_id); - } - return modify_tags_command_type_id__volatile; -} - - -static void -_tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self) -{ -#line 2226 "/home/jens/Source/shotwell/src/Commands.vala" - tag_untag_photos_command_on_source_destroyed ((TagUntagPhotosCommand*) self, source); -#line 20381 "Commands.c" -} - - -TagUntagPhotosCommand* -tag_untag_photos_command_construct (GType object_type, - Tag* tag, - GeeCollection* sources, - gint count, - gboolean attach) -{ - TagUntagPhotosCommand * self = NULL; - gchar* _tmp0_ = NULL; - gchar* _tmp7_; - gchar* _tmp8_; - GeeCollection* _tmp9_; - LibraryPhotoSourceCollection* _tmp10_; - VideoSourceCollection* _tmp11_; -#line 2212 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_TAG (tag), NULL); -#line 2212 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (sources), NULL); -#line 2214 "/home/jens/Source/shotwell/src/Commands.vala" - if (attach) { -#line 20405 "Commands.c" - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 2214 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = tag_get_user_visible_name (tag); -#line 2214 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _tmp1_; -#line 2214 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = resources_tag_photos_label (_tmp2_, count); -#line 2214 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp0_); -#line 2214 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _tmp3_; -#line 2214 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp2_); -#line 20421 "Commands.c" - } else { - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 2215 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = tag_get_user_visible_name (tag); -#line 2215 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp4_; -#line 2215 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = resources_untag_photos_label (_tmp5_, count); -#line 2215 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp0_); -#line 2215 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _tmp6_; -#line 2215 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp5_); -#line 20438 "Commands.c" - } -#line 2213 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject)); -#line 2213 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _tmp7_; -#line 2213 "/home/jens/Source/shotwell/src/Commands.vala" - self = (TagUntagPhotosCommand*) simple_proxyable_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_PROXYABLE, Proxyable), _tmp0_, _tmp8_); -#line 2213 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp8_); -#line 2218 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = _g_object_ref0 (sources); -#line 2218 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->sources); -#line 2218 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->sources = _tmp9_; -#line 2219 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->attach = attach; -#line 2221 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = library_photo_global; -#line 2221 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed, self, 0); -#line 2222 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = video_global; -#line 2222 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed, self, 0); -#line 2212 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp0_); -#line 2212 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 20468 "Commands.c" -} - - -TagUntagPhotosCommand* -tag_untag_photos_command_new (Tag* tag, - GeeCollection* sources, - gint count, - gboolean attach) -{ -#line 2212 "/home/jens/Source/shotwell/src/Commands.vala" - return tag_untag_photos_command_construct (TYPE_TAG_UNTAG_PHOTOS_COMMAND, tag, sources, count, attach); -#line 20480 "Commands.c" -} - - -static void -tag_untag_photos_command_real_execute_on_source (SimpleProxyableCommand* base, - DataSource* source) -{ - TagUntagPhotosCommand * self; - gboolean _tmp0_; -#line 2230 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommand); -#line 2230 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 2231 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->attach; -#line 2231 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp0_) { -#line 2232 "/home/jens/Source/shotwell/src/Commands.vala" - tag_untag_photos_command_do_attach (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag)); -#line 20500 "Commands.c" - } else { -#line 2234 "/home/jens/Source/shotwell/src/Commands.vala" - tag_untag_photos_command_do_detach (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag)); -#line 20504 "Commands.c" - } -} - - -static void -tag_untag_photos_command_real_undo_on_source (SimpleProxyableCommand* base, - DataSource* source) -{ - TagUntagPhotosCommand * self; - gboolean _tmp0_; -#line 2237 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommand); -#line 2237 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 2238 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->attach; -#line 2238 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp0_) { -#line 2239 "/home/jens/Source/shotwell/src/Commands.vala" - tag_untag_photos_command_do_detach (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag)); -#line 20525 "Commands.c" - } else { -#line 2241 "/home/jens/Source/shotwell/src/Commands.vala" - tag_untag_photos_command_do_attach (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag)); -#line 20529 "Commands.c" - } -} - - -static void -tag_untag_photos_command_do_attach (TagUntagPhotosCommand* self, - Tag* tag) -{ - GeeMultiMap* _tmp0_; -#line 2244 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_TAG_UNTAG_PHOTOS_COMMAND (self)); -#line 2244 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_TAG (tag)); -#line 2246 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->detached_from; -#line 2246 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp0_ == NULL) { -#line 20547 "Commands.c" - GeeCollection* _tmp1_; - GeeArrayList* _tmp2_; - Tag* curr_tmp = NULL; - Tag* _tmp3_; -#line 2247 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->sources; -#line 2247 "/home/jens/Source/shotwell/src/Commands.vala" - tag_attach_many (tag, _tmp1_); -#line 2249 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 2249 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->attached_to); -#line 2249 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->attached_to = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_LIST, GeeList); -#line 2251 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _g_object_ref0 (tag); -#line 2251 "/home/jens/Source/shotwell/src/Commands.vala" - curr_tmp = _tmp3_; -#line 2253 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 20568 "Commands.c" - Tag* _tmp4_; - GeeList* _tmp5_; - Tag* _tmp6_; - Tag* _tmp7_; - Tag* _tmp8_; -#line 2253 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = curr_tmp; -#line 2253 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp4_ != NULL)) { -#line 2253 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 20580 "Commands.c" - } -#line 2254 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = self->priv->attached_to; -#line 2254 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = curr_tmp; -#line 2254 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), _tmp6_); -#line 2255 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = curr_tmp; -#line 2255 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = tag_get_hierarchical_parent (_tmp7_); -#line 2255 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (curr_tmp); -#line 2255 "/home/jens/Source/shotwell/src/Commands.vala" - curr_tmp = _tmp8_; -#line 20596 "Commands.c" - } -#line 2258 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (curr_tmp); -#line 2258 "/home/jens/Source/shotwell/src/Commands.vala" - return; -#line 20602 "Commands.c" - } - { - GeeIterator* _detached_tag_it = NULL; - GeeMultiMap* _tmp9_; - GeeMultiSet* _tmp10_; - GeeMultiSet* _tmp11_; - GeeIterator* _tmp12_; - GeeIterator* _tmp13_; -#line 2262 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = self->priv->detached_from; -#line 2262 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = gee_multi_map_get_all_keys (_tmp9_); -#line 2262 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _tmp10_; -#line 2262 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2262 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = _tmp12_; -#line 2262 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp11_); -#line 2262 "/home/jens/Source/shotwell/src/Commands.vala" - _detached_tag_it = _tmp13_; -#line 2262 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 20627 "Commands.c" - GeeIterator* _tmp14_; - Tag* detached_tag = NULL; - GeeIterator* _tmp15_; - gpointer _tmp16_; - Tag* _tmp17_; - GeeMultiMap* _tmp18_; - Tag* _tmp19_; - GeeCollection* _tmp20_; - GeeCollection* _tmp21_; -#line 2262 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = _detached_tag_it; -#line 2262 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp14_)) { -#line 2262 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 20643 "Commands.c" - } -#line 2262 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = _detached_tag_it; -#line 2262 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = gee_iterator_get (_tmp15_); -#line 2262 "/home/jens/Source/shotwell/src/Commands.vala" - detached_tag = (Tag*) _tmp16_; -#line 2263 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = detached_tag; -#line 2263 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = self->priv->detached_from; -#line 2263 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = detached_tag; -#line 2263 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = gee_multi_map_get (_tmp18_, _tmp19_); -#line 2263 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = _tmp20_; -#line 2263 "/home/jens/Source/shotwell/src/Commands.vala" - tag_attach_many (_tmp17_, _tmp21_); -#line 2263 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp21_); -#line 2262 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (detached_tag); -#line 20667 "Commands.c" - } -#line 2262 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_detached_tag_it); -#line 20671 "Commands.c" - } -#line 2265 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->detached_from); -#line 2265 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->detached_from = NULL; -#line 2266 "/home/jens/Source/shotwell/src/Commands.vala" - simple_proxyable_command_clear_added_proxies (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand)); -#line 20679 "Commands.c" -} - - -static void -tag_untag_photos_command_do_detach (TagUntagPhotosCommand* self, - Tag* tag) -{ - GeeList* _tmp0_; -#line 2269 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_TAG_UNTAG_PHOTOS_COMMAND (self)); -#line 2269 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_TAG (tag)); -#line 2270 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->attached_to; -#line 2270 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp0_ == NULL) { -#line 20696 "Commands.c" - GeeCollection* _tmp1_; - GeeMultiMap* _tmp2_; - GeeMultiMap* _tmp3_; - GeeSet* _tmp4_; - GeeSet* _tmp5_; -#line 2274 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->sources; -#line 2274 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = tag_detach_many (tag, _tmp1_); -#line 2274 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->detached_from); -#line 2274 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->detached_from = _tmp2_; -#line 2278 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = self->priv->detached_from; -#line 2278 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = gee_multi_map_get_keys (_tmp3_); -#line 2278 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp4_; -#line 2278 "/home/jens/Source/shotwell/src/Commands.vala" - simple_proxyable_command_add_proxyables (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 2278 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp5_); -#line 20720 "Commands.c" - } else { - { - GeeList* _t_list = NULL; - GeeList* _tmp6_; - GeeList* _tmp7_; - gint _t_size = 0; - GeeList* _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _t_index = 0; -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = self->priv->attached_to; -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _g_object_ref0 (_tmp6_); -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - _t_list = _tmp7_; -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _t_list; -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = _tmp9_; -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - _t_size = _tmp10_; -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - _t_index = -1; -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 20749 "Commands.c" - gint _tmp11_; - gint _tmp12_; - gint _tmp13_; - Tag* t = NULL; - GeeList* _tmp14_; - gint _tmp15_; - gpointer _tmp16_; -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _t_index; -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - _t_index = _tmp11_ + 1; -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = _t_index; -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = _t_size; -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - if (!(_tmp12_ < _tmp13_)) { -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 20769 "Commands.c" - } -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = _t_list; -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = _t_index; -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = gee_list_get (_tmp14_, _tmp15_); -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - t = (Tag*) _tmp16_; -#line 20779 "Commands.c" - { - GeeIterator* _ms_it = NULL; - GeeCollection* _tmp17_; - GeeIterator* _tmp18_; -#line 2281 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = self->priv->sources; -#line 2281 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2281 "/home/jens/Source/shotwell/src/Commands.vala" - _ms_it = _tmp18_; -#line 2281 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 20792 "Commands.c" - GeeIterator* _tmp19_; - MediaSource* ms = NULL; - GeeIterator* _tmp20_; - gpointer _tmp21_; - Tag* _tmp22_; - MediaSource* _tmp23_; -#line 2281 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = _ms_it; -#line 2281 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp19_)) { -#line 2281 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 20805 "Commands.c" - } -#line 2281 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = _ms_it; -#line 2281 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = gee_iterator_get (_tmp20_); -#line 2281 "/home/jens/Source/shotwell/src/Commands.vala" - ms = (MediaSource*) _tmp21_; -#line 2283 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = t; -#line 2283 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = ms; -#line 2283 "/home/jens/Source/shotwell/src/Commands.vala" - if (tag_get_attachment_count (_tmp22_, _tmp23_) < 2) { -#line 20819 "Commands.c" - Tag* _tmp24_; - MediaSource* _tmp25_; - GeeList* _tmp26_; - GeeList* _tmp27_; -#line 2285 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp24_ = t; -#line 2285 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp25_ = ms; -#line 2285 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp26_ = tag_detach (_tmp24_, _tmp25_); -#line 2285 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp27_ = _tmp26_; -#line 2285 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp27_); -#line 20834 "Commands.c" - } -#line 2281 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (ms); -#line 20838 "Commands.c" - } -#line 2281 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_ms_it); -#line 20842 "Commands.c" - } -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (t); -#line 20846 "Commands.c" - } -#line 2280 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_t_list); -#line 20850 "Commands.c" - } - } -} - - -static void -tag_untag_photos_command_on_source_destroyed (TagUntagPhotosCommand* self, - DataSource* source) -{ - gchar* _tmp0_; - gchar* _tmp1_; - GeeCollection* _tmp2_; -#line 2292 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_TAG_UNTAG_PHOTOS_COMMAND (self)); -#line 2292 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 2293 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject)); -#line 2293 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 2293 "/home/jens/Source/shotwell/src/Commands.vala" - g_debug ("Commands.vala:2293: on_source_destroyed: %s", _tmp1_); -#line 2293 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp1_); -#line 2294 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->sources; -#line 2294 "/home/jens/Source/shotwell/src/Commands.vala" - if (gee_collection_contains (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource))) { -#line 20879 "Commands.c" - CommandManager* _tmp3_; - CommandManager* _tmp4_; -#line 2295 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command)); -#line 2295 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _tmp3_; -#line 2295 "/home/jens/Source/shotwell/src/Commands.vala" - command_manager_reset (_tmp4_); -#line 2295 "/home/jens/Source/shotwell/src/Commands.vala" - _command_manager_unref0 (_tmp4_); -#line 20890 "Commands.c" - } -} - - -static void -tag_untag_photos_command_class_init (TagUntagPhotosCommandClass * klass) -{ -#line 2206 "/home/jens/Source/shotwell/src/Commands.vala" - tag_untag_photos_command_parent_class = g_type_class_peek_parent (klass); -#line 2206 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (TagUntagPhotosCommandPrivate)); -#line 2206 "/home/jens/Source/shotwell/src/Commands.vala" - ((SimpleProxyableCommandClass *) klass)->execute_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) tag_untag_photos_command_real_execute_on_source; -#line 2206 "/home/jens/Source/shotwell/src/Commands.vala" - ((SimpleProxyableCommandClass *) klass)->undo_on_source = (void (*) (SimpleProxyableCommand *, DataSource*)) tag_untag_photos_command_real_undo_on_source; -#line 2206 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = tag_untag_photos_command_finalize; -#line 20908 "Commands.c" -} - - -static void -tag_untag_photos_command_instance_init (TagUntagPhotosCommand * self) -{ -#line 2206 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = TAG_UNTAG_PHOTOS_COMMAND_GET_PRIVATE (self); -#line 2209 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->detached_from = NULL; -#line 2210 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->attached_to = NULL; -#line 20921 "Commands.c" -} - - -static void -tag_untag_photos_command_finalize (GObject * obj) -{ - TagUntagPhotosCommand * self; - LibraryPhotoSourceCollection* _tmp0_; - guint _tmp1_; - VideoSourceCollection* _tmp2_; - guint _tmp3_; -#line 2206 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommand); -#line 2226 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = library_photo_global; -#line 2226 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE); -#line 2226 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed, self); -#line 2227 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = video_global; -#line 2227 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE); -#line 2227 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _tag_untag_photos_command_on_source_destroyed_source_collection_item_destroyed, self); -#line 2207 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->sources); -#line 2209 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->detached_from); -#line 2210 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->attached_to); -#line 2206 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (tag_untag_photos_command_parent_class)->finalize (obj); -#line 20955 "Commands.c" -} - - -GType -tag_untag_photos_command_get_type (void) -{ - static volatile gsize tag_untag_photos_command_type_id__volatile = 0; - if (g_once_init_enter (&tag_untag_photos_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TagUntagPhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_untag_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagUntagPhotosCommand), 0, (GInstanceInitFunc) tag_untag_photos_command_instance_init, NULL }; - GType tag_untag_photos_command_type_id; - tag_untag_photos_command_type_id = g_type_register_static (TYPE_SIMPLE_PROXYABLE_COMMAND, "TagUntagPhotosCommand", &g_define_type_info, 0); - g_once_init_leave (&tag_untag_photos_command_type_id__volatile, tag_untag_photos_command_type_id); - } - return tag_untag_photos_command_type_id__volatile; -} - - -RenameSavedSearchCommand* -rename_saved_search_command_construct (GType object_type, - SavedSearch* search, - const gchar* new_name) -{ - RenameSavedSearchCommand * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - SavedSearch* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 2304 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_SAVED_SEARCH (search), NULL); -#line 2304 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (new_name != NULL, NULL); -#line 2305 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject)); -#line 2305 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 2305 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = resources_rename_search_label (_tmp1_, new_name); -#line 2305 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 2305 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject)); -#line 2305 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp4_; -#line 2305 "/home/jens/Source/shotwell/src/Commands.vala" - self = (RenameSavedSearchCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_SOURCE, DataSource), _tmp3_, _tmp5_); -#line 2305 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp5_); -#line 2305 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp3_); -#line 2305 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp1_); -#line 2307 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _g_object_ref0 (search); -#line 2307 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->search); -#line 2307 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->search = _tmp6_; -#line 2308 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject)); -#line 2308 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->old_name); -#line 2308 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->old_name = _tmp7_; -#line 2309 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = g_strdup (new_name); -#line 2309 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->new_name); -#line 2309 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->new_name = _tmp8_; -#line 2304 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 21032 "Commands.c" -} - - -RenameSavedSearchCommand* -rename_saved_search_command_new (SavedSearch* search, - const gchar* new_name) -{ -#line 2304 "/home/jens/Source/shotwell/src/Commands.vala" - return rename_saved_search_command_construct (TYPE_RENAME_SAVED_SEARCH_COMMAND, search, new_name); -#line 21042 "Commands.c" -} - - -static void -rename_saved_search_command_real_execute (Command* base) -{ - RenameSavedSearchCommand * self; - SavedSearch* _tmp0_; - const gchar* _tmp1_; -#line 2312 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommand); -#line 2313 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->search; -#line 2313 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->new_name; -#line 2313 "/home/jens/Source/shotwell/src/Commands.vala" - if (!saved_search_rename (_tmp0_, _tmp1_)) { -#line 21060 "Commands.c" - const gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 2314 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->new_name; -#line 2314 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = resources_rename_search_exists_message (_tmp2_); -#line 2314 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _tmp3_; -#line 2314 "/home/jens/Source/shotwell/src/Commands.vala" - app_window_error_message (_tmp4_, NULL); -#line 2314 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp4_); -#line 21074 "Commands.c" - } -} - - -static void -rename_saved_search_command_real_undo (Command* base) -{ - RenameSavedSearchCommand * self; - SavedSearch* _tmp0_; - const gchar* _tmp1_; -#line 2317 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommand); -#line 2318 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->search; -#line 2318 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->old_name; -#line 2318 "/home/jens/Source/shotwell/src/Commands.vala" - if (!saved_search_rename (_tmp0_, _tmp1_)) { -#line 21093 "Commands.c" - const gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 2319 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->old_name; -#line 2319 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = resources_rename_search_exists_message (_tmp2_); -#line 2319 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = _tmp3_; -#line 2319 "/home/jens/Source/shotwell/src/Commands.vala" - app_window_error_message (_tmp4_, NULL); -#line 2319 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp4_); -#line 21107 "Commands.c" - } -} - - -static void -rename_saved_search_command_class_init (RenameSavedSearchCommandClass * klass) -{ -#line 2299 "/home/jens/Source/shotwell/src/Commands.vala" - rename_saved_search_command_parent_class = g_type_class_peek_parent (klass); -#line 2299 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (RenameSavedSearchCommandPrivate)); -#line 2299 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) rename_saved_search_command_real_execute; -#line 2299 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) rename_saved_search_command_real_undo; -#line 2299 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = rename_saved_search_command_finalize; -#line 21125 "Commands.c" -} - - -static void -rename_saved_search_command_instance_init (RenameSavedSearchCommand * self) -{ -#line 2299 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = RENAME_SAVED_SEARCH_COMMAND_GET_PRIVATE (self); -#line 21134 "Commands.c" -} - - -static void -rename_saved_search_command_finalize (GObject * obj) -{ - RenameSavedSearchCommand * self; -#line 2299 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommand); -#line 2300 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->search); -#line 2301 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->old_name); -#line 2302 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (self->priv->new_name); -#line 2299 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (rename_saved_search_command_parent_class)->finalize (obj); -#line 21152 "Commands.c" -} - - -GType -rename_saved_search_command_get_type (void) -{ - static volatile gsize rename_saved_search_command_type_id__volatile = 0; - if (g_once_init_enter (&rename_saved_search_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (RenameSavedSearchCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rename_saved_search_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RenameSavedSearchCommand), 0, (GInstanceInitFunc) rename_saved_search_command_instance_init, NULL }; - GType rename_saved_search_command_type_id; - rename_saved_search_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "RenameSavedSearchCommand", &g_define_type_info, 0); - g_once_init_leave (&rename_saved_search_command_type_id__volatile, rename_saved_search_command_type_id); - } - return rename_saved_search_command_type_id__volatile; -} - - -DeleteSavedSearchCommand* -delete_saved_search_command_construct (GType object_type, - SavedSearch* search) -{ - DeleteSavedSearchCommand * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - SavedSearch* _tmp6_; -#line 2326 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_SAVED_SEARCH (search), NULL); -#line 2327 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject)); -#line 2327 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 2327 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = resources_delete_search_label (_tmp1_); -#line 2327 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 2327 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject)); -#line 2327 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp4_; -#line 2327 "/home/jens/Source/shotwell/src/Commands.vala" - self = (DeleteSavedSearchCommand*) single_data_source_command_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_SOURCE, DataSource), _tmp3_, _tmp5_); -#line 2327 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp5_); -#line 2327 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp3_); -#line 2327 "/home/jens/Source/shotwell/src/Commands.vala" - _g_free0 (_tmp1_); -#line 2329 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = _g_object_ref0 (search); -#line 2329 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->search); -#line 2329 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->search = _tmp6_; -#line 2326 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 21212 "Commands.c" -} - - -DeleteSavedSearchCommand* -delete_saved_search_command_new (SavedSearch* search) -{ -#line 2326 "/home/jens/Source/shotwell/src/Commands.vala" - return delete_saved_search_command_construct (TYPE_DELETE_SAVED_SEARCH_COMMAND, search); -#line 21221 "Commands.c" -} - - -static void -delete_saved_search_command_real_execute (Command* base) -{ - DeleteSavedSearchCommand * self; - SavedSearchTable* _tmp0_; - SavedSearchTable* _tmp1_; - SavedSearch* _tmp2_; -#line 2332 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommand); -#line 2333 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = saved_search_table_get_instance (); -#line 2333 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _tmp0_; -#line 2333 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = self->priv->search; -#line 2333 "/home/jens/Source/shotwell/src/Commands.vala" - saved_search_table_remove (_tmp1_, _tmp2_); -#line 2333 "/home/jens/Source/shotwell/src/Commands.vala" - _saved_search_table_unref0 (_tmp1_); -#line 21244 "Commands.c" -} - - -static void -delete_saved_search_command_real_undo (Command* base) -{ - DeleteSavedSearchCommand * self; - SavedSearch* _tmp0_; -#line 2336 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommand); -#line 2337 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->search; -#line 2337 "/home/jens/Source/shotwell/src/Commands.vala" - saved_search_reconstitute (_tmp0_); -#line 21259 "Commands.c" -} - - -static void -delete_saved_search_command_class_init (DeleteSavedSearchCommandClass * klass) -{ -#line 2323 "/home/jens/Source/shotwell/src/Commands.vala" - delete_saved_search_command_parent_class = g_type_class_peek_parent (klass); -#line 2323 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (DeleteSavedSearchCommandPrivate)); -#line 2323 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) delete_saved_search_command_real_execute; -#line 2323 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) delete_saved_search_command_real_undo; -#line 2323 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = delete_saved_search_command_finalize; -#line 21276 "Commands.c" -} - - -static void -delete_saved_search_command_instance_init (DeleteSavedSearchCommand * self) -{ -#line 2323 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = DELETE_SAVED_SEARCH_COMMAND_GET_PRIVATE (self); -#line 21285 "Commands.c" -} - - -static void -delete_saved_search_command_finalize (GObject * obj) -{ - DeleteSavedSearchCommand * self; -#line 2323 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommand); -#line 2324 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->search); -#line 2323 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (delete_saved_search_command_parent_class)->finalize (obj); -#line 21299 "Commands.c" -} - - -GType -delete_saved_search_command_get_type (void) -{ - static volatile gsize delete_saved_search_command_type_id__volatile = 0; - if (g_once_init_enter (&delete_saved_search_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DeleteSavedSearchCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) delete_saved_search_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DeleteSavedSearchCommand), 0, (GInstanceInitFunc) delete_saved_search_command_instance_init, NULL }; - GType delete_saved_search_command_type_id; - delete_saved_search_command_type_id = g_type_register_static (TYPE_SINGLE_DATA_SOURCE_COMMAND, "DeleteSavedSearchCommand", &g_define_type_info, 0); - g_once_init_leave (&delete_saved_search_command_type_id__volatile, delete_saved_search_command_type_id); - } - return delete_saved_search_command_type_id__volatile; -} - - -static void -_trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self) -{ -#line 2358 "/home/jens/Source/shotwell/src/Commands.vala" - trash_untrash_photos_command_on_photo_destroyed ((TrashUntrashPhotosCommand*) self, source); -#line 21324 "Commands.c" -} - - -TrashUntrashPhotosCommand* -trash_untrash_photos_command_construct (GType object_type, - GeeCollection* sources, - gboolean to_trash) -{ - TrashUntrashPhotosCommand * self = NULL; - const gchar* _tmp0_ = NULL; - const gchar* _tmp1_ = NULL; - GeeCollection* _tmp2_; - LibraryPhotoSourceCollection* _tmp3_; - VideoSourceCollection* _tmp4_; -#line 2345 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (sources), NULL); -#line 2347 "/home/jens/Source/shotwell/src/Commands.vala" - if (to_trash) { -#line 2347 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _ ("Move Photos to Trash"); -#line 21345 "Commands.c" - } else { -#line 2347 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _ ("Restore Photos from Trash"); -#line 21349 "Commands.c" - } -#line 2348 "/home/jens/Source/shotwell/src/Commands.vala" - if (to_trash) { -#line 2348 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _ ("Move the photos to the Shotwell trash"); -#line 21355 "Commands.c" - } else { -#line 2348 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _ ("Restore the photos back to the Shotwell library"); -#line 21359 "Commands.c" - } -#line 2346 "/home/jens/Source/shotwell/src/Commands.vala" - self = (TrashUntrashPhotosCommand*) page_command_construct (object_type, _tmp0_, _tmp1_); -#line 2350 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _g_object_ref0 (sources); -#line 2350 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->sources); -#line 2350 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->sources = _tmp2_; -#line 2351 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->to_trash = to_trash; -#line 2353 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = library_photo_global; -#line 2353 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed, self, 0); -#line 2354 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = video_global; -#line 2354 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed, self, 0); -#line 2345 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 21381 "Commands.c" -} - - -TrashUntrashPhotosCommand* -trash_untrash_photos_command_new (GeeCollection* sources, - gboolean to_trash) -{ -#line 2345 "/home/jens/Source/shotwell/src/Commands.vala" - return trash_untrash_photos_command_construct (TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, sources, to_trash); -#line 21391 "Commands.c" -} - - -static ProgressDialog* -trash_untrash_photos_command_get_progress_dialog (TrashUntrashPhotosCommand* self, - gboolean to_trash) -{ - ProgressDialog* result = NULL; - GeeCollection* _tmp0_; - gint _tmp1_; - gint _tmp2_; - const gchar* _tmp3_ = NULL; - ProgressDialog* dialog = NULL; - AppWindow* _tmp4_; - AppWindow* _tmp5_; - ProgressDialog* _tmp6_; - ProgressDialog* _tmp7_; - ProgressDialog* _tmp8_; - GeeCollection* _tmp9_; - gint _tmp10_; - gint _tmp11_; -#line 2362 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (IS_TRASH_UNTRASH_PHOTOS_COMMAND (self), NULL); -#line 2363 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->sources; -#line 2363 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_collection_get_size (_tmp0_); -#line 2363 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _tmp1_; -#line 2363 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp2_ <= 5) { -#line 2364 "/home/jens/Source/shotwell/src/Commands.vala" - result = NULL; -#line 2364 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 21427 "Commands.c" - } -#line 2367 "/home/jens/Source/shotwell/src/Commands.vala" - if (to_trash) { -#line 2367 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _ ("Moving Photos to Trash"); -#line 21433 "Commands.c" - } else { -#line 2367 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _ ("Restoring Photos From Trash"); -#line 21437 "Commands.c" - } -#line 2366 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = app_window_get_instance (); -#line 2366 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp4_; -#line 2366 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_window_get_type (), GtkWindow), _tmp3_, NULL); -#line 2366 "/home/jens/Source/shotwell/src/Commands.vala" - g_object_ref_sink (_tmp6_); -#line 2366 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = _tmp6_; -#line 2366 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_tmp5_); -#line 2366 "/home/jens/Source/shotwell/src/Commands.vala" - dialog = _tmp7_; -#line 2368 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = dialog; -#line 2368 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = self->priv->sources; -#line 2368 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = gee_collection_get_size (_tmp9_); -#line 2368 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _tmp10_; -#line 2368 "/home/jens/Source/shotwell/src/Commands.vala" - progress_dialog_update_display_every (_tmp8_, CLAMP (_tmp11_ / 5, 2, 10)); -#line 2370 "/home/jens/Source/shotwell/src/Commands.vala" - result = dialog; -#line 2370 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 21467 "Commands.c" -} - - -static gboolean -_progress_dialog_monitor_progress_monitor (guint64 current, - guint64 total, - gboolean do_event_loop, - gpointer self) -{ - gboolean result; - result = progress_dialog_monitor ((ProgressDialog*) self, current, total, do_event_loop); -#line 2378 "/home/jens/Source/shotwell/src/Commands.vala" - return result; -#line 21481 "Commands.c" -} - - -static void -trash_untrash_photos_command_real_execute (Command* base) -{ - TrashUntrashPhotosCommand * self; - ProgressDialog* dialog = NULL; - gboolean _tmp0_; - ProgressDialog* _tmp1_; - ProgressMonitor monitor = NULL; - void* monitor_target; - GDestroyNotify monitor_target_destroy_notify; - ProgressDialog* _tmp2_; - gboolean _tmp4_; - ProgressDialog* _tmp7_; -#line 2373 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommand); -#line 2374 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->to_trash; -#line 2374 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = trash_untrash_photos_command_get_progress_dialog (self, _tmp0_); -#line 2374 "/home/jens/Source/shotwell/src/Commands.vala" - dialog = _tmp1_; -#line 2376 "/home/jens/Source/shotwell/src/Commands.vala" - monitor = NULL; -#line 2376 "/home/jens/Source/shotwell/src/Commands.vala" - monitor_target = NULL; -#line 2376 "/home/jens/Source/shotwell/src/Commands.vala" - monitor_target_destroy_notify = NULL; -#line 2377 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = dialog; -#line 2377 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp2_ != NULL) { -#line 21516 "Commands.c" - ProgressDialog* _tmp3_; -#line 2378 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = dialog; -#line 2378 "/home/jens/Source/shotwell/src/Commands.vala" - (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL); -#line 2378 "/home/jens/Source/shotwell/src/Commands.vala" - monitor = NULL; -#line 2378 "/home/jens/Source/shotwell/src/Commands.vala" - monitor_target = NULL; -#line 2378 "/home/jens/Source/shotwell/src/Commands.vala" - monitor_target_destroy_notify = NULL; -#line 2378 "/home/jens/Source/shotwell/src/Commands.vala" - monitor = _progress_dialog_monitor_progress_monitor; -#line 2378 "/home/jens/Source/shotwell/src/Commands.vala" - monitor_target = g_object_ref (_tmp3_); -#line 2378 "/home/jens/Source/shotwell/src/Commands.vala" - monitor_target_destroy_notify = g_object_unref; -#line 21534 "Commands.c" - } -#line 2380 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->to_trash; -#line 2380 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp4_) { -#line 21540 "Commands.c" - ProgressMonitor _tmp5_; - void* _tmp5__target; -#line 2381 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = monitor; -#line 2381 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5__target = monitor_target; -#line 2381 "/home/jens/Source/shotwell/src/Commands.vala" - trash_untrash_photos_command_trash (self, _tmp5_, _tmp5__target); -#line 21549 "Commands.c" - } else { - ProgressMonitor _tmp6_; - void* _tmp6__target; -#line 2383 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = monitor; -#line 2383 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6__target = monitor_target; -#line 2383 "/home/jens/Source/shotwell/src/Commands.vala" - trash_untrash_photos_command_untrash (self, _tmp6_, _tmp6__target); -#line 21559 "Commands.c" - } -#line 2385 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = dialog; -#line 2385 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp7_ != NULL) { -#line 21565 "Commands.c" - ProgressDialog* _tmp8_; -#line 2386 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = dialog; -#line 2386 "/home/jens/Source/shotwell/src/Commands.vala" - progress_dialog_close (_tmp8_); -#line 21571 "Commands.c" - } -#line 2373 "/home/jens/Source/shotwell/src/Commands.vala" - (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL); -#line 2373 "/home/jens/Source/shotwell/src/Commands.vala" - monitor = NULL; -#line 2373 "/home/jens/Source/shotwell/src/Commands.vala" - monitor_target = NULL; -#line 2373 "/home/jens/Source/shotwell/src/Commands.vala" - monitor_target_destroy_notify = NULL; -#line 2373 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (dialog); -#line 21583 "Commands.c" -} - - -static void -trash_untrash_photos_command_real_undo (Command* base) -{ - TrashUntrashPhotosCommand * self; - ProgressDialog* dialog = NULL; - gboolean _tmp0_; - ProgressDialog* _tmp1_; - ProgressMonitor monitor = NULL; - void* monitor_target; - GDestroyNotify monitor_target_destroy_notify; - ProgressDialog* _tmp2_; - gboolean _tmp4_; - ProgressDialog* _tmp7_; -#line 2389 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommand); -#line 2390 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->to_trash; -#line 2390 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = trash_untrash_photos_command_get_progress_dialog (self, !_tmp0_); -#line 2390 "/home/jens/Source/shotwell/src/Commands.vala" - dialog = _tmp1_; -#line 2392 "/home/jens/Source/shotwell/src/Commands.vala" - monitor = NULL; -#line 2392 "/home/jens/Source/shotwell/src/Commands.vala" - monitor_target = NULL; -#line 2392 "/home/jens/Source/shotwell/src/Commands.vala" - monitor_target_destroy_notify = NULL; -#line 2393 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = dialog; -#line 2393 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp2_ != NULL) { -#line 21618 "Commands.c" - ProgressDialog* _tmp3_; -#line 2394 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = dialog; -#line 2394 "/home/jens/Source/shotwell/src/Commands.vala" - (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL); -#line 2394 "/home/jens/Source/shotwell/src/Commands.vala" - monitor = NULL; -#line 2394 "/home/jens/Source/shotwell/src/Commands.vala" - monitor_target = NULL; -#line 2394 "/home/jens/Source/shotwell/src/Commands.vala" - monitor_target_destroy_notify = NULL; -#line 2394 "/home/jens/Source/shotwell/src/Commands.vala" - monitor = _progress_dialog_monitor_progress_monitor; -#line 2394 "/home/jens/Source/shotwell/src/Commands.vala" - monitor_target = g_object_ref (_tmp3_); -#line 2394 "/home/jens/Source/shotwell/src/Commands.vala" - monitor_target_destroy_notify = g_object_unref; -#line 21636 "Commands.c" - } -#line 2396 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = self->priv->to_trash; -#line 2396 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp4_) { -#line 21642 "Commands.c" - ProgressMonitor _tmp5_; - void* _tmp5__target; -#line 2397 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = monitor; -#line 2397 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5__target = monitor_target; -#line 2397 "/home/jens/Source/shotwell/src/Commands.vala" - trash_untrash_photos_command_untrash (self, _tmp5_, _tmp5__target); -#line 21651 "Commands.c" - } else { - ProgressMonitor _tmp6_; - void* _tmp6__target; -#line 2399 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = monitor; -#line 2399 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6__target = monitor_target; -#line 2399 "/home/jens/Source/shotwell/src/Commands.vala" - trash_untrash_photos_command_trash (self, _tmp6_, _tmp6__target); -#line 21661 "Commands.c" - } -#line 2401 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = dialog; -#line 2401 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp7_ != NULL) { -#line 21667 "Commands.c" - ProgressDialog* _tmp8_; -#line 2402 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = dialog; -#line 2402 "/home/jens/Source/shotwell/src/Commands.vala" - progress_dialog_close (_tmp8_); -#line 21673 "Commands.c" - } -#line 2389 "/home/jens/Source/shotwell/src/Commands.vala" - (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL); -#line 2389 "/home/jens/Source/shotwell/src/Commands.vala" - monitor = NULL; -#line 2389 "/home/jens/Source/shotwell/src/Commands.vala" - monitor_target = NULL; -#line 2389 "/home/jens/Source/shotwell/src/Commands.vala" - monitor_target_destroy_notify = NULL; -#line 2389 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (dialog); -#line 21685 "Commands.c" -} - - -static void -trash_untrash_photos_command_trash (TrashUntrashPhotosCommand* self, - ProgressMonitor monitor, - void* monitor_target) -{ - gint ctr = 0; - gint count = 0; - GeeCollection* _tmp0_; - gint _tmp1_; - gint _tmp2_; - LibraryPhotoSourceCollection* _tmp3_; - TransactionController* _tmp4_; - TransactionController* _tmp5_; - VideoSourceCollection* _tmp6_; - TransactionController* _tmp7_; - TransactionController* _tmp8_; - LibraryPhotoSourceCollection* _tmp18_; - TransactionController* _tmp19_; - TransactionController* _tmp20_; - VideoSourceCollection* _tmp21_; - TransactionController* _tmp22_; - TransactionController* _tmp23_; -#line 2405 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_TRASH_UNTRASH_PHOTOS_COMMAND (self)); -#line 2406 "/home/jens/Source/shotwell/src/Commands.vala" - ctr = 0; -#line 2407 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->sources; -#line 2407 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_collection_get_size (_tmp0_); -#line 2407 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _tmp1_; -#line 2407 "/home/jens/Source/shotwell/src/Commands.vala" - count = _tmp2_; -#line 2409 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = library_photo_global; -#line 2409 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 2409 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp4_; -#line 2409 "/home/jens/Source/shotwell/src/Commands.vala" - transaction_controller_begin (_tmp5_); -#line 2410 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = video_global; -#line 2410 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 2410 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _tmp7_; -#line 2410 "/home/jens/Source/shotwell/src/Commands.vala" - transaction_controller_begin (_tmp8_); -#line 21739 "Commands.c" - { - GeeIterator* _source_it = NULL; - GeeCollection* _tmp9_; - GeeIterator* _tmp10_; -#line 2412 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = self->priv->sources; -#line 2412 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2412 "/home/jens/Source/shotwell/src/Commands.vala" - _source_it = _tmp10_; -#line 2412 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 21752 "Commands.c" - GeeIterator* _tmp11_; - MediaSource* source = NULL; - GeeIterator* _tmp12_; - gpointer _tmp13_; - MediaSource* _tmp14_; -#line 2412 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _source_it; -#line 2412 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp11_)) { -#line 2412 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 21764 "Commands.c" - } -#line 2412 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = _source_it; -#line 2412 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = gee_iterator_get (_tmp12_); -#line 2412 "/home/jens/Source/shotwell/src/Commands.vala" - source = (MediaSource*) _tmp13_; -#line 2413 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = source; -#line 2413 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_trash (_tmp14_); -#line 2414 "/home/jens/Source/shotwell/src/Commands.vala" - if (monitor != NULL) { -#line 21778 "Commands.c" - gint _tmp15_; - gint _tmp16_; - gint _tmp17_; -#line 2415 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = ctr; -#line 2415 "/home/jens/Source/shotwell/src/Commands.vala" - ctr = _tmp15_ + 1; -#line 2415 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = ctr; -#line 2415 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = count; -#line 2415 "/home/jens/Source/shotwell/src/Commands.vala" - monitor ((guint64) _tmp16_, (guint64) _tmp17_, TRUE, monitor_target); -#line 21792 "Commands.c" - } -#line 2412 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 21796 "Commands.c" - } -#line 2412 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_it); -#line 21800 "Commands.c" - } -#line 2418 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = library_photo_global; -#line 2418 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 2418 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = _tmp19_; -#line 2418 "/home/jens/Source/shotwell/src/Commands.vala" - transaction_controller_commit (_tmp20_); -#line 2419 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = video_global; -#line 2419 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 2419 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = _tmp22_; -#line 2419 "/home/jens/Source/shotwell/src/Commands.vala" - transaction_controller_commit (_tmp23_); -#line 21818 "Commands.c" -} - - -static void -trash_untrash_photos_command_untrash (TrashUntrashPhotosCommand* self, - ProgressMonitor monitor, - void* monitor_target) -{ - gint ctr = 0; - gint count = 0; - GeeCollection* _tmp0_; - gint _tmp1_; - gint _tmp2_; - LibraryPhotoSourceCollection* _tmp3_; - TransactionController* _tmp4_; - TransactionController* _tmp5_; - VideoSourceCollection* _tmp6_; - TransactionController* _tmp7_; - TransactionController* _tmp8_; - LibraryPhotoSourceCollection* _tmp18_; - TransactionController* _tmp19_; - TransactionController* _tmp20_; - VideoSourceCollection* _tmp21_; - TransactionController* _tmp22_; - TransactionController* _tmp23_; -#line 2422 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_TRASH_UNTRASH_PHOTOS_COMMAND (self)); -#line 2423 "/home/jens/Source/shotwell/src/Commands.vala" - ctr = 0; -#line 2424 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->sources; -#line 2424 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = gee_collection_get_size (_tmp0_); -#line 2424 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _tmp1_; -#line 2424 "/home/jens/Source/shotwell/src/Commands.vala" - count = _tmp2_; -#line 2426 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = library_photo_global; -#line 2426 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 2426 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp4_; -#line 2426 "/home/jens/Source/shotwell/src/Commands.vala" - transaction_controller_begin (_tmp5_); -#line 2427 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = video_global; -#line 2427 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 2427 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = _tmp7_; -#line 2427 "/home/jens/Source/shotwell/src/Commands.vala" - transaction_controller_begin (_tmp8_); -#line 21872 "Commands.c" - { - GeeIterator* _source_it = NULL; - GeeCollection* _tmp9_; - GeeIterator* _tmp10_; -#line 2429 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = self->priv->sources; -#line 2429 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2429 "/home/jens/Source/shotwell/src/Commands.vala" - _source_it = _tmp10_; -#line 2429 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 21885 "Commands.c" - GeeIterator* _tmp11_; - MediaSource* source = NULL; - GeeIterator* _tmp12_; - gpointer _tmp13_; - MediaSource* _tmp14_; -#line 2429 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _source_it; -#line 2429 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp11_)) { -#line 2429 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 21897 "Commands.c" - } -#line 2429 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = _source_it; -#line 2429 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = gee_iterator_get (_tmp12_); -#line 2429 "/home/jens/Source/shotwell/src/Commands.vala" - source = (MediaSource*) _tmp13_; -#line 2430 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = source; -#line 2430 "/home/jens/Source/shotwell/src/Commands.vala" - media_source_untrash (_tmp14_); -#line 2431 "/home/jens/Source/shotwell/src/Commands.vala" - if (monitor != NULL) { -#line 21911 "Commands.c" - gint _tmp15_; - gint _tmp16_; - gint _tmp17_; -#line 2432 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp15_ = ctr; -#line 2432 "/home/jens/Source/shotwell/src/Commands.vala" - ctr = _tmp15_ + 1; -#line 2432 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp16_ = ctr; -#line 2432 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp17_ = count; -#line 2432 "/home/jens/Source/shotwell/src/Commands.vala" - monitor ((guint64) _tmp16_, (guint64) _tmp17_, TRUE, monitor_target); -#line 21925 "Commands.c" - } -#line 2429 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 21929 "Commands.c" - } -#line 2429 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_it); -#line 21933 "Commands.c" - } -#line 2435 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp18_ = library_photo_global; -#line 2435 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp19_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 2435 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp20_ = _tmp19_; -#line 2435 "/home/jens/Source/shotwell/src/Commands.vala" - transaction_controller_commit (_tmp20_); -#line 2436 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp21_ = video_global; -#line 2436 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp22_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 2436 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp23_ = _tmp22_; -#line 2436 "/home/jens/Source/shotwell/src/Commands.vala" - transaction_controller_commit (_tmp23_); -#line 21951 "Commands.c" -} - - -static void -trash_untrash_photos_command_on_photo_destroyed (TrashUntrashPhotosCommand* self, - DataSource* source) -{ - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - gint _tmp2_; - gint _tmp3_; -#line 2439 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_TRASH_UNTRASH_PHOTOS_COMMAND (self)); -#line 2439 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 2442 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = self->priv->sources; -#line 2442 "/home/jens/Source/shotwell/src/Commands.vala" - gee_collection_remove (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource)); -#line 2446 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = self->priv->sources; -#line 2446 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = gee_collection_get_size (_tmp1_); -#line 2446 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 2446 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp3_ == 0) { -#line 21979 "Commands.c" - CommandManager* _tmp4_; - CommandManager* _tmp5_; -#line 2447 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = command_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COMMAND, Command)); -#line 2447 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = _tmp4_; -#line 2447 "/home/jens/Source/shotwell/src/Commands.vala" - command_manager_reset (_tmp5_); -#line 2447 "/home/jens/Source/shotwell/src/Commands.vala" - _command_manager_unref0 (_tmp5_); -#line 21990 "Commands.c" - } -} - - -static void -trash_untrash_photos_command_class_init (TrashUntrashPhotosCommandClass * klass) -{ -#line 2341 "/home/jens/Source/shotwell/src/Commands.vala" - trash_untrash_photos_command_parent_class = g_type_class_peek_parent (klass); -#line 2341 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (TrashUntrashPhotosCommandPrivate)); -#line 2341 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) trash_untrash_photos_command_real_execute; -#line 2341 "/home/jens/Source/shotwell/src/Commands.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) trash_untrash_photos_command_real_undo; -#line 2341 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = trash_untrash_photos_command_finalize; -#line 22008 "Commands.c" -} - - -static void -trash_untrash_photos_command_instance_init (TrashUntrashPhotosCommand * self) -{ -#line 2341 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = TRASH_UNTRASH_PHOTOS_COMMAND_GET_PRIVATE (self); -#line 22017 "Commands.c" -} - - -static void -trash_untrash_photos_command_finalize (GObject * obj) -{ - TrashUntrashPhotosCommand * self; - LibraryPhotoSourceCollection* _tmp0_; - guint _tmp1_; - VideoSourceCollection* _tmp2_; - guint _tmp3_; -#line 2341 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommand); -#line 2358 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = library_photo_global; -#line 2358 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE); -#line 2358 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed, self); -#line 2359 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = video_global; -#line 2359 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE); -#line 2359 "/home/jens/Source/shotwell/src/Commands.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _trash_untrash_photos_command_on_photo_destroyed_source_collection_item_destroyed, self); -#line 2342 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->sources); -#line 2341 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (trash_untrash_photos_command_parent_class)->finalize (obj); -#line 22047 "Commands.c" -} - - -GType -trash_untrash_photos_command_get_type (void) -{ - static volatile gsize trash_untrash_photos_command_type_id__volatile = 0; - if (g_once_init_enter (&trash_untrash_photos_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TrashUntrashPhotosCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) trash_untrash_photos_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrashUntrashPhotosCommand), 0, (GInstanceInitFunc) trash_untrash_photos_command_instance_init, NULL }; - GType trash_untrash_photos_command_type_id; - trash_untrash_photos_command_type_id = g_type_register_static (TYPE_PAGE_COMMAND, "TrashUntrashPhotosCommand", &g_define_type_info, 0); - g_once_init_leave (&trash_untrash_photos_command_type_id__volatile, trash_untrash_photos_command_type_id); - } - return trash_untrash_photos_command_type_id__volatile; -} - - -FlagUnflagCommand* -flag_unflag_command_construct (GType object_type, - GeeCollection* sources, - gboolean flag) -{ - FlagUnflagCommand * self = NULL; - const gchar* _tmp0_ = NULL; - const gchar* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; -#line 2461 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (sources), NULL); -#line 2463 "/home/jens/Source/shotwell/src/Commands.vala" - if (flag) { -#line 2463 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _ ("Flag"); -#line 22081 "Commands.c" - } else { -#line 2463 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _ ("Unflag"); -#line 22085 "Commands.c" - } -#line 2464 "/home/jens/Source/shotwell/src/Commands.vala" - if (flag) { -#line 2464 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = FLAG_UNFLAG_COMMAND_FLAG_SELECTED_STRING; -#line 22091 "Commands.c" - } else { -#line 2464 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = FLAG_UNFLAG_COMMAND_UNFLAG_SELECTED_STRING; -#line 22095 "Commands.c" - } -#line 2462 "/home/jens/Source/shotwell/src/Commands.vala" - self = (FlagUnflagCommand*) multiple_data_source_at_once_command_construct (object_type, sources, _tmp0_, _tmp1_); -#line 2466 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->flag = flag; -#line 2468 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = gee_collection_get_size (sources); -#line 2468 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = _tmp2_; -#line 2468 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp3_ >= FLAG_UNFLAG_COMMAND_MIN_PROGRESS_BAR_THRESHOLD) { -#line 22107 "Commands.c" - const gchar* _tmp4_ = NULL; - ProgressDialog* _tmp5_; - ProgressDialog* _tmp6_; -#line 2470 "/home/jens/Source/shotwell/src/Commands.vala" - if (flag) { -#line 2470 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = FLAG_UNFLAG_COMMAND_FLAG_PROGRESS; -#line 22115 "Commands.c" - } else { -#line 2470 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = FLAG_UNFLAG_COMMAND_UNFLAG_PROGRESS; -#line 22119 "Commands.c" - } -#line 2469 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = progress_dialog_new (NULL, _tmp4_, NULL); -#line 2469 "/home/jens/Source/shotwell/src/Commands.vala" - g_object_ref_sink (_tmp5_); -#line 2469 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->progress_dialog); -#line 2469 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->progress_dialog = _tmp5_; -#line 2472 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = self->priv->progress_dialog; -#line 2472 "/home/jens/Source/shotwell/src/Commands.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget)); -#line 22133 "Commands.c" - } -#line 2461 "/home/jens/Source/shotwell/src/Commands.vala" - return self; -#line 22137 "Commands.c" -} - - -FlagUnflagCommand* -flag_unflag_command_new (GeeCollection* sources, - gboolean flag) -{ -#line 2461 "/home/jens/Source/shotwell/src/Commands.vala" - return flag_unflag_command_construct (TYPE_FLAG_UNFLAG_COMMAND, sources, flag); -#line 22147 "Commands.c" -} - - -static void -flag_unflag_command_real_execute_on_all (MultipleDataSourceAtOnceCommand* base, - GeeCollection* sources) -{ - FlagUnflagCommand * self; - gint num_processed = 0; - ProgressDialog* _tmp13_; -#line 2476 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand); -#line 2476 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 2477 "/home/jens/Source/shotwell/src/Commands.vala" - num_processed = 0; -#line 22164 "Commands.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 2479 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2479 "/home/jens/Source/shotwell/src/Commands.vala" - _source_it = _tmp0_; -#line 2479 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 22174 "Commands.c" - GeeIterator* _tmp1_; - DataSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataSource* _tmp4_; - gboolean _tmp5_; - gint _tmp6_; - ProgressDialog* _tmp7_; -#line 2479 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _source_it; -#line 2479 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 2479 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 22189 "Commands.c" - } -#line 2479 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _source_it; -#line 2479 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 2479 "/home/jens/Source/shotwell/src/Commands.vala" - source = (DataSource*) _tmp3_; -#line 2480 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = source; -#line 2480 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = self->priv->flag; -#line 2480 "/home/jens/Source/shotwell/src/Commands.vala" - flag_unflag_command_flag_unflag (self, _tmp4_, _tmp5_); -#line 2482 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp6_ = num_processed; -#line 2482 "/home/jens/Source/shotwell/src/Commands.vala" - num_processed = _tmp6_ + 1; -#line 2484 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp7_ = self->priv->progress_dialog; -#line 2484 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp7_ != NULL) { -#line 22211 "Commands.c" - ProgressDialog* _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; - ProgressDialog* _tmp12_; -#line 2485 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp8_ = self->priv->progress_dialog; -#line 2485 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp9_ = num_processed; -#line 2485 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp10_ = gee_collection_get_size (sources); -#line 2485 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp11_ = _tmp10_; -#line 2485 "/home/jens/Source/shotwell/src/Commands.vala" - progress_dialog_set_fraction (_tmp8_, _tmp9_, _tmp11_); -#line 2486 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp12_ = self->priv->progress_dialog; -#line 2486 "/home/jens/Source/shotwell/src/Commands.vala" - gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget)); -#line 2487 "/home/jens/Source/shotwell/src/Commands.vala" - spin_event_loop (); -#line 22233 "Commands.c" - } -#line 2479 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 22237 "Commands.c" - } -#line 2479 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_it); -#line 22241 "Commands.c" - } -#line 2491 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp13_ = self->priv->progress_dialog; -#line 2491 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp13_ != NULL) { -#line 22247 "Commands.c" - ProgressDialog* _tmp14_; -#line 2492 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp14_ = self->priv->progress_dialog; -#line 2492 "/home/jens/Source/shotwell/src/Commands.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget)); -#line 22253 "Commands.c" - } -} - - -static void -flag_unflag_command_real_undo_on_all (MultipleDataSourceAtOnceCommand* base, - GeeCollection* sources) -{ - FlagUnflagCommand * self; -#line 2495 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand); -#line 2495 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 22267 "Commands.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 2496 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2496 "/home/jens/Source/shotwell/src/Commands.vala" - _source_it = _tmp0_; -#line 2496 "/home/jens/Source/shotwell/src/Commands.vala" - while (TRUE) { -#line 22277 "Commands.c" - GeeIterator* _tmp1_; - DataSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataSource* _tmp4_; - gboolean _tmp5_; -#line 2496 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = _source_it; -#line 2496 "/home/jens/Source/shotwell/src/Commands.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 2496 "/home/jens/Source/shotwell/src/Commands.vala" - break; -#line 22290 "Commands.c" - } -#line 2496 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = _source_it; -#line 2496 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 2496 "/home/jens/Source/shotwell/src/Commands.vala" - source = (DataSource*) _tmp3_; -#line 2497 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp4_ = source; -#line 2497 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp5_ = self->priv->flag; -#line 2497 "/home/jens/Source/shotwell/src/Commands.vala" - flag_unflag_command_flag_unflag (self, _tmp4_, !_tmp5_); -#line 2496 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (source); -#line 22306 "Commands.c" - } -#line 2496 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (_source_it); -#line 22310 "Commands.c" - } -} - - -static void -flag_unflag_command_flag_unflag (FlagUnflagCommand* self, - DataSource* source, - gboolean flag) -{ - Flaggable* flaggable = NULL; - Flaggable* _tmp0_; - Flaggable* _tmp1_; -#line 2500 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_FLAG_UNFLAG_COMMAND (self)); -#line 2500 "/home/jens/Source/shotwell/src/Commands.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 2501 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_FLAGGABLE) ? ((Flaggable*) source) : NULL); -#line 2501 "/home/jens/Source/shotwell/src/Commands.vala" - flaggable = _tmp0_; -#line 2502 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp1_ = flaggable; -#line 2502 "/home/jens/Source/shotwell/src/Commands.vala" - if (_tmp1_ != NULL) { -#line 2503 "/home/jens/Source/shotwell/src/Commands.vala" - if (flag) { -#line 22337 "Commands.c" - Flaggable* _tmp2_; -#line 2504 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp2_ = flaggable; -#line 2504 "/home/jens/Source/shotwell/src/Commands.vala" - flaggable_mark_flagged (_tmp2_); -#line 22343 "Commands.c" - } else { - Flaggable* _tmp3_; -#line 2506 "/home/jens/Source/shotwell/src/Commands.vala" - _tmp3_ = flaggable; -#line 2506 "/home/jens/Source/shotwell/src/Commands.vala" - flaggable_mark_unflagged (_tmp3_); -#line 22350 "Commands.c" - } - } -#line 2500 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (flaggable); -#line 22355 "Commands.c" -} - - -static void -flag_unflag_command_class_init (FlagUnflagCommandClass * klass) -{ -#line 2451 "/home/jens/Source/shotwell/src/Commands.vala" - flag_unflag_command_parent_class = g_type_class_peek_parent (klass); -#line 2451 "/home/jens/Source/shotwell/src/Commands.vala" - g_type_class_add_private (klass, sizeof (FlagUnflagCommandPrivate)); -#line 2451 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceAtOnceCommandClass *) klass)->execute_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) flag_unflag_command_real_execute_on_all; -#line 2451 "/home/jens/Source/shotwell/src/Commands.vala" - ((MultipleDataSourceAtOnceCommandClass *) klass)->undo_on_all = (void (*) (MultipleDataSourceAtOnceCommand *, GeeCollection*)) flag_unflag_command_real_undo_on_all; -#line 2451 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (klass)->finalize = flag_unflag_command_finalize; -#line 22372 "Commands.c" -} - - -static void -flag_unflag_command_instance_init (FlagUnflagCommand * self) -{ -#line 2451 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv = FLAG_UNFLAG_COMMAND_GET_PRIVATE (self); -#line 2459 "/home/jens/Source/shotwell/src/Commands.vala" - self->priv->progress_dialog = NULL; -#line 22383 "Commands.c" -} - - -static void -flag_unflag_command_finalize (GObject * obj) -{ - FlagUnflagCommand * self; -#line 2451 "/home/jens/Source/shotwell/src/Commands.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand); -#line 2459 "/home/jens/Source/shotwell/src/Commands.vala" - _g_object_unref0 (self->priv->progress_dialog); -#line 2451 "/home/jens/Source/shotwell/src/Commands.vala" - G_OBJECT_CLASS (flag_unflag_command_parent_class)->finalize (obj); -#line 22397 "Commands.c" -} - - -GType -flag_unflag_command_get_type (void) -{ - static volatile gsize flag_unflag_command_type_id__volatile = 0; - if (g_once_init_enter (&flag_unflag_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FlagUnflagCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) flag_unflag_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FlagUnflagCommand), 0, (GInstanceInitFunc) flag_unflag_command_instance_init, NULL }; - GType flag_unflag_command_type_id; - flag_unflag_command_type_id = g_type_register_static (TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, "FlagUnflagCommand", &g_define_type_info, 0); - g_once_init_leave (&flag_unflag_command_type_id__volatile, flag_unflag_command_type_id); - } - return flag_unflag_command_type_id__volatile; -} - - - diff --git a/src/Commands.vala b/src/Commands.vala index 7441a50..6924f82 100644 --- a/src/Commands.vala +++ b/src/Commands.vala @@ -920,7 +920,6 @@ public abstract class MovePhotosCommand : Command { } public override void execute() { - // create the new event base.execute(); @@ -2507,3 +2506,220 @@ public class FlagUnflagCommand : MultipleDataSourceAtOnceCommand { } } } + +#if ENABLE_FACES +public class RemoveFacesFromPhotosCommand : SimpleProxyableCommand { + private Gee.Map map_source_geometry = new Gee.HashMap(); + + public RemoveFacesFromPhotosCommand(Face face, Gee.Collection sources) { + base (face, + Resources.remove_face_from_photos_label(face.get_name(), sources.size), + face.get_name()); + + foreach (MediaSource source in sources) { + FaceLocation? face_location = + FaceLocation.get_face_location(face.get_face_id(), ((Photo) source).get_photo_id()); + assert(face_location != null); + + this.map_source_geometry.set(source, face_location.get_serialized_geometry()); + } + + LibraryPhoto.global.item_destroyed.connect(on_source_destroyed); + Video.global.item_destroyed.connect(on_source_destroyed); + } + + ~RemoveFacesFromPhotosCommand() { + LibraryPhoto.global.item_destroyed.disconnect(on_source_destroyed); + Video.global.item_destroyed.disconnect(on_source_destroyed); + } + + public override void execute_on_source(DataSource source) { + ((Face) source).detach_many(map_source_geometry.keys); + } + + public override void undo_on_source(DataSource source) { + Face face = (Face) source; + + face.attach_many(map_source_geometry.keys); + foreach (Gee.Map.Entry entry in map_source_geometry.entries) + FaceLocation.create(face.get_face_id(), ((Photo) entry.key).get_photo_id(), entry.value); + } + + private void on_source_destroyed(DataSource source) { + if (map_source_geometry.keys.contains((MediaSource) source)) + get_command_manager().reset(); + } +} + +public class RenameFaceCommand : SimpleProxyableCommand { + private string old_name; + private string new_name; + + public RenameFaceCommand(Face face, string new_name) { + base (face, Resources.rename_face_label(face.get_name(), new_name), face.get_name()); + + old_name = face.get_name(); + this.new_name = new_name; + } + + protected override void execute_on_source(DataSource source) { + if (!((Face) source).rename(new_name)) + AppWindow.error_message(Resources.rename_face_exists_message(new_name)); + } + + protected override void undo_on_source(DataSource source) { + if (!((Face) source).rename(old_name)) + AppWindow.error_message(Resources.rename_face_exists_message(old_name)); + } +} + +public class DeleteFaceCommand : SimpleProxyableCommand { + private Gee.Map photo_geometry_map = new Gee.HashMap + ((Gee.HashDataFunc)FaceLocation.photo_id_hash, (Gee.EqualDataFunc)FaceLocation.photo_ids_equal); + + public DeleteFaceCommand(Face face) { + base (face, Resources.delete_face_label(face.get_name()), face.get_name()); + + // we can't use the Gee.Map returned by FaceLocation.get_locations_by_face + // because it will be modified in execute_on_source + Gee.Map? temp = FaceLocation.get_locations_by_face(face); + assert(temp != null); + foreach (Gee.Map.Entry entry in temp.entries) + photo_geometry_map.set(entry.key, entry.value.get_serialized_geometry()); + } + + protected override void execute_on_source(DataSource source) { + FaceID face_id = ((Face) source).get_face_id(); + foreach (PhotoID photo_id in photo_geometry_map.keys) + FaceLocation.destroy(face_id, photo_id); + + Face.global.destroy_marked(Face.global.mark(source), false); + } + + protected override void undo_on_source(DataSource source) { + // merely instantiating the Face will rehydrate it ... should always work, because the + // undo stack is cleared if the proxy ever breaks + assert(source is Face); + + foreach (Gee.Map.Entry entry in photo_geometry_map.entries) { + Photo? photo = LibraryPhoto.global.fetch(entry.key); + + if (photo != null) { + Face face = (Face) source; + + face.attach(photo); + FaceLocation.create(face.get_face_id(), entry.key, entry.value); + } + } + } +} + +public class ModifyFacesCommand : SingleDataSourceCommand { + private MediaSource media; + private Gee.ArrayList to_add = new Gee.ArrayList(); + private Gee.ArrayList to_remove = new Gee.ArrayList(); + private Gee.Map to_update = new Gee.HashMap(); + private Gee.Map geometries = new Gee.HashMap(); + + public ModifyFacesCommand(MediaSource media, Gee.Map new_face_list) { + base (media, Resources.MODIFY_FACES_LABEL, ""); + + this.media = media; + + // Remove any face that's in the original list but not the new one + Gee.Collection? original_faces = Face.global.fetch_for_source(media); + if (original_faces != null) { + foreach (Face face in original_faces) { + if (!new_face_list.keys.contains(face)) { + SourceProxy proxy = face.get_proxy(); + + to_remove.add(proxy); + proxy.broken.connect(on_proxy_broken); + + FaceLocation? face_location = + FaceLocation.get_face_location(face.get_face_id(), ((Photo) media).get_photo_id()); + assert(face_location != null); + + geometries.set(proxy, face_location.get_serialized_geometry()); + } + } + } + + // Add any face that's in the new list but not the original + foreach (Gee.Map.Entry entry in new_face_list.entries) { + if (original_faces == null || !original_faces.contains(entry.key)) { + SourceProxy proxy = entry.key.get_proxy(); + + to_add.add(proxy); + proxy.broken.connect(on_proxy_broken); + + geometries.set(proxy, entry.value); + } else { + // If it is already in the original list we need to check if it's + // geometry has changed. + FaceLocation? face_location = + FaceLocation.get_face_location(entry.key.get_face_id(), ((Photo) media).get_photo_id()); + assert(face_location != null); + + string old_geometry = face_location.get_serialized_geometry(); + if (old_geometry != entry.value) { + SourceProxy proxy = entry.key.get_proxy(); + + to_update.set(proxy, entry.value); + proxy.broken.connect(on_proxy_broken); + + geometries.set(proxy, old_geometry); + } + } + } + } + + ~ModifyFacesCommand() { + foreach (SourceProxy proxy in to_add) + proxy.broken.disconnect(on_proxy_broken); + + foreach (SourceProxy proxy in to_remove) + proxy.broken.disconnect(on_proxy_broken); + + foreach (SourceProxy proxy in to_update.keys) + proxy.broken.disconnect(on_proxy_broken); + } + + public override void execute() { + foreach (SourceProxy proxy in to_add) { + Face face = (Face) proxy.get_source(); + face.attach(media); + FaceLocation.create(face.get_face_id(), ((Photo) media).get_photo_id(), geometries.get(proxy)); + } + + foreach (SourceProxy proxy in to_remove) + ((Face) proxy.get_source()).detach(media); + + foreach (Gee.Map.Entry entry in to_update.entries) { + Face face = (Face) entry.key.get_source(); + FaceLocation.create(face.get_face_id(), ((Photo) media).get_photo_id(), entry.value); + } + } + + public override void undo() { + foreach (SourceProxy proxy in to_add) + ((Face) proxy.get_source()).detach(media); + + foreach (SourceProxy proxy in to_remove) { + Face face = (Face) proxy.get_source(); + face.attach(media); + FaceLocation.create(face.get_face_id(), ((Photo) media).get_photo_id(), geometries.get(proxy)); + } + + foreach (SourceProxy proxy in to_update.keys) { + Face face = (Face) proxy.get_source(); + FaceLocation.create(face.get_face_id(), ((Photo) media).get_photo_id(), geometries.get(proxy)); + } + } + + private void on_proxy_broken() { + get_command_manager().reset(); + } +} + +#endif diff --git a/src/Debug.c b/src/Debug.c deleted file mode 100644 index a44d811..0000000 --- a/src/Debug.c +++ /dev/null @@ -1,777 +0,0 @@ -/* Debug.c generated by valac 0.40.4, the Vala compiler - * generated from Debug.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _fclose0(var) ((var == NULL) ? NULL : (var = (fclose (var), NULL))) - - -extern GLogLevelFlags debug_log_mask; -GLogLevelFlags debug_log_mask = 0; -extern gchar* debug_log_app_version_prefix; -gchar* debug_log_app_version_prefix = NULL; -extern FILE* debug_log_out; -FILE* debug_log_out = NULL; -extern FILE* debug_log_err; -FILE* debug_log_err = NULL; -extern FILE* debug_log_file_stream; -FILE* debug_log_file_stream = NULL; - -#define DEBUG_DEFAULT_LOG_MASK ((G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING) | G_LOG_LEVEL_MESSAGE) -#define DEBUG_VIEWER_PREFIX "V" -#define DEBUG_LIBRARY_PREFIX "L" -void debug_init (const gchar* app_version_prefix); -GFile* app_dirs_get_log_file (void); -void debug_info_handler (const gchar* domain, - GLogLevelFlags flags, - const gchar* message); -static void _debug_info_handler_glog_func (const gchar* log_domain, - GLogLevelFlags log_levels, - const gchar* message, - gpointer self); -void debug_debug_handler (const gchar* domain, - GLogLevelFlags flags, - const gchar* message); -static void _debug_debug_handler_glog_func (const gchar* log_domain, - GLogLevelFlags log_levels, - const gchar* message, - gpointer self); -void debug_message_handler (const gchar* domain, - GLogLevelFlags flags, - const gchar* message); -static void _debug_message_handler_glog_func (const gchar* log_domain, - GLogLevelFlags log_levels, - const gchar* message, - gpointer self); -void debug_warning_handler (const gchar* domain, - GLogLevelFlags flags, - const gchar* message); -static void _debug_warning_handler_glog_func (const gchar* log_domain, - GLogLevelFlags log_levels, - const gchar* message, - gpointer self); -void debug_critical_handler (const gchar* domain, - GLogLevelFlags flags, - const gchar* message); -static void _debug_critical_handler_glog_func (const gchar* log_domain, - GLogLevelFlags log_levels, - const gchar* message, - gpointer self); -void debug_terminate (void); -gboolean debug_is_enabled (GLogLevelFlags flag); -void debug_log (FILE* stream, - const gchar* prefix, - const gchar* message); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 37 "/home/jens/Source/shotwell/src/Debug.vala" - return self ? g_object_ref (self) : NULL; -#line 91 "Debug.c" -} - - -static void -_debug_info_handler_glog_func (const gchar* log_domain, - GLogLevelFlags log_levels, - const gchar* message, - gpointer self) -{ -#line 82 "/home/jens/Source/shotwell/src/Debug.vala" - debug_info_handler (log_domain, log_levels, message); -#line 103 "Debug.c" -} - - -static void -_debug_debug_handler_glog_func (const gchar* log_domain, - GLogLevelFlags log_levels, - const gchar* message, - gpointer self) -{ -#line 83 "/home/jens/Source/shotwell/src/Debug.vala" - debug_debug_handler (log_domain, log_levels, message); -#line 115 "Debug.c" -} - - -static void -_debug_message_handler_glog_func (const gchar* log_domain, - GLogLevelFlags log_levels, - const gchar* message, - gpointer self) -{ -#line 84 "/home/jens/Source/shotwell/src/Debug.vala" - debug_message_handler (log_domain, log_levels, message); -#line 127 "Debug.c" -} - - -static void -_debug_warning_handler_glog_func (const gchar* log_domain, - GLogLevelFlags log_levels, - const gchar* message, - gpointer self) -{ -#line 85 "/home/jens/Source/shotwell/src/Debug.vala" - debug_warning_handler (log_domain, log_levels, message); -#line 139 "Debug.c" -} - - -static void -_debug_critical_handler_glog_func (const gchar* log_domain, - GLogLevelFlags log_levels, - const gchar* message, - gpointer self) -{ -#line 86 "/home/jens/Source/shotwell/src/Debug.vala" - debug_critical_handler (log_domain, log_levels, message); -#line 151 "Debug.c" -} - - -void -debug_init (const gchar* app_version_prefix) -{ - gchar* _tmp0_; - FILE* _tmp1_; - FILE* _tmp2_; - gchar* log_file_error_msg = NULL; - GFile* _tmp3_ = NULL; - const gchar* _tmp4_; - GFile* log_file = NULL; - GFile* _tmp6_; - GFile* _tmp7_; - const gchar* _tmp31_; - gboolean _tmp52_ = FALSE; - GLogLevelFlags _tmp53_; - const gchar* _tmp55_; - GError * _inner_error_ = NULL; -#line 27 "/home/jens/Source/shotwell/src/Debug.vala" - g_return_if_fail (app_version_prefix != NULL); -#line 28 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp0_ = g_strdup (app_version_prefix); -#line 28 "/home/jens/Source/shotwell/src/Debug.vala" - _g_free0 (debug_log_app_version_prefix); -#line 28 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log_app_version_prefix = _tmp0_; -#line 31 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp1_ = stdout; -#line 31 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log_out = _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp2_ = stderr; -#line 32 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log_err = _tmp2_; -#line 34 "/home/jens/Source/shotwell/src/Debug.vala" - log_file_error_msg = NULL; -#line 37 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp4_ = debug_log_app_version_prefix; -#line 37 "/home/jens/Source/shotwell/src/Debug.vala" - if (g_strcmp0 (_tmp4_, DEBUG_LIBRARY_PREFIX) == 0) { -#line 194 "Debug.c" - GFile* _tmp5_; -#line 37 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp5_ = app_dirs_get_log_file (); -#line 37 "/home/jens/Source/shotwell/src/Debug.vala" - _g_object_unref0 (_tmp3_); -#line 37 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp3_ = _tmp5_; -#line 202 "Debug.c" - } else { -#line 37 "/home/jens/Source/shotwell/src/Debug.vala" - _g_object_unref0 (_tmp3_); -#line 37 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp3_ = NULL; -#line 208 "Debug.c" - } -#line 37 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp6_ = _g_object_ref0 (_tmp3_); -#line 37 "/home/jens/Source/shotwell/src/Debug.vala" - log_file = _tmp6_; -#line 38 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp7_ = log_file; -#line 38 "/home/jens/Source/shotwell/src/Debug.vala" - if (_tmp7_ != NULL) { -#line 218 "Debug.c" - GFile* log_dir = NULL; - GFile* _tmp8_; - GFile* _tmp9_; - GFile* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - FILE* _tmp23_; - FILE* _tmp24_; -#line 39 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp8_ = log_file; -#line 39 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp9_ = g_file_get_parent (_tmp8_); -#line 39 "/home/jens/Source/shotwell/src/Debug.vala" - log_dir = _tmp9_; -#line 233 "Debug.c" - { - GFile* _tmp10_; -#line 41 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp10_ = log_dir; -#line 41 "/home/jens/Source/shotwell/src/Debug.vala" - if (g_file_query_exists (_tmp10_, NULL) == FALSE) { -#line 240 "Debug.c" - gboolean _tmp11_ = FALSE; - GFile* _tmp12_; -#line 42 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp12_ = log_dir; -#line 42 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp11_ = g_file_make_directory_with_parents (_tmp12_, NULL, &_inner_error_); -#line 42 "/home/jens/Source/shotwell/src/Debug.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 249 "Debug.c" - goto __catch441_g_error; - } -#line 42 "/home/jens/Source/shotwell/src/Debug.vala" - if (!_tmp11_) { -#line 254 "Debug.c" - GFile* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; -#line 43 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp13_ = log_dir; -#line 43 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp14_ = g_file_get_path (_tmp13_); -#line 43 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp15_ = _tmp14_; -#line 43 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp16_ = g_strdup_printf ("Unable to create data directory %s", _tmp15_); -#line 43 "/home/jens/Source/shotwell/src/Debug.vala" - _g_free0 (log_file_error_msg); -#line 43 "/home/jens/Source/shotwell/src/Debug.vala" - log_file_error_msg = _tmp16_; -#line 43 "/home/jens/Source/shotwell/src/Debug.vala" - _g_free0 (_tmp15_); -#line 273 "Debug.c" - } - } - } - goto __finally441; - __catch441_g_error: - { - GError* err = NULL; - GError* _tmp17_; - const gchar* _tmp18_; - gchar* _tmp19_; -#line 40 "/home/jens/Source/shotwell/src/Debug.vala" - err = _inner_error_; -#line 40 "/home/jens/Source/shotwell/src/Debug.vala" - _inner_error_ = NULL; -#line 47 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp17_ = err; -#line 47 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp18_ = _tmp17_->message; -#line 47 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp19_ = g_strdup (_tmp18_); -#line 47 "/home/jens/Source/shotwell/src/Debug.vala" - _g_free0 (log_file_error_msg); -#line 47 "/home/jens/Source/shotwell/src/Debug.vala" - log_file_error_msg = _tmp19_; -#line 40 "/home/jens/Source/shotwell/src/Debug.vala" - _g_error_free0 (err); -#line 300 "Debug.c" - } - __finally441: -#line 40 "/home/jens/Source/shotwell/src/Debug.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 40 "/home/jens/Source/shotwell/src/Debug.vala" - _g_object_unref0 (log_dir); -#line 40 "/home/jens/Source/shotwell/src/Debug.vala" - _g_object_unref0 (log_file); -#line 40 "/home/jens/Source/shotwell/src/Debug.vala" - _g_object_unref0 (_tmp3_); -#line 40 "/home/jens/Source/shotwell/src/Debug.vala" - _g_free0 (log_file_error_msg); -#line 40 "/home/jens/Source/shotwell/src/Debug.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 40 "/home/jens/Source/shotwell/src/Debug.vala" - g_clear_error (&_inner_error_); -#line 40 "/home/jens/Source/shotwell/src/Debug.vala" - return; -#line 319 "Debug.c" - } -#line 53 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp20_ = log_file; -#line 53 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp21_ = g_file_get_path (_tmp20_); -#line 53 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp22_ = _tmp21_; -#line 53 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp23_ = g_fopen (_tmp22_, "w"); -#line 53 "/home/jens/Source/shotwell/src/Debug.vala" - _fclose0 (debug_log_file_stream); -#line 53 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log_file_stream = _tmp23_; -#line 53 "/home/jens/Source/shotwell/src/Debug.vala" - _g_free0 (_tmp22_); -#line 54 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp24_ = debug_log_file_stream; -#line 54 "/home/jens/Source/shotwell/src/Debug.vala" - if (_tmp24_ != NULL) { -#line 339 "Debug.c" - FILE* _tmp25_; - FILE* _tmp26_; -#line 55 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp25_ = debug_log_file_stream; -#line 55 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log_out = _tmp25_; -#line 56 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp26_ = debug_log_file_stream; -#line 56 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log_err = _tmp26_; -#line 350 "Debug.c" - } else { - GFile* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; -#line 58 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp27_ = log_file; -#line 58 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp28_ = g_file_get_path (_tmp27_); -#line 58 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp29_ = _tmp28_; -#line 58 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp30_ = g_strdup_printf ("Unable to open or create log file %s", _tmp29_); -#line 58 "/home/jens/Source/shotwell/src/Debug.vala" - _g_free0 (log_file_error_msg); -#line 58 "/home/jens/Source/shotwell/src/Debug.vala" - log_file_error_msg = _tmp30_; -#line 58 "/home/jens/Source/shotwell/src/Debug.vala" - _g_free0 (_tmp29_); -#line 370 "Debug.c" - } -#line 38 "/home/jens/Source/shotwell/src/Debug.vala" - _g_object_unref0 (log_dir); -#line 374 "Debug.c" - } -#line 62 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp31_ = g_getenv ("SHOTWELL_LOG"); -#line 62 "/home/jens/Source/shotwell/src/Debug.vala" - if (_tmp31_ != NULL) { -#line 63 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log_mask = G_LOG_LEVEL_MASK; -#line 382 "Debug.c" - } else { - GLogLevelFlags _tmp32_ = 0; - const gchar* _tmp33_; - GLogLevelFlags _tmp36_ = 0; - const gchar* _tmp37_; - GLogLevelFlags _tmp40_ = 0; - const gchar* _tmp41_; - GLogLevelFlags _tmp44_ = 0; - const gchar* _tmp45_; - GLogLevelFlags _tmp48_ = 0; - const gchar* _tmp49_; -#line 65 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp33_ = g_getenv ("SHOTWELL_INFO"); -#line 65 "/home/jens/Source/shotwell/src/Debug.vala" - if (_tmp33_ != NULL) { -#line 398 "Debug.c" - GLogLevelFlags _tmp34_; -#line 66 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp34_ = debug_log_mask; -#line 66 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp32_ = _tmp34_ | G_LOG_LEVEL_INFO; -#line 404 "Debug.c" - } else { - GLogLevelFlags _tmp35_; -#line 67 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp35_ = debug_log_mask; -#line 67 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp32_ = _tmp35_; -#line 411 "Debug.c" - } -#line 65 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log_mask = _tmp32_; -#line 68 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp37_ = g_getenv ("SHOTWELL_DEBUG"); -#line 68 "/home/jens/Source/shotwell/src/Debug.vala" - if (_tmp37_ != NULL) { -#line 419 "Debug.c" - GLogLevelFlags _tmp38_; -#line 69 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp38_ = debug_log_mask; -#line 69 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp36_ = _tmp38_ | G_LOG_LEVEL_DEBUG; -#line 425 "Debug.c" - } else { - GLogLevelFlags _tmp39_; -#line 70 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp39_ = debug_log_mask; -#line 70 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp36_ = _tmp39_; -#line 432 "Debug.c" - } -#line 68 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log_mask = _tmp36_; -#line 71 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp41_ = g_getenv ("SHOTWELL_MESSAGE"); -#line 71 "/home/jens/Source/shotwell/src/Debug.vala" - if (_tmp41_ != NULL) { -#line 440 "Debug.c" - GLogLevelFlags _tmp42_; -#line 72 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp42_ = debug_log_mask; -#line 72 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp40_ = _tmp42_ | G_LOG_LEVEL_MESSAGE; -#line 446 "Debug.c" - } else { - GLogLevelFlags _tmp43_; -#line 73 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp43_ = debug_log_mask; -#line 73 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp40_ = _tmp43_; -#line 453 "Debug.c" - } -#line 71 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log_mask = _tmp40_; -#line 74 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp45_ = g_getenv ("SHOTWELL_WARNING"); -#line 74 "/home/jens/Source/shotwell/src/Debug.vala" - if (_tmp45_ != NULL) { -#line 461 "Debug.c" - GLogLevelFlags _tmp46_; -#line 75 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp46_ = debug_log_mask; -#line 75 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp44_ = _tmp46_ | G_LOG_LEVEL_WARNING; -#line 467 "Debug.c" - } else { - GLogLevelFlags _tmp47_; -#line 76 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp47_ = debug_log_mask; -#line 76 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp44_ = _tmp47_; -#line 474 "Debug.c" - } -#line 74 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log_mask = _tmp44_; -#line 77 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp49_ = g_getenv ("SHOTWELL_CRITICAL"); -#line 77 "/home/jens/Source/shotwell/src/Debug.vala" - if (_tmp49_ != NULL) { -#line 482 "Debug.c" - GLogLevelFlags _tmp50_; -#line 78 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp50_ = debug_log_mask; -#line 78 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp48_ = _tmp50_ | G_LOG_LEVEL_CRITICAL; -#line 488 "Debug.c" - } else { - GLogLevelFlags _tmp51_; -#line 79 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp51_ = debug_log_mask; -#line 79 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp48_ = _tmp51_; -#line 495 "Debug.c" - } -#line 77 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log_mask = _tmp48_; -#line 499 "Debug.c" - } -#line 82 "/home/jens/Source/shotwell/src/Debug.vala" - g_log_set_handler (NULL, G_LOG_LEVEL_INFO, _debug_info_handler_glog_func, NULL); -#line 83 "/home/jens/Source/shotwell/src/Debug.vala" - g_log_set_handler (NULL, G_LOG_LEVEL_DEBUG, _debug_debug_handler_glog_func, NULL); -#line 84 "/home/jens/Source/shotwell/src/Debug.vala" - g_log_set_handler (NULL, G_LOG_LEVEL_MESSAGE, _debug_message_handler_glog_func, NULL); -#line 85 "/home/jens/Source/shotwell/src/Debug.vala" - g_log_set_handler (NULL, G_LOG_LEVEL_WARNING, _debug_warning_handler_glog_func, NULL); -#line 86 "/home/jens/Source/shotwell/src/Debug.vala" - g_log_set_handler (NULL, G_LOG_LEVEL_CRITICAL, _debug_critical_handler_glog_func, NULL); -#line 88 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp53_ = debug_log_mask; -#line 88 "/home/jens/Source/shotwell/src/Debug.vala" - if (_tmp53_ == 0) { -#line 515 "Debug.c" - GFile* _tmp54_; -#line 88 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp54_ = log_file; -#line 88 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp52_ = _tmp54_ != NULL; -#line 521 "Debug.c" - } else { -#line 88 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp52_ = FALSE; -#line 525 "Debug.c" - } -#line 88 "/home/jens/Source/shotwell/src/Debug.vala" - if (_tmp52_) { -#line 91 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log_mask = DEBUG_DEFAULT_LOG_MASK; -#line 531 "Debug.c" - } -#line 94 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp55_ = log_file_error_msg; -#line 94 "/home/jens/Source/shotwell/src/Debug.vala" - if (_tmp55_ != NULL) { -#line 537 "Debug.c" - const gchar* _tmp56_; -#line 95 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp56_ = log_file_error_msg; -#line 95 "/home/jens/Source/shotwell/src/Debug.vala" - g_warning ("Debug.vala:95: %s", _tmp56_); -#line 543 "Debug.c" - } -#line 27 "/home/jens/Source/shotwell/src/Debug.vala" - _g_object_unref0 (log_file); -#line 27 "/home/jens/Source/shotwell/src/Debug.vala" - _g_object_unref0 (_tmp3_); -#line 27 "/home/jens/Source/shotwell/src/Debug.vala" - _g_free0 (log_file_error_msg); -#line 551 "Debug.c" -} - - -void -debug_terminate (void) -{ -} - - -gboolean -debug_is_enabled (GLogLevelFlags flag) -{ - gboolean result = FALSE; - GLogLevelFlags _tmp0_; -#line 103 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp0_ = debug_log_mask; -#line 103 "/home/jens/Source/shotwell/src/Debug.vala" - result = (_tmp0_ & flag) > 0; -#line 103 "/home/jens/Source/shotwell/src/Debug.vala" - return result; -#line 572 "Debug.c" -} - - -static void -g_time_local (time_t time, - struct tm* result) -{ - struct tm _result_ = {0}; - struct tm _tmp0_ = {0}; -#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - localtime_r (&time, &_tmp0_); -#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result = _result_; -#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return; -#line 590 "Debug.c" -} - - -static gchar* -g_time_to_string (struct tm *self) -{ - gchar* result = NULL; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _tmp5_; - gchar* _tmp6_; -#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = (*self).tm_year; -#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*self).tm_mon; -#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = (*self).tm_mday; -#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = (*self).tm_hour; -#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = (*self).tm_min; -#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = (*self).tm_sec; -#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = g_strdup_printf ("%04d-%02d-%02d %02d:%02d:%02d", _tmp0_ + 1900, _tmp1_ + 1, _tmp2_, _tmp3_, _tmp4_, _tmp5_); -#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp6_; -#line 2871 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 623 "Debug.c" -} - - -void -debug_log (FILE* stream, - const gchar* prefix, - const gchar* message) -{ - time_t now = 0; - time_t _tmp0_; - const gchar* _tmp1_; - struct tm _tmp2_ = {0}; - gchar* _tmp3_; - gchar* _tmp4_; -#line 106 "/home/jens/Source/shotwell/src/Debug.vala" - g_return_if_fail (stream != NULL); -#line 106 "/home/jens/Source/shotwell/src/Debug.vala" - g_return_if_fail (prefix != NULL); -#line 106 "/home/jens/Source/shotwell/src/Debug.vala" - g_return_if_fail (message != NULL); -#line 107 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp0_ = time (NULL); -#line 107 "/home/jens/Source/shotwell/src/Debug.vala" - now = _tmp0_; -#line 108 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp1_ = debug_log_app_version_prefix; -#line 108 "/home/jens/Source/shotwell/src/Debug.vala" - g_time_local (now, &_tmp2_); -#line 108 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp3_ = g_time_to_string (&_tmp2_); -#line 108 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp4_ = _tmp3_; -#line 108 "/home/jens/Source/shotwell/src/Debug.vala" - fprintf (stream, "%s %d %s [%s] %s\n", _tmp1_, (gint) getpid (), _tmp4_, prefix, message); -#line 108 "/home/jens/Source/shotwell/src/Debug.vala" - _g_free0 (_tmp4_); -#line 115 "/home/jens/Source/shotwell/src/Debug.vala" - fflush (stream); -#line 662 "Debug.c" -} - - -void -debug_info_handler (const gchar* domain, - GLogLevelFlags flags, - const gchar* message) -{ -#line 118 "/home/jens/Source/shotwell/src/Debug.vala" - g_return_if_fail (message != NULL); -#line 119 "/home/jens/Source/shotwell/src/Debug.vala" - if (debug_is_enabled (G_LOG_LEVEL_INFO)) { -#line 675 "Debug.c" - FILE* _tmp0_; -#line 120 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp0_ = debug_log_out; -#line 120 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log (_tmp0_, "INF", message); -#line 681 "Debug.c" - } -} - - -void -debug_debug_handler (const gchar* domain, - GLogLevelFlags flags, - const gchar* message) -{ -#line 123 "/home/jens/Source/shotwell/src/Debug.vala" - g_return_if_fail (message != NULL); -#line 124 "/home/jens/Source/shotwell/src/Debug.vala" - if (debug_is_enabled (G_LOG_LEVEL_DEBUG)) { -#line 695 "Debug.c" - FILE* _tmp0_; -#line 125 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp0_ = debug_log_out; -#line 125 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log (_tmp0_, "DBG", message); -#line 701 "Debug.c" - } -} - - -void -debug_message_handler (const gchar* domain, - GLogLevelFlags flags, - const gchar* message) -{ -#line 128 "/home/jens/Source/shotwell/src/Debug.vala" - g_return_if_fail (message != NULL); -#line 129 "/home/jens/Source/shotwell/src/Debug.vala" - if (debug_is_enabled (G_LOG_LEVEL_MESSAGE)) { -#line 715 "Debug.c" - FILE* _tmp0_; -#line 130 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp0_ = debug_log_err; -#line 130 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log (_tmp0_, "MSG", message); -#line 721 "Debug.c" - } -} - - -void -debug_warning_handler (const gchar* domain, - GLogLevelFlags flags, - const gchar* message) -{ -#line 133 "/home/jens/Source/shotwell/src/Debug.vala" - g_return_if_fail (message != NULL); -#line 134 "/home/jens/Source/shotwell/src/Debug.vala" - if (debug_is_enabled (G_LOG_LEVEL_WARNING)) { -#line 735 "Debug.c" - FILE* _tmp0_; -#line 135 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp0_ = debug_log_err; -#line 135 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log (_tmp0_, "WRN", message); -#line 741 "Debug.c" - } -} - - -void -debug_critical_handler (const gchar* domain, - GLogLevelFlags flags, - const gchar* message) -{ -#line 138 "/home/jens/Source/shotwell/src/Debug.vala" - g_return_if_fail (message != NULL); -#line 139 "/home/jens/Source/shotwell/src/Debug.vala" - if (debug_is_enabled (G_LOG_LEVEL_CRITICAL)) { -#line 755 "Debug.c" - FILE* _tmp0_; - FILE* _tmp1_; -#line 140 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp0_ = debug_log_err; -#line 140 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log (_tmp0_, "CRT", message); -#line 141 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp1_ = debug_log_file_stream; -#line 141 "/home/jens/Source/shotwell/src/Debug.vala" - if (_tmp1_ != NULL) { -#line 766 "Debug.c" - FILE* _tmp2_; -#line 142 "/home/jens/Source/shotwell/src/Debug.vala" - _tmp2_ = stderr; -#line 142 "/home/jens/Source/shotwell/src/Debug.vala" - debug_log (_tmp2_, "CRT", message); -#line 772 "Debug.c" - } - } -} - - - diff --git a/src/DesktopIntegration.c b/src/DesktopIntegration.c deleted file mode 100644 index 5fb90ef..0000000 --- a/src/DesktopIntegration.c +++ /dev/null @@ -1,3038 +0,0 @@ -/* DesktopIntegration.c generated by valac 0.40.4, the Vala compiler - * generated from DesktopIntegration.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_EXPORTER_UI (exporter_ui_get_type ()) -#define EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER_UI, ExporterUI)) -#define EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER_UI, ExporterUIClass)) -#define IS_EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER_UI)) -#define IS_EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER_UI)) -#define EXPORTER_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER_UI, ExporterUIClass)) - -typedef struct _ExporterUI ExporterUI; -typedef struct _ExporterUIClass ExporterUIClass; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_SORTED_LIST (sorted_list_get_type ()) -#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList)) -#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass)) -#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST)) -#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST)) -#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass)) - -typedef struct _SortedList SortedList; -typedef struct _SortedListClass SortedListClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL))) - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_EXPORT_DIALOG (export_dialog_get_type ()) -#define EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORT_DIALOG, ExportDialog)) -#define EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORT_DIALOG, ExportDialogClass)) -#define IS_EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORT_DIALOG)) -#define IS_EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORT_DIALOG)) -#define EXPORT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORT_DIALOG, ExportDialogClass)) - -typedef struct _ExportDialog ExportDialog; -typedef struct _ExportDialogClass ExportDialogClass; - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; - -#define TYPE_EXPORTER (exporter_get_type ()) -#define EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER, Exporter)) -#define EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER, ExporterClass)) -#define IS_EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER)) -#define IS_EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER)) -#define EXPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER, ExporterClass)) - -typedef struct _Exporter Exporter; -typedef struct _ExporterClass ExporterClass; -#define _exporter_ui_unref0(var) ((var == NULL) ? NULL : (var = (exporter_ui_unref (var), NULL))) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) - -#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ()) - -#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ()) - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) -typedef struct _ExportFormatParameters ExportFormatParameters; - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -typedef struct _Scaling Scaling; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; - -#define DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER (desktop_integration_background_slideshow_xml_builder_get_type ()) -#define DESKTOP_INTEGRATION_BACKGROUND_SLIDESHOW_XML_BUILDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER, DesktopIntegrationBackgroundSlideshowXMLBuilder)) -#define DESKTOP_INTEGRATION_BACKGROUND_SLIDESHOW_XML_BUILDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER, DesktopIntegrationBackgroundSlideshowXMLBuilderClass)) -#define DESKTOP_INTEGRATION_IS_BACKGROUND_SLIDESHOW_XML_BUILDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER)) -#define DESKTOP_INTEGRATION_IS_BACKGROUND_SLIDESHOW_XML_BUILDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER)) -#define DESKTOP_INTEGRATION_BACKGROUND_SLIDESHOW_XML_BUILDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER, DesktopIntegrationBackgroundSlideshowXMLBuilderClass)) - -typedef struct _DesktopIntegrationBackgroundSlideshowXMLBuilder DesktopIntegrationBackgroundSlideshowXMLBuilder; -typedef struct _DesktopIntegrationBackgroundSlideshowXMLBuilderClass DesktopIntegrationBackgroundSlideshowXMLBuilderClass; -typedef struct _DesktopIntegrationBackgroundSlideshowXMLBuilderPrivate DesktopIntegrationBackgroundSlideshowXMLBuilderPrivate; -typedef struct _DesktopIntegrationParamSpecBackgroundSlideshowXMLBuilder DesktopIntegrationParamSpecBackgroundSlideshowXMLBuilder; -#define _desktop_integration_background_slideshow_xml_builder_unref0(var) ((var == NULL) ? NULL : (var = (desktop_integration_background_slideshow_xml_builder_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef void (*ExporterCompletionCallback) (Exporter* exporter, gboolean is_cancelled, void* user_data); -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -typedef enum { - EXPORT_FORMAT_MODE_UNMODIFIED, - EXPORT_FORMAT_MODE_CURRENT, - EXPORT_FORMAT_MODE_SPECIFIED, - EXPORT_FORMAT_MODE_LAST -} ExportFormatMode; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -struct _ExportFormatParameters { - ExportFormatMode mode; - PhotoFileFormat specified_format; - JpegQuality quality; - gboolean export_metadata; -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -struct _DesktopIntegrationBackgroundSlideshowXMLBuilder { - GTypeInstance parent_instance; - volatile int ref_count; - DesktopIntegrationBackgroundSlideshowXMLBuilderPrivate * priv; -}; - -struct _DesktopIntegrationBackgroundSlideshowXMLBuilderClass { - GTypeClass parent_class; - void (*finalize) (DesktopIntegrationBackgroundSlideshowXMLBuilder *self); -}; - -struct _DesktopIntegrationBackgroundSlideshowXMLBuilderPrivate { - GFile* destination; - gdouble duration; - gdouble transition; - GFile* tmp_file; - GDataOutputStream* outs; - GFile* first_file; - GFile* last_file; -}; - -struct _DesktopIntegrationParamSpecBackgroundSlideshowXMLBuilder { - GParamSpec parent_instance; -}; - -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); - -extern gint desktop_integration_init_count; -gint desktop_integration_init_count = 0; -extern gboolean desktop_integration_send_to_installed; -gboolean desktop_integration_send_to_installed = FALSE; -extern ExporterUI* desktop_integration_send_to_exporter; -ExporterUI* desktop_integration_send_to_exporter = NULL; -extern ExporterUI* desktop_integration_desktop_slideshow_exporter; -ExporterUI* desktop_integration_desktop_slideshow_exporter = NULL; -extern gdouble desktop_integration_desktop_slideshow_transition; -gdouble desktop_integration_desktop_slideshow_transition = 0.0; -extern gdouble desktop_integration_desktop_slideshow_duration; -gdouble desktop_integration_desktop_slideshow_duration = 0.0; -extern gboolean desktop_integration_set_desktop_background; -gboolean desktop_integration_set_desktop_background = FALSE; -extern gboolean desktop_integration_set_screensaver; -gboolean desktop_integration_set_screensaver = FALSE; -static gpointer desktop_integration_background_slideshow_xml_builder_parent_class = NULL; - -#define DESKTOP_INTEGRATION_SENDTO_EXEC "nautilus-sendto" -#define DESKTOP_INTEGRATION_DESKTOP_SLIDESHOW_XML_FILENAME "wallpaper.xml" -gpointer exporter_ui_ref (gpointer instance); -void exporter_ui_unref (gpointer instance); -GParamSpec* param_spec_exporter_ui (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_exporter_ui (GValue* value, - gpointer v_object); -void value_take_exporter_ui (GValue* value, - gpointer v_object); -gpointer value_get_exporter_ui (const GValue* value); -GType exporter_ui_get_type (void) G_GNUC_CONST; -void desktop_integration_init (void); -void desktop_integration_terminate (void); -GAppInfo* desktop_integration_get_default_app_for_mime_types (gchar** mime_types, - int mime_types_length1, - GeeArrayList* preferred_apps); -GType sorted_list_get_type (void) G_GNUC_CONST; -SortedList* desktop_integration_get_apps_for_mime_types (gchar** mime_types, - int mime_types_length1); -gint64 desktop_integration_app_info_comparator (void* a, - void* b); -static gint64 _desktop_integration_app_info_comparator_comparator (void* a, - void* b, - gpointer self); -SortedList* sorted_list_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - Comparator cmp, - void* cmp_target); -SortedList* sorted_list_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - Comparator cmp, - void* cmp_target); -#define RESOURCES_APP_TITLE "Shotwell" -static void _g_object_unref0_ (gpointer var); -static inline void _g_list_free__g_object_unref0_ (GList* self); -gchar* desktop_integration_get_app_open_command (GAppInfo* app_info); -gboolean desktop_integration_is_send_to_installed (void); -void desktop_integration_files_send_to (GFile** files, - int files_length1); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -void page_window_set_busy_cursor (PageWindow* self); -void page_window_set_normal_cursor (PageWindow* self); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -void desktop_integration_send_to (GeeCollection* media); -GType export_dialog_get_type (void) G_GNUC_CONST; -ExportDialog* export_dialog_new (const gchar* title); -ExportDialog* export_dialog_construct (GType object_type, - const gchar* title); -gboolean media_source_collection_has_video (GeeCollection* media); -gboolean media_source_collection_has_photo (GeeCollection* media); -GType video_source_get_type (void) G_GNUC_CONST; -GType video_get_type (void) G_GNUC_CONST; -GType exporter_get_type (void) G_GNUC_CONST; -ExporterUI* video_export_many (GeeCollection* videos, - ExporterCompletionCallback done, - void* done_target, - gboolean export_in_place); -void desktop_integration_on_send_to_export_completed (Exporter* exporter, - gboolean is_cancelled); -static void _desktop_integration_on_send_to_export_completed_exporter_completion_callback (Exporter* exporter, - gboolean is_cancelled, - gpointer self); -GType scale_constraint_get_type (void) G_GNUC_CONST; -GType export_format_parameters_get_type (void) G_GNUC_CONST; -GType export_format_mode_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType jpeg_quality_get_type (void) G_GNUC_CONST; -ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self); -void export_format_parameters_free (ExportFormatParameters* self); -void export_format_parameters_current (ExportFormatParameters* result); -gboolean export_dialog_execute (ExportDialog* self, - gint* scale, - ScaleConstraint* constraint, - ExportFormatParameters* parameters); -GType scaling_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -void scaling_for_constraint (ScaleConstraint constraint, - gint scale, - gboolean scale_up, - Scaling* result); -Exporter* exporter_new_for_temp_file (GeeCollection* to_export, - Scaling* scaling, - ExportFormatParameters* export_params); -Exporter* exporter_construct_for_temp_file (GType object_type, - GeeCollection* to_export, - Scaling* scaling, - ExportFormatParameters* export_params); -ExporterUI* exporter_ui_new (Exporter* exporter); -ExporterUI* exporter_ui_construct (GType object_type, - Exporter* exporter); -void exporter_ui_export (ExporterUI* self, - ExporterCompletionCallback completion_callback, - void* completion_callback_target); -GFile** exporter_get_exported_files (Exporter* self, - int* result_length1); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -void desktop_integration_set_background (Photo* photo, - gboolean desktop, - gboolean screensaver); -PhotoFileFormat photo_get_best_export_file_format (Photo* self); -GFile* app_dirs_get_data_subdir (const gchar* name, - const gchar* subname); -gchar* photo_file_format_get_default_basename (PhotoFileFormat self, - const gchar* name); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gchar* configuration_facade_get_desktop_background (ConfigurationFacade* self); -void photo_export (Photo* self, - GFile* dest_file, - Scaling* scaling, - JpegQuality quality, - PhotoFileFormat export_format, - gboolean direct_copy_unmodified, - gboolean export_metadata, - GError** error); -void scaling_for_original (Scaling* result); -void configuration_facade_set_desktop_background (ConfigurationFacade* self, - const gchar* filename); -void configuration_facade_set_screensaver (ConfigurationFacade* self, - const gchar* filename); -gpointer desktop_integration_background_slideshow_xml_builder_ref (gpointer instance); -void desktop_integration_background_slideshow_xml_builder_unref (gpointer instance); -GParamSpec* desktop_integration_param_spec_background_slideshow_xml_builder (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void desktop_integration_value_set_background_slideshow_xml_builder (GValue* value, - gpointer v_object); -void desktop_integration_value_take_background_slideshow_xml_builder (GValue* value, - gpointer v_object); -gpointer desktop_integration_value_get_background_slideshow_xml_builder (const GValue* value); -GType desktop_integration_background_slideshow_xml_builder_get_type (void) G_GNUC_CONST; -#define DESKTOP_INTEGRATION_BACKGROUND_SLIDESHOW_XML_BUILDER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER, DesktopIntegrationBackgroundSlideshowXMLBuilderPrivate)) -DesktopIntegrationBackgroundSlideshowXMLBuilder* desktop_integration_background_slideshow_xml_builder_new (GFile* destination, - gdouble duration, - gdouble transition); -DesktopIntegrationBackgroundSlideshowXMLBuilder* desktop_integration_background_slideshow_xml_builder_construct (GType object_type, - GFile* destination, - gdouble duration, - gdouble transition); -void desktop_integration_background_slideshow_xml_builder_open (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, - GError** error); -static void desktop_integration_background_slideshow_xml_builder_write_transition (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, - GFile* from, - GFile* to, - GError** error); -static void desktop_integration_background_slideshow_xml_builder_write_static (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, - GFile* file, - GError** error); -void desktop_integration_background_slideshow_xml_builder_add_photo (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, - GFile* file, - GError** error); -GFile* desktop_integration_background_slideshow_xml_builder_close (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, - GError** error); -static void desktop_integration_background_slideshow_xml_builder_finalize (DesktopIntegrationBackgroundSlideshowXMLBuilder * obj); -void desktop_integration_set_background_slideshow (GeeCollection* photos, - gdouble duration, - gdouble transition, - gboolean desktop_background, - gboolean screensaver); -void delete_all_files (GFile* dir, - GeeSet* exceptions, - ProgressMonitor monitor, - void* monitor_target, - guint64 file_count, - GCancellable* cancellable, - GError** error); -void scaling_to_fill_screen (GtkWindow* window, - Scaling* result); -Exporter* exporter_new (GeeCollection* to_export, - GFile* dir, - Scaling* scaling, - ExportFormatParameters* export_params, - gboolean auto_replace_all); -Exporter* exporter_construct (GType object_type, - GeeCollection* to_export, - GFile* dir, - Scaling* scaling, - ExportFormatParameters* export_params, - gboolean auto_replace_all); -void desktop_integration_on_desktop_slideshow_exported (Exporter* exporter, - gboolean is_cancelled); -static void _desktop_integration_on_desktop_slideshow_exported_exporter_completion_callback (Exporter* exporter, - gboolean is_cancelled, - gpointer self); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -void -desktop_integration_init (void) -{ - gint _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 23 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = desktop_integration_init_count; -#line 23 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_init_count = _tmp0_ + 1; -#line 23 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (_tmp0_ != 0) { -#line 24 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 550 "DesktopIntegration.c" - } -#line 26 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = g_find_program_in_path (DESKTOP_INTEGRATION_SENDTO_EXEC); -#line 26 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = _tmp1_; -#line 26 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_send_to_installed = _tmp2_ != NULL; -#line 26 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp2_); -#line 560 "DesktopIntegration.c" -} - - -void -desktop_integration_terminate (void) -{ - gint _tmp0_; - gint _tmp1_; -#line 30 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = desktop_integration_init_count; -#line 30 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_init_count = _tmp0_ - 1; -#line 30 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = desktop_integration_init_count; -#line 30 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (_tmp1_ == 0) { -#line 31 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 579 "DesktopIntegration.c" - } -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return self ? g_object_ref (self) : NULL; -#line 589 "DesktopIntegration.c" -} - - -static gboolean -string_contains (const gchar* self, - const gchar* needle) -{ - gboolean result = FALSE; - gchar* _tmp0_; -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, FALSE); -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, FALSE); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr ((gchar*) self, (gchar*) needle); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_ != NULL; -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 609 "DesktopIntegration.c" -} - - -GAppInfo* -desktop_integration_get_default_app_for_mime_types (gchar** mime_types, - int mime_types_length1, - GeeArrayList* preferred_apps) -{ - GAppInfo* result = NULL; - SortedList* external_apps = NULL; - SortedList* _tmp0_; -#line 34 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_val_if_fail (GEE_IS_ARRAY_LIST (preferred_apps), NULL); -#line 36 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = desktop_integration_get_apps_for_mime_types (mime_types, mime_types_length1); -#line 36 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - external_apps = _tmp0_; -#line 627 "DesktopIntegration.c" - { - GeeArrayList* _preferred_app_list = NULL; - GeeArrayList* _tmp1_; - gint _preferred_app_size = 0; - GeeArrayList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _preferred_app_index = 0; -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = _g_object_ref0 (preferred_apps); -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _preferred_app_list = _tmp1_; -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = _preferred_app_list; -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp4_ = _tmp3_; -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _preferred_app_size = _tmp4_; -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _preferred_app_index = -1; -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - while (TRUE) { -#line 652 "DesktopIntegration.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - gchar* preferred_app = NULL; - GeeArrayList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp5_ = _preferred_app_index; -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _preferred_app_index = _tmp5_ + 1; -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp6_ = _preferred_app_index; -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp7_ = _preferred_app_size; -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - break; -#line 672 "DesktopIntegration.c" - } -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp8_ = _preferred_app_list; -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp9_ = _preferred_app_index; -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_); -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - preferred_app = (gchar*) _tmp10_; -#line 682 "DesktopIntegration.c" - { - GeeIterator* _external_app_it = NULL; - SortedList* _tmp11_; - GeeIterator* _tmp12_; -#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp11_ = external_apps; -#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _external_app_it = _tmp12_; -#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - while (TRUE) { -#line 695 "DesktopIntegration.c" - GeeIterator* _tmp13_; - GAppInfo* external_app = NULL; - GeeIterator* _tmp14_; - gpointer _tmp15_; - GAppInfo* _tmp16_; - const gchar* _tmp17_; - const gchar* _tmp18_; -#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp13_ = _external_app_it; -#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (!gee_iterator_next (_tmp13_)) { -#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - break; -#line 709 "DesktopIntegration.c" - } -#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp14_ = _external_app_it; -#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp15_ = gee_iterator_get (_tmp14_); -#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - external_app = (GAppInfo*) _tmp15_; -#line 40 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp16_ = external_app; -#line 40 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp17_ = g_app_info_get_name (_tmp16_); -#line 40 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp18_ = preferred_app; -#line 40 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (string_contains (_tmp17_, _tmp18_)) { -#line 41 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - result = external_app; -#line 41 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_external_app_it); -#line 41 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (preferred_app); -#line 41 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_preferred_app_list); -#line 41 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (external_apps); -#line 41 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return result; -#line 737 "DesktopIntegration.c" - } -#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (external_app); -#line 741 "DesktopIntegration.c" - } -#line 39 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_external_app_it); -#line 745 "DesktopIntegration.c" - } -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (preferred_app); -#line 749 "DesktopIntegration.c" - } -#line 38 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_preferred_app_list); -#line 753 "DesktopIntegration.c" - } -#line 45 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - result = NULL; -#line 45 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (external_apps); -#line 45 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return result; -#line 761 "DesktopIntegration.c" -} - - -gint64 -desktop_integration_app_info_comparator (void* a, - void* b) -{ - gint64 result = 0LL; - const gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gint64 _tmp6_; -#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = g_app_info_get_name (G_TYPE_CHECK_INSTANCE_CAST (a, g_app_info_get_type (), GAppInfo)); -#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = g_utf8_strdown (_tmp0_, (gssize) -1); -#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = _tmp1_; -#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp3_ = g_app_info_get_name (G_TYPE_CHECK_INSTANCE_CAST (b, g_app_info_get_type (), GAppInfo)); -#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp4_ = g_utf8_strdown (_tmp3_, (gssize) -1); -#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp5_ = _tmp4_; -#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp6_ = (gint64) g_utf8_collate (_tmp2_, _tmp5_); -#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp5_); -#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp2_); -#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - result = _tmp6_; -#line 50 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return result; -#line 799 "DesktopIntegration.c" -} - - -static gint64 -_desktop_integration_app_info_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = desktop_integration_app_info_comparator (a, b); -#line 54 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return result; -#line 812 "DesktopIntegration.c" -} - - -static void -_g_object_unref0_ (gpointer var) -{ -#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - (var == NULL) ? NULL : (var = (g_object_unref (var), NULL)); -#line 821 "DesktopIntegration.c" -} - - -static inline void -_g_list_free__g_object_unref0_ (GList* self) -{ -#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_list_free_full (self, (GDestroyNotify) _g_object_unref0_); -#line 830 "DesktopIntegration.c" -} - - -SortedList* -desktop_integration_get_apps_for_mime_types (gchar** mime_types, - int mime_types_length1) -{ - SortedList* result = NULL; - SortedList* external_apps = NULL; - SortedList* _tmp0_; -#line 54 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = sorted_list_new (g_app_info_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _desktop_integration_app_info_comparator_comparator, NULL); -#line 54 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - external_apps = _tmp0_; -#line 56 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (mime_types_length1 == 0) { -#line 57 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - result = external_apps; -#line 57 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return result; -#line 851 "DesktopIntegration.c" - } - { - gchar** mime_type_collection = NULL; - gint mime_type_collection_length1 = 0; - gint _mime_type_collection_size_ = 0; - gint mime_type_it = 0; -#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - mime_type_collection = mime_types; -#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - mime_type_collection_length1 = mime_types_length1; -#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - for (mime_type_it = 0; mime_type_it < mime_types_length1; mime_type_it = mime_type_it + 1) { -#line 864 "DesktopIntegration.c" - gchar* _tmp1_; - gchar* mime_type = NULL; -#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = g_strdup (mime_type_collection[mime_type_it]); -#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - mime_type = _tmp1_; -#line 871 "DesktopIntegration.c" - { - gchar* content_type = NULL; - const gchar* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; - const gchar* _tmp5_; - GList* _tmp6_; -#line 62 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = mime_type; -#line 62 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp3_ = g_content_type_from_mime_type (_tmp2_); -#line 62 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - content_type = _tmp3_; -#line 63 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp4_ = content_type; -#line 63 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (_tmp4_ == NULL) { -#line 64 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (content_type); -#line 64 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (mime_type); -#line 64 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - break; -#line 895 "DesktopIntegration.c" - } -#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp5_ = content_type; -#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp6_ = g_app_info_get_all_for_type (_tmp5_); -#line 901 "DesktopIntegration.c" - { - GList* external_app_collection = NULL; - GList* external_app_it = NULL; -#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - external_app_collection = _tmp6_; -#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - for (external_app_it = external_app_collection; external_app_it != NULL; external_app_it = external_app_it->next) { -#line 909 "DesktopIntegration.c" - GAppInfo* _tmp7_; - GAppInfo* external_app = NULL; -#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp7_ = _g_object_ref0 ((GAppInfo*) external_app_it->data); -#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - external_app = _tmp7_; -#line 916 "DesktopIntegration.c" - { - gboolean already_contains = FALSE; - gboolean _tmp17_ = FALSE; - gboolean _tmp18_; -#line 68 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - already_contains = FALSE; -#line 923 "DesktopIntegration.c" - { - GeeIterator* _app_it = NULL; - SortedList* _tmp8_; - GeeIterator* _tmp9_; -#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp8_ = external_apps; -#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _app_it = _tmp9_; -#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - while (TRUE) { -#line 936 "DesktopIntegration.c" - GeeIterator* _tmp10_; - GAppInfo* app = NULL; - GeeIterator* _tmp11_; - gpointer _tmp12_; - GAppInfo* _tmp13_; - const gchar* _tmp14_; - GAppInfo* _tmp15_; - const gchar* _tmp16_; -#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp10_ = _app_it; -#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (!gee_iterator_next (_tmp10_)) { -#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - break; -#line 951 "DesktopIntegration.c" - } -#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp11_ = _app_it; -#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp12_ = gee_iterator_get (_tmp11_); -#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - app = (GAppInfo*) _tmp12_; -#line 71 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp13_ = app; -#line 71 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp14_ = g_app_info_get_name (_tmp13_); -#line 71 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp15_ = external_app; -#line 71 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp16_ = g_app_info_get_name (_tmp15_); -#line 71 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (g_strcmp0 (_tmp14_, _tmp16_) == 0) { -#line 72 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - already_contains = TRUE; -#line 73 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (app); -#line 73 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - break; -#line 975 "DesktopIntegration.c" - } -#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (app); -#line 979 "DesktopIntegration.c" - } -#line 70 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_app_it); -#line 983 "DesktopIntegration.c" - } -#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp18_ = already_contains; -#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (!_tmp18_) { -#line 989 "DesktopIntegration.c" - GAppInfo* _tmp19_; - const gchar* _tmp20_; -#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp19_ = external_app; -#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp20_ = g_app_info_get_name (_tmp19_); -#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp17_ = !string_contains (_tmp20_, RESOURCES_APP_TITLE); -#line 998 "DesktopIntegration.c" - } else { -#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp17_ = FALSE; -#line 1002 "DesktopIntegration.c" - } -#line 78 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (_tmp17_) { -#line 1006 "DesktopIntegration.c" - SortedList* _tmp21_; - GAppInfo* _tmp22_; -#line 79 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp21_ = external_apps; -#line 79 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp22_ = external_app; -#line 79 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection), _tmp22_); -#line 1015 "DesktopIntegration.c" - } -#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (external_app); -#line 1019 "DesktopIntegration.c" - } - } -#line 66 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - __g_list_free__g_object_unref0_0 (external_app_collection); -#line 1024 "DesktopIntegration.c" - } -#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (content_type); -#line 61 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (mime_type); -#line 1030 "DesktopIntegration.c" - } - } - } -#line 83 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - result = external_apps; -#line 83 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return result; -#line 1038 "DesktopIntegration.c" -} - - -gchar* -desktop_integration_get_app_open_command (GAppInfo* app_info) -{ - gchar* result = NULL; - gchar* str = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; - const gchar* _tmp2_ = NULL; - const gchar* _tmp3_; - gchar* _tmp6_; -#line 86 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_val_if_fail (G_IS_APP_INFO (app_info), NULL); -#line 87 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = g_app_info_get_commandline (app_info); -#line 87 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 87 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - str = _tmp1_; -#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp3_ = str; -#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (_tmp3_ != NULL) { -#line 1064 "DesktopIntegration.c" - const gchar* _tmp4_; -#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp4_ = str; -#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = _tmp4_; -#line 1070 "DesktopIntegration.c" - } else { - const gchar* _tmp5_; -#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp5_ = g_app_info_get_executable (app_info); -#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = _tmp5_; -#line 1077 "DesktopIntegration.c" - } -#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp6_ = g_strdup (_tmp2_); -#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - result = _tmp6_; -#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (str); -#line 89 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return result; -#line 1087 "DesktopIntegration.c" -} - - -gboolean -desktop_integration_is_send_to_installed (void) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 93 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = desktop_integration_send_to_installed; -#line 93 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - result = _tmp0_; -#line 93 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return result; -#line 1102 "DesktopIntegration.c" -} - - -void -desktop_integration_files_send_to (GFile** files, - int files_length1) -{ - gchar** argv = NULL; - gchar** _tmp0_; - gint argv_length1; - gint _argv_size_; - gchar** _tmp1_; - gint _tmp1__length1; - gchar* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 97 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (files_length1 == 0) { -#line 98 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 1123 "DesktopIntegration.c" - } -#line 100 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = g_new0 (gchar*, (files_length1 + 1) + 1); -#line 100 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - argv = _tmp0_; -#line 100 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - argv_length1 = files_length1 + 1; -#line 100 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _argv_size_ = argv_length1; -#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = argv; -#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1__length1 = argv_length1; -#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = g_strdup (DESKTOP_INTEGRATION_SENDTO_EXEC); -#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp1_[0]); -#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_[0] = _tmp2_; -#line 101 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp3_ = _tmp1_[0]; -#line 1145 "DesktopIntegration.c" - { - gint ctr = 0; -#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - ctr = 0; -#line 1150 "DesktopIntegration.c" - { - gboolean _tmp4_ = FALSE; -#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp4_ = TRUE; -#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - while (TRUE) { -#line 1157 "DesktopIntegration.c" - gint _tmp6_; - gchar** _tmp7_; - gint _tmp7__length1; - gint _tmp8_; - gint _tmp9_; - GFile* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; -#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (!_tmp4_) { -#line 1168 "DesktopIntegration.c" - gint _tmp5_; -#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp5_ = ctr; -#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - ctr = _tmp5_ + 1; -#line 1174 "DesktopIntegration.c" - } -#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp4_ = FALSE; -#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp6_ = ctr; -#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (!(_tmp6_ < files_length1)) { -#line 103 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - break; -#line 1184 "DesktopIntegration.c" - } -#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp7_ = argv; -#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp7__length1 = argv_length1; -#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp8_ = ctr; -#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp9_ = ctr; -#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp10_ = files[_tmp9_]; -#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp11_ = g_file_get_path (_tmp10_); -#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp7_[_tmp8_ + 1]); -#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp7_[_tmp8_ + 1] = _tmp11_; -#line 104 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp12_ = _tmp7_[_tmp8_ + 1]; -#line 1204 "DesktopIntegration.c" - } - } - } - { - AppWindow* _tmp13_; - AppWindow* _tmp14_; - GPid child_pid = 0; - gchar** _tmp15_; - gint _tmp15__length1; - GPid _tmp16_ = 0; - AppWindow* _tmp17_; - AppWindow* _tmp18_; -#line 107 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp13_ = app_window_get_instance (); -#line 107 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp14_ = _tmp13_; -#line 107 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PAGE_WINDOW, PageWindow)); -#line 107 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp14_); -#line 110 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp15_ = argv; -#line 110 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp15__length1 = argv_length1; -#line 110 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_spawn_async ("/", _tmp15_, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, &_tmp16_, &_inner_error_); -#line 110 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - child_pid = _tmp16_; -#line 110 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1235 "DesktopIntegration.c" - goto __catch577_g_error; - } -#line 118 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp17_ = app_window_get_instance (); -#line 118 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp18_ = _tmp17_; -#line 118 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PAGE_WINDOW, PageWindow)); -#line 118 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp18_); -#line 1246 "DesktopIntegration.c" - } - goto __finally577; - __catch577_g_error: - { - GError* err = NULL; - AppWindow* _tmp19_; - AppWindow* _tmp20_; - GError* _tmp21_; - const gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; -#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - err = _inner_error_; -#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _inner_error_ = NULL; -#line 120 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp19_ = app_window_get_instance (); -#line 120 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp20_ = _tmp19_; -#line 120 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PAGE_WINDOW, PageWindow)); -#line 120 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp20_); -#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp21_ = err; -#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp22_ = _tmp21_->message; -#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp23_ = g_strdup_printf (_ ("Unable to launch Nautilus Send-To: %s"), _tmp22_); -#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp24_ = _tmp23_; -#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - app_window_error_message (_tmp24_, NULL); -#line 121 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp24_); -#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_error_free0 (err); -#line 1284 "DesktopIntegration.c" - } - __finally577: -#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL); -#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_clear_error (&_inner_error_); -#line 106 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 1297 "DesktopIntegration.c" - } -#line 96 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL); -#line 1301 "DesktopIntegration.c" -} - - -static void -_desktop_integration_on_send_to_export_completed_exporter_completion_callback (Exporter* exporter, - gboolean is_cancelled, - gpointer self) -{ -#line 135 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_on_send_to_export_completed (exporter, is_cancelled); -#line 1312 "DesktopIntegration.c" -} - - -void -desktop_integration_send_to (GeeCollection* media) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; - gint _tmp2_; - ExportDialog* dialog = NULL; - ExportDialog* _tmp4_; - gboolean _tmp5_ = FALSE; - gint scale = 0; - ScaleConstraint constraint = 0; - ExportFormatParameters export_params = {0}; - ExportFormatParameters _tmp7_ = {0}; - ExportDialog* _tmp8_; - gint _tmp9_ = 0; - ScaleConstraint _tmp10_ = 0; - gboolean _tmp11_; - ScaleConstraint _tmp12_; - gint _tmp13_; - Scaling _tmp14_ = {0}; - ExportFormatParameters _tmp15_; - Exporter* _tmp16_; - Exporter* _tmp17_; - ExporterUI* _tmp18_; - ExporterUI* _tmp19_; -#line 125 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (GEE_IS_COLLECTION (media)); -#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = gee_collection_get_size (media); -#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = _tmp1_; -#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (_tmp2_ == 0) { -#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = TRUE; -#line 1351 "DesktopIntegration.c" - } else { - ExporterUI* _tmp3_; -#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp3_ = desktop_integration_send_to_exporter; -#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = _tmp3_ != NULL; -#line 1358 "DesktopIntegration.c" - } -#line 126 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (_tmp0_) { -#line 127 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 1364 "DesktopIntegration.c" - } -#line 129 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp4_ = export_dialog_new (_ ("Send To")); -#line 129 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_object_ref_sink (_tmp4_); -#line 129 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - dialog = _tmp4_; -#line 134 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (media_source_collection_has_video (media)) { -#line 134 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp5_ = !media_source_collection_has_photo (media); -#line 1376 "DesktopIntegration.c" - } else { -#line 134 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp5_ = FALSE; -#line 1380 "DesktopIntegration.c" - } -#line 134 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (_tmp5_) { -#line 1384 "DesktopIntegration.c" - ExporterUI* _tmp6_; -#line 135 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp6_ = video_export_many (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_COLLECTION, GeeCollection), _desktop_integration_on_send_to_export_completed_exporter_completion_callback, NULL, TRUE); -#line 135 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _exporter_ui_unref0 (desktop_integration_send_to_exporter); -#line 135 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_send_to_exporter = _tmp6_; -#line 137 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (dialog); -#line 137 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 1396 "DesktopIntegration.c" - } -#line 142 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - export_format_parameters_current (&_tmp7_); -#line 142 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - export_params = _tmp7_; -#line 143 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp8_ = dialog; -#line 143 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp11_ = export_dialog_execute (_tmp8_, &_tmp9_, &_tmp10_, &export_params); -#line 143 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - scale = _tmp9_; -#line 143 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - constraint = _tmp10_; -#line 143 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (!_tmp11_) { -#line 144 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (dialog); -#line 144 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 1416 "DesktopIntegration.c" - } -#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp12_ = constraint; -#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp13_ = scale; -#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - scaling_for_constraint (_tmp12_, _tmp13_, FALSE, &_tmp14_); -#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp15_ = export_params; -#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp16_ = exporter_new_for_temp_file (media, &_tmp14_, &_tmp15_); -#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp17_ = _tmp16_; -#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp18_ = exporter_ui_new (_tmp17_); -#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _exporter_ui_unref0 (desktop_integration_send_to_exporter); -#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_send_to_exporter = _tmp18_; -#line 146 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp17_); -#line 148 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp19_ = desktop_integration_send_to_exporter; -#line 148 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - exporter_ui_export (_tmp19_, _desktop_integration_on_send_to_export_completed_exporter_completion_callback, NULL); -#line 125 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (dialog); -#line 1444 "DesktopIntegration.c" -} - - -void -desktop_integration_on_send_to_export_completed (Exporter* exporter, - gboolean is_cancelled) -{ -#line 151 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (IS_EXPORTER (exporter)); -#line 152 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (!is_cancelled) { -#line 1456 "DesktopIntegration.c" - gint _tmp0_; - GFile** _tmp1_; - GFile** _tmp2_; - gint _tmp2__length1; -#line 153 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = exporter_get_exported_files (exporter, &_tmp0_); -#line 153 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = _tmp1_; -#line 153 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2__length1 = _tmp0_; -#line 153 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_files_send_to (_tmp2_, _tmp0_); -#line 153 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = (_vala_array_free (_tmp2_, _tmp2__length1, (GDestroyNotify) g_object_unref), NULL); -#line 1471 "DesktopIntegration.c" - } -#line 155 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _exporter_ui_unref0 (desktop_integration_send_to_exporter); -#line 155 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_send_to_exporter = NULL; -#line 1477 "DesktopIntegration.c" -} - - -void -desktop_integration_set_background (Photo* photo, - gboolean desktop, - gboolean screensaver) -{ - PhotoFileFormat file_format = 0; - GFile* save_as = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - PhotoFileFormat _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - GFile* _tmp5_; - GFile* _tmp6_; - ConfigFacade* _tmp7_; - ConfigFacade* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - GFile* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gboolean _tmp14_; - GFile* _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; - GError * _inner_error_ = NULL; -#line 158 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 161 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - file_format = photo_get_best_export_file_format (photo); -#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = app_dirs_get_data_subdir ("wallpaper", NULL); -#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = _tmp0_; -#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = file_format; -#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp3_ = photo_file_format_get_default_basename (_tmp2_, "wallpaper"); -#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp4_ = _tmp3_; -#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp5_ = g_file_get_child (_tmp1_, _tmp4_); -#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp6_ = _tmp5_; -#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp4_); -#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp1_); -#line 163 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - save_as = _tmp6_; -#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp7_ = config_facade_get_instance (); -#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp8_ = _tmp7_; -#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp9_ = configuration_facade_get_desktop_background (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp10_ = _tmp9_; -#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp11_ = save_as; -#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp12_ = g_file_get_path (_tmp11_); -#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp13_ = _tmp12_; -#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp14_ = g_strcmp0 (_tmp10_, _tmp13_) == 0; -#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp13_); -#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp10_); -#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp8_); -#line 166 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (_tmp14_) { -#line 1555 "DesktopIntegration.c" - GFile* _tmp15_; - GFile* _tmp16_; - PhotoFileFormat _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - GFile* _tmp20_; -#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp15_ = app_dirs_get_data_subdir ("wallpaper", NULL); -#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp16_ = _tmp15_; -#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp17_ = file_format; -#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp18_ = photo_file_format_get_default_basename (_tmp17_, "wallpaper_alt"); -#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp19_ = _tmp18_; -#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp20_ = g_file_get_child (_tmp16_, _tmp19_); -#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (save_as); -#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - save_as = _tmp20_; -#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp19_); -#line 167 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp16_); -#line 1582 "DesktopIntegration.c" - } - { - GFile* _tmp21_; - Scaling _tmp22_ = {0}; - PhotoFileFormat _tmp23_; -#line 172 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp21_ = save_as; -#line 172 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - scaling_for_original (&_tmp22_); -#line 172 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp23_ = file_format; -#line 172 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - photo_export (photo, _tmp21_, &_tmp22_, JPEG_QUALITY_HIGH, _tmp23_, FALSE, TRUE, &_inner_error_); -#line 172 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1598 "DesktopIntegration.c" - goto __catch578_g_error; - } - } - goto __finally578; - __catch578_g_error: - { - GError* err = NULL; - GFile* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - GError* _tmp27_; - const gchar* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; -#line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - err = _inner_error_; -#line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _inner_error_ = NULL; -#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp24_ = save_as; -#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp25_ = g_file_get_path (_tmp24_); -#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp26_ = _tmp25_; -#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp27_ = err; -#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp28_ = _tmp27_->message; -#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp29_ = g_strdup_printf (_ ("Unable to export background to %s: %s"), _tmp26_, _tmp28_); -#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp30_ = _tmp29_; -#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - app_window_error_message (_tmp30_, NULL); -#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp30_); -#line 174 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp26_); -#line 177 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_error_free0 (err); -#line 177 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (save_as); -#line 177 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 1643 "DesktopIntegration.c" - } - __finally578: -#line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (save_as); -#line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_clear_error (&_inner_error_); -#line 171 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 1656 "DesktopIntegration.c" - } -#line 180 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (desktop) { -#line 1660 "DesktopIntegration.c" - ConfigFacade* _tmp31_; - ConfigFacade* _tmp32_; - GFile* _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; -#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp31_ = config_facade_get_instance (); -#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp32_ = _tmp31_; -#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp33_ = save_as; -#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp34_ = g_file_get_path (_tmp33_); -#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp35_ = _tmp34_; -#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - configuration_facade_set_desktop_background (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp35_); -#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp35_); -#line 181 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp32_); -#line 1682 "DesktopIntegration.c" - } -#line 183 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (screensaver) { -#line 1686 "DesktopIntegration.c" - ConfigFacade* _tmp36_; - ConfigFacade* _tmp37_; - GFile* _tmp38_; - gchar* _tmp39_; - gchar* _tmp40_; -#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp36_ = config_facade_get_instance (); -#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp37_ = _tmp36_; -#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp38_ = save_as; -#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp39_ = g_file_get_path (_tmp38_); -#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp40_ = _tmp39_; -#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - configuration_facade_set_screensaver (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp40_); -#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp40_); -#line 184 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp37_); -#line 1708 "DesktopIntegration.c" - } -#line 187 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp41_ = save_as; -#line 187 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp42_ = g_file_get_parse_name (_tmp41_); -#line 187 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp43_ = _tmp42_; -#line 187 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_chmod (_tmp43_, 0644); -#line 187 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp43_); -#line 158 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (save_as); -#line 1722 "DesktopIntegration.c" -} - - -DesktopIntegrationBackgroundSlideshowXMLBuilder* -desktop_integration_background_slideshow_xml_builder_construct (GType object_type, - GFile* destination, - gdouble duration, - gdouble transition) -{ - DesktopIntegrationBackgroundSlideshowXMLBuilder* self = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GFile* _tmp7_; -#line 202 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_val_if_fail (G_IS_FILE (destination), NULL); -#line 202 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - self = (DesktopIntegrationBackgroundSlideshowXMLBuilder*) g_type_create_instance (object_type); -#line 203 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = _g_object_ref0 (destination); -#line 203 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (self->priv->destination); -#line 203 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - self->priv->destination = _tmp0_; -#line 204 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - self->priv->duration = duration; -#line 205 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - self->priv->transition = transition; -#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = g_file_get_parent (destination); -#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = _tmp1_; -#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp3_ = g_file_get_basename (destination); -#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp4_ = _tmp3_; -#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp5_ = g_strconcat (_tmp4_, ".tmp", NULL); -#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp6_ = _tmp5_; -#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp7_ = g_file_get_child (_tmp2_, _tmp6_); -#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (self->priv->tmp_file); -#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - self->priv->tmp_file = _tmp7_; -#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp6_); -#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp4_); -#line 207 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp2_); -#line 202 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return self; -#line 1781 "DesktopIntegration.c" -} - - -DesktopIntegrationBackgroundSlideshowXMLBuilder* -desktop_integration_background_slideshow_xml_builder_new (GFile* destination, - gdouble duration, - gdouble transition) -{ -#line 202 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return desktop_integration_background_slideshow_xml_builder_construct (DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER, destination, duration, transition); -#line 1792 "DesktopIntegration.c" -} - - -void -desktop_integration_background_slideshow_xml_builder_open (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, - GError** error) -{ - GFileOutputStream* _tmp0_ = NULL; - GFile* _tmp1_; - GFileOutputStream* _tmp2_; - GDataOutputStream* _tmp3_; - GDataOutputStream* _tmp4_; - GError * _inner_error_ = NULL; -#line 210 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (DESKTOP_INTEGRATION_IS_BACKGROUND_SLIDESHOW_XML_BUILDER (self)); -#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = self->priv->tmp_file; -#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = g_file_replace (_tmp1_, NULL, FALSE, G_FILE_CREATE_NONE, NULL, &_inner_error_); -#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = _tmp2_; -#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_propagate_error (error, _inner_error_); -#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 1820 "DesktopIntegration.c" - } -#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp3_ = g_data_output_stream_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_output_stream_get_type (), GOutputStream)); -#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (self->priv->outs); -#line 211 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - self->priv->outs = _tmp3_; -#line 212 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp4_ = self->priv->outs; -#line 212 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_data_output_stream_put_string (_tmp4_, "\n", NULL, &_inner_error_); -#line 212 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 212 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_propagate_error (error, _inner_error_); -#line 212 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp0_); -#line 212 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 1840 "DesktopIntegration.c" - } -#line 210 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp0_); -#line 1844 "DesktopIntegration.c" -} - - -static void -desktop_integration_background_slideshow_xml_builder_write_transition (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, - GFile* from, - GFile* to, - GError** error) -{ - GDataOutputStream* _tmp0_; - GDataOutputStream* _tmp1_; - gdouble _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - GDataOutputStream* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - GDataOutputStream* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - GDataOutputStream* _tmp19_; - GError * _inner_error_ = NULL; -#line 215 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (DESKTOP_INTEGRATION_IS_BACKGROUND_SLIDESHOW_XML_BUILDER (self)); -#line 215 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (G_IS_FILE (from)); -#line 215 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (G_IS_FILE (to)); -#line 216 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = self->priv->outs; -#line 216 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_data_output_stream_put_string (_tmp0_, " \n", NULL, &_inner_error_); -#line 216 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 216 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_propagate_error (error, _inner_error_); -#line 216 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 1891 "DesktopIntegration.c" - } -#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = self->priv->outs; -#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = self->priv->transition; -#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp3_ = g_strdup_printf (" %2.2f\n", _tmp2_); -#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp4_ = _tmp3_; -#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_data_output_stream_put_string (_tmp1_, _tmp4_, NULL, &_inner_error_); -#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp4_); -#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_propagate_error (error, _inner_error_); -#line 217 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 1911 "DesktopIntegration.c" - } -#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp5_ = self->priv->outs; -#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp6_ = g_file_get_path (from); -#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp7_ = _tmp6_; -#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp8_ = g_markup_escape_text (_tmp7_, (gssize) -1); -#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp9_ = _tmp8_; -#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp10_ = g_strdup_printf (" %s\n", _tmp9_); -#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp11_ = _tmp10_; -#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_data_output_stream_put_string (_tmp5_, _tmp11_, NULL, &_inner_error_); -#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp11_); -#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp9_); -#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp7_); -#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_propagate_error (error, _inner_error_); -#line 218 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 1941 "DesktopIntegration.c" - } -#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp12_ = self->priv->outs; -#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp13_ = g_file_get_path (to); -#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp14_ = _tmp13_; -#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp15_ = g_markup_escape_text (_tmp14_, (gssize) -1); -#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp16_ = _tmp15_; -#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp17_ = g_strdup_printf (" %s\n", _tmp16_); -#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp18_ = _tmp17_; -#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_data_output_stream_put_string (_tmp12_, _tmp18_, NULL, &_inner_error_); -#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp18_); -#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp16_); -#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp14_); -#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_propagate_error (error, _inner_error_); -#line 219 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 1971 "DesktopIntegration.c" - } -#line 220 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp19_ = self->priv->outs; -#line 220 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_data_output_stream_put_string (_tmp19_, " \n", NULL, &_inner_error_); -#line 220 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 220 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_propagate_error (error, _inner_error_); -#line 220 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 1983 "DesktopIntegration.c" - } -} - - -static void -desktop_integration_background_slideshow_xml_builder_write_static (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, - GFile* file, - GError** error) -{ - GDataOutputStream* _tmp0_; - GDataOutputStream* _tmp1_; - gdouble _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - GDataOutputStream* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - GDataOutputStream* _tmp12_; - GError * _inner_error_ = NULL; -#line 223 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (DESKTOP_INTEGRATION_IS_BACKGROUND_SLIDESHOW_XML_BUILDER (self)); -#line 223 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 224 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = self->priv->outs; -#line 224 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_data_output_stream_put_string (_tmp0_, " \n", NULL, &_inner_error_); -#line 224 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 224 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_propagate_error (error, _inner_error_); -#line 224 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 2021 "DesktopIntegration.c" - } -#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = self->priv->outs; -#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = self->priv->duration; -#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp3_ = g_strdup_printf (" %2.2f\n", _tmp2_); -#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp4_ = _tmp3_; -#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_data_output_stream_put_string (_tmp1_, _tmp4_, NULL, &_inner_error_); -#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp4_); -#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_propagate_error (error, _inner_error_); -#line 225 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 2041 "DesktopIntegration.c" - } -#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp5_ = self->priv->outs; -#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp6_ = g_file_get_path (file); -#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp7_ = _tmp6_; -#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp8_ = g_markup_escape_text (_tmp7_, (gssize) -1); -#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp9_ = _tmp8_; -#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp10_ = g_strdup_printf (" %s\n", _tmp9_); -#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp11_ = _tmp10_; -#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_data_output_stream_put_string (_tmp5_, _tmp11_, NULL, &_inner_error_); -#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp11_); -#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp9_); -#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp7_); -#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_propagate_error (error, _inner_error_); -#line 226 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 2071 "DesktopIntegration.c" - } -#line 227 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp12_ = self->priv->outs; -#line 227 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_data_output_stream_put_string (_tmp12_, " \n", NULL, &_inner_error_); -#line 227 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 227 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_propagate_error (error, _inner_error_); -#line 227 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 2083 "DesktopIntegration.c" - } -} - - -void -desktop_integration_background_slideshow_xml_builder_add_photo (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, - GFile* file, - GError** error) -{ - GDataOutputStream* _tmp0_; - GFile* _tmp1_; - GFile* _tmp3_; - GFile* _tmp5_; - GError * _inner_error_ = NULL; -#line 230 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (DESKTOP_INTEGRATION_IS_BACKGROUND_SLIDESHOW_XML_BUILDER (self)); -#line 230 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 231 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = self->priv->outs; -#line 231 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _vala_assert (_tmp0_ != NULL, "outs != null"); -#line 233 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = self->priv->first_file; -#line 233 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (_tmp1_ == NULL) { -#line 2110 "DesktopIntegration.c" - GFile* _tmp2_; -#line 234 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = _g_object_ref0 (file); -#line 234 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (self->priv->first_file); -#line 234 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - self->priv->first_file = _tmp2_; -#line 2118 "DesktopIntegration.c" - } -#line 236 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp3_ = self->priv->last_file; -#line 236 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (_tmp3_ != NULL) { -#line 2124 "DesktopIntegration.c" - GFile* _tmp4_; -#line 237 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp4_ = self->priv->last_file; -#line 237 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_background_slideshow_xml_builder_write_transition (self, _tmp4_, file, &_inner_error_); -#line 237 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 237 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_propagate_error (error, _inner_error_); -#line 237 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 2136 "DesktopIntegration.c" - } - } -#line 239 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_background_slideshow_xml_builder_write_static (self, file, &_inner_error_); -#line 239 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 239 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_propagate_error (error, _inner_error_); -#line 239 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 2147 "DesktopIntegration.c" - } -#line 241 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp5_ = _g_object_ref0 (file); -#line 241 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (self->priv->last_file); -#line 241 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - self->priv->last_file = _tmp5_; -#line 2155 "DesktopIntegration.c" -} - - -GFile* -desktop_integration_background_slideshow_xml_builder_close (DesktopIntegrationBackgroundSlideshowXMLBuilder* self, - GError** error) -{ - GFile* result = NULL; - GDataOutputStream* _tmp0_; - gboolean _tmp1_ = FALSE; - GFile* _tmp2_; - GDataOutputStream* _tmp6_; - GDataOutputStream* _tmp7_; - GFile* _tmp8_; - GFile* _tmp9_; - GFile* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - GFile* _tmp13_; - GFile* _tmp14_; - GError * _inner_error_ = NULL; -#line 244 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_val_if_fail (DESKTOP_INTEGRATION_IS_BACKGROUND_SLIDESHOW_XML_BUILDER (self), NULL); -#line 245 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = self->priv->outs; -#line 245 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (_tmp0_ == NULL) { -#line 246 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - result = NULL; -#line 246 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return result; -#line 2187 "DesktopIntegration.c" - } -#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = self->priv->first_file; -#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (_tmp2_ != NULL) { -#line 2193 "DesktopIntegration.c" - GFile* _tmp3_; -#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp3_ = self->priv->last_file; -#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = _tmp3_ != NULL; -#line 2199 "DesktopIntegration.c" - } else { -#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = FALSE; -#line 2203 "DesktopIntegration.c" - } -#line 249 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (_tmp1_) { -#line 2207 "DesktopIntegration.c" - GFile* _tmp4_; - GFile* _tmp5_; -#line 250 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp4_ = self->priv->last_file; -#line 250 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp5_ = self->priv->first_file; -#line 250 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_background_slideshow_xml_builder_write_transition (self, _tmp4_, _tmp5_, &_inner_error_); -#line 250 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 250 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_propagate_error (error, _inner_error_); -#line 250 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return NULL; -#line 2222 "DesktopIntegration.c" - } - } -#line 252 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp6_ = self->priv->outs; -#line 252 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_data_output_stream_put_string (_tmp6_, "\n", NULL, &_inner_error_); -#line 252 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 252 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_propagate_error (error, _inner_error_); -#line 252 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return NULL; -#line 2235 "DesktopIntegration.c" - } -#line 254 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp7_ = self->priv->outs; -#line 254 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_output_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, g_output_stream_get_type (), GOutputStream), NULL, &_inner_error_); -#line 254 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 254 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_propagate_error (error, _inner_error_); -#line 254 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return NULL; -#line 2247 "DesktopIntegration.c" - } -#line 255 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (self->priv->outs); -#line 255 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - self->priv->outs = NULL; -#line 258 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp8_ = self->priv->tmp_file; -#line 258 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp9_ = self->priv->destination; -#line 258 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_file_move (_tmp8_, _tmp9_, G_FILE_COPY_OVERWRITE, NULL, NULL, NULL, &_inner_error_); -#line 258 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 258 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_propagate_error (error, _inner_error_); -#line 258 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return NULL; -#line 2265 "DesktopIntegration.c" - } -#line 259 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp10_ = self->priv->destination; -#line 259 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp11_ = g_file_get_parse_name (_tmp10_); -#line 259 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp12_ = _tmp11_; -#line 259 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_chmod (_tmp12_, 0644); -#line 259 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp12_); -#line 261 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp13_ = self->priv->destination; -#line 261 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp14_ = _g_object_ref0 (_tmp13_); -#line 261 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - result = _tmp14_; -#line 261 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return result; -#line 2285 "DesktopIntegration.c" -} - - -static void -desktop_integration_value_background_slideshow_xml_builder_init (GValue* value) -{ -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - value->data[0].v_pointer = NULL; -#line 2294 "DesktopIntegration.c" -} - - -static void -desktop_integration_value_background_slideshow_xml_builder_free_value (GValue* value) -{ -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (value->data[0].v_pointer) { -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_background_slideshow_xml_builder_unref (value->data[0].v_pointer); -#line 2305 "DesktopIntegration.c" - } -} - - -static void -desktop_integration_value_background_slideshow_xml_builder_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (src_value->data[0].v_pointer) { -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - dest_value->data[0].v_pointer = desktop_integration_background_slideshow_xml_builder_ref (src_value->data[0].v_pointer); -#line 2318 "DesktopIntegration.c" - } else { -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - dest_value->data[0].v_pointer = NULL; -#line 2322 "DesktopIntegration.c" - } -} - - -static gpointer -desktop_integration_value_background_slideshow_xml_builder_peek_pointer (const GValue* value) -{ -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return value->data[0].v_pointer; -#line 2332 "DesktopIntegration.c" -} - - -static gchar* -desktop_integration_value_background_slideshow_xml_builder_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (collect_values[0].v_pointer) { -#line 2344 "DesktopIntegration.c" - DesktopIntegrationBackgroundSlideshowXMLBuilder * object; - object = collect_values[0].v_pointer; -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (object->parent_instance.g_class == NULL) { -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2351 "DesktopIntegration.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2355 "DesktopIntegration.c" - } -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - value->data[0].v_pointer = desktop_integration_background_slideshow_xml_builder_ref (object); -#line 2359 "DesktopIntegration.c" - } else { -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - value->data[0].v_pointer = NULL; -#line 2363 "DesktopIntegration.c" - } -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return NULL; -#line 2367 "DesktopIntegration.c" -} - - -static gchar* -desktop_integration_value_background_slideshow_xml_builder_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - DesktopIntegrationBackgroundSlideshowXMLBuilder ** object_p; - object_p = collect_values[0].v_pointer; -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (!object_p) { -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2383 "DesktopIntegration.c" - } -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (!value->data[0].v_pointer) { -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - *object_p = NULL; -#line 2389 "DesktopIntegration.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - *object_p = value->data[0].v_pointer; -#line 2393 "DesktopIntegration.c" - } else { -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - *object_p = desktop_integration_background_slideshow_xml_builder_ref (value->data[0].v_pointer); -#line 2397 "DesktopIntegration.c" - } -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return NULL; -#line 2401 "DesktopIntegration.c" -} - - -GParamSpec* -desktop_integration_param_spec_background_slideshow_xml_builder (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - DesktopIntegrationParamSpecBackgroundSlideshowXMLBuilder* spec; -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_val_if_fail (g_type_is_a (object_type, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER), NULL); -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return G_PARAM_SPEC (spec); -#line 2421 "DesktopIntegration.c" -} - - -gpointer -desktop_integration_value_get_background_slideshow_xml_builder (const GValue* value) -{ -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER), NULL); -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return value->data[0].v_pointer; -#line 2432 "DesktopIntegration.c" -} - - -void -desktop_integration_value_set_background_slideshow_xml_builder (GValue* value, - gpointer v_object) -{ - DesktopIntegrationBackgroundSlideshowXMLBuilder * old; -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER)); -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - old = value->data[0].v_pointer; -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (v_object) { -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER)); -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - value->data[0].v_pointer = v_object; -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_background_slideshow_xml_builder_ref (value->data[0].v_pointer); -#line 2455 "DesktopIntegration.c" - } else { -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - value->data[0].v_pointer = NULL; -#line 2459 "DesktopIntegration.c" - } -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (old) { -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_background_slideshow_xml_builder_unref (old); -#line 2465 "DesktopIntegration.c" - } -} - - -void -desktop_integration_value_take_background_slideshow_xml_builder (GValue* value, - gpointer v_object) -{ - DesktopIntegrationBackgroundSlideshowXMLBuilder * old; -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER)); -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - old = value->data[0].v_pointer; -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (v_object) { -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER)); -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - value->data[0].v_pointer = v_object; -#line 2487 "DesktopIntegration.c" - } else { -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - value->data[0].v_pointer = NULL; -#line 2491 "DesktopIntegration.c" - } -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (old) { -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_background_slideshow_xml_builder_unref (old); -#line 2497 "DesktopIntegration.c" - } -} - - -static void -desktop_integration_background_slideshow_xml_builder_class_init (DesktopIntegrationBackgroundSlideshowXMLBuilderClass * klass) -{ -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_background_slideshow_xml_builder_parent_class = g_type_class_peek_parent (klass); -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - ((DesktopIntegrationBackgroundSlideshowXMLBuilderClass *) klass)->finalize = desktop_integration_background_slideshow_xml_builder_finalize; -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_type_class_add_private (klass, sizeof (DesktopIntegrationBackgroundSlideshowXMLBuilderPrivate)); -#line 2511 "DesktopIntegration.c" -} - - -static void -desktop_integration_background_slideshow_xml_builder_instance_init (DesktopIntegrationBackgroundSlideshowXMLBuilder * self) -{ -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - self->priv = DESKTOP_INTEGRATION_BACKGROUND_SLIDESHOW_XML_BUILDER_GET_PRIVATE (self); -#line 198 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - self->priv->outs = NULL; -#line 199 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - self->priv->first_file = NULL; -#line 200 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - self->priv->last_file = NULL; -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - self->ref_count = 1; -#line 2528 "DesktopIntegration.c" -} - - -static void -desktop_integration_background_slideshow_xml_builder_finalize (DesktopIntegrationBackgroundSlideshowXMLBuilder * obj) -{ - DesktopIntegrationBackgroundSlideshowXMLBuilder * self; -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, DESKTOP_INTEGRATION_TYPE_BACKGROUND_SLIDESHOW_XML_BUILDER, DesktopIntegrationBackgroundSlideshowXMLBuilder); -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_signal_handlers_destroy (self); -#line 194 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (self->priv->destination); -#line 197 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (self->priv->tmp_file); -#line 198 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (self->priv->outs); -#line 199 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (self->priv->first_file); -#line 200 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (self->priv->last_file); -#line 2550 "DesktopIntegration.c" -} - - -GType -desktop_integration_background_slideshow_xml_builder_get_type (void) -{ - static volatile gsize desktop_integration_background_slideshow_xml_builder_type_id__volatile = 0; - if (g_once_init_enter (&desktop_integration_background_slideshow_xml_builder_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { desktop_integration_value_background_slideshow_xml_builder_init, desktop_integration_value_background_slideshow_xml_builder_free_value, desktop_integration_value_background_slideshow_xml_builder_copy_value, desktop_integration_value_background_slideshow_xml_builder_peek_pointer, "p", desktop_integration_value_background_slideshow_xml_builder_collect_value, "p", desktop_integration_value_background_slideshow_xml_builder_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (DesktopIntegrationBackgroundSlideshowXMLBuilderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) desktop_integration_background_slideshow_xml_builder_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DesktopIntegrationBackgroundSlideshowXMLBuilder), 0, (GInstanceInitFunc) desktop_integration_background_slideshow_xml_builder_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType desktop_integration_background_slideshow_xml_builder_type_id; - desktop_integration_background_slideshow_xml_builder_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DesktopIntegrationBackgroundSlideshowXMLBuilder", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&desktop_integration_background_slideshow_xml_builder_type_id__volatile, desktop_integration_background_slideshow_xml_builder_type_id); - } - return desktop_integration_background_slideshow_xml_builder_type_id__volatile; -} - - -gpointer -desktop_integration_background_slideshow_xml_builder_ref (gpointer instance) -{ - DesktopIntegrationBackgroundSlideshowXMLBuilder * self; - self = instance; -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_atomic_int_inc (&self->ref_count); -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return instance; -#line 2579 "DesktopIntegration.c" -} - - -void -desktop_integration_background_slideshow_xml_builder_unref (gpointer instance) -{ - DesktopIntegrationBackgroundSlideshowXMLBuilder * self; - self = instance; -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - DESKTOP_INTEGRATION_BACKGROUND_SLIDESHOW_XML_BUILDER_GET_CLASS (self)->finalize (self); -#line 193 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2594 "DesktopIntegration.c" - } -} - - -static void -_desktop_integration_on_desktop_slideshow_exported_exporter_completion_callback (Exporter* exporter, - gboolean is_cancelled, - gpointer self) -{ -#line 290 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_on_desktop_slideshow_exported (exporter, is_cancelled); -#line 2606 "DesktopIntegration.c" -} - - -void -desktop_integration_set_background_slideshow (GeeCollection* photos, - gdouble duration, - gdouble transition, - gboolean desktop_background, - gboolean screensaver) -{ - ExporterUI* _tmp0_; - GFile* wallpaper_dir = NULL; - GFile* _tmp1_; - GeeSet* exceptions = NULL; - GeeHashSet* _tmp2_; - GeeSet* _tmp3_; - Exporter* exporter = NULL; - GFile* _tmp8_; - AppWindow* _tmp9_; - AppWindow* _tmp10_; - Scaling _tmp11_ = {0}; - ExportFormatParameters _tmp12_ = {0}; - Exporter* _tmp13_; - Exporter* _tmp14_; - Exporter* _tmp15_; - ExporterUI* _tmp16_; - ExporterUI* _tmp17_; - GError * _inner_error_ = NULL; -#line 265 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (GEE_IS_COLLECTION (photos)); -#line 267 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = desktop_integration_desktop_slideshow_exporter; -#line 267 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (_tmp0_ != NULL) { -#line 268 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 2643 "DesktopIntegration.c" - } -#line 270 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_set_desktop_background = desktop_background; -#line 271 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_set_screensaver = screensaver; -#line 273 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = app_dirs_get_data_subdir ("wallpaper", NULL); -#line 273 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - wallpaper_dir = _tmp1_; -#line 275 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 275 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - exceptions = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_SET, GeeSet); -#line 276 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp3_ = exceptions; -#line 276 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection), DESKTOP_INTEGRATION_DESKTOP_SLIDESHOW_XML_FILENAME); -#line 2661 "DesktopIntegration.c" - { - GFile* _tmp4_; - GeeSet* _tmp5_; -#line 278 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp4_ = wallpaper_dir; -#line 278 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp5_ = exceptions; -#line 278 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - delete_all_files (_tmp4_, _tmp5_, NULL, NULL, (guint64) 0, NULL, &_inner_error_); -#line 278 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2673 "DesktopIntegration.c" - goto __catch579_g_error; - } - } - goto __finally579; - __catch579_g_error: - { - GError* err = NULL; - GError* _tmp6_; - const gchar* _tmp7_; -#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - err = _inner_error_; -#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _inner_error_ = NULL; -#line 280 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp6_ = err; -#line 280 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp7_ = _tmp6_->message; -#line 280 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_warning ("DesktopIntegration.vala:280: Error attempting to clear wallpaper direc" \ -"tory: %s", _tmp7_); -#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_error_free0 (err); -#line 2695 "DesktopIntegration.c" - } - __finally579: -#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (exceptions); -#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (wallpaper_dir); -#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_clear_error (&_inner_error_); -#line 277 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 2710 "DesktopIntegration.c" - } -#line 283 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_desktop_slideshow_duration = duration; -#line 284 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_desktop_slideshow_transition = transition; -#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp8_ = wallpaper_dir; -#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp9_ = app_window_get_instance (); -#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp10_ = _tmp9_; -#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - scaling_to_fill_screen (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_window_get_type (), GtkWindow), &_tmp11_); -#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - export_format_parameters_current (&_tmp12_); -#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp13_ = exporter_new (photos, _tmp8_, &_tmp11_, &_tmp12_, TRUE); -#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp14_ = _tmp13_; -#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp10_); -#line 286 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - exporter = _tmp14_; -#line 289 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp15_ = exporter; -#line 289 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp16_ = exporter_ui_new (_tmp15_); -#line 289 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _exporter_ui_unref0 (desktop_integration_desktop_slideshow_exporter); -#line 289 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_desktop_slideshow_exporter = _tmp16_; -#line 290 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp17_ = desktop_integration_desktop_slideshow_exporter; -#line 290 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - exporter_ui_export (_tmp17_, _desktop_integration_on_desktop_slideshow_exported_exporter_completion_callback, NULL); -#line 265 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (exporter); -#line 265 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (exceptions); -#line 265 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (wallpaper_dir); -#line 2752 "DesktopIntegration.c" -} - - -void -desktop_integration_on_desktop_slideshow_exported (Exporter* exporter, - gboolean is_cancelled) -{ - GFile* xml_file = NULL; - DesktopIntegrationBackgroundSlideshowXMLBuilder* xml_builder = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - gdouble _tmp4_; - gdouble _tmp5_; - DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp6_; - DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp7_; - gboolean _tmp22_; - gboolean _tmp28_; - GError * _inner_error_ = NULL; -#line 293 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_return_if_fail (IS_EXPORTER (exporter)); -#line 294 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _exporter_ui_unref0 (desktop_integration_desktop_slideshow_exporter); -#line 294 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_desktop_slideshow_exporter = NULL; -#line 296 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (is_cancelled) { -#line 297 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 2783 "DesktopIntegration.c" - } -#line 299 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - xml_file = NULL; -#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp0_ = app_dirs_get_data_subdir ("wallpaper", NULL); -#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp1_ = _tmp0_; -#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp2_ = g_file_get_child (_tmp1_, DESKTOP_INTEGRATION_DESKTOP_SLIDESHOW_XML_FILENAME); -#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp3_ = _tmp2_; -#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp4_ = desktop_integration_desktop_slideshow_duration; -#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp5_ = desktop_integration_desktop_slideshow_transition; -#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp6_ = desktop_integration_background_slideshow_xml_builder_new (_tmp3_, _tmp4_, _tmp5_); -#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp7_ = _tmp6_; -#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp3_); -#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp1_); -#line 300 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - xml_builder = _tmp7_; -#line 2809 "DesktopIntegration.c" - { - DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp8_; - gint _tmp9_; - GFile** _tmp10_; - GFile* _tmp14_ = NULL; - DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp15_; - GFile* _tmp16_; - GFile* _tmp17_; -#line 304 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp8_ = xml_builder; -#line 304 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_background_slideshow_xml_builder_open (_tmp8_, &_inner_error_); -#line 304 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2824 "DesktopIntegration.c" - goto __catch580_g_error; - } -#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp10_ = exporter_get_exported_files (exporter, &_tmp9_); -#line 2829 "DesktopIntegration.c" - { - GFile** file_collection = NULL; - gint file_collection_length1 = 0; - gint _file_collection_size_ = 0; - gint file_it = 0; -#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - file_collection = _tmp10_; -#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - file_collection_length1 = _tmp9_; -#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - for (file_it = 0; file_it < _tmp9_; file_it = file_it + 1) { -#line 2841 "DesktopIntegration.c" - GFile* _tmp11_; - GFile* file = NULL; -#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp11_ = _g_object_ref0 (file_collection[file_it]); -#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - file = _tmp11_; -#line 2848 "DesktopIntegration.c" - { - DesktopIntegrationBackgroundSlideshowXMLBuilder* _tmp12_; - GFile* _tmp13_; -#line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp12_ = xml_builder; -#line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp13_ = file; -#line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - desktop_integration_background_slideshow_xml_builder_add_photo (_tmp12_, _tmp13_, &_inner_error_); -#line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (file); -#line 307 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - file_collection = (_vala_array_free (file_collection, file_collection_length1, (GDestroyNotify) g_object_unref), NULL); -#line 2864 "DesktopIntegration.c" - goto __catch580_g_error; - } -#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (file); -#line 2869 "DesktopIntegration.c" - } - } -#line 306 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - file_collection = (_vala_array_free (file_collection, file_collection_length1, (GDestroyNotify) g_object_unref), NULL); -#line 2874 "DesktopIntegration.c" - } -#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp15_ = xml_builder; -#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp16_ = desktop_integration_background_slideshow_xml_builder_close (_tmp15_, &_inner_error_); -#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp14_ = _tmp16_; -#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2884 "DesktopIntegration.c" - goto __catch580_g_error; - } -#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp17_ = _tmp14_; -#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp14_ = NULL; -#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (xml_file); -#line 309 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - xml_file = _tmp17_; -#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp14_); -#line 2897 "DesktopIntegration.c" - } - goto __finally580; - __catch580_g_error: - { - GError* err = NULL; - GError* _tmp18_; - const gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; -#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - err = _inner_error_; -#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _inner_error_ = NULL; -#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp18_ = err; -#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp19_ = _tmp18_->message; -#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp20_ = g_strdup_printf (_ ("Unable to prepare desktop slideshow: %s"), _tmp19_); -#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp21_ = _tmp20_; -#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - app_window_error_message (_tmp21_, NULL); -#line 311 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp21_); -#line 314 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_error_free0 (err); -#line 314 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _desktop_integration_background_slideshow_xml_builder_unref0 (xml_builder); -#line 314 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (xml_file); -#line 314 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 2931 "DesktopIntegration.c" - } - __finally580: -#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _desktop_integration_background_slideshow_xml_builder_unref0 (xml_builder); -#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (xml_file); -#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - g_clear_error (&_inner_error_); -#line 303 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - return; -#line 2946 "DesktopIntegration.c" - } -#line 317 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp22_ = desktop_integration_set_desktop_background; -#line 317 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (_tmp22_) { -#line 2952 "DesktopIntegration.c" - ConfigFacade* _tmp23_; - ConfigFacade* _tmp24_; - GFile* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; -#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp23_ = config_facade_get_instance (); -#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp24_ = _tmp23_; -#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp25_ = xml_file; -#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp26_ = g_file_get_path (_tmp25_); -#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp27_ = _tmp26_; -#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - configuration_facade_set_desktop_background (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp27_); -#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp27_); -#line 318 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp24_); -#line 2974 "DesktopIntegration.c" - } -#line 320 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp28_ = desktop_integration_set_screensaver; -#line 320 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - if (_tmp28_) { -#line 2980 "DesktopIntegration.c" - ConfigFacade* _tmp29_; - ConfigFacade* _tmp30_; - GFile* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; -#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp29_ = config_facade_get_instance (); -#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp30_ = _tmp29_; -#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp31_ = xml_file; -#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp32_ = g_file_get_path (_tmp31_); -#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _tmp33_ = _tmp32_; -#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - configuration_facade_set_screensaver (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp33_); -#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_free0 (_tmp33_); -#line 321 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (_tmp30_); -#line 3002 "DesktopIntegration.c" - } -#line 293 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _desktop_integration_background_slideshow_xml_builder_unref0 (xml_builder); -#line 293 "/home/jens/Source/shotwell/src/DesktopIntegration.vala" - _g_object_unref0 (xml_file); -#line 3008 "DesktopIntegration.c" -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/Dialogs.c b/src/Dialogs.c deleted file mode 100644 index ae9723a..0000000 --- a/src/Dialogs.c +++ /dev/null @@ -1,9032 +0,0 @@ -/* Dialogs.c generated by valac 0.40.4, the Vala compiler - * generated from Dialogs.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/* namespace for future migration of AppWindow alert and other question dialogs into single*/ -/* place: http://trac.yorba.org/ticket/3452*/ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_SAVED_SEARCH (saved_search_get_type ()) -#define SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH, SavedSearch)) -#define SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH, SavedSearchClass)) -#define IS_SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH)) -#define IS_SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH)) -#define SAVED_SEARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH, SavedSearchClass)) - -typedef struct _SavedSearch SavedSearch; -typedef struct _SavedSearchClass SavedSearchClass; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_BATCH_IMPORT_RESULT (batch_import_result_get_type ()) -#define BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResult)) -#define BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass)) -#define IS_BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_RESULT)) -#define IS_BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_RESULT)) -#define BATCH_IMPORT_RESULT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass)) - -typedef struct _BatchImportResult BatchImportResult; -typedef struct _BatchImportResultClass BatchImportResultClass; -typedef struct _BatchImportResultPrivate BatchImportResultPrivate; - -#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ()) -#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob)) -#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass)) -#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB)) -#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB)) -#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass)) - -typedef struct _BatchImportJob BatchImportJob; -typedef struct _BatchImportJobClass BatchImportJobClass; - -#define TYPE_IMPORT_RESULT (import_result_get_type ()) - -#define TYPE_DUPLICATED_FILE (duplicated_file_get_type ()) -#define DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATED_FILE, DuplicatedFile)) -#define DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATED_FILE, DuplicatedFileClass)) -#define IS_DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATED_FILE)) -#define IS_DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATED_FILE)) -#define DUPLICATED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATED_FILE, DuplicatedFileClass)) - -typedef struct _DuplicatedFile DuplicatedFile; -typedef struct _DuplicatedFileClass DuplicatedFileClass; -#define _batch_import_result_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_result_unref (var), NULL))) - -#define IMPORT_UI_TYPE_QUESTION_PARAMS (import_ui_question_params_get_type ()) -#define IMPORT_UI_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParams)) -#define IMPORT_UI_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass)) -#define IMPORT_UI_IS_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS)) -#define IMPORT_UI_IS_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS)) -#define IMPORT_UI_QUESTION_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass)) - -typedef struct _ImportUIQuestionParams ImportUIQuestionParams; -typedef struct _ImportUIQuestionParamsClass ImportUIQuestionParamsClass; -typedef struct _ImportUIQuestionParamsPrivate ImportUIQuestionParamsPrivate; -typedef struct _ImportUIParamSpecQuestionParams ImportUIParamSpecQuestionParams; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_IMPORT_MANIFEST (import_manifest_get_type ()) -#define IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_MANIFEST, ImportManifest)) -#define IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_MANIFEST, ImportManifestClass)) -#define IS_IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_MANIFEST)) -#define IS_IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_MANIFEST)) -#define IMPORT_MANIFEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_MANIFEST, ImportManifestClass)) - -typedef struct _ImportManifest ImportManifest; -typedef struct _ImportManifestClass ImportManifestClass; -typedef struct _ImportManifestPrivate ImportManifestPrivate; -#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_TEXT_ENTRY_DIALOG_MEDIATOR (text_entry_dialog_mediator_get_type ()) -#define TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator)) -#define TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass)) -#define IS_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define IS_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass)) - -typedef struct _TextEntryDialogMediator TextEntryDialogMediator; -typedef struct _TextEntryDialogMediatorClass TextEntryDialogMediatorClass; -typedef struct _TextEntryDialogMediatorPrivate TextEntryDialogMediatorPrivate; - -#define TYPE_TEXT_ENTRY_DIALOG (text_entry_dialog_get_type ()) -#define TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialog)) -#define TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialogClass)) -#define IS_TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ENTRY_DIALOG)) -#define IS_TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ENTRY_DIALOG)) -#define TEXT_ENTRY_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialogClass)) - -typedef struct _TextEntryDialog TextEntryDialog; -typedef struct _TextEntryDialogClass TextEntryDialogClass; -typedef struct _ParamSpecTextEntryDialogMediator ParamSpecTextEntryDialogMediator; - -#define TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR (multi_text_entry_dialog_mediator_get_type ()) -#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediator)) -#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass)) -#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass)) - -typedef struct _MultiTextEntryDialogMediator MultiTextEntryDialogMediator; -typedef struct _MultiTextEntryDialogMediatorClass MultiTextEntryDialogMediatorClass; -typedef struct _MultiTextEntryDialogMediatorPrivate MultiTextEntryDialogMediatorPrivate; - -#define TYPE_MULTI_TEXT_ENTRY_DIALOG (multi_text_entry_dialog_get_type ()) -#define MULTI_TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG, MultiTextEntryDialog)) -#define MULTI_TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG, MultiTextEntryDialogClass)) -#define IS_MULTI_TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG)) -#define IS_MULTI_TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG)) -#define MULTI_TEXT_ENTRY_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG, MultiTextEntryDialogClass)) - -typedef struct _MultiTextEntryDialog MultiTextEntryDialog; -typedef struct _MultiTextEntryDialogClass MultiTextEntryDialogClass; -typedef struct _ParamSpecMultiTextEntryDialogMediator ParamSpecMultiTextEntryDialogMediator; - -#define TYPE_EVENT_RENAME_DIALOG (event_rename_dialog_get_type ()) -#define EVENT_RENAME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_RENAME_DIALOG, EventRenameDialog)) -#define EVENT_RENAME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_RENAME_DIALOG, EventRenameDialogClass)) -#define IS_EVENT_RENAME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_RENAME_DIALOG)) -#define IS_EVENT_RENAME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_RENAME_DIALOG)) -#define EVENT_RENAME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_RENAME_DIALOG, EventRenameDialogClass)) - -typedef struct _EventRenameDialog EventRenameDialog; -typedef struct _EventRenameDialogClass EventRenameDialogClass; -typedef struct _EventRenameDialogPrivate EventRenameDialogPrivate; - -#define TYPE_EDIT_TITLE_DIALOG (edit_title_dialog_get_type ()) -#define EDIT_TITLE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_TITLE_DIALOG, EditTitleDialog)) -#define EDIT_TITLE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_TITLE_DIALOG, EditTitleDialogClass)) -#define IS_EDIT_TITLE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_TITLE_DIALOG)) -#define IS_EDIT_TITLE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_TITLE_DIALOG)) -#define EDIT_TITLE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_TITLE_DIALOG, EditTitleDialogClass)) - -typedef struct _EditTitleDialog EditTitleDialog; -typedef struct _EditTitleDialogClass EditTitleDialogClass; -typedef struct _EditTitleDialogPrivate EditTitleDialogPrivate; - -#define TYPE_EDIT_COMMENT_DIALOG (edit_comment_dialog_get_type ()) -#define EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialog)) -#define EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass)) -#define IS_EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_COMMENT_DIALOG)) -#define IS_EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_COMMENT_DIALOG)) -#define EDIT_COMMENT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass)) - -typedef struct _EditCommentDialog EditCommentDialog; -typedef struct _EditCommentDialogClass EditCommentDialogClass; -typedef struct _EditCommentDialogPrivate EditCommentDialogPrivate; - -#define TYPE_TAGS_DIALOG (tags_dialog_get_type ()) -#define TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAGS_DIALOG, TagsDialog)) -#define TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAGS_DIALOG, TagsDialogClass)) -#define IS_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAGS_DIALOG)) -#define IS_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAGS_DIALOG)) -#define TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAGS_DIALOG, TagsDialogClass)) - -typedef struct _TagsDialog TagsDialog; -typedef struct _TagsDialogClass TagsDialogClass; -typedef struct _TagsDialogPrivate TagsDialogPrivate; - -#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ()) -#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex)) -#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) -#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX)) -#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX)) -#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) - -typedef struct _HierarchicalTagIndex HierarchicalTagIndex; -typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass; -#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL))) - -#define TYPE_ADD_TAGS_DIALOG (add_tags_dialog_get_type ()) -#define ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialog)) -#define ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass)) -#define IS_ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_DIALOG)) -#define IS_ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_DIALOG)) -#define ADD_TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass)) - -typedef struct _AddTagsDialog AddTagsDialog; -typedef struct _AddTagsDialogClass AddTagsDialogClass; -typedef struct _AddTagsDialogPrivate AddTagsDialogPrivate; - -#define TYPE_MODIFY_TAGS_DIALOG (modify_tags_dialog_get_type ()) -#define MODIFY_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialog)) -#define MODIFY_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialogClass)) -#define IS_MODIFY_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MODIFY_TAGS_DIALOG)) -#define IS_MODIFY_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MODIFY_TAGS_DIALOG)) -#define MODIFY_TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialogClass)) - -typedef struct _ModifyTagsDialog ModifyTagsDialog; -typedef struct _ModifyTagsDialogClass ModifyTagsDialogClass; -typedef struct _ModifyTagsDialogPrivate ModifyTagsDialogPrivate; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ()) -#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection)) -#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) -#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION)) -#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION)) -#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) - -typedef struct _TagSourceCollection TagSourceCollection; -typedef struct _TagSourceCollectionClass TagSourceCollectionClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; - -#define TYPE_PROGRESS_DIALOG (progress_dialog_get_type ()) -#define PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROGRESS_DIALOG, ProgressDialog)) -#define PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PROGRESS_DIALOG, ProgressDialogClass)) -#define IS_PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROGRESS_DIALOG)) -#define IS_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROGRESS_DIALOG)) -#define PROGRESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROGRESS_DIALOG, ProgressDialogClass)) - -typedef struct _ProgressDialog ProgressDialog; -typedef struct _ProgressDialogClass ProgressDialogClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ()) -#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) - -typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; -typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; - -#define TYPE_VIDEO_SOURCE_COLLECTION (video_source_collection_get_type ()) -#define VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection)) -#define VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) -#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION)) -#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION)) -#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) - -typedef struct _VideoSourceCollection VideoSourceCollection; -typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef enum { - IMPORT_RESULT_SUCCESS, - IMPORT_RESULT_FILE_ERROR, - IMPORT_RESULT_DECODE_ERROR, - IMPORT_RESULT_DATABASE_ERROR, - IMPORT_RESULT_USER_ABORT, - IMPORT_RESULT_NOT_A_FILE, - IMPORT_RESULT_PHOTO_EXISTS, - IMPORT_RESULT_UNSUPPORTED_FORMAT, - IMPORT_RESULT_NOT_AN_IMAGE, - IMPORT_RESULT_DISK_FAILURE, - IMPORT_RESULT_DISK_FULL, - IMPORT_RESULT_CAMERA_ERROR, - IMPORT_RESULT_FILE_WRITE_ERROR, - IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE -} ImportResult; - -struct _BatchImportResult { - GTypeInstance parent_instance; - volatile int ref_count; - BatchImportResultPrivate * priv; - BatchImportJob* job; - GFile* file; - gchar* src_identifier; - gchar* dest_identifier; - ImportResult result; - gchar* errmsg; - DuplicatedFile* duplicate_of; -}; - -struct _BatchImportResultClass { - GTypeClass parent_class; - void (*finalize) (BatchImportResult *self); -}; - -struct _ImportUIQuestionParams { - GTypeInstance parent_instance; - volatile int ref_count; - ImportUIQuestionParamsPrivate * priv; - gchar* question; - gchar* yes_button; - gchar* no_button; -}; - -struct _ImportUIQuestionParamsClass { - GTypeClass parent_class; - void (*finalize) (ImportUIQuestionParams *self); -}; - -struct _ImportUIParamSpecQuestionParams { - GParamSpec parent_instance; -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _ImportManifest { - GTypeInstance parent_instance; - volatile int ref_count; - ImportManifestPrivate * priv; - GeeList* imported; - GeeList* success; - GeeList* camera_failed; - GeeList* failed; - GeeList* write_failed; - GeeList* skipped_photos; - GeeList* skipped_files; - GeeList* aborted; - GeeList* already_imported; - GeeList* corrupt_files; - GeeList* all; - GTimer* timer; -}; - -struct _ImportManifestClass { - GTypeClass parent_class; - void (*finalize) (ImportManifest *self); -}; - -struct _TextEntryDialogMediator { - GTypeInstance parent_instance; - volatile int ref_count; - TextEntryDialogMediatorPrivate * priv; -}; - -struct _TextEntryDialogMediatorClass { - GTypeClass parent_class; - void (*finalize) (TextEntryDialogMediator *self); - gboolean (*on_modify_validate) (TextEntryDialogMediator* self, const gchar* text); -}; - -struct _TextEntryDialogMediatorPrivate { - TextEntryDialog* dialog; -}; - -typedef gboolean (*TextEntryDialogOnModifyValidateType) (const gchar* text, void* user_data); -struct _ParamSpecTextEntryDialogMediator { - GParamSpec parent_instance; -}; - -struct _MultiTextEntryDialogMediator { - GTypeInstance parent_instance; - volatile int ref_count; - MultiTextEntryDialogMediatorPrivate * priv; -}; - -struct _MultiTextEntryDialogMediatorClass { - GTypeClass parent_class; - void (*finalize) (MultiTextEntryDialogMediator *self); - gboolean (*on_modify_validate) (MultiTextEntryDialogMediator* self, const gchar* text); -}; - -struct _MultiTextEntryDialogMediatorPrivate { - MultiTextEntryDialog* dialog; -}; - -typedef gboolean (*MultiTextEntryDialogOnModifyValidateType) (const gchar* text, void* user_data); -struct _ParamSpecMultiTextEntryDialogMediator { - GParamSpec parent_instance; -}; - -struct _EventRenameDialog { - TextEntryDialogMediator parent_instance; - EventRenameDialogPrivate * priv; -}; - -struct _EventRenameDialogClass { - TextEntryDialogMediatorClass parent_class; - gchar* (*execute) (EventRenameDialog* self); -}; - -struct _EditTitleDialog { - TextEntryDialogMediator parent_instance; - EditTitleDialogPrivate * priv; -}; - -struct _EditTitleDialogClass { - TextEntryDialogMediatorClass parent_class; - gchar* (*execute) (EditTitleDialog* self); -}; - -struct _EditCommentDialog { - MultiTextEntryDialogMediator parent_instance; - EditCommentDialogPrivate * priv; -}; - -struct _EditCommentDialogClass { - MultiTextEntryDialogMediatorClass parent_class; - gchar* (*execute) (EditCommentDialog* self); -}; - -struct _TagsDialog { - TextEntryDialogMediator parent_instance; - TagsDialogPrivate * priv; -}; - -struct _TagsDialogClass { - TextEntryDialogMediatorClass parent_class; -}; - -struct _AddTagsDialog { - TagsDialog parent_instance; - AddTagsDialogPrivate * priv; -}; - -struct _AddTagsDialogClass { - TagsDialogClass parent_class; -}; - -struct _ModifyTagsDialog { - TagsDialog parent_instance; - ModifyTagsDialogPrivate * priv; -}; - -struct _ModifyTagsDialogClass { - TagsDialogClass parent_class; -}; - -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); - -extern GFile* export_ui_current_export_dir; -GFile* export_ui_current_export_dir = NULL; -static gpointer import_ui_question_params_parent_class = NULL; -static gpointer text_entry_dialog_mediator_parent_class = NULL; -static gpointer multi_text_entry_dialog_mediator_parent_class = NULL; -static gpointer event_rename_dialog_parent_class = NULL; -static gpointer edit_title_dialog_parent_class = NULL; -static gpointer edit_comment_dialog_parent_class = NULL; -static gpointer tags_dialog_parent_class = NULL; -static gpointer add_tags_dialog_parent_class = NULL; -static gpointer modify_tags_dialog_parent_class = NULL; -extern TagSourceCollection* tag_global; -extern LibraryPhotoSourceCollection* library_photo_global; -extern VideoSourceCollection* video_global; - -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType tag_get_type (void) G_GNUC_CONST; -gboolean dialogs_confirm_delete_tag (Tag* tag); -gint tag_get_sources_count (Tag* self); -gchar* tag_get_user_visible_name (Tag* self); -gboolean app_window_negate_affirm_question (const gchar* message, - const gchar* negative, - const gchar* affirmative, - const gchar* title, - GtkWindow* parent); -#define RESOURCES_DELETE_TAG_TITLE _ ("Delete Tag") -GType saved_search_get_type (void) G_GNUC_CONST; -gboolean dialogs_confirm_delete_saved_search (SavedSearch* search); -gchar* data_object_get_name (DataObject* self); -#define RESOURCES_DELETE_SAVED_SEARCH_DIALOG_TITLE _ ("Delete Search") -gboolean dialogs_confirm_warn_developer_changed (gint number); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -#define RESOURCES_CANCEL_LABEL _ ("_Cancel") -GFile* export_ui_choose_file (const gchar* current_file_basename); -gboolean video_reader_is_supported_video_filename (const gchar* filename); -#define RESOURCES_SAVE_LABEL _ ("_Save") -GFile* export_ui_choose_dir (const gchar* user_title); -#define RESOURCES_OK_LABEL _ ("_OK") -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -void open_external_editor_error_dialog (GError* err, - Photo* photo); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -GFile* media_source_get_master_file (MediaSource* self); -gchar* resources_launch_editor_failed (GError* err); -GtkResponseType export_error_dialog (GFile* dest, - gboolean photos_remaining); -GtkResponseType app_window_affirm_cancel_question (const gchar* message, - const gchar* affirmative, - const gchar* title, - GtkWindow* parent); -#define IMPORT_UI_REPORT_FAILURE_COUNT 4 -#define IMPORT_UI_SAVE_RESULTS_BUTTON_NAME _ ("Save Details…") -#define IMPORT_UI_SAVE_RESULTS_FILE_CHOOSER_TITLE _ ("Save Details") -#define IMPORT_UI_SAVE_RESULTS_RESPONSE_ID 1024 -gpointer batch_import_result_ref (gpointer instance); -void batch_import_result_unref (gpointer instance); -GParamSpec* param_spec_batch_import_result (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_result (GValue* value, - gpointer v_object); -void value_take_batch_import_result (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_result (const GValue* value); -GType batch_import_result_get_type (void) G_GNUC_CONST; -gchar* import_ui_generate_import_failure_list (GeeList* failed, - gboolean show_dest_id); -gpointer batch_import_job_ref (gpointer instance); -void batch_import_job_unref (gpointer instance); -GParamSpec* param_spec_batch_import_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_job (GValue* value, - gpointer v_object); -void value_take_batch_import_job (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_job (const GValue* value); -GType batch_import_job_get_type (void) G_GNUC_CONST; -GType import_result_get_type (void) G_GNUC_CONST; -GType duplicated_file_get_type (void) G_GNUC_CONST; -gpointer import_ui_question_params_ref (gpointer instance); -void import_ui_question_params_unref (gpointer instance); -GParamSpec* import_ui_param_spec_question_params (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void import_ui_value_set_question_params (GValue* value, - gpointer v_object); -void import_ui_value_take_question_params (GValue* value, - gpointer v_object); -gpointer import_ui_value_get_question_params (const GValue* value); -GType import_ui_question_params_get_type (void) G_GNUC_CONST; -ImportUIQuestionParams* import_ui_question_params_new (const gchar* question, - const gchar* yes_button, - const gchar* no_button); -ImportUIQuestionParams* import_ui_question_params_construct (GType object_type, - const gchar* question, - const gchar* yes_button, - const gchar* no_button); -static void import_ui_question_params_finalize (ImportUIQuestionParams * obj); -gboolean import_ui_import_has_photos (GeeCollection* import_collection); -GType photo_file_format_get_type (void) G_GNUC_CONST; -PhotoFileFormat photo_file_format_get_by_file_extension (GFile* file); -gboolean import_ui_import_has_videos (GeeCollection* import_collection); -gboolean video_reader_is_supported_video_file (GFile* file); -gchar* import_ui_get_media_specific_string (GeeCollection* import_collection, - const gchar* photos_msg, - const gchar* videos_msg, - const gchar* both_msg, - const gchar* neither_msg); -gpointer import_manifest_ref (gpointer instance); -void import_manifest_unref (gpointer instance); -GParamSpec* param_spec_import_manifest (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_import_manifest (GValue* value, - gpointer v_object); -void value_take_import_manifest (GValue* value, - gpointer v_object); -gpointer value_get_import_manifest (const GValue* value); -GType import_manifest_get_type (void) G_GNUC_CONST; -gchar* import_ui_create_result_report_from_manifest (ImportManifest* manifest); -#define RESOURCES_APP_VERSION _VERSION -GFile* duplicated_file_get_file (DuplicatedFile* self); -gboolean import_ui_report_manifest (ImportManifest* manifest, - gboolean show_dest_id, - ImportUIQuestionParams* question); -void import_ui_save_import_results (GtkWindow* chooser_dialog_parent, - const gchar* results_log); -#define RESOURCES_SAVE_AS_LABEL _ ("Save _As") -gpointer text_entry_dialog_mediator_ref (gpointer instance); -void text_entry_dialog_mediator_unref (gpointer instance); -GParamSpec* param_spec_text_entry_dialog_mediator (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -void value_take_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -gpointer value_get_text_entry_dialog_mediator (const GValue* value); -GType text_entry_dialog_mediator_get_type (void) G_GNUC_CONST; -GType text_entry_dialog_get_type (void) G_GNUC_CONST; -#define TEXT_ENTRY_DIALOG_MEDIATOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorPrivate)) -TextEntryDialogMediator* text_entry_dialog_mediator_construct (GType object_type, - const gchar* title, - const gchar* label, - const gchar* initial_text, - GeeCollection* completion_list, - const gchar* completion_delimiter); -TextEntryDialog* text_entry_dialog_new (void); -TextEntryDialog* text_entry_dialog_construct (GType object_type); -void text_entry_dialog_setup (TextEntryDialog* self, - TextEntryDialogOnModifyValidateType modify_validate, - void* modify_validate_target, - const gchar* title, - const gchar* label, - const gchar* initial_text, - GeeCollection* completion_list, - const gchar* completion_delimiter); -gboolean text_entry_dialog_mediator_on_modify_validate (TextEntryDialogMediator* self, - const gchar* text); -static gboolean _text_entry_dialog_mediator_on_modify_validate_text_entry_dialog_on_modify_validate_type (const gchar* text, - gpointer self); -static gboolean text_entry_dialog_mediator_real_on_modify_validate (TextEntryDialogMediator* self, - const gchar* text); -gchar* _text_entry_dialog_mediator_execute (TextEntryDialogMediator* self); -gchar* text_entry_dialog_execute (TextEntryDialog* self); -static void text_entry_dialog_mediator_finalize (TextEntryDialogMediator * obj); -gpointer multi_text_entry_dialog_mediator_ref (gpointer instance); -void multi_text_entry_dialog_mediator_unref (gpointer instance); -GParamSpec* param_spec_multi_text_entry_dialog_mediator (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_multi_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -void value_take_multi_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -gpointer value_get_multi_text_entry_dialog_mediator (const GValue* value); -GType multi_text_entry_dialog_mediator_get_type (void) G_GNUC_CONST; -GType multi_text_entry_dialog_get_type (void) G_GNUC_CONST; -#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorPrivate)) -MultiTextEntryDialogMediator* multi_text_entry_dialog_mediator_construct (GType object_type, - const gchar* title, - const gchar* label, - const gchar* initial_text); -MultiTextEntryDialog* multi_text_entry_dialog_new (void); -MultiTextEntryDialog* multi_text_entry_dialog_construct (GType object_type); -void multi_text_entry_dialog_setup (MultiTextEntryDialog* self, - MultiTextEntryDialogOnModifyValidateType modify_validate, - void* modify_validate_target, - const gchar* title, - const gchar* label, - const gchar* initial_text); -gboolean multi_text_entry_dialog_mediator_on_modify_validate (MultiTextEntryDialogMediator* self, - const gchar* text); -static gboolean _multi_text_entry_dialog_mediator_on_modify_validate_multi_text_entry_dialog_on_modify_validate_type (const gchar* text, - gpointer self); -static gboolean multi_text_entry_dialog_mediator_real_on_modify_validate (MultiTextEntryDialogMediator* self, - const gchar* text); -gchar* _multi_text_entry_dialog_mediator_execute (MultiTextEntryDialogMediator* self); -gchar* multi_text_entry_dialog_execute (MultiTextEntryDialog* self); -static void multi_text_entry_dialog_mediator_finalize (MultiTextEntryDialogMediator * obj); -gchar* build_alert_body_text (const gchar* primary_text, - const gchar* secondary_text, - gboolean should_escape); -gchar* guarded_markup_escape_text (const gchar* plain); -GType event_rename_dialog_get_type (void) G_GNUC_CONST; -EventRenameDialog* event_rename_dialog_new (const gchar* event_name); -EventRenameDialog* event_rename_dialog_construct (GType object_type, - const gchar* event_name); -gchar* event_rename_dialog_execute (EventRenameDialog* self); -static gchar* event_rename_dialog_real_execute (EventRenameDialog* self); -gchar* event_prep_event_name (const gchar* name); -GType edit_title_dialog_get_type (void) G_GNUC_CONST; -EditTitleDialog* edit_title_dialog_new (const gchar* photo_title); -EditTitleDialog* edit_title_dialog_construct (GType object_type, - const gchar* photo_title); -gchar* edit_title_dialog_execute (EditTitleDialog* self); -static gchar* edit_title_dialog_real_execute (EditTitleDialog* self); -gchar* media_source_prep_title (const gchar* title); -static gboolean edit_title_dialog_real_on_modify_validate (TextEntryDialogMediator* base, - const gchar* text); -GType edit_comment_dialog_get_type (void) G_GNUC_CONST; -EditCommentDialog* edit_comment_dialog_new (const gchar* comment, - gboolean is_event); -EditCommentDialog* edit_comment_dialog_construct (GType object_type, - const gchar* comment, - gboolean is_event); -gchar* edit_comment_dialog_execute (EditCommentDialog* self); -static gchar* edit_comment_dialog_real_execute (EditCommentDialog* self); -gchar* media_source_prep_comment (const gchar* comment); -static gboolean edit_comment_dialog_real_on_modify_validate (MultiTextEntryDialogMediator* base, - const gchar* text); -GtkResponseType remove_from_library_dialog (GtkWindow* owner, - const gchar* title, - const gchar* user_message, - gint count); -GtkResponseType remove_from_filesystem_dialog (GtkWindow* owner, - const gchar* title, - const gchar* user_message); -gboolean revert_editable_dialog (GtkWindow* owner, - GeeCollection* photos); -gboolean photo_has_editable (Photo* self); -gboolean remove_offline_dialog (GtkWindow* owner, - gint count); -#define MAX_OBJECTS_DISPLAYED 3 -void multiple_object_error_dialog (GeeArrayList* objects, - const gchar* message, - const gchar* title); -gchar* data_object_to_string (DataObject* self); -GType tags_dialog_get_type (void) G_GNUC_CONST; -TagsDialog* tags_dialog_construct (GType object_type, - const gchar* title, - const gchar* label, - const gchar* initial_text); -gpointer hierarchical_tag_index_ref (gpointer instance); -void hierarchical_tag_index_unref (gpointer instance); -GParamSpec* param_spec_hierarchical_tag_index (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_hierarchical_tag_index (GValue* value, - gpointer v_object); -void value_take_hierarchical_tag_index (GValue* value, - gpointer v_object); -gpointer value_get_hierarchical_tag_index (const GValue* value); -GType hierarchical_tag_index_get_type (void) G_GNUC_CONST; -HierarchicalTagIndex* hierarchical_tag_index_get_global_index (void); -GeeCollection* hierarchical_tag_index_get_all_tags (HierarchicalTagIndex* self); -GType add_tags_dialog_get_type (void) G_GNUC_CONST; -AddTagsDialog* add_tags_dialog_new (void); -AddTagsDialog* add_tags_dialog_construct (GType object_type); -#define RESOURCES_ADD_TAGS_TITLE NC_ ("Dialog Title", "Add Tags") -gchar** add_tags_dialog_execute (AddTagsDialog* self, - int* result_length1); -gchar** tag_prep_tag_names (gchar** names, - int names_length1, - int* result_length1); -static gboolean add_tags_dialog_real_on_modify_validate (TextEntryDialogMediator* base, - const gchar* text); -#define TAG_PATH_SEPARATOR_STRING "/" -GType modify_tags_dialog_get_type (void) G_GNUC_CONST; -ModifyTagsDialog* modify_tags_dialog_new (MediaSource* source); -ModifyTagsDialog* modify_tags_dialog_construct (GType object_type, - MediaSource* source); -#define RESOURCES_MODIFY_TAGS_LABEL _ ("Modify Tags") -static gchar* modify_tags_dialog_get_initial_text (MediaSource* source); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType tag_source_collection_get_type (void) G_GNUC_CONST; -GeeList* tag_source_collection_fetch_for_source (TagSourceCollection* self, - MediaSource* source); -GeeCollection* tag_get_terminal_tags (GeeCollection* tags); -gchar* hierarchical_tag_utilities_get_basename (const gchar* in_path); -gchar* tag_get_path (Tag* self); -GeeArrayList* modify_tags_dialog_execute (ModifyTagsDialog* self); -gboolean is_string_empty (const gchar* s); -gchar** hierarchical_tag_index_get_paths_for_names_array (HierarchicalTagIndex* self, - gchar** names, - int names_length1, - int* result_length1); -Tag* tag_for_path (const gchar* name); -static gboolean modify_tags_dialog_real_on_modify_validate (TextEntryDialogMediator* base, - const gchar* text); -GtkResponseType copy_files_dialog (void); -GType library_photo_get_type (void) G_GNUC_CONST; -void remove_photos_from_library (GeeCollection* photos); -void remove_from_app (GeeCollection* sources, - const gchar* dialog_title, - const gchar* progress_dialog_text); -GType video_source_get_type (void) G_GNUC_CONST; -GType video_get_type (void) G_GNUC_CONST; -void media_source_collection_filter_media (GeeCollection* media, - GeeCollection* photos, - GeeCollection* videos); -void page_window_set_busy_cursor (PageWindow* self); -GType progress_dialog_get_type (void) G_GNUC_CONST; -ProgressDialog* progress_dialog_new (GtkWindow* owner, - const gchar* text, - GCancellable* cancellable); -ProgressDialog* progress_dialog_construct (GType object_type, - GtkWindow* owner, - const gchar* text, - GCancellable* cancellable); -gboolean progress_dialog_monitor (ProgressDialog* self, - guint64 count, - guint64 total, - gboolean do_event_loop); -static gboolean _progress_dialog_monitor_progress_monitor (guint64 current, - guint64 total, - gboolean do_event_loop, - gpointer self); -GType media_source_collection_get_type (void) G_GNUC_CONST; -GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -void media_source_collection_remove_from_app (MediaSourceCollection* self, - GeeCollection* sources, - gboolean delete_backing, - ProgressMonitor monitor, - void* monitor_target, - GeeList* not_removed); -GType video_source_collection_get_type (void) G_GNUC_CONST; -void media_source_collection_delete_backing_files (MediaSourceCollection* self, - GeeCollection* sources, - ProgressMonitor monitor, - void* monitor_target, - GeeList* not_deleted); -void app_window_error_message_with_title (const gchar* title, - const gchar* message, - GtkWindow* parent, - gboolean should_escape); -void progress_dialog_close (ProgressDialog* self); -void page_window_set_normal_cursor (PageWindow* self); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -gboolean -dialogs_confirm_delete_tag (Tag* tag) -{ - gboolean result = FALSE; - gint count = 0; - gint _tmp0_; - gchar* msg = NULL; - gint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gint _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - const gchar* _tmp7_; -#line 11 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (IS_TAG (tag), FALSE); -#line 12 "/home/jens/Source/shotwell/src/Dialogs.vala" - count = tag_get_sources_count (tag); -#line 13 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = count; -#line 13 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp0_ == 0) { -#line 14 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = TRUE; -#line 14 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 1039 "Dialogs.c" - } -#line 15 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = count; -#line 15 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = tag_get_user_visible_name (tag); -#line 15 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = _tmp2_; -#line 15 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = count; -#line 15 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = g_strdup_printf (ngettext ("This will remove the tag “%s” from one photo. Continue?", "This will remove the tag “%s” from %d photos. Continue?", (gulong) _tmp1_), _tmp3_, _tmp4_); -#line 15 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = _tmp5_; -#line 15 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp3_); -#line 15 "/home/jens/Source/shotwell/src/Dialogs.vala" - msg = _tmp6_; -#line 20 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = msg; -#line 20 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = app_window_negate_affirm_question (_tmp7_, _ ("_Cancel"), _ ("_Delete"), RESOURCES_DELETE_TAG_TITLE, NULL); -#line 20 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (msg); -#line 20 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 1065 "Dialogs.c" -} - - -gboolean -dialogs_confirm_delete_saved_search (SavedSearch* search) -{ - gboolean result = FALSE; - gchar* msg = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 24 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (IS_SAVED_SEARCH (search), FALSE); -#line 25 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject)); -#line 25 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = _tmp0_; -#line 25 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = g_strdup_printf (_ ("This will remove the saved search “%s”. Continue?"), _tmp1_); -#line 25 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = _tmp2_; -#line 25 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp1_); -#line 25 "/home/jens/Source/shotwell/src/Dialogs.vala" - msg = _tmp3_; -#line 28 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = app_window_negate_affirm_question (msg, _ ("_Cancel"), _ ("_Delete"), RESOURCES_DELETE_SAVED_SEARCH_DIALOG_TITLE, NULL); -#line 28 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (msg); -#line 28 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 1098 "Dialogs.c" -} - - -gboolean -dialogs_confirm_warn_developer_changed (gint number) -{ - gboolean result = FALSE; - GtkMessageDialog* dialog = NULL; - AppWindow* _tmp0_; - AppWindow* _tmp1_; - GtkMessageDialog* _tmp2_; - GtkMessageDialog* _tmp3_; - gint response = 0; -#line 33 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = app_window_get_instance (); -#line 33 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = _tmp0_; -#line 33 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = (GtkMessageDialog*) gtk_message_dialog_new_with_markup (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, "%s", ngettext ("Switching developers will undo all changes you have made to this photo" \ -" in Shotwell", "Switching developers will undo all changes you have made to these phot" \ -"os in Shotwell", (gulong) number)); -#line 33 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_object_ref_sink (_tmp2_); -#line 33 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = _tmp2_; -#line 33 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp1_); -#line 33 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog = _tmp3_; -#line 39 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_dialog_add_buttons (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, NULL); -#line 40 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_dialog_add_buttons (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), _ ("_Switch Developer"), GTK_RESPONSE_YES, NULL); -#line 42 "/home/jens/Source/shotwell/src/Dialogs.vala" - response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog)); -#line 44 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget)); -#line 46 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = response == ((gint) GTK_RESPONSE_YES); -#line 46 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (dialog); -#line 46 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 1140 "Dialogs.c" -} - - -GFile* -export_ui_choose_file (const gchar* current_file_basename) -{ - GFile* result = NULL; - GFile* _tmp0_; - const gchar* _tmp3_ = NULL; - gchar* file_chooser_title = NULL; - gchar* _tmp4_; - GtkFileChooserDialog* chooser = NULL; - const gchar* _tmp5_; - AppWindow* _tmp6_; - AppWindow* _tmp7_; - GtkFileChooserDialog* _tmp8_; - GtkFileChooserDialog* _tmp9_; - GtkFileChooserDialog* _tmp10_; - GtkFileChooserDialog* _tmp11_; - GFile* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - GtkFileChooserDialog* _tmp15_; - GtkFileChooserDialog* _tmp16_; - GFile* file = NULL; - GtkFileChooserDialog* _tmp17_; - GtkFileChooserDialog* _tmp24_; -#line 54 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (current_file_basename != NULL, NULL); -#line 55 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = export_ui_current_export_dir; -#line 55 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp0_ == NULL) { -#line 1174 "Dialogs.c" - const gchar* _tmp1_; - GFile* _tmp2_; -#line 56 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = g_get_home_dir (); -#line 56 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = g_file_new_for_path (_tmp1_); -#line 56 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (export_ui_current_export_dir); -#line 56 "/home/jens/Source/shotwell/src/Dialogs.vala" - export_ui_current_export_dir = _tmp2_; -#line 1185 "Dialogs.c" - } -#line 58 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (video_reader_is_supported_video_filename (current_file_basename)) { -#line 59 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = _ ("Export Video"); -#line 1191 "Dialogs.c" - } else { -#line 59 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = _ ("Export Photo"); -#line 1195 "Dialogs.c" - } -#line 58 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = g_strdup (_tmp3_); -#line 58 "/home/jens/Source/shotwell/src/Dialogs.vala" - file_chooser_title = _tmp4_; -#line 61 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = file_chooser_title; -#line 61 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = app_window_get_instance (); -#line 61 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = _tmp6_; -#line 61 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp8_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_window_get_type (), GtkWindow), GTK_FILE_CHOOSER_ACTION_SAVE, RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, RESOURCES_SAVE_LABEL, GTK_RESPONSE_ACCEPT, NULL, NULL); -#line 61 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_object_ref_sink (_tmp8_); -#line 61 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp9_ = _tmp8_; -#line 61 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp7_); -#line 61 "/home/jens/Source/shotwell/src/Dialogs.vala" - chooser = _tmp9_; -#line 64 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp10_ = chooser; -#line 64 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_file_chooser_set_do_overwrite_confirmation (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_file_chooser_get_type (), GtkFileChooser), TRUE); -#line 65 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp11_ = chooser; -#line 65 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp12_ = export_ui_current_export_dir; -#line 65 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp13_ = g_file_get_path (_tmp12_); -#line 65 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp14_ = _tmp13_; -#line 65 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_file_chooser_set_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_file_chooser_get_type (), GtkFileChooser), _tmp14_); -#line 65 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp14_); -#line 66 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp15_ = chooser; -#line 66 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_file_chooser_set_current_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_file_chooser_get_type (), GtkFileChooser), current_file_basename); -#line 67 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp16_ = chooser; -#line 67 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_file_chooser_set_local_only (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_file_chooser_get_type (), GtkFileChooser), FALSE); -#line 69 "/home/jens/Source/shotwell/src/Dialogs.vala" - file = NULL; -#line 70 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp17_ = chooser; -#line 70 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_ACCEPT)) { -#line 1247 "Dialogs.c" - GtkFileChooserDialog* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - GFile* _tmp21_; - GFile* _tmp22_; - GFile* _tmp23_; -#line 71 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp18_ = chooser; -#line 71 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp19_ = gtk_file_chooser_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_file_chooser_get_type (), GtkFileChooser)); -#line 71 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp20_ = _tmp19_; -#line 71 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp21_ = g_file_new_for_path (_tmp20_); -#line 71 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (file); -#line 71 "/home/jens/Source/shotwell/src/Dialogs.vala" - file = _tmp21_; -#line 71 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp20_); -#line 72 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp22_ = file; -#line 72 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp23_ = g_file_get_parent (_tmp22_); -#line 72 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (export_ui_current_export_dir); -#line 72 "/home/jens/Source/shotwell/src/Dialogs.vala" - export_ui_current_export_dir = _tmp23_; -#line 1276 "Dialogs.c" - } -#line 74 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp24_ = chooser; -#line 74 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_widget_get_type (), GtkWidget)); -#line 76 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = file; -#line 76 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (chooser); -#line 76 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (file_chooser_title); -#line 76 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 1290 "Dialogs.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 95 "/home/jens/Source/shotwell/src/Dialogs.vala" - return self ? g_object_ref (self) : NULL; -#line 1299 "Dialogs.c" -} - - -GFile* -export_ui_choose_dir (const gchar* user_title) -{ - GFile* result = NULL; - GFile* _tmp0_; - GtkFileChooserDialog* chooser = NULL; - AppWindow* _tmp3_; - AppWindow* _tmp4_; - GtkFileChooserDialog* _tmp5_; - GtkFileChooserDialog* _tmp6_; - GtkFileChooserDialog* _tmp7_; - GFile* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - GtkFileChooserDialog* _tmp11_; - GFile* dir = NULL; - GtkFileChooserDialog* _tmp12_; - GtkFileChooserDialog* _tmp19_; -#line 80 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = export_ui_current_export_dir; -#line 80 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp0_ == NULL) { -#line 1325 "Dialogs.c" - const gchar* _tmp1_; - GFile* _tmp2_; -#line 81 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = g_get_home_dir (); -#line 81 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = g_file_new_for_path (_tmp1_); -#line 81 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (export_ui_current_export_dir); -#line 81 "/home/jens/Source/shotwell/src/Dialogs.vala" - export_ui_current_export_dir = _tmp2_; -#line 1336 "Dialogs.c" - } -#line 83 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (user_title == NULL) { -#line 84 "/home/jens/Source/shotwell/src/Dialogs.vala" - user_title = _ ("Export Photos"); -#line 1342 "Dialogs.c" - } -#line 86 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = app_window_get_instance (); -#line 86 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = _tmp3_; -#line 86 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (user_title, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, RESOURCES_OK_LABEL, GTK_RESPONSE_ACCEPT, NULL, NULL); -#line 86 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_object_ref_sink (_tmp5_); -#line 86 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = _tmp5_; -#line 86 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp4_); -#line 86 "/home/jens/Source/shotwell/src/Dialogs.vala" - chooser = _tmp6_; -#line 89 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = chooser; -#line 89 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp8_ = export_ui_current_export_dir; -#line 89 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp9_ = g_file_get_path (_tmp8_); -#line 89 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp10_ = _tmp9_; -#line 89 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_file_chooser_set_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_file_chooser_get_type (), GtkFileChooser), _tmp10_); -#line 89 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp10_); -#line 90 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp11_ = chooser; -#line 90 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_file_chooser_set_local_only (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_file_chooser_get_type (), GtkFileChooser), FALSE); -#line 92 "/home/jens/Source/shotwell/src/Dialogs.vala" - dir = NULL; -#line 93 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp12_ = chooser; -#line 93 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_ACCEPT)) { -#line 1380 "Dialogs.c" - GtkFileChooserDialog* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - GFile* _tmp16_; - GFile* _tmp17_; - GFile* _tmp18_; -#line 94 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp13_ = chooser; -#line 94 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp14_ = gtk_file_chooser_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_file_chooser_get_type (), GtkFileChooser)); -#line 94 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp15_ = _tmp14_; -#line 94 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp16_ = g_file_new_for_path (_tmp15_); -#line 94 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (dir); -#line 94 "/home/jens/Source/shotwell/src/Dialogs.vala" - dir = _tmp16_; -#line 94 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp15_); -#line 95 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp17_ = dir; -#line 95 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp18_ = _g_object_ref0 (_tmp17_); -#line 95 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (export_ui_current_export_dir); -#line 95 "/home/jens/Source/shotwell/src/Dialogs.vala" - export_ui_current_export_dir = _tmp18_; -#line 1409 "Dialogs.c" - } -#line 98 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp19_ = chooser; -#line 98 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget)); -#line 100 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = dir; -#line 100 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (chooser); -#line 100 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 1421 "Dialogs.c" -} - - -void -open_external_editor_error_dialog (GError* err, - Photo* photo) -{ - gboolean _tmp0_ = FALSE; -#line 107 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 109 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED)) { -#line 109 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = TRUE; -#line 1436 "Dialogs.c" - } else { -#line 109 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = g_error_matches (err, G_FILE_ERROR, G_FILE_ERROR_PERM); -#line 1440 "Dialogs.c" - } -#line 109 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp0_) { -#line 1444 "Dialogs.c" - GFile* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource)); -#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = _tmp1_; -#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = g_file_get_parent (_tmp2_); -#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = _tmp3_; -#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = g_file_get_path (_tmp4_); -#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = _tmp5_; -#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = g_strdup_printf (_ ("Shotwell couldn’t create a file for editing this photo because you do " \ -"not have permission to write to %s."), _tmp6_); -#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp8_ = _tmp7_; -#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala" - app_window_error_message (_tmp8_, NULL); -#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp8_); -#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp6_); -#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp4_); -#line 111 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp2_); -#line 1479 "Dialogs.c" - } else { - gchar* _tmp9_; - gchar* _tmp10_; -#line 116 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp9_ = resources_launch_editor_failed (err); -#line 116 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp10_ = _tmp9_; -#line 116 "/home/jens/Source/shotwell/src/Dialogs.vala" - app_window_error_message (_tmp10_, NULL); -#line 116 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp10_); -#line 1491 "Dialogs.c" - } -} - - -GtkResponseType -export_error_dialog (GFile* dest, - gboolean photos_remaining) -{ - GtkResponseType result = 0; - gchar* message = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GtkResponseType response = 0; -#line 120 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (G_IS_FILE (dest), 0); -#line 121 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = g_file_get_path (dest); -#line 121 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = _tmp0_; -#line 121 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = g_strconcat (_ ("Unable to export the following photo due to a file error.\n\n"), _tmp1_, NULL); -#line 121 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = _tmp2_; -#line 121 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp1_); -#line 121 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp3_; -#line 124 "/home/jens/Source/shotwell/src/Dialogs.vala" - response = GTK_RESPONSE_NONE; -#line 126 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (photos_remaining) { -#line 1525 "Dialogs.c" - const gchar* _tmp4_; - gchar* _tmp5_; - const gchar* _tmp6_; -#line 127 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = message; -#line 127 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = g_strconcat (_tmp4_, _ ("\n\nWould you like to continue exporting?"), NULL); -#line 127 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 127 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp5_; -#line 128 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = message; -#line 128 "/home/jens/Source/shotwell/src/Dialogs.vala" - response = app_window_affirm_cancel_question (_tmp6_, _ ("Con_tinue"), NULL, NULL); -#line 1541 "Dialogs.c" - } else { - const gchar* _tmp7_; -#line 130 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = message; -#line 130 "/home/jens/Source/shotwell/src/Dialogs.vala" - app_window_error_message (_tmp7_, NULL); -#line 1548 "Dialogs.c" - } -#line 133 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = response; -#line 133 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 133 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 1556 "Dialogs.c" -} - - -gchar* -import_ui_generate_import_failure_list (GeeList* failed, - gboolean show_dest_id) -{ - gchar* result = NULL; - gint _tmp0_; - gint _tmp1_; - gchar* list = NULL; - gchar* _tmp2_; - gint remaining = 0; - gint _tmp23_; - gint _tmp24_; - gint _tmp25_; -#line 143 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (GEE_IS_LIST (failed), NULL); -#line 144 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (failed, GEE_TYPE_COLLECTION, GeeCollection)); -#line 144 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = _tmp0_; -#line 144 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp1_ == 0) { -#line 145 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = NULL; -#line 145 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 1585 "Dialogs.c" - } -#line 147 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = g_strdup (""); -#line 147 "/home/jens/Source/shotwell/src/Dialogs.vala" - list = _tmp2_; -#line 1591 "Dialogs.c" - { - gint ctr = 0; -#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala" - ctr = 0; -#line 1596 "Dialogs.c" - { - gboolean _tmp3_ = FALSE; -#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = TRUE; -#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala" - while (TRUE) { -#line 1603 "Dialogs.c" - gboolean _tmp5_ = FALSE; - gint _tmp6_; - const gchar* _tmp10_ = NULL; - const gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; -#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!_tmp3_) { -#line 1613 "Dialogs.c" - gint _tmp4_; -#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = ctr; -#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala" - ctr = _tmp4_ + 1; -#line 1619 "Dialogs.c" - } -#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = FALSE; -#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = ctr; -#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp6_ < IMPORT_UI_REPORT_FAILURE_COUNT) { -#line 1627 "Dialogs.c" - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; -#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = ctr; -#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (failed, GEE_TYPE_COLLECTION, GeeCollection)); -#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp9_ = _tmp8_; -#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = _tmp7_ < _tmp9_; -#line 1639 "Dialogs.c" - } else { -#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = FALSE; -#line 1643 "Dialogs.c" - } -#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!_tmp5_) { -#line 148 "/home/jens/Source/shotwell/src/Dialogs.vala" - break; -#line 1649 "Dialogs.c" - } -#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (show_dest_id) { -#line 1653 "Dialogs.c" - gint _tmp11_; - gpointer _tmp12_; - BatchImportResult* _tmp13_; - const gchar* _tmp14_; -#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp11_ = ctr; -#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp12_ = gee_list_get (failed, _tmp11_); -#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp13_ = (BatchImportResult*) _tmp12_; -#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp14_ = _tmp13_->dest_identifier; -#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp10_ = _tmp14_; -#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala" - _batch_import_result_unref0 (_tmp13_); -#line 1670 "Dialogs.c" - } else { - gint _tmp15_; - gpointer _tmp16_; - BatchImportResult* _tmp17_; - const gchar* _tmp18_; -#line 150 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp15_ = ctr; -#line 150 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp16_ = gee_list_get (failed, _tmp15_); -#line 150 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp17_ = (BatchImportResult*) _tmp16_; -#line 150 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp18_ = _tmp17_->src_identifier; -#line 150 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp10_ = _tmp18_; -#line 150 "/home/jens/Source/shotwell/src/Dialogs.vala" - _batch_import_result_unref0 (_tmp17_); -#line 1688 "Dialogs.c" - } -#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp19_ = list; -#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp20_ = g_strdup_printf ("%s\n", _tmp10_); -#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp21_ = _tmp20_; -#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp22_ = g_strconcat (_tmp19_, _tmp21_, NULL); -#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (list); -#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala" - list = _tmp22_; -#line 149 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp21_); -#line 1704 "Dialogs.c" - } - } - } -#line 153 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp23_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (failed, GEE_TYPE_COLLECTION, GeeCollection)); -#line 153 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp24_ = _tmp23_; -#line 153 "/home/jens/Source/shotwell/src/Dialogs.vala" - remaining = _tmp24_ - IMPORT_UI_REPORT_FAILURE_COUNT; -#line 154 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp25_ = remaining; -#line 154 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp25_ > 0) { -#line 1718 "Dialogs.c" - const gchar* _tmp26_; - gint _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; -#line 155 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp26_ = list; -#line 155 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp27_ = remaining; -#line 155 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp28_ = g_strdup_printf (_ ("(and %d more)\n"), _tmp27_); -#line 155 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp29_ = _tmp28_; -#line 155 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp30_ = g_strconcat (_tmp26_, _tmp29_, NULL); -#line 155 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (list); -#line 155 "/home/jens/Source/shotwell/src/Dialogs.vala" - list = _tmp30_; -#line 155 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp29_); -#line 1740 "Dialogs.c" - } -#line 157 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = list; -#line 157 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 1746 "Dialogs.c" -} - - -ImportUIQuestionParams* -import_ui_question_params_construct (GType object_type, - const gchar* question, - const gchar* yes_button, - const gchar* no_button) -{ - ImportUIQuestionParams* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 165 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (question != NULL, NULL); -#line 165 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (yes_button != NULL, NULL); -#line 165 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (no_button != NULL, NULL); -#line 165 "/home/jens/Source/shotwell/src/Dialogs.vala" - self = (ImportUIQuestionParams*) g_type_create_instance (object_type); -#line 166 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = g_strdup (question); -#line 166 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (self->question); -#line 166 "/home/jens/Source/shotwell/src/Dialogs.vala" - self->question = _tmp0_; -#line 167 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = g_strdup (yes_button); -#line 167 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (self->yes_button); -#line 167 "/home/jens/Source/shotwell/src/Dialogs.vala" - self->yes_button = _tmp1_; -#line 168 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = g_strdup (no_button); -#line 168 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (self->no_button); -#line 168 "/home/jens/Source/shotwell/src/Dialogs.vala" - self->no_button = _tmp2_; -#line 165 "/home/jens/Source/shotwell/src/Dialogs.vala" - return self; -#line 1788 "Dialogs.c" -} - - -ImportUIQuestionParams* -import_ui_question_params_new (const gchar* question, - const gchar* yes_button, - const gchar* no_button) -{ -#line 165 "/home/jens/Source/shotwell/src/Dialogs.vala" - return import_ui_question_params_construct (IMPORT_UI_TYPE_QUESTION_PARAMS, question, yes_button, no_button); -#line 1799 "Dialogs.c" -} - - -static void -import_ui_value_question_params_init (GValue* value) -{ -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = NULL; -#line 1808 "Dialogs.c" -} - - -static void -import_ui_value_question_params_free_value (GValue* value) -{ -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (value->data[0].v_pointer) { -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - import_ui_question_params_unref (value->data[0].v_pointer); -#line 1819 "Dialogs.c" - } -} - - -static void -import_ui_value_question_params_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (src_value->data[0].v_pointer) { -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - dest_value->data[0].v_pointer = import_ui_question_params_ref (src_value->data[0].v_pointer); -#line 1832 "Dialogs.c" - } else { -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - dest_value->data[0].v_pointer = NULL; -#line 1836 "Dialogs.c" - } -} - - -static gpointer -import_ui_value_question_params_peek_pointer (const GValue* value) -{ -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - return value->data[0].v_pointer; -#line 1846 "Dialogs.c" -} - - -static gchar* -import_ui_value_question_params_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (collect_values[0].v_pointer) { -#line 1858 "Dialogs.c" - ImportUIQuestionParams * object; - object = collect_values[0].v_pointer; -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (object->parent_instance.g_class == NULL) { -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1865 "Dialogs.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1869 "Dialogs.c" - } -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = import_ui_question_params_ref (object); -#line 1873 "Dialogs.c" - } else { -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = NULL; -#line 1877 "Dialogs.c" - } -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - return NULL; -#line 1881 "Dialogs.c" -} - - -static gchar* -import_ui_value_question_params_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - ImportUIQuestionParams ** object_p; - object_p = collect_values[0].v_pointer; -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!object_p) { -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1897 "Dialogs.c" - } -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!value->data[0].v_pointer) { -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - *object_p = NULL; -#line 1903 "Dialogs.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - *object_p = value->data[0].v_pointer; -#line 1907 "Dialogs.c" - } else { -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - *object_p = import_ui_question_params_ref (value->data[0].v_pointer); -#line 1911 "Dialogs.c" - } -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - return NULL; -#line 1915 "Dialogs.c" -} - - -GParamSpec* -import_ui_param_spec_question_params (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ImportUIParamSpecQuestionParams* spec; -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (g_type_is_a (object_type, IMPORT_UI_TYPE_QUESTION_PARAMS), NULL); -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - return G_PARAM_SPEC (spec); -#line 1935 "Dialogs.c" -} - - -gpointer -import_ui_value_get_question_params (const GValue* value) -{ -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, IMPORT_UI_TYPE_QUESTION_PARAMS), NULL); -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - return value->data[0].v_pointer; -#line 1946 "Dialogs.c" -} - - -void -import_ui_value_set_question_params (GValue* value, - gpointer v_object) -{ - ImportUIQuestionParams * old; -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, IMPORT_UI_TYPE_QUESTION_PARAMS)); -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - old = value->data[0].v_pointer; -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (v_object) { -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, IMPORT_UI_TYPE_QUESTION_PARAMS)); -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = v_object; -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - import_ui_question_params_ref (value->data[0].v_pointer); -#line 1969 "Dialogs.c" - } else { -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = NULL; -#line 1973 "Dialogs.c" - } -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (old) { -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - import_ui_question_params_unref (old); -#line 1979 "Dialogs.c" - } -} - - -void -import_ui_value_take_question_params (GValue* value, - gpointer v_object) -{ - ImportUIQuestionParams * old; -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, IMPORT_UI_TYPE_QUESTION_PARAMS)); -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - old = value->data[0].v_pointer; -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (v_object) { -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, IMPORT_UI_TYPE_QUESTION_PARAMS)); -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = v_object; -#line 2001 "Dialogs.c" - } else { -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = NULL; -#line 2005 "Dialogs.c" - } -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (old) { -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - import_ui_question_params_unref (old); -#line 2011 "Dialogs.c" - } -} - - -static void -import_ui_question_params_class_init (ImportUIQuestionParamsClass * klass) -{ -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - import_ui_question_params_parent_class = g_type_class_peek_parent (klass); -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - ((ImportUIQuestionParamsClass *) klass)->finalize = import_ui_question_params_finalize; -#line 2023 "Dialogs.c" -} - - -static void -import_ui_question_params_instance_init (ImportUIQuestionParams * self) -{ -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - self->ref_count = 1; -#line 2032 "Dialogs.c" -} - - -static void -import_ui_question_params_finalize (ImportUIQuestionParams * obj) -{ - ImportUIQuestionParams * self; -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParams); -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_signal_handlers_destroy (self); -#line 161 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (self->question); -#line 162 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (self->yes_button); -#line 163 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (self->no_button); -#line 2050 "Dialogs.c" -} - - -GType -import_ui_question_params_get_type (void) -{ - static volatile gsize import_ui_question_params_type_id__volatile = 0; - if (g_once_init_enter (&import_ui_question_params_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { import_ui_value_question_params_init, import_ui_value_question_params_free_value, import_ui_value_question_params_copy_value, import_ui_value_question_params_peek_pointer, "p", import_ui_value_question_params_collect_value, "p", import_ui_value_question_params_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (ImportUIQuestionParamsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_ui_question_params_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportUIQuestionParams), 0, (GInstanceInitFunc) import_ui_question_params_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType import_ui_question_params_type_id; - import_ui_question_params_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ImportUIQuestionParams", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&import_ui_question_params_type_id__volatile, import_ui_question_params_type_id); - } - return import_ui_question_params_type_id__volatile; -} - - -gpointer -import_ui_question_params_ref (gpointer instance) -{ - ImportUIQuestionParams * self; - self = instance; -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_atomic_int_inc (&self->ref_count); -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - return instance; -#line 2079 "Dialogs.c" -} - - -void -import_ui_question_params_unref (gpointer instance) -{ - ImportUIQuestionParams * self; - self = instance; -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - IMPORT_UI_QUESTION_PARAMS_GET_CLASS (self)->finalize (self); -#line 160 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2094 "Dialogs.c" - } -} - - -gboolean -import_ui_import_has_photos (GeeCollection* import_collection) -{ - gboolean result = FALSE; -#line 172 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (import_collection), FALSE); -#line 2105 "Dialogs.c" - { - GeeIterator* _current_result_it = NULL; - GeeIterator* _tmp0_; -#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (import_collection, GEE_TYPE_ITERABLE, GeeIterable)); -#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala" - _current_result_it = _tmp0_; -#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala" - while (TRUE) { -#line 2115 "Dialogs.c" - GeeIterator* _tmp1_; - BatchImportResult* current_result = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - gboolean _tmp4_ = FALSE; - BatchImportResult* _tmp5_; - GFile* _tmp6_; -#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = _current_result_it; -#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala" - break; -#line 2129 "Dialogs.c" - } -#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = _current_result_it; -#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala" - current_result = (BatchImportResult*) _tmp3_; -#line 174 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = current_result; -#line 174 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = _tmp5_->file; -#line 174 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp6_ != NULL) { -#line 2143 "Dialogs.c" - BatchImportResult* _tmp7_; - GFile* _tmp8_; -#line 175 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = current_result; -#line 175 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp8_ = _tmp7_->file; -#line 175 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = photo_file_format_get_by_file_extension (_tmp8_) != PHOTO_FILE_FORMAT_UNKNOWN; -#line 2152 "Dialogs.c" - } else { -#line 174 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = FALSE; -#line 2156 "Dialogs.c" - } -#line 174 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp4_) { -#line 176 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = TRUE; -#line 176 "/home/jens/Source/shotwell/src/Dialogs.vala" - _batch_import_result_unref0 (current_result); -#line 176 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_current_result_it); -#line 176 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 2168 "Dialogs.c" - } -#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala" - _batch_import_result_unref0 (current_result); -#line 2172 "Dialogs.c" - } -#line 173 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_current_result_it); -#line 2176 "Dialogs.c" - } -#line 179 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = FALSE; -#line 179 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 2182 "Dialogs.c" -} - - -gboolean -import_ui_import_has_videos (GeeCollection* import_collection) -{ - gboolean result = FALSE; -#line 182 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (import_collection), FALSE); -#line 2192 "Dialogs.c" - { - GeeIterator* _current_result_it = NULL; - GeeIterator* _tmp0_; -#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (import_collection, GEE_TYPE_ITERABLE, GeeIterable)); -#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala" - _current_result_it = _tmp0_; -#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala" - while (TRUE) { -#line 2202 "Dialogs.c" - GeeIterator* _tmp1_; - BatchImportResult* current_result = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - gboolean _tmp4_ = FALSE; - BatchImportResult* _tmp5_; - GFile* _tmp6_; -#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = _current_result_it; -#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala" - break; -#line 2216 "Dialogs.c" - } -#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = _current_result_it; -#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala" - current_result = (BatchImportResult*) _tmp3_; -#line 184 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = current_result; -#line 184 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = _tmp5_->file; -#line 184 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp6_ != NULL) { -#line 2230 "Dialogs.c" - BatchImportResult* _tmp7_; - GFile* _tmp8_; -#line 184 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = current_result; -#line 184 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp8_ = _tmp7_->file; -#line 184 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = video_reader_is_supported_video_file (_tmp8_); -#line 2239 "Dialogs.c" - } else { -#line 184 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = FALSE; -#line 2243 "Dialogs.c" - } -#line 184 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp4_) { -#line 185 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = TRUE; -#line 185 "/home/jens/Source/shotwell/src/Dialogs.vala" - _batch_import_result_unref0 (current_result); -#line 185 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_current_result_it); -#line 185 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 2255 "Dialogs.c" - } -#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala" - _batch_import_result_unref0 (current_result); -#line 2259 "Dialogs.c" - } -#line 183 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_current_result_it); -#line 2263 "Dialogs.c" - } -#line 187 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = FALSE; -#line 187 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 2269 "Dialogs.c" -} - - -gchar* -import_ui_get_media_specific_string (GeeCollection* import_collection, - const gchar* photos_msg, - const gchar* videos_msg, - const gchar* both_msg, - const gchar* neither_msg) -{ - gchar* result = NULL; - gboolean has_photos = FALSE; - gboolean has_videos = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; -#line 190 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (import_collection), NULL); -#line 190 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (photos_msg != NULL, NULL); -#line 190 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (videos_msg != NULL, NULL); -#line 190 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (both_msg != NULL, NULL); -#line 190 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (neither_msg != NULL, NULL); -#line 192 "/home/jens/Source/shotwell/src/Dialogs.vala" - has_photos = import_ui_import_has_photos (import_collection); -#line 193 "/home/jens/Source/shotwell/src/Dialogs.vala" - has_videos = import_ui_import_has_videos (import_collection); -#line 195 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = has_photos; -#line 195 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp1_) { -#line 2303 "Dialogs.c" - gboolean _tmp2_; -#line 195 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = has_videos; -#line 195 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = _tmp2_; -#line 2309 "Dialogs.c" - } else { -#line 195 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = FALSE; -#line 2313 "Dialogs.c" - } -#line 195 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp0_) { -#line 2317 "Dialogs.c" - gchar* _tmp3_; -#line 196 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = g_strdup (both_msg); -#line 196 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp3_; -#line 196 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 2325 "Dialogs.c" - } else { - gboolean _tmp4_; -#line 197 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = has_photos; -#line 197 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp4_) { -#line 2332 "Dialogs.c" - gchar* _tmp5_; -#line 198 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = g_strdup (photos_msg); -#line 198 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp5_; -#line 198 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 2340 "Dialogs.c" - } else { - gboolean _tmp6_; -#line 199 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = has_videos; -#line 199 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp6_) { -#line 2347 "Dialogs.c" - gchar* _tmp7_; -#line 200 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = g_strdup (videos_msg); -#line 200 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp7_; -#line 200 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 2355 "Dialogs.c" - } else { - gchar* _tmp8_; -#line 202 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp8_ = g_strdup (neither_msg); -#line 202 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp8_; -#line 202 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 2364 "Dialogs.c" - } - } - } -} - - -gchar* -import_ui_create_result_report_from_manifest (ImportManifest* manifest) -{ - gchar* result = NULL; - GString* builder = NULL; - GString* _tmp0_; - gchar* header = NULL; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GTimeVal _tmp7_ = {0}; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - GString* _tmp14_; - const gchar* _tmp15_; - gchar* subhead = NULL; - GeeList* _tmp16_; - gint _tmp17_; - gint _tmp18_; - GeeList* _tmp19_; - gint _tmp20_; - gint _tmp21_; - gchar* _tmp22_; - const gchar* _tmp23_; - gchar* _tmp24_; - const gchar* _tmp25_; - GeeList* _tmp26_; - gint _tmp27_; - gint _tmp28_; - GeeList* _tmp29_; - gint _tmp30_; - gint _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - gchar* _tmp34_; - const gchar* _tmp35_; - gchar* _tmp36_; - GString* _tmp37_; - const gchar* _tmp38_; - gchar* current_file_summary = NULL; - gchar* _tmp39_; - GeeList* _tmp40_; - gint _tmp41_; - gint _tmp42_; - GeeList* _tmp76_; - gint _tmp77_; - gint _tmp78_; - GeeList* _tmp108_; - gint _tmp109_; - gint _tmp110_; - GeeList* _tmp140_; - gint _tmp141_; - gint _tmp142_; - GeeList* _tmp172_; - gint _tmp173_; - gint _tmp174_; - GeeList* _tmp208_; - gint _tmp209_; - gint _tmp210_; - GeeList* _tmp240_; - gint _tmp241_; - gint _tmp242_; - GString* _tmp272_; - const gchar* _tmp273_; - gchar* _tmp274_; -#line 205 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (IS_IMPORT_MANIFEST (manifest), NULL); -#line 206 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = g_string_new (""); -#line 206 "/home/jens/Source/shotwell/src/Dialogs.vala" - builder = _tmp0_; -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = g_strconcat (_ ("Import Results Report"), " (Shotwell ", NULL); -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = _tmp1_; -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = g_strconcat (_tmp2_, RESOURCES_APP_VERSION, NULL); -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = _tmp3_; -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = g_strconcat (_tmp4_, " @ ", NULL); -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = _tmp5_; -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_get_current_time (&_tmp7_); -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp8_ = g_time_val_to_iso8601 (&_tmp7_); -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp9_ = _tmp8_; -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp10_ = g_strconcat (_tmp6_, _tmp9_, NULL); -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp11_ = _tmp10_; -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp12_ = g_strconcat (_tmp11_, ")\n\n", NULL); -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp13_ = _tmp12_; -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp11_); -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp9_); -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp6_); -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp4_); -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp2_); -#line 208 "/home/jens/Source/shotwell/src/Dialogs.vala" - header = _tmp13_; -#line 210 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp14_ = builder; -#line 210 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp15_ = header; -#line 210 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_string_append (_tmp14_, _tmp15_); -#line 212 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp16_ = manifest->all; -#line 212 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp17_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 212 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp18_ = _tmp17_; -#line 212 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp19_ = manifest->all; -#line 212 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp20_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 212 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp21_ = _tmp20_; -#line 212 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp22_ = g_strdup_printf (ngettext ("Attempted to import %d file.", "Attempted to import %d files.", (gulong) _tmp18_), _tmp21_); -#line 212 "/home/jens/Source/shotwell/src/Dialogs.vala" - subhead = _tmp22_; -#line 214 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp23_ = subhead; -#line 214 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp24_ = g_strconcat (_tmp23_, " ", NULL); -#line 214 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (subhead); -#line 214 "/home/jens/Source/shotwell/src/Dialogs.vala" - subhead = _tmp24_; -#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp25_ = subhead; -#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp26_ = manifest->success; -#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp27_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp28_ = _tmp27_; -#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp29_ = manifest->success; -#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp30_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp31_ = _tmp30_; -#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp32_ = g_strdup_printf (ngettext ("Of these, %d file was successfully imported.", "Of these, %d files were successfully imported.", (gulong) _tmp28_), _tmp31_); -#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp33_ = _tmp32_; -#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp34_ = g_strconcat (_tmp25_, _tmp33_, NULL); -#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (subhead); -#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala" - subhead = _tmp34_; -#line 215 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp33_); -#line 218 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp35_ = subhead; -#line 218 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp36_ = g_strconcat (_tmp35_, "\n\n", NULL); -#line 218 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (subhead); -#line 218 "/home/jens/Source/shotwell/src/Dialogs.vala" - subhead = _tmp36_; -#line 219 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp37_ = builder; -#line 219 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp38_ = subhead; -#line 219 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_string_append (_tmp37_, _tmp38_); -#line 221 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp39_ = g_strdup (""); -#line 221 "/home/jens/Source/shotwell/src/Dialogs.vala" - current_file_summary = _tmp39_; -#line 226 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp40_ = manifest->already_imported; -#line 226 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp41_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 226 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp42_ = _tmp41_; -#line 226 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp42_ > 0) { -#line 2569 "Dialogs.c" - GString* _tmp43_; - gchar* _tmp44_; - gchar* _tmp45_; -#line 227 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp43_ = builder; -#line 227 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp44_ = g_strconcat (_ ("Duplicate Photos/Videos Not Imported:"), "\n\n", NULL); -#line 227 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp45_ = _tmp44_; -#line 227 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_string_append (_tmp43_, _tmp45_); -#line 227 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp45_); -#line 2583 "Dialogs.c" - { - GeeList* _result_list = NULL; - GeeList* _tmp46_; - GeeList* _tmp47_; - gint _result_size = 0; - GeeList* _tmp48_; - gint _tmp49_; - gint _tmp50_; - gint _result_index = 0; -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp46_ = manifest->already_imported; -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp47_ = _g_object_ref0 (_tmp46_); -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_list = _tmp47_; -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp48_ = _result_list; -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp49_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp50_ = _tmp49_; -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_size = _tmp50_; -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_index = -1; -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - while (TRUE) { -#line 2611 "Dialogs.c" - gint _tmp51_; - gint _tmp52_; - gint _tmp53_; - BatchImportResult* _result_ = NULL; - GeeList* _tmp54_; - gint _tmp55_; - gpointer _tmp56_; - BatchImportResult* _tmp57_; - const gchar* _tmp58_; - gchar* _tmp59_; - gchar* _tmp60_; - gchar* _tmp61_; - gchar* _tmp62_; - gchar* _tmp63_; - gchar* _tmp64_; - BatchImportResult* _tmp65_; - DuplicatedFile* _tmp66_; - GFile* _tmp67_; - GFile* _tmp68_; - gchar* _tmp69_; - gchar* _tmp70_; - gchar* _tmp71_; - gchar* _tmp72_; - gchar* _tmp73_; - GString* _tmp74_; - const gchar* _tmp75_; -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp51_ = _result_index; -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_index = _tmp51_ + 1; -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp52_ = _result_index; -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp53_ = _result_size; -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!(_tmp52_ < _tmp53_)) { -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - break; -#line 2650 "Dialogs.c" - } -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp54_ = _result_list; -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp55_ = _result_index; -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp56_ = gee_list_get (_tmp54_, _tmp55_); -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_ = (BatchImportResult*) _tmp56_; -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp57_ = _result_; -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp58_ = _tmp57_->src_identifier; -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp59_ = g_strconcat (_tmp58_, " ", NULL); -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp60_ = _tmp59_; -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp61_ = g_strconcat (_tmp60_, _ ("duplicates existing media item"), NULL); -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp62_ = _tmp61_; -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp63_ = g_strconcat (_tmp62_, "\n\t", NULL); -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp64_ = _tmp63_; -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp65_ = _result_; -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp66_ = _tmp65_->duplicate_of; -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp67_ = duplicated_file_get_file (_tmp66_); -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp68_ = _tmp67_; -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp69_ = g_file_get_path (_tmp68_); -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp70_ = _tmp69_; -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp71_ = g_strconcat (_tmp64_, _tmp70_, NULL); -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp72_ = _tmp71_; -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp73_ = g_strconcat (_tmp72_, "\n\n", NULL); -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (current_file_summary); -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - current_file_summary = _tmp73_; -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp72_); -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp70_); -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp68_); -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp64_); -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp62_); -#line 230 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp60_); -#line 234 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp74_ = builder; -#line 234 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp75_ = current_file_summary; -#line 234 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_string_append (_tmp74_, _tmp75_); -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _batch_import_result_unref0 (_result_); -#line 2718 "Dialogs.c" - } -#line 229 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_result_list); -#line 2722 "Dialogs.c" - } - } -#line 241 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp76_ = manifest->camera_failed; -#line 241 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp77_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 241 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp78_ = _tmp77_; -#line 241 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp78_ > 0) { -#line 2733 "Dialogs.c" - GString* _tmp79_; - gchar* _tmp80_; - gchar* _tmp81_; -#line 242 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp79_ = builder; -#line 242 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp80_ = g_strconcat (_ ("Photos/Videos Not Imported Due to Camera Errors:"), "\n\n", NULL); -#line 242 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp81_ = _tmp80_; -#line 242 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_string_append (_tmp79_, _tmp81_); -#line 242 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp81_); -#line 2747 "Dialogs.c" - { - GeeList* _result_list = NULL; - GeeList* _tmp82_; - GeeList* _tmp83_; - gint _result_size = 0; - GeeList* _tmp84_; - gint _tmp85_; - gint _tmp86_; - gint _result_index = 0; -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp82_ = manifest->camera_failed; -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp83_ = _g_object_ref0 (_tmp82_); -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_list = _tmp83_; -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp84_ = _result_list; -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp85_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp84_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp86_ = _tmp85_; -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_size = _tmp86_; -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_index = -1; -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - while (TRUE) { -#line 2775 "Dialogs.c" - gint _tmp87_; - gint _tmp88_; - gint _tmp89_; - BatchImportResult* _result_ = NULL; - GeeList* _tmp90_; - gint _tmp91_; - gpointer _tmp92_; - BatchImportResult* _tmp93_; - const gchar* _tmp94_; - gchar* _tmp95_; - gchar* _tmp96_; - gchar* _tmp97_; - gchar* _tmp98_; - gchar* _tmp99_; - gchar* _tmp100_; - BatchImportResult* _tmp101_; - const gchar* _tmp102_; - gchar* _tmp103_; - gchar* _tmp104_; - gchar* _tmp105_; - GString* _tmp106_; - const gchar* _tmp107_; -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp87_ = _result_index; -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_index = _tmp87_ + 1; -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp88_ = _result_index; -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp89_ = _result_size; -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!(_tmp88_ < _tmp89_)) { -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - break; -#line 2810 "Dialogs.c" - } -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp90_ = _result_list; -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp91_ = _result_index; -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp92_ = gee_list_get (_tmp90_, _tmp91_); -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_ = (BatchImportResult*) _tmp92_; -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp93_ = _result_; -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp94_ = _tmp93_->src_identifier; -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp95_ = g_strconcat (_tmp94_, "\n\t", NULL); -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp96_ = _tmp95_; -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp97_ = g_strconcat (_tmp96_, _ ("error message:"), NULL); -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp98_ = _tmp97_; -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp99_ = g_strconcat (_tmp98_, " ", NULL); -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp100_ = _tmp99_; -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp101_ = _result_; -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp102_ = _tmp101_->errmsg; -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp103_ = g_strconcat (_tmp100_, _tmp102_, NULL); -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp104_ = _tmp103_; -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp105_ = g_strconcat (_tmp104_, "\n\n", NULL); -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (current_file_summary); -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - current_file_summary = _tmp105_; -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp104_); -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp100_); -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp98_); -#line 245 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp96_); -#line 248 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp106_ = builder; -#line 248 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp107_ = current_file_summary; -#line 248 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_string_append (_tmp106_, _tmp107_); -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _batch_import_result_unref0 (_result_); -#line 2866 "Dialogs.c" - } -#line 244 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_result_list); -#line 2870 "Dialogs.c" - } - } -#line 255 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp108_ = manifest->skipped_files; -#line 255 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp109_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp108_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 255 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp110_ = _tmp109_; -#line 255 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp110_ > 0) { -#line 2881 "Dialogs.c" - GString* _tmp111_; - gchar* _tmp112_; - gchar* _tmp113_; -#line 256 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp111_ = builder; -#line 256 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp112_ = g_strconcat (_ ("Files Not Imported Because They Weren’t Recognized as Photos or Videos" \ -":"), "\n\n", NULL); -#line 256 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp113_ = _tmp112_; -#line 256 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_string_append (_tmp111_, _tmp113_); -#line 256 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp113_); -#line 2895 "Dialogs.c" - { - GeeList* _result_list = NULL; - GeeList* _tmp114_; - GeeList* _tmp115_; - gint _result_size = 0; - GeeList* _tmp116_; - gint _tmp117_; - gint _tmp118_; - gint _result_index = 0; -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp114_ = manifest->skipped_files; -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp115_ = _g_object_ref0 (_tmp114_); -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_list = _tmp115_; -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp116_ = _result_list; -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp117_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp116_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp118_ = _tmp117_; -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_size = _tmp118_; -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_index = -1; -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - while (TRUE) { -#line 2923 "Dialogs.c" - gint _tmp119_; - gint _tmp120_; - gint _tmp121_; - BatchImportResult* _result_ = NULL; - GeeList* _tmp122_; - gint _tmp123_; - gpointer _tmp124_; - BatchImportResult* _tmp125_; - const gchar* _tmp126_; - gchar* _tmp127_; - gchar* _tmp128_; - gchar* _tmp129_; - gchar* _tmp130_; - gchar* _tmp131_; - gchar* _tmp132_; - BatchImportResult* _tmp133_; - const gchar* _tmp134_; - gchar* _tmp135_; - gchar* _tmp136_; - gchar* _tmp137_; - GString* _tmp138_; - const gchar* _tmp139_; -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp119_ = _result_index; -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_index = _tmp119_ + 1; -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp120_ = _result_index; -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp121_ = _result_size; -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!(_tmp120_ < _tmp121_)) { -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - break; -#line 2958 "Dialogs.c" - } -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp122_ = _result_list; -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp123_ = _result_index; -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp124_ = gee_list_get (_tmp122_, _tmp123_); -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_ = (BatchImportResult*) _tmp124_; -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp125_ = _result_; -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp126_ = _tmp125_->src_identifier; -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp127_ = g_strconcat (_tmp126_, "\n\t", NULL); -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp128_ = _tmp127_; -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp129_ = g_strconcat (_tmp128_, _ ("error message:"), NULL); -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp130_ = _tmp129_; -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp131_ = g_strconcat (_tmp130_, " ", NULL); -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp132_ = _tmp131_; -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp133_ = _result_; -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp134_ = _tmp133_->errmsg; -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp135_ = g_strconcat (_tmp132_, _tmp134_, NULL); -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp136_ = _tmp135_; -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp137_ = g_strconcat (_tmp136_, "\n\n", NULL); -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (current_file_summary); -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - current_file_summary = _tmp137_; -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp136_); -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp132_); -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp130_); -#line 260 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp128_); -#line 263 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp138_ = builder; -#line 263 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp139_ = current_file_summary; -#line 263 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_string_append (_tmp138_, _tmp139_); -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _batch_import_result_unref0 (_result_); -#line 3014 "Dialogs.c" - } -#line 259 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_result_list); -#line 3018 "Dialogs.c" - } - } -#line 270 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp140_ = manifest->skipped_photos; -#line 270 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp141_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp140_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 270 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp142_ = _tmp141_; -#line 270 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp142_ > 0) { -#line 3029 "Dialogs.c" - GString* _tmp143_; - gchar* _tmp144_; - gchar* _tmp145_; -#line 271 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp143_ = builder; -#line 271 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp144_ = g_strconcat (_ ("Photos/Videos Not Imported Because They Weren’t in a Format Shotwell U" \ -"nderstands:"), "\n\n", NULL); -#line 271 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp145_ = _tmp144_; -#line 271 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_string_append (_tmp143_, _tmp145_); -#line 271 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp145_); -#line 3043 "Dialogs.c" - { - GeeList* _result_list = NULL; - GeeList* _tmp146_; - GeeList* _tmp147_; - gint _result_size = 0; - GeeList* _tmp148_; - gint _tmp149_; - gint _tmp150_; - gint _result_index = 0; -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp146_ = manifest->skipped_photos; -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp147_ = _g_object_ref0 (_tmp146_); -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_list = _tmp147_; -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp148_ = _result_list; -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp149_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp148_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp150_ = _tmp149_; -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_size = _tmp150_; -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_index = -1; -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - while (TRUE) { -#line 3071 "Dialogs.c" - gint _tmp151_; - gint _tmp152_; - gint _tmp153_; - BatchImportResult* _result_ = NULL; - GeeList* _tmp154_; - gint _tmp155_; - gpointer _tmp156_; - BatchImportResult* _tmp157_; - const gchar* _tmp158_; - gchar* _tmp159_; - gchar* _tmp160_; - gchar* _tmp161_; - gchar* _tmp162_; - gchar* _tmp163_; - gchar* _tmp164_; - BatchImportResult* _tmp165_; - const gchar* _tmp166_; - gchar* _tmp167_; - gchar* _tmp168_; - gchar* _tmp169_; - GString* _tmp170_; - const gchar* _tmp171_; -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp151_ = _result_index; -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_index = _tmp151_ + 1; -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp152_ = _result_index; -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp153_ = _result_size; -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!(_tmp152_ < _tmp153_)) { -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - break; -#line 3106 "Dialogs.c" - } -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp154_ = _result_list; -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp155_ = _result_index; -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp156_ = gee_list_get (_tmp154_, _tmp155_); -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_ = (BatchImportResult*) _tmp156_; -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp157_ = _result_; -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp158_ = _tmp157_->src_identifier; -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp159_ = g_strconcat (_tmp158_, "\n\t", NULL); -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp160_ = _tmp159_; -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp161_ = g_strconcat (_tmp160_, _ ("error message:"), NULL); -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp162_ = _tmp161_; -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp163_ = g_strconcat (_tmp162_, " ", NULL); -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp164_ = _tmp163_; -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp165_ = _result_; -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp166_ = _tmp165_->errmsg; -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp167_ = g_strconcat (_tmp164_, _tmp166_, NULL); -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp168_ = _tmp167_; -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp169_ = g_strconcat (_tmp168_, "\n\n", NULL); -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (current_file_summary); -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - current_file_summary = _tmp169_; -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp168_); -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp164_); -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp162_); -#line 275 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp160_); -#line 278 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp170_ = builder; -#line 278 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp171_ = current_file_summary; -#line 278 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_string_append (_tmp170_, _tmp171_); -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _batch_import_result_unref0 (_result_); -#line 3162 "Dialogs.c" - } -#line 274 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_result_list); -#line 3166 "Dialogs.c" - } - } -#line 285 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp172_ = manifest->write_failed; -#line 285 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp173_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp172_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 285 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp174_ = _tmp173_; -#line 285 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp174_ > 0) { -#line 3177 "Dialogs.c" - GString* _tmp175_; - gchar* _tmp176_; - gchar* _tmp177_; -#line 286 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp175_ = builder; -#line 286 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp176_ = g_strconcat (_ ("Photos/Videos Not Imported Because Shotwell Couldn’t Copy Them into it" \ -"s Library:"), "\n\n", NULL); -#line 286 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp177_ = _tmp176_; -#line 286 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_string_append (_tmp175_, _tmp177_); -#line 286 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp177_); -#line 3191 "Dialogs.c" - { - GeeList* _result_list = NULL; - GeeList* _tmp178_; - GeeList* _tmp179_; - gint _result_size = 0; - GeeList* _tmp180_; - gint _tmp181_; - gint _tmp182_; - gint _result_index = 0; -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp178_ = manifest->write_failed; -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp179_ = _g_object_ref0 (_tmp178_); -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_list = _tmp179_; -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp180_ = _result_list; -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp181_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp180_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp182_ = _tmp181_; -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_size = _tmp182_; -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_index = -1; -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - while (TRUE) { -#line 3219 "Dialogs.c" - gint _tmp183_; - gint _tmp184_; - gint _tmp185_; - BatchImportResult* _result_ = NULL; - GeeList* _tmp186_; - gint _tmp187_; - gpointer _tmp188_; - BatchImportResult* _tmp189_; - const gchar* _tmp190_; - BatchImportResult* _tmp191_; - const gchar* _tmp192_; - gchar* _tmp193_; - gchar* _tmp194_; - gchar* _tmp195_; - gchar* _tmp196_; - gchar* _tmp197_; - gchar* _tmp198_; - gchar* _tmp199_; - gchar* _tmp200_; - BatchImportResult* _tmp201_; - const gchar* _tmp202_; - gchar* _tmp203_; - gchar* _tmp204_; - gchar* _tmp205_; - GString* _tmp206_; - const gchar* _tmp207_; -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp183_ = _result_index; -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_index = _tmp183_ + 1; -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp184_ = _result_index; -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp185_ = _result_size; -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!(_tmp184_ < _tmp185_)) { -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - break; -#line 3258 "Dialogs.c" - } -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp186_ = _result_list; -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp187_ = _result_index; -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp188_ = gee_list_get (_tmp186_, _tmp187_); -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_ = (BatchImportResult*) _tmp188_; -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp189_ = _result_; -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp190_ = _tmp189_->src_identifier; -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp191_ = _result_; -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp192_ = _tmp191_->dest_identifier; -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp193_ = g_strdup_printf (_ ("couldn’t copy %s\n\tto %s"), _tmp190_, _tmp192_); -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp194_ = _tmp193_; -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp195_ = g_strconcat (_tmp194_, "\n\t", NULL); -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp196_ = _tmp195_; -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp197_ = g_strconcat (_tmp196_, _ ("error message:"), NULL); -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp198_ = _tmp197_; -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp199_ = g_strconcat (_tmp198_, " ", NULL); -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp200_ = _tmp199_; -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp201_ = _result_; -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp202_ = _tmp201_->errmsg; -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp203_ = g_strconcat (_tmp200_, _tmp202_, NULL); -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp204_ = _tmp203_; -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp205_ = g_strconcat (_tmp204_, "\n\n", NULL); -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (current_file_summary); -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - current_file_summary = _tmp205_; -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp204_); -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp200_); -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp198_); -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp196_); -#line 290 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp194_); -#line 294 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp206_ = builder; -#line 294 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp207_ = current_file_summary; -#line 294 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_string_append (_tmp206_, _tmp207_); -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _batch_import_result_unref0 (_result_); -#line 3324 "Dialogs.c" - } -#line 289 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_result_list); -#line 3328 "Dialogs.c" - } - } -#line 301 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp208_ = manifest->corrupt_files; -#line 301 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp209_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp208_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 301 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp210_ = _tmp209_; -#line 301 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp210_ > 0) { -#line 3339 "Dialogs.c" - GString* _tmp211_; - gchar* _tmp212_; - gchar* _tmp213_; -#line 302 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp211_ = builder; -#line 302 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp212_ = g_strconcat (_ ("Photos/Videos Not Imported Because Files Are Corrupt:"), "\n\n", NULL); -#line 302 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp213_ = _tmp212_; -#line 302 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_string_append (_tmp211_, _tmp213_); -#line 302 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp213_); -#line 3353 "Dialogs.c" - { - GeeList* _result_list = NULL; - GeeList* _tmp214_; - GeeList* _tmp215_; - gint _result_size = 0; - GeeList* _tmp216_; - gint _tmp217_; - gint _tmp218_; - gint _result_index = 0; -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp214_ = manifest->corrupt_files; -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp215_ = _g_object_ref0 (_tmp214_); -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_list = _tmp215_; -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp216_ = _result_list; -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp217_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp216_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp218_ = _tmp217_; -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_size = _tmp218_; -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_index = -1; -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - while (TRUE) { -#line 3381 "Dialogs.c" - gint _tmp219_; - gint _tmp220_; - gint _tmp221_; - BatchImportResult* _result_ = NULL; - GeeList* _tmp222_; - gint _tmp223_; - gpointer _tmp224_; - BatchImportResult* _tmp225_; - const gchar* _tmp226_; - gchar* _tmp227_; - gchar* _tmp228_; - gchar* _tmp229_; - gchar* _tmp230_; - gchar* _tmp231_; - gchar* _tmp232_; - BatchImportResult* _tmp233_; - const gchar* _tmp234_; - gchar* _tmp235_; - gchar* _tmp236_; - gchar* _tmp237_; - GString* _tmp238_; - const gchar* _tmp239_; -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp219_ = _result_index; -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_index = _tmp219_ + 1; -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp220_ = _result_index; -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp221_ = _result_size; -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!(_tmp220_ < _tmp221_)) { -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - break; -#line 3416 "Dialogs.c" - } -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp222_ = _result_list; -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp223_ = _result_index; -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp224_ = gee_list_get (_tmp222_, _tmp223_); -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_ = (BatchImportResult*) _tmp224_; -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp225_ = _result_; -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp226_ = _tmp225_->src_identifier; -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp227_ = g_strconcat (_tmp226_, "\n\t", NULL); -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp228_ = _tmp227_; -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp229_ = g_strconcat (_tmp228_, _ ("error message:"), NULL); -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp230_ = _tmp229_; -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp231_ = g_strconcat (_tmp230_, " |", NULL); -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp232_ = _tmp231_; -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp233_ = _result_; -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp234_ = _tmp233_->errmsg; -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp235_ = g_strconcat (_tmp232_, _tmp234_, NULL); -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp236_ = _tmp235_; -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp237_ = g_strconcat (_tmp236_, "|\n\n", NULL); -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (current_file_summary); -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - current_file_summary = _tmp237_; -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp236_); -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp232_); -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp230_); -#line 306 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp228_); -#line 309 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp238_ = builder; -#line 309 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp239_ = current_file_summary; -#line 309 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_string_append (_tmp238_, _tmp239_); -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _batch_import_result_unref0 (_result_); -#line 3472 "Dialogs.c" - } -#line 305 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_result_list); -#line 3476 "Dialogs.c" - } - } -#line 316 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp240_ = manifest->failed; -#line 316 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp241_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp240_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 316 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp242_ = _tmp241_; -#line 316 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp242_ > 0) { -#line 3487 "Dialogs.c" - GString* _tmp243_; - gchar* _tmp244_; - gchar* _tmp245_; -#line 317 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp243_ = builder; -#line 317 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp244_ = g_strconcat (_ ("Photos/Videos Not Imported for Other Reasons:"), "\n\n", NULL); -#line 317 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp245_ = _tmp244_; -#line 317 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_string_append (_tmp243_, _tmp245_); -#line 317 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp245_); -#line 3501 "Dialogs.c" - { - GeeList* _result_list = NULL; - GeeList* _tmp246_; - GeeList* _tmp247_; - gint _result_size = 0; - GeeList* _tmp248_; - gint _tmp249_; - gint _tmp250_; - gint _result_index = 0; -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp246_ = manifest->failed; -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp247_ = _g_object_ref0 (_tmp246_); -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_list = _tmp247_; -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp248_ = _result_list; -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp249_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp248_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp250_ = _tmp249_; -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_size = _tmp250_; -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_index = -1; -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - while (TRUE) { -#line 3529 "Dialogs.c" - gint _tmp251_; - gint _tmp252_; - gint _tmp253_; - BatchImportResult* _result_ = NULL; - GeeList* _tmp254_; - gint _tmp255_; - gpointer _tmp256_; - BatchImportResult* _tmp257_; - const gchar* _tmp258_; - gchar* _tmp259_; - gchar* _tmp260_; - gchar* _tmp261_; - gchar* _tmp262_; - gchar* _tmp263_; - gchar* _tmp264_; - BatchImportResult* _tmp265_; - const gchar* _tmp266_; - gchar* _tmp267_; - gchar* _tmp268_; - gchar* _tmp269_; - GString* _tmp270_; - const gchar* _tmp271_; -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp251_ = _result_index; -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_index = _tmp251_ + 1; -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp252_ = _result_index; -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp253_ = _result_size; -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!(_tmp252_ < _tmp253_)) { -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - break; -#line 3564 "Dialogs.c" - } -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp254_ = _result_list; -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp255_ = _result_index; -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp256_ = gee_list_get (_tmp254_, _tmp255_); -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_ = (BatchImportResult*) _tmp256_; -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp257_ = _result_; -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp258_ = _tmp257_->src_identifier; -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp259_ = g_strconcat (_tmp258_, "\n\t", NULL); -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp260_ = _tmp259_; -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp261_ = g_strconcat (_tmp260_, _ ("error message:"), NULL); -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp262_ = _tmp261_; -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp263_ = g_strconcat (_tmp262_, " ", NULL); -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp264_ = _tmp263_; -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp265_ = _result_; -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp266_ = _tmp265_->errmsg; -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp267_ = g_strconcat (_tmp264_, _tmp266_, NULL); -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp268_ = _tmp267_; -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp269_ = g_strconcat (_tmp268_, "\n\n", NULL); -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (current_file_summary); -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - current_file_summary = _tmp269_; -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp268_); -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp264_); -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp262_); -#line 320 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp260_); -#line 323 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp270_ = builder; -#line 323 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp271_ = current_file_summary; -#line 323 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_string_append (_tmp270_, _tmp271_); -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _batch_import_result_unref0 (_result_); -#line 3620 "Dialogs.c" - } -#line 319 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_result_list); -#line 3624 "Dialogs.c" - } - } -#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp272_ = builder; -#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp273_ = _tmp272_->str; -#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp274_ = g_strdup (_tmp273_); -#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp274_; -#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (current_file_summary); -#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (subhead); -#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (header); -#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_string_free0 (builder); -#line 327 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 3645 "Dialogs.c" -} - - -gboolean -import_ui_report_manifest (ImportManifest* manifest, - gboolean show_dest_id, - ImportUIQuestionParams* question) -{ - gboolean result = FALSE; - gchar* message = NULL; - gchar* _tmp0_; - GeeList* _tmp1_; - gint _tmp2_; - gint _tmp3_; - GeeList* _tmp39_; - gint _tmp40_; - gint _tmp41_; - GeeList* _tmp89_; - gint _tmp90_; - gint _tmp91_; - GeeList* _tmp139_; - gint _tmp140_; - gint _tmp141_; - GeeList* _tmp189_; - gint _tmp190_; - gint _tmp191_; - GeeList* _tmp239_; - gint _tmp240_; - gint _tmp241_; - GeeList* _tmp262_; - gint _tmp263_; - gint _tmp264_; - GeeList* _tmp280_; - gint _tmp281_; - gint _tmp282_; - GeeList* _tmp330_; - gint _tmp331_; - gint _tmp332_; - gint total = 0; - GeeList* _tmp367_; - gint _tmp368_; - gint _tmp369_; - GeeList* _tmp370_; - gint _tmp371_; - gint _tmp372_; - GeeList* _tmp373_; - gint _tmp374_; - gint _tmp375_; - GeeList* _tmp376_; - gint _tmp377_; - gint _tmp378_; - GeeList* _tmp379_; - gint _tmp380_; - gint _tmp381_; - GeeList* _tmp382_; - gint _tmp383_; - gint _tmp384_; - GeeList* _tmp385_; - gint _tmp386_; - gint _tmp387_; - GeeList* _tmp388_; - gint _tmp389_; - gint _tmp390_; - GeeList* _tmp391_; - gint _tmp392_; - gint _tmp393_; - gint _tmp394_; - GeeList* _tmp395_; - gint _tmp396_; - gint _tmp397_; - gint _tmp398_; - GtkMessageDialog* dialog = NULL; - gint dialog_response = 0; - gint _tmp466_; -#line 332 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (IS_IMPORT_MANIFEST (manifest), FALSE); -#line 332 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail ((question == NULL) || IMPORT_UI_IS_QUESTION_PARAMS (question), FALSE); -#line 334 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = g_strdup (""); -#line 334 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp0_; -#line 336 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = manifest->already_imported; -#line 336 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 336 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = _tmp2_; -#line 336 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp3_ > 0) { -#line 3736 "Dialogs.c" - gchar* photos_message = NULL; - GeeList* _tmp4_; - gint _tmp5_; - gint _tmp6_; - GeeList* _tmp7_; - gint _tmp8_; - gint _tmp9_; - gchar* _tmp10_; - gchar* videos_message = NULL; - GeeList* _tmp11_; - gint _tmp12_; - gint _tmp13_; - GeeList* _tmp14_; - gint _tmp15_; - gint _tmp16_; - gchar* _tmp17_; - gchar* both_message = NULL; - GeeList* _tmp18_; - gint _tmp19_; - gint _tmp20_; - GeeList* _tmp21_; - gint _tmp22_; - gint _tmp23_; - gchar* _tmp24_; - const gchar* _tmp25_; - GeeList* _tmp26_; - const gchar* _tmp27_; - const gchar* _tmp28_; - const gchar* _tmp29_; - const gchar* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - const gchar* _tmp34_; - GeeList* _tmp35_; - gchar* _tmp36_; - gchar* _tmp37_; - gchar* _tmp38_; -#line 337 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = manifest->already_imported; -#line 337 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 337 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = _tmp5_; -#line 337 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = manifest->already_imported; -#line 337 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 337 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp9_ = _tmp8_; -#line 337 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp10_ = g_strdup_printf (ngettext ("1 duplicate photo was not imported:\n", "%d duplicate photos were not imported:\n", (gulong) _tmp6_), _tmp9_); -#line 337 "/home/jens/Source/shotwell/src/Dialogs.vala" - photos_message = _tmp10_; -#line 340 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp11_ = manifest->already_imported; -#line 340 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 340 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp13_ = _tmp12_; -#line 340 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp14_ = manifest->already_imported; -#line 340 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 340 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp16_ = _tmp15_; -#line 340 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp17_ = g_strdup_printf (ngettext ("1 duplicate video was not imported:\n", "%d duplicate videos were not imported:\n", (gulong) _tmp13_), _tmp16_); -#line 340 "/home/jens/Source/shotwell/src/Dialogs.vala" - videos_message = _tmp17_; -#line 343 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp18_ = manifest->already_imported; -#line 343 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp19_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 343 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp20_ = _tmp19_; -#line 343 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp21_ = manifest->already_imported; -#line 343 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp22_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 343 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp23_ = _tmp22_; -#line 343 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp24_ = g_strdup_printf (ngettext ("1 duplicate photo/video was not imported:\n", "%d duplicate photos/videos were not imported:\n", (gulong) _tmp20_), _tmp23_); -#line 343 "/home/jens/Source/shotwell/src/Dialogs.vala" - both_message = _tmp24_; -#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp25_ = message; -#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp26_ = manifest->already_imported; -#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp27_ = photos_message; -#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp28_ = videos_message; -#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp29_ = both_message; -#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp30_ = both_message; -#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp31_ = import_ui_get_media_specific_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection), _tmp27_, _tmp28_, _tmp29_, _tmp30_); -#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp32_ = _tmp31_; -#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp33_ = g_strconcat (_tmp25_, _tmp32_, NULL); -#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp33_; -#line 347 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp32_); -#line 350 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp34_ = message; -#line 350 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp35_ = manifest->already_imported; -#line 350 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp36_ = import_ui_generate_import_failure_list (_tmp35_, show_dest_id); -#line 350 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp37_ = _tmp36_; -#line 350 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp38_ = g_strconcat (_tmp34_, _tmp37_, NULL); -#line 350 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 350 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp38_; -#line 350 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp37_); -#line 336 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (both_message); -#line 336 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (videos_message); -#line 336 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (photos_message); -#line 3869 "Dialogs.c" - } -#line 353 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp39_ = manifest->failed; -#line 353 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp40_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 353 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp41_ = _tmp40_; -#line 353 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp41_ > 0) { -#line 3879 "Dialogs.c" - const gchar* _tmp42_; - gint _tmp43_; - gint _tmp44_; - gchar* photos_message = NULL; - GeeList* _tmp47_; - gint _tmp48_; - gint _tmp49_; - GeeList* _tmp50_; - gint _tmp51_; - gint _tmp52_; - gchar* _tmp53_; - gchar* videos_message = NULL; - GeeList* _tmp54_; - gint _tmp55_; - gint _tmp56_; - GeeList* _tmp57_; - gint _tmp58_; - gint _tmp59_; - gchar* _tmp60_; - gchar* both_message = NULL; - GeeList* _tmp61_; - gint _tmp62_; - gint _tmp63_; - GeeList* _tmp64_; - gint _tmp65_; - gint _tmp66_; - gchar* _tmp67_; - gchar* neither_message = NULL; - GeeList* _tmp68_; - gint _tmp69_; - gint _tmp70_; - GeeList* _tmp71_; - gint _tmp72_; - gint _tmp73_; - gchar* _tmp74_; - const gchar* _tmp75_; - GeeList* _tmp76_; - const gchar* _tmp77_; - const gchar* _tmp78_; - const gchar* _tmp79_; - const gchar* _tmp80_; - gchar* _tmp81_; - gchar* _tmp82_; - gchar* _tmp83_; - const gchar* _tmp84_; - GeeList* _tmp85_; - gchar* _tmp86_; - gchar* _tmp87_; - gchar* _tmp88_; -#line 354 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp42_ = message; -#line 354 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp43_ = strlen (_tmp42_); -#line 354 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp44_ = _tmp43_; -#line 354 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp44_ > 0) { -#line 3937 "Dialogs.c" - const gchar* _tmp45_; - gchar* _tmp46_; -#line 355 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp45_ = message; -#line 355 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp46_ = g_strconcat (_tmp45_, "\n", NULL); -#line 355 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 355 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp46_; -#line 3948 "Dialogs.c" - } -#line 357 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp47_ = manifest->failed; -#line 357 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp48_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 357 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp49_ = _tmp48_; -#line 357 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp50_ = manifest->failed; -#line 357 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp51_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 357 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp52_ = _tmp51_; -#line 357 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp53_ = g_strdup_printf (ngettext ("1 photo failed to import due to a file or hardware error:\n", "%d photos failed to import due to a file or hardware error:\n", (gulong) _tmp49_), _tmp52_); -#line 357 "/home/jens/Source/shotwell/src/Dialogs.vala" - photos_message = _tmp53_; -#line 360 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp54_ = manifest->failed; -#line 360 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp55_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 360 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp56_ = _tmp55_; -#line 360 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp57_ = manifest->failed; -#line 360 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp58_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 360 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp59_ = _tmp58_; -#line 360 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp60_ = g_strdup_printf (ngettext ("1 video failed to import due to a file or hardware error:\n", "%d videos failed to import due to a file or hardware error:\n", (gulong) _tmp56_), _tmp59_); -#line 360 "/home/jens/Source/shotwell/src/Dialogs.vala" - videos_message = _tmp60_; -#line 363 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp61_ = manifest->failed; -#line 363 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp62_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 363 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp63_ = _tmp62_; -#line 363 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp64_ = manifest->failed; -#line 363 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp65_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 363 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp66_ = _tmp65_; -#line 363 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp67_ = g_strdup_printf (ngettext ("1 photo/video failed to import due to a file or hardware error:\n", "%d photos/videos failed to import due to a file or hardware error:\n", (gulong) _tmp63_), _tmp66_); -#line 363 "/home/jens/Source/shotwell/src/Dialogs.vala" - both_message = _tmp67_; -#line 366 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp68_ = manifest->failed; -#line 366 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp69_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 366 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp70_ = _tmp69_; -#line 366 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp71_ = manifest->failed; -#line 366 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp72_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 366 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp73_ = _tmp72_; -#line 366 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp74_ = g_strdup_printf (ngettext ("1 file failed to import due to a file or hardware error:\n", "%d files failed to import due to a file or hardware error:\n", (gulong) _tmp70_), _tmp73_); -#line 366 "/home/jens/Source/shotwell/src/Dialogs.vala" - neither_message = _tmp74_; -#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp75_ = message; -#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp76_ = manifest->failed; -#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp77_ = photos_message; -#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp78_ = videos_message; -#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp79_ = both_message; -#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp80_ = neither_message; -#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp81_ = import_ui_get_media_specific_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, GEE_TYPE_COLLECTION, GeeCollection), _tmp77_, _tmp78_, _tmp79_, _tmp80_); -#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp82_ = _tmp81_; -#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp83_ = g_strconcat (_tmp75_, _tmp82_, NULL); -#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp83_; -#line 370 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp82_); -#line 373 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp84_ = message; -#line 373 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp85_ = manifest->failed; -#line 373 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp86_ = import_ui_generate_import_failure_list (_tmp85_, show_dest_id); -#line 373 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp87_ = _tmp86_; -#line 373 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp88_ = g_strconcat (_tmp84_, _tmp87_, NULL); -#line 373 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 373 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp88_; -#line 373 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp87_); -#line 353 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (neither_message); -#line 353 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (both_message); -#line 353 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (videos_message); -#line 353 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (photos_message); -#line 4062 "Dialogs.c" - } -#line 376 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp89_ = manifest->write_failed; -#line 376 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp90_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp89_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 376 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp91_ = _tmp90_; -#line 376 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp91_ > 0) { -#line 4072 "Dialogs.c" - const gchar* _tmp92_; - gint _tmp93_; - gint _tmp94_; - gchar* photos_message = NULL; - GeeList* _tmp97_; - gint _tmp98_; - gint _tmp99_; - GeeList* _tmp100_; - gint _tmp101_; - gint _tmp102_; - gchar* _tmp103_; - gchar* videos_message = NULL; - GeeList* _tmp104_; - gint _tmp105_; - gint _tmp106_; - GeeList* _tmp107_; - gint _tmp108_; - gint _tmp109_; - gchar* _tmp110_; - gchar* both_message = NULL; - GeeList* _tmp111_; - gint _tmp112_; - gint _tmp113_; - GeeList* _tmp114_; - gint _tmp115_; - gint _tmp116_; - gchar* _tmp117_; - gchar* neither_message = NULL; - GeeList* _tmp118_; - gint _tmp119_; - gint _tmp120_; - GeeList* _tmp121_; - gint _tmp122_; - gint _tmp123_; - gchar* _tmp124_; - const gchar* _tmp125_; - GeeList* _tmp126_; - const gchar* _tmp127_; - const gchar* _tmp128_; - const gchar* _tmp129_; - const gchar* _tmp130_; - gchar* _tmp131_; - gchar* _tmp132_; - gchar* _tmp133_; - const gchar* _tmp134_; - GeeList* _tmp135_; - gchar* _tmp136_; - gchar* _tmp137_; - gchar* _tmp138_; -#line 377 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp92_ = message; -#line 377 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp93_ = strlen (_tmp92_); -#line 377 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp94_ = _tmp93_; -#line 377 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp94_ > 0) { -#line 4130 "Dialogs.c" - const gchar* _tmp95_; - gchar* _tmp96_; -#line 378 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp95_ = message; -#line 378 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp96_ = g_strconcat (_tmp95_, "\n", NULL); -#line 378 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 378 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp96_; -#line 4141 "Dialogs.c" - } -#line 380 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp97_ = manifest->write_failed; -#line 380 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp98_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp97_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 380 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp99_ = _tmp98_; -#line 380 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp100_ = manifest->write_failed; -#line 380 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp101_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp100_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 380 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp102_ = _tmp101_; -#line 380 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp103_ = g_strdup_printf (ngettext ("1 photo failed to import because the photo library folder was not writ" \ -"able:\n", "%d photos failed to import because the photo library folder was not wr" \ -"itable:\n", (gulong) _tmp99_), _tmp102_); -#line 380 "/home/jens/Source/shotwell/src/Dialogs.vala" - photos_message = _tmp103_; -#line 383 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp104_ = manifest->write_failed; -#line 383 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp105_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp104_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 383 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp106_ = _tmp105_; -#line 383 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp107_ = manifest->write_failed; -#line 383 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp108_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp107_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 383 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp109_ = _tmp108_; -#line 383 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp110_ = g_strdup_printf (ngettext ("1 video failed to import because the photo library folder was not writ" \ -"able:\n", "%d videos failed to import because the photo library folder was not wr" \ -"itable:\n", (gulong) _tmp106_), _tmp109_); -#line 383 "/home/jens/Source/shotwell/src/Dialogs.vala" - videos_message = _tmp110_; -#line 386 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp111_ = manifest->write_failed; -#line 386 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp112_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp111_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 386 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp113_ = _tmp112_; -#line 386 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp114_ = manifest->write_failed; -#line 386 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp115_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp114_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 386 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp116_ = _tmp115_; -#line 386 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp117_ = g_strdup_printf (ngettext ("1 photo/video failed to import because the photo library folder was no" \ -"t writable:\n", "%d photos/videos failed to import because the photo library folder was" \ -" not writable:\n", (gulong) _tmp113_), _tmp116_); -#line 386 "/home/jens/Source/shotwell/src/Dialogs.vala" - both_message = _tmp117_; -#line 389 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp118_ = manifest->write_failed; -#line 389 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp119_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp118_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 389 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp120_ = _tmp119_; -#line 389 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp121_ = manifest->write_failed; -#line 389 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp122_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp121_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 389 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp123_ = _tmp122_; -#line 389 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp124_ = g_strdup_printf (ngettext ("1 file failed to import because the photo library folder was not writa" \ -"ble:\n", "%d files failed to import because the photo library folder was not wri" \ -"table:\n", (gulong) _tmp120_), _tmp123_); -#line 389 "/home/jens/Source/shotwell/src/Dialogs.vala" - neither_message = _tmp124_; -#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp125_ = message; -#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp126_ = manifest->write_failed; -#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp127_ = photos_message; -#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp128_ = videos_message; -#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp129_ = both_message; -#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp130_ = neither_message; -#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp131_ = import_ui_get_media_specific_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp126_, GEE_TYPE_COLLECTION, GeeCollection), _tmp127_, _tmp128_, _tmp129_, _tmp130_); -#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp132_ = _tmp131_; -#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp133_ = g_strconcat (_tmp125_, _tmp132_, NULL); -#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp133_; -#line 393 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp132_); -#line 396 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp134_ = message; -#line 396 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp135_ = manifest->write_failed; -#line 396 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp136_ = import_ui_generate_import_failure_list (_tmp135_, show_dest_id); -#line 396 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp137_ = _tmp136_; -#line 396 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp138_ = g_strconcat (_tmp134_, _tmp137_, NULL); -#line 396 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 396 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp138_; -#line 396 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp137_); -#line 376 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (neither_message); -#line 376 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (both_message); -#line 376 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (videos_message); -#line 376 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (photos_message); -#line 4255 "Dialogs.c" - } -#line 399 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp139_ = manifest->camera_failed; -#line 399 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp140_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp139_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 399 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp141_ = _tmp140_; -#line 399 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp141_ > 0) { -#line 4265 "Dialogs.c" - const gchar* _tmp142_; - gint _tmp143_; - gint _tmp144_; - gchar* photos_message = NULL; - GeeList* _tmp147_; - gint _tmp148_; - gint _tmp149_; - GeeList* _tmp150_; - gint _tmp151_; - gint _tmp152_; - gchar* _tmp153_; - gchar* videos_message = NULL; - GeeList* _tmp154_; - gint _tmp155_; - gint _tmp156_; - GeeList* _tmp157_; - gint _tmp158_; - gint _tmp159_; - gchar* _tmp160_; - gchar* both_message = NULL; - GeeList* _tmp161_; - gint _tmp162_; - gint _tmp163_; - GeeList* _tmp164_; - gint _tmp165_; - gint _tmp166_; - gchar* _tmp167_; - gchar* neither_message = NULL; - GeeList* _tmp168_; - gint _tmp169_; - gint _tmp170_; - GeeList* _tmp171_; - gint _tmp172_; - gint _tmp173_; - gchar* _tmp174_; - const gchar* _tmp175_; - GeeList* _tmp176_; - const gchar* _tmp177_; - const gchar* _tmp178_; - const gchar* _tmp179_; - const gchar* _tmp180_; - gchar* _tmp181_; - gchar* _tmp182_; - gchar* _tmp183_; - const gchar* _tmp184_; - GeeList* _tmp185_; - gchar* _tmp186_; - gchar* _tmp187_; - gchar* _tmp188_; -#line 400 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp142_ = message; -#line 400 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp143_ = strlen (_tmp142_); -#line 400 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp144_ = _tmp143_; -#line 400 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp144_ > 0) { -#line 4323 "Dialogs.c" - const gchar* _tmp145_; - gchar* _tmp146_; -#line 401 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp145_ = message; -#line 401 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp146_ = g_strconcat (_tmp145_, "\n", NULL); -#line 401 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 401 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp146_; -#line 4334 "Dialogs.c" - } -#line 403 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp147_ = manifest->camera_failed; -#line 403 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp148_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp147_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 403 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp149_ = _tmp148_; -#line 403 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp150_ = manifest->camera_failed; -#line 403 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp151_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp150_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 403 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp152_ = _tmp151_; -#line 403 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp153_ = g_strdup_printf (ngettext ("1 photo failed to import due to a camera error:\n", "%d photos failed to import due to a camera error:\n", (gulong) _tmp149_), _tmp152_); -#line 403 "/home/jens/Source/shotwell/src/Dialogs.vala" - photos_message = _tmp153_; -#line 406 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp154_ = manifest->camera_failed; -#line 406 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp155_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp154_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 406 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp156_ = _tmp155_; -#line 406 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp157_ = manifest->camera_failed; -#line 406 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp158_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp157_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 406 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp159_ = _tmp158_; -#line 406 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp160_ = g_strdup_printf (ngettext ("1 video failed to import due to a camera error:\n", "%d videos failed to import due to a camera error:\n", (gulong) _tmp156_), _tmp159_); -#line 406 "/home/jens/Source/shotwell/src/Dialogs.vala" - videos_message = _tmp160_; -#line 409 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp161_ = manifest->camera_failed; -#line 409 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp162_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp161_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 409 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp163_ = _tmp162_; -#line 409 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp164_ = manifest->camera_failed; -#line 409 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp165_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp164_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 409 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp166_ = _tmp165_; -#line 409 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp167_ = g_strdup_printf (ngettext ("1 photo/video failed to import due to a camera error:\n", "%d photos/videos failed to import due to a camera error:\n", (gulong) _tmp163_), _tmp166_); -#line 409 "/home/jens/Source/shotwell/src/Dialogs.vala" - both_message = _tmp167_; -#line 412 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp168_ = manifest->camera_failed; -#line 412 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp169_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp168_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 412 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp170_ = _tmp169_; -#line 412 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp171_ = manifest->camera_failed; -#line 412 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp172_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp171_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 412 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp173_ = _tmp172_; -#line 412 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp174_ = g_strdup_printf (ngettext ("1 file failed to import due to a camera error:\n", "%d files failed to import due to a camera error:\n", (gulong) _tmp170_), _tmp173_); -#line 412 "/home/jens/Source/shotwell/src/Dialogs.vala" - neither_message = _tmp174_; -#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp175_ = message; -#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp176_ = manifest->camera_failed; -#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp177_ = photos_message; -#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp178_ = videos_message; -#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp179_ = both_message; -#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp180_ = neither_message; -#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp181_ = import_ui_get_media_specific_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp176_, GEE_TYPE_COLLECTION, GeeCollection), _tmp177_, _tmp178_, _tmp179_, _tmp180_); -#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp182_ = _tmp181_; -#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp183_ = g_strconcat (_tmp175_, _tmp182_, NULL); -#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp183_; -#line 416 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp182_); -#line 419 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp184_ = message; -#line 419 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp185_ = manifest->camera_failed; -#line 419 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp186_ = import_ui_generate_import_failure_list (_tmp185_, show_dest_id); -#line 419 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp187_ = _tmp186_; -#line 419 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp188_ = g_strconcat (_tmp184_, _tmp187_, NULL); -#line 419 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 419 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp188_; -#line 419 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp187_); -#line 399 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (neither_message); -#line 399 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (both_message); -#line 399 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (videos_message); -#line 399 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (photos_message); -#line 4448 "Dialogs.c" - } -#line 422 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp189_ = manifest->corrupt_files; -#line 422 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp190_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp189_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 422 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp191_ = _tmp190_; -#line 422 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp191_ > 0) { -#line 4458 "Dialogs.c" - const gchar* _tmp192_; - gint _tmp193_; - gint _tmp194_; - gchar* photos_message = NULL; - GeeList* _tmp197_; - gint _tmp198_; - gint _tmp199_; - GeeList* _tmp200_; - gint _tmp201_; - gint _tmp202_; - gchar* _tmp203_; - gchar* videos_message = NULL; - GeeList* _tmp204_; - gint _tmp205_; - gint _tmp206_; - GeeList* _tmp207_; - gint _tmp208_; - gint _tmp209_; - gchar* _tmp210_; - gchar* both_message = NULL; - GeeList* _tmp211_; - gint _tmp212_; - gint _tmp213_; - GeeList* _tmp214_; - gint _tmp215_; - gint _tmp216_; - gchar* _tmp217_; - gchar* neither_message = NULL; - GeeList* _tmp218_; - gint _tmp219_; - gint _tmp220_; - GeeList* _tmp221_; - gint _tmp222_; - gint _tmp223_; - gchar* _tmp224_; - const gchar* _tmp225_; - GeeList* _tmp226_; - const gchar* _tmp227_; - const gchar* _tmp228_; - const gchar* _tmp229_; - const gchar* _tmp230_; - gchar* _tmp231_; - gchar* _tmp232_; - gchar* _tmp233_; - const gchar* _tmp234_; - GeeList* _tmp235_; - gchar* _tmp236_; - gchar* _tmp237_; - gchar* _tmp238_; -#line 423 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp192_ = message; -#line 423 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp193_ = strlen (_tmp192_); -#line 423 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp194_ = _tmp193_; -#line 423 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp194_ > 0) { -#line 4516 "Dialogs.c" - const gchar* _tmp195_; - gchar* _tmp196_; -#line 424 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp195_ = message; -#line 424 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp196_ = g_strconcat (_tmp195_, "\n", NULL); -#line 424 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 424 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp196_; -#line 4527 "Dialogs.c" - } -#line 426 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp197_ = manifest->corrupt_files; -#line 426 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp198_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp197_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 426 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp199_ = _tmp198_; -#line 426 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp200_ = manifest->corrupt_files; -#line 426 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp201_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp200_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 426 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp202_ = _tmp201_; -#line 426 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp203_ = g_strdup_printf (ngettext ("1 photo failed to import because it was corrupt:\n", "%d photos failed to import because they were corrupt:\n", (gulong) _tmp199_), _tmp202_); -#line 426 "/home/jens/Source/shotwell/src/Dialogs.vala" - photos_message = _tmp203_; -#line 429 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp204_ = manifest->corrupt_files; -#line 429 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp205_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp204_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 429 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp206_ = _tmp205_; -#line 429 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp207_ = manifest->corrupt_files; -#line 429 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp208_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp207_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 429 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp209_ = _tmp208_; -#line 429 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp210_ = g_strdup_printf (ngettext ("1 video failed to import because it was corrupt:\n", "%d videos failed to import because they were corrupt:\n", (gulong) _tmp206_), _tmp209_); -#line 429 "/home/jens/Source/shotwell/src/Dialogs.vala" - videos_message = _tmp210_; -#line 432 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp211_ = manifest->corrupt_files; -#line 432 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp212_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp211_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 432 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp213_ = _tmp212_; -#line 432 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp214_ = manifest->corrupt_files; -#line 432 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp215_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp214_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 432 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp216_ = _tmp215_; -#line 432 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp217_ = g_strdup_printf (ngettext ("1 photo/video failed to import because it was corrupt:\n", "%d photos/videos failed to import because they were corrupt:\n", (gulong) _tmp213_), _tmp216_); -#line 432 "/home/jens/Source/shotwell/src/Dialogs.vala" - both_message = _tmp217_; -#line 435 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp218_ = manifest->corrupt_files; -#line 435 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp219_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp218_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 435 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp220_ = _tmp219_; -#line 435 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp221_ = manifest->corrupt_files; -#line 435 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp222_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp221_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 435 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp223_ = _tmp222_; -#line 435 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp224_ = g_strdup_printf (ngettext ("1 file failed to import because it was corrupt:\n", "%d files failed to import because it was corrupt:\n", (gulong) _tmp220_), _tmp223_); -#line 435 "/home/jens/Source/shotwell/src/Dialogs.vala" - neither_message = _tmp224_; -#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp225_ = message; -#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp226_ = manifest->corrupt_files; -#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp227_ = photos_message; -#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp228_ = videos_message; -#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp229_ = both_message; -#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp230_ = neither_message; -#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp231_ = import_ui_get_media_specific_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp226_, GEE_TYPE_COLLECTION, GeeCollection), _tmp227_, _tmp228_, _tmp229_, _tmp230_); -#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp232_ = _tmp231_; -#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp233_ = g_strconcat (_tmp225_, _tmp232_, NULL); -#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp233_; -#line 439 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp232_); -#line 442 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp234_ = message; -#line 442 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp235_ = manifest->corrupt_files; -#line 442 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp236_ = import_ui_generate_import_failure_list (_tmp235_, show_dest_id); -#line 442 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp237_ = _tmp236_; -#line 442 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp238_ = g_strconcat (_tmp234_, _tmp237_, NULL); -#line 442 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 442 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp238_; -#line 442 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp237_); -#line 422 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (neither_message); -#line 422 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (both_message); -#line 422 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (videos_message); -#line 422 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (photos_message); -#line 4641 "Dialogs.c" - } -#line 445 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp239_ = manifest->skipped_photos; -#line 445 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp240_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp239_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 445 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp241_ = _tmp240_; -#line 445 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp241_ > 0) { -#line 4651 "Dialogs.c" - const gchar* _tmp242_; - gint _tmp243_; - gint _tmp244_; - gchar* skipped_photos_message = NULL; - GeeList* _tmp247_; - gint _tmp248_; - gint _tmp249_; - GeeList* _tmp250_; - gint _tmp251_; - gint _tmp252_; - gchar* _tmp253_; - const gchar* _tmp254_; - const gchar* _tmp255_; - gchar* _tmp256_; - const gchar* _tmp257_; - GeeList* _tmp258_; - gchar* _tmp259_; - gchar* _tmp260_; - gchar* _tmp261_; -#line 446 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp242_ = message; -#line 446 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp243_ = strlen (_tmp242_); -#line 446 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp244_ = _tmp243_; -#line 446 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp244_ > 0) { -#line 4679 "Dialogs.c" - const gchar* _tmp245_; - gchar* _tmp246_; -#line 447 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp245_ = message; -#line 447 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp246_ = g_strconcat (_tmp245_, "\n", NULL); -#line 447 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 447 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp246_; -#line 4690 "Dialogs.c" - } -#line 452 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp247_ = manifest->skipped_photos; -#line 452 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp248_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp247_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 452 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp249_ = _tmp248_; -#line 452 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp250_ = manifest->skipped_photos; -#line 452 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp251_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp250_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 452 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp252_ = _tmp251_; -#line 452 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp253_ = g_strdup_printf (ngettext ("1 unsupported photo skipped:\n", "%d unsupported photos skipped:\n", (gulong) _tmp249_), _tmp252_); -#line 452 "/home/jens/Source/shotwell/src/Dialogs.vala" - skipped_photos_message = _tmp253_; -#line 456 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp254_ = message; -#line 456 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp255_ = skipped_photos_message; -#line 456 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp256_ = g_strconcat (_tmp254_, _tmp255_, NULL); -#line 456 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 456 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp256_; -#line 458 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp257_ = message; -#line 458 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp258_ = manifest->skipped_photos; -#line 458 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp259_ = import_ui_generate_import_failure_list (_tmp258_, show_dest_id); -#line 458 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp260_ = _tmp259_; -#line 458 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp261_ = g_strconcat (_tmp257_, _tmp260_, NULL); -#line 458 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 458 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp261_; -#line 458 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp260_); -#line 445 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (skipped_photos_message); -#line 4736 "Dialogs.c" - } -#line 461 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp262_ = manifest->skipped_files; -#line 461 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp263_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp262_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 461 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp264_ = _tmp263_; -#line 461 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp264_ > 0) { -#line 4746 "Dialogs.c" - const gchar* _tmp265_; - gint _tmp266_; - gint _tmp267_; - gchar* skipped_files_message = NULL; - GeeList* _tmp270_; - gint _tmp271_; - gint _tmp272_; - GeeList* _tmp273_; - gint _tmp274_; - gint _tmp275_; - gchar* _tmp276_; - const gchar* _tmp277_; - const gchar* _tmp278_; - gchar* _tmp279_; -#line 462 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp265_ = message; -#line 462 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp266_ = strlen (_tmp265_); -#line 462 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp267_ = _tmp266_; -#line 462 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp267_ > 0) { -#line 4769 "Dialogs.c" - const gchar* _tmp268_; - gchar* _tmp269_; -#line 463 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp268_ = message; -#line 463 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp269_ = g_strconcat (_tmp268_, "\n", NULL); -#line 463 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 463 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp269_; -#line 4780 "Dialogs.c" - } -#line 467 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp270_ = manifest->skipped_files; -#line 467 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp271_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp270_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 467 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp272_ = _tmp271_; -#line 467 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp273_ = manifest->skipped_files; -#line 467 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp274_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp273_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 467 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp275_ = _tmp274_; -#line 467 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp276_ = g_strdup_printf (ngettext ("1 non-image file skipped.\n", "%d non-image files skipped.\n", (gulong) _tmp272_), _tmp275_); -#line 467 "/home/jens/Source/shotwell/src/Dialogs.vala" - skipped_files_message = _tmp276_; -#line 471 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp277_ = message; -#line 471 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp278_ = skipped_files_message; -#line 471 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp279_ = g_strconcat (_tmp277_, _tmp278_, NULL); -#line 471 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 471 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp279_; -#line 461 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (skipped_files_message); -#line 4810 "Dialogs.c" - } -#line 474 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp280_ = manifest->aborted; -#line 474 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp281_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp280_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 474 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp282_ = _tmp281_; -#line 474 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp282_ > 0) { -#line 4820 "Dialogs.c" - const gchar* _tmp283_; - gint _tmp284_; - gint _tmp285_; - gchar* photos_message = NULL; - GeeList* _tmp288_; - gint _tmp289_; - gint _tmp290_; - GeeList* _tmp291_; - gint _tmp292_; - gint _tmp293_; - gchar* _tmp294_; - gchar* videos_message = NULL; - GeeList* _tmp295_; - gint _tmp296_; - gint _tmp297_; - GeeList* _tmp298_; - gint _tmp299_; - gint _tmp300_; - gchar* _tmp301_; - gchar* both_message = NULL; - GeeList* _tmp302_; - gint _tmp303_; - gint _tmp304_; - GeeList* _tmp305_; - gint _tmp306_; - gint _tmp307_; - gchar* _tmp308_; - gchar* neither_message = NULL; - GeeList* _tmp309_; - gint _tmp310_; - gint _tmp311_; - GeeList* _tmp312_; - gint _tmp313_; - gint _tmp314_; - gchar* _tmp315_; - const gchar* _tmp316_; - GeeList* _tmp317_; - const gchar* _tmp318_; - const gchar* _tmp319_; - const gchar* _tmp320_; - const gchar* _tmp321_; - gchar* _tmp322_; - gchar* _tmp323_; - gchar* _tmp324_; - const gchar* _tmp325_; - GeeList* _tmp326_; - gchar* _tmp327_; - gchar* _tmp328_; - gchar* _tmp329_; -#line 475 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp283_ = message; -#line 475 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp284_ = strlen (_tmp283_); -#line 475 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp285_ = _tmp284_; -#line 475 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp285_ > 0) { -#line 4878 "Dialogs.c" - const gchar* _tmp286_; - gchar* _tmp287_; -#line 476 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp286_ = message; -#line 476 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp287_ = g_strconcat (_tmp286_, "\n", NULL); -#line 476 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 476 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp287_; -#line 4889 "Dialogs.c" - } -#line 478 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp288_ = manifest->aborted; -#line 478 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp289_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp288_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 478 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp290_ = _tmp289_; -#line 478 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp291_ = manifest->aborted; -#line 478 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp292_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp291_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 478 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp293_ = _tmp292_; -#line 478 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp294_ = g_strdup_printf (ngettext ("1 photo skipped due to user cancel:\n", "%d photos skipped due to user cancel:\n", (gulong) _tmp290_), _tmp293_); -#line 478 "/home/jens/Source/shotwell/src/Dialogs.vala" - photos_message = _tmp294_; -#line 481 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp295_ = manifest->aborted; -#line 481 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp296_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp295_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 481 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp297_ = _tmp296_; -#line 481 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp298_ = manifest->aborted; -#line 481 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp299_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp298_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 481 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp300_ = _tmp299_; -#line 481 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp301_ = g_strdup_printf (ngettext ("1 video skipped due to user cancel:\n", "%d videos skipped due to user cancel:\n", (gulong) _tmp297_), _tmp300_); -#line 481 "/home/jens/Source/shotwell/src/Dialogs.vala" - videos_message = _tmp301_; -#line 484 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp302_ = manifest->aborted; -#line 484 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp303_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp302_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 484 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp304_ = _tmp303_; -#line 484 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp305_ = manifest->aborted; -#line 484 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp306_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp305_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 484 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp307_ = _tmp306_; -#line 484 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp308_ = g_strdup_printf (ngettext ("1 photo/video skipped due to user cancel:\n", "%d photos/videos skipped due to user cancel:\n", (gulong) _tmp304_), _tmp307_); -#line 484 "/home/jens/Source/shotwell/src/Dialogs.vala" - both_message = _tmp308_; -#line 487 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp309_ = manifest->aborted; -#line 487 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp310_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp309_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 487 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp311_ = _tmp310_; -#line 487 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp312_ = manifest->aborted; -#line 487 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp313_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp312_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 487 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp314_ = _tmp313_; -#line 487 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp315_ = g_strdup_printf (ngettext ("1 file skipped due to user cancel:\n", "%d file skipped due to user cancel:\n", (gulong) _tmp311_), _tmp314_); -#line 487 "/home/jens/Source/shotwell/src/Dialogs.vala" - neither_message = _tmp315_; -#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp316_ = message; -#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp317_ = manifest->aborted; -#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp318_ = photos_message; -#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp319_ = videos_message; -#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp320_ = both_message; -#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp321_ = neither_message; -#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp322_ = import_ui_get_media_specific_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp317_, GEE_TYPE_COLLECTION, GeeCollection), _tmp318_, _tmp319_, _tmp320_, _tmp321_); -#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp323_ = _tmp322_; -#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp324_ = g_strconcat (_tmp316_, _tmp323_, NULL); -#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp324_; -#line 491 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp323_); -#line 494 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp325_ = message; -#line 494 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp326_ = manifest->aborted; -#line 494 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp327_ = import_ui_generate_import_failure_list (_tmp326_, show_dest_id); -#line 494 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp328_ = _tmp327_; -#line 494 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp329_ = g_strconcat (_tmp325_, _tmp328_, NULL); -#line 494 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 494 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp329_; -#line 494 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp328_); -#line 474 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (neither_message); -#line 474 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (both_message); -#line 474 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (videos_message); -#line 474 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (photos_message); -#line 5003 "Dialogs.c" - } -#line 497 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp330_ = manifest->success; -#line 497 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp331_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp330_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 497 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp332_ = _tmp331_; -#line 497 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp332_ > 0) { -#line 5013 "Dialogs.c" - const gchar* _tmp333_; - gint _tmp334_; - gint _tmp335_; - gchar* photos_message = NULL; - GeeList* _tmp338_; - gint _tmp339_; - gint _tmp340_; - GeeList* _tmp341_; - gint _tmp342_; - gint _tmp343_; - gchar* _tmp344_; - gchar* videos_message = NULL; - GeeList* _tmp345_; - gint _tmp346_; - gint _tmp347_; - GeeList* _tmp348_; - gint _tmp349_; - gint _tmp350_; - gchar* _tmp351_; - gchar* both_message = NULL; - GeeList* _tmp352_; - gint _tmp353_; - gint _tmp354_; - GeeList* _tmp355_; - gint _tmp356_; - gint _tmp357_; - gchar* _tmp358_; - const gchar* _tmp359_; - GeeList* _tmp360_; - const gchar* _tmp361_; - const gchar* _tmp362_; - const gchar* _tmp363_; - gchar* _tmp364_; - gchar* _tmp365_; - gchar* _tmp366_; -#line 498 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp333_ = message; -#line 498 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp334_ = strlen (_tmp333_); -#line 498 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp335_ = _tmp334_; -#line 498 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp335_ > 0) { -#line 5057 "Dialogs.c" - const gchar* _tmp336_; - gchar* _tmp337_; -#line 499 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp336_ = message; -#line 499 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp337_ = g_strconcat (_tmp336_, "\n", NULL); -#line 499 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 499 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp337_; -#line 5068 "Dialogs.c" - } -#line 501 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp338_ = manifest->success; -#line 501 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp339_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp338_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 501 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp340_ = _tmp339_; -#line 501 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp341_ = manifest->success; -#line 501 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp342_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp341_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 501 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp343_ = _tmp342_; -#line 501 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp344_ = g_strdup_printf (ngettext ("1 photo successfully imported.\n", "%d photos successfully imported.\n", (gulong) _tmp340_), _tmp343_); -#line 501 "/home/jens/Source/shotwell/src/Dialogs.vala" - photos_message = _tmp344_; -#line 504 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp345_ = manifest->success; -#line 504 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp346_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp345_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 504 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp347_ = _tmp346_; -#line 504 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp348_ = manifest->success; -#line 504 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp349_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp348_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 504 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp350_ = _tmp349_; -#line 504 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp351_ = g_strdup_printf (ngettext ("1 video successfully imported.\n", "%d videos successfully imported.\n", (gulong) _tmp347_), _tmp350_); -#line 504 "/home/jens/Source/shotwell/src/Dialogs.vala" - videos_message = _tmp351_; -#line 507 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp352_ = manifest->success; -#line 507 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp353_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp352_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 507 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp354_ = _tmp353_; -#line 507 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp355_ = manifest->success; -#line 507 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp356_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp355_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 507 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp357_ = _tmp356_; -#line 507 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp358_ = g_strdup_printf (ngettext ("1 photo/video successfully imported.\n", "%d photos/videos successfully imported.\n", (gulong) _tmp354_), _tmp357_); -#line 507 "/home/jens/Source/shotwell/src/Dialogs.vala" - both_message = _tmp358_; -#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp359_ = message; -#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp360_ = manifest->success; -#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp361_ = photos_message; -#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp362_ = videos_message; -#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp363_ = both_message; -#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp364_ = import_ui_get_media_specific_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp360_, GEE_TYPE_COLLECTION, GeeCollection), _tmp361_, _tmp362_, _tmp363_, ""); -#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp365_ = _tmp364_; -#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp366_ = g_strconcat (_tmp359_, _tmp365_, NULL); -#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp366_; -#line 511 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp365_); -#line 497 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (both_message); -#line 497 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (videos_message); -#line 497 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (photos_message); -#line 5146 "Dialogs.c" - } -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp367_ = manifest->success; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp368_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp367_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp369_ = _tmp368_; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp370_ = manifest->failed; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp371_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp370_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp372_ = _tmp371_; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp373_ = manifest->camera_failed; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp374_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp373_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp375_ = _tmp374_; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp376_ = manifest->skipped_photos; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp377_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp376_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp378_ = _tmp377_; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp379_ = manifest->skipped_files; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp380_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp379_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp381_ = _tmp380_; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp382_ = manifest->corrupt_files; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp383_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp382_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp384_ = _tmp383_; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp385_ = manifest->already_imported; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp386_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp385_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp387_ = _tmp386_; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp388_ = manifest->aborted; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp389_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp388_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp390_ = _tmp389_; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp391_ = manifest->write_failed; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp392_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp391_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp393_ = _tmp392_; -#line 515 "/home/jens/Source/shotwell/src/Dialogs.vala" - total = (((((((_tmp369_ + _tmp372_) + _tmp375_) + _tmp378_) + _tmp381_) + _tmp384_) + _tmp387_) + _tmp390_) + _tmp393_; -#line 518 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp394_ = total; -#line 518 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp395_ = manifest->all; -#line 518 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp396_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp395_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 518 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp397_ = _tmp396_; -#line 518 "/home/jens/Source/shotwell/src/Dialogs.vala" - _vala_assert (_tmp394_ == _tmp397_, "total == manifest.all.size"); -#line 522 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp398_ = total; -#line 522 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp398_ == 0) { -#line 5218 "Dialogs.c" - const gchar* _tmp399_; - gchar* _tmp400_; -#line 523 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp399_ = message; -#line 523 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp400_ = g_strconcat (_tmp399_, _ ("No photos or videos imported.\n"), NULL); -#line 523 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 523 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp400_; -#line 5229 "Dialogs.c" - } -#line 525 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog = NULL; -#line 526 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog_response = (gint) GTK_RESPONSE_NONE; -#line 527 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (question == NULL) { -#line 5237 "Dialogs.c" - AppWindow* _tmp401_; - AppWindow* _tmp402_; - const gchar* _tmp403_; - GtkMessageDialog* _tmp404_; - GtkMessageDialog* _tmp405_; - GtkWidget* save_results_button = NULL; - GtkMessageDialog* _tmp406_; - GtkWidget* _tmp407_; - GtkWidget* _tmp408_; - GtkWidget* _tmp409_; - GeeList* _tmp410_; - gint _tmp411_; - gint _tmp412_; - GeeList* _tmp413_; - gint _tmp414_; - gint _tmp415_; - GtkWidget* ok_button = NULL; - GtkMessageDialog* _tmp416_; - GtkWidget* _tmp417_; - GtkWidget* _tmp418_; - GtkMessageDialog* _tmp419_; - GtkWidget* _tmp420_; - GtkWindow* dialog_parent = NULL; - GtkMessageDialog* _tmp421_; - GtkContainer* _tmp422_; - GtkWindow* _tmp423_; - GtkMessageDialog* _tmp424_; - GtkMessageDialog* _tmp425_; - gint _tmp426_; -#line 528 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp401_ = app_window_get_instance (); -#line 528 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp402_ = _tmp401_; -#line 528 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp403_ = message; -#line 528 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp404_ = (GtkMessageDialog*) gtk_message_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp402_, gtk_window_get_type (), GtkWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_NONE, "%s", _tmp403_); -#line 528 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_object_ref_sink (_tmp404_); -#line 528 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (dialog); -#line 528 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog = _tmp404_; -#line 528 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp402_); -#line 530 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp405_ = dialog; -#line 530 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp405_, gtk_window_get_type (), GtkWindow), _ ("Import Complete")); -#line 531 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp406_ = dialog; -#line 531 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp407_ = gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp406_, gtk_dialog_get_type (), GtkDialog), IMPORT_UI_SAVE_RESULTS_BUTTON_NAME, IMPORT_UI_SAVE_RESULTS_RESPONSE_ID); -#line 531 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp408_ = _g_object_ref0 (_tmp407_); -#line 531 "/home/jens/Source/shotwell/src/Dialogs.vala" - save_results_button = _tmp408_; -#line 533 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp409_ = save_results_button; -#line 533 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp410_ = manifest->success; -#line 533 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp411_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp410_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 533 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp412_ = _tmp411_; -#line 533 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp413_ = manifest->all; -#line 533 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp414_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp413_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 533 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp415_ = _tmp414_; -#line 533 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_widget_set_visible (_tmp409_, _tmp412_ < _tmp415_); -#line 534 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp416_ = dialog; -#line 534 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp417_ = gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp416_, gtk_dialog_get_type (), GtkDialog), RESOURCES_OK_LABEL, (gint) GTK_RESPONSE_OK); -#line 534 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp418_ = _g_object_ref0 (_tmp417_); -#line 534 "/home/jens/Source/shotwell/src/Dialogs.vala" - ok_button = _tmp418_; -#line 535 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp419_ = dialog; -#line 535 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp420_ = ok_button; -#line 535 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_window_set_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp419_, gtk_window_get_type (), GtkWindow), _tmp420_); -#line 537 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp421_ = dialog; -#line 537 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp422_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (_tmp421_, gtk_widget_get_type (), GtkWidget)); -#line 537 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp423_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp422_, gtk_window_get_type (), GtkWindow)); -#line 537 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog_parent = _tmp423_; -#line 538 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp424_ = dialog; -#line 538 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog_response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp424_, gtk_dialog_get_type (), GtkDialog)); -#line 539 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp425_ = dialog; -#line 539 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp425_, gtk_widget_get_type (), GtkWidget)); -#line 541 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp426_ = dialog_response; -#line 541 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp426_ == IMPORT_UI_SAVE_RESULTS_RESPONSE_ID) { -#line 5345 "Dialogs.c" - GtkWindow* _tmp427_; - gchar* _tmp428_; - gchar* _tmp429_; -#line 542 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp427_ = dialog_parent; -#line 542 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp428_ = import_ui_create_result_report_from_manifest (manifest); -#line 542 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp429_ = _tmp428_; -#line 542 "/home/jens/Source/shotwell/src/Dialogs.vala" - import_ui_save_import_results (_tmp427_, _tmp429_); -#line 542 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp429_); -#line 5359 "Dialogs.c" - } -#line 527 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (dialog_parent); -#line 527 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (ok_button); -#line 527 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (save_results_button); -#line 5367 "Dialogs.c" - } else { - const gchar* _tmp430_; - const gchar* _tmp431_; - gchar* _tmp432_; - gchar* _tmp433_; - gchar* _tmp434_; - AppWindow* _tmp435_; - AppWindow* _tmp436_; - const gchar* _tmp437_; - GtkMessageDialog* _tmp438_; - GtkMessageDialog* _tmp439_; - GtkWidget* save_results_button = NULL; - GtkMessageDialog* _tmp440_; - GtkWidget* _tmp441_; - GtkWidget* _tmp442_; - GtkWidget* _tmp443_; - GeeList* _tmp444_; - gint _tmp445_; - gint _tmp446_; - GeeList* _tmp447_; - gint _tmp448_; - gint _tmp449_; - GtkWidget* no_button = NULL; - GtkMessageDialog* _tmp450_; - const gchar* _tmp451_; - GtkWidget* _tmp452_; - GtkWidget* _tmp453_; - GtkMessageDialog* _tmp454_; - const gchar* _tmp455_; - GtkMessageDialog* _tmp456_; - GtkWidget* _tmp457_; - GtkMessageDialog* _tmp458_; - GtkMessageDialog* _tmp464_; - GtkMessageDialog* _tmp465_; -#line 545 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp430_ = message; -#line 545 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp431_ = question->question; -#line 545 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp432_ = g_strconcat ("\n", _tmp431_, NULL); -#line 545 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp433_ = _tmp432_; -#line 545 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp434_ = g_strconcat (_tmp430_, _tmp433_, NULL); -#line 545 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 545 "/home/jens/Source/shotwell/src/Dialogs.vala" - message = _tmp434_; -#line 545 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp433_); -#line 547 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp435_ = app_window_get_instance (); -#line 547 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp436_ = _tmp435_; -#line 547 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp437_ = message; -#line 547 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp438_ = (GtkMessageDialog*) gtk_message_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp436_, gtk_window_get_type (), GtkWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", _tmp437_); -#line 547 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_object_ref_sink (_tmp438_); -#line 547 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (dialog); -#line 547 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog = _tmp438_; -#line 547 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp436_); -#line 549 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp439_ = dialog; -#line 549 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp439_, gtk_window_get_type (), GtkWindow), _ ("Import Complete")); -#line 550 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp440_ = dialog; -#line 550 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp441_ = gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp440_, gtk_dialog_get_type (), GtkDialog), IMPORT_UI_SAVE_RESULTS_BUTTON_NAME, IMPORT_UI_SAVE_RESULTS_RESPONSE_ID); -#line 550 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp442_ = _g_object_ref0 (_tmp441_); -#line 550 "/home/jens/Source/shotwell/src/Dialogs.vala" - save_results_button = _tmp442_; -#line 552 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp443_ = save_results_button; -#line 552 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp444_ = manifest->success; -#line 552 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp445_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp444_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 552 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp446_ = _tmp445_; -#line 552 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp447_ = manifest->all; -#line 552 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp448_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp447_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 552 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp449_ = _tmp448_; -#line 552 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_widget_set_visible (_tmp443_, _tmp446_ < _tmp449_); -#line 553 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp450_ = dialog; -#line 553 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp451_ = question->no_button; -#line 553 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp452_ = gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp450_, gtk_dialog_get_type (), GtkDialog), _tmp451_, (gint) GTK_RESPONSE_NO); -#line 553 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp453_ = _g_object_ref0 (_tmp452_); -#line 553 "/home/jens/Source/shotwell/src/Dialogs.vala" - no_button = _tmp453_; -#line 554 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp454_ = dialog; -#line 554 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp455_ = question->yes_button; -#line 554 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp454_, gtk_dialog_get_type (), GtkDialog), _tmp455_, (gint) GTK_RESPONSE_YES); -#line 555 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp456_ = dialog; -#line 555 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp457_ = no_button; -#line 555 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_window_set_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp456_, gtk_window_get_type (), GtkWindow), _tmp457_); -#line 557 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp458_ = dialog; -#line 557 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog_response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp458_, gtk_dialog_get_type (), GtkDialog)); -#line 558 "/home/jens/Source/shotwell/src/Dialogs.vala" - while (TRUE) { -#line 5490 "Dialogs.c" - gint _tmp459_; - GtkMessageDialog* _tmp460_; - gchar* _tmp461_; - gchar* _tmp462_; - GtkMessageDialog* _tmp463_; -#line 558 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp459_ = dialog_response; -#line 558 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!(_tmp459_ == IMPORT_UI_SAVE_RESULTS_RESPONSE_ID)) { -#line 558 "/home/jens/Source/shotwell/src/Dialogs.vala" - break; -#line 5502 "Dialogs.c" - } -#line 559 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp460_ = dialog; -#line 559 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp461_ = import_ui_create_result_report_from_manifest (manifest); -#line 559 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp462_ = _tmp461_; -#line 559 "/home/jens/Source/shotwell/src/Dialogs.vala" - import_ui_save_import_results (G_TYPE_CHECK_INSTANCE_CAST (_tmp460_, gtk_window_get_type (), GtkWindow), _tmp462_); -#line 559 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp462_); -#line 560 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp463_ = dialog; -#line 560 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog_response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp463_, gtk_dialog_get_type (), GtkDialog)); -#line 5518 "Dialogs.c" - } -#line 563 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp464_ = dialog; -#line 563 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp464_, gtk_widget_get_type (), GtkWidget)); -#line 564 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp465_ = dialog; -#line 564 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp465_, gtk_widget_get_type (), GtkWidget)); -#line 527 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (no_button); -#line 527 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (save_results_button); -#line 5532 "Dialogs.c" - } -#line 567 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp466_ = dialog_response; -#line 567 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp466_ == ((gint) GTK_RESPONSE_YES); -#line 567 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (dialog); -#line 567 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (message); -#line 567 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 5544 "Dialogs.c" -} - - -static guint8* -string_get_data (const gchar* self, - int* result_length1) -{ - guint8* result; - guint8* res = NULL; - gint res_length1; - gint _res_size_; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - guint8* _tmp3_; - gint _tmp3__length1; - guint8* _tmp4_; - gint _tmp4__length1; -#line 1442 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = (guint8*) self; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = -1; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _res_size_ = res_length1; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = (gint) _tmp1_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = res; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3__length1 = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4__length1 = _tmp3__length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (result_length1) { -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result_length1 = _tmp4__length1; -#line 5591 "Dialogs.c" - } -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp4_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 5597 "Dialogs.c" -} - - -void -import_ui_save_import_results (GtkWindow* chooser_dialog_parent, - const gchar* results_log) -{ - GtkFileChooserDialog* chooser_dialog = NULL; - GtkFileChooserDialog* _tmp0_; - GtkFileChooserDialog* _tmp1_; - GtkFileChooserDialog* _tmp2_; - const gchar* _tmp3_; - GtkFileChooserDialog* _tmp4_; - GtkFileChooserDialog* _tmp5_; - gint dialog_result = 0; - GtkFileChooserDialog* _tmp6_; - GFile* chosen_file = NULL; - GtkFileChooserDialog* _tmp7_; - GFile* _tmp8_; - GtkFileChooserDialog* _tmp9_; - GtkFileChooserDialog* _tmp10_; - gboolean _tmp11_ = FALSE; - gint _tmp12_; - GError * _inner_error_ = NULL; -#line 570 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail ((chooser_dialog_parent == NULL) || GTK_IS_WINDOW (chooser_dialog_parent)); -#line 570 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (results_log != NULL); -#line 571 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (IMPORT_UI_SAVE_RESULTS_FILE_CHOOSER_TITLE, chooser_dialog_parent, GTK_FILE_CHOOSER_ACTION_SAVE, RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, RESOURCES_SAVE_AS_LABEL, GTK_RESPONSE_ACCEPT, NULL, NULL); -#line 571 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_object_ref_sink (_tmp0_); -#line 571 "/home/jens/Source/shotwell/src/Dialogs.vala" - chooser_dialog = _tmp0_; -#line 574 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = chooser_dialog; -#line 574 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_file_chooser_set_do_overwrite_confirmation (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_file_chooser_get_type (), GtkFileChooser), TRUE); -#line 575 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = chooser_dialog; -#line 575 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = g_get_home_dir (); -#line 575 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_file_chooser_set_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_file_chooser_get_type (), GtkFileChooser), _tmp3_); -#line 576 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = chooser_dialog; -#line 576 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_file_chooser_set_current_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_file_chooser_get_type (), GtkFileChooser), "Shotwell Import Log.txt"); -#line 577 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = chooser_dialog; -#line 577 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_file_chooser_set_local_only (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_file_chooser_get_type (), GtkFileChooser), FALSE); -#line 579 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = chooser_dialog; -#line 579 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog_result = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_dialog_get_type (), GtkDialog)); -#line 580 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = chooser_dialog; -#line 580 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp8_ = gtk_file_chooser_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_file_chooser_get_type (), GtkFileChooser)); -#line 580 "/home/jens/Source/shotwell/src/Dialogs.vala" - chosen_file = _tmp8_; -#line 581 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp9_ = chooser_dialog; -#line 581 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget)); -#line 582 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp10_ = chooser_dialog; -#line 582 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget)); -#line 584 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp12_ = dialog_result; -#line 584 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp12_ == ((gint) GTK_RESPONSE_ACCEPT)) { -#line 5672 "Dialogs.c" - GFile* _tmp13_; -#line 584 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp13_ = chosen_file; -#line 584 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp11_ = _tmp13_ != NULL; -#line 5678 "Dialogs.c" - } else { -#line 584 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp11_ = FALSE; -#line 5682 "Dialogs.c" - } -#line 584 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp11_) { -#line 5686 "Dialogs.c" - { - GFileOutputStream* outstream = NULL; - GFile* _tmp14_; - GFileOutputStream* _tmp15_; - GFileOutputStream* _tmp16_; - guint8* _tmp17_; - gint _tmp17__length1; - guint8* _tmp18_; - gint _tmp18__length1; - GFileOutputStream* _tmp19_; -#line 586 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp14_ = chosen_file; -#line 586 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp15_ = g_file_replace (_tmp14_, NULL, FALSE, G_FILE_CREATE_NONE, NULL, &_inner_error_); -#line 586 "/home/jens/Source/shotwell/src/Dialogs.vala" - outstream = _tmp15_; -#line 586 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5705 "Dialogs.c" - goto __catch437_g_error; - } -#line 587 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp16_ = outstream; -#line 587 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp17_ = string_get_data (results_log, &_tmp17__length1); -#line 587 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp18_ = _tmp17_; -#line 587 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp18__length1 = _tmp17__length1; -#line 587 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_output_stream_write (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, g_output_stream_get_type (), GOutputStream), _tmp18_, (gsize) _tmp18__length1, NULL, &_inner_error_); -#line 587 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 587 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (outstream); -#line 5722 "Dialogs.c" - goto __catch437_g_error; - } -#line 588 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp19_ = outstream; -#line 588 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_output_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, g_output_stream_get_type (), GOutputStream), NULL, &_inner_error_); -#line 588 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 588 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (outstream); -#line 5733 "Dialogs.c" - goto __catch437_g_error; - } -#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (outstream); -#line 5738 "Dialogs.c" - } - goto __finally437; - __catch437_g_error: - { - GError* err = NULL; - GFile* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - GError* _tmp23_; - const gchar* _tmp24_; -#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala" - err = _inner_error_; -#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala" - _inner_error_ = NULL; -#line 590 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp20_ = chosen_file; -#line 590 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp21_ = g_file_get_path (_tmp20_); -#line 590 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp22_ = _tmp21_; -#line 590 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp23_ = err; -#line 590 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp24_ = _tmp23_->message; -#line 590 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_critical ("Dialogs.vala:590: couldn't save import results to log file %s: %s", _tmp22_, _tmp24_); -#line 590 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp22_); -#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_error_free0 (err); -#line 5769 "Dialogs.c" - } - __finally437: -#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (chosen_file); -#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (chooser_dialog); -#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_clear_error (&_inner_error_); -#line 585 "/home/jens/Source/shotwell/src/Dialogs.vala" - return; -#line 5784 "Dialogs.c" - } - } -#line 570 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (chosen_file); -#line 570 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (chooser_dialog); -#line 5791 "Dialogs.c" -} - - -static gboolean -_text_entry_dialog_mediator_on_modify_validate_text_entry_dialog_on_modify_validate_type (const gchar* text, - gpointer self) -{ - gboolean result; - result = text_entry_dialog_mediator_on_modify_validate ((TextEntryDialogMediator*) self, text); -#line 604 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 5803 "Dialogs.c" -} - - -TextEntryDialogMediator* -text_entry_dialog_mediator_construct (GType object_type, - const gchar* title, - const gchar* label, - const gchar* initial_text, - GeeCollection* completion_list, - const gchar* completion_delimiter) -{ - TextEntryDialogMediator* self = NULL; - TextEntryDialog* _tmp0_; - TextEntryDialog* _tmp1_; -#line 601 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (title != NULL, NULL); -#line 601 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (label != NULL, NULL); -#line 601 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail ((completion_list == NULL) || GEE_IS_COLLECTION (completion_list), NULL); -#line 601 "/home/jens/Source/shotwell/src/Dialogs.vala" - self = (TextEntryDialogMediator*) g_type_create_instance (object_type); -#line 603 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = text_entry_dialog_new (); -#line 603 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_object_ref_sink (_tmp0_); -#line 603 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (self->priv->dialog); -#line 603 "/home/jens/Source/shotwell/src/Dialogs.vala" - self->priv->dialog = _tmp0_; -#line 604 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = self->priv->dialog; -#line 604 "/home/jens/Source/shotwell/src/Dialogs.vala" - text_entry_dialog_setup (_tmp1_, _text_entry_dialog_mediator_on_modify_validate_text_entry_dialog_on_modify_validate_type, self, title, label, initial_text, completion_list, completion_delimiter); -#line 601 "/home/jens/Source/shotwell/src/Dialogs.vala" - return self; -#line 5840 "Dialogs.c" -} - - -static gboolean -text_entry_dialog_mediator_real_on_modify_validate (TextEntryDialogMediator* self, - const gchar* text) -{ - gboolean result = FALSE; -#line 607 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (text != NULL, FALSE); -#line 608 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = TRUE; -#line 608 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 5855 "Dialogs.c" -} - - -gboolean -text_entry_dialog_mediator_on_modify_validate (TextEntryDialogMediator* self, - const gchar* text) -{ -#line 607 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (IS_TEXT_ENTRY_DIALOG_MEDIATOR (self), FALSE); -#line 607 "/home/jens/Source/shotwell/src/Dialogs.vala" - return TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS (self)->on_modify_validate (self, text); -#line 5867 "Dialogs.c" -} - - -gchar* -_text_entry_dialog_mediator_execute (TextEntryDialogMediator* self) -{ - gchar* result = NULL; - TextEntryDialog* _tmp0_; - gchar* _tmp1_; -#line 611 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (IS_TEXT_ENTRY_DIALOG_MEDIATOR (self), NULL); -#line 612 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = self->priv->dialog; -#line 612 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = text_entry_dialog_execute (_tmp0_); -#line 612 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp1_; -#line 612 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 5887 "Dialogs.c" -} - - -static void -value_text_entry_dialog_mediator_init (GValue* value) -{ -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = NULL; -#line 5896 "Dialogs.c" -} - - -static void -value_text_entry_dialog_mediator_free_value (GValue* value) -{ -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (value->data[0].v_pointer) { -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - text_entry_dialog_mediator_unref (value->data[0].v_pointer); -#line 5907 "Dialogs.c" - } -} - - -static void -value_text_entry_dialog_mediator_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (src_value->data[0].v_pointer) { -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - dest_value->data[0].v_pointer = text_entry_dialog_mediator_ref (src_value->data[0].v_pointer); -#line 5920 "Dialogs.c" - } else { -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - dest_value->data[0].v_pointer = NULL; -#line 5924 "Dialogs.c" - } -} - - -static gpointer -value_text_entry_dialog_mediator_peek_pointer (const GValue* value) -{ -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - return value->data[0].v_pointer; -#line 5934 "Dialogs.c" -} - - -static gchar* -value_text_entry_dialog_mediator_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (collect_values[0].v_pointer) { -#line 5946 "Dialogs.c" - TextEntryDialogMediator * object; - object = collect_values[0].v_pointer; -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (object->parent_instance.g_class == NULL) { -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5953 "Dialogs.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5957 "Dialogs.c" - } -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = text_entry_dialog_mediator_ref (object); -#line 5961 "Dialogs.c" - } else { -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = NULL; -#line 5965 "Dialogs.c" - } -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - return NULL; -#line 5969 "Dialogs.c" -} - - -static gchar* -value_text_entry_dialog_mediator_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - TextEntryDialogMediator ** object_p; - object_p = collect_values[0].v_pointer; -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!object_p) { -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 5985 "Dialogs.c" - } -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!value->data[0].v_pointer) { -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - *object_p = NULL; -#line 5991 "Dialogs.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - *object_p = value->data[0].v_pointer; -#line 5995 "Dialogs.c" - } else { -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - *object_p = text_entry_dialog_mediator_ref (value->data[0].v_pointer); -#line 5999 "Dialogs.c" - } -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - return NULL; -#line 6003 "Dialogs.c" -} - - -GParamSpec* -param_spec_text_entry_dialog_mediator (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecTextEntryDialogMediator* spec; -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR), NULL); -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - return G_PARAM_SPEC (spec); -#line 6023 "Dialogs.c" -} - - -gpointer -value_get_text_entry_dialog_mediator (const GValue* value) -{ -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR), NULL); -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - return value->data[0].v_pointer; -#line 6034 "Dialogs.c" -} - - -void -value_set_text_entry_dialog_mediator (GValue* value, - gpointer v_object) -{ - TextEntryDialogMediator * old; -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR)); -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - old = value->data[0].v_pointer; -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (v_object) { -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR)); -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = v_object; -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - text_entry_dialog_mediator_ref (value->data[0].v_pointer); -#line 6057 "Dialogs.c" - } else { -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = NULL; -#line 6061 "Dialogs.c" - } -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (old) { -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - text_entry_dialog_mediator_unref (old); -#line 6067 "Dialogs.c" - } -} - - -void -value_take_text_entry_dialog_mediator (GValue* value, - gpointer v_object) -{ - TextEntryDialogMediator * old; -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR)); -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - old = value->data[0].v_pointer; -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (v_object) { -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR)); -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = v_object; -#line 6089 "Dialogs.c" - } else { -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = NULL; -#line 6093 "Dialogs.c" - } -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (old) { -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - text_entry_dialog_mediator_unref (old); -#line 6099 "Dialogs.c" - } -} - - -static void -text_entry_dialog_mediator_class_init (TextEntryDialogMediatorClass * klass) -{ -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - text_entry_dialog_mediator_parent_class = g_type_class_peek_parent (klass); -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - ((TextEntryDialogMediatorClass *) klass)->finalize = text_entry_dialog_mediator_finalize; -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_type_class_add_private (klass, sizeof (TextEntryDialogMediatorPrivate)); -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - ((TextEntryDialogMediatorClass *) klass)->on_modify_validate = (gboolean (*) (TextEntryDialogMediator *, const gchar*)) text_entry_dialog_mediator_real_on_modify_validate; -#line 6115 "Dialogs.c" -} - - -static void -text_entry_dialog_mediator_instance_init (TextEntryDialogMediator * self) -{ -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - self->priv = TEXT_ENTRY_DIALOG_MEDIATOR_GET_PRIVATE (self); -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - self->ref_count = 1; -#line 6126 "Dialogs.c" -} - - -static void -text_entry_dialog_mediator_finalize (TextEntryDialogMediator * obj) -{ - TextEntryDialogMediator * self; -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator); -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_signal_handlers_destroy (self); -#line 599 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (self->priv->dialog); -#line 6140 "Dialogs.c" -} - - -GType -text_entry_dialog_mediator_get_type (void) -{ - static volatile gsize text_entry_dialog_mediator_type_id__volatile = 0; - if (g_once_init_enter (&text_entry_dialog_mediator_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_text_entry_dialog_mediator_init, value_text_entry_dialog_mediator_free_value, value_text_entry_dialog_mediator_copy_value, value_text_entry_dialog_mediator_peek_pointer, "p", value_text_entry_dialog_mediator_collect_value, "p", value_text_entry_dialog_mediator_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (TextEntryDialogMediatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) text_entry_dialog_mediator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TextEntryDialogMediator), 0, (GInstanceInitFunc) text_entry_dialog_mediator_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType text_entry_dialog_mediator_type_id; - text_entry_dialog_mediator_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TextEntryDialogMediator", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&text_entry_dialog_mediator_type_id__volatile, text_entry_dialog_mediator_type_id); - } - return text_entry_dialog_mediator_type_id__volatile; -} - - -gpointer -text_entry_dialog_mediator_ref (gpointer instance) -{ - TextEntryDialogMediator * self; - self = instance; -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_atomic_int_inc (&self->ref_count); -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - return instance; -#line 6169 "Dialogs.c" -} - - -void -text_entry_dialog_mediator_unref (gpointer instance) -{ - TextEntryDialogMediator * self; - self = instance; -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS (self)->finalize (self); -#line 598 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 6184 "Dialogs.c" - } -} - - -static gboolean -_multi_text_entry_dialog_mediator_on_modify_validate_multi_text_entry_dialog_on_modify_validate_type (const gchar* text, - gpointer self) -{ - gboolean result; - result = multi_text_entry_dialog_mediator_on_modify_validate ((MultiTextEntryDialogMediator*) self, text); -#line 621 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 6197 "Dialogs.c" -} - - -MultiTextEntryDialogMediator* -multi_text_entry_dialog_mediator_construct (GType object_type, - const gchar* title, - const gchar* label, - const gchar* initial_text) -{ - MultiTextEntryDialogMediator* self = NULL; - MultiTextEntryDialog* _tmp0_; - MultiTextEntryDialog* _tmp1_; -#line 619 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (title != NULL, NULL); -#line 619 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (label != NULL, NULL); -#line 619 "/home/jens/Source/shotwell/src/Dialogs.vala" - self = (MultiTextEntryDialogMediator*) g_type_create_instance (object_type); -#line 620 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = multi_text_entry_dialog_new (); -#line 620 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_object_ref_sink (_tmp0_); -#line 620 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (self->priv->dialog); -#line 620 "/home/jens/Source/shotwell/src/Dialogs.vala" - self->priv->dialog = _tmp0_; -#line 621 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = self->priv->dialog; -#line 621 "/home/jens/Source/shotwell/src/Dialogs.vala" - multi_text_entry_dialog_setup (_tmp1_, _multi_text_entry_dialog_mediator_on_modify_validate_multi_text_entry_dialog_on_modify_validate_type, self, title, label, initial_text); -#line 619 "/home/jens/Source/shotwell/src/Dialogs.vala" - return self; -#line 6230 "Dialogs.c" -} - - -static gboolean -multi_text_entry_dialog_mediator_real_on_modify_validate (MultiTextEntryDialogMediator* self, - const gchar* text) -{ - gboolean result = FALSE; -#line 624 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (text != NULL, FALSE); -#line 625 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = TRUE; -#line 625 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 6245 "Dialogs.c" -} - - -gboolean -multi_text_entry_dialog_mediator_on_modify_validate (MultiTextEntryDialogMediator* self, - const gchar* text) -{ -#line 624 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR (self), FALSE); -#line 624 "/home/jens/Source/shotwell/src/Dialogs.vala" - return MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS (self)->on_modify_validate (self, text); -#line 6257 "Dialogs.c" -} - - -gchar* -_multi_text_entry_dialog_mediator_execute (MultiTextEntryDialogMediator* self) -{ - gchar* result = NULL; - MultiTextEntryDialog* _tmp0_; - gchar* _tmp1_; -#line 628 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR (self), NULL); -#line 629 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = self->priv->dialog; -#line 629 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = multi_text_entry_dialog_execute (_tmp0_); -#line 629 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp1_; -#line 629 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 6277 "Dialogs.c" -} - - -static void -value_multi_text_entry_dialog_mediator_init (GValue* value) -{ -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = NULL; -#line 6286 "Dialogs.c" -} - - -static void -value_multi_text_entry_dialog_mediator_free_value (GValue* value) -{ -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (value->data[0].v_pointer) { -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - multi_text_entry_dialog_mediator_unref (value->data[0].v_pointer); -#line 6297 "Dialogs.c" - } -} - - -static void -value_multi_text_entry_dialog_mediator_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (src_value->data[0].v_pointer) { -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - dest_value->data[0].v_pointer = multi_text_entry_dialog_mediator_ref (src_value->data[0].v_pointer); -#line 6310 "Dialogs.c" - } else { -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - dest_value->data[0].v_pointer = NULL; -#line 6314 "Dialogs.c" - } -} - - -static gpointer -value_multi_text_entry_dialog_mediator_peek_pointer (const GValue* value) -{ -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - return value->data[0].v_pointer; -#line 6324 "Dialogs.c" -} - - -static gchar* -value_multi_text_entry_dialog_mediator_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (collect_values[0].v_pointer) { -#line 6336 "Dialogs.c" - MultiTextEntryDialogMediator * object; - object = collect_values[0].v_pointer; -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (object->parent_instance.g_class == NULL) { -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6343 "Dialogs.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6347 "Dialogs.c" - } -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = multi_text_entry_dialog_mediator_ref (object); -#line 6351 "Dialogs.c" - } else { -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = NULL; -#line 6355 "Dialogs.c" - } -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - return NULL; -#line 6359 "Dialogs.c" -} - - -static gchar* -value_multi_text_entry_dialog_mediator_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - MultiTextEntryDialogMediator ** object_p; - object_p = collect_values[0].v_pointer; -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!object_p) { -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 6375 "Dialogs.c" - } -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!value->data[0].v_pointer) { -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - *object_p = NULL; -#line 6381 "Dialogs.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - *object_p = value->data[0].v_pointer; -#line 6385 "Dialogs.c" - } else { -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - *object_p = multi_text_entry_dialog_mediator_ref (value->data[0].v_pointer); -#line 6389 "Dialogs.c" - } -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - return NULL; -#line 6393 "Dialogs.c" -} - - -GParamSpec* -param_spec_multi_text_entry_dialog_mediator (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecMultiTextEntryDialogMediator* spec; -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR), NULL); -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - return G_PARAM_SPEC (spec); -#line 6413 "Dialogs.c" -} - - -gpointer -value_get_multi_text_entry_dialog_mediator (const GValue* value) -{ -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR), NULL); -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - return value->data[0].v_pointer; -#line 6424 "Dialogs.c" -} - - -void -value_set_multi_text_entry_dialog_mediator (GValue* value, - gpointer v_object) -{ - MultiTextEntryDialogMediator * old; -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR)); -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - old = value->data[0].v_pointer; -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (v_object) { -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR)); -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = v_object; -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - multi_text_entry_dialog_mediator_ref (value->data[0].v_pointer); -#line 6447 "Dialogs.c" - } else { -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = NULL; -#line 6451 "Dialogs.c" - } -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (old) { -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - multi_text_entry_dialog_mediator_unref (old); -#line 6457 "Dialogs.c" - } -} - - -void -value_take_multi_text_entry_dialog_mediator (GValue* value, - gpointer v_object) -{ - MultiTextEntryDialogMediator * old; -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR)); -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - old = value->data[0].v_pointer; -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (v_object) { -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR)); -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = v_object; -#line 6479 "Dialogs.c" - } else { -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - value->data[0].v_pointer = NULL; -#line 6483 "Dialogs.c" - } -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (old) { -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - multi_text_entry_dialog_mediator_unref (old); -#line 6489 "Dialogs.c" - } -} - - -static void -multi_text_entry_dialog_mediator_class_init (MultiTextEntryDialogMediatorClass * klass) -{ -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - multi_text_entry_dialog_mediator_parent_class = g_type_class_peek_parent (klass); -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - ((MultiTextEntryDialogMediatorClass *) klass)->finalize = multi_text_entry_dialog_mediator_finalize; -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_type_class_add_private (klass, sizeof (MultiTextEntryDialogMediatorPrivate)); -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - ((MultiTextEntryDialogMediatorClass *) klass)->on_modify_validate = (gboolean (*) (MultiTextEntryDialogMediator *, const gchar*)) multi_text_entry_dialog_mediator_real_on_modify_validate; -#line 6505 "Dialogs.c" -} - - -static void -multi_text_entry_dialog_mediator_instance_init (MultiTextEntryDialogMediator * self) -{ -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - self->priv = MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_PRIVATE (self); -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - self->ref_count = 1; -#line 6516 "Dialogs.c" -} - - -static void -multi_text_entry_dialog_mediator_finalize (MultiTextEntryDialogMediator * obj) -{ - MultiTextEntryDialogMediator * self; -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediator); -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_signal_handlers_destroy (self); -#line 617 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (self->priv->dialog); -#line 6530 "Dialogs.c" -} - - -GType -multi_text_entry_dialog_mediator_get_type (void) -{ - static volatile gsize multi_text_entry_dialog_mediator_type_id__volatile = 0; - if (g_once_init_enter (&multi_text_entry_dialog_mediator_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_multi_text_entry_dialog_mediator_init, value_multi_text_entry_dialog_mediator_free_value, value_multi_text_entry_dialog_mediator_copy_value, value_multi_text_entry_dialog_mediator_peek_pointer, "p", value_multi_text_entry_dialog_mediator_collect_value, "p", value_multi_text_entry_dialog_mediator_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (MultiTextEntryDialogMediatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) multi_text_entry_dialog_mediator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MultiTextEntryDialogMediator), 0, (GInstanceInitFunc) multi_text_entry_dialog_mediator_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType multi_text_entry_dialog_mediator_type_id; - multi_text_entry_dialog_mediator_type_id = g_type_register_fundamental (g_type_fundamental_next (), "MultiTextEntryDialogMediator", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&multi_text_entry_dialog_mediator_type_id__volatile, multi_text_entry_dialog_mediator_type_id); - } - return multi_text_entry_dialog_mediator_type_id__volatile; -} - - -gpointer -multi_text_entry_dialog_mediator_ref (gpointer instance) -{ - MultiTextEntryDialogMediator * self; - self = instance; -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_atomic_int_inc (&self->ref_count); -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - return instance; -#line 6559 "Dialogs.c" -} - - -void -multi_text_entry_dialog_mediator_unref (gpointer instance) -{ - MultiTextEntryDialogMediator * self; - self = instance; -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS (self)->finalize (self); -#line 616 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 6574 "Dialogs.c" - } -} - - -gchar* -build_alert_body_text (const gchar* primary_text, - const gchar* secondary_text, - gboolean should_escape) -{ - gchar* result = NULL; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 638 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (should_escape) { -#line 6591 "Dialogs.c" - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = guarded_markup_escape_text (primary_text); -#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = _tmp0_; -#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = guarded_markup_escape_text (secondary_text); -#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = _tmp2_; -#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = g_strdup_printf ("%s\n%s", _tmp1_, _tmp3_); -#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = _tmp4_; -#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp3_); -#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp1_); -#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp5_; -#line 639 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 6618 "Dialogs.c" - } -#line 643 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = guarded_markup_escape_text (primary_text); -#line 643 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = _tmp6_; -#line 643 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp8_ = g_strdup_printf ("%s\n%s", _tmp7_, secondary_text); -#line 643 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp9_ = _tmp8_; -#line 643 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp7_); -#line 643 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp9_; -#line 643 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 6634 "Dialogs.c" -} - - -EventRenameDialog* -event_rename_dialog_construct (GType object_type, - const gchar* event_name) -{ - EventRenameDialog* self = NULL; -#line 650 "/home/jens/Source/shotwell/src/Dialogs.vala" - self = (EventRenameDialog*) text_entry_dialog_mediator_construct (object_type, _ ("Rename Event"), _ ("Name:"), event_name, NULL, NULL); -#line 649 "/home/jens/Source/shotwell/src/Dialogs.vala" - return self; -#line 6647 "Dialogs.c" -} - - -EventRenameDialog* -event_rename_dialog_new (const gchar* event_name) -{ -#line 649 "/home/jens/Source/shotwell/src/Dialogs.vala" - return event_rename_dialog_construct (TYPE_EVENT_RENAME_DIALOG, event_name); -#line 6656 "Dialogs.c" -} - - -static gchar* -event_rename_dialog_real_execute (EventRenameDialog* self) -{ - gchar* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 654 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = _text_entry_dialog_mediator_execute (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator)); -#line 654 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = _tmp0_; -#line 654 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = event_prep_event_name (_tmp1_); -#line 654 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = _tmp2_; -#line 654 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp1_); -#line 654 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp3_; -#line 654 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 6682 "Dialogs.c" -} - - -gchar* -event_rename_dialog_execute (EventRenameDialog* self) -{ -#line 653 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (IS_EVENT_RENAME_DIALOG (self), NULL); -#line 653 "/home/jens/Source/shotwell/src/Dialogs.vala" - return EVENT_RENAME_DIALOG_GET_CLASS (self)->execute (self); -#line 6693 "Dialogs.c" -} - - -static void -event_rename_dialog_class_init (EventRenameDialogClass * klass) -{ -#line 648 "/home/jens/Source/shotwell/src/Dialogs.vala" - event_rename_dialog_parent_class = g_type_class_peek_parent (klass); -#line 648 "/home/jens/Source/shotwell/src/Dialogs.vala" - ((EventRenameDialogClass *) klass)->execute = (gchar* (*) (EventRenameDialog *)) event_rename_dialog_real_execute; -#line 6704 "Dialogs.c" -} - - -static void -event_rename_dialog_instance_init (EventRenameDialog * self) -{ -} - - -GType -event_rename_dialog_get_type (void) -{ - static volatile gsize event_rename_dialog_type_id__volatile = 0; - if (g_once_init_enter (&event_rename_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventRenameDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_rename_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventRenameDialog), 0, (GInstanceInitFunc) event_rename_dialog_instance_init, NULL }; - GType event_rename_dialog_type_id; - event_rename_dialog_type_id = g_type_register_static (TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, "EventRenameDialog", &g_define_type_info, 0); - g_once_init_leave (&event_rename_dialog_type_id__volatile, event_rename_dialog_type_id); - } - return event_rename_dialog_type_id__volatile; -} - - -EditTitleDialog* -edit_title_dialog_construct (GType object_type, - const gchar* photo_title) -{ - EditTitleDialog* self = NULL; -#line 661 "/home/jens/Source/shotwell/src/Dialogs.vala" - self = (EditTitleDialog*) text_entry_dialog_mediator_construct (object_type, C_ ("Dialog Title", "Edit Title"), _ ("Title:"), photo_title, NULL, NULL); -#line 659 "/home/jens/Source/shotwell/src/Dialogs.vala" - return self; -#line 6737 "Dialogs.c" -} - - -EditTitleDialog* -edit_title_dialog_new (const gchar* photo_title) -{ -#line 659 "/home/jens/Source/shotwell/src/Dialogs.vala" - return edit_title_dialog_construct (TYPE_EDIT_TITLE_DIALOG, photo_title); -#line 6746 "Dialogs.c" -} - - -static gchar* -edit_title_dialog_real_execute (EditTitleDialog* self) -{ - gchar* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 666 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = _text_entry_dialog_mediator_execute (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator)); -#line 666 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = _tmp0_; -#line 666 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = media_source_prep_title (_tmp1_); -#line 666 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = _tmp2_; -#line 666 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp1_); -#line 666 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp3_; -#line 666 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 6772 "Dialogs.c" -} - - -gchar* -edit_title_dialog_execute (EditTitleDialog* self) -{ -#line 665 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (IS_EDIT_TITLE_DIALOG (self), NULL); -#line 665 "/home/jens/Source/shotwell/src/Dialogs.vala" - return EDIT_TITLE_DIALOG_GET_CLASS (self)->execute (self); -#line 6783 "Dialogs.c" -} - - -static gboolean -edit_title_dialog_real_on_modify_validate (TextEntryDialogMediator* base, - const gchar* text) -{ - EditTitleDialog * self; - gboolean result = FALSE; -#line 669 "/home/jens/Source/shotwell/src/Dialogs.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_TITLE_DIALOG, EditTitleDialog); -#line 669 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (text != NULL, FALSE); -#line 670 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = TRUE; -#line 670 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 6801 "Dialogs.c" -} - - -static void -edit_title_dialog_class_init (EditTitleDialogClass * klass) -{ -#line 658 "/home/jens/Source/shotwell/src/Dialogs.vala" - edit_title_dialog_parent_class = g_type_class_peek_parent (klass); -#line 658 "/home/jens/Source/shotwell/src/Dialogs.vala" - ((EditTitleDialogClass *) klass)->execute = (gchar* (*) (EditTitleDialog *)) edit_title_dialog_real_execute; -#line 658 "/home/jens/Source/shotwell/src/Dialogs.vala" - ((TextEntryDialogMediatorClass *) klass)->on_modify_validate = (gboolean (*) (TextEntryDialogMediator *, const gchar*)) edit_title_dialog_real_on_modify_validate; -#line 6814 "Dialogs.c" -} - - -static void -edit_title_dialog_instance_init (EditTitleDialog * self) -{ -} - - -GType -edit_title_dialog_get_type (void) -{ - static volatile gsize edit_title_dialog_type_id__volatile = 0; - if (g_once_init_enter (&edit_title_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditTitleDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_title_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditTitleDialog), 0, (GInstanceInitFunc) edit_title_dialog_instance_init, NULL }; - GType edit_title_dialog_type_id; - edit_title_dialog_type_id = g_type_register_static (TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, "EditTitleDialog", &g_define_type_info, 0); - g_once_init_leave (&edit_title_dialog_type_id__volatile, edit_title_dialog_type_id); - } - return edit_title_dialog_type_id__volatile; -} - - -EditCommentDialog* -edit_comment_dialog_construct (GType object_type, - const gchar* comment, - gboolean is_event) -{ - EditCommentDialog* self = NULL; - const gchar* _tmp0_ = NULL; - gchar* title_tmp = NULL; - gchar* _tmp1_; -#line 676 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (is_event) { -#line 678 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = _ ("Edit Event Comment"); -#line 6851 "Dialogs.c" - } else { -#line 679 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = _ ("Edit Photo/Video Comment"); -#line 6855 "Dialogs.c" - } -#line 676 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 676 "/home/jens/Source/shotwell/src/Dialogs.vala" - title_tmp = _tmp1_; -#line 680 "/home/jens/Source/shotwell/src/Dialogs.vala" - self = (EditCommentDialog*) multi_text_entry_dialog_mediator_construct (object_type, title_tmp, _ ("Comment:"), comment); -#line 675 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (title_tmp); -#line 675 "/home/jens/Source/shotwell/src/Dialogs.vala" - return self; -#line 6867 "Dialogs.c" -} - - -EditCommentDialog* -edit_comment_dialog_new (const gchar* comment, - gboolean is_event) -{ -#line 675 "/home/jens/Source/shotwell/src/Dialogs.vala" - return edit_comment_dialog_construct (TYPE_EDIT_COMMENT_DIALOG, comment, is_event); -#line 6877 "Dialogs.c" -} - - -static gchar* -edit_comment_dialog_real_execute (EditCommentDialog* self) -{ - gchar* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 684 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = _multi_text_entry_dialog_mediator_execute (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediator)); -#line 684 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = _tmp0_; -#line 684 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = media_source_prep_comment (_tmp1_); -#line 684 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = _tmp2_; -#line 684 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp1_); -#line 684 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp3_; -#line 684 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 6903 "Dialogs.c" -} - - -gchar* -edit_comment_dialog_execute (EditCommentDialog* self) -{ -#line 683 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (IS_EDIT_COMMENT_DIALOG (self), NULL); -#line 683 "/home/jens/Source/shotwell/src/Dialogs.vala" - return EDIT_COMMENT_DIALOG_GET_CLASS (self)->execute (self); -#line 6914 "Dialogs.c" -} - - -static gboolean -edit_comment_dialog_real_on_modify_validate (MultiTextEntryDialogMediator* base, - const gchar* text) -{ - EditCommentDialog * self; - gboolean result = FALSE; -#line 687 "/home/jens/Source/shotwell/src/Dialogs.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDIT_COMMENT_DIALOG, EditCommentDialog); -#line 687 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (text != NULL, FALSE); -#line 688 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = TRUE; -#line 688 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 6932 "Dialogs.c" -} - - -static void -edit_comment_dialog_class_init (EditCommentDialogClass * klass) -{ -#line 674 "/home/jens/Source/shotwell/src/Dialogs.vala" - edit_comment_dialog_parent_class = g_type_class_peek_parent (klass); -#line 674 "/home/jens/Source/shotwell/src/Dialogs.vala" - ((EditCommentDialogClass *) klass)->execute = (gchar* (*) (EditCommentDialog *)) edit_comment_dialog_real_execute; -#line 674 "/home/jens/Source/shotwell/src/Dialogs.vala" - ((MultiTextEntryDialogMediatorClass *) klass)->on_modify_validate = (gboolean (*) (MultiTextEntryDialogMediator *, const gchar*)) edit_comment_dialog_real_on_modify_validate; -#line 6945 "Dialogs.c" -} - - -static void -edit_comment_dialog_instance_init (EditCommentDialog * self) -{ -} - - -GType -edit_comment_dialog_get_type (void) -{ - static volatile gsize edit_comment_dialog_type_id__volatile = 0; - if (g_once_init_enter (&edit_comment_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditCommentDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) edit_comment_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditCommentDialog), 0, (GInstanceInitFunc) edit_comment_dialog_instance_init, NULL }; - GType edit_comment_dialog_type_id; - edit_comment_dialog_type_id = g_type_register_static (TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, "EditCommentDialog", &g_define_type_info, 0); - g_once_init_leave (&edit_comment_dialog_type_id__volatile, edit_comment_dialog_type_id); - } - return edit_comment_dialog_type_id__volatile; -} - - -GtkResponseType -remove_from_library_dialog (GtkWindow* owner, - const gchar* title, - const gchar* user_message, - gint count) -{ - GtkResponseType result = 0; - gchar* trash_action = NULL; - gchar* _tmp0_; - GtkMessageDialog* dialog = NULL; - GtkMessageDialog* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GtkResponseType _result_ = 0; -#line 694 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (GTK_IS_WINDOW (owner), 0); -#line 694 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (title != NULL, 0); -#line 694 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (user_message != NULL, 0); -#line 696 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = g_strdup (ngettext ("Remove and _Trash File", "Remove and _Trash Files", (gulong) count)); -#line 696 "/home/jens/Source/shotwell/src/Dialogs.vala" - trash_action = _tmp0_; -#line 698 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = (GtkMessageDialog*) gtk_message_dialog_new (owner, GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_CANCEL, "%s", user_message); -#line 698 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_object_ref_sink (_tmp1_); -#line 698 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog = _tmp1_; -#line 700 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), _ ("_Remove From Library"), (gint) GTK_RESPONSE_NO); -#line 701 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), trash_action, (gint) GTK_RESPONSE_YES); -#line 706 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = build_alert_body_text (title, user_message, TRUE); -#line 706 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = _tmp2_; -#line 706 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_message_dialog_set_markup (dialog, _tmp3_); -#line 706 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp3_); -#line 708 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_ = (GtkResponseType) gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog)); -#line 710 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget)); -#line 712 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _result_; -#line 712 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (dialog); -#line 712 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (trash_action); -#line 712 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 7023 "Dialogs.c" -} - - -GtkResponseType -remove_from_filesystem_dialog (GtkWindow* owner, - const gchar* title, - const gchar* user_message) -{ - GtkResponseType result = 0; - GtkMessageDialog* dialog = NULL; - GtkMessageDialog* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - GtkResponseType _result_ = 0; -#line 716 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (GTK_IS_WINDOW (owner), 0); -#line 716 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (title != NULL, 0); -#line 716 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (user_message != NULL, 0); -#line 718 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = (GtkMessageDialog*) gtk_message_dialog_new (owner, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", user_message); -#line 718 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_object_ref_sink (_tmp0_); -#line 718 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog = _tmp0_; -#line 720 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), _ ("_Keep"), (gint) GTK_RESPONSE_NO); -#line 721 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), _ ("_Delete"), (gint) GTK_RESPONSE_YES); -#line 722 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_dialog_set_default_response (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_NO); -#line 724 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = build_alert_body_text (title, user_message, TRUE); -#line 724 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = _tmp1_; -#line 724 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_message_dialog_set_markup (dialog, _tmp2_); -#line 724 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp2_); -#line 726 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_ = (GtkResponseType) gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog)); -#line 728 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget)); -#line 730 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _result_; -#line 730 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (dialog); -#line 730 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 7074 "Dialogs.c" -} - - -gboolean -revert_editable_dialog (GtkWindow* owner, - GeeCollection* photos) -{ - gboolean result = FALSE; - gint count = 0; - gint _tmp6_; - const gchar* _tmp7_ = NULL; - gint _tmp8_; - gchar* headline = NULL; - gchar* _tmp9_; - gchar* msg = NULL; - gint _tmp10_; - gint _tmp11_; - gchar* _tmp12_; - const gchar* _tmp13_ = NULL; - gint _tmp14_; - gchar* action = NULL; - gchar* _tmp15_; - GtkMessageDialog* dialog = NULL; - const gchar* _tmp16_; - GtkMessageDialog* _tmp17_; - GtkMessageDialog* _tmp18_; - GtkMessageDialog* _tmp19_; - const gchar* _tmp20_; - GtkMessageDialog* _tmp21_; - const gchar* _tmp22_; - const gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - GtkResponseType _result_ = 0; - GtkMessageDialog* _tmp26_; - GtkMessageDialog* _tmp27_; - GtkResponseType _tmp28_; -#line 733 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (GTK_IS_WINDOW (owner), FALSE); -#line 733 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (photos), FALSE); -#line 734 "/home/jens/Source/shotwell/src/Dialogs.vala" - count = 0; -#line 7118 "Dialogs.c" - { - GeeIterator* _photo_it = NULL; - GeeIterator* _tmp0_; -#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_ITERABLE, GeeIterable)); -#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala" - _photo_it = _tmp0_; -#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala" - while (TRUE) { -#line 7128 "Dialogs.c" - GeeIterator* _tmp1_; - Photo* photo = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - Photo* _tmp4_; -#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = _photo_it; -#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala" - break; -#line 7140 "Dialogs.c" - } -#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = _photo_it; -#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala" - photo = (Photo*) _tmp3_; -#line 736 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = photo; -#line 736 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (photo_has_editable (_tmp4_)) { -#line 7152 "Dialogs.c" - gint _tmp5_; -#line 737 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = count; -#line 737 "/home/jens/Source/shotwell/src/Dialogs.vala" - count = _tmp5_ + 1; -#line 7158 "Dialogs.c" - } -#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (photo); -#line 7162 "Dialogs.c" - } -#line 735 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_photo_it); -#line 7166 "Dialogs.c" - } -#line 740 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = count; -#line 740 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp6_ == 0) { -#line 741 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = FALSE; -#line 741 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 7176 "Dialogs.c" - } -#line 743 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp8_ = count; -#line 743 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp8_ == 1) { -#line 743 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = _ ("Revert External Edit?"); -#line 7184 "Dialogs.c" - } else { -#line 743 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = _ ("Revert External Edits?"); -#line 7188 "Dialogs.c" - } -#line 743 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp9_ = g_strdup (_tmp7_); -#line 743 "/home/jens/Source/shotwell/src/Dialogs.vala" - headline = _tmp9_; -#line 744 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp10_ = count; -#line 744 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp11_ = count; -#line 744 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp12_ = g_strdup_printf (ngettext ("This will destroy all changes made to the external file. Continue?", "This will destroy all changes made to %d external files. Continue?", (gulong) _tmp10_), _tmp11_); -#line 744 "/home/jens/Source/shotwell/src/Dialogs.vala" - msg = _tmp12_; -#line 749 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp14_ = count; -#line 749 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp14_ == 1) { -#line 749 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp13_ = _ ("Re_vert External Edit"); -#line 7208 "Dialogs.c" - } else { -#line 749 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp13_ = _ ("Re_vert External Edits"); -#line 7212 "Dialogs.c" - } -#line 749 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp15_ = g_strdup (_tmp13_); -#line 749 "/home/jens/Source/shotwell/src/Dialogs.vala" - action = _tmp15_; -#line 751 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp16_ = msg; -#line 751 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp17_ = (GtkMessageDialog*) gtk_message_dialog_new (owner, GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, "%s", _tmp16_); -#line 751 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_object_ref_sink (_tmp17_); -#line 751 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog = _tmp17_; -#line 753 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp18_ = dialog; -#line 753 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_dialog_get_type (), GtkDialog), _ ("_Cancel"), (gint) GTK_RESPONSE_CANCEL); -#line 754 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp19_ = dialog; -#line 754 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp20_ = action; -#line 754 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_dialog_get_type (), GtkDialog), _tmp20_, (gint) GTK_RESPONSE_YES); -#line 756 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp21_ = dialog; -#line 756 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp22_ = headline; -#line 756 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp23_ = msg; -#line 756 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp24_ = build_alert_body_text (_tmp22_, _tmp23_, TRUE); -#line 756 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp25_ = _tmp24_; -#line 756 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_message_dialog_set_markup (_tmp21_, _tmp25_); -#line 756 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp25_); -#line 758 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp26_ = dialog; -#line 758 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_ = (GtkResponseType) gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_dialog_get_type (), GtkDialog)); -#line 760 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp27_ = dialog; -#line 760 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget)); -#line 762 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp28_ = _result_; -#line 762 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp28_ == GTK_RESPONSE_YES; -#line 762 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (dialog); -#line 762 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (action); -#line 762 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (msg); -#line 762 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (headline); -#line 762 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 7272 "Dialogs.c" -} - - -gboolean -remove_offline_dialog (GtkWindow* owner, - gint count) -{ - gboolean result = FALSE; - gchar* msg = NULL; - gchar* _tmp0_; - GtkMessageDialog* dialog = NULL; - const gchar* _tmp1_; - GtkMessageDialog* _tmp2_; - GtkMessageDialog* _tmp3_; - GtkMessageDialog* _tmp4_; - const gchar* _tmp5_ = NULL; - GtkMessageDialog* _tmp6_; - GtkResponseType _result_ = 0; - GtkMessageDialog* _tmp7_; - GtkMessageDialog* _tmp8_; - GtkResponseType _tmp9_; -#line 765 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (GTK_IS_WINDOW (owner), FALSE); -#line 766 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (count == 0) { -#line 767 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = FALSE; -#line 767 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 7302 "Dialogs.c" - } -#line 769 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = g_strdup_printf (ngettext ("This will remove the photo from the library. Continue?", "This will remove %d photos from the library. Continue?", (gulong) count), count); -#line 769 "/home/jens/Source/shotwell/src/Dialogs.vala" - msg = _tmp0_; -#line 774 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = msg; -#line 774 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = (GtkMessageDialog*) gtk_message_dialog_new (owner, GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, "%s", _tmp1_); -#line 774 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_object_ref_sink (_tmp2_); -#line 774 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog = _tmp2_; -#line 776 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = dialog; -#line 776 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_dialog_get_type (), GtkDialog), _ ("_Cancel"), (gint) GTK_RESPONSE_CANCEL); -#line 777 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = dialog; -#line 777 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_dialog_get_type (), GtkDialog), _ ("_Remove"), (gint) GTK_RESPONSE_OK); -#line 778 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (count == 1) { -#line 778 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = _ ("Remove Photo From Library"); -#line 7328 "Dialogs.c" - } else { -#line 778 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = _ ("Remove Photos From Library"); -#line 7332 "Dialogs.c" - } -#line 778 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = dialog; -#line 778 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow), _tmp5_); -#line 780 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = dialog; -#line 780 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_ = (GtkResponseType) gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_dialog_get_type (), GtkDialog)); -#line 782 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp8_ = dialog; -#line 782 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget)); -#line 784 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp9_ = _result_; -#line 784 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp9_ == GTK_RESPONSE_OK; -#line 784 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (dialog); -#line 784 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (msg); -#line 784 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 7356 "Dialogs.c" -} - - -void -multiple_object_error_dialog (GeeArrayList* objects, - const gchar* message, - const gchar* title) -{ - gchar* dialog_message = NULL; - gchar* _tmp0_; - gint remainder = 0; - gint _tmp17_; - gint _tmp18_; - gint _tmp19_; - GtkMessageDialog* dialog = NULL; - AppWindow* _tmp26_; - AppWindow* _tmp27_; - const gchar* _tmp28_; - GtkMessageDialog* _tmp29_; - GtkMessageDialog* _tmp30_; -#line 788 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (GEE_IS_ARRAY_LIST (objects)); -#line 788 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (message != NULL); -#line 788 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (title != NULL); -#line 790 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = g_strconcat (message, "\n", NULL); -#line 790 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog_message = _tmp0_; -#line 7387 "Dialogs.c" - { - gint i = 0; -#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala" - i = 0; -#line 7392 "Dialogs.c" - { - gboolean _tmp1_ = FALSE; -#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = TRUE; -#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala" - while (TRUE) { -#line 7399 "Dialogs.c" - gboolean _tmp3_ = FALSE; - gint _tmp4_; - const gchar* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - DataObject* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; -#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!_tmp1_) { -#line 7413 "Dialogs.c" - gint _tmp2_; -#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = i; -#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala" - i = _tmp2_ + 1; -#line 7419 "Dialogs.c" - } -#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = FALSE; -#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = i; -#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp4_ < MAX_OBJECTS_DISPLAYED) { -#line 7427 "Dialogs.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; -#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (objects, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = _tmp5_; -#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = i; -#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = _tmp6_ > _tmp7_; -#line 7439 "Dialogs.c" - } else { -#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = FALSE; -#line 7443 "Dialogs.c" - } -#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!_tmp3_) { -#line 793 "/home/jens/Source/shotwell/src/Dialogs.vala" - break; -#line 7449 "Dialogs.c" - } -#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp8_ = dialog_message; -#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp9_ = i; -#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (objects, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_); -#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp11_ = (DataObject*) _tmp10_; -#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp12_ = data_object_to_string (_tmp11_); -#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp13_ = _tmp12_; -#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp14_ = g_strconcat ("\n", _tmp13_, NULL); -#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp15_ = _tmp14_; -#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp16_ = g_strconcat (_tmp8_, _tmp15_, NULL); -#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (dialog_message); -#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog_message = _tmp16_; -#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp15_); -#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp13_); -#line 794 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp11_); -#line 7479 "Dialogs.c" - } - } - } -#line 796 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp17_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (objects, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 796 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp18_ = _tmp17_; -#line 796 "/home/jens/Source/shotwell/src/Dialogs.vala" - remainder = _tmp18_ - MAX_OBJECTS_DISPLAYED; -#line 797 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp19_ = remainder; -#line 797 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp19_ > 0) { -#line 7493 "Dialogs.c" - const gchar* _tmp20_; - gint _tmp21_; - gint _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; -#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp20_ = dialog_message; -#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp21_ = remainder; -#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp22_ = remainder; -#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp23_ = g_strdup_printf (ngettext ("\n\nAnd %d other.", "\n\nAnd %d others.", (gulong) _tmp21_), _tmp22_); -#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp24_ = _tmp23_; -#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp25_ = g_strconcat (_tmp20_, _tmp24_, NULL); -#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (dialog_message); -#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog_message = _tmp25_; -#line 798 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp24_); -#line 7518 "Dialogs.c" - } -#line 802 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp26_ = app_window_get_instance (); -#line 802 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp27_ = _tmp26_; -#line 802 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp28_ = dialog_message; -#line 802 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp29_ = (GtkMessageDialog*) gtk_message_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_window_get_type (), GtkWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", _tmp28_); -#line 802 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_object_ref_sink (_tmp29_); -#line 802 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp30_ = _tmp29_; -#line 802 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp27_); -#line 802 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog = _tmp30_; -#line 805 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_window_get_type (), GtkWindow), title); -#line 807 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog)); -#line 808 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget)); -#line 788 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (dialog); -#line 788 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (dialog_message); -#line 7546 "Dialogs.c" -} - - -TagsDialog* -tags_dialog_construct (GType object_type, - const gchar* title, - const gchar* label, - const gchar* initial_text) -{ - TagsDialog* self = NULL; - HierarchicalTagIndex* _tmp0_; - HierarchicalTagIndex* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; -#line 812 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (title != NULL, NULL); -#line 812 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (label != NULL, NULL); -#line 813 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = hierarchical_tag_index_get_global_index (); -#line 813 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = _tmp0_; -#line 813 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = hierarchical_tag_index_get_all_tags (_tmp1_); -#line 813 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = _tmp2_; -#line 813 "/home/jens/Source/shotwell/src/Dialogs.vala" - self = (TagsDialog*) text_entry_dialog_mediator_construct (object_type, title, label, initial_text, _tmp3_, ","); -#line 813 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp3_); -#line 813 "/home/jens/Source/shotwell/src/Dialogs.vala" - _hierarchical_tag_index_unref0 (_tmp1_); -#line 812 "/home/jens/Source/shotwell/src/Dialogs.vala" - return self; -#line 7581 "Dialogs.c" -} - - -static void -tags_dialog_class_init (TagsDialogClass * klass) -{ -#line 811 "/home/jens/Source/shotwell/src/Dialogs.vala" - tags_dialog_parent_class = g_type_class_peek_parent (klass); -#line 7590 "Dialogs.c" -} - - -static void -tags_dialog_instance_init (TagsDialog * self) -{ -} - - -GType -tags_dialog_get_type (void) -{ - static volatile gsize tags_dialog_type_id__volatile = 0; - if (g_once_init_enter (&tags_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TagsDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tags_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagsDialog), 0, (GInstanceInitFunc) tags_dialog_instance_init, NULL }; - GType tags_dialog_type_id; - tags_dialog_type_id = g_type_register_static (TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, "TagsDialog", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&tags_dialog_type_id__volatile, tags_dialog_type_id); - } - return tags_dialog_type_id__volatile; -} - - -AddTagsDialog* -add_tags_dialog_construct (GType object_type) -{ - AddTagsDialog* self = NULL; - gchar* title = NULL; - gchar* _tmp0_; -#line 820 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = g_strdup (g_dpgettext2 (NULL, "Dialog Title", RESOURCES_ADD_TAGS_TITLE)); -#line 820 "/home/jens/Source/shotwell/src/Dialogs.vala" - title = _tmp0_; -#line 822 "/home/jens/Source/shotwell/src/Dialogs.vala" - self = (AddTagsDialog*) tags_dialog_construct (object_type, title, _ ("Tags (separated by commas):"), NULL); -#line 819 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (title); -#line 819 "/home/jens/Source/shotwell/src/Dialogs.vala" - return self; -#line 7630 "Dialogs.c" -} - - -AddTagsDialog* -add_tags_dialog_new (void) -{ -#line 819 "/home/jens/Source/shotwell/src/Dialogs.vala" - return add_tags_dialog_construct (TYPE_ADD_TAGS_DIALOG); -#line 7639 "Dialogs.c" -} - - -gchar** -add_tags_dialog_execute (AddTagsDialog* self, - int* result_length1) -{ - gchar** result = NULL; - gchar* text = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp3_; - gchar** _tmp4_; - gchar** _tmp5_; - gchar** _tmp6_; - gint _tmp6__length1; - gint _tmp7_; - gchar** _tmp8_; - gchar** _tmp9_; - gint _tmp9__length1; - gchar** _tmp10_; - gint _tmp10__length1; -#line 825 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (IS_ADD_TAGS_DIALOG (self), NULL); -#line 826 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = _text_entry_dialog_mediator_execute (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator)); -#line 826 "/home/jens/Source/shotwell/src/Dialogs.vala" - text = _tmp0_; -#line 827 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = text; -#line 827 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp1_ == NULL) { -#line 7672 "Dialogs.c" - gchar** _tmp2_; - gint _tmp2__length1; -#line 828 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = NULL; -#line 828 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2__length1 = 0; -#line 828 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (result_length1) { -#line 828 "/home/jens/Source/shotwell/src/Dialogs.vala" - *result_length1 = _tmp2__length1; -#line 7683 "Dialogs.c" - } -#line 828 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp2_; -#line 828 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (text); -#line 828 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 7691 "Dialogs.c" - } -#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = text; -#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = _tmp4_ = g_strsplit (_tmp3_, ",", 0); -#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = _tmp5_; -#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6__length1 = _vala_array_length (_tmp4_); -#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp8_ = tag_prep_tag_names (_tmp6_, _vala_array_length (_tmp4_), &_tmp7_); -#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp9_ = _tmp8_; -#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp9__length1 = _tmp7_; -#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = (_vala_array_free (_tmp6_, _tmp6__length1, (GDestroyNotify) g_free), NULL); -#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp10_ = _tmp9_; -#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp10__length1 = _tmp9__length1; -#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (result_length1) { -#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala" - *result_length1 = _tmp10__length1; -#line 7717 "Dialogs.c" - } -#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp10_; -#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (text); -#line 832 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 7725 "Dialogs.c" -} - - -static gboolean -string_contains (const gchar* self, - const gchar* needle) -{ - gboolean result = FALSE; - gchar* _tmp0_; -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, FALSE); -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, FALSE); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr ((gchar*) self, (gchar*) needle); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_ != NULL; -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 7745 "Dialogs.c" -} - - -static gboolean -add_tags_dialog_real_on_modify_validate (TextEntryDialogMediator* base, - const gchar* text) -{ - AddTagsDialog * self; - gboolean result = FALSE; - gchar** names = NULL; - gchar** _tmp0_; - gchar** _tmp1_; - gchar** _tmp2_; - gint _tmp2__length1; - gint _tmp3_; - gchar** _tmp4_; - gchar** _tmp5_; - gint _tmp5__length1; - gint names_length1; - gint _names_size_; - gchar** _tmp6_; - gint _tmp6__length1; -#line 835 "/home/jens/Source/shotwell/src/Dialogs.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ADD_TAGS_DIALOG, AddTagsDialog); -#line 835 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (text != NULL, FALSE); -#line 836 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (string_contains (text, TAG_PATH_SEPARATOR_STRING)) { -#line 837 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = FALSE; -#line 837 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 7778 "Dialogs.c" - } -#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = _tmp0_ = g_strsplit (text, ",", 0); -#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = _tmp1_; -#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2__length1 = _vala_array_length (_tmp0_); -#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = tag_prep_tag_names (_tmp2_, _vala_array_length (_tmp0_), &_tmp3_); -#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = _tmp4_; -#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5__length1 = _tmp3_; -#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = (_vala_array_free (_tmp2_, _tmp2__length1, (GDestroyNotify) g_free), NULL); -#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala" - names = _tmp5_; -#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala" - names_length1 = _tmp5__length1; -#line 841 "/home/jens/Source/shotwell/src/Dialogs.vala" - _names_size_ = names_length1; -#line 843 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = names; -#line 843 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6__length1 = names_length1; -#line 843 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _tmp6__length1 > 0; -#line 843 "/home/jens/Source/shotwell/src/Dialogs.vala" - names = (_vala_array_free (names, names_length1, (GDestroyNotify) g_free), NULL); -#line 843 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 7810 "Dialogs.c" -} - - -static void -add_tags_dialog_class_init (AddTagsDialogClass * klass) -{ -#line 818 "/home/jens/Source/shotwell/src/Dialogs.vala" - add_tags_dialog_parent_class = g_type_class_peek_parent (klass); -#line 818 "/home/jens/Source/shotwell/src/Dialogs.vala" - ((TextEntryDialogMediatorClass *) klass)->on_modify_validate = (gboolean (*) (TextEntryDialogMediator *, const gchar*)) add_tags_dialog_real_on_modify_validate; -#line 7821 "Dialogs.c" -} - - -static void -add_tags_dialog_instance_init (AddTagsDialog * self) -{ -} - - -GType -add_tags_dialog_get_type (void) -{ - static volatile gsize add_tags_dialog_type_id__volatile = 0; - if (g_once_init_enter (&add_tags_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (AddTagsDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) add_tags_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AddTagsDialog), 0, (GInstanceInitFunc) add_tags_dialog_instance_init, NULL }; - GType add_tags_dialog_type_id; - add_tags_dialog_type_id = g_type_register_static (TYPE_TAGS_DIALOG, "AddTagsDialog", &g_define_type_info, 0); - g_once_init_leave (&add_tags_dialog_type_id__volatile, add_tags_dialog_type_id); - } - return add_tags_dialog_type_id__volatile; -} - - -ModifyTagsDialog* -modify_tags_dialog_construct (GType object_type, - MediaSource* source) -{ - ModifyTagsDialog* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 848 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL); -#line 849 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = modify_tags_dialog_get_initial_text (source); -#line 849 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = _tmp0_; -#line 849 "/home/jens/Source/shotwell/src/Dialogs.vala" - self = (ModifyTagsDialog*) tags_dialog_construct (object_type, RESOURCES_MODIFY_TAGS_LABEL, _ ("Tags (separated by commas):"), _tmp1_); -#line 849 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp1_); -#line 848 "/home/jens/Source/shotwell/src/Dialogs.vala" - return self; -#line 7864 "Dialogs.c" -} - - -ModifyTagsDialog* -modify_tags_dialog_new (MediaSource* source) -{ -#line 848 "/home/jens/Source/shotwell/src/Dialogs.vala" - return modify_tags_dialog_construct (TYPE_MODIFY_TAGS_DIALOG, source); -#line 7873 "Dialogs.c" -} - - -static gchar* -modify_tags_dialog_get_initial_text (MediaSource* source) -{ - gchar* result = NULL; - GeeCollection* source_tags = NULL; - TagSourceCollection* _tmp0_; - GeeList* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* terminal_tags = NULL; - GeeCollection* _tmp3_; - GeeCollection* _tmp4_; - GeeSortedSet* tag_basenames = NULL; - GeeTreeSet* _tmp5_; - gchar* text = NULL; -#line 853 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL); -#line 854 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = tag_global; -#line 854 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = tag_source_collection_fetch_for_source (_tmp0_, source); -#line 854 "/home/jens/Source/shotwell/src/Dialogs.vala" - source_tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection); -#line 855 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = source_tags; -#line 855 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp2_ == NULL) { -#line 856 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = NULL; -#line 856 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (source_tags); -#line 856 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 7909 "Dialogs.c" - } -#line 858 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = source_tags; -#line 858 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = tag_get_terminal_tags (_tmp3_); -#line 858 "/home/jens/Source/shotwell/src/Dialogs.vala" - terminal_tags = _tmp4_; -#line 860 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 860 "/home/jens/Source/shotwell/src/Dialogs.vala" - tag_basenames = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_SORTED_SET, GeeSortedSet); -#line 7921 "Dialogs.c" - { - GeeIterator* _tag_it = NULL; - GeeCollection* _tmp6_; - GeeIterator* _tmp7_; -#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = terminal_tags; -#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tag_it = _tmp7_; -#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala" - while (TRUE) { -#line 7934 "Dialogs.c" - GeeIterator* _tmp8_; - Tag* tag = NULL; - GeeIterator* _tmp9_; - gpointer _tmp10_; - GeeSortedSet* _tmp11_; - Tag* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; -#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp8_ = _tag_it; -#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!gee_iterator_next (_tmp8_)) { -#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala" - break; -#line 7951 "Dialogs.c" - } -#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp9_ = _tag_it; -#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp10_ = gee_iterator_get (_tmp9_); -#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala" - tag = (Tag*) _tmp10_; -#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp11_ = tag_basenames; -#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp12_ = tag; -#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp13_ = tag_get_path (_tmp12_); -#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp14_ = _tmp13_; -#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp15_ = hierarchical_tag_utilities_get_basename (_tmp14_); -#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp16_ = _tmp15_; -#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection), _tmp16_); -#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp16_); -#line 862 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (_tmp14_); -#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (tag); -#line 7979 "Dialogs.c" - } -#line 861 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tag_it); -#line 7983 "Dialogs.c" - } -#line 864 "/home/jens/Source/shotwell/src/Dialogs.vala" - text = NULL; -#line 7987 "Dialogs.c" - { - GeeIterator* _name_it = NULL; - GeeSortedSet* _tmp17_; - GeeIterator* _tmp18_; -#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp17_ = tag_basenames; -#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp18_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala" - _name_it = _tmp18_; -#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala" - while (TRUE) { -#line 8000 "Dialogs.c" - GeeIterator* _tmp19_; - gchar* name = NULL; - GeeIterator* _tmp20_; - gpointer _tmp21_; - const gchar* _tmp22_; - const gchar* _tmp26_; - const gchar* _tmp27_; - gchar* _tmp28_; -#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp19_ = _name_it; -#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!gee_iterator_next (_tmp19_)) { -#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala" - break; -#line 8015 "Dialogs.c" - } -#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp20_ = _name_it; -#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp21_ = gee_iterator_get (_tmp20_); -#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala" - name = (gchar*) _tmp21_; -#line 866 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp22_ = text; -#line 866 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp22_ == NULL) { -#line 8027 "Dialogs.c" - gchar* _tmp23_; -#line 867 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp23_ = g_strdup (""); -#line 867 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (text); -#line 867 "/home/jens/Source/shotwell/src/Dialogs.vala" - text = _tmp23_; -#line 8035 "Dialogs.c" - } else { - const gchar* _tmp24_; - gchar* _tmp25_; -#line 869 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp24_ = text; -#line 869 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp25_ = g_strconcat (_tmp24_, ", ", NULL); -#line 869 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (text); -#line 869 "/home/jens/Source/shotwell/src/Dialogs.vala" - text = _tmp25_; -#line 8047 "Dialogs.c" - } -#line 871 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp26_ = text; -#line 871 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp27_ = name; -#line 871 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp28_ = g_strconcat (_tmp26_, _tmp27_, NULL); -#line 871 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (text); -#line 871 "/home/jens/Source/shotwell/src/Dialogs.vala" - text = _tmp28_; -#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (name); -#line 8061 "Dialogs.c" - } -#line 865 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_name_it); -#line 8065 "Dialogs.c" - } -#line 874 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = text; -#line 874 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (tag_basenames); -#line 874 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (terminal_tags); -#line 874 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (source_tags); -#line 874 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 8077 "Dialogs.c" -} - - -GeeArrayList* -modify_tags_dialog_execute (ModifyTagsDialog* self) -{ - GeeArrayList* result = NULL; - gchar* text = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - GeeArrayList* new_tags = NULL; - GeeArrayList* _tmp2_; - const gchar* _tmp3_; - gchar** tag_names = NULL; - const gchar* _tmp4_; - gchar** _tmp5_; - gchar** _tmp6_; - gchar** _tmp7_; - gint _tmp7__length1; - gint _tmp8_; - gchar** _tmp9_; - gchar** _tmp10_; - gint _tmp10__length1; - gint tag_names_length1; - gint _tag_names_size_; - HierarchicalTagIndex* _tmp11_; - HierarchicalTagIndex* _tmp12_; - gchar** _tmp13_; - gint _tmp13__length1; - gint _tmp14_; - gchar** _tmp15_; - gchar** _tmp16_; - gint _tmp16__length1; -#line 877 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (IS_MODIFY_TAGS_DIALOG (self), NULL); -#line 878 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = _text_entry_dialog_mediator_execute (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator)); -#line 878 "/home/jens/Source/shotwell/src/Dialogs.vala" - text = _tmp0_; -#line 879 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = text; -#line 879 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp1_ == NULL) { -#line 880 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = NULL; -#line 880 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (text); -#line 880 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 8127 "Dialogs.c" - } -#line 882 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 882 "/home/jens/Source/shotwell/src/Dialogs.vala" - new_tags = _tmp2_; -#line 885 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = text; -#line 885 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (is_string_empty (_tmp3_)) { -#line 886 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = new_tags; -#line 886 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (text); -#line 886 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 8143 "Dialogs.c" - } -#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = text; -#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = _tmp5_ = g_strsplit (_tmp4_, ",", 0); -#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = _tmp6_; -#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7__length1 = _vala_array_length (_tmp5_); -#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp9_ = tag_prep_tag_names (_tmp7_, _vala_array_length (_tmp5_), &_tmp8_); -#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp10_ = _tmp9_; -#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp10__length1 = _tmp8_; -#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = (_vala_array_free (_tmp7_, _tmp7__length1, (GDestroyNotify) g_free), NULL); -#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala" - tag_names = _tmp10_; -#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala" - tag_names_length1 = _tmp10__length1; -#line 889 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tag_names_size_ = tag_names_length1; -#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp11_ = hierarchical_tag_index_get_global_index (); -#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp12_ = _tmp11_; -#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp13_ = tag_names; -#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp13__length1 = tag_names_length1; -#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp15_ = hierarchical_tag_index_get_paths_for_names_array (_tmp12_, _tmp13_, _tmp13__length1, &_tmp14_); -#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala" - tag_names = (_vala_array_free (tag_names, tag_names_length1, (GDestroyNotify) g_free), NULL); -#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala" - tag_names = _tmp15_; -#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala" - tag_names_length1 = _tmp14_; -#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tag_names_size_ = tag_names_length1; -#line 891 "/home/jens/Source/shotwell/src/Dialogs.vala" - _hierarchical_tag_index_unref0 (_tmp12_); -#line 893 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp16_ = tag_names; -#line 893 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp16__length1 = tag_names_length1; -#line 8191 "Dialogs.c" - { - gchar** name_collection = NULL; - gint name_collection_length1 = 0; - gint _name_collection_size_ = 0; - gint name_it = 0; -#line 893 "/home/jens/Source/shotwell/src/Dialogs.vala" - name_collection = _tmp16_; -#line 893 "/home/jens/Source/shotwell/src/Dialogs.vala" - name_collection_length1 = _tmp16__length1; -#line 893 "/home/jens/Source/shotwell/src/Dialogs.vala" - for (name_it = 0; name_it < _tmp16__length1; name_it = name_it + 1) { -#line 8203 "Dialogs.c" - gchar* _tmp17_; - gchar* name = NULL; -#line 893 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp17_ = g_strdup (name_collection[name_it]); -#line 893 "/home/jens/Source/shotwell/src/Dialogs.vala" - name = _tmp17_; -#line 8210 "Dialogs.c" - { - GeeArrayList* _tmp18_; - const gchar* _tmp19_; - Tag* _tmp20_; - Tag* _tmp21_; -#line 894 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp18_ = new_tags; -#line 894 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp19_ = name; -#line 894 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp20_ = tag_for_path (_tmp19_); -#line 894 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp21_ = _tmp20_; -#line 894 "/home/jens/Source/shotwell/src/Dialogs.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp21_); -#line 894 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp21_); -#line 893 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (name); -#line 8230 "Dialogs.c" - } - } - } -#line 896 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = new_tags; -#line 896 "/home/jens/Source/shotwell/src/Dialogs.vala" - tag_names = (_vala_array_free (tag_names, tag_names_length1, (GDestroyNotify) g_free), NULL); -#line 896 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (text); -#line 896 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 8242 "Dialogs.c" -} - - -static gboolean -modify_tags_dialog_real_on_modify_validate (TextEntryDialogMediator* base, - const gchar* text) -{ - ModifyTagsDialog * self; - gboolean result = FALSE; -#line 899 "/home/jens/Source/shotwell/src/Dialogs.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialog); -#line 899 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_val_if_fail (text != NULL, FALSE); -#line 900 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = !string_contains (text, TAG_PATH_SEPARATOR_STRING); -#line 900 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 8260 "Dialogs.c" -} - - -static void -modify_tags_dialog_class_init (ModifyTagsDialogClass * klass) -{ -#line 847 "/home/jens/Source/shotwell/src/Dialogs.vala" - modify_tags_dialog_parent_class = g_type_class_peek_parent (klass); -#line 847 "/home/jens/Source/shotwell/src/Dialogs.vala" - ((TextEntryDialogMediatorClass *) klass)->on_modify_validate = (gboolean (*) (TextEntryDialogMediator *, const gchar*)) modify_tags_dialog_real_on_modify_validate; -#line 8271 "Dialogs.c" -} - - -static void -modify_tags_dialog_instance_init (ModifyTagsDialog * self) -{ -} - - -GType -modify_tags_dialog_get_type (void) -{ - static volatile gsize modify_tags_dialog_type_id__volatile = 0; - if (g_once_init_enter (&modify_tags_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ModifyTagsDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) modify_tags_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ModifyTagsDialog), 0, (GInstanceInitFunc) modify_tags_dialog_instance_init, NULL }; - GType modify_tags_dialog_type_id; - modify_tags_dialog_type_id = g_type_register_static (TYPE_TAGS_DIALOG, "ModifyTagsDialog", &g_define_type_info, 0); - g_once_init_leave (&modify_tags_dialog_type_id__volatile, modify_tags_dialog_type_id); - } - return modify_tags_dialog_type_id__volatile; -} - - -GtkResponseType -copy_files_dialog (void) -{ - GtkResponseType result = 0; - gchar* msg = NULL; - gchar* _tmp0_; - GtkMessageDialog* dialog = NULL; - AppWindow* _tmp1_; - AppWindow* _tmp2_; - GtkMessageDialog* _tmp3_; - GtkMessageDialog* _tmp4_; - GtkResponseType _result_ = 0; -#line 908 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = g_strdup (_ ("Shotwell can copy the photos into your library folder or it can import" \ -" them without copying.")); -#line 908 "/home/jens/Source/shotwell/src/Dialogs.vala" - msg = _tmp0_; -#line 910 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = app_window_get_instance (); -#line 910 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = _tmp1_; -#line 910 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = (GtkMessageDialog*) gtk_message_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_window_get_type (), GtkWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_CANCEL, "%s", msg); -#line 910 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_object_ref_sink (_tmp3_); -#line 910 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = _tmp3_; -#line 910 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp2_); -#line 910 "/home/jens/Source/shotwell/src/Dialogs.vala" - dialog = _tmp4_; -#line 913 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), _ ("Co_py Photos"), (gint) GTK_RESPONSE_ACCEPT); -#line 914 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog), _ ("_Import in Place"), (gint) GTK_RESPONSE_REJECT); -#line 915 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_window_get_type (), GtkWindow), _ ("Import to Library")); -#line 917 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_ = (GtkResponseType) gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_dialog_get_type (), GtkDialog)); -#line 919 "/home/jens/Source/shotwell/src/Dialogs.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (dialog, gtk_widget_get_type (), GtkWidget)); -#line 921 "/home/jens/Source/shotwell/src/Dialogs.vala" - result = _result_; -#line 921 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (dialog); -#line 921 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (msg); -#line 921 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 8343 "Dialogs.c" -} - - -void -remove_photos_from_library (GeeCollection* photos) -{ - const gchar* _tmp0_ = NULL; - gint _tmp1_; - gint _tmp2_; -#line 924 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (GEE_IS_COLLECTION (photos)); -#line 926 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = gee_collection_get_size (photos); -#line 926 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = _tmp1_; -#line 926 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp2_ == 1) { -#line 926 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = _ ("Removing Photo From Library"); -#line 8363 "Dialogs.c" - } else { -#line 926 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = _ ("Removing Photos From Library"); -#line 8367 "Dialogs.c" - } -#line 925 "/home/jens/Source/shotwell/src/Dialogs.vala" - remove_from_app (photos, _ ("Remove From Library"), _tmp0_); -#line 8371 "Dialogs.c" -} - - -static gboolean -_progress_dialog_monitor_progress_monitor (guint64 current, - guint64 total, - gboolean do_event_loop, - gpointer self) -{ - gboolean result; - result = progress_dialog_monitor ((ProgressDialog*) self, current, total, do_event_loop); -#line 966 "/home/jens/Source/shotwell/src/Dialogs.vala" - return result; -#line 8385 "Dialogs.c" -} - - -void -remove_from_app (GeeCollection* sources, - const gchar* dialog_title, - const gchar* progress_dialog_text) -{ - gint _tmp0_; - gint _tmp1_; - GeeArrayList* photos = NULL; - GeeArrayList* _tmp2_; - GeeArrayList* videos = NULL; - GeeArrayList* _tmp3_; - GeeArrayList* _tmp4_; - GeeArrayList* _tmp5_; - gchar* user_message = NULL; - gboolean _tmp6_ = FALSE; - GeeArrayList* _tmp7_; - gboolean _tmp8_; - gboolean _tmp9_; - GtkResponseType _result_ = 0; - AppWindow* _tmp31_; - AppWindow* _tmp32_; - const gchar* _tmp33_; - gint _tmp34_; - gint _tmp35_; - GtkResponseType _tmp36_; - gboolean _tmp37_ = FALSE; - GtkResponseType _tmp38_; - gboolean delete_backing = FALSE; - GtkResponseType _tmp40_; - AppWindow* _tmp41_; - AppWindow* _tmp42_; - ProgressDialog* progress = NULL; - ProgressMonitor monitor = NULL; - void* monitor_target; - GDestroyNotify monitor_target_destroy_notify; - gint _tmp43_; - gint _tmp44_; - GeeArrayList* not_removed_photos = NULL; - GeeArrayList* _tmp49_; - GeeArrayList* not_removed_videos = NULL; - GeeArrayList* _tmp50_; - LibraryPhotoSourceCollection* _tmp51_; - GeeArrayList* _tmp52_; - gboolean _tmp53_; - ProgressMonitor _tmp54_; - void* _tmp54__target; - GeeArrayList* _tmp55_; - VideoSourceCollection* _tmp56_; - GeeArrayList* _tmp57_; - gboolean _tmp58_; - ProgressMonitor _tmp59_; - void* _tmp59__target; - GeeArrayList* _tmp60_; - gint num_not_removed = 0; - GeeArrayList* _tmp61_; - gint _tmp62_; - gint _tmp63_; - GeeArrayList* _tmp64_; - gint _tmp65_; - gint _tmp66_; - gboolean _tmp67_ = FALSE; - gboolean _tmp68_; - ProgressDialog* _tmp101_; - AppWindow* _tmp103_; - AppWindow* _tmp104_; -#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (dialog_title != NULL); -#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_return_if_fail (progress_dialog_text != NULL); -#line 931 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp0_ = gee_collection_get_size (sources); -#line 931 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp1_ = _tmp0_; -#line 931 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp1_ == 0) { -#line 932 "/home/jens/Source/shotwell/src/Dialogs.vala" - return; -#line 8468 "Dialogs.c" - } -#line 934 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp2_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 934 "/home/jens/Source/shotwell/src/Dialogs.vala" - photos = _tmp2_; -#line 935 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp3_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 935 "/home/jens/Source/shotwell/src/Dialogs.vala" - videos = _tmp3_; -#line 936 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp4_ = photos; -#line 936 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp5_ = videos; -#line 936 "/home/jens/Source/shotwell/src/Dialogs.vala" - media_source_collection_filter_media (sources, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 938 "/home/jens/Source/shotwell/src/Dialogs.vala" - user_message = NULL; -#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp7_ = photos; -#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp8_ = gee_collection_get_is_empty (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp9_ = _tmp8_; -#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!_tmp9_) { -#line 8494 "Dialogs.c" - GeeArrayList* _tmp10_; - gboolean _tmp11_; - gboolean _tmp12_; -#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp10_ = videos; -#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp11_ = gee_collection_get_is_empty (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp12_ = _tmp11_; -#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = !_tmp12_; -#line 8506 "Dialogs.c" - } else { -#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp6_ = FALSE; -#line 8510 "Dialogs.c" - } -#line 939 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp6_) { -#line 8514 "Dialogs.c" - gint _tmp13_; - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; - gchar* _tmp17_; -#line 940 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp13_ = gee_collection_get_size (sources); -#line 940 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp14_ = _tmp13_; -#line 940 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp15_ = gee_collection_get_size (sources); -#line 940 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp16_ = _tmp15_; -#line 940 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp17_ = g_strdup_printf (ngettext ("This will remove the photo/video from your Shotwell library. Would you" \ -" also like to move the file to your desktop trash?\n" \ -"\n" \ -"This action cannot be undone.", "This will remove %d photos/videos from your Shotwell library. Would yo" \ -"u also like to move the files to your desktop trash?\n" \ -"\n" \ -"This action cannot be undone.", (gulong) _tmp14_), _tmp16_); -#line 940 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (user_message); -#line 940 "/home/jens/Source/shotwell/src/Dialogs.vala" - user_message = _tmp17_; -#line 8534 "Dialogs.c" - } else { - GeeArrayList* _tmp18_; - gboolean _tmp19_; - gboolean _tmp20_; -#line 943 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp18_ = videos; -#line 943 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp19_ = gee_collection_get_is_empty (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 943 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp20_ = _tmp19_; -#line 943 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (!_tmp20_) { -#line 8547 "Dialogs.c" - gint _tmp21_; - gint _tmp22_; - gint _tmp23_; - gint _tmp24_; - gchar* _tmp25_; -#line 944 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp21_ = gee_collection_get_size (sources); -#line 944 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp22_ = _tmp21_; -#line 944 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp23_ = gee_collection_get_size (sources); -#line 944 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp24_ = _tmp23_; -#line 944 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp25_ = g_strdup_printf (ngettext ("This will remove the video from your Shotwell library. Would you also " \ -"like to move the file to your desktop trash?\n" \ -"\n" \ -"This action cannot be undone.", "This will remove %d videos from your Shotwell library. Would you also " \ -"like to move the files to your desktop trash?\n" \ -"\n" \ -"This action cannot be undone.", (gulong) _tmp22_), _tmp24_); -#line 944 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (user_message); -#line 944 "/home/jens/Source/shotwell/src/Dialogs.vala" - user_message = _tmp25_; -#line 8567 "Dialogs.c" - } else { - gint _tmp26_; - gint _tmp27_; - gint _tmp28_; - gint _tmp29_; - gchar* _tmp30_; -#line 948 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp26_ = gee_collection_get_size (sources); -#line 948 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp27_ = _tmp26_; -#line 948 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp28_ = gee_collection_get_size (sources); -#line 948 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp29_ = _tmp28_; -#line 948 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp30_ = g_strdup_printf (ngettext ("This will remove the photo from your Shotwell library. Would you also " \ -"like to move the file to your desktop trash?\n" \ -"\n" \ -"This action cannot be undone.", "This will remove %d photos from your Shotwell library. Would you also " \ -"like to move the files to your desktop trash?\n" \ -"\n" \ -"This action cannot be undone.", (gulong) _tmp27_), _tmp29_); -#line 948 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (user_message); -#line 948 "/home/jens/Source/shotwell/src/Dialogs.vala" - user_message = _tmp30_; -#line 8588 "Dialogs.c" - } - } -#line 953 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp31_ = app_window_get_instance (); -#line 953 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp32_ = _tmp31_; -#line 953 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp33_ = user_message; -#line 953 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp34_ = gee_collection_get_size (sources); -#line 953 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp35_ = _tmp34_; -#line 953 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp36_ = remove_from_library_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_window_get_type (), GtkWindow), dialog_title, _tmp33_, _tmp35_); -#line 953 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp32_); -#line 953 "/home/jens/Source/shotwell/src/Dialogs.vala" - _result_ = _tmp36_; -#line 955 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp38_ = _result_; -#line 955 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp38_ != GTK_RESPONSE_YES) { -#line 8611 "Dialogs.c" - GtkResponseType _tmp39_; -#line 955 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp39_ = _result_; -#line 955 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp37_ = _tmp39_ != GTK_RESPONSE_NO; -#line 8617 "Dialogs.c" - } else { -#line 955 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp37_ = FALSE; -#line 8621 "Dialogs.c" - } -#line 955 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp37_) { -#line 956 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (user_message); -#line 956 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (videos); -#line 956 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (photos); -#line 956 "/home/jens/Source/shotwell/src/Dialogs.vala" - return; -#line 8633 "Dialogs.c" - } -#line 958 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp40_ = _result_; -#line 958 "/home/jens/Source/shotwell/src/Dialogs.vala" - delete_backing = _tmp40_ == GTK_RESPONSE_YES; -#line 960 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp41_ = app_window_get_instance (); -#line 960 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp42_ = _tmp41_; -#line 960 "/home/jens/Source/shotwell/src/Dialogs.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_PAGE_WINDOW, PageWindow)); -#line 960 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp42_); -#line 962 "/home/jens/Source/shotwell/src/Dialogs.vala" - progress = NULL; -#line 963 "/home/jens/Source/shotwell/src/Dialogs.vala" - monitor = NULL; -#line 963 "/home/jens/Source/shotwell/src/Dialogs.vala" - monitor_target = NULL; -#line 963 "/home/jens/Source/shotwell/src/Dialogs.vala" - monitor_target_destroy_notify = NULL; -#line 964 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp43_ = gee_collection_get_size (sources); -#line 964 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp44_ = _tmp43_; -#line 964 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp44_ >= 20) { -#line 8661 "Dialogs.c" - AppWindow* _tmp45_; - AppWindow* _tmp46_; - ProgressDialog* _tmp47_; - ProgressDialog* _tmp48_; -#line 965 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp45_ = app_window_get_instance (); -#line 965 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp46_ = _tmp45_; -#line 965 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp47_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_window_get_type (), GtkWindow), progress_dialog_text, NULL); -#line 965 "/home/jens/Source/shotwell/src/Dialogs.vala" - g_object_ref_sink (_tmp47_); -#line 965 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (progress); -#line 965 "/home/jens/Source/shotwell/src/Dialogs.vala" - progress = _tmp47_; -#line 965 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp46_); -#line 966 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp48_ = progress; -#line 966 "/home/jens/Source/shotwell/src/Dialogs.vala" - (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL); -#line 966 "/home/jens/Source/shotwell/src/Dialogs.vala" - monitor = NULL; -#line 966 "/home/jens/Source/shotwell/src/Dialogs.vala" - monitor_target = NULL; -#line 966 "/home/jens/Source/shotwell/src/Dialogs.vala" - monitor_target_destroy_notify = NULL; -#line 966 "/home/jens/Source/shotwell/src/Dialogs.vala" - monitor = _progress_dialog_monitor_progress_monitor; -#line 966 "/home/jens/Source/shotwell/src/Dialogs.vala" - monitor_target = g_object_ref (_tmp48_); -#line 966 "/home/jens/Source/shotwell/src/Dialogs.vala" - monitor_target_destroy_notify = g_object_unref; -#line 8696 "Dialogs.c" - } -#line 969 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp49_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 969 "/home/jens/Source/shotwell/src/Dialogs.vala" - not_removed_photos = _tmp49_; -#line 970 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp50_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 970 "/home/jens/Source/shotwell/src/Dialogs.vala" - not_removed_videos = _tmp50_; -#line 973 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp51_ = library_photo_global; -#line 973 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp52_ = photos; -#line 973 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp53_ = delete_backing; -#line 973 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp54_ = monitor; -#line 973 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp54__target = monitor_target; -#line 973 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp55_ = not_removed_photos; -#line 973 "/home/jens/Source/shotwell/src/Dialogs.vala" - media_source_collection_remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_COLLECTION, GeeCollection), _tmp53_, _tmp54_, _tmp54__target, G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, GEE_TYPE_LIST, GeeList)); -#line 974 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp56_ = video_global; -#line 974 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp57_ = videos; -#line 974 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp58_ = delete_backing; -#line 974 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp59_ = monitor; -#line 974 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp59__target = monitor_target; -#line 974 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp60_ = not_removed_videos; -#line 974 "/home/jens/Source/shotwell/src/Dialogs.vala" - media_source_collection_remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, GEE_TYPE_COLLECTION, GeeCollection), _tmp58_, _tmp59_, _tmp59__target, G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, GEE_TYPE_LIST, GeeList)); -#line 977 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp61_ = not_removed_photos; -#line 977 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp62_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 977 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp63_ = _tmp62_; -#line 977 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp64_ = not_removed_videos; -#line 977 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp65_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 977 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp66_ = _tmp65_; -#line 977 "/home/jens/Source/shotwell/src/Dialogs.vala" - num_not_removed = _tmp63_ + _tmp66_; -#line 978 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp68_ = delete_backing; -#line 978 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp68_) { -#line 8752 "Dialogs.c" - gint _tmp69_; -#line 978 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp69_ = num_not_removed; -#line 978 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp67_ = _tmp69_ > 0; -#line 8758 "Dialogs.c" - } else { -#line 978 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp67_ = FALSE; -#line 8762 "Dialogs.c" - } -#line 978 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp67_) { -#line 8766 "Dialogs.c" - gchar* not_deleted_message = NULL; - gint _tmp70_; - gint _tmp71_; - gchar* _tmp72_; - GtkResponseType result_delete = 0; - AppWindow* _tmp73_; - AppWindow* _tmp74_; - const gchar* _tmp75_; - GtkResponseType _tmp76_; - GtkResponseType _tmp77_; -#line 979 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp70_ = num_not_removed; -#line 979 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp71_ = num_not_removed; -#line 979 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp72_ = g_strdup_printf (ngettext ("The photo or video cannot be moved to your desktop trash. Delete this " \ -"file?", "%d photos/videos cannot be moved to your desktop trash. Delete these f" \ -"iles?", (gulong) _tmp70_), _tmp71_); -#line 979 "/home/jens/Source/shotwell/src/Dialogs.vala" - not_deleted_message = _tmp72_; -#line 983 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp73_ = app_window_get_instance (); -#line 983 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp74_ = _tmp73_; -#line 983 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp75_ = not_deleted_message; -#line 983 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp76_ = remove_from_filesystem_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, gtk_window_get_type (), GtkWindow), dialog_title, _tmp75_); -#line 983 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp74_); -#line 983 "/home/jens/Source/shotwell/src/Dialogs.vala" - result_delete = _tmp76_; -#line 986 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp77_ = result_delete; -#line 986 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (GTK_RESPONSE_YES == _tmp77_) { -#line 8801 "Dialogs.c" - GeeArrayList* not_deleted_photos = NULL; - GeeArrayList* _tmp78_; - GeeArrayList* not_deleted_videos = NULL; - GeeArrayList* _tmp79_; - LibraryPhotoSourceCollection* _tmp80_; - GeeArrayList* _tmp81_; - ProgressMonitor _tmp82_; - void* _tmp82__target; - GeeArrayList* _tmp83_; - VideoSourceCollection* _tmp84_; - GeeArrayList* _tmp85_; - ProgressMonitor _tmp86_; - void* _tmp86__target; - GeeArrayList* _tmp87_; - gint num_not_deleted = 0; - GeeArrayList* _tmp88_; - gint _tmp89_; - gint _tmp90_; - GeeArrayList* _tmp91_; - gint _tmp92_; - gint _tmp93_; - gint _tmp94_; -#line 988 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp78_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 988 "/home/jens/Source/shotwell/src/Dialogs.vala" - not_deleted_photos = _tmp78_; -#line 989 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp79_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 989 "/home/jens/Source/shotwell/src/Dialogs.vala" - not_deleted_videos = _tmp79_; -#line 990 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp80_ = library_photo_global; -#line 990 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp81_ = not_removed_photos; -#line 990 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp82_ = monitor; -#line 990 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp82__target = monitor_target; -#line 990 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp83_ = not_deleted_photos; -#line 990 "/home/jens/Source/shotwell/src/Dialogs.vala" - media_source_collection_delete_backing_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp81_, GEE_TYPE_COLLECTION, GeeCollection), _tmp82_, _tmp82__target, G_TYPE_CHECK_INSTANCE_CAST (_tmp83_, GEE_TYPE_LIST, GeeList)); -#line 991 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp84_ = video_global; -#line 991 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp85_ = not_removed_videos; -#line 991 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp86_ = monitor; -#line 991 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp86__target = monitor_target; -#line 991 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp87_ = not_deleted_videos; -#line 991 "/home/jens/Source/shotwell/src/Dialogs.vala" - media_source_collection_delete_backing_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp84_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, GEE_TYPE_COLLECTION, GeeCollection), _tmp86_, _tmp86__target, G_TYPE_CHECK_INSTANCE_CAST (_tmp87_, GEE_TYPE_LIST, GeeList)); -#line 993 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp88_ = not_deleted_photos; -#line 993 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp89_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 993 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp90_ = _tmp89_; -#line 993 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp91_ = not_deleted_videos; -#line 993 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp92_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp91_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 993 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp93_ = _tmp92_; -#line 993 "/home/jens/Source/shotwell/src/Dialogs.vala" - num_not_deleted = _tmp90_ + _tmp93_; -#line 994 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp94_ = num_not_deleted; -#line 994 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp94_ > 0) { -#line 8874 "Dialogs.c" - gchar* delete_failed_message = NULL; - gint _tmp95_; - gint _tmp96_; - gchar* _tmp97_; - const gchar* _tmp98_; - AppWindow* _tmp99_; - AppWindow* _tmp100_; -#line 996 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp95_ = num_not_deleted; -#line 996 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp96_ = num_not_deleted; -#line 996 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp97_ = g_strdup_printf (ngettext ("The photo or video cannot be deleted.", "%d photos/videos cannot be deleted.", (gulong) _tmp95_), _tmp96_); -#line 996 "/home/jens/Source/shotwell/src/Dialogs.vala" - delete_failed_message = _tmp97_; -#line 1000 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp98_ = delete_failed_message; -#line 1000 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp99_ = app_window_get_instance (); -#line 1000 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp100_ = _tmp99_; -#line 1000 "/home/jens/Source/shotwell/src/Dialogs.vala" - app_window_error_message_with_title (dialog_title, _tmp98_, G_TYPE_CHECK_INSTANCE_CAST (_tmp100_, gtk_window_get_type (), GtkWindow), TRUE); -#line 1000 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp100_); -#line 994 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (delete_failed_message); -#line 8902 "Dialogs.c" - } -#line 986 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (not_deleted_videos); -#line 986 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (not_deleted_photos); -#line 8908 "Dialogs.c" - } -#line 978 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (not_deleted_message); -#line 8912 "Dialogs.c" - } -#line 1005 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp101_ = progress; -#line 1005 "/home/jens/Source/shotwell/src/Dialogs.vala" - if (_tmp101_ != NULL) { -#line 8918 "Dialogs.c" - ProgressDialog* _tmp102_; -#line 1006 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp102_ = progress; -#line 1006 "/home/jens/Source/shotwell/src/Dialogs.vala" - progress_dialog_close (_tmp102_); -#line 8924 "Dialogs.c" - } -#line 1008 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp103_ = app_window_get_instance (); -#line 1008 "/home/jens/Source/shotwell/src/Dialogs.vala" - _tmp104_ = _tmp103_; -#line 1008 "/home/jens/Source/shotwell/src/Dialogs.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp104_, TYPE_PAGE_WINDOW, PageWindow)); -#line 1008 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (_tmp104_); -#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (not_removed_videos); -#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (not_removed_photos); -#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala" - (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL); -#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala" - monitor = NULL; -#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala" - monitor_target = NULL; -#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala" - monitor_target_destroy_notify = NULL; -#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (progress); -#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_free0 (user_message); -#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (videos); -#line 929 "/home/jens/Source/shotwell/src/Dialogs.vala" - _g_object_unref0 (photos); -#line 8954 "Dialogs.c" -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/src/Dialogs.vala b/src/Dialogs.vala index 2ca2678..d99ac9f 100644 --- a/src/Dialogs.vala +++ b/src/Dialogs.vala @@ -46,6 +46,21 @@ public bool confirm_warn_developer_changed(int number) { return response == Gtk.ResponseType.YES; } +#if ENABLE_FACES + +public bool confirm_delete_face(Face face) { + int count = face.get_sources_count(); + string msg = ngettext( + "This will remove the face “%s” from one photo. Continue?", + "This will remove the face “%s” from %d photos. Continue?", + count).printf(face.get_name(), count); + + return AppWindow.negate_affirm_question(msg, _("_Cancel"), _("_Delete"), + Resources.DELETE_FACE_TITLE); +} + +#endif + } namespace ExportUI { @@ -133,7 +148,6 @@ public Gtk.ResponseType export_error_dialog(File dest, bool photos_remaining) { return response; } - namespace ImportUI { private const int REPORT_FAILURE_COUNT = 4; internal const string SAVE_RESULTS_BUTTON_NAME = _("Save Details…"); @@ -644,7 +658,6 @@ public string build_alert_body_text(string? primary_text, string? secondary_text guarded_markup_escape_text(primary_text), secondary_text); } - public class EventRenameDialog : TextEntryDialogMediator { public EventRenameDialog(string? event_name) { base (_("Rename Event"), _("Name:"), event_name); diff --git a/src/Dimensions.c b/src/Dimensions.c deleted file mode 100644 index a547b10..0000000 --- a/src/Dimensions.c +++ /dev/null @@ -1,4306 +0,0 @@ -/* Dimensions.c generated by valac 0.40.4, the Vala compiler - * generated from Dimensions.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_SCALING (scaling_get_type ()) -typedef struct _Scaling Scaling; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_ZOOM_STATE (zoom_state_get_type ()) -typedef struct _ZoomState ZoomState; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -struct _ZoomState { - Dimensions content_dimensions; - Dimensions viewport_dimensions; - gdouble zoom_factor; - gdouble interpolation_factor; - gdouble min_factor; - gdouble max_factor; - GdkPoint viewport_center; -}; - - - -GType scale_constraint_get_type (void) G_GNUC_CONST; -gchar* scale_constraint_to_string (ScaleConstraint self); -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -void dimensions_init (Dimensions *self, - gint width, - gint height); -void dimensions_for_pixbuf (GdkPixbuf* pixbuf, - Dimensions* result); -void dimensions_for_allocation (GtkAllocation* allocation, - Dimensions* result); -void dimensions_for_widget_allocation (GtkWidget* widget, - Dimensions* result); -void dimensions_for_rectangle (GdkRectangle* rect, - Dimensions* result); -gboolean dimensions_has_area (Dimensions *self); -void dimensions_floor (Dimensions *self, - Dimensions* min, - Dimensions* result); -gchar* dimensions_to_string (Dimensions *self); -gboolean dimensions_equals (Dimensions *self, - Dimensions* dim); -gboolean dimensions_approx_equals (Dimensions *self, - Dimensions* dim, - gint fudge); -gboolean dimensions_approx_scaled (Dimensions *self, - gint scale, - gint fudge); -gint dimensions_major_axis (Dimensions *self); -gint dimensions_minor_axis (Dimensions *self); -void dimensions_with_min (Dimensions *self, - gint min_width, - gint min_height, - Dimensions* result); -void dimensions_with_max (Dimensions *self, - gint max_width, - gint max_height, - Dimensions* result); -void dimensions_get_scaled (Dimensions *self, - gint scale, - gboolean scale_up, - Dimensions* result); -void dimensions_get_scaled_by_width (Dimensions *self, - gint scale, - Dimensions* result); -void dimensions_get_scaled_by_height (Dimensions *self, - gint scale, - Dimensions* result); -void dimensions_get_scale_ratios (Dimensions *self, - Dimensions* scaled, - gdouble* width_ratio, - gdouble* height_ratio); -gdouble dimensions_get_aspect_ratio (Dimensions *self); -void dimensions_get_scaled_proportional (Dimensions *self, - Dimensions* viewport, - Dimensions* result); -void dimensions_get_scaled_to_fill_viewport (Dimensions *self, - Dimensions* viewport, - Dimensions* result); -void dimensions_get_scaled_rectangle (Dimensions *self, - Dimensions* scaled, - GdkRectangle* rect, - GdkRectangle* result); -void dimensions_get_scaled_similar (Dimensions *self, - Dimensions* original, - Dimensions* scaled, - Dimensions* result); -void dimensions_get_scaled_by_constraint (Dimensions *self, - gint scale, - ScaleConstraint constraint, - Dimensions* result); -GType scaling_get_type (void) G_GNUC_CONST; -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -#define SCALING_NO_SCALE 0 -static void scaling_init (Scaling *self, - ScaleConstraint constraint, - gint scale, - Dimensions* viewport, - gboolean scale_up); -void scaling_for_original (Scaling* result); -void scaling_for_screen (GtkWindow* window, - gboolean scale_up, - Scaling* result); -void scaling_for_viewport (Dimensions* viewport, - gboolean scale_up, - Scaling* result); -static void scaling_get_screen_dimensions (GtkWindow* window, - Dimensions* result); -void scaling_for_best_fit (gint pixels, - gboolean scale_up, - Scaling* result); -void scaling_for_widget (GtkWidget* widget, - gboolean scale_up, - Scaling* result); -void scaling_to_fill_viewport (Dimensions* viewport, - Scaling* result); -void scaling_to_fill_screen (GtkWindow* window, - Scaling* result); -void scaling_for_constraint (ScaleConstraint constraint, - gint scale, - gboolean scale_up, - Scaling* result); -static gint scaling_scale_to_pixels (Scaling *self); -gboolean scaling_is_unscaled (Scaling *self); -gboolean scaling_is_best_fit (Scaling *self, - Dimensions* original, - gint* pixels); -gboolean scaling_is_best_fit_dimensions (Scaling *self, - Dimensions* original, - Dimensions* scaled); -gboolean scaling_is_for_viewport (Scaling *self, - Dimensions* original, - Dimensions* scaled); -gboolean scaling_is_fill_viewport (Scaling *self, - Dimensions* original, - Dimensions* scaled); -void scaling_get_scaled_dimensions (Scaling *self, - Dimensions* original, - Dimensions* result); -GdkPixbuf* scaling_perform_on_pixbuf (Scaling *self, - GdkPixbuf* pixbuf, - GdkInterpType interp, - gboolean scale_up); -GdkPixbuf* scale_pixbuf (GdkPixbuf* pixbuf, - gint scale, - GdkInterpType interp, - gboolean scale_up); -GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf, - Dimensions* resized, - GdkInterpType interp); -gchar* scaling_to_string (Scaling *self); -gboolean scaling_equals (Scaling *self, - Scaling* scaling); -GType zoom_state_get_type (void) G_GNUC_CONST; -ZoomState* zoom_state_dup (const ZoomState* self); -void zoom_state_free (ZoomState* self); -void zoom_state_init (ZoomState *self, - Dimensions* content_dimensions, - Dimensions* viewport_dimensions, - gdouble slider_val, - GdkPoint* viewport_center); -static void zoom_state_compute_zoom_factors (ZoomState *self); -static void zoom_state_center_viewport (ZoomState *self); -static void zoom_state_clamp_viewport_center (ZoomState *self); -void zoom_state_init_rescale (ZoomState *self, - ZoomState* existing, - gdouble new_slider_val); -void zoom_state_init_rescale_to_isomorphic (ZoomState *self, - ZoomState* existing); -void zoom_state_init_pan (ZoomState *self, - ZoomState* existing, - GdkPoint* new_viewport_center); -gint zoom_state_get_zoomed_width (ZoomState *self); -gint zoom_state_get_zoomed_height (ZoomState *self); -gdouble zoom_state_get_interpolation_factor (ZoomState *self); -void zoom_state_get_viewing_rectangle_wrt_content (ZoomState *self, - GdkRectangle* result); -void zoom_state_get_viewing_rectangle_wrt_screen (ZoomState *self, - GdkRectangle* result); -void zoom_state_get_viewing_rectangle_projection (ZoomState *self, - GdkPixbuf* for_pixbuf, - GdkRectangle* result); -gdouble zoom_state_get_zoom_factor (ZoomState *self); -void zoom_state_get_viewport_center (ZoomState *self, - GdkPoint* result); -gchar* zoom_state_to_string (ZoomState *self); -gboolean zoom_state_is_min (ZoomState *self); -gboolean zoom_state_is_default (ZoomState *self); -gboolean zoom_state_is_isomorphic (ZoomState *self); -gboolean zoom_state_is_max (ZoomState *self); -gboolean zoom_state_equals (ZoomState *self, - ZoomState* other); - - -gchar* -scale_constraint_to_string (ScaleConstraint self) -{ - gchar* result = NULL; -#line 15 "/home/jens/Source/shotwell/src/Dimensions.vala" - switch (self) { -#line 15 "/home/jens/Source/shotwell/src/Dimensions.vala" - case SCALE_CONSTRAINT_ORIGINAL: -#line 258 "Dimensions.c" - { - gchar* _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = g_strdup (_ ("Original size")); -#line 17 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 267 "Dimensions.c" - } -#line 15 "/home/jens/Source/shotwell/src/Dimensions.vala" - case SCALE_CONSTRAINT_DIMENSIONS: -#line 271 "Dimensions.c" - { - gchar* _tmp1_; -#line 20 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = g_strdup (_ ("Longest edge")); -#line 20 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp1_; -#line 20 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 280 "Dimensions.c" - } -#line 15 "/home/jens/Source/shotwell/src/Dimensions.vala" - case SCALE_CONSTRAINT_WIDTH: -#line 284 "Dimensions.c" - { - gchar* _tmp2_; -#line 23 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = g_strdup (_ ("Width")); -#line 23 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp2_; -#line 23 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 293 "Dimensions.c" - } -#line 15 "/home/jens/Source/shotwell/src/Dimensions.vala" - case SCALE_CONSTRAINT_HEIGHT: -#line 297 "Dimensions.c" - { - gchar* _tmp3_; -#line 26 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = g_strdup (_ ("Height")); -#line 26 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp3_; -#line 26 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 306 "Dimensions.c" - } -#line 15 "/home/jens/Source/shotwell/src/Dimensions.vala" - case SCALE_CONSTRAINT_FILL_VIEWPORT: -#line 310 "Dimensions.c" - { - gchar* _tmp4_; -#line 30 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = g_strdup ("Fill Viewport"); -#line 30 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp4_; -#line 30 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 319 "Dimensions.c" - } - default: -#line 15 "/home/jens/Source/shotwell/src/Dimensions.vala" - break; -#line 324 "Dimensions.c" - } -#line 33 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_warn_if_reached (); -#line 35 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = NULL; -#line 35 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 332 "Dimensions.c" -} - - -GType -scale_constraint_get_type (void) -{ - static volatile gsize scale_constraint_type_id__volatile = 0; - if (g_once_init_enter (&scale_constraint_type_id__volatile)) { - static const GEnumValue values[] = {{SCALE_CONSTRAINT_ORIGINAL, "SCALE_CONSTRAINT_ORIGINAL", "original"}, {SCALE_CONSTRAINT_DIMENSIONS, "SCALE_CONSTRAINT_DIMENSIONS", "dimensions"}, {SCALE_CONSTRAINT_WIDTH, "SCALE_CONSTRAINT_WIDTH", "width"}, {SCALE_CONSTRAINT_HEIGHT, "SCALE_CONSTRAINT_HEIGHT", "height"}, {SCALE_CONSTRAINT_FILL_VIEWPORT, "SCALE_CONSTRAINT_FILL_VIEWPORT", "fill-viewport"}, {0, NULL, NULL}}; - GType scale_constraint_type_id; - scale_constraint_type_id = g_enum_register_static ("ScaleConstraint", values); - g_once_init_leave (&scale_constraint_type_id__volatile, scale_constraint_type_id); - } - return scale_constraint_type_id__volatile; -} - - -void -dimensions_init (Dimensions *self, - gint width, - gint height) -{ - gboolean _tmp0_ = FALSE; -#line 43 "/home/jens/Source/shotwell/src/Dimensions.vala" - memset (self, 0, sizeof (Dimensions)); -#line 44 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (width < 0) { -#line 44 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = TRUE; -#line 362 "Dimensions.c" - } else { -#line 44 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = height < 0; -#line 366 "Dimensions.c" - } -#line 44 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp0_) { -#line 45 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_warning ("Dimensions.vala:45: Tried to construct a Dimensions object with negati" \ -"ve width or height - forcing sensible default values."); -#line 372 "Dimensions.c" - } -#line 47 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).width = CLAMP (width, 0, width); -#line 48 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).height = CLAMP (height, 0, height); -#line 378 "Dimensions.c" -} - - -void -dimensions_for_pixbuf (GdkPixbuf* pixbuf, - Dimensions* result) -{ - Dimensions _tmp0_ = {0}; -#line 51 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 52 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp0_, gdk_pixbuf_get_width (pixbuf), gdk_pixbuf_get_height (pixbuf)); -#line 52 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp0_; -#line 52 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 395 "Dimensions.c" -} - - -void -dimensions_for_allocation (GtkAllocation* allocation, - Dimensions* result) -{ - GtkAllocation _tmp0_; - gint _tmp1_; - GtkAllocation _tmp2_; - gint _tmp3_; - Dimensions _tmp4_ = {0}; -#line 55 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (allocation != NULL); -#line 56 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = *allocation; -#line 56 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = _tmp0_.width; -#line 56 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = *allocation; -#line 56 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = _tmp2_.height; -#line 56 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp4_, _tmp1_, _tmp3_); -#line 56 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp4_; -#line 56 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 424 "Dimensions.c" -} - - -void -dimensions_for_widget_allocation (GtkWidget* widget, - Dimensions* result) -{ - GtkAllocation allocation = {0}; - GtkAllocation _tmp0_ = {0}; - GtkAllocation _tmp1_; - gint _tmp2_; - GtkAllocation _tmp3_; - gint _tmp4_; - Dimensions _tmp5_ = {0}; -#line 59 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (GTK_IS_WIDGET (widget)); -#line 61 "/home/jens/Source/shotwell/src/Dimensions.vala" - gtk_widget_get_allocation (widget, &_tmp0_); -#line 61 "/home/jens/Source/shotwell/src/Dimensions.vala" - allocation = _tmp0_; -#line 63 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = allocation; -#line 63 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = _tmp1_.width; -#line 63 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = allocation; -#line 63 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = _tmp3_.height; -#line 63 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp5_, _tmp2_, _tmp4_); -#line 63 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp5_; -#line 63 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 459 "Dimensions.c" -} - - -void -dimensions_for_rectangle (GdkRectangle* rect, - Dimensions* result) -{ - GdkRectangle _tmp0_; - gint _tmp1_; - GdkRectangle _tmp2_; - gint _tmp3_; - Dimensions _tmp4_ = {0}; -#line 66 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (rect != NULL); -#line 67 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = *rect; -#line 67 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = _tmp0_.width; -#line 67 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = *rect; -#line 67 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = _tmp2_.height; -#line 67 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp4_, _tmp1_, _tmp3_); -#line 67 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp4_; -#line 67 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 488 "Dimensions.c" -} - - -gboolean -dimensions_has_area (Dimensions *self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 71 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).width; -#line 71 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp1_ > 0) { -#line 502 "Dimensions.c" - gint _tmp2_; -#line 71 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = (*self).height; -#line 71 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = _tmp2_ > 0; -#line 508 "Dimensions.c" - } else { -#line 71 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = FALSE; -#line 512 "Dimensions.c" - } -#line 71 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp0_; -#line 71 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 518 "Dimensions.c" -} - - -void -dimensions_floor (Dimensions *self, - Dimensions* min, - Dimensions* result) -{ - gint _tmp0_ = 0; - gint _tmp1_; - Dimensions _tmp2_; - gint _tmp3_; - gint _tmp7_ = 0; - gint _tmp8_; - Dimensions _tmp9_; - gint _tmp10_; - Dimensions _tmp14_ = {0}; -#line 74 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (min != NULL); -#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).width; -#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = *min; -#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = _tmp2_.width; -#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp1_ > _tmp3_) { -#line 546 "Dimensions.c" - gint _tmp4_; -#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = (*self).width; -#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = _tmp4_; -#line 552 "Dimensions.c" - } else { - Dimensions _tmp5_; - gint _tmp6_; -#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = *min; -#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = _tmp5_.width; -#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = _tmp6_; -#line 562 "Dimensions.c" - } -#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = (*self).height; -#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = *min; -#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = _tmp9_.height; -#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp8_ > _tmp10_) { -#line 572 "Dimensions.c" - gint _tmp11_; -#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp11_ = (*self).height; -#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = _tmp11_; -#line 578 "Dimensions.c" - } else { - Dimensions _tmp12_; - gint _tmp13_; -#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp12_ = *min; -#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp13_ = _tmp12_.height; -#line 76 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = _tmp13_; -#line 588 "Dimensions.c" - } -#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp14_, _tmp0_, _tmp7_); -#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp14_; -#line 75 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 596 "Dimensions.c" -} - - -gchar* -dimensions_to_string (Dimensions *self) -{ - gchar* result = NULL; - gint _tmp0_; - gint _tmp1_; - gchar* _tmp2_; -#line 80 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).width; -#line 80 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).height; -#line 80 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = g_strdup_printf ("%dx%d", _tmp0_, _tmp1_); -#line 80 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp2_; -#line 80 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 617 "Dimensions.c" -} - - -gboolean -dimensions_equals (Dimensions *self, - Dimensions* dim) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gint _tmp1_; - Dimensions _tmp2_; - gint _tmp3_; -#line 83 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_val_if_fail (dim != NULL, FALSE); -#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).width; -#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = *dim; -#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = _tmp2_.width; -#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp1_ == _tmp3_) { -#line 640 "Dimensions.c" - gint _tmp4_; - Dimensions _tmp5_; - gint _tmp6_; -#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = (*self).height; -#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = *dim; -#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = _tmp5_.height; -#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = _tmp4_ == _tmp6_; -#line 652 "Dimensions.c" - } else { -#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = FALSE; -#line 656 "Dimensions.c" - } -#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp0_; -#line 84 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 662 "Dimensions.c" -} - - -gboolean -dimensions_approx_equals (Dimensions *self, - Dimensions* dim, - gint fudge) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gint _tmp1_; - Dimensions _tmp2_; - gint _tmp3_; -#line 88 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_val_if_fail (dim != NULL, FALSE); -#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).width; -#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = *dim; -#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = _tmp2_.width; -#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (abs (_tmp1_ - _tmp3_) <= fudge) { -#line 686 "Dimensions.c" - gint _tmp4_; - Dimensions _tmp5_; - gint _tmp6_; -#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = (*self).height; -#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = *dim; -#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = _tmp5_.height; -#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = abs (_tmp4_ - _tmp6_) <= fudge; -#line 698 "Dimensions.c" - } else { -#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = FALSE; -#line 702 "Dimensions.c" - } -#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp0_; -#line 89 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 708 "Dimensions.c" -} - - -gboolean -dimensions_approx_scaled (Dimensions *self, - gint scale, - gint fudge) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 93 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).width; -#line 93 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp1_ <= (scale + fudge)) { -#line 724 "Dimensions.c" - gint _tmp2_; -#line 93 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = (*self).height; -#line 93 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = _tmp2_ <= (scale + fudge); -#line 730 "Dimensions.c" - } else { -#line 93 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = FALSE; -#line 734 "Dimensions.c" - } -#line 93 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp0_; -#line 93 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 740 "Dimensions.c" -} - - -gint -dimensions_major_axis (Dimensions *self) -{ - gint result = 0; - gint _tmp0_; - gint _tmp1_; -#line 97 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).width; -#line 97 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).height; -#line 97 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = MAX (_tmp0_, _tmp1_); -#line 97 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 758 "Dimensions.c" -} - - -gint -dimensions_minor_axis (Dimensions *self) -{ - gint result = 0; - gint _tmp0_; - gint _tmp1_; -#line 101 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).width; -#line 101 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).height; -#line 101 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = MIN (_tmp0_, _tmp1_); -#line 101 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 776 "Dimensions.c" -} - - -void -dimensions_with_min (Dimensions *self, - gint min_width, - gint min_height, - Dimensions* result) -{ - gint _tmp0_; - gint _tmp1_; - Dimensions _tmp2_ = {0}; -#line 105 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).width; -#line 105 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).height; -#line 105 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp2_, MAX (_tmp0_, min_width), MAX (_tmp1_, min_height)); -#line 105 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp2_; -#line 105 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 799 "Dimensions.c" -} - - -void -dimensions_with_max (Dimensions *self, - gint max_width, - gint max_height, - Dimensions* result) -{ - gint _tmp0_; - gint _tmp1_; - Dimensions _tmp2_ = {0}; -#line 109 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).width; -#line 109 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).height; -#line 109 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp2_, MIN (_tmp0_, max_width), MIN (_tmp1_, max_height)); -#line 109 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp2_; -#line 109 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 822 "Dimensions.c" -} - - -void -dimensions_get_scaled (Dimensions *self, - gint scale, - gboolean scale_up, - Dimensions* result) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gint _tmp2_; - gboolean _tmp10_ = FALSE; - gint _tmp17_; - gint _tmp18_; -#line 113 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_assert (scale > 0, "scale > 0"); -#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = (*self).width; -#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp2_ == scale) { -#line 844 "Dimensions.c" - gint _tmp3_; -#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = (*self).height; -#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = _tmp3_ < scale; -#line 850 "Dimensions.c" - } else { -#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = FALSE; -#line 854 "Dimensions.c" - } -#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp1_) { -#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = TRUE; -#line 860 "Dimensions.c" - } else { - gboolean _tmp4_ = FALSE; - gint _tmp5_; -#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = (*self).height; -#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp5_ == scale) { -#line 868 "Dimensions.c" - gint _tmp6_; -#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = (*self).width; -#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = _tmp6_ < scale; -#line 874 "Dimensions.c" - } else { -#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = FALSE; -#line 878 "Dimensions.c" - } -#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = _tmp4_; -#line 882 "Dimensions.c" - } -#line 116 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp0_) { -#line 886 "Dimensions.c" - gint _tmp7_; - gint _tmp8_; - Dimensions _tmp9_ = {0}; -#line 117 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = (*self).width; -#line 117 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = (*self).height; -#line 117 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp9_, _tmp7_, _tmp8_); -#line 117 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp9_; -#line 117 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 900 "Dimensions.c" - } -#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (!scale_up) { -#line 904 "Dimensions.c" - gboolean _tmp11_ = FALSE; - gint _tmp12_; -#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp12_ = (*self).width; -#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp12_ < scale) { -#line 911 "Dimensions.c" - gint _tmp13_; -#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp13_ = (*self).height; -#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp11_ = _tmp13_ < scale; -#line 917 "Dimensions.c" - } else { -#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp11_ = FALSE; -#line 921 "Dimensions.c" - } -#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = _tmp11_; -#line 925 "Dimensions.c" - } else { -#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = FALSE; -#line 929 "Dimensions.c" - } -#line 120 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp10_) { -#line 933 "Dimensions.c" - gint _tmp14_; - gint _tmp15_; - Dimensions _tmp16_ = {0}; -#line 121 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp14_ = (*self).width; -#line 121 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp15_ = (*self).height; -#line 121 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp16_, _tmp14_, _tmp15_); -#line 121 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp16_; -#line 121 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 947 "Dimensions.c" - } -#line 123 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp17_ = (*self).width; -#line 123 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp18_ = (*self).height; -#line 123 "/home/jens/Source/shotwell/src/Dimensions.vala" - if ((_tmp17_ - scale) > (_tmp18_ - scale)) { -#line 955 "Dimensions.c" - Dimensions _tmp19_ = {0}; -#line 124 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_get_scaled_by_width (&(*self), scale, &_tmp19_); -#line 124 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp19_; -#line 124 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 963 "Dimensions.c" - } else { - Dimensions _tmp20_ = {0}; -#line 126 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_get_scaled_by_height (&(*self), scale, &_tmp20_); -#line 126 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp20_; -#line 126 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 972 "Dimensions.c" - } -} - - -void -dimensions_get_scale_ratios (Dimensions *self, - Dimensions* scaled, - gdouble* width_ratio, - gdouble* height_ratio) -{ - gdouble _vala_width_ratio = 0.0; - gdouble _vala_height_ratio = 0.0; - Dimensions _tmp0_; - gint _tmp1_; - gint _tmp2_; - Dimensions _tmp3_; - gint _tmp4_; - gint _tmp5_; -#line 129 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (scaled != NULL); -#line 130 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = *scaled; -#line 130 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = _tmp0_.width; -#line 130 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = (*self).width; -#line 130 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_width_ratio = ((gdouble) _tmp1_) / ((gdouble) _tmp2_); -#line 131 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = *scaled; -#line 131 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = _tmp3_.height; -#line 131 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = (*self).height; -#line 131 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_height_ratio = ((gdouble) _tmp4_) / ((gdouble) _tmp5_); -#line 129 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (width_ratio) { -#line 129 "/home/jens/Source/shotwell/src/Dimensions.vala" - *width_ratio = _vala_width_ratio; -#line 1013 "Dimensions.c" - } -#line 129 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (height_ratio) { -#line 129 "/home/jens/Source/shotwell/src/Dimensions.vala" - *height_ratio = _vala_height_ratio; -#line 1019 "Dimensions.c" - } -} - - -gdouble -dimensions_get_aspect_ratio (Dimensions *self) -{ - gdouble result = 0.0; - gint _tmp0_; - gint _tmp1_; -#line 135 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).width; -#line 135 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).height; -#line 135 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = ((gdouble) _tmp0_) / _tmp1_; -#line 135 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 1038 "Dimensions.c" -} - - -void -dimensions_get_scaled_proportional (Dimensions *self, - Dimensions* viewport, - Dimensions* result) -{ - gdouble width_ratio = 0.0; - gdouble height_ratio = 0.0; - Dimensions _tmp0_; - gdouble _tmp1_ = 0.0; - gdouble _tmp2_ = 0.0; - gdouble scaled_width = 0.0; - gdouble scaled_height = 0.0; - gdouble _tmp3_; - gdouble _tmp4_; - Dimensions scaled = {0}; - gdouble _tmp13_; - gdouble _tmp14_; - Dimensions _tmp15_ = {0}; - Dimensions _tmp16_ = {0}; - Dimensions _tmp17_ = {0}; - Dimensions _tmp18_; - gint _tmp19_; - Dimensions _tmp20_; - gint _tmp21_; - Dimensions _tmp22_; - gint _tmp23_; - Dimensions _tmp24_; - gint _tmp25_; -#line 138 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (viewport != NULL); -#line 140 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = *viewport; -#line 140 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_get_scale_ratios (&(*self), &_tmp0_, &_tmp1_, &_tmp2_); -#line 140 "/home/jens/Source/shotwell/src/Dimensions.vala" - width_ratio = _tmp1_; -#line 140 "/home/jens/Source/shotwell/src/Dimensions.vala" - height_ratio = _tmp2_; -#line 143 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = width_ratio; -#line 143 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = height_ratio; -#line 143 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp3_ < _tmp4_) { -#line 1086 "Dimensions.c" - Dimensions _tmp5_; - gint _tmp6_; - gint _tmp7_; - gdouble _tmp8_; -#line 144 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = *viewport; -#line 144 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = _tmp5_.width; -#line 144 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled_width = (gdouble) _tmp6_; -#line 145 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = (*self).height; -#line 145 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = width_ratio; -#line 145 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled_height = ((gdouble) _tmp7_) * _tmp8_; -#line 1103 "Dimensions.c" - } else { - gint _tmp9_; - gdouble _tmp10_; - Dimensions _tmp11_; - gint _tmp12_; -#line 147 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = (*self).width; -#line 147 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = height_ratio; -#line 147 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled_width = ((gdouble) _tmp9_) * _tmp10_; -#line 148 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp11_ = *viewport; -#line 148 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp12_ = _tmp11_.height; -#line 148 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled_height = (gdouble) _tmp12_; -#line 1121 "Dimensions.c" - } -#line 151 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp13_ = scaled_width; -#line 151 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp14_ = scaled_height; -#line 151 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp15_, (gint) round (_tmp13_), (gint) round (_tmp14_)); -#line 151 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp16_, 1, 1); -#line 151 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_floor (&_tmp15_, &_tmp16_, &_tmp17_); -#line 151 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled = _tmp17_; -#line 153 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp18_ = scaled; -#line 153 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp19_ = _tmp18_.height; -#line 153 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp20_ = *viewport; -#line 153 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp21_ = _tmp20_.height; -#line 153 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_assert (_tmp19_ <= _tmp21_, "scaled.height <= viewport.height"); -#line 154 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp22_ = scaled; -#line 154 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp23_ = _tmp22_.width; -#line 154 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp24_ = *viewport; -#line 154 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp25_ = _tmp24_.width; -#line 154 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_assert (_tmp23_ <= _tmp25_, "scaled.width <= viewport.width"); -#line 156 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = scaled; -#line 156 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1159 "Dimensions.c" -} - - -void -dimensions_get_scaled_to_fill_viewport (Dimensions *self, - Dimensions* viewport, - Dimensions* result) -{ - gdouble width_ratio = 0.0; - gdouble height_ratio = 0.0; - Dimensions _tmp0_; - gdouble _tmp1_ = 0.0; - gdouble _tmp2_ = 0.0; - gdouble scaled_width = 0.0; - gdouble scaled_height = 0.0; - gboolean _tmp3_ = FALSE; - gint _tmp4_; - Dimensions _tmp5_; - gint _tmp6_; - gdouble _tmp31_; - gdouble _tmp32_; - Dimensions _tmp33_ = {0}; - Dimensions _tmp34_ = {0}; - Dimensions _tmp35_ = {0}; -#line 159 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (viewport != NULL); -#line 161 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = *viewport; -#line 161 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_get_scale_ratios (&(*self), &_tmp0_, &_tmp1_, &_tmp2_); -#line 161 "/home/jens/Source/shotwell/src/Dimensions.vala" - width_ratio = _tmp1_; -#line 161 "/home/jens/Source/shotwell/src/Dimensions.vala" - height_ratio = _tmp2_; -#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = (*self).width; -#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = *viewport; -#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = _tmp5_.width; -#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp4_ < _tmp6_) { -#line 1202 "Dimensions.c" - gint _tmp7_; - Dimensions _tmp8_; - gint _tmp9_; -#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = (*self).height; -#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = *viewport; -#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = _tmp8_.height; -#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = _tmp7_ >= _tmp9_; -#line 1214 "Dimensions.c" - } else { -#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = FALSE; -#line 1218 "Dimensions.c" - } -#line 164 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp3_) { -#line 1222 "Dimensions.c" - Dimensions _tmp10_; - gint _tmp11_; - gint _tmp12_; - gdouble _tmp13_; -#line 166 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = *viewport; -#line 166 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp11_ = _tmp10_.width; -#line 166 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled_width = (gdouble) _tmp11_; -#line 167 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp12_ = (*self).height; -#line 167 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp13_ = width_ratio; -#line 167 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled_height = ((gdouble) _tmp12_) * _tmp13_; -#line 1239 "Dimensions.c" - } else { - gboolean _tmp14_ = FALSE; - gint _tmp15_; - Dimensions _tmp16_; - gint _tmp17_; -#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp15_ = (*self).width; -#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp16_ = *viewport; -#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp17_ = _tmp16_.width; -#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp15_ >= _tmp17_) { -#line 1253 "Dimensions.c" - gint _tmp18_; - Dimensions _tmp19_; - gint _tmp20_; -#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp18_ = (*self).height; -#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp19_ = *viewport; -#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp20_ = _tmp19_.height; -#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp14_ = _tmp18_ < _tmp20_; -#line 1265 "Dimensions.c" - } else { -#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp14_ = FALSE; -#line 1269 "Dimensions.c" - } -#line 168 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp14_) { -#line 1273 "Dimensions.c" - gint _tmp21_; - gdouble _tmp22_; - Dimensions _tmp23_; - gint _tmp24_; -#line 170 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp21_ = (*self).width; -#line 170 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp22_ = height_ratio; -#line 170 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled_width = ((gdouble) _tmp21_) * _tmp22_; -#line 171 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp23_ = *viewport; -#line 171 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp24_ = _tmp23_.height; -#line 171 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled_height = (gdouble) _tmp24_; -#line 1290 "Dimensions.c" - } else { - gdouble ratio = 0.0; - gdouble _tmp25_; - gdouble _tmp26_; - gint _tmp27_; - gdouble _tmp28_; - gint _tmp29_; - gdouble _tmp30_; -#line 174 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp25_ = width_ratio; -#line 174 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp26_ = height_ratio; -#line 174 "/home/jens/Source/shotwell/src/Dimensions.vala" - ratio = MAX (_tmp25_, _tmp26_); -#line 176 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp27_ = (*self).width; -#line 176 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp28_ = ratio; -#line 176 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled_width = ((gdouble) _tmp27_) * _tmp28_; -#line 177 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp29_ = (*self).height; -#line 177 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp30_ = ratio; -#line 177 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled_height = ((gdouble) _tmp29_) * _tmp30_; -#line 1317 "Dimensions.c" - } - } -#line 180 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp31_ = scaled_width; -#line 180 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp32_ = scaled_height; -#line 180 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp33_, (gint) round (_tmp31_), (gint) round (_tmp32_)); -#line 180 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp34_, 1, 1); -#line 180 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_floor (&_tmp33_, &_tmp34_, &_tmp35_); -#line 180 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp35_; -#line 180 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1334 "Dimensions.c" -} - - -void -dimensions_get_scaled_rectangle (Dimensions *self, - Dimensions* scaled, - GdkRectangle* rect, - GdkRectangle* result) -{ - gdouble x_scale = 0.0; - gdouble y_scale = 0.0; - Dimensions _tmp0_; - gdouble _tmp1_ = 0.0; - gdouble _tmp2_ = 0.0; - GdkRectangle scaled_rect = {0}; - GdkRectangle _tmp3_; - gint _tmp4_; - gdouble _tmp5_; - GdkRectangle _tmp6_; - gint _tmp7_; - gdouble _tmp8_; - GdkRectangle _tmp9_; - gint _tmp10_; - gdouble _tmp11_; - GdkRectangle _tmp12_; - gint _tmp13_; - gdouble _tmp14_; - GdkRectangle _tmp15_; - gint _tmp16_; - GdkRectangle _tmp17_; - gint _tmp18_; -#line 183 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (scaled != NULL); -#line 183 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (rect != NULL); -#line 185 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = *scaled; -#line 185 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_get_scale_ratios (&(*self), &_tmp0_, &_tmp1_, &_tmp2_); -#line 185 "/home/jens/Source/shotwell/src/Dimensions.vala" - x_scale = _tmp1_; -#line 185 "/home/jens/Source/shotwell/src/Dimensions.vala" - y_scale = _tmp2_; -#line 187 "/home/jens/Source/shotwell/src/Dimensions.vala" - memset (&scaled_rect, 0, sizeof (GdkRectangle)); -#line 188 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = *rect; -#line 188 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = _tmp3_.x; -#line 188 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = x_scale; -#line 188 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled_rect.x = (gint) round (((gdouble) _tmp4_) * _tmp5_); -#line 189 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = *rect; -#line 189 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = _tmp6_.y; -#line 189 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = y_scale; -#line 189 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled_rect.y = (gint) round (((gdouble) _tmp7_) * _tmp8_); -#line 190 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = *rect; -#line 190 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = _tmp9_.width; -#line 190 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp11_ = x_scale; -#line 190 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled_rect.width = (gint) round (((gdouble) _tmp10_) * _tmp11_); -#line 191 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp12_ = *rect; -#line 191 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp13_ = _tmp12_.height; -#line 191 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp14_ = y_scale; -#line 191 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled_rect.height = (gint) round (((gdouble) _tmp13_) * _tmp14_); -#line 193 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp15_ = scaled_rect; -#line 193 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp16_ = _tmp15_.width; -#line 193 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp16_ <= 0) { -#line 194 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled_rect.width = 1; -#line 1420 "Dimensions.c" - } -#line 196 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp17_ = scaled_rect; -#line 196 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp18_ = _tmp17_.height; -#line 196 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp18_ <= 0) { -#line 197 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled_rect.height = 1; -#line 1430 "Dimensions.c" - } -#line 199 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = scaled_rect; -#line 199 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1436 "Dimensions.c" -} - - -void -dimensions_get_scaled_similar (Dimensions *self, - Dimensions* original, - Dimensions* scaled, - Dimensions* result) -{ - gdouble x_scale = 0.0; - gdouble y_scale = 0.0; - Dimensions _tmp0_; - gdouble _tmp1_ = 0.0; - gdouble _tmp2_ = 0.0; - gdouble scale = 0.0; - gint _tmp3_; - gint _tmp4_; - Dimensions _tmp5_ = {0}; - Dimensions _tmp6_ = {0}; - Dimensions _tmp7_ = {0}; -#line 203 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (original != NULL); -#line 203 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (scaled != NULL); -#line 205 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = *scaled; -#line 205 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_get_scale_ratios (original, &_tmp0_, &_tmp1_, &_tmp2_); -#line 205 "/home/jens/Source/shotwell/src/Dimensions.vala" - x_scale = _tmp1_; -#line 205 "/home/jens/Source/shotwell/src/Dimensions.vala" - y_scale = _tmp2_; -#line 207 "/home/jens/Source/shotwell/src/Dimensions.vala" - scale = MIN (x_scale, y_scale); -#line 209 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = (*self).width; -#line 209 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = (*self).height; -#line 209 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp5_, (gint) round (((gdouble) _tmp3_) * scale), (gint) round (((gdouble) _tmp4_) * scale)); -#line 209 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp6_, 1, 1); -#line 209 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_floor (&_tmp5_, &_tmp6_, &_tmp7_); -#line 209 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp7_; -#line 209 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1485 "Dimensions.c" -} - - -void -dimensions_get_scaled_by_width (Dimensions *self, - gint scale, - Dimensions* result) -{ - gdouble ratio = 0.0; - gint _tmp0_; - gint _tmp1_; - Dimensions _tmp2_ = {0}; - Dimensions _tmp3_ = {0}; - Dimensions _tmp4_ = {0}; -#line 214 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_assert (scale > 0, "scale > 0"); -#line 216 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).width; -#line 216 "/home/jens/Source/shotwell/src/Dimensions.vala" - ratio = ((gdouble) scale) / ((gdouble) _tmp0_); -#line 218 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).height; -#line 218 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp2_, scale, (gint) round (((gdouble) _tmp1_) * ratio)); -#line 218 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp3_, 1, 1); -#line 218 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_floor (&_tmp2_, &_tmp3_, &_tmp4_); -#line 218 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp4_; -#line 218 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1518 "Dimensions.c" -} - - -void -dimensions_get_scaled_by_height (Dimensions *self, - gint scale, - Dimensions* result) -{ - gdouble ratio = 0.0; - gint _tmp0_; - gint _tmp1_; - Dimensions _tmp2_ = {0}; - Dimensions _tmp3_ = {0}; - Dimensions _tmp4_ = {0}; -#line 222 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_assert (scale > 0, "scale > 0"); -#line 224 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).height; -#line 224 "/home/jens/Source/shotwell/src/Dimensions.vala" - ratio = ((gdouble) scale) / ((gdouble) _tmp0_); -#line 226 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).width; -#line 226 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp2_, (gint) round (((gdouble) _tmp1_) * ratio), scale); -#line 226 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp3_, 1, 1); -#line 226 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_floor (&_tmp2_, &_tmp3_, &_tmp4_); -#line 226 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp4_; -#line 226 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1551 "Dimensions.c" -} - - -void -dimensions_get_scaled_by_constraint (Dimensions *self, - gint scale, - ScaleConstraint constraint, - Dimensions* result) -{ -#line 230 "/home/jens/Source/shotwell/src/Dimensions.vala" - switch (constraint) { -#line 230 "/home/jens/Source/shotwell/src/Dimensions.vala" - case SCALE_CONSTRAINT_ORIGINAL: -#line 1565 "Dimensions.c" - { - gint _tmp0_; - gint _tmp1_; - Dimensions _tmp2_ = {0}; -#line 232 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).width; -#line 232 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).height; -#line 232 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp2_, _tmp0_, _tmp1_); -#line 232 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp2_; -#line 232 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1580 "Dimensions.c" - } -#line 230 "/home/jens/Source/shotwell/src/Dimensions.vala" - case SCALE_CONSTRAINT_DIMENSIONS: -#line 1584 "Dimensions.c" - { - Dimensions _tmp3_ = {0}; - gint _tmp4_; - gint _tmp5_; -#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = (*self).width; -#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = (*self).height; -#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp4_ >= _tmp5_) { -#line 1595 "Dimensions.c" - Dimensions _tmp6_ = {0}; -#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_get_scaled_by_width (&(*self), scale, &_tmp6_); -#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = _tmp6_; -#line 1601 "Dimensions.c" - } else { - Dimensions _tmp7_ = {0}; -#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_get_scaled_by_height (&(*self), scale, &_tmp7_); -#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = _tmp7_; -#line 1608 "Dimensions.c" - } -#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp3_; -#line 235 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1614 "Dimensions.c" - } -#line 230 "/home/jens/Source/shotwell/src/Dimensions.vala" - case SCALE_CONSTRAINT_WIDTH: -#line 1618 "Dimensions.c" - { - Dimensions _tmp8_ = {0}; -#line 238 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_get_scaled_by_width (&(*self), scale, &_tmp8_); -#line 238 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp8_; -#line 238 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1627 "Dimensions.c" - } -#line 230 "/home/jens/Source/shotwell/src/Dimensions.vala" - case SCALE_CONSTRAINT_HEIGHT: -#line 1631 "Dimensions.c" - { - Dimensions _tmp9_ = {0}; -#line 241 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_get_scaled_by_height (&(*self), scale, &_tmp9_); -#line 241 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp9_; -#line 241 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1640 "Dimensions.c" - } - default: - { -#line 244 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_error ("Dimensions.vala:244: Bad constraint: %d", (gint) constraint); -#line 1646 "Dimensions.c" - } - } -} - - -Dimensions* -dimensions_dup (const Dimensions* self) -{ - Dimensions* dup; -#line 39 "/home/jens/Source/shotwell/src/Dimensions.vala" - dup = g_new0 (Dimensions, 1); -#line 39 "/home/jens/Source/shotwell/src/Dimensions.vala" - memcpy (dup, self, sizeof (Dimensions)); -#line 39 "/home/jens/Source/shotwell/src/Dimensions.vala" - return dup; -#line 1662 "Dimensions.c" -} - - -void -dimensions_free (Dimensions* self) -{ -#line 39 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_free (self); -#line 1671 "Dimensions.c" -} - - -GType -dimensions_get_type (void) -{ - static volatile gsize dimensions_type_id__volatile = 0; - if (g_once_init_enter (&dimensions_type_id__volatile)) { - GType dimensions_type_id; - dimensions_type_id = g_boxed_type_register_static ("Dimensions", (GBoxedCopyFunc) dimensions_dup, (GBoxedFreeFunc) dimensions_free); - g_once_init_leave (&dimensions_type_id__volatile, dimensions_type_id); - } - return dimensions_type_id__volatile; -} - - -static void -scaling_init (Scaling *self, - ScaleConstraint constraint, - gint scale, - Dimensions* viewport, - gboolean scale_up) -{ - Dimensions _tmp0_; -#line 257 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (viewport != NULL); -#line 257 "/home/jens/Source/shotwell/src/Dimensions.vala" - memset (self, 0, sizeof (Scaling)); -#line 258 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).constraint = constraint; -#line 259 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).scale = scale; -#line 260 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = *viewport; -#line 260 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).viewport = _tmp0_; -#line 261 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).scale_up = scale_up; -#line 1710 "Dimensions.c" -} - - -void -scaling_for_original (Scaling* result) -{ - Dimensions _tmp0_ = {0}; - Scaling _tmp1_ = {0}; -#line 265 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp0_, 0, 0); -#line 265 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaling_init (&_tmp1_, SCALE_CONSTRAINT_ORIGINAL, SCALING_NO_SCALE, &_tmp0_, FALSE); -#line 265 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp1_; -#line 265 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1727 "Dimensions.c" -} - - -void -scaling_for_screen (GtkWindow* window, - gboolean scale_up, - Scaling* result) -{ - Dimensions _tmp0_ = {0}; - Scaling _tmp1_ = {0}; -#line 268 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (GTK_IS_WINDOW (window)); -#line 269 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaling_get_screen_dimensions (window, &_tmp0_); -#line 269 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaling_for_viewport (&_tmp0_, scale_up, &_tmp1_); -#line 269 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp1_; -#line 269 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1748 "Dimensions.c" -} - - -void -scaling_for_best_fit (gint pixels, - gboolean scale_up, - Scaling* result) -{ - Dimensions _tmp0_ = {0}; - Scaling _tmp1_ = {0}; -#line 273 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_assert (pixels > 0, "pixels > 0"); -#line 275 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp0_, 0, 0); -#line 275 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaling_init (&_tmp1_, SCALE_CONSTRAINT_DIMENSIONS, pixels, &_tmp0_, scale_up); -#line 275 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp1_; -#line 275 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1769 "Dimensions.c" -} - - -void -scaling_for_viewport (Dimensions* viewport, - gboolean scale_up, - Scaling* result) -{ - Dimensions _tmp0_; - Scaling _tmp1_ = {0}; -#line 278 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (viewport != NULL); -#line 279 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_assert (dimensions_has_area (viewport), "viewport.has_area()"); -#line 281 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = *viewport; -#line 281 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaling_init (&_tmp1_, SCALE_CONSTRAINT_DIMENSIONS, SCALING_NO_SCALE, &_tmp0_, scale_up); -#line 281 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp1_; -#line 281 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1792 "Dimensions.c" -} - - -void -scaling_for_widget (GtkWidget* widget, - gboolean scale_up, - Scaling* result) -{ - Dimensions viewport = {0}; - Dimensions _tmp0_ = {0}; - gboolean _tmp1_ = FALSE; - Dimensions _tmp2_; - gint _tmp3_; - Dimensions _tmp7_; - Scaling _tmp8_ = {0}; -#line 284 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (GTK_IS_WIDGET (widget)); -#line 285 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_for_widget_allocation (widget, &_tmp0_); -#line 285 "/home/jens/Source/shotwell/src/Dimensions.vala" - viewport = _tmp0_; -#line 295 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = viewport; -#line 295 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = _tmp2_.width; -#line 295 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp3_ <= 1) { -#line 295 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = TRUE; -#line 1822 "Dimensions.c" - } else { - Dimensions _tmp4_; - gint _tmp5_; -#line 295 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = viewport; -#line 295 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = _tmp4_.height; -#line 295 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = _tmp5_ <= 1; -#line 1832 "Dimensions.c" - } -#line 295 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp1_) { -#line 1836 "Dimensions.c" - Scaling _tmp6_ = {0}; -#line 296 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaling_for_original (&_tmp6_); -#line 296 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp6_; -#line 296 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1844 "Dimensions.c" - } -#line 298 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = viewport; -#line 298 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaling_init (&_tmp8_, SCALE_CONSTRAINT_DIMENSIONS, SCALING_NO_SCALE, &_tmp7_, scale_up); -#line 298 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp8_; -#line 298 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1854 "Dimensions.c" -} - - -void -scaling_to_fill_viewport (Dimensions* viewport, - Scaling* result) -{ - gboolean _tmp0_ = FALSE; - Dimensions _tmp1_; - gint _tmp2_; - Dimensions _tmp6_; - Scaling _tmp7_ = {0}; -#line 301 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (viewport != NULL); -#line 304 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = *viewport; -#line 304 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = _tmp1_.width; -#line 304 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp2_ <= 1) { -#line 304 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = TRUE; -#line 1877 "Dimensions.c" - } else { - Dimensions _tmp3_; - gint _tmp4_; -#line 304 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = *viewport; -#line 304 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = _tmp3_.height; -#line 304 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = _tmp4_ <= 1; -#line 1887 "Dimensions.c" - } -#line 304 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp0_) { -#line 1891 "Dimensions.c" - Scaling _tmp5_ = {0}; -#line 305 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaling_for_original (&_tmp5_); -#line 305 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp5_; -#line 305 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1899 "Dimensions.c" - } -#line 307 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = *viewport; -#line 307 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaling_init (&_tmp7_, SCALE_CONSTRAINT_FILL_VIEWPORT, SCALING_NO_SCALE, &_tmp6_, TRUE); -#line 307 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp7_; -#line 307 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1909 "Dimensions.c" -} - - -void -scaling_to_fill_screen (GtkWindow* window, - Scaling* result) -{ - Dimensions _tmp0_ = {0}; - Scaling _tmp1_ = {0}; -#line 310 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (GTK_IS_WINDOW (window)); -#line 311 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaling_get_screen_dimensions (window, &_tmp0_); -#line 311 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaling_to_fill_viewport (&_tmp0_, &_tmp1_); -#line 311 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp1_; -#line 311 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1929 "Dimensions.c" -} - - -void -scaling_for_constraint (ScaleConstraint constraint, - gint scale, - gboolean scale_up, - Scaling* result) -{ - Dimensions _tmp0_ = {0}; - Scaling _tmp1_ = {0}; -#line 315 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp0_, 0, 0); -#line 315 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaling_init (&_tmp1_, constraint, scale, &_tmp0_, scale_up); -#line 315 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp1_; -#line 315 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1949 "Dimensions.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 319 "/home/jens/Source/shotwell/src/Dimensions.vala" - return self ? g_object_ref (self) : NULL; -#line 1958 "Dimensions.c" -} - - -static void -scaling_get_screen_dimensions (GtkWindow* window, - Dimensions* result) -{ - GdkScreen* screen = NULL; - GdkScreen* _tmp0_; - GdkScreen* _tmp1_; - Dimensions _tmp2_ = {0}; -#line 318 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (GTK_IS_WINDOW (window)); -#line 319 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = gtk_window_get_screen (window); -#line 319 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 319 "/home/jens/Source/shotwell/src/Dimensions.vala" - screen = _tmp1_; -#line 321 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_tmp2_, gdk_screen_get_width (screen), gdk_screen_get_height (screen)); -#line 321 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp2_; -#line 321 "/home/jens/Source/shotwell/src/Dimensions.vala" - _g_object_unref0 (screen); -#line 321 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 1986 "Dimensions.c" -} - - -static gint -scaling_scale_to_pixels (Scaling *self) -{ - gint result = 0; - gint _tmp0_ = 0; - gint _tmp1_; -#line 325 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).scale; -#line 325 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp1_ >= 0) { -#line 2000 "Dimensions.c" - gint _tmp2_; -#line 325 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = (*self).scale; -#line 325 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = _tmp2_; -#line 2006 "Dimensions.c" - } else { -#line 325 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = 0; -#line 2010 "Dimensions.c" - } -#line 325 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp0_; -#line 325 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2016 "Dimensions.c" -} - - -gboolean -scaling_is_unscaled (Scaling *self) -{ - gboolean result = FALSE; - ScaleConstraint _tmp0_; -#line 329 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).constraint; -#line 329 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp0_ == SCALE_CONSTRAINT_ORIGINAL; -#line 329 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2031 "Dimensions.c" -} - - -gboolean -scaling_is_best_fit (Scaling *self, - Dimensions* original, - gint* pixels) -{ - gint _vala_pixels = 0; - gboolean result = FALSE; - gint _tmp0_; - ScaleConstraint _tmp1_; -#line 332 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_val_if_fail (original != NULL, FALSE); -#line 333 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_pixels = 0; -#line 335 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).scale; -#line 335 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp0_ == SCALING_NO_SCALE) { -#line 336 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = FALSE; -#line 336 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (pixels) { -#line 336 "/home/jens/Source/shotwell/src/Dimensions.vala" - *pixels = _vala_pixels; -#line 2058 "Dimensions.c" - } -#line 336 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2062 "Dimensions.c" - } -#line 338 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).constraint; -#line 338 "/home/jens/Source/shotwell/src/Dimensions.vala" - switch (_tmp1_) { -#line 338 "/home/jens/Source/shotwell/src/Dimensions.vala" - case SCALE_CONSTRAINT_ORIGINAL: -#line 338 "/home/jens/Source/shotwell/src/Dimensions.vala" - case SCALE_CONSTRAINT_FILL_VIEWPORT: -#line 2072 "Dimensions.c" - { -#line 341 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = FALSE; -#line 341 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (pixels) { -#line 341 "/home/jens/Source/shotwell/src/Dimensions.vala" - *pixels = _vala_pixels; -#line 2080 "Dimensions.c" - } -#line 341 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2084 "Dimensions.c" - } - default: - { - gint _tmp2_; -#line 344 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_pixels = scaling_scale_to_pixels (&(*self)); -#line 345 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = _vala_pixels; -#line 345 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_assert (_tmp2_ > 0, "pixels > 0"); -#line 347 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = TRUE; -#line 347 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (pixels) { -#line 347 "/home/jens/Source/shotwell/src/Dimensions.vala" - *pixels = _vala_pixels; -#line 2101 "Dimensions.c" - } -#line 347 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2105 "Dimensions.c" - } - } -#line 332 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (pixels) { -#line 332 "/home/jens/Source/shotwell/src/Dimensions.vala" - *pixels = _vala_pixels; -#line 2112 "Dimensions.c" - } -} - - -gboolean -scaling_is_best_fit_dimensions (Scaling *self, - Dimensions* original, - Dimensions* scaled) -{ - Dimensions _vala_scaled = {0}; - gboolean result = FALSE; - gint _tmp0_; - ScaleConstraint _tmp1_; -#line 351 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_val_if_fail (original != NULL, FALSE); -#line 352 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_vala_scaled, 0, 0); -#line 354 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).scale; -#line 354 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp0_ == SCALING_NO_SCALE) { -#line 355 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = FALSE; -#line 355 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (scaled) { -#line 355 "/home/jens/Source/shotwell/src/Dimensions.vala" - *scaled = _vala_scaled; -#line 2140 "Dimensions.c" - } -#line 355 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2144 "Dimensions.c" - } -#line 357 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).constraint; -#line 357 "/home/jens/Source/shotwell/src/Dimensions.vala" - switch (_tmp1_) { -#line 357 "/home/jens/Source/shotwell/src/Dimensions.vala" - case SCALE_CONSTRAINT_ORIGINAL: -#line 357 "/home/jens/Source/shotwell/src/Dimensions.vala" - case SCALE_CONSTRAINT_FILL_VIEWPORT: -#line 2154 "Dimensions.c" - { -#line 360 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = FALSE; -#line 360 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (scaled) { -#line 360 "/home/jens/Source/shotwell/src/Dimensions.vala" - *scaled = _vala_scaled; -#line 2162 "Dimensions.c" - } -#line 360 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2166 "Dimensions.c" - } - default: - { - gint pixels = 0; - gint _tmp2_; - gint _tmp3_; - ScaleConstraint _tmp4_; - Dimensions _tmp5_ = {0}; -#line 363 "/home/jens/Source/shotwell/src/Dimensions.vala" - pixels = scaling_scale_to_pixels (&(*self)); -#line 364 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = pixels; -#line 364 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_assert (_tmp2_ > 0, "pixels > 0"); -#line 366 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = pixels; -#line 366 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = (*self).constraint; -#line 366 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_get_scaled_by_constraint (original, _tmp3_, _tmp4_, &_tmp5_); -#line 366 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_scaled = _tmp5_; -#line 368 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = TRUE; -#line 368 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (scaled) { -#line 368 "/home/jens/Source/shotwell/src/Dimensions.vala" - *scaled = _vala_scaled; -#line 2195 "Dimensions.c" - } -#line 368 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2199 "Dimensions.c" - } - } -#line 351 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (scaled) { -#line 351 "/home/jens/Source/shotwell/src/Dimensions.vala" - *scaled = _vala_scaled; -#line 2206 "Dimensions.c" - } -} - - -gboolean -scaling_is_for_viewport (Scaling *self, - Dimensions* original, - Dimensions* scaled) -{ - Dimensions _vala_scaled = {0}; - gboolean result = FALSE; - gint _tmp0_; - ScaleConstraint _tmp1_; -#line 372 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_val_if_fail (original != NULL, FALSE); -#line 373 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_vala_scaled, 0, 0); -#line 375 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).scale; -#line 375 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp0_ != SCALING_NO_SCALE) { -#line 376 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = FALSE; -#line 376 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (scaled) { -#line 376 "/home/jens/Source/shotwell/src/Dimensions.vala" - *scaled = _vala_scaled; -#line 2234 "Dimensions.c" - } -#line 376 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2238 "Dimensions.c" - } -#line 378 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).constraint; -#line 378 "/home/jens/Source/shotwell/src/Dimensions.vala" - switch (_tmp1_) { -#line 378 "/home/jens/Source/shotwell/src/Dimensions.vala" - case SCALE_CONSTRAINT_ORIGINAL: -#line 378 "/home/jens/Source/shotwell/src/Dimensions.vala" - case SCALE_CONSTRAINT_FILL_VIEWPORT: -#line 2248 "Dimensions.c" - { -#line 381 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = FALSE; -#line 381 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (scaled) { -#line 381 "/home/jens/Source/shotwell/src/Dimensions.vala" - *scaled = _vala_scaled; -#line 2256 "Dimensions.c" - } -#line 381 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2260 "Dimensions.c" - } - default: - { - gboolean _tmp2_ = FALSE; - gboolean _tmp3_ = FALSE; - gboolean _tmp4_; -#line 384 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_assert (dimensions_has_area (&(*self).viewport), "viewport.has_area()"); -#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = (*self).scale_up; -#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (!_tmp4_) { -#line 2273 "Dimensions.c" - Dimensions _tmp5_; - gint _tmp6_; - Dimensions _tmp7_; - gint _tmp8_; -#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = *original; -#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = _tmp5_.width; -#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = (*self).viewport; -#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = _tmp7_.width; -#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = _tmp6_ < _tmp8_; -#line 2288 "Dimensions.c" - } else { -#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = FALSE; -#line 2292 "Dimensions.c" - } -#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp3_) { -#line 2296 "Dimensions.c" - Dimensions _tmp9_; - gint _tmp10_; - Dimensions _tmp11_; - gint _tmp12_; -#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = *original; -#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = _tmp9_.height; -#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp11_ = (*self).viewport; -#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp12_ = _tmp11_.height; -#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = _tmp10_ < _tmp12_; -#line 2311 "Dimensions.c" - } else { -#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = FALSE; -#line 2315 "Dimensions.c" - } -#line 386 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp2_) { -#line 2319 "Dimensions.c" - Dimensions _tmp13_; -#line 387 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp13_ = *original; -#line 387 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_scaled = _tmp13_; -#line 2325 "Dimensions.c" - } else { - Dimensions _tmp14_; - Dimensions _tmp15_ = {0}; -#line 389 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp14_ = (*self).viewport; -#line 389 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_get_scaled_proportional (original, &_tmp14_, &_tmp15_); -#line 389 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_scaled = _tmp15_; -#line 2335 "Dimensions.c" - } -#line 391 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = TRUE; -#line 391 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (scaled) { -#line 391 "/home/jens/Source/shotwell/src/Dimensions.vala" - *scaled = _vala_scaled; -#line 2343 "Dimensions.c" - } -#line 391 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2347 "Dimensions.c" - } - } -#line 372 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (scaled) { -#line 372 "/home/jens/Source/shotwell/src/Dimensions.vala" - *scaled = _vala_scaled; -#line 2354 "Dimensions.c" - } -} - - -gboolean -scaling_is_fill_viewport (Scaling *self, - Dimensions* original, - Dimensions* scaled) -{ - Dimensions _vala_scaled = {0}; - gboolean result = FALSE; - ScaleConstraint _tmp0_; - Dimensions _tmp1_; - Dimensions _tmp2_ = {0}; -#line 395 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_val_if_fail (original != NULL, FALSE); -#line 396 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_init (&_vala_scaled, 0, 0); -#line 398 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).constraint; -#line 398 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp0_ != SCALE_CONSTRAINT_FILL_VIEWPORT) { -#line 399 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = FALSE; -#line 399 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (scaled) { -#line 399 "/home/jens/Source/shotwell/src/Dimensions.vala" - *scaled = _vala_scaled; -#line 2383 "Dimensions.c" - } -#line 399 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2387 "Dimensions.c" - } -#line 401 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_assert (dimensions_has_area (&(*self).viewport), "viewport.has_area()"); -#line 402 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).viewport; -#line 402 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_get_scaled_to_fill_viewport (original, &_tmp1_, &_tmp2_); -#line 402 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_scaled = _tmp2_; -#line 404 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = TRUE; -#line 404 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (scaled) { -#line 404 "/home/jens/Source/shotwell/src/Dimensions.vala" - *scaled = _vala_scaled; -#line 2403 "Dimensions.c" - } -#line 404 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2407 "Dimensions.c" -} - - -void -scaling_get_scaled_dimensions (Scaling *self, - Dimensions* original, - Dimensions* result) -{ - Dimensions scaled = {0}; - Dimensions _tmp1_; - Dimensions _tmp2_ = {0}; - gboolean _tmp3_; - Dimensions _tmp4_; - Dimensions _tmp5_ = {0}; - gboolean _tmp6_; - gboolean is_viewport = FALSE; - Dimensions _tmp7_; - Dimensions _tmp8_ = {0}; - gboolean _tmp9_; - gboolean _tmp10_; -#line 407 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (original != NULL); -#line 408 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (scaling_is_unscaled (&(*self))) { -#line 2432 "Dimensions.c" - Dimensions _tmp0_; -#line 409 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = *original; -#line 409 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp0_; -#line 409 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 2440 "Dimensions.c" - } -#line 412 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = *original; -#line 412 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = scaling_is_fill_viewport (&(*self), &_tmp1_, &_tmp2_); -#line 412 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled = _tmp2_; -#line 412 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp3_) { -#line 413 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = scaled; -#line 413 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 2454 "Dimensions.c" - } -#line 415 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = *original; -#line 415 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = scaling_is_best_fit_dimensions (&(*self), &_tmp4_, &_tmp5_); -#line 415 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled = _tmp5_; -#line 415 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp6_) { -#line 416 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = scaled; -#line 416 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 2468 "Dimensions.c" - } -#line 418 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = *original; -#line 418 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = scaling_is_for_viewport (&(*self), &_tmp7_, &_tmp8_); -#line 418 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled = _tmp8_; -#line 418 "/home/jens/Source/shotwell/src/Dimensions.vala" - is_viewport = _tmp9_; -#line 419 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = is_viewport; -#line 419 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_assert (_tmp10_, "is_viewport"); -#line 421 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = scaled; -#line 421 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 2486 "Dimensions.c" -} - - -GdkPixbuf* -scaling_perform_on_pixbuf (Scaling *self, - GdkPixbuf* pixbuf, - GdkInterpType interp, - gboolean scale_up) -{ - GdkPixbuf* result = NULL; - Dimensions pixbuf_dim = {0}; - Dimensions _tmp1_ = {0}; - gint pixels = 0; - Dimensions _tmp2_; - gint _tmp3_ = 0; - gboolean _tmp4_; - Dimensions scaled = {0}; - Dimensions _tmp7_; - Dimensions _tmp8_ = {0}; - gboolean _tmp9_; - gboolean is_viewport = FALSE; - Dimensions _tmp12_; - Dimensions _tmp13_ = {0}; - gboolean _tmp14_; - gboolean _tmp15_; - Dimensions _tmp16_; - GdkPixbuf* _tmp17_; -#line 424 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL); -#line 425 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (scaling_is_unscaled (&(*self))) { -#line 2518 "Dimensions.c" - GdkPixbuf* _tmp0_; -#line 426 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = _g_object_ref0 (pixbuf); -#line 426 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp0_; -#line 426 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2526 "Dimensions.c" - } -#line 428 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_for_pixbuf (pixbuf, &_tmp1_); -#line 428 "/home/jens/Source/shotwell/src/Dimensions.vala" - pixbuf_dim = _tmp1_; -#line 431 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = pixbuf_dim; -#line 431 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = scaling_is_best_fit (&(*self), &_tmp2_, &_tmp3_); -#line 431 "/home/jens/Source/shotwell/src/Dimensions.vala" - pixels = _tmp3_; -#line 431 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp4_) { -#line 2540 "Dimensions.c" - gint _tmp5_; - GdkPixbuf* _tmp6_; -#line 432 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = pixels; -#line 432 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = scale_pixbuf (pixbuf, _tmp5_, interp, scale_up); -#line 432 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp6_; -#line 432 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2551 "Dimensions.c" - } -#line 435 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = pixbuf_dim; -#line 435 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = scaling_is_fill_viewport (&(*self), &_tmp7_, &_tmp8_); -#line 435 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled = _tmp8_; -#line 435 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp9_) { -#line 2561 "Dimensions.c" - Dimensions _tmp10_; - GdkPixbuf* _tmp11_; -#line 436 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = scaled; -#line 436 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp11_ = resize_pixbuf (pixbuf, &_tmp10_, interp); -#line 436 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp11_; -#line 436 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2572 "Dimensions.c" - } -#line 438 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp12_ = pixbuf_dim; -#line 438 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp14_ = scaling_is_for_viewport (&(*self), &_tmp12_, &_tmp13_); -#line 438 "/home/jens/Source/shotwell/src/Dimensions.vala" - scaled = _tmp13_; -#line 438 "/home/jens/Source/shotwell/src/Dimensions.vala" - is_viewport = _tmp14_; -#line 439 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp15_ = is_viewport; -#line 439 "/home/jens/Source/shotwell/src/Dimensions.vala" - _vala_assert (_tmp15_, "is_viewport"); -#line 441 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp16_ = scaled; -#line 441 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp17_ = resize_pixbuf (pixbuf, &_tmp16_, interp); -#line 441 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp17_; -#line 441 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2594 "Dimensions.c" -} - - -gchar* -scaling_to_string (Scaling *self) -{ - gchar* result = NULL; - ScaleConstraint _tmp0_; -#line 445 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).constraint; -#line 445 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp0_ == SCALE_CONSTRAINT_ORIGINAL) { -#line 2607 "Dimensions.c" - gchar* _tmp1_; -#line 446 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = g_strdup ("scaling: UNSCALED"); -#line 446 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp1_; -#line 446 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2615 "Dimensions.c" - } else { - ScaleConstraint _tmp2_; -#line 447 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = (*self).constraint; -#line 447 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp2_ == SCALE_CONSTRAINT_FILL_VIEWPORT) { -#line 2622 "Dimensions.c" - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 448 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = dimensions_to_string (&(*self).viewport); -#line 448 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = _tmp3_; -#line 448 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = g_strdup_printf ("scaling: fill viewport %s", _tmp4_); -#line 448 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = _tmp5_; -#line 448 "/home/jens/Source/shotwell/src/Dimensions.vala" - _g_free0 (_tmp4_); -#line 448 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp6_; -#line 448 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2641 "Dimensions.c" - } else { - gint _tmp7_; -#line 449 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = (*self).scale; -#line 449 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp7_ != SCALING_NO_SCALE) { -#line 2648 "Dimensions.c" - const gchar* _tmp8_ = NULL; - gboolean _tmp9_; - ScaleConstraint _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; -#line 451 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = (*self).scale_up; -#line 451 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp9_) { -#line 451 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = "scaled up"; -#line 2662 "Dimensions.c" - } else { -#line 451 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = "not scaled up"; -#line 2666 "Dimensions.c" - } -#line 450 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = (*self).constraint; -#line 450 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp11_ = scale_constraint_to_string (_tmp10_); -#line 450 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp12_ = _tmp11_; -#line 450 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp13_ = g_strdup_printf ("scaling: best-fit (%s %d pixels %s)", _tmp12_, scaling_scale_to_pixels (&(*self)), _tmp8_); -#line 450 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp14_ = _tmp13_; -#line 450 "/home/jens/Source/shotwell/src/Dimensions.vala" - _g_free0 (_tmp12_); -#line 450 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp14_; -#line 450 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2684 "Dimensions.c" - } else { - const gchar* _tmp15_ = NULL; - gboolean _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; -#line 454 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp16_ = (*self).scale_up; -#line 454 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp16_) { -#line 454 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp15_ = "scaled up"; -#line 2698 "Dimensions.c" - } else { -#line 454 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp15_ = "not scaled up"; -#line 2702 "Dimensions.c" - } -#line 453 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp17_ = dimensions_to_string (&(*self).viewport); -#line 453 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp18_ = _tmp17_; -#line 453 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp19_ = g_strdup_printf ("scaling: viewport %s (%s)", _tmp18_, _tmp15_); -#line 453 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp20_ = _tmp19_; -#line 453 "/home/jens/Source/shotwell/src/Dimensions.vala" - _g_free0 (_tmp18_); -#line 453 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp20_; -#line 453 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2718 "Dimensions.c" - } - } - } -} - - -gboolean -scaling_equals (Scaling *self, - Scaling* scaling) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - ScaleConstraint _tmp2_; - Scaling _tmp3_; - ScaleConstraint _tmp4_; -#line 457 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_val_if_fail (scaling != NULL, FALSE); -#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = (*self).constraint; -#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = *scaling; -#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = _tmp3_.constraint; -#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp2_ == _tmp4_) { -#line 2745 "Dimensions.c" - gint _tmp5_; - Scaling _tmp6_; - gint _tmp7_; -#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = (*self).scale; -#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = *scaling; -#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = _tmp6_.scale; -#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = _tmp5_ == _tmp7_; -#line 2757 "Dimensions.c" - } else { -#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = FALSE; -#line 2761 "Dimensions.c" - } -#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp1_) { -#line 2765 "Dimensions.c" - Scaling _tmp8_; - Dimensions _tmp9_; -#line 459 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = *scaling; -#line 459 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = _tmp8_.viewport; -#line 459 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = dimensions_equals (&(*self).viewport, &_tmp9_); -#line 2774 "Dimensions.c" - } else { -#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = FALSE; -#line 2778 "Dimensions.c" - } -#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp0_; -#line 458 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 2784 "Dimensions.c" -} - - -Scaling* -scaling_dup (const Scaling* self) -{ - Scaling* dup; -#line 249 "/home/jens/Source/shotwell/src/Dimensions.vala" - dup = g_new0 (Scaling, 1); -#line 249 "/home/jens/Source/shotwell/src/Dimensions.vala" - memcpy (dup, self, sizeof (Scaling)); -#line 249 "/home/jens/Source/shotwell/src/Dimensions.vala" - return dup; -#line 2798 "Dimensions.c" -} - - -void -scaling_free (Scaling* self) -{ -#line 249 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_free (self); -#line 2807 "Dimensions.c" -} - - -GType -scaling_get_type (void) -{ - static volatile gsize scaling_type_id__volatile = 0; - if (g_once_init_enter (&scaling_type_id__volatile)) { - GType scaling_type_id; - scaling_type_id = g_boxed_type_register_static ("Scaling", (GBoxedCopyFunc) scaling_dup, (GBoxedFreeFunc) scaling_free); - g_once_init_leave (&scaling_type_id__volatile, scaling_type_id); - } - return scaling_type_id__volatile; -} - - -void -zoom_state_init (ZoomState *self, - Dimensions* content_dimensions, - Dimensions* viewport_dimensions, - gdouble slider_val, - GdkPoint* viewport_center) -{ - Dimensions _tmp0_; - Dimensions _tmp1_; - gboolean _tmp2_ = FALSE; - gboolean _tmp3_ = FALSE; -#line 472 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (content_dimensions != NULL); -#line 472 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (viewport_dimensions != NULL); -#line 472 "/home/jens/Source/shotwell/src/Dimensions.vala" - memset (self, 0, sizeof (ZoomState)); -#line 474 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = *content_dimensions; -#line 474 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).content_dimensions = _tmp0_; -#line 475 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = *viewport_dimensions; -#line 475 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).viewport_dimensions = _tmp1_; -#line 476 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).interpolation_factor = slider_val; -#line 478 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoom_state_compute_zoom_factors (&(*self)); -#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (viewport_center == NULL) { -#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = TRUE; -#line 2857 "Dimensions.c" - } else { - gboolean _tmp4_ = FALSE; - gint _tmp5_; -#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = (*viewport_center).x; -#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp5_ == 0) { -#line 2865 "Dimensions.c" - gint _tmp6_; -#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = (*viewport_center).y; -#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = _tmp6_ == 0; -#line 2871 "Dimensions.c" - } else { -#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = FALSE; -#line 2875 "Dimensions.c" - } -#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = _tmp4_; -#line 2879 "Dimensions.c" - } -#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp3_) { -#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = TRUE; -#line 2885 "Dimensions.c" - } else { -#line 481 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = slider_val == 0.0; -#line 2889 "Dimensions.c" - } -#line 480 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp2_) { -#line 482 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoom_state_center_viewport (&(*self)); -#line 2895 "Dimensions.c" - } else { -#line 484 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).viewport_center = *viewport_center; -#line 485 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoom_state_clamp_viewport_center (&(*self)); -#line 2901 "Dimensions.c" - } -} - - -void -zoom_state_init_rescale (ZoomState *self, - ZoomState* existing, - gdouble new_slider_val) -{ - ZoomState _tmp0_; - Dimensions _tmp1_; - ZoomState _tmp2_; - Dimensions _tmp3_; -#line 489 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (existing != NULL); -#line 489 "/home/jens/Source/shotwell/src/Dimensions.vala" - memset (self, 0, sizeof (ZoomState)); -#line 490 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = *existing; -#line 490 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = _tmp0_.content_dimensions; -#line 490 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).content_dimensions = _tmp1_; -#line 491 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = *existing; -#line 491 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = _tmp2_.viewport_dimensions; -#line 491 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).viewport_dimensions = _tmp3_; -#line 492 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).interpolation_factor = new_slider_val; -#line 494 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoom_state_compute_zoom_factors (&(*self)); -#line 496 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (new_slider_val == 0.0) { -#line 497 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoom_state_center_viewport (&(*self)); -#line 2939 "Dimensions.c" - } else { - gdouble _tmp4_; - ZoomState _tmp5_; - GdkPoint _tmp6_; - gint _tmp7_; - ZoomState _tmp8_; - gdouble _tmp9_; - gdouble _tmp10_; - ZoomState _tmp11_; - GdkPoint _tmp12_; - gint _tmp13_; - ZoomState _tmp14_; - gdouble _tmp15_; -#line 499 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = (*self).zoom_factor; -#line 499 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = *existing; -#line 499 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = _tmp5_.viewport_center; -#line 499 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = _tmp6_.x; -#line 499 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = *existing; -#line 499 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = _tmp8_.zoom_factor; -#line 499 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).viewport_center.x = (gint) (_tmp4_ * (_tmp7_ / _tmp9_)); -#line 501 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = (*self).zoom_factor; -#line 501 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp11_ = *existing; -#line 501 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp12_ = _tmp11_.viewport_center; -#line 501 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp13_ = _tmp12_.y; -#line 501 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp14_ = *existing; -#line 501 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp15_ = _tmp14_.zoom_factor; -#line 501 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).viewport_center.y = (gint) (_tmp10_ * (_tmp13_ / _tmp15_)); -#line 503 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoom_state_clamp_viewport_center (&(*self)); -#line 2983 "Dimensions.c" - } -} - - -void -zoom_state_init_rescale_to_isomorphic (ZoomState *self, - ZoomState* existing) -{ - ZoomState _tmp0_; - Dimensions _tmp1_; - ZoomState _tmp2_; - Dimensions _tmp3_; - ZoomState _tmp4_; - gdouble _tmp5_; - ZoomState _tmp6_; - gdouble _tmp7_; - ZoomState _tmp8_; - gdouble _tmp9_; - gdouble _tmp10_; -#line 507 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (existing != NULL); -#line 507 "/home/jens/Source/shotwell/src/Dimensions.vala" - memset (self, 0, sizeof (ZoomState)); -#line 508 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = *existing; -#line 508 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = _tmp0_.content_dimensions; -#line 508 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).content_dimensions = _tmp1_; -#line 509 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = *existing; -#line 509 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = _tmp2_.viewport_dimensions; -#line 509 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).viewport_dimensions = _tmp3_; -#line 510 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = *existing; -#line 510 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = _tmp4_.min_factor; -#line 510 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = *existing; -#line 510 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = _tmp6_.max_factor; -#line 510 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = *existing; -#line 510 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = _tmp8_.min_factor; -#line 510 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).interpolation_factor = log (1.0 / _tmp5_) / log (_tmp7_ / _tmp9_); -#line 513 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoom_state_compute_zoom_factors (&(*self)); -#line 515 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = (*self).interpolation_factor; -#line 515 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp10_ == 0.0) { -#line 516 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoom_state_center_viewport (&(*self)); -#line 3041 "Dimensions.c" - } else { - gdouble _tmp11_; - ZoomState _tmp12_; - GdkPoint _tmp13_; - gint _tmp14_; - ZoomState _tmp15_; - gdouble _tmp16_; - gdouble _tmp17_; - ZoomState _tmp18_; - GdkPoint _tmp19_; - gint _tmp20_; - ZoomState _tmp21_; - gdouble _tmp22_; -#line 518 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp11_ = (*self).zoom_factor; -#line 518 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp12_ = *existing; -#line 518 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp13_ = _tmp12_.viewport_center; -#line 518 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp14_ = _tmp13_.x; -#line 518 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp15_ = *existing; -#line 518 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp16_ = _tmp15_.zoom_factor; -#line 518 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).viewport_center.x = (gint) (_tmp11_ * (_tmp14_ / _tmp16_)); -#line 520 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp17_ = (*self).zoom_factor; -#line 520 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp18_ = *existing; -#line 520 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp19_ = _tmp18_.viewport_center; -#line 520 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp20_ = _tmp19_.y; -#line 520 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp21_ = *existing; -#line 520 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp22_ = _tmp21_.zoom_factor; -#line 520 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).viewport_center.y = (gint) (_tmp17_ * (_tmp20_ / _tmp22_)); -#line 522 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoom_state_clamp_viewport_center (&(*self)); -#line 3085 "Dimensions.c" - } -} - - -void -zoom_state_init_pan (ZoomState *self, - ZoomState* existing, - GdkPoint* new_viewport_center) -{ - ZoomState _tmp0_; - Dimensions _tmp1_; - ZoomState _tmp2_; - Dimensions _tmp3_; - ZoomState _tmp4_; - gdouble _tmp5_; - GdkPoint _tmp6_; -#line 526 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (existing != NULL); -#line 526 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (new_viewport_center != NULL); -#line 526 "/home/jens/Source/shotwell/src/Dimensions.vala" - memset (self, 0, sizeof (ZoomState)); -#line 527 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = *existing; -#line 527 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = _tmp0_.content_dimensions; -#line 527 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).content_dimensions = _tmp1_; -#line 528 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = *existing; -#line 528 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = _tmp2_.viewport_dimensions; -#line 528 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).viewport_dimensions = _tmp3_; -#line 529 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = *existing; -#line 529 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = _tmp4_.interpolation_factor; -#line 529 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).interpolation_factor = _tmp5_; -#line 531 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoom_state_compute_zoom_factors (&(*self)); -#line 533 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = *new_viewport_center; -#line 533 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).viewport_center = _tmp6_; -#line 535 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoom_state_clamp_viewport_center (&(*self)); -#line 3134 "Dimensions.c" -} - - -static void -zoom_state_clamp_viewport_center (ZoomState *self) -{ - gint zoomed_width = 0; - gint zoomed_height = 0; - GdkPoint _tmp0_; - gint _tmp1_; - Dimensions _tmp2_; - gint _tmp3_; - Dimensions _tmp4_; - gint _tmp5_; - GdkPoint _tmp6_; - gint _tmp7_; - Dimensions _tmp8_; - gint _tmp9_; - Dimensions _tmp10_; - gint _tmp11_; -#line 539 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoomed_width = zoom_state_get_zoomed_width (&(*self)); -#line 540 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoomed_height = zoom_state_get_zoomed_height (&(*self)); -#line 542 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).viewport_center; -#line 542 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = _tmp0_.x; -#line 542 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = (*self).viewport_dimensions; -#line 542 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = _tmp2_.width; -#line 542 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = (*self).viewport_dimensions; -#line 542 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = _tmp4_.width; -#line 542 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).viewport_center.x = CLAMP (_tmp1_, _tmp3_ / 2, (zoomed_width - (_tmp5_ / 2)) - 1); -#line 544 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = (*self).viewport_center; -#line 544 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = _tmp6_.y; -#line 544 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = (*self).viewport_dimensions; -#line 544 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = _tmp8_.height; -#line 544 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = (*self).viewport_dimensions; -#line 544 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp11_ = _tmp10_.height; -#line 544 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).viewport_center.y = CLAMP (_tmp7_, _tmp9_ / 2, (zoomed_height - (_tmp11_ / 2)) - 1); -#line 3187 "Dimensions.c" -} - - -static void -zoom_state_center_viewport (ZoomState *self) -{ -#line 549 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).viewport_center.x = zoom_state_get_zoomed_width (&(*self)) / 2; -#line 550 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).viewport_center.y = zoom_state_get_zoomed_height (&(*self)) / 2; -#line 3198 "Dimensions.c" -} - - -static void -zoom_state_compute_zoom_factors (ZoomState *self) -{ - gdouble viewport_to_content_x = 0.0; - gdouble viewport_to_content_y = 0.0; - Dimensions _tmp0_; - gdouble _tmp1_ = 0.0; - gdouble _tmp2_ = 0.0; - gdouble _tmp3_; - gdouble _tmp4_; - gdouble _tmp5_; - gdouble _tmp6_; - gdouble _tmp7_; - gdouble _tmp8_; - gdouble _tmp9_; -#line 554 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).max_factor = 2.0; -#line 558 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).viewport_dimensions; -#line 558 "/home/jens/Source/shotwell/src/Dimensions.vala" - dimensions_get_scale_ratios (&(*self).content_dimensions, &_tmp0_, &_tmp1_, &_tmp2_); -#line 558 "/home/jens/Source/shotwell/src/Dimensions.vala" - viewport_to_content_x = _tmp1_; -#line 558 "/home/jens/Source/shotwell/src/Dimensions.vala" - viewport_to_content_y = _tmp2_; -#line 560 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = viewport_to_content_x; -#line 560 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = viewport_to_content_y; -#line 560 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).min_factor = MIN (_tmp3_, _tmp4_); -#line 561 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = (*self).min_factor; -#line 561 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp5_ > 1.0) { -#line 562 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).min_factor = 1.0; -#line 3239 "Dimensions.c" - } -#line 564 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = (*self).min_factor; -#line 564 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = (*self).max_factor; -#line 564 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = (*self).min_factor; -#line 564 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = (*self).interpolation_factor; -#line 564 "/home/jens/Source/shotwell/src/Dimensions.vala" - (*self).zoom_factor = _tmp6_ * pow (_tmp7_ / _tmp8_, _tmp9_); -#line 3251 "Dimensions.c" -} - - -gdouble -zoom_state_get_interpolation_factor (ZoomState *self) -{ - gdouble result = 0.0; - gdouble _tmp0_; -#line 568 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).interpolation_factor; -#line 568 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp0_; -#line 568 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 3266 "Dimensions.c" -} - - -void -zoom_state_get_viewing_rectangle_wrt_content (ZoomState *self, - GdkRectangle* result) -{ - gint zoomed_width = 0; - gint zoomed_height = 0; - GdkRectangle _result_ = {0}; - Dimensions _tmp0_; - gint _tmp1_; - gint _tmp2_; - GdkRectangle _tmp10_; - gint _tmp11_; - Dimensions _tmp12_; - gint _tmp13_; - gint _tmp14_; - GdkRectangle _tmp22_; - gint _tmp23_; - gint right = 0; - GdkRectangle _tmp24_; - gint _tmp25_; - Dimensions _tmp26_; - gint _tmp27_; - gint _tmp28_; - gint _tmp29_; - gint _tmp31_; - GdkRectangle _tmp32_; - gint _tmp33_; - gint bottom = 0; - GdkRectangle _tmp34_; - gint _tmp35_; - Dimensions _tmp36_; - gint _tmp37_; - gint _tmp38_; - gint _tmp39_; - gint _tmp41_; - GdkRectangle _tmp42_; - gint _tmp43_; - GdkRectangle _tmp44_; - gint _tmp45_; - GdkRectangle _tmp46_; - gint _tmp47_; -#line 573 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoomed_width = zoom_state_get_zoomed_width (&(*self)); -#line 574 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoomed_height = zoom_state_get_zoomed_height (&(*self)); -#line 576 "/home/jens/Source/shotwell/src/Dimensions.vala" - memset (&_result_, 0, sizeof (GdkRectangle)); -#line 578 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).viewport_dimensions; -#line 578 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = _tmp0_.width; -#line 578 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = zoomed_width; -#line 578 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp1_ < _tmp2_) { -#line 3325 "Dimensions.c" - GdkPoint _tmp3_; - gint _tmp4_; - Dimensions _tmp5_; - gint _tmp6_; -#line 579 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = (*self).viewport_center; -#line 579 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = _tmp3_.x; -#line 579 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = (*self).viewport_dimensions; -#line 579 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = _tmp5_.width; -#line 579 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.x = _tmp4_ - (_tmp6_ / 2); -#line 3340 "Dimensions.c" - } else { - gint _tmp7_; - Dimensions _tmp8_; - gint _tmp9_; -#line 581 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = zoomed_width; -#line 581 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = (*self).viewport_dimensions; -#line 581 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = _tmp8_.width; -#line 581 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.x = (_tmp7_ - _tmp9_) / 2; -#line 3353 "Dimensions.c" - } -#line 583 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = _result_; -#line 583 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp11_ = _tmp10_.x; -#line 583 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp11_ < 0) { -#line 584 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.x = 0; -#line 3363 "Dimensions.c" - } -#line 586 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp12_ = (*self).viewport_dimensions; -#line 586 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp13_ = _tmp12_.height; -#line 586 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp14_ = zoomed_height; -#line 586 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp13_ < _tmp14_) { -#line 3373 "Dimensions.c" - GdkPoint _tmp15_; - gint _tmp16_; - Dimensions _tmp17_; - gint _tmp18_; -#line 587 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp15_ = (*self).viewport_center; -#line 587 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp16_ = _tmp15_.y; -#line 587 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp17_ = (*self).viewport_dimensions; -#line 587 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp18_ = _tmp17_.height; -#line 587 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.y = _tmp16_ - (_tmp18_ / 2); -#line 3388 "Dimensions.c" - } else { - gint _tmp19_; - Dimensions _tmp20_; - gint _tmp21_; -#line 589 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp19_ = zoomed_height; -#line 589 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp20_ = (*self).viewport_dimensions; -#line 589 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp21_ = _tmp20_.height; -#line 589 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.y = (_tmp19_ - _tmp21_) / 2; -#line 3401 "Dimensions.c" - } -#line 591 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp22_ = _result_; -#line 591 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp23_ = _tmp22_.y; -#line 591 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp23_ < 0) { -#line 592 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.y = 0; -#line 3411 "Dimensions.c" - } -#line 594 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp24_ = _result_; -#line 594 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp25_ = _tmp24_.x; -#line 594 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp26_ = (*self).viewport_dimensions; -#line 594 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp27_ = _tmp26_.width; -#line 594 "/home/jens/Source/shotwell/src/Dimensions.vala" - right = _tmp25_ + _tmp27_; -#line 595 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp28_ = right; -#line 595 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp29_ = zoomed_width; -#line 595 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp28_ > _tmp29_) { -#line 3429 "Dimensions.c" - gint _tmp30_; -#line 596 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp30_ = zoomed_width; -#line 596 "/home/jens/Source/shotwell/src/Dimensions.vala" - right = _tmp30_; -#line 3435 "Dimensions.c" - } -#line 597 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp31_ = right; -#line 597 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp32_ = _result_; -#line 597 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp33_ = _tmp32_.x; -#line 597 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.width = _tmp31_ - _tmp33_; -#line 599 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp34_ = _result_; -#line 599 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp35_ = _tmp34_.y; -#line 599 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp36_ = (*self).viewport_dimensions; -#line 599 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp37_ = _tmp36_.height; -#line 599 "/home/jens/Source/shotwell/src/Dimensions.vala" - bottom = _tmp35_ + _tmp37_; -#line 600 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp38_ = bottom; -#line 600 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp39_ = zoomed_height; -#line 600 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp38_ > _tmp39_) { -#line 3461 "Dimensions.c" - gint _tmp40_; -#line 601 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp40_ = zoomed_height; -#line 601 "/home/jens/Source/shotwell/src/Dimensions.vala" - bottom = _tmp40_; -#line 3467 "Dimensions.c" - } -#line 602 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp41_ = bottom; -#line 602 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp42_ = _result_; -#line 602 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp43_ = _tmp42_.y; -#line 602 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.height = _tmp41_ - _tmp43_; -#line 604 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp44_ = _result_; -#line 604 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp45_ = _tmp44_.width; -#line 604 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.width = CLAMP (_tmp45_, 1, G_MAXINT); -#line 605 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp46_ = _result_; -#line 605 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp47_ = _tmp46_.height; -#line 605 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.height = CLAMP (_tmp47_, 1, G_MAXINT); -#line 607 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _result_; -#line 607 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 3493 "Dimensions.c" -} - - -void -zoom_state_get_viewing_rectangle_wrt_screen (ZoomState *self, - GdkRectangle* result) -{ - GdkRectangle wrt_content = {0}; - GdkRectangle _tmp0_ = {0}; - GdkRectangle _result_ = {0}; - Dimensions _tmp1_; - gint _tmp2_; - GdkRectangle _tmp3_; - gint _tmp4_; - GdkRectangle _tmp5_; - gint _tmp6_; - Dimensions _tmp7_; - gint _tmp8_; - GdkRectangle _tmp9_; - gint _tmp10_; - GdkRectangle _tmp11_; - gint _tmp12_; - GdkRectangle _tmp13_; - gint _tmp14_; - GdkRectangle _tmp15_; - gint _tmp16_; -#line 613 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoom_state_get_viewing_rectangle_wrt_content (&(*self), &_tmp0_); -#line 613 "/home/jens/Source/shotwell/src/Dimensions.vala" - wrt_content = _tmp0_; -#line 615 "/home/jens/Source/shotwell/src/Dimensions.vala" - memset (&_result_, 0, sizeof (GdkRectangle)); -#line 616 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).viewport_dimensions; -#line 616 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = _tmp1_.width; -#line 616 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = wrt_content; -#line 616 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = _tmp3_.width; -#line 616 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.x = (_tmp2_ / 2) - (_tmp4_ / 2); -#line 617 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = _result_; -#line 617 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = _tmp5_.x; -#line 617 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp6_ < 0) { -#line 618 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.x = 0; -#line 3544 "Dimensions.c" - } -#line 619 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = (*self).viewport_dimensions; -#line 619 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = _tmp7_.height; -#line 619 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = wrt_content; -#line 619 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = _tmp9_.height; -#line 619 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.y = (_tmp8_ / 2) - (_tmp10_ / 2); -#line 620 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp11_ = _result_; -#line 620 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp12_ = _tmp11_.y; -#line 620 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp12_ < 0) { -#line 621 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.y = 0; -#line 3564 "Dimensions.c" - } -#line 622 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp13_ = wrt_content; -#line 622 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp14_ = _tmp13_.width; -#line 622 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.width = _tmp14_; -#line 623 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp15_ = wrt_content; -#line 623 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp16_ = _tmp15_.height; -#line 623 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.height = _tmp16_; -#line 625 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _result_; -#line 625 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 3582 "Dimensions.c" -} - - -void -zoom_state_get_viewing_rectangle_projection (ZoomState *self, - GdkPixbuf* for_pixbuf, - GdkRectangle* result) -{ - gdouble zoomed_width = 0.0; - gdouble zoomed_height = 0.0; - gdouble horiz_scale = 0.0; - gint _tmp0_; - gint _tmp1_; - gdouble vert_scale = 0.0; - gint _tmp2_; - gint _tmp3_; - gdouble scale = 0.0; - GdkRectangle viewing_rectangle = {0}; - GdkRectangle _tmp4_ = {0}; - GdkRectangle _result_ = {0}; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint _tmp10_; - GdkRectangle _tmp11_; - gint _tmp12_; - GdkRectangle _tmp13_; - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; - gint right = 0; - GdkRectangle _tmp17_; - gint _tmp18_; - GdkRectangle _tmp19_; - gint _tmp20_; - gint _tmp21_; - gint _tmp22_; - gint _tmp23_; - gint bottom = 0; - GdkRectangle _tmp24_; - gint _tmp25_; - GdkRectangle _tmp26_; - gint _tmp27_; - gint _tmp28_; - gint _tmp29_; - gint _tmp30_; - gint _tmp31_; - GdkRectangle _tmp32_; - gint _tmp33_; - gint _tmp34_; - GdkRectangle _tmp35_; - gint _tmp36_; -#line 629 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_if_fail (GDK_IS_PIXBUF (for_pixbuf)); -#line 630 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoomed_width = (gdouble) zoom_state_get_zoomed_width (&(*self)); -#line 631 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoomed_height = (gdouble) zoom_state_get_zoomed_height (&(*self)); -#line 633 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = gdk_pixbuf_get_width (for_pixbuf); -#line 633 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = _tmp0_; -#line 633 "/home/jens/Source/shotwell/src/Dimensions.vala" - horiz_scale = _tmp1_ / zoomed_width; -#line 634 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = gdk_pixbuf_get_height (for_pixbuf); -#line 634 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = _tmp2_; -#line 634 "/home/jens/Source/shotwell/src/Dimensions.vala" - vert_scale = _tmp3_ / zoomed_height; -#line 635 "/home/jens/Source/shotwell/src/Dimensions.vala" - scale = (horiz_scale + vert_scale) / 2.0; -#line 637 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoom_state_get_viewing_rectangle_wrt_content (&(*self), &_tmp4_); -#line 637 "/home/jens/Source/shotwell/src/Dimensions.vala" - viewing_rectangle = _tmp4_; -#line 639 "/home/jens/Source/shotwell/src/Dimensions.vala" - memset (&_result_, 0, sizeof (GdkRectangle)); -#line 640 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = viewing_rectangle; -#line 640 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = _tmp5_.x; -#line 640 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.x = (gint) (_tmp6_ * scale); -#line 641 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = _result_; -#line 641 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = _tmp7_.x; -#line 641 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = gdk_pixbuf_get_width (for_pixbuf); -#line 641 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = _tmp9_; -#line 641 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.x = CLAMP (_tmp8_, 0, _tmp10_); -#line 642 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp11_ = viewing_rectangle; -#line 642 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp12_ = _tmp11_.y; -#line 642 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.y = (gint) (_tmp12_ * scale); -#line 643 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp13_ = _result_; -#line 643 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp14_ = _tmp13_.y; -#line 643 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp15_ = gdk_pixbuf_get_height (for_pixbuf); -#line 643 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp16_ = _tmp15_; -#line 643 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.y = CLAMP (_tmp14_, 0, _tmp16_); -#line 644 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp17_ = viewing_rectangle; -#line 644 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp18_ = _tmp17_.x; -#line 644 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp19_ = viewing_rectangle; -#line 644 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp20_ = _tmp19_.width; -#line 644 "/home/jens/Source/shotwell/src/Dimensions.vala" - right = (gint) ((_tmp18_ + _tmp20_) * scale); -#line 645 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp21_ = right; -#line 645 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp22_ = gdk_pixbuf_get_width (for_pixbuf); -#line 645 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp23_ = _tmp22_; -#line 645 "/home/jens/Source/shotwell/src/Dimensions.vala" - right = CLAMP (_tmp21_, 0, _tmp23_); -#line 646 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp24_ = viewing_rectangle; -#line 646 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp25_ = _tmp24_.y; -#line 646 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp26_ = viewing_rectangle; -#line 646 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp27_ = _tmp26_.height; -#line 646 "/home/jens/Source/shotwell/src/Dimensions.vala" - bottom = (gint) ((_tmp25_ + _tmp27_) * scale); -#line 647 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp28_ = bottom; -#line 647 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp29_ = gdk_pixbuf_get_height (for_pixbuf); -#line 647 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp30_ = _tmp29_; -#line 647 "/home/jens/Source/shotwell/src/Dimensions.vala" - bottom = CLAMP (_tmp28_, 0, _tmp30_); -#line 648 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp31_ = right; -#line 648 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp32_ = _result_; -#line 648 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp33_ = _tmp32_.x; -#line 648 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.width = _tmp31_ - _tmp33_; -#line 649 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp34_ = bottom; -#line 649 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp35_ = _result_; -#line 649 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp36_ = _tmp35_.y; -#line 649 "/home/jens/Source/shotwell/src/Dimensions.vala" - _result_.height = _tmp34_ - _tmp36_; -#line 651 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _result_; -#line 651 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 3751 "Dimensions.c" -} - - -gdouble -zoom_state_get_zoom_factor (ZoomState *self) -{ - gdouble result = 0.0; - gdouble _tmp0_; -#line 656 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).zoom_factor; -#line 656 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp0_; -#line 656 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 3766 "Dimensions.c" -} - - -gint -zoom_state_get_zoomed_width (ZoomState *self) -{ - gint result = 0; - Dimensions _tmp0_; - gint _tmp1_; - gdouble _tmp2_; -#line 660 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).content_dimensions; -#line 660 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = _tmp0_.width; -#line 660 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = (*self).zoom_factor; -#line 660 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = (gint) (_tmp1_ * _tmp2_); -#line 660 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 3787 "Dimensions.c" -} - - -gint -zoom_state_get_zoomed_height (ZoomState *self) -{ - gint result = 0; - Dimensions _tmp0_; - gint _tmp1_; - gdouble _tmp2_; -#line 664 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).content_dimensions; -#line 664 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = _tmp0_.height; -#line 664 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = (*self).zoom_factor; -#line 664 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = (gint) (_tmp1_ * _tmp2_); -#line 664 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 3808 "Dimensions.c" -} - - -void -zoom_state_get_viewport_center (ZoomState *self, - GdkPoint* result) -{ - GdkPoint _tmp0_; -#line 668 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).viewport_center; -#line 668 "/home/jens/Source/shotwell/src/Dimensions.vala" - *result = _tmp0_; -#line 668 "/home/jens/Source/shotwell/src/Dimensions.vala" - return; -#line 3823 "Dimensions.c" -} - - -gchar* -zoom_state_to_string (ZoomState *self) -{ - gchar* result = NULL; - gchar* named_modes = NULL; - gchar* _tmp0_; - const gchar* _tmp17_; - GdkRectangle viewing_rect = {0}; - GdkRectangle _tmp19_ = {0}; - Dimensions _tmp20_; - gint _tmp21_; - Dimensions _tmp22_; - gint _tmp23_; - Dimensions _tmp24_; - gint _tmp25_; - Dimensions _tmp26_; - gint _tmp27_; - gdouble _tmp28_; - gdouble _tmp29_; - gdouble _tmp30_; - const gchar* _tmp31_; - GdkRectangle _tmp32_; - gint _tmp33_; - GdkRectangle _tmp34_; - gint _tmp35_; - GdkRectangle _tmp36_; - gint _tmp37_; - GdkRectangle _tmp38_; - gint _tmp39_; - GdkPoint _tmp40_; - gint _tmp41_; - GdkPoint _tmp42_; - gint _tmp43_; - gchar* _tmp44_; -#line 672 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = g_strdup (""); -#line 672 "/home/jens/Source/shotwell/src/Dimensions.vala" - named_modes = _tmp0_; -#line 673 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (zoom_state_is_min (&(*self))) { -#line 3867 "Dimensions.c" - const gchar* _tmp1_ = NULL; - const gchar* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; -#line 674 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = named_modes; -#line 674 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (g_strcmp0 (_tmp2_, "") == 0) { -#line 674 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = "MIN"; -#line 3878 "Dimensions.c" - } else { -#line 674 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = ", MIN"; -#line 3882 "Dimensions.c" - } -#line 674 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = named_modes; -#line 674 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = g_strconcat (_tmp3_, _tmp1_, NULL); -#line 674 "/home/jens/Source/shotwell/src/Dimensions.vala" - _g_free0 (named_modes); -#line 674 "/home/jens/Source/shotwell/src/Dimensions.vala" - named_modes = _tmp4_; -#line 3892 "Dimensions.c" - } -#line 675 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (zoom_state_is_default (&(*self))) { -#line 3896 "Dimensions.c" - const gchar* _tmp5_ = NULL; - const gchar* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_; -#line 676 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = named_modes; -#line 676 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (g_strcmp0 (_tmp6_, "") == 0) { -#line 676 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = "DEFAULT"; -#line 3907 "Dimensions.c" - } else { -#line 676 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = ", DEFAULT"; -#line 3911 "Dimensions.c" - } -#line 676 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = named_modes; -#line 676 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = g_strconcat (_tmp7_, _tmp5_, NULL); -#line 676 "/home/jens/Source/shotwell/src/Dimensions.vala" - _g_free0 (named_modes); -#line 676 "/home/jens/Source/shotwell/src/Dimensions.vala" - named_modes = _tmp8_; -#line 3921 "Dimensions.c" - } -#line 677 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (zoom_state_is_isomorphic (&(*self))) { -#line 3925 "Dimensions.c" - const gchar* _tmp9_ = NULL; - const gchar* _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; -#line 678 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = named_modes; -#line 678 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (g_strcmp0 (_tmp10_, "") == 0) { -#line 678 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = "ISOMORPHIC"; -#line 3936 "Dimensions.c" - } else { -#line 678 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = ", ISOMORPHIC"; -#line 3940 "Dimensions.c" - } -#line 678 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp11_ = named_modes; -#line 678 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp12_ = g_strconcat (_tmp11_, _tmp9_, NULL); -#line 678 "/home/jens/Source/shotwell/src/Dimensions.vala" - _g_free0 (named_modes); -#line 678 "/home/jens/Source/shotwell/src/Dimensions.vala" - named_modes = _tmp12_; -#line 3950 "Dimensions.c" - } -#line 679 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (zoom_state_is_max (&(*self))) { -#line 3954 "Dimensions.c" - const gchar* _tmp13_ = NULL; - const gchar* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; -#line 680 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp14_ = named_modes; -#line 680 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (g_strcmp0 (_tmp14_, "") == 0) { -#line 680 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp13_ = "MAX"; -#line 3965 "Dimensions.c" - } else { -#line 680 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp13_ = ", MAX"; -#line 3969 "Dimensions.c" - } -#line 680 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp15_ = named_modes; -#line 680 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp16_ = g_strconcat (_tmp15_, _tmp13_, NULL); -#line 680 "/home/jens/Source/shotwell/src/Dimensions.vala" - _g_free0 (named_modes); -#line 680 "/home/jens/Source/shotwell/src/Dimensions.vala" - named_modes = _tmp16_; -#line 3979 "Dimensions.c" - } -#line 681 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp17_ = named_modes; -#line 681 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (g_strcmp0 (_tmp17_, "") == 0) { -#line 3985 "Dimensions.c" - gchar* _tmp18_; -#line 682 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp18_ = g_strdup ("(none)"); -#line 682 "/home/jens/Source/shotwell/src/Dimensions.vala" - _g_free0 (named_modes); -#line 682 "/home/jens/Source/shotwell/src/Dimensions.vala" - named_modes = _tmp18_; -#line 3993 "Dimensions.c" - } -#line 684 "/home/jens/Source/shotwell/src/Dimensions.vala" - zoom_state_get_viewing_rectangle_wrt_content (&(*self), &_tmp19_); -#line 684 "/home/jens/Source/shotwell/src/Dimensions.vala" - viewing_rect = _tmp19_; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp20_ = (*self).content_dimensions; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp21_ = _tmp20_.width; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp22_ = (*self).content_dimensions; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp23_ = _tmp22_.height; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp24_ = (*self).viewport_dimensions; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp25_ = _tmp24_.width; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp26_ = (*self).viewport_dimensions; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp27_ = _tmp26_.height; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp28_ = (*self).min_factor; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp29_ = (*self).max_factor; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp30_ = (*self).zoom_factor; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp31_ = named_modes; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp32_ = viewing_rect; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp33_ = _tmp32_.x; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp34_ = viewing_rect; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp35_ = _tmp34_.y; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp36_ = viewing_rect; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp37_ = _tmp36_.width; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp38_ = viewing_rect; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp39_ = _tmp38_.height; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp40_ = (*self).viewport_center; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp41_ = _tmp40_.x; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp42_ = (*self).viewport_center; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp43_ = _tmp42_.y; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp44_ = g_strdup_printf ("ZoomState {\n" \ -" content dimensions = %d x %d;\n" \ -" viewport dimensions = " "%d x %d;\n" \ -" min factor = %f;\n" \ -" max factor = %f;\n" \ -" current factor = %f;" "\n" \ -" zoomed width = %d;\n" \ -" zoomed height = %d;\n" \ -" named modes = %s;" "\n viewing rectangle = { x: %d, y: %d, width: %d, height: %d };" "\n viewport center = (%d, %d);\n}\n", _tmp21_, _tmp23_, _tmp25_, _tmp27_, _tmp28_, _tmp29_, _tmp30_, zoom_state_get_zoomed_width (&(*self)), zoom_state_get_zoomed_height (&(*self)), _tmp31_, _tmp33_, _tmp35_, _tmp37_, _tmp39_, _tmp41_, _tmp43_); -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp44_; -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - _g_free0 (named_modes); -#line 686 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 4055 "Dimensions.c" -} - - -gboolean -zoom_state_is_min (ZoomState *self) -{ - gboolean result = FALSE; - gdouble _tmp0_; - gdouble _tmp1_; -#line 698 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).zoom_factor; -#line 698 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).min_factor; -#line 698 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp0_ == _tmp1_; -#line 698 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 4073 "Dimensions.c" -} - - -gboolean -zoom_state_is_default (ZoomState *self) -{ - gboolean result = FALSE; -#line 702 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = zoom_state_is_min (&(*self)); -#line 702 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 4085 "Dimensions.c" -} - - -gboolean -zoom_state_is_max (ZoomState *self) -{ - gboolean result = FALSE; - gdouble _tmp0_; - gdouble _tmp1_; -#line 706 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).zoom_factor; -#line 706 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = (*self).max_factor; -#line 706 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp0_ == _tmp1_; -#line 706 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 4103 "Dimensions.c" -} - - -gboolean -zoom_state_is_isomorphic (ZoomState *self) -{ - gboolean result = FALSE; - gdouble _tmp0_; -#line 710 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = (*self).zoom_factor; -#line 710 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = _tmp0_ == 1.0; -#line 710 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 4118 "Dimensions.c" -} - - -gboolean -zoom_state_equals (ZoomState *self, - ZoomState* other) -{ - gboolean result = FALSE; - ZoomState _tmp0_; - Dimensions _tmp1_; - ZoomState _tmp2_; - Dimensions _tmp3_; - gdouble _tmp4_; - ZoomState _tmp5_; - gdouble _tmp6_; - gdouble _tmp7_; - ZoomState _tmp8_; - gdouble _tmp9_; - gdouble _tmp10_; - ZoomState _tmp11_; - gdouble _tmp12_; - GdkPoint _tmp13_; - gint _tmp14_; - ZoomState _tmp15_; - GdkPoint _tmp16_; - gint _tmp17_; - GdkPoint _tmp18_; - gint _tmp19_; - ZoomState _tmp20_; - GdkPoint _tmp21_; - gint _tmp22_; -#line 713 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_return_val_if_fail (other != NULL, FALSE); -#line 714 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp0_ = *other; -#line 714 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp1_ = _tmp0_.content_dimensions; -#line 714 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (!dimensions_equals (&(*self).content_dimensions, &_tmp1_)) { -#line 715 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = FALSE; -#line 715 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 4162 "Dimensions.c" - } -#line 716 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp2_ = *other; -#line 716 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp3_ = _tmp2_.viewport_dimensions; -#line 716 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (!dimensions_equals (&(*self).viewport_dimensions, &_tmp3_)) { -#line 717 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = FALSE; -#line 717 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 4174 "Dimensions.c" - } -#line 718 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp4_ = (*self).zoom_factor; -#line 718 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp5_ = *other; -#line 718 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp6_ = _tmp5_.zoom_factor; -#line 718 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp4_ != _tmp6_) { -#line 719 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = FALSE; -#line 719 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 4188 "Dimensions.c" - } -#line 720 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp7_ = (*self).min_factor; -#line 720 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp8_ = *other; -#line 720 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp9_ = _tmp8_.min_factor; -#line 720 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp7_ != _tmp9_) { -#line 721 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = FALSE; -#line 721 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 4202 "Dimensions.c" - } -#line 722 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp10_ = (*self).max_factor; -#line 722 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp11_ = *other; -#line 722 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp12_ = _tmp11_.max_factor; -#line 722 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp10_ != _tmp12_) { -#line 723 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = FALSE; -#line 723 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 4216 "Dimensions.c" - } -#line 724 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp13_ = (*self).viewport_center; -#line 724 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp14_ = _tmp13_.x; -#line 724 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp15_ = *other; -#line 724 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp16_ = _tmp15_.viewport_center; -#line 724 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp17_ = _tmp16_.x; -#line 724 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp14_ != _tmp17_) { -#line 725 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = FALSE; -#line 725 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 4234 "Dimensions.c" - } -#line 726 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp18_ = (*self).viewport_center; -#line 726 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp19_ = _tmp18_.y; -#line 726 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp20_ = *other; -#line 726 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp21_ = _tmp20_.viewport_center; -#line 726 "/home/jens/Source/shotwell/src/Dimensions.vala" - _tmp22_ = _tmp21_.y; -#line 726 "/home/jens/Source/shotwell/src/Dimensions.vala" - if (_tmp19_ != _tmp22_) { -#line 727 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = FALSE; -#line 727 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 4252 "Dimensions.c" - } -#line 729 "/home/jens/Source/shotwell/src/Dimensions.vala" - result = TRUE; -#line 729 "/home/jens/Source/shotwell/src/Dimensions.vala" - return result; -#line 4258 "Dimensions.c" -} - - -ZoomState* -zoom_state_dup (const ZoomState* self) -{ - ZoomState* dup; -#line 463 "/home/jens/Source/shotwell/src/Dimensions.vala" - dup = g_new0 (ZoomState, 1); -#line 463 "/home/jens/Source/shotwell/src/Dimensions.vala" - memcpy (dup, self, sizeof (ZoomState)); -#line 463 "/home/jens/Source/shotwell/src/Dimensions.vala" - return dup; -#line 4272 "Dimensions.c" -} - - -void -zoom_state_free (ZoomState* self) -{ -#line 463 "/home/jens/Source/shotwell/src/Dimensions.vala" - g_free (self); -#line 4281 "Dimensions.c" -} - - -GType -zoom_state_get_type (void) -{ - static volatile gsize zoom_state_type_id__volatile = 0; - if (g_once_init_enter (&zoom_state_type_id__volatile)) { - GType zoom_state_type_id; - zoom_state_type_id = g_boxed_type_register_static ("ZoomState", (GBoxedCopyFunc) zoom_state_dup, (GBoxedFreeFunc) zoom_state_free); - g_once_init_leave (&zoom_state_type_id__volatile, zoom_state_type_id); - } - return zoom_state_type_id__volatile; -} - - - diff --git a/src/Dimensions.vala b/src/Dimensions.vala index 99fe469..3b4163c 100644 --- a/src/Dimensions.vala +++ b/src/Dimensions.vala @@ -315,10 +315,12 @@ public struct Scaling { return Scaling(constraint, scale, Dimensions(), scale_up); } - private static Dimensions get_screen_dimensions(Gtk.Window window) { - Gdk.Screen screen = window.get_screen(); + public static Dimensions get_screen_dimensions(Gtk.Window window) { + var display = window.get_window().get_display(); + var monitor = display.get_monitor_at_window(window.get_window()); + var geom = monitor.get_geometry(); - return Dimensions(screen.get_width(), screen.get_height()); + return Dimensions(geom.width, geom.height); } private int scale_to_pixels() { diff --git a/src/DirectoryMonitor.c b/src/DirectoryMonitor.c deleted file mode 100644 index 05b8eee..0000000 --- a/src/DirectoryMonitor.c +++ /dev/null @@ -1,9421 +0,0 @@ -/* DirectoryMonitor.c generated by valac 0.40.4, the Vala compiler - * generated from DirectoryMonitor.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/**/ -/* DirectoryMonitor will monitor an entire directory for changes to all files and directories*/ -/* within it. It uses FileMonitor to monitor all directories it discovers at initialization*/ -/* and reports changes to the files and directories just as FileMonitor reports them. Subclasses*/ -/* can override the notify_* methods to filter or monitor events before the signal is fired,*/ -/* or can override the signals themselves to be notified afterwards.*/ -/**/ -/* start_discovery() must be called to initiate monitoring. Directories and files will be reported*/ -/* as they're discovered. Directories will be monitored as they're discovered as well. Discovery*/ -/* can only be initiated once.*/ -/**/ -/* All signals are virtual and have a corresponding notify_* protected virtual function.*/ -/* Subclasses can either override the notify or the signal to decide when they want to process*/ -/* the event.*/ -/**/ -/* DirectoryMonitor also adds a level of intelligence to GLib's monitoring API.Because certain*/ -/* file/directory events are decomposed by FileMonitor into more atomic events, it's difficult*/ -/* to know when these "composed" events have occurred. (For example, a file move is reported*/ -/* as a DELETED event followed by a CREATED event, with no clue that the two are related.) Later*/ -/* versions added the MOVE event, but we can't rely on those being installed. Also, documentation*/ -/* suggests it's only available with certain back-ends.*/ -/**/ -/* DirectoryMonitor attempts to solve this by deducing when a set of events actually equals*/ -/* a composite event. It requires more memory in order to do this (i.e. it stores all files and*/ -/* their information), but the trade-off is easier file/directory monitoring via familiar*/ -/* semantics.*/ -/**/ -/* DirectoryMonitor also will synthesize events when normal monitor events don't produce expected*/ -/* results. For example, if a directory is moved out of DirectoryMonitor's root, it is reported*/ -/* as a delete event, but none of its children are reported as deleted. Similarly, a directory*/ -/* rename can be captured as a move, but notifications for all its children are not fired and*/ -/* are synthesized by DirectoryMonitor. DirectoryMonitor will fire delete and move notifications*/ -/* for all the directory's children in depth-first order.*/ -/**/ -/* In general, DirectoryMonitor attempts to preserve ordering of events, so that (for example) a*/ -/* file-altered event doesn't fire before a file-created, and so on.*/ -/**/ -/* Because of these requirements, DirectoryMonitor maintains a FileInfo struct on all directories */ -/* and files being monitored. (It maintains the attributes gather during the discovery phase, i.e. */ -/* SUPPLIED_ATTRIBUTES.) This information can be retrieved via get_info(), get_file_id(), and*/ -/* get_etag(). These calls can be made at any time; the information is stored before any signal*/ -/* is fired.*/ -/**/ -/* Note that DirectoryMonitor currently only supports files and directories. Other file types*/ -/* (special, symbolic links, shortcuts, and mount points) are not supported. It has been seen*/ -/* when a temporary file is created for its file type to be reported as "unknown" and when it's*/ -/* altered/deleted to be reported as a regular file. This means it's possible for a file not to*/ -/* be reported as discovered or created but to be reported as altered and/or deleted.*/ -/**/ -/* DirectoryMonitor can be configured to not recurse (in which case it only discovers/monitors*/ -/* the root directory) and to not monitor (in which case only discovery occurs).*/ -/**/ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_DIRECTORY_MONITOR (directory_monitor_get_type ()) -#define DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitor)) -#define DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass)) -#define IS_DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECTORY_MONITOR)) -#define IS_DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECTORY_MONITOR)) -#define DIRECTORY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass)) - -typedef struct _DirectoryMonitor DirectoryMonitor; -typedef struct _DirectoryMonitorClass DirectoryMonitorClass; -typedef struct _DirectoryMonitorPrivate DirectoryMonitorPrivate; - -#define DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT (directory_monitor_query_info_queue_element_get_type ()) -#define DIRECTORY_MONITOR_QUERY_INFO_QUEUE_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT, DirectoryMonitorQueryInfoQueueElement)) -#define DIRECTORY_MONITOR_QUERY_INFO_QUEUE_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT, DirectoryMonitorQueryInfoQueueElementClass)) -#define DIRECTORY_MONITOR_IS_QUERY_INFO_QUEUE_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT)) -#define DIRECTORY_MONITOR_IS_QUERY_INFO_QUEUE_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT)) -#define DIRECTORY_MONITOR_QUERY_INFO_QUEUE_ELEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT, DirectoryMonitorQueryInfoQueueElementClass)) - -typedef struct _DirectoryMonitorQueryInfoQueueElement DirectoryMonitorQueryInfoQueueElement; -typedef struct _DirectoryMonitorQueryInfoQueueElementClass DirectoryMonitorQueryInfoQueueElementClass; - -#define DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP (directory_monitor_file_info_map_get_type ()) -#define DIRECTORY_MONITOR_FILE_INFO_MAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP, DirectoryMonitorFileInfoMap)) -#define DIRECTORY_MONITOR_FILE_INFO_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP, DirectoryMonitorFileInfoMapClass)) -#define DIRECTORY_MONITOR_IS_FILE_INFO_MAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP)) -#define DIRECTORY_MONITOR_IS_FILE_INFO_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP)) -#define DIRECTORY_MONITOR_FILE_INFO_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP, DirectoryMonitorFileInfoMapClass)) - -typedef struct _DirectoryMonitorFileInfoMap DirectoryMonitorFileInfoMap; -typedef struct _DirectoryMonitorFileInfoMapClass DirectoryMonitorFileInfoMapClass; -enum { - DIRECTORY_MONITOR_0_PROPERTY, - DIRECTORY_MONITOR_NUM_PROPERTIES -}; -static GParamSpec* directory_monitor_properties[DIRECTORY_MONITOR_NUM_PROPERTIES]; - -#define DIRECTORY_MONITOR_TYPE_FTYPE (directory_monitor_ftype_get_type ()) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _directory_monitor_file_info_map_unref0(var) ((var == NULL) ? NULL : (var = (directory_monitor_file_info_map_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _DirectoryMonitorAsyncInternalNotifyDirectoryMovedData DirectoryMonitorAsyncInternalNotifyDirectoryMovedData; -typedef struct _DirectoryMonitorAsyncNotifyDirectoryDeletedData DirectoryMonitorAsyncNotifyDirectoryDeletedData; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL))) -typedef struct _DirectoryMonitorExploreAsyncData DirectoryMonitorExploreAsyncData; -typedef struct _DirectoryMonitorNotifyDirectoryFilesData DirectoryMonitorNotifyDirectoryFilesData; -typedef struct _DirectoryMonitorQueryInfoQueueElementPrivate DirectoryMonitorQueryInfoQueueElementPrivate; -#define _directory_monitor_query_info_queue_element_unref0(var) ((var == NULL) ? NULL : (var = (directory_monitor_query_info_queue_element_unref (var), NULL))) -typedef struct _DirectoryMonitorParamSpecQueryInfoQueueElement DirectoryMonitorParamSpecQueryInfoQueueElement; -typedef struct _DirectoryMonitorFileInfoMapPrivate DirectoryMonitorFileInfoMapPrivate; -typedef struct _DirectoryMonitorParamSpecFileInfoMap DirectoryMonitorParamSpecFileInfoMap; -enum { - DIRECTORY_MONITOR_ROOT_MOVED_SIGNAL, - DIRECTORY_MONITOR_ROOT_DELETED_SIGNAL, - DIRECTORY_MONITOR_DISCOVERY_STARTED_SIGNAL, - DIRECTORY_MONITOR_FILE_DISCOVERED_SIGNAL, - DIRECTORY_MONITOR_DIRECTORY_DISCOVERED_SIGNAL, - DIRECTORY_MONITOR_DISCOVERY_FAILED_SIGNAL, - DIRECTORY_MONITOR_DISCOVERY_COMPLETED_SIGNAL, - DIRECTORY_MONITOR_FILE_CREATED_SIGNAL, - DIRECTORY_MONITOR_FILE_MOVED_SIGNAL, - DIRECTORY_MONITOR_FILE_ALTERED_SIGNAL, - DIRECTORY_MONITOR_FILE_ALTERATION_COMPLETED_SIGNAL, - DIRECTORY_MONITOR_FILE_ATTRIBUTES_ALTERED_SIGNAL, - DIRECTORY_MONITOR_FILE_DELETED_SIGNAL, - DIRECTORY_MONITOR_DIRECTORY_CREATED_SIGNAL, - DIRECTORY_MONITOR_DIRECTORY_MOVED_SIGNAL, - DIRECTORY_MONITOR_DIRECTORY_ALTERED_SIGNAL, - DIRECTORY_MONITOR_DIRECTORY_ALTERATION_COMPLETED_SIGNAL, - DIRECTORY_MONITOR_DIRECTORY_ATTRIBUTES_ALTERED_SIGNAL, - DIRECTORY_MONITOR_DIRECTORY_DELETED_SIGNAL, - DIRECTORY_MONITOR_CLOSED_SIGNAL, - DIRECTORY_MONITOR_NUM_SIGNALS -}; -static guint directory_monitor_signals[DIRECTORY_MONITOR_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _DirectoryMonitor { - GObject parent_instance; - DirectoryMonitorPrivate * priv; -}; - -struct _DirectoryMonitorClass { - GObjectClass parent_class; - void (*notify_root_deleted) (DirectoryMonitor* self, GFile* root); - void (*notify_root_moved) (DirectoryMonitor* self, GFile* old_root, GFile* new_root, GFileInfo* new_root_info); - void (*notify_discovery_started) (DirectoryMonitor* self); - void (*internal_notify_file_discovered) (DirectoryMonitor* self, GFile* file, GFileInfo* info); - void (*notify_file_discovered) (DirectoryMonitor* self, GFile* file, GFileInfo* info); - void (*internal_notify_directory_discovered) (DirectoryMonitor* self, GFile* dir, GFileInfo* info); - void (*notify_directory_discovered) (DirectoryMonitor* self, GFile* dir, GFileInfo* info); - void (*notify_discovery_failed) (DirectoryMonitor* self, const gchar* reason); - void (*notify_discovery_completed) (DirectoryMonitor* self); - void (*notify_file_created) (DirectoryMonitor* self, GFile* file, GFileInfo* info); - void (*notify_file_moved) (DirectoryMonitor* self, GFile* old_file, GFile* new_file, GFileInfo* new_file_info); - void (*notify_file_altered) (DirectoryMonitor* self, GFile* file); - void (*notify_file_alteration_completed) (DirectoryMonitor* self, GFile* file, GFileInfo* info); - void (*notify_file_attributes_altered) (DirectoryMonitor* self, GFile* file); - void (*notify_file_deleted) (DirectoryMonitor* self, GFile* file); - void (*notify_directory_created) (DirectoryMonitor* self, GFile* dir, GFileInfo* info); - void (*notify_directory_moved) (DirectoryMonitor* self, GFile* old_dir, GFile* new_dir, GFileInfo* new_dir_info); - void (*notify_directory_altered) (DirectoryMonitor* self, GFile* dir); - void (*notify_directory_alteration_completed) (DirectoryMonitor* self, GFile* dir, GFileInfo* info); - void (*notify_directory_attributes_altered) (DirectoryMonitor* self, GFile* dir); - void (*notify_directory_deleted) (DirectoryMonitor* self, GFile* dir); - void (*notify_closed) (DirectoryMonitor* self); - void (*close) (DirectoryMonitor* self); - void (*root_moved) (DirectoryMonitor* self, GFile* old_root, GFile* new_root, GFileInfo* new_root_info); - void (*root_deleted) (DirectoryMonitor* self, GFile* root); - void (*discovery_started) (DirectoryMonitor* self); - void (*file_discovered) (DirectoryMonitor* self, GFile* file, GFileInfo* info); - void (*directory_discovered) (DirectoryMonitor* self, GFile* file, GFileInfo* info); - void (*discovery_failed) (DirectoryMonitor* self, const gchar* reason); - void (*discovery_completed) (DirectoryMonitor* self); - void (*file_created) (DirectoryMonitor* self, GFile* file, GFileInfo* info); - void (*file_moved) (DirectoryMonitor* self, GFile* old_file, GFile* new_file, GFileInfo* new_file_info); - void (*file_altered) (DirectoryMonitor* self, GFile* file); - void (*file_alteration_completed) (DirectoryMonitor* self, GFile* file, GFileInfo* info); - void (*file_attributes_altered) (DirectoryMonitor* self, GFile* file); - void (*file_deleted) (DirectoryMonitor* self, GFile* file); - void (*directory_created) (DirectoryMonitor* self, GFile* dir, GFileInfo* info); - void (*directory_moved) (DirectoryMonitor* self, GFile* old_dir, GFile* new_dir, GFileInfo* new_dir_info); - void (*directory_altered) (DirectoryMonitor* self, GFile* dir); - void (*directory_alteration_completed) (DirectoryMonitor* self, GFile* dir, GFileInfo* info); - void (*directory_attributes_altered) (DirectoryMonitor* self, GFile* dir); - void (*directory_deleted) (DirectoryMonitor* self, GFile* dir); - void (*closed) (DirectoryMonitor* self); -}; - -struct _DirectoryMonitorPrivate { - GFile* root; - gboolean recurse; - gboolean monitoring; - GeeHashMap* monitors; - GeeQueue* query_info_queue; - DirectoryMonitorFileInfoMap* files; - DirectoryMonitorFileInfoMap* parent_moved; - GCancellable* cancellable; - gint outstanding_exploration_dirs; - gboolean started; - gboolean has_discovery_started; - guint delete_timer_id; -}; - -typedef enum { - DIRECTORY_MONITOR_FTYPE_FILE, - DIRECTORY_MONITOR_FTYPE_DIRECTORY, - DIRECTORY_MONITOR_FTYPE_UNSUPPORTED -} DirectoryMonitorFType; - -struct _DirectoryMonitorAsyncInternalNotifyDirectoryMovedData { - int _state_; - GObject* _source_object_; - GAsyncResult* _res_; - GTask* _async_result; - GAsyncReadyCallback _callback_; - gboolean _task_complete_; - DirectoryMonitor* self; - GFile* old_dir; - GFileInfo* old_dir_info; - GFile* new_dir; - GFileInfo* new_dir_info; - GeeArrayList* file_children; - GeeArrayList* _tmp0_; - GeeArrayList* dir_children; - GeeArrayList* _tmp1_; - gint count; - DirectoryMonitorFileInfoMap* _tmp2_; - GeeArrayList* _tmp3_; - GeeArrayList* _tmp4_; - gint _tmp5_; - GeeArrayList* _dir_child_list; - GeeArrayList* _tmp6_; - GeeArrayList* _tmp7_; - gint _dir_child_size; - GeeArrayList* _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _dir_child_index; - gint _tmp11_; - gint _tmp12_; - gint _tmp13_; - GFile* dir_child; - GeeArrayList* _tmp14_; - gint _tmp15_; - gpointer _tmp16_; - GFileInfo* dir_info; - DirectoryMonitorFileInfoMap* _tmp17_; - GFile* _tmp18_; - GFileInfo* _tmp19_; - GFileInfo* _tmp20_; - GFile* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - GFile* _tmp24_; - GFileInfo* _tmp25_; - GFile* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - GFile* _tmp29_; - GFile* _tmp30_; - GFileInfo* _tmp31_; - GeeArrayList* _file_child_list; - GeeArrayList* _tmp32_; - GeeArrayList* _tmp33_; - gint _file_child_size; - GeeArrayList* _tmp34_; - gint _tmp35_; - gint _tmp36_; - gint _file_child_index; - gint _tmp37_; - gint _tmp38_; - gint _tmp39_; - GFile* file_child; - GeeArrayList* _tmp40_; - gint _tmp41_; - gpointer _tmp42_; - GFileInfo* file_info; - DirectoryMonitorFileInfoMap* _tmp43_; - GFile* _tmp44_; - GFileInfo* _tmp45_; - GFileInfo* _tmp46_; - GFile* _tmp47_; - gchar* _tmp48_; - gchar* _tmp49_; - GFile* _tmp50_; - GFile* _tmp51_; - gchar* _tmp52_; - gchar* _tmp53_; - GFile* _tmp54_; - GFile* _tmp55_; - GFileInfo* _tmp56_; - DirectoryMonitorFileInfoMap* _tmp57_; - gboolean updated; - DirectoryMonitorFileInfoMap* _tmp58_; -}; - -struct _DirectoryMonitorAsyncNotifyDirectoryDeletedData { - int _state_; - GObject* _source_object_; - GAsyncResult* _res_; - GTask* _async_result; - GAsyncReadyCallback _callback_; - gboolean _task_complete_; - DirectoryMonitor* self; - GFile* dir; - gboolean already_removed; - GeeArrayList* file_children; - GeeArrayList* _tmp0_; - GeeArrayList* dir_children; - GeeArrayList* _tmp1_; - gint count; - DirectoryMonitorFileInfoMap* _tmp2_; - GeeArrayList* _tmp3_; - GeeArrayList* _tmp4_; - gint _tmp5_; - GeeArrayList* _dir_child_list; - GeeArrayList* _tmp6_; - GeeArrayList* _tmp7_; - gint _dir_child_size; - GeeArrayList* _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _dir_child_index; - gint _tmp11_; - gint _tmp12_; - gint _tmp13_; - GFile* dir_child; - GeeArrayList* _tmp14_; - gint _tmp15_; - gpointer _tmp16_; - GFile* _tmp17_; - GeeArrayList* _file_child_list; - GeeArrayList* _tmp18_; - GeeArrayList* _tmp19_; - gint _file_child_size; - GeeArrayList* _tmp20_; - gint _tmp21_; - gint _tmp22_; - gint _file_child_index; - gint _tmp23_; - gint _tmp24_; - gint _tmp25_; - GFile* file_child; - GeeArrayList* _tmp26_; - gint _tmp27_; - gpointer _tmp28_; - DirectoryMonitorFileInfoMap* _tmp29_; - GFile* _tmp30_; - GFile* _tmp31_; - DirectoryMonitorFileInfoMap* _tmp32_; -}; - -struct _DirectoryMonitorExploreAsyncData { - int _state_; - GObject* _source_object_; - GAsyncResult* _res_; - GTask* _async_result; - GAsyncReadyCallback _callback_; - gboolean _task_complete_; - DirectoryMonitor* self; - GFile* dir; - GFileInfo* dir_info; - gboolean in_discovery; - DirectoryMonitorFileInfoMap* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - GFileInfo* local_dir_info; - GFileInfo* _tmp3_; - GFileInfo* _tmp4_; - GFileInfo* _tmp5_; - GCancellable* _tmp6_; - GFileInfo* _tmp7_; - GFileInfo* _tmp8_; - GError* err; - gchar* _tmp9_; - gchar* _tmp10_; - GError* _tmp11_; - const gchar* _tmp12_; - GFileInfo* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - GFileInfo* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - gboolean _tmp19_; - GFileInfo* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - GFileInfo* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - GFileInfo* _tmp26_; - GEnumValue* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - GeeHashMap* dir_map; - GeeHashMap* file_map; - GFileEnumerator* enumerator; - GCancellable* _tmp30_; - GFileEnumerator* _tmp31_; - gboolean _tmp32_; - GList* infos; - GFileEnumerator* _tmp33_; - GCancellable* _tmp34_; - GList* _tmp35_; - GList* _tmp36_; - GList* _tmp37_; - GList* info_collection; - GList* info_it; - GFileInfo* _tmp38_; - GFileInfo* info; - GFileInfo* _tmp39_; - gchar* _tmp40_; - gchar* _tmp41_; - gboolean _tmp42_; - GFileInfo* _tmp43_; - gchar* _tmp44_; - gchar* _tmp45_; - GFileInfo* _tmp46_; - GFileInfo* _tmp47_; - const gchar* _tmp48_; - GFile* _tmp49_; - GFile* _tmp50_; - gchar* _tmp51_; - gchar* _tmp52_; - GFileInfo* _tmp53_; - GFileInfo* _tmp54_; - GeeHashMap* _tmp55_; - GeeHashMap* _tmp56_; - GeeHashMap* _tmp57_; - GFileInfo* _tmp58_; - const gchar* _tmp59_; - GFile* _tmp60_; - GFile* _tmp61_; - GFileInfo* _tmp62_; - GeeHashMap* _tmp63_; - GeeHashMap* _tmp64_; - GeeHashMap* _tmp65_; - GFileInfo* _tmp66_; - const gchar* _tmp67_; - GFile* _tmp68_; - GFile* _tmp69_; - GFileInfo* _tmp70_; - GError* err2; - gchar* _tmp71_; - gchar* _tmp72_; - GError* _tmp73_; - const gchar* _tmp74_; - GFileInfo* _tmp75_; - GFileInfo* _tmp76_; - GFileInfo* _tmp77_; - GeeHashMap* _tmp78_; - GeeHashMap* _tmp79_; - gboolean _tmp80_; - gboolean _tmp81_; - GeeHashMap* _tmp82_; - GeeIterator* _subdir_it; - GeeHashMap* _tmp83_; - GeeSet* _tmp84_; - GeeSet* _tmp85_; - GeeSet* _tmp86_; - GeeIterator* _tmp87_; - GeeIterator* _tmp88_; - GeeIterator* _tmp89_; - GFile* subdir; - GeeIterator* _tmp90_; - gpointer _tmp91_; - gint _tmp92_; - gint _tmp93_; - GFile* _tmp94_; - GeeHashMap* _tmp95_; - GFile* _tmp96_; - gpointer _tmp97_; - GFileInfo* _tmp98_; - GFile* _tmp99_; - GeeHashMap* _tmp100_; - GFile* _tmp101_; - gpointer _tmp102_; - GFileInfo* _tmp103_; - GError * _inner_error_; -}; - -struct _DirectoryMonitorNotifyDirectoryFilesData { - int _state_; - GObject* _source_object_; - GAsyncResult* _res_; - GTask* _async_result; - GAsyncReadyCallback _callback_; - gboolean _task_complete_; - DirectoryMonitor* self; - GeeMap* map; - gboolean in_discovery; - GeeMapIterator* iter; - GeeMapIterator* _tmp0_; - GeeMapIterator* _tmp1_; - GeeMapIterator* _tmp2_; - gpointer _tmp3_; - GFile* _tmp4_; - GeeMapIterator* _tmp5_; - gpointer _tmp6_; - GFileInfo* _tmp7_; - GeeMapIterator* _tmp8_; - gpointer _tmp9_; - GFile* _tmp10_; - GeeMapIterator* _tmp11_; - gpointer _tmp12_; - GFileInfo* _tmp13_; -}; - -struct _DirectoryMonitorQueryInfoQueueElement { - GTypeInstance parent_instance; - volatile int ref_count; - DirectoryMonitorQueryInfoQueueElementPrivate * priv; - DirectoryMonitor* owner; - GFile* file; - GFile* other_file; - GFileMonitorEvent event; - guint position; - gulong time_created_msec; - GFileInfo* info; - GError* err; - gboolean completed; -}; - -struct _DirectoryMonitorQueryInfoQueueElementClass { - GTypeClass parent_class; - void (*finalize) (DirectoryMonitorQueryInfoQueueElement *self); -}; - -struct _DirectoryMonitorParamSpecQueryInfoQueueElement { - GParamSpec parent_instance; -}; - -struct _DirectoryMonitorFileInfoMap { - GTypeInstance parent_instance; - volatile int ref_count; - DirectoryMonitorFileInfoMapPrivate * priv; -}; - -struct _DirectoryMonitorFileInfoMapClass { - GTypeClass parent_class; - void (*finalize) (DirectoryMonitorFileInfoMap *self); -}; - -struct _DirectoryMonitorFileInfoMapPrivate { - GeeHashMap* map; - GeeHashMap* id_map; -}; - -struct _DirectoryMonitorParamSpecFileInfoMap { - GParamSpec parent_instance; -}; - - -static gpointer directory_monitor_parent_class = NULL; -static gpointer directory_monitor_query_info_queue_element_parent_class = NULL; -static guint directory_monitor_query_info_queue_element_current; -static guint directory_monitor_query_info_queue_element_current = (guint) 0; -static gpointer directory_monitor_file_info_map_parent_class = NULL; - -GType directory_monitor_get_type (void) G_GNUC_CONST; -static gpointer directory_monitor_query_info_queue_element_ref (gpointer instance); -static void directory_monitor_query_info_queue_element_unref (gpointer instance); -static GParamSpec* directory_monitor_param_spec_query_info_queue_element (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void directory_monitor_value_set_query_info_queue_element (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void directory_monitor_value_take_query_info_queue_element (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer directory_monitor_value_get_query_info_queue_element (const GValue* value) G_GNUC_UNUSED; -static GType directory_monitor_query_info_queue_element_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static gpointer directory_monitor_file_info_map_ref (gpointer instance); -static void directory_monitor_file_info_map_unref (gpointer instance); -static GParamSpec* directory_monitor_param_spec_file_info_map (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void directory_monitor_value_set_file_info_map (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void directory_monitor_value_take_file_info_map (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer directory_monitor_value_get_file_info_map (const GValue* value) G_GNUC_UNUSED; -static GType directory_monitor_file_info_map_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define DIRECTORY_MONITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DIRECTORY_MONITOR, DirectoryMonitorPrivate)) -static GType directory_monitor_ftype_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static DirectoryMonitorFileInfoMap* directory_monitor_file_info_map_new (void); -static DirectoryMonitorFileInfoMap* directory_monitor_file_info_map_construct (GType object_type); -#define DIRECTORY_MONITOR_DEFAULT_PRIORITY G_PRIORITY_LOW -#define DIRECTORY_MONITOR_DIR_INFO_FLAGS G_FILE_QUERY_INFO_NONE -#define DIRECTORY_MONITOR_FILE_INFO_FLAGS G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS -#define DIRECTORY_MONITOR_UNKNOWN_INFO_FLAGS G_FILE_QUERY_INFO_NONE -#define DIRECTORY_MONITOR_SUPPORT_DIR_SYMLINKS TRUE -#define DIRECTORY_MONITOR_SUPPORT_FILE_SYMLINKS FALSE -#define UTIL_FILE_ATTRIBUTES "standard::*,time::*,id::file,id::filesystem,etag::value" -#define DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES UTIL_FILE_ATTRIBUTES -#define DIRECTORY_MONITOR_FILE_MONITOR_FLAGS G_FILE_MONITOR_SEND_MOVED -#define DIRECTORY_MONITOR_DELETED_EXPIRATION_MSEC ((guint) 500) -#define DIRECTORY_MONITOR_MAX_EXPLORATION_DIRS 5 -DirectoryMonitor* directory_monitor_new (GFile* root, - gboolean recurse, - gboolean monitoring); -DirectoryMonitor* directory_monitor_construct (GType object_type, - GFile* root, - gboolean recurse, - gboolean monitoring); -void directory_monitor_mdbg (const gchar* msg); -gboolean directory_monitor_is_recursive (DirectoryMonitor* self); -gboolean directory_monitor_is_monitoring (DirectoryMonitor* self); -void directory_monitor_notify_root_deleted (DirectoryMonitor* self, - GFile* root); -static void directory_monitor_real_notify_root_deleted (DirectoryMonitor* self, - GFile* root); -static void directory_monitor_internal_notify_root_moved (DirectoryMonitor* self, - GFile* old_root, - GFile* new_root, - GFileInfo* new_root_info); -static gboolean directory_monitor_file_info_map_remove (DirectoryMonitorFileInfoMap* self, - GFile* file, - GFileInfo* info); -static gboolean directory_monitor_file_info_map_update (DirectoryMonitorFileInfoMap* self, - GFile* file, - GFileInfo* info); -void directory_monitor_notify_root_moved (DirectoryMonitor* self, - GFile* old_root, - GFile* new_root, - GFileInfo* new_root_info); -static void directory_monitor_real_notify_root_moved (DirectoryMonitor* self, - GFile* old_root, - GFile* new_root, - GFileInfo* new_root_info); -void directory_monitor_notify_discovery_started (DirectoryMonitor* self); -static void directory_monitor_real_notify_discovery_started (DirectoryMonitor* self); -void directory_monitor_internal_notify_file_discovered (DirectoryMonitor* self, - GFile* file, - GFileInfo* info); -static void directory_monitor_real_internal_notify_file_discovered (DirectoryMonitor* self, - GFile* file, - GFileInfo* info); -void directory_monitor_notify_file_discovered (DirectoryMonitor* self, - GFile* file, - GFileInfo* info); -static void directory_monitor_real_notify_file_discovered (DirectoryMonitor* self, - GFile* file, - GFileInfo* info); -void directory_monitor_internal_notify_directory_discovered (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info); -static void directory_monitor_real_internal_notify_directory_discovered (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info); -void directory_monitor_notify_directory_discovered (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info); -static void directory_monitor_real_notify_directory_discovered (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info); -void directory_monitor_notify_discovery_failed (DirectoryMonitor* self, - const gchar* reason); -static void directory_monitor_real_notify_discovery_failed (DirectoryMonitor* self, - const gchar* reason); -void directory_monitor_notify_discovery_completed (DirectoryMonitor* self); -static void directory_monitor_real_notify_discovery_completed (DirectoryMonitor* self); -static void directory_monitor_internal_notify_file_created (DirectoryMonitor* self, - GFile* file, - GFileInfo* info); -static gboolean directory_monitor_is_file_create_move (DirectoryMonitor* self, - GFile* file, - GFileInfo* info, - GFile* * old_file, - GFileInfo* * old_file_info); -static void directory_monitor_internal_notify_file_moved (DirectoryMonitor* self, - GFile* old_file, - GFile* new_file, - GFileInfo* new_file_info); -void directory_monitor_notify_file_created (DirectoryMonitor* self, - GFile* file, - GFileInfo* info); -static void directory_monitor_real_notify_file_created (DirectoryMonitor* self, - GFile* file, - GFileInfo* info); -void directory_monitor_notify_file_moved (DirectoryMonitor* self, - GFile* old_file, - GFile* new_file, - GFileInfo* new_file_info); -static void directory_monitor_real_notify_file_moved (DirectoryMonitor* self, - GFile* old_file, - GFile* new_file, - GFileInfo* new_file_info); -void directory_monitor_notify_file_altered (DirectoryMonitor* self, - GFile* file); -static void directory_monitor_real_notify_file_altered (DirectoryMonitor* self, - GFile* file); -static void directory_monitor_internal_notify_file_alteration_completed (DirectoryMonitor* self, - GFile* file, - GFileInfo* info); -void directory_monitor_notify_file_alteration_completed (DirectoryMonitor* self, - GFile* file, - GFileInfo* info); -static void directory_monitor_real_notify_file_alteration_completed (DirectoryMonitor* self, - GFile* file, - GFileInfo* info); -void directory_monitor_notify_file_attributes_altered (DirectoryMonitor* self, - GFile* file); -static void directory_monitor_real_notify_file_attributes_altered (DirectoryMonitor* self, - GFile* file); -static void directory_monitor_internal_notify_file_deleted (DirectoryMonitor* self, - GFile* file); -void directory_monitor_notify_file_deleted (DirectoryMonitor* self, - GFile* file); -static void directory_monitor_real_notify_file_deleted (DirectoryMonitor* self, - GFile* file); -static void directory_monitor_internal_notify_directory_created (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info); -static void directory_monitor_file_info_map_remove_descendents (DirectoryMonitorFileInfoMap* self, - GFile* root, - DirectoryMonitorFileInfoMap* descendents); -static void directory_monitor_internal_notify_directory_moved (DirectoryMonitor* self, - GFile* old_dir, - GFileInfo* old_dir_info, - GFile* new_dir, - GFileInfo* new_dir_info); -void directory_monitor_notify_directory_created (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info); -static void directory_monitor_real_notify_directory_created (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info); -static void directory_monitor_async_internal_notify_directory_moved (DirectoryMonitor* self, - GFile* old_dir, - GFileInfo* old_dir_info, - GFile* new_dir, - GFileInfo* new_dir_info, - GAsyncReadyCallback _callback_, - gpointer _user_data_); -static void directory_monitor_async_internal_notify_directory_moved_finish (DirectoryMonitor* self, - GAsyncResult* _res_); -static void directory_monitor_async_internal_notify_directory_moved_data_free (gpointer _data); -static void directory_monitor_async_internal_notify_directory_moved_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data); -static gboolean directory_monitor_async_internal_notify_directory_moved_co (DirectoryMonitorAsyncInternalNotifyDirectoryMovedData* _data_); -gboolean file_equal (GFile* a, - GFile* b); -static gboolean _file_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -static gint directory_monitor_file_info_map_get_children (DirectoryMonitorFileInfoMap* self, - GFile* root, - GeeCollection* files, - GeeCollection* dirs); -static GFileInfo* directory_monitor_file_info_map_get_info (DirectoryMonitorFileInfoMap* self, - GFile* file); -static void directory_monitor_async_internal_notify_directory_moved_ready (GObject* source_object, - GAsyncResult* _res_, - gpointer _user_data_); -static gboolean _directory_monitor_async_internal_notify_directory_moved_co_gsource_func (gpointer self); -static gboolean directory_monitor_remove_monitor (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info); -static gboolean directory_monitor_add_monitor (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info); -void directory_monitor_notify_directory_moved (DirectoryMonitor* self, - GFile* old_dir, - GFile* new_dir, - GFileInfo* new_dir_info); -static void directory_monitor_real_notify_directory_moved (DirectoryMonitor* self, - GFile* old_dir, - GFile* new_dir, - GFileInfo* new_dir_info); -void directory_monitor_notify_directory_altered (DirectoryMonitor* self, - GFile* dir); -static void directory_monitor_real_notify_directory_altered (DirectoryMonitor* self, - GFile* dir); -static void directory_monitor_internal_notify_directory_alteration_completed (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info); -void directory_monitor_notify_directory_alteration_completed (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info); -static void directory_monitor_real_notify_directory_alteration_completed (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info); -void directory_monitor_notify_directory_attributes_altered (DirectoryMonitor* self, - GFile* dir); -static void directory_monitor_real_notify_directory_attributes_altered (DirectoryMonitor* self, - GFile* dir); -static void directory_monitor_internal_notify_directory_deleted (DirectoryMonitor* self, - GFile* dir); -static void directory_monitor_async_notify_directory_deleted (DirectoryMonitor* self, - GFile* dir, - gboolean already_removed, - GAsyncReadyCallback _callback_, - gpointer _user_data_); -static void directory_monitor_async_notify_directory_deleted_finish (DirectoryMonitor* self, - GAsyncResult* _res_); -static void directory_monitor_async_notify_directory_deleted_data_free (gpointer _data); -static void directory_monitor_async_notify_directory_deleted_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data); -static gboolean directory_monitor_async_notify_directory_deleted_co (DirectoryMonitorAsyncNotifyDirectoryDeletedData* _data_); -static void directory_monitor_async_notify_directory_deleted_ready (GObject* source_object, - GAsyncResult* _res_, - gpointer _user_data_); -static gboolean _directory_monitor_async_notify_directory_deleted_co_gsource_func (gpointer self); -void directory_monitor_notify_directory_deleted (DirectoryMonitor* self, - GFile* dir); -static void directory_monitor_real_notify_directory_deleted (DirectoryMonitor* self, - GFile* dir); -void directory_monitor_notify_closed (DirectoryMonitor* self); -static void directory_monitor_real_notify_closed (DirectoryMonitor* self); -GFile* directory_monitor_get_root (DirectoryMonitor* self); -gboolean directory_monitor_is_in_root (DirectoryMonitor* self, - GFile* file); -gboolean directory_monitor_has_started (DirectoryMonitor* self); -void directory_monitor_start_discovery (DirectoryMonitor* self); -static void directory_monitor_explore_async (DirectoryMonitor* self, - GFile* dir, - GFileInfo* dir_info, - gboolean in_discovery, - GAsyncReadyCallback _callback_, - gpointer _user_data_); -static void directory_monitor_explore_finish (DirectoryMonitor* self, - GAsyncResult* _res_); -void directory_monitor_close (DirectoryMonitor* self); -static void directory_monitor_real_close (DirectoryMonitor* self); -static void directory_monitor_cancel_monitor (DirectoryMonitor* self, - GFileMonitor* monitor); -static DirectoryMonitorFType directory_monitor_get_ftype (GFileInfo* info); -const gchar* g_file_type_to_string (GFileType self); -static void directory_monitor_explore_async_data_free (gpointer _data); -static void directory_monitor_explore_async_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data); -static gboolean directory_monitor_explore_async_co (DirectoryMonitorExploreAsyncData* _data_); -static gboolean directory_monitor_file_info_map_contains (DirectoryMonitorFileInfoMap* self, - GFile* file, - GFileInfo* info); -static void directory_monitor_explore_directory_completed (DirectoryMonitor* self, - gboolean in_discovery); -static void directory_monitor_explore_async_ready (GObject* source_object, - GAsyncResult* _res_, - gpointer _user_data_); -gchar* get_file_info_id (GFileInfo* info); -static void _g_object_unref0_ (gpointer var); -static inline void _g_list_free__g_object_unref0_ (GList* self); -gboolean directory_monitor_is_file_symlink_supported (GFileInfo* info); -guint file_hash (GFile* file); -static guint _file_hash_gee_hash_data_func (gconstpointer v, - gpointer self); -static void directory_monitor_notify_directory_files (DirectoryMonitor* self, - GeeMap* map, - gboolean in_discovery, - GAsyncReadyCallback _callback_, - gpointer _user_data_); -static void directory_monitor_notify_directory_files_finish (DirectoryMonitor* self, - GAsyncResult* _res_); -static void directory_monitor_notify_directory_files_data_free (gpointer _data); -static void directory_monitor_notify_directory_files_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data); -static gboolean directory_monitor_notify_directory_files_co (DirectoryMonitorNotifyDirectoryFilesData* _data_); -static gboolean _directory_monitor_notify_directory_files_co_gsource_func (gpointer self); -static gchar* directory_monitor_file_info_map_get_id (DirectoryMonitorFileInfoMap* self, - GFile* file, - GFileInfo* info); -static void directory_monitor_on_monitor_notification (DirectoryMonitor* self, - GFile* file, - GFile* other_file, - GFileMonitorEvent event); -static void _directory_monitor_on_monitor_notification_g_file_monitor_changed (GFileMonitor* _sender, - GFile* file, - GFile* other_file, - GFileMonitorEvent event_type, - gpointer self); -const gchar* g_file_monitor_event_to_string (GFileMonitorEvent self); -static DirectoryMonitorQueryInfoQueueElement* directory_monitor_query_info_queue_element_new (DirectoryMonitor* owner, - GFile* file, - GFile* other_file, - GFileMonitorEvent event); -static DirectoryMonitorQueryInfoQueueElement* directory_monitor_query_info_queue_element_construct (GType object_type, - DirectoryMonitor* owner, - GFile* file, - GFile* other_file, - GFileMonitorEvent event); -static void directory_monitor_query_info_queue_element_on_completed (DirectoryMonitorQueryInfoQueueElement* self, - GObject* source, - GAsyncResult* aresult); -static void _directory_monitor_query_info_queue_element_on_completed_gasync_ready_callback (GObject* source_object, - GAsyncResult* res, - gpointer self); -static gboolean directory_monitor_check_for_expired_delete_events (DirectoryMonitor* self); -static gboolean _directory_monitor_check_for_expired_delete_events_gsource_func (gpointer self); -static void directory_monitor_process_query_queue (DirectoryMonitor* self, - DirectoryMonitorQueryInfoQueueElement* query_info); -static GFile* directory_monitor_file_info_map_find_match (DirectoryMonitorFileInfoMap* self, - GFileInfo* match); -static void directory_monitor_on_monitor_notification_ready (DirectoryMonitor* self, - GFile* file, - GFile* other_file, - GFileInfo* info, - GFileMonitorEvent event); -GFileInfo* directory_monitor_get_file_info (DirectoryMonitor* self, - GFile* file); -gulong now_ms (void); -GeeCollection* directory_monitor_get_files (DirectoryMonitor* self); -static GeeCollection* directory_monitor_file_info_map_get_all (DirectoryMonitorFileInfoMap* self); -GFileInfo* directory_monitor_query_file_info (DirectoryMonitor* self, - GFile* file); -static GFileInfo* directory_monitor_file_info_map_query_info (DirectoryMonitorFileInfoMap* self, - GFile* file, - GCancellable* cancellable); -static void directory_monitor_real_root_moved (DirectoryMonitor* self, - GFile* old_root, - GFile* new_root, - GFileInfo* new_root_info); -static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void directory_monitor_real_root_deleted (DirectoryMonitor* self, - GFile* root); -static void directory_monitor_real_discovery_started (DirectoryMonitor* self); -static void directory_monitor_real_file_discovered (DirectoryMonitor* self, - GFile* file, - GFileInfo* info); -static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void directory_monitor_real_directory_discovered (DirectoryMonitor* self, - GFile* file, - GFileInfo* info); -static void directory_monitor_real_discovery_failed (DirectoryMonitor* self, - const gchar* reason); -static void directory_monitor_real_discovery_completed (DirectoryMonitor* self); -static void directory_monitor_real_file_created (DirectoryMonitor* self, - GFile* file, - GFileInfo* info); -static void directory_monitor_real_file_moved (DirectoryMonitor* self, - GFile* old_file, - GFile* new_file, - GFileInfo* new_file_info); -static void directory_monitor_real_file_altered (DirectoryMonitor* self, - GFile* file); -static void directory_monitor_real_file_alteration_completed (DirectoryMonitor* self, - GFile* file, - GFileInfo* info); -static void directory_monitor_real_file_attributes_altered (DirectoryMonitor* self, - GFile* file); -static void directory_monitor_real_file_deleted (DirectoryMonitor* self, - GFile* file); -static void directory_monitor_real_directory_created (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info); -static void directory_monitor_real_directory_moved (DirectoryMonitor* self, - GFile* old_dir, - GFile* new_dir, - GFileInfo* new_dir_info); -static void directory_monitor_real_directory_altered (DirectoryMonitor* self, - GFile* dir); -static void directory_monitor_real_directory_alteration_completed (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info); -static void directory_monitor_real_directory_attributes_altered (DirectoryMonitor* self, - GFile* dir); -static void directory_monitor_real_directory_deleted (DirectoryMonitor* self, - GFile* dir); -static void directory_monitor_real_closed (DirectoryMonitor* self); -static void directory_monitor_query_info_queue_element_finalize (DirectoryMonitorQueryInfoQueueElement * obj); -#define DIRECTORY_MONITOR_FILE_INFO_MAP_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP, DirectoryMonitorFileInfoMapPrivate)) -static gboolean directory_monitor_file_info_map_normalize_file (DirectoryMonitorFileInfoMap* self, - GFile* file, - GFileInfo* info, - GFile* * normalized, - gchar* * id); -static void directory_monitor_file_info_map_remove_all (DirectoryMonitorFileInfoMap* self, - GeeCollection* files); -static void directory_monitor_file_info_map_finalize (DirectoryMonitorFileInfoMap * obj); -static void directory_monitor_finalize (GObject * obj); - - -static GType -directory_monitor_ftype_get_type (void) -{ - static volatile gsize directory_monitor_ftype_type_id__volatile = 0; - if (g_once_init_enter (&directory_monitor_ftype_type_id__volatile)) { - static const GEnumValue values[] = {{DIRECTORY_MONITOR_FTYPE_FILE, "DIRECTORY_MONITOR_FTYPE_FILE", "file"}, {DIRECTORY_MONITOR_FTYPE_DIRECTORY, "DIRECTORY_MONITOR_FTYPE_DIRECTORY", "directory"}, {DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "DIRECTORY_MONITOR_FTYPE_UNSUPPORTED", "unsupported"}, {0, NULL, NULL}}; - GType directory_monitor_ftype_type_id; - directory_monitor_ftype_type_id = g_enum_register_static ("DirectoryMonitorFType", values); - g_once_init_leave (&directory_monitor_ftype_type_id__volatile, directory_monitor_ftype_type_id); - } - return directory_monitor_ftype_type_id__volatile; -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 465 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return self ? g_object_ref (self) : NULL; -#line 1028 "DirectoryMonitor.c" -} - - -DirectoryMonitor* -directory_monitor_construct (GType object_type, - GFile* root, - gboolean recurse, - gboolean monitoring) -{ - DirectoryMonitor * self = NULL; - GFile* _tmp0_; -#line 464 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (root), NULL); -#line 464 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self = (DirectoryMonitor*) g_object_new (object_type, NULL); -#line 465 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = _g_object_ref0 (root); -#line 465 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (self->priv->root); -#line 465 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->root = _tmp0_; -#line 466 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->recurse = recurse; -#line 467 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->monitoring = monitoring; -#line 464 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return self; -#line 1056 "DirectoryMonitor.c" -} - - -DirectoryMonitor* -directory_monitor_new (GFile* root, - gboolean recurse, - gboolean monitoring) -{ -#line 464 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return directory_monitor_construct (TYPE_DIRECTORY_MONITOR, root, recurse, monitoring); -#line 1067 "DirectoryMonitor.c" -} - - -void -directory_monitor_mdbg (const gchar* msg) -{ -#line 470 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (msg != NULL); -#line 1076 "DirectoryMonitor.c" -} - - -gboolean -directory_monitor_is_recursive (DirectoryMonitor* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 476 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), FALSE); -#line 477 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->recurse; -#line 477 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = _tmp0_; -#line 477 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 1093 "DirectoryMonitor.c" -} - - -gboolean -directory_monitor_is_monitoring (DirectoryMonitor* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 480 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), FALSE); -#line 481 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->monitoring; -#line 481 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = _tmp0_; -#line 481 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 1110 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_root_deleted (DirectoryMonitor* self, - GFile* root) -{ - GFile* _tmp0_; -#line 484 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (root)); -#line 485 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->root; -#line 485 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (g_file_equal (_tmp0_, root), "this.root.equal(root)"); -#line 487 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg ("root deleted"); -#line 488 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_ROOT_DELETED_SIGNAL], 0, root); -#line 1129 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_root_deleted (DirectoryMonitor* self, - GFile* root) -{ -#line 484 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 484 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_root_deleted (self, root); -#line 1141 "DirectoryMonitor.c" -} - - -static void -directory_monitor_internal_notify_root_moved (DirectoryMonitor* self, - GFile* old_root, - GFile* new_root, - GFileInfo* new_root_info) -{ - gboolean removed = FALSE; - DirectoryMonitorFileInfoMap* _tmp0_; - gboolean updated = FALSE; - DirectoryMonitorFileInfoMap* _tmp1_; - GFile* _tmp2_; -#line 491 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 491 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (old_root)); -#line 491 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (new_root)); -#line 491 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (new_root_info)); -#line 492 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->files; -#line 492 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - removed = directory_monitor_file_info_map_remove (_tmp0_, old_root, NULL); -#line 493 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (removed, "removed"); -#line 495 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = self->priv->files; -#line 495 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - updated = directory_monitor_file_info_map_update (_tmp1_, new_root, new_root_info); -#line 496 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (updated, "updated"); -#line 498 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = _g_object_ref0 (new_root); -#line 498 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (self->priv->root); -#line 498 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->root = _tmp2_; -#line 500 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_root_moved (self, old_root, new_root, new_root_info); -#line 1184 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_root_moved (DirectoryMonitor* self, - GFile* old_root, - GFile* new_root, - GFileInfo* new_root_info) -{ - GFile* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 503 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (old_root)); -#line 503 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (new_root)); -#line 503 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (new_root_info)); -#line 504 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->root; -#line 504 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (g_file_equal (_tmp0_, old_root), "this.root.equal(old_root)"); -#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = g_file_get_path (old_root); -#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = _tmp1_; -#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = g_file_get_path (new_root); -#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = _tmp3_; -#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = g_strdup_printf ("root moved: %s -> %s", _tmp2_, _tmp4_); -#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = _tmp5_; -#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp6_); -#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp6_); -#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp4_); -#line 506 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp2_); -#line 507 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_ROOT_MOVED_SIGNAL], 0, old_root, new_root, new_root_info); -#line 1233 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_root_moved (DirectoryMonitor* self, - GFile* old_root, - GFile* new_root, - GFileInfo* new_root_info) -{ -#line 503 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 503 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_root_moved (self, old_root, new_root, new_root_info); -#line 1247 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_discovery_started (DirectoryMonitor* self) -{ -#line 511 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg ("discovery started"); -#line 512 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DISCOVERY_STARTED_SIGNAL], 0); -#line 1258 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_discovery_started (DirectoryMonitor* self) -{ -#line 510 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 510 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_discovery_started (self); -#line 1269 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_internal_notify_file_discovered (DirectoryMonitor* self, - GFile* file, - GFileInfo* info) -{ - DirectoryMonitorFileInfoMap* _tmp0_; -#line 515 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 515 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 516 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->files; -#line 516 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!directory_monitor_file_info_map_update (_tmp0_, file, info)) { -#line 1287 "DirectoryMonitor.c" - gchar* _tmp1_; - gchar* _tmp2_; -#line 517 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = g_file_get_path (file); -#line 517 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = _tmp1_; -#line 517 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_debug ("DirectoryMonitor.vala:517: DirectoryMonitor.internal_notify_file_disco" \ -"vered: %s discovered but not added to file map", _tmp2_); -#line 517 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp2_); -#line 520 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return; -#line 1300 "DirectoryMonitor.c" - } -#line 523 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_file_discovered (self, file, info); -#line 1304 "DirectoryMonitor.c" -} - - -void -directory_monitor_internal_notify_file_discovered (DirectoryMonitor* self, - GFile* file, - GFileInfo* info) -{ -#line 515 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 515 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->internal_notify_file_discovered (self, file, info); -#line 1317 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_file_discovered (DirectoryMonitor* self, - GFile* file, - GFileInfo* info) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 526 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 526 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 527 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = g_file_get_path (file); -#line 527 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _tmp0_; -#line 527 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_strdup_printf ("file discovered: %s", _tmp1_); -#line 527 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp2_; -#line 527 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp3_); -#line 527 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp3_); -#line 527 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp1_); -#line 528 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_FILE_DISCOVERED_SIGNAL], 0, file, info); -#line 1350 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_file_discovered (DirectoryMonitor* self, - GFile* file, - GFileInfo* info) -{ -#line 526 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 526 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_file_discovered (self, file, info); -#line 1363 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_internal_notify_directory_discovered (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info) -{ - gboolean updated = FALSE; - DirectoryMonitorFileInfoMap* _tmp0_; -#line 531 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 531 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 532 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->files; -#line 532 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - updated = directory_monitor_file_info_map_update (_tmp0_, dir, info); -#line 533 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (updated, "updated"); -#line 535 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_directory_discovered (self, dir, info); -#line 1386 "DirectoryMonitor.c" -} - - -void -directory_monitor_internal_notify_directory_discovered (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info) -{ -#line 531 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 531 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->internal_notify_directory_discovered (self, dir, info); -#line 1399 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_directory_discovered (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 538 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 538 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 539 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = g_file_get_path (dir); -#line 539 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _tmp0_; -#line 539 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_strdup_printf ("directory discovered: %s", _tmp1_); -#line 539 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp2_; -#line 539 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp3_); -#line 539 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp3_); -#line 539 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp1_); -#line 540 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_DISCOVERED_SIGNAL], 0, dir, info); -#line 1432 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_directory_discovered (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info) -{ -#line 538 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 538 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_directory_discovered (self, dir, info); -#line 1445 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_discovery_failed (DirectoryMonitor* self, - const gchar* reason) -{ -#line 543 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (reason != NULL); -#line 544 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_warning ("DirectoryMonitor.vala:544: discovery failed: %s", reason); -#line 545 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DISCOVERY_FAILED_SIGNAL], 0, reason); -#line 1459 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_discovery_failed (DirectoryMonitor* self, - const gchar* reason) -{ -#line 543 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 543 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_discovery_failed (self, reason); -#line 1471 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_discovery_completed (DirectoryMonitor* self) -{ -#line 549 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DISCOVERY_COMPLETED_SIGNAL], 0); -#line 1480 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_discovery_completed (DirectoryMonitor* self) -{ -#line 548 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 548 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_discovery_completed (self); -#line 1491 "DirectoryMonitor.c" -} - - -static void -directory_monitor_internal_notify_file_created (DirectoryMonitor* self, - GFile* file, - GFileInfo* info) -{ - GFile* old_file = NULL; - GFileInfo* old_file_info = NULL; - GFile* _tmp0_ = NULL; - GFileInfo* _tmp1_ = NULL; - gboolean _tmp2_; -#line 552 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 552 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 552 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 555 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = directory_monitor_is_file_create_move (self, file, info, &_tmp0_, &_tmp1_); -#line 555 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (old_file); -#line 555 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - old_file = _tmp0_; -#line 555 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (old_file_info); -#line 555 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - old_file_info = _tmp1_; -#line 555 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp2_) { -#line 1523 "DirectoryMonitor.c" - GFile* _tmp3_; -#line 556 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = old_file; -#line 556 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_internal_notify_file_moved (self, _tmp3_, file, info); -#line 1529 "DirectoryMonitor.c" - } else { - gboolean updated = FALSE; - DirectoryMonitorFileInfoMap* _tmp4_; - gboolean _tmp5_; -#line 558 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = self->priv->files; -#line 558 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - updated = directory_monitor_file_info_map_update (_tmp4_, file, info); -#line 559 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = updated; -#line 559 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (_tmp5_, "updated"); -#line 561 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_file_created (self, file, info); -#line 1544 "DirectoryMonitor.c" - } -#line 552 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (old_file_info); -#line 552 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (old_file); -#line 1550 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_file_created (DirectoryMonitor* self, - GFile* file, - GFileInfo* info) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 565 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 565 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 566 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = g_file_get_path (file); -#line 566 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _tmp0_; -#line 566 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_strdup_printf ("file created: %s", _tmp1_); -#line 566 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp2_; -#line 566 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp3_); -#line 566 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp3_); -#line 566 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp1_); -#line 567 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_FILE_CREATED_SIGNAL], 0, file, info); -#line 1583 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_file_created (DirectoryMonitor* self, - GFile* file, - GFileInfo* info) -{ -#line 565 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 565 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_file_created (self, file, info); -#line 1596 "DirectoryMonitor.c" -} - - -static void -directory_monitor_internal_notify_file_moved (DirectoryMonitor* self, - GFile* old_file, - GFile* new_file, - GFileInfo* new_file_info) -{ - DirectoryMonitorFileInfoMap* _tmp0_; - gboolean updated = FALSE; - DirectoryMonitorFileInfoMap* _tmp1_; -#line 570 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 570 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (old_file)); -#line 570 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (new_file)); -#line 570 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (new_file_info)); -#line 573 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->files; -#line 573 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_file_info_map_remove (_tmp0_, old_file, NULL); -#line 575 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = self->priv->files; -#line 575 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - updated = directory_monitor_file_info_map_update (_tmp1_, new_file, new_file_info); -#line 576 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (updated, "updated"); -#line 578 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_file_moved (self, old_file, new_file, new_file_info); -#line 1629 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_file_moved (DirectoryMonitor* self, - GFile* old_file, - GFile* new_file, - GFileInfo* new_file_info) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 581 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (old_file)); -#line 581 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (new_file)); -#line 581 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (new_file_info)); -#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = g_file_get_path (old_file); -#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _tmp0_; -#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_file_get_path (new_file); -#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp2_; -#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = g_strdup_printf ("file moved: %s -> %s", _tmp1_, _tmp3_); -#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = _tmp4_; -#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp5_); -#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp5_); -#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp3_); -#line 582 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp1_); -#line 583 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_FILE_MOVED_SIGNAL], 0, old_file, new_file, new_file_info); -#line 1673 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_file_moved (DirectoryMonitor* self, - GFile* old_file, - GFile* new_file, - GFileInfo* new_file_info) -{ -#line 581 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 581 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_file_moved (self, old_file, new_file, new_file_info); -#line 1687 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_file_altered (DirectoryMonitor* self, - GFile* file) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 586 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 587 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = g_file_get_path (file); -#line 587 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _tmp0_; -#line 587 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_strdup_printf ("file altered: %s", _tmp1_); -#line 587 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp2_; -#line 587 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp3_); -#line 587 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp3_); -#line 587 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp1_); -#line 588 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_FILE_ALTERED_SIGNAL], 0, file); -#line 1717 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_file_altered (DirectoryMonitor* self, - GFile* file) -{ -#line 586 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 586 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_file_altered (self, file); -#line 1729 "DirectoryMonitor.c" -} - - -static void -directory_monitor_internal_notify_file_alteration_completed (DirectoryMonitor* self, - GFile* file, - GFileInfo* info) -{ - gboolean updated = FALSE; - DirectoryMonitorFileInfoMap* _tmp0_; -#line 591 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 591 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 591 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 592 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->files; -#line 592 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - updated = directory_monitor_file_info_map_update (_tmp0_, file, info); -#line 593 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (updated, "updated"); -#line 595 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_file_alteration_completed (self, file, info); -#line 1754 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_file_alteration_completed (DirectoryMonitor* self, - GFile* file, - GFileInfo* info) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 598 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 598 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 599 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = g_file_get_path (file); -#line 599 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _tmp0_; -#line 599 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_strdup_printf ("file alteration completed: %s", _tmp1_); -#line 599 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp2_; -#line 599 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp3_); -#line 599 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp3_); -#line 599 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp1_); -#line 600 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_FILE_ALTERATION_COMPLETED_SIGNAL], 0, file, info); -#line 1787 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_file_alteration_completed (DirectoryMonitor* self, - GFile* file, - GFileInfo* info) -{ -#line 598 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 598 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_file_alteration_completed (self, file, info); -#line 1800 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_file_attributes_altered (DirectoryMonitor* self, - GFile* file) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 603 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 604 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = g_file_get_path (file); -#line 604 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _tmp0_; -#line 604 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_strdup_printf ("file attributes altered: %s", _tmp1_); -#line 604 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp2_; -#line 604 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp3_); -#line 604 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp3_); -#line 604 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp1_); -#line 605 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_FILE_ATTRIBUTES_ALTERED_SIGNAL], 0, file); -#line 1830 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_file_attributes_altered (DirectoryMonitor* self, - GFile* file) -{ -#line 603 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 603 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_file_attributes_altered (self, file); -#line 1842 "DirectoryMonitor.c" -} - - -static void -directory_monitor_internal_notify_file_deleted (DirectoryMonitor* self, - GFile* file) -{ - gboolean removed = FALSE; - DirectoryMonitorFileInfoMap* _tmp0_; -#line 608 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 608 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 609 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->files; -#line 609 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - removed = directory_monitor_file_info_map_remove (_tmp0_, file, NULL); -#line 610 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (removed, "removed"); -#line 612 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_file_deleted (self, file); -#line 1864 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_file_deleted (DirectoryMonitor* self, - GFile* file) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 615 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 616 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = g_file_get_path (file); -#line 616 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _tmp0_; -#line 616 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_strdup_printf ("file deleted: %s", _tmp1_); -#line 616 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp2_; -#line 616 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp3_); -#line 616 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp3_); -#line 616 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp1_); -#line 617 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_FILE_DELETED_SIGNAL], 0, file); -#line 1894 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_file_deleted (DirectoryMonitor* self, - GFile* file) -{ -#line 615 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 615 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_file_deleted (self, file); -#line 1906 "DirectoryMonitor.c" -} - - -static void -directory_monitor_internal_notify_directory_created (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info) -{ - GFile* old_dir = NULL; - GFileInfo* old_dir_info = NULL; - GFile* _tmp0_ = NULL; - GFileInfo* _tmp1_ = NULL; - gboolean _tmp2_; -#line 620 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 620 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 620 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 623 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = directory_monitor_is_file_create_move (self, dir, info, &_tmp0_, &_tmp1_); -#line 623 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (old_dir); -#line 623 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - old_dir = _tmp0_; -#line 623 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (old_dir_info); -#line 623 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - old_dir_info = _tmp1_; -#line 623 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp2_) { -#line 1938 "DirectoryMonitor.c" - DirectoryMonitorFileInfoMap* _tmp3_; - GFile* _tmp4_; - DirectoryMonitorFileInfoMap* _tmp5_; - GFile* _tmp6_; - GFileInfo* _tmp7_; -#line 629 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = self->priv->files; -#line 629 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = old_dir; -#line 629 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = self->priv->parent_moved; -#line 629 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_file_info_map_remove_descendents (_tmp3_, _tmp4_, _tmp5_); -#line 631 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = old_dir; -#line 631 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp7_ = old_dir_info; -#line 631 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_internal_notify_directory_moved (self, _tmp6_, _tmp7_, dir, info); -#line 1958 "DirectoryMonitor.c" - } else { - gboolean updated = FALSE; - DirectoryMonitorFileInfoMap* _tmp8_; - gboolean _tmp9_; -#line 633 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp8_ = self->priv->files; -#line 633 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - updated = directory_monitor_file_info_map_update (_tmp8_, dir, info); -#line 634 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp9_ = updated; -#line 634 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (_tmp9_, "updated"); -#line 636 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_directory_created (self, dir, info); -#line 1973 "DirectoryMonitor.c" - } -#line 620 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (old_dir_info); -#line 620 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (old_dir); -#line 1979 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_directory_created (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 640 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 640 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 641 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = g_file_get_path (dir); -#line 641 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _tmp0_; -#line 641 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_strdup_printf ("directory created: %s", _tmp1_); -#line 641 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp2_; -#line 641 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp3_); -#line 641 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp3_); -#line 641 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp1_); -#line 642 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_CREATED_SIGNAL], 0, dir, info); -#line 2012 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_directory_created (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info) -{ -#line 640 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 640 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_directory_created (self, dir, info); -#line 2025 "DirectoryMonitor.c" -} - - -static void -directory_monitor_internal_notify_directory_moved (DirectoryMonitor* self, - GFile* old_dir, - GFileInfo* old_dir_info, - GFile* new_dir, - GFileInfo* new_dir_info) -{ -#line 645 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 645 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (old_dir)); -#line 645 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (old_dir_info)); -#line 645 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (new_dir)); -#line 645 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (new_dir_info)); -#line 647 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_async_internal_notify_directory_moved (self, old_dir, old_dir_info, new_dir, new_dir_info, NULL, NULL); -#line 2048 "DirectoryMonitor.c" -} - - -static void -directory_monitor_async_internal_notify_directory_moved_data_free (gpointer _data) -{ - DirectoryMonitorAsyncInternalNotifyDirectoryMovedData* _data_; - _data_ = _data; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->old_dir); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->old_dir_info); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->new_dir); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->new_dir_info); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->self); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_slice_free (DirectoryMonitorAsyncInternalNotifyDirectoryMovedData, _data_); -#line 2069 "DirectoryMonitor.c" -} - - -static void -directory_monitor_async_internal_notify_directory_moved_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data) -{ - DirectoryMonitorAsyncInternalNotifyDirectoryMovedData* _task_data_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _task_data_ = g_task_get_task_data (G_TASK (res)); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_task_data_->_callback_ != NULL) { -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _task_data_->_callback_ (source_object, res, user_data); -#line 2085 "DirectoryMonitor.c" - } -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _task_data_->_task_complete_ = TRUE; -#line 2089 "DirectoryMonitor.c" -} - - -static void -directory_monitor_async_internal_notify_directory_moved (DirectoryMonitor* self, - GFile* old_dir, - GFileInfo* old_dir_info, - GFile* new_dir, - GFileInfo* new_dir_info, - GAsyncReadyCallback _callback_, - gpointer _user_data_) -{ - DirectoryMonitorAsyncInternalNotifyDirectoryMovedData* _data_; - DirectoryMonitor* _tmp0_; - GFile* _tmp1_; - GFileInfo* _tmp2_; - GFile* _tmp3_; - GFileInfo* _tmp4_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_ = g_slice_new0 (DirectoryMonitorAsyncInternalNotifyDirectoryMovedData); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_callback_ = _callback_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_async_result = g_task_new (G_OBJECT (self), NULL, directory_monitor_async_internal_notify_directory_moved_async_ready_wrapper, _user_data_); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_callback_ == NULL) { -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_task_complete_ = TRUE; -#line 2118 "DirectoryMonitor.c" - } -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_task_set_task_data (_data_->_async_result, _data_, directory_monitor_async_internal_notify_directory_moved_data_free); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = _g_object_ref0 (self); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->self = _tmp0_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _g_object_ref0 (old_dir); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->old_dir); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->old_dir = _tmp1_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = _g_object_ref0 (old_dir_info); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->old_dir_info); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->old_dir_info = _tmp2_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _g_object_ref0 (new_dir); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->new_dir); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->new_dir = _tmp3_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = _g_object_ref0 (new_dir_info); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->new_dir_info); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->new_dir_info = _tmp4_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_async_internal_notify_directory_moved_co (_data_); -#line 2152 "DirectoryMonitor.c" -} - - -static void -directory_monitor_async_internal_notify_directory_moved_finish (DirectoryMonitor* self, - GAsyncResult* _res_) -{ - DirectoryMonitorAsyncInternalNotifyDirectoryMovedData* _data_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_ = g_task_propagate_pointer (G_TASK (_res_), NULL); -#line 2163 "DirectoryMonitor.c" -} - - -static gboolean -_file_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gboolean result; - result = file_equal ((GFile*) a, (GFile*) b); -#line 652 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 2176 "DirectoryMonitor.c" -} - - -static void -directory_monitor_async_internal_notify_directory_moved_ready (GObject* source_object, - GAsyncResult* _res_, - gpointer _user_data_) -{ - DirectoryMonitorAsyncInternalNotifyDirectoryMovedData* _data_; -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_ = _user_data_; -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_source_object_ = source_object; -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_res_ = _res_; -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_task_complete_ = TRUE; -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_async_internal_notify_directory_moved_co (_data_); -#line 2196 "DirectoryMonitor.c" -} - - -static gboolean -_directory_monitor_async_internal_notify_directory_moved_co_gsource_func (gpointer self) -{ - gboolean result; - result = directory_monitor_async_internal_notify_directory_moved_co (self); -#line 683 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 2207 "DirectoryMonitor.c" -} - - -static gboolean -directory_monitor_async_internal_notify_directory_moved_co (DirectoryMonitorAsyncInternalNotifyDirectoryMovedData* _data_) -{ -#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - switch (_data_->_state_) { -#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case 0: -#line 2218 "DirectoryMonitor.c" - goto _state_0; -#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case 1: -#line 2222 "DirectoryMonitor.c" - goto _state_1; -#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case 2: -#line 2226 "DirectoryMonitor.c" - goto _state_2; - default: -#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_assert_not_reached (); -#line 2231 "DirectoryMonitor.c" - } - _state_0: -#line 652 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp0_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); -#line 652 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->file_children = _data_->_tmp0_; -#line 653 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp1_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); -#line 653 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->dir_children = _data_->_tmp1_; -#line 654 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp2_ = _data_->self->priv->files; -#line 654 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp3_ = _data_->file_children; -#line 654 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp4_ = _data_->dir_children; -#line 654 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->count = directory_monitor_file_info_map_get_children (_data_->_tmp2_, _data_->old_dir, G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp3_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 655 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp5_ = _data_->count; -#line 655 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_tmp5_ > 0) { -#line 2254 "DirectoryMonitor.c" - { -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp6_ = _data_->dir_children; -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp7_ = _g_object_ref0 (_data_->_tmp6_); -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_dir_child_list = _data_->_tmp7_; -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp8_ = _data_->_dir_child_list; -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp9_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp10_ = _data_->_tmp9_; -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_dir_child_size = _data_->_tmp10_; -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_dir_child_index = -1; -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (TRUE) { -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp11_ = _data_->_dir_child_index; -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_dir_child_index = _data_->_tmp11_ + 1; -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp12_ = _data_->_dir_child_index; -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp13_ = _data_->_dir_child_size; -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!(_data_->_tmp12_ < _data_->_tmp13_)) { -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 2286 "DirectoryMonitor.c" - } -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp14_ = _data_->_dir_child_list; -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp15_ = _data_->_dir_child_index; -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp16_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp14_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _data_->_tmp15_); -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->dir_child = (GFile*) _data_->_tmp16_; -#line 660 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp17_ = _data_->self->priv->files; -#line 660 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp18_ = _data_->dir_child; -#line 660 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp19_ = directory_monitor_file_info_map_get_info (_data_->_tmp17_, _data_->_tmp18_); -#line 660 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->dir_info = _data_->_tmp19_; -#line 661 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp20_ = _data_->dir_info; -#line 661 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_tmp20_ == NULL) { -#line 662 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp21_ = _data_->dir_child; -#line 662 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp22_ = g_file_get_path (_data_->_tmp21_); -#line 662 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp23_ = _data_->_tmp22_; -#line 662 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_warning ("DirectoryMonitor.vala:662: Unable to retrieve directory-moved info for" \ -" %s", _data_->_tmp23_); -#line 662 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_data_->_tmp23_); -#line 664 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->dir_info); -#line 664 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->dir_child); -#line 664 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - continue; -#line 2324 "DirectoryMonitor.c" - } -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp24_ = _data_->dir_child; -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp25_ = _data_->dir_info; -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp26_ = _data_->dir_child; -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp27_ = g_file_get_basename (_data_->_tmp26_); -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp28_ = _data_->_tmp27_; -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp29_ = g_file_get_child (_data_->new_dir, _data_->_tmp28_); -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp30_ = _data_->_tmp29_; -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp31_ = _data_->dir_info; -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_state_ = 1; -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_async_internal_notify_directory_moved (_data_->self, _data_->_tmp24_, _data_->_tmp25_, _data_->_tmp30_, _data_->_tmp31_, directory_monitor_async_internal_notify_directory_moved_ready, _data_); -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 2348 "DirectoryMonitor.c" - _state_1: -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_async_internal_notify_directory_moved_finish (_data_->self, _data_->_res_); -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_tmp30_); -#line 667 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_data_->_tmp28_); -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->dir_info); -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->dir_child); -#line 2360 "DirectoryMonitor.c" - } -#line 659 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_dir_child_list); -#line 2364 "DirectoryMonitor.c" - } - { -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp32_ = _data_->file_children; -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp33_ = _g_object_ref0 (_data_->_tmp32_); -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_file_child_list = _data_->_tmp33_; -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp34_ = _data_->_file_child_list; -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp35_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp34_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp36_ = _data_->_tmp35_; -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_file_child_size = _data_->_tmp36_; -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_file_child_index = -1; -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (TRUE) { -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp37_ = _data_->_file_child_index; -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_file_child_index = _data_->_tmp37_ + 1; -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp38_ = _data_->_file_child_index; -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp39_ = _data_->_file_child_size; -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!(_data_->_tmp38_ < _data_->_tmp39_)) { -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 2397 "DirectoryMonitor.c" - } -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp40_ = _data_->_file_child_list; -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp41_ = _data_->_file_child_index; -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp42_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp40_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _data_->_tmp41_); -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->file_child = (GFile*) _data_->_tmp42_; -#line 673 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp43_ = _data_->self->priv->files; -#line 673 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp44_ = _data_->file_child; -#line 673 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp45_ = directory_monitor_file_info_map_get_info (_data_->_tmp43_, _data_->_tmp44_); -#line 673 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->file_info = _data_->_tmp45_; -#line 674 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp46_ = _data_->file_info; -#line 674 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_tmp46_ == NULL) { -#line 675 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp47_ = _data_->file_child; -#line 675 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp48_ = g_file_get_path (_data_->_tmp47_); -#line 675 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp49_ = _data_->_tmp48_; -#line 675 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_warning ("DirectoryMonitor.vala:675: Unable to retrieve directory-moved info for" \ -" %s", _data_->_tmp49_); -#line 675 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_data_->_tmp49_); -#line 677 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->file_info); -#line 677 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->file_child); -#line 677 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - continue; -#line 2435 "DirectoryMonitor.c" - } -#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp50_ = _data_->file_child; -#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp51_ = _data_->file_child; -#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp52_ = g_file_get_basename (_data_->_tmp51_); -#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp53_ = _data_->_tmp52_; -#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp54_ = g_file_get_child (_data_->new_dir, _data_->_tmp53_); -#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp55_ = _data_->_tmp54_; -#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp56_ = _data_->file_info; -#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_internal_notify_file_moved (_data_->self, _data_->_tmp50_, _data_->_tmp55_, _data_->_tmp56_); -#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_tmp55_); -#line 680 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_data_->_tmp53_); -#line 683 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_idle_add_full (DIRECTORY_MONITOR_DEFAULT_PRIORITY, _directory_monitor_async_internal_notify_directory_moved_co_gsource_func, _data_, NULL); -#line 684 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_state_ = 2; -#line 684 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 2463 "DirectoryMonitor.c" - _state_2: - ; -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->file_info); -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->file_child); -#line 2470 "DirectoryMonitor.c" - } -#line 672 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_file_child_list); -#line 2474 "DirectoryMonitor.c" - } - } -#line 690 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp57_ = _data_->self->priv->files; -#line 690 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_file_info_map_remove (_data_->_tmp57_, _data_->old_dir, NULL); -#line 692 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp58_ = _data_->self->priv->files; -#line 692 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->updated = directory_monitor_file_info_map_update (_data_->_tmp58_, _data_->new_dir, _data_->new_dir_info); -#line 693 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (_data_->updated, "updated"); -#line 696 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_remove_monitor (_data_->self, _data_->old_dir, _data_->old_dir_info); -#line 697 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_add_monitor (_data_->self, _data_->new_dir, _data_->new_dir_info); -#line 699 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_directory_moved (_data_->self, _data_->old_dir, _data_->new_dir, _data_->new_dir_info); -#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->dir_children); -#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->file_children); -#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_task_return_pointer (_data_->_async_result, _data_, NULL); -#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_state_ != 0) { -#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (_data_->_task_complete_ != TRUE) { -#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); -#line 2505 "DirectoryMonitor.c" - } - } -#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_object_unref (_data_->_async_result); -#line 650 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 2512 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_directory_moved (DirectoryMonitor* self, - GFile* old_dir, - GFile* new_dir, - GFileInfo* new_dir_info) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - GFile* _tmp6_; -#line 702 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (old_dir)); -#line 702 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (new_dir)); -#line 702 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (new_dir_info)); -#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = g_file_get_path (old_dir); -#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _tmp0_; -#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_file_get_path (new_dir); -#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp2_; -#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = g_strdup_printf ("directory moved: %s -> %s", _tmp1_, _tmp3_); -#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = _tmp4_; -#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp5_); -#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp5_); -#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp3_); -#line 703 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp1_); -#line 704 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_MOVED_SIGNAL], 0, old_dir, new_dir, new_dir_info); -#line 706 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = self->priv->root; -#line 706 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (g_file_equal (old_dir, _tmp6_)) { -#line 707 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_internal_notify_root_moved (self, old_dir, new_dir, new_dir_info); -#line 2563 "DirectoryMonitor.c" - } -} - - -void -directory_monitor_notify_directory_moved (DirectoryMonitor* self, - GFile* old_dir, - GFile* new_dir, - GFileInfo* new_dir_info) -{ -#line 702 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 702 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_directory_moved (self, old_dir, new_dir, new_dir_info); -#line 2578 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_directory_altered (DirectoryMonitor* self, - GFile* dir) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 710 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 711 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = g_file_get_path (dir); -#line 711 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _tmp0_; -#line 711 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_strdup_printf ("directory altered: %s", _tmp1_); -#line 711 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp2_; -#line 711 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp3_); -#line 711 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp3_); -#line 711 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp1_); -#line 712 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_ALTERED_SIGNAL], 0, dir); -#line 2608 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_directory_altered (DirectoryMonitor* self, - GFile* dir) -{ -#line 710 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 710 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_directory_altered (self, dir); -#line 2620 "DirectoryMonitor.c" -} - - -static void -directory_monitor_internal_notify_directory_alteration_completed (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info) -{ - gboolean updated = FALSE; - DirectoryMonitorFileInfoMap* _tmp0_; -#line 715 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 715 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 715 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 716 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->files; -#line 716 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - updated = directory_monitor_file_info_map_update (_tmp0_, dir, info); -#line 717 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (updated, "updated"); -#line 719 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_directory_alteration_completed (self, dir, info); -#line 2645 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_directory_alteration_completed (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 722 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 722 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 723 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = g_file_get_path (dir); -#line 723 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _tmp0_; -#line 723 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_strdup_printf ("directory alteration completed: %s", _tmp1_); -#line 723 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp2_; -#line 723 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp3_); -#line 723 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp3_); -#line 723 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp1_); -#line 724 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_ALTERATION_COMPLETED_SIGNAL], 0, dir, info); -#line 2678 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_directory_alteration_completed (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info) -{ -#line 722 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 722 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_directory_alteration_completed (self, dir, info); -#line 2691 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_directory_attributes_altered (DirectoryMonitor* self, - GFile* dir) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 727 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 728 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = g_file_get_path (dir); -#line 728 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _tmp0_; -#line 728 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_strdup_printf ("directory attributes altered: %s", _tmp1_); -#line 728 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp2_; -#line 728 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp3_); -#line 728 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp3_); -#line 728 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp1_); -#line 729 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_ATTRIBUTES_ALTERED_SIGNAL], 0, dir); -#line 2721 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_directory_attributes_altered (DirectoryMonitor* self, - GFile* dir) -{ -#line 727 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 727 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_directory_attributes_altered (self, dir); -#line 2733 "DirectoryMonitor.c" -} - - -static void -directory_monitor_internal_notify_directory_deleted (DirectoryMonitor* self, - GFile* dir) -{ - GFileInfo* info = NULL; - DirectoryMonitorFileInfoMap* _tmp0_; - GFileInfo* _tmp1_; -#line 732 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 732 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 733 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->files; -#line 733 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = directory_monitor_file_info_map_get_info (_tmp0_, dir); -#line 733 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - info = _tmp1_; -#line 734 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (info != NULL, "info != null"); -#line 737 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_remove_monitor (self, dir, info); -#line 739 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_async_notify_directory_deleted (self, dir, FALSE, NULL, NULL); -#line 732 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (info); -#line 2762 "DirectoryMonitor.c" -} - - -static void -directory_monitor_async_notify_directory_deleted_data_free (gpointer _data) -{ - DirectoryMonitorAsyncNotifyDirectoryDeletedData* _data_; - _data_ = _data; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->dir); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->self); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_slice_free (DirectoryMonitorAsyncNotifyDirectoryDeletedData, _data_); -#line 2777 "DirectoryMonitor.c" -} - - -static void -directory_monitor_async_notify_directory_deleted_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data) -{ - DirectoryMonitorAsyncNotifyDirectoryDeletedData* _task_data_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _task_data_ = g_task_get_task_data (G_TASK (res)); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_task_data_->_callback_ != NULL) { -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _task_data_->_callback_ (source_object, res, user_data); -#line 2793 "DirectoryMonitor.c" - } -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _task_data_->_task_complete_ = TRUE; -#line 2797 "DirectoryMonitor.c" -} - - -static void -directory_monitor_async_notify_directory_deleted (DirectoryMonitor* self, - GFile* dir, - gboolean already_removed, - GAsyncReadyCallback _callback_, - gpointer _user_data_) -{ - DirectoryMonitorAsyncNotifyDirectoryDeletedData* _data_; - DirectoryMonitor* _tmp0_; - GFile* _tmp1_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_ = g_slice_new0 (DirectoryMonitorAsyncNotifyDirectoryDeletedData); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_callback_ = _callback_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_async_result = g_task_new (G_OBJECT (self), NULL, directory_monitor_async_notify_directory_deleted_async_ready_wrapper, _user_data_); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_callback_ == NULL) { -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_task_complete_ = TRUE; -#line 2821 "DirectoryMonitor.c" - } -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_task_set_task_data (_data_->_async_result, _data_, directory_monitor_async_notify_directory_deleted_data_free); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = _g_object_ref0 (self); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->self = _tmp0_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _g_object_ref0 (dir); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->dir); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->dir = _tmp1_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->already_removed = already_removed; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_async_notify_directory_deleted_co (_data_); -#line 2839 "DirectoryMonitor.c" -} - - -static void -directory_monitor_async_notify_directory_deleted_finish (DirectoryMonitor* self, - GAsyncResult* _res_) -{ - DirectoryMonitorAsyncNotifyDirectoryDeletedData* _data_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_ = g_task_propagate_pointer (G_TASK (_res_), NULL); -#line 2850 "DirectoryMonitor.c" -} - - -static void -directory_monitor_async_notify_directory_deleted_ready (GObject* source_object, - GAsyncResult* _res_, - gpointer _user_data_) -{ - DirectoryMonitorAsyncNotifyDirectoryDeletedData* _data_; -#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_ = _user_data_; -#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_source_object_ = source_object; -#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_res_ = _res_; -#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_task_complete_ = TRUE; -#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_async_notify_directory_deleted_co (_data_); -#line 2870 "DirectoryMonitor.c" -} - - -static gboolean -_directory_monitor_async_notify_directory_deleted_co_gsource_func (gpointer self) -{ - gboolean result; - result = directory_monitor_async_notify_directory_deleted_co (self); -#line 771 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 2881 "DirectoryMonitor.c" -} - - -static gboolean -directory_monitor_async_notify_directory_deleted_co (DirectoryMonitorAsyncNotifyDirectoryDeletedData* _data_) -{ -#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - switch (_data_->_state_) { -#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case 0: -#line 2892 "DirectoryMonitor.c" - goto _state_0; -#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case 1: -#line 2896 "DirectoryMonitor.c" - goto _state_1; -#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case 2: -#line 2900 "DirectoryMonitor.c" - goto _state_2; - default: -#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_assert_not_reached (); -#line 2905 "DirectoryMonitor.c" - } - _state_0: -#line 750 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp0_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); -#line 750 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->file_children = _data_->_tmp0_; -#line 751 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp1_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); -#line 751 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->dir_children = _data_->_tmp1_; -#line 752 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp2_ = _data_->self->priv->files; -#line 752 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp3_ = _data_->file_children; -#line 752 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp4_ = _data_->dir_children; -#line 752 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->count = directory_monitor_file_info_map_get_children (_data_->_tmp2_, _data_->dir, G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp3_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 753 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp5_ = _data_->count; -#line 753 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_tmp5_ > 0) { -#line 2928 "DirectoryMonitor.c" - { -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp6_ = _data_->dir_children; -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp7_ = _g_object_ref0 (_data_->_tmp6_); -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_dir_child_list = _data_->_tmp7_; -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp8_ = _data_->_dir_child_list; -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp9_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp10_ = _data_->_tmp9_; -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_dir_child_size = _data_->_tmp10_; -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_dir_child_index = -1; -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (TRUE) { -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp11_ = _data_->_dir_child_index; -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_dir_child_index = _data_->_tmp11_ + 1; -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp12_ = _data_->_dir_child_index; -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp13_ = _data_->_dir_child_size; -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!(_data_->_tmp12_ < _data_->_tmp13_)) { -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 2960 "DirectoryMonitor.c" - } -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp14_ = _data_->_dir_child_list; -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp15_ = _data_->_dir_child_index; -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp16_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp14_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _data_->_tmp15_); -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->dir_child = (GFile*) _data_->_tmp16_; -#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp17_ = _data_->dir_child; -#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_state_ = 1; -#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_async_notify_directory_deleted (_data_->self, _data_->_tmp17_, FALSE, directory_monitor_async_notify_directory_deleted_ready, _data_); -#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 2978 "DirectoryMonitor.c" - _state_1: -#line 762 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_async_notify_directory_deleted_finish (_data_->self, _data_->_res_); -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->dir_child); -#line 2984 "DirectoryMonitor.c" - } -#line 761 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_dir_child_list); -#line 2988 "DirectoryMonitor.c" - } - { -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp18_ = _data_->file_children; -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp19_ = _g_object_ref0 (_data_->_tmp18_); -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_file_child_list = _data_->_tmp19_; -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp20_ = _data_->_file_child_list; -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp21_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp20_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp22_ = _data_->_tmp21_; -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_file_child_size = _data_->_tmp22_; -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_file_child_index = -1; -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (TRUE) { -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp23_ = _data_->_file_child_index; -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_file_child_index = _data_->_tmp23_ + 1; -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp24_ = _data_->_file_child_index; -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp25_ = _data_->_file_child_size; -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!(_data_->_tmp24_ < _data_->_tmp25_)) { -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 3021 "DirectoryMonitor.c" - } -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp26_ = _data_->_file_child_list; -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp27_ = _data_->_file_child_index; -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp28_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp26_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _data_->_tmp27_); -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->file_child = (GFile*) _data_->_tmp28_; -#line 767 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp29_ = _data_->self->priv->files; -#line 767 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp30_ = _data_->file_child; -#line 767 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_file_info_map_remove (_data_->_tmp29_, _data_->_tmp30_, NULL); -#line 769 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp31_ = _data_->file_child; -#line 769 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_file_deleted (_data_->self, _data_->_tmp31_); -#line 771 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_idle_add_full (DIRECTORY_MONITOR_DEFAULT_PRIORITY, _directory_monitor_async_notify_directory_deleted_co_gsource_func, _data_, NULL); -#line 772 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_state_ = 2; -#line 772 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 3047 "DirectoryMonitor.c" - _state_2: - ; -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->file_child); -#line 3052 "DirectoryMonitor.c" - } -#line 766 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_file_child_list); -#line 3056 "DirectoryMonitor.c" - } - } -#line 776 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!_data_->already_removed) { -#line 777 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp32_ = _data_->self->priv->files; -#line 777 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_file_info_map_remove (_data_->_tmp32_, _data_->dir, NULL); -#line 3065 "DirectoryMonitor.c" - } -#line 779 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_directory_deleted (_data_->self, _data_->dir); -#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->dir_children); -#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->file_children); -#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_task_return_pointer (_data_->_async_result, _data_, NULL); -#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_state_ != 0) { -#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (_data_->_task_complete_ != TRUE) { -#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); -#line 3081 "DirectoryMonitor.c" - } - } -#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_object_unref (_data_->_async_result); -#line 742 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 3088 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_directory_deleted (DirectoryMonitor* self, - GFile* dir) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GFile* _tmp4_; -#line 782 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 783 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = g_file_get_path (dir); -#line 783 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _tmp0_; -#line 783 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_strdup_printf ("directory deleted: %s", _tmp1_); -#line 783 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp2_; -#line 783 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp3_); -#line 783 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp3_); -#line 783 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp1_); -#line 784 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_DELETED_SIGNAL], 0, dir); -#line 786 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = self->priv->root; -#line 786 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (g_file_equal (dir, _tmp4_)) { -#line 787 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_root_deleted (self, dir); -#line 3125 "DirectoryMonitor.c" - } -} - - -void -directory_monitor_notify_directory_deleted (DirectoryMonitor* self, - GFile* dir) -{ -#line 782 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 782 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_directory_deleted (self, dir); -#line 3138 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_notify_closed (DirectoryMonitor* self) -{ - GFile* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 791 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->root; -#line 791 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = g_file_get_path (_tmp0_); -#line 791 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = _tmp1_; -#line 791 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = g_strdup_printf ("monitoring of %s closed", _tmp2_); -#line 791 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = _tmp3_; -#line 791 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp4_); -#line 791 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp4_); -#line 791 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp2_); -#line 792 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_emit (self, directory_monitor_signals[DIRECTORY_MONITOR_CLOSED_SIGNAL], 0); -#line 3168 "DirectoryMonitor.c" -} - - -void -directory_monitor_notify_closed (DirectoryMonitor* self) -{ -#line 790 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 790 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->notify_closed (self); -#line 3179 "DirectoryMonitor.c" -} - - -GFile* -directory_monitor_get_root (DirectoryMonitor* self) -{ - GFile* result = NULL; - GFile* _tmp0_; - GFile* _tmp1_; -#line 795 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), NULL); -#line 796 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->root; -#line 796 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 796 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = _tmp1_; -#line 796 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 3199 "DirectoryMonitor.c" -} - - -gboolean -directory_monitor_is_in_root (DirectoryMonitor* self, - GFile* file) -{ - gboolean result = FALSE; - GFile* _tmp0_; -#line 799 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), FALSE); -#line 799 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 800 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->root; -#line 800 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = g_file_has_prefix (file, _tmp0_); -#line 800 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 3219 "DirectoryMonitor.c" -} - - -gboolean -directory_monitor_has_started (DirectoryMonitor* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 803 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), FALSE); -#line 804 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->started; -#line 804 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = _tmp0_; -#line 804 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 3236 "DirectoryMonitor.c" -} - - -void -directory_monitor_start_discovery (DirectoryMonitor* self) -{ - gboolean _tmp0_; - GFile* _tmp1_; -#line 807 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 808 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->started; -#line 808 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (!_tmp0_, "!started"); -#line 810 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->has_discovery_started = TRUE; -#line 811 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->started = TRUE; -#line 813 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_discovery_started (self); -#line 816 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->outstanding_exploration_dirs = 1; -#line 817 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = self->priv->root; -#line 817 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_explore_async (self, _tmp1_, NULL, TRUE, NULL, NULL); -#line 3263 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_close (DirectoryMonitor* self) -{ - GCancellable* _tmp0_; - GeeHashMap* _tmp11_; -#line 824 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->cancellable; -#line 824 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_cancellable_cancel (_tmp0_); -#line 3276 "DirectoryMonitor.c" - { - GeeIterator* _monitor_it = NULL; - GeeHashMap* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeCollection* _tmp4_; - GeeIterator* _tmp5_; - GeeIterator* _tmp6_; -#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = self->priv->monitors; -#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp2_; -#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = _tmp3_; -#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = _tmp5_; -#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_tmp4_); -#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _monitor_it = _tmp6_; -#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (TRUE) { -#line 3303 "DirectoryMonitor.c" - GeeIterator* _tmp7_; - GFileMonitor* monitor = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; - GFileMonitor* _tmp10_; -#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp7_ = _monitor_it; -#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!gee_iterator_next (_tmp7_)) { -#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 3315 "DirectoryMonitor.c" - } -#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp8_ = _monitor_it; -#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp9_ = gee_iterator_get (_tmp8_); -#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - monitor = (GFileMonitor*) _tmp9_; -#line 828 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp10_ = monitor; -#line 828 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_cancel_monitor (self, _tmp10_); -#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (monitor); -#line 3329 "DirectoryMonitor.c" - } -#line 827 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_monitor_it); -#line 3333 "DirectoryMonitor.c" - } -#line 830 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp11_ = self->priv->monitors; -#line 830 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - gee_abstract_map_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 832 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_closed (self); -#line 3341 "DirectoryMonitor.c" -} - - -void -directory_monitor_close (DirectoryMonitor* self) -{ -#line 822 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 822 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_GET_CLASS (self)->close (self); -#line 3352 "DirectoryMonitor.c" -} - - -static DirectoryMonitorFType -directory_monitor_get_ftype (GFileInfo* info) -{ - DirectoryMonitorFType result = 0; - GFileType file_type = 0; - GFileType _tmp0_; -#line 835 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), 0); -#line 836 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - file_type = g_file_info_get_file_type (info); -#line 837 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = file_type; -#line 837 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - switch (_tmp0_) { -#line 837 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case G_FILE_TYPE_REGULAR: -#line 3372 "DirectoryMonitor.c" - { -#line 839 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = DIRECTORY_MONITOR_FTYPE_FILE; -#line 839 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 3378 "DirectoryMonitor.c" - } -#line 837 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case G_FILE_TYPE_DIRECTORY: -#line 3382 "DirectoryMonitor.c" - { -#line 842 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = DIRECTORY_MONITOR_FTYPE_DIRECTORY; -#line 842 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 3388 "DirectoryMonitor.c" - } - default: - { - GFileType _tmp1_; - GEnumValue* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 845 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = file_type; -#line 845 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_enum_get_value (g_type_class_ref (g_file_type_get_type ()), _tmp1_); -#line 845 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = g_strdup_printf ("query_ftype: Unknown file type %s", (_tmp2_ != NULL) ? _tmp2_->value_name : NULL); -#line 845 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = _tmp3_; -#line 845 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp4_); -#line 845 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp4_); -#line 846 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = DIRECTORY_MONITOR_FTYPE_UNSUPPORTED; -#line 846 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 3412 "DirectoryMonitor.c" - } - } -} - - -static void -directory_monitor_explore_async_data_free (gpointer _data) -{ - DirectoryMonitorExploreAsyncData* _data_; - _data_ = _data; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->dir); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->dir_info); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->self); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_slice_free (DirectoryMonitorExploreAsyncData, _data_); -#line 3431 "DirectoryMonitor.c" -} - - -static void -directory_monitor_explore_async_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data) -{ - DirectoryMonitorExploreAsyncData* _task_data_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _task_data_ = g_task_get_task_data (G_TASK (res)); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_task_data_->_callback_ != NULL) { -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _task_data_->_callback_ (source_object, res, user_data); -#line 3447 "DirectoryMonitor.c" - } -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _task_data_->_task_complete_ = TRUE; -#line 3451 "DirectoryMonitor.c" -} - - -static void -directory_monitor_explore_async (DirectoryMonitor* self, - GFile* dir, - GFileInfo* dir_info, - gboolean in_discovery, - GAsyncReadyCallback _callback_, - gpointer _user_data_) -{ - DirectoryMonitorExploreAsyncData* _data_; - DirectoryMonitor* _tmp0_; - GFile* _tmp1_; - GFileInfo* _tmp2_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_ = g_slice_new0 (DirectoryMonitorExploreAsyncData); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_callback_ = _callback_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_async_result = g_task_new (G_OBJECT (self), NULL, directory_monitor_explore_async_async_ready_wrapper, _user_data_); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_callback_ == NULL) { -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_task_complete_ = TRUE; -#line 3477 "DirectoryMonitor.c" - } -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_task_set_task_data (_data_->_async_result, _data_, directory_monitor_explore_async_data_free); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = _g_object_ref0 (self); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->self = _tmp0_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _g_object_ref0 (dir); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->dir); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->dir = _tmp1_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = _g_object_ref0 (dir_info); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->dir_info); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->dir_info = _tmp2_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->in_discovery = in_discovery; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_explore_async_co (_data_); -#line 3501 "DirectoryMonitor.c" -} - - -static void -directory_monitor_explore_finish (DirectoryMonitor* self, - GAsyncResult* _res_) -{ - DirectoryMonitorExploreAsyncData* _data_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_ = g_task_propagate_pointer (G_TASK (_res_), NULL); -#line 3512 "DirectoryMonitor.c" -} - - -static void -directory_monitor_explore_async_ready (GObject* source_object, - GAsyncResult* _res_, - gpointer _user_data_) -{ - DirectoryMonitorExploreAsyncData* _data_; -#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_ = _user_data_; -#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_source_object_ = source_object; -#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_res_ = _res_; -#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_task_complete_ = TRUE; -#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_explore_async_co (_data_); -#line 3532 "DirectoryMonitor.c" -} - - -static void -_g_object_unref0_ (gpointer var) -{ -#line 913 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - (var == NULL) ? NULL : (var = (g_object_unref (var), NULL)); -#line 3541 "DirectoryMonitor.c" -} - - -static inline void -_g_list_free__g_object_unref0_ (GList* self) -{ -#line 913 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_list_free_full (self, (GDestroyNotify) _g_object_unref0_); -#line 3550 "DirectoryMonitor.c" -} - - -static guint -_file_hash_gee_hash_data_func (gconstpointer v, - gpointer self) -{ - guint result; - result = file_hash ((GFile*) v); -#line 935 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 3562 "DirectoryMonitor.c" -} - - -static gboolean -directory_monitor_explore_async_co (DirectoryMonitorExploreAsyncData* _data_) -{ -#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - switch (_data_->_state_) { -#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case 0: -#line 3573 "DirectoryMonitor.c" - goto _state_0; -#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case 1: -#line 3577 "DirectoryMonitor.c" - goto _state_1; -#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case 2: -#line 3581 "DirectoryMonitor.c" - goto _state_2; -#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case 3: -#line 3585 "DirectoryMonitor.c" - goto _state_3; -#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case 4: -#line 3589 "DirectoryMonitor.c" - goto _state_4; -#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case 5: -#line 3593 "DirectoryMonitor.c" - goto _state_5; - default: -#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_assert_not_reached (); -#line 3598 "DirectoryMonitor.c" - } - _state_0: -#line 851 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp0_ = _data_->self->priv->files; -#line 851 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (directory_monitor_file_info_map_contains (_data_->_tmp0_, _data_->dir, _data_->dir_info)) { -#line 852 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp1_ = g_file_get_path (_data_->dir); -#line 852 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp2_ = _data_->_tmp1_; -#line 852 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_warning ("DirectoryMonitor.vala:852: Directory loop detected at %s, not explorin" \ -"g", _data_->_tmp2_); -#line 852 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_data_->_tmp2_); -#line 854 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_explore_directory_completed (_data_->self, _data_->in_discovery); -#line 856 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_task_return_pointer (_data_->_async_result, _data_, NULL); -#line 856 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_state_ != 0) { -#line 856 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (_data_->_task_complete_ != TRUE) { -#line 856 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); -#line 3623 "DirectoryMonitor.c" - } - } -#line 856 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_object_unref (_data_->_async_result); -#line 856 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 3630 "DirectoryMonitor.c" - } -#line 860 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp3_ = _g_object_ref0 (_data_->dir_info); -#line 860 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->local_dir_info = _data_->_tmp3_; -#line 861 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp4_ = _data_->local_dir_info; -#line 861 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_tmp4_ == NULL) { -#line 3640 "DirectoryMonitor.c" - { -#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp6_ = _data_->self->priv->cancellable; -#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_state_ = 1; -#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_file_query_info_async (_data_->dir, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, DIRECTORY_MONITOR_DIR_INFO_FLAGS, DIRECTORY_MONITOR_DEFAULT_PRIORITY, _data_->_tmp6_, directory_monitor_explore_async_ready, _data_); -#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 3650 "DirectoryMonitor.c" - _state_1: -#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp7_ = g_file_query_info_finish (_data_->dir, _data_->_res_, &_data_->_inner_error_); -#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp5_ = _data_->_tmp7_; -#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 3658 "DirectoryMonitor.c" - goto __catch490_g_error; - } -#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp8_ = _data_->_tmp5_; -#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp5_ = NULL; -#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->local_dir_info); -#line 863 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->local_dir_info = _data_->_tmp8_; -#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_tmp5_); -#line 3671 "DirectoryMonitor.c" - } - goto __finally490; - __catch490_g_error: - { -#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->err = _data_->_inner_error_; -#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_inner_error_ = NULL; -#line 866 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp9_ = g_file_get_path (_data_->dir); -#line 866 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp10_ = _data_->_tmp9_; -#line 866 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp11_ = _data_->err; -#line 866 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp12_ = _data_->_tmp11_->message; -#line 866 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_warning ("DirectoryMonitor.vala:866: Unable to retrieve info on %s: %s", _data_->_tmp10_, _data_->_tmp12_); -#line 866 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_data_->_tmp10_); -#line 868 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_explore_directory_completed (_data_->self, _data_->in_discovery); -#line 870 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_error_free0 (_data_->err); -#line 870 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->local_dir_info); -#line 870 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_task_return_pointer (_data_->_async_result, _data_, NULL); -#line 870 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_state_ != 0) { -#line 870 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (_data_->_task_complete_ != TRUE) { -#line 870 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); -#line 3706 "DirectoryMonitor.c" - } - } -#line 870 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_object_unref (_data_->_async_result); -#line 870 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 3713 "DirectoryMonitor.c" - } - __finally490: -#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->local_dir_info); -#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); -#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_clear_error (&_data_->_inner_error_); -#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_object_unref (_data_->_async_result); -#line 862 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 3728 "DirectoryMonitor.c" - } - } -#line 874 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp13_ = _data_->local_dir_info; -#line 874 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (g_file_info_get_is_hidden (_data_->_tmp13_)) { -#line 875 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp14_ = g_file_get_path (_data_->dir); -#line 875 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp15_ = _data_->_tmp14_; -#line 875 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_warning ("DirectoryMonitor.vala:875: Ignoring hidden directory %s", _data_->_tmp15_); -#line 875 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_data_->_tmp15_); -#line 877 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_explore_directory_completed (_data_->self, _data_->in_discovery); -#line 879 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->local_dir_info); -#line 879 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_task_return_pointer (_data_->_async_result, _data_, NULL); -#line 879 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_state_ != 0) { -#line 879 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (_data_->_task_complete_ != TRUE) { -#line 879 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); -#line 3755 "DirectoryMonitor.c" - } - } -#line 879 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_object_unref (_data_->_async_result); -#line 879 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 3762 "DirectoryMonitor.c" - } -#line 884 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp16_ = _data_->local_dir_info; -#line 884 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp17_ = get_file_info_id (_data_->_tmp16_); -#line 884 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp18_ = _data_->_tmp17_; -#line 884 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp19_ = _data_->_tmp18_ == NULL; -#line 884 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_data_->_tmp18_); -#line 884 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_tmp19_) { -#line 885 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp20_ = _data_->local_dir_info; -#line 885 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp21_ = g_file_get_uri (_data_->dir); -#line 885 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp22_ = _data_->_tmp21_; -#line 885 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_file_info_set_attribute_string (_data_->_tmp20_, G_FILE_ATTRIBUTE_ID_FILE, _data_->_tmp22_); -#line 885 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_data_->_tmp22_); -#line 3786 "DirectoryMonitor.c" - } -#line 890 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp23_ = _data_->local_dir_info; -#line 890 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (g_file_info_get_file_type (_data_->_tmp23_) != G_FILE_TYPE_DIRECTORY) { -#line 891 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp24_ = g_file_get_path (_data_->dir); -#line 891 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp25_ = _data_->_tmp24_; -#line 891 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp26_ = _data_->local_dir_info; -#line 892 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp27_ = g_enum_get_value (g_type_class_ref (g_file_type_get_type ()), g_file_info_get_file_type (_data_->_tmp26_)); -#line 891 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp28_ = g_strdup_printf (_ ("Unable to monitor %s: Not a directory (%s)"), _data_->_tmp25_, (_data_->_tmp27_ != NULL) ? _data_->_tmp27_->value_name : NULL); -#line 891 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp29_ = _data_->_tmp28_; -#line 891 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_discovery_failed (_data_->self, _data_->_tmp29_); -#line 891 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_data_->_tmp29_); -#line 891 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_data_->_tmp25_); -#line 894 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_explore_directory_completed (_data_->self, _data_->in_discovery); -#line 896 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->local_dir_info); -#line 896 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_task_return_pointer (_data_->_async_result, _data_, NULL); -#line 896 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_state_ != 0) { -#line 896 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (_data_->_task_complete_ != TRUE) { -#line 896 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); -#line 3822 "DirectoryMonitor.c" - } - } -#line 896 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_object_unref (_data_->_async_result); -#line 896 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 3829 "DirectoryMonitor.c" - } -#line 903 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->dir_map = NULL; -#line 904 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->file_map = NULL; -#line 3835 "DirectoryMonitor.c" - { -#line 907 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp30_ = _data_->self->priv->cancellable; -#line 907 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_state_ = 2; -#line 907 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_file_enumerate_children_async (_data_->dir, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, DIRECTORY_MONITOR_UNKNOWN_INFO_FLAGS, DIRECTORY_MONITOR_DEFAULT_PRIORITY, _data_->_tmp30_, directory_monitor_explore_async_ready, _data_); -#line 907 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 3845 "DirectoryMonitor.c" - _state_2: -#line 907 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp31_ = g_file_enumerate_children_finish (_data_->dir, _data_->_res_, &_data_->_inner_error_); -#line 907 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->enumerator = _data_->_tmp31_; -#line 907 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 3853 "DirectoryMonitor.c" - goto __catch491_g_error; - } - { -#line 909 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp32_ = TRUE; -#line 909 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (TRUE) { -#line 909 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!_data_->_tmp32_) { -#line 3863 "DirectoryMonitor.c" - } -#line 909 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp32_ = FALSE; -#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp33_ = _data_->enumerator; -#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp34_ = _data_->self->priv->cancellable; -#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_state_ = 3; -#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_file_enumerator_next_files_async (_data_->_tmp33_, 10, DIRECTORY_MONITOR_DEFAULT_PRIORITY, _data_->_tmp34_, directory_monitor_explore_async_ready, _data_); -#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 3877 "DirectoryMonitor.c" - _state_3: -#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp35_ = g_file_enumerator_next_files_finish (_data_->_tmp33_, _data_->_res_, &_data_->_inner_error_); -#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->infos = _data_->_tmp35_; -#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 910 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->enumerator); -#line 3887 "DirectoryMonitor.c" - goto __catch491_g_error; - } -#line 912 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp36_ = _data_->infos; -#line 912 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_tmp36_ == NULL) { -#line 913 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - __g_list_free__g_object_unref0_0 (_data_->infos); -#line 913 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 3898 "DirectoryMonitor.c" - } -#line 915 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp37_ = _data_->infos; -#line 3902 "DirectoryMonitor.c" - { -#line 915 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->info_collection = _data_->_tmp37_; -#line 915 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - for (_data_->info_it = _data_->info_collection; _data_->info_it != NULL; _data_->info_it = _data_->info_it->next) { -#line 915 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp38_ = _g_object_ref0 ((GFileInfo*) _data_->info_it->data); -#line 915 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->info = _data_->_tmp38_; -#line 3912 "DirectoryMonitor.c" - { -#line 916 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp39_ = _data_->info; -#line 916 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp40_ = get_file_info_id (_data_->_tmp39_); -#line 916 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp41_ = _data_->_tmp40_; -#line 916 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp42_ = _data_->_tmp41_ == NULL; -#line 916 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_data_->_tmp41_); -#line 916 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_tmp42_) { -#line 917 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp43_ = _data_->info; -#line 917 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp44_ = g_file_get_uri (_data_->dir); -#line 917 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp45_ = _data_->_tmp44_; -#line 917 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_file_info_set_attribute_string (_data_->_tmp43_, G_FILE_ATTRIBUTE_ID_FILE, _data_->_tmp45_); -#line 917 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_data_->_tmp45_); -#line 3936 "DirectoryMonitor.c" - } -#line 921 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp46_ = _data_->info; -#line 921 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (g_file_info_get_is_hidden (_data_->_tmp46_)) { -#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp47_ = _data_->info; -#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp48_ = g_file_info_get_name (_data_->_tmp47_); -#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp49_ = g_file_get_child (_data_->dir, _data_->_tmp48_); -#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp50_ = _data_->_tmp49_; -#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp51_ = g_file_get_path (_data_->_tmp50_); -#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp52_ = _data_->_tmp51_; -#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_warning ("DirectoryMonitor.vala:922: Skipping hidden file/directory %s", _data_->_tmp52_); -#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_data_->_tmp52_); -#line 922 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_tmp50_); -#line 925 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->info); -#line 925 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - continue; -#line 3964 "DirectoryMonitor.c" - } -#line 929 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp53_ = _data_->info; -#line 929 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!directory_monitor_is_file_symlink_supported (_data_->_tmp53_)) { -#line 930 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->info); -#line 930 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - continue; -#line 3974 "DirectoryMonitor.c" - } -#line 932 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp54_ = _data_->info; -#line 932 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - switch (g_file_info_get_file_type (_data_->_tmp54_)) { -#line 932 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case G_FILE_TYPE_REGULAR: -#line 3982 "DirectoryMonitor.c" - { -#line 934 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp55_ = _data_->file_map; -#line 934 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_tmp55_ == NULL) { -#line 935 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp56_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_info_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); -#line 935 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->file_map); -#line 935 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->file_map = _data_->_tmp56_; -#line 3994 "DirectoryMonitor.c" - } -#line 937 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp57_ = _data_->file_map; -#line 937 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp58_ = _data_->info; -#line 937 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp59_ = g_file_info_get_name (_data_->_tmp58_); -#line 937 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp60_ = g_file_get_child (_data_->dir, _data_->_tmp59_); -#line 937 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp61_ = _data_->_tmp60_; -#line 937 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp62_ = _data_->info; -#line 937 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp57_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _data_->_tmp61_, _data_->_tmp62_); -#line 937 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_tmp61_); -#line 938 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 4014 "DirectoryMonitor.c" - } -#line 932 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case G_FILE_TYPE_DIRECTORY: -#line 4018 "DirectoryMonitor.c" - { -#line 941 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp63_ = _data_->dir_map; -#line 941 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_tmp63_ == NULL) { -#line 942 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp64_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_info_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); -#line 942 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->dir_map); -#line 942 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->dir_map = _data_->_tmp64_; -#line 4030 "DirectoryMonitor.c" - } -#line 944 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp65_ = _data_->dir_map; -#line 944 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp66_ = _data_->info; -#line 944 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp67_ = g_file_info_get_name (_data_->_tmp66_); -#line 944 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp68_ = g_file_get_child (_data_->dir, _data_->_tmp67_); -#line 944 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp69_ = _data_->_tmp68_; -#line 944 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp70_ = _data_->info; -#line 944 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp65_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _data_->_tmp69_, _data_->_tmp70_); -#line 944 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_tmp69_); -#line 945 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 4050 "DirectoryMonitor.c" - } - default: - { -#line 949 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 4056 "DirectoryMonitor.c" - } - } -#line 915 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->info); -#line 4061 "DirectoryMonitor.c" - } - } - } -#line 909 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - __g_list_free__g_object_unref0_0 (_data_->infos); -#line 4067 "DirectoryMonitor.c" - } - } -#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->enumerator); -#line 4072 "DirectoryMonitor.c" - } - goto __finally491; - __catch491_g_error: - { -#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->err2 = _data_->_inner_error_; -#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_inner_error_ = NULL; -#line 954 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp71_ = g_file_get_path (_data_->dir); -#line 954 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp72_ = _data_->_tmp71_; -#line 954 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp73_ = _data_->err2; -#line 954 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp74_ = _data_->_tmp73_->message; -#line 954 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_warning ("DirectoryMonitor.vala:954: Aborted directory traversal of %s: %s", _data_->_tmp72_, _data_->_tmp74_); -#line 954 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_data_->_tmp72_); -#line 956 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_explore_directory_completed (_data_->self, _data_->in_discovery); -#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_error_free0 (_data_->err2); -#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->file_map); -#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->dir_map); -#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->local_dir_info); -#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_task_return_pointer (_data_->_async_result, _data_, NULL); -#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_state_ != 0) { -#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (_data_->_task_complete_ != TRUE) { -#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); -#line 4111 "DirectoryMonitor.c" - } - } -#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_object_unref (_data_->_async_result); -#line 958 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 4118 "DirectoryMonitor.c" - } - __finally491: -#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->file_map); -#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->dir_map); -#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->local_dir_info); -#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); -#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_clear_error (&_data_->_inner_error_); -#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_object_unref (_data_->_async_result); -#line 906 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 4137 "DirectoryMonitor.c" - } -#line 962 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->in_discovery) { -#line 963 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp75_ = _data_->local_dir_info; -#line 963 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_internal_notify_directory_discovered (_data_->self, _data_->dir, _data_->_tmp75_); -#line 4145 "DirectoryMonitor.c" - } else { -#line 965 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp76_ = _data_->local_dir_info; -#line 965 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_internal_notify_directory_created (_data_->self, _data_->dir, _data_->_tmp76_); -#line 4151 "DirectoryMonitor.c" - } -#line 969 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp77_ = _data_->local_dir_info; -#line 969 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_add_monitor (_data_->self, _data_->dir, _data_->_tmp77_); -#line 972 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp78_ = _data_->file_map; -#line 972 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_tmp78_ != NULL) { -#line 973 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp79_ = _data_->file_map; -#line 973 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_state_ = 4; -#line 973 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_directory_files (_data_->self, G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp79_, GEE_TYPE_MAP, GeeMap), _data_->in_discovery, directory_monitor_explore_async_ready, _data_); -#line 973 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 4169 "DirectoryMonitor.c" - _state_4: -#line 973 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_directory_files_finish (_data_->self, _data_->_res_); -#line 4173 "DirectoryMonitor.c" - } -#line 976 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp81_ = _data_->self->priv->recurse; -#line 976 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_tmp81_) { -#line 976 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp82_ = _data_->dir_map; -#line 976 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp80_ = _data_->_tmp82_ != NULL; -#line 4183 "DirectoryMonitor.c" - } else { -#line 976 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp80_ = FALSE; -#line 4187 "DirectoryMonitor.c" - } -#line 976 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_tmp80_) { -#line 4191 "DirectoryMonitor.c" - { -#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp83_ = _data_->dir_map; -#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp84_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp83_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp85_ = _data_->_tmp84_; -#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp86_ = _data_->_tmp85_; -#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp87_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp86_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp88_ = _data_->_tmp87_; -#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_tmp86_); -#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_subdir_it = _data_->_tmp88_; -#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (TRUE) { -#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp89_ = _data_->_subdir_it; -#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!gee_iterator_next (_data_->_tmp89_)) { -#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 4217 "DirectoryMonitor.c" - } -#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp90_ = _data_->_subdir_it; -#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp91_ = gee_iterator_get (_data_->_tmp90_); -#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->subdir = (GFile*) _data_->_tmp91_; -#line 978 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp92_ = _data_->self->priv->outstanding_exploration_dirs; -#line 978 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->self->priv->outstanding_exploration_dirs = _data_->_tmp92_ + 1; -#line 978 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp93_ = _data_->self->priv->outstanding_exploration_dirs; -#line 978 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_tmp93_ > DIRECTORY_MONITOR_MAX_EXPLORATION_DIRS) { -#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp94_ = _data_->subdir; -#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp95_ = _data_->dir_map; -#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp96_ = _data_->subdir; -#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp97_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp95_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _data_->_tmp96_); -#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp98_ = (GFileInfo*) _data_->_tmp97_; -#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_state_ = 5; -#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_explore_async (_data_->self, _data_->_tmp94_, _data_->_tmp98_, _data_->in_discovery, directory_monitor_explore_async_ready, _data_); -#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 4249 "DirectoryMonitor.c" - _state_5: -#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_explore_finish (_data_->self, _data_->_res_); -#line 979 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_tmp98_); -#line 4255 "DirectoryMonitor.c" - } else { -#line 981 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp99_ = _data_->subdir; -#line 981 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp100_ = _data_->dir_map; -#line 981 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp101_ = _data_->subdir; -#line 981 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp102_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp100_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _data_->_tmp101_); -#line 981 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp103_ = (GFileInfo*) _data_->_tmp102_; -#line 981 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_explore_async (_data_->self, _data_->_tmp99_, _data_->_tmp103_, _data_->in_discovery, NULL, NULL); -#line 981 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_tmp103_); -#line 4271 "DirectoryMonitor.c" - } -#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->subdir); -#line 4275 "DirectoryMonitor.c" - } -#line 977 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_subdir_it); -#line 4279 "DirectoryMonitor.c" - } - } -#line 985 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_explore_directory_completed (_data_->self, _data_->in_discovery); -#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->file_map); -#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->dir_map); -#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->local_dir_info); -#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_task_return_pointer (_data_->_async_result, _data_, NULL); -#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_state_ != 0) { -#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (_data_->_task_complete_ != TRUE) { -#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); -#line 4298 "DirectoryMonitor.c" - } - } -#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_object_unref (_data_->_async_result); -#line 850 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 4305 "DirectoryMonitor.c" -} - - -static void -directory_monitor_notify_directory_files_data_free (gpointer _data) -{ - DirectoryMonitorNotifyDirectoryFilesData* _data_; - _data_ = _data; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->map); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->self); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_slice_free (DirectoryMonitorNotifyDirectoryFilesData, _data_); -#line 4320 "DirectoryMonitor.c" -} - - -static void -directory_monitor_notify_directory_files_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data) -{ - DirectoryMonitorNotifyDirectoryFilesData* _task_data_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _task_data_ = g_task_get_task_data (G_TASK (res)); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_task_data_->_callback_ != NULL) { -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _task_data_->_callback_ (source_object, res, user_data); -#line 4336 "DirectoryMonitor.c" - } -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _task_data_->_task_complete_ = TRUE; -#line 4340 "DirectoryMonitor.c" -} - - -static void -directory_monitor_notify_directory_files (DirectoryMonitor* self, - GeeMap* map, - gboolean in_discovery, - GAsyncReadyCallback _callback_, - gpointer _user_data_) -{ - DirectoryMonitorNotifyDirectoryFilesData* _data_; - DirectoryMonitor* _tmp0_; - GeeMap* _tmp1_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_ = g_slice_new0 (DirectoryMonitorNotifyDirectoryFilesData); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_callback_ = _callback_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_async_result = g_task_new (G_OBJECT (self), NULL, directory_monitor_notify_directory_files_async_ready_wrapper, _user_data_); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_callback_ == NULL) { -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_task_complete_ = TRUE; -#line 4364 "DirectoryMonitor.c" - } -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_task_set_task_data (_data_->_async_result, _data_, directory_monitor_notify_directory_files_data_free); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = _g_object_ref0 (self); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->self = _tmp0_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _g_object_ref0 (map); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->map); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->map = _tmp1_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->in_discovery = in_discovery; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_directory_files_co (_data_); -#line 4382 "DirectoryMonitor.c" -} - - -static void -directory_monitor_notify_directory_files_finish (DirectoryMonitor* self, - GAsyncResult* _res_) -{ - DirectoryMonitorNotifyDirectoryFilesData* _data_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_ = g_task_propagate_pointer (G_TASK (_res_), NULL); -#line 4393 "DirectoryMonitor.c" -} - - -static gboolean -_directory_monitor_notify_directory_files_co_gsource_func (gpointer self) -{ - gboolean result; - result = directory_monitor_notify_directory_files_co (self); -#line 996 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 4404 "DirectoryMonitor.c" -} - - -static gboolean -directory_monitor_notify_directory_files_co (DirectoryMonitorNotifyDirectoryFilesData* _data_) -{ -#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - switch (_data_->_state_) { -#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case 0: -#line 4415 "DirectoryMonitor.c" - goto _state_0; -#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case 1: -#line 4419 "DirectoryMonitor.c" - goto _state_1; - default: -#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_assert_not_reached (); -#line 4424 "DirectoryMonitor.c" - } - _state_0: -#line 989 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp0_ = gee_map_map_iterator (_data_->map); -#line 989 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->iter = _data_->_tmp0_; -#line 990 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (TRUE) { -#line 990 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp1_ = _data_->iter; -#line 990 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!gee_map_iterator_next (_data_->_tmp1_)) { -#line 990 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 4439 "DirectoryMonitor.c" - } -#line 991 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->in_discovery) { -#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp2_ = _data_->iter; -#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp3_ = gee_map_iterator_get_key (_data_->_tmp2_); -#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp4_ = (GFile*) _data_->_tmp3_; -#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp5_ = _data_->iter; -#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp6_ = gee_map_iterator_get_value (_data_->_tmp5_); -#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp7_ = (GFileInfo*) _data_->_tmp6_; -#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_internal_notify_file_discovered (_data_->self, _data_->_tmp4_, _data_->_tmp7_); -#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_tmp7_); -#line 992 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_tmp4_); -#line 4461 "DirectoryMonitor.c" - } else { -#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp8_ = _data_->iter; -#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp9_ = gee_map_iterator_get_key (_data_->_tmp8_); -#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp10_ = (GFile*) _data_->_tmp9_; -#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp11_ = _data_->iter; -#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp12_ = gee_map_iterator_get_value (_data_->_tmp11_); -#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_tmp13_ = (GFileInfo*) _data_->_tmp12_; -#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_internal_notify_file_created (_data_->self, _data_->_tmp10_, _data_->_tmp13_); -#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_tmp13_); -#line 994 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->_tmp10_); -#line 4481 "DirectoryMonitor.c" - } -#line 996 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_idle_add_full (DIRECTORY_MONITOR_DEFAULT_PRIORITY, _directory_monitor_notify_directory_files_co_gsource_func, _data_, NULL); -#line 997 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _data_->_state_ = 1; -#line 997 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 4489 "DirectoryMonitor.c" - _state_1: - ; - } -#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_data_->iter); -#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_task_return_pointer (_data_->_async_result, _data_, NULL); -#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_data_->_state_ != 0) { -#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (_data_->_task_complete_ != TRUE) { -#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); -#line 4503 "DirectoryMonitor.c" - } - } -#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_object_unref (_data_->_async_result); -#line 988 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return FALSE; -#line 4510 "DirectoryMonitor.c" -} - - -static void -directory_monitor_explore_directory_completed (DirectoryMonitor* self, - gboolean in_discovery) -{ - gint _tmp0_; - gint _tmp1_; - gboolean _tmp2_ = FALSE; -#line 1003 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 1004 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->outstanding_exploration_dirs; -#line 1004 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (_tmp0_ > 0, "outstanding_exploration_dirs > 0"); -#line 1005 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = self->priv->outstanding_exploration_dirs; -#line 1005 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->outstanding_exploration_dirs = _tmp1_ - 1; -#line 1007 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (in_discovery) { -#line 4533 "DirectoryMonitor.c" - gint _tmp3_; -#line 1007 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = self->priv->outstanding_exploration_dirs; -#line 1007 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = _tmp3_ == 0; -#line 4539 "DirectoryMonitor.c" - } else { -#line 1007 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = FALSE; -#line 4543 "DirectoryMonitor.c" - } -#line 1007 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp2_) { -#line 1008 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_discovery_completed (self); -#line 4549 "DirectoryMonitor.c" - } -} - - -static void -_directory_monitor_on_monitor_notification_g_file_monitor_changed (GFileMonitor* _sender, - GFile* file, - GFile* other_file, - GFileMonitorEvent event_type, - gpointer self) -{ -#line 1036 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_on_monitor_notification ((DirectoryMonitor*) self, file, other_file, event_type); -#line 4563 "DirectoryMonitor.c" -} - - -static gboolean -directory_monitor_add_monitor (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info) -{ - gboolean result = FALSE; - gboolean _tmp0_; - gchar* id = NULL; - DirectoryMonitorFileInfoMap* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; - GeeHashMap* _tmp4_; - const gchar* _tmp5_; - GFileMonitor* monitor = NULL; - GeeHashMap* _tmp14_; - const gchar* _tmp15_; - GFileMonitor* _tmp16_; - GFileMonitor* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - GError * _inner_error_ = NULL; -#line 1014 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), FALSE); -#line 1014 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (dir), FALSE); -#line 1014 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE); -#line 1015 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->monitoring; -#line 1015 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!_tmp0_) { -#line 1016 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = FALSE; -#line 1016 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 4604 "DirectoryMonitor.c" - } -#line 1018 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = self->priv->files; -#line 1018 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = directory_monitor_file_info_map_get_id (_tmp1_, dir, info); -#line 1018 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - id = _tmp2_; -#line 1019 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = id; -#line 1019 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp3_ == NULL) { -#line 1020 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = FALSE; -#line 1020 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 1020 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 4622 "DirectoryMonitor.c" - } -#line 1023 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = self->priv->monitors; -#line 1023 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = id; -#line 1023 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_)) { -#line 1024 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = FALSE; -#line 1024 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 1024 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 4636 "DirectoryMonitor.c" - } -#line 1026 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - monitor = NULL; -#line 4640 "DirectoryMonitor.c" - { - GFileMonitor* _tmp6_ = NULL; - GFileMonitor* _tmp7_; - GFileMonitor* _tmp8_; -#line 1028 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp7_ = g_file_monitor_directory (dir, DIRECTORY_MONITOR_FILE_MONITOR_FLAGS, NULL, &_inner_error_); -#line 1028 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = _tmp7_; -#line 1028 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4651 "DirectoryMonitor.c" - goto __catch492_g_error; - } -#line 1028 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp8_ = _tmp6_; -#line 1028 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = NULL; -#line 1028 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (monitor); -#line 1028 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - monitor = _tmp8_; -#line 1027 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_tmp6_); -#line 4664 "DirectoryMonitor.c" - } - goto __finally492; - __catch492_g_error: - { - GError* err = NULL; - gchar* _tmp9_; - gchar* _tmp10_; - GError* _tmp11_; - const gchar* _tmp12_; -#line 1027 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - err = _inner_error_; -#line 1027 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _inner_error_ = NULL; -#line 1030 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp9_ = g_file_get_path (dir); -#line 1030 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp10_ = _tmp9_; -#line 1030 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp11_ = err; -#line 1030 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp12_ = _tmp11_->message; -#line 1030 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_warning ("DirectoryMonitor.vala:1030: Unable to monitor %s: %s", _tmp10_, _tmp12_); -#line 1030 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp10_); -#line 1032 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = FALSE; -#line 1032 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_error_free0 (err); -#line 1032 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (monitor); -#line 1032 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 1032 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 4700 "DirectoryMonitor.c" - } - __finally492: -#line 1027 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4705 "DirectoryMonitor.c" - gboolean _tmp13_ = FALSE; -#line 1027 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (monitor); -#line 1027 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 1027 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1027 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_clear_error (&_inner_error_); -#line 1027 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return _tmp13_; -#line 4717 "DirectoryMonitor.c" - } -#line 1035 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp14_ = self->priv->monitors; -#line 1035 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp15_ = id; -#line 1035 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp16_ = monitor; -#line 1035 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_, _tmp16_); -#line 1036 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp17_ = monitor; -#line 1036 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_connect_object (_tmp17_, "changed", (GCallback) _directory_monitor_on_monitor_notification_g_file_monitor_changed, self, 0); -#line 1038 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp18_ = g_file_get_path (dir); -#line 1038 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp19_ = _tmp18_; -#line 1038 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp20_ = g_strdup_printf ("Added monitor for %s", _tmp19_); -#line 1038 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp21_ = _tmp20_; -#line 1038 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp21_); -#line 1038 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp21_); -#line 1038 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp19_); -#line 1040 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = TRUE; -#line 1040 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (monitor); -#line 1040 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 1040 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 4753 "DirectoryMonitor.c" -} - - -static gboolean -directory_monitor_remove_monitor (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info) -{ - gboolean result = FALSE; - gboolean _tmp0_; - gchar* id = NULL; - DirectoryMonitorFileInfoMap* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; - GFileMonitor* monitor = NULL; - GeeHashMap* _tmp4_; - const gchar* _tmp5_; - gpointer _tmp6_; - GFileMonitor* _tmp7_; - gboolean removed = FALSE; - GeeHashMap* _tmp8_; - const gchar* _tmp9_; - gboolean _tmp10_; - gboolean _tmp11_; - GFileMonitor* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; -#line 1044 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), FALSE); -#line 1044 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (dir), FALSE); -#line 1044 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE); -#line 1045 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->monitoring; -#line 1045 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!_tmp0_) { -#line 1046 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = FALSE; -#line 1046 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 4797 "DirectoryMonitor.c" - } -#line 1048 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = self->priv->files; -#line 1048 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = directory_monitor_file_info_map_get_id (_tmp1_, dir, info); -#line 1048 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - id = _tmp2_; -#line 1049 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = id; -#line 1049 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp3_ == NULL) { -#line 1050 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = FALSE; -#line 1050 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 1050 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 4815 "DirectoryMonitor.c" - } -#line 1052 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = self->priv->monitors; -#line 1052 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = id; -#line 1052 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_); -#line 1052 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - monitor = (GFileMonitor*) _tmp6_; -#line 1053 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp7_ = monitor; -#line 1053 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp7_ == NULL) { -#line 1054 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = FALSE; -#line 1054 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (monitor); -#line 1054 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 1054 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 4837 "DirectoryMonitor.c" - } -#line 1056 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp8_ = self->priv->monitors; -#line 1056 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp9_ = id; -#line 1056 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp10_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, NULL); -#line 1056 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - removed = _tmp10_; -#line 1057 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp11_ = removed; -#line 1057 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (_tmp11_, "removed"); -#line 1059 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp12_ = monitor; -#line 1059 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_cancel_monitor (self, _tmp12_); -#line 1061 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp13_ = g_file_get_path (dir); -#line 1061 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp14_ = _tmp13_; -#line 1061 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp15_ = g_strdup_printf ("Removed monitor for %s", _tmp14_); -#line 1061 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp16_ = _tmp15_; -#line 1061 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp16_); -#line 1061 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp16_); -#line 1061 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp14_); -#line 1063 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = TRUE; -#line 1063 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (monitor); -#line 1063 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 1063 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 4877 "DirectoryMonitor.c" -} - - -static void -directory_monitor_cancel_monitor (DirectoryMonitor* self, - GFileMonitor* monitor) -{ - guint _tmp0_; -#line 1066 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 1066 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_MONITOR (monitor)); -#line 1067 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_parse_name ("changed", g_file_monitor_get_type (), &_tmp0_, NULL, FALSE); -#line 1067 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_handlers_disconnect_matched (monitor, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _directory_monitor_on_monitor_notification_g_file_monitor_changed, self); -#line 1068 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_file_monitor_cancel (monitor); -#line 4896 "DirectoryMonitor.c" -} - - -static void -_directory_monitor_query_info_queue_element_on_completed_gasync_ready_callback (GObject* source_object, - GAsyncResult* res, - gpointer self) -{ -#line 1088 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_query_info_queue_element_on_completed ((DirectoryMonitorQueryInfoQueueElement*) self, source_object, res); -#line 1088 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_query_info_queue_element_unref (self); -#line 4909 "DirectoryMonitor.c" -} - - -static gboolean -_directory_monitor_check_for_expired_delete_events_gsource_func (gpointer self) -{ - gboolean result; - result = directory_monitor_check_for_expired_delete_events ((DirectoryMonitor*) self); -#line 1097 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 4920 "DirectoryMonitor.c" -} - - -static void -directory_monitor_on_monitor_notification (DirectoryMonitor* self, - GFile* file, - GFile* other_file, - GFileMonitorEvent event) -{ - gchar* _tmp0_ = NULL; - GEnumValue* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - DirectoryMonitorQueryInfoQueueElement* query_info = NULL; - DirectoryMonitorQueryInfoQueueElement* _tmp8_; - GeeQueue* _tmp9_; - DirectoryMonitorQueryInfoQueueElement* _tmp10_; -#line 1071 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 1071 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 1071 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail ((other_file == NULL) || G_IS_FILE (other_file)); -#line 1073 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (other_file != NULL) { -#line 4948 "DirectoryMonitor.c" - gchar* _tmp1_; -#line 1073 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = g_file_get_path (other_file); -#line 1073 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp0_); -#line 1073 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = _tmp1_; -#line 4956 "DirectoryMonitor.c" - } else { - gchar* _tmp2_; -#line 1073 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_strdup ("(none)"); -#line 1073 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp0_); -#line 1073 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = _tmp2_; -#line 4965 "DirectoryMonitor.c" - } -#line 1072 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = g_enum_get_value (g_type_class_ref (g_file_monitor_event_get_type ()), event); -#line 1072 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = g_file_get_path (file); -#line 1072 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = _tmp4_; -#line 1072 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = g_strdup_printf ("NOTIFY %s: file=%s other_file=%s", (_tmp3_ != NULL) ? _tmp3_->value_name : NULL, _tmp5_, _tmp0_); -#line 1072 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp7_ = _tmp6_; -#line 1072 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp7_); -#line 1072 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp7_); -#line 1072 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp5_); -#line 1082 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp8_ = directory_monitor_query_info_queue_element_new (self, file, other_file, event); -#line 1082 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - query_info = _tmp8_; -#line 1083 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp9_ = self->priv->query_info_queue; -#line 1083 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp10_ = query_info; -#line 1083 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - gee_queue_offer (_tmp9_, _tmp10_); -#line 1085 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - switch (event) { -#line 1085 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case G_FILE_MONITOR_EVENT_CREATED: -#line 1085 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT: -#line 4999 "DirectoryMonitor.c" - { - GCancellable* _tmp11_; - DirectoryMonitorQueryInfoQueueElement* _tmp12_; -#line 1088 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp11_ = self->priv->cancellable; -#line 1088 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp12_ = query_info; -#line 1088 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_file_query_info_async (file, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, DIRECTORY_MONITOR_UNKNOWN_INFO_FLAGS, DIRECTORY_MONITOR_DEFAULT_PRIORITY, _tmp11_, _directory_monitor_query_info_queue_element_on_completed_gasync_ready_callback, directory_monitor_query_info_queue_element_ref (_tmp12_)); -#line 1090 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5011 "DirectoryMonitor.c" - } -#line 1085 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case G_FILE_MONITOR_EVENT_DELETED: -#line 5015 "DirectoryMonitor.c" - { - guint _tmp13_; -#line 1096 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp13_ = self->priv->delete_timer_id; -#line 1096 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp13_ == ((guint) 0)) { -#line 1097 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->delete_timer_id = g_timeout_add_full (G_PRIORITY_DEFAULT, DIRECTORY_MONITOR_DELETED_EXPIRATION_MSEC / 2, _directory_monitor_check_for_expired_delete_events_gsource_func, g_object_ref (self), g_object_unref); -#line 5024 "DirectoryMonitor.c" - } -#line 1098 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5028 "DirectoryMonitor.c" - } -#line 1085 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case G_FILE_MONITOR_EVENT_MOVED: -#line 5032 "DirectoryMonitor.c" - { -#line 1103 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (other_file != NULL) { -#line 5036 "DirectoryMonitor.c" - GCancellable* _tmp14_; - DirectoryMonitorQueryInfoQueueElement* _tmp15_; -#line 1104 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp14_ = self->priv->cancellable; -#line 1104 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp15_ = query_info; -#line 1104 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_file_query_info_async (other_file, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, DIRECTORY_MONITOR_UNKNOWN_INFO_FLAGS, DIRECTORY_MONITOR_DEFAULT_PRIORITY, _tmp14_, _directory_monitor_query_info_queue_element_on_completed_gasync_ready_callback, directory_monitor_query_info_queue_element_ref (_tmp15_)); -#line 5045 "DirectoryMonitor.c" - } else { - GeeQueue* _tmp16_; - DirectoryMonitorQueryInfoQueueElement* _tmp17_; -#line 1107 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_warning ("DirectoryMonitor.vala:1107: Unable to process MOVED event: no other_fi" \ -"le"); -#line 1108 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp16_ = self->priv->query_info_queue; -#line 1108 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp17_ = query_info; -#line 1108 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection), _tmp17_); -#line 5057 "DirectoryMonitor.c" - } -#line 1110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5061 "DirectoryMonitor.c" - } - default: - { - DirectoryMonitorQueryInfoQueueElement* _tmp18_; - DirectoryMonitorQueryInfoQueueElement* _tmp19_; -#line 1114 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp18_ = query_info; -#line 1114 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp18_->completed = TRUE; -#line 1115 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp19_ = query_info; -#line 1115 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_process_query_queue (self, _tmp19_); -#line 1116 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5077 "DirectoryMonitor.c" - } - } -#line 1071 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _directory_monitor_query_info_queue_element_unref0 (query_info); -#line 1071 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp0_); -#line 5084 "DirectoryMonitor.c" -} - - -static void -directory_monitor_process_query_queue (DirectoryMonitor* self, - DirectoryMonitorQueryInfoQueueElement* query_info) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; -#line 1120 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 1120 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail ((query_info == NULL) || DIRECTORY_MONITOR_IS_QUERY_INFO_QUEUE_ELEMENT (query_info)); -#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (query_info != NULL) { -#line 5100 "DirectoryMonitor.c" - GFileInfo* _tmp2_; -#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = query_info->info; -#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _tmp2_ != NULL; -#line 5106 "DirectoryMonitor.c" - } else { -#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = FALSE; -#line 5110 "DirectoryMonitor.c" - } -#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp1_) { -#line 5114 "DirectoryMonitor.c" - GFileMonitorEvent _tmp3_; -#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = query_info->event; -#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = _tmp3_ == G_FILE_MONITOR_EVENT_CREATED; -#line 5120 "DirectoryMonitor.c" - } else { -#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = FALSE; -#line 5124 "DirectoryMonitor.c" - } -#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp0_) { -#line 5128 "DirectoryMonitor.c" - GFile* match = NULL; - DirectoryMonitorFileInfoMap* _tmp4_; - GFileInfo* _tmp5_; - GFile* _tmp6_; - GFile* _tmp7_; -#line 1126 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = self->priv->files; -#line 1126 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = query_info->info; -#line 1126 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = directory_monitor_file_info_map_find_match (_tmp4_, _tmp5_); -#line 1126 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - match = _tmp6_; -#line 1127 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp7_ = match; -#line 1127 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp7_ != NULL) { -#line 5146 "DirectoryMonitor.c" - gboolean matched = FALSE; - gboolean _tmp39_; -#line 1128 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - matched = FALSE; -#line 5151 "DirectoryMonitor.c" - { - GeeIterator* _enqueued_it = NULL; - GeeQueue* _tmp8_; - GeeIterator* _tmp9_; -#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp8_ = self->priv->query_info_queue; -#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _enqueued_it = _tmp9_; -#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (TRUE) { -#line 5164 "DirectoryMonitor.c" - GeeIterator* _tmp10_; - DirectoryMonitorQueryInfoQueueElement* enqueued = NULL; - GeeIterator* _tmp11_; - gpointer _tmp12_; - gboolean _tmp13_ = FALSE; - gboolean _tmp14_ = FALSE; - DirectoryMonitorQueryInfoQueueElement* _tmp15_; - GFileMonitorEvent _tmp16_; - GFile* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - DirectoryMonitorQueryInfoQueueElement* _tmp25_; - GFile* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; - DirectoryMonitorQueryInfoQueueElement* _tmp31_; - DirectoryMonitorQueryInfoQueueElement* _tmp32_; - GFile* _tmp33_; - GFile* _tmp34_; - DirectoryMonitorQueryInfoQueueElement* _tmp35_; - GFileInfo* _tmp36_; - GFileInfo* _tmp37_; - DirectoryMonitorQueryInfoQueueElement* _tmp38_; -#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp10_ = _enqueued_it; -#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!gee_iterator_next (_tmp10_)) { -#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5196 "DirectoryMonitor.c" - } -#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp11_ = _enqueued_it; -#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp12_ = gee_iterator_get (_tmp11_); -#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - enqueued = (DirectoryMonitorQueryInfoQueueElement*) _tmp12_; -#line 1130 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp15_ = enqueued; -#line 1130 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp16_ = _tmp15_->event; -#line 1130 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp16_ != G_FILE_MONITOR_EVENT_DELETED) { -#line 1130 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp14_ = TRUE; -#line 5212 "DirectoryMonitor.c" - } else { - DirectoryMonitorQueryInfoQueueElement* _tmp17_; - gboolean _tmp18_; -#line 1131 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp17_ = enqueued; -#line 1131 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp18_ = _tmp17_->completed; -#line 1131 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp14_ = _tmp18_; -#line 5222 "DirectoryMonitor.c" - } -#line 1130 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp14_) { -#line 1130 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp13_ = TRUE; -#line 5228 "DirectoryMonitor.c" - } else { - GFile* _tmp19_; - DirectoryMonitorQueryInfoQueueElement* _tmp20_; - GFile* _tmp21_; -#line 1132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp19_ = match; -#line 1132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp20_ = enqueued; -#line 1132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp21_ = _tmp20_->file; -#line 1132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp13_ = !g_file_equal (_tmp19_, _tmp21_); -#line 5241 "DirectoryMonitor.c" - } -#line 1130 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp13_) { -#line 1133 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _directory_monitor_query_info_queue_element_unref0 (enqueued); -#line 1133 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - continue; -#line 5249 "DirectoryMonitor.c" - } -#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp22_ = query_info->file; -#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp23_ = g_file_get_path (_tmp22_); -#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp24_ = _tmp23_; -#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp25_ = enqueued; -#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp26_ = _tmp25_->file; -#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp27_ = g_file_get_path (_tmp26_); -#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp28_ = _tmp27_; -#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp29_ = g_strdup_printf ("Matching CREATED %s to DELETED %s for MOVED", _tmp24_, _tmp28_); -#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp30_ = _tmp29_; -#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp30_); -#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp30_); -#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp28_); -#line 1136 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp24_); -#line 1139 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp31_ = enqueued; -#line 1139 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp31_->event = G_FILE_MONITOR_EVENT_MOVED; -#line 1140 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp32_ = enqueued; -#line 1140 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp33_ = query_info->file; -#line 1140 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp34_ = _g_object_ref0 (_tmp33_); -#line 1140 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_tmp32_->other_file); -#line 1140 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp32_->other_file = _tmp34_; -#line 1141 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp35_ = enqueued; -#line 1141 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp36_ = query_info->info; -#line 1141 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp37_ = _g_object_ref0 (_tmp36_); -#line 1141 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_tmp35_->info); -#line 1141 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp35_->info = _tmp37_; -#line 1142 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp38_ = enqueued; -#line 1142 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp38_->completed = TRUE; -#line 1144 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - matched = TRUE; -#line 1146 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _directory_monitor_query_info_queue_element_unref0 (enqueued); -#line 1146 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5311 "DirectoryMonitor.c" - } -#line 1129 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_enqueued_it); -#line 5315 "DirectoryMonitor.c" - } -#line 1149 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp39_ = matched; -#line 1149 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp39_) { -#line 5321 "DirectoryMonitor.c" - GeeQueue* _tmp40_; -#line 1150 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp40_ = self->priv->query_info_queue; -#line 1150 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GEE_TYPE_COLLECTION, GeeCollection), query_info); -#line 5327 "DirectoryMonitor.c" - } - } -#line 1123 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (match); -#line 5332 "DirectoryMonitor.c" - } - { - gboolean _tmp41_ = FALSE; -#line 1155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp41_ = TRUE; -#line 1155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (TRUE) { -#line 5340 "DirectoryMonitor.c" - DirectoryMonitorQueryInfoQueueElement* next = NULL; - GeeQueue* _tmp42_; - gpointer _tmp43_; - gboolean _tmp44_ = FALSE; - DirectoryMonitorQueryInfoQueueElement* _tmp45_; - DirectoryMonitorQueryInfoQueueElement* n = NULL; - GeeQueue* _tmp48_; - gpointer _tmp49_; - DirectoryMonitorQueryInfoQueueElement* _tmp50_; - DirectoryMonitorQueryInfoQueueElement* _tmp51_; - DirectoryMonitorQueryInfoQueueElement* _tmp52_; - guint _tmp53_; - DirectoryMonitorQueryInfoQueueElement* _tmp54_; - GFileMonitorEvent _tmp55_; - GEnumValue* _tmp56_; - DirectoryMonitorQueryInfoQueueElement* _tmp57_; - GFile* _tmp58_; - gchar* _tmp59_; - gchar* _tmp60_; - gchar* _tmp61_; - gchar* _tmp62_; - DirectoryMonitorQueryInfoQueueElement* _tmp63_; - GError* _tmp64_; - gboolean _tmp77_ = FALSE; - DirectoryMonitorQueryInfoQueueElement* _tmp78_; - GFileInfo* _tmp79_; - gboolean _tmp93_ = FALSE; - DirectoryMonitorQueryInfoQueueElement* _tmp94_; - GFileInfo* _tmp95_; - DirectoryMonitorQueryInfoQueueElement* _tmp107_; - GFile* _tmp108_; - DirectoryMonitorQueryInfoQueueElement* _tmp109_; - GFile* _tmp110_; - DirectoryMonitorQueryInfoQueueElement* _tmp111_; - GFileInfo* _tmp112_; - DirectoryMonitorQueryInfoQueueElement* _tmp113_; - GFileMonitorEvent _tmp114_; -#line 1155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!_tmp41_) { -#line 5380 "DirectoryMonitor.c" - } -#line 1155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp41_ = FALSE; -#line 1157 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp42_ = self->priv->query_info_queue; -#line 1157 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp43_ = gee_queue_peek (_tmp42_); -#line 1157 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - next = (DirectoryMonitorQueryInfoQueueElement*) _tmp43_; -#line 1158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp45_ = next; -#line 1158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp45_ == NULL) { -#line 1158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp44_ = TRUE; -#line 5396 "DirectoryMonitor.c" - } else { - DirectoryMonitorQueryInfoQueueElement* _tmp46_; - gboolean _tmp47_; -#line 1158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp46_ = next; -#line 1158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp47_ = _tmp46_->completed; -#line 1158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp44_ = !_tmp47_; -#line 5406 "DirectoryMonitor.c" - } -#line 1158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp44_) { -#line 1159 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _directory_monitor_query_info_queue_element_unref0 (next); -#line 1159 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5414 "DirectoryMonitor.c" - } -#line 1162 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp48_ = self->priv->query_info_queue; -#line 1162 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp49_ = gee_queue_poll (_tmp48_); -#line 1162 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - n = (DirectoryMonitorQueryInfoQueueElement*) _tmp49_; -#line 1163 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp50_ = next; -#line 1163 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp51_ = n; -#line 1163 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (_tmp50_ == _tmp51_, "next == n"); -#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp52_ = next; -#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp53_ = _tmp52_->position; -#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp54_ = next; -#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp55_ = _tmp54_->event; -#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp56_ = g_enum_get_value (g_type_class_ref (g_file_monitor_event_get_type ()), _tmp55_); -#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp57_ = next; -#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp58_ = _tmp57_->file; -#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp59_ = g_file_get_path (_tmp58_); -#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp60_ = _tmp59_; -#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp61_ = g_strdup_printf ("Completed info query %u for %s on %s", _tmp53_, (_tmp56_ != NULL) ? _tmp56_->value_name : NULL, _tmp60_); -#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp62_ = _tmp61_; -#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp62_); -#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp62_); -#line 1165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp60_); -#line 1168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp63_ = next; -#line 1168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp64_ = _tmp63_->err; -#line 1168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp64_ != NULL) { -#line 5462 "DirectoryMonitor.c" - DirectoryMonitorQueryInfoQueueElement* _tmp65_; - GFile* _tmp66_; - gchar* _tmp67_; - gchar* _tmp68_; - DirectoryMonitorQueryInfoQueueElement* _tmp69_; - GFileMonitorEvent _tmp70_; - GEnumValue* _tmp71_; - DirectoryMonitorQueryInfoQueueElement* _tmp72_; - GError* _tmp73_; - const gchar* _tmp74_; - gchar* _tmp75_; - gchar* _tmp76_; -#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp65_ = next; -#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp66_ = _tmp65_->file; -#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp67_ = g_file_get_path (_tmp66_); -#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp68_ = _tmp67_; -#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp69_ = next; -#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp70_ = _tmp69_->event; -#line 1170 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp71_ = g_enum_get_value (g_type_class_ref (g_file_monitor_event_get_type ()), _tmp70_); -#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp72_ = next; -#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp73_ = _tmp72_->err; -#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp74_ = _tmp73_->message; -#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp75_ = g_strdup_printf ("Unable to retrieve file information for %s, dropping %s: %s", _tmp68_, (_tmp71_ != NULL) ? _tmp71_->value_name : NULL, _tmp74_); -#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp76_ = _tmp75_; -#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp76_); -#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp76_); -#line 1169 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp68_); -#line 1172 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _directory_monitor_query_info_queue_element_unref0 (n); -#line 1172 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _directory_monitor_query_info_queue_element_unref0 (next); -#line 1172 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - continue; -#line 5511 "DirectoryMonitor.c" - } -#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp78_ = next; -#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp79_ = _tmp78_->info; -#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp79_ != NULL) { -#line 5519 "DirectoryMonitor.c" - DirectoryMonitorQueryInfoQueueElement* _tmp80_; - GFileInfo* _tmp81_; - gchar* _tmp82_; - gchar* _tmp83_; -#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp80_ = next; -#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp81_ = _tmp80_->info; -#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp82_ = get_file_info_id (_tmp81_); -#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp83_ = _tmp82_; -#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp77_ = _tmp83_ == NULL; -#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp83_); -#line 5536 "DirectoryMonitor.c" - } else { -#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp77_ = FALSE; -#line 5540 "DirectoryMonitor.c" - } -#line 1176 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp77_) { -#line 5544 "DirectoryMonitor.c" - DirectoryMonitorQueryInfoQueueElement* _tmp84_; - GFile* _tmp85_; - gchar* _tmp86_; - gchar* _tmp87_; - DirectoryMonitorQueryInfoQueueElement* _tmp88_; - GFileMonitorEvent _tmp89_; - GEnumValue* _tmp90_; - gchar* _tmp91_; - gchar* _tmp92_; -#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp84_ = next; -#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp85_ = _tmp84_->file; -#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp86_ = g_file_get_path (_tmp85_); -#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp87_ = _tmp86_; -#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp88_ = next; -#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp89_ = _tmp88_->event; -#line 1178 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp90_ = g_enum_get_value (g_type_class_ref (g_file_monitor_event_get_type ()), _tmp89_); -#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp91_ = g_strdup_printf ("Unable to retrieve file ID for %s, dropping %s", _tmp87_, (_tmp90_ != NULL) ? _tmp90_->value_name : NULL); -#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp92_ = _tmp91_; -#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp92_); -#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp92_); -#line 1177 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp87_); -#line 1180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _directory_monitor_query_info_queue_element_unref0 (n); -#line 1180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _directory_monitor_query_info_queue_element_unref0 (next); -#line 1180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - continue; -#line 5584 "DirectoryMonitor.c" - } -#line 1184 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp94_ = next; -#line 1184 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp95_ = _tmp94_->info; -#line 1184 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp95_ != NULL) { -#line 5592 "DirectoryMonitor.c" - DirectoryMonitorQueryInfoQueueElement* _tmp96_; - GFileInfo* _tmp97_; -#line 1184 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp96_ = next; -#line 1184 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp97_ = _tmp96_->info; -#line 1184 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp93_ = !directory_monitor_is_file_symlink_supported (_tmp97_); -#line 5601 "DirectoryMonitor.c" - } else { -#line 1184 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp93_ = FALSE; -#line 5605 "DirectoryMonitor.c" - } -#line 1184 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp93_) { -#line 5609 "DirectoryMonitor.c" - DirectoryMonitorQueryInfoQueueElement* _tmp98_; - GFile* _tmp99_; - gchar* _tmp100_; - gchar* _tmp101_; - DirectoryMonitorQueryInfoQueueElement* _tmp102_; - GFileMonitorEvent _tmp103_; - GEnumValue* _tmp104_; - gchar* _tmp105_; - gchar* _tmp106_; -#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp98_ = next; -#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp99_ = _tmp98_->file; -#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp100_ = g_file_get_path (_tmp99_); -#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp101_ = _tmp100_; -#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp102_ = next; -#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp103_ = _tmp102_->event; -#line 1186 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp104_ = g_enum_get_value (g_type_class_ref (g_file_monitor_event_get_type ()), _tmp103_); -#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp105_ = g_strdup_printf ("No symlink support for %s, dropping %s", _tmp101_, (_tmp104_ != NULL) ? _tmp104_->value_name : NULL); -#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp106_ = _tmp105_; -#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp106_); -#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp106_); -#line 1185 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp101_); -#line 1188 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _directory_monitor_query_info_queue_element_unref0 (n); -#line 1188 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _directory_monitor_query_info_queue_element_unref0 (next); -#line 1188 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - continue; -#line 5649 "DirectoryMonitor.c" - } -#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp107_ = next; -#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp108_ = _tmp107_->file; -#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp109_ = next; -#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp110_ = _tmp109_->other_file; -#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp111_ = next; -#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp112_ = _tmp111_->info; -#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp113_ = next; -#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp114_ = _tmp113_->event; -#line 1191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_on_monitor_notification_ready (self, _tmp108_, _tmp110_, _tmp112_, _tmp114_); -#line 1155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _directory_monitor_query_info_queue_element_unref0 (n); -#line 1155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _directory_monitor_query_info_queue_element_unref0 (next); -#line 5673 "DirectoryMonitor.c" - } - } -} - - -static void -directory_monitor_on_monitor_notification_ready (DirectoryMonitor* self, - GFile* file, - GFile* other_file, - GFileInfo* info, - GFileMonitorEvent event) -{ - gchar* _tmp0_ = NULL; - GEnumValue* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 1195 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (IS_DIRECTORY_MONITOR (self)); -#line 1195 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 1195 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail ((other_file == NULL) || G_IS_FILE (other_file)); -#line 1195 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail ((info == NULL) || G_IS_FILE_INFO (info)); -#line 1198 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (other_file != NULL) { -#line 5702 "DirectoryMonitor.c" - gchar* _tmp1_; -#line 1198 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = g_file_get_path (other_file); -#line 1198 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp0_); -#line 1198 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = _tmp1_; -#line 5710 "DirectoryMonitor.c" - } else { - gchar* _tmp2_; -#line 1198 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_strdup ("(null)"); -#line 1198 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp0_); -#line 1198 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = _tmp2_; -#line 5719 "DirectoryMonitor.c" - } -#line 1197 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = g_enum_get_value (g_type_class_ref (g_file_monitor_event_get_type ()), event); -#line 1197 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = g_file_get_path (file); -#line 1197 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = _tmp4_; -#line 1197 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = g_strdup_printf ("READY %s: file=%s other_file=%s", (_tmp3_ != NULL) ? _tmp3_->value_name : NULL, _tmp5_, _tmp0_); -#line 1197 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp7_ = _tmp6_; -#line 1197 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp7_); -#line 1197 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp7_); -#line 1197 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp5_); -#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - switch (event) { -#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case G_FILE_MONITOR_EVENT_CREATED: -#line 5741 "DirectoryMonitor.c" - { - DirectoryMonitorFType ftype = 0; - DirectoryMonitorFType _tmp8_; -#line 1204 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (info != NULL, "info != null"); -#line 1206 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ftype = directory_monitor_get_ftype (info); -#line 1207 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp8_ = ftype; -#line 1207 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - switch (_tmp8_) { -#line 1207 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case DIRECTORY_MONITOR_FTYPE_FILE: -#line 5755 "DirectoryMonitor.c" - { -#line 1209 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_internal_notify_file_created (self, file, info); -#line 1210 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5761 "DirectoryMonitor.c" - } -#line 1207 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case DIRECTORY_MONITOR_FTYPE_DIRECTORY: -#line 5765 "DirectoryMonitor.c" - { - gint _tmp9_; -#line 1217 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp9_ = self->priv->outstanding_exploration_dirs; -#line 1217 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->outstanding_exploration_dirs = _tmp9_ + 1; -#line 1218 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_explore_async (self, file, info, FALSE, NULL, NULL); -#line 1219 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5776 "DirectoryMonitor.c" - } - default: - { - DirectoryMonitorFType _tmp10_; -#line 1222 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp10_ = ftype; -#line 1222 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (_tmp10_ == DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "ftype == FType.UNSUPPORTED"); -#line 1223 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5787 "DirectoryMonitor.c" - } - } -#line 1225 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5792 "DirectoryMonitor.c" - } -#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case G_FILE_MONITOR_EVENT_CHANGED: -#line 5796 "DirectoryMonitor.c" - { - GFileInfo* local_info = NULL; - GFileInfo* _tmp11_; - GFileInfo* _tmp12_; - DirectoryMonitorFType ftype = 0; - GFileInfo* _tmp17_; - DirectoryMonitorFType _tmp18_; -#line 1229 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (info == NULL, "info == null"); -#line 1231 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp11_ = directory_monitor_get_file_info (self, file); -#line 1231 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - local_info = _tmp11_; -#line 1232 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp12_ = local_info; -#line 1232 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp12_ == NULL) { -#line 5814 "DirectoryMonitor.c" - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; -#line 1233 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp13_ = g_file_get_path (file); -#line 1233 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp14_ = _tmp13_; -#line 1233 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp15_ = g_strdup_printf ("Changed event for unknown file %s", _tmp14_); -#line 1233 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp16_ = _tmp15_; -#line 1233 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg (_tmp16_); -#line 1233 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp16_); -#line 1233 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp14_); -#line 1235 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (local_info); -#line 1235 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5837 "DirectoryMonitor.c" - } -#line 1238 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp17_ = local_info; -#line 1238 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ftype = directory_monitor_get_ftype (_tmp17_); -#line 1239 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp18_ = ftype; -#line 1239 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - switch (_tmp18_) { -#line 1239 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case DIRECTORY_MONITOR_FTYPE_FILE: -#line 5849 "DirectoryMonitor.c" - { -#line 1241 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_file_altered (self, file); -#line 1242 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5855 "DirectoryMonitor.c" - } -#line 1239 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case DIRECTORY_MONITOR_FTYPE_DIRECTORY: -#line 5859 "DirectoryMonitor.c" - { -#line 1245 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_directory_altered (self, file); -#line 1246 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5865 "DirectoryMonitor.c" - } - default: - { - DirectoryMonitorFType _tmp19_; -#line 1249 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp19_ = ftype; -#line 1249 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (_tmp19_ == DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "ftype == FType.UNSUPPORTED"); -#line 1250 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5876 "DirectoryMonitor.c" - } - } -#line 1252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (local_info); -#line 1252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5883 "DirectoryMonitor.c" - } -#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT: -#line 5887 "DirectoryMonitor.c" - { - DirectoryMonitorFType ftype = 0; - DirectoryMonitorFType _tmp20_; -#line 1255 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (info != NULL, "info != null"); -#line 1257 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ftype = directory_monitor_get_ftype (info); -#line 1258 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp20_ = ftype; -#line 1258 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - switch (_tmp20_) { -#line 1258 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case DIRECTORY_MONITOR_FTYPE_FILE: -#line 5901 "DirectoryMonitor.c" - { -#line 1260 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_internal_notify_file_alteration_completed (self, file, info); -#line 1261 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5907 "DirectoryMonitor.c" - } -#line 1258 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case DIRECTORY_MONITOR_FTYPE_DIRECTORY: -#line 5911 "DirectoryMonitor.c" - { -#line 1264 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_internal_notify_directory_alteration_completed (self, file, info); -#line 1265 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5917 "DirectoryMonitor.c" - } - default: - { - DirectoryMonitorFType _tmp21_; -#line 1268 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp21_ = ftype; -#line 1268 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (_tmp21_ == DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "ftype == FType.UNSUPPORTED"); -#line 1269 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5928 "DirectoryMonitor.c" - } - } -#line 1271 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5933 "DirectoryMonitor.c" - } -#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case G_FILE_MONITOR_EVENT_MOVED: -#line 5937 "DirectoryMonitor.c" - { - DirectoryMonitorFType ftype = 0; - DirectoryMonitorFType _tmp22_; -#line 1274 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (info != NULL, "info != null"); -#line 1275 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (other_file != NULL, "other_file != null"); -#line 1279 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ftype = directory_monitor_get_ftype (info); -#line 1280 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp22_ = ftype; -#line 1280 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - switch (_tmp22_) { -#line 1280 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case DIRECTORY_MONITOR_FTYPE_FILE: -#line 5953 "DirectoryMonitor.c" - { -#line 1282 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_internal_notify_file_moved (self, file, other_file, info); -#line 1283 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5959 "DirectoryMonitor.c" - } -#line 1280 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case DIRECTORY_MONITOR_FTYPE_DIRECTORY: -#line 5963 "DirectoryMonitor.c" - { - GFileInfo* old_dir_info = NULL; - DirectoryMonitorFileInfoMap* _tmp23_; - GFileInfo* _tmp24_; - GFileInfo* _tmp25_; - GFileInfo* _tmp28_; -#line 1287 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp23_ = self->priv->files; -#line 1287 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp24_ = directory_monitor_file_info_map_get_info (_tmp23_, file); -#line 1287 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - old_dir_info = _tmp24_; -#line 1288 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp25_ = old_dir_info; -#line 1288 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp25_ == NULL) { -#line 5980 "DirectoryMonitor.c" - gchar* _tmp26_; - gchar* _tmp27_; -#line 1289 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp26_ = g_file_get_path (file); -#line 1289 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp27_ = _tmp26_; -#line 1289 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_warning ("DirectoryMonitor.vala:1289: Directory moved event for unknown file %s", _tmp27_); -#line 1289 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp27_); -#line 1291 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (old_dir_info); -#line 1291 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 5995 "DirectoryMonitor.c" - } -#line 1294 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp28_ = old_dir_info; -#line 1294 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_internal_notify_directory_moved (self, file, _tmp28_, other_file, info); -#line 1295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (old_dir_info); -#line 1295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 6005 "DirectoryMonitor.c" - } - default: - { - DirectoryMonitorFType _tmp29_; -#line 1298 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp29_ = ftype; -#line 1298 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (_tmp29_ == DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "ftype == FType.UNSUPPORTED"); -#line 1299 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 6016 "DirectoryMonitor.c" - } - } -#line 1301 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 6021 "DirectoryMonitor.c" - } -#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case G_FILE_MONITOR_EVENT_DELETED: -#line 6025 "DirectoryMonitor.c" - { - GFileInfo* local_info = NULL; - GFileInfo* _tmp30_; - GFileInfo* _tmp31_; - DirectoryMonitorFType ftype = 0; - GFileInfo* _tmp34_; - DirectoryMonitorFType _tmp35_; -#line 1304 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (info == NULL, "info == null"); -#line 1306 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp30_ = directory_monitor_get_file_info (self, file); -#line 1306 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - local_info = _tmp30_; -#line 1307 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp31_ = local_info; -#line 1307 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp31_ == NULL) { -#line 6043 "DirectoryMonitor.c" - gchar* _tmp32_; - gchar* _tmp33_; -#line 1308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp32_ = g_file_get_path (file); -#line 1308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp33_ = _tmp32_; -#line 1308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_warning ("DirectoryMonitor.vala:1308: Deleted event for unknown file %s", _tmp33_); -#line 1308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp33_); -#line 1310 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (local_info); -#line 1310 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 6058 "DirectoryMonitor.c" - } -#line 1313 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp34_ = local_info; -#line 1313 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ftype = directory_monitor_get_ftype (_tmp34_); -#line 1314 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp35_ = ftype; -#line 1314 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - switch (_tmp35_) { -#line 1314 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case DIRECTORY_MONITOR_FTYPE_FILE: -#line 6070 "DirectoryMonitor.c" - { -#line 1316 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_internal_notify_file_deleted (self, file); -#line 1317 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 6076 "DirectoryMonitor.c" - } -#line 1314 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case DIRECTORY_MONITOR_FTYPE_DIRECTORY: -#line 6080 "DirectoryMonitor.c" - { -#line 1320 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_internal_notify_directory_deleted (self, file); -#line 1321 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 6086 "DirectoryMonitor.c" - } - default: - { - DirectoryMonitorFType _tmp36_; -#line 1324 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp36_ = ftype; -#line 1324 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (_tmp36_ == DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "ftype == FType.UNSUPPORTED"); -#line 1325 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 6097 "DirectoryMonitor.c" - } - } -#line 1327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (local_info); -#line 1327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 6104 "DirectoryMonitor.c" - } -#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED: -#line 6108 "DirectoryMonitor.c" - { - GFileInfo* local_info = NULL; - GFileInfo* _tmp37_; - GFileInfo* _tmp38_; - DirectoryMonitorFType ftype = 0; - GFileInfo* _tmp41_; - DirectoryMonitorFType _tmp42_; -#line 1331 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (info == NULL, "info == null"); -#line 1333 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp37_ = directory_monitor_get_file_info (self, file); -#line 1333 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - local_info = _tmp37_; -#line 1334 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp38_ = local_info; -#line 1334 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp38_ == NULL) { -#line 6126 "DirectoryMonitor.c" - gchar* _tmp39_; - gchar* _tmp40_; -#line 1335 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp39_ = g_file_get_path (file); -#line 1335 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp40_ = _tmp39_; -#line 1335 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_warning ("DirectoryMonitor.vala:1335: Attribute changed event for unknown file %" \ -"s", _tmp40_); -#line 1335 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp40_); -#line 1337 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (local_info); -#line 1337 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 6141 "DirectoryMonitor.c" - } -#line 1340 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp41_ = local_info; -#line 1340 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ftype = directory_monitor_get_ftype (_tmp41_); -#line 1341 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp42_ = ftype; -#line 1341 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - switch (_tmp42_) { -#line 1341 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case DIRECTORY_MONITOR_FTYPE_FILE: -#line 6153 "DirectoryMonitor.c" - { -#line 1343 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_file_attributes_altered (self, file); -#line 1344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 6159 "DirectoryMonitor.c" - } -#line 1341 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case DIRECTORY_MONITOR_FTYPE_DIRECTORY: -#line 6163 "DirectoryMonitor.c" - { -#line 1347 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_notify_directory_attributes_altered (self, file); -#line 1348 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 6169 "DirectoryMonitor.c" - } - default: - { - DirectoryMonitorFType _tmp43_; -#line 1351 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp43_ = ftype; -#line 1351 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (_tmp43_ == DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "ftype == FType.UNSUPPORTED"); -#line 1352 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 6180 "DirectoryMonitor.c" - } - } -#line 1354 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (local_info); -#line 1354 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 6187 "DirectoryMonitor.c" - } -#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case G_FILE_MONITOR_EVENT_PRE_UNMOUNT: -#line 1202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case G_FILE_MONITOR_EVENT_UNMOUNTED: -#line 6193 "DirectoryMonitor.c" - { -#line 1359 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 6197 "DirectoryMonitor.c" - } - default: - { - GEnumValue* _tmp44_; -#line 1362 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp44_ = g_enum_get_value (g_type_class_ref (g_file_monitor_event_get_type ()), event); -#line 1362 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_warning ("DirectoryMonitor.vala:1362: Unknown directory monitor event %s", (_tmp44_ != NULL) ? _tmp44_->value_name : NULL); -#line 1363 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 6208 "DirectoryMonitor.c" - } - } -#line 1195 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp0_); -#line 6213 "DirectoryMonitor.c" -} - - -static gboolean -directory_monitor_is_file_create_move (DirectoryMonitor* self, - GFile* file, - GFileInfo* info, - GFile* * old_file, - GFileInfo* * old_file_info) -{ - GFile* _vala_old_file = NULL; - GFileInfo* _vala_old_file_info = NULL; - gboolean result = FALSE; - GFile* match = NULL; - DirectoryMonitorFileInfoMap* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; -#line 1369 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), FALSE); -#line 1369 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 1369 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE); -#line 1372 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->parent_moved; -#line 1372 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = directory_monitor_file_info_map_find_match (_tmp0_, info); -#line 1372 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - match = _tmp1_; -#line 1373 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = match; -#line 1373 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp2_ != NULL) { -#line 6247 "DirectoryMonitor.c" - GFile* _tmp3_; - GFile* _tmp4_; - DirectoryMonitorFileInfoMap* _tmp5_; - GFile* _tmp6_; - GFileInfo* _tmp7_; - DirectoryMonitorFileInfoMap* _tmp8_; - GFile* _tmp9_; -#line 1374 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = match; -#line 1374 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = _g_object_ref0 (_tmp3_); -#line 1374 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_vala_old_file); -#line 1374 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_old_file = _tmp4_; -#line 1375 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = self->priv->parent_moved; -#line 1375 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = match; -#line 1375 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp7_ = directory_monitor_file_info_map_get_info (_tmp5_, _tmp6_); -#line 1375 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_vala_old_file_info); -#line 1375 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_old_file_info = _tmp7_; -#line 1377 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp8_ = self->priv->parent_moved; -#line 1377 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp9_ = match; -#line 1377 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_file_info_map_remove (_tmp8_, _tmp9_, info); -#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = TRUE; -#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (match); -#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (old_file) { -#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - *old_file = _vala_old_file; -#line 6287 "DirectoryMonitor.c" - } else { -#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_vala_old_file); -#line 6291 "DirectoryMonitor.c" - } -#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (old_file_info) { -#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - *old_file_info = _vala_old_file_info; -#line 6297 "DirectoryMonitor.c" - } else { -#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_vala_old_file_info); -#line 6301 "DirectoryMonitor.c" - } -#line 1379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 6305 "DirectoryMonitor.c" - } -#line 1382 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_vala_old_file); -#line 1382 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_old_file = NULL; -#line 1383 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_vala_old_file_info); -#line 1383 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_old_file_info = NULL; -#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = FALSE; -#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (match); -#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (old_file) { -#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - *old_file = _vala_old_file; -#line 6323 "DirectoryMonitor.c" - } else { -#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_vala_old_file); -#line 6327 "DirectoryMonitor.c" - } -#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (old_file_info) { -#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - *old_file_info = _vala_old_file_info; -#line 6333 "DirectoryMonitor.c" - } else { -#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_vala_old_file_info); -#line 6337 "DirectoryMonitor.c" - } -#line 1385 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 6341 "DirectoryMonitor.c" -} - - -static gboolean -directory_monitor_check_for_expired_delete_events (DirectoryMonitor* self) -{ - gboolean result = FALSE; - gulong expiration = 0UL; - gboolean any_deleted = FALSE; - gboolean any_expired = FALSE; - gboolean _tmp11_; - gboolean _tmp12_; -#line 1388 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), FALSE); -#line 1389 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - expiration = now_ms () - DIRECTORY_MONITOR_DELETED_EXPIRATION_MSEC; -#line 1391 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - any_deleted = FALSE; -#line 1392 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - any_expired = FALSE; -#line 6362 "DirectoryMonitor.c" - { - GeeIterator* _element_it = NULL; - GeeQueue* _tmp0_; - GeeIterator* _tmp1_; -#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->query_info_queue; -#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _element_it = _tmp1_; -#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (TRUE) { -#line 6375 "DirectoryMonitor.c" - GeeIterator* _tmp2_; - DirectoryMonitorQueryInfoQueueElement* element = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - DirectoryMonitorQueryInfoQueueElement* _tmp5_; - GFileMonitorEvent _tmp6_; - DirectoryMonitorQueryInfoQueueElement* _tmp7_; - gulong _tmp8_; - gulong _tmp9_; - DirectoryMonitorQueryInfoQueueElement* _tmp10_; -#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = _element_it; -#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 6392 "DirectoryMonitor.c" - } -#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _element_it; -#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - element = (DirectoryMonitorQueryInfoQueueElement*) _tmp4_; -#line 1394 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = element; -#line 1394 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = _tmp5_->event; -#line 1394 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp6_ != G_FILE_MONITOR_EVENT_DELETED) { -#line 1395 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _directory_monitor_query_info_queue_element_unref0 (element); -#line 1395 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - continue; -#line 6410 "DirectoryMonitor.c" - } -#line 1397 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - any_deleted = TRUE; -#line 1399 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp7_ = element; -#line 1399 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp8_ = _tmp7_->time_created_msec; -#line 1399 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp9_ = expiration; -#line 1399 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp8_ > _tmp9_) { -#line 1400 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _directory_monitor_query_info_queue_element_unref0 (element); -#line 1400 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - continue; -#line 6426 "DirectoryMonitor.c" - } -#line 1403 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp10_ = element; -#line 1403 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp10_->completed = TRUE; -#line 1404 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - any_expired = TRUE; -#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _directory_monitor_query_info_queue_element_unref0 (element); -#line 6436 "DirectoryMonitor.c" - } -#line 1393 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_element_it); -#line 6440 "DirectoryMonitor.c" - } -#line 1407 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp11_ = any_expired; -#line 1407 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp11_) { -#line 1408 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_process_query_queue (self, NULL); -#line 6448 "DirectoryMonitor.c" - } -#line 1410 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp12_ = any_deleted; -#line 1410 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!_tmp12_) { -#line 1411 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->delete_timer_id = (guint) 0; -#line 6456 "DirectoryMonitor.c" - } -#line 1413 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = any_deleted; -#line 1413 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 6462 "DirectoryMonitor.c" -} - - -GFileInfo* -directory_monitor_get_file_info (DirectoryMonitor* self, - GFile* file) -{ - GFileInfo* result = NULL; - DirectoryMonitorFileInfoMap* _tmp0_; - GFileInfo* _tmp1_; -#line 1417 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), NULL); -#line 1417 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 1418 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->files; -#line 1418 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = directory_monitor_file_info_map_get_info (_tmp0_, file); -#line 1418 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = _tmp1_; -#line 1418 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 6485 "DirectoryMonitor.c" -} - - -GeeCollection* -directory_monitor_get_files (DirectoryMonitor* self) -{ - GeeCollection* result = NULL; - DirectoryMonitorFileInfoMap* _tmp0_; - GeeCollection* _tmp1_; -#line 1423 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), NULL); -#line 1424 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->files; -#line 1424 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = directory_monitor_file_info_map_get_all (_tmp0_); -#line 1424 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = _tmp1_; -#line 1424 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 6505 "DirectoryMonitor.c" -} - - -GFileInfo* -directory_monitor_query_file_info (DirectoryMonitor* self, - GFile* file) -{ - GFileInfo* result = NULL; - DirectoryMonitorFileInfoMap* _tmp0_; - GCancellable* _tmp1_; - GFileInfo* _tmp2_; -#line 1430 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (IS_DIRECTORY_MONITOR (self), NULL); -#line 1430 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 1431 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->files; -#line 1431 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = self->priv->cancellable; -#line 1431 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = directory_monitor_file_info_map_query_info (_tmp0_, file, _tmp1_); -#line 1431 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = _tmp2_; -#line 1431 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 6531 "DirectoryMonitor.c" -} - - -gboolean -directory_monitor_is_file_symlink_supported (GFileInfo* info) -{ - gboolean result = FALSE; - DirectoryMonitorFType ftype = 0; - DirectoryMonitorFType _tmp0_; -#line 1441 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE); -#line 1442 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!g_file_info_get_is_symlink (info)) { -#line 1443 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = TRUE; -#line 1443 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 6549 "DirectoryMonitor.c" - } -#line 1445 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ftype = directory_monitor_get_ftype (info); -#line 1446 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = ftype; -#line 1446 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - switch (_tmp0_) { -#line 1446 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case DIRECTORY_MONITOR_FTYPE_DIRECTORY: -#line 6559 "DirectoryMonitor.c" - { -#line 1448 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = DIRECTORY_MONITOR_SUPPORT_DIR_SYMLINKS; -#line 1448 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 6565 "DirectoryMonitor.c" - } -#line 1446 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case DIRECTORY_MONITOR_FTYPE_FILE: -#line 6569 "DirectoryMonitor.c" - { -#line 1451 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = DIRECTORY_MONITOR_SUPPORT_FILE_SYMLINKS; -#line 1451 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 6575 "DirectoryMonitor.c" - } - default: - { - DirectoryMonitorFType _tmp1_; -#line 1454 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = ftype; -#line 1454 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (_tmp1_ == DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "ftype == FType.UNSUPPORTED"); -#line 1456 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = FALSE; -#line 1456 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 6588 "DirectoryMonitor.c" - } - } -} - - -static void -directory_monitor_real_root_moved (DirectoryMonitor* self, - GFile* old_root, - GFile* new_root, - GFileInfo* new_root_info) -{ -#line 386 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (old_root)); -#line 386 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (new_root)); -#line 386 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (new_root_info)); -#line 6606 "DirectoryMonitor.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer arg_3, gpointer data2); - register GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (n_param_values == 4); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - data1 = closure->data; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - data2 = param_values->data[0].v_pointer; -#line 6632 "DirectoryMonitor.c" - } else { -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - data1 = param_values->data[0].v_pointer; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - data2 = closure->data; -#line 6638 "DirectoryMonitor.c" - } -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - callback = (GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), g_value_get_object (param_values + 3), data2); -#line 6644 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_root_deleted (DirectoryMonitor* self, - GFile* root) -{ -#line 394 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (root)); -#line 6654 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_discovery_started (DirectoryMonitor* self) -{ -} - - -static void -directory_monitor_real_file_discovered (DirectoryMonitor* self, - GFile* file, - GFileInfo* info) -{ -#line 400 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 400 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 6673 "DirectoryMonitor.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2); - register GMarshalFunc_VOID__OBJECT_OBJECT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (n_param_values == 3); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - data1 = closure->data; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - data2 = param_values->data[0].v_pointer; -#line 6699 "DirectoryMonitor.c" - } else { -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - data1 = param_values->data[0].v_pointer; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - data2 = closure->data; -#line 6705 "DirectoryMonitor.c" - } -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2); -#line 6711 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_directory_discovered (DirectoryMonitor* self, - GFile* file, - GFileInfo* info) -{ -#line 403 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 403 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 6724 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_discovery_failed (DirectoryMonitor* self, - const gchar* reason) -{ -#line 408 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (reason != NULL); -#line 6734 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_discovery_completed (DirectoryMonitor* self) -{ -#line 412 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->has_discovery_started = FALSE; -#line 413 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_mdbg ("discovery completed"); -#line 6745 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_file_created (DirectoryMonitor* self, - GFile* file, - GFileInfo* info) -{ -#line 416 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 416 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 6758 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_file_moved (DirectoryMonitor* self, - GFile* old_file, - GFile* new_file, - GFileInfo* new_file_info) -{ -#line 419 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (old_file)); -#line 419 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (new_file)); -#line 419 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (new_file_info)); -#line 6774 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_file_altered (DirectoryMonitor* self, - GFile* file) -{ -#line 423 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 6784 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_file_alteration_completed (DirectoryMonitor* self, - GFile* file, - GFileInfo* info) -{ -#line 428 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 428 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 6797 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_file_attributes_altered (DirectoryMonitor* self, - GFile* file) -{ -#line 431 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 6807 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_file_deleted (DirectoryMonitor* self, - GFile* file) -{ -#line 434 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 6817 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_directory_created (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info) -{ -#line 438 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 438 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 6830 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_directory_moved (DirectoryMonitor* self, - GFile* old_dir, - GFile* new_dir, - GFileInfo* new_dir_info) -{ -#line 442 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (old_dir)); -#line 442 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (new_dir)); -#line 442 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (new_dir_info)); -#line 6846 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_directory_altered (DirectoryMonitor* self, - GFile* dir) -{ -#line 446 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 6856 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_directory_alteration_completed (DirectoryMonitor* self, - GFile* dir, - GFileInfo* info) -{ -#line 451 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 451 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 6869 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_directory_attributes_altered (DirectoryMonitor* self, - GFile* dir) -{ -#line 454 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 6879 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_directory_deleted (DirectoryMonitor* self, - GFile* dir) -{ -#line 458 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 6889 "DirectoryMonitor.c" -} - - -static void -directory_monitor_real_closed (DirectoryMonitor* self) -{ -} - - -static DirectoryMonitorQueryInfoQueueElement* -directory_monitor_query_info_queue_element_construct (GType object_type, - DirectoryMonitor* owner, - GFile* file, - GFile* other_file, - GFileMonitorEvent event) -{ - DirectoryMonitorQueryInfoQueueElement* self = NULL; - DirectoryMonitor* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - guint _tmp3_; -#line 96 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (IS_DIRECTORY_MONITOR (owner), NULL); -#line 96 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 96 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail ((other_file == NULL) || G_IS_FILE (other_file), NULL); -#line 96 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self = (DirectoryMonitorQueryInfoQueueElement*) g_type_create_instance (object_type); -#line 98 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = _g_object_ref0 (owner); -#line 98 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (self->owner); -#line 98 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->owner = _tmp0_; -#line 99 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _g_object_ref0 (file); -#line 99 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (self->file); -#line 99 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->file = _tmp1_; -#line 100 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = _g_object_ref0 (other_file); -#line 100 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (self->other_file); -#line 100 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->other_file = _tmp2_; -#line 101 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->event = event; -#line 102 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = directory_monitor_query_info_queue_element_current; -#line 102 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_query_info_queue_element_current = _tmp3_ + 1; -#line 102 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->position = _tmp3_; -#line 103 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->time_created_msec = now_ms (); -#line 96 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return self; -#line 6949 "DirectoryMonitor.c" -} - - -static DirectoryMonitorQueryInfoQueueElement* -directory_monitor_query_info_queue_element_new (DirectoryMonitor* owner, - GFile* file, - GFile* other_file, - GFileMonitorEvent event) -{ -#line 96 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return directory_monitor_query_info_queue_element_construct (DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT, owner, file, other_file, event); -#line 6961 "DirectoryMonitor.c" -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 117 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return self ? g_error_copy (self) : NULL; -#line 6970 "DirectoryMonitor.c" -} - - -static void -directory_monitor_query_info_queue_element_on_completed (DirectoryMonitorQueryInfoQueueElement* self, - GObject* source, - GAsyncResult* aresult) -{ - GFile* source_file = NULL; - GFile* _tmp0_; - DirectoryMonitor* _tmp14_; - GError * _inner_error_ = NULL; -#line 106 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (DIRECTORY_MONITOR_IS_QUERY_INFO_QUEUE_ELEMENT (self)); -#line 106 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail ((source == NULL) || G_IS_OBJECT (source)); -#line 106 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_ASYNC_RESULT (aresult)); -#line 107 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, g_file_get_type (), GFile)); -#line 107 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - source_file = _tmp0_; -#line 6993 "DirectoryMonitor.c" - { - GFileInfo* _tmp1_ = NULL; - GFileInfo* _tmp2_; - GFileInfo* _tmp3_; - GFileInfo* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gboolean _tmp7_; -#line 111 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = g_file_query_info_finish (source_file, aresult, &_inner_error_); -#line 111 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _tmp2_; -#line 111 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7008 "DirectoryMonitor.c" - goto __catch493_g_error; - } -#line 111 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp1_; -#line 111 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = NULL; -#line 111 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (self->info); -#line 111 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->info = _tmp3_; -#line 112 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = self->info; -#line 112 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = get_file_info_id (_tmp4_); -#line 112 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = _tmp5_; -#line 112 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp7_ = _tmp6_ == NULL; -#line 112 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp6_); -#line 112 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp7_) { -#line 7031 "DirectoryMonitor.c" - GFileInfo* _tmp8_; - GFile* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; -#line 113 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp8_ = self->info; -#line 113 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp9_ = self->file; -#line 113 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp10_ = g_file_get_uri (_tmp9_); -#line 113 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp11_ = _tmp10_; -#line 113 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_file_info_set_attribute_string (_tmp8_, G_FILE_ATTRIBUTE_ID_FILE, _tmp11_); -#line 113 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp11_); -#line 7048 "DirectoryMonitor.c" - } -#line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_tmp1_); -#line 7052 "DirectoryMonitor.c" - } - goto __finally493; - __catch493_g_error: - { - GError* err = NULL; - GError* _tmp12_; - GError* _tmp13_; -#line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - err = _inner_error_; -#line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _inner_error_ = NULL; -#line 117 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp12_ = err; -#line 117 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp13_ = _g_error_copy0 (_tmp12_); -#line 117 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_error_free0 (self->err); -#line 117 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->err = _tmp13_; -#line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_error_free0 (err); -#line 7074 "DirectoryMonitor.c" - } - __finally493: -#line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (source_file); -#line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_clear_error (&_inner_error_); -#line 110 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return; -#line 7087 "DirectoryMonitor.c" - } -#line 121 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->completed = TRUE; -#line 124 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp14_ = self->owner; -#line 124 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_process_query_queue (_tmp14_, self); -#line 106 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (source_file); -#line 7097 "DirectoryMonitor.c" -} - - -static void -directory_monitor_value_query_info_queue_element_init (GValue* value) -{ -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - value->data[0].v_pointer = NULL; -#line 7106 "DirectoryMonitor.c" -} - - -static void -directory_monitor_value_query_info_queue_element_free_value (GValue* value) -{ -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (value->data[0].v_pointer) { -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_query_info_queue_element_unref (value->data[0].v_pointer); -#line 7117 "DirectoryMonitor.c" - } -} - - -static void -directory_monitor_value_query_info_queue_element_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (src_value->data[0].v_pointer) { -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - dest_value->data[0].v_pointer = directory_monitor_query_info_queue_element_ref (src_value->data[0].v_pointer); -#line 7130 "DirectoryMonitor.c" - } else { -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - dest_value->data[0].v_pointer = NULL; -#line 7134 "DirectoryMonitor.c" - } -} - - -static gpointer -directory_monitor_value_query_info_queue_element_peek_pointer (const GValue* value) -{ -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return value->data[0].v_pointer; -#line 7144 "DirectoryMonitor.c" -} - - -static gchar* -directory_monitor_value_query_info_queue_element_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (collect_values[0].v_pointer) { -#line 7156 "DirectoryMonitor.c" - DirectoryMonitorQueryInfoQueueElement * object; - object = collect_values[0].v_pointer; -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (object->parent_instance.g_class == NULL) { -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 7163 "DirectoryMonitor.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 7167 "DirectoryMonitor.c" - } -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - value->data[0].v_pointer = directory_monitor_query_info_queue_element_ref (object); -#line 7171 "DirectoryMonitor.c" - } else { -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - value->data[0].v_pointer = NULL; -#line 7175 "DirectoryMonitor.c" - } -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return NULL; -#line 7179 "DirectoryMonitor.c" -} - - -static gchar* -directory_monitor_value_query_info_queue_element_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - DirectoryMonitorQueryInfoQueueElement ** object_p; - object_p = collect_values[0].v_pointer; -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!object_p) { -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 7195 "DirectoryMonitor.c" - } -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!value->data[0].v_pointer) { -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - *object_p = NULL; -#line 7201 "DirectoryMonitor.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - *object_p = value->data[0].v_pointer; -#line 7205 "DirectoryMonitor.c" - } else { -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - *object_p = directory_monitor_query_info_queue_element_ref (value->data[0].v_pointer); -#line 7209 "DirectoryMonitor.c" - } -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return NULL; -#line 7213 "DirectoryMonitor.c" -} - - -static GParamSpec* -directory_monitor_param_spec_query_info_queue_element (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - DirectoryMonitorParamSpecQueryInfoQueueElement* spec; -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (g_type_is_a (object_type, DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT), NULL); -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return G_PARAM_SPEC (spec); -#line 7233 "DirectoryMonitor.c" -} - - -static gpointer -directory_monitor_value_get_query_info_queue_element (const GValue* value) -{ -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT), NULL); -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return value->data[0].v_pointer; -#line 7244 "DirectoryMonitor.c" -} - - -static void -directory_monitor_value_set_query_info_queue_element (GValue* value, - gpointer v_object) -{ - DirectoryMonitorQueryInfoQueueElement * old; -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT)); -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - old = value->data[0].v_pointer; -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (v_object) { -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT)); -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - value->data[0].v_pointer = v_object; -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_query_info_queue_element_ref (value->data[0].v_pointer); -#line 7267 "DirectoryMonitor.c" - } else { -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - value->data[0].v_pointer = NULL; -#line 7271 "DirectoryMonitor.c" - } -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (old) { -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_query_info_queue_element_unref (old); -#line 7277 "DirectoryMonitor.c" - } -} - - -static void -directory_monitor_value_take_query_info_queue_element (GValue* value, - gpointer v_object) -{ - DirectoryMonitorQueryInfoQueueElement * old; -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT)); -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - old = value->data[0].v_pointer; -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (v_object) { -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT)); -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - value->data[0].v_pointer = v_object; -#line 7299 "DirectoryMonitor.c" - } else { -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - value->data[0].v_pointer = NULL; -#line 7303 "DirectoryMonitor.c" - } -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (old) { -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_query_info_queue_element_unref (old); -#line 7309 "DirectoryMonitor.c" - } -} - - -static void -directory_monitor_query_info_queue_element_class_init (DirectoryMonitorQueryInfoQueueElementClass * klass) -{ -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_query_info_queue_element_parent_class = g_type_class_peek_parent (klass); -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorQueryInfoQueueElementClass *) klass)->finalize = directory_monitor_query_info_queue_element_finalize; -#line 7321 "DirectoryMonitor.c" -} - - -static void -directory_monitor_query_info_queue_element_instance_init (DirectoryMonitorQueryInfoQueueElement * self) -{ -#line 92 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->info = NULL; -#line 93 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->err = NULL; -#line 94 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->completed = FALSE; -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->ref_count = 1; -#line 7336 "DirectoryMonitor.c" -} - - -static void -directory_monitor_query_info_queue_element_finalize (DirectoryMonitorQueryInfoQueueElement * obj) -{ - DirectoryMonitorQueryInfoQueueElement * self; -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT, DirectoryMonitorQueryInfoQueueElement); -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_handlers_destroy (self); -#line 86 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (self->owner); -#line 87 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (self->file); -#line 88 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (self->other_file); -#line 92 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (self->info); -#line 93 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_error_free0 (self->err); -#line 7358 "DirectoryMonitor.c" -} - - -static GType -directory_monitor_query_info_queue_element_get_type (void) -{ - static volatile gsize directory_monitor_query_info_queue_element_type_id__volatile = 0; - if (g_once_init_enter (&directory_monitor_query_info_queue_element_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { directory_monitor_value_query_info_queue_element_init, directory_monitor_value_query_info_queue_element_free_value, directory_monitor_value_query_info_queue_element_copy_value, directory_monitor_value_query_info_queue_element_peek_pointer, "p", directory_monitor_value_query_info_queue_element_collect_value, "p", directory_monitor_value_query_info_queue_element_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (DirectoryMonitorQueryInfoQueueElementClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) directory_monitor_query_info_queue_element_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectoryMonitorQueryInfoQueueElement), 0, (GInstanceInitFunc) directory_monitor_query_info_queue_element_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType directory_monitor_query_info_queue_element_type_id; - directory_monitor_query_info_queue_element_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DirectoryMonitorQueryInfoQueueElement", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&directory_monitor_query_info_queue_element_type_id__volatile, directory_monitor_query_info_queue_element_type_id); - } - return directory_monitor_query_info_queue_element_type_id__volatile; -} - - -static gpointer -directory_monitor_query_info_queue_element_ref (gpointer instance) -{ - DirectoryMonitorQueryInfoQueueElement * self; - self = instance; -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_atomic_int_inc (&self->ref_count); -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return instance; -#line 7387 "DirectoryMonitor.c" -} - - -static void -directory_monitor_query_info_queue_element_unref (gpointer instance) -{ - DirectoryMonitorQueryInfoQueueElement * self; - self = instance; -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_QUERY_INFO_QUEUE_ELEMENT_GET_CLASS (self)->finalize (self); -#line 83 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 7402 "DirectoryMonitor.c" - } -} - - -static DirectoryMonitorFileInfoMap* -directory_monitor_file_info_map_construct (GType object_type) -{ - DirectoryMonitorFileInfoMap* self = NULL; -#line 138 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self = (DirectoryMonitorFileInfoMap*) g_type_create_instance (object_type); -#line 138 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return self; -#line 7415 "DirectoryMonitor.c" -} - - -static DirectoryMonitorFileInfoMap* -directory_monitor_file_info_map_new (void) -{ -#line 138 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return directory_monitor_file_info_map_construct (DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP); -#line 7424 "DirectoryMonitor.c" -} - - -static gboolean -directory_monitor_file_info_map_normalize_file (DirectoryMonitorFileInfoMap* self, - GFile* file, - GFileInfo* info, - GFile* * normalized, - gchar* * id) -{ - GFile* _vala_normalized = NULL; - gchar* _vala_id = NULL; - gboolean result = FALSE; - GFileInfo* local_info = NULL; - GFileInfo* _tmp0_; - GFileInfo* _tmp1_; - gchar* file_id = NULL; - GFileInfo* _tmp5_; - gchar* _tmp6_; - const gchar* _tmp7_; - GFile* known_file = NULL; - GeeHashMap* _tmp8_; - const gchar* _tmp9_; - gpointer _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; - GFile* _tmp13_ = NULL; - GFile* _tmp14_; - GFile* _tmp16_; -#line 141 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), FALSE); -#line 141 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 141 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail ((info == NULL) || G_IS_FILE_INFO (info), FALSE); -#line 144 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = _g_object_ref0 (info); -#line 144 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - local_info = _tmp0_; -#line 145 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = local_info; -#line 145 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp1_ == NULL) { -#line 7468 "DirectoryMonitor.c" - GeeHashMap* _tmp2_; - gpointer _tmp3_; - GFileInfo* _tmp4_; -#line 146 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = self->priv->map; -#line 146 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file); -#line 146 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (local_info); -#line 146 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - local_info = (GFileInfo*) _tmp3_; -#line 147 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = local_info; -#line 147 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp4_ == NULL) { -#line 148 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_vala_normalized); -#line 148 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_normalized = NULL; -#line 149 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_vala_id); -#line 149 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_id = NULL; -#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = FALSE; -#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (local_info); -#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (normalized) { -#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - *normalized = _vala_normalized; -#line 7500 "DirectoryMonitor.c" - } else { -#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_vala_normalized); -#line 7504 "DirectoryMonitor.c" - } -#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (id) { -#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - *id = _vala_id; -#line 7510 "DirectoryMonitor.c" - } else { -#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_vala_id); -#line 7514 "DirectoryMonitor.c" - } -#line 151 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 7518 "DirectoryMonitor.c" - } - } -#line 155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = local_info; -#line 155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = get_file_info_id (_tmp5_); -#line 155 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - file_id = _tmp6_; -#line 156 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp7_ = file_id; -#line 156 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp7_ == NULL) { -#line 157 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_vala_normalized); -#line 157 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_normalized = NULL; -#line 158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_vala_id); -#line 158 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_id = NULL; -#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = FALSE; -#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (file_id); -#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (local_info); -#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (normalized) { -#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - *normalized = _vala_normalized; -#line 7549 "DirectoryMonitor.c" - } else { -#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_vala_normalized); -#line 7553 "DirectoryMonitor.c" - } -#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (id) { -#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - *id = _vala_id; -#line 7559 "DirectoryMonitor.c" - } else { -#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_vala_id); -#line 7563 "DirectoryMonitor.c" - } -#line 160 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 7567 "DirectoryMonitor.c" - } -#line 163 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp8_ = self->priv->id_map; -#line 163 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp9_ = file_id; -#line 163 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp10_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_); -#line 163 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - known_file = (GFile*) _tmp10_; -#line 165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp11_ = file_id; -#line 165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp12_ = g_strdup ((const gchar*) _tmp11_); -#line 165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_vala_id); -#line 165 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_id = _tmp12_; -#line 166 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp14_ = known_file; -#line 166 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp14_ != NULL) { -#line 7589 "DirectoryMonitor.c" - GFile* _tmp15_; -#line 166 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp15_ = known_file; -#line 166 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp13_ = _tmp15_; -#line 7595 "DirectoryMonitor.c" - } else { -#line 166 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp13_ = file; -#line 7599 "DirectoryMonitor.c" - } -#line 166 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp16_ = _g_object_ref0 (_tmp13_); -#line 166 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_vala_normalized); -#line 166 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_normalized = _tmp16_; -#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = TRUE; -#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (known_file); -#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (file_id); -#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (local_info); -#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (normalized) { -#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - *normalized = _vala_normalized; -#line 7619 "DirectoryMonitor.c" - } else { -#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_vala_normalized); -#line 7623 "DirectoryMonitor.c" - } -#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (id) { -#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - *id = _vala_id; -#line 7629 "DirectoryMonitor.c" - } else { -#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_vala_id); -#line 7633 "DirectoryMonitor.c" - } -#line 168 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 7637 "DirectoryMonitor.c" -} - - -static gboolean -directory_monitor_file_info_map_update (DirectoryMonitorFileInfoMap* self, - GFile* file, - GFileInfo* info) -{ - gboolean result = FALSE; - GeeHashMap* _tmp0_; - gchar* existing_id = NULL; - gchar* _tmp4_; - gboolean _tmp5_ = FALSE; - const gchar* _tmp6_; - gchar* id = NULL; - GFile* normalized = NULL; - GFile* _tmp13_ = NULL; - gchar* _tmp14_ = NULL; - gboolean _tmp15_; - GeeHashMap* _tmp16_; - GFile* _tmp17_; - GeeHashMap* _tmp18_; - const gchar* _tmp19_; - GFile* _tmp20_; -#line 171 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), FALSE); -#line 171 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 171 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE); -#line 173 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->map; -#line 173 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file)) { -#line 7672 "DirectoryMonitor.c" - gboolean removed = FALSE; - GeeHashMap* _tmp1_; - gboolean _tmp2_; - gboolean _tmp3_; -#line 174 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = self->priv->map; -#line 174 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file, NULL); -#line 174 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - removed = _tmp2_; -#line 175 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = removed; -#line 175 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (_tmp3_, "removed"); -#line 7687 "DirectoryMonitor.c" - } -#line 179 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = get_file_info_id (info); -#line 179 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - existing_id = _tmp4_; -#line 180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = existing_id; -#line 180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp6_ != NULL) { -#line 7697 "DirectoryMonitor.c" - GeeHashMap* _tmp7_; - const gchar* _tmp8_; -#line 180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp7_ = self->priv->id_map; -#line 180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp8_ = existing_id; -#line 180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_); -#line 7706 "DirectoryMonitor.c" - } else { -#line 180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = FALSE; -#line 7710 "DirectoryMonitor.c" - } -#line 180 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp5_) { -#line 7714 "DirectoryMonitor.c" - gboolean removed = FALSE; - GeeHashMap* _tmp9_; - const gchar* _tmp10_; - gboolean _tmp11_; - gboolean _tmp12_; -#line 181 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp9_ = self->priv->id_map; -#line 181 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp10_ = existing_id; -#line 181 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp11_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp10_, NULL); -#line 181 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - removed = _tmp11_; -#line 182 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp12_ = removed; -#line 182 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (_tmp12_, "removed"); -#line 7732 "DirectoryMonitor.c" - } -#line 187 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp15_ = directory_monitor_file_info_map_normalize_file (self, file, info, &_tmp13_, &_tmp14_); -#line 187 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (normalized); -#line 187 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - normalized = _tmp13_; -#line 187 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 187 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - id = _tmp14_; -#line 187 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!_tmp15_) { -#line 188 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = FALSE; -#line 188 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (normalized); -#line 188 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 188 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (existing_id); -#line 188 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 7756 "DirectoryMonitor.c" - } -#line 190 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp16_ = self->priv->map; -#line 190 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp17_ = normalized; -#line 190 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp17_, info); -#line 191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp18_ = self->priv->id_map; -#line 191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp19_ = id; -#line 191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp20_ = normalized; -#line 191 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp19_, _tmp20_); -#line 193 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = TRUE; -#line 193 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (normalized); -#line 193 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 193 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (existing_id); -#line 193 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 7782 "DirectoryMonitor.c" -} - - -static gboolean -directory_monitor_file_info_map_remove (DirectoryMonitorFileInfoMap* self, - GFile* file, - GFileInfo* info) -{ - gboolean result = FALSE; - gchar* id = NULL; - GFile* normalized = NULL; - GFile* _tmp0_ = NULL; - gchar* _tmp1_ = NULL; - gboolean _tmp2_; - GeeHashMap* _tmp3_; - GFile* _tmp4_; - GeeHashMap* _tmp5_; - const gchar* _tmp6_; -#line 196 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), FALSE); -#line 196 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 196 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail ((info == NULL) || G_IS_FILE_INFO (info), FALSE); -#line 199 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = directory_monitor_file_info_map_normalize_file (self, file, info, &_tmp0_, &_tmp1_); -#line 199 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (normalized); -#line 199 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - normalized = _tmp0_; -#line 199 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 199 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - id = _tmp1_; -#line 199 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!_tmp2_) { -#line 200 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = FALSE; -#line 200 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (normalized); -#line 200 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 200 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 7827 "DirectoryMonitor.c" - } -#line 202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = self->priv->map; -#line 202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = normalized; -#line 202 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp4_, NULL); -#line 203 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = self->priv->id_map; -#line 203 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = id; -#line 203 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp6_, NULL); -#line 205 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = TRUE; -#line 205 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (normalized); -#line 205 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 205 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 7849 "DirectoryMonitor.c" -} - - -static void -directory_monitor_file_info_map_remove_all (DirectoryMonitorFileInfoMap* self, - GeeCollection* files) -{ -#line 210 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self)); -#line 210 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (GEE_IS_COLLECTION (files)); -#line 7861 "DirectoryMonitor.c" - { - GeeIterator* _file_it = NULL; - GeeIterator* _tmp0_; -#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (files, GEE_TYPE_ITERABLE, GeeIterable)); -#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _file_it = _tmp0_; -#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (TRUE) { -#line 7871 "DirectoryMonitor.c" - GeeIterator* _tmp1_; - GFile* file = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - GFile* _tmp4_; -#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = _file_it; -#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 7883 "DirectoryMonitor.c" - } -#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = _file_it; -#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - file = (GFile*) _tmp3_; -#line 212 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = file; -#line 212 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_file_info_map_remove (self, _tmp4_, NULL); -#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (file); -#line 7897 "DirectoryMonitor.c" - } -#line 211 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_file_it); -#line 7901 "DirectoryMonitor.c" - } -} - - -static gboolean -directory_monitor_file_info_map_contains (DirectoryMonitorFileInfoMap* self, - GFile* file, - GFileInfo* info) -{ - gboolean result = FALSE; - gchar* id = NULL; - GFile* normalized = NULL; - GFile* _tmp0_ = NULL; - gchar* _tmp1_ = NULL; - gboolean _tmp2_; - GeeHashMap* _tmp3_; - const gchar* _tmp4_; -#line 215 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), FALSE); -#line 215 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 215 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail ((info == NULL) || G_IS_FILE_INFO (info), FALSE); -#line 218 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = directory_monitor_file_info_map_normalize_file (self, file, info, &_tmp0_, &_tmp1_); -#line 218 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (normalized); -#line 218 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - normalized = _tmp0_; -#line 218 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 218 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - id = _tmp1_; -#line 218 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!_tmp2_) { -#line 219 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = FALSE; -#line 219 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (normalized); -#line 219 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 219 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 7945 "DirectoryMonitor.c" - } -#line 221 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = self->priv->id_map; -#line 221 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = id; -#line 221 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp4_); -#line 221 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (normalized); -#line 221 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 221 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 7959 "DirectoryMonitor.c" -} - - -static gchar* -directory_monitor_file_info_map_get_id (DirectoryMonitorFileInfoMap* self, - GFile* file, - GFileInfo* info) -{ - gchar* result = NULL; - gchar* id = NULL; - GFile* normalized = NULL; - GFile* _tmp1_ = NULL; - gchar* _tmp2_ = NULL; - gboolean _tmp3_; -#line 224 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), NULL); -#line 224 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 224 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail ((info == NULL) || G_IS_FILE_INFO (info), NULL); -#line 226 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (info != NULL) { -#line 7982 "DirectoryMonitor.c" - gchar* _tmp0_; -#line 227 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = get_file_info_id (info); -#line 227 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = _tmp0_; -#line 227 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 7990 "DirectoryMonitor.c" - } -#line 231 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = directory_monitor_file_info_map_normalize_file (self, file, NULL, &_tmp1_, &_tmp2_); -#line 231 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (normalized); -#line 231 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - normalized = _tmp1_; -#line 231 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 231 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - id = _tmp2_; -#line 231 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!_tmp3_) { -#line 232 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = NULL; -#line 232 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (normalized); -#line 232 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 232 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 8012 "DirectoryMonitor.c" - } -#line 234 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = id; -#line 234 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (normalized); -#line 234 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 8020 "DirectoryMonitor.c" -} - - -static GeeCollection* -directory_monitor_file_info_map_get_all (DirectoryMonitorFileInfoMap* self) -{ - GeeCollection* result = NULL; - GeeHashMap* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; -#line 237 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), NULL); -#line 238 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->map; -#line 238 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 238 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = _tmp1_; -#line 238 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 238 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 8043 "DirectoryMonitor.c" -} - - -static GFileInfo* -directory_monitor_file_info_map_get_info (DirectoryMonitorFileInfoMap* self, - GFile* file) -{ - GFileInfo* result = NULL; - GFileInfo* info = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - GFileInfo* _tmp2_; - gchar* id = NULL; - GFile* normalized = NULL; - GFile* _tmp3_ = NULL; - gchar* _tmp4_ = NULL; - gboolean _tmp5_; - GeeHashMap* _tmp6_; - GFile* _tmp7_; - gpointer _tmp8_; -#line 241 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), NULL); -#line 241 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 243 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->map; -#line 243 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file); -#line 243 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - info = (GFileInfo*) _tmp1_; -#line 244 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = info; -#line 244 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp2_ != NULL) { -#line 245 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = info; -#line 245 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 8082 "DirectoryMonitor.c" - } -#line 249 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = directory_monitor_file_info_map_normalize_file (self, file, NULL, &_tmp3_, &_tmp4_); -#line 249 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (normalized); -#line 249 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - normalized = _tmp3_; -#line 249 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 249 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - id = _tmp4_; -#line 249 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!_tmp5_) { -#line 250 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = NULL; -#line 250 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (normalized); -#line 250 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 250 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (info); -#line 250 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 8106 "DirectoryMonitor.c" - } -#line 252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = self->priv->map; -#line 252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp7_ = normalized; -#line 252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp8_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp7_); -#line 252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = (GFileInfo*) _tmp8_; -#line 252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (normalized); -#line 252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (info); -#line 252 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 8124 "DirectoryMonitor.c" -} - - -static GFileInfo* -directory_monitor_file_info_map_query_info (DirectoryMonitorFileInfoMap* self, - GFile* file, - GCancellable* cancellable) -{ - GFileInfo* result = NULL; - GFileInfo* info = NULL; - GFileInfo* _tmp0_; - GFileInfo* _tmp1_; - GFileInfo* _tmp9_; - gchar* id = NULL; - GFileInfo* _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; - const gchar* _tmp13_; - GFile* normalized = NULL; - GeeHashMap* _tmp17_; - const gchar* _tmp18_; - gpointer _tmp19_; - GFile* _tmp20_; - GeeHashMap* _tmp21_; - gpointer _tmp22_; - GError * _inner_error_ = NULL; -#line 255 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), NULL); -#line 255 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 255 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable), NULL); -#line 256 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = directory_monitor_file_info_map_get_info (self, file); -#line 256 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - info = _tmp0_; -#line 257 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = info; -#line 257 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp1_ != NULL) { -#line 258 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = info; -#line 258 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 8169 "DirectoryMonitor.c" - } - { - GFileInfo* _tmp2_ = NULL; - GFileInfo* _tmp3_; - GFileInfo* _tmp4_; -#line 263 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = g_file_query_info (file, G_FILE_ATTRIBUTE_ID_FILE, DIRECTORY_MONITOR_UNKNOWN_INFO_FLAGS, cancellable, &_inner_error_); -#line 263 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = _tmp3_; -#line 263 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8181 "DirectoryMonitor.c" - goto __catch494_g_error; - } -#line 263 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = _tmp2_; -#line 263 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = NULL; -#line 263 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (info); -#line 263 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - info = _tmp4_; -#line 262 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_tmp2_); -#line 8194 "DirectoryMonitor.c" - } - goto __finally494; - __catch494_g_error: - { - GError* err = NULL; - gchar* _tmp5_; - gchar* _tmp6_; - GError* _tmp7_; - const gchar* _tmp8_; -#line 262 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - err = _inner_error_; -#line 262 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _inner_error_ = NULL; -#line 265 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = g_file_get_path (file); -#line 265 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = _tmp5_; -#line 265 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp7_ = err; -#line 265 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp8_ = _tmp7_->message; -#line 265 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_warning ("DirectoryMonitor.vala:265: Unable to query file ID of %s: %s", _tmp6_, _tmp8_); -#line 265 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp6_); -#line 267 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = NULL; -#line 267 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_error_free0 (err); -#line 267 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (info); -#line 267 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 8228 "DirectoryMonitor.c" - } - __finally494: -#line 262 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 262 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (info); -#line 262 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 262 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_clear_error (&_inner_error_); -#line 262 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return NULL; -#line 8241 "DirectoryMonitor.c" - } -#line 270 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp9_ = info; -#line 270 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!directory_monitor_is_file_symlink_supported (_tmp9_)) { -#line 271 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = NULL; -#line 271 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (info); -#line 271 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 8253 "DirectoryMonitor.c" - } -#line 273 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp10_ = info; -#line 273 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp11_ = g_file_info_get_attribute_string (_tmp10_, G_FILE_ATTRIBUTE_ID_FILE); -#line 273 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp12_ = g_strdup (_tmp11_); -#line 273 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - id = _tmp12_; -#line 274 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp13_ = id; -#line 274 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp13_ == NULL) { -#line 8267 "DirectoryMonitor.c" - GFileInfo* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; -#line 275 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp14_ = info; -#line 275 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp15_ = g_file_get_uri (file); -#line 275 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp16_ = _tmp15_; -#line 275 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_file_info_set_attribute_string (_tmp14_, G_FILE_ATTRIBUTE_ID_FILE, _tmp16_); -#line 275 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp16_); -#line 8281 "DirectoryMonitor.c" - } -#line 279 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp17_ = self->priv->id_map; -#line 279 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp18_ = id; -#line 279 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp19_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp18_); -#line 279 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - normalized = (GFile*) _tmp19_; -#line 280 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp20_ = normalized; -#line 280 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp20_ == NULL) { -#line 281 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = NULL; -#line 281 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (normalized); -#line 281 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 281 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (info); -#line 281 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 8305 "DirectoryMonitor.c" - } -#line 283 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp21_ = self->priv->map; -#line 283 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp22_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file); -#line 283 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = (GFileInfo*) _tmp22_; -#line 283 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (normalized); -#line 283 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (id); -#line 283 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (info); -#line 283 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 8321 "DirectoryMonitor.c" -} - - -static GFile* -directory_monitor_file_info_map_find_match (DirectoryMonitorFileInfoMap* self, - GFileInfo* match) -{ - GFile* result = NULL; - gchar* match_id = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - gint64 match_size = 0LL; - GTimeVal match_time = {0}; - GTimeVal _tmp2_ = {0}; -#line 286 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), NULL); -#line 286 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE_INFO (match), NULL); -#line 287 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = get_file_info_id (match); -#line 287 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - match_id = _tmp0_; -#line 288 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = match_id; -#line 288 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp1_ == NULL) { -#line 289 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = NULL; -#line 289 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (match_id); -#line 289 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 8354 "DirectoryMonitor.c" - } -#line 292 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - match_size = g_file_info_get_size (match); -#line 293 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_file_info_get_modification_time (match, &_tmp2_); -#line 293 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - match_time = _tmp2_; -#line 8362 "DirectoryMonitor.c" - { - GeeIterator* _file_it = NULL; - GeeHashMap* _tmp3_; - GeeSet* _tmp4_; - GeeSet* _tmp5_; - GeeSet* _tmp6_; - GeeIterator* _tmp7_; - GeeIterator* _tmp8_; -#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = self->priv->map; -#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = _tmp4_; -#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = _tmp5_; -#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp8_ = _tmp7_; -#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_tmp6_); -#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _file_it = _tmp8_; -#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (TRUE) { -#line 8389 "DirectoryMonitor.c" - GeeIterator* _tmp9_; - GFile* file = NULL; - GeeIterator* _tmp10_; - gpointer _tmp11_; - GFileInfo* info = NULL; - GeeHashMap* _tmp12_; - GFile* _tmp13_; - gpointer _tmp14_; - GFileInfo* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - const gchar* _tmp18_; - gboolean _tmp19_; - gint64 _tmp20_; - GFileInfo* _tmp21_; - GTimeVal time = {0}; - GFileInfo* _tmp22_; - GTimeVal _tmp23_ = {0}; - GTimeVal _tmp24_; - glong _tmp25_; - GTimeVal _tmp26_; - glong _tmp27_; -#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp9_ = _file_it; -#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!gee_iterator_next (_tmp9_)) { -#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 8418 "DirectoryMonitor.c" - } -#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp10_ = _file_it; -#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp11_ = gee_iterator_get (_tmp10_); -#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - file = (GFile*) _tmp11_; -#line 296 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp12_ = self->priv->map; -#line 296 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp13_ = file; -#line 296 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp14_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_); -#line 296 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - info = (GFileInfo*) _tmp14_; -#line 299 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp15_ = info; -#line 299 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp16_ = get_file_info_id (_tmp15_); -#line 299 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp17_ = _tmp16_; -#line 299 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp18_ = match_id; -#line 299 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp19_ = g_strcmp0 (_tmp17_, _tmp18_) == 0; -#line 299 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (_tmp17_); -#line 299 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp19_) { -#line 300 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = file; -#line 300 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (info); -#line 300 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_file_it); -#line 300 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (match_id); -#line 300 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 8458 "DirectoryMonitor.c" - } -#line 303 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp20_ = match_size; -#line 303 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp21_ = info; -#line 303 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp20_ != g_file_info_get_size (_tmp21_)) { -#line 304 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (info); -#line 304 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (file); -#line 304 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - continue; -#line 8472 "DirectoryMonitor.c" - } -#line 306 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp22_ = info; -#line 306 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_file_info_get_modification_time (_tmp22_, &_tmp23_); -#line 306 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - time = _tmp23_; -#line 308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp24_ = time; -#line 308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp25_ = _tmp24_.tv_sec; -#line 308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp26_ = match_time; -#line 308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp27_ = _tmp26_.tv_sec; -#line 308 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp25_ != _tmp27_) { -#line 309 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (info); -#line 309 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (file); -#line 309 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - continue; -#line 8496 "DirectoryMonitor.c" - } -#line 311 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = file; -#line 311 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (info); -#line 311 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_file_it); -#line 311 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (match_id); -#line 311 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 8508 "DirectoryMonitor.c" - } -#line 295 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_file_it); -#line 8512 "DirectoryMonitor.c" - } -#line 314 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = NULL; -#line 314 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_free0 (match_id); -#line 314 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 8520 "DirectoryMonitor.c" -} - - -static void -directory_monitor_file_info_map_remove_descendents (DirectoryMonitorFileInfoMap* self, - GFile* root, - DirectoryMonitorFileInfoMap* descendents) -{ - GeeArrayList* pruned = NULL; - GeeArrayList* _tmp24_; -#line 317 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self)); -#line 317 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_IS_FILE (root)); -#line 317 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (descendents)); -#line 318 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - pruned = NULL; -#line 8539 "DirectoryMonitor.c" - { - GeeIterator* _file_it = NULL; - GeeHashMap* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeSet* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->map; -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = _tmp1_; -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp2_; -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = _tmp4_; -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_tmp3_); -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _file_it = _tmp5_; -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (TRUE) { -#line 8566 "DirectoryMonitor.c" - GeeIterator* _tmp6_; - GFile* file = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - GFile* parent = NULL; - GFile* _tmp9_; - GFile* _tmp10_; -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = _file_it; -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 8580 "DirectoryMonitor.c" - } -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp7_ = _file_it; -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - file = (GFile*) _tmp8_; -#line 320 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp9_ = file; -#line 320 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp10_ = g_file_get_parent (_tmp9_); -#line 320 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - parent = _tmp10_; -#line 321 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (TRUE) { -#line 8596 "DirectoryMonitor.c" - GFile* _tmp11_; - GFile* _tmp12_; - GFile* _tmp22_; - GFile* _tmp23_; -#line 321 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp11_ = parent; -#line 321 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!(_tmp11_ != NULL)) { -#line 321 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 8607 "DirectoryMonitor.c" - } -#line 322 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp12_ = parent; -#line 322 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (g_file_equal (_tmp12_, root)) { -#line 8613 "DirectoryMonitor.c" - GeeArrayList* _tmp13_; - GeeArrayList* _tmp15_; - GFile* _tmp16_; - GFile* _tmp17_; - GeeHashMap* _tmp18_; - GFile* _tmp19_; - gpointer _tmp20_; - GFileInfo* _tmp21_; -#line 323 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp13_ = pruned; -#line 323 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp13_ == NULL) { -#line 8626 "DirectoryMonitor.c" - GeeArrayList* _tmp14_; -#line 324 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp14_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 324 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (pruned); -#line 324 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - pruned = _tmp14_; -#line 8634 "DirectoryMonitor.c" - } -#line 326 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp15_ = pruned; -#line 326 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp16_ = file; -#line 326 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp16_); -#line 327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp17_ = file; -#line 327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp18_ = self->priv->map; -#line 327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp19_ = file; -#line 327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp20_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp19_); -#line 327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp21_ = (GFileInfo*) _tmp20_; -#line 327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_file_info_map_update (descendents, _tmp17_, _tmp21_); -#line 327 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_tmp21_); -#line 329 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 8658 "DirectoryMonitor.c" - } -#line 332 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp22_ = parent; -#line 332 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp23_ = g_file_get_parent (_tmp22_); -#line 332 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (parent); -#line 332 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - parent = _tmp23_; -#line 8668 "DirectoryMonitor.c" - } -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (parent); -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (file); -#line 8674 "DirectoryMonitor.c" - } -#line 319 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_file_it); -#line 8678 "DirectoryMonitor.c" - } -#line 336 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp24_ = pruned; -#line 336 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp24_ != NULL) { -#line 8684 "DirectoryMonitor.c" - GeeArrayList* _tmp25_; -#line 337 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp25_ = pruned; -#line 337 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_file_info_map_remove_all (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 8690 "DirectoryMonitor.c" - } -#line 317 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (pruned); -#line 8694 "DirectoryMonitor.c" -} - - -static gint -directory_monitor_file_info_map_get_children (DirectoryMonitorFileInfoMap* self, - GFile* root, - GeeCollection* files, - GeeCollection* dirs) -{ - gint result = 0; - gint count = 0; -#line 342 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (DIRECTORY_MONITOR_IS_FILE_INFO_MAP (self), 0); -#line 342 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (root), 0); -#line 342 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (files), 0); -#line 342 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (dirs), 0); -#line 343 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - count = 0; -#line 8716 "DirectoryMonitor.c" - { - GeeIterator* _file_it = NULL; - GeeHashMap* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeSet* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = self->priv->map; -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = _tmp1_; -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = _tmp2_; -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp5_ = _tmp4_; -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_tmp3_); -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _file_it = _tmp5_; -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - while (TRUE) { -#line 8743 "DirectoryMonitor.c" - GeeIterator* _tmp6_; - GFile* file = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - GFile* parent = NULL; - GFile* _tmp9_; - GFile* _tmp10_; - gboolean _tmp11_ = FALSE; - GFile* _tmp12_; - DirectoryMonitorFType ftype = 0; - GeeHashMap* _tmp14_; - GFile* _tmp15_; - gpointer _tmp16_; - GFileInfo* _tmp17_; - DirectoryMonitorFType _tmp18_; - DirectoryMonitorFType _tmp19_; -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp6_ = _file_it; -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 8766 "DirectoryMonitor.c" - } -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp7_ = _file_it; -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - file = (GFile*) _tmp8_; -#line 345 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp9_ = file; -#line 345 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp10_ = g_file_get_parent (_tmp9_); -#line 345 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - parent = _tmp10_; -#line 346 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp12_ = parent; -#line 346 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp12_ == NULL) { -#line 346 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp11_ = TRUE; -#line 8786 "DirectoryMonitor.c" - } else { - GFile* _tmp13_; -#line 346 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp13_ = parent; -#line 346 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp11_ = !g_file_equal (_tmp13_, root); -#line 8793 "DirectoryMonitor.c" - } -#line 346 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (_tmp11_) { -#line 347 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (parent); -#line 347 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (file); -#line 347 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - continue; -#line 8803 "DirectoryMonitor.c" - } -#line 349 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp14_ = self->priv->map; -#line 349 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp15_ = file; -#line 349 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp16_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_); -#line 349 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp17_ = (GFileInfo*) _tmp16_; -#line 349 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp18_ = directory_monitor_get_ftype (_tmp17_); -#line 349 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_tmp17_); -#line 349 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ftype = _tmp18_; -#line 350 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp19_ = ftype; -#line 350 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - switch (_tmp19_) { -#line 350 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case DIRECTORY_MONITOR_FTYPE_FILE: -#line 8825 "DirectoryMonitor.c" - { - GFile* _tmp20_; - gint _tmp21_; -#line 352 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp20_ = file; -#line 352 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - gee_collection_add (files, _tmp20_); -#line 353 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp21_ = count; -#line 353 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - count = _tmp21_ + 1; -#line 354 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 8839 "DirectoryMonitor.c" - } -#line 350 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - case DIRECTORY_MONITOR_FTYPE_DIRECTORY: -#line 8843 "DirectoryMonitor.c" - { - GFile* _tmp22_; - gint _tmp23_; -#line 357 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp22_ = file; -#line 357 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - gee_collection_add (dirs, _tmp22_); -#line 358 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp23_ = count; -#line 358 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - count = _tmp23_ + 1; -#line 359 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 8857 "DirectoryMonitor.c" - } - default: - { - DirectoryMonitorFType _tmp24_; -#line 362 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp24_ = ftype; -#line 362 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _vala_assert (_tmp24_ == DIRECTORY_MONITOR_FTYPE_UNSUPPORTED, "ftype == FType.UNSUPPORTED"); -#line 363 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - break; -#line 8868 "DirectoryMonitor.c" - } - } -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (parent); -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (file); -#line 8875 "DirectoryMonitor.c" - } -#line 344 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (_file_it); -#line 8879 "DirectoryMonitor.c" - } -#line 367 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - result = count; -#line 367 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return result; -#line 8885 "DirectoryMonitor.c" -} - - -static void -directory_monitor_value_file_info_map_init (GValue* value) -{ -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - value->data[0].v_pointer = NULL; -#line 8894 "DirectoryMonitor.c" -} - - -static void -directory_monitor_value_file_info_map_free_value (GValue* value) -{ -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (value->data[0].v_pointer) { -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_file_info_map_unref (value->data[0].v_pointer); -#line 8905 "DirectoryMonitor.c" - } -} - - -static void -directory_monitor_value_file_info_map_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (src_value->data[0].v_pointer) { -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - dest_value->data[0].v_pointer = directory_monitor_file_info_map_ref (src_value->data[0].v_pointer); -#line 8918 "DirectoryMonitor.c" - } else { -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - dest_value->data[0].v_pointer = NULL; -#line 8922 "DirectoryMonitor.c" - } -} - - -static gpointer -directory_monitor_value_file_info_map_peek_pointer (const GValue* value) -{ -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return value->data[0].v_pointer; -#line 8932 "DirectoryMonitor.c" -} - - -static gchar* -directory_monitor_value_file_info_map_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (collect_values[0].v_pointer) { -#line 8944 "DirectoryMonitor.c" - DirectoryMonitorFileInfoMap * object; - object = collect_values[0].v_pointer; -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (object->parent_instance.g_class == NULL) { -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 8951 "DirectoryMonitor.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 8955 "DirectoryMonitor.c" - } -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - value->data[0].v_pointer = directory_monitor_file_info_map_ref (object); -#line 8959 "DirectoryMonitor.c" - } else { -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - value->data[0].v_pointer = NULL; -#line 8963 "DirectoryMonitor.c" - } -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return NULL; -#line 8967 "DirectoryMonitor.c" -} - - -static gchar* -directory_monitor_value_file_info_map_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - DirectoryMonitorFileInfoMap ** object_p; - object_p = collect_values[0].v_pointer; -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!object_p) { -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 8983 "DirectoryMonitor.c" - } -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (!value->data[0].v_pointer) { -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - *object_p = NULL; -#line 8989 "DirectoryMonitor.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - *object_p = value->data[0].v_pointer; -#line 8993 "DirectoryMonitor.c" - } else { -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - *object_p = directory_monitor_file_info_map_ref (value->data[0].v_pointer); -#line 8997 "DirectoryMonitor.c" - } -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return NULL; -#line 9001 "DirectoryMonitor.c" -} - - -static GParamSpec* -directory_monitor_param_spec_file_info_map (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - DirectoryMonitorParamSpecFileInfoMap* spec; -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (g_type_is_a (object_type, DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP), NULL); -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return G_PARAM_SPEC (spec); -#line 9021 "DirectoryMonitor.c" -} - - -static gpointer -directory_monitor_value_get_file_info_map (const GValue* value) -{ -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP), NULL); -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return value->data[0].v_pointer; -#line 9032 "DirectoryMonitor.c" -} - - -static void -directory_monitor_value_set_file_info_map (GValue* value, - gpointer v_object) -{ - DirectoryMonitorFileInfoMap * old; -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP)); -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - old = value->data[0].v_pointer; -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (v_object) { -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP)); -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - value->data[0].v_pointer = v_object; -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_file_info_map_ref (value->data[0].v_pointer); -#line 9055 "DirectoryMonitor.c" - } else { -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - value->data[0].v_pointer = NULL; -#line 9059 "DirectoryMonitor.c" - } -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (old) { -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_file_info_map_unref (old); -#line 9065 "DirectoryMonitor.c" - } -} - - -static void -directory_monitor_value_take_file_info_map (GValue* value, - gpointer v_object) -{ - DirectoryMonitorFileInfoMap * old; -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP)); -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - old = value->data[0].v_pointer; -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (v_object) { -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP)); -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - value->data[0].v_pointer = v_object; -#line 9087 "DirectoryMonitor.c" - } else { -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - value->data[0].v_pointer = NULL; -#line 9091 "DirectoryMonitor.c" - } -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (old) { -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_file_info_map_unref (old); -#line 9097 "DirectoryMonitor.c" - } -} - - -static void -directory_monitor_file_info_map_class_init (DirectoryMonitorFileInfoMapClass * klass) -{ -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_file_info_map_parent_class = g_type_class_peek_parent (klass); -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorFileInfoMapClass *) klass)->finalize = directory_monitor_file_info_map_finalize; -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_type_class_add_private (klass, sizeof (DirectoryMonitorFileInfoMapPrivate)); -#line 9111 "DirectoryMonitor.c" -} - - -static void -directory_monitor_file_info_map_instance_init (DirectoryMonitorFileInfoMap * self) -{ - GeeHashMap* _tmp0_; - GeeHashMap* _tmp1_; -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv = DIRECTORY_MONITOR_FILE_INFO_MAP_GET_PRIVATE (self); -#line 133 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_info_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); -#line 133 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->map = _tmp0_; -#line 135 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); -#line 135 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->id_map = _tmp1_; -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->ref_count = 1; -#line 9132 "DirectoryMonitor.c" -} - - -static void -directory_monitor_file_info_map_finalize (DirectoryMonitorFileInfoMap * obj) -{ - DirectoryMonitorFileInfoMap * self; -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, DIRECTORY_MONITOR_TYPE_FILE_INFO_MAP, DirectoryMonitorFileInfoMap); -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_signal_handlers_destroy (self); -#line 133 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (self->priv->map); -#line 135 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (self->priv->id_map); -#line 9148 "DirectoryMonitor.c" -} - - -static GType -directory_monitor_file_info_map_get_type (void) -{ - static volatile gsize directory_monitor_file_info_map_type_id__volatile = 0; - if (g_once_init_enter (&directory_monitor_file_info_map_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { directory_monitor_value_file_info_map_init, directory_monitor_value_file_info_map_free_value, directory_monitor_value_file_info_map_copy_value, directory_monitor_value_file_info_map_peek_pointer, "p", directory_monitor_value_file_info_map_collect_value, "p", directory_monitor_value_file_info_map_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (DirectoryMonitorFileInfoMapClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) directory_monitor_file_info_map_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectoryMonitorFileInfoMap), 0, (GInstanceInitFunc) directory_monitor_file_info_map_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType directory_monitor_file_info_map_type_id; - directory_monitor_file_info_map_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DirectoryMonitorFileInfoMap", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&directory_monitor_file_info_map_type_id__volatile, directory_monitor_file_info_map_type_id); - } - return directory_monitor_file_info_map_type_id__volatile; -} - - -static gpointer -directory_monitor_file_info_map_ref (gpointer instance) -{ - DirectoryMonitorFileInfoMap * self; - self = instance; -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_atomic_int_inc (&self->ref_count); -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - return instance; -#line 9177 "DirectoryMonitor.c" -} - - -static void -directory_monitor_file_info_map_unref (gpointer instance) -{ - DirectoryMonitorFileInfoMap * self; - self = instance; -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - DIRECTORY_MONITOR_FILE_INFO_MAP_GET_CLASS (self)->finalize (self); -#line 132 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 9192 "DirectoryMonitor.c" - } -} - - -static void -directory_monitor_class_init (DirectoryMonitorClass * klass) -{ -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_parent_class = g_type_class_peek_parent (klass); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - g_type_class_add_private (klass, sizeof (DirectoryMonitorPrivate)); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_root_deleted = (void (*) (DirectoryMonitor *, GFile*)) directory_monitor_real_notify_root_deleted; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_root_moved = (void (*) (DirectoryMonitor *, GFile*, GFile*, GFileInfo*)) directory_monitor_real_notify_root_moved; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_discovery_started = (void (*) (DirectoryMonitor *)) directory_monitor_real_notify_discovery_started; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->internal_notify_file_discovered = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) directory_monitor_real_internal_notify_file_discovered; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_file_discovered = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) directory_monitor_real_notify_file_discovered; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->internal_notify_directory_discovered = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) directory_monitor_real_internal_notify_directory_discovered; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_directory_discovered = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) directory_monitor_real_notify_directory_discovered; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_discovery_failed = (void (*) (DirectoryMonitor *, const gchar*)) directory_monitor_real_notify_discovery_failed; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_discovery_completed = (void (*) (DirectoryMonitor *)) directory_monitor_real_notify_discovery_completed; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_file_created = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) directory_monitor_real_notify_file_created; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_file_moved = (void (*) (DirectoryMonitor *, GFile*, GFile*, GFileInfo*)) directory_monitor_real_notify_file_moved; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_file_altered = (void (*) (DirectoryMonitor *, GFile*)) directory_monitor_real_notify_file_altered; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_file_alteration_completed = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) directory_monitor_real_notify_file_alteration_completed; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_file_attributes_altered = (void (*) (DirectoryMonitor *, GFile*)) directory_monitor_real_notify_file_attributes_altered; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_file_deleted = (void (*) (DirectoryMonitor *, GFile*)) directory_monitor_real_notify_file_deleted; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_directory_created = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) directory_monitor_real_notify_directory_created; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_directory_moved = (void (*) (DirectoryMonitor *, GFile*, GFile*, GFileInfo*)) directory_monitor_real_notify_directory_moved; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_directory_altered = (void (*) (DirectoryMonitor *, GFile*)) directory_monitor_real_notify_directory_altered; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_directory_alteration_completed = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) directory_monitor_real_notify_directory_alteration_completed; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_directory_attributes_altered = (void (*) (DirectoryMonitor *, GFile*)) directory_monitor_real_notify_directory_attributes_altered; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_directory_deleted = (void (*) (DirectoryMonitor *, GFile*)) directory_monitor_real_notify_directory_deleted; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_closed = (void (*) (DirectoryMonitor *)) directory_monitor_real_notify_closed; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->close = (void (*) (DirectoryMonitor *)) directory_monitor_real_close; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->root_moved = directory_monitor_real_root_moved; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->root_deleted = directory_monitor_real_root_deleted; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->discovery_started = directory_monitor_real_discovery_started; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->file_discovered = directory_monitor_real_file_discovered; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->directory_discovered = directory_monitor_real_directory_discovered; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->discovery_failed = directory_monitor_real_discovery_failed; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->discovery_completed = directory_monitor_real_discovery_completed; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->file_created = directory_monitor_real_file_created; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->file_moved = directory_monitor_real_file_moved; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->file_altered = directory_monitor_real_file_altered; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->file_alteration_completed = directory_monitor_real_file_alteration_completed; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->file_attributes_altered = directory_monitor_real_file_attributes_altered; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->file_deleted = directory_monitor_real_file_deleted; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->directory_created = directory_monitor_real_directory_created; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->directory_moved = directory_monitor_real_directory_moved; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->directory_altered = directory_monitor_real_directory_altered; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->directory_alteration_completed = directory_monitor_real_directory_alteration_completed; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->directory_attributes_altered = directory_monitor_real_directory_attributes_altered; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->directory_deleted = directory_monitor_real_directory_deleted; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - ((DirectoryMonitorClass *) klass)->closed = directory_monitor_real_closed; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - G_OBJECT_CLASS (klass)->finalize = directory_monitor_finalize; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_ROOT_MOVED_SIGNAL] = g_signal_new ("root-moved", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, root_moved), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT, G_TYPE_NONE, 3, g_file_get_type (), g_file_get_type (), g_file_info_get_type ()); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_ROOT_DELETED_SIGNAL] = g_signal_new ("root-deleted", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, root_deleted), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, g_file_get_type ()); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_DISCOVERY_STARTED_SIGNAL] = g_signal_new ("discovery-started", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, discovery_started), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_FILE_DISCOVERED_SIGNAL] = g_signal_new ("file-discovered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_discovered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, g_file_get_type (), g_file_info_get_type ()); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_DISCOVERED_SIGNAL] = g_signal_new ("directory-discovered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_discovered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, g_file_get_type (), g_file_info_get_type ()); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_DISCOVERY_FAILED_SIGNAL] = g_signal_new ("discovery-failed", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, discovery_failed), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_DISCOVERY_COMPLETED_SIGNAL] = g_signal_new ("discovery-completed", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, discovery_completed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_FILE_CREATED_SIGNAL] = g_signal_new ("file-created", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_created), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, g_file_get_type (), g_file_info_get_type ()); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_FILE_MOVED_SIGNAL] = g_signal_new ("file-moved", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_moved), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT, G_TYPE_NONE, 3, g_file_get_type (), g_file_get_type (), g_file_info_get_type ()); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_FILE_ALTERED_SIGNAL] = g_signal_new ("file-altered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, g_file_get_type ()); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_FILE_ALTERATION_COMPLETED_SIGNAL] = g_signal_new ("file-alteration-completed", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_alteration_completed), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, g_file_get_type (), g_file_info_get_type ()); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_FILE_ATTRIBUTES_ALTERED_SIGNAL] = g_signal_new ("file-attributes-altered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_attributes_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, g_file_get_type ()); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_FILE_DELETED_SIGNAL] = g_signal_new ("file-deleted", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, file_deleted), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, g_file_get_type ()); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_CREATED_SIGNAL] = g_signal_new ("directory-created", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_created), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, g_file_get_type (), g_file_info_get_type ()); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_MOVED_SIGNAL] = g_signal_new ("directory-moved", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_moved), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT, G_TYPE_NONE, 3, g_file_get_type (), g_file_get_type (), g_file_info_get_type ()); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_ALTERED_SIGNAL] = g_signal_new ("directory-altered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, g_file_get_type ()); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_ALTERATION_COMPLETED_SIGNAL] = g_signal_new ("directory-alteration-completed", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_alteration_completed), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, g_file_get_type (), g_file_info_get_type ()); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_ATTRIBUTES_ALTERED_SIGNAL] = g_signal_new ("directory-attributes-altered", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_attributes_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, g_file_get_type ()); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_DIRECTORY_DELETED_SIGNAL] = g_signal_new ("directory-deleted", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, directory_deleted), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, g_file_get_type ()); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - directory_monitor_signals[DIRECTORY_MONITOR_CLOSED_SIGNAL] = g_signal_new ("closed", TYPE_DIRECTORY_MONITOR, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DirectoryMonitorClass, closed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 9332 "DirectoryMonitor.c" -} - - -static void -directory_monitor_instance_init (DirectoryMonitor * self) -{ - GeeHashMap* _tmp0_; - GeeLinkedList* _tmp1_; - DirectoryMonitorFileInfoMap* _tmp2_; - DirectoryMonitorFileInfoMap* _tmp3_; - GCancellable* _tmp4_; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv = DIRECTORY_MONITOR_GET_PRIVATE (self); -#line 374 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, g_file_monitor_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 374 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->monitors = _tmp0_; -#line 375 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp1_ = gee_linked_list_new (DIRECTORY_MONITOR_TYPE_QUERY_INFO_QUEUE_ELEMENT, (GBoxedCopyFunc) directory_monitor_query_info_queue_element_ref, (GDestroyNotify) directory_monitor_query_info_queue_element_unref, NULL, NULL, NULL); -#line 375 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->query_info_queue = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_QUEUE, GeeQueue); -#line 377 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp2_ = directory_monitor_file_info_map_new (); -#line 377 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->files = _tmp2_; -#line 378 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp3_ = directory_monitor_file_info_map_new (); -#line 378 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->parent_moved = _tmp3_; -#line 379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _tmp4_ = g_cancellable_new (); -#line 379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->cancellable = _tmp4_; -#line 380 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->outstanding_exploration_dirs = 0; -#line 381 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->started = FALSE; -#line 382 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->has_discovery_started = FALSE; -#line 383 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self->priv->delete_timer_id = (guint) 0; -#line 9374 "DirectoryMonitor.c" -} - - -static void -directory_monitor_finalize (GObject * obj) -{ - DirectoryMonitor * self; -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DIRECTORY_MONITOR, DirectoryMonitor); -#line 371 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (self->priv->root); -#line 374 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (self->priv->monitors); -#line 375 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (self->priv->query_info_queue); -#line 377 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _directory_monitor_file_info_map_unref0 (self->priv->files); -#line 378 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _directory_monitor_file_info_map_unref0 (self->priv->parent_moved); -#line 379 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - _g_object_unref0 (self->priv->cancellable); -#line 60 "/home/jens/Source/shotwell/src/DirectoryMonitor.vala" - G_OBJECT_CLASS (directory_monitor_parent_class)->finalize (obj); -#line 9398 "DirectoryMonitor.c" -} - - -GType -directory_monitor_get_type (void) -{ - static volatile gsize directory_monitor_type_id__volatile = 0; - if (g_once_init_enter (&directory_monitor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DirectoryMonitorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) directory_monitor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectoryMonitor), 0, (GInstanceInitFunc) directory_monitor_instance_init, NULL }; - GType directory_monitor_type_id; - directory_monitor_type_id = g_type_register_static (G_TYPE_OBJECT, "DirectoryMonitor", &g_define_type_info, 0); - g_once_init_leave (&directory_monitor_type_id__volatile, directory_monitor_type_id); - } - return directory_monitor_type_id__volatile; -} - - - diff --git a/src/Event.c b/src/Event.c deleted file mode 100644 index 7ebadad..0000000 --- a/src/Event.c +++ /dev/null @@ -1,7743 +0,0 @@ -/* Event.c generated by valac 0.40.4, the Vala compiler - * generated from Event.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; -typedef struct _DataCollectionPrivate DataCollectionPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; -typedef struct _SourceCollectionPrivate SourceCollectionPrivate; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ()) -#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink)) -#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) -#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK)) -#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK)) -#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) - -typedef struct _SourceBacklink SourceBacklink; -typedef struct _SourceBacklinkClass SourceBacklinkClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; -typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; -typedef struct _ContainerSourceCollectionPrivate ContainerSourceCollectionPrivate; - -#define TYPE_CONTAINER_SOURCE (container_source_get_type ()) -#define CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE, ContainerSource)) -#define IS_CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE)) -#define CONTAINER_SOURCE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONTAINER_SOURCE, ContainerSourceIface)) - -typedef struct _ContainerSource ContainerSource; -typedef struct _ContainerSourceIface ContainerSourceIface; - -#define TYPE_EVENT_SOURCE_COLLECTION (event_source_collection_get_type ()) -#define EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection)) -#define EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass)) -#define IS_EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE_COLLECTION)) -#define IS_EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE_COLLECTION)) -#define EVENT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass)) - -typedef struct _EventSourceCollection EventSourceCollection; -typedef struct _EventSourceCollectionClass EventSourceCollectionClass; -typedef struct _EventSourceCollectionPrivate EventSourceCollectionPrivate; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ()) -#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) - -typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; -typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; - -#define TYPE_VIDEO_SOURCE_COLLECTION (video_source_collection_get_type ()) -#define VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection)) -#define VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) -#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION)) -#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION)) -#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) - -typedef struct _VideoSourceCollection VideoSourceCollection; -typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass; - -#define TYPE_VIEW_MANAGER (view_manager_get_type ()) -#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager)) -#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass)) -#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER)) -#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER)) -#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass)) - -typedef struct _ViewManager ViewManager; -typedef struct _ViewManagerClass ViewManagerClass; - -#define EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER (event_source_collection_no_event_view_manager_get_type ()) -#define EVENT_SOURCE_COLLECTION_NO_EVENT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER, EventSourceCollectionNoEventViewManager)) -#define EVENT_SOURCE_COLLECTION_NO_EVENT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER, EventSourceCollectionNoEventViewManagerClass)) -#define EVENT_SOURCE_COLLECTION_IS_NO_EVENT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER)) -#define EVENT_SOURCE_COLLECTION_IS_NO_EVENT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER)) -#define EVENT_SOURCE_COLLECTION_NO_EVENT_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER, EventSourceCollectionNoEventViewManagerClass)) - -typedef struct _EventSourceCollectionNoEventViewManager EventSourceCollectionNoEventViewManager; -typedef struct _EventSourceCollectionNoEventViewManagerClass EventSourceCollectionNoEventViewManagerClass; - -#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ()) -#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor)) -#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) -#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) - -typedef struct _ViewCollectionMonitor ViewCollectionMonitor; -typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass; -#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL))) -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) -#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL))) - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_EVENT_SOURCE (event_source_get_type ()) -#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource)) -#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass)) -#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE)) -#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE)) -#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass)) - -typedef struct _EventSource EventSource; -typedef struct _EventSourceClass EventSourceClass; - -#define TYPE_EVENT (event_get_type ()) -#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event)) -#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass)) -#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT)) -#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT)) -#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass)) - -typedef struct _Event Event; -typedef struct _EventClass EventClass; - -#define TYPE_EVENT_ID (event_id_get_type ()) -typedef struct _EventID EventID; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; -typedef struct _ViewManagerPrivate ViewManagerPrivate; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; -typedef struct _EventSourceCollectionNoEventViewManagerPrivate EventSourceCollectionNoEventViewManagerPrivate; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; -enum { - EVENT_SOURCE_COLLECTION_NO_EVENT_COLLECTION_ALTERED_SIGNAL, - EVENT_SOURCE_COLLECTION_NUM_SIGNALS -}; -static guint event_source_collection_signals[EVENT_SOURCE_COLLECTION_NUM_SIGNALS] = {0}; -typedef struct _DataObjectPrivate DataObjectPrivate; -typedef struct _DataSourcePrivate DataSourcePrivate; - -#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ()) -#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)) -#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) -#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK)) -#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK)) -#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) - -typedef struct _SourceHoldingTank SourceHoldingTank; -typedef struct _SourceHoldingTankClass SourceHoldingTankClass; - -#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ()) -#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot)) -#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) -#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT)) -#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT)) -#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) - -typedef struct _SourceSnapshot SourceSnapshot; -typedef struct _SourceSnapshotClass SourceSnapshotClass; -typedef struct _ThumbnailSourcePrivate ThumbnailSourcePrivate; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) -typedef struct _EventSourcePrivate EventSourcePrivate; - -#define TYPE_PROXYABLE (proxyable_get_type ()) -#define PROXYABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROXYABLE, Proxyable)) -#define IS_PROXYABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROXYABLE)) -#define PROXYABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_PROXYABLE, ProxyableIface)) - -typedef struct _Proxyable Proxyable; -typedef struct _ProxyableIface ProxyableIface; - -#define TYPE_SOURCE_PROXY (source_proxy_get_type ()) -#define SOURCE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_PROXY, SourceProxy)) -#define SOURCE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_PROXY, SourceProxyClass)) -#define IS_SOURCE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_PROXY)) -#define IS_SOURCE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_PROXY)) -#define SOURCE_PROXY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_PROXY, SourceProxyClass)) - -typedef struct _SourceProxy SourceProxy; -typedef struct _SourceProxyClass SourceProxyClass; - -#define TYPE_INDEXABLE (indexable_get_type ()) -#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable)) -#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE)) -#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface)) - -typedef struct _Indexable Indexable; -typedef struct _IndexableIface IndexableIface; -typedef struct _EventPrivate EventPrivate; -enum { - EVENT_0_PROPERTY, - EVENT_NUM_PROPERTIES -}; -static GParamSpec* event_properties[EVENT_NUM_PROPERTIES]; - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; - -#define TYPE_EVENT_TABLE (event_table_get_type ()) -#define EVENT_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_TABLE, EventTable)) -#define EVENT_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_TABLE, EventTableClass)) -#define IS_EVENT_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_TABLE)) -#define IS_EVENT_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_TABLE)) -#define EVENT_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_TABLE, EventTableClass)) - -typedef struct _EventTable EventTable; -typedef struct _EventTableClass EventTableClass; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_EVENT_ROW (event_row_get_type ()) -#define EVENT_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_ROW, EventRow)) -#define EVENT_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_ROW, EventRowClass)) -#define IS_EVENT_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_ROW)) -#define IS_EVENT_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_ROW)) -#define EVENT_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_ROW, EventRowClass)) - -typedef struct _EventRow EventRow; -typedef struct _EventRowClass EventRowClass; -typedef struct _EventRowPrivate EventRowPrivate; - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) -#define _event_row_unref0(var) ((var == NULL) ? NULL : (var = (event_row_unref (var), NULL))) - -#define TYPE_PREPARE_INPUT_TEXT_OPTIONS (prepare_input_text_options_get_type ()) - -#define TYPE_RATING (rating_get_type ()) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _source_backlink_unref0(var) ((var == NULL) ? NULL : (var = (source_backlink_unref (var), NULL))) - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; - -#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ()) -#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController)) -#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) -#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER)) -#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER)) -#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) - -typedef struct _TransactionController TransactionController; -typedef struct _TransactionControllerClass TransactionControllerClass; - -#define TYPE_EVENT_VIEW (event_view_get_type ()) -#define EVENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_VIEW, EventView)) -#define EVENT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_VIEW, EventViewClass)) -#define IS_EVENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_VIEW)) -#define IS_EVENT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_VIEW)) -#define EVENT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_VIEW, EventViewClass)) - -typedef struct _EventView EventView; -typedef struct _EventViewClass EventViewClass; - -#define EVENT_TYPE_EVENT_SNAPSHOT (event_event_snapshot_get_type ()) -#define EVENT_EVENT_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENT_TYPE_EVENT_SNAPSHOT, EventEventSnapshot)) -#define EVENT_EVENT_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENT_TYPE_EVENT_SNAPSHOT, EventEventSnapshotClass)) -#define EVENT_IS_EVENT_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENT_TYPE_EVENT_SNAPSHOT)) -#define EVENT_IS_EVENT_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENT_TYPE_EVENT_SNAPSHOT)) -#define EVENT_EVENT_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENT_TYPE_EVENT_SNAPSHOT, EventEventSnapshotClass)) - -typedef struct _EventEventSnapshot EventEventSnapshot; -typedef struct _EventEventSnapshotClass EventEventSnapshotClass; - -#define EVENT_TYPE_EVENT_PROXY (event_event_proxy_get_type ()) -#define EVENT_EVENT_PROXY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENT_TYPE_EVENT_PROXY, EventEventProxy)) -#define EVENT_EVENT_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENT_TYPE_EVENT_PROXY, EventEventProxyClass)) -#define EVENT_IS_EVENT_PROXY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENT_TYPE_EVENT_PROXY)) -#define EVENT_IS_EVENT_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENT_TYPE_EVENT_PROXY)) -#define EVENT_EVENT_PROXY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENT_TYPE_EVENT_PROXY, EventEventProxyClass)) - -typedef struct _EventEventProxy EventEventProxy; -typedef struct _EventEventProxyClass EventEventProxyClass; - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -typedef struct _Scaling Scaling; - -#define TYPE_PHOTO_TABLE (photo_table_get_type ()) -#define PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TABLE, PhotoTable)) -#define PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TABLE, PhotoTableClass)) -#define IS_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TABLE)) -#define IS_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TABLE)) -#define PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TABLE, PhotoTableClass)) - -typedef struct _PhotoTable PhotoTable; -typedef struct _PhotoTableClass PhotoTableClass; - -#define TYPE_VIDEO_TABLE (video_table_get_type ()) -#define VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_TABLE, VideoTable)) -#define VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_TABLE, VideoTableClass)) -#define IS_VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_TABLE)) -#define IS_VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_TABLE)) -#define VIDEO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_TABLE, VideoTableClass)) - -typedef struct _VideoTable VideoTable; -typedef struct _VideoTableClass VideoTableClass; -typedef struct _SourceSnapshotPrivate SourceSnapshotPrivate; -typedef struct _EventEventSnapshotPrivate EventEventSnapshotPrivate; -typedef struct _SourceProxyPrivate SourceProxyPrivate; -typedef struct _EventEventProxyPrivate EventEventProxyPrivate; -#define _source_snapshot_unref0(var) ((var == NULL) ? NULL : (var = (source_snapshot_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -struct _DataCollection { - GTypeInstance parent_instance; - volatile int ref_count; - DataCollectionPrivate * priv; -}; - -struct _DataCollectionClass { - GTypeClass parent_class; - void (*finalize) (DataCollection *self); - gchar* (*to_string) (DataCollection* self); - void (*notify_items_added) (DataCollection* self, GeeIterable* added); - void (*notify_items_removed) (DataCollection* self, GeeIterable* removed); - void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*notify_items_altered) (DataCollection* self, GeeMap* items); - void (*notify_ordering_changed) (DataCollection* self); - void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*notify_property_cleared) (DataCollection* self, const gchar* name); - gboolean (*valid_type) (DataCollection* self, DataObject* object); - void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target); - void (*reset_comparator) (DataCollection* self); - GeeCollection* (*get_all) (DataCollection* self); - gint (*get_count) (DataCollection* self); - DataObject* (*get_at) (DataCollection* self, gint index); - gint (*index_of) (DataCollection* self, DataObject* object); - gboolean (*contains) (DataCollection* self, DataObject* object); - gboolean (*add) (DataCollection* self, DataObject* object); - GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target); - void (*remove_marked) (DataCollection* self, Marker* m); - void (*clear) (DataCollection* self); - void (*close) (DataCollection* self); - void (*notify_frozen) (DataCollection* self); - void (*notify_thawed) (DataCollection* self); - void (*items_added) (DataCollection* self, GeeIterable* added); - void (*items_removed) (DataCollection* self, GeeIterable* removed); - void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*items_altered) (DataCollection* self, GeeMap* items); - void (*ordering_changed) (DataCollection* self); - void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*property_cleared) (DataCollection* self, const gchar* name); - void (*frozen) (DataCollection* self); - void (*thawed) (DataCollection* self); -}; - -struct _SourceCollection { - DataCollection parent_instance; - SourceCollectionPrivate * priv; -}; - -struct _SourceCollectionClass { - DataCollectionClass parent_class; - gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source); - void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*notify_item_destroyed) (SourceCollection* self, DataSource* source); - void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked); - void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); - gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*item_destroyed) (SourceCollection* self, DataSource* source); - void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*unlinked_destroyed) (SourceCollection* self, DataSource* source); - void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); -}; - -struct _DatabaseSourceCollection { - SourceCollection parent_instance; - DatabaseSourceCollectionPrivate * priv; -}; - -struct _DatabaseSourceCollectionClass { - SourceCollectionClass parent_class; -}; - -struct _ContainerSourceIface { - GTypeInterface parent_iface; - gboolean (*has_links) (ContainerSource* self); - SourceBacklink* (*get_backlink) (ContainerSource* self); - void (*break_link) (ContainerSource* self, DataSource* source); - void (*break_link_many) (ContainerSource* self, GeeCollection* sources); - void (*establish_link) (ContainerSource* self, DataSource* source); - void (*establish_link_many) (ContainerSource* self, GeeCollection* sources); -}; - -struct _ContainerSourceCollection { - DatabaseSourceCollection parent_instance; - ContainerSourceCollectionPrivate * priv; -}; - -struct _ContainerSourceCollectionClass { - DatabaseSourceCollectionClass parent_class; - void (*notify_container_contents_added) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked); - void (*notify_container_contents_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked); - void (*notify_container_contents_altered) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked); - void (*notify_backlink_to_container_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources); - GeeCollection* (*get_containers_holding_source) (ContainerSourceCollection* self, DataSource* source); - ContainerSource* (*convert_backlink_to_container) (ContainerSourceCollection* self, SourceBacklink* backlink); - void (*container_contents_added) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked); - void (*container_contents_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked); - void (*container_contents_altered) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked); - void (*backlink_to_container_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources); -}; - -struct _EventSourceCollection { - ContainerSourceCollection parent_instance; - EventSourceCollectionPrivate * priv; -}; - -struct _EventSourceCollectionClass { - ContainerSourceCollectionClass parent_class; -}; - -struct _EventSourceCollectionPrivate { - ViewCollection* no_event; -}; - -typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data); -struct _EventID { - gint64 id; -}; - -struct _ViewManager { - GTypeInstance parent_instance; - volatile int ref_count; - ViewManagerPrivate * priv; -}; - -struct _ViewManagerClass { - GTypeClass parent_class; - void (*finalize) (ViewManager *self); - gboolean (*include_in_view) (ViewManager* self, DataSource* source); - DataView* (*create_view) (ViewManager* self, DataSource* source); -}; - -struct _EventSourceCollectionNoEventViewManager { - ViewManager parent_instance; - EventSourceCollectionNoEventViewManagerPrivate * priv; -}; - -struct _EventSourceCollectionNoEventViewManagerClass { - ViewManagerClass parent_class; -}; - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataSource { - DataObject parent_instance; - DataSourcePrivate * priv; -}; - -struct _DataSourceClass { - DataObjectClass parent_class; - void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank); - void (*notify_unlinking) (DataSource* self, SourceCollection* collection); - void (*notify_unlinked) (DataSource* self); - void (*notify_relinking) (DataSource* self, SourceCollection* collection); - void (*notify_relinked) (DataSource* self); - gchar* (*get_typename) (DataSource* self); - gint64 (*get_instance_id) (DataSource* self); - gchar* (*get_source_id) (DataSource* self); - void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated); - SourceSnapshot* (*save_snapshot) (DataSource* self); - gboolean (*internal_delete_backing) (DataSource* self, GError** error); - gboolean (*equals) (DataSource* self, DataSource* source); - void (*destroy) (DataSource* self); - void (*unlinked) (DataSource* self, SourceCollection* sources); - void (*relinked) (DataSource* self, SourceCollection* sources); - void (*destroyed) (DataSource* self); -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _ThumbnailSource { - DataSource parent_instance; - ThumbnailSourcePrivate * priv; -}; - -struct _ThumbnailSourceClass { - DataSourceClass parent_class; - void (*notify_thumbnail_altered) (ThumbnailSource* self); - GdkPixbuf* (*get_thumbnail) (ThumbnailSource* self, gint scale, GError** error); - GdkPixbuf* (*create_thumbnail) (ThumbnailSource* self, gint scale, GError** error); - gchar* (*get_representative_id) (ThumbnailSource* self); - PhotoFileFormat (*get_preferred_thumbnail_format) (ThumbnailSource* self); - void (*thumbnail_altered) (ThumbnailSource* self); -}; - -struct _EventSource { - ThumbnailSource parent_instance; - EventSourcePrivate * priv; -}; - -struct _EventSourceClass { - ThumbnailSourceClass parent_class; - time_t (*get_start_time) (EventSource* self); - time_t (*get_end_time) (EventSource* self); - guint64 (*get_total_filesize) (EventSource* self); - gint (*get_media_count) (EventSource* self); - GeeCollection* (*get_media) (EventSource* self); - gchar* (*get_comment) (EventSource* self); - gboolean (*set_comment) (EventSource* self, const gchar* comment); -}; - -struct _ProxyableIface { - GTypeInterface parent_iface; - SourceProxy* (*get_proxy) (Proxyable* self); -}; - -struct _IndexableIface { - GTypeInterface parent_iface; - const gchar* (*get_indexable_keywords) (Indexable* self); -}; - -struct _Event { - EventSource parent_instance; - EventPrivate * priv; -}; - -struct _EventClass { - EventSourceClass parent_class; -}; - -struct _EventPrivate { - EventID event_id; - gchar* raw_name; - MediaSource* primary_source; - ViewCollection* view; - gboolean unlinking; - gboolean relinking; - gchar* indexable_keywords; - gchar* comment; -}; - -struct _EventRow { - GTypeInstance parent_instance; - volatile int ref_count; - EventRowPrivate * priv; - EventID event_id; - gchar* name; - time_t time_created; - gchar* primary_source_id; - gchar* comment; -}; - -struct _EventRowClass { - GTypeClass parent_class; - void (*finalize) (EventRow *self); -}; - -typedef enum { - PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL = 1 << 0, - PREPARE_INPUT_TEXT_OPTIONS_VALIDATE = 1 << 1, - PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL = 1 << 2, - PREPARE_INPUT_TEXT_OPTIONS_STRIP = 1 << 3, - PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF = 1 << 4, - PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE = 1 << 5, - PREPARE_INPUT_TEXT_OPTIONS_DEFAULT = ((((PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE -} PrepareInputTextOptions; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -typedef DataView* (*CreateView) (DataSource* source, void* user_data); -typedef gboolean (*CreateViewPredicate) (DataSource* source, void* user_data); -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -struct _SourceSnapshot { - GTypeInstance parent_instance; - volatile int ref_count; - SourceSnapshotPrivate * priv; -}; - -struct _SourceSnapshotClass { - GTypeClass parent_class; - void (*finalize) (SourceSnapshot *self); - void (*notify_broken) (SourceSnapshot* self); - void (*broken) (SourceSnapshot* self); -}; - -struct _EventEventSnapshot { - SourceSnapshot parent_instance; - EventEventSnapshotPrivate * priv; -}; - -struct _EventEventSnapshotClass { - SourceSnapshotClass parent_class; -}; - -struct _EventEventSnapshotPrivate { - EventRow* row; - MediaSource* primary_source; - GeeArrayList* attached_sources; -}; - -struct _SourceProxy { - GTypeInstance parent_instance; - volatile int ref_count; - SourceProxyPrivate * priv; -}; - -struct _SourceProxyClass { - GTypeClass parent_class; - void (*finalize) (SourceProxy *self); - DataSource* (*reconstitute) (SourceProxy* self, gint64 object_id, SourceSnapshot* snapshot); - void (*notify_reconstituted) (SourceProxy* self, DataSource* source); - void (*notify_dehydrated) (SourceProxy* self); - void (*notify_broken) (SourceProxy* self); - void (*reconstituted) (SourceProxy* self, DataSource* source); - void (*dehydrated) (SourceProxy* self); - void (*broken) (SourceProxy* self); -}; - -struct _EventEventProxy { - SourceProxy parent_instance; - EventEventProxyPrivate * priv; -}; - -struct _EventEventProxyClass { - SourceProxyClass parent_class; -}; - - -static gpointer event_source_collection_parent_class = NULL; -extern LibraryPhotoSourceCollection* library_photo_global; -extern VideoSourceCollection* video_global; -static gpointer event_source_collection_no_event_view_manager_parent_class = NULL; -static gpointer event_parent_class = NULL; -extern EventSourceCollection* event_global; -EventSourceCollection* event_global = NULL; -static EventTable* event_event_table; -static EventTable* event_event_table = NULL; -static gpointer event_event_snapshot_parent_class = NULL; -static gpointer event_event_proxy_parent_class = NULL; -static ContainerSourceIface * event_container_source_parent_iface = NULL; -static ProxyableIface * event_proxyable_parent_iface = NULL; -static IndexableIface * event_indexable_parent_iface = NULL; - -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -GType marker_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -gpointer source_backlink_ref (gpointer instance); -void source_backlink_unref (gpointer instance); -GParamSpec* param_spec_source_backlink (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_backlink (GValue* value, - gpointer v_object); -void value_take_source_backlink (GValue* value, - gpointer v_object); -gpointer value_get_source_backlink (const GValue* value); -GType source_backlink_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_get_type (void) G_GNUC_CONST; -GType event_source_collection_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -#define EVENT_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionPrivate)) -EventSourceCollection* event_source_collection_new (void); -EventSourceCollection* event_source_collection_construct (GType object_type); -#define EVENT_TYPENAME "event" -static gint64 event_source_collection_get_event_key (DataSource* source); -static gint64 _event_source_collection_get_event_key_get_source_database_key (DataSource* source, - gpointer self); -ContainerSourceCollection* container_source_collection_construct (GType object_type, - const gchar* backlink_name, - const gchar* name, - GetSourceDatabaseKey source_key_func, - void* source_key_func_target); -void container_source_collection_attach_collection (ContainerSourceCollection* self, - SourceCollection* collection); -GType media_source_collection_get_type (void) G_GNUC_CONST; -GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -GType video_source_collection_get_type (void) G_GNUC_CONST; -void event_source_collection_init (EventSourceCollection* self); -ViewCollection* view_collection_new (const gchar* name); -ViewCollection* view_collection_construct (GType object_type, - const gchar* name); -gpointer view_manager_ref (gpointer instance); -void view_manager_unref (gpointer instance); -GParamSpec* param_spec_view_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_manager (GValue* value, - gpointer v_object); -void value_take_view_manager (GValue* value, - gpointer v_object); -gpointer value_get_view_manager (const GValue* value); -GType view_manager_get_type (void) G_GNUC_CONST; -static GType event_source_collection_no_event_view_manager_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static EventSourceCollectionNoEventViewManager* event_source_collection_no_event_view_manager_new (void); -static EventSourceCollectionNoEventViewManager* event_source_collection_no_event_view_manager_construct (GType object_type); -Alteration* alteration_new (const gchar* subject, - const gchar* detail); -Alteration* alteration_construct (GType object_type, - const gchar* subject, - const gchar* detail); -gpointer view_collection_monitor_ref (gpointer instance); -void view_collection_monitor_unref (gpointer instance); -GParamSpec* view_collection_param_spec_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void view_collection_value_set_monitor (GValue* value, - gpointer v_object); -void view_collection_value_take_monitor (GValue* value, - gpointer v_object); -gpointer view_collection_value_get_monitor (const GValue* value); -GType view_collection_monitor_get_type (void) G_GNUC_CONST; -ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self, - SourceCollection* sources, - ViewManager* manager, - Alteration* prereq, - GeeCollection* initial, - ProgressMonitor progress_monitor, - void* progress_monitor_target); -static void event_source_collection_on_no_event_collection_altered (EventSourceCollection* self, - GeeIterable* added, - GeeIterable* removed); -static void _event_source_collection_on_no_event_collection_altered_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self); -static gboolean event_source_collection_real_holds_type_of_source (SourceCollection* base, - DataSource* source); -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType event_source_get_type (void) G_GNUC_CONST; -GType event_get_type (void) G_GNUC_CONST; -GType event_id_get_type (void) G_GNUC_CONST; -EventID* event_id_dup (const EventID* self); -void event_id_free (EventID* self); -void event_get_event_id (Event* self, - EventID* result); -Event* event_source_collection_fetch (EventSourceCollection* self, - EventID* event_id); -DataSource* database_source_collection_fetch_by_key (DatabaseSourceCollection* self, - gint64 key); -static GeeCollection* event_source_collection_real_get_containers_holding_source (ContainerSourceCollection* base, - DataSource* source); -GType media_source_get_type (void) G_GNUC_CONST; -Event* media_source_get_event (MediaSource* self); -static ContainerSource* event_source_collection_real_convert_backlink_to_container (ContainerSourceCollection* base, - SourceBacklink* backlink); -gint64 source_backlink_get_instance_id (SourceBacklink* self); -void event_id_init (EventID *self, - gint64 id); -GeeCollection* container_source_collection_get_holding_tank (ContainerSourceCollection* self); -GeeCollection* event_source_collection_get_no_event_objects (EventSourceCollection* self); -GeeCollection* view_collection_get_sources (ViewCollection* self); -GType data_view_get_type (void) G_GNUC_CONST; -static gboolean event_source_collection_no_event_view_manager_real_include_in_view (ViewManager* base, - DataSource* source); -void media_source_get_event_id (MediaSource* self, - EventID* result); -#define EVENT_ID_INVALID ((gint64) -1) -gboolean view_manager_include_in_view (ViewManager* self, - DataSource* source); -static DataView* event_source_collection_no_event_view_manager_real_create_view (ViewManager* base, - DataSource* source); -ThumbnailView* thumbnail_view_new (ThumbnailSource* source); -ThumbnailView* thumbnail_view_construct (GType object_type, - ThumbnailSource* source); -GType thumbnail_view_get_type (void) G_GNUC_CONST; -ViewManager* view_manager_construct (GType object_type); -static void event_source_collection_finalize (DataCollection * obj); -gpointer source_holding_tank_ref (gpointer instance); -void source_holding_tank_unref (gpointer instance); -GParamSpec* param_spec_source_holding_tank (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_holding_tank (GValue* value, - gpointer v_object); -void value_take_source_holding_tank (GValue* value, - gpointer v_object); -gpointer value_get_source_holding_tank (const GValue* value); -GType source_holding_tank_get_type (void) G_GNUC_CONST; -gpointer source_snapshot_ref (gpointer instance); -void source_snapshot_unref (gpointer instance); -GParamSpec* param_spec_source_snapshot (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_snapshot (GValue* value, - gpointer v_object); -void value_take_source_snapshot (GValue* value, - gpointer v_object); -gpointer value_get_source_snapshot (const GValue* value); -GType source_snapshot_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -gpointer source_proxy_ref (gpointer instance); -void source_proxy_unref (gpointer instance); -GParamSpec* param_spec_source_proxy (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_proxy (GValue* value, - gpointer v_object); -void value_take_source_proxy (GValue* value, - gpointer v_object); -gpointer value_get_source_proxy (const GValue* value); -GType source_proxy_get_type (void) G_GNUC_CONST; -GType proxyable_get_type (void) G_GNUC_CONST; -GType indexable_get_type (void) G_GNUC_CONST; -#define EVENT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EVENT, EventPrivate)) -static void event_on_primary_thumbnail_altered (Event* self); -static void _event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered (ThumbnailSource* _sender, - gpointer self); -static void event_on_media_altered (Event* self, - GeeMap* items); -static void _event_on_media_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -static void event_on_media_removed (Event* self, - GeeIterable* removed); -static void _event_on_media_removed_data_collection_items_removed (DataCollection* _sender, - GeeIterable* removed, - gpointer self); -static void event_on_media_added (Event* self, - GeeIterable* added); -static void _event_on_media_added_data_collection_items_added (DataCollection* _sender, - GeeIterable* added, - gpointer self); -static void event_on_media_destroyed (Event* self, - DataSource* source); -static void _event_on_media_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self); -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType event_table_get_type (void) G_GNUC_CONST; -#define EVENT_PROP_SHOW_COMMENTS "show-comments" -#define EVENT_EVENT_BOUNDARY_HOUR 4 -#define EVENT_TIME_T_DAY ((time_t) ((24 * 60) * 60)) -gpointer event_row_ref (gpointer instance); -void event_row_unref (gpointer instance); -GParamSpec* param_spec_event_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_event_row (GValue* value, - gpointer v_object); -void value_take_event_row (GValue* value, - gpointer v_object); -gpointer value_get_event_row (const GValue* value); -GType event_row_get_type (void) G_GNUC_CONST; -static Event* event_new (EventRow* event_row, - gint64 object_id); -static Event* event_construct (GType object_type, - EventRow* event_row, - gint64 object_id); -EventSource* event_source_construct (GType object_type, - gint64 object_id); -gchar* event_prep_event_name (const gchar* name); -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -GeeCollection* media_collection_registry_get_source_ids_for_event_id (MediaCollectionRegistry* self, - EventID* event_id); -MediaSource* media_collection_registry_fetch_media (MediaCollectionRegistry* self, - const gchar* source_id); -void data_collection_set_comparator (DataCollection* self, - Comparator comparator, - void* comparator_target, - ComparatorPredicate predicate, - void* predicate_target); -static gint64 event_view_comparator (void* a, - void* b); -static gint64 _event_view_comparator_comparator (void* a, - void* b, - gpointer self); -static gboolean event_view_comparator_predicate (DataObject* object, - Alteration* alteration); -static gboolean _event_view_comparator_predicate_comparator_predicate (DataObject* object, - Alteration* alteration, - gpointer self); -GeeCollection* data_collection_add_many (DataCollection* self, - GeeCollection* objects, - ProgressMonitor monitor, - void* monitor_target); -void container_source_collection_notify_container_contents_added (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinked); -void container_source_collection_notify_container_contents_altered (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinked, - GeeCollection* removed, - gboolean unlinked); -gint data_collection_get_count (DataCollection* self); -DataView* view_collection_get_first_unrejected (ViewCollection* self); -DataSource* data_view_get_source (DataView* self); -gboolean event_table_set_primary_source_id (EventTable* self, - EventID* event_id, - const gchar* primary_source_id); -gchar* data_source_get_source_id (DataSource* self); -static void event_update_indexable_keywords (Event* self); -static gchar* event_real_get_typename (DataSource* base); -static gint64 event_real_get_instance_id (DataSource* base); -static gchar* event_real_get_representative_id (ThumbnailSource* base); -static PhotoFileFormat event_real_get_preferred_thumbnail_format (ThumbnailSource* base); -PhotoFileFormat thumbnail_source_get_preferred_thumbnail_format (ThumbnailSource* self); -PhotoFileFormat photo_file_format_get_system_default_format (void); -static GdkPixbuf* event_real_create_thumbnail (ThumbnailSource* base, - gint scale, - GError** error); -GdkPixbuf* thumbnail_source_create_thumbnail (ThumbnailSource* self, - gint scale, - GError** error); -void event_init (ProgressMonitor monitor, - void* monitor_target); -EventTable* event_table_get_instance (void); -GeeArrayList* event_table_get_events (EventTable* self); -#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1) -gint event_source_get_media_count (EventSource* self); -void data_source_rehydrate_backlinks (DataSource* self, - SourceCollection* unlinked_from, - const gchar* dehydrated); -void container_source_collection_init_add_many_unlinked (ContainerSourceCollection* self, - GeeCollection* unlinked); -void event_terminate (void); -time_t media_source_get_exposure_time (MediaSource* self); -gboolean alteration_has_detail (Alteration* self, - const gchar* subject, - const gchar* detail); -GType prepare_input_text_options_get_type (void) G_GNUC_CONST; -gchar* prepare_input_text (const gchar* text, - PrepareInputTextOptions options, - gint dest_length); -#define DEFAULT_USER_TEXT_INPUT_LENGTH 1024 -void event_attach (Event* self, - MediaSource* source); -gboolean data_collection_add (DataCollection* self, - DataObject* object); -void event_attach_many (Event* self, - GeeCollection* media); -void event_detach (Event* self, - MediaSource* source); -void data_collection_remove_marked (DataCollection* self, - Marker* m); -Marker* data_collection_mark (DataCollection* self, - DataObject* object); -DataView* view_collection_get_view_for_source (ViewCollection* self, - DataSource* source); -void event_detach_many (Event* self, - GeeCollection* media); -Marker* data_collection_mark_many (DataCollection* self, - GeeCollection* objects); -gboolean event_contains_media_type (Event* self, - const gchar* media_type); -GeeCollection* event_source_get_media (EventSource* self); -gchar* data_source_get_typename (DataSource* self); -static GeeArrayList* event_views_to_media (Event* self, - GeeIterable* views); -void data_object_notify_altered (DataObject* self, - Alteration* alteration); -Alteration* alteration_new_from_list (const gchar* list); -Alteration* alteration_construct_from_list (GType object_type, - const gchar* list); -void container_source_collection_notify_container_contents_removed (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* removed, - gboolean unlinked); -gboolean event_set_primary_source (Event* self, - MediaSource* source); -static void event_release_primary_source (Event* self); -void container_source_collection_evaporate (ContainerSourceCollection* self, - ContainerSource* container); -static void event_real_notify_relinking (DataSource* base, - SourceCollection* sources); -void data_source_notify_relinking (DataSource* self, - SourceCollection* collection); -gboolean event_has_name (Event* self); -MediaSource* event_get_primary_source (Event* self); -GType rating_get_type (void) G_GNUC_CONST; -Rating media_source_get_rating (MediaSource* self); -Event* event_create_empty_event (MediaSource* source); -GQuark database_error_quark (void); -EventRow* event_table_create (EventTable* self, - const gchar* primary_source_id, - const gchar* comment, - GError** error); -gchar* data_object_to_string (DataObject* self); -void app_window_database_error (GError* err); -static Event* event_reconstitute (gint64 object_id, - EventRow* row); -void event_table_create_from_row (EventTable* self, - EventRow* row, - EventID* result); -gboolean data_collection_contains (DataCollection* self, - DataObject* object); -static gboolean event_real_has_links (ContainerSource* base); -gboolean source_collection_has_backlink (SourceCollection* self, - SourceBacklink* backlink); -SourceBacklink* container_source_get_backlink (ContainerSource* self); -static SourceBacklink* event_real_get_backlink (ContainerSource* base); -SourceBacklink* source_backlink_new_from_source (DataSource* source); -SourceBacklink* source_backlink_construct_from_source (GType object_type, - DataSource* source); -static void event_real_break_link (ContainerSource* base, - DataSource* source); -gboolean media_source_set_event (MediaSource* self, - Event* new_event); -static void event_real_break_link_many (ContainerSource* base, - GeeCollection* sources); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -GType video_source_get_type (void) G_GNUC_CONST; -GType video_get_type (void) G_GNUC_CONST; -void media_source_collection_filter_media (GeeCollection* media, - GeeCollection* photos, - GeeCollection* videos); -gpointer transaction_controller_ref (gpointer instance); -void transaction_controller_unref (gpointer instance); -GParamSpec* param_spec_transaction_controller (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_transaction_controller (GValue* value, - gpointer v_object); -void value_take_transaction_controller (GValue* value, - gpointer v_object); -gpointer value_get_transaction_controller (const GValue* value); -GType transaction_controller_get_type (void) G_GNUC_CONST; -void media_source_set_many_to_event (GeeCollection* media_sources, - Event* event, - TransactionController* controller, - GError** error); -TransactionController* media_source_collection_get_transaction_controller (MediaSourceCollection* self); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -static void event_real_establish_link (ContainerSource* base, - DataSource* source); -static void event_real_establish_link_many (ContainerSource* base, - GeeCollection* sources); -gchar* event_get_raw_name (Event* self); -gchar* event_source_get_comment (EventSource* self); -gchar* indexable_prepare_indexable_string (const gchar* str); -static const gchar* event_real_get_indexable_keywords (Indexable* base); -gboolean event_is_in_starting_day (Event* self, - time_t time); -DataObject* data_collection_get_at (DataCollection* self, - gint index); -static Event* event_generate_event (MediaSource* media, - ViewCollection* events_so_far, - const gchar* event_name, - gboolean* new_event); -GType event_view_get_type (void) G_GNUC_CONST; -gchar* data_object_get_name (DataObject* self); -gboolean event_rename (Event* self, - const gchar* name); -EventView* event_view_new (EventSource* source); -EventView* event_view_construct (GType object_type, - EventSource* source); -void event_generate_single_event (MediaSource* media, - ViewCollection* events_so_far, - const gchar* event_name); -void event_generate_many_events (GeeCollection* sources, - ViewCollection* events_so_far); -static SourceSnapshot* event_real_save_snapshot (DataSource* base); -static EventEventSnapshot* event_event_snapshot_new (Event* event); -static EventEventSnapshot* event_event_snapshot_construct (GType object_type, - Event* event); -static GType event_event_snapshot_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static SourceProxy* event_real_get_proxy (Proxyable* base); -static EventEventProxy* event_event_proxy_new (Event* event); -static EventEventProxy* event_event_proxy_construct (GType object_type, - Event* event); -static GType event_event_proxy_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static gboolean event_real_equals (DataSource* base, - DataSource* source); -gboolean data_source_equals (DataSource* self, - DataSource* source); -static gchar* event_real_to_string (DataObject* base); -gint64 data_object_get_object_id (DataObject* self); -static gchar* event_real_get_name (DataObject* base); -gchar* event_get_formatted_daterange (Event* self); -gboolean is_string_empty (const gchar* s); -time_t event_source_get_start_time (EventSource* self); -time_t event_source_get_end_time (EventSource* self); -gchar* format_local_date (struct tm* date); -gchar* format_local_datespan (struct tm* from_date, - struct tm* to_date); -static gchar* event_real_get_comment (EventSource* base); -gboolean event_table_rename (EventTable* self, - EventID* event_id, - const gchar* name); -static gboolean event_real_set_comment (EventSource* base, - const gchar* comment); -gchar* media_source_prep_comment (const gchar* comment); -gboolean event_table_set_comment (EventTable* self, - EventID* event_id, - const gchar* new_comment); -time_t event_get_creation_time (Event* self); -time_t event_table_get_time_created (EventTable* self, - EventID* event_id); -static time_t event_real_get_start_time (EventSource* base); -static time_t event_real_get_end_time (EventSource* base); -static guint64 event_real_get_total_filesize (EventSource* base); -guint64 media_source_get_filesize (MediaSource* self); -static gint event_real_get_media_count (EventSource* base); -static GeeCollection* event_real_get_media (EventSource* base); -void event_mirror_photos (Event* self, - ViewCollection* view, - CreateView mirroring_ctor, - void* mirroring_ctor_target); -void view_collection_mirror (ViewCollection* self, - ViewCollection* to_mirror, - CreateView mirroring_ctor, - void* mirroring_ctor_target, - CreateViewPredicate should_mirror, - void* should_mirror_target); -void thumbnail_source_notify_thumbnail_altered (ThumbnailSource* self); -gboolean view_collection_has_view_for_source (ViewCollection* self, - DataSource* source); -static GdkPixbuf* event_real_get_thumbnail (ThumbnailSource* base, - gint scale, - GError** error); -GdkPixbuf* thumbnail_source_get_thumbnail (ThumbnailSource* self, - gint scale, - GError** error); -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -GdkPixbuf* event_get_preview_pixbuf (Event* self, - Scaling* scaling); -GdkPixbuf* media_source_get_preview_pixbuf (MediaSource* self, - Scaling* scaling, - GError** error); -static void event_real_destroy (DataSource* base); -void view_collection_halt_all_monitoring (ViewCollection* self); -void event_table_remove (EventTable* self, - EventID* event_id, - GError** error); -GType photo_table_get_type (void) G_GNUC_CONST; -PhotoTable* photo_table_get_instance (void); -gboolean photo_table_drop_event (PhotoTable* self, - EventID* event_id); -GType video_table_get_type (void) G_GNUC_CONST; -VideoTable* video_table_get_instance (void); -gboolean video_table_drop_event (VideoTable* self, - EventID* event_id); -void data_source_destroy (DataSource* self); -#define EVENT_EVENT_SNAPSHOT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EVENT_TYPE_EVENT_SNAPSHOT, EventEventSnapshotPrivate)) -static void event_event_snapshot_on_attached_source_destroyed (EventEventSnapshot* self, - DataSource* source); -static void _event_event_snapshot_on_attached_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self); -SourceSnapshot* source_snapshot_construct (GType object_type); -EventRow* event_table_get_row (EventTable* self, - EventID* event_id); -static EventRow* event_event_snapshot_get_row (EventEventSnapshot* self); -static void event_event_snapshot_real_notify_broken (SourceSnapshot* base); -EventRow* event_row_new (void); -EventRow* event_row_construct (GType object_type); -void source_snapshot_notify_broken (SourceSnapshot* self); -static void event_event_snapshot_finalize (SourceSnapshot * obj); -SourceProxy* source_proxy_construct (GType object_type, - DataSource* source); -static DataSource* event_event_proxy_real_reconstitute (SourceProxy* base, - gint64 object_id, - SourceSnapshot* snapshot); -static void event_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static gint64 -_event_source_collection_get_event_key_get_source_database_key (DataSource* source, - gpointer self) -{ - gint64 result; - result = event_source_collection_get_event_key (source); -#line 25 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 1530 "Event.c" -} - - -EventSourceCollection* -event_source_collection_construct (GType object_type) -{ - EventSourceCollection* self = NULL; - LibraryPhotoSourceCollection* _tmp0_; - VideoSourceCollection* _tmp1_; -#line 25 "/home/jens/Source/shotwell/src/Event.vala" - self = (EventSourceCollection*) container_source_collection_construct (object_type, EVENT_TYPENAME, "EventSourceCollection", _event_source_collection_get_event_key_get_source_database_key, NULL); -#line 27 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = library_photo_global; -#line 27 "/home/jens/Source/shotwell/src/Event.vala" - container_source_collection_attach_collection (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection)); -#line 28 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = video_global; -#line 28 "/home/jens/Source/shotwell/src/Event.vala" - container_source_collection_attach_collection (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_COLLECTION, SourceCollection)); -#line 24 "/home/jens/Source/shotwell/src/Event.vala" - return self; -#line 1552 "Event.c" -} - - -EventSourceCollection* -event_source_collection_new (void) -{ -#line 24 "/home/jens/Source/shotwell/src/Event.vala" - return event_source_collection_construct (TYPE_EVENT_SOURCE_COLLECTION); -#line 1561 "Event.c" -} - - -static void -_event_source_collection_on_no_event_collection_altered_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self) -{ -#line 40 "/home/jens/Source/shotwell/src/Event.vala" - event_source_collection_on_no_event_collection_altered ((EventSourceCollection*) self, added, removed); -#line 1573 "Event.c" -} - - -void -event_source_collection_init (EventSourceCollection* self) -{ - ViewCollection* _tmp0_; - EventSourceCollectionNoEventViewManager* view_manager = NULL; - EventSourceCollectionNoEventViewManager* _tmp1_; - Alteration* filter_alteration = NULL; - Alteration* _tmp2_; - ViewCollection* _tmp3_; - LibraryPhotoSourceCollection* _tmp4_; - ViewCollectionMonitor* _tmp5_; - ViewCollectionMonitor* _tmp6_; - ViewCollection* _tmp7_; - VideoSourceCollection* _tmp8_; - ViewCollectionMonitor* _tmp9_; - ViewCollectionMonitor* _tmp10_; - ViewCollection* _tmp11_; -#line 31 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_EVENT_SOURCE_COLLECTION (self)); -#line 32 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = view_collection_new ("No Event View Collection"); -#line 32 "/home/jens/Source/shotwell/src/Event.vala" - _data_collection_unref0 (self->priv->no_event); -#line 32 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->no_event = _tmp0_; -#line 34 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = event_source_collection_no_event_view_manager_new (); -#line 34 "/home/jens/Source/shotwell/src/Event.vala" - view_manager = _tmp1_; -#line 35 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = alteration_new ("metadata", "event"); -#line 35 "/home/jens/Source/shotwell/src/Event.vala" - filter_alteration = _tmp2_; -#line 37 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = self->priv->no_event; -#line 37 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = library_photo_global; -#line 37 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = view_collection_monitor_source_collection (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (view_manager, TYPE_VIEW_MANAGER, ViewManager), filter_alteration, NULL, NULL, NULL); -#line 37 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = _tmp5_; -#line 37 "/home/jens/Source/shotwell/src/Event.vala" - _view_collection_monitor_unref0 (_tmp6_); -#line 38 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = self->priv->no_event; -#line 38 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = video_global; -#line 38 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = view_collection_monitor_source_collection (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (view_manager, TYPE_VIEW_MANAGER, ViewManager), filter_alteration, NULL, NULL, NULL); -#line 38 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = _tmp9_; -#line 38 "/home/jens/Source/shotwell/src/Event.vala" - _view_collection_monitor_unref0 (_tmp10_); -#line 40 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = self->priv->no_event; -#line 40 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _event_source_collection_on_no_event_collection_altered_data_collection_contents_altered, self); -#line 31 "/home/jens/Source/shotwell/src/Event.vala" - _alteration_unref0 (filter_alteration); -#line 31 "/home/jens/Source/shotwell/src/Event.vala" - _view_manager_unref0 (view_manager); -#line 1638 "Event.c" -} - - -static gboolean -event_source_collection_real_holds_type_of_source (SourceCollection* base, - DataSource* source) -{ - EventSourceCollection * self; - gboolean result = FALSE; -#line 43 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection); -#line 43 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 44 "/home/jens/Source/shotwell/src/Event.vala" - result = G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_EVENT); -#line 44 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 1656 "Event.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 48 "/home/jens/Source/shotwell/src/Event.vala" - return self ? g_object_ref (self) : NULL; -#line 1665 "Event.c" -} - - -static gint64 -event_source_collection_get_event_key (DataSource* source) -{ - gint64 result = 0LL; - Event* event = NULL; - Event* _tmp0_; - EventID event_id = {0}; - EventID _tmp1_ = {0}; - EventID _tmp2_; - gint64 _tmp3_; -#line 47 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), 0LL); -#line 48 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT, Event)); -#line 48 "/home/jens/Source/shotwell/src/Event.vala" - event = _tmp0_; -#line 49 "/home/jens/Source/shotwell/src/Event.vala" - event_get_event_id (event, &_tmp1_); -#line 49 "/home/jens/Source/shotwell/src/Event.vala" - event_id = _tmp1_; -#line 51 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = event_id; -#line 51 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = _tmp2_.id; -#line 51 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp3_; -#line 51 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (event); -#line 51 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 1699 "Event.c" -} - - -Event* -event_source_collection_fetch (EventSourceCollection* self, - EventID* event_id) -{ - Event* result = NULL; - EventID _tmp0_; - gint64 _tmp1_; - DataSource* _tmp2_; -#line 54 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_EVENT_SOURCE_COLLECTION (self), NULL); -#line 54 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (event_id != NULL, NULL); -#line 55 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = *event_id; -#line 55 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = _tmp0_.id; -#line 55 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = database_source_collection_fetch_by_key (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), _tmp1_); -#line 55 "/home/jens/Source/shotwell/src/Event.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_EVENT, Event); -#line 55 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 1725 "Event.c" -} - - -static GeeCollection* -event_source_collection_real_get_containers_holding_source (ContainerSourceCollection* base, - DataSource* source) -{ - EventSourceCollection * self; - GeeCollection* result = NULL; - Event* event = NULL; - Event* _tmp0_; - Event* _tmp1_; - GeeArrayList* list = NULL; - GeeArrayList* _tmp2_; - GeeArrayList* _tmp3_; - Event* _tmp4_; -#line 58 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection); -#line 58 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 59 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = media_source_get_event (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource)); -#line 59 "/home/jens/Source/shotwell/src/Event.vala" - event = _tmp0_; -#line 60 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = event; -#line 60 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp1_ == NULL) { -#line 61 "/home/jens/Source/shotwell/src/Event.vala" - result = NULL; -#line 61 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (event); -#line 61 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 1760 "Event.c" - } -#line 63 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = gee_array_list_new (TYPE_CONTAINER_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 63 "/home/jens/Source/shotwell/src/Event.vala" - list = _tmp2_; -#line 64 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = list; -#line 64 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = event; -#line 64 "/home/jens/Source/shotwell/src/Event.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONTAINER_SOURCE, ContainerSource)); -#line 66 "/home/jens/Source/shotwell/src/Event.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_COLLECTION, GeeCollection); -#line 66 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (event); -#line 66 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 1778 "Event.c" -} - - -static ContainerSource* -event_source_collection_real_convert_backlink_to_container (ContainerSourceCollection* base, - SourceBacklink* backlink) -{ - EventSourceCollection * self; - ContainerSource* result = NULL; - EventID event_id = {0}; - gint64 _tmp0_; - gint64 _tmp1_; - Event* event = NULL; - EventID _tmp2_; - Event* _tmp3_; - Event* _tmp4_; -#line 69 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection); -#line 69 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_SOURCE_BACKLINK (backlink), NULL); -#line 70 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = source_backlink_get_instance_id (backlink); -#line 70 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = _tmp0_; -#line 70 "/home/jens/Source/shotwell/src/Event.vala" - event_id_init (&event_id, _tmp1_); -#line 72 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = event_id; -#line 72 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = event_source_collection_fetch (self, &_tmp2_); -#line 72 "/home/jens/Source/shotwell/src/Event.vala" - event = _tmp3_; -#line 73 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = event; -#line 73 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp4_ != NULL) { -#line 74 "/home/jens/Source/shotwell/src/Event.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_CONTAINER_SOURCE, ContainerSource); -#line 74 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 1819 "Event.c" - } - { - GeeIterator* _container_it = NULL; - GeeCollection* _tmp5_; - GeeCollection* _tmp6_; - GeeIterator* _tmp7_; - GeeIterator* _tmp8_; -#line 76 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = container_source_collection_get_holding_tank (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)); -#line 76 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = _tmp5_; -#line 76 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 76 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = _tmp7_; -#line 76 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp6_); -#line 76 "/home/jens/Source/shotwell/src/Event.vala" - _container_it = _tmp8_; -#line 76 "/home/jens/Source/shotwell/src/Event.vala" - while (TRUE) { -#line 1841 "Event.c" - GeeIterator* _tmp9_; - ContainerSource* container = NULL; - GeeIterator* _tmp10_; - gpointer _tmp11_; - ContainerSource* _tmp12_; - EventID _tmp13_ = {0}; - gint64 _tmp14_; - EventID _tmp15_; - gint64 _tmp16_; -#line 76 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = _container_it; -#line 76 "/home/jens/Source/shotwell/src/Event.vala" - if (!gee_iterator_next (_tmp9_)) { -#line 76 "/home/jens/Source/shotwell/src/Event.vala" - break; -#line 1857 "Event.c" - } -#line 76 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = _container_it; -#line 76 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = gee_iterator_get (_tmp10_); -#line 76 "/home/jens/Source/shotwell/src/Event.vala" - container = (ContainerSource*) _tmp11_; -#line 77 "/home/jens/Source/shotwell/src/Event.vala" - _tmp12_ = container; -#line 77 "/home/jens/Source/shotwell/src/Event.vala" - event_get_event_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_EVENT, Event), &_tmp13_); -#line 77 "/home/jens/Source/shotwell/src/Event.vala" - _tmp14_ = _tmp13_.id; -#line 77 "/home/jens/Source/shotwell/src/Event.vala" - _tmp15_ = event_id; -#line 77 "/home/jens/Source/shotwell/src/Event.vala" - _tmp16_ = _tmp15_.id; -#line 77 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp14_ == _tmp16_) { -#line 78 "/home/jens/Source/shotwell/src/Event.vala" - result = container; -#line 78 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_container_it); -#line 78 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (event); -#line 78 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 1885 "Event.c" - } -#line 76 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (container); -#line 1889 "Event.c" - } -#line 76 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_container_it); -#line 1893 "Event.c" - } -#line 81 "/home/jens/Source/shotwell/src/Event.vala" - result = NULL; -#line 81 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (event); -#line 81 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 1901 "Event.c" -} - - -GeeCollection* -event_source_collection_get_no_event_objects (EventSourceCollection* self) -{ - GeeCollection* result = NULL; - ViewCollection* _tmp0_; - GeeCollection* _tmp1_; -#line 84 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_EVENT_SOURCE_COLLECTION (self), NULL); -#line 85 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->no_event; -#line 85 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = view_collection_get_sources (_tmp0_); -#line 85 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp1_; -#line 85 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 1921 "Event.c" -} - - -static void -event_source_collection_on_no_event_collection_altered (EventSourceCollection* self, - GeeIterable* added, - GeeIterable* removed) -{ -#line 88 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_EVENT_SOURCE_COLLECTION (self)); -#line 88 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added)); -#line 88 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed)); -#line 90 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_emit (self, event_source_collection_signals[EVENT_SOURCE_COLLECTION_NO_EVENT_COLLECTION_ALTERED_SIGNAL], 0); -#line 1938 "Event.c" -} - - -static gboolean -event_source_collection_no_event_view_manager_real_include_in_view (ViewManager* base, - DataSource* source) -{ - EventSourceCollectionNoEventViewManager * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - EventID _tmp1_ = {0}; - gint64 _tmp2_; -#line 13 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER, EventSourceCollectionNoEventViewManager); -#line 13 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 15 "/home/jens/Source/shotwell/src/Event.vala" - media_source_get_event_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), &_tmp1_); -#line 15 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = _tmp1_.id; -#line 15 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp2_ != EVENT_ID_INVALID) { -#line 15 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = FALSE; -#line 1963 "Event.c" - } else { -#line 16 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = VIEW_MANAGER_CLASS (event_source_collection_no_event_view_manager_parent_class)->include_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_VIEW_MANAGER, ViewManager), source); -#line 1967 "Event.c" - } -#line 15 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 1973 "Event.c" -} - - -static DataView* -event_source_collection_no_event_view_manager_real_create_view (ViewManager* base, - DataSource* source) -{ - EventSourceCollectionNoEventViewManager * self; - DataView* result = NULL; - ThumbnailView* _tmp0_; -#line 19 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER, EventSourceCollectionNoEventViewManager); -#line 19 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 20 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 20 "/home/jens/Source/shotwell/src/Event.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_VIEW, DataView); -#line 20 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 1994 "Event.c" -} - - -static EventSourceCollectionNoEventViewManager* -event_source_collection_no_event_view_manager_construct (GType object_type) -{ - EventSourceCollectionNoEventViewManager* self = NULL; -#line 12 "/home/jens/Source/shotwell/src/Event.vala" - self = (EventSourceCollectionNoEventViewManager*) view_manager_construct (object_type); -#line 12 "/home/jens/Source/shotwell/src/Event.vala" - return self; -#line 2006 "Event.c" -} - - -static EventSourceCollectionNoEventViewManager* -event_source_collection_no_event_view_manager_new (void) -{ -#line 12 "/home/jens/Source/shotwell/src/Event.vala" - return event_source_collection_no_event_view_manager_construct (EVENT_SOURCE_COLLECTION_TYPE_NO_EVENT_VIEW_MANAGER); -#line 2015 "Event.c" -} - - -static void -event_source_collection_no_event_view_manager_class_init (EventSourceCollectionNoEventViewManagerClass * klass) -{ -#line 12 "/home/jens/Source/shotwell/src/Event.vala" - event_source_collection_no_event_view_manager_parent_class = g_type_class_peek_parent (klass); -#line 12 "/home/jens/Source/shotwell/src/Event.vala" - ((ViewManagerClass *) klass)->include_in_view = (gboolean (*) (ViewManager *, DataSource*)) event_source_collection_no_event_view_manager_real_include_in_view; -#line 12 "/home/jens/Source/shotwell/src/Event.vala" - ((ViewManagerClass *) klass)->create_view = (DataView* (*) (ViewManager *, DataSource*)) event_source_collection_no_event_view_manager_real_create_view; -#line 2028 "Event.c" -} - - -static void -event_source_collection_no_event_view_manager_instance_init (EventSourceCollectionNoEventViewManager * self) -{ -} - - -static GType -event_source_collection_no_event_view_manager_get_type (void) -{ - static volatile gsize event_source_collection_no_event_view_manager_type_id__volatile = 0; - if (g_once_init_enter (&event_source_collection_no_event_view_manager_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventSourceCollectionNoEventViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_source_collection_no_event_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventSourceCollectionNoEventViewManager), 0, (GInstanceInitFunc) event_source_collection_no_event_view_manager_instance_init, NULL }; - GType event_source_collection_no_event_view_manager_type_id; - event_source_collection_no_event_view_manager_type_id = g_type_register_static (TYPE_VIEW_MANAGER, "EventSourceCollectionNoEventViewManager", &g_define_type_info, 0); - g_once_init_leave (&event_source_collection_no_event_view_manager_type_id__volatile, event_source_collection_no_event_view_manager_type_id); - } - return event_source_collection_no_event_view_manager_type_id__volatile; -} - - -static void -event_source_collection_class_init (EventSourceCollectionClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/Event.vala" - event_source_collection_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/Event.vala" - ((DataCollectionClass *) klass)->finalize = event_source_collection_finalize; -#line 7 "/home/jens/Source/shotwell/src/Event.vala" - g_type_class_add_private (klass, sizeof (EventSourceCollectionPrivate)); -#line 7 "/home/jens/Source/shotwell/src/Event.vala" - ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*) (SourceCollection *, DataSource*)) event_source_collection_real_holds_type_of_source; -#line 7 "/home/jens/Source/shotwell/src/Event.vala" - ((ContainerSourceCollectionClass *) klass)->get_containers_holding_source = (GeeCollection* (*) (ContainerSourceCollection *, DataSource*)) event_source_collection_real_get_containers_holding_source; -#line 7 "/home/jens/Source/shotwell/src/Event.vala" - ((ContainerSourceCollectionClass *) klass)->convert_backlink_to_container = (ContainerSource* (*) (ContainerSourceCollection *, SourceBacklink*)) event_source_collection_real_convert_backlink_to_container; -#line 7 "/home/jens/Source/shotwell/src/Event.vala" - event_source_collection_signals[EVENT_SOURCE_COLLECTION_NO_EVENT_COLLECTION_ALTERED_SIGNAL] = g_signal_new ("no-event-collection-altered", TYPE_EVENT_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 2069 "Event.c" -} - - -static void -event_source_collection_instance_init (EventSourceCollection * self) -{ -#line 7 "/home/jens/Source/shotwell/src/Event.vala" - self->priv = EVENT_SOURCE_COLLECTION_GET_PRIVATE (self); -#line 2078 "Event.c" -} - - -static void -event_source_collection_finalize (DataCollection * obj) -{ - EventSourceCollection * self; -#line 7 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection); -#line 10 "/home/jens/Source/shotwell/src/Event.vala" - _data_collection_unref0 (self->priv->no_event); -#line 7 "/home/jens/Source/shotwell/src/Event.vala" - DATA_COLLECTION_CLASS (event_source_collection_parent_class)->finalize (obj); -#line 2092 "Event.c" -} - - -GType -event_source_collection_get_type (void) -{ - static volatile gsize event_source_collection_type_id__volatile = 0; - if (g_once_init_enter (&event_source_collection_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventSourceCollection), 0, (GInstanceInitFunc) event_source_collection_instance_init, NULL }; - GType event_source_collection_type_id; - event_source_collection_type_id = g_type_register_static (TYPE_CONTAINER_SOURCE_COLLECTION, "EventSourceCollection", &g_define_type_info, 0); - g_once_init_leave (&event_source_collection_type_id__volatile, event_source_collection_type_id); - } - return event_source_collection_type_id__volatile; -} - - -static void -_event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered (ThumbnailSource* _sender, - gpointer self) -{ -#line 238 "/home/jens/Source/shotwell/src/Event.vala" - event_on_primary_thumbnail_altered ((Event*) self); -#line 2116 "Event.c" -} - - -static void -_event_on_media_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 240 "/home/jens/Source/shotwell/src/Event.vala" - event_on_media_altered ((Event*) self, items); -#line 2127 "Event.c" -} - - -static void -_event_on_media_removed_data_collection_items_removed (DataCollection* _sender, - GeeIterable* removed, - gpointer self) -{ -#line 241 "/home/jens/Source/shotwell/src/Event.vala" - event_on_media_removed ((Event*) self, removed); -#line 2138 "Event.c" -} - - -static void -_event_on_media_added_data_collection_items_added (DataCollection* _sender, - GeeIterable* added, - gpointer self) -{ -#line 242 "/home/jens/Source/shotwell/src/Event.vala" - event_on_media_added ((Event*) self, added); -#line 2149 "Event.c" -} - - -static void -_event_on_media_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self) -{ -#line 244 "/home/jens/Source/shotwell/src/Event.vala" - event_on_media_destroyed ((Event*) self, source); -#line 2160 "Event.c" -} - - -static gint64 -_event_view_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = event_view_comparator (a, b); -#line 201 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 2173 "Event.c" -} - - -static gboolean -_event_view_comparator_predicate_comparator_predicate (DataObject* object, - Alteration* alteration, - gpointer self) -{ - gboolean result; - result = event_view_comparator_predicate (object, alteration); -#line 201 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 2186 "Event.c" -} - - -static Event* -event_construct (GType object_type, - EventRow* event_row, - gint64 object_id) -{ - Event * self = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; - EventID _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - GeeCollection* event_source_ids = NULL; - MediaCollectionRegistry* _tmp7_; - MediaCollectionRegistry* _tmp8_; - EventID _tmp9_; - GeeCollection* _tmp10_; - GeeCollection* _tmp11_; - GeeArrayList* event_thumbs = NULL; - GeeArrayList* _tmp12_; - EventID _tmp28_; - gint64 _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - ViewCollection* _tmp34_; - ViewCollection* _tmp35_; - ViewCollection* _tmp36_; - GeeArrayList* _tmp37_; - GeeCollection* _tmp38_; - GeeCollection* _tmp39_; - GeeArrayList* _tmp40_; - gint _tmp41_; - gint _tmp42_; - MediaCollectionRegistry* _tmp47_; - MediaCollectionRegistry* _tmp48_; - const gchar* _tmp49_; - MediaSource* _tmp50_; - gboolean _tmp51_ = FALSE; - MediaSource* _tmp52_; - MediaSource* _tmp63_; - ViewCollection* _tmp65_; - ViewCollection* _tmp66_; - ViewCollection* _tmp67_; - LibraryPhotoSourceCollection* _tmp68_; - VideoSourceCollection* _tmp69_; -#line 180 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_EVENT_ROW (event_row), NULL); -#line 181 "/home/jens/Source/shotwell/src/Event.vala" - self = (Event*) event_source_construct (object_type, object_id); -#line 184 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = event_row->name; -#line 184 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = event_prep_event_name (_tmp0_); -#line 184 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (event_row->name); -#line 184 "/home/jens/Source/shotwell/src/Event.vala" - event_row->name = _tmp1_; -#line 186 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = event_row->event_id; -#line 186 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->event_id = _tmp2_; -#line 187 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = event_row->name; -#line 187 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = g_strdup (_tmp3_); -#line 187 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (self->priv->raw_name); -#line 187 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->raw_name = _tmp4_; -#line 188 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = event_row->comment; -#line 188 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 188 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (self->priv->comment); -#line 188 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->comment = _tmp6_; -#line 190 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = media_collection_registry_get_instance (); -#line 190 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = _tmp7_; -#line 190 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = self->priv->event_id; -#line 190 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = media_collection_registry_get_source_ids_for_event_id (_tmp8_, &_tmp9_); -#line 190 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = _tmp10_; -#line 190 "/home/jens/Source/shotwell/src/Event.vala" - _media_collection_registry_unref0 (_tmp8_); -#line 190 "/home/jens/Source/shotwell/src/Event.vala" - event_source_ids = _tmp11_; -#line 192 "/home/jens/Source/shotwell/src/Event.vala" - _tmp12_ = gee_array_list_new (TYPE_THUMBNAIL_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 192 "/home/jens/Source/shotwell/src/Event.vala" - event_thumbs = _tmp12_; -#line 2288 "Event.c" - { - GeeIterator* _current_source_id_it = NULL; - GeeCollection* _tmp13_; - GeeIterator* _tmp14_; -#line 193 "/home/jens/Source/shotwell/src/Event.vala" - _tmp13_ = event_source_ids; -#line 193 "/home/jens/Source/shotwell/src/Event.vala" - _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 193 "/home/jens/Source/shotwell/src/Event.vala" - _current_source_id_it = _tmp14_; -#line 193 "/home/jens/Source/shotwell/src/Event.vala" - while (TRUE) { -#line 2301 "Event.c" - GeeIterator* _tmp15_; - gchar* current_source_id = NULL; - GeeIterator* _tmp16_; - gpointer _tmp17_; - MediaSource* media = NULL; - MediaCollectionRegistry* _tmp18_; - MediaCollectionRegistry* _tmp19_; - const gchar* _tmp20_; - MediaSource* _tmp21_; - MediaSource* _tmp22_; - MediaSource* _tmp23_; -#line 193 "/home/jens/Source/shotwell/src/Event.vala" - _tmp15_ = _current_source_id_it; -#line 193 "/home/jens/Source/shotwell/src/Event.vala" - if (!gee_iterator_next (_tmp15_)) { -#line 193 "/home/jens/Source/shotwell/src/Event.vala" - break; -#line 2319 "Event.c" - } -#line 193 "/home/jens/Source/shotwell/src/Event.vala" - _tmp16_ = _current_source_id_it; -#line 193 "/home/jens/Source/shotwell/src/Event.vala" - _tmp17_ = gee_iterator_get (_tmp16_); -#line 193 "/home/jens/Source/shotwell/src/Event.vala" - current_source_id = (gchar*) _tmp17_; -#line 194 "/home/jens/Source/shotwell/src/Event.vala" - _tmp18_ = media_collection_registry_get_instance (); -#line 194 "/home/jens/Source/shotwell/src/Event.vala" - _tmp19_ = _tmp18_; -#line 194 "/home/jens/Source/shotwell/src/Event.vala" - _tmp20_ = current_source_id; -#line 194 "/home/jens/Source/shotwell/src/Event.vala" - _tmp21_ = media_collection_registry_fetch_media (_tmp19_, _tmp20_); -#line 194 "/home/jens/Source/shotwell/src/Event.vala" - _tmp22_ = _tmp21_; -#line 194 "/home/jens/Source/shotwell/src/Event.vala" - _media_collection_registry_unref0 (_tmp19_); -#line 194 "/home/jens/Source/shotwell/src/Event.vala" - media = _tmp22_; -#line 196 "/home/jens/Source/shotwell/src/Event.vala" - _tmp23_ = media; -#line 196 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp23_ != NULL) { -#line 2345 "Event.c" - GeeArrayList* _tmp24_; - MediaSource* _tmp25_; - ThumbnailView* _tmp26_; - ThumbnailView* _tmp27_; -#line 197 "/home/jens/Source/shotwell/src/Event.vala" - _tmp24_ = event_thumbs; -#line 197 "/home/jens/Source/shotwell/src/Event.vala" - _tmp25_ = media; -#line 197 "/home/jens/Source/shotwell/src/Event.vala" - _tmp26_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 197 "/home/jens/Source/shotwell/src/Event.vala" - _tmp27_ = _tmp26_; -#line 197 "/home/jens/Source/shotwell/src/Event.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp27_); -#line 197 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp27_); -#line 2362 "Event.c" - } -#line 193 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (media); -#line 193 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (current_source_id); -#line 2368 "Event.c" - } -#line 193 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_current_source_id_it); -#line 2372 "Event.c" - } -#line 200 "/home/jens/Source/shotwell/src/Event.vala" - _tmp28_ = self->priv->event_id; -#line 200 "/home/jens/Source/shotwell/src/Event.vala" - _tmp29_ = _tmp28_.id; -#line 200 "/home/jens/Source/shotwell/src/Event.vala" - _tmp30_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp29_); -#line 200 "/home/jens/Source/shotwell/src/Event.vala" - _tmp31_ = _tmp30_; -#line 200 "/home/jens/Source/shotwell/src/Event.vala" - _tmp32_ = g_strdup_printf ("ViewCollection for Event %s", _tmp31_); -#line 200 "/home/jens/Source/shotwell/src/Event.vala" - _tmp33_ = _tmp32_; -#line 200 "/home/jens/Source/shotwell/src/Event.vala" - _tmp34_ = view_collection_new (_tmp33_); -#line 200 "/home/jens/Source/shotwell/src/Event.vala" - _data_collection_unref0 (self->priv->view); -#line 200 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->view = _tmp34_; -#line 200 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp33_); -#line 200 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp31_); -#line 201 "/home/jens/Source/shotwell/src/Event.vala" - _tmp35_ = self->priv->view; -#line 201 "/home/jens/Source/shotwell/src/Event.vala" - data_collection_set_comparator (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_DATA_COLLECTION, DataCollection), _event_view_comparator_comparator, NULL, _event_view_comparator_predicate_comparator_predicate, NULL); -#line 202 "/home/jens/Source/shotwell/src/Event.vala" - _tmp36_ = self->priv->view; -#line 202 "/home/jens/Source/shotwell/src/Event.vala" - _tmp37_ = event_thumbs; -#line 202 "/home/jens/Source/shotwell/src/Event.vala" - _tmp38_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL); -#line 202 "/home/jens/Source/shotwell/src/Event.vala" - _tmp39_ = _tmp38_; -#line 202 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp39_); -#line 206 "/home/jens/Source/shotwell/src/Event.vala" - _tmp40_ = event_thumbs; -#line 206 "/home/jens/Source/shotwell/src/Event.vala" - _tmp41_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 206 "/home/jens/Source/shotwell/src/Event.vala" - _tmp42_ = _tmp41_; -#line 206 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp42_ > 0) { -#line 2418 "Event.c" - EventSourceCollection* _tmp43_; - GeeArrayList* _tmp44_; - EventSourceCollection* _tmp45_; - GeeArrayList* _tmp46_; -#line 207 "/home/jens/Source/shotwell/src/Event.vala" - _tmp43_ = event_global; -#line 207 "/home/jens/Source/shotwell/src/Event.vala" - _tmp44_ = event_thumbs; -#line 207 "/home/jens/Source/shotwell/src/Event.vala" - container_source_collection_notify_container_contents_added (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_COLLECTION, GeeCollection), FALSE); -#line 208 "/home/jens/Source/shotwell/src/Event.vala" - _tmp45_ = event_global; -#line 208 "/home/jens/Source/shotwell/src/Event.vala" - _tmp46_ = event_thumbs; -#line 208 "/home/jens/Source/shotwell/src/Event.vala" - container_source_collection_notify_container_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_COLLECTION, GeeCollection), FALSE, NULL, FALSE); -#line 2435 "Event.c" - } -#line 213 "/home/jens/Source/shotwell/src/Event.vala" - _tmp47_ = media_collection_registry_get_instance (); -#line 213 "/home/jens/Source/shotwell/src/Event.vala" - _tmp48_ = _tmp47_; -#line 213 "/home/jens/Source/shotwell/src/Event.vala" - _tmp49_ = event_row->primary_source_id; -#line 213 "/home/jens/Source/shotwell/src/Event.vala" - _tmp50_ = media_collection_registry_fetch_media (_tmp48_, _tmp49_); -#line 213 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (self->priv->primary_source); -#line 213 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->primary_source = _tmp50_; -#line 213 "/home/jens/Source/shotwell/src/Event.vala" - _media_collection_registry_unref0 (_tmp48_); -#line 214 "/home/jens/Source/shotwell/src/Event.vala" - _tmp52_ = self->priv->primary_source; -#line 214 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp52_ == NULL) { -#line 2455 "Event.c" - ViewCollection* _tmp53_; -#line 214 "/home/jens/Source/shotwell/src/Event.vala" - _tmp53_ = self->priv->view; -#line 214 "/home/jens/Source/shotwell/src/Event.vala" - _tmp51_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, TYPE_DATA_COLLECTION, DataCollection)) > 0; -#line 2461 "Event.c" - } else { -#line 214 "/home/jens/Source/shotwell/src/Event.vala" - _tmp51_ = FALSE; -#line 2465 "Event.c" - } -#line 214 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp51_) { -#line 2469 "Event.c" - ViewCollection* _tmp54_; - DataView* _tmp55_; - DataView* _tmp56_; - DataSource* _tmp57_; - EventTable* _tmp58_; - EventID _tmp59_; - MediaSource* _tmp60_; - gchar* _tmp61_; - gchar* _tmp62_; -#line 215 "/home/jens/Source/shotwell/src/Event.vala" - _tmp54_ = self->priv->view; -#line 215 "/home/jens/Source/shotwell/src/Event.vala" - _tmp55_ = view_collection_get_first_unrejected (_tmp54_); -#line 215 "/home/jens/Source/shotwell/src/Event.vala" - _tmp56_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_DATA_VIEW, DataView); -#line 215 "/home/jens/Source/shotwell/src/Event.vala" - _tmp57_ = data_view_get_source (_tmp56_); -#line 215 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (self->priv->primary_source); -#line 215 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->primary_source = G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, TYPE_MEDIA_SOURCE, MediaSource); -#line 215 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp56_); -#line 216 "/home/jens/Source/shotwell/src/Event.vala" - _tmp58_ = event_event_table; -#line 216 "/home/jens/Source/shotwell/src/Event.vala" - _tmp59_ = self->priv->event_id; -#line 216 "/home/jens/Source/shotwell/src/Event.vala" - _tmp60_ = self->priv->primary_source; -#line 216 "/home/jens/Source/shotwell/src/Event.vala" - _tmp61_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_DATA_SOURCE, DataSource)); -#line 216 "/home/jens/Source/shotwell/src/Event.vala" - _tmp62_ = _tmp61_; -#line 216 "/home/jens/Source/shotwell/src/Event.vala" - event_table_set_primary_source_id (_tmp58_, &_tmp59_, _tmp62_); -#line 216 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp62_); -#line 2507 "Event.c" - } -#line 220 "/home/jens/Source/shotwell/src/Event.vala" - _tmp63_ = self->priv->primary_source; -#line 220 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp63_ != NULL) { -#line 2513 "Event.c" - MediaSource* _tmp64_; -#line 221 "/home/jens/Source/shotwell/src/Event.vala" - _tmp64_ = self->priv->primary_source; -#line 221 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), "thumbnail-altered", (GCallback) _event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered, self, 0); -#line 2519 "Event.c" - } -#line 224 "/home/jens/Source/shotwell/src/Event.vala" - _tmp65_ = self->priv->view; -#line 224 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, TYPE_DATA_COLLECTION, DataCollection), "items-added", (GCallback) _event_on_media_added_data_collection_items_added, self, 0); -#line 225 "/home/jens/Source/shotwell/src/Event.vala" - _tmp66_ = self->priv->view; -#line 225 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, TYPE_DATA_COLLECTION, DataCollection), "items-removed", (GCallback) _event_on_media_removed_data_collection_items_removed, self, 0); -#line 226 "/home/jens/Source/shotwell/src/Event.vala" - _tmp67_ = self->priv->view; -#line 226 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _event_on_media_altered_data_collection_items_altered, self, 0); -#line 230 "/home/jens/Source/shotwell/src/Event.vala" - _tmp68_ = library_photo_global; -#line 230 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _event_on_media_destroyed_source_collection_item_destroyed, self, 0); -#line 231 "/home/jens/Source/shotwell/src/Event.vala" - _tmp69_ = video_global; -#line 231 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _event_on_media_destroyed_source_collection_item_destroyed, self, 0); -#line 233 "/home/jens/Source/shotwell/src/Event.vala" - event_update_indexable_keywords (self); -#line 180 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (event_thumbs); -#line 180 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (event_source_ids); -#line 180 "/home/jens/Source/shotwell/src/Event.vala" - return self; -#line 2549 "Event.c" -} - - -static Event* -event_new (EventRow* event_row, - gint64 object_id) -{ -#line 180 "/home/jens/Source/shotwell/src/Event.vala" - return event_construct (TYPE_EVENT, event_row, object_id); -#line 2559 "Event.c" -} - - -static gchar* -event_real_get_typename (DataSource* base) -{ - Event * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 248 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 249 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = g_strdup (EVENT_TYPENAME); -#line 249 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp0_; -#line 249 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 2577 "Event.c" -} - - -static gint64 -event_real_get_instance_id (DataSource* base) -{ - Event * self; - gint64 result = 0LL; - EventID _tmp0_ = {0}; - gint64 _tmp1_; -#line 252 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 253 "/home/jens/Source/shotwell/src/Event.vala" - event_get_event_id (self, &_tmp0_); -#line 253 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = _tmp0_.id; -#line 253 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp1_; -#line 253 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 2598 "Event.c" -} - - -static gchar* -event_real_get_representative_id (ThumbnailSource* base) -{ - Event * self; - gchar* result = NULL; - gchar* _tmp0_ = NULL; - MediaSource* _tmp1_; -#line 256 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 257 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = self->priv->primary_source; -#line 257 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp1_ != NULL) { -#line 2615 "Event.c" - MediaSource* _tmp2_; - gchar* _tmp3_; -#line 257 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = self->priv->primary_source; -#line 257 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_SOURCE, DataSource)); -#line 257 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp0_); -#line 257 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = _tmp3_; -#line 2626 "Event.c" - } else { - gchar* _tmp4_; -#line 257 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource)); -#line 257 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp0_); -#line 257 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = _tmp4_; -#line 2635 "Event.c" - } -#line 257 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp0_; -#line 257 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 2641 "Event.c" -} - - -static PhotoFileFormat -event_real_get_preferred_thumbnail_format (ThumbnailSource* base) -{ - Event * self; - PhotoFileFormat result = 0; - PhotoFileFormat _tmp0_ = 0; - MediaSource* _tmp1_; -#line 260 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 261 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = self->priv->primary_source; -#line 261 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp1_ != NULL) { -#line 2658 "Event.c" - MediaSource* _tmp2_; -#line 261 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = self->priv->primary_source; -#line 261 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = thumbnail_source_get_preferred_thumbnail_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 2664 "Event.c" - } else { -#line 262 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = photo_file_format_get_system_default_format (); -#line 2668 "Event.c" - } -#line 261 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp0_; -#line 261 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 2674 "Event.c" -} - - -static GdkPixbuf* -event_real_create_thumbnail (ThumbnailSource* base, - gint scale, - GError** error) -{ - Event * self; - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_ = NULL; - MediaSource* _tmp1_; - GError * _inner_error_ = NULL; -#line 265 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 266 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = self->priv->primary_source; -#line 266 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp1_ != NULL) { -#line 2694 "Event.c" - MediaSource* _tmp2_; - GdkPixbuf* _tmp3_; -#line 266 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = self->priv->primary_source; -#line 266 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = thumbnail_source_create_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), scale, &_inner_error_); -#line 266 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp0_); -#line 266 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = _tmp3_; -#line 266 "/home/jens/Source/shotwell/src/Event.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 266 "/home/jens/Source/shotwell/src/Event.vala" - g_propagate_error (error, _inner_error_); -#line 266 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp0_); -#line 266 "/home/jens/Source/shotwell/src/Event.vala" - return NULL; -#line 2713 "Event.c" - } - } else { -#line 266 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp0_); -#line 266 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = NULL; -#line 2720 "Event.c" - } -#line 266 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp0_; -#line 266 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 2726 "Event.c" -} - - -void -event_init (ProgressMonitor monitor, - void* monitor_target) -{ - EventTable* _tmp0_; - EventSourceCollection* _tmp1_; - EventSourceCollection* _tmp2_; - GeeArrayList* events = NULL; - GeeArrayList* _tmp3_; - GeeArrayList* unlinked = NULL; - GeeArrayList* _tmp4_; - GeeArrayList* event_rows = NULL; - EventTable* _tmp5_; - GeeArrayList* _tmp6_; - gint count = 0; - GeeArrayList* _tmp7_; - gint _tmp8_; - gint _tmp9_; - EventSourceCollection* _tmp29_; - GeeArrayList* _tmp30_; - GeeCollection* _tmp31_; - GeeCollection* _tmp32_; - EventSourceCollection* _tmp33_; - GeeArrayList* _tmp34_; -#line 270 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = event_table_get_instance (); -#line 270 "/home/jens/Source/shotwell/src/Event.vala" - _database_table_unref0 (event_event_table); -#line 270 "/home/jens/Source/shotwell/src/Event.vala" - event_event_table = _tmp0_; -#line 271 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = event_source_collection_new (); -#line 271 "/home/jens/Source/shotwell/src/Event.vala" - _data_collection_unref0 (event_global); -#line 271 "/home/jens/Source/shotwell/src/Event.vala" - event_global = _tmp1_; -#line 272 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = event_global; -#line 272 "/home/jens/Source/shotwell/src/Event.vala" - event_source_collection_init (_tmp2_); -#line 275 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = gee_array_list_new (TYPE_EVENT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 275 "/home/jens/Source/shotwell/src/Event.vala" - events = _tmp3_; -#line 276 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = gee_array_list_new (TYPE_EVENT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 276 "/home/jens/Source/shotwell/src/Event.vala" - unlinked = _tmp4_; -#line 278 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = event_event_table; -#line 278 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = event_table_get_events (_tmp5_); -#line 278 "/home/jens/Source/shotwell/src/Event.vala" - event_rows = _tmp6_; -#line 279 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = event_rows; -#line 279 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 279 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = _tmp8_; -#line 279 "/home/jens/Source/shotwell/src/Event.vala" - count = _tmp9_; -#line 2792 "Event.c" - { - gint ctr = 0; -#line 280 "/home/jens/Source/shotwell/src/Event.vala" - ctr = 0; -#line 2797 "Event.c" - { - gboolean _tmp10_ = FALSE; -#line 280 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = TRUE; -#line 280 "/home/jens/Source/shotwell/src/Event.vala" - while (TRUE) { -#line 2804 "Event.c" - gint _tmp12_; - gint _tmp13_; - Event* event = NULL; - GeeArrayList* _tmp14_; - gint _tmp15_; - gpointer _tmp16_; - EventRow* _tmp17_; - Event* _tmp18_; - Event* _tmp19_; - Event* _tmp22_; - Event* _tmp25_; - EventSourceCollection* _tmp26_; - GeeArrayList* _tmp27_; - Event* _tmp28_; -#line 280 "/home/jens/Source/shotwell/src/Event.vala" - if (!_tmp10_) { -#line 2821 "Event.c" - gint _tmp11_; -#line 280 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = ctr; -#line 280 "/home/jens/Source/shotwell/src/Event.vala" - ctr = _tmp11_ + 1; -#line 2827 "Event.c" - } -#line 280 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = FALSE; -#line 280 "/home/jens/Source/shotwell/src/Event.vala" - _tmp12_ = ctr; -#line 280 "/home/jens/Source/shotwell/src/Event.vala" - _tmp13_ = count; -#line 280 "/home/jens/Source/shotwell/src/Event.vala" - if (!(_tmp12_ < _tmp13_)) { -#line 280 "/home/jens/Source/shotwell/src/Event.vala" - break; -#line 2839 "Event.c" - } -#line 281 "/home/jens/Source/shotwell/src/Event.vala" - _tmp14_ = event_rows; -#line 281 "/home/jens/Source/shotwell/src/Event.vala" - _tmp15_ = ctr; -#line 281 "/home/jens/Source/shotwell/src/Event.vala" - _tmp16_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp15_); -#line 281 "/home/jens/Source/shotwell/src/Event.vala" - _tmp17_ = (EventRow*) _tmp16_; -#line 281 "/home/jens/Source/shotwell/src/Event.vala" - _tmp18_ = event_new (_tmp17_, DATA_OBJECT_INVALID_OBJECT_ID); -#line 281 "/home/jens/Source/shotwell/src/Event.vala" - _tmp19_ = _tmp18_; -#line 281 "/home/jens/Source/shotwell/src/Event.vala" - _event_row_unref0 (_tmp17_); -#line 281 "/home/jens/Source/shotwell/src/Event.vala" - event = _tmp19_; -#line 282 "/home/jens/Source/shotwell/src/Event.vala" - if (monitor != NULL) { -#line 2859 "Event.c" - gint _tmp20_; - gint _tmp21_; -#line 283 "/home/jens/Source/shotwell/src/Event.vala" - _tmp20_ = ctr; -#line 283 "/home/jens/Source/shotwell/src/Event.vala" - _tmp21_ = count; -#line 283 "/home/jens/Source/shotwell/src/Event.vala" - monitor ((guint64) _tmp20_, (guint64) _tmp21_, TRUE, monitor_target); -#line 2868 "Event.c" - } -#line 285 "/home/jens/Source/shotwell/src/Event.vala" - _tmp22_ = event; -#line 285 "/home/jens/Source/shotwell/src/Event.vala" - if (event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_EVENT_SOURCE, EventSource)) != 0) { -#line 2874 "Event.c" - GeeArrayList* _tmp23_; - Event* _tmp24_; -#line 286 "/home/jens/Source/shotwell/src/Event.vala" - _tmp23_ = events; -#line 286 "/home/jens/Source/shotwell/src/Event.vala" - _tmp24_ = event; -#line 286 "/home/jens/Source/shotwell/src/Event.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp24_); -#line 288 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (event); -#line 288 "/home/jens/Source/shotwell/src/Event.vala" - continue; -#line 2887 "Event.c" - } -#line 294 "/home/jens/Source/shotwell/src/Event.vala" - _tmp25_ = event; -#line 294 "/home/jens/Source/shotwell/src/Event.vala" - _tmp26_ = event_global; -#line 294 "/home/jens/Source/shotwell/src/Event.vala" - data_source_rehydrate_backlinks (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_SOURCE_COLLECTION, SourceCollection), NULL); -#line 295 "/home/jens/Source/shotwell/src/Event.vala" - _tmp27_ = unlinked; -#line 295 "/home/jens/Source/shotwell/src/Event.vala" - _tmp28_ = event; -#line 295 "/home/jens/Source/shotwell/src/Event.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp28_); -#line 280 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (event); -#line 2903 "Event.c" - } - } - } -#line 298 "/home/jens/Source/shotwell/src/Event.vala" - _tmp29_ = event_global; -#line 298 "/home/jens/Source/shotwell/src/Event.vala" - _tmp30_ = events; -#line 298 "/home/jens/Source/shotwell/src/Event.vala" - _tmp31_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL); -#line 298 "/home/jens/Source/shotwell/src/Event.vala" - _tmp32_ = _tmp31_; -#line 298 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp32_); -#line 299 "/home/jens/Source/shotwell/src/Event.vala" - _tmp33_ = event_global; -#line 299 "/home/jens/Source/shotwell/src/Event.vala" - _tmp34_ = unlinked; -#line 299 "/home/jens/Source/shotwell/src/Event.vala" - container_source_collection_init_add_many_unlinked (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 269 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (event_rows); -#line 269 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (unlinked); -#line 269 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (events); -#line 2929 "Event.c" -} - - -void -event_terminate (void) -{ -} - - -static gint64 -event_view_comparator (void* a, - void* b) -{ - gint64 result = 0LL; - DataSource* _tmp0_; - MediaSource* _tmp1_; - DataSource* _tmp2_; - MediaSource* _tmp3_; - gint64 _tmp4_; -#line 306 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST ((ThumbnailView*) a, TYPE_DATA_VIEW, DataView)); -#line 306 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource); -#line 306 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST ((ThumbnailView*) b, TYPE_DATA_VIEW, DataView)); -#line 306 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE, MediaSource); -#line 306 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = (gint64) (media_source_get_exposure_time (_tmp1_) - media_source_get_exposure_time (_tmp3_)); -#line 306 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp3_); -#line 306 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp1_); -#line 306 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp4_; -#line 306 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 2967 "Event.c" -} - - -static gboolean -event_view_comparator_predicate (DataObject* object, - Alteration* alteration) -{ - gboolean result = FALSE; -#line 310 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 310 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_ALTERATION (alteration), FALSE); -#line 311 "/home/jens/Source/shotwell/src/Event.vala" - result = alteration_has_detail (alteration, "metadata", "exposure-time"); -#line 311 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 2984 "Event.c" -} - - -gchar* -event_prep_event_name (const gchar* name) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 319 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = prepare_input_text (name, (((PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF, DEFAULT_USER_TEXT_INPUT_LENGTH); -#line 319 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp0_; -#line 319 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 2999 "Event.c" -} - - -void -event_attach (Event* self, - MediaSource* source) -{ - ViewCollection* _tmp0_; - ThumbnailView* _tmp1_; - ThumbnailView* _tmp2_; -#line 327 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_EVENT (self)); -#line 327 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_MEDIA_SOURCE (source)); -#line 328 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->view; -#line 328 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 328 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = _tmp1_; -#line 328 "/home/jens/Source/shotwell/src/Event.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_OBJECT, DataObject)); -#line 328 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp2_); -#line 3024 "Event.c" -} - - -void -event_attach_many (Event* self, - GeeCollection* media) -{ - GeeArrayList* views = NULL; - GeeArrayList* _tmp0_; - ViewCollection* _tmp9_; - GeeArrayList* _tmp10_; - GeeCollection* _tmp11_; - GeeCollection* _tmp12_; -#line 331 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_EVENT (self)); -#line 331 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (GEE_IS_COLLECTION (media)); -#line 332 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = gee_array_list_new (TYPE_THUMBNAIL_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 332 "/home/jens/Source/shotwell/src/Event.vala" - views = _tmp0_; -#line 3046 "Event.c" - { - GeeIterator* _current_source_it = NULL; - GeeIterator* _tmp1_; -#line 333 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_ITERABLE, GeeIterable)); -#line 333 "/home/jens/Source/shotwell/src/Event.vala" - _current_source_it = _tmp1_; -#line 333 "/home/jens/Source/shotwell/src/Event.vala" - while (TRUE) { -#line 3056 "Event.c" - GeeIterator* _tmp2_; - MediaSource* current_source = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - GeeArrayList* _tmp5_; - MediaSource* _tmp6_; - ThumbnailView* _tmp7_; - ThumbnailView* _tmp8_; -#line 333 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = _current_source_it; -#line 333 "/home/jens/Source/shotwell/src/Event.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 333 "/home/jens/Source/shotwell/src/Event.vala" - break; -#line 3071 "Event.c" - } -#line 333 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = _current_source_it; -#line 333 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 333 "/home/jens/Source/shotwell/src/Event.vala" - current_source = (MediaSource*) _tmp4_; -#line 334 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = views; -#line 334 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = current_source; -#line 334 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 334 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = _tmp7_; -#line 334 "/home/jens/Source/shotwell/src/Event.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp8_); -#line 334 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp8_); -#line 333 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (current_source); -#line 3093 "Event.c" - } -#line 333 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_current_source_it); -#line 3097 "Event.c" - } -#line 336 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = self->priv->view; -#line 336 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = views; -#line 336 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL); -#line 336 "/home/jens/Source/shotwell/src/Event.vala" - _tmp12_ = _tmp11_; -#line 336 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp12_); -#line 331 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (views); -#line 3111 "Event.c" -} - - -void -event_detach (Event* self, - MediaSource* source) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - ViewCollection* _tmp2_; - DataView* _tmp3_; - DataView* _tmp4_; - Marker* _tmp5_; - Marker* _tmp6_; -#line 342 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_EVENT (self)); -#line 342 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_MEDIA_SOURCE (source)); -#line 343 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->view; -#line 343 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = self->priv->view; -#line 343 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = self->priv->view; -#line 343 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = view_collection_get_view_for_source (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)); -#line 343 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = _tmp3_; -#line 343 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject)); -#line 343 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = _tmp5_; -#line 343 "/home/jens/Source/shotwell/src/Event.vala" - data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), _tmp6_); -#line 343 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp6_); -#line 343 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp4_); -#line 3150 "Event.c" -} - - -void -event_detach_many (Event* self, - GeeCollection* media) -{ - GeeArrayList* views = NULL; - GeeArrayList* _tmp0_; - ViewCollection* _tmp11_; - ViewCollection* _tmp12_; - GeeArrayList* _tmp13_; - Marker* _tmp14_; - Marker* _tmp15_; -#line 346 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_EVENT (self)); -#line 346 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (GEE_IS_COLLECTION (media)); -#line 347 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = gee_array_list_new (TYPE_THUMBNAIL_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 347 "/home/jens/Source/shotwell/src/Event.vala" - views = _tmp0_; -#line 3173 "Event.c" - { - GeeIterator* _current_source_it = NULL; - GeeIterator* _tmp1_; -#line 348 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_ITERABLE, GeeIterable)); -#line 348 "/home/jens/Source/shotwell/src/Event.vala" - _current_source_it = _tmp1_; -#line 348 "/home/jens/Source/shotwell/src/Event.vala" - while (TRUE) { -#line 3183 "Event.c" - GeeIterator* _tmp2_; - MediaSource* current_source = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - ThumbnailView* view = NULL; - ViewCollection* _tmp5_; - MediaSource* _tmp6_; - DataView* _tmp7_; - ThumbnailView* _tmp8_; -#line 348 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = _current_source_it; -#line 348 "/home/jens/Source/shotwell/src/Event.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 348 "/home/jens/Source/shotwell/src/Event.vala" - break; -#line 3199 "Event.c" - } -#line 348 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = _current_source_it; -#line 348 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 348 "/home/jens/Source/shotwell/src/Event.vala" - current_source = (MediaSource*) _tmp4_; -#line 349 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = self->priv->view; -#line 349 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = current_source; -#line 349 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = view_collection_get_view_for_source (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_SOURCE, DataSource)); -#line 349 "/home/jens/Source/shotwell/src/Event.vala" - view = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_THUMBNAIL_VIEW, ThumbnailView); -#line 350 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = view; -#line 350 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp8_ != NULL) { -#line 3219 "Event.c" - GeeArrayList* _tmp9_; - ThumbnailView* _tmp10_; -#line 351 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = views; -#line 351 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = view; -#line 351 "/home/jens/Source/shotwell/src/Event.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp10_); -#line 3228 "Event.c" - } -#line 348 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (view); -#line 348 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (current_source); -#line 3234 "Event.c" - } -#line 348 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_current_source_it); -#line 3238 "Event.c" - } -#line 354 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = self->priv->view; -#line 354 "/home/jens/Source/shotwell/src/Event.vala" - _tmp12_ = self->priv->view; -#line 354 "/home/jens/Source/shotwell/src/Event.vala" - _tmp13_ = views; -#line 354 "/home/jens/Source/shotwell/src/Event.vala" - _tmp14_ = data_collection_mark_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 354 "/home/jens/Source/shotwell/src/Event.vala" - _tmp15_ = _tmp14_; -#line 354 "/home/jens/Source/shotwell/src/Event.vala" - data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_COLLECTION, DataCollection), _tmp15_); -#line 354 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp15_); -#line 346 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (views); -#line 3256 "Event.c" -} - - -gboolean -event_contains_media_type (Event* self, - const gchar* media_type) -{ - gboolean result = FALSE; -#line 360 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_EVENT (self), FALSE); -#line 360 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (media_type != NULL, FALSE); -#line 3269 "Event.c" - { - GeeIterator* _media_it = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 361 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = event_source_get_media (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource)); -#line 361 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = _tmp0_; -#line 361 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 361 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = _tmp2_; -#line 361 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp1_); -#line 361 "/home/jens/Source/shotwell/src/Event.vala" - _media_it = _tmp3_; -#line 361 "/home/jens/Source/shotwell/src/Event.vala" - while (TRUE) { -#line 3290 "Event.c" - GeeIterator* _tmp4_; - MediaSource* media = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - MediaSource* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gboolean _tmp10_; -#line 361 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = _media_it; -#line 361 "/home/jens/Source/shotwell/src/Event.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 361 "/home/jens/Source/shotwell/src/Event.vala" - break; -#line 3305 "Event.c" - } -#line 361 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = _media_it; -#line 361 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 361 "/home/jens/Source/shotwell/src/Event.vala" - media = (MediaSource*) _tmp6_; -#line 362 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = media; -#line 362 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = data_source_get_typename (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_SOURCE, DataSource)); -#line 362 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = _tmp8_; -#line 362 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = g_strcmp0 (_tmp9_, media_type) == 0; -#line 362 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp9_); -#line 362 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp10_) { -#line 363 "/home/jens/Source/shotwell/src/Event.vala" - result = TRUE; -#line 363 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (media); -#line 363 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_media_it); -#line 363 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 3333 "Event.c" - } -#line 361 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (media); -#line 3337 "Event.c" - } -#line 361 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_media_it); -#line 3341 "Event.c" - } -#line 366 "/home/jens/Source/shotwell/src/Event.vala" - result = FALSE; -#line 366 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 3347 "Event.c" -} - - -static GeeArrayList* -event_views_to_media (Event* self, - GeeIterable* views) -{ - GeeArrayList* result = NULL; - GeeArrayList* media = NULL; - GeeArrayList* _tmp0_; -#line 369 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_EVENT (self), NULL); -#line 369 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (GEE_IS_ITERABLE (views), NULL); -#line 370 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 370 "/home/jens/Source/shotwell/src/Event.vala" - media = _tmp0_; -#line 3366 "Event.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp1_; -#line 371 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = gee_iterable_iterator (views); -#line 371 "/home/jens/Source/shotwell/src/Event.vala" - _object_it = _tmp1_; -#line 371 "/home/jens/Source/shotwell/src/Event.vala" - while (TRUE) { -#line 3376 "Event.c" - GeeIterator* _tmp2_; - DataObject* object = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - GeeArrayList* _tmp5_; - DataObject* _tmp6_; - DataSource* _tmp7_; - MediaSource* _tmp8_; -#line 371 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = _object_it; -#line 371 "/home/jens/Source/shotwell/src/Event.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 371 "/home/jens/Source/shotwell/src/Event.vala" - break; -#line 3391 "Event.c" - } -#line 371 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = _object_it; -#line 371 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 371 "/home/jens/Source/shotwell/src/Event.vala" - object = (DataObject*) _tmp4_; -#line 372 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = media; -#line 372 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = object; -#line 372 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_VIEW, DataView)); -#line 372 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MEDIA_SOURCE, MediaSource); -#line 372 "/home/jens/Source/shotwell/src/Event.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp8_); -#line 372 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp8_); -#line 371 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (object); -#line 3413 "Event.c" - } -#line 371 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_object_it); -#line 3417 "Event.c" - } -#line 374 "/home/jens/Source/shotwell/src/Event.vala" - result = media; -#line 374 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 3423 "Event.c" -} - - -static void -event_on_media_added (Event* self, - GeeIterable* added) -{ - GeeCollection* media = NULL; - GeeArrayList* _tmp0_; - EventSourceCollection* _tmp1_; - gboolean _tmp2_; - EventSourceCollection* _tmp3_; - gboolean _tmp4_; - Alteration* _tmp5_; - Alteration* _tmp6_; -#line 377 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_EVENT (self)); -#line 377 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (GEE_IS_ITERABLE (added)); -#line 378 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = event_views_to_media (self, added); -#line 378 "/home/jens/Source/shotwell/src/Event.vala" - media = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 379 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = event_global; -#line 379 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = self->priv->relinking; -#line 379 "/home/jens/Source/shotwell/src/Event.vala" - container_source_collection_notify_container_contents_added (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), media, _tmp2_); -#line 380 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = event_global; -#line 380 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = self->priv->relinking; -#line 380 "/home/jens/Source/shotwell/src/Event.vala" - container_source_collection_notify_container_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), media, _tmp4_, NULL, FALSE); -#line 382 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = alteration_new_from_list ("contents:added, metadata:time"); -#line 382 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = _tmp5_; -#line 382 "/home/jens/Source/shotwell/src/Event.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp6_); -#line 382 "/home/jens/Source/shotwell/src/Event.vala" - _alteration_unref0 (_tmp6_); -#line 377 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (media); -#line 3469 "Event.c" -} - - -static void -event_on_media_removed (Event* self, - GeeIterable* removed) -{ - GeeArrayList* media = NULL; - GeeArrayList* _tmp0_; - EventSourceCollection* _tmp1_; - GeeArrayList* _tmp2_; - gboolean _tmp3_; - EventSourceCollection* _tmp4_; - GeeArrayList* _tmp5_; - gboolean _tmp6_; - Alteration* _tmp26_; - Alteration* _tmp27_; -#line 386 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_EVENT (self)); -#line 386 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (GEE_IS_ITERABLE (removed)); -#line 387 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = event_views_to_media (self, removed); -#line 387 "/home/jens/Source/shotwell/src/Event.vala" - media = _tmp0_; -#line 389 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = event_global; -#line 389 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = media; -#line 389 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = self->priv->unlinking; -#line 389 "/home/jens/Source/shotwell/src/Event.vala" - container_source_collection_notify_container_contents_removed (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), _tmp3_); -#line 390 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = event_global; -#line 390 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = media; -#line 390 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = self->priv->unlinking; -#line 390 "/home/jens/Source/shotwell/src/Event.vala" - container_source_collection_notify_container_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), NULL, FALSE, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), _tmp6_); -#line 3511 "Event.c" - { - GeeArrayList* _current_source_list = NULL; - GeeArrayList* _tmp7_; - GeeArrayList* _tmp8_; - gint _current_source_size = 0; - GeeArrayList* _tmp9_; - gint _tmp10_; - gint _tmp11_; - gint _current_source_index = 0; -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = media; -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = _g_object_ref0 (_tmp7_); -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - _current_source_list = _tmp8_; -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = _current_source_list; -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = _tmp10_; -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - _current_source_size = _tmp11_; -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - _current_source_index = -1; -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - while (TRUE) { -#line 3539 "Event.c" - gint _tmp12_; - gint _tmp13_; - gint _tmp14_; - MediaSource* current_source = NULL; - GeeArrayList* _tmp15_; - gint _tmp16_; - gpointer _tmp17_; - MediaSource* _tmp18_; - MediaSource* _tmp19_; -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - _tmp12_ = _current_source_index; -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - _current_source_index = _tmp12_ + 1; -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - _tmp13_ = _current_source_index; -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - _tmp14_ = _current_source_size; -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - if (!(_tmp13_ < _tmp14_)) { -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - break; -#line 3561 "Event.c" - } -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - _tmp15_ = _current_source_list; -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - _tmp16_ = _current_source_index; -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - _tmp17_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp16_); -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - current_source = (MediaSource*) _tmp17_; -#line 394 "/home/jens/Source/shotwell/src/Event.vala" - _tmp18_ = current_source; -#line 394 "/home/jens/Source/shotwell/src/Event.vala" - _tmp19_ = self->priv->primary_source; -#line 394 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp18_ == _tmp19_) { -#line 395 "/home/jens/Source/shotwell/src/Event.vala" - if (event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource)) > 0) { -#line 3579 "Event.c" - ViewCollection* _tmp20_; - DataView* _tmp21_; - DataView* _tmp22_; - DataSource* _tmp23_; - MediaSource* _tmp24_; -#line 396 "/home/jens/Source/shotwell/src/Event.vala" - _tmp20_ = self->priv->view; -#line 396 "/home/jens/Source/shotwell/src/Event.vala" - _tmp21_ = view_collection_get_first_unrejected (_tmp20_); -#line 396 "/home/jens/Source/shotwell/src/Event.vala" - _tmp22_ = _tmp21_; -#line 396 "/home/jens/Source/shotwell/src/Event.vala" - _tmp23_ = data_view_get_source (_tmp22_); -#line 396 "/home/jens/Source/shotwell/src/Event.vala" - _tmp24_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_MEDIA_SOURCE, MediaSource); -#line 396 "/home/jens/Source/shotwell/src/Event.vala" - event_set_primary_source (self, _tmp24_); -#line 396 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp24_); -#line 396 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp22_); -#line 3601 "Event.c" - } else { -#line 398 "/home/jens/Source/shotwell/src/Event.vala" - event_release_primary_source (self); -#line 3605 "Event.c" - } -#line 400 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (current_source); -#line 400 "/home/jens/Source/shotwell/src/Event.vala" - break; -#line 3611 "Event.c" - } -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (current_source); -#line 3615 "Event.c" - } -#line 393 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_current_source_list); -#line 3619 "Event.c" - } -#line 405 "/home/jens/Source/shotwell/src/Event.vala" - if (event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource)) == 0) { -#line 3623 "Event.c" - EventSourceCollection* _tmp25_; -#line 406 "/home/jens/Source/shotwell/src/Event.vala" - _tmp25_ = event_global; -#line 406 "/home/jens/Source/shotwell/src/Event.vala" - container_source_collection_evaporate (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource)); -#line 410 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (media); -#line 410 "/home/jens/Source/shotwell/src/Event.vala" - return; -#line 3633 "Event.c" - } -#line 413 "/home/jens/Source/shotwell/src/Event.vala" - _tmp26_ = alteration_new_from_list ("contents:removed, metadata:time"); -#line 413 "/home/jens/Source/shotwell/src/Event.vala" - _tmp27_ = _tmp26_; -#line 413 "/home/jens/Source/shotwell/src/Event.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp27_); -#line 413 "/home/jens/Source/shotwell/src/Event.vala" - _alteration_unref0 (_tmp27_); -#line 386 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (media); -#line 3645 "Event.c" -} - - -static void -event_on_media_destroyed (Event* self, - DataSource* source) -{ - ThumbnailView* thumbnail_view = NULL; - ViewCollection* _tmp0_; - DataView* _tmp1_; - ThumbnailView* _tmp2_; -#line 416 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_EVENT (self)); -#line 416 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 417 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->view; -#line 417 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = view_collection_get_view_for_source (_tmp0_, source); -#line 417 "/home/jens/Source/shotwell/src/Event.vala" - thumbnail_view = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_THUMBNAIL_VIEW, ThumbnailView); -#line 418 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = thumbnail_view; -#line 418 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp2_ != NULL) { -#line 3671 "Event.c" - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - ThumbnailView* _tmp5_; - Marker* _tmp6_; - Marker* _tmp7_; -#line 419 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = self->priv->view; -#line 419 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = self->priv->view; -#line 419 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = thumbnail_view; -#line 419 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_OBJECT, DataObject)); -#line 419 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = _tmp6_; -#line 419 "/home/jens/Source/shotwell/src/Event.vala" - data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), _tmp7_); -#line 419 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp7_); -#line 3691 "Event.c" - } -#line 416 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (thumbnail_view); -#line 3695 "Event.c" -} - - -static void -event_real_notify_relinking (DataSource* base, - SourceCollection* sources) -{ - Event * self; - MediaSource* _tmp0_; -#line 422 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 422 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (sources)); -#line 423 "/home/jens/Source/shotwell/src/Event.vala" - _vala_assert (event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource)) > 0, "get_media_count() > 0"); -#line 426 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->primary_source; -#line 426 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp0_ == NULL) { -#line 3715 "Event.c" - ViewCollection* _tmp1_; - DataView* _tmp2_; - DataView* _tmp3_; - DataSource* _tmp4_; - MediaSource* _tmp5_; -#line 427 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = self->priv->view; -#line 427 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = view_collection_get_first_unrejected (_tmp1_); -#line 427 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = _tmp2_; -#line 427 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = data_view_get_source (_tmp3_); -#line 427 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource); -#line 427 "/home/jens/Source/shotwell/src/Event.vala" - event_set_primary_source (self, _tmp5_); -#line 427 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp5_); -#line 427 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp3_); -#line 3737 "Event.c" - } -#line 429 "/home/jens/Source/shotwell/src/Event.vala" - DATA_SOURCE_CLASS (event_parent_class)->notify_relinking (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource), TYPE_DATA_SOURCE, DataSource), sources); -#line 3741 "Event.c" -} - - -/** @brief This gets called when one or more media items inside this - * event gets modified in some fashion. If the media item's date changes - * and the event was previously undated, the name of the event needs to - * change as well; all of that happens automatically in here. - * - * In addition, if the _rating_ of one or more media items has changed, - * the thumbnail of this event may need to change, as the primary - * image may have been rejected and should not be the thumbnail anymore. - */ -static void -event_on_media_altered (Event* self, - GeeMap* items) -{ - gboolean should_remake_thumb = FALSE; - gboolean _tmp16_; -#line 441 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_EVENT (self)); -#line 441 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (GEE_IS_MAP (items)); -#line 442 "/home/jens/Source/shotwell/src/Event.vala" - should_remake_thumb = FALSE; -#line 3766 "Event.c" - { - GeeIterator* _alteration_it = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 444 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = gee_map_get_values (items); -#line 444 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = _tmp0_; -#line 444 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = _tmp1_; -#line 444 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 444 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = _tmp3_; -#line 444 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp2_); -#line 444 "/home/jens/Source/shotwell/src/Event.vala" - _alteration_it = _tmp4_; -#line 444 "/home/jens/Source/shotwell/src/Event.vala" - while (TRUE) { -#line 3790 "Event.c" - GeeIterator* _tmp5_; - Alteration* alteration = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - Alteration* _tmp8_; - Alteration* _tmp15_; -#line 444 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = _alteration_it; -#line 444 "/home/jens/Source/shotwell/src/Event.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 444 "/home/jens/Source/shotwell/src/Event.vala" - break; -#line 3803 "Event.c" - } -#line 444 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = _alteration_it; -#line 444 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 444 "/home/jens/Source/shotwell/src/Event.vala" - alteration = (Alteration*) _tmp7_; -#line 445 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = alteration; -#line 445 "/home/jens/Source/shotwell/src/Event.vala" - if (alteration_has_detail (_tmp8_, "metadata", "exposure-time")) { -#line 3815 "Event.c" - gchar* alt_list = NULL; - gchar* _tmp9_; - const gchar* _tmp12_; - Alteration* _tmp13_; - Alteration* _tmp14_; -#line 447 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = g_strdup ("metadata:time"); -#line 447 "/home/jens/Source/shotwell/src/Event.vala" - alt_list = _tmp9_; -#line 449 "/home/jens/Source/shotwell/src/Event.vala" - if (!event_has_name (self)) { -#line 3827 "Event.c" - const gchar* _tmp10_; - gchar* _tmp11_; -#line 450 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = alt_list; -#line 450 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = g_strconcat (_tmp10_, ", metadata:name", NULL); -#line 450 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (alt_list); -#line 450 "/home/jens/Source/shotwell/src/Event.vala" - alt_list = _tmp11_; -#line 3838 "Event.c" - } -#line 452 "/home/jens/Source/shotwell/src/Event.vala" - _tmp12_ = alt_list; -#line 452 "/home/jens/Source/shotwell/src/Event.vala" - _tmp13_ = alteration_new_from_list (_tmp12_); -#line 452 "/home/jens/Source/shotwell/src/Event.vala" - _tmp14_ = _tmp13_; -#line 452 "/home/jens/Source/shotwell/src/Event.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp14_); -#line 452 "/home/jens/Source/shotwell/src/Event.vala" - _alteration_unref0 (_tmp14_); -#line 454 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (alt_list); -#line 454 "/home/jens/Source/shotwell/src/Event.vala" - _alteration_unref0 (alteration); -#line 454 "/home/jens/Source/shotwell/src/Event.vala" - break; -#line 3856 "Event.c" - } -#line 457 "/home/jens/Source/shotwell/src/Event.vala" - _tmp15_ = alteration; -#line 457 "/home/jens/Source/shotwell/src/Event.vala" - if (alteration_has_detail (_tmp15_, "metadata", "rating")) { -#line 458 "/home/jens/Source/shotwell/src/Event.vala" - should_remake_thumb = TRUE; -#line 3864 "Event.c" - } -#line 444 "/home/jens/Source/shotwell/src/Event.vala" - _alteration_unref0 (alteration); -#line 3868 "Event.c" - } -#line 444 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_alteration_it); -#line 3872 "Event.c" - } -#line 461 "/home/jens/Source/shotwell/src/Event.vala" - _tmp16_ = should_remake_thumb; -#line 461 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp16_) { -#line 3878 "Event.c" - gboolean _tmp17_ = FALSE; - MediaSource* _tmp18_; - MediaSource* _tmp19_; - gboolean _tmp20_; -#line 463 "/home/jens/Source/shotwell/src/Event.vala" - _tmp18_ = event_get_primary_source (self); -#line 463 "/home/jens/Source/shotwell/src/Event.vala" - _tmp19_ = _tmp18_; -#line 463 "/home/jens/Source/shotwell/src/Event.vala" - _tmp20_ = _tmp19_ == NULL; -#line 463 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp19_); -#line 463 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp20_) { -#line 463 "/home/jens/Source/shotwell/src/Event.vala" - _tmp17_ = TRUE; -#line 3895 "Event.c" - } else { - MediaSource* _tmp21_; - MediaSource* _tmp22_; -#line 463 "/home/jens/Source/shotwell/src/Event.vala" - _tmp21_ = event_get_primary_source (self); -#line 463 "/home/jens/Source/shotwell/src/Event.vala" - _tmp22_ = _tmp21_; -#line 463 "/home/jens/Source/shotwell/src/Event.vala" - _tmp17_ = media_source_get_rating (_tmp22_) == RATING_REJECTED; -#line 463 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp22_); -#line 3907 "Event.c" - } -#line 463 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp17_) { -#line 3911 "Event.c" - ViewCollection* _tmp23_; - DataView* _tmp24_; - DataView* _tmp25_; - DataSource* _tmp26_; - MediaSource* _tmp27_; -#line 465 "/home/jens/Source/shotwell/src/Event.vala" - _tmp23_ = self->priv->view; -#line 465 "/home/jens/Source/shotwell/src/Event.vala" - _tmp24_ = view_collection_get_first_unrejected (_tmp23_); -#line 465 "/home/jens/Source/shotwell/src/Event.vala" - _tmp25_ = _tmp24_; -#line 465 "/home/jens/Source/shotwell/src/Event.vala" - _tmp26_ = data_view_get_source (_tmp25_); -#line 465 "/home/jens/Source/shotwell/src/Event.vala" - _tmp27_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_MEDIA_SOURCE, MediaSource); -#line 465 "/home/jens/Source/shotwell/src/Event.vala" - event_set_primary_source (self, _tmp27_); -#line 465 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp27_); -#line 465 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp25_); -#line 3933 "Event.c" - } - } -} - - -Event* -event_create_empty_event (MediaSource* source) -{ - Event* result = NULL; - GError * _inner_error_ = NULL; -#line 474 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL); -#line 3946 "Event.c" - { - EventRow* _tmp0_ = NULL; - EventTable* _tmp1_; - EventTable* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - EventRow* _tmp5_; - EventRow* _tmp6_; - Event* event = NULL; - Event* _tmp7_; - EventSourceCollection* _tmp8_; - Event* _tmp9_; - Event* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; -#line 476 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = event_table_get_instance (); -#line 476 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = _tmp1_; -#line 476 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)); -#line 476 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = _tmp3_; -#line 476 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = event_table_create (_tmp2_, _tmp4_, NULL, &_inner_error_); -#line 476 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = _tmp5_; -#line 476 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp4_); -#line 476 "/home/jens/Source/shotwell/src/Event.vala" - _database_table_unref0 (_tmp2_); -#line 476 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = _tmp6_; -#line 476 "/home/jens/Source/shotwell/src/Event.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 476 "/home/jens/Source/shotwell/src/Event.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 3984 "Event.c" - goto __catch444_database_error; - } -#line 476 "/home/jens/Source/shotwell/src/Event.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 476 "/home/jens/Source/shotwell/src/Event.vala" - g_clear_error (&_inner_error_); -#line 476 "/home/jens/Source/shotwell/src/Event.vala" - return NULL; -#line 3993 "Event.c" - } -#line 476 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = event_new (_tmp0_, DATA_OBJECT_INVALID_OBJECT_ID); -#line 476 "/home/jens/Source/shotwell/src/Event.vala" - event = _tmp7_; -#line 477 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = event_global; -#line 477 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = event; -#line 477 "/home/jens/Source/shotwell/src/Event.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject)); -#line 479 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = event; -#line 479 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_OBJECT, DataObject)); -#line 479 "/home/jens/Source/shotwell/src/Event.vala" - _tmp12_ = _tmp11_; -#line 479 "/home/jens/Source/shotwell/src/Event.vala" - g_debug ("Event.vala:479: Created empty event %s", _tmp12_); -#line 479 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp12_); -#line 481 "/home/jens/Source/shotwell/src/Event.vala" - result = event; -#line 481 "/home/jens/Source/shotwell/src/Event.vala" - _event_row_unref0 (_tmp0_); -#line 481 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 4021 "Event.c" - } - goto __finally444; - __catch444_database_error: - { - GError* err = NULL; - GError* _tmp13_; -#line 475 "/home/jens/Source/shotwell/src/Event.vala" - err = _inner_error_; -#line 475 "/home/jens/Source/shotwell/src/Event.vala" - _inner_error_ = NULL; -#line 483 "/home/jens/Source/shotwell/src/Event.vala" - _tmp13_ = err; -#line 483 "/home/jens/Source/shotwell/src/Event.vala" - app_window_database_error (_tmp13_); -#line 485 "/home/jens/Source/shotwell/src/Event.vala" - result = NULL; -#line 485 "/home/jens/Source/shotwell/src/Event.vala" - _g_error_free0 (err); -#line 485 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 4042 "Event.c" - } - __finally444: -#line 475 "/home/jens/Source/shotwell/src/Event.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 475 "/home/jens/Source/shotwell/src/Event.vala" - g_clear_error (&_inner_error_); -#line 475 "/home/jens/Source/shotwell/src/Event.vala" - return NULL; -#line 4051 "Event.c" -} - - -static Event* -event_reconstitute (gint64 object_id, - EventRow* row) -{ - Event* result = NULL; - EventTable* _tmp0_; - EventTable* _tmp1_; - EventID _tmp2_ = {0}; - Event* event = NULL; - Event* _tmp3_; - EventSourceCollection* _tmp4_; - EventSourceCollection* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 490 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_EVENT_ROW (row), NULL); -#line 491 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = event_table_get_instance (); -#line 491 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = _tmp0_; -#line 491 "/home/jens/Source/shotwell/src/Event.vala" - event_table_create_from_row (_tmp1_, row, &_tmp2_); -#line 491 "/home/jens/Source/shotwell/src/Event.vala" - row->event_id = _tmp2_; -#line 491 "/home/jens/Source/shotwell/src/Event.vala" - _database_table_unref0 (_tmp1_); -#line 492 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = event_new (row, object_id); -#line 492 "/home/jens/Source/shotwell/src/Event.vala" - event = _tmp3_; -#line 493 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = event_global; -#line 493 "/home/jens/Source/shotwell/src/Event.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_DATA_OBJECT, DataObject)); -#line 494 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = event_global; -#line 494 "/home/jens/Source/shotwell/src/Event.vala" - _vala_assert (data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_DATA_OBJECT, DataObject)), "global.contains(event)"); -#line 496 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_DATA_OBJECT, DataObject)); -#line 496 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = _tmp6_; -#line 496 "/home/jens/Source/shotwell/src/Event.vala" - g_debug ("Event.vala:496: Reconstituted event %s", _tmp7_); -#line 496 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp7_); -#line 498 "/home/jens/Source/shotwell/src/Event.vala" - result = event; -#line 498 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 4105 "Event.c" -} - - -static gboolean -event_real_has_links (ContainerSource* base) -{ - Event * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - LibraryPhotoSourceCollection* _tmp1_; - SourceBacklink* _tmp2_; - SourceBacklink* _tmp3_; - gboolean _tmp4_; -#line 501 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 502 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = library_photo_global; -#line 502 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = container_source_get_backlink (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource)); -#line 502 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = _tmp2_; -#line 502 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = source_collection_has_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp3_); -#line 502 "/home/jens/Source/shotwell/src/Event.vala" - _source_backlink_unref0 (_tmp3_); -#line 502 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp4_) { -#line 502 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = TRUE; -#line 4135 "Event.c" - } else { - VideoSourceCollection* _tmp5_; - SourceBacklink* _tmp6_; - SourceBacklink* _tmp7_; -#line 503 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = video_global; -#line 503 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = container_source_get_backlink (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource)); -#line 503 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = _tmp6_; -#line 503 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = source_collection_has_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp7_); -#line 503 "/home/jens/Source/shotwell/src/Event.vala" - _source_backlink_unref0 (_tmp7_); -#line 4150 "Event.c" - } -#line 502 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp0_; -#line 502 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 4156 "Event.c" -} - - -static SourceBacklink* -event_real_get_backlink (ContainerSource* base) -{ - Event * self; - SourceBacklink* result = NULL; - SourceBacklink* _tmp0_; -#line 506 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 507 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = source_backlink_new_from_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource)); -#line 507 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp0_; -#line 507 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 4174 "Event.c" -} - - -static void -event_real_break_link (ContainerSource* base, - DataSource* source) -{ - Event * self; -#line 510 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 510 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 511 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->unlinking = TRUE; -#line 513 "/home/jens/Source/shotwell/src/Event.vala" - media_source_set_event (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), NULL); -#line 515 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->unlinking = FALSE; -#line 4193 "Event.c" -} - - -static void -event_real_break_link_many (ContainerSource* base, - GeeCollection* sources) -{ - Event * self; - GeeArrayList* photos = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* videos = NULL; - GeeArrayList* _tmp1_; - GError * _inner_error_ = NULL; -#line 518 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 518 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 519 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->unlinking = TRUE; -#line 521 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 521 "/home/jens/Source/shotwell/src/Event.vala" - photos = _tmp0_; -#line 522 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 522 "/home/jens/Source/shotwell/src/Event.vala" - videos = _tmp1_; -#line 523 "/home/jens/Source/shotwell/src/Event.vala" - media_source_collection_filter_media (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_COLLECTION, GeeCollection)); -#line 4223 "Event.c" - { - LibraryPhotoSourceCollection* _tmp2_; - TransactionController* _tmp3_; - TransactionController* _tmp4_; -#line 526 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = library_photo_global; -#line 526 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 526 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = _tmp3_; -#line 526 "/home/jens/Source/shotwell/src/Event.vala" - media_source_set_many_to_event (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_COLLECTION, GeeCollection), NULL, _tmp4_, &_inner_error_); -#line 526 "/home/jens/Source/shotwell/src/Event.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4238 "Event.c" - goto __catch445_g_error; - } - } - goto __finally445; - __catch445_g_error: - { - GError* err = NULL; - GError* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 525 "/home/jens/Source/shotwell/src/Event.vala" - err = _inner_error_; -#line 525 "/home/jens/Source/shotwell/src/Event.vala" - _inner_error_ = NULL; -#line 528 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = err; -#line 528 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = _tmp5_->message; -#line 528 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = g_strdup_printf ("%s", _tmp6_); -#line 528 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = _tmp7_; -#line 528 "/home/jens/Source/shotwell/src/Event.vala" - app_window_error_message (_tmp8_, NULL); -#line 528 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp8_); -#line 525 "/home/jens/Source/shotwell/src/Event.vala" - _g_error_free0 (err); -#line 4268 "Event.c" - } - __finally445: -#line 525 "/home/jens/Source/shotwell/src/Event.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 525 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (videos); -#line 525 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (photos); -#line 525 "/home/jens/Source/shotwell/src/Event.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 525 "/home/jens/Source/shotwell/src/Event.vala" - g_clear_error (&_inner_error_); -#line 525 "/home/jens/Source/shotwell/src/Event.vala" - return; -#line 4283 "Event.c" - } - { - VideoSourceCollection* _tmp9_; - TransactionController* _tmp10_; - TransactionController* _tmp11_; -#line 532 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = video_global; -#line 532 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 532 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = _tmp10_; -#line 532 "/home/jens/Source/shotwell/src/Event.vala" - media_source_set_many_to_event (G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_COLLECTION, GeeCollection), NULL, _tmp11_, &_inner_error_); -#line 532 "/home/jens/Source/shotwell/src/Event.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4299 "Event.c" - goto __catch446_g_error; - } - } - goto __finally446; - __catch446_g_error: - { - GError* err = NULL; - GError* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; -#line 531 "/home/jens/Source/shotwell/src/Event.vala" - err = _inner_error_; -#line 531 "/home/jens/Source/shotwell/src/Event.vala" - _inner_error_ = NULL; -#line 534 "/home/jens/Source/shotwell/src/Event.vala" - _tmp12_ = err; -#line 534 "/home/jens/Source/shotwell/src/Event.vala" - _tmp13_ = _tmp12_->message; -#line 534 "/home/jens/Source/shotwell/src/Event.vala" - _tmp14_ = g_strdup_printf ("%s", _tmp13_); -#line 534 "/home/jens/Source/shotwell/src/Event.vala" - _tmp15_ = _tmp14_; -#line 534 "/home/jens/Source/shotwell/src/Event.vala" - app_window_error_message (_tmp15_, NULL); -#line 534 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp15_); -#line 531 "/home/jens/Source/shotwell/src/Event.vala" - _g_error_free0 (err); -#line 4329 "Event.c" - } - __finally446: -#line 531 "/home/jens/Source/shotwell/src/Event.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 531 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (videos); -#line 531 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (photos); -#line 531 "/home/jens/Source/shotwell/src/Event.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 531 "/home/jens/Source/shotwell/src/Event.vala" - g_clear_error (&_inner_error_); -#line 531 "/home/jens/Source/shotwell/src/Event.vala" - return; -#line 4344 "Event.c" - } -#line 537 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->unlinking = FALSE; -#line 518 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (videos); -#line 518 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (photos); -#line 4352 "Event.c" -} - - -static void -event_real_establish_link (ContainerSource* base, - DataSource* source) -{ - Event * self; -#line 540 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 540 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 541 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->relinking = TRUE; -#line 543 "/home/jens/Source/shotwell/src/Event.vala" - media_source_set_event (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), self); -#line 545 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->relinking = FALSE; -#line 4371 "Event.c" -} - - -static void -event_real_establish_link_many (ContainerSource* base, - GeeCollection* sources) -{ - Event * self; - GeeArrayList* photos = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* videos = NULL; - GeeArrayList* _tmp1_; - GError * _inner_error_ = NULL; -#line 548 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 548 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 549 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->relinking = TRUE; -#line 551 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 551 "/home/jens/Source/shotwell/src/Event.vala" - photos = _tmp0_; -#line 552 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 552 "/home/jens/Source/shotwell/src/Event.vala" - videos = _tmp1_; -#line 553 "/home/jens/Source/shotwell/src/Event.vala" - media_source_collection_filter_media (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_COLLECTION, GeeCollection)); -#line 4401 "Event.c" - { - LibraryPhotoSourceCollection* _tmp2_; - TransactionController* _tmp3_; - TransactionController* _tmp4_; -#line 556 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = library_photo_global; -#line 556 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 556 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = _tmp3_; -#line 556 "/home/jens/Source/shotwell/src/Event.vala" - media_source_set_many_to_event (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_COLLECTION, GeeCollection), self, _tmp4_, &_inner_error_); -#line 556 "/home/jens/Source/shotwell/src/Event.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4416 "Event.c" - goto __catch447_g_error; - } - } - goto __finally447; - __catch447_g_error: - { - GError* err = NULL; - GError* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 555 "/home/jens/Source/shotwell/src/Event.vala" - err = _inner_error_; -#line 555 "/home/jens/Source/shotwell/src/Event.vala" - _inner_error_ = NULL; -#line 558 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = err; -#line 558 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = _tmp5_->message; -#line 558 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = g_strdup_printf ("%s", _tmp6_); -#line 558 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = _tmp7_; -#line 558 "/home/jens/Source/shotwell/src/Event.vala" - app_window_error_message (_tmp8_, NULL); -#line 558 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp8_); -#line 555 "/home/jens/Source/shotwell/src/Event.vala" - _g_error_free0 (err); -#line 4446 "Event.c" - } - __finally447: -#line 555 "/home/jens/Source/shotwell/src/Event.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 555 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (videos); -#line 555 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (photos); -#line 555 "/home/jens/Source/shotwell/src/Event.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 555 "/home/jens/Source/shotwell/src/Event.vala" - g_clear_error (&_inner_error_); -#line 555 "/home/jens/Source/shotwell/src/Event.vala" - return; -#line 4461 "Event.c" - } - { - VideoSourceCollection* _tmp9_; - TransactionController* _tmp10_; - TransactionController* _tmp11_; -#line 562 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = video_global; -#line 562 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 562 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = _tmp10_; -#line 562 "/home/jens/Source/shotwell/src/Event.vala" - media_source_set_many_to_event (G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_COLLECTION, GeeCollection), self, _tmp11_, &_inner_error_); -#line 562 "/home/jens/Source/shotwell/src/Event.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4477 "Event.c" - goto __catch448_g_error; - } - } - goto __finally448; - __catch448_g_error: - { - GError* err = NULL; - GError* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; -#line 561 "/home/jens/Source/shotwell/src/Event.vala" - err = _inner_error_; -#line 561 "/home/jens/Source/shotwell/src/Event.vala" - _inner_error_ = NULL; -#line 564 "/home/jens/Source/shotwell/src/Event.vala" - _tmp12_ = err; -#line 564 "/home/jens/Source/shotwell/src/Event.vala" - _tmp13_ = _tmp12_->message; -#line 564 "/home/jens/Source/shotwell/src/Event.vala" - _tmp14_ = g_strdup_printf ("%s", _tmp13_); -#line 564 "/home/jens/Source/shotwell/src/Event.vala" - _tmp15_ = _tmp14_; -#line 564 "/home/jens/Source/shotwell/src/Event.vala" - app_window_error_message (_tmp15_, NULL); -#line 564 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp15_); -#line 561 "/home/jens/Source/shotwell/src/Event.vala" - _g_error_free0 (err); -#line 4507 "Event.c" - } - __finally448: -#line 561 "/home/jens/Source/shotwell/src/Event.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 561 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (videos); -#line 561 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (photos); -#line 561 "/home/jens/Source/shotwell/src/Event.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 561 "/home/jens/Source/shotwell/src/Event.vala" - g_clear_error (&_inner_error_); -#line 561 "/home/jens/Source/shotwell/src/Event.vala" - return; -#line 4522 "Event.c" - } -#line 567 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->relinking = FALSE; -#line 548 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (videos); -#line 548 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (photos); -#line 4530 "Event.c" -} - - -static gchar* -_vala_g_strjoinv (const gchar* separator, - gchar** str_array, - int str_array_length1) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; -#line 1092 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (separator == NULL) { -#line 1093 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - separator = ""; -#line 4545 "Event.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array != NULL) { -#line 4549 "Event.c" - gboolean _tmp1_ = FALSE; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 > 0) { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 4555 "Event.c" - } else { - gboolean _tmp2_ = FALSE; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 4560 "Event.c" - const gchar* _tmp3_; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = str_array[0]; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp3_ != NULL; -#line 4566 "Event.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = FALSE; -#line 4570 "Event.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp2_; -#line 4574 "Event.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = _tmp1_; -#line 4578 "Event.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 4582 "Event.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 4586 "Event.c" - gint i = 0; - gsize len = 0UL; - gint _tmp20_; - gint _tmp22_; - gint _tmp23_; - gsize _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; - const gchar* res = NULL; - gsize _tmp28_; - void* _tmp29_; - void* ptr = NULL; - const gchar* _tmp30_; - const gchar* _tmp31_; - void* _tmp32_; - const gchar* _tmp45_; -#line 1097 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = (gsize) 1; -#line 4606 "Event.c" - { - gboolean _tmp4_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 0; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = TRUE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - while (TRUE) { -#line 4615 "Event.c" - gboolean _tmp6_ = FALSE; - gboolean _tmp7_ = FALSE; - gint _tmp12_ = 0; - gint _tmp13_; - const gchar* _tmp14_; - gsize _tmp19_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp4_) { -#line 4624 "Event.c" - gint _tmp5_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = _tmp5_ + 1; -#line 4630 "Event.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 != -1) { -#line 4636 "Event.c" - gint _tmp8_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp8_ < str_array_length1; -#line 4642 "Event.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = FALSE; -#line 4646 "Event.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp7_) { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = TRUE; -#line 4652 "Event.c" - } else { - gboolean _tmp9_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 4657 "Event.c" - gint _tmp10_; - const gchar* _tmp11_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp11_ = str_array[_tmp10_]; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = _tmp11_ != NULL; -#line 4666 "Event.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = FALSE; -#line 4670 "Event.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp9_; -#line 4674 "Event.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp6_) { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - break; -#line 4680 "Event.c" - } -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp13_ = i; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp14_ = str_array[_tmp13_]; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp14_ != NULL) { -#line 4688 "Event.c" - gint _tmp15_; - const gchar* _tmp16_; - gint _tmp17_; - gint _tmp18_; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp15_ = i; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp16_ = str_array[_tmp15_]; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp17_ = strlen ((const gchar*) _tmp16_); -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp18_ = _tmp17_; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp12_ = _tmp18_; -#line 4703 "Event.c" - } else { -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp12_ = 0; -#line 4707 "Event.c" - } -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp19_ = len; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp19_ + _tmp12_; -#line 4713 "Event.c" - } - } -#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp20_ = i; -#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp20_ == 0) { -#line 4720 "Event.c" - gchar* _tmp21_; -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp21_ = g_strdup (""); -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp21_; -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 4728 "Event.c" - } -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp22_ = i; -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - str_array_length1 = _tmp22_; -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp23_ = str_array_length1; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp24_ = len; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp25_ = strlen ((const gchar*) separator); -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp26_ = _tmp25_; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp27_ = i; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp24_ + (_tmp26_ * (_tmp27_ - 1)); -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp28_ = len; -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp29_ = g_malloc (_tmp28_); -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = _tmp29_; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp30_ = res; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp31_ = str_array[0]; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp32_ = g_stpcpy ((void*) _tmp30_, (const gchar*) _tmp31_); -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp32_; -#line 4760 "Event.c" - { - gboolean _tmp33_ = FALSE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 1; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp33_ = TRUE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - while (TRUE) { -#line 4769 "Event.c" - gint _tmp35_; - void* _tmp36_; - void* _tmp37_; - const gchar* _tmp38_ = NULL; - gint _tmp39_; - const gchar* _tmp40_; - void* _tmp43_; - void* _tmp44_; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp33_) { -#line 4780 "Event.c" - gint _tmp34_; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp34_ = i; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = _tmp34_ + 1; -#line 4786 "Event.c" - } -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp33_ = FALSE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp35_ = i; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!(_tmp35_ < str_array_length1)) { -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - break; -#line 4796 "Event.c" - } -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp36_ = ptr; -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp37_ = g_stpcpy (_tmp36_, (const gchar*) separator); -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp37_; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp39_ = i; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp40_ = str_array[_tmp39_]; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp40_ != NULL) { -#line 4810 "Event.c" - gint _tmp41_; - const gchar* _tmp42_; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp41_ = i; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp42_ = str_array[_tmp41_]; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp38_ = (const gchar*) _tmp42_; -#line 4819 "Event.c" - } else { -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp38_ = ""; -#line 4823 "Event.c" - } -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp43_ = ptr; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp44_ = g_stpcpy (_tmp43_, _tmp38_); -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp44_; -#line 4831 "Event.c" - } - } -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp45_ = res; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = NULL; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gchar*) _tmp45_; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 4842 "Event.c" - } else { - gchar* _tmp46_; -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp46_ = g_strdup (""); -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp46_; -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 4851 "Event.c" - } -} - - -static void -event_update_indexable_keywords (Event* self) -{ - gchar** components = NULL; - gchar** _tmp0_; - gint components_length1; - gint _components_size_; - gint i = 0; - gchar* rawname = NULL; - gchar* _tmp1_; - const gchar* _tmp2_; - gchar* comment = NULL; - gchar* _tmp8_; - const gchar* _tmp9_; - gint _tmp15_; -#line 570 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_EVENT (self)); -#line 571 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = g_new0 (gchar*, 3 + 1); -#line 571 "/home/jens/Source/shotwell/src/Event.vala" - components = _tmp0_; -#line 571 "/home/jens/Source/shotwell/src/Event.vala" - components_length1 = 3; -#line 571 "/home/jens/Source/shotwell/src/Event.vala" - _components_size_ = components_length1; -#line 572 "/home/jens/Source/shotwell/src/Event.vala" - i = 0; -#line 574 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = event_get_raw_name (self); -#line 574 "/home/jens/Source/shotwell/src/Event.vala" - rawname = _tmp1_; -#line 575 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = rawname; -#line 575 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp2_ != NULL) { -#line 4891 "Event.c" - gchar** _tmp3_; - gint _tmp3__length1; - gint _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 576 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = components; -#line 576 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3__length1 = components_length1; -#line 576 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = i; -#line 576 "/home/jens/Source/shotwell/src/Event.vala" - i = _tmp4_ + 1; -#line 576 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = rawname; -#line 576 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 576 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp3_[_tmp4_]); -#line 576 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_[_tmp4_] = _tmp6_; -#line 576 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = _tmp3_[_tmp4_]; -#line 4916 "Event.c" - } -#line 578 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource)); -#line 578 "/home/jens/Source/shotwell/src/Event.vala" - comment = _tmp8_; -#line 579 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = comment; -#line 579 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp9_ != NULL) { -#line 4926 "Event.c" - gchar** _tmp10_; - gint _tmp10__length1; - gint _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; -#line 580 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = components; -#line 580 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10__length1 = components_length1; -#line 580 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = i; -#line 580 "/home/jens/Source/shotwell/src/Event.vala" - i = _tmp11_ + 1; -#line 580 "/home/jens/Source/shotwell/src/Event.vala" - _tmp12_ = comment; -#line 580 "/home/jens/Source/shotwell/src/Event.vala" - _tmp13_ = g_strdup (_tmp12_); -#line 580 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp10_[_tmp11_]); -#line 580 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_[_tmp11_] = _tmp13_; -#line 580 "/home/jens/Source/shotwell/src/Event.vala" - _tmp14_ = _tmp10_[_tmp11_]; -#line 4951 "Event.c" - } -#line 582 "/home/jens/Source/shotwell/src/Event.vala" - _tmp15_ = i; -#line 582 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp15_ == 0) { -#line 583 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (self->priv->indexable_keywords); -#line 583 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->indexable_keywords = NULL; -#line 4961 "Event.c" - } else { - gchar** _tmp16_; - gint _tmp16__length1; - gint _tmp17_; - gchar* _tmp18_; - gchar** _tmp19_; - gint _tmp19__length1; - gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; -#line 585 "/home/jens/Source/shotwell/src/Event.vala" - _tmp16_ = components; -#line 585 "/home/jens/Source/shotwell/src/Event.vala" - _tmp16__length1 = components_length1; -#line 585 "/home/jens/Source/shotwell/src/Event.vala" - _tmp17_ = i; -#line 585 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp16_[_tmp17_]); -#line 585 "/home/jens/Source/shotwell/src/Event.vala" - _tmp16_[_tmp17_] = NULL; -#line 585 "/home/jens/Source/shotwell/src/Event.vala" - _tmp18_ = _tmp16_[_tmp17_]; -#line 586 "/home/jens/Source/shotwell/src/Event.vala" - _tmp19_ = components; -#line 586 "/home/jens/Source/shotwell/src/Event.vala" - _tmp19__length1 = components_length1; -#line 586 "/home/jens/Source/shotwell/src/Event.vala" - _tmp20_ = _vala_g_strjoinv (" ", _tmp19_, _tmp19__length1); -#line 586 "/home/jens/Source/shotwell/src/Event.vala" - _tmp21_ = _tmp20_; -#line 586 "/home/jens/Source/shotwell/src/Event.vala" - _tmp22_ = indexable_prepare_indexable_string (_tmp21_); -#line 586 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (self->priv->indexable_keywords); -#line 586 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->indexable_keywords = _tmp22_; -#line 586 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp21_); -#line 5000 "Event.c" - } -#line 570 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (comment); -#line 570 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (rawname); -#line 570 "/home/jens/Source/shotwell/src/Event.vala" - components = (_vala_array_free (components, components_length1, (GDestroyNotify) g_free), NULL); -#line 5008 "Event.c" -} - - -static const gchar* -event_real_get_indexable_keywords (Indexable* base) -{ - Event * self; - const gchar* result = NULL; - const gchar* _tmp0_; -#line 590 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 591 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->indexable_keywords; -#line 591 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp0_; -#line 591 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 5026 "Event.c" -} - - -static void -g_time_local (time_t time, - struct tm* result) -{ - struct tm _result_ = {0}; - struct tm _tmp0_ = {0}; -#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - localtime_r (&time, &_tmp0_); -#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result = _result_; -#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return; -#line 5044 "Event.c" -} - - -gboolean -event_is_in_starting_day (Event* self, - time_t time) -{ - gboolean result = FALSE; - ViewCollection* _tmp0_; - MediaSource* earliest_media = NULL; - ViewCollection* _tmp1_; - DataObject* _tmp2_; - DataView* _tmp3_; - DataSource* _tmp4_; - MediaSource* _tmp5_; - struct tm earliest_tm = {0}; - MediaSource* _tmp6_; - struct tm _tmp7_ = {0}; - struct tm start_boundary_tm = {0}; - struct tm _tmp8_; - gint _tmp9_; - struct tm _tmp10_; - gint _tmp11_; - struct tm _tmp12_; - gint _tmp13_; - time_t start_boundary = 0; - struct tm _tmp14_; - gint _tmp15_; - time_t end_boundary = 0; - time_t _tmp17_; - gboolean _tmp18_ = FALSE; - time_t _tmp19_; -#line 594 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_EVENT (self), FALSE); -#line 599 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->view; -#line 599 "/home/jens/Source/shotwell/src/Event.vala" - if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection)) == 0) { -#line 600 "/home/jens/Source/shotwell/src/Event.vala" - result = FALSE; -#line 600 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 5087 "Event.c" - } -#line 603 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = self->priv->view; -#line 603 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), 0); -#line 603 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_VIEW, DataView); -#line 603 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = data_view_get_source (_tmp3_); -#line 603 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource); -#line 603 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp3_); -#line 603 "/home/jens/Source/shotwell/src/Event.vala" - earliest_media = _tmp5_; -#line 604 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = earliest_media; -#line 604 "/home/jens/Source/shotwell/src/Event.vala" - g_time_local (media_source_get_exposure_time (_tmp6_), &_tmp7_); -#line 604 "/home/jens/Source/shotwell/src/Event.vala" - earliest_tm = _tmp7_; -#line 607 "/home/jens/Source/shotwell/src/Event.vala" - memset (&start_boundary_tm, 0, sizeof (struct tm)); -#line 608 "/home/jens/Source/shotwell/src/Event.vala" - start_boundary_tm.tm_sec = 0; -#line 609 "/home/jens/Source/shotwell/src/Event.vala" - start_boundary_tm.tm_min = 0; -#line 610 "/home/jens/Source/shotwell/src/Event.vala" - start_boundary_tm.tm_hour = EVENT_EVENT_BOUNDARY_HOUR; -#line 611 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = earliest_tm; -#line 611 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = _tmp8_.tm_mday; -#line 611 "/home/jens/Source/shotwell/src/Event.vala" - start_boundary_tm.tm_mday = _tmp9_; -#line 612 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = earliest_tm; -#line 612 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = _tmp10_.tm_mon; -#line 612 "/home/jens/Source/shotwell/src/Event.vala" - start_boundary_tm.tm_mon = _tmp11_; -#line 613 "/home/jens/Source/shotwell/src/Event.vala" - _tmp12_ = earliest_tm; -#line 613 "/home/jens/Source/shotwell/src/Event.vala" - _tmp13_ = _tmp12_.tm_year; -#line 613 "/home/jens/Source/shotwell/src/Event.vala" - start_boundary_tm.tm_year = _tmp13_; -#line 614 "/home/jens/Source/shotwell/src/Event.vala" - start_boundary_tm.tm_isdst = -1; -#line 616 "/home/jens/Source/shotwell/src/Event.vala" - start_boundary = mktime (&start_boundary_tm); -#line 620 "/home/jens/Source/shotwell/src/Event.vala" - _tmp14_ = earliest_tm; -#line 620 "/home/jens/Source/shotwell/src/Event.vala" - _tmp15_ = _tmp14_.tm_hour; -#line 620 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp15_ < EVENT_EVENT_BOUNDARY_HOUR) { -#line 5145 "Event.c" - time_t _tmp16_; -#line 621 "/home/jens/Source/shotwell/src/Event.vala" - g_debug ("Event.vala:621: Hour before boundary, shifting back one day"); -#line 622 "/home/jens/Source/shotwell/src/Event.vala" - _tmp16_ = start_boundary; -#line 622 "/home/jens/Source/shotwell/src/Event.vala" - start_boundary = _tmp16_ - EVENT_TIME_T_DAY; -#line 5153 "Event.c" - } -#line 625 "/home/jens/Source/shotwell/src/Event.vala" - _tmp17_ = start_boundary; -#line 625 "/home/jens/Source/shotwell/src/Event.vala" - end_boundary = (_tmp17_ + EVENT_TIME_T_DAY) - 1; -#line 627 "/home/jens/Source/shotwell/src/Event.vala" - _tmp19_ = start_boundary; -#line 627 "/home/jens/Source/shotwell/src/Event.vala" - if (time >= _tmp19_) { -#line 5163 "Event.c" - time_t _tmp20_; -#line 627 "/home/jens/Source/shotwell/src/Event.vala" - _tmp20_ = end_boundary; -#line 627 "/home/jens/Source/shotwell/src/Event.vala" - _tmp18_ = time <= _tmp20_; -#line 5169 "Event.c" - } else { -#line 627 "/home/jens/Source/shotwell/src/Event.vala" - _tmp18_ = FALSE; -#line 5173 "Event.c" - } -#line 627 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp18_; -#line 627 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (earliest_media); -#line 627 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 5181 "Event.c" -} - - -static Event* -event_generate_event (MediaSource* media, - ViewCollection* events_so_far, - const gchar* event_name, - gboolean* new_event) -{ - gboolean _vala_new_event = FALSE; - Event* result = NULL; - time_t exposure_time = 0; - gboolean _tmp0_ = FALSE; - time_t _tmp1_; - gint count = 0; - GError * _inner_error_ = NULL; -#line 633 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (media), NULL); -#line 633 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (events_so_far), NULL); -#line 635 "/home/jens/Source/shotwell/src/Event.vala" - exposure_time = media_source_get_exposure_time (media); -#line 637 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = exposure_time; -#line 637 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp1_ == ((time_t) 0)) { -#line 637 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = event_name == NULL; -#line 5210 "Event.c" - } else { -#line 637 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = FALSE; -#line 5214 "Event.c" - } -#line 637 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp0_) { -#line 5218 "Event.c" - gchar* _tmp2_; - gchar* _tmp3_; -#line 638 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (media, TYPE_DATA_OBJECT, DataObject)); -#line 638 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = _tmp2_; -#line 638 "/home/jens/Source/shotwell/src/Event.vala" - g_debug ("Event.vala:638: Skipping event assignment to %s: no exposure time and " \ -"no event name", _tmp3_); -#line 638 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp3_); -#line 639 "/home/jens/Source/shotwell/src/Event.vala" - _vala_new_event = FALSE; -#line 641 "/home/jens/Source/shotwell/src/Event.vala" - result = NULL; -#line 641 "/home/jens/Source/shotwell/src/Event.vala" - if (new_event) { -#line 641 "/home/jens/Source/shotwell/src/Event.vala" - *new_event = _vala_new_event; -#line 5237 "Event.c" - } -#line 641 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 5241 "Event.c" - } -#line 644 "/home/jens/Source/shotwell/src/Event.vala" - count = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (events_so_far, TYPE_DATA_COLLECTION, DataCollection)); -#line 5245 "Event.c" - { - gint ctr = 0; -#line 645 "/home/jens/Source/shotwell/src/Event.vala" - ctr = 0; -#line 5250 "Event.c" - { - gboolean _tmp4_ = FALSE; -#line 645 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = TRUE; -#line 645 "/home/jens/Source/shotwell/src/Event.vala" - while (TRUE) { -#line 5257 "Event.c" - gint _tmp6_; - gint _tmp7_; - Event* event = NULL; - gint _tmp8_; - DataObject* _tmp9_; - EventView* _tmp10_; - DataSource* _tmp11_; - Event* _tmp12_; - gboolean _tmp13_ = FALSE; - gboolean _tmp14_ = FALSE; - gboolean _tmp15_ = FALSE; -#line 645 "/home/jens/Source/shotwell/src/Event.vala" - if (!_tmp4_) { -#line 5271 "Event.c" - gint _tmp5_; -#line 645 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = ctr; -#line 645 "/home/jens/Source/shotwell/src/Event.vala" - ctr = _tmp5_ + 1; -#line 5277 "Event.c" - } -#line 645 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = FALSE; -#line 645 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = ctr; -#line 645 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = count; -#line 645 "/home/jens/Source/shotwell/src/Event.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 645 "/home/jens/Source/shotwell/src/Event.vala" - break; -#line 5289 "Event.c" - } -#line 646 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = ctr; -#line 646 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (events_so_far, TYPE_DATA_COLLECTION, DataCollection), _tmp8_); -#line 646 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_EVENT_VIEW, EventView); -#line 646 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_VIEW, DataView)); -#line 646 "/home/jens/Source/shotwell/src/Event.vala" - _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_EVENT, Event); -#line 646 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp10_); -#line 646 "/home/jens/Source/shotwell/src/Event.vala" - event = _tmp12_; -#line 648 "/home/jens/Source/shotwell/src/Event.vala" - if (event_name != NULL) { -#line 5307 "Event.c" - Event* _tmp16_; -#line 648 "/home/jens/Source/shotwell/src/Event.vala" - _tmp16_ = event; -#line 648 "/home/jens/Source/shotwell/src/Event.vala" - _tmp15_ = event_has_name (_tmp16_); -#line 5313 "Event.c" - } else { -#line 648 "/home/jens/Source/shotwell/src/Event.vala" - _tmp15_ = FALSE; -#line 5317 "Event.c" - } -#line 648 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp15_) { -#line 5321 "Event.c" - Event* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; -#line 648 "/home/jens/Source/shotwell/src/Event.vala" - _tmp17_ = event; -#line 648 "/home/jens/Source/shotwell/src/Event.vala" - _tmp18_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_OBJECT, DataObject)); -#line 648 "/home/jens/Source/shotwell/src/Event.vala" - _tmp19_ = _tmp18_; -#line 648 "/home/jens/Source/shotwell/src/Event.vala" - _tmp14_ = g_strcmp0 (event_name, _tmp19_) == 0; -#line 648 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp19_); -#line 5335 "Event.c" - } else { -#line 648 "/home/jens/Source/shotwell/src/Event.vala" - _tmp14_ = FALSE; -#line 5339 "Event.c" - } -#line 648 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp14_) { -#line 648 "/home/jens/Source/shotwell/src/Event.vala" - _tmp13_ = TRUE; -#line 5345 "Event.c" - } else { - Event* _tmp20_; - time_t _tmp21_; -#line 649 "/home/jens/Source/shotwell/src/Event.vala" - _tmp20_ = event; -#line 649 "/home/jens/Source/shotwell/src/Event.vala" - _tmp21_ = exposure_time; -#line 649 "/home/jens/Source/shotwell/src/Event.vala" - _tmp13_ = event_is_in_starting_day (_tmp20_, _tmp21_); -#line 5355 "Event.c" - } -#line 648 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp13_) { -#line 650 "/home/jens/Source/shotwell/src/Event.vala" - _vala_new_event = FALSE; -#line 652 "/home/jens/Source/shotwell/src/Event.vala" - result = event; -#line 652 "/home/jens/Source/shotwell/src/Event.vala" - if (new_event) { -#line 652 "/home/jens/Source/shotwell/src/Event.vala" - *new_event = _vala_new_event; -#line 5367 "Event.c" - } -#line 652 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 5371 "Event.c" - } -#line 645 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (event); -#line 5375 "Event.c" - } - } - } - { - EventRow* _tmp22_ = NULL; - EventTable* _tmp23_; - EventTable* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - EventRow* _tmp27_; - EventRow* _tmp28_; - Event* event = NULL; - Event* _tmp29_; - Event* _tmp31_; - EventView* _tmp32_; - EventView* _tmp33_; -#line 658 "/home/jens/Source/shotwell/src/Event.vala" - _tmp23_ = event_table_get_instance (); -#line 658 "/home/jens/Source/shotwell/src/Event.vala" - _tmp24_ = _tmp23_; -#line 658 "/home/jens/Source/shotwell/src/Event.vala" - _tmp25_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (media, TYPE_DATA_SOURCE, DataSource)); -#line 658 "/home/jens/Source/shotwell/src/Event.vala" - _tmp26_ = _tmp25_; -#line 658 "/home/jens/Source/shotwell/src/Event.vala" - _tmp27_ = event_table_create (_tmp24_, _tmp26_, NULL, &_inner_error_); -#line 658 "/home/jens/Source/shotwell/src/Event.vala" - _tmp28_ = _tmp27_; -#line 658 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp26_); -#line 658 "/home/jens/Source/shotwell/src/Event.vala" - _database_table_unref0 (_tmp24_); -#line 658 "/home/jens/Source/shotwell/src/Event.vala" - _tmp22_ = _tmp28_; -#line 658 "/home/jens/Source/shotwell/src/Event.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 658 "/home/jens/Source/shotwell/src/Event.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 5414 "Event.c" - goto __catch449_database_error; - } -#line 658 "/home/jens/Source/shotwell/src/Event.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 658 "/home/jens/Source/shotwell/src/Event.vala" - g_clear_error (&_inner_error_); -#line 658 "/home/jens/Source/shotwell/src/Event.vala" - return NULL; -#line 5423 "Event.c" - } -#line 658 "/home/jens/Source/shotwell/src/Event.vala" - _tmp29_ = event_new (_tmp22_, DATA_OBJECT_INVALID_OBJECT_ID); -#line 658 "/home/jens/Source/shotwell/src/Event.vala" - event = _tmp29_; -#line 659 "/home/jens/Source/shotwell/src/Event.vala" - if (event_name != NULL) { -#line 5431 "Event.c" - Event* _tmp30_; -#line 660 "/home/jens/Source/shotwell/src/Event.vala" - _tmp30_ = event; -#line 660 "/home/jens/Source/shotwell/src/Event.vala" - event_rename (_tmp30_, event_name); -#line 5437 "Event.c" - } -#line 662 "/home/jens/Source/shotwell/src/Event.vala" - _tmp31_ = event; -#line 662 "/home/jens/Source/shotwell/src/Event.vala" - _tmp32_ = event_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_EVENT_SOURCE, EventSource)); -#line 662 "/home/jens/Source/shotwell/src/Event.vala" - _tmp33_ = _tmp32_; -#line 662 "/home/jens/Source/shotwell/src/Event.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (events_so_far, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_DATA_OBJECT, DataObject)); -#line 662 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp33_); -#line 664 "/home/jens/Source/shotwell/src/Event.vala" - _vala_new_event = TRUE; -#line 665 "/home/jens/Source/shotwell/src/Event.vala" - result = event; -#line 665 "/home/jens/Source/shotwell/src/Event.vala" - _event_row_unref0 (_tmp22_); -#line 665 "/home/jens/Source/shotwell/src/Event.vala" - if (new_event) { -#line 665 "/home/jens/Source/shotwell/src/Event.vala" - *new_event = _vala_new_event; -#line 5459 "Event.c" - } -#line 665 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 5463 "Event.c" - } - goto __finally449; - __catch449_database_error: - { - GError* err = NULL; - GError* _tmp34_; -#line 657 "/home/jens/Source/shotwell/src/Event.vala" - err = _inner_error_; -#line 657 "/home/jens/Source/shotwell/src/Event.vala" - _inner_error_ = NULL; -#line 667 "/home/jens/Source/shotwell/src/Event.vala" - _tmp34_ = err; -#line 667 "/home/jens/Source/shotwell/src/Event.vala" - app_window_database_error (_tmp34_); -#line 657 "/home/jens/Source/shotwell/src/Event.vala" - _g_error_free0 (err); -#line 5480 "Event.c" - } - __finally449: -#line 657 "/home/jens/Source/shotwell/src/Event.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 657 "/home/jens/Source/shotwell/src/Event.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 657 "/home/jens/Source/shotwell/src/Event.vala" - g_clear_error (&_inner_error_); -#line 657 "/home/jens/Source/shotwell/src/Event.vala" - return NULL; -#line 5491 "Event.c" - } -#line 670 "/home/jens/Source/shotwell/src/Event.vala" - _vala_new_event = FALSE; -#line 672 "/home/jens/Source/shotwell/src/Event.vala" - result = NULL; -#line 672 "/home/jens/Source/shotwell/src/Event.vala" - if (new_event) { -#line 672 "/home/jens/Source/shotwell/src/Event.vala" - *new_event = _vala_new_event; -#line 5501 "Event.c" - } -#line 672 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 5505 "Event.c" -} - - -void -event_generate_single_event (MediaSource* media, - ViewCollection* events_so_far, - const gchar* event_name) -{ - Event* _tmp0_; - Event* _tmp1_; - gboolean _tmp2_; - gboolean new_event = FALSE; - Event* event = NULL; - gboolean _tmp3_ = FALSE; - Event* _tmp4_; - Event* _tmp5_; - Event* _tmp6_; - gboolean _tmp7_; -#line 675 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_MEDIA_SOURCE (media)); -#line 675 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_VIEW_COLLECTION (events_so_far)); -#line 678 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = media_source_get_event (media); -#line 678 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = _tmp0_; -#line 678 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = _tmp1_ != NULL; -#line 678 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp1_); -#line 678 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp2_) { -#line 679 "/home/jens/Source/shotwell/src/Event.vala" - return; -#line 5540 "Event.c" - } -#line 682 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = event_generate_event (media, events_so_far, event_name, &_tmp3_); -#line 682 "/home/jens/Source/shotwell/src/Event.vala" - new_event = _tmp3_; -#line 682 "/home/jens/Source/shotwell/src/Event.vala" - event = _tmp4_; -#line 683 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = event; -#line 683 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp5_ == NULL) { -#line 684 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (event); -#line 684 "/home/jens/Source/shotwell/src/Event.vala" - return; -#line 5556 "Event.c" - } -#line 686 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = event; -#line 686 "/home/jens/Source/shotwell/src/Event.vala" - media_source_set_event (media, _tmp6_); -#line 688 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = new_event; -#line 688 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp7_) { -#line 5566 "Event.c" - EventSourceCollection* _tmp8_; - Event* _tmp9_; -#line 689 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = event_global; -#line 689 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = event; -#line 689 "/home/jens/Source/shotwell/src/Event.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject)); -#line 5575 "Event.c" - } -#line 675 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (event); -#line 5579 "Event.c" -} - - -void -event_generate_many_events (GeeCollection* sources, - ViewCollection* events_so_far) -{ - GeeCollection* to_add = NULL; - GeeArrayList* _tmp0_; - GeeCollection* _tmp18_; - gint _tmp19_; - gint _tmp20_; -#line 692 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 692 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_VIEW_COLLECTION (events_so_far)); -#line 693 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = gee_array_list_new (TYPE_EVENT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 693 "/home/jens/Source/shotwell/src/Event.vala" - to_add = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 5600 "Event.c" - { - GeeIterator* _media_it = NULL; - GeeIterator* _tmp1_; -#line 694 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 694 "/home/jens/Source/shotwell/src/Event.vala" - _media_it = _tmp1_; -#line 694 "/home/jens/Source/shotwell/src/Event.vala" - while (TRUE) { -#line 5610 "Event.c" - GeeIterator* _tmp2_; - MediaSource* media = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - MediaSource* _tmp5_; - Event* _tmp6_; - Event* _tmp7_; - gboolean _tmp8_; - gboolean new_event = FALSE; - Event* event = NULL; - MediaSource* _tmp9_; - gboolean _tmp10_ = FALSE; - Event* _tmp11_; - Event* _tmp12_; - MediaSource* _tmp13_; - Event* _tmp14_; - gboolean _tmp15_; -#line 694 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = _media_it; -#line 694 "/home/jens/Source/shotwell/src/Event.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 694 "/home/jens/Source/shotwell/src/Event.vala" - break; -#line 5634 "Event.c" - } -#line 694 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = _media_it; -#line 694 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 694 "/home/jens/Source/shotwell/src/Event.vala" - media = (MediaSource*) _tmp4_; -#line 696 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = media; -#line 696 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = media_source_get_event (_tmp5_); -#line 696 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = _tmp6_; -#line 696 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = _tmp7_ != NULL; -#line 696 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp7_); -#line 696 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp8_) { -#line 697 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (media); -#line 697 "/home/jens/Source/shotwell/src/Event.vala" - continue; -#line 5658 "Event.c" - } -#line 700 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = media; -#line 700 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = event_generate_event (_tmp9_, events_so_far, NULL, &_tmp10_); -#line 700 "/home/jens/Source/shotwell/src/Event.vala" - new_event = _tmp10_; -#line 700 "/home/jens/Source/shotwell/src/Event.vala" - event = _tmp11_; -#line 701 "/home/jens/Source/shotwell/src/Event.vala" - _tmp12_ = event; -#line 701 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp12_ == NULL) { -#line 702 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (event); -#line 702 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (media); -#line 702 "/home/jens/Source/shotwell/src/Event.vala" - continue; -#line 5678 "Event.c" - } -#line 704 "/home/jens/Source/shotwell/src/Event.vala" - _tmp13_ = media; -#line 704 "/home/jens/Source/shotwell/src/Event.vala" - _tmp14_ = event; -#line 704 "/home/jens/Source/shotwell/src/Event.vala" - media_source_set_event (_tmp13_, _tmp14_); -#line 706 "/home/jens/Source/shotwell/src/Event.vala" - _tmp15_ = new_event; -#line 706 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp15_) { -#line 5690 "Event.c" - GeeCollection* _tmp16_; - Event* _tmp17_; -#line 707 "/home/jens/Source/shotwell/src/Event.vala" - _tmp16_ = to_add; -#line 707 "/home/jens/Source/shotwell/src/Event.vala" - _tmp17_ = event; -#line 707 "/home/jens/Source/shotwell/src/Event.vala" - gee_collection_add (_tmp16_, _tmp17_); -#line 5699 "Event.c" - } -#line 694 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (event); -#line 694 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (media); -#line 5705 "Event.c" - } -#line 694 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_media_it); -#line 5709 "Event.c" - } -#line 710 "/home/jens/Source/shotwell/src/Event.vala" - _tmp18_ = to_add; -#line 710 "/home/jens/Source/shotwell/src/Event.vala" - _tmp19_ = gee_collection_get_size (_tmp18_); -#line 710 "/home/jens/Source/shotwell/src/Event.vala" - _tmp20_ = _tmp19_; -#line 710 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp20_ > 0) { -#line 5719 "Event.c" - EventSourceCollection* _tmp21_; - GeeCollection* _tmp22_; - GeeCollection* _tmp23_; - GeeCollection* _tmp24_; -#line 711 "/home/jens/Source/shotwell/src/Event.vala" - _tmp21_ = event_global; -#line 711 "/home/jens/Source/shotwell/src/Event.vala" - _tmp22_ = to_add; -#line 711 "/home/jens/Source/shotwell/src/Event.vala" - _tmp23_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_COLLECTION, DataCollection), _tmp22_, NULL, NULL); -#line 711 "/home/jens/Source/shotwell/src/Event.vala" - _tmp24_ = _tmp23_; -#line 711 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp24_); -#line 5734 "Event.c" - } -#line 692 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (to_add); -#line 5738 "Event.c" -} - - -void -event_get_event_id (Event* self, - EventID* result) -{ - EventID _tmp0_; -#line 714 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_EVENT (self)); -#line 715 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->event_id; -#line 715 "/home/jens/Source/shotwell/src/Event.vala" - *result = _tmp0_; -#line 715 "/home/jens/Source/shotwell/src/Event.vala" - return; -#line 5755 "Event.c" -} - - -static SourceSnapshot* -event_real_save_snapshot (DataSource* base) -{ - Event * self; - SourceSnapshot* result = NULL; - EventEventSnapshot* _tmp0_; -#line 718 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 719 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = event_event_snapshot_new (self); -#line 719 "/home/jens/Source/shotwell/src/Event.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_SNAPSHOT, SourceSnapshot); -#line 719 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 5773 "Event.c" -} - - -static SourceProxy* -event_real_get_proxy (Proxyable* base) -{ - Event * self; - SourceProxy* result = NULL; - EventEventProxy* _tmp0_; -#line 722 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 723 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = event_event_proxy_new (self); -#line 723 "/home/jens/Source/shotwell/src/Event.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_PROXY, SourceProxy); -#line 723 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 5791 "Event.c" -} - - -static gboolean -event_real_equals (DataSource* base, - DataSource* source) -{ - Event * self; - gboolean result = FALSE; - Event* event = NULL; - Event* _tmp0_; - Event* _tmp1_; -#line 726 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 726 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail ((source == NULL) || IS_DATA_SOURCE (source), FALSE); -#line 728 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_EVENT) ? ((Event*) source) : NULL); -#line 728 "/home/jens/Source/shotwell/src/Event.vala" - event = _tmp0_; -#line 729 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = event; -#line 729 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp1_ != NULL) { -#line 5816 "Event.c" - Event* _tmp2_; -#line 730 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = event; -#line 730 "/home/jens/Source/shotwell/src/Event.vala" - if (self != _tmp2_) { -#line 5822 "Event.c" - EventID _tmp3_; - gint64 _tmp4_; - Event* _tmp5_; - EventID _tmp6_; - gint64 _tmp7_; -#line 731 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = self->priv->event_id; -#line 731 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = _tmp3_.id; -#line 731 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = event; -#line 731 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = _tmp5_->priv->event_id; -#line 731 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = _tmp6_.id; -#line 731 "/home/jens/Source/shotwell/src/Event.vala" - _vala_assert (_tmp4_ != _tmp7_, "event_id.id != event.event_id.id"); -#line 5840 "Event.c" - } - } -#line 735 "/home/jens/Source/shotwell/src/Event.vala" - result = DATA_SOURCE_CLASS (event_parent_class)->equals (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource), TYPE_DATA_SOURCE, DataSource), source); -#line 735 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (event); -#line 735 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 5849 "Event.c" -} - - -static gchar* -event_real_to_string (DataObject* base) -{ - Event * self; - gchar* result = NULL; - EventID _tmp0_; - gint64 _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 738 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 739 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->event_id; -#line 739 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = _tmp0_.id; -#line 739 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp1_); -#line 739 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = _tmp2_; -#line 739 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = g_strdup_printf ("%" G_GINT64_FORMAT, data_object_get_object_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject))); -#line 739 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = _tmp4_; -#line 739 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 739 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = _tmp6_; -#line 739 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = g_strdup_printf ("Event [%s/%s] %s", _tmp3_, _tmp5_, _tmp7_); -#line 739 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = _tmp8_; -#line 739 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp7_); -#line 739 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp5_); -#line 739 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp3_); -#line 739 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp9_; -#line 739 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 5900 "Event.c" -} - - -gboolean -event_has_name (Event* self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - const gchar* _tmp1_; -#line 742 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_EVENT (self), FALSE); -#line 743 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = self->priv->raw_name; -#line 743 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp1_ != NULL) { -#line 5916 "Event.c" - const gchar* _tmp2_; - gint _tmp3_; - gint _tmp4_; -#line 743 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = self->priv->raw_name; -#line 743 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = strlen (_tmp2_); -#line 743 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = _tmp3_; -#line 743 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = _tmp4_ > 0; -#line 5928 "Event.c" - } else { -#line 743 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = FALSE; -#line 5932 "Event.c" - } -#line 743 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp0_; -#line 743 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 5938 "Event.c" -} - - -static gchar* -event_real_get_name (DataObject* base) -{ - Event * self; - gchar* result = NULL; - gchar* datestring = NULL; - gchar* _tmp1_; - gchar* _tmp2_ = NULL; - const gchar* _tmp3_; -#line 746 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 747 "/home/jens/Source/shotwell/src/Event.vala" - if (event_has_name (self)) { -#line 5955 "Event.c" - gchar* _tmp0_; -#line 748 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = event_get_raw_name (self); -#line 748 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp0_; -#line 748 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 5963 "Event.c" - } -#line 751 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = event_get_formatted_daterange (self); -#line 751 "/home/jens/Source/shotwell/src/Event.vala" - datestring = _tmp1_; -#line 753 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = datestring; -#line 753 "/home/jens/Source/shotwell/src/Event.vala" - if (!is_string_empty (_tmp3_)) { -#line 5973 "Event.c" - const gchar* _tmp4_; - gchar* _tmp5_; -#line 753 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = datestring; -#line 753 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = g_strdup (_tmp4_); -#line 753 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp2_); -#line 753 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = _tmp5_; -#line 5984 "Event.c" - } else { - EventID _tmp6_; - gint64 _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 753 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = self->priv->event_id; -#line 753 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = _tmp6_.id; -#line 753 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp7_); -#line 753 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = _tmp8_; -#line 753 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = g_strdup_printf (_ ("Event %s"), _tmp9_); -#line 753 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp2_); -#line 753 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = _tmp10_; -#line 753 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp9_); -#line 6007 "Event.c" - } -#line 753 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp2_; -#line 753 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (datestring); -#line 753 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6015 "Event.c" -} - - -gchar* -event_get_formatted_daterange (Event* self) -{ - gchar* result = NULL; - time_t start_time = 0; - time_t end_time = 0; - gboolean _tmp0_ = FALSE; - time_t _tmp1_; - gboolean _tmp3_ = FALSE; - time_t _tmp4_; - struct tm start = {0}; - time_t _tmp9_; - struct tm _tmp10_ = {0}; - struct tm end = {0}; - time_t _tmp11_; - struct tm _tmp12_ = {0}; - gboolean _tmp13_ = FALSE; - gboolean _tmp14_ = FALSE; - struct tm _tmp15_; - gint _tmp16_; - struct tm _tmp17_; - gint _tmp18_; - struct tm _tmp30_; - struct tm _tmp31_; - gchar* _tmp32_; -#line 756 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_EVENT (self), NULL); -#line 757 "/home/jens/Source/shotwell/src/Event.vala" - start_time = event_source_get_start_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource)); -#line 758 "/home/jens/Source/shotwell/src/Event.vala" - end_time = event_source_get_end_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource)); -#line 760 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = end_time; -#line 760 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp1_ == ((time_t) 0)) { -#line 6054 "Event.c" - time_t _tmp2_; -#line 760 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = start_time; -#line 760 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = _tmp2_ == ((time_t) 0); -#line 6060 "Event.c" - } else { -#line 760 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = FALSE; -#line 6064 "Event.c" - } -#line 760 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp0_) { -#line 761 "/home/jens/Source/shotwell/src/Event.vala" - result = NULL; -#line 761 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6072 "Event.c" - } -#line 763 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = end_time; -#line 763 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp4_ == ((time_t) 0)) { -#line 6078 "Event.c" - time_t _tmp5_; -#line 763 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = start_time; -#line 763 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = _tmp5_ != ((time_t) 0); -#line 6084 "Event.c" - } else { -#line 763 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = FALSE; -#line 6088 "Event.c" - } -#line 763 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp3_) { -#line 6092 "Event.c" - time_t _tmp6_; - struct tm _tmp7_ = {0}; - gchar* _tmp8_; -#line 764 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = start_time; -#line 764 "/home/jens/Source/shotwell/src/Event.vala" - g_time_local (_tmp6_, &_tmp7_); -#line 764 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = format_local_date (&_tmp7_); -#line 764 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp8_; -#line 764 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6106 "Event.c" - } -#line 766 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = start_time; -#line 766 "/home/jens/Source/shotwell/src/Event.vala" - g_time_local (_tmp9_, &_tmp10_); -#line 766 "/home/jens/Source/shotwell/src/Event.vala" - start = _tmp10_; -#line 767 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = end_time; -#line 767 "/home/jens/Source/shotwell/src/Event.vala" - g_time_local (_tmp11_, &_tmp12_); -#line 767 "/home/jens/Source/shotwell/src/Event.vala" - end = _tmp12_; -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - _tmp15_ = start; -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - _tmp16_ = _tmp15_.tm_mday; -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - _tmp17_ = end; -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - _tmp18_ = _tmp17_.tm_mday; -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp16_ == _tmp18_) { -#line 6130 "Event.c" - struct tm _tmp19_; - gint _tmp20_; - struct tm _tmp21_; - gint _tmp22_; -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - _tmp19_ = start; -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - _tmp20_ = _tmp19_.tm_mon; -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - _tmp21_ = end; -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - _tmp22_ = _tmp21_.tm_mon; -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - _tmp14_ = _tmp20_ == _tmp22_; -#line 6145 "Event.c" - } else { -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - _tmp14_ = FALSE; -#line 6149 "Event.c" - } -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp14_) { -#line 6153 "Event.c" - struct tm _tmp23_; - gint _tmp24_; - struct tm _tmp25_; - gint _tmp26_; -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - _tmp23_ = start; -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - _tmp24_ = _tmp23_.tm_mday; -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - _tmp25_ = end; -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - _tmp26_ = _tmp25_.tm_mday; -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - _tmp13_ = _tmp24_ == _tmp26_; -#line 6168 "Event.c" - } else { -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - _tmp13_ = FALSE; -#line 6172 "Event.c" - } -#line 769 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp13_) { -#line 6176 "Event.c" - time_t _tmp27_; - struct tm _tmp28_ = {0}; - gchar* _tmp29_; -#line 770 "/home/jens/Source/shotwell/src/Event.vala" - _tmp27_ = start_time; -#line 770 "/home/jens/Source/shotwell/src/Event.vala" - g_time_local (_tmp27_, &_tmp28_); -#line 770 "/home/jens/Source/shotwell/src/Event.vala" - _tmp29_ = format_local_date (&_tmp28_); -#line 770 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp29_; -#line 770 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6190 "Event.c" - } -#line 772 "/home/jens/Source/shotwell/src/Event.vala" - _tmp30_ = start; -#line 772 "/home/jens/Source/shotwell/src/Event.vala" - _tmp31_ = end; -#line 772 "/home/jens/Source/shotwell/src/Event.vala" - _tmp32_ = format_local_datespan (&_tmp30_, &_tmp31_); -#line 772 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp32_; -#line 772 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6202 "Event.c" -} - - -gchar* -event_get_raw_name (Event* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 775 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_EVENT (self), NULL); -#line 776 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->raw_name; -#line 776 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 776 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp1_; -#line 776 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6222 "Event.c" -} - - -static gchar* -event_real_get_comment (EventSource* base) -{ - Event * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 779 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 780 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->comment; -#line 780 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 780 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp1_; -#line 780 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6243 "Event.c" -} - - -gboolean -event_rename (Event* self, - const gchar* name) -{ - gboolean result = FALSE; - gchar* new_name = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gboolean _tmp4_; - gboolean renamed = FALSE; - EventTable* _tmp6_; - EventID _tmp7_; - const gchar* _tmp8_; - gboolean _tmp9_; -#line 783 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_EVENT (self), FALSE); -#line 784 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = event_prep_event_name (name); -#line 784 "/home/jens/Source/shotwell/src/Event.vala" - new_name = _tmp0_; -#line 787 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = new_name; -#line 787 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = event_get_formatted_daterange (self); -#line 787 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = _tmp2_; -#line 787 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = g_strcmp0 (_tmp1_, _tmp3_) == 0; -#line 787 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp3_); -#line 787 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp4_) { -#line 6281 "Event.c" - gchar* _tmp5_; -#line 788 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = g_strdup (""); -#line 788 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (new_name); -#line 788 "/home/jens/Source/shotwell/src/Event.vala" - new_name = _tmp5_; -#line 6289 "Event.c" - } -#line 791 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = event_event_table; -#line 791 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = self->priv->event_id; -#line 791 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = new_name; -#line 791 "/home/jens/Source/shotwell/src/Event.vala" - renamed = event_table_rename (_tmp6_, &_tmp7_, _tmp8_); -#line 792 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = renamed; -#line 792 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp9_) { -#line 6303 "Event.c" - const gchar* _tmp10_; - gchar* _tmp11_; - Alteration* _tmp12_; - Alteration* _tmp13_; -#line 793 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = new_name; -#line 793 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = g_strdup (_tmp10_); -#line 793 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (self->priv->raw_name); -#line 793 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->raw_name = _tmp11_; -#line 794 "/home/jens/Source/shotwell/src/Event.vala" - event_update_indexable_keywords (self); -#line 795 "/home/jens/Source/shotwell/src/Event.vala" - _tmp12_ = alteration_new_from_list ("metadata:name, indexable:keywords"); -#line 795 "/home/jens/Source/shotwell/src/Event.vala" - _tmp13_ = _tmp12_; -#line 795 "/home/jens/Source/shotwell/src/Event.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp13_); -#line 795 "/home/jens/Source/shotwell/src/Event.vala" - _alteration_unref0 (_tmp13_); -#line 6326 "Event.c" - } -#line 798 "/home/jens/Source/shotwell/src/Event.vala" - result = renamed; -#line 798 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (new_name); -#line 798 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6334 "Event.c" -} - - -static gboolean -event_real_set_comment (EventSource* base, - const gchar* comment) -{ - Event * self; - gboolean result = FALSE; - gchar* new_comment = NULL; - gchar* _tmp0_; - gboolean committed = FALSE; - EventTable* _tmp1_; - EventID _tmp2_; - const gchar* _tmp3_; - gboolean _tmp4_; -#line 801 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 802 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = media_source_prep_comment (comment); -#line 802 "/home/jens/Source/shotwell/src/Event.vala" - new_comment = _tmp0_; -#line 804 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = event_event_table; -#line 804 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = self->priv->event_id; -#line 804 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = new_comment; -#line 804 "/home/jens/Source/shotwell/src/Event.vala" - committed = event_table_set_comment (_tmp1_, &_tmp2_, _tmp3_); -#line 805 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = committed; -#line 805 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp4_) { -#line 6369 "Event.c" - const gchar* _tmp5_; - gchar* _tmp6_; - Alteration* _tmp7_; - Alteration* _tmp8_; -#line 806 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = new_comment; -#line 806 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 806 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (self->priv->comment); -#line 806 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->comment = _tmp6_; -#line 807 "/home/jens/Source/shotwell/src/Event.vala" - event_update_indexable_keywords (self); -#line 808 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = alteration_new_from_list ("metadata:comment, indexable:keywords"); -#line 808 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = _tmp7_; -#line 808 "/home/jens/Source/shotwell/src/Event.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp8_); -#line 808 "/home/jens/Source/shotwell/src/Event.vala" - _alteration_unref0 (_tmp8_); -#line 6392 "Event.c" - } -#line 811 "/home/jens/Source/shotwell/src/Event.vala" - result = committed; -#line 811 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (new_comment); -#line 811 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6400 "Event.c" -} - - -time_t -event_get_creation_time (Event* self) -{ - time_t result = 0; - EventTable* _tmp0_; - EventID _tmp1_; -#line 814 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_EVENT (self), 0); -#line 815 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = event_event_table; -#line 815 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = self->priv->event_id; -#line 815 "/home/jens/Source/shotwell/src/Event.vala" - result = event_table_get_time_created (_tmp0_, &_tmp1_); -#line 815 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6420 "Event.c" -} - - -static time_t -event_real_get_start_time (EventSource* base) -{ - Event * self; - time_t result = 0; - gint count = 0; - ViewCollection* _tmp0_; -#line 818 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 821 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->view; -#line 821 "/home/jens/Source/shotwell/src/Event.vala" - count = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection)); -#line 6437 "Event.c" - { - gint i = 0; -#line 822 "/home/jens/Source/shotwell/src/Event.vala" - i = 0; -#line 6442 "Event.c" - { - gboolean _tmp1_ = FALSE; -#line 822 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = TRUE; -#line 822 "/home/jens/Source/shotwell/src/Event.vala" - while (TRUE) { -#line 6449 "Event.c" - gint _tmp3_; - gint _tmp4_; - time_t time = 0; - ViewCollection* _tmp5_; - gint _tmp6_; - DataObject* _tmp7_; - DataView* _tmp8_; - DataSource* _tmp9_; - MediaSource* _tmp10_; - time_t _tmp11_; - time_t _tmp12_; -#line 822 "/home/jens/Source/shotwell/src/Event.vala" - if (!_tmp1_) { -#line 6463 "Event.c" - gint _tmp2_; -#line 822 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = i; -#line 822 "/home/jens/Source/shotwell/src/Event.vala" - i = _tmp2_ + 1; -#line 6469 "Event.c" - } -#line 822 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = FALSE; -#line 822 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = i; -#line 822 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = count; -#line 822 "/home/jens/Source/shotwell/src/Event.vala" - if (!(_tmp3_ < _tmp4_)) { -#line 822 "/home/jens/Source/shotwell/src/Event.vala" - break; -#line 6481 "Event.c" - } -#line 823 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = self->priv->view; -#line 823 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = i; -#line 823 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), _tmp6_); -#line 823 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_VIEW, DataView); -#line 823 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = data_view_get_source (_tmp8_); -#line 823 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_SOURCE, MediaSource); -#line 823 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = media_source_get_exposure_time (_tmp10_); -#line 823 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp10_); -#line 823 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp8_); -#line 823 "/home/jens/Source/shotwell/src/Event.vala" - time = _tmp11_; -#line 824 "/home/jens/Source/shotwell/src/Event.vala" - _tmp12_ = time; -#line 824 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp12_ != ((time_t) 0)) { -#line 825 "/home/jens/Source/shotwell/src/Event.vala" - result = time; -#line 825 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6511 "Event.c" - } - } - } - } -#line 828 "/home/jens/Source/shotwell/src/Event.vala" - result = (time_t) 0; -#line 828 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6520 "Event.c" -} - - -static time_t -event_real_get_end_time (EventSource* base) -{ - Event * self; - time_t result = 0; - gint count = 0; - ViewCollection* _tmp0_; - gint _tmp1_; - ViewCollection* _tmp2_; - gint _tmp3_; - DataObject* _tmp4_; - DataView* _tmp5_; - DataSource* _tmp6_; - MediaSource* _tmp7_; - time_t _tmp8_; -#line 831 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 832 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->view; -#line 832 "/home/jens/Source/shotwell/src/Event.vala" - count = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection)); -#line 836 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = count; -#line 836 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp1_ == 0) { -#line 837 "/home/jens/Source/shotwell/src/Event.vala" - result = (time_t) 0; -#line 837 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6553 "Event.c" - } -#line 839 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = self->priv->view; -#line 839 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = count; -#line 839 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), _tmp3_ - 1); -#line 839 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_VIEW, DataView); -#line 839 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = data_view_get_source (_tmp5_); -#line 839 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource); -#line 839 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = media_source_get_exposure_time (_tmp7_); -#line 839 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp7_); -#line 839 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp5_); -#line 839 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp8_; -#line 839 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6577 "Event.c" -} - - -static guint64 -event_real_get_total_filesize (EventSource* base) -{ - Event * self; - guint64 result = 0ULL; - guint64 total = 0ULL; -#line 842 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 843 "/home/jens/Source/shotwell/src/Event.vala" - total = (guint64) 0; -#line 6591 "Event.c" - { - GeeIterator* _current_source_it = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 844 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = event_source_get_media (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource)); -#line 844 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = _tmp0_; -#line 844 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 844 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = _tmp2_; -#line 844 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp1_); -#line 844 "/home/jens/Source/shotwell/src/Event.vala" - _current_source_it = _tmp3_; -#line 844 "/home/jens/Source/shotwell/src/Event.vala" - while (TRUE) { -#line 6612 "Event.c" - GeeIterator* _tmp4_; - MediaSource* current_source = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - guint64 _tmp7_; - MediaSource* _tmp8_; -#line 844 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = _current_source_it; -#line 844 "/home/jens/Source/shotwell/src/Event.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 844 "/home/jens/Source/shotwell/src/Event.vala" - break; -#line 6625 "Event.c" - } -#line 844 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = _current_source_it; -#line 844 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 844 "/home/jens/Source/shotwell/src/Event.vala" - current_source = (MediaSource*) _tmp6_; -#line 845 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = total; -#line 845 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = current_source; -#line 845 "/home/jens/Source/shotwell/src/Event.vala" - total = _tmp7_ + media_source_get_filesize (_tmp8_); -#line 844 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (current_source); -#line 6641 "Event.c" - } -#line 844 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_current_source_it); -#line 6645 "Event.c" - } -#line 848 "/home/jens/Source/shotwell/src/Event.vala" - result = total; -#line 848 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6651 "Event.c" -} - - -static gint -event_real_get_media_count (EventSource* base) -{ - Event * self; - gint result = 0; - ViewCollection* _tmp0_; -#line 851 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 852 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->view; -#line 852 "/home/jens/Source/shotwell/src/Event.vala" - result = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection)); -#line 852 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6669 "Event.c" -} - - -static GeeCollection* -event_real_get_media (EventSource* base) -{ - Event * self; - GeeCollection* result = NULL; - ViewCollection* _tmp0_; - GeeCollection* _tmp1_; -#line 855 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 856 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->view; -#line 856 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = view_collection_get_sources (_tmp0_); -#line 856 "/home/jens/Source/shotwell/src/Event.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection); -#line 856 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6690 "Event.c" -} - - -void -event_mirror_photos (Event* self, - ViewCollection* view, - CreateView mirroring_ctor, - void* mirroring_ctor_target) -{ - ViewCollection* _tmp0_; -#line 859 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_EVENT (self)); -#line 859 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_VIEW_COLLECTION (view)); -#line 860 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->view; -#line 860 "/home/jens/Source/shotwell/src/Event.vala" - view_collection_mirror (view, _tmp0_, mirroring_ctor, mirroring_ctor_target, NULL, NULL); -#line 6709 "Event.c" -} - - -static void -event_on_primary_thumbnail_altered (Event* self) -{ -#line 863 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_EVENT (self)); -#line 864 "/home/jens/Source/shotwell/src/Event.vala" - thumbnail_source_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 6720 "Event.c" -} - - -MediaSource* -event_get_primary_source (Event* self) -{ - MediaSource* result = NULL; - MediaSource* _tmp0_; - MediaSource* _tmp1_; -#line 867 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_EVENT (self), NULL); -#line 868 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->primary_source; -#line 868 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 868 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp1_; -#line 868 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6740 "Event.c" -} - - -gboolean -event_set_primary_source (Event* self, - MediaSource* source) -{ - gboolean result = FALSE; - ViewCollection* _tmp0_; - gboolean committed = FALSE; - EventTable* _tmp1_; - EventID _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gboolean _tmp5_; - gboolean _tmp6_; -#line 871 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_EVENT (self), FALSE); -#line 871 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE); -#line 872 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->view; -#line 872 "/home/jens/Source/shotwell/src/Event.vala" - _vala_assert (view_collection_has_view_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)), "view.has_view_for_source(source)"); -#line 874 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = event_event_table; -#line 874 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = self->priv->event_id; -#line 874 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)); -#line 874 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = _tmp3_; -#line 874 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = event_table_set_primary_source_id (_tmp1_, &_tmp2_, _tmp4_); -#line 874 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (_tmp4_); -#line 874 "/home/jens/Source/shotwell/src/Event.vala" - committed = _tmp5_; -#line 875 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = committed; -#line 875 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp6_) { -#line 6783 "Event.c" - MediaSource* _tmp7_; - MediaSource* _tmp10_; - MediaSource* _tmp11_; -#line 877 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = self->priv->primary_source; -#line 877 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp7_ != NULL) { -#line 6791 "Event.c" - MediaSource* _tmp8_; - guint _tmp9_; -#line 878 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = self->priv->primary_source; -#line 878 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_parse_name ("thumbnail-altered", TYPE_THUMBNAIL_SOURCE, &_tmp9_, NULL, FALSE); -#line 878 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered, self); -#line 6800 "Event.c" - } -#line 880 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = _g_object_ref0 (source); -#line 880 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (self->priv->primary_source); -#line 880 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->primary_source = _tmp10_; -#line 881 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = self->priv->primary_source; -#line 881 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), "thumbnail-altered", (GCallback) _event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered, self, 0); -#line 883 "/home/jens/Source/shotwell/src/Event.vala" - thumbnail_source_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 6814 "Event.c" - } -#line 886 "/home/jens/Source/shotwell/src/Event.vala" - result = committed; -#line 886 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6820 "Event.c" -} - - -static void -event_release_primary_source (Event* self) -{ - MediaSource* _tmp0_; - MediaSource* _tmp1_; - guint _tmp2_; -#line 889 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_EVENT (self)); -#line 890 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->primary_source; -#line 890 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp0_ == NULL) { -#line 891 "/home/jens/Source/shotwell/src/Event.vala" - return; -#line 6838 "Event.c" - } -#line 893 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = self->priv->primary_source; -#line 893 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_parse_name ("thumbnail-altered", TYPE_THUMBNAIL_SOURCE, &_tmp2_, NULL, FALSE); -#line 893 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered, self); -#line 894 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (self->priv->primary_source); -#line 894 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->primary_source = NULL; -#line 6850 "Event.c" -} - - -static GdkPixbuf* -event_real_get_thumbnail (ThumbnailSource* base, - gint scale, - GError** error) -{ - Event * self; - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_ = NULL; - MediaSource* _tmp1_; - GError * _inner_error_ = NULL; -#line 897 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 898 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = self->priv->primary_source; -#line 898 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp1_ != NULL) { -#line 6870 "Event.c" - MediaSource* _tmp2_; - GdkPixbuf* _tmp3_; -#line 898 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = self->priv->primary_source; -#line 898 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = thumbnail_source_get_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), scale, &_inner_error_); -#line 898 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp0_); -#line 898 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = _tmp3_; -#line 898 "/home/jens/Source/shotwell/src/Event.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 898 "/home/jens/Source/shotwell/src/Event.vala" - g_propagate_error (error, _inner_error_); -#line 898 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp0_); -#line 898 "/home/jens/Source/shotwell/src/Event.vala" - return NULL; -#line 6889 "Event.c" - } - } else { -#line 898 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp0_); -#line 898 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = NULL; -#line 6896 "Event.c" - } -#line 898 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp0_; -#line 898 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6902 "Event.c" -} - - -GdkPixbuf* -event_get_preview_pixbuf (Event* self, - Scaling* scaling) -{ - GdkPixbuf* result = NULL; - GError * _inner_error_ = NULL; -#line 901 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_EVENT (self), NULL); -#line 901 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 6916 "Event.c" - { - GdkPixbuf* _tmp0_ = NULL; - MediaSource* _tmp1_; - MediaSource* _tmp2_; - Scaling _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; -#line 903 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = event_get_primary_source (self); -#line 903 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = _tmp1_; -#line 903 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = *scaling; -#line 903 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = media_source_get_preview_pixbuf (_tmp2_, &_tmp3_, &_inner_error_); -#line 903 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = _tmp4_; -#line 903 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp2_); -#line 903 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = _tmp5_; -#line 903 "/home/jens/Source/shotwell/src/Event.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6941 "Event.c" - goto __catch450_g_error; - } -#line 903 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = _tmp0_; -#line 903 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = NULL; -#line 903 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp6_; -#line 903 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp0_); -#line 903 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6954 "Event.c" - } - goto __finally450; - __catch450_g_error: - { - GError* err = NULL; -#line 902 "/home/jens/Source/shotwell/src/Event.vala" - err = _inner_error_; -#line 902 "/home/jens/Source/shotwell/src/Event.vala" - _inner_error_ = NULL; -#line 905 "/home/jens/Source/shotwell/src/Event.vala" - result = NULL; -#line 905 "/home/jens/Source/shotwell/src/Event.vala" - _g_error_free0 (err); -#line 905 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 6970 "Event.c" - } - __finally450: -#line 902 "/home/jens/Source/shotwell/src/Event.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 902 "/home/jens/Source/shotwell/src/Event.vala" - g_clear_error (&_inner_error_); -#line 902 "/home/jens/Source/shotwell/src/Event.vala" - return NULL; -#line 6979 "Event.c" -} - - -static void -event_real_destroy (DataSource* base) -{ - Event * self; - ViewCollection* _tmp0_; - PhotoTable* _tmp4_; - PhotoTable* _tmp5_; - EventID _tmp6_; - VideoTable* _tmp7_; - VideoTable* _tmp8_; - EventID _tmp9_; - GError * _inner_error_ = NULL; -#line 909 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT, Event); -#line 911 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->view; -#line 911 "/home/jens/Source/shotwell/src/Event.vala" - view_collection_halt_all_monitoring (_tmp0_); -#line 7001 "Event.c" - { - EventTable* _tmp1_; - EventID _tmp2_; -#line 915 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = event_event_table; -#line 915 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = self->priv->event_id; -#line 915 "/home/jens/Source/shotwell/src/Event.vala" - event_table_remove (_tmp1_, &_tmp2_, &_inner_error_); -#line 915 "/home/jens/Source/shotwell/src/Event.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 915 "/home/jens/Source/shotwell/src/Event.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 7015 "Event.c" - goto __catch451_database_error; - } -#line 915 "/home/jens/Source/shotwell/src/Event.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 915 "/home/jens/Source/shotwell/src/Event.vala" - g_clear_error (&_inner_error_); -#line 915 "/home/jens/Source/shotwell/src/Event.vala" - return; -#line 7024 "Event.c" - } - } - goto __finally451; - __catch451_database_error: - { - GError* err = NULL; - GError* _tmp3_; -#line 914 "/home/jens/Source/shotwell/src/Event.vala" - err = _inner_error_; -#line 914 "/home/jens/Source/shotwell/src/Event.vala" - _inner_error_ = NULL; -#line 917 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = err; -#line 917 "/home/jens/Source/shotwell/src/Event.vala" - app_window_database_error (_tmp3_); -#line 914 "/home/jens/Source/shotwell/src/Event.vala" - _g_error_free0 (err); -#line 7042 "Event.c" - } - __finally451: -#line 914 "/home/jens/Source/shotwell/src/Event.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 914 "/home/jens/Source/shotwell/src/Event.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 914 "/home/jens/Source/shotwell/src/Event.vala" - g_clear_error (&_inner_error_); -#line 914 "/home/jens/Source/shotwell/src/Event.vala" - return; -#line 7053 "Event.c" - } -#line 921 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = photo_table_get_instance (); -#line 921 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = _tmp4_; -#line 921 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = self->priv->event_id; -#line 921 "/home/jens/Source/shotwell/src/Event.vala" - photo_table_drop_event (_tmp5_, &_tmp6_); -#line 921 "/home/jens/Source/shotwell/src/Event.vala" - _database_table_unref0 (_tmp5_); -#line 922 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = video_table_get_instance (); -#line 922 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = _tmp7_; -#line 922 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = self->priv->event_id; -#line 922 "/home/jens/Source/shotwell/src/Event.vala" - video_table_drop_event (_tmp8_, &_tmp9_); -#line 922 "/home/jens/Source/shotwell/src/Event.vala" - _database_table_unref0 (_tmp8_); -#line 924 "/home/jens/Source/shotwell/src/Event.vala" - DATA_SOURCE_CLASS (event_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENT_SOURCE, EventSource), TYPE_DATA_SOURCE, DataSource)); -#line 7077 "Event.c" -} - - -static void -_event_event_snapshot_on_attached_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self) -{ -#line 126 "/home/jens/Source/shotwell/src/Event.vala" - event_event_snapshot_on_attached_source_destroyed ((EventEventSnapshot*) self, source); -#line 7088 "Event.c" -} - - -static EventEventSnapshot* -event_event_snapshot_construct (GType object_type, - Event* event) -{ - EventEventSnapshot* self = NULL; - EventTable* _tmp0_; - EventTable* _tmp1_; - EventID _tmp2_ = {0}; - EventRow* _tmp3_; - MediaSource* _tmp4_; - LibraryPhotoSourceCollection* _tmp14_; - VideoSourceCollection* _tmp15_; -#line 110 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_EVENT (event), NULL); -#line 110 "/home/jens/Source/shotwell/src/Event.vala" - self = (EventEventSnapshot*) source_snapshot_construct (object_type); -#line 112 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = event_table_get_instance (); -#line 112 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = _tmp0_; -#line 112 "/home/jens/Source/shotwell/src/Event.vala" - event_get_event_id (event, &_tmp2_); -#line 112 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = event_table_get_row (_tmp1_, &_tmp2_); -#line 112 "/home/jens/Source/shotwell/src/Event.vala" - _event_row_unref0 (self->priv->row); -#line 112 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->row = _tmp3_; -#line 112 "/home/jens/Source/shotwell/src/Event.vala" - _database_table_unref0 (_tmp1_); -#line 113 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = event_get_primary_source (event); -#line 113 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (self->priv->primary_source); -#line 113 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->primary_source = _tmp4_; -#line 7128 "Event.c" - { - GeeIterator* _source_it = NULL; - GeeCollection* _tmp5_; - GeeCollection* _tmp6_; - GeeIterator* _tmp7_; - GeeIterator* _tmp8_; -#line 118 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = event_source_get_media (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_EVENT_SOURCE, EventSource)); -#line 118 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = _tmp5_; -#line 118 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 118 "/home/jens/Source/shotwell/src/Event.vala" - _tmp8_ = _tmp7_; -#line 118 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_tmp6_); -#line 118 "/home/jens/Source/shotwell/src/Event.vala" - _source_it = _tmp8_; -#line 118 "/home/jens/Source/shotwell/src/Event.vala" - while (TRUE) { -#line 7149 "Event.c" - GeeIterator* _tmp9_; - MediaSource* source = NULL; - GeeIterator* _tmp10_; - gpointer _tmp11_; - GeeArrayList* _tmp12_; - MediaSource* _tmp13_; -#line 118 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = _source_it; -#line 118 "/home/jens/Source/shotwell/src/Event.vala" - if (!gee_iterator_next (_tmp9_)) { -#line 118 "/home/jens/Source/shotwell/src/Event.vala" - break; -#line 7162 "Event.c" - } -#line 118 "/home/jens/Source/shotwell/src/Event.vala" - _tmp10_ = _source_it; -#line 118 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = gee_iterator_get (_tmp10_); -#line 118 "/home/jens/Source/shotwell/src/Event.vala" - source = (MediaSource*) _tmp11_; -#line 119 "/home/jens/Source/shotwell/src/Event.vala" - _tmp12_ = self->priv->attached_sources; -#line 119 "/home/jens/Source/shotwell/src/Event.vala" - _tmp13_ = source; -#line 119 "/home/jens/Source/shotwell/src/Event.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp13_); -#line 118 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (source); -#line 7178 "Event.c" - } -#line 118 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (_source_it); -#line 7182 "Event.c" - } -#line 121 "/home/jens/Source/shotwell/src/Event.vala" - _tmp14_ = library_photo_global; -#line 121 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _event_event_snapshot_on_attached_source_destroyed_source_collection_item_destroyed, self); -#line 122 "/home/jens/Source/shotwell/src/Event.vala" - _tmp15_ = video_global; -#line 122 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _event_event_snapshot_on_attached_source_destroyed_source_collection_item_destroyed, self); -#line 110 "/home/jens/Source/shotwell/src/Event.vala" - return self; -#line 7194 "Event.c" -} - - -static EventEventSnapshot* -event_event_snapshot_new (Event* event) -{ -#line 110 "/home/jens/Source/shotwell/src/Event.vala" - return event_event_snapshot_construct (EVENT_TYPE_EVENT_SNAPSHOT, event); -#line 7203 "Event.c" -} - - -static gpointer -_event_row_ref0 (gpointer self) -{ -#line 131 "/home/jens/Source/shotwell/src/Event.vala" - return self ? event_row_ref (self) : NULL; -#line 7212 "Event.c" -} - - -static EventRow* -event_event_snapshot_get_row (EventEventSnapshot* self) -{ - EventRow* result = NULL; - EventRow* _tmp0_; - EventRow* _tmp1_; -#line 130 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (EVENT_IS_EVENT_SNAPSHOT (self), NULL); -#line 131 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->row; -#line 131 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = _event_row_ref0 (_tmp0_); -#line 131 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp1_; -#line 131 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 7232 "Event.c" -} - - -static void -event_event_snapshot_real_notify_broken (SourceSnapshot* base) -{ - EventEventSnapshot * self; - EventRow* _tmp0_; - GeeArrayList* _tmp1_; -#line 134 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENT_TYPE_EVENT_SNAPSHOT, EventEventSnapshot); -#line 135 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = event_row_new (); -#line 135 "/home/jens/Source/shotwell/src/Event.vala" - _event_row_unref0 (self->priv->row); -#line 135 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->row = _tmp0_; -#line 136 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (self->priv->primary_source); -#line 136 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->primary_source = NULL; -#line 137 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = self->priv->attached_sources; -#line 137 "/home/jens/Source/shotwell/src/Event.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 139 "/home/jens/Source/shotwell/src/Event.vala" - SOURCE_SNAPSHOT_CLASS (event_event_snapshot_parent_class)->notify_broken (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_SNAPSHOT, SourceSnapshot)); -#line 7260 "Event.c" -} - - -static void -event_event_snapshot_on_attached_source_destroyed (EventEventSnapshot* self, - DataSource* source) -{ - MediaSource* media_source = NULL; - MediaSource* _tmp0_; - gboolean _tmp1_ = FALSE; - MediaSource* _tmp2_; -#line 142 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (EVENT_IS_EVENT_SNAPSHOT (self)); -#line 142 "/home/jens/Source/shotwell/src/Event.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 143 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource)); -#line 143 "/home/jens/Source/shotwell/src/Event.vala" - media_source = _tmp0_; -#line 146 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = media_source; -#line 146 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp2_ != NULL) { -#line 7284 "Event.c" - MediaSource* _tmp3_; - MediaSource* _tmp4_; -#line 146 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = self->priv->primary_source; -#line 146 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = media_source; -#line 146 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_SOURCE, DataSource)); -#line 7293 "Event.c" - } else { -#line 146 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = FALSE; -#line 7297 "Event.c" - } -#line 146 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp1_) { -#line 147 "/home/jens/Source/shotwell/src/Event.vala" - source_snapshot_notify_broken (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_SNAPSHOT, SourceSnapshot)); -#line 7303 "Event.c" - } else { - GeeArrayList* _tmp5_; - MediaSource* _tmp6_; -#line 148 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = self->priv->attached_sources; -#line 148 "/home/jens/Source/shotwell/src/Event.vala" - _tmp6_ = media_source; -#line 148 "/home/jens/Source/shotwell/src/Event.vala" - if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp6_)) { -#line 149 "/home/jens/Source/shotwell/src/Event.vala" - source_snapshot_notify_broken (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_SNAPSHOT, SourceSnapshot)); -#line 7315 "Event.c" - } - } -#line 142 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (media_source); -#line 7320 "Event.c" -} - - -static void -event_event_snapshot_class_init (EventEventSnapshotClass * klass) -{ -#line 105 "/home/jens/Source/shotwell/src/Event.vala" - event_event_snapshot_parent_class = g_type_class_peek_parent (klass); -#line 105 "/home/jens/Source/shotwell/src/Event.vala" - ((SourceSnapshotClass *) klass)->finalize = event_event_snapshot_finalize; -#line 105 "/home/jens/Source/shotwell/src/Event.vala" - g_type_class_add_private (klass, sizeof (EventEventSnapshotPrivate)); -#line 105 "/home/jens/Source/shotwell/src/Event.vala" - ((SourceSnapshotClass *) klass)->notify_broken = (void (*) (SourceSnapshot *)) event_event_snapshot_real_notify_broken; -#line 7335 "Event.c" -} - - -static void -event_event_snapshot_instance_init (EventEventSnapshot * self) -{ - GeeArrayList* _tmp0_; -#line 105 "/home/jens/Source/shotwell/src/Event.vala" - self->priv = EVENT_EVENT_SNAPSHOT_GET_PRIVATE (self); -#line 108 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 108 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->attached_sources = _tmp0_; -#line 7349 "Event.c" -} - - -static void -event_event_snapshot_finalize (SourceSnapshot * obj) -{ - EventEventSnapshot * self; - LibraryPhotoSourceCollection* _tmp0_; - guint _tmp1_; - VideoSourceCollection* _tmp2_; - guint _tmp3_; -#line 105 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EVENT_TYPE_EVENT_SNAPSHOT, EventEventSnapshot); -#line 126 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = library_photo_global; -#line 126 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE); -#line 126 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _event_event_snapshot_on_attached_source_destroyed_source_collection_item_destroyed, self); -#line 127 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = video_global; -#line 127 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE); -#line 127 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _event_event_snapshot_on_attached_source_destroyed_source_collection_item_destroyed, self); -#line 106 "/home/jens/Source/shotwell/src/Event.vala" - _event_row_unref0 (self->priv->row); -#line 107 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (self->priv->primary_source); -#line 108 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (self->priv->attached_sources); -#line 105 "/home/jens/Source/shotwell/src/Event.vala" - SOURCE_SNAPSHOT_CLASS (event_event_snapshot_parent_class)->finalize (obj); -#line 7383 "Event.c" -} - - -static GType -event_event_snapshot_get_type (void) -{ - static volatile gsize event_event_snapshot_type_id__volatile = 0; - if (g_once_init_enter (&event_event_snapshot_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventEventSnapshotClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_event_snapshot_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventEventSnapshot), 0, (GInstanceInitFunc) event_event_snapshot_instance_init, NULL }; - GType event_event_snapshot_type_id; - event_event_snapshot_type_id = g_type_register_static (TYPE_SOURCE_SNAPSHOT, "EventEventSnapshot", &g_define_type_info, 0); - g_once_init_leave (&event_event_snapshot_type_id__volatile, event_event_snapshot_type_id); - } - return event_event_snapshot_type_id__volatile; -} - - -static EventEventProxy* -event_event_proxy_construct (GType object_type, - Event* event) -{ - EventEventProxy* self = NULL; -#line 154 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_EVENT (event), NULL); -#line 155 "/home/jens/Source/shotwell/src/Event.vala" - self = (EventEventProxy*) source_proxy_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_DATA_SOURCE, DataSource)); -#line 154 "/home/jens/Source/shotwell/src/Event.vala" - return self; -#line 7412 "Event.c" -} - - -static EventEventProxy* -event_event_proxy_new (Event* event) -{ -#line 154 "/home/jens/Source/shotwell/src/Event.vala" - return event_event_proxy_construct (EVENT_TYPE_EVENT_PROXY, event); -#line 7421 "Event.c" -} - - -static gpointer -_source_snapshot_ref0 (gpointer self) -{ -#line 159 "/home/jens/Source/shotwell/src/Event.vala" - return self ? source_snapshot_ref (self) : NULL; -#line 7430 "Event.c" -} - - -static DataSource* -event_event_proxy_real_reconstitute (SourceProxy* base, - gint64 object_id, - SourceSnapshot* snapshot) -{ - EventEventProxy * self; - DataSource* result = NULL; - EventEventSnapshot* event_snapshot = NULL; - EventEventSnapshot* _tmp0_; - EventRow* _tmp1_; - EventRow* _tmp2_; - Event* _tmp3_; - DataSource* _tmp4_; -#line 158 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENT_TYPE_EVENT_PROXY, EventEventProxy); -#line 158 "/home/jens/Source/shotwell/src/Event.vala" - g_return_val_if_fail (IS_SOURCE_SNAPSHOT (snapshot), NULL); -#line 159 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = _source_snapshot_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (snapshot, EVENT_TYPE_EVENT_SNAPSHOT) ? ((EventEventSnapshot*) snapshot) : NULL); -#line 159 "/home/jens/Source/shotwell/src/Event.vala" - event_snapshot = _tmp0_; -#line 160 "/home/jens/Source/shotwell/src/Event.vala" - _vala_assert (event_snapshot != NULL, "event_snapshot != null"); -#line 162 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = event_event_snapshot_get_row (event_snapshot); -#line 162 "/home/jens/Source/shotwell/src/Event.vala" - _tmp2_ = _tmp1_; -#line 162 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = event_reconstitute (object_id, _tmp2_); -#line 162 "/home/jens/Source/shotwell/src/Event.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_SOURCE, DataSource); -#line 162 "/home/jens/Source/shotwell/src/Event.vala" - _event_row_unref0 (_tmp2_); -#line 162 "/home/jens/Source/shotwell/src/Event.vala" - result = _tmp4_; -#line 162 "/home/jens/Source/shotwell/src/Event.vala" - _source_snapshot_unref0 (event_snapshot); -#line 162 "/home/jens/Source/shotwell/src/Event.vala" - return result; -#line 7473 "Event.c" -} - - -static void -event_event_proxy_class_init (EventEventProxyClass * klass) -{ -#line 153 "/home/jens/Source/shotwell/src/Event.vala" - event_event_proxy_parent_class = g_type_class_peek_parent (klass); -#line 153 "/home/jens/Source/shotwell/src/Event.vala" - ((SourceProxyClass *) klass)->reconstitute = (DataSource* (*) (SourceProxy *, gint64, SourceSnapshot*)) event_event_proxy_real_reconstitute; -#line 7484 "Event.c" -} - - -static void -event_event_proxy_instance_init (EventEventProxy * self) -{ -} - - -static GType -event_event_proxy_get_type (void) -{ - static volatile gsize event_event_proxy_type_id__volatile = 0; - if (g_once_init_enter (&event_event_proxy_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventEventProxyClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_event_proxy_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventEventProxy), 0, (GInstanceInitFunc) event_event_proxy_instance_init, NULL }; - GType event_event_proxy_type_id; - event_event_proxy_type_id = g_type_register_static (TYPE_SOURCE_PROXY, "EventEventProxy", &g_define_type_info, 0); - g_once_init_leave (&event_event_proxy_type_id__volatile, event_event_proxy_type_id); - } - return event_event_proxy_type_id__volatile; -} - - -static void -event_class_init (EventClass * klass) -{ -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - event_parent_class = g_type_class_peek_parent (klass); -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - g_type_class_add_private (klass, sizeof (EventPrivate)); -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) event_real_get_typename; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) event_real_get_instance_id; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((ThumbnailSourceClass *) klass)->get_representative_id = (gchar* (*) (ThumbnailSource *)) event_real_get_representative_id; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = (PhotoFileFormat (*) (ThumbnailSource *)) event_real_get_preferred_thumbnail_format; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((ThumbnailSourceClass *) klass)->create_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) event_real_create_thumbnail; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((DataSourceClass *) klass)->notify_relinking = (void (*) (DataSource *, SourceCollection*)) event_real_notify_relinking; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((DataSourceClass *) klass)->save_snapshot = (SourceSnapshot* (*) (DataSource *)) event_real_save_snapshot; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((DataSourceClass *) klass)->equals = (gboolean (*) (DataSource *, DataSource*)) event_real_equals; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) event_real_to_string; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) event_real_get_name; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((EventSourceClass *) klass)->get_comment = (gchar* (*) (EventSource *)) event_real_get_comment; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((EventSourceClass *) klass)->set_comment = (gboolean (*) (EventSource *, const gchar*)) event_real_set_comment; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((EventSourceClass *) klass)->get_start_time = (time_t (*) (EventSource *)) event_real_get_start_time; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((EventSourceClass *) klass)->get_end_time = (time_t (*) (EventSource *)) event_real_get_end_time; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((EventSourceClass *) klass)->get_total_filesize = (guint64 (*) (EventSource *)) event_real_get_total_filesize; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((EventSourceClass *) klass)->get_media_count = (gint (*) (EventSource *)) event_real_get_media_count; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((EventSourceClass *) klass)->get_media = (GeeCollection* (*) (EventSource *)) event_real_get_media; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((ThumbnailSourceClass *) klass)->get_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) event_real_get_thumbnail; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - ((DataSourceClass *) klass)->destroy = (void (*) (DataSource *)) event_real_destroy; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - G_OBJECT_CLASS (klass)->finalize = event_finalize; -#line 7555 "Event.c" -} - - -static void -event_container_source_interface_init (ContainerSourceIface * iface) -{ -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - event_container_source_parent_iface = g_type_interface_peek_parent (iface); -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - iface->has_links = (gboolean (*) (ContainerSource *)) event_real_has_links; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - iface->get_backlink = (SourceBacklink* (*) (ContainerSource *)) event_real_get_backlink; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - iface->break_link = (void (*) (ContainerSource *, DataSource*)) event_real_break_link; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - iface->break_link_many = (void (*) (ContainerSource *, GeeCollection*)) event_real_break_link_many; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - iface->establish_link = (void (*) (ContainerSource *, DataSource*)) event_real_establish_link; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - iface->establish_link_many = (void (*) (ContainerSource *, GeeCollection*)) event_real_establish_link_many; -#line 7576 "Event.c" -} - - -static void -event_proxyable_interface_init (ProxyableIface * iface) -{ -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - event_proxyable_parent_iface = g_type_interface_peek_parent (iface); -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - iface->get_proxy = (SourceProxy* (*) (Proxyable *)) event_real_get_proxy; -#line 7587 "Event.c" -} - - -static void -event_indexable_interface_init (IndexableIface * iface) -{ -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - event_indexable_parent_iface = g_type_interface_peek_parent (iface); -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - iface->get_indexable_keywords = (const gchar* (*) (Indexable *)) event_real_get_indexable_keywords; -#line 7598 "Event.c" -} - - -static void -event_instance_init (Event * self) -{ -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - self->priv = EVENT_GET_PRIVATE (self); -#line 175 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->unlinking = FALSE; -#line 176 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->relinking = FALSE; -#line 177 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->indexable_keywords = NULL; -#line 178 "/home/jens/Source/shotwell/src/Event.vala" - self->priv->comment = NULL; -#line 7615 "Event.c" -} - - -static void -event_finalize (GObject * obj) -{ - Event * self; - MediaSource* _tmp0_; - ViewCollection* _tmp3_; - guint _tmp4_; - ViewCollection* _tmp5_; - guint _tmp6_; - ViewCollection* _tmp7_; - guint _tmp8_; - LibraryPhotoSourceCollection* _tmp9_; - guint _tmp10_; - VideoSourceCollection* _tmp11_; - guint _tmp12_; -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENT, Event); -#line 237 "/home/jens/Source/shotwell/src/Event.vala" - _tmp0_ = self->priv->primary_source; -#line 237 "/home/jens/Source/shotwell/src/Event.vala" - if (_tmp0_ != NULL) { -#line 7640 "Event.c" - MediaSource* _tmp1_; - guint _tmp2_; -#line 238 "/home/jens/Source/shotwell/src/Event.vala" - _tmp1_ = self->priv->primary_source; -#line 238 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_parse_name ("thumbnail-altered", TYPE_THUMBNAIL_SOURCE, &_tmp2_, NULL, FALSE); -#line 238 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _event_on_primary_thumbnail_altered_thumbnail_source_thumbnail_altered, self); -#line 7649 "Event.c" - } -#line 240 "/home/jens/Source/shotwell/src/Event.vala" - _tmp3_ = self->priv->view; -#line 240 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp4_, NULL, FALSE); -#line 240 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _event_on_media_altered_data_collection_items_altered, self); -#line 241 "/home/jens/Source/shotwell/src/Event.vala" - _tmp5_ = self->priv->view; -#line 241 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_parse_name ("items-removed", TYPE_DATA_COLLECTION, &_tmp6_, NULL, FALSE); -#line 241 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _event_on_media_removed_data_collection_items_removed, self); -#line 242 "/home/jens/Source/shotwell/src/Event.vala" - _tmp7_ = self->priv->view; -#line 242 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_parse_name ("items-added", TYPE_DATA_COLLECTION, &_tmp8_, NULL, FALSE); -#line 242 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _event_on_media_added_data_collection_items_added, self); -#line 244 "/home/jens/Source/shotwell/src/Event.vala" - _tmp9_ = library_photo_global; -#line 244 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp10_, NULL, FALSE); -#line 244 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _event_on_media_destroyed_source_collection_item_destroyed, self); -#line 245 "/home/jens/Source/shotwell/src/Event.vala" - _tmp11_ = video_global; -#line 245 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp12_, NULL, FALSE); -#line 245 "/home/jens/Source/shotwell/src/Event.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _event_on_media_destroyed_source_collection_item_destroyed, self); -#line 172 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (self->priv->raw_name); -#line 173 "/home/jens/Source/shotwell/src/Event.vala" - _g_object_unref0 (self->priv->primary_source); -#line 174 "/home/jens/Source/shotwell/src/Event.vala" - _data_collection_unref0 (self->priv->view); -#line 177 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (self->priv->indexable_keywords); -#line 178 "/home/jens/Source/shotwell/src/Event.vala" - _g_free0 (self->priv->comment); -#line 94 "/home/jens/Source/shotwell/src/Event.vala" - G_OBJECT_CLASS (event_parent_class)->finalize (obj); -#line 7693 "Event.c" -} - - -GType -event_get_type (void) -{ - static volatile gsize event_type_id__volatile = 0; - if (g_once_init_enter (&event_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Event), 0, (GInstanceInitFunc) event_instance_init, NULL }; - static const GInterfaceInfo container_source_info = { (GInterfaceInitFunc) event_container_source_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo proxyable_info = { (GInterfaceInitFunc) event_proxyable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo indexable_info = { (GInterfaceInitFunc) event_indexable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType event_type_id; - event_type_id = g_type_register_static (TYPE_EVENT_SOURCE, "Event", &g_define_type_info, 0); - g_type_add_interface_static (event_type_id, TYPE_CONTAINER_SOURCE, &container_source_info); - g_type_add_interface_static (event_type_id, TYPE_PROXYABLE, &proxyable_info); - g_type_add_interface_static (event_type_id, TYPE_INDEXABLE, &indexable_info); - g_once_init_leave (&event_type_id__volatile, event_type_id); - } - return event_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/Exporter.c b/src/Exporter.c deleted file mode 100644 index bdc1f1f..0000000 --- a/src/Exporter.c +++ /dev/null @@ -1,3064 +0,0 @@ -/* Exporter.c generated by valac 0.40.4, the Vala compiler - * generated from Exporter.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ()) - -#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ()) - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) -typedef struct _ExportFormatParameters ExportFormatParameters; - -#define TYPE_EXPORTER (exporter_get_type ()) -#define EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER, Exporter)) -#define EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER, ExporterClass)) -#define IS_EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER)) -#define IS_EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER)) -#define EXPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER, ExporterClass)) - -typedef struct _Exporter Exporter; -typedef struct _ExporterClass ExporterClass; -typedef struct _ExporterPrivate ExporterPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -typedef struct _Scaling Scaling; - -#define TYPE_WORKERS (workers_get_type ()) -#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers)) -#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass)) -#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS)) -#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS)) -#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass)) - -typedef struct _Workers Workers; -typedef struct _WorkersClass WorkersClass; - -#define EXPORTER_TYPE_OVERWRITE (exporter_overwrite_get_type ()) -enum { - EXPORTER_0_PROPERTY, - EXPORTER_NUM_PROPERTIES -}; -static GParamSpec* exporter_properties[EXPORTER_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _workers_unref0(var) ((var == NULL) ? NULL : (var = (workers_unref (var), NULL))) - -#define TYPE_BACKGROUND_JOB (background_job_get_type ()) -#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob)) -#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass)) -#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB)) -#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB)) -#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass)) - -typedef struct _BackgroundJob BackgroundJob; -typedef struct _BackgroundJobClass BackgroundJobClass; - -#define EXPORTER_TYPE_EXPORT_JOB (exporter_export_job_get_type ()) -#define EXPORTER_EXPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EXPORTER_TYPE_EXPORT_JOB, ExporterExportJob)) -#define EXPORTER_EXPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EXPORTER_TYPE_EXPORT_JOB, ExporterExportJobClass)) -#define EXPORTER_IS_EXPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EXPORTER_TYPE_EXPORT_JOB)) -#define EXPORTER_IS_EXPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EXPORTER_TYPE_EXPORT_JOB)) -#define EXPORTER_EXPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EXPORTER_TYPE_EXPORT_JOB, ExporterExportJobClass)) - -typedef struct _ExporterExportJob ExporterExportJob; -typedef struct _ExporterExportJobClass ExporterExportJobClass; -typedef struct _BackgroundJobPrivate BackgroundJobPrivate; - -#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ()) -typedef struct _ExporterExportJobPrivate ExporterExportJobPrivate; -#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL))) - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _scaling_free0(var) ((var == NULL) ? NULL : (var = (scaling_free (var), NULL))) - -#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ()) -#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)) -#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) -#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE)) -#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE)) -#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) - -typedef struct _AbstractSemaphore AbstractSemaphore; -typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass; - -#define TYPE_EXPORTER_UI (exporter_ui_get_type ()) -#define EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER_UI, ExporterUI)) -#define EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER_UI, ExporterUIClass)) -#define IS_EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER_UI)) -#define IS_EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER_UI)) -#define EXPORTER_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER_UI, ExporterUIClass)) - -typedef struct _ExporterUI ExporterUI; -typedef struct _ExporterUIClass ExporterUIClass; -typedef struct _ExporterUIPrivate ExporterUIPrivate; - -#define TYPE_PROGRESS_DIALOG (progress_dialog_get_type ()) -#define PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROGRESS_DIALOG, ProgressDialog)) -#define PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PROGRESS_DIALOG, ProgressDialogClass)) -#define IS_PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROGRESS_DIALOG)) -#define IS_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROGRESS_DIALOG)) -#define PROGRESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROGRESS_DIALOG, ProgressDialogClass)) - -typedef struct _ProgressDialog ProgressDialog; -typedef struct _ProgressDialogClass ProgressDialogClass; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; -typedef struct _ParamSpecExporterUI ParamSpecExporterUI; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef enum { - EXPORT_FORMAT_MODE_UNMODIFIED, - EXPORT_FORMAT_MODE_CURRENT, - EXPORT_FORMAT_MODE_SPECIFIED, - EXPORT_FORMAT_MODE_LAST -} ExportFormatMode; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -struct _ExportFormatParameters { - ExportFormatMode mode; - PhotoFileFormat specified_format; - JpegQuality quality; - gboolean export_metadata; -}; - -struct _Exporter { - GObject parent_instance; - ExporterPrivate * priv; -}; - -struct _ExporterClass { - GObjectClass parent_class; -}; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -typedef void (*ExporterCompletionCallback) (Exporter* exporter, gboolean is_cancelled, void* user_data); -typedef gboolean (*ExporterExportFailedCallback) (Exporter* exporter, GFile* file, gint remaining, GError* err, void* user_data); -typedef enum { - EXPORTER_OVERWRITE_YES, - EXPORTER_OVERWRITE_NO, - EXPORTER_OVERWRITE_CANCEL, - EXPORTER_OVERWRITE_REPLACE_ALL -} ExporterOverwrite; - -typedef ExporterOverwrite (*ExporterOverwriteCallback) (Exporter* exporter, GFile* file, void* user_data); -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _ExporterPrivate { - GeeCollection* to_export; - GFile** exported_files; - gint exported_files_length1; - gint _exported_files_size_; - GFile* dir; - Scaling scaling; - gint completed_count; - Workers* workers; - ExporterCompletionCallback completion_callback; - gpointer completion_callback_target; - ExporterExportFailedCallback error_callback; - gpointer error_callback_target; - ExporterOverwriteCallback overwrite_callback; - gpointer overwrite_callback_target; - ProgressMonitor monitor; - gpointer monitor_target; - GCancellable* cancellable; - gboolean replace_all; - gboolean aborted; - ExportFormatParameters export_params; -}; - -typedef enum { - BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100, - BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75, - BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50, - BACKGROUND_JOB_JOB_PRIORITY_LOW = 25, - BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0 -} BackgroundJobJobPriority; - -struct _BackgroundJob { - GTypeInstance parent_instance; - volatile int ref_count; - BackgroundJobPrivate * priv; -}; - -struct _BackgroundJobClass { - GTypeClass parent_class; - void (*finalize) (BackgroundJob *self); - void (*execute) (BackgroundJob* self); - BackgroundJobJobPriority (*get_priority) (BackgroundJob* self); -}; - -struct _ExporterExportJob { - BackgroundJob parent_instance; - ExporterExportJobPrivate * priv; - MediaSource* media; - GFile* dest; - Scaling* scaling; - JpegQuality* quality; - PhotoFileFormat* format; - GError* err; - gboolean direct_copy_unmodified; - gboolean export_metadata; -}; - -struct _ExporterExportJobClass { - BackgroundJobClass parent_class; -}; - -typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data); -typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data); -struct _ExporterUI { - GTypeInstance parent_instance; - volatile int ref_count; - ExporterUIPrivate * priv; -}; - -struct _ExporterUIClass { - GTypeClass parent_class; - void (*finalize) (ExporterUI *self); -}; - -struct _ExporterUIPrivate { - Exporter* exporter; - GCancellable* cancellable; - ProgressDialog* progress_dialog; - ExporterCompletionCallback completion_callback; - gpointer completion_callback_target; -}; - -struct _ParamSpecExporterUI { - GParamSpec parent_instance; -}; - - -static gpointer exporter_parent_class = NULL; -static gpointer exporter_export_job_parent_class = NULL; -static gpointer exporter_ui_parent_class = NULL; - -GType export_format_mode_get_type (void) G_GNUC_CONST; -GType export_format_parameters_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType jpeg_quality_get_type (void) G_GNUC_CONST; -ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self); -void export_format_parameters_free (ExportFormatParameters* self); -static void export_format_parameters_init (ExportFormatParameters *self, - ExportFormatMode mode, - PhotoFileFormat specified_format, - JpegQuality quality); -void export_format_parameters_current (ExportFormatParameters* result); -PhotoFileFormat photo_file_format_get_system_default_format (void); -void export_format_parameters_unmodified (ExportFormatParameters* result); -void export_format_parameters_for_format (PhotoFileFormat format, - ExportFormatParameters* result); -void export_format_parameters_last (ExportFormatParameters* result); -void export_format_parameters_for_JPEG (JpegQuality quality, - ExportFormatParameters* result); -GType exporter_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -gpointer workers_ref (gpointer instance); -void workers_unref (gpointer instance); -GParamSpec* param_spec_workers (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_workers (GValue* value, - gpointer v_object); -void value_take_workers (GValue* value, - gpointer v_object); -gpointer value_get_workers (const GValue* value); -GType workers_get_type (void) G_GNUC_CONST; -GType exporter_overwrite_get_type (void) G_GNUC_CONST; -#define EXPORTER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EXPORTER, ExporterPrivate)) -guint workers_threads_per_cpu (gint per, - gint max); -Workers* workers_new (guint max_threads, - gboolean exclusive); -Workers* workers_construct (GType object_type, - guint max_threads, - gboolean exclusive); -Exporter* exporter_new (GeeCollection* to_export, - GFile* dir, - Scaling* scaling, - ExportFormatParameters* export_params, - gboolean auto_replace_all); -Exporter* exporter_construct (GType object_type, - GeeCollection* to_export, - GFile* dir, - Scaling* scaling, - ExportFormatParameters* export_params, - gboolean auto_replace_all); -Exporter* exporter_new_for_temp_file (GeeCollection* to_export, - Scaling* scaling, - ExportFormatParameters* export_params); -Exporter* exporter_construct_for_temp_file (GType object_type, - GeeCollection* to_export, - Scaling* scaling, - ExportFormatParameters* export_params); -void exporter_export (Exporter* self, - ExporterCompletionCallback completion_callback, - void* completion_callback_target, - ExporterExportFailedCallback error_callback, - void* error_callback_target, - ExporterOverwriteCallback overwrite_callback, - void* overwrite_callback_target, - GCancellable* cancellable, - ProgressMonitor monitor, - void* monitor_target); -static gboolean exporter_process_queue (Exporter* self); -static void exporter_export_completed (Exporter* self, - gboolean is_cancelled); -gpointer background_job_ref (gpointer instance); -void background_job_unref (gpointer instance); -GParamSpec* param_spec_background_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_background_job (GValue* value, - gpointer v_object); -void value_take_background_job (GValue* value, - gpointer v_object); -gpointer value_get_background_job (const GValue* value); -GType background_job_get_type (void) G_GNUC_CONST; -static void exporter_on_exported (Exporter* self, - BackgroundJob* j); -static GType exporter_export_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -GType background_job_job_priority_get_type (void) G_GNUC_CONST; -static void _vala_array_add128 (GFile** * array, - int* length, - int* size, - GFile* value); -static void exporter_on_export_cancelled (Exporter* self, - BackgroundJob* j); -GFile** exporter_get_exported_files (Exporter* self, - int* result_length1); -static GFile** _vala_array_dup25 (GFile** self, - int length); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -PhotoFileFormat photo_get_export_format_for_parameters (Photo* self, - ExportFormatParameters* params); -gchar* photo_get_export_basename_for_parameters (Photo* self, - ExportFormatParameters* params); -GType video_source_get_type (void) G_GNUC_CONST; -GType video_get_type (void) G_GNUC_CONST; -gchar* media_source_get_basename (MediaSource* self); -static void _vala_array_add129 (GFile** * array, - int* length, - int* size, - GFile* value); -GFile* generate_unique_file (GFile* dir, - const gchar* basename, - gboolean* collision, - GError** error); -GFile* app_dirs_get_temp_dir (void); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -GFile* media_source_get_file (MediaSource* self); -void workers_enqueue (Workers* self, - BackgroundJob* job); -static ExporterExportJob* exporter_export_job_new (Exporter* owner, - MediaSource* media, - GFile* dest, - Scaling* scaling, - JpegQuality* quality, - PhotoFileFormat* format, - GCancellable* cancellable, - gboolean direct_copy_unmodified, - gboolean export_metadata); -static ExporterExportJob* exporter_export_job_construct (GType object_type, - Exporter* owner, - MediaSource* media, - GFile* dest, - Scaling* scaling, - JpegQuality* quality, - PhotoFileFormat* format, - GCancellable* cancellable, - gboolean direct_copy_unmodified, - gboolean export_metadata); -static void _exporter_on_exported_completion_callback (BackgroundJob* job, - gpointer self); -static void _exporter_on_export_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self); -gpointer abstract_semaphore_ref (gpointer instance); -void abstract_semaphore_unref (gpointer instance); -GParamSpec* param_spec_abstract_semaphore (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_abstract_semaphore (GValue* value, - gpointer v_object); -void value_take_abstract_semaphore (GValue* value, - gpointer v_object); -gpointer value_get_abstract_semaphore (const GValue* value); -GType abstract_semaphore_get_type (void) G_GNUC_CONST; -BackgroundJob* background_job_construct (GType object_type, - GObject* owner, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target, - AbstractSemaphore* completion_semaphore); -static JpegQuality* _jpeg_quality_dup (JpegQuality* self); -static PhotoFileFormat* _photo_file_format_dup (PhotoFileFormat* self); -static void exporter_export_job_real_execute (BackgroundJob* base); -void photo_export (Photo* self, - GFile* dest_file, - Scaling* scaling, - JpegQuality quality, - PhotoFileFormat export_format, - gboolean direct_copy_unmodified, - gboolean export_metadata, - GError** error); -void video_export (Video* self, - GFile* dest_file, - GError** error); -static void exporter_export_job_finalize (BackgroundJob * obj); -static void exporter_finalize (GObject * obj); -gpointer exporter_ui_ref (gpointer instance); -void exporter_ui_unref (gpointer instance); -GParamSpec* param_spec_exporter_ui (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_exporter_ui (GValue* value, - gpointer v_object); -void value_take_exporter_ui (GValue* value, - gpointer v_object); -gpointer value_get_exporter_ui (const GValue* value); -GType exporter_ui_get_type (void) G_GNUC_CONST; -GType progress_dialog_get_type (void) G_GNUC_CONST; -#define EXPORTER_UI_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EXPORTER_UI, ExporterUIPrivate)) -ExporterUI* exporter_ui_new (Exporter* exporter); -ExporterUI* exporter_ui_construct (GType object_type, - Exporter* exporter); -void exporter_ui_export (ExporterUI* self, - ExporterCompletionCallback completion_callback, - void* completion_callback_target); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -void page_window_set_busy_cursor (PageWindow* self); -ProgressDialog* progress_dialog_new (GtkWindow* owner, - const gchar* text, - GCancellable* cancellable); -ProgressDialog* progress_dialog_construct (GType object_type, - GtkWindow* owner, - const gchar* text, - GCancellable* cancellable); -static void exporter_ui_on_export_completed (ExporterUI* self, - Exporter* exporter, - gboolean is_cancelled); -static void _exporter_ui_on_export_completed_exporter_completion_callback (Exporter* exporter, - gboolean is_cancelled, - gpointer self); -static gboolean exporter_ui_on_export_failed (ExporterUI* self, - Exporter* exporter, - GFile* file, - gint remaining, - GError* err); -static gboolean _exporter_ui_on_export_failed_exporter_export_failed_callback (Exporter* exporter, - GFile* file, - gint remaining, - GError* err, - gpointer self); -static ExporterOverwrite exporter_ui_on_export_overwrite (ExporterUI* self, - Exporter* exporter, - GFile* file); -static ExporterOverwrite _exporter_ui_on_export_overwrite_exporter_overwrite_callback (Exporter* exporter, - GFile* file, - gpointer self); -gboolean progress_dialog_monitor (ProgressDialog* self, - guint64 count, - guint64 total, - gboolean do_event_loop); -static gboolean _progress_dialog_monitor_progress_monitor (guint64 current, - guint64 total, - gboolean do_event_loop, - gpointer self); -void progress_dialog_close (ProgressDialog* self); -void page_window_set_normal_cursor (PageWindow* self); -GtkResponseType app_window_negate_affirm_all_cancel_question (const gchar* message, - const gchar* negative, - const gchar* affirmative, - const gchar* affirmative_all, - const gchar* title, - GtkWindow* parent); -GtkResponseType export_error_dialog (GFile* dest, - gboolean photos_remaining); -static void exporter_ui_finalize (ExporterUI * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -GType -export_format_mode_get_type (void) -{ - static volatile gsize export_format_mode_type_id__volatile = 0; - if (g_once_init_enter (&export_format_mode_type_id__volatile)) { - static const GEnumValue values[] = {{EXPORT_FORMAT_MODE_UNMODIFIED, "EXPORT_FORMAT_MODE_UNMODIFIED", "unmodified"}, {EXPORT_FORMAT_MODE_CURRENT, "EXPORT_FORMAT_MODE_CURRENT", "current"}, {EXPORT_FORMAT_MODE_SPECIFIED, "EXPORT_FORMAT_MODE_SPECIFIED", "specified"}, {EXPORT_FORMAT_MODE_LAST, "EXPORT_FORMAT_MODE_LAST", "last"}, {0, NULL, NULL}}; - GType export_format_mode_type_id; - export_format_mode_type_id = g_enum_register_static ("ExportFormatMode", values); - g_once_init_leave (&export_format_mode_type_id__volatile, export_format_mode_type_id); - } - return export_format_mode_type_id__volatile; -} - - -static void -export_format_parameters_init (ExportFormatParameters *self, - ExportFormatMode mode, - PhotoFileFormat specified_format, - JpegQuality quality) -{ -#line 20 "/home/jens/Source/shotwell/src/Exporter.vala" - memset (self, 0, sizeof (ExportFormatParameters)); -#line 22 "/home/jens/Source/shotwell/src/Exporter.vala" - (*self).mode = mode; -#line 23 "/home/jens/Source/shotwell/src/Exporter.vala" - (*self).specified_format = specified_format; -#line 24 "/home/jens/Source/shotwell/src/Exporter.vala" - (*self).quality = quality; -#line 25 "/home/jens/Source/shotwell/src/Exporter.vala" - (*self).export_metadata = TRUE; -#line 699 "Exporter.c" -} - - -void -export_format_parameters_current (ExportFormatParameters* result) -{ - ExportFormatParameters _tmp0_ = {0}; -#line 29 "/home/jens/Source/shotwell/src/Exporter.vala" - export_format_parameters_init (&_tmp0_, EXPORT_FORMAT_MODE_CURRENT, photo_file_format_get_system_default_format (), JPEG_QUALITY_HIGH); -#line 29 "/home/jens/Source/shotwell/src/Exporter.vala" - *result = _tmp0_; -#line 29 "/home/jens/Source/shotwell/src/Exporter.vala" - return; -#line 713 "Exporter.c" -} - - -void -export_format_parameters_unmodified (ExportFormatParameters* result) -{ - ExportFormatParameters _tmp0_ = {0}; -#line 34 "/home/jens/Source/shotwell/src/Exporter.vala" - export_format_parameters_init (&_tmp0_, EXPORT_FORMAT_MODE_UNMODIFIED, photo_file_format_get_system_default_format (), JPEG_QUALITY_HIGH); -#line 34 "/home/jens/Source/shotwell/src/Exporter.vala" - *result = _tmp0_; -#line 34 "/home/jens/Source/shotwell/src/Exporter.vala" - return; -#line 727 "Exporter.c" -} - - -void -export_format_parameters_for_format (PhotoFileFormat format, - ExportFormatParameters* result) -{ - ExportFormatParameters _tmp0_ = {0}; -#line 39 "/home/jens/Source/shotwell/src/Exporter.vala" - export_format_parameters_init (&_tmp0_, EXPORT_FORMAT_MODE_SPECIFIED, format, JPEG_QUALITY_HIGH); -#line 39 "/home/jens/Source/shotwell/src/Exporter.vala" - *result = _tmp0_; -#line 39 "/home/jens/Source/shotwell/src/Exporter.vala" - return; -#line 742 "Exporter.c" -} - - -void -export_format_parameters_last (ExportFormatParameters* result) -{ - ExportFormatParameters _tmp0_ = {0}; -#line 43 "/home/jens/Source/shotwell/src/Exporter.vala" - export_format_parameters_init (&_tmp0_, EXPORT_FORMAT_MODE_LAST, photo_file_format_get_system_default_format (), JPEG_QUALITY_HIGH); -#line 43 "/home/jens/Source/shotwell/src/Exporter.vala" - *result = _tmp0_; -#line 43 "/home/jens/Source/shotwell/src/Exporter.vala" - return; -#line 756 "Exporter.c" -} - - -void -export_format_parameters_for_JPEG (JpegQuality quality, - ExportFormatParameters* result) -{ - ExportFormatParameters _tmp0_ = {0}; -#line 48 "/home/jens/Source/shotwell/src/Exporter.vala" - export_format_parameters_init (&_tmp0_, EXPORT_FORMAT_MODE_SPECIFIED, PHOTO_FILE_FORMAT_JFIF, quality); -#line 48 "/home/jens/Source/shotwell/src/Exporter.vala" - *result = _tmp0_; -#line 48 "/home/jens/Source/shotwell/src/Exporter.vala" - return; -#line 771 "Exporter.c" -} - - -ExportFormatParameters* -export_format_parameters_dup (const ExportFormatParameters* self) -{ - ExportFormatParameters* dup; -#line 14 "/home/jens/Source/shotwell/src/Exporter.vala" - dup = g_new0 (ExportFormatParameters, 1); -#line 14 "/home/jens/Source/shotwell/src/Exporter.vala" - memcpy (dup, self, sizeof (ExportFormatParameters)); -#line 14 "/home/jens/Source/shotwell/src/Exporter.vala" - return dup; -#line 785 "Exporter.c" -} - - -void -export_format_parameters_free (ExportFormatParameters* self) -{ -#line 14 "/home/jens/Source/shotwell/src/Exporter.vala" - g_free (self); -#line 794 "Exporter.c" -} - - -GType -export_format_parameters_get_type (void) -{ - static volatile gsize export_format_parameters_type_id__volatile = 0; - if (g_once_init_enter (&export_format_parameters_type_id__volatile)) { - GType export_format_parameters_type_id; - export_format_parameters_type_id = g_boxed_type_register_static ("ExportFormatParameters", (GBoxedCopyFunc) export_format_parameters_dup, (GBoxedFreeFunc) export_format_parameters_free); - g_once_init_leave (&export_format_parameters_type_id__volatile, export_format_parameters_type_id); - } - return export_format_parameters_type_id__volatile; -} - - -GType -exporter_overwrite_get_type (void) -{ - static volatile gsize exporter_overwrite_type_id__volatile = 0; - if (g_once_init_enter (&exporter_overwrite_type_id__volatile)) { - static const GEnumValue values[] = {{EXPORTER_OVERWRITE_YES, "EXPORTER_OVERWRITE_YES", "yes"}, {EXPORTER_OVERWRITE_NO, "EXPORTER_OVERWRITE_NO", "no"}, {EXPORTER_OVERWRITE_CANCEL, "EXPORTER_OVERWRITE_CANCEL", "cancel"}, {EXPORTER_OVERWRITE_REPLACE_ALL, "EXPORTER_OVERWRITE_REPLACE_ALL", "replace-all"}, {0, NULL, NULL}}; - GType exporter_overwrite_type_id; - exporter_overwrite_type_id = g_enum_register_static ("ExporterOverwrite", values); - g_once_init_leave (&exporter_overwrite_type_id__volatile, exporter_overwrite_type_id); - } - return exporter_overwrite_type_id__volatile; -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 125 "/home/jens/Source/shotwell/src/Exporter.vala" - return self ? g_object_ref (self) : NULL; -#line 830 "Exporter.c" -} - - -Exporter* -exporter_construct (GType object_type, - GeeCollection* to_export, - GFile* dir, - Scaling* scaling, - ExportFormatParameters* export_params, - gboolean auto_replace_all) -{ - Exporter * self = NULL; - GeeCollection* _tmp0_; - GFile* _tmp1_; - Scaling _tmp2_; - ExportFormatParameters _tmp3_; -#line 122 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (to_export), NULL); -#line 122 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail ((dir == NULL) || G_IS_FILE (dir), NULL); -#line 122 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 122 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (export_params != NULL, NULL); -#line 122 "/home/jens/Source/shotwell/src/Exporter.vala" - self = (Exporter*) g_object_new (object_type, NULL); -#line 124 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = self->priv->to_export; -#line 124 "/home/jens/Source/shotwell/src/Exporter.vala" - gee_collection_add_all (_tmp0_, to_export); -#line 125 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp1_ = _g_object_ref0 (dir); -#line 125 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (self->priv->dir); -#line 125 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->dir = _tmp1_; -#line 126 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp2_ = *scaling; -#line 126 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->scaling = _tmp2_; -#line 127 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp3_ = *export_params; -#line 127 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->export_params = _tmp3_; -#line 128 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->replace_all = auto_replace_all; -#line 122 "/home/jens/Source/shotwell/src/Exporter.vala" - return self; -#line 879 "Exporter.c" -} - - -Exporter* -exporter_new (GeeCollection* to_export, - GFile* dir, - Scaling* scaling, - ExportFormatParameters* export_params, - gboolean auto_replace_all) -{ -#line 122 "/home/jens/Source/shotwell/src/Exporter.vala" - return exporter_construct (TYPE_EXPORTER, to_export, dir, scaling, export_params, auto_replace_all); -#line 892 "Exporter.c" -} - - -Exporter* -exporter_construct_for_temp_file (GType object_type, - GeeCollection* to_export, - Scaling* scaling, - ExportFormatParameters* export_params) -{ - Exporter * self = NULL; - GeeCollection* _tmp0_; - Scaling _tmp1_; - ExportFormatParameters _tmp2_; -#line 131 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (to_export), NULL); -#line 131 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 131 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (export_params != NULL, NULL); -#line 131 "/home/jens/Source/shotwell/src/Exporter.vala" - self = (Exporter*) g_object_new (object_type, NULL); -#line 133 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = self->priv->to_export; -#line 133 "/home/jens/Source/shotwell/src/Exporter.vala" - gee_collection_add_all (_tmp0_, to_export); -#line 134 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (self->priv->dir); -#line 134 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->dir = NULL; -#line 135 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp1_ = *scaling; -#line 135 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->scaling = _tmp1_; -#line 136 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp2_ = *export_params; -#line 136 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->export_params = _tmp2_; -#line 131 "/home/jens/Source/shotwell/src/Exporter.vala" - return self; -#line 932 "Exporter.c" -} - - -Exporter* -exporter_new_for_temp_file (GeeCollection* to_export, - Scaling* scaling, - ExportFormatParameters* export_params) -{ -#line 131 "/home/jens/Source/shotwell/src/Exporter.vala" - return exporter_construct_for_temp_file (TYPE_EXPORTER, to_export, scaling, export_params); -#line 943 "Exporter.c" -} - - -void -exporter_export (Exporter* self, - ExporterCompletionCallback completion_callback, - void* completion_callback_target, - ExporterExportFailedCallback error_callback, - void* error_callback_target, - ExporterOverwriteCallback overwrite_callback, - void* overwrite_callback_target, - GCancellable* cancellable, - ProgressMonitor monitor, - void* monitor_target) -{ - GCancellable* _tmp0_ = NULL; - GCancellable* _tmp1_; - GCancellable* _tmp3_; -#line 140 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_if_fail (IS_EXPORTER (self)); -#line 140 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable)); -#line 142 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->completion_callback = completion_callback; -#line 142 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->completion_callback_target = completion_callback_target; -#line 143 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->error_callback = error_callback; -#line 143 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->error_callback_target = error_callback_target; -#line 144 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->overwrite_callback = overwrite_callback; -#line 144 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->overwrite_callback_target = overwrite_callback_target; -#line 145 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->monitor = monitor; -#line 145 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->monitor_target = monitor_target; -#line 146 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp1_ = _g_object_ref0 (cancellable); -#line 146 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = _tmp1_; -#line 146 "/home/jens/Source/shotwell/src/Exporter.vala" - if (_tmp0_ == NULL) { -#line 988 "Exporter.c" - GCancellable* _tmp2_; -#line 146 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp2_ = g_cancellable_new (); -#line 146 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (_tmp0_); -#line 146 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = _tmp2_; -#line 996 "Exporter.c" - } -#line 146 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp3_ = _tmp0_; -#line 146 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = NULL; -#line 146 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (self->priv->cancellable); -#line 146 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->cancellable = _tmp3_; -#line 148 "/home/jens/Source/shotwell/src/Exporter.vala" - if (!exporter_process_queue (self)) { -#line 149 "/home/jens/Source/shotwell/src/Exporter.vala" - exporter_export_completed (self, TRUE); -#line 1010 "Exporter.c" - } -#line 140 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (_tmp0_); -#line 1014 "Exporter.c" -} - - -static gpointer -_background_job_ref0 (gpointer self) -{ -#line 153 "/home/jens/Source/shotwell/src/Exporter.vala" - return self ? background_job_ref (self) : NULL; -#line 1023 "Exporter.c" -} - - -static void -_vala_array_add128 (GFile** * array, - int* length, - int* size, - GFile* value) -{ -#line 177 "/home/jens/Source/shotwell/src/Exporter.vala" - if ((*length) == (*size)) { -#line 177 "/home/jens/Source/shotwell/src/Exporter.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 177 "/home/jens/Source/shotwell/src/Exporter.vala" - *array = g_renew (GFile*, *array, (*size) + 1); -#line 1039 "Exporter.c" - } -#line 177 "/home/jens/Source/shotwell/src/Exporter.vala" - (*array)[(*length)++] = value; -#line 177 "/home/jens/Source/shotwell/src/Exporter.vala" - (*array)[*length] = NULL; -#line 1045 "Exporter.c" -} - - -static void -exporter_on_exported (Exporter* self, - BackgroundJob* j) -{ - ExporterExportJob* job = NULL; - ExporterExportJob* _tmp0_; - gint _tmp1_; - gboolean completed = FALSE; - gint _tmp2_; - GeeCollection* _tmp3_; - gint _tmp4_; - gint _tmp5_; - gboolean _tmp6_ = FALSE; - gboolean _tmp7_; - gboolean _tmp20_ = FALSE; - gboolean _tmp21_; - gboolean _tmp33_; -#line 152 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_if_fail (IS_EXPORTER (self)); -#line 152 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 153 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, EXPORTER_TYPE_EXPORT_JOB, ExporterExportJob)); -#line 153 "/home/jens/Source/shotwell/src/Exporter.vala" - job = _tmp0_; -#line 155 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp1_ = self->priv->completed_count; -#line 155 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->completed_count = _tmp1_ + 1; -#line 159 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp2_ = self->priv->completed_count; -#line 159 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp3_ = self->priv->to_export; -#line 159 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp4_ = gee_collection_get_size (_tmp3_); -#line 159 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp5_ = _tmp4_; -#line 159 "/home/jens/Source/shotwell/src/Exporter.vala" - completed = _tmp2_ == _tmp5_; -#line 161 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp7_ = self->priv->aborted; -#line 161 "/home/jens/Source/shotwell/src/Exporter.vala" - if (!_tmp7_) { -#line 1092 "Exporter.c" - ExporterExportJob* _tmp8_; - GError* _tmp9_; -#line 161 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp8_ = job; -#line 161 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp9_ = _tmp8_->err; -#line 161 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp6_ = _tmp9_ != NULL; -#line 1101 "Exporter.c" - } else { -#line 161 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp6_ = FALSE; -#line 1105 "Exporter.c" - } -#line 161 "/home/jens/Source/shotwell/src/Exporter.vala" - if (_tmp6_) { -#line 1109 "Exporter.c" - ExporterExportFailedCallback _tmp10_; - void* _tmp10__target; - ExporterExportJob* _tmp11_; - GFile* _tmp12_; - GeeCollection* _tmp13_; - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; - ExporterExportJob* _tmp17_; - GError* _tmp18_; -#line 162 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp10_ = self->priv->error_callback; -#line 162 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp10__target = self->priv->error_callback_target; -#line 162 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp11_ = job; -#line 162 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp12_ = _tmp11_->dest; -#line 162 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp13_ = self->priv->to_export; -#line 162 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp14_ = gee_collection_get_size (_tmp13_); -#line 162 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp15_ = _tmp14_; -#line 162 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp16_ = self->priv->completed_count; -#line 162 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp17_ = job; -#line 162 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp18_ = _tmp17_->err; -#line 162 "/home/jens/Source/shotwell/src/Exporter.vala" - if (!_tmp10_ (self, _tmp12_, _tmp15_ - _tmp16_, _tmp18_, _tmp10__target)) { -#line 1142 "Exporter.c" - gboolean _tmp19_; -#line 163 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->aborted = TRUE; -#line 165 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp19_ = completed; -#line 165 "/home/jens/Source/shotwell/src/Exporter.vala" - if (!_tmp19_) { -#line 166 "/home/jens/Source/shotwell/src/Exporter.vala" - _background_job_unref0 (job); -#line 166 "/home/jens/Source/shotwell/src/Exporter.vala" - return; -#line 1154 "Exporter.c" - } - } - } -#line 170 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp21_ = self->priv->aborted; -#line 170 "/home/jens/Source/shotwell/src/Exporter.vala" - if (!_tmp21_) { -#line 1162 "Exporter.c" - ProgressMonitor _tmp22_; - void* _tmp22__target; -#line 170 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp22_ = self->priv->monitor; -#line 170 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp22__target = self->priv->monitor_target; -#line 170 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp20_ = _tmp22_ != NULL; -#line 1171 "Exporter.c" - } else { -#line 170 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp20_ = FALSE; -#line 1175 "Exporter.c" - } -#line 170 "/home/jens/Source/shotwell/src/Exporter.vala" - if (_tmp20_) { -#line 1179 "Exporter.c" - ProgressMonitor _tmp23_; - void* _tmp23__target; - gint _tmp24_; - GeeCollection* _tmp25_; - gint _tmp26_; - gint _tmp27_; -#line 171 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp23_ = self->priv->monitor; -#line 171 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp23__target = self->priv->monitor_target; -#line 171 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp24_ = self->priv->completed_count; -#line 171 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp25_ = self->priv->to_export; -#line 171 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp26_ = gee_collection_get_size (_tmp25_); -#line 171 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp27_ = _tmp26_; -#line 171 "/home/jens/Source/shotwell/src/Exporter.vala" - if (!_tmp23_ ((guint64) _tmp24_, (guint64) _tmp27_, FALSE, _tmp23__target)) { -#line 1200 "Exporter.c" - gboolean _tmp28_; -#line 172 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->aborted = TRUE; -#line 174 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp28_ = completed; -#line 174 "/home/jens/Source/shotwell/src/Exporter.vala" - if (!_tmp28_) { -#line 175 "/home/jens/Source/shotwell/src/Exporter.vala" - _background_job_unref0 (job); -#line 175 "/home/jens/Source/shotwell/src/Exporter.vala" - return; -#line 1212 "Exporter.c" - } - } else { - GFile** _tmp29_; - gint _tmp29__length1; - ExporterExportJob* _tmp30_; - GFile* _tmp31_; - GFile* _tmp32_; -#line 177 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp29_ = self->priv->exported_files; -#line 177 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp29__length1 = self->priv->exported_files_length1; -#line 177 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp30_ = job; -#line 177 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp31_ = _tmp30_->dest; -#line 177 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp32_ = _g_object_ref0 (_tmp31_); -#line 177 "/home/jens/Source/shotwell/src/Exporter.vala" - _vala_array_add128 (&self->priv->exported_files, &self->priv->exported_files_length1, &self->priv->_exported_files_size_, _tmp32_); -#line 1232 "Exporter.c" - } - } -#line 181 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp33_ = completed; -#line 181 "/home/jens/Source/shotwell/src/Exporter.vala" - if (_tmp33_) { -#line 182 "/home/jens/Source/shotwell/src/Exporter.vala" - exporter_export_completed (self, FALSE); -#line 1241 "Exporter.c" - } -#line 152 "/home/jens/Source/shotwell/src/Exporter.vala" - _background_job_unref0 (job); -#line 1245 "Exporter.c" -} - - -static void -exporter_on_export_cancelled (Exporter* self, - BackgroundJob* j) -{ - gint _tmp0_; - gint _tmp1_; - GeeCollection* _tmp2_; - gint _tmp3_; - gint _tmp4_; -#line 185 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_if_fail (IS_EXPORTER (self)); -#line 185 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 186 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = self->priv->completed_count; -#line 186 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->completed_count = _tmp0_ + 1; -#line 186 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp1_ = self->priv->completed_count; -#line 186 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp2_ = self->priv->to_export; -#line 186 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp3_ = gee_collection_get_size (_tmp2_); -#line 186 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp4_ = _tmp3_; -#line 186 "/home/jens/Source/shotwell/src/Exporter.vala" - if (_tmp1_ == _tmp4_) { -#line 187 "/home/jens/Source/shotwell/src/Exporter.vala" - exporter_export_completed (self, TRUE); -#line 1278 "Exporter.c" - } -} - - -static GFile** -_vala_array_dup25 (GFile** self, - int length) -{ - GFile** result; - int i; -#line 191 "/home/jens/Source/shotwell/src/Exporter.vala" - result = g_new0 (GFile*, length + 1); -#line 191 "/home/jens/Source/shotwell/src/Exporter.vala" - for (i = 0; i < length; i++) { -#line 1293 "Exporter.c" - GFile* _tmp0_; -#line 191 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 191 "/home/jens/Source/shotwell/src/Exporter.vala" - result[i] = _tmp0_; -#line 1299 "Exporter.c" - } -#line 191 "/home/jens/Source/shotwell/src/Exporter.vala" - return result; -#line 1303 "Exporter.c" -} - - -GFile** -exporter_get_exported_files (Exporter* self, - int* result_length1) -{ - GFile** result = NULL; - GFile** _tmp0_; - gint _tmp0__length1; - GFile** _tmp1_; - gint _tmp1__length1; - GFile** _tmp2_; - gint _tmp2__length1; -#line 190 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (IS_EXPORTER (self), NULL); -#line 191 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = self->priv->exported_files; -#line 191 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0__length1 = self->priv->exported_files_length1; -#line 191 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup25 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_); -#line 191 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp1__length1 = _tmp0__length1; -#line 191 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp2_ = _tmp1_; -#line 191 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp2__length1 = _tmp1__length1; -#line 191 "/home/jens/Source/shotwell/src/Exporter.vala" - if (result_length1) { -#line 191 "/home/jens/Source/shotwell/src/Exporter.vala" - *result_length1 = _tmp2__length1; -#line 1336 "Exporter.c" - } -#line 191 "/home/jens/Source/shotwell/src/Exporter.vala" - result = _tmp2_; -#line 191 "/home/jens/Source/shotwell/src/Exporter.vala" - return result; -#line 1342 "Exporter.c" -} - - -static void -_vala_array_add129 (GFile** * array, - int* length, - int* size, - GFile* value) -{ -#line 210 "/home/jens/Source/shotwell/src/Exporter.vala" - if ((*length) == (*size)) { -#line 210 "/home/jens/Source/shotwell/src/Exporter.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 210 "/home/jens/Source/shotwell/src/Exporter.vala" - *array = g_renew (GFile*, *array, (*size) + 1); -#line 1358 "Exporter.c" - } -#line 210 "/home/jens/Source/shotwell/src/Exporter.vala" - (*array)[(*length)++] = value; -#line 210 "/home/jens/Source/shotwell/src/Exporter.vala" - (*array)[*length] = NULL; -#line 1364 "Exporter.c" -} - - -static gboolean -exporter_process_queue (Exporter* self) -{ - gboolean result = FALSE; - gint submitted = 0; - gint _tmp82_; - GError * _inner_error_ = NULL; -#line 194 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (IS_EXPORTER (self), FALSE); -#line 195 "/home/jens/Source/shotwell/src/Exporter.vala" - submitted = 0; -#line 1379 "Exporter.c" - { - GeeIterator* _source_it = NULL; - GeeCollection* _tmp0_; - GeeIterator* _tmp1_; -#line 196 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = self->priv->to_export; -#line 196 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 196 "/home/jens/Source/shotwell/src/Exporter.vala" - _source_it = _tmp1_; -#line 196 "/home/jens/Source/shotwell/src/Exporter.vala" - while (TRUE) { -#line 1392 "Exporter.c" - GeeIterator* _tmp2_; - MediaSource* source = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - GFile* use_source_file = NULL; - PhotoFileFormat real_export_format = 0; - gchar* basename = NULL; - MediaSource* _tmp5_; - const gchar* _tmp16_; - GFile* _tmp17_; - GFile* export_dir = NULL; - GFile* _tmp29_; - GFile* _tmp30_; - GFile* dest = NULL; - GFile* _tmp31_; - Workers* _tmp67_; - MediaSource* _tmp68_; - GFile* _tmp69_; - Scaling _tmp70_; - ExportFormatParameters _tmp71_; - JpegQuality _tmp72_; - PhotoFileFormat _tmp73_; - GCancellable* _tmp74_; - ExportFormatParameters _tmp75_; - ExportFormatMode _tmp76_; - ExportFormatParameters _tmp77_; - gboolean _tmp78_; - ExporterExportJob* _tmp79_; - ExporterExportJob* _tmp80_; - gint _tmp81_; -#line 196 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp2_ = _source_it; -#line 196 "/home/jens/Source/shotwell/src/Exporter.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 196 "/home/jens/Source/shotwell/src/Exporter.vala" - break; -#line 1429 "Exporter.c" - } -#line 196 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp3_ = _source_it; -#line 196 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 196 "/home/jens/Source/shotwell/src/Exporter.vala" - source = (MediaSource*) _tmp4_; -#line 197 "/home/jens/Source/shotwell/src/Exporter.vala" - use_source_file = NULL; -#line 198 "/home/jens/Source/shotwell/src/Exporter.vala" - real_export_format = photo_file_format_get_system_default_format (); -#line 199 "/home/jens/Source/shotwell/src/Exporter.vala" - basename = NULL; -#line 200 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp5_ = source; -#line 200 "/home/jens/Source/shotwell/src/Exporter.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_PHOTO)) { -#line 1447 "Exporter.c" - Photo* photo = NULL; - MediaSource* _tmp6_; - Photo* _tmp7_; - Photo* _tmp8_; - ExportFormatParameters _tmp9_; - Photo* _tmp10_; - ExportFormatParameters _tmp11_; - gchar* _tmp12_; -#line 201 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp6_ = source; -#line 201 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PHOTO, Photo)); -#line 201 "/home/jens/Source/shotwell/src/Exporter.vala" - photo = _tmp7_; -#line 202 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp8_ = photo; -#line 202 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp9_ = self->priv->export_params; -#line 202 "/home/jens/Source/shotwell/src/Exporter.vala" - real_export_format = photo_get_export_format_for_parameters (_tmp8_, &_tmp9_); -#line 203 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp10_ = photo; -#line 203 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp11_ = self->priv->export_params; -#line 203 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp12_ = photo_get_export_basename_for_parameters (_tmp10_, &_tmp11_); -#line 203 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (basename); -#line 203 "/home/jens/Source/shotwell/src/Exporter.vala" - basename = _tmp12_; -#line 200 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (photo); -#line 1480 "Exporter.c" - } else { - MediaSource* _tmp13_; -#line 204 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp13_ = source; -#line 204 "/home/jens/Source/shotwell/src/Exporter.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, TYPE_VIDEO)) { -#line 1487 "Exporter.c" - MediaSource* _tmp14_; - gchar* _tmp15_; -#line 205 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp14_ = source; -#line 205 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp15_ = media_source_get_basename (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_VIDEO, Video), TYPE_MEDIA_SOURCE, MediaSource)); -#line 205 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (basename); -#line 205 "/home/jens/Source/shotwell/src/Exporter.vala" - basename = _tmp15_; -#line 1498 "Exporter.c" - } - } -#line 207 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp16_ = basename; -#line 207 "/home/jens/Source/shotwell/src/Exporter.vala" - _vala_assert (_tmp16_ != NULL, "basename != null"); -#line 209 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp17_ = use_source_file; -#line 209 "/home/jens/Source/shotwell/src/Exporter.vala" - if (_tmp17_ != NULL) { -#line 1509 "Exporter.c" - GFile** _tmp18_; - gint _tmp18__length1; - GFile* _tmp19_; - GFile* _tmp20_; - gint _tmp21_; - ProgressMonitor _tmp22_; - void* _tmp22__target; -#line 210 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp18_ = self->priv->exported_files; -#line 210 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp18__length1 = self->priv->exported_files_length1; -#line 210 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp19_ = use_source_file; -#line 210 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp20_ = _g_object_ref0 (_tmp19_); -#line 210 "/home/jens/Source/shotwell/src/Exporter.vala" - _vala_array_add129 (&self->priv->exported_files, &self->priv->exported_files_length1, &self->priv->_exported_files_size_, _tmp20_); -#line 212 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp21_ = self->priv->completed_count; -#line 212 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->completed_count = _tmp21_ + 1; -#line 213 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp22_ = self->priv->monitor; -#line 213 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp22__target = self->priv->monitor_target; -#line 213 "/home/jens/Source/shotwell/src/Exporter.vala" - if (_tmp22_ != NULL) { -#line 1537 "Exporter.c" - ProgressMonitor _tmp23_; - void* _tmp23__target; - gint _tmp24_; - GeeCollection* _tmp25_; - gint _tmp26_; - gint _tmp27_; -#line 214 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp23_ = self->priv->monitor; -#line 214 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp23__target = self->priv->monitor_target; -#line 214 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp24_ = self->priv->completed_count; -#line 214 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp25_ = self->priv->to_export; -#line 214 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp26_ = gee_collection_get_size (_tmp25_); -#line 214 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp27_ = _tmp26_; -#line 214 "/home/jens/Source/shotwell/src/Exporter.vala" - if (!_tmp23_ ((guint64) _tmp24_, (guint64) _tmp27_, TRUE, _tmp23__target)) { -#line 1558 "Exporter.c" - GCancellable* _tmp28_; -#line 215 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp28_ = self->priv->cancellable; -#line 215 "/home/jens/Source/shotwell/src/Exporter.vala" - g_cancellable_cancel (_tmp28_); -#line 217 "/home/jens/Source/shotwell/src/Exporter.vala" - result = FALSE; -#line 217 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (basename); -#line 217 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (use_source_file); -#line 217 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (source); -#line 217 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (_source_it); -#line 217 "/home/jens/Source/shotwell/src/Exporter.vala" - return result; -#line 1576 "Exporter.c" - } - } -#line 221 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (basename); -#line 221 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (use_source_file); -#line 221 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (source); -#line 221 "/home/jens/Source/shotwell/src/Exporter.vala" - continue; -#line 1587 "Exporter.c" - } -#line 224 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp29_ = self->priv->dir; -#line 224 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp30_ = _g_object_ref0 (_tmp29_); -#line 224 "/home/jens/Source/shotwell/src/Exporter.vala" - export_dir = _tmp30_; -#line 225 "/home/jens/Source/shotwell/src/Exporter.vala" - dest = NULL; -#line 227 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp31_ = export_dir; -#line 227 "/home/jens/Source/shotwell/src/Exporter.vala" - if (_tmp31_ == NULL) { -#line 1601 "Exporter.c" - { - gboolean collision = FALSE; - GFile* _tmp32_ = NULL; - GFile* _tmp33_; - GFile* _tmp34_; - const gchar* _tmp35_; - gboolean _tmp36_ = FALSE; - GFile* _tmp37_; - GFile* _tmp38_; - GFile* _tmp39_; -#line 230 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp33_ = app_dirs_get_temp_dir (); -#line 230 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp34_ = _tmp33_; -#line 230 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp35_ = basename; -#line 230 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp37_ = generate_unique_file (_tmp34_, _tmp35_, &_tmp36_, &_inner_error_); -#line 230 "/home/jens/Source/shotwell/src/Exporter.vala" - collision = _tmp36_; -#line 230 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp38_ = _tmp37_; -#line 230 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (_tmp34_); -#line 230 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp32_ = _tmp38_; -#line 230 "/home/jens/Source/shotwell/src/Exporter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1630 "Exporter.c" - goto __catch488_g_error; - } -#line 230 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp39_ = _tmp32_; -#line 230 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp32_ = NULL; -#line 230 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (dest); -#line 230 "/home/jens/Source/shotwell/src/Exporter.vala" - dest = _tmp39_; -#line 228 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (_tmp32_); -#line 1643 "Exporter.c" - } - goto __finally488; - __catch488_g_error: - { - GError* err = NULL; - MediaSource* _tmp40_; - GFile* _tmp41_; - GFile* _tmp42_; - gchar* _tmp43_; - gchar* _tmp44_; - GError* _tmp45_; - const gchar* _tmp46_; - gchar* _tmp47_; - gchar* _tmp48_; -#line 228 "/home/jens/Source/shotwell/src/Exporter.vala" - err = _inner_error_; -#line 228 "/home/jens/Source/shotwell/src/Exporter.vala" - _inner_error_ = NULL; -#line 232 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp40_ = source; -#line 232 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp41_ = media_source_get_file (_tmp40_); -#line 232 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp42_ = _tmp41_; -#line 232 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp43_ = g_file_get_basename (_tmp42_); -#line 232 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp44_ = _tmp43_; -#line 232 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp45_ = err; -#line 232 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp46_ = _tmp45_->message; -#line 232 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp47_ = g_strdup_printf (_ ("Unable to generate a temporary file for %s: %s"), _tmp44_, _tmp46_); -#line 232 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp48_ = _tmp47_; -#line 232 "/home/jens/Source/shotwell/src/Exporter.vala" - app_window_error_message (_tmp48_, NULL); -#line 232 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (_tmp48_); -#line 232 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (_tmp44_); -#line 232 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (_tmp42_); -#line 235 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_error_free0 (err); -#line 235 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (dest); -#line 235 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (export_dir); -#line 235 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (basename); -#line 235 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (use_source_file); -#line 235 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (source); -#line 235 "/home/jens/Source/shotwell/src/Exporter.vala" - break; -#line 1702 "Exporter.c" - } - __finally488: -#line 228 "/home/jens/Source/shotwell/src/Exporter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1707 "Exporter.c" - gboolean _tmp49_ = FALSE; -#line 228 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (dest); -#line 228 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (export_dir); -#line 228 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (basename); -#line 228 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (use_source_file); -#line 228 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (source); -#line 228 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (_source_it); -#line 228 "/home/jens/Source/shotwell/src/Exporter.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 228 "/home/jens/Source/shotwell/src/Exporter.vala" - g_clear_error (&_inner_error_); -#line 228 "/home/jens/Source/shotwell/src/Exporter.vala" - return _tmp49_; -#line 1727 "Exporter.c" - } - } else { - GFile* _tmp50_; - const gchar* _tmp51_; - GFile* _tmp52_; - gboolean _tmp53_ = FALSE; - gboolean _tmp54_; -#line 238 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp50_ = self->priv->dir; -#line 238 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp51_ = basename; -#line 238 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp52_ = g_file_get_child (_tmp50_, _tmp51_); -#line 238 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (dest); -#line 238 "/home/jens/Source/shotwell/src/Exporter.vala" - dest = _tmp52_; -#line 240 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp54_ = self->priv->replace_all; -#line 240 "/home/jens/Source/shotwell/src/Exporter.vala" - if (!_tmp54_) { -#line 1749 "Exporter.c" - GFile* _tmp55_; -#line 240 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp55_ = dest; -#line 240 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp53_ = g_file_query_exists (_tmp55_, NULL); -#line 1755 "Exporter.c" - } else { -#line 240 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp53_ = FALSE; -#line 1759 "Exporter.c" - } -#line 240 "/home/jens/Source/shotwell/src/Exporter.vala" - if (_tmp53_) { -#line 1763 "Exporter.c" - ExporterOverwriteCallback _tmp56_; - void* _tmp56__target; - GFile* _tmp57_; -#line 241 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp56_ = self->priv->overwrite_callback; -#line 241 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp56__target = self->priv->overwrite_callback_target; -#line 241 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp57_ = dest; -#line 241 "/home/jens/Source/shotwell/src/Exporter.vala" - switch (_tmp56_ (self, _tmp57_, _tmp56__target)) { -#line 241 "/home/jens/Source/shotwell/src/Exporter.vala" - case EXPORTER_OVERWRITE_YES: -#line 1777 "Exporter.c" - { -#line 244 "/home/jens/Source/shotwell/src/Exporter.vala" - break; -#line 1781 "Exporter.c" - } -#line 241 "/home/jens/Source/shotwell/src/Exporter.vala" - case EXPORTER_OVERWRITE_REPLACE_ALL: -#line 1785 "Exporter.c" - { -#line 247 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->replace_all = TRUE; -#line 248 "/home/jens/Source/shotwell/src/Exporter.vala" - break; -#line 1791 "Exporter.c" - } -#line 241 "/home/jens/Source/shotwell/src/Exporter.vala" - case EXPORTER_OVERWRITE_CANCEL: -#line 1795 "Exporter.c" - { - GCancellable* _tmp58_; -#line 251 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp58_ = self->priv->cancellable; -#line 251 "/home/jens/Source/shotwell/src/Exporter.vala" - g_cancellable_cancel (_tmp58_); -#line 253 "/home/jens/Source/shotwell/src/Exporter.vala" - result = FALSE; -#line 253 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (dest); -#line 253 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (export_dir); -#line 253 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (basename); -#line 253 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (use_source_file); -#line 253 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (source); -#line 253 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (_source_it); -#line 253 "/home/jens/Source/shotwell/src/Exporter.vala" - return result; -#line 1818 "Exporter.c" - } - default: -#line 241 "/home/jens/Source/shotwell/src/Exporter.vala" - case EXPORTER_OVERWRITE_NO: -#line 1823 "Exporter.c" - { - gint _tmp59_; - ProgressMonitor _tmp60_; - void* _tmp60__target; -#line 257 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp59_ = self->priv->completed_count; -#line 257 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->completed_count = _tmp59_ + 1; -#line 258 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp60_ = self->priv->monitor; -#line 258 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp60__target = self->priv->monitor_target; -#line 258 "/home/jens/Source/shotwell/src/Exporter.vala" - if (_tmp60_ != NULL) { -#line 1838 "Exporter.c" - ProgressMonitor _tmp61_; - void* _tmp61__target; - gint _tmp62_; - GeeCollection* _tmp63_; - gint _tmp64_; - gint _tmp65_; -#line 259 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp61_ = self->priv->monitor; -#line 259 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp61__target = self->priv->monitor_target; -#line 259 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp62_ = self->priv->completed_count; -#line 259 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp63_ = self->priv->to_export; -#line 259 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp64_ = gee_collection_get_size (_tmp63_); -#line 259 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp65_ = _tmp64_; -#line 259 "/home/jens/Source/shotwell/src/Exporter.vala" - if (!_tmp61_ ((guint64) _tmp62_, (guint64) _tmp65_, TRUE, _tmp61__target)) { -#line 1859 "Exporter.c" - GCancellable* _tmp66_; -#line 260 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp66_ = self->priv->cancellable; -#line 260 "/home/jens/Source/shotwell/src/Exporter.vala" - g_cancellable_cancel (_tmp66_); -#line 262 "/home/jens/Source/shotwell/src/Exporter.vala" - result = FALSE; -#line 262 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (dest); -#line 262 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (export_dir); -#line 262 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (basename); -#line 262 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (use_source_file); -#line 262 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (source); -#line 262 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (_source_it); -#line 262 "/home/jens/Source/shotwell/src/Exporter.vala" - return result; -#line 1881 "Exporter.c" - } - } -#line 266 "/home/jens/Source/shotwell/src/Exporter.vala" - continue; -#line 1886 "Exporter.c" - } - } - } - } -#line 271 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp67_ = self->priv->workers; -#line 271 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp68_ = source; -#line 271 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp69_ = dest; -#line 271 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp70_ = self->priv->scaling; -#line 271 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp71_ = self->priv->export_params; -#line 271 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp72_ = _tmp71_.quality; -#line 271 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp73_ = real_export_format; -#line 271 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp74_ = self->priv->cancellable; -#line 271 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp75_ = self->priv->export_params; -#line 271 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp76_ = _tmp75_.mode; -#line 271 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp77_ = self->priv->export_params; -#line 271 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp78_ = _tmp77_.export_metadata; -#line 271 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp79_ = exporter_export_job_new (self, _tmp68_, _tmp69_, &_tmp70_, &_tmp72_, &_tmp73_, _tmp74_, _tmp76_ == EXPORT_FORMAT_MODE_UNMODIFIED, _tmp78_); -#line 271 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp80_ = _tmp79_; -#line 271 "/home/jens/Source/shotwell/src/Exporter.vala" - workers_enqueue (_tmp67_, G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 271 "/home/jens/Source/shotwell/src/Exporter.vala" - _background_job_unref0 (_tmp80_); -#line 273 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp81_ = submitted; -#line 273 "/home/jens/Source/shotwell/src/Exporter.vala" - submitted = _tmp81_ + 1; -#line 196 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (dest); -#line 196 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (export_dir); -#line 196 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (basename); -#line 196 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (use_source_file); -#line 196 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (source); -#line 1937 "Exporter.c" - } -#line 196 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (_source_it); -#line 1941 "Exporter.c" - } -#line 276 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp82_ = submitted; -#line 276 "/home/jens/Source/shotwell/src/Exporter.vala" - result = _tmp82_ > 0; -#line 276 "/home/jens/Source/shotwell/src/Exporter.vala" - return result; -#line 1949 "Exporter.c" -} - - -static void -exporter_export_completed (Exporter* self, - gboolean is_cancelled) -{ - ExporterCompletionCallback _tmp0_; - void* _tmp0__target; -#line 279 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_if_fail (IS_EXPORTER (self)); -#line 280 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = self->priv->completion_callback; -#line 280 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0__target = self->priv->completion_callback_target; -#line 280 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ (self, is_cancelled, _tmp0__target); -#line 1967 "Exporter.c" -} - - -static void -_exporter_on_exported_completion_callback (BackgroundJob* job, - gpointer self) -{ -#line 81 "/home/jens/Source/shotwell/src/Exporter.vala" - exporter_on_exported ((Exporter*) self, job); -#line 1977 "Exporter.c" -} - - -static void -_exporter_on_export_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self) -{ -#line 81 "/home/jens/Source/shotwell/src/Exporter.vala" - exporter_on_export_cancelled ((Exporter*) self, job); -#line 1987 "Exporter.c" -} - - -static gpointer -_scaling_dup0 (gpointer self) -{ -#line 87 "/home/jens/Source/shotwell/src/Exporter.vala" - return self ? scaling_dup (self) : NULL; -#line 1996 "Exporter.c" -} - - -static JpegQuality* -_jpeg_quality_dup (JpegQuality* self) -{ - JpegQuality* dup; -#line 88 "/home/jens/Source/shotwell/src/Exporter.vala" - dup = g_new0 (JpegQuality, 1); -#line 88 "/home/jens/Source/shotwell/src/Exporter.vala" - memcpy (dup, self, sizeof (JpegQuality)); -#line 88 "/home/jens/Source/shotwell/src/Exporter.vala" - return dup; -#line 2010 "Exporter.c" -} - - -static gpointer -__jpeg_quality_dup0 (gpointer self) -{ -#line 88 "/home/jens/Source/shotwell/src/Exporter.vala" - return self ? _jpeg_quality_dup (self) : NULL; -#line 2019 "Exporter.c" -} - - -static PhotoFileFormat* -_photo_file_format_dup (PhotoFileFormat* self) -{ - PhotoFileFormat* dup; -#line 89 "/home/jens/Source/shotwell/src/Exporter.vala" - dup = g_new0 (PhotoFileFormat, 1); -#line 89 "/home/jens/Source/shotwell/src/Exporter.vala" - memcpy (dup, self, sizeof (PhotoFileFormat)); -#line 89 "/home/jens/Source/shotwell/src/Exporter.vala" - return dup; -#line 2033 "Exporter.c" -} - - -static gpointer -__photo_file_format_dup0 (gpointer self) -{ -#line 89 "/home/jens/Source/shotwell/src/Exporter.vala" - return self ? _photo_file_format_dup (self) : NULL; -#line 2042 "Exporter.c" -} - - -static ExporterExportJob* -exporter_export_job_construct (GType object_type, - Exporter* owner, - MediaSource* media, - GFile* dest, - Scaling* scaling, - JpegQuality* quality, - PhotoFileFormat* format, - GCancellable* cancellable, - gboolean direct_copy_unmodified, - gboolean export_metadata) -{ - ExporterExportJob* self = NULL; - gboolean _tmp0_ = FALSE; - MediaSource* _tmp1_; - GFile* _tmp2_; - Scaling* _tmp3_; - JpegQuality* _tmp4_; - PhotoFileFormat* _tmp5_; -#line 78 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (IS_EXPORTER (owner), NULL); -#line 78 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (media), NULL); -#line 78 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (G_IS_FILE (dest), NULL); -#line 78 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL); -#line 81 "/home/jens/Source/shotwell/src/Exporter.vala" - self = (ExporterExportJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), _exporter_on_exported_completion_callback, owner, cancellable, _exporter_on_export_cancelled_cancellation_callback, owner, NULL); -#line 83 "/home/jens/Source/shotwell/src/Exporter.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (media, TYPE_PHOTO)) { -#line 83 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = TRUE; -#line 2079 "Exporter.c" - } else { -#line 83 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_TYPE (media, TYPE_VIDEO); -#line 2083 "Exporter.c" - } -#line 83 "/home/jens/Source/shotwell/src/Exporter.vala" - _vala_assert (_tmp0_, "media is Photo || media is Video"); -#line 85 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp1_ = _g_object_ref0 (media); -#line 85 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (self->media); -#line 85 "/home/jens/Source/shotwell/src/Exporter.vala" - self->media = _tmp1_; -#line 86 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp2_ = _g_object_ref0 (dest); -#line 86 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (self->dest); -#line 86 "/home/jens/Source/shotwell/src/Exporter.vala" - self->dest = _tmp2_; -#line 87 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp3_ = _scaling_dup0 (scaling); -#line 87 "/home/jens/Source/shotwell/src/Exporter.vala" - _scaling_free0 (self->scaling); -#line 87 "/home/jens/Source/shotwell/src/Exporter.vala" - self->scaling = _tmp3_; -#line 88 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp4_ = __jpeg_quality_dup0 (quality); -#line 88 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (self->quality); -#line 88 "/home/jens/Source/shotwell/src/Exporter.vala" - self->quality = _tmp4_; -#line 89 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp5_ = __photo_file_format_dup0 (format); -#line 89 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (self->format); -#line 89 "/home/jens/Source/shotwell/src/Exporter.vala" - self->format = _tmp5_; -#line 90 "/home/jens/Source/shotwell/src/Exporter.vala" - self->direct_copy_unmodified = direct_copy_unmodified; -#line 91 "/home/jens/Source/shotwell/src/Exporter.vala" - self->export_metadata = export_metadata; -#line 78 "/home/jens/Source/shotwell/src/Exporter.vala" - return self; -#line 2123 "Exporter.c" -} - - -static ExporterExportJob* -exporter_export_job_new (Exporter* owner, - MediaSource* media, - GFile* dest, - Scaling* scaling, - JpegQuality* quality, - PhotoFileFormat* format, - GCancellable* cancellable, - gboolean direct_copy_unmodified, - gboolean export_metadata) -{ -#line 78 "/home/jens/Source/shotwell/src/Exporter.vala" - return exporter_export_job_construct (EXPORTER_TYPE_EXPORT_JOB, owner, media, dest, scaling, quality, format, cancellable, direct_copy_unmodified, export_metadata); -#line 2140 "Exporter.c" -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 102 "/home/jens/Source/shotwell/src/Exporter.vala" - return self ? g_error_copy (self) : NULL; -#line 2149 "Exporter.c" -} - - -static void -exporter_export_job_real_execute (BackgroundJob* base) -{ - ExporterExportJob * self; - GError * _inner_error_ = NULL; -#line 94 "/home/jens/Source/shotwell/src/Exporter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EXPORTER_TYPE_EXPORT_JOB, ExporterExportJob); -#line 2160 "Exporter.c" - { - MediaSource* _tmp0_; -#line 96 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = self->media; -#line 96 "/home/jens/Source/shotwell/src/Exporter.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_PHOTO)) { -#line 2167 "Exporter.c" - MediaSource* _tmp1_; - GFile* _tmp2_; - Scaling* _tmp3_; - JpegQuality* _tmp4_; - PhotoFileFormat* _tmp5_; - gboolean _tmp6_; - gboolean _tmp7_; - Scaling _tmp8_; -#line 97 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp1_ = self->media; -#line 97 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp2_ = self->dest; -#line 97 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp3_ = self->scaling; -#line 97 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp4_ = self->quality; -#line 97 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp5_ = self->format; -#line 97 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp6_ = self->direct_copy_unmodified; -#line 97 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp7_ = self->export_metadata; -#line 97 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp8_ = *_tmp3_; -#line 97 "/home/jens/Source/shotwell/src/Exporter.vala" - photo_export (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO, Photo), _tmp2_, &_tmp8_, *_tmp4_, *_tmp5_, _tmp6_, _tmp7_, &_inner_error_); -#line 97 "/home/jens/Source/shotwell/src/Exporter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2196 "Exporter.c" - goto __catch489_g_error; - } - } else { - MediaSource* _tmp9_; -#line 98 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp9_ = self->media; -#line 98 "/home/jens/Source/shotwell/src/Exporter.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_VIDEO)) { -#line 2205 "Exporter.c" - MediaSource* _tmp10_; - GFile* _tmp11_; -#line 99 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp10_ = self->media; -#line 99 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp11_ = self->dest; -#line 99 "/home/jens/Source/shotwell/src/Exporter.vala" - video_export (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_VIDEO, Video), _tmp11_, &_inner_error_); -#line 99 "/home/jens/Source/shotwell/src/Exporter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2216 "Exporter.c" - goto __catch489_g_error; - } - } - } - } - goto __finally489; - __catch489_g_error: - { - GError* err = NULL; - GError* _tmp12_; - GError* _tmp13_; -#line 95 "/home/jens/Source/shotwell/src/Exporter.vala" - err = _inner_error_; -#line 95 "/home/jens/Source/shotwell/src/Exporter.vala" - _inner_error_ = NULL; -#line 102 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp12_ = err; -#line 102 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp13_ = _g_error_copy0 (_tmp12_); -#line 102 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_error_free0 (self->err); -#line 102 "/home/jens/Source/shotwell/src/Exporter.vala" - self->err = _tmp13_; -#line 95 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_error_free0 (err); -#line 2242 "Exporter.c" - } - __finally489: -#line 95 "/home/jens/Source/shotwell/src/Exporter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 95 "/home/jens/Source/shotwell/src/Exporter.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 95 "/home/jens/Source/shotwell/src/Exporter.vala" - g_clear_error (&_inner_error_); -#line 95 "/home/jens/Source/shotwell/src/Exporter.vala" - return; -#line 2253 "Exporter.c" - } -} - - -static void -exporter_export_job_class_init (ExporterExportJobClass * klass) -{ -#line 68 "/home/jens/Source/shotwell/src/Exporter.vala" - exporter_export_job_parent_class = g_type_class_peek_parent (klass); -#line 68 "/home/jens/Source/shotwell/src/Exporter.vala" - ((BackgroundJobClass *) klass)->finalize = exporter_export_job_finalize; -#line 68 "/home/jens/Source/shotwell/src/Exporter.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) exporter_export_job_real_execute; -#line 2267 "Exporter.c" -} - - -static void -exporter_export_job_instance_init (ExporterExportJob * self) -{ -#line 74 "/home/jens/Source/shotwell/src/Exporter.vala" - self->err = NULL; -#line 75 "/home/jens/Source/shotwell/src/Exporter.vala" - self->direct_copy_unmodified = FALSE; -#line 76 "/home/jens/Source/shotwell/src/Exporter.vala" - self->export_metadata = TRUE; -#line 2280 "Exporter.c" -} - - -static void -exporter_export_job_finalize (BackgroundJob * obj) -{ - ExporterExportJob * self; -#line 68 "/home/jens/Source/shotwell/src/Exporter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EXPORTER_TYPE_EXPORT_JOB, ExporterExportJob); -#line 69 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (self->media); -#line 70 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (self->dest); -#line 71 "/home/jens/Source/shotwell/src/Exporter.vala" - _scaling_free0 (self->scaling); -#line 72 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (self->quality); -#line 73 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (self->format); -#line 74 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_error_free0 (self->err); -#line 68 "/home/jens/Source/shotwell/src/Exporter.vala" - BACKGROUND_JOB_CLASS (exporter_export_job_parent_class)->finalize (obj); -#line 2304 "Exporter.c" -} - - -static GType -exporter_export_job_get_type (void) -{ - static volatile gsize exporter_export_job_type_id__volatile = 0; - if (g_once_init_enter (&exporter_export_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ExporterExportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) exporter_export_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ExporterExportJob), 0, (GInstanceInitFunc) exporter_export_job_instance_init, NULL }; - GType exporter_export_job_type_id; - exporter_export_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "ExporterExportJob", &g_define_type_info, 0); - g_once_init_leave (&exporter_export_job_type_id__volatile, exporter_export_job_type_id); - } - return exporter_export_job_type_id__volatile; -} - - -static void -exporter_class_init (ExporterClass * klass) -{ -#line 53 "/home/jens/Source/shotwell/src/Exporter.vala" - exporter_parent_class = g_type_class_peek_parent (klass); -#line 53 "/home/jens/Source/shotwell/src/Exporter.vala" - g_type_class_add_private (klass, sizeof (ExporterPrivate)); -#line 53 "/home/jens/Source/shotwell/src/Exporter.vala" - G_OBJECT_CLASS (klass)->finalize = exporter_finalize; -#line 2331 "Exporter.c" -} - - -static void -exporter_instance_init (Exporter * self) -{ - GeeArrayList* _tmp0_; - Workers* _tmp1_; -#line 53 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv = EXPORTER_GET_PRIVATE (self); -#line 107 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 107 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->to_export = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 111 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->completed_count = 0; -#line 112 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp1_ = workers_new (workers_threads_per_cpu (1, 4), FALSE); -#line 112 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->workers = _tmp1_; -#line 113 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->completion_callback = NULL; -#line 113 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->completion_callback_target = self; -#line 114 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->error_callback = NULL; -#line 114 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->error_callback_target = self; -#line 115 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->overwrite_callback = NULL; -#line 115 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->overwrite_callback_target = self; -#line 116 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->monitor = NULL; -#line 116 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->monitor_target = self; -#line 118 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->replace_all = FALSE; -#line 119 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->aborted = FALSE; -#line 2372 "Exporter.c" -} - - -static void -exporter_finalize (GObject * obj) -{ - Exporter * self; -#line 53 "/home/jens/Source/shotwell/src/Exporter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EXPORTER, Exporter); -#line 107 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (self->priv->to_export); -#line 108 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->exported_files = (_vala_array_free (self->priv->exported_files, self->priv->exported_files_length1, (GDestroyNotify) g_object_unref), NULL); -#line 109 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (self->priv->dir); -#line 112 "/home/jens/Source/shotwell/src/Exporter.vala" - _workers_unref0 (self->priv->workers); -#line 117 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (self->priv->cancellable); -#line 53 "/home/jens/Source/shotwell/src/Exporter.vala" - G_OBJECT_CLASS (exporter_parent_class)->finalize (obj); -#line 2394 "Exporter.c" -} - - -GType -exporter_get_type (void) -{ - static volatile gsize exporter_type_id__volatile = 0; - if (g_once_init_enter (&exporter_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ExporterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) exporter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Exporter), 0, (GInstanceInitFunc) exporter_instance_init, NULL }; - GType exporter_type_id; - exporter_type_id = g_type_register_static (G_TYPE_OBJECT, "Exporter", &g_define_type_info, 0); - g_once_init_leave (&exporter_type_id__volatile, exporter_type_id); - } - return exporter_type_id__volatile; -} - - -ExporterUI* -exporter_ui_construct (GType object_type, - Exporter* exporter) -{ - ExporterUI* self = NULL; - Exporter* _tmp0_; -#line 290 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (IS_EXPORTER (exporter), NULL); -#line 290 "/home/jens/Source/shotwell/src/Exporter.vala" - self = (ExporterUI*) g_type_create_instance (object_type); -#line 291 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = _g_object_ref0 (exporter); -#line 291 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (self->priv->exporter); -#line 291 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->exporter = _tmp0_; -#line 290 "/home/jens/Source/shotwell/src/Exporter.vala" - return self; -#line 2430 "Exporter.c" -} - - -ExporterUI* -exporter_ui_new (Exporter* exporter) -{ -#line 290 "/home/jens/Source/shotwell/src/Exporter.vala" - return exporter_ui_construct (TYPE_EXPORTER_UI, exporter); -#line 2439 "Exporter.c" -} - - -static void -_exporter_ui_on_export_completed_exporter_completion_callback (Exporter* exporter, - gboolean is_cancelled, - gpointer self) -{ -#line 300 "/home/jens/Source/shotwell/src/Exporter.vala" - exporter_ui_on_export_completed ((ExporterUI*) self, exporter, is_cancelled); -#line 2450 "Exporter.c" -} - - -static gboolean -_exporter_ui_on_export_failed_exporter_export_failed_callback (Exporter* exporter, - GFile* file, - gint remaining, - GError* err, - gpointer self) -{ - gboolean result; - result = exporter_ui_on_export_failed ((ExporterUI*) self, exporter, file, remaining, err); -#line 300 "/home/jens/Source/shotwell/src/Exporter.vala" - return result; -#line 2465 "Exporter.c" -} - - -static ExporterOverwrite -_exporter_ui_on_export_overwrite_exporter_overwrite_callback (Exporter* exporter, - GFile* file, - gpointer self) -{ - ExporterOverwrite result; - result = exporter_ui_on_export_overwrite ((ExporterUI*) self, exporter, file); -#line 300 "/home/jens/Source/shotwell/src/Exporter.vala" - return result; -#line 2478 "Exporter.c" -} - - -static gboolean -_progress_dialog_monitor_progress_monitor (guint64 current, - guint64 total, - gboolean do_event_loop, - gpointer self) -{ - gboolean result; - result = progress_dialog_monitor ((ProgressDialog*) self, current, total, do_event_loop); -#line 300 "/home/jens/Source/shotwell/src/Exporter.vala" - return result; -#line 2492 "Exporter.c" -} - - -void -exporter_ui_export (ExporterUI* self, - ExporterCompletionCallback completion_callback, - void* completion_callback_target) -{ - AppWindow* _tmp0_; - AppWindow* _tmp1_; - AppWindow* _tmp2_; - AppWindow* _tmp3_; - GCancellable* _tmp4_; - ProgressDialog* _tmp5_; - Exporter* _tmp6_; - GCancellable* _tmp7_; - ProgressDialog* _tmp8_; -#line 294 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_if_fail (IS_EXPORTER_UI (self)); -#line 295 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->completion_callback = completion_callback; -#line 295 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->completion_callback_target = completion_callback_target; -#line 297 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = app_window_get_instance (); -#line 297 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp1_ = _tmp0_; -#line 297 "/home/jens/Source/shotwell/src/Exporter.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow)); -#line 297 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (_tmp1_); -#line 299 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp2_ = app_window_get_instance (); -#line 299 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp3_ = _tmp2_; -#line 299 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp4_ = self->priv->cancellable; -#line 299 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp5_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_window_get_type (), GtkWindow), _ ("Exporting"), _tmp4_); -#line 299 "/home/jens/Source/shotwell/src/Exporter.vala" - g_object_ref_sink (_tmp5_); -#line 299 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (self->priv->progress_dialog); -#line 299 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->progress_dialog = _tmp5_; -#line 299 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (_tmp3_); -#line 300 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp6_ = self->priv->exporter; -#line 300 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp7_ = self->priv->cancellable; -#line 300 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp8_ = self->priv->progress_dialog; -#line 300 "/home/jens/Source/shotwell/src/Exporter.vala" - exporter_export (_tmp6_, _exporter_ui_on_export_completed_exporter_completion_callback, self, _exporter_ui_on_export_failed_exporter_export_failed_callback, self, _exporter_ui_on_export_overwrite_exporter_overwrite_callback, self, _tmp7_, _progress_dialog_monitor_progress_monitor, _tmp8_); -#line 2548 "Exporter.c" -} - - -static void -exporter_ui_on_export_completed (ExporterUI* self, - Exporter* exporter, - gboolean is_cancelled) -{ - ProgressDialog* _tmp0_; - AppWindow* _tmp2_; - AppWindow* _tmp3_; - ExporterCompletionCallback _tmp4_; - void* _tmp4__target; -#line 304 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_if_fail (IS_EXPORTER_UI (self)); -#line 304 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_if_fail (IS_EXPORTER (exporter)); -#line 305 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = self->priv->progress_dialog; -#line 305 "/home/jens/Source/shotwell/src/Exporter.vala" - if (_tmp0_ != NULL) { -#line 2570 "Exporter.c" - ProgressDialog* _tmp1_; -#line 306 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp1_ = self->priv->progress_dialog; -#line 306 "/home/jens/Source/shotwell/src/Exporter.vala" - progress_dialog_close (_tmp1_); -#line 307 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (self->priv->progress_dialog); -#line 307 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->progress_dialog = NULL; -#line 2580 "Exporter.c" - } -#line 310 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp2_ = app_window_get_instance (); -#line 310 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp3_ = _tmp2_; -#line 310 "/home/jens/Source/shotwell/src/Exporter.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PAGE_WINDOW, PageWindow)); -#line 310 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (_tmp3_); -#line 312 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp4_ = self->priv->completion_callback; -#line 312 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp4__target = self->priv->completion_callback_target; -#line 312 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp4_ (exporter, is_cancelled, _tmp4__target); -#line 2596 "Exporter.c" -} - - -static ExporterOverwrite -exporter_ui_on_export_overwrite (ExporterUI* self, - Exporter* exporter, - GFile* file) -{ - ExporterOverwrite result = 0; - ProgressDialog* _tmp0_; - gchar* question = NULL; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - GtkResponseType response = 0; - const gchar* _tmp5_; - ProgressDialog* _tmp6_; - GtkResponseType _tmp7_; -#line 315 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (IS_EXPORTER_UI (self), 0); -#line 315 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (IS_EXPORTER (exporter), 0); -#line 315 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (G_IS_FILE (file), 0); -#line 316 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = self->priv->progress_dialog; -#line 316 "/home/jens/Source/shotwell/src/Exporter.vala" - gtk_window_set_modal (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_window_get_type (), GtkWindow), FALSE); -#line 317 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp1_ = g_file_get_basename (file); -#line 317 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp2_ = _tmp1_; -#line 317 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp3_ = g_strdup_printf (_ ("File %s already exists. Replace?"), _tmp2_); -#line 317 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp4_ = _tmp3_; -#line 317 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (_tmp2_); -#line 317 "/home/jens/Source/shotwell/src/Exporter.vala" - question = _tmp4_; -#line 318 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp5_ = question; -#line 318 "/home/jens/Source/shotwell/src/Exporter.vala" - response = app_window_negate_affirm_all_cancel_question (_tmp5_, _ ("_Skip"), _ ("_Replace"), _ ("Replace _All"), _ ("Export"), NULL); -#line 321 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp6_ = self->priv->progress_dialog; -#line 321 "/home/jens/Source/shotwell/src/Exporter.vala" - gtk_window_set_modal (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow), TRUE); -#line 323 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp7_ = response; -#line 323 "/home/jens/Source/shotwell/src/Exporter.vala" - switch (_tmp7_) { -#line 323 "/home/jens/Source/shotwell/src/Exporter.vala" - case GTK_RESPONSE_APPLY: -#line 2652 "Exporter.c" - { -#line 325 "/home/jens/Source/shotwell/src/Exporter.vala" - result = EXPORTER_OVERWRITE_REPLACE_ALL; -#line 325 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (question); -#line 325 "/home/jens/Source/shotwell/src/Exporter.vala" - return result; -#line 2660 "Exporter.c" - } -#line 323 "/home/jens/Source/shotwell/src/Exporter.vala" - case GTK_RESPONSE_YES: -#line 2664 "Exporter.c" - { -#line 328 "/home/jens/Source/shotwell/src/Exporter.vala" - result = EXPORTER_OVERWRITE_YES; -#line 328 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (question); -#line 328 "/home/jens/Source/shotwell/src/Exporter.vala" - return result; -#line 2672 "Exporter.c" - } -#line 323 "/home/jens/Source/shotwell/src/Exporter.vala" - case GTK_RESPONSE_CANCEL: -#line 2676 "Exporter.c" - { -#line 331 "/home/jens/Source/shotwell/src/Exporter.vala" - result = EXPORTER_OVERWRITE_CANCEL; -#line 331 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (question); -#line 331 "/home/jens/Source/shotwell/src/Exporter.vala" - return result; -#line 2684 "Exporter.c" - } - default: -#line 323 "/home/jens/Source/shotwell/src/Exporter.vala" - case GTK_RESPONSE_NO: -#line 2689 "Exporter.c" - { -#line 335 "/home/jens/Source/shotwell/src/Exporter.vala" - result = EXPORTER_OVERWRITE_NO; -#line 335 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (question); -#line 335 "/home/jens/Source/shotwell/src/Exporter.vala" - return result; -#line 2697 "Exporter.c" - } - } -#line 315 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_free0 (question); -#line 2702 "Exporter.c" -} - - -static gboolean -exporter_ui_on_export_failed (ExporterUI* self, - Exporter* exporter, - GFile* file, - gint remaining, - GError* err) -{ - gboolean result = FALSE; -#line 339 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (IS_EXPORTER_UI (self), FALSE); -#line 339 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (IS_EXPORTER (exporter), FALSE); -#line 339 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 340 "/home/jens/Source/shotwell/src/Exporter.vala" - result = export_error_dialog (file, remaining > 0) != GTK_RESPONSE_CANCEL; -#line 340 "/home/jens/Source/shotwell/src/Exporter.vala" - return result; -#line 2724 "Exporter.c" -} - - -static void -value_exporter_ui_init (GValue* value) -{ -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - value->data[0].v_pointer = NULL; -#line 2733 "Exporter.c" -} - - -static void -value_exporter_ui_free_value (GValue* value) -{ -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - if (value->data[0].v_pointer) { -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - exporter_ui_unref (value->data[0].v_pointer); -#line 2744 "Exporter.c" - } -} - - -static void -value_exporter_ui_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - if (src_value->data[0].v_pointer) { -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - dest_value->data[0].v_pointer = exporter_ui_ref (src_value->data[0].v_pointer); -#line 2757 "Exporter.c" - } else { -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - dest_value->data[0].v_pointer = NULL; -#line 2761 "Exporter.c" - } -} - - -static gpointer -value_exporter_ui_peek_pointer (const GValue* value) -{ -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - return value->data[0].v_pointer; -#line 2771 "Exporter.c" -} - - -static gchar* -value_exporter_ui_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - if (collect_values[0].v_pointer) { -#line 2783 "Exporter.c" - ExporterUI * object; - object = collect_values[0].v_pointer; -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - if (object->parent_instance.g_class == NULL) { -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2790 "Exporter.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2794 "Exporter.c" - } -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - value->data[0].v_pointer = exporter_ui_ref (object); -#line 2798 "Exporter.c" - } else { -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - value->data[0].v_pointer = NULL; -#line 2802 "Exporter.c" - } -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - return NULL; -#line 2806 "Exporter.c" -} - - -static gchar* -value_exporter_ui_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - ExporterUI ** object_p; - object_p = collect_values[0].v_pointer; -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - if (!object_p) { -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2822 "Exporter.c" - } -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - if (!value->data[0].v_pointer) { -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - *object_p = NULL; -#line 2828 "Exporter.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - *object_p = value->data[0].v_pointer; -#line 2832 "Exporter.c" - } else { -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - *object_p = exporter_ui_ref (value->data[0].v_pointer); -#line 2836 "Exporter.c" - } -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - return NULL; -#line 2840 "Exporter.c" -} - - -GParamSpec* -param_spec_exporter_ui (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecExporterUI* spec; -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_EXPORTER_UI), NULL); -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - return G_PARAM_SPEC (spec); -#line 2860 "Exporter.c" -} - - -gpointer -value_get_exporter_ui (const GValue* value) -{ -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_EXPORTER_UI), NULL); -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - return value->data[0].v_pointer; -#line 2871 "Exporter.c" -} - - -void -value_set_exporter_ui (GValue* value, - gpointer v_object) -{ - ExporterUI * old; -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_EXPORTER_UI)); -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - old = value->data[0].v_pointer; -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - if (v_object) { -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_EXPORTER_UI)); -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - value->data[0].v_pointer = v_object; -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - exporter_ui_ref (value->data[0].v_pointer); -#line 2894 "Exporter.c" - } else { -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - value->data[0].v_pointer = NULL; -#line 2898 "Exporter.c" - } -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - if (old) { -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - exporter_ui_unref (old); -#line 2904 "Exporter.c" - } -} - - -void -value_take_exporter_ui (GValue* value, - gpointer v_object) -{ - ExporterUI * old; -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_EXPORTER_UI)); -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - old = value->data[0].v_pointer; -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - if (v_object) { -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_EXPORTER_UI)); -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - value->data[0].v_pointer = v_object; -#line 2926 "Exporter.c" - } else { -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - value->data[0].v_pointer = NULL; -#line 2930 "Exporter.c" - } -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - if (old) { -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - exporter_ui_unref (old); -#line 2936 "Exporter.c" - } -} - - -static void -exporter_ui_class_init (ExporterUIClass * klass) -{ -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - exporter_ui_parent_class = g_type_class_peek_parent (klass); -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - ((ExporterUIClass *) klass)->finalize = exporter_ui_finalize; -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - g_type_class_add_private (klass, sizeof (ExporterUIPrivate)); -#line 2950 "Exporter.c" -} - - -static void -exporter_ui_instance_init (ExporterUI * self) -{ - GCancellable* _tmp0_; -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv = EXPORTER_UI_GET_PRIVATE (self); -#line 286 "/home/jens/Source/shotwell/src/Exporter.vala" - _tmp0_ = g_cancellable_new (); -#line 286 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->cancellable = _tmp0_; -#line 287 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->progress_dialog = NULL; -#line 288 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->completion_callback = NULL; -#line 288 "/home/jens/Source/shotwell/src/Exporter.vala" - self->priv->completion_callback_target = self; -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - self->ref_count = 1; -#line 2972 "Exporter.c" -} - - -static void -exporter_ui_finalize (ExporterUI * obj) -{ - ExporterUI * self; -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EXPORTER_UI, ExporterUI); -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - g_signal_handlers_destroy (self); -#line 285 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (self->priv->exporter); -#line 286 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (self->priv->cancellable); -#line 287 "/home/jens/Source/shotwell/src/Exporter.vala" - _g_object_unref0 (self->priv->progress_dialog); -#line 2990 "Exporter.c" -} - - -GType -exporter_ui_get_type (void) -{ - static volatile gsize exporter_ui_type_id__volatile = 0; - if (g_once_init_enter (&exporter_ui_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_exporter_ui_init, value_exporter_ui_free_value, value_exporter_ui_copy_value, value_exporter_ui_peek_pointer, "p", value_exporter_ui_collect_value, "p", value_exporter_ui_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (ExporterUIClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) exporter_ui_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ExporterUI), 0, (GInstanceInitFunc) exporter_ui_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType exporter_ui_type_id; - exporter_ui_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ExporterUI", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&exporter_ui_type_id__volatile, exporter_ui_type_id); - } - return exporter_ui_type_id__volatile; -} - - -gpointer -exporter_ui_ref (gpointer instance) -{ - ExporterUI * self; - self = instance; -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - g_atomic_int_inc (&self->ref_count); -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - return instance; -#line 3019 "Exporter.c" -} - - -void -exporter_ui_unref (gpointer instance) -{ - ExporterUI * self; - self = instance; -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - EXPORTER_UI_GET_CLASS (self)->finalize (self); -#line 284 "/home/jens/Source/shotwell/src/Exporter.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 3034 "Exporter.c" - } -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/International.c b/src/International.c deleted file mode 100644 index 01f33dd..0000000 --- a/src/International.c +++ /dev/null @@ -1,144 +0,0 @@ -/* International.c generated by valac 0.40.4, the Vala compiler - * generated from International.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - - - -#define TRANSLATABLE "translatable" -#define INTERNATIONAL_SUPPORT_SYSTEM_LOCALE "" -#define INTERNATIONAL_SUPPORT_LANGUAGE_SUPPORT_DIRECTORY _LANG_SUPPORT_DIR -void international_support_init (const gchar* package_name, - gchar** args, - int args_length1, - const gchar* locale); -gchar* international_support_get_langpack_dir_path (gchar** args, - int args_length1); - - -void -international_support_init (const gchar* package_name, - gchar** args, - int args_length1, - const gchar* locale) -{ - gchar* _tmp0_; - gchar* _tmp1_; -#line 15 "/home/jens/Source/shotwell/src/International.vala" - g_return_if_fail (package_name != NULL); -#line 15 "/home/jens/Source/shotwell/src/International.vala" - g_return_if_fail (locale != NULL); -#line 16 "/home/jens/Source/shotwell/src/International.vala" - setlocale (LC_ALL, locale); -#line 18 "/home/jens/Source/shotwell/src/International.vala" - _tmp0_ = international_support_get_langpack_dir_path (args, args_length1); -#line 18 "/home/jens/Source/shotwell/src/International.vala" - _tmp1_ = _tmp0_; -#line 18 "/home/jens/Source/shotwell/src/International.vala" - bindtextdomain (package_name, _tmp1_); -#line 18 "/home/jens/Source/shotwell/src/International.vala" - _g_free0 (_tmp1_); -#line 19 "/home/jens/Source/shotwell/src/International.vala" - bind_textdomain_codeset (package_name, "UTF-8"); -#line 20 "/home/jens/Source/shotwell/src/International.vala" - textdomain (package_name); -#line 62 "International.c" -} - - -gchar* -international_support_get_langpack_dir_path (gchar** args, - int args_length1) -{ - gchar* result = NULL; - GFile* local_langpack_dir = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - GFile* _tmp5_; - GFile* _tmp6_; - GFile* _tmp7_; - GFile* _tmp8_; - gchar* _tmp9_ = NULL; - GFile* _tmp10_; -#line 24 "/home/jens/Source/shotwell/src/International.vala" - _tmp0_ = args[0]; -#line 24 "/home/jens/Source/shotwell/src/International.vala" - _tmp1_ = g_find_program_in_path (_tmp0_); -#line 24 "/home/jens/Source/shotwell/src/International.vala" - _tmp2_ = _tmp1_; -#line 24 "/home/jens/Source/shotwell/src/International.vala" - _tmp3_ = g_file_new_for_path (_tmp2_); -#line 24 "/home/jens/Source/shotwell/src/International.vala" - _tmp4_ = _tmp3_; -#line 24 "/home/jens/Source/shotwell/src/International.vala" - _tmp5_ = g_file_get_parent (_tmp4_); -#line 24 "/home/jens/Source/shotwell/src/International.vala" - _tmp6_ = _tmp5_; -#line 24 "/home/jens/Source/shotwell/src/International.vala" - _tmp7_ = g_file_get_child (_tmp6_, "locale-langpack"); -#line 24 "/home/jens/Source/shotwell/src/International.vala" - _tmp8_ = _tmp7_; -#line 24 "/home/jens/Source/shotwell/src/International.vala" - _g_object_unref0 (_tmp6_); -#line 24 "/home/jens/Source/shotwell/src/International.vala" - _g_object_unref0 (_tmp4_); -#line 24 "/home/jens/Source/shotwell/src/International.vala" - _g_free0 (_tmp2_); -#line 24 "/home/jens/Source/shotwell/src/International.vala" - local_langpack_dir = _tmp8_; -#line 28 "/home/jens/Source/shotwell/src/International.vala" - _tmp10_ = local_langpack_dir; -#line 28 "/home/jens/Source/shotwell/src/International.vala" - if (g_file_query_exists (_tmp10_, NULL)) { -#line 113 "International.c" - GFile* _tmp11_; - gchar* _tmp12_; -#line 28 "/home/jens/Source/shotwell/src/International.vala" - _tmp11_ = local_langpack_dir; -#line 28 "/home/jens/Source/shotwell/src/International.vala" - _tmp12_ = g_file_get_path (_tmp11_); -#line 28 "/home/jens/Source/shotwell/src/International.vala" - _g_free0 (_tmp9_); -#line 28 "/home/jens/Source/shotwell/src/International.vala" - _tmp9_ = _tmp12_; -#line 124 "International.c" - } else { - gchar* _tmp13_; -#line 29 "/home/jens/Source/shotwell/src/International.vala" - _tmp13_ = g_strdup (INTERNATIONAL_SUPPORT_LANGUAGE_SUPPORT_DIRECTORY); -#line 29 "/home/jens/Source/shotwell/src/International.vala" - _g_free0 (_tmp9_); -#line 29 "/home/jens/Source/shotwell/src/International.vala" - _tmp9_ = _tmp13_; -#line 133 "International.c" - } -#line 28 "/home/jens/Source/shotwell/src/International.vala" - result = _tmp9_; -#line 28 "/home/jens/Source/shotwell/src/International.vala" - _g_object_unref0 (local_langpack_dir); -#line 28 "/home/jens/Source/shotwell/src/International.vala" - return result; -#line 141 "International.c" -} - - - diff --git a/src/International.vala b/src/International.vala index 23bdd0b..555a91f 100644 --- a/src/International.vala +++ b/src/International.vala @@ -22,7 +22,7 @@ void init(string package_name, string[] args, string locale = SYSTEM_LOCALE) { private string get_langpack_dir_path(string[] args) { File local_langpack_dir = - File.new_for_path(Environment.find_program_in_path(args[0])).get_parent().get_child( + File.new_for_path(Environment.find_program_in_path(args[0])).get_parent().get_parent().get_child( "locale-langpack"); return (local_langpack_dir.query_exists(null)) ? local_langpack_dir.get_path() : diff --git a/src/LibraryFiles.c b/src/LibraryFiles.c deleted file mode 100644 index 2f6ef37..0000000 --- a/src/LibraryFiles.c +++ /dev/null @@ -1,1428 +0,0 @@ -/* LibraryFiles.c generated by valac 0.40.4, the Vala compiler - * generated from LibraryFiles.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ()) -#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime)) -#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) -#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME)) -#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME)) -#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) - -typedef struct _MetadataDateTime MetadataDateTime; -typedef struct _MetadataDateTimeClass MetadataDateTimeClass; -#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL))) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; - -#define TYPE_VIDEO_READER (video_reader_get_type ()) -#define VIDEO_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_READER, VideoReader)) -#define VIDEO_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_READER, VideoReaderClass)) -#define IS_VIDEO_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_READER)) -#define IS_VIDEO_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_READER)) -#define VIDEO_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_READER, VideoReaderClass)) - -typedef struct _VideoReader VideoReader; -typedef struct _VideoReaderClass VideoReaderClass; - -#define TYPE_VIDEO_METADATA (video_metadata_get_type ()) -#define VIDEO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_METADATA, VideoMetadata)) -#define VIDEO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_METADATA, VideoMetadataClass)) -#define IS_VIDEO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_METADATA)) -#define IS_VIDEO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_METADATA)) -#define VIDEO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_METADATA, VideoMetadataClass)) - -typedef struct _VideoMetadata VideoMetadata; -typedef struct _VideoMetadataClass VideoMetadataClass; -#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL))) -#define _video_reader_unref0(var) ((var == NULL) ? NULL : (var = (video_reader_unref (var), NULL))) - -#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ()) -#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)) -#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) -#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER)) -#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER)) -#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) - -typedef struct _PhotoFileAdapter PhotoFileAdapter; -typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass; - -#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ()) -#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader)) -#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) -#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER)) -#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER)) -#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) - -typedef struct _PhotoFileReader PhotoFileReader; -typedef struct _PhotoFileReaderClass PhotoFileReaderClass; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; -#define _photo_file_adapter_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_adapter_unref (var), NULL))) -#define _fclose0(var) ((var == NULL) ? NULL : (var = (fclose (var), NULL))) - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - - -extern gboolean library_files_use_fallback_copy_func; -gboolean library_files_use_fallback_copy_func = FALSE; - -void library_files_select_copy_function (void); -GFile* app_dirs_get_import_dir (void); -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GFile* library_files_generate_unique_file (const gchar* basename, - MediaMetadata* metadata, - time_t ts, - gboolean* collision, - GError** error); -gpointer metadata_date_time_ref (gpointer instance); -void metadata_date_time_unref (gpointer instance); -GParamSpec* param_spec_metadata_date_time (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_metadata_date_time (GValue* value, - gpointer v_object); -void value_take_metadata_date_time (GValue* value, - gpointer v_object); -gpointer value_get_metadata_date_time (const GValue* value); -GType metadata_date_time_get_type (void) G_GNUC_CONST; -MetadataDateTime* media_metadata_get_creation_date_time (MediaMetadata* self); -time_t metadata_date_time_get_timestamp (MetadataDateTime* self); -GFile* app_dirs_get_baked_import_dir (time_t tm); -gchar* library_files_convert_basename (const gchar* basename); -GFile* generate_unique_file (GFile* dir, - const gchar* basename, - gboolean* collision, - GError** error); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gboolean configuration_facade_get_use_lowercase_filenames (ConfigurationFacade* self); -GFile* library_files_duplicate (GFile* src, - GFileProgressCallback progress_callback, - void* progress_callback_target, - gboolean blacklist, - GError** error); -time_t query_file_modified (GFile* file, - GError** error); -gboolean video_reader_is_supported_video_file (GFile* file); -gpointer video_reader_ref (gpointer instance); -void video_reader_unref (gpointer instance); -GParamSpec* param_spec_video_reader (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_video_reader (GValue* value, - gpointer v_object); -void value_take_video_reader (GValue* value, - gpointer v_object); -gpointer value_get_video_reader (const GValue* value); -GType video_reader_get_type (void) G_GNUC_CONST; -VideoReader* video_reader_new (GFile* file); -VideoReader* video_reader_construct (GType object_type, - GFile* file); -GType video_metadata_get_type (void) G_GNUC_CONST; -VideoMetadata* video_reader_read_metadata (VideoReader* self, - GError** error); -gpointer photo_file_adapter_ref (gpointer instance); -void photo_file_adapter_unref (gpointer instance); -GParamSpec* param_spec_photo_file_adapter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_adapter (GValue* value, - gpointer v_object); -void value_take_photo_file_adapter (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_adapter (const GValue* value); -GType photo_file_adapter_get_type (void) G_GNUC_CONST; -GType photo_file_reader_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -PhotoFileFormat photo_file_format_get_by_file_extension (GFile* file); -PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self, - const gchar* filepath); -GType photo_metadata_get_type (void) G_GNUC_CONST; -PhotoMetadata* photo_file_reader_read_metadata (PhotoFileReader* self, - GError** error); -void library_monitor_blacklist_file (GFile* file, - const gchar* reason); -void library_files_fallback_copy (GFile* src, - GFile* dst, - GFileProgressCallback callback, - void* callback_target, - GError** error); -void library_monitor_unblacklist_file (GFile* file); -gchar* md5_file (GFile* file, - GError** error); - - -static gchar* -bool_to_string (gboolean self) -{ - gchar* result = NULL; -#line 37 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (self) { -#line 246 "LibraryFiles.c" - gchar* _tmp0_; -#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup ("true"); -#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 254 "LibraryFiles.c" - } else { - gchar* _tmp1_; -#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = g_strdup ("false"); -#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp1_; -#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 263 "LibraryFiles.c" - } -} - - -void -library_files_select_copy_function (void) -{ - GFile* import_dir = NULL; - GFile* _tmp0_; - gboolean _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - GError * _inner_error_ = NULL; -#line 12 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp0_ = app_dirs_get_import_dir (); -#line 12 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - import_dir = _tmp0_; -#line 281 "LibraryFiles.c" - { - GFileInfo* info = NULL; - GFileInfo* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 15 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp1_ = g_file_query_filesystem_info (import_dir, "filesystem::type", NULL, &_inner_error_); -#line 15 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - info = _tmp1_; -#line 15 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 293 "LibraryFiles.c" - goto __catch471_g_error; - } -#line 16 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp2_ = g_file_info_get_attribute_as_string (info, "filesystem::type"); -#line 16 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp3_ = _tmp2_; -#line 16 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - library_files_use_fallback_copy_func = g_strcmp0 (_tmp3_, "nfs") == 0; -#line 16 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp3_); -#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_object_unref0 (info); -#line 306 "LibraryFiles.c" - } - goto __finally471; - __catch471_g_error: - { - GError* _error_ = NULL; - GError* _tmp4_; - const gchar* _tmp5_; -#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _error_ = _inner_error_; -#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _inner_error_ = NULL; -#line 18 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp4_ = _error_; -#line 18 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp5_ = _tmp4_->message; -#line 18 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_critical ("LibraryFiles.vala:18: Failed to query fs type: %s", _tmp5_); -#line 19 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - library_files_use_fallback_copy_func = TRUE; -#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_error_free0 (_error_); -#line 328 "LibraryFiles.c" - } - __finally471: -#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_object_unref0 (import_dir); -#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_clear_error (&_inner_error_); -#line 14 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return; -#line 341 "LibraryFiles.c" - } -#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp6_ = library_files_use_fallback_copy_func; -#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp7_ = bool_to_string (_tmp6_); -#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp8_ = _tmp7_; -#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_info ("LibraryFiles.vala:22: Using fallback copy: %s", _tmp8_); -#line 22 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp8_); -#line 11 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_object_unref0 (import_dir); -#line 355 "LibraryFiles.c" -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 49 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return self ? g_error_copy (self) : NULL; -#line 364 "LibraryFiles.c" -} - - -GFile* -library_files_generate_unique_file (const gchar* basename, - MediaMetadata* metadata, - time_t ts, - gboolean* collision, - GError** error) -{ - gboolean _vala_collision = FALSE; - GFile* result = NULL; - time_t timestamp = 0; - GFile* dir = NULL; - time_t _tmp5_; - GFile* _tmp6_; - gchar* newbasename = NULL; - gchar* _tmp11_; - GFile* _tmp12_ = NULL; - GFile* _tmp13_; - gboolean _tmp14_ = FALSE; - GFile* _tmp15_; - GFile* _tmp16_; - GError * _inner_error_ = NULL; -#line 29 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_return_val_if_fail (basename != NULL, NULL); -#line 29 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_return_val_if_fail ((metadata == NULL) || IS_MEDIA_METADATA (metadata), NULL); -#line 34 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - timestamp = ts; -#line 35 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (metadata != NULL) { -#line 397 "LibraryFiles.c" - MetadataDateTime* date_time = NULL; - MetadataDateTime* _tmp0_; - MetadataDateTime* _tmp1_; -#line 36 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp0_ = media_metadata_get_creation_date_time (metadata); -#line 36 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - date_time = _tmp0_; -#line 37 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp1_ = date_time; -#line 37 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (_tmp1_ != NULL) { -#line 409 "LibraryFiles.c" - MetadataDateTime* _tmp2_; -#line 38 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp2_ = date_time; -#line 38 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - timestamp = metadata_date_time_get_timestamp (_tmp2_); -#line 415 "LibraryFiles.c" - } else { - time_t _tmp3_; -#line 39 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp3_ = timestamp; -#line 39 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (_tmp3_ == ((time_t) 0)) { -#line 422 "LibraryFiles.c" - time_t _tmp4_; -#line 40 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp4_ = time (NULL); -#line 40 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - timestamp = _tmp4_; -#line 428 "LibraryFiles.c" - } - } -#line 35 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _metadata_date_time_unref0 (date_time); -#line 433 "LibraryFiles.c" - } -#line 44 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp5_ = timestamp; -#line 44 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp6_ = app_dirs_get_baked_import_dir (_tmp5_); -#line 44 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - dir = _tmp6_; -#line 441 "LibraryFiles.c" - { - GFile* _tmp7_; -#line 46 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp7_ = dir; -#line 46 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_file_make_directory_with_parents (_tmp7_, NULL, &_inner_error_); -#line 46 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 450 "LibraryFiles.c" - goto __catch472_g_error; - } - } - goto __finally472; - __catch472_g_error: - { - GError* err = NULL; - GError* _tmp8_; -#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - err = _inner_error_; -#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _inner_error_ = NULL; -#line 48 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp8_ = err; -#line 48 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (!g_error_matches (_tmp8_, G_IO_ERROR, G_IO_ERROR_EXISTS)) { -#line 467 "LibraryFiles.c" - GError* _tmp9_; - GError* _tmp10_; -#line 49 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp9_ = err; -#line 49 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp10_ = _g_error_copy0 (_tmp9_); -#line 49 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _inner_error_ = _tmp10_; -#line 49 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_error_free0 (err); -#line 478 "LibraryFiles.c" - goto __finally472; - } -#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_error_free0 (err); -#line 483 "LibraryFiles.c" - } - __finally472: -#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_propagate_error (error, _inner_error_); -#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_object_unref0 (dir); -#line 45 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return NULL; -#line 494 "LibraryFiles.c" - } -#line 55 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp11_ = library_files_convert_basename (basename); -#line 55 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - newbasename = _tmp11_; -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp13_ = dir; -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp15_ = generate_unique_file (_tmp13_, newbasename, &_tmp14_, &_inner_error_); -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _vala_collision = _tmp14_; -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp12_ = _tmp15_; -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_propagate_error (error, _inner_error_); -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (newbasename); -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_object_unref0 (dir); -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return NULL; -#line 518 "LibraryFiles.c" - } -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp16_ = _tmp12_; -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp12_ = NULL; -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - result = _tmp16_; -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_object_unref0 (_tmp12_); -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (newbasename); -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_object_unref0 (dir); -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (collision) { -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - *collision = _vala_collision; -#line 536 "LibraryFiles.c" - } -#line 57 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return result; -#line 540 "LibraryFiles.c" -} - - -gchar* -library_files_convert_basename (const gchar* basename) -{ - gchar* result = NULL; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gboolean _tmp2_; -#line 62 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_return_val_if_fail (basename != NULL, NULL); -#line 63 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp0_ = config_facade_get_instance (); -#line 63 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp1_ = _tmp0_; -#line 63 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp2_ = configuration_facade_get_use_lowercase_filenames (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 63 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_object_unref0 (_tmp1_); -#line 63 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (_tmp2_) { -#line 563 "LibraryFiles.c" - gchar* _tmp3_; -#line 64 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp3_ = g_utf8_strdown (basename, (gssize) -1); -#line 64 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - result = _tmp3_; -#line 64 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return result; -#line 571 "LibraryFiles.c" - } else { - gchar* _tmp4_; -#line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp4_ = g_strdup (basename); -#line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - result = _tmp4_; -#line 66 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return result; -#line 580 "LibraryFiles.c" - } -} - - -GFile* -library_files_duplicate (GFile* src, - GFileProgressCallback progress_callback, - void* progress_callback_target, - gboolean blacklist, - GError** error) -{ - GFile* result = NULL; - time_t timestamp = 0; - MediaMetadata* metadata = NULL; - gboolean collision = FALSE; - GFile* dest = NULL; - gchar* _tmp18_; - gchar* _tmp19_; - MediaMetadata* _tmp20_; - time_t _tmp21_; - gboolean _tmp22_ = FALSE; - GFile* _tmp23_; - GFile* _tmp24_; - GFile* _tmp25_; - GError * _inner_error_ = NULL; -#line 73 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_return_val_if_fail (G_IS_FILE (src), NULL); -#line 74 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - timestamp = (time_t) 0; -#line 610 "LibraryFiles.c" - { - time_t _tmp0_ = 0; -#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp0_ = query_file_modified (src, &_inner_error_); -#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 617 "LibraryFiles.c" - goto __catch473_g_error; - } -#line 76 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - timestamp = _tmp0_; -#line 622 "LibraryFiles.c" - } - goto __finally473; - __catch473_g_error: - { - GError* err = NULL; - gchar* _tmp1_; - gchar* _tmp2_; - GError* _tmp3_; - const gchar* _tmp4_; -#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - err = _inner_error_; -#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _inner_error_ = NULL; -#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp1_ = g_file_get_path (src); -#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp2_ = _tmp1_; -#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp3_ = err; -#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp4_ = _tmp3_->message; -#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_critical ("LibraryFiles.vala:78: Unable to access file modification for %s: %s", _tmp2_, _tmp4_); -#line 78 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp2_); -#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_error_free0 (err); -#line 650 "LibraryFiles.c" - } - __finally473: -#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_propagate_error (error, _inner_error_); -#line 75 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return NULL; -#line 659 "LibraryFiles.c" - } -#line 81 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - metadata = NULL; -#line 82 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (video_reader_is_supported_video_file (src)) { -#line 665 "LibraryFiles.c" - VideoReader* reader = NULL; - VideoReader* _tmp5_; -#line 83 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp5_ = video_reader_new (src); -#line 83 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - reader = _tmp5_; -#line 672 "LibraryFiles.c" - { - VideoMetadata* _tmp6_ = NULL; - VideoReader* _tmp7_; - VideoMetadata* _tmp8_; - VideoMetadata* _tmp9_; -#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp7_ = reader; -#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp8_ = video_reader_read_metadata (_tmp7_, &_inner_error_); -#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp6_ = _tmp8_; -#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 686 "LibraryFiles.c" - goto __catch474_g_error; - } -#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp9_ = _tmp6_; -#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp6_ = NULL; -#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _media_metadata_unref0 (metadata); -#line 85 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - metadata = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_METADATA, MediaMetadata); -#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _media_metadata_unref0 (_tmp6_); -#line 699 "LibraryFiles.c" - } - goto __finally474; - __catch474_g_error: - { - GError* err = NULL; -#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - err = _inner_error_; -#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _inner_error_ = NULL; -#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_error_free0 (err); -#line 711 "LibraryFiles.c" - } - __finally474: -#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_propagate_error (error, _inner_error_); -#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _video_reader_unref0 (reader); -#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _media_metadata_unref0 (metadata); -#line 84 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return NULL; -#line 724 "LibraryFiles.c" - } -#line 82 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _video_reader_unref0 (reader); -#line 728 "LibraryFiles.c" - } else { - PhotoFileReader* reader = NULL; - gchar* _tmp10_; - gchar* _tmp11_; - PhotoFileReader* _tmp12_; - PhotoFileReader* _tmp13_; -#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp10_ = g_file_get_path (src); -#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp11_ = _tmp10_; -#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp12_ = photo_file_format_create_reader (photo_file_format_get_by_file_extension (src), _tmp11_); -#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp13_ = _tmp12_; -#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp11_); -#line 90 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - reader = _tmp13_; -#line 747 "LibraryFiles.c" - { - PhotoMetadata* _tmp14_ = NULL; - PhotoFileReader* _tmp15_; - PhotoMetadata* _tmp16_; - PhotoMetadata* _tmp17_; -#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp15_ = reader; -#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp16_ = photo_file_reader_read_metadata (_tmp15_, &_inner_error_); -#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp14_ = _tmp16_; -#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 761 "LibraryFiles.c" - goto __catch475_g_error; - } -#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp17_ = _tmp14_; -#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp14_ = NULL; -#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _media_metadata_unref0 (metadata); -#line 93 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - metadata = G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MEDIA_METADATA, MediaMetadata); -#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _media_metadata_unref0 (_tmp14_); -#line 774 "LibraryFiles.c" - } - goto __finally475; - __catch475_g_error: - { - GError* err = NULL; -#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - err = _inner_error_; -#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _inner_error_ = NULL; -#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_error_free0 (err); -#line 786 "LibraryFiles.c" - } - __finally475: -#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_propagate_error (error, _inner_error_); -#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _photo_file_adapter_unref0 (reader); -#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _media_metadata_unref0 (metadata); -#line 92 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return NULL; -#line 799 "LibraryFiles.c" - } -#line 82 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _photo_file_adapter_unref0 (reader); -#line 803 "LibraryFiles.c" - } -#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp18_ = g_file_get_basename (src); -#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp19_ = _tmp18_; -#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp20_ = metadata; -#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp21_ = timestamp; -#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp23_ = library_files_generate_unique_file (_tmp19_, _tmp20_, _tmp21_, &_tmp22_, &_inner_error_); -#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - collision = _tmp22_; -#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp24_ = _tmp23_; -#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp19_); -#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - dest = _tmp24_; -#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_propagate_error (error, _inner_error_); -#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _media_metadata_unref0 (metadata); -#line 100 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return NULL; -#line 831 "LibraryFiles.c" - } -#line 101 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp25_ = dest; -#line 101 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (_tmp25_ == NULL) { -#line 837 "LibraryFiles.c" - GError* _tmp26_; -#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp26_ = g_error_new_literal (G_FILE_ERROR, G_FILE_ERROR_FAILED, "Unable to generate unique pathname for destination"); -#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _inner_error_ = _tmp26_; -#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_propagate_error (error, _inner_error_); -#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_object_unref0 (dest); -#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _media_metadata_unref0 (metadata); -#line 102 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return NULL; -#line 851 "LibraryFiles.c" - } -#line 104 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (blacklist) { -#line 855 "LibraryFiles.c" - GFile* _tmp27_; -#line 105 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp27_ = dest; -#line 105 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - library_monitor_blacklist_file (_tmp27_, "LibraryFiles.duplicate"); -#line 861 "LibraryFiles.c" - } - { - gboolean _tmp28_; -#line 108 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp28_ = library_files_use_fallback_copy_func; -#line 108 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (_tmp28_) { -#line 869 "LibraryFiles.c" - GFile* _tmp29_; -#line 109 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp29_ = dest; -#line 109 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - library_files_fallback_copy (src, _tmp29_, progress_callback, progress_callback_target, &_inner_error_); -#line 109 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 877 "LibraryFiles.c" - goto __catch476_g_error; - } - } else { - GFile* _tmp30_; -#line 111 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp30_ = dest; -#line 111 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_file_copy (src, _tmp30_, G_FILE_COPY_ALL_METADATA | G_FILE_COPY_OVERWRITE, NULL, progress_callback, progress_callback_target, &_inner_error_); -#line 111 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 888 "LibraryFiles.c" - goto __catch476_g_error; - } - } -#line 113 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (blacklist) { -#line 894 "LibraryFiles.c" - GFile* _tmp31_; -#line 114 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp31_ = dest; -#line 114 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - library_monitor_unblacklist_file (_tmp31_); -#line 900 "LibraryFiles.c" - } - } - goto __finally476; - __catch476_g_error: - { - GError* err = NULL; - gchar* _tmp32_; - gchar* _tmp33_; - GError* _tmp34_; - const gchar* _tmp35_; - gboolean _tmp36_ = FALSE; -#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - err = _inner_error_; -#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _inner_error_ = NULL; -#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp32_ = g_file_get_path (src); -#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp33_ = _tmp32_; -#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp34_ = err; -#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp35_ = _tmp34_->message; -#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_message ("LibraryFiles.vala:116: There was a problem copying %s: %s", _tmp33_, _tmp35_); -#line 116 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp33_); -#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (blacklist) { -#line 930 "LibraryFiles.c" - gchar* _tmp37_ = NULL; - gchar* _tmp38_; - gchar* _tmp39_ = NULL; - GFile* _tmp40_; - gchar* _tmp41_; -#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp38_ = md5_file (src, &_inner_error_); -#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp37_ = _tmp38_; -#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_error_free0 (err); -#line 944 "LibraryFiles.c" - goto __finally476; - } -#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp40_ = dest; -#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp41_ = md5_file (_tmp40_, &_inner_error_); -#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp39_ = _tmp41_; -#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp37_); -#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_error_free0 (err); -#line 959 "LibraryFiles.c" - goto __finally476; - } -#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp36_ = g_strcmp0 (_tmp37_, _tmp39_) != 0; -#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp39_); -#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp37_); -#line 968 "LibraryFiles.c" - } else { -#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp36_ = FALSE; -#line 972 "LibraryFiles.c" - } -#line 117 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (_tmp36_) { -#line 976 "LibraryFiles.c" - GFile* _tmp42_; -#line 118 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp42_ = dest; -#line 118 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - library_monitor_unblacklist_file (_tmp42_); -#line 982 "LibraryFiles.c" - } -#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_error_free0 (err); -#line 986 "LibraryFiles.c" - } - __finally476: -#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_propagate_error (error, _inner_error_); -#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_object_unref0 (dest); -#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _media_metadata_unref0 (metadata); -#line 107 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return NULL; -#line 999 "LibraryFiles.c" - } - { - GFileInfo* info = NULL; - GFile* _tmp43_; - GFileInfo* _tmp44_; - guint32 mode = 0U; - GFileInfo* _tmp45_; - gboolean _tmp46_ = FALSE; - GFile* _tmp47_; - guint32 _tmp48_; -#line 123 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp43_ = dest; -#line 123 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp44_ = g_file_query_info (_tmp43_, G_FILE_ATTRIBUTE_UNIX_MODE, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_); -#line 123 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - info = _tmp44_; -#line 123 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1018 "LibraryFiles.c" - goto __catch477_g_error; - } -#line 124 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp45_ = info; -#line 124 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - mode = g_file_info_get_attribute_uint32 (_tmp45_, G_FILE_ATTRIBUTE_UNIX_MODE) | 0600; -#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp47_ = dest; -#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp48_ = mode; -#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp46_ = g_file_set_attribute_uint32 (_tmp47_, G_FILE_ATTRIBUTE_UNIX_MODE, _tmp48_, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_); -#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_object_unref0 (info); -#line 1035 "LibraryFiles.c" - goto __catch477_g_error; - } -#line 125 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (!_tmp46_) { -#line 126 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_warning ("LibraryFiles.vala:126: Could not make file writable"); -#line 1042 "LibraryFiles.c" - } -#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_object_unref0 (info); -#line 1046 "LibraryFiles.c" - } - goto __finally477; - __catch477_g_error: - { - GError* err = NULL; - GError* _tmp49_; - const gchar* _tmp50_; -#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - err = _inner_error_; -#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _inner_error_ = NULL; -#line 129 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp49_ = err; -#line 129 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp50_ = _tmp49_->message; -#line 129 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_warning ("LibraryFiles.vala:129: Could not make file writable: %s", _tmp50_); -#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_error_free0 (err); -#line 1066 "LibraryFiles.c" - } - __finally477: -#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_propagate_error (error, _inner_error_); -#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_object_unref0 (dest); -#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _media_metadata_unref0 (metadata); -#line 122 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return NULL; -#line 1079 "LibraryFiles.c" - } -#line 132 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - result = dest; -#line 132 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _media_metadata_unref0 (metadata); -#line 132 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return result; -#line 1087 "LibraryFiles.c" -} - - -void -library_files_fallback_copy (GFile* src, - GFile* dst, - GFileProgressCallback callback, - void* callback_target, - GError** error) -{ - gboolean _tmp0_ = FALSE; - FILE* f = NULL; - gchar* _tmp1_; - gchar* _tmp2_; - FILE* _tmp3_; - FILE* _tmp4_; - FILE* _tmp5_; - GError * _inner_error_ = NULL; -#line 135 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_return_if_fail ((src == NULL) || G_IS_FILE (src)); -#line 135 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_return_if_fail ((dst == NULL) || G_IS_FILE (dst)); -#line 136 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (src == NULL) { -#line 136 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp0_ = TRUE; -#line 1114 "LibraryFiles.c" - } else { -#line 136 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp0_ = dst == NULL; -#line 1118 "LibraryFiles.c" - } -#line 136 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (_tmp0_) { -#line 137 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return; -#line 1124 "LibraryFiles.c" - } -#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp1_ = g_file_get_path (src); -#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp2_ = _tmp1_; -#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp3_ = g_fopen (_tmp2_, "rb"); -#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp4_ = _tmp3_; -#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp2_); -#line 140 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - f = _tmp4_; -#line 141 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp5_ = f; -#line 141 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (_tmp5_ != NULL) { -#line 1142 "LibraryFiles.c" - FILE* _tmp6_; - glong size = 0L; - FILE* _tmp7_; - FILE* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - glong _tmp13_; - FILE* g = NULL; - gchar* _tmp14_; - gchar* _tmp15_; - FILE* _tmp16_; - FILE* _tmp17_; - FILE* _tmp18_; -#line 142 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp6_ = f; -#line 142 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - fseek (_tmp6_, (glong) 0, SEEK_END); -#line 143 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp7_ = f; -#line 143 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - size = ftell (_tmp7_); -#line 144 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp8_ = f; -#line 144 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - fseek (_tmp8_, (glong) 0, SEEK_SET); -#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp9_ = g_file_get_path (src); -#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp10_ = _tmp9_; -#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp11_ = g_file_get_path (dst); -#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp12_ = _tmp11_; -#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp13_ = size; -#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_debug ("LibraryFiles.vala:145: Copying %s to %s, size is %ld", _tmp10_, _tmp12_, _tmp13_); -#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp12_); -#line 145 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp10_); -#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp14_ = g_file_get_path (dst); -#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp15_ = _tmp14_; -#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp16_ = g_fopen (_tmp15_, "wb"); -#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp17_ = _tmp16_; -#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp15_); -#line 147 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g = _tmp17_; -#line 148 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp18_ = g; -#line 148 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (_tmp18_ != NULL) { -#line 1202 "LibraryFiles.c" - guint8 buffer[4096] = {0}; - gsize written = 0UL; -#line 150 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - written = (gsize) 0; -#line 152 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - while (TRUE) { -#line 1209 "LibraryFiles.c" - FILE* _tmp19_; - gsize len = 0UL; - FILE* _tmp20_; - gsize _tmp21_; -#line 152 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp19_ = f; -#line 152 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (!(!feof (_tmp19_))) { -#line 152 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - break; -#line 1220 "LibraryFiles.c" - } -#line 153 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp20_ = f; -#line 153 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - len = fread (buffer, (gsize) 1, 4096, _tmp20_); -#line 154 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp21_ = len; -#line 154 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (_tmp21_ > ((gsize) 0)) { -#line 1230 "LibraryFiles.c" - gsize out_len = 0UL; - FILE* _tmp22_; - gsize _tmp23_; - gsize _tmp24_; - gsize _tmp31_; - gsize _tmp32_; -#line 155 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp22_ = g; -#line 155 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp23_ = len; -#line 155 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - out_len = fwrite (buffer + 0, (gsize) 1, ((gint) _tmp23_) - 0, _tmp22_); -#line 156 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp24_ = out_len; -#line 156 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (_tmp24_ < ((gsize) 0)) { -#line 1247 "LibraryFiles.c" - gchar* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - GError* _tmp29_; - GError* _tmp30_; -#line 157 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp25_ = g_file_get_path (dst); -#line 157 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp26_ = _tmp25_; -#line 157 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_critical ("LibraryFiles.vala:157: Failed to write to file %s: %m", _tmp26_); -#line 157 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp26_); -#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp27_ = g_file_get_path (dst); -#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp28_ = _tmp27_; -#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp29_ = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED, "Failed to write to %s", _tmp28_); -#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp30_ = _tmp29_; -#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp28_); -#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _inner_error_ = _tmp30_; -#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_propagate_error (error, _inner_error_); -#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _fclose0 (g); -#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _fclose0 (f); -#line 158 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return; -#line 1282 "LibraryFiles.c" - } -#line 160 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp31_ = written; -#line 160 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp32_ = len; -#line 160 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - written = _tmp31_ + _tmp32_; -#line 162 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (callback != NULL) { -#line 1292 "LibraryFiles.c" - gsize _tmp33_; - glong _tmp34_; -#line 163 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp33_ = written; -#line 163 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp34_ = size; -#line 163 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - callback ((gint64) _tmp33_, (gint64) _tmp34_, callback_target); -#line 1301 "LibraryFiles.c" - } - } else { - gsize _tmp35_; -#line 164 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp35_ = len; -#line 164 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - if (_tmp35_ < ((gsize) 0)) { -#line 1309 "LibraryFiles.c" - gchar* _tmp36_; - gchar* _tmp37_; - gchar* _tmp38_; - gchar* _tmp39_; - GError* _tmp40_; - GError* _tmp41_; -#line 165 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp36_ = g_file_get_path (src); -#line 165 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp37_ = _tmp36_; -#line 165 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_critical ("LibraryFiles.vala:165: Failed to read from file %s: %m", _tmp37_); -#line 165 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp37_); -#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp38_ = g_file_get_path (src); -#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp39_ = _tmp38_; -#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp40_ = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED, "Failed to read from %s", _tmp39_); -#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp41_ = _tmp40_; -#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp39_); -#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _inner_error_ = _tmp41_; -#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_propagate_error (error, _inner_error_); -#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _fclose0 (g); -#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _fclose0 (f); -#line 166 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return; -#line 1344 "LibraryFiles.c" - } - } - } - } else { - gchar* _tmp42_; - gchar* _tmp43_; - gchar* _tmp44_; - gchar* _tmp45_; - GError* _tmp46_; - GError* _tmp47_; -#line 170 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp42_ = g_file_get_path (dst); -#line 170 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp43_ = _tmp42_; -#line 170 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_critical ("LibraryFiles.vala:170: Failed to open %s: %m", _tmp43_); -#line 170 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp43_); -#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp44_ = g_file_get_path (dst); -#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp45_ = _tmp44_; -#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp46_ = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED, "Failed to open %s", _tmp45_); -#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp47_ = _tmp46_; -#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp45_); -#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _inner_error_ = _tmp47_; -#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_propagate_error (error, _inner_error_); -#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _fclose0 (g); -#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _fclose0 (f); -#line 171 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return; -#line 1383 "LibraryFiles.c" - } -#line 141 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _fclose0 (g); -#line 1387 "LibraryFiles.c" - } else { - gchar* _tmp48_; - gchar* _tmp49_; - gchar* _tmp50_; - gchar* _tmp51_; - GError* _tmp52_; - GError* _tmp53_; -#line 174 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp48_ = g_file_get_path (src); -#line 174 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp49_ = _tmp48_; -#line 174 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_critical ("LibraryFiles.vala:174: Failed to open %s: %m", _tmp49_); -#line 174 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp49_); -#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp50_ = g_file_get_path (src); -#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp51_ = _tmp50_; -#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp52_ = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED, "Failed to open %s", _tmp51_); -#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _tmp53_ = _tmp52_; -#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _g_free0 (_tmp51_); -#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _inner_error_ = _tmp53_; -#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - g_propagate_error (error, _inner_error_); -#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _fclose0 (f); -#line 175 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - return; -#line 1421 "LibraryFiles.c" - } -#line 135 "/home/jens/Source/shotwell/src/LibraryFiles.vala" - _fclose0 (f); -#line 1425 "LibraryFiles.c" -} - - - diff --git a/src/LibraryMonitor.c b/src/LibraryMonitor.c deleted file mode 100644 index dc4d603..0000000 --- a/src/LibraryMonitor.c +++ /dev/null @@ -1,8820 +0,0 @@ -/* LibraryMonitor.c generated by valac 0.40.4, the Vala compiler - * generated from LibraryMonitor.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/**/ -/* LibraryMonitor uses DirectoryMonitor to track assets in the user's library directory and make*/ -/* sure they're reflected in the application.*/ -/**/ -/* NOTE: There appears to be a bug where prior versions of Shotwell (<= 0.6.x) were not*/ -/* properly loading the file modification timestamp during import. This was no issue*/ -/* before but becomes imperative now with file monitoring. A "proper" algorithm is*/ -/* to reimport an entire photo if the modification time in the database is different*/ -/* than the file's, but that's Real Bad when the user first turns on monitoring, as it*/ -/* will cause a lot of reimports (think of a 10,000 photo database) and will blow away*/ -/* ALL transformations, as they are now suspect.*/ -/**/ -/* So: If the modification time is zero and filesize is the same, simply update the*/ -/* timestamp in the database and move on.*/ -/**/ -/* TODO: Although it seems highly unlikely that a file's timestamp could change but the file size*/ -/* has not and the file really be "changed", it *is* possible, even in the case of complex little*/ -/* animals like photo files. We could be more liberal and treat this case as a metadata-changed*/ -/* situation (since that's a likely case).*/ -/**/ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_LIBRARY_MONITOR_POOL (library_monitor_pool_get_type ()) -#define LIBRARY_MONITOR_POOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPool)) -#define LIBRARY_MONITOR_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolClass)) -#define IS_LIBRARY_MONITOR_POOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_MONITOR_POOL)) -#define IS_LIBRARY_MONITOR_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_MONITOR_POOL)) -#define LIBRARY_MONITOR_POOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolClass)) - -typedef struct _LibraryMonitorPool LibraryMonitorPool; -typedef struct _LibraryMonitorPoolClass LibraryMonitorPoolClass; -typedef struct _LibraryMonitorPoolPrivate LibraryMonitorPoolPrivate; - -#define TYPE_DIRECTORY_MONITOR (directory_monitor_get_type ()) -#define DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitor)) -#define DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass)) -#define IS_DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECTORY_MONITOR)) -#define IS_DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECTORY_MONITOR)) -#define DIRECTORY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass)) - -typedef struct _DirectoryMonitor DirectoryMonitor; -typedef struct _DirectoryMonitorClass DirectoryMonitorClass; - -#define TYPE_LIBRARY_MONITOR (library_monitor_get_type ()) -#define LIBRARY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_MONITOR, LibraryMonitor)) -#define LIBRARY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_MONITOR, LibraryMonitorClass)) -#define IS_LIBRARY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_MONITOR)) -#define IS_LIBRARY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_MONITOR)) -#define LIBRARY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_MONITOR, LibraryMonitorClass)) - -typedef struct _LibraryMonitor LibraryMonitor; -typedef struct _LibraryMonitorClass LibraryMonitorClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _library_monitor_pool_unref0(var) ((var == NULL) ? NULL : (var = (library_monitor_pool_unref (var), NULL))) -typedef struct _ParamSpecLibraryMonitorPool ParamSpecLibraryMonitorPool; -enum { - LIBRARY_MONITOR_POOL_MONITOR_INSTALLED_SIGNAL, - LIBRARY_MONITOR_POOL_MONITOR_DESTROYED_SIGNAL, - LIBRARY_MONITOR_POOL_NUM_SIGNALS -}; -static guint library_monitor_pool_signals[LIBRARY_MONITOR_POOL_NUM_SIGNALS] = {0}; -typedef struct _DirectoryMonitorPrivate DirectoryMonitorPrivate; -typedef struct _LibraryMonitorPrivate LibraryMonitorPrivate; - -#define TYPE_WORKERS (workers_get_type ()) -#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers)) -#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass)) -#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS)) -#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS)) -#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass)) - -typedef struct _Workers Workers; -typedef struct _WorkersClass WorkersClass; - -#define TYPE_MEDIA_MONITOR (media_monitor_get_type ()) -#define MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_MONITOR, MediaMonitor)) -#define MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_MONITOR, MediaMonitorClass)) -#define IS_MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_MONITOR)) -#define IS_MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_MONITOR)) -#define MEDIA_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_MONITOR, MediaMonitorClass)) - -typedef struct _MediaMonitor MediaMonitor; -typedef struct _MediaMonitorClass MediaMonitorClass; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_MONITORABLE (monitorable_get_type ()) -#define MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE, Monitorable)) -#define IS_MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE)) -#define MONITORABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MONITORABLE, MonitorableIface)) - -typedef struct _Monitorable Monitorable; -typedef struct _MonitorableIface MonitorableIface; - -#define TYPE_BATCH_IMPORT (batch_import_get_type ()) -#define BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT, BatchImport)) -#define BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT, BatchImportClass)) -#define IS_BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT)) -#define IS_BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT)) -#define BATCH_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT, BatchImportClass)) - -typedef struct _BatchImport BatchImport; -typedef struct _BatchImportClass BatchImportClass; - -#define TYPE_BATCH_IMPORT_ROLL (batch_import_roll_get_type ()) -#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll)) -#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass)) -#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL)) -#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL)) -#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass)) - -typedef struct _BatchImportRoll BatchImportRoll; -typedef struct _BatchImportRollClass BatchImportRollClass; - -#define LIBRARY_MONITOR_TYPE_VERIFY_JOB (library_monitor_verify_job_get_type ()) -#define LIBRARY_MONITOR_VERIFY_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_MONITOR_TYPE_VERIFY_JOB, LibraryMonitorVerifyJob)) -#define LIBRARY_MONITOR_VERIFY_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_MONITOR_TYPE_VERIFY_JOB, LibraryMonitorVerifyJobClass)) -#define LIBRARY_MONITOR_IS_VERIFY_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_MONITOR_TYPE_VERIFY_JOB)) -#define LIBRARY_MONITOR_IS_VERIFY_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_MONITOR_TYPE_VERIFY_JOB)) -#define LIBRARY_MONITOR_VERIFY_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_MONITOR_TYPE_VERIFY_JOB, LibraryMonitorVerifyJobClass)) - -typedef struct _LibraryMonitorVerifyJob LibraryMonitorVerifyJob; -typedef struct _LibraryMonitorVerifyJobClass LibraryMonitorVerifyJobClass; -enum { - LIBRARY_MONITOR_0_PROPERTY, - LIBRARY_MONITOR_NUM_PROPERTIES -}; -static GParamSpec* library_monitor_properties[LIBRARY_MONITOR_NUM_PROPERTIES]; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; - -#define TYPE_TIMED_QUEUE (timed_queue_get_type ()) -#define TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TIMED_QUEUE, TimedQueue)) -#define TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TIMED_QUEUE, TimedQueueClass)) -#define IS_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TIMED_QUEUE)) -#define IS_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TIMED_QUEUE)) -#define TIMED_QUEUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TIMED_QUEUE, TimedQueueClass)) - -typedef struct _TimedQueue TimedQueue; -typedef struct _TimedQueueClass TimedQueueClass; - -#define TYPE_HASH_TIMED_QUEUE (hash_timed_queue_get_type ()) -#define HASH_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HASH_TIMED_QUEUE, HashTimedQueue)) -#define HASH_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HASH_TIMED_QUEUE, HashTimedQueueClass)) -#define IS_HASH_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HASH_TIMED_QUEUE)) -#define IS_HASH_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HASH_TIMED_QUEUE)) -#define HASH_TIMED_QUEUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HASH_TIMED_QUEUE, HashTimedQueueClass)) - -typedef struct _HashTimedQueue HashTimedQueue; -typedef struct _HashTimedQueueClass HashTimedQueueClass; -#define _workers_unref0(var) ((var == NULL) ? NULL : (var = (workers_unref (var), NULL))) -#define _batch_import_roll_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_roll_unref (var), NULL))) - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) - -#define MEDIA_MONITOR_TYPE_DISCOVERED_FILE (media_monitor_discovered_file_get_type ()) - -#define TYPE_TOMBSTONE_SOURCE_COLLECTION (tombstone_source_collection_get_type ()) -#define TOMBSTONE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollection)) -#define TOMBSTONE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollectionClass)) -#define IS_TOMBSTONE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION)) -#define IS_TOMBSTONE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE_SOURCE_COLLECTION)) -#define TOMBSTONE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollectionClass)) - -typedef struct _TombstoneSourceCollection TombstoneSourceCollection; -typedef struct _TombstoneSourceCollectionClass TombstoneSourceCollectionClass; - -#define TYPE_BACKGROUND_JOB (background_job_get_type ()) -#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob)) -#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass)) -#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB)) -#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB)) -#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass)) - -typedef struct _BackgroundJob BackgroundJob; -typedef struct _BackgroundJobClass BackgroundJobClass; - -#define LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB (library_monitor_find_move_job_get_type ()) -#define LIBRARY_MONITOR_FIND_MOVE_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB, LibraryMonitorFindMoveJob)) -#define LIBRARY_MONITOR_FIND_MOVE_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB, LibraryMonitorFindMoveJobClass)) -#define LIBRARY_MONITOR_IS_FIND_MOVE_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB)) -#define LIBRARY_MONITOR_IS_FIND_MOVE_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB)) -#define LIBRARY_MONITOR_FIND_MOVE_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB, LibraryMonitorFindMoveJobClass)) - -typedef struct _LibraryMonitorFindMoveJob LibraryMonitorFindMoveJob; -typedef struct _LibraryMonitorFindMoveJobClass LibraryMonitorFindMoveJobClass; -#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL))) -typedef struct _LibraryMonitorAsyncDiscoveryCompletedData LibraryMonitorAsyncDiscoveryCompletedData; -typedef struct _BackgroundJobPrivate BackgroundJobPrivate; - -#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ()) -typedef struct _LibraryMonitorFindMoveJobPrivate LibraryMonitorFindMoveJobPrivate; - -#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ()) -#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)) -#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) -#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK)) -#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK)) -#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) - -typedef struct _SourceHoldingTank SourceHoldingTank; -typedef struct _SourceHoldingTankClass SourceHoldingTankClass; - -#define TYPE_DATABASE_SOURCE_HOLDING_TANK (database_source_holding_tank_get_type ()) -#define DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank)) -#define DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass)) -#define IS_DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK)) -#define IS_DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK)) -#define DATABASE_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass)) - -typedef struct _DatabaseSourceHoldingTank DatabaseSourceHoldingTank; -typedef struct _DatabaseSourceHoldingTankClass DatabaseSourceHoldingTankClass; - -#define TYPE_MEDIA_SOURCE_HOLDING_TANK (media_source_holding_tank_get_type ()) -#define MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank)) -#define MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass)) -#define IS_MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK)) -#define IS_MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK)) -#define MEDIA_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass)) - -typedef struct _MediaSourceHoldingTank MediaSourceHoldingTank; -typedef struct _MediaSourceHoldingTankClass MediaSourceHoldingTankClass; -#define _source_holding_tank_unref0(var) ((var == NULL) ? NULL : (var = (source_holding_tank_unref (var), NULL))) -#define _library_monitor_verify_job_unref0(var) ((var == NULL) ? NULL : (var = (library_monitor_verify_job_unref (var), NULL))) -typedef struct _LibraryMonitorVerifyJobPrivate LibraryMonitorVerifyJobPrivate; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -typedef struct _LibraryMonitorVerifyMonitorableData LibraryMonitorVerifyMonitorableData; - -#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ()) -#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob)) -#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass)) -#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB)) -#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB)) -#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass)) - -typedef struct _BatchImportJob BatchImportJob; -typedef struct _BatchImportJobClass BatchImportJobClass; - -#define TYPE_FILE_IMPORT_JOB (file_import_job_get_type ()) -#define FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILE_IMPORT_JOB, FileImportJob)) -#define FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILE_IMPORT_JOB, FileImportJobClass)) -#define IS_FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILE_IMPORT_JOB)) -#define IS_FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILE_IMPORT_JOB)) -#define FILE_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILE_IMPORT_JOB, FileImportJobClass)) - -typedef struct _FileImportJob FileImportJob; -typedef struct _FileImportJobClass FileImportJobClass; -#define _batch_import_job_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_job_unref (var), NULL))) - -#define TYPE_IMPORT_MANIFEST (import_manifest_get_type ()) -#define IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_MANIFEST, ImportManifest)) -#define IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_MANIFEST, ImportManifestClass)) -#define IS_IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_MANIFEST)) -#define IS_IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_MANIFEST)) -#define IMPORT_MANIFEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_MANIFEST, ImportManifestClass)) - -typedef struct _ImportManifest ImportManifest; -typedef struct _ImportManifestClass ImportManifestClass; -typedef struct _ImportManifestPrivate ImportManifestPrivate; - -#define TYPE_BATCH_IMPORT_RESULT (batch_import_result_get_type ()) -#define BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResult)) -#define BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass)) -#define IS_BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_RESULT)) -#define IS_BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_RESULT)) -#define BATCH_IMPORT_RESULT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass)) - -typedef struct _BatchImportResult BatchImportResult; -typedef struct _BatchImportResultClass BatchImportResultClass; -typedef struct _BatchImportResultPrivate BatchImportResultPrivate; - -#define TYPE_IMPORT_RESULT (import_result_get_type ()) - -#define TYPE_DUPLICATED_FILE (duplicated_file_get_type ()) -#define DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATED_FILE, DuplicatedFile)) -#define DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATED_FILE, DuplicatedFileClass)) -#define IS_DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATED_FILE)) -#define IS_DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATED_FILE)) -#define DUPLICATED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATED_FILE, DuplicatedFileClass)) - -typedef struct _DuplicatedFile DuplicatedFile; -typedef struct _DuplicatedFileClass DuplicatedFileClass; -#define _batch_import_result_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_result_unref (var), NULL))) - -#define TYPE_TOMBSTONED_FILE (tombstoned_file_get_type ()) -#define TOMBSTONED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONED_FILE, TombstonedFile)) -#define TOMBSTONED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONED_FILE, TombstonedFileClass)) -#define IS_TOMBSTONED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONED_FILE)) -#define IS_TOMBSTONED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONED_FILE)) -#define TOMBSTONED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONED_FILE, TombstonedFileClass)) - -typedef struct _TombstonedFile TombstonedFile; -typedef struct _TombstonedFileClass TombstonedFileClass; -#define _tombstoned_file_unref0(var) ((var == NULL) ? NULL : (var = (tombstoned_file_unref (var), NULL))) - -#define TOMBSTONE_TYPE_REASON (tombstone_reason_get_type ()) - -#define LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB (library_monitor_runtime_find_move_job_get_type ()) -#define LIBRARY_MONITOR_RUNTIME_FIND_MOVE_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB, LibraryMonitorRuntimeFindMoveJob)) -#define LIBRARY_MONITOR_RUNTIME_FIND_MOVE_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB, LibraryMonitorRuntimeFindMoveJobClass)) -#define LIBRARY_MONITOR_IS_RUNTIME_FIND_MOVE_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB)) -#define LIBRARY_MONITOR_IS_RUNTIME_FIND_MOVE_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB)) -#define LIBRARY_MONITOR_RUNTIME_FIND_MOVE_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB, LibraryMonitorRuntimeFindMoveJobClass)) - -typedef struct _LibraryMonitorRuntimeFindMoveJob LibraryMonitorRuntimeFindMoveJob; -typedef struct _LibraryMonitorRuntimeFindMoveJobClass LibraryMonitorRuntimeFindMoveJobClass; -typedef struct _LibraryMonitorRuntimeFindMoveJobPrivate LibraryMonitorRuntimeFindMoveJobPrivate; - -#define TYPE_TOMBSTONE (tombstone_get_type ()) -#define TOMBSTONE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE, Tombstone)) -#define TOMBSTONE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE, TombstoneClass)) -#define IS_TOMBSTONE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE)) -#define IS_TOMBSTONE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE)) -#define TOMBSTONE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE, TombstoneClass)) - -typedef struct _Tombstone Tombstone; -typedef struct _TombstoneClass TombstoneClass; - -#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ()) -#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)) -#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) -#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE)) -#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE)) -#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) - -typedef struct _AbstractSemaphore AbstractSemaphore; -typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass; -typedef struct _LibraryMonitorParamSpecVerifyJob LibraryMonitorParamSpecVerifyJob; -enum { - LIBRARY_MONITOR_AUTO_UPDATE_PROGRESS_SIGNAL, - LIBRARY_MONITOR_AUTO_IMPORT_PREPARING_SIGNAL, - LIBRARY_MONITOR_AUTO_IMPORT_PROGRESS_SIGNAL, - LIBRARY_MONITOR_NUM_SIGNALS -}; -static guint library_monitor_signals[LIBRARY_MONITOR_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _LibraryMonitorPool { - GTypeInstance parent_instance; - volatile int ref_count; - LibraryMonitorPoolPrivate * priv; -}; - -struct _LibraryMonitorPoolClass { - GTypeClass parent_class; - void (*finalize) (LibraryMonitorPool *self); -}; - -struct _LibraryMonitorPoolPrivate { - LibraryMonitor* monitor; - guint timer_id; -}; - -struct _ParamSpecLibraryMonitorPool { - GParamSpec parent_instance; -}; - -struct _DirectoryMonitor { - GObject parent_instance; - DirectoryMonitorPrivate * priv; -}; - -struct _DirectoryMonitorClass { - GObjectClass parent_class; - void (*notify_root_deleted) (DirectoryMonitor* self, GFile* root); - void (*notify_root_moved) (DirectoryMonitor* self, GFile* old_root, GFile* new_root, GFileInfo* new_root_info); - void (*notify_discovery_started) (DirectoryMonitor* self); - void (*internal_notify_file_discovered) (DirectoryMonitor* self, GFile* file, GFileInfo* info); - void (*notify_file_discovered) (DirectoryMonitor* self, GFile* file, GFileInfo* info); - void (*internal_notify_directory_discovered) (DirectoryMonitor* self, GFile* dir, GFileInfo* info); - void (*notify_directory_discovered) (DirectoryMonitor* self, GFile* dir, GFileInfo* info); - void (*notify_discovery_failed) (DirectoryMonitor* self, const gchar* reason); - void (*notify_discovery_completed) (DirectoryMonitor* self); - void (*notify_file_created) (DirectoryMonitor* self, GFile* file, GFileInfo* info); - void (*notify_file_moved) (DirectoryMonitor* self, GFile* old_file, GFile* new_file, GFileInfo* new_file_info); - void (*notify_file_altered) (DirectoryMonitor* self, GFile* file); - void (*notify_file_alteration_completed) (DirectoryMonitor* self, GFile* file, GFileInfo* info); - void (*notify_file_attributes_altered) (DirectoryMonitor* self, GFile* file); - void (*notify_file_deleted) (DirectoryMonitor* self, GFile* file); - void (*notify_directory_created) (DirectoryMonitor* self, GFile* dir, GFileInfo* info); - void (*notify_directory_moved) (DirectoryMonitor* self, GFile* old_dir, GFile* new_dir, GFileInfo* new_dir_info); - void (*notify_directory_altered) (DirectoryMonitor* self, GFile* dir); - void (*notify_directory_alteration_completed) (DirectoryMonitor* self, GFile* dir, GFileInfo* info); - void (*notify_directory_attributes_altered) (DirectoryMonitor* self, GFile* dir); - void (*notify_directory_deleted) (DirectoryMonitor* self, GFile* dir); - void (*notify_closed) (DirectoryMonitor* self); - void (*close) (DirectoryMonitor* self); - void (*root_moved) (DirectoryMonitor* self, GFile* old_root, GFile* new_root, GFileInfo* new_root_info); - void (*root_deleted) (DirectoryMonitor* self, GFile* root); - void (*discovery_started) (DirectoryMonitor* self); - void (*file_discovered) (DirectoryMonitor* self, GFile* file, GFileInfo* info); - void (*directory_discovered) (DirectoryMonitor* self, GFile* file, GFileInfo* info); - void (*discovery_failed) (DirectoryMonitor* self, const gchar* reason); - void (*discovery_completed) (DirectoryMonitor* self); - void (*file_created) (DirectoryMonitor* self, GFile* file, GFileInfo* info); - void (*file_moved) (DirectoryMonitor* self, GFile* old_file, GFile* new_file, GFileInfo* new_file_info); - void (*file_altered) (DirectoryMonitor* self, GFile* file); - void (*file_alteration_completed) (DirectoryMonitor* self, GFile* file, GFileInfo* info); - void (*file_attributes_altered) (DirectoryMonitor* self, GFile* file); - void (*file_deleted) (DirectoryMonitor* self, GFile* file); - void (*directory_created) (DirectoryMonitor* self, GFile* dir, GFileInfo* info); - void (*directory_moved) (DirectoryMonitor* self, GFile* old_dir, GFile* new_dir, GFileInfo* new_dir_info); - void (*directory_altered) (DirectoryMonitor* self, GFile* dir); - void (*directory_alteration_completed) (DirectoryMonitor* self, GFile* dir, GFileInfo* info); - void (*directory_attributes_altered) (DirectoryMonitor* self, GFile* dir); - void (*directory_deleted) (DirectoryMonitor* self, GFile* dir); - void (*closed) (DirectoryMonitor* self); -}; - -struct _LibraryMonitor { - DirectoryMonitor parent_instance; - LibraryMonitorPrivate * priv; -}; - -struct _LibraryMonitorClass { - DirectoryMonitorClass parent_class; -}; - -struct _MonitorableIface { - GTypeInterface parent_iface; - gboolean (*is_offline) (Monitorable* self); - void (*mark_online) (Monitorable* self); - void (*mark_offline) (Monitorable* self); - void (*set_master_file) (Monitorable* self, GFile* file); - void (*set_master_timestamp) (Monitorable* self, GFileInfo* info); -}; - -struct _LibraryMonitorPrivate { - Workers* workers; - GCancellable* cancellable; - gboolean auto_import; - GeeHashSet* unknown_files; - GeeList* monitors; - GeeHashMap* discovered; - GeeHashSet* import_queue; - GeeHashSet* pending_imports; - GeeArrayList* batch_import_queue; - BatchImportRoll* current_import_roll; - time_t last_import_roll_use; - BatchImport* current_batch_import; - gint checksums_completed; - gint checksums_total; - guint import_queue_timer_id; - GeeQueue* verify_queue; - gint outstanding_verify_jobs; - gint completed_monitorable_verifies; - gint total_monitorable_verifies; -}; - -typedef void (*DequeuedCallback) (gconstpointer item, void* user_data); -typedef enum { - MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED, - MEDIA_MONITOR_DISCOVERED_FILE_IGNORE, - MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN -} MediaMonitorDiscoveredFile; - -struct _LibraryMonitorAsyncDiscoveryCompletedData { - int _state_; - GObject* _source_object_; - GAsyncResult* _res_; - GTask* _async_result; - GAsyncReadyCallback _callback_; - gboolean _task_complete_; - LibraryMonitor* self; - GeeHashSet* _tmp0_; - gint _tmp1_; - gint _tmp2_; - GeeArrayList* all_candidates; - GeeArrayList* _tmp3_; - GeeArrayList* adopted; - GeeArrayList* _tmp4_; - GeeIterator* _file_it; - GeeHashSet* _tmp5_; - GeeIterator* _tmp6_; - GeeIterator* _tmp7_; - GFile* file; - GeeIterator* _tmp8_; - gpointer _tmp9_; - GFileInfo* info; - GFile* _tmp10_; - GFileInfo* _tmp11_; - GFileInfo* _tmp12_; - GeeArrayList* _tmp13_; - GeeCollection* candidates; - gboolean associated; - GeeList* _monitor_list; - GeeList* _tmp14_; - GeeList* _tmp15_; - gint _monitor_size; - GeeList* _tmp16_; - gint _tmp17_; - gint _tmp18_; - gint _monitor_index; - gint _tmp19_; - gint _tmp20_; - gint _tmp21_; - MediaMonitor* monitor; - GeeList* _tmp22_; - gint _tmp23_; - gpointer _tmp24_; - MediaMonitorDiscoveredFile _result_; - MediaMonitor* _tmp25_; - GFile* _tmp26_; - GFileInfo* _tmp27_; - MediaMonitorDiscoveredFile _tmp28_; - GeeCollection* _tmp29_; - gboolean _tmp30_; - MediaMonitorDiscoveredFile _tmp31_; - MediaMonitorDiscoveredFile _tmp32_; - GeeCollection* _tmp33_; - GeeArrayList* _tmp34_; - GeeCollection* _tmp35_; - gboolean _tmp36_; - GeeArrayList* _tmp37_; - GFile* _tmp38_; - GeeArrayList* _tmp39_; - gint _tmp40_; - gint _tmp41_; - GeeArrayList* job_candidates; - GeeArrayList* _tmp42_; - GeeArrayList* _tmp43_; - GeeArrayList* _tmp44_; - gint _tmp45_; - Workers* _tmp46_; - GFile* _tmp47_; - GeeArrayList* _tmp48_; - LibraryMonitorFindMoveJob* _tmp49_; - LibraryMonitorFindMoveJob* _tmp50_; - GeeHashSet* _tmp51_; - GeeArrayList* _tmp52_; - gint _tmp53_; - gint _tmp54_; - gchar* _tmp55_; - gchar* _tmp56_; - gint _tmp57_; - gint _tmp58_; -}; - -typedef enum { - BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100, - BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75, - BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50, - BACKGROUND_JOB_JOB_PRIORITY_LOW = 25, - BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0 -} BackgroundJobJobPriority; - -struct _BackgroundJob { - GTypeInstance parent_instance; - volatile int ref_count; - BackgroundJobPrivate * priv; -}; - -struct _BackgroundJobClass { - GTypeClass parent_class; - void (*finalize) (BackgroundJob *self); - void (*execute) (BackgroundJob* self); - BackgroundJobJobPriority (*get_priority) (BackgroundJob* self); -}; - -struct _LibraryMonitorFindMoveJob { - BackgroundJob parent_instance; - LibraryMonitorFindMoveJobPrivate * priv; - GFile* file; - GeeCollection* candidates; - Monitorable* match; - GeeArrayList* losers; - GError* err; -}; - -struct _LibraryMonitorFindMoveJobClass { - BackgroundJobClass parent_class; -}; - -struct _LibraryMonitorVerifyJob { - GTypeInstance parent_instance; - volatile int ref_count; - LibraryMonitorVerifyJobPrivate * priv; - Monitorable* monitorable; - MediaMonitor* monitor; -}; - -struct _LibraryMonitorVerifyJobClass { - GTypeClass parent_class; - void (*finalize) (LibraryMonitorVerifyJob *self); -}; - -struct _LibraryMonitorVerifyMonitorableData { - int _state_; - GObject* _source_object_; - GAsyncResult* _res_; - GTask* _async_result; - GAsyncReadyCallback _callback_; - gboolean _task_complete_; - LibraryMonitor* self; - Monitorable* monitorable; - MediaMonitor* monitor; - GFile** files; - GFile** _tmp0_; - gint files_length1; - gint _files_size_; - GFile** _tmp1_; - gint _tmp1__length1; - GFile* _tmp2_; - GFile* _tmp3_; - GFile** aux_files; - gint _tmp4_; - GFile** _tmp5_; - gint aux_files_length1; - gint _aux_files_size_; - GFile** _tmp6_; - gint _tmp6__length1; - GFile** _tmp7_; - gint _tmp7__length1; - GFile** aux_file_collection; - gint aux_file_collection_length1; - gint _aux_file_collection_size_; - gint aux_file_it; - GFile* _tmp8_; - GFile* aux_file; - GFile** _tmp9_; - gint _tmp9__length1; - GFile* _tmp10_; - GFile* _tmp11_; - gint ctr; - gboolean _tmp12_; - gint _tmp13_; - gint _tmp14_; - GFile** _tmp15_; - gint _tmp15__length1; - GFile* file; - GFile** _tmp16_; - gint _tmp16__length1; - gint _tmp17_; - GFile* _tmp18_; - GFile* _tmp19_; - GFileInfo* info; - GFile* _tmp20_; - GFileInfo* _tmp21_; - GFileInfo* _tmp22_; - GFileInfo* _tmp23_; - GFile* _tmp24_; - GCancellable* _tmp25_; - GFileInfo* _tmp26_; - GFileInfo* _tmp27_; - GError* err; - gint _tmp28_; - gboolean _tmp29_; - GFileInfo* _tmp30_; - gboolean _tmp31_; - GFileInfo* _tmp32_; - GFile* _tmp33_; - GFileInfo* _tmp34_; - gint _tmp35_; - gint _tmp36_; - gint _tmp37_; - gint _tmp38_; - gint _tmp39_; - GError * _inner_error_; -}; - -typedef void (*BatchImportImportReporter) (ImportManifest* manifest, BatchImportRoll* import_roll, void* user_data); -struct _ImportManifest { - GTypeInstance parent_instance; - volatile int ref_count; - ImportManifestPrivate * priv; - GeeList* imported; - GeeList* success; - GeeList* camera_failed; - GeeList* failed; - GeeList* write_failed; - GeeList* skipped_photos; - GeeList* skipped_files; - GeeList* aborted; - GeeList* already_imported; - GeeList* corrupt_files; - GeeList* all; - GTimer* timer; -}; - -struct _ImportManifestClass { - GTypeClass parent_class; - void (*finalize) (ImportManifest *self); -}; - -typedef enum { - IMPORT_RESULT_SUCCESS, - IMPORT_RESULT_FILE_ERROR, - IMPORT_RESULT_DECODE_ERROR, - IMPORT_RESULT_DATABASE_ERROR, - IMPORT_RESULT_USER_ABORT, - IMPORT_RESULT_NOT_A_FILE, - IMPORT_RESULT_PHOTO_EXISTS, - IMPORT_RESULT_UNSUPPORTED_FORMAT, - IMPORT_RESULT_NOT_AN_IMAGE, - IMPORT_RESULT_DISK_FAILURE, - IMPORT_RESULT_DISK_FULL, - IMPORT_RESULT_CAMERA_ERROR, - IMPORT_RESULT_FILE_WRITE_ERROR, - IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE -} ImportResult; - -struct _BatchImportResult { - GTypeInstance parent_instance; - volatile int ref_count; - BatchImportResultPrivate * priv; - BatchImportJob* job; - GFile* file; - gchar* src_identifier; - gchar* dest_identifier; - ImportResult result; - gchar* errmsg; - DuplicatedFile* duplicate_of; -}; - -struct _BatchImportResultClass { - GTypeClass parent_class; - void (*finalize) (BatchImportResult *self); -}; - -typedef enum { - TOMBSTONE_REASON_REMOVED_BY_USER = 0, - TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE = 1 -} TombstoneReason; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -struct _LibraryMonitorRuntimeFindMoveJob { - BackgroundJob parent_instance; - LibraryMonitorRuntimeFindMoveJobPrivate * priv; - GFile* file; - GeeCollection* candidates; - Monitorable* match; - GError* err; -}; - -struct _LibraryMonitorRuntimeFindMoveJobClass { - BackgroundJobClass parent_class; -}; - -typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data); -typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data); -struct _LibraryMonitorParamSpecVerifyJob { - GParamSpec parent_instance; -}; - - -static gpointer library_monitor_pool_parent_class = NULL; -static LibraryMonitorPool* library_monitor_pool_instance; -static LibraryMonitorPool* library_monitor_pool_instance = NULL; -static gpointer library_monitor_parent_class = NULL; -static GeeHashSet* library_monitor_blacklist; -static GRecMutex __lock_library_monitor_blacklist = {0}; -static GeeHashSet* library_monitor_blacklist = NULL; -static HashTimedQueue* library_monitor_to_unblacklist; -static HashTimedQueue* library_monitor_to_unblacklist = NULL; -extern TombstoneSourceCollection* tombstone_global; -extern gboolean commandline_options_no_runtime_monitoring; -static gpointer library_monitor_find_move_job_parent_class = NULL; -static gpointer library_monitor_runtime_find_move_job_parent_class = NULL; -static gpointer library_monitor_verify_job_parent_class = NULL; - -gpointer library_monitor_pool_ref (gpointer instance); -void library_monitor_pool_unref (gpointer instance); -GParamSpec* param_spec_library_monitor_pool (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_library_monitor_pool (GValue* value, - gpointer v_object); -void value_take_library_monitor_pool (GValue* value, - gpointer v_object); -gpointer value_get_library_monitor_pool (const GValue* value); -GType library_monitor_pool_get_type (void) G_GNUC_CONST; -GType directory_monitor_get_type (void) G_GNUC_CONST; -GType library_monitor_get_type (void) G_GNUC_CONST; -#define LIBRARY_MONITOR_POOL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolPrivate)) -static LibraryMonitorPool* library_monitor_pool_new (void); -static LibraryMonitorPool* library_monitor_pool_construct (GType object_type); -void library_monitor_pool_init (void); -void library_monitor_pool_terminate (void); -static void library_monitor_pool_close (LibraryMonitorPool* self); -LibraryMonitorPool* library_monitor_pool_get_instance (void); -LibraryMonitor* library_monitor_pool_get_monitor (LibraryMonitorPool* self); -void library_monitor_pool_replace (LibraryMonitorPool* self, - LibraryMonitor* replacement, - gint start_msec_delay); -static gboolean library_monitor_pool_on_start_monitor (LibraryMonitorPool* self); -static gboolean _library_monitor_pool_on_start_monitor_gsource_func (gpointer self); -void directory_monitor_close (DirectoryMonitor* self); -void directory_monitor_start_discovery (DirectoryMonitor* self); -static void library_monitor_pool_finalize (LibraryMonitorPool * obj); -gpointer workers_ref (gpointer instance); -void workers_unref (gpointer instance); -GParamSpec* param_spec_workers (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_workers (GValue* value, - gpointer v_object); -void value_take_workers (GValue* value, - gpointer v_object); -gpointer value_get_workers (const GValue* value); -GType workers_get_type (void) G_GNUC_CONST; -GType media_monitor_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType monitorable_get_type (void) G_GNUC_CONST; -GType batch_import_get_type (void) G_GNUC_CONST; -gpointer batch_import_roll_ref (gpointer instance); -void batch_import_roll_unref (gpointer instance); -GParamSpec* param_spec_batch_import_roll (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_roll (GValue* value, - gpointer v_object); -void value_take_batch_import_roll (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_roll (const GValue* value); -GType batch_import_roll_get_type (void) G_GNUC_CONST; -static gpointer library_monitor_verify_job_ref (gpointer instance); -static void library_monitor_verify_job_unref (gpointer instance); -static GParamSpec* library_monitor_param_spec_verify_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void library_monitor_value_set_verify_job (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void library_monitor_value_take_verify_job (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer library_monitor_value_get_verify_job (const GValue* value) G_GNUC_UNUSED; -static GType library_monitor_verify_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define LIBRARY_MONITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LIBRARY_MONITOR, LibraryMonitorPrivate)) -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -static void library_monitor_on_config_changed (LibraryMonitor* self); -static void _library_monitor_on_config_changed_configuration_facade_auto_import_from_library_changed (ConfigurationFacade* _sender, - gpointer self); -guint file_hash (GFile* file); -static guint _file_hash_gee_hash_data_func (gconstpointer v, - gpointer self); -gboolean file_equal (GFile* a, - GFile* b); -static gboolean _file_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -gpointer timed_queue_ref (gpointer instance); -void timed_queue_unref (gpointer instance); -GParamSpec* param_spec_timed_queue (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_timed_queue (GValue* value, - gpointer v_object); -void value_take_timed_queue (GValue* value, - gpointer v_object); -gpointer value_get_timed_queue (const GValue* value); -GType timed_queue_get_type (void) G_GNUC_CONST; -GType hash_timed_queue_get_type (void) G_GNUC_CONST; -#define LIBRARY_MONITOR_MIN_BLACKLIST_DURATION_MSEC (5 * 1000) -static void library_monitor_on_unblacklist_file (GFile* file); -static void _library_monitor_on_unblacklist_file_dequeued_callback (gconstpointer item, - gpointer self); -HashTimedQueue* hash_timed_queue_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - guint hold_msec, - DequeuedCallback callback, - void* callback_target, - GeeHashDataFunc hash_func, - void* hash_func_target, - GDestroyNotify hash_func_target_destroy_notify, - GeeEqualDataFunc equal_func, - void* equal_func_target, - GDestroyNotify equal_func_target_destroy_notify, - gint priority); -HashTimedQueue* hash_timed_queue_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - guint hold_msec, - DequeuedCallback callback, - void* callback_target, - GeeHashDataFunc hash_func, - void* hash_func_target, - GDestroyNotify hash_func_target_destroy_notify, - GeeEqualDataFunc equal_func, - void* equal_func_target, - GDestroyNotify equal_func_target_destroy_notify, - gint priority); -guint workers_thread_per_cpu_minus_one (void); -Workers* workers_new (guint max_threads, - gboolean exclusive); -Workers* workers_construct (GType object_type, - guint max_threads, - gboolean exclusive); -#define LIBRARY_MONITOR_FLUSH_IMPORT_QUEUE_SEC 3 -#define LIBRARY_MONITOR_IMPORT_ROLL_QUIET_SEC (5 * 60) -#define LIBRARY_MONITOR_MAX_VERIFY_EXISTING_MEDIA_JOBS 5 -LibraryMonitor* library_monitor_new (GFile* root, - gboolean recurse, - gboolean monitoring); -LibraryMonitor* library_monitor_construct (GType object_type, - GFile* root, - gboolean recurse, - gboolean monitoring); -DirectoryMonitor* directory_monitor_new (GFile* root, - gboolean recurse, - gboolean monitoring); -DirectoryMonitor* directory_monitor_construct (GType object_type, - GFile* root, - gboolean recurse, - gboolean monitoring); -gboolean configuration_facade_get_auto_import_from_library (ConfigurationFacade* self); -static gboolean library_monitor_on_flush_import_queue (LibraryMonitor* self); -static gboolean _library_monitor_on_flush_import_queue_gsource_func (gpointer self); -static void library_monitor_real_close (DirectoryMonitor* base); -void media_monitor_close (MediaMonitor* self); -static void library_monitor_add_to_discovered_list (LibraryMonitor* self, - MediaMonitor* monitor, - Monitorable* monitorable); -static MediaMonitor* library_monitor_get_monitor_for_monitorable (LibraryMonitor* self, - Monitorable* monitorable); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -MediaSourceCollection* media_monitor_get_media_source_collection (MediaMonitor* self); -gboolean source_collection_holds_type_of_source (SourceCollection* self, - DataSource* source); -gchar* data_object_to_string (DataObject* self); -static void library_monitor_real_discovery_started (DirectoryMonitor* base); -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self); -MediaMonitor* media_source_collection_create_media_monitor (MediaSourceCollection* self, - Workers* workers, - GCancellable* cancellable); -void media_monitor_notify_discovery_started (MediaMonitor* self); -static void library_monitor_real_file_discovered (DirectoryMonitor* base, - GFile* file, - GFileInfo* info); -GType media_monitor_discovered_file_get_type (void) G_GNUC_CONST; -MediaMonitorDiscoveredFile media_monitor_notify_file_discovered (MediaMonitor* self, - GFile* file, - GFileInfo* info, - Monitorable* * monitorable); -GType tombstone_source_collection_get_type (void) G_GNUC_CONST; -gboolean tombstone_source_collection_matches (TombstoneSourceCollection* self, - GFile* file); -static gboolean library_monitor_is_supported_filetype (LibraryMonitor* self, - GFile* file); -static void library_monitor_real_discovery_completed (DirectoryMonitor* base); -static void library_monitor_async_discovery_completed (LibraryMonitor* self, - GAsyncReadyCallback _callback_, - gpointer _user_data_); -static void library_monitor_async_discovery_completed_finish (LibraryMonitor* self, - GAsyncResult* _res_); -static void library_monitor_async_discovery_completed_data_free (gpointer _data); -static void library_monitor_async_discovery_completed_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data); -static gboolean library_monitor_async_discovery_completed_co (LibraryMonitorAsyncDiscoveryCompletedData* _data_); -static void library_monitor_discovery_stage_completed (LibraryMonitor* self); -GFileInfo* directory_monitor_get_file_info (DirectoryMonitor* self, - GFile* file); -GeeCollection* media_monitor_candidates_for_unknown_file (MediaMonitor* self, - GFile* file, - GFileInfo* info, - MediaMonitorDiscoveredFile* _result_); -gpointer background_job_ref (gpointer instance); -void background_job_unref (gpointer instance); -GParamSpec* param_spec_background_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_background_job (GValue* value, - gpointer v_object); -void value_take_background_job (GValue* value, - gpointer v_object); -gpointer value_get_background_job (const GValue* value); -GType background_job_get_type (void) G_GNUC_CONST; -void workers_enqueue (Workers* self, - BackgroundJob* job); -static LibraryMonitorFindMoveJob* library_monitor_find_move_job_new (LibraryMonitor* owner, - GFile* file, - GeeCollection* candidates); -static LibraryMonitorFindMoveJob* library_monitor_find_move_job_construct (GType object_type, - LibraryMonitor* owner, - GFile* file, - GeeCollection* candidates); -static GType library_monitor_find_move_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static gboolean _library_monitor_async_discovery_completed_co_gsource_func (gpointer self); -void directory_monitor_mdbg (const gchar* msg); -static void library_monitor_report_checksum_job_completed (LibraryMonitor* self); -static void library_monitor_on_find_move_completed (LibraryMonitor* self, - BackgroundJob* j); -GType background_job_job_priority_get_type (void) G_GNUC_CONST; -void media_monitor_update_master_file (MediaMonitor* self, - Monitorable* monitorable, - GFile* file); -static void library_monitor_on_find_move_cancelled (LibraryMonitor* self, - BackgroundJob* j); -static void library_monitor_enqueue_verify_monitorable (LibraryMonitor* self, - Monitorable* monitorable, - MediaMonitor* monitor); -GeeCollection* data_collection_get_all (DataCollection* self); -gpointer source_holding_tank_ref (gpointer instance); -void source_holding_tank_unref (gpointer instance); -GParamSpec* param_spec_source_holding_tank (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_holding_tank (GValue* value, - gpointer v_object); -void value_take_source_holding_tank (GValue* value, - gpointer v_object); -gpointer value_get_source_holding_tank (const GValue* value); -GType source_holding_tank_get_type (void) G_GNUC_CONST; -GType database_source_holding_tank_get_type (void) G_GNUC_CONST; -GType media_source_holding_tank_get_type (void) G_GNUC_CONST; -MediaSourceHoldingTank* media_source_collection_get_offline_bin (MediaSourceCollection* self); -GeeCollection* source_holding_tank_get_all (SourceHoldingTank* self); -static void library_monitor_enqueue_import_many (LibraryMonitor* self, - GeeCollection* files); -void tombstone_source_collection_launch_scan (TombstoneSourceCollection* self, - DirectoryMonitor* monitor, - GCancellable* cancellable); -static LibraryMonitorVerifyJob* library_monitor_verify_job_new (Monitorable* monitorable, - MediaMonitor* monitor); -static LibraryMonitorVerifyJob* library_monitor_verify_job_construct (GType object_type, - Monitorable* monitorable, - MediaMonitor* monitor); -static void library_monitor_execute_next_verify_job (LibraryMonitor* self); -static void library_monitor_verify_monitorable (LibraryMonitor* self, - Monitorable* monitorable, - MediaMonitor* monitor, - GAsyncReadyCallback _callback_, - gpointer _user_data_); -static void library_monitor_verify_monitorable_finish (LibraryMonitor* self, - GAsyncResult* _res_); -static void library_monitor_verify_monitorable_data_free (gpointer _data); -static void library_monitor_verify_monitorable_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data); -static gboolean library_monitor_verify_monitorable_co (LibraryMonitorVerifyMonitorableData* _data_); -GFile* media_monitor_get_master_file (MediaMonitor* self, - Monitorable* monitorable); -GFile** media_monitor_get_auxilliary_backing_files (MediaMonitor* self, - Monitorable* monitorable, - int* result_length1); -static void _vala_array_add130 (GFile** * array, - int* length, - int* size, - GFile* value); -#define UTIL_FILE_ATTRIBUTES "standard::*,time::*,id::file,id::filesystem,etag::value" -#define DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES UTIL_FILE_ATTRIBUTES -#define DIRECTORY_MONITOR_FILE_INFO_FLAGS G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS -#define DIRECTORY_MONITOR_DEFAULT_PRIORITY G_PRIORITY_LOW -static void library_monitor_verify_monitorable_ready (GObject* source_object, - GAsyncResult* _res_, - gpointer _user_data_); -gboolean media_monitor_is_offline (MediaMonitor* self, - Monitorable* monitorable); -void media_monitor_update_online (MediaMonitor* self, - Monitorable* monitorable); -void media_monitor_update_offline (MediaMonitor* self, - Monitorable* monitorable); -void media_monitor_update_backing_file_info (MediaMonitor* self, - Monitorable* monitorable, - GFile* file, - GFileInfo* info); -static gboolean _library_monitor_verify_monitorable_co_gsource_func (gpointer self); -static void library_monitor_import_unrepresented_files (LibraryMonitor* self); -static void library_monitor_cancel_batch_imports (LibraryMonitor* self); -static void library_monitor_enqueue_import (LibraryMonitor* self, - GFile* file); -gboolean library_monitor_is_blacklisted (GFile* file); -static void library_monitor_remove_queued_import (LibraryMonitor* self, - GFile* file); -gulong now_sec (void); -BatchImportRoll* batch_import_roll_new (void); -BatchImportRoll* batch_import_roll_construct (GType object_type); -gpointer batch_import_job_ref (gpointer instance); -void batch_import_job_unref (gpointer instance); -GParamSpec* param_spec_batch_import_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_job (GValue* value, - gpointer v_object); -void value_take_batch_import_job (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_job (const GValue* value); -GType batch_import_job_get_type (void) G_GNUC_CONST; -FileImportJob* file_import_job_new (GFile* file_or_dir, - gboolean copy_to_library, - gboolean recurse); -FileImportJob* file_import_job_construct (GType object_type, - GFile* file_or_dir, - gboolean copy_to_library, - gboolean recurse); -GType file_import_job_get_type (void) G_GNUC_CONST; -gpointer import_manifest_ref (gpointer instance); -void import_manifest_unref (gpointer instance); -GParamSpec* param_spec_import_manifest (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_import_manifest (GValue* value, - gpointer v_object); -void value_take_import_manifest (GValue* value, - gpointer v_object); -gpointer value_get_import_manifest (const GValue* value); -GType import_manifest_get_type (void) G_GNUC_CONST; -BatchImport* batch_import_new (GeeIterable* jobs, - const gchar* name, - BatchImportImportReporter reporter, - void* reporter_target, - GeeArrayList* prefailed, - GeeArrayList* pre_already_imported, - GCancellable* cancellable, - BatchImportRoll* import_roll, - ImportManifest* skip_manifest); -BatchImport* batch_import_construct (GType object_type, - GeeIterable* jobs, - const gchar* name, - BatchImportImportReporter reporter, - void* reporter_target, - GeeArrayList* prefailed, - GeeArrayList* pre_already_imported, - GCancellable* cancellable, - BatchImportRoll* import_roll, - ImportManifest* skip_manifest); -void batch_import_set_untrash_duplicates (BatchImport* self, - gboolean untrash_duplicates); -void batch_import_set_mark_duplicates_online (BatchImport* self, - gboolean mark_duplicates_online); -static void library_monitor_schedule_next_batch_import (LibraryMonitor* self); -static void library_monitor_on_import_preparing (LibraryMonitor* self); -static void _library_monitor_on_import_preparing_batch_import_preparing (BatchImport* _sender, - gpointer self); -static void library_monitor_on_import_progress (LibraryMonitor* self, - guint64 completed_bytes, - guint64 total_bytes); -static void _library_monitor_on_import_progress_batch_import_progress (BatchImport* _sender, - guint64 completed_bytes, - guint64 total_bytes, - gpointer self); -static void library_monitor_on_import_complete (LibraryMonitor* self, - BatchImport* batch_import, - ImportManifest* manifest, - BatchImportRoll* import_roll); -static void _library_monitor_on_import_complete_batch_import_import_complete (BatchImport* _sender, - ImportManifest* manifest, - BatchImportRoll* import_roll, - gpointer self); -void batch_import_schedule (BatchImport* self); -static void library_monitor_discard_current_batch_import (LibraryMonitor* self); -void batch_import_user_halt (BatchImport* self); -gpointer batch_import_result_ref (gpointer instance); -void batch_import_result_unref (gpointer instance); -GParamSpec* param_spec_batch_import_result (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_result (GValue* value, - gpointer v_object); -void value_take_batch_import_result (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_result (const GValue* value); -GType batch_import_result_get_type (void) G_GNUC_CONST; -GType import_result_get_type (void) G_GNUC_CONST; -GType duplicated_file_get_type (void) G_GNUC_CONST; -gpointer tombstoned_file_ref (gpointer instance); -void tombstoned_file_unref (gpointer instance); -GParamSpec* param_spec_tombstoned_file (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_tombstoned_file (GValue* value, - gpointer v_object); -void value_take_tombstoned_file (GValue* value, - gpointer v_object); -gpointer value_get_tombstoned_file (const GValue* value); -GType tombstoned_file_get_type (void) G_GNUC_CONST; -TombstonedFile* tombstoned_file_new (GFile* file, - gint64 filesize, - const gchar* md5); -TombstonedFile* tombstoned_file_construct (GType object_type, - GFile* file, - gint64 filesize, - const gchar* md5); -GType tombstone_reason_get_type (void) G_GNUC_CONST; -GQuark database_error_quark (void); -void tombstone_entomb_many_files (GeeCollection* files, - TombstoneReason reason, - GError** error); -void app_window_database_error (GError* err); -void library_monitor_blacklist_file (GFile* file, - const gchar* reason); -void library_monitor_unblacklist_file (GFile* file); -gboolean timed_queue_contains (TimedQueue* self, - gconstpointer item); -gboolean timed_queue_enqueue (TimedQueue* self, - gconstpointer item); -MediaSourceCollection* media_collection_registry_get_collection_for_file (MediaCollectionRegistry* self, - GFile* file); -GeeCollection* directory_monitor_get_files (DirectoryMonitor* self); -gboolean media_monitor_is_file_represented (MediaMonitor* self, - GFile* file); -static void library_monitor_runtime_unknown_file_discovered (LibraryMonitor* self, - GFile* file); -static void library_monitor_real_notify_file_created (DirectoryMonitor* base, - GFile* file, - GFileInfo* info); -void directory_monitor_notify_file_created (DirectoryMonitor* self, - GFile* file, - GFileInfo* info); -gboolean media_monitor_notify_file_created (MediaMonitor* self, - GFile* file, - GFileInfo* info); -gchar* media_monitor_to_string (MediaMonitor* self); -const gchar* media_monitor_discovered_file_to_string (MediaMonitorDiscoveredFile self); -static LibraryMonitorRuntimeFindMoveJob* library_monitor_runtime_find_move_job_new (LibraryMonitor* owner, - GFile* file, - GeeCollection* candidates); -static LibraryMonitorRuntimeFindMoveJob* library_monitor_runtime_find_move_job_construct (GType object_type, - LibraryMonitor* owner, - GFile* file, - GeeCollection* candidates); -static GType library_monitor_runtime_find_move_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static void library_monitor_on_runtime_find_move_completed (LibraryMonitor* self, - BackgroundJob* j); -static void library_monitor_real_notify_file_moved (DirectoryMonitor* base, - GFile* old_file, - GFile* new_file, - GFileInfo* new_info); -void directory_monitor_notify_file_moved (DirectoryMonitor* self, - GFile* old_file, - GFile* new_file, - GFileInfo* new_file_info); -gboolean media_monitor_notify_file_moved (MediaMonitor* self, - GFile* old_file, - GFile* new_file, - GFileInfo* new_file_info); -static void library_monitor_real_notify_file_altered (DirectoryMonitor* base, - GFile* file); -void directory_monitor_notify_file_altered (DirectoryMonitor* self, - GFile* file); -gboolean media_monitor_notify_file_altered (MediaMonitor* self, - GFile* file); -static void library_monitor_real_notify_file_attributes_altered (DirectoryMonitor* base, - GFile* file); -void directory_monitor_notify_file_attributes_altered (DirectoryMonitor* self, - GFile* file); -gboolean media_monitor_notify_file_attributes_altered (MediaMonitor* self, - GFile* file); -static void library_monitor_real_notify_file_alteration_completed (DirectoryMonitor* base, - GFile* file, - GFileInfo* info); -void directory_monitor_notify_file_alteration_completed (DirectoryMonitor* self, - GFile* file, - GFileInfo* info); -gboolean media_monitor_notify_file_alteration_completed (MediaMonitor* self, - GFile* file, - GFileInfo* info); -static void library_monitor_real_notify_file_deleted (DirectoryMonitor* base, - GFile* file); -void directory_monitor_notify_file_deleted (DirectoryMonitor* self, - GFile* file); -gboolean media_monitor_notify_file_deleted (MediaMonitor* self, - GFile* file); -GType tombstone_get_type (void) G_GNUC_CONST; -Tombstone* tombstone_source_collection_locate (TombstoneSourceCollection* self, - GFile* file); -void tombstone_source_collection_resurrect (TombstoneSourceCollection* self, - Tombstone* tombstone); -static void g_cclosure_user_marshal_VOID__INT_INT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void g_cclosure_user_marshal_VOID__UINT64_UINT64 (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void _library_monitor_on_find_move_completed_completion_callback (BackgroundJob* job, - gpointer self); -static void _library_monitor_on_find_move_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self); -gpointer abstract_semaphore_ref (gpointer instance); -void abstract_semaphore_unref (gpointer instance); -GParamSpec* param_spec_abstract_semaphore (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_abstract_semaphore (GValue* value, - gpointer v_object); -void value_take_abstract_semaphore (GValue* value, - gpointer v_object); -gpointer value_get_abstract_semaphore (const GValue* value); -GType abstract_semaphore_get_type (void) G_GNUC_CONST; -BackgroundJob* background_job_construct (GType object_type, - GObject* owner, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target, - AbstractSemaphore* completion_semaphore); -void background_job_set_completion_priority (BackgroundJob* self, - gint priority); -static void library_monitor_find_move_job_real_execute (BackgroundJob* base); -GFile* media_source_get_master_file (MediaSource* self); -gchar* md5_file (GFile* file, - GError** error); -gchar* media_source_get_master_md5 (MediaSource* self); -static void library_monitor_find_move_job_finalize (BackgroundJob * obj); -static void _library_monitor_on_runtime_find_move_completed_completion_callback (BackgroundJob* job, - gpointer self); -static void library_monitor_runtime_find_move_job_real_execute (BackgroundJob* base); -static void library_monitor_runtime_find_move_job_finalize (BackgroundJob * obj); -static void library_monitor_verify_job_finalize (LibraryMonitorVerifyJob * obj); -static void library_monitor_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static LibraryMonitorPool* -library_monitor_pool_construct (GType object_type) -{ - LibraryMonitorPool* self = NULL; -#line 38 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = (LibraryMonitorPool*) g_type_create_instance (object_type); -#line 38 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return self; -#line 1520 "LibraryMonitor.c" -} - - -static LibraryMonitorPool* -library_monitor_pool_new (void) -{ -#line 38 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return library_monitor_pool_construct (TYPE_LIBRARY_MONITOR_POOL); -#line 1529 "LibraryMonitor.c" -} - - -void -library_monitor_pool_init (void) -{ -} - - -void -library_monitor_pool_terminate (void) -{ - LibraryMonitorPool* _tmp0_; -#line 45 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = library_monitor_pool_instance; -#line 45 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp0_ != NULL) { -#line 1547 "LibraryMonitor.c" - LibraryMonitorPool* _tmp1_; -#line 46 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = library_monitor_pool_instance; -#line 46 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_pool_close (_tmp1_); -#line 1553 "LibraryMonitor.c" - } -#line 48 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _library_monitor_pool_unref0 (library_monitor_pool_instance); -#line 48 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_pool_instance = NULL; -#line 1559 "LibraryMonitor.c" -} - - -static gpointer -_library_monitor_pool_ref0 (gpointer self) -{ -#line 55 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return self ? library_monitor_pool_ref (self) : NULL; -#line 1568 "LibraryMonitor.c" -} - - -LibraryMonitorPool* -library_monitor_pool_get_instance (void) -{ - LibraryMonitorPool* result = NULL; - LibraryMonitorPool* _tmp0_; - LibraryMonitorPool* _tmp2_; - LibraryMonitorPool* _tmp3_; -#line 52 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = library_monitor_pool_instance; -#line 52 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp0_ == NULL) { -#line 1583 "LibraryMonitor.c" - LibraryMonitorPool* _tmp1_; -#line 53 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = library_monitor_pool_new (); -#line 53 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _library_monitor_pool_unref0 (library_monitor_pool_instance); -#line 53 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_pool_instance = _tmp1_; -#line 1591 "LibraryMonitor.c" - } -#line 55 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = library_monitor_pool_instance; -#line 55 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = _library_monitor_pool_ref0 (_tmp2_); -#line 55 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - result = _tmp3_; -#line 55 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return result; -#line 1601 "LibraryMonitor.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 59 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return self ? g_object_ref (self) : NULL; -#line 1610 "LibraryMonitor.c" -} - - -LibraryMonitor* -library_monitor_pool_get_monitor (LibraryMonitorPool* self) -{ - LibraryMonitor* result = NULL; - LibraryMonitor* _tmp0_; - LibraryMonitor* _tmp1_; -#line 58 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (IS_LIBRARY_MONITOR_POOL (self), NULL); -#line 59 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->monitor; -#line 59 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 59 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - result = _tmp1_; -#line 59 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return result; -#line 1630 "LibraryMonitor.c" -} - - -static gboolean -_library_monitor_pool_on_start_monitor_gsource_func (gpointer self) -{ - gboolean result; - result = library_monitor_pool_on_start_monitor ((LibraryMonitorPool*) self); -#line 68 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return result; -#line 1641 "LibraryMonitor.c" -} - - -void -library_monitor_pool_replace (LibraryMonitorPool* self, - LibraryMonitor* replacement, - gint start_msec_delay) -{ - LibraryMonitor* _tmp0_; - gboolean _tmp1_ = FALSE; - LibraryMonitor* _tmp3_; -#line 63 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR_POOL (self)); -#line 63 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (replacement)); -#line 64 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_pool_close (self); -#line 66 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = _g_object_ref0 (replacement); -#line 66 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->monitor); -#line 66 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->monitor = _tmp0_; -#line 67 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (start_msec_delay > 0) { -#line 1667 "LibraryMonitor.c" - guint _tmp2_; -#line 67 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = self->priv->timer_id; -#line 67 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _tmp2_ == ((guint) 0); -#line 1673 "LibraryMonitor.c" - } else { -#line 67 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = FALSE; -#line 1677 "LibraryMonitor.c" - } -#line 67 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp1_) { -#line 68 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->timer_id = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) start_msec_delay, _library_monitor_pool_on_start_monitor_gsource_func, library_monitor_pool_ref (self), library_monitor_pool_unref); -#line 1683 "LibraryMonitor.c" - } -#line 70 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = self->priv->monitor; -#line 70 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_emit (self, library_monitor_pool_signals[LIBRARY_MONITOR_POOL_MONITOR_INSTALLED_SIGNAL], 0, _tmp3_); -#line 1689 "LibraryMonitor.c" -} - - -static void -library_monitor_pool_close (LibraryMonitorPool* self) -{ - LibraryMonitor* _tmp0_; - LibraryMonitor* _tmp1_; - LibraryMonitor* closed = NULL; - LibraryMonitor* _tmp2_; - LibraryMonitor* _tmp3_; - LibraryMonitor* _tmp4_; -#line 73 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR_POOL (self)); -#line 74 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->monitor; -#line 74 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp0_ == NULL) { -#line 75 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 1710 "LibraryMonitor.c" - } -#line 77 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = self->priv->monitor; -#line 77 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - directory_monitor_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DIRECTORY_MONITOR, DirectoryMonitor)); -#line 78 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = self->priv->monitor; -#line 78 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 78 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - closed = _tmp3_; -#line 79 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->monitor); -#line 79 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->monitor = NULL; -#line 81 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = closed; -#line 81 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_emit (self, library_monitor_pool_signals[LIBRARY_MONITOR_POOL_MONITOR_DESTROYED_SIGNAL], 0, _tmp4_); -#line 73 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (closed); -#line 1732 "LibraryMonitor.c" -} - - -static gboolean -library_monitor_pool_on_start_monitor (LibraryMonitorPool* self) -{ - gboolean result = FALSE; - LibraryMonitor* _tmp0_; - LibraryMonitor* _tmp1_; -#line 84 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (IS_LIBRARY_MONITOR_POOL (self), FALSE); -#line 86 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->timer_id = (guint) 0; -#line 88 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->monitor; -#line 88 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp0_ == NULL) { -#line 89 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - result = FALSE; -#line 89 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return result; -#line 1754 "LibraryMonitor.c" - } -#line 91 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = self->priv->monitor; -#line 91 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - directory_monitor_start_discovery (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DIRECTORY_MONITOR, DirectoryMonitor)); -#line 93 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - result = FALSE; -#line 93 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return result; -#line 1764 "LibraryMonitor.c" -} - - -static void -value_library_monitor_pool_init (GValue* value) -{ -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - value->data[0].v_pointer = NULL; -#line 1773 "LibraryMonitor.c" -} - - -static void -value_library_monitor_pool_free_value (GValue* value) -{ -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (value->data[0].v_pointer) { -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_pool_unref (value->data[0].v_pointer); -#line 1784 "LibraryMonitor.c" - } -} - - -static void -value_library_monitor_pool_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (src_value->data[0].v_pointer) { -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - dest_value->data[0].v_pointer = library_monitor_pool_ref (src_value->data[0].v_pointer); -#line 1797 "LibraryMonitor.c" - } else { -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - dest_value->data[0].v_pointer = NULL; -#line 1801 "LibraryMonitor.c" - } -} - - -static gpointer -value_library_monitor_pool_peek_pointer (const GValue* value) -{ -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return value->data[0].v_pointer; -#line 1811 "LibraryMonitor.c" -} - - -static gchar* -value_library_monitor_pool_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (collect_values[0].v_pointer) { -#line 1823 "LibraryMonitor.c" - LibraryMonitorPool * object; - object = collect_values[0].v_pointer; -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (object->parent_instance.g_class == NULL) { -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1830 "LibraryMonitor.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1834 "LibraryMonitor.c" - } -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - value->data[0].v_pointer = library_monitor_pool_ref (object); -#line 1838 "LibraryMonitor.c" - } else { -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - value->data[0].v_pointer = NULL; -#line 1842 "LibraryMonitor.c" - } -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return NULL; -#line 1846 "LibraryMonitor.c" -} - - -static gchar* -value_library_monitor_pool_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - LibraryMonitorPool ** object_p; - object_p = collect_values[0].v_pointer; -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!object_p) { -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1862 "LibraryMonitor.c" - } -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!value->data[0].v_pointer) { -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - *object_p = NULL; -#line 1868 "LibraryMonitor.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - *object_p = value->data[0].v_pointer; -#line 1872 "LibraryMonitor.c" - } else { -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - *object_p = library_monitor_pool_ref (value->data[0].v_pointer); -#line 1876 "LibraryMonitor.c" - } -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return NULL; -#line 1880 "LibraryMonitor.c" -} - - -GParamSpec* -param_spec_library_monitor_pool (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecLibraryMonitorPool* spec; -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_LIBRARY_MONITOR_POOL), NULL); -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return G_PARAM_SPEC (spec); -#line 1900 "LibraryMonitor.c" -} - - -gpointer -value_get_library_monitor_pool (const GValue* value) -{ -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_LIBRARY_MONITOR_POOL), NULL); -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return value->data[0].v_pointer; -#line 1911 "LibraryMonitor.c" -} - - -void -value_set_library_monitor_pool (GValue* value, - gpointer v_object) -{ - LibraryMonitorPool * old; -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_LIBRARY_MONITOR_POOL)); -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - old = value->data[0].v_pointer; -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (v_object) { -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_LIBRARY_MONITOR_POOL)); -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - value->data[0].v_pointer = v_object; -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_pool_ref (value->data[0].v_pointer); -#line 1934 "LibraryMonitor.c" - } else { -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - value->data[0].v_pointer = NULL; -#line 1938 "LibraryMonitor.c" - } -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (old) { -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_pool_unref (old); -#line 1944 "LibraryMonitor.c" - } -} - - -void -value_take_library_monitor_pool (GValue* value, - gpointer v_object) -{ - LibraryMonitorPool * old; -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_LIBRARY_MONITOR_POOL)); -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - old = value->data[0].v_pointer; -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (v_object) { -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_LIBRARY_MONITOR_POOL)); -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - value->data[0].v_pointer = v_object; -#line 1966 "LibraryMonitor.c" - } else { -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - value->data[0].v_pointer = NULL; -#line 1970 "LibraryMonitor.c" - } -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (old) { -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_pool_unref (old); -#line 1976 "LibraryMonitor.c" - } -} - - -static void -library_monitor_pool_class_init (LibraryMonitorPoolClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_pool_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ((LibraryMonitorPoolClass *) klass)->finalize = library_monitor_pool_finalize; -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_type_class_add_private (klass, sizeof (LibraryMonitorPoolPrivate)); -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_pool_signals[LIBRARY_MONITOR_POOL_MONITOR_INSTALLED_SIGNAL] = g_signal_new ("monitor-installed", TYPE_LIBRARY_MONITOR_POOL, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_LIBRARY_MONITOR); -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_pool_signals[LIBRARY_MONITOR_POOL_MONITOR_DESTROYED_SIGNAL] = g_signal_new ("monitor-destroyed", TYPE_LIBRARY_MONITOR_POOL, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_LIBRARY_MONITOR); -#line 1994 "LibraryMonitor.c" -} - - -static void -library_monitor_pool_instance_init (LibraryMonitorPool * self) -{ -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv = LIBRARY_MONITOR_POOL_GET_PRIVATE (self); -#line 31 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->monitor = NULL; -#line 32 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->timer_id = (guint) 0; -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->ref_count = 1; -#line 2009 "LibraryMonitor.c" -} - - -static void -library_monitor_pool_finalize (LibraryMonitorPool * obj) -{ - LibraryMonitorPool * self; -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPool); -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_handlers_destroy (self); -#line 31 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->monitor); -#line 2023 "LibraryMonitor.c" -} - - -GType -library_monitor_pool_get_type (void) -{ - static volatile gsize library_monitor_pool_type_id__volatile = 0; - if (g_once_init_enter (&library_monitor_pool_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_library_monitor_pool_init, value_library_monitor_pool_free_value, value_library_monitor_pool_copy_value, value_library_monitor_pool_peek_pointer, "p", value_library_monitor_pool_collect_value, "p", value_library_monitor_pool_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (LibraryMonitorPoolClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_monitor_pool_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryMonitorPool), 0, (GInstanceInitFunc) library_monitor_pool_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType library_monitor_pool_type_id; - library_monitor_pool_type_id = g_type_register_fundamental (g_type_fundamental_next (), "LibraryMonitorPool", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&library_monitor_pool_type_id__volatile, library_monitor_pool_type_id); - } - return library_monitor_pool_type_id__volatile; -} - - -gpointer -library_monitor_pool_ref (gpointer instance) -{ - LibraryMonitorPool * self; - self = instance; -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_atomic_int_inc (&self->ref_count); -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return instance; -#line 2052 "LibraryMonitor.c" -} - - -void -library_monitor_pool_unref (gpointer instance) -{ - LibraryMonitorPool * self; - self = instance; -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - LIBRARY_MONITOR_POOL_GET_CLASS (self)->finalize (self); -#line 28 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2067 "LibraryMonitor.c" - } -} - - -static void -_library_monitor_on_config_changed_configuration_facade_auto_import_from_library_changed (ConfigurationFacade* _sender, - gpointer self) -{ -#line 247 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_on_config_changed ((LibraryMonitor*) self); -#line 2078 "LibraryMonitor.c" -} - - -static guint -_file_hash_gee_hash_data_func (gconstpointer v, - gpointer self) -{ - guint result; - result = file_hash ((GFile*) v); -#line 206 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return result; -#line 2090 "LibraryMonitor.c" -} - - -static gboolean -_file_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gboolean result; - result = file_equal ((GFile*) a, (GFile*) b); -#line 206 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return result; -#line 2103 "LibraryMonitor.c" -} - - -static void -_library_monitor_on_unblacklist_file_dequeued_callback (gconstpointer item, - gpointer self) -{ -#line 207 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_on_unblacklist_file ((GFile*) item); -#line 2113 "LibraryMonitor.c" -} - - -static gboolean -_library_monitor_on_flush_import_queue_gsource_func (gpointer self) -{ - gboolean result; - result = library_monitor_on_flush_import_queue ((LibraryMonitor*) self); -#line 243 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return result; -#line 2124 "LibraryMonitor.c" -} - - -LibraryMonitor* -library_monitor_construct (GType object_type, - GFile* root, - gboolean recurse, - gboolean monitoring) -{ - LibraryMonitor * self = NULL; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - ConfigFacade* _tmp2_; - ConfigFacade* _tmp3_; -#line 236 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (root), NULL); -#line 237 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = (LibraryMonitor*) directory_monitor_construct (object_type, root, recurse, monitoring); -#line 240 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = config_facade_get_instance (); -#line 240 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _tmp0_; -#line 240 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->auto_import = configuration_facade_get_auto_import_from_library (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 240 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_tmp1_); -#line 241 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = config_facade_get_instance (); -#line 241 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = _tmp2_; -#line 241 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "auto-import-from-library-changed", (GCallback) _library_monitor_on_config_changed_configuration_facade_auto_import_from_library_changed, self, 0); -#line 241 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_tmp3_); -#line 243 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->import_queue_timer_id = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) LIBRARY_MONITOR_FLUSH_IMPORT_QUEUE_SEC, _library_monitor_on_flush_import_queue_gsource_func, g_object_ref (self), g_object_unref); -#line 236 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return self; -#line 2163 "LibraryMonitor.c" -} - - -LibraryMonitor* -library_monitor_new (GFile* root, - gboolean recurse, - gboolean monitoring) -{ -#line 236 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return library_monitor_construct (TYPE_LIBRARY_MONITOR, root, recurse, monitoring); -#line 2174 "LibraryMonitor.c" -} - - -static void -library_monitor_real_close (DirectoryMonitor* base) -{ - LibraryMonitor * self; - GCancellable* _tmp0_; - guint _tmp13_; -#line 250 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor); -#line 251 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->cancellable; -#line 251 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_cancellable_cancel (_tmp0_); -#line 2190 "LibraryMonitor.c" - { - GeeList* _monitor_list = NULL; - GeeList* _tmp1_; - GeeList* _tmp2_; - gint _monitor_size = 0; - GeeList* _tmp3_; - gint _tmp4_; - gint _tmp5_; - gint _monitor_index = 0; -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = self->priv->monitors; -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_list = _tmp2_; -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = _monitor_list; -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = _tmp4_; -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_size = _tmp5_; -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = -1; -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 2218 "LibraryMonitor.c" - gint _tmp6_; - gint _tmp7_; - gint _tmp8_; - MediaMonitor* monitor = NULL; - GeeList* _tmp9_; - gint _tmp10_; - gpointer _tmp11_; - MediaMonitor* _tmp12_; -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = _monitor_index; -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = _tmp6_ + 1; -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = _monitor_index; -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = _monitor_size; -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_tmp7_ < _tmp8_)) { -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 2239 "LibraryMonitor.c" - } -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = _monitor_list; -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = _monitor_index; -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = gee_list_get (_tmp9_, _tmp10_); -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitor = (MediaMonitor*) _tmp11_; -#line 254 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = monitor; -#line 254 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - media_monitor_close (_tmp12_); -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 2255 "LibraryMonitor.c" - } -#line 253 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_monitor_list); -#line 2259 "LibraryMonitor.c" - } -#line 256 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = self->priv->import_queue_timer_id; -#line 256 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp13_ != ((guint) 0)) { -#line 2265 "LibraryMonitor.c" - guint _tmp14_; -#line 257 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp14_ = self->priv->import_queue_timer_id; -#line 257 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_source_remove (_tmp14_); -#line 258 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->import_queue_timer_id = (guint) 0; -#line 2273 "LibraryMonitor.c" - } -#line 261 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->close (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor)); -#line 2277 "LibraryMonitor.c" -} - - -static void -library_monitor_add_to_discovered_list (LibraryMonitor* self, - MediaMonitor* monitor, - Monitorable* monitorable) -{ - GeeHashMap* _tmp0_; - GeeHashMap* _tmp4_; - gpointer _tmp5_; - GeeSet* _tmp6_; -#line 264 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 264 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_MEDIA_MONITOR (monitor)); -#line 264 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_MONITORABLE (monitorable)); -#line 265 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->discovered; -#line 265 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), monitor)) { -#line 2300 "LibraryMonitor.c" - GeeHashMap* _tmp1_; - GeeHashSet* _tmp2_; - GeeHashSet* _tmp3_; -#line 266 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = self->priv->discovered; -#line 266 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = gee_hash_set_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 266 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = _tmp2_; -#line 266 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), monitor, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_SET, GeeSet)); -#line 266 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_tmp3_); -#line 2314 "LibraryMonitor.c" - } -#line 268 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = self->priv->discovered; -#line 268 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), monitor); -#line 268 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = (GeeSet*) _tmp5_; -#line 268 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), monitorable); -#line 268 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_tmp6_); -#line 2326 "LibraryMonitor.c" -} - - -static MediaMonitor* -library_monitor_get_monitor_for_monitorable (LibraryMonitor* self, - Monitorable* monitorable) -{ - MediaMonitor* result = NULL; - gchar* _tmp15_; - gchar* _tmp16_; -#line 271 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (IS_LIBRARY_MONITOR (self), NULL); -#line 271 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL); -#line 2341 "LibraryMonitor.c" - { - GeeList* _monitor_list = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _monitor_size = 0; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _monitor_index = 0; -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->monitors; -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_list = _tmp1_; -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _monitor_list; -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = _tmp3_; -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_size = _tmp4_; -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = -1; -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 2369 "LibraryMonitor.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - MediaMonitor* monitor = NULL; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - MediaMonitor* _tmp11_; - MediaSourceCollection* _tmp12_; - MediaSourceCollection* _tmp13_; - gboolean _tmp14_; -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = _monitor_index; -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = _tmp5_ + 1; -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = _monitor_index; -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = _monitor_size; -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 2393 "LibraryMonitor.c" - } -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = _monitor_list; -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = _monitor_index; -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitor = (MediaMonitor*) _tmp10_; -#line 273 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = monitor; -#line 273 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = media_monitor_get_media_source_collection (_tmp11_); -#line 273 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = _tmp12_; -#line 273 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp14_ = source_collection_holds_type_of_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (monitorable, TYPE_DATA_SOURCE, DataSource)); -#line 273 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_collection_unref0 (_tmp13_); -#line 273 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp14_) { -#line 274 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - result = monitor; -#line 274 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_monitor_list); -#line 274 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return result; -#line 2421 "LibraryMonitor.c" - } -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 2425 "LibraryMonitor.c" - } -#line 272 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_monitor_list); -#line 2429 "LibraryMonitor.c" - } -#line 277 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp15_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (monitorable, TYPE_DATA_OBJECT, DataObject)); -#line 277 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp16_ = _tmp15_; -#line 277 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_error ("LibraryMonitor.vala:277: Unable to locate MediaMonitor for %s", _tmp16_); -#line 277 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp16_); -#line 2439 "LibraryMonitor.c" -} - - -static void -library_monitor_real_discovery_started (DirectoryMonitor* base) -{ - LibraryMonitor * self; - GeeHashMap* _tmp27_; - GeeHashSet* _tmp28_; -#line 280 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor); -#line 2451 "LibraryMonitor.c" - { - GeeIterator* _collection_it = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _tmp0_; -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = media_collection_registry_get_all (_tmp1_); -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = _tmp2_; -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = _tmp4_; -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_tmp3_); -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _collection_it = _tmp5_; -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 2480 "LibraryMonitor.c" - GeeIterator* _tmp6_; - MediaSourceCollection* collection = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - GeeList* _tmp9_; - MediaSourceCollection* _tmp10_; - Workers* _tmp11_; - GCancellable* _tmp12_; - MediaMonitor* _tmp13_; - MediaMonitor* _tmp14_; -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = _collection_it; -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 2497 "LibraryMonitor.c" - } -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = _collection_it; -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - collection = (MediaSourceCollection*) _tmp8_; -#line 282 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = self->priv->monitors; -#line 282 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = collection; -#line 282 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = self->priv->workers; -#line 282 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = self->priv->cancellable; -#line 282 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = media_source_collection_create_media_monitor (_tmp10_, _tmp11_, _tmp12_); -#line 282 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp14_ = _tmp13_; -#line 282 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection), _tmp14_); -#line 282 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_tmp14_); -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_collection_unref0 (collection); -#line 2523 "LibraryMonitor.c" - } -#line 281 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_collection_it); -#line 2527 "LibraryMonitor.c" - } - { - GeeList* _monitor_list = NULL; - GeeList* _tmp15_; - GeeList* _tmp16_; - gint _monitor_size = 0; - GeeList* _tmp17_; - gint _tmp18_; - gint _tmp19_; - gint _monitor_index = 0; -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp15_ = self->priv->monitors; -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp16_ = _g_object_ref0 (_tmp15_); -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_list = _tmp16_; -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp17_ = _monitor_list; -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp19_ = _tmp18_; -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_size = _tmp19_; -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = -1; -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 2556 "LibraryMonitor.c" - gint _tmp20_; - gint _tmp21_; - gint _tmp22_; - MediaMonitor* monitor = NULL; - GeeList* _tmp23_; - gint _tmp24_; - gpointer _tmp25_; - MediaMonitor* _tmp26_; -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp20_ = _monitor_index; -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = _tmp20_ + 1; -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp21_ = _monitor_index; -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp22_ = _monitor_size; -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_tmp21_ < _tmp22_)) { -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 2577 "LibraryMonitor.c" - } -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp23_ = _monitor_list; -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp24_ = _monitor_index; -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp25_ = gee_list_get (_tmp23_, _tmp24_); -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitor = (MediaMonitor*) _tmp25_; -#line 285 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp26_ = monitor; -#line 285 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - media_monitor_notify_discovery_started (_tmp26_); -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 2593 "LibraryMonitor.c" - } -#line 284 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_monitor_list); -#line 2597 "LibraryMonitor.c" - } -#line 287 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp27_ = gee_hash_map_new (TYPE_MEDIA_MONITOR, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, GEE_TYPE_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 287 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->discovered); -#line 287 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->discovered = _tmp27_; -#line 288 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp28_ = gee_hash_set_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); -#line 288 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->unknown_files); -#line 288 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->unknown_files = _tmp28_; -#line 290 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->discovery_started (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor)); -#line 2613 "LibraryMonitor.c" -} - - -static void -library_monitor_real_file_discovered (DirectoryMonitor* base, - GFile* file, - GFileInfo* info) -{ - LibraryMonitor * self; - Monitorable* representation = NULL; - MediaMonitor* representing = NULL; - gboolean ignore = FALSE; - MediaMonitor* _tmp18_; -#line 293 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor); -#line 293 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 293 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 294 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - representation = NULL; -#line 295 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - representing = NULL; -#line 296 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ignore = FALSE; -#line 2639 "LibraryMonitor.c" - { - GeeList* _monitor_list = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _monitor_size = 0; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _monitor_index = 0; -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->monitors; -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_list = _tmp1_; -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _monitor_list; -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = _tmp3_; -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_size = _tmp4_; -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = -1; -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 2667 "LibraryMonitor.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - MediaMonitor* monitor = NULL; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - MediaMonitorDiscoveredFile _result_ = 0; - MediaMonitor* _tmp11_; - Monitorable* _tmp12_ = NULL; - MediaMonitorDiscoveredFile _tmp13_; - MediaMonitorDiscoveredFile _tmp14_; -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = _monitor_index; -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = _tmp5_ + 1; -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = _monitor_index; -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = _monitor_size; -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 2692 "LibraryMonitor.c" - } -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = _monitor_list; -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = _monitor_index; -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitor = (MediaMonitor*) _tmp10_; -#line 298 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = monitor; -#line 298 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = media_monitor_notify_file_discovered (_tmp11_, file, info, &_tmp12_); -#line 298 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (representation); -#line 298 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - representation = _tmp12_; -#line 298 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _result_ = _tmp13_; -#line 300 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp14_ = _result_; -#line 300 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp14_ == MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED) { -#line 2716 "LibraryMonitor.c" - MediaMonitor* _tmp15_; - MediaMonitor* _tmp16_; -#line 301 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp15_ = monitor; -#line 301 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp16_ = _g_object_ref0 (_tmp15_); -#line 301 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (representing); -#line 301 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - representing = _tmp16_; -#line 303 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 303 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 2731 "LibraryMonitor.c" - } else { - MediaMonitorDiscoveredFile _tmp17_; -#line 304 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp17_ = _result_; -#line 304 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp17_ == MEDIA_MONITOR_DISCOVERED_FILE_IGNORE) { -#line 306 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ignore = TRUE; -#line 308 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 308 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 2744 "LibraryMonitor.c" - } - } -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 2749 "LibraryMonitor.c" - } -#line 297 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_monitor_list); -#line 2753 "LibraryMonitor.c" - } -#line 312 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp18_ = representing; -#line 312 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp18_ != NULL) { -#line 2759 "LibraryMonitor.c" - gboolean _tmp19_ = FALSE; - Monitorable* _tmp20_; - MediaMonitor* _tmp22_; - Monitorable* _tmp23_; -#line 313 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp20_ = representation; -#line 313 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp20_ != NULL) { -#line 2768 "LibraryMonitor.c" - gboolean _tmp21_; -#line 313 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp21_ = ignore; -#line 313 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp19_ = !_tmp21_; -#line 2774 "LibraryMonitor.c" - } else { -#line 313 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp19_ = FALSE; -#line 2778 "LibraryMonitor.c" - } -#line 313 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _vala_assert (_tmp19_, "representation != null && !ignore"); -#line 314 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp22_ = representing; -#line 314 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp23_ = representation; -#line 314 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_add_to_discovered_list (self, _tmp22_, _tmp23_); -#line 2788 "LibraryMonitor.c" - } else { - gboolean _tmp24_ = FALSE; - gboolean _tmp25_ = FALSE; - gboolean _tmp26_; -#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp26_ = ignore; -#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!_tmp26_) { -#line 2797 "LibraryMonitor.c" - TombstoneSourceCollection* _tmp27_; -#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp27_ = tombstone_global; -#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp25_ = !tombstone_source_collection_matches (_tmp27_, file); -#line 2803 "LibraryMonitor.c" - } else { -#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp25_ = FALSE; -#line 2807 "LibraryMonitor.c" - } -#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp25_) { -#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp24_ = library_monitor_is_supported_filetype (self, file); -#line 2813 "LibraryMonitor.c" - } else { -#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp24_ = FALSE; -#line 2817 "LibraryMonitor.c" - } -#line 315 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp24_) { -#line 2821 "LibraryMonitor.c" - GeeHashSet* _tmp28_; -#line 316 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp28_ = self->priv->unknown_files; -#line 316 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), file); -#line 2827 "LibraryMonitor.c" - } - } -#line 319 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->file_discovered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file, info); -#line 293 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (representing); -#line 293 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (representation); -#line 2836 "LibraryMonitor.c" -} - - -static void -library_monitor_real_discovery_completed (DirectoryMonitor* base) -{ - LibraryMonitor * self; -#line 322 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor); -#line 323 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_async_discovery_completed (self, NULL, NULL); -#line 2848 "LibraryMonitor.c" -} - - -static void -library_monitor_async_discovery_completed_data_free (gpointer _data) -{ - LibraryMonitorAsyncDiscoveryCompletedData* _data_; - _data_ = _data; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->self); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_slice_free (LibraryMonitorAsyncDiscoveryCompletedData, _data_); -#line 2861 "LibraryMonitor.c" -} - - -static void -library_monitor_async_discovery_completed_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data) -{ - LibraryMonitorAsyncDiscoveryCompletedData* _task_data_; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _task_data_ = g_task_get_task_data (G_TASK (res)); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_task_data_->_callback_ != NULL) { -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _task_data_->_callback_ (source_object, res, user_data); -#line 2877 "LibraryMonitor.c" - } -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _task_data_->_task_complete_ = TRUE; -#line 2881 "LibraryMonitor.c" -} - - -static void -library_monitor_async_discovery_completed (LibraryMonitor* self, - GAsyncReadyCallback _callback_, - gpointer _user_data_) -{ - LibraryMonitorAsyncDiscoveryCompletedData* _data_; - LibraryMonitor* _tmp0_; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_ = g_slice_new0 (LibraryMonitorAsyncDiscoveryCompletedData); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_callback_ = _callback_; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_async_result = g_task_new (G_OBJECT (self), NULL, library_monitor_async_discovery_completed_async_ready_wrapper, _user_data_); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_callback_ == NULL) { -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_task_complete_ = TRUE; -#line 2902 "LibraryMonitor.c" - } -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_task_set_task_data (_data_->_async_result, _data_, library_monitor_async_discovery_completed_data_free); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = _g_object_ref0 (self); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->self = _tmp0_; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_async_discovery_completed_co (_data_); -#line 2912 "LibraryMonitor.c" -} - - -static void -library_monitor_async_discovery_completed_finish (LibraryMonitor* self, - GAsyncResult* _res_) -{ - LibraryMonitorAsyncDiscoveryCompletedData* _data_; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_ = g_task_propagate_pointer (G_TASK (_res_), NULL); -#line 2923 "LibraryMonitor.c" -} - - -static gboolean -_library_monitor_async_discovery_completed_co_gsource_func (gpointer self) -{ - gboolean result; - result = library_monitor_async_discovery_completed_co (self); -#line 378 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return result; -#line 2934 "LibraryMonitor.c" -} - - -static gboolean -library_monitor_async_discovery_completed_co (LibraryMonitorAsyncDiscoveryCompletedData* _data_) -{ -#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - switch (_data_->_state_) { -#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - case 0: -#line 2945 "LibraryMonitor.c" - goto _state_0; -#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - case 1: -#line 2949 "LibraryMonitor.c" - goto _state_1; - default: -#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_assert_not_reached (); -#line 2954 "LibraryMonitor.c" - } - _state_0: -#line 331 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp0_ = _data_->self->priv->unknown_files; -#line 331 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 331 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp2_ = _data_->_tmp1_; -#line 331 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_tmp2_ == 0) { -#line 332 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_discovery_stage_completed (_data_->self); -#line 334 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_task_return_pointer (_data_->_async_result, _data_, NULL); -#line 334 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_state_ != 0) { -#line 334 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (_data_->_task_complete_ != TRUE) { -#line 334 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); -#line 2975 "LibraryMonitor.c" - } - } -#line 334 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_object_unref (_data_->_async_result); -#line 334 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return FALSE; -#line 2982 "LibraryMonitor.c" - } -#line 337 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp3_ = gee_array_list_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 337 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->all_candidates = _data_->_tmp3_; -#line 338 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp4_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); -#line 338 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->adopted = _data_->_tmp4_; -#line 2992 "LibraryMonitor.c" - { -#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp5_ = _data_->self->priv->unknown_files; -#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp6_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_file_it = _data_->_tmp6_; -#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp7_ = _data_->_file_it; -#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!gee_iterator_next (_data_->_tmp7_)) { -#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 3008 "LibraryMonitor.c" - } -#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp8_ = _data_->_file_it; -#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp9_ = gee_iterator_get (_data_->_tmp8_); -#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->file = (GFile*) _data_->_tmp9_; -#line 340 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp10_ = _data_->file; -#line 340 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp11_ = directory_monitor_get_file_info (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), _data_->_tmp10_); -#line 340 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->info = _data_->_tmp11_; -#line 341 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp12_ = _data_->info; -#line 341 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_tmp12_ == NULL) { -#line 342 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->info); -#line 342 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->file); -#line 342 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - continue; -#line 3032 "LibraryMonitor.c" - } -#line 345 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp13_ = _data_->all_candidates; -#line 345 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 347 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->candidates = NULL; -#line 348 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->associated = FALSE; -#line 3042 "LibraryMonitor.c" - { -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp14_ = _data_->self->priv->monitors; -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp15_ = _g_object_ref0 (_data_->_tmp14_); -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_monitor_list = _data_->_tmp15_; -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp16_ = _data_->_monitor_list; -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp17_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp16_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp18_ = _data_->_tmp17_; -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_monitor_size = _data_->_tmp18_; -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_monitor_index = -1; -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp19_ = _data_->_monitor_index; -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_monitor_index = _data_->_tmp19_ + 1; -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp20_ = _data_->_monitor_index; -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp21_ = _data_->_monitor_size; -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_data_->_tmp20_ < _data_->_tmp21_)) { -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 3074 "LibraryMonitor.c" - } -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp22_ = _data_->_monitor_list; -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp23_ = _data_->_monitor_index; -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp24_ = gee_list_get (_data_->_tmp22_, _data_->_tmp23_); -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->monitor = (MediaMonitor*) _data_->_tmp24_; -#line 351 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp25_ = _data_->monitor; -#line 351 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp26_ = _data_->file; -#line 351 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp27_ = _data_->info; -#line 351 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp28_ = 0; -#line 351 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp29_ = media_monitor_candidates_for_unknown_file (_data_->_tmp25_, _data_->_tmp26_, _data_->_tmp27_, &_data_->_tmp28_); -#line 351 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_result_ = _data_->_tmp28_; -#line 351 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->candidates); -#line 351 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->candidates = _data_->_tmp29_; -#line 352 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp31_ = _data_->_result_; -#line 352 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_tmp31_ == MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED) { -#line 352 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp30_ = TRUE; -#line 3106 "LibraryMonitor.c" - } else { -#line 353 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp32_ = _data_->_result_; -#line 353 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp30_ = _data_->_tmp32_ == MEDIA_MONITOR_DISCOVERED_FILE_IGNORE; -#line 3112 "LibraryMonitor.c" - } -#line 352 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_tmp30_) { -#line 354 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->associated = TRUE; -#line 356 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->monitor); -#line 356 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 3122 "LibraryMonitor.c" - } else { -#line 357 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp33_ = _data_->candidates; -#line 357 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_tmp33_ != NULL) { -#line 358 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp34_ = _data_->all_candidates; -#line 358 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp35_ = _data_->candidates; -#line 358 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_array_list_add_all (_data_->_tmp34_, _data_->_tmp35_); -#line 3134 "LibraryMonitor.c" - } - } -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->monitor); -#line 3139 "LibraryMonitor.c" - } -#line 349 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->_monitor_list); -#line 3143 "LibraryMonitor.c" - } -#line 362 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp36_ = _data_->associated; -#line 362 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_tmp36_) { -#line 363 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp37_ = _data_->adopted; -#line 363 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp38_ = _data_->file; -#line 363 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp37_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _data_->_tmp38_); -#line 365 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->candidates); -#line 365 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->info); -#line 365 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->file); -#line 365 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - continue; -#line 3163 "LibraryMonitor.c" - } -#line 369 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp39_ = _data_->all_candidates; -#line 369 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp40_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp39_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 369 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp41_ = _data_->_tmp40_; -#line 369 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_tmp41_ > 0) { -#line 371 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp42_ = _data_->all_candidates; -#line 371 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp43_ = _g_object_ref0 (_data_->_tmp42_); -#line 371 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->job_candidates = _data_->_tmp43_; -#line 372 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp44_ = gee_array_list_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 372 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->all_candidates); -#line 372 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->all_candidates = _data_->_tmp44_; -#line 374 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp45_ = _data_->self->priv->checksums_total; -#line 374 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->self->priv->checksums_total = _data_->_tmp45_ + 1; -#line 375 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp46_ = _data_->self->priv->workers; -#line 375 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp47_ = _data_->file; -#line 375 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp48_ = _data_->job_candidates; -#line 375 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp49_ = library_monitor_find_move_job_new (_data_->self, _data_->_tmp47_, G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp48_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 375 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp50_ = _data_->_tmp49_; -#line 375 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - workers_enqueue (_data_->_tmp46_, G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp50_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 375 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _background_job_unref0 (_data_->_tmp50_); -#line 369 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->job_candidates); -#line 3205 "LibraryMonitor.c" - } -#line 378 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _library_monitor_async_discovery_completed_co_gsource_func, _data_, NULL); -#line 379 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_state_ = 1; -#line 379 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return FALSE; -#line 3213 "LibraryMonitor.c" - _state_1: - ; -#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->candidates); -#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->info); -#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->file); -#line 3222 "LibraryMonitor.c" - } -#line 339 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->_file_it); -#line 3226 "LibraryMonitor.c" - } -#line 383 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp51_ = _data_->self->priv->unknown_files; -#line 383 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp52_ = _data_->adopted; -#line 383 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_collection_remove_all (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp51_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp52_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 385 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->self->priv->checksums_completed = 0; -#line 387 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp53_ = _data_->self->priv->checksums_total; -#line 387 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_tmp53_ == 0) { -#line 388 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_discovery_stage_completed (_data_->self); -#line 3242 "LibraryMonitor.c" - } else { -#line 390 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp54_ = _data_->self->priv->checksums_total; -#line 390 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp55_ = g_strdup_printf ("%d checksum jobs initiated to verify unknown photo files", _data_->_tmp54_); -#line 390 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp56_ = _data_->_tmp55_; -#line 390 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - directory_monitor_mdbg (_data_->_tmp56_); -#line 390 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_data_->_tmp56_); -#line 391 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp57_ = _data_->self->priv->checksums_completed; -#line 391 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp58_ = _data_->self->priv->checksums_total; -#line 391 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_emit (_data_->self, library_monitor_signals[LIBRARY_MONITOR_AUTO_UPDATE_PROGRESS_SIGNAL], 0, _data_->_tmp57_, _data_->_tmp58_); -#line 3260 "LibraryMonitor.c" - } -#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->adopted); -#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->all_candidates); -#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_task_return_pointer (_data_->_async_result, _data_, NULL); -#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_state_ != 0) { -#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (_data_->_task_complete_ != TRUE) { -#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); -#line 3274 "LibraryMonitor.c" - } - } -#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_object_unref (_data_->_async_result); -#line 326 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return FALSE; -#line 3281 "LibraryMonitor.c" -} - - -static void -library_monitor_report_checksum_job_completed (LibraryMonitor* self) -{ - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; -#line 395 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 396 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->checksums_completed; -#line 396 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = self->priv->checksums_total; -#line 396 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _vala_assert (_tmp0_ < _tmp1_, "checksums_completed < checksums_total"); -#line 397 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = self->priv->checksums_completed; -#line 397 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->checksums_completed = _tmp2_ + 1; -#line 399 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = self->priv->checksums_completed; -#line 399 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = self->priv->checksums_total; -#line 399 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_emit (self, library_monitor_signals[LIBRARY_MONITOR_AUTO_UPDATE_PROGRESS_SIGNAL], 0, _tmp3_, _tmp4_); -#line 401 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = self->priv->checksums_completed; -#line 401 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = self->priv->checksums_total; -#line 401 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp5_ == _tmp6_) { -#line 402 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_discovery_stage_completed (self); -#line 3321 "LibraryMonitor.c" - } -} - - -static gpointer -_background_job_ref0 (gpointer self) -{ -#line 406 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return self ? background_job_ref (self) : NULL; -#line 3331 "LibraryMonitor.c" -} - - -static void -library_monitor_on_find_move_completed (LibraryMonitor* self, - BackgroundJob* j) -{ - LibraryMonitorFindMoveJob* job = NULL; - LibraryMonitorFindMoveJob* _tmp0_; - LibraryMonitorFindMoveJob* _tmp1_; - Monitorable* _tmp2_; - LibraryMonitorFindMoveJob* _tmp27_; - GError* _tmp28_; -#line 405 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 405 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 406 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB, LibraryMonitorFindMoveJob)); -#line 406 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - job = _tmp0_; -#line 411 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = job; -#line 411 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _tmp1_->match; -#line 411 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp2_ != NULL) { -#line 3359 "LibraryMonitor.c" - LibraryMonitorFindMoveJob* _tmp3_; - GFile* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - LibraryMonitorFindMoveJob* _tmp7_; - Monitorable* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - MediaMonitor* monitor = NULL; - LibraryMonitorFindMoveJob* _tmp13_; - Monitorable* _tmp14_; - MediaMonitor* _tmp15_; - MediaMonitor* _tmp16_; - LibraryMonitorFindMoveJob* _tmp17_; - Monitorable* _tmp18_; - LibraryMonitorFindMoveJob* _tmp19_; - GFile* _tmp20_; - GeeHashSet* _tmp21_; - LibraryMonitorFindMoveJob* _tmp22_; - GFile* _tmp23_; - MediaMonitor* _tmp24_; - LibraryMonitorFindMoveJob* _tmp25_; - Monitorable* _tmp26_; -#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = job; -#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = _tmp3_->file; -#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = g_file_get_path (_tmp4_); -#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = _tmp5_; -#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = job; -#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = _tmp7_->match; -#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject)); -#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = _tmp9_; -#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = g_strdup_printf ("Found moved master file: %s matches %s", _tmp6_, _tmp10_); -#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = _tmp11_; -#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - directory_monitor_mdbg (_tmp12_); -#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp12_); -#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp10_); -#line 412 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp6_); -#line 415 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = job; -#line 415 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp14_ = _tmp13_->match; -#line 415 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp15_ = library_monitor_get_monitor_for_monitorable (self, _tmp14_); -#line 415 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitor = _tmp15_; -#line 416 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp16_ = monitor; -#line 416 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp17_ = job; -#line 416 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp18_ = _tmp17_->match; -#line 416 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp19_ = job; -#line 416 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp20_ = _tmp19_->file; -#line 416 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - media_monitor_update_master_file (_tmp16_, _tmp18_, _tmp20_); -#line 417 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp21_ = self->priv->unknown_files; -#line 417 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp22_ = job; -#line 417 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp23_ = _tmp22_->file; -#line 417 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp23_); -#line 418 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp24_ = monitor; -#line 418 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp25_ = job; -#line 418 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp26_ = _tmp25_->match; -#line 418 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_add_to_discovered_list (self, _tmp24_, _tmp26_); -#line 411 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 3451 "LibraryMonitor.c" - } -#line 421 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp27_ = job; -#line 421 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp28_ = _tmp27_->err; -#line 421 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp28_ != NULL) { -#line 3459 "LibraryMonitor.c" - LibraryMonitorFindMoveJob* _tmp29_; - GFile* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - LibraryMonitorFindMoveJob* _tmp33_; - GError* _tmp34_; - const gchar* _tmp35_; -#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp29_ = job; -#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp30_ = _tmp29_->file; -#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp31_ = g_file_get_path (_tmp30_); -#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp32_ = _tmp31_; -#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp33_ = job; -#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp34_ = _tmp33_->err; -#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp35_ = _tmp34_->message; -#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_warning ("LibraryMonitor.vala:422: Unable to checksum unknown media file %s: %s", _tmp32_, _tmp35_); -#line 422 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp32_); -#line 3485 "LibraryMonitor.c" - } -#line 424 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_report_checksum_job_completed (self); -#line 405 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _background_job_unref0 (job); -#line 3491 "LibraryMonitor.c" -} - - -static void -library_monitor_on_find_move_cancelled (LibraryMonitor* self, - BackgroundJob* j) -{ -#line 427 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 427 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 428 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_report_checksum_job_completed (self); -#line 3505 "LibraryMonitor.c" -} - - -static void -library_monitor_discovery_stage_completed (LibraryMonitor* self) -{ - gboolean _tmp60_; - TombstoneSourceCollection* _tmp62_; - GCancellable* _tmp63_; -#line 431 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 3517 "LibraryMonitor.c" - { - GeeList* _monitor_list = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _monitor_size = 0; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _monitor_index = 0; -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->monitors; -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_list = _tmp1_; -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _monitor_list; -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = _tmp3_; -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_size = _tmp4_; -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = -1; -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 3545 "LibraryMonitor.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - MediaMonitor* monitor = NULL; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - GeeSet* monitorables = NULL; - GeeHashMap* _tmp11_; - MediaMonitor* _tmp12_; - gpointer _tmp13_; - GeeSet* _tmp14_; -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = _monitor_index; -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = _tmp5_ + 1; -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = _monitor_index; -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = _monitor_size; -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 3570 "LibraryMonitor.c" - } -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = _monitor_list; -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = _monitor_index; -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitor = (MediaMonitor*) _tmp10_; -#line 433 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = self->priv->discovered; -#line 433 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = monitor; -#line 433 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp12_); -#line 433 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitorables = (GeeSet*) _tmp13_; -#line 434 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp14_ = monitorables; -#line 434 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp14_ != NULL) { -#line 3592 "LibraryMonitor.c" - { - GeeIterator* _monitorable_it = NULL; - GeeSet* _tmp15_; - GeeIterator* _tmp16_; -#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp15_ = monitorables; -#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp16_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitorable_it = _tmp16_; -#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 3605 "LibraryMonitor.c" - GeeIterator* _tmp17_; - Monitorable* monitorable = NULL; - GeeIterator* _tmp18_; - gpointer _tmp19_; - Monitorable* _tmp20_; - MediaMonitor* _tmp21_; -#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp17_ = _monitorable_it; -#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!gee_iterator_next (_tmp17_)) { -#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 3618 "LibraryMonitor.c" - } -#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp18_ = _monitorable_it; -#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp19_ = gee_iterator_get (_tmp18_); -#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitorable = (Monitorable*) _tmp19_; -#line 436 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp20_ = monitorable; -#line 436 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp21_ = monitor; -#line 436 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_enqueue_verify_monitorable (self, _tmp20_, _tmp21_); -#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitorable); -#line 3634 "LibraryMonitor.c" - } -#line 435 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_monitorable_it); -#line 3638 "LibraryMonitor.c" - } - } - { - GeeIterator* _object_it = NULL; - MediaMonitor* _tmp22_; - MediaSourceCollection* _tmp23_; - MediaSourceCollection* _tmp24_; - GeeCollection* _tmp25_; - GeeCollection* _tmp26_; - GeeIterator* _tmp27_; - GeeIterator* _tmp28_; -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp22_ = monitor; -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp23_ = media_monitor_get_media_source_collection (_tmp22_); -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp24_ = _tmp23_; -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp25_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_COLLECTION, DataCollection)); -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp26_ = _tmp25_; -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp27_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp28_ = _tmp27_; -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_tmp26_); -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_collection_unref0 (_tmp24_); -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _object_it = _tmp28_; -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 3672 "LibraryMonitor.c" - GeeIterator* _tmp29_; - DataObject* object = NULL; - GeeIterator* _tmp30_; - gpointer _tmp31_; - Monitorable* monitorable = NULL; - DataObject* _tmp32_; - Monitorable* _tmp33_; - gboolean _tmp34_ = FALSE; - GeeSet* _tmp35_; - Monitorable* _tmp38_; - MediaMonitor* _tmp39_; -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp29_ = _object_it; -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!gee_iterator_next (_tmp29_)) { -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 3690 "LibraryMonitor.c" - } -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp30_ = _object_it; -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp31_ = gee_iterator_get (_tmp30_); -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - object = (DataObject*) _tmp31_; -#line 440 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp32_ = object; -#line 440 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_MONITORABLE, Monitorable)); -#line 440 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitorable = _tmp33_; -#line 442 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp35_ = monitorables; -#line 442 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp35_ != NULL) { -#line 3708 "LibraryMonitor.c" - GeeSet* _tmp36_; - Monitorable* _tmp37_; -#line 442 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp36_ = monitorables; -#line 442 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp37_ = monitorable; -#line 442 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp34_ = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_COLLECTION, GeeCollection), _tmp37_); -#line 3717 "LibraryMonitor.c" - } else { -#line 442 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp34_ = FALSE; -#line 3721 "LibraryMonitor.c" - } -#line 442 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp34_) { -#line 443 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitorable); -#line 443 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (object); -#line 443 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - continue; -#line 3731 "LibraryMonitor.c" - } -#line 445 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp38_ = monitorable; -#line 445 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp39_ = monitor; -#line 445 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_enqueue_verify_monitorable (self, _tmp38_, _tmp39_); -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitorable); -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (object); -#line 3743 "LibraryMonitor.c" - } -#line 439 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_object_it); -#line 3747 "LibraryMonitor.c" - } - { - GeeIterator* _source_it = NULL; - MediaMonitor* _tmp40_; - MediaSourceCollection* _tmp41_; - MediaSourceCollection* _tmp42_; - MediaSourceHoldingTank* _tmp43_; - MediaSourceHoldingTank* _tmp44_; - GeeCollection* _tmp45_; - GeeCollection* _tmp46_; - GeeIterator* _tmp47_; - GeeIterator* _tmp48_; -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp40_ = monitor; -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp41_ = media_monitor_get_media_source_collection (_tmp40_); -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp42_ = _tmp41_; -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp43_ = media_source_collection_get_offline_bin (_tmp42_); -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp44_ = _tmp43_; -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp45_ = source_holding_tank_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)); -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp46_ = _tmp45_; -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp47_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp48_ = _tmp47_; -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_tmp46_); -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _source_holding_tank_unref0 (_tmp44_); -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_collection_unref0 (_tmp42_); -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _source_it = _tmp48_; -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 3788 "LibraryMonitor.c" - GeeIterator* _tmp49_; - DataSource* source = NULL; - GeeIterator* _tmp50_; - gpointer _tmp51_; - Monitorable* monitorable = NULL; - DataSource* _tmp52_; - Monitorable* _tmp53_; - gboolean _tmp54_ = FALSE; - GeeSet* _tmp55_; - Monitorable* _tmp58_; - MediaMonitor* _tmp59_; -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp49_ = _source_it; -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!gee_iterator_next (_tmp49_)) { -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 3806 "LibraryMonitor.c" - } -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp50_ = _source_it; -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp51_ = gee_iterator_get (_tmp50_); -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - source = (DataSource*) _tmp51_; -#line 450 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp52_ = source; -#line 450 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp53_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, TYPE_MONITORABLE, Monitorable)); -#line 450 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitorable = _tmp53_; -#line 452 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp55_ = monitorables; -#line 452 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp55_ != NULL) { -#line 3824 "LibraryMonitor.c" - GeeSet* _tmp56_; - Monitorable* _tmp57_; -#line 452 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp56_ = monitorables; -#line 452 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp57_ = monitorable; -#line 452 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp54_ = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_COLLECTION, GeeCollection), _tmp57_); -#line 3833 "LibraryMonitor.c" - } else { -#line 452 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp54_ = FALSE; -#line 3837 "LibraryMonitor.c" - } -#line 452 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp54_) { -#line 453 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitorable); -#line 453 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (source); -#line 453 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - continue; -#line 3847 "LibraryMonitor.c" - } -#line 455 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp58_ = monitorable; -#line 455 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp59_ = monitor; -#line 455 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_enqueue_verify_monitorable (self, _tmp58_, _tmp59_); -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitorable); -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (source); -#line 3859 "LibraryMonitor.c" - } -#line 448 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_source_it); -#line 3863 "LibraryMonitor.c" - } -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitorables); -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 3869 "LibraryMonitor.c" - } -#line 432 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_monitor_list); -#line 3873 "LibraryMonitor.c" - } -#line 460 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp60_ = self->priv->auto_import; -#line 460 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp60_) { -#line 3879 "LibraryMonitor.c" - GeeHashSet* _tmp61_; -#line 461 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp61_ = self->priv->unknown_files; -#line 461 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_enqueue_import_many (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 3885 "LibraryMonitor.c" - } -#line 464 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->discovered); -#line 464 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->discovered = NULL; -#line 465 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->unknown_files); -#line 465 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->unknown_files = NULL; -#line 469 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp62_ = tombstone_global; -#line 469 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp63_ = self->priv->cancellable; -#line 469 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - tombstone_source_collection_launch_scan (_tmp62_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), _tmp63_); -#line 472 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->discovery_completed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor)); -#line 3903 "LibraryMonitor.c" -} - - -static void -library_monitor_enqueue_verify_monitorable (LibraryMonitor* self, - Monitorable* monitorable, - MediaMonitor* monitor) -{ - gboolean offered = FALSE; - GeeQueue* _tmp0_; - LibraryMonitorVerifyJob* _tmp1_; - LibraryMonitorVerifyJob* _tmp2_; - gboolean _tmp3_; -#line 475 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 475 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_MONITORABLE (monitorable)); -#line 475 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_MEDIA_MONITOR (monitor)); -#line 476 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->verify_queue; -#line 476 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = library_monitor_verify_job_new (monitorable, monitor); -#line 476 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _tmp1_; -#line 476 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = gee_queue_offer (_tmp0_, _tmp2_); -#line 476 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _library_monitor_verify_job_unref0 (_tmp2_); -#line 476 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - offered = _tmp3_; -#line 477 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _vala_assert (offered, "offered"); -#line 479 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_execute_next_verify_job (self); -#line 3939 "LibraryMonitor.c" -} - - -static void -library_monitor_execute_next_verify_job (LibraryMonitor* self) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; - LibraryMonitorVerifyJob* job = NULL; - GeeQueue* _tmp5_; - gpointer _tmp6_; - LibraryMonitorVerifyJob* _tmp7_; - gint _tmp8_; - LibraryMonitorVerifyJob* _tmp9_; - Monitorable* _tmp10_; - LibraryMonitorVerifyJob* _tmp11_; - MediaMonitor* _tmp12_; -#line 482 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 483 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = self->priv->outstanding_verify_jobs; -#line 483 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp1_ >= LIBRARY_MONITOR_MAX_VERIFY_EXISTING_MEDIA_JOBS) { -#line 483 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = TRUE; -#line 3965 "LibraryMonitor.c" - } else { - GeeQueue* _tmp2_; - gint _tmp3_; - gint _tmp4_; -#line 483 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = self->priv->verify_queue; -#line 483 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 483 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = _tmp3_; -#line 483 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = _tmp4_ == 0; -#line 3978 "LibraryMonitor.c" - } -#line 483 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp0_) { -#line 484 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 3984 "LibraryMonitor.c" - } -#line 486 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = self->priv->verify_queue; -#line 486 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = gee_queue_poll (_tmp5_); -#line 486 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - job = (LibraryMonitorVerifyJob*) _tmp6_; -#line 487 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = job; -#line 487 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _vala_assert (_tmp7_ != NULL, "job != null"); -#line 489 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = self->priv->outstanding_verify_jobs; -#line 489 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->outstanding_verify_jobs = _tmp8_ + 1; -#line 490 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = job; -#line 490 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = _tmp9_->monitorable; -#line 490 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = job; -#line 490 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = _tmp11_->monitor; -#line 490 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_verify_monitorable (self, _tmp10_, _tmp12_, NULL, NULL); -#line 482 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _library_monitor_verify_job_unref0 (job); -#line 4012 "LibraryMonitor.c" -} - - -static void -library_monitor_verify_monitorable_data_free (gpointer _data) -{ - LibraryMonitorVerifyMonitorableData* _data_; - _data_ = _data; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->monitorable); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->monitor); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->self); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_slice_free (LibraryMonitorVerifyMonitorableData, _data_); -#line 4029 "LibraryMonitor.c" -} - - -static void -library_monitor_verify_monitorable_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data) -{ - LibraryMonitorVerifyMonitorableData* _task_data_; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _task_data_ = g_task_get_task_data (G_TASK (res)); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_task_data_->_callback_ != NULL) { -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _task_data_->_callback_ (source_object, res, user_data); -#line 4045 "LibraryMonitor.c" - } -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _task_data_->_task_complete_ = TRUE; -#line 4049 "LibraryMonitor.c" -} - - -static void -library_monitor_verify_monitorable (LibraryMonitor* self, - Monitorable* monitorable, - MediaMonitor* monitor, - GAsyncReadyCallback _callback_, - gpointer _user_data_) -{ - LibraryMonitorVerifyMonitorableData* _data_; - LibraryMonitor* _tmp0_; - Monitorable* _tmp1_; - MediaMonitor* _tmp2_; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_ = g_slice_new0 (LibraryMonitorVerifyMonitorableData); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_callback_ = _callback_; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_async_result = g_task_new (G_OBJECT (self), NULL, library_monitor_verify_monitorable_async_ready_wrapper, _user_data_); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_callback_ == NULL) { -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_task_complete_ = TRUE; -#line 4074 "LibraryMonitor.c" - } -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_task_set_task_data (_data_->_async_result, _data_, library_monitor_verify_monitorable_data_free); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = _g_object_ref0 (self); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->self = _tmp0_; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _g_object_ref0 (monitorable); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->monitorable); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->monitorable = _tmp1_; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _g_object_ref0 (monitor); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->monitor); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->monitor = _tmp2_; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_verify_monitorable_co (_data_); -#line 4096 "LibraryMonitor.c" -} - - -static void -library_monitor_verify_monitorable_finish (LibraryMonitor* self, - GAsyncResult* _res_) -{ - LibraryMonitorVerifyMonitorableData* _data_; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_ = g_task_propagate_pointer (G_TASK (_res_), NULL); -#line 4107 "LibraryMonitor.c" -} - - -static void -_vala_array_add130 (GFile** * array, - int* length, - int* size, - GFile* value) -{ -#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if ((*length) == (*size)) { -#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - *array = g_renew (GFile*, *array, (*size) + 1); -#line 4123 "LibraryMonitor.c" - } -#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - (*array)[(*length)++] = value; -#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - (*array)[*length] = NULL; -#line 4129 "LibraryMonitor.c" -} - - -static void -library_monitor_verify_monitorable_ready (GObject* source_object, - GAsyncResult* _res_, - gpointer _user_data_) -{ - LibraryMonitorVerifyMonitorableData* _data_; -#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_ = _user_data_; -#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_source_object_ = source_object; -#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_res_ = _res_; -#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_task_complete_ = TRUE; -#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_verify_monitorable_co (_data_); -#line 4149 "LibraryMonitor.c" -} - - -static gboolean -_library_monitor_verify_monitorable_co_gsource_func (gpointer self) -{ - gboolean result; - result = library_monitor_verify_monitorable_co (self); -#line 530 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return result; -#line 4160 "LibraryMonitor.c" -} - - -static gboolean -library_monitor_verify_monitorable_co (LibraryMonitorVerifyMonitorableData* _data_) -{ -#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - switch (_data_->_state_) { -#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - case 0: -#line 4171 "LibraryMonitor.c" - goto _state_0; -#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - case 1: -#line 4175 "LibraryMonitor.c" - goto _state_1; -#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - case 2: -#line 4179 "LibraryMonitor.c" - goto _state_2; - default: -#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_assert_not_reached (); -#line 4184 "LibraryMonitor.c" - } - _state_0: -#line 494 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp0_ = g_new0 (GFile*, 1 + 1); -#line 494 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->files = _data_->_tmp0_; -#line 494 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->files_length1 = 1; -#line 494 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_files_size_ = _data_->files_length1; -#line 495 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp1_ = _data_->files; -#line 495 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp1__length1 = _data_->files_length1; -#line 495 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp2_ = media_monitor_get_master_file (_data_->monitor, _data_->monitorable); -#line 495 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->_tmp1_[0]); -#line 495 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp1_[0] = _data_->_tmp2_; -#line 495 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp3_ = _data_->_tmp1_[0]; -#line 497 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp5_ = media_monitor_get_auxilliary_backing_files (_data_->monitor, _data_->monitorable, &_data_->_tmp4_); -#line 497 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->aux_files = _data_->_tmp5_; -#line 497 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->aux_files_length1 = _data_->_tmp4_; -#line 497 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_aux_files_size_ = _data_->aux_files_length1; -#line 498 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp6_ = _data_->aux_files; -#line 498 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp6__length1 = _data_->aux_files_length1; -#line 498 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_tmp6_ != NULL) { -#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp7_ = _data_->aux_files; -#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp7__length1 = _data_->aux_files_length1; -#line 4225 "LibraryMonitor.c" - { -#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->aux_file_collection_length1 = 0; -#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_aux_file_collection_size_ = 0; -#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->aux_file_collection = _data_->_tmp7_; -#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->aux_file_collection_length1 = _data_->_tmp7__length1; -#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - for (_data_->aux_file_it = 0; _data_->aux_file_it < _data_->_tmp7__length1; _data_->aux_file_it = _data_->aux_file_it + 1) { -#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp8_ = _g_object_ref0 (_data_->aux_file_collection[_data_->aux_file_it]); -#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->aux_file = _data_->_tmp8_; -#line 4241 "LibraryMonitor.c" - { -#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp9_ = _data_->files; -#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp9__length1 = _data_->files_length1; -#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp10_ = _data_->aux_file; -#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp11_ = _g_object_ref0 (_data_->_tmp10_); -#line 500 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _vala_array_add130 (&_data_->files, &_data_->files_length1, &_data_->_files_size_, _data_->_tmp11_); -#line 499 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->aux_file); -#line 4255 "LibraryMonitor.c" - } - } - } - } - { -#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->ctr = 0; -#line 4263 "LibraryMonitor.c" - { -#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp12_ = TRUE; -#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!_data_->_tmp12_) { -#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp13_ = _data_->ctr; -#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->ctr = _data_->_tmp13_ + 1; -#line 4275 "LibraryMonitor.c" - } -#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp12_ = FALSE; -#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp14_ = _data_->ctr; -#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp15_ = _data_->files; -#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp15__length1 = _data_->files_length1; -#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_data_->_tmp14_ < _data_->_tmp15__length1)) { -#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 4289 "LibraryMonitor.c" - } -#line 504 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp16_ = _data_->files; -#line 504 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp16__length1 = _data_->files_length1; -#line 504 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp17_ = _data_->ctr; -#line 504 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp18_ = _data_->_tmp16_[_data_->_tmp17_]; -#line 504 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp19_ = _g_object_ref0 (_data_->_tmp18_); -#line 504 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->file = _data_->_tmp19_; -#line 506 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp20_ = _data_->file; -#line 506 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp21_ = directory_monitor_get_file_info (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), _data_->_tmp20_); -#line 506 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->info = _data_->_tmp21_; -#line 507 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp22_ = _data_->info; -#line 507 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_tmp22_ == NULL) { -#line 4313 "LibraryMonitor.c" - { -#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp24_ = _data_->file; -#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp25_ = _data_->self->priv->cancellable; -#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_state_ = 1; -#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_file_query_info_async (_data_->_tmp24_, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, DIRECTORY_MONITOR_FILE_INFO_FLAGS, DIRECTORY_MONITOR_DEFAULT_PRIORITY, _data_->_tmp25_, library_monitor_verify_monitorable_ready, _data_); -#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return FALSE; -#line 4325 "LibraryMonitor.c" - _state_1: -#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp26_ = g_file_query_info_finish (_data_->_tmp24_, _data_->_res_, &_data_->_inner_error_); -#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp23_ = _data_->_tmp26_; -#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 4333 "LibraryMonitor.c" - goto __catch495_g_error; - } -#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp27_ = _data_->_tmp23_; -#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp23_ = NULL; -#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->info); -#line 509 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->info = _data_->_tmp27_; -#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->_tmp23_); -#line 4346 "LibraryMonitor.c" - } - goto __finally495; - __catch495_g_error: - { -#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->err = _data_->_inner_error_; -#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_inner_error_ = NULL; -#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_error_free0 (_data_->err); -#line 4357 "LibraryMonitor.c" - } - __finally495: -#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->info); -#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->file); -#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->aux_files = (_vala_array_free (_data_->aux_files, _data_->aux_files_length1, (GDestroyNotify) g_object_unref), NULL); -#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->files = (_vala_array_free (_data_->files, _data_->files_length1, (GDestroyNotify) g_object_unref), NULL); -#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); -#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_clear_error (&_data_->_inner_error_); -#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_object_unref (_data_->_async_result); -#line 508 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return FALSE; -#line 4378 "LibraryMonitor.c" - } - } -#line 517 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp28_ = _data_->ctr; -#line 517 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_tmp28_ == 0) { -#line 518 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp30_ = _data_->info; -#line 518 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_tmp30_ != NULL) { -#line 518 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp29_ = media_monitor_is_offline (_data_->monitor, _data_->monitorable); -#line 4391 "LibraryMonitor.c" - } else { -#line 518 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp29_ = FALSE; -#line 4395 "LibraryMonitor.c" - } -#line 518 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_tmp29_) { -#line 519 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - media_monitor_update_online (_data_->monitor, _data_->monitorable); -#line 4401 "LibraryMonitor.c" - } else { -#line 520 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp32_ = _data_->info; -#line 520 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_tmp32_ == NULL) { -#line 520 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp31_ = !media_monitor_is_offline (_data_->monitor, _data_->monitorable); -#line 4409 "LibraryMonitor.c" - } else { -#line 520 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp31_ = FALSE; -#line 4413 "LibraryMonitor.c" - } -#line 520 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_tmp31_) { -#line 521 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - media_monitor_update_offline (_data_->monitor, _data_->monitorable); -#line 4419 "LibraryMonitor.c" - } - } - } -#line 524 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp33_ = _data_->file; -#line 524 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp34_ = _data_->info; -#line 524 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - media_monitor_update_backing_file_info (_data_->monitor, _data_->monitorable, _data_->_tmp33_, _data_->_tmp34_); -#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->info); -#line 503 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_data_->file); -#line 4433 "LibraryMonitor.c" - } - } - } -#line 527 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp35_ = _data_->self->priv->completed_monitorable_verifies; -#line 527 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->self->priv->completed_monitorable_verifies = _data_->_tmp35_ + 1; -#line 528 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp36_ = _data_->self->priv->completed_monitorable_verifies; -#line 528 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp37_ = _data_->self->priv->total_monitorable_verifies; -#line 528 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_emit (_data_->self, library_monitor_signals[LIBRARY_MONITOR_AUTO_UPDATE_PROGRESS_SIGNAL], 0, _data_->_tmp36_, _data_->_tmp37_); -#line 530 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_idle_add_full (DIRECTORY_MONITOR_DEFAULT_PRIORITY, _library_monitor_verify_monitorable_co_gsource_func, _data_, NULL); -#line 531 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_state_ = 2; -#line 531 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return FALSE; -#line 4453 "LibraryMonitor.c" - _state_2: - ; -#line 534 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp38_ = _data_->self->priv->outstanding_verify_jobs; -#line 534 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _vala_assert (_data_->_tmp38_ > 0, "outstanding_verify_jobs > 0"); -#line 535 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->_tmp39_ = _data_->self->priv->outstanding_verify_jobs; -#line 535 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->self->priv->outstanding_verify_jobs = _data_->_tmp39_ - 1; -#line 537 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_execute_next_verify_job (_data_->self); -#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->aux_files = (_vala_array_free (_data_->aux_files, _data_->aux_files_length1, (GDestroyNotify) g_object_unref), NULL); -#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_->files = (_vala_array_free (_data_->files, _data_->files_length1, (GDestroyNotify) g_object_unref), NULL); -#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_task_return_pointer (_data_->_async_result, _data_, NULL); -#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_data_->_state_ != 0) { -#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (_data_->_task_complete_ != TRUE) { -#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); -#line 4478 "LibraryMonitor.c" - } - } -#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_object_unref (_data_->_async_result); -#line 493 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return FALSE; -#line 4485 "LibraryMonitor.c" -} - - -static void -library_monitor_on_config_changed (LibraryMonitor* self) -{ - gboolean value = FALSE; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gboolean _tmp2_; - gboolean _tmp3_; - gboolean _tmp4_; - gboolean _tmp5_; - gboolean _tmp6_; -#line 540 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 541 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = config_facade_get_instance (); -#line 541 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _tmp0_; -#line 541 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = configuration_facade_get_auto_import_from_library (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 541 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_tmp1_); -#line 541 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - value = _tmp2_; -#line 543 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = self->priv->auto_import; -#line 543 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = value; -#line 543 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp3_ == _tmp4_) { -#line 544 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 4520 "LibraryMonitor.c" - } -#line 546 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = value; -#line 546 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->auto_import = _tmp5_; -#line 547 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = self->priv->auto_import; -#line 547 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp6_) { -#line 4530 "LibraryMonitor.c" - gboolean _tmp7_; -#line 548 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = commandline_options_no_runtime_monitoring; -#line 548 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!_tmp7_) { -#line 549 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_import_unrepresented_files (self); -#line 4538 "LibraryMonitor.c" - } - } else { -#line 551 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_cancel_batch_imports (self); -#line 4543 "LibraryMonitor.c" - } -} - - -static void -library_monitor_enqueue_import (LibraryMonitor* self, - GFile* file) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GeeHashSet* _tmp2_; -#line 555 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 555 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 556 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = self->priv->pending_imports; -#line 556 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), file)) { -#line 556 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = library_monitor_is_supported_filetype (self, file); -#line 4565 "LibraryMonitor.c" - } else { -#line 556 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = FALSE; -#line 4569 "LibraryMonitor.c" - } -#line 556 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp1_) { -#line 556 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = !library_monitor_is_blacklisted (file); -#line 4575 "LibraryMonitor.c" - } else { -#line 556 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = FALSE; -#line 4579 "LibraryMonitor.c" - } -#line 556 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp0_) { -#line 4583 "LibraryMonitor.c" - GeeHashSet* _tmp3_; -#line 557 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = self->priv->import_queue; -#line 557 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), file); -#line 4589 "LibraryMonitor.c" - } -} - - -static void -library_monitor_enqueue_import_many (LibraryMonitor* self, - GeeCollection* files) -{ -#line 560 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 560 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (GEE_IS_COLLECTION (files)); -#line 4602 "LibraryMonitor.c" - { - GeeIterator* _file_it = NULL; - GeeIterator* _tmp0_; -#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (files, GEE_TYPE_ITERABLE, GeeIterable)); -#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _file_it = _tmp0_; -#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 4612 "LibraryMonitor.c" - GeeIterator* _tmp1_; - GFile* file = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - GFile* _tmp4_; -#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _file_it; -#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 4624 "LibraryMonitor.c" - } -#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _file_it; -#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - file = (GFile*) _tmp3_; -#line 562 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = file; -#line 562 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_enqueue_import (self, _tmp4_); -#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (file); -#line 4638 "LibraryMonitor.c" - } -#line 561 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_file_it); -#line 4642 "LibraryMonitor.c" - } -} - - -static void -library_monitor_remove_queued_import (LibraryMonitor* self, - GFile* file) -{ - GeeHashSet* _tmp0_; -#line 565 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 565 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 566 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->import_queue; -#line 566 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), file); -#line 4660 "LibraryMonitor.c" -} - - -static gboolean -library_monitor_on_flush_import_queue (LibraryMonitor* self) -{ - gboolean result = FALSE; - GCancellable* _tmp0_; - GeeHashSet* _tmp1_; - gint _tmp2_; - gint _tmp3_; - BatchImport* _tmp4_; - GeeHashSet* _tmp5_; - gint _tmp6_; - gint _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - time_t now = 0; - gboolean _tmp10_ = FALSE; - BatchImportRoll* _tmp11_; - time_t _tmp15_; - GeeArrayList* jobs = NULL; - GeeArrayList* _tmp16_; - GeeHashSet* _tmp29_; - BatchImport* importer = NULL; - GeeArrayList* _tmp30_; - BatchImportRoll* _tmp31_; - BatchImport* _tmp32_; - BatchImport* _tmp33_; - BatchImport* _tmp34_; - GeeArrayList* _tmp35_; - BatchImport* _tmp36_; -#line 569 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (IS_LIBRARY_MONITOR (self), FALSE); -#line 570 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->cancellable; -#line 570 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (g_cancellable_is_cancelled (_tmp0_)) { -#line 571 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - result = FALSE; -#line 571 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return result; -#line 4703 "LibraryMonitor.c" - } -#line 573 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = self->priv->import_queue; -#line 573 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 573 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = _tmp2_; -#line 573 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp3_ == 0) { -#line 574 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - result = TRUE; -#line 574 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return result; -#line 4717 "LibraryMonitor.c" - } -#line 578 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = self->priv->current_batch_import; -#line 578 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp4_ != NULL) { -#line 579 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - result = TRUE; -#line 579 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return result; -#line 4727 "LibraryMonitor.c" - } -#line 581 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = self->priv->import_queue; -#line 581 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 581 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = _tmp6_; -#line 581 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = g_strdup_printf ("Auto-importing %d files", _tmp7_); -#line 581 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = _tmp8_; -#line 581 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - directory_monitor_mdbg (_tmp9_); -#line 581 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp9_); -#line 586 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - now = (time_t) now_sec (); -#line 587 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = self->priv->current_import_roll; -#line 587 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp11_ == NULL) { -#line 587 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = TRUE; -#line 4751 "LibraryMonitor.c" - } else { - time_t _tmp12_; - time_t _tmp13_; -#line 587 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = now; -#line 587 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = self->priv->last_import_roll_use; -#line 587 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = (_tmp12_ - _tmp13_) >= ((time_t) LIBRARY_MONITOR_IMPORT_ROLL_QUIET_SEC); -#line 4761 "LibraryMonitor.c" - } -#line 587 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp10_) { -#line 4765 "LibraryMonitor.c" - BatchImportRoll* _tmp14_; -#line 588 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp14_ = batch_import_roll_new (); -#line 588 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _batch_import_roll_unref0 (self->priv->current_import_roll); -#line 588 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->current_import_roll = _tmp14_; -#line 4773 "LibraryMonitor.c" - } -#line 589 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp15_ = now; -#line 589 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->last_import_roll_use = _tmp15_; -#line 591 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp16_ = gee_array_list_new (TYPE_BATCH_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL); -#line 591 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - jobs = _tmp16_; -#line 4783 "LibraryMonitor.c" - { - GeeIterator* _file_it = NULL; - GeeHashSet* _tmp17_; - GeeIterator* _tmp18_; -#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp17_ = self->priv->import_queue; -#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp18_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _file_it = _tmp18_; -#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 4796 "LibraryMonitor.c" - GeeIterator* _tmp19_; - GFile* file = NULL; - GeeIterator* _tmp20_; - gpointer _tmp21_; - GFile* _tmp22_; - GeeArrayList* _tmp23_; - GFile* _tmp24_; - FileImportJob* _tmp25_; - FileImportJob* _tmp26_; - GeeHashSet* _tmp27_; - GFile* _tmp28_; -#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp19_ = _file_it; -#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!gee_iterator_next (_tmp19_)) { -#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 4814 "LibraryMonitor.c" - } -#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp20_ = _file_it; -#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp21_ = gee_iterator_get (_tmp20_); -#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - file = (GFile*) _tmp21_; -#line 593 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp22_ = file; -#line 593 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (library_monitor_is_blacklisted (_tmp22_)) { -#line 594 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (file); -#line 594 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - continue; -#line 4830 "LibraryMonitor.c" - } -#line 596 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp23_ = jobs; -#line 596 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp24_ = file; -#line 596 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp25_ = file_import_job_new (_tmp24_, FALSE, TRUE); -#line 596 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp26_ = _tmp25_; -#line 596 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_BATCH_IMPORT_JOB, BatchImportJob)); -#line 596 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _batch_import_job_unref0 (_tmp26_); -#line 597 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp27_ = self->priv->pending_imports; -#line 597 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp28_ = file; -#line 597 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp28_); -#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (file); -#line 4852 "LibraryMonitor.c" - } -#line 592 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_file_it); -#line 4856 "LibraryMonitor.c" - } -#line 600 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp29_ = self->priv->import_queue; -#line 600 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 602 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp30_ = jobs; -#line 602 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp31_ = self->priv->current_import_roll; -#line 602 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp32_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ITERABLE, GeeIterable), "LibraryMonitor autoimport", NULL, NULL, NULL, NULL, NULL, _tmp31_, NULL); -#line 602 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - importer = _tmp32_; -#line 604 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp33_ = importer; -#line 604 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - batch_import_set_untrash_duplicates (_tmp33_, FALSE); -#line 605 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp34_ = importer; -#line 605 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - batch_import_set_mark_duplicates_online (_tmp34_, FALSE); -#line 606 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp35_ = self->priv->batch_import_queue; -#line 606 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp36_ = importer; -#line 606 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp36_); -#line 608 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_schedule_next_batch_import (self); -#line 610 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - result = TRUE; -#line 610 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (importer); -#line 610 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (jobs); -#line 610 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return result; -#line 4894 "LibraryMonitor.c" -} - - -static void -_library_monitor_on_import_preparing_batch_import_preparing (BatchImport* _sender, - gpointer self) -{ -#line 618 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_on_import_preparing ((LibraryMonitor*) self); -#line 4904 "LibraryMonitor.c" -} - - -static void -_library_monitor_on_import_progress_batch_import_progress (BatchImport* _sender, - guint64 completed_bytes, - guint64 total_bytes, - gpointer self) -{ -#line 619 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_on_import_progress ((LibraryMonitor*) self, completed_bytes, total_bytes); -#line 4916 "LibraryMonitor.c" -} - - -static void -_library_monitor_on_import_complete_batch_import_import_complete (BatchImport* _sender, - ImportManifest* manifest, - BatchImportRoll* import_roll, - gpointer self) -{ -#line 620 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_on_import_complete ((LibraryMonitor*) self, _sender, manifest, import_roll); -#line 4928 "LibraryMonitor.c" -} - - -static void -library_monitor_schedule_next_batch_import (LibraryMonitor* self) -{ - gboolean _tmp0_ = FALSE; - BatchImport* _tmp1_; - GeeArrayList* _tmp5_; - gpointer _tmp6_; - BatchImport* _tmp7_; - BatchImport* _tmp8_; - BatchImport* _tmp9_; - BatchImport* _tmp10_; -#line 613 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 614 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = self->priv->current_batch_import; -#line 614 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp1_ != NULL) { -#line 614 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = TRUE; -#line 4951 "LibraryMonitor.c" - } else { - GeeArrayList* _tmp2_; - gint _tmp3_; - gint _tmp4_; -#line 614 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = self->priv->batch_import_queue; -#line 614 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 614 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = _tmp3_; -#line 614 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = _tmp4_ == 0; -#line 4964 "LibraryMonitor.c" - } -#line 614 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp0_) { -#line 615 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 4970 "LibraryMonitor.c" - } -#line 617 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = self->priv->batch_import_queue; -#line 617 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 617 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->current_batch_import); -#line 617 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->current_batch_import = (BatchImport*) _tmp6_; -#line 618 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = self->priv->current_batch_import; -#line 618 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_connect_object (_tmp7_, "preparing", (GCallback) _library_monitor_on_import_preparing_batch_import_preparing, self, 0); -#line 619 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = self->priv->current_batch_import; -#line 619 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_connect_object (_tmp8_, "progress", (GCallback) _library_monitor_on_import_progress_batch_import_progress, self, 0); -#line 620 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = self->priv->current_batch_import; -#line 620 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_connect_object (_tmp9_, "import-complete", (GCallback) _library_monitor_on_import_complete_batch_import_import_complete, self, 0); -#line 621 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = self->priv->current_batch_import; -#line 621 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - batch_import_schedule (_tmp10_); -#line 4996 "LibraryMonitor.c" -} - - -static void -library_monitor_discard_current_batch_import (LibraryMonitor* self) -{ - BatchImport* _tmp0_; - gboolean removed = FALSE; - GeeArrayList* _tmp1_; - BatchImport* _tmp2_; - gboolean _tmp3_; - BatchImport* _tmp4_; - guint _tmp5_; - BatchImport* _tmp6_; - guint _tmp7_; - BatchImport* _tmp8_; - guint _tmp9_; - GeeArrayList* _tmp10_; - gint _tmp11_; - gint _tmp12_; -#line 624 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 625 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->current_batch_import; -#line 625 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _vala_assert (_tmp0_ != NULL, "current_batch_import != null"); -#line 627 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = self->priv->batch_import_queue; -#line 627 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = self->priv->current_batch_import; -#line 627 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - removed = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp2_); -#line 628 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = removed; -#line 628 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _vala_assert (_tmp3_, "removed"); -#line 629 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = self->priv->current_batch_import; -#line 629 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_parse_name ("preparing", TYPE_BATCH_IMPORT, &_tmp5_, NULL, FALSE); -#line 629 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _library_monitor_on_import_preparing_batch_import_preparing, self); -#line 630 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = self->priv->current_batch_import; -#line 630 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_parse_name ("progress", TYPE_BATCH_IMPORT, &_tmp7_, NULL, FALSE); -#line 630 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _library_monitor_on_import_progress_batch_import_progress, self); -#line 631 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = self->priv->current_batch_import; -#line 631 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_parse_name ("import-complete", TYPE_BATCH_IMPORT, &_tmp9_, NULL, FALSE); -#line 631 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_handlers_disconnect_matched (_tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _library_monitor_on_import_complete_batch_import_import_complete, self); -#line 632 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->current_batch_import); -#line 632 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->current_batch_import = NULL; -#line 639 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = self->priv->batch_import_queue; -#line 639 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 639 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = _tmp11_; -#line 639 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp12_ == 0) { -#line 5063 "LibraryMonitor.c" - GeeHashSet* _tmp13_; -#line 640 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = self->priv->pending_imports; -#line 640 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 5069 "LibraryMonitor.c" - } -} - - -static void -library_monitor_cancel_batch_imports (LibraryMonitor* self) -{ - gint ctr = 0; - BatchImport* _tmp16_; - GeeHashSet* _tmp18_; -#line 643 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 645 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ctr = 0; -#line 646 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 5086 "LibraryMonitor.c" - gint _tmp0_; - GeeArrayList* _tmp1_; - gint _tmp2_; - gint _tmp3_; - GeeArrayList* _tmp4_; - gint _tmp5_; - gpointer _tmp6_; - BatchImport* _tmp7_; - BatchImport* _tmp8_; - gboolean _tmp9_; - GeeArrayList* _tmp11_; - GeeArrayList* _tmp12_; - gint _tmp13_; - gpointer _tmp14_; - BatchImport* _tmp15_; -#line 646 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = ctr; -#line 646 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = self->priv->batch_import_queue; -#line 646 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 646 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = _tmp2_; -#line 646 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_tmp0_ < _tmp3_)) { -#line 646 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 5114 "LibraryMonitor.c" - } -#line 647 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = self->priv->batch_import_queue; -#line 647 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = ctr; -#line 647 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp5_); -#line 647 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = (BatchImport*) _tmp6_; -#line 647 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = self->priv->current_batch_import; -#line 647 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = _tmp7_ == _tmp8_; -#line 647 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_tmp7_); -#line 647 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp9_) { -#line 5132 "LibraryMonitor.c" - gint _tmp10_; -#line 648 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = ctr; -#line 648 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ctr = _tmp10_ + 1; -#line 650 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - continue; -#line 5140 "LibraryMonitor.c" - } -#line 653 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = self->priv->batch_import_queue; -#line 653 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = self->priv->batch_import_queue; -#line 653 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = ctr; -#line 653 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp14_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp13_); -#line 653 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp15_ = (BatchImport*) _tmp14_; -#line 653 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_); -#line 653 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_tmp15_); -#line 5156 "LibraryMonitor.c" - } -#line 657 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp16_ = self->priv->current_batch_import; -#line 657 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp16_ != NULL) { -#line 5162 "LibraryMonitor.c" - BatchImport* _tmp17_; -#line 658 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp17_ = self->priv->current_batch_import; -#line 658 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - batch_import_user_halt (_tmp17_); -#line 5168 "LibraryMonitor.c" - } -#line 661 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp18_ = self->priv->pending_imports; -#line 661 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 5174 "LibraryMonitor.c" -} - - -static void -library_monitor_on_import_preparing (LibraryMonitor* self) -{ -#line 664 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 665 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_emit (self, library_monitor_signals[LIBRARY_MONITOR_AUTO_IMPORT_PREPARING_SIGNAL], 0); -#line 5185 "LibraryMonitor.c" -} - - -static void -library_monitor_on_import_progress (LibraryMonitor* self, - guint64 completed_bytes, - guint64 total_bytes) -{ -#line 668 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 669 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_emit (self, library_monitor_signals[LIBRARY_MONITOR_AUTO_IMPORT_PROGRESS_SIGNAL], 0, completed_bytes, total_bytes); -#line 5198 "LibraryMonitor.c" -} - - -static void -library_monitor_on_import_complete (LibraryMonitor* self, - BatchImport* batch_import, - ImportManifest* manifest, - BatchImportRoll* import_roll) -{ - BatchImport* _tmp0_; - GeeList* _tmp1_; - gint _tmp2_; - gint _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - GeeList* _tmp22_; - gint _tmp23_; - gint _tmp24_; - GeeHashSet* _tmp53_; - gint _tmp54_; - gint _tmp55_; - gchar* _tmp56_; - gchar* _tmp57_; - GError * _inner_error_ = NULL; -#line 672 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 672 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_BATCH_IMPORT (batch_import)); -#line 672 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_IMPORT_MANIFEST (manifest)); -#line 672 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_BATCH_IMPORT_ROLL (import_roll)); -#line 674 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->current_batch_import; -#line 674 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _vala_assert (batch_import == _tmp0_, "batch_import == current_batch_import"); -#line 676 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = manifest->all; -#line 676 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 676 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = _tmp2_; -#line 676 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = g_strdup_printf ("auto-import batch completed %d", _tmp3_); -#line 676 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = _tmp4_; -#line 676 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - directory_monitor_mdbg (_tmp5_); -#line 676 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp5_); -#line 677 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_emit (self, library_monitor_signals[LIBRARY_MONITOR_AUTO_IMPORT_PROGRESS_SIGNAL], 0, (guint64) 0, (guint64) 0); -#line 5251 "LibraryMonitor.c" - { - GeeList* _result_list = NULL; - GeeList* _tmp6_; - GeeList* _tmp7_; - gint _result_size = 0; - GeeList* _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _result_index = 0; -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = manifest->all; -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = _g_object_ref0 (_tmp6_); -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _result_list = _tmp7_; -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = _result_list; -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = _tmp9_; -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _result_size = _tmp10_; -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _result_index = -1; -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 5279 "LibraryMonitor.c" - gint _tmp11_; - gint _tmp12_; - gint _tmp13_; - BatchImportResult* _result_ = NULL; - GeeList* _tmp14_; - gint _tmp15_; - gpointer _tmp16_; - BatchImportResult* _tmp17_; - GFile* _tmp18_; -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = _result_index; -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _result_index = _tmp11_ + 1; -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = _result_index; -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = _result_size; -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_tmp12_ < _tmp13_)) { -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 5301 "LibraryMonitor.c" - } -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp14_ = _result_list; -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp15_ = _result_index; -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp16_ = gee_list_get (_tmp14_, _tmp15_); -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _result_ = (BatchImportResult*) _tmp16_; -#line 682 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp17_ = _result_; -#line 682 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp18_ = _tmp17_->file; -#line 682 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp18_ != NULL) { -#line 5317 "LibraryMonitor.c" - GeeHashSet* _tmp19_; - BatchImportResult* _tmp20_; - GFile* _tmp21_; -#line 683 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp19_ = self->priv->pending_imports; -#line 683 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp20_ = _result_; -#line 683 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp21_ = _tmp20_->file; -#line 683 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp21_); -#line 5329 "LibraryMonitor.c" - } -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _batch_import_result_unref0 (_result_); -#line 5333 "LibraryMonitor.c" - } -#line 679 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_result_list); -#line 5337 "LibraryMonitor.c" - } -#line 686 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp22_ = manifest->already_imported; -#line 686 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp23_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 686 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp24_ = _tmp23_; -#line 686 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp24_ > 0) { -#line 5347 "LibraryMonitor.c" - GeeArrayList* to_tombstone = NULL; - GeeArrayList* _tmp25_; -#line 687 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp25_ = gee_array_list_new (TYPE_TOMBSTONED_FILE, (GBoxedCopyFunc) tombstoned_file_ref, (GDestroyNotify) tombstoned_file_unref, NULL, NULL, NULL); -#line 687 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - to_tombstone = _tmp25_; -#line 5354 "LibraryMonitor.c" - { - GeeList* _result_list = NULL; - GeeList* _tmp26_; - GeeList* _tmp27_; - gint _result_size = 0; - GeeList* _tmp28_; - gint _tmp29_; - gint _tmp30_; - gint _result_index = 0; -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp26_ = manifest->already_imported; -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp27_ = _g_object_ref0 (_tmp26_); -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _result_list = _tmp27_; -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp28_ = _result_list; -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp29_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp30_ = _tmp29_; -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _result_size = _tmp30_; -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _result_index = -1; -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 5382 "LibraryMonitor.c" - gint _tmp31_; - gint _tmp32_; - gint _tmp33_; - BatchImportResult* _result_ = NULL; - GeeList* _tmp34_; - gint _tmp35_; - gpointer _tmp36_; - GFileInfo* info = NULL; - BatchImportResult* _tmp37_; - GFile* _tmp38_; - GFileInfo* _tmp39_; - GFileInfo* _tmp40_; - GeeArrayList* _tmp45_; - BatchImportResult* _tmp46_; - GFile* _tmp47_; - GFileInfo* _tmp48_; - TombstonedFile* _tmp49_; - TombstonedFile* _tmp50_; -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp31_ = _result_index; -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _result_index = _tmp31_ + 1; -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp32_ = _result_index; -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp33_ = _result_size; -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_tmp32_ < _tmp33_)) { -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 5413 "LibraryMonitor.c" - } -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp34_ = _result_list; -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp35_ = _result_index; -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp36_ = gee_list_get (_tmp34_, _tmp35_); -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _result_ = (BatchImportResult*) _tmp36_; -#line 689 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp37_ = _result_; -#line 689 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp38_ = _tmp37_->file; -#line 689 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp39_ = directory_monitor_get_file_info (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), _tmp38_); -#line 689 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - info = _tmp39_; -#line 690 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp40_ = info; -#line 690 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp40_ == NULL) { -#line 5435 "LibraryMonitor.c" - BatchImportResult* _tmp41_; - GFile* _tmp42_; - gchar* _tmp43_; - gchar* _tmp44_; -#line 691 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp41_ = _result_; -#line 691 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp42_ = _tmp41_->file; -#line 691 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp43_ = g_file_get_path (_tmp42_); -#line 691 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp44_ = _tmp43_; -#line 691 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_warning ("LibraryMonitor.vala:691: Unable to get info for duplicate file %s", _tmp44_); -#line 691 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp44_); -#line 693 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (info); -#line 693 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _batch_import_result_unref0 (_result_); -#line 693 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - continue; -#line 5458 "LibraryMonitor.c" - } -#line 696 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp45_ = to_tombstone; -#line 696 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp46_ = _result_; -#line 696 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp47_ = _tmp46_->file; -#line 696 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp48_ = info; -#line 696 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp49_ = tombstoned_file_new (_tmp47_, g_file_info_get_size (_tmp48_), NULL); -#line 696 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp50_ = _tmp49_; -#line 696 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp50_); -#line 696 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tombstoned_file_unref0 (_tmp50_); -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (info); -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _batch_import_result_unref0 (_result_); -#line 5480 "LibraryMonitor.c" - } -#line 688 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_result_list); -#line 5484 "LibraryMonitor.c" - } - { - GeeArrayList* _tmp51_; -#line 700 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp51_ = to_tombstone; -#line 700 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - tombstone_entomb_many_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_COLLECTION, GeeCollection), TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE, &_inner_error_); -#line 700 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 700 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 5496 "LibraryMonitor.c" - goto __catch496_database_error; - } -#line 700 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (to_tombstone); -#line 700 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 700 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_clear_error (&_inner_error_); -#line 700 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 5507 "LibraryMonitor.c" - } - } - goto __finally496; - __catch496_database_error: - { - GError* err = NULL; - GError* _tmp52_; -#line 699 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - err = _inner_error_; -#line 699 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _inner_error_ = NULL; -#line 702 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp52_ = err; -#line 702 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - app_window_database_error (_tmp52_); -#line 699 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_error_free0 (err); -#line 5525 "LibraryMonitor.c" - } - __finally496: -#line 699 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 699 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (to_tombstone); -#line 699 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 699 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_clear_error (&_inner_error_); -#line 699 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 5538 "LibraryMonitor.c" - } -#line 686 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (to_tombstone); -#line 5542 "LibraryMonitor.c" - } -#line 706 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp53_ = self->priv->pending_imports; -#line 706 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp54_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 706 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp55_ = _tmp54_; -#line 706 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp56_ = g_strdup_printf ("%d files remain pending for auto-import", _tmp55_); -#line 706 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp57_ = _tmp56_; -#line 706 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - directory_monitor_mdbg (_tmp57_); -#line 706 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp57_); -#line 708 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_discard_current_batch_import (self); -#line 709 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_schedule_next_batch_import (self); -#line 5562 "LibraryMonitor.c" -} - - -void -library_monitor_blacklist_file (GFile* file, - const gchar* reason) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 725 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 725 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (reason != NULL); -#line 726 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = g_file_get_path (file); -#line 726 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _tmp0_; -#line 726 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = g_strdup_printf ("[%s] Blacklisting %s", reason, _tmp1_); -#line 726 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = _tmp2_; -#line 726 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - directory_monitor_mdbg (_tmp3_); -#line 726 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp3_); -#line 726 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp1_); -#line 5593 "LibraryMonitor.c" - { - GeeHashSet* _tmp4_; -#line 727 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = library_monitor_blacklist; -#line 727 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_rec_mutex_lock (&__lock_library_monitor_blacklist); -#line 5600 "LibraryMonitor.c" - { - GeeHashSet* _tmp5_; -#line 728 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = library_monitor_blacklist; -#line 728 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), file); -#line 5607 "LibraryMonitor.c" - } - __finally497: - { - GeeHashSet* _tmp6_; -#line 727 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = library_monitor_blacklist; -#line 727 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_rec_mutex_unlock (&__lock_library_monitor_blacklist); -#line 5616 "LibraryMonitor.c" - } -#line 727 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 727 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 727 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_clear_error (&_inner_error_); -#line 727 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 5626 "LibraryMonitor.c" - } - } -} - - -void -library_monitor_unblacklist_file (GFile* file) -{ - GError * _inner_error_ = NULL; -#line 732 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 5638 "LibraryMonitor.c" - { - GeeHashSet* _tmp0_; -#line 735 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = library_monitor_blacklist; -#line 735 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_rec_mutex_lock (&__lock_library_monitor_blacklist); -#line 5645 "LibraryMonitor.c" - { - gboolean _tmp1_ = FALSE; - GeeHashSet* _tmp2_; -#line 736 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = library_monitor_blacklist; -#line 736 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), file)) { -#line 5653 "LibraryMonitor.c" - HashTimedQueue* _tmp3_; -#line 736 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = library_monitor_to_unblacklist; -#line 736 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = !timed_queue_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_TIMED_QUEUE, TimedQueue), file); -#line 5659 "LibraryMonitor.c" - } else { -#line 736 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = FALSE; -#line 5663 "LibraryMonitor.c" - } -#line 736 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp1_) { -#line 5667 "LibraryMonitor.c" - HashTimedQueue* _tmp4_; -#line 737 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = library_monitor_to_unblacklist; -#line 737 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - timed_queue_enqueue (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_TIMED_QUEUE, TimedQueue), file); -#line 5673 "LibraryMonitor.c" - } - } - __finally498: - { - GeeHashSet* _tmp5_; -#line 735 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = library_monitor_blacklist; -#line 735 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_rec_mutex_unlock (&__lock_library_monitor_blacklist); -#line 5683 "LibraryMonitor.c" - } -#line 735 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 735 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 735 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_clear_error (&_inner_error_); -#line 735 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 5693 "LibraryMonitor.c" - } - } -} - - -static void -library_monitor_on_unblacklist_file (GFile* file) -{ - gboolean removed = FALSE; - GError * _inner_error_ = NULL; -#line 741 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 5706 "LibraryMonitor.c" - { - GeeHashSet* _tmp0_; -#line 743 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = library_monitor_blacklist; -#line 743 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_rec_mutex_lock (&__lock_library_monitor_blacklist); -#line 5713 "LibraryMonitor.c" - { - GeeHashSet* _tmp1_; -#line 744 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = library_monitor_blacklist; -#line 744 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - removed = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), file); -#line 5720 "LibraryMonitor.c" - } - __finally499: - { - GeeHashSet* _tmp2_; -#line 743 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = library_monitor_blacklist; -#line 743 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_rec_mutex_unlock (&__lock_library_monitor_blacklist); -#line 5729 "LibraryMonitor.c" - } -#line 743 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 743 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 743 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_clear_error (&_inner_error_); -#line 743 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 5739 "LibraryMonitor.c" - } - } -#line 747 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (removed) { -#line 5744 "LibraryMonitor.c" - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 748 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = g_file_get_path (file); -#line 748 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = _tmp3_; -#line 748 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = g_strdup_printf ("Blacklist for %s removed", _tmp4_); -#line 748 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = _tmp5_; -#line 748 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - directory_monitor_mdbg (_tmp6_); -#line 748 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp6_); -#line 748 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp4_); -#line 5763 "LibraryMonitor.c" - } else { - gchar* _tmp7_; - gchar* _tmp8_; -#line 750 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = g_file_get_path (file); -#line 750 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = _tmp7_; -#line 750 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_warning ("LibraryMonitor.vala:750: File %s was not blacklisted but unblacklisted", _tmp8_); -#line 750 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp8_); -#line 5775 "LibraryMonitor.c" - } -} - - -gboolean -library_monitor_is_blacklisted (GFile* file) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 753 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 5787 "LibraryMonitor.c" - { - GeeHashSet* _tmp0_; - gboolean _tmp4_ = FALSE; -#line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = library_monitor_blacklist; -#line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_rec_mutex_lock (&__lock_library_monitor_blacklist); -#line 5795 "LibraryMonitor.c" - { - GeeHashSet* _tmp1_; -#line 755 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = library_monitor_blacklist; -#line 755 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - result = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), file); -#line 5802 "LibraryMonitor.c" - { - GeeHashSet* _tmp2_; -#line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = library_monitor_blacklist; -#line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_rec_mutex_unlock (&__lock_library_monitor_blacklist); -#line 5809 "LibraryMonitor.c" - } -#line 755 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return result; -#line 5813 "LibraryMonitor.c" - } - __finally500: - { - GeeHashSet* _tmp3_; -#line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = library_monitor_blacklist; -#line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_rec_mutex_unlock (&__lock_library_monitor_blacklist); -#line 5822 "LibraryMonitor.c" - } -#line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_clear_error (&_inner_error_); -#line 754 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return _tmp4_; -#line 5830 "LibraryMonitor.c" - } -} - - -static gboolean -library_monitor_is_supported_filetype (LibraryMonitor* self, - GFile* file) -{ - gboolean result = FALSE; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - MediaSourceCollection* _tmp2_; - MediaSourceCollection* _tmp3_; - gboolean _tmp4_; -#line 759 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (IS_LIBRARY_MONITOR (self), FALSE); -#line 759 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _tmp0_; -#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = media_collection_registry_get_collection_for_file (_tmp1_, file); -#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = _tmp2_; -#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = _tmp3_ != NULL; -#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _data_collection_unref0 (_tmp3_); -#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - result = _tmp4_; -#line 760 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return result; -#line 5867 "LibraryMonitor.c" -} - - -static void -library_monitor_import_unrepresented_files (LibraryMonitor* self) -{ - gboolean _tmp0_; - GeeArrayList* to_import = NULL; - GeeArrayList* _tmp36_; -#line 765 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 766 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->auto_import; -#line 766 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!_tmp0_) { -#line 767 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 5885 "LibraryMonitor.c" - } -#line 769 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - to_import = NULL; -#line 5889 "LibraryMonitor.c" - { - GeeIterator* _file_it = NULL; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = directory_monitor_get_files (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor)); -#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _tmp1_; -#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = _tmp3_; -#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_tmp2_); -#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _file_it = _tmp4_; -#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 5910 "LibraryMonitor.c" - GeeIterator* _tmp5_; - GFile* file = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - GFileInfo* info = NULL; - GFile* _tmp8_; - GFileInfo* _tmp9_; - gboolean _tmp10_ = FALSE; - GFileInfo* _tmp11_; - GeeHashSet* _tmp13_; - GFile* _tmp14_; - TombstoneSourceCollection* _tmp15_; - GFile* _tmp16_; - gboolean represented = FALSE; - gboolean _tmp30_; - GFile* _tmp31_; - GeeArrayList* _tmp32_; - GeeArrayList* _tmp34_; - GFile* _tmp35_; -#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = _file_it; -#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 5936 "LibraryMonitor.c" - } -#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = _file_it; -#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - file = (GFile*) _tmp7_; -#line 771 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = file; -#line 771 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = directory_monitor_get_file_info (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), _tmp8_); -#line 771 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - info = _tmp9_; -#line 772 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = info; -#line 772 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp11_ == NULL) { -#line 772 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = TRUE; -#line 5956 "LibraryMonitor.c" - } else { - GFileInfo* _tmp12_; -#line 772 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = info; -#line 772 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = g_file_info_get_file_type (_tmp12_) != G_FILE_TYPE_REGULAR; -#line 5963 "LibraryMonitor.c" - } -#line 772 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp10_) { -#line 773 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (info); -#line 773 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (file); -#line 773 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - continue; -#line 5973 "LibraryMonitor.c" - } -#line 775 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = self->priv->pending_imports; -#line 775 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp14_ = file; -#line 775 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_)) { -#line 776 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (info); -#line 776 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (file); -#line 776 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - continue; -#line 5987 "LibraryMonitor.c" - } -#line 778 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp15_ = tombstone_global; -#line 778 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp16_ = file; -#line 778 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (tombstone_source_collection_matches (_tmp15_, _tmp16_)) { -#line 779 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (info); -#line 779 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (file); -#line 779 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - continue; -#line 6001 "LibraryMonitor.c" - } -#line 781 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - represented = FALSE; -#line 6005 "LibraryMonitor.c" - { - GeeList* _monitor_list = NULL; - GeeList* _tmp17_; - GeeList* _tmp18_; - gint _monitor_size = 0; - GeeList* _tmp19_; - gint _tmp20_; - gint _tmp21_; - gint _monitor_index = 0; -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp17_ = self->priv->monitors; -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp18_ = _g_object_ref0 (_tmp17_); -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_list = _tmp18_; -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp19_ = _monitor_list; -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp20_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp21_ = _tmp20_; -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_size = _tmp21_; -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = -1; -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 6033 "LibraryMonitor.c" - gint _tmp22_; - gint _tmp23_; - gint _tmp24_; - MediaMonitor* monitor = NULL; - GeeList* _tmp25_; - gint _tmp26_; - gpointer _tmp27_; - MediaMonitor* _tmp28_; - GFile* _tmp29_; -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp22_ = _monitor_index; -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = _tmp22_ + 1; -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp23_ = _monitor_index; -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp24_ = _monitor_size; -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_tmp23_ < _tmp24_)) { -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 6055 "LibraryMonitor.c" - } -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp25_ = _monitor_list; -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp26_ = _monitor_index; -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp27_ = gee_list_get (_tmp25_, _tmp26_); -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitor = (MediaMonitor*) _tmp27_; -#line 783 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp28_ = monitor; -#line 783 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp29_ = file; -#line 783 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (media_monitor_is_file_represented (_tmp28_, _tmp29_)) { -#line 784 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - represented = TRUE; -#line 786 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 786 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 6077 "LibraryMonitor.c" - } -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 6081 "LibraryMonitor.c" - } -#line 782 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_monitor_list); -#line 6085 "LibraryMonitor.c" - } -#line 790 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp30_ = represented; -#line 790 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp30_) { -#line 791 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (info); -#line 791 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (file); -#line 791 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - continue; -#line 6097 "LibraryMonitor.c" - } -#line 793 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp31_ = file; -#line 793 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!library_monitor_is_supported_filetype (self, _tmp31_)) { -#line 794 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (info); -#line 794 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (file); -#line 794 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - continue; -#line 6109 "LibraryMonitor.c" - } -#line 796 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp32_ = to_import; -#line 796 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp32_ == NULL) { -#line 6115 "LibraryMonitor.c" - GeeArrayList* _tmp33_; -#line 797 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp33_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_equal_gee_equal_data_func, NULL, NULL); -#line 797 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (to_import); -#line 797 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - to_import = _tmp33_; -#line 6123 "LibraryMonitor.c" - } -#line 799 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp34_ = to_import; -#line 799 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp35_ = file; -#line 799 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp35_); -#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (info); -#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (file); -#line 6135 "LibraryMonitor.c" - } -#line 770 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_file_it); -#line 6139 "LibraryMonitor.c" - } -#line 802 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp36_ = to_import; -#line 802 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp36_ != NULL) { -#line 6145 "LibraryMonitor.c" - GeeArrayList* _tmp37_; -#line 803 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp37_ = to_import; -#line 803 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_enqueue_import_many (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 6151 "LibraryMonitor.c" - } -#line 765 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (to_import); -#line 6155 "LibraryMonitor.c" -} - - -static void -library_monitor_runtime_unknown_file_discovered (LibraryMonitor* self, - GFile* file) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_; -#line 808 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 808 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = self->priv->auto_import; -#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp2_) { -#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = library_monitor_is_supported_filetype (self, file); -#line 6176 "LibraryMonitor.c" - } else { -#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = FALSE; -#line 6180 "LibraryMonitor.c" - } -#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp1_) { -#line 6184 "LibraryMonitor.c" - TombstoneSourceCollection* _tmp3_; -#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = tombstone_global; -#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = !tombstone_source_collection_matches (_tmp3_, file); -#line 6190 "LibraryMonitor.c" - } else { -#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = FALSE; -#line 6194 "LibraryMonitor.c" - } -#line 809 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp0_) { -#line 6198 "LibraryMonitor.c" - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 810 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = g_file_get_path (file); -#line 810 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = _tmp4_; -#line 810 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = g_strdup_printf ("Unknown file %s discovered, enqueuing for import", _tmp5_); -#line 810 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = _tmp6_; -#line 810 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - directory_monitor_mdbg (_tmp7_); -#line 810 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp7_); -#line 810 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp5_); -#line 811 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_enqueue_import (self, file); -#line 6219 "LibraryMonitor.c" - } -} - - -static void -library_monitor_real_notify_file_created (DirectoryMonitor* base, - GFile* file, - GFileInfo* info) -{ - LibraryMonitor * self; - gboolean known = FALSE; - gboolean _tmp12_; - gboolean _tmp83_; -#line 815 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor); -#line 815 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 815 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 816 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (library_monitor_is_blacklisted (file)) { -#line 817 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_created (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file, info); -#line 819 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 6245 "LibraryMonitor.c" - } -#line 822 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - known = FALSE; -#line 6249 "LibraryMonitor.c" - { - GeeList* _monitor_list = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _monitor_size = 0; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _monitor_index = 0; -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->monitors; -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_list = _tmp1_; -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _monitor_list; -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = _tmp3_; -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_size = _tmp4_; -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = -1; -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 6277 "LibraryMonitor.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - MediaMonitor* monitor = NULL; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - MediaMonitor* _tmp11_; -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = _monitor_index; -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = _tmp5_ + 1; -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = _monitor_index; -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = _monitor_size; -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 6298 "LibraryMonitor.c" - } -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = _monitor_list; -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = _monitor_index; -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitor = (MediaMonitor*) _tmp10_; -#line 824 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = monitor; -#line 824 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (media_monitor_notify_file_created (_tmp11_, file, info)) { -#line 825 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - known = TRUE; -#line 827 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 827 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 6318 "LibraryMonitor.c" - } -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 6322 "LibraryMonitor.c" - } -#line 823 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_monitor_list); -#line 6326 "LibraryMonitor.c" - } -#line 831 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = known; -#line 831 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!_tmp12_) { -#line 6332 "LibraryMonitor.c" - GeeHashSet* all_candidates = NULL; - gboolean _tmp65_ = FALSE; - gboolean _tmp66_ = FALSE; - gboolean _tmp67_; -#line 833 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - all_candidates = NULL; -#line 6339 "LibraryMonitor.c" - { - GeeList* _monitor_list = NULL; - GeeList* _tmp13_; - GeeList* _tmp14_; - gint _monitor_size = 0; - GeeList* _tmp15_; - gint _tmp16_; - gint _tmp17_; - gint _monitor_index = 0; -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = self->priv->monitors; -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp14_ = _g_object_ref0 (_tmp13_); -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_list = _tmp14_; -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp15_ = _monitor_list; -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp16_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp17_ = _tmp16_; -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_size = _tmp17_; -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = -1; -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 6367 "LibraryMonitor.c" - gint _tmp18_; - gint _tmp19_; - gint _tmp20_; - MediaMonitor* monitor = NULL; - GeeList* _tmp21_; - gint _tmp22_; - gpointer _tmp23_; - MediaMonitorDiscoveredFile _result_ = 0; - GeeCollection* candidates = NULL; - MediaMonitor* _tmp24_; - MediaMonitorDiscoveredFile _tmp25_ = 0; - GeeCollection* _tmp26_; - gboolean _tmp27_ = FALSE; - MediaMonitorDiscoveredFile _tmp28_; -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp18_ = _monitor_index; -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = _tmp18_ + 1; -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp19_ = _monitor_index; -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp20_ = _monitor_size; -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_tmp19_ < _tmp20_)) { -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 6394 "LibraryMonitor.c" - } -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp21_ = _monitor_list; -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp22_ = _monitor_index; -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp23_ = gee_list_get (_tmp21_, _tmp22_); -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitor = (MediaMonitor*) _tmp23_; -#line 836 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp24_ = monitor; -#line 836 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp26_ = media_monitor_candidates_for_unknown_file (_tmp24_, file, info, &_tmp25_); -#line 836 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _result_ = _tmp25_; -#line 836 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - candidates = _tmp26_; -#line 838 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp28_ = _result_; -#line 838 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp28_ == MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED) { -#line 838 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp27_ = TRUE; -#line 6418 "LibraryMonitor.c" - } else { - MediaMonitorDiscoveredFile _tmp29_; -#line 839 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp29_ = _result_; -#line 839 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp27_ = _tmp29_ == MEDIA_MONITOR_DISCOVERED_FILE_IGNORE; -#line 6425 "LibraryMonitor.c" - } -#line 838 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp27_) { -#line 6429 "LibraryMonitor.c" - MediaMonitor* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - MediaMonitorDiscoveredFile _tmp33_; - GEnumValue* _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; - gchar* _tmp37_; - gchar* _tmp38_; -#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp30_ = monitor; -#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp31_ = media_monitor_to_string (_tmp30_); -#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp32_ = _tmp31_; -#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp33_ = _result_; -#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp34_ = g_enum_get_value (g_type_class_ref (MEDIA_MONITOR_TYPE_DISCOVERED_FILE), _tmp33_); -#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp35_ = g_file_get_path (file); -#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp36_ = _tmp35_; -#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp37_ = g_strdup_printf ("%s %s created file %s", _tmp32_, (_tmp34_ != NULL) ? _tmp34_->value_name : NULL, _tmp36_); -#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp38_ = _tmp37_; -#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - directory_monitor_mdbg (_tmp38_); -#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp38_); -#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp36_); -#line 840 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp32_); -#line 843 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - known = TRUE; -#line 845 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (candidates); -#line 845 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 845 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 6473 "LibraryMonitor.c" - } else { - gboolean _tmp39_ = FALSE; - GeeCollection* _tmp40_; -#line 846 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp40_ = candidates; -#line 846 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp40_ != NULL) { -#line 6481 "LibraryMonitor.c" - GeeCollection* _tmp41_; - gint _tmp42_; - gint _tmp43_; -#line 846 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp41_ = candidates; -#line 846 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp42_ = gee_collection_get_size (_tmp41_); -#line 846 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp43_ = _tmp42_; -#line 846 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp39_ = _tmp43_ > 0; -#line 6493 "LibraryMonitor.c" - } else { -#line 846 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp39_ = FALSE; -#line 6497 "LibraryMonitor.c" - } -#line 846 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp39_) { -#line 6501 "LibraryMonitor.c" - MediaMonitor* _tmp44_; - gchar* _tmp45_; - gchar* _tmp46_; - GeeCollection* _tmp47_; - gint _tmp48_; - gint _tmp49_; - gchar* _tmp50_; - gchar* _tmp51_; - gchar* _tmp52_; - gchar* _tmp53_; - GeeHashSet* _tmp54_; -#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp44_ = monitor; -#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp45_ = media_monitor_to_string (_tmp44_); -#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp46_ = _tmp45_; -#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp47_ = candidates; -#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp48_ = gee_collection_get_size (_tmp47_); -#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp49_ = _tmp48_; -#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp50_ = g_file_get_path (file); -#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp51_ = _tmp50_; -#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp52_ = g_strdup_printf ("%s suggests %d candidates for created file %s", _tmp46_, _tmp49_, _tmp51_); -#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp53_ = _tmp52_; -#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - directory_monitor_mdbg (_tmp53_); -#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp53_); -#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp51_); -#line 847 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp46_); -#line 850 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp54_ = all_candidates; -#line 850 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp54_ == NULL) { -#line 6545 "LibraryMonitor.c" - GeeHashSet* _tmp55_; -#line 851 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp55_ = gee_hash_set_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 851 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (all_candidates); -#line 851 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - all_candidates = _tmp55_; -#line 6553 "LibraryMonitor.c" - } - { - GeeIterator* _candidate_it = NULL; - GeeCollection* _tmp56_; - GeeIterator* _tmp57_; -#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp56_ = candidates; -#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp57_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _candidate_it = _tmp57_; -#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 6567 "LibraryMonitor.c" - GeeIterator* _tmp58_; - Monitorable* candidate = NULL; - GeeIterator* _tmp59_; - gpointer _tmp60_; - MediaMonitor* _tmp61_; - Monitorable* _tmp62_; -#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp58_ = _candidate_it; -#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!gee_iterator_next (_tmp58_)) { -#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 6580 "LibraryMonitor.c" - } -#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp59_ = _candidate_it; -#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp60_ = gee_iterator_get (_tmp59_); -#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - candidate = (Monitorable*) _tmp60_; -#line 854 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp61_ = monitor; -#line 854 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp62_ = candidate; -#line 854 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (media_monitor_is_offline (_tmp61_, _tmp62_)) { -#line 6594 "LibraryMonitor.c" - GeeHashSet* _tmp63_; - Monitorable* _tmp64_; -#line 855 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp63_ = all_candidates; -#line 855 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp64_ = candidate; -#line 855 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp64_); -#line 6603 "LibraryMonitor.c" - } -#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (candidate); -#line 6607 "LibraryMonitor.c" - } -#line 853 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_candidate_it); -#line 6611 "LibraryMonitor.c" - } - } - } -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (candidates); -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 6619 "LibraryMonitor.c" - } -#line 834 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_monitor_list); -#line 6623 "LibraryMonitor.c" - } -#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp67_ = known; -#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!_tmp67_) { -#line 6629 "LibraryMonitor.c" - GeeHashSet* _tmp68_; -#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp68_ = all_candidates; -#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp66_ = _tmp68_ != NULL; -#line 6635 "LibraryMonitor.c" - } else { -#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp66_ = FALSE; -#line 6639 "LibraryMonitor.c" - } -#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp66_) { -#line 6643 "LibraryMonitor.c" - GeeHashSet* _tmp69_; - gint _tmp70_; - gint _tmp71_; -#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp69_ = all_candidates; -#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp70_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp71_ = _tmp70_; -#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp65_ = _tmp71_ > 0; -#line 6655 "LibraryMonitor.c" - } else { -#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp65_ = FALSE; -#line 6659 "LibraryMonitor.c" - } -#line 860 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp65_) { -#line 6663 "LibraryMonitor.c" - GeeHashSet* _tmp72_; - gint _tmp73_; - gint _tmp74_; - gchar* _tmp75_; - gchar* _tmp76_; - gchar* _tmp77_; - gchar* _tmp78_; - Workers* _tmp79_; - GeeHashSet* _tmp80_; - LibraryMonitorRuntimeFindMoveJob* _tmp81_; - LibraryMonitorRuntimeFindMoveJob* _tmp82_; -#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp72_ = all_candidates; -#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp73_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp74_ = _tmp73_; -#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp75_ = g_file_get_path (file); -#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp76_ = _tmp75_; -#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp77_ = g_strdup_printf ("%d candidates for created file %s being checksummed", _tmp74_, _tmp76_); -#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp78_ = _tmp77_; -#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - directory_monitor_mdbg (_tmp78_); -#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp78_); -#line 861 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp76_); -#line 864 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp79_ = self->priv->workers; -#line 864 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp80_ = all_candidates; -#line 864 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp81_ = library_monitor_runtime_find_move_job_new (self, file, G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 864 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp82_ = _tmp81_; -#line 864 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - workers_enqueue (_tmp79_, G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 864 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _background_job_unref0 (_tmp82_); -#line 866 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - known = TRUE; -#line 6709 "LibraryMonitor.c" - } -#line 831 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (all_candidates); -#line 6713 "LibraryMonitor.c" - } -#line 870 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp83_ = known; -#line 870 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!_tmp83_) { -#line 871 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_runtime_unknown_file_discovered (self, file); -#line 6721 "LibraryMonitor.c" - } -#line 873 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_created (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file, info); -#line 6725 "LibraryMonitor.c" -} - - -static void -library_monitor_on_runtime_find_move_completed (LibraryMonitor* self, - BackgroundJob* j) -{ - LibraryMonitorRuntimeFindMoveJob* job = NULL; - LibraryMonitorRuntimeFindMoveJob* _tmp0_; - LibraryMonitorRuntimeFindMoveJob* _tmp1_; - GError* _tmp2_; - LibraryMonitorRuntimeFindMoveJob* _tmp10_; - Monitorable* _tmp11_; -#line 876 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (self)); -#line 876 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 877 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB, LibraryMonitorRuntimeFindMoveJob)); -#line 877 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - job = _tmp0_; -#line 879 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = job; -#line 879 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _tmp1_->err; -#line 879 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp2_ != NULL) { -#line 6753 "LibraryMonitor.c" - LibraryMonitorRuntimeFindMoveJob* _tmp3_; - GFile* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - LibraryMonitorRuntimeFindMoveJob* _tmp7_; - GError* _tmp8_; - const gchar* _tmp9_; -#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = job; -#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = _tmp3_->file; -#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = g_file_get_path (_tmp4_); -#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = _tmp5_; -#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = job; -#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = _tmp7_->err; -#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = _tmp8_->message; -#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_critical ("LibraryMonitor.vala:880: Error attempting to find a match at runtime f" \ -"or %s: %s", _tmp6_, _tmp9_); -#line 880 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp6_); -#line 6779 "LibraryMonitor.c" - } -#line 884 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = job; -#line 884 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = _tmp10_->match; -#line 884 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp11_ != NULL) { -#line 6787 "LibraryMonitor.c" - MediaMonitor* monitor = NULL; - LibraryMonitorRuntimeFindMoveJob* _tmp12_; - Monitorable* _tmp13_; - MediaMonitor* _tmp14_; - MediaMonitor* _tmp15_; - LibraryMonitorRuntimeFindMoveJob* _tmp16_; - Monitorable* _tmp17_; - LibraryMonitorRuntimeFindMoveJob* _tmp18_; - GFile* _tmp19_; - MediaMonitor* _tmp20_; - LibraryMonitorRuntimeFindMoveJob* _tmp21_; - Monitorable* _tmp22_; -#line 885 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = job; -#line 885 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = _tmp12_->match; -#line 885 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp14_ = library_monitor_get_monitor_for_monitorable (self, _tmp13_); -#line 885 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitor = _tmp14_; -#line 886 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp15_ = monitor; -#line 886 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp16_ = job; -#line 886 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp17_ = _tmp16_->match; -#line 886 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp18_ = job; -#line 886 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp19_ = _tmp18_->file; -#line 886 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - media_monitor_update_master_file (_tmp15_, _tmp17_, _tmp19_); -#line 887 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp20_ = monitor; -#line 887 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp21_ = job; -#line 887 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp22_ = _tmp21_->match; -#line 887 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - media_monitor_update_online (_tmp20_, _tmp22_); -#line 884 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 6830 "LibraryMonitor.c" - } else { - LibraryMonitorRuntimeFindMoveJob* _tmp23_; - GFile* _tmp24_; -#line 890 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp23_ = job; -#line 890 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp24_ = _tmp23_->file; -#line 890 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_runtime_unknown_file_discovered (self, _tmp24_); -#line 6840 "LibraryMonitor.c" - } -#line 876 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _background_job_unref0 (job); -#line 6844 "LibraryMonitor.c" -} - - -static void -library_monitor_real_notify_file_moved (DirectoryMonitor* base, - GFile* old_file, - GFile* new_file, - GFileInfo* new_info) -{ - LibraryMonitor * self; - gboolean _tmp0_ = FALSE; - gboolean known = FALSE; - gboolean _tmp13_; -#line 894 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor); -#line 894 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE (old_file)); -#line 894 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE (new_file)); -#line 894 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (new_info)); -#line 895 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (library_monitor_is_blacklisted (old_file)) { -#line 895 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = TRUE; -#line 6870 "LibraryMonitor.c" - } else { -#line 895 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = library_monitor_is_blacklisted (new_file); -#line 6874 "LibraryMonitor.c" - } -#line 895 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp0_) { -#line 896 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_moved (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), old_file, new_file, new_info); -#line 898 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 6882 "LibraryMonitor.c" - } -#line 901 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - known = FALSE; -#line 6886 "LibraryMonitor.c" - { - GeeList* _monitor_list = NULL; - GeeList* _tmp1_; - GeeList* _tmp2_; - gint _monitor_size = 0; - GeeList* _tmp3_; - gint _tmp4_; - gint _tmp5_; - gint _monitor_index = 0; -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = self->priv->monitors; -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_list = _tmp2_; -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = _monitor_list; -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = _tmp4_; -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_size = _tmp5_; -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = -1; -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 6914 "LibraryMonitor.c" - gint _tmp6_; - gint _tmp7_; - gint _tmp8_; - MediaMonitor* monitor = NULL; - GeeList* _tmp9_; - gint _tmp10_; - gpointer _tmp11_; - MediaMonitor* _tmp12_; -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = _monitor_index; -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = _tmp6_ + 1; -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = _monitor_index; -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = _monitor_size; -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_tmp7_ < _tmp8_)) { -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 6935 "LibraryMonitor.c" - } -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = _monitor_list; -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = _monitor_index; -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = gee_list_get (_tmp9_, _tmp10_); -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitor = (MediaMonitor*) _tmp11_; -#line 903 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = monitor; -#line 903 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (media_monitor_notify_file_moved (_tmp12_, old_file, new_file, new_info)) { -#line 904 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - known = TRUE; -#line 906 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 906 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 6955 "LibraryMonitor.c" - } -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 6959 "LibraryMonitor.c" - } -#line 902 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_monitor_list); -#line 6963 "LibraryMonitor.c" - } -#line 910 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = known; -#line 910 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!_tmp13_) { -#line 911 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_runtime_unknown_file_discovered (self, new_file); -#line 6971 "LibraryMonitor.c" - } -#line 913 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_moved (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), old_file, new_file, new_info); -#line 6975 "LibraryMonitor.c" -} - - -static void -library_monitor_real_notify_file_altered (DirectoryMonitor* base, - GFile* file) -{ - LibraryMonitor * self; - gboolean known = FALSE; - gboolean _tmp12_; -#line 916 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor); -#line 916 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 917 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (library_monitor_is_blacklisted (file)) { -#line 918 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file); -#line 920 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 6996 "LibraryMonitor.c" - } -#line 923 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - known = FALSE; -#line 7000 "LibraryMonitor.c" - { - GeeList* _monitor_list = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _monitor_size = 0; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _monitor_index = 0; -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->monitors; -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_list = _tmp1_; -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _monitor_list; -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = _tmp3_; -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_size = _tmp4_; -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = -1; -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 7028 "LibraryMonitor.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - MediaMonitor* monitor = NULL; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - MediaMonitor* _tmp11_; -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = _monitor_index; -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = _tmp5_ + 1; -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = _monitor_index; -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = _monitor_size; -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 7049 "LibraryMonitor.c" - } -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = _monitor_list; -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = _monitor_index; -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitor = (MediaMonitor*) _tmp10_; -#line 925 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = monitor; -#line 925 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (media_monitor_notify_file_altered (_tmp11_, file)) { -#line 926 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - known = TRUE; -#line 928 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 928 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 7069 "LibraryMonitor.c" - } -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 7073 "LibraryMonitor.c" - } -#line 924 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_monitor_list); -#line 7077 "LibraryMonitor.c" - } -#line 932 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = known; -#line 932 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!_tmp12_) { -#line 933 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_runtime_unknown_file_discovered (self, file); -#line 7085 "LibraryMonitor.c" - } -#line 935 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file); -#line 7089 "LibraryMonitor.c" -} - - -static void -library_monitor_real_notify_file_attributes_altered (DirectoryMonitor* base, - GFile* file) -{ - LibraryMonitor * self; - gboolean known = FALSE; - gboolean _tmp12_; -#line 938 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor); -#line 938 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 939 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (library_monitor_is_blacklisted (file)) { -#line 940 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_attributes_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file); -#line 942 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 7110 "LibraryMonitor.c" - } -#line 945 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - known = FALSE; -#line 7114 "LibraryMonitor.c" - { - GeeList* _monitor_list = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _monitor_size = 0; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _monitor_index = 0; -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->monitors; -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_list = _tmp1_; -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _monitor_list; -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = _tmp3_; -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_size = _tmp4_; -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = -1; -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 7142 "LibraryMonitor.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - MediaMonitor* monitor = NULL; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - MediaMonitor* _tmp11_; -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = _monitor_index; -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = _tmp5_ + 1; -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = _monitor_index; -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = _monitor_size; -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 7163 "LibraryMonitor.c" - } -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = _monitor_list; -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = _monitor_index; -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitor = (MediaMonitor*) _tmp10_; -#line 947 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = monitor; -#line 947 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (media_monitor_notify_file_attributes_altered (_tmp11_, file)) { -#line 948 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - known = TRUE; -#line 950 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 950 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 7183 "LibraryMonitor.c" - } -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 7187 "LibraryMonitor.c" - } -#line 946 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_monitor_list); -#line 7191 "LibraryMonitor.c" - } -#line 954 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = known; -#line 954 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!_tmp12_) { -#line 955 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_runtime_unknown_file_discovered (self, file); -#line 7199 "LibraryMonitor.c" - } -#line 957 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_attributes_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file); -#line 7203 "LibraryMonitor.c" -} - - -static void -library_monitor_real_notify_file_alteration_completed (DirectoryMonitor* base, - GFile* file, - GFileInfo* info) -{ - LibraryMonitor * self; - gboolean known = FALSE; - gboolean _tmp12_; -#line 960 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor); -#line 960 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 960 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 961 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (library_monitor_is_blacklisted (file)) { -#line 962 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_alteration_completed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file, info); -#line 964 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 7227 "LibraryMonitor.c" - } -#line 967 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - known = FALSE; -#line 7231 "LibraryMonitor.c" - { - GeeList* _monitor_list = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _monitor_size = 0; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _monitor_index = 0; -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->monitors; -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_list = _tmp1_; -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _monitor_list; -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = _tmp3_; -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_size = _tmp4_; -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = -1; -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 7259 "LibraryMonitor.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - MediaMonitor* monitor = NULL; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - MediaMonitor* _tmp11_; -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = _monitor_index; -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = _tmp5_ + 1; -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = _monitor_index; -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = _monitor_size; -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 7280 "LibraryMonitor.c" - } -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = _monitor_list; -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = _monitor_index; -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitor = (MediaMonitor*) _tmp10_; -#line 969 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = monitor; -#line 969 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (media_monitor_notify_file_alteration_completed (_tmp11_, file, info)) { -#line 970 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - known = TRUE; -#line 972 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 972 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 7300 "LibraryMonitor.c" - } -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 7304 "LibraryMonitor.c" - } -#line 968 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_monitor_list); -#line 7308 "LibraryMonitor.c" - } -#line 976 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = known; -#line 976 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!_tmp12_) { -#line 977 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_runtime_unknown_file_discovered (self, file); -#line 7316 "LibraryMonitor.c" - } -#line 979 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_alteration_completed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file, info); -#line 7320 "LibraryMonitor.c" -} - - -static void -library_monitor_real_notify_file_deleted (DirectoryMonitor* base, - GFile* file) -{ - LibraryMonitor * self; - gboolean known = FALSE; - gboolean _tmp12_; -#line 982 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_MONITOR, LibraryMonitor); -#line 982 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 983 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (library_monitor_is_blacklisted (file)) { -#line 984 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_deleted (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file); -#line 986 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 7341 "LibraryMonitor.c" - } -#line 989 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - known = FALSE; -#line 7345 "LibraryMonitor.c" - { - GeeList* _monitor_list = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _monitor_size = 0; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _monitor_index = 0; -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->priv->monitors; -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_list = _tmp1_; -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _monitor_list; -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = _tmp3_; -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_size = _tmp4_; -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = -1; -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 7373 "LibraryMonitor.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - MediaMonitor* monitor = NULL; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - MediaMonitor* _tmp11_; -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = _monitor_index; -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _monitor_index = _tmp5_ + 1; -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = _monitor_index; -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = _monitor_size; -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 7394 "LibraryMonitor.c" - } -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = _monitor_list; -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = _monitor_index; -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - monitor = (MediaMonitor*) _tmp10_; -#line 991 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = monitor; -#line 991 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (media_monitor_notify_file_deleted (_tmp11_, file)) { -#line 992 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - known = TRUE; -#line 994 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 994 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 7414 "LibraryMonitor.c" - } -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (monitor); -#line 7418 "LibraryMonitor.c" - } -#line 990 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_monitor_list); -#line 7422 "LibraryMonitor.c" - } -#line 998 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = known; -#line 998 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!_tmp12_) { -#line 7428 "LibraryMonitor.c" - Tombstone* tombstone = NULL; - TombstoneSourceCollection* _tmp13_; - Tombstone* _tmp14_; - Tombstone* _tmp15_; -#line 1000 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = tombstone_global; -#line 1000 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp14_ = tombstone_source_collection_locate (_tmp13_, file); -#line 1000 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - tombstone = _tmp14_; -#line 1001 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp15_ = tombstone; -#line 1001 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp15_ != NULL) { -#line 7443 "LibraryMonitor.c" - gchar* _tmp16_; - gchar* _tmp17_; - TombstoneSourceCollection* _tmp18_; - Tombstone* _tmp19_; -#line 1002 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp16_ = g_file_get_path (file); -#line 1002 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp17_ = _tmp16_; -#line 1002 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_debug ("LibraryMonitor.vala:1002: Resurrecting tombstoned file %s", _tmp17_); -#line 1002 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp17_); -#line 1003 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp18_ = tombstone_global; -#line 1003 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp19_ = tombstone; -#line 1003 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - tombstone_source_collection_resurrect (_tmp18_, _tmp19_); -#line 7462 "LibraryMonitor.c" - } -#line 1007 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_remove_queued_import (self, file); -#line 998 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (tombstone); -#line 7468 "LibraryMonitor.c" - } -#line 1010 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - DIRECTORY_MONITOR_CLASS (library_monitor_parent_class)->notify_file_deleted (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), file); -#line 7472 "LibraryMonitor.c" -} - - -static void -g_cclosure_user_marshal_VOID__INT_INT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__INT_INT) (gpointer data1, gint arg_1, gint arg_2, gpointer data2); - register GMarshalFunc_VOID__INT_INT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (n_param_values == 3); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - data1 = closure->data; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - data2 = param_values->data[0].v_pointer; -#line 7498 "LibraryMonitor.c" - } else { -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - data1 = param_values->data[0].v_pointer; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - data2 = closure->data; -#line 7504 "LibraryMonitor.c" - } -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - callback = (GMarshalFunc_VOID__INT_INT) (marshal_data ? marshal_data : cc->callback); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - callback (data1, g_value_get_int (param_values + 1), g_value_get_int (param_values + 2), data2); -#line 7510 "LibraryMonitor.c" -} - - -static void -g_cclosure_user_marshal_VOID__UINT64_UINT64 (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__UINT64_UINT64) (gpointer data1, guint64 arg_1, guint64 arg_2, gpointer data2); - register GMarshalFunc_VOID__UINT64_UINT64 callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (n_param_values == 3); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - data1 = closure->data; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - data2 = param_values->data[0].v_pointer; -#line 7536 "LibraryMonitor.c" - } else { -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - data1 = param_values->data[0].v_pointer; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - data2 = closure->data; -#line 7542 "LibraryMonitor.c" - } -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - callback = (GMarshalFunc_VOID__UINT64_UINT64) (marshal_data ? marshal_data : cc->callback); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - callback (data1, g_value_get_uint64 (param_values + 1), g_value_get_uint64 (param_values + 2), data2); -#line 7548 "LibraryMonitor.c" -} - - -static void -_library_monitor_on_find_move_completed_completion_callback (BackgroundJob* job, - gpointer self) -{ -#line 111 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_on_find_move_completed ((LibraryMonitor*) self, job); -#line 7558 "LibraryMonitor.c" -} - - -static void -_library_monitor_on_find_move_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self) -{ -#line 111 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_on_find_move_cancelled ((LibraryMonitor*) self, job); -#line 7568 "LibraryMonitor.c" -} - - -static LibraryMonitorFindMoveJob* -library_monitor_find_move_job_construct (GType object_type, - LibraryMonitor* owner, - GFile* file, - GeeCollection* candidates) -{ - LibraryMonitorFindMoveJob* self = NULL; - GCancellable* _tmp0_; - GFile* _tmp1_; - GeeCollection* _tmp2_; -#line 110 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (IS_LIBRARY_MONITOR (owner), NULL); -#line 110 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 110 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (candidates), NULL); -#line 111 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = owner->priv->cancellable; -#line 111 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = (LibraryMonitorFindMoveJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), _library_monitor_on_find_move_completed_completion_callback, owner, _tmp0_, _library_monitor_on_find_move_cancelled_cancellation_callback, owner, NULL); -#line 113 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _g_object_ref0 (file); -#line 113 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->file); -#line 113 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->file = _tmp1_; -#line 114 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _g_object_ref0 (candidates); -#line 114 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->candidates); -#line 114 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->candidates = _tmp2_; -#line 116 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - background_job_set_completion_priority (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), G_PRIORITY_LOW); -#line 110 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return self; -#line 7608 "LibraryMonitor.c" -} - - -static LibraryMonitorFindMoveJob* -library_monitor_find_move_job_new (LibraryMonitor* owner, - GFile* file, - GeeCollection* candidates) -{ -#line 110 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return library_monitor_find_move_job_construct (LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB, owner, file, candidates); -#line 7619 "LibraryMonitor.c" -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 135 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return self ? g_error_copy (self) : NULL; -#line 7628 "LibraryMonitor.c" -} - - -static void -library_monitor_find_move_job_real_execute (BackgroundJob* base) -{ - LibraryMonitorFindMoveJob * self; - GeeIterator* iter = NULL; - GeeCollection* _tmp0_; - GeeIterator* _tmp1_; - GeeCollection* _tmp10_; - gint _tmp11_; - gint _tmp12_; - gchar* md5 = NULL; - GError * _inner_error_ = NULL; -#line 119 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB, LibraryMonitorFindMoveJob); -#line 121 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = self->candidates; -#line 121 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 121 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - iter = _tmp1_; -#line 122 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 7654 "LibraryMonitor.c" - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; - gpointer _tmp4_; - Monitorable* _tmp5_; - GFile* _tmp6_; - GFile* _tmp7_; - gboolean _tmp8_; -#line 122 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = iter; -#line 122 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 122 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 7668 "LibraryMonitor.c" - } -#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = iter; -#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = (Monitorable*) _tmp4_; -#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = _tmp6_; -#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = g_file_query_exists (_tmp7_, NULL); -#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_tmp7_); -#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_tmp5_); -#line 123 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp8_) { -#line 7688 "LibraryMonitor.c" - GeeIterator* _tmp9_; -#line 124 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = iter; -#line 124 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_iterator_remove (_tmp9_); -#line 7694 "LibraryMonitor.c" - } - } -#line 128 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = self->candidates; -#line 128 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = gee_collection_get_size (_tmp10_); -#line 128 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = _tmp11_; -#line 128 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp12_ == 0) { -#line 129 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (iter); -#line 129 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 7709 "LibraryMonitor.c" - } -#line 131 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - md5 = NULL; -#line 7713 "LibraryMonitor.c" - { - gchar* _tmp13_ = NULL; - GFile* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; -#line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp14_ = self->file; -#line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp15_ = md5_file (_tmp14_, &_inner_error_); -#line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = _tmp15_; -#line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7727 "LibraryMonitor.c" - goto __catch501_g_error; - } -#line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp16_ = _tmp13_; -#line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = NULL; -#line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (md5); -#line 133 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - md5 = _tmp16_; -#line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp13_); -#line 7740 "LibraryMonitor.c" - } - goto __finally501; - __catch501_g_error: - { - GError* err = NULL; - GError* _tmp17_; - GError* _tmp18_; -#line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - err = _inner_error_; -#line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _inner_error_ = NULL; -#line 135 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp17_ = err; -#line 135 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp18_ = _g_error_copy0 (_tmp17_); -#line 135 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_error_free0 (self->err); -#line 135 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->err = _tmp18_; -#line 137 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_error_free0 (err); -#line 137 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (md5); -#line 137 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (iter); -#line 137 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 7768 "LibraryMonitor.c" - } - __finally501: -#line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (md5); -#line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (iter); -#line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_clear_error (&_inner_error_); -#line 132 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 7783 "LibraryMonitor.c" - } - { - GeeIterator* _candidate_it = NULL; - GeeCollection* _tmp19_; - GeeIterator* _tmp20_; -#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp19_ = self->candidates; -#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp20_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _candidate_it = _tmp20_; -#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 7797 "LibraryMonitor.c" - GeeIterator* _tmp21_; - Monitorable* candidate = NULL; - GeeIterator* _tmp22_; - gpointer _tmp23_; - Monitorable* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - const gchar* _tmp27_; - gboolean _tmp28_; - Monitorable* _tmp29_; - Monitorable* _tmp43_; - Monitorable* _tmp44_; -#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp21_ = _candidate_it; -#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!gee_iterator_next (_tmp21_)) { -#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 7816 "LibraryMonitor.c" - } -#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp22_ = _candidate_it; -#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp23_ = gee_iterator_get (_tmp22_); -#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - candidate = (Monitorable*) _tmp23_; -#line 141 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp24_ = candidate; -#line 141 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp25_ = media_source_get_master_md5 (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 141 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp26_ = _tmp25_; -#line 141 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp27_ = md5; -#line 141 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp28_ = g_strcmp0 (_tmp26_, _tmp27_) != 0; -#line 141 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp26_); -#line 141 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp28_) { -#line 142 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (candidate); -#line 142 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - continue; -#line 7842 "LibraryMonitor.c" - } -#line 144 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp29_ = self->match; -#line 144 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp29_ != NULL) { -#line 7848 "LibraryMonitor.c" - GFile* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - Monitorable* _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; - Monitorable* _tmp36_; - gchar* _tmp37_; - gchar* _tmp38_; - GeeArrayList* _tmp39_; - GeeArrayList* _tmp41_; - Monitorable* _tmp42_; -#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp30_ = self->file; -#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp31_ = g_file_get_path (_tmp30_); -#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp32_ = _tmp31_; -#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp33_ = self->match; -#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp34_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_DATA_OBJECT, DataObject)); -#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp35_ = _tmp34_; -#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp36_ = candidate; -#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp37_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_DATA_OBJECT, DataObject)); -#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp38_ = _tmp37_; -#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_warning ("LibraryMonitor.vala:145: Found more than one media match for %s: %s an" \ -"d %s", _tmp32_, _tmp35_, _tmp38_); -#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp38_); -#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp35_); -#line 145 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp32_); -#line 148 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp39_ = self->losers; -#line 148 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp39_ == NULL) { -#line 7891 "LibraryMonitor.c" - GeeArrayList* _tmp40_; -#line 149 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp40_ = gee_array_list_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 149 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->losers); -#line 149 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->losers = _tmp40_; -#line 7899 "LibraryMonitor.c" - } -#line 151 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp41_ = self->losers; -#line 151 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp42_ = candidate; -#line 151 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp42_); -#line 153 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (candidate); -#line 153 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - continue; -#line 7911 "LibraryMonitor.c" - } -#line 156 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp43_ = candidate; -#line 156 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp44_ = _g_object_ref0 (_tmp43_); -#line 156 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->match); -#line 156 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->match = _tmp44_; -#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (candidate); -#line 7923 "LibraryMonitor.c" - } -#line 140 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_candidate_it); -#line 7927 "LibraryMonitor.c" - } -#line 119 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (md5); -#line 119 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (iter); -#line 7933 "LibraryMonitor.c" -} - - -static void -library_monitor_find_move_job_class_init (LibraryMonitorFindMoveJobClass * klass) -{ -#line 103 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_find_move_job_parent_class = g_type_class_peek_parent (klass); -#line 103 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ((BackgroundJobClass *) klass)->finalize = library_monitor_find_move_job_finalize; -#line 103 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) library_monitor_find_move_job_real_execute; -#line 7946 "LibraryMonitor.c" -} - - -static void -library_monitor_find_move_job_instance_init (LibraryMonitorFindMoveJob * self) -{ -#line 106 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->match = NULL; -#line 107 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->losers = NULL; -#line 108 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->err = NULL; -#line 7959 "LibraryMonitor.c" -} - - -static void -library_monitor_find_move_job_finalize (BackgroundJob * obj) -{ - LibraryMonitorFindMoveJob * self; -#line 103 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_MONITOR_TYPE_FIND_MOVE_JOB, LibraryMonitorFindMoveJob); -#line 104 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->file); -#line 105 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->candidates); -#line 106 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->match); -#line 107 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->losers); -#line 108 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_error_free0 (self->err); -#line 103 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - BACKGROUND_JOB_CLASS (library_monitor_find_move_job_parent_class)->finalize (obj); -#line 7981 "LibraryMonitor.c" -} - - -static GType -library_monitor_find_move_job_get_type (void) -{ - static volatile gsize library_monitor_find_move_job_type_id__volatile = 0; - if (g_once_init_enter (&library_monitor_find_move_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryMonitorFindMoveJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_monitor_find_move_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryMonitorFindMoveJob), 0, (GInstanceInitFunc) library_monitor_find_move_job_instance_init, NULL }; - GType library_monitor_find_move_job_type_id; - library_monitor_find_move_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "LibraryMonitorFindMoveJob", &g_define_type_info, 0); - g_once_init_leave (&library_monitor_find_move_job_type_id__volatile, library_monitor_find_move_job_type_id); - } - return library_monitor_find_move_job_type_id__volatile; -} - - -static void -_library_monitor_on_runtime_find_move_completed_completion_callback (BackgroundJob* job, - gpointer self) -{ -#line 168 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_on_runtime_find_move_completed ((LibraryMonitor*) self, job); -#line 8005 "LibraryMonitor.c" -} - - -static LibraryMonitorRuntimeFindMoveJob* -library_monitor_runtime_find_move_job_construct (GType object_type, - LibraryMonitor* owner, - GFile* file, - GeeCollection* candidates) -{ - LibraryMonitorRuntimeFindMoveJob* self = NULL; - GCancellable* _tmp0_; - GFile* _tmp1_; - GeeCollection* _tmp2_; -#line 167 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (IS_LIBRARY_MONITOR (owner), NULL); -#line 167 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 167 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (candidates), NULL); -#line 168 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = owner->priv->cancellable; -#line 168 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = (LibraryMonitorRuntimeFindMoveJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), _library_monitor_on_runtime_find_move_completed_completion_callback, owner, _tmp0_, NULL, NULL, NULL); -#line 170 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _g_object_ref0 (file); -#line 170 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->file); -#line 170 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->file = _tmp1_; -#line 171 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = _g_object_ref0 (candidates); -#line 171 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->candidates); -#line 171 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->candidates = _tmp2_; -#line 173 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - background_job_set_completion_priority (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob), G_PRIORITY_LOW); -#line 167 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return self; -#line 8045 "LibraryMonitor.c" -} - - -static LibraryMonitorRuntimeFindMoveJob* -library_monitor_runtime_find_move_job_new (LibraryMonitor* owner, - GFile* file, - GeeCollection* candidates) -{ -#line 167 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return library_monitor_runtime_find_move_job_construct (LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB, owner, file, candidates); -#line 8056 "LibraryMonitor.c" -} - - -static void -library_monitor_runtime_find_move_job_real_execute (BackgroundJob* base) -{ - LibraryMonitorRuntimeFindMoveJob * self; - gchar* md5 = NULL; - GError * _inner_error_ = NULL; -#line 176 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB, LibraryMonitorRuntimeFindMoveJob); -#line 177 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - md5 = NULL; -#line 8070 "LibraryMonitor.c" - { - gchar* _tmp0_ = NULL; - GFile* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = self->file; -#line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = md5_file (_tmp1_, &_inner_error_); -#line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = _tmp2_; -#line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8084 "LibraryMonitor.c" - goto __catch502_g_error; - } -#line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = _tmp0_; -#line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = NULL; -#line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (md5); -#line 179 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - md5 = _tmp3_; -#line 178 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp0_); -#line 8097 "LibraryMonitor.c" - } - goto __finally502; - __catch502_g_error: - { - GError* err = NULL; - GError* _tmp4_; - GError* _tmp5_; -#line 178 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - err = _inner_error_; -#line 178 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _inner_error_ = NULL; -#line 181 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = err; -#line 181 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = _g_error_copy0 (_tmp4_); -#line 181 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_error_free0 (self->err); -#line 181 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->err = _tmp5_; -#line 183 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_error_free0 (err); -#line 183 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (md5); -#line 183 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 8123 "LibraryMonitor.c" - } - __finally502: -#line 178 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 178 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (md5); -#line 178 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 178 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_clear_error (&_inner_error_); -#line 178 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return; -#line 8136 "LibraryMonitor.c" - } - { - GeeIterator* _candidate_it = NULL; - GeeCollection* _tmp6_; - GeeIterator* _tmp7_; -#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = self->candidates; -#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _candidate_it = _tmp7_; -#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - while (TRUE) { -#line 8150 "LibraryMonitor.c" - GeeIterator* _tmp8_; - Monitorable* candidate = NULL; - GeeIterator* _tmp9_; - gpointer _tmp10_; - Monitorable* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - const gchar* _tmp14_; - gboolean _tmp15_; -#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp8_ = _candidate_it; -#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!gee_iterator_next (_tmp8_)) { -#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 8166 "LibraryMonitor.c" - } -#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp9_ = _candidate_it; -#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp10_ = gee_iterator_get (_tmp9_); -#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - candidate = (Monitorable*) _tmp10_; -#line 187 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp11_ = candidate; -#line 187 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp12_ = media_source_get_master_md5 (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 187 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp13_ = _tmp12_; -#line 187 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp14_ = md5; -#line 187 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp15_ = g_strcmp0 (_tmp13_, _tmp14_) == 0; -#line 187 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (_tmp13_); -#line 187 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (_tmp15_) { -#line 8188 "LibraryMonitor.c" - Monitorable* _tmp16_; - Monitorable* _tmp17_; -#line 188 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp16_ = candidate; -#line 188 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp17_ = _g_object_ref0 (_tmp16_); -#line 188 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->match); -#line 188 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->match = _tmp17_; -#line 190 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (candidate); -#line 190 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - break; -#line 8203 "LibraryMonitor.c" - } -#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (candidate); -#line 8207 "LibraryMonitor.c" - } -#line 186 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_candidate_it); -#line 8211 "LibraryMonitor.c" - } -#line 176 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_free0 (md5); -#line 8215 "LibraryMonitor.c" -} - - -static void -library_monitor_runtime_find_move_job_class_init (LibraryMonitorRuntimeFindMoveJobClass * klass) -{ -#line 161 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_runtime_find_move_job_parent_class = g_type_class_peek_parent (klass); -#line 161 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ((BackgroundJobClass *) klass)->finalize = library_monitor_runtime_find_move_job_finalize; -#line 161 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) library_monitor_runtime_find_move_job_real_execute; -#line 8228 "LibraryMonitor.c" -} - - -static void -library_monitor_runtime_find_move_job_instance_init (LibraryMonitorRuntimeFindMoveJob * self) -{ -#line 164 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->match = NULL; -#line 165 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->err = NULL; -#line 8239 "LibraryMonitor.c" -} - - -static void -library_monitor_runtime_find_move_job_finalize (BackgroundJob * obj) -{ - LibraryMonitorRuntimeFindMoveJob * self; -#line 161 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_MONITOR_TYPE_RUNTIME_FIND_MOVE_JOB, LibraryMonitorRuntimeFindMoveJob); -#line 162 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->file); -#line 163 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->candidates); -#line 164 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->match); -#line 165 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_error_free0 (self->err); -#line 161 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - BACKGROUND_JOB_CLASS (library_monitor_runtime_find_move_job_parent_class)->finalize (obj); -#line 8259 "LibraryMonitor.c" -} - - -static GType -library_monitor_runtime_find_move_job_get_type (void) -{ - static volatile gsize library_monitor_runtime_find_move_job_type_id__volatile = 0; - if (g_once_init_enter (&library_monitor_runtime_find_move_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryMonitorRuntimeFindMoveJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_monitor_runtime_find_move_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryMonitorRuntimeFindMoveJob), 0, (GInstanceInitFunc) library_monitor_runtime_find_move_job_instance_init, NULL }; - GType library_monitor_runtime_find_move_job_type_id; - library_monitor_runtime_find_move_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "LibraryMonitorRuntimeFindMoveJob", &g_define_type_info, 0); - g_once_init_leave (&library_monitor_runtime_find_move_job_type_id__volatile, library_monitor_runtime_find_move_job_type_id); - } - return library_monitor_runtime_find_move_job_type_id__volatile; -} - - -static LibraryMonitorVerifyJob* -library_monitor_verify_job_construct (GType object_type, - Monitorable* monitorable, - MediaMonitor* monitor) -{ - LibraryMonitorVerifyJob* self = NULL; - Monitorable* _tmp0_; - MediaMonitor* _tmp1_; -#line 200 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL); -#line 200 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (monitor), NULL); -#line 200 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = (LibraryMonitorVerifyJob*) g_type_create_instance (object_type); -#line 201 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = _g_object_ref0 (monitorable); -#line 201 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->monitorable); -#line 201 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->monitorable = _tmp0_; -#line 202 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _g_object_ref0 (monitor); -#line 202 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->monitor); -#line 202 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->monitor = _tmp1_; -#line 200 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return self; -#line 8305 "LibraryMonitor.c" -} - - -static LibraryMonitorVerifyJob* -library_monitor_verify_job_new (Monitorable* monitorable, - MediaMonitor* monitor) -{ -#line 200 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return library_monitor_verify_job_construct (LIBRARY_MONITOR_TYPE_VERIFY_JOB, monitorable, monitor); -#line 8315 "LibraryMonitor.c" -} - - -static void -library_monitor_value_verify_job_init (GValue* value) -{ -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - value->data[0].v_pointer = NULL; -#line 8324 "LibraryMonitor.c" -} - - -static void -library_monitor_value_verify_job_free_value (GValue* value) -{ -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (value->data[0].v_pointer) { -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_verify_job_unref (value->data[0].v_pointer); -#line 8335 "LibraryMonitor.c" - } -} - - -static void -library_monitor_value_verify_job_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (src_value->data[0].v_pointer) { -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - dest_value->data[0].v_pointer = library_monitor_verify_job_ref (src_value->data[0].v_pointer); -#line 8348 "LibraryMonitor.c" - } else { -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - dest_value->data[0].v_pointer = NULL; -#line 8352 "LibraryMonitor.c" - } -} - - -static gpointer -library_monitor_value_verify_job_peek_pointer (const GValue* value) -{ -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return value->data[0].v_pointer; -#line 8362 "LibraryMonitor.c" -} - - -static gchar* -library_monitor_value_verify_job_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (collect_values[0].v_pointer) { -#line 8374 "LibraryMonitor.c" - LibraryMonitorVerifyJob * object; - object = collect_values[0].v_pointer; -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (object->parent_instance.g_class == NULL) { -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 8381 "LibraryMonitor.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 8385 "LibraryMonitor.c" - } -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - value->data[0].v_pointer = library_monitor_verify_job_ref (object); -#line 8389 "LibraryMonitor.c" - } else { -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - value->data[0].v_pointer = NULL; -#line 8393 "LibraryMonitor.c" - } -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return NULL; -#line 8397 "LibraryMonitor.c" -} - - -static gchar* -library_monitor_value_verify_job_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - LibraryMonitorVerifyJob ** object_p; - object_p = collect_values[0].v_pointer; -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!object_p) { -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 8413 "LibraryMonitor.c" - } -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (!value->data[0].v_pointer) { -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - *object_p = NULL; -#line 8419 "LibraryMonitor.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - *object_p = value->data[0].v_pointer; -#line 8423 "LibraryMonitor.c" - } else { -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - *object_p = library_monitor_verify_job_ref (value->data[0].v_pointer); -#line 8427 "LibraryMonitor.c" - } -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return NULL; -#line 8431 "LibraryMonitor.c" -} - - -static GParamSpec* -library_monitor_param_spec_verify_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - LibraryMonitorParamSpecVerifyJob* spec; -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (g_type_is_a (object_type, LIBRARY_MONITOR_TYPE_VERIFY_JOB), NULL); -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return G_PARAM_SPEC (spec); -#line 8451 "LibraryMonitor.c" -} - - -static gpointer -library_monitor_value_get_verify_job (const GValue* value) -{ -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, LIBRARY_MONITOR_TYPE_VERIFY_JOB), NULL); -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return value->data[0].v_pointer; -#line 8462 "LibraryMonitor.c" -} - - -static void -library_monitor_value_set_verify_job (GValue* value, - gpointer v_object) -{ - LibraryMonitorVerifyJob * old; -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, LIBRARY_MONITOR_TYPE_VERIFY_JOB)); -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - old = value->data[0].v_pointer; -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (v_object) { -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, LIBRARY_MONITOR_TYPE_VERIFY_JOB)); -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - value->data[0].v_pointer = v_object; -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_verify_job_ref (value->data[0].v_pointer); -#line 8485 "LibraryMonitor.c" - } else { -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - value->data[0].v_pointer = NULL; -#line 8489 "LibraryMonitor.c" - } -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (old) { -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_verify_job_unref (old); -#line 8495 "LibraryMonitor.c" - } -} - - -static void -library_monitor_value_take_verify_job (GValue* value, - gpointer v_object) -{ - LibraryMonitorVerifyJob * old; -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, LIBRARY_MONITOR_TYPE_VERIFY_JOB)); -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - old = value->data[0].v_pointer; -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (v_object) { -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, LIBRARY_MONITOR_TYPE_VERIFY_JOB)); -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - value->data[0].v_pointer = v_object; -#line 8517 "LibraryMonitor.c" - } else { -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - value->data[0].v_pointer = NULL; -#line 8521 "LibraryMonitor.c" - } -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (old) { -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_verify_job_unref (old); -#line 8527 "LibraryMonitor.c" - } -} - - -static void -library_monitor_verify_job_class_init (LibraryMonitorVerifyJobClass * klass) -{ -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_verify_job_parent_class = g_type_class_peek_parent (klass); -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ((LibraryMonitorVerifyJobClass *) klass)->finalize = library_monitor_verify_job_finalize; -#line 8539 "LibraryMonitor.c" -} - - -static void -library_monitor_verify_job_instance_init (LibraryMonitorVerifyJob * self) -{ -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->ref_count = 1; -#line 8548 "LibraryMonitor.c" -} - - -static void -library_monitor_verify_job_finalize (LibraryMonitorVerifyJob * obj) -{ - LibraryMonitorVerifyJob * self; -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_MONITOR_TYPE_VERIFY_JOB, LibraryMonitorVerifyJob); -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_handlers_destroy (self); -#line 197 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->monitorable); -#line 198 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->monitor); -#line 8564 "LibraryMonitor.c" -} - - -static GType -library_monitor_verify_job_get_type (void) -{ - static volatile gsize library_monitor_verify_job_type_id__volatile = 0; - if (g_once_init_enter (&library_monitor_verify_job_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { library_monitor_value_verify_job_init, library_monitor_value_verify_job_free_value, library_monitor_value_verify_job_copy_value, library_monitor_value_verify_job_peek_pointer, "p", library_monitor_value_verify_job_collect_value, "p", library_monitor_value_verify_job_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (LibraryMonitorVerifyJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_monitor_verify_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryMonitorVerifyJob), 0, (GInstanceInitFunc) library_monitor_verify_job_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType library_monitor_verify_job_type_id; - library_monitor_verify_job_type_id = g_type_register_fundamental (g_type_fundamental_next (), "LibraryMonitorVerifyJob", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&library_monitor_verify_job_type_id__volatile, library_monitor_verify_job_type_id); - } - return library_monitor_verify_job_type_id__volatile; -} - - -static gpointer -library_monitor_verify_job_ref (gpointer instance) -{ - LibraryMonitorVerifyJob * self; - self = instance; -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_atomic_int_inc (&self->ref_count); -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - return instance; -#line 8593 "LibraryMonitor.c" -} - - -static void -library_monitor_verify_job_unref (gpointer instance) -{ - LibraryMonitorVerifyJob * self; - self = instance; -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - LIBRARY_MONITOR_VERIFY_JOB_GET_CLASS (self)->finalize (self); -#line 196 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 8608 "LibraryMonitor.c" - } -} - - -static void -library_monitor_class_init (LibraryMonitorClass * klass) -{ - GeeHashSet* _tmp0_; - HashTimedQueue* _tmp1_; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_parent_class = g_type_class_peek_parent (klass); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_type_class_add_private (klass, sizeof (LibraryMonitorPrivate)); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ((DirectoryMonitorClass *) klass)->close = (void (*) (DirectoryMonitor *)) library_monitor_real_close; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ((DirectoryMonitorClass *) klass)->discovery_started = (void (*) (DirectoryMonitor *)) library_monitor_real_discovery_started; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ((DirectoryMonitorClass *) klass)->file_discovered = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) library_monitor_real_file_discovered; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ((DirectoryMonitorClass *) klass)->discovery_completed = (void (*) (DirectoryMonitor *)) library_monitor_real_discovery_completed; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_file_created = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) library_monitor_real_notify_file_created; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_file_moved = (void (*) (DirectoryMonitor *, GFile*, GFile*, GFileInfo*)) library_monitor_real_notify_file_moved; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_file_altered = (void (*) (DirectoryMonitor *, GFile*)) library_monitor_real_notify_file_altered; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_file_attributes_altered = (void (*) (DirectoryMonitor *, GFile*)) library_monitor_real_notify_file_attributes_altered; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_file_alteration_completed = (void (*) (DirectoryMonitor *, GFile*, GFileInfo*)) library_monitor_real_notify_file_alteration_completed; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - ((DirectoryMonitorClass *) klass)->notify_file_deleted = (void (*) (DirectoryMonitor *, GFile*)) library_monitor_real_notify_file_deleted; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - G_OBJECT_CLASS (klass)->finalize = library_monitor_finalize; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_signals[LIBRARY_MONITOR_AUTO_UPDATE_PROGRESS_SIGNAL] = g_signal_new ("auto-update-progress", TYPE_LIBRARY_MONITOR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__INT_INT, G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_INT); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_signals[LIBRARY_MONITOR_AUTO_IMPORT_PREPARING_SIGNAL] = g_signal_new ("auto-import-preparing", TYPE_LIBRARY_MONITOR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_signals[LIBRARY_MONITOR_AUTO_IMPORT_PROGRESS_SIGNAL] = g_signal_new ("auto-import-progress", TYPE_LIBRARY_MONITOR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__UINT64_UINT64, G_TYPE_NONE, 2, G_TYPE_UINT64, G_TYPE_UINT64); -#line 206 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_rec_mutex_init (&__lock_library_monitor_blacklist); -#line 206 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = gee_hash_set_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); -#line 206 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_blacklist = _tmp0_; -#line 207 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = hash_timed_queue_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, (guint) LIBRARY_MONITOR_MIN_BLACKLIST_DURATION_MSEC, _library_monitor_on_unblacklist_file_dequeued_callback, NULL, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, G_PRIORITY_LOW); -#line 207 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - library_monitor_to_unblacklist = _tmp1_; -#line 8660 "LibraryMonitor.c" -} - - -static void -library_monitor_instance_init (LibraryMonitor * self) -{ - Workers* _tmp0_; - GCancellable* _tmp1_; - GeeArrayList* _tmp2_; - GeeHashSet* _tmp3_; - GeeHashSet* _tmp4_; - GeeArrayList* _tmp5_; - GeeLinkedList* _tmp6_; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv = LIBRARY_MONITOR_GET_PRIVATE (self); -#line 210 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = workers_new (workers_thread_per_cpu_minus_one (), FALSE); -#line 210 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->workers = _tmp0_; -#line 211 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = g_cancellable_new (); -#line 211 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->cancellable = _tmp1_; -#line 212 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->auto_import = FALSE; -#line 213 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->unknown_files = NULL; -#line 214 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp2_ = gee_array_list_new (TYPE_MEDIA_MONITOR, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 214 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->monitors = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_LIST, GeeList); -#line 215 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->discovered = NULL; -#line 216 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp3_ = gee_hash_set_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); -#line 216 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->import_queue = _tmp3_; -#line 217 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp4_ = gee_hash_set_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); -#line 217 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->pending_imports = _tmp4_; -#line 218 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp5_ = gee_array_list_new (TYPE_BATCH_IMPORT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 218 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->batch_import_queue = _tmp5_; -#line 219 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->current_import_roll = NULL; -#line 220 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->last_import_roll_use = (time_t) 0; -#line 221 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->current_batch_import = NULL; -#line 222 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->checksums_completed = 0; -#line 223 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->checksums_total = 0; -#line 224 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->import_queue_timer_id = (guint) 0; -#line 225 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp6_ = gee_linked_list_new (LIBRARY_MONITOR_TYPE_VERIFY_JOB, (GBoxedCopyFunc) library_monitor_verify_job_ref, (GDestroyNotify) library_monitor_verify_job_unref, NULL, NULL, NULL); -#line 225 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->verify_queue = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_QUEUE, GeeQueue); -#line 226 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->outstanding_verify_jobs = 0; -#line 227 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->completed_monitorable_verifies = 0; -#line 228 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self->priv->total_monitorable_verifies = 0; -#line 8728 "LibraryMonitor.c" -} - - -static void -library_monitor_finalize (GObject * obj) -{ - LibraryMonitor * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - guint _tmp2_; -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_MONITOR, LibraryMonitor); -#line 247 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp0_ = config_facade_get_instance (); -#line 247 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _tmp1_ = _tmp0_; -#line 247 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_parse_name ("auto-import-from-library-changed", TYPE_CONFIGURATION_FACADE, &_tmp2_, NULL, FALSE); -#line 247 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _library_monitor_on_config_changed_configuration_facade_auto_import_from_library_changed, self); -#line 247 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (_tmp1_); -#line 210 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _workers_unref0 (self->priv->workers); -#line 211 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->cancellable); -#line 213 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->unknown_files); -#line 214 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->monitors); -#line 215 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->discovered); -#line 216 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->import_queue); -#line 217 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->pending_imports); -#line 218 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->batch_import_queue); -#line 219 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _batch_import_roll_unref0 (self->priv->current_import_roll); -#line 221 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->current_batch_import); -#line 225 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - _g_object_unref0 (self->priv->verify_queue); -#line 97 "/home/jens/Source/shotwell/src/LibraryMonitor.vala" - G_OBJECT_CLASS (library_monitor_parent_class)->finalize (obj); -#line 8775 "LibraryMonitor.c" -} - - -GType -library_monitor_get_type (void) -{ - static volatile gsize library_monitor_type_id__volatile = 0; - if (g_once_init_enter (&library_monitor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryMonitorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_monitor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryMonitor), 0, (GInstanceInitFunc) library_monitor_instance_init, NULL }; - GType library_monitor_type_id; - library_monitor_type_id = g_type_register_static (TYPE_DIRECTORY_MONITOR, "LibraryMonitor", &g_define_type_info, 0); - g_once_init_leave (&library_monitor_type_id__volatile, library_monitor_type_id); - } - return library_monitor_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/MediaDataRepresentation.c b/src/MediaDataRepresentation.c deleted file mode 100644 index 4d566f0..0000000 --- a/src/MediaDataRepresentation.c +++ /dev/null @@ -1,8824 +0,0 @@ -/* MediaDataRepresentation.c generated by valac 0.40.4, the Vala compiler - * generated from MediaDataRepresentation.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_BACKING_FILE_STATE (backing_file_state_get_type ()) -#define BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_FILE_STATE, BackingFileState)) -#define BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_FILE_STATE, BackingFileStateClass)) -#define IS_BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_FILE_STATE)) -#define IS_BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_FILE_STATE)) -#define BACKING_FILE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_FILE_STATE, BackingFileStateClass)) - -typedef struct _BackingFileState BackingFileState; -typedef struct _BackingFileStateClass BackingFileStateClass; -typedef struct _BackingFileStatePrivate BackingFileStatePrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ()) -#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow)) -#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) -#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW)) -#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW)) -#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) - -typedef struct _BackingPhotoRow BackingPhotoRow; -typedef struct _BackingPhotoRowClass BackingPhotoRowClass; -typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate; - -#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ()) -typedef struct _BackingPhotoID BackingPhotoID; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_ORIENTATION (orientation_get_type ()) -typedef struct _ParamSpecBackingFileState ParamSpecBackingFileState; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; -typedef struct _DataSourcePrivate DataSourcePrivate; - -#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ()) -#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)) -#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) -#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK)) -#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK)) -#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) - -typedef struct _SourceHoldingTank SourceHoldingTank; -typedef struct _SourceHoldingTankClass SourceHoldingTankClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ()) -#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot)) -#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) -#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT)) -#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT)) -#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) - -typedef struct _SourceSnapshot SourceSnapshot; -typedef struct _SourceSnapshotClass SourceSnapshotClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; -typedef struct _ThumbnailSourcePrivate ThumbnailSourcePrivate; - -#define TYPE_INDEXABLE (indexable_get_type ()) -#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable)) -#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE)) -#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface)) - -typedef struct _Indexable Indexable; -typedef struct _IndexableIface IndexableIface; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; -typedef struct _MediaSourcePrivate MediaSourcePrivate; - -#define TYPE_EVENT_ID (event_id_get_type ()) -typedef struct _EventID EventID; - -#define TYPE_RATING (rating_get_type ()) - -#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ()) - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) -typedef struct _Scaling Scaling; - -#define TYPE_IMPORT_ID (import_id_get_type ()) -typedef struct _ImportID ImportID; - -#define TYPE_EVENT_SOURCE (event_source_get_type ()) -#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource)) -#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass)) -#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE)) -#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE)) -#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass)) - -typedef struct _EventSource EventSource; -typedef struct _EventSourceClass EventSourceClass; - -#define TYPE_EVENT (event_get_type ()) -#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event)) -#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass)) -#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT)) -#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT)) -#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass)) - -typedef struct _Event Event; -typedef struct _EventClass EventClass; -enum { - MEDIA_SOURCE_0_PROPERTY, - MEDIA_SOURCE_NUM_PROPERTIES -}; -static GParamSpec* media_source_properties[MEDIA_SOURCE_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_PREPARE_INPUT_TEXT_OPTIONS (prepare_input_text_options_get_type ()) - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_EVENT_SOURCE_COLLECTION (event_source_collection_get_type ()) -#define EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection)) -#define EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass)) -#define IS_EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE_COLLECTION)) -#define IS_EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE_COLLECTION)) -#define EVENT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass)) - -typedef struct _EventSourceCollection EventSourceCollection; -typedef struct _EventSourceCollectionClass EventSourceCollectionClass; - -#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ()) -#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController)) -#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) -#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER)) -#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER)) -#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) - -typedef struct _TransactionController TransactionController; -typedef struct _TransactionControllerClass TransactionControllerClass; -enum { - MEDIA_SOURCE_MASTER_REPLACED_SIGNAL, - MEDIA_SOURCE_NUM_SIGNALS -}; -static guint media_source_signals[MEDIA_SOURCE_NUM_SIGNALS] = {0}; -typedef struct _SourceHoldingTankPrivate SourceHoldingTankPrivate; - -#define TYPE_DATABASE_SOURCE_HOLDING_TANK (database_source_holding_tank_get_type ()) -#define DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank)) -#define DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass)) -#define IS_DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK)) -#define IS_DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK)) -#define DATABASE_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass)) - -typedef struct _DatabaseSourceHoldingTank DatabaseSourceHoldingTank; -typedef struct _DatabaseSourceHoldingTankClass DatabaseSourceHoldingTankClass; -typedef struct _DatabaseSourceHoldingTankPrivate DatabaseSourceHoldingTankPrivate; - -#define TYPE_MEDIA_SOURCE_HOLDING_TANK (media_source_holding_tank_get_type ()) -#define MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank)) -#define MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass)) -#define IS_MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK)) -#define IS_MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK)) -#define MEDIA_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass)) - -typedef struct _MediaSourceHoldingTank MediaSourceHoldingTank; -typedef struct _MediaSourceHoldingTankClass MediaSourceHoldingTankClass; -typedef struct _MediaSourceHoldingTankPrivate MediaSourceHoldingTankPrivate; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; -typedef struct _TransactionControllerPrivate TransactionControllerPrivate; - -#define TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER (media_source_transaction_controller_get_type ()) -#define MEDIA_SOURCE_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionController)) -#define MEDIA_SOURCE_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionControllerClass)) -#define IS_MEDIA_SOURCE_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER)) -#define IS_MEDIA_SOURCE_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER)) -#define MEDIA_SOURCE_TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionControllerClass)) - -typedef struct _MediaSourceTransactionController MediaSourceTransactionController; -typedef struct _MediaSourceTransactionControllerClass MediaSourceTransactionControllerClass; -typedef struct _MediaSourceTransactionControllerPrivate MediaSourceTransactionControllerPrivate; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -typedef struct _DataCollectionPrivate DataCollectionPrivate; - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; -typedef struct _SourceCollectionPrivate SourceCollectionPrivate; - -#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ()) -#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink)) -#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) -#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK)) -#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK)) -#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) - -typedef struct _SourceBacklink SourceBacklink; -typedef struct _SourceBacklinkClass SourceBacklinkClass; -typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate; -typedef struct _MediaSourceCollectionPrivate MediaSourceCollectionPrivate; - -#define TYPE_WORKERS (workers_get_type ()) -#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers)) -#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass)) -#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS)) -#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS)) -#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass)) - -typedef struct _Workers Workers; -typedef struct _WorkersClass WorkersClass; - -#define TYPE_MEDIA_MONITOR (media_monitor_get_type ()) -#define MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_MONITOR, MediaMonitor)) -#define MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_MONITOR, MediaMonitorClass)) -#define IS_MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_MONITOR)) -#define IS_MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_MONITOR)) -#define MEDIA_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_MONITOR, MediaMonitorClass)) - -typedef struct _MediaMonitor MediaMonitor; -typedef struct _MediaMonitorClass MediaMonitorClass; -#define _source_holding_tank_unref0(var) ((var == NULL) ? NULL : (var = (source_holding_tank_unref (var), NULL))) - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; - -#define TYPE_FLAGGABLE (flaggable_get_type ()) -#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable)) -#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE)) -#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface)) - -typedef struct _Flaggable Flaggable; -typedef struct _FlaggableIface FlaggableIface; -#define _import_id_free0(var) ((var == NULL) ? NULL : (var = (import_id_free (var), NULL))) - -#define TYPE_AGGREGATE_PROGRESS_MONITOR (aggregate_progress_monitor_get_type ()) -#define AGGREGATE_PROGRESS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitor)) -#define AGGREGATE_PROGRESS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitorClass)) -#define IS_AGGREGATE_PROGRESS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR)) -#define IS_AGGREGATE_PROGRESS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_AGGREGATE_PROGRESS_MONITOR)) -#define AGGREGATE_PROGRESS_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitorClass)) - -typedef struct _AggregateProgressMonitor AggregateProgressMonitor; -typedef struct _AggregateProgressMonitorClass AggregateProgressMonitorClass; -#define _aggregate_progress_monitor_unref0(var) ((var == NULL) ? NULL : (var = (aggregate_progress_monitor_unref (var), NULL))) - -#define TOMBSTONE_TYPE_REASON (tombstone_reason_get_type ()) -enum { - MEDIA_SOURCE_COLLECTION_MEDIA_IMPORT_STARTING_SIGNAL, - MEDIA_SOURCE_COLLECTION_MEDIA_IMPORT_COMPLETED_SIGNAL, - MEDIA_SOURCE_COLLECTION_MASTER_FILE_REPLACED_SIGNAL, - MEDIA_SOURCE_COLLECTION_TRASHCAN_CONTENTS_ALTERED_SIGNAL, - MEDIA_SOURCE_COLLECTION_IMPORT_ROLL_ALTERED_SIGNAL, - MEDIA_SOURCE_COLLECTION_OFFLINE_CONTENTS_ALTERED_SIGNAL, - MEDIA_SOURCE_COLLECTION_FLAGGED_CONTENTS_ALTERED_SIGNAL, - MEDIA_SOURCE_COLLECTION_NUM_SIGNALS -}; -static guint media_source_collection_signals[MEDIA_SOURCE_COLLECTION_NUM_SIGNALS] = {0}; - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -typedef struct _MediaCollectionRegistryPrivate MediaCollectionRegistryPrivate; - -#define TYPE_APPLICATION (application_get_type ()) -#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application)) -#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass)) -#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION)) -#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION)) -#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass)) - -typedef struct _Application Application; -typedef struct _ApplicationClass ApplicationClass; -#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL))) - -#define TYPE_DIRECTORY_MONITOR (directory_monitor_get_type ()) -#define DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitor)) -#define DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass)) -#define IS_DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECTORY_MONITOR)) -#define IS_DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECTORY_MONITOR)) -#define DIRECTORY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass)) - -typedef struct _DirectoryMonitor DirectoryMonitor; -typedef struct _DirectoryMonitorClass DirectoryMonitorClass; - -#define TYPE_LIBRARY_MONITOR (library_monitor_get_type ()) -#define LIBRARY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_MONITOR, LibraryMonitor)) -#define LIBRARY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_MONITOR, LibraryMonitorClass)) -#define IS_LIBRARY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_MONITOR)) -#define IS_LIBRARY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_MONITOR)) -#define LIBRARY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_MONITOR, LibraryMonitorClass)) - -typedef struct _LibraryMonitor LibraryMonitor; -typedef struct _LibraryMonitorClass LibraryMonitorClass; - -#define TYPE_LIBRARY_MONITOR_POOL (library_monitor_pool_get_type ()) -#define LIBRARY_MONITOR_POOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPool)) -#define LIBRARY_MONITOR_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolClass)) -#define IS_LIBRARY_MONITOR_POOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_MONITOR_POOL)) -#define IS_LIBRARY_MONITOR_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_MONITOR_POOL)) -#define LIBRARY_MONITOR_POOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolClass)) - -typedef struct _LibraryMonitorPool LibraryMonitorPool; -typedef struct _LibraryMonitorPoolClass LibraryMonitorPoolClass; -#define _library_monitor_pool_unref0(var) ((var == NULL) ? NULL : (var = (library_monitor_pool_unref (var), NULL))) -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -typedef struct _ParamSpecMediaCollectionRegistry ParamSpecMediaCollectionRegistry; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _BackingFileState { - GTypeInstance parent_instance; - volatile int ref_count; - BackingFileStatePrivate * priv; - gchar* filepath; - gint64 filesize; - time_t modification_time; - gchar* md5; -}; - -struct _BackingFileStateClass { - GTypeClass parent_class; - void (*finalize) (BackingFileState *self); -}; - -struct _BackingPhotoID { - gint64 id; -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _Dimensions { - gint width; - gint height; -}; - -typedef enum { - ORIENTATION_MIN = 1, - ORIENTATION_TOP_LEFT = 1, - ORIENTATION_TOP_RIGHT = 2, - ORIENTATION_BOTTOM_RIGHT = 3, - ORIENTATION_BOTTOM_LEFT = 4, - ORIENTATION_LEFT_TOP = 5, - ORIENTATION_RIGHT_TOP = 6, - ORIENTATION_RIGHT_BOTTOM = 7, - ORIENTATION_LEFT_BOTTOM = 8, - ORIENTATION_MAX = 8 -} Orientation; - -struct _BackingPhotoRow { - GTypeInstance parent_instance; - volatile int ref_count; - BackingPhotoRowPrivate * priv; - BackingPhotoID id; - time_t time_created; - gchar* filepath; - gint64 filesize; - time_t timestamp; - PhotoFileFormat file_format; - Dimensions dim; - Orientation original_orientation; -}; - -struct _BackingPhotoRowClass { - GTypeClass parent_class; - void (*finalize) (BackingPhotoRow *self); -}; - -struct _ParamSpecBackingFileState { - GParamSpec parent_instance; -}; - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataSource { - DataObject parent_instance; - DataSourcePrivate * priv; -}; - -struct _DataSourceClass { - DataObjectClass parent_class; - void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank); - void (*notify_unlinking) (DataSource* self, SourceCollection* collection); - void (*notify_unlinked) (DataSource* self); - void (*notify_relinking) (DataSource* self, SourceCollection* collection); - void (*notify_relinked) (DataSource* self); - gchar* (*get_typename) (DataSource* self); - gint64 (*get_instance_id) (DataSource* self); - gchar* (*get_source_id) (DataSource* self); - void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated); - SourceSnapshot* (*save_snapshot) (DataSource* self); - gboolean (*internal_delete_backing) (DataSource* self, GError** error); - gboolean (*equals) (DataSource* self, DataSource* source); - void (*destroy) (DataSource* self); - void (*unlinked) (DataSource* self, SourceCollection* sources); - void (*relinked) (DataSource* self, SourceCollection* sources); - void (*destroyed) (DataSource* self); -}; - -struct _ThumbnailSource { - DataSource parent_instance; - ThumbnailSourcePrivate * priv; -}; - -struct _ThumbnailSourceClass { - DataSourceClass parent_class; - void (*notify_thumbnail_altered) (ThumbnailSource* self); - GdkPixbuf* (*get_thumbnail) (ThumbnailSource* self, gint scale, GError** error); - GdkPixbuf* (*create_thumbnail) (ThumbnailSource* self, gint scale, GError** error); - gchar* (*get_representative_id) (ThumbnailSource* self); - PhotoFileFormat (*get_preferred_thumbnail_format) (ThumbnailSource* self); - void (*thumbnail_altered) (ThumbnailSource* self); -}; - -struct _IndexableIface { - GTypeInterface parent_iface; - const gchar* (*get_indexable_keywords) (Indexable* self); -}; - -struct _EventID { - gint64 id; -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - PHOTO_EXCEPTION_NONE = 0, - PHOTO_EXCEPTION_ORIENTATION = 1 << 0, - PHOTO_EXCEPTION_CROP = 1 << 1, - PHOTO_EXCEPTION_REDEYE = 1 << 2, - PHOTO_EXCEPTION_ADJUST = 1 << 3, - PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4, - PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL -} PhotoException; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -struct _ImportID { - gint64 id; -}; - -struct _MediaSource { - ThumbnailSource parent_instance; - MediaSourcePrivate * priv; -}; - -struct _MediaSourceClass { - ThumbnailSourceClass parent_class; - void (*notify_master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file); - gboolean (*set_event_id) (MediaSource* self, EventID* id); - gchar* (*get_basename) (MediaSource* self); - GFile* (*get_file) (MediaSource* self); - GFile* (*get_master_file) (MediaSource* self); - guint64 (*get_master_filesize) (MediaSource* self); - guint64 (*get_filesize) (MediaSource* self); - time_t (*get_timestamp) (MediaSource* self); - BackingFileState** (*get_backing_files_state) (MediaSource* self, int* result_length1); - gchar* (*get_title) (MediaSource* self); - gchar* (*get_comment) (MediaSource* self); - void (*set_title) (MediaSource* self, const gchar* title); - gboolean (*set_comment) (MediaSource* self, const gchar* comment); - Rating (*get_rating) (MediaSource* self); - void (*set_rating) (MediaSource* self, Rating rating); - void (*increase_rating) (MediaSource* self); - void (*decrease_rating) (MediaSource* self); - void (*get_dimensions) (MediaSource* self, PhotoException disallowed_steps, Dimensions* result); - GdkPixbuf* (*get_preview_pixbuf) (MediaSource* self, Scaling* scaling, GError** error); - gboolean (*is_trashed) (MediaSource* self); - void (*trash) (MediaSource* self); - void (*untrash) (MediaSource* self); - gboolean (*is_offline) (MediaSource* self); - void (*mark_offline) (MediaSource* self); - void (*mark_online) (MediaSource* self); - gchar* (*get_master_md5) (MediaSource* self); - void (*get_event_id) (MediaSource* self, EventID* result); - time_t (*get_exposure_time) (MediaSource* self); - void (*get_import_id) (MediaSource* self, ImportID* result); - void (*master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file); -}; - -struct _MediaSourcePrivate { - Event* event; - gchar* indexable_keywords; -}; - -typedef enum { - PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL = 1 << 0, - PREPARE_INPUT_TEXT_OPTIONS_VALIDATE = 1 << 1, - PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL = 1 << 2, - PREPARE_INPUT_TEXT_OPTIONS_STRIP = 1 << 3, - PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF = 1 << 4, - PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE = 1 << 5, - PREPARE_INPUT_TEXT_OPTIONS_DEFAULT = ((((PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE -} PrepareInputTextOptions; - -struct _SourceHoldingTank { - GTypeInstance parent_instance; - volatile int ref_count; - SourceHoldingTankPrivate * priv; -}; - -struct _SourceHoldingTankClass { - GTypeClass parent_class; - void (*finalize) (SourceHoldingTank *self); - void (*notify_contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed); - void (*contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed); -}; - -struct _DatabaseSourceHoldingTank { - SourceHoldingTank parent_instance; - DatabaseSourceHoldingTankPrivate * priv; -}; - -struct _DatabaseSourceHoldingTankClass { - SourceHoldingTankClass parent_class; -}; - -struct _MediaSourceHoldingTank { - DatabaseSourceHoldingTank parent_instance; - MediaSourceHoldingTankPrivate * priv; -}; - -struct _MediaSourceHoldingTankClass { - DatabaseSourceHoldingTankClass parent_class; -}; - -struct _MediaSourceHoldingTankPrivate { - GeeHashMap* master_file_map; -}; - -typedef gboolean (*SourceHoldingTankCheckToKeep) (DataSource* source, Alteration* alteration, void* user_data); -typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data); -struct _TransactionController { - GTypeInstance parent_instance; - volatile int ref_count; - TransactionControllerPrivate * priv; -}; - -struct _TransactionControllerClass { - GTypeClass parent_class; - void (*finalize) (TransactionController *self); - void (*begin_impl) (TransactionController* self, GError** error); - void (*commit_impl) (TransactionController* self, GError** error); -}; - -struct _MediaSourceTransactionController { - TransactionController parent_instance; - MediaSourceTransactionControllerPrivate * priv; -}; - -struct _MediaSourceTransactionControllerClass { - TransactionControllerClass parent_class; -}; - -struct _MediaSourceTransactionControllerPrivate { - MediaSourceCollection* sources; -}; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -struct _DataCollection { - GTypeInstance parent_instance; - volatile int ref_count; - DataCollectionPrivate * priv; -}; - -struct _DataCollectionClass { - GTypeClass parent_class; - void (*finalize) (DataCollection *self); - gchar* (*to_string) (DataCollection* self); - void (*notify_items_added) (DataCollection* self, GeeIterable* added); - void (*notify_items_removed) (DataCollection* self, GeeIterable* removed); - void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*notify_items_altered) (DataCollection* self, GeeMap* items); - void (*notify_ordering_changed) (DataCollection* self); - void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*notify_property_cleared) (DataCollection* self, const gchar* name); - gboolean (*valid_type) (DataCollection* self, DataObject* object); - void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target); - void (*reset_comparator) (DataCollection* self); - GeeCollection* (*get_all) (DataCollection* self); - gint (*get_count) (DataCollection* self); - DataObject* (*get_at) (DataCollection* self, gint index); - gint (*index_of) (DataCollection* self, DataObject* object); - gboolean (*contains) (DataCollection* self, DataObject* object); - gboolean (*add) (DataCollection* self, DataObject* object); - GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target); - void (*remove_marked) (DataCollection* self, Marker* m); - void (*clear) (DataCollection* self); - void (*close) (DataCollection* self); - void (*notify_frozen) (DataCollection* self); - void (*notify_thawed) (DataCollection* self); - void (*items_added) (DataCollection* self, GeeIterable* added); - void (*items_removed) (DataCollection* self, GeeIterable* removed); - void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*items_altered) (DataCollection* self, GeeMap* items); - void (*ordering_changed) (DataCollection* self); - void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*property_cleared) (DataCollection* self, const gchar* name); - void (*frozen) (DataCollection* self); - void (*thawed) (DataCollection* self); -}; - -struct _SourceCollection { - DataCollection parent_instance; - SourceCollectionPrivate * priv; -}; - -struct _SourceCollectionClass { - DataCollectionClass parent_class; - gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source); - void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*notify_item_destroyed) (SourceCollection* self, DataSource* source); - void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked); - void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); - gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*item_destroyed) (SourceCollection* self, DataSource* source); - void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*unlinked_destroyed) (SourceCollection* self, DataSource* source); - void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); -}; - -struct _DatabaseSourceCollection { - SourceCollection parent_instance; - DatabaseSourceCollectionPrivate * priv; -}; - -struct _DatabaseSourceCollectionClass { - SourceCollectionClass parent_class; -}; - -struct _MediaSourceCollection { - DatabaseSourceCollection parent_instance; - MediaSourceCollectionPrivate * priv; -}; - -struct _MediaSourceCollectionClass { - DatabaseSourceCollectionClass parent_class; - MediaSourceHoldingTank* (*create_trashcan) (MediaSourceCollection* self); - MediaSourceHoldingTank* (*create_offline_bin) (MediaSourceCollection* self); - MediaMonitor* (*create_media_monitor) (MediaSourceCollection* self, Workers* workers, GCancellable* cancellable); - gchar* (*get_typename) (MediaSourceCollection* self); - gboolean (*is_file_recognized) (MediaSourceCollection* self, GFile* file); - MediaSource* (*fetch_by_numeric_id) (MediaSourceCollection* self, gint64 numeric_id); - void (*notify_import_roll_altered) (MediaSourceCollection* self); - void (*notify_flagged_contents_altered) (MediaSourceCollection* self); - void (*notify_media_import_starting) (MediaSourceCollection* self, GeeCollection* media); - void (*notify_media_import_completed) (MediaSourceCollection* self, GeeCollection* media); - MediaSource* (*fetch_by_source_id) (MediaSourceCollection* self, const gchar* source_id); - GeeCollection* (*get_event_source_ids) (MediaSourceCollection* self, EventID* event_id); - void (*import_many) (MediaSourceCollection* self, GeeCollection* media); - void (*postprocess_imported_media) (MediaSourceCollection* self, GeeCollection* media); - void (*media_import_starting) (MediaSourceCollection* self, GeeCollection* media); - void (*media_import_completed) (MediaSourceCollection* self, GeeCollection* media); - void (*master_file_replaced) (MediaSourceCollection* self, MediaSource* media, GFile* old_file, GFile* new_file); - void (*trashcan_contents_altered) (MediaSourceCollection* self, GeeCollection* added, GeeCollection* removed); - void (*import_roll_altered) (MediaSourceCollection* self); - void (*offline_contents_altered) (MediaSourceCollection* self, GeeCollection* added, GeeCollection* removed); - void (*flagged_contents_altered) (MediaSourceCollection* self); - TransactionController* (*get_transaction_controller) (MediaSourceCollection* self); -}; - -struct _MediaSourceCollectionPrivate { - MediaSourceHoldingTank* trashcan; - MediaSourceHoldingTank* offline_bin; - GeeHashMap* by_master_file; - GeeMultiMap* import_rolls; - GeeTreeSet* sorted_import_ids; - GeeSet* flagged; -}; - -struct _FlaggableIface { - GTypeInterface parent_iface; - gboolean (*is_flagged) (Flaggable* self); - void (*mark_flagged) (Flaggable* self); - void (*mark_unflagged) (Flaggable* self); -}; - -typedef enum { - TOMBSTONE_REASON_REMOVED_BY_USER = 0, - TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE = 1 -} TombstoneReason; - -struct _MediaCollectionRegistry { - GTypeInstance parent_instance; - volatile int ref_count; - MediaCollectionRegistryPrivate * priv; -}; - -struct _MediaCollectionRegistryClass { - GTypeClass parent_class; - void (*finalize) (MediaCollectionRegistry *self); -}; - -struct _MediaCollectionRegistryPrivate { - GeeArrayList* all; - GeeHashMap* by_typename; -}; - -struct _ParamSpecMediaCollectionRegistry { - GParamSpec parent_instance; -}; - - -static gpointer backing_file_state_parent_class = NULL; -static gpointer media_source_parent_class = NULL; -extern EventSourceCollection* event_global; -static IndexableIface * media_source_indexable_parent_iface = NULL; -static gpointer media_source_holding_tank_parent_class = NULL; -static gpointer media_source_transaction_controller_parent_class = NULL; -static gpointer media_source_collection_parent_class = NULL; -static gpointer media_collection_registry_parent_class = NULL; -static MediaCollectionRegistry* media_collection_registry_instance; -static MediaCollectionRegistry* media_collection_registry_instance = NULL; -extern gboolean commandline_options_no_runtime_monitoring; - -gpointer backing_file_state_ref (gpointer instance); -void backing_file_state_unref (gpointer instance); -GParamSpec* param_spec_backing_file_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_backing_file_state (GValue* value, - gpointer v_object); -void value_take_backing_file_state (GValue* value, - gpointer v_object); -gpointer value_get_backing_file_state (const GValue* value); -GType backing_file_state_get_type (void) G_GNUC_CONST; -BackingFileState* backing_file_state_new (const gchar* filepath, - gint64 filesize, - time_t modification_time, - const gchar* md5); -BackingFileState* backing_file_state_construct (GType object_type, - const gchar* filepath, - gint64 filesize, - time_t modification_time, - const gchar* md5); -gpointer backing_photo_row_ref (gpointer instance); -void backing_photo_row_unref (gpointer instance); -GParamSpec* param_spec_backing_photo_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_backing_photo_row (GValue* value, - gpointer v_object); -void value_take_backing_photo_row (GValue* value, - gpointer v_object); -gpointer value_get_backing_photo_row (const GValue* value); -GType backing_photo_row_get_type (void) G_GNUC_CONST; -BackingFileState* backing_file_state_new_from_photo_row (BackingPhotoRow* photo_row, - const gchar* md5); -BackingFileState* backing_file_state_construct_from_photo_row (GType object_type, - BackingPhotoRow* photo_row, - const gchar* md5); -GType backing_photo_id_get_type (void) G_GNUC_CONST; -BackingPhotoID* backing_photo_id_dup (const BackingPhotoID* self); -void backing_photo_id_free (BackingPhotoID* self); -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType orientation_get_type (void) G_GNUC_CONST; -GFile* backing_file_state_get_file (BackingFileState* self); -static void backing_file_state_finalize (BackingFileState * obj); -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -gpointer source_holding_tank_ref (gpointer instance); -void source_holding_tank_unref (gpointer instance); -GParamSpec* param_spec_source_holding_tank (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_holding_tank (GValue* value, - gpointer v_object); -void value_take_source_holding_tank (GValue* value, - gpointer v_object); -gpointer value_get_source_holding_tank (const GValue* value); -GType source_holding_tank_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -gpointer source_snapshot_ref (gpointer instance); -void source_snapshot_unref (gpointer instance); -GParamSpec* param_spec_source_snapshot (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_snapshot (GValue* value, - gpointer v_object); -void value_take_source_snapshot (GValue* value, - gpointer v_object); -gpointer value_get_source_snapshot (const GValue* value); -GType source_snapshot_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType indexable_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType event_id_get_type (void) G_GNUC_CONST; -EventID* event_id_dup (const EventID* self); -void event_id_free (EventID* self); -GType rating_get_type (void) G_GNUC_CONST; -GType photo_exception_get_type (void) G_GNUC_CONST; -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -GType import_id_get_type (void) G_GNUC_CONST; -ImportID* import_id_dup (const ImportID* self); -void import_id_free (ImportID* self); -GType event_source_get_type (void) G_GNUC_CONST; -GType event_get_type (void) G_GNUC_CONST; -#define MEDIA_SOURCE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_SOURCE, MediaSourcePrivate)) -MediaSource* media_source_construct (GType object_type, - gint64 object_id); -ThumbnailSource* thumbnail_source_construct (GType object_type, - gint64 object_id); -guint64 media_source_internal_add_flags (guint64 flags, - guint64 selector); -guint64 media_source_internal_remove_flags (guint64 flags, - guint64 selector); -gboolean media_source_internal_is_flag_set (guint64 flags, - guint64 selector); -void media_source_notify_master_replaced (MediaSource* self, - GFile* old_file, - GFile* new_file); -static void media_source_real_notify_master_replaced (MediaSource* self, - GFile* old_file, - GFile* new_file); -static void media_source_real_notify_altered (DataObject* base, - Alteration* alteration); -gboolean alteration_has_detail (Alteration* self, - const gchar* subject, - const gchar* detail); -static void media_source_update_indexable_keywords (MediaSource* self); -Alteration* alteration_compress (Alteration* self, - Alteration* other); -Alteration* alteration_new (const gchar* subject, - const gchar* detail); -Alteration* alteration_construct (GType object_type, - const gchar* subject, - const gchar* detail); -void data_object_notify_altered (DataObject* self, - Alteration* alteration); -static void media_source_real_notify_membership_changed (DataObject* base, - DataCollection* collection); -void data_object_notify_membership_changed (DataObject* self, - DataCollection* collection); -gchar* media_source_get_title (MediaSource* self); -gchar* media_source_get_basename (MediaSource* self); -gchar* media_source_get_comment (MediaSource* self); -gchar* indexable_prepare_indexable_strings (gchar** strs, - int strs_length1); -static const gchar* media_source_real_get_indexable_keywords (Indexable* base); -gboolean media_source_set_event_id (MediaSource* self, - EventID* id); -static gboolean media_source_real_set_event_id (MediaSource* self, - EventID* id); -gboolean media_source_delete_original_file (MediaSource* self); -GFile* media_source_get_master_file (MediaSource* self); -GFile* app_dirs_get_import_dir (void); -gboolean query_is_directory_empty (GFile* dir, - GError** error); -static gchar* media_source_real_get_name (DataObject* base); -gboolean is_string_empty (const gchar* s); -static gchar* media_source_real_get_basename (MediaSource* self); -GFile* media_source_get_file (MediaSource* self); -static GFile* media_source_real_get_file (MediaSource* self); -static GFile* media_source_real_get_master_file (MediaSource* self); -guint64 media_source_get_master_filesize (MediaSource* self); -static guint64 media_source_real_get_master_filesize (MediaSource* self); -guint64 media_source_get_filesize (MediaSource* self); -static guint64 media_source_real_get_filesize (MediaSource* self); -time_t media_source_get_timestamp (MediaSource* self); -static time_t media_source_real_get_timestamp (MediaSource* self); -BackingFileState** media_source_get_backing_files_state (MediaSource* self, - int* result_length1); -static BackingFileState** media_source_real_get_backing_files_state (MediaSource* self, - int* result_length1); -static gchar* media_source_real_get_title (MediaSource* self); -static gchar* media_source_real_get_comment (MediaSource* self); -void media_source_set_title (MediaSource* self, - const gchar* title); -static void media_source_real_set_title (MediaSource* self, - const gchar* title); -gboolean media_source_set_comment (MediaSource* self, - const gchar* comment); -static gboolean media_source_real_set_comment (MediaSource* self, - const gchar* comment); -gchar* media_source_prep_title (const gchar* title); -GType prepare_input_text_options_get_type (void) G_GNUC_CONST; -gchar* prepare_input_text (const gchar* text, - PrepareInputTextOptions options, - gint dest_length); -#define DEFAULT_USER_TEXT_INPUT_LENGTH 1024 -gchar* media_source_prep_comment (const gchar* comment); -Rating media_source_get_rating (MediaSource* self); -static Rating media_source_real_get_rating (MediaSource* self); -void media_source_set_rating (MediaSource* self, - Rating rating); -static void media_source_real_set_rating (MediaSource* self, - Rating rating); -void media_source_increase_rating (MediaSource* self); -static void media_source_real_increase_rating (MediaSource* self); -void media_source_decrease_rating (MediaSource* self); -static void media_source_real_decrease_rating (MediaSource* self); -void media_source_get_dimensions (MediaSource* self, - PhotoException disallowed_steps, - Dimensions* result); -static void media_source_real_get_dimensions (MediaSource* self, - PhotoException disallowed_steps, - Dimensions* result); -GdkPixbuf* media_source_get_preview_pixbuf (MediaSource* self, - Scaling* scaling, - GError** error); -static GdkPixbuf* media_source_real_get_preview_pixbuf (MediaSource* self, - Scaling* scaling, - GError** error); -gboolean media_source_is_trashed (MediaSource* self); -static gboolean media_source_real_is_trashed (MediaSource* self); -void media_source_trash (MediaSource* self); -static void media_source_real_trash (MediaSource* self); -void media_source_untrash (MediaSource* self); -static void media_source_real_untrash (MediaSource* self); -gboolean media_source_is_offline (MediaSource* self); -static gboolean media_source_real_is_offline (MediaSource* self); -void media_source_mark_offline (MediaSource* self); -static void media_source_real_mark_offline (MediaSource* self); -void media_source_mark_online (MediaSource* self); -static void media_source_real_mark_online (MediaSource* self); -gchar* media_source_get_master_md5 (MediaSource* self); -static gchar* media_source_real_get_master_md5 (MediaSource* self); -void media_source_get_event_id (MediaSource* self, - EventID* result); -static void media_source_real_get_event_id (MediaSource* self, - EventID* result); -Event* media_source_get_event (MediaSource* self); -gboolean event_id_is_valid (EventID *self); -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType event_source_collection_get_type (void) G_GNUC_CONST; -Event* event_source_collection_fetch (EventSourceCollection* self, - EventID* event_id); -gboolean media_source_set_event (MediaSource* self, - Event* new_event); -void event_get_event_id (Event* self, - EventID* result); -#define EVENT_ID_INVALID ((gint64) -1) -void event_id_init (EventID *self, - gint64 id); -void event_detach (Event* self, - MediaSource* source); -void event_attach (Event* self, - MediaSource* source); -gpointer transaction_controller_ref (gpointer instance); -void transaction_controller_unref (gpointer instance); -GParamSpec* param_spec_transaction_controller (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_transaction_controller (GValue* value, - gpointer v_object); -void value_take_transaction_controller (GValue* value, - gpointer v_object); -gpointer value_get_transaction_controller (const GValue* value); -GType transaction_controller_get_type (void) G_GNUC_CONST; -void media_source_set_many_to_event (GeeCollection* media_sources, - Event* event, - TransactionController* controller, - GError** error); -void transaction_controller_begin (TransactionController* self); -void event_attach_many (Event* self, - GeeCollection* media); -void transaction_controller_commit (TransactionController* self); -time_t media_source_get_exposure_time (MediaSource* self); -static time_t media_source_real_get_exposure_time (MediaSource* self); -void media_source_get_import_id (MediaSource* self, - ImportID* result); -static void media_source_real_get_import_id (MediaSource* self, - ImportID* result); -static void media_source_real_master_replaced (MediaSource* self, - GFile* old_file, - GFile* new_file); -static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void media_source_finalize (GObject * obj); -GType database_source_holding_tank_get_type (void) G_GNUC_CONST; -GType media_source_holding_tank_get_type (void) G_GNUC_CONST; -#define MEDIA_SOURCE_HOLDING_TANK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankPrivate)) -guint file_hash (GFile* file); -static guint _file_hash_gee_hash_data_func (gconstpointer v, - gpointer self); -gboolean file_equal (GFile* a, - GFile* b); -static gboolean _file_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -GType media_source_collection_get_type (void) G_GNUC_CONST; -MediaSourceHoldingTank* media_source_holding_tank_new (MediaSourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target); -MediaSourceHoldingTank* media_source_holding_tank_construct (GType object_type, - MediaSourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target); -DatabaseSourceHoldingTank* database_source_holding_tank_new (SourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target); -DatabaseSourceHoldingTank* database_source_holding_tank_construct (GType object_type, - SourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target); -MediaSource* media_source_holding_tank_fetch_by_master_file (MediaSourceHoldingTank* self, - GFile* file); -MediaSource* media_source_holding_tank_fetch_by_md5 (MediaSourceHoldingTank* self, - const gchar* md5); -static void media_source_holding_tank_real_notify_contents_altered (SourceHoldingTank* base, - GeeCollection* added, - GeeCollection* removed); -static void media_source_holding_tank_on_master_source_replaced (MediaSourceHoldingTank* self, - MediaSource* media_source, - GFile* old_file, - GFile* new_file); -static void _media_source_holding_tank_on_master_source_replaced_media_source_master_replaced (MediaSource* _sender, - GFile* old_file, - GFile* new_file, - gpointer self); -void source_holding_tank_notify_contents_altered (SourceHoldingTank* self, - GeeCollection* added, - GeeCollection* removed); -static void media_source_holding_tank_finalize (SourceHoldingTank * obj); -GType media_source_transaction_controller_get_type (void) G_GNUC_CONST; -#define MEDIA_SOURCE_TRANSACTION_CONTROLLER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionControllerPrivate)) -MediaSourceTransactionController* media_source_transaction_controller_new (MediaSourceCollection* sources); -MediaSourceTransactionController* media_source_transaction_controller_construct (GType object_type, - MediaSourceCollection* sources); -TransactionController* transaction_controller_construct (GType object_type); -static void media_source_transaction_controller_real_begin_impl (TransactionController* base, - GError** error); -void database_table_begin_transaction (void); -void data_collection_freeze_notifications (DataCollection* self); -static void media_source_transaction_controller_real_commit_impl (TransactionController* base, - GError** error); -void data_collection_thaw_notifications (DataCollection* self); -GQuark database_error_quark (void); -void database_table_commit_transaction (GError** error); -static void media_source_transaction_controller_finalize (TransactionController * obj); -GType marker_get_type (void) G_GNUC_CONST; -gpointer source_backlink_ref (gpointer instance); -void source_backlink_unref (gpointer instance); -GParamSpec* param_spec_source_backlink (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_backlink (GValue* value, - gpointer v_object); -void value_take_source_backlink (GValue* value, - gpointer v_object); -gpointer value_get_source_backlink (const GValue* value); -GType source_backlink_get_type (void) G_GNUC_CONST; -gpointer workers_ref (gpointer instance); -void workers_unref (gpointer instance); -GParamSpec* param_spec_workers (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_workers (GValue* value, - gpointer v_object); -void value_take_workers (GValue* value, - gpointer v_object); -gpointer value_get_workers (const GValue* value); -GType workers_get_type (void) G_GNUC_CONST; -GType media_monitor_get_type (void) G_GNUC_CONST; -#define MEDIA_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionPrivate)) -gint import_id_compare_func (ImportID* a, - ImportID* b); -static gint _import_id_compare_func_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -MediaSourceCollection* media_source_collection_construct (GType object_type, - const gchar* name, - GetSourceDatabaseKey source_key_func, - void* source_key_func_target); -DatabaseSourceCollection* database_source_collection_construct (GType object_type, - const gchar* name, - GetSourceDatabaseKey source_key_func, - void* source_key_func_target); -MediaSourceHoldingTank* media_source_collection_create_trashcan (MediaSourceCollection* self); -MediaSourceHoldingTank* media_source_collection_create_offline_bin (MediaSourceCollection* self); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -GType video_source_get_type (void) G_GNUC_CONST; -GType video_get_type (void) G_GNUC_CONST; -void media_source_collection_filter_media (GeeCollection* media, - GeeCollection* photos, - GeeCollection* videos); -gchar* data_object_to_string (DataObject* self); -void media_source_collection_count_media (GeeCollection* media, - gint* photo_count, - gint* video_count); -gboolean media_source_collection_has_photo (GeeCollection* media); -gboolean media_source_collection_has_video (GeeCollection* media); -static MediaSourceHoldingTank* media_source_collection_real_create_trashcan (MediaSourceCollection* self); -static MediaSourceHoldingTank* media_source_collection_real_create_offline_bin (MediaSourceCollection* self); -MediaMonitor* media_source_collection_create_media_monitor (MediaSourceCollection* self, - Workers* workers, - GCancellable* cancellable); -static MediaMonitor* media_source_collection_real_create_media_monitor (MediaSourceCollection* self, - Workers* workers, - GCancellable* cancellable); -gchar* media_source_collection_get_typename (MediaSourceCollection* self); -static gchar* media_source_collection_real_get_typename (MediaSourceCollection* self); -gboolean media_source_collection_is_file_recognized (MediaSourceCollection* self, - GFile* file); -static gboolean media_source_collection_real_is_file_recognized (MediaSourceCollection* self, - GFile* file); -MediaSourceHoldingTank* media_source_collection_get_trashcan (MediaSourceCollection* self); -MediaSourceHoldingTank* media_source_collection_get_offline_bin (MediaSourceCollection* self); -MediaSource* media_source_collection_fetch_by_numeric_id (MediaSourceCollection* self, - gint64 numeric_id); -static MediaSource* media_source_collection_real_fetch_by_numeric_id (MediaSourceCollection* self, - gint64 numeric_id); -void media_source_collection_notify_import_roll_altered (MediaSourceCollection* self); -static void media_source_collection_real_notify_import_roll_altered (MediaSourceCollection* self); -void media_source_collection_notify_flagged_contents_altered (MediaSourceCollection* self); -static void media_source_collection_real_notify_flagged_contents_altered (MediaSourceCollection* self); -void media_source_collection_notify_media_import_starting (MediaSourceCollection* self, - GeeCollection* media); -static void media_source_collection_real_notify_media_import_starting (MediaSourceCollection* self, - GeeCollection* media); -void media_source_collection_notify_media_import_completed (MediaSourceCollection* self, - GeeCollection* media); -static void media_source_collection_real_notify_media_import_completed (MediaSourceCollection* self, - GeeCollection* media); -static void media_source_collection_real_items_altered (DataCollection* base, - GeeMap* items); -gboolean alteration_has_subject (Alteration* self, - const gchar* subject); -gboolean source_holding_tank_contains (SourceHoldingTank* self, - DataSource* source); -GType flaggable_get_type (void) G_GNUC_CONST; -gboolean flaggable_is_flagged (Flaggable* self); -void source_holding_tank_unlink_and_hold (SourceHoldingTank* self, - GeeCollection* unlink); -static void media_source_collection_real_notify_contents_altered (DataCollection* base, - GeeIterable* added, - GeeIterable* removed); -static void media_source_collection_on_master_replaced (MediaSourceCollection* self, - MediaSource* media, - GFile* old_file, - GFile* new_file); -static void _media_source_collection_on_master_replaced_media_source_master_replaced (MediaSource* _sender, - GFile* old_file, - GFile* new_file, - gpointer self); -gboolean import_id_is_valid (ImportID *self); -void data_collection_notify_contents_altered (DataCollection* self, - GeeIterable* added, - GeeIterable* removed); -MediaSource* media_source_collection_fetch_by_master_file (MediaSourceCollection* self, - GFile* file); -MediaSource* media_source_collection_fetch_by_source_id (MediaSourceCollection* self, - const gchar* source_id); -static MediaSource* media_source_collection_real_fetch_by_source_id (MediaSourceCollection* self, - const gchar* source_id); -gint64 parse_int64 (const gchar* str, - gint num_base); -GeeCollection* media_source_collection_get_event_source_ids (MediaSourceCollection* self, - EventID* event_id); -static GeeCollection* media_source_collection_real_get_event_source_ids (MediaSourceCollection* self, - EventID* event_id); -GeeCollection* media_source_collection_get_trashcan_contents (MediaSourceCollection* self); -GeeCollection* source_holding_tank_get_all (SourceHoldingTank* self); -GeeCollection* media_source_collection_get_offline_bin_contents (MediaSourceCollection* self); -GeeCollection* media_source_collection_get_flagged (MediaSourceCollection* self); -GeeSortedSet* media_source_collection_get_import_roll_ids (MediaSourceCollection* self); -ImportID* media_source_collection_get_last_import_id (MediaSourceCollection* self); -GeeCollection* media_source_collection_get_import_roll (MediaSourceCollection* self, - ImportID* import_id); -void media_source_collection_add_many_to_trash (MediaSourceCollection* self, - GeeCollection* sources); -void source_holding_tank_add_many (SourceHoldingTank* self, - GeeCollection* many); -void media_source_collection_add_many_to_offline (MediaSourceCollection* self, - GeeCollection* sources); -gint media_source_collection_get_trashcan_count (MediaSourceCollection* self); -gint source_holding_tank_get_count (SourceHoldingTank* self); -void media_source_collection_import_many (MediaSourceCollection* self, - GeeCollection* media); -static void media_source_collection_real_import_many (MediaSourceCollection* self, - GeeCollection* media); -GeeCollection* data_collection_add_many (DataCollection* self, - GeeCollection* objects, - ProgressMonitor monitor, - void* monitor_target); -void media_source_collection_postprocess_imported_media (MediaSourceCollection* self, - GeeCollection* media); -static void media_source_collection_real_postprocess_imported_media (MediaSourceCollection* self, - GeeCollection* media); -void media_source_collection_remove_from_app (MediaSourceCollection* self, - GeeCollection* sources, - gboolean delete_backing, - ProgressMonitor monitor, - void* monitor_target, - GeeList* not_removed); -gpointer aggregate_progress_monitor_ref (gpointer instance); -void aggregate_progress_monitor_unref (gpointer instance); -GParamSpec* param_spec_aggregate_progress_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_aggregate_progress_monitor (GValue* value, - gpointer v_object); -void value_take_aggregate_progress_monitor (GValue* value, - gpointer v_object); -gpointer value_get_aggregate_progress_monitor (const GValue* value); -GType aggregate_progress_monitor_get_type (void) G_GNUC_CONST; -AggregateProgressMonitor* aggregate_progress_monitor_new (guint64 grand_total, - ProgressMonitor wrapped_monitor, - void* wrapped_monitor_target); -AggregateProgressMonitor* aggregate_progress_monitor_construct (GType object_type, - guint64 grand_total, - ProgressMonitor wrapped_monitor, - void* wrapped_monitor_target); -gboolean aggregate_progress_monitor_monitor (AggregateProgressMonitor* self, - guint64 count, - guint64 total); -static gboolean _aggregate_progress_monitor_monitor_progress_monitor (guint64 current, - guint64 total, - gboolean do_event_loop, - gpointer self); -void source_holding_tank_destroy_orphans (SourceHoldingTank* self, - GeeList* destroy, - gboolean delete_backing, - ProgressMonitor monitor, - void* monitor_target, - GeeList* not_removed); -gint source_collection_destroy_marked (SourceCollection* self, - Marker* marker, - gboolean delete_backing, - ProgressMonitor monitor, - void* monitor_target, - GeeList* not_removed); -Marker* data_collection_mark_many (DataCollection* self, - GeeCollection* objects); -GType tombstone_reason_get_type (void) G_GNUC_CONST; -void tombstone_entomb_many_sources (GeeCollection* sources, - TombstoneReason reason, - GError** error); -void app_window_database_error (GError* err); -void media_source_collection_delete_backing_files (MediaSourceCollection* self, - GeeCollection* sources, - ProgressMonitor monitor, - void* monitor_target, - GeeList* not_deleted); -TransactionController* media_source_collection_get_transaction_controller (MediaSourceCollection* self); -static void media_source_collection_real_media_import_starting (MediaSourceCollection* self, - GeeCollection* media); -static void media_source_collection_real_media_import_completed (MediaSourceCollection* self, - GeeCollection* media); -static void media_source_collection_real_master_file_replaced (MediaSourceCollection* self, - MediaSource* media, - GFile* old_file, - GFile* new_file); -static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void media_source_collection_real_trashcan_contents_altered (MediaSourceCollection* self, - GeeCollection* added, - GeeCollection* removed); -static void media_source_collection_real_import_roll_altered (MediaSourceCollection* self); -static void media_source_collection_real_offline_contents_altered (MediaSourceCollection* self, - GeeCollection* added, - GeeCollection* removed); -static void media_source_collection_real_flagged_contents_altered (MediaSourceCollection* self); -static void media_source_collection_finalize (DataCollection * obj); -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -#define MEDIA_COLLECTION_REGISTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryPrivate)) -gpointer application_ref (gpointer instance); -void application_unref (gpointer instance); -GParamSpec* param_spec_application (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_application (GValue* value, - gpointer v_object); -void value_take_application (GValue* value, - gpointer v_object); -gpointer value_get_application (const GValue* value); -GType application_get_type (void) G_GNUC_CONST; -Application* application_get_instance (void); -static void media_collection_registry_on_init_done (MediaCollectionRegistry* self); -static void _media_collection_registry_on_init_done_application_init_done (Application* _sender, - gpointer self); -#define MEDIA_COLLECTION_REGISTRY_LIBRARY_MONITOR_START_DELAY_MSEC 1000 -static MediaCollectionRegistry* media_collection_registry_new (void); -static MediaCollectionRegistry* media_collection_registry_construct (GType object_type); -GType directory_monitor_get_type (void) G_GNUC_CONST; -GType library_monitor_get_type (void) G_GNUC_CONST; -LibraryMonitor* library_monitor_new (GFile* root, - gboolean recurse, - gboolean monitoring); -LibraryMonitor* library_monitor_construct (GType object_type, - GFile* root, - gboolean recurse, - gboolean monitoring); -gpointer library_monitor_pool_ref (gpointer instance); -void library_monitor_pool_unref (gpointer instance); -GParamSpec* param_spec_library_monitor_pool (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_library_monitor_pool (GValue* value, - gpointer v_object); -void value_take_library_monitor_pool (GValue* value, - gpointer v_object); -gpointer value_get_library_monitor_pool (const GValue* value); -GType library_monitor_pool_get_type (void) G_GNUC_CONST; -LibraryMonitorPool* library_monitor_pool_get_instance (void); -void library_monitor_pool_replace (LibraryMonitorPool* self, - LibraryMonitor* replacement, - gint start_msec_delay); -void media_collection_registry_init (void); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -static void media_collection_registry_on_import_directory_changed (void); -static void _media_collection_registry_on_import_directory_changed_configuration_facade_import_directory_changed (ConfigurationFacade* _sender, - gpointer self); -void media_collection_registry_terminate (void); -LibraryMonitor* library_monitor_pool_get_monitor (LibraryMonitorPool* self); -GFile* directory_monitor_get_root (DirectoryMonitor* self); -void library_files_select_copy_function (void); -MediaCollectionRegistry* media_collection_registry_get_instance (void); -gchar* media_collection_registry_get_typename_from_source_id (const gchar* source_id); -#define PHOTO_TYPENAME "thumb" -void media_collection_registry_register_collection (MediaCollectionRegistry* self, - MediaSourceCollection* collection); -MediaSourceCollection* media_collection_registry_get_collection (MediaCollectionRegistry* self, - const gchar* typename); -GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self); -void media_collection_registry_freeze_all (MediaCollectionRegistry* self); -void media_collection_registry_thaw_all (MediaCollectionRegistry* self); -void media_collection_registry_begin_transaction_on_all (MediaCollectionRegistry* self); -void media_collection_registry_commit_transaction_on_all (MediaCollectionRegistry* self); -MediaSource* media_collection_registry_fetch_media (MediaCollectionRegistry* self, - const gchar* source_id); -ImportID* media_collection_registry_get_last_import_id (MediaCollectionRegistry* self); -#define IMPORT_ID_INVALID ((gint64) 0) -void import_id_init (ImportID *self, - gint64 id); -GeeCollection* media_collection_registry_get_source_ids_for_event_id (MediaCollectionRegistry* self, - EventID* event_id); -MediaSourceCollection* media_collection_registry_get_collection_for_file (MediaCollectionRegistry* self, - GFile* file); -gboolean media_collection_registry_is_valid_source_id (MediaCollectionRegistry* self, - const gchar* source_id); -#define VIDEO_TYPENAME "video" -static void media_collection_registry_finalize (MediaCollectionRegistry * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -BackingFileState* -backing_file_state_construct (GType object_type, - const gchar* filepath, - gint64 filesize, - time_t modification_time, - const gchar* md5) -{ - BackingFileState* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 13 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 13 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = (BackingFileState*) g_type_create_instance (object_type); -#line 14 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = g_strdup (filepath); -#line 14 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (self->filepath); -#line 14 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->filepath = _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->filesize = filesize; -#line 16 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->modification_time = modification_time; -#line 17 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = g_strdup (md5); -#line 17 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (self->md5); -#line 17 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->md5 = _tmp1_; -#line 13 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return self; -#line 1718 "MediaDataRepresentation.c" -} - - -BackingFileState* -backing_file_state_new (const gchar* filepath, - gint64 filesize, - time_t modification_time, - const gchar* md5) -{ -#line 13 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return backing_file_state_construct (TYPE_BACKING_FILE_STATE, filepath, filesize, modification_time, md5); -#line 1730 "MediaDataRepresentation.c" -} - - -BackingFileState* -backing_file_state_construct_from_photo_row (GType object_type, - BackingPhotoRow* photo_row, - const gchar* md5) -{ - BackingFileState* self = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; - gint64 _tmp2_; - time_t _tmp3_; - gchar* _tmp4_; -#line 20 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_BACKING_PHOTO_ROW (photo_row), NULL); -#line 20 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = (BackingFileState*) g_type_create_instance (object_type); -#line 21 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = photo_row->filepath; -#line 21 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 21 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (self->filepath); -#line 21 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->filepath = _tmp1_; -#line 22 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = photo_row->filesize; -#line 22 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->filesize = _tmp2_; -#line 23 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = photo_row->timestamp; -#line 23 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->modification_time = _tmp3_; -#line 24 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = g_strdup (md5); -#line 24 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (self->md5); -#line 24 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->md5 = _tmp4_; -#line 20 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return self; -#line 1773 "MediaDataRepresentation.c" -} - - -BackingFileState* -backing_file_state_new_from_photo_row (BackingPhotoRow* photo_row, - const gchar* md5) -{ -#line 20 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return backing_file_state_construct_from_photo_row (TYPE_BACKING_FILE_STATE, photo_row, md5); -#line 1783 "MediaDataRepresentation.c" -} - - -GFile* -backing_file_state_get_file (BackingFileState* self) -{ - GFile* result = NULL; - const gchar* _tmp0_; - GFile* _tmp1_; -#line 27 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_BACKING_FILE_STATE (self), NULL); -#line 28 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->filepath; -#line 28 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = g_file_new_for_path (_tmp0_); -#line 28 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp1_; -#line 28 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 1803 "MediaDataRepresentation.c" -} - - -static void -value_backing_file_state_init (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - value->data[0].v_pointer = NULL; -#line 1812 "MediaDataRepresentation.c" -} - - -static void -value_backing_file_state_free_value (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - backing_file_state_unref (value->data[0].v_pointer); -#line 1823 "MediaDataRepresentation.c" - } -} - - -static void -value_backing_file_state_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (src_value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - dest_value->data[0].v_pointer = backing_file_state_ref (src_value->data[0].v_pointer); -#line 1836 "MediaDataRepresentation.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - dest_value->data[0].v_pointer = NULL; -#line 1840 "MediaDataRepresentation.c" - } -} - - -static gpointer -value_backing_file_state_peek_pointer (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return value->data[0].v_pointer; -#line 1850 "MediaDataRepresentation.c" -} - - -static gchar* -value_backing_file_state_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (collect_values[0].v_pointer) { -#line 1862 "MediaDataRepresentation.c" - BackingFileState * object; - object = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (object->parent_instance.g_class == NULL) { -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1869 "MediaDataRepresentation.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1873 "MediaDataRepresentation.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - value->data[0].v_pointer = backing_file_state_ref (object); -#line 1877 "MediaDataRepresentation.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - value->data[0].v_pointer = NULL; -#line 1881 "MediaDataRepresentation.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return NULL; -#line 1885 "MediaDataRepresentation.c" -} - - -static gchar* -value_backing_file_state_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - BackingFileState ** object_p; - object_p = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!object_p) { -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1901 "MediaDataRepresentation.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - *object_p = NULL; -#line 1907 "MediaDataRepresentation.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - *object_p = value->data[0].v_pointer; -#line 1911 "MediaDataRepresentation.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - *object_p = backing_file_state_ref (value->data[0].v_pointer); -#line 1915 "MediaDataRepresentation.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return NULL; -#line 1919 "MediaDataRepresentation.c" -} - - -GParamSpec* -param_spec_backing_file_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecBackingFileState* spec; -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_BACKING_FILE_STATE), NULL); -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return G_PARAM_SPEC (spec); -#line 1939 "MediaDataRepresentation.c" -} - - -gpointer -value_get_backing_file_state (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKING_FILE_STATE), NULL); -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return value->data[0].v_pointer; -#line 1950 "MediaDataRepresentation.c" -} - - -void -value_set_backing_file_state (GValue* value, - gpointer v_object) -{ - BackingFileState * old; -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKING_FILE_STATE)); -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BACKING_FILE_STATE)); -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - value->data[0].v_pointer = v_object; -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - backing_file_state_ref (value->data[0].v_pointer); -#line 1973 "MediaDataRepresentation.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - value->data[0].v_pointer = NULL; -#line 1977 "MediaDataRepresentation.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - backing_file_state_unref (old); -#line 1983 "MediaDataRepresentation.c" - } -} - - -void -value_take_backing_file_state (GValue* value, - gpointer v_object) -{ - BackingFileState * old; -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKING_FILE_STATE)); -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BACKING_FILE_STATE)); -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - value->data[0].v_pointer = v_object; -#line 2005 "MediaDataRepresentation.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - value->data[0].v_pointer = NULL; -#line 2009 "MediaDataRepresentation.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - backing_file_state_unref (old); -#line 2015 "MediaDataRepresentation.c" - } -} - - -static void -backing_file_state_class_init (BackingFileStateClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - backing_file_state_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((BackingFileStateClass *) klass)->finalize = backing_file_state_finalize; -#line 2027 "MediaDataRepresentation.c" -} - - -static void -backing_file_state_instance_init (BackingFileState * self) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->ref_count = 1; -#line 2036 "MediaDataRepresentation.c" -} - - -static void -backing_file_state_finalize (BackingFileState * obj) -{ - BackingFileState * self; -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BACKING_FILE_STATE, BackingFileState); -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_handlers_destroy (self); -#line 8 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (self->filepath); -#line 11 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (self->md5); -#line 2052 "MediaDataRepresentation.c" -} - - -GType -backing_file_state_get_type (void) -{ - static volatile gsize backing_file_state_type_id__volatile = 0; - if (g_once_init_enter (&backing_file_state_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_backing_file_state_init, value_backing_file_state_free_value, value_backing_file_state_copy_value, value_backing_file_state_peek_pointer, "p", value_backing_file_state_collect_value, "p", value_backing_file_state_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (BackingFileStateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) backing_file_state_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BackingFileState), 0, (GInstanceInitFunc) backing_file_state_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType backing_file_state_type_id; - backing_file_state_type_id = g_type_register_fundamental (g_type_fundamental_next (), "BackingFileState", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&backing_file_state_type_id__volatile, backing_file_state_type_id); - } - return backing_file_state_type_id__volatile; -} - - -gpointer -backing_file_state_ref (gpointer instance) -{ - BackingFileState * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_atomic_int_inc (&self->ref_count); -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return instance; -#line 2081 "MediaDataRepresentation.c" -} - - -void -backing_file_state_unref (gpointer instance) -{ - BackingFileState * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - BACKING_FILE_STATE_GET_CLASS (self)->finalize (self); -#line 7 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2096 "MediaDataRepresentation.c" - } -} - - -MediaSource* -media_source_construct (GType object_type, - gint64 object_id) -{ - MediaSource * self = NULL; -#line 40 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = (MediaSource*) thumbnail_source_construct (object_type, object_id); -#line 39 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return self; -#line 2110 "MediaDataRepresentation.c" -} - - -inline guint64 -media_source_internal_add_flags (guint64 flags, - guint64 selector) -{ - guint64 result = 0ULL; -#line 44 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = flags | selector; -#line 44 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 2123 "MediaDataRepresentation.c" -} - - -inline guint64 -media_source_internal_remove_flags (guint64 flags, - guint64 selector) -{ - guint64 result = 0ULL; -#line 48 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = flags & (~selector); -#line 48 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 2136 "MediaDataRepresentation.c" -} - - -inline gboolean -media_source_internal_is_flag_set (guint64 flags, - guint64 selector) -{ - gboolean result = FALSE; -#line 52 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = (flags & selector) != ((guint64) 0); -#line 52 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 2149 "MediaDataRepresentation.c" -} - - -static void -media_source_real_notify_master_replaced (MediaSource* self, - GFile* old_file, - GFile* new_file) -{ -#line 55 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_IS_FILE (old_file)); -#line 55 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_IS_FILE (new_file)); -#line 56 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_emit (self, media_source_signals[MEDIA_SOURCE_MASTER_REPLACED_SIGNAL], 0, old_file, new_file); -#line 2164 "MediaDataRepresentation.c" -} - - -void -media_source_notify_master_replaced (MediaSource* self, - GFile* old_file, - GFile* new_file) -{ -#line 55 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE (self)); -#line 55 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_GET_CLASS (self)->notify_master_replaced (self, old_file, new_file); -#line 2177 "MediaDataRepresentation.c" -} - - -static gpointer -_alteration_ref0 (gpointer self) -{ -#line 60 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return self ? alteration_ref (self) : NULL; -#line 2186 "MediaDataRepresentation.c" -} - - -static void -media_source_real_notify_altered (DataObject* base, - Alteration* alteration) -{ - MediaSource * self; - Alteration* local = NULL; - Alteration* _tmp0_; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - Alteration* _tmp3_; - Alteration* _tmp10_; -#line 59 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE, MediaSource); -#line 59 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_ALTERATION (alteration)); -#line 60 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = _alteration_ref0 (alteration); -#line 60 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - local = _tmp0_; -#line 62 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = local; -#line 62 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (alteration_has_detail (_tmp3_, "metadata", "name")) { -#line 62 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = TRUE; -#line 2215 "MediaDataRepresentation.c" - } else { - Alteration* _tmp4_; -#line 63 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = local; -#line 63 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = alteration_has_detail (_tmp4_, "metadata", "comment"); -#line 2222 "MediaDataRepresentation.c" - } -#line 62 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp2_) { -#line 62 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = TRUE; -#line 2228 "MediaDataRepresentation.c" - } else { - Alteration* _tmp5_; -#line 64 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = local; -#line 64 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = alteration_has_detail (_tmp5_, "backing", "master"); -#line 2235 "MediaDataRepresentation.c" - } -#line 62 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp1_) { -#line 2239 "MediaDataRepresentation.c" - Alteration* _tmp6_; - Alteration* _tmp7_; - Alteration* _tmp8_; - Alteration* _tmp9_; -#line 65 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_update_indexable_keywords (self); -#line 66 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = local; -#line 66 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = alteration_new ("indexable", "keywords"); -#line 66 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp8_ = _tmp7_; -#line 66 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp9_ = alteration_compress (_tmp6_, _tmp8_); -#line 66 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _alteration_unref0 (local); -#line 66 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - local = _tmp9_; -#line 66 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _alteration_unref0 (_tmp8_); -#line 2260 "MediaDataRepresentation.c" - } -#line 69 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp10_ = local; -#line 69 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - DATA_OBJECT_CLASS (media_source_parent_class)->notify_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), TYPE_DATA_OBJECT, DataObject), _tmp10_); -#line 59 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _alteration_unref0 (local); -#line 2268 "MediaDataRepresentation.c" -} - - -static void -media_source_real_notify_membership_changed (DataObject* base, - DataCollection* collection) -{ - MediaSource * self; - gboolean _tmp0_ = FALSE; -#line 74 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE, MediaSource); -#line 74 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail ((collection == NULL) || IS_DATA_COLLECTION (collection)); -#line 75 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (collection != NULL) { -#line 2284 "MediaDataRepresentation.c" - const gchar* _tmp1_; -#line 75 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = self->priv->indexable_keywords; -#line 75 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = _tmp1_ == NULL; -#line 2290 "MediaDataRepresentation.c" - } else { -#line 75 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = FALSE; -#line 2294 "MediaDataRepresentation.c" - } -#line 75 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp0_) { -#line 78 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_update_indexable_keywords (self); -#line 2300 "MediaDataRepresentation.c" - } -#line 81 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - DATA_OBJECT_CLASS (media_source_parent_class)->notify_membership_changed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), TYPE_DATA_OBJECT, DataObject), collection); -#line 2304 "MediaDataRepresentation.c" -} - - -static void -media_source_update_indexable_keywords (MediaSource* self) -{ - gchar** indexables = NULL; - gchar** _tmp0_; - gint indexables_length1; - gint _indexables_size_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 84 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE (self)); -#line 85 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = g_new0 (gchar*, 3 + 1); -#line 85 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - indexables = _tmp0_; -#line 85 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - indexables_length1 = 3; -#line 85 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _indexables_size_ = indexables_length1; -#line 86 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = media_source_get_title (self); -#line 86 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (indexables[0]); -#line 86 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - indexables[0] = _tmp1_; -#line 86 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = indexables[0]; -#line 87 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = media_source_get_basename (self); -#line 87 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (indexables[1]); -#line 87 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - indexables[1] = _tmp3_; -#line 87 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = indexables[1]; -#line 88 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = media_source_get_comment (self); -#line 88 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (indexables[2]); -#line 88 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - indexables[2] = _tmp5_; -#line 88 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = indexables[2]; -#line 90 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = indexable_prepare_indexable_strings (indexables, indexables_length1); -#line 90 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (self->priv->indexable_keywords); -#line 90 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv->indexable_keywords = _tmp7_; -#line 84 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - indexables = (_vala_array_free (indexables, indexables_length1, (GDestroyNotify) g_free), NULL); -#line 2364 "MediaDataRepresentation.c" -} - - -static const gchar* -media_source_real_get_indexable_keywords (Indexable* base) -{ - MediaSource * self; - const gchar* result = NULL; - const gchar* _tmp0_; -#line 93 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE, MediaSource); -#line 94 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->priv->indexable_keywords; -#line 94 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp0_; -#line 94 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 2382 "MediaDataRepresentation.c" -} - - -static gboolean -media_source_real_set_event_id (MediaSource* self, - EventID* id) -{ - gboolean _tmp0_ = FALSE; -#line 97 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_set_event_id'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 97 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return _tmp0_; -#line 2395 "MediaDataRepresentation.c" -} - - -gboolean -media_source_set_event_id (MediaSource* self, - EventID* id) -{ -#line 97 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), FALSE); -#line 97 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_GET_CLASS (self)->set_event_id (self, id); -#line 2407 "MediaDataRepresentation.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 114 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return self ? g_object_ref (self) : NULL; -#line 2416 "MediaDataRepresentation.c" -} - - -gboolean -media_source_delete_original_file (MediaSource* self) -{ - gboolean result = FALSE; - gboolean ret = FALSE; - GFile* file = NULL; - GFile* _tmp0_; - GFile* _tmp9_; - GFile* _tmp10_; - GFile* _tmp11_; - gboolean _tmp12_; - GError * _inner_error_ = NULL; -#line 99 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), FALSE); -#line 100 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ret = FALSE; -#line 101 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_source_get_master_file (self); -#line 101 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - file = _tmp0_; -#line 2440 "MediaDataRepresentation.c" - { - gboolean _tmp1_ = FALSE; - GFile* _tmp2_; -#line 104 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = file; -#line 104 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = g_file_trash (_tmp2_, NULL, &_inner_error_); -#line 104 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2450 "MediaDataRepresentation.c" - goto __catch571_g_error; - } -#line 104 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ret = _tmp1_; -#line 2455 "MediaDataRepresentation.c" - } - goto __finally571; - __catch571_g_error: - { - GError* err = NULL; - GFile* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - GError* _tmp6_; - const gchar* _tmp7_; -#line 103 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - err = _inner_error_; -#line 103 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _inner_error_ = NULL; -#line 108 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = file; -#line 108 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = g_file_get_path (_tmp3_); -#line 108 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = _tmp4_; -#line 108 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = err; -#line 108 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = _tmp6_->message; -#line 108 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_message ("MediaDataRepresentation.vala:108: Unable to move original photo %s to " \ -"trash: %s", _tmp5_, _tmp7_); -#line 108 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (_tmp5_); -#line 103 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_error_free0 (err); -#line 2486 "MediaDataRepresentation.c" - } - __finally571: -#line 103 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2491 "MediaDataRepresentation.c" - gboolean _tmp8_ = FALSE; -#line 103 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (file); -#line 103 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 103 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_clear_error (&_inner_error_); -#line 103 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return _tmp8_; -#line 2501 "MediaDataRepresentation.c" - } -#line 113 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp9_ = file; -#line 113 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp10_ = app_dirs_get_import_dir (); -#line 113 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp11_ = _tmp10_; -#line 113 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp12_ = g_file_has_prefix (_tmp9_, _tmp11_); -#line 113 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp11_); -#line 113 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp12_) { -#line 2515 "MediaDataRepresentation.c" - GFile* parent = NULL; - GFile* _tmp13_; - GFile* _tmp14_; -#line 114 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp13_ = file; -#line 114 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp14_ = _g_object_ref0 (_tmp13_); -#line 114 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - parent = _tmp14_; -#line 115 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 2527 "MediaDataRepresentation.c" - GFile* _tmp15_; - GFile* _tmp16_; - GFile* _tmp17_; - gboolean _tmp18_; - GFile* _tmp19_; - GFile* _tmp20_; - gboolean _tmp21_ = FALSE; - GFile* _tmp22_; -#line 115 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp15_ = parent; -#line 115 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp16_ = app_dirs_get_import_dir (); -#line 115 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp17_ = _tmp16_; -#line 115 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp18_ = !(!g_file_equal (_tmp15_, _tmp17_)); -#line 115 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp17_); -#line 115 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp18_) { -#line 115 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 2550 "MediaDataRepresentation.c" - } -#line 116 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp19_ = parent; -#line 116 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp20_ = g_file_get_parent (_tmp19_); -#line 116 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (parent); -#line 116 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - parent = _tmp20_; -#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp22_ = parent; -#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp22_ == NULL) { -#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp21_ = TRUE; -#line 2566 "MediaDataRepresentation.c" - } else { - GFile* _tmp23_; - GFile* _tmp24_; - GFile* _tmp25_; -#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp23_ = parent; -#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp24_ = app_dirs_get_import_dir (); -#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp25_ = _tmp24_; -#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp21_ = g_file_equal (_tmp23_, _tmp25_); -#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp25_); -#line 2581 "MediaDataRepresentation.c" - } -#line 117 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp21_) { -#line 118 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 2587 "MediaDataRepresentation.c" - } - { - gboolean _tmp26_ = FALSE; - GFile* _tmp27_; -#line 121 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp27_ = parent; -#line 121 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp26_ = query_is_directory_empty (_tmp27_, &_inner_error_); -#line 121 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2598 "MediaDataRepresentation.c" - goto __catch572_g_error; - } -#line 121 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!_tmp26_) { -#line 122 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 2605 "MediaDataRepresentation.c" - } - } - goto __finally572; - __catch572_g_error: - { - GError* err = NULL; - GFile* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; - GError* _tmp31_; - const gchar* _tmp32_; -#line 120 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - err = _inner_error_; -#line 120 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _inner_error_ = NULL; -#line 124 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp28_ = parent; -#line 124 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp29_ = g_file_get_path (_tmp28_); -#line 124 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp30_ = _tmp29_; -#line 124 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp31_ = err; -#line 124 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp32_ = _tmp31_->message; -#line 124 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_warning ("MediaDataRepresentation.vala:124: Unable to query file info for %s: %s", _tmp30_, _tmp32_); -#line 124 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (_tmp30_); -#line 126 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_error_free0 (err); -#line 126 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 2639 "MediaDataRepresentation.c" - } - __finally572: -#line 120 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2644 "MediaDataRepresentation.c" - gboolean _tmp33_ = FALSE; -#line 120 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (parent); -#line 120 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (file); -#line 120 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 120 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_clear_error (&_inner_error_); -#line 120 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return _tmp33_; -#line 2656 "MediaDataRepresentation.c" - } - { - GFile* _tmp34_; - GFile* _tmp35_; - gchar* _tmp36_; - gchar* _tmp37_; -#line 130 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp34_ = parent; -#line 130 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_file_delete (_tmp34_, NULL, &_inner_error_); -#line 130 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2669 "MediaDataRepresentation.c" - goto __catch573_g_error; - } -#line 131 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp35_ = parent; -#line 131 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp36_ = g_file_get_path (_tmp35_); -#line 131 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp37_ = _tmp36_; -#line 131 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_debug ("MediaDataRepresentation.vala:131: Deleted empty directory %s", _tmp37_); -#line 131 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (_tmp37_); -#line 2682 "MediaDataRepresentation.c" - } - goto __finally573; - __catch573_g_error: - { - GError* err = NULL; - GFile* _tmp38_; - gchar* _tmp39_; - gchar* _tmp40_; - GError* _tmp41_; - const gchar* _tmp42_; -#line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - err = _inner_error_; -#line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _inner_error_ = NULL; -#line 134 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp38_ = parent; -#line 134 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp39_ = g_file_get_path (_tmp38_); -#line 134 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp40_ = _tmp39_; -#line 134 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp41_ = err; -#line 134 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp42_ = _tmp41_->message; -#line 134 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_message ("MediaDataRepresentation.vala:134: Unable to delete empty directory %s:" \ -" %s", _tmp40_, _tmp42_); -#line 134 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (_tmp40_); -#line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_error_free0 (err); -#line 2713 "MediaDataRepresentation.c" - } - __finally573: -#line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2718 "MediaDataRepresentation.c" - gboolean _tmp43_ = FALSE; -#line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (parent); -#line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (file); -#line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_clear_error (&_inner_error_); -#line 129 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return _tmp43_; -#line 2730 "MediaDataRepresentation.c" - } - } -#line 113 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (parent); -#line 2735 "MediaDataRepresentation.c" - } -#line 140 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = ret; -#line 140 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (file); -#line 140 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 2743 "MediaDataRepresentation.c" -} - - -static gchar* -media_source_real_get_name (DataObject* base) -{ - MediaSource * self; - gchar* result = NULL; - gchar* title = NULL; - gchar* _tmp0_; - gchar* _tmp1_ = NULL; - const gchar* _tmp2_; -#line 143 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE, MediaSource); -#line 144 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_source_get_title (self); -#line 144 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - title = _tmp0_; -#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = title; -#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (is_string_empty (_tmp2_)) { -#line 2766 "MediaDataRepresentation.c" - gchar* _tmp3_; -#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = media_source_get_basename (self); -#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (_tmp1_); -#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp3_; -#line 2774 "MediaDataRepresentation.c" - } else { - const gchar* _tmp4_; - gchar* _tmp5_; -#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = title; -#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = g_strdup (_tmp4_); -#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (_tmp1_); -#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp5_; -#line 2786 "MediaDataRepresentation.c" - } -#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp1_; -#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (title); -#line 146 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 2794 "MediaDataRepresentation.c" -} - - -static gchar* -media_source_real_get_basename (MediaSource* self) -{ - gchar* result = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 150 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_source_get_file (self); -#line 150 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 150 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = g_file_get_basename (_tmp1_); -#line 150 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = _tmp2_; -#line 150 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp1_); -#line 150 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp3_; -#line 150 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 2820 "MediaDataRepresentation.c" -} - - -gchar* -media_source_get_basename (MediaSource* self) -{ -#line 149 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL); -#line 149 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_GET_CLASS (self)->get_basename (self); -#line 2831 "MediaDataRepresentation.c" -} - - -static GFile* -media_source_real_get_file (MediaSource* self) -{ -#line 153 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_get_file'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 153 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return NULL; -#line 2842 "MediaDataRepresentation.c" -} - - -GFile* -media_source_get_file (MediaSource* self) -{ -#line 153 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL); -#line 153 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_GET_CLASS (self)->get_file (self); -#line 2853 "MediaDataRepresentation.c" -} - - -static GFile* -media_source_real_get_master_file (MediaSource* self) -{ -#line 154 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_get_master_file'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 154 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return NULL; -#line 2864 "MediaDataRepresentation.c" -} - - -GFile* -media_source_get_master_file (MediaSource* self) -{ -#line 154 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL); -#line 154 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_GET_CLASS (self)->get_master_file (self); -#line 2875 "MediaDataRepresentation.c" -} - - -static guint64 -media_source_real_get_master_filesize (MediaSource* self) -{ - guint64 _tmp0_ = 0ULL; -#line 155 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_get_master_filesize'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 155 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return _tmp0_; -#line 2887 "MediaDataRepresentation.c" -} - - -guint64 -media_source_get_master_filesize (MediaSource* self) -{ -#line 155 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), 0ULL); -#line 155 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_GET_CLASS (self)->get_master_filesize (self); -#line 2898 "MediaDataRepresentation.c" -} - - -static guint64 -media_source_real_get_filesize (MediaSource* self) -{ - guint64 _tmp0_ = 0ULL; -#line 156 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_get_filesize'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 156 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return _tmp0_; -#line 2910 "MediaDataRepresentation.c" -} - - -guint64 -media_source_get_filesize (MediaSource* self) -{ -#line 156 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), 0ULL); -#line 156 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_GET_CLASS (self)->get_filesize (self); -#line 2921 "MediaDataRepresentation.c" -} - - -static time_t -media_source_real_get_timestamp (MediaSource* self) -{ - time_t _tmp0_ = 0; -#line 157 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_get_timestamp'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 157 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return _tmp0_; -#line 2933 "MediaDataRepresentation.c" -} - - -time_t -media_source_get_timestamp (MediaSource* self) -{ -#line 157 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), 0); -#line 157 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_GET_CLASS (self)->get_timestamp (self); -#line 2944 "MediaDataRepresentation.c" -} - - -static BackingFileState** -media_source_real_get_backing_files_state (MediaSource* self, - int* result_length1) -{ -#line 160 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_get_backing_files_state'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 160 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return NULL; -#line 2956 "MediaDataRepresentation.c" -} - - -BackingFileState** -media_source_get_backing_files_state (MediaSource* self, - int* result_length1) -{ -#line 160 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL); -#line 160 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_GET_CLASS (self)->get_backing_files_state (self, result_length1); -#line 2968 "MediaDataRepresentation.c" -} - - -static gchar* -media_source_real_get_title (MediaSource* self) -{ -#line 162 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_get_title'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 162 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return NULL; -#line 2979 "MediaDataRepresentation.c" -} - - -gchar* -media_source_get_title (MediaSource* self) -{ -#line 162 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL); -#line 162 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_GET_CLASS (self)->get_title (self); -#line 2990 "MediaDataRepresentation.c" -} - - -static gchar* -media_source_real_get_comment (MediaSource* self) -{ -#line 163 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_get_comment'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 163 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return NULL; -#line 3001 "MediaDataRepresentation.c" -} - - -gchar* -media_source_get_comment (MediaSource* self) -{ -#line 163 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL); -#line 163 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_GET_CLASS (self)->get_comment (self); -#line 3012 "MediaDataRepresentation.c" -} - - -static void -media_source_real_set_title (MediaSource* self, - const gchar* title) -{ -#line 164 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_set_title'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 164 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return; -#line 3024 "MediaDataRepresentation.c" -} - - -void -media_source_set_title (MediaSource* self, - const gchar* title) -{ -#line 164 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE (self)); -#line 164 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_GET_CLASS (self)->set_title (self, title); -#line 3036 "MediaDataRepresentation.c" -} - - -static gboolean -media_source_real_set_comment (MediaSource* self, - const gchar* comment) -{ - gboolean _tmp0_ = FALSE; -#line 165 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_set_comment'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 165 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return _tmp0_; -#line 3049 "MediaDataRepresentation.c" -} - - -gboolean -media_source_set_comment (MediaSource* self, - const gchar* comment) -{ -#line 165 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), FALSE); -#line 165 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_GET_CLASS (self)->set_comment (self, comment); -#line 3061 "MediaDataRepresentation.c" -} - - -gchar* -media_source_prep_title (const gchar* title) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 168 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = prepare_input_text (title, PREPARE_INPUT_TEXT_OPTIONS_DEFAULT & (~PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL), DEFAULT_USER_TEXT_INPUT_LENGTH); -#line 168 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp0_; -#line 168 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 3076 "MediaDataRepresentation.c" -} - - -gchar* -media_source_prep_comment (const gchar* comment) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 173 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = prepare_input_text (comment, (PREPARE_INPUT_TEXT_OPTIONS_DEFAULT & (~PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF)) & (~PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL), -1); -#line 173 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp0_; -#line 173 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 3091 "MediaDataRepresentation.c" -} - - -static Rating -media_source_real_get_rating (MediaSource* self) -{ -#line 177 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_get_rating'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 177 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return 0; -#line 3102 "MediaDataRepresentation.c" -} - - -Rating -media_source_get_rating (MediaSource* self) -{ -#line 177 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), 0); -#line 177 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_GET_CLASS (self)->get_rating (self); -#line 3113 "MediaDataRepresentation.c" -} - - -static void -media_source_real_set_rating (MediaSource* self, - Rating rating) -{ -#line 178 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_set_rating'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 178 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return; -#line 3125 "MediaDataRepresentation.c" -} - - -void -media_source_set_rating (MediaSource* self, - Rating rating) -{ -#line 178 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE (self)); -#line 178 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_GET_CLASS (self)->set_rating (self, rating); -#line 3137 "MediaDataRepresentation.c" -} - - -static void -media_source_real_increase_rating (MediaSource* self) -{ -#line 179 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_increase_rating'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 179 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return; -#line 3148 "MediaDataRepresentation.c" -} - - -void -media_source_increase_rating (MediaSource* self) -{ -#line 179 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE (self)); -#line 179 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_GET_CLASS (self)->increase_rating (self); -#line 3159 "MediaDataRepresentation.c" -} - - -static void -media_source_real_decrease_rating (MediaSource* self) -{ -#line 180 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_decrease_rating'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 180 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return; -#line 3170 "MediaDataRepresentation.c" -} - - -void -media_source_decrease_rating (MediaSource* self) -{ -#line 180 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE (self)); -#line 180 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_GET_CLASS (self)->decrease_rating (self); -#line 3181 "MediaDataRepresentation.c" -} - - -static void -media_source_real_get_dimensions (MediaSource* self, - PhotoException disallowed_steps, - Dimensions* result) -{ -#line 182 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_get_dimensions'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 182 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return; -#line 3194 "MediaDataRepresentation.c" -} - - -void -media_source_get_dimensions (MediaSource* self, - PhotoException disallowed_steps, - Dimensions* result) -{ -#line 182 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE (self)); -#line 182 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_GET_CLASS (self)->get_dimensions (self, disallowed_steps, result); -#line 3207 "MediaDataRepresentation.c" -} - - -static GdkPixbuf* -media_source_real_get_preview_pixbuf (MediaSource* self, - Scaling* scaling, - GError** error) -{ -#line 190 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_get_preview_pixbuf'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 190 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return NULL; -#line 3220 "MediaDataRepresentation.c" -} - - -GdkPixbuf* -media_source_get_preview_pixbuf (MediaSource* self, - Scaling* scaling, - GError** error) -{ -#line 190 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL); -#line 190 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_GET_CLASS (self)->get_preview_pixbuf (self, scaling, error); -#line 3233 "MediaDataRepresentation.c" -} - - -static gboolean -media_source_real_is_trashed (MediaSource* self) -{ - gboolean _tmp0_ = FALSE; -#line 192 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_is_trashed'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 192 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return _tmp0_; -#line 3245 "MediaDataRepresentation.c" -} - - -gboolean -media_source_is_trashed (MediaSource* self) -{ -#line 192 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), FALSE); -#line 192 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_GET_CLASS (self)->is_trashed (self); -#line 3256 "MediaDataRepresentation.c" -} - - -static void -media_source_real_trash (MediaSource* self) -{ -#line 193 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_trash'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 193 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return; -#line 3267 "MediaDataRepresentation.c" -} - - -void -media_source_trash (MediaSource* self) -{ -#line 193 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE (self)); -#line 193 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_GET_CLASS (self)->trash (self); -#line 3278 "MediaDataRepresentation.c" -} - - -static void -media_source_real_untrash (MediaSource* self) -{ -#line 194 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_untrash'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 194 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return; -#line 3289 "MediaDataRepresentation.c" -} - - -void -media_source_untrash (MediaSource* self) -{ -#line 194 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE (self)); -#line 194 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_GET_CLASS (self)->untrash (self); -#line 3300 "MediaDataRepresentation.c" -} - - -static gboolean -media_source_real_is_offline (MediaSource* self) -{ - gboolean _tmp0_ = FALSE; -#line 196 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_is_offline'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 196 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return _tmp0_; -#line 3312 "MediaDataRepresentation.c" -} - - -gboolean -media_source_is_offline (MediaSource* self) -{ -#line 196 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), FALSE); -#line 196 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_GET_CLASS (self)->is_offline (self); -#line 3323 "MediaDataRepresentation.c" -} - - -static void -media_source_real_mark_offline (MediaSource* self) -{ -#line 197 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_mark_offline'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 197 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return; -#line 3334 "MediaDataRepresentation.c" -} - - -void -media_source_mark_offline (MediaSource* self) -{ -#line 197 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE (self)); -#line 197 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_GET_CLASS (self)->mark_offline (self); -#line 3345 "MediaDataRepresentation.c" -} - - -static void -media_source_real_mark_online (MediaSource* self) -{ -#line 198 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_mark_online'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 198 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return; -#line 3356 "MediaDataRepresentation.c" -} - - -void -media_source_mark_online (MediaSource* self) -{ -#line 198 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE (self)); -#line 198 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_GET_CLASS (self)->mark_online (self); -#line 3367 "MediaDataRepresentation.c" -} - - -static gchar* -media_source_real_get_master_md5 (MediaSource* self) -{ -#line 200 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_get_master_md5'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 200 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return NULL; -#line 3378 "MediaDataRepresentation.c" -} - - -gchar* -media_source_get_master_md5 (MediaSource* self) -{ -#line 200 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL); -#line 200 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_GET_CLASS (self)->get_master_md5 (self); -#line 3389 "MediaDataRepresentation.c" -} - - -static void -media_source_real_get_event_id (MediaSource* self, - EventID* result) -{ -#line 204 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_get_event_id'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 204 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return; -#line 3401 "MediaDataRepresentation.c" -} - - -void -media_source_get_event_id (MediaSource* self, - EventID* result) -{ -#line 204 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE (self)); -#line 204 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_GET_CLASS (self)->get_event_id (self, result); -#line 3413 "MediaDataRepresentation.c" -} - - -Event* -media_source_get_event (MediaSource* self) -{ - Event* result = NULL; - Event* _tmp0_; - EventID event_id = {0}; - EventID _tmp3_ = {0}; - EventSourceCollection* _tmp4_; - EventID _tmp5_; - Event* _tmp6_; - Event* _tmp7_; - Event* _tmp8_; -#line 206 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), NULL); -#line 207 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->priv->event; -#line 207 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp0_ != NULL) { -#line 3435 "MediaDataRepresentation.c" - Event* _tmp1_; - Event* _tmp2_; -#line 208 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = self->priv->event; -#line 208 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 208 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp2_; -#line 208 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 3446 "MediaDataRepresentation.c" - } -#line 210 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_get_event_id (self, &_tmp3_); -#line 210 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - event_id = _tmp3_; -#line 211 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!event_id_is_valid (&event_id)) { -#line 212 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = NULL; -#line 212 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 3458 "MediaDataRepresentation.c" - } -#line 214 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = event_global; -#line 214 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = event_id; -#line 214 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = event_source_collection_fetch (_tmp4_, &_tmp5_); -#line 214 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (self->priv->event); -#line 214 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv->event = _tmp6_; -#line 216 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = self->priv->event; -#line 216 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp8_ = _g_object_ref0 (_tmp7_); -#line 216 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp8_; -#line 216 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 3478 "MediaDataRepresentation.c" -} - - -gboolean -media_source_set_event (MediaSource* self, - Event* new_event) -{ - gboolean result = FALSE; - EventID _tmp0_ = {0}; - EventID event_id = {0}; - EventID _tmp2_ = {0}; - gint64 _tmp3_; - EventID _tmp4_; - gint64 _tmp5_; - gboolean committed = FALSE; - EventID _tmp6_; - gboolean _tmp7_; -#line 219 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), FALSE); -#line 219 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail ((new_event == NULL) || IS_EVENT (new_event), FALSE); -#line 220 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (new_event != NULL) { -#line 3502 "MediaDataRepresentation.c" - EventID _tmp1_ = {0}; -#line 220 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - event_get_event_id (new_event, &_tmp1_); -#line 220 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = _tmp1_; -#line 3508 "MediaDataRepresentation.c" - } else { -#line 220 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - event_id_init (&_tmp0_, EVENT_ID_INVALID); -#line 3512 "MediaDataRepresentation.c" - } -#line 220 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - event_id = _tmp0_; -#line 221 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_get_event_id (self, &_tmp2_); -#line 221 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = _tmp2_.id; -#line 221 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = event_id; -#line 221 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = _tmp4_.id; -#line 221 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp3_ == _tmp5_) { -#line 222 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = TRUE; -#line 222 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 3530 "MediaDataRepresentation.c" - } -#line 224 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = event_id; -#line 224 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - committed = media_source_set_event_id (self, &_tmp6_); -#line 225 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = committed; -#line 225 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp7_) { -#line 3540 "MediaDataRepresentation.c" - Event* _tmp8_; - Event* _tmp10_; - Alteration* _tmp11_; - Alteration* _tmp12_; -#line 226 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp8_ = self->priv->event; -#line 226 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp8_ != NULL) { -#line 3549 "MediaDataRepresentation.c" - Event* _tmp9_; -#line 227 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp9_ = self->priv->event; -#line 227 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - event_detach (_tmp9_, self); -#line 3555 "MediaDataRepresentation.c" - } -#line 229 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (new_event != NULL) { -#line 230 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - event_attach (new_event, self); -#line 3561 "MediaDataRepresentation.c" - } -#line 232 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp10_ = _g_object_ref0 (new_event); -#line 232 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (self->priv->event); -#line 232 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv->event = _tmp10_; -#line 234 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp11_ = alteration_new ("metadata", "event"); -#line 234 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp12_ = _tmp11_; -#line 234 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp12_); -#line 234 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _alteration_unref0 (_tmp12_); -#line 3577 "MediaDataRepresentation.c" - } -#line 237 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = committed; -#line 237 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 3583 "MediaDataRepresentation.c" -} - - -void -media_source_set_many_to_event (GeeCollection* media_sources, - Event* event, - TransactionController* controller, - GError** error) -{ - EventID _tmp0_ = {0}; - EventID event_id = {0}; - Alteration* alteration = NULL; - Alteration* _tmp15_; -#line 240 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (GEE_IS_COLLECTION (media_sources)); -#line 240 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail ((event == NULL) || IS_EVENT (event)); -#line 240 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_TRANSACTION_CONTROLLER (controller)); -#line 242 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (event != NULL) { -#line 3605 "MediaDataRepresentation.c" - EventID _tmp1_ = {0}; -#line 242 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - event_get_event_id (event, &_tmp1_); -#line 242 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = _tmp1_; -#line 3611 "MediaDataRepresentation.c" - } else { -#line 242 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - event_id_init (&_tmp0_, EVENT_ID_INVALID); -#line 3615 "MediaDataRepresentation.c" - } -#line 242 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - event_id = _tmp0_; -#line 244 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - transaction_controller_begin (controller); -#line 3621 "MediaDataRepresentation.c" - { - GeeIterator* _media_it = NULL; - GeeIterator* _tmp2_; -#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _media_it = _tmp2_; -#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 3631 "MediaDataRepresentation.c" - GeeIterator* _tmp3_; - MediaSource* media = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - Event* old_event = NULL; - MediaSource* _tmp6_; - Event* _tmp7_; - Event* _tmp8_; - MediaSource* _tmp11_; - EventID _tmp12_; - MediaSource* _tmp13_; - Event* _tmp14_; -#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = _media_it; -#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 3650 "MediaDataRepresentation.c" - } -#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = _media_it; -#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media = (MediaSource*) _tmp5_; -#line 247 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = media; -#line 247 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = media_source_get_event (_tmp6_); -#line 247 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - old_event = _tmp7_; -#line 248 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp8_ = old_event; -#line 248 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp8_ != NULL) { -#line 3668 "MediaDataRepresentation.c" - Event* _tmp9_; - MediaSource* _tmp10_; -#line 249 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp9_ = old_event; -#line 249 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp10_ = media; -#line 249 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - event_detach (_tmp9_, _tmp10_); -#line 3677 "MediaDataRepresentation.c" - } -#line 251 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp11_ = media; -#line 251 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp12_ = event_id; -#line 251 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_set_event_id (_tmp11_, &_tmp12_); -#line 252 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp13_ = media; -#line 252 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp14_ = _g_object_ref0 (event); -#line 252 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp13_->priv->event); -#line 252 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp13_->priv->event = _tmp14_; -#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (old_event); -#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (media); -#line 3697 "MediaDataRepresentation.c" - } -#line 246 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_media_it); -#line 3701 "MediaDataRepresentation.c" - } -#line 255 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (event != NULL) { -#line 256 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - event_attach_many (event, media_sources); -#line 3707 "MediaDataRepresentation.c" - } -#line 258 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp15_ = alteration_new ("metadata", "event"); -#line 258 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - alteration = _tmp15_; -#line 3713 "MediaDataRepresentation.c" - { - GeeIterator* _media_it = NULL; - GeeIterator* _tmp16_; -#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp16_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _media_it = _tmp16_; -#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 3723 "MediaDataRepresentation.c" - GeeIterator* _tmp17_; - MediaSource* media = NULL; - GeeIterator* _tmp18_; - gpointer _tmp19_; - MediaSource* _tmp20_; - Alteration* _tmp21_; -#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp17_ = _media_it; -#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp17_)) { -#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 3736 "MediaDataRepresentation.c" - } -#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp18_ = _media_it; -#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp19_ = gee_iterator_get (_tmp18_); -#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media = (MediaSource*) _tmp19_; -#line 260 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp20_ = media; -#line 260 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp21_ = alteration; -#line 260 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_OBJECT, DataObject), _tmp21_); -#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (media); -#line 3752 "MediaDataRepresentation.c" - } -#line 259 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_media_it); -#line 3756 "MediaDataRepresentation.c" - } -#line 262 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - transaction_controller_commit (controller); -#line 240 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _alteration_unref0 (alteration); -#line 3762 "MediaDataRepresentation.c" -} - - -static time_t -media_source_real_get_exposure_time (MediaSource* self) -{ - time_t _tmp0_ = 0; -#line 265 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_get_exposure_time'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 265 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return _tmp0_; -#line 3774 "MediaDataRepresentation.c" -} - - -time_t -media_source_get_exposure_time (MediaSource* self) -{ -#line 265 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (self), 0); -#line 265 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_GET_CLASS (self)->get_exposure_time (self); -#line 3785 "MediaDataRepresentation.c" -} - - -static void -media_source_real_get_import_id (MediaSource* self, - ImportID* result) -{ -#line 267 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_get_import_id'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 267 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return; -#line 3797 "MediaDataRepresentation.c" -} - - -void -media_source_get_import_id (MediaSource* self, - ImportID* result) -{ -#line 267 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE (self)); -#line 267 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_GET_CLASS (self)->get_import_id (self, result); -#line 3809 "MediaDataRepresentation.c" -} - - -static void -media_source_real_master_replaced (MediaSource* self, - GFile* old_file, - GFile* new_file) -{ -#line 33 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_IS_FILE (old_file)); -#line 33 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_IS_FILE (new_file)); -#line 3822 "MediaDataRepresentation.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2); - register GMarshalFunc_VOID__OBJECT_OBJECT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (n_param_values == 3); -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - data1 = closure->data; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - data2 = param_values->data[0].v_pointer; -#line 3848 "MediaDataRepresentation.c" - } else { -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - data1 = param_values->data[0].v_pointer; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - data2 = closure->data; -#line 3854 "MediaDataRepresentation.c" - } -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback); -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2); -#line 3860 "MediaDataRepresentation.c" -} - - -static void -media_source_class_init (MediaSourceClass * klass) -{ -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_parent_class = g_type_class_peek_parent (klass); -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_type_class_add_private (klass, sizeof (MediaSourcePrivate)); -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->notify_master_replaced = (void (*) (MediaSource *, GFile*, GFile*)) media_source_real_notify_master_replaced; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((DataObjectClass *) klass)->notify_altered = (void (*) (DataObject *, Alteration*)) media_source_real_notify_altered; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((DataObjectClass *) klass)->notify_membership_changed = (void (*) (DataObject *, DataCollection*)) media_source_real_notify_membership_changed; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->set_event_id = (gboolean (*) (MediaSource *, EventID*)) media_source_real_set_event_id; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) media_source_real_get_name; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->get_basename = (gchar* (*) (MediaSource *)) media_source_real_get_basename; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->get_file = (GFile* (*) (MediaSource *)) media_source_real_get_file; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->get_master_file = (GFile* (*) (MediaSource *)) media_source_real_get_master_file; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->get_master_filesize = (guint64 (*) (MediaSource *)) media_source_real_get_master_filesize; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->get_filesize = (guint64 (*) (MediaSource *)) media_source_real_get_filesize; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->get_timestamp = (time_t (*) (MediaSource *)) media_source_real_get_timestamp; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->get_backing_files_state = (BackingFileState** (*) (MediaSource *, int*)) media_source_real_get_backing_files_state; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->get_title = (gchar* (*) (MediaSource *)) media_source_real_get_title; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->get_comment = (gchar* (*) (MediaSource *)) media_source_real_get_comment; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->set_title = (void (*) (MediaSource *, const gchar*)) media_source_real_set_title; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->set_comment = (gboolean (*) (MediaSource *, const gchar*)) media_source_real_set_comment; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->get_rating = (Rating (*) (MediaSource *)) media_source_real_get_rating; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->set_rating = (void (*) (MediaSource *, Rating)) media_source_real_set_rating; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->increase_rating = (void (*) (MediaSource *)) media_source_real_increase_rating; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->decrease_rating = (void (*) (MediaSource *)) media_source_real_decrease_rating; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->get_dimensions = (void (*) (MediaSource *, PhotoException, Dimensions*)) media_source_real_get_dimensions; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->get_preview_pixbuf = (GdkPixbuf* (*) (MediaSource *, Scaling*, GError**)) media_source_real_get_preview_pixbuf; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->is_trashed = (gboolean (*) (MediaSource *)) media_source_real_is_trashed; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->trash = (void (*) (MediaSource *)) media_source_real_trash; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->untrash = (void (*) (MediaSource *)) media_source_real_untrash; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->is_offline = (gboolean (*) (MediaSource *)) media_source_real_is_offline; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->mark_offline = (void (*) (MediaSource *)) media_source_real_mark_offline; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->mark_online = (void (*) (MediaSource *)) media_source_real_mark_online; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->get_master_md5 = (gchar* (*) (MediaSource *)) media_source_real_get_master_md5; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->get_event_id = (void (*) (MediaSource *, EventID*)) media_source_real_get_event_id; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->get_exposure_time = (time_t (*) (MediaSource *)) media_source_real_get_exposure_time; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->get_import_id = (void (*) (MediaSource *, ImportID*)) media_source_real_get_import_id; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceClass *) klass)->master_replaced = media_source_real_master_replaced; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - G_OBJECT_CLASS (klass)->finalize = media_source_finalize; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_signals[MEDIA_SOURCE_MASTER_REPLACED_SIGNAL] = g_signal_new ("master-replaced", TYPE_MEDIA_SOURCE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceClass, master_replaced), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, g_file_get_type (), g_file_get_type ()); -#line 3941 "MediaDataRepresentation.c" -} - - -static void -media_source_indexable_interface_init (IndexableIface * iface) -{ -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_indexable_parent_iface = g_type_interface_peek_parent (iface); -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - iface->get_indexable_keywords = (const gchar* (*) (Indexable *)) media_source_real_get_indexable_keywords; -#line 3952 "MediaDataRepresentation.c" -} - - -static void -media_source_instance_init (MediaSource * self) -{ -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv = MEDIA_SOURCE_GET_PRIVATE (self); -#line 36 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv->event = NULL; -#line 37 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv->indexable_keywords = NULL; -#line 3965 "MediaDataRepresentation.c" -} - - -static void -media_source_finalize (GObject * obj) -{ - MediaSource * self; -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_SOURCE, MediaSource); -#line 36 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (self->priv->event); -#line 37 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (self->priv->indexable_keywords); -#line 32 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - G_OBJECT_CLASS (media_source_parent_class)->finalize (obj); -#line 3981 "MediaDataRepresentation.c" -} - - -GType -media_source_get_type (void) -{ - static volatile gsize media_source_type_id__volatile = 0; - if (g_once_init_enter (&media_source_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MediaSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaSource), 0, (GInstanceInitFunc) media_source_instance_init, NULL }; - static const GInterfaceInfo indexable_info = { (GInterfaceInitFunc) media_source_indexable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType media_source_type_id; - media_source_type_id = g_type_register_static (TYPE_THUMBNAIL_SOURCE, "MediaSource", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_type_add_interface_static (media_source_type_id, TYPE_INDEXABLE, &indexable_info); - g_once_init_leave (&media_source_type_id__volatile, media_source_type_id); - } - return media_source_type_id__volatile; -} - - -static guint -_file_hash_gee_hash_data_func (gconstpointer v, - gpointer self) -{ - guint result; - result = file_hash ((GFile*) v); -#line 271 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 4009 "MediaDataRepresentation.c" -} - - -static gboolean -_file_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gboolean result; - result = file_equal ((GFile*) a, (GFile*) b); -#line 271 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 4022 "MediaDataRepresentation.c" -} - - -MediaSourceHoldingTank* -media_source_holding_tank_construct (GType object_type, - MediaSourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target) -{ - MediaSourceHoldingTank* self = NULL; -#line 274 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (sources), NULL); -#line 276 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = (MediaSourceHoldingTank*) database_source_holding_tank_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_SOURCE_COLLECTION, SourceCollection), check_to_keep, check_to_keep_target, get_key, get_key_target); -#line 274 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return self; -#line 4041 "MediaDataRepresentation.c" -} - - -MediaSourceHoldingTank* -media_source_holding_tank_new (MediaSourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target) -{ -#line 274 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return media_source_holding_tank_construct (TYPE_MEDIA_SOURCE_HOLDING_TANK, sources, check_to_keep, check_to_keep_target, get_key, get_key_target); -#line 4054 "MediaDataRepresentation.c" -} - - -MediaSource* -media_source_holding_tank_fetch_by_master_file (MediaSourceHoldingTank* self, - GFile* file) -{ - MediaSource* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 279 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_HOLDING_TANK (self), NULL); -#line 279 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 280 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->priv->master_file_map; -#line 280 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file); -#line 280 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = (MediaSource*) _tmp1_; -#line 280 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 4077 "MediaDataRepresentation.c" -} - - -MediaSource* -media_source_holding_tank_fetch_by_md5 (MediaSourceHoldingTank* self, - const gchar* md5) -{ - MediaSource* result = NULL; -#line 283 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_HOLDING_TANK (self), NULL); -#line 283 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (md5 != NULL, NULL); -#line 4090 "MediaDataRepresentation.c" - { - GeeIterator* _source_it = NULL; - GeeHashMap* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->priv->master_file_map; -#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = _tmp1_; -#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = _tmp2_; -#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = _tmp4_; -#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp3_); -#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_it = _tmp5_; -#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 4117 "MediaDataRepresentation.c" - GeeIterator* _tmp6_; - MediaSource* source = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - MediaSource* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gboolean _tmp12_; -#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = _source_it; -#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 4132 "MediaDataRepresentation.c" - } -#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = _source_it; -#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - source = (MediaSource*) _tmp8_; -#line 285 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp9_ = source; -#line 285 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp10_ = media_source_get_master_md5 (_tmp9_); -#line 285 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp11_ = _tmp10_; -#line 285 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp12_ = g_strcmp0 (_tmp11_, md5) == 0; -#line 285 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (_tmp11_); -#line 285 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp12_) { -#line 286 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = source; -#line 286 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_source_it); -#line 286 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 4158 "MediaDataRepresentation.c" - } -#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (source); -#line 4162 "MediaDataRepresentation.c" - } -#line 284 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_source_it); -#line 4166 "MediaDataRepresentation.c" - } -#line 290 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = NULL; -#line 290 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 4172 "MediaDataRepresentation.c" -} - - -static void -_media_source_holding_tank_on_master_source_replaced_media_source_master_replaced (MediaSource* _sender, - GFile* old_file, - GFile* new_file, - gpointer self) -{ -#line 299 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_holding_tank_on_master_source_replaced ((MediaSourceHoldingTank*) self, _sender, old_file, new_file); -#line 4184 "MediaDataRepresentation.c" -} - - -static void -media_source_holding_tank_real_notify_contents_altered (SourceHoldingTank* base, - GeeCollection* added, - GeeCollection* removed) -{ - MediaSourceHoldingTank * self; -#line 293 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank); -#line 293 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 293 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 295 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (added != NULL) { -#line 4202 "MediaDataRepresentation.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_ITERABLE, GeeIterable)); -#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_it = _tmp0_; -#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 4212 "MediaDataRepresentation.c" - GeeIterator* _tmp1_; - DataSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - MediaSource* media_source = NULL; - DataSource* _tmp4_; - MediaSource* _tmp5_; - GeeHashMap* _tmp6_; - MediaSource* _tmp7_; - GFile* _tmp8_; - GFile* _tmp9_; - MediaSource* _tmp10_; - MediaSource* _tmp11_; -#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _source_it; -#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 4232 "MediaDataRepresentation.c" - } -#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = _source_it; -#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - source = (DataSource*) _tmp3_; -#line 297 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = source; -#line 297 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 297 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source = _tmp5_; -#line 298 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = self->priv->master_file_map; -#line 298 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = media_source; -#line 298 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp8_ = media_source_get_master_file (_tmp7_); -#line 298 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp9_ = _tmp8_; -#line 298 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp10_ = media_source; -#line 298 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, _tmp10_); -#line 298 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp9_); -#line 299 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp11_ = media_source; -#line 299 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_connect (_tmp11_, "master-replaced", (GCallback) _media_source_holding_tank_on_master_source_replaced_media_source_master_replaced, self); -#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (media_source); -#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (source); -#line 4268 "MediaDataRepresentation.c" - } -#line 296 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_source_it); -#line 4272 "MediaDataRepresentation.c" - } - } -#line 303 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (removed != NULL) { -#line 4277 "MediaDataRepresentation.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp12_; -#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_ITERABLE, GeeIterable)); -#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_it = _tmp12_; -#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 4287 "MediaDataRepresentation.c" - GeeIterator* _tmp13_; - DataSource* source = NULL; - GeeIterator* _tmp14_; - gpointer _tmp15_; - MediaSource* media_source = NULL; - DataSource* _tmp16_; - MediaSource* _tmp17_; - gboolean is_removed = FALSE; - GeeHashMap* _tmp18_; - MediaSource* _tmp19_; - GFile* _tmp20_; - GFile* _tmp21_; - gboolean _tmp22_; - gboolean _tmp23_; - gboolean _tmp24_; - MediaSource* _tmp25_; - guint _tmp26_; -#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp13_ = _source_it; -#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp13_)) { -#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 4311 "MediaDataRepresentation.c" - } -#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp14_ = _source_it; -#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp15_ = gee_iterator_get (_tmp14_); -#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - source = (DataSource*) _tmp15_; -#line 305 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp16_ = source; -#line 305 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 305 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source = _tmp17_; -#line 306 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp18_ = self->priv->master_file_map; -#line 306 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp19_ = media_source; -#line 306 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp20_ = media_source_get_master_file (_tmp19_); -#line 306 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp21_ = _tmp20_; -#line 306 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp22_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp21_, NULL); -#line 306 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp23_ = _tmp22_; -#line 306 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp21_); -#line 306 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - is_removed = _tmp23_; -#line 307 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp24_ = is_removed; -#line 307 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _vala_assert (_tmp24_, "is_removed"); -#line 308 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp25_ = media_source; -#line 308 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_parse_name ("master-replaced", TYPE_MEDIA_SOURCE, &_tmp26_, NULL, FALSE); -#line 308 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_handlers_disconnect_matched (_tmp25_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp26_, 0, NULL, (GCallback) _media_source_holding_tank_on_master_source_replaced_media_source_master_replaced, self); -#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (media_source); -#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (source); -#line 4355 "MediaDataRepresentation.c" - } -#line 304 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_source_it); -#line 4359 "MediaDataRepresentation.c" - } - } -#line 312 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - SOURCE_HOLDING_TANK_CLASS (media_source_holding_tank_parent_class)->notify_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), added, removed); -#line 4364 "MediaDataRepresentation.c" -} - - -static void -media_source_holding_tank_on_master_source_replaced (MediaSourceHoldingTank* self, - MediaSource* media_source, - GFile* old_file, - GFile* new_file) -{ - gboolean removed = FALSE; - GeeHashMap* _tmp0_; - gboolean _tmp1_; - GeeHashMap* _tmp2_; -#line 315 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE_HOLDING_TANK (self)); -#line 315 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE (media_source)); -#line 315 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_IS_FILE (old_file)); -#line 315 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_IS_FILE (new_file)); -#line 316 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->priv->master_file_map; -#line 316 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), old_file, NULL); -#line 316 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - removed = _tmp1_; -#line 317 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _vala_assert (removed, "removed"); -#line 319 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = self->priv->master_file_map; -#line 319 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), new_file, media_source); -#line 4398 "MediaDataRepresentation.c" -} - - -static void -media_source_holding_tank_class_init (MediaSourceHoldingTankClass * klass) -{ -#line 270 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_holding_tank_parent_class = g_type_class_peek_parent (klass); -#line 270 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((SourceHoldingTankClass *) klass)->finalize = media_source_holding_tank_finalize; -#line 270 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_type_class_add_private (klass, sizeof (MediaSourceHoldingTankPrivate)); -#line 270 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((SourceHoldingTankClass *) klass)->notify_contents_altered = (void (*) (SourceHoldingTank *, GeeCollection*, GeeCollection*)) media_source_holding_tank_real_notify_contents_altered; -#line 4413 "MediaDataRepresentation.c" -} - - -static void -media_source_holding_tank_instance_init (MediaSourceHoldingTank * self) -{ - GeeHashMap* _tmp0_; -#line 270 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv = MEDIA_SOURCE_HOLDING_TANK_GET_PRIVATE (self); -#line 271 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); -#line 271 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv->master_file_map = _tmp0_; -#line 4427 "MediaDataRepresentation.c" -} - - -static void -media_source_holding_tank_finalize (SourceHoldingTank * obj) -{ - MediaSourceHoldingTank * self; -#line 270 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank); -#line 271 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (self->priv->master_file_map); -#line 270 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - SOURCE_HOLDING_TANK_CLASS (media_source_holding_tank_parent_class)->finalize (obj); -#line 4441 "MediaDataRepresentation.c" -} - - -GType -media_source_holding_tank_get_type (void) -{ - static volatile gsize media_source_holding_tank_type_id__volatile = 0; - if (g_once_init_enter (&media_source_holding_tank_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MediaSourceHoldingTankClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_source_holding_tank_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaSourceHoldingTank), 0, (GInstanceInitFunc) media_source_holding_tank_instance_init, NULL }; - GType media_source_holding_tank_type_id; - media_source_holding_tank_type_id = g_type_register_static (TYPE_DATABASE_SOURCE_HOLDING_TANK, "MediaSourceHoldingTank", &g_define_type_info, 0); - g_once_init_leave (&media_source_holding_tank_type_id__volatile, media_source_holding_tank_type_id); - } - return media_source_holding_tank_type_id__volatile; -} - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 329 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return self ? data_collection_ref (self) : NULL; -#line 4464 "MediaDataRepresentation.c" -} - - -MediaSourceTransactionController* -media_source_transaction_controller_construct (GType object_type, - MediaSourceCollection* sources) -{ - MediaSourceTransactionController* self = NULL; - MediaSourceCollection* _tmp0_; -#line 328 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (sources), NULL); -#line 328 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = (MediaSourceTransactionController*) transaction_controller_construct (object_type); -#line 329 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = _data_collection_ref0 (sources); -#line 329 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _data_collection_unref0 (self->priv->sources); -#line 329 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv->sources = _tmp0_; -#line 328 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return self; -#line 4486 "MediaDataRepresentation.c" -} - - -MediaSourceTransactionController* -media_source_transaction_controller_new (MediaSourceCollection* sources) -{ -#line 328 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return media_source_transaction_controller_construct (TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, sources); -#line 4495 "MediaDataRepresentation.c" -} - - -static void -media_source_transaction_controller_real_begin_impl (TransactionController* base, - GError** error) -{ - MediaSourceTransactionController * self; - MediaSourceCollection* _tmp0_; -#line 332 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionController); -#line 333 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - database_table_begin_transaction (); -#line 334 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->priv->sources; -#line 334 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection)); -#line 4513 "MediaDataRepresentation.c" -} - - -static void -media_source_transaction_controller_real_commit_impl (TransactionController* base, - GError** error) -{ - MediaSourceTransactionController * self; - MediaSourceCollection* _tmp0_; - GError * _inner_error_ = NULL; -#line 337 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionController); -#line 338 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->priv->sources; -#line 338 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection)); -#line 339 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - database_table_commit_transaction (&_inner_error_); -#line 339 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 339 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_propagate_error (error, _inner_error_); -#line 339 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return; -#line 4538 "MediaDataRepresentation.c" - } -} - - -static void -media_source_transaction_controller_class_init (MediaSourceTransactionControllerClass * klass) -{ -#line 325 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_transaction_controller_parent_class = g_type_class_peek_parent (klass); -#line 325 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((TransactionControllerClass *) klass)->finalize = media_source_transaction_controller_finalize; -#line 325 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_type_class_add_private (klass, sizeof (MediaSourceTransactionControllerPrivate)); -#line 325 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((TransactionControllerClass *) klass)->begin_impl = (void (*) (TransactionController *, GError**)) media_source_transaction_controller_real_begin_impl; -#line 325 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((TransactionControllerClass *) klass)->commit_impl = (void (*) (TransactionController *, GError**)) media_source_transaction_controller_real_commit_impl; -#line 4556 "MediaDataRepresentation.c" -} - - -static void -media_source_transaction_controller_instance_init (MediaSourceTransactionController * self) -{ -#line 325 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv = MEDIA_SOURCE_TRANSACTION_CONTROLLER_GET_PRIVATE (self); -#line 4565 "MediaDataRepresentation.c" -} - - -static void -media_source_transaction_controller_finalize (TransactionController * obj) -{ - MediaSourceTransactionController * self; -#line 325 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionController); -#line 326 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _data_collection_unref0 (self->priv->sources); -#line 325 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - TRANSACTION_CONTROLLER_CLASS (media_source_transaction_controller_parent_class)->finalize (obj); -#line 4579 "MediaDataRepresentation.c" -} - - -GType -media_source_transaction_controller_get_type (void) -{ - static volatile gsize media_source_transaction_controller_type_id__volatile = 0; - if (g_once_init_enter (&media_source_transaction_controller_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MediaSourceTransactionControllerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_source_transaction_controller_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaSourceTransactionController), 0, (GInstanceInitFunc) media_source_transaction_controller_instance_init, NULL }; - GType media_source_transaction_controller_type_id; - media_source_transaction_controller_type_id = g_type_register_static (TYPE_TRANSACTION_CONTROLLER, "MediaSourceTransactionController", &g_define_type_info, 0); - g_once_init_leave (&media_source_transaction_controller_type_id__volatile, media_source_transaction_controller_type_id); - } - return media_source_transaction_controller_type_id__volatile; -} - - -static gint -_import_id_compare_func_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = import_id_compare_func ((ImportID*) a, (ImportID*) b); -#line 350 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 4606 "MediaDataRepresentation.c" -} - - -MediaSourceCollection* -media_source_collection_construct (GType object_type, - const gchar* name, - GetSourceDatabaseKey source_key_func, - void* source_key_func_target) -{ - MediaSourceCollection* self = NULL; - MediaSourceHoldingTank* _tmp0_; - MediaSourceHoldingTank* _tmp1_; -#line 384 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 385 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = (MediaSourceCollection*) database_source_collection_construct (object_type, name, source_key_func, source_key_func_target); -#line 387 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_source_collection_create_trashcan (self); -#line 387 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_holding_tank_unref0 (self->priv->trashcan); -#line 387 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv->trashcan = _tmp0_; -#line 388 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = media_source_collection_create_offline_bin (self); -#line 388 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_holding_tank_unref0 (self->priv->offline_bin); -#line 388 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv->offline_bin = _tmp1_; -#line 384 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return self; -#line 4637 "MediaDataRepresentation.c" -} - - -void -media_source_collection_filter_media (GeeCollection* media, - GeeCollection* photos, - GeeCollection* videos) -{ -#line 391 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (GEE_IS_COLLECTION (media)); -#line 391 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail ((photos == NULL) || GEE_IS_COLLECTION (photos)); -#line 391 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail ((videos == NULL) || GEE_IS_COLLECTION (videos)); -#line 4652 "MediaDataRepresentation.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_ITERABLE, GeeIterable)); -#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_it = _tmp0_; -#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 4662 "MediaDataRepresentation.c" - GeeIterator* _tmp1_; - MediaSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - gboolean _tmp4_ = FALSE; -#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _source_it; -#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 4674 "MediaDataRepresentation.c" - } -#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = _source_it; -#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - source = (MediaSource*) _tmp3_; -#line 394 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (photos != NULL) { -#line 4684 "MediaDataRepresentation.c" - MediaSource* _tmp5_; -#line 394 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = source; -#line 394 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_LIBRARY_PHOTO); -#line 4690 "MediaDataRepresentation.c" - } else { -#line 394 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = FALSE; -#line 4694 "MediaDataRepresentation.c" - } -#line 394 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp4_) { -#line 4698 "MediaDataRepresentation.c" - MediaSource* _tmp6_; -#line 395 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = source; -#line 395 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_collection_add (photos, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 4704 "MediaDataRepresentation.c" - } else { - gboolean _tmp7_ = FALSE; -#line 396 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (videos != NULL) { -#line 4709 "MediaDataRepresentation.c" - MediaSource* _tmp8_; -#line 396 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp8_ = source; -#line 396 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, TYPE_VIDEO); -#line 4715 "MediaDataRepresentation.c" - } else { -#line 396 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = FALSE; -#line 4719 "MediaDataRepresentation.c" - } -#line 396 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp7_) { -#line 4723 "MediaDataRepresentation.c" - MediaSource* _tmp9_; -#line 397 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp9_ = source; -#line 397 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_collection_add (videos, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_VIDEO, Video)); -#line 4729 "MediaDataRepresentation.c" - } else { - gboolean _tmp10_ = FALSE; -#line 398 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (photos != NULL) { -#line 398 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp10_ = TRUE; -#line 4736 "MediaDataRepresentation.c" - } else { -#line 398 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp10_ = videos != NULL; -#line 4740 "MediaDataRepresentation.c" - } -#line 398 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp10_) { -#line 4744 "MediaDataRepresentation.c" - MediaSource* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 399 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp11_ = source; -#line 399 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp12_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject)); -#line 399 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp13_ = _tmp12_; -#line 399 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_warning ("MediaDataRepresentation.vala:399: Unrecognized media: %s", _tmp13_); -#line 399 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (_tmp13_); -#line 4758 "MediaDataRepresentation.c" - } - } - } -#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (source); -#line 4764 "MediaDataRepresentation.c" - } -#line 393 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_source_it); -#line 4768 "MediaDataRepresentation.c" - } -} - - -void -media_source_collection_count_media (GeeCollection* media, - gint* photo_count, - gint* video_count) -{ - gint _vala_photo_count = 0; - gint _vala_video_count = 0; - GeeArrayList* photos = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* videos = NULL; - GeeArrayList* _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _tmp5_; -#line 403 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (GEE_IS_COLLECTION (media)); -#line 405 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 405 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - photos = _tmp0_; -#line 406 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 406 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - videos = _tmp1_; -#line 408 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_collection_filter_media (media, G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_COLLECTION, GeeCollection)); -#line 410 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 410 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = _tmp2_; -#line 410 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _vala_photo_count = _tmp3_; -#line 411 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 411 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = _tmp4_; -#line 411 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _vala_video_count = _tmp5_; -#line 403 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (videos); -#line 403 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (photos); -#line 403 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (photo_count) { -#line 403 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - *photo_count = _vala_photo_count; -#line 4820 "MediaDataRepresentation.c" - } -#line 403 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (video_count) { -#line 403 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - *video_count = _vala_video_count; -#line 4826 "MediaDataRepresentation.c" - } -} - - -gboolean -media_source_collection_has_photo (GeeCollection* media) -{ - gboolean result = FALSE; -#line 414 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (media), FALSE); -#line 4837 "MediaDataRepresentation.c" - { - GeeIterator* _current_media_it = NULL; - GeeIterator* _tmp0_; -#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_ITERABLE, GeeIterable)); -#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _current_media_it = _tmp0_; -#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 4847 "MediaDataRepresentation.c" - GeeIterator* _tmp1_; - MediaSource* current_media = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - MediaSource* _tmp4_; -#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _current_media_it; -#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 4859 "MediaDataRepresentation.c" - } -#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = _current_media_it; -#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - current_media = (MediaSource*) _tmp3_; -#line 416 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = current_media; -#line 416 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_PHOTO)) { -#line 417 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = TRUE; -#line 417 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (current_media); -#line 417 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_current_media_it); -#line 417 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 4879 "MediaDataRepresentation.c" - } -#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (current_media); -#line 4883 "MediaDataRepresentation.c" - } -#line 415 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_current_media_it); -#line 4887 "MediaDataRepresentation.c" - } -#line 421 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = FALSE; -#line 421 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 4893 "MediaDataRepresentation.c" -} - - -gboolean -media_source_collection_has_video (GeeCollection* media) -{ - gboolean result = FALSE; -#line 424 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (media), FALSE); -#line 4903 "MediaDataRepresentation.c" - { - GeeIterator* _current_media_it = NULL; - GeeIterator* _tmp0_; -#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_ITERABLE, GeeIterable)); -#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _current_media_it = _tmp0_; -#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 4913 "MediaDataRepresentation.c" - GeeIterator* _tmp1_; - MediaSource* current_media = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - MediaSource* _tmp4_; -#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _current_media_it; -#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 4925 "MediaDataRepresentation.c" - } -#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = _current_media_it; -#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - current_media = (MediaSource*) _tmp3_; -#line 426 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = current_media; -#line 426 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_VIDEO)) { -#line 427 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = TRUE; -#line 427 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (current_media); -#line 427 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_current_media_it); -#line 427 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 4945 "MediaDataRepresentation.c" - } -#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (current_media); -#line 4949 "MediaDataRepresentation.c" - } -#line 425 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_current_media_it); -#line 4953 "MediaDataRepresentation.c" - } -#line 431 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = FALSE; -#line 431 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 4959 "MediaDataRepresentation.c" -} - - -static MediaSourceHoldingTank* -media_source_collection_real_create_trashcan (MediaSourceCollection* self) -{ -#line 434 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_collection_create_trashcan'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 434 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return NULL; -#line 4970 "MediaDataRepresentation.c" -} - - -MediaSourceHoldingTank* -media_source_collection_create_trashcan (MediaSourceCollection* self) -{ -#line 434 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL); -#line 434 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->create_trashcan (self); -#line 4981 "MediaDataRepresentation.c" -} - - -static MediaSourceHoldingTank* -media_source_collection_real_create_offline_bin (MediaSourceCollection* self) -{ -#line 436 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_collection_create_offline_bin'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 436 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return NULL; -#line 4992 "MediaDataRepresentation.c" -} - - -MediaSourceHoldingTank* -media_source_collection_create_offline_bin (MediaSourceCollection* self) -{ -#line 436 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL); -#line 436 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->create_offline_bin (self); -#line 5003 "MediaDataRepresentation.c" -} - - -static MediaMonitor* -media_source_collection_real_create_media_monitor (MediaSourceCollection* self, - Workers* workers, - GCancellable* cancellable) -{ -#line 438 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_collection_create_media_monitor'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 438 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return NULL; -#line 5016 "MediaDataRepresentation.c" -} - - -MediaMonitor* -media_source_collection_create_media_monitor (MediaSourceCollection* self, - Workers* workers, - GCancellable* cancellable) -{ -#line 438 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL); -#line 438 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->create_media_monitor (self, workers, cancellable); -#line 5029 "MediaDataRepresentation.c" -} - - -static gchar* -media_source_collection_real_get_typename (MediaSourceCollection* self) -{ -#line 440 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_collection_get_typename'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 440 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return NULL; -#line 5040 "MediaDataRepresentation.c" -} - - -gchar* -media_source_collection_get_typename (MediaSourceCollection* self) -{ -#line 440 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL); -#line 440 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->get_typename (self); -#line 5051 "MediaDataRepresentation.c" -} - - -static gboolean -media_source_collection_real_is_file_recognized (MediaSourceCollection* self, - GFile* file) -{ - gboolean _tmp0_ = FALSE; -#line 442 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_collection_is_file_recognized'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 442 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return _tmp0_; -#line 5064 "MediaDataRepresentation.c" -} - - -gboolean -media_source_collection_is_file_recognized (MediaSourceCollection* self, - GFile* file) -{ -#line 442 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), FALSE); -#line 442 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->is_file_recognized (self, file); -#line 5076 "MediaDataRepresentation.c" -} - - -static gpointer -_source_holding_tank_ref0 (gpointer self) -{ -#line 445 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return self ? source_holding_tank_ref (self) : NULL; -#line 5085 "MediaDataRepresentation.c" -} - - -MediaSourceHoldingTank* -media_source_collection_get_trashcan (MediaSourceCollection* self) -{ - MediaSourceHoldingTank* result = NULL; - MediaSourceHoldingTank* _tmp0_; - MediaSourceHoldingTank* _tmp1_; -#line 444 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL); -#line 445 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->priv->trashcan; -#line 445 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _source_holding_tank_ref0 (_tmp0_); -#line 445 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp1_; -#line 445 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 5105 "MediaDataRepresentation.c" -} - - -MediaSourceHoldingTank* -media_source_collection_get_offline_bin (MediaSourceCollection* self) -{ - MediaSourceHoldingTank* result = NULL; - MediaSourceHoldingTank* _tmp0_; - MediaSourceHoldingTank* _tmp1_; -#line 448 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL); -#line 449 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->priv->offline_bin; -#line 449 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _source_holding_tank_ref0 (_tmp0_); -#line 449 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp1_; -#line 449 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 5125 "MediaDataRepresentation.c" -} - - -static MediaSource* -media_source_collection_real_fetch_by_numeric_id (MediaSourceCollection* self, - gint64 numeric_id) -{ -#line 455 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_collection_fetch_by_numeric_id'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 455 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return NULL; -#line 5137 "MediaDataRepresentation.c" -} - - -MediaSource* -media_source_collection_fetch_by_numeric_id (MediaSourceCollection* self, - gint64 numeric_id) -{ -#line 455 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL); -#line 455 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->fetch_by_numeric_id (self, numeric_id); -#line 5149 "MediaDataRepresentation.c" -} - - -static void -media_source_collection_real_notify_import_roll_altered (MediaSourceCollection* self) -{ -#line 458 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_emit (self, media_source_collection_signals[MEDIA_SOURCE_COLLECTION_IMPORT_ROLL_ALTERED_SIGNAL], 0); -#line 5158 "MediaDataRepresentation.c" -} - - -void -media_source_collection_notify_import_roll_altered (MediaSourceCollection* self) -{ -#line 457 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self)); -#line 457 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->notify_import_roll_altered (self); -#line 5169 "MediaDataRepresentation.c" -} - - -static void -media_source_collection_real_notify_flagged_contents_altered (MediaSourceCollection* self) -{ -#line 462 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_emit (self, media_source_collection_signals[MEDIA_SOURCE_COLLECTION_FLAGGED_CONTENTS_ALTERED_SIGNAL], 0); -#line 5178 "MediaDataRepresentation.c" -} - - -void -media_source_collection_notify_flagged_contents_altered (MediaSourceCollection* self) -{ -#line 461 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self)); -#line 461 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->notify_flagged_contents_altered (self); -#line 5189 "MediaDataRepresentation.c" -} - - -static void -media_source_collection_real_notify_media_import_starting (MediaSourceCollection* self, - GeeCollection* media) -{ -#line 465 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (GEE_IS_COLLECTION (media)); -#line 466 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_emit (self, media_source_collection_signals[MEDIA_SOURCE_COLLECTION_MEDIA_IMPORT_STARTING_SIGNAL], 0, media); -#line 5201 "MediaDataRepresentation.c" -} - - -void -media_source_collection_notify_media_import_starting (MediaSourceCollection* self, - GeeCollection* media) -{ -#line 465 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self)); -#line 465 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->notify_media_import_starting (self, media); -#line 5213 "MediaDataRepresentation.c" -} - - -static void -media_source_collection_real_notify_media_import_completed (MediaSourceCollection* self, - GeeCollection* media) -{ -#line 469 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (GEE_IS_COLLECTION (media)); -#line 470 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_emit (self, media_source_collection_signals[MEDIA_SOURCE_COLLECTION_MEDIA_IMPORT_COMPLETED_SIGNAL], 0, media); -#line 5225 "MediaDataRepresentation.c" -} - - -void -media_source_collection_notify_media_import_completed (MediaSourceCollection* self, - GeeCollection* media) -{ -#line 469 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self)); -#line 469 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->notify_media_import_completed (self, media); -#line 5237 "MediaDataRepresentation.c" -} - - -static void -media_source_collection_real_items_altered (DataCollection* base, - GeeMap* items) -{ - MediaSourceCollection * self; - GeeArrayList* to_trashcan = NULL; - GeeArrayList* to_offline = NULL; - gboolean flagged_altered = FALSE; - GeeArrayList* _tmp43_; - GeeArrayList* _tmp47_; - gboolean _tmp51_; -#line 473 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection); -#line 473 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (GEE_IS_MAP (items)); -#line 474 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - to_trashcan = NULL; -#line 475 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - to_offline = NULL; -#line 476 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - flagged_altered = FALSE; -#line 5262 "MediaDataRepresentation.c" - { - GeeIterator* _object_it = NULL; - GeeSet* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = gee_map_get_keys (items); -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = _tmp1_; -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = _tmp3_; -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp2_); -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _object_it = _tmp4_; -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 5286 "MediaDataRepresentation.c" - GeeIterator* _tmp5_; - DataObject* object = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - Alteration* alteration = NULL; - DataObject* _tmp8_; - gpointer _tmp9_; - MediaSource* source = NULL; - DataObject* _tmp10_; - MediaSource* _tmp11_; - Alteration* _tmp12_; - gboolean _tmp13_ = FALSE; - MediaSource* _tmp14_; - gboolean _tmp22_ = FALSE; - MediaSource* _tmp23_; - Flaggable* flaggable = NULL; - MediaSource* _tmp31_; - Flaggable* _tmp32_; - Flaggable* _tmp33_; -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = _object_it; -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 5312 "MediaDataRepresentation.c" - } -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = _object_it; -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - object = (DataObject*) _tmp7_; -#line 478 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp8_ = object; -#line 478 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp9_ = gee_map_get (items, _tmp8_); -#line 478 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - alteration = (Alteration*) _tmp9_; -#line 479 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp10_ = object; -#line 479 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 479 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - source = _tmp11_; -#line 481 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp12_ = alteration; -#line 481 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!alteration_has_subject (_tmp12_, "metadata")) { -#line 482 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (source); -#line 482 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _alteration_unref0 (alteration); -#line 482 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (object); -#line 482 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - continue; -#line 5344 "MediaDataRepresentation.c" - } -#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp14_ = source; -#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (media_source_is_trashed (_tmp14_)) { -#line 5350 "MediaDataRepresentation.c" - MediaSourceHoldingTank* _tmp15_; - MediaSourceHoldingTank* _tmp16_; - MediaSource* _tmp17_; -#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp15_ = media_source_collection_get_trashcan (self); -#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp16_ = _tmp15_; -#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp17_ = source; -#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp13_ = !source_holding_tank_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_SOURCE, DataSource)); -#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_holding_tank_unref0 (_tmp16_); -#line 5364 "MediaDataRepresentation.c" - } else { -#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp13_ = FALSE; -#line 5368 "MediaDataRepresentation.c" - } -#line 484 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp13_) { -#line 5372 "MediaDataRepresentation.c" - GeeArrayList* _tmp18_; - GeeArrayList* _tmp20_; - MediaSource* _tmp21_; -#line 485 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp18_ = to_trashcan; -#line 485 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp18_ == NULL) { -#line 5380 "MediaDataRepresentation.c" - GeeArrayList* _tmp19_; -#line 486 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp19_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 486 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (to_trashcan); -#line 486 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - to_trashcan = _tmp19_; -#line 5388 "MediaDataRepresentation.c" - } -#line 488 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp20_ = to_trashcan; -#line 488 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp21_ = source; -#line 488 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp21_); -#line 491 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (source); -#line 491 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _alteration_unref0 (alteration); -#line 491 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (object); -#line 491 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - continue; -#line 5404 "MediaDataRepresentation.c" - } -#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp23_ = source; -#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (media_source_is_offline (_tmp23_)) { -#line 5410 "MediaDataRepresentation.c" - MediaSourceHoldingTank* _tmp24_; - MediaSourceHoldingTank* _tmp25_; - MediaSource* _tmp26_; -#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp24_ = media_source_collection_get_offline_bin (self); -#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp25_ = _tmp24_; -#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp26_ = source; -#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp22_ = !source_holding_tank_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_DATA_SOURCE, DataSource)); -#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_holding_tank_unref0 (_tmp25_); -#line 5424 "MediaDataRepresentation.c" - } else { -#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp22_ = FALSE; -#line 5428 "MediaDataRepresentation.c" - } -#line 494 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp22_) { -#line 5432 "MediaDataRepresentation.c" - GeeArrayList* _tmp27_; - GeeArrayList* _tmp29_; - MediaSource* _tmp30_; -#line 495 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp27_ = to_offline; -#line 495 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp27_ == NULL) { -#line 5440 "MediaDataRepresentation.c" - GeeArrayList* _tmp28_; -#line 496 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp28_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 496 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (to_offline); -#line 496 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - to_offline = _tmp28_; -#line 5448 "MediaDataRepresentation.c" - } -#line 498 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp29_ = to_offline; -#line 498 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp30_ = source; -#line 498 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp30_); -#line 5456 "MediaDataRepresentation.c" - } -#line 501 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp31_ = source; -#line 501 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp32_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp31_, TYPE_FLAGGABLE) ? ((Flaggable*) _tmp31_) : NULL); -#line 501 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - flaggable = _tmp32_; -#line 502 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp33_ = flaggable; -#line 502 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp33_ != NULL) { -#line 5468 "MediaDataRepresentation.c" - Flaggable* _tmp34_; -#line 503 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp34_ = flaggable; -#line 503 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (flaggable_is_flagged (_tmp34_)) { -#line 5474 "MediaDataRepresentation.c" - gboolean _tmp35_ = FALSE; - GeeSet* _tmp36_; - MediaSource* _tmp37_; -#line 504 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp36_ = self->priv->flagged; -#line 504 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp37_ = source; -#line 504 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_COLLECTION, GeeCollection), _tmp37_)) { -#line 504 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp35_ = TRUE; -#line 5486 "MediaDataRepresentation.c" - } else { - gboolean _tmp38_; -#line 504 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp38_ = flagged_altered; -#line 504 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp35_ = _tmp38_; -#line 5493 "MediaDataRepresentation.c" - } -#line 504 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - flagged_altered = _tmp35_; -#line 5497 "MediaDataRepresentation.c" - } else { - gboolean _tmp39_ = FALSE; - GeeSet* _tmp40_; - MediaSource* _tmp41_; -#line 506 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp40_ = self->priv->flagged; -#line 506 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp41_ = source; -#line 506 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GEE_TYPE_COLLECTION, GeeCollection), _tmp41_)) { -#line 506 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp39_ = TRUE; -#line 5510 "MediaDataRepresentation.c" - } else { - gboolean _tmp42_; -#line 506 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp42_ = flagged_altered; -#line 506 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp39_ = _tmp42_; -#line 5517 "MediaDataRepresentation.c" - } -#line 506 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - flagged_altered = _tmp39_; -#line 5521 "MediaDataRepresentation.c" - } - } -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (flaggable); -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (source); -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _alteration_unref0 (alteration); -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (object); -#line 5532 "MediaDataRepresentation.c" - } -#line 477 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_object_it); -#line 5536 "MediaDataRepresentation.c" - } -#line 510 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp43_ = to_trashcan; -#line 510 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp43_ != NULL) { -#line 5542 "MediaDataRepresentation.c" - MediaSourceHoldingTank* _tmp44_; - MediaSourceHoldingTank* _tmp45_; - GeeArrayList* _tmp46_; -#line 511 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp44_ = media_source_collection_get_trashcan (self); -#line 511 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp45_ = _tmp44_; -#line 511 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp46_ = to_trashcan; -#line 511 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - source_holding_tank_unlink_and_hold (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 511 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_holding_tank_unref0 (_tmp45_); -#line 5556 "MediaDataRepresentation.c" - } -#line 513 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp47_ = to_offline; -#line 513 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp47_ != NULL) { -#line 5562 "MediaDataRepresentation.c" - MediaSourceHoldingTank* _tmp48_; - MediaSourceHoldingTank* _tmp49_; - GeeArrayList* _tmp50_; -#line 514 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp48_ = media_source_collection_get_offline_bin (self); -#line 514 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp49_ = _tmp48_; -#line 514 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp50_ = to_offline; -#line 514 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - source_holding_tank_unlink_and_hold (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 514 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_holding_tank_unref0 (_tmp49_); -#line 5576 "MediaDataRepresentation.c" - } -#line 516 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp51_ = flagged_altered; -#line 516 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp51_) { -#line 517 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_collection_notify_flagged_contents_altered (self); -#line 5584 "MediaDataRepresentation.c" - } -#line 519 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - DATA_COLLECTION_CLASS (media_source_collection_parent_class)->items_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_DATA_COLLECTION, DataCollection), items); -#line 473 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (to_offline); -#line 473 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (to_trashcan); -#line 5592 "MediaDataRepresentation.c" -} - - -static void -_media_source_collection_on_master_replaced_media_source_master_replaced (MediaSource* _sender, - GFile* old_file, - GFile* new_file, - gpointer self) -{ -#line 531 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_collection_on_master_replaced ((MediaSourceCollection*) self, _sender, old_file, new_file); -#line 5604 "MediaDataRepresentation.c" -} - - -static void -media_source_collection_real_notify_contents_altered (DataCollection* base, - GeeIterable* added, - GeeIterable* removed) -{ - MediaSourceCollection * self; - gboolean import_roll_changed = FALSE; - gboolean flagged_altered = FALSE; - gboolean _tmp60_; - gboolean _tmp61_; -#line 522 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection); -#line 522 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added)); -#line 522 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed)); -#line 524 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - import_roll_changed = FALSE; -#line 525 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - flagged_altered = FALSE; -#line 526 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (added != NULL) { -#line 5630 "MediaDataRepresentation.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = gee_iterable_iterator (added); -#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _object_it = _tmp0_; -#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 5640 "MediaDataRepresentation.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - MediaSource* media = NULL; - DataObject* _tmp4_; - MediaSource* _tmp5_; - GeeHashMap* _tmp6_; - MediaSource* _tmp7_; - GFile* _tmp8_; - GFile* _tmp9_; - MediaSource* _tmp10_; - MediaSource* _tmp11_; - ImportID import_id = {0}; - MediaSource* _tmp12_; - ImportID _tmp13_ = {0}; - Flaggable* flaggable = NULL; - MediaSource* _tmp19_; - Flaggable* _tmp20_; - Flaggable* _tmp21_; -#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _object_it; -#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 5667 "MediaDataRepresentation.c" - } -#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = _object_it; -#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - object = (DataObject*) _tmp3_; -#line 528 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = object; -#line 528 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 528 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media = _tmp5_; -#line 530 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = self->priv->by_master_file; -#line 530 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = media; -#line 530 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp8_ = media_source_get_master_file (_tmp7_); -#line 530 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp9_ = _tmp8_; -#line 530 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp10_ = media; -#line 530 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, _tmp10_); -#line 530 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp9_); -#line 531 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp11_ = media; -#line 531 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_connect (_tmp11_, "master-replaced", (GCallback) _media_source_collection_on_master_replaced_media_source_master_replaced, self); -#line 533 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp12_ = media; -#line 533 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_get_import_id (_tmp12_, &_tmp13_); -#line 533 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - import_id = _tmp13_; -#line 534 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (import_id_is_valid (&import_id)) { -#line 5707 "MediaDataRepresentation.c" - GeeTreeSet* _tmp14_; - ImportID _tmp15_; - GeeMultiMap* _tmp16_; - ImportID _tmp17_; - MediaSource* _tmp18_; -#line 535 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp14_ = self->priv->sorted_import_ids; -#line 535 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp15_ = import_id; -#line 535 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), &_tmp15_); -#line 536 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp16_ = self->priv->import_rolls; -#line 536 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp17_ = import_id; -#line 536 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp18_ = media; -#line 536 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_multi_map_set (_tmp16_, &_tmp17_, _tmp18_); -#line 538 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - import_roll_changed = TRUE; -#line 5729 "MediaDataRepresentation.c" - } -#line 541 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp19_ = media; -#line 541 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_FLAGGABLE) ? ((Flaggable*) _tmp19_) : NULL); -#line 541 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - flaggable = _tmp20_; -#line 542 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp21_ = flaggable; -#line 542 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp21_ != NULL) { -#line 5741 "MediaDataRepresentation.c" - Flaggable* _tmp22_; -#line 543 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp22_ = flaggable; -#line 543 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (flaggable_is_flagged (_tmp22_)) { -#line 5747 "MediaDataRepresentation.c" - gboolean _tmp23_ = FALSE; - GeeSet* _tmp24_; - MediaSource* _tmp25_; -#line 544 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp24_ = self->priv->flagged; -#line 544 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp25_ = media; -#line 544 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection), _tmp25_)) { -#line 544 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp23_ = TRUE; -#line 5759 "MediaDataRepresentation.c" - } else { - gboolean _tmp26_; -#line 544 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp26_ = flagged_altered; -#line 544 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp23_ = _tmp26_; -#line 5766 "MediaDataRepresentation.c" - } -#line 544 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - flagged_altered = _tmp23_; -#line 5770 "MediaDataRepresentation.c" - } else { - gboolean _tmp27_ = FALSE; - GeeSet* _tmp28_; - MediaSource* _tmp29_; -#line 546 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp28_ = self->priv->flagged; -#line 546 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp29_ = media; -#line 546 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection), _tmp29_)) { -#line 546 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp27_ = TRUE; -#line 5783 "MediaDataRepresentation.c" - } else { - gboolean _tmp30_; -#line 546 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp30_ = flagged_altered; -#line 546 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp27_ = _tmp30_; -#line 5790 "MediaDataRepresentation.c" - } -#line 546 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - flagged_altered = _tmp27_; -#line 5794 "MediaDataRepresentation.c" - } - } -#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (flaggable); -#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (media); -#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (object); -#line 5803 "MediaDataRepresentation.c" - } -#line 527 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_object_it); -#line 5807 "MediaDataRepresentation.c" - } - } -#line 551 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (removed != NULL) { -#line 5812 "MediaDataRepresentation.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp31_; -#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp31_ = gee_iterable_iterator (removed); -#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _object_it = _tmp31_; -#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 5822 "MediaDataRepresentation.c" - GeeIterator* _tmp32_; - DataObject* object = NULL; - GeeIterator* _tmp33_; - gpointer _tmp34_; - MediaSource* media = NULL; - DataObject* _tmp35_; - MediaSource* _tmp36_; - gboolean is_removed = FALSE; - GeeHashMap* _tmp37_; - MediaSource* _tmp38_; - GFile* _tmp39_; - GFile* _tmp40_; - gboolean _tmp41_; - gboolean _tmp42_; - gboolean _tmp43_; - MediaSource* _tmp44_; - guint _tmp45_; - ImportID import_id = {0}; - MediaSource* _tmp46_; - ImportID _tmp47_ = {0}; - gboolean _tmp56_ = FALSE; - GeeSet* _tmp57_; - MediaSource* _tmp58_; -#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp32_ = _object_it; -#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp32_)) { -#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 5852 "MediaDataRepresentation.c" - } -#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp33_ = _object_it; -#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp34_ = gee_iterator_get (_tmp33_); -#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - object = (DataObject*) _tmp34_; -#line 553 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp35_ = object; -#line 553 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp36_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 553 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media = _tmp36_; -#line 555 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp37_ = self->priv->by_master_file; -#line 555 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp38_ = media; -#line 555 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp39_ = media_source_get_master_file (_tmp38_); -#line 555 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp40_ = _tmp39_; -#line 555 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp41_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp40_, NULL); -#line 555 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp42_ = _tmp41_; -#line 555 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp40_); -#line 555 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - is_removed = _tmp42_; -#line 556 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp43_ = is_removed; -#line 556 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _vala_assert (_tmp43_, "is_removed"); -#line 557 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp44_ = media; -#line 557 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_parse_name ("master-replaced", TYPE_MEDIA_SOURCE, &_tmp45_, NULL, FALSE); -#line 557 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_handlers_disconnect_matched (_tmp44_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp45_, 0, NULL, (GCallback) _media_source_collection_on_master_replaced_media_source_master_replaced, self); -#line 559 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp46_ = media; -#line 559 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_get_import_id (_tmp46_, &_tmp47_); -#line 559 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - import_id = _tmp47_; -#line 560 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (import_id_is_valid (&import_id)) { -#line 5900 "MediaDataRepresentation.c" - GeeMultiMap* _tmp48_; - ImportID _tmp49_; - MediaSource* _tmp50_; - gboolean _tmp51_; - GeeMultiMap* _tmp52_; - ImportID _tmp53_; -#line 561 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp48_ = self->priv->import_rolls; -#line 561 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp49_ = import_id; -#line 561 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp50_ = media; -#line 561 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - is_removed = gee_multi_map_remove (_tmp48_, &_tmp49_, _tmp50_); -#line 562 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp51_ = is_removed; -#line 562 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _vala_assert (_tmp51_, "is_removed"); -#line 563 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp52_ = self->priv->import_rolls; -#line 563 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp53_ = import_id; -#line 563 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_multi_map_contains (_tmp52_, &_tmp53_)) { -#line 5925 "MediaDataRepresentation.c" - GeeTreeSet* _tmp54_; - ImportID _tmp55_; -#line 564 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp54_ = self->priv->sorted_import_ids; -#line 564 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp55_ = import_id; -#line 564 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), &_tmp55_); -#line 5934 "MediaDataRepresentation.c" - } -#line 566 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - import_roll_changed = TRUE; -#line 5938 "MediaDataRepresentation.c" - } -#line 569 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp57_ = self->priv->flagged; -#line 569 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp58_ = media; -#line 569 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, GEE_TYPE_COLLECTION, GeeCollection), _tmp58_)) { -#line 569 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp56_ = TRUE; -#line 5948 "MediaDataRepresentation.c" - } else { - gboolean _tmp59_; -#line 569 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp59_ = flagged_altered; -#line 569 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp56_ = _tmp59_; -#line 5955 "MediaDataRepresentation.c" - } -#line 569 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - flagged_altered = _tmp56_; -#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (media); -#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (object); -#line 5963 "MediaDataRepresentation.c" - } -#line 552 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_object_it); -#line 5967 "MediaDataRepresentation.c" - } - } -#line 573 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp60_ = import_roll_changed; -#line 573 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp60_) { -#line 574 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_collection_notify_import_roll_altered (self); -#line 5976 "MediaDataRepresentation.c" - } -#line 576 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp61_ = flagged_altered; -#line 576 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp61_) { -#line 577 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_collection_notify_flagged_contents_altered (self); -#line 5984 "MediaDataRepresentation.c" - } -#line 579 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - DATA_COLLECTION_CLASS (media_source_collection_parent_class)->notify_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_DATA_COLLECTION, DataCollection), added, removed); -#line 5988 "MediaDataRepresentation.c" -} - - -static void -media_source_collection_on_master_replaced (MediaSourceCollection* self, - MediaSource* media, - GFile* old_file, - GFile* new_file) -{ - gboolean is_removed = FALSE; - GeeHashMap* _tmp0_; - gboolean _tmp1_; - GeeHashMap* _tmp2_; -#line 582 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self)); -#line 582 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE (media)); -#line 582 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_IS_FILE (old_file)); -#line 582 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_IS_FILE (new_file)); -#line 583 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->priv->by_master_file; -#line 583 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), old_file, NULL); -#line 583 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - is_removed = _tmp1_; -#line 584 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _vala_assert (is_removed, "is_removed"); -#line 586 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = self->priv->by_master_file; -#line 586 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), new_file, media); -#line 588 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_emit (self, media_source_collection_signals[MEDIA_SOURCE_COLLECTION_MASTER_FILE_REPLACED_SIGNAL], 0, media, old_file, new_file); -#line 6024 "MediaDataRepresentation.c" -} - - -MediaSource* -media_source_collection_fetch_by_master_file (MediaSourceCollection* self, - GFile* file) -{ - MediaSource* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 591 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL); -#line 591 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 592 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->priv->by_master_file; -#line 592 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file); -#line 592 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = (MediaSource*) _tmp1_; -#line 592 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 6047 "MediaDataRepresentation.c" -} - - -static MediaSource* -media_source_collection_real_fetch_by_source_id (MediaSourceCollection* self, - const gchar* source_id) -{ - MediaSource* result = NULL; - gchar** components = NULL; - gchar** _tmp0_; - gchar** _tmp1_; - gint components_length1; - gint _components_size_; - const gchar* _tmp2_; - MediaSource* _tmp3_; -#line 595 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (source_id != NULL, NULL); -#line 596 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_ = g_strsplit (source_id, "-", 0); -#line 596 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - components = _tmp1_; -#line 596 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - components_length1 = _vala_array_length (_tmp0_); -#line 596 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _components_size_ = components_length1; -#line 597 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _vala_assert (components_length1 == 2, "components.length == 2"); -#line 599 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = components[1]; -#line 599 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = media_source_collection_fetch_by_numeric_id (self, parse_int64 (_tmp2_, 16)); -#line 599 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp3_; -#line 599 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - components = (_vala_array_free (components, components_length1, (GDestroyNotify) g_free), NULL); -#line 599 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 6085 "MediaDataRepresentation.c" -} - - -MediaSource* -media_source_collection_fetch_by_source_id (MediaSourceCollection* self, - const gchar* source_id) -{ -#line 595 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL); -#line 595 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->fetch_by_source_id (self, source_id); -#line 6097 "MediaDataRepresentation.c" -} - - -static GeeCollection* -media_source_collection_real_get_event_source_ids (MediaSourceCollection* self, - EventID* event_id) -{ -#line 602 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("Type `%s' does not implement abstract method `media_source_collection_get_event_source_ids'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 602 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return NULL; -#line 6109 "MediaDataRepresentation.c" -} - - -GeeCollection* -media_source_collection_get_event_source_ids (MediaSourceCollection* self, - EventID* event_id) -{ -#line 602 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL); -#line 602 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->get_event_source_ids (self, event_id); -#line 6121 "MediaDataRepresentation.c" -} - - -GeeCollection* -media_source_collection_get_trashcan_contents (MediaSourceCollection* self) -{ - GeeCollection* result = NULL; - MediaSourceHoldingTank* _tmp0_; - MediaSourceHoldingTank* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; -#line 604 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL); -#line 605 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_source_collection_get_trashcan (self); -#line 605 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 605 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = source_holding_tank_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)); -#line 605 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 605 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_holding_tank_unref0 (_tmp1_); -#line 605 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp3_; -#line 605 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 6149 "MediaDataRepresentation.c" -} - - -GeeCollection* -media_source_collection_get_offline_bin_contents (MediaSourceCollection* self) -{ - GeeCollection* result = NULL; - MediaSourceHoldingTank* _tmp0_; - MediaSourceHoldingTank* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; -#line 608 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL); -#line 609 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_source_collection_get_offline_bin (self); -#line 609 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 609 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = source_holding_tank_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)); -#line 609 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 609 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_holding_tank_unref0 (_tmp1_); -#line 609 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp3_; -#line 609 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 6177 "MediaDataRepresentation.c" -} - - -GeeCollection* -media_source_collection_get_flagged (MediaSourceCollection* self) -{ - GeeCollection* result = NULL; - GeeSet* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; -#line 612 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL); -#line 613 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->priv->flagged; -#line 613 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = gee_set_get_read_only_view (_tmp0_); -#line 613 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = _tmp1_; -#line 613 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 613 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 6200 "MediaDataRepresentation.c" -} - - -GeeSortedSet* -media_source_collection_get_import_roll_ids (MediaSourceCollection* self) -{ - GeeSortedSet* result = NULL; - GeeTreeSet* _tmp0_; - GeeSortedSet* _tmp1_; -#line 617 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL); -#line 618 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->priv->sorted_import_ids; -#line 618 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SORTED_SET, GeeSortedSet)); -#line 618 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp1_; -#line 618 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 6220 "MediaDataRepresentation.c" -} - - -ImportID* -media_source_collection_get_last_import_id (MediaSourceCollection* self) -{ - ImportID* result = NULL; - ImportID* _tmp0_ = NULL; - GeeTreeSet* _tmp1_; - gint _tmp2_; - gint _tmp3_; -#line 621 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL); -#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = self->priv->sorted_import_ids; -#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = _tmp2_; -#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp3_ != 0) { -#line 6242 "MediaDataRepresentation.c" - GeeTreeSet* _tmp4_; - gpointer _tmp5_; -#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = self->priv->sorted_import_ids; -#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = gee_abstract_sorted_set_last (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_SORTED_SET, GeeAbstractSortedSet)); -#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _import_id_free0 (_tmp0_); -#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = (ImportID*) _tmp5_; -#line 6253 "MediaDataRepresentation.c" - } else { -#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _import_id_free0 (_tmp0_); -#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = NULL; -#line 6259 "MediaDataRepresentation.c" - } -#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp0_; -#line 622 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 6265 "MediaDataRepresentation.c" -} - - -GeeCollection* -media_source_collection_get_import_roll (MediaSourceCollection* self, - ImportID* import_id) -{ - GeeCollection* result = NULL; - GeeMultiMap* _tmp0_; - ImportID _tmp1_; - GeeCollection* _tmp2_; -#line 625 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL); -#line 625 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (import_id != NULL, NULL); -#line 626 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->priv->import_rolls; -#line 626 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = *import_id; -#line 626 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = gee_multi_map_get (_tmp0_, &_tmp1_); -#line 626 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp2_; -#line 626 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 6291 "MediaDataRepresentation.c" -} - - -void -media_source_collection_add_many_to_trash (MediaSourceCollection* self, - GeeCollection* sources) -{ - MediaSourceHoldingTank* _tmp0_; - MediaSourceHoldingTank* _tmp1_; -#line 629 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self)); -#line 629 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 630 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_source_collection_get_trashcan (self); -#line 630 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 630 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - source_holding_tank_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), sources); -#line 630 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_holding_tank_unref0 (_tmp1_); -#line 6313 "MediaDataRepresentation.c" -} - - -void -media_source_collection_add_many_to_offline (MediaSourceCollection* self, - GeeCollection* sources) -{ - MediaSourceHoldingTank* _tmp0_; - MediaSourceHoldingTank* _tmp1_; -#line 633 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self)); -#line 633 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 634 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_source_collection_get_offline_bin (self); -#line 634 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 634 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - source_holding_tank_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), sources); -#line 634 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_holding_tank_unref0 (_tmp1_); -#line 6335 "MediaDataRepresentation.c" -} - - -gint -media_source_collection_get_trashcan_count (MediaSourceCollection* self) -{ - gint result = 0; - MediaSourceHoldingTank* _tmp0_; - MediaSourceHoldingTank* _tmp1_; - gint _tmp2_; -#line 637 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), 0); -#line 638 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_source_collection_get_trashcan (self); -#line 638 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 638 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = source_holding_tank_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)); -#line 638 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_holding_tank_unref0 (_tmp1_); -#line 638 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp2_; -#line 638 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 6360 "MediaDataRepresentation.c" -} - - -static void -media_source_collection_real_import_many (MediaSourceCollection* self, - GeeCollection* media) -{ - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; -#line 644 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (GEE_IS_COLLECTION (media)); -#line 645 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_collection_notify_media_import_starting (self, media); -#line 647 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), media, NULL, NULL); -#line 647 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 647 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp1_); -#line 649 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_collection_postprocess_imported_media (self, media); -#line 651 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_collection_notify_media_import_completed (self, media); -#line 6384 "MediaDataRepresentation.c" -} - - -void -media_source_collection_import_many (MediaSourceCollection* self, - GeeCollection* media) -{ -#line 644 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self)); -#line 644 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->import_many (self, media); -#line 6396 "MediaDataRepresentation.c" -} - - -static void -media_source_collection_real_postprocess_imported_media (MediaSourceCollection* self, - GeeCollection* media) -{ -#line 656 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (GEE_IS_COLLECTION (media)); -#line 6406 "MediaDataRepresentation.c" -} - - -void -media_source_collection_postprocess_imported_media (MediaSourceCollection* self, - GeeCollection* media) -{ -#line 656 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self)); -#line 656 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->postprocess_imported_media (self, media); -#line 6418 "MediaDataRepresentation.c" -} - - -static gboolean -_aggregate_progress_monitor_monitor_progress_monitor (guint64 current, - guint64 total, - gboolean do_event_loop, - gpointer self) -{ - gboolean result; - result = aggregate_progress_monitor_monitor ((AggregateProgressMonitor*) self, current, total); -#line 691 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 6432 "MediaDataRepresentation.c" -} - - -void -media_source_collection_remove_from_app (MediaSourceCollection* self, - GeeCollection* sources, - gboolean delete_backing, - ProgressMonitor monitor, - void* monitor_target, - GeeList* not_removed) -{ - GeeHashSet* _tmp0_ = NULL; - GeeHashSet* to_tombstone = NULL; - GeeHashSet* _tmp2_; - GeeArrayList* trashed = NULL; - GeeArrayList* _tmp3_; - GeeArrayList* offlined = NULL; - GeeArrayList* _tmp4_; - GeeArrayList* not_trashed = NULL; - GeeArrayList* _tmp5_; - gint total_count = 0; - gint _tmp21_; - gint _tmp22_; - gint _tmp23_; - GeeArrayList* _tmp24_; - gint _tmp25_; - gint _tmp26_; - GeeArrayList* _tmp27_; - gint _tmp28_; - gint _tmp29_; - GeeArrayList* _tmp30_; - gint _tmp31_; - gint _tmp32_; - AggregateProgressMonitor* agg_monitor = NULL; - GeeArrayList* _tmp36_; - gint _tmp37_; - gint _tmp38_; - GeeArrayList* _tmp42_; - gint _tmp43_; - gint _tmp44_; - GeeArrayList* _tmp48_; - gint _tmp49_; - gint _tmp50_; - gboolean _tmp54_ = FALSE; - GeeHashSet* _tmp55_; - GError * _inner_error_ = NULL; -#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self)); -#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail ((sources == NULL) || GEE_IS_COLLECTION (sources)); -#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail ((not_removed == NULL) || GEE_IS_LIST (not_removed)); -#line 664 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _vala_assert (sources != NULL, "sources != null"); -#line 666 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!delete_backing) { -#line 6489 "MediaDataRepresentation.c" - GeeHashSet* _tmp1_; -#line 666 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 666 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp0_); -#line 666 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = _tmp1_; -#line 6497 "MediaDataRepresentation.c" - } else { -#line 666 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp0_); -#line 666 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = NULL; -#line 6503 "MediaDataRepresentation.c" - } -#line 666 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = _g_object_ref0 (_tmp0_); -#line 666 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - to_tombstone = _tmp2_; -#line 669 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 669 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - trashed = _tmp3_; -#line 670 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 670 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - offlined = _tmp4_; -#line 671 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 671 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - not_trashed = _tmp5_; -#line 6521 "MediaDataRepresentation.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp6_; -#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_it = _tmp6_; -#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 6531 "MediaDataRepresentation.c" - GeeIterator* _tmp7_; - MediaSource* source = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; - MediaSource* _tmp10_; - GeeHashSet* _tmp18_; -#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = _source_it; -#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp7_)) { -#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 6544 "MediaDataRepresentation.c" - } -#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp8_ = _source_it; -#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp9_ = gee_iterator_get (_tmp8_); -#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - source = (MediaSource*) _tmp9_; -#line 673 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp10_ = source; -#line 673 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (media_source_is_trashed (_tmp10_)) { -#line 6556 "MediaDataRepresentation.c" - GeeArrayList* _tmp11_; - MediaSource* _tmp12_; -#line 674 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp11_ = trashed; -#line 674 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp12_ = source; -#line 674 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp12_); -#line 6565 "MediaDataRepresentation.c" - } else { - MediaSource* _tmp13_; -#line 675 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp13_ = source; -#line 675 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (media_source_is_offline (_tmp13_)) { -#line 6572 "MediaDataRepresentation.c" - GeeArrayList* _tmp14_; - MediaSource* _tmp15_; -#line 676 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp14_ = offlined; -#line 676 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp15_ = source; -#line 676 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_); -#line 6581 "MediaDataRepresentation.c" - } else { - GeeArrayList* _tmp16_; - MediaSource* _tmp17_; -#line 678 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp16_ = not_trashed; -#line 678 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp17_ = source; -#line 678 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_); -#line 6591 "MediaDataRepresentation.c" - } - } -#line 680 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp18_ = to_tombstone; -#line 680 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp18_ != NULL) { -#line 6598 "MediaDataRepresentation.c" - GeeHashSet* _tmp19_; - MediaSource* _tmp20_; -#line 681 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp19_ = to_tombstone; -#line 681 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp20_ = source; -#line 681 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp20_); -#line 6607 "MediaDataRepresentation.c" - } -#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (source); -#line 6611 "MediaDataRepresentation.c" - } -#line 672 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_source_it); -#line 6615 "MediaDataRepresentation.c" - } -#line 684 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp21_ = gee_collection_get_size (sources); -#line 684 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp22_ = _tmp21_; -#line 684 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - total_count = _tmp22_; -#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp23_ = total_count; -#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp24_ = trashed; -#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp25_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp26_ = _tmp25_; -#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp27_ = offlined; -#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp28_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp29_ = _tmp28_; -#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp30_ = not_trashed; -#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp31_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp32_ = _tmp31_; -#line 685 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _vala_assert (_tmp23_ == ((_tmp26_ + _tmp29_) + _tmp32_), "total_count == (trashed.size + offlined.size + not_trashed.size)"); -#line 688 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - agg_monitor = NULL; -#line 689 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (monitor != NULL) { -#line 6649 "MediaDataRepresentation.c" - gint _tmp33_; - AggregateProgressMonitor* _tmp34_; - AggregateProgressMonitor* _tmp35_; -#line 690 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp33_ = total_count; -#line 690 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp34_ = aggregate_progress_monitor_new ((guint64) _tmp33_, monitor, monitor_target); -#line 690 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _aggregate_progress_monitor_unref0 (agg_monitor); -#line 690 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - agg_monitor = _tmp34_; -#line 691 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp35_ = agg_monitor; -#line 691 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - monitor = _aggregate_progress_monitor_monitor_progress_monitor; -#line 691 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - monitor_target = _tmp35_; -#line 6667 "MediaDataRepresentation.c" - } -#line 694 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp36_ = trashed; -#line 694 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp37_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 694 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp38_ = _tmp37_; -#line 694 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp38_ > 0) { -#line 6677 "MediaDataRepresentation.c" - MediaSourceHoldingTank* _tmp39_; - MediaSourceHoldingTank* _tmp40_; - GeeArrayList* _tmp41_; -#line 695 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp39_ = media_source_collection_get_trashcan (self); -#line 695 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp40_ = _tmp39_; -#line 695 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp41_ = trashed; -#line 695 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - source_holding_tank_destroy_orphans (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_LIST, GeeList), delete_backing, monitor, monitor_target, not_removed); -#line 695 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_holding_tank_unref0 (_tmp40_); -#line 6691 "MediaDataRepresentation.c" - } -#line 697 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp42_ = offlined; -#line 697 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp43_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 697 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp44_ = _tmp43_; -#line 697 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp44_ > 0) { -#line 6701 "MediaDataRepresentation.c" - MediaSourceHoldingTank* _tmp45_; - MediaSourceHoldingTank* _tmp46_; - GeeArrayList* _tmp47_; -#line 698 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp45_ = media_source_collection_get_offline_bin (self); -#line 698 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp46_ = _tmp45_; -#line 698 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp47_ = offlined; -#line 698 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - source_holding_tank_destroy_orphans (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, GEE_TYPE_LIST, GeeList), delete_backing, monitor, monitor_target, not_removed); -#line 698 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_holding_tank_unref0 (_tmp46_); -#line 6715 "MediaDataRepresentation.c" - } -#line 701 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp48_ = not_trashed; -#line 701 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp49_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 701 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp50_ = _tmp49_; -#line 701 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp50_ > 0) { -#line 6725 "MediaDataRepresentation.c" - GeeArrayList* _tmp51_; - Marker* _tmp52_; - Marker* _tmp53_; -#line 702 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp51_ = not_trashed; -#line 702 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp52_ = data_collection_mark_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 702 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp53_ = _tmp52_; -#line 702 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp53_, delete_backing, monitor, monitor_target, not_removed); -#line 702 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp53_); -#line 6739 "MediaDataRepresentation.c" - } -#line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp55_ = to_tombstone; -#line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp55_ != NULL) { -#line 6745 "MediaDataRepresentation.c" - GeeHashSet* _tmp56_; - gint _tmp57_; - gint _tmp58_; -#line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp56_ = to_tombstone; -#line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp57_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp58_ = _tmp57_; -#line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp54_ = _tmp58_ > 0; -#line 6757 "MediaDataRepresentation.c" - } else { -#line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp54_ = FALSE; -#line 6761 "MediaDataRepresentation.c" - } -#line 704 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp54_) { -#line 6765 "MediaDataRepresentation.c" - { - GeeHashSet* _tmp59_; -#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp59_ = to_tombstone; -#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - tombstone_entomb_many_sources (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, GEE_TYPE_COLLECTION, GeeCollection), TOMBSTONE_REASON_REMOVED_BY_USER, &_inner_error_); -#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 6776 "MediaDataRepresentation.c" - goto __catch574_database_error; - } -#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _aggregate_progress_monitor_unref0 (agg_monitor); -#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (not_trashed); -#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (offlined); -#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (trashed); -#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (to_tombstone); -#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp0_); -#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_clear_error (&_inner_error_); -#line 706 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return; -#line 6797 "MediaDataRepresentation.c" - } - } - goto __finally574; - __catch574_database_error: - { - GError* err = NULL; - GError* _tmp60_; -#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - err = _inner_error_; -#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _inner_error_ = NULL; -#line 708 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp60_ = err; -#line 708 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - app_window_database_error (_tmp60_); -#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_error_free0 (err); -#line 6815 "MediaDataRepresentation.c" - } - __finally574: -#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _aggregate_progress_monitor_unref0 (agg_monitor); -#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (not_trashed); -#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (offlined); -#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (trashed); -#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (to_tombstone); -#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp0_); -#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_clear_error (&_inner_error_); -#line 705 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return; -#line 6838 "MediaDataRepresentation.c" - } - } -#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _aggregate_progress_monitor_unref0 (agg_monitor); -#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (not_trashed); -#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (offlined); -#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (trashed); -#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (to_tombstone); -#line 662 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp0_); -#line 6853 "MediaDataRepresentation.c" -} - - -void -media_source_collection_delete_backing_files (MediaSourceCollection* self, - GeeCollection* sources, - ProgressMonitor monitor, - void* monitor_target, - GeeList* not_deleted) -{ - gint total_count = 0; - gint _tmp0_; - gint _tmp1_; - gint i = 0; - GError * _inner_error_ = NULL; -#line 715 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (self)); -#line 715 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 715 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail ((not_deleted == NULL) || GEE_IS_LIST (not_deleted)); -#line 717 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = gee_collection_get_size (sources); -#line 717 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 717 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - total_count = _tmp1_; -#line 718 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - i = 1; -#line 6883 "MediaDataRepresentation.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp2_; -#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_it = _tmp2_; -#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 6893 "MediaDataRepresentation.c" - GeeIterator* _tmp3_; - MediaSource* source = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - GFile* file = NULL; - MediaSource* _tmp6_; - GFile* _tmp7_; - GFile* masterfile = NULL; - MediaSource* _tmp14_; - GFile* _tmp15_; - GFile* _tmp16_; - gboolean deleted = FALSE; - GFile* _tmp24_; - gboolean _tmp25_ = FALSE; - gboolean _tmp26_; - gint _tmp30_; -#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = _source_it; -#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 6916 "MediaDataRepresentation.c" - } -#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = _source_it; -#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - source = (MediaSource*) _tmp5_; -#line 721 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = source; -#line 721 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = media_source_get_file (_tmp6_); -#line 721 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - file = _tmp7_; -#line 6930 "MediaDataRepresentation.c" - { - GFile* _tmp8_; -#line 723 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp8_ = file; -#line 723 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_file_delete (_tmp8_, NULL, &_inner_error_); -#line 723 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6939 "MediaDataRepresentation.c" - goto __catch575_g_error; - } - } - goto __finally575; - __catch575_g_error: - { - GError* err = NULL; - GFile* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - GError* _tmp12_; - const gchar* _tmp13_; -#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - err = _inner_error_; -#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _inner_error_ = NULL; -#line 726 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp9_ = file; -#line 726 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp10_ = g_file_get_path (_tmp9_); -#line 726 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp11_ = _tmp10_; -#line 726 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp12_ = err; -#line 726 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp13_ = _tmp12_->message; -#line 726 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_debug ("MediaDataRepresentation.vala:726: Exception deleting file %s: %s", _tmp11_, _tmp13_); -#line 726 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (_tmp11_); -#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_error_free0 (err); -#line 6972 "MediaDataRepresentation.c" - } - __finally575: -#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (file); -#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (source); -#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_source_it); -#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_clear_error (&_inner_error_); -#line 722 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return; -#line 6989 "MediaDataRepresentation.c" - } -#line 729 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp14_ = source; -#line 729 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp15_ = media_source_get_master_file (_tmp14_); -#line 729 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - masterfile = _tmp15_; -#line 730 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp16_ = masterfile; -#line 730 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp16_ != NULL) { -#line 7001 "MediaDataRepresentation.c" - { - GFile* _tmp17_; -#line 732 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp17_ = masterfile; -#line 732 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_file_delete (_tmp17_, NULL, &_inner_error_); -#line 732 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7010 "MediaDataRepresentation.c" - goto __catch576_g_error; - } - } - goto __finally576; - __catch576_g_error: - { - GError* err = NULL; - GError* _tmp18_; -#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - err = _inner_error_; -#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _inner_error_ = NULL; -#line 734 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp18_ = err; -#line 734 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!g_error_matches (_tmp18_, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) { -#line 7027 "MediaDataRepresentation.c" - GFile* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - GError* _tmp22_; - const gchar* _tmp23_; -#line 735 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp19_ = masterfile; -#line 735 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp20_ = g_file_get_path (_tmp19_); -#line 735 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp21_ = _tmp20_; -#line 735 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp22_ = err; -#line 735 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp23_ = _tmp22_->message; -#line 735 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_debug ("MediaDataRepresentation.vala:735: Exception deleting master file %s: %" \ -"s", _tmp21_, _tmp23_); -#line 735 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (_tmp21_); -#line 7047 "MediaDataRepresentation.c" - } -#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_error_free0 (err); -#line 7051 "MediaDataRepresentation.c" - } - __finally576: -#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (masterfile); -#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (file); -#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (source); -#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_source_it); -#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_clear_error (&_inner_error_); -#line 731 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return; -#line 7070 "MediaDataRepresentation.c" - } - } -#line 740 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp24_ = file; -#line 740 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - deleted = !g_file_query_exists (_tmp24_, NULL); -#line 741 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp26_ = deleted; -#line 741 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!_tmp26_) { -#line 741 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp25_ = NULL != not_deleted; -#line 7083 "MediaDataRepresentation.c" - } else { -#line 741 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp25_ = FALSE; -#line 7087 "MediaDataRepresentation.c" - } -#line 741 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp25_) { -#line 7091 "MediaDataRepresentation.c" - MediaSource* _tmp27_; -#line 742 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp27_ = source; -#line 742 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (not_deleted, GEE_TYPE_COLLECTION, GeeCollection), _tmp27_); -#line 7097 "MediaDataRepresentation.c" - } -#line 745 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (monitor != NULL) { -#line 7101 "MediaDataRepresentation.c" - gint _tmp28_; - gint _tmp29_; -#line 746 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp28_ = i; -#line 746 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp29_ = total_count; -#line 746 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - monitor ((guint64) _tmp28_, (guint64) _tmp29_, TRUE, monitor_target); -#line 7110 "MediaDataRepresentation.c" - } -#line 748 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp30_ = i; -#line 748 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - i = _tmp30_ + 1; -#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (masterfile); -#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (file); -#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (source); -#line 7122 "MediaDataRepresentation.c" - } -#line 720 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_source_it); -#line 7126 "MediaDataRepresentation.c" - } -} - - -TransactionController* -media_source_collection_get_transaction_controller (MediaSourceCollection* self) -{ -#line 344 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (self), NULL); -#line 344 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return MEDIA_SOURCE_COLLECTION_GET_CLASS (self)->get_transaction_controller (self); -#line 7138 "MediaDataRepresentation.c" -} - - -static void -media_source_collection_real_media_import_starting (MediaSourceCollection* self, - GeeCollection* media) -{ -#line 357 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (GEE_IS_COLLECTION (media)); -#line 7148 "MediaDataRepresentation.c" -} - - -static void -media_source_collection_real_media_import_completed (MediaSourceCollection* self, - GeeCollection* media) -{ -#line 364 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (GEE_IS_COLLECTION (media)); -#line 7158 "MediaDataRepresentation.c" -} - - -static void -media_source_collection_real_master_file_replaced (MediaSourceCollection* self, - MediaSource* media, - GFile* old_file, - GFile* new_file) -{ -#line 367 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE (media)); -#line 367 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_IS_FILE (old_file)); -#line 367 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_IS_FILE (new_file)); -#line 7174 "MediaDataRepresentation.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer arg_3, gpointer data2); - register GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (n_param_values == 4); -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - data1 = closure->data; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - data2 = param_values->data[0].v_pointer; -#line 7200 "MediaDataRepresentation.c" - } else { -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - data1 = param_values->data[0].v_pointer; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - data2 = closure->data; -#line 7206 "MediaDataRepresentation.c" - } -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - callback = (GMarshalFunc_VOID__OBJECT_OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback); -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), g_value_get_object (param_values + 3), data2); -#line 7212 "MediaDataRepresentation.c" -} - - -static void -media_source_collection_real_trashcan_contents_altered (MediaSourceCollection* self, - GeeCollection* added, - GeeCollection* removed) -{ -#line 370 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 370 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 7225 "MediaDataRepresentation.c" -} - - -static void -media_source_collection_real_import_roll_altered (MediaSourceCollection* self) -{ -} - - -static void -media_source_collection_real_offline_contents_altered (MediaSourceCollection* self, - GeeCollection* added, - GeeCollection* removed) -{ -#line 377 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 377 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 7244 "MediaDataRepresentation.c" -} - - -static void -media_source_collection_real_flagged_contents_altered (MediaSourceCollection* self) -{ -} - - -static void -media_source_collection_class_init (MediaSourceCollectionClass * klass) -{ -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_collection_parent_class = g_type_class_peek_parent (klass); -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((DataCollectionClass *) klass)->finalize = media_source_collection_finalize; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_type_class_add_private (klass, sizeof (MediaSourceCollectionPrivate)); -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->create_trashcan = (MediaSourceHoldingTank* (*) (MediaSourceCollection *)) media_source_collection_real_create_trashcan; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->create_offline_bin = (MediaSourceHoldingTank* (*) (MediaSourceCollection *)) media_source_collection_real_create_offline_bin; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->create_media_monitor = (MediaMonitor* (*) (MediaSourceCollection *, Workers*, GCancellable*)) media_source_collection_real_create_media_monitor; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->get_typename = (gchar* (*) (MediaSourceCollection *)) media_source_collection_real_get_typename; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->is_file_recognized = (gboolean (*) (MediaSourceCollection *, GFile*)) media_source_collection_real_is_file_recognized; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->fetch_by_numeric_id = (MediaSource* (*) (MediaSourceCollection *, gint64)) media_source_collection_real_fetch_by_numeric_id; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->notify_import_roll_altered = (void (*) (MediaSourceCollection *)) media_source_collection_real_notify_import_roll_altered; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->notify_flagged_contents_altered = (void (*) (MediaSourceCollection *)) media_source_collection_real_notify_flagged_contents_altered; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->notify_media_import_starting = (void (*) (MediaSourceCollection *, GeeCollection*)) media_source_collection_real_notify_media_import_starting; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->notify_media_import_completed = (void (*) (MediaSourceCollection *, GeeCollection*)) media_source_collection_real_notify_media_import_completed; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((DataCollectionClass *) klass)->items_altered = (void (*) (DataCollection *, GeeMap*)) media_source_collection_real_items_altered; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((DataCollectionClass *) klass)->notify_contents_altered = (void (*) (DataCollection *, GeeIterable*, GeeIterable*)) media_source_collection_real_notify_contents_altered; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->fetch_by_source_id = (MediaSource* (*) (MediaSourceCollection *, const gchar*)) media_source_collection_real_fetch_by_source_id; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->get_event_source_ids = (GeeCollection* (*) (MediaSourceCollection *, EventID*)) media_source_collection_real_get_event_source_ids; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->import_many = (void (*) (MediaSourceCollection *, GeeCollection*)) media_source_collection_real_import_many; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->postprocess_imported_media = (void (*) (MediaSourceCollection *, GeeCollection*)) media_source_collection_real_postprocess_imported_media; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->media_import_starting = media_source_collection_real_media_import_starting; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->media_import_completed = media_source_collection_real_media_import_completed; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->master_file_replaced = media_source_collection_real_master_file_replaced; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->trashcan_contents_altered = media_source_collection_real_trashcan_contents_altered; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->import_roll_altered = media_source_collection_real_import_roll_altered; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->offline_contents_altered = media_source_collection_real_offline_contents_altered; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaSourceCollectionClass *) klass)->flagged_contents_altered = media_source_collection_real_flagged_contents_altered; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_collection_signals[MEDIA_SOURCE_COLLECTION_MEDIA_IMPORT_STARTING_SIGNAL] = g_signal_new ("media-import-starting", TYPE_MEDIA_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceCollectionClass, media_import_starting), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION); -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_collection_signals[MEDIA_SOURCE_COLLECTION_MEDIA_IMPORT_COMPLETED_SIGNAL] = g_signal_new ("media-import-completed", TYPE_MEDIA_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceCollectionClass, media_import_completed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION); -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_collection_signals[MEDIA_SOURCE_COLLECTION_MASTER_FILE_REPLACED_SIGNAL] = g_signal_new ("master-file-replaced", TYPE_MEDIA_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceCollectionClass, master_file_replaced), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_OBJECT, G_TYPE_NONE, 3, TYPE_MEDIA_SOURCE, g_file_get_type (), g_file_get_type ()); -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_collection_signals[MEDIA_SOURCE_COLLECTION_TRASHCAN_CONTENTS_ALTERED_SIGNAL] = g_signal_new ("trashcan-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceCollectionClass, trashcan_contents_altered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, GEE_TYPE_COLLECTION, GEE_TYPE_COLLECTION); -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_collection_signals[MEDIA_SOURCE_COLLECTION_IMPORT_ROLL_ALTERED_SIGNAL] = g_signal_new ("import-roll-altered", TYPE_MEDIA_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceCollectionClass, import_roll_altered), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_collection_signals[MEDIA_SOURCE_COLLECTION_OFFLINE_CONTENTS_ALTERED_SIGNAL] = g_signal_new ("offline-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceCollectionClass, offline_contents_altered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, GEE_TYPE_COLLECTION, GEE_TYPE_COLLECTION); -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_source_collection_signals[MEDIA_SOURCE_COLLECTION_FLAGGED_CONTENTS_ALTERED_SIGNAL] = g_signal_new ("flagged-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MediaSourceCollectionClass, flagged_contents_altered), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 7323 "MediaDataRepresentation.c" -} - - -static void -media_source_collection_instance_init (MediaSourceCollection * self) -{ - GeeHashMap* _tmp0_; - GeeTreeMultiMap* _tmp1_; - GeeTreeSet* _tmp2_; - GeeHashSet* _tmp3_; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv = MEDIA_SOURCE_COLLECTION_GET_PRIVATE (self); -#line 346 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv->trashcan = NULL; -#line 347 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv->offline_bin = NULL; -#line 348 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); -#line 348 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv->by_master_file = _tmp0_; -#line 350 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = gee_tree_multi_map_new (TYPE_IMPORT_ID, (GBoxedCopyFunc) import_id_dup, (GDestroyNotify) import_id_free, TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _import_id_compare_func_gcompare_data_func, NULL, NULL, NULL, NULL, NULL); -#line 350 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv->import_rolls = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_MULTI_MAP, GeeMultiMap); -#line 352 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = gee_tree_set_new (TYPE_IMPORT_ID, (GBoxedCopyFunc) import_id_dup, (GDestroyNotify) import_id_free, _import_id_compare_func_gcompare_data_func, NULL, NULL); -#line 352 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv->sorted_import_ids = _tmp2_; -#line 353 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 353 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv->flagged = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_SET, GeeSet); -#line 7356 "MediaDataRepresentation.c" -} - - -static void -media_source_collection_finalize (DataCollection * obj) -{ - MediaSourceCollection * self; -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection); -#line 346 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_holding_tank_unref0 (self->priv->trashcan); -#line 347 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _source_holding_tank_unref0 (self->priv->offline_bin); -#line 348 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (self->priv->by_master_file); -#line 350 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (self->priv->import_rolls); -#line 352 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (self->priv->sorted_import_ids); -#line 353 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (self->priv->flagged); -#line 343 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - DATA_COLLECTION_CLASS (media_source_collection_parent_class)->finalize (obj); -#line 7380 "MediaDataRepresentation.c" -} - - -GType -media_source_collection_get_type (void) -{ - static volatile gsize media_source_collection_type_id__volatile = 0; - if (g_once_init_enter (&media_source_collection_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MediaSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaSourceCollection), 0, (GInstanceInitFunc) media_source_collection_instance_init, NULL }; - GType media_source_collection_type_id; - media_source_collection_type_id = g_type_register_static (TYPE_DATABASE_SOURCE_COLLECTION, "MediaSourceCollection", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&media_source_collection_type_id__volatile, media_source_collection_type_id); - } - return media_source_collection_type_id__volatile; -} - - -static void -_media_collection_registry_on_init_done_application_init_done (Application* _sender, - gpointer self) -{ -#line 767 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_collection_registry_on_init_done ((MediaCollectionRegistry*) self); -#line 7404 "MediaDataRepresentation.c" -} - - -static MediaCollectionRegistry* -media_collection_registry_construct (GType object_type) -{ - MediaCollectionRegistry* self = NULL; - Application* _tmp0_; - Application* _tmp1_; -#line 762 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = (MediaCollectionRegistry*) g_type_create_instance (object_type); -#line 763 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = application_get_instance (); -#line 763 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 763 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_connect (_tmp1_, "init-done", (GCallback) _media_collection_registry_on_init_done_application_init_done, self); -#line 763 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _application_unref0 (_tmp1_); -#line 762 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return self; -#line 7426 "MediaDataRepresentation.c" -} - - -static MediaCollectionRegistry* -media_collection_registry_new (void) -{ -#line 762 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return media_collection_registry_construct (TYPE_MEDIA_COLLECTION_REGISTRY); -#line 7435 "MediaDataRepresentation.c" -} - - -static void -media_collection_registry_on_init_done (MediaCollectionRegistry* self) -{ - LibraryMonitor* library_monitor = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - gboolean _tmp2_; - LibraryMonitor* _tmp3_; - LibraryMonitor* _tmp4_; - LibraryMonitorPool* _tmp5_; - LibraryMonitorPool* _tmp6_; -#line 770 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self)); -#line 772 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = app_dirs_get_import_dir (); -#line 772 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 772 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = commandline_options_no_runtime_monitoring; -#line 772 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = library_monitor_new (_tmp1_, TRUE, !_tmp2_); -#line 772 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = _tmp3_; -#line 772 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp1_); -#line 772 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - library_monitor = _tmp4_; -#line 775 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = library_monitor_pool_get_instance (); -#line 775 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = _tmp5_; -#line 775 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - library_monitor_pool_replace (_tmp6_, library_monitor, MEDIA_COLLECTION_REGISTRY_LIBRARY_MONITOR_START_DELAY_MSEC); -#line 775 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _library_monitor_pool_unref0 (_tmp6_); -#line 770 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (library_monitor); -#line 7476 "MediaDataRepresentation.c" -} - - -static void -_media_collection_registry_on_import_directory_changed_configuration_facade_import_directory_changed (ConfigurationFacade* _sender, - gpointer self) -{ -#line 780 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_collection_registry_on_import_directory_changed (); -#line 7486 "MediaDataRepresentation.c" -} - - -void -media_collection_registry_init (void) -{ - MediaCollectionRegistry* _tmp0_; - ConfigFacade* _tmp1_; - ConfigFacade* _tmp2_; -#line 779 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_collection_registry_new (); -#line 779 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _media_collection_registry_unref0 (media_collection_registry_instance); -#line 779 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_collection_registry_instance = _tmp0_; -#line 780 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = config_facade_get_instance (); -#line 780 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = _tmp1_; -#line 780 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "import-directory-changed", (GCallback) _media_collection_registry_on_import_directory_changed_configuration_facade_import_directory_changed, NULL); -#line 780 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp2_); -#line 7510 "MediaDataRepresentation.c" -} - - -void -media_collection_registry_terminate (void) -{ - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - guint _tmp2_; -#line 784 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = config_facade_get_instance (); -#line 784 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 784 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_parse_name ("import-directory-changed", TYPE_CONFIGURATION_FACADE, &_tmp2_, NULL, FALSE); -#line 784 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _media_collection_registry_on_import_directory_changed_configuration_facade_import_directory_changed, NULL); -#line 784 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp1_); -#line 7530 "MediaDataRepresentation.c" -} - - -static void -media_collection_registry_on_import_directory_changed (void) -{ - GFile* import_dir = NULL; - GFile* _tmp0_; - LibraryMonitor* current = NULL; - LibraryMonitorPool* _tmp1_; - LibraryMonitorPool* _tmp2_; - LibraryMonitor* _tmp3_; - LibraryMonitor* _tmp4_; - gboolean _tmp5_ = FALSE; - LibraryMonitor* _tmp6_; - LibraryMonitor* replacement = NULL; - GFile* _tmp11_; - gboolean _tmp12_; - LibraryMonitor* _tmp13_; - LibraryMonitorPool* _tmp14_; - LibraryMonitorPool* _tmp15_; - LibraryMonitor* _tmp16_; -#line 788 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = app_dirs_get_import_dir (); -#line 788 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - import_dir = _tmp0_; -#line 790 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = library_monitor_pool_get_instance (); -#line 790 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = _tmp1_; -#line 790 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = library_monitor_pool_get_monitor (_tmp2_); -#line 790 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = _tmp3_; -#line 790 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _library_monitor_pool_unref0 (_tmp2_); -#line 790 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - current = _tmp4_; -#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = current; -#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp6_ != NULL) { -#line 7573 "MediaDataRepresentation.c" - LibraryMonitor* _tmp7_; - GFile* _tmp8_; - GFile* _tmp9_; - GFile* _tmp10_; -#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = current; -#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp8_ = directory_monitor_get_root (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DIRECTORY_MONITOR, DirectoryMonitor)); -#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp9_ = _tmp8_; -#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp10_ = import_dir; -#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = g_file_equal (_tmp9_, _tmp10_); -#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp9_); -#line 7590 "MediaDataRepresentation.c" - } else { -#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = FALSE; -#line 7594 "MediaDataRepresentation.c" - } -#line 791 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp5_) { -#line 792 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (current); -#line 792 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (import_dir); -#line 792 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return; -#line 7604 "MediaDataRepresentation.c" - } -#line 794 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp11_ = import_dir; -#line 794 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp12_ = commandline_options_no_runtime_monitoring; -#line 794 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp13_ = library_monitor_new (_tmp11_, TRUE, !_tmp12_); -#line 794 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - replacement = _tmp13_; -#line 796 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp14_ = library_monitor_pool_get_instance (); -#line 796 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp15_ = _tmp14_; -#line 796 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp16_ = replacement; -#line 796 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - library_monitor_pool_replace (_tmp15_, _tmp16_, MEDIA_COLLECTION_REGISTRY_LIBRARY_MONITOR_START_DELAY_MSEC); -#line 796 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _library_monitor_pool_unref0 (_tmp15_); -#line 797 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - library_files_select_copy_function (); -#line 787 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (replacement); -#line 787 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (current); -#line 787 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (import_dir); -#line 7632 "MediaDataRepresentation.c" -} - - -static gpointer -_media_collection_registry_ref0 (gpointer self) -{ -#line 801 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return self ? media_collection_registry_ref (self) : NULL; -#line 7641 "MediaDataRepresentation.c" -} - - -MediaCollectionRegistry* -media_collection_registry_get_instance (void) -{ - MediaCollectionRegistry* result = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; -#line 801 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_collection_registry_instance; -#line 801 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _media_collection_registry_ref0 (_tmp0_); -#line 801 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp1_; -#line 801 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 7659 "MediaDataRepresentation.c" -} - - -gchar* -media_collection_registry_get_typename_from_source_id (const gchar* source_id) -{ - gchar* result = NULL; -#line 804 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (source_id != NULL, NULL); -#line 807 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (g_str_has_prefix (source_id, PHOTO_TYPENAME)) { -#line 7671 "MediaDataRepresentation.c" - gchar* _tmp0_; -#line 808 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = g_strdup (PHOTO_TYPENAME); -#line 808 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp0_; -#line 808 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 7679 "MediaDataRepresentation.c" - } else { - gchar** components = NULL; - gchar** _tmp1_; - gchar** _tmp2_; - gint components_length1; - gint _components_size_; - gchar** _tmp3_; - gint _tmp3__length1; - gchar** _tmp4_; - gint _tmp4__length1; - const gchar* _tmp5_; - gchar* _tmp6_; -#line 810 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = _tmp1_ = g_strsplit (source_id, "-", 0); -#line 810 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - components = _tmp2_; -#line 810 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - components_length1 = _vala_array_length (_tmp1_); -#line 810 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _components_size_ = components_length1; -#line 811 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = components; -#line 811 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3__length1 = components_length1; -#line 811 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _vala_assert (_tmp3__length1 == 2, "components.length == 2"); -#line 813 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = components; -#line 813 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4__length1 = components_length1; -#line 813 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = _tmp4_[0]; -#line 813 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 813 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp6_; -#line 813 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - components = (_vala_array_free (components, components_length1, (GDestroyNotify) g_free), NULL); -#line 813 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 7720 "MediaDataRepresentation.c" - } -} - - -void -media_collection_registry_register_collection (MediaCollectionRegistry* self, - MediaSourceCollection* collection) -{ - GeeArrayList* _tmp0_; - GeeHashMap* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 817 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self)); -#line 817 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_SOURCE_COLLECTION (collection)); -#line 818 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->priv->all; -#line 818 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), collection); -#line 819 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = self->priv->by_typename; -#line 819 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = media_source_collection_get_typename (collection); -#line 819 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = _tmp2_; -#line 819 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_, collection); -#line 819 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (_tmp3_); -#line 7751 "MediaDataRepresentation.c" -} - - -MediaSourceCollection* -media_collection_registry_get_collection (MediaCollectionRegistry* self, - const gchar* typename) -{ - MediaSourceCollection* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 826 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self), NULL); -#line 826 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (typename != NULL, NULL); -#line 827 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->priv->by_typename; -#line 827 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), typename); -#line 827 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = (MediaSourceCollection*) _tmp1_; -#line 827 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 7774 "MediaDataRepresentation.c" -} - - -GeeCollection* -media_collection_registry_get_all (MediaCollectionRegistry* self) -{ - GeeCollection* result = NULL; - GeeArrayList* _tmp0_; - GeeBidirList* _tmp1_; - GeeBidirList* _tmp2_; -#line 830 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self), NULL); -#line 831 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = self->priv->all; -#line 831 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = gee_abstract_bidir_list_get_read_only_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_BIDIR_LIST, GeeAbstractBidirList)); -#line 831 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = _tmp1_; -#line 831 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 831 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 7797 "MediaDataRepresentation.c" -} - - -void -media_collection_registry_freeze_all (MediaCollectionRegistry* self) -{ -#line 834 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self)); -#line 7806 "MediaDataRepresentation.c" - { - GeeIterator* _sources_it = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_collection_registry_get_all (self); -#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = _tmp2_; -#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp1_); -#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _sources_it = _tmp3_; -#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 7827 "MediaDataRepresentation.c" - GeeIterator* _tmp4_; - MediaSourceCollection* sources = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - MediaSourceCollection* _tmp7_; -#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = _sources_it; -#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 7839 "MediaDataRepresentation.c" - } -#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = _sources_it; -#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - sources = (MediaSourceCollection*) _tmp6_; -#line 836 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = sources; -#line 836 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection)); -#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _data_collection_unref0 (sources); -#line 7853 "MediaDataRepresentation.c" - } -#line 835 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_sources_it); -#line 7857 "MediaDataRepresentation.c" - } -} - - -void -media_collection_registry_thaw_all (MediaCollectionRegistry* self) -{ -#line 839 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self)); -#line 7867 "MediaDataRepresentation.c" - { - GeeIterator* _sources_it = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_collection_registry_get_all (self); -#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = _tmp2_; -#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp1_); -#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _sources_it = _tmp3_; -#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 7888 "MediaDataRepresentation.c" - GeeIterator* _tmp4_; - MediaSourceCollection* sources = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - MediaSourceCollection* _tmp7_; -#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = _sources_it; -#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 7900 "MediaDataRepresentation.c" - } -#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = _sources_it; -#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - sources = (MediaSourceCollection*) _tmp6_; -#line 841 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = sources; -#line 841 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection)); -#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _data_collection_unref0 (sources); -#line 7914 "MediaDataRepresentation.c" - } -#line 840 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_sources_it); -#line 7918 "MediaDataRepresentation.c" - } -} - - -void -media_collection_registry_begin_transaction_on_all (MediaCollectionRegistry* self) -{ -#line 844 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self)); -#line 7928 "MediaDataRepresentation.c" - { - GeeIterator* _sources_it = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_collection_registry_get_all (self); -#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = _tmp2_; -#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp1_); -#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _sources_it = _tmp3_; -#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 7949 "MediaDataRepresentation.c" - GeeIterator* _tmp4_; - MediaSourceCollection* sources = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - MediaSourceCollection* _tmp7_; - TransactionController* _tmp8_; - TransactionController* _tmp9_; -#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = _sources_it; -#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 7963 "MediaDataRepresentation.c" - } -#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = _sources_it; -#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - sources = (MediaSourceCollection*) _tmp6_; -#line 846 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = sources; -#line 846 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp8_ = media_source_collection_get_transaction_controller (_tmp7_); -#line 846 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp9_ = _tmp8_; -#line 846 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - transaction_controller_begin (_tmp9_); -#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _data_collection_unref0 (sources); -#line 7981 "MediaDataRepresentation.c" - } -#line 845 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_sources_it); -#line 7985 "MediaDataRepresentation.c" - } -} - - -void -media_collection_registry_commit_transaction_on_all (MediaCollectionRegistry* self) -{ -#line 849 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self)); -#line 7995 "MediaDataRepresentation.c" - { - GeeIterator* _sources_it = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_collection_registry_get_all (self); -#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = _tmp2_; -#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp1_); -#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _sources_it = _tmp3_; -#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 8016 "MediaDataRepresentation.c" - GeeIterator* _tmp4_; - MediaSourceCollection* sources = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - MediaSourceCollection* _tmp7_; - TransactionController* _tmp8_; - TransactionController* _tmp9_; -#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = _sources_it; -#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 8030 "MediaDataRepresentation.c" - } -#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = _sources_it; -#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - sources = (MediaSourceCollection*) _tmp6_; -#line 851 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = sources; -#line 851 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp8_ = media_source_collection_get_transaction_controller (_tmp7_); -#line 851 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp9_ = _tmp8_; -#line 851 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - transaction_controller_commit (_tmp9_); -#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _data_collection_unref0 (sources); -#line 8048 "MediaDataRepresentation.c" - } -#line 850 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_sources_it); -#line 8052 "MediaDataRepresentation.c" - } -} - - -MediaSource* -media_collection_registry_fetch_media (MediaCollectionRegistry* self, - const gchar* source_id) -{ - MediaSource* result = NULL; - gchar* typename = NULL; - gchar* _tmp0_; - MediaSourceCollection* collection = NULL; - const gchar* _tmp1_; - MediaSourceCollection* _tmp2_; - MediaSourceCollection* _tmp3_; - MediaSourceCollection* _tmp5_; - MediaSource* _tmp6_; -#line 854 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self), NULL); -#line 854 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (source_id != NULL, NULL); -#line 855 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_collection_registry_get_typename_from_source_id (source_id); -#line 855 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - typename = _tmp0_; -#line 857 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = typename; -#line 857 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = media_collection_registry_get_collection (self, _tmp1_); -#line 857 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - collection = _tmp2_; -#line 858 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = collection; -#line 858 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp3_ == NULL) { -#line 8088 "MediaDataRepresentation.c" - const gchar* _tmp4_; -#line 859 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = typename; -#line 859 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_critical ("MediaDataRepresentation.vala:859: source id '%s' has unrecognized medi" \ -"a type '%s'", source_id, _tmp4_); -#line 860 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = NULL; -#line 860 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _data_collection_unref0 (collection); -#line 860 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (typename); -#line 860 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 8102 "MediaDataRepresentation.c" - } -#line 863 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = collection; -#line 863 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = media_source_collection_fetch_by_source_id (_tmp5_, source_id); -#line 863 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp6_; -#line 863 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _data_collection_unref0 (collection); -#line 863 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_free0 (typename); -#line 863 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 8116 "MediaDataRepresentation.c" -} - - -static gpointer -_import_id_dup0 (gpointer self) -{ -#line 884 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return self ? import_id_dup (self) : NULL; -#line 8125 "MediaDataRepresentation.c" -} - - -ImportID* -media_collection_registry_get_last_import_id (MediaCollectionRegistry* self) -{ - ImportID* result = NULL; - ImportID last_import_id = {0}; - ImportID _tmp15_; - gint64 _tmp16_; -#line 866 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self), NULL); -#line 867 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - import_id_init (&last_import_id, IMPORT_ID_INVALID); -#line 8140 "MediaDataRepresentation.c" - { - GeeIterator* _current_collection_it = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_collection_registry_get_all (self); -#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = _tmp2_; -#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp1_); -#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _current_collection_it = _tmp3_; -#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 8161 "MediaDataRepresentation.c" - GeeIterator* _tmp4_; - MediaSourceCollection* current_collection = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - ImportID* current_import_id = NULL; - MediaSourceCollection* _tmp7_; - ImportID* _tmp8_; - ImportID* _tmp9_; - ImportID* _tmp10_; - gint64 _tmp11_; - ImportID _tmp12_; - gint64 _tmp13_; -#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = _current_collection_it; -#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 8180 "MediaDataRepresentation.c" - } -#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = _current_collection_it; -#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - current_collection = (MediaSourceCollection*) _tmp6_; -#line 870 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = current_collection; -#line 870 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp8_ = media_source_collection_get_last_import_id (_tmp7_); -#line 870 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - current_import_id = _tmp8_; -#line 872 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp9_ = current_import_id; -#line 872 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp9_ == NULL) { -#line 873 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _import_id_free0 (current_import_id); -#line 873 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _data_collection_unref0 (current_collection); -#line 873 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - continue; -#line 8204 "MediaDataRepresentation.c" - } -#line 875 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp10_ = current_import_id; -#line 875 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp11_ = (*_tmp10_).id; -#line 875 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp12_ = last_import_id; -#line 875 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp13_ = _tmp12_.id; -#line 875 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp11_ > _tmp13_) { -#line 8216 "MediaDataRepresentation.c" - ImportID* _tmp14_; -#line 876 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp14_ = current_import_id; -#line 876 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - last_import_id = *_tmp14_; -#line 8222 "MediaDataRepresentation.c" - } -#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _import_id_free0 (current_import_id); -#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _data_collection_unref0 (current_collection); -#line 8228 "MediaDataRepresentation.c" - } -#line 869 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_current_collection_it); -#line 8232 "MediaDataRepresentation.c" - } -#line 881 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp15_ = last_import_id; -#line 881 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp16_ = _tmp15_.id; -#line 881 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (_tmp16_ == IMPORT_ID_INVALID) { -#line 882 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = NULL; -#line 882 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 8244 "MediaDataRepresentation.c" - } else { - ImportID* _tmp17_; -#line 884 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp17_ = _import_id_dup0 (&last_import_id); -#line 884 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp17_; -#line 884 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 8253 "MediaDataRepresentation.c" - } -} - - -GeeCollection* -media_collection_registry_get_source_ids_for_event_id (MediaCollectionRegistry* self, - EventID* event_id) -{ - GeeCollection* result = NULL; - GeeArrayList* _result_ = NULL; - GeeArrayList* _tmp0_; -#line 887 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self), NULL); -#line 887 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (event_id != NULL, NULL); -#line 888 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 888 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _result_ = _tmp0_; -#line 8273 "MediaDataRepresentation.c" - { - GeeIterator* _current_collection_it = NULL; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = media_collection_registry_get_all (self); -#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = _tmp1_; -#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = _tmp3_; -#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp2_); -#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _current_collection_it = _tmp4_; -#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 8294 "MediaDataRepresentation.c" - GeeIterator* _tmp5_; - MediaSourceCollection* current_collection = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - GeeArrayList* _tmp8_; - MediaSourceCollection* _tmp9_; - EventID _tmp10_; - GeeCollection* _tmp11_; - GeeCollection* _tmp12_; -#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = _current_collection_it; -#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 8310 "MediaDataRepresentation.c" - } -#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = _current_collection_it; -#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - current_collection = (MediaSourceCollection*) _tmp7_; -#line 891 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp8_ = _result_; -#line 891 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp9_ = current_collection; -#line 891 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp10_ = *event_id; -#line 891 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp11_ = media_source_collection_get_event_source_ids (_tmp9_, &_tmp10_); -#line 891 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp12_ = _tmp11_; -#line 891 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - gee_array_list_add_all (_tmp8_, _tmp12_); -#line 891 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp12_); -#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _data_collection_unref0 (current_collection); -#line 8334 "MediaDataRepresentation.c" - } -#line 890 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_current_collection_it); -#line 8338 "MediaDataRepresentation.c" - } -#line 894 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_result_, GEE_TYPE_COLLECTION, GeeCollection); -#line 894 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 8344 "MediaDataRepresentation.c" -} - - -MediaSourceCollection* -media_collection_registry_get_collection_for_file (MediaCollectionRegistry* self, - GFile* file) -{ - MediaSourceCollection* result = NULL; -#line 897 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self), NULL); -#line 897 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 8357 "MediaDataRepresentation.c" - { - GeeIterator* _collection_it = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = media_collection_registry_get_all (self); -#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp3_ = _tmp2_; -#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_tmp1_); -#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _collection_it = _tmp3_; -#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - while (TRUE) { -#line 8378 "MediaDataRepresentation.c" - GeeIterator* _tmp4_; - MediaSourceCollection* collection = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - MediaSourceCollection* _tmp7_; -#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp4_ = _collection_it; -#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - break; -#line 8390 "MediaDataRepresentation.c" - } -#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp5_ = _collection_it; -#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - collection = (MediaSourceCollection*) _tmp6_; -#line 899 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp7_ = collection; -#line 899 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (media_source_collection_is_file_recognized (_tmp7_, file)) { -#line 900 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = collection; -#line 900 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_collection_it); -#line 900 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 8408 "MediaDataRepresentation.c" - } -#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _data_collection_unref0 (collection); -#line 8412 "MediaDataRepresentation.c" - } -#line 898 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (_collection_it); -#line 8416 "MediaDataRepresentation.c" - } -#line 903 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = NULL; -#line 903 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 8422 "MediaDataRepresentation.c" -} - - -gboolean -media_collection_registry_is_valid_source_id (MediaCollectionRegistry* self, - const gchar* source_id) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; -#line 906 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (IS_MEDIA_COLLECTION_REGISTRY (self), FALSE); -#line 907 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (is_string_empty (source_id)) { -#line 908 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = FALSE; -#line 908 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 8440 "MediaDataRepresentation.c" - } -#line 910 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (g_str_has_prefix (source_id, PHOTO_TYPENAME)) { -#line 910 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = TRUE; -#line 8446 "MediaDataRepresentation.c" - } else { -#line 910 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = g_str_has_prefix (source_id, VIDEO_TYPENAME "-"); -#line 8450 "MediaDataRepresentation.c" - } -#line 910 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - result = _tmp0_; -#line 910 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return result; -#line 8456 "MediaDataRepresentation.c" -} - - -static void -value_media_collection_registry_init (GValue* value) -{ -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - value->data[0].v_pointer = NULL; -#line 8465 "MediaDataRepresentation.c" -} - - -static void -value_media_collection_registry_free_value (GValue* value) -{ -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (value->data[0].v_pointer) { -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_collection_registry_unref (value->data[0].v_pointer); -#line 8476 "MediaDataRepresentation.c" - } -} - - -static void -value_media_collection_registry_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (src_value->data[0].v_pointer) { -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - dest_value->data[0].v_pointer = media_collection_registry_ref (src_value->data[0].v_pointer); -#line 8489 "MediaDataRepresentation.c" - } else { -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - dest_value->data[0].v_pointer = NULL; -#line 8493 "MediaDataRepresentation.c" - } -} - - -static gpointer -value_media_collection_registry_peek_pointer (const GValue* value) -{ -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return value->data[0].v_pointer; -#line 8503 "MediaDataRepresentation.c" -} - - -static gchar* -value_media_collection_registry_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (collect_values[0].v_pointer) { -#line 8515 "MediaDataRepresentation.c" - MediaCollectionRegistry * object; - object = collect_values[0].v_pointer; -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (object->parent_instance.g_class == NULL) { -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 8522 "MediaDataRepresentation.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 8526 "MediaDataRepresentation.c" - } -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - value->data[0].v_pointer = media_collection_registry_ref (object); -#line 8530 "MediaDataRepresentation.c" - } else { -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - value->data[0].v_pointer = NULL; -#line 8534 "MediaDataRepresentation.c" - } -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return NULL; -#line 8538 "MediaDataRepresentation.c" -} - - -static gchar* -value_media_collection_registry_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - MediaCollectionRegistry ** object_p; - object_p = collect_values[0].v_pointer; -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!object_p) { -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 8554 "MediaDataRepresentation.c" - } -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (!value->data[0].v_pointer) { -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - *object_p = NULL; -#line 8560 "MediaDataRepresentation.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - *object_p = value->data[0].v_pointer; -#line 8564 "MediaDataRepresentation.c" - } else { -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - *object_p = media_collection_registry_ref (value->data[0].v_pointer); -#line 8568 "MediaDataRepresentation.c" - } -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return NULL; -#line 8572 "MediaDataRepresentation.c" -} - - -GParamSpec* -param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecMediaCollectionRegistry* spec; -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_MEDIA_COLLECTION_REGISTRY), NULL); -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return G_PARAM_SPEC (spec); -#line 8592 "MediaDataRepresentation.c" -} - - -gpointer -value_get_media_collection_registry (const GValue* value) -{ -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MEDIA_COLLECTION_REGISTRY), NULL); -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return value->data[0].v_pointer; -#line 8603 "MediaDataRepresentation.c" -} - - -void -value_set_media_collection_registry (GValue* value, - gpointer v_object) -{ - MediaCollectionRegistry * old; -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MEDIA_COLLECTION_REGISTRY)); -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - old = value->data[0].v_pointer; -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (v_object) { -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MEDIA_COLLECTION_REGISTRY)); -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - value->data[0].v_pointer = v_object; -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_collection_registry_ref (value->data[0].v_pointer); -#line 8626 "MediaDataRepresentation.c" - } else { -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - value->data[0].v_pointer = NULL; -#line 8630 "MediaDataRepresentation.c" - } -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (old) { -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_collection_registry_unref (old); -#line 8636 "MediaDataRepresentation.c" - } -} - - -void -value_take_media_collection_registry (GValue* value, - gpointer v_object) -{ - MediaCollectionRegistry * old; -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MEDIA_COLLECTION_REGISTRY)); -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - old = value->data[0].v_pointer; -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (v_object) { -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MEDIA_COLLECTION_REGISTRY)); -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - value->data[0].v_pointer = v_object; -#line 8658 "MediaDataRepresentation.c" - } else { -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - value->data[0].v_pointer = NULL; -#line 8662 "MediaDataRepresentation.c" - } -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (old) { -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_collection_registry_unref (old); -#line 8668 "MediaDataRepresentation.c" - } -} - - -static void -media_collection_registry_class_init (MediaCollectionRegistryClass * klass) -{ -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - media_collection_registry_parent_class = g_type_class_peek_parent (klass); -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - ((MediaCollectionRegistryClass *) klass)->finalize = media_collection_registry_finalize; -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_type_class_add_private (klass, sizeof (MediaCollectionRegistryPrivate)); -#line 8682 "MediaDataRepresentation.c" -} - - -static void -media_collection_registry_instance_init (MediaCollectionRegistry * self) -{ - GeeArrayList* _tmp0_; - GeeHashMap* _tmp1_; -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv = MEDIA_COLLECTION_REGISTRY_GET_PRIVATE (self); -#line 758 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE_COLLECTION, (GBoxedCopyFunc) data_collection_ref, (GDestroyNotify) data_collection_unref, NULL, NULL, NULL); -#line 758 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv->all = _tmp0_; -#line 759 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_MEDIA_SOURCE_COLLECTION, (GBoxedCopyFunc) data_collection_ref, (GDestroyNotify) data_collection_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 759 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->priv->by_typename = _tmp1_; -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self->ref_count = 1; -#line 8703 "MediaDataRepresentation.c" -} - - -static void -media_collection_registry_finalize (MediaCollectionRegistry * obj) -{ - MediaCollectionRegistry * self; - Application* _tmp0_; - Application* _tmp1_; - guint _tmp2_; -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry); -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_handlers_destroy (self); -#line 767 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp0_ = application_get_instance (); -#line 767 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _tmp1_ = _tmp0_; -#line 767 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_parse_name ("init-done", TYPE_APPLICATION, &_tmp2_, NULL, FALSE); -#line 767 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _media_collection_registry_on_init_done_application_init_done, self); -#line 767 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _application_unref0 (_tmp1_); -#line 758 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (self->priv->all); -#line 759 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - _g_object_unref0 (self->priv->by_typename); -#line 8732 "MediaDataRepresentation.c" -} - - -GType -media_collection_registry_get_type (void) -{ - static volatile gsize media_collection_registry_type_id__volatile = 0; - if (g_once_init_enter (&media_collection_registry_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_media_collection_registry_init, value_media_collection_registry_free_value, value_media_collection_registry_copy_value, value_media_collection_registry_peek_pointer, "p", value_media_collection_registry_collect_value, "p", value_media_collection_registry_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (MediaCollectionRegistryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_collection_registry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaCollectionRegistry), 0, (GInstanceInitFunc) media_collection_registry_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType media_collection_registry_type_id; - media_collection_registry_type_id = g_type_register_fundamental (g_type_fundamental_next (), "MediaCollectionRegistry", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&media_collection_registry_type_id__volatile, media_collection_registry_type_id); - } - return media_collection_registry_type_id__volatile; -} - - -gpointer -media_collection_registry_ref (gpointer instance) -{ - MediaCollectionRegistry * self; - self = instance; -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_atomic_int_inc (&self->ref_count); -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - return instance; -#line 8761 "MediaDataRepresentation.c" -} - - -void -media_collection_registry_unref (gpointer instance) -{ - MediaCollectionRegistry * self; - self = instance; -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - MEDIA_COLLECTION_REGISTRY_GET_CLASS (self)->finalize (self); -#line 753 "/home/jens/Source/shotwell/src/MediaDataRepresentation.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 8776 "MediaDataRepresentation.c" - } -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/src/MediaInterfaces.c b/src/MediaInterfaces.c deleted file mode 100644 index 1d4d597..0000000 --- a/src/MediaInterfaces.c +++ /dev/null @@ -1,1488 +0,0 @@ -/* MediaInterfaces.c generated by valac 0.40.4, the Vala compiler - * generated from MediaInterfaces.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/**/ -/* Going forward, Shotwell will use MediaInterfaces, which allow for various operations and features*/ -/* to be added only to the MediaSources that support them (or make sense for). For example, adding*/ -/* a library-mode photo or video to an Event makes perfect sense, but does not make sense for a*/ -/* direct-mode photo. All three are MediaSources, and to make DirectPhoto descend from another*/ -/* base class is only inviting chaos and a tremendous amount of replicated code.*/ -/**/ -/* A key point to make of all MediaInterfaces is that they require MediaSource as a base class.*/ -/* Thus, any code dealing with one of these interfaces knows they are also dealing with a*/ -/* MediaSource.*/ -/**/ -/* TODO: Make Eventable and Taggable interfaces, which are the only types Event and Tag will deal*/ -/* with (rather than MediaSources).*/ -/**/ -/* TODO: Make Trashable interface, which are much like Flaggable.*/ -/**/ -/* TODO: ContainerSources may also have specific needs in the future; an interface-based system*/ -/* may make sense as well when that need arises.*/ -/**/ -/**/ -/* TransactionController*/ -/**/ -/* Because many operations in Shotwell need to be performed on collections of objects all at once,*/ -/* and that most of these objects are backed by a database, the TransactionController object gives */ -/* a way to generically group a series of operations on one or more similar objects into a single*/ -/* transaction. This class is listed here because it's used by the various media interfaces to offer*/ -/* multiple operations.*/ -/**/ -/* begin() and commit() may be called multiple times in layering fashion. The implementation*/ -/* accounts for this. If either throws an exception it should be assumed that the object is in*/ -/* a "clean" state; that is, if begin() throws an exception, there is no need to call commit(),*/ -/* and if commit() throws an exception, it does not need to be called again to revert the object*/ -/* state.*/ -/**/ -/* This means that any user who calls begin() *must* match it with a corresponding commit(), even*/ -/* if there is an error during the transaction. It is up to the user to back out any undesired*/ -/* changes.*/ -/**/ -/* Because of the nature of this object, it's assumed that every object type will share one*/ -/* between all callers.*/ -/**/ -/* The object is thread-safe. There is no guarantee that the underlying persistent store is,*/ -/* however.*/ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ()) -#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController)) -#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) -#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER)) -#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER)) -#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) - -typedef struct _TransactionController TransactionController; -typedef struct _TransactionControllerClass TransactionControllerClass; -typedef struct _TransactionControllerPrivate TransactionControllerPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -typedef struct _ParamSpecTransactionController ParamSpecTransactionController; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_FLAGGABLE (flaggable_get_type ()) -#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable)) -#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE)) -#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface)) - -typedef struct _Flaggable Flaggable; -typedef struct _FlaggableIface FlaggableIface; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_MONITORABLE (monitorable_get_type ()) -#define MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE, Monitorable)) -#define IS_MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE)) -#define MONITORABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MONITORABLE, MonitorableIface)) - -typedef struct _Monitorable Monitorable; -typedef struct _MonitorableIface MonitorableIface; - -#define TYPE_DATEABLE (dateable_get_type ()) -#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable)) -#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE)) -#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface)) - -typedef struct _Dateable Dateable; -typedef struct _DateableIface DateableIface; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _TransactionController { - GTypeInstance parent_instance; - volatile int ref_count; - TransactionControllerPrivate * priv; -}; - -struct _TransactionControllerClass { - GTypeClass parent_class; - void (*finalize) (TransactionController *self); - void (*begin_impl) (TransactionController* self, GError** error); - void (*commit_impl) (TransactionController* self, GError** error); -}; - -struct _TransactionControllerPrivate { - gint count; - GRecMutex __lock_count; -}; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -struct _ParamSpecTransactionController { - GParamSpec parent_instance; -}; - -struct _FlaggableIface { - GTypeInterface parent_iface; - gboolean (*is_flagged) (Flaggable* self); - void (*mark_flagged) (Flaggable* self); - void (*mark_unflagged) (Flaggable* self); -}; - -struct _MonitorableIface { - GTypeInterface parent_iface; - gboolean (*is_offline) (Monitorable* self); - void (*mark_online) (Monitorable* self); - void (*mark_offline) (Monitorable* self); - void (*set_master_file) (Monitorable* self, GFile* file); - void (*set_master_timestamp) (Monitorable* self, GFileInfo* info); -}; - -struct _DateableIface { - GTypeInterface parent_iface; - void (*set_exposure_time) (Dateable* self, time_t target_time); - time_t (*get_exposure_time) (Dateable* self); -}; - - -static gpointer transaction_controller_parent_class = NULL; - -gpointer transaction_controller_ref (gpointer instance); -void transaction_controller_unref (gpointer instance); -GParamSpec* param_spec_transaction_controller (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_transaction_controller (GValue* value, - gpointer v_object); -void value_take_transaction_controller (GValue* value, - gpointer v_object); -gpointer value_get_transaction_controller (const GValue* value); -GType transaction_controller_get_type (void) G_GNUC_CONST; -#define TRANSACTION_CONTROLLER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TRANSACTION_CONTROLLER, TransactionControllerPrivate)) -TransactionController* transaction_controller_construct (GType object_type); -void transaction_controller_begin (TransactionController* self); -void transaction_controller_begin_impl (TransactionController* self, - GError** error); -GQuark database_error_quark (void); -void app_window_database_error (GError* err); -void app_window_panic (const gchar* msg); -static void transaction_controller_real_begin_impl (TransactionController* self, - GError** error); -void transaction_controller_commit (TransactionController* self); -void transaction_controller_commit_impl (TransactionController* self, - GError** error); -static void transaction_controller_real_commit_impl (TransactionController* self, - GError** error); -static void transaction_controller_finalize (TransactionController * obj); -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType flaggable_get_type (void) G_GNUC_CONST; -gboolean flaggable_is_flagged (Flaggable* self); -void flaggable_mark_flagged (Flaggable* self); -void flaggable_mark_unflagged (Flaggable* self); -void flaggable_mark_many_flagged_unflagged (GeeCollection* flag, - GeeCollection* unflag, - TransactionController* controller, - GError** error); -GType monitorable_get_type (void) G_GNUC_CONST; -gboolean monitorable_is_offline (Monitorable* self); -void monitorable_mark_online (Monitorable* self); -void monitorable_mark_offline (Monitorable* self); -void monitorable_mark_many_online_offline (GeeCollection* online, - GeeCollection* offline, - TransactionController* controller, - GError** error); -void monitorable_set_master_file (Monitorable* self, - GFile* file); -void monitorable_set_many_master_file (GeeMap* map, - TransactionController* controller, - GError** error); -void monitorable_set_master_timestamp (Monitorable* self, - GFileInfo* info); -void monitorable_set_many_master_timestamp (GeeMap* map, - TransactionController* controller, - GError** error); -GType dateable_get_type (void) G_GNUC_CONST; -void dateable_set_exposure_time (Dateable* self, - time_t target_time); -time_t dateable_get_exposure_time (Dateable* self); - - -TransactionController* -transaction_controller_construct (GType object_type) -{ - TransactionController* self = NULL; -#line 54 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - self = (TransactionController*) g_type_create_instance (object_type); -#line 54 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return self; -#line 277 "MediaInterfaces.c" -} - - -void -transaction_controller_begin (TransactionController* self) -{ - GError * _inner_error_ = NULL; -#line 63 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (IS_TRANSACTION_CONTROLLER (self)); -#line 287 "MediaInterfaces.c" - { - gint _tmp0_; -#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp0_ = self->priv->count; -#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_rec_mutex_lock (&self->priv->__lock_count); -#line 294 "MediaInterfaces.c" - { - gint _tmp1_; -#line 65 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp1_ = self->priv->count; -#line 65 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - self->priv->count = _tmp1_ + 1; -#line 65 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (_tmp1_ != 0) { -#line 303 "MediaInterfaces.c" - { - gint _tmp2_; -#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp2_ = self->priv->count; -#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_rec_mutex_unlock (&self->priv->__lock_count); -#line 310 "MediaInterfaces.c" - } -#line 66 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return; -#line 314 "MediaInterfaces.c" - } - { -#line 69 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - transaction_controller_begin_impl (self, &_inner_error_); -#line 69 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 321 "MediaInterfaces.c" - goto __catch583_g_error; - } - } - goto __finally583; - __catch583_g_error: - { - GError* err = NULL; - gint _tmp3_; - GError* _tmp4_; -#line 68 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - err = _inner_error_; -#line 68 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _inner_error_ = NULL; -#line 72 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp3_ = self->priv->count; -#line 72 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - self->priv->count = _tmp3_ - 1; -#line 74 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp4_ = err; -#line 74 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (_tmp4_->domain == DATABASE_ERROR) { -#line 343 "MediaInterfaces.c" - GError* _tmp5_; -#line 75 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp5_ = err; -#line 75 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - app_window_database_error ((GError*) _tmp5_); -#line 349 "MediaInterfaces.c" - } else { - GError* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 77 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp6_ = err; -#line 77 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp7_ = _tmp6_->message; -#line 77 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp8_ = g_strdup_printf ("%s", _tmp7_); -#line 77 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp9_ = _tmp8_; -#line 77 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - app_window_panic (_tmp9_); -#line 77 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_free0 (_tmp9_); -#line 367 "MediaInterfaces.c" - } -#line 68 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_error_free0 (err); -#line 371 "MediaInterfaces.c" - } - __finally583: -#line 68 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 376 "MediaInterfaces.c" - { - gint _tmp10_; -#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp10_ = self->priv->count; -#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_rec_mutex_unlock (&self->priv->__lock_count); -#line 383 "MediaInterfaces.c" - } -#line 68 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 68 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_clear_error (&_inner_error_); -#line 68 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return; -#line 391 "MediaInterfaces.c" - } - } - __finally582: - { - gint _tmp11_; -#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp11_ = self->priv->count; -#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_rec_mutex_unlock (&self->priv->__lock_count); -#line 401 "MediaInterfaces.c" - } -#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_clear_error (&_inner_error_); -#line 64 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return; -#line 411 "MediaInterfaces.c" - } - } -} - - -static void -transaction_controller_real_begin_impl (TransactionController* self, - GError** error) -{ -#line 83 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_critical ("Type `%s' does not implement abstract method `transaction_controller_begin_impl'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 83 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return; -#line 425 "MediaInterfaces.c" -} - - -void -transaction_controller_begin_impl (TransactionController* self, - GError** error) -{ -#line 83 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (IS_TRANSACTION_CONTROLLER (self)); -#line 83 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - TRANSACTION_CONTROLLER_GET_CLASS (self)->begin_impl (self, error); -#line 437 "MediaInterfaces.c" -} - - -void -transaction_controller_commit (TransactionController* self) -{ - GError * _inner_error_ = NULL; -#line 85 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (IS_TRANSACTION_CONTROLLER (self)); -#line 447 "MediaInterfaces.c" - { - gint _tmp0_; -#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp0_ = self->priv->count; -#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_rec_mutex_lock (&self->priv->__lock_count); -#line 454 "MediaInterfaces.c" - { - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; -#line 87 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp1_ = self->priv->count; -#line 87 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _vala_assert (_tmp1_ > 0, "count > 0"); -#line 88 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp2_ = self->priv->count; -#line 88 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - self->priv->count = _tmp2_ - 1; -#line 88 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp3_ = self->priv->count; -#line 88 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (_tmp3_ != 0) { -#line 471 "MediaInterfaces.c" - { - gint _tmp4_; -#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp4_ = self->priv->count; -#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_rec_mutex_unlock (&self->priv->__lock_count); -#line 478 "MediaInterfaces.c" - } -#line 89 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return; -#line 482 "MediaInterfaces.c" - } - { -#line 93 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - transaction_controller_commit_impl (self, &_inner_error_); -#line 93 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 489 "MediaInterfaces.c" - goto __catch585_g_error; - } - } - goto __finally585; - __catch585_g_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 92 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - err = _inner_error_; -#line 92 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _inner_error_ = NULL; -#line 95 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp5_ = err; -#line 95 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (_tmp5_->domain == DATABASE_ERROR) { -#line 506 "MediaInterfaces.c" - GError* _tmp6_; -#line 96 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp6_ = err; -#line 96 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - app_window_database_error ((GError*) _tmp6_); -#line 512 "MediaInterfaces.c" - } else { - GError* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 98 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp7_ = err; -#line 98 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp8_ = _tmp7_->message; -#line 98 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp9_ = g_strdup_printf ("%s", _tmp8_); -#line 98 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp10_ = _tmp9_; -#line 98 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - app_window_panic (_tmp10_); -#line 98 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_free0 (_tmp10_); -#line 530 "MediaInterfaces.c" - } -#line 92 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_error_free0 (err); -#line 534 "MediaInterfaces.c" - } - __finally585: -#line 92 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 539 "MediaInterfaces.c" - { - gint _tmp11_; -#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp11_ = self->priv->count; -#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_rec_mutex_unlock (&self->priv->__lock_count); -#line 546 "MediaInterfaces.c" - } -#line 92 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 92 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_clear_error (&_inner_error_); -#line 92 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return; -#line 554 "MediaInterfaces.c" - } - } - __finally584: - { - gint _tmp12_; -#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp12_ = self->priv->count; -#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_rec_mutex_unlock (&self->priv->__lock_count); -#line 564 "MediaInterfaces.c" - } -#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_clear_error (&_inner_error_); -#line 86 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return; -#line 574 "MediaInterfaces.c" - } - } -} - - -static void -transaction_controller_real_commit_impl (TransactionController* self, - GError** error) -{ -#line 104 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_critical ("Type `%s' does not implement abstract method `transaction_controller_commit_impl'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 104 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return; -#line 588 "MediaInterfaces.c" -} - - -void -transaction_controller_commit_impl (TransactionController* self, - GError** error) -{ -#line 104 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (IS_TRANSACTION_CONTROLLER (self)); -#line 104 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - TRANSACTION_CONTROLLER_GET_CLASS (self)->commit_impl (self, error); -#line 600 "MediaInterfaces.c" -} - - -static void -value_transaction_controller_init (GValue* value) -{ -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - value->data[0].v_pointer = NULL; -#line 609 "MediaInterfaces.c" -} - - -static void -value_transaction_controller_free_value (GValue* value) -{ -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (value->data[0].v_pointer) { -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - transaction_controller_unref (value->data[0].v_pointer); -#line 620 "MediaInterfaces.c" - } -} - - -static void -value_transaction_controller_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (src_value->data[0].v_pointer) { -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - dest_value->data[0].v_pointer = transaction_controller_ref (src_value->data[0].v_pointer); -#line 633 "MediaInterfaces.c" - } else { -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - dest_value->data[0].v_pointer = NULL; -#line 637 "MediaInterfaces.c" - } -} - - -static gpointer -value_transaction_controller_peek_pointer (const GValue* value) -{ -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return value->data[0].v_pointer; -#line 647 "MediaInterfaces.c" -} - - -static gchar* -value_transaction_controller_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (collect_values[0].v_pointer) { -#line 659 "MediaInterfaces.c" - TransactionController * object; - object = collect_values[0].v_pointer; -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (object->parent_instance.g_class == NULL) { -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 666 "MediaInterfaces.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 670 "MediaInterfaces.c" - } -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - value->data[0].v_pointer = transaction_controller_ref (object); -#line 674 "MediaInterfaces.c" - } else { -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - value->data[0].v_pointer = NULL; -#line 678 "MediaInterfaces.c" - } -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return NULL; -#line 682 "MediaInterfaces.c" -} - - -static gchar* -value_transaction_controller_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - TransactionController ** object_p; - object_p = collect_values[0].v_pointer; -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (!object_p) { -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 698 "MediaInterfaces.c" - } -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (!value->data[0].v_pointer) { -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - *object_p = NULL; -#line 704 "MediaInterfaces.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - *object_p = value->data[0].v_pointer; -#line 708 "MediaInterfaces.c" - } else { -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - *object_p = transaction_controller_ref (value->data[0].v_pointer); -#line 712 "MediaInterfaces.c" - } -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return NULL; -#line 716 "MediaInterfaces.c" -} - - -GParamSpec* -param_spec_transaction_controller (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecTransactionController* spec; -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_TRANSACTION_CONTROLLER), NULL); -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return G_PARAM_SPEC (spec); -#line 736 "MediaInterfaces.c" -} - - -gpointer -value_get_transaction_controller (const GValue* value) -{ -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSACTION_CONTROLLER), NULL); -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return value->data[0].v_pointer; -#line 747 "MediaInterfaces.c" -} - - -void -value_set_transaction_controller (GValue* value, - gpointer v_object) -{ - TransactionController * old; -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSACTION_CONTROLLER)); -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - old = value->data[0].v_pointer; -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (v_object) { -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TRANSACTION_CONTROLLER)); -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - value->data[0].v_pointer = v_object; -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - transaction_controller_ref (value->data[0].v_pointer); -#line 770 "MediaInterfaces.c" - } else { -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - value->data[0].v_pointer = NULL; -#line 774 "MediaInterfaces.c" - } -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (old) { -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - transaction_controller_unref (old); -#line 780 "MediaInterfaces.c" - } -} - - -void -value_take_transaction_controller (GValue* value, - gpointer v_object) -{ - TransactionController * old; -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSACTION_CONTROLLER)); -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - old = value->data[0].v_pointer; -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (v_object) { -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TRANSACTION_CONTROLLER)); -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - value->data[0].v_pointer = v_object; -#line 802 "MediaInterfaces.c" - } else { -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - value->data[0].v_pointer = NULL; -#line 806 "MediaInterfaces.c" - } -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (old) { -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - transaction_controller_unref (old); -#line 812 "MediaInterfaces.c" - } -} - - -static void -transaction_controller_class_init (TransactionControllerClass * klass) -{ -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - transaction_controller_parent_class = g_type_class_peek_parent (klass); -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - ((TransactionControllerClass *) klass)->finalize = transaction_controller_finalize; -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_type_class_add_private (klass, sizeof (TransactionControllerPrivate)); -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - ((TransactionControllerClass *) klass)->begin_impl = (void (*) (TransactionController *, GError**)) transaction_controller_real_begin_impl; -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - ((TransactionControllerClass *) klass)->commit_impl = (void (*) (TransactionController *, GError**)) transaction_controller_real_commit_impl; -#line 830 "MediaInterfaces.c" -} - - -static void -transaction_controller_instance_init (TransactionController * self) -{ -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - self->priv = TRANSACTION_CONTROLLER_GET_PRIVATE (self); -#line 52 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_rec_mutex_init (&self->priv->__lock_count); -#line 52 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - self->priv->count = 0; -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - self->ref_count = 1; -#line 845 "MediaInterfaces.c" -} - - -static void -transaction_controller_finalize (TransactionController * obj) -{ - TransactionController * self; - GError * _inner_error_ = NULL; -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TRANSACTION_CONTROLLER, TransactionController); -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_signal_handlers_destroy (self); -#line 858 "MediaInterfaces.c" - { - gint _tmp0_; -#line 58 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp0_ = self->priv->count; -#line 58 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_rec_mutex_lock (&self->priv->__lock_count); -#line 865 "MediaInterfaces.c" - { - gint _tmp1_; -#line 59 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp1_ = self->priv->count; -#line 59 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _vala_assert (_tmp1_ == 0, "count == 0"); -#line 872 "MediaInterfaces.c" - } - __finally581: - { - gint _tmp2_; -#line 58 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp2_ = self->priv->count; -#line 58 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_rec_mutex_unlock (&self->priv->__lock_count); -#line 881 "MediaInterfaces.c" - } -#line 58 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 58 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 58 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_clear_error (&_inner_error_); -#line 889 "MediaInterfaces.c" - } - } -#line 52 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_rec_mutex_clear (&self->priv->__lock_count); -#line 894 "MediaInterfaces.c" -} - - -GType -transaction_controller_get_type (void) -{ - static volatile gsize transaction_controller_type_id__volatile = 0; - if (g_once_init_enter (&transaction_controller_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_transaction_controller_init, value_transaction_controller_free_value, value_transaction_controller_copy_value, value_transaction_controller_peek_pointer, "p", value_transaction_controller_collect_value, "p", value_transaction_controller_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (TransactionControllerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) transaction_controller_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TransactionController), 0, (GInstanceInitFunc) transaction_controller_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType transaction_controller_type_id; - transaction_controller_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TransactionController", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&transaction_controller_type_id__volatile, transaction_controller_type_id); - } - return transaction_controller_type_id__volatile; -} - - -gpointer -transaction_controller_ref (gpointer instance) -{ - TransactionController * self; - self = instance; -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_atomic_int_inc (&self->ref_count); -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return instance; -#line 923 "MediaInterfaces.c" -} - - -void -transaction_controller_unref (gpointer instance) -{ - TransactionController * self; - self = instance; -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - TRANSACTION_CONTROLLER_GET_CLASS (self)->finalize (self); -#line 51 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 938 "MediaInterfaces.c" - } -} - - -gboolean -flaggable_is_flagged (Flaggable* self) -{ -#line 115 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_val_if_fail (IS_FLAGGABLE (self), FALSE); -#line 115 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return FLAGGABLE_GET_INTERFACE (self)->is_flagged (self); -#line 950 "MediaInterfaces.c" -} - - -void -flaggable_mark_flagged (Flaggable* self) -{ -#line 117 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (IS_FLAGGABLE (self)); -#line 117 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - FLAGGABLE_GET_INTERFACE (self)->mark_flagged (self); -#line 961 "MediaInterfaces.c" -} - - -void -flaggable_mark_unflagged (Flaggable* self) -{ -#line 119 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (IS_FLAGGABLE (self)); -#line 119 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - FLAGGABLE_GET_INTERFACE (self)->mark_unflagged (self); -#line 972 "MediaInterfaces.c" -} - - -void -flaggable_mark_many_flagged_unflagged (GeeCollection* flag, - GeeCollection* unflag, - TransactionController* controller, - GError** error) -{ -#line 121 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail ((flag == NULL) || GEE_IS_COLLECTION (flag)); -#line 121 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail ((unflag == NULL) || GEE_IS_COLLECTION (unflag)); -#line 121 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (IS_TRANSACTION_CONTROLLER (controller)); -#line 123 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - transaction_controller_begin (controller); -#line 125 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (flag != NULL) { -#line 992 "MediaInterfaces.c" - { - GeeIterator* _flaggable_it = NULL; - GeeIterator* _tmp0_; -#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (flag, GEE_TYPE_ITERABLE, GeeIterable)); -#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _flaggable_it = _tmp0_; -#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - while (TRUE) { -#line 1002 "MediaInterfaces.c" - GeeIterator* _tmp1_; - Flaggable* flaggable = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - Flaggable* _tmp4_; -#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp1_ = _flaggable_it; -#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - break; -#line 1014 "MediaInterfaces.c" - } -#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp2_ = _flaggable_it; -#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - flaggable = (Flaggable*) _tmp3_; -#line 127 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp4_ = flaggable; -#line 127 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - flaggable_mark_flagged (_tmp4_); -#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_object_unref0 (flaggable); -#line 1028 "MediaInterfaces.c" - } -#line 126 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_object_unref0 (_flaggable_it); -#line 1032 "MediaInterfaces.c" - } - } -#line 130 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (unflag != NULL) { -#line 1037 "MediaInterfaces.c" - { - GeeIterator* _flaggable_it = NULL; - GeeIterator* _tmp5_; -#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (unflag, GEE_TYPE_ITERABLE, GeeIterable)); -#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _flaggable_it = _tmp5_; -#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - while (TRUE) { -#line 1047 "MediaInterfaces.c" - GeeIterator* _tmp6_; - Flaggable* flaggable = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - Flaggable* _tmp9_; -#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp6_ = _flaggable_it; -#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - break; -#line 1059 "MediaInterfaces.c" - } -#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp7_ = _flaggable_it; -#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - flaggable = (Flaggable*) _tmp8_; -#line 132 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp9_ = flaggable; -#line 132 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - flaggable_mark_unflagged (_tmp9_); -#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_object_unref0 (flaggable); -#line 1073 "MediaInterfaces.c" - } -#line 131 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_object_unref0 (_flaggable_it); -#line 1077 "MediaInterfaces.c" - } - } -#line 135 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - transaction_controller_commit (controller); -#line 1082 "MediaInterfaces.c" -} - - -static void -flaggable_base_init (FlaggableIface * iface) -{ -#line 114 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - static gboolean initialized = FALSE; -#line 114 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (!initialized) { -#line 114 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - initialized = TRUE; -#line 1095 "MediaInterfaces.c" - } -} - - -GType -flaggable_get_type (void) -{ - static volatile gsize flaggable_type_id__volatile = 0; - if (g_once_init_enter (&flaggable_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FlaggableIface), (GBaseInitFunc) flaggable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType flaggable_type_id; - flaggable_type_id = g_type_register_static (G_TYPE_INTERFACE, "Flaggable", &g_define_type_info, 0); - g_type_interface_add_prerequisite (flaggable_type_id, TYPE_MEDIA_SOURCE); - g_once_init_leave (&flaggable_type_id__volatile, flaggable_type_id); - } - return flaggable_type_id__volatile; -} - - -gboolean -monitorable_is_offline (Monitorable* self) -{ -#line 153 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_val_if_fail (IS_MONITORABLE (self), FALSE); -#line 153 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return MONITORABLE_GET_INTERFACE (self)->is_offline (self); -#line 1122 "MediaInterfaces.c" -} - - -void -monitorable_mark_online (Monitorable* self) -{ -#line 155 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (IS_MONITORABLE (self)); -#line 155 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - MONITORABLE_GET_INTERFACE (self)->mark_online (self); -#line 1133 "MediaInterfaces.c" -} - - -void -monitorable_mark_offline (Monitorable* self) -{ -#line 157 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (IS_MONITORABLE (self)); -#line 157 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - MONITORABLE_GET_INTERFACE (self)->mark_offline (self); -#line 1144 "MediaInterfaces.c" -} - - -void -monitorable_mark_many_online_offline (GeeCollection* online, - GeeCollection* offline, - TransactionController* controller, - GError** error) -{ -#line 159 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail ((online == NULL) || GEE_IS_COLLECTION (online)); -#line 159 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail ((offline == NULL) || GEE_IS_COLLECTION (offline)); -#line 159 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (IS_TRANSACTION_CONTROLLER (controller)); -#line 161 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - transaction_controller_begin (controller); -#line 163 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (online != NULL) { -#line 1164 "MediaInterfaces.c" - { - GeeIterator* _monitorable_it = NULL; - GeeIterator* _tmp0_; -#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (online, GEE_TYPE_ITERABLE, GeeIterable)); -#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _monitorable_it = _tmp0_; -#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - while (TRUE) { -#line 1174 "MediaInterfaces.c" - GeeIterator* _tmp1_; - Monitorable* monitorable = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - Monitorable* _tmp4_; -#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp1_ = _monitorable_it; -#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - break; -#line 1186 "MediaInterfaces.c" - } -#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp2_ = _monitorable_it; -#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - monitorable = (Monitorable*) _tmp3_; -#line 165 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp4_ = monitorable; -#line 165 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - monitorable_mark_online (_tmp4_); -#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_object_unref0 (monitorable); -#line 1200 "MediaInterfaces.c" - } -#line 164 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_object_unref0 (_monitorable_it); -#line 1204 "MediaInterfaces.c" - } - } -#line 168 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (offline != NULL) { -#line 1209 "MediaInterfaces.c" - { - GeeIterator* _monitorable_it = NULL; - GeeIterator* _tmp5_; -#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (offline, GEE_TYPE_ITERABLE, GeeIterable)); -#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _monitorable_it = _tmp5_; -#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - while (TRUE) { -#line 1219 "MediaInterfaces.c" - GeeIterator* _tmp6_; - Monitorable* monitorable = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - Monitorable* _tmp9_; -#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp6_ = _monitorable_it; -#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - break; -#line 1231 "MediaInterfaces.c" - } -#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp7_ = _monitorable_it; -#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - monitorable = (Monitorable*) _tmp8_; -#line 170 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp9_ = monitorable; -#line 170 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - monitorable_mark_offline (_tmp9_); -#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_object_unref0 (monitorable); -#line 1245 "MediaInterfaces.c" - } -#line 169 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_object_unref0 (_monitorable_it); -#line 1249 "MediaInterfaces.c" - } - } -#line 173 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - transaction_controller_commit (controller); -#line 1254 "MediaInterfaces.c" -} - - -void -monitorable_set_master_file (Monitorable* self, - GFile* file) -{ -#line 176 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (IS_MONITORABLE (self)); -#line 176 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - MONITORABLE_GET_INTERFACE (self)->set_master_file (self, file); -#line 1266 "MediaInterfaces.c" -} - - -void -monitorable_set_many_master_file (GeeMap* map, - TransactionController* controller, - GError** error) -{ - GeeMapIterator* map_iter = NULL; - GeeMapIterator* _tmp0_; -#line 178 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (GEE_IS_MAP (map)); -#line 178 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (IS_TRANSACTION_CONTROLLER (controller)); -#line 180 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - transaction_controller_begin (controller); -#line 182 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp0_ = gee_map_map_iterator (map); -#line 182 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - map_iter = _tmp0_; -#line 183 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - while (TRUE) { -#line 1289 "MediaInterfaces.c" - GeeMapIterator* _tmp1_; - GeeMapIterator* _tmp2_; - gpointer _tmp3_; - Monitorable* _tmp4_; - GeeMapIterator* _tmp5_; - gpointer _tmp6_; - GFile* _tmp7_; -#line 183 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp1_ = map_iter; -#line 183 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (!gee_map_iterator_next (_tmp1_)) { -#line 183 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - break; -#line 1303 "MediaInterfaces.c" - } -#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp2_ = map_iter; -#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp3_ = gee_map_iterator_get_key (_tmp2_); -#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp4_ = (Monitorable*) _tmp3_; -#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp5_ = map_iter; -#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp6_ = gee_map_iterator_get_value (_tmp5_); -#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp7_ = (GFile*) _tmp6_; -#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - monitorable_set_master_file (_tmp4_, _tmp7_); -#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_object_unref0 (_tmp7_); -#line 184 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_object_unref0 (_tmp4_); -#line 1323 "MediaInterfaces.c" - } -#line 186 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - transaction_controller_commit (controller); -#line 178 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_object_unref0 (map_iter); -#line 1329 "MediaInterfaces.c" -} - - -void -monitorable_set_master_timestamp (Monitorable* self, - GFileInfo* info) -{ -#line 189 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (IS_MONITORABLE (self)); -#line 189 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - MONITORABLE_GET_INTERFACE (self)->set_master_timestamp (self, info); -#line 1341 "MediaInterfaces.c" -} - - -void -monitorable_set_many_master_timestamp (GeeMap* map, - TransactionController* controller, - GError** error) -{ - GeeMapIterator* map_iter = NULL; - GeeMapIterator* _tmp0_; -#line 191 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (GEE_IS_MAP (map)); -#line 191 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (IS_TRANSACTION_CONTROLLER (controller)); -#line 193 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - transaction_controller_begin (controller); -#line 195 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp0_ = gee_map_map_iterator (map); -#line 195 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - map_iter = _tmp0_; -#line 196 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - while (TRUE) { -#line 1364 "MediaInterfaces.c" - GeeMapIterator* _tmp1_; - GeeMapIterator* _tmp2_; - gpointer _tmp3_; - Monitorable* _tmp4_; - GeeMapIterator* _tmp5_; - gpointer _tmp6_; - GFileInfo* _tmp7_; -#line 196 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp1_ = map_iter; -#line 196 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (!gee_map_iterator_next (_tmp1_)) { -#line 196 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - break; -#line 1378 "MediaInterfaces.c" - } -#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp2_ = map_iter; -#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp3_ = gee_map_iterator_get_key (_tmp2_); -#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp4_ = (Monitorable*) _tmp3_; -#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp5_ = map_iter; -#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp6_ = gee_map_iterator_get_value (_tmp5_); -#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _tmp7_ = (GFileInfo*) _tmp6_; -#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - monitorable_set_master_timestamp (_tmp4_, _tmp7_); -#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_object_unref0 (_tmp7_); -#line 197 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_object_unref0 (_tmp4_); -#line 1398 "MediaInterfaces.c" - } -#line 199 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - transaction_controller_commit (controller); -#line 191 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - _g_object_unref0 (map_iter); -#line 1404 "MediaInterfaces.c" -} - - -static void -monitorable_base_init (MonitorableIface * iface) -{ -#line 152 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - static gboolean initialized = FALSE; -#line 152 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (!initialized) { -#line 152 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - initialized = TRUE; -#line 1417 "MediaInterfaces.c" - } -} - - -GType -monitorable_get_type (void) -{ - static volatile gsize monitorable_type_id__volatile = 0; - if (g_once_init_enter (&monitorable_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MonitorableIface), (GBaseInitFunc) monitorable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType monitorable_type_id; - monitorable_type_id = g_type_register_static (G_TYPE_INTERFACE, "Monitorable", &g_define_type_info, 0); - g_type_interface_add_prerequisite (monitorable_type_id, TYPE_MEDIA_SOURCE); - g_once_init_leave (&monitorable_type_id__volatile, monitorable_type_id); - } - return monitorable_type_id__volatile; -} - - -void -dateable_set_exposure_time (Dateable* self, - time_t target_time) -{ -#line 212 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_if_fail (IS_DATEABLE (self)); -#line 212 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - DATEABLE_GET_INTERFACE (self)->set_exposure_time (self, target_time); -#line 1445 "MediaInterfaces.c" -} - - -time_t -dateable_get_exposure_time (Dateable* self) -{ -#line 214 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - g_return_val_if_fail (IS_DATEABLE (self), 0); -#line 214 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - return DATEABLE_GET_INTERFACE (self)->get_exposure_time (self); -#line 1456 "MediaInterfaces.c" -} - - -static void -dateable_base_init (DateableIface * iface) -{ -#line 211 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - static gboolean initialized = FALSE; -#line 211 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - if (!initialized) { -#line 211 "/home/jens/Source/shotwell/src/MediaInterfaces.vala" - initialized = TRUE; -#line 1469 "MediaInterfaces.c" - } -} - - -GType -dateable_get_type (void) -{ - static volatile gsize dateable_type_id__volatile = 0; - if (g_once_init_enter (&dateable_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DateableIface), (GBaseInitFunc) dateable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType dateable_type_id; - dateable_type_id = g_type_register_static (G_TYPE_INTERFACE, "Dateable", &g_define_type_info, 0); - g_type_interface_add_prerequisite (dateable_type_id, TYPE_MEDIA_SOURCE); - g_once_init_leave (&dateable_type_id__volatile, dateable_type_id); - } - return dateable_type_id__volatile; -} - - - diff --git a/src/MediaMetadata.c b/src/MediaMetadata.c deleted file mode 100644 index 0c11b06..0000000 --- a/src/MediaMetadata.c +++ /dev/null @@ -1,1584 +0,0 @@ -/* MediaMetadata.c generated by valac 0.40.4, the Vala compiler - * generated from MediaMetadata.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; -typedef struct _MediaMetadataPrivate MediaMetadataPrivate; - -#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ()) -#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime)) -#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) -#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME)) -#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME)) -#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) - -typedef struct _MetadataDateTime MetadataDateTime; -typedef struct _MetadataDateTimeClass MetadataDateTimeClass; -typedef struct _ParamSpecMediaMetadata ParamSpecMediaMetadata; - -#define TYPE_METADATA_RATIONAL (metadata_rational_get_type ()) -typedef struct _MetadataRational MetadataRational; -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _MetadataDateTimePrivate MetadataDateTimePrivate; -#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL))) -typedef struct _ParamSpecMetadataDateTime ParamSpecMetadataDateTime; - -struct _MediaMetadata { - GTypeInstance parent_instance; - volatile int ref_count; - MediaMetadataPrivate * priv; -}; - -struct _MediaMetadataClass { - GTypeClass parent_class; - void (*finalize) (MediaMetadata *self); - void (*read_from_file) (MediaMetadata* self, GFile* file, GError** error); - MetadataDateTime* (*get_creation_date_time) (MediaMetadata* self); - gchar* (*get_title) (MediaMetadata* self); - gchar* (*get_comment) (MediaMetadata* self); -}; - -struct _ParamSpecMediaMetadata { - GParamSpec parent_instance; -}; - -struct _MetadataRational { - gint numerator; - gint denominator; -}; - -typedef enum { - METADATA_DATE_TIME_ERROR_INVALID_FORMAT, - METADATA_DATE_TIME_ERROR_UNSUPPORTED_FORMAT -} MetadataDateTimeError; -#define METADATA_DATE_TIME_ERROR metadata_date_time_error_quark () -struct _MetadataDateTime { - GTypeInstance parent_instance; - volatile int ref_count; - MetadataDateTimePrivate * priv; -}; - -struct _MetadataDateTimeClass { - GTypeClass parent_class; - void (*finalize) (MetadataDateTime *self); -}; - -struct _MetadataDateTimePrivate { - time_t timestamp; -}; - -struct _ParamSpecMetadataDateTime { - GParamSpec parent_instance; -}; - - -static gpointer media_metadata_parent_class = NULL; -static gpointer metadata_date_time_parent_class = NULL; - -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -gpointer metadata_date_time_ref (gpointer instance); -void metadata_date_time_unref (gpointer instance); -GParamSpec* param_spec_metadata_date_time (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_metadata_date_time (GValue* value, - gpointer v_object); -void value_take_metadata_date_time (GValue* value, - gpointer v_object); -gpointer value_get_metadata_date_time (const GValue* value); -GType metadata_date_time_get_type (void) G_GNUC_CONST; -MediaMetadata* media_metadata_construct (GType object_type); -void media_metadata_read_from_file (MediaMetadata* self, - GFile* file, - GError** error); -static void media_metadata_real_read_from_file (MediaMetadata* self, - GFile* file, - GError** error); -MetadataDateTime* media_metadata_get_creation_date_time (MediaMetadata* self); -static MetadataDateTime* media_metadata_real_get_creation_date_time (MediaMetadata* self); -gchar* media_metadata_get_title (MediaMetadata* self); -static gchar* media_metadata_real_get_title (MediaMetadata* self); -gchar* media_metadata_get_comment (MediaMetadata* self); -static gchar* media_metadata_real_get_comment (MediaMetadata* self); -static void media_metadata_finalize (MediaMetadata * obj); -GType metadata_rational_get_type (void) G_GNUC_CONST; -MetadataRational* metadata_rational_dup (const MetadataRational* self); -void metadata_rational_free (MetadataRational* self); -void metadata_rational_init (MetadataRational *self, - gint numerator, - gint denominator); -static gboolean metadata_rational_is_component_valid (MetadataRational *self, - gint component); -gboolean metadata_rational_is_valid (MetadataRational *self); -gchar* metadata_rational_to_string (MetadataRational *self); -GQuark metadata_date_time_error_quark (void); -#define METADATA_DATE_TIME_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_METADATA_DATE_TIME, MetadataDateTimePrivate)) -MetadataDateTime* metadata_date_time_new (time_t timestamp); -MetadataDateTime* metadata_date_time_construct (GType object_type, - time_t timestamp); -MetadataDateTime* metadata_date_time_new_from_exif (const gchar* label, - GError** error); -MetadataDateTime* metadata_date_time_construct_from_exif (GType object_type, - const gchar* label, - GError** error); -gboolean metadata_date_time_from_exif_date_time (const gchar* date_time, - time_t* timestamp); -MetadataDateTime* metadata_date_time_new_from_iptc (const gchar* date, - const gchar* time, - GError** error); -MetadataDateTime* metadata_date_time_construct_from_iptc (GType object_type, - const gchar* date, - const gchar* time, - GError** error); -MetadataDateTime* metadata_date_time_new_from_xmp (const gchar* label, - GError** error); -MetadataDateTime* metadata_date_time_construct_from_xmp (GType object_type, - const gchar* label, - GError** error); -time_t metadata_date_time_get_timestamp (MetadataDateTime* self); -gchar* metadata_date_time_get_exif_label (MetadataDateTime* self); -gchar* metadata_date_time_to_exif_date_time (time_t timestamp); -gchar* metadata_date_time_get_xmp_label (MetadataDateTime* self); -gchar* metadata_date_time_to_string (MetadataDateTime* self); -static void metadata_date_time_finalize (MetadataDateTime * obj); - - -MediaMetadata* -media_metadata_construct (GType object_type) -{ - MediaMetadata* self = NULL; -#line 8 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - self = (MediaMetadata*) g_type_create_instance (object_type); -#line 8 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return self; -#line 193 "MediaMetadata.c" -} - - -static void -media_metadata_real_read_from_file (MediaMetadata* self, - GFile* file, - GError** error) -{ -#line 11 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_critical ("Type `%s' does not implement abstract method `media_metadata_read_from_file'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 11 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return; -#line 206 "MediaMetadata.c" -} - - -void -media_metadata_read_from_file (MediaMetadata* self, - GFile* file, - GError** error) -{ -#line 11 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_if_fail (IS_MEDIA_METADATA (self)); -#line 11 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - MEDIA_METADATA_GET_CLASS (self)->read_from_file (self, file, error); -#line 219 "MediaMetadata.c" -} - - -static MetadataDateTime* -media_metadata_real_get_creation_date_time (MediaMetadata* self) -{ -#line 13 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_critical ("Type `%s' does not implement abstract method `media_metadata_get_creation_date_time'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 13 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return NULL; -#line 230 "MediaMetadata.c" -} - - -MetadataDateTime* -media_metadata_get_creation_date_time (MediaMetadata* self) -{ -#line 13 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_val_if_fail (IS_MEDIA_METADATA (self), NULL); -#line 13 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return MEDIA_METADATA_GET_CLASS (self)->get_creation_date_time (self); -#line 241 "MediaMetadata.c" -} - - -static gchar* -media_metadata_real_get_title (MediaMetadata* self) -{ -#line 15 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_critical ("Type `%s' does not implement abstract method `media_metadata_get_title'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 15 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return NULL; -#line 252 "MediaMetadata.c" -} - - -gchar* -media_metadata_get_title (MediaMetadata* self) -{ -#line 15 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_val_if_fail (IS_MEDIA_METADATA (self), NULL); -#line 15 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return MEDIA_METADATA_GET_CLASS (self)->get_title (self); -#line 263 "MediaMetadata.c" -} - - -static gchar* -media_metadata_real_get_comment (MediaMetadata* self) -{ -#line 17 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_critical ("Type `%s' does not implement abstract method `media_metadata_get_comment'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 17 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return NULL; -#line 274 "MediaMetadata.c" -} - - -gchar* -media_metadata_get_comment (MediaMetadata* self) -{ -#line 17 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_val_if_fail (IS_MEDIA_METADATA (self), NULL); -#line 17 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return MEDIA_METADATA_GET_CLASS (self)->get_comment (self); -#line 285 "MediaMetadata.c" -} - - -static void -value_media_metadata_init (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - value->data[0].v_pointer = NULL; -#line 294 "MediaMetadata.c" -} - - -static void -value_media_metadata_free_value (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - media_metadata_unref (value->data[0].v_pointer); -#line 305 "MediaMetadata.c" - } -} - - -static void -value_media_metadata_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (src_value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - dest_value->data[0].v_pointer = media_metadata_ref (src_value->data[0].v_pointer); -#line 318 "MediaMetadata.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - dest_value->data[0].v_pointer = NULL; -#line 322 "MediaMetadata.c" - } -} - - -static gpointer -value_media_metadata_peek_pointer (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return value->data[0].v_pointer; -#line 332 "MediaMetadata.c" -} - - -static gchar* -value_media_metadata_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (collect_values[0].v_pointer) { -#line 344 "MediaMetadata.c" - MediaMetadata * object; - object = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (object->parent_instance.g_class == NULL) { -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 351 "MediaMetadata.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 355 "MediaMetadata.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - value->data[0].v_pointer = media_metadata_ref (object); -#line 359 "MediaMetadata.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - value->data[0].v_pointer = NULL; -#line 363 "MediaMetadata.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return NULL; -#line 367 "MediaMetadata.c" -} - - -static gchar* -value_media_metadata_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - MediaMetadata ** object_p; - object_p = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (!object_p) { -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 383 "MediaMetadata.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (!value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - *object_p = NULL; -#line 389 "MediaMetadata.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - *object_p = value->data[0].v_pointer; -#line 393 "MediaMetadata.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - *object_p = media_metadata_ref (value->data[0].v_pointer); -#line 397 "MediaMetadata.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return NULL; -#line 401 "MediaMetadata.c" -} - - -GParamSpec* -param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecMediaMetadata* spec; -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_MEDIA_METADATA), NULL); -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return G_PARAM_SPEC (spec); -#line 421 "MediaMetadata.c" -} - - -gpointer -value_get_media_metadata (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MEDIA_METADATA), NULL); -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return value->data[0].v_pointer; -#line 432 "MediaMetadata.c" -} - - -void -value_set_media_metadata (GValue* value, - gpointer v_object) -{ - MediaMetadata * old; -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MEDIA_METADATA)); -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MEDIA_METADATA)); -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - value->data[0].v_pointer = v_object; -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - media_metadata_ref (value->data[0].v_pointer); -#line 455 "MediaMetadata.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - value->data[0].v_pointer = NULL; -#line 459 "MediaMetadata.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - media_metadata_unref (old); -#line 465 "MediaMetadata.c" - } -} - - -void -value_take_media_metadata (GValue* value, - gpointer v_object) -{ - MediaMetadata * old; -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MEDIA_METADATA)); -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MEDIA_METADATA)); -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - value->data[0].v_pointer = v_object; -#line 487 "MediaMetadata.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - value->data[0].v_pointer = NULL; -#line 491 "MediaMetadata.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - media_metadata_unref (old); -#line 497 "MediaMetadata.c" - } -} - - -static void -media_metadata_class_init (MediaMetadataClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - media_metadata_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - ((MediaMetadataClass *) klass)->finalize = media_metadata_finalize; -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - ((MediaMetadataClass *) klass)->read_from_file = (void (*) (MediaMetadata *, GFile*, GError**)) media_metadata_real_read_from_file; -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - ((MediaMetadataClass *) klass)->get_creation_date_time = (MetadataDateTime* (*) (MediaMetadata *)) media_metadata_real_get_creation_date_time; -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - ((MediaMetadataClass *) klass)->get_title = (gchar* (*) (MediaMetadata *)) media_metadata_real_get_title; -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - ((MediaMetadataClass *) klass)->get_comment = (gchar* (*) (MediaMetadata *)) media_metadata_real_get_comment; -#line 517 "MediaMetadata.c" -} - - -static void -media_metadata_instance_init (MediaMetadata * self) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - self->ref_count = 1; -#line 526 "MediaMetadata.c" -} - - -static void -media_metadata_finalize (MediaMetadata * obj) -{ - MediaMetadata * self; -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_METADATA, MediaMetadata); -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_signal_handlers_destroy (self); -#line 538 "MediaMetadata.c" -} - - -GType -media_metadata_get_type (void) -{ - static volatile gsize media_metadata_type_id__volatile = 0; - if (g_once_init_enter (&media_metadata_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_media_metadata_init, value_media_metadata_free_value, value_media_metadata_copy_value, value_media_metadata_peek_pointer, "p", value_media_metadata_collect_value, "p", value_media_metadata_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (MediaMetadataClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_metadata_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaMetadata), 0, (GInstanceInitFunc) media_metadata_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType media_metadata_type_id; - media_metadata_type_id = g_type_register_fundamental (g_type_fundamental_next (), "MediaMetadata", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&media_metadata_type_id__volatile, media_metadata_type_id); - } - return media_metadata_type_id__volatile; -} - - -gpointer -media_metadata_ref (gpointer instance) -{ - MediaMetadata * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_atomic_int_inc (&self->ref_count); -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return instance; -#line 567 "MediaMetadata.c" -} - - -void -media_metadata_unref (gpointer instance) -{ - MediaMetadata * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - MEDIA_METADATA_GET_CLASS (self)->finalize (self); -#line 7 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 582 "MediaMetadata.c" - } -} - - -void -metadata_rational_init (MetadataRational *self, - gint numerator, - gint denominator) -{ -#line 24 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - memset (self, 0, sizeof (MetadataRational)); -#line 25 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - (*self).numerator = numerator; -#line 26 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - (*self).denominator = denominator; -#line 598 "MediaMetadata.c" -} - - -static gboolean -metadata_rational_is_component_valid (MetadataRational *self, - gint component) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; -#line 30 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (component >= 0) { -#line 30 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp0_ = component <= 1000000; -#line 612 "MediaMetadata.c" - } else { -#line 30 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp0_ = FALSE; -#line 616 "MediaMetadata.c" - } -#line 30 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - result = _tmp0_; -#line 30 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return result; -#line 622 "MediaMetadata.c" -} - - -gboolean -metadata_rational_is_valid (MetadataRational *self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 34 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp1_ = (*self).numerator; -#line 34 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (metadata_rational_is_component_valid (&(*self), _tmp1_)) { -#line 636 "MediaMetadata.c" - gint _tmp2_; -#line 34 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp2_ = (*self).denominator; -#line 34 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp0_ = metadata_rational_is_component_valid (&(*self), _tmp2_); -#line 642 "MediaMetadata.c" - } else { -#line 34 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp0_ = FALSE; -#line 646 "MediaMetadata.c" - } -#line 34 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - result = _tmp0_; -#line 34 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return result; -#line 652 "MediaMetadata.c" -} - - -gchar* -metadata_rational_to_string (MetadataRational *self) -{ - gchar* result = NULL; - gchar* _tmp0_ = NULL; -#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (metadata_rational_is_valid (&(*self))) { -#line 663 "MediaMetadata.c" - gint _tmp1_; - gint _tmp2_; - gchar* _tmp3_; -#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp1_ = (*self).numerator; -#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp2_ = (*self).denominator; -#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp3_ = g_strdup_printf ("%d/%d", _tmp1_, _tmp2_); -#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _g_free0 (_tmp0_); -#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp0_ = _tmp3_; -#line 677 "MediaMetadata.c" - } else { - gchar* _tmp4_; -#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp4_ = g_strdup (""); -#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _g_free0 (_tmp0_); -#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp0_ = _tmp4_; -#line 686 "MediaMetadata.c" - } -#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - result = _tmp0_; -#line 38 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return result; -#line 692 "MediaMetadata.c" -} - - -MetadataRational* -metadata_rational_dup (const MetadataRational* self) -{ - MetadataRational* dup; -#line 20 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - dup = g_new0 (MetadataRational, 1); -#line 20 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - memcpy (dup, self, sizeof (MetadataRational)); -#line 20 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return dup; -#line 706 "MediaMetadata.c" -} - - -void -metadata_rational_free (MetadataRational* self) -{ -#line 20 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_free (self); -#line 715 "MediaMetadata.c" -} - - -GType -metadata_rational_get_type (void) -{ - static volatile gsize metadata_rational_type_id__volatile = 0; - if (g_once_init_enter (&metadata_rational_type_id__volatile)) { - GType metadata_rational_type_id; - metadata_rational_type_id = g_boxed_type_register_static ("MetadataRational", (GBoxedCopyFunc) metadata_rational_dup, (GBoxedFreeFunc) metadata_rational_free); - g_once_init_leave (&metadata_rational_type_id__volatile, metadata_rational_type_id); - } - return metadata_rational_type_id__volatile; -} - - -GQuark -metadata_date_time_error_quark (void) -{ - return g_quark_from_static_string ("metadata_date_time_error-quark"); -} - - -MetadataDateTime* -metadata_date_time_construct (GType object_type, - time_t timestamp) -{ - MetadataDateTime* self = NULL; -#line 51 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - self = (MetadataDateTime*) g_type_create_instance (object_type); -#line 52 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - self->priv->timestamp = timestamp; -#line 51 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return self; -#line 750 "MediaMetadata.c" -} - - -MetadataDateTime* -metadata_date_time_new (time_t timestamp) -{ -#line 51 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return metadata_date_time_construct (TYPE_METADATA_DATE_TIME, timestamp); -#line 759 "MediaMetadata.c" -} - - -MetadataDateTime* -metadata_date_time_construct_from_exif (GType object_type, - const gchar* label, - GError** error) -{ - MetadataDateTime* self = NULL; - time_t _tmp0_ = 0; - gboolean _tmp1_; - GError * _inner_error_ = NULL; -#line 55 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_val_if_fail (label != NULL, NULL); -#line 55 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - self = (MetadataDateTime*) g_type_create_instance (object_type); -#line 56 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp1_ = metadata_date_time_from_exif_date_time (label, &_tmp0_); -#line 56 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - self->priv->timestamp = _tmp0_; -#line 56 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (!_tmp1_) { -#line 782 "MediaMetadata.c" - GError* _tmp2_; -#line 57 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp2_ = g_error_new (METADATA_DATE_TIME_ERROR, METADATA_DATE_TIME_ERROR_INVALID_FORMAT, "%s is not EXIF format date/time", label); -#line 57 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _inner_error_ = _tmp2_; -#line 57 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (_inner_error_->domain == METADATA_DATE_TIME_ERROR) { -#line 57 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 57 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _metadata_date_time_unref0 (self); -#line 57 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return NULL; -#line 796 "MediaMetadata.c" - } else { -#line 57 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 57 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_clear_error (&_inner_error_); -#line 57 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return NULL; -#line 804 "MediaMetadata.c" - } - } -#line 55 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return self; -#line 809 "MediaMetadata.c" -} - - -MetadataDateTime* -metadata_date_time_new_from_exif (const gchar* label, - GError** error) -{ -#line 55 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return metadata_date_time_construct_from_exif (TYPE_METADATA_DATE_TIME, label, error); -#line 819 "MediaMetadata.c" -} - - -MetadataDateTime* -metadata_date_time_construct_from_iptc (GType object_type, - const gchar* date, - const gchar* time, - GError** error) -{ - MetadataDateTime* self = NULL; - GError* _tmp0_; - GError * _inner_error_ = NULL; -#line 60 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_val_if_fail (date != NULL, NULL); -#line 60 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_val_if_fail (time != NULL, NULL); -#line 60 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - self = (MetadataDateTime*) g_type_create_instance (object_type); -#line 62 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp0_ = g_error_new_literal (METADATA_DATE_TIME_ERROR, METADATA_DATE_TIME_ERROR_UNSUPPORTED_FORMAT, "IPTC date/time format not currently supported"); -#line 62 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _inner_error_ = _tmp0_; -#line 62 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (_inner_error_->domain == METADATA_DATE_TIME_ERROR) { -#line 62 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 62 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _metadata_date_time_unref0 (self); -#line 62 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return NULL; -#line 850 "MediaMetadata.c" - } else { -#line 62 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 62 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_clear_error (&_inner_error_); -#line 62 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return NULL; -#line 858 "MediaMetadata.c" - } -#line 60 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return self; -#line 862 "MediaMetadata.c" -} - - -MetadataDateTime* -metadata_date_time_new_from_iptc (const gchar* date, - const gchar* time, - GError** error) -{ -#line 60 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return metadata_date_time_construct_from_iptc (TYPE_METADATA_DATE_TIME, date, time, error); -#line 873 "MediaMetadata.c" -} - - -MetadataDateTime* -metadata_date_time_construct_from_xmp (GType object_type, - const gchar* label, - GError** error) -{ - MetadataDateTime* self = NULL; - GTimeVal time_val = {0}; - GTimeVal _tmp1_; - glong _tmp2_; - GError * _inner_error_ = NULL; -#line 65 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_val_if_fail (label != NULL, NULL); -#line 65 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - self = (MetadataDateTime*) g_type_create_instance (object_type); -#line 66 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_get_current_time (&time_val); -#line 67 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (!g_time_val_from_iso8601 (label, &time_val)) { -#line 895 "MediaMetadata.c" - GError* _tmp0_; -#line 68 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp0_ = g_error_new (METADATA_DATE_TIME_ERROR, METADATA_DATE_TIME_ERROR_INVALID_FORMAT, "%s is not XMP format date/time", label); -#line 68 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _inner_error_ = _tmp0_; -#line 68 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (_inner_error_->domain == METADATA_DATE_TIME_ERROR) { -#line 68 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 68 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _metadata_date_time_unref0 (self); -#line 68 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return NULL; -#line 909 "MediaMetadata.c" - } else { -#line 68 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 68 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_clear_error (&_inner_error_); -#line 68 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return NULL; -#line 917 "MediaMetadata.c" - } - } -#line 70 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp1_ = time_val; -#line 70 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp2_ = _tmp1_.tv_sec; -#line 70 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - self->priv->timestamp = (time_t) _tmp2_; -#line 65 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return self; -#line 928 "MediaMetadata.c" -} - - -MetadataDateTime* -metadata_date_time_new_from_xmp (const gchar* label, - GError** error) -{ -#line 65 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return metadata_date_time_construct_from_xmp (TYPE_METADATA_DATE_TIME, label, error); -#line 938 "MediaMetadata.c" -} - - -time_t -metadata_date_time_get_timestamp (MetadataDateTime* self) -{ - time_t result = 0; - time_t _tmp0_; -#line 73 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_val_if_fail (IS_METADATA_DATE_TIME (self), 0); -#line 74 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp0_ = self->priv->timestamp; -#line 74 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - result = _tmp0_; -#line 74 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return result; -#line 955 "MediaMetadata.c" -} - - -gchar* -metadata_date_time_get_exif_label (MetadataDateTime* self) -{ - gchar* result = NULL; - time_t _tmp0_; - gchar* _tmp1_; -#line 77 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_val_if_fail (IS_METADATA_DATE_TIME (self), NULL); -#line 78 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp0_ = self->priv->timestamp; -#line 78 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp1_ = metadata_date_time_to_exif_date_time (_tmp0_); -#line 78 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - result = _tmp1_; -#line 78 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return result; -#line 975 "MediaMetadata.c" -} - - -gchar* -metadata_date_time_get_xmp_label (MetadataDateTime* self) -{ - gchar* result = NULL; - GTimeVal time_val = {0}; - time_t _tmp0_; - gchar* _tmp1_; -#line 83 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_val_if_fail (IS_METADATA_DATE_TIME (self), NULL); -#line 84 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_get_current_time (&time_val); -#line 85 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp0_ = self->priv->timestamp; -#line 85 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - time_val.tv_sec = (glong) _tmp0_; -#line 86 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - time_val.tv_usec = (glong) 0; -#line 88 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp1_ = g_time_val_to_iso8601 (&time_val); -#line 88 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - result = _tmp1_; -#line 88 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return result; -#line 1002 "MediaMetadata.c" -} - - -gboolean -metadata_date_time_from_exif_date_time (const gchar* date_time, - time_t* timestamp) -{ - time_t _vala_timestamp = 0; - gboolean result = FALSE; - struct tm tm = {0}; - gboolean _tmp3_ = FALSE; - gboolean _tmp4_ = FALSE; - gboolean _tmp5_ = FALSE; - gboolean _tmp6_ = FALSE; - gboolean _tmp7_ = FALSE; - struct tm _tmp8_; - gint _tmp9_; - gint _tmp20_; - gint _tmp21_; -#line 91 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_val_if_fail (date_time != NULL, FALSE); -#line 92 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _vala_timestamp = (time_t) 0; -#line 94 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - memset (&tm, 0, sizeof (struct tm)); -#line 97 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (sscanf (date_time, "%d:%d:%d %d:%d:%d", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec) != 6) { -#line 1030 "MediaMetadata.c" - gchar* tmp = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; -#line 100 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp0_ = g_strdup (date_time); -#line 100 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - tmp = _tmp0_; -#line 101 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp1_ = tmp; -#line 101 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_strcanon (_tmp1_, "0123456789", ' '); -#line 102 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp2_ = tmp; -#line 102 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (sscanf (_tmp2_, "%4d%2d%2d%2d%2d%2d", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec) != 6) { -#line 104 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - result = FALSE; -#line 104 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _g_free0 (tmp); -#line 104 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (timestamp) { -#line 104 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - *timestamp = _vala_timestamp; -#line 1055 "MediaMetadata.c" - } -#line 104 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return result; -#line 1059 "MediaMetadata.c" - } -#line 97 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _g_free0 (tmp); -#line 1063 "MediaMetadata.c" - } -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp8_ = tm; -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp9_ = _tmp8_.tm_year; -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (_tmp9_ <= 1900) { -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp7_ = TRUE; -#line 1073 "MediaMetadata.c" - } else { - struct tm _tmp10_; - gint _tmp11_; -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp10_ = tm; -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp11_ = _tmp10_.tm_mon; -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp7_ = _tmp11_ <= 0; -#line 1083 "MediaMetadata.c" - } -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (_tmp7_) { -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp6_ = TRUE; -#line 1089 "MediaMetadata.c" - } else { - struct tm _tmp12_; - gint _tmp13_; -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp12_ = tm; -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp13_ = _tmp12_.tm_mday; -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp6_ = _tmp13_ < 0; -#line 1099 "MediaMetadata.c" - } -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (_tmp6_) { -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp5_ = TRUE; -#line 1105 "MediaMetadata.c" - } else { - struct tm _tmp14_; - gint _tmp15_; -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp14_ = tm; -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp15_ = _tmp14_.tm_hour; -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp5_ = _tmp15_ < 0; -#line 1115 "MediaMetadata.c" - } -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (_tmp5_) { -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp4_ = TRUE; -#line 1121 "MediaMetadata.c" - } else { - struct tm _tmp16_; - gint _tmp17_; -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp16_ = tm; -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp17_ = _tmp16_.tm_min; -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp4_ = _tmp17_ < 0; -#line 1131 "MediaMetadata.c" - } -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (_tmp4_) { -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp3_ = TRUE; -#line 1137 "MediaMetadata.c" - } else { - struct tm _tmp18_; - gint _tmp19_; -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp18_ = tm; -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp19_ = _tmp18_.tm_sec; -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp3_ = _tmp19_ < 0; -#line 1147 "MediaMetadata.c" - } -#line 108 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (_tmp3_) { -#line 109 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - result = FALSE; -#line 109 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (timestamp) { -#line 109 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - *timestamp = _vala_timestamp; -#line 1157 "MediaMetadata.c" - } -#line 109 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return result; -#line 1161 "MediaMetadata.c" - } -#line 111 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp20_ = tm.tm_year; -#line 111 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - tm.tm_year = _tmp20_ - 1900; -#line 112 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp21_ = tm.tm_mon; -#line 112 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - tm.tm_mon = _tmp21_ - 1; -#line 113 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - tm.tm_isdst = -1; -#line 115 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _vala_timestamp = mktime (&tm); -#line 117 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - result = TRUE; -#line 117 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (timestamp) { -#line 117 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - *timestamp = _vala_timestamp; -#line 1181 "MediaMetadata.c" - } -#line 117 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return result; -#line 1185 "MediaMetadata.c" -} - - -static void -g_time_local (time_t time, - struct tm* result) -{ - struct tm _result_ = {0}; - struct tm _tmp0_ = {0}; -#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - localtime_r (&time, &_tmp0_); -#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result = _result_; -#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return; -#line 1203 "MediaMetadata.c" -} - - -static gchar* -g_time_format (struct tm *self, - const gchar* format) -{ - gchar* result = NULL; - gchar* buffer = NULL; - gchar* _tmp0_; - gint buffer_length1; - gint _buffer_size_; - gchar* _tmp1_; - gint _tmp1__length1; - gchar* _tmp2_; - gint _tmp2__length1; - gchar* _tmp3_; -#line 2874 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (format != NULL, NULL); -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_new0 (gchar, 64); -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer = _tmp0_; -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer_length1 = 64; -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _buffer_size_ = buffer_length1; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = buffer; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1__length1 = buffer_length1; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - strftime (_tmp1_, _tmp1__length1, format, &(*self)); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = buffer; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2__length1 = buffer_length1; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_strdup ((const gchar*) _tmp2_); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp3_; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer = (g_free (buffer), NULL); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1249 "MediaMetadata.c" -} - - -gchar* -metadata_date_time_to_exif_date_time (time_t timestamp) -{ - gchar* result = NULL; - struct tm _tmp0_ = {0}; - gchar* _tmp1_; -#line 121 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_time_local (timestamp, &_tmp0_); -#line 121 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp1_ = g_time_format (&_tmp0_, "%Y:%m:%d %H:%M:%S"); -#line 121 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - result = _tmp1_; -#line 121 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return result; -#line 1267 "MediaMetadata.c" -} - - -gchar* -metadata_date_time_to_string (MetadataDateTime* self) -{ - gchar* result = NULL; - time_t _tmp0_; - gchar* _tmp1_; -#line 124 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_val_if_fail (IS_METADATA_DATE_TIME (self), NULL); -#line 125 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp0_ = self->priv->timestamp; -#line 125 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - _tmp1_ = metadata_date_time_to_exif_date_time (_tmp0_); -#line 125 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - result = _tmp1_; -#line 125 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return result; -#line 1287 "MediaMetadata.c" -} - - -static void -value_metadata_date_time_init (GValue* value) -{ -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - value->data[0].v_pointer = NULL; -#line 1296 "MediaMetadata.c" -} - - -static void -value_metadata_date_time_free_value (GValue* value) -{ -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (value->data[0].v_pointer) { -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - metadata_date_time_unref (value->data[0].v_pointer); -#line 1307 "MediaMetadata.c" - } -} - - -static void -value_metadata_date_time_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (src_value->data[0].v_pointer) { -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - dest_value->data[0].v_pointer = metadata_date_time_ref (src_value->data[0].v_pointer); -#line 1320 "MediaMetadata.c" - } else { -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - dest_value->data[0].v_pointer = NULL; -#line 1324 "MediaMetadata.c" - } -} - - -static gpointer -value_metadata_date_time_peek_pointer (const GValue* value) -{ -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return value->data[0].v_pointer; -#line 1334 "MediaMetadata.c" -} - - -static gchar* -value_metadata_date_time_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (collect_values[0].v_pointer) { -#line 1346 "MediaMetadata.c" - MetadataDateTime * object; - object = collect_values[0].v_pointer; -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (object->parent_instance.g_class == NULL) { -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1353 "MediaMetadata.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1357 "MediaMetadata.c" - } -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - value->data[0].v_pointer = metadata_date_time_ref (object); -#line 1361 "MediaMetadata.c" - } else { -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - value->data[0].v_pointer = NULL; -#line 1365 "MediaMetadata.c" - } -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return NULL; -#line 1369 "MediaMetadata.c" -} - - -static gchar* -value_metadata_date_time_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - MetadataDateTime ** object_p; - object_p = collect_values[0].v_pointer; -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (!object_p) { -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1385 "MediaMetadata.c" - } -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (!value->data[0].v_pointer) { -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - *object_p = NULL; -#line 1391 "MediaMetadata.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - *object_p = value->data[0].v_pointer; -#line 1395 "MediaMetadata.c" - } else { -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - *object_p = metadata_date_time_ref (value->data[0].v_pointer); -#line 1399 "MediaMetadata.c" - } -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return NULL; -#line 1403 "MediaMetadata.c" -} - - -GParamSpec* -param_spec_metadata_date_time (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecMetadataDateTime* spec; -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_METADATA_DATE_TIME), NULL); -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return G_PARAM_SPEC (spec); -#line 1423 "MediaMetadata.c" -} - - -gpointer -value_get_metadata_date_time (const GValue* value) -{ -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_METADATA_DATE_TIME), NULL); -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return value->data[0].v_pointer; -#line 1434 "MediaMetadata.c" -} - - -void -value_set_metadata_date_time (GValue* value, - gpointer v_object) -{ - MetadataDateTime * old; -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_METADATA_DATE_TIME)); -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - old = value->data[0].v_pointer; -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (v_object) { -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_METADATA_DATE_TIME)); -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - value->data[0].v_pointer = v_object; -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - metadata_date_time_ref (value->data[0].v_pointer); -#line 1457 "MediaMetadata.c" - } else { -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - value->data[0].v_pointer = NULL; -#line 1461 "MediaMetadata.c" - } -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (old) { -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - metadata_date_time_unref (old); -#line 1467 "MediaMetadata.c" - } -} - - -void -value_take_metadata_date_time (GValue* value, - gpointer v_object) -{ - MetadataDateTime * old; -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_METADATA_DATE_TIME)); -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - old = value->data[0].v_pointer; -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (v_object) { -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_METADATA_DATE_TIME)); -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - value->data[0].v_pointer = v_object; -#line 1489 "MediaMetadata.c" - } else { -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - value->data[0].v_pointer = NULL; -#line 1493 "MediaMetadata.c" - } -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (old) { -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - metadata_date_time_unref (old); -#line 1499 "MediaMetadata.c" - } -} - - -static void -metadata_date_time_class_init (MetadataDateTimeClass * klass) -{ -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - metadata_date_time_parent_class = g_type_class_peek_parent (klass); -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - ((MetadataDateTimeClass *) klass)->finalize = metadata_date_time_finalize; -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_type_class_add_private (klass, sizeof (MetadataDateTimePrivate)); -#line 1513 "MediaMetadata.c" -} - - -static void -metadata_date_time_instance_init (MetadataDateTime * self) -{ -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - self->priv = METADATA_DATE_TIME_GET_PRIVATE (self); -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - self->ref_count = 1; -#line 1524 "MediaMetadata.c" -} - - -static void -metadata_date_time_finalize (MetadataDateTime * obj) -{ - MetadataDateTime * self; -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_METADATA_DATE_TIME, MetadataDateTime); -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_signal_handlers_destroy (self); -#line 1536 "MediaMetadata.c" -} - - -GType -metadata_date_time_get_type (void) -{ - static volatile gsize metadata_date_time_type_id__volatile = 0; - if (g_once_init_enter (&metadata_date_time_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_metadata_date_time_init, value_metadata_date_time_free_value, value_metadata_date_time_copy_value, value_metadata_date_time_peek_pointer, "p", value_metadata_date_time_collect_value, "p", value_metadata_date_time_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (MetadataDateTimeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) metadata_date_time_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MetadataDateTime), 0, (GInstanceInitFunc) metadata_date_time_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType metadata_date_time_type_id; - metadata_date_time_type_id = g_type_register_fundamental (g_type_fundamental_next (), "MetadataDateTime", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&metadata_date_time_type_id__volatile, metadata_date_time_type_id); - } - return metadata_date_time_type_id__volatile; -} - - -gpointer -metadata_date_time_ref (gpointer instance) -{ - MetadataDateTime * self; - self = instance; -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_atomic_int_inc (&self->ref_count); -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - return instance; -#line 1565 "MediaMetadata.c" -} - - -void -metadata_date_time_unref (gpointer instance) -{ - MetadataDateTime * self; - self = instance; -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - METADATA_DATE_TIME_GET_CLASS (self)->finalize (self); -#line 47 "/home/jens/Source/shotwell/src/MediaMetadata.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1580 "MediaMetadata.c" - } -} - - - diff --git a/src/MediaMonitor.c b/src/MediaMonitor.c deleted file mode 100644 index 551e8f0..0000000 --- a/src/MediaMonitor.c +++ /dev/null @@ -1,3463 +0,0 @@ -/* MediaMonitor.c generated by valac 0.40.4, the Vala compiler - * generated from MediaMonitor.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_MONITORABLE_UPDATES (monitorable_updates_get_type ()) -#define MONITORABLE_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE_UPDATES, MonitorableUpdates)) -#define MONITORABLE_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MONITORABLE_UPDATES, MonitorableUpdatesClass)) -#define IS_MONITORABLE_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE_UPDATES)) -#define IS_MONITORABLE_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MONITORABLE_UPDATES)) -#define MONITORABLE_UPDATES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MONITORABLE_UPDATES, MonitorableUpdatesClass)) - -typedef struct _MonitorableUpdates MonitorableUpdates; -typedef struct _MonitorableUpdatesClass MonitorableUpdatesClass; -typedef struct _MonitorableUpdatesPrivate MonitorableUpdatesPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_MONITORABLE (monitorable_get_type ()) -#define MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE, Monitorable)) -#define IS_MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE)) -#define MONITORABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MONITORABLE, MonitorableIface)) - -typedef struct _Monitorable Monitorable; -typedef struct _MonitorableIface MonitorableIface; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _ParamSpecMonitorableUpdates ParamSpecMonitorableUpdates; - -#define TYPE_MEDIA_MONITOR (media_monitor_get_type ()) -#define MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_MONITOR, MediaMonitor)) -#define MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_MONITOR, MediaMonitorClass)) -#define IS_MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_MONITOR)) -#define IS_MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_MONITOR)) -#define MEDIA_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_MONITOR, MediaMonitorClass)) - -typedef struct _MediaMonitor MediaMonitor; -typedef struct _MediaMonitorClass MediaMonitorClass; -typedef struct _MediaMonitorPrivate MediaMonitorPrivate; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define MEDIA_MONITOR_TYPE_DISCOVERED_FILE (media_monitor_discovered_file_get_type ()) - -#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ()) -#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController)) -#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) -#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER)) -#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER)) -#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) - -typedef struct _TransactionController TransactionController; -typedef struct _TransactionControllerClass TransactionControllerClass; -enum { - MEDIA_MONITOR_0_PROPERTY, - MEDIA_MONITOR_NUM_PROPERTIES -}; -static GParamSpec* media_monitor_properties[MEDIA_MONITOR_NUM_PROPERTIES]; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _monitorable_updates_unref0(var) ((var == NULL) ? NULL : (var = (monitorable_updates_unref (var), NULL))) - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _transaction_controller_unref0(var) ((var == NULL) ? NULL : (var = (transaction_controller_unref (var), NULL))) -#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL))) - -struct _MonitorableIface { - GTypeInterface parent_iface; - gboolean (*is_offline) (Monitorable* self); - void (*mark_online) (Monitorable* self); - void (*mark_offline) (Monitorable* self); - void (*set_master_file) (Monitorable* self, GFile* file); - void (*set_master_timestamp) (Monitorable* self, GFileInfo* info); -}; - -struct _MonitorableUpdates { - GTypeInstance parent_instance; - volatile int ref_count; - MonitorableUpdatesPrivate * priv; - Monitorable* monitorable; -}; - -struct _MonitorableUpdatesClass { - GTypeClass parent_class; - void (*finalize) (MonitorableUpdates *self); - gboolean (*is_in_alteration) (MonitorableUpdates* self); - void (*set_master_file) (MonitorableUpdates* self, GFile* file); - void (*set_master_file_info_altered) (MonitorableUpdates* self, gboolean altered); - void (*set_master_file_info) (MonitorableUpdates* self, GFileInfo* info); - void (*set_master_in_alteration) (MonitorableUpdates* self, gboolean in_alteration); - void (*set_master_alterations_complete) (MonitorableUpdates* self, GFileInfo* info); - void (*mark_offline) (MonitorableUpdates* self); - void (*mark_online) (MonitorableUpdates* self); - void (*reset_online_offline) (MonitorableUpdates* self); - gboolean (*is_all_updated) (MonitorableUpdates* self); -}; - -struct _MonitorableUpdatesPrivate { - GFile* master_file; - gboolean master_file_info_altered; - GFileInfo* master_file_info; - gboolean master_in_alteration; - gboolean online; - gboolean offline; -}; - -struct _ParamSpecMonitorableUpdates { - GParamSpec parent_instance; -}; - -typedef enum { - MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED, - MEDIA_MONITOR_DISCOVERED_FILE_IGNORE, - MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN -} MediaMonitorDiscoveredFile; - -struct _MediaMonitor { - GObject parent_instance; - MediaMonitorPrivate * priv; -}; - -struct _MediaMonitorClass { - GObjectClass parent_class; - MediaSourceCollection* (*get_media_source_collection) (MediaMonitor* self); - void (*close) (MediaMonitor* self); - gchar* (*to_string) (MediaMonitor* self); - MonitorableUpdates* (*create_updates) (MediaMonitor* self, Monitorable* monitorable); - void (*on_media_source_destroyed) (MediaMonitor* self, DataSource* source); - void (*notify_discovery_started) (MediaMonitor* self); - MediaMonitorDiscoveredFile (*notify_file_discovered) (MediaMonitor* self, GFile* file, GFileInfo* info, Monitorable* * monitorable); - GeeCollection* (*candidates_for_unknown_file) (MediaMonitor* self, GFile* file, GFileInfo* info, MediaMonitorDiscoveredFile* _result_); - GFile** (*get_auxilliary_backing_files) (MediaMonitor* self, Monitorable* monitorable, int* result_length1); - void (*update_backing_file_info) (MediaMonitor* self, Monitorable* monitorable, GFile* file, GFileInfo* info); - void (*notify_discovery_completing) (MediaMonitor* self); - gboolean (*is_file_represented) (MediaMonitor* self, GFile* file); - gboolean (*notify_file_created) (MediaMonitor* self, GFile* file, GFileInfo* info); - gboolean (*notify_file_moved) (MediaMonitor* self, GFile* old_file, GFile* new_file, GFileInfo* new_file_info); - gboolean (*notify_file_altered) (MediaMonitor* self, GFile* file); - gboolean (*notify_file_attributes_altered) (MediaMonitor* self, GFile* file); - gboolean (*notify_file_alteration_completed) (MediaMonitor* self, GFile* file, GFileInfo* info); - gboolean (*notify_file_deleted) (MediaMonitor* self, GFile* file); - void (*process_updates) (MediaMonitor* self, GeeCollection* all_updates, TransactionController* controller, gint* op_count, GError** error); -}; - -struct _MediaMonitorPrivate { - MediaSourceCollection* sources; - GCancellable* cancellable; - GeeHashMap* pending_updates; - guint pending_updates_timer_id; -}; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () - -static gpointer monitorable_updates_parent_class = NULL; -static gpointer media_monitor_parent_class = NULL; - -gpointer monitorable_updates_ref (gpointer instance); -void monitorable_updates_unref (gpointer instance); -GParamSpec* param_spec_monitorable_updates (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_monitorable_updates (GValue* value, - gpointer v_object); -void value_take_monitorable_updates (GValue* value, - gpointer v_object); -gpointer value_get_monitorable_updates (const GValue* value); -GType monitorable_updates_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType monitorable_get_type (void) G_GNUC_CONST; -#define MONITORABLE_UPDATES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MONITORABLE_UPDATES, MonitorableUpdatesPrivate)) -MonitorableUpdates* monitorable_updates_new (Monitorable* monitorable); -MonitorableUpdates* monitorable_updates_construct (GType object_type, - Monitorable* monitorable); -GFile* monitorable_updates_get_master_file (MonitorableUpdates* self); -GFileInfo* monitorable_updates_get_master_file_info (MonitorableUpdates* self); -gboolean monitorable_updates_is_in_alteration (MonitorableUpdates* self); -static gboolean monitorable_updates_real_is_in_alteration (MonitorableUpdates* self); -gboolean monitorable_updates_is_set_offline (MonitorableUpdates* self); -gboolean monitorable_updates_is_set_online (MonitorableUpdates* self); -void monitorable_updates_set_master_file (MonitorableUpdates* self, - GFile* file); -static void monitorable_updates_real_set_master_file (MonitorableUpdates* self, - GFile* file); -void monitorable_updates_mark_online (MonitorableUpdates* self); -void monitorable_updates_set_master_file_info_altered (MonitorableUpdates* self, - gboolean altered); -static void monitorable_updates_real_set_master_file_info_altered (MonitorableUpdates* self, - gboolean altered); -void monitorable_updates_set_master_file_info (MonitorableUpdates* self, - GFileInfo* info); -static void monitorable_updates_real_set_master_file_info (MonitorableUpdates* self, - GFileInfo* info); -void monitorable_updates_set_master_in_alteration (MonitorableUpdates* self, - gboolean in_alteration); -static void monitorable_updates_real_set_master_in_alteration (MonitorableUpdates* self, - gboolean in_alteration); -void monitorable_updates_set_master_alterations_complete (MonitorableUpdates* self, - GFileInfo* info); -static void monitorable_updates_real_set_master_alterations_complete (MonitorableUpdates* self, - GFileInfo* info); -void monitorable_updates_mark_offline (MonitorableUpdates* self); -static void monitorable_updates_real_mark_offline (MonitorableUpdates* self); -static void monitorable_updates_real_mark_online (MonitorableUpdates* self); -void monitorable_updates_reset_online_offline (MonitorableUpdates* self); -static void monitorable_updates_real_reset_online_offline (MonitorableUpdates* self); -gboolean monitorable_updates_is_all_updated (MonitorableUpdates* self); -static gboolean monitorable_updates_real_is_all_updated (MonitorableUpdates* self); -static void monitorable_updates_finalize (MonitorableUpdates * obj); -GType media_monitor_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -GType media_monitor_discovered_file_get_type (void) G_GNUC_CONST; -gpointer transaction_controller_ref (gpointer instance); -void transaction_controller_unref (gpointer instance); -GParamSpec* param_spec_transaction_controller (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_transaction_controller (GValue* value, - gpointer v_object); -void value_take_transaction_controller (GValue* value, - gpointer v_object); -gpointer value_get_transaction_controller (const GValue* value); -GType transaction_controller_get_type (void) G_GNUC_CONST; -#define MEDIA_MONITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_MONITOR, MediaMonitorPrivate)) -void media_monitor_on_media_source_destroyed (MediaMonitor* self, - DataSource* source); -static void _media_monitor_on_media_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self); -static void _media_monitor_on_media_source_destroyed_source_collection_unlinked_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self); -#define MEDIA_MONITOR_MAX_OPERATIONS_PER_CYCLE 100 -#define MEDIA_MONITOR_FLUSH_PENDING_UPDATES_MSEC 500 -MediaMonitor* media_monitor_construct (GType object_type, - MediaSourceCollection* sources, - GCancellable* cancellable); -static gboolean media_monitor_on_flush_pending_updates (MediaMonitor* self); -static gboolean _media_monitor_on_flush_pending_updates_gsource_func (gpointer self); -MediaSourceCollection* media_monitor_get_media_source_collection (MediaMonitor* self); -static MediaSourceCollection* media_monitor_real_get_media_source_collection (MediaMonitor* self); -void media_monitor_close (MediaMonitor* self); -static void media_monitor_real_close (MediaMonitor* self); -gchar* media_monitor_to_string (MediaMonitor* self); -static gchar* media_monitor_real_to_string (MediaMonitor* self); -gchar* data_collection_to_string (DataCollection* self); -MonitorableUpdates* media_monitor_create_updates (MediaMonitor* self, - Monitorable* monitorable); -static MonitorableUpdates* media_monitor_real_create_updates (MediaMonitor* self, - Monitorable* monitorable); -static void media_monitor_real_on_media_source_destroyed (MediaMonitor* self, - DataSource* source); -void media_monitor_remove_updates (MediaMonitor* self, - Monitorable* monitorable); -void media_monitor_notify_discovery_started (MediaMonitor* self); -static void media_monitor_real_notify_discovery_started (MediaMonitor* self); -MediaMonitorDiscoveredFile media_monitor_notify_file_discovered (MediaMonitor* self, - GFile* file, - GFileInfo* info, - Monitorable* * monitorable); -static MediaMonitorDiscoveredFile media_monitor_real_notify_file_discovered (MediaMonitor* self, - GFile* file, - GFileInfo* info, - Monitorable* * monitorable); -GeeCollection* media_monitor_candidates_for_unknown_file (MediaMonitor* self, - GFile* file, - GFileInfo* info, - MediaMonitorDiscoveredFile* _result_); -static GeeCollection* media_monitor_real_candidates_for_unknown_file (MediaMonitor* self, - GFile* file, - GFileInfo* info, - MediaMonitorDiscoveredFile* _result_); -GFile** media_monitor_get_auxilliary_backing_files (MediaMonitor* self, - Monitorable* monitorable, - int* result_length1); -static GFile** media_monitor_real_get_auxilliary_backing_files (MediaMonitor* self, - Monitorable* monitorable, - int* result_length1); -void media_monitor_update_backing_file_info (MediaMonitor* self, - Monitorable* monitorable, - GFile* file, - GFileInfo* info); -static void media_monitor_real_update_backing_file_info (MediaMonitor* self, - Monitorable* monitorable, - GFile* file, - GFileInfo* info); -void media_monitor_notify_discovery_completing (MediaMonitor* self); -static void media_monitor_real_notify_discovery_completing (MediaMonitor* self); -gboolean media_monitor_is_file_represented (MediaMonitor* self, - GFile* file); -static gboolean media_monitor_real_is_file_represented (MediaMonitor* self, - GFile* file); -gboolean media_monitor_notify_file_created (MediaMonitor* self, - GFile* file, - GFileInfo* info); -static gboolean media_monitor_real_notify_file_created (MediaMonitor* self, - GFile* file, - GFileInfo* info); -gboolean media_monitor_notify_file_moved (MediaMonitor* self, - GFile* old_file, - GFile* new_file, - GFileInfo* new_file_info); -static gboolean media_monitor_real_notify_file_moved (MediaMonitor* self, - GFile* old_file, - GFile* new_file, - GFileInfo* new_file_info); -gboolean media_monitor_notify_file_altered (MediaMonitor* self, - GFile* file); -static gboolean media_monitor_real_notify_file_altered (MediaMonitor* self, - GFile* file); -gboolean media_monitor_notify_file_attributes_altered (MediaMonitor* self, - GFile* file); -static gboolean media_monitor_real_notify_file_attributes_altered (MediaMonitor* self, - GFile* file); -gboolean media_monitor_notify_file_alteration_completed (MediaMonitor* self, - GFile* file, - GFileInfo* info); -static gboolean media_monitor_real_notify_file_alteration_completed (MediaMonitor* self, - GFile* file, - GFileInfo* info); -gboolean media_monitor_notify_file_deleted (MediaMonitor* self, - GFile* file); -static gboolean media_monitor_real_notify_file_deleted (MediaMonitor* self, - GFile* file); -void media_monitor_mdbg (const gchar* msg); -gboolean media_monitor_has_pending_updates (MediaMonitor* self); -GeeCollection* media_monitor_get_monitorables (MediaMonitor* self); -MonitorableUpdates* media_monitor_fetch_updates (MediaMonitor* self, - Monitorable* monitorable); -MonitorableUpdates* media_monitor_get_existing_updates (MediaMonitor* self, - Monitorable* monitorable); -gboolean media_monitor_is_online (MediaMonitor* self, - Monitorable* monitorable); -gboolean monitorable_is_offline (Monitorable* self); -gboolean media_monitor_is_offline (MediaMonitor* self, - Monitorable* monitorable); -GFile* media_monitor_get_master_file (MediaMonitor* self, - Monitorable* monitorable); -GFile* media_source_get_master_file (MediaSource* self); -void media_monitor_update_master_file (MediaMonitor* self, - Monitorable* monitorable, - GFile* file); -void media_monitor_update_master_file_info_altered (MediaMonitor* self, - Monitorable* monitorable); -void media_monitor_update_master_file_in_alteration (MediaMonitor* self, - Monitorable* monitorable, - gboolean in_alteration); -void media_monitor_update_master_file_alterations_completed (MediaMonitor* self, - Monitorable* monitorable, - GFileInfo* info); -void media_monitor_update_online (MediaMonitor* self, - Monitorable* monitorable); -void media_monitor_update_offline (MediaMonitor* self, - Monitorable* monitorable); -void media_monitor_process_updates (MediaMonitor* self, - GeeCollection* all_updates, - TransactionController* controller, - gint* op_count, - GError** error); -static void media_monitor_real_process_updates (MediaMonitor* self, - GeeCollection* all_updates, - TransactionController* controller, - gint* op_count, - GError** error); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -void monitorable_set_many_master_file (GeeMap* map, - TransactionController* controller, - GError** error); -void monitorable_set_many_master_timestamp (GeeMap* map, - TransactionController* controller, - GError** error); -void monitorable_mark_many_online_offline (GeeCollection* online, - GeeCollection* offline, - TransactionController* controller, - GError** error); -TransactionController* media_source_collection_get_transaction_controller (MediaSourceCollection* self); -void transaction_controller_begin (TransactionController* self); -void transaction_controller_commit (TransactionController* self); -GQuark database_error_quark (void); -void app_window_database_error (GError* err); -void app_window_panic (const gchar* msg); -static void media_monitor_finalize (GObject * obj); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 18 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return self ? g_object_ref (self) : NULL; -#line 543 "MediaMonitor.c" -} - - -MonitorableUpdates* -monitorable_updates_construct (GType object_type, - Monitorable* monitorable) -{ - MonitorableUpdates* self = NULL; - Monitorable* _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL); -#line 17 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self = (MonitorableUpdates*) g_type_create_instance (object_type); -#line 18 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = _g_object_ref0 (monitorable); -#line 18 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (self->monitorable); -#line 18 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->monitorable = _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return self; -#line 565 "MediaMonitor.c" -} - - -MonitorableUpdates* -monitorable_updates_new (Monitorable* monitorable) -{ -#line 17 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return monitorable_updates_construct (TYPE_MONITORABLE_UPDATES, monitorable); -#line 574 "MediaMonitor.c" -} - - -GFile* -monitorable_updates_get_master_file (MonitorableUpdates* self) -{ - GFile* result = NULL; - GFile* _tmp0_; - GFile* _tmp1_; -#line 21 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE_UPDATES (self), NULL); -#line 22 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = self->priv->master_file; -#line 22 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 22 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = _tmp1_; -#line 22 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 594 "MediaMonitor.c" -} - - -GFileInfo* -monitorable_updates_get_master_file_info (MonitorableUpdates* self) -{ - GFileInfo* result = NULL; - GFileInfo* _tmp0_; - GFileInfo* _tmp1_; -#line 25 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE_UPDATES (self), NULL); -#line 26 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = self->priv->master_file_info; -#line 26 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 26 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = _tmp1_; -#line 26 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 614 "MediaMonitor.c" -} - - -static gboolean -monitorable_updates_real_is_in_alteration (MonitorableUpdates* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 30 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = self->priv->master_in_alteration; -#line 30 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = _tmp0_; -#line 30 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 629 "MediaMonitor.c" -} - - -gboolean -monitorable_updates_is_in_alteration (MonitorableUpdates* self) -{ -#line 29 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE_UPDATES (self), FALSE); -#line 29 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return MONITORABLE_UPDATES_GET_CLASS (self)->is_in_alteration (self); -#line 640 "MediaMonitor.c" -} - - -gboolean -monitorable_updates_is_set_offline (MonitorableUpdates* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 33 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE_UPDATES (self), FALSE); -#line 34 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = self->priv->offline; -#line 34 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = _tmp0_; -#line 34 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 657 "MediaMonitor.c" -} - - -gboolean -monitorable_updates_is_set_online (MonitorableUpdates* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 37 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE_UPDATES (self), FALSE); -#line 38 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = self->priv->online; -#line 38 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = _tmp0_; -#line 38 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 674 "MediaMonitor.c" -} - - -static void -monitorable_updates_real_set_master_file (MonitorableUpdates* self, - GFile* file) -{ - GFile* _tmp0_; -#line 41 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail ((file == NULL) || G_IS_FILE (file)); -#line 42 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = _g_object_ref0 (file); -#line 42 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (self->priv->master_file); -#line 42 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->master_file = _tmp0_; -#line 44 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (file != NULL) { -#line 45 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_mark_online (self); -#line 695 "MediaMonitor.c" - } -} - - -void -monitorable_updates_set_master_file (MonitorableUpdates* self, - GFile* file) -{ -#line 41 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MONITORABLE_UPDATES (self)); -#line 41 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - MONITORABLE_UPDATES_GET_CLASS (self)->set_master_file (self, file); -#line 708 "MediaMonitor.c" -} - - -static void -monitorable_updates_real_set_master_file_info_altered (MonitorableUpdates* self, - gboolean altered) -{ -#line 49 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->master_file_info_altered = altered; -#line 51 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (altered) { -#line 52 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_mark_online (self); -#line 722 "MediaMonitor.c" - } -} - - -void -monitorable_updates_set_master_file_info_altered (MonitorableUpdates* self, - gboolean altered) -{ -#line 48 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MONITORABLE_UPDATES (self)); -#line 48 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - MONITORABLE_UPDATES_GET_CLASS (self)->set_master_file_info_altered (self, altered); -#line 735 "MediaMonitor.c" -} - - -static void -monitorable_updates_real_set_master_file_info (MonitorableUpdates* self, - GFileInfo* info) -{ - GFileInfo* _tmp0_; - GFileInfo* _tmp1_; -#line 55 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail ((info == NULL) || G_IS_FILE_INFO (info)); -#line 56 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = _g_object_ref0 (info); -#line 56 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (self->priv->master_file_info); -#line 56 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->master_file_info = _tmp0_; -#line 58 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = self->priv->master_file_info; -#line 58 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp1_ == NULL) { -#line 59 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_set_master_file_info_altered (self, FALSE); -#line 759 "MediaMonitor.c" - } -} - - -void -monitorable_updates_set_master_file_info (MonitorableUpdates* self, - GFileInfo* info) -{ -#line 55 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MONITORABLE_UPDATES (self)); -#line 55 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - MONITORABLE_UPDATES_GET_CLASS (self)->set_master_file_info (self, info); -#line 772 "MediaMonitor.c" -} - - -static void -monitorable_updates_real_set_master_in_alteration (MonitorableUpdates* self, - gboolean in_alteration) -{ -#line 63 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->master_in_alteration = in_alteration; -#line 782 "MediaMonitor.c" -} - - -void -monitorable_updates_set_master_in_alteration (MonitorableUpdates* self, - gboolean in_alteration) -{ -#line 62 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MONITORABLE_UPDATES (self)); -#line 62 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - MONITORABLE_UPDATES_GET_CLASS (self)->set_master_in_alteration (self, in_alteration); -#line 794 "MediaMonitor.c" -} - - -static void -monitorable_updates_real_set_master_alterations_complete (MonitorableUpdates* self, - GFileInfo* info) -{ -#line 66 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 67 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_set_master_in_alteration (self, FALSE); -#line 68 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_set_master_file_info (self, info); -#line 69 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_mark_online (self); -#line 810 "MediaMonitor.c" -} - - -void -monitorable_updates_set_master_alterations_complete (MonitorableUpdates* self, - GFileInfo* info) -{ -#line 66 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MONITORABLE_UPDATES (self)); -#line 66 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - MONITORABLE_UPDATES_GET_CLASS (self)->set_master_alterations_complete (self, info); -#line 822 "MediaMonitor.c" -} - - -static void -monitorable_updates_real_mark_offline (MonitorableUpdates* self) -{ -#line 73 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->online = FALSE; -#line 74 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->offline = TRUE; -#line 76 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->master_file_info_altered = FALSE; -#line 77 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (self->priv->master_file_info); -#line 77 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->master_file_info = NULL; -#line 78 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->master_in_alteration = FALSE; -#line 841 "MediaMonitor.c" -} - - -void -monitorable_updates_mark_offline (MonitorableUpdates* self) -{ -#line 72 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MONITORABLE_UPDATES (self)); -#line 72 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - MONITORABLE_UPDATES_GET_CLASS (self)->mark_offline (self); -#line 852 "MediaMonitor.c" -} - - -static void -monitorable_updates_real_mark_online (MonitorableUpdates* self) -{ -#line 82 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->online = TRUE; -#line 83 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->offline = FALSE; -#line 863 "MediaMonitor.c" -} - - -void -monitorable_updates_mark_online (MonitorableUpdates* self) -{ -#line 81 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MONITORABLE_UPDATES (self)); -#line 81 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - MONITORABLE_UPDATES_GET_CLASS (self)->mark_online (self); -#line 874 "MediaMonitor.c" -} - - -static void -monitorable_updates_real_reset_online_offline (MonitorableUpdates* self) -{ -#line 87 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->online = FALSE; -#line 88 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->offline = FALSE; -#line 885 "MediaMonitor.c" -} - - -void -monitorable_updates_reset_online_offline (MonitorableUpdates* self) -{ -#line 86 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MONITORABLE_UPDATES (self)); -#line 86 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - MONITORABLE_UPDATES_GET_CLASS (self)->reset_online_offline (self); -#line 896 "MediaMonitor.c" -} - - -static gboolean -monitorable_updates_real_is_all_updated (MonitorableUpdates* self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - gboolean _tmp3_ = FALSE; - gboolean _tmp4_ = FALSE; - GFile* _tmp5_; -#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp5_ = self->priv->master_file; -#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp5_ == NULL) { -#line 914 "MediaMonitor.c" - gboolean _tmp6_; -#line 93 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp6_ = self->priv->master_file_info_altered; -#line 93 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp4_ = _tmp6_ == FALSE; -#line 920 "MediaMonitor.c" - } else { -#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp4_ = FALSE; -#line 924 "MediaMonitor.c" - } -#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp4_) { -#line 928 "MediaMonitor.c" - GFileInfo* _tmp7_; -#line 94 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp7_ = self->priv->master_file_info; -#line 94 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp3_ = _tmp7_ == NULL; -#line 934 "MediaMonitor.c" - } else { -#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp3_ = FALSE; -#line 938 "MediaMonitor.c" - } -#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp3_) { -#line 942 "MediaMonitor.c" - gboolean _tmp8_; -#line 95 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp8_ = self->priv->master_in_alteration; -#line 95 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp2_ = _tmp8_ == FALSE; -#line 948 "MediaMonitor.c" - } else { -#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp2_ = FALSE; -#line 952 "MediaMonitor.c" - } -#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp2_) { -#line 956 "MediaMonitor.c" - gboolean _tmp9_; -#line 96 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp9_ = self->priv->online; -#line 96 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = _tmp9_ == FALSE; -#line 962 "MediaMonitor.c" - } else { -#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = FALSE; -#line 966 "MediaMonitor.c" - } -#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp1_) { -#line 970 "MediaMonitor.c" - gboolean _tmp10_; -#line 97 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp10_ = self->priv->offline; -#line 97 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = _tmp10_ == FALSE; -#line 976 "MediaMonitor.c" - } else { -#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = FALSE; -#line 980 "MediaMonitor.c" - } -#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = _tmp0_; -#line 92 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 986 "MediaMonitor.c" -} - - -gboolean -monitorable_updates_is_all_updated (MonitorableUpdates* self) -{ -#line 91 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE_UPDATES (self), FALSE); -#line 91 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return MONITORABLE_UPDATES_GET_CLASS (self)->is_all_updated (self); -#line 997 "MediaMonitor.c" -} - - -static void -value_monitorable_updates_init (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - value->data[0].v_pointer = NULL; -#line 1006 "MediaMonitor.c" -} - - -static void -value_monitorable_updates_free_value (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_unref (value->data[0].v_pointer); -#line 1017 "MediaMonitor.c" - } -} - - -static void -value_monitorable_updates_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (src_value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - dest_value->data[0].v_pointer = monitorable_updates_ref (src_value->data[0].v_pointer); -#line 1030 "MediaMonitor.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - dest_value->data[0].v_pointer = NULL; -#line 1034 "MediaMonitor.c" - } -} - - -static gpointer -value_monitorable_updates_peek_pointer (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return value->data[0].v_pointer; -#line 1044 "MediaMonitor.c" -} - - -static gchar* -value_monitorable_updates_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (collect_values[0].v_pointer) { -#line 1056 "MediaMonitor.c" - MonitorableUpdates * object; - object = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (object->parent_instance.g_class == NULL) { -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1063 "MediaMonitor.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1067 "MediaMonitor.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - value->data[0].v_pointer = monitorable_updates_ref (object); -#line 1071 "MediaMonitor.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - value->data[0].v_pointer = NULL; -#line 1075 "MediaMonitor.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return NULL; -#line 1079 "MediaMonitor.c" -} - - -static gchar* -value_monitorable_updates_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - MonitorableUpdates ** object_p; - object_p = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (!object_p) { -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1095 "MediaMonitor.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (!value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - *object_p = NULL; -#line 1101 "MediaMonitor.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - *object_p = value->data[0].v_pointer; -#line 1105 "MediaMonitor.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - *object_p = monitorable_updates_ref (value->data[0].v_pointer); -#line 1109 "MediaMonitor.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return NULL; -#line 1113 "MediaMonitor.c" -} - - -GParamSpec* -param_spec_monitorable_updates (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecMonitorableUpdates* spec; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_MONITORABLE_UPDATES), NULL); -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return G_PARAM_SPEC (spec); -#line 1133 "MediaMonitor.c" -} - - -gpointer -value_get_monitorable_updates (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MONITORABLE_UPDATES), NULL); -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return value->data[0].v_pointer; -#line 1144 "MediaMonitor.c" -} - - -void -value_set_monitorable_updates (GValue* value, - gpointer v_object) -{ - MonitorableUpdates * old; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MONITORABLE_UPDATES)); -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MONITORABLE_UPDATES)); -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - value->data[0].v_pointer = v_object; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_ref (value->data[0].v_pointer); -#line 1167 "MediaMonitor.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - value->data[0].v_pointer = NULL; -#line 1171 "MediaMonitor.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_unref (old); -#line 1177 "MediaMonitor.c" - } -} - - -void -value_take_monitorable_updates (GValue* value, - gpointer v_object) -{ - MonitorableUpdates * old; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MONITORABLE_UPDATES)); -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MONITORABLE_UPDATES)); -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - value->data[0].v_pointer = v_object; -#line 1199 "MediaMonitor.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - value->data[0].v_pointer = NULL; -#line 1203 "MediaMonitor.c" - } -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_unref (old); -#line 1209 "MediaMonitor.c" - } -} - - -static void -monitorable_updates_class_init (MonitorableUpdatesClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MonitorableUpdatesClass *) klass)->finalize = monitorable_updates_finalize; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_type_class_add_private (klass, sizeof (MonitorableUpdatesPrivate)); -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MonitorableUpdatesClass *) klass)->is_in_alteration = (gboolean (*) (MonitorableUpdates *)) monitorable_updates_real_is_in_alteration; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MonitorableUpdatesClass *) klass)->set_master_file = (void (*) (MonitorableUpdates *, GFile*)) monitorable_updates_real_set_master_file; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MonitorableUpdatesClass *) klass)->set_master_file_info_altered = (void (*) (MonitorableUpdates *, gboolean)) monitorable_updates_real_set_master_file_info_altered; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MonitorableUpdatesClass *) klass)->set_master_file_info = (void (*) (MonitorableUpdates *, GFileInfo*)) monitorable_updates_real_set_master_file_info; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MonitorableUpdatesClass *) klass)->set_master_in_alteration = (void (*) (MonitorableUpdates *, gboolean)) monitorable_updates_real_set_master_in_alteration; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MonitorableUpdatesClass *) klass)->set_master_alterations_complete = (void (*) (MonitorableUpdates *, GFileInfo*)) monitorable_updates_real_set_master_alterations_complete; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MonitorableUpdatesClass *) klass)->mark_offline = (void (*) (MonitorableUpdates *)) monitorable_updates_real_mark_offline; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MonitorableUpdatesClass *) klass)->mark_online = (void (*) (MonitorableUpdates *)) monitorable_updates_real_mark_online; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MonitorableUpdatesClass *) klass)->reset_online_offline = (void (*) (MonitorableUpdates *)) monitorable_updates_real_reset_online_offline; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MonitorableUpdatesClass *) klass)->is_all_updated = (gboolean (*) (MonitorableUpdates *)) monitorable_updates_real_is_all_updated; -#line 1243 "MediaMonitor.c" -} - - -static void -monitorable_updates_instance_init (MonitorableUpdates * self) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv = MONITORABLE_UPDATES_GET_PRIVATE (self); -#line 10 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->master_file = NULL; -#line 11 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->master_file_info_altered = FALSE; -#line 12 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->master_file_info = NULL; -#line 13 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->master_in_alteration = FALSE; -#line 14 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->online = FALSE; -#line 15 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->offline = FALSE; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->ref_count = 1; -#line 1266 "MediaMonitor.c" -} - - -static void -monitorable_updates_finalize (MonitorableUpdates * obj) -{ - MonitorableUpdates * self; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MONITORABLE_UPDATES, MonitorableUpdates); -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_signal_handlers_destroy (self); -#line 8 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (self->monitorable); -#line 10 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (self->priv->master_file); -#line 12 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (self->priv->master_file_info); -#line 1284 "MediaMonitor.c" -} - - -GType -monitorable_updates_get_type (void) -{ - static volatile gsize monitorable_updates_type_id__volatile = 0; - if (g_once_init_enter (&monitorable_updates_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_monitorable_updates_init, value_monitorable_updates_free_value, value_monitorable_updates_copy_value, value_monitorable_updates_peek_pointer, "p", value_monitorable_updates_collect_value, "p", value_monitorable_updates_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (MonitorableUpdatesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) monitorable_updates_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MonitorableUpdates), 0, (GInstanceInitFunc) monitorable_updates_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType monitorable_updates_type_id; - monitorable_updates_type_id = g_type_register_fundamental (g_type_fundamental_next (), "MonitorableUpdates", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&monitorable_updates_type_id__volatile, monitorable_updates_type_id); - } - return monitorable_updates_type_id__volatile; -} - - -gpointer -monitorable_updates_ref (gpointer instance) -{ - MonitorableUpdates * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_atomic_int_inc (&self->ref_count); -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return instance; -#line 1313 "MediaMonitor.c" -} - - -void -monitorable_updates_unref (gpointer instance) -{ - MonitorableUpdates * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - MONITORABLE_UPDATES_GET_CLASS (self)->finalize (self); -#line 7 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1328 "MediaMonitor.c" - } -} - - -static void -_media_monitor_on_media_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self) -{ -#line 130 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - media_monitor_on_media_source_destroyed ((MediaMonitor*) self, source); -#line 1340 "MediaMonitor.c" -} - - -static void -_media_monitor_on_media_source_destroyed_source_collection_unlinked_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self) -{ -#line 131 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - media_monitor_on_media_source_destroyed ((MediaMonitor*) self, source); -#line 1351 "MediaMonitor.c" -} - - -GType -media_monitor_discovered_file_get_type (void) -{ - static volatile gsize media_monitor_discovered_file_type_id__volatile = 0; - if (g_once_init_enter (&media_monitor_discovered_file_type_id__volatile)) { - static const GEnumValue values[] = {{MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED, "MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED", "represented"}, {MEDIA_MONITOR_DISCOVERED_FILE_IGNORE, "MEDIA_MONITOR_DISCOVERED_FILE_IGNORE", "ignore"}, {MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN, "MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN", "unknown"}, {0, NULL, NULL}}; - GType media_monitor_discovered_file_type_id; - media_monitor_discovered_file_type_id = g_enum_register_static ("MediaMonitorDiscoveredFile", values); - g_once_init_leave (&media_monitor_discovered_file_type_id__volatile, media_monitor_discovered_file_type_id); - } - return media_monitor_discovered_file_type_id__volatile; -} - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 119 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return self ? data_collection_ref (self) : NULL; -#line 1374 "MediaMonitor.c" -} - - -static gboolean -_media_monitor_on_flush_pending_updates_gsource_func (gpointer self) -{ - gboolean result; - result = media_monitor_on_flush_pending_updates ((MediaMonitor*) self); -#line 125 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 1385 "MediaMonitor.c" -} - - -MediaMonitor* -media_monitor_construct (GType object_type, - MediaSourceCollection* sources, - GCancellable* cancellable) -{ - MediaMonitor * self = NULL; - MediaSourceCollection* _tmp0_; - GCancellable* _tmp1_; -#line 118 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_COLLECTION (sources), NULL); -#line 118 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL); -#line 118 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self = (MediaMonitor*) g_object_new (object_type, NULL); -#line 119 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = _data_collection_ref0 (sources); -#line 119 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _data_collection_unref0 (self->priv->sources); -#line 119 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->sources = _tmp0_; -#line 120 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = _g_object_ref0 (cancellable); -#line 120 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (self->priv->cancellable); -#line 120 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->cancellable = _tmp1_; -#line 122 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _media_monitor_on_media_source_destroyed_source_collection_item_destroyed, self, 0); -#line 123 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_SOURCE_COLLECTION, SourceCollection), "unlinked-destroyed", (GCallback) _media_monitor_on_media_source_destroyed_source_collection_unlinked_destroyed, self, 0); -#line 125 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->pending_updates_timer_id = g_timeout_add_full (G_PRIORITY_LOW, (guint) MEDIA_MONITOR_FLUSH_PENDING_UPDATES_MSEC, _media_monitor_on_flush_pending_updates_gsource_func, g_object_ref (self), g_object_unref); -#line 118 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return self; -#line 1423 "MediaMonitor.c" -} - - -static MediaSourceCollection* -media_monitor_real_get_media_source_collection (MediaMonitor* self) -{ -#line 134 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_critical ("Type `%s' does not implement abstract method `media_monitor_get_media_source_collection'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 134 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return NULL; -#line 1434 "MediaMonitor.c" -} - - -MediaSourceCollection* -media_monitor_get_media_source_collection (MediaMonitor* self) -{ -#line 134 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL); -#line 134 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return MEDIA_MONITOR_GET_CLASS (self)->get_media_source_collection (self); -#line 1445 "MediaMonitor.c" -} - - -static void -media_monitor_real_close (MediaMonitor* self) -{ -} - - -void -media_monitor_close (MediaMonitor* self) -{ -#line 136 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MEDIA_MONITOR (self)); -#line 136 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - MEDIA_MONITOR_GET_CLASS (self)->close (self); -#line 1462 "MediaMonitor.c" -} - - -static gchar* -media_monitor_real_to_string (MediaMonitor* self) -{ - gchar* result = NULL; - MediaSourceCollection* _tmp0_; - MediaSourceCollection* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = media_monitor_get_media_source_collection (self); -#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = _tmp0_; -#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp2_ = data_collection_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp3_ = _tmp2_; -#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp4_ = g_strdup_printf ("MediaMonitor for %s", _tmp3_); -#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp5_ = _tmp4_; -#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_free0 (_tmp3_); -#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _data_collection_unref0 (_tmp1_); -#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = _tmp5_; -#line 140 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 1496 "MediaMonitor.c" -} - - -gchar* -media_monitor_to_string (MediaMonitor* self) -{ -#line 139 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL); -#line 139 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return MEDIA_MONITOR_GET_CLASS (self)->to_string (self); -#line 1507 "MediaMonitor.c" -} - - -static MonitorableUpdates* -media_monitor_real_create_updates (MediaMonitor* self, - Monitorable* monitorable) -{ - MonitorableUpdates* result = NULL; - MonitorableUpdates* _tmp0_; -#line 143 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL); -#line 144 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = monitorable_updates_new (monitorable); -#line 144 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = _tmp0_; -#line 144 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 1525 "MediaMonitor.c" -} - - -MonitorableUpdates* -media_monitor_create_updates (MediaMonitor* self, - Monitorable* monitorable) -{ -#line 143 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL); -#line 143 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return MEDIA_MONITOR_GET_CLASS (self)->create_updates (self, monitorable); -#line 1537 "MediaMonitor.c" -} - - -static void -media_monitor_real_on_media_source_destroyed (MediaMonitor* self, - DataSource* source) -{ -#line 147 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 148 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - media_monitor_remove_updates (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MONITORABLE, Monitorable)); -#line 1549 "MediaMonitor.c" -} - - -void -media_monitor_on_media_source_destroyed (MediaMonitor* self, - DataSource* source) -{ -#line 147 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MEDIA_MONITOR (self)); -#line 147 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - MEDIA_MONITOR_GET_CLASS (self)->on_media_source_destroyed (self, source); -#line 1561 "MediaMonitor.c" -} - - -static void -media_monitor_real_notify_discovery_started (MediaMonitor* self) -{ -} - - -void -media_monitor_notify_discovery_started (MediaMonitor* self) -{ -#line 155 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MEDIA_MONITOR (self)); -#line 155 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - MEDIA_MONITOR_GET_CLASS (self)->notify_discovery_started (self); -#line 1578 "MediaMonitor.c" -} - - -static MediaMonitorDiscoveredFile -media_monitor_real_notify_file_discovered (MediaMonitor* self, - GFile* file, - GFileInfo* info, - Monitorable* * monitorable) -{ -#line 160 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_critical ("Type `%s' does not implement abstract method `media_monitor_notify_file_discovered'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 160 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return 0; -#line 1592 "MediaMonitor.c" -} - - -MediaMonitorDiscoveredFile -media_monitor_notify_file_discovered (MediaMonitor* self, - GFile* file, - GFileInfo* info, - Monitorable* * monitorable) -{ -#line 160 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), 0); -#line 160 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return MEDIA_MONITOR_GET_CLASS (self)->notify_file_discovered (self, file, info, monitorable); -#line 1606 "MediaMonitor.c" -} - - -static GeeCollection* -media_monitor_real_candidates_for_unknown_file (MediaMonitor* self, - GFile* file, - GFileInfo* info, - MediaMonitorDiscoveredFile* _result_) -{ -#line 169 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_critical ("Type `%s' does not implement abstract method `media_monitor_candidates_for_unknown_file'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 169 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return NULL; -#line 1620 "MediaMonitor.c" -} - - -GeeCollection* -media_monitor_candidates_for_unknown_file (MediaMonitor* self, - GFile* file, - GFileInfo* info, - MediaMonitorDiscoveredFile* _result_) -{ -#line 169 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL); -#line 169 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return MEDIA_MONITOR_GET_CLASS (self)->candidates_for_unknown_file (self, file, info, _result_); -#line 1634 "MediaMonitor.c" -} - - -static GFile** -media_monitor_real_get_auxilliary_backing_files (MediaMonitor* self, - Monitorable* monitorable, - int* result_length1) -{ - GFile** result = NULL; - GFile** _tmp0_; - gint _tmp0__length1; -#line 172 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL); -#line 173 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = NULL; -#line 173 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0__length1 = 0; -#line 173 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (result_length1) { -#line 173 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - *result_length1 = _tmp0__length1; -#line 1656 "MediaMonitor.c" - } -#line 173 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = _tmp0_; -#line 173 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 1662 "MediaMonitor.c" -} - - -GFile** -media_monitor_get_auxilliary_backing_files (MediaMonitor* self, - Monitorable* monitorable, - int* result_length1) -{ -#line 172 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL); -#line 172 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return MEDIA_MONITOR_GET_CLASS (self)->get_auxilliary_backing_files (self, monitorable, result_length1); -#line 1675 "MediaMonitor.c" -} - - -static void -media_monitor_real_update_backing_file_info (MediaMonitor* self, - Monitorable* monitorable, - GFile* file, - GFileInfo* info) -{ -#line 178 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MONITORABLE (monitorable)); -#line 178 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 178 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail ((info == NULL) || G_IS_FILE_INFO (info)); -#line 1691 "MediaMonitor.c" -} - - -void -media_monitor_update_backing_file_info (MediaMonitor* self, - Monitorable* monitorable, - GFile* file, - GFileInfo* info) -{ -#line 178 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MEDIA_MONITOR (self)); -#line 178 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - MEDIA_MONITOR_GET_CLASS (self)->update_backing_file_info (self, monitorable, file, info); -#line 1705 "MediaMonitor.c" -} - - -static void -media_monitor_real_notify_discovery_completing (MediaMonitor* self) -{ -} - - -void -media_monitor_notify_discovery_completing (MediaMonitor* self) -{ -#line 182 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MEDIA_MONITOR (self)); -#line 182 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - MEDIA_MONITOR_GET_CLASS (self)->notify_discovery_completing (self); -#line 1722 "MediaMonitor.c" -} - - -static gboolean -media_monitor_real_is_file_represented (MediaMonitor* self, - GFile* file) -{ - gboolean _tmp0_ = FALSE; -#line 189 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_critical ("Type `%s' does not implement abstract method `media_monitor_is_file_represented'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 189 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return _tmp0_; -#line 1735 "MediaMonitor.c" -} - - -gboolean -media_monitor_is_file_represented (MediaMonitor* self, - GFile* file) -{ -#line 189 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE); -#line 189 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return MEDIA_MONITOR_GET_CLASS (self)->is_file_represented (self, file); -#line 1747 "MediaMonitor.c" -} - - -static gboolean -media_monitor_real_notify_file_created (MediaMonitor* self, - GFile* file, - GFileInfo* info) -{ - gboolean _tmp0_ = FALSE; -#line 191 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_critical ("Type `%s' does not implement abstract method `media_monitor_notify_file_created'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 191 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return _tmp0_; -#line 1761 "MediaMonitor.c" -} - - -gboolean -media_monitor_notify_file_created (MediaMonitor* self, - GFile* file, - GFileInfo* info) -{ -#line 191 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE); -#line 191 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return MEDIA_MONITOR_GET_CLASS (self)->notify_file_created (self, file, info); -#line 1774 "MediaMonitor.c" -} - - -static gboolean -media_monitor_real_notify_file_moved (MediaMonitor* self, - GFile* old_file, - GFile* new_file, - GFileInfo* new_file_info) -{ - gboolean _tmp0_ = FALSE; -#line 193 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_critical ("Type `%s' does not implement abstract method `media_monitor_notify_file_moved'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 193 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return _tmp0_; -#line 1789 "MediaMonitor.c" -} - - -gboolean -media_monitor_notify_file_moved (MediaMonitor* self, - GFile* old_file, - GFile* new_file, - GFileInfo* new_file_info) -{ -#line 193 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE); -#line 193 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return MEDIA_MONITOR_GET_CLASS (self)->notify_file_moved (self, old_file, new_file, new_file_info); -#line 1803 "MediaMonitor.c" -} - - -static gboolean -media_monitor_real_notify_file_altered (MediaMonitor* self, - GFile* file) -{ - gboolean _tmp0_ = FALSE; -#line 195 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_critical ("Type `%s' does not implement abstract method `media_monitor_notify_file_altered'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 195 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return _tmp0_; -#line 1816 "MediaMonitor.c" -} - - -gboolean -media_monitor_notify_file_altered (MediaMonitor* self, - GFile* file) -{ -#line 195 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE); -#line 195 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return MEDIA_MONITOR_GET_CLASS (self)->notify_file_altered (self, file); -#line 1828 "MediaMonitor.c" -} - - -static gboolean -media_monitor_real_notify_file_attributes_altered (MediaMonitor* self, - GFile* file) -{ - gboolean _tmp0_ = FALSE; -#line 197 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_critical ("Type `%s' does not implement abstract method `media_monitor_notify_file_attributes_altered'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 197 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return _tmp0_; -#line 1841 "MediaMonitor.c" -} - - -gboolean -media_monitor_notify_file_attributes_altered (MediaMonitor* self, - GFile* file) -{ -#line 197 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE); -#line 197 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return MEDIA_MONITOR_GET_CLASS (self)->notify_file_attributes_altered (self, file); -#line 1853 "MediaMonitor.c" -} - - -static gboolean -media_monitor_real_notify_file_alteration_completed (MediaMonitor* self, - GFile* file, - GFileInfo* info) -{ - gboolean _tmp0_ = FALSE; -#line 199 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_critical ("Type `%s' does not implement abstract method `media_monitor_notify_file_alteration_completed'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 199 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return _tmp0_; -#line 1867 "MediaMonitor.c" -} - - -gboolean -media_monitor_notify_file_alteration_completed (MediaMonitor* self, - GFile* file, - GFileInfo* info) -{ -#line 199 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE); -#line 199 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return MEDIA_MONITOR_GET_CLASS (self)->notify_file_alteration_completed (self, file, info); -#line 1880 "MediaMonitor.c" -} - - -static gboolean -media_monitor_real_notify_file_deleted (MediaMonitor* self, - GFile* file) -{ - gboolean _tmp0_ = FALSE; -#line 201 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_critical ("Type `%s' does not implement abstract method `media_monitor_notify_file_deleted'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 201 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return _tmp0_; -#line 1893 "MediaMonitor.c" -} - - -gboolean -media_monitor_notify_file_deleted (MediaMonitor* self, - GFile* file) -{ -#line 201 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE); -#line 201 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return MEDIA_MONITOR_GET_CLASS (self)->notify_file_deleted (self, file); -#line 1905 "MediaMonitor.c" -} - - -void -media_monitor_mdbg (const gchar* msg) -{ -#line 203 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (msg != NULL); -#line 1914 "MediaMonitor.c" -} - - -gboolean -media_monitor_has_pending_updates (MediaMonitor* self) -{ - gboolean result = FALSE; - GeeHashMap* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 209 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE); -#line 210 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = self->priv->pending_updates; -#line 210 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 210 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp2_ = _tmp1_; -#line 210 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = _tmp2_ > 0; -#line 210 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 1937 "MediaMonitor.c" -} - - -GeeCollection* -media_monitor_get_monitorables (MediaMonitor* self) -{ - GeeCollection* result = NULL; - GeeHashMap* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; -#line 213 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL); -#line 214 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = self->priv->pending_updates; -#line 214 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 214 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp2_ = _tmp1_; -#line 214 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 214 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 1960 "MediaMonitor.c" -} - - -MonitorableUpdates* -media_monitor_fetch_updates (MediaMonitor* self, - Monitorable* monitorable) -{ - MonitorableUpdates* result = NULL; - MonitorableUpdates* updates = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - MonitorableUpdates* _tmp2_; - MonitorableUpdates* _tmp3_; - GeeHashMap* _tmp4_; - MonitorableUpdates* _tmp5_; -#line 219 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL); -#line 219 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL); -#line 220 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = self->priv->pending_updates; -#line 220 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), monitorable); -#line 220 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - updates = (MonitorableUpdates*) _tmp1_; -#line 221 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp2_ = updates; -#line 221 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp2_ != NULL) { -#line 222 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = updates; -#line 222 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 1994 "MediaMonitor.c" - } -#line 224 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp3_ = media_monitor_create_updates (self, monitorable); -#line 224 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 224 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - updates = _tmp3_; -#line 225 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp4_ = self->priv->pending_updates; -#line 225 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp5_ = updates; -#line 225 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), monitorable, _tmp5_); -#line 227 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = updates; -#line 227 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 2012 "MediaMonitor.c" -} - - -MonitorableUpdates* -media_monitor_get_existing_updates (MediaMonitor* self, - Monitorable* monitorable) -{ - MonitorableUpdates* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 230 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL); -#line 230 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL); -#line 231 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = self->priv->pending_updates; -#line 231 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), monitorable); -#line 231 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = (MonitorableUpdates*) _tmp1_; -#line 231 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 2035 "MediaMonitor.c" -} - - -void -media_monitor_remove_updates (MediaMonitor* self, - Monitorable* monitorable) -{ - GeeHashMap* _tmp0_; -#line 234 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MEDIA_MONITOR (self)); -#line 234 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MONITORABLE (monitorable)); -#line 235 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = self->priv->pending_updates; -#line 235 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), monitorable, NULL); -#line 2052 "MediaMonitor.c" -} - - -gboolean -media_monitor_is_online (MediaMonitor* self, - Monitorable* monitorable) -{ - gboolean result = FALSE; - MonitorableUpdates* updates = NULL; - MonitorableUpdates* _tmp0_; - gboolean _tmp1_ = FALSE; - MonitorableUpdates* _tmp2_; -#line 238 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE); -#line 238 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE (monitorable), FALSE); -#line 239 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = media_monitor_get_existing_updates (self, monitorable); -#line 239 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - updates = _tmp0_; -#line 241 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp2_ = updates; -#line 241 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp2_ != NULL) { -#line 2077 "MediaMonitor.c" - MonitorableUpdates* _tmp3_; -#line 241 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp3_ = updates; -#line 241 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = monitorable_updates_is_set_online (_tmp3_); -#line 2083 "MediaMonitor.c" - } else { -#line 241 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = !monitorable_is_offline (monitorable); -#line 2087 "MediaMonitor.c" - } -#line 241 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = _tmp1_; -#line 241 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 241 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 2095 "MediaMonitor.c" -} - - -gboolean -media_monitor_is_offline (MediaMonitor* self, - Monitorable* monitorable) -{ - gboolean result = FALSE; - MonitorableUpdates* updates = NULL; - MonitorableUpdates* _tmp0_; - gboolean _tmp1_ = FALSE; - MonitorableUpdates* _tmp2_; -#line 244 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE); -#line 244 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE (monitorable), FALSE); -#line 245 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = media_monitor_get_existing_updates (self, monitorable); -#line 245 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - updates = _tmp0_; -#line 247 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp2_ = updates; -#line 247 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp2_ != NULL) { -#line 2120 "MediaMonitor.c" - MonitorableUpdates* _tmp3_; -#line 247 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp3_ = updates; -#line 247 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = monitorable_updates_is_set_offline (_tmp3_); -#line 2126 "MediaMonitor.c" - } else { -#line 247 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = monitorable_is_offline (monitorable); -#line 2130 "MediaMonitor.c" - } -#line 247 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = _tmp1_; -#line 247 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 247 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 2138 "MediaMonitor.c" -} - - -GFile* -media_monitor_get_master_file (MediaMonitor* self, - Monitorable* monitorable) -{ - GFile* result = NULL; - MonitorableUpdates* updates = NULL; - MonitorableUpdates* _tmp0_; - GFile* _tmp1_ = NULL; - gboolean _tmp2_ = FALSE; - MonitorableUpdates* _tmp3_; -#line 250 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), NULL); -#line 250 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL); -#line 251 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = media_monitor_get_existing_updates (self, monitorable); -#line 251 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - updates = _tmp0_; -#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp3_ = updates; -#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp3_ != NULL) { -#line 2164 "MediaMonitor.c" - MonitorableUpdates* _tmp4_; - GFile* _tmp5_; - GFile* _tmp6_; -#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp4_ = updates; -#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp5_ = monitorable_updates_get_master_file (_tmp4_); -#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp6_ = _tmp5_; -#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp2_ = _tmp6_ != NULL; -#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (_tmp6_); -#line 2178 "MediaMonitor.c" - } else { -#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp2_ = FALSE; -#line 2182 "MediaMonitor.c" - } -#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp2_) { -#line 2186 "MediaMonitor.c" - MonitorableUpdates* _tmp7_; - GFile* _tmp8_; -#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp7_ = updates; -#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp8_ = monitorable_updates_get_master_file (_tmp7_); -#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (_tmp1_); -#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = _tmp8_; -#line 2197 "MediaMonitor.c" - } else { - GFile* _tmp9_; -#line 254 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp9_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (monitorable, TYPE_MEDIA_SOURCE, MediaSource)); -#line 254 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (_tmp1_); -#line 254 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = _tmp9_; -#line 2206 "MediaMonitor.c" - } -#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = _tmp1_; -#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 253 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 2214 "MediaMonitor.c" -} - - -void -media_monitor_update_master_file (MediaMonitor* self, - Monitorable* monitorable, - GFile* file) -{ - MonitorableUpdates* _tmp0_; - MonitorableUpdates* _tmp1_; -#line 257 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MEDIA_MONITOR (self)); -#line 257 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MONITORABLE (monitorable)); -#line 257 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 258 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = media_monitor_fetch_updates (self, monitorable); -#line 258 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = _tmp0_; -#line 258 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_set_master_file (_tmp1_, file); -#line 258 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 2239 "MediaMonitor.c" -} - - -void -media_monitor_update_master_file_info_altered (MediaMonitor* self, - Monitorable* monitorable) -{ - MonitorableUpdates* _tmp0_; - MonitorableUpdates* _tmp1_; -#line 261 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MEDIA_MONITOR (self)); -#line 261 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MONITORABLE (monitorable)); -#line 262 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = media_monitor_fetch_updates (self, monitorable); -#line 262 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = _tmp0_; -#line 262 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_set_master_file_info_altered (_tmp1_, TRUE); -#line 262 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 2261 "MediaMonitor.c" -} - - -void -media_monitor_update_master_file_in_alteration (MediaMonitor* self, - Monitorable* monitorable, - gboolean in_alteration) -{ - MonitorableUpdates* _tmp0_; - MonitorableUpdates* _tmp1_; -#line 265 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MEDIA_MONITOR (self)); -#line 265 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MONITORABLE (monitorable)); -#line 266 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = media_monitor_fetch_updates (self, monitorable); -#line 266 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = _tmp0_; -#line 266 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_set_master_in_alteration (_tmp1_, in_alteration); -#line 266 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 2284 "MediaMonitor.c" -} - - -void -media_monitor_update_master_file_alterations_completed (MediaMonitor* self, - Monitorable* monitorable, - GFileInfo* info) -{ - MonitorableUpdates* _tmp0_; - MonitorableUpdates* _tmp1_; -#line 269 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MEDIA_MONITOR (self)); -#line 269 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MONITORABLE (monitorable)); -#line 269 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 270 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = media_monitor_fetch_updates (self, monitorable); -#line 270 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = _tmp0_; -#line 270 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_set_master_alterations_complete (_tmp1_, info); -#line 270 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 2309 "MediaMonitor.c" -} - - -void -media_monitor_update_online (MediaMonitor* self, - Monitorable* monitorable) -{ - MonitorableUpdates* _tmp0_; - MonitorableUpdates* _tmp1_; -#line 273 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MEDIA_MONITOR (self)); -#line 273 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MONITORABLE (monitorable)); -#line 274 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = media_monitor_fetch_updates (self, monitorable); -#line 274 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = _tmp0_; -#line 274 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_mark_online (_tmp1_); -#line 274 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 2331 "MediaMonitor.c" -} - - -void -media_monitor_update_offline (MediaMonitor* self, - Monitorable* monitorable) -{ - MonitorableUpdates* _tmp0_; - MonitorableUpdates* _tmp1_; -#line 277 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MEDIA_MONITOR (self)); -#line 277 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MONITORABLE (monitorable)); -#line 278 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = media_monitor_fetch_updates (self, monitorable); -#line 278 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = _tmp0_; -#line 278 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_mark_offline (_tmp1_); -#line 278 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 2353 "MediaMonitor.c" -} - - -static void -media_monitor_real_process_updates (MediaMonitor* self, - GeeCollection* all_updates, - TransactionController* controller, - gint* op_count, - GError** error) -{ - GeeMap* set_master_file = NULL; - GeeMap* set_master_file_info = NULL; - GeeArrayList* to_offline = NULL; - GeeArrayList* to_online = NULL; - GeeMap* _tmp48_; - GeeMap* _tmp57_; - gboolean _tmp66_ = FALSE; - GeeArrayList* _tmp67_; - GError * _inner_error_ = NULL; -#line 285 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (GEE_IS_COLLECTION (all_updates)); -#line 285 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_TRANSACTION_CONTROLLER (controller)); -#line 287 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - set_master_file = NULL; -#line 288 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - set_master_file_info = NULL; -#line 289 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - to_offline = NULL; -#line 290 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - to_online = NULL; -#line 2385 "MediaMonitor.c" - { - GeeIterator* _updates_it = NULL; - GeeIterator* _tmp0_; -#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (all_updates, GEE_TYPE_ITERABLE, GeeIterable)); -#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _updates_it = _tmp0_; -#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - while (TRUE) { -#line 2395 "MediaMonitor.c" - GeeIterator* _tmp1_; - MonitorableUpdates* updates = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - MonitorableUpdates* _tmp4_; - GFile* _tmp5_; - GFile* _tmp6_; - gboolean _tmp7_; - MonitorableUpdates* _tmp18_; - GFileInfo* _tmp19_; - GFileInfo* _tmp20_; - gboolean _tmp21_; - MonitorableUpdates* _tmp32_; - MonitorableUpdates* _tmp40_; -#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = _updates_it; -#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - break; -#line 2416 "MediaMonitor.c" - } -#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp2_ = _updates_it; -#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - updates = (MonitorableUpdates*) _tmp3_; -#line 293 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if ((*op_count) >= MEDIA_MONITOR_MAX_OPERATIONS_PER_CYCLE) { -#line 294 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 294 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - break; -#line 2430 "MediaMonitor.c" - } -#line 296 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp4_ = updates; -#line 296 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp5_ = monitorable_updates_get_master_file (_tmp4_); -#line 296 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp6_ = _tmp5_; -#line 296 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp7_ = _tmp6_ != NULL; -#line 296 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (_tmp6_); -#line 296 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp7_) { -#line 2444 "MediaMonitor.c" - GeeMap* _tmp8_; - GeeMap* _tmp10_; - MonitorableUpdates* _tmp11_; - Monitorable* _tmp12_; - MonitorableUpdates* _tmp13_; - GFile* _tmp14_; - GFile* _tmp15_; - MonitorableUpdates* _tmp16_; - gint _tmp17_; -#line 297 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp8_ = set_master_file; -#line 297 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp8_ == NULL) { -#line 2458 "MediaMonitor.c" - GeeHashMap* _tmp9_; -#line 298 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp9_ = gee_hash_map_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 298 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (set_master_file); -#line 298 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - set_master_file = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_MAP, GeeMap); -#line 2466 "MediaMonitor.c" - } -#line 300 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp10_ = set_master_file; -#line 300 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp11_ = updates; -#line 300 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp12_ = _tmp11_->monitorable; -#line 300 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp13_ = updates; -#line 300 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp14_ = monitorable_updates_get_master_file (_tmp13_); -#line 300 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp15_ = _tmp14_; -#line 300 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - gee_map_set (_tmp10_, _tmp12_, _tmp15_); -#line 300 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (_tmp15_); -#line 301 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp16_ = updates; -#line 301 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_set_master_file (_tmp16_, NULL); -#line 302 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp17_ = *op_count; -#line 302 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - *op_count = _tmp17_ + 1; -#line 2492 "MediaMonitor.c" - } -#line 305 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp18_ = updates; -#line 305 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp19_ = monitorable_updates_get_master_file_info (_tmp18_); -#line 305 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp20_ = _tmp19_; -#line 305 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp21_ = _tmp20_ != NULL; -#line 305 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (_tmp20_); -#line 305 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp21_) { -#line 2506 "MediaMonitor.c" - GeeMap* _tmp22_; - GeeMap* _tmp24_; - MonitorableUpdates* _tmp25_; - Monitorable* _tmp26_; - MonitorableUpdates* _tmp27_; - GFileInfo* _tmp28_; - GFileInfo* _tmp29_; - MonitorableUpdates* _tmp30_; - gint _tmp31_; -#line 306 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp22_ = set_master_file_info; -#line 306 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp22_ == NULL) { -#line 2520 "MediaMonitor.c" - GeeHashMap* _tmp23_; -#line 307 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp23_ = gee_hash_map_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_info_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 307 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (set_master_file_info); -#line 307 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - set_master_file_info = G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_MAP, GeeMap); -#line 2528 "MediaMonitor.c" - } -#line 309 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp24_ = set_master_file_info; -#line 309 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp25_ = updates; -#line 309 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp26_ = _tmp25_->monitorable; -#line 309 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp27_ = updates; -#line 309 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp28_ = monitorable_updates_get_master_file_info (_tmp27_); -#line 309 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp29_ = _tmp28_; -#line 309 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - gee_map_set (_tmp24_, _tmp26_, _tmp29_); -#line 309 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (_tmp29_); -#line 310 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp30_ = updates; -#line 310 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_set_master_file_info (_tmp30_, NULL); -#line 311 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp31_ = *op_count; -#line 311 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - *op_count = _tmp31_ + 1; -#line 2554 "MediaMonitor.c" - } -#line 314 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp32_ = updates; -#line 314 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (monitorable_updates_is_set_offline (_tmp32_)) { -#line 2560 "MediaMonitor.c" - GeeArrayList* _tmp33_; - GeeArrayList* _tmp35_; - MonitorableUpdates* _tmp36_; - Monitorable* _tmp37_; - MonitorableUpdates* _tmp38_; - gint _tmp39_; -#line 315 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp33_ = to_offline; -#line 315 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp33_ == NULL) { -#line 2571 "MediaMonitor.c" - GeeArrayList* _tmp34_; -#line 316 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp34_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 316 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (to_offline); -#line 316 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - to_offline = _tmp34_; -#line 2579 "MediaMonitor.c" - } -#line 318 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp35_ = to_offline; -#line 318 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp36_ = updates; -#line 318 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp37_ = _tmp36_->monitorable; -#line 318 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp37_); -#line 319 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp38_ = updates; -#line 319 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_reset_online_offline (_tmp38_); -#line 320 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp39_ = *op_count; -#line 320 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - *op_count = _tmp39_ + 1; -#line 2597 "MediaMonitor.c" - } -#line 323 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp40_ = updates; -#line 323 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (monitorable_updates_is_set_online (_tmp40_)) { -#line 2603 "MediaMonitor.c" - GeeArrayList* _tmp41_; - GeeArrayList* _tmp43_; - MonitorableUpdates* _tmp44_; - Monitorable* _tmp45_; - MonitorableUpdates* _tmp46_; - gint _tmp47_; -#line 324 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp41_ = to_online; -#line 324 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp41_ == NULL) { -#line 2614 "MediaMonitor.c" - GeeArrayList* _tmp42_; -#line 325 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp42_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 325 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (to_online); -#line 325 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - to_online = _tmp42_; -#line 2622 "MediaMonitor.c" - } -#line 327 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp43_ = to_online; -#line 327 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp44_ = updates; -#line 327 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp45_ = _tmp44_->monitorable; -#line 327 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp45_); -#line 328 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp46_ = updates; -#line 328 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_updates_reset_online_offline (_tmp46_); -#line 329 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp47_ = *op_count; -#line 329 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - *op_count = _tmp47_ + 1; -#line 2640 "MediaMonitor.c" - } -#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 2644 "MediaMonitor.c" - } -#line 292 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (_updates_it); -#line 2648 "MediaMonitor.c" - } -#line 333 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp48_ = set_master_file; -#line 333 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp48_ != NULL) { -#line 2654 "MediaMonitor.c" - GeeMap* _tmp49_; - gint _tmp50_; - gint _tmp51_; - gchar* _tmp52_; - gchar* _tmp53_; - gchar* _tmp54_; - gchar* _tmp55_; - GeeMap* _tmp56_; -#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp49_ = set_master_file; -#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp50_ = gee_map_get_size (_tmp49_); -#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp51_ = _tmp50_; -#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp52_ = media_monitor_to_string (self); -#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp53_ = _tmp52_; -#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp54_ = g_strdup_printf ("Changing master file of %d objects in %s", _tmp51_, _tmp53_); -#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp55_ = _tmp54_; -#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - media_monitor_mdbg (_tmp55_); -#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_free0 (_tmp55_); -#line 334 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_free0 (_tmp53_); -#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp56_ = set_master_file; -#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_set_many_master_file (_tmp56_, controller, &_inner_error_); -#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_propagate_error (error, _inner_error_); -#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (to_online); -#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (to_offline); -#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (set_master_file_info); -#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (set_master_file); -#line 336 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return; -#line 2701 "MediaMonitor.c" - } - } -#line 339 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp57_ = set_master_file_info; -#line 339 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp57_ != NULL) { -#line 2708 "MediaMonitor.c" - GeeMap* _tmp58_; - gint _tmp59_; - gint _tmp60_; - gchar* _tmp61_; - gchar* _tmp62_; - gchar* _tmp63_; - gchar* _tmp64_; - GeeMap* _tmp65_; -#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp58_ = set_master_file_info; -#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp59_ = gee_map_get_size (_tmp58_); -#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp60_ = _tmp59_; -#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp61_ = media_monitor_to_string (self); -#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp62_ = _tmp61_; -#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp63_ = g_strdup_printf ("Updating %d master files timestamps in %s", _tmp60_, _tmp62_); -#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp64_ = _tmp63_; -#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - media_monitor_mdbg (_tmp64_); -#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_free0 (_tmp64_); -#line 340 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_free0 (_tmp62_); -#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp65_ = set_master_file_info; -#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_set_many_master_timestamp (_tmp65_, controller, &_inner_error_); -#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_propagate_error (error, _inner_error_); -#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (to_online); -#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (to_offline); -#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (set_master_file_info); -#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (set_master_file); -#line 343 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return; -#line 2755 "MediaMonitor.c" - } - } -#line 346 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp67_ = to_offline; -#line 346 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp67_ != NULL) { -#line 346 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp66_ = TRUE; -#line 2764 "MediaMonitor.c" - } else { - GeeArrayList* _tmp68_; -#line 346 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp68_ = to_online; -#line 346 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp66_ = _tmp68_ != NULL; -#line 2771 "MediaMonitor.c" - } -#line 346 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp66_) { -#line 2775 "MediaMonitor.c" - gint _tmp69_ = 0; - GeeArrayList* _tmp70_; - gint _tmp74_ = 0; - GeeArrayList* _tmp75_; - gchar* _tmp79_; - gchar* _tmp80_; - gchar* _tmp81_; - gchar* _tmp82_; - GeeArrayList* _tmp83_; - GeeArrayList* _tmp84_; -#line 348 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp70_ = to_online; -#line 348 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp70_ != NULL) { -#line 2790 "MediaMonitor.c" - GeeArrayList* _tmp71_; - gint _tmp72_; - gint _tmp73_; -#line 348 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp71_ = to_online; -#line 348 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp72_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 348 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp73_ = _tmp72_; -#line 348 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp69_ = _tmp73_; -#line 2802 "MediaMonitor.c" - } else { -#line 348 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp69_ = 0; -#line 2806 "MediaMonitor.c" - } -#line 349 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp75_ = to_offline; -#line 349 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp75_ != NULL) { -#line 2812 "MediaMonitor.c" - GeeArrayList* _tmp76_; - gint _tmp77_; - gint _tmp78_; -#line 349 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp76_ = to_offline; -#line 349 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp77_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 349 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp78_ = _tmp77_; -#line 349 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp74_ = _tmp78_; -#line 2824 "MediaMonitor.c" - } else { -#line 349 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp74_ = 0; -#line 2828 "MediaMonitor.c" - } -#line 347 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp79_ = media_monitor_to_string (self); -#line 347 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp80_ = _tmp79_; -#line 347 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp81_ = g_strdup_printf ("Marking %d online, %d offline in %s", _tmp69_, _tmp74_, _tmp80_); -#line 347 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp82_ = _tmp81_; -#line 347 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - media_monitor_mdbg (_tmp82_); -#line 347 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_free0 (_tmp82_); -#line 347 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_free0 (_tmp80_); -#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp83_ = to_online; -#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp84_ = to_offline; -#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable_mark_many_online_offline (G_TYPE_CHECK_INSTANCE_CAST (_tmp83_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp84_, GEE_TYPE_COLLECTION, GeeCollection), controller, &_inner_error_); -#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_propagate_error (error, _inner_error_); -#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (to_online); -#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (to_offline); -#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (set_master_file_info); -#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (set_master_file); -#line 352 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return; -#line 2864 "MediaMonitor.c" - } - } -#line 285 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (to_online); -#line 285 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (to_offline); -#line 285 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (set_master_file_info); -#line 285 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (set_master_file); -#line 2875 "MediaMonitor.c" -} - - -void -media_monitor_process_updates (MediaMonitor* self, - GeeCollection* all_updates, - TransactionController* controller, - gint* op_count, - GError** error) -{ -#line 285 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_if_fail (IS_MEDIA_MONITOR (self)); -#line 285 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - MEDIA_MONITOR_GET_CLASS (self)->process_updates (self, all_updates, controller, op_count, error); -#line 2890 "MediaMonitor.c" -} - - -static gpointer -_transaction_controller_ref0 (gpointer self) -{ -#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return self ? transaction_controller_ref (self) : NULL; -#line 2899 "MediaMonitor.c" -} - - -static gboolean -media_monitor_on_flush_pending_updates (MediaMonitor* self) -{ - gboolean result = FALSE; - GCancellable* _tmp0_; - GeeHashMap* _tmp1_; - gint _tmp2_; - gint _tmp3_; - GTimer* timer = NULL; - GTimer* _tmp4_; - GeeArrayList* to_process = NULL; - GeeArrayList* to_remove = NULL; - gint op_count = 0; - GeeArrayList* _tmp25_; - GeeArrayList* _tmp43_; - gdouble elapsed = 0.0; - GTimer* _tmp56_; - gdouble _tmp57_; - gboolean _tmp58_ = FALSE; - gdouble _tmp59_; - GError * _inner_error_ = NULL; -#line 356 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_return_val_if_fail (IS_MEDIA_MONITOR (self), FALSE); -#line 357 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = self->priv->cancellable; -#line 357 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (g_cancellable_is_cancelled (_tmp0_)) { -#line 358 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = FALSE; -#line 358 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 2934 "MediaMonitor.c" - } -#line 360 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp1_ = self->priv->pending_updates; -#line 360 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp2_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 360 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp3_ = _tmp2_; -#line 360 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp3_ == 0) { -#line 361 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = TRUE; -#line 361 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 2948 "MediaMonitor.c" - } -#line 363 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp4_ = g_timer_new (); -#line 363 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - timer = _tmp4_; -#line 368 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - to_process = NULL; -#line 369 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - to_remove = NULL; -#line 2958 "MediaMonitor.c" - { - GeeIterator* _updates_it = NULL; - GeeHashMap* _tmp5_; - GeeCollection* _tmp6_; - GeeCollection* _tmp7_; - GeeCollection* _tmp8_; - GeeIterator* _tmp9_; - GeeIterator* _tmp10_; -#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp5_ = self->priv->pending_updates; -#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp6_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp7_ = _tmp6_; -#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp8_ = _tmp7_; -#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp10_ = _tmp9_; -#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (_tmp8_); -#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _updates_it = _tmp10_; -#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - while (TRUE) { -#line 2985 "MediaMonitor.c" - GeeIterator* _tmp11_; - MonitorableUpdates* updates = NULL; - GeeIterator* _tmp12_; - gpointer _tmp13_; - MonitorableUpdates* _tmp14_; - MonitorableUpdates* _tmp15_; - GeeArrayList* _tmp21_; - GeeArrayList* _tmp23_; - MonitorableUpdates* _tmp24_; -#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp11_ = _updates_it; -#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (!gee_iterator_next (_tmp11_)) { -#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - break; -#line 3001 "MediaMonitor.c" - } -#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp12_ = _updates_it; -#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp13_ = gee_iterator_get (_tmp12_); -#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - updates = (MonitorableUpdates*) _tmp13_; -#line 371 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp14_ = updates; -#line 371 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (monitorable_updates_is_in_alteration (_tmp14_)) { -#line 372 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 372 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - continue; -#line 3017 "MediaMonitor.c" - } -#line 374 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp15_ = updates; -#line 374 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (monitorable_updates_is_all_updated (_tmp15_)) { -#line 3023 "MediaMonitor.c" - GeeArrayList* _tmp16_; - GeeArrayList* _tmp18_; - MonitorableUpdates* _tmp19_; - Monitorable* _tmp20_; -#line 375 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp16_ = to_remove; -#line 375 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp16_ == NULL) { -#line 3032 "MediaMonitor.c" - GeeArrayList* _tmp17_; -#line 376 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp17_ = gee_array_list_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 376 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (to_remove); -#line 376 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - to_remove = _tmp17_; -#line 3040 "MediaMonitor.c" - } -#line 378 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp18_ = to_remove; -#line 378 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp19_ = updates; -#line 378 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp20_ = _tmp19_->monitorable; -#line 378 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp20_); -#line 379 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 379 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - continue; -#line 3054 "MediaMonitor.c" - } -#line 382 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp21_ = to_process; -#line 382 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp21_ == NULL) { -#line 3060 "MediaMonitor.c" - GeeArrayList* _tmp22_; -#line 383 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp22_ = gee_array_list_new (TYPE_MONITORABLE_UPDATES, (GBoxedCopyFunc) monitorable_updates_ref, (GDestroyNotify) monitorable_updates_unref, NULL, NULL, NULL); -#line 383 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (to_process); -#line 383 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - to_process = _tmp22_; -#line 3068 "MediaMonitor.c" - } -#line 385 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp23_ = to_process; -#line 385 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp24_ = updates; -#line 385 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp24_); -#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 3078 "MediaMonitor.c" - } -#line 370 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (_updates_it); -#line 3082 "MediaMonitor.c" - } -#line 388 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - op_count = 0; -#line 389 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp25_ = to_process; -#line 389 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp25_ != NULL) { -#line 3090 "MediaMonitor.c" - TransactionController* controller = NULL; - MediaSourceCollection* _tmp26_; - MediaSourceCollection* _tmp27_; - TransactionController* _tmp28_; - TransactionController* _tmp29_; - TransactionController* _tmp30_; - TransactionController* _tmp31_; -#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp26_ = media_monitor_get_media_source_collection (self); -#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp27_ = _tmp26_; -#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp28_ = media_source_collection_get_transaction_controller (_tmp27_); -#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp29_ = _tmp28_; -#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp30_ = _transaction_controller_ref0 (_tmp29_); -#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp31_ = _tmp30_; -#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _data_collection_unref0 (_tmp27_); -#line 390 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - controller = _tmp31_; -#line 3114 "MediaMonitor.c" - { - TransactionController* _tmp32_; - GeeArrayList* _tmp33_; - TransactionController* _tmp34_; - TransactionController* _tmp35_; -#line 393 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp32_ = controller; -#line 393 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - transaction_controller_begin (_tmp32_); -#line 394 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp33_ = to_process; -#line 394 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp34_ = controller; -#line 394 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - media_monitor_process_updates (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_COLLECTION, GeeCollection), _tmp34_, &op_count, &_inner_error_); -#line 394 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3132 "MediaMonitor.c" - goto __catch594_g_error; - } -#line 395 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp35_ = controller; -#line 395 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - transaction_controller_commit (_tmp35_); -#line 3139 "MediaMonitor.c" - } - goto __finally594; - __catch594_g_error: - { - GError* err = NULL; - GError* _tmp36_; -#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - err = _inner_error_; -#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _inner_error_ = NULL; -#line 397 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp36_ = err; -#line 397 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp36_->domain == DATABASE_ERROR) { -#line 3154 "MediaMonitor.c" - GError* _tmp37_; -#line 398 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp37_ = err; -#line 398 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - app_window_database_error ((GError*) _tmp37_); -#line 3160 "MediaMonitor.c" - } else { - GError* _tmp38_; - const gchar* _tmp39_; - gchar* _tmp40_; - gchar* _tmp41_; -#line 400 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp38_ = err; -#line 400 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp39_ = _tmp38_->message; -#line 400 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp40_ = g_strdup_printf (_ ("Unable to process monitoring updates: %s"), _tmp39_); -#line 400 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp41_ = _tmp40_; -#line 400 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - app_window_panic (_tmp41_); -#line 400 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_free0 (_tmp41_); -#line 3178 "MediaMonitor.c" - } -#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_error_free0 (err); -#line 3182 "MediaMonitor.c" - } - __finally594: -#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3187 "MediaMonitor.c" - gboolean _tmp42_ = FALSE; -#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _transaction_controller_unref0 (controller); -#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (to_remove); -#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (to_process); -#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_timer_destroy0 (timer); -#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_clear_error (&_inner_error_); -#line 392 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return _tmp42_; -#line 3203 "MediaMonitor.c" - } -#line 389 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _transaction_controller_unref0 (controller); -#line 3207 "MediaMonitor.c" - } -#line 404 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp43_ = to_remove; -#line 404 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp43_ != NULL) { -#line 3213 "MediaMonitor.c" - { - GeeArrayList* _monitorable_list = NULL; - GeeArrayList* _tmp44_; - GeeArrayList* _tmp45_; - gint _monitorable_size = 0; - GeeArrayList* _tmp46_; - gint _tmp47_; - gint _tmp48_; - gint _monitorable_index = 0; -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp44_ = to_remove; -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp45_ = _g_object_ref0 (_tmp44_); -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_list = _tmp45_; -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp46_ = _monitorable_list; -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp47_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp48_ = _tmp47_; -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_size = _tmp48_; -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_index = -1; -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - while (TRUE) { -#line 3241 "MediaMonitor.c" - gint _tmp49_; - gint _tmp50_; - gint _tmp51_; - Monitorable* monitorable = NULL; - GeeArrayList* _tmp52_; - gint _tmp53_; - gpointer _tmp54_; - Monitorable* _tmp55_; -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp49_ = _monitorable_index; -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _monitorable_index = _tmp49_ + 1; -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp50_ = _monitorable_index; -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp51_ = _monitorable_size; -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (!(_tmp50_ < _tmp51_)) { -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - break; -#line 3262 "MediaMonitor.c" - } -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp52_ = _monitorable_list; -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp53_ = _monitorable_index; -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp54_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp53_); -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - monitorable = (Monitorable*) _tmp54_; -#line 406 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp55_ = monitorable; -#line 406 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - media_monitor_remove_updates (self, _tmp55_); -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (monitorable); -#line 3278 "MediaMonitor.c" - } -#line 405 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (_monitorable_list); -#line 3282 "MediaMonitor.c" - } - } -#line 409 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp56_ = timer; -#line 409 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp57_ = g_timer_elapsed (_tmp56_, NULL); -#line 409 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - elapsed = _tmp57_; -#line 410 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp59_ = elapsed; -#line 410 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp59_ > 0.01) { -#line 410 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp58_ = TRUE; -#line 3297 "MediaMonitor.c" - } else { - gint _tmp60_; -#line 410 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp60_ = op_count; -#line 410 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp58_ = _tmp60_ > 0; -#line 3304 "MediaMonitor.c" - } -#line 410 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - if (_tmp58_) { -#line 3308 "MediaMonitor.c" - gchar* _tmp61_; - gchar* _tmp62_; - gdouble _tmp63_; - gint _tmp64_; - gchar* _tmp65_; - gchar* _tmp66_; -#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp61_ = media_monitor_to_string (self); -#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp62_ = _tmp61_; -#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp63_ = elapsed; -#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp64_ = op_count; -#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp65_ = g_strdup_printf ("Total pending queue time for %s: %lf (%d ops)", _tmp62_, _tmp63_, _tmp64_); -#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp66_ = _tmp65_; -#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - media_monitor_mdbg (_tmp66_); -#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_free0 (_tmp66_); -#line 411 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_free0 (_tmp62_); -#line 3333 "MediaMonitor.c" - } -#line 415 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - result = TRUE; -#line 415 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (to_remove); -#line 415 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (to_process); -#line 415 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_timer_destroy0 (timer); -#line 415 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - return result; -#line 3345 "MediaMonitor.c" -} - - -static void -media_monitor_class_init (MediaMonitorClass * klass) -{ -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - media_monitor_parent_class = g_type_class_peek_parent (klass); -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_type_class_add_private (klass, sizeof (MediaMonitorPrivate)); -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->get_media_source_collection = (MediaSourceCollection* (*) (MediaMonitor *)) media_monitor_real_get_media_source_collection; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->close = (void (*) (MediaMonitor *)) media_monitor_real_close; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->to_string = (gchar* (*) (MediaMonitor *)) media_monitor_real_to_string; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->create_updates = (MonitorableUpdates* (*) (MediaMonitor *, Monitorable*)) media_monitor_real_create_updates; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->on_media_source_destroyed = (void (*) (MediaMonitor *, DataSource*)) media_monitor_real_on_media_source_destroyed; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->notify_discovery_started = (void (*) (MediaMonitor *)) media_monitor_real_notify_discovery_started; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_discovered = (MediaMonitorDiscoveredFile (*) (MediaMonitor *, GFile*, GFileInfo*, Monitorable* *)) media_monitor_real_notify_file_discovered; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->candidates_for_unknown_file = (GeeCollection* (*) (MediaMonitor *, GFile*, GFileInfo*, MediaMonitorDiscoveredFile*)) media_monitor_real_candidates_for_unknown_file; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->get_auxilliary_backing_files = (GFile** (*) (MediaMonitor *, Monitorable*, int*)) media_monitor_real_get_auxilliary_backing_files; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->update_backing_file_info = (void (*) (MediaMonitor *, Monitorable*, GFile*, GFileInfo*)) media_monitor_real_update_backing_file_info; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->notify_discovery_completing = (void (*) (MediaMonitor *)) media_monitor_real_notify_discovery_completing; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->is_file_represented = (gboolean (*) (MediaMonitor *, GFile*)) media_monitor_real_is_file_represented; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_created = (gboolean (*) (MediaMonitor *, GFile*, GFileInfo*)) media_monitor_real_notify_file_created; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_moved = (gboolean (*) (MediaMonitor *, GFile*, GFile*, GFileInfo*)) media_monitor_real_notify_file_moved; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_altered = (gboolean (*) (MediaMonitor *, GFile*)) media_monitor_real_notify_file_altered; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_attributes_altered = (gboolean (*) (MediaMonitor *, GFile*)) media_monitor_real_notify_file_attributes_altered; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_alteration_completed = (gboolean (*) (MediaMonitor *, GFile*, GFileInfo*)) media_monitor_real_notify_file_alteration_completed; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_deleted = (gboolean (*) (MediaMonitor *, GFile*)) media_monitor_real_notify_file_deleted; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - ((MediaMonitorClass *) klass)->process_updates = (void (*) (MediaMonitor *, GeeCollection*, TransactionController*, gint*, GError**)) media_monitor_real_process_updates; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - G_OBJECT_CLASS (klass)->finalize = media_monitor_finalize; -#line 3396 "MediaMonitor.c" -} - - -static void -media_monitor_instance_init (MediaMonitor * self) -{ - GeeHashMap* _tmp0_; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv = MEDIA_MONITOR_GET_PRIVATE (self); -#line 114 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = gee_hash_map_new (TYPE_MONITORABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_MONITORABLE_UPDATES, (GBoxedCopyFunc) monitorable_updates_ref, (GDestroyNotify) monitorable_updates_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 114 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->pending_updates = _tmp0_; -#line 116 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self->priv->pending_updates_timer_id = (guint) 0; -#line 3412 "MediaMonitor.c" -} - - -static void -media_monitor_finalize (GObject * obj) -{ - MediaMonitor * self; - MediaSourceCollection* _tmp0_; - guint _tmp1_; - MediaSourceCollection* _tmp2_; - guint _tmp3_; -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_MONITOR, MediaMonitor); -#line 130 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp0_ = self->priv->sources; -#line 130 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE); -#line 130 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _media_monitor_on_media_source_destroyed_source_collection_item_destroyed, self); -#line 131 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _tmp2_ = self->priv->sources; -#line 131 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_signal_parse_name ("unlinked-destroyed", TYPE_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE); -#line 131 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _media_monitor_on_media_source_destroyed_source_collection_unlinked_destroyed, self); -#line 112 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _data_collection_unref0 (self->priv->sources); -#line 113 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (self->priv->cancellable); -#line 114 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - _g_object_unref0 (self->priv->pending_updates); -#line 101 "/home/jens/Source/shotwell/src/MediaMonitor.vala" - G_OBJECT_CLASS (media_monitor_parent_class)->finalize (obj); -#line 3446 "MediaMonitor.c" -} - - -GType -media_monitor_get_type (void) -{ - static volatile gsize media_monitor_type_id__volatile = 0; - if (g_once_init_enter (&media_monitor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MediaMonitorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_monitor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaMonitor), 0, (GInstanceInitFunc) media_monitor_instance_init, NULL }; - GType media_monitor_type_id; - media_monitor_type_id = g_type_register_static (G_TYPE_OBJECT, "MediaMonitor", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&media_monitor_type_id__volatile, media_monitor_type_id); - } - return media_monitor_type_id__volatile; -} - - - diff --git a/src/MediaPage.c b/src/MediaPage.c deleted file mode 100644 index ba4e472..0000000 --- a/src/MediaPage.c +++ /dev/null @@ -1,8615 +0,0 @@ -/* MediaPage.c generated by valac 0.40.4, the Vala compiler - * generated from MediaPage.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; -typedef struct _DataViewPrivate DataViewPrivate; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; -typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; -typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_MEDIA_SOURCE_ITEM (media_source_item_get_type ()) -#define MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem)) -#define MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) -#define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM)) -#define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM)) -#define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) - -typedef struct _MediaSourceItem MediaSourceItem; -typedef struct _MediaSourceItemClass MediaSourceItemClass; -typedef struct _MediaSourceItemPrivate MediaSourceItemPrivate; -enum { - MEDIA_SOURCE_ITEM_0_PROPERTY, - MEDIA_SOURCE_ITEM_NUM_PROPERTIES -}; -static GParamSpec* media_source_item_properties[MEDIA_SOURCE_ITEM_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define THUMBNAIL_CACHE_TYPE_SIZE (thumbnail_cache_size_get_type ()) - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; -typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate; - -#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ()) - -#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ()) -typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ()) -#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)) -#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) -#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER)) -#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER)) -#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) - -typedef struct _SearchViewFilter SearchViewFilter; -typedef struct _SearchViewFilterClass SearchViewFilterClass; - -#define CORE_TYPE_TRACKER (core_tracker_get_type ()) -#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) -#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) -#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) -#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) -#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) - -typedef struct _CoreTracker CoreTracker; -typedef struct _CoreTrackerClass CoreTrackerClass; - -#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) -#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) -#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) -#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) -#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) -#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) - -typedef struct _CoreViewTracker CoreViewTracker; -typedef struct _CoreViewTrackerClass CoreViewTrackerClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; -typedef struct _MediaPagePrivate MediaPagePrivate; - -#define TYPE_RATING (rating_get_type ()) - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) - -#define MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY (media_page_zoom_slider_assembly_get_type ()) -#define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssembly)) -#define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssemblyClass)) -#define MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY)) -#define MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY)) -#define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssemblyClass)) - -typedef struct _MediaPageZoomSliderAssembly MediaPageZoomSliderAssembly; -typedef struct _MediaPageZoomSliderAssemblyClass MediaPageZoomSliderAssemblyClass; - -#define TYPE_DRAG_AND_DROP_HANDLER (drag_and_drop_handler_get_type ()) -#define DRAG_AND_DROP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandler)) -#define DRAG_AND_DROP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandlerClass)) -#define IS_DRAG_AND_DROP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DRAG_AND_DROP_HANDLER)) -#define IS_DRAG_AND_DROP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DRAG_AND_DROP_HANDLER)) -#define DRAG_AND_DROP_HANDLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandlerClass)) - -typedef struct _DragAndDropHandler DragAndDropHandler; -typedef struct _DragAndDropHandlerClass DragAndDropHandlerClass; - -#define TYPE_MEDIA_VIEW_TRACKER (media_view_tracker_get_type ()) -#define MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTracker)) -#define MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass)) -#define IS_MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_VIEW_TRACKER)) -#define IS_MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_VIEW_TRACKER)) -#define MEDIA_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass)) - -typedef struct _MediaViewTracker MediaViewTracker; -typedef struct _MediaViewTrackerClass MediaViewTrackerClass; -enum { - MEDIA_PAGE_0_PROPERTY, - MEDIA_PAGE_NUM_PROPERTIES -}; -static GParamSpec* media_page_properties[MEDIA_PAGE_NUM_PROPERTIES]; - -#define MEDIA_PAGE_TYPE_SORT_BY (media_page_sort_by_get_type ()) -#define _drag_and_drop_handler_unref0(var) ((var == NULL) ? NULL : (var = (drag_and_drop_handler_unref (var), NULL))) -#define _core_tracker_unref0(var) ((var == NULL) ? NULL : (var = (core_tracker_unref (var), NULL))) - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_THUMBNAIL (thumbnail_get_type ()) -#define THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL, Thumbnail)) -#define THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL, ThumbnailClass)) -#define IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL)) -#define IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL)) -#define THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL, ThumbnailClass)) - -typedef struct _Thumbnail Thumbnail; -typedef struct _ThumbnailClass ThumbnailClass; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_TEXT_ENTRY_DIALOG_MEDIATOR (text_entry_dialog_mediator_get_type ()) -#define TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator)) -#define TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass)) -#define IS_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define IS_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass)) - -typedef struct _TextEntryDialogMediator TextEntryDialogMediator; -typedef struct _TextEntryDialogMediatorClass TextEntryDialogMediatorClass; - -#define TYPE_TAGS_DIALOG (tags_dialog_get_type ()) -#define TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAGS_DIALOG, TagsDialog)) -#define TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAGS_DIALOG, TagsDialogClass)) -#define IS_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAGS_DIALOG)) -#define IS_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAGS_DIALOG)) -#define TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAGS_DIALOG, TagsDialogClass)) - -typedef struct _TagsDialog TagsDialog; -typedef struct _TagsDialogClass TagsDialogClass; - -#define TYPE_ADD_TAGS_DIALOG (add_tags_dialog_get_type ()) -#define ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialog)) -#define ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass)) -#define IS_ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_DIALOG)) -#define IS_ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_DIALOG)) -#define ADD_TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass)) - -typedef struct _AddTagsDialog AddTagsDialog; -typedef struct _AddTagsDialogClass AddTagsDialogClass; - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; - -#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ()) -#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex)) -#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) -#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX)) -#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX)) -#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) - -typedef struct _HierarchicalTagIndex HierarchicalTagIndex; -typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass; - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; - -#define TYPE_ADD_TAGS_COMMAND (add_tags_command_get_type ()) -#define ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommand)) -#define ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass)) -#define IS_ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_COMMAND)) -#define IS_ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_COMMAND)) -#define ADD_TAGS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass)) - -typedef struct _AddTagsCommand AddTagsCommand; -typedef struct _AddTagsCommandClass AddTagsCommandClass; -#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL))) -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) -#define _text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (text_entry_dialog_mediator_unref (var), NULL))) - -#define TYPE_MODIFY_TAGS_DIALOG (modify_tags_dialog_get_type ()) -#define MODIFY_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialog)) -#define MODIFY_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialogClass)) -#define IS_MODIFY_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MODIFY_TAGS_DIALOG)) -#define IS_MODIFY_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MODIFY_TAGS_DIALOG)) -#define MODIFY_TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialogClass)) - -typedef struct _ModifyTagsDialog ModifyTagsDialog; -typedef struct _ModifyTagsDialogClass ModifyTagsDialogClass; - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; - -#define TYPE_SINGLE_DATA_SOURCE_COMMAND (single_data_source_command_get_type ()) -#define SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)) -#define SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) -#define IS_SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND)) -#define IS_SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND)) -#define SINGLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) - -typedef struct _SingleDataSourceCommand SingleDataSourceCommand; -typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass; - -#define TYPE_MODIFY_TAGS_COMMAND (modify_tags_command_get_type ()) -#define MODIFY_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommand)) -#define MODIFY_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommandClass)) -#define IS_MODIFY_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MODIFY_TAGS_COMMAND)) -#define IS_MODIFY_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MODIFY_TAGS_COMMAND)) -#define MODIFY_TAGS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommandClass)) - -typedef struct _ModifyTagsCommand ModifyTagsCommand; -typedef struct _ModifyTagsCommandClass ModifyTagsCommandClass; - -#define TYPE_MOVE_PHOTOS_COMMAND (move_photos_command_get_type ()) -#define MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)) -#define MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass)) -#define IS_MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MOVE_PHOTOS_COMMAND)) -#define IS_MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MOVE_PHOTOS_COMMAND)) -#define MOVE_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass)) - -typedef struct _MovePhotosCommand MovePhotosCommand; -typedef struct _MovePhotosCommandClass MovePhotosCommandClass; - -#define TYPE_NEW_EVENT_COMMAND (new_event_command_get_type ()) -#define NEW_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NEW_EVENT_COMMAND, NewEventCommand)) -#define NEW_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NEW_EVENT_COMMAND, NewEventCommandClass)) -#define IS_NEW_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NEW_EVENT_COMMAND)) -#define IS_NEW_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NEW_EVENT_COMMAND)) -#define NEW_EVENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NEW_EVENT_COMMAND, NewEventCommandClass)) - -typedef struct _NewEventCommand NewEventCommand; -typedef struct _NewEventCommandClass NewEventCommandClass; - -#define TYPE_FLAGGABLE (flaggable_get_type ()) -#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable)) -#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE)) -#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface)) - -typedef struct _Flaggable Flaggable; -typedef struct _FlaggableIface FlaggableIface; - -#define TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (multiple_data_source_at_once_command_get_type ()) -#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommand)) -#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass)) -#define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND)) -#define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND)) -#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass)) - -typedef struct _MultipleDataSourceAtOnceCommand MultipleDataSourceAtOnceCommand; -typedef struct _MultipleDataSourceAtOnceCommandClass MultipleDataSourceAtOnceCommandClass; - -#define TYPE_FLAG_UNFLAG_COMMAND (flag_unflag_command_get_type ()) -#define FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand)) -#define FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass)) -#define IS_FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAG_UNFLAG_COMMAND)) -#define IS_FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLAG_UNFLAG_COMMAND)) -#define FLAG_UNFLAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass)) - -typedef struct _FlagUnflagCommand FlagUnflagCommand; -typedef struct _FlagUnflagCommandClass FlagUnflagCommandClass; - -#define TYPE_MULTIPLE_DATA_SOURCE_COMMAND (multiple_data_source_command_get_type ()) -#define MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)) -#define MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass)) -#define IS_MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND)) -#define IS_MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND)) -#define MULTIPLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass)) - -typedef struct _MultipleDataSourceCommand MultipleDataSourceCommand; -typedef struct _MultipleDataSourceCommandClass MultipleDataSourceCommandClass; - -#define TYPE_SET_RATING_COMMAND (set_rating_command_get_type ()) -#define SET_RATING_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RATING_COMMAND, SetRatingCommand)) -#define SET_RATING_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_RATING_COMMAND, SetRatingCommandClass)) -#define IS_SET_RATING_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_RATING_COMMAND)) -#define IS_SET_RATING_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_RATING_COMMAND)) -#define SET_RATING_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_RATING_COMMAND, SetRatingCommandClass)) - -typedef struct _SetRatingCommand SetRatingCommand; -typedef struct _SetRatingCommandClass SetRatingCommandClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_TRASH_UNTRASH_PHOTOS_COMMAND (trash_untrash_photos_command_get_type ()) -#define TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommand)) -#define TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass)) -#define IS_TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND)) -#define IS_TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND)) -#define TRASH_UNTRASH_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass)) - -typedef struct _TrashUntrashPhotosCommand TrashUntrashPhotosCommand; -typedef struct _TrashUntrashPhotosCommandClass TrashUntrashPhotosCommandClass; - -#define TYPE_EDIT_TITLE_DIALOG (edit_title_dialog_get_type ()) -#define EDIT_TITLE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_TITLE_DIALOG, EditTitleDialog)) -#define EDIT_TITLE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_TITLE_DIALOG, EditTitleDialogClass)) -#define IS_EDIT_TITLE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_TITLE_DIALOG)) -#define IS_EDIT_TITLE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_TITLE_DIALOG)) -#define EDIT_TITLE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_TITLE_DIALOG, EditTitleDialogClass)) - -typedef struct _EditTitleDialog EditTitleDialog; -typedef struct _EditTitleDialogClass EditTitleDialogClass; - -#define TYPE_EDIT_MULTIPLE_TITLES_COMMAND (edit_multiple_titles_command_get_type ()) -#define EDIT_MULTIPLE_TITLES_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommand)) -#define EDIT_MULTIPLE_TITLES_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommandClass)) -#define IS_EDIT_MULTIPLE_TITLES_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_MULTIPLE_TITLES_COMMAND)) -#define IS_EDIT_MULTIPLE_TITLES_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_MULTIPLE_TITLES_COMMAND)) -#define EDIT_MULTIPLE_TITLES_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_MULTIPLE_TITLES_COMMAND, EditMultipleTitlesCommandClass)) - -typedef struct _EditMultipleTitlesCommand EditMultipleTitlesCommand; -typedef struct _EditMultipleTitlesCommandClass EditMultipleTitlesCommandClass; - -#define TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR (multi_text_entry_dialog_mediator_get_type ()) -#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediator)) -#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass)) -#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass)) - -typedef struct _MultiTextEntryDialogMediator MultiTextEntryDialogMediator; -typedef struct _MultiTextEntryDialogMediatorClass MultiTextEntryDialogMediatorClass; - -#define TYPE_EDIT_COMMENT_DIALOG (edit_comment_dialog_get_type ()) -#define EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialog)) -#define EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass)) -#define IS_EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_COMMENT_DIALOG)) -#define IS_EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_COMMENT_DIALOG)) -#define EDIT_COMMENT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass)) - -typedef struct _EditCommentDialog EditCommentDialog; -typedef struct _EditCommentDialogClass EditCommentDialogClass; - -#define TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND (edit_multiple_comments_command_get_type ()) -#define EDIT_MULTIPLE_COMMENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommand)) -#define EDIT_MULTIPLE_COMMENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommandClass)) -#define IS_EDIT_MULTIPLE_COMMENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND)) -#define IS_EDIT_MULTIPLE_COMMENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND)) -#define EDIT_MULTIPLE_COMMENTS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_MULTIPLE_COMMENTS_COMMAND, EditMultipleCommentsCommandClass)) - -typedef struct _EditMultipleCommentsCommand EditMultipleCommentsCommand; -typedef struct _EditMultipleCommentsCommandClass EditMultipleCommentsCommandClass; -#define _multi_text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (multi_text_entry_dialog_mediator_unref (var), NULL))) - -#define TYPE_SET_RAW_DEVELOPER_COMMAND (set_raw_developer_command_get_type ()) -#define SET_RAW_DEVELOPER_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand)) -#define SET_RAW_DEVELOPER_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommandClass)) -#define IS_SET_RAW_DEVELOPER_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND)) -#define IS_SET_RAW_DEVELOPER_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_RAW_DEVELOPER_COMMAND)) -#define SET_RAW_DEVELOPER_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommandClass)) - -typedef struct _SetRawDeveloperCommand SetRawDeveloperCommand; -typedef struct _SetRawDeveloperCommandClass SetRawDeveloperCommandClass; - -#define TYPE_CHECKERBOARD_LAYOUT (checkerboard_layout_get_type ()) -#define CHECKERBOARD_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout)) -#define CHECKERBOARD_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayoutClass)) -#define IS_CHECKERBOARD_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_LAYOUT)) -#define IS_CHECKERBOARD_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_LAYOUT)) -#define CHECKERBOARD_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayoutClass)) - -typedef struct _CheckerboardLayout CheckerboardLayout; -typedef struct _CheckerboardLayoutClass CheckerboardLayoutClass; -typedef struct _MediaPageZoomSliderAssemblyPrivate MediaPageZoomSliderAssemblyPrivate; -enum { - MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_0_PROPERTY, - MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_NUM_PROPERTIES -}; -static GParamSpec* media_page_zoom_slider_assembly_properties[MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_NUM_PROPERTIES]; -enum { - MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_ZOOM_CHANGED_SIGNAL, - MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_NUM_SIGNALS -}; -static guint media_page_zoom_slider_assembly_signals[MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataView { - DataObject parent_instance; - DataViewPrivate * priv; -}; - -struct _DataViewClass { - DataObjectClass parent_class; - void (*notify_view_altered) (DataView* self); - void (*notify_geometry_altered) (DataView* self); - void (*notify_unsubscribed) (DataView* self, DataSource* source); - void (*state_changed) (DataView* self, gboolean selected); - void (*visibility_changed) (DataView* self, gboolean visible); - void (*view_altered) (DataView* self); - void (*geometry_altered) (DataView* self); - void (*unsubscribed) (DataView* self, DataSource* source); -}; - -struct _ThumbnailView { - DataView parent_instance; - ThumbnailViewPrivate * priv; -}; - -struct _ThumbnailViewClass { - DataViewClass parent_class; - void (*notify_thumbnail_altered) (ThumbnailView* self); - void (*thumbnail_altered) (ThumbnailView* self); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _CheckerboardItem { - ThumbnailView parent_instance; - CheckerboardItemPrivate * priv; - Dimensions requisition; - GdkRectangle allocation; -}; - -struct _CheckerboardItemClass { - ThumbnailViewClass parent_class; - void (*exposed) (CheckerboardItem* self); - void (*unexposed) (CheckerboardItem* self); - gboolean (*is_exposed) (CheckerboardItem* self); - void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha); - void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width); - void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin); - GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale); -}; - -struct _MediaSourceItem { - CheckerboardItem parent_instance; - MediaSourceItemPrivate * priv; -}; - -struct _MediaSourceItemClass { - CheckerboardItemClass parent_class; -}; - -struct _MediaSourceItemPrivate { - gboolean enable_sprockets; - gchar* natural_collation_key; -}; - -typedef enum { - THUMBNAIL_CACHE_SIZE_LARGEST = 360, - THUMBNAIL_CACHE_SIZE_BIG = 360, - THUMBNAIL_CACHE_SIZE_MEDIUM = 128, - THUMBNAIL_CACHE_SIZE_SMALLEST = 128 -} ThumbnailCacheSize; - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -typedef enum { - CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, - CHECKERBOARD_PAGE_ACTIVATOR_MOUSE -} CheckerboardPageActivator; - -struct _CheckerboardPageKeyboardModifiers { - gboolean ctrl_pressed; - gboolean alt_pressed; - gboolean shift_pressed; - gboolean super_pressed; -}; - -struct _CheckerboardPage { - Page parent_instance; - CheckerboardPagePrivate * priv; - CheckerboardItem* anchor; - CheckerboardItem* cursor; -}; - -struct _CheckerboardPageClass { - PageClass parent_class; - GtkMenu* (*get_item_context_menu) (CheckerboardPage* self); - gchar* (*get_view_empty_message) (CheckerboardPage* self); - gchar* (*get_filter_no_match_message) (CheckerboardPage* self); - void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers); - SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self); - CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self); - gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask); - void (*set_display_titles) (CheckerboardPage* self, gboolean display); - void (*set_display_comments) (CheckerboardPage* self, gboolean display); -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _MediaPage { - CheckerboardPage parent_instance; - MediaPagePrivate * priv; -}; - -struct _MediaPageClass { - CheckerboardPageClass parent_class; - void (*on_zoom_changed) (MediaPage* self); - void (*on_export) (MediaPage* self); - void (*on_increase_size) (MediaPage* self); - void (*on_decrease_size) (MediaPage* self); - void (*on_increase_rating) (MediaPage* self); - void (*on_decrease_rating) (MediaPage* self); - void (*on_set_rating) (MediaPage* self, Rating rating); - void (*on_rate_rejected) (MediaPage* self); - void (*on_rate_unrated) (MediaPage* self); - void (*on_rate_one) (MediaPage* self); - void (*on_rate_two) (MediaPage* self); - void (*on_rate_three) (MediaPage* self); - void (*on_rate_four) (MediaPage* self); - void (*on_rate_five) (MediaPage* self); - void (*on_move_to_trash) (MediaPage* self); - void (*on_edit_title) (MediaPage* self); - void (*on_edit_comment) (MediaPage* self); - void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by); - void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by); - void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*developer_changed) (MediaPage* self, RawDeveloper rd); - DataView* (*create_thumbnail) (MediaPage* self, DataSource* source); -}; - -struct _MediaPagePrivate { - MediaPageZoomSliderAssembly* connected_slider; - DragAndDropHandler* dnd_handler; - MediaViewTracker* tracker; -}; - -typedef enum { - MEDIA_PAGE_SORT_BY_MIN = 1, - MEDIA_PAGE_SORT_BY_TITLE = 1, - MEDIA_PAGE_SORT_BY_EXPOSURE_DATE = 2, - MEDIA_PAGE_SORT_BY_RATING = 3, - MEDIA_PAGE_SORT_BY_FILENAME = 4, - MEDIA_PAGE_SORT_BY_MAX = 4 -} MediaPageSortBy; - -typedef gboolean (*ValueEqualFunc) (GValue* a, GValue* b, void* user_data); -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _FlaggableIface { - GTypeInterface parent_iface; - gboolean (*is_flagged) (Flaggable* self); - void (*mark_flagged) (Flaggable* self); - void (*mark_unflagged) (Flaggable* self); -}; - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); -struct _MediaPageZoomSliderAssembly { - GtkToolItem parent_instance; - MediaPageZoomSliderAssemblyPrivate * priv; -}; - -struct _MediaPageZoomSliderAssemblyClass { - GtkToolItemClass parent_class; -}; - -struct _MediaPageZoomSliderAssemblyPrivate { - GtkScale* slider; - GtkAdjustment* adjustment; -}; - - -static gpointer media_source_item_parent_class = NULL; -static GdkPixbuf* media_source_item_basis_sprocket_pixbuf; -static GdkPixbuf* media_source_item_basis_sprocket_pixbuf = NULL; -static GdkPixbuf* media_source_item_current_sprocket_pixbuf; -static GdkPixbuf* media_source_item_current_sprocket_pixbuf = NULL; -static gpointer media_page_parent_class = NULL; -static gpointer media_page_zoom_slider_assembly_parent_class = NULL; - -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType media_source_item_get_type (void) G_GNUC_CONST; -#define MEDIA_SOURCE_ITEM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemPrivate)) -GType thumbnail_source_get_type (void) G_GNUC_CONST; -MediaSourceItem* media_source_item_new (ThumbnailSource* source, - Dimensions* initial_pixbuf_dim, - const gchar* title, - const gchar* comment, - gboolean marked_up, - PangoAlignment alignment); -MediaSourceItem* media_source_item_construct (GType object_type, - ThumbnailSource* source, - Dimensions* initial_pixbuf_dim, - const gchar* title, - const gchar* comment, - gboolean marked_up, - PangoAlignment alignment); -CheckerboardItem* checkerboard_item_construct (GType object_type, - ThumbnailSource* source, - Dimensions* initial_pixbuf_dim, - const gchar* title, - const gchar* comment, - gboolean marked_up, - PangoAlignment alignment); -GdkPixbuf* resources_load_icon (const gchar* name, - gint scale); -static void media_source_item_real_paint_image (CheckerboardItem* base, - cairo_t* ctx, - GdkPixbuf* pixbuf, - GdkPoint* origin); -void dimensions_for_pixbuf (GdkPixbuf* pixbuf, - Dimensions* result); -void checkerboard_item_set_horizontal_trinket_offset (CheckerboardItem* self, - gint horizontal_trinket_offset); -gint dimensions_major_axis (Dimensions *self); -GType thumbnail_cache_size_get_type (void) G_GNUC_CONST; -void checkerboard_item_paint_image (CheckerboardItem* self, - cairo_t* ctx, - GdkPixbuf* pixbuf, - GdkPoint* origin); -void media_source_item_paint_sprockets (MediaSourceItem* self, - cairo_t* ctx, - GdkPoint* item_origin, - Dimensions* item_dimensions); -void media_source_item_paint_one_sprocket (MediaSourceItem* self, - cairo_t* ctx, - GdkPoint* origin); -void media_source_item_set_enable_sprockets (MediaSourceItem* self, - gboolean enable_sprockets); -void media_source_item_set_title (MediaSourceItem* self, - const gchar* text, - gboolean marked_up, - PangoAlignment alignment); -void checkerboard_item_set_title (CheckerboardItem* self, - const gchar* text, - gboolean marked_up, - PangoAlignment alignment); -gchar* media_source_item_get_natural_collation_key (MediaSourceItem* self); -gchar* natural_collate_collate_key (gchar* str); -gchar* checkerboard_item_get_title (CheckerboardItem* self); -static void media_source_item_finalize (GObject * obj); -GType page_get_type (void) G_GNUC_CONST; -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType checkerboard_page_activator_get_type (void) G_GNUC_CONST; -GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST; -CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self); -void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self); -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -GType search_view_filter_get_type (void) G_GNUC_CONST; -gpointer core_tracker_ref (gpointer instance); -void core_tracker_unref (gpointer instance); -GParamSpec* core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void core_value_set_tracker (GValue* value, - gpointer v_object); -void core_value_take_tracker (GValue* value, - gpointer v_object); -gpointer core_value_get_tracker (const GValue* value); -GType core_tracker_get_type (void) G_GNUC_CONST; -GType core_view_tracker_get_type (void) G_GNUC_CONST; -GType media_page_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -GType raw_developer_get_type (void) G_GNUC_CONST; -GType media_page_zoom_slider_assembly_get_type (void) G_GNUC_CONST; -gpointer drag_and_drop_handler_ref (gpointer instance); -void drag_and_drop_handler_unref (gpointer instance); -GParamSpec* param_spec_drag_and_drop_handler (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_drag_and_drop_handler (GValue* value, - gpointer v_object); -void value_take_drag_and_drop_handler (GValue* value, - gpointer v_object); -gpointer value_get_drag_and_drop_handler (const GValue* value); -GType drag_and_drop_handler_get_type (void) G_GNUC_CONST; -GType media_view_tracker_get_type (void) G_GNUC_CONST; -#define MEDIA_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MEDIA_PAGE, MediaPagePrivate)) -GType media_page_sort_by_get_type (void) G_GNUC_CONST; -#define MEDIA_PAGE_SORT_ORDER_ASCENDING 0 -#define MEDIA_PAGE_SORT_ORDER_DESCENDING 1 -#define MEDIA_PAGE_MANUAL_STEPPING 16 -#define MEDIA_PAGE_SLIDER_STEPPING 4 -void media_page_on_export (MediaPage* self); -static void _media_page_on_export_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void media_page_on_send_to (MediaPage* self); -static void _media_page_on_send_to_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void media_page_on_remove_from_library (MediaPage* self); -static void _media_page_on_remove_from_library_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_move_to_trash (MediaPage* self); -static void _media_page_on_move_to_trash_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void media_page_on_new_event (MediaPage* self); -static void _media_page_on_new_event_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void media_page_on_add_tags (MediaPage* self); -static void _media_page_on_add_tags_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void media_page_on_modify_tags (MediaPage* self); -static void _media_page_on_modify_tags_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_increase_size (MediaPage* self); -static void _media_page_on_increase_size_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_decrease_size (MediaPage* self); -static void _media_page_on_decrease_size_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void media_page_on_flag_unflag (MediaPage* self); -static void _media_page_on_flag_unflag_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_increase_rating (MediaPage* self); -static void _media_page_on_increase_rating_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_decrease_rating (MediaPage* self); -static void _media_page_on_decrease_rating_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_rate_rejected (MediaPage* self); -static void _media_page_on_rate_rejected_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_rate_unrated (MediaPage* self); -static void _media_page_on_rate_unrated_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_rate_one (MediaPage* self); -static void _media_page_on_rate_one_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_rate_two (MediaPage* self); -static void _media_page_on_rate_two_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_rate_three (MediaPage* self); -static void _media_page_on_rate_three_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_rate_four (MediaPage* self); -static void _media_page_on_rate_four_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_rate_five (MediaPage* self); -static void _media_page_on_rate_five_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_edit_title (MediaPage* self); -static void _media_page_on_edit_title_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_edit_comment (MediaPage* self); -static void _media_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_play_video (MediaPage* self); -static void _media_page_on_play_video_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void page_on_action_toggle (Page* self, - GAction* action, - GVariant* value); -static void _page_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_display_titles (MediaPage* self, - GSimpleAction* action, - GVariant* value); -static void _media_page_on_display_titles_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -void media_page_on_display_comments (MediaPage* self, - GSimpleAction* action, - GVariant* value); -static void _media_page_on_display_comments_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -void media_page_on_display_ratings (MediaPage* self, - GSimpleAction* action, - GVariant* value); -static void _media_page_on_display_ratings_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -void media_page_on_display_tags (MediaPage* self, - GSimpleAction* action, - GVariant* value); -static void _media_page_on_display_tags_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -void page_on_action_radio (Page* self, - GAction* action, - GVariant* value); -static void _page_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_sort_changed (MediaPage* self, - GSimpleAction* action, - GVariant* value); -static void _media_page_on_sort_changed_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -MediaPage* media_page_construct (GType object_type, - const gchar* page_name); -CheckerboardPage* checkerboard_page_construct (GType object_type, - const gchar* page_name); -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -MediaViewTracker* media_view_tracker_new (ViewCollection* collection); -MediaViewTracker* media_view_tracker_construct (GType object_type, - ViewCollection* collection); -static void media_page_on_media_altered (MediaPage* self, - GeeMap* altered); -static void _media_page_on_media_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -void data_collection_freeze_notifications (DataCollection* self); -void data_collection_set_property (DataCollection* self, - const gchar* name, - GValue* val, - ValueEqualFunc value_equals, - void* value_equals_target); -#define CHECKERBOARD_ITEM_PROP_SHOW_TITLES "show-titles" -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gboolean configuration_facade_get_display_photo_titles (ConfigurationFacade* self); -#define CHECKERBOARD_ITEM_PROP_SHOW_COMMENTS "show-comments" -gboolean configuration_facade_get_display_photo_comments (ConfigurationFacade* self); -#define CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES "show-subtitles" -#define THUMBNAIL_PROP_SHOW_TAGS CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES -gboolean configuration_facade_get_display_photo_tags (ConfigurationFacade* self); -#define THUMBNAIL_PROP_SIZE "thumbnail-size" -gint media_page_get_thumb_size (MediaPage* self); -#define THUMBNAIL_PROP_SHOW_RATINGS "show-ratings" -gboolean configuration_facade_get_display_photo_ratings (ConfigurationFacade* self); -void data_collection_thaw_notifications (DataCollection* self); -DragAndDropHandler* drag_and_drop_handler_new (Page* page); -DragAndDropHandler* drag_and_drop_handler_construct (GType object_type, - Page* page); -static gint media_page_compute_zoom_scale_increase (gint current_scale); -gint thumbnail_get_MIN_SCALE (void); -gint thumbnail_get_MAX_SCALE (void); -static gint media_page_compute_zoom_scale_decrease (gint current_scale); -static void media_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames); -void page_init_collect_ui_filenames (Page* self, - GeeList* ui_filenames); -static void media_page_real_add_actions (Page* base, - GActionMap* map); -void page_add_actions (Page* self, - GActionMap* map); -void media_page_get_config_photos_sort (MediaPage* self, - gboolean* sort_order, - gint* sort_by); -GAction* page_get_action (Page* self, - const gchar* name); -static GVariant* _variant_new23 (gboolean value); -static GVariant* _variant_new24 (gboolean value); -static GVariant* _variant_new25 (gboolean value); -static GVariant* _variant_new26 (gboolean value); -static GVariant* _variant_new27 (gchar* value); -static GVariant* _variant_new28 (const gchar* value); -RawDeveloper configuration_facade_get_default_raw_developer (ConfigurationFacade* self); -static GVariant* _variant_new29 (const gchar* value); -static void media_page_on_raw_developer_changed (MediaPage* self, - GSimpleAction* action, - GVariant* value); -static void _media_page_on_raw_developer_changed_g_simple_action_change_state (GSimpleAction* _sender, - GVariant* value, - gpointer self); -static void media_page_real_remove_actions (Page* base, - GActionMap* map); -void page_remove_actions (Page* self, - GActionMap* map); -static void media_page_real_update_actions (Page* base, - gint selected_count, - gint count); -void page_set_action_sensitive (Page* self, - const gchar* name, - gboolean sensitive); -gboolean desktop_integration_is_send_to_installed (void); -static void media_page_update_rating_sensitivities (MediaPage* self); -static void media_page_update_development_menu_item_sensitivity (MediaPage* self); -DataSource* view_collection_get_selected_source_at (ViewCollection* self, - gint index); -GType media_source_get_type (void) G_GNUC_CONST; -GType video_source_get_type (void) G_GNUC_CONST; -GType video_get_type (void) G_GNUC_CONST; -static void media_page_update_flag_action (MediaPage* self, - gint selected_count); -void page_update_actions (Page* self, - gint selected_count, - gint count); -gboolean alteration_has_detail (Alteration* self, - const gchar* subject, - const gchar* detail); -gint view_collection_get_selected_count (ViewCollection* self); -static gboolean media_page_can_rate_selected (MediaPage* self, - Rating rating); -static gboolean media_page_can_increase_selected_rating (MediaPage* self); -static gboolean media_page_can_decrease_selected_rating (MediaPage* self); -GeeList* view_collection_get_selected (ViewCollection* self); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType thumbnail_get_type (void) G_GNUC_CONST; -MediaSource* thumbnail_get_media_source (Thumbnail* self); -GType photo_file_format_get_type (void) G_GNUC_CONST; -PhotoFileFormat photo_get_master_file_format (Photo* self); -static CoreViewTracker* media_page_real_get_view_tracker (CheckerboardPage* base); -void media_page_set_display_ratings (MediaPage* self, - gboolean display); -void page_set_action_active (Page* self, - const gchar* name, - gboolean active); -Rating media_source_get_rating (MediaSource* self); -gboolean rating_can_increase (Rating self); -gboolean rating_can_decrease (Rating self); -MediaPageZoomSliderAssembly* media_page_create_zoom_slider_assembly (MediaPage* self); -MediaPageZoomSliderAssembly* media_page_zoom_slider_assembly_new (void); -MediaPageZoomSliderAssembly* media_page_zoom_slider_assembly_construct (GType object_type); -static gboolean media_page_real_on_mousewheel_up (Page* base, - GdkEventScroll* event); -void media_page_increase_zoom_level (MediaPage* self); -gboolean page_on_mousewheel_up (Page* self, - GdkEventScroll* event); -static gboolean media_page_real_on_mousewheel_down (Page* base, - GdkEventScroll* event); -void media_page_decrease_zoom_level (MediaPage* self); -gboolean page_on_mousewheel_down (Page* self, - GdkEventScroll* event); -void desktop_integration_send_to (GeeCollection* media); -GeeList* view_collection_get_selected_sources (ViewCollection* self); -DataView* view_collection_get_selected_at (ViewCollection* self, - gint index); -DataSource* data_view_get_source (DataView* self); -GFile* media_source_get_file (MediaSource* self); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -static gboolean media_page_real_on_app_key_pressed (Page* base, - GdkEventKey* event); -void page_activate_action (Page* self, - const gchar* name); -gboolean page_on_app_key_pressed (Page* self, - GdkEventKey* event); -static void media_page_real_switched_to (Page* base); -void page_switched_to (Page* self); -void checkerboard_page_set_display_titles (CheckerboardPage* self, - gboolean display); -void checkerboard_page_set_display_comments (CheckerboardPage* self, - gboolean display); -static void media_page_set_display_tags (MediaPage* self, - gboolean display); -void checkerboard_page_cursor_to_item (CheckerboardPage* self, - CheckerboardItem* item); -void media_page_sync_sort (MediaPage* self); -static void media_page_real_switching_from (Page* base); -void media_page_disconnect_slider (MediaPage* self); -void page_switching_from (Page* self); -void media_page_connect_slider (MediaPage* self, - MediaPageZoomSliderAssembly* slider); -void media_page_on_zoom_changed (MediaPage* self); -static void _media_page_on_zoom_changed_media_page_zoom_slider_assembly_zoom_changed (MediaPageZoomSliderAssembly* _sender, - gpointer self); -static void media_page_load_persistent_thumbnail_scale (MediaPage* self); -static void media_page_save_persistent_thumbnail_scale (MediaPage* self); -void configuration_facade_set_photo_thumbnail_scale (ConfigurationFacade* self, - gint scale); -gint media_page_zoom_slider_assembly_get_scale (MediaPageZoomSliderAssembly* self); -gint configuration_facade_get_photo_thumbnail_scale (ConfigurationFacade* self); -void media_page_zoom_slider_assembly_set_scale (MediaPageZoomSliderAssembly* self, - gint scale); -void media_page_set_thumb_size (MediaPage* self, - gint new_scale); -static void media_page_real_on_zoom_changed (MediaPage* self); -static void media_page_real_on_export (MediaPage* self); -static void media_page_real_on_increase_size (MediaPage* self); -static void media_page_real_on_decrease_size (MediaPage* self); -gpointer text_entry_dialog_mediator_ref (gpointer instance); -void text_entry_dialog_mediator_unref (gpointer instance); -GParamSpec* param_spec_text_entry_dialog_mediator (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -void value_take_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -gpointer value_get_text_entry_dialog_mediator (const GValue* value); -GType text_entry_dialog_mediator_get_type (void) G_GNUC_CONST; -GType tags_dialog_get_type (void) G_GNUC_CONST; -GType add_tags_dialog_get_type (void) G_GNUC_CONST; -AddTagsDialog* add_tags_dialog_new (void); -AddTagsDialog* add_tags_dialog_construct (GType object_type); -gchar** add_tags_dialog_execute (AddTagsDialog* self, - int* result_length1); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* page_get_command_manager (Page* self); -GType command_get_type (void) G_GNUC_CONST; -void command_manager_execute (CommandManager* self, - Command* command); -gpointer hierarchical_tag_index_ref (gpointer instance); -void hierarchical_tag_index_unref (gpointer instance); -GParamSpec* param_spec_hierarchical_tag_index (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_hierarchical_tag_index (GValue* value, - gpointer v_object); -void value_take_hierarchical_tag_index (GValue* value, - gpointer v_object); -gpointer value_get_hierarchical_tag_index (const GValue* value); -GType hierarchical_tag_index_get_type (void) G_GNUC_CONST; -HierarchicalTagIndex* hierarchical_tag_index_get_global_index (void); -gchar** hierarchical_tag_index_get_paths_for_names_array (HierarchicalTagIndex* self, - gchar** names, - int names_length1, - int* result_length1); -AddTagsCommand* add_tags_command_new (gchar** paths, - int paths_length1, - GeeCollection* sources); -AddTagsCommand* add_tags_command_construct (GType object_type, - gchar** paths, - int paths_length1, - GeeCollection* sources); -GType page_command_get_type (void) G_GNUC_CONST; -GType add_tags_command_get_type (void) G_GNUC_CONST; -GType modify_tags_dialog_get_type (void) G_GNUC_CONST; -ModifyTagsDialog* modify_tags_dialog_new (MediaSource* source); -ModifyTagsDialog* modify_tags_dialog_construct (GType object_type, - MediaSource* source); -GType tag_get_type (void) G_GNUC_CONST; -GeeArrayList* modify_tags_dialog_execute (ModifyTagsDialog* self); -ModifyTagsCommand* modify_tags_command_new (MediaSource* media, - GeeCollection* new_tag_list); -ModifyTagsCommand* modify_tags_command_construct (GType object_type, - MediaSource* media, - GeeCollection* new_tag_list); -GType single_data_source_command_get_type (void) G_GNUC_CONST; -GType modify_tags_command_get_type (void) G_GNUC_CONST; -NewEventCommand* new_event_command_new (GeeIterable* iter); -NewEventCommand* new_event_command_construct (GType object_type, - GeeIterable* iter); -GType move_photos_command_get_type (void) G_GNUC_CONST; -GType new_event_command_get_type (void) G_GNUC_CONST; -GeeList* view_collection_get_selected_sources_of_type (ViewCollection* self, - GType t); -GType flaggable_get_type (void) G_GNUC_CONST; -gboolean flaggable_is_flagged (Flaggable* self); -FlagUnflagCommand* flag_unflag_command_new (GeeCollection* sources, - gboolean flag); -FlagUnflagCommand* flag_unflag_command_construct (GType object_type, - GeeCollection* sources, - gboolean flag); -GType multiple_data_source_at_once_command_get_type (void) G_GNUC_CONST; -GType flag_unflag_command_get_type (void) G_GNUC_CONST; -static void media_page_real_on_increase_rating (MediaPage* self); -GType multiple_data_source_command_get_type (void) G_GNUC_CONST; -GType set_rating_command_get_type (void) G_GNUC_CONST; -SetRatingCommand* set_rating_command_new_inc_dec (GeeIterable* iter, - gboolean is_incrementing); -SetRatingCommand* set_rating_command_construct_inc_dec (GType object_type, - GeeIterable* iter, - gboolean is_incrementing); -static void media_page_real_on_decrease_rating (MediaPage* self); -void media_page_on_set_rating (MediaPage* self, - Rating rating); -static void media_page_real_on_set_rating (MediaPage* self, - Rating rating); -SetRatingCommand* set_rating_command_new (GeeIterable* iter, - Rating rating); -SetRatingCommand* set_rating_command_construct (GType object_type, - GeeIterable* iter, - Rating rating); -static void media_page_real_on_rate_rejected (MediaPage* self); -static void media_page_real_on_rate_unrated (MediaPage* self); -static void media_page_real_on_rate_one (MediaPage* self); -static void media_page_real_on_rate_two (MediaPage* self); -static void media_page_real_on_rate_three (MediaPage* self); -static void media_page_real_on_rate_four (MediaPage* self); -static void media_page_real_on_rate_five (MediaPage* self); -GType library_photo_get_type (void) G_GNUC_CONST; -void remove_photos_from_library (GeeCollection* photos); -static void media_page_real_on_move_to_trash (MediaPage* self); -DataView* view_collection_get_next (ViewCollection* self, - DataView* view); -gboolean data_collection_contains (DataCollection* self, - DataObject* object); -void checkerboard_page_set_cursor (CheckerboardPage* self, - CheckerboardItem* item); -TrashUntrashPhotosCommand* trash_untrash_photos_command_new (GeeCollection* sources, - gboolean to_trash); -TrashUntrashPhotosCommand* trash_untrash_photos_command_construct (GType object_type, - GeeCollection* sources, - gboolean to_trash); -GType trash_untrash_photos_command_get_type (void) G_GNUC_CONST; -static void media_page_real_on_edit_title (MediaPage* self); -GType edit_title_dialog_get_type (void) G_GNUC_CONST; -gchar* media_source_get_title (MediaSource* self); -EditTitleDialog* edit_title_dialog_new (const gchar* photo_title); -EditTitleDialog* edit_title_dialog_construct (GType object_type, - const gchar* photo_title); -gchar* edit_title_dialog_execute (EditTitleDialog* self); -EditMultipleTitlesCommand* edit_multiple_titles_command_new (GeeCollection* media_sources, - const gchar* new_title); -EditMultipleTitlesCommand* edit_multiple_titles_command_construct (GType object_type, - GeeCollection* media_sources, - const gchar* new_title); -GType edit_multiple_titles_command_get_type (void) G_GNUC_CONST; -static void media_page_real_on_edit_comment (MediaPage* self); -gpointer multi_text_entry_dialog_mediator_ref (gpointer instance); -void multi_text_entry_dialog_mediator_unref (gpointer instance); -GParamSpec* param_spec_multi_text_entry_dialog_mediator (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_multi_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -void value_take_multi_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -gpointer value_get_multi_text_entry_dialog_mediator (const GValue* value); -GType multi_text_entry_dialog_mediator_get_type (void) G_GNUC_CONST; -GType edit_comment_dialog_get_type (void) G_GNUC_CONST; -gchar* media_source_get_comment (MediaSource* self); -EditCommentDialog* edit_comment_dialog_new (const gchar* comment, - gboolean is_event); -EditCommentDialog* edit_comment_dialog_construct (GType object_type, - const gchar* comment, - gboolean is_event); -gchar* edit_comment_dialog_execute (EditCommentDialog* self); -EditMultipleCommentsCommand* edit_multiple_comments_command_new (GeeCollection* media_sources, - const gchar* new_comment); -EditMultipleCommentsCommand* edit_multiple_comments_command_construct (GType object_type, - GeeCollection* media_sources, - const gchar* new_comment); -GType edit_multiple_comments_command_get_type (void) G_GNUC_CONST; -static void media_page_real_on_display_titles (MediaPage* self, - GSimpleAction* action, - GVariant* value); -void configuration_facade_set_display_photo_titles (ConfigurationFacade* self, - gboolean display); -static void media_page_real_on_display_comments (MediaPage* self, - GSimpleAction* action, - GVariant* value); -void configuration_facade_set_display_photo_comments (ConfigurationFacade* self, - gboolean display); -static void media_page_real_on_display_ratings (MediaPage* self, - GSimpleAction* action, - GVariant* value); -void configuration_facade_set_display_photo_ratings (ConfigurationFacade* self, - gboolean display); -static void media_page_real_on_display_tags (MediaPage* self, - GSimpleAction* action, - GVariant* value); -void configuration_facade_set_display_photo_tags (ConfigurationFacade* self, - gboolean display); -static void media_page_real_get_config_photos_sort (MediaPage* self, - gboolean* sort_order, - gint* sort_by); -void media_page_set_config_photos_sort (MediaPage* self, - gboolean sort_order, - gint sort_by); -static void media_page_real_set_config_photos_sort (MediaPage* self, - gboolean sort_order, - gint sort_by); -static void media_page_real_on_sort_changed (MediaPage* self, - GSimpleAction* action, - GVariant* value); -gint media_page_get_menu_sort_by (MediaPage* self); -gboolean media_page_get_menu_sort_order (MediaPage* self); -static void media_page_set_view_comparator (MediaPage* self, - gint sort_by, - gboolean ascending); -void media_page_developer_changed (MediaPage* self, - RawDeveloper rd); -static void media_page_real_developer_changed (MediaPage* self, - RawDeveloper rd); -gboolean raw_developer_is_equivalent (RawDeveloper self, - RawDeveloper d); -RawDeveloper photo_get_raw_developer (Photo* self); -gboolean photo_has_transformations (Photo* self); -gboolean dialogs_confirm_warn_developer_changed (gint number); -GType set_raw_developer_command_get_type (void) G_GNUC_CONST; -SetRawDeveloperCommand* set_raw_developer_command_new (GeeIterable* iter, - RawDeveloper developer); -SetRawDeveloperCommand* set_raw_developer_command_construct (GType object_type, - GeeIterable* iter, - RawDeveloper developer); -static void media_page_real_set_display_titles (CheckerboardPage* base, - gboolean display); -static void media_page_real_set_display_comments (CheckerboardPage* base, - gboolean display); -static GAction* media_page_sort_by_title_action (MediaPage* self); -static GAction* media_page_sort_ascending_action (MediaPage* self); -void media_page_set_menu_sort_by (MediaPage* self, - gint val); -static GVariant* _variant_new30 (const gchar* value); -void media_page_set_menu_sort_order (MediaPage* self, - gboolean ascending); -static GVariant* _variant_new31 (const gchar* value); -gint64 thumbnail_title_ascending_comparator (void* a, - void* b); -static gint64 _thumbnail_title_ascending_comparator_comparator (void* a, - void* b, - gpointer self); -gint64 thumbnail_title_descending_comparator (void* a, - void* b); -static gint64 _thumbnail_title_descending_comparator_comparator (void* a, - void* b, - gpointer self); -gboolean thumbnail_title_comparator_predicate (DataObject* object, - Alteration* alteration); -static gboolean _thumbnail_title_comparator_predicate_comparator_predicate (DataObject* object, - Alteration* alteration, - gpointer self); -gint64 thumbnail_exposure_time_ascending_comparator (void* a, - void* b); -static gint64 _thumbnail_exposure_time_ascending_comparator_comparator (void* a, - void* b, - gpointer self); -gint64 thumbnail_exposure_time_desending_comparator (void* a, - void* b); -static gint64 _thumbnail_exposure_time_desending_comparator_comparator (void* a, - void* b, - gpointer self); -gboolean thumbnail_exposure_time_comparator_predicate (DataObject* object, - Alteration* alteration); -static gboolean _thumbnail_exposure_time_comparator_predicate_comparator_predicate (DataObject* object, - Alteration* alteration, - gpointer self); -gint64 thumbnail_rating_ascending_comparator (void* a, - void* b); -static gint64 _thumbnail_rating_ascending_comparator_comparator (void* a, - void* b, - gpointer self); -gint64 thumbnail_rating_descending_comparator (void* a, - void* b); -static gint64 _thumbnail_rating_descending_comparator_comparator (void* a, - void* b, - gpointer self); -gboolean thumbnail_rating_comparator_predicate (DataObject* object, - Alteration* alteration); -static gboolean _thumbnail_rating_comparator_predicate_comparator_predicate (DataObject* object, - Alteration* alteration, - gpointer self); -gint64 thumbnail_filename_ascending_comparator (void* a, - void* b); -static gint64 _thumbnail_filename_ascending_comparator_comparator (void* a, - void* b, - gpointer self); -gint64 thumbnail_filename_descending_comparator (void* a, - void* b); -static gint64 _thumbnail_filename_descending_comparator_comparator (void* a, - void* b, - gpointer self); -gboolean thumbnail_filename_comparator_predicate (DataObject* object, - Alteration* alteration); -static gboolean _thumbnail_filename_comparator_predicate_comparator_predicate (DataObject* object, - Alteration* alteration, - gpointer self); -void data_collection_set_comparator (DataCollection* self, - Comparator comparator, - void* comparator_target, - ComparatorPredicate predicate, - void* predicate_target); -static void media_page_real_destroy (GtkWidget* base); -void media_page_zoom_slider_assembly_increase_step (MediaPageZoomSliderAssembly* self); -void media_page_zoom_slider_assembly_decrease_step (MediaPageZoomSliderAssembly* self); -DataView* media_page_create_thumbnail (MediaPage* self, - DataSource* source); -static DataView* media_page_real_create_thumbnail (MediaPage* self, - DataSource* source); -Thumbnail* thumbnail_new (MediaSource* media, - gint scale); -Thumbnail* thumbnail_construct (GType object_type, - MediaSource* media, - gint scale); -gboolean page_is_in_view (Page* self); -GType checkerboard_layout_get_type (void) G_GNUC_CONST; -CheckerboardLayout* checkerboard_page_get_checkerboard_layout (CheckerboardPage* self); -void checkerboard_layout_set_scale (CheckerboardLayout* self, - gint scale); -gint checkerboard_layout_get_scale (CheckerboardLayout* self); -#define MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssemblyPrivate)) -#define RESOURCES_ICON_ZOOM_OUT "zoom-out.png" -#define RESOURCES_ICON_ZOOM_SCALE 16 -static gboolean media_page_zoom_slider_assembly_on_zoom_out_pressed (MediaPageZoomSliderAssembly* self, - GdkEventButton* event); -static gboolean _media_page_zoom_slider_assembly_on_zoom_out_pressed_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self); -gdouble media_page_zoom_slider_assembly_scale_to_slider (gint value); -static void media_page_zoom_slider_assembly_on_slider_changed (MediaPageZoomSliderAssembly* self); -static void _media_page_zoom_slider_assembly_on_slider_changed_gtk_range_value_changed (GtkRange* _sender, - gpointer self); -#define RESOURCES_ICON_ZOOM_IN "zoom-in.png" -static gboolean media_page_zoom_slider_assembly_on_zoom_in_pressed (MediaPageZoomSliderAssembly* self, - GdkEventButton* event); -static gboolean _media_page_zoom_slider_assembly_on_zoom_in_pressed_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self); -gint media_page_zoom_slider_assembly_slider_to_scale (gdouble value); -void media_page_zoom_slider_assembly_snap_to_min (MediaPageZoomSliderAssembly* self); -void media_page_zoom_slider_assembly_snap_to_max (MediaPageZoomSliderAssembly* self); -static void media_page_zoom_slider_assembly_finalize (GObject * obj); -static void media_page_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - -static const GActionEntry MEDIA_PAGE_entries[29] = {{"Export", _media_page_on_export_gsimple_action_activate_callback}, {"SendTo", _media_page_on_send_to_gsimple_action_activate_callback}, {"SendToContextMenu", _media_page_on_send_to_gsimple_action_activate_callback}, {"RemoveFromLibrary", _media_page_on_remove_from_library_gsimple_action_activate_callback}, {"MoveToTrash", _media_page_on_move_to_trash_gsimple_action_activate_callback}, {"NewEvent", _media_page_on_new_event_gsimple_action_activate_callback}, {"AddTags", _media_page_on_add_tags_gsimple_action_activate_callback}, {"ModifyTags", _media_page_on_modify_tags_gsimple_action_activate_callback}, {"IncreaseSize", _media_page_on_increase_size_gsimple_action_activate_callback}, {"DecreaseSize", _media_page_on_decrease_size_gsimple_action_activate_callback}, {"Flag", _media_page_on_flag_unflag_gsimple_action_activate_callback}, {"IncreaseRating", _media_page_on_increase_rating_gsimple_action_activate_callback}, {"DecreaseRating", _media_page_on_decrease_rating_gsimple_action_activate_callback}, {"RateRejected", _media_page_on_rate_rejected_gsimple_action_activate_callback}, {"RateUnrated", _media_page_on_rate_unrated_gsimple_action_activate_callback}, {"RateOne", _media_page_on_rate_one_gsimple_action_activate_callback}, {"RateTwo", _media_page_on_rate_two_gsimple_action_activate_callback}, {"RateThree", _media_page_on_rate_three_gsimple_action_activate_callback}, {"RateFour", _media_page_on_rate_four_gsimple_action_activate_callback}, {"RateFive", _media_page_on_rate_five_gsimple_action_activate_callback}, {"EditTitle", _media_page_on_edit_title_gsimple_action_activate_callback}, {"EditComment", _media_page_on_edit_comment_gsimple_action_activate_callback}, {"PlayVideo", _media_page_on_play_video_gsimple_action_activate_callback}, {"ViewTitle", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _media_page_on_display_titles_gsimple_action_change_state_callback}, {"ViewComment", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _media_page_on_display_comments_gsimple_action_change_state_callback}, {"ViewRatings", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _media_page_on_display_ratings_gsimple_action_change_state_callback}, {"ViewTags", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _media_page_on_display_tags_gsimple_action_change_state_callback}, {"SortBy", _page_on_action_radio_gsimple_action_activate_callback, "s", "'1'", _media_page_on_sort_changed_gsimple_action_change_state_callback}, {"Sort", _page_on_action_radio_gsimple_action_activate_callback, "s", "'ascending'", _media_page_on_sort_changed_gsimple_action_change_state_callback}}; - -MediaSourceItem* -media_source_item_construct (GType object_type, - ThumbnailSource* source, - Dimensions* initial_pixbuf_dim, - const gchar* title, - const gchar* comment, - gboolean marked_up, - PangoAlignment alignment) -{ - MediaSourceItem * self = NULL; - Dimensions _tmp0_; - GdkPixbuf* _tmp1_; -#line 16 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), NULL); -#line 16 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (initial_pixbuf_dim != NULL, NULL); -#line 16 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (title != NULL, NULL); -#line 18 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = *initial_pixbuf_dim; -#line 18 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = (MediaSourceItem*) checkerboard_item_construct (object_type, source, &_tmp0_, title, comment, marked_up, alignment); -#line 19 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = media_source_item_basis_sprocket_pixbuf; -#line 19 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp1_ == NULL) { -#line 1822 "MediaPage.c" - GdkPixbuf* _tmp2_; -#line 20 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = resources_load_icon ("sprocket.png", 0); -#line 20 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (media_source_item_basis_sprocket_pixbuf); -#line 20 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_source_item_basis_sprocket_pixbuf = _tmp2_; -#line 1830 "MediaPage.c" - } -#line 16 "/home/jens/Source/shotwell/src/MediaPage.vala" - return self; -#line 1834 "MediaPage.c" -} - - -MediaSourceItem* -media_source_item_new (ThumbnailSource* source, - Dimensions* initial_pixbuf_dim, - const gchar* title, - const gchar* comment, - gboolean marked_up, - PangoAlignment alignment) -{ -#line 16 "/home/jens/Source/shotwell/src/MediaPage.vala" - return media_source_item_construct (TYPE_MEDIA_SOURCE_ITEM, source, initial_pixbuf_dim, title, comment, marked_up, alignment); -#line 1848 "MediaPage.c" -} - - -static void -media_source_item_real_paint_image (CheckerboardItem* base, - cairo_t* ctx, - GdkPixbuf* pixbuf, - GdkPoint* origin) -{ - MediaSourceItem * self; - Dimensions pixbuf_dim = {0}; - Dimensions _tmp0_ = {0}; - gboolean _tmp1_; - GdkPoint _tmp19_; - gboolean _tmp20_; -#line 23 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem); -#line 23 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (ctx != NULL); -#line 23 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 23 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (origin != NULL); -#line 25 "/home/jens/Source/shotwell/src/MediaPage.vala" - dimensions_for_pixbuf (pixbuf, &_tmp0_); -#line 25 "/home/jens/Source/shotwell/src/MediaPage.vala" - pixbuf_dim = _tmp0_; -#line 30 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = self->priv->enable_sprockets; -#line 30 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (!_tmp1_) { -#line 31 "/home/jens/Source/shotwell/src/MediaPage.vala" - checkerboard_item_set_horizontal_trinket_offset (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), 0); -#line 1882 "MediaPage.c" - } else { - gdouble reduction_factor = 0.0; - gint reduced_size = 0; - gdouble _tmp2_; - GdkPixbuf* _tmp3_; - gint _tmp4_; - gint _tmp5_; - gboolean _tmp6_ = FALSE; - GdkPixbuf* _tmp7_; - GdkPixbuf* _tmp16_; - gint _tmp17_; - gint _tmp18_; -#line 33 "/home/jens/Source/shotwell/src/MediaPage.vala" - reduction_factor = ((gdouble) dimensions_major_axis (&pixbuf_dim)) / ((gdouble) THUMBNAIL_CACHE_SIZE_LARGEST); -#line 35 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = reduction_factor; -#line 35 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = media_source_item_basis_sprocket_pixbuf; -#line 35 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = gdk_pixbuf_get_width (_tmp3_); -#line 35 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = _tmp4_; -#line 35 "/home/jens/Source/shotwell/src/MediaPage.vala" - reduced_size = (gint) (_tmp2_ * _tmp5_); -#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = media_source_item_current_sprocket_pixbuf; -#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp7_ == NULL) { -#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = TRUE; -#line 1913 "MediaPage.c" - } else { - gint _tmp8_; - GdkPixbuf* _tmp9_; - gint _tmp10_; - gint _tmp11_; -#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = reduced_size; -#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = media_source_item_current_sprocket_pixbuf; -#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = gdk_pixbuf_get_width (_tmp9_); -#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = _tmp10_; -#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _tmp8_ != _tmp11_; -#line 1929 "MediaPage.c" - } -#line 37 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp6_) { -#line 1933 "MediaPage.c" - GdkPixbuf* _tmp12_; - gint _tmp13_; - gint _tmp14_; - GdkPixbuf* _tmp15_; -#line 38 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = media_source_item_basis_sprocket_pixbuf; -#line 38 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = reduced_size; -#line 38 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = reduced_size; -#line 38 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = gdk_pixbuf_scale_simple (_tmp12_, _tmp13_, _tmp14_, GDK_INTERP_HYPER); -#line 38 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (media_source_item_current_sprocket_pixbuf); -#line 38 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_source_item_current_sprocket_pixbuf = _tmp15_; -#line 1950 "MediaPage.c" - } -#line 42 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = media_source_item_current_sprocket_pixbuf; -#line 42 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp17_ = gdk_pixbuf_get_width (_tmp16_); -#line 42 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp18_ = _tmp17_; -#line 42 "/home/jens/Source/shotwell/src/MediaPage.vala" - checkerboard_item_set_horizontal_trinket_offset (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp18_); -#line 1960 "MediaPage.c" - } -#line 45 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp19_ = *origin; -#line 45 "/home/jens/Source/shotwell/src/MediaPage.vala" - CHECKERBOARD_ITEM_CLASS (media_source_item_parent_class)->paint_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), ctx, pixbuf, &_tmp19_); -#line 47 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp20_ = self->priv->enable_sprockets; -#line 47 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp20_) { -#line 1970 "MediaPage.c" - GdkPoint _tmp21_; - Dimensions _tmp22_; -#line 48 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp21_ = *origin; -#line 48 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp22_ = pixbuf_dim; -#line 48 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_source_item_paint_sprockets (self, ctx, &_tmp21_, &_tmp22_); -#line 1979 "MediaPage.c" - } -} - - -void -media_source_item_paint_one_sprocket (MediaSourceItem* self, - cairo_t* ctx, - GdkPoint* origin) -{ - GdkPixbuf* _tmp0_; - GdkPoint _tmp1_; - gint _tmp2_; - GdkPoint _tmp3_; - gint _tmp4_; -#line 52 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_SOURCE_ITEM (self)); -#line 52 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (ctx != NULL); -#line 52 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (origin != NULL); -#line 53 "/home/jens/Source/shotwell/src/MediaPage.vala" - cairo_save (ctx); -#line 54 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = media_source_item_current_sprocket_pixbuf; -#line 54 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = *origin; -#line 54 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = _tmp1_.x; -#line 54 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = *origin; -#line 54 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _tmp3_.y; -#line 54 "/home/jens/Source/shotwell/src/MediaPage.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp0_, (gdouble) _tmp2_, (gdouble) _tmp4_); -#line 55 "/home/jens/Source/shotwell/src/MediaPage.vala" - cairo_paint (ctx); -#line 56 "/home/jens/Source/shotwell/src/MediaPage.vala" - cairo_restore (ctx); -#line 2018 "MediaPage.c" -} - - -void -media_source_item_paint_sprockets (MediaSourceItem* self, - cairo_t* ctx, - GdkPoint* item_origin, - Dimensions* item_dimensions) -{ - gint num_sprockets = 0; - Dimensions _tmp0_; - gint _tmp1_; - GdkPixbuf* _tmp2_; - gint _tmp3_; - gint _tmp4_; - GdkPoint left_paint_location = {0}; - GdkPoint _tmp5_; - GdkPoint right_paint_location = {0}; - GdkPoint _tmp6_; - gint _tmp7_; - Dimensions _tmp8_; - gint _tmp9_; - GdkPixbuf* _tmp10_; - gint _tmp11_; - gint _tmp12_; - gint straggler_pixels = 0; - Dimensions _tmp27_; - gint _tmp28_; - GdkPixbuf* _tmp29_; - gint _tmp30_; - gint _tmp31_; - gint _tmp32_; -#line 59 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_SOURCE_ITEM (self)); -#line 59 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (ctx != NULL); -#line 59 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (item_origin != NULL); -#line 59 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (item_dimensions != NULL); -#line 61 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = *item_dimensions; -#line 61 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_.height; -#line 61 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = media_source_item_current_sprocket_pixbuf; -#line 61 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = gdk_pixbuf_get_height (_tmp2_); -#line 61 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _tmp3_; -#line 61 "/home/jens/Source/shotwell/src/MediaPage.vala" - num_sprockets = _tmp1_ / _tmp4_; -#line 63 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = *item_origin; -#line 63 "/home/jens/Source/shotwell/src/MediaPage.vala" - left_paint_location = _tmp5_; -#line 64 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = *item_origin; -#line 64 "/home/jens/Source/shotwell/src/MediaPage.vala" - right_paint_location = _tmp6_; -#line 65 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = right_paint_location.x; -#line 65 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = *item_dimensions; -#line 65 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = _tmp8_.width; -#line 65 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = media_source_item_current_sprocket_pixbuf; -#line 65 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = gdk_pixbuf_get_width (_tmp10_); -#line 65 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = _tmp11_; -#line 65 "/home/jens/Source/shotwell/src/MediaPage.vala" - right_paint_location.x = _tmp7_ + (_tmp9_ - _tmp12_); -#line 2093 "MediaPage.c" - { - gint i = 0; -#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" - i = 0; -#line 2098 "MediaPage.c" - { - gboolean _tmp13_ = FALSE; -#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = TRUE; -#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" - while (TRUE) { -#line 2105 "MediaPage.c" - gint _tmp15_; - gint _tmp16_; - GdkPoint _tmp17_; - GdkPoint _tmp18_; - gint _tmp19_; - GdkPixbuf* _tmp20_; - gint _tmp21_; - gint _tmp22_; - gint _tmp23_; - GdkPixbuf* _tmp24_; - gint _tmp25_; - gint _tmp26_; -#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (!_tmp13_) { -#line 2120 "MediaPage.c" - gint _tmp14_; -#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = i; -#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" - i = _tmp14_ + 1; -#line 2126 "MediaPage.c" - } -#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = FALSE; -#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = i; -#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = num_sprockets; -#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (!(_tmp15_ < _tmp16_)) { -#line 66 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 2138 "MediaPage.c" - } -#line 67 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp17_ = left_paint_location; -#line 67 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_source_item_paint_one_sprocket (self, ctx, &_tmp17_); -#line 68 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp18_ = right_paint_location; -#line 68 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_source_item_paint_one_sprocket (self, ctx, &_tmp18_); -#line 70 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp19_ = left_paint_location.y; -#line 70 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp20_ = media_source_item_current_sprocket_pixbuf; -#line 70 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp21_ = gdk_pixbuf_get_height (_tmp20_); -#line 70 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp22_ = _tmp21_; -#line 70 "/home/jens/Source/shotwell/src/MediaPage.vala" - left_paint_location.y = _tmp19_ + _tmp22_; -#line 71 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp23_ = right_paint_location.y; -#line 71 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp24_ = media_source_item_current_sprocket_pixbuf; -#line 71 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp25_ = gdk_pixbuf_get_height (_tmp24_); -#line 71 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp26_ = _tmp25_; -#line 71 "/home/jens/Source/shotwell/src/MediaPage.vala" - right_paint_location.y = _tmp23_ + _tmp26_; -#line 2168 "MediaPage.c" - } - } - } -#line 74 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp27_ = *item_dimensions; -#line 74 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp28_ = _tmp27_.height; -#line 74 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp29_ = media_source_item_current_sprocket_pixbuf; -#line 74 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp30_ = gdk_pixbuf_get_height (_tmp29_); -#line 74 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp31_ = _tmp30_; -#line 74 "/home/jens/Source/shotwell/src/MediaPage.vala" - straggler_pixels = _tmp28_ % _tmp31_; -#line 75 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp32_ = straggler_pixels; -#line 75 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp32_ > 0) { -#line 2188 "MediaPage.c" - GdkPixbuf* _tmp33_; - GdkPoint _tmp34_; - gint _tmp35_; - GdkPoint _tmp36_; - gint _tmp37_; - GdkPoint _tmp38_; - gint _tmp39_; - GdkPoint _tmp40_; - gint _tmp41_; - GdkPixbuf* _tmp42_; - gint _tmp43_; - GdkPixbuf* _tmp44_; - GdkPoint _tmp45_; - gint _tmp46_; - GdkPoint _tmp47_; - gint _tmp48_; - GdkPoint _tmp49_; - gint _tmp50_; - GdkPoint _tmp51_; - gint _tmp52_; - GdkPixbuf* _tmp53_; - gint _tmp54_; -#line 76 "/home/jens/Source/shotwell/src/MediaPage.vala" - cairo_save (ctx); -#line 78 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp33_ = media_source_item_current_sprocket_pixbuf; -#line 78 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp34_ = left_paint_location; -#line 78 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp35_ = _tmp34_.x; -#line 78 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp36_ = left_paint_location; -#line 78 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp37_ = _tmp36_.y; -#line 78 "/home/jens/Source/shotwell/src/MediaPage.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp33_, (gdouble) _tmp35_, (gdouble) _tmp37_); -#line 80 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp38_ = left_paint_location; -#line 80 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp39_ = _tmp38_.x; -#line 80 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp40_ = left_paint_location; -#line 80 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp41_ = _tmp40_.y; -#line 80 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp42_ = media_source_item_current_sprocket_pixbuf; -#line 80 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp43_ = straggler_pixels; -#line 80 "/home/jens/Source/shotwell/src/MediaPage.vala" - cairo_rectangle (ctx, (gdouble) _tmp39_, (gdouble) _tmp41_, (gdouble) gdk_pixbuf_get_width (_tmp42_), (gdouble) _tmp43_); -#line 82 "/home/jens/Source/shotwell/src/MediaPage.vala" - cairo_fill (ctx); -#line 84 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp44_ = media_source_item_current_sprocket_pixbuf; -#line 84 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp45_ = right_paint_location; -#line 84 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp46_ = _tmp45_.x; -#line 84 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp47_ = right_paint_location; -#line 84 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp48_ = _tmp47_.y; -#line 84 "/home/jens/Source/shotwell/src/MediaPage.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp44_, (gdouble) _tmp46_, (gdouble) _tmp48_); -#line 86 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp49_ = right_paint_location; -#line 86 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp50_ = _tmp49_.x; -#line 86 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp51_ = right_paint_location; -#line 86 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp52_ = _tmp51_.y; -#line 86 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp53_ = media_source_item_current_sprocket_pixbuf; -#line 86 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp54_ = straggler_pixels; -#line 86 "/home/jens/Source/shotwell/src/MediaPage.vala" - cairo_rectangle (ctx, (gdouble) _tmp50_, (gdouble) _tmp52_, (gdouble) gdk_pixbuf_get_width (_tmp53_), (gdouble) _tmp54_); -#line 88 "/home/jens/Source/shotwell/src/MediaPage.vala" - cairo_fill (ctx); -#line 90 "/home/jens/Source/shotwell/src/MediaPage.vala" - cairo_restore (ctx); -#line 2271 "MediaPage.c" - } -} - - -void -media_source_item_set_enable_sprockets (MediaSourceItem* self, - gboolean enable_sprockets) -{ -#line 94 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_SOURCE_ITEM (self)); -#line 95 "/home/jens/Source/shotwell/src/MediaPage.vala" - self->priv->enable_sprockets = enable_sprockets; -#line 2284 "MediaPage.c" -} - - -void -media_source_item_set_title (MediaSourceItem* self, - const gchar* text, - gboolean marked_up, - PangoAlignment alignment) -{ -#line 98 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_SOURCE_ITEM (self)); -#line 98 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (text != NULL); -#line 100 "/home/jens/Source/shotwell/src/MediaPage.vala" - checkerboard_item_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), text, marked_up, alignment); -#line 101 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_free0 (self->priv->natural_collation_key); -#line 101 "/home/jens/Source/shotwell/src/MediaPage.vala" - self->priv->natural_collation_key = NULL; -#line 2304 "MediaPage.c" -} - - -gchar* -media_source_item_get_natural_collation_key (MediaSourceItem* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp3_; - gchar* _tmp4_; -#line 104 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE_ITEM (self), NULL); -#line 105 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = self->priv->natural_collation_key; -#line 105 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp0_ == NULL) { -#line 2321 "MediaPage.c" - gchar* _tmp1_; - gchar* _tmp2_; -#line 106 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = checkerboard_item_get_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 106 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = natural_collate_collate_key (_tmp1_); -#line 106 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_free0 (self->priv->natural_collation_key); -#line 106 "/home/jens/Source/shotwell/src/MediaPage.vala" - self->priv->natural_collation_key = _tmp2_; -#line 2332 "MediaPage.c" - } -#line 108 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = self->priv->natural_collation_key; -#line 108 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = g_strdup (_tmp3_); -#line 108 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = _tmp4_; -#line 108 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 2342 "MediaPage.c" -} - - -static void -media_source_item_class_init (MediaSourceItemClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_source_item_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_type_class_add_private (klass, sizeof (MediaSourceItemPrivate)); -#line 7 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((CheckerboardItemClass *) klass)->paint_image = (void (*) (CheckerboardItem *, cairo_t*, GdkPixbuf*, GdkPoint*)) media_source_item_real_paint_image; -#line 7 "/home/jens/Source/shotwell/src/MediaPage.vala" - G_OBJECT_CLASS (klass)->finalize = media_source_item_finalize; -#line 2357 "MediaPage.c" -} - - -static void -media_source_item_instance_init (MediaSourceItem * self) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaPage.vala" - self->priv = MEDIA_SOURCE_ITEM_GET_PRIVATE (self); -#line 11 "/home/jens/Source/shotwell/src/MediaPage.vala" - self->priv->enable_sprockets = FALSE; -#line 12 "/home/jens/Source/shotwell/src/MediaPage.vala" - self->priv->natural_collation_key = NULL; -#line 2370 "MediaPage.c" -} - - -static void -media_source_item_finalize (GObject * obj) -{ - MediaSourceItem * self; -#line 7 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem); -#line 12 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_free0 (self->priv->natural_collation_key); -#line 7 "/home/jens/Source/shotwell/src/MediaPage.vala" - G_OBJECT_CLASS (media_source_item_parent_class)->finalize (obj); -#line 2384 "MediaPage.c" -} - - -GType -media_source_item_get_type (void) -{ - static volatile gsize media_source_item_type_id__volatile = 0; - if (g_once_init_enter (&media_source_item_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MediaSourceItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_source_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaSourceItem), 0, (GInstanceInitFunc) media_source_item_instance_init, NULL }; - GType media_source_item_type_id; - media_source_item_type_id = g_type_register_static (TYPE_CHECKERBOARD_ITEM, "MediaSourceItem", &g_define_type_info, 0); - g_once_init_leave (&media_source_item_type_id__volatile, media_source_item_type_id); - } - return media_source_item_type_id__volatile; -} - - -GType -media_page_sort_by_get_type (void) -{ - static volatile gsize media_page_sort_by_type_id__volatile = 0; - if (g_once_init_enter (&media_page_sort_by_type_id__volatile)) { - static const GEnumValue values[] = {{MEDIA_PAGE_SORT_BY_MIN, "MEDIA_PAGE_SORT_BY_MIN", "min"}, {MEDIA_PAGE_SORT_BY_TITLE, "MEDIA_PAGE_SORT_BY_TITLE", "title"}, {MEDIA_PAGE_SORT_BY_EXPOSURE_DATE, "MEDIA_PAGE_SORT_BY_EXPOSURE_DATE", "exposure-date"}, {MEDIA_PAGE_SORT_BY_RATING, "MEDIA_PAGE_SORT_BY_RATING", "rating"}, {MEDIA_PAGE_SORT_BY_FILENAME, "MEDIA_PAGE_SORT_BY_FILENAME", "filename"}, {MEDIA_PAGE_SORT_BY_MAX, "MEDIA_PAGE_SORT_BY_MAX", "max"}, {0, NULL, NULL}}; - GType media_page_sort_by_type_id; - media_page_sort_by_type_id = g_enum_register_static ("MediaPageSortBy", values); - g_once_init_leave (&media_page_sort_by_type_id__volatile, media_page_sort_by_type_id); - } - return media_page_sort_by_type_id__volatile; -} - - -static void -_media_page_on_export_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_export ((MediaPage*) self); -#line 2423 "MediaPage.c" -} - - -static void -_media_page_on_send_to_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_send_to ((MediaPage*) self); -#line 2434 "MediaPage.c" -} - - -static void -_media_page_on_remove_from_library_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_remove_from_library ((MediaPage*) self); -#line 2445 "MediaPage.c" -} - - -static void -_media_page_on_move_to_trash_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_move_to_trash ((MediaPage*) self); -#line 2456 "MediaPage.c" -} - - -static void -_media_page_on_new_event_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_new_event ((MediaPage*) self); -#line 2467 "MediaPage.c" -} - - -static void -_media_page_on_add_tags_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_add_tags ((MediaPage*) self); -#line 2478 "MediaPage.c" -} - - -static void -_media_page_on_modify_tags_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_modify_tags ((MediaPage*) self); -#line 2489 "MediaPage.c" -} - - -static void -_media_page_on_increase_size_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_increase_size ((MediaPage*) self); -#line 2500 "MediaPage.c" -} - - -static void -_media_page_on_decrease_size_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_decrease_size ((MediaPage*) self); -#line 2511 "MediaPage.c" -} - - -static void -_media_page_on_flag_unflag_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_flag_unflag ((MediaPage*) self); -#line 2522 "MediaPage.c" -} - - -static void -_media_page_on_increase_rating_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_increase_rating ((MediaPage*) self); -#line 2533 "MediaPage.c" -} - - -static void -_media_page_on_decrease_rating_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_decrease_rating ((MediaPage*) self); -#line 2544 "MediaPage.c" -} - - -static void -_media_page_on_rate_rejected_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_rate_rejected ((MediaPage*) self); -#line 2555 "MediaPage.c" -} - - -static void -_media_page_on_rate_unrated_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_rate_unrated ((MediaPage*) self); -#line 2566 "MediaPage.c" -} - - -static void -_media_page_on_rate_one_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_rate_one ((MediaPage*) self); -#line 2577 "MediaPage.c" -} - - -static void -_media_page_on_rate_two_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_rate_two ((MediaPage*) self); -#line 2588 "MediaPage.c" -} - - -static void -_media_page_on_rate_three_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_rate_three ((MediaPage*) self); -#line 2599 "MediaPage.c" -} - - -static void -_media_page_on_rate_four_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_rate_four ((MediaPage*) self); -#line 2610 "MediaPage.c" -} - - -static void -_media_page_on_rate_five_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_rate_five ((MediaPage*) self); -#line 2621 "MediaPage.c" -} - - -static void -_media_page_on_edit_title_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_edit_title ((MediaPage*) self); -#line 2632 "MediaPage.c" -} - - -static void -_media_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_edit_comment ((MediaPage*) self); -#line 2643 "MediaPage.c" -} - - -static void -_media_page_on_play_video_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_play_video ((MediaPage*) self); -#line 2654 "MediaPage.c" -} - - -static void -_page_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_on_action_toggle ((Page*) self, action, parameter); -#line 2665 "MediaPage.c" -} - - -static void -_media_page_on_display_titles_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_display_titles ((MediaPage*) self, action, value); -#line 2676 "MediaPage.c" -} - - -static void -_media_page_on_display_comments_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_display_comments ((MediaPage*) self, action, value); -#line 2687 "MediaPage.c" -} - - -static void -_media_page_on_display_ratings_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_display_ratings ((MediaPage*) self, action, value); -#line 2698 "MediaPage.c" -} - - -static void -_media_page_on_display_tags_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_display_tags ((MediaPage*) self, action, value); -#line 2709 "MediaPage.c" -} - - -static void -_page_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_on_action_radio ((Page*) self, action, parameter); -#line 2720 "MediaPage.c" -} - - -static void -_media_page_on_sort_changed_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 286 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_sort_changed ((MediaPage*) self, action, value); -#line 2731 "MediaPage.c" -} - - -static void -_media_page_on_media_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 252 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_media_altered ((MediaPage*) self, items); -#line 2742 "MediaPage.c" -} - - -MediaPage* -media_page_construct (GType object_type, - const gchar* page_name) -{ - MediaPage * self = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - MediaViewTracker* _tmp2_; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; - ConfigFacade* _tmp9_; - ConfigFacade* _tmp10_; - GValue _tmp11_ = {0}; - ViewCollection* _tmp12_; - ViewCollection* _tmp13_; - ConfigFacade* _tmp14_; - ConfigFacade* _tmp15_; - GValue _tmp16_ = {0}; - ViewCollection* _tmp17_; - ViewCollection* _tmp18_; - ConfigFacade* _tmp19_; - ConfigFacade* _tmp20_; - GValue _tmp21_ = {0}; - ViewCollection* _tmp22_; - ViewCollection* _tmp23_; - GValue _tmp24_ = {0}; - ViewCollection* _tmp25_; - ViewCollection* _tmp26_; - ConfigFacade* _tmp27_; - ConfigFacade* _tmp28_; - GValue _tmp29_ = {0}; - ViewCollection* _tmp30_; - ViewCollection* _tmp31_; - DragAndDropHandler* _tmp32_; -#line 247 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (page_name != NULL, NULL); -#line 248 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = (MediaPage*) checkerboard_page_construct (object_type, page_name); -#line 250 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 250 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 250 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = media_view_tracker_new (_tmp1_); -#line 250 "/home/jens/Source/shotwell/src/MediaPage.vala" - _core_tracker_unref0 (self->priv->tracker); -#line 250 "/home/jens/Source/shotwell/src/MediaPage.vala" - self->priv->tracker = _tmp2_; -#line 250 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 252 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 252 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _tmp3_; -#line 252 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _media_page_on_media_altered_data_collection_items_altered, self, 0); -#line 252 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp4_); -#line 254 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 254 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _tmp5_; -#line 254 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection)); -#line 254 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp6_); -#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = _tmp7_; -#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = config_facade_get_instance (); -#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = _tmp9_; -#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_value_init (&_tmp11_, G_TYPE_BOOLEAN); -#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_value_set_boolean (&_tmp11_, configuration_facade_get_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), CHECKERBOARD_ITEM_PROP_SHOW_TITLES, &_tmp11_, NULL, NULL); -#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" - G_IS_VALUE (&_tmp11_) ? (g_value_unset (&_tmp11_), NULL) : NULL; -#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp10_); -#line 255 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp8_); -#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = _tmp12_; -#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = config_facade_get_instance (); -#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = _tmp14_; -#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_value_init (&_tmp16_, G_TYPE_BOOLEAN); -#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_value_set_boolean (&_tmp16_, configuration_facade_get_display_photo_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection), CHECKERBOARD_ITEM_PROP_SHOW_COMMENTS, &_tmp16_, NULL, NULL); -#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" - G_IS_VALUE (&_tmp16_) ? (g_value_unset (&_tmp16_), NULL) : NULL; -#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp15_); -#line 257 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp13_); -#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp17_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp18_ = _tmp17_; -#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp19_ = config_facade_get_instance (); -#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp20_ = _tmp19_; -#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_value_init (&_tmp21_, G_TYPE_BOOLEAN); -#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_value_set_boolean (&_tmp21_, configuration_facade_get_display_photo_tags (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SHOW_TAGS, &_tmp21_, NULL, NULL); -#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" - G_IS_VALUE (&_tmp21_) ? (g_value_unset (&_tmp21_), NULL) : NULL; -#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp20_); -#line 259 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp18_); -#line 261 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp22_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 261 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp23_ = _tmp22_; -#line 261 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_value_init (&_tmp24_, G_TYPE_INT); -#line 261 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_value_set_int (&_tmp24_, media_page_get_thumb_size (self)); -#line 261 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SIZE, &_tmp24_, NULL, NULL); -#line 261 "/home/jens/Source/shotwell/src/MediaPage.vala" - G_IS_VALUE (&_tmp24_) ? (g_value_unset (&_tmp24_), NULL) : NULL; -#line 261 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp23_); -#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp25_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp26_ = _tmp25_; -#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp27_ = config_facade_get_instance (); -#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp28_ = _tmp27_; -#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_value_init (&_tmp29_, G_TYPE_BOOLEAN); -#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_value_set_boolean (&_tmp29_, configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SHOW_RATINGS, &_tmp29_, NULL, NULL); -#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" - G_IS_VALUE (&_tmp29_) ? (g_value_unset (&_tmp29_), NULL) : NULL; -#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp28_); -#line 262 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp26_); -#line 264 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp30_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 264 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp31_ = _tmp30_; -#line 264 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_DATA_COLLECTION, DataCollection)); -#line 264 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp31_); -#line 267 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp32_ = drag_and_drop_handler_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 267 "/home/jens/Source/shotwell/src/MediaPage.vala" - _drag_and_drop_handler_unref0 (self->priv->dnd_handler); -#line 267 "/home/jens/Source/shotwell/src/MediaPage.vala" - self->priv->dnd_handler = _tmp32_; -#line 247 "/home/jens/Source/shotwell/src/MediaPage.vala" - return self; -#line 2926 "MediaPage.c" -} - - -static gint -media_page_compute_zoom_scale_increase (gint current_scale) -{ - gint result = 0; - gint new_scale = 0; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; -#line 271 "/home/jens/Source/shotwell/src/MediaPage.vala" - new_scale = current_scale + MEDIA_PAGE_MANUAL_STEPPING; -#line 272 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = thumbnail_get_MIN_SCALE (); -#line 272 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 272 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = thumbnail_get_MAX_SCALE (); -#line 272 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _tmp2_; -#line 272 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = CLAMP (new_scale, _tmp1_, _tmp3_); -#line 272 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 2953 "MediaPage.c" -} - - -static gint -media_page_compute_zoom_scale_decrease (gint current_scale) -{ - gint result = 0; - gint new_scale = 0; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; -#line 276 "/home/jens/Source/shotwell/src/MediaPage.vala" - new_scale = current_scale - MEDIA_PAGE_MANUAL_STEPPING; -#line 277 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = thumbnail_get_MIN_SCALE (); -#line 277 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 277 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = thumbnail_get_MAX_SCALE (); -#line 277 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _tmp2_; -#line 277 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = CLAMP (new_scale, _tmp1_, _tmp3_); -#line 277 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 2980 "MediaPage.c" -} - - -static void -media_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames) -{ - MediaPage * self; -#line 280 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 280 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 281 "/home/jens/Source/shotwell/src/MediaPage.vala" - PAGE_CLASS (media_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), ui_filenames); -#line 283 "/home/jens/Source/shotwell/src/MediaPage.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "media.ui"); -#line 2997 "MediaPage.c" -} - - -static GVariant* -_variant_new23 (gboolean value) -{ -#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 3006 "MediaPage.c" -} - - -static GVariant* -_variant_new24 (gboolean value) -{ -#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 3015 "MediaPage.c" -} - - -static GVariant* -_variant_new25 (gboolean value) -{ -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 3024 "MediaPage.c" -} - - -static GVariant* -_variant_new26 (gboolean value) -{ -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 3033 "MediaPage.c" -} - - -static GVariant* -_variant_new27 (gchar* value) -{ -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 3042 "MediaPage.c" -} - - -static GVariant* -_variant_new28 (const gchar* value) -{ -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 3051 "MediaPage.c" -} - - -static GVariant* -_variant_new29 (const gchar* value) -{ -#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 3060 "MediaPage.c" -} - - -static void -_media_page_on_raw_developer_changed_g_simple_action_change_state (GSimpleAction* _sender, - GVariant* value, - gpointer self) -{ -#line 340 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_raw_developer_changed ((MediaPage*) self, _sender, value); -#line 3071 "MediaPage.c" -} - - -static void -media_page_real_add_actions (Page* base, - GActionMap* map) -{ - MediaPage * self; - gboolean sort_order = FALSE; - gint sort_by = 0; - gboolean _tmp0_ = FALSE; - gint _tmp1_ = 0; - GAction* _tmp2_; - GAction* _tmp3_; - ConfigFacade* _tmp4_; - ConfigFacade* _tmp5_; - GVariant* _tmp6_; - GAction* _tmp7_; - GAction* _tmp8_; - ConfigFacade* _tmp9_; - ConfigFacade* _tmp10_; - GVariant* _tmp11_; - GAction* _tmp12_; - GAction* _tmp13_; - ConfigFacade* _tmp14_; - ConfigFacade* _tmp15_; - GVariant* _tmp16_; - GAction* _tmp17_; - GAction* _tmp18_; - ConfigFacade* _tmp19_; - ConfigFacade* _tmp20_; - GVariant* _tmp21_; - GAction* _tmp22_; - GAction* _tmp23_; - gint _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - GVariant* _tmp27_; - const gchar* _tmp28_ = NULL; - gboolean _tmp29_; - GAction* _tmp30_; - GAction* _tmp31_; - GVariant* _tmp32_; - RawDeveloper d = 0; - ConfigFacade* _tmp33_; - ConfigFacade* _tmp34_; - RawDeveloper _tmp35_; - const gchar* _tmp36_ = NULL; - RawDeveloper _tmp37_; - GSimpleAction* action = NULL; - const GVariantType* _tmp38_; - GVariant* _tmp39_; - GSimpleAction* _tmp40_; - GSimpleAction* _tmp41_; -#line 322 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 322 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 323 "/home/jens/Source/shotwell/src/MediaPage.vala" - PAGE_CLASS (media_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), map); -#line 327 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_get_config_photos_sort (self, &_tmp0_, &_tmp1_); -#line 327 "/home/jens/Source/shotwell/src/MediaPage.vala" - sort_order = _tmp0_; -#line 327 "/home/jens/Source/shotwell/src/MediaPage.vala" - sort_by = _tmp1_; -#line 329 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_action_map_add_action_entries (map, MEDIA_PAGE_entries, G_N_ELEMENTS (MEDIA_PAGE_entries), self); -#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTitle"); -#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _tmp2_; -#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = config_facade_get_instance (); -#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = _tmp4_; -#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _variant_new23 (configuration_facade_get_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_action_change_state (_tmp3_, _tmp6_); -#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_variant_unref0 (_tmp6_); -#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp5_); -#line 330 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp3_); -#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewComment"); -#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = _tmp7_; -#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = config_facade_get_instance (); -#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = _tmp9_; -#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = _variant_new24 (configuration_facade_get_display_photo_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_action_change_state (_tmp8_, _tmp11_); -#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_variant_unref0 (_tmp11_); -#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp10_); -#line 331 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp8_); -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewRatings"); -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = _tmp12_; -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = config_facade_get_instance (); -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = _tmp14_; -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = _variant_new25 (configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_action_change_state (_tmp13_, _tmp16_); -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_variant_unref0 (_tmp16_); -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp15_); -#line 332 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp13_); -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp17_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTags"); -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp18_ = _tmp17_; -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp19_ = config_facade_get_instance (); -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp20_ = _tmp19_; -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp21_ = _variant_new26 (configuration_facade_get_display_photo_tags (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_action_change_state (_tmp18_, _tmp21_); -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_variant_unref0 (_tmp21_); -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp20_); -#line 333 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp18_); -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp22_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SortBy"); -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp23_ = _tmp22_; -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp24_ = sort_by; -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp25_ = g_strdup_printf ("%d", _tmp24_); -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp26_ = _tmp25_; -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp27_ = _variant_new27 (_tmp26_); -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_action_change_state (_tmp23_, _tmp27_); -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_variant_unref0 (_tmp27_); -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_free0 (_tmp26_); -#line 334 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp23_); -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp29_ = sort_order; -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp29_) { -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp28_ = "ascending"; -#line 3238 "MediaPage.c" - } else { -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp28_ = "descending"; -#line 3242 "MediaPage.c" - } -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp30_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Sort"); -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp31_ = _tmp30_; -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp32_ = _variant_new28 (_tmp28_); -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_action_change_state (_tmp31_, _tmp32_); -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_variant_unref0 (_tmp32_); -#line 335 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp31_); -#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp33_ = config_facade_get_instance (); -#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp34_ = _tmp33_; -#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp35_ = configuration_facade_get_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp34_); -#line 337 "/home/jens/Source/shotwell/src/MediaPage.vala" - d = _tmp35_; -#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp37_ = d; -#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp37_ == RAW_DEVELOPER_SHOTWELL) { -#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp36_ = "Shotwell"; -#line 3272 "MediaPage.c" - } else { -#line 339 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp36_ = "Camera"; -#line 3276 "MediaPage.c" - } -#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp38_ = G_VARIANT_TYPE_STRING; -#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp39_ = _variant_new29 (_tmp36_); -#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp40_ = g_simple_action_new_stateful ("RawDeveloper", _tmp38_, _tmp39_); -#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp41_ = _tmp40_; -#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_variant_unref0 (_tmp39_); -#line 338 "/home/jens/Source/shotwell/src/MediaPage.vala" - action = _tmp41_; -#line 340 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_signal_connect_object (action, "change-state", (GCallback) _media_page_on_raw_developer_changed_g_simple_action_change_state, self, 0); -#line 341 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_simple_action_set_enabled (action, TRUE); -#line 342 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_action_map_add_action (map, G_TYPE_CHECK_INSTANCE_CAST (action, g_action_get_type (), GAction)); -#line 322 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (action); -#line 3298 "MediaPage.c" -} - - -static void -media_page_real_remove_actions (Page* base, - GActionMap* map) -{ - MediaPage * self; -#line 345 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 345 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 346 "/home/jens/Source/shotwell/src/MediaPage.vala" - PAGE_CLASS (media_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), map); -#line 3313 "MediaPage.c" - { - GActionEntry* entry_collection = NULL; - gint entry_collection_length1 = 0; - gint _entry_collection_size_ = 0; - gint entry_it = 0; -#line 347 "/home/jens/Source/shotwell/src/MediaPage.vala" - entry_collection = MEDIA_PAGE_entries; -#line 347 "/home/jens/Source/shotwell/src/MediaPage.vala" - entry_collection_length1 = G_N_ELEMENTS (MEDIA_PAGE_entries); -#line 347 "/home/jens/Source/shotwell/src/MediaPage.vala" - for (entry_it = 0; entry_it < G_N_ELEMENTS (MEDIA_PAGE_entries); entry_it = entry_it + 1) { -#line 3325 "MediaPage.c" - GActionEntry entry = {0}; -#line 347 "/home/jens/Source/shotwell/src/MediaPage.vala" - entry = entry_collection[entry_it]; -#line 3329 "MediaPage.c" - { - GActionEntry _tmp0_; - const gchar* _tmp1_; -#line 348 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = entry; -#line 348 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_.name; -#line 348 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_action_map_remove_action (map, _tmp1_); -#line 3339 "MediaPage.c" - } - } - } -} - - -static void -media_page_real_update_actions (Page* base, - gint selected_count, - gint count) -{ - MediaPage * self; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - gboolean _tmp4_ = FALSE; -#line 352 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 353 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Export", selected_count > 0); -#line 354 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditTitle", selected_count > 0); -#line 355 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditComment", selected_count > 0); -#line 356 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = thumbnail_get_MAX_SCALE (); -#line 356 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 356 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", media_page_get_thumb_size (self) < _tmp1_); -#line 357 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = thumbnail_get_MIN_SCALE (); -#line 357 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _tmp2_; -#line 357 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", media_page_get_thumb_size (self) > _tmp3_); -#line 358 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RemoveFromLibrary", selected_count > 0); -#line 359 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "MoveToTrash", selected_count > 0); -#line 361 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (desktop_integration_is_send_to_installed ()) { -#line 362 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SendTo", selected_count > 0); -#line 3385 "MediaPage.c" - } else { -#line 364 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SendTo", FALSE); -#line 3389 "MediaPage.c" - } -#line 366 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Rate", selected_count > 0); -#line 367 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_update_rating_sensitivities (self); -#line 369 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_update_development_menu_item_sensitivity (self); -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (selected_count == 1) { -#line 3399 "MediaPage.c" - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; - DataSource* _tmp7_; - DataSource* _tmp8_; -#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _tmp5_; -#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = view_collection_get_selected_source_at (_tmp6_, 0); -#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = _tmp7_; -#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, TYPE_VIDEO); -#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp8_); -#line 372 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp6_); -#line 3418 "MediaPage.c" - } else { -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = FALSE; -#line 3422 "MediaPage.c" - } -#line 371 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PlayVideo", _tmp4_); -#line 374 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_update_flag_action (self, selected_count); -#line 376 "/home/jens/Source/shotwell/src/MediaPage.vala" - PAGE_CLASS (media_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), selected_count, count); -#line 3430 "MediaPage.c" -} - - -static void -media_page_on_media_altered (MediaPage* self, - GeeMap* altered) -{ -#line 379 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 379 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (GEE_IS_MAP (altered)); -#line 3442 "MediaPage.c" - { - GeeIterator* _object_it = NULL; - GeeSet* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = gee_map_get_keys (altered); -#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = _tmp1_; -#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _tmp3_; -#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp2_); -#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" - _object_it = _tmp4_; -#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" - while (TRUE) { -#line 3466 "MediaPage.c" - GeeIterator* _tmp5_; - DataObject* object = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - DataObject* _tmp8_; - gpointer _tmp9_; - Alteration* _tmp10_; - gboolean _tmp11_; -#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = _object_it; -#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 3481 "MediaPage.c" - } -#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _object_it; -#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" - object = (DataObject*) _tmp7_; -#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = object; -#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = gee_map_get (altered, _tmp8_); -#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = (Alteration*) _tmp9_; -#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = alteration_has_detail (_tmp10_, "metadata", "flagged"); -#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" - _alteration_unref0 (_tmp10_); -#line 381 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp11_) { -#line 3501 "MediaPage.c" - ViewCollection* _tmp12_; - ViewCollection* _tmp13_; -#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = _tmp12_; -#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_update_flag_action (self, view_collection_get_selected_count (_tmp13_)); -#line 382 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp13_); -#line 384 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (object); -#line 384 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 3516 "MediaPage.c" - } -#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (object); -#line 3520 "MediaPage.c" - } -#line 380 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_object_it); -#line 3524 "MediaPage.c" - } -} - - -static void -media_page_update_rating_sensitivities (MediaPage* self) -{ -#line 389 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 390 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateRejected", media_page_can_rate_selected (self, RATING_REJECTED)); -#line 391 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateUnrated", media_page_can_rate_selected (self, RATING_UNRATED)); -#line 392 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateOne", media_page_can_rate_selected (self, RATING_ONE)); -#line 393 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateTwo", media_page_can_rate_selected (self, RATING_TWO)); -#line 394 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateThree", media_page_can_rate_selected (self, RATING_THREE)); -#line 395 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFour", media_page_can_rate_selected (self, RATING_FOUR)); -#line 396 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFive", media_page_can_rate_selected (self, RATING_FIVE)); -#line 397 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseRating", media_page_can_increase_selected_rating (self)); -#line 398 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseRating", media_page_can_decrease_selected_rating (self)); -#line 3552 "MediaPage.c" -} - - -static void -media_page_update_development_menu_item_sensitivity (MediaPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - GeeList* _tmp2_; - GeeList* _tmp3_; - gint _tmp4_; - gint _tmp5_; - gboolean _tmp6_; - gboolean is_raw = FALSE; - gboolean _tmp26_; -#line 401 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = view_collection_get_selected (_tmp1_); -#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _tmp2_; -#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = _tmp4_; -#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _tmp5_ == 0; -#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp3_); -#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 402 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp6_) { -#line 403 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper", FALSE); -#line 404 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 3594 "MediaPage.c" - } -#line 408 "/home/jens/Source/shotwell/src/MediaPage.vala" - is_raw = FALSE; -#line 3598 "MediaPage.c" - { - GeeList* _view_list = NULL; - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; - GeeList* _tmp9_; - GeeList* _tmp10_; - gint _view_size = 0; - GeeList* _tmp11_; - gint _tmp12_; - gint _tmp13_; - gint _view_index = 0; -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = _tmp7_; -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = view_collection_get_selected (_tmp8_); -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = _tmp9_; -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp8_); -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_list = _tmp10_; -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = _view_list; -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = _tmp12_; -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_size = _tmp13_; -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_index = -1; -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - while (TRUE) { -#line 3634 "MediaPage.c" - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; - DataView* view = NULL; - GeeList* _tmp17_; - gint _tmp18_; - gpointer _tmp19_; - Photo* photo = NULL; - DataView* _tmp20_; - MediaSource* _tmp21_; - Photo* _tmp22_; - gboolean _tmp23_ = FALSE; - Photo* _tmp24_; -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = _view_index; -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_index = _tmp14_ + 1; -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = _view_index; -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = _view_size; -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (!(_tmp15_ < _tmp16_)) { -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 3660 "MediaPage.c" - } -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp17_ = _view_list; -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp18_ = _view_index; -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp19_ = gee_list_get (_tmp17_, _tmp18_); -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - view = (DataView*) _tmp19_; -#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp20_ = view; -#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp21_ = thumbnail_get_media_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_THUMBNAIL, Thumbnail)); -#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp22_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, TYPE_PHOTO) ? ((Photo*) _tmp21_) : NULL; -#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp22_ == NULL) { -#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp21_); -#line 3680 "MediaPage.c" - } -#line 410 "/home/jens/Source/shotwell/src/MediaPage.vala" - photo = _tmp22_; -#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp24_ = photo; -#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp24_ != NULL) { -#line 3688 "MediaPage.c" - Photo* _tmp25_; -#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp25_ = photo; -#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp23_ = photo_get_master_file_format (_tmp25_) == PHOTO_FILE_FORMAT_RAW; -#line 3694 "MediaPage.c" - } else { -#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp23_ = FALSE; -#line 3698 "MediaPage.c" - } -#line 411 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp23_) { -#line 412 "/home/jens/Source/shotwell/src/MediaPage.vala" - is_raw = TRUE; -#line 414 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (photo); -#line 414 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (view); -#line 414 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 3710 "MediaPage.c" - } -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (photo); -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (view); -#line 3716 "MediaPage.c" - } -#line 409 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_view_list); -#line 3720 "MediaPage.c" - } -#line 419 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp26_ = is_raw; -#line 419 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper", _tmp26_); -#line 3726 "MediaPage.c" -} - - -static void -media_page_update_flag_action (MediaPage* self, - gint selected_count) -{ -#line 422 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 423 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Flag", selected_count > 0); -#line 3738 "MediaPage.c" -} - - -static gpointer -_core_tracker_ref0 (gpointer self) -{ -#line 427 "/home/jens/Source/shotwell/src/MediaPage.vala" - return self ? core_tracker_ref (self) : NULL; -#line 3747 "MediaPage.c" -} - - -static CoreViewTracker* -media_page_real_get_view_tracker (CheckerboardPage* base) -{ - MediaPage * self; - CoreViewTracker* result = NULL; - MediaViewTracker* _tmp0_; - CoreViewTracker* _tmp1_; -#line 426 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 427 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = self->priv->tracker; -#line 427 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _core_tracker_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, CORE_TYPE_VIEW_TRACKER, CoreViewTracker)); -#line 427 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = _tmp1_; -#line 427 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 3768 "MediaPage.c" -} - - -void -media_page_set_display_ratings (MediaPage* self, - gboolean display) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; - GValue _tmp4_ = {0}; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; -#line 430 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 431 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 431 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 431 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 431 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _tmp2_; -#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_value_init (&_tmp4_, G_TYPE_BOOLEAN); -#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_value_set_boolean (&_tmp4_, display); -#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SHOW_RATINGS, &_tmp4_, NULL, NULL); -#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" - G_IS_VALUE (&_tmp4_) ? (g_value_unset (&_tmp4_), NULL) : NULL; -#line 432 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp3_); -#line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _tmp5_; -#line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection)); -#line 433 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp6_); -#line 435 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewRatings", display); -#line 3817 "MediaPage.c" -} - - -static gboolean -media_page_can_rate_selected (MediaPage* self, - Rating rating) -{ - gboolean result = FALSE; -#line 438 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (IS_MEDIA_PAGE (self), FALSE); -#line 3828 "MediaPage.c" - { - GeeList* _view_list = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - GeeList* _tmp2_; - GeeList* _tmp3_; - gint _view_size = 0; - GeeList* _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _view_index = 0; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = view_collection_get_selected (_tmp1_); -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _tmp2_; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_list = _tmp3_; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _view_list; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _tmp5_; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_size = _tmp6_; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_index = -1; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - while (TRUE) { -#line 3864 "MediaPage.c" - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - DataView* view = NULL; - GeeList* _tmp10_; - gint _tmp11_; - gpointer _tmp12_; - DataView* _tmp13_; - MediaSource* _tmp14_; - MediaSource* _tmp15_; - gboolean _tmp16_; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = _view_index; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_index = _tmp7_ + 1; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = _view_index; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = _view_size; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (!(_tmp8_ < _tmp9_)) { -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 3888 "MediaPage.c" - } -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = _view_list; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = _view_index; -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = gee_list_get (_tmp10_, _tmp11_); -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - view = (DataView*) _tmp12_; -#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = view; -#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = thumbnail_get_media_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_THUMBNAIL, Thumbnail)); -#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = _tmp14_; -#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = media_source_get_rating (_tmp15_) != rating; -#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp15_); -#line 440 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp16_) { -#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = TRUE; -#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (view); -#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_view_list); -#line 441 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 3918 "MediaPage.c" - } -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (view); -#line 3922 "MediaPage.c" - } -#line 439 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_view_list); -#line 3926 "MediaPage.c" - } -#line 444 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = FALSE; -#line 444 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 3932 "MediaPage.c" -} - - -static gboolean -media_page_can_increase_selected_rating (MediaPage* self) -{ - gboolean result = FALSE; -#line 447 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (IS_MEDIA_PAGE (self), FALSE); -#line 3942 "MediaPage.c" - { - GeeList* _view_list = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - GeeList* _tmp2_; - GeeList* _tmp3_; - gint _view_size = 0; - GeeList* _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _view_index = 0; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = view_collection_get_selected (_tmp1_); -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _tmp2_; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_list = _tmp3_; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _view_list; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _tmp5_; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_size = _tmp6_; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_index = -1; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - while (TRUE) { -#line 3978 "MediaPage.c" - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - DataView* view = NULL; - GeeList* _tmp10_; - gint _tmp11_; - gpointer _tmp12_; - DataView* _tmp13_; - MediaSource* _tmp14_; - MediaSource* _tmp15_; - gboolean _tmp16_; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = _view_index; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_index = _tmp7_ + 1; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = _view_index; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = _view_size; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (!(_tmp8_ < _tmp9_)) { -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 4002 "MediaPage.c" - } -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = _view_list; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = _view_index; -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = gee_list_get (_tmp10_, _tmp11_); -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - view = (DataView*) _tmp12_; -#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = view; -#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = thumbnail_get_media_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_THUMBNAIL, Thumbnail)); -#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = _tmp14_; -#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = rating_can_increase (media_source_get_rating (_tmp15_)); -#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp15_); -#line 449 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp16_) { -#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = TRUE; -#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (view); -#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_view_list); -#line 450 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 4032 "MediaPage.c" - } -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (view); -#line 4036 "MediaPage.c" - } -#line 448 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_view_list); -#line 4040 "MediaPage.c" - } -#line 453 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = FALSE; -#line 453 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 4046 "MediaPage.c" -} - - -static gboolean -media_page_can_decrease_selected_rating (MediaPage* self) -{ - gboolean result = FALSE; -#line 456 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (IS_MEDIA_PAGE (self), FALSE); -#line 4056 "MediaPage.c" - { - GeeList* _view_list = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - GeeList* _tmp2_; - GeeList* _tmp3_; - gint _view_size = 0; - GeeList* _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _view_index = 0; -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = view_collection_get_selected (_tmp1_); -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _tmp2_; -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_list = _tmp3_; -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _view_list; -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _tmp5_; -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_size = _tmp6_; -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_index = -1; -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - while (TRUE) { -#line 4092 "MediaPage.c" - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - DataView* view = NULL; - GeeList* _tmp10_; - gint _tmp11_; - gpointer _tmp12_; - DataView* _tmp13_; - MediaSource* _tmp14_; - MediaSource* _tmp15_; - gboolean _tmp16_; -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = _view_index; -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_index = _tmp7_ + 1; -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = _view_index; -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = _view_size; -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (!(_tmp8_ < _tmp9_)) { -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 4116 "MediaPage.c" - } -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = _view_list; -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = _view_index; -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = gee_list_get (_tmp10_, _tmp11_); -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - view = (DataView*) _tmp12_; -#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = view; -#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = thumbnail_get_media_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_THUMBNAIL, Thumbnail)); -#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = _tmp14_; -#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = rating_can_decrease (media_source_get_rating (_tmp15_)); -#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp15_); -#line 458 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp16_) { -#line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = TRUE; -#line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (view); -#line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_view_list); -#line 459 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 4146 "MediaPage.c" - } -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (view); -#line 4150 "MediaPage.c" - } -#line 457 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_view_list); -#line 4154 "MediaPage.c" - } -#line 462 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = FALSE; -#line 462 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 4160 "MediaPage.c" -} - - -MediaPageZoomSliderAssembly* -media_page_create_zoom_slider_assembly (MediaPage* self) -{ - MediaPageZoomSliderAssembly* result = NULL; - MediaPageZoomSliderAssembly* _tmp0_; -#line 465 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (IS_MEDIA_PAGE (self), NULL); -#line 466 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = media_page_zoom_slider_assembly_new (); -#line 466 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_object_ref_sink (_tmp0_); -#line 466 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = _tmp0_; -#line 466 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 4179 "MediaPage.c" -} - - -static gboolean -media_page_real_on_mousewheel_up (Page* base, - GdkEventScroll* event) -{ - MediaPage * self; - gboolean result = FALSE; - GdkModifierType _tmp0_; -#line 469 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 469 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 470 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = event->state; -#line 470 "/home/jens/Source/shotwell/src/MediaPage.vala" - if ((_tmp0_ & GDK_CONTROL_MASK) != 0) { -#line 471 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_increase_zoom_level (self); -#line 472 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = TRUE; -#line 472 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 4204 "MediaPage.c" - } else { -#line 474 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = PAGE_CLASS (media_page_parent_class)->on_mousewheel_up (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), event); -#line 474 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 4210 "MediaPage.c" - } -} - - -static gboolean -media_page_real_on_mousewheel_down (Page* base, - GdkEventScroll* event) -{ - MediaPage * self; - gboolean result = FALSE; - GdkModifierType _tmp0_; -#line 478 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 478 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 479 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = event->state; -#line 479 "/home/jens/Source/shotwell/src/MediaPage.vala" - if ((_tmp0_ & GDK_CONTROL_MASK) != 0) { -#line 480 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_decrease_zoom_level (self); -#line 481 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = TRUE; -#line 481 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 4236 "MediaPage.c" - } else { -#line 483 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = PAGE_CLASS (media_page_parent_class)->on_mousewheel_down (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), event); -#line 483 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 4242 "MediaPage.c" - } -} - - -static void -media_page_on_send_to (MediaPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - GeeList* _tmp2_; - GeeCollection* _tmp3_; -#line 487 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 488 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 488 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 488 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = view_collection_get_selected_sources (_tmp1_); -#line 488 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 488 "/home/jens/Source/shotwell/src/MediaPage.vala" - desktop_integration_send_to (_tmp3_); -#line 488 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp3_); -#line 488 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 4270 "MediaPage.c" -} - - -void -media_page_on_play_video (MediaPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - Video* video = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - DataView* _tmp5_; - DataView* _tmp6_; - DataSource* _tmp7_; - Video* _tmp8_; - Video* _tmp9_; - Video* _tmp10_; - GError * _inner_error_ = NULL; -#line 491 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 492 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 492 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 492 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1; -#line 492 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 492 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp2_) { -#line 493 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 4304 "MediaPage.c" - } -#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _tmp3_; -#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = view_collection_get_selected_at (_tmp4_, 0); -#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _tmp5_; -#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = data_view_get_source (_tmp6_); -#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_VIDEO) ? ((Video*) _tmp7_) : NULL; -#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp8_ == NULL) { -#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp7_); -#line 4322 "MediaPage.c" - } -#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = _tmp8_; -#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp6_); -#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp4_); -#line 495 "/home/jens/Source/shotwell/src/MediaPage.vala" - video = _tmp9_; -#line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = video; -#line 496 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp10_ == NULL) { -#line 497 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (video); -#line 497 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 4340 "MediaPage.c" - } - { - Video* _tmp11_; - GFile* _tmp12_; - GFile* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = video; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = _tmp12_; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = g_file_get_uri (_tmp13_); -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = _tmp14_; -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_app_info_launch_default_for_uri (_tmp15_, NULL, &_inner_error_); -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_free0 (_tmp15_); -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp13_); -#line 500 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4366 "MediaPage.c" - goto __catch570_g_error; - } - } - goto __finally570; - __catch570_g_error: - { - GError* e = NULL; - GError* _tmp16_; - const gchar* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; -#line 499 "/home/jens/Source/shotwell/src/MediaPage.vala" - e = _inner_error_; -#line 499 "/home/jens/Source/shotwell/src/MediaPage.vala" - _inner_error_ = NULL; -#line 502 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = e; -#line 502 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp17_ = _tmp16_->message; -#line 502 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp18_ = g_strdup_printf (_ ("Shotwell was unable to play the selected video:\n%s"), _tmp17_); -#line 502 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp19_ = _tmp18_; -#line 502 "/home/jens/Source/shotwell/src/MediaPage.vala" - app_window_error_message (_tmp19_, NULL); -#line 502 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_free0 (_tmp19_); -#line 499 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_error_free0 (e); -#line 4396 "MediaPage.c" - } - __finally570: -#line 499 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 499 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (video); -#line 499 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 499 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_clear_error (&_inner_error_); -#line 499 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 4409 "MediaPage.c" - } -#line 491 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (video); -#line 4413 "MediaPage.c" -} - - -static gboolean -media_page_real_on_app_key_pressed (Page* base, - GdkEventKey* event) -{ - MediaPage * self; - gboolean result = FALSE; - gboolean handled = FALSE; - guint _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - GQuark _tmp4_ = 0U; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp3_label0 = 0; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp3_label1 = 0; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp3_label2 = 0; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp3_label3 = 0; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp3_label4 = 0; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp3_label5 = 0; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp3_label6 = 0; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp3_label7 = 0; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp3_label8 = 0; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp3_label9 = 0; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp3_label10 = 0; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp3_label11 = 0; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp3_label12 = 0; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp3_label13 = 0; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp3_label14 = 0; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp3_label15 = 0; -#line 4460 "MediaPage.c" - gboolean _tmp5_ = FALSE; - gboolean _tmp6_; -#line 507 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 507 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 508 "/home/jens/Source/shotwell/src/MediaPage.vala" - handled = TRUE; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = event->keyval; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = gdk_keyval_name (_tmp0_); -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = _tmp1_; -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_); -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (((_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("equal")))) || (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("plus"))))) || (_tmp4_ == ((0 != _tmp3_label2) ? _tmp3_label2 : (_tmp3_label2 = g_quark_from_static_string ("KP_Add"))))) { -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - switch (0) { -#line 4481 "MediaPage.c" - default: - { -#line 513 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize"); -#line 514 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 4488 "MediaPage.c" - } - } - } else if (((_tmp4_ == ((0 != _tmp3_label3) ? _tmp3_label3 : (_tmp3_label3 = g_quark_from_static_string ("minus")))) || (_tmp4_ == ((0 != _tmp3_label4) ? _tmp3_label4 : (_tmp3_label4 = g_quark_from_static_string ("underscore"))))) || (_tmp4_ == ((0 != _tmp3_label5) ? _tmp3_label5 : (_tmp3_label5 = g_quark_from_static_string ("KP_Subtract"))))) { -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - switch (0) { -#line 4494 "MediaPage.c" - default: - { -#line 519 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize"); -#line 520 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 4501 "MediaPage.c" - } - } - } else if (_tmp4_ == ((0 != _tmp3_label6) ? _tmp3_label6 : (_tmp3_label6 = g_quark_from_static_string ("period")))) { -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - switch (0) { -#line 4507 "MediaPage.c" - default: - { -#line 523 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseRating"); -#line 524 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 4514 "MediaPage.c" - } - } - } else if (_tmp4_ == ((0 != _tmp3_label7) ? _tmp3_label7 : (_tmp3_label7 = g_quark_from_static_string ("comma")))) { -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - switch (0) { -#line 4520 "MediaPage.c" - default: - { -#line 527 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseRating"); -#line 528 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 4527 "MediaPage.c" - } - } - } else if (_tmp4_ == ((0 != _tmp3_label8) ? _tmp3_label8 : (_tmp3_label8 = g_quark_from_static_string ("KP_1")))) { -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - switch (0) { -#line 4533 "MediaPage.c" - default: - { -#line 531 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateOne"); -#line 532 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 4540 "MediaPage.c" - } - } - } else if (_tmp4_ == ((0 != _tmp3_label9) ? _tmp3_label9 : (_tmp3_label9 = g_quark_from_static_string ("KP_2")))) { -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - switch (0) { -#line 4546 "MediaPage.c" - default: - { -#line 535 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateTwo"); -#line 536 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 4553 "MediaPage.c" - } - } - } else if (_tmp4_ == ((0 != _tmp3_label10) ? _tmp3_label10 : (_tmp3_label10 = g_quark_from_static_string ("KP_3")))) { -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - switch (0) { -#line 4559 "MediaPage.c" - default: - { -#line 539 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateThree"); -#line 540 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 4566 "MediaPage.c" - } - } - } else if (_tmp4_ == ((0 != _tmp3_label11) ? _tmp3_label11 : (_tmp3_label11 = g_quark_from_static_string ("KP_4")))) { -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - switch (0) { -#line 4572 "MediaPage.c" - default: - { -#line 543 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFour"); -#line 544 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 4579 "MediaPage.c" - } - } - } else if (_tmp4_ == ((0 != _tmp3_label12) ? _tmp3_label12 : (_tmp3_label12 = g_quark_from_static_string ("KP_5")))) { -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - switch (0) { -#line 4585 "MediaPage.c" - default: - { -#line 547 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFive"); -#line 548 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 4592 "MediaPage.c" - } - } - } else if (_tmp4_ == ((0 != _tmp3_label13) ? _tmp3_label13 : (_tmp3_label13 = g_quark_from_static_string ("KP_0")))) { -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - switch (0) { -#line 4598 "MediaPage.c" - default: - { -#line 551 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateUnrated"); -#line 552 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 4605 "MediaPage.c" - } - } - } else if (_tmp4_ == ((0 != _tmp3_label14) ? _tmp3_label14 : (_tmp3_label14 = g_quark_from_static_string ("KP_9")))) { -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - switch (0) { -#line 4611 "MediaPage.c" - default: - { -#line 555 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateRejected"); -#line 556 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 4618 "MediaPage.c" - } - } - } else if (_tmp4_ == ((0 != _tmp3_label15) ? _tmp3_label15 : (_tmp3_label15 = g_quark_from_static_string ("slash")))) { -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - switch (0) { -#line 4624 "MediaPage.c" - default: - { -#line 559 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Flag"); -#line 560 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 4631 "MediaPage.c" - } - } - } else { -#line 509 "/home/jens/Source/shotwell/src/MediaPage.vala" - switch (0) { -#line 4637 "MediaPage.c" - default: - { -#line 563 "/home/jens/Source/shotwell/src/MediaPage.vala" - handled = FALSE; -#line 564 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 4644 "MediaPage.c" - } - } - } -#line 567 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = handled; -#line 567 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp6_) { -#line 567 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = TRUE; -#line 4654 "MediaPage.c" - } else { -#line 567 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = PAGE_CLASS (media_page_parent_class)->on_app_key_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), event); -#line 4658 "MediaPage.c" - } -#line 567 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = _tmp5_; -#line 567 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 4664 "MediaPage.c" -} - - -static void -media_page_real_switched_to (Page* base) -{ - MediaPage * self; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - ConfigFacade* _tmp2_; - ConfigFacade* _tmp3_; - ConfigFacade* _tmp4_; - ConfigFacade* _tmp5_; - ConfigFacade* _tmp6_; - ConfigFacade* _tmp7_; - ConfigFacade* _tmp8_; - ConfigFacade* _tmp9_; - ViewCollection* _tmp10_; - ViewCollection* _tmp11_; - ViewCollection* _tmp12_; - ViewCollection* _tmp13_; - gboolean _tmp14_; -#line 570 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 571 "/home/jens/Source/shotwell/src/MediaPage.vala" - PAGE_CLASS (media_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page)); -#line 574 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 574 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 574 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 574 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 575 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = config_facade_get_instance (); -#line 575 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _tmp2_; -#line 575 "/home/jens/Source/shotwell/src/MediaPage.vala" - checkerboard_page_set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), configuration_facade_get_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 575 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp3_); -#line 576 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = config_facade_get_instance (); -#line 576 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = _tmp4_; -#line 576 "/home/jens/Source/shotwell/src/MediaPage.vala" - checkerboard_page_set_display_comments (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), configuration_facade_get_display_photo_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 576 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp5_); -#line 577 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = config_facade_get_instance (); -#line 577 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = _tmp6_; -#line 577 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_set_display_ratings (self, configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 577 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp7_); -#line 578 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = config_facade_get_instance (); -#line 578 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = _tmp8_; -#line 578 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_set_display_tags (self, configuration_facade_get_display_photo_tags (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 578 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp9_); -#line 579 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 579 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = _tmp10_; -#line 579 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_COLLECTION, DataCollection)); -#line 579 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp11_); -#line 583 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 583 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = _tmp12_; -#line 583 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = view_collection_get_selected_count (_tmp13_) > 0; -#line 583 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp13_); -#line 583 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp14_) { -#line 4749 "MediaPage.c" - CheckerboardItem* selected = NULL; - ViewCollection* _tmp15_; - ViewCollection* _tmp16_; - DataView* _tmp17_; - CheckerboardItem* _tmp18_; - CheckerboardItem* _tmp19_; -#line 584 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 584 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = _tmp15_; -#line 584 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp17_ = view_collection_get_selected_at (_tmp16_, 0); -#line 584 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp18_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 584 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp16_); -#line 584 "/home/jens/Source/shotwell/src/MediaPage.vala" - selected = _tmp18_; -#line 585 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp19_ = selected; -#line 585 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp19_ != NULL) { -#line 4772 "MediaPage.c" - CheckerboardItem* _tmp20_; -#line 586 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp20_ = selected; -#line 586 "/home/jens/Source/shotwell/src/MediaPage.vala" - checkerboard_page_cursor_to_item (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp20_); -#line 4778 "MediaPage.c" - } -#line 583 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (selected); -#line 4782 "MediaPage.c" - } -#line 589 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_sync_sort (self); -#line 4786 "MediaPage.c" -} - - -static void -media_page_real_switching_from (Page* base) -{ - MediaPage * self; -#line 592 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 593 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_disconnect_slider (self); -#line 595 "/home/jens/Source/shotwell/src/MediaPage.vala" - PAGE_CLASS (media_page_parent_class)->switching_from (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page)); -#line 4800 "MediaPage.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 599 "/home/jens/Source/shotwell/src/MediaPage.vala" - return self ? g_object_ref (self) : NULL; -#line 4809 "MediaPage.c" -} - - -static void -_media_page_on_zoom_changed_media_page_zoom_slider_assembly_zoom_changed (MediaPageZoomSliderAssembly* _sender, - gpointer self) -{ -#line 600 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_zoom_changed ((MediaPage*) self); -#line 4819 "MediaPage.c" -} - - -void -media_page_connect_slider (MediaPage* self, - MediaPageZoomSliderAssembly* slider) -{ - MediaPageZoomSliderAssembly* _tmp0_; - MediaPageZoomSliderAssembly* _tmp1_; -#line 598 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 598 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (slider)); -#line 599 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = _g_object_ref0 (slider); -#line 599 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (self->priv->connected_slider); -#line 599 "/home/jens/Source/shotwell/src/MediaPage.vala" - self->priv->connected_slider = _tmp0_; -#line 600 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = self->priv->connected_slider; -#line 600 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_signal_connect_object (_tmp1_, "zoom-changed", (GCallback) _media_page_on_zoom_changed_media_page_zoom_slider_assembly_zoom_changed, self, 0); -#line 601 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_load_persistent_thumbnail_scale (self); -#line 4845 "MediaPage.c" -} - - -static void -media_page_save_persistent_thumbnail_scale (MediaPage* self) -{ - MediaPageZoomSliderAssembly* _tmp0_; - ConfigFacade* _tmp1_; - ConfigFacade* _tmp2_; - MediaPageZoomSliderAssembly* _tmp3_; -#line 604 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 605 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = self->priv->connected_slider; -#line 605 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp0_ == NULL) { -#line 606 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 4864 "MediaPage.c" - } -#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = config_facade_get_instance (); -#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = _tmp1_; -#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = self->priv->connected_slider; -#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" - configuration_facade_set_photo_thumbnail_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), media_page_zoom_slider_assembly_get_scale (_tmp3_)); -#line 608 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp2_); -#line 4876 "MediaPage.c" -} - - -static void -media_page_load_persistent_thumbnail_scale (MediaPage* self) -{ - MediaPageZoomSliderAssembly* _tmp0_; - gint persistent_scale = 0; - ConfigFacade* _tmp1_; - ConfigFacade* _tmp2_; - gint _tmp3_; - MediaPageZoomSliderAssembly* _tmp4_; - gint _tmp5_; - gint _tmp6_; -#line 611 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 612 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = self->priv->connected_slider; -#line 612 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp0_ == NULL) { -#line 613 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 4899 "MediaPage.c" - } -#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = config_facade_get_instance (); -#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = _tmp1_; -#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = configuration_facade_get_photo_thumbnail_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp2_); -#line 615 "/home/jens/Source/shotwell/src/MediaPage.vala" - persistent_scale = _tmp3_; -#line 617 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = self->priv->connected_slider; -#line 617 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = persistent_scale; -#line 617 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_zoom_slider_assembly_set_scale (_tmp4_, _tmp5_); -#line 618 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = persistent_scale; -#line 618 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_set_thumb_size (self, _tmp6_); -#line 4921 "MediaPage.c" -} - - -void -media_page_disconnect_slider (MediaPage* self) -{ - MediaPageZoomSliderAssembly* _tmp0_; - MediaPageZoomSliderAssembly* _tmp1_; - guint _tmp2_; -#line 621 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 622 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = self->priv->connected_slider; -#line 622 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp0_ == NULL) { -#line 623 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 4939 "MediaPage.c" - } -#line 625 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = self->priv->connected_slider; -#line 625 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_signal_parse_name ("zoom-changed", MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, &_tmp2_, NULL, FALSE); -#line 625 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _media_page_on_zoom_changed_media_page_zoom_slider_assembly_zoom_changed, self); -#line 626 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (self->priv->connected_slider); -#line 626 "/home/jens/Source/shotwell/src/MediaPage.vala" - self->priv->connected_slider = NULL; -#line 4951 "MediaPage.c" -} - - -static void -media_page_real_on_zoom_changed (MediaPage* self) -{ - MediaPageZoomSliderAssembly* _tmp0_; -#line 630 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = self->priv->connected_slider; -#line 630 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp0_ != NULL) { -#line 4963 "MediaPage.c" - MediaPageZoomSliderAssembly* _tmp1_; -#line 631 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = self->priv->connected_slider; -#line 631 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_set_thumb_size (self, media_page_zoom_slider_assembly_get_scale (_tmp1_)); -#line 4969 "MediaPage.c" - } -#line 633 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_save_persistent_thumbnail_scale (self); -#line 4973 "MediaPage.c" -} - - -void -media_page_on_zoom_changed (MediaPage* self) -{ -#line 629 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 629 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_zoom_changed (self); -#line 4984 "MediaPage.c" -} - - -static void -media_page_real_on_export (MediaPage* self) -{ -#line 636 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_critical ("Type `%s' does not implement abstract method `media_page_on_export'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 636 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 4995 "MediaPage.c" -} - - -void -media_page_on_export (MediaPage* self) -{ -#line 636 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 636 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_export (self); -#line 5006 "MediaPage.c" -} - - -static void -media_page_real_on_increase_size (MediaPage* self) -{ -#line 639 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_increase_zoom_level (self); -#line 5015 "MediaPage.c" -} - - -void -media_page_on_increase_size (MediaPage* self) -{ -#line 638 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 638 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_increase_size (self); -#line 5026 "MediaPage.c" -} - - -static void -media_page_real_on_decrease_size (MediaPage* self) -{ -#line 643 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_decrease_zoom_level (self); -#line 5035 "MediaPage.c" -} - - -void -media_page_on_decrease_size (MediaPage* self) -{ -#line 642 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 642 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_decrease_size (self); -#line 5046 "MediaPage.c" -} - - -static void -media_page_on_add_tags (MediaPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - AddTagsDialog* dialog = NULL; - AddTagsDialog* _tmp3_; - gchar** names = NULL; - AddTagsDialog* _tmp4_; - gint _tmp5_; - gchar** _tmp6_; - gint names_length1; - gint _names_size_; - gchar** _tmp7_; - gint _tmp7__length1; -#line 646 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 647 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 647 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 647 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 647 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 647 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp2_) { -#line 648 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 5080 "MediaPage.c" - } -#line 650 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = add_tags_dialog_new (); -#line 650 "/home/jens/Source/shotwell/src/MediaPage.vala" - dialog = _tmp3_; -#line 651 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = dialog; -#line 651 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = add_tags_dialog_execute (_tmp4_, &_tmp5_); -#line 651 "/home/jens/Source/shotwell/src/MediaPage.vala" - names = _tmp6_; -#line 651 "/home/jens/Source/shotwell/src/MediaPage.vala" - names_length1 = _tmp5_; -#line 651 "/home/jens/Source/shotwell/src/MediaPage.vala" - _names_size_ = names_length1; -#line 653 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = names; -#line 653 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7__length1 = names_length1; -#line 653 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp7_ != NULL) { -#line 5102 "MediaPage.c" - CommandManager* _tmp8_; - CommandManager* _tmp9_; - HierarchicalTagIndex* _tmp10_; - HierarchicalTagIndex* _tmp11_; - gchar** _tmp12_; - gint _tmp12__length1; - gint _tmp13_; - gchar** _tmp14_; - gchar** _tmp15_; - gint _tmp15__length1; - ViewCollection* _tmp16_; - ViewCollection* _tmp17_; - GeeList* _tmp18_; - GeeCollection* _tmp19_; - AddTagsCommand* _tmp20_; - AddTagsCommand* _tmp21_; -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = _tmp8_; -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = hierarchical_tag_index_get_global_index (); -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = _tmp10_; -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = names; -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12__length1 = names_length1; -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = hierarchical_tag_index_get_paths_for_names_array (_tmp11_, _tmp12_, _tmp12__length1, &_tmp13_); -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = _tmp14_; -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15__length1 = _tmp13_; -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp17_ = _tmp16_; -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp18_ = view_collection_get_selected_sources (_tmp17_); -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection); -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp20_ = add_tags_command_new (_tmp15_, _tmp13_, _tmp19_); -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp21_ = _tmp20_; -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - command_manager_execute (_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_COMMAND, Command)); -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp21_); -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp19_); -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp17_); -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = (_vala_array_free (_tmp15_, _tmp15__length1, (GDestroyNotify) g_free), NULL); -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _hierarchical_tag_index_unref0 (_tmp11_); -#line 654 "/home/jens/Source/shotwell/src/MediaPage.vala" - _command_manager_unref0 (_tmp9_); -#line 5163 "MediaPage.c" - } -#line 646 "/home/jens/Source/shotwell/src/MediaPage.vala" - names = (_vala_array_free (names, names_length1, (GDestroyNotify) g_free), NULL); -#line 646 "/home/jens/Source/shotwell/src/MediaPage.vala" - _text_entry_dialog_mediator_unref0 (dialog); -#line 5169 "MediaPage.c" -} - - -static void -media_page_on_modify_tags (MediaPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - MediaSource* media = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - DataView* _tmp5_; - DataView* _tmp6_; - DataSource* _tmp7_; - MediaSource* _tmp8_; - ModifyTagsDialog* dialog = NULL; - MediaSource* _tmp9_; - ModifyTagsDialog* _tmp10_; - GeeArrayList* new_tags = NULL; - ModifyTagsDialog* _tmp11_; - GeeArrayList* _tmp12_; - GeeArrayList* _tmp13_; - CommandManager* _tmp14_; - CommandManager* _tmp15_; - MediaSource* _tmp16_; - GeeArrayList* _tmp17_; - ModifyTagsCommand* _tmp18_; - ModifyTagsCommand* _tmp19_; -#line 660 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 661 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 661 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 661 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1; -#line 661 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 661 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp2_) { -#line 662 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 5213 "MediaPage.c" - } -#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _tmp3_; -#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = view_collection_get_selected_at (_tmp4_, 0); -#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _tmp5_; -#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = data_view_get_source (_tmp6_); -#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MEDIA_SOURCE, MediaSource); -#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp6_); -#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp4_); -#line 664 "/home/jens/Source/shotwell/src/MediaPage.vala" - media = _tmp8_; -#line 666 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = media; -#line 666 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = modify_tags_dialog_new (_tmp9_); -#line 666 "/home/jens/Source/shotwell/src/MediaPage.vala" - dialog = _tmp10_; -#line 667 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = dialog; -#line 667 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = modify_tags_dialog_execute (_tmp11_); -#line 667 "/home/jens/Source/shotwell/src/MediaPage.vala" - new_tags = _tmp12_; -#line 669 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = new_tags; -#line 669 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp13_ == NULL) { -#line 670 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (new_tags); -#line 670 "/home/jens/Source/shotwell/src/MediaPage.vala" - _text_entry_dialog_mediator_unref0 (dialog); -#line 670 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (media); -#line 670 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 5257 "MediaPage.c" - } -#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = _tmp14_; -#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = media; -#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp17_ = new_tags; -#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp18_ = modify_tags_command_new (_tmp16_, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp19_ = _tmp18_; -#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala" - command_manager_execute (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_COMMAND, Command)); -#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp19_); -#line 672 "/home/jens/Source/shotwell/src/MediaPage.vala" - _command_manager_unref0 (_tmp15_); -#line 660 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (new_tags); -#line 660 "/home/jens/Source/shotwell/src/MediaPage.vala" - _text_entry_dialog_mediator_unref0 (dialog); -#line 660 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (media); -#line 5283 "MediaPage.c" -} - - -static void -media_page_set_display_tags (MediaPage* self, - gboolean display) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; - GValue _tmp4_ = {0}; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; -#line 675 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 676 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 676 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 676 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 676 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _tmp2_; -#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_value_init (&_tmp4_, G_TYPE_BOOLEAN); -#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_value_set_boolean (&_tmp4_, display); -#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SHOW_TAGS, &_tmp4_, NULL, NULL); -#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" - G_IS_VALUE (&_tmp4_) ? (g_value_unset (&_tmp4_), NULL) : NULL; -#line 677 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp3_); -#line 678 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 678 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _tmp5_; -#line 678 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection)); -#line 678 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp6_); -#line 680 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTags", display); -#line 5332 "MediaPage.c" -} - - -static void -media_page_on_new_event (MediaPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; -#line 683 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 684 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 684 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 684 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) > 0; -#line 684 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 684 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp2_) { -#line 5354 "MediaPage.c" - CommandManager* _tmp3_; - CommandManager* _tmp4_; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; - GeeList* _tmp7_; - GeeList* _tmp8_; - NewEventCommand* _tmp9_; - NewEventCommand* _tmp10_; -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _tmp3_; -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _tmp5_; -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = view_collection_get_selected (_tmp6_); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = _tmp7_; -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = new_event_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = _tmp9_; -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" - command_manager_execute (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_COMMAND, Command)); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp10_); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp8_); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp6_); -#line 685 "/home/jens/Source/shotwell/src/MediaPage.vala" - _command_manager_unref0 (_tmp4_); -#line 5389 "MediaPage.c" - } -} - - -static void -media_page_on_flag_unflag (MediaPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - GeeCollection* sources = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GeeList* _tmp5_; - GeeCollection* _tmp6_; - gboolean flag = FALSE; - CommandManager* _tmp17_; - CommandManager* _tmp18_; - GeeCollection* _tmp19_; - gboolean _tmp20_; - FlagUnflagCommand* _tmp21_; - FlagUnflagCommand* _tmp22_; -#line 688 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 689 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 689 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 689 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 689 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 689 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp2_) { -#line 690 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 5426 "MediaPage.c" - } -#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _tmp3_; -#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = view_collection_get_selected_sources_of_type (_tmp4_, TYPE_MEDIA_SOURCE); -#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection); -#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp4_); -#line 692 "/home/jens/Source/shotwell/src/MediaPage.vala" - sources = _tmp6_; -#line 696 "/home/jens/Source/shotwell/src/MediaPage.vala" - flag = FALSE; -#line 5442 "MediaPage.c" - { - GeeIterator* _source_it = NULL; - GeeCollection* _tmp7_; - GeeIterator* _tmp8_; -#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = sources; -#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala" - _source_it = _tmp8_; -#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala" - while (TRUE) { -#line 5455 "MediaPage.c" - GeeIterator* _tmp9_; - MediaSource* source = NULL; - GeeIterator* _tmp10_; - gpointer _tmp11_; - Flaggable* flaggable = NULL; - MediaSource* _tmp12_; - Flaggable* _tmp13_; - gboolean _tmp14_ = FALSE; - Flaggable* _tmp15_; -#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = _source_it; -#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (!gee_iterator_next (_tmp9_)) { -#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 5471 "MediaPage.c" - } -#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = _source_it; -#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = gee_iterator_get (_tmp10_); -#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala" - source = (MediaSource*) _tmp11_; -#line 698 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = source; -#line 698 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, TYPE_FLAGGABLE) ? ((Flaggable*) _tmp12_) : NULL); -#line 698 "/home/jens/Source/shotwell/src/MediaPage.vala" - flaggable = _tmp13_; -#line 699 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = flaggable; -#line 699 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp15_ != NULL) { -#line 5489 "MediaPage.c" - Flaggable* _tmp16_; -#line 699 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = flaggable; -#line 699 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = !flaggable_is_flagged (_tmp16_); -#line 5495 "MediaPage.c" - } else { -#line 699 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = FALSE; -#line 5499 "MediaPage.c" - } -#line 699 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp14_) { -#line 700 "/home/jens/Source/shotwell/src/MediaPage.vala" - flag = TRUE; -#line 702 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (flaggable); -#line 702 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (source); -#line 702 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 5511 "MediaPage.c" - } -#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (flaggable); -#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (source); -#line 5517 "MediaPage.c" - } -#line 697 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_source_it); -#line 5521 "MediaPage.c" - } -#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp17_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp18_ = _tmp17_; -#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp19_ = sources; -#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp20_ = flag; -#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp21_ = flag_unflag_command_new (_tmp19_, _tmp20_); -#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp22_ = _tmp21_; -#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala" - command_manager_execute (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_COMMAND, Command)); -#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp22_); -#line 706 "/home/jens/Source/shotwell/src/MediaPage.vala" - _command_manager_unref0 (_tmp18_); -#line 688 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (sources); -#line 5543 "MediaPage.c" -} - - -static void -media_page_real_on_increase_rating (MediaPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - SetRatingCommand* command = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp6_; - SetRatingCommand* _tmp7_; - SetRatingCommand* _tmp8_; - CommandManager* _tmp9_; - CommandManager* _tmp10_; - SetRatingCommand* _tmp11_; -#line 710 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 710 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 710 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 710 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 710 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp2_) { -#line 711 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 5575 "MediaPage.c" - } -#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _tmp3_; -#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = view_collection_get_selected (_tmp4_); -#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _tmp5_; -#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = set_rating_command_new_inc_dec (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), TRUE); -#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = _tmp7_; -#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp6_); -#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp4_); -#line 713 "/home/jens/Source/shotwell/src/MediaPage.vala" - command = _tmp8_; -#line 714 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 714 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = _tmp9_; -#line 714 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = command; -#line 714 "/home/jens/Source/shotwell/src/MediaPage.vala" - command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command)); -#line 714 "/home/jens/Source/shotwell/src/MediaPage.vala" - _command_manager_unref0 (_tmp10_); -#line 716 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_update_rating_sensitivities (self); -#line 709 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (command); -#line 5609 "MediaPage.c" -} - - -void -media_page_on_increase_rating (MediaPage* self) -{ -#line 709 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 709 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_increase_rating (self); -#line 5620 "MediaPage.c" -} - - -static void -media_page_real_on_decrease_rating (MediaPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - SetRatingCommand* command = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp6_; - SetRatingCommand* _tmp7_; - SetRatingCommand* _tmp8_; - CommandManager* _tmp9_; - CommandManager* _tmp10_; - SetRatingCommand* _tmp11_; -#line 720 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 720 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 720 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 720 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 720 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp2_) { -#line 721 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 5652 "MediaPage.c" - } -#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _tmp3_; -#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = view_collection_get_selected (_tmp4_); -#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _tmp5_; -#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = set_rating_command_new_inc_dec (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), FALSE); -#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = _tmp7_; -#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp6_); -#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp4_); -#line 723 "/home/jens/Source/shotwell/src/MediaPage.vala" - command = _tmp8_; -#line 724 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 724 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = _tmp9_; -#line 724 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = command; -#line 724 "/home/jens/Source/shotwell/src/MediaPage.vala" - command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command)); -#line 724 "/home/jens/Source/shotwell/src/MediaPage.vala" - _command_manager_unref0 (_tmp10_); -#line 726 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_update_rating_sensitivities (self); -#line 719 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (command); -#line 5686 "MediaPage.c" -} - - -void -media_page_on_decrease_rating (MediaPage* self) -{ -#line 719 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 719 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_decrease_rating (self); -#line 5697 "MediaPage.c" -} - - -static void -media_page_real_on_set_rating (MediaPage* self, - Rating rating) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - SetRatingCommand* command = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp6_; - SetRatingCommand* _tmp7_; - SetRatingCommand* _tmp8_; - CommandManager* _tmp9_; - CommandManager* _tmp10_; - SetRatingCommand* _tmp11_; -#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 730 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp2_) { -#line 731 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 5730 "MediaPage.c" - } -#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _tmp3_; -#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = view_collection_get_selected (_tmp4_); -#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _tmp5_; -#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = set_rating_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), rating); -#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = _tmp7_; -#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp6_); -#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp4_); -#line 733 "/home/jens/Source/shotwell/src/MediaPage.vala" - command = _tmp8_; -#line 734 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 734 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = _tmp9_; -#line 734 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = command; -#line 734 "/home/jens/Source/shotwell/src/MediaPage.vala" - command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command)); -#line 734 "/home/jens/Source/shotwell/src/MediaPage.vala" - _command_manager_unref0 (_tmp10_); -#line 736 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_update_rating_sensitivities (self); -#line 729 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (command); -#line 5764 "MediaPage.c" -} - - -void -media_page_on_set_rating (MediaPage* self, - Rating rating) -{ -#line 729 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 729 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_set_rating (self, rating); -#line 5776 "MediaPage.c" -} - - -static void -media_page_real_on_rate_rejected (MediaPage* self) -{ -#line 740 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_set_rating (self, RATING_REJECTED); -#line 5785 "MediaPage.c" -} - - -void -media_page_on_rate_rejected (MediaPage* self) -{ -#line 739 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 739 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_rate_rejected (self); -#line 5796 "MediaPage.c" -} - - -static void -media_page_real_on_rate_unrated (MediaPage* self) -{ -#line 744 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_set_rating (self, RATING_UNRATED); -#line 5805 "MediaPage.c" -} - - -void -media_page_on_rate_unrated (MediaPage* self) -{ -#line 743 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 743 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_rate_unrated (self); -#line 5816 "MediaPage.c" -} - - -static void -media_page_real_on_rate_one (MediaPage* self) -{ -#line 748 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_set_rating (self, RATING_ONE); -#line 5825 "MediaPage.c" -} - - -void -media_page_on_rate_one (MediaPage* self) -{ -#line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 747 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_rate_one (self); -#line 5836 "MediaPage.c" -} - - -static void -media_page_real_on_rate_two (MediaPage* self) -{ -#line 752 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_set_rating (self, RATING_TWO); -#line 5845 "MediaPage.c" -} - - -void -media_page_on_rate_two (MediaPage* self) -{ -#line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 751 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_rate_two (self); -#line 5856 "MediaPage.c" -} - - -static void -media_page_real_on_rate_three (MediaPage* self) -{ -#line 756 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_set_rating (self, RATING_THREE); -#line 5865 "MediaPage.c" -} - - -void -media_page_on_rate_three (MediaPage* self) -{ -#line 755 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 755 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_rate_three (self); -#line 5876 "MediaPage.c" -} - - -static void -media_page_real_on_rate_four (MediaPage* self) -{ -#line 760 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_set_rating (self, RATING_FOUR); -#line 5885 "MediaPage.c" -} - - -void -media_page_on_rate_four (MediaPage* self) -{ -#line 759 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 759 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_rate_four (self); -#line 5896 "MediaPage.c" -} - - -static void -media_page_real_on_rate_five (MediaPage* self) -{ -#line 764 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_on_set_rating (self, RATING_FIVE); -#line 5905 "MediaPage.c" -} - - -void -media_page_on_rate_five (MediaPage* self) -{ -#line 763 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 763 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_rate_five (self); -#line 5916 "MediaPage.c" -} - - -static void -media_page_on_remove_from_library (MediaPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - GeeList* _tmp2_; - GeeCollection* _tmp3_; -#line 767 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 768 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 768 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 768 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = view_collection_get_selected_sources (_tmp1_); -#line 768 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 768 "/home/jens/Source/shotwell/src/MediaPage.vala" - remove_photos_from_library (_tmp3_); -#line 768 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp3_); -#line 768 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 5943 "MediaPage.c" -} - - -static void -media_page_real_on_move_to_trash (MediaPage* self) -{ - CheckerboardItem* restore_point = NULL; - CheckerboardItem* _tmp0_; - GeeList* sources = NULL; - ViewCollection* _tmp6_; - ViewCollection* _tmp7_; - GeeList* _tmp8_; - GeeList* _tmp9_; - gboolean _tmp10_ = FALSE; - CheckerboardItem* _tmp11_; - ViewCollection* _tmp16_; - ViewCollection* _tmp17_; - gboolean _tmp18_; -#line 772 "/home/jens/Source/shotwell/src/MediaPage.vala" - restore_point = NULL; -#line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)->cursor; -#line 774 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp0_ != NULL) { -#line 5968 "MediaPage.c" - ViewCollection* _tmp1_; - ViewCollection* _tmp2_; - CheckerboardItem* _tmp3_; - DataView* _tmp4_; - CheckerboardItem* _tmp5_; -#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = _tmp1_; -#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)->cursor; -#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = view_collection_get_next (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_VIEW, DataView)); -#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_CHECKERBOARD_ITEM) ? ((CheckerboardItem*) _tmp4_) : NULL; -#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp5_ == NULL) { -#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp4_); -#line 5988 "MediaPage.c" - } -#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (restore_point); -#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" - restore_point = _tmp5_; -#line 775 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp2_); -#line 5996 "MediaPage.c" - } -#line 778 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 778 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = _tmp6_; -#line 778 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = view_collection_get_selected_sources (_tmp7_); -#line 778 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = _tmp8_; -#line 778 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp7_); -#line 778 "/home/jens/Source/shotwell/src/MediaPage.vala" - sources = _tmp9_; -#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = restore_point; -#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp11_ != NULL) { -#line 6014 "MediaPage.c" - ViewCollection* _tmp12_; - ViewCollection* _tmp13_; - CheckerboardItem* _tmp14_; -#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = _tmp12_; -#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = restore_point; -#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_OBJECT, DataObject)); -#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp13_); -#line 6028 "MediaPage.c" - } else { -#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = FALSE; -#line 6032 "MediaPage.c" - } -#line 780 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp10_) { -#line 6036 "MediaPage.c" - CheckerboardItem* _tmp15_; -#line 781 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = restore_point; -#line 781 "/home/jens/Source/shotwell/src/MediaPage.vala" - checkerboard_page_set_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp15_); -#line 6042 "MediaPage.c" - } -#line 784 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 784 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp17_ = _tmp16_; -#line 784 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp18_ = view_collection_get_selected_count (_tmp17_) > 0; -#line 784 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp17_); -#line 784 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp18_) { -#line 6054 "MediaPage.c" - CommandManager* _tmp19_; - CommandManager* _tmp20_; - GeeList* _tmp21_; - TrashUntrashPhotosCommand* _tmp22_; - TrashUntrashPhotosCommand* _tmp23_; -#line 785 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp19_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 785 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp20_ = _tmp19_; -#line 785 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp21_ = sources; -#line 785 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp22_ = trash_untrash_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection), TRUE); -#line 785 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp23_ = _tmp22_; -#line 785 "/home/jens/Source/shotwell/src/MediaPage.vala" - command_manager_execute (_tmp20_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_COMMAND, Command)); -#line 785 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp23_); -#line 785 "/home/jens/Source/shotwell/src/MediaPage.vala" - _command_manager_unref0 (_tmp20_); -#line 6076 "MediaPage.c" - } -#line 771 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (sources); -#line 771 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (restore_point); -#line 6082 "MediaPage.c" -} - - -void -media_page_on_move_to_trash (MediaPage* self) -{ -#line 771 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 771 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_move_to_trash (self); -#line 6093 "MediaPage.c" -} - - -static void -media_page_real_on_edit_title (MediaPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - GeeList* media_sources = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp6_; - EditTitleDialog* edit_title_dialog = NULL; - GeeList* _tmp7_; - gpointer _tmp8_; - MediaSource* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - EditTitleDialog* _tmp12_; - EditTitleDialog* _tmp13_; - gchar* new_title = NULL; - EditTitleDialog* _tmp14_; - gchar* _tmp15_; - const gchar* _tmp16_; -#line 792 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 792 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 792 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 792 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 792 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp2_) { -#line 793 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 6132 "MediaPage.c" - } -#line 795 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 795 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _tmp3_; -#line 795 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = view_collection_get_selected_sources (_tmp4_); -#line 795 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_LIST, GeeList); -#line 795 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp4_); -#line 795 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_sources = _tmp6_; -#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = media_sources; -#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = gee_list_get (_tmp7_, 0); -#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = (MediaSource*) _tmp8_; -#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = media_source_get_title (_tmp9_); -#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = _tmp10_; -#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = edit_title_dialog_new (_tmp11_); -#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = _tmp12_; -#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_free0 (_tmp11_); -#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp9_); -#line 797 "/home/jens/Source/shotwell/src/MediaPage.vala" - edit_title_dialog = _tmp13_; -#line 798 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = edit_title_dialog; -#line 798 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = edit_title_dialog_execute (_tmp14_); -#line 798 "/home/jens/Source/shotwell/src/MediaPage.vala" - new_title = _tmp15_; -#line 799 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = new_title; -#line 799 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp16_ != NULL) { -#line 6176 "MediaPage.c" - CommandManager* _tmp17_; - CommandManager* _tmp18_; - GeeList* _tmp19_; - const gchar* _tmp20_; - EditMultipleTitlesCommand* _tmp21_; - EditMultipleTitlesCommand* _tmp22_; -#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp17_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp18_ = _tmp17_; -#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp19_ = media_sources; -#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp20_ = new_title; -#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp21_ = edit_multiple_titles_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection), _tmp20_); -#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp22_ = _tmp21_; -#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala" - command_manager_execute (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_COMMAND, Command)); -#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp22_); -#line 800 "/home/jens/Source/shotwell/src/MediaPage.vala" - _command_manager_unref0 (_tmp18_); -#line 6201 "MediaPage.c" - } -#line 791 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_free0 (new_title); -#line 791 "/home/jens/Source/shotwell/src/MediaPage.vala" - _text_entry_dialog_mediator_unref0 (edit_title_dialog); -#line 791 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (media_sources); -#line 6209 "MediaPage.c" -} - - -void -media_page_on_edit_title (MediaPage* self) -{ -#line 791 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 791 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_edit_title (self); -#line 6220 "MediaPage.c" -} - - -static void -media_page_real_on_edit_comment (MediaPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - GeeList* media_sources = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp6_; - EditCommentDialog* edit_comment_dialog = NULL; - GeeList* _tmp7_; - gpointer _tmp8_; - MediaSource* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - EditCommentDialog* _tmp12_; - EditCommentDialog* _tmp13_; - gchar* new_comment = NULL; - EditCommentDialog* _tmp14_; - gchar* _tmp15_; - const gchar* _tmp16_; -#line 804 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 804 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 804 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 804 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 804 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp2_) { -#line 805 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 6259 "MediaPage.c" - } -#line 807 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 807 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _tmp3_; -#line 807 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = view_collection_get_selected_sources (_tmp4_); -#line 807 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_LIST, GeeList); -#line 807 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp4_); -#line 807 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_sources = _tmp6_; -#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = media_sources; -#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = gee_list_get (_tmp7_, 0); -#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = (MediaSource*) _tmp8_; -#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = media_source_get_comment (_tmp9_); -#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = _tmp10_; -#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = edit_comment_dialog_new (_tmp11_, FALSE); -#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = _tmp12_; -#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_free0 (_tmp11_); -#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp9_); -#line 809 "/home/jens/Source/shotwell/src/MediaPage.vala" - edit_comment_dialog = _tmp13_; -#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = edit_comment_dialog; -#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = edit_comment_dialog_execute (_tmp14_); -#line 810 "/home/jens/Source/shotwell/src/MediaPage.vala" - new_comment = _tmp15_; -#line 811 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = new_comment; -#line 811 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp16_ != NULL) { -#line 6303 "MediaPage.c" - CommandManager* _tmp17_; - CommandManager* _tmp18_; - GeeList* _tmp19_; - const gchar* _tmp20_; - EditMultipleCommentsCommand* _tmp21_; - EditMultipleCommentsCommand* _tmp22_; -#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp17_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp18_ = _tmp17_; -#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp19_ = media_sources; -#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp20_ = new_comment; -#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp21_ = edit_multiple_comments_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection), _tmp20_); -#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp22_ = _tmp21_; -#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala" - command_manager_execute (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_COMMAND, Command)); -#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp22_); -#line 812 "/home/jens/Source/shotwell/src/MediaPage.vala" - _command_manager_unref0 (_tmp18_); -#line 6328 "MediaPage.c" - } -#line 803 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_free0 (new_comment); -#line 803 "/home/jens/Source/shotwell/src/MediaPage.vala" - _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog); -#line 803 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (media_sources); -#line 6336 "MediaPage.c" -} - - -void -media_page_on_edit_comment (MediaPage* self) -{ -#line 803 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 803 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_edit_comment (self); -#line 6347 "MediaPage.c" -} - - -static void -media_page_real_on_display_titles (MediaPage* self, - GSimpleAction* action, - GVariant* value) -{ - gboolean display = FALSE; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 815 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 816 "/home/jens/Source/shotwell/src/MediaPage.vala" - display = g_variant_get_boolean (value); -#line 818 "/home/jens/Source/shotwell/src/MediaPage.vala" - checkerboard_page_set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), display); -#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" - configuration_facade_set_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); -#line 820 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp1_); -#line 821 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_simple_action_set_state (action, value); -#line 6375 "MediaPage.c" -} - - -void -media_page_on_display_titles (MediaPage* self, - GSimpleAction* action, - GVariant* value) -{ -#line 815 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 815 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_display_titles (self, action, value); -#line 6388 "MediaPage.c" -} - - -static void -media_page_real_on_display_comments (MediaPage* self, - GSimpleAction* action, - GVariant* value) -{ - gboolean display = FALSE; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 825 "/home/jens/Source/shotwell/src/MediaPage.vala" - display = g_variant_get_boolean (value); -#line 827 "/home/jens/Source/shotwell/src/MediaPage.vala" - checkerboard_page_set_display_comments (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), display); -#line 829 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 829 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 829 "/home/jens/Source/shotwell/src/MediaPage.vala" - configuration_facade_set_display_photo_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); -#line 829 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp1_); -#line 830 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_simple_action_set_state (action, value); -#line 6416 "MediaPage.c" -} - - -void -media_page_on_display_comments (MediaPage* self, - GSimpleAction* action, - GVariant* value) -{ -#line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 824 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_display_comments (self, action, value); -#line 6429 "MediaPage.c" -} - - -static void -media_page_real_on_display_ratings (MediaPage* self, - GSimpleAction* action, - GVariant* value) -{ - gboolean display = FALSE; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 833 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 834 "/home/jens/Source/shotwell/src/MediaPage.vala" - display = g_variant_get_boolean (value); -#line 836 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_set_display_ratings (self, display); -#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" - configuration_facade_set_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); -#line 838 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp1_); -#line 839 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_simple_action_set_state (action, value); -#line 6457 "MediaPage.c" -} - - -void -media_page_on_display_ratings (MediaPage* self, - GSimpleAction* action, - GVariant* value) -{ -#line 833 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 833 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_display_ratings (self, action, value); -#line 6470 "MediaPage.c" -} - - -static void -media_page_real_on_display_tags (MediaPage* self, - GSimpleAction* action, - GVariant* value) -{ - gboolean display = FALSE; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 842 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 843 "/home/jens/Source/shotwell/src/MediaPage.vala" - display = g_variant_get_boolean (value); -#line 845 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_set_display_tags (self, display); -#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" - configuration_facade_set_display_photo_tags (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); -#line 847 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp1_); -#line 848 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_simple_action_set_state (action, value); -#line 6498 "MediaPage.c" -} - - -void -media_page_on_display_tags (MediaPage* self, - GSimpleAction* action, - GVariant* value) -{ -#line 842 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 842 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_display_tags (self, action, value); -#line 6511 "MediaPage.c" -} - - -static void -media_page_real_get_config_photos_sort (MediaPage* self, - gboolean* sort_order, - gint* sort_by) -{ -#line 851 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_critical ("Type `%s' does not implement abstract method `media_page_get_config_photos_sort'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 851 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 6524 "MediaPage.c" -} - - -void -media_page_get_config_photos_sort (MediaPage* self, - gboolean* sort_order, - gint* sort_by) -{ -#line 851 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 851 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->get_config_photos_sort (self, sort_order, sort_by); -#line 6537 "MediaPage.c" -} - - -static void -media_page_real_set_config_photos_sort (MediaPage* self, - gboolean sort_order, - gint sort_by) -{ -#line 853 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_critical ("Type `%s' does not implement abstract method `media_page_set_config_photos_sort'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 853 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 6550 "MediaPage.c" -} - - -void -media_page_set_config_photos_sort (MediaPage* self, - gboolean sort_order, - gint sort_by) -{ -#line 853 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 853 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->set_config_photos_sort (self, sort_order, sort_by); -#line 6563 "MediaPage.c" -} - - -static void -media_page_real_on_sort_changed (MediaPage* self, - GSimpleAction* action, - GVariant* value) -{ - gint sort_by = 0; - gboolean sort_order = FALSE; -#line 855 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 856 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_simple_action_set_state (action, value); -#line 858 "/home/jens/Source/shotwell/src/MediaPage.vala" - sort_by = media_page_get_menu_sort_by (self); -#line 859 "/home/jens/Source/shotwell/src/MediaPage.vala" - sort_order = media_page_get_menu_sort_order (self); -#line 861 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_set_view_comparator (self, sort_by, sort_order); -#line 862 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_set_config_photos_sort (self, sort_order, sort_by); -#line 6586 "MediaPage.c" -} - - -void -media_page_on_sort_changed (MediaPage* self, - GSimpleAction* action, - GVariant* value) -{ -#line 855 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 855 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->on_sort_changed (self, action, value); -#line 6599 "MediaPage.c" -} - - -static void -media_page_on_raw_developer_changed (MediaPage* self, - GSimpleAction* action, - GVariant* value) -{ - RawDeveloper developer = 0; - const gchar* _tmp0_; - const gchar* _tmp1_; - GQuark _tmp3_ = 0U; -#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp2_label0 = 0; -#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala" - static GQuark _tmp2_label1 = 0; -#line 6616 "MediaPage.c" - RawDeveloper _tmp4_; -#line 865 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 865 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 867 "/home/jens/Source/shotwell/src/MediaPage.vala" - developer = RAW_DEVELOPER_SHOTWELL; -#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = g_variant_get_string (value, NULL); -#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_); -#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("Shotwell")))) { -#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala" - switch (0) { -#line 6634 "MediaPage.c" - default: - { -#line 871 "/home/jens/Source/shotwell/src/MediaPage.vala" - developer = RAW_DEVELOPER_SHOTWELL; -#line 872 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 6641 "MediaPage.c" - } - } - } else if (_tmp3_ == ((0 != _tmp2_label1) ? _tmp2_label1 : (_tmp2_label1 = g_quark_from_static_string ("Camera")))) { -#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala" - switch (0) { -#line 6647 "MediaPage.c" - default: - { -#line 874 "/home/jens/Source/shotwell/src/MediaPage.vala" - developer = RAW_DEVELOPER_CAMERA; -#line 875 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 6654 "MediaPage.c" - } - } - } else { -#line 869 "/home/jens/Source/shotwell/src/MediaPage.vala" - switch (0) { -#line 6660 "MediaPage.c" - default: - { -#line 877 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 6665 "MediaPage.c" - } - } - } -#line 880 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = developer; -#line 880 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_developer_changed (self, _tmp4_); -#line 882 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_simple_action_set_state (action, value); -#line 6675 "MediaPage.c" -} - - -static void -media_page_real_developer_changed (MediaPage* self, - RawDeveloper rd) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - gboolean need_warn = FALSE; - GeeArrayList* to_set = NULL; - GeeArrayList* _tmp3_; - gboolean _tmp26_ = FALSE; - gboolean _tmp27_; -#line 886 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 886 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 886 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 886 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp1_); -#line 886 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp2_) { -#line 887 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 6703 "MediaPage.c" - } -#line 892 "/home/jens/Source/shotwell/src/MediaPage.vala" - need_warn = FALSE; -#line 895 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 895 "/home/jens/Source/shotwell/src/MediaPage.vala" - to_set = _tmp3_; -#line 6711 "MediaPage.c" - { - GeeList* _view_list = NULL; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - GeeList* _tmp6_; - GeeList* _tmp7_; - gint _view_size = 0; - GeeList* _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _view_index = 0; -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = _tmp4_; -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = view_collection_get_selected (_tmp5_); -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = _tmp6_; -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp5_); -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_list = _tmp7_; -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = _view_list; -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = _tmp9_; -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_size = _tmp10_; -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_index = -1; -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - while (TRUE) { -#line 6747 "MediaPage.c" - gint _tmp11_; - gint _tmp12_; - gint _tmp13_; - DataView* view = NULL; - GeeList* _tmp14_; - gint _tmp15_; - gpointer _tmp16_; - Photo* p = NULL; - DataView* _tmp17_; - DataSource* _tmp18_; - Photo* _tmp19_; - gboolean _tmp20_ = FALSE; - Photo* _tmp21_; -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = _view_index; -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _view_index = _tmp11_ + 1; -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = _view_index; -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = _view_size; -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (!(_tmp12_ < _tmp13_)) { -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 6773 "MediaPage.c" - } -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = _view_list; -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = _view_index; -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = gee_list_get (_tmp14_, _tmp15_); -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - view = (DataView*) _tmp16_; -#line 897 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp17_ = view; -#line 897 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp18_ = data_view_get_source (_tmp17_); -#line 897 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp19_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, TYPE_PHOTO) ? ((Photo*) _tmp18_) : NULL; -#line 897 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp19_ == NULL) { -#line 897 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp18_); -#line 6793 "MediaPage.c" - } -#line 897 "/home/jens/Source/shotwell/src/MediaPage.vala" - p = _tmp19_; -#line 898 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp21_ = p; -#line 898 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp21_ != NULL) { -#line 6801 "MediaPage.c" - Photo* _tmp22_; -#line 898 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp22_ = p; -#line 898 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp20_ = !raw_developer_is_equivalent (rd, photo_get_raw_developer (_tmp22_)); -#line 6807 "MediaPage.c" - } else { -#line 898 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp20_ = FALSE; -#line 6811 "MediaPage.c" - } -#line 898 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp20_) { -#line 6815 "MediaPage.c" - GeeArrayList* _tmp23_; - DataView* _tmp24_; - Photo* _tmp25_; -#line 899 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp23_ = to_set; -#line 899 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp24_ = view; -#line 899 "/home/jens/Source/shotwell/src/MediaPage.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp24_); -#line 901 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp25_ = p; -#line 901 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (photo_has_transformations (_tmp25_)) { -#line 902 "/home/jens/Source/shotwell/src/MediaPage.vala" - need_warn = TRUE; -#line 6831 "MediaPage.c" - } - } -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (p); -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (view); -#line 6838 "MediaPage.c" - } -#line 896 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_view_list); -#line 6842 "MediaPage.c" - } -#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp27_ = need_warn; -#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (!_tmp27_) { -#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp26_ = TRUE; -#line 6850 "MediaPage.c" - } else { - GeeArrayList* _tmp28_; - gint _tmp29_; - gint _tmp30_; -#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp28_ = to_set; -#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp29_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp30_ = _tmp29_; -#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp26_ = dialogs_confirm_warn_developer_changed (_tmp30_); -#line 6863 "MediaPage.c" - } -#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp26_) { -#line 6867 "MediaPage.c" - SetRawDeveloperCommand* command = NULL; - GeeArrayList* _tmp31_; - SetRawDeveloperCommand* _tmp32_; - CommandManager* _tmp33_; - CommandManager* _tmp34_; - SetRawDeveloperCommand* _tmp35_; -#line 908 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp31_ = to_set; -#line 908 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp32_ = set_raw_developer_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ITERABLE, GeeIterable), rd); -#line 908 "/home/jens/Source/shotwell/src/MediaPage.vala" - command = _tmp32_; -#line 909 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp33_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 909 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp34_ = _tmp33_; -#line 909 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp35_ = command; -#line 909 "/home/jens/Source/shotwell/src/MediaPage.vala" - command_manager_execute (_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_COMMAND, Command)); -#line 909 "/home/jens/Source/shotwell/src/MediaPage.vala" - _command_manager_unref0 (_tmp34_); -#line 911 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_update_development_menu_item_sensitivity (self); -#line 907 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (command); -#line 6894 "MediaPage.c" - } -#line 885 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (to_set); -#line 6898 "MediaPage.c" -} - - -void -media_page_developer_changed (MediaPage* self, - RawDeveloper rd) -{ -#line 885 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 885 "/home/jens/Source/shotwell/src/MediaPage.vala" - MEDIA_PAGE_GET_CLASS (self)->developer_changed (self, rd); -#line 6910 "MediaPage.c" -} - - -static void -media_page_real_set_display_titles (CheckerboardPage* base, - gboolean display) -{ - MediaPage * self; -#line 915 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 916 "/home/jens/Source/shotwell/src/MediaPage.vala" - CHECKERBOARD_PAGE_CLASS (media_page_parent_class)->set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), display); -#line 918 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTitle", display); -#line 6925 "MediaPage.c" -} - - -static void -media_page_real_set_display_comments (CheckerboardPage* base, - gboolean display) -{ - MediaPage * self; -#line 921 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 922 "/home/jens/Source/shotwell/src/MediaPage.vala" - CHECKERBOARD_PAGE_CLASS (media_page_parent_class)->set_display_comments (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), display); -#line 924 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewComment", display); -#line 6940 "MediaPage.c" -} - - -static GAction* -media_page_sort_by_title_action (MediaPage* self) -{ - GAction* result = NULL; - GAction* action = NULL; - GAction* _tmp0_; -#line 927 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (IS_MEDIA_PAGE (self), NULL); -#line 928 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SortBy"); -#line 928 "/home/jens/Source/shotwell/src/MediaPage.vala" - action = _tmp0_; -#line 929 "/home/jens/Source/shotwell/src/MediaPage.vala" - _vala_assert (action != NULL, "action != null"); -#line 930 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = action; -#line 930 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 6962 "MediaPage.c" -} - - -static GAction* -media_page_sort_ascending_action (MediaPage* self) -{ - GAction* result = NULL; - GAction* action = NULL; - GAction* _tmp0_; -#line 933 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (IS_MEDIA_PAGE (self), NULL); -#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Sort"); -#line 934 "/home/jens/Source/shotwell/src/MediaPage.vala" - action = _tmp0_; -#line 935 "/home/jens/Source/shotwell/src/MediaPage.vala" - _vala_assert (action != NULL, "action != null"); -#line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = action; -#line 936 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 6984 "MediaPage.c" -} - - -gint -media_page_get_menu_sort_by (MediaPage* self) -{ - gint result = 0; - GAction* _tmp0_; - GAction* _tmp1_; - GVariant* _tmp2_; - GVariant* _tmp3_; - const gchar* _tmp4_; - gint _tmp5_; -#line 939 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (IS_MEDIA_PAGE (self), 0); -#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = media_page_sort_by_title_action (self); -#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = g_action_get_state (_tmp1_); -#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _tmp2_; -#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = g_variant_get_string (_tmp3_, NULL); -#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = atoi (_tmp4_); -#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_variant_unref0 (_tmp3_); -#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp1_); -#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = _tmp5_; -#line 941 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7020 "MediaPage.c" -} - - -static GVariant* -_variant_new30 (const gchar* value) -{ -#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 7029 "MediaPage.c" -} - - -void -media_page_set_menu_sort_by (MediaPage* self, - gint val) -{ - gchar* sort = NULL; - gchar* _tmp0_; - GAction* _tmp1_; - GAction* _tmp2_; - GVariant* _tmp3_; -#line 944 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = g_strdup_printf ("%d", val); -#line 945 "/home/jens/Source/shotwell/src/MediaPage.vala" - sort = _tmp0_; -#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = media_page_sort_by_title_action (self); -#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = _tmp1_; -#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _variant_new30 (sort); -#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_action_change_state (_tmp2_, _tmp3_); -#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_variant_unref0 (_tmp3_); -#line 946 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp2_); -#line 944 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_free0 (sort); -#line 7062 "MediaPage.c" -} - - -gboolean -media_page_get_menu_sort_order (MediaPage* self) -{ - gboolean result = FALSE; - GAction* _tmp0_; - GAction* _tmp1_; - GVariant* _tmp2_; - GVariant* _tmp3_; - const gchar* _tmp4_; - gboolean _tmp5_; -#line 949 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (IS_MEDIA_PAGE (self), FALSE); -#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = media_page_sort_ascending_action (self); -#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = g_action_get_state (_tmp1_); -#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _tmp2_; -#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = g_variant_get_string (_tmp3_, NULL); -#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = g_strcmp0 (_tmp4_, "ascending") == 0; -#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_variant_unref0 (_tmp3_); -#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp1_); -#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = _tmp5_; -#line 951 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7098 "MediaPage.c" -} - - -static GVariant* -_variant_new31 (const gchar* value) -{ -#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 7107 "MediaPage.c" -} - - -void -media_page_set_menu_sort_order (MediaPage* self, - gboolean ascending) -{ - const gchar* _tmp0_ = NULL; - GAction* _tmp1_; - GAction* _tmp2_; - GVariant* _tmp3_; -#line 954 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (ascending) { -#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = "ascending"; -#line 7125 "MediaPage.c" - } else { -#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = "descending"; -#line 7129 "MediaPage.c" - } -#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = media_page_sort_ascending_action (self); -#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = _tmp1_; -#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _variant_new31 (_tmp0_); -#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_action_change_state (_tmp2_, _tmp3_); -#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_variant_unref0 (_tmp3_); -#line 955 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp2_); -#line 7143 "MediaPage.c" -} - - -static gint64 -_thumbnail_title_ascending_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = thumbnail_title_ascending_comparator (a, b); -#line 965 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7156 "MediaPage.c" -} - - -static gint64 -_thumbnail_title_descending_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = thumbnail_title_descending_comparator (a, b); -#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7169 "MediaPage.c" -} - - -static gboolean -_thumbnail_title_comparator_predicate_comparator_predicate (DataObject* object, - Alteration* alteration, - gpointer self) -{ - gboolean result; - result = thumbnail_title_comparator_predicate (object, alteration); -#line 967 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7182 "MediaPage.c" -} - - -static gint64 -_thumbnail_exposure_time_ascending_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = thumbnail_exposure_time_ascending_comparator (a, b); -#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7195 "MediaPage.c" -} - - -static gint64 -_thumbnail_exposure_time_desending_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = thumbnail_exposure_time_desending_comparator (a, b); -#line 973 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7208 "MediaPage.c" -} - - -static gboolean -_thumbnail_exposure_time_comparator_predicate_comparator_predicate (DataObject* object, - Alteration* alteration, - gpointer self) -{ - gboolean result; - result = thumbnail_exposure_time_comparator_predicate (object, alteration); -#line 974 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7221 "MediaPage.c" -} - - -static gint64 -_thumbnail_rating_ascending_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = thumbnail_rating_ascending_comparator (a, b); -#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7234 "MediaPage.c" -} - - -static gint64 -_thumbnail_rating_descending_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = thumbnail_rating_descending_comparator (a, b); -#line 980 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7247 "MediaPage.c" -} - - -static gboolean -_thumbnail_rating_comparator_predicate_comparator_predicate (DataObject* object, - Alteration* alteration, - gpointer self) -{ - gboolean result; - result = thumbnail_rating_comparator_predicate (object, alteration); -#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7260 "MediaPage.c" -} - - -static gint64 -_thumbnail_filename_ascending_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = thumbnail_filename_ascending_comparator (a, b); -#line 986 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7273 "MediaPage.c" -} - - -static gint64 -_thumbnail_filename_descending_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = thumbnail_filename_descending_comparator (a, b); -#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7286 "MediaPage.c" -} - - -static gboolean -_thumbnail_filename_comparator_predicate_comparator_predicate (DataObject* object, - Alteration* alteration, - gpointer self) -{ - gboolean result; - result = thumbnail_filename_comparator_predicate (object, alteration); -#line 988 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7299 "MediaPage.c" -} - - -static void -media_page_set_view_comparator (MediaPage* self, - gint sort_by, - gboolean ascending) -{ - Comparator comparator = NULL; - void* comparator_target = NULL; - GDestroyNotify comparator_target_destroy_notify = NULL; - ComparatorPredicate predicate = NULL; - void* predicate_target = NULL; - GDestroyNotify predicate_target_destroy_notify = NULL; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; - Comparator _tmp4_; - void* _tmp4__target; - ComparatorPredicate _tmp5_; - void* _tmp5__target; -#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 962 "/home/jens/Source/shotwell/src/MediaPage.vala" - switch (sort_by) { -#line 962 "/home/jens/Source/shotwell/src/MediaPage.vala" - case MEDIA_PAGE_SORT_BY_TITLE: -#line 7326 "MediaPage.c" - { -#line 964 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (ascending) { -#line 965 "/home/jens/Source/shotwell/src/MediaPage.vala" - (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 965 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = NULL; -#line 965 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 965 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 965 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = _thumbnail_title_ascending_comparator_comparator; -#line 965 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 965 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 7344 "MediaPage.c" - } else { -#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala" - (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = NULL; -#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = _thumbnail_title_descending_comparator_comparator; -#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 966 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 7360 "MediaPage.c" - } -#line 967 "/home/jens/Source/shotwell/src/MediaPage.vala" - (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); -#line 967 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate = NULL; -#line 967 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target = NULL; -#line 967 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target_destroy_notify = NULL; -#line 967 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate = _thumbnail_title_comparator_predicate_comparator_predicate; -#line 967 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target = NULL; -#line 967 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target_destroy_notify = NULL; -#line 968 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 7378 "MediaPage.c" - } -#line 962 "/home/jens/Source/shotwell/src/MediaPage.vala" - case MEDIA_PAGE_SORT_BY_EXPOSURE_DATE: -#line 7382 "MediaPage.c" - { -#line 971 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (ascending) { -#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala" - (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = NULL; -#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = _thumbnail_exposure_time_ascending_comparator_comparator; -#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 972 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 7400 "MediaPage.c" - } else { -#line 973 "/home/jens/Source/shotwell/src/MediaPage.vala" - (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 973 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = NULL; -#line 973 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 973 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 973 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = _thumbnail_exposure_time_desending_comparator_comparator; -#line 973 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 973 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 7416 "MediaPage.c" - } -#line 974 "/home/jens/Source/shotwell/src/MediaPage.vala" - (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); -#line 974 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate = NULL; -#line 974 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target = NULL; -#line 974 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target_destroy_notify = NULL; -#line 974 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate = _thumbnail_exposure_time_comparator_predicate_comparator_predicate; -#line 974 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target = NULL; -#line 974 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target_destroy_notify = NULL; -#line 975 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 7434 "MediaPage.c" - } -#line 962 "/home/jens/Source/shotwell/src/MediaPage.vala" - case MEDIA_PAGE_SORT_BY_RATING: -#line 7438 "MediaPage.c" - { -#line 978 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (ascending) { -#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" - (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = NULL; -#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = _thumbnail_rating_ascending_comparator_comparator; -#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 979 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 7456 "MediaPage.c" - } else { -#line 980 "/home/jens/Source/shotwell/src/MediaPage.vala" - (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 980 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = NULL; -#line 980 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 980 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 980 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = _thumbnail_rating_descending_comparator_comparator; -#line 980 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 980 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 7472 "MediaPage.c" - } -#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala" - (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); -#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate = NULL; -#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target = NULL; -#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target_destroy_notify = NULL; -#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate = _thumbnail_rating_comparator_predicate_comparator_predicate; -#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target = NULL; -#line 981 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target_destroy_notify = NULL; -#line 982 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 7490 "MediaPage.c" - } -#line 962 "/home/jens/Source/shotwell/src/MediaPage.vala" - case MEDIA_PAGE_SORT_BY_FILENAME: -#line 7494 "MediaPage.c" - { -#line 985 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (ascending) { -#line 986 "/home/jens/Source/shotwell/src/MediaPage.vala" - (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 986 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = NULL; -#line 986 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 986 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 986 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = _thumbnail_filename_ascending_comparator_comparator; -#line 986 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 986 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 7512 "MediaPage.c" - } else { -#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" - (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = NULL; -#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = _thumbnail_filename_descending_comparator_comparator; -#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 987 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 7528 "MediaPage.c" - } -#line 988 "/home/jens/Source/shotwell/src/MediaPage.vala" - (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); -#line 988 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate = NULL; -#line 988 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target = NULL; -#line 988 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target_destroy_notify = NULL; -#line 988 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate = _thumbnail_filename_comparator_predicate_comparator_predicate; -#line 988 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target = NULL; -#line 988 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target_destroy_notify = NULL; -#line 989 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 7546 "MediaPage.c" - } - default: - { - gchar* _tmp0_; - gchar* _tmp1_; -#line 992 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = g_strdup_printf ("%i", media_page_get_menu_sort_by (self)); -#line 992 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 992 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_debug ("MediaPage.vala:992: Unknown sort criteria: %s", _tmp1_); -#line 992 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_free0 (_tmp1_); -#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" - (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = NULL; -#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = _thumbnail_title_descending_comparator_comparator; -#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 993 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala" - (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); -#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate = NULL; -#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target = NULL; -#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target_destroy_notify = NULL; -#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate = _thumbnail_title_comparator_predicate_comparator_predicate; -#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target = NULL; -#line 994 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target_destroy_notify = NULL; -#line 995 "/home/jens/Source/shotwell/src/MediaPage.vala" - break; -#line 7590 "MediaPage.c" - } - } -#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _tmp2_; -#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = comparator; -#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4__target = comparator_target; -#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = predicate; -#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5__target = predicate_target; -#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_set_comparator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), _tmp4_, _tmp4__target, _tmp5_, _tmp5__target); -#line 998 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp3_); -#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala" - (predicate_target_destroy_notify == NULL) ? NULL : (predicate_target_destroy_notify (predicate_target), NULL); -#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate = NULL; -#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target = NULL; -#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala" - predicate_target_destroy_notify = NULL; -#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala" - (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator = NULL; -#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target = NULL; -#line 958 "/home/jens/Source/shotwell/src/MediaPage.vala" - comparator_target_destroy_notify = NULL; -#line 7625 "MediaPage.c" -} - - -void -media_page_sync_sort (MediaPage* self) -{ - gboolean sort_ascending = FALSE; - gint sort_by = 0; - gboolean _tmp0_ = FALSE; - gint _tmp1_ = 0; -#line 1001 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_get_config_photos_sort (self, &_tmp0_, &_tmp1_); -#line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" - sort_ascending = _tmp0_; -#line 1018 "/home/jens/Source/shotwell/src/MediaPage.vala" - sort_by = _tmp1_; -#line 1020 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_set_menu_sort_by (self, sort_by); -#line 1021 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_set_menu_sort_order (self, sort_ascending); -#line 1023 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_set_view_comparator (self, sort_by, sort_ascending); -#line 7650 "MediaPage.c" -} - - -static void -media_page_real_destroy (GtkWidget* base) -{ - MediaPage * self; -#line 1026 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_PAGE, MediaPage); -#line 1027 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_disconnect_slider (self); -#line 1029 "/home/jens/Source/shotwell/src/MediaPage.vala" - GTK_WIDGET_CLASS (media_page_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), gtk_widget_get_type (), GtkWidget)); -#line 7664 "MediaPage.c" -} - - -void -media_page_increase_zoom_level (MediaPage* self) -{ - MediaPageZoomSliderAssembly* _tmp0_; -#line 1032 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 1033 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = self->priv->connected_slider; -#line 1033 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp0_ != NULL) { -#line 7678 "MediaPage.c" - MediaPageZoomSliderAssembly* _tmp1_; -#line 1034 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = self->priv->connected_slider; -#line 1034 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_zoom_slider_assembly_increase_step (_tmp1_); -#line 7684 "MediaPage.c" - } else { - gint new_scale = 0; - gint _tmp2_; -#line 1036 "/home/jens/Source/shotwell/src/MediaPage.vala" - new_scale = media_page_compute_zoom_scale_increase (media_page_get_thumb_size (self)); -#line 1037 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_save_persistent_thumbnail_scale (self); -#line 1038 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = new_scale; -#line 1038 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_set_thumb_size (self, _tmp2_); -#line 7696 "MediaPage.c" - } -} - - -void -media_page_decrease_zoom_level (MediaPage* self) -{ - MediaPageZoomSliderAssembly* _tmp0_; -#line 1042 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 1043 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = self->priv->connected_slider; -#line 1043 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp0_ != NULL) { -#line 7711 "MediaPage.c" - MediaPageZoomSliderAssembly* _tmp1_; -#line 1044 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = self->priv->connected_slider; -#line 1044 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_zoom_slider_assembly_decrease_step (_tmp1_); -#line 7717 "MediaPage.c" - } else { - gint new_scale = 0; - gint _tmp2_; -#line 1046 "/home/jens/Source/shotwell/src/MediaPage.vala" - new_scale = media_page_compute_zoom_scale_decrease (media_page_get_thumb_size (self)); -#line 1047 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_save_persistent_thumbnail_scale (self); -#line 1048 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = new_scale; -#line 1048 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_set_thumb_size (self, _tmp2_); -#line 7729 "MediaPage.c" - } -} - - -static DataView* -media_page_real_create_thumbnail (MediaPage* self, - DataSource* source) -{ - DataView* result = NULL; - Thumbnail* _tmp0_; -#line 1052 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 1053 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = thumbnail_new (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), media_page_get_thumb_size (self)); -#line 1053 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_VIEW, DataView); -#line 1053 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7748 "MediaPage.c" -} - - -DataView* -media_page_create_thumbnail (MediaPage* self, - DataSource* source) -{ -#line 1052 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (IS_MEDIA_PAGE (self), NULL); -#line 1052 "/home/jens/Source/shotwell/src/MediaPage.vala" - return MEDIA_PAGE_GET_CLASS (self)->create_thumbnail (self, source); -#line 7760 "MediaPage.c" -} - - -void -media_page_set_thumb_size (MediaPage* self, - gint new_scale) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint _tmp4_; - CheckerboardLayout* _tmp5_; - CheckerboardLayout* _tmp6_; - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; - ViewCollection* _tmp9_; - ViewCollection* _tmp10_; - GValue _tmp11_ = {0}; - ViewCollection* _tmp12_; - ViewCollection* _tmp13_; - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; - gint _tmp17_; -#line 1058 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (IS_MEDIA_PAGE (self)); -#line 1059 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (media_page_get_thumb_size (self) == new_scale) { -#line 1059 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = TRUE; -#line 7792 "MediaPage.c" - } else { -#line 1059 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = !page_is_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 7796 "MediaPage.c" - } -#line 1059 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp0_) { -#line 1060 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 7802 "MediaPage.c" - } -#line 1062 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = thumbnail_get_MIN_SCALE (); -#line 1062 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = _tmp1_; -#line 1062 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = thumbnail_get_MAX_SCALE (); -#line 1062 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _tmp3_; -#line 1062 "/home/jens/Source/shotwell/src/MediaPage.vala" - new_scale = CLAMP (new_scale, _tmp2_, _tmp4_); -#line 1063 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = checkerboard_page_get_checkerboard_layout (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 1063 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _tmp5_; -#line 1063 "/home/jens/Source/shotwell/src/MediaPage.vala" - checkerboard_layout_set_scale (_tmp6_, new_scale); -#line 1063 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp6_); -#line 1066 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1066 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = _tmp7_; -#line 1066 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1066 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp8_); -#line 1067 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1067 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = _tmp9_; -#line 1067 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_value_init (&_tmp11_, G_TYPE_INT); -#line 1067 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_value_set_int (&_tmp11_, new_scale); -#line 1067 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_COLLECTION, DataCollection), THUMBNAIL_PROP_SIZE, &_tmp11_, NULL, NULL); -#line 1067 "/home/jens/Source/shotwell/src/MediaPage.vala" - G_IS_VALUE (&_tmp11_) ? (g_value_unset (&_tmp11_), NULL) : NULL; -#line 1067 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp10_); -#line 1068 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1068 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = _tmp12_; -#line 1068 "/home/jens/Source/shotwell/src/MediaPage.vala" - data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1068 "/home/jens/Source/shotwell/src/MediaPage.vala" - _data_collection_unref0 (_tmp13_); -#line 1070 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = thumbnail_get_MAX_SCALE (); -#line 1070 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = _tmp14_; -#line 1070 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", new_scale < _tmp15_); -#line 1071 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = thumbnail_get_MIN_SCALE (); -#line 1071 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp17_ = _tmp16_; -#line 1071 "/home/jens/Source/shotwell/src/MediaPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", new_scale > _tmp17_); -#line 7864 "MediaPage.c" -} - - -gint -media_page_get_thumb_size (MediaPage* self) -{ - gint result = 0; - CheckerboardLayout* _tmp0_; - CheckerboardLayout* _tmp1_; - gboolean _tmp2_; - CheckerboardLayout* _tmp7_; - CheckerboardLayout* _tmp8_; - gint _tmp9_; -#line 1074 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (IS_MEDIA_PAGE (self), 0); -#line 1075 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = checkerboard_page_get_checkerboard_layout (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 1075 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 1075 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = checkerboard_layout_get_scale (_tmp1_) <= 0; -#line 1075 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp1_); -#line 1075 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (_tmp2_) { -#line 7890 "MediaPage.c" - CheckerboardLayout* _tmp3_; - CheckerboardLayout* _tmp4_; - ConfigFacade* _tmp5_; - ConfigFacade* _tmp6_; -#line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = checkerboard_page_get_checkerboard_layout (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _tmp3_; -#line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = config_facade_get_instance (); -#line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = _tmp5_; -#line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala" - checkerboard_layout_set_scale (_tmp4_, configuration_facade_get_photo_thumbnail_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp6_); -#line 1076 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp4_); -#line 7909 "MediaPage.c" - } -#line 1078 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = checkerboard_page_get_checkerboard_layout (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 1078 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = _tmp7_; -#line 1078 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = checkerboard_layout_get_scale (_tmp8_); -#line 1078 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp8_); -#line 1078 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = _tmp9_; -#line 1078 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7923 "MediaPage.c" -} - - -static gboolean -_media_page_zoom_slider_assembly_on_zoom_out_pressed_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self) -{ - gboolean result; - result = media_page_zoom_slider_assembly_on_zoom_out_pressed ((MediaPageZoomSliderAssembly*) self, event); -#line 144 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7936 "MediaPage.c" -} - - -static void -_media_page_zoom_slider_assembly_on_slider_changed_gtk_range_value_changed (GtkRange* _sender, - gpointer self) -{ -#line 155 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_zoom_slider_assembly_on_slider_changed ((MediaPageZoomSliderAssembly*) self); -#line 7946 "MediaPage.c" -} - - -static gboolean -_media_page_zoom_slider_assembly_on_zoom_in_pressed_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self) -{ - gboolean result; - result = media_page_zoom_slider_assembly_on_zoom_in_pressed ((MediaPageZoomSliderAssembly*) self, event); -#line 168 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 7959 "MediaPage.c" -} - - -MediaPageZoomSliderAssembly* -media_page_zoom_slider_assembly_construct (GType object_type) -{ - MediaPageZoomSliderAssembly * self = NULL; - GtkBox* zoom_group = NULL; - GtkBox* _tmp0_; - GtkImage* zoom_out = NULL; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; - GtkImage* _tmp3_; - GtkImage* _tmp4_; - GtkEventBox* zoom_out_box = NULL; - GtkEventBox* _tmp5_; - gint persisted_scale = 0; - ConfigFacade* _tmp6_; - ConfigFacade* _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint _tmp10_; - GtkAdjustment* _tmp11_; - GtkAdjustment* _tmp12_; - GtkScale* _tmp13_; - GtkScale* _tmp14_; - GtkScale* _tmp15_; - GtkScale* _tmp16_; - GtkScale* _tmp17_; - GtkScale* _tmp18_; - GtkImage* zoom_in = NULL; - GdkPixbuf* _tmp19_; - GdkPixbuf* _tmp20_; - GtkImage* _tmp21_; - GtkImage* _tmp22_; - GtkEventBox* zoom_in_box = NULL; - GtkEventBox* _tmp23_; -#line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = (MediaPageZoomSliderAssembly*) g_object_new (object_type, NULL); -#line 136 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); -#line 136 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_object_ref_sink (_tmp0_); -#line 136 "/home/jens/Source/shotwell/src/MediaPage.vala" - zoom_group = _tmp0_; -#line 138 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = resources_load_icon (RESOURCES_ICON_ZOOM_OUT, RESOURCES_ICON_ZOOM_SCALE); -#line 138 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = _tmp1_; -#line 138 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = (GtkImage*) gtk_image_new_from_pixbuf (_tmp2_); -#line 138 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_object_ref_sink (_tmp3_); -#line 138 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = _tmp3_; -#line 138 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp2_); -#line 138 "/home/jens/Source/shotwell/src/MediaPage.vala" - zoom_out = _tmp4_; -#line 140 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = (GtkEventBox*) gtk_event_box_new (); -#line 140 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_object_ref_sink (_tmp5_); -#line 140 "/home/jens/Source/shotwell/src/MediaPage.vala" - zoom_out_box = _tmp5_; -#line 141 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_event_box_set_above_child (zoom_out_box, TRUE); -#line 142 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_event_box_set_visible_window (zoom_out_box, FALSE); -#line 143 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (zoom_out_box, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (zoom_out, gtk_widget_get_type (), GtkWidget)); -#line 144 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (zoom_out_box, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _media_page_zoom_slider_assembly_on_zoom_out_pressed_gtk_widget_button_press_event, self, 0); -#line 146 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_box_pack_start (zoom_group, G_TYPE_CHECK_INSTANCE_CAST (zoom_out_box, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 150 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp6_ = config_facade_get_instance (); -#line 150 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp7_ = _tmp6_; -#line 150 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp8_ = configuration_facade_get_photo_thumbnail_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 150 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp7_); -#line 150 "/home/jens/Source/shotwell/src/MediaPage.vala" - persisted_scale = _tmp8_; -#line 151 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp9_ = thumbnail_get_MAX_SCALE (); -#line 151 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp10_ = _tmp9_; -#line 151 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp11_ = gtk_adjustment_new (media_page_zoom_slider_assembly_scale_to_slider (persisted_scale), (gdouble) 0, media_page_zoom_slider_assembly_scale_to_slider (_tmp10_), (gdouble) 1, (gdouble) 10, (gdouble) 0); -#line 151 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_object_ref_sink (_tmp11_); -#line 151 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (self->priv->adjustment); -#line 151 "/home/jens/Source/shotwell/src/MediaPage.vala" - self->priv->adjustment = _tmp11_; -#line 154 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp12_ = self->priv->adjustment; -#line 154 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp13_ = (GtkScale*) gtk_scale_new (GTK_ORIENTATION_HORIZONTAL, _tmp12_); -#line 154 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_object_ref_sink (_tmp13_); -#line 154 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (self->priv->slider); -#line 154 "/home/jens/Source/shotwell/src/MediaPage.vala" - self->priv->slider = _tmp13_; -#line 155 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp14_ = self->priv->slider; -#line 155 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _media_page_zoom_slider_assembly_on_slider_changed_gtk_range_value_changed, self, 0); -#line 156 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp15_ = self->priv->slider; -#line 156 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_scale_set_draw_value (_tmp15_, FALSE); -#line 157 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp16_ = self->priv->slider; -#line 157 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), 200, -1); -#line 158 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp17_ = self->priv->slider; -#line 158 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), _ ("Adjust the size of the thumbnails")); -#line 160 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp18_ = self->priv->slider; -#line 160 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_box_pack_start (zoom_group, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 162 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp19_ = resources_load_icon (RESOURCES_ICON_ZOOM_IN, RESOURCES_ICON_ZOOM_SCALE); -#line 162 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp20_ = _tmp19_; -#line 162 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp21_ = (GtkImage*) gtk_image_new_from_pixbuf (_tmp20_); -#line 162 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_object_ref_sink (_tmp21_); -#line 162 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp22_ = _tmp21_; -#line 162 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (_tmp20_); -#line 162 "/home/jens/Source/shotwell/src/MediaPage.vala" - zoom_in = _tmp22_; -#line 164 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp23_ = (GtkEventBox*) gtk_event_box_new (); -#line 164 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_object_ref_sink (_tmp23_); -#line 164 "/home/jens/Source/shotwell/src/MediaPage.vala" - zoom_in_box = _tmp23_; -#line 165 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_event_box_set_above_child (zoom_in_box, TRUE); -#line 166 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_event_box_set_visible_window (zoom_in_box, FALSE); -#line 167 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (zoom_in_box, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (zoom_in, gtk_widget_get_type (), GtkWidget)); -#line 168 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (zoom_in_box, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _media_page_zoom_slider_assembly_on_zoom_in_pressed_gtk_widget_button_press_event, self, 0); -#line 170 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_box_pack_start (zoom_group, G_TYPE_CHECK_INSTANCE_CAST (zoom_in_box, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 172 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (zoom_group, gtk_widget_get_type (), GtkWidget)); -#line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (zoom_in_box); -#line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (zoom_in); -#line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (zoom_out_box); -#line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (zoom_out); -#line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (zoom_group); -#line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" - return self; -#line 8131 "MediaPage.c" -} - - -MediaPageZoomSliderAssembly* -media_page_zoom_slider_assembly_new (void) -{ -#line 135 "/home/jens/Source/shotwell/src/MediaPage.vala" - return media_page_zoom_slider_assembly_construct (MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY); -#line 8140 "MediaPage.c" -} - - -gdouble -media_page_zoom_slider_assembly_scale_to_slider (gint value) -{ - gdouble result = 0.0; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _tmp5_; -#line 176 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = thumbnail_get_MIN_SCALE (); -#line 176 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 176 "/home/jens/Source/shotwell/src/MediaPage.vala" - _vala_assert (value >= _tmp1_, "value >= Thumbnail.MIN_SCALE"); -#line 177 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = thumbnail_get_MAX_SCALE (); -#line 177 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _tmp2_; -#line 177 "/home/jens/Source/shotwell/src/MediaPage.vala" - _vala_assert (value <= _tmp3_, "value <= Thumbnail.MAX_SCALE"); -#line 179 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = thumbnail_get_MIN_SCALE (); -#line 179 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = _tmp4_; -#line 179 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = (gdouble) ((value - _tmp5_) / MEDIA_PAGE_SLIDER_STEPPING); -#line 179 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 8174 "MediaPage.c" -} - - -gint -media_page_zoom_slider_assembly_slider_to_scale (gdouble value) -{ - gint result = 0; - gint res = 0; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _tmp5_; -#line 183 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = thumbnail_get_MIN_SCALE (); -#line 183 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = _tmp0_; -#line 183 "/home/jens/Source/shotwell/src/MediaPage.vala" - res = ((gint) (value * MEDIA_PAGE_SLIDER_STEPPING)) + _tmp1_; -#line 185 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = thumbnail_get_MIN_SCALE (); -#line 185 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp3_ = _tmp2_; -#line 185 "/home/jens/Source/shotwell/src/MediaPage.vala" - _vala_assert (res >= _tmp3_, "res >= Thumbnail.MIN_SCALE"); -#line 186 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp4_ = thumbnail_get_MAX_SCALE (); -#line 186 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp5_ = _tmp4_; -#line 186 "/home/jens/Source/shotwell/src/MediaPage.vala" - _vala_assert (res <= _tmp5_, "res <= Thumbnail.MAX_SCALE"); -#line 188 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = res; -#line 188 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 8211 "MediaPage.c" -} - - -static gboolean -media_page_zoom_slider_assembly_on_zoom_out_pressed (MediaPageZoomSliderAssembly* self, - GdkEventButton* event) -{ - gboolean result = FALSE; -#line 191 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self), FALSE); -#line 191 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 192 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_zoom_slider_assembly_snap_to_min (self); -#line 193 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = TRUE; -#line 193 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 8230 "MediaPage.c" -} - - -static gboolean -media_page_zoom_slider_assembly_on_zoom_in_pressed (MediaPageZoomSliderAssembly* self, - GdkEventButton* event) -{ - gboolean result = FALSE; -#line 196 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self), FALSE); -#line 196 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 197 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_zoom_slider_assembly_snap_to_max (self); -#line 198 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = TRUE; -#line 198 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 8249 "MediaPage.c" -} - - -static void -media_page_zoom_slider_assembly_on_slider_changed (MediaPageZoomSliderAssembly* self) -{ -#line 201 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self)); -#line 202 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_signal_emit (self, media_page_zoom_slider_assembly_signals[MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_ZOOM_CHANGED_SIGNAL], 0); -#line 8260 "MediaPage.c" -} - - -void -media_page_zoom_slider_assembly_snap_to_min (MediaPageZoomSliderAssembly* self) -{ - GtkScale* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 205 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self)); -#line 206 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = self->priv->slider; -#line 206 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = thumbnail_get_MIN_SCALE (); -#line 206 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = _tmp1_; -#line 206 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), media_page_zoom_slider_assembly_scale_to_slider (_tmp2_)); -#line 8280 "MediaPage.c" -} - - -void -media_page_zoom_slider_assembly_snap_to_max (MediaPageZoomSliderAssembly* self) -{ - GtkScale* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 209 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self)); -#line 210 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = self->priv->slider; -#line 210 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = thumbnail_get_MAX_SCALE (); -#line 210 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = _tmp1_; -#line 210 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), media_page_zoom_slider_assembly_scale_to_slider (_tmp2_)); -#line 8300 "MediaPage.c" -} - - -void -media_page_zoom_slider_assembly_increase_step (MediaPageZoomSliderAssembly* self) -{ - gint new_scale = 0; - gint _tmp0_; - GtkScale* _tmp1_; - gint _tmp2_; -#line 213 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self)); -#line 214 "/home/jens/Source/shotwell/src/MediaPage.vala" - new_scale = media_page_compute_zoom_scale_increase (media_page_zoom_slider_assembly_get_scale (self)); -#line 216 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = new_scale; -#line 216 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (media_page_zoom_slider_assembly_get_scale (self) == _tmp0_) { -#line 217 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 8321 "MediaPage.c" - } -#line 219 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = self->priv->slider; -#line 219 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = new_scale; -#line 219 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange), media_page_zoom_slider_assembly_scale_to_slider (_tmp2_)); -#line 8329 "MediaPage.c" -} - - -void -media_page_zoom_slider_assembly_decrease_step (MediaPageZoomSliderAssembly* self) -{ - gint new_scale = 0; - gint _tmp0_; - GtkScale* _tmp1_; - gint _tmp2_; -#line 222 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self)); -#line 223 "/home/jens/Source/shotwell/src/MediaPage.vala" - new_scale = media_page_compute_zoom_scale_decrease (media_page_zoom_slider_assembly_get_scale (self)); -#line 225 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = new_scale; -#line 225 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (media_page_zoom_slider_assembly_get_scale (self) == _tmp0_) { -#line 226 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 8350 "MediaPage.c" - } -#line 228 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp1_ = self->priv->slider; -#line 228 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp2_ = new_scale; -#line 228 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange), media_page_zoom_slider_assembly_scale_to_slider (_tmp2_)); -#line 8358 "MediaPage.c" -} - - -gint -media_page_zoom_slider_assembly_get_scale (MediaPageZoomSliderAssembly* self) -{ - gint result = 0; - GtkScale* _tmp0_; -#line 231 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_val_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self), 0); -#line 232 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = self->priv->slider; -#line 232 "/home/jens/Source/shotwell/src/MediaPage.vala" - result = media_page_zoom_slider_assembly_slider_to_scale (gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange))); -#line 232 "/home/jens/Source/shotwell/src/MediaPage.vala" - return result; -#line 8375 "MediaPage.c" -} - - -void -media_page_zoom_slider_assembly_set_scale (MediaPageZoomSliderAssembly* self, - gint scale) -{ - GtkScale* _tmp0_; -#line 235 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_return_if_fail (MEDIA_PAGE_IS_ZOOM_SLIDER_ASSEMBLY (self)); -#line 236 "/home/jens/Source/shotwell/src/MediaPage.vala" - if (media_page_zoom_slider_assembly_get_scale (self) == scale) { -#line 237 "/home/jens/Source/shotwell/src/MediaPage.vala" - return; -#line 8390 "MediaPage.c" - } -#line 239 "/home/jens/Source/shotwell/src/MediaPage.vala" - _tmp0_ = self->priv->slider; -#line 239 "/home/jens/Source/shotwell/src/MediaPage.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), media_page_zoom_slider_assembly_scale_to_slider (scale)); -#line 8396 "MediaPage.c" -} - - -static void -media_page_zoom_slider_assembly_class_init (MediaPageZoomSliderAssemblyClass * klass) -{ -#line 129 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_zoom_slider_assembly_parent_class = g_type_class_peek_parent (klass); -#line 129 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_type_class_add_private (klass, sizeof (MediaPageZoomSliderAssemblyPrivate)); -#line 129 "/home/jens/Source/shotwell/src/MediaPage.vala" - G_OBJECT_CLASS (klass)->finalize = media_page_zoom_slider_assembly_finalize; -#line 129 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_zoom_slider_assembly_signals[MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_ZOOM_CHANGED_SIGNAL] = g_signal_new ("zoom-changed", MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 8411 "MediaPage.c" -} - - -static void -media_page_zoom_slider_assembly_instance_init (MediaPageZoomSliderAssembly * self) -{ -#line 129 "/home/jens/Source/shotwell/src/MediaPage.vala" - self->priv = MEDIA_PAGE_ZOOM_SLIDER_ASSEMBLY_GET_PRIVATE (self); -#line 8420 "MediaPage.c" -} - - -static void -media_page_zoom_slider_assembly_finalize (GObject * obj) -{ - MediaPageZoomSliderAssembly * self; -#line 129 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, MEDIA_PAGE_TYPE_ZOOM_SLIDER_ASSEMBLY, MediaPageZoomSliderAssembly); -#line 130 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (self->priv->slider); -#line 131 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (self->priv->adjustment); -#line 129 "/home/jens/Source/shotwell/src/MediaPage.vala" - G_OBJECT_CLASS (media_page_zoom_slider_assembly_parent_class)->finalize (obj); -#line 8436 "MediaPage.c" -} - - -GType -media_page_zoom_slider_assembly_get_type (void) -{ - static volatile gsize media_page_zoom_slider_assembly_type_id__volatile = 0; - if (g_once_init_enter (&media_page_zoom_slider_assembly_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MediaPageZoomSliderAssemblyClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_page_zoom_slider_assembly_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaPageZoomSliderAssembly), 0, (GInstanceInitFunc) media_page_zoom_slider_assembly_instance_init, NULL }; - GType media_page_zoom_slider_assembly_type_id; - media_page_zoom_slider_assembly_type_id = g_type_register_static (gtk_tool_item_get_type (), "MediaPageZoomSliderAssembly", &g_define_type_info, 0); - g_once_init_leave (&media_page_zoom_slider_assembly_type_id__volatile, media_page_zoom_slider_assembly_type_id); - } - return media_page_zoom_slider_assembly_type_id__volatile; -} - - -static void -media_page_class_init (MediaPageClass * klass) -{ -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - media_page_parent_class = g_type_class_peek_parent (klass); -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - g_type_class_add_private (klass, sizeof (MediaPagePrivate)); -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) media_page_real_init_collect_ui_filenames; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) media_page_real_add_actions; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) media_page_real_remove_actions; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) media_page_real_update_actions; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((CheckerboardPageClass *) klass)->get_view_tracker = (CoreViewTracker* (*) (CheckerboardPage *)) media_page_real_get_view_tracker; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((PageClass *) klass)->on_mousewheel_up = (gboolean (*) (Page *, GdkEventScroll*)) media_page_real_on_mousewheel_up; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((PageClass *) klass)->on_mousewheel_down = (gboolean (*) (Page *, GdkEventScroll*)) media_page_real_on_mousewheel_down; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((PageClass *) klass)->on_app_key_pressed = (gboolean (*) (Page *, GdkEventKey*)) media_page_real_on_app_key_pressed; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((PageClass *) klass)->switched_to = (void (*) (Page *)) media_page_real_switched_to; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((PageClass *) klass)->switching_from = (void (*) (Page *)) media_page_real_switching_from; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_zoom_changed = (void (*) (MediaPage *)) media_page_real_on_zoom_changed; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_export = (void (*) (MediaPage *)) media_page_real_on_export; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_increase_size = (void (*) (MediaPage *)) media_page_real_on_increase_size; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_decrease_size = (void (*) (MediaPage *)) media_page_real_on_decrease_size; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_increase_rating = (void (*) (MediaPage *)) media_page_real_on_increase_rating; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_decrease_rating = (void (*) (MediaPage *)) media_page_real_on_decrease_rating; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_set_rating = (void (*) (MediaPage *, Rating)) media_page_real_on_set_rating; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_rate_rejected = (void (*) (MediaPage *)) media_page_real_on_rate_rejected; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_rate_unrated = (void (*) (MediaPage *)) media_page_real_on_rate_unrated; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_rate_one = (void (*) (MediaPage *)) media_page_real_on_rate_one; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_rate_two = (void (*) (MediaPage *)) media_page_real_on_rate_two; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_rate_three = (void (*) (MediaPage *)) media_page_real_on_rate_three; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_rate_four = (void (*) (MediaPage *)) media_page_real_on_rate_four; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_rate_five = (void (*) (MediaPage *)) media_page_real_on_rate_five; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_move_to_trash = (void (*) (MediaPage *)) media_page_real_on_move_to_trash; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_edit_title = (void (*) (MediaPage *)) media_page_real_on_edit_title; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_edit_comment = (void (*) (MediaPage *)) media_page_real_on_edit_comment; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_display_titles = (void (*) (MediaPage *, GSimpleAction*, GVariant*)) media_page_real_on_display_titles; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_display_comments = (void (*) (MediaPage *, GSimpleAction*, GVariant*)) media_page_real_on_display_comments; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_display_ratings = (void (*) (MediaPage *, GSimpleAction*, GVariant*)) media_page_real_on_display_ratings; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_display_tags = (void (*) (MediaPage *, GSimpleAction*, GVariant*)) media_page_real_on_display_tags; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) media_page_real_get_config_photos_sort; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) media_page_real_set_config_photos_sort; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->on_sort_changed = (void (*) (MediaPage *, GSimpleAction*, GVariant*)) media_page_real_on_sort_changed; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->developer_changed = (void (*) (MediaPage *, RawDeveloper)) media_page_real_developer_changed; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((CheckerboardPageClass *) klass)->set_display_titles = (void (*) (CheckerboardPage *, gboolean)) media_page_real_set_display_titles; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((CheckerboardPageClass *) klass)->set_display_comments = (void (*) (CheckerboardPage *, gboolean)) media_page_real_set_display_comments; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((GtkWidgetClass *) klass)->destroy = (void (*) (GtkWidget *)) media_page_real_destroy; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - ((MediaPageClass *) klass)->create_thumbnail = (DataView* (*) (MediaPage *, DataSource*)) media_page_real_create_thumbnail; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - G_OBJECT_CLASS (klass)->finalize = media_page_finalize; -#line 8541 "MediaPage.c" -} - - -static void -media_page_instance_init (MediaPage * self) -{ -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - self->priv = MEDIA_PAGE_GET_PRIVATE (self); -#line 243 "/home/jens/Source/shotwell/src/MediaPage.vala" - self->priv->connected_slider = NULL; -#line 244 "/home/jens/Source/shotwell/src/MediaPage.vala" - self->priv->dnd_handler = NULL; -#line 8554 "MediaPage.c" -} - - -static void -media_page_finalize (GObject * obj) -{ - MediaPage * self; -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_PAGE, MediaPage); -#line 243 "/home/jens/Source/shotwell/src/MediaPage.vala" - _g_object_unref0 (self->priv->connected_slider); -#line 244 "/home/jens/Source/shotwell/src/MediaPage.vala" - _drag_and_drop_handler_unref0 (self->priv->dnd_handler); -#line 245 "/home/jens/Source/shotwell/src/MediaPage.vala" - _core_tracker_unref0 (self->priv->tracker); -#line 112 "/home/jens/Source/shotwell/src/MediaPage.vala" - G_OBJECT_CLASS (media_page_parent_class)->finalize (obj); -#line 8572 "MediaPage.c" -} - - -GType -media_page_get_type (void) -{ - static volatile gsize media_page_type_id__volatile = 0; - if (g_once_init_enter (&media_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MediaPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaPage), 0, (GInstanceInitFunc) media_page_instance_init, NULL }; - GType media_page_type_id; - media_page_type_id = g_type_register_static (TYPE_CHECKERBOARD_PAGE, "MediaPage", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&media_page_type_id__volatile, media_page_type_id); - } - return media_page_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/MediaPage.vala b/src/MediaPage.vala index eeb79e6..8316906 100644 --- a/src/MediaPage.vala +++ b/src/MediaPage.vala @@ -5,10 +5,6 @@ */ public class MediaSourceItem : CheckerboardItem { - private static Gdk.Pixbuf basis_sprocket_pixbuf = null; - private static Gdk.Pixbuf current_sprocket_pixbuf = null; - - private bool enable_sprockets = false; private string? natural_collation_key = null; // preserve the same constructor arguments and semantics as CheckerboardItem so that we're @@ -16,85 +12,8 @@ public class MediaSourceItem : CheckerboardItem { public MediaSourceItem(ThumbnailSource source, Dimensions initial_pixbuf_dim, string title, string? comment, bool marked_up = false, Pango.Alignment alignment = Pango.Alignment.LEFT) { base(source, initial_pixbuf_dim, title, comment, marked_up, alignment); - if (basis_sprocket_pixbuf == null) - basis_sprocket_pixbuf = Resources.load_icon("sprocket.png", 0); - } - - protected override void paint_image(Cairo.Context ctx, Gdk.Pixbuf pixbuf, - Gdk.Point origin) { - Dimensions pixbuf_dim = Dimensions.for_pixbuf(pixbuf); - // sprocket geometry calculation (and possible adjustment) has to occur before we call - // base.paint_image( ) because the base-class method needs the correct trinket horizontal - // offset - - if (!enable_sprockets) { - set_horizontal_trinket_offset(0); - } else { - double reduction_factor = ((double) pixbuf_dim.major_axis()) / - ((double) ThumbnailCache.Size.LARGEST); - int reduced_size = (int) (reduction_factor * basis_sprocket_pixbuf.width); - - if (current_sprocket_pixbuf == null || reduced_size != current_sprocket_pixbuf.width) { - current_sprocket_pixbuf = basis_sprocket_pixbuf.scale_simple(reduced_size, - reduced_size, Gdk.InterpType.HYPER); - } - - set_horizontal_trinket_offset(current_sprocket_pixbuf.width); - } - - base.paint_image(ctx, pixbuf, origin); - - if (enable_sprockets) { - paint_sprockets(ctx, origin, pixbuf_dim); - } - } - - protected void paint_one_sprocket(Cairo.Context ctx, Gdk.Point origin) { - ctx.save(); - Gdk.cairo_set_source_pixbuf(ctx, current_sprocket_pixbuf, origin.x, origin.y); - ctx.paint(); - ctx.restore(); } - protected void paint_sprockets(Cairo.Context ctx, Gdk.Point item_origin, - Dimensions item_dimensions) { - int num_sprockets = item_dimensions.height / current_sprocket_pixbuf.height; - - Gdk.Point left_paint_location = item_origin; - Gdk.Point right_paint_location = item_origin; - right_paint_location.x += (item_dimensions.width - current_sprocket_pixbuf.width); - for (int i = 0; i < num_sprockets; i++) { - paint_one_sprocket(ctx, left_paint_location); - paint_one_sprocket(ctx, right_paint_location); - - left_paint_location.y += current_sprocket_pixbuf.height; - right_paint_location.y += current_sprocket_pixbuf.height; - } - - int straggler_pixels = item_dimensions.height % current_sprocket_pixbuf.height; - if (straggler_pixels > 0) { - ctx.save(); - - Gdk.cairo_set_source_pixbuf(ctx, current_sprocket_pixbuf, left_paint_location.x, - left_paint_location.y); - ctx.rectangle(left_paint_location.x, left_paint_location.y, - current_sprocket_pixbuf.get_width(), straggler_pixels); - ctx.fill(); - - Gdk.cairo_set_source_pixbuf(ctx, current_sprocket_pixbuf, right_paint_location.x, - right_paint_location.y); - ctx.rectangle(right_paint_location.x, right_paint_location.y, - current_sprocket_pixbuf.get_width(), straggler_pixels); - ctx.fill(); - - ctx.restore(); - } - } - - public void set_enable_sprockets(bool enable_sprockets) { - this.enable_sprockets = enable_sprockets; - } - public new void set_title(string text, bool marked_up = false, Pango.Alignment alignment = Pango.Alignment.LEFT) { base.set_title(text, marked_up, alignment); @@ -135,8 +54,7 @@ public abstract class MediaPage : CheckerboardPage { public ZoomSliderAssembly() { Gtk.Box zoom_group = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0); - Gtk.Image zoom_out = new Gtk.Image.from_pixbuf(Resources.load_icon( - Resources.ICON_ZOOM_OUT, Resources.ICON_ZOOM_SCALE)); + Gtk.Image zoom_out = new Gtk.Image.from_icon_name("image-zoom-out-symbolic", Gtk.IconSize.SMALL_TOOLBAR); Gtk.EventBox zoom_out_box = new Gtk.EventBox(); zoom_out_box.set_above_child(true); zoom_out_box.set_visible_window(false); @@ -159,8 +77,7 @@ public abstract class MediaPage : CheckerboardPage { zoom_group.pack_start(slider, false, false, 0); - Gtk.Image zoom_in = new Gtk.Image.from_pixbuf(Resources.load_icon( - Resources.ICON_ZOOM_IN, Resources.ICON_ZOOM_SCALE)); + Gtk.Image zoom_in = new Gtk.Image.from_icon_name("image-zoom-in-symbolic", Gtk.IconSize.SMALL_TOOLBAR); Gtk.EventBox zoom_in_box = new Gtk.EventBox(); zoom_in_box.set_above_child(true); zoom_in_box.set_visible_window(false); diff --git a/src/MediaViewTracker.c b/src/MediaViewTracker.c deleted file mode 100644 index 92cab3d..0000000 --- a/src/MediaViewTracker.c +++ /dev/null @@ -1,1004 +0,0 @@ -/* MediaViewTracker.c generated by valac 0.40.4, the Vala compiler - * generated from MediaViewTracker.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include - - -#define CORE_TYPE_TRACKER (core_tracker_get_type ()) -#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) -#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) -#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) -#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) -#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) - -typedef struct _CoreTracker CoreTracker; -typedef struct _CoreTrackerClass CoreTrackerClass; -typedef struct _CoreTrackerPrivate CoreTrackerPrivate; - -#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) -#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) -#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) -#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) -#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) -#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) - -typedef struct _CoreViewTracker CoreViewTracker; -typedef struct _CoreViewTrackerClass CoreViewTrackerClass; -typedef struct _CoreViewTrackerPrivate CoreViewTrackerPrivate; - -#define TYPE_MEDIA_VIEW_TRACKER (media_view_tracker_get_type ()) -#define MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTracker)) -#define MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass)) -#define IS_MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_VIEW_TRACKER)) -#define IS_MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_VIEW_TRACKER)) -#define MEDIA_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass)) - -typedef struct _MediaViewTracker MediaViewTracker; -typedef struct _MediaViewTrackerClass MediaViewTrackerClass; -typedef struct _MediaViewTrackerPrivate MediaViewTrackerPrivate; - -#define TYPE_MEDIA_ACCUMULATOR (media_accumulator_get_type ()) -#define MEDIA_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_ACCUMULATOR, MediaAccumulator)) -#define MEDIA_ACCUMULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_ACCUMULATOR, MediaAccumulatorClass)) -#define IS_MEDIA_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_ACCUMULATOR)) -#define IS_MEDIA_ACCUMULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_ACCUMULATOR)) -#define MEDIA_ACCUMULATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_ACCUMULATOR, MediaAccumulatorClass)) - -typedef struct _MediaAccumulator MediaAccumulator; -typedef struct _MediaAccumulatorClass MediaAccumulatorClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; - -#define CORE_TYPE_TRACKER_ACCUMULATOR (core_tracker_accumulator_get_type ()) -#define CORE_TRACKER_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator)) -#define CORE_IS_TRACKER_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER_ACCUMULATOR)) -#define CORE_TRACKER_ACCUMULATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulatorIface)) - -typedef struct _CoreTrackerAccumulator CoreTrackerAccumulator; -typedef struct _CoreTrackerAccumulatorIface CoreTrackerAccumulatorIface; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; -typedef struct _MediaAccumulatorPrivate MediaAccumulatorPrivate; -enum { - MEDIA_ACCUMULATOR_0_PROPERTY, - MEDIA_ACCUMULATOR_NUM_PROPERTIES -}; -static GParamSpec* media_accumulator_properties[MEDIA_ACCUMULATOR_NUM_PROPERTIES]; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_FLAGGABLE (flaggable_get_type ()) -#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable)) -#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE)) -#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface)) - -typedef struct _Flaggable Flaggable; -typedef struct _FlaggableIface FlaggableIface; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _CoreTracker { - GTypeInstance parent_instance; - volatile int ref_count; - CoreTrackerPrivate * priv; -}; - -struct _CoreTrackerClass { - GTypeClass parent_class; - void (*finalize) (CoreTracker *self); - void (*updated) (CoreTracker* self); -}; - -struct _CoreViewTracker { - CoreTracker parent_instance; - CoreViewTrackerPrivate * priv; -}; - -struct _CoreViewTrackerClass { - CoreTrackerClass parent_class; -}; - -struct _MediaViewTracker { - CoreViewTracker parent_instance; - MediaViewTrackerPrivate * priv; - MediaAccumulator* all; - MediaAccumulator* visible; - MediaAccumulator* selected; -}; - -struct _MediaViewTrackerClass { - CoreViewTrackerClass parent_class; -}; - -struct _CoreTrackerAccumulatorIface { - GTypeInterface parent_iface; - gboolean (*include) (CoreTrackerAccumulator* self, DataObject* object); - gboolean (*uninclude) (CoreTrackerAccumulator* self, DataObject* object); - gboolean (*altered) (CoreTrackerAccumulator* self, DataObject* object, Alteration* alteration); -}; - -struct _MediaAccumulator { - GObject parent_instance; - MediaAccumulatorPrivate * priv; - gint total; - gint photos; - gint videos; - gint raw; - gint flagged; -}; - -struct _MediaAccumulatorClass { - GObjectClass parent_class; -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _FlaggableIface { - GTypeInterface parent_iface; - gboolean (*is_flagged) (Flaggable* self); - void (*mark_flagged) (Flaggable* self); - void (*mark_unflagged) (Flaggable* self); -}; - - -static gpointer media_view_tracker_parent_class = NULL; -static gpointer media_accumulator_parent_class = NULL; -static CoreTrackerAccumulatorIface * media_accumulator_core_tracker_accumulator_parent_iface = NULL; - -gpointer core_tracker_ref (gpointer instance); -void core_tracker_unref (gpointer instance); -GParamSpec* core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void core_value_set_tracker (GValue* value, - gpointer v_object); -void core_value_take_tracker (GValue* value, - gpointer v_object); -gpointer core_value_get_tracker (const GValue* value); -GType core_tracker_get_type (void) G_GNUC_CONST; -GType core_view_tracker_get_type (void) G_GNUC_CONST; -GType media_view_tracker_get_type (void) G_GNUC_CONST; -GType media_accumulator_get_type (void) G_GNUC_CONST; -MediaAccumulator* media_accumulator_new (void); -MediaAccumulator* media_accumulator_construct (GType object_type); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -MediaViewTracker* media_view_tracker_new (ViewCollection* collection); -MediaViewTracker* media_view_tracker_construct (GType object_type, - ViewCollection* collection); -CoreViewTracker* core_view_tracker_new (ViewCollection* collection); -CoreViewTracker* core_view_tracker_construct (GType object_type, - ViewCollection* collection); -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -GType core_tracker_accumulator_get_type (void) G_GNUC_CONST; -void core_view_tracker_start (CoreViewTracker* self, - CoreTrackerAccumulator* all, - CoreTrackerAccumulator* visible, - CoreTrackerAccumulator* selected); -static void media_view_tracker_finalize (CoreTracker * obj); -static gboolean media_accumulator_real_include (CoreTrackerAccumulator* base, - DataObject* object); -GType data_source_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -DataSource* data_view_get_source (DataView* self); -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -PhotoFileFormat photo_get_master_file_format (Photo* self); -GType video_source_get_type (void) G_GNUC_CONST; -GType flaggable_get_type (void) G_GNUC_CONST; -gboolean flaggable_is_flagged (Flaggable* self); -static gboolean media_accumulator_real_uninclude (CoreTrackerAccumulator* base, - DataObject* object); -gchar* data_object_to_string (DataObject* self); -gchar* media_accumulator_to_string (MediaAccumulator* self); -GType video_get_type (void) G_GNUC_CONST; -static gboolean media_accumulator_real_altered (CoreTrackerAccumulator* base, - DataObject* object, - Alteration* alteration); -gboolean alteration_has_detail (Alteration* self, - const gchar* subject, - const gchar* detail); -static void media_accumulator_finalize (GObject * obj); - - -MediaViewTracker* -media_view_tracker_construct (GType object_type, - ViewCollection* collection) -{ - MediaViewTracker* self = NULL; - MediaAccumulator* _tmp0_; - MediaAccumulator* _tmp1_; - MediaAccumulator* _tmp2_; -#line 12 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (collection), NULL); -#line 13 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self = (MediaViewTracker*) core_view_tracker_construct (object_type, collection); -#line 15 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp0_ = self->all; -#line 15 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp1_ = self->visible; -#line 15 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp2_ = self->selected; -#line 15 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - core_view_tracker_start (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_VIEW_TRACKER, CoreViewTracker), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator)); -#line 12 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - return self; -#line 394 "MediaViewTracker.c" -} - - -MediaViewTracker* -media_view_tracker_new (ViewCollection* collection) -{ -#line 12 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - return media_view_tracker_construct (TYPE_MEDIA_VIEW_TRACKER, collection); -#line 403 "MediaViewTracker.c" -} - - -static void -media_view_tracker_class_init (MediaViewTrackerClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - media_view_tracker_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - ((CoreTrackerClass *) klass)->finalize = media_view_tracker_finalize; -#line 414 "MediaViewTracker.c" -} - - -static void -media_view_tracker_instance_init (MediaViewTracker * self) -{ - MediaAccumulator* _tmp0_; - MediaAccumulator* _tmp1_; - MediaAccumulator* _tmp2_; -#line 8 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp0_ = media_accumulator_new (); -#line 8 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->all = _tmp0_; -#line 9 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp1_ = media_accumulator_new (); -#line 9 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->visible = _tmp1_; -#line 10 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp2_ = media_accumulator_new (); -#line 10 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->selected = _tmp2_; -#line 436 "MediaViewTracker.c" -} - - -static void -media_view_tracker_finalize (CoreTracker * obj) -{ - MediaViewTracker * self; -#line 7 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_VIEW_TRACKER, MediaViewTracker); -#line 8 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _g_object_unref0 (self->all); -#line 9 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _g_object_unref0 (self->visible); -#line 10 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _g_object_unref0 (self->selected); -#line 7 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - CORE_TRACKER_CLASS (media_view_tracker_parent_class)->finalize (obj); -#line 454 "MediaViewTracker.c" -} - - -GType -media_view_tracker_get_type (void) -{ - static volatile gsize media_view_tracker_type_id__volatile = 0; - if (g_once_init_enter (&media_view_tracker_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MediaViewTrackerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_view_tracker_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaViewTracker), 0, (GInstanceInitFunc) media_view_tracker_instance_init, NULL }; - GType media_view_tracker_type_id; - media_view_tracker_type_id = g_type_register_static (CORE_TYPE_VIEW_TRACKER, "MediaViewTracker", &g_define_type_info, 0); - g_once_init_leave (&media_view_tracker_type_id__volatile, media_view_tracker_type_id); - } - return media_view_tracker_type_id__volatile; -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 31 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - return self ? g_object_ref (self) : NULL; -#line 477 "MediaViewTracker.c" -} - - -static gboolean -media_accumulator_real_include (CoreTrackerAccumulator* base, - DataObject* object) -{ - MediaAccumulator * self; - gboolean result = FALSE; - DataSource* source = NULL; - DataSource* _tmp0_; - gint _tmp1_; - Photo* photo = NULL; - DataSource* _tmp2_; - Photo* _tmp3_; - Photo* _tmp4_; - Flaggable* flaggable = NULL; - DataSource* _tmp11_; - Flaggable* _tmp12_; - gboolean _tmp13_ = FALSE; - Flaggable* _tmp14_; -#line 26 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_ACCUMULATOR, MediaAccumulator); -#line 26 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 27 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView)); -#line 27 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - source = _tmp0_; -#line 29 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp1_ = self->total; -#line 29 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->total = _tmp1_ + 1; -#line 31 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp2_ = source; -#line 31 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_PHOTO) ? ((Photo*) _tmp2_) : NULL); -#line 31 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - photo = _tmp3_; -#line 32 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp4_ = photo; -#line 32 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - if (_tmp4_ != NULL) { -#line 521 "MediaViewTracker.c" - Photo* _tmp5_; - Photo* _tmp7_; -#line 33 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp5_ = photo; -#line 33 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - if (photo_get_master_file_format (_tmp5_) == PHOTO_FILE_FORMAT_RAW) { -#line 528 "MediaViewTracker.c" - gint _tmp6_; -#line 34 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp6_ = self->raw; -#line 34 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->raw = _tmp6_ + 1; -#line 534 "MediaViewTracker.c" - } -#line 37 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp7_ = photo; -#line 37 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - if (photo_get_master_file_format (_tmp7_) != PHOTO_FILE_FORMAT_RAW) { -#line 540 "MediaViewTracker.c" - gint _tmp8_; -#line 38 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp8_ = self->photos; -#line 38 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->photos = _tmp8_ + 1; -#line 546 "MediaViewTracker.c" - } - } else { - DataSource* _tmp9_; -#line 40 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp9_ = source; -#line 40 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_VIDEO_SOURCE)) { -#line 554 "MediaViewTracker.c" - gint _tmp10_; -#line 41 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp10_ = self->videos; -#line 41 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->videos = _tmp10_ + 1; -#line 560 "MediaViewTracker.c" - } - } -#line 44 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp11_ = source; -#line 44 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_FLAGGABLE) ? ((Flaggable*) _tmp11_) : NULL); -#line 44 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - flaggable = _tmp12_; -#line 45 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp14_ = flaggable; -#line 45 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - if (_tmp14_ != NULL) { -#line 573 "MediaViewTracker.c" - Flaggable* _tmp15_; -#line 45 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp15_ = flaggable; -#line 45 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp13_ = flaggable_is_flagged (_tmp15_); -#line 579 "MediaViewTracker.c" - } else { -#line 45 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp13_ = FALSE; -#line 583 "MediaViewTracker.c" - } -#line 45 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - if (_tmp13_) { -#line 587 "MediaViewTracker.c" - gint _tmp16_; -#line 46 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp16_ = self->flagged; -#line 46 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->flagged = _tmp16_ + 1; -#line 593 "MediaViewTracker.c" - } -#line 49 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - result = TRUE; -#line 49 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _g_object_unref0 (flaggable); -#line 49 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _g_object_unref0 (photo); -#line 49 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _g_object_unref0 (source); -#line 49 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - return result; -#line 605 "MediaViewTracker.c" -} - - -static gboolean -media_accumulator_real_uninclude (CoreTrackerAccumulator* base, - DataObject* object) -{ - MediaAccumulator * self; - gboolean result = FALSE; - DataSource* source = NULL; - DataSource* _tmp0_; - gint _tmp1_; - gint _tmp9_; - Photo* photo = NULL; - DataSource* _tmp10_; - Photo* _tmp11_; - Photo* _tmp12_; - Flaggable* flaggable = NULL; - DataSource* _tmp22_; - Flaggable* _tmp23_; - gboolean _tmp24_ = FALSE; - Flaggable* _tmp25_; -#line 52 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_ACCUMULATOR, MediaAccumulator); -#line 52 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 53 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView)); -#line 53 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - source = _tmp0_; -#line 55 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp1_ = self->total; -#line 55 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - if (_tmp1_ < 1) { -#line 640 "MediaViewTracker.c" - gchar* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp2_ = data_object_to_string (object); -#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp3_ = _tmp2_; -#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp4_ = g_type_name (G_TYPE_FROM_INSTANCE (G_TYPE_CHECK_INSTANCE_CAST (self, G_TYPE_OBJECT, GObject))); -#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp5_ = media_accumulator_to_string (self); -#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp6_ = _tmp5_; -#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp7_ = g_strdup_printf ("Tried to remove DataObject %s from empty %s (%s)", _tmp3_, _tmp4_, _tmp6_); -#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp8_ = _tmp7_; -#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - g_warning ("MediaViewTracker.vala:56: %s", _tmp8_); -#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _g_free0 (_tmp8_); -#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _g_free0 (_tmp6_); -#line 56 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _g_free0 (_tmp3_); -#line 58 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - result = FALSE; -#line 58 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _g_object_unref0 (source); -#line 58 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - return result; -#line 676 "MediaViewTracker.c" - } -#line 60 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp9_ = self->total; -#line 60 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->total = _tmp9_ - 1; -#line 62 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp10_ = source; -#line 62 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, TYPE_PHOTO) ? ((Photo*) _tmp10_) : NULL); -#line 62 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - photo = _tmp11_; -#line 63 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp12_ = photo; -#line 63 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - if (_tmp12_ != NULL) { -#line 692 "MediaViewTracker.c" - Photo* _tmp13_; - Photo* _tmp16_; -#line 64 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp13_ = photo; -#line 64 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - if (photo_get_master_file_format (_tmp13_) == PHOTO_FILE_FORMAT_RAW) { -#line 699 "MediaViewTracker.c" - gint _tmp14_; - gint _tmp15_; -#line 65 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp14_ = self->raw; -#line 65 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _vala_assert (_tmp14_ > 0, "raw > 0"); -#line 66 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp15_ = self->raw; -#line 66 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->raw = _tmp15_ - 1; -#line 710 "MediaViewTracker.c" - } -#line 69 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp16_ = photo; -#line 69 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - if (photo_get_master_file_format (_tmp16_) != PHOTO_FILE_FORMAT_RAW) { -#line 716 "MediaViewTracker.c" - gint _tmp17_; - gint _tmp18_; -#line 70 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp17_ = self->photos; -#line 70 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _vala_assert (_tmp17_ > 0, "photos > 0"); -#line 71 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp18_ = self->photos; -#line 71 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->photos = _tmp18_ - 1; -#line 727 "MediaViewTracker.c" - } - } else { - DataSource* _tmp19_; -#line 73 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp19_ = source; -#line 73 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_VIDEO)) { -#line 735 "MediaViewTracker.c" - gint _tmp20_; - gint _tmp21_; -#line 74 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp20_ = self->videos; -#line 74 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _vala_assert (_tmp20_ > 0, "videos > 0"); -#line 75 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp21_ = self->videos; -#line 75 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->videos = _tmp21_ - 1; -#line 746 "MediaViewTracker.c" - } - } -#line 78 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp22_ = source; -#line 78 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, TYPE_FLAGGABLE) ? ((Flaggable*) _tmp22_) : NULL); -#line 78 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - flaggable = _tmp23_; -#line 79 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp25_ = flaggable; -#line 79 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - if (_tmp25_ != NULL) { -#line 759 "MediaViewTracker.c" - Flaggable* _tmp26_; -#line 79 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp26_ = flaggable; -#line 79 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp24_ = flaggable_is_flagged (_tmp26_); -#line 765 "MediaViewTracker.c" - } else { -#line 79 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp24_ = FALSE; -#line 769 "MediaViewTracker.c" - } -#line 79 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - if (_tmp24_) { -#line 773 "MediaViewTracker.c" - gint _tmp27_; - gint _tmp28_; -#line 80 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp27_ = self->flagged; -#line 80 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _vala_assert (_tmp27_ > 0, "flagged > 0"); -#line 81 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp28_ = self->flagged; -#line 81 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->flagged = _tmp28_ - 1; -#line 784 "MediaViewTracker.c" - } -#line 85 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - result = TRUE; -#line 85 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _g_object_unref0 (flaggable); -#line 85 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _g_object_unref0 (photo); -#line 85 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _g_object_unref0 (source); -#line 85 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - return result; -#line 796 "MediaViewTracker.c" -} - - -static gboolean -media_accumulator_real_altered (CoreTrackerAccumulator* base, - DataObject* object, - Alteration* alteration) -{ - MediaAccumulator * self; - gboolean result = FALSE; - Flaggable* flaggable = NULL; - DataSource* _tmp0_; - Flaggable* _tmp1_; - Flaggable* _tmp2_; - Flaggable* _tmp3_; -#line 88 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MEDIA_ACCUMULATOR, MediaAccumulator); -#line 88 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 88 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - g_return_val_if_fail (IS_ALTERATION (alteration), FALSE); -#line 91 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - if (!alteration_has_detail (alteration, "metadata", "flagged")) { -#line 92 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - result = FALSE; -#line 92 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - return result; -#line 824 "MediaViewTracker.c" - } -#line 94 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView)); -#line 94 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_FLAGGABLE) ? ((Flaggable*) _tmp0_) : NULL; -#line 94 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - if (_tmp1_ == NULL) { -#line 94 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _g_object_unref0 (_tmp0_); -#line 834 "MediaViewTracker.c" - } -#line 94 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - flaggable = _tmp1_; -#line 95 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp2_ = flaggable; -#line 95 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - if (_tmp2_ == NULL) { -#line 96 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - result = FALSE; -#line 96 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _g_object_unref0 (flaggable); -#line 96 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - return result; -#line 848 "MediaViewTracker.c" - } -#line 98 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp3_ = flaggable; -#line 98 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - if (flaggable_is_flagged (_tmp3_)) { -#line 854 "MediaViewTracker.c" - gint _tmp4_; -#line 99 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp4_ = self->flagged; -#line 99 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->flagged = _tmp4_ + 1; -#line 860 "MediaViewTracker.c" - } else { - gint _tmp5_; - gint _tmp6_; -#line 101 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp5_ = self->flagged; -#line 101 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _vala_assert (_tmp5_ > 0, "flagged > 0"); -#line 102 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp6_ = self->flagged; -#line 102 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->flagged = _tmp6_ - 1; -#line 872 "MediaViewTracker.c" - } -#line 105 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - result = TRUE; -#line 105 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _g_object_unref0 (flaggable); -#line 105 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - return result; -#line 880 "MediaViewTracker.c" -} - - -gchar* -media_accumulator_to_string (MediaAccumulator* self) -{ - gchar* result = NULL; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - gchar* _tmp4_; -#line 108 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - g_return_val_if_fail (IS_MEDIA_ACCUMULATOR (self), NULL); -#line 109 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp0_ = self->photos; -#line 109 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp1_ = self->videos; -#line 109 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp2_ = self->raw; -#line 109 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp3_ = self->flagged; -#line 109 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - _tmp4_ = g_strdup_printf ("%d photos/%d videos/%d raw/%d flagged", _tmp0_, _tmp1_, _tmp2_, _tmp3_); -#line 109 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - result = _tmp4_; -#line 109 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - return result; -#line 909 "MediaViewTracker.c" -} - - -MediaAccumulator* -media_accumulator_construct (GType object_type) -{ - MediaAccumulator * self = NULL; -#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self = (MediaAccumulator*) g_object_new (object_type, NULL); -#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - return self; -#line 921 "MediaViewTracker.c" -} - - -MediaAccumulator* -media_accumulator_new (void) -{ -#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - return media_accumulator_construct (TYPE_MEDIA_ACCUMULATOR); -#line 930 "MediaViewTracker.c" -} - - -static void -media_accumulator_class_init (MediaAccumulatorClass * klass) -{ -#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - media_accumulator_parent_class = g_type_class_peek_parent (klass); -#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - G_OBJECT_CLASS (klass)->finalize = media_accumulator_finalize; -#line 941 "MediaViewTracker.c" -} - - -static void -media_accumulator_core_tracker_accumulator_interface_init (CoreTrackerAccumulatorIface * iface) -{ -#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - media_accumulator_core_tracker_accumulator_parent_iface = g_type_interface_peek_parent (iface); -#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - iface->include = (gboolean (*) (CoreTrackerAccumulator *, DataObject*)) media_accumulator_real_include; -#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - iface->uninclude = (gboolean (*) (CoreTrackerAccumulator *, DataObject*)) media_accumulator_real_uninclude; -#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - iface->altered = (gboolean (*) (CoreTrackerAccumulator *, DataObject*, Alteration*)) media_accumulator_real_altered; -#line 956 "MediaViewTracker.c" -} - - -static void -media_accumulator_instance_init (MediaAccumulator * self) -{ -#line 20 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->total = 0; -#line 21 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->photos = 0; -#line 22 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->videos = 0; -#line 23 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->raw = 0; -#line 24 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self->flagged = 0; -#line 973 "MediaViewTracker.c" -} - - -static void -media_accumulator_finalize (GObject * obj) -{ - MediaAccumulator * self; -#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MEDIA_ACCUMULATOR, MediaAccumulator); -#line 19 "/home/jens/Source/shotwell/src/MediaViewTracker.vala" - G_OBJECT_CLASS (media_accumulator_parent_class)->finalize (obj); -#line 985 "MediaViewTracker.c" -} - - -GType -media_accumulator_get_type (void) -{ - static volatile gsize media_accumulator_type_id__volatile = 0; - if (g_once_init_enter (&media_accumulator_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MediaAccumulatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) media_accumulator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MediaAccumulator), 0, (GInstanceInitFunc) media_accumulator_instance_init, NULL }; - static const GInterfaceInfo core_tracker_accumulator_info = { (GInterfaceInitFunc) media_accumulator_core_tracker_accumulator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType media_accumulator_type_id; - media_accumulator_type_id = g_type_register_static (G_TYPE_OBJECT, "MediaAccumulator", &g_define_type_info, 0); - g_type_add_interface_static (media_accumulator_type_id, CORE_TYPE_TRACKER_ACCUMULATOR, &core_tracker_accumulator_info); - g_once_init_leave (&media_accumulator_type_id__volatile, media_accumulator_type_id); - } - return media_accumulator_type_id__volatile; -} - - - diff --git a/src/MetadataWriter.c b/src/MetadataWriter.c deleted file mode 100644 index cad0c6b..0000000 --- a/src/MetadataWriter.c +++ /dev/null @@ -1,5280 +0,0 @@ -/* MetadataWriter.c generated by valac 0.40.4, the Vala compiler - * generated from MetadataWriter.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/* MetadataWriter tracks LibraryPhotos for alterations to their metadata and commits those changes*/ -/* in a timely manner to their backing files. Because only the MetadataWriter knows when the*/ -/* metadata has been properly committed, it is also responsible for updating the metadata-dirty*/ -/* flag in Photo. Thus, MetadataWriter should *always* be running, even if the user has turned off*/ -/* the feature, so if they turn it on MetadataWriter can properly go out and update the backing*/ -/* files.*/ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_METADATA_WRITER (metadata_writer_get_type ()) -#define METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_WRITER, MetadataWriter)) -#define METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_WRITER, MetadataWriterClass)) -#define IS_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_WRITER)) -#define IS_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_WRITER)) -#define METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_WRITER, MetadataWriterClass)) - -typedef struct _MetadataWriter MetadataWriter; -typedef struct _MetadataWriterClass MetadataWriterClass; -typedef struct _MetadataWriterPrivate MetadataWriterPrivate; - -#define TYPE_WORKERS (workers_get_type ()) -#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers)) -#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass)) -#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS)) -#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS)) -#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass)) - -typedef struct _Workers Workers; -typedef struct _WorkersClass WorkersClass; - -#define TYPE_TIMED_QUEUE (timed_queue_get_type ()) -#define TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TIMED_QUEUE, TimedQueue)) -#define TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TIMED_QUEUE, TimedQueueClass)) -#define IS_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TIMED_QUEUE)) -#define IS_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TIMED_QUEUE)) -#define TIMED_QUEUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TIMED_QUEUE, TimedQueueClass)) - -typedef struct _TimedQueue TimedQueue; -typedef struct _TimedQueueClass TimedQueueClass; - -#define TYPE_HASH_TIMED_QUEUE (hash_timed_queue_get_type ()) -#define HASH_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HASH_TIMED_QUEUE, HashTimedQueue)) -#define HASH_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HASH_TIMED_QUEUE, HashTimedQueueClass)) -#define IS_HASH_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HASH_TIMED_QUEUE)) -#define IS_HASH_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HASH_TIMED_QUEUE)) -#define HASH_TIMED_QUEUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HASH_TIMED_QUEUE, HashTimedQueueClass)) - -typedef struct _HashTimedQueue HashTimedQueue; -typedef struct _HashTimedQueueClass HashTimedQueueClass; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_BACKGROUND_JOB (background_job_get_type ()) -#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob)) -#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass)) -#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB)) -#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB)) -#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass)) - -typedef struct _BackgroundJob BackgroundJob; -typedef struct _BackgroundJobClass BackgroundJobClass; - -#define METADATA_WRITER_TYPE_COMMIT_JOB (metadata_writer_commit_job_get_type ()) -#define METADATA_WRITER_COMMIT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), METADATA_WRITER_TYPE_COMMIT_JOB, MetadataWriterCommitJob)) -#define METADATA_WRITER_COMMIT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), METADATA_WRITER_TYPE_COMMIT_JOB, MetadataWriterCommitJobClass)) -#define METADATA_WRITER_IS_COMMIT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), METADATA_WRITER_TYPE_COMMIT_JOB)) -#define METADATA_WRITER_IS_COMMIT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), METADATA_WRITER_TYPE_COMMIT_JOB)) -#define METADATA_WRITER_COMMIT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), METADATA_WRITER_TYPE_COMMIT_JOB, MetadataWriterCommitJobClass)) - -typedef struct _MetadataWriterCommitJob MetadataWriterCommitJob; -typedef struct _MetadataWriterCommitJobClass MetadataWriterCommitJobClass; -enum { - METADATA_WRITER_0_PROPERTY, - METADATA_WRITER_NUM_PROPERTIES -}; -static GParamSpec* metadata_writer_properties[METADATA_WRITER_NUM_PROPERTIES]; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ()) -#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) - -typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; -typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ()) -#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection)) -#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) -#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION)) -#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION)) -#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) - -typedef struct _TagSourceCollection TagSourceCollection; -typedef struct _TagSourceCollectionClass TagSourceCollectionClass; - -#define TYPE_CONTAINER_SOURCE (container_source_get_type ()) -#define CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE, ContainerSource)) -#define IS_CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE)) -#define CONTAINER_SOURCE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONTAINER_SOURCE, ContainerSourceIface)) - -typedef struct _ContainerSource ContainerSource; -typedef struct _ContainerSourceIface ContainerSourceIface; - -#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ()) -#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink)) -#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) -#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK)) -#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK)) -#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) - -typedef struct _SourceBacklink SourceBacklink; -typedef struct _SourceBacklinkClass SourceBacklinkClass; - -#define TYPE_APPLICATION (application_get_type ()) -#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application)) -#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass)) -#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION)) -#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION)) -#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass)) - -typedef struct _Application Application; -typedef struct _ApplicationClass ApplicationClass; -#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL))) - -#define TYPE_LIBRARY_MONITOR_POOL (library_monitor_pool_get_type ()) -#define LIBRARY_MONITOR_POOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPool)) -#define LIBRARY_MONITOR_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolClass)) -#define IS_LIBRARY_MONITOR_POOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_MONITOR_POOL)) -#define IS_LIBRARY_MONITOR_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_MONITOR_POOL)) -#define LIBRARY_MONITOR_POOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolClass)) - -typedef struct _LibraryMonitorPool LibraryMonitorPool; -typedef struct _LibraryMonitorPoolClass LibraryMonitorPoolClass; - -#define TYPE_DIRECTORY_MONITOR (directory_monitor_get_type ()) -#define DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitor)) -#define DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass)) -#define IS_DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECTORY_MONITOR)) -#define IS_DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECTORY_MONITOR)) -#define DIRECTORY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass)) - -typedef struct _DirectoryMonitor DirectoryMonitor; -typedef struct _DirectoryMonitorClass DirectoryMonitorClass; - -#define TYPE_LIBRARY_MONITOR (library_monitor_get_type ()) -#define LIBRARY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_MONITOR, LibraryMonitor)) -#define LIBRARY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_MONITOR, LibraryMonitorClass)) -#define IS_LIBRARY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_MONITOR)) -#define IS_LIBRARY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_MONITOR)) -#define LIBRARY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_MONITOR, LibraryMonitorClass)) - -typedef struct _LibraryMonitor LibraryMonitor; -typedef struct _LibraryMonitorClass LibraryMonitorClass; -#define _library_monitor_pool_unref0(var) ((var == NULL) ? NULL : (var = (library_monitor_pool_unref (var), NULL))) -#define _workers_unref0(var) ((var == NULL) ? NULL : (var = (workers_unref (var), NULL))) -#define _timed_queue_unref0(var) ((var == NULL) ? NULL : (var = (timed_queue_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; - -#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ()) -#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController)) -#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) -#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER)) -#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER)) -#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) - -typedef struct _TransactionController TransactionController; -typedef struct _TransactionControllerClass TransactionControllerClass; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL))) -typedef struct _BackgroundJobPrivate BackgroundJobPrivate; - -#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ()) -typedef struct _MetadataWriterCommitJobPrivate MetadataWriterCommitJobPrivate; - -#define PHOTO_TYPE_REIMPORT_MASTER_STATE (photo_reimport_master_state_get_type ()) -#define PHOTO_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterState)) -#define PHOTO_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass)) -#define PHOTO_IS_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE)) -#define PHOTO_IS_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE)) -#define PHOTO_REIMPORT_MASTER_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass)) - -typedef struct _PhotoReimportMasterState PhotoReimportMasterState; -typedef struct _PhotoReimportMasterStateClass PhotoReimportMasterStateClass; - -#define PHOTO_TYPE_REIMPORT_EDITABLE_STATE (photo_reimport_editable_state_get_type ()) -#define PHOTO_REIMPORT_EDITABLE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableState)) -#define PHOTO_REIMPORT_EDITABLE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableStateClass)) -#define PHOTO_IS_REIMPORT_EDITABLE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE)) -#define PHOTO_IS_REIMPORT_EDITABLE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE)) -#define PHOTO_REIMPORT_EDITABLE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableStateClass)) - -typedef struct _PhotoReimportEditableState PhotoReimportEditableState; -typedef struct _PhotoReimportEditableStateClass PhotoReimportEditableStateClass; -#define _photo_reimport_master_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_master_state_unref (var), NULL))) -#define _photo_reimport_editable_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_editable_state_unref (var), NULL))) - -#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ()) -#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)) -#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) -#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE)) -#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE)) -#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) - -typedef struct _AbstractSemaphore AbstractSemaphore; -typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; -#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL))) - -#define PHOTO_METADATA_TYPE_SET_OPTION (photo_metadata_set_option_get_type ()) - -#define TYPE_RATING (rating_get_type ()) - -#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ()) -#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime)) -#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) -#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME)) -#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME)) -#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) - -typedef struct _MetadataDateTime MetadataDateTime; -typedef struct _MetadataDateTimeClass MetadataDateTimeClass; -#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL))) - -#define TYPE_ORIENTATION (orientation_get_type ()) -enum { - METADATA_WRITER_PROGRESS_SIGNAL, - METADATA_WRITER_NUM_SIGNALS -}; -static guint metadata_writer_signals[METADATA_WRITER_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _MetadataWriter { - GObject parent_instance; - MetadataWriterPrivate * priv; -}; - -struct _MetadataWriterClass { - GObjectClass parent_class; -}; - -struct _MetadataWriterPrivate { - Workers* workers; - gboolean enabled; - HashTimedQueue* dirty; - GeeHashMap* pending; - GeeHashSet* pending_cancel; - GeeHashSet* interested_photo_details; - LibraryPhoto* ignore_photo_alteration; - guint outstanding_total; - guint outstanding_completed; - gboolean closed; - gint pause_count; - GeeHashSet* importing_photos; -}; - -struct _ContainerSourceIface { - GTypeInterface parent_iface; - gboolean (*has_links) (ContainerSource* self); - SourceBacklink* (*get_backlink) (ContainerSource* self); - void (*break_link) (ContainerSource* self, DataSource* source); - void (*break_link_many) (ContainerSource* self, GeeCollection* sources); - void (*establish_link) (ContainerSource* self, DataSource* source); - void (*establish_link_many) (ContainerSource* self, GeeCollection* sources); -}; - -typedef void (*DequeuedCallback) (gconstpointer item, void* user_data); -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -typedef enum { - BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100, - BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75, - BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50, - BACKGROUND_JOB_JOB_PRIORITY_LOW = 25, - BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0 -} BackgroundJobJobPriority; - -struct _BackgroundJob { - GTypeInstance parent_instance; - volatile int ref_count; - BackgroundJobPrivate * priv; -}; - -struct _BackgroundJobClass { - GTypeClass parent_class; - void (*finalize) (BackgroundJob *self); - void (*execute) (BackgroundJob* self); - BackgroundJobJobPriority (*get_priority) (BackgroundJob* self); -}; - -struct _MetadataWriterCommitJob { - BackgroundJob parent_instance; - MetadataWriterCommitJobPrivate * priv; - LibraryPhoto* photo; - GeeSet* current_keywords; - PhotoReimportMasterState* reimport_master_state; - PhotoReimportEditableState* reimport_editable_state; - GError* err; - gboolean wrote_master; - gboolean wrote_editable; -}; - -struct _MetadataWriterCommitJobClass { - BackgroundJobClass parent_class; -}; - -typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data); -typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data); -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef enum { - PHOTO_METADATA_SET_OPTION_ALL_DOMAINS, - PHOTO_METADATA_SET_OPTION_ONLY_IF_DOMAIN_PRESENT, - PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN -} PhotoMetadataSetOption; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - ORIENTATION_MIN = 1, - ORIENTATION_TOP_LEFT = 1, - ORIENTATION_TOP_RIGHT = 2, - ORIENTATION_BOTTOM_RIGHT = 3, - ORIENTATION_BOTTOM_LEFT = 4, - ORIENTATION_LEFT_TOP = 5, - ORIENTATION_RIGHT_TOP = 6, - ORIENTATION_RIGHT_BOTTOM = 7, - ORIENTATION_LEFT_BOTTOM = 8, - ORIENTATION_MAX = 8 -} Orientation; - - -static gpointer metadata_writer_parent_class = NULL; -extern LibraryPhotoSourceCollection* library_photo_global; -extern TagSourceCollection* tag_global; -static MetadataWriter* metadata_writer_instance; -static MetadataWriter* metadata_writer_instance = NULL; -static gpointer metadata_writer_commit_job_parent_class = NULL; - -GType metadata_writer_get_type (void) G_GNUC_CONST; -gpointer workers_ref (gpointer instance); -void workers_unref (gpointer instance); -GParamSpec* param_spec_workers (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_workers (GValue* value, - gpointer v_object); -void value_take_workers (GValue* value, - gpointer v_object); -gpointer value_get_workers (const GValue* value); -GType workers_get_type (void) G_GNUC_CONST; -gpointer timed_queue_ref (gpointer instance); -void timed_queue_unref (gpointer instance); -GParamSpec* param_spec_timed_queue (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_timed_queue (GValue* value, - gpointer v_object); -void value_take_timed_queue (GValue* value, - gpointer v_object); -gpointer value_get_timed_queue (const GValue* value); -GType timed_queue_get_type (void) G_GNUC_CONST; -GType hash_timed_queue_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -gpointer background_job_ref (gpointer instance); -void background_job_unref (gpointer instance); -GParamSpec* param_spec_background_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_background_job (GValue* value, - gpointer v_object); -void value_take_background_job (GValue* value, - gpointer v_object); -gpointer value_get_background_job (const GValue* value); -GType background_job_get_type (void) G_GNUC_CONST; -static GType metadata_writer_commit_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define METADATA_WRITER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_METADATA_WRITER, MetadataWriterPrivate)) -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -static void metadata_writer_on_config_changed (MetadataWriter* self); -static void _metadata_writer_on_config_changed_configuration_facade_commit_metadata_to_masters_changed (ConfigurationFacade* _sender, - gpointer self); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -static void metadata_writer_on_importing_photos (MetadataWriter* self, - GeeCollection* media_sources); -static void _metadata_writer_on_importing_photos_media_source_collection_media_import_starting (MediaSourceCollection* _sender, - GeeCollection* media, - gpointer self); -static void metadata_writer_on_photos_imported (MetadataWriter* self, - GeeCollection* media_sources); -static void _metadata_writer_on_photos_imported_media_source_collection_media_import_completed (MediaSourceCollection* _sender, - GeeCollection* media, - gpointer self); -static void metadata_writer_on_photos_added_removed (MetadataWriter* self, - GeeIterable* added, - GeeIterable* removed); -static void _metadata_writer_on_photos_added_removed_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self); -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -static void metadata_writer_on_photos_altered (MetadataWriter* self, - GeeMap* items); -static void _metadata_writer_on_photos_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -static void metadata_writer_on_collection_frozen (MetadataWriter* self); -static void _metadata_writer_on_collection_frozen_data_collection_frozen (DataCollection* _sender, - gpointer self); -static void metadata_writer_on_collection_thawed (MetadataWriter* self); -static void _metadata_writer_on_collection_thawed_data_collection_thawed (DataCollection* _sender, - gpointer self); -static void metadata_writer_on_photos_destroyed (MetadataWriter* self, - GeeCollection* destroyed); -static void _metadata_writer_on_photos_destroyed_source_collection_items_destroyed (SourceCollection* _sender, - GeeCollection* destroyed, - gpointer self); -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType tag_source_collection_get_type (void) G_GNUC_CONST; -static void metadata_writer_on_tags_altered (MetadataWriter* self, - GeeMap* map); -static void _metadata_writer_on_tags_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -gpointer source_backlink_ref (gpointer instance); -void source_backlink_unref (gpointer instance); -GParamSpec* param_spec_source_backlink (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_backlink (GValue* value, - gpointer v_object); -void value_take_source_backlink (GValue* value, - gpointer v_object); -gpointer value_get_source_backlink (const GValue* value); -GType source_backlink_get_type (void) G_GNUC_CONST; -GType container_source_get_type (void) G_GNUC_CONST; -static void metadata_writer_on_tag_contents_altered (MetadataWriter* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinking, - GeeCollection* removed, - gboolean unlinking); -static void _metadata_writer_on_tag_contents_altered_container_source_collection_container_contents_altered (ContainerSourceCollection* _sender, - ContainerSource* container, - GeeCollection* added, - gboolean relinked, - GeeCollection* removed, - gboolean unlinked, - gpointer self); -static void metadata_writer_on_tag_backlink_removed (MetadataWriter* self, - ContainerSource* container, - GeeCollection* sources); -static void _metadata_writer_on_tag_backlink_removed_container_source_collection_backlink_to_container_removed (ContainerSourceCollection* _sender, - ContainerSource* container, - GeeCollection* sources, - gpointer self); -gpointer application_ref (gpointer instance); -void application_unref (gpointer instance); -GParamSpec* param_spec_application (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_application (GValue* value, - gpointer v_object); -void value_take_application (GValue* value, - gpointer v_object); -gpointer value_get_application (const GValue* value); -GType application_get_type (void) G_GNUC_CONST; -Application* application_get_instance (void); -static void metadata_writer_on_application_exiting (MetadataWriter* self); -static void _metadata_writer_on_application_exiting_application_exiting (Application* _sender, - gboolean panicked, - gpointer self); -gpointer library_monitor_pool_ref (gpointer instance); -void library_monitor_pool_unref (gpointer instance); -GParamSpec* param_spec_library_monitor_pool (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_library_monitor_pool (GValue* value, - gpointer v_object); -void value_take_library_monitor_pool (GValue* value, - gpointer v_object); -gpointer value_get_library_monitor_pool (const GValue* value); -GType library_monitor_pool_get_type (void) G_GNUC_CONST; -LibraryMonitorPool* library_monitor_pool_get_instance (void); -GType directory_monitor_get_type (void) G_GNUC_CONST; -GType library_monitor_get_type (void) G_GNUC_CONST; -static void metadata_writer_on_monitor_installed (MetadataWriter* self, - LibraryMonitor* monitor); -static void _metadata_writer_on_monitor_installed_library_monitor_pool_monitor_installed (LibraryMonitorPool* _sender, - LibraryMonitor* monitor, - gpointer self); -static void metadata_writer_on_monitor_destroyed (MetadataWriter* self, - LibraryMonitor* monitor); -static void _metadata_writer_on_monitor_destroyed_library_monitor_pool_monitor_destroyed (LibraryMonitorPool* _sender, - LibraryMonitor* monitor, - gpointer self); -Workers* workers_new (guint max_threads, - gboolean exclusive); -Workers* workers_construct (GType object_type, - guint max_threads, - gboolean exclusive); -#define METADATA_WRITER_COMMIT_DELAY_MSEC ((guint) 3000) -#define METADATA_WRITER_COMMIT_SPACING_MSEC ((guint) 50) -static MetadataWriter* metadata_writer_new (void); -static MetadataWriter* metadata_writer_construct (GType object_type); -static void metadata_writer_on_photo_dequeued (MetadataWriter* self, - LibraryPhoto* photo); -static void _metadata_writer_on_photo_dequeued_dequeued_callback (gconstpointer item, - gpointer self); -HashTimedQueue* hash_timed_queue_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - guint hold_msec, - DequeuedCallback callback, - void* callback_target, - GeeHashDataFunc hash_func, - void* hash_func_target, - GDestroyNotify hash_func_target_destroy_notify, - GeeEqualDataFunc equal_func, - void* equal_func_target, - GDestroyNotify equal_func_target_destroy_notify, - gint priority); -HashTimedQueue* hash_timed_queue_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - guint hold_msec, - DequeuedCallback callback, - void* callback_target, - GeeHashDataFunc hash_func, - void* hash_func_target, - GDestroyNotify hash_func_target_destroy_notify, - GeeEqualDataFunc equal_func, - void* equal_func_target, - GDestroyNotify equal_func_target_destroy_notify, - gint priority); -void timed_queue_set_dequeue_spacing_msec (TimedQueue* self, - guint msec); -void metadata_writer_pause (MetadataWriter* self); -gboolean configuration_facade_get_commit_metadata_to_masters (ConfigurationFacade* self); -void metadata_writer_force_rescan (MetadataWriter* self); -void metadata_writer_init (void); -void metadata_writer_terminate (void); -void metadata_writer_close (MetadataWriter* self); -MetadataWriter* metadata_writer_get_instance (void); -static void metadata_writer_schedule_if_dirty (MetadataWriter* self, - GeeIterable* media_sources, - const gchar* reason); -GeeCollection* data_collection_get_all (DataCollection* self); -void timed_queue_pause (TimedQueue* self); -void metadata_writer_unpause (MetadataWriter* self); -void timed_queue_unpause (TimedQueue* self); -static void metadata_writer_cancel_all (MetadataWriter* self, - gboolean wait); -static void metadata_writer_on_discovery_completed (MetadataWriter* self); -static void _metadata_writer_on_discovery_completed_directory_monitor_discovery_completed (DirectoryMonitor* _sender, - gpointer self); -static gboolean metadata_writer_cancel_job (MetadataWriter* self, - LibraryPhoto* photo); -gboolean alteration_has_detail (Alteration* self, - const gchar* subject, - const gchar* detail); -GeeCollection* alteration_get_details (Alteration* self, - const gchar* subject); -static void metadata_writer_photos_are_dirty (MetadataWriter* self, - GeeCollection* photos, - const gchar* reason, - gboolean already_marked); -GType tag_get_type (void) G_GNUC_CONST; -GeeCollection* tag_get_sources (Tag* self); -gchar* data_object_to_string (DataObject* self); -static void metadata_writer_count_enqueued_work (MetadataWriter* self, - gint count, - gboolean report); -static void metadata_writer_count_cancelled_work (MetadataWriter* self, - gint count, - gboolean report); -static void metadata_writer_count_completed_work (MetadataWriter* self, - gint count, - gboolean report); -gboolean photo_is_master_metadata_dirty (Photo* self); -gpointer transaction_controller_ref (gpointer instance); -void transaction_controller_unref (gpointer instance); -GParamSpec* param_spec_transaction_controller (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_transaction_controller (GValue* value, - gpointer v_object); -void value_take_transaction_controller (GValue* value, - gpointer v_object); -gpointer value_get_transaction_controller (const GValue* value); -GType transaction_controller_get_type (void) G_GNUC_CONST; -TransactionController* media_source_collection_get_transaction_controller (MediaSourceCollection* self); -void transaction_controller_begin (TransactionController* self); -GQuark database_error_quark (void); -void photo_set_master_metadata_dirty (Photo* self, - gboolean dirty, - GError** error); -void transaction_controller_commit (TransactionController* self); -void app_window_database_error (GError* err); -gboolean timed_queue_enqueue (TimedQueue* self, - gconstpointer item); -void timed_queue_clear (TimedQueue* self); -void background_job_cancel (BackgroundJob* self); -void workers_wait_for_empty_queue (Workers* self); -gboolean timed_queue_contains (TimedQueue* self, - gconstpointer item); -gboolean timed_queue_remove_first (TimedQueue* self, - gconstpointer item); -GeeList* tag_source_collection_fetch_for_source (TagSourceCollection* self, - MediaSource* source); -gchar* data_object_get_name (DataObject* self); -static MetadataWriterCommitJob* metadata_writer_commit_job_new (MetadataWriter* owner, - LibraryPhoto* photo, - GeeSet* keywords); -static MetadataWriterCommitJob* metadata_writer_commit_job_construct (GType object_type, - MetadataWriter* owner, - LibraryPhoto* photo, - GeeSet* keywords); -void workers_enqueue (Workers* self, - BackgroundJob* job); -static void metadata_writer_on_update_completed (MetadataWriter* self, - BackgroundJob* j); -GType background_job_job_priority_get_type (void) G_GNUC_CONST; -gpointer photo_reimport_master_state_ref (gpointer instance); -void photo_reimport_master_state_unref (gpointer instance); -GParamSpec* photo_param_spec_reimport_master_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void photo_value_set_reimport_master_state (GValue* value, - gpointer v_object); -void photo_value_take_reimport_master_state (GValue* value, - gpointer v_object); -gpointer photo_value_get_reimport_master_state (const GValue* value); -GType photo_reimport_master_state_get_type (void) G_GNUC_CONST; -gpointer photo_reimport_editable_state_ref (gpointer instance); -void photo_reimport_editable_state_unref (gpointer instance); -GParamSpec* photo_param_spec_reimport_editable_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void photo_value_set_reimport_editable_state (GValue* value, - gpointer v_object); -void photo_value_take_reimport_editable_state (GValue* value, - gpointer v_object); -gpointer photo_value_get_reimport_editable_state (const GValue* value); -GType photo_reimport_editable_state_get_type (void) G_GNUC_CONST; -GFile* media_source_get_master_file (MediaSource* self); -GFile* photo_get_editable_file (Photo* self); -void photo_finish_update_master_metadata (Photo* self, - PhotoReimportMasterState* state, - GError** error); -void photo_finish_update_editable_metadata (Photo* self, - PhotoReimportEditableState* state, - GError** error); -static void metadata_writer_on_update_cancelled (MetadataWriter* self, - BackgroundJob* j); -static void g_cclosure_user_marshal_VOID__UINT_UINT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void _metadata_writer_on_update_completed_completion_callback (BackgroundJob* job, - gpointer self); -static void _metadata_writer_on_update_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self); -gpointer abstract_semaphore_ref (gpointer instance); -void abstract_semaphore_unref (gpointer instance); -GParamSpec* param_spec_abstract_semaphore (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_abstract_semaphore (GValue* value, - gpointer v_object); -void value_take_abstract_semaphore (GValue* value, - gpointer v_object); -gpointer value_get_abstract_semaphore (const GValue* value); -GType abstract_semaphore_get_type (void) G_GNUC_CONST; -BackgroundJob* background_job_construct (GType object_type, - GObject* owner, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target, - AbstractSemaphore* completion_semaphore); -static void metadata_writer_commit_job_real_execute (BackgroundJob* base); -static void metadata_writer_commit_job_commit_master (MetadataWriterCommitJob* self, - GError** error); -static void metadata_writer_commit_job_commit_editable (MetadataWriterCommitJob* self, - GError** error); -gboolean photo_has_editable (Photo* self); -GType photo_file_format_get_type (void) G_GNUC_CONST; -PhotoFileFormat photo_get_master_file_format (Photo* self); -gboolean photo_file_format_can_write_metadata (PhotoFileFormat self); -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -PhotoMetadata* photo_get_master_metadata (Photo* self, - GError** error); -static gboolean metadata_writer_commit_job_update_metadata (MetadataWriterCommitJob* self, - PhotoMetadata* metadata, - gboolean skip_orientation); -void library_monitor_blacklist_file (GFile* file, - const gchar* reason); -gboolean photo_persist_master_metadata (Photo* self, - PhotoMetadata* metadata, - PhotoReimportMasterState* * state, - GError** error); -void library_monitor_unblacklist_file (GFile* file); -PhotoFileFormat* photo_get_editable_file_format (Photo* self); -PhotoMetadata* photo_get_editable_metadata (Photo* self, - GError** error); -gboolean photo_persist_editable_metadata (Photo* self, - PhotoMetadata* metadata, - PhotoReimportEditableState* * state, - GError** error); -gchar* media_source_get_title (MediaSource* self); -gchar* media_metadata_get_title (MediaMetadata* self); -GType photo_metadata_set_option_get_type (void) G_GNUC_CONST; -void photo_metadata_set_title (PhotoMetadata* self, - const gchar* title, - PhotoMetadataSetOption option); -gchar* media_source_get_comment (MediaSource* self); -gchar* media_metadata_get_comment (MediaMetadata* self); -void photo_metadata_set_comment (PhotoMetadata* self, - const gchar* comment, - PhotoMetadataSetOption option); -GType rating_get_type (void) G_GNUC_CONST; -Rating media_source_get_rating (MediaSource* self); -Rating photo_metadata_get_rating (PhotoMetadata* self); -void photo_metadata_set_rating (PhotoMetadata* self, - Rating rating); -time_t media_source_get_exposure_time (MediaSource* self); -gpointer metadata_date_time_ref (gpointer instance); -void metadata_date_time_unref (gpointer instance); -GParamSpec* param_spec_metadata_date_time (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_metadata_date_time (GValue* value, - gpointer v_object); -void value_take_metadata_date_time (GValue* value, - gpointer v_object); -gpointer value_get_metadata_date_time (const GValue* value); -GType metadata_date_time_get_type (void) G_GNUC_CONST; -MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self); -time_t metadata_date_time_get_timestamp (MetadataDateTime* self); -MetadataDateTime* metadata_date_time_new (time_t timestamp); -MetadataDateTime* metadata_date_time_construct (GType object_type, - time_t timestamp); -void photo_metadata_set_exposure_date_time (PhotoMetadata* self, - MetadataDateTime* date_time, - PhotoMetadataSetOption option); -Tag* tag_for_path (const gchar* name); -gchar* tag_get_user_visible_name (Tag* self); -gboolean equal_sets (GeeSet* a, - GeeSet* b); -GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify); -void photo_metadata_set_keywords (PhotoMetadata* self, - GeeCollection* keywords, - PhotoMetadataSetOption option); -GType orientation_get_type (void) G_GNUC_CONST; -Orientation photo_get_orientation (Photo* self); -Orientation photo_metadata_get_orientation (PhotoMetadata* self); -void photo_metadata_set_orientation (PhotoMetadata* self, - Orientation orientation); -void photo_metadata_set_software (PhotoMetadata* self, - const gchar* software, - const gchar* version); -#define RESOURCES_APP_TITLE "Shotwell" -#define RESOURCES_APP_VERSION _VERSION -static void metadata_writer_commit_job_finalize (BackgroundJob * obj); -static void metadata_writer_finalize (GObject * obj); - -static const gchar* METADATA_WRITER_INTERESTED_PHOTO_METADATA_DETAILS[4] = {"name", "comment", "rating", "exposure-time"}; - -static void -_metadata_writer_on_config_changed_configuration_facade_commit_metadata_to_masters_changed (ConfigurationFacade* _sender, - gpointer self) -{ -#line 220 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_config_changed ((MetadataWriter*) self); -#line 1077 "MetadataWriter.c" -} - - -static void -_metadata_writer_on_importing_photos_media_source_collection_media_import_starting (MediaSourceCollection* _sender, - GeeCollection* media, - gpointer self) -{ -#line 222 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_importing_photos ((MetadataWriter*) self, media); -#line 1088 "MetadataWriter.c" -} - - -static void -_metadata_writer_on_photos_imported_media_source_collection_media_import_completed (MediaSourceCollection* _sender, - GeeCollection* media, - gpointer self) -{ -#line 223 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_photos_imported ((MetadataWriter*) self, media); -#line 1099 "MetadataWriter.c" -} - - -static void -_metadata_writer_on_photos_added_removed_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self) -{ -#line 224 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_photos_added_removed ((MetadataWriter*) self, added, removed); -#line 1111 "MetadataWriter.c" -} - - -static void -_metadata_writer_on_photos_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 225 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_photos_altered ((MetadataWriter*) self, items); -#line 1122 "MetadataWriter.c" -} - - -static void -_metadata_writer_on_collection_frozen_data_collection_frozen (DataCollection* _sender, - gpointer self) -{ -#line 226 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_collection_frozen ((MetadataWriter*) self); -#line 1132 "MetadataWriter.c" -} - - -static void -_metadata_writer_on_collection_thawed_data_collection_thawed (DataCollection* _sender, - gpointer self) -{ -#line 227 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_collection_thawed ((MetadataWriter*) self); -#line 1142 "MetadataWriter.c" -} - - -static void -_metadata_writer_on_photos_destroyed_source_collection_items_destroyed (SourceCollection* _sender, - GeeCollection* destroyed, - gpointer self) -{ -#line 228 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_photos_destroyed ((MetadataWriter*) self, destroyed); -#line 1153 "MetadataWriter.c" -} - - -static void -_metadata_writer_on_tags_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 230 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_tags_altered ((MetadataWriter*) self, items); -#line 1164 "MetadataWriter.c" -} - - -static void -_metadata_writer_on_tag_contents_altered_container_source_collection_container_contents_altered (ContainerSourceCollection* _sender, - ContainerSource* container, - GeeCollection* added, - gboolean relinked, - GeeCollection* removed, - gboolean unlinked, - gpointer self) -{ -#line 231 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_tag_contents_altered ((MetadataWriter*) self, container, added, relinked, removed, unlinked); -#line 1179 "MetadataWriter.c" -} - - -static void -_metadata_writer_on_tag_backlink_removed_container_source_collection_backlink_to_container_removed (ContainerSourceCollection* _sender, - ContainerSource* container, - GeeCollection* sources, - gpointer self) -{ -#line 232 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_tag_backlink_removed ((MetadataWriter*) self, container, sources); -#line 1191 "MetadataWriter.c" -} - - -static void -_metadata_writer_on_application_exiting_application_exiting (Application* _sender, - gboolean panicked, - gpointer self) -{ -#line 236 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_application_exiting ((MetadataWriter*) self); -#line 1202 "MetadataWriter.c" -} - - -static void -_metadata_writer_on_monitor_installed_library_monitor_pool_monitor_installed (LibraryMonitorPool* _sender, - LibraryMonitor* monitor, - gpointer self) -{ -#line 238 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_monitor_installed ((MetadataWriter*) self, monitor); -#line 1213 "MetadataWriter.c" -} - - -static void -_metadata_writer_on_monitor_destroyed_library_monitor_pool_monitor_destroyed (LibraryMonitorPool* _sender, - LibraryMonitor* monitor, - gpointer self) -{ -#line 239 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_monitor_destroyed ((MetadataWriter*) self, monitor); -#line 1224 "MetadataWriter.c" -} - - -static void -_metadata_writer_on_photo_dequeued_dequeued_callback (gconstpointer item, - gpointer self) -{ -#line 180 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_photo_dequeued ((MetadataWriter*) self, (LibraryPhoto*) item); -#line 1234 "MetadataWriter.c" -} - - -static MetadataWriter* -metadata_writer_construct (GType object_type) -{ - MetadataWriter * self = NULL; - HashTimedQueue* _tmp0_; - HashTimedQueue* _tmp1_; - ConfigFacade* _tmp5_; - ConfigFacade* _tmp6_; - ConfigFacade* _tmp7_; - ConfigFacade* _tmp8_; - LibraryPhotoSourceCollection* _tmp9_; - LibraryPhotoSourceCollection* _tmp10_; - LibraryPhotoSourceCollection* _tmp11_; - LibraryPhotoSourceCollection* _tmp12_; - LibraryPhotoSourceCollection* _tmp13_; - LibraryPhotoSourceCollection* _tmp14_; - LibraryPhotoSourceCollection* _tmp15_; - TagSourceCollection* _tmp16_; - TagSourceCollection* _tmp17_; - TagSourceCollection* _tmp18_; - TagSourceCollection* _tmp19_; - TagSourceCollection* _tmp20_; - Application* _tmp21_; - Application* _tmp22_; - LibraryMonitorPool* _tmp23_; - LibraryMonitorPool* _tmp24_; - LibraryMonitorPool* _tmp25_; - LibraryMonitorPool* _tmp26_; -#line 179 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self = (MetadataWriter*) g_object_new (object_type, NULL); -#line 180 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = hash_timed_queue_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, METADATA_WRITER_COMMIT_DELAY_MSEC, _metadata_writer_on_photo_dequeued_dequeued_callback, self, NULL, NULL, NULL, NULL, NULL, NULL, G_PRIORITY_DEFAULT); -#line 180 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _timed_queue_unref0 (self->priv->dirty); -#line 180 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->dirty = _tmp0_; -#line 181 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = self->priv->dirty; -#line 181 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - timed_queue_set_dequeue_spacing_msec (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_TIMED_QUEUE, TimedQueue), METADATA_WRITER_COMMIT_SPACING_MSEC); -#line 186 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_pause (self); -#line 1280 "MetadataWriter.c" - { - const gchar** detail_collection = NULL; - gint detail_collection_length1 = 0; - gint _detail_collection_size_ = 0; - gint detail_it = 0; -#line 189 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - detail_collection = METADATA_WRITER_INTERESTED_PHOTO_METADATA_DETAILS; -#line 189 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - detail_collection_length1 = G_N_ELEMENTS (METADATA_WRITER_INTERESTED_PHOTO_METADATA_DETAILS); -#line 189 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - for (detail_it = 0; detail_it < G_N_ELEMENTS (METADATA_WRITER_INTERESTED_PHOTO_METADATA_DETAILS); detail_it = detail_it + 1) { -#line 1292 "MetadataWriter.c" - gchar* _tmp2_; - gchar* detail = NULL; -#line 189 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = g_strdup (detail_collection[detail_it]); -#line 189 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - detail = _tmp2_; -#line 1299 "MetadataWriter.c" - { - GeeHashSet* _tmp3_; - const gchar* _tmp4_; -#line 190 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = self->priv->interested_photo_details; -#line 190 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = detail; -#line 190 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp4_); -#line 189 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (detail); -#line 1311 "MetadataWriter.c" - } - } - } -#line 193 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = config_facade_get_instance (); -#line 193 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = _tmp5_; -#line 193 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->enabled = configuration_facade_get_commit_metadata_to_masters (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 193 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp6_); -#line 194 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp7_ = config_facade_get_instance (); -#line 194 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp8_ = _tmp7_; -#line 194 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "commit-metadata-to-masters-changed", (GCallback) _metadata_writer_on_config_changed_configuration_facade_commit_metadata_to_masters_changed, self, 0); -#line 194 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp8_); -#line 197 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_force_rescan (self); -#line 199 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp9_ = library_photo_global; -#line 199 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "media-import-starting", (GCallback) _metadata_writer_on_importing_photos_media_source_collection_media_import_starting, self, 0); -#line 200 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp10_ = library_photo_global; -#line 200 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "media-import-completed", (GCallback) _metadata_writer_on_photos_imported_media_source_collection_media_import_completed, self, 0); -#line 201 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp11_ = library_photo_global; -#line 201 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _metadata_writer_on_photos_added_removed_data_collection_contents_altered, self, 0); -#line 202 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp12_ = library_photo_global; -#line 202 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _metadata_writer_on_photos_altered_data_collection_items_altered, self, 0); -#line 203 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp13_ = library_photo_global; -#line 203 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection), "frozen", (GCallback) _metadata_writer_on_collection_frozen_data_collection_frozen, self, 0); -#line 204 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp14_ = library_photo_global; -#line 204 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_COLLECTION, DataCollection), "thawed", (GCallback) _metadata_writer_on_collection_thawed_data_collection_thawed, self, 0); -#line 205 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp15_ = library_photo_global; -#line 205 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-destroyed", (GCallback) _metadata_writer_on_photos_destroyed_source_collection_items_destroyed, self, 0); -#line 207 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp16_ = tag_global; -#line 207 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _metadata_writer_on_tags_altered_data_collection_items_altered, self, 0); -#line 208 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp17_ = tag_global; -#line 208 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), "container-contents-altered", (GCallback) _metadata_writer_on_tag_contents_altered_container_source_collection_container_contents_altered, self, 0); -#line 209 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp18_ = tag_global; -#line 209 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), "backlink-to-container-removed", (GCallback) _metadata_writer_on_tag_backlink_removed_container_source_collection_backlink_to_container_removed, self, 0); -#line 210 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp19_ = tag_global; -#line 210 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_DATA_COLLECTION, DataCollection), "frozen", (GCallback) _metadata_writer_on_collection_frozen_data_collection_frozen, self, 0); -#line 211 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp20_ = tag_global; -#line 211 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_COLLECTION, DataCollection), "thawed", (GCallback) _metadata_writer_on_collection_thawed_data_collection_thawed, self, 0); -#line 213 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp21_ = application_get_instance (); -#line 213 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp22_ = _tmp21_; -#line 213 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_connect_object (_tmp22_, "exiting", (GCallback) _metadata_writer_on_application_exiting_application_exiting, self, 0); -#line 213 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _application_unref0 (_tmp22_); -#line 215 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp23_ = library_monitor_pool_get_instance (); -#line 215 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp24_ = _tmp23_; -#line 215 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_connect_object (_tmp24_, "monitor-installed", (GCallback) _metadata_writer_on_monitor_installed_library_monitor_pool_monitor_installed, self, 0); -#line 215 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _library_monitor_pool_unref0 (_tmp24_); -#line 216 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp25_ = library_monitor_pool_get_instance (); -#line 216 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp26_ = _tmp25_; -#line 216 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_connect_object (_tmp26_, "monitor-destroyed", (GCallback) _metadata_writer_on_monitor_destroyed_library_monitor_pool_monitor_destroyed, self, 0); -#line 216 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _library_monitor_pool_unref0 (_tmp26_); -#line 179 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return self; -#line 1407 "MetadataWriter.c" -} - - -static MetadataWriter* -metadata_writer_new (void) -{ -#line 179 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return metadata_writer_construct (TYPE_METADATA_WRITER); -#line 1416 "MetadataWriter.c" -} - - -void -metadata_writer_init (void) -{ - MetadataWriter* _tmp0_; -#line 243 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = metadata_writer_new (); -#line 243 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (metadata_writer_instance); -#line 243 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_instance = _tmp0_; -#line 1430 "MetadataWriter.c" -} - - -void -metadata_writer_terminate (void) -{ - MetadataWriter* _tmp0_; -#line 247 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = metadata_writer_instance; -#line 247 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp0_ != NULL) { -#line 1442 "MetadataWriter.c" - MetadataWriter* _tmp1_; -#line 248 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = metadata_writer_instance; -#line 248 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_close (_tmp1_); -#line 1448 "MetadataWriter.c" - } -#line 250 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (metadata_writer_instance); -#line 250 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_instance = NULL; -#line 1454 "MetadataWriter.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 254 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return self ? g_object_ref (self) : NULL; -#line 1463 "MetadataWriter.c" -} - - -MetadataWriter* -metadata_writer_get_instance (void) -{ - MetadataWriter* result = NULL; - MetadataWriter* _tmp0_; - MetadataWriter* _tmp1_; -#line 254 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = metadata_writer_instance; -#line 254 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 254 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - result = _tmp1_; -#line 254 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return result; -#line 1481 "MetadataWriter.c" -} - - -void -metadata_writer_force_rescan (MetadataWriter* self) -{ - LibraryPhotoSourceCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; -#line 258 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 259 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = library_photo_global; -#line 259 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection)); -#line 259 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection); -#line 259 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_schedule_if_dirty (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable), "force rescan"); -#line 259 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp2_); -#line 1503 "MetadataWriter.c" -} - - -void -metadata_writer_pause (MetadataWriter* self) -{ - gint _tmp0_; - HashTimedQueue* _tmp1_; -#line 262 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 263 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = self->priv->pause_count; -#line 263 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->pause_count = _tmp0_ + 1; -#line 263 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp0_ != 0) { -#line 264 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 1522 "MetadataWriter.c" - } -#line 266 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = self->priv->dirty; -#line 266 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - timed_queue_pause (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_TIMED_QUEUE, TimedQueue)); -#line 268 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_emit (self, metadata_writer_signals[METADATA_WRITER_PROGRESS_SIGNAL], 0, (guint) 0, (guint) 0); -#line 1530 "MetadataWriter.c" -} - - -void -metadata_writer_unpause (MetadataWriter* self) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; - HashTimedQueue* _tmp4_; -#line 271 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 272 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = self->priv->pause_count; -#line 272 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp1_ == 0) { -#line 272 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = TRUE; -#line 1548 "MetadataWriter.c" - } else { - gint _tmp2_; - gint _tmp3_; -#line 272 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = self->priv->pause_count; -#line 272 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->pause_count = _tmp2_ - 1; -#line 272 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = self->priv->pause_count; -#line 272 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = _tmp3_ != 0; -#line 1560 "MetadataWriter.c" - } -#line 272 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp0_) { -#line 273 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 1566 "MetadataWriter.c" - } -#line 275 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = self->priv->dirty; -#line 275 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - timed_queue_unpause (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_TIMED_QUEUE, TimedQueue)); -#line 1572 "MetadataWriter.c" -} - - -void -metadata_writer_close (MetadataWriter* self) -{ - gboolean _tmp0_; -#line 278 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 279 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = self->priv->closed; -#line 279 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp0_) { -#line 280 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 1588 "MetadataWriter.c" - } -#line 282 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_cancel_all (self, TRUE); -#line 284 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->closed = TRUE; -#line 1594 "MetadataWriter.c" -} - - -static void -metadata_writer_on_config_changed (MetadataWriter* self) -{ - gboolean value = FALSE; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gboolean _tmp2_; - gboolean _tmp3_; - gboolean _tmp4_; - gboolean _tmp5_; - gboolean _tmp6_; -#line 287 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 288 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = config_facade_get_instance (); -#line 288 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = _tmp0_; -#line 288 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = configuration_facade_get_commit_metadata_to_masters (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 288 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp1_); -#line 288 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - value = _tmp2_; -#line 290 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = self->priv->enabled; -#line 290 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = value; -#line 290 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp3_ == _tmp4_) { -#line 291 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 1629 "MetadataWriter.c" - } -#line 293 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = value; -#line 293 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->enabled = _tmp5_; -#line 294 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = self->priv->enabled; -#line 294 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp6_) { -#line 295 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_force_rescan (self); -#line 1641 "MetadataWriter.c" - } else { -#line 297 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_cancel_all (self, FALSE); -#line 1645 "MetadataWriter.c" - } -} - - -static void -metadata_writer_on_application_exiting (MetadataWriter* self) -{ -#line 300 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 301 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_close (self); -#line 1657 "MetadataWriter.c" -} - - -static void -_metadata_writer_on_discovery_completed_directory_monitor_discovery_completed (DirectoryMonitor* _sender, - gpointer self) -{ -#line 305 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_discovery_completed ((MetadataWriter*) self); -#line 1667 "MetadataWriter.c" -} - - -static void -metadata_writer_on_monitor_installed (MetadataWriter* self, - LibraryMonitor* monitor) -{ -#line 304 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 304 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (monitor)); -#line 305 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), "discovery-completed", (GCallback) _metadata_writer_on_discovery_completed_directory_monitor_discovery_completed, self, 0); -#line 1681 "MetadataWriter.c" -} - - -static void -metadata_writer_on_monitor_destroyed (MetadataWriter* self, - LibraryMonitor* monitor) -{ - guint _tmp0_; -#line 308 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 308 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (monitor)); -#line 309 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_parse_name ("discovery-completed", TYPE_DIRECTORY_MONITOR, &_tmp0_, NULL, FALSE); -#line 309 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _metadata_writer_on_discovery_completed_directory_monitor_discovery_completed, self); -#line 1698 "MetadataWriter.c" -} - - -static void -metadata_writer_on_discovery_completed (MetadataWriter* self) -{ -#line 312 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 313 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_unpause (self); -#line 1709 "MetadataWriter.c" -} - - -static void -metadata_writer_on_collection_frozen (MetadataWriter* self) -{ -#line 316 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 317 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_pause (self); -#line 1720 "MetadataWriter.c" -} - - -static void -metadata_writer_on_collection_thawed (MetadataWriter* self) -{ -#line 320 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 321 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_unpause (self); -#line 1731 "MetadataWriter.c" -} - - -static void -metadata_writer_on_importing_photos (MetadataWriter* self, - GeeCollection* media_sources) -{ - GeeHashSet* _tmp0_; -#line 324 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 324 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (GEE_IS_COLLECTION (media_sources)); -#line 325 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = self->priv->importing_photos; -#line 325 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1748 "MetadataWriter.c" -} - - -static void -metadata_writer_on_photos_imported (MetadataWriter* self, - GeeCollection* media_sources) -{ - GeeHashSet* _tmp0_; -#line 328 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 328 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (GEE_IS_COLLECTION (media_sources)); -#line 329 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = self->priv->importing_photos; -#line 329 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - gee_collection_remove_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1765 "MetadataWriter.c" -} - - -static void -metadata_writer_on_photos_added_removed (MetadataWriter* self, - GeeIterable* added, - GeeIterable* removed) -{ - gboolean _tmp0_ = FALSE; -#line 332 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 332 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added)); -#line 332 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed)); -#line 335 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (added != NULL) { -#line 1783 "MetadataWriter.c" - gboolean _tmp1_; -#line 335 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = self->priv->enabled; -#line 335 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = _tmp1_; -#line 1789 "MetadataWriter.c" - } else { -#line 335 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = FALSE; -#line 1793 "MetadataWriter.c" - } -#line 335 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp0_) { -#line 336 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_schedule_if_dirty (self, G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_ITERABLE, GeeIterable), "added to LibraryPhoto.global"); -#line 1799 "MetadataWriter.c" - } -#line 339 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (removed != NULL) { -#line 1803 "MetadataWriter.c" - gboolean cancelled = FALSE; - gboolean _tmp9_; -#line 340 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - cancelled = FALSE; -#line 1808 "MetadataWriter.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp2_; -#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = gee_iterable_iterator (removed); -#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _object_it = _tmp2_; -#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - while (TRUE) { -#line 1818 "MetadataWriter.c" - GeeIterator* _tmp3_; - DataObject* object = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - gboolean _tmp6_ = FALSE; - DataObject* _tmp7_; -#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = _object_it; -#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - break; -#line 1831 "MetadataWriter.c" - } -#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = _object_it; -#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - object = (DataObject*) _tmp5_; -#line 342 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp7_ = object; -#line 342 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (metadata_writer_cancel_job (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_LIBRARY_PHOTO, LibraryPhoto))) { -#line 342 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = TRUE; -#line 1845 "MetadataWriter.c" - } else { - gboolean _tmp8_; -#line 342 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp8_ = cancelled; -#line 342 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = _tmp8_; -#line 1852 "MetadataWriter.c" - } -#line 342 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - cancelled = _tmp6_; -#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (object); -#line 1858 "MetadataWriter.c" - } -#line 341 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_object_it); -#line 1862 "MetadataWriter.c" - } -#line 344 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp9_ = cancelled; -#line 344 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp9_) { -#line 1868 "MetadataWriter.c" - guint _tmp10_; - guint _tmp11_; -#line 345 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp10_ = self->priv->outstanding_completed; -#line 345 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp11_ = self->priv->outstanding_total; -#line 345 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_emit (self, metadata_writer_signals[METADATA_WRITER_PROGRESS_SIGNAL], 0, _tmp10_, _tmp11_); -#line 1877 "MetadataWriter.c" - } - } -} - - -static void -metadata_writer_on_photos_altered (MetadataWriter* self, - GeeMap* items) -{ - GeeHashSet* photos = NULL; - GeeHashSet* _tmp33_; -#line 349 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 349 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (GEE_IS_MAP (items)); -#line 350 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photos = NULL; -#line 1895 "MetadataWriter.c" - { - GeeIterator* _object_it = NULL; - GeeSet* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = gee_map_get_keys (items); -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = _tmp0_; -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = _tmp1_; -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = _tmp3_; -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp2_); -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _object_it = _tmp4_; -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - while (TRUE) { -#line 1919 "MetadataWriter.c" - GeeIterator* _tmp5_; - DataObject* object = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - LibraryPhoto* photo = NULL; - DataObject* _tmp8_; - LibraryPhoto* _tmp9_; - LibraryPhoto* _tmp10_; - LibraryPhoto* _tmp11_; - Alteration* alteration = NULL; - DataObject* _tmp12_; - gpointer _tmp13_; - Alteration* _tmp14_; - GeeCollection* details = NULL; - Alteration* _tmp19_; - GeeCollection* _tmp20_; - GeeCollection* _tmp21_; -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = _object_it; -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - break; -#line 1943 "MetadataWriter.c" - } -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = _object_it; -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - object = (DataObject*) _tmp7_; -#line 352 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp8_ = object; -#line 352 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 352 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo = _tmp9_; -#line 356 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp10_ = photo; -#line 356 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp11_ = self->priv->ignore_photo_alteration; -#line 356 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp10_ == _tmp11_) { -#line 357 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photo); -#line 357 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (object); -#line 357 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - continue; -#line 1969 "MetadataWriter.c" - } -#line 359 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp12_ = object; -#line 359 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp13_ = gee_map_get (items, _tmp12_); -#line 359 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - alteration = (Alteration*) _tmp13_; -#line 362 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp14_ = alteration; -#line 362 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (alteration_has_detail (_tmp14_, "image", "orientation")) { -#line 1981 "MetadataWriter.c" - GeeHashSet* _tmp15_; - GeeHashSet* _tmp17_; - LibraryPhoto* _tmp18_; -#line 363 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp15_ = photos; -#line 363 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp15_ == NULL) { -#line 1989 "MetadataWriter.c" - GeeHashSet* _tmp16_; -#line 364 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp16_ = gee_hash_set_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 364 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photos); -#line 364 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photos = _tmp16_; -#line 1997 "MetadataWriter.c" - } -#line 366 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp17_ = photos; -#line 366 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp18_ = photo; -#line 366 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp18_); -#line 368 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _alteration_unref0 (alteration); -#line 368 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photo); -#line 368 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (object); -#line 368 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - continue; -#line 2013 "MetadataWriter.c" - } -#line 372 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp19_ = alteration; -#line 372 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp20_ = alteration_get_details (_tmp19_, "metadata"); -#line 372 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - details = _tmp20_; -#line 373 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp21_ = details; -#line 373 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp21_ == NULL) { -#line 374 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (details); -#line 374 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _alteration_unref0 (alteration); -#line 374 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photo); -#line 374 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (object); -#line 374 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - continue; -#line 2035 "MetadataWriter.c" - } - { - GeeIterator* _detail_it = NULL; - GeeCollection* _tmp22_; - GeeIterator* _tmp23_; -#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp22_ = details; -#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp23_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _detail_it = _tmp23_; -#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - while (TRUE) { -#line 2049 "MetadataWriter.c" - GeeIterator* _tmp24_; - gchar* detail = NULL; - GeeIterator* _tmp25_; - gpointer _tmp26_; - GeeHashSet* _tmp27_; - const gchar* _tmp28_; -#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp24_ = _detail_it; -#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!gee_iterator_next (_tmp24_)) { -#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - break; -#line 2062 "MetadataWriter.c" - } -#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp25_ = _detail_it; -#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp26_ = gee_iterator_get (_tmp25_); -#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - detail = (gchar*) _tmp26_; -#line 378 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp27_ = self->priv->interested_photo_details; -#line 378 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp28_ = detail; -#line 378 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp28_)) { -#line 2076 "MetadataWriter.c" - GeeHashSet* _tmp29_; - GeeHashSet* _tmp31_; - LibraryPhoto* _tmp32_; -#line 379 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp29_ = photos; -#line 379 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp29_ == NULL) { -#line 2084 "MetadataWriter.c" - GeeHashSet* _tmp30_; -#line 380 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp30_ = gee_hash_set_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 380 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photos); -#line 380 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photos = _tmp30_; -#line 2092 "MetadataWriter.c" - } -#line 382 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp31_ = photos; -#line 382 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp32_ = photo; -#line 382 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp32_); -#line 384 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (detail); -#line 384 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - break; -#line 2104 "MetadataWriter.c" - } -#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (detail); -#line 2108 "MetadataWriter.c" - } -#line 377 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_detail_it); -#line 2112 "MetadataWriter.c" - } -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (details); -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _alteration_unref0 (alteration); -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photo); -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (object); -#line 2122 "MetadataWriter.c" - } -#line 351 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_object_it); -#line 2126 "MetadataWriter.c" - } -#line 389 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp33_ = photos; -#line 389 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp33_ != NULL) { -#line 2132 "MetadataWriter.c" - GeeHashSet* _tmp34_; -#line 390 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp34_ = photos; -#line 390 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_photos_are_dirty (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection), "alteration", FALSE); -#line 2138 "MetadataWriter.c" - } -#line 349 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photos); -#line 2142 "MetadataWriter.c" -} - - -static void -metadata_writer_on_photos_destroyed (MetadataWriter* self, - GeeCollection* destroyed) -{ -#line 393 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 393 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (GEE_IS_COLLECTION (destroyed)); -#line 2154 "MetadataWriter.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (destroyed, GEE_TYPE_ITERABLE, GeeIterable)); -#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _source_it = _tmp0_; -#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - while (TRUE) { -#line 2164 "MetadataWriter.c" - GeeIterator* _tmp1_; - DataSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - LibraryPhoto* photo = NULL; - DataSource* _tmp4_; - LibraryPhoto* _tmp5_; - LibraryPhoto* _tmp6_; - GeeHashSet* _tmp7_; - LibraryPhoto* _tmp8_; -#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = _source_it; -#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - break; -#line 2181 "MetadataWriter.c" - } -#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = _source_it; -#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - source = (DataSource*) _tmp3_; -#line 395 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = source; -#line 395 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 395 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo = _tmp5_; -#line 396 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = photo; -#line 396 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_cancel_job (self, _tmp6_); -#line 397 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp7_ = self->priv->importing_photos; -#line 397 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp8_ = photo; -#line 397 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp8_); -#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photo); -#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (source); -#line 2209 "MetadataWriter.c" - } -#line 394 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_source_it); -#line 2213 "MetadataWriter.c" - } -} - - -static void -metadata_writer_on_tags_altered (MetadataWriter* self, - GeeMap* map) -{ - GeeHashSet* photos = NULL; - GeeHashSet* _tmp27_; -#line 401 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 401 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (GEE_IS_MAP (map)); -#line 402 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photos = NULL; -#line 2230 "MetadataWriter.c" - { - GeeIterator* _object_it = NULL; - GeeSet* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = gee_map_get_keys (map); -#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = _tmp0_; -#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = _tmp1_; -#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = _tmp3_; -#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp2_); -#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _object_it = _tmp4_; -#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - while (TRUE) { -#line 2254 "MetadataWriter.c" - GeeIterator* _tmp5_; - DataObject* object = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - DataObject* _tmp8_; - gpointer _tmp9_; - Alteration* _tmp10_; - gboolean _tmp11_; - GeeHashSet* _tmp12_; -#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = _object_it; -#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - break; -#line 2270 "MetadataWriter.c" - } -#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = _object_it; -#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - object = (DataObject*) _tmp7_; -#line 404 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp8_ = object; -#line 404 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp9_ = gee_map_get (map, _tmp8_); -#line 404 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp10_ = (Alteration*) _tmp9_; -#line 404 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp11_ = !alteration_has_detail (_tmp10_, "metadata", "name"); -#line 404 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _alteration_unref0 (_tmp10_); -#line 404 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp11_) { -#line 405 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (object); -#line 405 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - continue; -#line 2294 "MetadataWriter.c" - } -#line 407 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp12_ = photos; -#line 407 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp12_ == NULL) { -#line 2300 "MetadataWriter.c" - GeeHashSet* _tmp13_; -#line 408 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp13_ = gee_hash_set_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 408 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photos); -#line 408 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photos = _tmp13_; -#line 2308 "MetadataWriter.c" - } - { - GeeIterator* _media_it = NULL; - DataObject* _tmp14_; - GeeCollection* _tmp15_; - GeeCollection* _tmp16_; - GeeIterator* _tmp17_; - GeeIterator* _tmp18_; -#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp14_ = object; -#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp15_ = tag_get_sources (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_TAG, Tag)); -#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp16_ = _tmp15_; -#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp17_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp18_ = _tmp17_; -#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp16_); -#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _media_it = _tmp18_; -#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - while (TRUE) { -#line 2333 "MetadataWriter.c" - GeeIterator* _tmp19_; - MediaSource* media = NULL; - GeeIterator* _tmp20_; - gpointer _tmp21_; - LibraryPhoto* photo = NULL; - MediaSource* _tmp22_; - LibraryPhoto* _tmp23_; - LibraryPhoto* _tmp24_; -#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp19_ = _media_it; -#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!gee_iterator_next (_tmp19_)) { -#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - break; -#line 2348 "MetadataWriter.c" - } -#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp20_ = _media_it; -#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp21_ = gee_iterator_get (_tmp20_); -#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - media = (MediaSource*) _tmp21_; -#line 411 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp22_ = media; -#line 411 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp22_) : NULL); -#line 411 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo = _tmp23_; -#line 412 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp24_ = photo; -#line 412 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp24_ != NULL) { -#line 2366 "MetadataWriter.c" - GeeHashSet* _tmp25_; - LibraryPhoto* _tmp26_; -#line 413 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp25_ = photos; -#line 413 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp26_ = photo; -#line 413 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp26_); -#line 2375 "MetadataWriter.c" - } -#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photo); -#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (media); -#line 2381 "MetadataWriter.c" - } -#line 410 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_media_it); -#line 2385 "MetadataWriter.c" - } -#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (object); -#line 2389 "MetadataWriter.c" - } -#line 403 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_object_it); -#line 2393 "MetadataWriter.c" - } -#line 417 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp27_ = photos; -#line 417 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp27_ != NULL) { -#line 2399 "MetadataWriter.c" - GeeHashSet* _tmp28_; -#line 418 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp28_ = photos; -#line 418 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_photos_are_dirty (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection), "tag renamed", FALSE); -#line 2405 "MetadataWriter.c" - } -#line 401 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photos); -#line 2409 "MetadataWriter.c" -} - - -static void -metadata_writer_on_tag_contents_altered (MetadataWriter* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinking, - GeeCollection* removed, - gboolean unlinking) -{ - Tag* tag = NULL; - Tag* _tmp0_; - gboolean _tmp1_ = FALSE; - gboolean _tmp21_ = FALSE; -#line 421 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 421 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (container)); -#line 421 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 421 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 423 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (container, TYPE_TAG, Tag)); -#line 423 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - tag = _tmp0_; -#line 425 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (added != NULL) { -#line 425 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = !relinking; -#line 2441 "MetadataWriter.c" - } else { -#line 425 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = FALSE; -#line 2445 "MetadataWriter.c" - } -#line 425 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp1_) { -#line 2449 "MetadataWriter.c" - GeeArrayList* added_photos = NULL; - GeeArrayList* _tmp2_; - GeeArrayList* _tmp15_; - Tag* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; -#line 426 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 426 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - added_photos = _tmp2_; -#line 2462 "MetadataWriter.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp3_; -#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_ITERABLE, GeeIterable)); -#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _source_it = _tmp3_; -#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - while (TRUE) { -#line 2472 "MetadataWriter.c" - GeeIterator* _tmp4_; - DataSource* source = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - LibraryPhoto* photo = NULL; - DataSource* _tmp7_; - LibraryPhoto* _tmp8_; - gboolean _tmp9_ = FALSE; - LibraryPhoto* _tmp10_; -#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = _source_it; -#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - break; -#line 2488 "MetadataWriter.c" - } -#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = _source_it; -#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - source = (DataSource*) _tmp6_; -#line 428 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp7_ = source; -#line 428 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp7_) : NULL); -#line 428 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo = _tmp8_; -#line 429 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp10_ = photo; -#line 429 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp10_ != NULL) { -#line 2506 "MetadataWriter.c" - GeeHashSet* _tmp11_; - LibraryPhoto* _tmp12_; -#line 429 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp11_ = self->priv->importing_photos; -#line 429 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp12_ = photo; -#line 429 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp9_ = !gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp12_); -#line 2515 "MetadataWriter.c" - } else { -#line 429 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp9_ = FALSE; -#line 2519 "MetadataWriter.c" - } -#line 429 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp9_) { -#line 2523 "MetadataWriter.c" - GeeArrayList* _tmp13_; - LibraryPhoto* _tmp14_; -#line 430 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp13_ = added_photos; -#line 430 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp14_ = photo; -#line 430 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_); -#line 2532 "MetadataWriter.c" - } -#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photo); -#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (source); -#line 2538 "MetadataWriter.c" - } -#line 427 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_source_it); -#line 2542 "MetadataWriter.c" - } -#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp15_ = added_photos; -#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp16_ = tag; -#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp17_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_OBJECT, DataObject)); -#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp18_ = _tmp17_; -#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp19_ = g_strdup_printf ("added to %s", _tmp18_); -#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp20_ = _tmp19_; -#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_photos_are_dirty (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection), _tmp20_, FALSE); -#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (_tmp20_); -#line 433 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (_tmp18_); -#line 425 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (added_photos); -#line 2564 "MetadataWriter.c" - } -#line 436 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (removed != NULL) { -#line 436 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp21_ = !unlinking; -#line 2570 "MetadataWriter.c" - } else { -#line 436 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp21_ = FALSE; -#line 2574 "MetadataWriter.c" - } -#line 436 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp21_) { -#line 2578 "MetadataWriter.c" - GeeArrayList* removed_photos = NULL; - GeeArrayList* _tmp22_; - GeeArrayList* _tmp32_; - Tag* _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; - gchar* _tmp37_; -#line 437 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp22_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 437 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - removed_photos = _tmp22_; -#line 2591 "MetadataWriter.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp23_; -#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp23_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_ITERABLE, GeeIterable)); -#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _source_it = _tmp23_; -#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - while (TRUE) { -#line 2601 "MetadataWriter.c" - GeeIterator* _tmp24_; - DataSource* source = NULL; - GeeIterator* _tmp25_; - gpointer _tmp26_; - LibraryPhoto* photo = NULL; - DataSource* _tmp27_; - LibraryPhoto* _tmp28_; - LibraryPhoto* _tmp29_; -#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp24_ = _source_it; -#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!gee_iterator_next (_tmp24_)) { -#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - break; -#line 2616 "MetadataWriter.c" - } -#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp25_ = _source_it; -#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp26_ = gee_iterator_get (_tmp25_); -#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - source = (DataSource*) _tmp26_; -#line 439 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp27_ = source; -#line 439 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp28_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp27_) : NULL); -#line 439 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo = _tmp28_; -#line 440 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp29_ = photo; -#line 440 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp29_ != NULL) { -#line 2634 "MetadataWriter.c" - GeeArrayList* _tmp30_; - LibraryPhoto* _tmp31_; -#line 441 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp30_ = removed_photos; -#line 441 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp31_ = photo; -#line 441 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp31_); -#line 2643 "MetadataWriter.c" - } -#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photo); -#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (source); -#line 2649 "MetadataWriter.c" - } -#line 438 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_source_it); -#line 2653 "MetadataWriter.c" - } -#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp32_ = removed_photos; -#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp33_ = tag; -#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp34_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_DATA_OBJECT, DataObject)); -#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp35_ = _tmp34_; -#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp36_ = g_strdup_printf ("removed from %s", _tmp35_); -#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp37_ = _tmp36_; -#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_photos_are_dirty (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_COLLECTION, GeeCollection), _tmp37_, FALSE); -#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (_tmp37_); -#line 444 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (_tmp35_); -#line 436 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (removed_photos); -#line 2675 "MetadataWriter.c" - } -#line 421 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (tag); -#line 2679 "MetadataWriter.c" -} - - -static void -metadata_writer_on_tag_backlink_removed (MetadataWriter* self, - ContainerSource* container, - GeeCollection* sources) -{ - GeeArrayList* photos = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; -#line 448 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 448 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (container)); -#line 448 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 449 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 449 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photos = _tmp0_; -#line 2705 "MetadataWriter.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp1_; -#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _source_it = _tmp1_; -#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - while (TRUE) { -#line 2715 "MetadataWriter.c" - GeeIterator* _tmp2_; - DataSource* source = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - LibraryPhoto* photo = NULL; - DataSource* _tmp5_; - LibraryPhoto* _tmp6_; - LibraryPhoto* _tmp7_; -#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = _source_it; -#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - break; -#line 2730 "MetadataWriter.c" - } -#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = _source_it; -#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - source = (DataSource*) _tmp4_; -#line 451 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = source; -#line 451 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp5_) : NULL); -#line 451 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo = _tmp6_; -#line 452 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp7_ = photo; -#line 452 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp7_ != NULL) { -#line 2748 "MetadataWriter.c" - GeeArrayList* _tmp8_; - LibraryPhoto* _tmp9_; -#line 453 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp8_ = photos; -#line 453 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp9_ = photo; -#line 453 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp9_); -#line 2757 "MetadataWriter.c" - } -#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photo); -#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (source); -#line 2763 "MetadataWriter.c" - } -#line 450 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_source_it); -#line 2767 "MetadataWriter.c" - } -#line 456 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp10_ = photos; -#line 456 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp11_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (container, TYPE_DATA_OBJECT, DataObject)); -#line 456 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp12_ = _tmp11_; -#line 456 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp13_ = g_strdup_printf ("backlink removed from %s", _tmp12_); -#line 456 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp14_ = _tmp13_; -#line 456 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_photos_are_dirty (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection), _tmp14_, FALSE); -#line 456 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (_tmp14_); -#line 456 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (_tmp12_); -#line 448 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photos); -#line 2787 "MetadataWriter.c" -} - - -static void -metadata_writer_count_enqueued_work (MetadataWriter* self, - gint count, - gboolean report) -{ - guint _tmp0_; -#line 459 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 460 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = self->priv->outstanding_total; -#line 460 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->outstanding_total = _tmp0_ + count; -#line 466 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (report) { -#line 2805 "MetadataWriter.c" - guint _tmp1_; - guint _tmp2_; -#line 467 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = self->priv->outstanding_completed; -#line 467 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = self->priv->outstanding_total; -#line 467 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_emit (self, metadata_writer_signals[METADATA_WRITER_PROGRESS_SIGNAL], 0, _tmp1_, _tmp2_); -#line 2814 "MetadataWriter.c" - } -} - - -static void -metadata_writer_count_cancelled_work (MetadataWriter* self, - gint count, - gboolean report) -{ - guint _tmp0_ = 0U; - guint _tmp1_; - guint _tmp3_; - guint _tmp4_; -#line 470 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 471 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = self->priv->outstanding_total; -#line 471 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp1_ >= ((guint) count)) { -#line 2834 "MetadataWriter.c" - guint _tmp2_; -#line 471 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = self->priv->outstanding_total; -#line 471 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = _tmp2_ - count; -#line 2840 "MetadataWriter.c" - } else { -#line 471 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = (guint) 0; -#line 2844 "MetadataWriter.c" - } -#line 471 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->outstanding_total = _tmp0_; -#line 472 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = self->priv->outstanding_completed; -#line 472 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = self->priv->outstanding_total; -#line 472 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp3_ >= _tmp4_) { -#line 473 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->outstanding_completed = (guint) 0; -#line 474 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->outstanding_total = (guint) 0; -#line 2858 "MetadataWriter.c" - } -#line 481 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (report) { -#line 2862 "MetadataWriter.c" - guint _tmp5_; - guint _tmp6_; -#line 482 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = self->priv->outstanding_completed; -#line 482 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = self->priv->outstanding_total; -#line 482 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_emit (self, metadata_writer_signals[METADATA_WRITER_PROGRESS_SIGNAL], 0, _tmp5_, _tmp6_); -#line 2871 "MetadataWriter.c" - } -} - - -static void -metadata_writer_count_completed_work (MetadataWriter* self, - gint count, - gboolean report) -{ - guint _tmp0_; - guint _tmp1_; - guint _tmp2_; -#line 485 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 486 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = self->priv->outstanding_completed; -#line 486 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->outstanding_completed = _tmp0_ + count; -#line 487 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = self->priv->outstanding_completed; -#line 487 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = self->priv->outstanding_total; -#line 487 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp1_ >= _tmp2_) { -#line 488 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->outstanding_completed = (guint) 0; -#line 489 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->outstanding_total = (guint) 0; -#line 2900 "MetadataWriter.c" - } -#line 496 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (report) { -#line 2904 "MetadataWriter.c" - guint _tmp3_; - guint _tmp4_; -#line 497 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = self->priv->outstanding_completed; -#line 497 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = self->priv->outstanding_total; -#line 497 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_emit (self, metadata_writer_signals[METADATA_WRITER_PROGRESS_SIGNAL], 0, _tmp3_, _tmp4_); -#line 2913 "MetadataWriter.c" - } -} - - -static void -metadata_writer_schedule_if_dirty (MetadataWriter* self, - GeeIterable* media_sources, - const gchar* reason) -{ - GeeArrayList* photos = NULL; - GeeArrayList* _tmp14_; -#line 500 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 500 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (GEE_IS_ITERABLE (media_sources)); -#line 500 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (reason != NULL); -#line 501 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photos = NULL; -#line 2933 "MetadataWriter.c" - { - GeeIterator* _media_it = NULL; - GeeIterator* _tmp0_; -#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = gee_iterable_iterator (media_sources); -#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _media_it = _tmp0_; -#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - while (TRUE) { -#line 2943 "MetadataWriter.c" - GeeIterator* _tmp1_; - MediaSource* media = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - LibraryPhoto* photo = NULL; - MediaSource* _tmp4_; - LibraryPhoto* _tmp5_; - LibraryPhoto* _tmp6_; - GeeHashSet* _tmp7_; - LibraryPhoto* _tmp8_; - LibraryPhoto* _tmp9_; -#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = _media_it; -#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - break; -#line 2961 "MetadataWriter.c" - } -#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = _media_it; -#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - media = (MediaSource*) _tmp3_; -#line 503 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = media; -#line 503 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp4_) : NULL); -#line 503 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo = _tmp5_; -#line 504 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = photo; -#line 504 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp6_ == NULL) { -#line 505 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photo); -#line 505 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (media); -#line 505 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - continue; -#line 2985 "MetadataWriter.c" - } -#line 508 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp7_ = self->priv->importing_photos; -#line 508 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp8_ = photo; -#line 508 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp8_)) { -#line 509 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photo); -#line 509 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (media); -#line 509 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - continue; -#line 2999 "MetadataWriter.c" - } -#line 511 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp9_ = photo; -#line 511 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (photo_is_master_metadata_dirty (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO, Photo))) { -#line 3005 "MetadataWriter.c" - GeeArrayList* _tmp10_; - GeeArrayList* _tmp12_; - LibraryPhoto* _tmp13_; -#line 512 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp10_ = photos; -#line 512 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp10_ == NULL) { -#line 3013 "MetadataWriter.c" - GeeArrayList* _tmp11_; -#line 513 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp11_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 513 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photos); -#line 513 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photos = _tmp11_; -#line 3021 "MetadataWriter.c" - } -#line 515 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp12_ = photos; -#line 515 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp13_ = photo; -#line 515 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp13_); -#line 3029 "MetadataWriter.c" - } -#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photo); -#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (media); -#line 3035 "MetadataWriter.c" - } -#line 502 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_media_it); -#line 3039 "MetadataWriter.c" - } -#line 519 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp14_ = photos; -#line 519 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp14_ != NULL) { -#line 3045 "MetadataWriter.c" - GeeArrayList* _tmp15_; -#line 520 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp15_ = photos; -#line 520 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_photos_are_dirty (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection), reason, TRUE); -#line 3051 "MetadataWriter.c" - } -#line 500 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photos); -#line 3055 "MetadataWriter.c" -} - - -static void -metadata_writer_photos_are_dirty (MetadataWriter* self, - GeeCollection* photos, - const gchar* reason, - gboolean already_marked) -{ - gint _tmp0_; - gint _tmp1_; - gboolean _tmp22_ = FALSE; - gboolean _tmp23_; - gint _tmp32_; - gint _tmp33_; - GError * _inner_error_ = NULL; -#line 524 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 524 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (GEE_IS_COLLECTION (photos)); -#line 524 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (reason != NULL); -#line 525 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = gee_collection_get_size (photos); -#line 525 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = _tmp0_; -#line 525 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp1_ == 0) { -#line 526 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 3086 "MetadataWriter.c" - } - { - GeeIterator* _photo_it = NULL; - GeeIterator* _tmp2_; -#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_ITERABLE, GeeIterable)); -#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _photo_it = _tmp2_; -#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - while (TRUE) { -#line 3097 "MetadataWriter.c" - GeeIterator* _tmp3_; - LibraryPhoto* photo = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - LibraryPhoto* _tmp6_; -#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = _photo_it; -#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - break; -#line 3109 "MetadataWriter.c" - } -#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = _photo_it; -#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo = (LibraryPhoto*) _tmp5_; -#line 530 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = photo; -#line 530 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_cancel_job (self, _tmp6_); -#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photo); -#line 3123 "MetadataWriter.c" - } -#line 529 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_photo_it); -#line 3127 "MetadataWriter.c" - } -#line 533 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!already_marked) { -#line 3131 "MetadataWriter.c" - { - LibraryPhotoSourceCollection* _tmp7_; - TransactionController* _tmp8_; - TransactionController* _tmp9_; - LibraryPhotoSourceCollection* _tmp15_; - TransactionController* _tmp16_; - TransactionController* _tmp17_; -#line 535 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp7_ = library_photo_global; -#line 535 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp8_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 535 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp9_ = _tmp8_; -#line 535 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - transaction_controller_begin (_tmp9_); -#line 3147 "MetadataWriter.c" - { - GeeIterator* _photo_it = NULL; - GeeIterator* _tmp10_; -#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_ITERABLE, GeeIterable)); -#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _photo_it = _tmp10_; -#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - while (TRUE) { -#line 3157 "MetadataWriter.c" - GeeIterator* _tmp11_; - LibraryPhoto* photo = NULL; - GeeIterator* _tmp12_; - gpointer _tmp13_; - LibraryPhoto* _tmp14_; -#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp11_ = _photo_it; -#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!gee_iterator_next (_tmp11_)) { -#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - break; -#line 3169 "MetadataWriter.c" - } -#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp12_ = _photo_it; -#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp13_ = gee_iterator_get (_tmp12_); -#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo = (LibraryPhoto*) _tmp13_; -#line 538 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp14_ = photo; -#line 538 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo_set_master_metadata_dirty (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PHOTO, Photo), TRUE, &_inner_error_); -#line 538 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 538 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photo); -#line 538 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_photo_it); -#line 3187 "MetadataWriter.c" - goto __catch563_g_error; - } -#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photo); -#line 3192 "MetadataWriter.c" - } -#line 537 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_photo_it); -#line 3196 "MetadataWriter.c" - } -#line 540 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp15_ = library_photo_global; -#line 540 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp16_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 540 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp17_ = _tmp16_; -#line 540 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - transaction_controller_commit (_tmp17_); -#line 3206 "MetadataWriter.c" - } - goto __finally563; - __catch563_g_error: - { - GError* err = NULL; - GError* _tmp18_; -#line 534 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - err = _inner_error_; -#line 534 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _inner_error_ = NULL; -#line 542 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp18_ = err; -#line 542 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp18_->domain == DATABASE_ERROR) { -#line 3221 "MetadataWriter.c" - GError* _tmp19_; -#line 543 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp19_ = err; -#line 543 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - app_window_database_error ((GError*) _tmp19_); -#line 3227 "MetadataWriter.c" - } else { - GError* _tmp20_; - const gchar* _tmp21_; -#line 545 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp20_ = err; -#line 545 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp21_ = _tmp20_->message; -#line 545 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_error ("MetadataWriter.vala:545: Unable to mark metadata as dirty: %s", _tmp21_); -#line 3237 "MetadataWriter.c" - } -#line 534 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_error_free0 (err); -#line 3241 "MetadataWriter.c" - } - __finally563: -#line 534 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 534 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 534 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_clear_error (&_inner_error_); -#line 534 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 3252 "MetadataWriter.c" - } - } -#line 551 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp23_ = self->priv->closed; -#line 551 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp23_) { -#line 551 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp22_ = TRUE; -#line 3261 "MetadataWriter.c" - } else { - gboolean _tmp24_; -#line 551 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp24_ = self->priv->enabled; -#line 551 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp22_ = !_tmp24_; -#line 3268 "MetadataWriter.c" - } -#line 551 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp22_) { -#line 552 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 3274 "MetadataWriter.c" - } - { - GeeIterator* _photo_it = NULL; - GeeIterator* _tmp25_; -#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp25_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_ITERABLE, GeeIterable)); -#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _photo_it = _tmp25_; -#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - while (TRUE) { -#line 3285 "MetadataWriter.c" - GeeIterator* _tmp26_; - LibraryPhoto* photo = NULL; - GeeIterator* _tmp27_; - gpointer _tmp28_; - gboolean enqueued = FALSE; - HashTimedQueue* _tmp29_; - LibraryPhoto* _tmp30_; - gboolean _tmp31_; -#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp26_ = _photo_it; -#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!gee_iterator_next (_tmp26_)) { -#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - break; -#line 3300 "MetadataWriter.c" - } -#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp27_ = _photo_it; -#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp28_ = gee_iterator_get (_tmp27_); -#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo = (LibraryPhoto*) _tmp28_; -#line 559 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp29_ = self->priv->dirty; -#line 559 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp30_ = photo; -#line 559 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - enqueued = timed_queue_enqueue (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_TIMED_QUEUE, TimedQueue), _tmp30_); -#line 560 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp31_ = enqueued; -#line 560 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _vala_assert (_tmp31_, "enqueued"); -#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (photo); -#line 3320 "MetadataWriter.c" - } -#line 558 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_photo_it); -#line 3324 "MetadataWriter.c" - } -#line 563 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp32_ = gee_collection_get_size (photos); -#line 563 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp33_ = _tmp32_; -#line 563 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_count_enqueued_work (self, _tmp33_, TRUE); -#line 3332 "MetadataWriter.c" -} - - -static void -metadata_writer_cancel_all (MetadataWriter* self, - gboolean wait) -{ - HashTimedQueue* _tmp0_; -#line 566 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 567 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = self->priv->dirty; -#line 567 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - timed_queue_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_TIMED_QUEUE, TimedQueue)); -#line 3347 "MetadataWriter.c" - { - GeeIterator* _job_it = NULL; - GeeHashMap* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeCollection* _tmp4_; - GeeIterator* _tmp5_; - GeeIterator* _tmp6_; -#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = self->priv->pending; -#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = _tmp2_; -#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = _tmp3_; -#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = _tmp5_; -#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp4_); -#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _job_it = _tmp6_; -#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - while (TRUE) { -#line 3374 "MetadataWriter.c" - GeeIterator* _tmp7_; - MetadataWriterCommitJob* job = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; - MetadataWriterCommitJob* _tmp10_; -#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp7_ = _job_it; -#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!gee_iterator_next (_tmp7_)) { -#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - break; -#line 3386 "MetadataWriter.c" - } -#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp8_ = _job_it; -#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp9_ = gee_iterator_get (_tmp8_); -#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - job = (MetadataWriterCommitJob*) _tmp9_; -#line 570 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp10_ = job; -#line 570 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _background_job_unref0 (job); -#line 3400 "MetadataWriter.c" - } -#line 569 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_job_it); -#line 3404 "MetadataWriter.c" - } -#line 572 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (wait) { -#line 3408 "MetadataWriter.c" - Workers* _tmp11_; -#line 573 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp11_ = self->priv->workers; -#line 573 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - workers_wait_for_empty_queue (_tmp11_); -#line 3414 "MetadataWriter.c" - } -#line 575 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_count_cancelled_work (self, G_MAXINT, TRUE); -#line 3418 "MetadataWriter.c" -} - - -static gboolean -metadata_writer_cancel_job (MetadataWriter* self, - LibraryPhoto* photo) -{ - gboolean result = FALSE; - gboolean cancelled = FALSE; - GeeHashMap* _tmp0_; - HashTimedQueue* _tmp7_; -#line 578 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_val_if_fail (IS_METADATA_WRITER (self), FALSE); -#line 578 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), FALSE); -#line 579 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - cancelled = FALSE; -#line 581 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = self->priv->pending; -#line 581 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo)) { -#line 3440 "MetadataWriter.c" - MetadataWriterCommitJob* j = NULL; - GeeHashMap* _tmp1_; - gpointer _tmp2_; - GeeHashSet* _tmp3_; - MetadataWriterCommitJob* _tmp4_; - MetadataWriterCommitJob* _tmp5_; - GeeHashMap* _tmp6_; -#line 582 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = self->priv->pending; -#line 582 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo); -#line 582 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - j = G_TYPE_CHECK_INSTANCE_CAST ((MetadataWriterCommitJob*) _tmp2_, METADATA_WRITER_TYPE_COMMIT_JOB, MetadataWriterCommitJob); -#line 583 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = self->priv->pending_cancel; -#line 583 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = j; -#line 583 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp4_); -#line 584 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = j; -#line 584 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 585 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = self->priv->pending; -#line 585 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo, NULL); -#line 586 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - cancelled = TRUE; -#line 581 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _background_job_unref0 (j); -#line 3472 "MetadataWriter.c" - } -#line 589 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp7_ = self->priv->dirty; -#line 589 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (timed_queue_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_TIMED_QUEUE, TimedQueue), photo)) { -#line 3478 "MetadataWriter.c" - gboolean removed = FALSE; - HashTimedQueue* _tmp8_; - gboolean _tmp9_; - HashTimedQueue* _tmp10_; -#line 590 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp8_ = self->priv->dirty; -#line 590 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - removed = timed_queue_remove_first (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_TIMED_QUEUE, TimedQueue), photo); -#line 591 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp9_ = removed; -#line 591 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _vala_assert (_tmp9_, "removed"); -#line 593 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp10_ = self->priv->dirty; -#line 593 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _vala_assert (!timed_queue_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_TIMED_QUEUE, TimedQueue), photo), "!dirty.contains(photo)"); -#line 595 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_count_cancelled_work (self, 1, FALSE); -#line 596 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - cancelled = TRUE; -#line 3499 "MetadataWriter.c" - } -#line 599 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - result = cancelled; -#line 599 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return result; -#line 3505 "MetadataWriter.c" -} - - -static void -metadata_writer_on_photo_dequeued (MetadataWriter* self, - LibraryPhoto* photo) -{ - gboolean _tmp0_; - GeeSet* keywords = NULL; - GeeCollection* tags = NULL; - TagSourceCollection* _tmp1_; - GeeList* _tmp2_; - GeeCollection* _tmp3_; - GeeHashMap* _tmp14_; - MetadataWriterCommitJob* job = NULL; - GeeSet* _tmp15_; - MetadataWriterCommitJob* _tmp16_; - GeeHashMap* _tmp17_; - MetadataWriterCommitJob* _tmp18_; - Workers* _tmp19_; - MetadataWriterCommitJob* _tmp20_; -#line 602 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 602 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 603 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = self->priv->enabled; -#line 603 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!_tmp0_) { -#line 604 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_count_cancelled_work (self, 1, TRUE); -#line 606 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 3539 "MetadataWriter.c" - } -#line 609 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - keywords = NULL; -#line 610 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = tag_global; -#line 610 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = tag_source_collection_fetch_for_source (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource)); -#line 610 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 611 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = tags; -#line 611 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp3_ != NULL) { -#line 3553 "MetadataWriter.c" - GeeHashSet* _tmp4_; -#line 612 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 612 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (keywords); -#line 612 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - keywords = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_SET, GeeSet); -#line 3561 "MetadataWriter.c" - { - GeeIterator* _tag_it = NULL; - GeeCollection* _tmp5_; - GeeIterator* _tmp6_; -#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = tags; -#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tag_it = _tmp6_; -#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - while (TRUE) { -#line 3574 "MetadataWriter.c" - GeeIterator* _tmp7_; - Tag* tag = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; - GeeSet* _tmp10_; - Tag* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp7_ = _tag_it; -#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!gee_iterator_next (_tmp7_)) { -#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - break; -#line 3589 "MetadataWriter.c" - } -#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp8_ = _tag_it; -#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp9_ = gee_iterator_get (_tmp8_); -#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - tag = (Tag*) _tmp9_; -#line 614 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp10_ = keywords; -#line 614 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp11_ = tag; -#line 614 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp12_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject)); -#line 614 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp13_ = _tmp12_; -#line 614 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection), _tmp13_); -#line 614 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (_tmp13_); -#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (tag); -#line 3611 "MetadataWriter.c" - } -#line 613 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tag_it); -#line 3615 "MetadataWriter.c" - } - } -#line 618 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp14_ = self->priv->pending; -#line 618 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo)) { -#line 619 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_cancel_job (self, photo); -#line 3624 "MetadataWriter.c" - } -#line 621 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp15_ = keywords; -#line 621 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp16_ = metadata_writer_commit_job_new (self, photo, _tmp15_); -#line 621 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - job = _tmp16_; -#line 622 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp17_ = self->priv->pending; -#line 622 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp18_ = job; -#line 622 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo, _tmp18_); -#line 628 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp19_ = self->priv->workers; -#line 628 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp20_ = job; -#line 628 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - workers_enqueue (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 602 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _background_job_unref0 (job); -#line 602 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (tags); -#line 602 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (keywords); -#line 3650 "MetadataWriter.c" -} - - -static gpointer -_background_job_ref0 (gpointer self) -{ -#line 632 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return self ? background_job_ref (self) : NULL; -#line 3659 "MetadataWriter.c" -} - - -static void -metadata_writer_on_update_completed (MetadataWriter* self, - BackgroundJob* j) -{ - MetadataWriterCommitJob* job = NULL; - MetadataWriterCommitJob* _tmp0_; - MetadataWriterCommitJob* _tmp1_; - GError* _tmp2_; - gboolean removed = FALSE; - GeeHashMap* _tmp43_; - MetadataWriterCommitJob* _tmp44_; - LibraryPhoto* _tmp45_; - gboolean _tmp46_; - gboolean _tmp47_; - LibraryPhotoSourceCollection* _tmp48_; - TransactionController* _tmp49_; - TransactionController* _tmp50_; - gboolean _tmp51_ = FALSE; - MetadataWriterCommitJob* _tmp52_; - PhotoReimportMasterState* _tmp53_; - LibraryPhotoSourceCollection* _tmp85_; - TransactionController* _tmp86_; - TransactionController* _tmp87_; - GError * _inner_error_ = NULL; -#line 631 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 631 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 632 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, METADATA_WRITER_TYPE_COMMIT_JOB, MetadataWriterCommitJob)); -#line 632 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - job = _tmp0_; -#line 634 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = job; -#line 634 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = _tmp1_->err; -#line 634 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp2_ != NULL) { -#line 3701 "MetadataWriter.c" - MetadataWriterCommitJob* _tmp3_; - LibraryPhoto* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - MetadataWriterCommitJob* _tmp7_; - GError* _tmp8_; - const gchar* _tmp9_; -#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = job; -#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = _tmp3_->photo; -#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject)); -#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = _tmp5_; -#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp7_ = job; -#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp8_ = _tmp7_->err; -#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp9_ = _tmp8_->message; -#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_warning ("MetadataWriter.vala:635: Unable to write metadata to %s: %s", _tmp6_, _tmp9_); -#line 635 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (_tmp6_); -#line 3727 "MetadataWriter.c" - } else { - MetadataWriterCommitJob* _tmp10_; - gboolean _tmp11_; - MetadataWriterCommitJob* _tmp24_; - LibraryPhoto* _tmp25_; - GFile* _tmp26_; - GFile* _tmp27_; - gboolean _tmp28_; -#line 637 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp10_ = job; -#line 637 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp11_ = _tmp10_->wrote_master; -#line 637 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp11_) { -#line 3742 "MetadataWriter.c" - MetadataWriterCommitJob* _tmp12_; - LibraryPhoto* _tmp13_; - GFile* _tmp14_; - GFile* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; -#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp12_ = job; -#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp13_ = _tmp12_->photo; -#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp14_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp15_ = _tmp14_; -#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp16_ = g_file_get_path (_tmp15_); -#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp17_ = _tmp16_; -#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_message ("MetadataWriter.vala:638: Completed writing metadata to %s", _tmp17_); -#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (_tmp17_); -#line 638 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp15_); -#line 3767 "MetadataWriter.c" - } else { - MetadataWriterCommitJob* _tmp18_; - LibraryPhoto* _tmp19_; - GFile* _tmp20_; - GFile* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; -#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp18_ = job; -#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp19_ = _tmp18_->photo; -#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp20_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp21_ = _tmp20_; -#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp22_ = g_file_get_path (_tmp21_); -#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp23_ = _tmp22_; -#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_message ("MetadataWriter.vala:640: Unable to write metadata to %s", _tmp23_); -#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (_tmp23_); -#line 640 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp21_); -#line 3793 "MetadataWriter.c" - } -#line 642 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp24_ = job; -#line 642 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp25_ = _tmp24_->photo; -#line 642 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp26_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_PHOTO, Photo)); -#line 642 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp27_ = _tmp26_; -#line 642 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp28_ = _tmp27_ != NULL; -#line 642 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp27_); -#line 642 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp28_) { -#line 3809 "MetadataWriter.c" - MetadataWriterCommitJob* _tmp29_; - gboolean _tmp30_; -#line 643 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp29_ = job; -#line 643 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp30_ = _tmp29_->wrote_editable; -#line 643 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp30_) { -#line 3818 "MetadataWriter.c" - MetadataWriterCommitJob* _tmp31_; - LibraryPhoto* _tmp32_; - GFile* _tmp33_; - GFile* _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; -#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp31_ = job; -#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp32_ = _tmp31_->photo; -#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp33_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_PHOTO, Photo)); -#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp34_ = _tmp33_; -#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp35_ = g_file_get_path (_tmp34_); -#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp36_ = _tmp35_; -#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_message ("MetadataWriter.vala:644: Completed writing metadata to %s", _tmp36_); -#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (_tmp36_); -#line 644 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp34_); -#line 3843 "MetadataWriter.c" - } else { - MetadataWriterCommitJob* _tmp37_; - LibraryPhoto* _tmp38_; - GFile* _tmp39_; - GFile* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; -#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp37_ = job; -#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp38_ = _tmp37_->photo; -#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp39_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_PHOTO, Photo)); -#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp40_ = _tmp39_; -#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp41_ = g_file_get_path (_tmp40_); -#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp42_ = _tmp41_; -#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_message ("MetadataWriter.vala:646: Unable to write metadata to %s", _tmp42_); -#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (_tmp42_); -#line 646 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp40_); -#line 3869 "MetadataWriter.c" - } - } - } -#line 650 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp43_ = self->priv->pending; -#line 650 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp44_ = job; -#line 650 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp45_ = _tmp44_->photo; -#line 650 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp46_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp45_, NULL); -#line 650 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - removed = _tmp46_; -#line 651 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp47_ = removed; -#line 651 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _vala_assert (_tmp47_, "removed"); -#line 655 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp48_ = library_photo_global; -#line 655 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp49_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 655 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp50_ = _tmp49_; -#line 655 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - transaction_controller_begin (_tmp50_); -#line 657 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp52_ = job; -#line 657 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp53_ = _tmp52_->reimport_master_state; -#line 657 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp53_ != NULL) { -#line 657 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp51_ = TRUE; -#line 3903 "MetadataWriter.c" - } else { - MetadataWriterCommitJob* _tmp54_; - PhotoReimportEditableState* _tmp55_; -#line 657 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp54_ = job; -#line 657 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp55_ = _tmp54_->reimport_editable_state; -#line 657 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp51_ = _tmp55_ != NULL; -#line 3913 "MetadataWriter.c" - } -#line 657 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp51_) { -#line 3917 "MetadataWriter.c" - LibraryPhoto* _tmp56_; - MetadataWriterCommitJob* _tmp57_; - LibraryPhoto* _tmp58_; - LibraryPhoto* _tmp59_; -#line 660 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp56_ = self->priv->ignore_photo_alteration; -#line 660 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _vala_assert (_tmp56_ == NULL, "ignore_photo_alteration == null"); -#line 661 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp57_ = job; -#line 661 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp58_ = _tmp57_->photo; -#line 661 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp59_ = _g_object_ref0 (_tmp58_); -#line 661 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (self->priv->ignore_photo_alteration); -#line 661 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->ignore_photo_alteration = _tmp59_; -#line 3936 "MetadataWriter.c" - { - MetadataWriterCommitJob* _tmp60_; - PhotoReimportMasterState* _tmp61_; - MetadataWriterCommitJob* _tmp69_; - PhotoReimportEditableState* _tmp70_; -#line 663 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp60_ = job; -#line 663 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp61_ = _tmp60_->reimport_master_state; -#line 663 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp61_ != NULL) { -#line 3948 "MetadataWriter.c" - MetadataWriterCommitJob* _tmp62_; - LibraryPhoto* _tmp63_; - MetadataWriterCommitJob* _tmp64_; - PhotoReimportMasterState* _tmp65_; -#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp62_ = job; -#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp63_ = _tmp62_->photo; -#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp64_ = job; -#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp65_ = _tmp64_->reimport_master_state; -#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo_finish_update_master_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, TYPE_PHOTO, Photo), _tmp65_, &_inner_error_); -#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 3967 "MetadataWriter.c" - goto __catch564_database_error; - } - { - LibraryPhoto* _tmp66_; - MetadataWriterCommitJob* _tmp67_; - LibraryPhoto* _tmp68_; -#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp66_ = self->priv->ignore_photo_alteration; -#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp67_ = job; -#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp68_ = _tmp67_->photo; -#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _vala_assert (_tmp66_ == _tmp68_, "ignore_photo_alteration == job.photo"); -#line 673 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (self->priv->ignore_photo_alteration); -#line 673 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->ignore_photo_alteration = NULL; -#line 3986 "MetadataWriter.c" - } -#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _background_job_unref0 (job); -#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_clear_error (&_inner_error_); -#line 664 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 3996 "MetadataWriter.c" - } - } -#line 666 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp69_ = job; -#line 666 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp70_ = _tmp69_->reimport_editable_state; -#line 666 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp70_ != NULL) { -#line 4005 "MetadataWriter.c" - MetadataWriterCommitJob* _tmp71_; - LibraryPhoto* _tmp72_; - MetadataWriterCommitJob* _tmp73_; - PhotoReimportEditableState* _tmp74_; -#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp71_ = job; -#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp72_ = _tmp71_->photo; -#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp73_ = job; -#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp74_ = _tmp73_->reimport_editable_state; -#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo_finish_update_editable_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, TYPE_PHOTO, Photo), _tmp74_, &_inner_error_); -#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 4024 "MetadataWriter.c" - goto __catch564_database_error; - } - { - LibraryPhoto* _tmp75_; - MetadataWriterCommitJob* _tmp76_; - LibraryPhoto* _tmp77_; -#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp75_ = self->priv->ignore_photo_alteration; -#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp76_ = job; -#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp77_ = _tmp76_->photo; -#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _vala_assert (_tmp75_ == _tmp77_, "ignore_photo_alteration == job.photo"); -#line 673 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (self->priv->ignore_photo_alteration); -#line 673 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->ignore_photo_alteration = NULL; -#line 4043 "MetadataWriter.c" - } -#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _background_job_unref0 (job); -#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_clear_error (&_inner_error_); -#line 667 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 4053 "MetadataWriter.c" - } - } - } - goto __finally564; - __catch564_database_error: - { - GError* err = NULL; - GError* _tmp78_; -#line 662 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - err = _inner_error_; -#line 662 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _inner_error_ = NULL; -#line 669 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp78_ = err; -#line 669 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - app_window_database_error (_tmp78_); -#line 662 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_error_free0 (err); -#line 4072 "MetadataWriter.c" - } - __finally564: - { - LibraryPhoto* _tmp79_; - MetadataWriterCommitJob* _tmp80_; - LibraryPhoto* _tmp81_; -#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp79_ = self->priv->ignore_photo_alteration; -#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp80_ = job; -#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp81_ = _tmp80_->photo; -#line 672 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _vala_assert (_tmp79_ == _tmp81_, "ignore_photo_alteration == job.photo"); -#line 673 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (self->priv->ignore_photo_alteration); -#line 673 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->ignore_photo_alteration = NULL; -#line 4091 "MetadataWriter.c" - } -#line 662 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 662 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _background_job_unref0 (job); -#line 662 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 662 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_clear_error (&_inner_error_); -#line 662 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 4103 "MetadataWriter.c" - } - } else { - } - { - MetadataWriterCommitJob* _tmp82_; - LibraryPhoto* _tmp83_; -#line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp82_ = job; -#line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp83_ = _tmp82_->photo; -#line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo_set_master_metadata_dirty (G_TYPE_CHECK_INSTANCE_CAST (_tmp83_, TYPE_PHOTO, Photo), FALSE, &_inner_error_); -#line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 4120 "MetadataWriter.c" - goto __catch565_database_error; - } -#line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _background_job_unref0 (job); -#line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_clear_error (&_inner_error_); -#line 683 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 4131 "MetadataWriter.c" - } - } - goto __finally565; - __catch565_database_error: - { - GError* err = NULL; - GError* _tmp84_; -#line 682 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - err = _inner_error_; -#line 682 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _inner_error_ = NULL; -#line 685 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp84_ = err; -#line 685 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - app_window_database_error (_tmp84_); -#line 682 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_error_free0 (err); -#line 4149 "MetadataWriter.c" - } - __finally565: -#line 682 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 682 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _background_job_unref0 (job); -#line 682 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 682 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_clear_error (&_inner_error_); -#line 682 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 4162 "MetadataWriter.c" - } -#line 688 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp85_ = library_photo_global; -#line 688 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp86_ = media_source_collection_get_transaction_controller (G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 688 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp87_ = _tmp86_; -#line 688 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - transaction_controller_commit (_tmp87_); -#line 690 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_count_completed_work (self, 1, TRUE); -#line 631 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _background_job_unref0 (job); -#line 4176 "MetadataWriter.c" -} - - -static void -metadata_writer_on_update_cancelled (MetadataWriter* self, - BackgroundJob* j) -{ - gboolean removed = FALSE; - GeeHashSet* _tmp0_; -#line 693 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_METADATA_WRITER (self)); -#line 693 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 694 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = self->priv->pending_cancel; -#line 694 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - removed = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (j, METADATA_WRITER_TYPE_COMMIT_JOB, MetadataWriterCommitJob)); -#line 695 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _vala_assert (removed, "removed"); -#line 697 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_count_cancelled_work (self, 1, TRUE); -#line 4198 "MetadataWriter.c" -} - - -static void -g_cclosure_user_marshal_VOID__UINT_UINT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__UINT_UINT) (gpointer data1, guint arg_1, guint arg_2, gpointer data2); - register GMarshalFunc_VOID__UINT_UINT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (n_param_values == 3); -#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - data1 = closure->data; -#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - data2 = param_values->data[0].v_pointer; -#line 4224 "MetadataWriter.c" - } else { -#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - data1 = param_values->data[0].v_pointer; -#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - data2 = closure->data; -#line 4230 "MetadataWriter.c" - } -#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - callback = (GMarshalFunc_VOID__UINT_UINT) (marshal_data ? marshal_data : cc->callback); -#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - callback (data1, g_value_get_uint (param_values + 1), g_value_get_uint (param_values + 2), data2); -#line 4236 "MetadataWriter.c" -} - - -static void -_metadata_writer_on_update_completed_completion_callback (BackgroundJob* job, - gpointer self) -{ -#line 30 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_update_completed ((MetadataWriter*) self, job); -#line 4246 "MetadataWriter.c" -} - - -static void -_metadata_writer_on_update_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self) -{ -#line 30 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_on_update_cancelled ((MetadataWriter*) self, job); -#line 4256 "MetadataWriter.c" -} - - -static MetadataWriterCommitJob* -metadata_writer_commit_job_construct (GType object_type, - MetadataWriter* owner, - LibraryPhoto* photo, - GeeSet* keywords) -{ - MetadataWriterCommitJob* self = NULL; - GCancellable* _tmp0_; - GCancellable* _tmp1_; - LibraryPhoto* _tmp2_; - GeeSet* _tmp3_; -#line 29 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_val_if_fail (IS_METADATA_WRITER (owner), NULL); -#line 29 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL); -#line 29 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_val_if_fail ((keywords == NULL) || GEE_IS_SET (keywords), NULL); -#line 30 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = g_cancellable_new (); -#line 30 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = _tmp0_; -#line 30 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self = (MetadataWriterCommitJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), _metadata_writer_on_update_completed_completion_callback, owner, _tmp1_, _metadata_writer_on_update_cancelled_cancellation_callback, owner, NULL); -#line 30 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp1_); -#line 32 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = _g_object_ref0 (photo); -#line 32 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (self->photo); -#line 32 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->photo = _tmp2_; -#line 33 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = _g_object_ref0 (keywords); -#line 33 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (self->current_keywords); -#line 33 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->current_keywords = _tmp3_; -#line 29 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return self; -#line 4299 "MetadataWriter.c" -} - - -static MetadataWriterCommitJob* -metadata_writer_commit_job_new (MetadataWriter* owner, - LibraryPhoto* photo, - GeeSet* keywords) -{ -#line 29 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return metadata_writer_commit_job_construct (METADATA_WRITER_TYPE_COMMIT_JOB, owner, photo, keywords); -#line 4310 "MetadataWriter.c" -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 41 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return self ? g_error_copy (self) : NULL; -#line 4319 "MetadataWriter.c" -} - - -static void -metadata_writer_commit_job_real_execute (BackgroundJob* base) -{ - MetadataWriterCommitJob * self; - GError * _inner_error_ = NULL; -#line 36 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, METADATA_WRITER_TYPE_COMMIT_JOB, MetadataWriterCommitJob); -#line 4330 "MetadataWriter.c" - { -#line 38 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_commit_job_commit_master (self, &_inner_error_); -#line 38 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4336 "MetadataWriter.c" - goto __catch566_g_error; - } -#line 39 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_commit_job_commit_editable (self, &_inner_error_); -#line 39 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4343 "MetadataWriter.c" - goto __catch566_g_error; - } - } - goto __finally566; - __catch566_g_error: - { - GError* err = NULL; - GError* _tmp0_; - GError* _tmp1_; -#line 37 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - err = _inner_error_; -#line 37 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _inner_error_ = NULL; -#line 41 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = err; -#line 41 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = _g_error_copy0 (_tmp0_); -#line 41 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_error_free0 (self->err); -#line 41 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->err = _tmp1_; -#line 37 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_error_free0 (err); -#line 4367 "MetadataWriter.c" - } - __finally566: -#line 37 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 37 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 37 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_clear_error (&_inner_error_); -#line 37 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 4378 "MetadataWriter.c" - } -} - - -static void -metadata_writer_commit_job_commit_master (MetadataWriterCommitJob* self, - GError** error) -{ - gboolean skip_orientation = FALSE; - LibraryPhoto* _tmp0_; - LibraryPhoto* _tmp1_; - PhotoMetadata* metadata = NULL; - LibraryPhoto* _tmp2_; - PhotoMetadata* _tmp3_; - PhotoMetadata* _tmp4_; - gboolean _tmp5_; - GError * _inner_error_ = NULL; -#line 45 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (METADATA_WRITER_IS_COMMIT_JOB (self)); -#line 49 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = self->photo; -#line 49 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - skip_orientation = photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO, Photo)); -#line 51 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = self->photo; -#line 51 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!photo_file_format_can_write_metadata (photo_get_master_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO, Photo)))) { -#line 52 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 4408 "MetadataWriter.c" - } -#line 54 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = self->photo; -#line 54 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = photo_get_master_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO, Photo), &_inner_error_); -#line 54 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata = _tmp3_; -#line 54 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 54 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_propagate_error (error, _inner_error_); -#line 54 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 4422 "MetadataWriter.c" - } -#line 55 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = metadata; -#line 55 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = skip_orientation; -#line 55 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (metadata_writer_commit_job_update_metadata (self, _tmp4_, _tmp5_)) { -#line 4430 "MetadataWriter.c" - LibraryPhoto* _tmp6_; - GFile* _tmp7_; - GFile* _tmp8_; -#line 56 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = self->photo; -#line 56 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp7_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 56 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp8_ = _tmp7_; -#line 56 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - library_monitor_blacklist_file (_tmp8_, "MetadataWriter.commit_master"); -#line 56 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp8_); -#line 4444 "MetadataWriter.c" - { - LibraryPhoto* _tmp9_; - PhotoMetadata* _tmp10_; - PhotoReimportMasterState* _tmp11_ = NULL; -#line 58 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp9_ = self->photo; -#line 58 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp10_ = metadata; -#line 58 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo_persist_master_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO, Photo), _tmp10_, &_tmp11_, &_inner_error_); -#line 58 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _photo_reimport_master_state_unref0 (self->reimport_master_state); -#line 58 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->reimport_master_state = _tmp11_; -#line 58 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4461 "MetadataWriter.c" - goto __finally567; - } - } - __finally567: - { - LibraryPhoto* _tmp12_; - GFile* _tmp13_; - GFile* _tmp14_; -#line 60 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp12_ = self->photo; -#line 60 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp13_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 60 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp14_ = _tmp13_; -#line 60 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - library_monitor_unblacklist_file (_tmp14_); -#line 60 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp14_); -#line 4480 "MetadataWriter.c" - } -#line 57 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 57 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_propagate_error (error, _inner_error_); -#line 57 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _media_metadata_unref0 (metadata); -#line 57 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 4490 "MetadataWriter.c" - } - } -#line 64 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->wrote_master = TRUE; -#line 45 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _media_metadata_unref0 (metadata); -#line 4497 "MetadataWriter.c" -} - - -static void -metadata_writer_commit_job_commit_editable (MetadataWriterCommitJob* self, - GError** error) -{ - gboolean _tmp0_ = FALSE; - LibraryPhoto* _tmp1_; - PhotoMetadata* metadata = NULL; - LibraryPhoto* _tmp5_; - PhotoMetadata* _tmp6_; - PhotoMetadata* _tmp7_; - PhotoMetadata* _tmp8_; - GError * _inner_error_ = NULL; -#line 67 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_if_fail (METADATA_WRITER_IS_COMMIT_JOB (self)); -#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = self->photo; -#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO, Photo))) { -#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = TRUE; -#line 4521 "MetadataWriter.c" - } else { - LibraryPhoto* _tmp2_; - PhotoFileFormat* _tmp3_; - PhotoFileFormat* _tmp4_; -#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = self->photo; -#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = photo_get_editable_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO, Photo)); -#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = _tmp3_; -#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = !photo_file_format_can_write_metadata (*_tmp4_); -#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (_tmp4_); -#line 4536 "MetadataWriter.c" - } -#line 68 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp0_) { -#line 69 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 4542 "MetadataWriter.c" - } -#line 71 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = self->photo; -#line 71 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = photo_get_editable_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PHOTO, Photo), &_inner_error_); -#line 71 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata = _tmp6_; -#line 71 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 71 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_propagate_error (error, _inner_error_); -#line 71 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 4556 "MetadataWriter.c" - } -#line 72 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp7_ = metadata; -#line 72 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _vala_assert (_tmp7_ != NULL, "metadata != null"); -#line 74 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp8_ = metadata; -#line 74 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (metadata_writer_commit_job_update_metadata (self, _tmp8_, FALSE)) { -#line 4566 "MetadataWriter.c" - LibraryPhoto* _tmp9_; - GFile* _tmp10_; - GFile* _tmp11_; -#line 75 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp9_ = self->photo; -#line 75 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp10_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO, Photo)); -#line 75 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp11_ = _tmp10_; -#line 75 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - library_monitor_blacklist_file (_tmp11_, "MetadataWriter.commit_editable"); -#line 75 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp11_); -#line 4580 "MetadataWriter.c" - { - LibraryPhoto* _tmp12_; - PhotoMetadata* _tmp13_; - PhotoReimportEditableState* _tmp14_ = NULL; -#line 77 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp12_ = self->photo; -#line 77 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp13_ = metadata; -#line 77 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo_persist_editable_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PHOTO, Photo), _tmp13_, &_tmp14_, &_inner_error_); -#line 77 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _photo_reimport_editable_state_unref0 (self->reimport_editable_state); -#line 77 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->reimport_editable_state = _tmp14_; -#line 77 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4597 "MetadataWriter.c" - goto __finally568; - } - } - __finally568: - { - LibraryPhoto* _tmp15_; - GFile* _tmp16_; - GFile* _tmp17_; -#line 79 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp15_ = self->photo; -#line 79 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp16_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PHOTO, Photo)); -#line 79 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp17_ = _tmp16_; -#line 79 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - library_monitor_unblacklist_file (_tmp17_); -#line 79 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp17_); -#line 4616 "MetadataWriter.c" - } -#line 76 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 76 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_propagate_error (error, _inner_error_); -#line 76 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _media_metadata_unref0 (metadata); -#line 76 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return; -#line 4626 "MetadataWriter.c" - } - } -#line 83 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->wrote_editable = TRUE; -#line 67 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _media_metadata_unref0 (metadata); -#line 4633 "MetadataWriter.c" -} - - -static gboolean -metadata_writer_commit_job_update_metadata (MetadataWriterCommitJob* self, - PhotoMetadata* metadata, - gboolean skip_orientation) -{ - gboolean result = FALSE; - gboolean changed = FALSE; - gchar* current_title = NULL; - LibraryPhoto* _tmp0_; - gchar* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gboolean _tmp5_; - gchar* current_comment = NULL; - LibraryPhoto* _tmp7_; - gchar* _tmp8_; - const gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gboolean _tmp12_; - Rating current_rating = 0; - LibraryPhoto* _tmp14_; - Rating _tmp15_; - time_t current_exposure_time = 0; - LibraryPhoto* _tmp17_; - time_t metadata_exposure_time = 0; - MetadataDateTime* metadata_exposure_date_time = NULL; - MetadataDateTime* _tmp18_; - MetadataDateTime* _tmp19_; - time_t _tmp21_; - time_t _tmp22_; - GeeSet* safe_keywords = NULL; - GeeHashSet* _tmp27_; - GeeSet* _tmp28_; - GeeSet* _tmp40_; - GeeSet* _tmp41_; - GeeSet* _tmp42_; - gboolean _tmp43_; - gboolean _tmp48_; -#line 86 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_val_if_fail (METADATA_WRITER_IS_COMMIT_JOB (self), FALSE); -#line 86 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (metadata), FALSE); -#line 87 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - changed = FALSE; -#line 90 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = self->photo; -#line 90 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 90 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - current_title = _tmp1_; -#line 91 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = current_title; -#line 91 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (metadata, TYPE_MEDIA_METADATA, MediaMetadata)); -#line 91 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = _tmp3_; -#line 91 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = g_strcmp0 (_tmp2_, _tmp4_) != 0; -#line 91 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (_tmp4_); -#line 91 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp5_) { -#line 4701 "MetadataWriter.c" - const gchar* _tmp6_; -#line 92 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp6_ = current_title; -#line 92 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo_metadata_set_title (metadata, _tmp6_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 93 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - changed = TRUE; -#line 4709 "MetadataWriter.c" - } -#line 97 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp7_ = self->photo; -#line 97 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp8_ = media_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 97 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - current_comment = _tmp8_; -#line 98 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp9_ = current_comment; -#line 98 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp10_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (metadata, TYPE_MEDIA_METADATA, MediaMetadata)); -#line 98 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp11_ = _tmp10_; -#line 98 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp12_ = g_strcmp0 (_tmp9_, _tmp11_) != 0; -#line 98 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (_tmp11_); -#line 98 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp12_) { -#line 4729 "MetadataWriter.c" - const gchar* _tmp13_; -#line 99 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp13_ = current_comment; -#line 99 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo_metadata_set_comment (metadata, _tmp13_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 100 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - changed = TRUE; -#line 4737 "MetadataWriter.c" - } -#line 104 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp14_ = self->photo; -#line 104 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - current_rating = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 105 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp15_ = current_rating; -#line 105 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp15_ != photo_metadata_get_rating (metadata)) { -#line 4747 "MetadataWriter.c" - Rating _tmp16_; -#line 106 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp16_ = current_rating; -#line 106 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo_metadata_set_rating (metadata, _tmp16_); -#line 107 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - changed = TRUE; -#line 4755 "MetadataWriter.c" - } -#line 111 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp17_ = self->photo; -#line 111 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - current_exposure_time = media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 112 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_exposure_time = (time_t) 0; -#line 113 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp18_ = photo_metadata_get_exposure_date_time (metadata); -#line 113 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_exposure_date_time = _tmp18_; -#line 114 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp19_ = metadata_exposure_date_time; -#line 114 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp19_ != NULL) { -#line 4771 "MetadataWriter.c" - MetadataDateTime* _tmp20_; -#line 115 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp20_ = metadata_exposure_date_time; -#line 115 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_exposure_time = metadata_date_time_get_timestamp (_tmp20_); -#line 4777 "MetadataWriter.c" - } -#line 116 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp21_ = current_exposure_time; -#line 116 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp22_ = metadata_exposure_time; -#line 116 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp21_ != _tmp22_) { -#line 4785 "MetadataWriter.c" - MetadataDateTime* _tmp23_ = NULL; - time_t _tmp24_; -#line 117 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp24_ = current_exposure_time; -#line 117 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp24_ != ((time_t) 0)) { -#line 4792 "MetadataWriter.c" - time_t _tmp25_; - MetadataDateTime* _tmp26_; -#line 118 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp25_ = current_exposure_time; -#line 118 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp26_ = metadata_date_time_new (_tmp25_); -#line 118 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _metadata_date_time_unref0 (_tmp23_); -#line 118 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp23_ = _tmp26_; -#line 4803 "MetadataWriter.c" - } else { -#line 119 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _metadata_date_time_unref0 (_tmp23_); -#line 119 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp23_ = NULL; -#line 4809 "MetadataWriter.c" - } -#line 117 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo_metadata_set_exposure_date_time (metadata, _tmp23_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 120 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - changed = TRUE; -#line 116 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _metadata_date_time_unref0 (_tmp23_); -#line 4817 "MetadataWriter.c" - } -#line 124 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp27_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 124 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - safe_keywords = G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_SET, GeeSet); -#line 133 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp28_ = self->current_keywords; -#line 133 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp28_ != NULL) { -#line 4827 "MetadataWriter.c" - { - GeeIterator* _tmp_it = NULL; - GeeSet* _tmp29_; - GeeIterator* _tmp30_; -#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp29_ = self->current_keywords; -#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp30_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp_it = _tmp30_; -#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - while (TRUE) { -#line 4840 "MetadataWriter.c" - GeeIterator* _tmp31_; - gchar* tmp = NULL; - GeeIterator* _tmp32_; - gpointer _tmp33_; - Tag* tag = NULL; - const gchar* _tmp34_; - Tag* _tmp35_; - GeeSet* _tmp36_; - Tag* _tmp37_; - gchar* _tmp38_; - gchar* _tmp39_; -#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp31_ = _tmp_it; -#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!gee_iterator_next (_tmp31_)) { -#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - break; -#line 4858 "MetadataWriter.c" - } -#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp32_ = _tmp_it; -#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp33_ = gee_iterator_get (_tmp32_); -#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - tmp = (gchar*) _tmp33_; -#line 135 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp34_ = tmp; -#line 135 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp35_ = tag_for_path (_tmp34_); -#line 135 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - tag = _tmp35_; -#line 136 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp36_ = safe_keywords; -#line 136 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp37_ = tag; -#line 136 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp38_ = tag_get_user_visible_name (_tmp37_); -#line 136 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp39_ = _tmp38_; -#line 136 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_COLLECTION, GeeCollection), _tmp39_); -#line 136 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (_tmp39_); -#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (tag); -#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (tmp); -#line 4888 "MetadataWriter.c" - } -#line 134 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp_it); -#line 4892 "MetadataWriter.c" - } - } -#line 140 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp40_ = safe_keywords; -#line 140 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp41_ = photo_metadata_get_keywords (metadata, NULL, NULL, NULL); -#line 140 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp42_ = _tmp41_; -#line 140 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp43_ = !equal_sets (_tmp40_, _tmp42_); -#line 140 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp42_); -#line 140 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp43_) { -#line 4907 "MetadataWriter.c" - GeeSet* _tmp44_; -#line 141 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp44_ = self->current_keywords; -#line 141 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo_metadata_set_keywords (metadata, G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_COLLECTION, GeeCollection), PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 142 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - changed = TRUE; -#line 4915 "MetadataWriter.c" - } -#line 146 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (!skip_orientation) { -#line 4919 "MetadataWriter.c" - Orientation current_orientation = 0; - LibraryPhoto* _tmp45_; - Orientation _tmp46_; -#line 147 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp45_ = self->photo; -#line 147 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - current_orientation = photo_get_orientation (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_PHOTO, Photo)); -#line 148 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp46_ = current_orientation; -#line 148 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp46_ != photo_metadata_get_orientation (metadata)) { -#line 4931 "MetadataWriter.c" - Orientation _tmp47_; -#line 149 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp47_ = current_orientation; -#line 149 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo_metadata_set_orientation (metadata, _tmp47_); -#line 150 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - changed = TRUE; -#line 4939 "MetadataWriter.c" - } - } -#line 155 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp48_ = changed; -#line 155 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - if (_tmp48_) { -#line 156 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - photo_metadata_set_software (metadata, RESOURCES_APP_TITLE, RESOURCES_APP_VERSION); -#line 4948 "MetadataWriter.c" - } -#line 158 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - result = changed; -#line 158 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (safe_keywords); -#line 158 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _metadata_date_time_unref0 (metadata_exposure_date_time); -#line 158 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (current_comment); -#line 158 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_free0 (current_title); -#line 158 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - return result; -#line 4962 "MetadataWriter.c" -} - - -static void -metadata_writer_commit_job_class_init (MetadataWriterCommitJobClass * klass) -{ -#line 20 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_commit_job_parent_class = g_type_class_peek_parent (klass); -#line 20 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - ((BackgroundJobClass *) klass)->finalize = metadata_writer_commit_job_finalize; -#line 20 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) metadata_writer_commit_job_real_execute; -#line 4975 "MetadataWriter.c" -} - - -static void -metadata_writer_commit_job_instance_init (MetadataWriterCommitJob * self) -{ -#line 23 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->reimport_master_state = NULL; -#line 24 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->reimport_editable_state = NULL; -#line 25 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->err = NULL; -#line 26 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->wrote_master = FALSE; -#line 27 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->wrote_editable = FALSE; -#line 4992 "MetadataWriter.c" -} - - -static void -metadata_writer_commit_job_finalize (BackgroundJob * obj) -{ - MetadataWriterCommitJob * self; -#line 20 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, METADATA_WRITER_TYPE_COMMIT_JOB, MetadataWriterCommitJob); -#line 21 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (self->photo); -#line 22 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (self->current_keywords); -#line 23 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _photo_reimport_master_state_unref0 (self->reimport_master_state); -#line 24 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _photo_reimport_editable_state_unref0 (self->reimport_editable_state); -#line 25 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_error_free0 (self->err); -#line 20 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - BACKGROUND_JOB_CLASS (metadata_writer_commit_job_parent_class)->finalize (obj); -#line 5014 "MetadataWriter.c" -} - - -static GType -metadata_writer_commit_job_get_type (void) -{ - static volatile gsize metadata_writer_commit_job_type_id__volatile = 0; - if (g_once_init_enter (&metadata_writer_commit_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MetadataWriterCommitJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) metadata_writer_commit_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MetadataWriterCommitJob), 0, (GInstanceInitFunc) metadata_writer_commit_job_instance_init, NULL }; - GType metadata_writer_commit_job_type_id; - metadata_writer_commit_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "MetadataWriterCommitJob", &g_define_type_info, 0); - g_once_init_leave (&metadata_writer_commit_job_type_id__volatile, metadata_writer_commit_job_type_id); - } - return metadata_writer_commit_job_type_id__volatile; -} - - -static void -metadata_writer_class_init (MetadataWriterClass * klass) -{ -#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_parent_class = g_type_class_peek_parent (klass); -#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_type_class_add_private (klass, sizeof (MetadataWriterPrivate)); -#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - G_OBJECT_CLASS (klass)->finalize = metadata_writer_finalize; -#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - metadata_writer_signals[METADATA_WRITER_PROGRESS_SIGNAL] = g_signal_new ("progress", TYPE_METADATA_WRITER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__UINT_UINT, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT); -#line 5043 "MetadataWriter.c" -} - - -static void -metadata_writer_instance_init (MetadataWriter * self) -{ - Workers* _tmp0_; - GeeHashMap* _tmp1_; - GeeHashSet* _tmp2_; - GeeHashSet* _tmp3_; - GeeHashSet* _tmp4_; -#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv = METADATA_WRITER_GET_PRIVATE (self); -#line 164 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = workers_new ((guint) 1, FALSE); -#line 164 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->workers = _tmp0_; -#line 165 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->enabled = FALSE; -#line 167 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, METADATA_WRITER_TYPE_COMMIT_JOB, (GBoxedCopyFunc) background_job_ref, (GDestroyNotify) background_job_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 167 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->pending = _tmp1_; -#line 168 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp2_ = gee_hash_set_new (METADATA_WRITER_TYPE_COMMIT_JOB, (GBoxedCopyFunc) background_job_ref, (GDestroyNotify) background_job_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 168 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->pending_cancel = _tmp2_; -#line 169 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 169 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->interested_photo_details = _tmp3_; -#line 170 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->ignore_photo_alteration = NULL; -#line 171 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->outstanding_total = (guint) 0; -#line 172 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->outstanding_completed = (guint) 0; -#line 173 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->closed = FALSE; -#line 174 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->pause_count = 0; -#line 175 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp4_ = gee_hash_set_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 175 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self->priv->importing_photos = _tmp4_; -#line 5089 "MetadataWriter.c" -} - - -static void -metadata_writer_finalize (GObject * obj) -{ - MetadataWriter * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - guint _tmp2_; - LibraryPhotoSourceCollection* _tmp3_; - guint _tmp4_; - LibraryPhotoSourceCollection* _tmp5_; - guint _tmp6_; - LibraryPhotoSourceCollection* _tmp7_; - guint _tmp8_; - LibraryPhotoSourceCollection* _tmp9_; - guint _tmp10_; - LibraryPhotoSourceCollection* _tmp11_; - guint _tmp12_; - LibraryPhotoSourceCollection* _tmp13_; - guint _tmp14_; - LibraryPhotoSourceCollection* _tmp15_; - guint _tmp16_; - TagSourceCollection* _tmp17_; - guint _tmp18_; - TagSourceCollection* _tmp19_; - guint _tmp20_; - TagSourceCollection* _tmp21_; - guint _tmp22_; - TagSourceCollection* _tmp23_; - guint _tmp24_; - TagSourceCollection* _tmp25_; - guint _tmp26_; - Application* _tmp27_; - Application* _tmp28_; - guint _tmp29_; - LibraryMonitorPool* _tmp30_; - LibraryMonitorPool* _tmp31_; - guint _tmp32_; - LibraryMonitorPool* _tmp33_; - LibraryMonitorPool* _tmp34_; - guint _tmp35_; -#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_METADATA_WRITER, MetadataWriter); -#line 220 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp0_ = config_facade_get_instance (); -#line 220 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp1_ = _tmp0_; -#line 220 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_parse_name ("commit-metadata-to-masters-changed", TYPE_CONFIGURATION_FACADE, &_tmp2_, NULL, FALSE); -#line 220 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _metadata_writer_on_config_changed_configuration_facade_commit_metadata_to_masters_changed, self); -#line 220 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (_tmp1_); -#line 222 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp3_ = library_photo_global; -#line 222 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_parse_name ("media-import-starting", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp4_, NULL, FALSE); -#line 222 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _metadata_writer_on_importing_photos_media_source_collection_media_import_starting, self); -#line 223 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp5_ = library_photo_global; -#line 223 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_parse_name ("media-import-completed", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp6_, NULL, FALSE); -#line 223 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _metadata_writer_on_photos_imported_media_source_collection_media_import_completed, self); -#line 224 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp7_ = library_photo_global; -#line 224 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp8_, NULL, FALSE); -#line 224 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _metadata_writer_on_photos_added_removed_data_collection_contents_altered, self); -#line 225 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp9_ = library_photo_global; -#line 225 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp10_, NULL, FALSE); -#line 225 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _metadata_writer_on_photos_altered_data_collection_items_altered, self); -#line 226 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp11_ = library_photo_global; -#line 226 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_parse_name ("frozen", TYPE_DATA_COLLECTION, &_tmp12_, NULL, FALSE); -#line 226 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _metadata_writer_on_collection_frozen_data_collection_frozen, self); -#line 227 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp13_ = library_photo_global; -#line 227 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_parse_name ("thawed", TYPE_DATA_COLLECTION, &_tmp14_, NULL, FALSE); -#line 227 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _metadata_writer_on_collection_thawed_data_collection_thawed, self); -#line 228 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp15_ = library_photo_global; -#line 228 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_parse_name ("items-destroyed", TYPE_SOURCE_COLLECTION, &_tmp16_, NULL, FALSE); -#line 228 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp16_, 0, NULL, (GCallback) _metadata_writer_on_photos_destroyed_source_collection_items_destroyed, self); -#line 230 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp17_ = tag_global; -#line 230 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp18_, NULL, FALSE); -#line 230 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp18_, 0, NULL, (GCallback) _metadata_writer_on_tags_altered_data_collection_items_altered, self); -#line 231 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp19_ = tag_global; -#line 231 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_parse_name ("container-contents-altered", TYPE_CONTAINER_SOURCE_COLLECTION, &_tmp20_, NULL, FALSE); -#line 231 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp20_, 0, NULL, (GCallback) _metadata_writer_on_tag_contents_altered_container_source_collection_container_contents_altered, self); -#line 232 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp21_ = tag_global; -#line 232 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_parse_name ("backlink-to-container-removed", TYPE_CONTAINER_SOURCE_COLLECTION, &_tmp22_, NULL, FALSE); -#line 232 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp22_, 0, NULL, (GCallback) _metadata_writer_on_tag_backlink_removed_container_source_collection_backlink_to_container_removed, self); -#line 233 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp23_ = tag_global; -#line 233 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_parse_name ("frozen", TYPE_DATA_COLLECTION, &_tmp24_, NULL, FALSE); -#line 233 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp24_, 0, NULL, (GCallback) _metadata_writer_on_collection_frozen_data_collection_frozen, self); -#line 234 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp25_ = tag_global; -#line 234 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_parse_name ("thawed", TYPE_DATA_COLLECTION, &_tmp26_, NULL, FALSE); -#line 234 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp26_, 0, NULL, (GCallback) _metadata_writer_on_collection_thawed_data_collection_thawed, self); -#line 236 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp27_ = application_get_instance (); -#line 236 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp28_ = _tmp27_; -#line 236 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_parse_name ("exiting", TYPE_APPLICATION, &_tmp29_, NULL, FALSE); -#line 236 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_handlers_disconnect_matched (_tmp28_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp29_, 0, NULL, (GCallback) _metadata_writer_on_application_exiting_application_exiting, self); -#line 236 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _application_unref0 (_tmp28_); -#line 238 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp30_ = library_monitor_pool_get_instance (); -#line 238 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp31_ = _tmp30_; -#line 238 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_parse_name ("monitor-installed", TYPE_LIBRARY_MONITOR_POOL, &_tmp32_, NULL, FALSE); -#line 238 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_handlers_disconnect_matched (_tmp31_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp32_, 0, NULL, (GCallback) _metadata_writer_on_monitor_installed_library_monitor_pool_monitor_installed, self); -#line 238 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _library_monitor_pool_unref0 (_tmp31_); -#line 239 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp33_ = library_monitor_pool_get_instance (); -#line 239 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _tmp34_ = _tmp33_; -#line 239 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_parse_name ("monitor-destroyed", TYPE_LIBRARY_MONITOR_POOL, &_tmp35_, NULL, FALSE); -#line 239 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - g_signal_handlers_disconnect_matched (_tmp34_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp35_, 0, NULL, (GCallback) _metadata_writer_on_monitor_destroyed_library_monitor_pool_monitor_destroyed, self); -#line 239 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _library_monitor_pool_unref0 (_tmp34_); -#line 164 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _workers_unref0 (self->priv->workers); -#line 166 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _timed_queue_unref0 (self->priv->dirty); -#line 167 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (self->priv->pending); -#line 168 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (self->priv->pending_cancel); -#line 169 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (self->priv->interested_photo_details); -#line 170 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (self->priv->ignore_photo_alteration); -#line 175 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - _g_object_unref0 (self->priv->importing_photos); -#line 14 "/home/jens/Source/shotwell/src/MetadataWriter.vala" - G_OBJECT_CLASS (metadata_writer_parent_class)->finalize (obj); -#line 5263 "MetadataWriter.c" -} - - -GType -metadata_writer_get_type (void) -{ - static volatile gsize metadata_writer_type_id__volatile = 0; - if (g_once_init_enter (&metadata_writer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MetadataWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) metadata_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MetadataWriter), 0, (GInstanceInitFunc) metadata_writer_instance_init, NULL }; - GType metadata_writer_type_id; - metadata_writer_type_id = g_type_register_static (G_TYPE_OBJECT, "MetadataWriter", &g_define_type_info, 0); - g_once_init_leave (&metadata_writer_type_id__volatile, metadata_writer_type_id); - } - return metadata_writer_type_id__volatile; -} - - - diff --git a/src/NaturalCollate.c b/src/NaturalCollate.c deleted file mode 100644 index b5c4fdb..0000000 --- a/src/NaturalCollate.c +++ /dev/null @@ -1,679 +0,0 @@ -/* NaturalCollate.c generated by valac 0.40.4, the Vala compiler - * generated from NaturalCollate.vala, do not modify */ - - - -#include -#include -#include -#include - -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - - - -#define NATURAL_COLLATE_SUPERDIGIT ((gunichar) ':') -#define NATURAL_COLLATE_NUM_SENTINEL ((gunichar) 0x2) -#define NATURAL_COLLATE_COLLATION_SENTINEL "\x01\x01\x01" -gint natural_collate_read_number (gchar* s, - gint* byte_index); -gint natural_collate_compare (const gchar* str1, - const gchar* str2); -gchar* natural_collate_collate_key (gchar* str); - - -static gunichar -string_get_char (const gchar* self, - glong index) -{ - gunichar result = 0U; -#line 1154 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0U); -#line 1155 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = g_utf8_get_char (((gchar*) self) + index); -#line 1155 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 41 "NaturalCollate.c" -} - - -static gint -string_index_of_nth_char (const gchar* self, - glong c) -{ - gint result = 0; - gchar* _tmp0_; -#line 1174 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0); -#line 1175 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_utf8_offset_to_pointer (self, c); -#line 1175 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gint) (_tmp0_ - ((gchar*) self)); -#line 1175 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 59 "NaturalCollate.c" -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 83 "NaturalCollate.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 92 "NaturalCollate.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 113 "NaturalCollate.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 117 "NaturalCollate.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 123 "NaturalCollate.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 133 "NaturalCollate.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 137 "NaturalCollate.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 145 "NaturalCollate.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 152 "NaturalCollate.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 156 "NaturalCollate.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 162 "NaturalCollate.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 174 "NaturalCollate.c" -} - - -gint -natural_collate_read_number (gchar* s, - gint* byte_index) -{ - gint result = 0; - gint number = 0; -#line 23 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - g_return_val_if_fail (s != NULL, 0); -#line 31 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - number = 0; -#line 33 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - while (TRUE) { -#line 190 "NaturalCollate.c" - gboolean _tmp0_ = FALSE; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint second_char = 0; - gint _tmp5_; - gchar* _tmp6_; - gint _tmp7_; -#line 33 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp1_ = strlen (s); -#line 33 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp2_ = _tmp1_; -#line 33 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - if (_tmp2_ != 0) { -#line 33 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp0_ = g_unichar_isdigit (string_get_char (s, (glong) 0)); -#line 208 "NaturalCollate.c" - } else { -#line 33 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp0_ = FALSE; -#line 212 "NaturalCollate.c" - } -#line 33 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - if (!_tmp0_) { -#line 33 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - break; -#line 218 "NaturalCollate.c" - } -#line 34 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp3_ = number; -#line 34 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - number = _tmp3_ * 10; -#line 35 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp4_ = number; -#line 35 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - number = _tmp4_ + g_unichar_digit_value (string_get_char (s, (glong) 0)); -#line 36 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - second_char = string_index_of_nth_char (s, (glong) 1); -#line 37 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp5_ = second_char; -#line 37 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp6_ = string_substring (s, (glong) _tmp5_, (glong) -1); -#line 37 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (s); -#line 37 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - s = _tmp6_; -#line 38 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp7_ = second_char; -#line 38 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - *byte_index = (*byte_index) + _tmp7_; -#line 242 "NaturalCollate.c" - } -#line 40 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - result = number; -#line 40 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (s); -#line 40 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - return result; -#line 250 "NaturalCollate.c" -} - - -gint -natural_collate_compare (const gchar* str1, - const gchar* str2) -{ - gint result = 0; - GCompareFunc _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gint _tmp7_; -#line 43 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - g_return_val_if_fail (str1 != NULL, 0); -#line 43 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - g_return_val_if_fail (str2 != NULL, 0); -#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp0_ = g_strcmp0; -#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp1_ = g_strdup (str1); -#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp2_ = natural_collate_collate_key (_tmp1_); -#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp3_ = _tmp2_; -#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp4_ = g_strdup (str2); -#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp5_ = natural_collate_collate_key (_tmp4_); -#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp6_ = _tmp5_; -#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp7_ = _tmp0_ (_tmp3_, _tmp6_); -#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (_tmp6_); -#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (_tmp3_); -#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - result = _tmp7_; -#line 44 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - return result; -#line 295 "NaturalCollate.c" -} - - -static gboolean -string_contains (const gchar* self, - const gchar* needle) -{ - gboolean result = FALSE; - gchar* _tmp0_; -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, FALSE); -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, FALSE); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr ((gchar*) self, (gchar*) needle); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_ != NULL; -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 315 "NaturalCollate.c" -} - - -static gchar* -g_unichar_to_string (gunichar self) -{ - gchar* result = NULL; - gchar* str = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 963 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_new0 (gchar, 7); -#line 963 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - str = (gchar*) _tmp0_; -#line 964 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = str; -#line 964 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_unichar_to_utf8 (self, _tmp1_); -#line 965 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = str; -#line 965 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 338 "NaturalCollate.c" -} - - -gchar* -natural_collate_collate_key (gchar* str) -{ - gchar* result = NULL; - gboolean _tmp0_; - gchar* _result_ = NULL; - gchar* _tmp1_; - gboolean eos = FALSE; - gint _tmp2_; - gint _tmp3_; - const gchar* _tmp58_; - gchar* _tmp59_; - gchar* _tmp60_; - gchar* _tmp61_; -#line 47 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - g_return_val_if_fail (str != NULL, NULL); -#line 53 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp0_ = g_utf8_validate (str, (gssize) -1, NULL); -#line 53 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _vala_assert (_tmp0_, "str.validate()"); -#line 54 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp1_ = g_strdup (""); -#line 54 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _result_ = _tmp1_; -#line 55 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp2_ = strlen (str); -#line 55 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp3_ = _tmp2_; -#line 55 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - eos = _tmp3_ == 0; -#line 57 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - while (TRUE) { -#line 374 "NaturalCollate.c" - gboolean _tmp4_; - gboolean _tmp5_; - gint position = 0; - const gchar* _tmp11_; - gint _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gint _tmp18_; - gchar* _tmp19_; - gint _tmp20_; - gint _tmp21_; - gboolean _tmp22_; - gint _tmp56_; - gint _tmp57_; -#line 57 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp4_ = eos; -#line 57 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - if (!(!_tmp4_)) { -#line 57 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - break; -#line 398 "NaturalCollate.c" - } -#line 58 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp5_ = g_utf8_validate (str, (gssize) -1, NULL); -#line 58 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _vala_assert (_tmp5_, "str.validate()"); -#line 59 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - position = 0; -#line 60 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - while (TRUE) { -#line 408 "NaturalCollate.c" - gint _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gboolean _tmp9_; - gint _tmp10_; -#line 60 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp6_ = position; -#line 60 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp7_ = g_unichar_to_string (string_get_char (str, (glong) _tmp6_)); -#line 60 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp8_ = _tmp7_; -#line 60 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp9_ = !(!string_contains ("0123456789", _tmp8_)); -#line 60 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (_tmp8_); -#line 60 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - if (_tmp9_) { -#line 60 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - break; -#line 428 "NaturalCollate.c" - } -#line 62 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp10_ = position; -#line 62 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - position = _tmp10_ + 1; -#line 434 "NaturalCollate.c" - } -#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp11_ = _result_; -#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp12_ = position; -#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp13_ = string_substring (str, (glong) 0, (glong) _tmp12_); -#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp14_ = _tmp13_; -#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp15_ = g_utf8_collate_key (_tmp14_, (gssize) -1); -#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp16_ = _tmp15_; -#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp17_ = g_strconcat (_tmp11_, _tmp16_, NULL); -#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (_result_); -#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _result_ = _tmp17_; -#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (_tmp16_); -#line 66 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (_tmp14_); -#line 69 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp18_ = position; -#line 69 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp19_ = string_substring (str, (glong) _tmp18_, (glong) -1); -#line 69 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (str); -#line 69 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - str = _tmp19_; -#line 71 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp20_ = strlen (str); -#line 71 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp21_ = _tmp20_; -#line 71 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - eos = _tmp21_ == 0; -#line 72 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - position = 0; -#line 74 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp22_ = eos; -#line 74 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - if (!_tmp22_) { -#line 478 "NaturalCollate.c" - gint number = 0; - gchar* _tmp23_; - gint _tmp24_; - gint _tmp25_; - gchar* _tmp26_; - gint number_of_superdigits = 0; - gint _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - gint _tmp30_; - gint _tmp31_; - gint _tmp32_; - gchar* to_append = NULL; - gchar* _tmp33_; - const gchar* _tmp42_; - gint _tmp43_; - gchar* _tmp44_; - gchar* _tmp45_; - gchar* _tmp46_; - const gchar* _tmp47_; - gchar* _tmp48_; - gchar* _tmp49_; - gchar* _tmp50_; - gchar* _tmp51_; - gchar* _tmp52_; - gchar* _tmp53_; - const gchar* _tmp54_; - gchar* _tmp55_; -#line 76 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp23_ = g_strdup (str); -#line 76 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp24_ = natural_collate_read_number (_tmp23_, &position); -#line 76 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - number = _tmp24_; -#line 77 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp25_ = position; -#line 77 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp26_ = string_substring (str, (glong) _tmp25_, (glong) -1); -#line 77 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (str); -#line 77 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - str = _tmp26_; -#line 78 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp27_ = number; -#line 78 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp28_ = g_strdup_printf ("%i", _tmp27_); -#line 78 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp29_ = _tmp28_; -#line 78 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp30_ = strlen (_tmp29_); -#line 78 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp31_ = _tmp30_; -#line 78 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp32_ = _tmp31_; -#line 78 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (_tmp29_); -#line 78 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - number_of_superdigits = _tmp32_; -#line 79 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp33_ = g_strdup (""); -#line 79 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - to_append = _tmp33_; -#line 541 "NaturalCollate.c" - { - gint i = 0; -#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - i = 1; -#line 546 "NaturalCollate.c" - { - gboolean _tmp34_ = FALSE; -#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp34_ = TRUE; -#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - while (TRUE) { -#line 553 "NaturalCollate.c" - gint _tmp36_; - gint _tmp37_; - const gchar* _tmp38_; - gchar* _tmp39_; - gchar* _tmp40_; - gchar* _tmp41_; -#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - if (!_tmp34_) { -#line 562 "NaturalCollate.c" - gint _tmp35_; -#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp35_ = i; -#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - i = _tmp35_ + 1; -#line 568 "NaturalCollate.c" - } -#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp34_ = FALSE; -#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp36_ = i; -#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp37_ = number_of_superdigits; -#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - if (!(_tmp36_ < _tmp37_)) { -#line 80 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - break; -#line 580 "NaturalCollate.c" - } -#line 82 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp38_ = to_append; -#line 82 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp39_ = g_unichar_to_string (NATURAL_COLLATE_SUPERDIGIT); -#line 82 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp40_ = _tmp39_; -#line 82 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp41_ = g_strconcat (_tmp38_, _tmp40_, NULL); -#line 82 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (to_append); -#line 82 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - to_append = _tmp41_; -#line 82 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (_tmp40_); -#line 596 "NaturalCollate.c" - } - } - } -#line 84 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp42_ = to_append; -#line 84 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp43_ = number; -#line 84 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp44_ = g_strdup_printf ("%i", _tmp43_); -#line 84 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp45_ = _tmp44_; -#line 84 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp46_ = g_strconcat (_tmp42_, _tmp45_, NULL); -#line 84 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (to_append); -#line 84 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - to_append = _tmp46_; -#line 84 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (_tmp45_); -#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp47_ = _result_; -#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp48_ = g_strconcat (_tmp47_, NATURAL_COLLATE_COLLATION_SENTINEL, NULL); -#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp49_ = _tmp48_; -#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp50_ = g_unichar_to_string (NATURAL_COLLATE_NUM_SENTINEL); -#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp51_ = _tmp50_; -#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp52_ = g_strconcat (_tmp49_, _tmp51_, NULL); -#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp53_ = _tmp52_; -#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp54_ = to_append; -#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp55_ = g_strconcat (_tmp53_, _tmp54_, NULL); -#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (_result_); -#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _result_ = _tmp55_; -#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (_tmp53_); -#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (_tmp51_); -#line 85 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (_tmp49_); -#line 74 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (to_append); -#line 646 "NaturalCollate.c" - } -#line 90 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp56_ = strlen (str); -#line 90 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp57_ = _tmp56_; -#line 90 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - eos = _tmp57_ == 0; -#line 654 "NaturalCollate.c" - } -#line 93 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp58_ = _result_; -#line 93 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp59_ = g_unichar_to_string (NATURAL_COLLATE_NUM_SENTINEL); -#line 93 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp60_ = _tmp59_; -#line 93 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _tmp61_ = g_strconcat (_tmp58_, _tmp60_, NULL); -#line 93 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (_result_); -#line 93 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _result_ = _tmp61_; -#line 93 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (_tmp60_); -#line 96 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - result = _result_; -#line 96 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - _g_free0 (str); -#line 96 "/home/jens/Source/shotwell/src/NaturalCollate.vala" - return result; -#line 676 "NaturalCollate.c" -} - - - diff --git a/src/Orientation.c b/src/Orientation.c deleted file mode 100644 index 181ee59..0000000 --- a/src/Orientation.c +++ /dev/null @@ -1,2074 +0,0 @@ -/* Orientation.c generated by valac 0.40.4, the Vala compiler - * generated from Orientation.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include - - -#define TYPE_ORIENTATION (orientation_get_type ()) - -#define TYPE_ROTATION (rotation_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_BOX (box_get_type ()) -typedef struct _Box Box; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef enum { - ORIENTATION_MIN = 1, - ORIENTATION_TOP_LEFT = 1, - ORIENTATION_TOP_RIGHT = 2, - ORIENTATION_BOTTOM_RIGHT = 3, - ORIENTATION_BOTTOM_LEFT = 4, - ORIENTATION_LEFT_TOP = 5, - ORIENTATION_RIGHT_TOP = 6, - ORIENTATION_RIGHT_BOTTOM = 7, - ORIENTATION_LEFT_BOTTOM = 8, - ORIENTATION_MAX = 8 -} Orientation; - -typedef enum { - ROTATION_CLOCKWISE, - ROTATION_COUNTERCLOCKWISE, - ROTATION_MIRROR, - ROTATION_UPSIDE_DOWN -} Rotation; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _Box { - gint left; - gint top; - gint right; - gint bottom; -}; - - - -GType orientation_get_type (void) G_GNUC_CONST; -gchar* orientation_to_string (Orientation self); -Orientation orientation_rotate_clockwise (Orientation self); -Orientation orientation_rotate_counterclockwise (Orientation self); -Orientation orientation_flip_top_to_bottom (Orientation self); -Orientation orientation_flip_left_to_right (Orientation self); -GType rotation_get_type (void) G_GNUC_CONST; -Orientation orientation_perform (Orientation self, - Rotation rotation); -Rotation* orientation_to_rotations (Orientation self, - int* result_length1); -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -void orientation_rotate_dimensions (Orientation self, - Dimensions* dim, - Dimensions* result); -void dimensions_init (Dimensions *self, - gint width, - gint height); -void orientation_derotate_dimensions (Orientation self, - Dimensions* dim, - Dimensions* result); -GdkPixbuf* orientation_rotate_pixbuf (Orientation self, - GdkPixbuf* pixbuf); -void orientation_rotate_point (Orientation self, - Dimensions* space, - GdkPoint* point, - GdkPoint* result); -gboolean dimensions_has_area (Dimensions *self); -void orientation_derotate_point (Orientation self, - Dimensions* space, - GdkPoint* point, - GdkPoint* result); -GType box_get_type (void) G_GNUC_CONST; -Box* box_dup (const Box* self); -void box_free (Box* self); -void orientation_rotate_box (Orientation self, - Dimensions* space, - Box* box, - Box* result); -void box_get_points (Box *self, - GdkPoint* top_left, - GdkPoint* bottom_right); -void box_from_points (GdkPoint* corner1, - GdkPoint* corner2, - Box* result); -void orientation_derotate_box (Orientation self, - Dimensions* space, - Box* box, - Box* result); -GdkPixbuf* rotation_perform (Rotation self, - GdkPixbuf* pixbuf); -Rotation rotation_opposite (Rotation self); - - -gchar* -orientation_to_string (Orientation self) -{ - gchar* result = NULL; -#line 20 "/home/jens/Source/shotwell/src/Orientation.vala" - switch (self) { -#line 20 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_LEFT: -#line 133 "Orientation.c" - { - gchar* _tmp0_; -#line 22 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp0_ = g_strdup ("top-left"); -#line 22 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp0_; -#line 22 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 142 "Orientation.c" - } -#line 20 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_RIGHT: -#line 146 "Orientation.c" - { - gchar* _tmp1_; -#line 25 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp1_ = g_strdup ("top-right"); -#line 25 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp1_; -#line 25 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 155 "Orientation.c" - } -#line 20 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_RIGHT: -#line 159 "Orientation.c" - { - gchar* _tmp2_; -#line 28 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp2_ = g_strdup ("bottom-right"); -#line 28 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp2_; -#line 28 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 168 "Orientation.c" - } -#line 20 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_LEFT: -#line 172 "Orientation.c" - { - gchar* _tmp3_; -#line 31 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp3_ = g_strdup ("bottom-left"); -#line 31 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp3_; -#line 31 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 181 "Orientation.c" - } -#line 20 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_TOP: -#line 185 "Orientation.c" - { - gchar* _tmp4_; -#line 34 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp4_ = g_strdup ("left-top"); -#line 34 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp4_; -#line 34 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 194 "Orientation.c" - } -#line 20 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_TOP: -#line 198 "Orientation.c" - { - gchar* _tmp5_; -#line 37 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp5_ = g_strdup ("right-top"); -#line 37 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp5_; -#line 37 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 207 "Orientation.c" - } -#line 20 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_BOTTOM: -#line 211 "Orientation.c" - { - gchar* _tmp6_; -#line 40 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp6_ = g_strdup ("right-bottom"); -#line 40 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp6_; -#line 40 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 220 "Orientation.c" - } -#line 20 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_BOTTOM: -#line 224 "Orientation.c" - { - gchar* _tmp7_; -#line 43 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp7_ = g_strdup ("left-bottom"); -#line 43 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp7_; -#line 43 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 233 "Orientation.c" - } - default: - { - gchar* _tmp8_; -#line 46 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp8_ = g_strdup_printf ("unknown orientation %d", (gint) self); -#line 46 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp8_; -#line 46 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 244 "Orientation.c" - } - } -} - - -Orientation -orientation_rotate_clockwise (Orientation self) -{ - Orientation result = 0; -#line 51 "/home/jens/Source/shotwell/src/Orientation.vala" - switch (self) { -#line 51 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_LEFT: -#line 258 "Orientation.c" - { -#line 53 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_RIGHT_TOP; -#line 53 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 264 "Orientation.c" - } -#line 51 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_RIGHT: -#line 268 "Orientation.c" - { -#line 56 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_RIGHT_BOTTOM; -#line 56 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 274 "Orientation.c" - } -#line 51 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_RIGHT: -#line 278 "Orientation.c" - { -#line 59 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_LEFT_BOTTOM; -#line 59 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 284 "Orientation.c" - } -#line 51 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_LEFT: -#line 288 "Orientation.c" - { -#line 62 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_LEFT_TOP; -#line 62 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 294 "Orientation.c" - } -#line 51 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_TOP: -#line 298 "Orientation.c" - { -#line 65 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_TOP_RIGHT; -#line 65 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 304 "Orientation.c" - } -#line 51 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_TOP: -#line 308 "Orientation.c" - { -#line 68 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_BOTTOM_RIGHT; -#line 68 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 314 "Orientation.c" - } -#line 51 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_BOTTOM: -#line 318 "Orientation.c" - { -#line 71 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_BOTTOM_LEFT; -#line 71 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 324 "Orientation.c" - } -#line 51 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_BOTTOM: -#line 328 "Orientation.c" - { -#line 74 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_TOP_LEFT; -#line 74 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 334 "Orientation.c" - } - default: - { -#line 77 "/home/jens/Source/shotwell/src/Orientation.vala" - g_error ("Orientation.vala:77: rotate_clockwise: %d", (gint) self); -#line 340 "Orientation.c" - } - } -} - - -Orientation -orientation_rotate_counterclockwise (Orientation self) -{ - Orientation result = 0; -#line 82 "/home/jens/Source/shotwell/src/Orientation.vala" - switch (self) { -#line 82 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_LEFT: -#line 354 "Orientation.c" - { -#line 84 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_LEFT_BOTTOM; -#line 84 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 360 "Orientation.c" - } -#line 82 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_RIGHT: -#line 364 "Orientation.c" - { -#line 87 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_LEFT_TOP; -#line 87 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 370 "Orientation.c" - } -#line 82 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_RIGHT: -#line 374 "Orientation.c" - { -#line 90 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_RIGHT_TOP; -#line 90 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 380 "Orientation.c" - } -#line 82 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_LEFT: -#line 384 "Orientation.c" - { -#line 93 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_RIGHT_BOTTOM; -#line 93 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 390 "Orientation.c" - } -#line 82 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_TOP: -#line 394 "Orientation.c" - { -#line 96 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_BOTTOM_LEFT; -#line 96 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 400 "Orientation.c" - } -#line 82 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_TOP: -#line 404 "Orientation.c" - { -#line 99 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_TOP_LEFT; -#line 99 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 410 "Orientation.c" - } -#line 82 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_BOTTOM: -#line 414 "Orientation.c" - { -#line 102 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_TOP_RIGHT; -#line 102 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 420 "Orientation.c" - } -#line 82 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_BOTTOM: -#line 424 "Orientation.c" - { -#line 105 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_BOTTOM_RIGHT; -#line 105 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 430 "Orientation.c" - } - default: - { -#line 108 "/home/jens/Source/shotwell/src/Orientation.vala" - g_error ("Orientation.vala:108: rotate_counterclockwise: %d", (gint) self); -#line 436 "Orientation.c" - } - } -} - - -Orientation -orientation_flip_top_to_bottom (Orientation self) -{ - Orientation result = 0; -#line 113 "/home/jens/Source/shotwell/src/Orientation.vala" - switch (self) { -#line 113 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_LEFT: -#line 450 "Orientation.c" - { -#line 115 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_BOTTOM_LEFT; -#line 115 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 456 "Orientation.c" - } -#line 113 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_RIGHT: -#line 460 "Orientation.c" - { -#line 118 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_BOTTOM_RIGHT; -#line 118 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 466 "Orientation.c" - } -#line 113 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_RIGHT: -#line 470 "Orientation.c" - { -#line 121 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_TOP_RIGHT; -#line 121 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 476 "Orientation.c" - } -#line 113 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_LEFT: -#line 480 "Orientation.c" - { -#line 124 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_TOP_LEFT; -#line 124 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 486 "Orientation.c" - } -#line 113 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_TOP: -#line 490 "Orientation.c" - { -#line 127 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_LEFT_BOTTOM; -#line 127 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 496 "Orientation.c" - } -#line 113 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_TOP: -#line 500 "Orientation.c" - { -#line 130 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_RIGHT_BOTTOM; -#line 130 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 506 "Orientation.c" - } -#line 113 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_BOTTOM: -#line 510 "Orientation.c" - { -#line 133 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_RIGHT_TOP; -#line 133 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 516 "Orientation.c" - } -#line 113 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_BOTTOM: -#line 520 "Orientation.c" - { -#line 136 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_LEFT_TOP; -#line 136 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 526 "Orientation.c" - } - default: - { -#line 139 "/home/jens/Source/shotwell/src/Orientation.vala" - g_error ("Orientation.vala:139: flip_top_to_bottom: %d", (gint) self); -#line 532 "Orientation.c" - } - } -} - - -Orientation -orientation_flip_left_to_right (Orientation self) -{ - Orientation result = 0; -#line 144 "/home/jens/Source/shotwell/src/Orientation.vala" - switch (self) { -#line 144 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_LEFT: -#line 546 "Orientation.c" - { -#line 146 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_TOP_RIGHT; -#line 146 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 552 "Orientation.c" - } -#line 144 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_RIGHT: -#line 556 "Orientation.c" - { -#line 149 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_TOP_LEFT; -#line 149 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 562 "Orientation.c" - } -#line 144 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_RIGHT: -#line 566 "Orientation.c" - { -#line 152 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_BOTTOM_LEFT; -#line 152 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 572 "Orientation.c" - } -#line 144 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_LEFT: -#line 576 "Orientation.c" - { -#line 155 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_BOTTOM_RIGHT; -#line 155 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 582 "Orientation.c" - } -#line 144 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_TOP: -#line 586 "Orientation.c" - { -#line 158 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_RIGHT_TOP; -#line 158 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 592 "Orientation.c" - } -#line 144 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_TOP: -#line 596 "Orientation.c" - { -#line 161 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_LEFT_TOP; -#line 161 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 602 "Orientation.c" - } -#line 144 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_BOTTOM: -#line 606 "Orientation.c" - { -#line 164 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_LEFT_BOTTOM; -#line 164 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 612 "Orientation.c" - } -#line 144 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_BOTTOM: -#line 616 "Orientation.c" - { -#line 167 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ORIENTATION_RIGHT_BOTTOM; -#line 167 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 622 "Orientation.c" - } - default: - { -#line 170 "/home/jens/Source/shotwell/src/Orientation.vala" - g_error ("Orientation.vala:170: flip_left_to_right: %d", (gint) self); -#line 628 "Orientation.c" - } - } -} - - -Orientation -orientation_perform (Orientation self, - Rotation rotation) -{ - Orientation result = 0; -#line 175 "/home/jens/Source/shotwell/src/Orientation.vala" - switch (rotation) { -#line 175 "/home/jens/Source/shotwell/src/Orientation.vala" - case ROTATION_CLOCKWISE: -#line 643 "Orientation.c" - { -#line 177 "/home/jens/Source/shotwell/src/Orientation.vala" - result = orientation_rotate_clockwise (self); -#line 177 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 649 "Orientation.c" - } -#line 175 "/home/jens/Source/shotwell/src/Orientation.vala" - case ROTATION_COUNTERCLOCKWISE: -#line 653 "Orientation.c" - { -#line 180 "/home/jens/Source/shotwell/src/Orientation.vala" - result = orientation_rotate_counterclockwise (self); -#line 180 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 659 "Orientation.c" - } -#line 175 "/home/jens/Source/shotwell/src/Orientation.vala" - case ROTATION_MIRROR: -#line 663 "Orientation.c" - { -#line 183 "/home/jens/Source/shotwell/src/Orientation.vala" - result = orientation_flip_left_to_right (self); -#line 183 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 669 "Orientation.c" - } -#line 175 "/home/jens/Source/shotwell/src/Orientation.vala" - case ROTATION_UPSIDE_DOWN: -#line 673 "Orientation.c" - { -#line 186 "/home/jens/Source/shotwell/src/Orientation.vala" - result = orientation_flip_top_to_bottom (self); -#line 186 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 679 "Orientation.c" - } - default: - { -#line 189 "/home/jens/Source/shotwell/src/Orientation.vala" - g_error ("Orientation.vala:189: perform: %d", (gint) rotation); -#line 685 "Orientation.c" - } - } -} - - -Rotation* -orientation_to_rotations (Orientation self, - int* result_length1) -{ - Rotation* result = NULL; -#line 194 "/home/jens/Source/shotwell/src/Orientation.vala" - switch (self) { -#line 194 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_LEFT: -#line 700 "Orientation.c" - { - Rotation* _tmp0_; - Rotation* _tmp1_; - gint _tmp1__length1; -#line 197 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp0_ = g_new0 (Rotation, 0); -#line 197 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp1_ = _tmp0_; -#line 197 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp1__length1 = 0; -#line 197 "/home/jens/Source/shotwell/src/Orientation.vala" - if (result_length1) { -#line 197 "/home/jens/Source/shotwell/src/Orientation.vala" - *result_length1 = _tmp1__length1; -#line 715 "Orientation.c" - } -#line 197 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp1_; -#line 197 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 721 "Orientation.c" - } -#line 194 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_RIGHT: -#line 725 "Orientation.c" - { - Rotation* _tmp2_; - Rotation* _tmp3_; - gint _tmp3__length1; -#line 200 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp2_ = g_new0 (Rotation, 1); -#line 200 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp2_[0] = ROTATION_MIRROR; -#line 200 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp3_ = _tmp2_; -#line 200 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp3__length1 = 1; -#line 200 "/home/jens/Source/shotwell/src/Orientation.vala" - if (result_length1) { -#line 200 "/home/jens/Source/shotwell/src/Orientation.vala" - *result_length1 = _tmp3__length1; -#line 742 "Orientation.c" - } -#line 200 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp3_; -#line 200 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 748 "Orientation.c" - } -#line 194 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_RIGHT: -#line 752 "Orientation.c" - { - Rotation* _tmp4_; - Rotation* _tmp5_; - gint _tmp5__length1; -#line 203 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp4_ = g_new0 (Rotation, 1); -#line 203 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp4_[0] = ROTATION_UPSIDE_DOWN; -#line 203 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp5_ = _tmp4_; -#line 203 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp5__length1 = 1; -#line 203 "/home/jens/Source/shotwell/src/Orientation.vala" - if (result_length1) { -#line 203 "/home/jens/Source/shotwell/src/Orientation.vala" - *result_length1 = _tmp5__length1; -#line 769 "Orientation.c" - } -#line 203 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp5_; -#line 203 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 775 "Orientation.c" - } -#line 194 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_LEFT: -#line 779 "Orientation.c" - { - Rotation* _tmp6_; - Rotation* _tmp7_; - gint _tmp7__length1; -#line 207 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp6_ = g_new0 (Rotation, 2); -#line 207 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp6_[0] = ROTATION_MIRROR; -#line 207 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp6_[1] = ROTATION_UPSIDE_DOWN; -#line 207 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp7_ = _tmp6_; -#line 207 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp7__length1 = 2; -#line 207 "/home/jens/Source/shotwell/src/Orientation.vala" - if (result_length1) { -#line 207 "/home/jens/Source/shotwell/src/Orientation.vala" - *result_length1 = _tmp7__length1; -#line 798 "Orientation.c" - } -#line 207 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp7_; -#line 207 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 804 "Orientation.c" - } -#line 194 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_TOP: -#line 808 "Orientation.c" - { - Rotation* _tmp8_; - Rotation* _tmp9_; - gint _tmp9__length1; -#line 210 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp8_ = g_new0 (Rotation, 2); -#line 210 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp8_[0] = ROTATION_COUNTERCLOCKWISE; -#line 210 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp8_[1] = ROTATION_UPSIDE_DOWN; -#line 210 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp9_ = _tmp8_; -#line 210 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp9__length1 = 2; -#line 210 "/home/jens/Source/shotwell/src/Orientation.vala" - if (result_length1) { -#line 210 "/home/jens/Source/shotwell/src/Orientation.vala" - *result_length1 = _tmp9__length1; -#line 827 "Orientation.c" - } -#line 210 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp9_; -#line 210 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 833 "Orientation.c" - } -#line 194 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_TOP: -#line 837 "Orientation.c" - { - Rotation* _tmp10_; - Rotation* _tmp11_; - gint _tmp11__length1; -#line 213 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp10_ = g_new0 (Rotation, 1); -#line 213 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp10_[0] = ROTATION_CLOCKWISE; -#line 213 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp11_ = _tmp10_; -#line 213 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp11__length1 = 1; -#line 213 "/home/jens/Source/shotwell/src/Orientation.vala" - if (result_length1) { -#line 213 "/home/jens/Source/shotwell/src/Orientation.vala" - *result_length1 = _tmp11__length1; -#line 854 "Orientation.c" - } -#line 213 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp11_; -#line 213 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 860 "Orientation.c" - } -#line 194 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_BOTTOM: -#line 864 "Orientation.c" - { - Rotation* _tmp12_; - Rotation* _tmp13_; - gint _tmp13__length1; -#line 216 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp12_ = g_new0 (Rotation, 2); -#line 216 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp12_[0] = ROTATION_CLOCKWISE; -#line 216 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp12_[1] = ROTATION_UPSIDE_DOWN; -#line 216 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp13_ = _tmp12_; -#line 216 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp13__length1 = 2; -#line 216 "/home/jens/Source/shotwell/src/Orientation.vala" - if (result_length1) { -#line 216 "/home/jens/Source/shotwell/src/Orientation.vala" - *result_length1 = _tmp13__length1; -#line 883 "Orientation.c" - } -#line 216 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp13_; -#line 216 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 889 "Orientation.c" - } -#line 194 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_BOTTOM: -#line 893 "Orientation.c" - { - Rotation* _tmp14_; - Rotation* _tmp15_; - gint _tmp15__length1; -#line 219 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp14_ = g_new0 (Rotation, 1); -#line 219 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp14_[0] = ROTATION_COUNTERCLOCKWISE; -#line 219 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp15_ = _tmp14_; -#line 219 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp15__length1 = 1; -#line 219 "/home/jens/Source/shotwell/src/Orientation.vala" - if (result_length1) { -#line 219 "/home/jens/Source/shotwell/src/Orientation.vala" - *result_length1 = _tmp15__length1; -#line 910 "Orientation.c" - } -#line 219 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp15_; -#line 219 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 916 "Orientation.c" - } - default: - { -#line 222 "/home/jens/Source/shotwell/src/Orientation.vala" - g_error ("Orientation.vala:222: to_rotations: %d", (gint) self); -#line 922 "Orientation.c" - } - } -} - - -void -orientation_rotate_dimensions (Orientation self, - Dimensions* dim, - Dimensions* result) -{ -#line 226 "/home/jens/Source/shotwell/src/Orientation.vala" - g_return_if_fail (dim != NULL); -#line 227 "/home/jens/Source/shotwell/src/Orientation.vala" - switch (self) { -#line 227 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_LEFT: -#line 227 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_RIGHT: -#line 227 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_RIGHT: -#line 227 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_LEFT: -#line 945 "Orientation.c" - { - Dimensions _tmp0_; -#line 233 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp0_ = *dim; -#line 233 "/home/jens/Source/shotwell/src/Orientation.vala" - *result = _tmp0_; -#line 233 "/home/jens/Source/shotwell/src/Orientation.vala" - return; -#line 954 "Orientation.c" - } -#line 227 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_TOP: -#line 227 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_TOP: -#line 227 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_BOTTOM: -#line 227 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_BOTTOM: -#line 964 "Orientation.c" - { - Dimensions _tmp1_; - gint _tmp2_; - Dimensions _tmp3_; - gint _tmp4_; - Dimensions _tmp5_ = {0}; -#line 240 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp1_ = *dim; -#line 240 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp2_ = _tmp1_.height; -#line 240 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp3_ = *dim; -#line 240 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp4_ = _tmp3_.width; -#line 240 "/home/jens/Source/shotwell/src/Orientation.vala" - dimensions_init (&_tmp5_, _tmp2_, _tmp4_); -#line 240 "/home/jens/Source/shotwell/src/Orientation.vala" - *result = _tmp5_; -#line 240 "/home/jens/Source/shotwell/src/Orientation.vala" - return; -#line 985 "Orientation.c" - } - default: - { -#line 243 "/home/jens/Source/shotwell/src/Orientation.vala" - g_error ("Orientation.vala:243: rotate_dimensions: %d", (gint) self); -#line 991 "Orientation.c" - } - } -} - - -void -orientation_derotate_dimensions (Orientation self, - Dimensions* dim, - Dimensions* result) -{ - Dimensions _tmp0_; - Dimensions _tmp1_ = {0}; -#line 247 "/home/jens/Source/shotwell/src/Orientation.vala" - g_return_if_fail (dim != NULL); -#line 248 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp0_ = *dim; -#line 248 "/home/jens/Source/shotwell/src/Orientation.vala" - orientation_rotate_dimensions (self, &_tmp0_, &_tmp1_); -#line 248 "/home/jens/Source/shotwell/src/Orientation.vala" - *result = _tmp1_; -#line 248 "/home/jens/Source/shotwell/src/Orientation.vala" - return; -#line 1014 "Orientation.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 256 "/home/jens/Source/shotwell/src/Orientation.vala" - return self ? g_object_ref (self) : NULL; -#line 1023 "Orientation.c" -} - - -GdkPixbuf* -orientation_rotate_pixbuf (Orientation self, - GdkPixbuf* pixbuf) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* rotated = NULL; -#line 251 "/home/jens/Source/shotwell/src/Orientation.vala" - g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL); -#line 253 "/home/jens/Source/shotwell/src/Orientation.vala" - switch (self) { -#line 253 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_LEFT: -#line 1039 "Orientation.c" - { - GdkPixbuf* _tmp0_; -#line 256 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp0_ = _g_object_ref0 (pixbuf); -#line 256 "/home/jens/Source/shotwell/src/Orientation.vala" - _g_object_unref0 (rotated); -#line 256 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp0_; -#line 257 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1050 "Orientation.c" - } -#line 253 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_RIGHT: -#line 1054 "Orientation.c" - { - GdkPixbuf* _tmp1_; -#line 261 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp1_ = gdk_pixbuf_flip (pixbuf, TRUE); -#line 261 "/home/jens/Source/shotwell/src/Orientation.vala" - _g_object_unref0 (rotated); -#line 261 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp1_; -#line 262 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1065 "Orientation.c" - } -#line 253 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_RIGHT: -#line 1069 "Orientation.c" - { - GdkPixbuf* _tmp2_; -#line 265 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp2_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_UPSIDEDOWN); -#line 265 "/home/jens/Source/shotwell/src/Orientation.vala" - _g_object_unref0 (rotated); -#line 265 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp2_; -#line 266 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1080 "Orientation.c" - } -#line 253 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_LEFT: -#line 1084 "Orientation.c" - { - GdkPixbuf* _tmp3_; -#line 270 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp3_ = gdk_pixbuf_flip (pixbuf, FALSE); -#line 270 "/home/jens/Source/shotwell/src/Orientation.vala" - _g_object_unref0 (rotated); -#line 270 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp3_; -#line 271 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1095 "Orientation.c" - } -#line 253 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_TOP: -#line 1099 "Orientation.c" - { - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; -#line 274 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp4_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE); -#line 274 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp5_ = _tmp4_; -#line 274 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp6_ = gdk_pixbuf_flip (_tmp5_, FALSE); -#line 274 "/home/jens/Source/shotwell/src/Orientation.vala" - _g_object_unref0 (rotated); -#line 274 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp6_; -#line 274 "/home/jens/Source/shotwell/src/Orientation.vala" - _g_object_unref0 (_tmp5_); -#line 275 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1118 "Orientation.c" - } -#line 253 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_TOP: -#line 1122 "Orientation.c" - { - GdkPixbuf* _tmp7_; -#line 278 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp7_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_CLOCKWISE); -#line 278 "/home/jens/Source/shotwell/src/Orientation.vala" - _g_object_unref0 (rotated); -#line 278 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp7_; -#line 279 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1133 "Orientation.c" - } -#line 253 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_BOTTOM: -#line 1137 "Orientation.c" - { - GdkPixbuf* _tmp8_; - GdkPixbuf* _tmp9_; - GdkPixbuf* _tmp10_; -#line 282 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp8_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_CLOCKWISE); -#line 282 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp9_ = _tmp8_; -#line 282 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp10_ = gdk_pixbuf_flip (_tmp9_, FALSE); -#line 282 "/home/jens/Source/shotwell/src/Orientation.vala" - _g_object_unref0 (rotated); -#line 282 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp10_; -#line 282 "/home/jens/Source/shotwell/src/Orientation.vala" - _g_object_unref0 (_tmp9_); -#line 283 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1156 "Orientation.c" - } -#line 253 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_BOTTOM: -#line 1160 "Orientation.c" - { - GdkPixbuf* _tmp11_; -#line 286 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp11_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE); -#line 286 "/home/jens/Source/shotwell/src/Orientation.vala" - _g_object_unref0 (rotated); -#line 286 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp11_; -#line 287 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1171 "Orientation.c" - } - default: - { -#line 290 "/home/jens/Source/shotwell/src/Orientation.vala" - g_error ("Orientation.vala:290: rotate_pixbuf: %d", (gint) self); -#line 1177 "Orientation.c" - } - } -#line 293 "/home/jens/Source/shotwell/src/Orientation.vala" - result = rotated; -#line 293 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 1184 "Orientation.c" -} - - -void -orientation_rotate_point (Orientation self, - Dimensions* space, - GdkPoint* point, - GdkPoint* result) -{ - GdkPoint _tmp0_; - gint _tmp1_; - GdkPoint _tmp2_; - gint _tmp3_; - Dimensions _tmp4_; - gint _tmp5_; - GdkPoint _tmp6_; - gint _tmp7_; - GdkPoint _tmp8_; - gint _tmp9_; - Dimensions _tmp10_; - gint _tmp11_; - GdkPoint rotated = {0}; -#line 297 "/home/jens/Source/shotwell/src/Orientation.vala" - g_return_if_fail (space != NULL); -#line 297 "/home/jens/Source/shotwell/src/Orientation.vala" - g_return_if_fail (point != NULL); -#line 298 "/home/jens/Source/shotwell/src/Orientation.vala" - _vala_assert (dimensions_has_area (space), "space.has_area()"); -#line 299 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp0_ = *point; -#line 299 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp1_ = _tmp0_.x; -#line 299 "/home/jens/Source/shotwell/src/Orientation.vala" - _vala_assert (_tmp1_ >= 0, "point.x >= 0"); -#line 300 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp2_ = *point; -#line 300 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp3_ = _tmp2_.x; -#line 300 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp4_ = *space; -#line 300 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp5_ = _tmp4_.width; -#line 300 "/home/jens/Source/shotwell/src/Orientation.vala" - _vala_assert (_tmp3_ < _tmp5_, "point.x < space.width"); -#line 301 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp6_ = *point; -#line 301 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp7_ = _tmp6_.y; -#line 301 "/home/jens/Source/shotwell/src/Orientation.vala" - _vala_assert (_tmp7_ >= 0, "point.y >= 0"); -#line 302 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp8_ = *point; -#line 302 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp9_ = _tmp8_.y; -#line 302 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp10_ = *space; -#line 302 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp11_ = _tmp10_.height; -#line 302 "/home/jens/Source/shotwell/src/Orientation.vala" - _vala_assert (_tmp9_ < _tmp11_, "point.y < space.height"); -#line 304 "/home/jens/Source/shotwell/src/Orientation.vala" - memset (&rotated, 0, sizeof (GdkPoint)); -#line 306 "/home/jens/Source/shotwell/src/Orientation.vala" - switch (self) { -#line 306 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_LEFT: -#line 1251 "Orientation.c" - { - GdkPoint _tmp12_; -#line 309 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp12_ = *point; -#line 309 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated = _tmp12_; -#line 310 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1260 "Orientation.c" - } -#line 306 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_RIGHT: -#line 1264 "Orientation.c" - { - Dimensions _tmp13_; - gint _tmp14_; - GdkPoint _tmp15_; - gint _tmp16_; - GdkPoint _tmp17_; - gint _tmp18_; -#line 314 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp13_ = *space; -#line 314 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp14_ = _tmp13_.width; -#line 314 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp15_ = *point; -#line 314 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp16_ = _tmp15_.x; -#line 314 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.x = (_tmp14_ - _tmp16_) - 1; -#line 315 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp17_ = *point; -#line 315 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp18_ = _tmp17_.y; -#line 315 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.y = _tmp18_; -#line 316 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1290 "Orientation.c" - } -#line 306 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_RIGHT: -#line 1294 "Orientation.c" - { - Dimensions _tmp19_; - gint _tmp20_; - GdkPoint _tmp21_; - gint _tmp22_; - Dimensions _tmp23_; - gint _tmp24_; - GdkPoint _tmp25_; - gint _tmp26_; -#line 320 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp19_ = *space; -#line 320 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp20_ = _tmp19_.width; -#line 320 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp21_ = *point; -#line 320 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp22_ = _tmp21_.x; -#line 320 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.x = (_tmp20_ - _tmp22_) - 1; -#line 321 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp23_ = *space; -#line 321 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp24_ = _tmp23_.height; -#line 321 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp25_ = *point; -#line 321 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp26_ = _tmp25_.y; -#line 321 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.y = (_tmp24_ - _tmp26_) - 1; -#line 322 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1326 "Orientation.c" - } -#line 306 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_LEFT: -#line 1330 "Orientation.c" - { - GdkPoint _tmp27_; - gint _tmp28_; - Dimensions _tmp29_; - gint _tmp30_; - GdkPoint _tmp31_; - gint _tmp32_; -#line 326 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp27_ = *point; -#line 326 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp28_ = _tmp27_.x; -#line 326 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.x = _tmp28_; -#line 327 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp29_ = *space; -#line 327 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp30_ = _tmp29_.height; -#line 327 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp31_ = *point; -#line 327 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp32_ = _tmp31_.y; -#line 327 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.y = (_tmp30_ - _tmp32_) - 1; -#line 328 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1356 "Orientation.c" - } -#line 306 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_TOP: -#line 1360 "Orientation.c" - { - GdkPoint _tmp33_; - gint _tmp34_; - GdkPoint _tmp35_; - gint _tmp36_; -#line 332 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp33_ = *point; -#line 332 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp34_ = _tmp33_.y; -#line 332 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.x = _tmp34_; -#line 333 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp35_ = *point; -#line 333 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp36_ = _tmp35_.x; -#line 333 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.y = _tmp36_; -#line 334 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1380 "Orientation.c" - } -#line 306 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_TOP: -#line 1384 "Orientation.c" - { - Dimensions _tmp37_; - gint _tmp38_; - GdkPoint _tmp39_; - gint _tmp40_; - GdkPoint _tmp41_; - gint _tmp42_; -#line 338 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp37_ = *space; -#line 338 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp38_ = _tmp37_.height; -#line 338 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp39_ = *point; -#line 338 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp40_ = _tmp39_.y; -#line 338 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.x = (_tmp38_ - _tmp40_) - 1; -#line 339 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp41_ = *point; -#line 339 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp42_ = _tmp41_.x; -#line 339 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.y = _tmp42_; -#line 340 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1410 "Orientation.c" - } -#line 306 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_BOTTOM: -#line 1414 "Orientation.c" - { - Dimensions _tmp43_; - gint _tmp44_; - GdkPoint _tmp45_; - gint _tmp46_; - Dimensions _tmp47_; - gint _tmp48_; - GdkPoint _tmp49_; - gint _tmp50_; -#line 344 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp43_ = *space; -#line 344 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp44_ = _tmp43_.height; -#line 344 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp45_ = *point; -#line 344 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp46_ = _tmp45_.y; -#line 344 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.x = (_tmp44_ - _tmp46_) - 1; -#line 345 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp47_ = *space; -#line 345 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp48_ = _tmp47_.width; -#line 345 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp49_ = *point; -#line 345 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp50_ = _tmp49_.x; -#line 345 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.y = (_tmp48_ - _tmp50_) - 1; -#line 346 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1446 "Orientation.c" - } -#line 306 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_BOTTOM: -#line 1450 "Orientation.c" - { - GdkPoint _tmp51_; - gint _tmp52_; - Dimensions _tmp53_; - gint _tmp54_; - GdkPoint _tmp55_; - gint _tmp56_; -#line 350 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp51_ = *point; -#line 350 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp52_ = _tmp51_.y; -#line 350 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.x = _tmp52_; -#line 351 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp53_ = *space; -#line 351 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp54_ = _tmp53_.width; -#line 351 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp55_ = *point; -#line 351 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp56_ = _tmp55_.x; -#line 351 "/home/jens/Source/shotwell/src/Orientation.vala" - rotated.y = (_tmp54_ - _tmp56_) - 1; -#line 352 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1476 "Orientation.c" - } - default: - { -#line 355 "/home/jens/Source/shotwell/src/Orientation.vala" - g_error ("Orientation.vala:355: rotate_point: %d", (gint) self); -#line 1482 "Orientation.c" - } - } -#line 358 "/home/jens/Source/shotwell/src/Orientation.vala" - *result = rotated; -#line 358 "/home/jens/Source/shotwell/src/Orientation.vala" - return; -#line 1489 "Orientation.c" -} - - -void -orientation_derotate_point (Orientation self, - Dimensions* space, - GdkPoint* point, - GdkPoint* result) -{ - GdkPoint derotated = {0}; -#line 362 "/home/jens/Source/shotwell/src/Orientation.vala" - g_return_if_fail (space != NULL); -#line 362 "/home/jens/Source/shotwell/src/Orientation.vala" - g_return_if_fail (point != NULL); -#line 363 "/home/jens/Source/shotwell/src/Orientation.vala" - _vala_assert (dimensions_has_area (space), "space.has_area()"); -#line 365 "/home/jens/Source/shotwell/src/Orientation.vala" - memset (&derotated, 0, sizeof (GdkPoint)); -#line 367 "/home/jens/Source/shotwell/src/Orientation.vala" - switch (self) { -#line 367 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_LEFT: -#line 1512 "Orientation.c" - { - GdkPoint _tmp0_; -#line 370 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp0_ = *point; -#line 370 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated = _tmp0_; -#line 371 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1521 "Orientation.c" - } -#line 367 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_TOP_RIGHT: -#line 1525 "Orientation.c" - { - Dimensions _tmp1_; - gint _tmp2_; - GdkPoint _tmp3_; - gint _tmp4_; - GdkPoint _tmp5_; - gint _tmp6_; -#line 375 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp1_ = *space; -#line 375 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp2_ = _tmp1_.width; -#line 375 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp3_ = *point; -#line 375 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp4_ = _tmp3_.x; -#line 375 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.x = (_tmp2_ - _tmp4_) - 1; -#line 376 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp5_ = *point; -#line 376 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp6_ = _tmp5_.y; -#line 376 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.y = _tmp6_; -#line 377 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1551 "Orientation.c" - } -#line 367 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_RIGHT: -#line 1555 "Orientation.c" - { - Dimensions _tmp7_; - gint _tmp8_; - GdkPoint _tmp9_; - gint _tmp10_; - Dimensions _tmp11_; - gint _tmp12_; - GdkPoint _tmp13_; - gint _tmp14_; -#line 381 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp7_ = *space; -#line 381 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp8_ = _tmp7_.width; -#line 381 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp9_ = *point; -#line 381 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp10_ = _tmp9_.x; -#line 381 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.x = (_tmp8_ - _tmp10_) - 1; -#line 382 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp11_ = *space; -#line 382 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp12_ = _tmp11_.height; -#line 382 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp13_ = *point; -#line 382 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp14_ = _tmp13_.y; -#line 382 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.y = (_tmp12_ - _tmp14_) - 1; -#line 383 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1587 "Orientation.c" - } -#line 367 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_BOTTOM_LEFT: -#line 1591 "Orientation.c" - { - GdkPoint _tmp15_; - gint _tmp16_; - Dimensions _tmp17_; - gint _tmp18_; - GdkPoint _tmp19_; - gint _tmp20_; -#line 387 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp15_ = *point; -#line 387 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp16_ = _tmp15_.x; -#line 387 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.x = _tmp16_; -#line 388 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp17_ = *space; -#line 388 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp18_ = _tmp17_.height; -#line 388 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp19_ = *point; -#line 388 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp20_ = _tmp19_.y; -#line 388 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.y = (_tmp18_ - _tmp20_) - 1; -#line 389 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1617 "Orientation.c" - } -#line 367 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_TOP: -#line 1621 "Orientation.c" - { - GdkPoint _tmp21_; - gint _tmp22_; - GdkPoint _tmp23_; - gint _tmp24_; -#line 393 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp21_ = *point; -#line 393 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp22_ = _tmp21_.y; -#line 393 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.x = _tmp22_; -#line 394 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp23_ = *point; -#line 394 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp24_ = _tmp23_.x; -#line 394 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.y = _tmp24_; -#line 395 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1641 "Orientation.c" - } -#line 367 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_TOP: -#line 1645 "Orientation.c" - { - GdkPoint _tmp25_; - gint _tmp26_; - Dimensions _tmp27_; - gint _tmp28_; - GdkPoint _tmp29_; - gint _tmp30_; -#line 399 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp25_ = *point; -#line 399 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp26_ = _tmp25_.y; -#line 399 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.x = _tmp26_; -#line 400 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp27_ = *space; -#line 400 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp28_ = _tmp27_.height; -#line 400 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp29_ = *point; -#line 400 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp30_ = _tmp29_.x; -#line 400 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.y = (_tmp28_ - _tmp30_) - 1; -#line 401 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1671 "Orientation.c" - } -#line 367 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_RIGHT_BOTTOM: -#line 1675 "Orientation.c" - { - Dimensions _tmp31_; - gint _tmp32_; - GdkPoint _tmp33_; - gint _tmp34_; - Dimensions _tmp35_; - gint _tmp36_; - GdkPoint _tmp37_; - gint _tmp38_; -#line 405 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp31_ = *space; -#line 405 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp32_ = _tmp31_.width; -#line 405 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp33_ = *point; -#line 405 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp34_ = _tmp33_.y; -#line 405 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.x = (_tmp32_ - _tmp34_) - 1; -#line 406 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp35_ = *space; -#line 406 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp36_ = _tmp35_.height; -#line 406 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp37_ = *point; -#line 406 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp38_ = _tmp37_.x; -#line 406 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.y = (_tmp36_ - _tmp38_) - 1; -#line 407 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1707 "Orientation.c" - } -#line 367 "/home/jens/Source/shotwell/src/Orientation.vala" - case ORIENTATION_LEFT_BOTTOM: -#line 1711 "Orientation.c" - { - Dimensions _tmp39_; - gint _tmp40_; - GdkPoint _tmp41_; - gint _tmp42_; - GdkPoint _tmp43_; - gint _tmp44_; -#line 411 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp39_ = *space; -#line 411 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp40_ = _tmp39_.width; -#line 411 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp41_ = *point; -#line 411 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp42_ = _tmp41_.y; -#line 411 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.x = (_tmp40_ - _tmp42_) - 1; -#line 412 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp43_ = *point; -#line 412 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp44_ = _tmp43_.x; -#line 412 "/home/jens/Source/shotwell/src/Orientation.vala" - derotated.y = _tmp44_; -#line 413 "/home/jens/Source/shotwell/src/Orientation.vala" - break; -#line 1737 "Orientation.c" - } - default: - { -#line 416 "/home/jens/Source/shotwell/src/Orientation.vala" - g_error ("Orientation.vala:416: rotate_point: %d", (gint) self); -#line 1743 "Orientation.c" - } - } -#line 419 "/home/jens/Source/shotwell/src/Orientation.vala" - *result = derotated; -#line 419 "/home/jens/Source/shotwell/src/Orientation.vala" - return; -#line 1750 "Orientation.c" -} - - -void -orientation_rotate_box (Orientation self, - Dimensions* space, - Box* box, - Box* result) -{ - GdkPoint top_left = {0}; - GdkPoint bottom_right = {0}; - GdkPoint _tmp0_ = {0}; - GdkPoint _tmp1_ = {0}; - GdkPoint _tmp2_; - gint _tmp3_; - Dimensions _tmp4_; - gint _tmp5_; - GdkPoint _tmp6_; - gint _tmp7_; - Dimensions _tmp8_; - gint _tmp9_; - GdkPoint _tmp10_; - gint _tmp11_; - Dimensions _tmp12_; - gint _tmp13_; - GdkPoint _tmp14_; - gint _tmp15_; - Dimensions _tmp16_; - gint _tmp17_; - Dimensions _tmp18_; - GdkPoint _tmp19_; - GdkPoint _tmp20_ = {0}; - Dimensions _tmp21_; - GdkPoint _tmp22_; - GdkPoint _tmp23_ = {0}; - GdkPoint _tmp24_; - GdkPoint _tmp25_; - Box _tmp26_ = {0}; -#line 423 "/home/jens/Source/shotwell/src/Orientation.vala" - g_return_if_fail (space != NULL); -#line 423 "/home/jens/Source/shotwell/src/Orientation.vala" - g_return_if_fail (box != NULL); -#line 425 "/home/jens/Source/shotwell/src/Orientation.vala" - box_get_points (box, &_tmp0_, &_tmp1_); -#line 425 "/home/jens/Source/shotwell/src/Orientation.vala" - top_left = _tmp0_; -#line 425 "/home/jens/Source/shotwell/src/Orientation.vala" - bottom_right = _tmp1_; -#line 427 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp2_ = top_left; -#line 427 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp3_ = _tmp2_.x; -#line 427 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp4_ = *space; -#line 427 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp5_ = _tmp4_.width; -#line 427 "/home/jens/Source/shotwell/src/Orientation.vala" - top_left.x = CLAMP (_tmp3_, 0, _tmp5_ - 1); -#line 428 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp6_ = top_left; -#line 428 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp7_ = _tmp6_.y; -#line 428 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp8_ = *space; -#line 428 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp9_ = _tmp8_.height; -#line 428 "/home/jens/Source/shotwell/src/Orientation.vala" - top_left.y = CLAMP (_tmp7_, 0, _tmp9_ - 1); -#line 430 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp10_ = bottom_right; -#line 430 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp11_ = _tmp10_.x; -#line 430 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp12_ = *space; -#line 430 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp13_ = _tmp12_.width; -#line 430 "/home/jens/Source/shotwell/src/Orientation.vala" - bottom_right.x = CLAMP (_tmp11_, 0, _tmp13_ - 1); -#line 431 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp14_ = bottom_right; -#line 431 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp15_ = _tmp14_.y; -#line 431 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp16_ = *space; -#line 431 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp17_ = _tmp16_.height; -#line 431 "/home/jens/Source/shotwell/src/Orientation.vala" - bottom_right.y = CLAMP (_tmp15_, 0, _tmp17_ - 1); -#line 433 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp18_ = *space; -#line 433 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp19_ = top_left; -#line 433 "/home/jens/Source/shotwell/src/Orientation.vala" - orientation_rotate_point (self, &_tmp18_, &_tmp19_, &_tmp20_); -#line 433 "/home/jens/Source/shotwell/src/Orientation.vala" - top_left = _tmp20_; -#line 434 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp21_ = *space; -#line 434 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp22_ = bottom_right; -#line 434 "/home/jens/Source/shotwell/src/Orientation.vala" - orientation_rotate_point (self, &_tmp21_, &_tmp22_, &_tmp23_); -#line 434 "/home/jens/Source/shotwell/src/Orientation.vala" - bottom_right = _tmp23_; -#line 436 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp24_ = top_left; -#line 436 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp25_ = bottom_right; -#line 436 "/home/jens/Source/shotwell/src/Orientation.vala" - box_from_points (&_tmp24_, &_tmp25_, &_tmp26_); -#line 436 "/home/jens/Source/shotwell/src/Orientation.vala" - *result = _tmp26_; -#line 436 "/home/jens/Source/shotwell/src/Orientation.vala" - return; -#line 1865 "Orientation.c" -} - - -void -orientation_derotate_box (Orientation self, - Dimensions* space, - Box* box, - Box* result) -{ - GdkPoint top_left = {0}; - GdkPoint bottom_right = {0}; - GdkPoint _tmp0_ = {0}; - GdkPoint _tmp1_ = {0}; - Dimensions _tmp2_; - GdkPoint _tmp3_; - GdkPoint _tmp4_ = {0}; - Dimensions _tmp5_; - GdkPoint _tmp6_; - GdkPoint _tmp7_ = {0}; - GdkPoint _tmp8_; - GdkPoint _tmp9_; - Box _tmp10_ = {0}; -#line 440 "/home/jens/Source/shotwell/src/Orientation.vala" - g_return_if_fail (space != NULL); -#line 440 "/home/jens/Source/shotwell/src/Orientation.vala" - g_return_if_fail (box != NULL); -#line 442 "/home/jens/Source/shotwell/src/Orientation.vala" - box_get_points (box, &_tmp0_, &_tmp1_); -#line 442 "/home/jens/Source/shotwell/src/Orientation.vala" - top_left = _tmp0_; -#line 442 "/home/jens/Source/shotwell/src/Orientation.vala" - bottom_right = _tmp1_; -#line 444 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp2_ = *space; -#line 444 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp3_ = top_left; -#line 444 "/home/jens/Source/shotwell/src/Orientation.vala" - orientation_derotate_point (self, &_tmp2_, &_tmp3_, &_tmp4_); -#line 444 "/home/jens/Source/shotwell/src/Orientation.vala" - top_left = _tmp4_; -#line 445 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp5_ = *space; -#line 445 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp6_ = bottom_right; -#line 445 "/home/jens/Source/shotwell/src/Orientation.vala" - orientation_derotate_point (self, &_tmp5_, &_tmp6_, &_tmp7_); -#line 445 "/home/jens/Source/shotwell/src/Orientation.vala" - bottom_right = _tmp7_; -#line 447 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp8_ = top_left; -#line 447 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp9_ = bottom_right; -#line 447 "/home/jens/Source/shotwell/src/Orientation.vala" - box_from_points (&_tmp8_, &_tmp9_, &_tmp10_); -#line 447 "/home/jens/Source/shotwell/src/Orientation.vala" - *result = _tmp10_; -#line 447 "/home/jens/Source/shotwell/src/Orientation.vala" - return; -#line 1924 "Orientation.c" -} - - -GType -orientation_get_type (void) -{ - static volatile gsize orientation_type_id__volatile = 0; - if (g_once_init_enter (&orientation_type_id__volatile)) { - static const GEnumValue values[] = {{ORIENTATION_MIN, "ORIENTATION_MIN", "min"}, {ORIENTATION_TOP_LEFT, "ORIENTATION_TOP_LEFT", "top-left"}, {ORIENTATION_TOP_RIGHT, "ORIENTATION_TOP_RIGHT", "top-right"}, {ORIENTATION_BOTTOM_RIGHT, "ORIENTATION_BOTTOM_RIGHT", "bottom-right"}, {ORIENTATION_BOTTOM_LEFT, "ORIENTATION_BOTTOM_LEFT", "bottom-left"}, {ORIENTATION_LEFT_TOP, "ORIENTATION_LEFT_TOP", "left-top"}, {ORIENTATION_RIGHT_TOP, "ORIENTATION_RIGHT_TOP", "right-top"}, {ORIENTATION_RIGHT_BOTTOM, "ORIENTATION_RIGHT_BOTTOM", "right-bottom"}, {ORIENTATION_LEFT_BOTTOM, "ORIENTATION_LEFT_BOTTOM", "left-bottom"}, {ORIENTATION_MAX, "ORIENTATION_MAX", "max"}, {0, NULL, NULL}}; - GType orientation_type_id; - orientation_type_id = g_enum_register_static ("Orientation", values); - g_once_init_leave (&orientation_type_id__volatile, orientation_type_id); - } - return orientation_type_id__volatile; -} - - -GdkPixbuf* -rotation_perform (Rotation self, - GdkPixbuf* pixbuf) -{ - GdkPixbuf* result = NULL; -#line 457 "/home/jens/Source/shotwell/src/Orientation.vala" - g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL); -#line 458 "/home/jens/Source/shotwell/src/Orientation.vala" - switch (self) { -#line 458 "/home/jens/Source/shotwell/src/Orientation.vala" - case ROTATION_CLOCKWISE: -#line 1953 "Orientation.c" - { - GdkPixbuf* _tmp0_; -#line 460 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp0_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_CLOCKWISE); -#line 460 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp0_; -#line 460 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 1962 "Orientation.c" - } -#line 458 "/home/jens/Source/shotwell/src/Orientation.vala" - case ROTATION_COUNTERCLOCKWISE: -#line 1966 "Orientation.c" - { - GdkPixbuf* _tmp1_; -#line 463 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp1_ = gdk_pixbuf_rotate_simple (pixbuf, GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE); -#line 463 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp1_; -#line 463 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 1975 "Orientation.c" - } -#line 458 "/home/jens/Source/shotwell/src/Orientation.vala" - case ROTATION_MIRROR: -#line 1979 "Orientation.c" - { - GdkPixbuf* _tmp2_; -#line 466 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp2_ = gdk_pixbuf_flip (pixbuf, TRUE); -#line 466 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp2_; -#line 466 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 1988 "Orientation.c" - } -#line 458 "/home/jens/Source/shotwell/src/Orientation.vala" - case ROTATION_UPSIDE_DOWN: -#line 1992 "Orientation.c" - { - GdkPixbuf* _tmp3_; -#line 469 "/home/jens/Source/shotwell/src/Orientation.vala" - _tmp3_ = gdk_pixbuf_flip (pixbuf, FALSE); -#line 469 "/home/jens/Source/shotwell/src/Orientation.vala" - result = _tmp3_; -#line 469 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 2001 "Orientation.c" - } - default: - { -#line 472 "/home/jens/Source/shotwell/src/Orientation.vala" - g_error ("Orientation.vala:472: Unknown rotation: %d", (gint) self); -#line 2007 "Orientation.c" - } - } -} - - -Rotation -rotation_opposite (Rotation self) -{ - Rotation result = 0; -#line 477 "/home/jens/Source/shotwell/src/Orientation.vala" - switch (self) { -#line 477 "/home/jens/Source/shotwell/src/Orientation.vala" - case ROTATION_CLOCKWISE: -#line 2021 "Orientation.c" - { -#line 479 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ROTATION_COUNTERCLOCKWISE; -#line 479 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 2027 "Orientation.c" - } -#line 477 "/home/jens/Source/shotwell/src/Orientation.vala" - case ROTATION_COUNTERCLOCKWISE: -#line 2031 "Orientation.c" - { -#line 482 "/home/jens/Source/shotwell/src/Orientation.vala" - result = ROTATION_CLOCKWISE; -#line 482 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 2037 "Orientation.c" - } -#line 477 "/home/jens/Source/shotwell/src/Orientation.vala" - case ROTATION_MIRROR: -#line 477 "/home/jens/Source/shotwell/src/Orientation.vala" - case ROTATION_UPSIDE_DOWN: -#line 2043 "Orientation.c" - { -#line 486 "/home/jens/Source/shotwell/src/Orientation.vala" - result = self; -#line 486 "/home/jens/Source/shotwell/src/Orientation.vala" - return result; -#line 2049 "Orientation.c" - } - default: - { -#line 489 "/home/jens/Source/shotwell/src/Orientation.vala" - g_error ("Orientation.vala:489: Unknown rotation: %d", (gint) self); -#line 2055 "Orientation.c" - } - } -} - - -GType -rotation_get_type (void) -{ - static volatile gsize rotation_type_id__volatile = 0; - if (g_once_init_enter (&rotation_type_id__volatile)) { - static const GEnumValue values[] = {{ROTATION_CLOCKWISE, "ROTATION_CLOCKWISE", "clockwise"}, {ROTATION_COUNTERCLOCKWISE, "ROTATION_COUNTERCLOCKWISE", "counterclockwise"}, {ROTATION_MIRROR, "ROTATION_MIRROR", "mirror"}, {ROTATION_UPSIDE_DOWN, "ROTATION_UPSIDE_DOWN", "upside-down"}, {0, NULL, NULL}}; - GType rotation_type_id; - rotation_type_id = g_enum_register_static ("Rotation", values); - g_once_init_leave (&rotation_type_id__volatile, rotation_type_id); - } - return rotation_type_id__volatile; -} - - - diff --git a/src/Page.c b/src/Page.c deleted file mode 100644 index aa71fce..0000000 --- a/src/Page.c +++ /dev/null @@ -1,17156 +0,0 @@ -/* Page.c generated by valac 0.40.4, the Vala compiler - * generated from Page.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include - - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; -typedef struct _InjectionGroupPrivate InjectionGroupPrivate; - -#define INJECTION_GROUP_TYPE_ELEMENT (injection_group_element_get_type ()) -#define INJECTION_GROUP_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), INJECTION_GROUP_TYPE_ELEMENT, InjectionGroupElement)) -#define INJECTION_GROUP_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), INJECTION_GROUP_TYPE_ELEMENT, InjectionGroupElementClass)) -#define INJECTION_GROUP_IS_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), INJECTION_GROUP_TYPE_ELEMENT)) -#define INJECTION_GROUP_IS_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), INJECTION_GROUP_TYPE_ELEMENT)) -#define INJECTION_GROUP_ELEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), INJECTION_GROUP_TYPE_ELEMENT, InjectionGroupElementClass)) - -typedef struct _InjectionGroupElement InjectionGroupElement; -typedef struct _InjectionGroupElementClass InjectionGroupElementClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define INJECTION_GROUP_ELEMENT_TYPE_ITEM_TYPE (injection_group_element_item_type_get_type ()) -#define _injection_group_element_unref0(var) ((var == NULL) ? NULL : (var = (injection_group_element_unref (var), NULL))) -typedef struct _InjectionGroupElementPrivate InjectionGroupElementPrivate; -typedef struct _InjectionGroupParamSpecElement InjectionGroupParamSpecElement; -typedef struct _ParamSpecInjectionGroup ParamSpecInjectionGroup; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; - -#define TYPE_ONE_SHOT_SCHEDULER (one_shot_scheduler_get_type ()) -#define ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler)) -#define ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass)) -#define IS_ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ONE_SHOT_SCHEDULER)) -#define IS_ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ONE_SHOT_SCHEDULER)) -#define ONE_SHOT_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass)) - -typedef struct _OneShotScheduler OneShotScheduler; -typedef struct _OneShotSchedulerClass OneShotSchedulerClass; -enum { - PAGE_0_PROPERTY, - PAGE_NUM_PROPERTIES -}; -static GParamSpec* page_properties[PAGE_NUM_PROPERTIES]; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _one_shot_scheduler_unref0(var) ((var == NULL) ? NULL : (var = (one_shot_scheduler_unref (var), NULL))) -#define _injection_group_unref0(var) ((var == NULL) ? NULL : (var = (injection_group_unref (var), NULL))) - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; -#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_APPLICATION (application_get_type ()) -#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application)) -#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass)) -#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION)) -#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION)) -#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass)) - -typedef struct _Application Application; -typedef struct _ApplicationClass ApplicationClass; -#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; -typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; - -#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ()) - -#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ()) -typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ()) -#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)) -#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) -#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER)) -#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER)) -#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) - -typedef struct _SearchViewFilter SearchViewFilter; -typedef struct _SearchViewFilterClass SearchViewFilterClass; - -#define CORE_TYPE_TRACKER (core_tracker_get_type ()) -#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) -#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) -#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) -#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) -#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) - -typedef struct _CoreTracker CoreTracker; -typedef struct _CoreTrackerClass CoreTrackerClass; - -#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) -#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) -#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) -#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) -#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) -#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) - -typedef struct _CoreViewTracker CoreViewTracker; -typedef struct _CoreViewTrackerClass CoreViewTrackerClass; - -#define TYPE_CHECKERBOARD_LAYOUT (checkerboard_layout_get_type ()) -#define CHECKERBOARD_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayout)) -#define CHECKERBOARD_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayoutClass)) -#define IS_CHECKERBOARD_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_LAYOUT)) -#define IS_CHECKERBOARD_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_LAYOUT)) -#define CHECKERBOARD_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_LAYOUT, CheckerboardLayoutClass)) - -typedef struct _CheckerboardLayout CheckerboardLayout; -typedef struct _CheckerboardLayoutClass CheckerboardLayoutClass; -enum { - CHECKERBOARD_PAGE_0_PROPERTY, - CHECKERBOARD_PAGE_NUM_PROPERTIES -}; -static GParamSpec* checkerboard_page_properties[CHECKERBOARD_PAGE_NUM_PROPERTIES]; -#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL))) - -#define TYPE_ADJUSTMENT_RELATION (adjustment_relation_get_type ()) -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; -typedef struct _DataViewPrivate DataViewPrivate; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; -typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate; -typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_COMPASS_POINT (compass_point_get_type ()) - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; - -#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ()) -#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)) -#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) -#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE)) -#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE)) -#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) - -typedef struct _SinglePhotoPage SinglePhotoPage; -typedef struct _SinglePhotoPageClass SinglePhotoPageClass; -typedef struct _SinglePhotoPagePrivate SinglePhotoPagePrivate; - -#define TYPE_ZOOM_BUFFER (zoom_buffer_get_type ()) -#define ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ZOOM_BUFFER, ZoomBuffer)) -#define ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ZOOM_BUFFER, ZoomBufferClass)) -#define IS_ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ZOOM_BUFFER)) -#define IS_ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ZOOM_BUFFER)) -#define ZOOM_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ZOOM_BUFFER, ZoomBufferClass)) - -typedef struct _ZoomBuffer ZoomBuffer; -typedef struct _ZoomBufferClass ZoomBufferClass; - -#define SINGLE_PHOTO_PAGE_TYPE_UPDATE_REASON (single_photo_page_update_reason_get_type ()) - -#define TYPE_TRANSITION_CLOCK (transition_clock_get_type ()) -#define TRANSITION_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSITION_CLOCK, TransitionClock)) -#define TRANSITION_CLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSITION_CLOCK, TransitionClockClass)) -#define IS_TRANSITION_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSITION_CLOCK)) -#define IS_TRANSITION_CLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSITION_CLOCK)) -#define TRANSITION_CLOCK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSITION_CLOCK, TransitionClockClass)) - -typedef struct _TransitionClock TransitionClock; -typedef struct _TransitionClockClass TransitionClockClass; - -#define TYPE_ZOOM_STATE (zoom_state_get_type ()) -typedef struct _ZoomState ZoomState; -enum { - SINGLE_PHOTO_PAGE_0_PROPERTY, - SINGLE_PHOTO_PAGE_NUM_PROPERTIES -}; -static GParamSpec* single_photo_page_properties[SINGLE_PHOTO_PAGE_NUM_PROPERTIES]; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define _transition_clock_unref0(var) ((var == NULL) ? NULL : (var = (transition_clock_unref (var), NULL))) -#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL))) -#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL))) - -#define TYPE_TRANSITION_EFFECTS_MANAGER (transition_effects_manager_get_type ()) -#define TRANSITION_EFFECTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManager)) -#define TRANSITION_EFFECTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManagerClass)) -#define IS_TRANSITION_EFFECTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSITION_EFFECTS_MANAGER)) -#define IS_TRANSITION_EFFECTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSITION_EFFECTS_MANAGER)) -#define TRANSITION_EFFECTS_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManagerClass)) - -typedef struct _TransitionEffectsManager TransitionEffectsManager; -typedef struct _TransitionEffectsManagerClass TransitionEffectsManagerClass; -#define _transition_effects_manager_unref0(var) ((var == NULL) ? NULL : (var = (transition_effects_manager_unref (var), NULL))) - -#define TYPE_DIRECTION (direction_get_type ()) - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) -typedef struct _Scaling Scaling; - -#define TYPE_DRAG_AND_DROP_HANDLER (drag_and_drop_handler_get_type ()) -#define DRAG_AND_DROP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandler)) -#define DRAG_AND_DROP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandlerClass)) -#define IS_DRAG_AND_DROP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DRAG_AND_DROP_HANDLER)) -#define IS_DRAG_AND_DROP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DRAG_AND_DROP_HANDLER)) -#define DRAG_AND_DROP_HANDLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandlerClass)) - -typedef struct _DragAndDropHandler DragAndDropHandler; -typedef struct _DragAndDropHandlerClass DragAndDropHandlerClass; -typedef struct _DragAndDropHandlerPrivate DragAndDropHandlerPrivate; - -#define TYPE_EXPORTER_UI (exporter_ui_get_type ()) -#define EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER_UI, ExporterUI)) -#define EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER_UI, ExporterUIClass)) -#define IS_EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER_UI)) -#define IS_EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER_UI)) -#define EXPORTER_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER_UI, ExporterUIClass)) - -typedef struct _ExporterUI ExporterUI; -typedef struct _ExporterUIClass ExporterUIClass; - -#define DRAG_AND_DROP_HANDLER_TYPE_TARGET_TYPE (drag_and_drop_handler_target_type_get_type ()) -#define _exporter_ui_unref0(var) ((var == NULL) ? NULL : (var = (exporter_ui_unref (var), NULL))) - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ()) - -#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ()) - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) -typedef struct _ExportFormatParameters ExportFormatParameters; - -#define TYPE_EXPORTER (exporter_get_type ()) -#define EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER, Exporter)) -#define EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER, ExporterClass)) -#define IS_EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER)) -#define IS_EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER)) -#define EXPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER, ExporterClass)) - -typedef struct _Exporter Exporter; -typedef struct _ExporterClass ExporterClass; -typedef struct _ParamSpecDragAndDropHandler ParamSpecDragAndDropHandler; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _InjectionGroup { - GTypeInstance parent_instance; - volatile int ref_count; - InjectionGroupPrivate * priv; -}; - -struct _InjectionGroupClass { - GTypeClass parent_class; - void (*finalize) (InjectionGroup *self); -}; - -struct _InjectionGroupPrivate { - gchar* path; - GeeArrayList* elements; - gint separator_id; -}; - -typedef enum { - INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENUITEM, - INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENU, - INJECTION_GROUP_ELEMENT_ITEM_TYPE_SEPARATOR -} InjectionGroupElementItemType; - -struct _InjectionGroupElement { - GTypeInstance parent_instance; - volatile int ref_count; - InjectionGroupElementPrivate * priv; - gchar* name; - gchar* action; - gchar* accellerator; - InjectionGroupElementItemType kind; -}; - -struct _InjectionGroupElementClass { - GTypeClass parent_class; - void (*finalize) (InjectionGroupElement *self); -}; - -struct _InjectionGroupParamSpecElement { - GParamSpec parent_instance; -}; - -struct _ParamSpecInjectionGroup { - GParamSpec parent_instance; -}; - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -struct _PagePrivate { - gchar* page_name; - ViewCollection* view; - GtkWindow* container; - gchar* toolbar_path; - GdkRectangle last_position; - GtkWidget* event_source; - gboolean dnd_enabled; - gulong last_configure_ms; - gboolean report_move_finished; - gboolean report_resize_finished; - GdkPoint last_down; - gboolean is_destroyed; - gboolean ctrl_pressed; - gboolean alt_pressed; - gboolean shift_pressed; - gboolean super_pressed; - GdkCursorType last_cursor; - gboolean cursor_hidden; - gint cursor_hide_msec; - guint last_timeout_id; - gint cursor_hide_time_cached; - gboolean are_actions_attached; - OneShotScheduler* update_actions_scheduler; - gboolean menubar_injected; -}; - -typedef void (*OneShotCallback) (void* user_data); -typedef enum { - CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, - CHECKERBOARD_PAGE_ACTIVATOR_MOUSE -} CheckerboardPageActivator; - -struct _CheckerboardPageKeyboardModifiers { - gboolean ctrl_pressed; - gboolean alt_pressed; - gboolean shift_pressed; - gboolean super_pressed; -}; - -struct _CheckerboardPage { - Page parent_instance; - CheckerboardPagePrivate * priv; - CheckerboardItem* anchor; - CheckerboardItem* cursor; -}; - -struct _CheckerboardPageClass { - PageClass parent_class; - GtkMenu* (*get_item_context_menu) (CheckerboardPage* self); - gchar* (*get_view_empty_message) (CheckerboardPage* self); - gchar* (*get_filter_no_match_message) (CheckerboardPage* self); - void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers); - SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self); - CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self); - gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask); - void (*set_display_titles) (CheckerboardPage* self, gboolean display); - void (*set_display_comments) (CheckerboardPage* self, gboolean display); -}; - -struct _CheckerboardPagePrivate { - CheckerboardLayout* layout; - gchar* item_context_menu_path; - gchar* page_context_menu_path; - GtkViewport* viewport; - CheckerboardItem* highlighted; - gboolean autoscroll_scheduled; - CheckerboardItem* activated_item; - GeeArrayList* previously_selected; - GtkMenu* item_context_menu; - GtkMenu* page_context_menu; -}; - -typedef enum { - ADJUSTMENT_RELATION_BELOW, - ADJUSTMENT_RELATION_IN_RANGE, - ADJUSTMENT_RELATION_ABOVE -} AdjustmentRelation; - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataView { - DataObject parent_instance; - DataViewPrivate * priv; -}; - -struct _DataViewClass { - DataObjectClass parent_class; - void (*notify_view_altered) (DataView* self); - void (*notify_geometry_altered) (DataView* self); - void (*notify_unsubscribed) (DataView* self, DataSource* source); - void (*state_changed) (DataView* self, gboolean selected); - void (*visibility_changed) (DataView* self, gboolean visible); - void (*view_altered) (DataView* self); - void (*geometry_altered) (DataView* self); - void (*unsubscribed) (DataView* self, DataSource* source); -}; - -struct _ThumbnailView { - DataView parent_instance; - ThumbnailViewPrivate * priv; -}; - -struct _ThumbnailViewClass { - DataViewClass parent_class; - void (*notify_thumbnail_altered) (ThumbnailView* self); - void (*thumbnail_altered) (ThumbnailView* self); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _CheckerboardItem { - ThumbnailView parent_instance; - CheckerboardItemPrivate * priv; - Dimensions requisition; - GdkRectangle allocation; -}; - -struct _CheckerboardItemClass { - ThumbnailViewClass parent_class; - void (*exposed) (CheckerboardItem* self); - void (*unexposed) (CheckerboardItem* self); - gboolean (*is_exposed) (CheckerboardItem* self); - void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha); - void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width); - void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin); - GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale); -}; - -typedef enum { - COMPASS_POINT_NORTH, - COMPASS_POINT_SOUTH, - COMPASS_POINT_EAST, - COMPASS_POINT_WEST -} CompassPoint; - -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -typedef gboolean (*ValueEqualFunc) (GValue* a, GValue* b, void* user_data); -typedef enum { - SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF, - SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT, - SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS -} SinglePhotoPageUpdateReason; - -struct _SinglePhotoPage { - Page parent_instance; - SinglePhotoPagePrivate * priv; - GtkDrawingArea* canvas; - GtkViewport* viewport; -}; - -struct _SinglePhotoPageClass { - PageClass parent_class; - gboolean (*is_zoom_supported) (SinglePhotoPage* self); - void (*cancel_zoom) (SinglePhotoPage* self); - void (*save_zoom_state) (SinglePhotoPage* self); - void (*restore_zoom_state) (SinglePhotoPage* self); - ZoomBuffer* (*get_zoom_buffer) (SinglePhotoPage* self); - void (*new_surface) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim); - void (*updated_pixbuf) (SinglePhotoPage* self, GdkPixbuf* pixbuf, SinglePhotoPageUpdateReason reason, Dimensions* old_dim); - void (*paint) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim); - void (*on_previous_photo) (SinglePhotoPage* self); - void (*on_next_photo) (SinglePhotoPage* self); -}; - -struct _ZoomState { - Dimensions content_dimensions; - Dimensions viewport_dimensions; - gdouble zoom_factor; - gdouble interpolation_factor; - gdouble min_factor; - gdouble max_factor; - GdkPoint viewport_center; -}; - -struct _SinglePhotoPagePrivate { - gboolean scale_up_to_viewport; - TransitionClock* transition_clock; - gint transition_duration_msec; - cairo_surface_t* pixmap; - cairo_t* pixmap_ctx; - cairo_t* text_ctx; - Dimensions pixmap_dim; - GdkPixbuf* unscaled; - Dimensions max_dim; - GdkPixbuf* scaled; - GdkPixbuf* old_scaled; - GdkRectangle scaled_pos; - ZoomState static_zoom_state; - gboolean zoom_high_quality; - ZoomState saved_zoom_state; - gboolean has_saved_zoom_state; - guint32 last_nav_key; -}; - -typedef enum { - DIRECTION_FORWARD, - DIRECTION_BACKWARD -} Direction; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -typedef void (*TransitionClockRepaintCallback) (void* user_data); -struct _DragAndDropHandler { - GTypeInstance parent_instance; - volatile int ref_count; - DragAndDropHandlerPrivate * priv; -}; - -struct _DragAndDropHandlerClass { - GTypeClass parent_class; - void (*finalize) (DragAndDropHandler *self); -}; - -struct _DragAndDropHandlerPrivate { - Page* page; - GtkWidget* event_source; - GFile* drag_destination; - ExporterUI* exporter; -}; - -typedef enum { - DRAG_AND_DROP_HANDLER_TARGET_TYPE_XDS, - DRAG_AND_DROP_HANDLER_TARGET_TYPE_MEDIA_LIST -} DragAndDropHandlerTargetType; - -typedef enum { - EXPORT_FORMAT_MODE_UNMODIFIED, - EXPORT_FORMAT_MODE_CURRENT, - EXPORT_FORMAT_MODE_SPECIFIED, - EXPORT_FORMAT_MODE_LAST -} ExportFormatMode; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -struct _ExportFormatParameters { - ExportFormatMode mode; - PhotoFileFormat specified_format; - JpegQuality quality; - gboolean export_metadata; -}; - -typedef void (*ExporterCompletionCallback) (Exporter* exporter, gboolean is_cancelled, void* user_data); -struct _ParamSpecDragAndDropHandler { - GParamSpec parent_instance; -}; - - -static gpointer injection_group_parent_class = NULL; -static gpointer injection_group_element_parent_class = NULL; -static gpointer page_parent_class = NULL; -static gpointer checkerboard_page_parent_class = NULL; -static gpointer single_photo_page_parent_class = NULL; -static gpointer drag_and_drop_handler_parent_class = NULL; -static GdkAtom* drag_and_drop_handler_XDS_ATOM; -static GdkAtom* drag_and_drop_handler_XDS_ATOM = NULL; -static GdkAtom* drag_and_drop_handler_TEXT_ATOM; -static GdkAtom* drag_and_drop_handler_TEXT_ATOM = NULL; -static guint8* drag_and_drop_handler_XDS_FAKE_TARGET; -static gint drag_and_drop_handler_XDS_FAKE_TARGET_length1; -static guint8* drag_and_drop_handler_XDS_FAKE_TARGET = NULL; -static gint drag_and_drop_handler_XDS_FAKE_TARGET_length1 = 0; -static gint _drag_and_drop_handler_XDS_FAKE_TARGET_size_ = 0; - -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -gpointer injection_group_element_ref (gpointer instance); -void injection_group_element_unref (gpointer instance); -GParamSpec* injection_group_param_spec_element (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void injection_group_value_set_element (GValue* value, - gpointer v_object); -void injection_group_value_take_element (GValue* value, - gpointer v_object); -gpointer injection_group_value_get_element (const GValue* value); -GType injection_group_element_get_type (void) G_GNUC_CONST; -#define INJECTION_GROUP_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_INJECTION_GROUP, InjectionGroupPrivate)) -InjectionGroup* injection_group_new (const gchar* path); -InjectionGroup* injection_group_construct (GType object_type, - const gchar* path); -gchar* injection_group_get_path (InjectionGroup* self); -GeeList* injection_group_get_elements (InjectionGroup* self); -void injection_group_add_menu_item (InjectionGroup* self, - const gchar* name, - const gchar* action, - const gchar* accellerator); -GType injection_group_element_item_type_get_type (void) G_GNUC_CONST; -InjectionGroupElement* injection_group_element_new (const gchar* name, - const gchar* action, - const gchar* accellerator, - InjectionGroupElementItemType kind); -InjectionGroupElement* injection_group_element_construct (GType object_type, - const gchar* name, - const gchar* action, - const gchar* accellerator, - InjectionGroupElementItemType kind); -void injection_group_add_menu (InjectionGroup* self, - const gchar* name, - const gchar* action); -void injection_group_add_separator (InjectionGroup* self); -static void injection_group_element_finalize (InjectionGroupElement * obj); -static void injection_group_finalize (InjectionGroup * obj); -GType page_get_type (void) G_GNUC_CONST; -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -gpointer one_shot_scheduler_ref (gpointer instance); -void one_shot_scheduler_unref (gpointer instance); -GParamSpec* param_spec_one_shot_scheduler (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_one_shot_scheduler (GValue* value, - gpointer v_object); -void value_take_one_shot_scheduler (GValue* value, - gpointer v_object); -gpointer value_get_one_shot_scheduler (const GValue* value); -GType one_shot_scheduler_get_type (void) G_GNUC_CONST; -#define PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PAGE, PagePrivate)) -#define PAGE_CONSIDER_CONFIGURE_HALTED_MSEC 400 -Page* page_construct (GType object_type, - const gchar* page_name); -ViewCollection* view_collection_new (const gchar* name); -ViewCollection* view_collection_construct (GType object_type, - const gchar* name); -gboolean page_on_context_keypress (Page* self); -static gboolean _page_on_context_keypress_gtk_widget_popup_menu (GtkWidget* _sender, - gpointer self); -static void page_attach_view_signals (Page* self); -static void _page_attach_view_signals_gtk_widget_realize (GtkWidget* _sender, - gpointer self); -static void page_real_destroy (GtkWidget* base); -static void page_detach_event_source (Page* self); -static void page_detach_view_signals (Page* self); -void data_collection_close (DataCollection* self); -void page_clear_container (Page* self); -void one_shot_scheduler_cancel (OneShotScheduler* self); -gchar* page_get_page_name (Page* self); -void page_set_page_name (Page* self, - const gchar* page_name); -static void page_real_set_page_name (Page* self, - const gchar* page_name); -gchar* page_to_string (Page* self); -ViewCollection* page_get_view (Page* self); -GtkWindow* page_get_container (Page* self); -void page_set_container (Page* self, - GtkWindow* container); -static void page_real_set_container (Page* self, - GtkWindow* container); -static void page_real_clear_container (Page* self); -void page_set_event_source (Page* self, - GtkWidget* event_source); -static gboolean page_on_button_pressed_internal (Page* self, - GdkEventButton* event); -static gboolean _page_on_button_pressed_internal_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self); -static gboolean page_on_button_released_internal (Page* self, - GdkEventButton* event); -static gboolean _page_on_button_released_internal_gtk_widget_button_release_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self); -static gboolean page_on_motion_internal (Page* self, - GdkEventMotion* event); -static gboolean _page_on_motion_internal_gtk_widget_motion_notify_event (GtkWidget* _sender, - GdkEventMotion* event, - gpointer self); -gboolean page_on_leave_notify_event (Page* self); -static gboolean _page_on_leave_notify_event_gtk_widget_leave_notify_event (GtkWidget* _sender, - GdkEventCrossing* event, - gpointer self); -static gboolean page_on_mousewheel_internal (Page* self, - GdkEventScroll* event); -static gboolean _page_on_mousewheel_internal_gtk_widget_scroll_event (GtkWidget* _sender, - GdkEventScroll* event, - gpointer self); -void page_on_event_source_realize (Page* self); -static void _page_on_event_source_realize_gtk_widget_realize (GtkWidget* _sender, - gpointer self); -void page_disable_drag_source (Page* self); -GtkWidget* page_get_event_source (Page* self); -GMenuModel* page_get_menubar (Page* self); -InjectionGroup** page_init_collect_injection_groups (Page* self, - int* result_length1); -GMenuModel* page_find_extension_point (Page* self, - GMenuModel* model, - const gchar* extension_point); -GtkToolbar* page_get_toolbar (Page* self); -static GtkToolbar* page_real_get_toolbar (Page* self); -GtkMenu* page_get_page_context_menu (Page* self); -static GtkMenu* page_real_get_page_context_menu (Page* self); -void page_switching_from (Page* self); -static void page_real_switching_from (Page* self); -void page_remove_actions (Page* self, - GActionMap* map); -void page_switched_to (Page* self); -static void page_real_switched_to (Page* self); -static void page_add_ui (Page* self); -void page_add_actions (Page* self, - GActionMap* map); -gint view_collection_get_selected_count (ViewCollection* self); -gint data_collection_get_count (DataCollection* self); -void page_init_actions (Page* self, - gint selected_count, - gint count); -void page_update_actions (Page* self, - gint selected_count, - gint count); -static void page_update_modifiers (Page* self); -void page_ready (Page* self); -static void page_real_ready (Page* self); -gboolean page_is_in_view (Page* self); -void page_switching_to_fullscreen (Page* self, - FullscreenWindow* fsw); -static void page_real_switching_to_fullscreen (Page* self, - FullscreenWindow* fsw); -void page_returning_from_fullscreen (Page* self, - FullscreenWindow* fsw); -static void page_real_returning_from_fullscreen (Page* self, - FullscreenWindow* fsw); -GAction* page_get_action (Page* self, - const gchar* name); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -void page_set_action_sensitive (Page* self, - const gchar* name, - gboolean sensitive); -void page_set_action_details (Page* self, - const gchar* name, - const gchar* label, - const gchar* tooltip, - gboolean sensitive); -void page_update_menu_item_label (Page* self, - const gchar* id, - const gchar* new_label); -void page_activate_action (Page* self, - const gchar* name); -GAction* page_get_common_action (Page* self, - const gchar* name, - gboolean log_warning); -void page_set_common_action_sensitive (Page* self, - const gchar* name, - gboolean sensitive); -void page_set_common_action_label (Page* self, - const gchar* name, - const gchar* label); -void page_set_common_action_important (Page* self, - const gchar* name, - gboolean important); -void page_activate_common_action (Page* self, - const gchar* name); -gboolean page_get_ctrl_pressed (Page* self); -gboolean page_get_alt_pressed (Page* self); -gboolean page_get_shift_pressed (Page* self); -gboolean page_get_super_pressed (Page* self); -void page_set_action_active (Page* self, - const gchar* name, - gboolean active); -static GVariant* _variant_new20 (gboolean value); -static gboolean page_get_modifiers (Page* self, - gboolean* ctrl, - gboolean* alt, - gboolean* shift, - gboolean* super); -gboolean page_on_ctrl_released (Page* self, - GdkEventKey* event); -gboolean page_on_ctrl_pressed (Page* self, - GdkEventKey* event); -gboolean page_on_alt_released (Page* self, - GdkEventKey* event); -gboolean page_on_alt_pressed (Page* self, - GdkEventKey* event); -gboolean page_on_shift_released (Page* self, - GdkEventKey* event); -gboolean page_on_shift_pressed (Page* self, - GdkEventKey* event); -gboolean page_on_super_released (Page* self, - GdkEventKey* event); -gboolean page_on_super_pressed (Page* self, - GdkEventKey* event); -PageWindow* page_get_page_window (Page* self); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* page_get_command_manager (Page* self); -CommandManager* app_window_get_command_manager (void); -static void page_real_add_actions (Page* self, - GActionMap* map); -static void page_real_remove_actions (Page* self, - GActionMap* map); -void page_on_action_toggle (Page* self, - GAction* action, - GVariant* value); -static gboolean _variant_get21 (GVariant* value); -static GVariant* _variant_new22 (gboolean value); -void page_on_action_radio (Page* self, - GAction* action, - GVariant* value); -void page_init_collect_ui_filenames (Page* self, - GeeList* ui_filenames); -static void page_init_load_ui (Page* self, - const gchar* ui_filename); -void page_init_toolbar (Page* self, - const gchar* path); -static void page_on_update_actions (Page* self); -GType data_object_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -static void _page_on_update_actions_view_collection_items_state_changed (ViewCollection* _sender, - GeeIterable* changed, - gpointer self); -static void _page_on_update_actions_view_collection_selection_group_altered (ViewCollection* _sender, - gpointer self); -static void _page_on_update_actions_view_collection_items_visibility_changed (ViewCollection* _sender, - GeeCollection* changed, - gpointer self); -static void _page_on_update_actions_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self); -static void page_on_update_actions_on_idle (Page* self); -static void _page_on_update_actions_on_idle_one_shot_callback (gpointer self); -OneShotScheduler* one_shot_scheduler_new (const gchar* name, - OneShotCallback callback, - void* callback_target); -OneShotScheduler* one_shot_scheduler_construct (GType object_type, - const gchar* name, - OneShotCallback callback, - void* callback_target); -void one_shot_scheduler_at_priority_idle (OneShotScheduler* self, - gint priority); -gchar* resources_get_ui (const gchar* filename); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -gpointer application_ref (gpointer instance); -void application_unref (gpointer instance); -GParamSpec* param_spec_application (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_application (GValue* value, - gpointer v_object); -void value_take_application (GValue* value, - gpointer v_object); -gpointer value_get_application (const GValue* value); -GType application_get_type (void) G_GNUC_CONST; -Application* application_get_instance (void); -void application_panic (Application* self); -static void page_real_init_collect_ui_filenames (Page* self, - GeeList* ui_filenames); -static InjectionGroup** page_real_init_collect_injection_groups (Page* self, - int* result_length1); -static void page_real_init_actions (Page* self, - gint selected_count, - gint count); -static void page_real_update_actions (Page* self, - gint selected_count, - gint count); -void page_enable_drag_source (Page* self, - GdkDragAction actions, - GtkTargetEntry* source_target_entries, - int source_target_entries_length1); -static void page_on_drag_begin (Page* self, - GdkDragContext* context); -static void _page_on_drag_begin_gtk_widget_drag_begin (GtkWidget* _sender, - GdkDragContext* context, - gpointer self); -static void page_on_drag_data_get (Page* self, - GdkDragContext* context, - GtkSelectionData* selection_data, - guint info, - guint time); -static void _page_on_drag_data_get_gtk_widget_drag_data_get (GtkWidget* _sender, - GdkDragContext* context, - GtkSelectionData* selection_data, - guint info, - guint time_, - gpointer self); -static void page_on_drag_data_delete (Page* self, - GdkDragContext* context); -static void _page_on_drag_data_delete_gtk_widget_drag_data_delete (GtkWidget* _sender, - GdkDragContext* context, - gpointer self); -static void page_on_drag_end (Page* self, - GdkDragContext* context); -static void _page_on_drag_end_gtk_widget_drag_end (GtkWidget* _sender, - GdkDragContext* context, - gpointer self); -static gboolean page_on_drag_failed (Page* self, - GdkDragContext* context, - GtkDragResult drag_result); -static gboolean _page_on_drag_failed_gtk_widget_drag_failed (GtkWidget* _sender, - GdkDragContext* context, - GtkDragResult _result_, - gpointer self); -gboolean page_is_dnd_enabled (Page* self); -gboolean page_source_drag_failed (Page* self, - GdkDragContext* context, - GtkDragResult drag_result); -static gboolean page_real_source_drag_failed (Page* self, - GdkDragContext* context, - GtkDragResult drag_result); -gboolean page_get_event_source_pointer (Page* self, - gint* x, - gint* y, - GdkModifierType* mask); -gboolean page_on_left_click (Page* self, - GdkEventButton* event); -static gboolean page_real_on_left_click (Page* self, - GdkEventButton* event); -gboolean page_on_middle_click (Page* self, - GdkEventButton* event); -static gboolean page_real_on_middle_click (Page* self, - GdkEventButton* event); -gboolean page_on_right_click (Page* self, - GdkEventButton* event); -static gboolean page_real_on_right_click (Page* self, - GdkEventButton* event); -gboolean page_on_left_released (Page* self, - GdkEventButton* event); -static gboolean page_real_on_left_released (Page* self, - GdkEventButton* event); -gboolean page_on_middle_released (Page* self, - GdkEventButton* event); -static gboolean page_real_on_middle_released (Page* self, - GdkEventButton* event); -gboolean page_on_right_released (Page* self, - GdkEventButton* event); -static gboolean page_real_on_right_released (Page* self, - GdkEventButton* event); -static gboolean page_real_on_ctrl_pressed (Page* self, - GdkEventKey* event); -static gboolean page_real_on_ctrl_released (Page* self, - GdkEventKey* event); -static gboolean page_real_on_alt_pressed (Page* self, - GdkEventKey* event); -static gboolean page_real_on_alt_released (Page* self, - GdkEventKey* event); -static gboolean page_real_on_shift_pressed (Page* self, - GdkEventKey* event); -static gboolean page_real_on_shift_released (Page* self, - GdkEventKey* event); -static gboolean page_real_on_super_pressed (Page* self, - GdkEventKey* event); -static gboolean page_real_on_super_released (Page* self, - GdkEventKey* event); -gboolean page_on_app_key_pressed (Page* self, - GdkEventKey* event); -static gboolean page_real_on_app_key_pressed (Page* self, - GdkEventKey* event); -gboolean page_on_app_key_released (Page* self, - GdkEventKey* event); -static gboolean page_real_on_app_key_released (Page* self, - GdkEventKey* event); -gboolean page_notify_app_key_pressed (Page* self, - GdkEventKey* event); -gboolean page_notify_app_key_released (Page* self, - GdkEventKey* event); -gboolean page_notify_app_focus_in (Page* self, - GdkEventFocus* event); -gboolean page_notify_app_focus_out (Page* self, - GdkEventFocus* event); -void page_on_move (Page* self, - GdkRectangle* rect); -static void page_real_on_move (Page* self, - GdkRectangle* rect); -void page_on_move_start (Page* self, - GdkRectangle* rect); -static void page_real_on_move_start (Page* self, - GdkRectangle* rect); -void page_on_move_finished (Page* self, - GdkRectangle* rect); -static void page_real_on_move_finished (Page* self, - GdkRectangle* rect); -void page_on_resize (Page* self, - GdkRectangle* rect); -static void page_real_on_resize (Page* self, - GdkRectangle* rect); -void page_on_resize_start (Page* self, - GdkRectangle* rect); -static void page_real_on_resize_start (Page* self, - GdkRectangle* rect); -void page_on_resize_finished (Page* self, - GdkRectangle* rect); -static void page_real_on_resize_finished (Page* self, - GdkRectangle* rect); -gboolean page_on_configure (Page* self, - GdkEventConfigure* event, - GdkRectangle* rect); -static gboolean page_real_on_configure (Page* self, - GdkEventConfigure* event, - GdkRectangle* rect); -gboolean page_notify_configure_event (Page* self, - GdkEventConfigure* event); -static gboolean page_check_configure_halted (Page* self); -static gboolean _page_check_configure_halted_gsource_func (gpointer self); -gulong now_ms (void); -gboolean page_on_motion (Page* self, - GdkEventMotion* event, - gint x, - gint y, - GdkModifierType mask); -static gboolean page_real_on_motion (Page* self, - GdkEventMotion* event, - gint x, - gint y, - GdkModifierType mask); -static void page_check_cursor_hiding (Page* self); -static gboolean page_real_on_leave_notify_event (Page* self); -gboolean page_on_mousewheel_up (Page* self, - GdkEventScroll* event); -gboolean page_on_mousewheel_down (Page* self, - GdkEventScroll* event); -gboolean page_on_mousewheel_left (Page* self, - GdkEventScroll* event); -gboolean page_on_mousewheel_right (Page* self, - GdkEventScroll* event); -static gboolean page_real_on_mousewheel_up (Page* self, - GdkEventScroll* event); -static gboolean page_real_on_mousewheel_down (Page* self, - GdkEventScroll* event); -static gboolean page_real_on_mousewheel_left (Page* self, - GdkEventScroll* event); -static gboolean page_real_on_mousewheel_right (Page* self, - GdkEventScroll* event); -static gboolean page_real_on_context_keypress (Page* self); -gboolean page_on_context_buttonpress (Page* self, - GdkEventButton* event); -static gboolean page_real_on_context_buttonpress (Page* self, - GdkEventButton* event); -gboolean page_on_context_invoked (Page* self); -static gboolean page_real_on_context_invoked (Page* self); -gboolean page_popup_context_menu (Page* self, - GtkMenu* context_menu, - GdkEventButton* event); -void page_set_cursor_hide_time (Page* self, - gint hide_time); -void page_start_cursor_hiding (Page* self); -void page_stop_cursor_hiding (Page* self); -void page_suspend_cursor_hiding (Page* self); -void page_restore_cursor_hiding (Page* self); -void page_set_page_cursor (Page* self, - GdkCursorType cursor_type); -static void page_real_set_page_cursor (Page* self, - GdkCursorType cursor_type); -static gboolean page_on_hide_cursor (Page* self); -static gboolean _page_on_hide_cursor_gsource_func (gpointer self); -void app_window_update_menu_item_label (AppWindow* self, - const gchar* id, - const gchar* new_label); -static void page_finalize (GObject * obj); -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType checkerboard_page_activator_get_type (void) G_GNUC_CONST; -GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST; -CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self); -void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self); -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -GType search_view_filter_get_type (void) G_GNUC_CONST; -gpointer core_tracker_ref (gpointer instance); -void core_tracker_unref (gpointer instance); -GParamSpec* core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void core_value_set_tracker (GValue* value, - gpointer v_object); -void core_value_take_tracker (GValue* value, - gpointer v_object); -gpointer core_value_get_tracker (const GValue* value); -GType core_tracker_get_type (void) G_GNUC_CONST; -GType core_view_tracker_get_type (void) G_GNUC_CONST; -GType checkerboard_layout_get_type (void) G_GNUC_CONST; -#define CHECKERBOARD_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CHECKERBOARD_PAGE, CheckerboardPagePrivate)) -#define CHECKERBOARD_PAGE_AUTOSCROLL_PIXELS 50 -#define CHECKERBOARD_PAGE_AUTOSCROLL_TICKS_MSEC 50 -CheckerboardPage* checkerboard_page_construct (GType object_type, - const gchar* page_name); -CheckerboardLayout* checkerboard_layout_new (ViewCollection* view); -CheckerboardLayout* checkerboard_layout_construct (GType object_type, - ViewCollection* view); -void checkerboard_layout_set_name (CheckerboardLayout* self, - const gchar* name); -void checkerboard_layout_set_adjustments (CheckerboardLayout* self, - GtkAdjustment* hadjustment, - GtkAdjustment* vadjustment); -static void checkerboard_page_on_items_hidden (CheckerboardPage* self, - GeeIterable* hidden); -static void _checkerboard_page_on_items_hidden_view_collection_items_hidden (ViewCollection* _sender, - GeeCollection* hidden, - gpointer self); -static void checkerboard_page_on_contents_altered (CheckerboardPage* self, - GeeIterable* added, - GeeIterable* removed); -static void _checkerboard_page_on_contents_altered_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self); -static void checkerboard_page_on_items_state_changed (CheckerboardPage* self, - GeeIterable* changed); -static void _checkerboard_page_on_items_state_changed_view_collection_items_state_changed (ViewCollection* _sender, - GeeIterable* changed, - gpointer self); -static void checkerboard_page_on_items_visibility_changed (CheckerboardPage* self, - GeeCollection* changed); -static void _checkerboard_page_on_items_visibility_changed_view_collection_items_visibility_changed (ViewCollection* _sender, - GeeCollection* changed, - gpointer self); -void checkerboard_page_init_item_context_menu (CheckerboardPage* self, - const gchar* path); -void checkerboard_page_init_page_context_menu (CheckerboardPage* self, - const gchar* path); -GtkMenu* checkerboard_page_get_context_menu (CheckerboardPage* self); -GtkMenu* checkerboard_page_get_item_context_menu (CheckerboardPage* self); -static GtkMenu* checkerboard_page_real_get_item_context_menu (CheckerboardPage* self); -static GtkMenu* checkerboard_page_real_get_page_context_menu (Page* base); -static gboolean checkerboard_page_real_on_context_keypress (Page* base); -gchar* checkerboard_page_get_view_empty_message (CheckerboardPage* self); -static gchar* checkerboard_page_real_get_view_empty_message (CheckerboardPage* self); -gchar* checkerboard_page_get_filter_no_match_message (CheckerboardPage* self); -static gchar* checkerboard_page_real_get_filter_no_match_message (CheckerboardPage* self); -void checkerboard_page_on_item_activated (CheckerboardPage* self, - CheckerboardItem* item, - CheckerboardPageActivator activator, - CheckerboardPageKeyboardModifiers* modifiers); -static void checkerboard_page_real_on_item_activated (CheckerboardPage* self, - CheckerboardItem* item, - CheckerboardPageActivator activator, - CheckerboardPageKeyboardModifiers* modifiers); -CheckerboardLayout* checkerboard_page_get_checkerboard_layout (CheckerboardPage* self); -SearchViewFilter* checkerboard_page_get_search_view_filter (CheckerboardPage* self); -static SearchViewFilter* checkerboard_page_real_get_search_view_filter (CheckerboardPage* self); -CoreViewTracker* checkerboard_page_get_view_tracker (CheckerboardPage* self); -static CoreViewTracker* checkerboard_page_real_get_view_tracker (CheckerboardPage* self); -static void checkerboard_page_real_switching_from (Page* base); -void checkerboard_layout_set_in_view (CheckerboardLayout* self, - gboolean in_view); -static void checkerboard_page_on_view_filter_refresh (CheckerboardPage* self); -static void _checkerboard_page_on_view_filter_refresh_view_filter_refresh (ViewFilter* _sender, - gpointer self); -void view_collection_unselect_all (ViewCollection* self); -static void checkerboard_page_real_switched_to (Page* base); -DataView* view_collection_get_selected_at (ViewCollection* self, - gint index); -GType adjustment_relation_get_type (void) G_GNUC_CONST; -AdjustmentRelation get_adjustment_relation (GtkAdjustment* adjustment, - gint value); -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -#define CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING 24 -static void checkerboard_page_update_view_filter_message (CheckerboardPage* self); -gboolean view_collection_are_items_filtered_out (ViewCollection* self); -void checkerboard_page_set_page_message (CheckerboardPage* self, - const gchar* message); -void checkerboard_page_unset_page_message (CheckerboardPage* self); -void checkerboard_layout_set_message (CheckerboardLayout* self, - const gchar* text); -void checkerboard_layout_unset_message (CheckerboardLayout* self); -static void checkerboard_page_real_set_page_name (Page* base, - const gchar* name); -CheckerboardItem* checkerboard_page_get_item_at_pixel (CheckerboardPage* self, - gdouble x, - gdouble y); -CheckerboardItem* checkerboard_layout_get_item_at_pixel (CheckerboardLayout* self, - gdouble xd, - gdouble yd); -static gboolean checkerboard_page_real_key_press_event (GtkWidget* base, - GdkEventKey* event); -GType compass_point_get_type (void) G_GNUC_CONST; -void checkerboard_page_move_cursor (CheckerboardPage* self, - CompassPoint point); -void checkerboard_page_select_anchor_to_cursor (CheckerboardPage* self, - guint state); -DataView* view_collection_get_first (ViewCollection* self); -void checkerboard_page_cursor_to_item (CheckerboardPage* self, - CheckerboardItem* item); -DataView* view_collection_get_last (ViewCollection* self); -void checkerboard_page_keyboard_modifiers_init (CheckerboardPageKeyboardModifiers *self, - Page* page); -GType marker_get_type (void) G_GNUC_CONST; -Marker* data_collection_mark (DataCollection* self, - DataObject* object); -CheckerboardItem* checkerboard_layout_get_cursor (CheckerboardLayout* self); -void view_collection_toggle_marked (ViewCollection* self, - Marker* marker); -static gboolean checkerboard_page_real_on_left_click (Page* base, - GdkEventButton* event); -gboolean checkerboard_layout_handle_left_click (CheckerboardLayout* self, - CheckerboardItem* item, - gdouble xd, - gdouble yd, - GdkModifierType mask); -gboolean data_view_is_selected (DataView* self); -void checkerboard_page_select_between_items (CheckerboardPage* self, - CheckerboardItem* item_start, - CheckerboardItem* item_end); -Marker* data_collection_start_marking (DataCollection* self); -void marker_mark_many (Marker* self, - GeeCollection* list); -GeeList* view_collection_get_selected (ViewCollection* self); -void view_collection_unselect_and_select_marked (ViewCollection* self, - Marker* unselect, - Marker* select); -void checkerboard_layout_set_cursor (CheckerboardLayout* self, - CheckerboardItem* item); -void checkerboard_layout_set_drag_select_origin (CheckerboardLayout* self, - gint x, - gint y); -static gboolean checkerboard_page_real_on_left_released (Page* base, - GdkEventButton* event); -gboolean checkerboard_layout_is_drag_select_active (CheckerboardLayout* self); -void checkerboard_layout_clear_drag_select (CheckerboardLayout* self); -void view_collection_unselect_all_but (ViewCollection* self, - DataView* exception); -static gboolean checkerboard_page_real_on_right_click (Page* base, - GdkEventButton* event); -gboolean checkerboard_page_on_mouse_over (CheckerboardPage* self, - CheckerboardItem* item, - gint x, - gint y, - GdkModifierType mask); -static gboolean checkerboard_page_real_on_mouse_over (CheckerboardPage* self, - CheckerboardItem* item, - gint x, - gint y, - GdkModifierType mask); -gboolean checkerboard_layout_handle_mouse_motion (CheckerboardLayout* self, - CheckerboardItem* item, - gint x, - gint y, - GdkModifierType mask); -void checkerboard_item_unbrighten (CheckerboardItem* self); -void checkerboard_item_brighten (CheckerboardItem* self); -static gboolean checkerboard_page_real_on_motion (Page* base, - GdkEventMotion* event, - gint x, - gint y, - GdkModifierType mask); -void checkerboard_layout_set_drag_select_endpoint (CheckerboardLayout* self, - gint x, - gint y); -static void checkerboard_page_updated_selection_band (CheckerboardPage* self); -static gboolean checkerboard_page_selection_autoscroll (CheckerboardPage* self); -static gboolean _checkerboard_page_selection_autoscroll_gsource_func (gpointer self); -GeeList* checkerboard_layout_items_in_selection_band (CheckerboardLayout* self); -void marker_unmark_many (Marker* self, - GeeCollection* list); -gboolean marker_toggle (Marker* self, - DataObject* object); -void marker_unmark (Marker* self, - DataObject* object); -void marker_mark (Marker* self, - DataObject* object); -void view_collection_select_marked (ViewCollection* self, - Marker* marker); -void view_collection_unselect_marked (ViewCollection* self, - Marker* marker); -gboolean data_collection_contains (DataCollection* self, - DataObject* object); -CheckerboardItem* checkerboard_layout_get_item_at_coordinate (CheckerboardLayout* self, - gint col, - gint row); -CheckerboardItem* checkerboard_layout_get_item_relative_to (CheckerboardLayout* self, - CheckerboardItem* item, - CompassPoint point); -void checkerboard_page_set_cursor (CheckerboardPage* self, - CheckerboardItem* item); -GeeCollection* data_collection_get_all (DataCollection* self); -void checkerboard_page_set_display_titles (CheckerboardPage* self, - gboolean display); -static void checkerboard_page_real_set_display_titles (CheckerboardPage* self, - gboolean display); -void data_collection_freeze_notifications (DataCollection* self); -void data_collection_set_property (DataCollection* self, - const gchar* name, - GValue* val, - ValueEqualFunc value_equals, - void* value_equals_target); -#define CHECKERBOARD_ITEM_PROP_SHOW_TITLES "show-titles" -void data_collection_thaw_notifications (DataCollection* self); -void checkerboard_page_set_display_comments (CheckerboardPage* self, - gboolean display); -static void checkerboard_page_real_set_display_comments (CheckerboardPage* self, - gboolean display); -#define CHECKERBOARD_ITEM_PROP_SHOW_COMMENTS "show-comments" -static void checkerboard_page_finalize (GObject * obj); -GType single_photo_page_get_type (void) G_GNUC_CONST; -GType zoom_buffer_get_type (void) G_GNUC_CONST; -GType single_photo_page_update_reason_get_type (void) G_GNUC_CONST; -gpointer transition_clock_ref (gpointer instance); -void transition_clock_unref (gpointer instance); -GParamSpec* param_spec_transition_clock (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_transition_clock (GValue* value, - gpointer v_object); -void value_take_transition_clock (GValue* value, - gpointer v_object); -gpointer value_get_transition_clock (const GValue* value); -GType transition_clock_get_type (void) G_GNUC_CONST; -GType zoom_state_get_type (void) G_GNUC_CONST; -ZoomState* zoom_state_dup (const ZoomState* self); -void zoom_state_free (ZoomState* self); -#define SINGLE_PHOTO_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPagePrivate)) -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -static void single_photo_page_on_colors_changed (SinglePhotoPage* self); -static void _single_photo_page_on_colors_changed_config_facade_colors_changed (ConfigFacade* _sender, - gpointer self); -void dimensions_init (Dimensions *self, - gint width, - gint height); -#define SINGLE_PHOTO_PAGE_FAST_INTERP GDK_INTERP_NEAREST -#define SINGLE_PHOTO_PAGE_QUALITY_INTERP GDK_INTERP_BILINEAR -#define SINGLE_PHOTO_PAGE_KEY_REPEAT_INTERVAL_MSEC 200 -SinglePhotoPage* single_photo_page_construct (GType object_type, - const gchar* page_name, - gboolean scale_up_to_viewport); -gpointer transition_effects_manager_ref (gpointer instance); -void transition_effects_manager_unref (gpointer instance); -GParamSpec* param_spec_transition_effects_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_transition_effects_manager (GValue* value, - gpointer v_object); -void value_take_transition_effects_manager (GValue* value, - gpointer v_object); -gpointer value_get_transition_effects_manager (const GValue* value); -GType transition_effects_manager_get_type (void) G_GNUC_CONST; -TransitionEffectsManager* transition_effects_manager_get_instance (void); -TransitionClock* transition_effects_manager_create_null_transition_clock (TransitionEffectsManager* self); -static void single_photo_page_on_viewport_resize (SinglePhotoPage* self); -static void _single_photo_page_on_viewport_resize_gtk_widget_size_allocate (GtkWidget* _sender, - GtkAllocation* allocation, - gpointer self); -static gboolean single_photo_page_on_canvas_exposed (SinglePhotoPage* self, - cairo_t* exposed_ctx); -static gboolean _single_photo_page_on_canvas_exposed_gtk_widget_draw (GtkWidget* _sender, - cairo_t* cr, - gpointer self); -gboolean single_photo_page_is_transition_in_progress (SinglePhotoPage* self); -gboolean transition_clock_is_in_progress (TransitionClock* self); -void single_photo_page_cancel_transition (SinglePhotoPage* self); -void transition_clock_cancel (TransitionClock* self); -void single_photo_page_set_transition (SinglePhotoPage* self, - const gchar* effect_id, - gint duration_msec); -TransitionClock* transition_effects_manager_create_transition_clock (TransitionEffectsManager* self, - const gchar* effect_id); -static void single_photo_page_render_zoomed_to_pixmap (SinglePhotoPage* self, - ZoomState* zoom_state); -gboolean single_photo_page_is_zoom_supported (SinglePhotoPage* self); -void zoom_state_get_viewing_rectangle_wrt_content (ZoomState *self, - GdkRectangle* result); -ZoomBuffer* single_photo_page_get_zoom_buffer (SinglePhotoPage* self); -GdkPixbuf* zoom_buffer_get_zoomed_image (ZoomBuffer* self, - ZoomState* zoom_state); -GdkPixbuf* zoom_buffer_get_zoom_preview_image (ZoomBuffer* self, - ZoomState* zoom_state); -void zoom_state_get_viewing_rectangle_projection (ZoomState *self, - GdkPixbuf* for_pixbuf, - GdkRectangle* result); -void paint_pixmap_with_background (cairo_t* ctx, - GdkPixbuf* pixbuf, - gint x, - gint y); -void single_photo_page_on_interactive_zoom (SinglePhotoPage* self, - ZoomState* interactive_zoom_state); -void set_source_color_from_string (cairo_t* ctx, - const gchar* spec); -void single_photo_page_on_interactive_pan (SinglePhotoPage* self, - ZoomState* interactive_zoom_state); -static gboolean single_photo_page_real_is_zoom_supported (SinglePhotoPage* self); -void single_photo_page_cancel_zoom (SinglePhotoPage* self); -static void single_photo_page_real_cancel_zoom (SinglePhotoPage* self); -void single_photo_page_save_zoom_state (SinglePhotoPage* self); -static void single_photo_page_real_save_zoom_state (SinglePhotoPage* self); -void single_photo_page_restore_zoom_state (SinglePhotoPage* self); -static void single_photo_page_real_restore_zoom_state (SinglePhotoPage* self); -GType direction_get_type (void) G_GNUC_CONST; -void single_photo_page_repaint (SinglePhotoPage* self, - Direction* direction); -static ZoomBuffer* single_photo_page_real_get_zoom_buffer (SinglePhotoPage* self); -void single_photo_page_get_saved_zoom_state (SinglePhotoPage* self, - ZoomState* result); -void single_photo_page_set_zoom_state (SinglePhotoPage* self, - ZoomState* zoom_state); -void single_photo_page_get_zoom_state (SinglePhotoPage* self, - ZoomState* result); -static void single_photo_page_real_switched_to (Page* base); -static void single_photo_page_real_set_container (Page* base, - GtkWindow* container); -void single_photo_page_set_pixbuf (SinglePhotoPage* self, - GdkPixbuf* unscaled, - Dimensions* max_dim, - Direction* direction); -gdouble zoom_state_get_interpolation_factor (ZoomState *self); -void zoom_state_get_viewport_center (ZoomState *self, - GdkPoint* result); -void zoom_state_init (ZoomState *self, - Dimensions* content_dimensions, - Dimensions* viewport_dimensions, - gdouble slider_val, - GdkPoint* viewport_center); -void single_photo_page_blank_display (SinglePhotoPage* self); -void single_photo_page_invalidate_all (SinglePhotoPage* self); -cairo_surface_t* single_photo_page_get_surface (SinglePhotoPage* self); -void single_photo_page_get_surface_dim (SinglePhotoPage* self, - Dimensions* result); -cairo_t* single_photo_page_get_cairo_context (SinglePhotoPage* self); -void single_photo_page_paint_text (SinglePhotoPage* self, - PangoLayout* pango_layout, - gint x, - gint y); -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -void single_photo_page_get_canvas_scaling (SinglePhotoPage* self, - Scaling* result); -void scaling_for_screen (GtkWindow* window, - gboolean scale_up, - Scaling* result); -void scaling_for_widget (GtkWidget* widget, - gboolean scale_up, - Scaling* result); -GdkPixbuf* single_photo_page_get_unscaled_pixbuf (SinglePhotoPage* self); -GdkPixbuf* single_photo_page_get_scaled_pixbuf (SinglePhotoPage* self); -void single_photo_page_get_scaled_pixbuf_position (SinglePhotoPage* self, - GdkRectangle* result); -gboolean single_photo_page_is_inside_pixbuf (SinglePhotoPage* self, - gint x, - gint y); -gboolean coord_in_rectangle (gint x, - gint y, - GdkRectangle* rect); -void single_photo_page_invalidate (SinglePhotoPage* self, - GdkRectangle* rect); -static void single_photo_page_internal_repaint (SinglePhotoPage* self, - gboolean fast, - Direction* direction); -static void single_photo_page_real_on_resize_finished (Page* base, - GdkRectangle* rect); -void single_photo_page_new_surface (SinglePhotoPage* self, - cairo_t* ctx, - Dimensions* ctx_dim); -static void single_photo_page_real_new_surface (SinglePhotoPage* self, - cairo_t* ctx, - Dimensions* ctx_dim); -void single_photo_page_updated_pixbuf (SinglePhotoPage* self, - GdkPixbuf* pixbuf, - SinglePhotoPageUpdateReason reason, - Dimensions* old_dim); -static void single_photo_page_real_updated_pixbuf (SinglePhotoPage* self, - GdkPixbuf* pixbuf, - SinglePhotoPageUpdateReason reason, - Dimensions* old_dim); -void single_photo_page_paint (SinglePhotoPage* self, - cairo_t* ctx, - Dimensions* ctx_dim); -static void single_photo_page_real_paint (SinglePhotoPage* self, - cairo_t* ctx, - Dimensions* ctx_dim); -gboolean zoom_state_is_default (ZoomState *self); -gboolean transition_clock_paint (TransitionClock* self, - cairo_t* ctx, - gint width, - gint height); -static void single_photo_page_repaint_pixmap (SinglePhotoPage* self); -void dimensions_for_rectangle (GdkRectangle* rect, - Dimensions* result); -static void single_photo_page_init_pixmap (SinglePhotoPage* self, - gint width, - gint height); -void dimensions_for_pixbuf (GdkPixbuf* pixbuf, - Dimensions* result); -gboolean dimensions_has_area (Dimensions *self); -void dimensions_get_scaled_proportional (Dimensions *self, - Dimensions* viewport, - Dimensions* result); -GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf, - Dimensions* resized, - GdkInterpType interp); -void parse_color (const gchar* spec, - GdkRGBA* result); -void transition_clock_start (TransitionClock* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsDirection direction, - gint duration_msec, - TransitionClockRepaintCallback repaint, - void* repaint_target); -SpitTransitionsDirection direction_to_transition_direction (Direction self); -static void _single_photo_page_repaint_pixmap_transition_clock_repaint_callback (gpointer self); -static gboolean single_photo_page_real_on_context_keypress (Page* base); -void single_photo_page_on_previous_photo (SinglePhotoPage* self); -static void single_photo_page_real_on_previous_photo (SinglePhotoPage* self); -void single_photo_page_on_next_photo (SinglePhotoPage* self); -static void single_photo_page_real_on_next_photo (SinglePhotoPage* self); -static gboolean single_photo_page_real_key_press_event (GtkWidget* base, - GdkEventKey* event); -void invalidate_transparent_background (void); -static void single_photo_page_finalize (GObject * obj); -gpointer drag_and_drop_handler_ref (gpointer instance); -void drag_and_drop_handler_unref (gpointer instance); -GParamSpec* param_spec_drag_and_drop_handler (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_drag_and_drop_handler (GValue* value, - gpointer v_object); -void value_take_drag_and_drop_handler (GValue* value, - gpointer v_object); -gpointer value_get_drag_and_drop_handler (const GValue* value); -GType drag_and_drop_handler_get_type (void) G_GNUC_CONST; -gpointer exporter_ui_ref (gpointer instance); -void exporter_ui_unref (gpointer instance); -GParamSpec* param_spec_exporter_ui (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_exporter_ui (GValue* value, - gpointer v_object); -void value_take_exporter_ui (GValue* value, - gpointer v_object); -gpointer value_get_exporter_ui (const GValue* value); -GType exporter_ui_get_type (void) G_GNUC_CONST; -#define DRAG_AND_DROP_HANDLER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandlerPrivate)) -static void drag_and_drop_handler_on_drag_begin (DragAndDropHandler* self, - GdkDragContext* context); -static void _drag_and_drop_handler_on_drag_begin_gtk_widget_drag_begin (GtkWidget* _sender, - GdkDragContext* context, - gpointer self); -static void drag_and_drop_handler_on_drag_data_get (DragAndDropHandler* self, - GdkDragContext* context, - GtkSelectionData* selection_data, - guint target_type, - guint time); -static void _drag_and_drop_handler_on_drag_data_get_gtk_widget_drag_data_get (GtkWidget* _sender, - GdkDragContext* context, - GtkSelectionData* selection_data, - guint info, - guint time_, - gpointer self); -static void drag_and_drop_handler_on_drag_end (DragAndDropHandler* self); -static void _drag_and_drop_handler_on_drag_end_gtk_widget_drag_end (GtkWidget* _sender, - GdkDragContext* context, - gpointer self); -static gboolean drag_and_drop_handler_on_drag_failed (DragAndDropHandler* self, - GdkDragContext* context, - GtkDragResult drag_result); -static gboolean _drag_and_drop_handler_on_drag_failed_gtk_widget_drag_failed (GtkWidget* _sender, - GdkDragContext* context, - GtkDragResult _result_, - gpointer self); -static GType drag_and_drop_handler_target_type_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -DragAndDropHandler* drag_and_drop_handler_new (Page* page); -DragAndDropHandler* drag_and_drop_handler_construct (GType object_type, - Page* page); -static GdkAtom* _gdk_atom_dup (GdkAtom* self); -guchar* string_to_uchar_array (const gchar* str, - int* result_length1); -GType thumbnail_source_get_type (void) G_GNUC_CONST; -DataSource* data_view_get_source (DataView* self); -GdkPixbuf* thumbnail_source_get_thumbnail (ThumbnailSource* self, - gint scale, - GError** error); -#define APP_WINDOW_DND_ICON_SCALE 128 -gchar* data_object_to_string (DataObject* self); -gchar* uchar_array_to_string (guchar* data, - int data_length1, - gint length); -GType media_source_get_type (void) G_GNUC_CONST; -GeeList* view_collection_get_selected_sources (ViewCollection* self); -guchar* serialize_media_sources (GeeCollection* media, - int* result_length1); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -void scaling_for_original (Scaling* result); -GType export_format_parameters_get_type (void) G_GNUC_CONST; -GType export_format_mode_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType jpeg_quality_get_type (void) G_GNUC_CONST; -ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self); -void export_format_parameters_free (ExportFormatParameters* self); -void export_format_parameters_current (ExportFormatParameters* result); -Exporter* exporter_new (GeeCollection* to_export, - GFile* dir, - Scaling* scaling, - ExportFormatParameters* export_params, - gboolean auto_replace_all); -Exporter* exporter_construct (GType object_type, - GeeCollection* to_export, - GFile* dir, - Scaling* scaling, - ExportFormatParameters* export_params, - gboolean auto_replace_all); -GType exporter_get_type (void) G_GNUC_CONST; -ExporterUI* exporter_ui_new (Exporter* exporter); -ExporterUI* exporter_ui_construct (GType object_type, - Exporter* exporter); -void exporter_ui_export (ExporterUI* self, - ExporterCompletionCallback completion_callback, - void* completion_callback_target); -static void drag_and_drop_handler_on_export_completed (DragAndDropHandler* self); -static void _drag_and_drop_handler_on_export_completed_exporter_completion_callback (Exporter* exporter, - gboolean is_cancelled, - gpointer self); -static void drag_and_drop_handler_finalize (DragAndDropHandler * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - -static const GtkTargetEntry DRAG_AND_DROP_HANDLER_SOURCE_TARGET_ENTRIES[2] = {{"XdndDirectSave0", (guint) GTK_TARGET_OTHER_APP, (guint) DRAG_AND_DROP_HANDLER_TARGET_TYPE_XDS}, {"shotwell/media-id-atom", (guint) GTK_TARGET_SAME_APP, (guint) DRAG_AND_DROP_HANDLER_TARGET_TYPE_MEDIA_LIST}}; - -InjectionGroup* -injection_group_construct (GType object_type, - const gchar* path) -{ - InjectionGroup* self = NULL; - gchar* _tmp0_; -#line 31 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (path != NULL, NULL); -#line 31 "/home/jens/Source/shotwell/src/Page.vala" - self = (InjectionGroup*) g_type_create_instance (object_type); -#line 32 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = g_strdup (path); -#line 32 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (self->priv->path); -#line 32 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->path = _tmp0_; -#line 31 "/home/jens/Source/shotwell/src/Page.vala" - return self; -#line 2057 "Page.c" -} - - -InjectionGroup* -injection_group_new (const gchar* path) -{ -#line 31 "/home/jens/Source/shotwell/src/Page.vala" - return injection_group_construct (TYPE_INJECTION_GROUP, path); -#line 2066 "Page.c" -} - - -gchar* -injection_group_get_path (InjectionGroup* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 35 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_INJECTION_GROUP (self), NULL); -#line 36 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->path; -#line 36 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 36 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp1_; -#line 36 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 2086 "Page.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 40 "/home/jens/Source/shotwell/src/Page.vala" - return self ? g_object_ref (self) : NULL; -#line 2095 "Page.c" -} - - -GeeList* -injection_group_get_elements (InjectionGroup* self) -{ - GeeList* result = NULL; - GeeArrayList* _tmp0_; - GeeList* _tmp1_; -#line 39 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_INJECTION_GROUP (self), NULL); -#line 40 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->elements; -#line 40 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList)); -#line 40 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp1_; -#line 40 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 2115 "Page.c" -} - - -void -injection_group_add_menu_item (InjectionGroup* self, - const gchar* name, - const gchar* action, - const gchar* accellerator) -{ - GeeArrayList* _tmp0_; - InjectionGroupElement* _tmp1_; - InjectionGroupElement* _tmp2_; -#line 43 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_INJECTION_GROUP (self)); -#line 43 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (name != NULL); -#line 44 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->elements; -#line 44 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = injection_group_element_new (name, action, accellerator, INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENUITEM); -#line 44 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_; -#line 44 "/home/jens/Source/shotwell/src/Page.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp2_); -#line 44 "/home/jens/Source/shotwell/src/Page.vala" - _injection_group_element_unref0 (_tmp2_); -#line 2142 "Page.c" -} - - -void -injection_group_add_menu (InjectionGroup* self, - const gchar* name, - const gchar* action) -{ - GeeArrayList* _tmp0_; - InjectionGroupElement* _tmp1_; - InjectionGroupElement* _tmp2_; -#line 47 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_INJECTION_GROUP (self)); -#line 47 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (name != NULL); -#line 48 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->elements; -#line 48 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = injection_group_element_new (name, action, NULL, INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENU); -#line 48 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_; -#line 48 "/home/jens/Source/shotwell/src/Page.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp2_); -#line 48 "/home/jens/Source/shotwell/src/Page.vala" - _injection_group_element_unref0 (_tmp2_); -#line 2168 "Page.c" -} - - -void -injection_group_add_separator (InjectionGroup* self) -{ - GeeArrayList* _tmp0_; - gint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - InjectionGroupElement* _tmp4_; - InjectionGroupElement* _tmp5_; -#line 51 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_INJECTION_GROUP (self)); -#line 52 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->elements; -#line 52 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->separator_id; -#line 52 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->separator_id = _tmp1_ + 1; -#line 52 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = g_strdup_printf ("%d-separator", _tmp1_); -#line 52 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = _tmp2_; -#line 52 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = injection_group_element_new (_tmp3_, NULL, NULL, INJECTION_GROUP_ELEMENT_ITEM_TYPE_SEPARATOR); -#line 52 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _tmp4_; -#line 52 "/home/jens/Source/shotwell/src/Page.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp5_); -#line 52 "/home/jens/Source/shotwell/src/Page.vala" - _injection_group_element_unref0 (_tmp5_); -#line 52 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp3_); -#line 2203 "Page.c" -} - - -GType -injection_group_element_item_type_get_type (void) -{ - static volatile gsize injection_group_element_item_type_type_id__volatile = 0; - if (g_once_init_enter (&injection_group_element_item_type_type_id__volatile)) { - static const GEnumValue values[] = {{INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENUITEM, "INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENUITEM", "menuitem"}, {INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENU, "INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENU", "menu"}, {INJECTION_GROUP_ELEMENT_ITEM_TYPE_SEPARATOR, "INJECTION_GROUP_ELEMENT_ITEM_TYPE_SEPARATOR", "separator"}, {0, NULL, NULL}}; - GType injection_group_element_item_type_type_id; - injection_group_element_item_type_type_id = g_enum_register_static ("InjectionGroupElementItemType", values); - g_once_init_leave (&injection_group_element_item_type_type_id__volatile, injection_group_element_item_type_type_id); - } - return injection_group_element_item_type_type_id__volatile; -} - - -InjectionGroupElement* -injection_group_element_construct (GType object_type, - const gchar* name, - const gchar* action, - const gchar* accellerator, - InjectionGroupElementItemType kind) -{ - InjectionGroupElement* self = NULL; - gchar* _tmp0_; - const gchar* _tmp1_ = NULL; - gchar* _tmp2_; - gchar* _tmp3_; -#line 19 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 19 "/home/jens/Source/shotwell/src/Page.vala" - self = (InjectionGroupElement*) g_type_create_instance (object_type); -#line 20 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = g_strdup (name); -#line 20 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (self->name); -#line 20 "/home/jens/Source/shotwell/src/Page.vala" - self->name = _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/Page.vala" - if (action != NULL) { -#line 21 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = action; -#line 2247 "Page.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = name; -#line 2251 "Page.c" - } -#line 21 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 21 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (self->action); -#line 21 "/home/jens/Source/shotwell/src/Page.vala" - self->action = _tmp2_; -#line 22 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = g_strdup (accellerator); -#line 22 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (self->accellerator); -#line 22 "/home/jens/Source/shotwell/src/Page.vala" - self->accellerator = _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/Page.vala" - self->kind = kind; -#line 19 "/home/jens/Source/shotwell/src/Page.vala" - return self; -#line 2269 "Page.c" -} - - -InjectionGroupElement* -injection_group_element_new (const gchar* name, - const gchar* action, - const gchar* accellerator, - InjectionGroupElementItemType kind) -{ -#line 19 "/home/jens/Source/shotwell/src/Page.vala" - return injection_group_element_construct (INJECTION_GROUP_TYPE_ELEMENT, name, action, accellerator, kind); -#line 2281 "Page.c" -} - - -static void -injection_group_value_element_init (GValue* value) -{ -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = NULL; -#line 2290 "Page.c" -} - - -static void -injection_group_value_element_free_value (GValue* value) -{ -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - if (value->data[0].v_pointer) { -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - injection_group_element_unref (value->data[0].v_pointer); -#line 2301 "Page.c" - } -} - - -static void -injection_group_value_element_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - if (src_value->data[0].v_pointer) { -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - dest_value->data[0].v_pointer = injection_group_element_ref (src_value->data[0].v_pointer); -#line 2314 "Page.c" - } else { -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - dest_value->data[0].v_pointer = NULL; -#line 2318 "Page.c" - } -} - - -static gpointer -injection_group_value_element_peek_pointer (const GValue* value) -{ -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - return value->data[0].v_pointer; -#line 2328 "Page.c" -} - - -static gchar* -injection_group_value_element_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - if (collect_values[0].v_pointer) { -#line 2340 "Page.c" - InjectionGroupElement * object; - object = collect_values[0].v_pointer; -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - if (object->parent_instance.g_class == NULL) { -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2347 "Page.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2351 "Page.c" - } -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = injection_group_element_ref (object); -#line 2355 "Page.c" - } else { -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = NULL; -#line 2359 "Page.c" - } -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - return NULL; -#line 2363 "Page.c" -} - - -static gchar* -injection_group_value_element_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - InjectionGroupElement ** object_p; - object_p = collect_values[0].v_pointer; -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - if (!object_p) { -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2379 "Page.c" - } -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - if (!value->data[0].v_pointer) { -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - *object_p = NULL; -#line 2385 "Page.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - *object_p = value->data[0].v_pointer; -#line 2389 "Page.c" - } else { -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - *object_p = injection_group_element_ref (value->data[0].v_pointer); -#line 2393 "Page.c" - } -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - return NULL; -#line 2397 "Page.c" -} - - -GParamSpec* -injection_group_param_spec_element (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - InjectionGroupParamSpecElement* spec; -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (g_type_is_a (object_type, INJECTION_GROUP_TYPE_ELEMENT), NULL); -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - return G_PARAM_SPEC (spec); -#line 2417 "Page.c" -} - - -gpointer -injection_group_value_get_element (const GValue* value) -{ -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, INJECTION_GROUP_TYPE_ELEMENT), NULL); -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - return value->data[0].v_pointer; -#line 2428 "Page.c" -} - - -void -injection_group_value_set_element (GValue* value, - gpointer v_object) -{ - InjectionGroupElement * old; -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, INJECTION_GROUP_TYPE_ELEMENT)); -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - old = value->data[0].v_pointer; -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - if (v_object) { -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, INJECTION_GROUP_TYPE_ELEMENT)); -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = v_object; -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - injection_group_element_ref (value->data[0].v_pointer); -#line 2451 "Page.c" - } else { -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = NULL; -#line 2455 "Page.c" - } -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - if (old) { -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - injection_group_element_unref (old); -#line 2461 "Page.c" - } -} - - -void -injection_group_value_take_element (GValue* value, - gpointer v_object) -{ - InjectionGroupElement * old; -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, INJECTION_GROUP_TYPE_ELEMENT)); -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - old = value->data[0].v_pointer; -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - if (v_object) { -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, INJECTION_GROUP_TYPE_ELEMENT)); -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = v_object; -#line 2483 "Page.c" - } else { -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = NULL; -#line 2487 "Page.c" - } -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - if (old) { -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - injection_group_element_unref (old); -#line 2493 "Page.c" - } -} - - -static void -injection_group_element_class_init (InjectionGroupElementClass * klass) -{ -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - injection_group_element_parent_class = g_type_class_peek_parent (klass); -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - ((InjectionGroupElementClass *) klass)->finalize = injection_group_element_finalize; -#line 2505 "Page.c" -} - - -static void -injection_group_element_instance_init (InjectionGroupElement * self) -{ -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - self->ref_count = 1; -#line 2514 "Page.c" -} - - -static void -injection_group_element_finalize (InjectionGroupElement * obj) -{ - InjectionGroupElement * self; -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, INJECTION_GROUP_TYPE_ELEMENT, InjectionGroupElement); -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_destroy (self); -#line 14 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (self->name); -#line 15 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (self->action); -#line 16 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (self->accellerator); -#line 2532 "Page.c" -} - - -GType -injection_group_element_get_type (void) -{ - static volatile gsize injection_group_element_type_id__volatile = 0; - if (g_once_init_enter (&injection_group_element_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { injection_group_value_element_init, injection_group_value_element_free_value, injection_group_value_element_copy_value, injection_group_value_element_peek_pointer, "p", injection_group_value_element_collect_value, "p", injection_group_value_element_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (InjectionGroupElementClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) injection_group_element_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (InjectionGroupElement), 0, (GInstanceInitFunc) injection_group_element_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType injection_group_element_type_id; - injection_group_element_type_id = g_type_register_fundamental (g_type_fundamental_next (), "InjectionGroupElement", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&injection_group_element_type_id__volatile, injection_group_element_type_id); - } - return injection_group_element_type_id__volatile; -} - - -gpointer -injection_group_element_ref (gpointer instance) -{ - InjectionGroupElement * self; - self = instance; -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - g_atomic_int_inc (&self->ref_count); -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - return instance; -#line 2561 "Page.c" -} - - -void -injection_group_element_unref (gpointer instance) -{ - InjectionGroupElement * self; - self = instance; -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - INJECTION_GROUP_ELEMENT_GET_CLASS (self)->finalize (self); -#line 8 "/home/jens/Source/shotwell/src/Page.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2576 "Page.c" - } -} - - -static void -value_injection_group_init (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = NULL; -#line 2586 "Page.c" -} - - -static void -value_injection_group_free_value (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - if (value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - injection_group_unref (value->data[0].v_pointer); -#line 2597 "Page.c" - } -} - - -static void -value_injection_group_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - if (src_value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - dest_value->data[0].v_pointer = injection_group_ref (src_value->data[0].v_pointer); -#line 2610 "Page.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - dest_value->data[0].v_pointer = NULL; -#line 2614 "Page.c" - } -} - - -static gpointer -value_injection_group_peek_pointer (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - return value->data[0].v_pointer; -#line 2624 "Page.c" -} - - -static gchar* -value_injection_group_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - if (collect_values[0].v_pointer) { -#line 2636 "Page.c" - InjectionGroup * object; - object = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - if (object->parent_instance.g_class == NULL) { -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2643 "Page.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2647 "Page.c" - } -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = injection_group_ref (object); -#line 2651 "Page.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = NULL; -#line 2655 "Page.c" - } -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - return NULL; -#line 2659 "Page.c" -} - - -static gchar* -value_injection_group_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - InjectionGroup ** object_p; - object_p = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - if (!object_p) { -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2675 "Page.c" - } -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - if (!value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - *object_p = NULL; -#line 2681 "Page.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - *object_p = value->data[0].v_pointer; -#line 2685 "Page.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - *object_p = injection_group_ref (value->data[0].v_pointer); -#line 2689 "Page.c" - } -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - return NULL; -#line 2693 "Page.c" -} - - -GParamSpec* -param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecInjectionGroup* spec; -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_INJECTION_GROUP), NULL); -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - return G_PARAM_SPEC (spec); -#line 2713 "Page.c" -} - - -gpointer -value_get_injection_group (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_INJECTION_GROUP), NULL); -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - return value->data[0].v_pointer; -#line 2724 "Page.c" -} - - -void -value_set_injection_group (GValue* value, - gpointer v_object) -{ - InjectionGroup * old; -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_INJECTION_GROUP)); -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_INJECTION_GROUP)); -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = v_object; -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - injection_group_ref (value->data[0].v_pointer); -#line 2747 "Page.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = NULL; -#line 2751 "Page.c" - } -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - injection_group_unref (old); -#line 2757 "Page.c" - } -} - - -void -value_take_injection_group (GValue* value, - gpointer v_object) -{ - InjectionGroup * old; -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_INJECTION_GROUP)); -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_INJECTION_GROUP)); -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = v_object; -#line 2779 "Page.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = NULL; -#line 2783 "Page.c" - } -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - injection_group_unref (old); -#line 2789 "Page.c" - } -} - - -static void -injection_group_class_init (InjectionGroupClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - injection_group_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - ((InjectionGroupClass *) klass)->finalize = injection_group_finalize; -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - g_type_class_add_private (klass, sizeof (InjectionGroupPrivate)); -#line 2803 "Page.c" -} - - -static void -injection_group_instance_init (InjectionGroup * self) -{ - GeeArrayList* _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - self->priv = INJECTION_GROUP_GET_PRIVATE (self); -#line 28 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = gee_array_list_new (INJECTION_GROUP_TYPE_ELEMENT, (GBoxedCopyFunc) injection_group_element_ref, (GDestroyNotify) injection_group_element_unref, NULL, NULL, NULL); -#line 28 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->elements = _tmp0_; -#line 29 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->separator_id = 0; -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - self->ref_count = 1; -#line 2821 "Page.c" -} - - -static void -injection_group_finalize (InjectionGroup * obj) -{ - InjectionGroup * self; -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_INJECTION_GROUP, InjectionGroup); -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_destroy (self); -#line 27 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (self->priv->path); -#line 28 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->elements); -#line 2837 "Page.c" -} - - -GType -injection_group_get_type (void) -{ - static volatile gsize injection_group_type_id__volatile = 0; - if (g_once_init_enter (&injection_group_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_injection_group_init, value_injection_group_free_value, value_injection_group_copy_value, value_injection_group_peek_pointer, "p", value_injection_group_collect_value, "p", value_injection_group_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (InjectionGroupClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) injection_group_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (InjectionGroup), 0, (GInstanceInitFunc) injection_group_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType injection_group_type_id; - injection_group_type_id = g_type_register_fundamental (g_type_fundamental_next (), "InjectionGroup", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&injection_group_type_id__volatile, injection_group_type_id); - } - return injection_group_type_id__volatile; -} - - -gpointer -injection_group_ref (gpointer instance) -{ - InjectionGroup * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - g_atomic_int_inc (&self->ref_count); -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - return instance; -#line 2866 "Page.c" -} - - -void -injection_group_unref (gpointer instance) -{ - InjectionGroup * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - INJECTION_GROUP_GET_CLASS (self)->finalize (self); -#line 7 "/home/jens/Source/shotwell/src/Page.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2881 "Page.c" - } -} - - -static gboolean -_page_on_context_keypress_gtk_widget_popup_menu (GtkWidget* _sender, - gpointer self) -{ - gboolean result; - result = page_on_context_keypress ((Page*) self); -#line 98 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 2894 "Page.c" -} - - -static void -_page_attach_view_signals_gtk_widget_realize (GtkWidget* _sender, - gpointer self) -{ -#line 100 "/home/jens/Source/shotwell/src/Page.vala" - page_attach_view_signals ((Page*) self); -#line 2904 "Page.c" -} - - -Page* -page_construct (GType object_type, - const gchar* page_name) -{ - Page * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - ViewCollection* _tmp3_; - GdkPoint _tmp4_ = {0}; -#line 89 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (page_name != NULL, NULL); -#line 89 "/home/jens/Source/shotwell/src/Page.vala" - self = (Page*) g_object_new (object_type, NULL); -#line 90 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = g_strdup (page_name); -#line 90 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (self->priv->page_name); -#line 90 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->page_name = _tmp0_; -#line 92 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = g_strdup_printf ("ViewCollection for Page %s", page_name); -#line 92 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_; -#line 92 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = view_collection_new (_tmp2_); -#line 92 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (self->priv->view); -#line 92 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->view = _tmp3_; -#line 92 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp2_); -#line 94 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_.x = -1; -#line 94 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_.y = -1; -#line 94 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_down = _tmp4_; -#line 96 "/home/jens/Source/shotwell/src/Page.vala" - gtk_widget_set_can_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), TRUE); -#line 98 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "popup-menu", (GCallback) _page_on_context_keypress_gtk_widget_popup_menu, self, 0); -#line 100 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "realize", (GCallback) _page_attach_view_signals_gtk_widget_realize, self, 0); -#line 89 "/home/jens/Source/shotwell/src/Page.vala" - return self; -#line 2954 "Page.c" -} - - -static void -page_real_destroy (GtkWidget* base) -{ - Page * self; - gboolean _tmp0_; - ViewCollection* _tmp1_; - GtkToolbar* _tmp2_; - OneShotScheduler* _tmp4_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 111 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PAGE, Page); -#line 112 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->is_destroyed; -#line 112 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_) { -#line 113 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 2976 "Page.c" - } -#line 116 "/home/jens/Source/shotwell/src/Page.vala" - page_detach_event_source (self); -#line 117 "/home/jens/Source/shotwell/src/Page.vala" - page_detach_view_signals (self); -#line 118 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->view; -#line 118 "/home/jens/Source/shotwell/src/Page.vala" - data_collection_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 121 "/home/jens/Source/shotwell/src/Page.vala" - page_clear_container (self); -#line 123 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->toolbar; -#line 123 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp2_ != NULL) { -#line 2992 "Page.c" - GtkToolbar* _tmp3_; -#line 124 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = self->toolbar; -#line 124 "/home/jens/Source/shotwell/src/Page.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget)); -#line 2998 "Page.c" - } -#line 127 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = self->priv->update_actions_scheduler; -#line 127 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp4_ != NULL) { -#line 3004 "Page.c" - OneShotScheduler* _tmp5_; -#line 128 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->priv->update_actions_scheduler; -#line 128 "/home/jens/Source/shotwell/src/Page.vala" - one_shot_scheduler_cancel (_tmp5_); -#line 3010 "Page.c" - } -#line 130 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->is_destroyed = TRUE; -#line 132 "/home/jens/Source/shotwell/src/Page.vala" - GTK_WIDGET_CLASS (page_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow), gtk_widget_get_type (), GtkWidget)); -#line 134 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = page_get_page_name (self); -#line 134 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = _tmp6_; -#line 134 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:134: Page %s Destroyed", _tmp7_); -#line 134 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp7_); -#line 3024 "Page.c" -} - - -gchar* -page_get_page_name (Page* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 137 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), NULL); -#line 138 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->page_name; -#line 138 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 138 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp1_; -#line 138 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 3044 "Page.c" -} - - -static void -page_real_set_page_name (Page* self, - const gchar* page_name) -{ - gchar* _tmp0_; -#line 141 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (page_name != NULL); -#line 142 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = g_strdup (page_name); -#line 142 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (self->priv->page_name); -#line 142 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->page_name = _tmp0_; -#line 3061 "Page.c" -} - - -void -page_set_page_name (Page* self, - const gchar* page_name) -{ -#line 141 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 141 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->set_page_name (self, page_name); -#line 3073 "Page.c" -} - - -gchar* -page_to_string (Page* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 145 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), NULL); -#line 146 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->page_name; -#line 146 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 146 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp1_; -#line 146 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 3093 "Page.c" -} - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 150 "/home/jens/Source/shotwell/src/Page.vala" - return self ? data_collection_ref (self) : NULL; -#line 3102 "Page.c" -} - - -ViewCollection* -page_get_view (Page* self) -{ - ViewCollection* result = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; -#line 149 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), NULL); -#line 150 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->view; -#line 150 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _data_collection_ref0 (_tmp0_); -#line 150 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp1_; -#line 150 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 3122 "Page.c" -} - - -GtkWindow* -page_get_container (Page* self) -{ - GtkWindow* result = NULL; - GtkWindow* _tmp0_; - GtkWindow* _tmp1_; -#line 153 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), NULL); -#line 154 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->container; -#line 154 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 154 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp1_; -#line 154 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 3142 "Page.c" -} - - -static void -page_real_set_container (Page* self, - GtkWindow* container) -{ - GtkWindow* _tmp0_; - GtkWindow* _tmp1_; -#line 157 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (GTK_IS_WINDOW (container)); -#line 158 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->container; -#line 158 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (_tmp0_ == NULL, "this.container == null"); -#line 160 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _g_object_ref0 (container); -#line 160 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->container); -#line 160 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->container = _tmp1_; -#line 3164 "Page.c" -} - - -void -page_set_container (Page* self, - GtkWindow* container) -{ -#line 157 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 157 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->set_container (self, container); -#line 3176 "Page.c" -} - - -static void -page_real_clear_container (Page* self) -{ -#line 164 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->container); -#line 164 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->container = NULL; -#line 3187 "Page.c" -} - - -void -page_clear_container (Page* self) -{ -#line 163 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 163 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->clear_container (self); -#line 3198 "Page.c" -} - - -static gboolean -_page_on_button_pressed_internal_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self) -{ - gboolean result; - result = page_on_button_pressed_internal ((Page*) self, event); -#line 178 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 3211 "Page.c" -} - - -static gboolean -_page_on_button_released_internal_gtk_widget_button_release_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self) -{ - gboolean result; - result = page_on_button_released_internal ((Page*) self, event); -#line 179 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 3224 "Page.c" -} - - -static gboolean -_page_on_motion_internal_gtk_widget_motion_notify_event (GtkWidget* _sender, - GdkEventMotion* event, - gpointer self) -{ - gboolean result; - result = page_on_motion_internal ((Page*) self, event); -#line 180 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 3237 "Page.c" -} - - -static gboolean -_page_on_leave_notify_event_gtk_widget_leave_notify_event (GtkWidget* _sender, - GdkEventCrossing* event, - gpointer self) -{ - gboolean result; - result = page_on_leave_notify_event ((Page*) self); -#line 181 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 3250 "Page.c" -} - - -static gboolean -_page_on_mousewheel_internal_gtk_widget_scroll_event (GtkWidget* _sender, - GdkEventScroll* event, - gpointer self) -{ - gboolean result; - result = page_on_mousewheel_internal ((Page*) self, event); -#line 182 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 3263 "Page.c" -} - - -static void -_page_on_event_source_realize_gtk_widget_realize (GtkWidget* _sender, - gpointer self) -{ -#line 183 "/home/jens/Source/shotwell/src/Page.vala" - page_on_event_source_realize ((Page*) self); -#line 3273 "Page.c" -} - - -void -page_set_event_source (Page* self, - GtkWidget* event_source) -{ - GtkWidget* _tmp0_; - GtkWidget* _tmp1_; -#line 167 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 167 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (GTK_IS_WIDGET (event_source)); -#line 168 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->event_source; -#line 168 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (_tmp0_ == NULL, "this.event_source == null"); -#line 170 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _g_object_ref0 (event_source); -#line 170 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->event_source); -#line 170 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->event_source = _tmp1_; -#line 171 "/home/jens/Source/shotwell/src/Page.vala" - gtk_widget_set_can_focus (event_source, TRUE); -#line 174 "/home/jens/Source/shotwell/src/Page.vala" - gtk_widget_add_events (event_source, (gint) (((((((GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK) | GDK_POINTER_MOTION_MASK) | GDK_POINTER_MOTION_HINT_MASK) | GDK_BUTTON_MOTION_MASK) | GDK_LEAVE_NOTIFY_MASK) | GDK_SCROLL_MASK) | GDK_SMOOTH_SCROLL_MASK)); -#line 178 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (event_source, "button-press-event", (GCallback) _page_on_button_pressed_internal_gtk_widget_button_press_event, self, 0); -#line 179 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (event_source, "button-release-event", (GCallback) _page_on_button_released_internal_gtk_widget_button_release_event, self, 0); -#line 180 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (event_source, "motion-notify-event", (GCallback) _page_on_motion_internal_gtk_widget_motion_notify_event, self, 0); -#line 181 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (event_source, "leave-notify-event", (GCallback) _page_on_leave_notify_event_gtk_widget_leave_notify_event, self, 0); -#line 182 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (event_source, "scroll-event", (GCallback) _page_on_mousewheel_internal_gtk_widget_scroll_event, self, 0); -#line 183 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (event_source, "realize", (GCallback) _page_on_event_source_realize_gtk_widget_realize, self, 0); -#line 3313 "Page.c" -} - - -static void -page_detach_event_source (Page* self) -{ - GtkWidget* _tmp0_; - GtkWidget* _tmp1_; - guint _tmp2_; - GtkWidget* _tmp3_; - guint _tmp4_; - GtkWidget* _tmp5_; - guint _tmp6_; - GtkWidget* _tmp7_; - guint _tmp8_; - GtkWidget* _tmp9_; - guint _tmp10_; -#line 186 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 187 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->event_source; -#line 187 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_ == NULL) { -#line 188 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 3339 "Page.c" - } -#line 190 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->event_source; -#line 190 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp2_, NULL, FALSE); -#line 190 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _page_on_button_pressed_internal_gtk_widget_button_press_event, self); -#line 191 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = self->priv->event_source; -#line 191 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("button-release-event", gtk_widget_get_type (), &_tmp4_, NULL, FALSE); -#line 191 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _page_on_button_released_internal_gtk_widget_button_release_event, self); -#line 192 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->priv->event_source; -#line 192 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("motion-notify-event", gtk_widget_get_type (), &_tmp6_, NULL, FALSE); -#line 192 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _page_on_motion_internal_gtk_widget_motion_notify_event, self); -#line 193 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = self->priv->event_source; -#line 193 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("leave-notify-event", gtk_widget_get_type (), &_tmp8_, NULL, FALSE); -#line 193 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp7_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _page_on_leave_notify_event_gtk_widget_leave_notify_event, self); -#line 194 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = self->priv->event_source; -#line 194 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("scroll-event", gtk_widget_get_type (), &_tmp10_, NULL, FALSE); -#line 194 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _page_on_mousewheel_internal_gtk_widget_scroll_event, self); -#line 196 "/home/jens/Source/shotwell/src/Page.vala" - page_disable_drag_source (self); -#line 198 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->event_source); -#line 198 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->event_source = NULL; -#line 3377 "Page.c" -} - - -GtkWidget* -page_get_event_source (Page* self) -{ - GtkWidget* result = NULL; - GtkWidget* _tmp0_; - GtkWidget* _tmp1_; -#line 201 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), NULL); -#line 202 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->event_source; -#line 202 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 202 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp1_; -#line 202 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 3397 "Page.c" -} - - -static gpointer -_injection_group_ref0 (gpointer self) -{ -#line 215 "/home/jens/Source/shotwell/src/Page.vala" - return self ? injection_group_ref (self) : NULL; -#line 3406 "Page.c" -} - - -GMenuModel* -page_get_menubar (Page* self) -{ - GMenuModel* result = NULL; - GMenu* model = NULL; - GtkBuilder* _tmp0_; - GObject* _tmp1_; - GMenu* _tmp2_; - GMenu* _tmp3_; - gboolean _tmp5_; -#line 206 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), NULL); -#line 207 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->builder; -#line 207 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = gtk_builder_get_object (_tmp0_, "MenuBar"); -#line 207 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, g_menu_get_type ()) ? ((GMenu*) _tmp1_) : NULL); -#line 207 "/home/jens/Source/shotwell/src/Page.vala" - model = _tmp2_; -#line 208 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = model; -#line 208 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_ == NULL) { -#line 3434 "Page.c" - GMenu* _tmp4_; -#line 209 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = g_menu_new (); -#line 209 "/home/jens/Source/shotwell/src/Page.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, g_menu_model_get_type (), GMenuModel); -#line 209 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (model); -#line 209 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 3444 "Page.c" - } -#line 212 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->priv->menubar_injected; -#line 212 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp5_) { -#line 3450 "Page.c" - InjectionGroup** injection_groups = NULL; - gint _tmp6_; - InjectionGroup** _tmp7_; - gint injection_groups_length1; - gint _injection_groups_size_; - InjectionGroup** _tmp8_; - gint _tmp8__length1; -#line 214 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = page_init_collect_injection_groups (self, &_tmp6_); -#line 214 "/home/jens/Source/shotwell/src/Page.vala" - injection_groups = _tmp7_; -#line 214 "/home/jens/Source/shotwell/src/Page.vala" - injection_groups_length1 = _tmp6_; -#line 214 "/home/jens/Source/shotwell/src/Page.vala" - _injection_groups_size_ = injection_groups_length1; -#line 215 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = injection_groups; -#line 215 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8__length1 = injection_groups_length1; -#line 3470 "Page.c" - { - InjectionGroup** group_collection = NULL; - gint group_collection_length1 = 0; - gint _group_collection_size_ = 0; - gint group_it = 0; -#line 215 "/home/jens/Source/shotwell/src/Page.vala" - group_collection = _tmp8_; -#line 215 "/home/jens/Source/shotwell/src/Page.vala" - group_collection_length1 = _tmp8__length1; -#line 215 "/home/jens/Source/shotwell/src/Page.vala" - for (group_it = 0; group_it < _tmp8__length1; group_it = group_it + 1) { -#line 3482 "Page.c" - InjectionGroup* _tmp9_; - InjectionGroup* group = NULL; -#line 215 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = _injection_group_ref0 (group_collection[group_it]); -#line 215 "/home/jens/Source/shotwell/src/Page.vala" - group = _tmp9_; -#line 3489 "Page.c" - { - gint items = 0; - GMenu* _tmp10_; -#line 216 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = model; -#line 216 "/home/jens/Source/shotwell/src/Page.vala" - items = g_menu_model_get_n_items (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, g_menu_model_get_type (), GMenuModel)); -#line 3497 "Page.c" - { - gint i = 0; -#line 217 "/home/jens/Source/shotwell/src/Page.vala" - i = 0; -#line 3502 "Page.c" - { - gboolean _tmp11_ = FALSE; -#line 217 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = TRUE; -#line 217 "/home/jens/Source/shotwell/src/Page.vala" - while (TRUE) { -#line 3509 "Page.c" - gint _tmp13_; - gint _tmp14_; - GMenuModel* submenu = NULL; - GMenu* _tmp15_; - gint _tmp16_; - GMenuModel* _tmp17_; - GMenuModel* section = NULL; - GMenuModel* _tmp18_; - InjectionGroup* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - GMenuModel* _tmp22_; - GMenuModel* _tmp23_; - GMenuModel* _tmp24_; -#line 217 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp11_) { -#line 3526 "Page.c" - gint _tmp12_; -#line 217 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = i; -#line 217 "/home/jens/Source/shotwell/src/Page.vala" - i = _tmp12_ + 1; -#line 3532 "Page.c" - } -#line 217 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = FALSE; -#line 217 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = i; -#line 217 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = items; -#line 217 "/home/jens/Source/shotwell/src/Page.vala" - if (!(_tmp13_ < _tmp14_)) { -#line 217 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 3544 "Page.c" - } -#line 218 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = model; -#line 218 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = i; -#line 218 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = g_menu_model_get_item_link (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, g_menu_model_get_type (), GMenuModel), _tmp16_, G_MENU_LINK_SUBMENU); -#line 218 "/home/jens/Source/shotwell/src/Page.vala" - submenu = _tmp17_; -#line 220 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = submenu; -#line 220 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = group; -#line 220 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = injection_group_get_path (_tmp19_); -#line 220 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = _tmp20_; -#line 220 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = page_find_extension_point (self, _tmp18_, _tmp21_); -#line 220 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = _tmp22_; -#line 220 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp21_); -#line 220 "/home/jens/Source/shotwell/src/Page.vala" - section = _tmp23_; -#line 223 "/home/jens/Source/shotwell/src/Page.vala" - _tmp24_ = section; -#line 223 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp24_ == NULL) { -#line 224 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (section); -#line 224 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (submenu); -#line 224 "/home/jens/Source/shotwell/src/Page.vala" - continue; -#line 3580 "Page.c" - } - { - GeeList* _element_list = NULL; - InjectionGroup* _tmp25_; - GeeList* _tmp26_; - gint _element_size = 0; - GeeList* _tmp27_; - gint _tmp28_; - gint _tmp29_; - gint _element_index = 0; -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _tmp25_ = group; -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _tmp26_ = injection_group_get_elements (_tmp25_); -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _element_list = _tmp26_; -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _tmp27_ = _element_list; -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _tmp28_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _tmp29_ = _tmp28_; -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _element_size = _tmp29_; -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _element_index = -1; -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - while (TRUE) { -#line 3609 "Page.c" - gint _tmp30_; - gint _tmp31_; - gint _tmp32_; - InjectionGroupElement* element = NULL; - GeeList* _tmp33_; - gint _tmp34_; - gpointer _tmp35_; - GMenu* menu = NULL; - GMenuModel* _tmp36_; - GMenu* _tmp37_; - InjectionGroupElement* _tmp38_; - InjectionGroupElementItemType _tmp39_; -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _tmp30_ = _element_index; -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _element_index = _tmp30_ + 1; -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _tmp31_ = _element_index; -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _tmp32_ = _element_size; -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - if (!(_tmp31_ < _tmp32_)) { -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 3634 "Page.c" - } -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _tmp33_ = _element_list; -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _tmp34_ = _element_index; -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _tmp35_ = gee_list_get (_tmp33_, _tmp34_); -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - element = (InjectionGroupElement*) _tmp35_; -#line 228 "/home/jens/Source/shotwell/src/Page.vala" - _tmp36_ = section; -#line 228 "/home/jens/Source/shotwell/src/Page.vala" - _tmp37_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp36_, g_menu_get_type ()) ? ((GMenu*) _tmp36_) : NULL); -#line 228 "/home/jens/Source/shotwell/src/Page.vala" - menu = _tmp37_; -#line 229 "/home/jens/Source/shotwell/src/Page.vala" - _tmp38_ = element; -#line 229 "/home/jens/Source/shotwell/src/Page.vala" - _tmp39_ = _tmp38_->kind; -#line 229 "/home/jens/Source/shotwell/src/Page.vala" - switch (_tmp39_) { -#line 229 "/home/jens/Source/shotwell/src/Page.vala" - case INJECTION_GROUP_ELEMENT_ITEM_TYPE_MENUITEM: -#line 3658 "Page.c" - { - GMenuItem* item = NULL; - InjectionGroupElement* _tmp40_; - const gchar* _tmp41_; - InjectionGroupElement* _tmp42_; - const gchar* _tmp43_; - gchar* _tmp44_; - gchar* _tmp45_; - GMenuItem* _tmp46_; - GMenuItem* _tmp47_; - InjectionGroupElement* _tmp48_; - const gchar* _tmp49_; - GMenu* _tmp53_; - GMenuItem* _tmp54_; -#line 231 "/home/jens/Source/shotwell/src/Page.vala" - _tmp40_ = element; -#line 231 "/home/jens/Source/shotwell/src/Page.vala" - _tmp41_ = _tmp40_->name; -#line 231 "/home/jens/Source/shotwell/src/Page.vala" - _tmp42_ = element; -#line 231 "/home/jens/Source/shotwell/src/Page.vala" - _tmp43_ = _tmp42_->action; -#line 231 "/home/jens/Source/shotwell/src/Page.vala" - _tmp44_ = g_strconcat ("win.", _tmp43_, NULL); -#line 231 "/home/jens/Source/shotwell/src/Page.vala" - _tmp45_ = _tmp44_; -#line 231 "/home/jens/Source/shotwell/src/Page.vala" - _tmp46_ = g_menu_item_new (_tmp41_, _tmp45_); -#line 231 "/home/jens/Source/shotwell/src/Page.vala" - _tmp47_ = _tmp46_; -#line 231 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp45_); -#line 231 "/home/jens/Source/shotwell/src/Page.vala" - item = _tmp47_; -#line 233 "/home/jens/Source/shotwell/src/Page.vala" - _tmp48_ = element; -#line 233 "/home/jens/Source/shotwell/src/Page.vala" - _tmp49_ = _tmp48_->accellerator; -#line 233 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp49_ != NULL) { -#line 3699 "Page.c" - GMenuItem* _tmp50_; - InjectionGroupElement* _tmp51_; - const gchar* _tmp52_; -#line 234 "/home/jens/Source/shotwell/src/Page.vala" - _tmp50_ = item; -#line 234 "/home/jens/Source/shotwell/src/Page.vala" - _tmp51_ = element; -#line 234 "/home/jens/Source/shotwell/src/Page.vala" - _tmp52_ = _tmp51_->accellerator; -#line 234 "/home/jens/Source/shotwell/src/Page.vala" - g_menu_item_set_attribute (_tmp50_, "accel", "s", _tmp52_, NULL); -#line 3711 "Page.c" - } -#line 239 "/home/jens/Source/shotwell/src/Page.vala" - _tmp53_ = menu; -#line 239 "/home/jens/Source/shotwell/src/Page.vala" - _tmp54_ = item; -#line 239 "/home/jens/Source/shotwell/src/Page.vala" - g_menu_append_item (_tmp53_, _tmp54_); -#line 240 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (item); -#line 240 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 3723 "Page.c" - } - default: - { -#line 242 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 3729 "Page.c" - } - } -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (menu); -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _injection_group_element_unref0 (element); -#line 3736 "Page.c" - } -#line 227 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_element_list); -#line 3740 "Page.c" - } -#line 217 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (section); -#line 217 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (submenu); -#line 3746 "Page.c" - } - } - } -#line 215 "/home/jens/Source/shotwell/src/Page.vala" - _injection_group_unref0 (group); -#line 3752 "Page.c" - } - } - } -#line 248 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->menubar_injected = TRUE; -#line 212 "/home/jens/Source/shotwell/src/Page.vala" - injection_groups = (_vala_array_free (injection_groups, injection_groups_length1, (GDestroyNotify) injection_group_unref), NULL); -#line 3760 "Page.c" - } -#line 251 "/home/jens/Source/shotwell/src/Page.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (model, g_menu_model_get_type (), GMenuModel); -#line 251 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 3766 "Page.c" -} - - -static GtkToolbar* -page_real_get_toolbar (Page* self) -{ - GtkToolbar* result = NULL; - GtkToolbar* _tmp0_; - GtkToolbar* _tmp12_; - GtkToolbar* _tmp13_; -#line 255 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->toolbar; -#line 255 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_ == NULL) { -#line 3781 "Page.c" - GtkToolbar* _tmp1_ = NULL; - const gchar* _tmp2_; - GtkToolbar* _tmp8_; - GtkToolbar* _tmp9_; - GtkStyleContext* _tmp10_; - GtkToolbar* _tmp11_; -#line 256 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->priv->toolbar_path; -#line 256 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp2_ == NULL) { -#line 3792 "Page.c" - GtkToolbar* _tmp3_; -#line 256 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = (GtkToolbar*) gtk_toolbar_new (); -#line 256 "/home/jens/Source/shotwell/src/Page.vala" - g_object_ref_sink (_tmp3_); -#line 256 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp1_); -#line 256 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp3_; -#line 3802 "Page.c" - } else { - GtkBuilder* _tmp4_; - const gchar* _tmp5_; - GObject* _tmp6_; - GtkToolbar* _tmp7_; -#line 257 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = self->builder; -#line 257 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->priv->toolbar_path; -#line 257 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = gtk_builder_get_object (_tmp4_, _tmp5_); -#line 257 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, gtk_toolbar_get_type ()) ? ((GtkToolbar*) _tmp6_) : NULL); -#line 257 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp1_); -#line 257 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp7_; -#line 3820 "Page.c" - } -#line 256 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = _g_object_ref0 (_tmp1_); -#line 256 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->toolbar); -#line 256 "/home/jens/Source/shotwell/src/Page.vala" - self->toolbar = _tmp8_; -#line 259 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = self->toolbar; -#line 259 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = gtk_widget_get_style_context (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget)); -#line 259 "/home/jens/Source/shotwell/src/Page.vala" - gtk_style_context_add_class (_tmp10_, "bottom-toolbar"); -#line 260 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = self->toolbar; -#line 260 "/home/jens/Source/shotwell/src/Page.vala" - gtk_toolbar_set_icon_size (_tmp11_, GTK_ICON_SIZE_SMALL_TOOLBAR); -#line 255 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp1_); -#line 3840 "Page.c" - } -#line 262 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = self->toolbar; -#line 262 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = _g_object_ref0 (_tmp12_); -#line 262 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp13_; -#line 262 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 3850 "Page.c" -} - - -GtkToolbar* -page_get_toolbar (Page* self) -{ -#line 254 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), NULL); -#line 254 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->get_toolbar (self); -#line 3861 "Page.c" -} - - -static GtkMenu* -page_real_get_page_context_menu (Page* self) -{ - GtkMenu* result = NULL; -#line 266 "/home/jens/Source/shotwell/src/Page.vala" - result = NULL; -#line 266 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 3873 "Page.c" -} - - -GtkMenu* -page_get_page_context_menu (Page* self) -{ -#line 265 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), NULL); -#line 265 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->get_page_context_menu (self); -#line 3884 "Page.c" -} - - -static void -page_real_switching_from (Page* self) -{ - GActionMap* map = NULL; - GtkWindow* _tmp0_; - GActionMap* _tmp1_; - GActionMap* _tmp2_; - const gchar* _tmp4_; -#line 270 "/home/jens/Source/shotwell/src/Page.vala" - self->in_view = FALSE; -#line 272 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_container (self); -#line 272 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_action_map_get_type ()) ? ((GActionMap*) _tmp0_) : NULL; -#line 272 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ == NULL) { -#line 272 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp0_); -#line 3906 "Page.c" - } -#line 272 "/home/jens/Source/shotwell/src/Page.vala" - map = _tmp1_; -#line 273 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = map; -#line 273 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp2_ != NULL) { -#line 3914 "Page.c" - GActionMap* _tmp3_; -#line 274 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = map; -#line 274 "/home/jens/Source/shotwell/src/Page.vala" - page_remove_actions (self, _tmp3_); -#line 3920 "Page.c" - } -#line 276 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = self->priv->toolbar_path; -#line 276 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp4_ != NULL) { -#line 277 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->toolbar); -#line 277 "/home/jens/Source/shotwell/src/Page.vala" - self->toolbar = NULL; -#line 3930 "Page.c" - } -#line 269 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (map); -#line 3934 "Page.c" -} - - -void -page_switching_from (Page* self) -{ -#line 269 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 269 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->switching_from (self); -#line 3945 "Page.c" -} - - -static void -page_real_switched_to (Page* self) -{ - GActionMap* map = NULL; - GtkWindow* _tmp0_; - GActionMap* _tmp1_; - GActionMap* _tmp2_; - gint selected_count = 0; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - gint _tmp6_; - gint count = 0; - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; - gint _tmp9_; -#line 281 "/home/jens/Source/shotwell/src/Page.vala" - self->in_view = TRUE; -#line 282 "/home/jens/Source/shotwell/src/Page.vala" - page_add_ui (self); -#line 283 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_container (self); -#line 283 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_action_map_get_type ()) ? ((GActionMap*) _tmp0_) : NULL; -#line 283 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ == NULL) { -#line 283 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp0_); -#line 3976 "Page.c" - } -#line 283 "/home/jens/Source/shotwell/src/Page.vala" - map = _tmp1_; -#line 284 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = map; -#line 284 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp2_ != NULL) { -#line 3984 "Page.c" - GActionMap* _tmp3_; -#line 285 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = map; -#line 285 "/home/jens/Source/shotwell/src/Page.vala" - page_add_actions (self, _tmp3_); -#line 3990 "Page.c" - } -#line 287 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = page_get_view (self); -#line 287 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _tmp4_; -#line 287 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = view_collection_get_selected_count (_tmp5_); -#line 287 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp5_); -#line 287 "/home/jens/Source/shotwell/src/Page.vala" - selected_count = _tmp6_; -#line 288 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = page_get_view (self); -#line 288 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = _tmp7_; -#line 288 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection)); -#line 288 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp8_); -#line 288 "/home/jens/Source/shotwell/src/Page.vala" - count = _tmp9_; -#line 289 "/home/jens/Source/shotwell/src/Page.vala" - page_init_actions (self, selected_count, count); -#line 290 "/home/jens/Source/shotwell/src/Page.vala" - page_update_actions (self, selected_count, count); -#line 291 "/home/jens/Source/shotwell/src/Page.vala" - page_update_modifiers (self); -#line 280 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (map); -#line 4020 "Page.c" -} - - -void -page_switched_to (Page* self) -{ -#line 280 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 280 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->switched_to (self); -#line 4031 "Page.c" -} - - -static void -page_real_ready (Page* self) -{ -} - - -void -page_ready (Page* self) -{ -#line 294 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 294 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->ready (self); -#line 4048 "Page.c" -} - - -gboolean -page_is_in_view (Page* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 297 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 298 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->in_view; -#line 298 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp0_; -#line 298 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 4065 "Page.c" -} - - -static void -page_real_switching_to_fullscreen (Page* self, - FullscreenWindow* fsw) -{ -#line 301 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_FULLSCREEN_WINDOW (fsw)); -#line 302 "/home/jens/Source/shotwell/src/Page.vala" - page_add_actions (self, G_TYPE_CHECK_INSTANCE_CAST (fsw, g_action_map_get_type (), GActionMap)); -#line 4077 "Page.c" -} - - -void -page_switching_to_fullscreen (Page* self, - FullscreenWindow* fsw) -{ -#line 301 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 301 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->switching_to_fullscreen (self, fsw); -#line 4089 "Page.c" -} - - -static void -page_real_returning_from_fullscreen (Page* self, - FullscreenWindow* fsw) -{ -#line 305 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_FULLSCREEN_WINDOW (fsw)); -#line 306 "/home/jens/Source/shotwell/src/Page.vala" - page_remove_actions (self, G_TYPE_CHECK_INSTANCE_CAST (fsw, g_action_map_get_type (), GActionMap)); -#line 307 "/home/jens/Source/shotwell/src/Page.vala" - page_switched_to (self); -#line 4103 "Page.c" -} - - -void -page_returning_from_fullscreen (Page* self, - FullscreenWindow* fsw) -{ -#line 305 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 305 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->returning_from_fullscreen (self, fsw); -#line 4115 "Page.c" -} - - -GAction* -page_get_action (Page* self, - const gchar* name) -{ - GAction* result = NULL; - GActionMap* map = NULL; - GtkWindow* _tmp0_; - GActionMap* _tmp5_; -#line 310 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), NULL); -#line 310 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 311 "/home/jens/Source/shotwell/src/Page.vala" - map = NULL; -#line 312 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->container; -#line 312 "/home/jens/Source/shotwell/src/Page.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_FULLSCREEN_WINDOW)) { -#line 4137 "Page.c" - GtkWindow* _tmp1_; - GActionMap* _tmp2_; -#line 313 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->container; -#line 313 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, g_action_map_get_type ()) ? ((GActionMap*) _tmp1_) : NULL); -#line 313 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (map); -#line 313 "/home/jens/Source/shotwell/src/Page.vala" - map = _tmp2_; -#line 4148 "Page.c" - } else { - AppWindow* _tmp3_; - GActionMap* _tmp4_; -#line 315 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = app_window_get_instance (); -#line 315 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, g_action_map_get_type ()) ? ((GActionMap*) _tmp3_) : NULL; -#line 315 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp4_ == NULL) { -#line 315 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp3_); -#line 4160 "Page.c" - } -#line 315 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (map); -#line 315 "/home/jens/Source/shotwell/src/Page.vala" - map = _tmp4_; -#line 4166 "Page.c" - } -#line 318 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = map; -#line 318 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp5_ != NULL) { -#line 4172 "Page.c" - GActionMap* _tmp6_; - GAction* _tmp7_; - GAction* _tmp8_; -#line 319 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = map; -#line 319 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = g_action_map_lookup_action (_tmp6_, name); -#line 319 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = _g_object_ref0 (_tmp7_); -#line 319 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp8_; -#line 319 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (map); -#line 319 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 4188 "Page.c" - } -#line 322 "/home/jens/Source/shotwell/src/Page.vala" - result = NULL; -#line 322 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (map); -#line 322 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 4196 "Page.c" -} - - -void -page_set_action_sensitive (Page* self, - const gchar* name, - gboolean sensitive) -{ - GSimpleAction* action = NULL; - GAction* _tmp0_; - GSimpleAction* _tmp1_; - GSimpleAction* _tmp2_; -#line 325 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 325 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (name != NULL); -#line 326 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_action (self, name); -#line 326 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL; -#line 326 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ == NULL) { -#line 326 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp0_); -#line 4221 "Page.c" - } -#line 326 "/home/jens/Source/shotwell/src/Page.vala" - action = _tmp1_; -#line 327 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = action; -#line 327 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp2_ != NULL) { -#line 4229 "Page.c" - GSimpleAction* _tmp3_; -#line 328 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = action; -#line 328 "/home/jens/Source/shotwell/src/Page.vala" - g_simple_action_set_enabled (_tmp3_, sensitive); -#line 4235 "Page.c" - } -#line 325 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (action); -#line 4239 "Page.c" -} - - -void -page_set_action_details (Page* self, - const gchar* name, - const gchar* label, - const gchar* tooltip, - gboolean sensitive) -{ - GSimpleAction* action = NULL; - GAction* _tmp0_; - GSimpleAction* _tmp1_; - GSimpleAction* _tmp2_; - GSimpleAction* _tmp3_; -#line 331 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 331 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (name != NULL); -#line 332 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_action (self, name); -#line 332 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL; -#line 332 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ == NULL) { -#line 332 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp0_); -#line 4267 "Page.c" - } -#line 332 "/home/jens/Source/shotwell/src/Page.vala" - action = _tmp1_; -#line 334 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = action; -#line 334 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp2_ == NULL) { -#line 335 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (action); -#line 335 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 4279 "Page.c" - } -#line 337 "/home/jens/Source/shotwell/src/Page.vala" - if (label != NULL) { -#line 338 "/home/jens/Source/shotwell/src/Page.vala" - page_update_menu_item_label (self, name, label); -#line 4285 "Page.c" - } -#line 340 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = action; -#line 340 "/home/jens/Source/shotwell/src/Page.vala" - g_simple_action_set_enabled (_tmp3_, sensitive); -#line 331 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (action); -#line 4293 "Page.c" -} - - -void -page_activate_action (Page* self, - const gchar* name) -{ - GAction* action = NULL; - GAction* _tmp0_; - GAction* _tmp1_; -#line 343 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 343 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (name != NULL); -#line 344 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_action (self, name); -#line 344 "/home/jens/Source/shotwell/src/Page.vala" - action = _tmp0_; -#line 346 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = action; -#line 346 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ != NULL) { -#line 4316 "Page.c" - GAction* _tmp2_; -#line 347 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = action; -#line 347 "/home/jens/Source/shotwell/src/Page.vala" - g_action_activate (_tmp2_, NULL); -#line 4322 "Page.c" - } -#line 343 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (action); -#line 4326 "Page.c" -} - - -GAction* -page_get_common_action (Page* self, - const gchar* name, - gboolean log_warning) -{ - GAction* result = NULL; - GAction* action = NULL; - GAction* _tmp0_; - GAction* _tmp1_; -#line 350 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), NULL); -#line 350 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 351 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_action (self, name); -#line 351 "/home/jens/Source/shotwell/src/Page.vala" - action = _tmp0_; -#line 353 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = action; -#line 353 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ != NULL) { -#line 354 "/home/jens/Source/shotwell/src/Page.vala" - result = action; -#line 354 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 4355 "Page.c" - } -#line 356 "/home/jens/Source/shotwell/src/Page.vala" - if (log_warning) { -#line 4359 "Page.c" - gchar* _tmp2_; - gchar* _tmp3_; -#line 357 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = page_get_page_name (self); -#line 357 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = _tmp2_; -#line 357 "/home/jens/Source/shotwell/src/Page.vala" - g_warning ("Page.vala:357: Page %s: Unable to locate common action %s", _tmp3_, name); -#line 357 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp3_); -#line 4370 "Page.c" - } -#line 359 "/home/jens/Source/shotwell/src/Page.vala" - result = NULL; -#line 359 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (action); -#line 359 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 4378 "Page.c" -} - - -void -page_set_common_action_sensitive (Page* self, - const gchar* name, - gboolean sensitive) -{ - GSimpleAction* action = NULL; - GAction* _tmp0_; - GSimpleAction* _tmp1_; - GSimpleAction* _tmp2_; -#line 362 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 362 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (name != NULL); -#line 363 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_common_action (self, name, TRUE); -#line 363 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL; -#line 363 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ == NULL) { -#line 363 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp0_); -#line 4403 "Page.c" - } -#line 363 "/home/jens/Source/shotwell/src/Page.vala" - action = _tmp1_; -#line 364 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = action; -#line 364 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp2_ != NULL) { -#line 4411 "Page.c" - GSimpleAction* _tmp3_; -#line 365 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = action; -#line 365 "/home/jens/Source/shotwell/src/Page.vala" - g_simple_action_set_enabled (_tmp3_, sensitive); -#line 4417 "Page.c" - } -#line 362 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (action); -#line 4421 "Page.c" -} - - -void -page_set_common_action_label (Page* self, - const gchar* name, - const gchar* label) -{ -#line 368 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 368 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (name != NULL); -#line 368 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (label != NULL); -#line 369 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:369: Trying to set common action label for %s", name); -#line 4438 "Page.c" -} - - -void -page_set_common_action_important (Page* self, - const gchar* name, - gboolean important) -{ -#line 372 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 372 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (name != NULL); -#line 373 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:373: Setting action to important: %s", name); -#line 4453 "Page.c" -} - - -void -page_activate_common_action (Page* self, - const gchar* name) -{ - GSimpleAction* action = NULL; - GAction* _tmp0_; - GSimpleAction* _tmp1_; - GSimpleAction* _tmp2_; -#line 376 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 376 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (name != NULL); -#line 377 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_common_action (self, name, TRUE); -#line 377 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL; -#line 377 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ == NULL) { -#line 377 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp0_); -#line 4477 "Page.c" - } -#line 377 "/home/jens/Source/shotwell/src/Page.vala" - action = _tmp1_; -#line 378 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = action; -#line 378 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp2_ != NULL) { -#line 4485 "Page.c" - GSimpleAction* _tmp3_; -#line 379 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = action; -#line 379 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_emit_by_name (_tmp3_, "activate", NULL); -#line 4491 "Page.c" - } -#line 376 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (action); -#line 4495 "Page.c" -} - - -gboolean -page_get_ctrl_pressed (Page* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 382 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 383 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->ctrl_pressed; -#line 383 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp0_; -#line 383 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 4512 "Page.c" -} - - -gboolean -page_get_alt_pressed (Page* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 386 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 387 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->alt_pressed; -#line 387 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp0_; -#line 387 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 4529 "Page.c" -} - - -gboolean -page_get_shift_pressed (Page* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 390 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 391 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->shift_pressed; -#line 391 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp0_; -#line 391 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 4546 "Page.c" -} - - -gboolean -page_get_super_pressed (Page* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 394 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 395 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->super_pressed; -#line 395 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp0_; -#line 395 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 4563 "Page.c" -} - - -static GVariant* -_variant_new20 (gboolean value) -{ -#line 401 "/home/jens/Source/shotwell/src/Page.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 4572 "Page.c" -} - - -void -page_set_action_active (Page* self, - const gchar* name, - gboolean active) -{ - GSimpleAction* action = NULL; - GAction* _tmp0_; - GSimpleAction* _tmp1_; - GSimpleAction* _tmp2_; -#line 398 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 398 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (name != NULL); -#line 399 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_action (self, name); -#line 399 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL; -#line 399 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ == NULL) { -#line 399 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp0_); -#line 4597 "Page.c" - } -#line 399 "/home/jens/Source/shotwell/src/Page.vala" - action = _tmp1_; -#line 400 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = action; -#line 400 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp2_ != NULL) { -#line 4605 "Page.c" - GSimpleAction* _tmp3_; - GVariant* _tmp4_; -#line 401 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = action; -#line 401 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = _variant_new20 (active); -#line 401 "/home/jens/Source/shotwell/src/Page.vala" - g_simple_action_set_state (_tmp3_, _tmp4_); -#line 401 "/home/jens/Source/shotwell/src/Page.vala" - _g_variant_unref0 (_tmp4_); -#line 4616 "Page.c" - } -#line 398 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (action); -#line 4620 "Page.c" -} - - -static gboolean -page_get_modifiers (Page* self, - gboolean* ctrl, - gboolean* alt, - gboolean* shift, - gboolean* super) -{ - gboolean _vala_ctrl = FALSE; - gboolean _vala_alt = FALSE; - gboolean _vala_shift = FALSE; - gboolean _vala_super = FALSE; - gboolean result = FALSE; - AppWindow* _tmp0_; - AppWindow* _tmp1_; - GdkWindow* _tmp2_; - gboolean _tmp3_; - gint x = 0; - gint y = 0; - GdkModifierType mask = 0; - AppWindow* _tmp4_; - AppWindow* _tmp5_; - GdkWindow* _tmp6_; - GdkDisplay* _tmp7_; - GdkDeviceManager* _tmp8_; - GdkDevice* _tmp9_; - gint _tmp10_ = 0; - gint _tmp11_ = 0; - GdkModifierType _tmp12_ = 0; - GdkModifierType _tmp13_; - GdkModifierType _tmp14_; - GdkModifierType _tmp15_; - GdkModifierType _tmp16_; -#line 405 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 406 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = app_window_get_instance (); -#line 406 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 406 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 406 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = _tmp2_ == NULL; -#line 406 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp1_); -#line 406 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_) { -#line 407 "/home/jens/Source/shotwell/src/Page.vala" - _vala_ctrl = FALSE; -#line 408 "/home/jens/Source/shotwell/src/Page.vala" - _vala_alt = FALSE; -#line 409 "/home/jens/Source/shotwell/src/Page.vala" - _vala_shift = FALSE; -#line 410 "/home/jens/Source/shotwell/src/Page.vala" - _vala_super = FALSE; -#line 412 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 412 "/home/jens/Source/shotwell/src/Page.vala" - if (ctrl) { -#line 412 "/home/jens/Source/shotwell/src/Page.vala" - *ctrl = _vala_ctrl; -#line 4684 "Page.c" - } -#line 412 "/home/jens/Source/shotwell/src/Page.vala" - if (alt) { -#line 412 "/home/jens/Source/shotwell/src/Page.vala" - *alt = _vala_alt; -#line 4690 "Page.c" - } -#line 412 "/home/jens/Source/shotwell/src/Page.vala" - if (shift) { -#line 412 "/home/jens/Source/shotwell/src/Page.vala" - *shift = _vala_shift; -#line 4696 "Page.c" - } -#line 412 "/home/jens/Source/shotwell/src/Page.vala" - if (super) { -#line 412 "/home/jens/Source/shotwell/src/Page.vala" - *super = _vala_super; -#line 4702 "Page.c" - } -#line 412 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 4706 "Page.c" - } -#line 417 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = app_window_get_instance (); -#line 417 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _tmp4_; -#line 417 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget)); -#line 417 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = gdk_display_get_default (); -#line 417 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = gdk_display_get_device_manager (_tmp7_); -#line 417 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = gdk_device_manager_get_client_pointer (_tmp8_); -#line 417 "/home/jens/Source/shotwell/src/Page.vala" - gdk_window_get_device_position (_tmp6_, _tmp9_, &_tmp10_, &_tmp11_, &_tmp12_); -#line 417 "/home/jens/Source/shotwell/src/Page.vala" - x = _tmp10_; -#line 417 "/home/jens/Source/shotwell/src/Page.vala" - y = _tmp11_; -#line 417 "/home/jens/Source/shotwell/src/Page.vala" - mask = _tmp12_; -#line 417 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp5_); -#line 420 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = mask; -#line 420 "/home/jens/Source/shotwell/src/Page.vala" - _vala_ctrl = (_tmp13_ & GDK_CONTROL_MASK) != 0; -#line 421 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = mask; -#line 421 "/home/jens/Source/shotwell/src/Page.vala" - _vala_alt = (_tmp14_ & GDK_MOD1_MASK) != 0; -#line 422 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = mask; -#line 422 "/home/jens/Source/shotwell/src/Page.vala" - _vala_shift = (_tmp15_ & GDK_SHIFT_MASK) != 0; -#line 423 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = mask; -#line 423 "/home/jens/Source/shotwell/src/Page.vala" - _vala_super = (_tmp16_ & GDK_MOD4_MASK) != 0; -#line 425 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 425 "/home/jens/Source/shotwell/src/Page.vala" - if (ctrl) { -#line 425 "/home/jens/Source/shotwell/src/Page.vala" - *ctrl = _vala_ctrl; -#line 4752 "Page.c" - } -#line 425 "/home/jens/Source/shotwell/src/Page.vala" - if (alt) { -#line 425 "/home/jens/Source/shotwell/src/Page.vala" - *alt = _vala_alt; -#line 4758 "Page.c" - } -#line 425 "/home/jens/Source/shotwell/src/Page.vala" - if (shift) { -#line 425 "/home/jens/Source/shotwell/src/Page.vala" - *shift = _vala_shift; -#line 4764 "Page.c" - } -#line 425 "/home/jens/Source/shotwell/src/Page.vala" - if (super) { -#line 425 "/home/jens/Source/shotwell/src/Page.vala" - *super = _vala_super; -#line 4770 "Page.c" - } -#line 425 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 4774 "Page.c" -} - - -static void -page_update_modifiers (Page* self) -{ - gboolean ctrl_currently_pressed = FALSE; - gboolean alt_currently_pressed = FALSE; - gboolean shift_currently_pressed = FALSE; - gboolean super_currently_pressed = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - gboolean _tmp3_ = FALSE; - gboolean _tmp4_; - gboolean _tmp5_ = FALSE; - gboolean _tmp6_; - gboolean _tmp11_ = FALSE; - gboolean _tmp12_; - gboolean _tmp17_ = FALSE; - gboolean _tmp18_; - gboolean _tmp23_ = FALSE; - gboolean _tmp24_; - gboolean _tmp29_; - gboolean _tmp30_; - gboolean _tmp31_; - gboolean _tmp32_; -#line 428 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 431 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = page_get_modifiers (self, &_tmp0_, &_tmp1_, &_tmp2_, &_tmp3_); -#line 431 "/home/jens/Source/shotwell/src/Page.vala" - ctrl_currently_pressed = _tmp0_; -#line 431 "/home/jens/Source/shotwell/src/Page.vala" - alt_currently_pressed = _tmp1_; -#line 431 "/home/jens/Source/shotwell/src/Page.vala" - shift_currently_pressed = _tmp2_; -#line 431 "/home/jens/Source/shotwell/src/Page.vala" - super_currently_pressed = _tmp3_; -#line 431 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp4_) { -#line 433 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 4818 "Page.c" - } -#line 436 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->priv->ctrl_pressed; -#line 436 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp6_) { -#line 4824 "Page.c" - gboolean _tmp7_; -#line 436 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = ctrl_currently_pressed; -#line 436 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = !_tmp7_; -#line 4830 "Page.c" - } else { -#line 436 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = FALSE; -#line 4834 "Page.c" - } -#line 436 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp5_) { -#line 437 "/home/jens/Source/shotwell/src/Page.vala" - page_on_ctrl_released (self, NULL); -#line 4840 "Page.c" - } else { - gboolean _tmp8_ = FALSE; - gboolean _tmp9_; -#line 438 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = self->priv->ctrl_pressed; -#line 438 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp9_) { -#line 4848 "Page.c" - gboolean _tmp10_; -#line 438 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = ctrl_currently_pressed; -#line 438 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = _tmp10_; -#line 4854 "Page.c" - } else { -#line 438 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = FALSE; -#line 4858 "Page.c" - } -#line 438 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp8_) { -#line 439 "/home/jens/Source/shotwell/src/Page.vala" - page_on_ctrl_pressed (self, NULL); -#line 4864 "Page.c" - } - } -#line 441 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = self->priv->alt_pressed; -#line 441 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp12_) { -#line 4871 "Page.c" - gboolean _tmp13_; -#line 441 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = alt_currently_pressed; -#line 441 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = !_tmp13_; -#line 4877 "Page.c" - } else { -#line 441 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = FALSE; -#line 4881 "Page.c" - } -#line 441 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp11_) { -#line 442 "/home/jens/Source/shotwell/src/Page.vala" - page_on_alt_released (self, NULL); -#line 4887 "Page.c" - } else { - gboolean _tmp14_ = FALSE; - gboolean _tmp15_; -#line 443 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = self->priv->alt_pressed; -#line 443 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp15_) { -#line 4895 "Page.c" - gboolean _tmp16_; -#line 443 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = alt_currently_pressed; -#line 443 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = _tmp16_; -#line 4901 "Page.c" - } else { -#line 443 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = FALSE; -#line 4905 "Page.c" - } -#line 443 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp14_) { -#line 444 "/home/jens/Source/shotwell/src/Page.vala" - page_on_alt_pressed (self, NULL); -#line 4911 "Page.c" - } - } -#line 446 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = self->priv->shift_pressed; -#line 446 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp18_) { -#line 4918 "Page.c" - gboolean _tmp19_; -#line 446 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = shift_currently_pressed; -#line 446 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = !_tmp19_; -#line 4924 "Page.c" - } else { -#line 446 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = FALSE; -#line 4928 "Page.c" - } -#line 446 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp17_) { -#line 447 "/home/jens/Source/shotwell/src/Page.vala" - page_on_shift_released (self, NULL); -#line 4934 "Page.c" - } else { - gboolean _tmp20_ = FALSE; - gboolean _tmp21_; -#line 448 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = self->priv->shift_pressed; -#line 448 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp21_) { -#line 4942 "Page.c" - gboolean _tmp22_; -#line 448 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = shift_currently_pressed; -#line 448 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = _tmp22_; -#line 4948 "Page.c" - } else { -#line 448 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = FALSE; -#line 4952 "Page.c" - } -#line 448 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp20_) { -#line 449 "/home/jens/Source/shotwell/src/Page.vala" - page_on_shift_pressed (self, NULL); -#line 4958 "Page.c" - } - } -#line 451 "/home/jens/Source/shotwell/src/Page.vala" - _tmp24_ = self->priv->super_pressed; -#line 451 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp24_) { -#line 4965 "Page.c" - gboolean _tmp25_; -#line 451 "/home/jens/Source/shotwell/src/Page.vala" - _tmp25_ = super_currently_pressed; -#line 451 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = !_tmp25_; -#line 4971 "Page.c" - } else { -#line 451 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = FALSE; -#line 4975 "Page.c" - } -#line 451 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp23_) { -#line 452 "/home/jens/Source/shotwell/src/Page.vala" - page_on_super_released (self, NULL); -#line 4981 "Page.c" - } else { - gboolean _tmp26_ = FALSE; - gboolean _tmp27_; -#line 453 "/home/jens/Source/shotwell/src/Page.vala" - _tmp27_ = self->priv->super_pressed; -#line 453 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp27_) { -#line 4989 "Page.c" - gboolean _tmp28_; -#line 453 "/home/jens/Source/shotwell/src/Page.vala" - _tmp28_ = super_currently_pressed; -#line 453 "/home/jens/Source/shotwell/src/Page.vala" - _tmp26_ = _tmp28_; -#line 4995 "Page.c" - } else { -#line 453 "/home/jens/Source/shotwell/src/Page.vala" - _tmp26_ = FALSE; -#line 4999 "Page.c" - } -#line 453 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp26_) { -#line 454 "/home/jens/Source/shotwell/src/Page.vala" - page_on_super_pressed (self, NULL); -#line 5005 "Page.c" - } - } -#line 456 "/home/jens/Source/shotwell/src/Page.vala" - _tmp29_ = ctrl_currently_pressed; -#line 456 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->ctrl_pressed = _tmp29_; -#line 457 "/home/jens/Source/shotwell/src/Page.vala" - _tmp30_ = alt_currently_pressed; -#line 457 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->alt_pressed = _tmp30_; -#line 458 "/home/jens/Source/shotwell/src/Page.vala" - _tmp31_ = shift_currently_pressed; -#line 458 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->shift_pressed = _tmp31_; -#line 459 "/home/jens/Source/shotwell/src/Page.vala" - _tmp32_ = super_currently_pressed; -#line 459 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->super_pressed = _tmp32_; -#line 5024 "Page.c" -} - - -PageWindow* -page_get_page_window (Page* self) -{ - PageWindow* result = NULL; - GtkWidget* p = NULL; - GtkContainer* _tmp0_; - GtkContainer* _tmp1_; - GtkWidget* _tmp2_; -#line 462 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), NULL); -#line 463 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = gtk_widget_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 463 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 463 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 463 "/home/jens/Source/shotwell/src/Page.vala" - p = _tmp2_; -#line 464 "/home/jens/Source/shotwell/src/Page.vala" - while (TRUE) { -#line 5048 "Page.c" - GtkWidget* _tmp3_; - GtkWidget* _tmp4_; - GtkWidget* _tmp7_; - GtkContainer* _tmp8_; - GtkContainer* _tmp9_; - GtkWidget* _tmp10_; -#line 464 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = p; -#line 464 "/home/jens/Source/shotwell/src/Page.vala" - if (!(_tmp3_ != NULL)) { -#line 464 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 5061 "Page.c" - } -#line 465 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = p; -#line 465 "/home/jens/Source/shotwell/src/Page.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_PAGE_WINDOW)) { -#line 5067 "Page.c" - GtkWidget* _tmp5_; - PageWindow* _tmp6_; -#line 466 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = p; -#line 466 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PAGE_WINDOW, PageWindow)); -#line 466 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp6_; -#line 466 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (p); -#line 466 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 5080 "Page.c" - } -#line 468 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = p; -#line 468 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = gtk_widget_get_parent (_tmp7_); -#line 468 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = _tmp8_; -#line 468 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget)); -#line 468 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (p); -#line 468 "/home/jens/Source/shotwell/src/Page.vala" - p = _tmp10_; -#line 5094 "Page.c" - } -#line 471 "/home/jens/Source/shotwell/src/Page.vala" - result = NULL; -#line 471 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (p); -#line 471 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 5102 "Page.c" -} - - -CommandManager* -page_get_command_manager (Page* self) -{ - CommandManager* result = NULL; - CommandManager* _tmp0_; -#line 474 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), NULL); -#line 475 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = app_window_get_command_manager (); -#line 475 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp0_; -#line 475 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 5119 "Page.c" -} - - -static void -page_real_add_actions (Page* self, - GActionMap* map) -{ -#line 478 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 5129 "Page.c" -} - - -void -page_add_actions (Page* self, - GActionMap* map) -{ -#line 478 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 478 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->add_actions (self, map); -#line 5141 "Page.c" -} - - -static void -page_real_remove_actions (Page* self, - GActionMap* map) -{ -#line 479 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 5151 "Page.c" -} - - -void -page_remove_actions (Page* self, - GActionMap* map) -{ -#line 479 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 479 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->remove_actions (self, map); -#line 5163 "Page.c" -} - - -static gboolean -_variant_get21 (GVariant* value) -{ -#line 482 "/home/jens/Source/shotwell/src/Page.vala" - return g_variant_get_boolean (value); -#line 5172 "Page.c" -} - - -static GVariant* -_variant_new22 (gboolean value) -{ -#line 482 "/home/jens/Source/shotwell/src/Page.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 5181 "Page.c" -} - - -void -page_on_action_toggle (Page* self, - GAction* action, - GVariant* value) -{ - GVariant* new_state = NULL; - GVariant* _tmp0_; - GVariant* _tmp1_; - gboolean _tmp2_; - GVariant* _tmp3_; - GVariant* _tmp4_; -#line 481 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 481 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (G_IS_ACTION (action)); -#line 482 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = g_action_get_state (action); -#line 482 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 482 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _variant_get21 (_tmp1_); -#line 482 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = _variant_new22 (!_tmp2_); -#line 482 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = _tmp3_; -#line 482 "/home/jens/Source/shotwell/src/Page.vala" - _g_variant_unref0 (_tmp1_); -#line 482 "/home/jens/Source/shotwell/src/Page.vala" - new_state = _tmp4_; -#line 483 "/home/jens/Source/shotwell/src/Page.vala" - g_action_change_state (action, new_state); -#line 481 "/home/jens/Source/shotwell/src/Page.vala" - _g_variant_unref0 (new_state); -#line 5218 "Page.c" -} - - -void -page_on_action_radio (Page* self, - GAction* action, - GVariant* value) -{ -#line 486 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 486 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (G_IS_ACTION (action)); -#line 487 "/home/jens/Source/shotwell/src/Page.vala" - g_action_change_state (action, value); -#line 5233 "Page.c" -} - - -static void -page_add_ui (Page* self) -{ - GeeList* ui_filenames = NULL; - GeeArrayList* _tmp0_; - GeeList* _tmp1_; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; -#line 490 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 492 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 492 "/home/jens/Source/shotwell/src/Page.vala" - ui_filenames = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList); -#line 493 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = ui_filenames; -#line 493 "/home/jens/Source/shotwell/src/Page.vala" - page_init_collect_ui_filenames (self, _tmp1_); -#line 494 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = ui_filenames; -#line 494 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 494 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = _tmp3_; -#line 494 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp4_ == 0) { -#line 5264 "Page.c" - gchar* _tmp5_; - gchar* _tmp6_; -#line 495 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = page_get_page_name (self); -#line 495 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = _tmp5_; -#line 495 "/home/jens/Source/shotwell/src/Page.vala" - g_message ("Page.vala:495: No UI file specified for %s", _tmp6_); -#line 495 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp6_); -#line 5275 "Page.c" - } - { - GeeList* _ui_filename_list = NULL; - GeeList* _tmp7_; - GeeList* _tmp8_; - gint _ui_filename_size = 0; - GeeList* _tmp9_; - gint _tmp10_; - gint _tmp11_; - gint _ui_filename_index = 0; -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = ui_filenames; -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = _g_object_ref0 (_tmp7_); -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - _ui_filename_list = _tmp8_; -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = _ui_filename_list; -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = _tmp10_; -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - _ui_filename_size = _tmp11_; -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - _ui_filename_index = -1; -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - while (TRUE) { -#line 5304 "Page.c" - gint _tmp12_; - gint _tmp13_; - gint _tmp14_; - gchar* ui_filename = NULL; - GeeList* _tmp15_; - gint _tmp16_; - gpointer _tmp17_; - const gchar* _tmp18_; -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = _ui_filename_index; -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - _ui_filename_index = _tmp12_ + 1; -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = _ui_filename_index; -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = _ui_filename_size; -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - if (!(_tmp13_ < _tmp14_)) { -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 5325 "Page.c" - } -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = _ui_filename_list; -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = _ui_filename_index; -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = gee_list_get (_tmp15_, _tmp16_); -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - ui_filename = (gchar*) _tmp17_; -#line 498 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = ui_filename; -#line 498 "/home/jens/Source/shotwell/src/Page.vala" - page_init_load_ui (self, _tmp18_); -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (ui_filename); -#line 5341 "Page.c" - } -#line 497 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_ui_filename_list); -#line 5345 "Page.c" - } -#line 490 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (ui_filenames); -#line 5349 "Page.c" -} - - -void -page_init_toolbar (Page* self, - const gchar* path) -{ - gchar* _tmp0_; -#line 503 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 503 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (path != NULL); -#line 504 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = g_strdup (path); -#line 504 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (self->priv->toolbar_path); -#line 504 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->toolbar_path = _tmp0_; -#line 5368 "Page.c" -} - - -static void -_page_on_update_actions_view_collection_items_state_changed (ViewCollection* _sender, - GeeIterable* changed, - gpointer self) -{ -#line 519 "/home/jens/Source/shotwell/src/Page.vala" - page_on_update_actions ((Page*) self); -#line 5379 "Page.c" -} - - -static void -_page_on_update_actions_view_collection_selection_group_altered (ViewCollection* _sender, - gpointer self) -{ -#line 520 "/home/jens/Source/shotwell/src/Page.vala" - page_on_update_actions ((Page*) self); -#line 5389 "Page.c" -} - - -static void -_page_on_update_actions_view_collection_items_visibility_changed (ViewCollection* _sender, - GeeCollection* changed, - gpointer self) -{ -#line 521 "/home/jens/Source/shotwell/src/Page.vala" - page_on_update_actions ((Page*) self); -#line 5400 "Page.c" -} - - -static void -_page_on_update_actions_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self) -{ -#line 522 "/home/jens/Source/shotwell/src/Page.vala" - page_on_update_actions ((Page*) self); -#line 5412 "Page.c" -} - - -static void -page_attach_view_signals (Page* self) -{ - gboolean _tmp0_; - gint selected_count = 0; - ViewCollection* _tmp1_; - ViewCollection* _tmp2_; - gint _tmp3_; - gint count = 0; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - gint _tmp6_; - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint _tmp10_; - ViewCollection* _tmp11_; - ViewCollection* _tmp12_; - ViewCollection* _tmp13_; - ViewCollection* _tmp14_; - ViewCollection* _tmp15_; - ViewCollection* _tmp16_; - ViewCollection* _tmp17_; - ViewCollection* _tmp18_; -#line 508 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 509 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->are_actions_attached; -#line 509 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_) { -#line 510 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 5448 "Page.c" - } -#line 513 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = page_get_view (self); -#line 513 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_; -#line 513 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = view_collection_get_selected_count (_tmp2_); -#line 513 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp2_); -#line 513 "/home/jens/Source/shotwell/src/Page.vala" - selected_count = _tmp3_; -#line 514 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = page_get_view (self); -#line 514 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _tmp4_; -#line 514 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection)); -#line 514 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp5_); -#line 514 "/home/jens/Source/shotwell/src/Page.vala" - count = _tmp6_; -#line 515 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = selected_count; -#line 515 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = count; -#line 515 "/home/jens/Source/shotwell/src/Page.vala" - page_init_actions (self, _tmp7_, _tmp8_); -#line 516 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = selected_count; -#line 516 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = count; -#line 516 "/home/jens/Source/shotwell/src/Page.vala" - page_update_actions (self, _tmp9_, _tmp10_); -#line 519 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = page_get_view (self); -#line 519 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = _tmp11_; -#line 519 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (_tmp12_, "items-state-changed", (GCallback) _page_on_update_actions_view_collection_items_state_changed, self, 0); -#line 519 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp12_); -#line 520 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = page_get_view (self); -#line 520 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = _tmp13_; -#line 520 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (_tmp14_, "selection-group-altered", (GCallback) _page_on_update_actions_view_collection_selection_group_altered, self, 0); -#line 520 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp14_); -#line 521 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = page_get_view (self); -#line 521 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = _tmp15_; -#line 521 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (_tmp16_, "items-visibility-changed", (GCallback) _page_on_update_actions_view_collection_items_visibility_changed, self, 0); -#line 521 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp16_); -#line 522 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = page_get_view (self); -#line 522 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = _tmp17_; -#line 522 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _page_on_update_actions_data_collection_contents_altered, self, 0); -#line 522 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp18_); -#line 524 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->are_actions_attached = TRUE; -#line 5516 "Page.c" -} - - -static void -page_detach_view_signals (Page* self) -{ - gboolean _tmp0_; - ViewCollection* _tmp1_; - ViewCollection* _tmp2_; - guint _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - guint _tmp6_; - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; - guint _tmp9_; - ViewCollection* _tmp10_; - ViewCollection* _tmp11_; - guint _tmp12_; -#line 528 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 529 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->are_actions_attached; -#line 529 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp0_) { -#line 530 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 5544 "Page.c" - } -#line 532 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = page_get_view (self); -#line 532 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_; -#line 532 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("items-state-changed", TYPE_VIEW_COLLECTION, &_tmp3_, NULL, FALSE); -#line 532 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _page_on_update_actions_view_collection_items_state_changed, self); -#line 532 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp2_); -#line 533 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = page_get_view (self); -#line 533 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _tmp4_; -#line 533 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("selection-group-altered", TYPE_VIEW_COLLECTION, &_tmp6_, NULL, FALSE); -#line 533 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _page_on_update_actions_view_collection_selection_group_altered, self); -#line 533 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp5_); -#line 534 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = page_get_view (self); -#line 534 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = _tmp7_; -#line 534 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("items-visibility-changed", TYPE_VIEW_COLLECTION, &_tmp9_, NULL, FALSE); -#line 534 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _page_on_update_actions_view_collection_items_visibility_changed, self); -#line 534 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp8_); -#line 535 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = page_get_view (self); -#line 535 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = _tmp10_; -#line 535 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp12_, NULL, FALSE); -#line 535 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _page_on_update_actions_data_collection_contents_altered, self); -#line 535 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp11_); -#line 537 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->are_actions_attached = FALSE; -#line 5588 "Page.c" -} - - -static void -_page_on_update_actions_on_idle_one_shot_callback (gpointer self) -{ -#line 542 "/home/jens/Source/shotwell/src/Page.vala" - page_on_update_actions_on_idle ((Page*) self); -#line 5597 "Page.c" -} - - -static void -page_on_update_actions (Page* self) -{ - OneShotScheduler* _tmp0_; - OneShotScheduler* _tmp6_; -#line 540 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 541 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->update_actions_scheduler; -#line 541 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_ == NULL) { -#line 5612 "Page.c" - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - OneShotScheduler* _tmp5_; -#line 542 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = page_get_page_name (self); -#line 542 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_; -#line 542 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = g_strdup_printf ("Update actions scheduler for %s", _tmp2_); -#line 542 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = _tmp3_; -#line 542 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = one_shot_scheduler_new (_tmp4_, _page_on_update_actions_on_idle_one_shot_callback, self); -#line 542 "/home/jens/Source/shotwell/src/Page.vala" - _one_shot_scheduler_unref0 (self->priv->update_actions_scheduler); -#line 542 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->update_actions_scheduler = _tmp5_; -#line 542 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp4_); -#line 542 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp2_); -#line 5636 "Page.c" - } -#line 547 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->priv->update_actions_scheduler; -#line 547 "/home/jens/Source/shotwell/src/Page.vala" - one_shot_scheduler_at_priority_idle (_tmp6_, G_PRIORITY_LOW); -#line 5642 "Page.c" -} - - -static void -page_on_update_actions_on_idle (Page* self) -{ - gboolean _tmp0_; - gboolean _tmp1_; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; -#line 550 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 551 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->is_destroyed; -#line 551 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_) { -#line 552 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 5663 "Page.c" - } -#line 554 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->in_view; -#line 554 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp1_) { -#line 555 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 5671 "Page.c" - } -#line 557 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = page_get_view (self); -#line 557 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = _tmp2_; -#line 557 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = page_get_view (self); -#line 557 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _tmp4_; -#line 557 "/home/jens/Source/shotwell/src/Page.vala" - page_update_actions (self, view_collection_get_selected_count (_tmp3_), data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection))); -#line 557 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp5_); -#line 557 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp3_); -#line 5687 "Page.c" -} - - -static void -page_init_load_ui (Page* self, - const gchar* ui_filename) -{ - gchar* ui_resource = NULL; - gchar* _tmp0_; - GError * _inner_error_ = NULL; -#line 560 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 560 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (ui_filename != NULL); -#line 561 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = resources_get_ui (ui_filename); -#line 561 "/home/jens/Source/shotwell/src/Page.vala" - ui_resource = _tmp0_; -#line 5706 "Page.c" - { - GtkBuilder* _tmp1_; -#line 563 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->builder; -#line 563 "/home/jens/Source/shotwell/src/Page.vala" - gtk_builder_add_from_resource (_tmp1_, ui_resource, &_inner_error_); -#line 563 "/home/jens/Source/shotwell/src/Page.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5715 "Page.c" - goto __catch266_g_error; - } -#line 564 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->menubar_injected = FALSE; -#line 5720 "Page.c" - } - goto __finally266; - __catch266_g_error: - { - GError* err = NULL; - GError* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - Application* _tmp6_; - Application* _tmp7_; -#line 562 "/home/jens/Source/shotwell/src/Page.vala" - err = _inner_error_; -#line 562 "/home/jens/Source/shotwell/src/Page.vala" - _inner_error_ = NULL; -#line 566 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = err; -#line 566 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = _tmp2_->message; -#line 566 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = g_strdup_printf ("Error loading UI resource %s: %s", ui_resource, _tmp3_); -#line 566 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _tmp4_; -#line 566 "/home/jens/Source/shotwell/src/Page.vala" - app_window_error_message (_tmp5_, NULL); -#line 566 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp5_); -#line 568 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = application_get_instance (); -#line 568 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = _tmp6_; -#line 568 "/home/jens/Source/shotwell/src/Page.vala" - application_panic (_tmp7_); -#line 568 "/home/jens/Source/shotwell/src/Page.vala" - _application_unref0 (_tmp7_); -#line 562 "/home/jens/Source/shotwell/src/Page.vala" - _g_error_free0 (err); -#line 5758 "Page.c" - } - __finally266: -#line 562 "/home/jens/Source/shotwell/src/Page.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 562 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (ui_resource); -#line 562 "/home/jens/Source/shotwell/src/Page.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 562 "/home/jens/Source/shotwell/src/Page.vala" - g_clear_error (&_inner_error_); -#line 562 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 5771 "Page.c" - } -#line 560 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (ui_resource); -#line 5775 "Page.c" -} - - -static void -page_real_init_collect_ui_filenames (Page* self, - GeeList* ui_filenames) -{ -#line 575 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 5785 "Page.c" -} - - -void -page_init_collect_ui_filenames (Page* self, - GeeList* ui_filenames) -{ -#line 575 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 575 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->init_collect_ui_filenames (self, ui_filenames); -#line 5797 "Page.c" -} - - -static InjectionGroup** -page_real_init_collect_injection_groups (Page* self, - int* result_length1) -{ - InjectionGroup** result = NULL; - InjectionGroup** _tmp0_; - InjectionGroup** _tmp1_; - gint _tmp1__length1; -#line 581 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = g_new0 (InjectionGroup*, 0 + 1); -#line 581 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 581 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1__length1 = 0; -#line 581 "/home/jens/Source/shotwell/src/Page.vala" - if (result_length1) { -#line 581 "/home/jens/Source/shotwell/src/Page.vala" - *result_length1 = _tmp1__length1; -#line 5819 "Page.c" - } -#line 581 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp1_; -#line 581 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 5825 "Page.c" -} - - -InjectionGroup** -page_init_collect_injection_groups (Page* self, - int* result_length1) -{ -#line 580 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), NULL); -#line 580 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->init_collect_injection_groups (self, result_length1); -#line 5837 "Page.c" -} - - -static void -page_real_init_actions (Page* self, - gint selected_count, - gint count) -{ -} - - -void -page_init_actions (Page* self, - gint selected_count, - gint count) -{ -#line 586 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 586 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->init_actions (self, selected_count, count); -#line 5858 "Page.c" -} - - -static void -page_real_update_actions (Page* self, - gint selected_count, - gint count) -{ -} - - -void -page_update_actions (Page* self, - gint selected_count, - gint count) -{ -#line 592 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 592 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->update_actions (self, selected_count, count); -#line 5879 "Page.c" -} - - -static void -_page_on_drag_begin_gtk_widget_drag_begin (GtkWidget* _sender, - GdkDragContext* context, - gpointer self) -{ -#line 607 "/home/jens/Source/shotwell/src/Page.vala" - page_on_drag_begin ((Page*) self, context); -#line 5890 "Page.c" -} - - -static void -_page_on_drag_data_get_gtk_widget_drag_data_get (GtkWidget* _sender, - GdkDragContext* context, - GtkSelectionData* selection_data, - guint info, - guint time_, - gpointer self) -{ -#line 608 "/home/jens/Source/shotwell/src/Page.vala" - page_on_drag_data_get ((Page*) self, context, selection_data, info, time_); -#line 5904 "Page.c" -} - - -static void -_page_on_drag_data_delete_gtk_widget_drag_data_delete (GtkWidget* _sender, - GdkDragContext* context, - gpointer self) -{ -#line 609 "/home/jens/Source/shotwell/src/Page.vala" - page_on_drag_data_delete ((Page*) self, context); -#line 5915 "Page.c" -} - - -static void -_page_on_drag_end_gtk_widget_drag_end (GtkWidget* _sender, - GdkDragContext* context, - gpointer self) -{ -#line 610 "/home/jens/Source/shotwell/src/Page.vala" - page_on_drag_end ((Page*) self, context); -#line 5926 "Page.c" -} - - -static gboolean -_page_on_drag_failed_gtk_widget_drag_failed (GtkWidget* _sender, - GdkDragContext* context, - GtkDragResult _result_, - gpointer self) -{ - gboolean result; - result = page_on_drag_failed ((Page*) self, context, _result_); -#line 611 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 5940 "Page.c" -} - - -void -page_enable_drag_source (Page* self, - GdkDragAction actions, - GtkTargetEntry* source_target_entries, - int source_target_entries_length1) -{ - gboolean _tmp0_; - GtkWidget* _tmp1_; - GtkWidget* _tmp2_; - GtkWidget* _tmp3_; - GtkWidget* _tmp4_; - GtkWidget* _tmp5_; - GtkWidget* _tmp6_; - GtkWidget* _tmp7_; -#line 597 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 598 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->dnd_enabled; -#line 598 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_) { -#line 599 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 5966 "Page.c" - } -#line 601 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->event_source; -#line 601 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (_tmp1_ != NULL, "event_source != null"); -#line 603 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->priv->event_source; -#line 603 "/home/jens/Source/shotwell/src/Page.vala" - gtk_drag_source_set (_tmp2_, GDK_BUTTON1_MASK, source_target_entries, source_target_entries_length1, actions); -#line 607 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = self->priv->event_source; -#line 607 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (_tmp3_, "drag-begin", (GCallback) _page_on_drag_begin_gtk_widget_drag_begin, self, 0); -#line 608 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = self->priv->event_source; -#line 608 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (_tmp4_, "drag-data-get", (GCallback) _page_on_drag_data_get_gtk_widget_drag_data_get, self, 0); -#line 609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->priv->event_source; -#line 609 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (_tmp5_, "drag-data-delete", (GCallback) _page_on_drag_data_delete_gtk_widget_drag_data_delete, self, 0); -#line 610 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->priv->event_source; -#line 610 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (_tmp6_, "drag-end", (GCallback) _page_on_drag_end_gtk_widget_drag_end, self, 0); -#line 611 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = self->priv->event_source; -#line 611 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (_tmp7_, "drag-failed", (GCallback) _page_on_drag_failed_gtk_widget_drag_failed, self, 0); -#line 613 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->dnd_enabled = TRUE; -#line 5998 "Page.c" -} - - -void -page_disable_drag_source (Page* self) -{ - gboolean _tmp0_; - GtkWidget* _tmp1_; - GtkWidget* _tmp2_; - guint _tmp3_; - GtkWidget* _tmp4_; - guint _tmp5_; - GtkWidget* _tmp6_; - guint _tmp7_; - GtkWidget* _tmp8_; - guint _tmp9_; - GtkWidget* _tmp10_; - guint _tmp11_; - GtkWidget* _tmp12_; -#line 616 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 617 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->dnd_enabled; -#line 617 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp0_) { -#line 618 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 6026 "Page.c" - } -#line 620 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->event_source; -#line 620 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (_tmp1_ != NULL, "event_source != null"); -#line 622 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->priv->event_source; -#line 622 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("drag-begin", gtk_widget_get_type (), &_tmp3_, NULL, FALSE); -#line 622 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _page_on_drag_begin_gtk_widget_drag_begin, self); -#line 623 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = self->priv->event_source; -#line 623 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("drag-data-get", gtk_widget_get_type (), &_tmp5_, NULL, FALSE); -#line 623 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _page_on_drag_data_get_gtk_widget_drag_data_get, self); -#line 624 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->priv->event_source; -#line 624 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("drag-data-delete", gtk_widget_get_type (), &_tmp7_, NULL, FALSE); -#line 624 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _page_on_drag_data_delete_gtk_widget_drag_data_delete, self); -#line 625 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = self->priv->event_source; -#line 625 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("drag-end", gtk_widget_get_type (), &_tmp9_, NULL, FALSE); -#line 625 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _page_on_drag_end_gtk_widget_drag_end, self); -#line 626 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = self->priv->event_source; -#line 626 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("drag-failed", gtk_widget_get_type (), &_tmp11_, NULL, FALSE); -#line 626 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp10_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _page_on_drag_failed_gtk_widget_drag_failed, self); -#line 627 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = self->priv->event_source; -#line 627 "/home/jens/Source/shotwell/src/Page.vala" - gtk_drag_source_unset (_tmp12_); -#line 629 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->dnd_enabled = FALSE; -#line 6068 "Page.c" -} - - -gboolean -page_is_dnd_enabled (Page* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 632 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 633 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->dnd_enabled; -#line 633 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp0_; -#line 633 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6085 "Page.c" -} - - -static void -page_on_drag_begin (Page* self, - GdkDragContext* context) -{ -#line 636 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 636 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 637 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "drag-begin", context); -#line 6099 "Page.c" -} - - -static void -page_on_drag_data_get (Page* self, - GdkDragContext* context, - GtkSelectionData* selection_data, - guint info, - guint time) -{ -#line 640 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 640 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 640 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (selection_data != NULL); -#line 642 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "drag-data-get", context, selection_data, info, time); -#line 6118 "Page.c" -} - - -static void -page_on_drag_data_delete (Page* self, - GdkDragContext* context) -{ -#line 645 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 645 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 646 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "drag-data-delete", context); -#line 6132 "Page.c" -} - - -static void -page_on_drag_end (Page* self, - GdkDragContext* context) -{ -#line 649 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 649 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 650 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "drag-end", context); -#line 6146 "Page.c" -} - - -static gboolean -page_real_source_drag_failed (Page* self, - GdkDragContext* context, - GtkDragResult drag_result) -{ - gboolean result = FALSE; -#line 657 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE); -#line 658 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 658 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6162 "Page.c" -} - - -gboolean -page_source_drag_failed (Page* self, - GdkDragContext* context, - GtkDragResult drag_result) -{ -#line 657 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 657 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->source_drag_failed (self, context, drag_result); -#line 6175 "Page.c" -} - - -static gboolean -page_on_drag_failed (Page* self, - GdkDragContext* context, - GtkDragResult drag_result) -{ - gboolean result = FALSE; -#line 661 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 661 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE); -#line 662 "/home/jens/Source/shotwell/src/Page.vala" - result = page_source_drag_failed (self, context, drag_result); -#line 662 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6193 "Page.c" -} - - -gboolean -page_get_event_source_pointer (Page* self, - gint* x, - gint* y, - GdkModifierType* mask) -{ - gint _vala_x = 0; - gint _vala_y = 0; - GdkModifierType _vala_mask = 0; - gboolean result = FALSE; - GtkWidget* _tmp0_; - GtkWidget* _tmp1_; - GdkWindow* _tmp2_; - GdkDisplay* _tmp3_; - GdkDeviceManager* _tmp4_; - GdkDevice* _tmp5_; - gint _tmp6_ = 0; - gint _tmp7_ = 0; - GdkModifierType _tmp8_ = 0; - gboolean _tmp9_ = FALSE; - GdkPoint _tmp10_; - gint _tmp11_; - gint _tmp14_; - GdkPoint _tmp15_; - gint _tmp16_; - gint _tmp18_; - GdkPoint _tmp19_; - gint _tmp20_; -#line 669 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 670 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->event_source; -#line 670 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_ == NULL) { -#line 671 "/home/jens/Source/shotwell/src/Page.vala" - _vala_x = 0; -#line 672 "/home/jens/Source/shotwell/src/Page.vala" - _vala_y = 0; -#line 673 "/home/jens/Source/shotwell/src/Page.vala" - _vala_mask = 0; -#line 675 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 675 "/home/jens/Source/shotwell/src/Page.vala" - if (x) { -#line 675 "/home/jens/Source/shotwell/src/Page.vala" - *x = _vala_x; -#line 6243 "Page.c" - } -#line 675 "/home/jens/Source/shotwell/src/Page.vala" - if (y) { -#line 675 "/home/jens/Source/shotwell/src/Page.vala" - *y = _vala_y; -#line 6249 "Page.c" - } -#line 675 "/home/jens/Source/shotwell/src/Page.vala" - if (mask) { -#line 675 "/home/jens/Source/shotwell/src/Page.vala" - *mask = _vala_mask; -#line 6255 "Page.c" - } -#line 675 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6259 "Page.c" - } -#line 678 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->event_source; -#line 678 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = gtk_widget_get_window (_tmp1_); -#line 678 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = gdk_display_get_default (); -#line 678 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = gdk_display_get_device_manager (_tmp3_); -#line 678 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = gdk_device_manager_get_client_pointer (_tmp4_); -#line 678 "/home/jens/Source/shotwell/src/Page.vala" - gdk_window_get_device_position (_tmp2_, _tmp5_, &_tmp6_, &_tmp7_, &_tmp8_); -#line 678 "/home/jens/Source/shotwell/src/Page.vala" - _vala_x = _tmp6_; -#line 678 "/home/jens/Source/shotwell/src/Page.vala" - _vala_y = _tmp7_; -#line 678 "/home/jens/Source/shotwell/src/Page.vala" - _vala_mask = _tmp8_; -#line 681 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = self->priv->last_down; -#line 681 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = _tmp10_.x; -#line 681 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp11_ < 0) { -#line 681 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = TRUE; -#line 6287 "Page.c" - } else { - GdkPoint _tmp12_; - gint _tmp13_; -#line 681 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = self->priv->last_down; -#line 681 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = _tmp12_.y; -#line 681 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = _tmp13_ < 0; -#line 6297 "Page.c" - } -#line 681 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp9_) { -#line 682 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 682 "/home/jens/Source/shotwell/src/Page.vala" - if (x) { -#line 682 "/home/jens/Source/shotwell/src/Page.vala" - *x = _vala_x; -#line 6307 "Page.c" - } -#line 682 "/home/jens/Source/shotwell/src/Page.vala" - if (y) { -#line 682 "/home/jens/Source/shotwell/src/Page.vala" - *y = _vala_y; -#line 6313 "Page.c" - } -#line 682 "/home/jens/Source/shotwell/src/Page.vala" - if (mask) { -#line 682 "/home/jens/Source/shotwell/src/Page.vala" - *mask = _vala_mask; -#line 6319 "Page.c" - } -#line 682 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6323 "Page.c" - } -#line 688 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = _vala_x; -#line 688 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = self->priv->last_down; -#line 688 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = _tmp15_.x; -#line 688 "/home/jens/Source/shotwell/src/Page.vala" - if (abs (_tmp14_ - _tmp16_) >= 0x7FFF) { -#line 6333 "Page.c" - gint _tmp17_; -#line 689 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = _vala_x; -#line 689 "/home/jens/Source/shotwell/src/Page.vala" - _vala_x = _tmp17_ + 0xFFFF; -#line 6339 "Page.c" - } -#line 691 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = _vala_y; -#line 691 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = self->priv->last_down; -#line 691 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = _tmp19_.y; -#line 691 "/home/jens/Source/shotwell/src/Page.vala" - if (abs (_tmp18_ - _tmp20_) >= 0x7FFF) { -#line 6349 "Page.c" - gint _tmp21_; -#line 692 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = _vala_y; -#line 692 "/home/jens/Source/shotwell/src/Page.vala" - _vala_y = _tmp21_ + 0xFFFF; -#line 6355 "Page.c" - } -#line 694 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 694 "/home/jens/Source/shotwell/src/Page.vala" - if (x) { -#line 694 "/home/jens/Source/shotwell/src/Page.vala" - *x = _vala_x; -#line 6363 "Page.c" - } -#line 694 "/home/jens/Source/shotwell/src/Page.vala" - if (y) { -#line 694 "/home/jens/Source/shotwell/src/Page.vala" - *y = _vala_y; -#line 6369 "Page.c" - } -#line 694 "/home/jens/Source/shotwell/src/Page.vala" - if (mask) { -#line 694 "/home/jens/Source/shotwell/src/Page.vala" - *mask = _vala_mask; -#line 6375 "Page.c" - } -#line 694 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6379 "Page.c" -} - - -static gboolean -page_real_on_left_click (Page* self, - GdkEventButton* event) -{ - gboolean result = FALSE; -#line 697 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 698 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 698 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6394 "Page.c" -} - - -gboolean -page_on_left_click (Page* self, - GdkEventButton* event) -{ -#line 697 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 697 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_left_click (self, event); -#line 6406 "Page.c" -} - - -static gboolean -page_real_on_middle_click (Page* self, - GdkEventButton* event) -{ - gboolean result = FALSE; -#line 701 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 702 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 702 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6421 "Page.c" -} - - -gboolean -page_on_middle_click (Page* self, - GdkEventButton* event) -{ -#line 701 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 701 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_middle_click (self, event); -#line 6433 "Page.c" -} - - -static gboolean -page_real_on_right_click (Page* self, - GdkEventButton* event) -{ - gboolean result = FALSE; -#line 705 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 706 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 706 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6448 "Page.c" -} - - -gboolean -page_on_right_click (Page* self, - GdkEventButton* event) -{ -#line 705 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 705 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_right_click (self, event); -#line 6460 "Page.c" -} - - -static gboolean -page_real_on_left_released (Page* self, - GdkEventButton* event) -{ - gboolean result = FALSE; -#line 709 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 710 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 710 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6475 "Page.c" -} - - -gboolean -page_on_left_released (Page* self, - GdkEventButton* event) -{ -#line 709 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 709 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_left_released (self, event); -#line 6487 "Page.c" -} - - -static gboolean -page_real_on_middle_released (Page* self, - GdkEventButton* event) -{ - gboolean result = FALSE; -#line 713 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 714 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 714 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6502 "Page.c" -} - - -gboolean -page_on_middle_released (Page* self, - GdkEventButton* event) -{ -#line 713 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 713 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_middle_released (self, event); -#line 6514 "Page.c" -} - - -static gboolean -page_real_on_right_released (Page* self, - GdkEventButton* event) -{ - gboolean result = FALSE; -#line 717 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 718 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 718 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6529 "Page.c" -} - - -gboolean -page_on_right_released (Page* self, - GdkEventButton* event) -{ -#line 717 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 717 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_right_released (self, event); -#line 6541 "Page.c" -} - - -static gboolean -page_on_button_pressed_internal (Page* self, - GdkEventButton* event) -{ - gboolean result = FALSE; - guint _tmp0_; -#line 721 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 721 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 722 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = event->button; -#line 722 "/home/jens/Source/shotwell/src/Page.vala" - switch (_tmp0_) { -#line 722 "/home/jens/Source/shotwell/src/Page.vala" - case 1: -#line 6561 "Page.c" - { - GtkWidget* _tmp1_; - gdouble _tmp3_; - gdouble _tmp4_; -#line 724 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->event_source; -#line 724 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ != NULL) { -#line 6570 "Page.c" - GtkWidget* _tmp2_; -#line 725 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->priv->event_source; -#line 725 "/home/jens/Source/shotwell/src/Page.vala" - gtk_widget_grab_focus (_tmp2_); -#line 6576 "Page.c" - } -#line 728 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = event->x; -#line 728 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_down.x = (gint) _tmp3_; -#line 729 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = event->y; -#line 729 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_down.y = (gint) _tmp4_; -#line 731 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_left_click (self, event); -#line 731 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6590 "Page.c" - } -#line 722 "/home/jens/Source/shotwell/src/Page.vala" - case 2: -#line 6594 "Page.c" - { -#line 734 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_middle_click (self, event); -#line 734 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6600 "Page.c" - } -#line 722 "/home/jens/Source/shotwell/src/Page.vala" - case 3: -#line 6604 "Page.c" - { -#line 737 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_right_click (self, event); -#line 737 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6610 "Page.c" - } - default: - { -#line 740 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 740 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6618 "Page.c" - } - } -} - - -static gboolean -page_on_button_released_internal (Page* self, - GdkEventButton* event) -{ - gboolean result = FALSE; - guint _tmp0_; -#line 744 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 744 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 745 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = event->button; -#line 745 "/home/jens/Source/shotwell/src/Page.vala" - switch (_tmp0_) { -#line 745 "/home/jens/Source/shotwell/src/Page.vala" - case 1: -#line 6640 "Page.c" - { - GdkPoint _tmp1_ = {0}; -#line 748 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_.x = -1; -#line 748 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_.y = -1; -#line 748 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_down = _tmp1_; -#line 750 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_left_released (self, event); -#line 750 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6653 "Page.c" - } -#line 745 "/home/jens/Source/shotwell/src/Page.vala" - case 2: -#line 6657 "Page.c" - { -#line 753 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_middle_released (self, event); -#line 753 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6663 "Page.c" - } -#line 745 "/home/jens/Source/shotwell/src/Page.vala" - case 3: -#line 6667 "Page.c" - { -#line 756 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_right_released (self, event); -#line 756 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6673 "Page.c" - } - default: - { -#line 759 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 759 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6681 "Page.c" - } - } -} - - -static gboolean -page_real_on_ctrl_pressed (Page* self, - GdkEventKey* event) -{ - gboolean result = FALSE; -#line 764 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 764 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6696 "Page.c" -} - - -gboolean -page_on_ctrl_pressed (Page* self, - GdkEventKey* event) -{ -#line 763 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 763 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_ctrl_pressed (self, event); -#line 6708 "Page.c" -} - - -static gboolean -page_real_on_ctrl_released (Page* self, - GdkEventKey* event) -{ - gboolean result = FALSE; -#line 768 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 768 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6721 "Page.c" -} - - -gboolean -page_on_ctrl_released (Page* self, - GdkEventKey* event) -{ -#line 767 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 767 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_ctrl_released (self, event); -#line 6733 "Page.c" -} - - -static gboolean -page_real_on_alt_pressed (Page* self, - GdkEventKey* event) -{ - gboolean result = FALSE; -#line 772 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 772 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6746 "Page.c" -} - - -gboolean -page_on_alt_pressed (Page* self, - GdkEventKey* event) -{ -#line 771 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 771 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_alt_pressed (self, event); -#line 6758 "Page.c" -} - - -static gboolean -page_real_on_alt_released (Page* self, - GdkEventKey* event) -{ - gboolean result = FALSE; -#line 776 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 776 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6771 "Page.c" -} - - -gboolean -page_on_alt_released (Page* self, - GdkEventKey* event) -{ -#line 775 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 775 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_alt_released (self, event); -#line 6783 "Page.c" -} - - -static gboolean -page_real_on_shift_pressed (Page* self, - GdkEventKey* event) -{ - gboolean result = FALSE; -#line 780 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 780 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6796 "Page.c" -} - - -gboolean -page_on_shift_pressed (Page* self, - GdkEventKey* event) -{ -#line 779 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 779 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_shift_pressed (self, event); -#line 6808 "Page.c" -} - - -static gboolean -page_real_on_shift_released (Page* self, - GdkEventKey* event) -{ - gboolean result = FALSE; -#line 784 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 784 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6821 "Page.c" -} - - -gboolean -page_on_shift_released (Page* self, - GdkEventKey* event) -{ -#line 783 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 783 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_shift_released (self, event); -#line 6833 "Page.c" -} - - -static gboolean -page_real_on_super_pressed (Page* self, - GdkEventKey* event) -{ - gboolean result = FALSE; -#line 788 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 788 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6846 "Page.c" -} - - -gboolean -page_on_super_pressed (Page* self, - GdkEventKey* event) -{ -#line 787 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 787 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_super_pressed (self, event); -#line 6858 "Page.c" -} - - -static gboolean -page_real_on_super_released (Page* self, - GdkEventKey* event) -{ - gboolean result = FALSE; -#line 792 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 792 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6871 "Page.c" -} - - -gboolean -page_on_super_released (Page* self, - GdkEventKey* event) -{ -#line 791 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 791 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_super_released (self, event); -#line 6883 "Page.c" -} - - -static gboolean -page_real_on_app_key_pressed (Page* self, - GdkEventKey* event) -{ - gboolean result = FALSE; -#line 795 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 796 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 796 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6898 "Page.c" -} - - -gboolean -page_on_app_key_pressed (Page* self, - GdkEventKey* event) -{ -#line 795 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 795 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_app_key_pressed (self, event); -#line 6910 "Page.c" -} - - -static gboolean -page_real_on_app_key_released (Page* self, - GdkEventKey* event) -{ - gboolean result = FALSE; -#line 799 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 800 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 800 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 6925 "Page.c" -} - - -gboolean -page_on_app_key_released (Page* self, - GdkEventKey* event) -{ -#line 799 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 799 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_app_key_released (self, event); -#line 6937 "Page.c" -} - - -gboolean -page_notify_app_key_pressed (Page* self, - GdkEventKey* event) -{ - gboolean result = FALSE; - gboolean ctrl_currently_pressed = FALSE; - gboolean alt_currently_pressed = FALSE; - gboolean shift_currently_pressed = FALSE; - gboolean super_currently_pressed = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - gboolean _tmp3_ = FALSE; - guint _tmp4_; - const gchar* _tmp5_; - const gchar* _tmp6_; - GQuark _tmp8_ = 0U; -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label0 = 0; -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label1 = 0; -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label2 = 0; -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label3 = 0; -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label4 = 0; -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label5 = 0; -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label6 = 0; -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label7 = 0; -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label8 = 0; -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label9 = 0; -#line 803 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 803 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 806 "/home/jens/Source/shotwell/src/Page.vala" - page_get_modifiers (self, &_tmp0_, &_tmp1_, &_tmp2_, &_tmp3_); -#line 806 "/home/jens/Source/shotwell/src/Page.vala" - ctrl_currently_pressed = _tmp0_; -#line 806 "/home/jens/Source/shotwell/src/Page.vala" - alt_currently_pressed = _tmp1_; -#line 806 "/home/jens/Source/shotwell/src/Page.vala" - shift_currently_pressed = _tmp2_; -#line 806 "/home/jens/Source/shotwell/src/Page.vala" - super_currently_pressed = _tmp3_; -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = event->keyval; -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = gdk_keyval_name (_tmp4_); -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = _tmp5_; -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = (NULL == _tmp6_) ? 0 : g_quark_from_string (_tmp6_); -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - if ((_tmp8_ == ((0 != _tmp7_label0) ? _tmp7_label0 : (_tmp7_label0 = g_quark_from_static_string ("Control_L")))) || (_tmp8_ == ((0 != _tmp7_label1) ? _tmp7_label1 : (_tmp7_label1 = g_quark_from_static_string ("Control_R"))))) { -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 7004 "Page.c" - default: - { - gboolean _tmp9_ = FALSE; - gboolean _tmp10_; -#line 812 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = ctrl_currently_pressed; -#line 812 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp10_) { -#line 812 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = TRUE; -#line 7015 "Page.c" - } else { - gboolean _tmp11_; -#line 812 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = self->priv->ctrl_pressed; -#line 812 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = _tmp11_; -#line 7022 "Page.c" - } -#line 812 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp9_) { -#line 813 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 813 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7030 "Page.c" - } -#line 815 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->ctrl_pressed = TRUE; -#line 817 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_ctrl_pressed (self, event); -#line 817 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7038 "Page.c" - } - } - } else if ((((_tmp8_ == ((0 != _tmp7_label2) ? _tmp7_label2 : (_tmp7_label2 = g_quark_from_static_string ("Meta_L")))) || (_tmp8_ == ((0 != _tmp7_label3) ? _tmp7_label3 : (_tmp7_label3 = g_quark_from_static_string ("Meta_R"))))) || (_tmp8_ == ((0 != _tmp7_label4) ? _tmp7_label4 : (_tmp7_label4 = g_quark_from_static_string ("Alt_L"))))) || (_tmp8_ == ((0 != _tmp7_label5) ? _tmp7_label5 : (_tmp7_label5 = g_quark_from_static_string ("Alt_R"))))) { -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 7044 "Page.c" - default: - { - gboolean _tmp12_ = FALSE; - gboolean _tmp13_; -#line 823 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = alt_currently_pressed; -#line 823 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp13_) { -#line 823 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = TRUE; -#line 7055 "Page.c" - } else { - gboolean _tmp14_; -#line 823 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = self->priv->alt_pressed; -#line 823 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = _tmp14_; -#line 7062 "Page.c" - } -#line 823 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp12_) { -#line 824 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 824 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7070 "Page.c" - } -#line 826 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->alt_pressed = TRUE; -#line 828 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_alt_pressed (self, event); -#line 828 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7078 "Page.c" - } - } - } else if ((_tmp8_ == ((0 != _tmp7_label6) ? _tmp7_label6 : (_tmp7_label6 = g_quark_from_static_string ("Shift_L")))) || (_tmp8_ == ((0 != _tmp7_label7) ? _tmp7_label7 : (_tmp7_label7 = g_quark_from_static_string ("Shift_R"))))) { -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 7084 "Page.c" - default: - { - gboolean _tmp15_ = FALSE; - gboolean _tmp16_; -#line 832 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = shift_currently_pressed; -#line 832 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp16_) { -#line 832 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = TRUE; -#line 7095 "Page.c" - } else { - gboolean _tmp17_; -#line 832 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = self->priv->shift_pressed; -#line 832 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = _tmp17_; -#line 7102 "Page.c" - } -#line 832 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp15_) { -#line 833 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 833 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7110 "Page.c" - } -#line 835 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->shift_pressed = TRUE; -#line 837 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_shift_pressed (self, event); -#line 837 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7118 "Page.c" - } - } - } else if ((_tmp8_ == ((0 != _tmp7_label8) ? _tmp7_label8 : (_tmp7_label8 = g_quark_from_static_string ("Super_L")))) || (_tmp8_ == ((0 != _tmp7_label9) ? _tmp7_label9 : (_tmp7_label9 = g_quark_from_static_string ("Super_R"))))) { -#line 809 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 7124 "Page.c" - default: - { - gboolean _tmp18_ = FALSE; - gboolean _tmp19_; -#line 841 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = super_currently_pressed; -#line 841 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp19_) { -#line 841 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = TRUE; -#line 7135 "Page.c" - } else { - gboolean _tmp20_; -#line 841 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = self->priv->super_pressed; -#line 841 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = _tmp20_; -#line 7142 "Page.c" - } -#line 841 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp18_) { -#line 842 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 842 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7150 "Page.c" - } -#line 844 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->super_pressed = TRUE; -#line 846 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_super_pressed (self, event); -#line 846 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7158 "Page.c" - } - } - } -#line 849 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_app_key_pressed (self, event); -#line 849 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7166 "Page.c" -} - - -gboolean -page_notify_app_key_released (Page* self, - GdkEventKey* event) -{ - gboolean result = FALSE; - gboolean ctrl_currently_pressed = FALSE; - gboolean alt_currently_pressed = FALSE; - gboolean shift_currently_pressed = FALSE; - gboolean super_currently_pressed = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - gboolean _tmp3_ = FALSE; - guint _tmp4_; - const gchar* _tmp5_; - const gchar* _tmp6_; - GQuark _tmp8_ = 0U; -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label0 = 0; -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label1 = 0; -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label2 = 0; -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label3 = 0; -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label4 = 0; -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label5 = 0; -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label6 = 0; -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label7 = 0; -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label8 = 0; -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp7_label9 = 0; -#line 852 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 852 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 855 "/home/jens/Source/shotwell/src/Page.vala" - page_get_modifiers (self, &_tmp0_, &_tmp1_, &_tmp2_, &_tmp3_); -#line 855 "/home/jens/Source/shotwell/src/Page.vala" - ctrl_currently_pressed = _tmp0_; -#line 855 "/home/jens/Source/shotwell/src/Page.vala" - alt_currently_pressed = _tmp1_; -#line 855 "/home/jens/Source/shotwell/src/Page.vala" - shift_currently_pressed = _tmp2_; -#line 855 "/home/jens/Source/shotwell/src/Page.vala" - super_currently_pressed = _tmp3_; -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = event->keyval; -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = gdk_keyval_name (_tmp4_); -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = _tmp5_; -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = (NULL == _tmp6_) ? 0 : g_quark_from_string (_tmp6_); -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - if ((_tmp8_ == ((0 != _tmp7_label0) ? _tmp7_label0 : (_tmp7_label0 = g_quark_from_static_string ("Control_L")))) || (_tmp8_ == ((0 != _tmp7_label1) ? _tmp7_label1 : (_tmp7_label1 = g_quark_from_static_string ("Control_R"))))) { -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 7233 "Page.c" - default: - { - gboolean _tmp9_ = FALSE; - gboolean _tmp10_; -#line 861 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = ctrl_currently_pressed; -#line 861 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp10_) { -#line 861 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = TRUE; -#line 7244 "Page.c" - } else { - gboolean _tmp11_; -#line 861 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = self->priv->ctrl_pressed; -#line 861 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = !_tmp11_; -#line 7251 "Page.c" - } -#line 861 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp9_) { -#line 862 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 862 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7259 "Page.c" - } -#line 864 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->ctrl_pressed = FALSE; -#line 866 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_ctrl_released (self, event); -#line 866 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7267 "Page.c" - } - } - } else if ((((_tmp8_ == ((0 != _tmp7_label2) ? _tmp7_label2 : (_tmp7_label2 = g_quark_from_static_string ("Meta_L")))) || (_tmp8_ == ((0 != _tmp7_label3) ? _tmp7_label3 : (_tmp7_label3 = g_quark_from_static_string ("Meta_R"))))) || (_tmp8_ == ((0 != _tmp7_label4) ? _tmp7_label4 : (_tmp7_label4 = g_quark_from_static_string ("Alt_L"))))) || (_tmp8_ == ((0 != _tmp7_label5) ? _tmp7_label5 : (_tmp7_label5 = g_quark_from_static_string ("Alt_R"))))) { -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 7273 "Page.c" - default: - { - gboolean _tmp12_ = FALSE; - gboolean _tmp13_; -#line 872 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = alt_currently_pressed; -#line 872 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp13_) { -#line 872 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = TRUE; -#line 7284 "Page.c" - } else { - gboolean _tmp14_; -#line 872 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = self->priv->alt_pressed; -#line 872 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = !_tmp14_; -#line 7291 "Page.c" - } -#line 872 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp12_) { -#line 873 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 873 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7299 "Page.c" - } -#line 875 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->alt_pressed = FALSE; -#line 877 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_alt_released (self, event); -#line 877 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7307 "Page.c" - } - } - } else if ((_tmp8_ == ((0 != _tmp7_label6) ? _tmp7_label6 : (_tmp7_label6 = g_quark_from_static_string ("Shift_L")))) || (_tmp8_ == ((0 != _tmp7_label7) ? _tmp7_label7 : (_tmp7_label7 = g_quark_from_static_string ("Shift_R"))))) { -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 7313 "Page.c" - default: - { - gboolean _tmp15_ = FALSE; - gboolean _tmp16_; -#line 881 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = shift_currently_pressed; -#line 881 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp16_) { -#line 881 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = TRUE; -#line 7324 "Page.c" - } else { - gboolean _tmp17_; -#line 881 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = self->priv->shift_pressed; -#line 881 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = !_tmp17_; -#line 7331 "Page.c" - } -#line 881 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp15_) { -#line 882 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 882 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7339 "Page.c" - } -#line 884 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->shift_pressed = FALSE; -#line 886 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_shift_released (self, event); -#line 886 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7347 "Page.c" - } - } - } else if ((_tmp8_ == ((0 != _tmp7_label8) ? _tmp7_label8 : (_tmp7_label8 = g_quark_from_static_string ("Super_L")))) || (_tmp8_ == ((0 != _tmp7_label9) ? _tmp7_label9 : (_tmp7_label9 = g_quark_from_static_string ("Super_R"))))) { -#line 858 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 7353 "Page.c" - default: - { - gboolean _tmp18_ = FALSE; - gboolean _tmp19_; -#line 890 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = super_currently_pressed; -#line 890 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp19_) { -#line 890 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = TRUE; -#line 7364 "Page.c" - } else { - gboolean _tmp20_; -#line 890 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = self->priv->super_pressed; -#line 890 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = !_tmp20_; -#line 7371 "Page.c" - } -#line 890 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp18_) { -#line 891 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 891 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7379 "Page.c" - } -#line 893 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->super_pressed = FALSE; -#line 895 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_super_released (self, event); -#line 895 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7387 "Page.c" - } - } - } -#line 898 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_app_key_released (self, event); -#line 898 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7395 "Page.c" -} - - -gboolean -page_notify_app_focus_in (Page* self, - GdkEventFocus* event) -{ - gboolean result = FALSE; -#line 901 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 901 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 902 "/home/jens/Source/shotwell/src/Page.vala" - page_update_modifiers (self); -#line 904 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 904 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7414 "Page.c" -} - - -gboolean -page_notify_app_focus_out (Page* self, - GdkEventFocus* event) -{ - gboolean result = FALSE; -#line 907 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 907 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 908 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 908 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7431 "Page.c" -} - - -static void -page_real_on_move (Page* self, - GdkRectangle* rect) -{ -#line 911 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (rect != NULL); -#line 7441 "Page.c" -} - - -void -page_on_move (Page* self, - GdkRectangle* rect) -{ -#line 911 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 911 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->on_move (self, rect); -#line 7453 "Page.c" -} - - -static void -page_real_on_move_start (Page* self, - GdkRectangle* rect) -{ -#line 914 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (rect != NULL); -#line 7463 "Page.c" -} - - -void -page_on_move_start (Page* self, - GdkRectangle* rect) -{ -#line 914 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 914 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->on_move_start (self, rect); -#line 7475 "Page.c" -} - - -static void -page_real_on_move_finished (Page* self, - GdkRectangle* rect) -{ -#line 917 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (rect != NULL); -#line 7485 "Page.c" -} - - -void -page_on_move_finished (Page* self, - GdkRectangle* rect) -{ -#line 917 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 917 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->on_move_finished (self, rect); -#line 7497 "Page.c" -} - - -static void -page_real_on_resize (Page* self, - GdkRectangle* rect) -{ -#line 920 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (rect != NULL); -#line 7507 "Page.c" -} - - -void -page_on_resize (Page* self, - GdkRectangle* rect) -{ -#line 920 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 920 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->on_resize (self, rect); -#line 7519 "Page.c" -} - - -static void -page_real_on_resize_start (Page* self, - GdkRectangle* rect) -{ -#line 923 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (rect != NULL); -#line 7529 "Page.c" -} - - -void -page_on_resize_start (Page* self, - GdkRectangle* rect) -{ -#line 923 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 923 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->on_resize_start (self, rect); -#line 7541 "Page.c" -} - - -static void -page_real_on_resize_finished (Page* self, - GdkRectangle* rect) -{ -#line 926 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (rect != NULL); -#line 7551 "Page.c" -} - - -void -page_on_resize_finished (Page* self, - GdkRectangle* rect) -{ -#line 926 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 926 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->on_resize_finished (self, rect); -#line 7563 "Page.c" -} - - -static gboolean -page_real_on_configure (Page* self, - GdkEventConfigure* event, - GdkRectangle* rect) -{ - gboolean result = FALSE; -#line 929 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 929 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (rect != NULL, FALSE); -#line 930 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 930 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7581 "Page.c" -} - - -gboolean -page_on_configure (Page* self, - GdkEventConfigure* event, - GdkRectangle* rect) -{ -#line 929 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 929 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_configure (self, event, rect); -#line 7594 "Page.c" -} - - -static gboolean -_page_check_configure_halted_gsource_func (gpointer self) -{ - gboolean result; - result = page_check_configure_halted ((Page*) self); -#line 954 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7605 "Page.c" -} - - -gboolean -page_notify_configure_event (Page* self, - GdkEventConfigure* event) -{ - gboolean result = FALSE; - GdkRectangle rect = {0}; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - gulong _tmp4_; - gboolean _tmp25_ = FALSE; - GdkRectangle _tmp26_; - gint _tmp27_; - GdkRectangle _tmp28_; - gint _tmp29_; - gboolean _tmp35_ = FALSE; - GdkRectangle _tmp36_; - gint _tmp37_; - GdkRectangle _tmp38_; - gint _tmp39_; - GdkRectangle _tmp45_; - GdkRectangle _tmp46_; -#line 933 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 933 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 934 "/home/jens/Source/shotwell/src/Page.vala" - memset (&rect, 0, sizeof (GdkRectangle)); -#line 935 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = event->x; -#line 935 "/home/jens/Source/shotwell/src/Page.vala" - rect.x = _tmp0_; -#line 936 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = event->y; -#line 936 "/home/jens/Source/shotwell/src/Page.vala" - rect.y = _tmp1_; -#line 937 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = event->width; -#line 937 "/home/jens/Source/shotwell/src/Page.vala" - rect.width = _tmp2_; -#line 938 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = event->height; -#line 938 "/home/jens/Source/shotwell/src/Page.vala" - rect.height = _tmp3_; -#line 941 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = self->priv->last_configure_ms; -#line 941 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp4_ == ((gulong) 0)) { -#line 7658 "Page.c" - gboolean _tmp5_ = FALSE; - GdkRectangle _tmp6_; - gint _tmp7_; - GdkRectangle _tmp8_; - gint _tmp9_; - gboolean _tmp15_ = FALSE; - GdkRectangle _tmp16_; - gint _tmp17_; - GdkRectangle _tmp18_; - gint _tmp19_; -#line 942 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->priv->last_position; -#line 942 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = _tmp6_.x; -#line 942 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = rect; -#line 942 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = _tmp8_.x; -#line 942 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp7_ != _tmp9_) { -#line 942 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = TRUE; -#line 7681 "Page.c" - } else { - GdkRectangle _tmp10_; - gint _tmp11_; - GdkRectangle _tmp12_; - gint _tmp13_; -#line 942 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = self->priv->last_position; -#line 942 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = _tmp10_.y; -#line 942 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = rect; -#line 942 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = _tmp12_.y; -#line 942 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _tmp11_ != _tmp13_; -#line 7697 "Page.c" - } -#line 942 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp5_) { -#line 7701 "Page.c" - GdkRectangle _tmp14_; -#line 943 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = rect; -#line 943 "/home/jens/Source/shotwell/src/Page.vala" - page_on_move_start (self, &_tmp14_); -#line 944 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->report_move_finished = TRUE; -#line 7709 "Page.c" - } -#line 947 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = self->priv->last_position; -#line 947 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = _tmp16_.width; -#line 947 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = rect; -#line 947 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = _tmp18_.width; -#line 947 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp17_ != _tmp19_) { -#line 947 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = TRUE; -#line 7723 "Page.c" - } else { - GdkRectangle _tmp20_; - gint _tmp21_; - GdkRectangle _tmp22_; - gint _tmp23_; -#line 947 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = self->priv->last_position; -#line 947 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = _tmp20_.height; -#line 947 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = rect; -#line 947 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = _tmp22_.height; -#line 947 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = _tmp21_ != _tmp23_; -#line 7739 "Page.c" - } -#line 947 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp15_) { -#line 7743 "Page.c" - GdkRectangle _tmp24_; -#line 948 "/home/jens/Source/shotwell/src/Page.vala" - _tmp24_ = rect; -#line 948 "/home/jens/Source/shotwell/src/Page.vala" - page_on_resize_start (self, &_tmp24_); -#line 949 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->report_resize_finished = TRUE; -#line 7751 "Page.c" - } -#line 954 "/home/jens/Source/shotwell/src/Page.vala" - g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) (PAGE_CONSIDER_CONFIGURE_HALTED_MSEC / 8), _page_check_configure_halted_gsource_func, g_object_ref (self), g_object_unref); -#line 7755 "Page.c" - } -#line 957 "/home/jens/Source/shotwell/src/Page.vala" - _tmp26_ = self->priv->last_position; -#line 957 "/home/jens/Source/shotwell/src/Page.vala" - _tmp27_ = _tmp26_.x; -#line 957 "/home/jens/Source/shotwell/src/Page.vala" - _tmp28_ = rect; -#line 957 "/home/jens/Source/shotwell/src/Page.vala" - _tmp29_ = _tmp28_.x; -#line 957 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp27_ != _tmp29_) { -#line 957 "/home/jens/Source/shotwell/src/Page.vala" - _tmp25_ = TRUE; -#line 7769 "Page.c" - } else { - GdkRectangle _tmp30_; - gint _tmp31_; - GdkRectangle _tmp32_; - gint _tmp33_; -#line 957 "/home/jens/Source/shotwell/src/Page.vala" - _tmp30_ = self->priv->last_position; -#line 957 "/home/jens/Source/shotwell/src/Page.vala" - _tmp31_ = _tmp30_.y; -#line 957 "/home/jens/Source/shotwell/src/Page.vala" - _tmp32_ = rect; -#line 957 "/home/jens/Source/shotwell/src/Page.vala" - _tmp33_ = _tmp32_.y; -#line 957 "/home/jens/Source/shotwell/src/Page.vala" - _tmp25_ = _tmp31_ != _tmp33_; -#line 7785 "Page.c" - } -#line 957 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp25_) { -#line 7789 "Page.c" - GdkRectangle _tmp34_; -#line 958 "/home/jens/Source/shotwell/src/Page.vala" - _tmp34_ = rect; -#line 958 "/home/jens/Source/shotwell/src/Page.vala" - page_on_move (self, &_tmp34_); -#line 7795 "Page.c" - } -#line 960 "/home/jens/Source/shotwell/src/Page.vala" - _tmp36_ = self->priv->last_position; -#line 960 "/home/jens/Source/shotwell/src/Page.vala" - _tmp37_ = _tmp36_.width; -#line 960 "/home/jens/Source/shotwell/src/Page.vala" - _tmp38_ = rect; -#line 960 "/home/jens/Source/shotwell/src/Page.vala" - _tmp39_ = _tmp38_.width; -#line 960 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp37_ != _tmp39_) { -#line 960 "/home/jens/Source/shotwell/src/Page.vala" - _tmp35_ = TRUE; -#line 7809 "Page.c" - } else { - GdkRectangle _tmp40_; - gint _tmp41_; - GdkRectangle _tmp42_; - gint _tmp43_; -#line 960 "/home/jens/Source/shotwell/src/Page.vala" - _tmp40_ = self->priv->last_position; -#line 960 "/home/jens/Source/shotwell/src/Page.vala" - _tmp41_ = _tmp40_.height; -#line 960 "/home/jens/Source/shotwell/src/Page.vala" - _tmp42_ = rect; -#line 960 "/home/jens/Source/shotwell/src/Page.vala" - _tmp43_ = _tmp42_.height; -#line 960 "/home/jens/Source/shotwell/src/Page.vala" - _tmp35_ = _tmp41_ != _tmp43_; -#line 7825 "Page.c" - } -#line 960 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp35_) { -#line 7829 "Page.c" - GdkRectangle _tmp44_; -#line 961 "/home/jens/Source/shotwell/src/Page.vala" - _tmp44_ = rect; -#line 961 "/home/jens/Source/shotwell/src/Page.vala" - page_on_resize (self, &_tmp44_); -#line 7835 "Page.c" - } -#line 963 "/home/jens/Source/shotwell/src/Page.vala" - _tmp45_ = rect; -#line 963 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_position = _tmp45_; -#line 964 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_configure_ms = now_ms (); -#line 966 "/home/jens/Source/shotwell/src/Page.vala" - _tmp46_ = rect; -#line 966 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_configure (self, event, &_tmp46_); -#line 966 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7849 "Page.c" -} - - -static gboolean -page_check_configure_halted (Page* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; - gulong _tmp1_; - GtkAllocation allocation = {0}; - GtkAllocation _tmp2_ = {0}; - gboolean _tmp3_; - gboolean _tmp6_; -#line 969 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 970 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->is_destroyed; -#line 970 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_) { -#line 971 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 971 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7873 "Page.c" - } -#line 973 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->last_configure_ms; -#line 973 "/home/jens/Source/shotwell/src/Page.vala" - if ((now_ms () - _tmp1_) < ((gulong) PAGE_CONSIDER_CONFIGURE_HALTED_MSEC)) { -#line 974 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 974 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7883 "Page.c" - } -#line 977 "/home/jens/Source/shotwell/src/Page.vala" - gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), &_tmp2_); -#line 977 "/home/jens/Source/shotwell/src/Page.vala" - allocation = _tmp2_; -#line 979 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = self->priv->report_move_finished; -#line 979 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_) { -#line 7893 "Page.c" - GtkAllocation _tmp4_; - GdkRectangle _tmp5_; -#line 980 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = allocation; -#line 980 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = (GdkRectangle) _tmp4_; -#line 980 "/home/jens/Source/shotwell/src/Page.vala" - page_on_move_finished (self, &_tmp5_); -#line 7902 "Page.c" - } -#line 982 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->priv->report_resize_finished; -#line 982 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp6_) { -#line 7908 "Page.c" - GtkAllocation _tmp7_; - GdkRectangle _tmp8_; -#line 983 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = allocation; -#line 983 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = (GdkRectangle) _tmp7_; -#line 983 "/home/jens/Source/shotwell/src/Page.vala" - page_on_resize_finished (self, &_tmp8_); -#line 7917 "Page.c" - } -#line 985 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_configure_ms = (gulong) 0; -#line 986 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->report_move_finished = FALSE; -#line 987 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->report_resize_finished = FALSE; -#line 989 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 989 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7929 "Page.c" -} - - -static gboolean -page_real_on_motion (Page* self, - GdkEventMotion* event, - gint x, - gint y, - GdkModifierType mask) -{ - gboolean result = FALSE; -#line 992 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 993 "/home/jens/Source/shotwell/src/Page.vala" - page_check_cursor_hiding (self); -#line 995 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 995 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7949 "Page.c" -} - - -gboolean -page_on_motion (Page* self, - GdkEventMotion* event, - gint x, - gint y, - GdkModifierType mask) -{ -#line 992 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 992 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_motion (self, event, x, y, mask); -#line 7964 "Page.c" -} - - -static gboolean -page_real_on_leave_notify_event (Page* self) -{ - gboolean result = FALSE; -#line 999 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 999 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 7976 "Page.c" -} - - -gboolean -page_on_leave_notify_event (Page* self) -{ -#line 998 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 998 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_leave_notify_event (self); -#line 7987 "Page.c" -} - - -static gboolean -page_on_motion_internal (Page* self, - GdkEventMotion* event) -{ - gboolean result = FALSE; - gint x = 0; - gint y = 0; - GdkModifierType mask = 0; - gint16 _tmp0_; - gint _tmp7_; - gint _tmp8_; - GdkModifierType _tmp9_; -#line 1002 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1002 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1005 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = event->is_hint; -#line 1005 "/home/jens/Source/shotwell/src/Page.vala" - if (((gint) _tmp0_) == 1) { -#line 8011 "Page.c" - gint _tmp1_ = 0; - gint _tmp2_ = 0; - GdkModifierType _tmp3_ = 0; -#line 1006 "/home/jens/Source/shotwell/src/Page.vala" - page_get_event_source_pointer (self, &_tmp1_, &_tmp2_, &_tmp3_); -#line 1006 "/home/jens/Source/shotwell/src/Page.vala" - x = _tmp1_; -#line 1006 "/home/jens/Source/shotwell/src/Page.vala" - y = _tmp2_; -#line 1006 "/home/jens/Source/shotwell/src/Page.vala" - mask = _tmp3_; -#line 8023 "Page.c" - } else { - gdouble _tmp4_; - gdouble _tmp5_; - GdkModifierType _tmp6_; -#line 1008 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = event->x; -#line 1008 "/home/jens/Source/shotwell/src/Page.vala" - x = (gint) _tmp4_; -#line 1009 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = event->y; -#line 1009 "/home/jens/Source/shotwell/src/Page.vala" - y = (gint) _tmp5_; -#line 1010 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = event->state; -#line 1010 "/home/jens/Source/shotwell/src/Page.vala" - mask = _tmp6_; -#line 8040 "Page.c" - } -#line 1013 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = x; -#line 1013 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = y; -#line 1013 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = mask; -#line 1013 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_motion (self, event, _tmp7_, _tmp8_, _tmp9_); -#line 1013 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8052 "Page.c" -} - - -static gboolean -page_on_mousewheel_internal (Page* self, - GdkEventScroll* event) -{ - gboolean result = FALSE; - GdkScrollDirection _tmp0_; -#line 1016 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1016 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1017 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = event->direction; -#line 1017 "/home/jens/Source/shotwell/src/Page.vala" - switch (_tmp0_) { -#line 1017 "/home/jens/Source/shotwell/src/Page.vala" - case GDK_SCROLL_UP: -#line 8072 "Page.c" - { -#line 1019 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_mousewheel_up (self, event); -#line 1019 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8078 "Page.c" - } -#line 1017 "/home/jens/Source/shotwell/src/Page.vala" - case GDK_SCROLL_DOWN: -#line 8082 "Page.c" - { -#line 1022 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_mousewheel_down (self, event); -#line 1022 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8088 "Page.c" - } -#line 1017 "/home/jens/Source/shotwell/src/Page.vala" - case GDK_SCROLL_LEFT: -#line 8092 "Page.c" - { -#line 1025 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_mousewheel_left (self, event); -#line 1025 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8098 "Page.c" - } -#line 1017 "/home/jens/Source/shotwell/src/Page.vala" - case GDK_SCROLL_RIGHT: -#line 8102 "Page.c" - { -#line 1028 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_mousewheel_right (self, event); -#line 1028 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8108 "Page.c" - } -#line 1017 "/home/jens/Source/shotwell/src/Page.vala" - case GDK_SCROLL_SMOOTH: -#line 8112 "Page.c" - { - { - gdouble dx = 0.0; - gdouble dy = 0.0; - gdouble _tmp1_ = 0.0; - gdouble _tmp2_ = 0.0; - gdouble _tmp3_; -#line 1033 "/home/jens/Source/shotwell/src/Page.vala" - gdk_event_get_scroll_deltas ((GdkEvent*) event, &_tmp1_, &_tmp2_); -#line 1033 "/home/jens/Source/shotwell/src/Page.vala" - dx = _tmp1_; -#line 1033 "/home/jens/Source/shotwell/src/Page.vala" - dy = _tmp2_; -#line 1035 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = dy; -#line 1035 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_ < ((gdouble) 0)) { -#line 1036 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_mousewheel_up (self, event); -#line 1036 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8134 "Page.c" - } else { - gdouble _tmp4_; -#line 1037 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = dy; -#line 1037 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp4_ > ((gdouble) 0)) { -#line 1038 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_mousewheel_down (self, event); -#line 1038 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8145 "Page.c" - } else { - gdouble _tmp5_; -#line 1039 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = dx; -#line 1039 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp5_ < ((gdouble) 0)) { -#line 1040 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_mousewheel_left (self, event); -#line 1040 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8156 "Page.c" - } else { - gdouble _tmp6_; -#line 1041 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = dx; -#line 1041 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp6_ > ((gdouble) 0)) { -#line 1042 "/home/jens/Source/shotwell/src/Page.vala" - result = page_on_mousewheel_right (self, event); -#line 1042 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8167 "Page.c" - } else { -#line 1044 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 1044 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8173 "Page.c" - } - } - } - } - } - } - default: - { -#line 1048 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 1048 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8186 "Page.c" - } - } -} - - -static gboolean -page_real_on_mousewheel_up (Page* self, - GdkEventScroll* event) -{ - gboolean result = FALSE; -#line 1052 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1053 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 1053 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8203 "Page.c" -} - - -gboolean -page_on_mousewheel_up (Page* self, - GdkEventScroll* event) -{ -#line 1052 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1052 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_mousewheel_up (self, event); -#line 8215 "Page.c" -} - - -static gboolean -page_real_on_mousewheel_down (Page* self, - GdkEventScroll* event) -{ - gboolean result = FALSE; -#line 1056 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1057 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 1057 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8230 "Page.c" -} - - -gboolean -page_on_mousewheel_down (Page* self, - GdkEventScroll* event) -{ -#line 1056 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1056 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_mousewheel_down (self, event); -#line 8242 "Page.c" -} - - -static gboolean -page_real_on_mousewheel_left (Page* self, - GdkEventScroll* event) -{ - gboolean result = FALSE; -#line 1060 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1061 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 1061 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8257 "Page.c" -} - - -gboolean -page_on_mousewheel_left (Page* self, - GdkEventScroll* event) -{ -#line 1060 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1060 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_mousewheel_left (self, event); -#line 8269 "Page.c" -} - - -static gboolean -page_real_on_mousewheel_right (Page* self, - GdkEventScroll* event) -{ - gboolean result = FALSE; -#line 1064 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1065 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 1065 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8284 "Page.c" -} - - -gboolean -page_on_mousewheel_right (Page* self, - GdkEventScroll* event) -{ -#line 1064 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1064 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_mousewheel_right (self, event); -#line 8296 "Page.c" -} - - -static gboolean -page_real_on_context_keypress (Page* self) -{ - gboolean result = FALSE; -#line 1069 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 1069 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8308 "Page.c" -} - - -gboolean -page_on_context_keypress (Page* self) -{ -#line 1068 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1068 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_context_keypress (self); -#line 8319 "Page.c" -} - - -static gboolean -page_real_on_context_buttonpress (Page* self, - GdkEventButton* event) -{ - gboolean result = FALSE; -#line 1072 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1073 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 1073 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8334 "Page.c" -} - - -gboolean -page_on_context_buttonpress (Page* self, - GdkEventButton* event) -{ -#line 1072 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1072 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_context_buttonpress (self, event); -#line 8346 "Page.c" -} - - -static gboolean -page_real_on_context_invoked (Page* self) -{ - gboolean result = FALSE; -#line 1077 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 1077 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8358 "Page.c" -} - - -gboolean -page_on_context_invoked (Page* self) -{ -#line 1076 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1076 "/home/jens/Source/shotwell/src/Page.vala" - return PAGE_GET_CLASS (self)->on_context_invoked (self); -#line 8369 "Page.c" -} - - -gboolean -page_popup_context_menu (Page* self, - GtkMenu* context_menu, - GdkEventButton* event) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; -#line 1080 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1080 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail ((context_menu == NULL) || GTK_IS_MENU (context_menu), FALSE); -#line 1083 "/home/jens/Source/shotwell/src/Page.vala" - if (context_menu == NULL) { -#line 1083 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = TRUE; -#line 8388 "Page.c" - } else { -#line 1083 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = !page_on_context_invoked (self); -#line 8392 "Page.c" - } -#line 1083 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_) { -#line 1084 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 1084 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8400 "Page.c" - } -#line 1086 "/home/jens/Source/shotwell/src/Page.vala" - if (event == NULL) { -#line 1087 "/home/jens/Source/shotwell/src/Page.vala" - gtk_menu_popup (context_menu, NULL, NULL, NULL, NULL, (guint) 0, gtk_get_current_event_time ()); -#line 8406 "Page.c" - } else { - guint _tmp1_; - guint32 _tmp2_; -#line 1089 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = event->button; -#line 1089 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = event->time; -#line 1089 "/home/jens/Source/shotwell/src/Page.vala" - gtk_menu_popup (context_menu, NULL, NULL, NULL, NULL, _tmp1_, _tmp2_); -#line 8416 "Page.c" - } -#line 1091 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 1091 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8422 "Page.c" -} - - -void -page_on_event_source_realize (Page* self) -{ - GtkWidget* _tmp0_; - GdkWindow* _tmp1_; - GtkWidget* _tmp2_; - GdkWindow* _tmp3_; - GdkCursor* _tmp4_; - GdkWindow* parent_window = NULL; - GtkWidget* _tmp8_; - GdkWindow* _tmp9_; - GdkWindow* _tmp10_; - GdkWindow* _tmp19_; -#line 1094 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 1095 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->event_source; -#line 1095 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = gtk_widget_get_window (_tmp0_); -#line 1095 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (_tmp1_ != NULL, "event_source.get_window() != null"); -#line 1097 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->priv->event_source; -#line 1097 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = gtk_widget_get_window (_tmp2_); -#line 1097 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = gdk_window_get_cursor (_tmp3_); -#line 1097 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp4_ != NULL) { -#line 8455 "Page.c" - GtkWidget* _tmp5_; - GdkWindow* _tmp6_; - GdkCursor* _tmp7_; -#line 1098 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->priv->event_source; -#line 1098 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = gtk_widget_get_window (_tmp5_); -#line 1098 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = gdk_window_get_cursor (_tmp6_); -#line 1098 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_cursor = gdk_cursor_get_cursor_type (_tmp7_); -#line 1099 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 8469 "Page.c" - } -#line 1103 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = self->priv->event_source; -#line 1103 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = gtk_widget_get_window (_tmp8_); -#line 1103 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = _g_object_ref0 (_tmp9_); -#line 1103 "/home/jens/Source/shotwell/src/Page.vala" - parent_window = _tmp10_; -#line 8479 "Page.c" - { - gboolean _tmp11_ = FALSE; -#line 1104 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = TRUE; -#line 1104 "/home/jens/Source/shotwell/src/Page.vala" - while (TRUE) { -#line 8486 "Page.c" - GdkWindow* _tmp16_; - GdkWindow* _tmp17_; - GdkWindow* _tmp18_; -#line 1104 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp11_) { -#line 8492 "Page.c" - gboolean _tmp12_ = FALSE; - GdkWindow* _tmp13_; -#line 1106 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = parent_window; -#line 1106 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp13_ != NULL) { -#line 8499 "Page.c" - GdkWindow* _tmp14_; - GdkCursor* _tmp15_; -#line 1106 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = parent_window; -#line 1106 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = gdk_window_get_cursor (_tmp14_); -#line 1106 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = _tmp15_ == NULL; -#line 8508 "Page.c" - } else { -#line 1106 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = FALSE; -#line 8512 "Page.c" - } -#line 1106 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp12_) { -#line 1106 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 8518 "Page.c" - } - } -#line 1104 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = FALSE; -#line 1105 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = parent_window; -#line 1105 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = gdk_window_get_parent (_tmp16_); -#line 1105 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = _g_object_ref0 (_tmp17_); -#line 1105 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (parent_window); -#line 1105 "/home/jens/Source/shotwell/src/Page.vala" - parent_window = _tmp18_; -#line 8533 "Page.c" - } - } -#line 1108 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = parent_window; -#line 1108 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp19_ != NULL) { -#line 8540 "Page.c" - GdkWindow* _tmp20_; - GdkCursor* _tmp21_; -#line 1109 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = parent_window; -#line 1109 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = gdk_window_get_cursor (_tmp20_); -#line 1109 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_cursor = gdk_cursor_get_cursor_type (_tmp21_); -#line 8549 "Page.c" - } -#line 1094 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (parent_window); -#line 8553 "Page.c" -} - - -void -page_set_cursor_hide_time (Page* self, - gint hide_time) -{ -#line 1112 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 1113 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->cursor_hide_msec = hide_time; -#line 8565 "Page.c" -} - - -void -page_start_cursor_hiding (Page* self) -{ -#line 1116 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 1117 "/home/jens/Source/shotwell/src/Page.vala" - page_check_cursor_hiding (self); -#line 8576 "Page.c" -} - - -void -page_stop_cursor_hiding (Page* self) -{ - guint _tmp0_; -#line 1120 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 1121 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->last_timeout_id; -#line 1121 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_ != ((guint) 0)) { -#line 8590 "Page.c" - guint _tmp1_; -#line 1122 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->last_timeout_id; -#line 1122 "/home/jens/Source/shotwell/src/Page.vala" - g_source_remove (_tmp1_); -#line 8596 "Page.c" - } -} - - -void -page_suspend_cursor_hiding (Page* self) -{ - gint _tmp0_; - guint _tmp1_; -#line 1125 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 1126 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->cursor_hide_msec; -#line 1126 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->cursor_hide_time_cached = _tmp0_; -#line 1128 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->last_timeout_id; -#line 1128 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ != ((guint) 0)) { -#line 8616 "Page.c" - guint _tmp2_; -#line 1129 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->priv->last_timeout_id; -#line 1129 "/home/jens/Source/shotwell/src/Page.vala" - g_source_remove (_tmp2_); -#line 8622 "Page.c" - } -#line 1131 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->cursor_hide_msec = 0; -#line 8626 "Page.c" -} - - -void -page_restore_cursor_hiding (Page* self) -{ - gint _tmp0_; -#line 1134 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 1135 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->cursor_hide_time_cached; -#line 1135 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->cursor_hide_msec = _tmp0_; -#line 1136 "/home/jens/Source/shotwell/src/Page.vala" - page_check_cursor_hiding (self); -#line 8642 "Page.c" -} - - -static void -page_real_set_page_cursor (Page* self, - GdkCursorType cursor_type) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; -#line 1141 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_cursor = cursor_type; -#line 1143 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->cursor_hidden; -#line 1143 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp1_) { -#line 8658 "Page.c" - GtkWidget* _tmp2_; -#line 1143 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->priv->event_source; -#line 1143 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = _tmp2_ != NULL; -#line 8664 "Page.c" - } else { -#line 1143 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = FALSE; -#line 8668 "Page.c" - } -#line 1143 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_) { -#line 8672 "Page.c" - GdkDisplay* display = NULL; - GtkWidget* _tmp3_; - GdkWindow* _tmp4_; - GdkDisplay* _tmp5_; - GdkDisplay* _tmp6_; - GtkWidget* _tmp7_; - GdkWindow* _tmp8_; - GdkDisplay* _tmp9_; - GdkCursor* _tmp10_; - GdkCursor* _tmp11_; -#line 1144 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = self->priv->event_source; -#line 1144 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = gtk_widget_get_window (_tmp3_); -#line 1144 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = gdk_window_get_display (_tmp4_); -#line 1144 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = _g_object_ref0 (_tmp5_); -#line 1144 "/home/jens/Source/shotwell/src/Page.vala" - display = _tmp6_; -#line 1145 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = self->priv->event_source; -#line 1145 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = gtk_widget_get_window (_tmp7_); -#line 1145 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = display; -#line 1145 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = gdk_cursor_new_for_display (_tmp9_, cursor_type); -#line 1145 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = _tmp10_; -#line 1145 "/home/jens/Source/shotwell/src/Page.vala" - gdk_window_set_cursor (_tmp8_, _tmp11_); -#line 1145 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp11_); -#line 1143 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (display); -#line 8709 "Page.c" - } -} - - -void -page_set_page_cursor (Page* self, - GdkCursorType cursor_type) -{ -#line 1140 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 1140 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_GET_CLASS (self)->set_page_cursor (self, cursor_type); -#line 8722 "Page.c" -} - - -static gboolean -_page_on_hide_cursor_gsource_func (gpointer self) -{ - gboolean result; - result = page_on_hide_cursor ((Page*) self); -#line 1158 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8733 "Page.c" -} - - -static void -page_check_cursor_hiding (Page* self) -{ - gboolean _tmp0_; - gint _tmp2_; -#line 1149 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 1150 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->cursor_hidden; -#line 1150 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_) { -#line 8748 "Page.c" - GdkCursorType _tmp1_; -#line 1151 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->cursor_hidden = FALSE; -#line 1152 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->last_cursor; -#line 1152 "/home/jens/Source/shotwell/src/Page.vala" - page_set_page_cursor (self, _tmp1_); -#line 8756 "Page.c" - } -#line 1155 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->priv->cursor_hide_msec; -#line 1155 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp2_ != 0) { -#line 8762 "Page.c" - guint _tmp3_; - gint _tmp5_; -#line 1156 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = self->priv->last_timeout_id; -#line 1156 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_ != ((guint) 0)) { -#line 8769 "Page.c" - guint _tmp4_; -#line 1157 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = self->priv->last_timeout_id; -#line 1157 "/home/jens/Source/shotwell/src/Page.vala" - g_source_remove (_tmp4_); -#line 8775 "Page.c" - } -#line 1158 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->priv->cursor_hide_msec; -#line 1158 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_timeout_id = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) _tmp5_, _page_on_hide_cursor_gsource_func, g_object_ref (self), g_object_unref); -#line 8781 "Page.c" - } -} - - -static gboolean -page_on_hide_cursor (Page* self) -{ - gboolean result = FALSE; - GtkWidget* _tmp0_; -#line 1162 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), FALSE); -#line 1163 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->cursor_hidden = TRUE; -#line 1165 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->event_source; -#line 1165 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_ != NULL) { -#line 8799 "Page.c" - GdkDisplay* display = NULL; - GtkWidget* _tmp1_; - GdkWindow* _tmp2_; - GdkDisplay* _tmp3_; - GdkDisplay* _tmp4_; - GtkWidget* _tmp5_; - GdkWindow* _tmp6_; - GdkDisplay* _tmp7_; - GdkCursor* _tmp8_; - GdkCursor* _tmp9_; -#line 1166 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->event_source; -#line 1166 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = gtk_widget_get_window (_tmp1_); -#line 1166 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = gdk_window_get_display (_tmp2_); -#line 1166 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = _g_object_ref0 (_tmp3_); -#line 1166 "/home/jens/Source/shotwell/src/Page.vala" - display = _tmp4_; -#line 1167 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->priv->event_source; -#line 1167 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = gtk_widget_get_window (_tmp5_); -#line 1167 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = display; -#line 1167 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = gdk_cursor_new_for_display (_tmp7_, GDK_BLANK_CURSOR); -#line 1167 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = _tmp8_; -#line 1167 "/home/jens/Source/shotwell/src/Page.vala" - gdk_window_set_cursor (_tmp6_, _tmp9_); -#line 1167 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp9_); -#line 1165 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (display); -#line 8836 "Page.c" - } -#line 1171 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_timeout_id = (guint) 0; -#line 1173 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 1173 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 8844 "Page.c" -} - - -void -page_update_menu_item_label (Page* self, - const gchar* id, - const gchar* new_label) -{ - AppWindow* _tmp0_; - AppWindow* _tmp1_; -#line 1176 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (self)); -#line 1176 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (id != NULL); -#line 1176 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (new_label != NULL); -#line 1178 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = app_window_get_instance (); -#line 1178 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 1178 "/home/jens/Source/shotwell/src/Page.vala" - app_window_update_menu_item_label (_tmp1_, id, new_label); -#line 1178 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp1_); -#line 8869 "Page.c" -} - - -GMenuModel* -page_find_extension_point (Page* self, - GMenuModel* model, - const gchar* extension_point) -{ - GMenuModel* result = NULL; - gint items = 0; - GMenuModel* section = NULL; -#line 1181 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (self), NULL); -#line 1181 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (G_IS_MENU_MODEL (model), NULL); -#line 1181 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (extension_point != NULL, NULL); -#line 1183 "/home/jens/Source/shotwell/src/Page.vala" - items = g_menu_model_get_n_items (model); -#line 1184 "/home/jens/Source/shotwell/src/Page.vala" - section = NULL; -#line 8891 "Page.c" - { - gint i = 0; -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" - i = 0; -#line 8896 "Page.c" - { - gboolean _tmp0_ = FALSE; -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = TRUE; -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" - while (TRUE) { -#line 8903 "Page.c" - gboolean _tmp2_ = FALSE; - gint _tmp3_; - gint _tmp4_; - gchar* name = NULL; - gint _tmp6_; - const gchar* _tmp7_; -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp0_) { -#line 8912 "Page.c" - gint _tmp1_; -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = i; -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" - i = _tmp1_ + 1; -#line 8918 "Page.c" - } -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = FALSE; -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = i; -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = items; -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_ < _tmp4_) { -#line 8928 "Page.c" - GMenuModel* _tmp5_; -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = section; -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp5_ == NULL; -#line 8934 "Page.c" - } else { -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = FALSE; -#line 8938 "Page.c" - } -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp2_) { -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 8944 "Page.c" - } -#line 1187 "/home/jens/Source/shotwell/src/Page.vala" - name = NULL; -#line 1188 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = i; -#line 1188 "/home/jens/Source/shotwell/src/Page.vala" - g_menu_model_get_item_attribute (model, _tmp6_, "id", "s", &name, NULL); -#line 1189 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = name; -#line 1189 "/home/jens/Source/shotwell/src/Page.vala" - if (g_strcmp0 (_tmp7_, extension_point) == 0) { -#line 8956 "Page.c" - gint _tmp8_; - GMenuModel* _tmp9_; -#line 1190 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = i; -#line 1190 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = g_menu_model_get_item_link (model, _tmp8_, G_MENU_LINK_SECTION); -#line 1190 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (section); -#line 1190 "/home/jens/Source/shotwell/src/Page.vala" - section = _tmp9_; -#line 8967 "Page.c" - } else { - GMenuModel* subsection = NULL; - gint _tmp10_; - GMenuModel* _tmp11_; - GMenuModel* _tmp12_; - gint sub_items = 0; - GMenuModel* _tmp13_; -#line 1192 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = i; -#line 1192 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = g_menu_model_get_item_link (model, _tmp10_, G_MENU_LINK_SECTION); -#line 1192 "/home/jens/Source/shotwell/src/Page.vala" - subsection = _tmp11_; -#line 1194 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = subsection; -#line 1194 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp12_ == NULL) { -#line 1195 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (subsection); -#line 1195 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (name); -#line 1195 "/home/jens/Source/shotwell/src/Page.vala" - continue; -#line 8991 "Page.c" - } -#line 1198 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = subsection; -#line 1198 "/home/jens/Source/shotwell/src/Page.vala" - sub_items = g_menu_model_get_n_items (_tmp13_); -#line 8997 "Page.c" - { - gint j = 0; -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" - j = 0; -#line 9002 "Page.c" - { - gboolean _tmp14_ = FALSE; -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = TRUE; -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" - while (TRUE) { -#line 9009 "Page.c" - gboolean _tmp16_ = FALSE; - gint _tmp17_; - gint _tmp18_; - GMenuModel* submenu = NULL; - GMenuModel* _tmp20_; - gint _tmp21_; - GMenuModel* _tmp22_; - GMenuModel* _tmp23_; -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp14_) { -#line 9020 "Page.c" - gint _tmp15_; -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = j; -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" - j = _tmp15_ + 1; -#line 9026 "Page.c" - } -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = FALSE; -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = j; -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = sub_items; -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp17_ < _tmp18_) { -#line 9036 "Page.c" - GMenuModel* _tmp19_; -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = section; -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = _tmp19_ == NULL; -#line 9042 "Page.c" - } else { -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = FALSE; -#line 9046 "Page.c" - } -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp16_) { -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 9052 "Page.c" - } -#line 1200 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = subsection; -#line 1200 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = j; -#line 1200 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = g_menu_model_get_item_link (_tmp20_, _tmp21_, G_MENU_LINK_SUBMENU); -#line 1200 "/home/jens/Source/shotwell/src/Page.vala" - submenu = _tmp22_; -#line 1202 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = submenu; -#line 1202 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp23_ != NULL) { -#line 9066 "Page.c" - GMenuModel* _tmp24_; - GMenuModel* _tmp25_; -#line 1203 "/home/jens/Source/shotwell/src/Page.vala" - _tmp24_ = submenu; -#line 1203 "/home/jens/Source/shotwell/src/Page.vala" - _tmp25_ = page_find_extension_point (self, _tmp24_, extension_point); -#line 1203 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (section); -#line 1203 "/home/jens/Source/shotwell/src/Page.vala" - section = _tmp25_; -#line 9077 "Page.c" - } -#line 1199 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (submenu); -#line 9081 "Page.c" - } - } - } -#line 1189 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (subsection); -#line 9087 "Page.c" - } -#line 1186 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (name); -#line 9091 "Page.c" - } - } - } -#line 1210 "/home/jens/Source/shotwell/src/Page.vala" - result = section; -#line 1210 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 9099 "Page.c" -} - - -static void -page_class_init (PageClass * klass) -{ -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - page_parent_class = g_type_class_peek_parent (klass); -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - g_type_class_add_private (klass, sizeof (PagePrivate)); -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((GtkWidgetClass *) klass)->destroy = (void (*) (GtkWidget *)) page_real_destroy; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->set_page_name = (void (*) (Page *, const gchar*)) page_real_set_page_name; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->set_container = (void (*) (Page *, GtkWindow*)) page_real_set_container; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->clear_container = (void (*) (Page *)) page_real_clear_container; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->get_toolbar = (GtkToolbar* (*) (Page *)) page_real_get_toolbar; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->get_page_context_menu = (GtkMenu* (*) (Page *)) page_real_get_page_context_menu; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->switching_from = (void (*) (Page *)) page_real_switching_from; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->switched_to = (void (*) (Page *)) page_real_switched_to; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->ready = (void (*) (Page *)) page_real_ready; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->switching_to_fullscreen = (void (*) (Page *, FullscreenWindow*)) page_real_switching_to_fullscreen; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->returning_from_fullscreen = (void (*) (Page *, FullscreenWindow*)) page_real_returning_from_fullscreen; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) page_real_add_actions; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) page_real_remove_actions; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) page_real_init_collect_ui_filenames; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->init_collect_injection_groups = (InjectionGroup** (*) (Page *, int*)) page_real_init_collect_injection_groups; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->init_actions = (void (*) (Page *, gint, gint)) page_real_init_actions; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) page_real_update_actions; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->source_drag_failed = (gboolean (*) (Page *, GdkDragContext*, GtkDragResult)) page_real_source_drag_failed; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_left_click = (gboolean (*) (Page *, GdkEventButton*)) page_real_on_left_click; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_middle_click = (gboolean (*) (Page *, GdkEventButton*)) page_real_on_middle_click; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_right_click = (gboolean (*) (Page *, GdkEventButton*)) page_real_on_right_click; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_left_released = (gboolean (*) (Page *, GdkEventButton*)) page_real_on_left_released; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_middle_released = (gboolean (*) (Page *, GdkEventButton*)) page_real_on_middle_released; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_right_released = (gboolean (*) (Page *, GdkEventButton*)) page_real_on_right_released; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_ctrl_pressed = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_ctrl_pressed; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_ctrl_released = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_ctrl_released; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_alt_pressed = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_alt_pressed; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_alt_released = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_alt_released; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_shift_pressed = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_shift_pressed; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_shift_released = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_shift_released; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_super_pressed = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_super_pressed; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_super_released = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_super_released; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_app_key_pressed = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_app_key_pressed; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_app_key_released = (gboolean (*) (Page *, GdkEventKey*)) page_real_on_app_key_released; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_move = (void (*) (Page *, GdkRectangle*)) page_real_on_move; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_move_start = (void (*) (Page *, GdkRectangle*)) page_real_on_move_start; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_move_finished = (void (*) (Page *, GdkRectangle*)) page_real_on_move_finished; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_resize = (void (*) (Page *, GdkRectangle*)) page_real_on_resize; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_resize_start = (void (*) (Page *, GdkRectangle*)) page_real_on_resize_start; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_resize_finished = (void (*) (Page *, GdkRectangle*)) page_real_on_resize_finished; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_configure = (gboolean (*) (Page *, GdkEventConfigure*, GdkRectangle*)) page_real_on_configure; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_motion = (gboolean (*) (Page *, GdkEventMotion*, gint, gint, GdkModifierType)) page_real_on_motion; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_leave_notify_event = (gboolean (*) (Page *)) page_real_on_leave_notify_event; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_mousewheel_up = (gboolean (*) (Page *, GdkEventScroll*)) page_real_on_mousewheel_up; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_mousewheel_down = (gboolean (*) (Page *, GdkEventScroll*)) page_real_on_mousewheel_down; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_mousewheel_left = (gboolean (*) (Page *, GdkEventScroll*)) page_real_on_mousewheel_left; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_mousewheel_right = (gboolean (*) (Page *, GdkEventScroll*)) page_real_on_mousewheel_right; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_context_keypress = (gboolean (*) (Page *)) page_real_on_context_keypress; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_context_buttonpress = (gboolean (*) (Page *, GdkEventButton*)) page_real_on_context_buttonpress; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_context_invoked = (gboolean (*) (Page *)) page_real_on_context_invoked; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->set_page_cursor = (void (*) (Page *, GdkCursorType)) page_real_set_page_cursor; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - G_OBJECT_CLASS (klass)->finalize = page_finalize; -#line 9214 "Page.c" -} - - -static void -page_instance_init (Page * self) -{ - GtkBuilder* _tmp0_; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - self->priv = PAGE_GET_PRIVATE (self); -#line 61 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = gtk_builder_new (); -#line 61 "/home/jens/Source/shotwell/src/Page.vala" - self->builder = _tmp0_; -#line 63 "/home/jens/Source/shotwell/src/Page.vala" - self->in_view = FALSE; -#line 66 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->view = NULL; -#line 67 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->container = NULL; -#line 69 "/home/jens/Source/shotwell/src/Page.vala" - memset (&self->priv->last_position, 0, sizeof (GdkRectangle)); -#line 70 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->event_source = NULL; -#line 71 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->dnd_enabled = FALSE; -#line 72 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_configure_ms = (gulong) 0; -#line 73 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->report_move_finished = FALSE; -#line 74 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->report_resize_finished = FALSE; -#line 75 "/home/jens/Source/shotwell/src/Page.vala" - memset (&self->priv->last_down, 0, sizeof (GdkPoint)); -#line 76 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->is_destroyed = FALSE; -#line 77 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->ctrl_pressed = FALSE; -#line 78 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->alt_pressed = FALSE; -#line 79 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->shift_pressed = FALSE; -#line 80 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->super_pressed = FALSE; -#line 81 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_cursor = GDK_LEFT_PTR; -#line 82 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->cursor_hidden = FALSE; -#line 83 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->cursor_hide_msec = 0; -#line 84 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_timeout_id = (guint) 0; -#line 85 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->cursor_hide_time_cached = 0; -#line 86 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->are_actions_attached = FALSE; -#line 87 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->update_actions_scheduler = NULL; -#line 205 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->menubar_injected = FALSE; -#line 9274 "Page.c" -} - - -static void -page_finalize (GObject * obj) -{ - Page * self; -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PAGE, Page); -#line 61 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->builder); -#line 62 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->toolbar); -#line 65 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (self->priv->page_name); -#line 66 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (self->priv->view); -#line 67 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->container); -#line 68 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (self->priv->toolbar_path); -#line 70 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->event_source); -#line 87 "/home/jens/Source/shotwell/src/Page.vala" - _one_shot_scheduler_unref0 (self->priv->update_actions_scheduler); -#line 58 "/home/jens/Source/shotwell/src/Page.vala" - G_OBJECT_CLASS (page_parent_class)->finalize (obj); -#line 9302 "Page.c" -} - - -GType -page_get_type (void) -{ - static volatile gsize page_type_id__volatile = 0; - if (g_once_init_enter (&page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Page), 0, (GInstanceInitFunc) page_instance_init, NULL }; - GType page_type_id; - page_type_id = g_type_register_static (gtk_scrolled_window_get_type (), "Page", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&page_type_id__volatile, page_type_id); - } - return page_type_id__volatile; -} - - -GType -checkerboard_page_activator_get_type (void) -{ - static volatile gsize checkerboard_page_activator_type_id__volatile = 0; - if (g_once_init_enter (&checkerboard_page_activator_type_id__volatile)) { - static const GEnumValue values[] = {{CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, "CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD", "keyboard"}, {CHECKERBOARD_PAGE_ACTIVATOR_MOUSE, "CHECKERBOARD_PAGE_ACTIVATOR_MOUSE", "mouse"}, {0, NULL, NULL}}; - GType checkerboard_page_activator_type_id; - checkerboard_page_activator_type_id = g_enum_register_static ("CheckerboardPageActivator", values); - g_once_init_leave (&checkerboard_page_activator_type_id__volatile, checkerboard_page_activator_type_id); - } - return checkerboard_page_activator_type_id__volatile; -} - - -static void -_checkerboard_page_on_items_hidden_view_collection_items_hidden (ViewCollection* _sender, - GeeCollection* hidden, - gpointer self) -{ -#line 1272 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_on_items_hidden ((CheckerboardPage*) self, hidden); -#line 9341 "Page.c" -} - - -static void -_checkerboard_page_on_contents_altered_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self) -{ -#line 1273 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_on_contents_altered ((CheckerboardPage*) self, added, removed); -#line 9353 "Page.c" -} - - -static void -_checkerboard_page_on_items_state_changed_view_collection_items_state_changed (ViewCollection* _sender, - GeeIterable* changed, - gpointer self) -{ -#line 1274 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_on_items_state_changed ((CheckerboardPage*) self, changed); -#line 9364 "Page.c" -} - - -static void -_checkerboard_page_on_items_visibility_changed_view_collection_items_visibility_changed (ViewCollection* _sender, - GeeCollection* changed, - gpointer self) -{ -#line 1275 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_on_items_visibility_changed ((CheckerboardPage*) self, changed); -#line 9375 "Page.c" -} - - -CheckerboardPage* -checkerboard_page_construct (GType object_type, - const gchar* page_name) -{ - CheckerboardPage * self = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - CheckerboardLayout* _tmp2_; - CheckerboardLayout* _tmp3_; - CheckerboardLayout* _tmp4_; - GtkViewport* _tmp5_; - GtkViewport* _tmp6_; - GtkViewport* _tmp7_; - CheckerboardLayout* _tmp8_; - CheckerboardLayout* _tmp9_; - GtkAdjustment* _tmp10_; - GtkAdjustment* _tmp11_; - GtkViewport* _tmp12_; - ViewCollection* _tmp13_; - ViewCollection* _tmp14_; - ViewCollection* _tmp15_; - ViewCollection* _tmp16_; - ViewCollection* _tmp17_; - ViewCollection* _tmp18_; - ViewCollection* _tmp19_; - ViewCollection* _tmp20_; -#line 1249 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (page_name != NULL, NULL); -#line 1250 "/home/jens/Source/shotwell/src/Page.vala" - self = (CheckerboardPage*) page_construct (object_type, page_name); -#line 1252 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1252 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 1252 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = checkerboard_layout_new (_tmp1_); -#line 1252 "/home/jens/Source/shotwell/src/Page.vala" - g_object_ref_sink (_tmp2_); -#line 1252 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->layout); -#line 1252 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->layout = _tmp2_; -#line 1252 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp1_); -#line 1253 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = self->priv->layout; -#line 1253 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_layout_set_name (_tmp3_, page_name); -#line 1255 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = self->priv->layout; -#line 1255 "/home/jens/Source/shotwell/src/Page.vala" - page_set_event_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget)); -#line 1257 "/home/jens/Source/shotwell/src/Page.vala" - gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), (guint) 0); -#line 1258 "/home/jens/Source/shotwell/src/Page.vala" - gtk_scrolled_window_set_shadow_type (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow), GTK_SHADOW_NONE); -#line 1260 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->priv->viewport; -#line 1260 "/home/jens/Source/shotwell/src/Page.vala" - gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_container_get_type (), GtkContainer), (guint) 0); -#line 1261 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->priv->viewport; -#line 1261 "/home/jens/Source/shotwell/src/Page.vala" - gtk_viewport_set_shadow_type (_tmp6_, GTK_SHADOW_NONE); -#line 1263 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = self->priv->viewport; -#line 1263 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = self->priv->layout; -#line 1263 "/home/jens/Source/shotwell/src/Page.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget)); -#line 1267 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = self->priv->layout; -#line 1267 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = gtk_scrolled_window_get_hadjustment (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow)); -#line 1267 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = gtk_scrolled_window_get_vadjustment (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow)); -#line 1267 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_layout_set_adjustments (_tmp9_, _tmp10_, _tmp11_); -#line 1269 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = self->priv->viewport; -#line 1269 "/home/jens/Source/shotwell/src/Page.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget)); -#line 1272 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1272 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = _tmp13_; -#line 1272 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (_tmp14_, "items-hidden", (GCallback) _checkerboard_page_on_items_hidden_view_collection_items_hidden, self, 0); -#line 1272 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp14_); -#line 1273 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1273 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = _tmp15_; -#line 1273 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _checkerboard_page_on_contents_altered_data_collection_contents_altered, self, 0); -#line 1273 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp16_); -#line 1274 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1274 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = _tmp17_; -#line 1274 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (_tmp18_, "items-state-changed", (GCallback) _checkerboard_page_on_items_state_changed_view_collection_items_state_changed, self, 0); -#line 1274 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp18_); -#line 1275 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1275 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = _tmp19_; -#line 1275 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (_tmp20_, "items-visibility-changed", (GCallback) _checkerboard_page_on_items_visibility_changed_view_collection_items_visibility_changed, self, 0); -#line 1275 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp20_); -#line 1278 "/home/jens/Source/shotwell/src/Page.vala" - gtk_scrolled_window_set_policy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); -#line 1249 "/home/jens/Source/shotwell/src/Page.vala" - return self; -#line 9497 "Page.c" -} - - -void -checkerboard_page_init_item_context_menu (CheckerboardPage* self, - const gchar* path) -{ - gchar* _tmp0_; -#line 1281 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1281 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (path != NULL); -#line 1282 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = g_strdup (path); -#line 1282 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (self->priv->item_context_menu_path); -#line 1282 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->item_context_menu_path = _tmp0_; -#line 9516 "Page.c" -} - - -void -checkerboard_page_init_page_context_menu (CheckerboardPage* self, - const gchar* path) -{ - gchar* _tmp0_; -#line 1285 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1285 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (path != NULL); -#line 1286 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = g_strdup (path); -#line 1286 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (self->priv->page_context_menu_path); -#line 1286 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->page_context_menu_path = _tmp0_; -#line 9535 "Page.c" -} - - -GtkMenu* -checkerboard_page_get_context_menu (CheckerboardPage* self) -{ - GtkMenu* result = NULL; - GtkMenu* _tmp0_ = NULL; - ViewCollection* _tmp1_; - ViewCollection* _tmp2_; - gboolean _tmp3_; -#line 1289 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL); -#line 1291 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1291 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_; -#line 1291 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = view_collection_get_selected_count (_tmp2_) != 0; -#line 1291 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp2_); -#line 1291 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_) { -#line 9559 "Page.c" - GtkMenu* _tmp4_; -#line 1291 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = checkerboard_page_get_item_context_menu (self); -#line 1291 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp0_); -#line 1291 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = _tmp4_; -#line 9567 "Page.c" - } else { - GtkMenu* _tmp5_; -#line 1292 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = page_get_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1292 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp0_); -#line 1292 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = _tmp5_; -#line 9576 "Page.c" - } -#line 1291 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp0_; -#line 1291 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 9582 "Page.c" -} - - -static GtkMenu* -checkerboard_page_real_get_item_context_menu (CheckerboardPage* self) -{ - GtkMenu* result = NULL; - GtkMenu* _tmp0_; - GtkMenu* _tmp8_; - GtkMenu* _tmp9_; -#line 1297 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->item_context_menu; -#line 1297 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_ == NULL) { -#line 9597 "Page.c" - GMenuModel* model = NULL; - GtkBuilder* _tmp1_; - const gchar* _tmp2_; - GObject* _tmp3_; - GMenuModel* _tmp4_; - GMenuModel* _tmp5_; - GtkMenu* _tmp6_; - GtkMenu* _tmp7_; -#line 1298 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder; -#line 1298 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->priv->item_context_menu_path; -#line 1298 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = gtk_builder_get_object (_tmp1_, _tmp2_); -#line 1298 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp3_) : NULL); -#line 1298 "/home/jens/Source/shotwell/src/Page.vala" - model = _tmp4_; -#line 1300 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = model; -#line 1300 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = (GtkMenu*) gtk_menu_new_from_model (_tmp5_); -#line 1300 "/home/jens/Source/shotwell/src/Page.vala" - g_object_ref_sink (_tmp6_); -#line 1300 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->item_context_menu); -#line 1300 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->item_context_menu = _tmp6_; -#line 1301 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = self->priv->item_context_menu; -#line 1301 "/home/jens/Source/shotwell/src/Page.vala" - gtk_menu_attach_to_widget (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), NULL); -#line 1297 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (model); -#line 9632 "Page.c" - } -#line 1304 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = self->priv->item_context_menu; -#line 1304 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = _g_object_ref0 (_tmp8_); -#line 1304 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp9_; -#line 1304 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 9642 "Page.c" -} - - -GtkMenu* -checkerboard_page_get_item_context_menu (CheckerboardPage* self) -{ -#line 1296 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL); -#line 1296 "/home/jens/Source/shotwell/src/Page.vala" - return CHECKERBOARD_PAGE_GET_CLASS (self)->get_item_context_menu (self); -#line 9653 "Page.c" -} - - -static GtkMenu* -checkerboard_page_real_get_page_context_menu (Page* base) -{ - CheckerboardPage * self; - GtkMenu* result = NULL; - const gchar* _tmp0_; - GtkMenu* _tmp1_; - GtkMenu* _tmp9_; - GtkMenu* _tmp10_; -#line 1308 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1309 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->page_context_menu_path; -#line 1309 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_ == NULL) { -#line 1310 "/home/jens/Source/shotwell/src/Page.vala" - result = NULL; -#line 1310 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 9676 "Page.c" - } -#line 1312 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->page_context_menu; -#line 1312 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ == NULL) { -#line 9682 "Page.c" - GMenuModel* model = NULL; - GtkBuilder* _tmp2_; - const gchar* _tmp3_; - GObject* _tmp4_; - GMenuModel* _tmp5_; - GMenuModel* _tmp6_; - GtkMenu* _tmp7_; - GtkMenu* _tmp8_; -#line 1313 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder; -#line 1313 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = self->priv->page_context_menu_path; -#line 1313 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = gtk_builder_get_object (_tmp2_, _tmp3_); -#line 1313 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp4_) : NULL); -#line 1313 "/home/jens/Source/shotwell/src/Page.vala" - model = _tmp5_; -#line 1315 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = model; -#line 1315 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = (GtkMenu*) gtk_menu_new_from_model (_tmp6_); -#line 1315 "/home/jens/Source/shotwell/src/Page.vala" - g_object_ref_sink (_tmp7_); -#line 1315 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->page_context_menu); -#line 1315 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->page_context_menu = _tmp7_; -#line 1316 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = self->priv->page_context_menu; -#line 1316 "/home/jens/Source/shotwell/src/Page.vala" - gtk_menu_attach_to_widget (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), NULL); -#line 1312 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (model); -#line 9717 "Page.c" - } -#line 1319 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = self->priv->page_context_menu; -#line 1319 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = _g_object_ref0 (_tmp9_); -#line 1319 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp10_; -#line 1319 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 9727 "Page.c" -} - - -static gboolean -checkerboard_page_real_on_context_keypress (Page* base) -{ - CheckerboardPage * self; - gboolean result = FALSE; - GtkMenu* _tmp0_; - GtkMenu* _tmp1_; - gboolean _tmp2_; -#line 1322 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1323 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = checkerboard_page_get_context_menu (self); -#line 1323 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 1323 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = page_popup_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp1_, NULL); -#line 1323 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp1_); -#line 1323 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp2_; -#line 1323 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 9753 "Page.c" -} - - -static gchar* -checkerboard_page_real_get_view_empty_message (CheckerboardPage* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 1327 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = g_strdup (_ ("No photos/videos")); -#line 1327 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp0_; -#line 1327 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 9768 "Page.c" -} - - -gchar* -checkerboard_page_get_view_empty_message (CheckerboardPage* self) -{ -#line 1326 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL); -#line 1326 "/home/jens/Source/shotwell/src/Page.vala" - return CHECKERBOARD_PAGE_GET_CLASS (self)->get_view_empty_message (self); -#line 9779 "Page.c" -} - - -static gchar* -checkerboard_page_real_get_filter_no_match_message (CheckerboardPage* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 1331 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = g_strdup (_ ("No photos/videos found which match the current filter")); -#line 1331 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp0_; -#line 1331 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 9794 "Page.c" -} - - -gchar* -checkerboard_page_get_filter_no_match_message (CheckerboardPage* self) -{ -#line 1330 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL); -#line 1330 "/home/jens/Source/shotwell/src/Page.vala" - return CHECKERBOARD_PAGE_GET_CLASS (self)->get_filter_no_match_message (self); -#line 9805 "Page.c" -} - - -static void -checkerboard_page_real_on_item_activated (CheckerboardPage* self, - CheckerboardItem* item, - CheckerboardPageActivator activator, - CheckerboardPageKeyboardModifiers* modifiers) -{ -#line 1334 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (item)); -#line 1334 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (modifiers != NULL); -#line 9819 "Page.c" -} - - -void -checkerboard_page_on_item_activated (CheckerboardPage* self, - CheckerboardItem* item, - CheckerboardPageActivator activator, - CheckerboardPageKeyboardModifiers* modifiers) -{ -#line 1334 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1334 "/home/jens/Source/shotwell/src/Page.vala" - CHECKERBOARD_PAGE_GET_CLASS (self)->on_item_activated (self, item, activator, modifiers); -#line 9833 "Page.c" -} - - -CheckerboardLayout* -checkerboard_page_get_checkerboard_layout (CheckerboardPage* self) -{ - CheckerboardLayout* result = NULL; - CheckerboardLayout* _tmp0_; - CheckerboardLayout* _tmp1_; -#line 1338 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL); -#line 1339 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->layout; -#line 1339 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 1339 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp1_; -#line 1339 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 9853 "Page.c" -} - - -static SearchViewFilter* -checkerboard_page_real_get_search_view_filter (CheckerboardPage* self) -{ -#line 1343 "/home/jens/Source/shotwell/src/Page.vala" - g_critical ("Type `%s' does not implement abstract method `checkerboard_page_get_search_view_filter'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 1343 "/home/jens/Source/shotwell/src/Page.vala" - return NULL; -#line 9864 "Page.c" -} - - -SearchViewFilter* -checkerboard_page_get_search_view_filter (CheckerboardPage* self) -{ -#line 1343 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL); -#line 1343 "/home/jens/Source/shotwell/src/Page.vala" - return CHECKERBOARD_PAGE_GET_CLASS (self)->get_search_view_filter (self); -#line 9875 "Page.c" -} - - -static CoreViewTracker* -checkerboard_page_real_get_view_tracker (CheckerboardPage* self) -{ - CoreViewTracker* result = NULL; -#line 1346 "/home/jens/Source/shotwell/src/Page.vala" - result = NULL; -#line 1346 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 9887 "Page.c" -} - - -CoreViewTracker* -checkerboard_page_get_view_tracker (CheckerboardPage* self) -{ -#line 1345 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL); -#line 1345 "/home/jens/Source/shotwell/src/Page.vala" - return CHECKERBOARD_PAGE_GET_CLASS (self)->get_view_tracker (self); -#line 9898 "Page.c" -} - - -static void -_checkerboard_page_on_view_filter_refresh_view_filter_refresh (ViewFilter* _sender, - gpointer self) -{ -#line 1351 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_on_view_filter_refresh ((CheckerboardPage*) self); -#line 9908 "Page.c" -} - - -static void -checkerboard_page_real_switching_from (Page* base) -{ - CheckerboardPage * self; - CheckerboardLayout* _tmp0_; - SearchViewFilter* _tmp1_; - SearchViewFilter* _tmp2_; - guint _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; -#line 1349 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1350 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->layout; -#line 1350 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_layout_set_in_view (_tmp0_, FALSE); -#line 1351 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = checkerboard_page_get_search_view_filter (self); -#line 1351 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_; -#line 1351 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("refresh", TYPE_VIEW_FILTER, &_tmp3_, NULL, FALSE); -#line 1351 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_VIEW_FILTER, ViewFilter), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _checkerboard_page_on_view_filter_refresh_view_filter_refresh, self); -#line 1351 "/home/jens/Source/shotwell/src/Page.vala" - _view_filter_unref0 (_tmp2_); -#line 1354 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1354 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _tmp4_; -#line 1354 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_unselect_all (_tmp5_); -#line 1354 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp5_); -#line 1356 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_CLASS (checkerboard_page_parent_class)->switching_from (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 9948 "Page.c" -} - - -static void -checkerboard_page_real_switched_to (Page* base) -{ - CheckerboardPage * self; - CheckerboardLayout* _tmp0_; - SearchViewFilter* _tmp1_; - SearchViewFilter* _tmp2_; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - gboolean _tmp5_; -#line 1359 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1360 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->layout; -#line 1360 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_layout_set_in_view (_tmp0_, TRUE); -#line 1361 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = checkerboard_page_get_search_view_filter (self); -#line 1361 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_; -#line 1361 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_VIEW_FILTER, ViewFilter), "refresh", (GCallback) _checkerboard_page_on_view_filter_refresh_view_filter_refresh, self, 0); -#line 1361 "/home/jens/Source/shotwell/src/Page.vala" - _view_filter_unref0 (_tmp2_); -#line 1362 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_on_view_filter_refresh (self); -#line 1364 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1364 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = _tmp3_; -#line 1364 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = view_collection_get_selected_count (_tmp4_) > 0; -#line 1364 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp4_); -#line 1364 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp5_) { -#line 9988 "Page.c" - CheckerboardItem* item = NULL; - ViewCollection* _tmp6_; - ViewCollection* _tmp7_; - DataView* _tmp8_; - CheckerboardItem* _tmp9_; - GtkAdjustment* vadj = NULL; - GtkAdjustment* _tmp10_; - GtkAdjustment* _tmp11_; - gboolean _tmp12_ = FALSE; - GtkAdjustment* _tmp13_; - CheckerboardItem* _tmp14_; - GdkRectangle _tmp15_; - gint _tmp16_; -#line 1365 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1365 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = _tmp6_; -#line 1365 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = view_collection_get_selected_at (_tmp7_, 0); -#line 1365 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 1365 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp7_); -#line 1365 "/home/jens/Source/shotwell/src/Page.vala" - item = _tmp9_; -#line 1368 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = gtk_scrolled_window_get_vadjustment (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow)); -#line 1368 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = _g_object_ref0 (_tmp10_); -#line 1368 "/home/jens/Source/shotwell/src/Page.vala" - vadj = _tmp11_; -#line 1369 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = vadj; -#line 1369 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = item; -#line 1369 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = _tmp14_->allocation; -#line 1369 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = _tmp15_.y; -#line 1369 "/home/jens/Source/shotwell/src/Page.vala" - if (get_adjustment_relation (_tmp13_, _tmp16_) == ADJUSTMENT_RELATION_IN_RANGE) { -#line 10030 "Page.c" - GtkAdjustment* _tmp17_; - CheckerboardItem* _tmp18_; - GdkRectangle _tmp19_; - gint _tmp20_; - CheckerboardItem* _tmp21_; - GdkRectangle _tmp22_; - gint _tmp23_; -#line 1370 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = vadj; -#line 1370 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = item; -#line 1370 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = _tmp18_->allocation; -#line 1370 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = _tmp19_.y; -#line 1370 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = item; -#line 1370 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = _tmp21_->allocation; -#line 1370 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = _tmp22_.height; -#line 1370 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = get_adjustment_relation (_tmp17_, _tmp20_ + _tmp23_) == ADJUSTMENT_RELATION_IN_RANGE; -#line 10054 "Page.c" - } else { -#line 1369 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = FALSE; -#line 10058 "Page.c" - } -#line 1369 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp12_) { -#line 10062 "Page.c" - gint top = 0; - CheckerboardItem* _tmp24_; - GdkRectangle _tmp25_; - gint _tmp26_; - GtkAdjustment* _tmp27_; - GtkAdjustment* _tmp40_; - gint _tmp41_; -#line 1373 "/home/jens/Source/shotwell/src/Page.vala" - top = 0; -#line 1374 "/home/jens/Source/shotwell/src/Page.vala" - _tmp24_ = item; -#line 1374 "/home/jens/Source/shotwell/src/Page.vala" - _tmp25_ = _tmp24_->allocation; -#line 1374 "/home/jens/Source/shotwell/src/Page.vala" - _tmp26_ = _tmp25_.y; -#line 1374 "/home/jens/Source/shotwell/src/Page.vala" - _tmp27_ = vadj; -#line 1374 "/home/jens/Source/shotwell/src/Page.vala" - if (((gdouble) _tmp26_) < gtk_adjustment_get_value (_tmp27_)) { -#line 10082 "Page.c" - CheckerboardItem* _tmp28_; - GdkRectangle _tmp29_; - gint _tmp30_; - gint _tmp31_; -#line 1375 "/home/jens/Source/shotwell/src/Page.vala" - _tmp28_ = item; -#line 1375 "/home/jens/Source/shotwell/src/Page.vala" - _tmp29_ = _tmp28_->allocation; -#line 1375 "/home/jens/Source/shotwell/src/Page.vala" - _tmp30_ = _tmp29_.y; -#line 1375 "/home/jens/Source/shotwell/src/Page.vala" - top = _tmp30_; -#line 1376 "/home/jens/Source/shotwell/src/Page.vala" - _tmp31_ = top; -#line 1376 "/home/jens/Source/shotwell/src/Page.vala" - top = _tmp31_ - (CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING / 2); -#line 10099 "Page.c" - } else { - CheckerboardItem* _tmp32_; - GdkRectangle _tmp33_; - gint _tmp34_; - CheckerboardItem* _tmp35_; - GdkRectangle _tmp36_; - gint _tmp37_; - GtkAdjustment* _tmp38_; - gint _tmp39_; -#line 1378 "/home/jens/Source/shotwell/src/Page.vala" - _tmp32_ = item; -#line 1378 "/home/jens/Source/shotwell/src/Page.vala" - _tmp33_ = _tmp32_->allocation; -#line 1378 "/home/jens/Source/shotwell/src/Page.vala" - _tmp34_ = _tmp33_.y; -#line 1378 "/home/jens/Source/shotwell/src/Page.vala" - _tmp35_ = item; -#line 1378 "/home/jens/Source/shotwell/src/Page.vala" - _tmp36_ = _tmp35_->allocation; -#line 1378 "/home/jens/Source/shotwell/src/Page.vala" - _tmp37_ = _tmp36_.height; -#line 1378 "/home/jens/Source/shotwell/src/Page.vala" - _tmp38_ = vadj; -#line 1378 "/home/jens/Source/shotwell/src/Page.vala" - top = (_tmp34_ + _tmp37_) - ((gint) gtk_adjustment_get_page_size (_tmp38_)); -#line 1379 "/home/jens/Source/shotwell/src/Page.vala" - _tmp39_ = top; -#line 1379 "/home/jens/Source/shotwell/src/Page.vala" - top = _tmp39_ + (CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING / 2); -#line 10129 "Page.c" - } -#line 1382 "/home/jens/Source/shotwell/src/Page.vala" - _tmp40_ = vadj; -#line 1382 "/home/jens/Source/shotwell/src/Page.vala" - _tmp41_ = top; -#line 1382 "/home/jens/Source/shotwell/src/Page.vala" - gtk_adjustment_set_value (_tmp40_, (gdouble) _tmp41_); -#line 10137 "Page.c" - } -#line 1364 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (vadj); -#line 1364 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (item); -#line 10143 "Page.c" - } -#line 1387 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_CLASS (checkerboard_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 10147 "Page.c" -} - - -static void -checkerboard_page_on_view_filter_refresh (CheckerboardPage* self) -{ -#line 1390 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1391 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_update_view_filter_message (self); -#line 10158 "Page.c" -} - - -static void -checkerboard_page_on_contents_altered (CheckerboardPage* self, - GeeIterable* added, - GeeIterable* removed) -{ -#line 1394 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1394 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added)); -#line 1394 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed)); -#line 1396 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_update_view_filter_message (self); -#line 10175 "Page.c" -} - - -static void -checkerboard_page_on_items_state_changed (CheckerboardPage* self, - GeeIterable* changed) -{ -#line 1399 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1399 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (GEE_IS_ITERABLE (changed)); -#line 1400 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_update_view_filter_message (self); -#line 10189 "Page.c" -} - - -static void -checkerboard_page_on_items_visibility_changed (CheckerboardPage* self, - GeeCollection* changed) -{ -#line 1403 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1403 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (GEE_IS_COLLECTION (changed)); -#line 1404 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_update_view_filter_message (self); -#line 10203 "Page.c" -} - - -static void -checkerboard_page_update_view_filter_message (CheckerboardPage* self) -{ - gboolean _tmp0_ = FALSE; - ViewCollection* _tmp1_; - ViewCollection* _tmp2_; - gboolean _tmp3_; -#line 1407 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1408 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1408 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_; -#line 1408 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = view_collection_are_items_filtered_out (_tmp2_); -#line 1408 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp2_); -#line 1408 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_) { -#line 10226 "Page.c" - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; -#line 1408 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1408 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _tmp4_; -#line 1408 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection)) == 0; -#line 1408 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp5_); -#line 10237 "Page.c" - } else { -#line 1408 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = FALSE; -#line 10241 "Page.c" - } -#line 1408 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_) { -#line 10245 "Page.c" - gchar* _tmp6_; - gchar* _tmp7_; -#line 1409 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = checkerboard_page_get_filter_no_match_message (self); -#line 1409 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = _tmp6_; -#line 1409 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_set_page_message (self, _tmp7_); -#line 1409 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp7_); -#line 10256 "Page.c" - } else { - ViewCollection* _tmp8_; - ViewCollection* _tmp9_; - gboolean _tmp10_; -#line 1410 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1410 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = _tmp8_; -#line 1410 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_COLLECTION, DataCollection)) == 0; -#line 1410 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp9_); -#line 1410 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp10_) { -#line 10271 "Page.c" - gchar* _tmp11_; - gchar* _tmp12_; -#line 1411 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = checkerboard_page_get_view_empty_message (self); -#line 1411 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = _tmp11_; -#line 1411 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_set_page_message (self, _tmp12_); -#line 1411 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp12_); -#line 10282 "Page.c" - } else { -#line 1413 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_unset_page_message (self); -#line 10286 "Page.c" - } - } -} - - -void -checkerboard_page_set_page_message (CheckerboardPage* self, - const gchar* message) -{ - CheckerboardLayout* _tmp0_; -#line 1417 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1417 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (message != NULL); -#line 1418 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->layout; -#line 1418 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_layout_set_message (_tmp0_, message); -#line 1419 "/home/jens/Source/shotwell/src/Page.vala" - if (page_is_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page))) { -#line 10307 "Page.c" - CheckerboardLayout* _tmp1_; -#line 1420 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->layout; -#line 1420 "/home/jens/Source/shotwell/src/Page.vala" - gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 10313 "Page.c" - } -} - - -void -checkerboard_page_unset_page_message (CheckerboardPage* self) -{ - CheckerboardLayout* _tmp0_; -#line 1423 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1424 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->layout; -#line 1424 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_layout_unset_message (_tmp0_); -#line 1425 "/home/jens/Source/shotwell/src/Page.vala" - if (page_is_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page))) { -#line 10330 "Page.c" - CheckerboardLayout* _tmp1_; -#line 1426 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->layout; -#line 1426 "/home/jens/Source/shotwell/src/Page.vala" - gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 10336 "Page.c" - } -} - - -static void -checkerboard_page_real_set_page_name (Page* base, - const gchar* name) -{ - CheckerboardPage * self; - CheckerboardLayout* _tmp0_; -#line 1429 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1429 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (name != NULL); -#line 1430 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_CLASS (checkerboard_page_parent_class)->set_page_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), name); -#line 1432 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->layout; -#line 1432 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_layout_set_name (_tmp0_, name); -#line 10357 "Page.c" -} - - -CheckerboardItem* -checkerboard_page_get_item_at_pixel (CheckerboardPage* self, - gdouble x, - gdouble y) -{ - CheckerboardItem* result = NULL; - CheckerboardLayout* _tmp0_; - CheckerboardItem* _tmp1_; -#line 1435 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), NULL); -#line 1436 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->layout; -#line 1436 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = checkerboard_layout_get_item_at_pixel (_tmp0_, x, y); -#line 1436 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp1_; -#line 1436 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 10379 "Page.c" -} - - -static void -checkerboard_page_on_items_hidden (CheckerboardPage* self, - GeeIterable* hidden) -{ -#line 1439 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1439 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (GEE_IS_ITERABLE (hidden)); -#line 10391 "Page.c" - { - GeeIterator* _view_it = NULL; - GeeIterator* _tmp0_; -#line 1440 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = gee_iterable_iterator (hidden); -#line 1440 "/home/jens/Source/shotwell/src/Page.vala" - _view_it = _tmp0_; -#line 1440 "/home/jens/Source/shotwell/src/Page.vala" - while (TRUE) { -#line 10401 "Page.c" - GeeIterator* _tmp1_; - DataView* view = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - CheckerboardItem* item = NULL; - DataView* _tmp4_; - CheckerboardItem* _tmp5_; - CheckerboardItem* _tmp6_; - CheckerboardItem* _tmp7_; - CheckerboardItem* _tmp8_; - CheckerboardItem* _tmp9_; - CheckerboardItem* _tmp10_; - CheckerboardItem* _tmp11_; -#line 1440 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _view_it; -#line 1440 "/home/jens/Source/shotwell/src/Page.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 1440 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 10421 "Page.c" - } -#line 1440 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _view_it; -#line 1440 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 1440 "/home/jens/Source/shotwell/src/Page.vala" - view = (DataView*) _tmp3_; -#line 1441 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = view; -#line 1441 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 1441 "/home/jens/Source/shotwell/src/Page.vala" - item = _tmp5_; -#line 1443 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->anchor; -#line 1443 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = item; -#line 1443 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp6_ == _tmp7_) { -#line 1444 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->anchor); -#line 1444 "/home/jens/Source/shotwell/src/Page.vala" - self->anchor = NULL; -#line 10445 "Page.c" - } -#line 1446 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = self->cursor; -#line 1446 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = item; -#line 1446 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp8_ == _tmp9_) { -#line 1447 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->cursor); -#line 1447 "/home/jens/Source/shotwell/src/Page.vala" - self->cursor = NULL; -#line 10457 "Page.c" - } -#line 1449 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = self->priv->highlighted; -#line 1449 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = item; -#line 1449 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp10_ == _tmp11_) { -#line 1450 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->highlighted); -#line 1450 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->highlighted = NULL; -#line 10469 "Page.c" - } -#line 1440 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (item); -#line 1440 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (view); -#line 10475 "Page.c" - } -#line 1440 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_view_it); -#line 10479 "Page.c" - } -} - - -static gboolean -checkerboard_page_real_key_press_event (GtkWidget* base, - GdkEventKey* event) -{ - CheckerboardPage * self; - gboolean result = FALSE; - gboolean handled = FALSE; - guint state = 0U; - GdkModifierType _tmp0_; - guint _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - GQuark _tmp5_ = 0U; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp4_label0 = 0; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp4_label1 = 0; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp4_label2 = 0; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp4_label3 = 0; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp4_label4 = 0; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp4_label5 = 0; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp4_label6 = 0; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp4_label7 = 0; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp4_label8 = 0; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp4_label9 = 0; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp4_label10 = 0; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp4_label11 = 0; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp4_label12 = 0; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp4_label13 = 0; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp4_label14 = 0; -#line 10527 "Page.c" - gboolean _tmp42_; - gboolean _tmp43_ = FALSE; -#line 1454 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1454 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1455 "/home/jens/Source/shotwell/src/Page.vala" - handled = TRUE; -#line 1458 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = event->state; -#line 1458 "/home/jens/Source/shotwell/src/Page.vala" - state = (guint) (_tmp0_ & GDK_SHIFT_MASK); -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = event->keyval; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = gdk_keyval_name (_tmp1_); -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = _tmp2_; -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = (NULL == _tmp3_) ? 0 : g_quark_from_string (_tmp3_); -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - if ((_tmp5_ == ((0 != _tmp4_label0) ? _tmp4_label0 : (_tmp4_label0 = g_quark_from_static_string ("Up")))) || (_tmp5_ == ((0 != _tmp4_label1) ? _tmp4_label1 : (_tmp4_label1 = g_quark_from_static_string ("KP_Up"))))) { -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 10552 "Page.c" - default: - { - guint _tmp6_; -#line 1463 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_move_cursor (self, COMPASS_POINT_NORTH); -#line 1464 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = state; -#line 1464 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_select_anchor_to_cursor (self, _tmp6_); -#line 1465 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 10564 "Page.c" - } - } - } else if ((_tmp5_ == ((0 != _tmp4_label2) ? _tmp4_label2 : (_tmp4_label2 = g_quark_from_static_string ("Down")))) || (_tmp5_ == ((0 != _tmp4_label3) ? _tmp4_label3 : (_tmp4_label3 = g_quark_from_static_string ("KP_Down"))))) { -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 10570 "Page.c" - default: - { - guint _tmp7_; -#line 1469 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_move_cursor (self, COMPASS_POINT_SOUTH); -#line 1470 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = state; -#line 1470 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_select_anchor_to_cursor (self, _tmp7_); -#line 1471 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 10582 "Page.c" - } - } - } else if ((_tmp5_ == ((0 != _tmp4_label4) ? _tmp4_label4 : (_tmp4_label4 = g_quark_from_static_string ("Left")))) || (_tmp5_ == ((0 != _tmp4_label5) ? _tmp4_label5 : (_tmp4_label5 = g_quark_from_static_string ("KP_Left"))))) { -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 10588 "Page.c" - default: - { - guint _tmp8_; -#line 1475 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_move_cursor (self, COMPASS_POINT_WEST); -#line 1476 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = state; -#line 1476 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_select_anchor_to_cursor (self, _tmp8_); -#line 1477 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 10600 "Page.c" - } - } - } else if ((_tmp5_ == ((0 != _tmp4_label6) ? _tmp4_label6 : (_tmp4_label6 = g_quark_from_static_string ("Right")))) || (_tmp5_ == ((0 != _tmp4_label7) ? _tmp4_label7 : (_tmp4_label7 = g_quark_from_static_string ("KP_Right"))))) { -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 10606 "Page.c" - default: - { - guint _tmp9_; -#line 1481 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_move_cursor (self, COMPASS_POINT_EAST); -#line 1482 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = state; -#line 1482 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_select_anchor_to_cursor (self, _tmp9_); -#line 1483 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 10618 "Page.c" - } - } - } else if ((_tmp5_ == ((0 != _tmp4_label8) ? _tmp4_label8 : (_tmp4_label8 = g_quark_from_static_string ("Home")))) || (_tmp5_ == ((0 != _tmp4_label9) ? _tmp4_label9 : (_tmp4_label9 = g_quark_from_static_string ("KP_Home"))))) { -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 10624 "Page.c" - default: - { - CheckerboardItem* first = NULL; - ViewCollection* _tmp10_; - ViewCollection* _tmp11_; - DataView* _tmp12_; - CheckerboardItem* _tmp13_; - CheckerboardItem* _tmp14_; - guint _tmp16_; -#line 1487 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1487 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = _tmp10_; -#line 1487 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = view_collection_get_first (_tmp11_); -#line 1487 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 1487 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp11_); -#line 1487 "/home/jens/Source/shotwell/src/Page.vala" - first = _tmp13_; -#line 1488 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = first; -#line 1488 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp14_ != NULL) { -#line 10650 "Page.c" - CheckerboardItem* _tmp15_; -#line 1489 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = first; -#line 1489 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_cursor_to_item (self, _tmp15_); -#line 10656 "Page.c" - } -#line 1490 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = state; -#line 1490 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_select_anchor_to_cursor (self, _tmp16_); -#line 1491 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (first); -#line 1491 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 10666 "Page.c" - } - } - } else if ((_tmp5_ == ((0 != _tmp4_label10) ? _tmp4_label10 : (_tmp4_label10 = g_quark_from_static_string ("End")))) || (_tmp5_ == ((0 != _tmp4_label11) ? _tmp4_label11 : (_tmp4_label11 = g_quark_from_static_string ("KP_End"))))) { -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 10672 "Page.c" - default: - { - CheckerboardItem* last = NULL; - ViewCollection* _tmp17_; - ViewCollection* _tmp18_; - DataView* _tmp19_; - CheckerboardItem* _tmp20_; - CheckerboardItem* _tmp21_; - guint _tmp23_; -#line 1495 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1495 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = _tmp17_; -#line 1495 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = view_collection_get_last (_tmp18_); -#line 1495 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 1495 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp18_); -#line 1495 "/home/jens/Source/shotwell/src/Page.vala" - last = _tmp20_; -#line 1496 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = last; -#line 1496 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp21_ != NULL) { -#line 10698 "Page.c" - CheckerboardItem* _tmp22_; -#line 1497 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = last; -#line 1497 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_cursor_to_item (self, _tmp22_); -#line 10704 "Page.c" - } -#line 1498 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = state; -#line 1498 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_select_anchor_to_cursor (self, _tmp23_); -#line 1499 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (last); -#line 1499 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 10714 "Page.c" - } - } - } else if ((_tmp5_ == ((0 != _tmp4_label12) ? _tmp4_label12 : (_tmp4_label12 = g_quark_from_static_string ("Return")))) || (_tmp5_ == ((0 != _tmp4_label13) ? _tmp4_label13 : (_tmp4_label13 = g_quark_from_static_string ("KP_Enter"))))) { -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 10720 "Page.c" - default: - { - ViewCollection* _tmp24_; - ViewCollection* _tmp25_; - gboolean _tmp26_; -#line 1503 "/home/jens/Source/shotwell/src/Page.vala" - _tmp24_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1503 "/home/jens/Source/shotwell/src/Page.vala" - _tmp25_ = _tmp24_; -#line 1503 "/home/jens/Source/shotwell/src/Page.vala" - _tmp26_ = view_collection_get_selected_count (_tmp25_) == 1; -#line 1503 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp25_); -#line 1503 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp26_) { -#line 10736 "Page.c" - ViewCollection* _tmp27_; - ViewCollection* _tmp28_; - DataView* _tmp29_; - CheckerboardItem* _tmp30_; - CheckerboardPageKeyboardModifiers _tmp31_ = {0}; -#line 1504 "/home/jens/Source/shotwell/src/Page.vala" - _tmp27_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1504 "/home/jens/Source/shotwell/src/Page.vala" - _tmp28_ = _tmp27_; -#line 1504 "/home/jens/Source/shotwell/src/Page.vala" - _tmp29_ = view_collection_get_selected_at (_tmp28_, 0); -#line 1504 "/home/jens/Source/shotwell/src/Page.vala" - _tmp30_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem); -#line 1504 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_keyboard_modifiers_init (&_tmp31_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1504 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_on_item_activated (self, _tmp30_, CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, &_tmp31_); -#line 1504 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp30_); -#line 1504 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp28_); -#line 10758 "Page.c" - } else { -#line 1507 "/home/jens/Source/shotwell/src/Page.vala" - handled = FALSE; -#line 10762 "Page.c" - } -#line 1508 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 10766 "Page.c" - } - } - } else if (_tmp5_ == ((0 != _tmp4_label14) ? _tmp4_label14 : (_tmp4_label14 = g_quark_from_static_string ("space")))) { -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 10772 "Page.c" - default: - { - Marker* marker = NULL; - ViewCollection* _tmp32_; - ViewCollection* _tmp33_; - CheckerboardLayout* _tmp34_; - CheckerboardItem* _tmp35_; - CheckerboardItem* _tmp36_; - Marker* _tmp37_; - Marker* _tmp38_; - ViewCollection* _tmp39_; - ViewCollection* _tmp40_; - Marker* _tmp41_; -#line 1511 "/home/jens/Source/shotwell/src/Page.vala" - _tmp32_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1511 "/home/jens/Source/shotwell/src/Page.vala" - _tmp33_ = _tmp32_; -#line 1511 "/home/jens/Source/shotwell/src/Page.vala" - _tmp34_ = self->priv->layout; -#line 1511 "/home/jens/Source/shotwell/src/Page.vala" - _tmp35_ = checkerboard_layout_get_cursor (_tmp34_); -#line 1511 "/home/jens/Source/shotwell/src/Page.vala" - _tmp36_ = _tmp35_; -#line 1511 "/home/jens/Source/shotwell/src/Page.vala" - _tmp37_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_DATA_OBJECT, DataObject)); -#line 1511 "/home/jens/Source/shotwell/src/Page.vala" - _tmp38_ = _tmp37_; -#line 1511 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp36_); -#line 1511 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp33_); -#line 1511 "/home/jens/Source/shotwell/src/Page.vala" - marker = _tmp38_; -#line 1512 "/home/jens/Source/shotwell/src/Page.vala" - _tmp39_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1512 "/home/jens/Source/shotwell/src/Page.vala" - _tmp40_ = _tmp39_; -#line 1512 "/home/jens/Source/shotwell/src/Page.vala" - _tmp41_ = marker; -#line 1512 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_toggle_marked (_tmp40_, _tmp41_); -#line 1512 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp40_); -#line 1513 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (marker); -#line 1513 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 10820 "Page.c" - } - } - } else { -#line 1460 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 10826 "Page.c" - default: - { -#line 1516 "/home/jens/Source/shotwell/src/Page.vala" - handled = FALSE; -#line 1517 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 10833 "Page.c" - } - } - } -#line 1520 "/home/jens/Source/shotwell/src/Page.vala" - _tmp42_ = handled; -#line 1520 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp42_) { -#line 1521 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 1521 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 10845 "Page.c" - } -#line 1523 "/home/jens/Source/shotwell/src/Page.vala" - if (GTK_WIDGET_CLASS (checkerboard_page_parent_class)->key_press_event != NULL) { -#line 1523 "/home/jens/Source/shotwell/src/Page.vala" - _tmp43_ = GTK_WIDGET_CLASS (checkerboard_page_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), gtk_widget_get_type (), GtkWidget), event); -#line 10851 "Page.c" - } else { -#line 1523 "/home/jens/Source/shotwell/src/Page.vala" - _tmp43_ = TRUE; -#line 10855 "Page.c" - } -#line 1523 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp43_; -#line 1523 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 10861 "Page.c" -} - - -static gboolean -checkerboard_page_real_on_left_click (Page* base, - GdkEventButton* event) -{ - CheckerboardPage * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - GdkEventType _tmp1_; - guint state = 0U; - GdkModifierType _tmp3_; - CheckerboardItem* item = NULL; - gdouble _tmp4_; - gdouble _tmp5_; - CheckerboardItem* _tmp6_; - CheckerboardItem* _tmp7_; - ViewCollection* _tmp92_; - ViewCollection* _tmp93_; - gboolean _tmp94_; -#line 1526 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1526 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1528 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = event->type; -#line 1528 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ != GDK_BUTTON_PRESS) { -#line 10891 "Page.c" - GdkEventType _tmp2_; -#line 1528 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = event->type; -#line 1528 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = _tmp2_ != GDK_2BUTTON_PRESS; -#line 10897 "Page.c" - } else { -#line 1528 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = FALSE; -#line 10901 "Page.c" - } -#line 1528 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_) { -#line 1529 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 1529 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 10909 "Page.c" - } -#line 1532 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = event->state; -#line 1532 "/home/jens/Source/shotwell/src/Page.vala" - state = (guint) (_tmp3_ & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)); -#line 1536 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = event->x; -#line 1536 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = event->y; -#line 1536 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = checkerboard_page_get_item_at_pixel (self, _tmp4_, _tmp5_); -#line 1536 "/home/jens/Source/shotwell/src/Page.vala" - item = _tmp6_; -#line 1537 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = item; -#line 1537 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp7_ != NULL) { -#line 10927 "Page.c" - CheckerboardLayout* _tmp8_; - CheckerboardItem* _tmp9_; - gdouble _tmp10_; - gdouble _tmp11_; - GdkModifierType _tmp12_; - guint _tmp13_; - CheckerboardLayout* _tmp68_; - CheckerboardItem* _tmp69_; -#line 1540 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = self->priv->layout; -#line 1540 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = item; -#line 1540 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = event->x; -#line 1540 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = event->y; -#line 1540 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = event->state; -#line 1540 "/home/jens/Source/shotwell/src/Page.vala" - if (checkerboard_layout_handle_left_click (_tmp8_, _tmp9_, _tmp10_, _tmp11_, _tmp12_)) { -#line 1541 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 1541 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (item); -#line 1541 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 10954 "Page.c" - } -#line 1543 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = state; -#line 1543 "/home/jens/Source/shotwell/src/Page.vala" - switch (_tmp13_) { -#line 1543 "/home/jens/Source/shotwell/src/Page.vala" - case GDK_CONTROL_MASK: -#line 10962 "Page.c" - { - Marker* marker = NULL; - ViewCollection* _tmp14_; - ViewCollection* _tmp15_; - CheckerboardItem* _tmp16_; - Marker* _tmp17_; - Marker* _tmp18_; - ViewCollection* _tmp19_; - ViewCollection* _tmp20_; - Marker* _tmp21_; - CheckerboardItem* _tmp22_; -#line 1547 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1547 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = _tmp14_; -#line 1547 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = item; -#line 1547 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_OBJECT, DataObject)); -#line 1547 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = _tmp17_; -#line 1547 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp15_); -#line 1547 "/home/jens/Source/shotwell/src/Page.vala" - marker = _tmp18_; -#line 1548 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1548 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = _tmp19_; -#line 1548 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = marker; -#line 1548 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_toggle_marked (_tmp20_, _tmp21_); -#line 1548 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp20_); -#line 1550 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = item; -#line 1550 "/home/jens/Source/shotwell/src/Page.vala" - if (data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_DATA_VIEW, DataView))) { -#line 11002 "Page.c" - CheckerboardItem* _tmp23_; - CheckerboardItem* _tmp24_; - CheckerboardItem* _tmp25_; - CheckerboardItem* _tmp26_; -#line 1551 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = item; -#line 1551 "/home/jens/Source/shotwell/src/Page.vala" - _tmp24_ = _g_object_ref0 (_tmp23_); -#line 1551 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->anchor); -#line 1551 "/home/jens/Source/shotwell/src/Page.vala" - self->anchor = _tmp24_; -#line 1552 "/home/jens/Source/shotwell/src/Page.vala" - _tmp25_ = item; -#line 1552 "/home/jens/Source/shotwell/src/Page.vala" - _tmp26_ = _g_object_ref0 (_tmp25_); -#line 1552 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->cursor); -#line 1552 "/home/jens/Source/shotwell/src/Page.vala" - self->cursor = _tmp26_; -#line 11023 "Page.c" - } -#line 1554 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (marker); -#line 1554 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 11029 "Page.c" - } -#line 1543 "/home/jens/Source/shotwell/src/Page.vala" - case GDK_SHIFT_MASK: -#line 11033 "Page.c" - { - ViewCollection* _tmp27_; - ViewCollection* _tmp28_; - CheckerboardItem* _tmp29_; - CheckerboardItem* _tmp32_; - CheckerboardItem* _tmp33_; - CheckerboardItem* _tmp34_; - CheckerboardItem* _tmp35_; -#line 1557 "/home/jens/Source/shotwell/src/Page.vala" - _tmp27_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1557 "/home/jens/Source/shotwell/src/Page.vala" - _tmp28_ = _tmp27_; -#line 1557 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_unselect_all (_tmp28_); -#line 1557 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp28_); -#line 1559 "/home/jens/Source/shotwell/src/Page.vala" - _tmp29_ = self->anchor; -#line 1559 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp29_ == NULL) { -#line 11054 "Page.c" - CheckerboardItem* _tmp30_; - CheckerboardItem* _tmp31_; -#line 1560 "/home/jens/Source/shotwell/src/Page.vala" - _tmp30_ = item; -#line 1560 "/home/jens/Source/shotwell/src/Page.vala" - _tmp31_ = _g_object_ref0 (_tmp30_); -#line 1560 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->anchor); -#line 1560 "/home/jens/Source/shotwell/src/Page.vala" - self->anchor = _tmp31_; -#line 11065 "Page.c" - } -#line 1562 "/home/jens/Source/shotwell/src/Page.vala" - _tmp32_ = self->anchor; -#line 1562 "/home/jens/Source/shotwell/src/Page.vala" - _tmp33_ = item; -#line 1562 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_select_between_items (self, _tmp32_, _tmp33_); -#line 1564 "/home/jens/Source/shotwell/src/Page.vala" - _tmp34_ = item; -#line 1564 "/home/jens/Source/shotwell/src/Page.vala" - _tmp35_ = _g_object_ref0 (_tmp34_); -#line 1564 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->cursor); -#line 1564 "/home/jens/Source/shotwell/src/Page.vala" - self->cursor = _tmp35_; -#line 1565 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 11083 "Page.c" - } -#line 1543 "/home/jens/Source/shotwell/src/Page.vala" - case GDK_CONTROL_MASK | GDK_SHIFT_MASK: -#line 11087 "Page.c" - { - CheckerboardItem* _tmp36_; - CheckerboardItem* _tmp39_; - CheckerboardItem* _tmp40_; - CheckerboardItem* _tmp41_; - CheckerboardItem* _tmp42_; -#line 1572 "/home/jens/Source/shotwell/src/Page.vala" - _tmp36_ = self->anchor; -#line 1572 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp36_ == NULL) { -#line 11098 "Page.c" - CheckerboardItem* _tmp37_; - CheckerboardItem* _tmp38_; -#line 1573 "/home/jens/Source/shotwell/src/Page.vala" - _tmp37_ = item; -#line 1573 "/home/jens/Source/shotwell/src/Page.vala" - _tmp38_ = _g_object_ref0 (_tmp37_); -#line 1573 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->anchor); -#line 1573 "/home/jens/Source/shotwell/src/Page.vala" - self->anchor = _tmp38_; -#line 11109 "Page.c" - } -#line 1575 "/home/jens/Source/shotwell/src/Page.vala" - _tmp39_ = self->anchor; -#line 1575 "/home/jens/Source/shotwell/src/Page.vala" - _tmp40_ = item; -#line 1575 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_select_between_items (self, _tmp39_, _tmp40_); -#line 1577 "/home/jens/Source/shotwell/src/Page.vala" - _tmp41_ = item; -#line 1577 "/home/jens/Source/shotwell/src/Page.vala" - _tmp42_ = _g_object_ref0 (_tmp41_); -#line 1577 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->cursor); -#line 1577 "/home/jens/Source/shotwell/src/Page.vala" - self->cursor = _tmp42_; -#line 1578 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 11127 "Page.c" - } - default: - { - GdkEventType _tmp43_; - CheckerboardItem* _tmp64_; - CheckerboardItem* _tmp65_; - CheckerboardItem* _tmp66_; - CheckerboardItem* _tmp67_; -#line 1581 "/home/jens/Source/shotwell/src/Page.vala" - _tmp43_ = event->type; -#line 1581 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp43_ == GDK_2BUTTON_PRESS) { -#line 11140 "Page.c" - CheckerboardItem* _tmp44_; - CheckerboardItem* _tmp45_; -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" - _tmp44_ = item; -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" - _tmp45_ = _g_object_ref0 (_tmp44_); -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->activated_item); -#line 1582 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->activated_item = _tmp45_; -#line 11151 "Page.c" - } else { - CheckerboardItem* _tmp46_; -#line 1588 "/home/jens/Source/shotwell/src/Page.vala" - _tmp46_ = item; -#line 1588 "/home/jens/Source/shotwell/src/Page.vala" - if (!data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_DATA_VIEW, DataView))) { -#line 11158 "Page.c" - Marker* all = NULL; - ViewCollection* _tmp47_; - ViewCollection* _tmp48_; - Marker* _tmp49_; - Marker* _tmp50_; - Marker* _tmp51_; - ViewCollection* _tmp52_; - ViewCollection* _tmp53_; - GeeList* _tmp54_; - GeeList* _tmp55_; - ViewCollection* _tmp56_; - ViewCollection* _tmp57_; - Marker* _tmp58_; - ViewCollection* _tmp59_; - ViewCollection* _tmp60_; - CheckerboardItem* _tmp61_; - Marker* _tmp62_; - Marker* _tmp63_; -#line 1589 "/home/jens/Source/shotwell/src/Page.vala" - _tmp47_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1589 "/home/jens/Source/shotwell/src/Page.vala" - _tmp48_ = _tmp47_; -#line 1589 "/home/jens/Source/shotwell/src/Page.vala" - _tmp49_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1589 "/home/jens/Source/shotwell/src/Page.vala" - _tmp50_ = _tmp49_; -#line 1589 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp48_); -#line 1589 "/home/jens/Source/shotwell/src/Page.vala" - all = _tmp50_; -#line 1590 "/home/jens/Source/shotwell/src/Page.vala" - _tmp51_ = all; -#line 1590 "/home/jens/Source/shotwell/src/Page.vala" - _tmp52_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1590 "/home/jens/Source/shotwell/src/Page.vala" - _tmp53_ = _tmp52_; -#line 1590 "/home/jens/Source/shotwell/src/Page.vala" - _tmp54_ = view_collection_get_selected (_tmp53_); -#line 1590 "/home/jens/Source/shotwell/src/Page.vala" - _tmp55_ = _tmp54_; -#line 1590 "/home/jens/Source/shotwell/src/Page.vala" - marker_mark_many (_tmp51_, G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1590 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp55_); -#line 1590 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp53_); -#line 1592 "/home/jens/Source/shotwell/src/Page.vala" - _tmp56_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1592 "/home/jens/Source/shotwell/src/Page.vala" - _tmp57_ = _tmp56_; -#line 1592 "/home/jens/Source/shotwell/src/Page.vala" - _tmp58_ = all; -#line 1592 "/home/jens/Source/shotwell/src/Page.vala" - _tmp59_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1592 "/home/jens/Source/shotwell/src/Page.vala" - _tmp60_ = _tmp59_; -#line 1592 "/home/jens/Source/shotwell/src/Page.vala" - _tmp61_ = item; -#line 1592 "/home/jens/Source/shotwell/src/Page.vala" - _tmp62_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_DATA_OBJECT, DataObject)); -#line 1592 "/home/jens/Source/shotwell/src/Page.vala" - _tmp63_ = _tmp62_; -#line 1592 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_unselect_and_select_marked (_tmp57_, _tmp58_, _tmp63_); -#line 1592 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp63_); -#line 1592 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp60_); -#line 1592 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp57_); -#line 1588 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (all); -#line 11231 "Page.c" - } - } -#line 1596 "/home/jens/Source/shotwell/src/Page.vala" - _tmp64_ = item; -#line 1596 "/home/jens/Source/shotwell/src/Page.vala" - _tmp65_ = _g_object_ref0 (_tmp64_); -#line 1596 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->anchor); -#line 1596 "/home/jens/Source/shotwell/src/Page.vala" - self->anchor = _tmp65_; -#line 1597 "/home/jens/Source/shotwell/src/Page.vala" - _tmp66_ = item; -#line 1597 "/home/jens/Source/shotwell/src/Page.vala" - _tmp67_ = _g_object_ref0 (_tmp66_); -#line 1597 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->cursor); -#line 1597 "/home/jens/Source/shotwell/src/Page.vala" - self->cursor = _tmp67_; -#line 1598 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 11252 "Page.c" - } - } -#line 1600 "/home/jens/Source/shotwell/src/Page.vala" - _tmp68_ = self->priv->layout; -#line 1600 "/home/jens/Source/shotwell/src/Page.vala" - _tmp69_ = item; -#line 1600 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_layout_set_cursor (_tmp68_, _tmp69_); -#line 11261 "Page.c" - } else { - guint _tmp70_; - GeeArrayList* _tmp73_; - CheckerboardLayout* _tmp89_; - gdouble _tmp90_; - gdouble _tmp91_; -#line 1604 "/home/jens/Source/shotwell/src/Page.vala" - _tmp70_ = state; -#line 1604 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp70_ != ((guint) GDK_CONTROL_MASK)) { -#line 11272 "Page.c" - ViewCollection* _tmp71_; - ViewCollection* _tmp72_; -#line 1605 "/home/jens/Source/shotwell/src/Page.vala" - _tmp71_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1605 "/home/jens/Source/shotwell/src/Page.vala" - _tmp72_ = _tmp71_; -#line 1605 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_unselect_all (_tmp72_); -#line 1605 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp72_); -#line 11283 "Page.c" - } -#line 1608 "/home/jens/Source/shotwell/src/Page.vala" - _tmp73_ = gee_array_list_new (TYPE_CHECKERBOARD_ITEM, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1608 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->previously_selected); -#line 1608 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->previously_selected = _tmp73_; -#line 11291 "Page.c" - { - GeeList* _view_list = NULL; - ViewCollection* _tmp74_; - ViewCollection* _tmp75_; - GeeList* _tmp76_; - GeeList* _tmp77_; - gint _view_size = 0; - GeeList* _tmp78_; - gint _tmp79_; - gint _tmp80_; - gint _view_index = 0; -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp74_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp75_ = _tmp74_; -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp76_ = view_collection_get_selected (_tmp75_); -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp77_ = _tmp76_; -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp75_); -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _view_list = _tmp77_; -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp78_ = _view_list; -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp79_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp80_ = _tmp79_; -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _view_size = _tmp80_; -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _view_index = -1; -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - while (TRUE) { -#line 11327 "Page.c" - gint _tmp81_; - gint _tmp82_; - gint _tmp83_; - DataView* view = NULL; - GeeList* _tmp84_; - gint _tmp85_; - gpointer _tmp86_; - GeeArrayList* _tmp87_; - DataView* _tmp88_; -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp81_ = _view_index; -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _view_index = _tmp81_ + 1; -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp82_ = _view_index; -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp83_ = _view_size; -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - if (!(_tmp82_ < _tmp83_)) { -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 11349 "Page.c" - } -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp84_ = _view_list; -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp85_ = _view_index; -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp86_ = gee_list_get (_tmp84_, _tmp85_); -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - view = (DataView*) _tmp86_; -#line 1610 "/home/jens/Source/shotwell/src/Page.vala" - _tmp87_ = self->priv->previously_selected; -#line 1610 "/home/jens/Source/shotwell/src/Page.vala" - _tmp88_ = view; -#line 1610 "/home/jens/Source/shotwell/src/Page.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp87_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (view); -#line 11367 "Page.c" - } -#line 1609 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_view_list); -#line 11371 "Page.c" - } -#line 1612 "/home/jens/Source/shotwell/src/Page.vala" - _tmp89_ = self->priv->layout; -#line 1612 "/home/jens/Source/shotwell/src/Page.vala" - _tmp90_ = event->x; -#line 1612 "/home/jens/Source/shotwell/src/Page.vala" - _tmp91_ = event->y; -#line 1612 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_layout_set_drag_select_origin (_tmp89_, (gint) _tmp90_, (gint) _tmp91_); -#line 1614 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 1614 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (item); -#line 1614 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 11387 "Page.c" - } -#line 1620 "/home/jens/Source/shotwell/src/Page.vala" - _tmp92_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1620 "/home/jens/Source/shotwell/src/Page.vala" - _tmp93_ = _tmp92_; -#line 1620 "/home/jens/Source/shotwell/src/Page.vala" - _tmp94_ = view_collection_get_selected_count (_tmp93_) == 0; -#line 1620 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp93_); -#line 1620 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp94_; -#line 1620 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (item); -#line 1620 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 11403 "Page.c" -} - - -static gboolean -checkerboard_page_real_on_left_released (Page* base, - GdkEventButton* event) -{ - CheckerboardPage * self; - gboolean result = FALSE; - CheckerboardLayout* _tmp0_; - GdkModifierType _tmp4_; - CheckerboardItem* _tmp5_; - CheckerboardItem* item = NULL; - gdouble _tmp8_; - gdouble _tmp9_; - CheckerboardItem* _tmp10_; - CheckerboardItem* _tmp11_; - CheckerboardItem* _tmp12_; - CheckerboardItem* _tmp13_; -#line 1623 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1623 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1624 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->previously_selected); -#line 1624 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->previously_selected = NULL; -#line 1627 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->layout; -#line 1627 "/home/jens/Source/shotwell/src/Page.vala" - if (checkerboard_layout_is_drag_select_active (_tmp0_)) { -#line 11435 "Page.c" - CheckerboardLayout* _tmp1_; - CheckerboardItem* _tmp2_; - CheckerboardItem* _tmp3_; -#line 1628 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->layout; -#line 1628 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_layout_clear_drag_select (_tmp1_); -#line 1629 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->cursor; -#line 1629 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 1629 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->anchor); -#line 1629 "/home/jens/Source/shotwell/src/Page.vala" - self->anchor = _tmp3_; -#line 1631 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 1631 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 11455 "Page.c" - } -#line 1635 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = event->state; -#line 1635 "/home/jens/Source/shotwell/src/Page.vala" - if ((_tmp4_ & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) != 0) { -#line 1636 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 1636 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 11465 "Page.c" - } -#line 1639 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->priv->activated_item; -#line 1639 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp5_ != NULL) { -#line 11471 "Page.c" - CheckerboardItem* _tmp6_; - CheckerboardPageKeyboardModifiers _tmp7_ = {0}; -#line 1640 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->priv->activated_item; -#line 1640 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_keyboard_modifiers_init (&_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1640 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_on_item_activated (self, _tmp6_, CHECKERBOARD_PAGE_ACTIVATOR_MOUSE, &_tmp7_); -#line 1641 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->activated_item); -#line 1641 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->activated_item = NULL; -#line 1643 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 1643 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 11488 "Page.c" - } -#line 1646 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = event->x; -#line 1646 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = event->y; -#line 1646 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = checkerboard_page_get_item_at_pixel (self, _tmp8_, _tmp9_); -#line 1646 "/home/jens/Source/shotwell/src/Page.vala" - item = _tmp10_; -#line 1647 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = item; -#line 1647 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp11_ == NULL) { -#line 1649 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 1649 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (item); -#line 1649 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 11508 "Page.c" - } -#line 1652 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = self->cursor; -#line 1652 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = item; -#line 1652 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp12_ != _tmp13_) { -#line 11516 "Page.c" - ViewCollection* _tmp14_; - ViewCollection* _tmp15_; -#line 1655 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1655 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = _tmp14_; -#line 1655 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_unselect_all (_tmp15_); -#line 1655 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp15_); -#line 11527 "Page.c" - } else { - CheckerboardItem* _tmp16_; -#line 1661 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = item; -#line 1661 "/home/jens/Source/shotwell/src/Page.vala" - if (data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_VIEW, DataView))) { -#line 11534 "Page.c" - ViewCollection* _tmp17_; - ViewCollection* _tmp18_; - CheckerboardItem* _tmp19_; -#line 1662 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1662 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = _tmp17_; -#line 1662 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = item; -#line 1662 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_unselect_all_but (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_DATA_VIEW, DataView)); -#line 1662 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp18_); -#line 11548 "Page.c" - } - } -#line 1665 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 1665 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (item); -#line 1665 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 11557 "Page.c" -} - - -static gboolean -checkerboard_page_real_on_right_click (Page* base, - GdkEventButton* event) -{ - CheckerboardPage * self; - gboolean result = FALSE; - GdkEventType _tmp0_; - CheckerboardItem* item = NULL; - gdouble _tmp1_; - gdouble _tmp2_; - CheckerboardItem* _tmp3_; - CheckerboardItem* _tmp4_; - GtkMenu* context_menu = NULL; - GtkMenu* _tmp34_; - GtkMenu* _tmp35_; -#line 1668 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1668 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1670 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = event->type; -#line 1670 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_ != GDK_BUTTON_PRESS) { -#line 1671 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 1671 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 11588 "Page.c" - } -#line 1674 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = event->x; -#line 1674 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = event->y; -#line 1674 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = checkerboard_page_get_item_at_pixel (self, _tmp1_, _tmp2_); -#line 1674 "/home/jens/Source/shotwell/src/Page.vala" - item = _tmp3_; -#line 1675 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = item; -#line 1675 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp4_ != NULL) { -#line 11602 "Page.c" - GdkModifierType _tmp5_; -#line 1677 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = event->state; -#line 1677 "/home/jens/Source/shotwell/src/Page.vala" - switch (_tmp5_ & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) { -#line 1677 "/home/jens/Source/shotwell/src/Page.vala" - case GDK_CONTROL_MASK: -#line 11610 "Page.c" - { - Marker* marker = NULL; - ViewCollection* _tmp6_; - ViewCollection* _tmp7_; - CheckerboardItem* _tmp8_; - Marker* _tmp9_; - Marker* _tmp10_; - ViewCollection* _tmp11_; - ViewCollection* _tmp12_; - Marker* _tmp13_; -#line 1680 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1680 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = _tmp6_; -#line 1680 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = item; -#line 1680 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject)); -#line 1680 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = _tmp9_; -#line 1680 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp7_); -#line 1680 "/home/jens/Source/shotwell/src/Page.vala" - marker = _tmp10_; -#line 1681 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1681 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = _tmp11_; -#line 1681 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = marker; -#line 1681 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_toggle_marked (_tmp12_, _tmp13_); -#line 1681 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp12_); -#line 1682 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (marker); -#line 1682 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 11649 "Page.c" - } -#line 1677 "/home/jens/Source/shotwell/src/Page.vala" - case GDK_SHIFT_MASK: -#line 11653 "Page.c" - { -#line 1686 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 11657 "Page.c" - } -#line 1677 "/home/jens/Source/shotwell/src/Page.vala" - case GDK_CONTROL_MASK | GDK_SHIFT_MASK: -#line 11661 "Page.c" - { -#line 1690 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 11665 "Page.c" - } - default: - { - CheckerboardItem* _tmp14_; -#line 1695 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = item; -#line 1695 "/home/jens/Source/shotwell/src/Page.vala" - if (!data_view_is_selected (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_VIEW, DataView))) { -#line 11674 "Page.c" - Marker* all = NULL; - ViewCollection* _tmp15_; - ViewCollection* _tmp16_; - Marker* _tmp17_; - Marker* _tmp18_; - Marker* _tmp19_; - ViewCollection* _tmp20_; - ViewCollection* _tmp21_; - GeeList* _tmp22_; - GeeList* _tmp23_; - ViewCollection* _tmp24_; - ViewCollection* _tmp25_; - Marker* _tmp26_; - ViewCollection* _tmp27_; - ViewCollection* _tmp28_; - CheckerboardItem* _tmp29_; - Marker* _tmp30_; - Marker* _tmp31_; -#line 1696 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1696 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = _tmp15_; -#line 1696 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1696 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = _tmp17_; -#line 1696 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp16_); -#line 1696 "/home/jens/Source/shotwell/src/Page.vala" - all = _tmp18_; -#line 1697 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = all; -#line 1697 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1697 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = _tmp20_; -#line 1697 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = view_collection_get_selected (_tmp21_); -#line 1697 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = _tmp22_; -#line 1697 "/home/jens/Source/shotwell/src/Page.vala" - marker_mark_many (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1697 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp23_); -#line 1697 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp21_); -#line 1699 "/home/jens/Source/shotwell/src/Page.vala" - _tmp24_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1699 "/home/jens/Source/shotwell/src/Page.vala" - _tmp25_ = _tmp24_; -#line 1699 "/home/jens/Source/shotwell/src/Page.vala" - _tmp26_ = all; -#line 1699 "/home/jens/Source/shotwell/src/Page.vala" - _tmp27_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1699 "/home/jens/Source/shotwell/src/Page.vala" - _tmp28_ = _tmp27_; -#line 1699 "/home/jens/Source/shotwell/src/Page.vala" - _tmp29_ = item; -#line 1699 "/home/jens/Source/shotwell/src/Page.vala" - _tmp30_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_OBJECT, DataObject)); -#line 1699 "/home/jens/Source/shotwell/src/Page.vala" - _tmp31_ = _tmp30_; -#line 1699 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_unselect_and_select_marked (_tmp25_, _tmp26_, _tmp31_); -#line 1699 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp31_); -#line 1699 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp28_); -#line 1699 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp25_); -#line 1695 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (all); -#line 11747 "Page.c" - } -#line 1701 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 11751 "Page.c" - } - } - } else { - ViewCollection* _tmp32_; - ViewCollection* _tmp33_; -#line 1705 "/home/jens/Source/shotwell/src/Page.vala" - _tmp32_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1705 "/home/jens/Source/shotwell/src/Page.vala" - _tmp33_ = _tmp32_; -#line 1705 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_unselect_all (_tmp33_); -#line 1705 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp33_); -#line 11765 "Page.c" - } -#line 1708 "/home/jens/Source/shotwell/src/Page.vala" - _tmp34_ = checkerboard_page_get_context_menu (self); -#line 1708 "/home/jens/Source/shotwell/src/Page.vala" - context_menu = _tmp34_; -#line 1709 "/home/jens/Source/shotwell/src/Page.vala" - _tmp35_ = context_menu; -#line 1709 "/home/jens/Source/shotwell/src/Page.vala" - result = page_popup_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp35_, event); -#line 1709 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (context_menu); -#line 1709 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (item); -#line 1709 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 11781 "Page.c" -} - - -static gboolean -checkerboard_page_real_on_mouse_over (CheckerboardPage* self, - CheckerboardItem* item, - gint x, - gint y, - GdkModifierType mask) -{ - gboolean result = FALSE; - CheckerboardItem* _tmp1_; - CheckerboardItem* _tmp2_; - CheckerboardItem* _tmp4_; -#line 1712 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail ((item == NULL) || IS_CHECKERBOARD_ITEM (item), FALSE); -#line 1713 "/home/jens/Source/shotwell/src/Page.vala" - if (item != NULL) { -#line 11800 "Page.c" - CheckerboardLayout* _tmp0_; -#line 1714 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->layout; -#line 1714 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_layout_handle_mouse_motion (_tmp0_, item, x, y, mask); -#line 11806 "Page.c" - } -#line 1718 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->highlighted; -#line 1718 "/home/jens/Source/shotwell/src/Page.vala" - if (item == _tmp1_) { -#line 1719 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 1719 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 11816 "Page.c" - } -#line 1722 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->priv->highlighted; -#line 1722 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp2_ != NULL) { -#line 11822 "Page.c" - CheckerboardItem* _tmp3_; -#line 1723 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = self->priv->highlighted; -#line 1723 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_item_unbrighten (_tmp3_); -#line 1724 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->highlighted); -#line 1724 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->highlighted = NULL; -#line 11832 "Page.c" - } -#line 1728 "/home/jens/Source/shotwell/src/Page.vala" - if (item == NULL) { -#line 1729 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 1729 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 11840 "Page.c" - } -#line 1732 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_item_brighten (item); -#line 1733 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = _g_object_ref0 (item); -#line 1733 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->highlighted); -#line 1733 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->highlighted = _tmp4_; -#line 1735 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 1735 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 11854 "Page.c" -} - - -gboolean -checkerboard_page_on_mouse_over (CheckerboardPage* self, - CheckerboardItem* item, - gint x, - gint y, - GdkModifierType mask) -{ -#line 1712 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), FALSE); -#line 1712 "/home/jens/Source/shotwell/src/Page.vala" - return CHECKERBOARD_PAGE_GET_CLASS (self)->on_mouse_over (self, item, x, y, mask); -#line 11869 "Page.c" -} - - -static gboolean -_checkerboard_page_selection_autoscroll_gsource_func (gpointer self) -{ - gboolean result; - result = checkerboard_page_selection_autoscroll ((CheckerboardPage*) self); -#line 1755 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 11880 "Page.c" -} - - -static gboolean -checkerboard_page_real_on_motion (Page* base, - GdkEventMotion* event, - gint x, - gint y, - GdkModifierType mask) -{ - CheckerboardPage * self; - gboolean result = FALSE; - CheckerboardItem* _tmp0_; - CheckerboardItem* _tmp1_; - gboolean _tmp2_; - CheckerboardLayout* _tmp3_; - CheckerboardLayout* _tmp4_; - gboolean _tmp5_ = FALSE; - gboolean _tmp6_; -#line 1738 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1738 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1740 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = checkerboard_page_get_item_at_pixel (self, (gdouble) x, (gdouble) y); -#line 1740 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 1740 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = !checkerboard_page_on_mouse_over (self, _tmp1_, x, y, mask); -#line 1740 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp1_); -#line 1740 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp2_) { -#line 1741 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 1741 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 11918 "Page.c" - } -#line 1744 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = self->priv->layout; -#line 1744 "/home/jens/Source/shotwell/src/Page.vala" - if (!checkerboard_layout_is_drag_select_active (_tmp3_)) { -#line 1745 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 1745 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 11928 "Page.c" - } -#line 1748 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = self->priv->layout; -#line 1748 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_layout_set_drag_select_endpoint (_tmp4_, x, y); -#line 1750 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_updated_selection_band (self); -#line 1753 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->priv->autoscroll_scheduled; -#line 1753 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp6_) { -#line 11940 "Page.c" - GtkAdjustment* _tmp7_; -#line 1754 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = gtk_scrolled_window_get_vadjustment (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow)); -#line 1754 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = get_adjustment_relation (_tmp7_, y) != ADJUSTMENT_RELATION_IN_RANGE; -#line 11946 "Page.c" - } else { -#line 1753 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = FALSE; -#line 11950 "Page.c" - } -#line 1753 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp5_) { -#line 1755 "/home/jens/Source/shotwell/src/Page.vala" - g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) CHECKERBOARD_PAGE_AUTOSCROLL_TICKS_MSEC, _checkerboard_page_selection_autoscroll_gsource_func, g_object_ref (self), g_object_unref); -#line 1756 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->autoscroll_scheduled = TRUE; -#line 11958 "Page.c" - } -#line 1760 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 1760 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 11964 "Page.c" -} - - -static void -checkerboard_page_updated_selection_band (CheckerboardPage* self) -{ - CheckerboardLayout* _tmp0_; - GeeList* intersection = NULL; - CheckerboardLayout* _tmp1_; - GeeList* _tmp2_; - GeeList* _tmp3_; - Marker* to_unselect = NULL; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - Marker* _tmp6_; - Marker* _tmp7_; - Marker* to_select = NULL; - ViewCollection* _tmp8_; - ViewCollection* _tmp9_; - Marker* _tmp10_; - Marker* _tmp11_; - Marker* _tmp12_; - ViewCollection* _tmp13_; - ViewCollection* _tmp14_; - GeeList* _tmp15_; - GeeList* _tmp16_; - GeeArrayList* _tmp17_; - Marker* _tmp18_; - GeeArrayList* _tmp19_; - Marker* _tmp20_; - GeeArrayList* _tmp21_; - ViewCollection* _tmp42_; - ViewCollection* _tmp43_; - Marker* _tmp44_; - ViewCollection* _tmp45_; - ViewCollection* _tmp46_; - Marker* _tmp47_; -#line 1763 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1764 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->layout; -#line 1764 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (checkerboard_layout_is_drag_select_active (_tmp0_), "layout.is_drag_select_active()"); -#line 1767 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->layout; -#line 1767 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = checkerboard_layout_items_in_selection_band (_tmp1_); -#line 1767 "/home/jens/Source/shotwell/src/Page.vala" - intersection = _tmp2_; -#line 1768 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = intersection; -#line 1768 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_ == NULL) { -#line 1769 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (intersection); -#line 1769 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 12022 "Page.c" - } -#line 1771 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1771 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _tmp4_; -#line 1771 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1771 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = _tmp6_; -#line 1771 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp5_); -#line 1771 "/home/jens/Source/shotwell/src/Page.vala" - to_unselect = _tmp7_; -#line 1772 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1772 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = _tmp8_; -#line 1772 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1772 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = _tmp10_; -#line 1772 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp9_); -#line 1772 "/home/jens/Source/shotwell/src/Page.vala" - to_select = _tmp11_; -#line 1775 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = to_unselect; -#line 1775 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1775 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = _tmp13_; -#line 1775 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = view_collection_get_selected (_tmp14_); -#line 1775 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = _tmp15_; -#line 1775 "/home/jens/Source/shotwell/src/Page.vala" - marker_mark_many (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1775 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp16_); -#line 1775 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp14_); -#line 1778 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = self->priv->previously_selected; -#line 1778 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (_tmp17_ != NULL, "previously_selected != null"); -#line 1779 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = to_unselect; -#line 1779 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = self->priv->previously_selected; -#line 1779 "/home/jens/Source/shotwell/src/Page.vala" - marker_unmark_many (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1780 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = to_select; -#line 1780 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = self->priv->previously_selected; -#line 1780 "/home/jens/Source/shotwell/src/Page.vala" - marker_mark_many (_tmp20_, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1783 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->cursor); -#line 1783 "/home/jens/Source/shotwell/src/Page.vala" - self->cursor = NULL; -#line 12084 "Page.c" - { - GeeList* _item_list = NULL; - GeeList* _tmp22_; - GeeList* _tmp23_; - gint _item_size = 0; - GeeList* _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _item_index = 0; -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = intersection; -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = _g_object_ref0 (_tmp22_); -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - _item_list = _tmp23_; -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - _tmp24_ = _item_list; -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - _tmp25_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - _tmp26_ = _tmp25_; -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - _item_size = _tmp26_; -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - _item_index = -1; -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - while (TRUE) { -#line 12112 "Page.c" - gint _tmp27_; - gint _tmp28_; - gint _tmp29_; - CheckerboardItem* item = NULL; - GeeList* _tmp30_; - gint _tmp31_; - gpointer _tmp32_; - Marker* _tmp33_; - CheckerboardItem* _tmp34_; - CheckerboardItem* _tmp39_; -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - _tmp27_ = _item_index; -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - _item_index = _tmp27_ + 1; -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - _tmp28_ = _item_index; -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - _tmp29_ = _item_size; -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - if (!(_tmp28_ < _tmp29_)) { -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 12135 "Page.c" - } -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - _tmp30_ = _item_list; -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - _tmp31_ = _item_index; -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - _tmp32_ = gee_list_get (_tmp30_, _tmp31_); -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - item = (CheckerboardItem*) _tmp32_; -#line 1786 "/home/jens/Source/shotwell/src/Page.vala" - _tmp33_ = to_select; -#line 1786 "/home/jens/Source/shotwell/src/Page.vala" - _tmp34_ = item; -#line 1786 "/home/jens/Source/shotwell/src/Page.vala" - if (marker_toggle (_tmp33_, G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_DATA_OBJECT, DataObject))) { -#line 12151 "Page.c" - Marker* _tmp35_; - CheckerboardItem* _tmp36_; -#line 1787 "/home/jens/Source/shotwell/src/Page.vala" - _tmp35_ = to_unselect; -#line 1787 "/home/jens/Source/shotwell/src/Page.vala" - _tmp36_ = item; -#line 1787 "/home/jens/Source/shotwell/src/Page.vala" - marker_unmark (_tmp35_, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_DATA_OBJECT, DataObject)); -#line 12160 "Page.c" - } else { - Marker* _tmp37_; - CheckerboardItem* _tmp38_; -#line 1789 "/home/jens/Source/shotwell/src/Page.vala" - _tmp37_ = to_unselect; -#line 1789 "/home/jens/Source/shotwell/src/Page.vala" - _tmp38_ = item; -#line 1789 "/home/jens/Source/shotwell/src/Page.vala" - marker_mark (_tmp37_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_DATA_OBJECT, DataObject)); -#line 12170 "Page.c" - } -#line 1791 "/home/jens/Source/shotwell/src/Page.vala" - _tmp39_ = self->cursor; -#line 1791 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp39_ == NULL) { -#line 12176 "Page.c" - CheckerboardItem* _tmp40_; - CheckerboardItem* _tmp41_; -#line 1792 "/home/jens/Source/shotwell/src/Page.vala" - _tmp40_ = item; -#line 1792 "/home/jens/Source/shotwell/src/Page.vala" - _tmp41_ = _g_object_ref0 (_tmp40_); -#line 1792 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->cursor); -#line 1792 "/home/jens/Source/shotwell/src/Page.vala" - self->cursor = _tmp41_; -#line 12187 "Page.c" - } -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (item); -#line 12191 "Page.c" - } -#line 1785 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_item_list); -#line 12195 "Page.c" - } -#line 1795 "/home/jens/Source/shotwell/src/Page.vala" - _tmp42_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1795 "/home/jens/Source/shotwell/src/Page.vala" - _tmp43_ = _tmp42_; -#line 1795 "/home/jens/Source/shotwell/src/Page.vala" - _tmp44_ = to_select; -#line 1795 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_select_marked (_tmp43_, _tmp44_); -#line 1795 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp43_); -#line 1796 "/home/jens/Source/shotwell/src/Page.vala" - _tmp45_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1796 "/home/jens/Source/shotwell/src/Page.vala" - _tmp46_ = _tmp45_; -#line 1796 "/home/jens/Source/shotwell/src/Page.vala" - _tmp47_ = to_unselect; -#line 1796 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_unselect_marked (_tmp46_, _tmp47_); -#line 1796 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp46_); -#line 1763 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (to_select); -#line 1763 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (to_unselect); -#line 1763 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (intersection); -#line 12223 "Page.c" -} - - -static gboolean -checkerboard_page_selection_autoscroll (CheckerboardPage* self) -{ - gboolean result = FALSE; - CheckerboardLayout* _tmp0_; - GtkAdjustment* vadj = NULL; - GtkAdjustment* _tmp1_; - GtkAdjustment* _tmp2_; - gint x = 0; - gint y = 0; - GdkModifierType mask = 0; - gint _tmp3_ = 0; - gint _tmp4_ = 0; - GdkModifierType _tmp5_ = 0; - gint new_value = 0; - GtkAdjustment* _tmp6_; - GtkAdjustment* _tmp7_; - gint _tmp8_; - GtkAdjustment* _tmp18_; - gint _tmp19_; - GtkAdjustment* _tmp20_; - GtkAdjustment* _tmp21_; - GtkAdjustment* _tmp22_; -#line 1799 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_CHECKERBOARD_PAGE (self), FALSE); -#line 1800 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->layout; -#line 1800 "/home/jens/Source/shotwell/src/Page.vala" - if (!checkerboard_layout_is_drag_select_active (_tmp0_)) { -#line 1801 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->autoscroll_scheduled = FALSE; -#line 1803 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 1803 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 12262 "Page.c" - } -#line 1807 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = gtk_scrolled_window_get_vadjustment (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow)); -#line 1807 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 1807 "/home/jens/Source/shotwell/src/Page.vala" - vadj = _tmp2_; -#line 1811 "/home/jens/Source/shotwell/src/Page.vala" - page_get_event_source_pointer (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), &_tmp3_, &_tmp4_, &_tmp5_); -#line 1811 "/home/jens/Source/shotwell/src/Page.vala" - x = _tmp3_; -#line 1811 "/home/jens/Source/shotwell/src/Page.vala" - y = _tmp4_; -#line 1811 "/home/jens/Source/shotwell/src/Page.vala" - mask = _tmp5_; -#line 1813 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = vadj; -#line 1813 "/home/jens/Source/shotwell/src/Page.vala" - new_value = (gint) gtk_adjustment_get_value (_tmp6_); -#line 1814 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = vadj; -#line 1814 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = y; -#line 1814 "/home/jens/Source/shotwell/src/Page.vala" - switch (get_adjustment_relation (_tmp7_, _tmp8_)) { -#line 1814 "/home/jens/Source/shotwell/src/Page.vala" - case ADJUSTMENT_RELATION_BELOW: -#line 12290 "Page.c" - { - gint _tmp9_; - CheckerboardLayout* _tmp10_; - gint _tmp11_; - gint _tmp12_; -#line 1817 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = new_value; -#line 1817 "/home/jens/Source/shotwell/src/Page.vala" - new_value = _tmp9_ - CHECKERBOARD_PAGE_AUTOSCROLL_PIXELS; -#line 1818 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = self->priv->layout; -#line 1818 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = x; -#line 1818 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = new_value; -#line 1818 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_layout_set_drag_select_endpoint (_tmp10_, _tmp11_, _tmp12_); -#line 1819 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 12310 "Page.c" - } -#line 1814 "/home/jens/Source/shotwell/src/Page.vala" - case ADJUSTMENT_RELATION_ABOVE: -#line 12314 "Page.c" - { - gint _tmp13_; - CheckerboardLayout* _tmp14_; - gint _tmp15_; - gint _tmp16_; - GtkAdjustment* _tmp17_; -#line 1823 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = new_value; -#line 1823 "/home/jens/Source/shotwell/src/Page.vala" - new_value = _tmp13_ + CHECKERBOARD_PAGE_AUTOSCROLL_PIXELS; -#line 1824 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = self->priv->layout; -#line 1824 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = x; -#line 1824 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = new_value; -#line 1824 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = vadj; -#line 1824 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_layout_set_drag_select_endpoint (_tmp14_, _tmp15_, _tmp16_ + ((gint) gtk_adjustment_get_page_size (_tmp17_))); -#line 1825 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 12337 "Page.c" - } -#line 1814 "/home/jens/Source/shotwell/src/Page.vala" - case ADJUSTMENT_RELATION_IN_RANGE: -#line 12341 "Page.c" - { -#line 1828 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->autoscroll_scheduled = FALSE; -#line 1830 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 1830 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (vadj); -#line 1830 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 12351 "Page.c" - } - default: - { -#line 1833 "/home/jens/Source/shotwell/src/Page.vala" - g_warn_if_reached (); -#line 1834 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 12359 "Page.c" - } - } -#line 1840 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = vadj; -#line 1840 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = new_value; -#line 1840 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = vadj; -#line 1840 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = vadj; -#line 1840 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = vadj; -#line 1840 "/home/jens/Source/shotwell/src/Page.vala" - gtk_adjustment_set_value (_tmp18_, (gdouble) CLAMP (_tmp19_, (gint) gtk_adjustment_get_lower (_tmp20_), ((gint) gtk_adjustment_get_upper (_tmp21_)) - ((gint) gtk_adjustment_get_page_size (_tmp22_)))); -#line 1843 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_updated_selection_band (self); -#line 1845 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 1845 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (vadj); -#line 1845 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 12382 "Page.c" -} - - -void -checkerboard_page_cursor_to_item (CheckerboardPage* self, - CheckerboardItem* item) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - CheckerboardItem* _tmp2_; - CheckerboardLayout* _tmp12_; - GtkAdjustment* vadj = NULL; - GtkAdjustment* _tmp13_; - GtkAdjustment* _tmp14_; - gboolean _tmp15_ = FALSE; - GtkAdjustment* _tmp16_; - GdkRectangle _tmp17_; - gint _tmp18_; - gint top = 0; - GdkRectangle _tmp24_; - gint _tmp25_; - GtkAdjustment* _tmp26_; - GtkAdjustment* _tmp36_; - gint _tmp37_; -#line 1848 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1848 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (item)); -#line 1849 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1849 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 1849 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (item, TYPE_DATA_OBJECT, DataObject)), "get_view().contains(item)"); -#line 1849 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp1_); -#line 1851 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _g_object_ref0 (item); -#line 1851 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->cursor); -#line 1851 "/home/jens/Source/shotwell/src/Page.vala" - self->cursor = _tmp2_; -#line 1853 "/home/jens/Source/shotwell/src/Page.vala" - if (!page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page))) { -#line 12427 "Page.c" - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - Marker* marker = NULL; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; - Marker* _tmp7_; - Marker* _tmp8_; - ViewCollection* _tmp9_; - ViewCollection* _tmp10_; - Marker* _tmp11_; -#line 1854 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1854 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = _tmp3_; -#line 1854 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_unselect_all (_tmp4_); -#line 1854 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp4_); -#line 1855 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1855 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = _tmp5_; -#line 1855 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (item, TYPE_DATA_OBJECT, DataObject)); -#line 1855 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = _tmp7_; -#line 1855 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp6_); -#line 1855 "/home/jens/Source/shotwell/src/Page.vala" - marker = _tmp8_; -#line 1856 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1856 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = _tmp9_; -#line 1856 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = marker; -#line 1856 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_select_marked (_tmp10_, _tmp11_); -#line 1856 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp10_); -#line 1853 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (marker); -#line 12470 "Page.c" - } -#line 1858 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = self->priv->layout; -#line 1858 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_layout_set_cursor (_tmp12_, item); -#line 1861 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = gtk_scrolled_window_get_vadjustment (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow)); -#line 1861 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = _g_object_ref0 (_tmp13_); -#line 1861 "/home/jens/Source/shotwell/src/Page.vala" - vadj = _tmp14_; -#line 1862 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = vadj; -#line 1862 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = item->allocation; -#line 1862 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = _tmp17_.y; -#line 1862 "/home/jens/Source/shotwell/src/Page.vala" - if (get_adjustment_relation (_tmp16_, _tmp18_) == ADJUSTMENT_RELATION_IN_RANGE) { -#line 12490 "Page.c" - GtkAdjustment* _tmp19_; - GdkRectangle _tmp20_; - gint _tmp21_; - GdkRectangle _tmp22_; - gint _tmp23_; -#line 1863 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = vadj; -#line 1863 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = item->allocation; -#line 1863 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = _tmp20_.y; -#line 1863 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = item->allocation; -#line 1863 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = _tmp22_.height; -#line 1863 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = get_adjustment_relation (_tmp19_, _tmp21_ + _tmp23_) == ADJUSTMENT_RELATION_IN_RANGE; -#line 12508 "Page.c" - } else { -#line 1862 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = FALSE; -#line 12512 "Page.c" - } -#line 1862 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp15_) { -#line 1864 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (vadj); -#line 1864 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 12520 "Page.c" - } -#line 1867 "/home/jens/Source/shotwell/src/Page.vala" - top = 0; -#line 1868 "/home/jens/Source/shotwell/src/Page.vala" - _tmp24_ = item->allocation; -#line 1868 "/home/jens/Source/shotwell/src/Page.vala" - _tmp25_ = _tmp24_.y; -#line 1868 "/home/jens/Source/shotwell/src/Page.vala" - _tmp26_ = vadj; -#line 1868 "/home/jens/Source/shotwell/src/Page.vala" - if (((gdouble) _tmp25_) < gtk_adjustment_get_value (_tmp26_)) { -#line 12532 "Page.c" - GdkRectangle _tmp27_; - gint _tmp28_; - gint _tmp29_; -#line 1869 "/home/jens/Source/shotwell/src/Page.vala" - _tmp27_ = item->allocation; -#line 1869 "/home/jens/Source/shotwell/src/Page.vala" - _tmp28_ = _tmp27_.y; -#line 1869 "/home/jens/Source/shotwell/src/Page.vala" - top = _tmp28_; -#line 1870 "/home/jens/Source/shotwell/src/Page.vala" - _tmp29_ = top; -#line 1870 "/home/jens/Source/shotwell/src/Page.vala" - top = _tmp29_ - (CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING / 2); -#line 12546 "Page.c" - } else { - GdkRectangle _tmp30_; - gint _tmp31_; - GdkRectangle _tmp32_; - gint _tmp33_; - GtkAdjustment* _tmp34_; - gint _tmp35_; -#line 1872 "/home/jens/Source/shotwell/src/Page.vala" - _tmp30_ = item->allocation; -#line 1872 "/home/jens/Source/shotwell/src/Page.vala" - _tmp31_ = _tmp30_.y; -#line 1872 "/home/jens/Source/shotwell/src/Page.vala" - _tmp32_ = item->allocation; -#line 1872 "/home/jens/Source/shotwell/src/Page.vala" - _tmp33_ = _tmp32_.height; -#line 1872 "/home/jens/Source/shotwell/src/Page.vala" - _tmp34_ = vadj; -#line 1872 "/home/jens/Source/shotwell/src/Page.vala" - top = (_tmp31_ + _tmp33_) - ((gint) gtk_adjustment_get_page_size (_tmp34_)); -#line 1873 "/home/jens/Source/shotwell/src/Page.vala" - _tmp35_ = top; -#line 1873 "/home/jens/Source/shotwell/src/Page.vala" - top = _tmp35_ + (CHECKERBOARD_LAYOUT_ROW_GUTTER_PADDING / 2); -#line 12570 "Page.c" - } -#line 1876 "/home/jens/Source/shotwell/src/Page.vala" - _tmp36_ = vadj; -#line 1876 "/home/jens/Source/shotwell/src/Page.vala" - _tmp37_ = top; -#line 1876 "/home/jens/Source/shotwell/src/Page.vala" - gtk_adjustment_set_value (_tmp36_, (gdouble) _tmp37_); -#line 1848 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (vadj); -#line 12580 "Page.c" -} - - -void -checkerboard_page_move_cursor (CheckerboardPage* self, - CompassPoint point) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - gboolean _tmp3_ = FALSE; - gboolean _tmp4_ = FALSE; - CheckerboardItem* _tmp5_; - CheckerboardItem* _tmp19_; - CheckerboardItem* item = NULL; - CheckerboardLayout* _tmp23_; - CheckerboardItem* _tmp24_; - CheckerboardItem* _tmp25_; - CheckerboardItem* _tmp26_; -#line 1879 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1881 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1881 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 1881 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)) == 0; -#line 1881 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp1_); -#line 1881 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp2_) { -#line 1882 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 12614 "Page.c" - } -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->cursor; -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp5_ == NULL) { -#line 12620 "Page.c" - CheckerboardLayout* _tmp6_; - CheckerboardItem* _tmp7_; - CheckerboardItem* _tmp8_; -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->priv->layout; -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = checkerboard_layout_get_cursor (_tmp6_); -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = _tmp7_; -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = _tmp8_ == NULL; -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp8_); -#line 12634 "Page.c" - } else { -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = FALSE; -#line 12638 "Page.c" - } -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp4_) { -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = TRUE; -#line 12644 "Page.c" - } else { - gboolean _tmp9_ = FALSE; - CheckerboardItem* _tmp10_; -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = self->cursor; -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp10_ != NULL) { -#line 12652 "Page.c" - ViewCollection* _tmp11_; - ViewCollection* _tmp12_; - CheckerboardItem* _tmp13_; -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = _tmp11_; -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = self->cursor; -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = !data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_OBJECT, DataObject)); -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp12_); -#line 12666 "Page.c" - } else { -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = FALSE; -#line 12670 "Page.c" - } -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = _tmp9_; -#line 12674 "Page.c" - } -#line 1887 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_) { -#line 12678 "Page.c" - CheckerboardItem* item = NULL; - CheckerboardLayout* _tmp14_; - CheckerboardItem* _tmp15_; - CheckerboardItem* _tmp16_; - CheckerboardItem* _tmp17_; - CheckerboardItem* _tmp18_; -#line 1888 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = self->priv->layout; -#line 1888 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = checkerboard_layout_get_item_at_coordinate (_tmp14_, 0, 0); -#line 1888 "/home/jens/Source/shotwell/src/Page.vala" - item = _tmp15_; -#line 1889 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = item; -#line 1889 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_cursor_to_item (self, _tmp16_); -#line 1890 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = item; -#line 1890 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = _g_object_ref0 (_tmp17_); -#line 1890 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->anchor); -#line 1890 "/home/jens/Source/shotwell/src/Page.vala" - self->anchor = _tmp18_; -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (item); -#line 1892 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 12707 "Page.c" - } -#line 1895 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = self->cursor; -#line 1895 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp19_ == NULL) { -#line 12713 "Page.c" - CheckerboardLayout* _tmp20_; - CheckerboardItem* _tmp21_; - CheckerboardItem* _tmp22_; -#line 1896 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = self->priv->layout; -#line 1896 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = checkerboard_layout_get_cursor (_tmp20_); -#line 1896 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, TYPE_CHECKERBOARD_ITEM) ? ((CheckerboardItem*) _tmp21_) : NULL; -#line 1896 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp22_ == NULL) { -#line 1896 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp21_); -#line 12727 "Page.c" - } -#line 1896 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->cursor); -#line 1896 "/home/jens/Source/shotwell/src/Page.vala" - self->cursor = _tmp22_; -#line 12733 "Page.c" - } -#line 1900 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = self->priv->layout; -#line 1900 "/home/jens/Source/shotwell/src/Page.vala" - _tmp24_ = self->cursor; -#line 1900 "/home/jens/Source/shotwell/src/Page.vala" - _tmp25_ = checkerboard_layout_get_item_relative_to (_tmp23_, _tmp24_, point); -#line 1900 "/home/jens/Source/shotwell/src/Page.vala" - item = _tmp25_; -#line 1901 "/home/jens/Source/shotwell/src/Page.vala" - _tmp26_ = item; -#line 1901 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp26_ != NULL) { -#line 12747 "Page.c" - CheckerboardItem* _tmp27_; -#line 1902 "/home/jens/Source/shotwell/src/Page.vala" - _tmp27_ = item; -#line 1902 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_cursor_to_item (self, _tmp27_); -#line 12753 "Page.c" - } -#line 1879 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (item); -#line 12757 "Page.c" -} - - -void -checkerboard_page_set_cursor (CheckerboardPage* self, - CheckerboardItem* item) -{ - Marker* marker = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - Marker* _tmp2_; - Marker* _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - CheckerboardItem* _tmp6_; - CheckerboardItem* _tmp7_; -#line 1905 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1905 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (item)); -#line 1906 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1906 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 1906 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (item, TYPE_DATA_OBJECT, DataObject)); -#line 1906 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = _tmp2_; -#line 1906 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp1_); -#line 1906 "/home/jens/Source/shotwell/src/Page.vala" - marker = _tmp3_; -#line 1907 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1907 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _tmp4_; -#line 1907 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_select_marked (_tmp5_, marker); -#line 1907 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp5_); -#line 1909 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = _g_object_ref0 (item); -#line 1909 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->cursor); -#line 1909 "/home/jens/Source/shotwell/src/Page.vala" - self->cursor = _tmp6_; -#line 1910 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = _g_object_ref0 (item); -#line 1910 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->anchor); -#line 1910 "/home/jens/Source/shotwell/src/Page.vala" - self->anchor = _tmp7_; -#line 1905 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (marker); -#line 12812 "Page.c" -} - - -void -checkerboard_page_select_between_items (CheckerboardPage* self, - CheckerboardItem* item_start, - CheckerboardItem* item_end) -{ - Marker* marker = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - Marker* _tmp2_; - Marker* _tmp3_; - gboolean passed_start = FALSE; - gboolean passed_end = FALSE; - ViewCollection* _tmp25_; - ViewCollection* _tmp26_; - Marker* _tmp27_; -#line 1913 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1913 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (item_start)); -#line 1913 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (item_end)); -#line 1914 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1914 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 1914 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1914 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = _tmp2_; -#line 1914 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp1_); -#line 1914 "/home/jens/Source/shotwell/src/Page.vala" - marker = _tmp3_; -#line 1916 "/home/jens/Source/shotwell/src/Page.vala" - passed_start = FALSE; -#line 1917 "/home/jens/Source/shotwell/src/Page.vala" - passed_end = FALSE; -#line 12853 "Page.c" - { - GeeIterator* _object_it = NULL; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - GeeCollection* _tmp6_; - GeeCollection* _tmp7_; - GeeIterator* _tmp8_; - GeeIterator* _tmp9_; -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _tmp4_; -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = _tmp6_; -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = _tmp8_; -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp7_); -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp5_); -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - _object_it = _tmp9_; -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - while (TRUE) { -#line 12882 "Page.c" - GeeIterator* _tmp10_; - DataObject* object = NULL; - GeeIterator* _tmp11_; - gpointer _tmp12_; - CheckerboardItem* item = NULL; - DataObject* _tmp13_; - CheckerboardItem* _tmp14_; - CheckerboardItem* _tmp15_; - CheckerboardItem* _tmp16_; - gboolean _tmp17_ = FALSE; - gboolean _tmp18_; - gboolean _tmp22_ = FALSE; - gboolean _tmp23_; -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = _object_it; -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - if (!gee_iterator_next (_tmp10_)) { -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 12902 "Page.c" - } -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = _object_it; -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = gee_iterator_get (_tmp11_); -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - object = (DataObject*) _tmp12_; -#line 1920 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = object; -#line 1920 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 1920 "/home/jens/Source/shotwell/src/Page.vala" - item = _tmp14_; -#line 1922 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = item; -#line 1922 "/home/jens/Source/shotwell/src/Page.vala" - if (item_start == _tmp15_) { -#line 1923 "/home/jens/Source/shotwell/src/Page.vala" - passed_start = TRUE; -#line 12922 "Page.c" - } -#line 1925 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = item; -#line 1925 "/home/jens/Source/shotwell/src/Page.vala" - if (item_end == _tmp16_) { -#line 1926 "/home/jens/Source/shotwell/src/Page.vala" - passed_end = TRUE; -#line 12930 "Page.c" - } -#line 1928 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = passed_start; -#line 1928 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp18_) { -#line 1928 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = TRUE; -#line 12938 "Page.c" - } else { - gboolean _tmp19_; -#line 1928 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = passed_end; -#line 1928 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = _tmp19_; -#line 12945 "Page.c" - } -#line 1928 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp17_) { -#line 12949 "Page.c" - Marker* _tmp20_; - DataObject* _tmp21_; -#line 1929 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = marker; -#line 1929 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = object; -#line 1929 "/home/jens/Source/shotwell/src/Page.vala" - marker_mark (_tmp20_, G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_VIEW, DataView), TYPE_DATA_OBJECT, DataObject)); -#line 12958 "Page.c" - } -#line 1931 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = passed_start; -#line 1931 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp23_) { -#line 12964 "Page.c" - gboolean _tmp24_; -#line 1931 "/home/jens/Source/shotwell/src/Page.vala" - _tmp24_ = passed_end; -#line 1931 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = _tmp24_; -#line 12970 "Page.c" - } else { -#line 1931 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = FALSE; -#line 12974 "Page.c" - } -#line 1931 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp22_) { -#line 1932 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (item); -#line 1932 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (object); -#line 1932 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 12984 "Page.c" - } -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (item); -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (object); -#line 12990 "Page.c" - } -#line 1919 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_object_it); -#line 12994 "Page.c" - } -#line 1935 "/home/jens/Source/shotwell/src/Page.vala" - _tmp25_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1935 "/home/jens/Source/shotwell/src/Page.vala" - _tmp26_ = _tmp25_; -#line 1935 "/home/jens/Source/shotwell/src/Page.vala" - _tmp27_ = marker; -#line 1935 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_select_marked (_tmp26_, _tmp27_); -#line 1935 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp26_); -#line 1913 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (marker); -#line 13008 "Page.c" -} - - -void -checkerboard_page_select_anchor_to_cursor (CheckerboardPage* self, - guint state) -{ - gboolean _tmp0_ = FALSE; - CheckerboardItem* _tmp1_; -#line 1938 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1939 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->cursor; -#line 1939 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ == NULL) { -#line 1939 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = TRUE; -#line 13026 "Page.c" - } else { - CheckerboardItem* _tmp2_; -#line 1939 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->anchor; -#line 1939 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = _tmp2_ == NULL; -#line 13033 "Page.c" - } -#line 1939 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_) { -#line 1940 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 13039 "Page.c" - } -#line 1942 "/home/jens/Source/shotwell/src/Page.vala" - if (state == ((guint) GDK_SHIFT_MASK)) { -#line 13043 "Page.c" - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - CheckerboardItem* _tmp5_; - CheckerboardItem* _tmp6_; -#line 1943 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1943 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = _tmp3_; -#line 1943 "/home/jens/Source/shotwell/src/Page.vala" - view_collection_unselect_all (_tmp4_); -#line 1943 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp4_); -#line 1944 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->anchor; -#line 1944 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->cursor; -#line 1944 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_select_between_items (self, _tmp5_, _tmp6_); -#line 13062 "Page.c" - } else { - CheckerboardItem* _tmp7_; - CheckerboardItem* _tmp8_; -#line 1946 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = self->cursor; -#line 1946 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = _g_object_ref0 (_tmp7_); -#line 1946 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->anchor); -#line 1946 "/home/jens/Source/shotwell/src/Page.vala" - self->anchor = _tmp8_; -#line 13074 "Page.c" - } -} - - -static void -checkerboard_page_real_set_display_titles (CheckerboardPage* self, - gboolean display) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; - GValue _tmp4_ = {0}; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; -#line 1951 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1951 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 1951 "/home/jens/Source/shotwell/src/Page.vala" - data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1951 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp1_); -#line 1952 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1952 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = _tmp2_; -#line 1952 "/home/jens/Source/shotwell/src/Page.vala" - g_value_init (&_tmp4_, G_TYPE_BOOLEAN); -#line 1952 "/home/jens/Source/shotwell/src/Page.vala" - g_value_set_boolean (&_tmp4_, display); -#line 1952 "/home/jens/Source/shotwell/src/Page.vala" - data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), CHECKERBOARD_ITEM_PROP_SHOW_TITLES, &_tmp4_, NULL, NULL); -#line 1952 "/home/jens/Source/shotwell/src/Page.vala" - G_IS_VALUE (&_tmp4_) ? (g_value_unset (&_tmp4_), NULL) : NULL; -#line 1952 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp3_); -#line 1953 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1953 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = _tmp5_; -#line 1953 "/home/jens/Source/shotwell/src/Page.vala" - data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1953 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp6_); -#line 13120 "Page.c" -} - - -void -checkerboard_page_set_display_titles (CheckerboardPage* self, - gboolean display) -{ -#line 1950 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1950 "/home/jens/Source/shotwell/src/Page.vala" - CHECKERBOARD_PAGE_GET_CLASS (self)->set_display_titles (self, display); -#line 13132 "Page.c" -} - - -static void -checkerboard_page_real_set_display_comments (CheckerboardPage* self, - gboolean display) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; - GValue _tmp4_ = {0}; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; -#line 1957 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1957 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 1957 "/home/jens/Source/shotwell/src/Page.vala" - data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1957 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp1_); -#line 1958 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1958 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = _tmp2_; -#line 1958 "/home/jens/Source/shotwell/src/Page.vala" - g_value_init (&_tmp4_, G_TYPE_BOOLEAN); -#line 1958 "/home/jens/Source/shotwell/src/Page.vala" - g_value_set_boolean (&_tmp4_, display); -#line 1958 "/home/jens/Source/shotwell/src/Page.vala" - data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), CHECKERBOARD_ITEM_PROP_SHOW_COMMENTS, &_tmp4_, NULL, NULL); -#line 1958 "/home/jens/Source/shotwell/src/Page.vala" - G_IS_VALUE (&_tmp4_) ? (g_value_unset (&_tmp4_), NULL) : NULL; -#line 1958 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp3_); -#line 1959 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1959 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = _tmp5_; -#line 1959 "/home/jens/Source/shotwell/src/Page.vala" - data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1959 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp6_); -#line 13177 "Page.c" -} - - -void -checkerboard_page_set_display_comments (CheckerboardPage* self, - gboolean display) -{ -#line 1956 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (self)); -#line 1956 "/home/jens/Source/shotwell/src/Page.vala" - CHECKERBOARD_PAGE_GET_CLASS (self)->set_display_comments (self, display); -#line 13189 "Page.c" -} - - -void -checkerboard_page_keyboard_modifiers_init (CheckerboardPageKeyboardModifiers *self, - Page* page) -{ -#line 1236 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_PAGE (page)); -#line 1236 "/home/jens/Source/shotwell/src/Page.vala" - memset (self, 0, sizeof (CheckerboardPageKeyboardModifiers)); -#line 1237 "/home/jens/Source/shotwell/src/Page.vala" - (*self).ctrl_pressed = page_get_ctrl_pressed (page); -#line 1238 "/home/jens/Source/shotwell/src/Page.vala" - (*self).alt_pressed = page_get_alt_pressed (page); -#line 1239 "/home/jens/Source/shotwell/src/Page.vala" - (*self).shift_pressed = page_get_shift_pressed (page); -#line 1240 "/home/jens/Source/shotwell/src/Page.vala" - (*self).super_pressed = page_get_super_pressed (page); -#line 13209 "Page.c" -} - - -CheckerboardPageKeyboardModifiers* -checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self) -{ - CheckerboardPageKeyboardModifiers* dup; -#line 1235 "/home/jens/Source/shotwell/src/Page.vala" - dup = g_new0 (CheckerboardPageKeyboardModifiers, 1); -#line 1235 "/home/jens/Source/shotwell/src/Page.vala" - memcpy (dup, self, sizeof (CheckerboardPageKeyboardModifiers)); -#line 1235 "/home/jens/Source/shotwell/src/Page.vala" - return dup; -#line 13223 "Page.c" -} - - -void -checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self) -{ -#line 1235 "/home/jens/Source/shotwell/src/Page.vala" - g_free (self); -#line 13232 "Page.c" -} - - -GType -checkerboard_page_keyboard_modifiers_get_type (void) -{ - static volatile gsize checkerboard_page_keyboard_modifiers_type_id__volatile = 0; - if (g_once_init_enter (&checkerboard_page_keyboard_modifiers_type_id__volatile)) { - GType checkerboard_page_keyboard_modifiers_type_id; - checkerboard_page_keyboard_modifiers_type_id = g_boxed_type_register_static ("CheckerboardPageKeyboardModifiers", (GBoxedCopyFunc) checkerboard_page_keyboard_modifiers_dup, (GBoxedFreeFunc) checkerboard_page_keyboard_modifiers_free); - g_once_init_leave (&checkerboard_page_keyboard_modifiers_type_id__volatile, checkerboard_page_keyboard_modifiers_type_id); - } - return checkerboard_page_keyboard_modifiers_type_id__volatile; -} - - -static void -checkerboard_page_class_init (CheckerboardPageClass * klass) -{ -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - checkerboard_page_parent_class = g_type_class_peek_parent (klass); -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - g_type_class_add_private (klass, sizeof (CheckerboardPagePrivate)); -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((CheckerboardPageClass *) klass)->get_item_context_menu = (GtkMenu* (*) (CheckerboardPage *)) checkerboard_page_real_get_item_context_menu; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->get_page_context_menu = (GtkMenu* (*) (Page *)) checkerboard_page_real_get_page_context_menu; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_context_keypress = (gboolean (*) (Page *)) checkerboard_page_real_on_context_keypress; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((CheckerboardPageClass *) klass)->get_view_empty_message = (gchar* (*) (CheckerboardPage *)) checkerboard_page_real_get_view_empty_message; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((CheckerboardPageClass *) klass)->get_filter_no_match_message = (gchar* (*) (CheckerboardPage *)) checkerboard_page_real_get_filter_no_match_message; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((CheckerboardPageClass *) klass)->on_item_activated = (void (*) (CheckerboardPage *, CheckerboardItem*, CheckerboardPageActivator, CheckerboardPageKeyboardModifiers*)) checkerboard_page_real_on_item_activated; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((CheckerboardPageClass *) klass)->get_search_view_filter = (SearchViewFilter* (*) (CheckerboardPage *)) checkerboard_page_real_get_search_view_filter; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((CheckerboardPageClass *) klass)->get_view_tracker = (CoreViewTracker* (*) (CheckerboardPage *)) checkerboard_page_real_get_view_tracker; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->switching_from = (void (*) (Page *)) checkerboard_page_real_switching_from; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->switched_to = (void (*) (Page *)) checkerboard_page_real_switched_to; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->set_page_name = (void (*) (Page *, const gchar*)) checkerboard_page_real_set_page_name; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) checkerboard_page_real_key_press_event; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_left_click = (gboolean (*) (Page *, GdkEventButton*)) checkerboard_page_real_on_left_click; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_left_released = (gboolean (*) (Page *, GdkEventButton*)) checkerboard_page_real_on_left_released; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_right_click = (gboolean (*) (Page *, GdkEventButton*)) checkerboard_page_real_on_right_click; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((CheckerboardPageClass *) klass)->on_mouse_over = (gboolean (*) (CheckerboardPage *, CheckerboardItem*, gint, gint, GdkModifierType)) checkerboard_page_real_on_mouse_over; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_motion = (gboolean (*) (Page *, GdkEventMotion*, gint, gint, GdkModifierType)) checkerboard_page_real_on_motion; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((CheckerboardPageClass *) klass)->set_display_titles = (void (*) (CheckerboardPage *, gboolean)) checkerboard_page_real_set_display_titles; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - ((CheckerboardPageClass *) klass)->set_display_comments = (void (*) (CheckerboardPage *, gboolean)) checkerboard_page_real_set_display_comments; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - G_OBJECT_CLASS (klass)->finalize = checkerboard_page_finalize; -#line 13296 "Page.c" -} - - -static void -checkerboard_page_instance_init (CheckerboardPage * self) -{ - GtkViewport* _tmp0_; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - self->priv = CHECKERBOARD_PAGE_GET_PRIVATE (self); -#line 1220 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->item_context_menu_path = NULL; -#line 1221 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->page_context_menu_path = NULL; -#line 1222 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = (GtkViewport*) gtk_viewport_new (NULL, NULL); -#line 1222 "/home/jens/Source/shotwell/src/Page.vala" - g_object_ref_sink (_tmp0_); -#line 1222 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->viewport = _tmp0_; -#line 1223 "/home/jens/Source/shotwell/src/Page.vala" - self->anchor = NULL; -#line 1224 "/home/jens/Source/shotwell/src/Page.vala" - self->cursor = NULL; -#line 1225 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->highlighted = NULL; -#line 1226 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->autoscroll_scheduled = FALSE; -#line 1227 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->activated_item = NULL; -#line 1228 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->previously_selected = NULL; -#line 13328 "Page.c" -} - - -static void -checkerboard_page_finalize (GObject * obj) -{ - CheckerboardPage * self; -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CHECKERBOARD_PAGE, CheckerboardPage); -#line 1219 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->layout); -#line 1220 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (self->priv->item_context_menu_path); -#line 1221 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (self->priv->page_context_menu_path); -#line 1222 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->viewport); -#line 1223 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->anchor); -#line 1224 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->cursor); -#line 1225 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->highlighted); -#line 1227 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->activated_item); -#line 1228 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->previously_selected); -#line 1295 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->item_context_menu); -#line 1307 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->page_context_menu); -#line 1215 "/home/jens/Source/shotwell/src/Page.vala" - G_OBJECT_CLASS (checkerboard_page_parent_class)->finalize (obj); -#line 13362 "Page.c" -} - - -GType -checkerboard_page_get_type (void) -{ - static volatile gsize checkerboard_page_type_id__volatile = 0; - if (g_once_init_enter (&checkerboard_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CheckerboardPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) checkerboard_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CheckerboardPage), 0, (GInstanceInitFunc) checkerboard_page_instance_init, NULL }; - GType checkerboard_page_type_id; - checkerboard_page_type_id = g_type_register_static (TYPE_PAGE, "CheckerboardPage", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&checkerboard_page_type_id__volatile, checkerboard_page_type_id); - } - return checkerboard_page_type_id__volatile; -} - - -static void -_single_photo_page_on_colors_changed_config_facade_colors_changed (ConfigFacade* _sender, - gpointer self) -{ -#line 2026 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_on_colors_changed ((SinglePhotoPage*) self); -#line 13386 "Page.c" -} - - -GType -single_photo_page_update_reason_get_type (void) -{ - static volatile gsize single_photo_page_update_reason_type_id__volatile = 0; - if (g_once_init_enter (&single_photo_page_update_reason_type_id__volatile)) { - static const GEnumValue values[] = {{SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF, "SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF", "new-pixbuf"}, {SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT, "SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT", "quality-improvement"}, {SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS, "SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS", "resized-canvas"}, {0, NULL, NULL}}; - GType single_photo_page_update_reason_type_id; - single_photo_page_update_reason_type_id = g_enum_register_static ("SinglePhotoPageUpdateReason", values); - g_once_init_leave (&single_photo_page_update_reason_type_id__volatile, single_photo_page_update_reason_type_id); - } - return single_photo_page_update_reason_type_id__volatile; -} - - -static void -_single_photo_page_on_viewport_resize_gtk_widget_size_allocate (GtkWidget* _sender, - GtkAllocation* allocation, - gpointer self) -{ -#line 2018 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_on_viewport_resize ((SinglePhotoPage*) self); -#line 13411 "Page.c" -} - - -static gboolean -_single_photo_page_on_canvas_exposed_gtk_widget_draw (GtkWidget* _sender, - cairo_t* cr, - gpointer self) -{ - gboolean result; - result = single_photo_page_on_canvas_exposed ((SinglePhotoPage*) self, cr); -#line 2019 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 13424 "Page.c" -} - - -SinglePhotoPage* -single_photo_page_construct (GType object_type, - const gchar* page_name, - gboolean scale_up_to_viewport) -{ - SinglePhotoPage * self = NULL; - TransitionEffectsManager* _tmp0_; - TransitionEffectsManager* _tmp1_; - TransitionClock* _tmp2_; - GtkViewport* _tmp3_; - GtkViewport* _tmp4_; - GtkViewport* _tmp5_; - GtkDrawingArea* _tmp6_; - GtkViewport* _tmp7_; - GtkDrawingArea* _tmp8_; - GtkViewport* _tmp9_; - GtkDrawingArea* _tmp10_; - GtkDrawingArea* _tmp11_; - ConfigFacade* _tmp12_; - ConfigFacade* _tmp13_; -#line 1995 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (page_name != NULL, NULL); -#line 1996 "/home/jens/Source/shotwell/src/Page.vala" - self = (SinglePhotoPage*) page_construct (object_type, page_name); -#line 1998 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->scale_up_to_viewport = scale_up_to_viewport; -#line 2000 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = transition_effects_manager_get_instance (); -#line 2000 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 2000 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = transition_effects_manager_create_null_transition_clock (_tmp1_); -#line 2000 "/home/jens/Source/shotwell/src/Page.vala" - _transition_clock_unref0 (self->priv->transition_clock); -#line 2000 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->transition_clock = _tmp2_; -#line 2000 "/home/jens/Source/shotwell/src/Page.vala" - _transition_effects_manager_unref0 (_tmp1_); -#line 2004 "/home/jens/Source/shotwell/src/Page.vala" - gtk_scrolled_window_set_policy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); -#line 2006 "/home/jens/Source/shotwell/src/Page.vala" - gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), (guint) 0); -#line 2007 "/home/jens/Source/shotwell/src/Page.vala" - gtk_scrolled_window_set_shadow_type (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow), GTK_SHADOW_NONE); -#line 2009 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = self->viewport; -#line 2009 "/home/jens/Source/shotwell/src/Page.vala" - gtk_viewport_set_shadow_type (_tmp3_, GTK_SHADOW_NONE); -#line 2010 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = self->viewport; -#line 2010 "/home/jens/Source/shotwell/src/Page.vala" - gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_container_get_type (), GtkContainer), (guint) 0); -#line 2011 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->viewport; -#line 2011 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->canvas; -#line 2011 "/home/jens/Source/shotwell/src/Page.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget)); -#line 2013 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = self->viewport; -#line 2013 "/home/jens/Source/shotwell/src/Page.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget)); -#line 2015 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = self->canvas; -#line 2015 "/home/jens/Source/shotwell/src/Page.vala" - gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), (gint) ((GDK_EXPOSURE_MASK | GDK_STRUCTURE_MASK) | GDK_SUBSTRUCTURE_MASK)); -#line 2018 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = self->viewport; -#line 2018 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), "size-allocate", (GCallback) _single_photo_page_on_viewport_resize_gtk_widget_size_allocate, self, 0); -#line 2019 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = self->canvas; -#line 2019 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), "draw", (GCallback) _single_photo_page_on_canvas_exposed_gtk_widget_draw, self, 0); -#line 2021 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = self->canvas; -#line 2021 "/home/jens/Source/shotwell/src/Page.vala" - page_set_event_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget)); -#line 2022 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = config_facade_get_instance (); -#line 2022 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = _tmp12_; -#line 2022 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect_object (_tmp13_, "colors-changed", (GCallback) _single_photo_page_on_colors_changed_config_facade_colors_changed, self, 0); -#line 2022 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp13_); -#line 1995 "/home/jens/Source/shotwell/src/Page.vala" - return self; -#line 13516 "Page.c" -} - - -gboolean -single_photo_page_is_transition_in_progress (SinglePhotoPage* self) -{ - gboolean result = FALSE; - TransitionClock* _tmp0_; -#line 2029 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), FALSE); -#line 2030 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->transition_clock; -#line 2030 "/home/jens/Source/shotwell/src/Page.vala" - result = transition_clock_is_in_progress (_tmp0_); -#line 2030 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 13533 "Page.c" -} - - -void -single_photo_page_cancel_transition (SinglePhotoPage* self) -{ - TransitionClock* _tmp0_; -#line 2033 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2034 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->transition_clock; -#line 2034 "/home/jens/Source/shotwell/src/Page.vala" - if (transition_clock_is_in_progress (_tmp0_)) { -#line 13547 "Page.c" - TransitionClock* _tmp1_; -#line 2035 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->transition_clock; -#line 2035 "/home/jens/Source/shotwell/src/Page.vala" - transition_clock_cancel (_tmp1_); -#line 13553 "Page.c" - } -} - - -void -single_photo_page_set_transition (SinglePhotoPage* self, - const gchar* effect_id, - gint duration_msec) -{ - TransitionEffectsManager* _tmp0_; - TransitionEffectsManager* _tmp1_; - TransitionClock* _tmp2_; - TransitionClock* _tmp3_; -#line 2038 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2038 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (effect_id != NULL); -#line 2039 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_cancel_transition (self); -#line 2041 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = transition_effects_manager_get_instance (); -#line 2041 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 2041 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = transition_effects_manager_create_transition_clock (_tmp1_, effect_id); -#line 2041 "/home/jens/Source/shotwell/src/Page.vala" - _transition_clock_unref0 (self->priv->transition_clock); -#line 2041 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->transition_clock = _tmp2_; -#line 2041 "/home/jens/Source/shotwell/src/Page.vala" - _transition_effects_manager_unref0 (_tmp1_); -#line 2042 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = self->priv->transition_clock; -#line 2042 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_ == NULL) { -#line 13589 "Page.c" - TransitionEffectsManager* _tmp4_; - TransitionEffectsManager* _tmp5_; - TransitionClock* _tmp6_; -#line 2043 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = transition_effects_manager_get_instance (); -#line 2043 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _tmp4_; -#line 2043 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = transition_effects_manager_create_null_transition_clock (_tmp5_); -#line 2043 "/home/jens/Source/shotwell/src/Page.vala" - _transition_clock_unref0 (self->priv->transition_clock); -#line 2043 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->transition_clock = _tmp6_; -#line 2043 "/home/jens/Source/shotwell/src/Page.vala" - _transition_effects_manager_unref0 (_tmp5_); -#line 13605 "Page.c" - } -#line 2045 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->transition_duration_msec = duration_msec; -#line 13609 "Page.c" -} - - -static void -single_photo_page_render_zoomed_to_pixmap (SinglePhotoPage* self, - ZoomState* zoom_state) -{ - GdkRectangle view_rect = {0}; - GdkRectangle _tmp0_ = {0}; - GdkPixbuf* zoomed = NULL; - ZoomBuffer* _tmp1_; - ZoomBuffer* _tmp2_; - gboolean _tmp3_; - GdkPixbuf* _tmp33_; - gint draw_x = 0; - Dimensions _tmp34_; - gint _tmp35_; - GdkRectangle _tmp36_; - gint _tmp37_; - gint _tmp38_; - gint draw_y = 0; - Dimensions _tmp39_; - gint _tmp40_; - GdkRectangle _tmp41_; - gint _tmp42_; - gint _tmp43_; - cairo_t* _tmp44_; - GdkPixbuf* _tmp45_; - gint _tmp46_; - gint _tmp47_; -#line 2049 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2049 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (zoom_state != NULL); -#line 2050 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (single_photo_page_is_zoom_supported (self), "is_zoom_supported()"); -#line 2052 "/home/jens/Source/shotwell/src/Page.vala" - zoom_state_get_viewing_rectangle_wrt_content (zoom_state, &_tmp0_); -#line 2052 "/home/jens/Source/shotwell/src/Page.vala" - view_rect = _tmp0_; -#line 2055 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = single_photo_page_get_zoom_buffer (self); -#line 2055 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_; -#line 2055 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = _tmp2_ != NULL; -#line 2055 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp2_); -#line 2055 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_) { -#line 13660 "Page.c" - GdkPixbuf* _tmp4_ = NULL; - gboolean _tmp5_; - GdkPixbuf* _tmp14_; -#line 2056 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->priv->zoom_high_quality; -#line 2056 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp5_) { -#line 13668 "Page.c" - ZoomBuffer* _tmp6_; - ZoomBuffer* _tmp7_; - ZoomState _tmp8_; - GdkPixbuf* _tmp9_; -#line 2056 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = single_photo_page_get_zoom_buffer (self); -#line 2056 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = _tmp6_; -#line 2056 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = *zoom_state; -#line 2056 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = zoom_buffer_get_zoomed_image (_tmp7_, &_tmp8_); -#line 2056 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp4_); -#line 2056 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = _tmp9_; -#line 2056 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp7_); -#line 13687 "Page.c" - } else { - ZoomBuffer* _tmp10_; - ZoomBuffer* _tmp11_; - ZoomState _tmp12_; - GdkPixbuf* _tmp13_; -#line 2057 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = single_photo_page_get_zoom_buffer (self); -#line 2057 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = _tmp10_; -#line 2057 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = *zoom_state; -#line 2057 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = zoom_buffer_get_zoom_preview_image (_tmp11_, &_tmp12_); -#line 2057 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp4_); -#line 2057 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = _tmp13_; -#line 2057 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp11_); -#line 13707 "Page.c" - } -#line 2056 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = _g_object_ref0 (_tmp4_); -#line 2056 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (zoomed); -#line 2056 "/home/jens/Source/shotwell/src/Page.vala" - zoomed = _tmp14_; -#line 2055 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp4_); -#line 13717 "Page.c" - } else { - GdkRectangle view_rect_proj = {0}; - GdkPixbuf* _tmp15_; - GdkRectangle _tmp16_ = {0}; - GdkPixbuf* proj_subpixbuf = NULL; - GdkPixbuf* _tmp17_; - GdkRectangle _tmp18_; - gint _tmp19_; - GdkRectangle _tmp20_; - gint _tmp21_; - GdkRectangle _tmp22_; - gint _tmp23_; - GdkRectangle _tmp24_; - gint _tmp25_; - GdkPixbuf* _tmp26_; - GdkPixbuf* _tmp27_; - GdkRectangle _tmp28_; - gint _tmp29_; - GdkRectangle _tmp30_; - gint _tmp31_; - GdkPixbuf* _tmp32_; -#line 2059 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = self->priv->unscaled; -#line 2059 "/home/jens/Source/shotwell/src/Page.vala" - zoom_state_get_viewing_rectangle_projection (zoom_state, _tmp15_, &_tmp16_); -#line 2059 "/home/jens/Source/shotwell/src/Page.vala" - view_rect_proj = _tmp16_; -#line 2061 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = self->priv->unscaled; -#line 2061 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = view_rect_proj; -#line 2061 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = _tmp18_.x; -#line 2061 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = view_rect_proj; -#line 2061 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = _tmp20_.y; -#line 2061 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = view_rect_proj; -#line 2061 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = _tmp22_.width; -#line 2061 "/home/jens/Source/shotwell/src/Page.vala" - _tmp24_ = view_rect_proj; -#line 2061 "/home/jens/Source/shotwell/src/Page.vala" - _tmp25_ = _tmp24_.height; -#line 2061 "/home/jens/Source/shotwell/src/Page.vala" - _tmp26_ = gdk_pixbuf_new_subpixbuf (_tmp17_, _tmp19_, _tmp21_, _tmp23_, _tmp25_); -#line 2061 "/home/jens/Source/shotwell/src/Page.vala" - proj_subpixbuf = _tmp26_; -#line 2064 "/home/jens/Source/shotwell/src/Page.vala" - _tmp27_ = proj_subpixbuf; -#line 2064 "/home/jens/Source/shotwell/src/Page.vala" - _tmp28_ = view_rect; -#line 2064 "/home/jens/Source/shotwell/src/Page.vala" - _tmp29_ = _tmp28_.width; -#line 2064 "/home/jens/Source/shotwell/src/Page.vala" - _tmp30_ = view_rect; -#line 2064 "/home/jens/Source/shotwell/src/Page.vala" - _tmp31_ = _tmp30_.height; -#line 2064 "/home/jens/Source/shotwell/src/Page.vala" - _tmp32_ = gdk_pixbuf_scale_simple (_tmp27_, _tmp29_, _tmp31_, GDK_INTERP_BILINEAR); -#line 2064 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (zoomed); -#line 2064 "/home/jens/Source/shotwell/src/Page.vala" - zoomed = _tmp32_; -#line 2055 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (proj_subpixbuf); -#line 13785 "Page.c" - } -#line 2068 "/home/jens/Source/shotwell/src/Page.vala" - _tmp33_ = zoomed; -#line 2068 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp33_ == NULL) { -#line 2069 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (zoomed); -#line 2069 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 13795 "Page.c" - } -#line 2072 "/home/jens/Source/shotwell/src/Page.vala" - _tmp34_ = self->priv->pixmap_dim; -#line 2072 "/home/jens/Source/shotwell/src/Page.vala" - _tmp35_ = _tmp34_.width; -#line 2072 "/home/jens/Source/shotwell/src/Page.vala" - _tmp36_ = view_rect; -#line 2072 "/home/jens/Source/shotwell/src/Page.vala" - _tmp37_ = _tmp36_.width; -#line 2072 "/home/jens/Source/shotwell/src/Page.vala" - draw_x = (_tmp35_ - _tmp37_) / 2; -#line 2073 "/home/jens/Source/shotwell/src/Page.vala" - _tmp38_ = draw_x; -#line 2073 "/home/jens/Source/shotwell/src/Page.vala" - draw_x = CLAMP (_tmp38_, 0, G_MAXINT); -#line 2075 "/home/jens/Source/shotwell/src/Page.vala" - _tmp39_ = self->priv->pixmap_dim; -#line 2075 "/home/jens/Source/shotwell/src/Page.vala" - _tmp40_ = _tmp39_.height; -#line 2075 "/home/jens/Source/shotwell/src/Page.vala" - _tmp41_ = view_rect; -#line 2075 "/home/jens/Source/shotwell/src/Page.vala" - _tmp42_ = _tmp41_.height; -#line 2075 "/home/jens/Source/shotwell/src/Page.vala" - draw_y = (_tmp40_ - _tmp42_) / 2; -#line 2076 "/home/jens/Source/shotwell/src/Page.vala" - _tmp43_ = draw_y; -#line 2076 "/home/jens/Source/shotwell/src/Page.vala" - draw_y = CLAMP (_tmp43_, 0, G_MAXINT); -#line 2077 "/home/jens/Source/shotwell/src/Page.vala" - _tmp44_ = self->priv->pixmap_ctx; -#line 2077 "/home/jens/Source/shotwell/src/Page.vala" - _tmp45_ = zoomed; -#line 2077 "/home/jens/Source/shotwell/src/Page.vala" - _tmp46_ = draw_x; -#line 2077 "/home/jens/Source/shotwell/src/Page.vala" - _tmp47_ = draw_y; -#line 2077 "/home/jens/Source/shotwell/src/Page.vala" - paint_pixmap_with_background (_tmp44_, _tmp45_, _tmp46_, _tmp47_); -#line 2049 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (zoomed); -#line 13837 "Page.c" -} - - -void -single_photo_page_on_interactive_zoom (SinglePhotoPage* self, - ZoomState* interactive_zoom_state) -{ - cairo_t* _tmp0_; - cairo_t* _tmp1_; - gboolean old_quality_setting = FALSE; - gboolean _tmp2_; - ZoomState _tmp3_; - GtkDrawingArea* _tmp4_; -#line 2080 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2080 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (interactive_zoom_state != NULL); -#line 2081 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (single_photo_page_is_zoom_supported (self), "is_zoom_supported()"); -#line 2083 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->pixmap_ctx; -#line 2083 "/home/jens/Source/shotwell/src/Page.vala" - set_source_color_from_string (_tmp0_, "#000"); -#line 2084 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->pixmap_ctx; -#line 2084 "/home/jens/Source/shotwell/src/Page.vala" - cairo_paint (_tmp1_); -#line 2086 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->priv->zoom_high_quality; -#line 2086 "/home/jens/Source/shotwell/src/Page.vala" - old_quality_setting = _tmp2_; -#line 2087 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->zoom_high_quality = FALSE; -#line 2088 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = *interactive_zoom_state; -#line 2088 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_render_zoomed_to_pixmap (self, &_tmp3_); -#line 2089 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->zoom_high_quality = old_quality_setting; -#line 2091 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = self->canvas; -#line 2091 "/home/jens/Source/shotwell/src/Page.vala" - gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget)); -#line 13881 "Page.c" -} - - -void -single_photo_page_on_interactive_pan (SinglePhotoPage* self, - ZoomState* interactive_zoom_state) -{ - cairo_t* _tmp0_; - cairo_t* _tmp1_; - gboolean old_quality_setting = FALSE; - gboolean _tmp2_; - ZoomState _tmp3_; - GtkDrawingArea* _tmp4_; -#line 2094 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2094 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (interactive_zoom_state != NULL); -#line 2095 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (single_photo_page_is_zoom_supported (self), "is_zoom_supported()"); -#line 2097 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->pixmap_ctx; -#line 2097 "/home/jens/Source/shotwell/src/Page.vala" - set_source_color_from_string (_tmp0_, "#000"); -#line 2098 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->pixmap_ctx; -#line 2098 "/home/jens/Source/shotwell/src/Page.vala" - cairo_paint (_tmp1_); -#line 2100 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->priv->zoom_high_quality; -#line 2100 "/home/jens/Source/shotwell/src/Page.vala" - old_quality_setting = _tmp2_; -#line 2101 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->zoom_high_quality = TRUE; -#line 2102 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = *interactive_zoom_state; -#line 2102 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_render_zoomed_to_pixmap (self, &_tmp3_); -#line 2103 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->zoom_high_quality = old_quality_setting; -#line 2105 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = self->canvas; -#line 2105 "/home/jens/Source/shotwell/src/Page.vala" - gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget)); -#line 13925 "Page.c" -} - - -static gboolean -single_photo_page_real_is_zoom_supported (SinglePhotoPage* self) -{ - gboolean result = FALSE; -#line 2109 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 2109 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 13937 "Page.c" -} - - -gboolean -single_photo_page_is_zoom_supported (SinglePhotoPage* self) -{ -#line 2108 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), FALSE); -#line 2108 "/home/jens/Source/shotwell/src/Page.vala" - return SINGLE_PHOTO_PAGE_GET_CLASS (self)->is_zoom_supported (self); -#line 13948 "Page.c" -} - - -static void -single_photo_page_real_cancel_zoom (SinglePhotoPage* self) -{ - cairo_surface_t* _tmp0_; -#line 2113 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->pixmap; -#line 2113 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_ != NULL) { -#line 13960 "Page.c" - cairo_t* _tmp1_; - cairo_t* _tmp2_; -#line 2114 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->pixmap_ctx; -#line 2114 "/home/jens/Source/shotwell/src/Page.vala" - set_source_color_from_string (_tmp1_, "#000"); -#line 2115 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->priv->pixmap_ctx; -#line 2115 "/home/jens/Source/shotwell/src/Page.vala" - cairo_paint (_tmp2_); -#line 13971 "Page.c" - } -} - - -void -single_photo_page_cancel_zoom (SinglePhotoPage* self) -{ -#line 2112 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2112 "/home/jens/Source/shotwell/src/Page.vala" - SINGLE_PHOTO_PAGE_GET_CLASS (self)->cancel_zoom (self); -#line 13983 "Page.c" -} - - -static void -single_photo_page_real_save_zoom_state (SinglePhotoPage* self) -{ - ZoomState _tmp0_; -#line 2120 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->static_zoom_state; -#line 2120 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->saved_zoom_state = _tmp0_; -#line 2121 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->has_saved_zoom_state = TRUE; -#line 13997 "Page.c" -} - - -void -single_photo_page_save_zoom_state (SinglePhotoPage* self) -{ -#line 2119 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2119 "/home/jens/Source/shotwell/src/Page.vala" - SINGLE_PHOTO_PAGE_GET_CLASS (self)->save_zoom_state (self); -#line 14008 "Page.c" -} - - -static void -single_photo_page_real_restore_zoom_state (SinglePhotoPage* self) -{ - gboolean _tmp0_; - ZoomState _tmp1_; -#line 2125 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->has_saved_zoom_state; -#line 2125 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp0_) { -#line 2126 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 14023 "Page.c" - } -#line 2128 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->saved_zoom_state; -#line 2128 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->static_zoom_state = _tmp1_; -#line 2129 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_repaint (self, NULL); -#line 2130 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->has_saved_zoom_state = FALSE; -#line 14033 "Page.c" -} - - -void -single_photo_page_restore_zoom_state (SinglePhotoPage* self) -{ -#line 2124 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2124 "/home/jens/Source/shotwell/src/Page.vala" - SINGLE_PHOTO_PAGE_GET_CLASS (self)->restore_zoom_state (self); -#line 14044 "Page.c" -} - - -static ZoomBuffer* -single_photo_page_real_get_zoom_buffer (SinglePhotoPage* self) -{ - ZoomBuffer* result = NULL; -#line 2134 "/home/jens/Source/shotwell/src/Page.vala" - result = NULL; -#line 2134 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 14056 "Page.c" -} - - -ZoomBuffer* -single_photo_page_get_zoom_buffer (SinglePhotoPage* self) -{ -#line 2133 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), NULL); -#line 2133 "/home/jens/Source/shotwell/src/Page.vala" - return SINGLE_PHOTO_PAGE_GET_CLASS (self)->get_zoom_buffer (self); -#line 14067 "Page.c" -} - - -void -single_photo_page_get_saved_zoom_state (SinglePhotoPage* self, - ZoomState* result) -{ - ZoomState _tmp0_; -#line 2137 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2138 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->saved_zoom_state; -#line 2138 "/home/jens/Source/shotwell/src/Page.vala" - *result = _tmp0_; -#line 2138 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 14084 "Page.c" -} - - -void -single_photo_page_set_zoom_state (SinglePhotoPage* self, - ZoomState* zoom_state) -{ - ZoomState _tmp0_; -#line 2141 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2141 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (zoom_state != NULL); -#line 2142 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (single_photo_page_is_zoom_supported (self), "is_zoom_supported()"); -#line 2144 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = *zoom_state; -#line 2144 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->static_zoom_state = _tmp0_; -#line 14103 "Page.c" -} - - -void -single_photo_page_get_zoom_state (SinglePhotoPage* self, - ZoomState* result) -{ - ZoomState _tmp0_; -#line 2147 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2148 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (single_photo_page_is_zoom_supported (self), "is_zoom_supported()"); -#line 2150 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->static_zoom_state; -#line 2150 "/home/jens/Source/shotwell/src/Page.vala" - *result = _tmp0_; -#line 2150 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 14122 "Page.c" -} - - -static void -single_photo_page_real_switched_to (Page* base) -{ - SinglePhotoPage * self; - GdkPixbuf* _tmp0_; -#line 2153 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage); -#line 2154 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_CLASS (single_photo_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2156 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->unscaled; -#line 2156 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_ != NULL) { -#line 2157 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_repaint (self, NULL); -#line 14141 "Page.c" - } -} - - -static void -single_photo_page_real_set_container (Page* base, - GtkWindow* container) -{ - SinglePhotoPage * self; -#line 2160 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage); -#line 2160 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (GTK_IS_WINDOW (container)); -#line 2161 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_CLASS (single_photo_page_parent_class)->set_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), container); -#line 2165 "/home/jens/Source/shotwell/src/Page.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (container, TYPE_FULLSCREEN_WINDOW)) { -#line 2166 "/home/jens/Source/shotwell/src/Page.vala" - gtk_scrolled_window_set_policy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_scrolled_window_get_type (), GtkScrolledWindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); -#line 14161 "Page.c" - } -} - - -void -single_photo_page_set_pixbuf (SinglePhotoPage* self, - GdkPixbuf* unscaled, - Dimensions* max_dim, - Direction* direction) -{ - Dimensions _tmp0_; - Dimensions _tmp1_; - GdkPoint _tmp2_ = {0}; - GdkPixbuf* _tmp3_; - Dimensions _tmp4_; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; - GtkDrawingArea* _tmp7_; -#line 2173 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2173 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (GDK_IS_PIXBUF (unscaled)); -#line 2173 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (max_dim != NULL); -#line 2174 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = *max_dim; -#line 2174 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->pixmap_dim; -#line 2174 "/home/jens/Source/shotwell/src/Page.vala" - zoom_state_get_viewport_center (&self->priv->static_zoom_state, &_tmp2_); -#line 2174 "/home/jens/Source/shotwell/src/Page.vala" - zoom_state_init (&self->priv->static_zoom_state, &_tmp0_, &_tmp1_, zoom_state_get_interpolation_factor (&self->priv->static_zoom_state), &_tmp2_); -#line 2178 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_cancel_transition (self); -#line 2180 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = _g_object_ref0 (unscaled); -#line 2180 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->unscaled); -#line 2180 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->unscaled = _tmp3_; -#line 2181 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = *max_dim; -#line 2181 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->max_dim = _tmp4_; -#line 2182 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->priv->scaled; -#line 2182 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = _g_object_ref0 (_tmp5_); -#line 2182 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->old_scaled); -#line 2182 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->old_scaled = _tmp6_; -#line 2183 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->scaled); -#line 2183 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->scaled = NULL; -#line 2186 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = self->canvas; -#line 2186 "/home/jens/Source/shotwell/src/Page.vala" - gtk_widget_realize (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget)); -#line 2188 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_repaint (self, direction); -#line 14224 "Page.c" -} - - -void -single_photo_page_blank_display (SinglePhotoPage* self) -{ - GtkDrawingArea* _tmp0_; -#line 2191 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2192 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->unscaled); -#line 2192 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->unscaled = NULL; -#line 2193 "/home/jens/Source/shotwell/src/Page.vala" - dimensions_init (&self->priv->max_dim, 0, 0); -#line 2194 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->scaled); -#line 2194 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->scaled = NULL; -#line 2195 "/home/jens/Source/shotwell/src/Page.vala" - _cairo_surface_destroy0 (self->priv->pixmap); -#line 2195 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->pixmap = NULL; -#line 2198 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->canvas; -#line 2198 "/home/jens/Source/shotwell/src/Page.vala" - gtk_widget_realize (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 2201 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_invalidate_all (self); -#line 14254 "Page.c" -} - - -static gpointer -_cairo_surface_reference0 (gpointer self) -{ -#line 2205 "/home/jens/Source/shotwell/src/Page.vala" - return self ? cairo_surface_reference (self) : NULL; -#line 14263 "Page.c" -} - - -cairo_surface_t* -single_photo_page_get_surface (SinglePhotoPage* self) -{ - cairo_surface_t* result = NULL; - cairo_surface_t* _tmp0_; - cairo_surface_t* _tmp1_; -#line 2204 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), NULL); -#line 2205 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->pixmap; -#line 2205 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _cairo_surface_reference0 (_tmp0_); -#line 2205 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp1_; -#line 2205 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 14283 "Page.c" -} - - -void -single_photo_page_get_surface_dim (SinglePhotoPage* self, - Dimensions* result) -{ - Dimensions _tmp0_; -#line 2208 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2209 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->pixmap_dim; -#line 2209 "/home/jens/Source/shotwell/src/Page.vala" - *result = _tmp0_; -#line 2209 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 14300 "Page.c" -} - - -static gpointer -_cairo_reference0 (gpointer self) -{ -#line 2213 "/home/jens/Source/shotwell/src/Page.vala" - return self ? cairo_reference (self) : NULL; -#line 14309 "Page.c" -} - - -cairo_t* -single_photo_page_get_cairo_context (SinglePhotoPage* self) -{ - cairo_t* result = NULL; - cairo_t* _tmp0_; - cairo_t* _tmp1_; -#line 2212 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), NULL); -#line 2213 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->pixmap_ctx; -#line 2213 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _cairo_reference0 (_tmp0_); -#line 2213 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp1_; -#line 2213 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 14329 "Page.c" -} - - -void -single_photo_page_paint_text (SinglePhotoPage* self, - PangoLayout* pango_layout, - gint x, - gint y) -{ - cairo_t* _tmp0_; - cairo_t* _tmp1_; -#line 2216 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2216 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (PANGO_IS_LAYOUT (pango_layout)); -#line 2217 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->text_ctx; -#line 2217 "/home/jens/Source/shotwell/src/Page.vala" - cairo_move_to (_tmp0_, (gdouble) x, (gdouble) y); -#line 2218 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->text_ctx; -#line 2218 "/home/jens/Source/shotwell/src/Page.vala" - pango_cairo_show_layout (_tmp1_, pango_layout); -#line 14353 "Page.c" -} - - -void -single_photo_page_get_canvas_scaling (SinglePhotoPage* self, - Scaling* result) -{ - Scaling _tmp0_ = {0}; - GtkWindow* _tmp1_; - GtkWindow* _tmp2_; - gboolean _tmp3_; -#line 2221 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2222 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2222 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_; -#line 2222 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_FULLSCREEN_WINDOW); -#line 2222 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp2_); -#line 2222 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_) { -#line 14377 "Page.c" - GtkWindow* _tmp4_; - GtkWindow* _tmp5_; - gboolean _tmp6_; - Scaling _tmp7_ = {0}; -#line 2222 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2222 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = _tmp4_; -#line 2222 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->priv->scale_up_to_viewport; -#line 2222 "/home/jens/Source/shotwell/src/Page.vala" - scaling_for_screen (_tmp5_, _tmp6_, &_tmp7_); -#line 2222 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = _tmp7_; -#line 2222 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp5_); -#line 14394 "Page.c" - } else { - GtkViewport* _tmp8_; - gboolean _tmp9_; - Scaling _tmp10_ = {0}; -#line 2223 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = self->viewport; -#line 2223 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = self->priv->scale_up_to_viewport; -#line 2223 "/home/jens/Source/shotwell/src/Page.vala" - scaling_for_widget (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), _tmp9_, &_tmp10_); -#line 2223 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = _tmp10_; -#line 14407 "Page.c" - } -#line 2222 "/home/jens/Source/shotwell/src/Page.vala" - *result = _tmp0_; -#line 2222 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 14413 "Page.c" -} - - -GdkPixbuf* -single_photo_page_get_unscaled_pixbuf (SinglePhotoPage* self) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; -#line 2226 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), NULL); -#line 2227 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->unscaled; -#line 2227 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 2227 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp1_; -#line 2227 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 14433 "Page.c" -} - - -GdkPixbuf* -single_photo_page_get_scaled_pixbuf (SinglePhotoPage* self) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; -#line 2230 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), NULL); -#line 2231 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->scaled; -#line 2231 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 2231 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp1_; -#line 2231 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 14453 "Page.c" -} - - -void -single_photo_page_get_scaled_pixbuf_position (SinglePhotoPage* self, - GdkRectangle* result) -{ - GdkRectangle _tmp0_; -#line 2235 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2236 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->scaled_pos; -#line 2236 "/home/jens/Source/shotwell/src/Page.vala" - *result = _tmp0_; -#line 2236 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 14470 "Page.c" -} - - -gboolean -single_photo_page_is_inside_pixbuf (SinglePhotoPage* self, - gint x, - gint y) -{ - gboolean result = FALSE; - GdkRectangle _tmp0_; -#line 2239 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), FALSE); -#line 2240 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->scaled_pos; -#line 2240 "/home/jens/Source/shotwell/src/Page.vala" - result = coord_in_rectangle (x, y, &_tmp0_); -#line 2240 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 14489 "Page.c" -} - - -void -single_photo_page_invalidate (SinglePhotoPage* self, - GdkRectangle* rect) -{ - GtkDrawingArea* _tmp0_; - GdkWindow* _tmp1_; -#line 2243 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2243 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (rect != NULL); -#line 2244 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->canvas; -#line 2244 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 2244 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ != NULL) { -#line 14509 "Page.c" - GtkDrawingArea* _tmp2_; - GdkWindow* _tmp3_; - GdkRectangle _tmp4_; -#line 2245 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->canvas; -#line 2245 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 2245 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = *rect; -#line 2245 "/home/jens/Source/shotwell/src/Page.vala" - gdk_window_invalidate_rect (_tmp3_, &_tmp4_, FALSE); -#line 14521 "Page.c" - } -} - - -void -single_photo_page_invalidate_all (SinglePhotoPage* self) -{ - GtkDrawingArea* _tmp0_; - GdkWindow* _tmp1_; -#line 2248 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2249 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->canvas; -#line 2249 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 2249 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ != NULL) { -#line 14539 "Page.c" - GtkDrawingArea* _tmp2_; - GdkWindow* _tmp3_; -#line 2250 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->canvas; -#line 2250 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 2250 "/home/jens/Source/shotwell/src/Page.vala" - gdk_window_invalidate_rect (_tmp3_, NULL, FALSE); -#line 14548 "Page.c" - } -} - - -static void -single_photo_page_on_viewport_resize (SinglePhotoPage* self) -{ -#line 2253 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2255 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_internal_repaint (self, TRUE, NULL); -#line 14560 "Page.c" -} - - -static void -single_photo_page_real_on_resize_finished (Page* base, - GdkRectangle* rect) -{ - SinglePhotoPage * self; - GdkRectangle _tmp0_; -#line 2258 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage); -#line 2258 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (rect != NULL); -#line 2259 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = *rect; -#line 2259 "/home/jens/Source/shotwell/src/Page.vala" - PAGE_CLASS (single_photo_page_parent_class)->on_resize_finished (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), &_tmp0_); -#line 2262 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_repaint (self, NULL); -#line 14580 "Page.c" -} - - -static gboolean -single_photo_page_on_canvas_exposed (SinglePhotoPage* self, - cairo_t* exposed_ctx) -{ - gboolean result = FALSE; - cairo_surface_t* _tmp0_; -#line 2265 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (self), FALSE); -#line 2265 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (exposed_ctx != NULL, FALSE); -#line 2268 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->pixmap; -#line 2268 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_ != NULL) { -#line 14598 "Page.c" - cairo_surface_t* _tmp1_; -#line 2269 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->pixmap; -#line 2269 "/home/jens/Source/shotwell/src/Page.vala" - cairo_set_source_surface (exposed_ctx, _tmp1_, (gdouble) 0, (gdouble) 0); -#line 14604 "Page.c" - } else { -#line 2271 "/home/jens/Source/shotwell/src/Page.vala" - set_source_color_from_string (exposed_ctx, "#000"); -#line 14608 "Page.c" - } -#line 2273 "/home/jens/Source/shotwell/src/Page.vala" - cairo_rectangle (exposed_ctx, (gdouble) 0, (gdouble) 0, (gdouble) gtk_widget_get_allocated_width (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)), (gdouble) gtk_widget_get_allocated_height (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget))); -#line 2274 "/home/jens/Source/shotwell/src/Page.vala" - cairo_paint (exposed_ctx); -#line 2276 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 2276 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 14618 "Page.c" -} - - -static void -single_photo_page_real_new_surface (SinglePhotoPage* self, - cairo_t* ctx, - Dimensions* ctx_dim) -{ -#line 2279 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (ctx != NULL); -#line 2279 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (ctx_dim != NULL); -#line 14631 "Page.c" -} - - -void -single_photo_page_new_surface (SinglePhotoPage* self, - cairo_t* ctx, - Dimensions* ctx_dim) -{ -#line 2279 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2279 "/home/jens/Source/shotwell/src/Page.vala" - SINGLE_PHOTO_PAGE_GET_CLASS (self)->new_surface (self, ctx, ctx_dim); -#line 14644 "Page.c" -} - - -static void -single_photo_page_real_updated_pixbuf (SinglePhotoPage* self, - GdkPixbuf* pixbuf, - SinglePhotoPageUpdateReason reason, - Dimensions* old_dim) -{ -#line 2282 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 2282 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (old_dim != NULL); -#line 14658 "Page.c" -} - - -void -single_photo_page_updated_pixbuf (SinglePhotoPage* self, - GdkPixbuf* pixbuf, - SinglePhotoPageUpdateReason reason, - Dimensions* old_dim) -{ -#line 2282 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2282 "/home/jens/Source/shotwell/src/Page.vala" - SINGLE_PHOTO_PAGE_GET_CLASS (self)->updated_pixbuf (self, pixbuf, reason, old_dim); -#line 14672 "Page.c" -} - - -static void -single_photo_page_real_paint (SinglePhotoPage* self, - cairo_t* ctx, - Dimensions* ctx_dim) -{ - gboolean _tmp0_ = FALSE; -#line 2285 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (ctx != NULL); -#line 2285 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (ctx_dim != NULL); -#line 2286 "/home/jens/Source/shotwell/src/Page.vala" - if (single_photo_page_is_zoom_supported (self)) { -#line 2286 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = !zoom_state_is_default (&self->priv->static_zoom_state); -#line 14690 "Page.c" - } else { -#line 2286 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = FALSE; -#line 14694 "Page.c" - } -#line 2286 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_) { -#line 14698 "Page.c" - Dimensions _tmp1_; - gint _tmp2_; - Dimensions _tmp3_; - gint _tmp4_; - ZoomState _tmp5_; -#line 2287 "/home/jens/Source/shotwell/src/Page.vala" - set_source_color_from_string (ctx, "#000"); -#line 2288 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->pixmap_dim; -#line 2288 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_.width; -#line 2288 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = self->priv->pixmap_dim; -#line 2288 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = _tmp3_.height; -#line 2288 "/home/jens/Source/shotwell/src/Page.vala" - cairo_rectangle (ctx, (gdouble) 0, (gdouble) 0, (gdouble) _tmp2_, (gdouble) _tmp4_); -#line 2289 "/home/jens/Source/shotwell/src/Page.vala" - cairo_fill (ctx); -#line 2291 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->priv->static_zoom_state; -#line 2291 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_render_zoomed_to_pixmap (self, &_tmp5_); -#line 14722 "Page.c" - } else { - TransitionClock* _tmp6_; - Dimensions _tmp7_; - gint _tmp8_; - Dimensions _tmp9_; - gint _tmp10_; -#line 2292 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->priv->transition_clock; -#line 2292 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = *ctx_dim; -#line 2292 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = _tmp7_.width; -#line 2292 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = *ctx_dim; -#line 2292 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = _tmp9_.height; -#line 2292 "/home/jens/Source/shotwell/src/Page.vala" - if (!transition_clock_paint (_tmp6_, ctx, _tmp8_, _tmp10_)) { -#line 14741 "Page.c" - Dimensions _tmp11_; - gint _tmp12_; - Dimensions _tmp13_; - gint _tmp14_; - GdkPixbuf* _tmp15_; - GdkRectangle _tmp16_; - gint _tmp17_; - GdkRectangle _tmp18_; - gint _tmp19_; -#line 2294 "/home/jens/Source/shotwell/src/Page.vala" - set_source_color_from_string (ctx, "#000"); -#line 2296 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = self->priv->pixmap_dim; -#line 2296 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = _tmp11_.width; -#line 2296 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = self->priv->pixmap_dim; -#line 2296 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = _tmp13_.height; -#line 2296 "/home/jens/Source/shotwell/src/Page.vala" - cairo_rectangle (ctx, (gdouble) 0, (gdouble) 0, (gdouble) _tmp12_, (gdouble) _tmp14_); -#line 2297 "/home/jens/Source/shotwell/src/Page.vala" - cairo_fill (ctx); -#line 2299 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = self->priv->scaled; -#line 2299 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = self->priv->scaled_pos; -#line 2299 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = _tmp16_.x; -#line 2299 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = self->priv->scaled_pos; -#line 2299 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = _tmp18_.y; -#line 2299 "/home/jens/Source/shotwell/src/Page.vala" - paint_pixmap_with_background (ctx, _tmp15_, _tmp17_, _tmp19_); -#line 14777 "Page.c" - } - } -} - - -void -single_photo_page_paint (SinglePhotoPage* self, - cairo_t* ctx, - Dimensions* ctx_dim) -{ -#line 2285 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2285 "/home/jens/Source/shotwell/src/Page.vala" - SINGLE_PHOTO_PAGE_GET_CLASS (self)->paint (self, ctx, ctx_dim); -#line 14792 "Page.c" -} - - -static void -single_photo_page_repaint_pixmap (SinglePhotoPage* self) -{ - cairo_t* _tmp0_; - cairo_t* _tmp1_; - Dimensions _tmp2_; -#line 2303 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2304 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->pixmap_ctx; -#line 2304 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_ == NULL) { -#line 2305 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 14810 "Page.c" - } -#line 2307 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->pixmap_ctx; -#line 2307 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->priv->pixmap_dim; -#line 2307 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_paint (self, _tmp1_, &_tmp2_); -#line 2308 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_invalidate_all (self); -#line 14820 "Page.c" -} - - -void -single_photo_page_repaint (SinglePhotoPage* self, - Direction* direction) -{ -#line 2311 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2312 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_internal_repaint (self, FALSE, direction); -#line 14832 "Page.c" -} - - -static void -_single_photo_page_repaint_pixmap_transition_clock_repaint_callback (gpointer self) -{ -#line 2400 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_repaint_pixmap ((SinglePhotoPage*) self); -#line 14841 "Page.c" -} - - -static void -single_photo_page_internal_repaint (SinglePhotoPage* self, - gboolean fast, - Direction* direction) -{ - gboolean _tmp0_ = FALSE; - GdkPixbuf* _tmp1_; - GtkAllocation allocation = {0}; - GtkViewport* _tmp4_; - GtkAllocation _tmp5_ = {0}; - gint width = 0; - GtkAllocation _tmp6_; - gint _tmp7_; - gint height = 0; - GtkAllocation _tmp8_; - gint _tmp9_; - gboolean _tmp10_ = FALSE; - gint _tmp11_; - gboolean new_pixbuf = FALSE; - GdkPixbuf* _tmp13_; - Dimensions old_scaled_dim = {0}; - GdkRectangle _tmp14_; - Dimensions _tmp15_ = {0}; - GdkRectangle old_scaled_pos = {0}; - GdkRectangle _tmp16_; - gboolean _tmp17_ = FALSE; - Dimensions _tmp18_; - gint _tmp19_; - gint _tmp20_; - gboolean new_pixmap = FALSE; - cairo_surface_t* _tmp24_; - gboolean _tmp27_ = FALSE; - gboolean _tmp28_; - GdkInterpType _tmp61_ = 0; - GdkInterpType interp = 0; - GdkPixbuf* _tmp62_; - gboolean _tmp78_ = FALSE; - TransitionClock* _tmp89_; -#line 2315 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2317 "/home/jens/Source/shotwell/src/Page.vala" - if (!page_is_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page))) { -#line 2318 "/home/jens/Source/shotwell/src/Page.vala" - _cairo_surface_destroy0 (self->priv->pixmap); -#line 2318 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->pixmap = NULL; -#line 2319 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->scaled); -#line 2319 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->scaled = NULL; -#line 2321 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 14897 "Page.c" - } -#line 2325 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->unscaled; -#line 2325 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp1_ == NULL) { -#line 2325 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = TRUE; -#line 14905 "Page.c" - } else { - GtkDrawingArea* _tmp2_; - GdkWindow* _tmp3_; -#line 2325 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->canvas; -#line 2325 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 2325 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = _tmp3_ == NULL; -#line 14915 "Page.c" - } -#line 2325 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_) { -#line 2326 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 14921 "Page.c" - } -#line 2329 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = self->viewport; -#line 2329 "/home/jens/Source/shotwell/src/Page.vala" - gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), &_tmp5_); -#line 2329 "/home/jens/Source/shotwell/src/Page.vala" - allocation = _tmp5_; -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = allocation; -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = _tmp6_.width; -#line 2331 "/home/jens/Source/shotwell/src/Page.vala" - width = _tmp7_; -#line 2332 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = allocation; -#line 2332 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = _tmp8_.height; -#line 2332 "/home/jens/Source/shotwell/src/Page.vala" - height = _tmp9_; -#line 2334 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = width; -#line 2334 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp11_ <= 0) { -#line 2334 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = TRUE; -#line 14947 "Page.c" - } else { - gint _tmp12_; -#line 2334 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = height; -#line 2334 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = _tmp12_ <= 0; -#line 14954 "Page.c" - } -#line 2334 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp10_) { -#line 2335 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 14960 "Page.c" - } -#line 2337 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = self->priv->scaled; -#line 2337 "/home/jens/Source/shotwell/src/Page.vala" - new_pixbuf = _tmp13_ == NULL; -#line 2340 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = self->priv->scaled_pos; -#line 2340 "/home/jens/Source/shotwell/src/Page.vala" - dimensions_for_rectangle (&_tmp14_, &_tmp15_); -#line 2340 "/home/jens/Source/shotwell/src/Page.vala" - old_scaled_dim = _tmp15_; -#line 2341 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = self->priv->scaled_pos; -#line 2341 "/home/jens/Source/shotwell/src/Page.vala" - old_scaled_pos = _tmp16_; -#line 2344 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = self->priv->pixmap_dim; -#line 2344 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = _tmp18_.width; -#line 2344 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = width; -#line 2344 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp19_ != _tmp20_) { -#line 2344 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = TRUE; -#line 14986 "Page.c" - } else { - Dimensions _tmp21_; - gint _tmp22_; - gint _tmp23_; -#line 2344 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = self->priv->pixmap_dim; -#line 2344 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = _tmp21_.height; -#line 2344 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = height; -#line 2344 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = _tmp22_ != _tmp23_; -#line 14999 "Page.c" - } -#line 2344 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp17_) { -#line 2345 "/home/jens/Source/shotwell/src/Page.vala" - _cairo_surface_destroy0 (self->priv->pixmap); -#line 2345 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->pixmap = NULL; -#line 15007 "Page.c" - } -#line 2348 "/home/jens/Source/shotwell/src/Page.vala" - new_pixmap = FALSE; -#line 2349 "/home/jens/Source/shotwell/src/Page.vala" - _tmp24_ = self->priv->pixmap; -#line 2349 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp24_ == NULL) { -#line 15015 "Page.c" - gint _tmp25_; - gint _tmp26_; -#line 2350 "/home/jens/Source/shotwell/src/Page.vala" - _tmp25_ = width; -#line 2350 "/home/jens/Source/shotwell/src/Page.vala" - _tmp26_ = height; -#line 2350 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_init_pixmap (self, _tmp25_, _tmp26_); -#line 2351 "/home/jens/Source/shotwell/src/Page.vala" - new_pixmap = TRUE; -#line 15026 "Page.c" - } -#line 2354 "/home/jens/Source/shotwell/src/Page.vala" - _tmp28_ = new_pixbuf; -#line 2354 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp28_) { -#line 2354 "/home/jens/Source/shotwell/src/Page.vala" - _tmp27_ = TRUE; -#line 15034 "Page.c" - } else { - gboolean _tmp29_; -#line 2354 "/home/jens/Source/shotwell/src/Page.vala" - _tmp29_ = new_pixmap; -#line 2354 "/home/jens/Source/shotwell/src/Page.vala" - _tmp27_ = _tmp29_; -#line 15041 "Page.c" - } -#line 2354 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp27_) { -#line 15045 "Page.c" - Dimensions unscaled_dim = {0}; - GdkPixbuf* _tmp30_; - Dimensions _tmp31_ = {0}; - Dimensions scaled_dim = {0}; - gboolean _tmp32_ = FALSE; - gboolean _tmp33_ = FALSE; - gboolean _tmp34_ = FALSE; - gboolean _tmp35_; - gint _tmp45_; - Dimensions _tmp46_; - gint _tmp47_; - gint _tmp48_; - Dimensions _tmp49_; - gint _tmp50_; - gint _tmp51_; - Dimensions _tmp52_; - gint _tmp53_; - gint _tmp54_; - Dimensions _tmp55_; - gint _tmp56_; - Dimensions _tmp57_; - gint _tmp58_; - Dimensions _tmp59_; - gint _tmp60_; -#line 2355 "/home/jens/Source/shotwell/src/Page.vala" - _tmp30_ = self->priv->unscaled; -#line 2355 "/home/jens/Source/shotwell/src/Page.vala" - dimensions_for_pixbuf (_tmp30_, &_tmp31_); -#line 2355 "/home/jens/Source/shotwell/src/Page.vala" - unscaled_dim = _tmp31_; -#line 2359 "/home/jens/Source/shotwell/src/Page.vala" - dimensions_init (&scaled_dim, 0, 0); -#line 2360 "/home/jens/Source/shotwell/src/Page.vala" - _tmp35_ = self->priv->scale_up_to_viewport; -#line 2360 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp35_) { -#line 2360 "/home/jens/Source/shotwell/src/Page.vala" - _tmp34_ = dimensions_has_area (&self->priv->max_dim); -#line 15084 "Page.c" - } else { -#line 2360 "/home/jens/Source/shotwell/src/Page.vala" - _tmp34_ = FALSE; -#line 15088 "Page.c" - } -#line 2360 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp34_) { -#line 15092 "Page.c" - Dimensions _tmp36_; - gint _tmp37_; - gint _tmp38_; -#line 2360 "/home/jens/Source/shotwell/src/Page.vala" - _tmp36_ = self->priv->max_dim; -#line 2360 "/home/jens/Source/shotwell/src/Page.vala" - _tmp37_ = _tmp36_.width; -#line 2360 "/home/jens/Source/shotwell/src/Page.vala" - _tmp38_ = width; -#line 2360 "/home/jens/Source/shotwell/src/Page.vala" - _tmp33_ = _tmp37_ < _tmp38_; -#line 15104 "Page.c" - } else { -#line 2360 "/home/jens/Source/shotwell/src/Page.vala" - _tmp33_ = FALSE; -#line 15108 "Page.c" - } -#line 2360 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp33_) { -#line 15112 "Page.c" - Dimensions _tmp39_; - gint _tmp40_; - gint _tmp41_; -#line 2360 "/home/jens/Source/shotwell/src/Page.vala" - _tmp39_ = self->priv->max_dim; -#line 2360 "/home/jens/Source/shotwell/src/Page.vala" - _tmp40_ = _tmp39_.height; -#line 2360 "/home/jens/Source/shotwell/src/Page.vala" - _tmp41_ = height; -#line 2360 "/home/jens/Source/shotwell/src/Page.vala" - _tmp32_ = _tmp40_ < _tmp41_; -#line 15124 "Page.c" - } else { -#line 2360 "/home/jens/Source/shotwell/src/Page.vala" - _tmp32_ = FALSE; -#line 15128 "Page.c" - } -#line 2360 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp32_) { -#line 15132 "Page.c" - Dimensions _tmp42_; -#line 2361 "/home/jens/Source/shotwell/src/Page.vala" - _tmp42_ = self->priv->max_dim; -#line 2361 "/home/jens/Source/shotwell/src/Page.vala" - scaled_dim = _tmp42_; -#line 15138 "Page.c" - } else { - Dimensions _tmp43_; - Dimensions _tmp44_ = {0}; -#line 2363 "/home/jens/Source/shotwell/src/Page.vala" - _tmp43_ = self->priv->pixmap_dim; -#line 2363 "/home/jens/Source/shotwell/src/Page.vala" - dimensions_get_scaled_proportional (&unscaled_dim, &_tmp43_, &_tmp44_); -#line 2363 "/home/jens/Source/shotwell/src/Page.vala" - scaled_dim = _tmp44_; -#line 15148 "Page.c" - } -#line 2365 "/home/jens/Source/shotwell/src/Page.vala" - _tmp45_ = width; -#line 2365 "/home/jens/Source/shotwell/src/Page.vala" - _tmp46_ = scaled_dim; -#line 2365 "/home/jens/Source/shotwell/src/Page.vala" - _tmp47_ = _tmp46_.width; -#line 2365 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (_tmp45_ >= _tmp47_, "width >= scaled_dim.width"); -#line 2366 "/home/jens/Source/shotwell/src/Page.vala" - _tmp48_ = height; -#line 2366 "/home/jens/Source/shotwell/src/Page.vala" - _tmp49_ = scaled_dim; -#line 2366 "/home/jens/Source/shotwell/src/Page.vala" - _tmp50_ = _tmp49_.height; -#line 2366 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (_tmp48_ >= _tmp50_, "height >= scaled_dim.height"); -#line 2369 "/home/jens/Source/shotwell/src/Page.vala" - _tmp51_ = width; -#line 2369 "/home/jens/Source/shotwell/src/Page.vala" - _tmp52_ = scaled_dim; -#line 2369 "/home/jens/Source/shotwell/src/Page.vala" - _tmp53_ = _tmp52_.width; -#line 2369 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->scaled_pos.x = (_tmp51_ - _tmp53_) / 2; -#line 2370 "/home/jens/Source/shotwell/src/Page.vala" - _tmp54_ = height; -#line 2370 "/home/jens/Source/shotwell/src/Page.vala" - _tmp55_ = scaled_dim; -#line 2370 "/home/jens/Source/shotwell/src/Page.vala" - _tmp56_ = _tmp55_.height; -#line 2370 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->scaled_pos.y = (_tmp54_ - _tmp56_) / 2; -#line 2371 "/home/jens/Source/shotwell/src/Page.vala" - _tmp57_ = scaled_dim; -#line 2371 "/home/jens/Source/shotwell/src/Page.vala" - _tmp58_ = _tmp57_.width; -#line 2371 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->scaled_pos.width = _tmp58_; -#line 2372 "/home/jens/Source/shotwell/src/Page.vala" - _tmp59_ = scaled_dim; -#line 2372 "/home/jens/Source/shotwell/src/Page.vala" - _tmp60_ = _tmp59_.height; -#line 2372 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->scaled_pos.height = _tmp60_; -#line 15194 "Page.c" - } -#line 2375 "/home/jens/Source/shotwell/src/Page.vala" - if (fast) { -#line 2375 "/home/jens/Source/shotwell/src/Page.vala" - _tmp61_ = SINGLE_PHOTO_PAGE_FAST_INTERP; -#line 15200 "Page.c" - } else { -#line 2375 "/home/jens/Source/shotwell/src/Page.vala" - _tmp61_ = SINGLE_PHOTO_PAGE_QUALITY_INTERP; -#line 15204 "Page.c" - } -#line 2375 "/home/jens/Source/shotwell/src/Page.vala" - interp = _tmp61_; -#line 2378 "/home/jens/Source/shotwell/src/Page.vala" - _tmp62_ = self->priv->scaled; -#line 2378 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp62_ == NULL) { -#line 15212 "Page.c" - GdkPixbuf* _tmp63_; - GdkRectangle _tmp64_; - Dimensions _tmp65_ = {0}; - GdkInterpType _tmp66_; - GdkPixbuf* _tmp67_; - SinglePhotoPageUpdateReason reason = 0; - gboolean _tmp68_; - Dimensions _tmp72_; - Dimensions _tmp73_; - GdkPoint _tmp74_ = {0}; - GdkPixbuf* _tmp75_; - SinglePhotoPageUpdateReason _tmp76_; - Dimensions _tmp77_; -#line 2379 "/home/jens/Source/shotwell/src/Page.vala" - _tmp63_ = self->priv->unscaled; -#line 2379 "/home/jens/Source/shotwell/src/Page.vala" - _tmp64_ = self->priv->scaled_pos; -#line 2379 "/home/jens/Source/shotwell/src/Page.vala" - dimensions_for_rectangle (&_tmp64_, &_tmp65_); -#line 2379 "/home/jens/Source/shotwell/src/Page.vala" - _tmp66_ = interp; -#line 2379 "/home/jens/Source/shotwell/src/Page.vala" - _tmp67_ = resize_pixbuf (_tmp63_, &_tmp65_, _tmp66_); -#line 2379 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->scaled); -#line 2379 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->scaled = _tmp67_; -#line 2381 "/home/jens/Source/shotwell/src/Page.vala" - reason = SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS; -#line 2382 "/home/jens/Source/shotwell/src/Page.vala" - _tmp68_ = new_pixbuf; -#line 2382 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp68_) { -#line 2383 "/home/jens/Source/shotwell/src/Page.vala" - reason = SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF; -#line 15248 "Page.c" - } else { - gboolean _tmp69_ = FALSE; - gboolean _tmp70_; -#line 2384 "/home/jens/Source/shotwell/src/Page.vala" - _tmp70_ = new_pixmap; -#line 2384 "/home/jens/Source/shotwell/src/Page.vala" - if (!_tmp70_) { -#line 15256 "Page.c" - GdkInterpType _tmp71_; -#line 2384 "/home/jens/Source/shotwell/src/Page.vala" - _tmp71_ = interp; -#line 2384 "/home/jens/Source/shotwell/src/Page.vala" - _tmp69_ = _tmp71_ == SINGLE_PHOTO_PAGE_QUALITY_INTERP; -#line 15262 "Page.c" - } else { -#line 2384 "/home/jens/Source/shotwell/src/Page.vala" - _tmp69_ = FALSE; -#line 15266 "Page.c" - } -#line 2384 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp69_) { -#line 2385 "/home/jens/Source/shotwell/src/Page.vala" - reason = SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT; -#line 15272 "Page.c" - } - } -#line 2387 "/home/jens/Source/shotwell/src/Page.vala" - _tmp72_ = self->priv->max_dim; -#line 2387 "/home/jens/Source/shotwell/src/Page.vala" - _tmp73_ = self->priv->pixmap_dim; -#line 2387 "/home/jens/Source/shotwell/src/Page.vala" - zoom_state_get_viewport_center (&self->priv->static_zoom_state, &_tmp74_); -#line 2387 "/home/jens/Source/shotwell/src/Page.vala" - zoom_state_init (&self->priv->static_zoom_state, &_tmp72_, &_tmp73_, zoom_state_get_interpolation_factor (&self->priv->static_zoom_state), &_tmp74_); -#line 2391 "/home/jens/Source/shotwell/src/Page.vala" - _tmp75_ = self->priv->scaled; -#line 2391 "/home/jens/Source/shotwell/src/Page.vala" - _tmp76_ = reason; -#line 2391 "/home/jens/Source/shotwell/src/Page.vala" - _tmp77_ = old_scaled_dim; -#line 2391 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_updated_pixbuf (self, _tmp75_, _tmp76_, &_tmp77_); -#line 15291 "Page.c" - } -#line 2394 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->zoom_high_quality = !fast; -#line 2396 "/home/jens/Source/shotwell/src/Page.vala" - if (direction != NULL) { -#line 15297 "Page.c" - TransitionClock* _tmp79_; -#line 2396 "/home/jens/Source/shotwell/src/Page.vala" - _tmp79_ = self->priv->transition_clock; -#line 2396 "/home/jens/Source/shotwell/src/Page.vala" - _tmp78_ = !transition_clock_is_in_progress (_tmp79_); -#line 15303 "Page.c" - } else { -#line 2396 "/home/jens/Source/shotwell/src/Page.vala" - _tmp78_ = FALSE; -#line 15307 "Page.c" - } -#line 2396 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp78_) { -#line 15311 "Page.c" - SpitTransitionsVisuals* visuals = NULL; - GdkPixbuf* _tmp80_; - GdkRectangle _tmp81_; - GdkPixbuf* _tmp82_; - GdkRectangle _tmp83_; - GdkRGBA _tmp84_ = {0}; - SpitTransitionsVisuals* _tmp85_; - TransitionClock* _tmp86_; - SpitTransitionsVisuals* _tmp87_; - gint _tmp88_; -#line 2397 "/home/jens/Source/shotwell/src/Page.vala" - _tmp80_ = self->priv->old_scaled; -#line 2397 "/home/jens/Source/shotwell/src/Page.vala" - _tmp81_ = old_scaled_pos; -#line 2397 "/home/jens/Source/shotwell/src/Page.vala" - _tmp82_ = self->priv->scaled; -#line 2397 "/home/jens/Source/shotwell/src/Page.vala" - _tmp83_ = self->priv->scaled_pos; -#line 2397 "/home/jens/Source/shotwell/src/Page.vala" - parse_color ("#000", &_tmp84_); -#line 2397 "/home/jens/Source/shotwell/src/Page.vala" - _tmp85_ = spit_transitions_visuals_new (_tmp80_, &_tmp81_, _tmp82_, &_tmp83_, &_tmp84_); -#line 2397 "/home/jens/Source/shotwell/src/Page.vala" - visuals = _tmp85_; -#line 2400 "/home/jens/Source/shotwell/src/Page.vala" - _tmp86_ = self->priv->transition_clock; -#line 2400 "/home/jens/Source/shotwell/src/Page.vala" - _tmp87_ = visuals; -#line 2400 "/home/jens/Source/shotwell/src/Page.vala" - _tmp88_ = self->priv->transition_duration_msec; -#line 2400 "/home/jens/Source/shotwell/src/Page.vala" - transition_clock_start (_tmp86_, _tmp87_, direction_to_transition_direction (*direction), _tmp88_, _single_photo_page_repaint_pixmap_transition_clock_repaint_callback, self); -#line 2396 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (visuals); -#line 15346 "Page.c" - } -#line 2404 "/home/jens/Source/shotwell/src/Page.vala" - _tmp89_ = self->priv->transition_clock; -#line 2404 "/home/jens/Source/shotwell/src/Page.vala" - if (!transition_clock_is_in_progress (_tmp89_)) { -#line 2405 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_repaint_pixmap (self); -#line 15354 "Page.c" - } -} - - -static void -single_photo_page_init_pixmap (SinglePhotoPage* self, - gint width, - gint height) -{ - GdkPixbuf* _tmp0_; - GtkDrawingArea* _tmp1_; - GdkWindow* _tmp2_; - cairo_surface_t* _tmp3_; - cairo_surface_t* _tmp4_; - cairo_t* _tmp5_; - cairo_surface_t* _tmp6_; - cairo_t* _tmp7_; - cairo_t* _tmp8_; - cairo_t* _tmp9_; - Dimensions _tmp10_; -#line 2408 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2409 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->unscaled; -#line 2409 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (_tmp0_ != NULL, "unscaled != null"); -#line 2410 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->canvas; -#line 2410 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 2410 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (_tmp2_ != NULL, "canvas.get_window() != null"); -#line 2413 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height); -#line 2413 "/home/jens/Source/shotwell/src/Page.vala" - _cairo_surface_destroy0 (self->priv->pixmap); -#line 2413 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->pixmap = _tmp3_; -#line 2414 "/home/jens/Source/shotwell/src/Page.vala" - dimensions_init (&self->priv->pixmap_dim, width, height); -#line 2417 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = self->priv->pixmap; -#line 2417 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = cairo_create (_tmp4_); -#line 2417 "/home/jens/Source/shotwell/src/Page.vala" - _cairo_destroy0 (self->priv->pixmap_ctx); -#line 2417 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->pixmap_ctx = _tmp5_; -#line 2420 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->scaled); -#line 2420 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->scaled = NULL; -#line 2423 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->priv->pixmap; -#line 2423 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = cairo_create (_tmp6_); -#line 2423 "/home/jens/Source/shotwell/src/Page.vala" - _cairo_destroy0 (self->priv->text_ctx); -#line 2423 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->text_ctx = _tmp7_; -#line 2424 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = self->priv->text_ctx; -#line 2424 "/home/jens/Source/shotwell/src/Page.vala" - set_source_color_from_string (_tmp8_, "#fff"); -#line 2429 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = self->priv->pixmap_ctx; -#line 2429 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = self->priv->pixmap_dim; -#line 2429 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_new_surface (self, _tmp9_, &_tmp10_); -#line 15425 "Page.c" -} - - -static gboolean -single_photo_page_real_on_context_keypress (Page* base) -{ - SinglePhotoPage * self; - gboolean result = FALSE; - GtkMenu* _tmp0_; - GtkMenu* _tmp1_; - gboolean _tmp2_; -#line 2432 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage); -#line 2433 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2433 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 2433 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = page_popup_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp1_, NULL); -#line 2433 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp1_); -#line 2433 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp2_; -#line 2433 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 15451 "Page.c" -} - - -static void -single_photo_page_real_on_previous_photo (SinglePhotoPage* self) -{ -} - - -void -single_photo_page_on_previous_photo (SinglePhotoPage* self) -{ -#line 2436 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2436 "/home/jens/Source/shotwell/src/Page.vala" - SINGLE_PHOTO_PAGE_GET_CLASS (self)->on_previous_photo (self); -#line 15468 "Page.c" -} - - -static void -single_photo_page_real_on_next_photo (SinglePhotoPage* self) -{ -} - - -void -single_photo_page_on_next_photo (SinglePhotoPage* self) -{ -#line 2439 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2439 "/home/jens/Source/shotwell/src/Page.vala" - SINGLE_PHOTO_PAGE_GET_CLASS (self)->on_next_photo (self); -#line 15485 "Page.c" -} - - -static gboolean -single_photo_page_real_key_press_event (GtkWidget* base, - GdkEventKey* event) -{ - SinglePhotoPage * self; - gboolean result = FALSE; - gboolean nav_ok = FALSE; - guint32 _tmp0_; - guint32 _tmp1_; - gboolean handled = FALSE; - guint _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - GQuark _tmp6_ = 0U; -#line 2449 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp5_label0 = 0; -#line 2449 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp5_label1 = 0; -#line 2449 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp5_label2 = 0; -#line 2449 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp5_label3 = 0; -#line 2449 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp5_label4 = 0; -#line 2449 "/home/jens/Source/shotwell/src/Page.vala" - static GQuark _tmp5_label5 = 0; -#line 15515 "Page.c" - gboolean _tmp11_; - gboolean _tmp12_ = FALSE; -#line 2442 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage); -#line 2442 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 2446 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = event->time; -#line 2446 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->last_nav_key; -#line 2446 "/home/jens/Source/shotwell/src/Page.vala" - nav_ok = (_tmp0_ - _tmp1_) > ((guint32) SINGLE_PHOTO_PAGE_KEY_REPEAT_INTERVAL_MSEC); -#line 2448 "/home/jens/Source/shotwell/src/Page.vala" - handled = TRUE; -#line 2449 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = event->keyval; -#line 2449 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = gdk_keyval_name (_tmp2_); -#line 2449 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = _tmp3_; -#line 2449 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = (NULL == _tmp4_) ? 0 : g_quark_from_string (_tmp4_); -#line 2449 "/home/jens/Source/shotwell/src/Page.vala" - if (((_tmp6_ == ((0 != _tmp5_label0) ? _tmp5_label0 : (_tmp5_label0 = g_quark_from_static_string ("Left")))) || (_tmp6_ == ((0 != _tmp5_label1) ? _tmp5_label1 : (_tmp5_label1 = g_quark_from_static_string ("KP_Left"))))) || (_tmp6_ == ((0 != _tmp5_label2) ? _tmp5_label2 : (_tmp5_label2 = g_quark_from_static_string ("BackSpace"))))) { -#line 2449 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 15542 "Page.c" - default: - { - gboolean _tmp7_; -#line 2453 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = nav_ok; -#line 2453 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp7_) { -#line 15550 "Page.c" - guint32 _tmp8_; -#line 2454 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_on_previous_photo (self); -#line 2455 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = event->time; -#line 2455 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_nav_key = _tmp8_; -#line 15558 "Page.c" - } -#line 2457 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 15562 "Page.c" - } - } - } else if (((_tmp6_ == ((0 != _tmp5_label3) ? _tmp5_label3 : (_tmp5_label3 = g_quark_from_static_string ("Right")))) || (_tmp6_ == ((0 != _tmp5_label4) ? _tmp5_label4 : (_tmp5_label4 = g_quark_from_static_string ("KP_Right"))))) || (_tmp6_ == ((0 != _tmp5_label5) ? _tmp5_label5 : (_tmp5_label5 = g_quark_from_static_string ("space"))))) { -#line 2449 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 15568 "Page.c" - default: - { - gboolean _tmp9_; -#line 2462 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = nav_ok; -#line 2462 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp9_) { -#line 15576 "Page.c" - guint32 _tmp10_; -#line 2463 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_on_next_photo (self); -#line 2464 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = event->time; -#line 2464 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_nav_key = _tmp10_; -#line 15584 "Page.c" - } -#line 2466 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 15588 "Page.c" - } - } - } else { -#line 2449 "/home/jens/Source/shotwell/src/Page.vala" - switch (0) { -#line 15594 "Page.c" - default: - { -#line 2469 "/home/jens/Source/shotwell/src/Page.vala" - handled = FALSE; -#line 2470 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 15601 "Page.c" - } - } - } -#line 2473 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = handled; -#line 2473 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp11_) { -#line 2474 "/home/jens/Source/shotwell/src/Page.vala" - result = TRUE; -#line 2474 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 15613 "Page.c" - } -#line 2476 "/home/jens/Source/shotwell/src/Page.vala" - if (GTK_WIDGET_CLASS (single_photo_page_parent_class)->key_press_event != NULL) { -#line 2476 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = GTK_WIDGET_CLASS (single_photo_page_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), gtk_widget_get_type (), GtkWidget), event); -#line 15619 "Page.c" - } else { -#line 2476 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = TRUE; -#line 15623 "Page.c" - } -#line 2476 "/home/jens/Source/shotwell/src/Page.vala" - result = _tmp12_; -#line 2476 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 15629 "Page.c" -} - - -static void -single_photo_page_on_colors_changed (SinglePhotoPage* self) -{ -#line 2479 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_SINGLE_PHOTO_PAGE (self)); -#line 2480 "/home/jens/Source/shotwell/src/Page.vala" - invalidate_transparent_background (); -#line 2481 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_repaint (self, NULL); -#line 15642 "Page.c" -} - - -static void -single_photo_page_class_init (SinglePhotoPageClass * klass) -{ -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - single_photo_page_parent_class = g_type_class_peek_parent (klass); -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - g_type_class_add_private (klass, sizeof (SinglePhotoPagePrivate)); -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - ((SinglePhotoPageClass *) klass)->is_zoom_supported = (gboolean (*) (SinglePhotoPage *)) single_photo_page_real_is_zoom_supported; -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - ((SinglePhotoPageClass *) klass)->cancel_zoom = (void (*) (SinglePhotoPage *)) single_photo_page_real_cancel_zoom; -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - ((SinglePhotoPageClass *) klass)->save_zoom_state = (void (*) (SinglePhotoPage *)) single_photo_page_real_save_zoom_state; -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - ((SinglePhotoPageClass *) klass)->restore_zoom_state = (void (*) (SinglePhotoPage *)) single_photo_page_real_restore_zoom_state; -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - ((SinglePhotoPageClass *) klass)->get_zoom_buffer = (ZoomBuffer* (*) (SinglePhotoPage *)) single_photo_page_real_get_zoom_buffer; -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->switched_to = (void (*) (Page *)) single_photo_page_real_switched_to; -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->set_container = (void (*) (Page *, GtkWindow*)) single_photo_page_real_set_container; -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_resize_finished = (void (*) (Page *, GdkRectangle*)) single_photo_page_real_on_resize_finished; -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - ((SinglePhotoPageClass *) klass)->new_surface = (void (*) (SinglePhotoPage *, cairo_t*, Dimensions*)) single_photo_page_real_new_surface; -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - ((SinglePhotoPageClass *) klass)->updated_pixbuf = (void (*) (SinglePhotoPage *, GdkPixbuf*, SinglePhotoPageUpdateReason, Dimensions*)) single_photo_page_real_updated_pixbuf; -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - ((SinglePhotoPageClass *) klass)->paint = (void (*) (SinglePhotoPage *, cairo_t*, Dimensions*)) single_photo_page_real_paint; -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - ((PageClass *) klass)->on_context_keypress = (gboolean (*) (Page *)) single_photo_page_real_on_context_keypress; -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - ((SinglePhotoPageClass *) klass)->on_previous_photo = (void (*) (SinglePhotoPage *)) single_photo_page_real_on_previous_photo; -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - ((SinglePhotoPageClass *) klass)->on_next_photo = (void (*) (SinglePhotoPage *)) single_photo_page_real_on_next_photo; -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) single_photo_page_real_key_press_event; -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - G_OBJECT_CLASS (klass)->finalize = single_photo_page_finalize; -#line 15685 "Page.c" -} - - -static void -single_photo_page_instance_init (SinglePhotoPage * self) -{ - GtkDrawingArea* _tmp0_; - GtkViewport* _tmp1_; -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - self->priv = SINGLE_PHOTO_PAGE_GET_PRIVATE (self); -#line 1974 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = (GtkDrawingArea*) gtk_drawing_area_new (); -#line 1974 "/home/jens/Source/shotwell/src/Page.vala" - g_object_ref_sink (_tmp0_); -#line 1974 "/home/jens/Source/shotwell/src/Page.vala" - self->canvas = _tmp0_; -#line 1975 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = (GtkViewport*) gtk_viewport_new (NULL, NULL); -#line 1975 "/home/jens/Source/shotwell/src/Page.vala" - g_object_ref_sink (_tmp1_); -#line 1975 "/home/jens/Source/shotwell/src/Page.vala" - self->viewport = _tmp1_; -#line 1979 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->transition_duration_msec = 0; -#line 1980 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->pixmap = NULL; -#line 1981 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->pixmap_ctx = NULL; -#line 1982 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->text_ctx = NULL; -#line 1983 "/home/jens/Source/shotwell/src/Page.vala" - dimensions_init (&self->priv->pixmap_dim, 0, 0); -#line 1984 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->unscaled = NULL; -#line 1985 "/home/jens/Source/shotwell/src/Page.vala" - dimensions_init (&self->priv->max_dim, 0, 0); -#line 1986 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->scaled = NULL; -#line 1987 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->old_scaled = NULL; -#line 1988 "/home/jens/Source/shotwell/src/Page.vala" - memset (&self->priv->scaled_pos, 0, sizeof (GdkRectangle)); -#line 1990 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->zoom_high_quality = TRUE; -#line 1992 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->has_saved_zoom_state = FALSE; -#line 1993 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->last_nav_key = (guint32) 0; -#line 15734 "Page.c" -} - - -static void -single_photo_page_finalize (GObject * obj) -{ - SinglePhotoPage * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - guint _tmp2_; -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage); -#line 2026 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = config_facade_get_instance (); -#line 2026 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = _tmp0_; -#line 2026 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("colors-changed", CONFIG_TYPE_FACADE, &_tmp2_, NULL, FALSE); -#line 2026 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _single_photo_page_on_colors_changed_config_facade_colors_changed, self); -#line 2026 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp1_); -#line 1974 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->canvas); -#line 1975 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->viewport); -#line 1978 "/home/jens/Source/shotwell/src/Page.vala" - _transition_clock_unref0 (self->priv->transition_clock); -#line 1980 "/home/jens/Source/shotwell/src/Page.vala" - _cairo_surface_destroy0 (self->priv->pixmap); -#line 1981 "/home/jens/Source/shotwell/src/Page.vala" - _cairo_destroy0 (self->priv->pixmap_ctx); -#line 1982 "/home/jens/Source/shotwell/src/Page.vala" - _cairo_destroy0 (self->priv->text_ctx); -#line 1984 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->unscaled); -#line 1986 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->scaled); -#line 1987 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->old_scaled); -#line 1963 "/home/jens/Source/shotwell/src/Page.vala" - G_OBJECT_CLASS (single_photo_page_parent_class)->finalize (obj); -#line 15777 "Page.c" -} - - -GType -single_photo_page_get_type (void) -{ - static volatile gsize single_photo_page_type_id__volatile = 0; - if (g_once_init_enter (&single_photo_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SinglePhotoPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) single_photo_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SinglePhotoPage), 0, (GInstanceInitFunc) single_photo_page_instance_init, NULL }; - GType single_photo_page_type_id; - single_photo_page_type_id = g_type_register_static (TYPE_PAGE, "SinglePhotoPage", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&single_photo_page_type_id__volatile, single_photo_page_type_id); - } - return single_photo_page_type_id__volatile; -} - - -static void -_drag_and_drop_handler_on_drag_begin_gtk_widget_drag_begin (GtkWidget* _sender, - GdkDragContext* context, - gpointer self) -{ -#line 2540 "/home/jens/Source/shotwell/src/Page.vala" - drag_and_drop_handler_on_drag_begin ((DragAndDropHandler*) self, context); -#line 15802 "Page.c" -} - - -static void -_drag_and_drop_handler_on_drag_data_get_gtk_widget_drag_data_get (GtkWidget* _sender, - GdkDragContext* context, - GtkSelectionData* selection_data, - guint info, - guint time_, - gpointer self) -{ -#line 2541 "/home/jens/Source/shotwell/src/Page.vala" - drag_and_drop_handler_on_drag_data_get ((DragAndDropHandler*) self, context, selection_data, info, time_); -#line 15816 "Page.c" -} - - -static void -_drag_and_drop_handler_on_drag_end_gtk_widget_drag_end (GtkWidget* _sender, - GdkDragContext* context, - gpointer self) -{ -#line 2542 "/home/jens/Source/shotwell/src/Page.vala" - drag_and_drop_handler_on_drag_end ((DragAndDropHandler*) self); -#line 15827 "Page.c" -} - - -static gboolean -_drag_and_drop_handler_on_drag_failed_gtk_widget_drag_failed (GtkWidget* _sender, - GdkDragContext* context, - GtkDragResult _result_, - gpointer self) -{ - gboolean result; - result = drag_and_drop_handler_on_drag_failed ((DragAndDropHandler*) self, context, _result_); -#line 2543 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 15841 "Page.c" -} - - -static GType -drag_and_drop_handler_target_type_get_type (void) -{ - static volatile gsize drag_and_drop_handler_target_type_type_id__volatile = 0; - if (g_once_init_enter (&drag_and_drop_handler_target_type_type_id__volatile)) { - static const GEnumValue values[] = {{DRAG_AND_DROP_HANDLER_TARGET_TYPE_XDS, "DRAG_AND_DROP_HANDLER_TARGET_TYPE_XDS", "xds"}, {DRAG_AND_DROP_HANDLER_TARGET_TYPE_MEDIA_LIST, "DRAG_AND_DROP_HANDLER_TARGET_TYPE_MEDIA_LIST", "media-list"}, {0, NULL, NULL}}; - GType drag_and_drop_handler_target_type_type_id; - drag_and_drop_handler_target_type_type_id = g_enum_register_static ("DragAndDropHandlerTargetType", values); - g_once_init_leave (&drag_and_drop_handler_target_type_type_id__volatile, drag_and_drop_handler_target_type_type_id); - } - return drag_and_drop_handler_target_type_type_id__volatile; -} - - -static GdkAtom* -_gdk_atom_dup (GdkAtom* self) -{ - GdkAtom* dup; -#line 2518 "/home/jens/Source/shotwell/src/Page.vala" - dup = g_new0 (GdkAtom, 1); -#line 2518 "/home/jens/Source/shotwell/src/Page.vala" - memcpy (dup, self, sizeof (GdkAtom)); -#line 2518 "/home/jens/Source/shotwell/src/Page.vala" - return dup; -#line 15869 "Page.c" -} - - -static gpointer -__gdk_atom_dup0 (gpointer self) -{ -#line 2518 "/home/jens/Source/shotwell/src/Page.vala" - return self ? _gdk_atom_dup (self) : NULL; -#line 15878 "Page.c" -} - - -DragAndDropHandler* -drag_and_drop_handler_construct (GType object_type, - Page* page) -{ - DragAndDropHandler* self = NULL; - GtkWidget* _tmp0_; - GtkWidget* _tmp1_; - GtkWidget* _tmp2_; - GdkAtom* _tmp3_; - GdkAtom* _tmp6_; - guint8* _tmp9_; - gint _tmp9__length1; - GtkWidget* _tmp12_; - GtkWidget* _tmp13_; - GtkWidget* _tmp14_; - GtkWidget* _tmp15_; - GtkWidget* _tmp16_; -#line 2510 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_PAGE (page), NULL); -#line 2510 "/home/jens/Source/shotwell/src/Page.vala" - self = (DragAndDropHandler*) g_type_create_instance (object_type); -#line 2511 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->page = page; -#line 2512 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = page_get_event_source (page); -#line 2512 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->event_source); -#line 2512 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->event_source = _tmp0_; -#line 2513 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->event_source; -#line 2513 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (_tmp1_ != NULL, "event_source != null"); -#line 2514 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = self->priv->event_source; -#line 2514 "/home/jens/Source/shotwell/src/Page.vala" - _vala_assert (gtk_widget_get_has_window (_tmp2_), "event_source.get_has_window()"); -#line 2517 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = drag_and_drop_handler_XDS_ATOM; -#line 2517 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_ == NULL) { -#line 15923 "Page.c" - GdkAtom _tmp4_; - GdkAtom* _tmp5_; -#line 2518 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = gdk_atom_intern_static_string ("XdndDirectSave0"); -#line 2518 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = __gdk_atom_dup0 (&_tmp4_); -#line 2518 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (drag_and_drop_handler_XDS_ATOM); -#line 2518 "/home/jens/Source/shotwell/src/Page.vala" - drag_and_drop_handler_XDS_ATOM = _tmp5_; -#line 15934 "Page.c" - } -#line 2520 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = drag_and_drop_handler_TEXT_ATOM; -#line 2520 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp6_ == NULL) { -#line 15940 "Page.c" - GdkAtom _tmp7_; - GdkAtom* _tmp8_; -#line 2521 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = gdk_atom_intern_static_string ("text/plain"); -#line 2521 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = __gdk_atom_dup0 (&_tmp7_); -#line 2521 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (drag_and_drop_handler_TEXT_ATOM); -#line 2521 "/home/jens/Source/shotwell/src/Page.vala" - drag_and_drop_handler_TEXT_ATOM = _tmp8_; -#line 15951 "Page.c" - } -#line 2523 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = drag_and_drop_handler_XDS_FAKE_TARGET; -#line 2523 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9__length1 = drag_and_drop_handler_XDS_FAKE_TARGET_length1; -#line 2523 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp9_ == NULL) { -#line 15959 "Page.c" - gint _tmp10_; - guchar* _tmp11_; -#line 2524 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = string_to_uchar_array ("shotwell.txt", &_tmp10_); -#line 2524 "/home/jens/Source/shotwell/src/Page.vala" - drag_and_drop_handler_XDS_FAKE_TARGET = (g_free (drag_and_drop_handler_XDS_FAKE_TARGET), NULL); -#line 2524 "/home/jens/Source/shotwell/src/Page.vala" - drag_and_drop_handler_XDS_FAKE_TARGET = _tmp11_; -#line 2524 "/home/jens/Source/shotwell/src/Page.vala" - drag_and_drop_handler_XDS_FAKE_TARGET_length1 = _tmp10_; -#line 2524 "/home/jens/Source/shotwell/src/Page.vala" - _drag_and_drop_handler_XDS_FAKE_TARGET_size_ = drag_and_drop_handler_XDS_FAKE_TARGET_length1; -#line 15972 "Page.c" - } -#line 2527 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = self->priv->event_source; -#line 2527 "/home/jens/Source/shotwell/src/Page.vala" - gtk_drag_source_set (_tmp12_, GDK_BUTTON1_MASK, DRAG_AND_DROP_HANDLER_SOURCE_TARGET_ENTRIES, G_N_ELEMENTS (DRAG_AND_DROP_HANDLER_SOURCE_TARGET_ENTRIES), GDK_ACTION_COPY); -#line 2532 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = self->priv->event_source; -#line 2532 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect (_tmp13_, "drag-begin", (GCallback) _drag_and_drop_handler_on_drag_begin_gtk_widget_drag_begin, self); -#line 2533 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = self->priv->event_source; -#line 2533 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect (_tmp14_, "drag-data-get", (GCallback) _drag_and_drop_handler_on_drag_data_get_gtk_widget_drag_data_get, self); -#line 2534 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = self->priv->event_source; -#line 2534 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect (_tmp15_, "drag-end", (GCallback) _drag_and_drop_handler_on_drag_end_gtk_widget_drag_end, self); -#line 2535 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = self->priv->event_source; -#line 2535 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_connect (_tmp16_, "drag-failed", (GCallback) _drag_and_drop_handler_on_drag_failed_gtk_widget_drag_failed, self); -#line 2510 "/home/jens/Source/shotwell/src/Page.vala" - return self; -#line 15996 "Page.c" -} - - -DragAndDropHandler* -drag_and_drop_handler_new (Page* page) -{ -#line 2510 "/home/jens/Source/shotwell/src/Page.vala" - return drag_and_drop_handler_construct (TYPE_DRAG_AND_DROP_HANDLER, page); -#line 16005 "Page.c" -} - - -static void -drag_and_drop_handler_on_drag_begin (DragAndDropHandler* self, - GdkDragContext* context) -{ - Page* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gboolean _tmp3_ = FALSE; - gboolean _tmp4_ = FALSE; - Page* _tmp5_; - ThumbnailSource* thumb = NULL; - Page* _tmp10_; - ViewCollection* _tmp11_; - ViewCollection* _tmp12_; - DataView* _tmp13_; - DataView* _tmp14_; - DataSource* _tmp15_; - ThumbnailSource* _tmp16_; - GdkWindow* _tmp26_; - GdkAtom* _tmp27_; - GdkAtom* _tmp28_; - guint8* _tmp29_; - gint _tmp29__length1; - GError * _inner_error_ = NULL; -#line 2550 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_DRAG_AND_DROP_HANDLER (self)); -#line 2550 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 2551 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->page; -#line 2551 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = page_get_page_name (_tmp0_); -#line 2551 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_; -#line 2551 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:2551: on_drag_begin (%s)", _tmp2_); -#line 2551 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp2_); -#line 2553 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->priv->page; -#line 2553 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp5_ == NULL) { -#line 2553 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = TRUE; -#line 16053 "Page.c" - } else { - Page* _tmp6_; - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; -#line 2553 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->priv->page; -#line 2553 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = page_get_view (_tmp6_); -#line 2553 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = _tmp7_; -#line 2553 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = view_collection_get_selected_count (_tmp8_) == 0; -#line 2553 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp8_); -#line 16068 "Page.c" - } -#line 2553 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp4_) { -#line 2553 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = TRUE; -#line 16074 "Page.c" - } else { - ExporterUI* _tmp9_; -#line 2553 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = self->priv->exporter; -#line 2553 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = _tmp9_ != NULL; -#line 16081 "Page.c" - } -#line 2553 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_) { -#line 2554 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 16087 "Page.c" - } -#line 2556 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->drag_destination); -#line 2556 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->drag_destination = NULL; -#line 2559 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = self->priv->page; -#line 2559 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = page_get_view (_tmp10_); -#line 2559 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = _tmp11_; -#line 2559 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = view_collection_get_selected_at (_tmp12_, 0); -#line 2559 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = _tmp13_; -#line 2559 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = data_view_get_source (_tmp14_); -#line 2559 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource); -#line 2559 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp14_); -#line 2559 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp12_); -#line 2559 "/home/jens/Source/shotwell/src/Page.vala" - thumb = _tmp16_; -#line 16113 "Page.c" - { - GdkPixbuf* icon = NULL; - ThumbnailSource* _tmp17_; - GdkPixbuf* _tmp18_; - GtkWidget* _tmp19_; - GdkPixbuf* _tmp20_; -#line 2562 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = thumb; -#line 2562 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = thumbnail_source_get_thumbnail (_tmp17_, APP_WINDOW_DND_ICON_SCALE, &_inner_error_); -#line 2562 "/home/jens/Source/shotwell/src/Page.vala" - icon = _tmp18_; -#line 2562 "/home/jens/Source/shotwell/src/Page.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 16128 "Page.c" - goto __catch267_g_error; - } -#line 2563 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = self->priv->event_source; -#line 2563 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = icon; -#line 2563 "/home/jens/Source/shotwell/src/Page.vala" - gtk_drag_source_set_icon_pixbuf (_tmp19_, _tmp20_); -#line 2561 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (icon); -#line 16139 "Page.c" - } - goto __finally267; - __catch267_g_error: - { - GError* err = NULL; - ThumbnailSource* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - GError* _tmp24_; - const gchar* _tmp25_; -#line 2561 "/home/jens/Source/shotwell/src/Page.vala" - err = _inner_error_; -#line 2561 "/home/jens/Source/shotwell/src/Page.vala" - _inner_error_ = NULL; -#line 2565 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = thumb; -#line 2565 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_OBJECT, DataObject)); -#line 2565 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = _tmp22_; -#line 2565 "/home/jens/Source/shotwell/src/Page.vala" - _tmp24_ = err; -#line 2565 "/home/jens/Source/shotwell/src/Page.vala" - _tmp25_ = _tmp24_->message; -#line 2565 "/home/jens/Source/shotwell/src/Page.vala" - g_warning ("Page.vala:2565: Unable to fetch icon for drag-and-drop from %s: %s", _tmp23_, _tmp25_); -#line 2565 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp23_); -#line 2561 "/home/jens/Source/shotwell/src/Page.vala" - _g_error_free0 (err); -#line 16170 "Page.c" - } - __finally267: -#line 2561 "/home/jens/Source/shotwell/src/Page.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2561 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (thumb); -#line 2561 "/home/jens/Source/shotwell/src/Page.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2561 "/home/jens/Source/shotwell/src/Page.vala" - g_clear_error (&_inner_error_); -#line 2561 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 16183 "Page.c" - } -#line 2571 "/home/jens/Source/shotwell/src/Page.vala" - _tmp26_ = gdk_drag_context_get_source_window (context); -#line 2571 "/home/jens/Source/shotwell/src/Page.vala" - _tmp27_ = drag_and_drop_handler_XDS_ATOM; -#line 2571 "/home/jens/Source/shotwell/src/Page.vala" - _tmp28_ = drag_and_drop_handler_TEXT_ATOM; -#line 2571 "/home/jens/Source/shotwell/src/Page.vala" - _tmp29_ = drag_and_drop_handler_XDS_FAKE_TARGET; -#line 2571 "/home/jens/Source/shotwell/src/Page.vala" - _tmp29__length1 = drag_and_drop_handler_XDS_FAKE_TARGET_length1; -#line 2571 "/home/jens/Source/shotwell/src/Page.vala" - gdk_property_change (_tmp26_, *_tmp27_, *_tmp28_, 8, GDK_PROP_MODE_REPLACE, (const guchar*) _tmp29_, 1); -#line 2550 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (thumb); -#line 16199 "Page.c" -} - - -static void -drag_and_drop_handler_on_drag_data_get (DragAndDropHandler* self, - GdkDragContext* context, - GtkSelectionData* selection_data, - guint target_type, - guint time) -{ - Page* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gboolean _tmp3_ = FALSE; - Page* _tmp4_; -#line 2579 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_DRAG_AND_DROP_HANDLER (self)); -#line 2579 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 2579 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (selection_data != NULL); -#line 2581 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->page; -#line 2581 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = page_get_page_name (_tmp0_); -#line 2581 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_; -#line 2581 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:2581: on_drag_data_get (%s)", _tmp2_); -#line 2581 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp2_); -#line 2583 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = self->priv->page; -#line 2583 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp4_ == NULL) { -#line 2583 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = TRUE; -#line 16237 "Page.c" - } else { - Page* _tmp5_; - ViewCollection* _tmp6_; - ViewCollection* _tmp7_; -#line 2583 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->priv->page; -#line 2583 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = page_get_view (_tmp5_); -#line 2583 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = _tmp6_; -#line 2583 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = view_collection_get_selected_count (_tmp7_) == 0; -#line 2583 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp7_); -#line 16252 "Page.c" - } -#line 2583 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_) { -#line 2584 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 16258 "Page.c" - } -#line 2586 "/home/jens/Source/shotwell/src/Page.vala" - switch (target_type) { -#line 2586 "/home/jens/Source/shotwell/src/Page.vala" - case DRAG_AND_DROP_HANDLER_TARGET_TYPE_XDS: -#line 16264 "Page.c" - { - guchar* data = NULL; - guchar* _tmp8_; - gint data_length1; - gint _data_size_; - GdkAtom actual_type = 0U; - gint actual_format = 0; - gboolean fetched = FALSE; - GdkWindow* _tmp9_; - GdkAtom* _tmp10_; - GdkAtom* _tmp11_; - guchar* _tmp12_; - gint _tmp12__length1; - GdkAtom _tmp13_ = 0U; - gint _tmp14_ = 0; - guint8* _tmp15_ = NULL; - gint _tmp16_; - gboolean _tmp17_; - gboolean _tmp18_ = FALSE; - gboolean _tmp19_ = FALSE; - gboolean _tmp20_; - gchar* _tmp29_ = NULL; - GFile* _tmp30_; - Page* _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; - const gchar* _tmp37_ = NULL; - GFile* _tmp38_; - GdkAtom* _tmp39_; - gint _tmp40_; - guchar* _tmp41_; - guchar* _tmp42_; - gint _tmp42__length1; -#line 2589 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = g_new0 (guchar, 4096); -#line 2589 "/home/jens/Source/shotwell/src/Page.vala" - data = _tmp8_; -#line 2589 "/home/jens/Source/shotwell/src/Page.vala" - data_length1 = 4096; -#line 2589 "/home/jens/Source/shotwell/src/Page.vala" - _data_size_ = data_length1; -#line 2591 "/home/jens/Source/shotwell/src/Page.vala" - actual_format = 0; -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = gdk_drag_context_get_source_window (context); -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = drag_and_drop_handler_XDS_ATOM; -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = drag_and_drop_handler_TEXT_ATOM; -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = data; -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12__length1 = data_length1; -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = gdk_property_get (_tmp9_, *_tmp10_, *_tmp11_, (gulong) 0, (gulong) _tmp12__length1, 0, &_tmp13_, &_tmp14_, &_tmp16_, &_tmp15_); -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" - actual_type = _tmp13_; -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" - actual_format = _tmp14_; -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" - data = (g_free (data), NULL); -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" - data = _tmp15_; -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" - data_length1 = _tmp16_; -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" - _data_size_ = data_length1; -#line 2592 "/home/jens/Source/shotwell/src/Page.vala" - fetched = _tmp17_; -#line 2597 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = fetched; -#line 2597 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp20_) { -#line 16338 "Page.c" - guchar* _tmp21_; - gint _tmp21__length1; -#line 2597 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = data; -#line 2597 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21__length1 = data_length1; -#line 2597 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = _tmp21_ != NULL; -#line 16347 "Page.c" - } else { -#line 2597 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = FALSE; -#line 16351 "Page.c" - } -#line 2597 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp19_) { -#line 16355 "Page.c" - guchar* _tmp22_; - gint _tmp22__length1; -#line 2597 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = data; -#line 2597 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22__length1 = data_length1; -#line 2597 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = _tmp22__length1 > 0; -#line 16364 "Page.c" - } else { -#line 2597 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = FALSE; -#line 16368 "Page.c" - } -#line 2597 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp18_) { -#line 16372 "Page.c" - guchar* _tmp23_; - gint _tmp23__length1; - gchar* _tmp24_; - gchar* _tmp25_; - GFile* _tmp26_; - GFile* _tmp27_; - GFile* _tmp28_; -#line 2598 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = data; -#line 2598 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23__length1 = data_length1; -#line 2598 "/home/jens/Source/shotwell/src/Page.vala" - _tmp24_ = uchar_array_to_string (_tmp23_, _tmp23__length1, -1); -#line 2598 "/home/jens/Source/shotwell/src/Page.vala" - _tmp25_ = _tmp24_; -#line 2598 "/home/jens/Source/shotwell/src/Page.vala" - _tmp26_ = g_file_new_for_uri (_tmp25_); -#line 2598 "/home/jens/Source/shotwell/src/Page.vala" - _tmp27_ = _tmp26_; -#line 2598 "/home/jens/Source/shotwell/src/Page.vala" - _tmp28_ = g_file_get_parent (_tmp27_); -#line 2598 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->drag_destination); -#line 2598 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->drag_destination = _tmp28_; -#line 2598 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp27_); -#line 2598 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp25_); -#line 16402 "Page.c" - } -#line 2601 "/home/jens/Source/shotwell/src/Page.vala" - _tmp30_ = self->priv->drag_destination; -#line 2601 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp30_ != NULL) { -#line 16408 "Page.c" - GFile* _tmp31_; - gchar* _tmp32_; -#line 2601 "/home/jens/Source/shotwell/src/Page.vala" - _tmp31_ = self->priv->drag_destination; -#line 2601 "/home/jens/Source/shotwell/src/Page.vala" - _tmp32_ = g_file_get_path (_tmp31_); -#line 2601 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp29_); -#line 2601 "/home/jens/Source/shotwell/src/Page.vala" - _tmp29_ = _tmp32_; -#line 16419 "Page.c" - } else { - gchar* _tmp33_; -#line 2601 "/home/jens/Source/shotwell/src/Page.vala" - _tmp33_ = g_strdup ("(no path)"); -#line 2601 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp29_); -#line 2601 "/home/jens/Source/shotwell/src/Page.vala" - _tmp29_ = _tmp33_; -#line 16428 "Page.c" - } -#line 2600 "/home/jens/Source/shotwell/src/Page.vala" - _tmp34_ = self->priv->page; -#line 2600 "/home/jens/Source/shotwell/src/Page.vala" - _tmp35_ = page_get_page_name (_tmp34_); -#line 2600 "/home/jens/Source/shotwell/src/Page.vala" - _tmp36_ = _tmp35_; -#line 2600 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:2600: on_drag_data_get (%s): %s", _tmp36_, _tmp29_); -#line 2600 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp36_); -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" - _tmp38_ = self->priv->drag_destination; -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp38_ != NULL) { -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" - _tmp37_ = "S"; -#line 16446 "Page.c" - } else { -#line 2605 "/home/jens/Source/shotwell/src/Page.vala" - _tmp37_ = "E"; -#line 16450 "Page.c" - } -#line 2604 "/home/jens/Source/shotwell/src/Page.vala" - _tmp39_ = drag_and_drop_handler_XDS_ATOM; -#line 2604 "/home/jens/Source/shotwell/src/Page.vala" - _tmp41_ = string_to_uchar_array (_tmp37_, &_tmp40_); -#line 2604 "/home/jens/Source/shotwell/src/Page.vala" - _tmp42_ = _tmp41_; -#line 2604 "/home/jens/Source/shotwell/src/Page.vala" - _tmp42__length1 = _tmp40_; -#line 2604 "/home/jens/Source/shotwell/src/Page.vala" - gtk_selection_data_set (selection_data, *_tmp39_, 8, _tmp42_, _tmp40_); -#line 2604 "/home/jens/Source/shotwell/src/Page.vala" - _tmp42_ = (g_free (_tmp42_), NULL); -#line 2606 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp29_); -#line 2606 "/home/jens/Source/shotwell/src/Page.vala" - data = (g_free (data), NULL); -#line 2606 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 16470 "Page.c" - } -#line 2586 "/home/jens/Source/shotwell/src/Page.vala" - case DRAG_AND_DROP_HANDLER_TARGET_TYPE_MEDIA_LIST: -#line 16474 "Page.c" - { - GeeCollection* sources = NULL; - Page* _tmp43_; - ViewCollection* _tmp44_; - ViewCollection* _tmp45_; - GeeList* _tmp46_; - GeeCollection* _tmp47_; - GeeCollection* _tmp48_; - gint _tmp49_; - guchar* _tmp50_; - guchar* _tmp51_; - gint _tmp51__length1; -#line 2609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp43_ = self->priv->page; -#line 2609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp44_ = page_get_view (_tmp43_); -#line 2609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp45_ = _tmp44_; -#line 2609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp46_ = view_collection_get_selected_sources (_tmp45_); -#line 2609 "/home/jens/Source/shotwell/src/Page.vala" - _tmp47_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_COLLECTION, GeeCollection); -#line 2609 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp45_); -#line 2609 "/home/jens/Source/shotwell/src/Page.vala" - sources = _tmp47_; -#line 2614 "/home/jens/Source/shotwell/src/Page.vala" - _tmp48_ = sources; -#line 2614 "/home/jens/Source/shotwell/src/Page.vala" - _tmp50_ = serialize_media_sources (_tmp48_, &_tmp49_); -#line 2614 "/home/jens/Source/shotwell/src/Page.vala" - _tmp51_ = _tmp50_; -#line 2614 "/home/jens/Source/shotwell/src/Page.vala" - _tmp51__length1 = _tmp49_; -#line 2614 "/home/jens/Source/shotwell/src/Page.vala" - gtk_selection_data_set (selection_data, gdk_atom_intern_static_string ("SourceIDAtom"), (gint) sizeof (GdkAtom), _tmp51_, _tmp49_); -#line 2614 "/home/jens/Source/shotwell/src/Page.vala" - _tmp51_ = (g_free (_tmp51_), NULL); -#line 2616 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (sources); -#line 2616 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 16517 "Page.c" - } - default: - { - Page* _tmp52_; - gchar* _tmp53_; - gchar* _tmp54_; -#line 2619 "/home/jens/Source/shotwell/src/Page.vala" - _tmp52_ = self->priv->page; -#line 2619 "/home/jens/Source/shotwell/src/Page.vala" - _tmp53_ = page_get_page_name (_tmp52_); -#line 2619 "/home/jens/Source/shotwell/src/Page.vala" - _tmp54_ = _tmp53_; -#line 2619 "/home/jens/Source/shotwell/src/Page.vala" - g_warning ("Page.vala:2619: on_drag_data_get (%s): unknown target type %u", _tmp54_, target_type); -#line 2619 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp54_); -#line 2621 "/home/jens/Source/shotwell/src/Page.vala" - break; -#line 16536 "Page.c" - } - } -} - - -static void -_drag_and_drop_handler_on_export_completed_exporter_completion_callback (Exporter* exporter, - gboolean is_cancelled, - gpointer self) -{ -#line 2642 "/home/jens/Source/shotwell/src/Page.vala" - drag_and_drop_handler_on_export_completed ((DragAndDropHandler*) self); -#line 16549 "Page.c" -} - - -static void -drag_and_drop_handler_on_drag_end (DragAndDropHandler* self) -{ - Page* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gboolean _tmp3_ = FALSE; - gboolean _tmp4_ = FALSE; - gboolean _tmp5_ = FALSE; - Page* _tmp6_; - GFile* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - GFile* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gboolean _tmp18_; -#line 2625 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_DRAG_AND_DROP_HANDLER (self)); -#line 2626 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->page; -#line 2626 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = page_get_page_name (_tmp0_); -#line 2626 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_; -#line 2626 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:2626: on_drag_end (%s)", _tmp2_); -#line 2626 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp2_); -#line 2628 "/home/jens/Source/shotwell/src/Page.vala" - _tmp6_ = self->priv->page; -#line 2628 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp6_ == NULL) { -#line 2628 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = TRUE; -#line 16588 "Page.c" - } else { - Page* _tmp7_; - ViewCollection* _tmp8_; - ViewCollection* _tmp9_; -#line 2628 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = self->priv->page; -#line 2628 "/home/jens/Source/shotwell/src/Page.vala" - _tmp8_ = page_get_view (_tmp7_); -#line 2628 "/home/jens/Source/shotwell/src/Page.vala" - _tmp9_ = _tmp8_; -#line 2628 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = view_collection_get_selected_count (_tmp9_) == 0; -#line 2628 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp9_); -#line 16603 "Page.c" - } -#line 2628 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp5_) { -#line 2628 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = TRUE; -#line 16609 "Page.c" - } else { - GFile* _tmp10_; -#line 2628 "/home/jens/Source/shotwell/src/Page.vala" - _tmp10_ = self->priv->drag_destination; -#line 2628 "/home/jens/Source/shotwell/src/Page.vala" - _tmp4_ = _tmp10_ == NULL; -#line 16616 "Page.c" - } -#line 2628 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp4_) { -#line 2628 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = TRUE; -#line 16622 "Page.c" - } else { - ExporterUI* _tmp11_; -#line 2629 "/home/jens/Source/shotwell/src/Page.vala" - _tmp11_ = self->priv->exporter; -#line 2629 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = _tmp11_ != NULL; -#line 16629 "Page.c" - } -#line 2628 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_) { -#line 2630 "/home/jens/Source/shotwell/src/Page.vala" - return; -#line 16635 "Page.c" - } -#line 2633 "/home/jens/Source/shotwell/src/Page.vala" - _tmp12_ = self->priv->drag_destination; -#line 2633 "/home/jens/Source/shotwell/src/Page.vala" - _tmp13_ = g_file_get_path (_tmp12_); -#line 2633 "/home/jens/Source/shotwell/src/Page.vala" - _tmp14_ = _tmp13_; -#line 2633 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:2633: Exporting to %s", _tmp14_); -#line 2633 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp14_); -#line 2638 "/home/jens/Source/shotwell/src/Page.vala" - _tmp15_ = self->priv->drag_destination; -#line 2638 "/home/jens/Source/shotwell/src/Page.vala" - _tmp16_ = g_file_get_path (_tmp15_); -#line 2638 "/home/jens/Source/shotwell/src/Page.vala" - _tmp17_ = _tmp16_; -#line 2638 "/home/jens/Source/shotwell/src/Page.vala" - _tmp18_ = _tmp17_ != NULL; -#line 2638 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp17_); -#line 2638 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp18_) { -#line 16659 "Page.c" - Page* _tmp19_; - ViewCollection* _tmp20_; - ViewCollection* _tmp21_; - GeeList* _tmp22_; - GeeCollection* _tmp23_; - GFile* _tmp24_; - Scaling _tmp25_ = {0}; - ExportFormatParameters _tmp26_ = {0}; - Exporter* _tmp27_; - Exporter* _tmp28_; - ExporterUI* _tmp29_; - ExporterUI* _tmp30_; -#line 2639 "/home/jens/Source/shotwell/src/Page.vala" - _tmp19_ = self->priv->page; -#line 2639 "/home/jens/Source/shotwell/src/Page.vala" - _tmp20_ = page_get_view (_tmp19_); -#line 2639 "/home/jens/Source/shotwell/src/Page.vala" - _tmp21_ = _tmp20_; -#line 2639 "/home/jens/Source/shotwell/src/Page.vala" - _tmp22_ = view_collection_get_selected_sources (_tmp21_); -#line 2639 "/home/jens/Source/shotwell/src/Page.vala" - _tmp23_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection); -#line 2639 "/home/jens/Source/shotwell/src/Page.vala" - _tmp24_ = self->priv->drag_destination; -#line 2639 "/home/jens/Source/shotwell/src/Page.vala" - scaling_for_original (&_tmp25_); -#line 2639 "/home/jens/Source/shotwell/src/Page.vala" - export_format_parameters_current (&_tmp26_); -#line 2639 "/home/jens/Source/shotwell/src/Page.vala" - _tmp27_ = exporter_new (_tmp23_, _tmp24_, &_tmp25_, &_tmp26_, FALSE); -#line 2639 "/home/jens/Source/shotwell/src/Page.vala" - _tmp28_ = _tmp27_; -#line 2639 "/home/jens/Source/shotwell/src/Page.vala" - _tmp29_ = exporter_ui_new (_tmp28_); -#line 2639 "/home/jens/Source/shotwell/src/Page.vala" - _exporter_ui_unref0 (self->priv->exporter); -#line 2639 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->exporter = _tmp29_; -#line 2639 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp28_); -#line 2639 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (_tmp23_); -#line 2639 "/home/jens/Source/shotwell/src/Page.vala" - _data_collection_unref0 (_tmp21_); -#line 2642 "/home/jens/Source/shotwell/src/Page.vala" - _tmp30_ = self->priv->exporter; -#line 2642 "/home/jens/Source/shotwell/src/Page.vala" - exporter_ui_export (_tmp30_, _drag_and_drop_handler_on_export_completed_exporter_completion_callback, self); -#line 16708 "Page.c" - } else { -#line 2644 "/home/jens/Source/shotwell/src/Page.vala" - app_window_error_message (_ ("Photos cannot be exported to this directory."), NULL); -#line 16712 "Page.c" - } -#line 2647 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->drag_destination); -#line 2647 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->drag_destination = NULL; -#line 16718 "Page.c" -} - - -static gboolean -drag_and_drop_handler_on_drag_failed (DragAndDropHandler* self, - GdkDragContext* context, - GtkDragResult drag_result) -{ - gboolean result = FALSE; - Page* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - Page* _tmp3_; -#line 2650 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (IS_DRAG_AND_DROP_HANDLER (self), FALSE); -#line 2650 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE); -#line 2651 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->page; -#line 2651 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = page_get_page_name (_tmp0_); -#line 2651 "/home/jens/Source/shotwell/src/Page.vala" - _tmp2_ = _tmp1_; -#line 2651 "/home/jens/Source/shotwell/src/Page.vala" - g_debug ("Page.vala:2651: on_drag_failed (%s): %d", _tmp2_, (gint) drag_result); -#line 2651 "/home/jens/Source/shotwell/src/Page.vala" - _g_free0 (_tmp2_); -#line 2653 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = self->priv->page; -#line 2653 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp3_ == NULL) { -#line 2654 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 2654 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 16754 "Page.c" - } -#line 2656 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->drag_destination); -#line 2656 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->drag_destination = NULL; -#line 2658 "/home/jens/Source/shotwell/src/Page.vala" - result = FALSE; -#line 2658 "/home/jens/Source/shotwell/src/Page.vala" - return result; -#line 16764 "Page.c" -} - - -static void -drag_and_drop_handler_on_export_completed (DragAndDropHandler* self) -{ -#line 2661 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (IS_DRAG_AND_DROP_HANDLER (self)); -#line 2662 "/home/jens/Source/shotwell/src/Page.vala" - _exporter_ui_unref0 (self->priv->exporter); -#line 2662 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->exporter = NULL; -#line 16777 "Page.c" -} - - -static void -value_drag_and_drop_handler_init (GValue* value) -{ -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = NULL; -#line 16786 "Page.c" -} - - -static void -value_drag_and_drop_handler_free_value (GValue* value) -{ -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - if (value->data[0].v_pointer) { -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - drag_and_drop_handler_unref (value->data[0].v_pointer); -#line 16797 "Page.c" - } -} - - -static void -value_drag_and_drop_handler_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - if (src_value->data[0].v_pointer) { -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - dest_value->data[0].v_pointer = drag_and_drop_handler_ref (src_value->data[0].v_pointer); -#line 16810 "Page.c" - } else { -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - dest_value->data[0].v_pointer = NULL; -#line 16814 "Page.c" - } -} - - -static gpointer -value_drag_and_drop_handler_peek_pointer (const GValue* value) -{ -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - return value->data[0].v_pointer; -#line 16824 "Page.c" -} - - -static gchar* -value_drag_and_drop_handler_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - if (collect_values[0].v_pointer) { -#line 16836 "Page.c" - DragAndDropHandler * object; - object = collect_values[0].v_pointer; -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - if (object->parent_instance.g_class == NULL) { -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 16843 "Page.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 16847 "Page.c" - } -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = drag_and_drop_handler_ref (object); -#line 16851 "Page.c" - } else { -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = NULL; -#line 16855 "Page.c" - } -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - return NULL; -#line 16859 "Page.c" -} - - -static gchar* -value_drag_and_drop_handler_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - DragAndDropHandler ** object_p; - object_p = collect_values[0].v_pointer; -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - if (!object_p) { -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 16875 "Page.c" - } -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - if (!value->data[0].v_pointer) { -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - *object_p = NULL; -#line 16881 "Page.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - *object_p = value->data[0].v_pointer; -#line 16885 "Page.c" - } else { -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - *object_p = drag_and_drop_handler_ref (value->data[0].v_pointer); -#line 16889 "Page.c" - } -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - return NULL; -#line 16893 "Page.c" -} - - -GParamSpec* -param_spec_drag_and_drop_handler (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecDragAndDropHandler* spec; -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_DRAG_AND_DROP_HANDLER), NULL); -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - return G_PARAM_SPEC (spec); -#line 16913 "Page.c" -} - - -gpointer -value_get_drag_and_drop_handler (const GValue* value) -{ -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DRAG_AND_DROP_HANDLER), NULL); -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - return value->data[0].v_pointer; -#line 16924 "Page.c" -} - - -void -value_set_drag_and_drop_handler (GValue* value, - gpointer v_object) -{ - DragAndDropHandler * old; -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DRAG_AND_DROP_HANDLER)); -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - old = value->data[0].v_pointer; -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - if (v_object) { -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DRAG_AND_DROP_HANDLER)); -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = v_object; -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - drag_and_drop_handler_ref (value->data[0].v_pointer); -#line 16947 "Page.c" - } else { -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = NULL; -#line 16951 "Page.c" - } -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - if (old) { -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - drag_and_drop_handler_unref (old); -#line 16957 "Page.c" - } -} - - -void -value_take_drag_and_drop_handler (GValue* value, - gpointer v_object) -{ - DragAndDropHandler * old; -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DRAG_AND_DROP_HANDLER)); -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - old = value->data[0].v_pointer; -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - if (v_object) { -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DRAG_AND_DROP_HANDLER)); -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = v_object; -#line 16979 "Page.c" - } else { -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - value->data[0].v_pointer = NULL; -#line 16983 "Page.c" - } -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - if (old) { -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - drag_and_drop_handler_unref (old); -#line 16989 "Page.c" - } -} - - -static void -drag_and_drop_handler_class_init (DragAndDropHandlerClass * klass) -{ -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - drag_and_drop_handler_parent_class = g_type_class_peek_parent (klass); -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - ((DragAndDropHandlerClass *) klass)->finalize = drag_and_drop_handler_finalize; -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - g_type_class_add_private (klass, sizeof (DragAndDropHandlerPrivate)); -#line 17003 "Page.c" -} - - -static void -drag_and_drop_handler_instance_init (DragAndDropHandler * self) -{ -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - self->priv = DRAG_AND_DROP_HANDLER_GET_PRIVATE (self); -#line 2507 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->drag_destination = NULL; -#line 2508 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->exporter = NULL; -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - self->ref_count = 1; -#line 17018 "Page.c" -} - - -static void -drag_and_drop_handler_finalize (DragAndDropHandler * obj) -{ - DragAndDropHandler * self; - GtkWidget* _tmp0_; -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandler); -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_destroy (self); -#line 2539 "/home/jens/Source/shotwell/src/Page.vala" - _tmp0_ = self->priv->event_source; -#line 2539 "/home/jens/Source/shotwell/src/Page.vala" - if (_tmp0_ != NULL) { -#line 17035 "Page.c" - GtkWidget* _tmp1_; - guint _tmp2_; - GtkWidget* _tmp3_; - guint _tmp4_; - GtkWidget* _tmp5_; - guint _tmp6_; - GtkWidget* _tmp7_; - guint _tmp8_; -#line 2540 "/home/jens/Source/shotwell/src/Page.vala" - _tmp1_ = self->priv->event_source; -#line 2540 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("drag-begin", gtk_widget_get_type (), &_tmp2_, NULL, FALSE); -#line 2540 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _drag_and_drop_handler_on_drag_begin_gtk_widget_drag_begin, self); -#line 2541 "/home/jens/Source/shotwell/src/Page.vala" - _tmp3_ = self->priv->event_source; -#line 2541 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("drag-data-get", gtk_widget_get_type (), &_tmp4_, NULL, FALSE); -#line 2541 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _drag_and_drop_handler_on_drag_data_get_gtk_widget_drag_data_get, self); -#line 2542 "/home/jens/Source/shotwell/src/Page.vala" - _tmp5_ = self->priv->event_source; -#line 2542 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("drag-end", gtk_widget_get_type (), &_tmp6_, NULL, FALSE); -#line 2542 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _drag_and_drop_handler_on_drag_end_gtk_widget_drag_end, self); -#line 2543 "/home/jens/Source/shotwell/src/Page.vala" - _tmp7_ = self->priv->event_source; -#line 2543 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_parse_name ("drag-failed", gtk_widget_get_type (), &_tmp8_, NULL, FALSE); -#line 2543 "/home/jens/Source/shotwell/src/Page.vala" - g_signal_handlers_disconnect_matched (_tmp7_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _drag_and_drop_handler_on_drag_failed_gtk_widget_drag_failed, self); -#line 17068 "Page.c" - } -#line 2546 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->page = NULL; -#line 2547 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->event_source); -#line 2547 "/home/jens/Source/shotwell/src/Page.vala" - self->priv->event_source = NULL; -#line 2506 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->event_source); -#line 2507 "/home/jens/Source/shotwell/src/Page.vala" - _g_object_unref0 (self->priv->drag_destination); -#line 2508 "/home/jens/Source/shotwell/src/Page.vala" - _exporter_ui_unref0 (self->priv->exporter); -#line 17082 "Page.c" -} - - -GType -drag_and_drop_handler_get_type (void) -{ - static volatile gsize drag_and_drop_handler_type_id__volatile = 0; - if (g_once_init_enter (&drag_and_drop_handler_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_drag_and_drop_handler_init, value_drag_and_drop_handler_free_value, value_drag_and_drop_handler_copy_value, value_drag_and_drop_handler_peek_pointer, "p", value_drag_and_drop_handler_collect_value, "p", value_drag_and_drop_handler_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (DragAndDropHandlerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) drag_and_drop_handler_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DragAndDropHandler), 0, (GInstanceInitFunc) drag_and_drop_handler_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType drag_and_drop_handler_type_id; - drag_and_drop_handler_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DragAndDropHandler", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&drag_and_drop_handler_type_id__volatile, drag_and_drop_handler_type_id); - } - return drag_and_drop_handler_type_id__volatile; -} - - -gpointer -drag_and_drop_handler_ref (gpointer instance) -{ - DragAndDropHandler * self; - self = instance; -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - g_atomic_int_inc (&self->ref_count); -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - return instance; -#line 17111 "Page.c" -} - - -void -drag_and_drop_handler_unref (gpointer instance) -{ - DragAndDropHandler * self; - self = instance; -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - DRAG_AND_DROP_HANDLER_GET_CLASS (self)->finalize (self); -#line 2490 "/home/jens/Source/shotwell/src/Page.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 17126 "Page.c" - } -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/Page.vala b/src/Page.vala index ea8606e..b92eaa0 100644 --- a/src/Page.vala +++ b/src/Page.vala @@ -414,9 +414,9 @@ public abstract class Page : Gtk.ScrolledWindow { int x, y; Gdk.ModifierType mask; - AppWindow.get_instance().get_window().get_device_position(Gdk.Display.get_default(). - get_device_manager().get_client_pointer(), out x, out y, out mask); - + var seat = Gdk.Display.get_default().get_default_seat(); + AppWindow.get_instance().get_window().get_device_position(seat.get_pointer(), out x, out y, out mask); + ctrl = (mask & Gdk.ModifierType.CONTROL_MASK) != 0; alt = (mask & Gdk.ModifierType.MOD1_MASK) != 0; shift = (mask & Gdk.ModifierType.SHIFT_MASK) != 0; @@ -675,8 +675,8 @@ public abstract class Page : Gtk.ScrolledWindow { return false; } - event_source.get_window().get_device_position(Gdk.Display.get_default().get_device_manager() - .get_client_pointer(), out x, out y, out mask); + var seat = Gdk.Display.get_default().get_default_seat(); + event_source.get_window().get_device_position(seat.get_pointer(), out x, out y, out mask); if (last_down.x < 0 || last_down.y < 0) return true; @@ -1083,10 +1083,7 @@ public abstract class Page : Gtk.ScrolledWindow { if (context_menu == null || !on_context_invoked()) return false; - if (event == null) - context_menu.popup(null, null, null, 0, Gtk.get_current_event_time()); - else - context_menu.popup(null, null, null, event.button, event.time); + context_menu.popup_at_pointer(event); return true; } @@ -1222,7 +1219,7 @@ public abstract class CheckerboardPage : Page { private Gtk.Viewport viewport = new Gtk.Viewport(null, null); protected CheckerboardItem anchor = null; protected CheckerboardItem cursor = null; - private CheckerboardItem highlighted = null; + private CheckerboardItem current_hovered_item = null; private bool autoscroll_scheduled = false; private CheckerboardItem activated_item = null; private Gee.ArrayList previously_selected = null; @@ -1446,8 +1443,8 @@ public abstract class CheckerboardPage : Page { if (cursor == item) cursor = null; - if (highlighted == item) - highlighted = null; + if (current_hovered_item == item) + current_hovered_item = null; } } @@ -1715,13 +1712,13 @@ public abstract class CheckerboardPage : Page { // if hovering over the last hovered item, or both are null (nothing highlighted and // hovering over empty space), do nothing - if (item == highlighted) + if (item == current_hovered_item) return true; // either something new is highlighted or now hovering over empty space, so dim old item - if (highlighted != null) { - highlighted.unbrighten(); - highlighted = null; + if (current_hovered_item != null) { + current_hovered_item.handle_mouse_leave(); + current_hovered_item = null; } // if over empty space, done @@ -1729,8 +1726,8 @@ public abstract class CheckerboardPage : Page { return true; // brighten the new item - item.brighten(); - highlighted = item; + current_hovered_item = item; + current_hovered_item.handle_mouse_enter(); return true; } @@ -2219,7 +2216,7 @@ public abstract class SinglePhotoPage : Page { } public Scaling get_canvas_scaling() { - return (get_container() is FullscreenWindow) ? Scaling.for_screen(get_container(), scale_up_to_viewport) + return (get_container() is FullscreenWindow) ? Scaling.for_screen(AppWindow.get_instance(), scale_up_to_viewport) : Scaling.for_widget(viewport, scale_up_to_viewport); } diff --git a/src/Photo.c b/src/Photo.c deleted file mode 100644 index 3da6c81..0000000 --- a/src/Photo.c +++ /dev/null @@ -1,42442 +0,0 @@ -/* Photo.c generated by valac 0.40.4, the Vala compiler - * generated from Photo.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/* Specifies how pixel data is fetched from the backing file on disk. MASTER is the original*/ -/* backing photo of any supported photo file format; SOURCE is either the master or the editable*/ -/* file, that is, the appropriate reference file for user display; BASELINE is an appropriate*/ -/* file with the proviso that it may be a suitable substitute for the master and/or the editable.*/ -/* UNMODIFIED represents the photo with no edits, i.e. the head of the pipeline.*/ -/**/ -/* In general, callers want to use the BASELINE unless requirements are specific.*/ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-graphics-processor.h" -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_BACKING_FETCH_MODE (backing_fetch_mode_get_type ()) - -#define TYPE_PHOTO_IMPORT_PARAMS (photo_import_params_get_type ()) -#define PHOTO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParams)) -#define PHOTO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParamsClass)) -#define IS_PHOTO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_IMPORT_PARAMS)) -#define IS_PHOTO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_IMPORT_PARAMS)) -#define PHOTO_IMPORT_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParamsClass)) - -typedef struct _PhotoImportParams PhotoImportParams; -typedef struct _PhotoImportParamsClass PhotoImportParamsClass; -typedef struct _PhotoImportParamsPrivate PhotoImportParamsPrivate; - -#define TYPE_IMPORT_ID (import_id_get_type ()) -typedef struct _ImportID ImportID; - -#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ()) - -#define TYPE_THUMBNAILS (thumbnails_get_type ()) -#define THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAILS, Thumbnails)) -#define THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAILS, ThumbnailsClass)) -#define IS_THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAILS)) -#define IS_THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAILS)) -#define THUMBNAILS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAILS, ThumbnailsClass)) - -typedef struct _Thumbnails Thumbnails; -typedef struct _ThumbnailsClass ThumbnailsClass; - -#define TYPE_PHOTO_ROW (photo_row_get_type ()) -#define PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_ROW, PhotoRow)) -#define PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_ROW, PhotoRowClass)) -#define IS_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_ROW)) -#define IS_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_ROW)) -#define PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_ROW, PhotoRowClass)) - -typedef struct _PhotoRow PhotoRow; -typedef struct _PhotoRowClass PhotoRowClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _thumbnails_unref0(var) ((var == NULL) ? NULL : (var = (thumbnails_unref (var), NULL))) -#define _photo_row_unref0(var) ((var == NULL) ? NULL : (var = (photo_row_unref (var), NULL))) -typedef struct _ParamSpecPhotoImportParams ParamSpecPhotoImportParams; - -#define TYPE_PHOTO_TRANSFORMATION_STATE (photo_transformation_state_get_type ()) -#define PHOTO_TRANSFORMATION_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationState)) -#define PHOTO_TRANSFORMATION_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationStateClass)) -#define IS_PHOTO_TRANSFORMATION_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TRANSFORMATION_STATE)) -#define IS_PHOTO_TRANSFORMATION_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TRANSFORMATION_STATE)) -#define PHOTO_TRANSFORMATION_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationStateClass)) - -typedef struct _PhotoTransformationState PhotoTransformationState; -typedef struct _PhotoTransformationStateClass PhotoTransformationStateClass; -typedef struct _PhotoTransformationStatePrivate PhotoTransformationStatePrivate; -enum { - PHOTO_TRANSFORMATION_STATE_0_PROPERTY, - PHOTO_TRANSFORMATION_STATE_NUM_PROPERTIES -}; -static GParamSpec* photo_transformation_state_properties[PHOTO_TRANSFORMATION_STATE_NUM_PROPERTIES]; -enum { - PHOTO_TRANSFORMATION_STATE_BROKEN_SIGNAL, - PHOTO_TRANSFORMATION_STATE_NUM_SIGNALS -}; -static guint photo_transformation_state_signals[PHOTO_TRANSFORMATION_STATE_NUM_SIGNALS] = {0}; - -#define TYPE_RATING (rating_get_type ()) - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; -typedef struct _DataSourcePrivate DataSourcePrivate; - -#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ()) -#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)) -#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) -#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK)) -#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK)) -#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) - -typedef struct _SourceHoldingTank SourceHoldingTank; -typedef struct _SourceHoldingTankClass SourceHoldingTankClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ()) -#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot)) -#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) -#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT)) -#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT)) -#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) - -typedef struct _SourceSnapshot SourceSnapshot; -typedef struct _SourceSnapshotClass SourceSnapshotClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; -typedef struct _ThumbnailSourcePrivate ThumbnailSourcePrivate; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_INDEXABLE (indexable_get_type ()) -#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable)) -#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE)) -#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface)) - -typedef struct _Indexable Indexable; -typedef struct _IndexableIface IndexableIface; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; -typedef struct _MediaSourcePrivate MediaSourcePrivate; - -#define TYPE_EVENT_ID (event_id_get_type ()) -typedef struct _EventID EventID; - -#define TYPE_BACKING_FILE_STATE (backing_file_state_get_type ()) -#define BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_FILE_STATE, BackingFileState)) -#define BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_FILE_STATE, BackingFileStateClass)) -#define IS_BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_FILE_STATE)) -#define IS_BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_FILE_STATE)) -#define BACKING_FILE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_FILE_STATE, BackingFileStateClass)) - -typedef struct _BackingFileState BackingFileState; -typedef struct _BackingFileStateClass BackingFileStateClass; - -#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) -typedef struct _Scaling Scaling; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; -typedef struct _PhotoSourcePrivate PhotoSourcePrivate; - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; - -#define TYPE_DATEABLE (dateable_get_type ()) -#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable)) -#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE)) -#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface)) - -typedef struct _Dateable Dateable; -typedef struct _DateableIface DateableIface; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; -typedef struct _PhotoPrivate PhotoPrivate; - -#define TYPE_ROTATION (rotation_get_type ()) - -#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ()) -#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow)) -#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) -#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW)) -#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW)) -#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) - -typedef struct _BackingPhotoRow BackingPhotoRow; -typedef struct _BackingPhotoRowClass BackingPhotoRowClass; - -#define PHOTO_TYPE_BACKING_READERS (photo_backing_readers_get_type ()) -#define PHOTO_BACKING_READERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_BACKING_READERS, PhotoBackingReaders)) -#define PHOTO_BACKING_READERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_BACKING_READERS, PhotoBackingReadersClass)) -#define PHOTO_IS_BACKING_READERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_BACKING_READERS)) -#define PHOTO_IS_BACKING_READERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_BACKING_READERS)) -#define PHOTO_BACKING_READERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_BACKING_READERS, PhotoBackingReadersClass)) - -typedef struct _PhotoBackingReaders PhotoBackingReaders; -typedef struct _PhotoBackingReadersClass PhotoBackingReadersClass; - -#define TYPE_ONE_SHOT_SCHEDULER (one_shot_scheduler_get_type ()) -#define ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler)) -#define ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass)) -#define IS_ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ONE_SHOT_SCHEDULER)) -#define IS_ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ONE_SHOT_SCHEDULER)) -#define ONE_SHOT_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass)) - -typedef struct _OneShotScheduler OneShotScheduler; -typedef struct _OneShotSchedulerClass OneShotSchedulerClass; - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) -enum { - PHOTO_0_PROPERTY, - PHOTO_NUM_PROPERTIES -}; -static GParamSpec* photo_properties[PHOTO_NUM_PROPERTIES]; - -#define PHOTO_TYPE_CACHED_PIXBUF (photo_cached_pixbuf_get_type ()) -#define PHOTO_CACHED_PIXBUF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_CACHED_PIXBUF, PhotoCachedPixbuf)) -#define PHOTO_CACHED_PIXBUF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_CACHED_PIXBUF, PhotoCachedPixbufClass)) -#define PHOTO_IS_CACHED_PIXBUF(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_CACHED_PIXBUF)) -#define PHOTO_IS_CACHED_PIXBUF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_CACHED_PIXBUF)) -#define PHOTO_CACHED_PIXBUF_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_CACHED_PIXBUF, PhotoCachedPixbufClass)) - -typedef struct _PhotoCachedPixbuf PhotoCachedPixbuf; -typedef struct _PhotoCachedPixbufClass PhotoCachedPixbufClass; -#define _backing_photo_row_unref0(var) ((var == NULL) ? NULL : (var = (backing_photo_row_unref (var), NULL))) -#define _photo_backing_readers_unref0(var) ((var == NULL) ? NULL : (var = (photo_backing_readers_unref (var), NULL))) -#define _pixel_transformer_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformer_unref (var), NULL))) -#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL))) -#define _one_shot_scheduler_unref0(var) ((var == NULL) ? NULL : (var = (one_shot_scheduler_unref (var), NULL))) -typedef struct _PhotoRowPrivate PhotoRowPrivate; - -#define TYPE_PHOTO_ID (photo_id_get_type ()) -typedef struct _PhotoID PhotoID; - -#define TYPE_ORIENTATION (orientation_get_type ()) - -#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ()) -typedef struct _BackingPhotoID BackingPhotoID; -typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate; - -#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ()) -#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)) -#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) -#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER)) -#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER)) -#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) - -typedef struct _PhotoFileAdapter PhotoFileAdapter; -typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass; - -#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ()) -#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader)) -#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) -#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER)) -#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER)) -#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) - -typedef struct _PhotoFileReader PhotoFileReader; -typedef struct _PhotoFileReaderClass PhotoFileReaderClass; -typedef struct _PhotoBackingReadersPrivate PhotoBackingReadersPrivate; -#define _photo_file_adapter_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_adapter_unref (var), NULL))) - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; - -#define TYPE_PHOTO_TABLE (photo_table_get_type ()) -#define PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TABLE, PhotoTable)) -#define PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TABLE, PhotoTableClass)) -#define IS_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TABLE)) -#define IS_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TABLE)) -#define PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TABLE, PhotoTableClass)) - -typedef struct _PhotoTable PhotoTable; -typedef struct _PhotoTableClass PhotoTableClass; -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_BACKING_PHOTO_TABLE (backing_photo_table_get_type ()) -#define BACKING_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_TABLE, BackingPhotoTable)) -#define BACKING_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_TABLE, BackingPhotoTableClass)) -#define IS_BACKING_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_TABLE)) -#define IS_BACKING_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_TABLE)) -#define BACKING_PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_TABLE, BackingPhotoTableClass)) - -typedef struct _BackingPhotoTable BackingPhotoTable; -typedef struct _BackingPhotoTableClass BackingPhotoTableClass; - -#define TYPE_PHOTO_PREVIEW (photo_preview_get_type ()) -#define PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_PREVIEW, PhotoPreview)) -#define PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_PREVIEW, PhotoPreviewClass)) -#define IS_PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_PREVIEW)) -#define IS_PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_PREVIEW)) -#define PHOTO_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_PREVIEW, PhotoPreviewClass)) - -typedef struct _PhotoPreview PhotoPreview; -typedef struct _PhotoPreviewClass PhotoPreviewClass; -#define _photo_preview_unref0(var) ((var == NULL) ? NULL : (var = (photo_preview_unref (var), NULL))) -#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL))) -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) - -#define TYPE_PHOTO_FILE_INTERROGATOR (photo_file_interrogator_get_type ()) -#define PHOTO_FILE_INTERROGATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogator)) -#define PHOTO_FILE_INTERROGATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogatorClass)) -#define IS_PHOTO_FILE_INTERROGATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_INTERROGATOR)) -#define IS_PHOTO_FILE_INTERROGATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_INTERROGATOR)) -#define PHOTO_FILE_INTERROGATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogatorClass)) - -typedef struct _PhotoFileInterrogator PhotoFileInterrogator; -typedef struct _PhotoFileInterrogatorClass PhotoFileInterrogatorClass; -#define _photo_file_interrogator_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_interrogator_unref (var), NULL))) - -#define TYPE_DETECTED_PHOTO_INFORMATION (detected_photo_information_get_type ()) -#define DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation)) -#define DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass)) -#define IS_DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DETECTED_PHOTO_INFORMATION)) -#define IS_DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DETECTED_PHOTO_INFORMATION)) -#define DETECTED_PHOTO_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass)) - -typedef struct _DetectedPhotoInformation DetectedPhotoInformation; -typedef struct _DetectedPhotoInformationClass DetectedPhotoInformationClass; -#define _detected_photo_information_unref0(var) ((var == NULL) ? NULL : (var = (detected_photo_information_unref (var), NULL))) -typedef struct _DetectedPhotoInformationPrivate DetectedPhotoInformationPrivate; - -#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ()) -#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter)) -#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) -#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER)) -#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER)) -#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) - -typedef struct _PhotoFileWriter PhotoFileWriter; -typedef struct _PhotoFileWriterClass PhotoFileWriterClass; - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) - -#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ()) -#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter)) -#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass)) -#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER)) -#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER)) -#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass)) - -typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter; -typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass; -#define _g_bytes_unref0(var) ((var == NULL) ? NULL : (var = (g_bytes_unref (var), NULL))) - -#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ()) - -#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ()) -typedef struct _ExportFormatParameters ExportFormatParameters; - -#define TYPE_IMPORT_RESULT (import_result_get_type ()) - -#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ()) -#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime)) -#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) -#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME)) -#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME)) -#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) - -typedef struct _MetadataDateTime MetadataDateTime; -typedef struct _MetadataDateTimeClass MetadataDateTimeClass; -#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL))) - -#define PHOTO_FILE_READER_TYPE_ROLE (photo_file_reader_role_get_type ()) - -#define PHOTO_TYPE_REIMPORT_MASTER_STATE (photo_reimport_master_state_get_type ()) -#define PHOTO_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterState)) -#define PHOTO_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass)) -#define PHOTO_IS_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE)) -#define PHOTO_IS_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE)) -#define PHOTO_REIMPORT_MASTER_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass)) - -typedef struct _PhotoReimportMasterState PhotoReimportMasterState; -typedef struct _PhotoReimportMasterStateClass PhotoReimportMasterStateClass; -#define _photo_reimport_master_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_master_state_unref (var), NULL))) - -#define PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL (photo_reimport_master_state_impl_get_type ()) -#define PHOTO_REIMPORT_MASTER_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImpl)) -#define PHOTO_REIMPORT_MASTER_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImplClass)) -#define PHOTO_IS_REIMPORT_MASTER_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL)) -#define PHOTO_IS_REIMPORT_MASTER_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL)) -#define PHOTO_REIMPORT_MASTER_STATE_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImplClass)) - -typedef struct _PhotoReimportMasterStateImpl PhotoReimportMasterStateImpl; -typedef struct _PhotoReimportMasterStateImplClass PhotoReimportMasterStateImplClass; -typedef struct _PhotoReimportMasterStatePrivate PhotoReimportMasterStatePrivate; -typedef struct _PhotoReimportMasterStateImplPrivate PhotoReimportMasterStateImplPrivate; - -#define PHOTO_TYPE_REIMPORT_EDITABLE_STATE (photo_reimport_editable_state_get_type ()) -#define PHOTO_REIMPORT_EDITABLE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableState)) -#define PHOTO_REIMPORT_EDITABLE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableStateClass)) -#define PHOTO_IS_REIMPORT_EDITABLE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE)) -#define PHOTO_IS_REIMPORT_EDITABLE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE)) -#define PHOTO_REIMPORT_EDITABLE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableStateClass)) - -typedef struct _PhotoReimportEditableState PhotoReimportEditableState; -typedef struct _PhotoReimportEditableStateClass PhotoReimportEditableStateClass; -#define _photo_reimport_editable_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_editable_state_unref (var), NULL))) - -#define PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL (photo_reimport_editable_state_impl_get_type ()) -#define PHOTO_REIMPORT_EDITABLE_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImpl)) -#define PHOTO_REIMPORT_EDITABLE_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImplClass)) -#define PHOTO_IS_REIMPORT_EDITABLE_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL)) -#define PHOTO_IS_REIMPORT_EDITABLE_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL)) -#define PHOTO_REIMPORT_EDITABLE_STATE_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImplClass)) - -typedef struct _PhotoReimportEditableStateImpl PhotoReimportEditableStateImpl; -typedef struct _PhotoReimportEditableStateImplClass PhotoReimportEditableStateImplClass; -typedef struct _PhotoReimportEditableStatePrivate PhotoReimportEditableStatePrivate; -typedef struct _PhotoReimportEditableStateImplPrivate PhotoReimportEditableStateImplPrivate; - -#define PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE (photo_reimport_raw_development_state_get_type ()) -#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentState)) -#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentStateClass)) -#define PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE)) -#define PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE)) -#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentStateClass)) - -typedef struct _PhotoReimportRawDevelopmentState PhotoReimportRawDevelopmentState; -typedef struct _PhotoReimportRawDevelopmentStateClass PhotoReimportRawDevelopmentStateClass; -#define _photo_reimport_raw_development_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_raw_development_state_unref (var), NULL))) - -#define PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL (photo_reimport_raw_development_state_impl_get_type ()) -#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL, PhotoReimportRawDevelopmentStateImpl)) -#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL, PhotoReimportRawDevelopmentStateImplClass)) -#define PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL)) -#define PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL)) -#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL, PhotoReimportRawDevelopmentStateImplClass)) - -typedef struct _PhotoReimportRawDevelopmentStateImpl PhotoReimportRawDevelopmentStateImpl; -typedef struct _PhotoReimportRawDevelopmentStateImplClass PhotoReimportRawDevelopmentStateImplClass; - -#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT (photo_reimport_raw_development_state_impl_dev_to_reimport_get_type ()) -#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_DEV_TO_REIMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, PhotoReimportRawDevelopmentStateImplDevToReimport)) -#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_DEV_TO_REIMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, PhotoReimportRawDevelopmentStateImplDevToReimportClass)) -#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_IS_DEV_TO_REIMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT)) -#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_IS_DEV_TO_REIMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT)) -#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_DEV_TO_REIMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, PhotoReimportRawDevelopmentStateImplDevToReimportClass)) - -typedef struct _PhotoReimportRawDevelopmentStateImplDevToReimport PhotoReimportRawDevelopmentStateImplDevToReimport; -typedef struct _PhotoReimportRawDevelopmentStateImplDevToReimportClass PhotoReimportRawDevelopmentStateImplDevToReimportClass; -typedef struct _PhotoReimportRawDevelopmentStatePrivate PhotoReimportRawDevelopmentStatePrivate; -typedef struct _PhotoReimportRawDevelopmentStateImplPrivate PhotoReimportRawDevelopmentStateImplPrivate; -typedef struct _PhotoReimportRawDevelopmentStateImplDevToReimportPrivate PhotoReimportRawDevelopmentStateImplDevToReimportPrivate; -#define _photo_reimport_raw_development_state_impl_dev_to_reimport_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_raw_development_state_impl_dev_to_reimport_unref (var), NULL))) - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define PHOTO_METADATA_TYPE_SET_OPTION (photo_metadata_set_option_get_type ()) - -#define TYPE_BOX (box_get_type ()) -typedef struct _Box Box; -#define _key_value_map_unref0(var) ((var == NULL) ? NULL : (var = (key_value_map_unref (var), NULL))) -#define _pixel_transformation_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_unref (var), NULL))) - -#define PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL (photo_photo_transformation_state_impl_get_type ()) -#define PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, PhotoPhotoTransformationStateImpl)) -#define PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, PhotoPhotoTransformationStateImplClass)) -#define PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL)) -#define PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL)) -#define PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, PhotoPhotoTransformationStateImplClass)) - -typedef struct _PhotoPhotoTransformationStateImpl PhotoPhotoTransformationStateImpl; -typedef struct _PhotoPhotoTransformationStateImplClass PhotoPhotoTransformationStateImplClass; - -#define EDITING_TOOLS_TYPE_REDEYE_INSTANCE (editing_tools_redeye_instance_get_type ()) -typedef struct _EditingToolsRedeyeInstance EditingToolsRedeyeInstance; -typedef struct _PhotoCachedPixbufPrivate PhotoCachedPixbufPrivate; -#define _photo_cached_pixbuf_unref0(var) ((var == NULL) ? NULL : (var = (photo_cached_pixbuf_unref (var), NULL))) - -#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ()) -#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties)) -#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) - -typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties; -typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass; -#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL))) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL))) -typedef struct _PhotoPhotoTransformationStateImplPrivate PhotoPhotoTransformationStateImplPrivate; -enum { - PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_0_PROPERTY, - PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_NUM_PROPERTIES -}; -static GParamSpec* photo_photo_transformation_state_impl_properties[PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_NUM_PROPERTIES]; -typedef struct _PhotoParamSpecBackingReaders PhotoParamSpecBackingReaders; -#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL))) -typedef struct _PhotoParamSpecCachedPixbuf PhotoParamSpecCachedPixbuf; -typedef struct _PhotoParamSpecReimportMasterState PhotoParamSpecReimportMasterState; -typedef struct _PhotoParamSpecReimportEditableState PhotoParamSpecReimportEditableState; -typedef struct _PhotoParamSpecReimportRawDevelopmentState PhotoParamSpecReimportRawDevelopmentState; -typedef struct _PhotoReimportRawDevelopmentStateImplParamSpecDevToReimport PhotoReimportRawDevelopmentStateImplParamSpecDevToReimport; -enum { - PHOTO_EDITABLE_REPLACED_SIGNAL, - PHOTO_RAW_DEVELOPMENT_MODIFIED_SIGNAL, - PHOTO_BASELINE_REPLACED_SIGNAL, - PHOTO_MASTER_REIMPORTED_SIGNAL, - PHOTO_EDITABLE_REIMPORTED_SIGNAL, - PHOTO_BASELINE_REIMPORTED_SIGNAL, - PHOTO_SOURCE_REIMPORTED_SIGNAL, - PHOTO_NUM_SIGNALS -}; -static guint photo_signals[PHOTO_NUM_SIGNALS] = {0}; -typedef struct _DataCollectionPrivate DataCollectionPrivate; - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; -typedef struct _SourceCollectionPrivate SourceCollectionPrivate; - -#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ()) -#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink)) -#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) -#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK)) -#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK)) -#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) - -typedef struct _SourceBacklink SourceBacklink; -typedef struct _SourceBacklinkClass SourceBacklinkClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; -typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; -typedef struct _MediaSourceCollectionPrivate MediaSourceCollectionPrivate; - -#define TYPE_DATABASE_SOURCE_HOLDING_TANK (database_source_holding_tank_get_type ()) -#define DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank)) -#define DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass)) -#define IS_DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK)) -#define IS_DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK)) -#define DATABASE_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass)) - -typedef struct _DatabaseSourceHoldingTank DatabaseSourceHoldingTank; -typedef struct _DatabaseSourceHoldingTankClass DatabaseSourceHoldingTankClass; - -#define TYPE_MEDIA_SOURCE_HOLDING_TANK (media_source_holding_tank_get_type ()) -#define MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank)) -#define MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass)) -#define IS_MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK)) -#define IS_MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK)) -#define MEDIA_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass)) - -typedef struct _MediaSourceHoldingTank MediaSourceHoldingTank; -typedef struct _MediaSourceHoldingTankClass MediaSourceHoldingTankClass; - -#define TYPE_WORKERS (workers_get_type ()) -#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers)) -#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass)) -#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS)) -#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS)) -#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass)) - -typedef struct _Workers Workers; -typedef struct _WorkersClass WorkersClass; - -#define TYPE_MEDIA_MONITOR (media_monitor_get_type ()) -#define MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_MONITOR, MediaMonitor)) -#define MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_MONITOR, MediaMonitorClass)) -#define IS_MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_MONITOR)) -#define IS_MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_MONITOR)) -#define MEDIA_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_MONITOR, MediaMonitorClass)) - -typedef struct _MediaMonitor MediaMonitor; -typedef struct _MediaMonitorClass MediaMonitorClass; - -#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ()) -#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController)) -#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) -#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER)) -#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER)) -#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) - -typedef struct _TransactionController TransactionController; -typedef struct _TransactionControllerClass TransactionControllerClass; - -#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ()) -#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) - -typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; -typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; -typedef struct _LibraryPhotoSourceCollectionPrivate LibraryPhotoSourceCollectionPrivate; - -#define LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE (library_photo_source_collection_state_get_type ()) -#define _transaction_controller_unref0(var) ((var == NULL) ? NULL : (var = (transaction_controller_unref (var), NULL))) -#define _source_holding_tank_unref0(var) ((var == NULL) ? NULL : (var = (source_holding_tank_unref (var), NULL))) - -#define TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK (library_photo_source_holding_tank_get_type ()) -#define LIBRARY_PHOTO_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTank)) -#define LIBRARY_PHOTO_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTankClass)) -#define IS_LIBRARY_PHOTO_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK)) -#define IS_LIBRARY_PHOTO_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK)) -#define LIBRARY_PHOTO_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTankClass)) - -typedef struct _LibraryPhotoSourceHoldingTank LibraryPhotoSourceHoldingTank; -typedef struct _LibraryPhotoSourceHoldingTankClass LibraryPhotoSourceHoldingTankClass; - -#define TYPE_PHOTO_MONITOR (photo_monitor_get_type ()) -#define PHOTO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_MONITOR, PhotoMonitor)) -#define PHOTO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_MONITOR, PhotoMonitorClass)) -#define IS_PHOTO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_MONITOR)) -#define IS_PHOTO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_MONITOR)) -#define PHOTO_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_MONITOR, PhotoMonitorClass)) - -typedef struct _PhotoMonitor PhotoMonitor; -typedef struct _PhotoMonitorClass PhotoMonitorClass; - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; - -#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ()) -#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex)) -#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) -#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX)) -#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX)) -#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) - -typedef struct _HierarchicalTagIndex HierarchicalTagIndex; -typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass; -#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL))) - -#define TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER (media_source_transaction_controller_get_type ()) -#define MEDIA_SOURCE_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionController)) -#define MEDIA_SOURCE_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionControllerClass)) -#define IS_MEDIA_SOURCE_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER)) -#define IS_MEDIA_SOURCE_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER)) -#define MEDIA_SOURCE_TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionControllerClass)) - -typedef struct _MediaSourceTransactionController MediaSourceTransactionController; -typedef struct _MediaSourceTransactionControllerClass MediaSourceTransactionControllerClass; -enum { - LIBRARY_PHOTO_SOURCE_COLLECTION_MASTER_REIMPORTED_SIGNAL, - LIBRARY_PHOTO_SOURCE_COLLECTION_EDITABLE_REIMPORTED_SIGNAL, - LIBRARY_PHOTO_SOURCE_COLLECTION_BASELINE_REIMPORTED_SIGNAL, - LIBRARY_PHOTO_SOURCE_COLLECTION_SOURCE_REIMPORTED_SIGNAL, - LIBRARY_PHOTO_SOURCE_COLLECTION_NUM_SIGNALS -}; -static guint library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_NUM_SIGNALS] = {0}; - -#define TYPE_FLAGGABLE (flaggable_get_type ()) -#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable)) -#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE)) -#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface)) - -typedef struct _Flaggable Flaggable; -typedef struct _FlaggableIface FlaggableIface; - -#define TYPE_MONITORABLE (monitorable_get_type ()) -#define MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE, Monitorable)) -#define IS_MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE)) -#define MONITORABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MONITORABLE, MonitorableIface)) - -typedef struct _Monitorable Monitorable; -typedef struct _MonitorableIface MonitorableIface; -typedef struct _LibraryPhotoPrivate LibraryPhotoPrivate; -enum { - LIBRARY_PHOTO_0_PROPERTY, - LIBRARY_PHOTO_NUM_PROPERTIES -}; -static GParamSpec* library_photo_properties[LIBRARY_PHOTO_NUM_PROPERTIES]; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define THUMBNAIL_CACHE_TYPE_SIZE (thumbnail_cache_size_get_type ()) - -#define TYPE_EVENT_SOURCE (event_source_get_type ()) -#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource)) -#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass)) -#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE)) -#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE)) -#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass)) - -typedef struct _EventSource EventSource; -typedef struct _EventSourceClass EventSourceClass; - -#define TYPE_EVENT (event_get_type ()) -#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event)) -#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass)) -#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT)) -#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT)) -#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass)) - -typedef struct _Event Event; -typedef struct _EventClass EventClass; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ()) -#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection)) -#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) -#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION)) -#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION)) -#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) - -typedef struct _TagSourceCollection TagSourceCollection; -typedef struct _TagSourceCollectionClass TagSourceCollectionClass; -typedef struct _SourceHoldingTankPrivate SourceHoldingTankPrivate; -typedef struct _DatabaseSourceHoldingTankPrivate DatabaseSourceHoldingTankPrivate; -typedef struct _MediaSourceHoldingTankPrivate MediaSourceHoldingTankPrivate; -typedef struct _LibraryPhotoSourceHoldingTankPrivate LibraryPhotoSourceHoldingTankPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef enum { - BACKING_FETCH_MODE_SOURCE, - BACKING_FETCH_MODE_BASELINE, - BACKING_FETCH_MODE_MASTER, - BACKING_FETCH_MODE_UNMODIFIED -} BackingFetchMode; - -struct _ImportID { - gint64 id; -}; - -typedef enum { - PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000, - PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001 -} PhotoFileSnifferOptions; - -struct _PhotoImportParams { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoImportParamsPrivate * priv; - GFile* file; - GFile* final_associated_file; - ImportID import_id; - PhotoFileSnifferOptions sniffer_options; - gchar* exif_md5; - gchar* thumbnail_md5; - gchar* full_md5; - Thumbnails* thumbnails; - PhotoRow* row; - GeeCollection* keywords; -}; - -struct _PhotoImportParamsClass { - GTypeClass parent_class; - void (*finalize) (PhotoImportParams *self); -}; - -struct _ParamSpecPhotoImportParams { - GParamSpec parent_instance; -}; - -struct _PhotoTransformationState { - GObject parent_instance; - PhotoTransformationStatePrivate * priv; -}; - -struct _PhotoTransformationStateClass { - GObjectClass parent_class; - void (*broken) (PhotoTransformationState* self); -}; - -struct _PhotoTransformationStatePrivate { - gboolean is_broke; -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataSource { - DataObject parent_instance; - DataSourcePrivate * priv; -}; - -struct _DataSourceClass { - DataObjectClass parent_class; - void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank); - void (*notify_unlinking) (DataSource* self, SourceCollection* collection); - void (*notify_unlinked) (DataSource* self); - void (*notify_relinking) (DataSource* self, SourceCollection* collection); - void (*notify_relinked) (DataSource* self); - gchar* (*get_typename) (DataSource* self); - gint64 (*get_instance_id) (DataSource* self); - gchar* (*get_source_id) (DataSource* self); - void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated); - SourceSnapshot* (*save_snapshot) (DataSource* self); - gboolean (*internal_delete_backing) (DataSource* self, GError** error); - gboolean (*equals) (DataSource* self, DataSource* source); - void (*destroy) (DataSource* self); - void (*unlinked) (DataSource* self, SourceCollection* sources); - void (*relinked) (DataSource* self, SourceCollection* sources); - void (*destroyed) (DataSource* self); -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _ThumbnailSource { - DataSource parent_instance; - ThumbnailSourcePrivate * priv; -}; - -struct _ThumbnailSourceClass { - DataSourceClass parent_class; - void (*notify_thumbnail_altered) (ThumbnailSource* self); - GdkPixbuf* (*get_thumbnail) (ThumbnailSource* self, gint scale, GError** error); - GdkPixbuf* (*create_thumbnail) (ThumbnailSource* self, gint scale, GError** error); - gchar* (*get_representative_id) (ThumbnailSource* self); - PhotoFileFormat (*get_preferred_thumbnail_format) (ThumbnailSource* self); - void (*thumbnail_altered) (ThumbnailSource* self); -}; - -struct _IndexableIface { - GTypeInterface parent_iface; - const gchar* (*get_indexable_keywords) (Indexable* self); -}; - -struct _EventID { - gint64 id; -}; - -typedef enum { - PHOTO_EXCEPTION_NONE = 0, - PHOTO_EXCEPTION_ORIENTATION = 1 << 0, - PHOTO_EXCEPTION_CROP = 1 << 1, - PHOTO_EXCEPTION_REDEYE = 1 << 2, - PHOTO_EXCEPTION_ADJUST = 1 << 3, - PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4, - PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL -} PhotoException; - -struct _Dimensions { - gint width; - gint height; -}; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -struct _MediaSource { - ThumbnailSource parent_instance; - MediaSourcePrivate * priv; -}; - -struct _MediaSourceClass { - ThumbnailSourceClass parent_class; - void (*notify_master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file); - gboolean (*set_event_id) (MediaSource* self, EventID* id); - gchar* (*get_basename) (MediaSource* self); - GFile* (*get_file) (MediaSource* self); - GFile* (*get_master_file) (MediaSource* self); - guint64 (*get_master_filesize) (MediaSource* self); - guint64 (*get_filesize) (MediaSource* self); - time_t (*get_timestamp) (MediaSource* self); - BackingFileState** (*get_backing_files_state) (MediaSource* self, int* result_length1); - gchar* (*get_title) (MediaSource* self); - gchar* (*get_comment) (MediaSource* self); - void (*set_title) (MediaSource* self, const gchar* title); - gboolean (*set_comment) (MediaSource* self, const gchar* comment); - Rating (*get_rating) (MediaSource* self); - void (*set_rating) (MediaSource* self, Rating rating); - void (*increase_rating) (MediaSource* self); - void (*decrease_rating) (MediaSource* self); - void (*get_dimensions) (MediaSource* self, PhotoException disallowed_steps, Dimensions* result); - GdkPixbuf* (*get_preview_pixbuf) (MediaSource* self, Scaling* scaling, GError** error); - gboolean (*is_trashed) (MediaSource* self); - void (*trash) (MediaSource* self); - void (*untrash) (MediaSource* self); - gboolean (*is_offline) (MediaSource* self); - void (*mark_offline) (MediaSource* self); - void (*mark_online) (MediaSource* self); - gchar* (*get_master_md5) (MediaSource* self); - void (*get_event_id) (MediaSource* self, EventID* result); - time_t (*get_exposure_time) (MediaSource* self); - void (*get_import_id) (MediaSource* self, ImportID* result); - void (*master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file); -}; - -struct _PhotoSource { - MediaSource parent_instance; - PhotoSourcePrivate * priv; -}; - -struct _PhotoSourceClass { - MediaSourceClass parent_class; - PhotoMetadata* (*get_metadata) (PhotoSource* self); - GdkPixbuf* (*get_pixbuf) (PhotoSource* self, Scaling* scaling, GError** error); -}; - -struct _DateableIface { - GTypeInterface parent_iface; - void (*set_exposure_time) (Dateable* self, time_t target_time); - time_t (*get_exposure_time) (Dateable* self); -}; - -typedef enum { - ROTATION_CLOCKWISE, - ROTATION_COUNTERCLOCKWISE, - ROTATION_MIRROR, - ROTATION_UPSIDE_DOWN -} Rotation; - -struct _Photo { - PhotoSource parent_instance; - PhotoPrivate * priv; - PhotoRow* row; - gboolean can_rotate_now; - BackingPhotoRow* backing_photo_row; -}; - -struct _PhotoClass { - PhotoSourceClass parent_class; - void (*notify_editable_replaced) (Photo* self, GFile* old_file, GFile* new_file); - void (*notify_raw_development_modified) (Photo* self); - void (*notify_baseline_replaced) (Photo* self); - void (*notify_master_reimported) (Photo* self, PhotoMetadata* metadata); - void (*notify_editable_reimported) (Photo* self, PhotoMetadata* metadata); - void (*notify_source_reimported) (Photo* self, PhotoMetadata* metadata); - void (*notify_baseline_reimported) (Photo* self, PhotoMetadata* metadata); - void (*apply_user_metadata_for_reimport) (Photo* self, PhotoMetadata* metadata); - void (*rotate) (Photo* self, Rotation rotation); - gboolean (*has_user_generated_metadata) (Photo* self); - void (*set_user_metadata_for_export) (Photo* self, PhotoMetadata* metadata); - void (*editable_replaced) (Photo* self, GFile* old_file, GFile* new_file); - void (*raw_development_modified) (Photo* self); - void (*baseline_replaced) (Photo* self); - void (*master_reimported) (Photo* self, PhotoMetadata* metadata); - void (*editable_reimported) (Photo* self, PhotoMetadata* metadata); - void (*baseline_reimported) (Photo* self, PhotoMetadata* metadata); - void (*source_reimported) (Photo* self, PhotoMetadata* metadata); -}; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _PhotoPrivate { - time_t cached_exposure_time; - GRecMutex __lock_row; - BackingPhotoRow* editable; - PhotoBackingReaders* readers; - GRecMutex __lock_readers; - PixelTransformer* transformer; - PixelTransformationBundle* adjustments; - gchar* file_title; - GFileMonitor* editable_monitor; - OneShotScheduler* reimport_editable_scheduler; - OneShotScheduler* update_editable_attributes_scheduler; - OneShotScheduler* remove_editable_scheduler; - GeeHashMap* developments; - GRecMutex __lock_developments; -}; - -struct _PhotoID { - gint64 id; -}; - -typedef enum { - ORIENTATION_MIN = 1, - ORIENTATION_TOP_LEFT = 1, - ORIENTATION_TOP_RIGHT = 2, - ORIENTATION_BOTTOM_RIGHT = 3, - ORIENTATION_BOTTOM_LEFT = 4, - ORIENTATION_LEFT_TOP = 5, - ORIENTATION_RIGHT_TOP = 6, - ORIENTATION_RIGHT_BOTTOM = 7, - ORIENTATION_LEFT_BOTTOM = 8, - ORIENTATION_MAX = 8 -} Orientation; - -struct _BackingPhotoID { - gint64 id; -}; - -struct _PhotoRow { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoRowPrivate * priv; - PhotoID photo_id; - BackingPhotoRow* master; - time_t exposure_time; - ImportID import_id; - EventID event_id; - Orientation orientation; - GeeHashMap* transformations; - gchar* md5; - gchar* thumbnail_md5; - gchar* exif_md5; - time_t time_created; - guint64 flags; - Rating rating; - gchar* title; - gchar* comment; - gchar* backlinks; - time_t time_reimported; - BackingPhotoID editable_id; - gboolean metadata_dirty; - RawDeveloper developer; - BackingPhotoID* development_ids; - gint development_ids_length1; -}; - -struct _PhotoRowClass { - GTypeClass parent_class; - void (*finalize) (PhotoRow *self); -}; - -struct _BackingPhotoRow { - GTypeInstance parent_instance; - volatile int ref_count; - BackingPhotoRowPrivate * priv; - BackingPhotoID id; - time_t time_created; - gchar* filepath; - gint64 filesize; - time_t timestamp; - PhotoFileFormat file_format; - Dimensions dim; - Orientation original_orientation; -}; - -struct _BackingPhotoRowClass { - GTypeClass parent_class; - void (*finalize) (BackingPhotoRow *self); -}; - -struct _PhotoBackingReaders { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoBackingReadersPrivate * priv; - PhotoFileReader* master; - PhotoFileReader* developer; - PhotoFileReader* editable; -}; - -struct _PhotoBackingReadersClass { - GTypeClass parent_class; - void (*finalize) (PhotoBackingReaders *self); -}; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -struct _DetectedPhotoInformation { - GTypeInstance parent_instance; - volatile int ref_count; - DetectedPhotoInformationPrivate * priv; - PhotoFileFormat file_format; - PhotoMetadata* metadata; - gchar* md5; - gchar* exif_md5; - gchar* thumbnail_md5; - gchar* format_name; - Dimensions image_dim; - GdkColorspace colorspace; - gint channels; - gint bits_per_channel; -}; - -struct _DetectedPhotoInformationClass { - GTypeClass parent_class; - void (*finalize) (DetectedPhotoInformation *self); -}; - -typedef enum { - PHOTO_FORMAT_ERROR_READ_ONLY -} PhotoFormatError; -#define PHOTO_FORMAT_ERROR photo_format_error_quark () -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -typedef enum { - EXPORT_FORMAT_MODE_UNMODIFIED, - EXPORT_FORMAT_MODE_CURRENT, - EXPORT_FORMAT_MODE_SPECIFIED, - EXPORT_FORMAT_MODE_LAST -} ExportFormatMode; - -struct _ExportFormatParameters { - ExportFormatMode mode; - PhotoFileFormat specified_format; - JpegQuality quality; - gboolean export_metadata; -}; - -typedef enum { - IMPORT_RESULT_SUCCESS, - IMPORT_RESULT_FILE_ERROR, - IMPORT_RESULT_DECODE_ERROR, - IMPORT_RESULT_DATABASE_ERROR, - IMPORT_RESULT_USER_ABORT, - IMPORT_RESULT_NOT_A_FILE, - IMPORT_RESULT_PHOTO_EXISTS, - IMPORT_RESULT_UNSUPPORTED_FORMAT, - IMPORT_RESULT_NOT_AN_IMAGE, - IMPORT_RESULT_DISK_FAILURE, - IMPORT_RESULT_DISK_FULL, - IMPORT_RESULT_CAMERA_ERROR, - IMPORT_RESULT_FILE_WRITE_ERROR, - IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE -} ImportResult; - -typedef enum { - PHOTO_FILE_READER_ROLE_DEFAULT, - PHOTO_FILE_READER_ROLE_THUMBNAIL -} PhotoFileReaderRole; - -struct _PhotoReimportMasterState { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoReimportMasterStatePrivate * priv; -}; - -struct _PhotoReimportMasterStateClass { - GTypeClass parent_class; - void (*finalize) (PhotoReimportMasterState *self); -}; - -struct _PhotoReimportMasterStateImpl { - PhotoReimportMasterState parent_instance; - PhotoReimportMasterStateImplPrivate * priv; - PhotoRow* row; - PhotoMetadata* metadata; - gchar** alterations; - gint alterations_length1; - gint _alterations_size_; - gboolean metadata_only; -}; - -struct _PhotoReimportMasterStateImplClass { - PhotoReimportMasterStateClass parent_class; -}; - -struct _PhotoReimportEditableState { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoReimportEditableStatePrivate * priv; -}; - -struct _PhotoReimportEditableStateClass { - GTypeClass parent_class; - void (*finalize) (PhotoReimportEditableState *self); -}; - -struct _PhotoReimportEditableStateImpl { - PhotoReimportEditableState parent_instance; - PhotoReimportEditableStateImplPrivate * priv; - BackingPhotoRow* backing_state; - PhotoMetadata* metadata; - gboolean metadata_only; -}; - -struct _PhotoReimportEditableStateImplClass { - PhotoReimportEditableStateClass parent_class; -}; - -struct _PhotoReimportRawDevelopmentState { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoReimportRawDevelopmentStatePrivate * priv; -}; - -struct _PhotoReimportRawDevelopmentStateClass { - GTypeClass parent_class; - void (*finalize) (PhotoReimportRawDevelopmentState *self); -}; - -struct _PhotoReimportRawDevelopmentStateImpl { - PhotoReimportRawDevelopmentState parent_instance; - PhotoReimportRawDevelopmentStateImplPrivate * priv; - GeeCollection* list; - gboolean metadata_only; -}; - -struct _PhotoReimportRawDevelopmentStateImplClass { - PhotoReimportRawDevelopmentStateClass parent_class; -}; - -struct _PhotoReimportRawDevelopmentStateImplDevToReimport { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoReimportRawDevelopmentStateImplDevToReimportPrivate * priv; - BackingPhotoRow* backing; - PhotoMetadata* metadata; -}; - -struct _PhotoReimportRawDevelopmentStateImplDevToReimportClass { - GTypeClass parent_class; - void (*finalize) (PhotoReimportRawDevelopmentStateImplDevToReimport *self); -}; - -typedef enum { - PHOTO_METADATA_SET_OPTION_ALL_DOMAINS, - PHOTO_METADATA_SET_OPTION_ONLY_IF_DOMAIN_PRESENT, - PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN -} PhotoMetadataSetOption; - -struct _Box { - gint left; - gint top; - gint right; - gint bottom; -}; - -struct _EditingToolsRedeyeInstance { - GdkPoint center; - gint radius; -}; - -struct _PhotoCachedPixbuf { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoCachedPixbufPrivate * priv; - Photo* photo; - GdkPixbuf* pixbuf; - GTimer* last_touched; -}; - -struct _PhotoCachedPixbufClass { - GTypeClass parent_class; - void (*finalize) (PhotoCachedPixbuf *self); -}; - -typedef void (*OneShotCallback) (void* user_data); -struct _PhotoPhotoTransformationStateImpl { - PhotoTransformationState parent_instance; - PhotoPhotoTransformationStateImplPrivate * priv; -}; - -struct _PhotoPhotoTransformationStateImplClass { - PhotoTransformationStateClass parent_class; -}; - -struct _PhotoPhotoTransformationStateImplPrivate { - Photo* photo; - Orientation orientation; - GeeHashMap* transformations; - PixelTransformer* transformer; - PixelTransformationBundle* adjustments; -}; - -struct _PhotoParamSpecBackingReaders { - GParamSpec parent_instance; -}; - -struct _PhotoParamSpecCachedPixbuf { - GParamSpec parent_instance; -}; - -struct _PhotoParamSpecReimportMasterState { - GParamSpec parent_instance; -}; - -struct _PhotoParamSpecReimportEditableState { - GParamSpec parent_instance; -}; - -struct _PhotoParamSpecReimportRawDevelopmentState { - GParamSpec parent_instance; -}; - -struct _PhotoReimportRawDevelopmentStateImplParamSpecDevToReimport { - GParamSpec parent_instance; -}; - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -struct _DataCollection { - GTypeInstance parent_instance; - volatile int ref_count; - DataCollectionPrivate * priv; -}; - -struct _DataCollectionClass { - GTypeClass parent_class; - void (*finalize) (DataCollection *self); - gchar* (*to_string) (DataCollection* self); - void (*notify_items_added) (DataCollection* self, GeeIterable* added); - void (*notify_items_removed) (DataCollection* self, GeeIterable* removed); - void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*notify_items_altered) (DataCollection* self, GeeMap* items); - void (*notify_ordering_changed) (DataCollection* self); - void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*notify_property_cleared) (DataCollection* self, const gchar* name); - gboolean (*valid_type) (DataCollection* self, DataObject* object); - void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target); - void (*reset_comparator) (DataCollection* self); - GeeCollection* (*get_all) (DataCollection* self); - gint (*get_count) (DataCollection* self); - DataObject* (*get_at) (DataCollection* self, gint index); - gint (*index_of) (DataCollection* self, DataObject* object); - gboolean (*contains) (DataCollection* self, DataObject* object); - gboolean (*add) (DataCollection* self, DataObject* object); - GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target); - void (*remove_marked) (DataCollection* self, Marker* m); - void (*clear) (DataCollection* self); - void (*close) (DataCollection* self); - void (*notify_frozen) (DataCollection* self); - void (*notify_thawed) (DataCollection* self); - void (*items_added) (DataCollection* self, GeeIterable* added); - void (*items_removed) (DataCollection* self, GeeIterable* removed); - void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*items_altered) (DataCollection* self, GeeMap* items); - void (*ordering_changed) (DataCollection* self); - void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*property_cleared) (DataCollection* self, const gchar* name); - void (*frozen) (DataCollection* self); - void (*thawed) (DataCollection* self); -}; - -struct _SourceCollection { - DataCollection parent_instance; - SourceCollectionPrivate * priv; -}; - -struct _SourceCollectionClass { - DataCollectionClass parent_class; - gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source); - void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*notify_item_destroyed) (SourceCollection* self, DataSource* source); - void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked); - void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); - gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*item_destroyed) (SourceCollection* self, DataSource* source); - void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*unlinked_destroyed) (SourceCollection* self, DataSource* source); - void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); -}; - -struct _DatabaseSourceCollection { - SourceCollection parent_instance; - DatabaseSourceCollectionPrivate * priv; -}; - -struct _DatabaseSourceCollectionClass { - SourceCollectionClass parent_class; -}; - -struct _MediaSourceCollection { - DatabaseSourceCollection parent_instance; - MediaSourceCollectionPrivate * priv; -}; - -struct _MediaSourceCollectionClass { - DatabaseSourceCollectionClass parent_class; - MediaSourceHoldingTank* (*create_trashcan) (MediaSourceCollection* self); - MediaSourceHoldingTank* (*create_offline_bin) (MediaSourceCollection* self); - MediaMonitor* (*create_media_monitor) (MediaSourceCollection* self, Workers* workers, GCancellable* cancellable); - gchar* (*get_typename) (MediaSourceCollection* self); - gboolean (*is_file_recognized) (MediaSourceCollection* self, GFile* file); - MediaSource* (*fetch_by_numeric_id) (MediaSourceCollection* self, gint64 numeric_id); - void (*notify_import_roll_altered) (MediaSourceCollection* self); - void (*notify_flagged_contents_altered) (MediaSourceCollection* self); - void (*notify_media_import_starting) (MediaSourceCollection* self, GeeCollection* media); - void (*notify_media_import_completed) (MediaSourceCollection* self, GeeCollection* media); - MediaSource* (*fetch_by_source_id) (MediaSourceCollection* self, const gchar* source_id); - GeeCollection* (*get_event_source_ids) (MediaSourceCollection* self, EventID* event_id); - void (*import_many) (MediaSourceCollection* self, GeeCollection* media); - void (*postprocess_imported_media) (MediaSourceCollection* self, GeeCollection* media); - void (*media_import_starting) (MediaSourceCollection* self, GeeCollection* media); - void (*media_import_completed) (MediaSourceCollection* self, GeeCollection* media); - void (*master_file_replaced) (MediaSourceCollection* self, MediaSource* media, GFile* old_file, GFile* new_file); - void (*trashcan_contents_altered) (MediaSourceCollection* self, GeeCollection* added, GeeCollection* removed); - void (*import_roll_altered) (MediaSourceCollection* self); - void (*offline_contents_altered) (MediaSourceCollection* self, GeeCollection* added, GeeCollection* removed); - void (*flagged_contents_altered) (MediaSourceCollection* self); - TransactionController* (*get_transaction_controller) (MediaSourceCollection* self); -}; - -struct _LibraryPhotoSourceCollection { - MediaSourceCollection parent_instance; - LibraryPhotoSourceCollectionPrivate * priv; -}; - -struct _LibraryPhotoSourceCollectionClass { - MediaSourceCollectionClass parent_class; - void (*notify_master_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata); - void (*notify_editable_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata); - void (*notify_source_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata); - void (*notify_baseline_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata); - void (*master_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata); - void (*editable_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata); - void (*baseline_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata); - void (*source_reimported) (LibraryPhotoSourceCollection* self, LibraryPhoto* photo, PhotoMetadata* metadata); -}; - -struct _LibraryPhotoSourceCollectionPrivate { - TransactionController* _transaction_controller; - GeeHashMap* by_editable_file; - GeeHashMap* by_raw_development_file; - GeeMultiMap* filesize_to_photo; - GeeHashMap* photo_to_master_filesize; - GeeHashMap* photo_to_editable_filesize; - GeeMultiMap* photo_to_raw_development_filesize; -}; - -typedef enum { - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_UNKNOWN, - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE, - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE, - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH, - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE, - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER -} LibraryPhotoSourceCollectionState; - -typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data); -typedef gboolean (*SourceHoldingTankCheckToKeep) (DataSource* source, Alteration* alteration, void* user_data); -struct _FlaggableIface { - GTypeInterface parent_iface; - gboolean (*is_flagged) (Flaggable* self); - void (*mark_flagged) (Flaggable* self); - void (*mark_unflagged) (Flaggable* self); -}; - -struct _MonitorableIface { - GTypeInterface parent_iface; - gboolean (*is_offline) (Monitorable* self); - void (*mark_online) (Monitorable* self); - void (*mark_offline) (Monitorable* self); - void (*set_master_file) (Monitorable* self, GFile* file); - void (*set_master_timestamp) (Monitorable* self, GFileInfo* info); -}; - -struct _LibraryPhoto { - Photo parent_instance; - LibraryPhotoPrivate * priv; -}; - -struct _LibraryPhotoClass { - PhotoClass parent_class; -}; - -struct _LibraryPhotoPrivate { - gboolean block_thumbnail_generation; - OneShotScheduler* thumbnail_scheduler; - GeeCollection* import_keywords; -}; - -typedef enum { - THUMBNAIL_CACHE_SIZE_LARGEST = 360, - THUMBNAIL_CACHE_SIZE_BIG = 360, - THUMBNAIL_CACHE_SIZE_MEDIUM = 128, - THUMBNAIL_CACHE_SIZE_SMALLEST = 128 -} ThumbnailCacheSize; - -struct _SourceHoldingTank { - GTypeInstance parent_instance; - volatile int ref_count; - SourceHoldingTankPrivate * priv; -}; - -struct _SourceHoldingTankClass { - GTypeClass parent_class; - void (*finalize) (SourceHoldingTank *self); - void (*notify_contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed); - void (*contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed); -}; - -struct _DatabaseSourceHoldingTank { - SourceHoldingTank parent_instance; - DatabaseSourceHoldingTankPrivate * priv; -}; - -struct _DatabaseSourceHoldingTankClass { - SourceHoldingTankClass parent_class; -}; - -struct _MediaSourceHoldingTank { - DatabaseSourceHoldingTank parent_instance; - MediaSourceHoldingTankPrivate * priv; -}; - -struct _MediaSourceHoldingTankClass { - DatabaseSourceHoldingTankClass parent_class; -}; - -struct _LibraryPhotoSourceHoldingTank { - MediaSourceHoldingTank parent_instance; - LibraryPhotoSourceHoldingTankPrivate * priv; -}; - -struct _LibraryPhotoSourceHoldingTankClass { - MediaSourceHoldingTankClass parent_class; -}; - -struct _LibraryPhotoSourceHoldingTankPrivate { - GeeHashMap* editable_file_map; - GeeHashMap* development_file_map; - GeeMultiMap* reverse_editable_file_map; - GeeMultiMap* reverse_development_file_map; -}; - - -static gpointer photo_import_params_parent_class = NULL; -static gpointer photo_transformation_state_parent_class = NULL; -static gpointer photo_parent_class = NULL; -static GeeLinkedList* photo_source_pixbuf_cache; -static GRecMutex __lock_photo_source_pixbuf_cache = {0}; -static GeeLinkedList* photo_source_pixbuf_cache = NULL; -static guint photo_discard_source_id; -static guint photo_discard_source_id = (guint) 0; -static gboolean photo__develop_raw_photos_to_files; -static gboolean photo__develop_raw_photos_to_files = FALSE; -static gpointer photo_photo_transformation_state_impl_parent_class = NULL; -static gpointer photo_backing_readers_parent_class = NULL; -static gpointer photo_cached_pixbuf_parent_class = NULL; -static gpointer photo_reimport_master_state_parent_class = NULL; -static gpointer photo_reimport_master_state_impl_parent_class = NULL; -static gpointer photo_reimport_editable_state_parent_class = NULL; -static gpointer photo_reimport_editable_state_impl_parent_class = NULL; -static gpointer photo_reimport_raw_development_state_parent_class = NULL; -static gpointer photo_reimport_raw_development_state_impl_parent_class = NULL; -static gpointer photo_reimport_raw_development_state_impl_dev_to_reimport_parent_class = NULL; -static DateableIface * photo_dateable_parent_iface = NULL; -static gpointer library_photo_source_collection_parent_class = NULL; -static gpointer library_photo_parent_class = NULL; -extern LibraryPhotoSourceCollection* library_photo_global; -LibraryPhotoSourceCollection* library_photo_global = NULL; -extern TagSourceCollection* tag_global; -static FlaggableIface * library_photo_flaggable_parent_iface = NULL; -static MonitorableIface * library_photo_monitorable_parent_iface = NULL; -static gpointer library_photo_source_holding_tank_parent_class = NULL; - -GType backing_fetch_mode_get_type (void) G_GNUC_CONST; -gpointer photo_import_params_ref (gpointer instance); -void photo_import_params_unref (gpointer instance); -GParamSpec* param_spec_photo_import_params (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_import_params (GValue* value, - gpointer v_object); -void value_take_photo_import_params (GValue* value, - gpointer v_object); -gpointer value_get_photo_import_params (const GValue* value); -GType photo_import_params_get_type (void) G_GNUC_CONST; -GType import_id_get_type (void) G_GNUC_CONST; -ImportID* import_id_dup (const ImportID* self); -void import_id_free (ImportID* self); -GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST; -gpointer thumbnails_ref (gpointer instance); -void thumbnails_unref (gpointer instance); -GParamSpec* param_spec_thumbnails (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_thumbnails (GValue* value, - gpointer v_object); -void value_take_thumbnails (GValue* value, - gpointer v_object); -gpointer value_get_thumbnails (const GValue* value); -GType thumbnails_get_type (void) G_GNUC_CONST; -gpointer photo_row_ref (gpointer instance); -void photo_row_unref (gpointer instance); -GParamSpec* param_spec_photo_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_row (GValue* value, - gpointer v_object); -void value_take_photo_row (GValue* value, - gpointer v_object); -gpointer value_get_photo_row (const GValue* value); -GType photo_row_get_type (void) G_GNUC_CONST; -PhotoRow* photo_row_new (void); -PhotoRow* photo_row_construct (GType object_type); -PhotoImportParams* photo_import_params_new (GFile* file, - GFile* final_associated_file, - ImportID* import_id, - PhotoFileSnifferOptions sniffer_options, - const gchar* exif_md5, - const gchar* thumbnail_md5, - const gchar* full_md5, - Thumbnails* thumbnails); -PhotoImportParams* photo_import_params_construct (GType object_type, - GFile* file, - GFile* final_associated_file, - ImportID* import_id, - PhotoFileSnifferOptions sniffer_options, - const gchar* exif_md5, - const gchar* thumbnail_md5, - const gchar* full_md5, - Thumbnails* thumbnails); -PhotoImportParams* photo_import_params_new_create_placeholder (GFile* file, - ImportID* import_id); -PhotoImportParams* photo_import_params_construct_create_placeholder (GType object_type, - GFile* file, - ImportID* import_id); -static void photo_import_params_finalize (PhotoImportParams * obj); -GType photo_transformation_state_get_type (void) G_GNUC_CONST; -#define PHOTO_TRANSFORMATION_STATE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationStatePrivate)) -PhotoTransformationState* photo_transformation_state_construct (GType object_type); -gboolean photo_transformation_state_is_broken (PhotoTransformationState* self); -static void photo_transformation_state_real_broken (PhotoTransformationState* self); -static void photo_transformation_state_finalize (GObject * obj); -GType rating_get_type (void) G_GNUC_CONST; -gboolean rating_can_increase (Rating self); -gboolean rating_can_decrease (Rating self); -gboolean rating_is_valid (Rating self); -Rating rating_increase (Rating self); -Rating rating_decrease (Rating self); -gint rating_serialize (Rating self); -Rating rating_unserialize (gint value); -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -gpointer source_holding_tank_ref (gpointer instance); -void source_holding_tank_unref (gpointer instance); -GParamSpec* param_spec_source_holding_tank (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_holding_tank (GValue* value, - gpointer v_object); -void value_take_source_holding_tank (GValue* value, - gpointer v_object); -gpointer value_get_source_holding_tank (const GValue* value); -GType source_holding_tank_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -gpointer source_snapshot_ref (gpointer instance); -void source_snapshot_unref (gpointer instance); -GParamSpec* param_spec_source_snapshot (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_snapshot (GValue* value, - gpointer v_object); -void value_take_source_snapshot (GValue* value, - gpointer v_object); -gpointer value_get_source_snapshot (const GValue* value); -GType source_snapshot_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType indexable_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType event_id_get_type (void) G_GNUC_CONST; -EventID* event_id_dup (const EventID* self); -void event_id_free (EventID* self); -gpointer backing_file_state_ref (gpointer instance); -void backing_file_state_unref (gpointer instance); -GParamSpec* param_spec_backing_file_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_backing_file_state (GValue* value, - gpointer v_object); -void value_take_backing_file_state (GValue* value, - gpointer v_object); -gpointer value_get_backing_file_state (const GValue* value); -GType backing_file_state_get_type (void) G_GNUC_CONST; -GType photo_exception_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -GType photo_source_get_type (void) G_GNUC_CONST; -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -GType dateable_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType rotation_get_type (void) G_GNUC_CONST; -gpointer backing_photo_row_ref (gpointer instance); -void backing_photo_row_unref (gpointer instance); -GParamSpec* param_spec_backing_photo_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_backing_photo_row (GValue* value, - gpointer v_object); -void value_take_backing_photo_row (GValue* value, - gpointer v_object); -gpointer value_get_backing_photo_row (const GValue* value); -GType backing_photo_row_get_type (void) G_GNUC_CONST; -static gpointer photo_backing_readers_ref (gpointer instance); -static void photo_backing_readers_unref (gpointer instance); -static GParamSpec* photo_param_spec_backing_readers (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void photo_value_set_backing_readers (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void photo_value_take_backing_readers (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer photo_value_get_backing_readers (const GValue* value) G_GNUC_UNUSED; -static GType photo_backing_readers_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -gpointer one_shot_scheduler_ref (gpointer instance); -void one_shot_scheduler_unref (gpointer instance); -GParamSpec* param_spec_one_shot_scheduler (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_one_shot_scheduler (GValue* value, - gpointer v_object); -void value_take_one_shot_scheduler (GValue* value, - gpointer v_object); -gpointer value_get_one_shot_scheduler (const GValue* value); -GType one_shot_scheduler_get_type (void) G_GNUC_CONST; -GType raw_developer_get_type (void) G_GNUC_CONST; -#define PHOTO_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO, PhotoPrivate)) -gboolean photo_exception_prohibits (PhotoException self, - PhotoException exception); -gboolean photo_exception_allows (PhotoException self, - PhotoException exception); -static gpointer photo_cached_pixbuf_ref (gpointer instance); -static void photo_cached_pixbuf_unref (gpointer instance); -static GParamSpec* photo_param_spec_cached_pixbuf (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void photo_value_set_cached_pixbuf (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void photo_value_take_cached_pixbuf (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer photo_value_get_cached_pixbuf (const GValue* value) G_GNUC_UNUSED; -static GType photo_cached_pixbuf_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -BackingPhotoRow* backing_photo_row_new (void); -BackingPhotoRow* backing_photo_row_construct (GType object_type); -static PhotoBackingReaders* photo_backing_readers_new (void); -static PhotoBackingReaders* photo_backing_readers_construct (GType object_type); -#define PHOTO_TYPENAME "thumb" -#define PHOTO_SCALING_FUDGE 64 -#define PHOTO_SOURCE_PIXBUF_TIME_TO_LIVE_SEC 10 -#define PHOTO_SOURCE_PIXBUF_MIN_LRU_COUNT 1 -#define PHOTO_SOURCE_PIXBUF_MAX_LRU_COUNT 3 -#define PHOTO_MIN_EMBEDDED_SIZE 1024 -Photo* photo_construct (GType object_type, - PhotoRow* row); -#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1) -PhotoSource* photo_source_construct (GType object_type, - gint64 object_id); -gchar* media_source_prep_title (const gchar* title); -GType photo_id_get_type (void) G_GNUC_CONST; -PhotoID* photo_id_dup (const PhotoID* self); -void photo_id_free (PhotoID* self); -GType orientation_get_type (void) G_GNUC_CONST; -GType backing_photo_id_get_type (void) G_GNUC_CONST; -BackingPhotoID* backing_photo_id_dup (const BackingPhotoID* self); -void backing_photo_id_free (BackingPhotoID* self); -gchar* media_source_prep_comment (const gchar* comment); -gpointer photo_file_adapter_ref (gpointer instance); -void photo_file_adapter_unref (gpointer instance); -GParamSpec* param_spec_photo_file_adapter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_adapter (GValue* value, - gpointer v_object); -void value_take_photo_file_adapter (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_adapter (const GValue* value); -GType photo_file_adapter_get_type (void) G_GNUC_CONST; -GType photo_file_reader_get_type (void) G_GNUC_CONST; -PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self, - const gchar* filepath); -gchar* string_sliced_at_last_char (const gchar* haystack, - gunichar ch, - gint start_index); -gchar* string_sliced_at (const gchar* str, - gint index); -gboolean is_string_empty (const gchar* s); -#define BACKING_PHOTO_ID_INVALID ((gint64) -1) -static BackingPhotoRow* photo_get_backing_row (Photo* self, - BackingPhotoID* id); -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType photo_table_get_type (void) G_GNUC_CONST; -PhotoTable* photo_table_get_instance (void); -GQuark database_error_quark (void); -void photo_table_detach_editable (PhotoTable* self, - PhotoRow* row, - GError** error); -static void photo_internal_remove_all_transformations (Photo* self, - gboolean notify); -RawDeveloper* raw_developer_as_array (int* result_length1); -void photo_init_photo (void); -void photo_terminate_photo (void); -void photo_notify_editable_replaced (Photo* self, - GFile* old_file, - GFile* new_file); -static void photo_real_notify_editable_replaced (Photo* self, - GFile* old_file, - GFile* new_file); -void photo_notify_raw_development_modified (Photo* self); -static void photo_real_notify_raw_development_modified (Photo* self); -void photo_notify_baseline_replaced (Photo* self); -static void photo_real_notify_baseline_replaced (Photo* self); -void photo_notify_master_reimported (Photo* self, - PhotoMetadata* metadata); -static void photo_real_notify_master_reimported (Photo* self, - PhotoMetadata* metadata); -void photo_notify_editable_reimported (Photo* self, - PhotoMetadata* metadata); -static void photo_real_notify_editable_reimported (Photo* self, - PhotoMetadata* metadata); -void photo_notify_source_reimported (Photo* self, - PhotoMetadata* metadata); -static void photo_real_notify_source_reimported (Photo* self, - PhotoMetadata* metadata); -void photo_notify_baseline_reimported (Photo* self, - PhotoMetadata* metadata); -static void photo_real_notify_baseline_reimported (Photo* self, - PhotoMetadata* metadata); -static gboolean photo_real_internal_delete_backing (DataSource* base, - GError** error); -GFile* photo_file_adapter_get_file (PhotoFileAdapter* self); -static void photo_detach_editable (Photo* self, - gboolean delete_editable, - gboolean remove_transformations, - gboolean notify); -PhotoFileFormat photo_get_master_file_format (Photo* self); -static gboolean photo_delete_raw_development (Photo* self, - RawDeveloper d); -gchar* data_object_to_string (DataObject* self); -gboolean data_source_internal_delete_backing (DataSource* self, - GError** error); -GType backing_photo_table_get_type (void) G_GNUC_CONST; -BackingPhotoTable* backing_photo_table_get_instance (void); -BackingPhotoRow* backing_photo_table_fetch (BackingPhotoTable* self, - BackingPhotoID* id, - GError** error); -void backing_photo_table_remove (BackingPhotoTable* self, - BackingPhotoID* backing_id, - GError** error); -gboolean photo_is_raw_developer_complete (Photo* self, - RawDeveloper d); -gboolean photo_is_raw_developer_available (Photo* self, - RawDeveloper d); -PhotoMetadata* photo_get_master_metadata (Photo* self, - GError** error); -guint photo_metadata_get_preview_count (PhotoMetadata* self); -gpointer photo_preview_ref (gpointer instance); -void photo_preview_unref (gpointer instance); -GParamSpec* param_spec_photo_preview (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_preview (GValue* value, - gpointer v_object); -void value_take_photo_preview (GValue* value, - gpointer v_object); -gpointer value_get_photo_preview (const GValue* value); -GType photo_preview_get_type (void) G_GNUC_CONST; -PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self, - guint number); -void photo_preview_get_pixel_dimensions (PhotoPreview* self, - Dimensions* result); -void photo_add_backing_photo_for_development (Photo* self, - RawDeveloper d, - BackingPhotoRow* bpr, - gboolean notify, - GError** error); -void photo_import_developed_backing_photo (PhotoRow* row, - RawDeveloper d, - BackingPhotoRow* bpr, - GError** error); -void data_object_notify_altered (DataObject* self, - Alteration* alteration); -Alteration* alteration_new (const gchar* subject, - const gchar* detail); -Alteration* alteration_construct (GType object_type, - const gchar* subject, - const gchar* detail); -#define UTIL_FILE_ATTRIBUTES "standard::*,time::*,id::file,id::filesystem,etag::value" -#define DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES UTIL_FILE_ATTRIBUTES -gpointer photo_file_interrogator_ref (gpointer instance); -void photo_file_interrogator_unref (gpointer instance); -GParamSpec* param_spec_photo_file_interrogator (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_interrogator (GValue* value, - gpointer v_object); -void value_take_photo_file_interrogator (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_interrogator (const GValue* value); -GType photo_file_interrogator_get_type (void) G_GNUC_CONST; -PhotoFileInterrogator* photo_file_interrogator_new (GFile* file, - PhotoFileSnifferOptions options); -PhotoFileInterrogator* photo_file_interrogator_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options); -void photo_file_interrogator_interrogate (PhotoFileInterrogator* self, - GError** error); -gpointer detected_photo_information_ref (gpointer instance); -void detected_photo_information_unref (gpointer instance); -GParamSpec* param_spec_detected_photo_information (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_detected_photo_information (GValue* value, - gpointer v_object); -void value_take_detected_photo_information (GValue* value, - gpointer v_object); -gpointer value_get_detected_photo_information (const GValue* value); -GType detected_photo_information_get_type (void) G_GNUC_CONST; -DetectedPhotoInformation* photo_file_interrogator_get_detected_photo_information (PhotoFileInterrogator* self); -gboolean photo_file_interrogator_get_is_photo_corrupted (PhotoFileInterrogator* self); -Orientation photo_metadata_get_orientation (PhotoMetadata* self); -void backing_photo_table_add (BackingPhotoTable* self, - BackingPhotoRow* state, - GError** error); -void photo_table_update_raw_development (PhotoTable* self, - PhotoRow* row, - RawDeveloper rd, - BackingPhotoID* backing_photo_id, - GError** error); -static void photo_develop_photo (Photo* self, - RawDeveloper d, - gboolean notify); -BackingPhotoRow* raw_developer_create_backing_row_for_development (RawDeveloper self, - const gchar* raw_filepath, - const gchar* camera_development_filename, - GError** error); -GdkPixbuf* photo_get_master_pixbuf (Photo* self, - Scaling* scaling, - gboolean rotate, - GError** error); -void scaling_for_original (Scaling* result); -GType photo_file_writer_get_type (void) G_GNUC_CONST; -GQuark photo_format_error_quark (void); -PhotoFileWriter* photo_file_format_create_writer (PhotoFileFormat self, - const gchar* filepath, - GError** error); -GType jpeg_quality_get_type (void) G_GNUC_CONST; -void photo_file_writer_write (PhotoFileWriter* self, - GdkPixbuf* pixbuf, - JpegQuality quality, - GError** error); -GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST; -PhotoFileMetadataWriter* photo_file_format_create_metadata_writer (PhotoFileFormat self, - const gchar* filepath, - GError** error); -void photo_file_metadata_writer_write_metadata (PhotoFileMetadataWriter* self, - PhotoMetadata* metadata, - GError** error); -GBytes* photo_preview_flatten (PhotoPreview* self, - GError** error); -gboolean jpeg_is_jpeg_bytes (GBytes* bytes, - GError** error); -GdkPixbuf* photo_preview_get_pixbuf (PhotoPreview* self, - GError** error); -void photo_set_default_raw_developer (Photo* self, - RawDeveloper d); -void photo_set_raw_developer (Photo* self, - RawDeveloper d, - gboolean notify); -void photo_revert_to_master (Photo* self, - gboolean notify); -GdkPixbuf* photo_get_prefetched_copy (Photo* self, - GError** error); -gboolean photo_set_orientation (Photo* self, - Orientation orientation); -void photo_discard_prefetched (Photo* self); -RawDeveloper photo_get_raw_developer (Photo* self); -gchar* raw_developer_to_string (RawDeveloper self); -void photo_table_remove_development (PhotoTable* self, - PhotoRow* row, - RawDeveloper rd, - GError** error); -void photo_redevelop_raw (Photo* self, - RawDeveloper d); -static BackingFileState** photo_real_get_backing_files_state (MediaSource* base, - int* result_length1); -BackingFileState* backing_file_state_new_from_photo_row (BackingPhotoRow* photo_row, - const gchar* md5); -BackingFileState* backing_file_state_construct_from_photo_row (GType object_type, - BackingPhotoRow* photo_row, - const gchar* md5); -static void _vala_array_add88 (BackingFileState** * array, - int* length, - int* size, - BackingFileState* value); -gboolean photo_has_editable (Photo* self); -static void _vala_array_add89 (BackingFileState** * array, - int* length, - int* size, - BackingFileState* value); -gboolean photo_is_developed (Photo* self); -GeeCollection* photo_get_raw_development_photo_rows (Photo* self); -static void _vala_array_add90 (BackingFileState** * array, - int* length, - int* size, - BackingFileState* value); -static PhotoFileReader* photo_get_backing_reader (Photo* self, - BackingFetchMode mode); -static PhotoFileReader* photo_get_master_reader (Photo* self); -static PhotoFileReader* photo_get_baseline_reader (Photo* self); -static PhotoFileReader* photo_get_source_reader (Photo* self); -static PhotoFileReader* photo_get_raw_developer_reader (Photo* self); -const gchar* backing_fetch_mode_to_string (BackingFetchMode self); -PhotoFileReader* photo_get_editable_reader (Photo* self); -gboolean photo_does_master_exist (Photo* self); -gboolean photo_file_adapter_file_exists (PhotoFileAdapter* self); -gboolean photo_does_editable_exist (Photo* self); -gboolean photo_is_master_baseline (Photo* self); -gboolean photo_is_master_source (Photo* self); -gboolean photo_is_editable_baseline (Photo* self); -gboolean photo_is_editable_source (Photo* self); -BackingPhotoRow* photo_get_master_photo_row (Photo* self); -BackingPhotoRow* photo_get_editable_photo_row (Photo* self); -gboolean backing_photo_id_is_valid (BackingPhotoID *self); -BackingPhotoRow* photo_get_raw_development_photo_row (Photo* self, - RawDeveloper d); -PhotoFileFormat* photo_get_editable_file_format (Photo* self); -PhotoFileFormat photo_file_adapter_get_file_format (PhotoFileAdapter* self); -static PhotoFileFormat* _photo_file_format_dup (PhotoFileFormat* self); -GType export_format_parameters_get_type (void) G_GNUC_CONST; -GType export_format_mode_get_type (void) G_GNUC_CONST; -ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self); -void export_format_parameters_free (ExportFormatParameters* self); -PhotoFileFormat photo_get_export_format_for_parameters (Photo* self, - ExportFormatParameters* params); -PhotoFileFormat photo_file_format_get_system_default_format (void); -PhotoFileFormat photo_get_best_export_file_format (Photo* self); -gchar* photo_get_export_basename_for_parameters (Photo* self, - ExportFormatParameters* params); -GFile* media_source_get_master_file (MediaSource* self); -gchar* photo_get_export_basename (Photo* self, - PhotoFileFormat* file_format); -GType import_result_get_type (void) G_GNUC_CONST; -ImportResult photo_prepare_for_import (PhotoImportParams* params); -gboolean photo_is_file_image (GFile* file); -gboolean photo_file_format_is_file_supported (GFile* file); -gpointer metadata_date_time_ref (gpointer instance); -void metadata_date_time_unref (gpointer instance); -GParamSpec* param_spec_metadata_date_time (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_metadata_date_time (GValue* value, - gpointer v_object); -void value_take_metadata_date_time (GValue* value, - gpointer v_object); -gpointer value_get_metadata_date_time (const GValue* value); -GType metadata_date_time_get_type (void) G_GNUC_CONST; -MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self); -time_t metadata_date_time_get_timestamp (MetadataDateTime* self); -gchar* media_metadata_get_title (MediaMetadata* self); -gchar* media_metadata_get_comment (MediaMetadata* self); -GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify); -Rating photo_metadata_get_rating (PhotoMetadata* self); -#define PHOTO_ID_INVALID ((gint64) -1) -void photo_id_init (PhotoID *self, - gint64 id); -#define EVENT_ID_INVALID ((gint64) -1) -void event_id_init (EventID *self, - gint64 id); -GType photo_file_reader_role_get_type (void) G_GNUC_CONST; -void photo_file_reader_set_role (PhotoFileReader* self, - PhotoFileReaderRole role); -void thumbnail_cache_generate_for_photo (Thumbnails* thumbnails, - PhotoFileReader* reader, - Orientation orientation, - Dimensions* original_dim, - GError** error); -ImportResult import_result_convert_error (GError* err, - ImportResult default_result); -void photo_create_pre_import (PhotoImportParams* params); -void dimensions_init (Dimensions *self, - gint width, - gint height); -BackingPhotoRow* photo_query_backing_photo_row (Photo* self, - GFile* file, - PhotoFileSnifferOptions options, - DetectedPhotoInformation* * detected, - GError** error); -gpointer photo_reimport_master_state_ref (gpointer instance); -void photo_reimport_master_state_unref (gpointer instance); -GParamSpec* photo_param_spec_reimport_master_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void photo_value_set_reimport_master_state (GValue* value, - gpointer v_object); -void photo_value_take_reimport_master_state (GValue* value, - gpointer v_object); -gpointer photo_value_get_reimport_master_state (const GValue* value); -GType photo_reimport_master_state_get_type (void) G_GNUC_CONST; -gboolean photo_prepare_for_reimport_master (Photo* self, - PhotoReimportMasterState* * reimport_state, - GError** error); -static void _vala_array_add91 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add92 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add93 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add94 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add95 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add96 (gchar** * array, - int* length, - int* size, - gchar* value); -static PhotoReimportMasterStateImpl* photo_reimport_master_state_impl_new (PhotoRow* row, - PhotoMetadata* metadata, - gchar** alterations, - int alterations_length1); -static PhotoReimportMasterStateImpl* photo_reimport_master_state_impl_construct (GType object_type, - PhotoRow* row, - PhotoMetadata* metadata, - gchar** alterations, - int alterations_length1); -static GType photo_reimport_master_state_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -void photo_apply_user_metadata_for_reimport (Photo* self, - PhotoMetadata* metadata); -static void photo_real_apply_user_metadata_for_reimport (Photo* self, - PhotoMetadata* metadata); -void photo_finish_reimport_master (Photo* self, - PhotoReimportMasterState* state, - GError** error); -void photo_table_reimport (PhotoTable* self, - PhotoRow* row, - GError** error); -void backing_photo_row_copy_from (BackingPhotoRow* self, - BackingPhotoRow* from); -static void _vala_array_add97 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add98 (gchar** * array, - int* length, - int* size, - gchar* value); -Alteration* alteration_new_from_array (gchar** array, - int array_length1); -Alteration* alteration_construct_from_array (GType object_type, - gchar** array, - int array_length1); -static gboolean photo_verify_file_for_reimport (Photo* self, - GFile* file, - BackingPhotoRow* * backing, - DetectedPhotoInformation* * detected, - GError** error); -gpointer photo_reimport_editable_state_ref (gpointer instance); -void photo_reimport_editable_state_unref (gpointer instance); -GParamSpec* photo_param_spec_reimport_editable_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void photo_value_set_reimport_editable_state (GValue* value, - gpointer v_object); -void photo_value_take_reimport_editable_state (GValue* value, - gpointer v_object); -gpointer photo_value_get_reimport_editable_state (const GValue* value); -GType photo_reimport_editable_state_get_type (void) G_GNUC_CONST; -gboolean photo_prepare_for_reimport_editable (Photo* self, - PhotoReimportEditableState* * state, - GError** error); -GFile* photo_get_editable_file (Photo* self); -static PhotoReimportEditableStateImpl* photo_reimport_editable_state_impl_new (BackingPhotoRow* backing_state, - PhotoMetadata* metadata); -static PhotoReimportEditableStateImpl* photo_reimport_editable_state_impl_construct (GType object_type, - BackingPhotoRow* backing_state, - PhotoMetadata* metadata); -static GType photo_reimport_editable_state_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -void photo_finish_reimport_editable (Photo* self, - PhotoReimportEditableState* state, - GError** error); -void photo_get_editable_id (Photo* self, - BackingPhotoID* result); -gboolean backing_photo_id_is_invalid (BackingPhotoID *self); -void backing_photo_table_update (BackingPhotoTable* self, - BackingPhotoRow* row, - GError** error); -void media_source_set_title (MediaSource* self, - const gchar* title); -gboolean media_source_set_comment (MediaSource* self, - const gchar* comment); -void media_source_set_rating (MediaSource* self, - Rating rating); -Alteration* alteration_new_from_list (const gchar* list); -Alteration* alteration_construct_from_list (GType object_type, - const gchar* list); -gpointer photo_reimport_raw_development_state_ref (gpointer instance); -void photo_reimport_raw_development_state_unref (gpointer instance); -GParamSpec* photo_param_spec_reimport_raw_development_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void photo_value_set_reimport_raw_development_state (GValue* value, - gpointer v_object); -void photo_value_take_reimport_raw_development_state (GValue* value, - gpointer v_object); -gpointer photo_value_get_reimport_raw_development_state (const GValue* value); -GType photo_reimport_raw_development_state_get_type (void) G_GNUC_CONST; -gboolean photo_prepare_for_reimport_raw_development (Photo* self, - PhotoReimportRawDevelopmentState* * state, - GError** error); -GeeCollection* photo_get_raw_developer_files (Photo* self); -static GType photo_reimport_raw_development_state_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static PhotoReimportRawDevelopmentStateImpl* photo_reimport_raw_development_state_impl_new (void); -static PhotoReimportRawDevelopmentStateImpl* photo_reimport_raw_development_state_impl_construct (GType object_type); -static void photo_reimport_raw_development_state_impl_add (PhotoReimportRawDevelopmentStateImpl* self, - BackingPhotoRow* backing, - PhotoMetadata* metadata); -static gint photo_reimport_raw_development_state_impl_get_size (PhotoReimportRawDevelopmentStateImpl* self); -void photo_finish_reimport_raw_development (Photo* self, - PhotoReimportRawDevelopmentState* state, - GError** error); -static gpointer photo_reimport_raw_development_state_impl_dev_to_reimport_ref (gpointer instance); -static void photo_reimport_raw_development_state_impl_dev_to_reimport_unref (gpointer instance); -static GParamSpec* photo_reimport_raw_development_state_impl_param_spec_dev_to_reimport (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void photo_reimport_raw_development_state_impl_value_set_dev_to_reimport (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void photo_reimport_raw_development_state_impl_value_take_dev_to_reimport (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer photo_reimport_raw_development_state_impl_value_get_dev_to_reimport (const GValue* value) G_GNUC_UNUSED; -GType photo_reimport_raw_development_state_impl_dev_to_reimport_get_type (void) G_GNUC_CONST; -static gchar* photo_real_get_typename (DataSource* base); -static gint64 photo_real_get_instance_id (DataSource* base); -void photo_get_photo_id (Photo* self, - PhotoID* result); -static gchar* photo_real_get_source_id (DataSource* base); -gchar* data_source_get_typename (DataSource* self); -gint64 data_source_get_instance_id (DataSource* self); -void photo_set_master_timestamp (Photo* self, - GFileInfo* info); -void photo_table_update_timestamp (PhotoTable* self, - PhotoID* photo_id, - time_t timestamp, - GError** error); -void app_window_database_error (GError* err); -void photo_update_editable_modification_time (Photo* self, - GFileInfo* info, - GError** error); -void backing_photo_table_update_timestamp (BackingPhotoTable* self, - BackingPhotoID* id, - time_t timestamp, - GError** error); -void photo_update_many_editable_timestamps (GeeMap* map, - GError** error); -void database_table_begin_transaction (void); -void database_table_commit_transaction (GError** error); -static PhotoFileFormat photo_real_get_preferred_thumbnail_format (ThumbnailSource* base); -PhotoFileFormat photo_get_file_format (Photo* self); -gboolean photo_file_format_can_write_image (PhotoFileFormat self); -static GdkPixbuf* photo_real_create_thumbnail (ThumbnailSource* base, - gint scale, - GError** error); -GdkPixbuf* photo_source_get_pixbuf (PhotoSource* self, - Scaling* scaling, - GError** error); -void scaling_for_best_fit (gint pixels, - gboolean scale_up, - Scaling* result); -static gboolean photo_is_extension_found (const gchar* basename, - gchar** extensions, - int extensions_length1); -void disassemble_filename (const gchar* basename, - gchar* * name, - gchar* * ext); -gboolean photo_is_duplicate (GFile* file, - const gchar* thumbnail_md5, - const gchar* full_md5, - PhotoFileFormat file_format); -gboolean photo_table_has_duplicate (PhotoTable* self, - GFile* file, - const gchar* thumbnail_md5, - const gchar* md5, - PhotoFileFormat file_format); -PhotoID* photo_get_duplicate_ids (GFile* file, - const gchar* thumbnail_md5, - const gchar* full_md5, - PhotoFileFormat file_format, - int* result_length1); -PhotoID* photo_table_get_duplicate_ids (PhotoTable* self, - GFile* file, - const gchar* thumbnail_md5, - const gchar* md5, - PhotoFileFormat file_format, - int* result_length1); -gint64 photo_get_photo_key (DataSource* source); -GType library_photo_get_type (void) G_GNUC_CONST; -static GFile* photo_real_get_file (MediaSource* base); -void photo_set_master_file (Photo* self, - GFile* file); -void photo_table_set_filepath (PhotoTable* self, - PhotoID* photo_id, - const gchar* filepath, - GError** error); -void media_source_notify_master_replaced (MediaSource* self, - GFile* old_file, - GFile* new_file); -static void _vala_array_add99 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add100 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add101 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add102 (gchar** * array, - int* length, - int* size, - gchar* value); -void photo_set_editable_file (Photo* self, - GFile* file); -void backing_photo_table_set_filepath (BackingPhotoTable* self, - BackingPhotoID* id, - const gchar* filepath, - GError** error); -static void _vala_array_add103 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add104 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add105 (gchar** * array, - int* length, - int* size, - gchar* value); -void photo_set_many_editable_file (GeeMap* map, - GError** error); -GFile* photo_get_actual_file (Photo* self); -static GFile* photo_real_get_master_file (MediaSource* base); -GFile* photo_get_source_file (Photo* self); -gboolean photo_file_format_can_write (PhotoFileFormat self); -static time_t photo_real_get_timestamp (MediaSource* base); -static inline void photo_real_get_event_id (MediaSource* base, - EventID* result); -gint64 photo_get_raw_event_id (Photo* self); -static void photo_real_get_import_id (MediaSource* base, - ImportID* result); -static gchar* photo_real_get_master_md5 (MediaSource* base); -guint64 photo_get_flags (Photo* self); -static void photo_notify_flags_altered (Photo* self, - Alteration* additional_alteration); -Alteration* alteration_compress (Alteration* self, - Alteration* other); -guint64 photo_replace_flags (Photo* self, - guint64 flags, - Alteration* additional_alteration); -gboolean photo_table_replace_flags (PhotoTable* self, - PhotoID* photo_id, - guint64 flags); -gboolean photo_is_flag_set (Photo* self, - guint64 mask); -gboolean media_source_internal_is_flag_set (guint64 flags, - guint64 selector); -guint64 photo_add_flags (Photo* self, - guint64 mask, - Alteration* additional_alteration); -guint64 media_source_internal_add_flags (guint64 flags, - guint64 selector); -guint64 photo_remove_flags (Photo* self, - guint64 mask, - Alteration* additional_alteration); -guint64 media_source_internal_remove_flags (guint64 flags, - guint64 selector); -guint64 photo_add_remove_flags (Photo* self, - guint64 add, - guint64 remove, - Alteration* additional_alteration); -void photo_add_remove_many_flags (GeeCollection* add, - guint64 add_mask, - Alteration* additional_add_alteration, - GeeCollection* remove, - guint64 remove_mask, - Alteration* additional_remove_alteration, - GError** error); -guint64 photo_toggle_flags (Photo* self, - guint64 mask, - Alteration* additional_alteration); -gboolean photo_is_master_metadata_dirty (Photo* self); -void photo_set_master_metadata_dirty (Photo* self, - gboolean dirty, - GError** error); -void photo_table_set_metadata_dirty (PhotoTable* self, - PhotoID* photo_id, - gboolean dirty, - GError** error); -static Rating photo_real_get_rating (MediaSource* base); -static void photo_real_set_rating (MediaSource* base, - Rating rating); -gboolean photo_table_set_rating (PhotoTable* self, - PhotoID* photo_id, - Rating rating); -static void photo_real_increase_rating (MediaSource* base); -static void photo_real_decrease_rating (MediaSource* base); -static void photo_real_commit_backlinks (DataSource* base, - SourceCollection* sources, - const gchar* backlinks); -void photo_table_update_backlinks (PhotoTable* self, - PhotoID* photo_id, - const gchar* backlinks, - GError** error); -static gboolean photo_real_set_event_id (MediaSource* base, - EventID* event_id); -gboolean photo_table_set_event (PhotoTable* self, - PhotoID* photo_id, - EventID* event_id); -static gchar* photo_real_to_string (DataObject* base); -gchar* photo_file_adapter_get_filepath (PhotoFileAdapter* self); -static gboolean photo_real_equals (DataSource* base, - DataSource* source); -gboolean data_source_equals (DataSource* self, - DataSource* source); -static void photo_file_exif_updated (Photo* self); -GFile* media_source_get_file (MediaSource* self); -gboolean photo_table_master_exif_updated (PhotoTable* self, - PhotoID* photoID, - gint64 filesize, - glong timestamp, - const gchar* md5, - const gchar* exif_md5, - const gchar* thumbnail_md5, - PhotoRow* row); -static guint64 photo_real_get_filesize (MediaSource* base); -static guint64 photo_real_get_master_filesize (MediaSource* base); -guint64 photo_get_editable_filesize (Photo* self); -static time_t photo_real_get_exposure_time (Dateable* base); -static gchar* photo_real_get_basename (MediaSource* base); -static gchar* photo_real_get_title (MediaSource* base); -static gchar* photo_real_get_comment (MediaSource* base); -static void photo_real_set_title (MediaSource* base, - const gchar* title); -gboolean photo_table_set_title (PhotoTable* self, - PhotoID* photo_id, - const gchar* new_title); -static gboolean photo_real_set_comment (MediaSource* base, - const gchar* comment); -gboolean photo_table_set_comment (PhotoTable* self, - PhotoID* photo_id, - const gchar* new_comment); -void photo_set_import_id (Photo* self, - ImportID* import_id); -void photo_table_set_import_id (PhotoTable* self, - PhotoID* photo_id, - ImportID* import_id, - GError** error); -void photo_set_title_persistent (Photo* self, - const gchar* title, - GError** error); -gboolean photo_file_format_can_write_metadata (PhotoFileFormat self); -PhotoMetadata* photo_file_reader_read_metadata (PhotoFileReader* self, - GError** error); -GType photo_metadata_set_option_get_type (void) G_GNUC_CONST; -void photo_metadata_set_title (PhotoMetadata* self, - const gchar* title, - PhotoMetadataSetOption option); -PhotoFileMetadataWriter* photo_file_reader_create_metadata_writer (PhotoFileReader* self, - GError** error); -void library_monitor_blacklist_file (GFile* file, - const gchar* reason); -void library_monitor_unblacklist_file (GFile* file); -void photo_set_comment_persistent (Photo* self, - const gchar* comment, - GError** error); -void photo_metadata_set_comment (PhotoMetadata* self, - const gchar* comment, - PhotoMetadataSetOption option); -static void photo_real_set_exposure_time (Dateable* base, - time_t time); -gboolean photo_table_set_exposure_time (PhotoTable* self, - PhotoID* photo_id, - time_t time); -void photo_set_exposure_time_persistent (Photo* self, - time_t time, - GError** error); -void dateable_set_exposure_time (Dateable* self, - time_t target_time); -void photo_metadata_set_exposure_date_time (PhotoMetadata* self, - MetadataDateTime* date_time, - PhotoMetadataSetOption option); -MetadataDateTime* metadata_date_time_new (time_t timestamp); -MetadataDateTime* metadata_date_time_construct (GType object_type, - time_t timestamp); -static void photo_real_get_dimensions (MediaSource* base, - PhotoException disallowed_steps, - Dimensions* result); -void photo_get_raw_dimensions (Photo* self, - Dimensions* result); -Orientation photo_get_orientation (Photo* self); -gboolean photo_get_straighten (Photo* self, - gdouble* theta); -void compute_arb_rotated_size (gdouble src_width, - gdouble src_height, - gdouble angle, - gdouble* dest_width, - gdouble* dest_height); -GType box_get_type (void) G_GNUC_CONST; -Box* box_dup (const Box* self); -void box_free (Box* self); -gboolean photo_get_crop (Photo* self, - Box* crop, - PhotoException exceptions); -void box_get_dimensions (Box *self, - Dimensions* result); -static void photo_locked_create_adjustments_from_data (Photo* self); -static KeyValueMap* photo_get_transformation (Photo* self, - const gchar* name); -PixelTransformationBundle* photo_get_color_adjustments (Photo* self); -PixelTransformer* photo_get_pixel_transformer (Photo* self); -gboolean photo_has_color_adjustments (Photo* self); -static gboolean photo_has_transformation (Photo* self, - const gchar* name); -PixelTransformation* photo_get_color_adjustment (Photo* self, - PixelTransformationType type); -void photo_set_color_adjustments (Photo* self, - PixelTransformationBundle* new_adjustments); -static gboolean photo_remove_transformation (Photo* self, - const gchar* name); -static gboolean photo_set_transformation (Photo* self, - KeyValueMap* trans); -static PhotoMetadata* photo_real_get_metadata (PhotoSource* base); -PhotoMetadata* photo_get_editable_metadata (Photo* self, - GError** error); -gboolean photo_persist_master_metadata (Photo* self, - PhotoMetadata* metadata, - PhotoReimportMasterState* * state, - GError** error); -void photo_finish_update_master_metadata (Photo* self, - PhotoReimportMasterState* state, - GError** error); -gboolean photo_persist_editable_metadata (Photo* self, - PhotoMetadata* metadata, - PhotoReimportEditableState* * state, - GError** error); -void photo_finish_update_editable_metadata (Photo* self, - PhotoReimportEditableState* state, - GError** error); -gboolean photo_has_transformations (Photo* self); -gboolean photo_only_metadata_changed (Photo* self); -PhotoMetadata* photo_source_get_metadata (PhotoSource* self); -gboolean photo_has_alterations (Photo* self); -gchar* media_source_get_comment (MediaSource* self); -gchar* media_source_get_title (MediaSource* self); -PhotoTransformationState* photo_save_transformation_state (Photo* self); -static PhotoPhotoTransformationStateImpl* photo_photo_transformation_state_impl_new (Photo* photo, - Orientation orientation, - GeeHashMap* transformations, - PixelTransformer* transformer, - PixelTransformationBundle* adjustments); -static PhotoPhotoTransformationStateImpl* photo_photo_transformation_state_impl_construct (GType object_type, - Photo* photo, - Orientation orientation, - GeeHashMap* transformations, - PixelTransformer* transformer, - PixelTransformationBundle* adjustments); -static GType photo_photo_transformation_state_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -gboolean photo_load_transformation_state (Photo* self, - PhotoTransformationState* state); -static Orientation photo_photo_transformation_state_impl_get_orientation (PhotoPhotoTransformationStateImpl* self); -static GeeHashMap* photo_photo_transformation_state_impl_get_transformations (PhotoPhotoTransformationStateImpl* self); -static PixelTransformer* photo_photo_transformation_state_impl_get_transformer (PhotoPhotoTransformationStateImpl* self); -static PixelTransformationBundle* photo_photo_transformation_state_impl_get_color_adjustments (PhotoPhotoTransformationStateImpl* self); -gboolean photo_table_set_transformation_state (PhotoTable* self, - PhotoID* photo_id, - Orientation orientation, - GeeHashMap* transformations); -void photo_remove_all_transformations (Photo* self); -gboolean photo_table_remove_all_transformations (PhotoTable* self, - PhotoID* photo_id); -gboolean photo_table_set_orientation (PhotoTable* self, - PhotoID* photo_id, - Orientation orientation); -Orientation photo_get_original_orientation (Photo* self); -gboolean photo_check_can_rotate (Photo* self); -void photo_rotate (Photo* self, - Rotation rotation); -static void photo_real_rotate (Photo* self, - Rotation rotation); -Orientation orientation_perform (Orientation self, - Rotation rotation); -gboolean photo_table_set_transformation (PhotoTable* self, - PhotoID* photo_id, - KeyValueMap* map); -gboolean photo_table_remove_transformation (PhotoTable* self, - PhotoID* photo_id, - const gchar* object); -gboolean photo_has_crop (Photo* self); -gboolean photo_get_raw_crop (Photo* self, - Box* crop); -void box_init (Box *self, - gint left, - gint top, - gint right, - gint bottom); -static void photo_set_raw_crop (Photo* self, - Box* crop); -static gboolean photo_get_raw_straighten (Photo* self, - gdouble* angle); -static void photo_set_raw_straighten (Photo* self, - gdouble theta); -GType editing_tools_redeye_instance_get_type (void) G_GNUC_CONST; -EditingToolsRedeyeInstance* editing_tools_redeye_instance_dup (const EditingToolsRedeyeInstance* self); -void editing_tools_redeye_instance_free (EditingToolsRedeyeInstance* self); -static EditingToolsRedeyeInstance* photo_get_raw_redeye_instances (Photo* self, - int* result_length1); -gboolean photo_has_redeye_transformations (Photo* self); -void photo_add_redeye_instance (Photo* self, - EditingToolsRedeyeInstance* redeye); -static gboolean photo_calculate_pixbuf_dimensions (Photo* self, - Scaling* scaling, - PhotoException exceptions, - Dimensions* scaled_image, - Dimensions* scaled_to_viewport); -static gboolean photo_locked_calculate_pixbuf_dimensions (Photo* self, - Scaling* scaling, - PhotoException exceptions, - Dimensions* scaled_image, - Dimensions* scaled_to_viewport); -gboolean scaling_is_unscaled (Scaling *self); -void orientation_rotate_box (Orientation self, - Dimensions* space, - Box* box, - Box* result); -void orientation_rotate_dimensions (Orientation self, - Dimensions* dim, - Dimensions* result); -void box_get_scaled (Box *self, - Dimensions* scaled, - Box* result); -void scaling_get_scaled_dimensions (Scaling *self, - Dimensions* original, - Dimensions* result); -gint box_get_width (Box *self); -gint box_get_height (Box *self); -void dimensions_get_scaled_similar (Dimensions *self, - Dimensions* original, - Dimensions* scaled, - Dimensions* result); -void orientation_derotate_dimensions (Orientation self, - Dimensions* dim, - Dimensions* result); -gboolean dimensions_has_area (Dimensions *self); -static GdkPixbuf* photo_load_raw_pixbuf (Photo* self, - Scaling* scaling, - PhotoException exceptions, - BackingFetchMode fetch_mode, - GError** error); -GdkPixbuf* photo_file_reader_unscaled_read (PhotoFileReader* self, - GError** error); -GdkPixbuf* photo_file_reader_scaled_read (PhotoFileReader* self, - Dimensions* full, - Dimensions* scaled, - GError** error); -gboolean dimensions_approx_equals (Dimensions *self, - Dimensions* dim, - gint fudge); -void dimensions_for_pixbuf (GdkPixbuf* pixbuf, - Dimensions* result); -static GdkPixbuf* photo_get_untransformed_pixbuf (Photo* self, - Scaling* scaling, - gboolean rotate, - BackingFetchMode fetch_mode, - GError** error); -GdkPixbuf* photo_get_unmodified_pixbuf (Photo* self, - Scaling* scaling, - gboolean rotate, - GError** error); -GdkPixbuf* orientation_rotate_pixbuf (Orientation self, - GdkPixbuf* pixbuf); -static GdkPixbuf* photo_real_get_pixbuf (PhotoSource* base, - Scaling* scaling, - GError** error); -GdkPixbuf* photo_get_pixbuf_with_options (Photo* self, - Scaling* scaling, - PhotoException exceptions, - BackingFetchMode fetch_mode, - GError** error); -static GdkPixbuf* photo_run_source_pixbuf_cache (Photo* locate, - gboolean keep, - GError** error); -static PhotoCachedPixbuf* photo_cached_pixbuf_new (Photo* photo, - GdkPixbuf* pixbuf); -static PhotoCachedPixbuf* photo_cached_pixbuf_construct (GType object_type, - Photo* photo, - GdkPixbuf* pixbuf); -static gboolean photo_trim_source_pixbuf_cache (void); -static gboolean _photo_trim_source_pixbuf_cache_gsource_func (gpointer self); -gboolean photo_get_develop_raw_photos_to_files (void); -void media_source_get_dimensions (MediaSource* self, - PhotoException disallowed_steps, - Dimensions* result); -gboolean dimensions_equals (Dimensions *self, - Dimensions* dim); -static GdkPixbuf* photo_do_redeye (Photo* self, - GdkPixbuf* pixbuf, - EditingToolsRedeyeInstance* inst); -GdkPixbuf* rotate_arb (GdkPixbuf* source_pixbuf, - gdouble angle); -gboolean photo_has_user_generated_metadata (Photo* self); -static gboolean photo_real_has_user_generated_metadata (Photo* self); -void photo_set_user_metadata_for_export (Photo* self, - PhotoMetadata* metadata); -static void photo_real_set_user_metadata_for_export (Photo* self, - PhotoMetadata* metadata); -gpointer photo_file_format_properties_ref (gpointer instance); -void photo_file_format_properties_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_properties (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_format_properties (GValue* value, - gpointer v_object); -void value_take_photo_file_format_properties (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_format_properties (const GValue* value); -GType photo_file_format_properties_get_type (void) G_GNUC_CONST; -PhotoFileFormatProperties* photo_file_format_get_properties (PhotoFileFormat self); -GFile* photo_file_format_properties_convert_file_extension (PhotoFileFormatProperties* self, - GFile* file); -static gboolean photo_export_fullsized_backing (Photo* self, - GFile* file, - gboolean export_metadata, - GError** error); -PhotoMetadata* photo_file_format_create_metadata (PhotoFileFormat self); -time_t media_source_get_exposure_time (MediaSource* self); -void photo_metadata_set_pixel_dimensions (PhotoMetadata* self, - Dimensions* dim, - PhotoMetadataSetOption option); -void photo_metadata_set_orientation (PhotoMetadata* self, - Orientation orientation); -void photo_metadata_set_software (PhotoMetadata* self, - const gchar* software, - const gchar* version); -#define RESOURCES_APP_TITLE "Shotwell" -#define RESOURCES_APP_VERSION _VERSION -void photo_metadata_remove_exif_thumbnail (PhotoMetadata* self); -void photo_metadata_clear (PhotoMetadata* self); -gboolean photo_is_export_required (Photo* self, - Scaling* scaling, - PhotoFileFormat export_format); -void photo_export (Photo* self, - GFile* dest_file, - Scaling* scaling, - JpegQuality quality, - PhotoFileFormat export_format, - gboolean direct_copy_unmodified, - gboolean export_metadata, - GError** error); -const gchar* photo_file_format_to_string (PhotoFileFormat self); -void photo_metadata_remove_tag (PhotoMetadata* self, - const gchar* tag); -static GFile* photo_generate_new_editable_file (Photo* self, - PhotoFileFormat* file_format, - GError** error); -gboolean photo_file_format_properties_is_recognized_extension (PhotoFileFormatProperties* self, - const gchar* ext); -gchar* photo_file_format_properties_get_default_extension (PhotoFileFormatProperties* self); -GFile* generate_unique_file (GFile* dir, - const gchar* basename, - gboolean* collision, - GError** error); -static gboolean photo_launch_editor (GFile* file, - PhotoFileFormat file_format, - GError** error); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gchar* configuration_facade_get_external_raw_app (ConfigurationFacade* self); -gchar* configuration_facade_get_external_photo_app (ConfigurationFacade* self); -static void _g_object_unref0_ (gpointer var); -static inline void _g_list_free__g_object_unref0_ (GList* self); -void photo_open_with_raw_external_editor (Photo* self, - GError** error); -void photo_open_with_external_editor (Photo* self, - GError** error); -static void photo_halt_monitoring_editable (Photo* self); -static void photo_attach_editable (Photo* self, - PhotoFileFormat file_format, - GFile* file, - GError** error); -static void photo_start_monitoring_editable (Photo* self, - GFile* file, - GError** error); -static void photo_on_editable_file_changed (Photo* self, - GFile* file, - GFile* other_file, - GFileMonitorEvent event); -static void _photo_on_editable_file_changed_g_file_monitor_changed (GFileMonitor* _sender, - GFile* file, - GFile* other_file, - GFileMonitorEvent event_type, - gpointer self); -static void photo_update_editable (Photo* self, - gboolean only_attributes, - PhotoFileReader* new_reader, - GError** error); -static void photo_update_editable_attributes (Photo* self, - GError** error); -void photo_reimport_editable (Photo* self, - GError** error); -void photo_table_attach_editable (PhotoTable* self, - PhotoRow* row, - BackingPhotoID* editable_id, - GError** error); -void backing_photo_table_update_attributes (BackingPhotoTable* self, - BackingPhotoID* id, - time_t timestamp, - gint64 filesize, - GError** error); -static void _vala_array_add106 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add107 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add108 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add109 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add110 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add111 (gchar** * array, - int* length, - int* size, - gchar* value); -void backing_photo_id_init (BackingPhotoID *self, - gint64 id); -const gchar* g_file_monitor_event_to_string (GFileMonitorEvent self); -static void photo_on_reimport_editable (Photo* self); -static void _photo_on_reimport_editable_one_shot_callback (gpointer self); -OneShotScheduler* one_shot_scheduler_new (const gchar* name, - OneShotCallback callback, - void* callback_target); -OneShotScheduler* one_shot_scheduler_construct (GType object_type, - const gchar* name, - OneShotCallback callback, - void* callback_target); -void one_shot_scheduler_after_timeout (OneShotScheduler* self, - guint msec, - gboolean reschedule); -static void photo_on_update_editable_attributes (Photo* self); -static void _photo_on_update_editable_attributes_one_shot_callback (gpointer self); -static void photo_on_remove_editable (Photo* self); -static void _photo_on_remove_editable_one_shot_callback (gpointer self); -void photo_get_original_dimensions (Photo* self, - Dimensions* result); -void photo_get_master_dimensions (Photo* self, - Dimensions* result); -void photo_set_crop (Photo* self, - Box* crop); -void orientation_derotate_box (Orientation self, - Dimensions* space, - Box* box, - Box* result); -void photo_set_straighten (Photo* self, - gdouble theta); -static GdkPixbuf* photo_red_reduce_pixel (Photo* self, - GdkPixbuf* pixbuf, - gint x, - gint y); -void photo_unscaled_to_raw_point (Photo* self, - GdkPoint* unscaled_point, - GdkPoint* result); -void orientation_derotate_point (Orientation self, - Dimensions* space, - GdkPoint* point, - GdkPoint* result); -void photo_unscaled_to_raw_rect (Photo* self, - GdkRectangle* unscaled_rect, - GdkRectangle* result); -PixelTransformationBundle* photo_get_enhance_transformations (Photo* self); -gboolean photo_enhance (Photo* self); -void photo_set_develop_raw_photos_to_files (gboolean value); -static void photo_real_editable_replaced (Photo* self, - GFile* old_file, - GFile* new_file); -static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void photo_real_raw_development_modified (Photo* self); -static void photo_real_baseline_replaced (Photo* self); -static void photo_real_master_reimported (Photo* self, - PhotoMetadata* metadata); -static void g_cclosure_user_marshal_VOID__MEDIA_METADATA (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void photo_real_editable_reimported (Photo* self, - PhotoMetadata* metadata); -static void photo_real_baseline_reimported (Photo* self, - PhotoMetadata* metadata); -static void photo_real_source_reimported (Photo* self, - PhotoMetadata* metadata); -#define PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, PhotoPhotoTransformationStateImplPrivate)) -static void photo_photo_transformation_state_impl_on_photo_baseline_replaced (PhotoPhotoTransformationStateImpl* self); -static void _photo_photo_transformation_state_impl_on_photo_baseline_replaced_photo_baseline_replaced (Photo* _sender, - gpointer self); -static GeeHashMap* photo_photo_transformation_state_impl_copy_transformations (GeeHashMap* original); -static void photo_photo_transformation_state_impl_finalize (GObject * obj); -static void photo_backing_readers_finalize (PhotoBackingReaders * obj); -static void photo_cached_pixbuf_finalize (PhotoCachedPixbuf * obj); -PhotoReimportMasterState* photo_reimport_master_state_construct (GType object_type); -static void photo_reimport_master_state_finalize (PhotoReimportMasterState * obj); -static gchar** _vala_array_dup24 (gchar** self, - int length); -static void photo_reimport_master_state_impl_finalize (PhotoReimportMasterState * obj); -PhotoReimportEditableState* photo_reimport_editable_state_construct (GType object_type); -static void photo_reimport_editable_state_finalize (PhotoReimportEditableState * obj); -static void photo_reimport_editable_state_impl_finalize (PhotoReimportEditableState * obj); -PhotoReimportRawDevelopmentState* photo_reimport_raw_development_state_construct (GType object_type); -static void photo_reimport_raw_development_state_finalize (PhotoReimportRawDevelopmentState * obj); -static PhotoReimportRawDevelopmentStateImplDevToReimport* photo_reimport_raw_development_state_impl_dev_to_reimport_new (BackingPhotoRow* backing, - PhotoMetadata* metadata); -static PhotoReimportRawDevelopmentStateImplDevToReimport* photo_reimport_raw_development_state_impl_dev_to_reimport_construct (GType object_type, - BackingPhotoRow* backing, - PhotoMetadata* metadata); -static void photo_reimport_raw_development_state_impl_dev_to_reimport_finalize (PhotoReimportRawDevelopmentStateImplDevToReimport * obj); -static void photo_reimport_raw_development_state_impl_finalize (PhotoReimportRawDevelopmentState * obj); -static void photo_finalize (GObject * obj); -static void _vala_photo_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_photo_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -GType marker_get_type (void) G_GNUC_CONST; -gpointer source_backlink_ref (gpointer instance); -void source_backlink_unref (gpointer instance); -GParamSpec* param_spec_source_backlink (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_backlink (GValue* value, - gpointer v_object); -void value_take_source_backlink (GValue* value, - gpointer v_object); -gpointer value_get_source_backlink (const GValue* value); -GType source_backlink_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -GType database_source_holding_tank_get_type (void) G_GNUC_CONST; -GType media_source_holding_tank_get_type (void) G_GNUC_CONST; -gpointer workers_ref (gpointer instance); -void workers_unref (gpointer instance); -GParamSpec* param_spec_workers (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_workers (GValue* value, - gpointer v_object); -void value_take_workers (GValue* value, - gpointer v_object); -gpointer value_get_workers (const GValue* value); -GType workers_get_type (void) G_GNUC_CONST; -GType media_monitor_get_type (void) G_GNUC_CONST; -gpointer transaction_controller_ref (gpointer instance); -void transaction_controller_unref (gpointer instance); -GParamSpec* param_spec_transaction_controller (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_transaction_controller (GValue* value, - gpointer v_object); -void value_take_transaction_controller (GValue* value, - gpointer v_object); -gpointer value_get_transaction_controller (const GValue* value); -GType transaction_controller_get_type (void) G_GNUC_CONST; -GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionPrivate)) -GType library_photo_source_collection_state_get_type (void) G_GNUC_CONST; -guint file_hash (GFile* file); -static guint _file_hash_gee_hash_data_func (gconstpointer v, - gpointer self); -gboolean file_equal (GFile* a, - GFile* b); -static gboolean _file_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -gint int64_compare (gint64* a, - gint64* b); -static gint _int64_compare_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -static gint64* _int64_dup (gint64* self); -gboolean int64_equal (gint64* a, - gint64* b); -static gboolean _int64_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -LibraryPhotoSourceCollection* library_photo_source_collection_new (void); -LibraryPhotoSourceCollection* library_photo_source_collection_construct (GType object_type); -static gint64 _photo_get_photo_key_get_source_database_key (DataSource* source, - gpointer self); -MediaSourceCollection* media_source_collection_construct (GType object_type, - const gchar* name, - GetSourceDatabaseKey source_key_func, - void* source_key_func_target); -MediaSourceHoldingTank* media_source_collection_get_trashcan (MediaSourceCollection* self); -static void library_photo_source_collection_on_trashcan_contents_altered (LibraryPhotoSourceCollection* self, - GeeCollection* added, - GeeCollection* removed); -static void _library_photo_source_collection_on_trashcan_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self); -MediaSourceHoldingTank* media_source_collection_get_offline_bin (MediaSourceCollection* self); -static void library_photo_source_collection_on_offline_contents_altered (LibraryPhotoSourceCollection* self, - GeeCollection* added, - GeeCollection* removed); -static void _library_photo_source_collection_on_offline_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self); -static MediaSourceHoldingTank* library_photo_source_collection_real_create_trashcan (MediaSourceCollection* base); -static gboolean library_photo_source_collection_check_if_trashed_photo (LibraryPhotoSourceCollection* self, - DataSource* source, - Alteration* alteration); -static gboolean _library_photo_source_collection_check_if_trashed_photo_source_holding_tank_check_to_keep (DataSource* source, - Alteration* alteration, - gpointer self); -LibraryPhotoSourceHoldingTank* library_photo_source_holding_tank_new (LibraryPhotoSourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target); -LibraryPhotoSourceHoldingTank* library_photo_source_holding_tank_construct (GType object_type, - LibraryPhotoSourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target); -GType library_photo_source_holding_tank_get_type (void) G_GNUC_CONST; -static MediaSourceHoldingTank* library_photo_source_collection_real_create_offline_bin (MediaSourceCollection* base); -static gboolean library_photo_source_collection_check_if_offline_photo (LibraryPhotoSourceCollection* self, - DataSource* source, - Alteration* alteration); -static gboolean _library_photo_source_collection_check_if_offline_photo_source_holding_tank_check_to_keep (DataSource* source, - Alteration* alteration, - gpointer self); -static MediaMonitor* library_photo_source_collection_real_create_media_monitor (MediaSourceCollection* base, - Workers* workers, - GCancellable* cancellable); -PhotoMonitor* photo_monitor_new (Workers* workers, - GCancellable* cancellable); -PhotoMonitor* photo_monitor_construct (GType object_type, - Workers* workers, - GCancellable* cancellable); -GType photo_monitor_get_type (void) G_GNUC_CONST; -static gboolean library_photo_source_collection_real_holds_type_of_source (SourceCollection* base, - DataSource* source); -static gchar* library_photo_source_collection_real_get_typename (MediaSourceCollection* base); -static gboolean library_photo_source_collection_real_is_file_recognized (MediaSourceCollection* base, - GFile* file); -static void library_photo_source_collection_real_notify_contents_altered (DataCollection* base, - GeeIterable* added, - GeeIterable* removed); -static void library_photo_source_collection_on_editable_replaced (LibraryPhotoSourceCollection* self, - Photo* photo, - GFile* old_file, - GFile* new_file); -static void _library_photo_source_collection_on_editable_replaced_photo_editable_replaced (Photo* _sender, - GFile* old_file, - GFile* new_file, - gpointer self); -static void library_photo_source_collection_on_raw_development_modified (LibraryPhotoSourceCollection* self, - Photo* _photo); -static void _library_photo_source_collection_on_raw_development_modified_photo_raw_development_modified (Photo* _sender, - gpointer self); -void data_collection_notify_contents_altered (DataCollection* self, - GeeIterable* added, - GeeIterable* removed); -static void library_photo_source_collection_real_items_altered (DataCollection* base, - GeeMap* items); -gboolean alteration_has_detail (Alteration* self, - const gchar* subject, - const gchar* detail); -static void library_photo_source_collection_real_postprocess_imported_media (MediaSourceCollection* base, - GeeCollection* media_sources); -GType tag_get_type (void) G_GNUC_CONST; -gpointer hierarchical_tag_index_ref (gpointer instance); -void hierarchical_tag_index_unref (gpointer instance); -GParamSpec* param_spec_hierarchical_tag_index (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_hierarchical_tag_index (GValue* value, - gpointer v_object); -void value_take_hierarchical_tag_index (GValue* value, - gpointer v_object); -gpointer value_get_hierarchical_tag_index (const GValue* value); -GType hierarchical_tag_index_get_type (void) G_GNUC_CONST; -HierarchicalTagIndex* hierarchical_tag_index_get_global_index (void); -gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self); -HierarchicalTagIndex* hierarchical_tag_utilities_process_hierarchical_import_keywords (GeeCollection* h_keywords); -GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self); -GeeCollection* library_photo_get_import_keywords (LibraryPhoto* self); -gboolean hierarchical_tag_index_is_tag_in_index (HierarchicalTagIndex* self, - const gchar* tag); -gchar* tag_prep_tag_name (const gchar* name); -gchar* hierarchical_tag_index_get_path_for_name (HierarchicalTagIndex* self, - const gchar* name); -Tag* tag_for_path (const gchar* name); -GeeCollection* hierarchical_tag_index_get_all_paths (HierarchicalTagIndex* self); -void library_photo_clear_import_keywords (LibraryPhoto* self); -void tag_attach_many (Tag* self, - GeeCollection* sources); -void media_source_collection_postprocess_imported_media (MediaSourceCollection* self, - GeeCollection* media); -void library_photo_source_collection_notify_master_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata); -static void library_photo_source_collection_real_notify_master_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata); -void library_photo_source_collection_notify_editable_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata); -static void library_photo_source_collection_real_notify_editable_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata); -void library_photo_source_collection_notify_source_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata); -static void library_photo_source_collection_real_notify_source_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata); -void library_photo_source_collection_notify_baseline_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata); -static void library_photo_source_collection_real_notify_baseline_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata); -static MediaSource* library_photo_source_collection_real_fetch_by_numeric_id (MediaSourceCollection* base, - gint64 numeric_id); -LibraryPhoto* library_photo_source_collection_fetch (LibraryPhotoSourceCollection* self, - PhotoID* photo_id); -gboolean media_source_is_trashed (MediaSource* self); -gboolean media_source_is_offline (MediaSource* self); -static MediaSource* library_photo_source_collection_real_fetch_by_source_id (MediaSourceCollection* base, - const gchar* source_id); -MediaSource* media_source_collection_fetch_by_numeric_id (MediaSourceCollection* self, - gint64 numeric_id); -gint64 parse_int64 (const gchar* str, - gint num_base); -static GeeCollection* library_photo_source_collection_real_get_event_source_ids (MediaSourceCollection* base, - EventID* event_id); -GeeArrayList* photo_table_get_event_source_ids (PhotoTable* self, - EventID* event_id); -DataSource* database_source_collection_fetch_by_key (DatabaseSourceCollection* self, - gint64 key); -LibraryPhoto* library_photo_source_collection_fetch_by_editable_file (LibraryPhotoSourceCollection* self, - GFile* file); -LibraryPhoto* library_photo_source_collection_fetch_by_raw_development_file (LibraryPhotoSourceCollection* self, - GFile* file); -static void library_photo_source_collection_compare_backing (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - GFileInfo* info, - GeeCollection* matches_master, - GeeCollection* matches_editable, - GeeCollection* matches_development); -gboolean backing_photo_row_matches_file_info (BackingPhotoRow* self, - GFileInfo* info); -void library_photo_source_collection_fetch_by_matching_backing (LibraryPhotoSourceCollection* self, - GFileInfo* info, - GeeCollection* matches_master, - GeeCollection* matches_editable, - GeeCollection* matched_development); -GeeCollection* media_source_collection_get_offline_bin_contents (MediaSourceCollection* self); -void library_photo_source_collection_get_basename_filesize_duplicate (LibraryPhotoSourceCollection* self, - const gchar* basename, - gint64 filesize, - PhotoID* result); -gint utf8_ci_compare (void* a, - void* b); -gboolean library_photo_source_collection_has_basename_filesize_duplicate (LibraryPhotoSourceCollection* self, - const gchar* basename, - gint64 filesize); -gboolean photo_id_is_valid (PhotoID *self); -LibraryPhoto* library_photo_source_collection_get_trashed_by_file (LibraryPhotoSourceCollection* self, - GFile* file); -MediaSource* media_source_holding_tank_fetch_by_master_file (MediaSourceHoldingTank* self, - GFile* file); -LibraryPhoto* library_photo_source_holding_tank_fetch_by_backing_file (LibraryPhotoSourceHoldingTank* self, - GFile* file); -LibraryPhoto* library_photo_source_collection_get_trashed_by_md5 (LibraryPhotoSourceCollection* self, - const gchar* md5); -MediaSource* media_source_holding_tank_fetch_by_md5 (MediaSourceHoldingTank* self, - const gchar* md5); -LibraryPhoto* library_photo_source_collection_get_offline_by_file (LibraryPhotoSourceCollection* self, - GFile* file); -LibraryPhoto* library_photo_source_collection_get_offline_by_md5 (LibraryPhotoSourceCollection* self, - const gchar* md5); -gint library_photo_source_collection_get_offline_count (LibraryPhotoSourceCollection* self); -gint source_holding_tank_get_count (SourceHoldingTank* self); -LibraryPhoto* library_photo_source_collection_get_state_by_file (LibraryPhotoSourceCollection* self, - GFile* file, - LibraryPhotoSourceCollectionState* state); -MediaSource* media_source_collection_fetch_by_master_file (MediaSourceCollection* self, - GFile* file); -static gboolean library_photo_source_collection_real_has_backlink (SourceCollection* base, - SourceBacklink* backlink); -gboolean source_collection_has_backlink (SourceCollection* self, - SourceBacklink* backlink); -gboolean source_holding_tank_has_backlink (SourceHoldingTank* self, - SourceBacklink* backlink); -static void library_photo_source_collection_real_remove_backlink (SourceCollection* base, - SourceBacklink* backlink); -void source_holding_tank_remove_backlink (SourceHoldingTank* self, - SourceBacklink* backlink); -void source_collection_remove_backlink (SourceCollection* self, - SourceBacklink* backlink); -MediaSourceTransactionController* media_source_transaction_controller_new (MediaSourceCollection* sources); -MediaSourceTransactionController* media_source_transaction_controller_construct (GType object_type, - MediaSourceCollection* sources); -GType media_source_transaction_controller_get_type (void) G_GNUC_CONST; -static void library_photo_source_collection_real_master_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata); -static void g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void library_photo_source_collection_real_editable_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata); -static void library_photo_source_collection_real_baseline_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata); -static void library_photo_source_collection_real_source_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata); -static void library_photo_source_collection_finalize (DataCollection * obj); -GType flaggable_get_type (void) G_GNUC_CONST; -GType monitorable_get_type (void) G_GNUC_CONST; -#define LIBRARY_PHOTO_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LIBRARY_PHOTO, LibraryPhotoPrivate)) -#define LIBRARY_PHOTO_FLAG_HIDDEN ((guint64) 0x0000000000000001) -#define LIBRARY_PHOTO_FLAG_FAVORITE ((guint64) 0x0000000000000002) -#define LIBRARY_PHOTO_FLAG_TRASH ((guint64) 0x0000000000000004) -#define LIBRARY_PHOTO_FLAG_OFFLINE ((guint64) 0x0000000000000008) -#define LIBRARY_PHOTO_FLAG_FLAGGED ((guint64) 0x0000000000000010) -static LibraryPhoto* library_photo_new (PhotoRow* row); -static LibraryPhoto* library_photo_construct (GType object_type, - PhotoRow* row); -static void library_photo_generate_thumbnails (LibraryPhoto* self); -static void _library_photo_generate_thumbnails_one_shot_callback (gpointer self); -void data_source_rehydrate_backlinks (DataSource* self, - SourceCollection* unlinked_from, - const gchar* dehydrated); -static void library_photo_upgrade_rating_flags (LibraryPhoto* self, - guint64 flags); -static LibraryPhoto* library_photo_new_from_import_params (PhotoImportParams* import_params); -static LibraryPhoto* library_photo_construct_from_import_params (GType object_type, - PhotoImportParams* import_params); -void library_photo_init (ProgressMonitor monitor, - void* monitor_target); -GeeArrayList* photo_table_get_all (PhotoTable* self); -GeeCollection* data_collection_add_many (DataCollection* self, - GeeCollection* objects, - ProgressMonitor monitor, - void* monitor_target); -void media_source_collection_add_many_to_trash (MediaSourceCollection* self, - GeeCollection* sources); -void media_source_collection_add_many_to_offline (MediaSourceCollection* self, - GeeCollection* sources); -void library_photo_terminate (void); -ImportResult library_photo_import_create (PhotoImportParams* params, - LibraryPhoto* * photo); -void photo_table_add (PhotoTable* self, - PhotoRow* photo_row, - PhotoID* result); -gboolean photo_id_is_invalid (PhotoID *self); -void library_photo_import_failed (LibraryPhoto* photo); -void photo_table_remove (PhotoTable* self, - PhotoID* photo_id, - GError** error); -static void library_photo_real_notify_master_reimported (Photo* base, - PhotoMetadata* metadata); -static void library_photo_real_notify_editable_reimported (Photo* base, - PhotoMetadata* metadata); -static void library_photo_real_notify_source_reimported (Photo* base, - PhotoMetadata* metadata); -static void library_photo_real_notify_baseline_reimported (Photo* base, - PhotoMetadata* metadata); -void thumbnail_cache_import_from_source (ThumbnailSource* source, - gboolean force, - GError** error); -void thumbnail_source_notify_thumbnail_altered (ThumbnailSource* self); -static void library_photo_real_notify_altered (DataObject* base, - Alteration* alteration); -gboolean alteration_has_subject (Alteration* self, - const gchar* subject); -void one_shot_scheduler_at_priority_idle (OneShotScheduler* self, - gint priority); -static GdkPixbuf* library_photo_real_get_preview_pixbuf (MediaSource* base, - Scaling* scaling, - GError** error); -GdkPixbuf* thumbnail_source_get_thumbnail (ThumbnailSource* self, - gint scale, - GError** error); -GType thumbnail_cache_size_get_type (void) G_GNUC_CONST; -GdkPixbuf* scaling_perform_on_pixbuf (Scaling *self, - GdkPixbuf* pixbuf, - GdkInterpType interp, - gboolean scale_up); -static void library_photo_real_rotate (Photo* base, - Rotation rotation); -void thumbnail_cache_rotate (ThumbnailSource* source, - Rotation rotation, - GError** error); -static GdkPixbuf* library_photo_real_get_thumbnail (ThumbnailSource* base, - gint scale, - GError** error); -GdkPixbuf* thumbnail_cache_fetch (ThumbnailSource* source, - gint scale, - GError** error); -static void library_photo_duplicate_backing_photo (LibraryPhoto* self, - BackingPhotoRow* backing, - BackingPhotoID* result, - GError** error); -GFile* library_files_duplicate (GFile* src, - GFileProgressCallback progress_callback, - void* progress_callback_target, - gboolean blacklist, - GError** error); -static void library_photo_on_duplicate_progress (LibraryPhoto* self, - gint64 current, - gint64 total); -static void _library_photo_on_duplicate_progress_gfile_progress_callback (gint64 current_num_bytes, - gint64 total_num_bytes, - gpointer self); -LibraryPhoto* library_photo_duplicate (LibraryPhoto* self, - GError** error); -void photo_table_duplicate (PhotoTable* self, - PhotoID* photo_id, - const gchar* new_filename, - BackingPhotoID* editable_id, - BackingPhotoID* develop_shotwell, - BackingPhotoID* develop_camera_id, - BackingPhotoID* develop_embedded_id, - PhotoID* result); -PhotoRow* photo_table_get_row (PhotoTable* self, - PhotoID* photo_id); -void thumbnail_cache_duplicate (ThumbnailSource* src_source, - ThumbnailSource* dest_source); -gboolean data_collection_add (DataCollection* self, - DataObject* object); -GType event_source_get_type (void) G_GNUC_CONST; -GType event_get_type (void) G_GNUC_CONST; -Event* media_source_get_event (MediaSource* self); -void event_attach (Event* self, - MediaSource* source); -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType tag_source_collection_get_type (void) G_GNUC_CONST; -GeeList* tag_source_collection_fetch_for_source (TagSourceCollection* self, - MediaSource* source); -void tag_attach (Tag* self, - MediaSource* source); -void spin_event_loop (void); -static gboolean library_photo_real_is_trashed (MediaSource* base); -static void library_photo_real_trash (MediaSource* base); -static void library_photo_real_untrash (MediaSource* base); -static gboolean library_photo_real_is_offline (Monitorable* base); -static void library_photo_real_mark_offline (Monitorable* base); -static void library_photo_real_mark_online (Monitorable* base); -static gboolean library_photo_real_is_flagged (Flaggable* base); -static void library_photo_real_mark_flagged (Flaggable* base); -static void library_photo_real_mark_unflagged (Flaggable* base); -static gboolean library_photo_real_internal_delete_backing (DataSource* base, - GError** error); -gboolean media_source_delete_original_file (MediaSource* self); -static void library_photo_real_destroy (DataSource* base); -void thumbnail_cache_remove (ThumbnailSource* source); -void data_source_destroy (DataSource* self); -gboolean library_photo_has_nontrash_duplicate (GFile* file, - const gchar* thumbnail_md5, - const gchar* full_md5, - PhotoFileFormat file_format); -void library_photo_get_nontrash_duplicate (GFile* file, - const gchar* thumbnail_md5, - const gchar* full_md5, - PhotoFileFormat file_format, - PhotoID* result); -static gboolean library_photo_real_has_user_generated_metadata (Photo* base); -Rating media_source_get_rating (MediaSource* self); -gchar* data_object_get_name (DataObject* self); -static void library_photo_real_set_user_metadata_for_export (Photo* base, - PhotoMetadata* metadata); -void photo_metadata_set_keywords (PhotoMetadata* self, - GeeCollection* keywords, - PhotoMetadataSetOption option); -void photo_metadata_set_rating (PhotoMetadata* self, - Rating rating); -static void library_photo_real_apply_user_metadata_for_reimport (Photo* base, - PhotoMetadata* metadata); -gchar* hierarchical_tag_utilities_make_flat_tag_safe (const gchar* in_tag); -gchar* hierarchical_tag_utilities_flat_to_hierarchical (const gchar* name); -gboolean tag_source_collection_exists (TagSourceCollection* self, - const gchar* name, - gboolean treat_htags_as_root); -static void library_photo_finalize (GObject * obj); -#define LIBRARY_PHOTO_SOURCE_HOLDING_TANK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTankPrivate)) -MediaSourceHoldingTank* media_source_holding_tank_new (MediaSourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target); -MediaSourceHoldingTank* media_source_holding_tank_construct (GType object_type, - MediaSourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target); -static void library_photo_source_holding_tank_real_notify_contents_altered (SourceHoldingTank* base, - GeeCollection* added, - GeeCollection* removed); -static void library_photo_source_holding_tank_on_editable_replaced (LibraryPhotoSourceHoldingTank* self, - Photo* _photo, - GFile* old_file, - GFile* new_file); -static void _library_photo_source_holding_tank_on_editable_replaced_photo_editable_replaced (Photo* _sender, - GFile* old_file, - GFile* new_file, - gpointer self); -static void library_photo_source_holding_tank_on_raw_development_modified (LibraryPhotoSourceHoldingTank* self, - Photo* _photo); -static void _library_photo_source_holding_tank_on_raw_development_modified_photo_raw_development_modified (Photo* _sender, - gpointer self); -void source_holding_tank_notify_contents_altered (SourceHoldingTank* self, - GeeCollection* added, - GeeCollection* removed); -static void library_photo_source_holding_tank_finalize (SourceHoldingTank * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - -static const gchar* PHOTO_IMAGE_EXTENSIONS[69] = {"jpg", "jpeg", "jpe", "tiff", "tif", "png", "gif", "bmp", "ppm", "pgm", "pbm", "pnm", "thm", "tga", "ilbm", "pcx", "ecw", "img", "sid", "cd5", "fits", "pgf", "cgm", "svg", "odg", "eps", "pdf", "swf", "wmf", "emf", "xps", "pns", "jps", "mpo", "3fr", "arw", "srf", "sr2", "bay", "crw", "cr2", "cap", "iiq", "eip", "dcs", "dcr", "drf", "k25", "kdc", "dng", "erf", "fff", "mef", "mos", "mrw", "nef", "nrw", "orf", "ptx", "pef", "pxn", "r3d", "raf", "raw", "rw2", "rwl", "rwz", "x3f", "srw"}; - -GType -backing_fetch_mode_get_type (void) -{ - static volatile gsize backing_fetch_mode_type_id__volatile = 0; - if (g_once_init_enter (&backing_fetch_mode_type_id__volatile)) { - static const GEnumValue values[] = {{BACKING_FETCH_MODE_SOURCE, "BACKING_FETCH_MODE_SOURCE", "source"}, {BACKING_FETCH_MODE_BASELINE, "BACKING_FETCH_MODE_BASELINE", "baseline"}, {BACKING_FETCH_MODE_MASTER, "BACKING_FETCH_MODE_MASTER", "master"}, {BACKING_FETCH_MODE_UNMODIFIED, "BACKING_FETCH_MODE_UNMODIFIED", "unmodified"}, {0, NULL, NULL}}; - GType backing_fetch_mode_type_id; - backing_fetch_mode_type_id = g_enum_register_static ("BackingFetchMode", values); - g_once_init_leave (&backing_fetch_mode_type_id__volatile, backing_fetch_mode_type_id); - } - return backing_fetch_mode_type_id__volatile; -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 41 "/home/jens/Source/shotwell/src/Photo.vala" - return self ? g_object_ref (self) : NULL; -#line 3803 "Photo.c" -} - - -static gpointer -_thumbnails_ref0 (gpointer self) -{ -#line 48 "/home/jens/Source/shotwell/src/Photo.vala" - return self ? thumbnails_ref (self) : NULL; -#line 3812 "Photo.c" -} - - -PhotoImportParams* -photo_import_params_construct (GType object_type, - GFile* file, - GFile* final_associated_file, - ImportID* import_id, - PhotoFileSnifferOptions sniffer_options, - const gchar* exif_md5, - const gchar* thumbnail_md5, - const gchar* full_md5, - Thumbnails* thumbnails) -{ - PhotoImportParams* self = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - ImportID _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - Thumbnails* _tmp6_; -#line 38 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 38 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((final_associated_file == NULL) || G_IS_FILE (final_associated_file), NULL); -#line 38 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (import_id != NULL, NULL); -#line 38 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((thumbnails == NULL) || IS_THUMBNAILS (thumbnails), NULL); -#line 38 "/home/jens/Source/shotwell/src/Photo.vala" - self = (PhotoImportParams*) g_type_create_instance (object_type); -#line 41 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _g_object_ref0 (file); -#line 41 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->file); -#line 41 "/home/jens/Source/shotwell/src/Photo.vala" - self->file = _tmp0_; -#line 42 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _g_object_ref0 (final_associated_file); -#line 42 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->final_associated_file); -#line 42 "/home/jens/Source/shotwell/src/Photo.vala" - self->final_associated_file = _tmp1_; -#line 43 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = *import_id; -#line 43 "/home/jens/Source/shotwell/src/Photo.vala" - self->import_id = _tmp2_; -#line 44 "/home/jens/Source/shotwell/src/Photo.vala" - self->sniffer_options = sniffer_options; -#line 45 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = g_strdup (exif_md5); -#line 45 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (self->exif_md5); -#line 45 "/home/jens/Source/shotwell/src/Photo.vala" - self->exif_md5 = _tmp3_; -#line 46 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = g_strdup (thumbnail_md5); -#line 46 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (self->thumbnail_md5); -#line 46 "/home/jens/Source/shotwell/src/Photo.vala" - self->thumbnail_md5 = _tmp4_; -#line 47 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = g_strdup (full_md5); -#line 47 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (self->full_md5); -#line 47 "/home/jens/Source/shotwell/src/Photo.vala" - self->full_md5 = _tmp5_; -#line 48 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _thumbnails_ref0 (thumbnails); -#line 48 "/home/jens/Source/shotwell/src/Photo.vala" - _thumbnails_unref0 (self->thumbnails); -#line 48 "/home/jens/Source/shotwell/src/Photo.vala" - self->thumbnails = _tmp6_; -#line 38 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 3889 "Photo.c" -} - - -PhotoImportParams* -photo_import_params_new (GFile* file, - GFile* final_associated_file, - ImportID* import_id, - PhotoFileSnifferOptions sniffer_options, - const gchar* exif_md5, - const gchar* thumbnail_md5, - const gchar* full_md5, - Thumbnails* thumbnails) -{ -#line 38 "/home/jens/Source/shotwell/src/Photo.vala" - return photo_import_params_construct (TYPE_PHOTO_IMPORT_PARAMS, file, final_associated_file, import_id, sniffer_options, exif_md5, thumbnail_md5, full_md5, thumbnails); -#line 3905 "Photo.c" -} - - -PhotoImportParams* -photo_import_params_construct_create_placeholder (GType object_type, - GFile* file, - ImportID* import_id) -{ - PhotoImportParams* self = NULL; - GFile* _tmp0_; - ImportID _tmp1_; -#line 52 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 52 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (import_id != NULL, NULL); -#line 52 "/home/jens/Source/shotwell/src/Photo.vala" - self = (PhotoImportParams*) g_type_create_instance (object_type); -#line 53 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _g_object_ref0 (file); -#line 53 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->file); -#line 53 "/home/jens/Source/shotwell/src/Photo.vala" - self->file = _tmp0_; -#line 54 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = *import_id; -#line 54 "/home/jens/Source/shotwell/src/Photo.vala" - self->import_id = _tmp1_; -#line 55 "/home/jens/Source/shotwell/src/Photo.vala" - self->sniffer_options = PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5; -#line 56 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (self->exif_md5); -#line 56 "/home/jens/Source/shotwell/src/Photo.vala" - self->exif_md5 = NULL; -#line 57 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (self->thumbnail_md5); -#line 57 "/home/jens/Source/shotwell/src/Photo.vala" - self->thumbnail_md5 = NULL; -#line 58 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (self->full_md5); -#line 58 "/home/jens/Source/shotwell/src/Photo.vala" - self->full_md5 = NULL; -#line 59 "/home/jens/Source/shotwell/src/Photo.vala" - _thumbnails_unref0 (self->thumbnails); -#line 59 "/home/jens/Source/shotwell/src/Photo.vala" - self->thumbnails = NULL; -#line 52 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 3953 "Photo.c" -} - - -PhotoImportParams* -photo_import_params_new_create_placeholder (GFile* file, - ImportID* import_id) -{ -#line 52 "/home/jens/Source/shotwell/src/Photo.vala" - return photo_import_params_construct_create_placeholder (TYPE_PHOTO_IMPORT_PARAMS, file, import_id); -#line 3963 "Photo.c" -} - - -static void -value_photo_import_params_init (GValue* value) -{ -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 3972 "Photo.c" -} - - -static void -value_photo_import_params_free_value (GValue* value) -{ -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - if (value->data[0].v_pointer) { -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - photo_import_params_unref (value->data[0].v_pointer); -#line 3983 "Photo.c" - } -} - - -static void -value_photo_import_params_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - if (src_value->data[0].v_pointer) { -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - dest_value->data[0].v_pointer = photo_import_params_ref (src_value->data[0].v_pointer); -#line 3996 "Photo.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - dest_value->data[0].v_pointer = NULL; -#line 4000 "Photo.c" - } -} - - -static gpointer -value_photo_import_params_peek_pointer (const GValue* value) -{ -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - return value->data[0].v_pointer; -#line 4010 "Photo.c" -} - - -static gchar* -value_photo_import_params_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - if (collect_values[0].v_pointer) { -#line 4022 "Photo.c" - PhotoImportParams * object; - object = collect_values[0].v_pointer; -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - if (object->parent_instance.g_class == NULL) { -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4029 "Photo.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4033 "Photo.c" - } -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = photo_import_params_ref (object); -#line 4037 "Photo.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 4041 "Photo.c" - } -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 4045 "Photo.c" -} - - -static gchar* -value_photo_import_params_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PhotoImportParams ** object_p; - object_p = collect_values[0].v_pointer; -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - if (!object_p) { -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 4061 "Photo.c" - } -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - if (!value->data[0].v_pointer) { -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = NULL; -#line 4067 "Photo.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = value->data[0].v_pointer; -#line 4071 "Photo.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = photo_import_params_ref (value->data[0].v_pointer); -#line 4075 "Photo.c" - } -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 4079 "Photo.c" -} - - -GParamSpec* -param_spec_photo_import_params (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecPhotoImportParams* spec; -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_IMPORT_PARAMS), NULL); -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - return G_PARAM_SPEC (spec); -#line 4099 "Photo.c" -} - - -gpointer -value_get_photo_import_params (const GValue* value) -{ -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_IMPORT_PARAMS), NULL); -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - return value->data[0].v_pointer; -#line 4110 "Photo.c" -} - - -void -value_set_photo_import_params (GValue* value, - gpointer v_object) -{ - PhotoImportParams * old; -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_IMPORT_PARAMS)); -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - old = value->data[0].v_pointer; -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - if (v_object) { -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_IMPORT_PARAMS)); -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = v_object; -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - photo_import_params_ref (value->data[0].v_pointer); -#line 4133 "Photo.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 4137 "Photo.c" - } -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - if (old) { -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - photo_import_params_unref (old); -#line 4143 "Photo.c" - } -} - - -void -value_take_photo_import_params (GValue* value, - gpointer v_object) -{ - PhotoImportParams * old; -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_IMPORT_PARAMS)); -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - old = value->data[0].v_pointer; -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - if (v_object) { -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_IMPORT_PARAMS)); -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = v_object; -#line 4165 "Photo.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 4169 "Photo.c" - } -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - if (old) { -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - photo_import_params_unref (old); -#line 4175 "Photo.c" - } -} - - -static void -photo_import_params_class_init (PhotoImportParamsClass * klass) -{ -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - photo_import_params_parent_class = g_type_class_peek_parent (klass); -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoImportParamsClass *) klass)->finalize = photo_import_params_finalize; -#line 4187 "Photo.c" -} - - -static void -photo_import_params_instance_init (PhotoImportParams * self) -{ - PhotoRow* _tmp0_; -#line 24 "/home/jens/Source/shotwell/src/Photo.vala" - self->final_associated_file = NULL; -#line 35 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_row_new (); -#line 35 "/home/jens/Source/shotwell/src/Photo.vala" - self->row = _tmp0_; -#line 36 "/home/jens/Source/shotwell/src/Photo.vala" - self->keywords = NULL; -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - self->ref_count = 1; -#line 4205 "Photo.c" -} - - -static void -photo_import_params_finalize (PhotoImportParams * obj) -{ - PhotoImportParams * self; -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParams); -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_handlers_destroy (self); -#line 23 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->file); -#line 24 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->final_associated_file); -#line 27 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (self->exif_md5); -#line 28 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (self->thumbnail_md5); -#line 29 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (self->full_md5); -#line 32 "/home/jens/Source/shotwell/src/Photo.vala" - _thumbnails_unref0 (self->thumbnails); -#line 35 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_row_unref0 (self->row); -#line 36 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->keywords); -#line 4233 "Photo.c" -} - - -GType -photo_import_params_get_type (void) -{ - static volatile gsize photo_import_params_type_id__volatile = 0; - if (g_once_init_enter (&photo_import_params_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_photo_import_params_init, value_photo_import_params_free_value, value_photo_import_params_copy_value, value_photo_import_params_peek_pointer, "p", value_photo_import_params_collect_value, "p", value_photo_import_params_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PhotoImportParamsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_import_params_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoImportParams), 0, (GInstanceInitFunc) photo_import_params_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType photo_import_params_type_id; - photo_import_params_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoImportParams", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&photo_import_params_type_id__volatile, photo_import_params_type_id); - } - return photo_import_params_type_id__volatile; -} - - -gpointer -photo_import_params_ref (gpointer instance) -{ - PhotoImportParams * self; - self = instance; -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - g_atomic_int_inc (&self->ref_count); -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - return instance; -#line 4262 "Photo.c" -} - - -void -photo_import_params_unref (gpointer instance) -{ - PhotoImportParams * self; - self = instance; -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_IMPORT_PARAMS_GET_CLASS (self)->finalize (self); -#line 21 "/home/jens/Source/shotwell/src/Photo.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 4277 "Photo.c" - } -} - - -PhotoTransformationState* -photo_transformation_state_construct (GType object_type) -{ - PhotoTransformationState * self = NULL; -#line 72 "/home/jens/Source/shotwell/src/Photo.vala" - self = (PhotoTransformationState*) g_object_new (object_type, NULL); -#line 72 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 4290 "Photo.c" -} - - -gboolean -photo_transformation_state_is_broken (PhotoTransformationState* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 75 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO_TRANSFORMATION_STATE (self), FALSE); -#line 76 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->is_broke; -#line 76 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp0_; -#line 76 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4307 "Photo.c" -} - - -static void -photo_transformation_state_real_broken (PhotoTransformationState* self) -{ -#line 69 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->is_broke = TRUE; -#line 4316 "Photo.c" -} - - -static void -photo_transformation_state_class_init (PhotoTransformationStateClass * klass) -{ -#line 63 "/home/jens/Source/shotwell/src/Photo.vala" - photo_transformation_state_parent_class = g_type_class_peek_parent (klass); -#line 63 "/home/jens/Source/shotwell/src/Photo.vala" - g_type_class_add_private (klass, sizeof (PhotoTransformationStatePrivate)); -#line 63 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoTransformationStateClass *) klass)->broken = photo_transformation_state_real_broken; -#line 63 "/home/jens/Source/shotwell/src/Photo.vala" - G_OBJECT_CLASS (klass)->finalize = photo_transformation_state_finalize; -#line 63 "/home/jens/Source/shotwell/src/Photo.vala" - photo_transformation_state_signals[PHOTO_TRANSFORMATION_STATE_BROKEN_SIGNAL] = g_signal_new ("broken", TYPE_PHOTO_TRANSFORMATION_STATE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoTransformationStateClass, broken), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 4333 "Photo.c" -} - - -static void -photo_transformation_state_instance_init (PhotoTransformationState * self) -{ -#line 63 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv = PHOTO_TRANSFORMATION_STATE_GET_PRIVATE (self); -#line 64 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->is_broke = FALSE; -#line 4344 "Photo.c" -} - - -static void -photo_transformation_state_finalize (GObject * obj) -{ - PhotoTransformationState * self; -#line 63 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationState); -#line 63 "/home/jens/Source/shotwell/src/Photo.vala" - G_OBJECT_CLASS (photo_transformation_state_parent_class)->finalize (obj); -#line 4356 "Photo.c" -} - - -GType -photo_transformation_state_get_type (void) -{ - static volatile gsize photo_transformation_state_type_id__volatile = 0; - if (g_once_init_enter (&photo_transformation_state_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoTransformationStateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_transformation_state_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoTransformationState), 0, (GInstanceInitFunc) photo_transformation_state_instance_init, NULL }; - GType photo_transformation_state_type_id; - photo_transformation_state_type_id = g_type_register_static (G_TYPE_OBJECT, "PhotoTransformationState", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&photo_transformation_state_type_id__volatile, photo_transformation_state_type_id); - } - return photo_transformation_state_type_id__volatile; -} - - -gboolean -rating_can_increase (Rating self) -{ - gboolean result = FALSE; -#line 90 "/home/jens/Source/shotwell/src/Photo.vala" - result = self < RATING_FIVE; -#line 90 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4382 "Photo.c" -} - - -gboolean -rating_can_decrease (Rating self) -{ - gboolean result = FALSE; -#line 94 "/home/jens/Source/shotwell/src/Photo.vala" - result = self > RATING_REJECTED; -#line 94 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4394 "Photo.c" -} - - -gboolean -rating_is_valid (Rating self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; -#line 98 "/home/jens/Source/shotwell/src/Photo.vala" - if (self >= RATING_REJECTED) { -#line 98 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self <= RATING_FIVE; -#line 4407 "Photo.c" - } else { -#line 98 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = FALSE; -#line 4411 "Photo.c" - } -#line 98 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp0_; -#line 98 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4417 "Photo.c" -} - - -Rating -rating_increase (Rating self) -{ - Rating result = 0; - Rating _tmp0_ = 0; -#line 102 "/home/jens/Source/shotwell/src/Photo.vala" - if (rating_can_increase (self)) { -#line 102 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self + 1; -#line 4430 "Photo.c" - } else { -#line 102 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self; -#line 4434 "Photo.c" - } -#line 102 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp0_; -#line 102 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4440 "Photo.c" -} - - -Rating -rating_decrease (Rating self) -{ - Rating result = 0; - Rating _tmp0_ = 0; -#line 106 "/home/jens/Source/shotwell/src/Photo.vala" - if (rating_can_decrease (self)) { -#line 106 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self - 1; -#line 4453 "Photo.c" - } else { -#line 106 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self; -#line 4457 "Photo.c" - } -#line 106 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp0_; -#line 106 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4463 "Photo.c" -} - - -gint -rating_serialize (Rating self) -{ - gint result = 0; -#line 110 "/home/jens/Source/shotwell/src/Photo.vala" - switch (self) { -#line 110 "/home/jens/Source/shotwell/src/Photo.vala" - case RATING_REJECTED: -#line 4475 "Photo.c" - { -#line 112 "/home/jens/Source/shotwell/src/Photo.vala" - result = -1; -#line 112 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4481 "Photo.c" - } -#line 110 "/home/jens/Source/shotwell/src/Photo.vala" - case RATING_UNRATED: -#line 4485 "Photo.c" - { -#line 114 "/home/jens/Source/shotwell/src/Photo.vala" - result = 0; -#line 114 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4491 "Photo.c" - } -#line 110 "/home/jens/Source/shotwell/src/Photo.vala" - case RATING_ONE: -#line 4495 "Photo.c" - { -#line 116 "/home/jens/Source/shotwell/src/Photo.vala" - result = 1; -#line 116 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4501 "Photo.c" - } -#line 110 "/home/jens/Source/shotwell/src/Photo.vala" - case RATING_TWO: -#line 4505 "Photo.c" - { -#line 118 "/home/jens/Source/shotwell/src/Photo.vala" - result = 2; -#line 118 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4511 "Photo.c" - } -#line 110 "/home/jens/Source/shotwell/src/Photo.vala" - case RATING_THREE: -#line 4515 "Photo.c" - { -#line 120 "/home/jens/Source/shotwell/src/Photo.vala" - result = 3; -#line 120 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4521 "Photo.c" - } -#line 110 "/home/jens/Source/shotwell/src/Photo.vala" - case RATING_FOUR: -#line 4525 "Photo.c" - { -#line 122 "/home/jens/Source/shotwell/src/Photo.vala" - result = 4; -#line 122 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4531 "Photo.c" - } -#line 110 "/home/jens/Source/shotwell/src/Photo.vala" - case RATING_FIVE: -#line 4535 "Photo.c" - { -#line 124 "/home/jens/Source/shotwell/src/Photo.vala" - result = 5; -#line 124 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4541 "Photo.c" - } - default: - { -#line 126 "/home/jens/Source/shotwell/src/Photo.vala" - result = 0; -#line 126 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4549 "Photo.c" - } - } -} - - -Rating -rating_unserialize (gint value) -{ - Rating result = 0; -#line 131 "/home/jens/Source/shotwell/src/Photo.vala" - if (value > ((gint) RATING_FIVE)) { -#line 132 "/home/jens/Source/shotwell/src/Photo.vala" - result = RATING_FIVE; -#line 132 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4565 "Photo.c" - } else { -#line 133 "/home/jens/Source/shotwell/src/Photo.vala" - if (value < ((gint) RATING_REJECTED)) { -#line 134 "/home/jens/Source/shotwell/src/Photo.vala" - result = RATING_REJECTED; -#line 134 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4573 "Photo.c" - } - } -#line 136 "/home/jens/Source/shotwell/src/Photo.vala" - switch (value) { -#line 136 "/home/jens/Source/shotwell/src/Photo.vala" - case -1: -#line 4580 "Photo.c" - { -#line 138 "/home/jens/Source/shotwell/src/Photo.vala" - result = RATING_REJECTED; -#line 138 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4586 "Photo.c" - } -#line 136 "/home/jens/Source/shotwell/src/Photo.vala" - case 0: -#line 4590 "Photo.c" - { -#line 140 "/home/jens/Source/shotwell/src/Photo.vala" - result = RATING_UNRATED; -#line 140 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4596 "Photo.c" - } -#line 136 "/home/jens/Source/shotwell/src/Photo.vala" - case 1: -#line 4600 "Photo.c" - { -#line 142 "/home/jens/Source/shotwell/src/Photo.vala" - result = RATING_ONE; -#line 142 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4606 "Photo.c" - } -#line 136 "/home/jens/Source/shotwell/src/Photo.vala" - case 2: -#line 4610 "Photo.c" - { -#line 144 "/home/jens/Source/shotwell/src/Photo.vala" - result = RATING_TWO; -#line 144 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4616 "Photo.c" - } -#line 136 "/home/jens/Source/shotwell/src/Photo.vala" - case 3: -#line 4620 "Photo.c" - { -#line 146 "/home/jens/Source/shotwell/src/Photo.vala" - result = RATING_THREE; -#line 146 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4626 "Photo.c" - } -#line 136 "/home/jens/Source/shotwell/src/Photo.vala" - case 4: -#line 4630 "Photo.c" - { -#line 148 "/home/jens/Source/shotwell/src/Photo.vala" - result = RATING_FOUR; -#line 148 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4636 "Photo.c" - } -#line 136 "/home/jens/Source/shotwell/src/Photo.vala" - case 5: -#line 4640 "Photo.c" - { -#line 150 "/home/jens/Source/shotwell/src/Photo.vala" - result = RATING_FIVE; -#line 150 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4646 "Photo.c" - } - default: - { -#line 152 "/home/jens/Source/shotwell/src/Photo.vala" - result = RATING_UNRATED; -#line 152 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4654 "Photo.c" - } - } -} - - -GType -rating_get_type (void) -{ - static volatile gsize rating_type_id__volatile = 0; - if (g_once_init_enter (&rating_type_id__volatile)) { - static const GEnumValue values[] = {{RATING_REJECTED, "RATING_REJECTED", "rejected"}, {RATING_UNRATED, "RATING_UNRATED", "unrated"}, {RATING_ONE, "RATING_ONE", "one"}, {RATING_TWO, "RATING_TWO", "two"}, {RATING_THREE, "RATING_THREE", "three"}, {RATING_FOUR, "RATING_FOUR", "four"}, {RATING_FIVE, "RATING_FIVE", "five"}, {0, NULL, NULL}}; - GType rating_type_id; - rating_type_id = g_enum_register_static ("Rating", values); - g_once_init_leave (&rating_type_id__volatile, rating_type_id); - } - return rating_type_id__volatile; -} - - -gboolean -photo_exception_prohibits (PhotoException self, - PhotoException exception) -{ - gboolean result = FALSE; -#line 228 "/home/jens/Source/shotwell/src/Photo.vala" - result = (self & exception) != 0; -#line 228 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4683 "Photo.c" -} - - -gboolean -photo_exception_allows (PhotoException self, - PhotoException exception) -{ - gboolean result = FALSE; -#line 232 "/home/jens/Source/shotwell/src/Photo.vala" - result = (self & exception) == 0; -#line 232 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 4696 "Photo.c" -} - - -GType -photo_exception_get_type (void) -{ - static volatile gsize photo_exception_type_id__volatile = 0; - if (g_once_init_enter (&photo_exception_type_id__volatile)) { - static const GEnumValue values[] = {{PHOTO_EXCEPTION_NONE, "PHOTO_EXCEPTION_NONE", "none"}, {PHOTO_EXCEPTION_ORIENTATION, "PHOTO_EXCEPTION_ORIENTATION", "orientation"}, {PHOTO_EXCEPTION_CROP, "PHOTO_EXCEPTION_CROP", "crop"}, {PHOTO_EXCEPTION_REDEYE, "PHOTO_EXCEPTION_REDEYE", "redeye"}, {PHOTO_EXCEPTION_ADJUST, "PHOTO_EXCEPTION_ADJUST", "adjust"}, {PHOTO_EXCEPTION_STRAIGHTEN, "PHOTO_EXCEPTION_STRAIGHTEN", "straighten"}, {PHOTO_EXCEPTION_ALL, "PHOTO_EXCEPTION_ALL", "all"}, {0, NULL, NULL}}; - GType photo_exception_type_id; - photo_exception_type_id = g_enum_register_static ("PhotoException", values); - g_once_init_leave (&photo_exception_type_id__volatile, photo_exception_type_id); - } - return photo_exception_type_id__volatile; -} - - -static gpointer -_photo_row_ref0 (gpointer self) -{ -#line 400 "/home/jens/Source/shotwell/src/Photo.vala" - return self ? photo_row_ref (self) : NULL; -#line 4719 "Photo.c" -} - - -static gpointer -_backing_photo_row_ref0 (gpointer self) -{ -#line 421 "/home/jens/Source/shotwell/src/Photo.vala" - return self ? backing_photo_row_ref (self) : NULL; -#line 4728 "Photo.c" -} - - -Photo* -photo_construct (GType object_type, - PhotoRow* row) -{ - Photo * self = NULL; - PhotoRow* _tmp0_; - PhotoRow* _tmp1_; - PhotoRow* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - PhotoRow* _tmp5_; - PhotoRow* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_; - PhotoBackingReaders* _tmp9_; - BackingPhotoRow* _tmp10_; - PhotoFileFormat _tmp11_; - BackingPhotoRow* _tmp12_; - const gchar* _tmp13_; - PhotoFileReader* _tmp14_; - gchar* basename = NULL; - BackingPhotoRow* _tmp15_; - const gchar* _tmp16_; - gchar* _tmp17_; - const gchar* _tmp18_; - const gchar* _tmp21_; - BackingPhotoID _tmp25_; - gint64 _tmp26_; - BackingPhotoRow* _tmp41_; - PhotoFileFormat _tmp42_; - gboolean _tmp57_ = FALSE; - BackingPhotoRow* _tmp58_; - PhotoFileFormat _tmp59_; - PhotoBackingReaders* _tmp71_; - PhotoFileReader* _tmp72_; - PhotoRow* _tmp88_; - time_t _tmp89_; - GError * _inner_error_ = NULL; -#line 399 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO_ROW (row), NULL); -#line 399 "/home/jens/Source/shotwell/src/Photo.vala" - self = (Photo*) photo_source_construct (object_type, DATA_OBJECT_INVALID_OBJECT_ID); -#line 400 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _photo_row_ref0 (row); -#line 400 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_row_unref0 (self->row); -#line 400 "/home/jens/Source/shotwell/src/Photo.vala" - self->row = _tmp0_; -#line 403 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 403 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->row; -#line 403 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_->title; -#line 403 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = media_source_prep_title (_tmp3_); -#line 403 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp1_->title); -#line 403 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_->title = _tmp4_; -#line 404 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 404 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->row; -#line 404 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_->comment; -#line 404 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = media_source_prep_comment (_tmp7_); -#line 404 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp5_->comment); -#line 404 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_->comment = _tmp8_; -#line 408 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = self->priv->readers; -#line 408 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = row->master; -#line 408 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_->file_format; -#line 408 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = row->master; -#line 408 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_->filepath; -#line 408 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = photo_file_format_create_reader (_tmp11_, _tmp13_); -#line 408 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp9_->master); -#line 408 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_->master = _tmp14_; -#line 411 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = row->master; -#line 411 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = _tmp15_->filepath; -#line 411 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = string_sliced_at_last_char (_tmp16_, (gunichar) G_DIR_SEPARATOR, 0); -#line 411 "/home/jens/Source/shotwell/src/Photo.vala" - basename = _tmp17_; -#line 412 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = basename; -#line 412 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp18_ != NULL) { -#line 4832 "Photo.c" - const gchar* _tmp19_; - gchar* _tmp20_; -#line 413 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = basename; -#line 413 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = string_sliced_at (_tmp19_, 1); -#line 413 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (self->priv->file_title); -#line 413 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->file_title = _tmp20_; -#line 4843 "Photo.c" - } -#line 415 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = self->priv->file_title; -#line 415 "/home/jens/Source/shotwell/src/Photo.vala" - if (is_string_empty (_tmp21_)) { -#line 4849 "Photo.c" - BackingPhotoRow* _tmp22_; - const gchar* _tmp23_; - gchar* _tmp24_; -#line 416 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = row->master; -#line 416 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _tmp22_->filepath; -#line 416 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = g_strdup (_tmp23_); -#line 416 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (self->priv->file_title); -#line 416 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->file_title = _tmp24_; -#line 4863 "Photo.c" - } -#line 418 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = row->editable_id; -#line 418 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = _tmp25_.id; -#line 418 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp26_ != BACKING_PHOTO_ID_INVALID) { -#line 4871 "Photo.c" - BackingPhotoRow* e = NULL; - BackingPhotoID _tmp27_; - BackingPhotoRow* _tmp28_; - BackingPhotoRow* _tmp29_; -#line 419 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = row->editable_id; -#line 419 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = photo_get_backing_row (self, &_tmp27_); -#line 419 "/home/jens/Source/shotwell/src/Photo.vala" - e = _tmp28_; -#line 420 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = e; -#line 420 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp29_ != NULL) { -#line 4886 "Photo.c" - BackingPhotoRow* _tmp30_; - BackingPhotoRow* _tmp31_; - PhotoBackingReaders* _tmp32_; - BackingPhotoRow* _tmp33_; - PhotoFileFormat _tmp34_; - BackingPhotoRow* _tmp35_; - const gchar* _tmp36_; - PhotoFileReader* _tmp37_; -#line 421 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = e; -#line 421 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = _backing_photo_row_ref0 (_tmp30_); -#line 421 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->priv->editable); -#line 421 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->editable = _tmp31_; -#line 422 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = self->priv->readers; -#line 422 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = self->priv->editable; -#line 422 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = _tmp33_->file_format; -#line 422 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = self->priv->editable; -#line 422 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = _tmp35_->filepath; -#line 422 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = photo_file_format_create_reader (_tmp34_, _tmp36_); -#line 422 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp32_->editable); -#line 422 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_->editable = _tmp37_; -#line 4919 "Photo.c" - } else { - { - PhotoTable* _tmp38_; - PhotoTable* _tmp39_; - PhotoRow* _tmp40_; -#line 425 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = photo_table_get_instance (); -#line 425 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = _tmp38_; -#line 425 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = self->row; -#line 425 "/home/jens/Source/shotwell/src/Photo.vala" - photo_table_detach_editable (_tmp39_, _tmp40_, &_inner_error_); -#line 425 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp39_); -#line 425 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 425 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 4939 "Photo.c" - goto __catch268_database_error; - } -#line 425 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (e); -#line 425 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (basename); -#line 425 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 425 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 425 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 4952 "Photo.c" - } - } - goto __finally268; - __catch268_database_error: - { - GError* err = NULL; -#line 424 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 424 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 424 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 4965 "Photo.c" - } - __finally268: -#line 424 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 424 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (e); -#line 424 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (basename); -#line 424 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 424 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 424 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 4980 "Photo.c" - } -#line 432 "/home/jens/Source/shotwell/src/Photo.vala" - photo_internal_remove_all_transformations (self, FALSE); -#line 4984 "Photo.c" - } -#line 418 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (e); -#line 4988 "Photo.c" - } -#line 436 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = row->master; -#line 436 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = _tmp41_->file_format; -#line 436 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp42_ == PHOTO_FILE_FORMAT_RAW) { -#line 4996 "Photo.c" - GeeHashMap* _tmp43_; - gint _tmp44_; - RawDeveloper* _tmp45_; -#line 438 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = gee_hash_map_new (TYPE_RAW_DEVELOPER, NULL, NULL, TYPE_BACKING_PHOTO_ROW, (GBoxedCopyFunc) backing_photo_row_ref, (GDestroyNotify) backing_photo_row_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 438 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->developments); -#line 438 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->developments = _tmp43_; -#line 439 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = raw_developer_as_array (&_tmp44_); -#line 5008 "Photo.c" - { - RawDeveloper* d_collection = NULL; - gint d_collection_length1 = 0; - gint _d_collection_size_ = 0; - gint d_it = 0; -#line 439 "/home/jens/Source/shotwell/src/Photo.vala" - d_collection = _tmp45_; -#line 439 "/home/jens/Source/shotwell/src/Photo.vala" - d_collection_length1 = _tmp44_; -#line 439 "/home/jens/Source/shotwell/src/Photo.vala" - for (d_it = 0; d_it < _tmp44_; d_it = d_it + 1) { -#line 5020 "Photo.c" - RawDeveloper d = 0; -#line 439 "/home/jens/Source/shotwell/src/Photo.vala" - d = d_collection[d_it]; -#line 5024 "Photo.c" - { - BackingPhotoID id = {0}; - BackingPhotoID* _tmp46_; - gint _tmp46__length1; - RawDeveloper _tmp47_; - BackingPhotoID _tmp48_; - BackingPhotoID _tmp49_; - gint64 _tmp50_; -#line 440 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = row->development_ids; -#line 440 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46__length1 = row->development_ids_length1; -#line 440 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = d; -#line 440 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = _tmp46_[_tmp47_]; -#line 440 "/home/jens/Source/shotwell/src/Photo.vala" - id = _tmp48_; -#line 441 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = id; -#line 441 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = _tmp49_.id; -#line 441 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp50_ != BACKING_PHOTO_ID_INVALID) { -#line 5049 "Photo.c" - BackingPhotoRow* bpr = NULL; - BackingPhotoID _tmp51_; - BackingPhotoRow* _tmp52_; - BackingPhotoRow* _tmp53_; -#line 442 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp51_ = id; -#line 442 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp52_ = photo_get_backing_row (self, &_tmp51_); -#line 442 "/home/jens/Source/shotwell/src/Photo.vala" - bpr = _tmp52_; -#line 443 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp53_ = bpr; -#line 443 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp53_ != NULL) { -#line 5064 "Photo.c" - GeeHashMap* _tmp54_; - RawDeveloper _tmp55_; - BackingPhotoRow* _tmp56_; -#line 444 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp54_ = self->priv->developments; -#line 444 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp55_ = d; -#line 444 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp56_ = bpr; -#line 444 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp55_), _tmp56_); -#line 5076 "Photo.c" - } -#line 441 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bpr); -#line 5080 "Photo.c" - } - } - } -#line 439 "/home/jens/Source/shotwell/src/Photo.vala" - d_collection = (g_free (d_collection), NULL); -#line 5086 "Photo.c" - } - } -#line 450 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp58_ = row->master; -#line 450 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp59_ = _tmp58_->file_format; -#line 450 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp59_ == PHOTO_FILE_FORMAT_RAW) { -#line 5095 "Photo.c" - GeeHashMap* _tmp60_; - RawDeveloper _tmp61_; -#line 450 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp60_ = self->priv->developments; -#line 450 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp61_ = row->developer; -#line 450 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp61_)); -#line 5104 "Photo.c" - } else { -#line 450 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_ = FALSE; -#line 5108 "Photo.c" - } -#line 450 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp57_) { -#line 5112 "Photo.c" - BackingPhotoRow* r = NULL; - GeeHashMap* _tmp62_; - RawDeveloper _tmp63_; - gpointer _tmp64_; - PhotoBackingReaders* _tmp65_; - BackingPhotoRow* _tmp66_; - PhotoFileFormat _tmp67_; - BackingPhotoRow* _tmp68_; - const gchar* _tmp69_; - PhotoFileReader* _tmp70_; -#line 451 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp62_ = self->priv->developments; -#line 451 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp63_ = row->developer; -#line 451 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp64_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp63_)); -#line 451 "/home/jens/Source/shotwell/src/Photo.vala" - r = (BackingPhotoRow*) _tmp64_; -#line 452 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp65_ = self->priv->readers; -#line 452 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp66_ = r; -#line 452 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp67_ = _tmp66_->file_format; -#line 452 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp68_ = r; -#line 452 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp69_ = _tmp68_->filepath; -#line 452 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp70_ = photo_file_format_create_reader (_tmp67_, _tmp69_); -#line 452 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp65_->developer); -#line 452 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp65_->developer = _tmp70_; -#line 450 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (r); -#line 5149 "Photo.c" - } -#line 456 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp71_ = self->priv->readers; -#line 456 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp72_ = _tmp71_->editable; -#line 456 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp72_ != NULL) { -#line 5157 "Photo.c" - BackingPhotoRow* _tmp73_; - BackingPhotoRow* _tmp74_; -#line 457 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp73_ = self->priv->editable; -#line 457 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp74_ = _backing_photo_row_ref0 (_tmp73_); -#line 457 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->backing_photo_row); -#line 457 "/home/jens/Source/shotwell/src/Photo.vala" - self->backing_photo_row = _tmp74_; -#line 5168 "Photo.c" - } else { - BackingPhotoRow* _tmp75_; - PhotoFileFormat _tmp76_; -#line 458 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp75_ = row->master; -#line 458 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp76_ = _tmp75_->file_format; -#line 458 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp76_ != PHOTO_FILE_FORMAT_RAW) { -#line 5178 "Photo.c" - PhotoRow* _tmp77_; - BackingPhotoRow* _tmp78_; - BackingPhotoRow* _tmp79_; -#line 459 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp77_ = self->row; -#line 459 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp78_ = _tmp77_->master; -#line 459 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp79_ = _backing_photo_row_ref0 (_tmp78_); -#line 459 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->backing_photo_row); -#line 459 "/home/jens/Source/shotwell/src/Photo.vala" - self->backing_photo_row = _tmp79_; -#line 5192 "Photo.c" - } else { - GeeHashMap* _tmp80_; - RawDeveloper _tmp81_; -#line 463 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp80_ = self->priv->developments; -#line 463 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp81_ = row->developer; -#line 463 "/home/jens/Source/shotwell/src/Photo.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp81_))) { -#line 5202 "Photo.c" - GeeHashMap* _tmp82_; - RawDeveloper _tmp83_; - gpointer _tmp84_; -#line 464 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp82_ = self->priv->developments; -#line 464 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp83_ = row->developer; -#line 464 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp84_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp83_)); -#line 464 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->backing_photo_row); -#line 464 "/home/jens/Source/shotwell/src/Photo.vala" - self->backing_photo_row = (BackingPhotoRow*) _tmp84_; -#line 5216 "Photo.c" - } else { - PhotoRow* _tmp85_; - BackingPhotoRow* _tmp86_; - BackingPhotoRow* _tmp87_; -#line 467 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp85_ = self->row; -#line 467 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp86_ = _tmp85_->master; -#line 467 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp87_ = _backing_photo_row_ref0 (_tmp86_); -#line 467 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->backing_photo_row); -#line 467 "/home/jens/Source/shotwell/src/Photo.vala" - self->backing_photo_row = _tmp87_; -#line 5231 "Photo.c" - } - } - } -#line 471 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp88_ = self->row; -#line 471 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp89_ = _tmp88_->exposure_time; -#line 471 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->cached_exposure_time = _tmp89_; -#line 399 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (basename); -#line 399 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 5245 "Photo.c" -} - - -void -photo_init_photo (void) -{ - GeeLinkedList* _tmp0_; -#line 475 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = gee_linked_list_new (PHOTO_TYPE_CACHED_PIXBUF, (GBoxedCopyFunc) photo_cached_pixbuf_ref, (GDestroyNotify) photo_cached_pixbuf_unref, NULL, NULL, NULL); -#line 475 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo_source_pixbuf_cache); -#line 475 "/home/jens/Source/shotwell/src/Photo.vala" - photo_source_pixbuf_cache = _tmp0_; -#line 5259 "Photo.c" -} - - -void -photo_terminate_photo (void) -{ - guint _tmp0_; -#line 479 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo_source_pixbuf_cache); -#line 479 "/home/jens/Source/shotwell/src/Photo.vala" - photo_source_pixbuf_cache = NULL; -#line 481 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_discard_source_id; -#line 481 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp0_ != ((guint) 0)) { -#line 5275 "Photo.c" - guint _tmp1_; -#line 482 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_discard_source_id; -#line 482 "/home/jens/Source/shotwell/src/Photo.vala" - g_source_remove (_tmp1_); -#line 483 "/home/jens/Source/shotwell/src/Photo.vala" - photo_discard_source_id = (guint) 0; -#line 5283 "Photo.c" - } -} - - -static void -photo_real_notify_editable_replaced (Photo* self, - GFile* old_file, - GFile* new_file) -{ -#line 487 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((old_file == NULL) || G_IS_FILE (old_file)); -#line 487 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((new_file == NULL) || G_IS_FILE (new_file)); -#line 488 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_emit (self, photo_signals[PHOTO_EDITABLE_REPLACED_SIGNAL], 0, old_file, new_file); -#line 5299 "Photo.c" -} - - -void -photo_notify_editable_replaced (Photo* self, - GFile* old_file, - GFile* new_file) -{ -#line 487 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 487 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_GET_CLASS (self)->notify_editable_replaced (self, old_file, new_file); -#line 5312 "Photo.c" -} - - -static void -photo_real_notify_raw_development_modified (Photo* self) -{ -#line 492 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_emit (self, photo_signals[PHOTO_RAW_DEVELOPMENT_MODIFIED_SIGNAL], 0); -#line 5321 "Photo.c" -} - - -void -photo_notify_raw_development_modified (Photo* self) -{ -#line 491 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 491 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_GET_CLASS (self)->notify_raw_development_modified (self); -#line 5332 "Photo.c" -} - - -static void -photo_real_notify_baseline_replaced (Photo* self) -{ -#line 496 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_emit (self, photo_signals[PHOTO_BASELINE_REPLACED_SIGNAL], 0); -#line 5341 "Photo.c" -} - - -void -photo_notify_baseline_replaced (Photo* self) -{ -#line 495 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 495 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_GET_CLASS (self)->notify_baseline_replaced (self); -#line 5352 "Photo.c" -} - - -static void -photo_real_notify_master_reimported (Photo* self, - PhotoMetadata* metadata) -{ -#line 499 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 500 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_emit (self, photo_signals[PHOTO_MASTER_REIMPORTED_SIGNAL], 0, metadata); -#line 5364 "Photo.c" -} - - -void -photo_notify_master_reimported (Photo* self, - PhotoMetadata* metadata) -{ -#line 499 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 499 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_GET_CLASS (self)->notify_master_reimported (self, metadata); -#line 5376 "Photo.c" -} - - -static void -photo_real_notify_editable_reimported (Photo* self, - PhotoMetadata* metadata) -{ -#line 503 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 504 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_emit (self, photo_signals[PHOTO_EDITABLE_REIMPORTED_SIGNAL], 0, metadata); -#line 5388 "Photo.c" -} - - -void -photo_notify_editable_reimported (Photo* self, - PhotoMetadata* metadata) -{ -#line 503 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 503 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_GET_CLASS (self)->notify_editable_reimported (self, metadata); -#line 5400 "Photo.c" -} - - -static void -photo_real_notify_source_reimported (Photo* self, - PhotoMetadata* metadata) -{ -#line 507 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 508 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_emit (self, photo_signals[PHOTO_SOURCE_REIMPORTED_SIGNAL], 0, metadata); -#line 5412 "Photo.c" -} - - -void -photo_notify_source_reimported (Photo* self, - PhotoMetadata* metadata) -{ -#line 507 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 507 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_GET_CLASS (self)->notify_source_reimported (self, metadata); -#line 5424 "Photo.c" -} - - -static void -photo_real_notify_baseline_reimported (Photo* self, - PhotoMetadata* metadata) -{ -#line 511 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 512 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_emit (self, photo_signals[PHOTO_BASELINE_REIMPORTED_SIGNAL], 0, metadata); -#line 5436 "Photo.c" -} - - -void -photo_notify_baseline_reimported (Photo* self, - PhotoMetadata* metadata) -{ -#line 511 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 511 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_GET_CLASS (self)->notify_baseline_reimported (self, metadata); -#line 5448 "Photo.c" -} - - -static gboolean -photo_real_internal_delete_backing (DataSource* base, - GError** error) -{ - Photo * self; - gboolean result = FALSE; - gboolean ret = FALSE; - GFile* file = NULL; - GFile* _tmp11_; - gboolean _tmp22_ = FALSE; - gboolean _tmp23_ = FALSE; - GError * _inner_error_ = NULL; -#line 515 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 516 "/home/jens/Source/shotwell/src/Photo.vala" - ret = TRUE; -#line 517 "/home/jens/Source/shotwell/src/Photo.vala" - file = NULL; -#line 5470 "Photo.c" - { - PhotoBackingReaders* _tmp0_; -#line 518 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->readers; -#line 518 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 5477 "Photo.c" - { - PhotoBackingReaders* _tmp1_; - PhotoFileReader* _tmp2_; -#line 519 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->readers; -#line 519 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->editable; -#line 519 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ != NULL) { -#line 5487 "Photo.c" - PhotoBackingReaders* _tmp3_; - PhotoFileReader* _tmp4_; - GFile* _tmp5_; -#line 520 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->readers; -#line 520 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->editable; -#line 520 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 520 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 520 "/home/jens/Source/shotwell/src/Photo.vala" - file = _tmp5_; -#line 5501 "Photo.c" - } - } - __finally269: - { - PhotoBackingReaders* _tmp6_; -#line 518 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->priv->readers; -#line 518 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 5511 "Photo.c" - } -#line 518 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5515 "Photo.c" - gboolean _tmp7_ = FALSE; -#line 518 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 518 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 518 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp7_; -#line 5523 "Photo.c" - } - } -#line 523 "/home/jens/Source/shotwell/src/Photo.vala" - photo_detach_editable (self, TRUE, FALSE, TRUE); -#line 525 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_get_master_file_format (self) == PHOTO_FILE_FORMAT_RAW) { -#line 5530 "Photo.c" - gint _tmp8_; - RawDeveloper* _tmp9_; -#line 526 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = raw_developer_as_array (&_tmp8_); -#line 5535 "Photo.c" - { - RawDeveloper* d_collection = NULL; - gint d_collection_length1 = 0; - gint _d_collection_size_ = 0; - gint d_it = 0; -#line 526 "/home/jens/Source/shotwell/src/Photo.vala" - d_collection = _tmp9_; -#line 526 "/home/jens/Source/shotwell/src/Photo.vala" - d_collection_length1 = _tmp8_; -#line 526 "/home/jens/Source/shotwell/src/Photo.vala" - for (d_it = 0; d_it < _tmp8_; d_it = d_it + 1) { -#line 5547 "Photo.c" - RawDeveloper d = 0; -#line 526 "/home/jens/Source/shotwell/src/Photo.vala" - d = d_collection[d_it]; -#line 5551 "Photo.c" - { - RawDeveloper _tmp10_; -#line 527 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = d; -#line 527 "/home/jens/Source/shotwell/src/Photo.vala" - photo_delete_raw_development (self, _tmp10_); -#line 5558 "Photo.c" - } - } -#line 526 "/home/jens/Source/shotwell/src/Photo.vala" - d_collection = (g_free (d_collection), NULL); -#line 5563 "Photo.c" - } - } -#line 531 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = file; -#line 531 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp11_ != NULL) { -#line 5570 "Photo.c" - { - gboolean _tmp12_ = FALSE; - GFile* _tmp13_; -#line 533 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = file; -#line 533 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = g_file_trash (_tmp13_, NULL, &_inner_error_); -#line 533 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5580 "Photo.c" - goto __catch270_g_error; - } -#line 533 "/home/jens/Source/shotwell/src/Photo.vala" - ret = _tmp12_; -#line 5585 "Photo.c" - } - goto __finally270; - __catch270_g_error: - { - GError* err = NULL; - GFile* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - GError* _tmp19_; - const gchar* _tmp20_; -#line 532 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 532 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 535 "/home/jens/Source/shotwell/src/Photo.vala" - ret = FALSE; -#line 536 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = file; -#line 536 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = g_file_get_path (_tmp14_); -#line 536 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = _tmp15_; -#line 536 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 536 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp17_; -#line 536 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = err; -#line 536 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = _tmp19_->message; -#line 536 "/home/jens/Source/shotwell/src/Photo.vala" - g_message ("Photo.vala:536: Unable to move editable %s for %s to trash: %s", _tmp16_, _tmp18_, _tmp20_); -#line 536 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp18_); -#line 536 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp16_); -#line 532 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 5626 "Photo.c" - } - __finally270: -#line 532 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5631 "Photo.c" - gboolean _tmp21_ = FALSE; -#line 532 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 532 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 532 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp21_; -#line 5639 "Photo.c" - } - } -#line 542 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = DATA_SOURCE_CLASS (photo_parent_class)->internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource), TYPE_DATA_SOURCE, DataSource), &_inner_error_); -#line 542 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5646 "Photo.c" - gboolean _tmp24_ = FALSE; -#line 542 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 542 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 542 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp24_; -#line 5654 "Photo.c" - } -#line 542 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp23_) { -#line 5658 "Photo.c" - gboolean _tmp25_; -#line 542 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = ret; -#line 542 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = _tmp25_; -#line 5664 "Photo.c" - } else { -#line 542 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = FALSE; -#line 5668 "Photo.c" - } -#line 542 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp22_; -#line 542 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 542 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 5676 "Photo.c" -} - - -static BackingPhotoRow* -photo_get_backing_row (Photo* self, - BackingPhotoID* id) -{ - BackingPhotoRow* result = NULL; - BackingPhotoID _tmp0_; - gint64 _tmp1_; - BackingPhotoRow* backing_row = NULL; - BackingPhotoRow* _tmp13_; - GError * _inner_error_ = NULL; -#line 547 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 547 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (id != NULL, NULL); -#line 548 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = *id; -#line 548 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_.id; -#line 548 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ == BACKING_PHOTO_ID_INVALID) { -#line 549 "/home/jens/Source/shotwell/src/Photo.vala" - result = NULL; -#line 549 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 5704 "Photo.c" - } -#line 551 "/home/jens/Source/shotwell/src/Photo.vala" - backing_row = NULL; -#line 5708 "Photo.c" - { - BackingPhotoRow* _tmp2_ = NULL; - BackingPhotoTable* _tmp3_; - BackingPhotoTable* _tmp4_; - BackingPhotoID _tmp5_; - BackingPhotoRow* _tmp6_; - BackingPhotoRow* _tmp7_; - BackingPhotoRow* _tmp8_; -#line 553 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = backing_photo_table_get_instance (); -#line 553 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 553 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = *id; -#line 553 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = backing_photo_table_fetch (_tmp4_, &_tmp5_, &_inner_error_); -#line 553 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_; -#line 553 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp4_); -#line 553 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp7_; -#line 553 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 553 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 5735 "Photo.c" - goto __catch271_database_error; - } -#line 553 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing_row); -#line 553 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 553 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 553 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 5746 "Photo.c" - } -#line 553 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _tmp2_; -#line 553 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = NULL; -#line 553 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing_row); -#line 553 "/home/jens/Source/shotwell/src/Photo.vala" - backing_row = _tmp8_; -#line 552 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp2_); -#line 5758 "Photo.c" - } - goto __finally271; - __catch271_database_error: - { - GError* err = NULL; - gchar* _tmp9_; - gchar* _tmp10_; - GError* _tmp11_; - const gchar* _tmp12_; -#line 552 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 552 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 555 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 555 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_; -#line 555 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = err; -#line 555 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_->message; -#line 555 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:555: Unable to fetch backing state for %s: %s", _tmp10_, _tmp12_); -#line 555 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp10_); -#line 552 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 5786 "Photo.c" - } - __finally271: -#line 552 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 552 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing_row); -#line 552 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 552 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 552 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 5799 "Photo.c" - } -#line 558 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = backing_row; -#line 558 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp13_ == NULL) { -#line 5805 "Photo.c" - { - BackingPhotoTable* _tmp14_; - BackingPhotoTable* _tmp15_; - BackingPhotoID _tmp16_; -#line 560 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = backing_photo_table_get_instance (); -#line 560 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_; -#line 560 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = *id; -#line 560 "/home/jens/Source/shotwell/src/Photo.vala" - backing_photo_table_remove (_tmp15_, &_tmp16_, &_inner_error_); -#line 560 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp15_); -#line 560 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 560 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 5824 "Photo.c" - goto __catch272_database_error; - } -#line 560 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing_row); -#line 560 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 560 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 560 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 5835 "Photo.c" - } - } - goto __finally272; - __catch272_database_error: - { - GError* err = NULL; -#line 559 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 559 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 559 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 5848 "Photo.c" - } - __finally272: -#line 559 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 559 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing_row); -#line 559 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 559 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 559 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 5861 "Photo.c" - } -#line 564 "/home/jens/Source/shotwell/src/Photo.vala" - result = NULL; -#line 564 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing_row); -#line 564 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 5869 "Photo.c" - } -#line 567 "/home/jens/Source/shotwell/src/Photo.vala" - result = backing_row; -#line 567 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 5875 "Photo.c" -} - - -gboolean -photo_is_raw_developer_complete (Photo* self, - RawDeveloper d) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 572 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 5887 "Photo.c" - { - GeeHashMap* _tmp0_; - gboolean _tmp9_ = FALSE; -#line 573 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->developments; -#line 573 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_developments); -#line 5895 "Photo.c" - { - gboolean _tmp1_ = FALSE; - GeeHashMap* _tmp2_; -#line 574 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->developments; -#line 574 "/home/jens/Source/shotwell/src/Photo.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d))) { -#line 5903 "Photo.c" - GeeHashMap* _tmp3_; - gpointer _tmp4_; - BackingPhotoRow* _tmp5_; - const gchar* _tmp6_; -#line 575 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->developments; -#line 575 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d)); -#line 575 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = (BackingPhotoRow*) _tmp4_; -#line 575 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _tmp5_->filepath; -#line 575 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = g_file_test (_tmp6_, G_FILE_TEST_EXISTS); -#line 575 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp5_); -#line 5920 "Photo.c" - } else { -#line 574 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = FALSE; -#line 5924 "Photo.c" - } -#line 574 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp1_; -#line 5928 "Photo.c" - { - GeeHashMap* _tmp7_; -#line 573 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = self->priv->developments; -#line 573 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_developments); -#line 5935 "Photo.c" - } -#line 574 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 5939 "Photo.c" - } - __finally273: - { - GeeHashMap* _tmp8_; -#line 573 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = self->priv->developments; -#line 573 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_developments); -#line 5948 "Photo.c" - } -#line 573 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 573 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 573 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp9_; -#line 5956 "Photo.c" - } -} - - -gboolean -photo_is_raw_developer_available (Photo* self, - RawDeveloper d) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 580 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 5969 "Photo.c" - { - GeeHashMap* _tmp0_; -#line 581 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->developments; -#line 581 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_developments); -#line 5976 "Photo.c" - { - GeeHashMap* _tmp1_; -#line 582 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->developments; -#line 582 "/home/jens/Source/shotwell/src/Photo.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d))) { -#line 583 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 5985 "Photo.c" - { - GeeHashMap* _tmp2_; -#line 581 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->developments; -#line 581 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_developments); -#line 5992 "Photo.c" - } -#line 583 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 5996 "Photo.c" - } - } - __finally274: - { - GeeHashMap* _tmp3_; -#line 581 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->developments; -#line 581 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_developments); -#line 6006 "Photo.c" - } -#line 581 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6010 "Photo.c" - gboolean _tmp4_ = FALSE; -#line 581 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 581 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 581 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp4_; -#line 6018 "Photo.c" - } - } -#line 586 "/home/jens/Source/shotwell/src/Photo.vala" - switch (d) { -#line 586 "/home/jens/Source/shotwell/src/Photo.vala" - case RAW_DEVELOPER_SHOTWELL: -#line 6025 "Photo.c" - { -#line 588 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 588 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 6031 "Photo.c" - } -#line 586 "/home/jens/Source/shotwell/src/Photo.vala" - case RAW_DEVELOPER_CAMERA: -#line 6035 "Photo.c" - { -#line 591 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 591 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 6041 "Photo.c" - } -#line 586 "/home/jens/Source/shotwell/src/Photo.vala" - case RAW_DEVELOPER_EMBEDDED: -#line 6045 "Photo.c" - { - { - PhotoMetadata* meta = NULL; - PhotoMetadata* _tmp5_; - guint num_previews = 0U; - PhotoMetadata* _tmp6_; - guint _tmp7_; -#line 595 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = photo_get_master_metadata (self, &_inner_error_); -#line 595 "/home/jens/Source/shotwell/src/Photo.vala" - meta = _tmp5_; -#line 595 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6059 "Photo.c" - goto __catch275_g_error; - } -#line 596 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = meta; -#line 596 "/home/jens/Source/shotwell/src/Photo.vala" - num_previews = photo_metadata_get_preview_count (_tmp6_); -#line 598 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = num_previews; -#line 598 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp7_ > ((guint) 0)) { -#line 6070 "Photo.c" - PhotoPreview* prev = NULL; - PhotoMetadata* _tmp8_; - guint _tmp9_; - PhotoPreview* _tmp10_; - PhotoPreview* _tmp11_; - Dimensions dims = {0}; - PhotoPreview* _tmp12_; - Dimensions _tmp13_ = {0}; - gint _tmp14_ = 0; - Dimensions _tmp15_; - gint _tmp16_; - Dimensions _tmp17_; - gint _tmp18_; - gint preview_major_axis = 0; - gint _tmp23_; -#line 599 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = meta; -#line 599 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = num_previews; -#line 599 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = photo_metadata_get_preview (_tmp8_, _tmp9_ - 1); -#line 599 "/home/jens/Source/shotwell/src/Photo.vala" - prev = _tmp10_; -#line 602 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = prev; -#line 602 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp11_ == NULL) { -#line 603 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 603 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_preview_unref0 (prev); -#line 603 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 603 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 6106 "Photo.c" - } -#line 605 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = prev; -#line 605 "/home/jens/Source/shotwell/src/Photo.vala" - photo_preview_get_pixel_dimensions (_tmp12_, &_tmp13_); -#line 605 "/home/jens/Source/shotwell/src/Photo.vala" - dims = _tmp13_; -#line 608 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = dims; -#line 608 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = _tmp15_.width; -#line 608 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = dims; -#line 608 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp17_.height; -#line 608 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp16_ > _tmp18_) { -#line 6124 "Photo.c" - Dimensions _tmp19_; - gint _tmp20_; -#line 608 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = dims; -#line 608 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = _tmp19_.width; -#line 608 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _tmp20_; -#line 6133 "Photo.c" - } else { - Dimensions _tmp21_; - gint _tmp22_; -#line 608 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = dims; -#line 608 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = _tmp21_.height; -#line 608 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _tmp22_; -#line 6143 "Photo.c" - } -#line 608 "/home/jens/Source/shotwell/src/Photo.vala" - preview_major_axis = _tmp14_; -#line 609 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = preview_major_axis; -#line 609 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp23_ < PHOTO_MIN_EMBEDDED_SIZE) { -#line 610 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 610 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_preview_unref0 (prev); -#line 610 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 610 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 6159 "Photo.c" - } -#line 613 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 613 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_preview_unref0 (prev); -#line 613 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 613 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 6169 "Photo.c" - } -#line 617 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 617 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 617 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 6177 "Photo.c" - } - goto __finally275; - __catch275_g_error: - { - GError* e = NULL; - GError* _tmp24_; - const gchar* _tmp25_; -#line 594 "/home/jens/Source/shotwell/src/Photo.vala" - e = _inner_error_; -#line 594 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 619 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = e; -#line 619 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = _tmp24_->message; -#line 619 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:619: Error accessing embedded preview. Message: %s", _tmp25_); -#line 594 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (e); -#line 6197 "Photo.c" - } - __finally275: -#line 594 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6202 "Photo.c" - gboolean _tmp26_ = FALSE; -#line 594 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 594 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 594 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp26_; -#line 6210 "Photo.c" - } -#line 621 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 621 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 6216 "Photo.c" - } - default: - { -#line 624 "/home/jens/Source/shotwell/src/Photo.vala" - g_assert_not_reached (); -#line 6222 "Photo.c" - } - } -} - - -void -photo_add_backing_photo_for_development (Photo* self, - RawDeveloper d, - BackingPhotoRow* bpr, - gboolean notify, - GError** error) -{ - PhotoRow* _tmp0_; - GError * _inner_error_ = NULL; -#line 631 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 631 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_BACKING_PHOTO_ROW (bpr)); -#line 632 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 632 "/home/jens/Source/shotwell/src/Photo.vala" - photo_import_developed_backing_photo (_tmp0_, d, bpr, &_inner_error_); -#line 632 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 632 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 632 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 6251 "Photo.c" - } - { - GeeHashMap* _tmp1_; -#line 633 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->developments; -#line 633 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_developments); -#line 6259 "Photo.c" - { - GeeHashMap* _tmp2_; -#line 634 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->developments; -#line 634 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d), bpr); -#line 6266 "Photo.c" - } - __finally276: - { - GeeHashMap* _tmp3_; -#line 633 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->developments; -#line 633 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_developments); -#line 6275 "Photo.c" - } -#line 633 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 633 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 633 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 6283 "Photo.c" - } - } -#line 637 "/home/jens/Source/shotwell/src/Photo.vala" - if (notify) { -#line 6288 "Photo.c" - Alteration* _tmp4_; - Alteration* _tmp5_; -#line 638 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = alteration_new ("image", "developer"); -#line 638 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_; -#line 638 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp5_); -#line 638 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp5_); -#line 6299 "Photo.c" - } -} - - -void -photo_import_developed_backing_photo (PhotoRow* row, - RawDeveloper d, - BackingPhotoRow* bpr, - GError** error) -{ - GFile* file = NULL; - const gchar* _tmp0_; - GFile* _tmp1_; - GFileInfo* info = NULL; - GFile* _tmp2_; - GFileInfo* _tmp3_; - GTimeVal timestamp = {0}; - GFileInfo* _tmp4_; - GTimeVal _tmp5_ = {0}; - PhotoFileInterrogator* interrogator = NULL; - GFile* _tmp6_; - PhotoFileInterrogator* _tmp7_; - PhotoFileInterrogator* _tmp8_; - DetectedPhotoInformation* detected = NULL; - PhotoFileInterrogator* _tmp9_; - DetectedPhotoInformation* _tmp10_; - gboolean _tmp11_ = FALSE; - DetectedPhotoInformation* _tmp12_; - DetectedPhotoInformation* _tmp14_; - Dimensions _tmp15_; - GFileInfo* _tmp16_; - GTimeVal _tmp17_; - glong _tmp18_; - Orientation _tmp19_ = 0; - DetectedPhotoInformation* _tmp20_; - PhotoMetadata* _tmp21_; - BackingPhotoTable* _tmp24_; - BackingPhotoTable* _tmp25_; - PhotoTable* _tmp26_; - PhotoTable* _tmp27_; - BackingPhotoID _tmp28_; - GError * _inner_error_ = NULL; -#line 641 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO_ROW (row)); -#line 641 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_BACKING_PHOTO_ROW (bpr)); -#line 643 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = bpr->filepath; -#line 643 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = g_file_new_for_path (_tmp0_); -#line 643 "/home/jens/Source/shotwell/src/Photo.vala" - file = _tmp1_; -#line 644 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = file; -#line 644 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = g_file_query_info (_tmp2_, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_); -#line 644 "/home/jens/Source/shotwell/src/Photo.vala" - info = _tmp3_; -#line 644 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 644 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 644 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 644 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 6366 "Photo.c" - } -#line 646 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = info; -#line 646 "/home/jens/Source/shotwell/src/Photo.vala" - g_file_info_get_modification_time (_tmp4_, &_tmp5_); -#line 646 "/home/jens/Source/shotwell/src/Photo.vala" - timestamp = _tmp5_; -#line 648 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = file; -#line 648 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = photo_file_interrogator_new (_tmp6_, PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL); -#line 648 "/home/jens/Source/shotwell/src/Photo.vala" - interrogator = _tmp7_; -#line 650 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = interrogator; -#line 650 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_interrogator_interrogate (_tmp8_, &_inner_error_); -#line 650 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 650 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 650 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 650 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 650 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 650 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 6396 "Photo.c" - } -#line 652 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = interrogator; -#line 652 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = photo_file_interrogator_get_detected_photo_information (_tmp9_); -#line 652 "/home/jens/Source/shotwell/src/Photo.vala" - detected = _tmp10_; -#line 653 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = detected; -#line 653 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp12_ == NULL) { -#line 653 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = TRUE; -#line 6410 "Photo.c" - } else { - PhotoFileInterrogator* _tmp13_; -#line 653 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = interrogator; -#line 653 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = photo_file_interrogator_get_is_photo_corrupted (_tmp13_); -#line 6417 "Photo.c" - } -#line 653 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp11_) { -#line 656 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 656 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 656 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 656 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 656 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 6431 "Photo.c" - } -#line 659 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = detected; -#line 659 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_->image_dim; -#line 659 "/home/jens/Source/shotwell/src/Photo.vala" - bpr->dim = _tmp15_; -#line 660 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = info; -#line 660 "/home/jens/Source/shotwell/src/Photo.vala" - bpr->filesize = g_file_info_get_size (_tmp16_); -#line 661 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = timestamp; -#line 661 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp17_.tv_sec; -#line 661 "/home/jens/Source/shotwell/src/Photo.vala" - bpr->timestamp = (time_t) _tmp18_; -#line 662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = detected; -#line 662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _tmp20_->metadata; -#line 662 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp21_ != NULL) { -#line 6455 "Photo.c" - DetectedPhotoInformation* _tmp22_; - PhotoMetadata* _tmp23_; -#line 662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = detected; -#line 662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _tmp22_->metadata; -#line 662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = photo_metadata_get_orientation (_tmp23_); -#line 6464 "Photo.c" - } else { -#line 663 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = ORIENTATION_TOP_LEFT; -#line 6468 "Photo.c" - } -#line 662 "/home/jens/Source/shotwell/src/Photo.vala" - bpr->original_orientation = _tmp19_; -#line 666 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = backing_photo_table_get_instance (); -#line 666 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = _tmp24_; -#line 666 "/home/jens/Source/shotwell/src/Photo.vala" - backing_photo_table_add (_tmp25_, bpr, &_inner_error_); -#line 666 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp25_); -#line 666 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 666 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 666 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 666 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 666 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 666 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 666 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 6494 "Photo.c" - } -#line 667 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = photo_table_get_instance (); -#line 667 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = _tmp26_; -#line 667 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = bpr->id; -#line 667 "/home/jens/Source/shotwell/src/Photo.vala" - photo_table_update_raw_development (_tmp27_, row, d, &_tmp28_, &_inner_error_); -#line 667 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp27_); -#line 667 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 667 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 667 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 667 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 667 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 667 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 667 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 6520 "Photo.c" - } -#line 641 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 641 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 641 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 641 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 6530 "Photo.c" -} - - -static void -photo_develop_photo (Photo* self, - RawDeveloper d, - gboolean notify) -{ - gboolean wrote_img_to_disk = FALSE; - BackingPhotoRow* bps = NULL; - GError * _inner_error_ = NULL; -#line 672 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 673 "/home/jens/Source/shotwell/src/Photo.vala" - wrote_img_to_disk = FALSE; -#line 674 "/home/jens/Source/shotwell/src/Photo.vala" - bps = NULL; -#line 676 "/home/jens/Source/shotwell/src/Photo.vala" - switch (d) { -#line 676 "/home/jens/Source/shotwell/src/Photo.vala" - case RAW_DEVELOPER_SHOTWELL: -#line 6552 "Photo.c" - { - { - BackingPhotoRow* _tmp0_ = NULL; - PhotoRow* _tmp1_; - BackingPhotoRow* _tmp2_; - const gchar* _tmp3_; - BackingPhotoRow* _tmp4_; - BackingPhotoRow* _tmp5_; - GdkPixbuf* pix = NULL; - GdkPixbuf* _tmp12_; - PhotoFileWriter* writer = NULL; - BackingPhotoRow* _tmp17_; - const gchar* _tmp18_; - PhotoFileWriter* _tmp19_; - PhotoFileWriter* _tmp20_; - GdkPixbuf* _tmp21_; - PhotoMetadata* meta = NULL; - PhotoMetadata* _tmp22_; - PhotoFileMetadataWriter* mwriter = NULL; - BackingPhotoRow* _tmp23_; - const gchar* _tmp24_; - PhotoFileMetadataWriter* _tmp25_; - PhotoFileMetadataWriter* _tmp26_; - PhotoMetadata* _tmp27_; -#line 680 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 680 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->master; -#line 680 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_->filepath; -#line 680 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = raw_developer_create_backing_row_for_development (d, _tmp3_, NULL, &_inner_error_); -#line 680 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp4_; -#line 680 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6589 "Photo.c" - goto __catch277_g_error; - } -#line 680 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp0_; -#line 680 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = NULL; -#line 680 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bps); -#line 680 "/home/jens/Source/shotwell/src/Photo.vala" - bps = _tmp5_; -#line 681 "/home/jens/Source/shotwell/src/Photo.vala" - pix = NULL; -#line 6602 "Photo.c" - { - PhotoBackingReaders* _tmp6_; -#line 682 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->priv->readers; -#line 682 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 6609 "Photo.c" - { - GdkPixbuf* _tmp7_ = NULL; - Scaling _tmp8_ = {0}; - GdkPixbuf* _tmp9_; - GdkPixbuf* _tmp10_; -#line 687 "/home/jens/Source/shotwell/src/Photo.vala" - scaling_for_original (&_tmp8_); -#line 687 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = photo_get_master_pixbuf (self, &_tmp8_, FALSE, &_inner_error_); -#line 687 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp9_; -#line 687 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6623 "Photo.c" - goto __finally278; - } -#line 687 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp7_; -#line 687 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = NULL; -#line 687 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pix); -#line 687 "/home/jens/Source/shotwell/src/Photo.vala" - pix = _tmp10_; -#line 682 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp7_); -#line 6636 "Photo.c" - } - __finally278: - { - PhotoBackingReaders* _tmp11_; -#line 682 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = self->priv->readers; -#line 682 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 6645 "Photo.c" - } -#line 682 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 682 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pix); -#line 682 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp0_); -#line 6653 "Photo.c" - goto __catch277_g_error; - } - } -#line 690 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = pix; -#line 690 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp12_ == NULL) { -#line 691 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:691: Could not get preview pixbuf"); -#line 692 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pix); -#line 692 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp0_); -#line 6667 "Photo.c" - { - gboolean _tmp13_; -#line 716 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = wrote_img_to_disk; -#line 716 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp13_) { -#line 6674 "Photo.c" - { - BackingPhotoRow* _tmp14_; -#line 719 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = bps; -#line 719 "/home/jens/Source/shotwell/src/Photo.vala" - photo_add_backing_photo_for_development (self, d, _tmp14_, notify, &_inner_error_); -#line 719 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6683 "Photo.c" - goto __catch279_g_error; - } -#line 721 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_raw_development_modified (self); -#line 6688 "Photo.c" - } - goto __finally279; - __catch279_g_error: - { - GError* e = NULL; - GError* _tmp15_; - const gchar* _tmp16_; -#line 717 "/home/jens/Source/shotwell/src/Photo.vala" - e = _inner_error_; -#line 717 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 723 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = e; -#line 723 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = _tmp15_->message; -#line 723 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:723: Error adding backing photo as development. Message: %s", _tmp16_); -#line 717 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (e); -#line 6708 "Photo.c" - } - __finally279: -#line 717 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6713 "Photo.c" - goto __catch277_g_error; - } - } - } -#line 692 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bps); -#line 692 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 6722 "Photo.c" - } -#line 696 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = bps; -#line 696 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp17_->filepath; -#line 696 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = photo_file_format_create_writer (PHOTO_FILE_FORMAT_JFIF, _tmp18_, &_inner_error_); -#line 696 "/home/jens/Source/shotwell/src/Photo.vala" - writer = _tmp19_; -#line 696 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 696 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pix); -#line 696 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp0_); -#line 6738 "Photo.c" - goto __catch277_g_error; - } -#line 697 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = writer; -#line 697 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = pix; -#line 697 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_writer_write (_tmp20_, _tmp21_, JPEG_QUALITY_HIGH, &_inner_error_); -#line 697 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 697 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 697 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pix); -#line 697 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp0_); -#line 6755 "Photo.c" - goto __catch277_g_error; - } -#line 705 "/home/jens/Source/shotwell/src/Photo.vala" - wrote_img_to_disk = TRUE; -#line 710 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = photo_get_master_metadata (self, &_inner_error_); -#line 710 "/home/jens/Source/shotwell/src/Photo.vala" - meta = _tmp22_; -#line 710 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 710 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 710 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pix); -#line 710 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp0_); -#line 6772 "Photo.c" - goto __catch277_g_error; - } -#line 711 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = bps; -#line 711 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = _tmp23_->filepath; -#line 711 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = photo_file_format_create_metadata_writer (PHOTO_FILE_FORMAT_JFIF, _tmp24_, &_inner_error_); -#line 711 "/home/jens/Source/shotwell/src/Photo.vala" - mwriter = _tmp25_; -#line 711 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 711 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 711 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 711 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pix); -#line 711 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp0_); -#line 6793 "Photo.c" - goto __catch277_g_error; - } -#line 712 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = mwriter; -#line 712 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = meta; -#line 712 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_metadata_writer_write_metadata (_tmp26_, _tmp27_, &_inner_error_); -#line 712 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 712 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (mwriter); -#line 712 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 712 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 712 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pix); -#line 712 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp0_); -#line 6814 "Photo.c" - goto __catch277_g_error; - } -#line 678 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (mwriter); -#line 678 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 678 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 678 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pix); -#line 678 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp0_); -#line 6827 "Photo.c" - } - goto __finally277; - __catch277_g_error: - { - GError* err = NULL; - GError* _tmp28_; - const gchar* _tmp29_; -#line 678 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 678 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 714 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = err; -#line 714 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = _tmp28_->message; -#line 714 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:714: Error developing photo: %s", _tmp29_); -#line 678 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 6847 "Photo.c" - } - __finally277: - { - gboolean _tmp30_; -#line 716 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = wrote_img_to_disk; -#line 716 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp30_) { -#line 6856 "Photo.c" - { - BackingPhotoRow* _tmp31_; -#line 719 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = bps; -#line 719 "/home/jens/Source/shotwell/src/Photo.vala" - photo_add_backing_photo_for_development (self, d, _tmp31_, notify, &_inner_error_); -#line 719 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6865 "Photo.c" - goto __catch280_g_error; - } -#line 721 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_raw_development_modified (self); -#line 6870 "Photo.c" - } - goto __finally280; - __catch280_g_error: - { - GError* e = NULL; - GError* _tmp32_; - const gchar* _tmp33_; -#line 717 "/home/jens/Source/shotwell/src/Photo.vala" - e = _inner_error_; -#line 717 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 723 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = e; -#line 723 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = _tmp32_->message; -#line 723 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:723: Error adding backing photo as development. Message: %s", _tmp33_); -#line 717 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (e); -#line 6890 "Photo.c" - } - __finally280: -#line 717 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 717 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bps); -#line 717 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 717 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 717 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 6903 "Photo.c" - } - } - } -#line 678 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 678 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bps); -#line 678 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 678 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 678 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 6917 "Photo.c" - } -#line 729 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 6921 "Photo.c" - } -#line 676 "/home/jens/Source/shotwell/src/Photo.vala" - case RAW_DEVELOPER_CAMERA: -#line 6925 "Photo.c" - { -#line 733 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 6929 "Photo.c" - } -#line 676 "/home/jens/Source/shotwell/src/Photo.vala" - case RAW_DEVELOPER_EMBEDDED: -#line 6933 "Photo.c" - { - { - PhotoMetadata* meta = NULL; - PhotoMetadata* _tmp34_; - guint c = 0U; - PhotoMetadata* _tmp35_; - guint _tmp36_; - PhotoPreview* prev = NULL; - PhotoMetadata* _tmp41_; - guint _tmp42_; - PhotoPreview* _tmp43_; - PhotoPreview* _tmp44_; - GBytes* pix = NULL; - PhotoPreview* _tmp49_; - GBytes* _tmp50_; - GBytes* _tmp51_; - BackingPhotoRow* _tmp56_ = NULL; - PhotoRow* _tmp57_; - BackingPhotoRow* _tmp58_; - const gchar* _tmp59_; - BackingPhotoRow* _tmp60_; - BackingPhotoRow* _tmp61_; - gboolean _tmp62_ = FALSE; - GBytes* _tmp63_; - PhotoFileMetadataWriter* mwriter = NULL; - BackingPhotoRow* _tmp83_; - const gchar* _tmp84_; - PhotoFileMetadataWriter* _tmp85_; - PhotoFileMetadataWriter* _tmp86_; - PhotoMetadata* _tmp87_; -#line 738 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = photo_get_master_metadata (self, &_inner_error_); -#line 738 "/home/jens/Source/shotwell/src/Photo.vala" - meta = _tmp34_; -#line 738 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6970 "Photo.c" - goto __catch281_g_error; - } -#line 739 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = meta; -#line 739 "/home/jens/Source/shotwell/src/Photo.vala" - c = photo_metadata_get_preview_count (_tmp35_); -#line 740 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = c; -#line 740 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp36_ <= ((guint) 0)) { -#line 741 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 6983 "Photo.c" - { - gboolean _tmp37_; -#line 786 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = wrote_img_to_disk; -#line 786 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp37_) { -#line 6990 "Photo.c" - { - BackingPhotoRow* _tmp38_; -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = bps; -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - photo_add_backing_photo_for_development (self, d, _tmp38_, notify, &_inner_error_); -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6999 "Photo.c" - goto __catch282_g_error; - } -#line 791 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_raw_development_modified (self); -#line 7004 "Photo.c" - } - goto __finally282; - __catch282_g_error: - { - GError* e = NULL; - GError* _tmp39_; - const gchar* _tmp40_; -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - e = _inner_error_; -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = e; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = _tmp39_->message; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:793: Error adding backing photo as development. Message: %s", _tmp40_); -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (e); -#line 7024 "Photo.c" - } - __finally282: -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7029 "Photo.c" - goto __catch281_g_error; - } - } - } -#line 741 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bps); -#line 741 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 7038 "Photo.c" - } -#line 742 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = meta; -#line 742 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = c; -#line 742 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = photo_metadata_get_preview (_tmp41_, _tmp42_ - 1); -#line 742 "/home/jens/Source/shotwell/src/Photo.vala" - prev = _tmp43_; -#line 743 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = prev; -#line 743 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp44_ == NULL) { -#line 744 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:744: Could not get preview from metadata"); -#line 745 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_preview_unref0 (prev); -#line 745 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 7058 "Photo.c" - { - gboolean _tmp45_; -#line 786 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = wrote_img_to_disk; -#line 786 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp45_) { -#line 7065 "Photo.c" - { - BackingPhotoRow* _tmp46_; -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = bps; -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - photo_add_backing_photo_for_development (self, d, _tmp46_, notify, &_inner_error_); -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7074 "Photo.c" - goto __catch283_g_error; - } -#line 791 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_raw_development_modified (self); -#line 7079 "Photo.c" - } - goto __finally283; - __catch283_g_error: - { - GError* e = NULL; - GError* _tmp47_; - const gchar* _tmp48_; -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - e = _inner_error_; -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = e; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = _tmp47_->message; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:793: Error adding backing photo as development. Message: %s", _tmp48_); -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (e); -#line 7099 "Photo.c" - } - __finally283: -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7104 "Photo.c" - goto __catch281_g_error; - } - } - } -#line 745 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bps); -#line 745 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 7113 "Photo.c" - } -#line 748 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = prev; -#line 748 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = photo_preview_flatten (_tmp49_, &_inner_error_); -#line 748 "/home/jens/Source/shotwell/src/Photo.vala" - pix = _tmp50_; -#line 748 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 748 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_preview_unref0 (prev); -#line 748 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 7127 "Photo.c" - goto __catch281_g_error; - } -#line 749 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp51_ = pix; -#line 749 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp51_ == NULL) { -#line 750 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:750: Could not get preview pixbuf"); -#line 751 "/home/jens/Source/shotwell/src/Photo.vala" - _g_bytes_unref0 (pix); -#line 751 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_preview_unref0 (prev); -#line 751 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 7142 "Photo.c" - { - gboolean _tmp52_; -#line 786 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp52_ = wrote_img_to_disk; -#line 786 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp52_) { -#line 7149 "Photo.c" - { - BackingPhotoRow* _tmp53_; -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp53_ = bps; -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - photo_add_backing_photo_for_development (self, d, _tmp53_, notify, &_inner_error_); -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7158 "Photo.c" - goto __catch284_g_error; - } -#line 791 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_raw_development_modified (self); -#line 7163 "Photo.c" - } - goto __finally284; - __catch284_g_error: - { - GError* e = NULL; - GError* _tmp54_; - const gchar* _tmp55_; -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - e = _inner_error_; -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp54_ = e; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp55_ = _tmp54_->message; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:793: Error adding backing photo as development. Message: %s", _tmp55_); -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (e); -#line 7183 "Photo.c" - } - __finally284: -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7188 "Photo.c" - goto __catch281_g_error; - } - } - } -#line 751 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bps); -#line 751 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 7197 "Photo.c" - } -#line 755 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_ = self->row; -#line 755 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp58_ = _tmp57_->master; -#line 755 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp59_ = _tmp58_->filepath; -#line 755 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp60_ = raw_developer_create_backing_row_for_development (d, _tmp59_, NULL, &_inner_error_); -#line 755 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp56_ = _tmp60_; -#line 755 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 755 "/home/jens/Source/shotwell/src/Photo.vala" - _g_bytes_unref0 (pix); -#line 755 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_preview_unref0 (prev); -#line 755 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 7217 "Photo.c" - goto __catch281_g_error; - } -#line 755 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp61_ = _tmp56_; -#line 755 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp56_ = NULL; -#line 755 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bps); -#line 755 "/home/jens/Source/shotwell/src/Photo.vala" - bps = _tmp61_; -#line 759 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp63_ = pix; -#line 759 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp62_ = jpeg_is_jpeg_bytes (_tmp63_, &_inner_error_); -#line 759 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 759 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp56_); -#line 759 "/home/jens/Source/shotwell/src/Photo.vala" - _g_bytes_unref0 (pix); -#line 759 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_preview_unref0 (prev); -#line 759 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 7242 "Photo.c" - goto __catch281_g_error; - } -#line 759 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp62_) { -#line 7247 "Photo.c" - GFile* outfile = NULL; - BackingPhotoRow* _tmp64_; - const gchar* _tmp65_; - GFile* _tmp66_; - GFile* _tmp67_; - GBytes* _tmp68_; - gsize _tmp69_; - guint8* _tmp70_; -#line 760 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp64_ = bps; -#line 760 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp65_ = _tmp64_->filepath; -#line 760 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp66_ = g_file_new_for_path (_tmp65_); -#line 760 "/home/jens/Source/shotwell/src/Photo.vala" - outfile = _tmp66_; -#line 761 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp67_ = outfile; -#line 761 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp68_ = pix; -#line 761 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp70_ = g_bytes_get_data (_tmp68_, &_tmp69_); -#line 761 "/home/jens/Source/shotwell/src/Photo.vala" - g_file_replace_contents (_tmp67_, _tmp70_, (gsize) _tmp69_, NULL, FALSE, G_FILE_CREATE_NONE, NULL, NULL, &_inner_error_); -#line 761 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 761 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (outfile); -#line 761 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp56_); -#line 761 "/home/jens/Source/shotwell/src/Photo.vala" - _g_bytes_unref0 (pix); -#line 761 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_preview_unref0 (prev); -#line 761 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 7284 "Photo.c" - goto __catch281_g_error; - } -#line 759 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (outfile); -#line 7289 "Photo.c" - } else { - GdkPixbuf* pixbuf = NULL; - PhotoPreview* _tmp71_; - GdkPixbuf* _tmp72_; - GdkPixbuf* _tmp73_; - PhotoFileWriter* writer = NULL; - BackingPhotoRow* _tmp78_; - const gchar* _tmp79_; - PhotoFileWriter* _tmp80_; - PhotoFileWriter* _tmp81_; - GdkPixbuf* _tmp82_; -#line 764 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp71_ = prev; -#line 764 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp72_ = photo_preview_get_pixbuf (_tmp71_, &_inner_error_); -#line 764 "/home/jens/Source/shotwell/src/Photo.vala" - pixbuf = _tmp72_; -#line 764 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 764 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp56_); -#line 764 "/home/jens/Source/shotwell/src/Photo.vala" - _g_bytes_unref0 (pix); -#line 764 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_preview_unref0 (prev); -#line 764 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 7317 "Photo.c" - goto __catch281_g_error; - } -#line 765 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp73_ = pixbuf; -#line 765 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp73_ == NULL) { -#line 766 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:766: Could not get preview pixbuf"); -#line 767 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 767 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp56_); -#line 767 "/home/jens/Source/shotwell/src/Photo.vala" - _g_bytes_unref0 (pix); -#line 767 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_preview_unref0 (prev); -#line 767 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 7336 "Photo.c" - { - gboolean _tmp74_; -#line 786 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp74_ = wrote_img_to_disk; -#line 786 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp74_) { -#line 7343 "Photo.c" - { - BackingPhotoRow* _tmp75_; -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp75_ = bps; -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - photo_add_backing_photo_for_development (self, d, _tmp75_, notify, &_inner_error_); -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7352 "Photo.c" - goto __catch285_g_error; - } -#line 791 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_raw_development_modified (self); -#line 7357 "Photo.c" - } - goto __finally285; - __catch285_g_error: - { - GError* e = NULL; - GError* _tmp76_; - const gchar* _tmp77_; -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - e = _inner_error_; -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp76_ = e; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp77_ = _tmp76_->message; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:793: Error adding backing photo as development. Message: %s", _tmp77_); -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (e); -#line 7377 "Photo.c" - } - __finally285: -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7382 "Photo.c" - goto __catch281_g_error; - } - } - } -#line 767 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bps); -#line 767 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 7391 "Photo.c" - } -#line 770 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp78_ = bps; -#line 770 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp79_ = _tmp78_->filepath; -#line 770 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp80_ = photo_file_format_create_writer (PHOTO_FILE_FORMAT_JFIF, _tmp79_, &_inner_error_); -#line 770 "/home/jens/Source/shotwell/src/Photo.vala" - writer = _tmp80_; -#line 770 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 770 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 770 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp56_); -#line 770 "/home/jens/Source/shotwell/src/Photo.vala" - _g_bytes_unref0 (pix); -#line 770 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_preview_unref0 (prev); -#line 770 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 7413 "Photo.c" - goto __catch281_g_error; - } -#line 771 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp81_ = writer; -#line 771 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp82_ = pixbuf; -#line 771 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_writer_write (_tmp81_, _tmp82_, JPEG_QUALITY_HIGH, &_inner_error_); -#line 771 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 771 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 771 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 771 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp56_); -#line 771 "/home/jens/Source/shotwell/src/Photo.vala" - _g_bytes_unref0 (pix); -#line 771 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_preview_unref0 (prev); -#line 771 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 7436 "Photo.c" - goto __catch281_g_error; - } -#line 759 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 759 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 7443 "Photo.c" - } -#line 777 "/home/jens/Source/shotwell/src/Photo.vala" - wrote_img_to_disk = TRUE; -#line 780 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp83_ = bps; -#line 780 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp84_ = _tmp83_->filepath; -#line 780 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp85_ = photo_file_format_create_metadata_writer (PHOTO_FILE_FORMAT_JFIF, _tmp84_, &_inner_error_); -#line 780 "/home/jens/Source/shotwell/src/Photo.vala" - mwriter = _tmp85_; -#line 780 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 780 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp56_); -#line 780 "/home/jens/Source/shotwell/src/Photo.vala" - _g_bytes_unref0 (pix); -#line 780 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_preview_unref0 (prev); -#line 780 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 7465 "Photo.c" - goto __catch281_g_error; - } -#line 781 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp86_ = mwriter; -#line 781 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp87_ = meta; -#line 781 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_metadata_writer_write_metadata (_tmp86_, _tmp87_, &_inner_error_); -#line 781 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 781 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (mwriter); -#line 781 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp56_); -#line 781 "/home/jens/Source/shotwell/src/Photo.vala" - _g_bytes_unref0 (pix); -#line 781 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_preview_unref0 (prev); -#line 781 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 7486 "Photo.c" - goto __catch281_g_error; - } -#line 736 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (mwriter); -#line 736 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp56_); -#line 736 "/home/jens/Source/shotwell/src/Photo.vala" - _g_bytes_unref0 (pix); -#line 736 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_preview_unref0 (prev); -#line 736 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (meta); -#line 7499 "Photo.c" - } - goto __finally281; - __catch281_g_error: - { - GError* e = NULL; - GError* _tmp88_; - const gchar* _tmp89_; -#line 736 "/home/jens/Source/shotwell/src/Photo.vala" - e = _inner_error_; -#line 736 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 783 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp88_ = e; -#line 783 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp89_ = _tmp88_->message; -#line 783 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:783: Error accessing embedded preview. Message: %s", _tmp89_); -#line 784 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (e); -#line 7519 "Photo.c" - { - gboolean _tmp90_; -#line 786 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp90_ = wrote_img_to_disk; -#line 786 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp90_) { -#line 7526 "Photo.c" - { - BackingPhotoRow* _tmp91_; -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp91_ = bps; -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - photo_add_backing_photo_for_development (self, d, _tmp91_, notify, &_inner_error_); -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7535 "Photo.c" - goto __catch286_g_error; - } -#line 791 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_raw_development_modified (self); -#line 7540 "Photo.c" - } - goto __finally286; - __catch286_g_error: - { - GError* e = NULL; - GError* _tmp92_; - const gchar* _tmp93_; -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - e = _inner_error_; -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp92_ = e; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp93_ = _tmp92_->message; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:793: Error adding backing photo as development. Message: %s", _tmp93_); -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (e); -#line 7560 "Photo.c" - } - __finally286: -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bps); -#line 7567 "Photo.c" - } - } - } -#line 784 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bps); -#line 784 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 7575 "Photo.c" - } - __finally281: - { - gboolean _tmp94_; -#line 786 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp94_ = wrote_img_to_disk; -#line 786 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp94_) { -#line 7584 "Photo.c" - { - BackingPhotoRow* _tmp95_; -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp95_ = bps; -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - photo_add_backing_photo_for_development (self, d, _tmp95_, notify, &_inner_error_); -#line 789 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7593 "Photo.c" - goto __catch287_g_error; - } -#line 791 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_raw_development_modified (self); -#line 7598 "Photo.c" - } - goto __finally287; - __catch287_g_error: - { - GError* e = NULL; - GError* _tmp96_; - const gchar* _tmp97_; -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - e = _inner_error_; -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp96_ = e; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp97_ = _tmp96_->message; -#line 793 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:793: Error adding backing photo as development. Message: %s", _tmp97_); -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (e); -#line 7618 "Photo.c" - } - __finally287: -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bps); -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 787 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 7631 "Photo.c" - } - } - } -#line 736 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 736 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bps); -#line 736 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 736 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 736 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 7645 "Photo.c" - } -#line 798 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 7649 "Photo.c" - } - default: - { -#line 801 "/home/jens/Source/shotwell/src/Photo.vala" - g_assert_not_reached (); -#line 7655 "Photo.c" - } - } -#line 672 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bps); -#line 7660 "Photo.c" -} - - -void -photo_set_default_raw_developer (Photo* self, - RawDeveloper d) -{ - GError * _inner_error_ = NULL; -#line 806 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 7671 "Photo.c" - { - PhotoRow* _tmp0_; -#line 807 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 807 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 7678 "Photo.c" - { - PhotoRow* _tmp1_; -#line 808 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 808 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_->developer = d; -#line 7685 "Photo.c" - } - __finally288: - { - PhotoRow* _tmp2_; -#line 807 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->row; -#line 807 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 7694 "Photo.c" - } -#line 807 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 807 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 807 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 807 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 7704 "Photo.c" - } - } -} - - -void -photo_set_raw_developer (Photo* self, - RawDeveloper d, - gboolean notify) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 813 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 814 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_get_master_file_format (self) != PHOTO_FILE_FORMAT_RAW) { -#line 815 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 7724 "Photo.c" - } -#line 820 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_is_raw_developer_available (self, RAW_DEVELOPER_CAMERA)) { -#line 820 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = d == RAW_DEVELOPER_EMBEDDED; -#line 7730 "Photo.c" - } else { -#line 820 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = FALSE; -#line 7734 "Photo.c" - } -#line 820 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp0_) { -#line 821 "/home/jens/Source/shotwell/src/Photo.vala" - d = RAW_DEVELOPER_CAMERA; -#line 7740 "Photo.c" - } -#line 825 "/home/jens/Source/shotwell/src/Photo.vala" - if (!photo_is_raw_developer_available (self, RAW_DEVELOPER_EMBEDDED)) { -#line 825 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = d != RAW_DEVELOPER_CAMERA; -#line 7746 "Photo.c" - } else { -#line 825 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = FALSE; -#line 7750 "Photo.c" - } -#line 825 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_) { -#line 826 "/home/jens/Source/shotwell/src/Photo.vala" - d = RAW_DEVELOPER_SHOTWELL; -#line 7756 "Photo.c" - } - { - GeeHashMap* _tmp2_; -#line 828 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->developments; -#line 828 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_developments); -#line 7764 "Photo.c" - { - RawDeveloper stale_raw_developer = 0; - PhotoRow* _tmp3_; - RawDeveloper _tmp4_; - GeeHashMap* _tmp5_; - PhotoRow* _tmp7_; - GeeHashMap* _tmp8_; - gpointer _tmp9_; - PhotoBackingReaders* _tmp10_; - BackingPhotoRow* _tmp11_; - PhotoFileFormat _tmp12_; - BackingPhotoRow* _tmp13_; - const gchar* _tmp14_; - PhotoFileReader* _tmp15_; - BackingPhotoRow* _tmp20_; - Orientation _tmp21_; - gboolean _tmp30_ = FALSE; - RawDeveloper _tmp31_; -#line 829 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 829 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->developer; -#line 829 "/home/jens/Source/shotwell/src/Photo.vala" - stale_raw_developer = _tmp4_; -#line 832 "/home/jens/Source/shotwell/src/Photo.vala" - if (!photo_is_raw_developer_complete (self, d)) { -#line 833 "/home/jens/Source/shotwell/src/Photo.vala" - photo_develop_photo (self, d, notify); -#line 7793 "Photo.c" - } -#line 835 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->priv->developments; -#line 835 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d))) { -#line 7799 "Photo.c" - { - GeeHashMap* _tmp6_; -#line 828 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->priv->developments; -#line 828 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_developments); -#line 7806 "Photo.c" - } -#line 836 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 7810 "Photo.c" - } -#line 839 "/home/jens/Source/shotwell/src/Photo.vala" - photo_revert_to_master (self, FALSE); -#line 842 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = self->row; -#line 842 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_->developer = d; -#line 843 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = self->priv->developments; -#line 843 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d)); -#line 843 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->backing_photo_row); -#line 843 "/home/jens/Source/shotwell/src/Photo.vala" - self->backing_photo_row = (BackingPhotoRow*) _tmp9_; -#line 844 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = self->priv->readers; -#line 844 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = self->backing_photo_row; -#line 844 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_->file_format; -#line 844 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = self->backing_photo_row; -#line 844 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _tmp13_->filepath; -#line 844 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = photo_file_format_create_reader (_tmp12_, _tmp14_); -#line 844 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp10_->developer); -#line 844 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_->developer = _tmp15_; -#line 7842 "Photo.c" - { - GdkPixbuf* _tmp16_; - GdkPixbuf* _tmp17_; -#line 847 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = photo_get_prefetched_copy (self, &_inner_error_); -#line 847 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _tmp16_; -#line 847 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp17_); -#line 847 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7854 "Photo.c" - goto __catch290_g_error; - } - } - goto __finally290; - __catch290_g_error: - { - GError* e = NULL; -#line 846 "/home/jens/Source/shotwell/src/Photo.vala" - e = _inner_error_; -#line 846 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 850 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (e); -#line 7868 "Photo.c" - { - GeeHashMap* _tmp18_; -#line 828 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = self->priv->developments; -#line 828 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_developments); -#line 7875 "Photo.c" - } -#line 850 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 7879 "Photo.c" - } - __finally290: -#line 846 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7884 "Photo.c" - { - GeeHashMap* _tmp19_; -#line 828 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = self->priv->developments; -#line 828 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_developments); -#line 7891 "Photo.c" - } -#line 846 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 846 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 846 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 7899 "Photo.c" - } -#line 853 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = self->backing_photo_row; -#line 853 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _tmp20_->original_orientation; -#line 853 "/home/jens/Source/shotwell/src/Photo.vala" - photo_set_orientation (self, _tmp21_); -#line 7907 "Photo.c" - { - PhotoTable* _tmp22_; - PhotoTable* _tmp23_; - PhotoRow* _tmp24_; - BackingPhotoRow* _tmp25_; - BackingPhotoID _tmp26_; -#line 856 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = photo_table_get_instance (); -#line 856 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _tmp22_; -#line 856 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = self->row; -#line 856 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = self->backing_photo_row; -#line 856 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = _tmp25_->id; -#line 856 "/home/jens/Source/shotwell/src/Photo.vala" - photo_table_update_raw_development (_tmp23_, _tmp24_, d, &_tmp26_, &_inner_error_); -#line 856 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp23_); -#line 856 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7930 "Photo.c" - goto __catch291_g_error; - } - } - goto __finally291; - __catch291_g_error: - { - GError* e = NULL; - GError* _tmp27_; - const gchar* _tmp28_; -#line 855 "/home/jens/Source/shotwell/src/Photo.vala" - e = _inner_error_; -#line 855 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 858 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = e; -#line 858 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = _tmp27_->message; -#line 858 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:858: Error updating database: %s", _tmp28_); -#line 855 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (e); -#line 7952 "Photo.c" - } - __finally291: -#line 855 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7957 "Photo.c" - { - GeeHashMap* _tmp29_; -#line 828 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = self->priv->developments; -#line 828 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_developments); -#line 7964 "Photo.c" - } -#line 855 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 855 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 855 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 7972 "Photo.c" - } -#line 865 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = stale_raw_developer; -#line 865 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp31_ != RAW_DEVELOPER_CAMERA) { -#line 7978 "Photo.c" - RawDeveloper _tmp32_; - PhotoRow* _tmp33_; - RawDeveloper _tmp34_; -#line 866 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = stale_raw_developer; -#line 866 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = self->row; -#line 866 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = _tmp33_->developer; -#line 866 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = _tmp32_ != _tmp34_; -#line 7990 "Photo.c" - } else { -#line 865 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = FALSE; -#line 7994 "Photo.c" - } -#line 865 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp30_) { -#line 7998 "Photo.c" - RawDeveloper _tmp35_; -#line 869 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = stale_raw_developer; -#line 869 "/home/jens/Source/shotwell/src/Photo.vala" - photo_delete_raw_development (self, _tmp35_); -#line 8004 "Photo.c" - } - } - __finally289: - { - GeeHashMap* _tmp36_; -#line 828 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = self->priv->developments; -#line 828 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_developments); -#line 8014 "Photo.c" - } -#line 828 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 828 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 828 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 828 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 8024 "Photo.c" - } - } -#line 876 "/home/jens/Source/shotwell/src/Photo.vala" - if (notify) { -#line 8029 "Photo.c" - Alteration* _tmp37_; - Alteration* _tmp38_; -#line 877 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = alteration_new ("image", "developer"); -#line 877 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = _tmp37_; -#line 877 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp38_); -#line 877 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp38_); -#line 8040 "Photo.c" - } -#line 878 "/home/jens/Source/shotwell/src/Photo.vala" - photo_discard_prefetched (self); -#line 8044 "Photo.c" -} - - -RawDeveloper -photo_get_raw_developer (Photo* self) -{ - RawDeveloper result = 0; - PhotoRow* _tmp0_; - RawDeveloper _tmp1_; -#line 881 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), 0); -#line 882 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 882 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_->developer; -#line 882 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp1_; -#line 882 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 8064 "Photo.c" -} - - -static gboolean -photo_delete_raw_development (Photo* self, - RawDeveloper d) -{ - gboolean result = FALSE; - gboolean ret = FALSE; - GError * _inner_error_ = NULL; -#line 887 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 888 "/home/jens/Source/shotwell/src/Photo.vala" - ret = FALSE; -#line 8079 "Photo.c" - { - GeeHashMap* _tmp0_; -#line 890 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->developments; -#line 890 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_developments); -#line 8086 "Photo.c" - { - GeeHashMap* _tmp1_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - BackingPhotoRow* bpr = NULL; - GeeHashMap* _tmp7_; - gpointer _tmp8_; - BackingPhotoRow* _tmp9_; - const gchar* _tmp10_; - GeeHashMap* _tmp33_; - gboolean _tmp34_; -#line 891 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->developments; -#line 891 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d))) { -#line 892 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 8106 "Photo.c" - { - GeeHashMap* _tmp2_; -#line 890 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->developments; -#line 890 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_developments); -#line 8113 "Photo.c" - } -#line 892 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 8117 "Photo.c" - } -#line 896 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 896 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 896 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = raw_developer_to_string (d); -#line 896 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _tmp5_; -#line 896 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:896: Delete raw development: %s %s", _tmp4_, _tmp6_); -#line 896 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp6_); -#line 896 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp4_); -#line 897 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = self->priv->developments; -#line 897 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d)); -#line 897 "/home/jens/Source/shotwell/src/Photo.vala" - bpr = (BackingPhotoRow*) _tmp8_; -#line 898 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = bpr; -#line 898 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_->filepath; -#line 898 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp10_ != NULL) { -#line 8145 "Photo.c" - GFile* f = NULL; - BackingPhotoRow* _tmp11_; - const gchar* _tmp12_; - GFile* _tmp13_; -#line 899 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = bpr; -#line 899 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_->filepath; -#line 899 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = g_file_new_for_path (_tmp12_); -#line 899 "/home/jens/Source/shotwell/src/Photo.vala" - f = _tmp13_; -#line 8158 "Photo.c" - { -#line 901 "/home/jens/Source/shotwell/src/Photo.vala" - if (d == RAW_DEVELOPER_CAMERA) { -#line 8162 "Photo.c" - GFile* _tmp14_; -#line 902 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = f; -#line 902 "/home/jens/Source/shotwell/src/Photo.vala" - g_file_trash (_tmp14_, NULL, &_inner_error_); -#line 902 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8170 "Photo.c" - goto __catch293_g_error; - } - } else { - GFile* _tmp15_; -#line 904 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = f; -#line 904 "/home/jens/Source/shotwell/src/Photo.vala" - g_file_delete (_tmp15_, NULL, &_inner_error_); -#line 904 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8181 "Photo.c" - goto __catch293_g_error; - } - } - } - goto __finally293; - __catch293_g_error: - { - GError* e = NULL; - BackingPhotoRow* _tmp16_; - const gchar* _tmp17_; - GError* _tmp18_; - const gchar* _tmp19_; -#line 900 "/home/jens/Source/shotwell/src/Photo.vala" - e = _inner_error_; -#line 900 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 906 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = bpr; -#line 906 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _tmp16_->filepath; -#line 906 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = e; -#line 906 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = _tmp18_->message; -#line 906 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:906: Unable to delete RAW development: %s error: %s", _tmp17_, _tmp19_); -#line 900 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (e); -#line 8210 "Photo.c" - } - __finally293: -#line 900 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8215 "Photo.c" - gboolean _tmp21_ = FALSE; -#line 900 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (f); -#line 900 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bpr); -#line 900 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (f); -#line 900 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bpr); -#line 8225 "Photo.c" - { - GeeHashMap* _tmp20_; -#line 890 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = self->priv->developments; -#line 890 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_developments); -#line 8232 "Photo.c" - } -#line 900 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 900 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 900 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp21_; -#line 8240 "Photo.c" - } -#line 898 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (f); -#line 8244 "Photo.c" - } - { - PhotoTable* _tmp22_; - PhotoTable* _tmp23_; - PhotoRow* _tmp24_; - BackingPhotoTable* _tmp25_; - BackingPhotoTable* _tmp26_; - BackingPhotoRow* _tmp27_; - BackingPhotoID _tmp28_; -#line 912 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = photo_table_get_instance (); -#line 912 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _tmp22_; -#line 912 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = self->row; -#line 912 "/home/jens/Source/shotwell/src/Photo.vala" - photo_table_remove_development (_tmp23_, _tmp24_, d, &_inner_error_); -#line 912 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp23_); -#line 912 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8266 "Photo.c" - goto __catch294_g_error; - } -#line 913 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = backing_photo_table_get_instance (); -#line 913 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = _tmp25_; -#line 913 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = bpr; -#line 913 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = _tmp27_->id; -#line 913 "/home/jens/Source/shotwell/src/Photo.vala" - backing_photo_table_remove (_tmp26_, &_tmp28_, &_inner_error_); -#line 913 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp26_); -#line 913 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8283 "Photo.c" - goto __catch294_g_error; - } - } - goto __finally294; - __catch294_g_error: - { - GError* e = NULL; - GError* _tmp29_; - const gchar* _tmp30_; -#line 911 "/home/jens/Source/shotwell/src/Photo.vala" - e = _inner_error_; -#line 911 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 915 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = e; -#line 915 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = _tmp29_->message; -#line 915 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:915: Database error while deleting RAW development: %s", _tmp30_); -#line 911 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (e); -#line 8305 "Photo.c" - } - __finally294: -#line 911 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8310 "Photo.c" - gboolean _tmp32_ = FALSE; -#line 911 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bpr); -#line 911 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bpr); -#line 8316 "Photo.c" - { - GeeHashMap* _tmp31_; -#line 890 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = self->priv->developments; -#line 890 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_developments); -#line 8323 "Photo.c" - } -#line 911 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 911 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 911 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp32_; -#line 8331 "Photo.c" - } -#line 918 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = self->priv->developments; -#line 918 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d), NULL); -#line 918 "/home/jens/Source/shotwell/src/Photo.vala" - ret = _tmp34_; -#line 890 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bpr); -#line 8341 "Photo.c" - } - __finally292: - { - GeeHashMap* _tmp35_; -#line 890 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = self->priv->developments; -#line 890 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_developments); -#line 8350 "Photo.c" - } -#line 890 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8354 "Photo.c" - gboolean _tmp36_ = FALSE; -#line 890 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 890 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 890 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp36_; -#line 8362 "Photo.c" - } - } -#line 921 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_raw_development_modified (self); -#line 922 "/home/jens/Source/shotwell/src/Photo.vala" - result = ret; -#line 922 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 8371 "Photo.c" -} - - -void -photo_redevelop_raw (Photo* self, - RawDeveloper d) -{ - GError * _inner_error_ = NULL; -#line 926 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 8382 "Photo.c" - { - GeeHashMap* _tmp0_; -#line 927 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->developments; -#line 927 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_developments); -#line 8389 "Photo.c" - { - RawDeveloper dev = 0; - RawDeveloper _tmp1_; - RawDeveloper _tmp2_; -#line 928 "/home/jens/Source/shotwell/src/Photo.vala" - photo_delete_raw_development (self, d); -#line 929 "/home/jens/Source/shotwell/src/Photo.vala" - dev = d; -#line 930 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = dev; -#line 930 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ == RAW_DEVELOPER_CAMERA) { -#line 931 "/home/jens/Source/shotwell/src/Photo.vala" - dev = RAW_DEVELOPER_EMBEDDED; -#line 8404 "Photo.c" - } -#line 933 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = dev; -#line 933 "/home/jens/Source/shotwell/src/Photo.vala" - photo_set_raw_developer (self, _tmp2_, TRUE); -#line 8410 "Photo.c" - } - __finally295: - { - GeeHashMap* _tmp3_; -#line 927 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->developments; -#line 927 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_developments); -#line 8419 "Photo.c" - } -#line 927 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 927 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 927 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 927 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 8429 "Photo.c" - } - } -} - - -static void -_vala_array_add88 (BackingFileState** * array, - int* length, - int* size, - BackingFileState* value) -{ -#line 940 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 940 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 940 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (BackingFileState*, *array, (*size) + 1); -#line 8447 "Photo.c" - } -#line 940 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 940 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 8453 "Photo.c" -} - - -static void -_vala_array_add89 (BackingFileState** * array, - int* length, - int* size, - BackingFileState* value) -{ -#line 942 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 942 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 942 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (BackingFileState*, *array, (*size) + 1); -#line 8469 "Photo.c" - } -#line 942 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 942 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 8475 "Photo.c" -} - - -static void -_vala_array_add90 (BackingFileState** * array, - int* length, - int* size, - BackingFileState* value) -{ -#line 949 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 949 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 949 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (BackingFileState*, *array, (*size) + 1); -#line 8491 "Photo.c" - } -#line 949 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 949 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 8497 "Photo.c" -} - - -static BackingFileState** -photo_real_get_backing_files_state (MediaSource* base, - int* result_length1) -{ - Photo * self; - BackingFileState** result = NULL; - BackingFileState** backing = NULL; - BackingFileState** _tmp0_; - gint backing_length1; - gint _backing_size_; - BackingFileState** _tmp24_; - gint _tmp24__length1; - GError * _inner_error_ = NULL; -#line 937 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 938 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = g_new0 (BackingFileState*, 0 + 1); -#line 938 "/home/jens/Source/shotwell/src/Photo.vala" - backing = _tmp0_; -#line 938 "/home/jens/Source/shotwell/src/Photo.vala" - backing_length1 = 0; -#line 938 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_size_ = backing_length1; -#line 8524 "Photo.c" - { - PhotoRow* _tmp1_; -#line 939 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 939 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 8531 "Photo.c" - { - BackingFileState** _tmp2_; - gint _tmp2__length1; - PhotoRow* _tmp3_; - BackingPhotoRow* _tmp4_; - PhotoRow* _tmp5_; - const gchar* _tmp6_; - BackingFileState* _tmp7_; -#line 940 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = backing; -#line 940 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2__length1 = backing_length1; -#line 940 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 940 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->master; -#line 940 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 940 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _tmp5_->md5; -#line 940 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = backing_file_state_new_from_photo_row (_tmp4_, _tmp6_); -#line 940 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add88 (&backing, &backing_length1, &_backing_size_, _tmp7_); -#line 941 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_has_editable (self)) { -#line 8558 "Photo.c" - BackingFileState** _tmp8_; - gint _tmp8__length1; - BackingPhotoRow* _tmp9_; - BackingFileState* _tmp10_; -#line 942 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = backing; -#line 942 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8__length1 = backing_length1; -#line 942 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = self->priv->editable; -#line 942 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = backing_file_state_new_from_photo_row (_tmp9_, NULL); -#line 942 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add89 (&backing, &backing_length1, &_backing_size_, _tmp10_); -#line 8573 "Photo.c" - } -#line 944 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_is_developed (self)) { -#line 8577 "Photo.c" - GeeCollection* dev_rows = NULL; - GeeCollection* _tmp11_; - GeeCollection* _tmp12_; -#line 945 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = photo_get_raw_development_photo_rows (self); -#line 945 "/home/jens/Source/shotwell/src/Photo.vala" - dev_rows = _tmp11_; -#line 946 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = dev_rows; -#line 946 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp12_ != NULL) { -#line 8589 "Photo.c" - { - GeeIterator* _r_it = NULL; - GeeCollection* _tmp13_; - GeeIterator* _tmp14_; -#line 947 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = dev_rows; -#line 947 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 947 "/home/jens/Source/shotwell/src/Photo.vala" - _r_it = _tmp14_; -#line 947 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 8602 "Photo.c" - GeeIterator* _tmp15_; - BackingPhotoRow* r = NULL; - GeeIterator* _tmp16_; - gpointer _tmp17_; - BackingPhotoRow* _tmp18_; - const gchar* _tmp19_; - BackingFileState** _tmp20_; - gint _tmp20__length1; - BackingPhotoRow* _tmp21_; - BackingFileState* _tmp22_; -#line 947 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _r_it; -#line 947 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp15_)) { -#line 947 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 8619 "Photo.c" - } -#line 947 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = _r_it; -#line 947 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = gee_iterator_get (_tmp16_); -#line 947 "/home/jens/Source/shotwell/src/Photo.vala" - r = (BackingPhotoRow*) _tmp17_; -#line 948 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = r; -#line 948 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = _tmp18_->filepath; -#line 948 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:948: adding: %s", _tmp19_); -#line 949 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = backing; -#line 949 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20__length1 = backing_length1; -#line 949 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = r; -#line 949 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = backing_file_state_new_from_photo_row (_tmp21_, NULL); -#line 949 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add90 (&backing, &backing_length1, &_backing_size_, _tmp22_); -#line 947 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (r); -#line 8645 "Photo.c" - } -#line 947 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_r_it); -#line 8649 "Photo.c" - } - } -#line 944 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (dev_rows); -#line 8654 "Photo.c" - } - } - __finally296: - { - PhotoRow* _tmp23_; -#line 939 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = self->row; -#line 939 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 8664 "Photo.c" - } -#line 939 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 939 "/home/jens/Source/shotwell/src/Photo.vala" - backing = (_vala_array_free (backing, backing_length1, (GDestroyNotify) backing_file_state_unref), NULL); -#line 939 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 939 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 939 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 8676 "Photo.c" - } - } -#line 955 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = backing; -#line 955 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24__length1 = backing_length1; -#line 955 "/home/jens/Source/shotwell/src/Photo.vala" - if (result_length1) { -#line 955 "/home/jens/Source/shotwell/src/Photo.vala" - *result_length1 = _tmp24__length1; -#line 8687 "Photo.c" - } -#line 955 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp24_; -#line 955 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 8693 "Photo.c" -} - - -static PhotoFileReader* -photo_get_backing_reader (Photo* self, - BackingFetchMode mode) -{ - PhotoFileReader* result = NULL; -#line 958 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 959 "/home/jens/Source/shotwell/src/Photo.vala" - switch (mode) { -#line 959 "/home/jens/Source/shotwell/src/Photo.vala" - case BACKING_FETCH_MODE_MASTER: -#line 8708 "Photo.c" - { - PhotoFileReader* _tmp0_; -#line 961 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_master_reader (self); -#line 961 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp0_; -#line 961 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 8717 "Photo.c" - } -#line 959 "/home/jens/Source/shotwell/src/Photo.vala" - case BACKING_FETCH_MODE_BASELINE: -#line 8721 "Photo.c" - { - PhotoFileReader* _tmp1_; -#line 964 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_get_baseline_reader (self); -#line 964 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp1_; -#line 964 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 8730 "Photo.c" - } -#line 959 "/home/jens/Source/shotwell/src/Photo.vala" - case BACKING_FETCH_MODE_SOURCE: -#line 8734 "Photo.c" - { - PhotoFileReader* _tmp2_; -#line 967 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_get_source_reader (self); -#line 967 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_; -#line 967 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 8743 "Photo.c" - } -#line 959 "/home/jens/Source/shotwell/src/Photo.vala" - case BACKING_FETCH_MODE_UNMODIFIED: -#line 8747 "Photo.c" - { -#line 970 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_get_master_file_format (self) == PHOTO_FILE_FORMAT_RAW) { -#line 8751 "Photo.c" - PhotoFileReader* _tmp3_; -#line 971 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_get_raw_developer_reader (self); -#line 971 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 971 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 8759 "Photo.c" - } else { - PhotoFileReader* _tmp4_; -#line 973 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = photo_get_master_reader (self); -#line 973 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp4_; -#line 973 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 8768 "Photo.c" - } - } - default: - { - GEnumValue* _tmp5_; -#line 976 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = g_enum_get_value (g_type_class_ref (TYPE_BACKING_FETCH_MODE), mode); -#line 976 "/home/jens/Source/shotwell/src/Photo.vala" - g_error ("Photo.vala:976: Unknown backing fetch mode %s", (_tmp5_ != NULL) ? _tmp5_->value_name : NULL); -#line 8778 "Photo.c" - } - } -} - - -static gpointer -_photo_file_adapter_ref0 (gpointer self) -{ -#line 982 "/home/jens/Source/shotwell/src/Photo.vala" - return self ? photo_file_adapter_ref (self) : NULL; -#line 8789 "Photo.c" -} - - -static PhotoFileReader* -photo_get_master_reader (Photo* self) -{ - PhotoFileReader* result = NULL; - GError * _inner_error_ = NULL; -#line 980 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 8800 "Photo.c" - { - PhotoBackingReaders* _tmp0_; -#line 981 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->readers; -#line 981 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 8807 "Photo.c" - { - PhotoBackingReaders* _tmp1_; - PhotoFileReader* _tmp2_; - PhotoFileReader* _tmp3_; -#line 982 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->readers; -#line 982 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->master; -#line 982 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _photo_file_adapter_ref0 (_tmp2_); -#line 982 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 8820 "Photo.c" - { - PhotoBackingReaders* _tmp4_; -#line 981 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->priv->readers; -#line 981 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 8827 "Photo.c" - } -#line 982 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 8831 "Photo.c" - } - __finally297: - { - PhotoBackingReaders* _tmp5_; -#line 981 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->priv->readers; -#line 981 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 8840 "Photo.c" - } -#line 981 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 981 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 981 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 8848 "Photo.c" - } -} - - -PhotoFileReader* -photo_get_editable_reader (Photo* self) -{ - PhotoFileReader* result = NULL; - GError * _inner_error_ = NULL; -#line 986 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 8860 "Photo.c" - { - PhotoBackingReaders* _tmp0_; -#line 987 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->readers; -#line 987 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 8867 "Photo.c" - { - PhotoBackingReaders* _tmp1_; - PhotoFileReader* _tmp2_; - PhotoFileReader* _tmp3_; -#line 988 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->readers; -#line 988 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->editable; -#line 988 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _photo_file_adapter_ref0 (_tmp2_); -#line 988 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 8880 "Photo.c" - { - PhotoBackingReaders* _tmp4_; -#line 987 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->priv->readers; -#line 987 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 8887 "Photo.c" - } -#line 988 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 8891 "Photo.c" - } - __finally298: - { - PhotoBackingReaders* _tmp5_; -#line 987 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->priv->readers; -#line 987 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 8900 "Photo.c" - } -#line 987 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 987 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 987 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 8908 "Photo.c" - } -} - - -static PhotoFileReader* -photo_get_baseline_reader (Photo* self) -{ - PhotoFileReader* result = NULL; - GError * _inner_error_ = NULL; -#line 993 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 8920 "Photo.c" - { - PhotoBackingReaders* _tmp0_; -#line 994 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->readers; -#line 994 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 8927 "Photo.c" - { - PhotoBackingReaders* _tmp1_; - PhotoFileReader* _tmp2_; - PhotoBackingReaders* _tmp7_; - PhotoFileReader* _tmp8_; - PhotoBackingReaders* _tmp13_; - PhotoFileReader* _tmp14_; - PhotoFileReader* _tmp15_; -#line 995 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->readers; -#line 995 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->editable; -#line 995 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ != NULL) { -#line 8942 "Photo.c" - PhotoBackingReaders* _tmp3_; - PhotoFileReader* _tmp4_; - PhotoFileReader* _tmp5_; -#line 996 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->readers; -#line 996 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->editable; -#line 996 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _photo_file_adapter_ref0 (_tmp4_); -#line 996 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp5_; -#line 8954 "Photo.c" - { - PhotoBackingReaders* _tmp6_; -#line 994 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->priv->readers; -#line 994 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 8961 "Photo.c" - } -#line 996 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 8965 "Photo.c" - } -#line 998 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = self->priv->readers; -#line 998 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _tmp7_->developer; -#line 998 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp8_ != NULL) { -#line 8973 "Photo.c" - PhotoBackingReaders* _tmp9_; - PhotoFileReader* _tmp10_; - PhotoFileReader* _tmp11_; -#line 999 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = self->priv->readers; -#line 999 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_->developer; -#line 999 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _photo_file_adapter_ref0 (_tmp10_); -#line 999 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp11_; -#line 8985 "Photo.c" - { - PhotoBackingReaders* _tmp12_; -#line 994 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = self->priv->readers; -#line 994 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 8992 "Photo.c" - } -#line 999 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 8996 "Photo.c" - } -#line 1001 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = self->priv->readers; -#line 1001 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _tmp13_->master; -#line 1001 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _photo_file_adapter_ref0 (_tmp14_); -#line 1001 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp15_; -#line 9006 "Photo.c" - { - PhotoBackingReaders* _tmp16_; -#line 994 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = self->priv->readers; -#line 994 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9013 "Photo.c" - } -#line 1001 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9017 "Photo.c" - } - __finally299: - { - PhotoBackingReaders* _tmp17_; -#line 994 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = self->priv->readers; -#line 994 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9026 "Photo.c" - } -#line 994 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 994 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 994 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 9034 "Photo.c" - } -} - - -static PhotoFileReader* -photo_get_source_reader (Photo* self) -{ - PhotoFileReader* result = NULL; - GError * _inner_error_ = NULL; -#line 1006 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 9046 "Photo.c" - { - PhotoBackingReaders* _tmp0_; -#line 1007 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->readers; -#line 1007 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 9053 "Photo.c" - { - PhotoBackingReaders* _tmp1_; - PhotoFileReader* _tmp2_; - PhotoBackingReaders* _tmp7_; - PhotoFileReader* _tmp8_; - PhotoBackingReaders* _tmp13_; - PhotoFileReader* _tmp14_; - PhotoFileReader* _tmp15_; -#line 1008 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->readers; -#line 1008 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->editable; -#line 1008 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ != NULL) { -#line 9068 "Photo.c" - PhotoBackingReaders* _tmp3_; - PhotoFileReader* _tmp4_; - PhotoFileReader* _tmp5_; -#line 1009 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->readers; -#line 1009 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->editable; -#line 1009 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _photo_file_adapter_ref0 (_tmp4_); -#line 1009 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp5_; -#line 9080 "Photo.c" - { - PhotoBackingReaders* _tmp6_; -#line 1007 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->priv->readers; -#line 1007 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9087 "Photo.c" - } -#line 1009 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9091 "Photo.c" - } -#line 1011 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = self->priv->readers; -#line 1011 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _tmp7_->developer; -#line 1011 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp8_ != NULL) { -#line 9099 "Photo.c" - PhotoBackingReaders* _tmp9_; - PhotoFileReader* _tmp10_; - PhotoFileReader* _tmp11_; -#line 1012 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = self->priv->readers; -#line 1012 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_->developer; -#line 1012 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _photo_file_adapter_ref0 (_tmp10_); -#line 1012 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp11_; -#line 9111 "Photo.c" - { - PhotoBackingReaders* _tmp12_; -#line 1007 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = self->priv->readers; -#line 1007 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9118 "Photo.c" - } -#line 1012 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9122 "Photo.c" - } -#line 1014 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = self->priv->readers; -#line 1014 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _tmp13_->master; -#line 1014 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _photo_file_adapter_ref0 (_tmp14_); -#line 1014 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp15_; -#line 9132 "Photo.c" - { - PhotoBackingReaders* _tmp16_; -#line 1007 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = self->priv->readers; -#line 1007 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9139 "Photo.c" - } -#line 1014 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9143 "Photo.c" - } - __finally300: - { - PhotoBackingReaders* _tmp17_; -#line 1007 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = self->priv->readers; -#line 1007 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9152 "Photo.c" - } -#line 1007 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1007 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1007 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 9160 "Photo.c" - } -} - - -static PhotoFileReader* -photo_get_raw_developer_reader (Photo* self) -{ - PhotoFileReader* result = NULL; - GError * _inner_error_ = NULL; -#line 1019 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 9172 "Photo.c" - { - PhotoBackingReaders* _tmp0_; -#line 1020 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->readers; -#line 1020 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 9179 "Photo.c" - { - PhotoBackingReaders* _tmp1_; - PhotoFileReader* _tmp2_; - PhotoFileReader* _tmp3_; -#line 1021 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->readers; -#line 1021 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->developer; -#line 1021 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _photo_file_adapter_ref0 (_tmp2_); -#line 1021 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 9192 "Photo.c" - { - PhotoBackingReaders* _tmp4_; -#line 1020 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->priv->readers; -#line 1020 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9199 "Photo.c" - } -#line 1021 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9203 "Photo.c" - } - __finally301: - { - PhotoBackingReaders* _tmp5_; -#line 1020 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->priv->readers; -#line 1020 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9212 "Photo.c" - } -#line 1020 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1020 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1020 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 9220 "Photo.c" - } -} - - -gboolean -photo_is_developed (Photo* self) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 1025 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 9232 "Photo.c" - { - PhotoBackingReaders* _tmp0_; - gboolean _tmp5_ = FALSE; -#line 1026 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->readers; -#line 1026 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 9240 "Photo.c" - { - PhotoBackingReaders* _tmp1_; - PhotoFileReader* _tmp2_; -#line 1027 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->readers; -#line 1027 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->developer; -#line 1027 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_ != NULL; -#line 9250 "Photo.c" - { - PhotoBackingReaders* _tmp3_; -#line 1026 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->readers; -#line 1026 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9257 "Photo.c" - } -#line 1027 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9261 "Photo.c" - } - __finally302: - { - PhotoBackingReaders* _tmp4_; -#line 1026 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->priv->readers; -#line 1026 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9270 "Photo.c" - } -#line 1026 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1026 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1026 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp5_; -#line 9278 "Photo.c" - } -} - - -gboolean -photo_has_editable (Photo* self) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 1031 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 9290 "Photo.c" - { - PhotoBackingReaders* _tmp0_; - gboolean _tmp5_ = FALSE; -#line 1032 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->readers; -#line 1032 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 9298 "Photo.c" - { - PhotoBackingReaders* _tmp1_; - PhotoFileReader* _tmp2_; -#line 1033 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->readers; -#line 1033 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->editable; -#line 1033 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_ != NULL; -#line 9308 "Photo.c" - { - PhotoBackingReaders* _tmp3_; -#line 1032 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->readers; -#line 1032 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9315 "Photo.c" - } -#line 1033 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9319 "Photo.c" - } - __finally303: - { - PhotoBackingReaders* _tmp4_; -#line 1032 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->priv->readers; -#line 1032 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9328 "Photo.c" - } -#line 1032 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1032 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1032 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp5_; -#line 9336 "Photo.c" - } -} - - -gboolean -photo_does_master_exist (Photo* self) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 1037 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 9348 "Photo.c" - { - PhotoBackingReaders* _tmp0_; - gboolean _tmp5_ = FALSE; -#line 1038 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->readers; -#line 1038 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 9356 "Photo.c" - { - PhotoBackingReaders* _tmp1_; - PhotoFileReader* _tmp2_; -#line 1039 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->readers; -#line 1039 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->master; -#line 1039 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo_file_adapter_file_exists (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 9366 "Photo.c" - { - PhotoBackingReaders* _tmp3_; -#line 1038 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->readers; -#line 1038 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9373 "Photo.c" - } -#line 1039 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9377 "Photo.c" - } - __finally304: - { - PhotoBackingReaders* _tmp4_; -#line 1038 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->priv->readers; -#line 1038 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9386 "Photo.c" - } -#line 1038 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1038 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1038 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp5_; -#line 9394 "Photo.c" - } -} - - -gboolean -photo_does_editable_exist (Photo* self) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 1044 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 9406 "Photo.c" - { - PhotoBackingReaders* _tmp0_; - gboolean _tmp8_ = FALSE; -#line 1045 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->readers; -#line 1045 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 9414 "Photo.c" - { - gboolean _tmp1_ = FALSE; - PhotoBackingReaders* _tmp2_; - PhotoFileReader* _tmp3_; -#line 1046 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->readers; -#line 1046 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_->editable; -#line 1046 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp3_ != NULL) { -#line 9425 "Photo.c" - PhotoBackingReaders* _tmp4_; - PhotoFileReader* _tmp5_; -#line 1046 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->priv->readers; -#line 1046 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_->editable; -#line 1046 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_file_adapter_file_exists (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 9434 "Photo.c" - } else { -#line 1046 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = FALSE; -#line 9438 "Photo.c" - } -#line 1046 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp1_; -#line 9442 "Photo.c" - { - PhotoBackingReaders* _tmp6_; -#line 1045 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->priv->readers; -#line 1045 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9449 "Photo.c" - } -#line 1046 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9453 "Photo.c" - } - __finally305: - { - PhotoBackingReaders* _tmp7_; -#line 1045 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = self->priv->readers; -#line 1045 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9462 "Photo.c" - } -#line 1045 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1045 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1045 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp8_; -#line 9470 "Photo.c" - } -} - - -gboolean -photo_is_master_baseline (Photo* self) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 1050 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 9482 "Photo.c" - { - PhotoBackingReaders* _tmp0_; - gboolean _tmp5_ = FALSE; -#line 1051 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->readers; -#line 1051 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 9490 "Photo.c" - { - PhotoBackingReaders* _tmp1_; - PhotoFileReader* _tmp2_; -#line 1052 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->readers; -#line 1052 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->editable; -#line 1052 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_ == NULL; -#line 9500 "Photo.c" - { - PhotoBackingReaders* _tmp3_; -#line 1051 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->readers; -#line 1051 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9507 "Photo.c" - } -#line 1052 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9511 "Photo.c" - } - __finally306: - { - PhotoBackingReaders* _tmp4_; -#line 1051 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->priv->readers; -#line 1051 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9520 "Photo.c" - } -#line 1051 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1051 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1051 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp5_; -#line 9528 "Photo.c" - } -} - - -gboolean -photo_is_master_source (Photo* self) -{ - gboolean result = FALSE; -#line 1056 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 1057 "/home/jens/Source/shotwell/src/Photo.vala" - result = !photo_has_editable (self); -#line 1057 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9543 "Photo.c" -} - - -gboolean -photo_is_editable_baseline (Photo* self) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 1060 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 9554 "Photo.c" - { - PhotoBackingReaders* _tmp0_; - gboolean _tmp5_ = FALSE; -#line 1061 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->readers; -#line 1061 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 9562 "Photo.c" - { - PhotoBackingReaders* _tmp1_; - PhotoFileReader* _tmp2_; -#line 1062 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->readers; -#line 1062 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->editable; -#line 1062 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_ != NULL; -#line 9572 "Photo.c" - { - PhotoBackingReaders* _tmp3_; -#line 1061 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->readers; -#line 1061 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9579 "Photo.c" - } -#line 1062 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9583 "Photo.c" - } - __finally307: - { - PhotoBackingReaders* _tmp4_; -#line 1061 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->priv->readers; -#line 1061 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 9592 "Photo.c" - } -#line 1061 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1061 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1061 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp5_; -#line 9600 "Photo.c" - } -} - - -gboolean -photo_is_editable_source (Photo* self) -{ - gboolean result = FALSE; -#line 1066 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 1067 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo_has_editable (self); -#line 1067 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9615 "Photo.c" -} - - -BackingPhotoRow* -photo_get_master_photo_row (Photo* self) -{ - BackingPhotoRow* result = NULL; - GError * _inner_error_ = NULL; -#line 1070 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 9626 "Photo.c" - { - PhotoRow* _tmp0_; -#line 1071 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 1071 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 9633 "Photo.c" - { - PhotoRow* _tmp1_; - BackingPhotoRow* _tmp2_; - BackingPhotoRow* _tmp3_; -#line 1072 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 1072 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->master; -#line 1072 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _backing_photo_row_ref0 (_tmp2_); -#line 1072 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 9646 "Photo.c" - { - PhotoRow* _tmp4_; -#line 1071 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 1071 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 9653 "Photo.c" - } -#line 1072 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9657 "Photo.c" - } - __finally308: - { - PhotoRow* _tmp5_; -#line 1071 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 1071 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 9666 "Photo.c" - } -#line 1071 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1071 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1071 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 9674 "Photo.c" - } -} - - -BackingPhotoRow* -photo_get_editable_photo_row (Photo* self) -{ - BackingPhotoRow* result = NULL; - GError * _inner_error_ = NULL; -#line 1076 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 9686 "Photo.c" - { - PhotoRow* _tmp0_; -#line 1077 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 1077 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 9693 "Photo.c" - { - PhotoRow* _tmp1_; -#line 1079 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 1079 "/home/jens/Source/shotwell/src/Photo.vala" - if (backing_photo_id_is_valid (&_tmp1_->editable_id)) { -#line 9700 "Photo.c" - BackingPhotoRow* _tmp2_; - BackingPhotoRow* _tmp3_; -#line 1080 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->editable; -#line 1080 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _backing_photo_row_ref0 (_tmp2_); -#line 1080 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 9709 "Photo.c" - { - PhotoRow* _tmp4_; -#line 1077 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 1077 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 9716 "Photo.c" - } -#line 1080 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9720 "Photo.c" - } else { -#line 1082 "/home/jens/Source/shotwell/src/Photo.vala" - result = NULL; -#line 9724 "Photo.c" - { - PhotoRow* _tmp5_; -#line 1077 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 1077 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 9731 "Photo.c" - } -#line 1082 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9735 "Photo.c" - } - } - __finally309: - { - PhotoRow* _tmp6_; -#line 1077 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->row; -#line 1077 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 9745 "Photo.c" - } -#line 1077 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1077 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1077 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 9753 "Photo.c" - } -} - - -GeeCollection* -photo_get_raw_development_photo_rows (Photo* self) -{ - GeeCollection* result = NULL; - GError * _inner_error_ = NULL; -#line 1086 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 9765 "Photo.c" - { - PhotoRow* _tmp0_; -#line 1087 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 1087 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 9772 "Photo.c" - { - GeeCollection* _tmp1_ = NULL; - GeeHashMap* _tmp2_; -#line 1088 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->developments; -#line 1088 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ != NULL) { -#line 9780 "Photo.c" - GeeHashMap* _tmp3_; - GeeCollection* _tmp4_; - GeeCollection* _tmp5_; -#line 1088 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->developments; -#line 1088 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 1088 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_; -#line 1088 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp1_); -#line 1088 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp5_; -#line 9794 "Photo.c" - } else { -#line 1088 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp1_); -#line 1088 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = NULL; -#line 9800 "Photo.c" - } -#line 1088 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp1_; -#line 9804 "Photo.c" - { - PhotoRow* _tmp6_; -#line 1087 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->row; -#line 1087 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 9811 "Photo.c" - } -#line 1088 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9815 "Photo.c" - } - __finally310: - { - PhotoRow* _tmp7_; -#line 1087 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = self->row; -#line 1087 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 9824 "Photo.c" - } -#line 1087 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1087 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1087 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 9832 "Photo.c" - } -} - - -BackingPhotoRow* -photo_get_raw_development_photo_row (Photo* self, - RawDeveloper d) -{ - BackingPhotoRow* result = NULL; - GError * _inner_error_ = NULL; -#line 1092 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 9845 "Photo.c" - { - PhotoRow* _tmp0_; -#line 1093 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 1093 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 9852 "Photo.c" - { - BackingPhotoRow* _tmp1_ = NULL; - GeeHashMap* _tmp2_; -#line 1094 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->developments; -#line 1094 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ != NULL) { -#line 9860 "Photo.c" - GeeHashMap* _tmp3_; - gpointer _tmp4_; -#line 1094 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->developments; -#line 1094 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) d)); -#line 1094 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp1_); -#line 1094 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = (BackingPhotoRow*) _tmp4_; -#line 9871 "Photo.c" - } else { -#line 1094 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp1_); -#line 1094 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = NULL; -#line 9877 "Photo.c" - } -#line 1094 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp1_; -#line 9881 "Photo.c" - { - PhotoRow* _tmp5_; -#line 1093 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 1093 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 9888 "Photo.c" - } -#line 1094 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9892 "Photo.c" - } - __finally311: - { - PhotoRow* _tmp6_; -#line 1093 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->row; -#line 1093 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 9901 "Photo.c" - } -#line 1093 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1093 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1093 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 9909 "Photo.c" - } -} - - -static PhotoFileFormat* -_photo_file_format_dup (PhotoFileFormat* self) -{ - PhotoFileFormat* dup; -#line 1104 "/home/jens/Source/shotwell/src/Photo.vala" - dup = g_new0 (PhotoFileFormat, 1); -#line 1104 "/home/jens/Source/shotwell/src/Photo.vala" - memcpy (dup, self, sizeof (PhotoFileFormat)); -#line 1104 "/home/jens/Source/shotwell/src/Photo.vala" - return dup; -#line 9924 "Photo.c" -} - - -static gpointer -__photo_file_format_dup0 (gpointer self) -{ -#line 1104 "/home/jens/Source/shotwell/src/Photo.vala" - return self ? _photo_file_format_dup (self) : NULL; -#line 9933 "Photo.c" -} - - -PhotoFileFormat* -photo_get_editable_file_format (Photo* self) -{ - PhotoFileFormat* result = NULL; - PhotoFileReader* reader = NULL; - PhotoFileReader* _tmp0_; - PhotoFileReader* _tmp1_; - PhotoFileReader* _tmp2_; - PhotoFileFormat _tmp3_; - PhotoFileFormat* _tmp4_; -#line 1098 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 1099 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_editable_reader (self); -#line 1099 "/home/jens/Source/shotwell/src/Photo.vala" - reader = _tmp0_; -#line 1100 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = reader; -#line 1100 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ == NULL) { -#line 1101 "/home/jens/Source/shotwell/src/Photo.vala" - result = NULL; -#line 1101 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 1101 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9963 "Photo.c" - } -#line 1104 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = reader; -#line 1104 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 1104 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = __photo_file_format_dup0 (&_tmp3_); -#line 1104 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp4_; -#line 1104 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 1104 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 9977 "Photo.c" -} - - -PhotoFileFormat -photo_get_export_format_for_parameters (Photo* self, - ExportFormatParameters* params) -{ - PhotoFileFormat result = 0; - PhotoFileFormat _result_ = 0; - ExportFormatParameters _tmp0_; - ExportFormatMode _tmp1_; -#line 1107 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), 0); -#line 1107 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (params != NULL, 0); -#line 1108 "/home/jens/Source/shotwell/src/Photo.vala" - _result_ = photo_file_format_get_system_default_format (); -#line 1110 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = *params; -#line 1110 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_.mode; -#line 1110 "/home/jens/Source/shotwell/src/Photo.vala" - switch (_tmp1_) { -#line 1110 "/home/jens/Source/shotwell/src/Photo.vala" - case EXPORT_FORMAT_MODE_UNMODIFIED: -#line 10003 "Photo.c" - { -#line 1112 "/home/jens/Source/shotwell/src/Photo.vala" - _result_ = photo_get_master_file_format (self); -#line 1113 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 10009 "Photo.c" - } -#line 1110 "/home/jens/Source/shotwell/src/Photo.vala" - case EXPORT_FORMAT_MODE_CURRENT: -#line 10013 "Photo.c" - { -#line 1116 "/home/jens/Source/shotwell/src/Photo.vala" - _result_ = photo_get_best_export_file_format (self); -#line 1117 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 10019 "Photo.c" - } -#line 1110 "/home/jens/Source/shotwell/src/Photo.vala" - case EXPORT_FORMAT_MODE_SPECIFIED: -#line 10023 "Photo.c" - { - ExportFormatParameters _tmp2_; - PhotoFileFormat _tmp3_; -#line 1120 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = *params; -#line 1120 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_.specified_format; -#line 1120 "/home/jens/Source/shotwell/src/Photo.vala" - _result_ = _tmp3_; -#line 1121 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 10035 "Photo.c" - } - default: - { -#line 1124 "/home/jens/Source/shotwell/src/Photo.vala" - g_error ("Photo.vala:1124: get_export_format_for_parameters: unsupported export " \ -"format mode"); -#line 10041 "Photo.c" - } - } -#line 1127 "/home/jens/Source/shotwell/src/Photo.vala" - result = _result_; -#line 1127 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 10048 "Photo.c" -} - - -gchar* -photo_get_export_basename_for_parameters (Photo* self, - ExportFormatParameters* params) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - ExportFormatParameters _tmp0_; - ExportFormatMode _tmp1_; - const gchar* _tmp8_; -#line 1130 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 1130 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (params != NULL, NULL); -#line 1131 "/home/jens/Source/shotwell/src/Photo.vala" - _result_ = NULL; -#line 1133 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = *params; -#line 1133 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_.mode; -#line 1133 "/home/jens/Source/shotwell/src/Photo.vala" - switch (_tmp1_) { -#line 1133 "/home/jens/Source/shotwell/src/Photo.vala" - case EXPORT_FORMAT_MODE_UNMODIFIED: -#line 10075 "Photo.c" - { - GFile* _tmp2_; - GFile* _tmp3_; - gchar* _tmp4_; -#line 1135 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1135 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_; -#line 1135 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = g_file_get_basename (_tmp3_); -#line 1135 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_result_); -#line 1135 "/home/jens/Source/shotwell/src/Photo.vala" - _result_ = _tmp4_; -#line 1135 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp3_); -#line 1136 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 10094 "Photo.c" - } -#line 1133 "/home/jens/Source/shotwell/src/Photo.vala" - case EXPORT_FORMAT_MODE_CURRENT: -#line 1133 "/home/jens/Source/shotwell/src/Photo.vala" - case EXPORT_FORMAT_MODE_SPECIFIED: -#line 10100 "Photo.c" - { - ExportFormatParameters _tmp5_; - PhotoFileFormat _tmp6_; - gchar* _tmp7_; -#line 1140 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = *params; -#line 1140 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo_get_export_format_for_parameters (self, &_tmp5_); -#line 1140 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = photo_get_export_basename (self, &_tmp6_); -#line 1140 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp7_; -#line 1140 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_result_); -#line 1140 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 10117 "Photo.c" - } - default: - { -#line 1143 "/home/jens/Source/shotwell/src/Photo.vala" - g_error ("Photo.vala:1143: get_export_basename_for_parameters: unsupported expor" \ -"t format mode"); -#line 10123 "Photo.c" - } - } -#line 1146 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _result_; -#line 1146 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (_tmp8_ != NULL, "result != null"); -#line 1147 "/home/jens/Source/shotwell/src/Photo.vala" - result = _result_; -#line 1147 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 10134 "Photo.c" -} - - -ImportResult -photo_prepare_for_import (PhotoImportParams* params) -{ - ImportResult result = 0; - GFile* file = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - GFileInfo* info = NULL; - GFileInfo* _tmp6_; - GFile* _tmp7_; - GFile* _tmp11_; - GTimeVal timestamp = {0}; - GFileInfo* _tmp15_; - GTimeVal _tmp16_ = {0}; - gboolean _tmp17_ = FALSE; - gboolean _tmp18_ = FALSE; - const gchar* _tmp19_; - PhotoFileInterrogator* interrogator = NULL; - GFile* _tmp23_; - PhotoFileSnifferOptions _tmp24_; - PhotoFileInterrogator* _tmp25_; - PhotoFileInterrogator* _tmp32_; - DetectedPhotoInformation* detected = NULL; - PhotoFileInterrogator* _tmp33_; - DetectedPhotoInformation* _tmp34_; - gboolean _tmp35_ = FALSE; - DetectedPhotoInformation* _tmp36_; - PhotoFileSnifferOptions _tmp39_; - Orientation orientation = 0; - time_t exposure_time = 0; - gchar* title = NULL; - gchar* _tmp49_; - gchar* comment = NULL; - gchar* _tmp50_; - Rating rating = 0; - DetectedPhotoInformation* _tmp51_; - PhotoMetadata* _tmp52_; - gboolean _tmp71_ = FALSE; - gboolean _tmp72_ = FALSE; - DetectedPhotoInformation* _tmp73_; - GdkColorspace _tmp74_; - PhotoRow* _tmp82_; - PhotoRow* _tmp83_; - BackingPhotoRow* _tmp84_; - GFile* _tmp85_; - gchar* _tmp86_; - PhotoRow* _tmp87_; - BackingPhotoRow* _tmp88_; - DetectedPhotoInformation* _tmp89_; - Dimensions _tmp90_; - PhotoRow* _tmp91_; - BackingPhotoRow* _tmp92_; - GFileInfo* _tmp93_; - PhotoRow* _tmp94_; - BackingPhotoRow* _tmp95_; - GTimeVal _tmp96_; - glong _tmp97_; - PhotoRow* _tmp98_; - time_t _tmp99_; - PhotoRow* _tmp100_; - Orientation _tmp101_; - PhotoRow* _tmp102_; - BackingPhotoRow* _tmp103_; - Orientation _tmp104_; - PhotoRow* _tmp105_; - ImportID _tmp106_; - PhotoRow* _tmp107_; - PhotoRow* _tmp108_; - PhotoRow* _tmp109_; - DetectedPhotoInformation* _tmp110_; - const gchar* _tmp111_; - gchar* _tmp112_; - PhotoRow* _tmp113_; - DetectedPhotoInformation* _tmp114_; - const gchar* _tmp115_; - gchar* _tmp116_; - PhotoRow* _tmp117_; - DetectedPhotoInformation* _tmp118_; - const gchar* _tmp119_; - gchar* _tmp120_; - PhotoRow* _tmp121_; - PhotoRow* _tmp122_; - PhotoRow* _tmp123_; - BackingPhotoRow* _tmp124_; - DetectedPhotoInformation* _tmp125_; - PhotoFileFormat _tmp126_; - PhotoRow* _tmp127_; - const gchar* _tmp128_; - gchar* _tmp129_; - PhotoRow* _tmp130_; - const gchar* _tmp131_; - gchar* _tmp132_; - PhotoRow* _tmp133_; - Rating _tmp134_; - Thumbnails* _tmp135_; - GError * _inner_error_ = NULL; -#line 1162 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO_IMPORT_PARAMS (params), 0); -#line 1166 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = params->file; -#line 1166 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 1166 "/home/jens/Source/shotwell/src/Photo.vala" - file = _tmp1_; -#line 1168 "/home/jens/Source/shotwell/src/Photo.vala" - info = NULL; -#line 10244 "Photo.c" - { - GFileInfo* _tmp2_ = NULL; - GFile* _tmp3_; - GFileInfo* _tmp4_; - GFileInfo* _tmp5_; -#line 1170 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = file; -#line 1170 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = g_file_query_info (_tmp3_, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_); -#line 1170 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp4_; -#line 1170 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 10258 "Photo.c" - goto __catch312_g_error; - } -#line 1170 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp2_; -#line 1170 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = NULL; -#line 1170 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1170 "/home/jens/Source/shotwell/src/Photo.vala" - info = _tmp5_; -#line 1169 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp2_); -#line 10271 "Photo.c" - } - goto __finally312; - __catch312_g_error: - { - GError* err = NULL; -#line 1169 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 1169 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 1173 "/home/jens/Source/shotwell/src/Photo.vala" - result = IMPORT_RESULT_FILE_ERROR; -#line 1173 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 1173 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1173 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1173 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 10291 "Photo.c" - } - __finally312: -#line 1169 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1169 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1169 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1169 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1169 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1169 "/home/jens/Source/shotwell/src/Photo.vala" - return 0; -#line 10306 "Photo.c" - } -#line 1176 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = info; -#line 1176 "/home/jens/Source/shotwell/src/Photo.vala" - if (g_file_info_get_file_type (_tmp6_) != G_FILE_TYPE_REGULAR) { -#line 1177 "/home/jens/Source/shotwell/src/Photo.vala" - result = IMPORT_RESULT_NOT_A_FILE; -#line 1177 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1177 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1177 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 10320 "Photo.c" - } -#line 1179 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = file; -#line 1179 "/home/jens/Source/shotwell/src/Photo.vala" - if (!photo_is_file_image (_tmp7_)) { -#line 10326 "Photo.c" - GFile* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1180 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = file; -#line 1180 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = g_file_get_path (_tmp8_); -#line 1180 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_; -#line 1180 "/home/jens/Source/shotwell/src/Photo.vala" - g_message ("Photo.vala:1180: Not importing %s: Not an image file", _tmp10_); -#line 1180 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp10_); -#line 1182 "/home/jens/Source/shotwell/src/Photo.vala" - result = IMPORT_RESULT_NOT_AN_IMAGE; -#line 1182 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1182 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1182 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 10348 "Photo.c" - } -#line 1185 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = file; -#line 1185 "/home/jens/Source/shotwell/src/Photo.vala" - if (!photo_file_format_is_file_supported (_tmp11_)) { -#line 10354 "Photo.c" - GFile* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; -#line 1186 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = file; -#line 1186 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = g_file_get_path (_tmp12_); -#line 1186 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _tmp13_; -#line 1186 "/home/jens/Source/shotwell/src/Photo.vala" - g_message ("Photo.vala:1186: Not importing %s: Unsupported extension", _tmp14_); -#line 1186 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp14_); -#line 1188 "/home/jens/Source/shotwell/src/Photo.vala" - result = IMPORT_RESULT_UNSUPPORTED_FORMAT; -#line 1188 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1188 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1188 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 10376 "Photo.c" - } -#line 1191 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = info; -#line 1191 "/home/jens/Source/shotwell/src/Photo.vala" - g_file_info_get_modification_time (_tmp15_, &_tmp16_); -#line 1191 "/home/jens/Source/shotwell/src/Photo.vala" - timestamp = _tmp16_; -#line 1194 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = params->exif_md5; -#line 1194 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp19_ != NULL) { -#line 10388 "Photo.c" - const gchar* _tmp20_; -#line 1194 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = params->thumbnail_md5; -#line 1194 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp20_ != NULL; -#line 10394 "Photo.c" - } else { -#line 1194 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = FALSE; -#line 10398 "Photo.c" - } -#line 1194 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp18_) { -#line 10402 "Photo.c" - const gchar* _tmp21_; -#line 1194 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = params->full_md5; -#line 1194 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _tmp21_ != NULL; -#line 10408 "Photo.c" - } else { -#line 1194 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = FALSE; -#line 10412 "Photo.c" - } -#line 1194 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp17_) { -#line 10416 "Photo.c" - PhotoFileSnifferOptions _tmp22_; -#line 1195 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = params->sniffer_options; -#line 1195 "/home/jens/Source/shotwell/src/Photo.vala" - params->sniffer_options = _tmp22_ | PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5; -#line 10422 "Photo.c" - } -#line 1198 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = file; -#line 1198 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = params->sniffer_options; -#line 1198 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = photo_file_interrogator_new (_tmp23_, _tmp24_); -#line 1198 "/home/jens/Source/shotwell/src/Photo.vala" - interrogator = _tmp25_; -#line 10432 "Photo.c" - { - PhotoFileInterrogator* _tmp26_; -#line 1200 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = interrogator; -#line 1200 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_interrogator_interrogate (_tmp26_, &_inner_error_); -#line 1200 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 10441 "Photo.c" - goto __catch313_g_error; - } - } - goto __finally313; - __catch313_g_error: - { - GError* err = NULL; - GFile* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - GError* _tmp30_; - const gchar* _tmp31_; -#line 1199 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 1199 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 1202 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = file; -#line 1202 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = g_file_get_path (_tmp27_); -#line 1202 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = _tmp28_; -#line 1202 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = err; -#line 1202 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = _tmp30_->message; -#line 1202 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:1202: Unable to interrogate photo file %s: %s", _tmp29_, _tmp31_); -#line 1202 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp29_); -#line 1204 "/home/jens/Source/shotwell/src/Photo.vala" - result = IMPORT_RESULT_DECODE_ERROR; -#line 1204 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 1204 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 1204 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1204 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1204 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 10484 "Photo.c" - } - __finally313: -#line 1199 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1199 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 1199 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1199 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1199 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1199 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1199 "/home/jens/Source/shotwell/src/Photo.vala" - return 0; -#line 10501 "Photo.c" - } -#line 1207 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = interrogator; -#line 1207 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_file_interrogator_get_is_photo_corrupted (_tmp32_)) { -#line 1208 "/home/jens/Source/shotwell/src/Photo.vala" - result = IMPORT_RESULT_NOT_AN_IMAGE; -#line 1208 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 1208 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1208 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1208 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 10517 "Photo.c" - } -#line 1211 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = interrogator; -#line 1211 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = photo_file_interrogator_get_detected_photo_information (_tmp33_); -#line 1211 "/home/jens/Source/shotwell/src/Photo.vala" - detected = _tmp34_; -#line 1212 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = detected; -#line 1212 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp36_ == NULL) { -#line 1212 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = TRUE; -#line 10531 "Photo.c" - } else { - DetectedPhotoInformation* _tmp37_; - PhotoFileFormat _tmp38_; -#line 1212 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = detected; -#line 1212 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = _tmp37_->file_format; -#line 1212 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = _tmp38_ == PHOTO_FILE_FORMAT_UNKNOWN; -#line 10541 "Photo.c" - } -#line 1212 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp35_) { -#line 1213 "/home/jens/Source/shotwell/src/Photo.vala" - result = IMPORT_RESULT_UNSUPPORTED_FORMAT; -#line 1213 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1213 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 1213 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1213 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1213 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 10557 "Photo.c" - } -#line 1216 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = params->sniffer_options; -#line 1216 "/home/jens/Source/shotwell/src/Photo.vala" - if ((_tmp39_ & PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5) != 0) { -#line 10563 "Photo.c" - DetectedPhotoInformation* _tmp40_; - const gchar* _tmp41_; - gchar* _tmp42_; - DetectedPhotoInformation* _tmp43_; - const gchar* _tmp44_; - gchar* _tmp45_; - DetectedPhotoInformation* _tmp46_; - const gchar* _tmp47_; - gchar* _tmp48_; -#line 1217 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = detected; -#line 1217 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = params->exif_md5; -#line 1217 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = g_strdup (_tmp41_); -#line 1217 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp40_->exif_md5); -#line 1217 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_->exif_md5 = _tmp42_; -#line 1218 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = detected; -#line 1218 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = params->thumbnail_md5; -#line 1218 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = g_strdup (_tmp44_); -#line 1218 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp43_->thumbnail_md5); -#line 1218 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_->thumbnail_md5 = _tmp45_; -#line 1219 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = detected; -#line 1219 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = params->full_md5; -#line 1219 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = g_strdup (_tmp47_); -#line 1219 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp46_->md5); -#line 1219 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_->md5 = _tmp48_; -#line 10603 "Photo.c" - } -#line 1222 "/home/jens/Source/shotwell/src/Photo.vala" - orientation = ORIENTATION_TOP_LEFT; -#line 1223 "/home/jens/Source/shotwell/src/Photo.vala" - exposure_time = (time_t) 0; -#line 1224 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = g_strdup (""); -#line 1224 "/home/jens/Source/shotwell/src/Photo.vala" - title = _tmp49_; -#line 1225 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = g_strdup (""); -#line 1225 "/home/jens/Source/shotwell/src/Photo.vala" - comment = _tmp50_; -#line 1226 "/home/jens/Source/shotwell/src/Photo.vala" - rating = RATING_UNRATED; -#line 1233 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp51_ = detected; -#line 1233 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp52_ = _tmp51_->metadata; -#line 1233 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp52_ != NULL) { -#line 10625 "Photo.c" - MetadataDateTime* date_time = NULL; - DetectedPhotoInformation* _tmp53_; - PhotoMetadata* _tmp54_; - MetadataDateTime* _tmp55_; - MetadataDateTime* _tmp56_; - DetectedPhotoInformation* _tmp58_; - PhotoMetadata* _tmp59_; - DetectedPhotoInformation* _tmp60_; - PhotoMetadata* _tmp61_; - gchar* _tmp62_; - DetectedPhotoInformation* _tmp63_; - PhotoMetadata* _tmp64_; - gchar* _tmp65_; - DetectedPhotoInformation* _tmp66_; - PhotoMetadata* _tmp67_; - GeeSet* _tmp68_; - DetectedPhotoInformation* _tmp69_; - PhotoMetadata* _tmp70_; -#line 1234 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp53_ = detected; -#line 1234 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp54_ = _tmp53_->metadata; -#line 1234 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp55_ = photo_metadata_get_exposure_date_time (_tmp54_); -#line 1234 "/home/jens/Source/shotwell/src/Photo.vala" - date_time = _tmp55_; -#line 1235 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp56_ = date_time; -#line 1235 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp56_ != NULL) { -#line 10656 "Photo.c" - MetadataDateTime* _tmp57_; -#line 1236 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_ = date_time; -#line 1236 "/home/jens/Source/shotwell/src/Photo.vala" - exposure_time = metadata_date_time_get_timestamp (_tmp57_); -#line 10662 "Photo.c" - } -#line 1238 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp58_ = detected; -#line 1238 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp59_ = _tmp58_->metadata; -#line 1238 "/home/jens/Source/shotwell/src/Photo.vala" - orientation = photo_metadata_get_orientation (_tmp59_); -#line 1239 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp60_ = detected; -#line 1239 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp61_ = _tmp60_->metadata; -#line 1239 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp62_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_MEDIA_METADATA, MediaMetadata)); -#line 1239 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (title); -#line 1239 "/home/jens/Source/shotwell/src/Photo.vala" - title = _tmp62_; -#line 1240 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp63_ = detected; -#line 1240 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp64_ = _tmp63_->metadata; -#line 1240 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp65_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_MEDIA_METADATA, MediaMetadata)); -#line 1240 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (comment); -#line 1240 "/home/jens/Source/shotwell/src/Photo.vala" - comment = _tmp65_; -#line 1241 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp66_ = detected; -#line 1241 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp67_ = _tmp66_->metadata; -#line 1241 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp68_ = photo_metadata_get_keywords (_tmp67_, NULL, NULL, NULL); -#line 1241 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (params->keywords); -#line 1241 "/home/jens/Source/shotwell/src/Photo.vala" - params->keywords = G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GEE_TYPE_COLLECTION, GeeCollection); -#line 1242 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp69_ = detected; -#line 1242 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp70_ = _tmp69_->metadata; -#line 1242 "/home/jens/Source/shotwell/src/Photo.vala" - rating = photo_metadata_get_rating (_tmp70_); -#line 1233 "/home/jens/Source/shotwell/src/Photo.vala" - _metadata_date_time_unref0 (date_time); -#line 10708 "Photo.c" - } -#line 1246 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp73_ = detected; -#line 1246 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp74_ = _tmp73_->colorspace; -#line 1246 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp74_ != GDK_COLORSPACE_RGB) { -#line 1246 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp72_ = TRUE; -#line 10718 "Photo.c" - } else { - DetectedPhotoInformation* _tmp75_; - gint _tmp76_; -#line 1247 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp75_ = detected; -#line 1247 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp76_ = _tmp75_->channels; -#line 1247 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp72_ = _tmp76_ < 3; -#line 10728 "Photo.c" - } -#line 1246 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp72_) { -#line 1246 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp71_ = TRUE; -#line 10734 "Photo.c" - } else { - DetectedPhotoInformation* _tmp77_; - gint _tmp78_; -#line 1248 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp77_ = detected; -#line 1248 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp78_ = _tmp77_->bits_per_channel; -#line 1248 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp71_ = _tmp78_ != 8; -#line 10744 "Photo.c" - } -#line 1246 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp71_) { -#line 10748 "Photo.c" - GFile* _tmp79_; - gchar* _tmp80_; - gchar* _tmp81_; -#line 1249 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp79_ = file; -#line 1249 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp80_ = g_file_get_path (_tmp79_); -#line 1249 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp81_ = _tmp80_; -#line 1249 "/home/jens/Source/shotwell/src/Photo.vala" - g_message ("Photo.vala:1249: Not importing %s: Unsupported color format", _tmp81_); -#line 1249 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp81_); -#line 1251 "/home/jens/Source/shotwell/src/Photo.vala" - result = IMPORT_RESULT_UNSUPPORTED_FORMAT; -#line 1251 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (comment); -#line 1251 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (title); -#line 1251 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1251 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 1251 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1251 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1251 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 10778 "Photo.c" - } -#line 1257 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp82_ = params->row; -#line 1257 "/home/jens/Source/shotwell/src/Photo.vala" - photo_id_init (&_tmp82_->photo_id, PHOTO_ID_INVALID); -#line 1258 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp83_ = params->row; -#line 1258 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp84_ = _tmp83_->master; -#line 1258 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp85_ = file; -#line 1258 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp86_ = g_file_get_path (_tmp85_); -#line 1258 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp84_->filepath); -#line 1258 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp84_->filepath = _tmp86_; -#line 1259 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp87_ = params->row; -#line 1259 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp88_ = _tmp87_->master; -#line 1259 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp89_ = detected; -#line 1259 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp90_ = _tmp89_->image_dim; -#line 1259 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp88_->dim = _tmp90_; -#line 1260 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp91_ = params->row; -#line 1260 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp92_ = _tmp91_->master; -#line 1260 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp93_ = info; -#line 1260 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp92_->filesize = g_file_info_get_size (_tmp93_); -#line 1261 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp94_ = params->row; -#line 1261 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp95_ = _tmp94_->master; -#line 1261 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp96_ = timestamp; -#line 1261 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp97_ = _tmp96_.tv_sec; -#line 1261 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp95_->timestamp = (time_t) _tmp97_; -#line 1262 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp98_ = params->row; -#line 1262 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp99_ = exposure_time; -#line 1262 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp98_->exposure_time = _tmp99_; -#line 1263 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp100_ = params->row; -#line 1263 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp101_ = orientation; -#line 1263 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp100_->orientation = _tmp101_; -#line 1264 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp102_ = params->row; -#line 1264 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp103_ = _tmp102_->master; -#line 1264 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp104_ = orientation; -#line 1264 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp103_->original_orientation = _tmp104_; -#line 1265 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp105_ = params->row; -#line 1265 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp106_ = params->import_id; -#line 1265 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp105_->import_id = _tmp106_; -#line 1266 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp107_ = params->row; -#line 1266 "/home/jens/Source/shotwell/src/Photo.vala" - event_id_init (&_tmp107_->event_id, EVENT_ID_INVALID); -#line 1267 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp108_ = params->row; -#line 1267 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp108_->transformations); -#line 1267 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp108_->transformations = NULL; -#line 1268 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp109_ = params->row; -#line 1268 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp110_ = detected; -#line 1268 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp111_ = _tmp110_->md5; -#line 1268 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp112_ = g_strdup (_tmp111_); -#line 1268 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp109_->md5); -#line 1268 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp109_->md5 = _tmp112_; -#line 1269 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp113_ = params->row; -#line 1269 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp114_ = detected; -#line 1269 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp115_ = _tmp114_->thumbnail_md5; -#line 1269 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp116_ = g_strdup (_tmp115_); -#line 1269 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp113_->thumbnail_md5); -#line 1269 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp113_->thumbnail_md5 = _tmp116_; -#line 1270 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp117_ = params->row; -#line 1270 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp118_ = detected; -#line 1270 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp119_ = _tmp118_->exif_md5; -#line 1270 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp120_ = g_strdup (_tmp119_); -#line 1270 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp117_->exif_md5); -#line 1270 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp117_->exif_md5 = _tmp120_; -#line 1271 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp121_ = params->row; -#line 1271 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp121_->time_created = (time_t) 0; -#line 1272 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp122_ = params->row; -#line 1272 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp122_->flags = (guint64) 0; -#line 1273 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp123_ = params->row; -#line 1273 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp124_ = _tmp123_->master; -#line 1273 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp125_ = detected; -#line 1273 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp126_ = _tmp125_->file_format; -#line 1273 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp124_->file_format = _tmp126_; -#line 1274 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp127_ = params->row; -#line 1274 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp128_ = title; -#line 1274 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp129_ = g_strdup (_tmp128_); -#line 1274 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp127_->title); -#line 1274 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp127_->title = _tmp129_; -#line 1275 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp130_ = params->row; -#line 1275 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp131_ = comment; -#line 1275 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp132_ = g_strdup (_tmp131_); -#line 1275 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp130_->comment); -#line 1275 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp130_->comment = _tmp132_; -#line 1276 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp133_ = params->row; -#line 1276 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp134_ = rating; -#line 1276 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp133_->rating = _tmp134_; -#line 1278 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp135_ = params->thumbnails; -#line 1278 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp135_ != NULL) { -#line 10944 "Photo.c" - PhotoFileReader* reader = NULL; - PhotoRow* _tmp136_; - BackingPhotoRow* _tmp137_; - PhotoFileFormat _tmp138_; - PhotoRow* _tmp139_; - BackingPhotoRow* _tmp140_; - const gchar* _tmp141_; - PhotoFileReader* _tmp142_; - PhotoFileReader* _tmp143_; -#line 1279 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp136_ = params->row; -#line 1279 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp137_ = _tmp136_->master; -#line 1279 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp138_ = _tmp137_->file_format; -#line 1279 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp139_ = params->row; -#line 1279 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp140_ = _tmp139_->master; -#line 1279 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp141_ = _tmp140_->filepath; -#line 1279 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp142_ = photo_file_format_create_reader (_tmp138_, _tmp141_); -#line 1279 "/home/jens/Source/shotwell/src/Photo.vala" - reader = _tmp142_; -#line 1281 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp143_ = reader; -#line 1281 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_reader_set_role (_tmp143_, PHOTO_FILE_READER_ROLE_THUMBNAIL); -#line 10974 "Photo.c" - { - Thumbnails* _tmp144_; - PhotoFileReader* _tmp145_; - PhotoRow* _tmp146_; - Orientation _tmp147_; - PhotoRow* _tmp148_; - BackingPhotoRow* _tmp149_; - Dimensions _tmp150_; -#line 1283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp144_ = params->thumbnails; -#line 1283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp145_ = reader; -#line 1283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp146_ = params->row; -#line 1283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp147_ = _tmp146_->orientation; -#line 1283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp148_ = params->row; -#line 1283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp149_ = _tmp148_->master; -#line 1283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp150_ = _tmp149_->dim; -#line 1283 "/home/jens/Source/shotwell/src/Photo.vala" - thumbnail_cache_generate_for_photo (_tmp144_, _tmp145_, _tmp147_, &_tmp150_, &_inner_error_); -#line 1283 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 11001 "Photo.c" - goto __catch314_g_error; - } - } - goto __finally314; - __catch314_g_error: - { - GError* err = NULL; - GError* _tmp151_; -#line 1282 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 1282 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 1286 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp151_ = err; -#line 1286 "/home/jens/Source/shotwell/src/Photo.vala" - result = import_result_convert_error (_tmp151_, IMPORT_RESULT_FILE_ERROR); -#line 1286 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 1286 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 1286 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (comment); -#line 1286 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (title); -#line 1286 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1286 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 1286 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1286 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1286 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 11036 "Photo.c" - } - __finally314: -#line 1282 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1282 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 1282 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (comment); -#line 1282 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (title); -#line 1282 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1282 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 1282 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1282 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1282 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1282 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1282 "/home/jens/Source/shotwell/src/Photo.vala" - return 0; -#line 11061 "Photo.c" - } -#line 1278 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 11065 "Photo.c" - } -#line 1293 "/home/jens/Source/shotwell/src/Photo.vala" - result = IMPORT_RESULT_SUCCESS; -#line 1293 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (comment); -#line 1293 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (title); -#line 1293 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1293 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 1293 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1293 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1293 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 11083 "Photo.c" -} - - -void -photo_create_pre_import (PhotoImportParams* params) -{ - GFile* file = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - PhotoRow* _tmp2_; - PhotoRow* _tmp3_; - BackingPhotoRow* _tmp4_; - gchar* _tmp5_; - PhotoRow* _tmp6_; - BackingPhotoRow* _tmp7_; - PhotoRow* _tmp8_; - BackingPhotoRow* _tmp9_; - PhotoRow* _tmp10_; - BackingPhotoRow* _tmp11_; - PhotoRow* _tmp12_; - PhotoRow* _tmp13_; - PhotoRow* _tmp14_; - BackingPhotoRow* _tmp15_; - PhotoRow* _tmp16_; - ImportID _tmp17_; - PhotoRow* _tmp18_; - PhotoRow* _tmp19_; - PhotoRow* _tmp20_; - PhotoRow* _tmp21_; - PhotoRow* _tmp22_; - PhotoRow* _tmp23_; - PhotoRow* _tmp24_; - PhotoRow* _tmp25_; - BackingPhotoRow* _tmp26_; - PhotoRow* _tmp27_; - PhotoRow* _tmp28_; - PhotoRow* _tmp29_; - PhotoFileInterrogator* interrogator = NULL; - GFile* _tmp30_; - PhotoFileSnifferOptions _tmp31_; - PhotoFileInterrogator* _tmp32_; - GError * _inner_error_ = NULL; -#line 1296 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO_IMPORT_PARAMS (params)); -#line 1297 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = params->file; -#line 1297 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 1297 "/home/jens/Source/shotwell/src/Photo.vala" - file = _tmp1_; -#line 1298 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = params->row; -#line 1298 "/home/jens/Source/shotwell/src/Photo.vala" - photo_id_init (&_tmp2_->photo_id, PHOTO_ID_INVALID); -#line 1299 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = params->row; -#line 1299 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->master; -#line 1299 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = g_file_get_path (file); -#line 1299 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp4_->filepath); -#line 1299 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_->filepath = _tmp5_; -#line 1300 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = params->row; -#line 1300 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_->master; -#line 1300 "/home/jens/Source/shotwell/src/Photo.vala" - dimensions_init (&_tmp7_->dim, 0, 0); -#line 1301 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = params->row; -#line 1301 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_->master; -#line 1301 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_->filesize = (gint64) 0; -#line 1302 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = params->row; -#line 1302 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_->master; -#line 1302 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_->timestamp = (time_t) 0; -#line 1303 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = params->row; -#line 1303 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_->exposure_time = (time_t) 0; -#line 1304 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = params->row; -#line 1304 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_->orientation = ORIENTATION_TOP_LEFT; -#line 1305 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = params->row; -#line 1305 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_->master; -#line 1305 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_->original_orientation = ORIENTATION_TOP_LEFT; -#line 1306 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = params->row; -#line 1306 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = params->import_id; -#line 1306 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_->import_id = _tmp17_; -#line 1307 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = params->row; -#line 1307 "/home/jens/Source/shotwell/src/Photo.vala" - event_id_init (&_tmp18_->event_id, EVENT_ID_INVALID); -#line 1308 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = params->row; -#line 1308 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp19_->transformations); -#line 1308 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_->transformations = NULL; -#line 1309 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = params->row; -#line 1309 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp20_->md5); -#line 1309 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_->md5 = NULL; -#line 1310 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = params->row; -#line 1310 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp21_->thumbnail_md5); -#line 1310 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_->thumbnail_md5 = NULL; -#line 1311 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = params->row; -#line 1311 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp22_->exif_md5); -#line 1311 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_->exif_md5 = NULL; -#line 1312 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = params->row; -#line 1312 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_->time_created = (time_t) 0; -#line 1313 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = params->row; -#line 1313 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_->flags = (guint64) 0; -#line 1314 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = params->row; -#line 1314 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = _tmp25_->master; -#line 1314 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_->file_format = PHOTO_FILE_FORMAT_JFIF; -#line 1315 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = params->row; -#line 1315 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp27_->title); -#line 1315 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_->title = NULL; -#line 1316 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = params->row; -#line 1316 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp28_->comment); -#line 1316 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_->comment = NULL; -#line 1317 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = params->row; -#line 1317 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_->rating = RATING_UNRATED; -#line 1319 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = params->file; -#line 1319 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = params->sniffer_options; -#line 1319 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = photo_file_interrogator_new (_tmp30_, _tmp31_); -#line 1319 "/home/jens/Source/shotwell/src/Photo.vala" - interrogator = _tmp32_; -#line 11252 "Photo.c" - { - DetectedPhotoInformation* detected = NULL; - DetectedPhotoInformation* _tmp33_; - gboolean _tmp34_ = FALSE; - gboolean _tmp35_ = FALSE; - DetectedPhotoInformation* _tmp36_; -#line 1321 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_interrogator_interrogate (interrogator, &_inner_error_); -#line 1321 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 11263 "Photo.c" - goto __catch315_g_error; - } -#line 1322 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = photo_file_interrogator_get_detected_photo_information (interrogator); -#line 1322 "/home/jens/Source/shotwell/src/Photo.vala" - detected = _tmp33_; -#line 1323 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = detected; -#line 1323 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp36_ != NULL) { -#line 1323 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = !photo_file_interrogator_get_is_photo_corrupted (interrogator); -#line 11276 "Photo.c" - } else { -#line 1323 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = FALSE; -#line 11280 "Photo.c" - } -#line 1323 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp35_) { -#line 11284 "Photo.c" - DetectedPhotoInformation* _tmp37_; - PhotoFileFormat _tmp38_; -#line 1323 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = detected; -#line 1323 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = _tmp37_->file_format; -#line 1323 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = _tmp38_ != PHOTO_FILE_FORMAT_UNKNOWN; -#line 11293 "Photo.c" - } else { -#line 1323 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = FALSE; -#line 11297 "Photo.c" - } -#line 1323 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp34_) { -#line 11301 "Photo.c" - PhotoRow* _tmp39_; - BackingPhotoRow* _tmp40_; - DetectedPhotoInformation* _tmp41_; - PhotoFileFormat _tmp42_; -#line 1324 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = params->row; -#line 1324 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = _tmp39_->master; -#line 1324 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = detected; -#line 1324 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = _tmp41_->file_format; -#line 1324 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_->file_format = _tmp42_; -#line 11316 "Photo.c" - } -#line 1320 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 11320 "Photo.c" - } - goto __finally315; - __catch315_g_error: - { - GError* err = NULL; - gchar* _tmp43_; - gchar* _tmp44_; - GError* _tmp45_; - const gchar* _tmp46_; -#line 1320 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 1320 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 1326 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = g_file_get_path (file); -#line 1326 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = _tmp43_; -#line 1326 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = err; -#line 1326 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = _tmp45_->message; -#line 1326 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:1326: Unable to interrogate photo file %s: %s", _tmp44_, _tmp46_); -#line 1326 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp44_); -#line 1320 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 11348 "Photo.c" - } - __finally315: -#line 1320 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1320 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 1320 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1320 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1320 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1320 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 11363 "Photo.c" - } -#line 1296 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 1296 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 11369 "Photo.c" -} - - -BackingPhotoRow* -photo_query_backing_photo_row (Photo* self, - GFile* file, - PhotoFileSnifferOptions options, - DetectedPhotoInformation* * detected, - GError** error) -{ - DetectedPhotoInformation* _vala_detected = NULL; - BackingPhotoRow* result = NULL; - BackingPhotoRow* backing = NULL; - BackingPhotoRow* _tmp0_; - GFileInfo* info = NULL; - PhotoFileInterrogator* interrogator = NULL; - PhotoFileInterrogator* _tmp8_; - PhotoFileInterrogator* _tmp9_; - PhotoFileInterrogator* _tmp10_; - DetectedPhotoInformation* _tmp11_; - gboolean _tmp12_ = FALSE; - DetectedPhotoInformation* _tmp13_; - GTimeVal modification_time = {0}; - GFileInfo* _tmp17_; - GTimeVal _tmp18_ = {0}; - BackingPhotoRow* _tmp19_; - gchar* _tmp20_; - BackingPhotoRow* _tmp21_; - GTimeVal _tmp22_; - glong _tmp23_; - BackingPhotoRow* _tmp24_; - GFileInfo* _tmp25_; - BackingPhotoRow* _tmp26_; - DetectedPhotoInformation* _tmp27_; - PhotoFileFormat _tmp28_; - BackingPhotoRow* _tmp29_; - DetectedPhotoInformation* _tmp30_; - Dimensions _tmp31_; - Orientation _tmp32_ = 0; - DetectedPhotoInformation* _tmp33_; - PhotoMetadata* _tmp34_; - BackingPhotoRow* _tmp37_; - GError * _inner_error_ = NULL; -#line 1330 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 1330 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 1332 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (_vala_detected); -#line 1332 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_detected = NULL; -#line 1334 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = backing_photo_row_new (); -#line 1334 "/home/jens/Source/shotwell/src/Photo.vala" - backing = _tmp0_; -#line 1336 "/home/jens/Source/shotwell/src/Photo.vala" - info = NULL; -#line 11427 "Photo.c" - { - GFileInfo* _tmp1_ = NULL; - GFileInfo* _tmp2_; - GFileInfo* _tmp3_; -#line 1338 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = g_file_query_info (file, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_); -#line 1338 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp2_; -#line 1338 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 11438 "Photo.c" - goto __catch316_g_error; - } -#line 1338 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp1_; -#line 1338 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = NULL; -#line 1338 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1338 "/home/jens/Source/shotwell/src/Photo.vala" - info = _tmp3_; -#line 1337 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp1_); -#line 11451 "Photo.c" - } - goto __finally316; - __catch316_g_error: - { - GError* err = NULL; - gchar* _tmp4_; - gchar* _tmp5_; - GError* _tmp6_; - const gchar* _tmp7_; -#line 1337 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 1337 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 1341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = g_file_get_path (file); -#line 1341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_; -#line 1341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = err; -#line 1341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_->message; -#line 1341 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("Photo.vala:1341: Unable to read file information for %s: %s", _tmp5_, _tmp7_); -#line 1341 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp5_); -#line 1343 "/home/jens/Source/shotwell/src/Photo.vala" - result = NULL; -#line 1343 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 1343 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1343 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 1343 "/home/jens/Source/shotwell/src/Photo.vala" - if (detected) { -#line 1343 "/home/jens/Source/shotwell/src/Photo.vala" - *detected = _vala_detected; -#line 11489 "Photo.c" - } else { -#line 1343 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (_vala_detected); -#line 11493 "Photo.c" - } -#line 1343 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 11497 "Photo.c" - } - __finally316: -#line 1337 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1337 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1337 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1337 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 1337 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 11510 "Photo.c" - } -#line 1347 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = photo_file_interrogator_new (file, options); -#line 1347 "/home/jens/Source/shotwell/src/Photo.vala" - interrogator = _tmp8_; -#line 1348 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = interrogator; -#line 1348 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_interrogator_interrogate (_tmp9_, &_inner_error_); -#line 1348 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1348 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1348 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 1348 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1348 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 1348 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 11532 "Photo.c" - } -#line 1349 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = interrogator; -#line 1349 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = photo_file_interrogator_get_detected_photo_information (_tmp10_); -#line 1349 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (_vala_detected); -#line 1349 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_detected = _tmp11_; -#line 1350 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _vala_detected; -#line 1350 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp13_ == NULL) { -#line 1350 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = TRUE; -#line 11548 "Photo.c" - } else { - PhotoFileInterrogator* _tmp14_; -#line 1350 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = interrogator; -#line 1350 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = photo_file_interrogator_get_is_photo_corrupted (_tmp14_); -#line 11555 "Photo.c" - } -#line 1350 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp12_) { -#line 11559 "Photo.c" - gchar* _tmp15_; - gchar* _tmp16_; -#line 1351 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 1351 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = _tmp15_; -#line 1351 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("Photo.vala:1351: Photo update: %s no longer a recognized image", _tmp16_); -#line 1351 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp16_); -#line 1353 "/home/jens/Source/shotwell/src/Photo.vala" - result = NULL; -#line 1353 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 1353 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1353 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 1353 "/home/jens/Source/shotwell/src/Photo.vala" - if (detected) { -#line 1353 "/home/jens/Source/shotwell/src/Photo.vala" - *detected = _vala_detected; -#line 11582 "Photo.c" - } else { -#line 1353 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (_vala_detected); -#line 11586 "Photo.c" - } -#line 1353 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 11590 "Photo.c" - } -#line 1356 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = info; -#line 1356 "/home/jens/Source/shotwell/src/Photo.vala" - g_file_info_get_modification_time (_tmp17_, &_tmp18_); -#line 1356 "/home/jens/Source/shotwell/src/Photo.vala" - modification_time = _tmp18_; -#line 1358 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = backing; -#line 1358 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = g_file_get_path (file); -#line 1358 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp19_->filepath); -#line 1358 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_->filepath = _tmp20_; -#line 1359 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = backing; -#line 1359 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = modification_time; -#line 1359 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _tmp22_.tv_sec; -#line 1359 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_->timestamp = (time_t) _tmp23_; -#line 1360 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = backing; -#line 1360 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = info; -#line 1360 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_->filesize = g_file_info_get_size (_tmp25_); -#line 1361 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = backing; -#line 1361 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = _vala_detected; -#line 1361 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = _tmp27_->file_format; -#line 1361 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_->file_format = _tmp28_; -#line 1362 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = backing; -#line 1362 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = _vala_detected; -#line 1362 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = _tmp30_->image_dim; -#line 1362 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_->dim = _tmp31_; -#line 1363 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = _vala_detected; -#line 1363 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = _tmp33_->metadata; -#line 1363 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp34_ != NULL) { -#line 11642 "Photo.c" - DetectedPhotoInformation* _tmp35_; - PhotoMetadata* _tmp36_; -#line 1364 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = _vala_detected; -#line 1364 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = _tmp35_->metadata; -#line 1364 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = photo_metadata_get_orientation (_tmp36_); -#line 11651 "Photo.c" - } else { -#line 1364 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = ORIENTATION_TOP_LEFT; -#line 11655 "Photo.c" - } -#line 1363 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = backing; -#line 1363 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_->original_orientation = _tmp32_; -#line 1366 "/home/jens/Source/shotwell/src/Photo.vala" - result = backing; -#line 1366 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 1366 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 1366 "/home/jens/Source/shotwell/src/Photo.vala" - if (detected) { -#line 1366 "/home/jens/Source/shotwell/src/Photo.vala" - *detected = _vala_detected; -#line 11671 "Photo.c" - } else { -#line 1366 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (_vala_detected); -#line 11675 "Photo.c" - } -#line 1366 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 11679 "Photo.c" -} - - -static void -_vala_array_add91 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 1462 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 1462 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1462 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 11695 "Photo.c" - } -#line 1462 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 1462 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 11701 "Photo.c" -} - - -static void -_vala_array_add92 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 1465 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 1465 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1465 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 11717 "Photo.c" - } -#line 1465 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 1465 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 11723 "Photo.c" -} - - -static void -_vala_array_add93 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 1472 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 1472 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1472 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 11739 "Photo.c" - } -#line 1472 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 1472 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 11745 "Photo.c" -} - - -static void -_vala_array_add94 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 1475 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 1475 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1475 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 11761 "Photo.c" - } -#line 1475 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 1475 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 11767 "Photo.c" -} - - -static void -_vala_array_add95 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 1478 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 1478 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1478 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 11783 "Photo.c" - } -#line 1478 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 1478 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 11789 "Photo.c" -} - - -static void -_vala_array_add96 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 1481 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 1481 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1481 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 11805 "Photo.c" - } -#line 1481 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 1481 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 11811 "Photo.c" -} - - -static gpointer -_media_metadata_ref0 (gpointer self) -{ -#line 1491 "/home/jens/Source/shotwell/src/Photo.vala" - return self ? media_metadata_ref (self) : NULL; -#line 11820 "Photo.c" -} - - -gboolean -photo_prepare_for_reimport_master (Photo* self, - PhotoReimportMasterState* * reimport_state, - GError** error) -{ - PhotoReimportMasterState* _vala_reimport_state = NULL; - gboolean result = FALSE; - GFile* file = NULL; - PhotoFileReader* _tmp0_; - PhotoFileReader* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - DetectedPhotoInformation* detected = NULL; - BackingPhotoRow* backing = NULL; - GFile* _tmp4_; - DetectedPhotoInformation* _tmp5_ = NULL; - BackingPhotoRow* _tmp6_; - BackingPhotoRow* _tmp8_; - gboolean _tmp12_ = FALSE; - gboolean _tmp13_ = FALSE; - DetectedPhotoInformation* _tmp14_; - GdkColorspace _tmp15_; - PhotoRow* updated_row = NULL; - PhotoRow* _tmp23_; - gchar** list = NULL; - gchar** _tmp29_; - gint list_length1; - gint _list_size_; - PhotoRow* _tmp30_; - const gchar* _tmp31_; - DetectedPhotoInformation* _tmp32_; - const gchar* _tmp33_; - PhotoRow* _tmp36_; - BackingPhotoRow* _tmp37_; - Orientation _tmp38_; - BackingPhotoRow* _tmp39_; - Orientation _tmp40_; - DetectedPhotoInformation* _tmp47_; - PhotoMetadata* _tmp48_; - PhotoRow* _tmp83_; - BackingPhotoRow* _tmp84_; - BackingPhotoRow* _tmp85_; - PhotoRow* _tmp86_; - DetectedPhotoInformation* _tmp87_; - const gchar* _tmp88_; - gchar* _tmp89_; - PhotoRow* _tmp90_; - DetectedPhotoInformation* _tmp91_; - const gchar* _tmp92_; - gchar* _tmp93_; - PhotoRow* _tmp94_; - DetectedPhotoInformation* _tmp95_; - const gchar* _tmp96_; - gchar* _tmp97_; - PhotoMetadata* metadata = NULL; - DetectedPhotoInformation* _tmp98_; - PhotoMetadata* _tmp99_; - PhotoRow* _tmp120_; - PhotoMetadata* _tmp121_; - gchar** _tmp122_; - gint _tmp122__length1; - PhotoReimportMasterStateImpl* _tmp123_; - GError * _inner_error_ = NULL; -#line 1430 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 1431 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_master_state_unref0 (_vala_reimport_state); -#line 1431 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_reimport_state = NULL; -#line 1433 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_master_reader (self); -#line 1433 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 1433 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 1433 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_; -#line 1433 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp1_); -#line 1433 "/home/jens/Source/shotwell/src/Photo.vala" - file = _tmp3_; -#line 1436 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = file; -#line 1436 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo_query_backing_photo_row (self, _tmp4_, PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL, &_tmp5_, &_inner_error_); -#line 1436 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1436 "/home/jens/Source/shotwell/src/Photo.vala" - detected = _tmp5_; -#line 1436 "/home/jens/Source/shotwell/src/Photo.vala" - backing = _tmp6_; -#line 1436 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 11917 "Photo.c" - gboolean _tmp7_ = FALSE; -#line 1436 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1436 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1436 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1436 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp7_; -#line 11927 "Photo.c" - } -#line 1438 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = backing; -#line 1438 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp8_ == NULL) { -#line 11933 "Photo.c" - GFile* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; -#line 1439 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = file; -#line 1439 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = g_file_get_path (_tmp9_); -#line 1439 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_; -#line 1439 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:1439: Unable to retrieve photo state from %s for reimport", _tmp11_); -#line 1439 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp11_); -#line 1440 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 1440 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 1440 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1440 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1440 "/home/jens/Source/shotwell/src/Photo.vala" - if (reimport_state) { -#line 1440 "/home/jens/Source/shotwell/src/Photo.vala" - *reimport_state = _vala_reimport_state; -#line 11959 "Photo.c" - } else { -#line 1440 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_master_state_unref0 (_vala_reimport_state); -#line 11963 "Photo.c" - } -#line 1440 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 11967 "Photo.c" - } -#line 1444 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = detected; -#line 1444 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_->colorspace; -#line 1444 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp15_ != GDK_COLORSPACE_RGB) { -#line 1444 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = TRUE; -#line 11977 "Photo.c" - } else { - DetectedPhotoInformation* _tmp16_; - gint _tmp17_; -#line 1445 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = detected; -#line 1445 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _tmp16_->channels; -#line 1445 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp17_ < 3; -#line 11987 "Photo.c" - } -#line 1444 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp13_) { -#line 1444 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = TRUE; -#line 11993 "Photo.c" - } else { - DetectedPhotoInformation* _tmp18_; - gint _tmp19_; -#line 1446 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = detected; -#line 1446 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = _tmp18_->bits_per_channel; -#line 1446 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp19_ != 8; -#line 12003 "Photo.c" - } -#line 1444 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp12_) { -#line 12007 "Photo.c" - GFile* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; -#line 1447 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = file; -#line 1447 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = g_file_get_path (_tmp20_); -#line 1447 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = _tmp21_; -#line 1447 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:1447: Not re-importing %s: Unsupported color format", _tmp22_); -#line 1447 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp22_); -#line 1449 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 1449 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 1449 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1449 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1449 "/home/jens/Source/shotwell/src/Photo.vala" - if (reimport_state) { -#line 1449 "/home/jens/Source/shotwell/src/Photo.vala" - *reimport_state = _vala_reimport_state; -#line 12033 "Photo.c" - } else { -#line 1449 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_master_state_unref0 (_vala_reimport_state); -#line 12037 "Photo.c" - } -#line 1449 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 12041 "Photo.c" - } -#line 1453 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = photo_row_new (); -#line 1453 "/home/jens/Source/shotwell/src/Photo.vala" - updated_row = _tmp23_; -#line 12047 "Photo.c" - { - PhotoRow* _tmp24_; -#line 1454 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = self->row; -#line 1454 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 12054 "Photo.c" - { - PhotoRow* _tmp25_; - PhotoRow* _tmp26_; -#line 1455 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = self->row; -#line 1455 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = _photo_row_ref0 (_tmp25_); -#line 1455 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_row_unref0 (updated_row); -#line 1455 "/home/jens/Source/shotwell/src/Photo.vala" - updated_row = _tmp26_; -#line 12066 "Photo.c" - } - __finally317: - { - PhotoRow* _tmp27_; -#line 1454 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = self->row; -#line 1454 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 12075 "Photo.c" - } -#line 1454 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12079 "Photo.c" - gboolean _tmp28_ = FALSE; -#line 1454 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1454 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_row_unref0 (updated_row); -#line 1454 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 1454 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1454 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1454 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp28_; -#line 12093 "Photo.c" - } - } -#line 1459 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = g_new0 (gchar*, 0 + 1); -#line 1459 "/home/jens/Source/shotwell/src/Photo.vala" - list = _tmp29_; -#line 1459 "/home/jens/Source/shotwell/src/Photo.vala" - list_length1 = 0; -#line 1459 "/home/jens/Source/shotwell/src/Photo.vala" - _list_size_ = list_length1; -#line 1461 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = updated_row; -#line 1461 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = _tmp30_->md5; -#line 1461 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = detected; -#line 1461 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = _tmp32_->md5; -#line 1461 "/home/jens/Source/shotwell/src/Photo.vala" - if (g_strcmp0 (_tmp31_, _tmp33_) != 0) { -#line 12114 "Photo.c" - gchar** _tmp34_; - gint _tmp34__length1; - gchar* _tmp35_; -#line 1462 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = list; -#line 1462 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34__length1 = list_length1; -#line 1462 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = g_strdup ("metadata:md5"); -#line 1462 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add91 (&list, &list_length1, &_list_size_, _tmp35_); -#line 12126 "Photo.c" - } -#line 1464 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = updated_row; -#line 1464 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = _tmp36_->master; -#line 1464 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = _tmp37_->original_orientation; -#line 1464 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = backing; -#line 1464 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = _tmp39_->original_orientation; -#line 1464 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp38_ != _tmp40_) { -#line 12140 "Photo.c" - gchar** _tmp41_; - gint _tmp41__length1; - gchar* _tmp42_; - PhotoRow* _tmp43_; - BackingPhotoRow* _tmp44_; - BackingPhotoRow* _tmp45_; - Orientation _tmp46_; -#line 1465 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = list; -#line 1465 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41__length1 = list_length1; -#line 1465 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = g_strdup ("image:orientation"); -#line 1465 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add92 (&list, &list_length1, &_list_size_, _tmp42_); -#line 1466 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = updated_row; -#line 1466 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = _tmp43_->master; -#line 1466 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = backing; -#line 1466 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = _tmp45_->original_orientation; -#line 1466 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_->original_orientation = _tmp46_; -#line 12166 "Photo.c" - } -#line 1469 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = detected; -#line 1469 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = _tmp47_->metadata; -#line 1469 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp48_ != NULL) { -#line 12174 "Photo.c" - MetadataDateTime* date_time = NULL; - DetectedPhotoInformation* _tmp49_; - PhotoMetadata* _tmp50_; - MetadataDateTime* _tmp51_; - gboolean _tmp52_ = FALSE; - MetadataDateTime* _tmp53_; - PhotoRow* _tmp59_; - const gchar* _tmp60_; - DetectedPhotoInformation* _tmp61_; - PhotoMetadata* _tmp62_; - gchar* _tmp63_; - gchar* _tmp64_; - gboolean _tmp65_; - PhotoRow* _tmp68_; - const gchar* _tmp69_; - DetectedPhotoInformation* _tmp70_; - PhotoMetadata* _tmp71_; - gchar* _tmp72_; - gchar* _tmp73_; - gboolean _tmp74_; - PhotoRow* _tmp77_; - Rating _tmp78_; - DetectedPhotoInformation* _tmp79_; - PhotoMetadata* _tmp80_; -#line 1470 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = detected; -#line 1470 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = _tmp49_->metadata; -#line 1470 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp51_ = photo_metadata_get_exposure_date_time (_tmp50_); -#line 1470 "/home/jens/Source/shotwell/src/Photo.vala" - date_time = _tmp51_; -#line 1471 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp53_ = date_time; -#line 1471 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp53_ != NULL) { -#line 12211 "Photo.c" - PhotoRow* _tmp54_; - time_t _tmp55_; - MetadataDateTime* _tmp56_; -#line 1471 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp54_ = updated_row; -#line 1471 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp55_ = _tmp54_->exposure_time; -#line 1471 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp56_ = date_time; -#line 1471 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp52_ = _tmp55_ != metadata_date_time_get_timestamp (_tmp56_); -#line 12223 "Photo.c" - } else { -#line 1471 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp52_ = FALSE; -#line 12227 "Photo.c" - } -#line 1471 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp52_) { -#line 12231 "Photo.c" - gchar** _tmp57_; - gint _tmp57__length1; - gchar* _tmp58_; -#line 1472 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_ = list; -#line 1472 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57__length1 = list_length1; -#line 1472 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp58_ = g_strdup ("metadata:exposure-time"); -#line 1472 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add93 (&list, &list_length1, &_list_size_, _tmp58_); -#line 12243 "Photo.c" - } -#line 1474 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp59_ = updated_row; -#line 1474 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp60_ = _tmp59_->title; -#line 1474 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp61_ = detected; -#line 1474 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp62_ = _tmp61_->metadata; -#line 1474 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp63_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, TYPE_MEDIA_METADATA, MediaMetadata)); -#line 1474 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp64_ = _tmp63_; -#line 1474 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp65_ = g_strcmp0 (_tmp60_, _tmp64_) != 0; -#line 1474 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp64_); -#line 1474 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp65_) { -#line 12263 "Photo.c" - gchar** _tmp66_; - gint _tmp66__length1; - gchar* _tmp67_; -#line 1475 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp66_ = list; -#line 1475 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp66__length1 = list_length1; -#line 1475 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp67_ = g_strdup ("metadata:name"); -#line 1475 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add94 (&list, &list_length1, &_list_size_, _tmp67_); -#line 12275 "Photo.c" - } -#line 1477 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp68_ = updated_row; -#line 1477 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp69_ = _tmp68_->comment; -#line 1477 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp70_ = detected; -#line 1477 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp71_ = _tmp70_->metadata; -#line 1477 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp72_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, TYPE_MEDIA_METADATA, MediaMetadata)); -#line 1477 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp73_ = _tmp72_; -#line 1477 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp74_ = g_strcmp0 (_tmp69_, _tmp73_) != 0; -#line 1477 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp73_); -#line 1477 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp74_) { -#line 12295 "Photo.c" - gchar** _tmp75_; - gint _tmp75__length1; - gchar* _tmp76_; -#line 1478 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp75_ = list; -#line 1478 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp75__length1 = list_length1; -#line 1478 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp76_ = g_strdup ("metadata:comment"); -#line 1478 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add95 (&list, &list_length1, &_list_size_, _tmp76_); -#line 12307 "Photo.c" - } -#line 1480 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp77_ = updated_row; -#line 1480 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp78_ = _tmp77_->rating; -#line 1480 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp79_ = detected; -#line 1480 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp80_ = _tmp79_->metadata; -#line 1480 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp78_ != photo_metadata_get_rating (_tmp80_)) { -#line 12319 "Photo.c" - gchar** _tmp81_; - gint _tmp81__length1; - gchar* _tmp82_; -#line 1481 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp81_ = list; -#line 1481 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp81__length1 = list_length1; -#line 1481 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp82_ = g_strdup ("metadata:rating"); -#line 1481 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add96 (&list, &list_length1, &_list_size_, _tmp82_); -#line 12331 "Photo.c" - } -#line 1469 "/home/jens/Source/shotwell/src/Photo.vala" - _metadata_date_time_unref0 (date_time); -#line 12335 "Photo.c" - } -#line 1484 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp83_ = updated_row; -#line 1484 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp84_ = backing; -#line 1484 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp85_ = _backing_photo_row_ref0 (_tmp84_); -#line 1484 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp83_->master); -#line 1484 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp83_->master = _tmp85_; -#line 1485 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp86_ = updated_row; -#line 1485 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp87_ = detected; -#line 1485 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp88_ = _tmp87_->md5; -#line 1485 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp89_ = g_strdup (_tmp88_); -#line 1485 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp86_->md5); -#line 1485 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp86_->md5 = _tmp89_; -#line 1486 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp90_ = updated_row; -#line 1486 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp91_ = detected; -#line 1486 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp92_ = _tmp91_->exif_md5; -#line 1486 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp93_ = g_strdup (_tmp92_); -#line 1486 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp90_->exif_md5); -#line 1486 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp90_->exif_md5 = _tmp93_; -#line 1487 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp94_ = updated_row; -#line 1487 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp95_ = detected; -#line 1487 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp96_ = _tmp95_->thumbnail_md5; -#line 1487 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp97_ = g_strdup (_tmp96_); -#line 1487 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp94_->thumbnail_md5); -#line 1487 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp94_->thumbnail_md5 = _tmp97_; -#line 1489 "/home/jens/Source/shotwell/src/Photo.vala" - metadata = NULL; -#line 1490 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp98_ = detected; -#line 1490 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp99_ = _tmp98_->metadata; -#line 1490 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp99_ != NULL) { -#line 12391 "Photo.c" - DetectedPhotoInformation* _tmp100_; - PhotoMetadata* _tmp101_; - PhotoMetadata* _tmp102_; - MetadataDateTime* date_time = NULL; - DetectedPhotoInformation* _tmp103_; - PhotoMetadata* _tmp104_; - MetadataDateTime* _tmp105_; - MetadataDateTime* _tmp106_; - PhotoRow* _tmp109_; - DetectedPhotoInformation* _tmp110_; - PhotoMetadata* _tmp111_; - gchar* _tmp112_; - PhotoRow* _tmp113_; - DetectedPhotoInformation* _tmp114_; - PhotoMetadata* _tmp115_; - gchar* _tmp116_; - PhotoRow* _tmp117_; - DetectedPhotoInformation* _tmp118_; - PhotoMetadata* _tmp119_; -#line 1491 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp100_ = detected; -#line 1491 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp101_ = _tmp100_->metadata; -#line 1491 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp102_ = _media_metadata_ref0 (_tmp101_); -#line 1491 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 1491 "/home/jens/Source/shotwell/src/Photo.vala" - metadata = _tmp102_; -#line 1493 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp103_ = detected; -#line 1493 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp104_ = _tmp103_->metadata; -#line 1493 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp105_ = photo_metadata_get_exposure_date_time (_tmp104_); -#line 1493 "/home/jens/Source/shotwell/src/Photo.vala" - date_time = _tmp105_; -#line 1494 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp106_ = date_time; -#line 1494 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp106_ != NULL) { -#line 12433 "Photo.c" - PhotoRow* _tmp107_; - MetadataDateTime* _tmp108_; -#line 1495 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp107_ = updated_row; -#line 1495 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp108_ = date_time; -#line 1495 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp107_->exposure_time = metadata_date_time_get_timestamp (_tmp108_); -#line 12442 "Photo.c" - } -#line 1497 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp109_ = updated_row; -#line 1497 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp110_ = detected; -#line 1497 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp111_ = _tmp110_->metadata; -#line 1497 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp112_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp111_, TYPE_MEDIA_METADATA, MediaMetadata)); -#line 1497 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp109_->title); -#line 1497 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp109_->title = _tmp112_; -#line 1498 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp113_ = updated_row; -#line 1498 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp114_ = detected; -#line 1498 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp115_ = _tmp114_->metadata; -#line 1498 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp116_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp115_, TYPE_MEDIA_METADATA, MediaMetadata)); -#line 1498 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp113_->comment); -#line 1498 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp113_->comment = _tmp116_; -#line 1499 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp117_ = updated_row; -#line 1499 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp118_ = detected; -#line 1499 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp119_ = _tmp118_->metadata; -#line 1499 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp117_->rating = photo_metadata_get_rating (_tmp119_); -#line 1490 "/home/jens/Source/shotwell/src/Photo.vala" - _metadata_date_time_unref0 (date_time); -#line 12478 "Photo.c" - } -#line 1502 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp120_ = updated_row; -#line 1502 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp121_ = metadata; -#line 1502 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp122_ = list; -#line 1502 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp122__length1 = list_length1; -#line 1502 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp123_ = photo_reimport_master_state_impl_new (_tmp120_, _tmp121_, _tmp122_, _tmp122__length1); -#line 1502 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_master_state_unref0 (_vala_reimport_state); -#line 1502 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_reimport_state = G_TYPE_CHECK_INSTANCE_CAST (_tmp123_, PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterState); -#line 1504 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 1504 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 1504 "/home/jens/Source/shotwell/src/Photo.vala" - list = (_vala_array_free (list, list_length1, (GDestroyNotify) g_free), NULL); -#line 1504 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_row_unref0 (updated_row); -#line 1504 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 1504 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1504 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1504 "/home/jens/Source/shotwell/src/Photo.vala" - if (reimport_state) { -#line 1504 "/home/jens/Source/shotwell/src/Photo.vala" - *reimport_state = _vala_reimport_state; -#line 12512 "Photo.c" - } else { -#line 1504 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_master_state_unref0 (_vala_reimport_state); -#line 12516 "Photo.c" - } -#line 1504 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 12520 "Photo.c" -} - - -static void -photo_real_apply_user_metadata_for_reimport (Photo* self, - PhotoMetadata* metadata) -{ -#line 1507 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("Type `%s' does not implement abstract method `photo_apply_user_metadata_for_reimport'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 1507 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 12532 "Photo.c" -} - - -void -photo_apply_user_metadata_for_reimport (Photo* self, - PhotoMetadata* metadata) -{ -#line 1507 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 1507 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_GET_CLASS (self)->apply_user_metadata_for_reimport (self, metadata); -#line 12544 "Photo.c" -} - - -static gpointer -_photo_reimport_master_state_ref0 (gpointer self) -{ -#line 1511 "/home/jens/Source/shotwell/src/Photo.vala" - return self ? photo_reimport_master_state_ref (self) : NULL; -#line 12553 "Photo.c" -} - - -static void -_vala_array_add97 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 1529 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 1529 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1529 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 12569 "Photo.c" - } -#line 1529 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 1529 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 12575 "Photo.c" -} - - -static void -_vala_array_add98 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 1531 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 1531 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1531 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 12591 "Photo.c" - } -#line 1531 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 1531 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 12597 "Photo.c" -} - - -void -photo_finish_reimport_master (Photo* self, - PhotoReimportMasterState* state, - GError** error) -{ - PhotoReimportMasterStateImpl* reimport_state = NULL; - PhotoReimportMasterStateImpl* _tmp0_; - PhotoTable* _tmp1_; - PhotoTable* _tmp2_; - PhotoRow* _tmp3_; - PhotoMetadata* _tmp19_; - gboolean _tmp21_; - gchar** _tmp26_; - gint _tmp26__length1; - PhotoMetadata* _tmp30_; - GError * _inner_error_ = NULL; -#line 1510 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 1510 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (PHOTO_IS_REIMPORT_MASTER_STATE (state)); -#line 1511 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _photo_reimport_master_state_ref0 (G_TYPE_CHECK_INSTANCE_CAST (state, PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImpl)); -#line 1511 "/home/jens/Source/shotwell/src/Photo.vala" - reimport_state = _tmp0_; -#line 1513 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_table_get_instance (); -#line 1513 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 1513 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = reimport_state->row; -#line 1513 "/home/jens/Source/shotwell/src/Photo.vala" - photo_table_reimport (_tmp2_, _tmp3_, &_inner_error_); -#line 1513 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp2_); -#line 1513 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1513 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1513 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1513 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_master_state_unref0 (reimport_state); -#line 1513 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 12645 "Photo.c" - } else { -#line 1513 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_master_state_unref0 (reimport_state); -#line 1513 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1513 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1513 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 12655 "Photo.c" - } - } - { - PhotoRow* _tmp4_; -#line 1515 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 1515 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 12664 "Photo.c" - { - BackingPhotoRow* original_master = NULL; - PhotoRow* _tmp5_; - BackingPhotoRow* _tmp6_; - BackingPhotoRow* _tmp7_; - PhotoRow* _tmp8_; - PhotoRow* _tmp9_; - PhotoRow* _tmp10_; - BackingPhotoRow* _tmp11_; - BackingPhotoRow* _tmp12_; - PhotoRow* _tmp13_; - BackingPhotoRow* _tmp14_; - PhotoRow* _tmp15_; - BackingPhotoRow* _tmp16_; - gboolean _tmp17_; -#line 1517 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 1517 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _tmp5_->master; -#line 1517 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _backing_photo_row_ref0 (_tmp6_); -#line 1517 "/home/jens/Source/shotwell/src/Photo.vala" - original_master = _tmp7_; -#line 1518 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = reimport_state->row; -#line 1518 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _photo_row_ref0 (_tmp8_); -#line 1518 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_row_unref0 (self->row); -#line 1518 "/home/jens/Source/shotwell/src/Photo.vala" - self->row = _tmp9_; -#line 1519 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = self->row; -#line 1519 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = original_master; -#line 1519 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _backing_photo_row_ref0 (_tmp11_); -#line 1519 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp10_->master); -#line 1519 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_->master = _tmp12_; -#line 1520 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = self->row; -#line 1520 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _tmp13_->master; -#line 1520 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = reimport_state->row; -#line 1520 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = _tmp15_->master; -#line 1520 "/home/jens/Source/shotwell/src/Photo.vala" - backing_photo_row_copy_from (_tmp14_, _tmp16_); -#line 1521 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = reimport_state->metadata_only; -#line 1521 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp17_) { -#line 1522 "/home/jens/Source/shotwell/src/Photo.vala" - photo_internal_remove_all_transformations (self, FALSE); -#line 12722 "Photo.c" - } -#line 1515 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (original_master); -#line 12726 "Photo.c" - } - __finally318: - { - PhotoRow* _tmp18_; -#line 1515 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = self->row; -#line 1515 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 12735 "Photo.c" - } -#line 1515 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1515 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1515 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1515 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_master_state_unref0 (reimport_state); -#line 1515 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 12747 "Photo.c" - } else { -#line 1515 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_master_state_unref0 (reimport_state); -#line 1515 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1515 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1515 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 12757 "Photo.c" - } - } - } -#line 1525 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = reimport_state->metadata; -#line 1525 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp19_ != NULL) { -#line 12765 "Photo.c" - PhotoMetadata* _tmp20_; -#line 1526 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = reimport_state->metadata; -#line 1526 "/home/jens/Source/shotwell/src/Photo.vala" - photo_apply_user_metadata_for_reimport (self, _tmp20_); -#line 12771 "Photo.c" - } -#line 1528 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = reimport_state->metadata_only; -#line 1528 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp21_) { -#line 12777 "Photo.c" - gchar** _tmp22_; - gint _tmp22__length1; - gchar* _tmp23_; -#line 1529 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = reimport_state->alterations; -#line 1529 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22__length1 = reimport_state->alterations_length1; -#line 1529 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = g_strdup ("image:master"); -#line 1529 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add97 (&reimport_state->alterations, &reimport_state->alterations_length1, &reimport_state->_alterations_size_, _tmp23_); -#line 1530 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_is_master_baseline (self)) { -#line 12791 "Photo.c" - gchar** _tmp24_; - gint _tmp24__length1; - gchar* _tmp25_; -#line 1531 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = reimport_state->alterations; -#line 1531 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24__length1 = reimport_state->alterations_length1; -#line 1531 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = g_strdup ("image:baseline"); -#line 1531 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add98 (&reimport_state->alterations, &reimport_state->alterations_length1, &reimport_state->_alterations_size_, _tmp25_); -#line 12803 "Photo.c" - } - } -#line 1534 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = reimport_state->alterations; -#line 1534 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26__length1 = reimport_state->alterations_length1; -#line 1534 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp26__length1 > 0) { -#line 12812 "Photo.c" - gchar** _tmp27_; - gint _tmp27__length1; - Alteration* _tmp28_; - Alteration* _tmp29_; -#line 1535 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = reimport_state->alterations; -#line 1535 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27__length1 = reimport_state->alterations_length1; -#line 1535 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = alteration_new_from_array (_tmp27_, _tmp27__length1); -#line 1535 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = _tmp28_; -#line 1535 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp29_); -#line 1535 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp29_); -#line 12829 "Photo.c" - } -#line 1537 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = reimport_state->metadata; -#line 1537 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_master_reimported (self, _tmp30_); -#line 1539 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_is_master_baseline (self)) { -#line 12837 "Photo.c" - PhotoMetadata* _tmp31_; -#line 1540 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = reimport_state->metadata; -#line 1540 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_baseline_reimported (self, _tmp31_); -#line 12843 "Photo.c" - } -#line 1542 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_is_master_source (self)) { -#line 12847 "Photo.c" - PhotoMetadata* _tmp32_; -#line 1543 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = reimport_state->metadata; -#line 1543 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_source_reimported (self, _tmp32_); -#line 12853 "Photo.c" - } -#line 1510 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_master_state_unref0 (reimport_state); -#line 12857 "Photo.c" -} - - -static gboolean -photo_verify_file_for_reimport (Photo* self, - GFile* file, - BackingPhotoRow* * backing, - DetectedPhotoInformation* * detected, - GError** error) -{ - BackingPhotoRow* _vala_backing = NULL; - DetectedPhotoInformation* _vala_detected = NULL; - gboolean result = FALSE; - BackingPhotoRow* _tmp0_ = NULL; - DetectedPhotoInformation* _tmp1_ = NULL; - BackingPhotoRow* _tmp2_; - BackingPhotoRow* _tmp4_; - BackingPhotoRow* _tmp5_; - gboolean _tmp6_ = FALSE; - gboolean _tmp7_ = FALSE; - DetectedPhotoInformation* _tmp8_; - GdkColorspace _tmp9_; - GError * _inner_error_ = NULL; -#line 1547 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 1547 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 1549 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_query_backing_photo_row (self, file, PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5, &_tmp1_, &_inner_error_); -#line 1549 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (_vala_detected); -#line 1549 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_detected = _tmp1_; -#line 1549 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp2_; -#line 1549 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12895 "Photo.c" - gboolean _tmp3_ = FALSE; -#line 1549 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1549 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp3_; -#line 12901 "Photo.c" - } -#line 1549 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp0_; -#line 1549 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = NULL; -#line 1549 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_vala_backing); -#line 1549 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_backing = _tmp4_; -#line 1551 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _vala_backing; -#line 1551 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp5_ == NULL) { -#line 1552 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 1552 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp0_); -#line 1552 "/home/jens/Source/shotwell/src/Photo.vala" - if (backing) { -#line 1552 "/home/jens/Source/shotwell/src/Photo.vala" - *backing = _vala_backing; -#line 12923 "Photo.c" - } else { -#line 1552 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_vala_backing); -#line 12927 "Photo.c" - } -#line 1552 "/home/jens/Source/shotwell/src/Photo.vala" - if (detected) { -#line 1552 "/home/jens/Source/shotwell/src/Photo.vala" - *detected = _vala_detected; -#line 12933 "Photo.c" - } else { -#line 1552 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (_vala_detected); -#line 12937 "Photo.c" - } -#line 1552 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 12941 "Photo.c" - } -#line 1556 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _vala_detected; -#line 1556 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_->colorspace; -#line 1556 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp9_ != GDK_COLORSPACE_RGB) { -#line 1556 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = TRUE; -#line 12951 "Photo.c" - } else { - DetectedPhotoInformation* _tmp10_; - gint _tmp11_; -#line 1557 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _vala_detected; -#line 1557 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_->channels; -#line 1557 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp11_ < 3; -#line 12961 "Photo.c" - } -#line 1556 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp7_) { -#line 1556 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = TRUE; -#line 12967 "Photo.c" - } else { - DetectedPhotoInformation* _tmp12_; - gint _tmp13_; -#line 1558 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _vala_detected; -#line 1558 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_->bits_per_channel; -#line 1558 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _tmp13_ != 8; -#line 12977 "Photo.c" - } -#line 1556 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp6_) { -#line 12981 "Photo.c" - gchar* _tmp14_; - gchar* _tmp15_; -#line 1559 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = g_file_get_path (file); -#line 1559 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_; -#line 1559 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:1559: Not re-importing %s: Unsupported color format", _tmp15_); -#line 1559 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp15_); -#line 1561 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 1561 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp0_); -#line 1561 "/home/jens/Source/shotwell/src/Photo.vala" - if (backing) { -#line 1561 "/home/jens/Source/shotwell/src/Photo.vala" - *backing = _vala_backing; -#line 13000 "Photo.c" - } else { -#line 1561 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_vala_backing); -#line 13004 "Photo.c" - } -#line 1561 "/home/jens/Source/shotwell/src/Photo.vala" - if (detected) { -#line 1561 "/home/jens/Source/shotwell/src/Photo.vala" - *detected = _vala_detected; -#line 13010 "Photo.c" - } else { -#line 1561 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (_vala_detected); -#line 13014 "Photo.c" - } -#line 1561 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 13018 "Photo.c" - } -#line 1564 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 1564 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp0_); -#line 1564 "/home/jens/Source/shotwell/src/Photo.vala" - if (backing) { -#line 1564 "/home/jens/Source/shotwell/src/Photo.vala" - *backing = _vala_backing; -#line 13028 "Photo.c" - } else { -#line 1564 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_vala_backing); -#line 13032 "Photo.c" - } -#line 1564 "/home/jens/Source/shotwell/src/Photo.vala" - if (detected) { -#line 1564 "/home/jens/Source/shotwell/src/Photo.vala" - *detected = _vala_detected; -#line 13038 "Photo.c" - } else { -#line 1564 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (_vala_detected); -#line 13042 "Photo.c" - } -#line 1564 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 13046 "Photo.c" -} - - -gboolean -photo_prepare_for_reimport_editable (Photo* self, - PhotoReimportEditableState* * state, - GError** error) -{ - PhotoReimportEditableState* _vala_state = NULL; - gboolean result = FALSE; - GFile* file = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - DetectedPhotoInformation* detected = NULL; - BackingPhotoRow* backing = NULL; - gboolean _tmp2_ = FALSE; - GFile* _tmp3_; - BackingPhotoRow* _tmp4_ = NULL; - DetectedPhotoInformation* _tmp5_ = NULL; - gboolean _tmp6_; - BackingPhotoRow* _tmp8_; - DetectedPhotoInformation* _tmp9_; - PhotoMetadata* _tmp10_; - PhotoReimportEditableStateImpl* _tmp11_; - GError * _inner_error_ = NULL; -#line 1568 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 1569 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_editable_state_unref0 (_vala_state); -#line 1569 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_state = NULL; -#line 1571 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_editable_file (self); -#line 1571 "/home/jens/Source/shotwell/src/Photo.vala" - file = _tmp0_; -#line 1572 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = file; -#line 1572 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ == NULL) { -#line 1573 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 1573 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1573 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 1573 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 13094 "Photo.c" - } else { -#line 1573 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_editable_state_unref0 (_vala_state); -#line 13098 "Photo.c" - } -#line 1573 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 13102 "Photo.c" - } -#line 1577 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = file; -#line 1577 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo_verify_file_for_reimport (self, _tmp3_, &_tmp4_, &_tmp5_, &_inner_error_); -#line 1577 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 1577 "/home/jens/Source/shotwell/src/Photo.vala" - backing = _tmp4_; -#line 1577 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1577 "/home/jens/Source/shotwell/src/Photo.vala" - detected = _tmp5_; -#line 1577 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp6_; -#line 1577 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 13120 "Photo.c" - gboolean _tmp7_ = FALSE; -#line 1577 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1577 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 1577 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1577 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1577 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp7_; -#line 13132 "Photo.c" - } -#line 1577 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp2_) { -#line 1578 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 1578 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 1578 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1578 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1578 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 1578 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 13148 "Photo.c" - } else { -#line 1578 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_editable_state_unref0 (_vala_state); -#line 13152 "Photo.c" - } -#line 1578 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 13156 "Photo.c" - } -#line 1580 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = backing; -#line 1580 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = detected; -#line 1580 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_->metadata; -#line 1580 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = photo_reimport_editable_state_impl_new (_tmp8_, _tmp10_); -#line 1580 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_editable_state_unref0 (_vala_state); -#line 1580 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_state = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableState); -#line 1582 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 1582 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 1582 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1582 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1582 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 1582 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 13182 "Photo.c" - } else { -#line 1582 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_editable_state_unref0 (_vala_state); -#line 13186 "Photo.c" - } -#line 1582 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 13190 "Photo.c" -} - - -static gpointer -_photo_reimport_editable_state_ref0 (gpointer self) -{ -#line 1591 "/home/jens/Source/shotwell/src/Photo.vala" - return self ? photo_reimport_editable_state_ref (self) : NULL; -#line 13199 "Photo.c" -} - - -void -photo_finish_reimport_editable (Photo* self, - PhotoReimportEditableState* state, - GError** error) -{ - BackingPhotoID editable_id = {0}; - BackingPhotoID _tmp0_ = {0}; - PhotoReimportEditableStateImpl* reimport_state = NULL; - PhotoReimportEditableStateImpl* _tmp1_; - PhotoReimportEditableStateImpl* _tmp2_; - gboolean _tmp3_; - PhotoReimportEditableStateImpl* _tmp19_; - PhotoMetadata* _tmp20_; - gchar* list = NULL; - gchar* _tmp33_; - PhotoReimportEditableStateImpl* _tmp34_; - gboolean _tmp35_; - const gchar* _tmp38_; - Alteration* _tmp39_; - Alteration* _tmp40_; - PhotoReimportEditableStateImpl* _tmp41_; - PhotoMetadata* _tmp42_; - GError * _inner_error_ = NULL; -#line 1586 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 1586 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (PHOTO_IS_REIMPORT_EDITABLE_STATE (state)); -#line 1587 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_editable_id (self, &_tmp0_); -#line 1587 "/home/jens/Source/shotwell/src/Photo.vala" - editable_id = _tmp0_; -#line 1588 "/home/jens/Source/shotwell/src/Photo.vala" - if (backing_photo_id_is_invalid (&editable_id)) { -#line 1589 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 13238 "Photo.c" - } -#line 1591 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _photo_reimport_editable_state_ref0 (G_TYPE_CHECK_INSTANCE_CAST (state, PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImpl)); -#line 1591 "/home/jens/Source/shotwell/src/Photo.vala" - reimport_state = _tmp1_; -#line 1593 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = reimport_state; -#line 1593 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_->metadata_only; -#line 1593 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp3_) { -#line 13250 "Photo.c" - BackingPhotoTable* _tmp4_; - BackingPhotoTable* _tmp5_; - PhotoReimportEditableStateImpl* _tmp6_; - BackingPhotoRow* _tmp7_; -#line 1594 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = backing_photo_table_get_instance (); -#line 1594 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_; -#line 1594 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = reimport_state; -#line 1594 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_->backing_state; -#line 1594 "/home/jens/Source/shotwell/src/Photo.vala" - backing_photo_table_update (_tmp5_, _tmp7_, &_inner_error_); -#line 1594 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp5_); -#line 1594 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1594 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1594 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1594 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_editable_state_unref0 (reimport_state); -#line 1594 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 13277 "Photo.c" - } else { -#line 1594 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_editable_state_unref0 (reimport_state); -#line 1594 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1594 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1594 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 13287 "Photo.c" - } - } - { - PhotoRow* _tmp8_; -#line 1596 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = self->row; -#line 1596 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 13296 "Photo.c" - { - PhotoReimportEditableStateImpl* _tmp9_; - BackingPhotoRow* _tmp10_; - BackingPhotoRow* _tmp11_; - PhotoReimportEditableStateImpl* _tmp12_; - BackingPhotoRow* _tmp13_; - Orientation _tmp14_; -#line 1597 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = reimport_state; -#line 1597 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_->backing_state; -#line 1597 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _backing_photo_row_ref0 (_tmp10_); -#line 1597 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->priv->editable); -#line 1597 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->editable = _tmp11_; -#line 1598 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = reimport_state; -#line 1598 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_->backing_state; -#line 1598 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _tmp13_->original_orientation; -#line 1598 "/home/jens/Source/shotwell/src/Photo.vala" - photo_set_orientation (self, _tmp14_); -#line 1599 "/home/jens/Source/shotwell/src/Photo.vala" - photo_internal_remove_all_transformations (self, FALSE); -#line 13324 "Photo.c" - } - __finally319: - { - PhotoRow* _tmp15_; -#line 1596 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = self->row; -#line 1596 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 13333 "Photo.c" - } -#line 1596 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1596 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1596 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1596 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_editable_state_unref0 (reimport_state); -#line 1596 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 13345 "Photo.c" - } else { -#line 1596 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_editable_state_unref0 (reimport_state); -#line 1596 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1596 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1596 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 13355 "Photo.c" - } - } - } - } else { - PhotoReimportEditableStateImpl* _tmp16_; - BackingPhotoRow* _tmp17_; - Orientation _tmp18_; -#line 1602 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = reimport_state; -#line 1602 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _tmp16_->backing_state; -#line 1602 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp17_->original_orientation; -#line 1602 "/home/jens/Source/shotwell/src/Photo.vala" - photo_set_orientation (self, _tmp18_); -#line 13371 "Photo.c" - } -#line 1605 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = reimport_state; -#line 1605 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = _tmp19_->metadata; -#line 1605 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp20_ != NULL) { -#line 13379 "Photo.c" - PhotoReimportEditableStateImpl* _tmp21_; - PhotoMetadata* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - PhotoReimportEditableStateImpl* _tmp25_; - PhotoMetadata* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - PhotoReimportEditableStateImpl* _tmp29_; - PhotoMetadata* _tmp30_; - PhotoReimportEditableStateImpl* _tmp31_; - PhotoMetadata* _tmp32_; -#line 1606 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = reimport_state; -#line 1606 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = _tmp21_->metadata; -#line 1606 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_MEDIA_METADATA, MediaMetadata)); -#line 1606 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = _tmp23_; -#line 1606 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp24_); -#line 1606 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp24_); -#line 1607 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = reimport_state; -#line 1607 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = _tmp25_->metadata; -#line 1607 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_MEDIA_METADATA, MediaMetadata)); -#line 1607 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = _tmp27_; -#line 1607 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp28_); -#line 1607 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp28_); -#line 1608 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = reimport_state; -#line 1608 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = _tmp29_->metadata; -#line 1608 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), photo_metadata_get_rating (_tmp30_)); -#line 1609 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = reimport_state; -#line 1609 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = _tmp31_->metadata; -#line 1609 "/home/jens/Source/shotwell/src/Photo.vala" - photo_apply_user_metadata_for_reimport (self, _tmp32_); -#line 13428 "Photo.c" - } -#line 1612 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = g_strdup ("metadata:name,image:orientation,metadata:rating,metadata:exposure-time"); -#line 1612 "/home/jens/Source/shotwell/src/Photo.vala" - list = _tmp33_; -#line 1613 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = reimport_state; -#line 1613 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = _tmp34_->metadata_only; -#line 1613 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp35_) { -#line 13440 "Photo.c" - const gchar* _tmp36_; - gchar* _tmp37_; -#line 1614 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = list; -#line 1614 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = g_strconcat (_tmp36_, "image:editable,image:baseline", NULL); -#line 1614 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (list); -#line 1614 "/home/jens/Source/shotwell/src/Photo.vala" - list = _tmp37_; -#line 13451 "Photo.c" - } -#line 1616 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = list; -#line 1616 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = alteration_new_from_list (_tmp38_); -#line 1616 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = _tmp39_; -#line 1616 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp40_); -#line 1616 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp40_); -#line 1618 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = reimport_state; -#line 1618 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = _tmp41_->metadata; -#line 1618 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_editable_reimported (self, _tmp42_); -#line 1620 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_is_editable_baseline (self)) { -#line 13471 "Photo.c" - PhotoReimportEditableStateImpl* _tmp43_; - PhotoMetadata* _tmp44_; -#line 1621 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = reimport_state; -#line 1621 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = _tmp43_->metadata; -#line 1621 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_baseline_reimported (self, _tmp44_); -#line 13480 "Photo.c" - } -#line 1623 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_is_editable_source (self)) { -#line 13484 "Photo.c" - PhotoReimportEditableStateImpl* _tmp45_; - PhotoMetadata* _tmp46_; -#line 1624 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = reimport_state; -#line 1624 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = _tmp45_->metadata; -#line 1624 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_source_reimported (self, _tmp46_); -#line 13493 "Photo.c" - } -#line 1586 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (list); -#line 1586 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_editable_state_unref0 (reimport_state); -#line 13499 "Photo.c" -} - - -static gpointer -_photo_reimport_raw_development_state_ref0 (gpointer self) -{ -#line 1646 "/home/jens/Source/shotwell/src/Photo.vala" - return self ? photo_reimport_raw_development_state_ref (self) : NULL; -#line 13508 "Photo.c" -} - - -gboolean -photo_prepare_for_reimport_raw_development (Photo* self, - PhotoReimportRawDevelopmentState* * state, - GError** error) -{ - PhotoReimportRawDevelopmentState* _vala_state = NULL; - gboolean result = FALSE; - GeeCollection* files = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - PhotoReimportRawDevelopmentStateImpl* reimport_state = NULL; - PhotoReimportRawDevelopmentStateImpl* _tmp2_; - PhotoReimportRawDevelopmentStateImpl* _tmp18_; - PhotoReimportRawDevelopmentState* _tmp19_; - PhotoReimportRawDevelopmentStateImpl* _tmp20_; - GError * _inner_error_ = NULL; -#line 1628 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 1629 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_raw_development_state_unref0 (_vala_state); -#line 1629 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_state = NULL; -#line 1631 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_raw_developer_files (self); -#line 1631 "/home/jens/Source/shotwell/src/Photo.vala" - files = _tmp0_; -#line 1632 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = files; -#line 1632 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ == NULL) { -#line 1633 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 1633 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (files); -#line 1633 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 1633 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 13550 "Photo.c" - } else { -#line 1633 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_raw_development_state_unref0 (_vala_state); -#line 13554 "Photo.c" - } -#line 1633 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 13558 "Photo.c" - } -#line 1635 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_reimport_raw_development_state_impl_new (); -#line 1635 "/home/jens/Source/shotwell/src/Photo.vala" - reimport_state = _tmp2_; -#line 13564 "Photo.c" - { - GeeIterator* _file_it = NULL; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; -#line 1637 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = files; -#line 1637 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1637 "/home/jens/Source/shotwell/src/Photo.vala" - _file_it = _tmp4_; -#line 1637 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 13577 "Photo.c" - GeeIterator* _tmp5_; - GFile* file = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - DetectedPhotoInformation* detected = NULL; - BackingPhotoRow* backing = NULL; - gboolean _tmp8_ = FALSE; - GFile* _tmp9_; - BackingPhotoRow* _tmp10_ = NULL; - DetectedPhotoInformation* _tmp11_ = NULL; - gboolean _tmp12_; - PhotoReimportRawDevelopmentStateImpl* _tmp14_; - BackingPhotoRow* _tmp15_; - DetectedPhotoInformation* _tmp16_; - PhotoMetadata* _tmp17_; -#line 1637 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _file_it; -#line 1637 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 1637 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 13599 "Photo.c" - } -#line 1637 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _file_it; -#line 1637 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 1637 "/home/jens/Source/shotwell/src/Photo.vala" - file = (GFile*) _tmp7_; -#line 1640 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = file; -#line 1640 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = photo_verify_file_for_reimport (self, _tmp9_, &_tmp10_, &_tmp11_, &_inner_error_); -#line 1640 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 1640 "/home/jens/Source/shotwell/src/Photo.vala" - backing = _tmp10_; -#line 1640 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1640 "/home/jens/Source/shotwell/src/Photo.vala" - detected = _tmp11_; -#line 1640 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _tmp12_; -#line 1640 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 13623 "Photo.c" - gboolean _tmp13_ = FALSE; -#line 1640 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1640 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 1640 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1640 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1640 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_file_it); -#line 1640 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_raw_development_state_unref0 (reimport_state); -#line 1640 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (files); -#line 1640 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp13_; -#line 13641 "Photo.c" - } -#line 1640 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp8_) { -#line 1641 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 1641 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1641 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 1641 "/home/jens/Source/shotwell/src/Photo.vala" - continue; -#line 13653 "Photo.c" - } -#line 1643 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = reimport_state; -#line 1643 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = backing; -#line 1643 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = detected; -#line 1643 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _tmp16_->metadata; -#line 1643 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_raw_development_state_impl_add (_tmp14_, _tmp15_, _tmp17_); -#line 1637 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 1637 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 1637 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 13671 "Photo.c" - } -#line 1637 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_file_it); -#line 13675 "Photo.c" - } -#line 1646 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = reimport_state; -#line 1646 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = _photo_reimport_raw_development_state_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentState)); -#line 1646 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_raw_development_state_unref0 (_vala_state); -#line 1646 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_state = _tmp19_; -#line 1647 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = reimport_state; -#line 1647 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo_reimport_raw_development_state_impl_get_size (_tmp20_) > 0; -#line 1647 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_raw_development_state_unref0 (reimport_state); -#line 1647 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (files); -#line 1647 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 1647 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 13697 "Photo.c" - } else { -#line 1647 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_raw_development_state_unref0 (_vala_state); -#line 13701 "Photo.c" - } -#line 1647 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 13705 "Photo.c" -} - - -void -photo_finish_reimport_raw_development (Photo* self, - PhotoReimportRawDevelopmentState* state, - GError** error) -{ - PhotoReimportRawDevelopmentStateImpl* reimport_state = NULL; - PhotoReimportRawDevelopmentStateImpl* _tmp0_; - gchar* list = NULL; - gchar* _tmp29_; - PhotoReimportRawDevelopmentStateImpl* _tmp30_; - gboolean _tmp31_; - const gchar* _tmp34_; - Alteration* _tmp35_; - Alteration* _tmp36_; - GError * _inner_error_ = NULL; -#line 1651 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 1651 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE (state)); -#line 1652 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_get_master_file_format (self) != PHOTO_FILE_FORMAT_RAW) { -#line 1653 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 13732 "Photo.c" - } -#line 1655 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _photo_reimport_raw_development_state_ref0 (G_TYPE_CHECK_INSTANCE_CAST (state, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL, PhotoReimportRawDevelopmentStateImpl)); -#line 1655 "/home/jens/Source/shotwell/src/Photo.vala" - reimport_state = _tmp0_; -#line 13738 "Photo.c" - { - GeeIterator* _dev_it = NULL; - PhotoReimportRawDevelopmentStateImpl* _tmp1_; - GeeCollection* _tmp2_; - GeeIterator* _tmp3_; -#line 1657 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = reimport_state; -#line 1657 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->list; -#line 1657 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1657 "/home/jens/Source/shotwell/src/Photo.vala" - _dev_it = _tmp3_; -#line 1657 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 13754 "Photo.c" - GeeIterator* _tmp4_; - PhotoReimportRawDevelopmentStateImplDevToReimport* dev = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - PhotoReimportRawDevelopmentStateImpl* _tmp7_; - gboolean _tmp8_; -#line 1657 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _dev_it; -#line 1657 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 1657 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 13767 "Photo.c" - } -#line 1657 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _dev_it; -#line 1657 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 1657 "/home/jens/Source/shotwell/src/Photo.vala" - dev = (PhotoReimportRawDevelopmentStateImplDevToReimport*) _tmp6_; -#line 1658 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = reimport_state; -#line 1658 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _tmp7_->metadata_only; -#line 1658 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp8_) { -#line 13781 "Photo.c" - BackingPhotoTable* _tmp9_; - BackingPhotoTable* _tmp10_; - PhotoReimportRawDevelopmentStateImplDevToReimport* _tmp11_; - BackingPhotoRow* _tmp12_; -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = backing_photo_table_get_instance (); -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_; -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = dev; -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_->backing; -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - backing_photo_table_update (_tmp10_, _tmp12_, &_inner_error_); -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp10_); -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (dev); -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_dev_it); -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_raw_development_state_unref0 (reimport_state); -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 13812 "Photo.c" - } else { -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (dev); -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_dev_it); -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_raw_development_state_unref0 (reimport_state); -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1659 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 13826 "Photo.c" - } - } - { - PhotoRow* _tmp13_; -#line 1661 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = self->row; -#line 1661 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 13835 "Photo.c" - { - gint _tmp14_; - RawDeveloper* _tmp15_; -#line 1663 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = raw_developer_as_array (&_tmp14_); -#line 13841 "Photo.c" - { - RawDeveloper* d_collection = NULL; - gint d_collection_length1 = 0; - gint _d_collection_size_ = 0; - gint d_it = 0; -#line 1663 "/home/jens/Source/shotwell/src/Photo.vala" - d_collection = _tmp15_; -#line 1663 "/home/jens/Source/shotwell/src/Photo.vala" - d_collection_length1 = _tmp14_; -#line 1663 "/home/jens/Source/shotwell/src/Photo.vala" - for (d_it = 0; d_it < _tmp14_; d_it = d_it + 1) { -#line 13853 "Photo.c" - RawDeveloper d = 0; -#line 1663 "/home/jens/Source/shotwell/src/Photo.vala" - d = d_collection[d_it]; -#line 13857 "Photo.c" - { - BackingPhotoID id = {0}; - PhotoRow* _tmp16_; - BackingPhotoID* _tmp17_; - gint _tmp17__length1; - RawDeveloper _tmp18_; - BackingPhotoID _tmp19_; - BackingPhotoID _tmp20_; - gint64 _tmp21_; -#line 1664 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = self->row; -#line 1664 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _tmp16_->development_ids; -#line 1664 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17__length1 = _tmp16_->development_ids_length1; -#line 1664 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = d; -#line 1664 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = _tmp17_[_tmp18_]; -#line 1664 "/home/jens/Source/shotwell/src/Photo.vala" - id = _tmp19_; -#line 1665 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = id; -#line 1665 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _tmp20_.id; -#line 1665 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp21_ != BACKING_PHOTO_ID_INVALID) { -#line 13885 "Photo.c" - BackingPhotoRow* bpr = NULL; - BackingPhotoID _tmp22_; - BackingPhotoRow* _tmp23_; - BackingPhotoRow* _tmp24_; -#line 1666 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = id; -#line 1666 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = photo_get_backing_row (self, &_tmp22_); -#line 1666 "/home/jens/Source/shotwell/src/Photo.vala" - bpr = _tmp23_; -#line 1667 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = bpr; -#line 1667 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp24_ != NULL) { -#line 13900 "Photo.c" - GeeHashMap* _tmp25_; - RawDeveloper _tmp26_; - BackingPhotoRow* _tmp27_; -#line 1668 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = self->priv->developments; -#line 1668 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = d; -#line 1668 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = bpr; -#line 1668 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp26_), _tmp27_); -#line 13912 "Photo.c" - } -#line 1665 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (bpr); -#line 13916 "Photo.c" - } - } - } -#line 1663 "/home/jens/Source/shotwell/src/Photo.vala" - d_collection = (g_free (d_collection), NULL); -#line 13922 "Photo.c" - } - } - __finally320: - { - PhotoRow* _tmp28_; -#line 1661 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = self->row; -#line 1661 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 13932 "Photo.c" - } -#line 1661 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1661 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1661 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1661 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (dev); -#line 1661 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_dev_it); -#line 1661 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_raw_development_state_unref0 (reimport_state); -#line 1661 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 13948 "Photo.c" - } else { -#line 1661 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (dev); -#line 1661 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_dev_it); -#line 1661 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_raw_development_state_unref0 (reimport_state); -#line 1661 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1661 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1661 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 13962 "Photo.c" - } - } - } - } -#line 1657 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (dev); -#line 13969 "Photo.c" - } -#line 1657 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_dev_it); -#line 13973 "Photo.c" - } -#line 1675 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = g_strdup ("metadata:name,image:orientation,metadata:rating,metadata:exposure-time"); -#line 1675 "/home/jens/Source/shotwell/src/Photo.vala" - list = _tmp29_; -#line 1676 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = reimport_state; -#line 1676 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = _tmp30_->metadata_only; -#line 1676 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp31_) { -#line 13985 "Photo.c" - const gchar* _tmp32_; - gchar* _tmp33_; -#line 1677 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = list; -#line 1677 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = g_strconcat (_tmp32_, "image:editable,image:baseline", NULL); -#line 1677 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (list); -#line 1677 "/home/jens/Source/shotwell/src/Photo.vala" - list = _tmp33_; -#line 13996 "Photo.c" - } -#line 1679 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = list; -#line 1679 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = alteration_new_from_list (_tmp34_); -#line 1679 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = _tmp35_; -#line 1679 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp36_); -#line 1679 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp36_); -#line 1681 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_raw_development_modified (self); -#line 1651 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (list); -#line 1651 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_raw_development_state_unref0 (reimport_state); -#line 14014 "Photo.c" -} - - -static gchar* -photo_real_get_typename (DataSource* base) -{ - Photo * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 1684 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 1685 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = g_strdup (PHOTO_TYPENAME); -#line 1685 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp0_; -#line 1685 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 14032 "Photo.c" -} - - -static gint64 -photo_real_get_instance_id (DataSource* base) -{ - Photo * self; - gint64 result = 0LL; - PhotoID _tmp0_ = {0}; - gint64 _tmp1_; -#line 1688 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 1689 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (self, &_tmp0_); -#line 1689 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_.id; -#line 1689 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp1_; -#line 1689 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 14053 "Photo.c" -} - - -static gchar* -photo_real_get_source_id (DataSource* base) -{ - Photo * self; - gchar* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 1692 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 1696 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = data_source_get_typename (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource)); -#line 1696 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 1696 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = g_strdup_printf ("%s%016" G_GINT64_MODIFIER "x", _tmp1_, data_source_get_instance_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource))); -#line 1696 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_; -#line 1696 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp1_); -#line 1696 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 1696 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 14082 "Photo.c" -} - - -void -photo_set_master_timestamp (Photo* self, - GFileInfo* info) -{ - GTimeVal modification = {0}; - GTimeVal _tmp0_ = {0}; - GError * _inner_error_ = NULL; -#line 1700 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 1700 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 1701 "/home/jens/Source/shotwell/src/Photo.vala" - g_file_info_get_modification_time (info, &_tmp0_); -#line 1701 "/home/jens/Source/shotwell/src/Photo.vala" - modification = _tmp0_; -#line 14101 "Photo.c" - { - { - PhotoRow* _tmp1_; -#line 1704 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 1704 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 14109 "Photo.c" - { - PhotoRow* _tmp2_; - BackingPhotoRow* _tmp3_; - time_t _tmp4_; - GTimeVal _tmp5_; - glong _tmp6_; - PhotoTable* _tmp8_; - PhotoTable* _tmp9_; - PhotoRow* _tmp10_; - PhotoID _tmp11_; - GTimeVal _tmp12_; - glong _tmp13_; - PhotoRow* _tmp14_; - BackingPhotoRow* _tmp15_; - GTimeVal _tmp16_; - glong _tmp17_; -#line 1705 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->row; -#line 1705 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_->master; -#line 1705 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->timestamp; -#line 1705 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = modification; -#line 1705 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _tmp5_.tv_sec; -#line 1705 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp4_ == ((time_t) _tmp6_)) { -#line 14138 "Photo.c" - { - PhotoRow* _tmp7_; -#line 1704 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = self->row; -#line 1704 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 14145 "Photo.c" - } -#line 1706 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 14149 "Photo.c" - } -#line 1708 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = photo_table_get_instance (); -#line 1708 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_; -#line 1708 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = self->row; -#line 1708 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_->photo_id; -#line 1708 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = modification; -#line 1708 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_.tv_sec; -#line 1708 "/home/jens/Source/shotwell/src/Photo.vala" - photo_table_update_timestamp (_tmp9_, &_tmp11_, (time_t) _tmp13_, &_inner_error_); -#line 1708 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp9_); -#line 1708 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 14169 "Photo.c" - goto __finally322; - } -#line 1709 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = self->row; -#line 1709 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_->master; -#line 1709 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = modification; -#line 1709 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _tmp16_.tv_sec; -#line 1709 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_->timestamp = (time_t) _tmp17_; -#line 14182 "Photo.c" - } - __finally322: - { - PhotoRow* _tmp18_; -#line 1704 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = self->row; -#line 1704 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 14191 "Photo.c" - } -#line 1704 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1704 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 14197 "Photo.c" - goto __catch321_database_error; - } -#line 1704 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1704 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1704 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 14206 "Photo.c" - } - } - } - goto __finally321; - __catch321_database_error: - { - GError* err = NULL; - GError* _tmp19_; -#line 1703 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 1703 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 1712 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = err; -#line 1712 "/home/jens/Source/shotwell/src/Photo.vala" - app_window_database_error (_tmp19_); -#line 1714 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 1714 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 14227 "Photo.c" - } - __finally321: -#line 1703 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1703 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1703 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1703 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 14238 "Photo.c" - } -#line 1717 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_is_master_baseline (self)) { -#line 14242 "Photo.c" - Alteration* _tmp20_; - Alteration* _tmp21_; -#line 1718 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = alteration_new_from_list ("metadata:master-timestamp,metadata:baseline-timestamp"); -#line 1718 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _tmp20_; -#line 1718 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp21_); -#line 1718 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp21_); -#line 14253 "Photo.c" - } else { - Alteration* _tmp22_; - Alteration* _tmp23_; -#line 1720 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = alteration_new ("metadata", "master-timestamp"); -#line 1720 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _tmp22_; -#line 1720 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp23_); -#line 1720 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp23_); -#line 14265 "Photo.c" - } -} - - -void -photo_update_editable_modification_time (Photo* self, - GFileInfo* info, - GError** error) -{ - GTimeVal modification = {0}; - GTimeVal _tmp0_ = {0}; - gboolean altered = FALSE; - gboolean _tmp18_; - GError * _inner_error_ = NULL; -#line 1724 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 1724 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 1725 "/home/jens/Source/shotwell/src/Photo.vala" - g_file_info_get_modification_time (info, &_tmp0_); -#line 1725 "/home/jens/Source/shotwell/src/Photo.vala" - modification = _tmp0_; -#line 1727 "/home/jens/Source/shotwell/src/Photo.vala" - altered = FALSE; -#line 14290 "Photo.c" - { - PhotoRow* _tmp1_; -#line 1728 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 1728 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 14297 "Photo.c" - { - gboolean _tmp2_ = FALSE; - PhotoRow* _tmp3_; -#line 1729 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 1729 "/home/jens/Source/shotwell/src/Photo.vala" - if (backing_photo_id_is_valid (&_tmp3_->editable_id)) { -#line 14305 "Photo.c" - BackingPhotoRow* _tmp4_; - time_t _tmp5_; - GTimeVal _tmp6_; - glong _tmp7_; -#line 1729 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->priv->editable; -#line 1729 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_->timestamp; -#line 1729 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = modification; -#line 1729 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_.tv_sec; -#line 1729 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp5_ != ((time_t) _tmp7_); -#line 14320 "Photo.c" - } else { -#line 1729 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = FALSE; -#line 14324 "Photo.c" - } -#line 1729 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_) { -#line 14328 "Photo.c" - BackingPhotoTable* _tmp8_; - BackingPhotoTable* _tmp9_; - PhotoRow* _tmp10_; - BackingPhotoID _tmp11_; - GTimeVal _tmp12_; - glong _tmp13_; - BackingPhotoRow* _tmp14_; - GTimeVal _tmp15_; - glong _tmp16_; -#line 1730 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = backing_photo_table_get_instance (); -#line 1730 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_; -#line 1730 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = self->row; -#line 1730 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_->editable_id; -#line 1730 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = modification; -#line 1730 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_.tv_sec; -#line 1730 "/home/jens/Source/shotwell/src/Photo.vala" - backing_photo_table_update_timestamp (_tmp9_, &_tmp11_, (time_t) _tmp13_, &_inner_error_); -#line 1730 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp9_); -#line 1730 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 14356 "Photo.c" - goto __finally323; - } -#line 1732 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = self->priv->editable; -#line 1732 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = modification; -#line 1732 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = _tmp15_.tv_sec; -#line 1732 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_->timestamp = (time_t) _tmp16_; -#line 1733 "/home/jens/Source/shotwell/src/Photo.vala" - altered = TRUE; -#line 14369 "Photo.c" - } - } - __finally323: - { - PhotoRow* _tmp17_; -#line 1728 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = self->row; -#line 1728 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 14379 "Photo.c" - } -#line 1728 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1728 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1728 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1728 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 14389 "Photo.c" - } else { -#line 1728 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1728 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1728 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 14397 "Photo.c" - } - } - } -#line 1737 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = altered; -#line 1737 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp18_) { -#line 14405 "Photo.c" - Alteration* _tmp19_; - Alteration* _tmp20_; -#line 1738 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = alteration_new_from_list ("metadata:editable-timestamp,metadata:baseline-timestamp"); -#line 1738 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = _tmp19_; -#line 1738 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp20_); -#line 1738 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp20_); -#line 14416 "Photo.c" - } -} - - -void -photo_update_many_editable_timestamps (GeeMap* map, - GError** error) -{ - GError * _inner_error_ = NULL; -#line 1742 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (GEE_IS_MAP (map)); -#line 1744 "/home/jens/Source/shotwell/src/Photo.vala" - database_table_begin_transaction (); -#line 14430 "Photo.c" - { - GeeIterator* _photo_it = NULL; - GeeSet* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 1745 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = gee_map_get_keys (map); -#line 1745 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 1745 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 1745 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1745 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 1745 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp2_); -#line 1745 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_it = _tmp4_; -#line 1745 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 14454 "Photo.c" - GeeIterator* _tmp5_; - Photo* photo = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - Photo* _tmp8_; - Photo* _tmp9_; - gpointer _tmp10_; - GFileInfo* _tmp11_; -#line 1745 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _photo_it; -#line 1745 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 1745 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 14469 "Photo.c" - } -#line 1745 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _photo_it; -#line 1745 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 1745 "/home/jens/Source/shotwell/src/Photo.vala" - photo = (Photo*) _tmp7_; -#line 1746 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = photo; -#line 1746 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = photo; -#line 1746 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = gee_map_get (map, _tmp9_); -#line 1746 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = (GFileInfo*) _tmp10_; -#line 1746 "/home/jens/Source/shotwell/src/Photo.vala" - photo_update_editable_modification_time (_tmp8_, _tmp11_, &_inner_error_); -#line 1746 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp11_); -#line 1746 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1746 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1746 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1746 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 1746 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_photo_it); -#line 1746 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 14501 "Photo.c" - } else { -#line 1746 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 1746 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_photo_it); -#line 1746 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1746 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1746 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 14513 "Photo.c" - } - } -#line 1745 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 14518 "Photo.c" - } -#line 1745 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_photo_it); -#line 14522 "Photo.c" - } -#line 1747 "/home/jens/Source/shotwell/src/Photo.vala" - database_table_commit_transaction (&_inner_error_); -#line 1747 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1747 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1747 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1747 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 14534 "Photo.c" - } else { -#line 1747 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1747 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1747 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 14542 "Photo.c" - } - } -} - - -static PhotoFileFormat -photo_real_get_preferred_thumbnail_format (ThumbnailSource* base) -{ - Photo * self; - PhotoFileFormat result = 0; - PhotoFileFormat _tmp0_ = 0; -#line 1750 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 1751 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_file_format_can_write_image (photo_get_file_format (self))) { -#line 1751 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_file_format (self); -#line 14560 "Photo.c" - } else { -#line 1752 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_file_format_get_system_default_format (); -#line 14564 "Photo.c" - } -#line 1751 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp0_; -#line 1751 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 14570 "Photo.c" -} - - -static GdkPixbuf* -photo_real_create_thumbnail (ThumbnailSource* base, - gint scale, - GError** error) -{ - Photo * self; - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_ = NULL; - Scaling _tmp1_ = {0}; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GError * _inner_error_ = NULL; -#line 1755 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 1756 "/home/jens/Source/shotwell/src/Photo.vala" - scaling_for_best_fit (scale, TRUE, &_tmp1_); -#line 1756 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp1_, &_inner_error_); -#line 1756 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp2_; -#line 1756 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1756 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1756 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 14600 "Photo.c" - } -#line 1756 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp0_; -#line 1756 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = NULL; -#line 1756 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 1756 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp0_); -#line 1756 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 14612 "Photo.c" -} - - -gboolean -photo_is_file_image (GFile* file) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; -#line 1759 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 1763 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_file_format_is_file_supported (file)) { -#line 1764 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = TRUE; -#line 14627 "Photo.c" - } else { - gchar* _tmp1_; - gchar* _tmp2_; -#line 1764 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = g_file_get_basename (file); -#line 1764 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 1764 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_is_extension_found (_tmp2_, PHOTO_IMAGE_EXTENSIONS, G_N_ELEMENTS (PHOTO_IMAGE_EXTENSIONS)); -#line 1764 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp2_); -#line 14639 "Photo.c" - } -#line 1763 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp0_; -#line 1763 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 14645 "Photo.c" -} - - -static gboolean -photo_is_extension_found (const gchar* basename, - gchar** extensions, - int extensions_length1) -{ - gboolean result = FALSE; - gchar* name = NULL; - gchar* ext = NULL; - gchar* _tmp0_ = NULL; - gchar* _tmp1_ = NULL; - const gchar* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; -#line 1767 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (basename != NULL, FALSE); -#line 1769 "/home/jens/Source/shotwell/src/Photo.vala" - disassemble_filename (basename, &_tmp0_, &_tmp1_); -#line 1769 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (name); -#line 1769 "/home/jens/Source/shotwell/src/Photo.vala" - name = _tmp0_; -#line 1769 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (ext); -#line 1769 "/home/jens/Source/shotwell/src/Photo.vala" - ext = _tmp1_; -#line 1770 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = ext; -#line 1770 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ == NULL) { -#line 1771 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 1771 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (ext); -#line 1771 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (name); -#line 1771 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 14686 "Photo.c" - } -#line 1774 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = ext; -#line 1774 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = g_utf8_strdown (_tmp3_, (gssize) -1); -#line 1774 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (ext); -#line 1774 "/home/jens/Source/shotwell/src/Photo.vala" - ext = _tmp4_; -#line 14696 "Photo.c" - { - gchar** extension_collection = NULL; - gint extension_collection_length1 = 0; - gint _extension_collection_size_ = 0; - gint extension_it = 0; -#line 1777 "/home/jens/Source/shotwell/src/Photo.vala" - extension_collection = extensions; -#line 1777 "/home/jens/Source/shotwell/src/Photo.vala" - extension_collection_length1 = extensions_length1; -#line 1777 "/home/jens/Source/shotwell/src/Photo.vala" - for (extension_it = 0; extension_it < extensions_length1; extension_it = extension_it + 1) { -#line 14708 "Photo.c" - gchar* _tmp5_; - gchar* extension = NULL; -#line 1777 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = g_strdup (extension_collection[extension_it]); -#line 1777 "/home/jens/Source/shotwell/src/Photo.vala" - extension = _tmp5_; -#line 14715 "Photo.c" - { - const gchar* _tmp6_; - const gchar* _tmp7_; -#line 1778 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = ext; -#line 1778 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = extension; -#line 1778 "/home/jens/Source/shotwell/src/Photo.vala" - if (g_strcmp0 (_tmp6_, _tmp7_) == 0) { -#line 1779 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 1779 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (extension); -#line 1779 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (ext); -#line 1779 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (name); -#line 1779 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 14735 "Photo.c" - } -#line 1777 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (extension); -#line 14739 "Photo.c" - } - } - } -#line 1782 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 1782 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (ext); -#line 1782 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (name); -#line 1782 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 14751 "Photo.c" -} - - -gboolean -photo_is_duplicate (GFile* file, - const gchar* thumbnail_md5, - const gchar* full_md5, - PhotoFileFormat file_format) -{ - gboolean result = FALSE; - PhotoTable* _tmp0_; - PhotoTable* _tmp1_; - gboolean _tmp2_; -#line 1788 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), FALSE); -#line 1791 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_table_get_instance (); -#line 1791 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 1791 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_table_has_duplicate (_tmp1_, file, thumbnail_md5, full_md5, file_format); -#line 1791 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp1_); -#line 1791 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_; -#line 1791 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 14779 "Photo.c" -} - - -PhotoID* -photo_get_duplicate_ids (GFile* file, - const gchar* thumbnail_md5, - const gchar* full_md5, - PhotoFileFormat file_format, - int* result_length1) -{ - PhotoID* result = NULL; - PhotoTable* _tmp0_; - PhotoTable* _tmp1_; - gint _tmp2_; - PhotoID* _tmp3_; - PhotoID* _tmp4_; - gint _tmp4__length1; - PhotoID* _tmp5_; - gint _tmp5__length1; -#line 1797 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL); -#line 1800 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_table_get_instance (); -#line 1800 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 1800 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_table_get_duplicate_ids (_tmp1_, file, thumbnail_md5, full_md5, file_format, &_tmp2_); -#line 1800 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 1800 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4__length1 = _tmp2_; -#line 1800 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp1_); -#line 1800 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_; -#line 1800 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5__length1 = _tmp4__length1; -#line 1800 "/home/jens/Source/shotwell/src/Photo.vala" - if (result_length1) { -#line 1800 "/home/jens/Source/shotwell/src/Photo.vala" - *result_length1 = _tmp5__length1; -#line 14821 "Photo.c" - } -#line 1800 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp5_; -#line 1800 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 14827 "Photo.c" -} - - -gint64 -photo_get_photo_key (DataSource* source) -{ - gint64 result = 0LL; - PhotoID _tmp0_ = {0}; - gint64 _tmp1_; -#line 1807 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), 0LL); -#line 1808 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_PHOTO, Photo), &_tmp0_); -#line 1808 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_.id; -#line 1808 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp1_; -#line 1808 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 14847 "Photo.c" -} - - -static GFile* -photo_real_get_file (MediaSource* base) -{ - Photo * self; - GFile* result = NULL; - PhotoFileReader* _tmp0_; - PhotoFileReader* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; -#line 1826 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 1827 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_source_reader (self); -#line 1827 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 1827 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 1827 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_; -#line 1827 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp1_); -#line 1827 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 1827 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 14876 "Photo.c" -} - - -static void -_vala_array_add99 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 1870 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 1870 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1870 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 14892 "Photo.c" - } -#line 1870 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 1870 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 14898 "Photo.c" -} - - -static void -_vala_array_add100 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 1875 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 1875 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1875 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 14914 "Photo.c" - } -#line 1875 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 1875 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 14920 "Photo.c" -} - - -static void -_vala_array_add101 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 1878 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 1878 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1878 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 14936 "Photo.c" - } -#line 1878 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 1878 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 14942 "Photo.c" -} - - -static void -_vala_array_add102 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 1881 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 1881 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1881 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 14958 "Photo.c" - } -#line 1881 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 1881 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 14964 "Photo.c" -} - - -void -photo_set_master_file (Photo* self, - GFile* file) -{ - gchar* filepath = NULL; - gchar* _tmp0_; - gboolean altered = FALSE; - gboolean is_baseline = FALSE; - gboolean is_source = FALSE; - gboolean name_changed = FALSE; - GFile* old_file = NULL; - gboolean _tmp33_; - GError * _inner_error_ = NULL; -#line 1832 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 1832 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 1833 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = g_file_get_path (file); -#line 1833 "/home/jens/Source/shotwell/src/Photo.vala" - filepath = _tmp0_; -#line 1835 "/home/jens/Source/shotwell/src/Photo.vala" - altered = FALSE; -#line 1836 "/home/jens/Source/shotwell/src/Photo.vala" - is_baseline = FALSE; -#line 1837 "/home/jens/Source/shotwell/src/Photo.vala" - is_source = FALSE; -#line 1838 "/home/jens/Source/shotwell/src/Photo.vala" - name_changed = FALSE; -#line 1839 "/home/jens/Source/shotwell/src/Photo.vala" - old_file = NULL; -#line 14999 "Photo.c" - { - { - PhotoRow* _tmp1_; -#line 1841 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 1841 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 15007 "Photo.c" - { - { - PhotoBackingReaders* _tmp2_; -#line 1842 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->readers; -#line 1842 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 15015 "Photo.c" - { - PhotoBackingReaders* _tmp3_; - PhotoFileReader* _tmp4_; - GFile* _tmp5_; - GFile* _tmp6_; -#line 1843 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->readers; -#line 1843 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->master; -#line 1843 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 1843 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (old_file); -#line 1843 "/home/jens/Source/shotwell/src/Photo.vala" - old_file = _tmp5_; -#line 1844 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = old_file; -#line 1844 "/home/jens/Source/shotwell/src/Photo.vala" - if (!g_file_equal (file, _tmp6_)) { -#line 15035 "Photo.c" - PhotoTable* _tmp7_; - PhotoTable* _tmp8_; - PhotoID _tmp9_ = {0}; - const gchar* _tmp10_; - PhotoRow* _tmp11_; - BackingPhotoRow* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - PhotoBackingReaders* _tmp16_; - PhotoRow* _tmp17_; - BackingPhotoRow* _tmp18_; - PhotoFileFormat _tmp19_; - const gchar* _tmp20_; - PhotoFileReader* _tmp21_; - gboolean _tmp22_ = FALSE; - PhotoRow* _tmp23_; - const gchar* _tmp24_; -#line 1845 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = photo_table_get_instance (); -#line 1845 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _tmp7_; -#line 1845 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (self, &_tmp9_); -#line 1845 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = filepath; -#line 1845 "/home/jens/Source/shotwell/src/Photo.vala" - photo_table_set_filepath (_tmp8_, &_tmp9_, _tmp10_, &_inner_error_); -#line 1845 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp8_); -#line 1845 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 15068 "Photo.c" - goto __finally326; - } -#line 1847 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = self->row; -#line 1847 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_->master; -#line 1847 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = filepath; -#line 1847 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = g_strdup (_tmp13_); -#line 1847 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp12_->filepath); -#line 1847 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_->filepath = _tmp14_; -#line 1848 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = g_file_get_basename (file); -#line 1848 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (self->priv->file_title); -#line 1848 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->file_title = _tmp15_; -#line 1849 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = self->priv->readers; -#line 1849 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = self->row; -#line 1849 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp17_->master; -#line 1849 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = _tmp18_->file_format; -#line 1849 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = filepath; -#line 1849 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = photo_file_format_create_reader (_tmp19_, _tmp20_); -#line 1849 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp16_->master); -#line 1849 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_->master = _tmp21_; -#line 1851 "/home/jens/Source/shotwell/src/Photo.vala" - altered = TRUE; -#line 1852 "/home/jens/Source/shotwell/src/Photo.vala" - is_baseline = photo_is_master_baseline (self); -#line 1853 "/home/jens/Source/shotwell/src/Photo.vala" - is_source = photo_is_master_source (self); -#line 1854 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = self->row; -#line 1854 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = _tmp23_->title; -#line 1854 "/home/jens/Source/shotwell/src/Photo.vala" - if (is_string_empty (_tmp24_)) { -#line 15117 "Photo.c" - GFile* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; -#line 1855 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = old_file; -#line 1855 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = g_file_get_basename (_tmp25_); -#line 1855 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = _tmp26_; -#line 1855 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = g_file_get_basename (file); -#line 1855 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = _tmp28_; -#line 1855 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = g_strcmp0 (_tmp27_, _tmp29_) != 0; -#line 1855 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp29_); -#line 1855 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp27_); -#line 15139 "Photo.c" - } else { -#line 1854 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = FALSE; -#line 15143 "Photo.c" - } -#line 1854 "/home/jens/Source/shotwell/src/Photo.vala" - name_changed = _tmp22_; -#line 15147 "Photo.c" - } - } - __finally326: - { - PhotoBackingReaders* _tmp30_; -#line 1842 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = self->priv->readers; -#line 1842 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 15157 "Photo.c" - } -#line 1842 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 15161 "Photo.c" - goto __finally325; - } - } - } - __finally325: - { - PhotoRow* _tmp31_; -#line 1841 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = self->row; -#line 1841 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 15173 "Photo.c" - } -#line 1841 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1841 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 15179 "Photo.c" - goto __catch324_database_error; - } -#line 1841 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (old_file); -#line 1841 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (filepath); -#line 1841 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1841 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1841 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 15192 "Photo.c" - } - } - } - goto __finally324; - __catch324_database_error: - { - GError* err = NULL; - GError* _tmp32_; -#line 1840 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 1840 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 1860 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = err; -#line 1860 "/home/jens/Source/shotwell/src/Photo.vala" - app_window_database_error (_tmp32_); -#line 1840 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 15211 "Photo.c" - } - __finally324: -#line 1840 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1840 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (old_file); -#line 1840 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (filepath); -#line 1840 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1840 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1840 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 15226 "Photo.c" - } -#line 1863 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = altered; -#line 1863 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp33_) { -#line 15232 "Photo.c" - GFile* _tmp34_; - gboolean _tmp35_; - gchar** alteration_list = NULL; - gchar** _tmp36_; - gint alteration_list_length1; - gint _alteration_list_size_; - gchar** _tmp37_; - gint _tmp37__length1; - gchar* _tmp38_; - gboolean _tmp39_; - gboolean _tmp42_; - gboolean _tmp45_; - gchar** _tmp48_; - gint _tmp48__length1; - Alteration* _tmp49_; - Alteration* _tmp50_; -#line 1864 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = old_file; -#line 1864 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_notify_master_replaced (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp34_, file); -#line 1866 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = is_baseline; -#line 1866 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp35_) { -#line 1867 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_baseline_replaced (self); -#line 15259 "Photo.c" - } -#line 1869 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = g_new0 (gchar*, 0 + 1); -#line 1869 "/home/jens/Source/shotwell/src/Photo.vala" - alteration_list = _tmp36_; -#line 1869 "/home/jens/Source/shotwell/src/Photo.vala" - alteration_list_length1 = 0; -#line 1869 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_list_size_ = alteration_list_length1; -#line 1870 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = alteration_list; -#line 1870 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37__length1 = alteration_list_length1; -#line 1870 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = g_strdup ("backing:master"); -#line 1870 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add99 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp38_); -#line 1874 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = name_changed; -#line 1874 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp39_) { -#line 15281 "Photo.c" - gchar** _tmp40_; - gint _tmp40__length1; - gchar* _tmp41_; -#line 1875 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = alteration_list; -#line 1875 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40__length1 = alteration_list_length1; -#line 1875 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = g_strdup ("metadata:name"); -#line 1875 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add100 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp41_); -#line 15293 "Photo.c" - } -#line 1877 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = is_source; -#line 1877 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp42_) { -#line 15299 "Photo.c" - gchar** _tmp43_; - gint _tmp43__length1; - gchar* _tmp44_; -#line 1878 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = alteration_list; -#line 1878 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43__length1 = alteration_list_length1; -#line 1878 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = g_strdup ("backing:source"); -#line 1878 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add101 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp44_); -#line 15311 "Photo.c" - } -#line 1880 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = is_baseline; -#line 1880 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp45_) { -#line 15317 "Photo.c" - gchar** _tmp46_; - gint _tmp46__length1; - gchar* _tmp47_; -#line 1881 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = alteration_list; -#line 1881 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46__length1 = alteration_list_length1; -#line 1881 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = g_strdup ("backing:baseline"); -#line 1881 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add102 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp47_); -#line 15329 "Photo.c" - } -#line 1883 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = alteration_list; -#line 1883 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48__length1 = alteration_list_length1; -#line 1883 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = alteration_new_from_array (_tmp48_, _tmp48__length1); -#line 1883 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = _tmp49_; -#line 1883 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp50_); -#line 1883 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp50_); -#line 1863 "/home/jens/Source/shotwell/src/Photo.vala" - alteration_list = (_vala_array_free (alteration_list, alteration_list_length1, (GDestroyNotify) g_free), NULL); -#line 15345 "Photo.c" - } -#line 1832 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (old_file); -#line 1832 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (filepath); -#line 15351 "Photo.c" -} - - -static void -_vala_array_add103 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 1923 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 1923 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1923 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 15367 "Photo.c" - } -#line 1923 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 1923 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 15373 "Photo.c" -} - - -static void -_vala_array_add104 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 1926 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 1926 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1926 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 15389 "Photo.c" - } -#line 1926 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 1926 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 15395 "Photo.c" -} - - -static void -_vala_array_add105 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 1929 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 1929 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 1929 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 15411 "Photo.c" - } -#line 1929 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 1929 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 15417 "Photo.c" -} - - -void -photo_set_editable_file (Photo* self, - GFile* file) -{ - gchar* filepath = NULL; - gchar* _tmp0_; - gboolean altered = FALSE; - gboolean is_baseline = FALSE; - gboolean is_source = FALSE; - GFile* old_file = NULL; - gboolean _tmp29_; - GError * _inner_error_ = NULL; -#line 1889 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 1889 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 1890 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = g_file_get_path (file); -#line 1890 "/home/jens/Source/shotwell/src/Photo.vala" - filepath = _tmp0_; -#line 1892 "/home/jens/Source/shotwell/src/Photo.vala" - altered = FALSE; -#line 1893 "/home/jens/Source/shotwell/src/Photo.vala" - is_baseline = FALSE; -#line 1894 "/home/jens/Source/shotwell/src/Photo.vala" - is_source = FALSE; -#line 1895 "/home/jens/Source/shotwell/src/Photo.vala" - old_file = NULL; -#line 15449 "Photo.c" - { - { - PhotoRow* _tmp1_; -#line 1897 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 1897 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 15457 "Photo.c" - { - { - PhotoBackingReaders* _tmp2_; -#line 1898 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->readers; -#line 1898 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 15465 "Photo.c" - { - GFile* _tmp3_ = NULL; - PhotoBackingReaders* _tmp4_; - PhotoFileReader* _tmp5_; - GFile* _tmp9_; - gboolean _tmp10_ = FALSE; - GFile* _tmp11_; -#line 1899 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->priv->readers; -#line 1899 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_->editable; -#line 1899 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp5_ != NULL) { -#line 15479 "Photo.c" - PhotoBackingReaders* _tmp6_; - PhotoFileReader* _tmp7_; - GFile* _tmp8_; -#line 1899 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->priv->readers; -#line 1899 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_->editable; -#line 1899 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 1899 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp3_); -#line 1899 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp8_; -#line 15493 "Photo.c" - } else { -#line 1899 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp3_); -#line 1899 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = NULL; -#line 15499 "Photo.c" - } -#line 1899 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _g_object_ref0 (_tmp3_); -#line 1899 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (old_file); -#line 1899 "/home/jens/Source/shotwell/src/Photo.vala" - old_file = _tmp9_; -#line 1900 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = old_file; -#line 1900 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp11_ != NULL) { -#line 15511 "Photo.c" - GFile* _tmp12_; -#line 1900 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = old_file; -#line 1900 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = !g_file_equal (_tmp12_, file); -#line 15517 "Photo.c" - } else { -#line 1900 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = FALSE; -#line 15521 "Photo.c" - } -#line 1900 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp10_) { -#line 15525 "Photo.c" - BackingPhotoTable* _tmp13_; - BackingPhotoTable* _tmp14_; - PhotoRow* _tmp15_; - BackingPhotoID _tmp16_; - const gchar* _tmp17_; - BackingPhotoRow* _tmp18_; - const gchar* _tmp19_; - gchar* _tmp20_; - PhotoBackingReaders* _tmp21_; - BackingPhotoRow* _tmp22_; - PhotoFileFormat _tmp23_; - const gchar* _tmp24_; - PhotoFileReader* _tmp25_; -#line 1901 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = backing_photo_table_get_instance (); -#line 1901 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _tmp13_; -#line 1901 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = self->row; -#line 1901 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = _tmp15_->editable_id; -#line 1901 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = filepath; -#line 1901 "/home/jens/Source/shotwell/src/Photo.vala" - backing_photo_table_set_filepath (_tmp14_, &_tmp16_, _tmp17_, &_inner_error_); -#line 1901 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp14_); -#line 1901 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1901 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp3_); -#line 15557 "Photo.c" - goto __finally329; - } -#line 1903 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = self->priv->editable; -#line 1903 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = filepath; -#line 1903 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = g_strdup (_tmp19_); -#line 1903 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp18_->filepath); -#line 1903 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_->filepath = _tmp20_; -#line 1904 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = self->priv->readers; -#line 1904 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = self->priv->editable; -#line 1904 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _tmp22_->file_format; -#line 1904 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = filepath; -#line 1904 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = photo_file_format_create_reader (_tmp23_, _tmp24_); -#line 1904 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp21_->editable); -#line 1904 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_->editable = _tmp25_; -#line 1906 "/home/jens/Source/shotwell/src/Photo.vala" - altered = TRUE; -#line 1907 "/home/jens/Source/shotwell/src/Photo.vala" - is_baseline = photo_is_editable_baseline (self); -#line 1908 "/home/jens/Source/shotwell/src/Photo.vala" - is_source = photo_is_editable_source (self); -#line 15590 "Photo.c" - } -#line 1898 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp3_); -#line 15594 "Photo.c" - } - __finally329: - { - PhotoBackingReaders* _tmp26_; -#line 1898 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = self->priv->readers; -#line 1898 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 15603 "Photo.c" - } -#line 1898 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 15607 "Photo.c" - goto __finally328; - } - } - } - __finally328: - { - PhotoRow* _tmp27_; -#line 1897 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = self->row; -#line 1897 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 15619 "Photo.c" - } -#line 1897 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1897 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 15625 "Photo.c" - goto __catch327_database_error; - } -#line 1897 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (old_file); -#line 1897 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (filepath); -#line 1897 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1897 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1897 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 15638 "Photo.c" - } - } - } - goto __finally327; - __catch327_database_error: - { - GError* err = NULL; - GError* _tmp28_; -#line 1896 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 1896 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 1913 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = err; -#line 1913 "/home/jens/Source/shotwell/src/Photo.vala" - app_window_database_error (_tmp28_); -#line 1896 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 15657 "Photo.c" - } - __finally327: -#line 1896 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1896 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (old_file); -#line 1896 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (filepath); -#line 1896 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1896 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1896 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 15672 "Photo.c" - } -#line 1916 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = altered; -#line 1916 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp29_) { -#line 15678 "Photo.c" - GFile* _tmp30_; - gboolean _tmp31_; - gchar** alteration_list = NULL; - gchar** _tmp32_; - gint alteration_list_length1; - gint _alteration_list_size_; - gchar** _tmp33_; - gint _tmp33__length1; - gchar* _tmp34_; - gboolean _tmp35_; - gboolean _tmp38_; - gchar** _tmp41_; - gint _tmp41__length1; - Alteration* _tmp42_; - Alteration* _tmp43_; -#line 1917 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = old_file; -#line 1917 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_editable_replaced (self, _tmp30_, file); -#line 1919 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = is_baseline; -#line 1919 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp31_) { -#line 1920 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_baseline_replaced (self); -#line 15704 "Photo.c" - } -#line 1922 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = g_new0 (gchar*, 0 + 1); -#line 1922 "/home/jens/Source/shotwell/src/Photo.vala" - alteration_list = _tmp32_; -#line 1922 "/home/jens/Source/shotwell/src/Photo.vala" - alteration_list_length1 = 0; -#line 1922 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_list_size_ = alteration_list_length1; -#line 1923 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = alteration_list; -#line 1923 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33__length1 = alteration_list_length1; -#line 1923 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = g_strdup ("backing:editable"); -#line 1923 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add103 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp34_); -#line 1925 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = is_baseline; -#line 1925 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp35_) { -#line 15726 "Photo.c" - gchar** _tmp36_; - gint _tmp36__length1; - gchar* _tmp37_; -#line 1926 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = alteration_list; -#line 1926 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36__length1 = alteration_list_length1; -#line 1926 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = g_strdup ("backing:baseline"); -#line 1926 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add104 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp37_); -#line 15738 "Photo.c" - } -#line 1928 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = is_source; -#line 1928 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp38_) { -#line 15744 "Photo.c" - gchar** _tmp39_; - gint _tmp39__length1; - gchar* _tmp40_; -#line 1929 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = alteration_list; -#line 1929 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39__length1 = alteration_list_length1; -#line 1929 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = g_strdup ("backing:source"); -#line 1929 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add105 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp40_); -#line 15756 "Photo.c" - } -#line 1931 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = alteration_list; -#line 1931 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41__length1 = alteration_list_length1; -#line 1931 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = alteration_new_from_array (_tmp41_, _tmp41__length1); -#line 1931 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = _tmp42_; -#line 1931 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp43_); -#line 1931 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp43_); -#line 1916 "/home/jens/Source/shotwell/src/Photo.vala" - alteration_list = (_vala_array_free (alteration_list, alteration_list_length1, (GDestroyNotify) g_free), NULL); -#line 15772 "Photo.c" - } -#line 1889 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (old_file); -#line 1889 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (filepath); -#line 15778 "Photo.c" -} - - -void -photo_set_many_editable_file (GeeMap* map, - GError** error) -{ - GeeMapIterator* map_iter = NULL; - GeeMapIterator* _tmp0_; - GError * _inner_error_ = NULL; -#line 1936 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (GEE_IS_MAP (map)); -#line 1937 "/home/jens/Source/shotwell/src/Photo.vala" - database_table_begin_transaction (); -#line 1939 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = gee_map_map_iterator (map); -#line 1939 "/home/jens/Source/shotwell/src/Photo.vala" - map_iter = _tmp0_; -#line 1940 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 15799 "Photo.c" - GeeMapIterator* _tmp1_; - GeeMapIterator* _tmp2_; - gpointer _tmp3_; - Photo* _tmp4_; - GeeMapIterator* _tmp5_; - gpointer _tmp6_; - GFile* _tmp7_; -#line 1940 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = map_iter; -#line 1940 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_map_iterator_next (_tmp1_)) { -#line 1940 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 15813 "Photo.c" - } -#line 1941 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = map_iter; -#line 1941 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = gee_map_iterator_get_key (_tmp2_); -#line 1941 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = (Photo*) _tmp3_; -#line 1941 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = map_iter; -#line 1941 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = gee_map_iterator_get_value (_tmp5_); -#line 1941 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = (GFile*) _tmp6_; -#line 1941 "/home/jens/Source/shotwell/src/Photo.vala" - photo_set_editable_file (_tmp4_, _tmp7_); -#line 1941 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp7_); -#line 1941 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp4_); -#line 15833 "Photo.c" - } -#line 1943 "/home/jens/Source/shotwell/src/Photo.vala" - database_table_commit_transaction (&_inner_error_); -#line 1943 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1943 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1943 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 1943 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (map_iter); -#line 1943 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 15847 "Photo.c" - } else { -#line 1943 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (map_iter); -#line 1943 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1943 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1943 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 15857 "Photo.c" - } - } -#line 1936 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (map_iter); -#line 15862 "Photo.c" -} - - -GFile* -photo_get_actual_file (Photo* self) -{ - GFile* result = NULL; - PhotoFileReader* _tmp0_; - PhotoFileReader* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; -#line 1948 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 1949 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_baseline_reader (self); -#line 1949 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 1949 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 1949 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_; -#line 1949 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp1_); -#line 1949 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 1949 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 15890 "Photo.c" -} - - -static GFile* -photo_real_get_master_file (MediaSource* base) -{ - Photo * self; - GFile* result = NULL; - PhotoFileReader* _tmp0_; - PhotoFileReader* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; -#line 1952 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 1953 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_master_reader (self); -#line 1953 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 1953 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 1953 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_; -#line 1953 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp1_); -#line 1953 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 1953 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 15919 "Photo.c" -} - - -GFile* -photo_get_editable_file (Photo* self) -{ - GFile* result = NULL; - PhotoFileReader* reader = NULL; - PhotoFileReader* _tmp0_; - GFile* _tmp1_ = NULL; - PhotoFileReader* _tmp2_; -#line 1956 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 1957 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_editable_reader (self); -#line 1957 "/home/jens/Source/shotwell/src/Photo.vala" - reader = _tmp0_; -#line 1959 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = reader; -#line 1959 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ != NULL) { -#line 15941 "Photo.c" - PhotoFileReader* _tmp3_; - GFile* _tmp4_; -#line 1959 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = reader; -#line 1959 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 1959 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp1_); -#line 1959 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp4_; -#line 15952 "Photo.c" - } else { -#line 1959 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp1_); -#line 1959 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = NULL; -#line 15958 "Photo.c" - } -#line 1959 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp1_; -#line 1959 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 1959 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 15966 "Photo.c" -} - - -GeeCollection* -photo_get_raw_developer_files (Photo* self) -{ - GeeCollection* result = NULL; - GeeArrayList* ret = NULL; - GeeArrayList* _tmp0_; - GError * _inner_error_ = NULL; -#line 1962 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 1963 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_get_master_file_format (self) != PHOTO_FILE_FORMAT_RAW) { -#line 1964 "/home/jens/Source/shotwell/src/Photo.vala" - result = NULL; -#line 1964 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 15985 "Photo.c" - } -#line 1966 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1966 "/home/jens/Source/shotwell/src/Photo.vala" - ret = _tmp0_; -#line 15991 "Photo.c" - { - PhotoRow* _tmp1_; -#line 1967 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 1967 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 15998 "Photo.c" - { - { - GeeIterator* _row_it = NULL; - GeeHashMap* _tmp2_; - GeeCollection* _tmp3_; - GeeCollection* _tmp4_; - GeeCollection* _tmp5_; - GeeIterator* _tmp6_; - GeeIterator* _tmp7_; -#line 1968 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->developments; -#line 1968 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 1968 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 1968 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_; -#line 1968 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1968 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_; -#line 1968 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp5_); -#line 1968 "/home/jens/Source/shotwell/src/Photo.vala" - _row_it = _tmp7_; -#line 1968 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 16026 "Photo.c" - GeeIterator* _tmp8_; - BackingPhotoRow* row = NULL; - GeeIterator* _tmp9_; - gpointer _tmp10_; - GeeArrayList* _tmp11_; - BackingPhotoRow* _tmp12_; - const gchar* _tmp13_; - GFile* _tmp14_; - GFile* _tmp15_; -#line 1968 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _row_it; -#line 1968 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp8_)) { -#line 1968 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 16042 "Photo.c" - } -#line 1968 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _row_it; -#line 1968 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = gee_iterator_get (_tmp9_); -#line 1968 "/home/jens/Source/shotwell/src/Photo.vala" - row = (BackingPhotoRow*) _tmp10_; -#line 1969 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = ret; -#line 1969 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = row; -#line 1969 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_->filepath; -#line 1969 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = g_file_new_for_path (_tmp13_); -#line 1969 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_; -#line 1969 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_); -#line 1969 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp15_); -#line 1968 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (row); -#line 16066 "Photo.c" - } -#line 1968 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_row_it); -#line 16070 "Photo.c" - } - } - __finally330: - { - PhotoRow* _tmp16_; -#line 1967 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = self->row; -#line 1967 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16080 "Photo.c" - } -#line 1967 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1967 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (ret); -#line 1967 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1967 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1967 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 16092 "Photo.c" - } - } -#line 1972 "/home/jens/Source/shotwell/src/Photo.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (ret, GEE_TYPE_COLLECTION, GeeCollection); -#line 1972 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 16099 "Photo.c" -} - - -GFile* -photo_get_source_file (Photo* self) -{ - GFile* result = NULL; - PhotoFileReader* _tmp0_; - PhotoFileReader* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; -#line 1975 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 1976 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_source_reader (self); -#line 1976 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 1976 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 1976 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_; -#line 1976 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp1_); -#line 1976 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 1976 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 16127 "Photo.c" -} - - -PhotoFileFormat -photo_get_file_format (Photo* self) -{ - PhotoFileFormat result = 0; - GError * _inner_error_ = NULL; -#line 1979 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), 0); -#line 16138 "Photo.c" - { - PhotoRow* _tmp0_; -#line 1980 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 1980 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 16145 "Photo.c" - { - BackingPhotoRow* _tmp1_; - PhotoFileFormat _tmp2_; -#line 1981 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->backing_photo_row; -#line 1981 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->file_format; -#line 1981 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_; -#line 16155 "Photo.c" - { - PhotoRow* _tmp3_; -#line 1980 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 1980 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16162 "Photo.c" - } -#line 1981 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 16166 "Photo.c" - } - __finally331: - { - PhotoRow* _tmp4_; -#line 1980 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 1980 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16175 "Photo.c" - } -#line 1980 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1980 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1980 "/home/jens/Source/shotwell/src/Photo.vala" - return 0; -#line 16183 "Photo.c" - } -} - - -PhotoFileFormat -photo_get_best_export_file_format (Photo* self) -{ - PhotoFileFormat result = 0; - PhotoFileFormat file_format = 0; - PhotoFileFormat _tmp0_; -#line 1985 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), 0); -#line 1986 "/home/jens/Source/shotwell/src/Photo.vala" - file_format = photo_get_file_format (self); -#line 1987 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = file_format; -#line 1987 "/home/jens/Source/shotwell/src/Photo.vala" - if (!photo_file_format_can_write (_tmp0_)) { -#line 1988 "/home/jens/Source/shotwell/src/Photo.vala" - file_format = photo_file_format_get_system_default_format (); -#line 16204 "Photo.c" - } -#line 1990 "/home/jens/Source/shotwell/src/Photo.vala" - result = file_format; -#line 1990 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 16210 "Photo.c" -} - - -PhotoFileFormat -photo_get_master_file_format (Photo* self) -{ - PhotoFileFormat result = 0; - GError * _inner_error_ = NULL; -#line 1993 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), 0); -#line 16221 "Photo.c" - { - PhotoRow* _tmp0_; -#line 1994 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 1994 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 16228 "Photo.c" - { - PhotoBackingReaders* _tmp1_; - PhotoFileReader* _tmp2_; -#line 1995 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->readers; -#line 1995 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->master; -#line 1995 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 16238 "Photo.c" - { - PhotoRow* _tmp3_; -#line 1994 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 1994 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16245 "Photo.c" - } -#line 1995 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 16249 "Photo.c" - } - __finally332: - { - PhotoRow* _tmp4_; -#line 1994 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 1994 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16258 "Photo.c" - } -#line 1994 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1994 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 1994 "/home/jens/Source/shotwell/src/Photo.vala" - return 0; -#line 16266 "Photo.c" - } -} - - -static time_t -photo_real_get_timestamp (MediaSource* base) -{ - Photo * self; - time_t result = 0; - GError * _inner_error_ = NULL; -#line 1999 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 16279 "Photo.c" - { - PhotoRow* _tmp0_; - time_t _tmp5_ = 0; -#line 2000 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2000 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 16287 "Photo.c" - { - BackingPhotoRow* _tmp1_; - time_t _tmp2_; -#line 2001 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->backing_photo_row; -#line 2001 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->timestamp; -#line 2001 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_; -#line 16297 "Photo.c" - { - PhotoRow* _tmp3_; -#line 2000 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2000 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16304 "Photo.c" - } -#line 2001 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 16308 "Photo.c" - } - __finally333: - { - PhotoRow* _tmp4_; -#line 2000 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2000 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16317 "Photo.c" - } -#line 2000 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2000 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2000 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp5_; -#line 16325 "Photo.c" - } -} - - -void -photo_get_photo_id (Photo* self, - PhotoID* result) -{ - GError * _inner_error_ = NULL; -#line 2005 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 16337 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2006 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2006 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 16344 "Photo.c" - { - PhotoRow* _tmp1_; - PhotoID _tmp2_; -#line 2007 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2007 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->photo_id; -#line 2007 "/home/jens/Source/shotwell/src/Photo.vala" - *result = _tmp2_; -#line 16354 "Photo.c" - { - PhotoRow* _tmp3_; -#line 2006 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2006 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16361 "Photo.c" - } -#line 2007 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 16365 "Photo.c" - } - __finally334: - { - PhotoRow* _tmp4_; -#line 2006 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2006 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16374 "Photo.c" - } -#line 2006 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2006 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2006 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 16382 "Photo.c" - } -} - - -static inline void -photo_real_get_event_id (MediaSource* base, - EventID* result) -{ - Photo * self; - PhotoRow* _tmp0_; - EventID _tmp1_; -#line 2012 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 2013 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2013 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_->event_id; -#line 2013 "/home/jens/Source/shotwell/src/Photo.vala" - *result = _tmp1_; -#line 2013 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 16404 "Photo.c" -} - - -inline gint64 -photo_get_raw_event_id (Photo* self) -{ - gint64 result = 0LL; - PhotoRow* _tmp0_; - EventID _tmp1_; - gint64 _tmp2_; -#line 2017 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), 0LL); -#line 2018 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2018 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_->event_id; -#line 2018 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_.id; -#line 2018 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_; -#line 2018 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 16427 "Photo.c" -} - - -static void -photo_real_get_import_id (MediaSource* base, - ImportID* result) -{ - Photo * self; - GError * _inner_error_ = NULL; -#line 2021 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 16439 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2022 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2022 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 16446 "Photo.c" - { - PhotoRow* _tmp1_; - ImportID _tmp2_; -#line 2023 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2023 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->import_id; -#line 2023 "/home/jens/Source/shotwell/src/Photo.vala" - *result = _tmp2_; -#line 16456 "Photo.c" - { - PhotoRow* _tmp3_; -#line 2022 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2022 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16463 "Photo.c" - } -#line 2023 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 16467 "Photo.c" - } - __finally335: - { - PhotoRow* _tmp4_; -#line 2022 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2022 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16476 "Photo.c" - } -#line 2022 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2022 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2022 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 16484 "Photo.c" - } -} - - -void -photo_get_editable_id (Photo* self, - BackingPhotoID* result) -{ - GError * _inner_error_ = NULL; -#line 2027 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 16496 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2028 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2028 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 16503 "Photo.c" - { - PhotoRow* _tmp1_; - BackingPhotoID _tmp2_; -#line 2029 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2029 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->editable_id; -#line 2029 "/home/jens/Source/shotwell/src/Photo.vala" - *result = _tmp2_; -#line 16513 "Photo.c" - { - PhotoRow* _tmp3_; -#line 2028 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2028 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16520 "Photo.c" - } -#line 2029 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 16524 "Photo.c" - } - __finally336: - { - PhotoRow* _tmp4_; -#line 2028 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2028 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16533 "Photo.c" - } -#line 2028 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2028 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2028 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 16541 "Photo.c" - } -} - - -static gchar* -photo_real_get_master_md5 (MediaSource* base) -{ - Photo * self; - gchar* result = NULL; - GError * _inner_error_ = NULL; -#line 2033 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 16554 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2034 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2034 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 16561 "Photo.c" - { - PhotoRow* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; -#line 2035 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2035 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->md5; -#line 2035 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 2035 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 16574 "Photo.c" - { - PhotoRow* _tmp4_; -#line 2034 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2034 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16581 "Photo.c" - } -#line 2035 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 16585 "Photo.c" - } - __finally337: - { - PhotoRow* _tmp5_; -#line 2034 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 2034 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16594 "Photo.c" - } -#line 2034 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2034 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2034 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 16602 "Photo.c" - } -} - - -guint64 -photo_get_flags (Photo* self) -{ - guint64 result = 0ULL; - GError * _inner_error_ = NULL; -#line 2041 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), 0ULL); -#line 16614 "Photo.c" - { - PhotoRow* _tmp0_; - guint64 _tmp5_ = 0ULL; -#line 2042 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2042 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 16622 "Photo.c" - { - PhotoRow* _tmp1_; - guint64 _tmp2_; -#line 2043 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2043 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->flags; -#line 2043 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_; -#line 16632 "Photo.c" - { - PhotoRow* _tmp3_; -#line 2042 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2042 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16639 "Photo.c" - } -#line 2043 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 16643 "Photo.c" - } - __finally338: - { - PhotoRow* _tmp4_; -#line 2042 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2042 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16652 "Photo.c" - } -#line 2042 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2042 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2042 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp5_; -#line 16660 "Photo.c" - } -} - - -static void -photo_notify_flags_altered (Photo* self, - Alteration* additional_alteration) -{ - Alteration* alteration = NULL; - Alteration* _tmp0_; - Alteration* _tmp3_; -#line 2047 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 2047 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration)); -#line 2048 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = alteration_new ("metadata", "flags"); -#line 2048 "/home/jens/Source/shotwell/src/Photo.vala" - alteration = _tmp0_; -#line 2049 "/home/jens/Source/shotwell/src/Photo.vala" - if (additional_alteration != NULL) { -#line 16682 "Photo.c" - Alteration* _tmp1_; - Alteration* _tmp2_; -#line 2050 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = alteration; -#line 2050 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = alteration_compress (_tmp1_, additional_alteration); -#line 2050 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (alteration); -#line 2050 "/home/jens/Source/shotwell/src/Photo.vala" - alteration = _tmp2_; -#line 16693 "Photo.c" - } -#line 2052 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = alteration; -#line 2052 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp3_); -#line 2047 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (alteration); -#line 16701 "Photo.c" -} - - -guint64 -photo_replace_flags (Photo* self, - guint64 flags, - Alteration* additional_alteration) -{ - guint64 result = 0ULL; - gboolean committed = FALSE; - gboolean _tmp8_; - GError * _inner_error_ = NULL; -#line 2055 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), 0ULL); -#line 2055 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL); -#line 16718 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2057 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2057 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 16725 "Photo.c" - { - PhotoTable* _tmp1_; - PhotoTable* _tmp2_; - PhotoID _tmp3_ = {0}; - gboolean _tmp4_; -#line 2058 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_table_get_instance (); -#line 2058 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 2058 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (self, &_tmp3_); -#line 2058 "/home/jens/Source/shotwell/src/Photo.vala" - committed = photo_table_replace_flags (_tmp2_, &_tmp3_, flags); -#line 2058 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp2_); -#line 2059 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = committed; -#line 2059 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp4_) { -#line 16745 "Photo.c" - PhotoRow* _tmp5_; -#line 2060 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 2060 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_->flags = flags; -#line 16751 "Photo.c" - } - } - __finally339: - { - PhotoRow* _tmp6_; -#line 2057 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->row; -#line 2057 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16761 "Photo.c" - } -#line 2057 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 16765 "Photo.c" - guint64 _tmp7_ = 0ULL; -#line 2057 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2057 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2057 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp7_; -#line 16773 "Photo.c" - } - } -#line 2063 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = committed; -#line 2063 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp8_) { -#line 2064 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_flags_altered (self, additional_alteration); -#line 16782 "Photo.c" - } -#line 2066 "/home/jens/Source/shotwell/src/Photo.vala" - result = flags; -#line 2066 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 16788 "Photo.c" -} - - -gboolean -photo_is_flag_set (Photo* self, - guint64 mask) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 2069 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 16800 "Photo.c" - { - PhotoRow* _tmp0_; - gboolean _tmp5_ = FALSE; -#line 2070 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2070 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 16808 "Photo.c" - { - PhotoRow* _tmp1_; - guint64 _tmp2_; -#line 2071 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2071 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->flags; -#line 2071 "/home/jens/Source/shotwell/src/Photo.vala" - result = media_source_internal_is_flag_set (_tmp2_, mask); -#line 16818 "Photo.c" - { - PhotoRow* _tmp3_; -#line 2070 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2070 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16825 "Photo.c" - } -#line 2071 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 16829 "Photo.c" - } - __finally340: - { - PhotoRow* _tmp4_; -#line 2070 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2070 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16838 "Photo.c" - } -#line 2070 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2070 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2070 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp5_; -#line 16846 "Photo.c" - } -} - - -guint64 -photo_add_flags (Photo* self, - guint64 mask, - Alteration* additional_alteration) -{ - guint64 result = 0ULL; - guint64 flags = 0ULL; - gboolean committed = FALSE; - gboolean _tmp15_; - GError * _inner_error_ = NULL; -#line 2075 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), 0ULL); -#line 2075 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL); -#line 2076 "/home/jens/Source/shotwell/src/Photo.vala" - flags = (guint64) 0; -#line 2078 "/home/jens/Source/shotwell/src/Photo.vala" - committed = FALSE; -#line 16869 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2079 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2079 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 16876 "Photo.c" - { - PhotoRow* _tmp1_; - guint64 _tmp2_; - PhotoRow* _tmp3_; - guint64 _tmp4_; - guint64 _tmp5_; -#line 2080 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2080 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->flags; -#line 2080 "/home/jens/Source/shotwell/src/Photo.vala" - flags = media_source_internal_add_flags (_tmp2_, mask); -#line 2081 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2081 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->flags; -#line 2081 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = flags; -#line 2081 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp4_ != _tmp5_) { -#line 16897 "Photo.c" - PhotoTable* _tmp6_; - PhotoTable* _tmp7_; - PhotoID _tmp8_ = {0}; - guint64 _tmp9_; - gboolean _tmp10_; -#line 2082 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo_table_get_instance (); -#line 2082 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_; -#line 2082 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (self, &_tmp8_); -#line 2082 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = flags; -#line 2082 "/home/jens/Source/shotwell/src/Photo.vala" - committed = photo_table_replace_flags (_tmp7_, &_tmp8_, _tmp9_); -#line 2082 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp7_); -#line 2083 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = committed; -#line 2083 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp10_) { -#line 16919 "Photo.c" - PhotoRow* _tmp11_; - guint64 _tmp12_; -#line 2084 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = self->row; -#line 2084 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = flags; -#line 2084 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_->flags = _tmp12_; -#line 16928 "Photo.c" - } - } - } - __finally341: - { - PhotoRow* _tmp13_; -#line 2079 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = self->row; -#line 2079 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 16939 "Photo.c" - } -#line 2079 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 16943 "Photo.c" - guint64 _tmp14_ = 0ULL; -#line 2079 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2079 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2079 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp14_; -#line 16951 "Photo.c" - } - } -#line 2088 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = committed; -#line 2088 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp15_) { -#line 2089 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_flags_altered (self, additional_alteration); -#line 16960 "Photo.c" - } -#line 2091 "/home/jens/Source/shotwell/src/Photo.vala" - result = flags; -#line 2091 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 16966 "Photo.c" -} - - -guint64 -photo_remove_flags (Photo* self, - guint64 mask, - Alteration* additional_alteration) -{ - guint64 result = 0ULL; - guint64 flags = 0ULL; - gboolean committed = FALSE; - gboolean _tmp15_; - GError * _inner_error_ = NULL; -#line 2094 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), 0ULL); -#line 2094 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL); -#line 2095 "/home/jens/Source/shotwell/src/Photo.vala" - flags = (guint64) 0; -#line 2097 "/home/jens/Source/shotwell/src/Photo.vala" - committed = FALSE; -#line 16988 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2098 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2098 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 16995 "Photo.c" - { - PhotoRow* _tmp1_; - guint64 _tmp2_; - PhotoRow* _tmp3_; - guint64 _tmp4_; - guint64 _tmp5_; -#line 2099 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2099 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->flags; -#line 2099 "/home/jens/Source/shotwell/src/Photo.vala" - flags = media_source_internal_remove_flags (_tmp2_, mask); -#line 2100 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2100 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->flags; -#line 2100 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = flags; -#line 2100 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp4_ != _tmp5_) { -#line 17016 "Photo.c" - PhotoTable* _tmp6_; - PhotoTable* _tmp7_; - PhotoID _tmp8_ = {0}; - guint64 _tmp9_; - gboolean _tmp10_; -#line 2101 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo_table_get_instance (); -#line 2101 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_; -#line 2101 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (self, &_tmp8_); -#line 2101 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = flags; -#line 2101 "/home/jens/Source/shotwell/src/Photo.vala" - committed = photo_table_replace_flags (_tmp7_, &_tmp8_, _tmp9_); -#line 2101 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp7_); -#line 2102 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = committed; -#line 2102 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp10_) { -#line 17038 "Photo.c" - PhotoRow* _tmp11_; - guint64 _tmp12_; -#line 2103 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = self->row; -#line 2103 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = flags; -#line 2103 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_->flags = _tmp12_; -#line 17047 "Photo.c" - } - } - } - __finally342: - { - PhotoRow* _tmp13_; -#line 2098 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = self->row; -#line 2098 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 17058 "Photo.c" - } -#line 2098 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17062 "Photo.c" - guint64 _tmp14_ = 0ULL; -#line 2098 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2098 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2098 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp14_; -#line 17070 "Photo.c" - } - } -#line 2107 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = committed; -#line 2107 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp15_) { -#line 2108 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_flags_altered (self, additional_alteration); -#line 17079 "Photo.c" - } -#line 2110 "/home/jens/Source/shotwell/src/Photo.vala" - result = flags; -#line 2110 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 17085 "Photo.c" -} - - -guint64 -photo_add_remove_flags (Photo* self, - guint64 add, - guint64 remove, - Alteration* additional_alteration) -{ - guint64 result = 0ULL; - guint64 flags = 0ULL; - gboolean committed = FALSE; - gboolean _tmp15_; - GError * _inner_error_ = NULL; -#line 2113 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), 0ULL); -#line 2113 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL); -#line 2114 "/home/jens/Source/shotwell/src/Photo.vala" - flags = (guint64) 0; -#line 2116 "/home/jens/Source/shotwell/src/Photo.vala" - committed = FALSE; -#line 17108 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2117 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2117 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 17115 "Photo.c" - { - PhotoRow* _tmp1_; - guint64 _tmp2_; - PhotoRow* _tmp3_; - guint64 _tmp4_; - guint64 _tmp5_; -#line 2118 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2118 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->flags; -#line 2118 "/home/jens/Source/shotwell/src/Photo.vala" - flags = (_tmp2_ | add) & (~remove); -#line 2119 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2119 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->flags; -#line 2119 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = flags; -#line 2119 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp4_ != _tmp5_) { -#line 17136 "Photo.c" - PhotoTable* _tmp6_; - PhotoTable* _tmp7_; - PhotoID _tmp8_ = {0}; - guint64 _tmp9_; - gboolean _tmp10_; -#line 2120 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo_table_get_instance (); -#line 2120 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_; -#line 2120 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (self, &_tmp8_); -#line 2120 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = flags; -#line 2120 "/home/jens/Source/shotwell/src/Photo.vala" - committed = photo_table_replace_flags (_tmp7_, &_tmp8_, _tmp9_); -#line 2120 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp7_); -#line 2121 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = committed; -#line 2121 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp10_) { -#line 17158 "Photo.c" - PhotoRow* _tmp11_; - guint64 _tmp12_; -#line 2122 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = self->row; -#line 2122 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = flags; -#line 2122 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_->flags = _tmp12_; -#line 17167 "Photo.c" - } - } - } - __finally343: - { - PhotoRow* _tmp13_; -#line 2117 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = self->row; -#line 2117 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 17178 "Photo.c" - } -#line 2117 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17182 "Photo.c" - guint64 _tmp14_ = 0ULL; -#line 2117 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2117 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2117 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp14_; -#line 17190 "Photo.c" - } - } -#line 2126 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = committed; -#line 2126 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp15_) { -#line 2127 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_flags_altered (self, additional_alteration); -#line 17199 "Photo.c" - } -#line 2129 "/home/jens/Source/shotwell/src/Photo.vala" - result = flags; -#line 2129 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 17205 "Photo.c" -} - - -void -photo_add_remove_many_flags (GeeCollection* add, - guint64 add_mask, - Alteration* additional_add_alteration, - GeeCollection* remove, - guint64 remove_mask, - Alteration* additional_remove_alteration, - GError** error) -{ - GError * _inner_error_ = NULL; -#line 2132 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((add == NULL) || GEE_IS_COLLECTION (add)); -#line 2132 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((additional_add_alteration == NULL) || IS_ALTERATION (additional_add_alteration)); -#line 2132 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((remove == NULL) || GEE_IS_COLLECTION (remove)); -#line 2132 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((additional_remove_alteration == NULL) || IS_ALTERATION (additional_remove_alteration)); -#line 2135 "/home/jens/Source/shotwell/src/Photo.vala" - database_table_begin_transaction (); -#line 2137 "/home/jens/Source/shotwell/src/Photo.vala" - if (add != NULL) { -#line 17231 "Photo.c" - { - GeeIterator* _photo_it = NULL; - GeeIterator* _tmp0_; -#line 2138 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (add, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2138 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_it = _tmp0_; -#line 2138 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 17241 "Photo.c" - GeeIterator* _tmp1_; - Photo* photo = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - Photo* _tmp4_; -#line 2138 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _photo_it; -#line 2138 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 2138 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 17253 "Photo.c" - } -#line 2138 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _photo_it; -#line 2138 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 2138 "/home/jens/Source/shotwell/src/Photo.vala" - photo = (Photo*) _tmp3_; -#line 2139 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = photo; -#line 2139 "/home/jens/Source/shotwell/src/Photo.vala" - photo_add_flags (_tmp4_, add_mask, additional_add_alteration); -#line 2138 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 17267 "Photo.c" - } -#line 2138 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_photo_it); -#line 17271 "Photo.c" - } - } -#line 2142 "/home/jens/Source/shotwell/src/Photo.vala" - if (remove != NULL) { -#line 17276 "Photo.c" - { - GeeIterator* _photo_it = NULL; - GeeIterator* _tmp5_; -#line 2143 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (remove, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2143 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_it = _tmp5_; -#line 2143 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 17286 "Photo.c" - GeeIterator* _tmp6_; - Photo* photo = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - Photo* _tmp9_; -#line 2143 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _photo_it; -#line 2143 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 2143 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 17298 "Photo.c" - } -#line 2143 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _photo_it; -#line 2143 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 2143 "/home/jens/Source/shotwell/src/Photo.vala" - photo = (Photo*) _tmp8_; -#line 2144 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = photo; -#line 2144 "/home/jens/Source/shotwell/src/Photo.vala" - photo_remove_flags (_tmp9_, remove_mask, additional_remove_alteration); -#line 2143 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 17312 "Photo.c" - } -#line 2143 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_photo_it); -#line 17316 "Photo.c" - } - } -#line 2147 "/home/jens/Source/shotwell/src/Photo.vala" - database_table_commit_transaction (&_inner_error_); -#line 2147 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2147 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 2147 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2147 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 17329 "Photo.c" - } else { -#line 2147 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2147 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2147 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 17337 "Photo.c" - } - } -} - - -guint64 -photo_toggle_flags (Photo* self, - guint64 mask, - Alteration* additional_alteration) -{ - guint64 result = 0ULL; - guint64 flags = 0ULL; - gboolean committed = FALSE; - gboolean _tmp15_; - GError * _inner_error_ = NULL; -#line 2150 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), 0ULL); -#line 2150 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL); -#line 2151 "/home/jens/Source/shotwell/src/Photo.vala" - flags = (guint64) 0; -#line 2153 "/home/jens/Source/shotwell/src/Photo.vala" - committed = FALSE; -#line 17361 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2154 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2154 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 17368 "Photo.c" - { - PhotoRow* _tmp1_; - guint64 _tmp2_; - PhotoRow* _tmp3_; - guint64 _tmp4_; - guint64 _tmp5_; -#line 2155 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2155 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->flags; -#line 2155 "/home/jens/Source/shotwell/src/Photo.vala" - flags = _tmp2_ ^ mask; -#line 2156 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2156 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->flags; -#line 2156 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = flags; -#line 2156 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp4_ != _tmp5_) { -#line 17389 "Photo.c" - PhotoTable* _tmp6_; - PhotoTable* _tmp7_; - PhotoID _tmp8_ = {0}; - guint64 _tmp9_; - gboolean _tmp10_; -#line 2157 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo_table_get_instance (); -#line 2157 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_; -#line 2157 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (self, &_tmp8_); -#line 2157 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = flags; -#line 2157 "/home/jens/Source/shotwell/src/Photo.vala" - committed = photo_table_replace_flags (_tmp7_, &_tmp8_, _tmp9_); -#line 2157 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp7_); -#line 2158 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = committed; -#line 2158 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp10_) { -#line 17411 "Photo.c" - PhotoRow* _tmp11_; - guint64 _tmp12_; -#line 2159 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = self->row; -#line 2159 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = flags; -#line 2159 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_->flags = _tmp12_; -#line 17420 "Photo.c" - } - } - } - __finally344: - { - PhotoRow* _tmp13_; -#line 2154 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = self->row; -#line 2154 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 17431 "Photo.c" - } -#line 2154 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17435 "Photo.c" - guint64 _tmp14_ = 0ULL; -#line 2154 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2154 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2154 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp14_; -#line 17443 "Photo.c" - } - } -#line 2163 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = committed; -#line 2163 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp15_) { -#line 2164 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_flags_altered (self, additional_alteration); -#line 17452 "Photo.c" - } -#line 2166 "/home/jens/Source/shotwell/src/Photo.vala" - result = flags; -#line 2166 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 17458 "Photo.c" -} - - -gboolean -photo_is_master_metadata_dirty (Photo* self) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 2169 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 17469 "Photo.c" - { - PhotoRow* _tmp0_; - gboolean _tmp5_ = FALSE; -#line 2170 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2170 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 17477 "Photo.c" - { - PhotoRow* _tmp1_; - gboolean _tmp2_; -#line 2171 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2171 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->metadata_dirty; -#line 2171 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_; -#line 17487 "Photo.c" - { - PhotoRow* _tmp3_; -#line 2170 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2170 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 17494 "Photo.c" - } -#line 2171 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 17498 "Photo.c" - } - __finally345: - { - PhotoRow* _tmp4_; -#line 2170 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2170 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 17507 "Photo.c" - } -#line 2170 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2170 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2170 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp5_; -#line 17515 "Photo.c" - } -} - - -void -photo_set_master_metadata_dirty (Photo* self, - gboolean dirty, - GError** error) -{ - gboolean committed = FALSE; - gboolean _tmp8_; - GError * _inner_error_ = NULL; -#line 2175 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 2176 "/home/jens/Source/shotwell/src/Photo.vala" - committed = FALSE; -#line 17532 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2177 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2177 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 17539 "Photo.c" - { - PhotoRow* _tmp1_; - gboolean _tmp2_; -#line 2178 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2178 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->metadata_dirty; -#line 2178 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ != dirty) { -#line 17549 "Photo.c" - PhotoTable* _tmp3_; - PhotoTable* _tmp4_; - PhotoID _tmp5_ = {0}; - PhotoRow* _tmp6_; -#line 2179 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_table_get_instance (); -#line 2179 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 2179 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (self, &_tmp5_); -#line 2179 "/home/jens/Source/shotwell/src/Photo.vala" - photo_table_set_metadata_dirty (_tmp4_, &_tmp5_, dirty, &_inner_error_); -#line 2179 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp4_); -#line 2179 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 17566 "Photo.c" - goto __finally346; - } -#line 2180 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->row; -#line 2180 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_->metadata_dirty = dirty; -#line 2181 "/home/jens/Source/shotwell/src/Photo.vala" - committed = TRUE; -#line 17575 "Photo.c" - } - } - __finally346: - { - PhotoRow* _tmp7_; -#line 2177 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = self->row; -#line 2177 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 17585 "Photo.c" - } -#line 2177 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2177 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 2177 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2177 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 17595 "Photo.c" - } else { -#line 2177 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2177 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2177 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 17603 "Photo.c" - } - } - } -#line 2185 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = committed; -#line 2185 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp8_) { -#line 17611 "Photo.c" - Alteration* _tmp9_; - Alteration* _tmp10_; -#line 2186 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = alteration_new ("metadata", "master-dirty"); -#line 2186 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_; -#line 2186 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp10_); -#line 2186 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp10_); -#line 17622 "Photo.c" - } -} - - -static Rating -photo_real_get_rating (MediaSource* base) -{ - Photo * self; - Rating result = 0; - GError * _inner_error_ = NULL; -#line 2189 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 17635 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2190 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2190 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 17642 "Photo.c" - { - PhotoRow* _tmp1_; - Rating _tmp2_; -#line 2191 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2191 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->rating; -#line 2191 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_; -#line 17652 "Photo.c" - { - PhotoRow* _tmp3_; -#line 2190 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2190 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 17659 "Photo.c" - } -#line 2191 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 17663 "Photo.c" - } - __finally347: - { - PhotoRow* _tmp4_; -#line 2190 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2190 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 17672 "Photo.c" - } -#line 2190 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2190 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2190 "/home/jens/Source/shotwell/src/Photo.vala" - return 0; -#line 17680 "Photo.c" - } -} - - -static void -photo_real_set_rating (MediaSource* base, - Rating rating) -{ - Photo * self; - gboolean committed = FALSE; - gboolean _tmp10_; - GError * _inner_error_ = NULL; -#line 2195 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 2196 "/home/jens/Source/shotwell/src/Photo.vala" - committed = FALSE; -#line 17697 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2198 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2198 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 17704 "Photo.c" - { - gboolean _tmp1_ = FALSE; - PhotoRow* _tmp2_; - Rating _tmp3_; -#line 2199 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->row; -#line 2199 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_->rating; -#line 2199 "/home/jens/Source/shotwell/src/Photo.vala" - if (rating != _tmp3_) { -#line 2199 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = rating_is_valid (rating); -#line 17717 "Photo.c" - } else { -#line 2199 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = FALSE; -#line 17721 "Photo.c" - } -#line 2199 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_) { -#line 17725 "Photo.c" - PhotoTable* _tmp4_; - PhotoTable* _tmp5_; - PhotoID _tmp6_ = {0}; - gboolean _tmp7_; -#line 2200 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = photo_table_get_instance (); -#line 2200 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_; -#line 2200 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (self, &_tmp6_); -#line 2200 "/home/jens/Source/shotwell/src/Photo.vala" - committed = photo_table_set_rating (_tmp5_, &_tmp6_, rating); -#line 2200 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp5_); -#line 2201 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = committed; -#line 2201 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp7_) { -#line 17744 "Photo.c" - PhotoRow* _tmp8_; -#line 2202 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = self->row; -#line 2202 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_->rating = rating; -#line 17750 "Photo.c" - } - } - } - __finally348: - { - PhotoRow* _tmp9_; -#line 2198 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = self->row; -#line 2198 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 17761 "Photo.c" - } -#line 2198 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2198 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2198 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2198 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 17771 "Photo.c" - } - } -#line 2206 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = committed; -#line 2206 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp10_) { -#line 17778 "Photo.c" - Alteration* _tmp11_; - Alteration* _tmp12_; -#line 2207 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = alteration_new ("metadata", "rating"); -#line 2207 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_; -#line 2207 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp12_); -#line 2207 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp12_); -#line 17789 "Photo.c" - } -} - - -static void -photo_real_increase_rating (MediaSource* base) -{ - Photo * self; - GError * _inner_error_ = NULL; -#line 2210 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 17801 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2211 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2211 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 17808 "Photo.c" - { - PhotoRow* _tmp1_; - Rating _tmp2_; -#line 2212 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2212 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->rating; -#line 2212 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), rating_increase (_tmp2_)); -#line 17818 "Photo.c" - } - __finally349: - { - PhotoRow* _tmp3_; -#line 2211 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2211 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 17827 "Photo.c" - } -#line 2211 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2211 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2211 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2211 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 17837 "Photo.c" - } - } -} - - -static void -photo_real_decrease_rating (MediaSource* base) -{ - Photo * self; - GError * _inner_error_ = NULL; -#line 2216 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 17850 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2217 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2217 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 17857 "Photo.c" - { - PhotoRow* _tmp1_; - Rating _tmp2_; -#line 2218 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2218 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->rating; -#line 2218 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), rating_decrease (_tmp2_)); -#line 17867 "Photo.c" - } - __finally350: - { - PhotoRow* _tmp3_; -#line 2217 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2217 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 17876 "Photo.c" - } -#line 2217 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2217 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2217 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2217 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 17886 "Photo.c" - } - } -} - - -static void -photo_real_commit_backlinks (DataSource* base, - SourceCollection* sources, - const gchar* backlinks) -{ - Photo * self; - GError * _inner_error_ = NULL; -#line 2222 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 2222 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((sources == NULL) || IS_SOURCE_COLLECTION (sources)); -#line 17903 "Photo.c" - { - PhotoTable* _tmp0_; - PhotoTable* _tmp1_; - PhotoID _tmp2_ = {0}; -#line 2227 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_table_get_instance (); -#line 2227 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 2227 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (self, &_tmp2_); -#line 2227 "/home/jens/Source/shotwell/src/Photo.vala" - photo_table_update_backlinks (_tmp1_, &_tmp2_, backlinks, &_inner_error_); -#line 2227 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp1_); -#line 2227 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2227 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 17922 "Photo.c" - goto __catch351_database_error; - } -#line 2227 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2227 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2227 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 17931 "Photo.c" - } - { - PhotoRow* _tmp3_; -#line 2228 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2228 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 17939 "Photo.c" - { - PhotoRow* _tmp4_; - gchar* _tmp5_; -#line 2229 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2229 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = g_strdup (backlinks); -#line 2229 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp4_->backlinks); -#line 2229 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_->backlinks = _tmp5_; -#line 17951 "Photo.c" - } - __finally352: - { - PhotoRow* _tmp6_; -#line 2228 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->row; -#line 2228 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 17960 "Photo.c" - } -#line 2228 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2228 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 17966 "Photo.c" - goto __catch351_database_error; - } -#line 2228 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2228 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2228 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 17975 "Photo.c" - } - } - } - goto __finally351; - __catch351_database_error: - { - GError* err = NULL; - gchar* _tmp7_; - gchar* _tmp8_; - GError* _tmp9_; - const gchar* _tmp10_; -#line 2226 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 2226 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 2232 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 2232 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _tmp7_; -#line 2232 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = err; -#line 2232 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_->message; -#line 2232 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:2232: Unable to update link state for %s: %s", _tmp8_, _tmp10_); -#line 2232 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp8_); -#line 2226 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 18005 "Photo.c" - } - __finally351: -#line 2226 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2226 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2226 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2226 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 18016 "Photo.c" - } -} - - -static gboolean -photo_real_set_event_id (MediaSource* base, - EventID* event_id) -{ - Photo * self; - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 2240 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 2240 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (event_id != NULL, FALSE); -#line 18032 "Photo.c" - { - PhotoRow* _tmp0_; - gboolean _tmp12_ = FALSE; -#line 2241 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2241 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 18040 "Photo.c" - { - gboolean committed = FALSE; - PhotoTable* _tmp1_; - PhotoTable* _tmp2_; - PhotoRow* _tmp3_; - PhotoID _tmp4_; - EventID _tmp5_; - gboolean _tmp6_; - gboolean _tmp7_; -#line 2242 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_table_get_instance (); -#line 2242 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 2242 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2242 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->photo_id; -#line 2242 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = *event_id; -#line 2242 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo_table_set_event (_tmp2_, &_tmp4_, &_tmp5_); -#line 2242 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp2_); -#line 2242 "/home/jens/Source/shotwell/src/Photo.vala" - committed = _tmp6_; -#line 2244 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = committed; -#line 2244 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp7_) { -#line 18070 "Photo.c" - PhotoRow* _tmp8_; - EventID _tmp9_; -#line 2245 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = self->row; -#line 2245 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = *event_id; -#line 2245 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_->event_id = _tmp9_; -#line 18079 "Photo.c" - } -#line 2247 "/home/jens/Source/shotwell/src/Photo.vala" - result = committed; -#line 18083 "Photo.c" - { - PhotoRow* _tmp10_; -#line 2241 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = self->row; -#line 2241 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 18090 "Photo.c" - } -#line 2247 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 18094 "Photo.c" - } - __finally353: - { - PhotoRow* _tmp11_; -#line 2241 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = self->row; -#line 2241 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 18103 "Photo.c" - } -#line 2241 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2241 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2241 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp12_; -#line 18111 "Photo.c" - } -} - - -static gchar* -photo_real_to_string (DataObject* base) -{ - Photo * self; - gchar* result = NULL; - gchar* _tmp0_ = NULL; - PhotoID _tmp9_ = {0}; - gint64 _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - PhotoFileReader* _tmp13_; - PhotoFileReader* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; -#line 2251 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 2253 "/home/jens/Source/shotwell/src/Photo.vala" - if (!photo_is_master_baseline (self)) { -#line 18136 "Photo.c" - GFile* _tmp1_; - GFile* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 2253 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_get_actual_file (self); -#line 2253 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 2253 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = g_file_get_path (_tmp2_); -#line 2253 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 2253 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = g_strconcat (" (", _tmp4_, NULL); -#line 2253 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _tmp5_; -#line 2253 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = g_strconcat (_tmp6_, ")", NULL); -#line 2253 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp0_); -#line 2253 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp7_; -#line 2253 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp6_); -#line 2253 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp4_); -#line 2253 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp2_); -#line 18168 "Photo.c" - } else { - gchar* _tmp8_; -#line 2253 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = g_strdup (""); -#line 2253 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp0_); -#line 2253 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp8_; -#line 18177 "Photo.c" - } -#line 2252 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (self, &_tmp9_); -#line 2252 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_.id; -#line 2252 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp10_); -#line 2252 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_; -#line 2252 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = photo_get_master_reader (self); -#line 2252 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _tmp13_; -#line 2252 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 2252 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = _tmp15_; -#line 2252 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = g_strdup_printf ("[%s] %s%s", _tmp12_, _tmp16_, _tmp0_); -#line 2252 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp17_; -#line 2252 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp16_); -#line 2252 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp14_); -#line 2252 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp12_); -#line 2252 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp18_; -#line 2252 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp0_); -#line 2252 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 18211 "Photo.c" -} - - -static gboolean -photo_real_equals (DataSource* base, - DataSource* source) -{ - Photo * self; - gboolean result = FALSE; - Photo* photo = NULL; - Photo* _tmp0_; - Photo* _tmp1_; -#line 2256 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 2256 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((source == NULL) || IS_DATA_SOURCE (source), FALSE); -#line 2258 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO) ? ((Photo*) source) : NULL); -#line 2258 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp0_; -#line 2259 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo; -#line 2259 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ != NULL) { -#line 18236 "Photo.c" - PhotoID photo_id = {0}; - PhotoID _tmp2_ = {0}; - PhotoID other_photo_id = {0}; - Photo* _tmp3_; - PhotoID _tmp4_ = {0}; - gboolean _tmp5_ = FALSE; - Photo* _tmp6_; -#line 2260 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (self, &_tmp2_); -#line 2260 "/home/jens/Source/shotwell/src/Photo.vala" - photo_id = _tmp2_; -#line 2261 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo; -#line 2261 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (_tmp3_, &_tmp4_); -#line 2261 "/home/jens/Source/shotwell/src/Photo.vala" - other_photo_id = _tmp4_; -#line 2263 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo; -#line 2263 "/home/jens/Source/shotwell/src/Photo.vala" - if (self != _tmp6_) { -#line 18258 "Photo.c" - PhotoID _tmp7_; - gint64 _tmp8_; -#line 2263 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = photo_id; -#line 2263 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _tmp7_.id; -#line 2263 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp8_ != PHOTO_ID_INVALID; -#line 18267 "Photo.c" - } else { -#line 2263 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = FALSE; -#line 18271 "Photo.c" - } -#line 2263 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp5_) { -#line 18275 "Photo.c" - PhotoID _tmp9_; - gint64 _tmp10_; - PhotoID _tmp11_; - gint64 _tmp12_; -#line 2264 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = photo_id; -#line 2264 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_.id; -#line 2264 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = other_photo_id; -#line 2264 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_.id; -#line 2264 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (_tmp10_ != _tmp12_, "photo_id.id != other_photo_id.id"); -#line 18290 "Photo.c" - } - } -#line 2268 "/home/jens/Source/shotwell/src/Photo.vala" - result = DATA_SOURCE_CLASS (photo_parent_class)->equals (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource), TYPE_DATA_SOURCE, DataSource), source); -#line 2268 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 2268 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 18299 "Photo.c" -} - - -static void -photo_file_exif_updated (Photo* self) -{ - GFile* file = NULL; - GFile* _tmp0_; - GFileInfo* info = NULL; - GTimeVal timestamp = {0}; - GFileInfo* _tmp7_; - GTimeVal _tmp8_ = {0}; - PhotoFileInterrogator* interrogator = NULL; - PhotoFileInterrogator* _tmp9_; - DetectedPhotoInformation* detected = NULL; - DetectedPhotoInformation* _tmp14_; - gboolean _tmp15_ = FALSE; - DetectedPhotoInformation* _tmp16_; - gboolean success = FALSE; - gboolean _tmp34_; - GError * _inner_error_ = NULL; -#line 2272 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 2273 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 2273 "/home/jens/Source/shotwell/src/Photo.vala" - file = _tmp0_; -#line 2275 "/home/jens/Source/shotwell/src/Photo.vala" - info = NULL; -#line 18329 "Photo.c" - { - GFileInfo* _tmp1_ = NULL; - GFileInfo* _tmp2_; - GFileInfo* _tmp3_; -#line 2277 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = g_file_query_info (file, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_); -#line 2277 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp2_; -#line 2277 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 18340 "Photo.c" - goto __catch354_g_error; - } -#line 2277 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp1_; -#line 2277 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = NULL; -#line 2277 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 2277 "/home/jens/Source/shotwell/src/Photo.vala" - info = _tmp3_; -#line 2276 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp1_); -#line 18353 "Photo.c" - } - goto __finally354; - __catch354_g_error: - { - GError* err = NULL; - gchar* _tmp4_; - gchar* _tmp5_; - const gchar* _tmp6_; -#line 2276 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 2276 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 2280 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 2280 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_; -#line 2280 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = err->message; -#line 2280 "/home/jens/Source/shotwell/src/Photo.vala" - g_error ("Photo.vala:2280: Unable to read file information for %s: %s", _tmp5_, _tmp6_); -#line 2280 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp5_); -#line 2276 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 18378 "Photo.c" - } - __finally354: -#line 2276 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2276 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 2276 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 2276 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2276 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2276 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 18393 "Photo.c" - } -#line 2283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = info; -#line 2283 "/home/jens/Source/shotwell/src/Photo.vala" - g_file_info_get_modification_time (_tmp7_, &_tmp8_); -#line 2283 "/home/jens/Source/shotwell/src/Photo.vala" - timestamp = _tmp8_; -#line 2286 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = photo_file_interrogator_new (file, PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL); -#line 2286 "/home/jens/Source/shotwell/src/Photo.vala" - interrogator = _tmp9_; -#line 18405 "Photo.c" - { -#line 2288 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_interrogator_interrogate (interrogator, &_inner_error_); -#line 2288 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 18411 "Photo.c" - goto __catch355_g_error; - } - } - goto __finally355; - __catch355_g_error: - { - GError* err = NULL; - gchar* _tmp10_; - gchar* _tmp11_; - GError* _tmp12_; - const gchar* _tmp13_; -#line 2287 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 2287 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 2290 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = g_file_get_path (file); -#line 2290 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_; -#line 2290 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = err; -#line 2290 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_->message; -#line 2290 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:2290: Unable to interrogate photo file %s: %s", _tmp11_, _tmp13_); -#line 2290 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp11_); -#line 2287 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 18441 "Photo.c" - } - __finally355: -#line 2287 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2287 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 2287 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 2287 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 2287 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2287 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2287 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 18458 "Photo.c" - } -#line 2293 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = photo_file_interrogator_get_detected_photo_information (interrogator); -#line 2293 "/home/jens/Source/shotwell/src/Photo.vala" - detected = _tmp14_; -#line 2294 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = detected; -#line 2294 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp16_ == NULL) { -#line 2294 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = TRUE; -#line 18470 "Photo.c" - } else { -#line 2294 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = photo_file_interrogator_get_is_photo_corrupted (interrogator); -#line 18474 "Photo.c" - } -#line 2294 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp15_) { -#line 18478 "Photo.c" - gchar* _tmp17_; - gchar* _tmp18_; -#line 2295 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 2295 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp17_; -#line 2295 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("Photo.vala:2295: file_exif_updated: %s no longer an image", _tmp18_); -#line 2295 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp18_); -#line 2297 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 2297 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 2297 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 2297 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 2297 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 18499 "Photo.c" - } - { - PhotoRow* _tmp19_; -#line 2301 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = self->row; -#line 2301 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 18507 "Photo.c" - { - PhotoTable* _tmp20_; - PhotoTable* _tmp21_; - PhotoID _tmp22_ = {0}; - GFileInfo* _tmp23_; - GTimeVal _tmp24_; - glong _tmp25_; - DetectedPhotoInformation* _tmp26_; - const gchar* _tmp27_; - DetectedPhotoInformation* _tmp28_; - const gchar* _tmp29_; - DetectedPhotoInformation* _tmp30_; - const gchar* _tmp31_; - PhotoRow* _tmp32_; -#line 2302 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = photo_table_get_instance (); -#line 2302 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _tmp20_; -#line 2302 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (self, &_tmp22_); -#line 2302 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = info; -#line 2302 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = timestamp; -#line 2302 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = _tmp24_.tv_sec; -#line 2302 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = detected; -#line 2302 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = _tmp26_->md5; -#line 2302 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = detected; -#line 2302 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = _tmp28_->exif_md5; -#line 2302 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = detected; -#line 2302 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = _tmp30_->thumbnail_md5; -#line 2302 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = self->row; -#line 2302 "/home/jens/Source/shotwell/src/Photo.vala" - success = photo_table_master_exif_updated (_tmp21_, &_tmp22_, g_file_info_get_size (_tmp23_), _tmp25_, _tmp27_, _tmp29_, _tmp31_, _tmp32_); -#line 2302 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp21_); -#line 18552 "Photo.c" - } - __finally356: - { - PhotoRow* _tmp33_; -#line 2301 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = self->row; -#line 2301 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 18561 "Photo.c" - } -#line 2301 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2301 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 2301 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 2301 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 2301 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 2301 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2301 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2301 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 18579 "Photo.c" - } - } -#line 2306 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = success; -#line 2306 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp34_) { -#line 18586 "Photo.c" - Alteration* _tmp35_; - Alteration* _tmp36_; -#line 2307 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = alteration_new_from_list ("metadata:exif,metadata:md5"); -#line 2307 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = _tmp35_; -#line 2307 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp36_); -#line 2307 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp36_); -#line 18597 "Photo.c" - } -#line 2272 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 2272 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_interrogator_unref0 (interrogator); -#line 2272 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 2272 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 18607 "Photo.c" -} - - -static guint64 -photo_real_get_filesize (MediaSource* base) -{ - Photo * self; - guint64 result = 0ULL; - GError * _inner_error_ = NULL; -#line 2312 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 18619 "Photo.c" - { - PhotoRow* _tmp0_; - guint64 _tmp5_ = 0ULL; -#line 2313 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2313 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 18627 "Photo.c" - { - BackingPhotoRow* _tmp1_; - gint64 _tmp2_; -#line 2314 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->backing_photo_row; -#line 2314 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->filesize; -#line 2314 "/home/jens/Source/shotwell/src/Photo.vala" - result = (guint64) _tmp2_; -#line 18637 "Photo.c" - { - PhotoRow* _tmp3_; -#line 2313 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2313 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 18644 "Photo.c" - } -#line 2314 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 18648 "Photo.c" - } - __finally357: - { - PhotoRow* _tmp4_; -#line 2313 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2313 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 18657 "Photo.c" - } -#line 2313 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2313 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2313 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp5_; -#line 18665 "Photo.c" - } -} - - -static guint64 -photo_real_get_master_filesize (MediaSource* base) -{ - Photo * self; - guint64 result = 0ULL; - GError * _inner_error_ = NULL; -#line 2318 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 18678 "Photo.c" - { - PhotoRow* _tmp0_; - guint64 _tmp6_ = 0ULL; -#line 2319 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2319 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 18686 "Photo.c" - { - PhotoRow* _tmp1_; - BackingPhotoRow* _tmp2_; - gint64 _tmp3_; -#line 2320 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2320 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->master; -#line 2320 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_->filesize; -#line 2320 "/home/jens/Source/shotwell/src/Photo.vala" - result = (guint64) _tmp3_; -#line 18699 "Photo.c" - { - PhotoRow* _tmp4_; -#line 2319 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2319 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 18706 "Photo.c" - } -#line 2320 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 18710 "Photo.c" - } - __finally358: - { - PhotoRow* _tmp5_; -#line 2319 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 2319 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 18719 "Photo.c" - } -#line 2319 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2319 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2319 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp6_; -#line 18727 "Photo.c" - } -} - - -guint64 -photo_get_editable_filesize (Photo* self) -{ - guint64 result = 0ULL; - GError * _inner_error_ = NULL; -#line 2324 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), 0ULL); -#line 18739 "Photo.c" - { - PhotoRow* _tmp0_; - guint64 _tmp5_ = 0ULL; -#line 2325 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2325 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 18747 "Photo.c" - { - BackingPhotoRow* _tmp1_; - gint64 _tmp2_; -#line 2326 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->editable; -#line 2326 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->filesize; -#line 2326 "/home/jens/Source/shotwell/src/Photo.vala" - result = (guint64) _tmp2_; -#line 18757 "Photo.c" - { - PhotoRow* _tmp3_; -#line 2325 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2325 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 18764 "Photo.c" - } -#line 2326 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 18768 "Photo.c" - } - __finally359: - { - PhotoRow* _tmp4_; -#line 2325 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2325 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 18777 "Photo.c" - } -#line 2325 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2325 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2325 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp5_; -#line 18785 "Photo.c" - } -} - - -static time_t -photo_real_get_exposure_time (Dateable* base) -{ - Photo * self; - time_t result = 0; - time_t _tmp0_; -#line 2330 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 2331 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->cached_exposure_time; -#line 2331 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp0_; -#line 2331 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 18804 "Photo.c" -} - - -static gchar* -photo_real_get_basename (MediaSource* base) -{ - Photo * self; - gchar* result = NULL; - GError * _inner_error_ = NULL; -#line 2334 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 18816 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2335 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2335 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 18823 "Photo.c" - { - const gchar* _tmp1_; - gchar* _tmp2_; -#line 2336 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->file_title; -#line 2336 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 2336 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_; -#line 18833 "Photo.c" - { - PhotoRow* _tmp3_; -#line 2335 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2335 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 18840 "Photo.c" - } -#line 2336 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 18844 "Photo.c" - } - __finally360: - { - PhotoRow* _tmp4_; -#line 2335 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2335 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 18853 "Photo.c" - } -#line 2335 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2335 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2335 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 18861 "Photo.c" - } -} - - -static gchar* -photo_real_get_title (MediaSource* base) -{ - Photo * self; - gchar* result = NULL; - GError * _inner_error_ = NULL; -#line 2340 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 18874 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2341 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 18881 "Photo.c" - { - PhotoRow* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; -#line 2342 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2342 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->title; -#line 2342 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 2342 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 18894 "Photo.c" - { - PhotoRow* _tmp4_; -#line 2341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2341 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 18901 "Photo.c" - } -#line 2342 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 18905 "Photo.c" - } - __finally361: - { - PhotoRow* _tmp5_; -#line 2341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 2341 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 18914 "Photo.c" - } -#line 2341 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2341 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2341 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 18922 "Photo.c" - } -} - - -static gchar* -photo_real_get_comment (MediaSource* base) -{ - Photo * self; - gchar* result = NULL; - GError * _inner_error_ = NULL; -#line 2346 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 18935 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2347 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2347 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 18942 "Photo.c" - { - PhotoRow* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; -#line 2348 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2348 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->comment; -#line 2348 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 2348 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 18955 "Photo.c" - { - PhotoRow* _tmp4_; -#line 2347 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2347 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 18962 "Photo.c" - } -#line 2348 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 18966 "Photo.c" - } - __finally362: - { - PhotoRow* _tmp5_; -#line 2347 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 2347 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 18975 "Photo.c" - } -#line 2347 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2347 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2347 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 18983 "Photo.c" - } -} - - -static void -photo_real_set_title (MediaSource* base, - const gchar* title) -{ - Photo * self; - gchar* new_title = NULL; - gchar* _tmp0_; - gboolean committed = FALSE; - gboolean _tmp16_; - GError * _inner_error_ = NULL; -#line 2352 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 2353 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = media_source_prep_title (title); -#line 2353 "/home/jens/Source/shotwell/src/Photo.vala" - new_title = _tmp0_; -#line 2355 "/home/jens/Source/shotwell/src/Photo.vala" - committed = FALSE; -#line 19006 "Photo.c" - { - PhotoRow* _tmp1_; -#line 2356 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2356 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 19013 "Photo.c" - { - const gchar* _tmp2_; - PhotoRow* _tmp3_; - const gchar* _tmp4_; - PhotoTable* _tmp6_; - PhotoTable* _tmp7_; - PhotoRow* _tmp8_; - PhotoID _tmp9_; - const gchar* _tmp10_; - gboolean _tmp11_; -#line 2357 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = new_title; -#line 2357 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2357 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->title; -#line 2357 "/home/jens/Source/shotwell/src/Photo.vala" - if (g_strcmp0 (_tmp2_, _tmp4_) == 0) { -#line 19032 "Photo.c" - { - PhotoRow* _tmp5_; -#line 2356 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 2356 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 19039 "Photo.c" - } -#line 2358 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (new_title); -#line 2358 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 19045 "Photo.c" - } -#line 2360 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo_table_get_instance (); -#line 2360 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_; -#line 2360 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = self->row; -#line 2360 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_->photo_id; -#line 2360 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = new_title; -#line 2360 "/home/jens/Source/shotwell/src/Photo.vala" - committed = photo_table_set_title (_tmp7_, &_tmp9_, _tmp10_); -#line 2360 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp7_); -#line 2361 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = committed; -#line 2361 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp11_) { -#line 19065 "Photo.c" - PhotoRow* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; -#line 2362 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = self->row; -#line 2362 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = new_title; -#line 2362 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = g_strdup (_tmp13_); -#line 2362 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp12_->title); -#line 2362 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_->title = _tmp14_; -#line 19079 "Photo.c" - } - } - __finally363: - { - PhotoRow* _tmp15_; -#line 2356 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = self->row; -#line 2356 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 19089 "Photo.c" - } -#line 2356 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2356 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (new_title); -#line 2356 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2356 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2356 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 19101 "Photo.c" - } - } -#line 2365 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = committed; -#line 2365 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp16_) { -#line 19108 "Photo.c" - Alteration* _tmp17_; - Alteration* _tmp18_; -#line 2366 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = alteration_new ("metadata", "name"); -#line 2366 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp17_; -#line 2366 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp18_); -#line 2366 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp18_); -#line 19119 "Photo.c" - } -#line 2352 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (new_title); -#line 19123 "Photo.c" -} - - -static gboolean -photo_real_set_comment (MediaSource* base, - const gchar* comment) -{ - Photo * self; - gboolean result = FALSE; - gchar* new_comment = NULL; - gchar* _tmp0_; - gboolean committed = FALSE; - gboolean _tmp17_; - GError * _inner_error_ = NULL; -#line 2369 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 2370 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = media_source_prep_comment (comment); -#line 2370 "/home/jens/Source/shotwell/src/Photo.vala" - new_comment = _tmp0_; -#line 2372 "/home/jens/Source/shotwell/src/Photo.vala" - committed = FALSE; -#line 19146 "Photo.c" - { - PhotoRow* _tmp1_; -#line 2373 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2373 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 19153 "Photo.c" - { - const gchar* _tmp2_; - PhotoRow* _tmp3_; - const gchar* _tmp4_; - PhotoTable* _tmp6_; - PhotoTable* _tmp7_; - PhotoRow* _tmp8_; - PhotoID _tmp9_; - const gchar* _tmp10_; - gboolean _tmp11_; -#line 2374 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = new_comment; -#line 2374 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2374 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->comment; -#line 2374 "/home/jens/Source/shotwell/src/Photo.vala" - if (g_strcmp0 (_tmp2_, _tmp4_) == 0) { -#line 2375 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 19174 "Photo.c" - { - PhotoRow* _tmp5_; -#line 2373 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 2373 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 19181 "Photo.c" - } -#line 2375 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (new_comment); -#line 2375 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 19187 "Photo.c" - } -#line 2377 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo_table_get_instance (); -#line 2377 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_; -#line 2377 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = self->row; -#line 2377 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_->photo_id; -#line 2377 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = new_comment; -#line 2377 "/home/jens/Source/shotwell/src/Photo.vala" - committed = photo_table_set_comment (_tmp7_, &_tmp9_, _tmp10_); -#line 2377 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp7_); -#line 2378 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = committed; -#line 2378 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp11_) { -#line 19207 "Photo.c" - PhotoRow* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; -#line 2379 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = self->row; -#line 2379 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = new_comment; -#line 2379 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = g_strdup (_tmp13_); -#line 2379 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp12_->comment); -#line 2379 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_->comment = _tmp14_; -#line 19221 "Photo.c" - } - } - __finally364: - { - PhotoRow* _tmp15_; -#line 2373 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = self->row; -#line 2373 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 19231 "Photo.c" - } -#line 2373 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19235 "Photo.c" - gboolean _tmp16_ = FALSE; -#line 2373 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (new_comment); -#line 2373 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2373 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2373 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp16_; -#line 19245 "Photo.c" - } - } -#line 2382 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = committed; -#line 2382 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp17_) { -#line 19252 "Photo.c" - Alteration* _tmp18_; - Alteration* _tmp19_; -#line 2383 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = alteration_new ("metadata", "comment"); -#line 2383 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = _tmp18_; -#line 2383 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp19_); -#line 2383 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp19_); -#line 19263 "Photo.c" - } -#line 2385 "/home/jens/Source/shotwell/src/Photo.vala" - result = committed; -#line 2385 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (new_comment); -#line 2385 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 19271 "Photo.c" -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 2395 "/home/jens/Source/shotwell/src/Photo.vala" - return self ? g_error_copy (self) : NULL; -#line 19280 "Photo.c" -} - - -void -photo_set_import_id (Photo* self, - ImportID* import_id) -{ - GError* dberr = NULL; - GError* _tmp13_; - GError * _inner_error_ = NULL; -#line 2388 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 2388 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (import_id != NULL); -#line 2389 "/home/jens/Source/shotwell/src/Photo.vala" - dberr = NULL; -#line 19297 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2390 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2390 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 19304 "Photo.c" - { - { - PhotoTable* _tmp1_; - PhotoTable* _tmp2_; - PhotoRow* _tmp3_; - PhotoID _tmp4_; - ImportID _tmp5_; - PhotoRow* _tmp7_; - ImportID _tmp8_; -#line 2392 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_table_get_instance (); -#line 2392 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 2392 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2392 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->photo_id; -#line 2392 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = *import_id; -#line 2392 "/home/jens/Source/shotwell/src/Photo.vala" - photo_table_set_import_id (_tmp2_, &_tmp4_, &_tmp5_, &_inner_error_); -#line 2392 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp2_); -#line 2392 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2392 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 19332 "Photo.c" - goto __catch366_database_error; - } - { - PhotoRow* _tmp6_; -#line 2390 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->row; -#line 2390 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 19341 "Photo.c" - } -#line 2392 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (dberr); -#line 2392 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2392 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2392 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 19351 "Photo.c" - } -#line 2393 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = self->row; -#line 2393 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = *import_id; -#line 2393 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_->import_id = _tmp8_; -#line 19359 "Photo.c" - } - goto __finally366; - __catch366_database_error: - { - GError* err = NULL; - GError* _tmp9_; - GError* _tmp10_; -#line 2391 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 2391 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 2395 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = err; -#line 2395 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _g_error_copy0 (_tmp9_); -#line 2395 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (dberr); -#line 2395 "/home/jens/Source/shotwell/src/Photo.vala" - dberr = _tmp10_; -#line 2391 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 19381 "Photo.c" - } - __finally366: -#line 2391 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19386 "Photo.c" - { - PhotoRow* _tmp11_; -#line 2390 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = self->row; -#line 2390 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 19393 "Photo.c" - } -#line 2391 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (dberr); -#line 2391 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2391 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2391 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 19403 "Photo.c" - } - } - __finally365: - { - PhotoRow* _tmp12_; -#line 2390 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = self->row; -#line 2390 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 19413 "Photo.c" - } -#line 2390 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2390 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (dberr); -#line 2390 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2390 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2390 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 19425 "Photo.c" - } - } -#line 2399 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = dberr; -#line 2399 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp13_ == NULL) { -#line 19432 "Photo.c" - Alteration* _tmp14_; - Alteration* _tmp15_; -#line 2400 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = alteration_new ("metadata", "import-id"); -#line 2400 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_; -#line 2400 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp15_); -#line 2400 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp15_); -#line 19443 "Photo.c" - } else { - gchar* _tmp16_; - gchar* _tmp17_; - GError* _tmp18_; - const gchar* _tmp19_; -#line 2402 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 2402 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _tmp16_; -#line 2402 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = dberr; -#line 2402 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = _tmp18_->message; -#line 2402 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:2402: Unable to write import ID for %s: %s", _tmp17_, _tmp19_); -#line 2402 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp17_); -#line 19461 "Photo.c" - } -#line 2388 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (dberr); -#line 19465 "Photo.c" -} - - -void -photo_set_title_persistent (Photo* self, - const gchar* title, - GError** error) -{ - PhotoFileReader* source = NULL; - PhotoFileReader* _tmp0_; - PhotoFileReader* _tmp1_; - PhotoMetadata* metadata = NULL; - PhotoFileReader* _tmp5_; - PhotoMetadata* _tmp6_; - PhotoMetadata* _tmp7_; - PhotoFileMetadataWriter* writer = NULL; - PhotoFileReader* _tmp8_; - PhotoFileMetadataWriter* _tmp9_; - PhotoFileReader* _tmp10_; - GFile* _tmp11_; - GFile* _tmp12_; - GError * _inner_error_ = NULL; -#line 2405 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 2406 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_source_reader (self); -#line 2406 "/home/jens/Source/shotwell/src/Photo.vala" - source = _tmp0_; -#line 2409 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = source; -#line 2409 "/home/jens/Source/shotwell/src/Photo.vala" - if (!photo_file_format_can_write_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)))) { -#line 19498 "Photo.c" - PhotoFileReader* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 2410 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = source; -#line 2410 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 2410 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 2410 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:2410: No photo file writer available for %s", _tmp4_); -#line 2410 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp4_); -#line 2412 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), title); -#line 2414 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (source); -#line 2414 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 19518 "Photo.c" - } -#line 2417 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = source; -#line 2417 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo_file_reader_read_metadata (_tmp5_, &_inner_error_); -#line 2417 "/home/jens/Source/shotwell/src/Photo.vala" - metadata = _tmp6_; -#line 2417 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2417 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2417 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (source); -#line 2417 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 19534 "Photo.c" - } -#line 2418 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = metadata; -#line 2418 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_title (_tmp7_, title, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 2420 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = source; -#line 2420 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = photo_file_reader_create_metadata_writer (_tmp8_, &_inner_error_); -#line 2420 "/home/jens/Source/shotwell/src/Photo.vala" - writer = _tmp9_; -#line 2420 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2420 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2420 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 2420 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (source); -#line 2420 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 19556 "Photo.c" - } -#line 2421 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = source; -#line 2421 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 2421 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_; -#line 2421 "/home/jens/Source/shotwell/src/Photo.vala" - library_monitor_blacklist_file (_tmp12_, "Photo.set_persistent_title"); -#line 2421 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp12_); -#line 19568 "Photo.c" - { - PhotoFileMetadataWriter* _tmp13_; - PhotoMetadata* _tmp14_; -#line 2423 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = writer; -#line 2423 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = metadata; -#line 2423 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_metadata_writer_write_metadata (_tmp13_, _tmp14_, &_inner_error_); -#line 2423 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19580 "Photo.c" - goto __finally367; - } - } - __finally367: - { - PhotoFileReader* _tmp15_; - GFile* _tmp16_; - GFile* _tmp17_; -#line 2425 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = source; -#line 2425 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 2425 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _tmp16_; -#line 2425 "/home/jens/Source/shotwell/src/Photo.vala" - library_monitor_unblacklist_file (_tmp17_); -#line 2425 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp17_); -#line 19599 "Photo.c" - } -#line 2422 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2422 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2422 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 2422 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 2422 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (source); -#line 2422 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 19613 "Photo.c" - } -#line 2428 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), title); -#line 2430 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_exif_updated (self); -#line 2405 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 2405 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 2405 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (source); -#line 19625 "Photo.c" -} - - -void -photo_set_comment_persistent (Photo* self, - const gchar* comment, - GError** error) -{ - PhotoFileReader* source = NULL; - PhotoFileReader* _tmp0_; - PhotoFileReader* _tmp1_; - PhotoMetadata* metadata = NULL; - PhotoFileReader* _tmp5_; - PhotoMetadata* _tmp6_; - PhotoMetadata* _tmp7_; - PhotoFileMetadataWriter* writer = NULL; - PhotoFileReader* _tmp8_; - PhotoFileMetadataWriter* _tmp9_; - PhotoFileReader* _tmp10_; - GFile* _tmp11_; - GFile* _tmp12_; - GError * _inner_error_ = NULL; -#line 2433 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 2434 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_source_reader (self); -#line 2434 "/home/jens/Source/shotwell/src/Photo.vala" - source = _tmp0_; -#line 2437 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = source; -#line 2437 "/home/jens/Source/shotwell/src/Photo.vala" - if (!photo_file_format_can_write_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)))) { -#line 19658 "Photo.c" - PhotoFileReader* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 2438 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = source; -#line 2438 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 2438 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 2438 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:2438: No photo file writer available for %s", _tmp4_); -#line 2438 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp4_); -#line 2440 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), comment); -#line 2442 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (source); -#line 2442 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 19678 "Photo.c" - } -#line 2445 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = source; -#line 2445 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo_file_reader_read_metadata (_tmp5_, &_inner_error_); -#line 2445 "/home/jens/Source/shotwell/src/Photo.vala" - metadata = _tmp6_; -#line 2445 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2445 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2445 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (source); -#line 2445 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 19694 "Photo.c" - } -#line 2446 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = metadata; -#line 2446 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_comment (_tmp7_, comment, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 2448 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = source; -#line 2448 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = photo_file_reader_create_metadata_writer (_tmp8_, &_inner_error_); -#line 2448 "/home/jens/Source/shotwell/src/Photo.vala" - writer = _tmp9_; -#line 2448 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2448 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2448 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 2448 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (source); -#line 2448 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 19716 "Photo.c" - } -#line 2449 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = source; -#line 2449 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 2449 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_; -#line 2449 "/home/jens/Source/shotwell/src/Photo.vala" - library_monitor_blacklist_file (_tmp12_, "Photo.set_persistent_comment"); -#line 2449 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp12_); -#line 19728 "Photo.c" - { - PhotoFileMetadataWriter* _tmp13_; - PhotoMetadata* _tmp14_; -#line 2451 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = writer; -#line 2451 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = metadata; -#line 2451 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_metadata_writer_write_metadata (_tmp13_, _tmp14_, &_inner_error_); -#line 2451 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19740 "Photo.c" - goto __finally368; - } - } - __finally368: - { - PhotoFileReader* _tmp15_; - GFile* _tmp16_; - GFile* _tmp17_; -#line 2453 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = source; -#line 2453 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 2453 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _tmp16_; -#line 2453 "/home/jens/Source/shotwell/src/Photo.vala" - library_monitor_unblacklist_file (_tmp17_); -#line 2453 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp17_); -#line 19759 "Photo.c" - } -#line 2450 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2450 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2450 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 2450 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 2450 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (source); -#line 2450 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 19773 "Photo.c" - } -#line 2456 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_set_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), comment); -#line 2458 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_exif_updated (self); -#line 2433 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 2433 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 2433 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (source); -#line 19785 "Photo.c" -} - - -static void -photo_real_set_exposure_time (Dateable* base, - time_t time) -{ - Photo * self; - gboolean committed = FALSE; - gboolean _tmp8_; - GError * _inner_error_ = NULL; -#line 2461 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 19799 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2463 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2463 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 19806 "Photo.c" - { - PhotoTable* _tmp1_; - PhotoTable* _tmp2_; - PhotoRow* _tmp3_; - PhotoID _tmp4_; - gboolean _tmp5_; -#line 2464 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_table_get_instance (); -#line 2464 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 2464 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2464 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->photo_id; -#line 2464 "/home/jens/Source/shotwell/src/Photo.vala" - committed = photo_table_set_exposure_time (_tmp2_, &_tmp4_, time); -#line 2464 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp2_); -#line 2465 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = committed; -#line 2465 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp5_) { -#line 19829 "Photo.c" - PhotoRow* _tmp6_; -#line 2466 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->row; -#line 2466 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_->exposure_time = time; -#line 2467 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->cached_exposure_time = time; -#line 19837 "Photo.c" - } - } - __finally369: - { - PhotoRow* _tmp7_; -#line 2463 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = self->row; -#line 2463 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 19847 "Photo.c" - } -#line 2463 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2463 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2463 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2463 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 19857 "Photo.c" - } - } -#line 2471 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = committed; -#line 2471 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp8_) { -#line 19864 "Photo.c" - Alteration* _tmp9_; - Alteration* _tmp10_; -#line 2472 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = alteration_new ("metadata", "exposure-time"); -#line 2472 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_; -#line 2472 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp10_); -#line 2472 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp10_); -#line 19875 "Photo.c" - } -} - - -void -photo_set_exposure_time_persistent (Photo* self, - time_t time, - GError** error) -{ - PhotoFileReader* source = NULL; - PhotoFileReader* _tmp0_; - PhotoFileReader* _tmp1_; - PhotoMetadata* metadata = NULL; - PhotoFileReader* _tmp5_; - PhotoMetadata* _tmp6_; - PhotoMetadata* _tmp7_; - MetadataDateTime* _tmp8_; - MetadataDateTime* _tmp9_; - PhotoFileMetadataWriter* writer = NULL; - PhotoFileReader* _tmp10_; - PhotoFileMetadataWriter* _tmp11_; - PhotoFileReader* _tmp12_; - GFile* _tmp13_; - GFile* _tmp14_; - GError * _inner_error_ = NULL; -#line 2475 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 2476 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_source_reader (self); -#line 2476 "/home/jens/Source/shotwell/src/Photo.vala" - source = _tmp0_; -#line 2479 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = source; -#line 2479 "/home/jens/Source/shotwell/src/Photo.vala" - if (!photo_file_format_can_write_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)))) { -#line 19911 "Photo.c" - PhotoFileReader* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 2480 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = source; -#line 2480 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 2480 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 2480 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:2480: No photo file writer available for %s", _tmp4_); -#line 2480 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp4_); -#line 2482 "/home/jens/Source/shotwell/src/Photo.vala" - dateable_set_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATEABLE, Dateable), time); -#line 2484 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (source); -#line 2484 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 19931 "Photo.c" - } -#line 2487 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = source; -#line 2487 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo_file_reader_read_metadata (_tmp5_, &_inner_error_); -#line 2487 "/home/jens/Source/shotwell/src/Photo.vala" - metadata = _tmp6_; -#line 2487 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2487 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2487 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (source); -#line 2487 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 19947 "Photo.c" - } -#line 2488 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = metadata; -#line 2488 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = metadata_date_time_new (time); -#line 2488 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_; -#line 2488 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_exposure_date_time (_tmp7_, _tmp9_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 2488 "/home/jens/Source/shotwell/src/Photo.vala" - _metadata_date_time_unref0 (_tmp9_); -#line 2490 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = source; -#line 2490 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = photo_file_reader_create_metadata_writer (_tmp10_, &_inner_error_); -#line 2490 "/home/jens/Source/shotwell/src/Photo.vala" - writer = _tmp11_; -#line 2490 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2490 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2490 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 2490 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (source); -#line 2490 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 19975 "Photo.c" - } -#line 2491 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = source; -#line 2491 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 2491 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _tmp13_; -#line 2491 "/home/jens/Source/shotwell/src/Photo.vala" - library_monitor_blacklist_file (_tmp14_, "Photo.set_exposure_time_persistent"); -#line 2491 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp14_); -#line 19987 "Photo.c" - { - PhotoFileMetadataWriter* _tmp15_; - PhotoMetadata* _tmp16_; -#line 2493 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = writer; -#line 2493 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = metadata; -#line 2493 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_metadata_writer_write_metadata (_tmp15_, _tmp16_, &_inner_error_); -#line 2493 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19999 "Photo.c" - goto __finally370; - } - } - __finally370: - { - PhotoFileReader* _tmp17_; - GFile* _tmp18_; - GFile* _tmp19_; -#line 2495 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = source; -#line 2495 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 2495 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = _tmp18_; -#line 2495 "/home/jens/Source/shotwell/src/Photo.vala" - library_monitor_unblacklist_file (_tmp19_); -#line 2495 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp19_); -#line 20018 "Photo.c" - } -#line 2492 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2492 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2492 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 2492 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 2492 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (source); -#line 2492 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 20032 "Photo.c" - } -#line 2498 "/home/jens/Source/shotwell/src/Photo.vala" - dateable_set_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATEABLE, Dateable), time); -#line 2500 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_exif_updated (self); -#line 2475 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 2475 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 2475 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (source); -#line 20044 "Photo.c" -} - - -/** - * @brief Returns the width and height of the Photo after various - * arbitrary stages of the pipeline have been applied in - * the same order they're applied in get_pixbuf_with_options. - * With no argument passed, it works exactly like the - * previous incarnation did. - * - * @param disallowed_steps Which pipeline steps should NOT - * be taken into account when computing image dimensions - * (matching the convention set by get_pixbuf_with_options()). - * Pipeline steps that do not affect the image geometry are - * ignored. - */ -static void -photo_real_get_dimensions (MediaSource* base, - PhotoException disallowed_steps, - Dimensions* result) -{ - Photo * self; - Dimensions returned_dims = {0}; - Dimensions _tmp0_ = {0}; -#line 2516 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 2518 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_raw_dimensions (self, &_tmp0_); -#line 2518 "/home/jens/Source/shotwell/src/Photo.vala" - returned_dims = _tmp0_; -#line 2521 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_exception_allows (disallowed_steps, PHOTO_EXCEPTION_ORIENTATION)) { -#line 20077 "Photo.c" - Orientation ori_tmp = 0; - Orientation _tmp1_; -#line 2522 "/home/jens/Source/shotwell/src/Photo.vala" - ori_tmp = photo_get_orientation (self); -#line 2525 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = ori_tmp; -#line 2525 "/home/jens/Source/shotwell/src/Photo.vala" - switch (_tmp1_) { -#line 2525 "/home/jens/Source/shotwell/src/Photo.vala" - case ORIENTATION_LEFT_TOP: -#line 2525 "/home/jens/Source/shotwell/src/Photo.vala" - case ORIENTATION_RIGHT_TOP: -#line 2525 "/home/jens/Source/shotwell/src/Photo.vala" - case ORIENTATION_LEFT_BOTTOM: -#line 2525 "/home/jens/Source/shotwell/src/Photo.vala" - case ORIENTATION_RIGHT_BOTTOM: -#line 20094 "Photo.c" - { - gint width_tmp = 0; - Dimensions _tmp2_; - gint _tmp3_; - Dimensions _tmp4_; - gint _tmp5_; - gint _tmp6_; -#line 2531 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = returned_dims; -#line 2531 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_.width; -#line 2531 "/home/jens/Source/shotwell/src/Photo.vala" - width_tmp = _tmp3_; -#line 2533 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = returned_dims; -#line 2533 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_.height; -#line 2533 "/home/jens/Source/shotwell/src/Photo.vala" - returned_dims.width = _tmp5_; -#line 2534 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = width_tmp; -#line 2534 "/home/jens/Source/shotwell/src/Photo.vala" - returned_dims.height = _tmp6_; -#line 2535 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 20120 "Photo.c" - } - default: - { -#line 2539 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 20126 "Photo.c" - } - } - } -#line 2544 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_exception_allows (disallowed_steps, PHOTO_EXCEPTION_STRAIGHTEN)) { -#line 20132 "Photo.c" - gdouble x_size = 0.0; - gdouble y_size = 0.0; - gdouble angle = 0.0; - gdouble _tmp7_ = 0.0; - Dimensions _tmp8_; - gint _tmp9_; - Dimensions _tmp10_; - gint _tmp11_; - gdouble _tmp12_; - gdouble _tmp13_ = 0.0; - gdouble _tmp14_ = 0.0; - gdouble _tmp15_; - gdouble _tmp16_; -#line 2546 "/home/jens/Source/shotwell/src/Photo.vala" - angle = 0.0; -#line 2548 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_straighten (self, &_tmp7_); -#line 2548 "/home/jens/Source/shotwell/src/Photo.vala" - angle = _tmp7_; -#line 2550 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = returned_dims; -#line 2550 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_.width; -#line 2550 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = returned_dims; -#line 2550 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_.height; -#line 2550 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = angle; -#line 2550 "/home/jens/Source/shotwell/src/Photo.vala" - compute_arb_rotated_size ((gdouble) _tmp9_, (gdouble) _tmp11_, _tmp12_, &_tmp13_, &_tmp14_); -#line 2550 "/home/jens/Source/shotwell/src/Photo.vala" - x_size = _tmp13_; -#line 2550 "/home/jens/Source/shotwell/src/Photo.vala" - y_size = _tmp14_; -#line 2552 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = x_size; -#line 2552 "/home/jens/Source/shotwell/src/Photo.vala" - returned_dims.width = (gint) _tmp15_; -#line 2553 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = y_size; -#line 2553 "/home/jens/Source/shotwell/src/Photo.vala" - returned_dims.height = (gint) _tmp16_; -#line 20176 "Photo.c" - } -#line 2557 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_exception_allows (disallowed_steps, PHOTO_EXCEPTION_CROP)) { -#line 20180 "Photo.c" - Box crop = {0}; - Box _tmp17_ = {0}; - gboolean _tmp18_; -#line 2559 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = photo_get_crop (self, &_tmp17_, disallowed_steps); -#line 2559 "/home/jens/Source/shotwell/src/Photo.vala" - crop = _tmp17_; -#line 2559 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp18_) { -#line 20190 "Photo.c" - Dimensions _tmp19_ = {0}; -#line 2560 "/home/jens/Source/shotwell/src/Photo.vala" - box_get_dimensions (&crop, &_tmp19_); -#line 2560 "/home/jens/Source/shotwell/src/Photo.vala" - returned_dims = _tmp19_; -#line 20196 "Photo.c" - } - } -#line 2563 "/home/jens/Source/shotwell/src/Photo.vala" - *result = returned_dims; -#line 2563 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 20203 "Photo.c" -} - - -static void -photo_locked_create_adjustments_from_data (Photo* self) -{ - PixelTransformationBundle* _tmp0_; - KeyValueMap* map = NULL; - KeyValueMap* _tmp1_; - KeyValueMap* _tmp2_; - PixelTransformationBundle* _tmp6_; - PixelTransformer* _tmp7_; -#line 2567 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 2568 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = pixel_transformation_bundle_new (); -#line 2568 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (self->priv->adjustments); -#line 2568 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->adjustments = _tmp0_; -#line 2570 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_get_transformation (self, "adjustments"); -#line 2570 "/home/jens/Source/shotwell/src/Photo.vala" - map = _tmp1_; -#line 2571 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = map; -#line 2571 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ == NULL) { -#line 20232 "Photo.c" - PixelTransformationBundle* _tmp3_; -#line 2572 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->adjustments; -#line 2572 "/home/jens/Source/shotwell/src/Photo.vala" - pixel_transformation_bundle_set_to_identity (_tmp3_); -#line 20238 "Photo.c" - } else { - PixelTransformationBundle* _tmp4_; - KeyValueMap* _tmp5_; -#line 2574 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->priv->adjustments; -#line 2574 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = map; -#line 2574 "/home/jens/Source/shotwell/src/Photo.vala" - pixel_transformation_bundle_load (_tmp4_, _tmp5_); -#line 20248 "Photo.c" - } -#line 2576 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->priv->adjustments; -#line 2576 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = pixel_transformation_bundle_generate_transformer (_tmp6_); -#line 2576 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (self->priv->transformer); -#line 2576 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->transformer = _tmp7_; -#line 2567 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (map); -#line 20260 "Photo.c" -} - - -PixelTransformationBundle* -photo_get_color_adjustments (Photo* self) -{ - PixelTransformationBundle* result = NULL; - GError * _inner_error_ = NULL; -#line 2580 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 20271 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2581 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2581 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 20278 "Photo.c" - { - PixelTransformationBundle* _tmp1_; - PixelTransformationBundle* _tmp2_; - PixelTransformationBundle* _tmp3_; -#line 2582 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->adjustments; -#line 2582 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ == NULL) { -#line 2583 "/home/jens/Source/shotwell/src/Photo.vala" - photo_locked_create_adjustments_from_data (self); -#line 20289 "Photo.c" - } -#line 2585 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->adjustments; -#line 2585 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = pixel_transformation_bundle_copy (_tmp2_); -#line 2585 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 20297 "Photo.c" - { - PhotoRow* _tmp4_; -#line 2581 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2581 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 20304 "Photo.c" - } -#line 2585 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 20308 "Photo.c" - } - __finally371: - { - PhotoRow* _tmp5_; -#line 2581 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 2581 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 20317 "Photo.c" - } -#line 2581 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2581 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2581 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 20325 "Photo.c" - } -} - - -PixelTransformer* -photo_get_pixel_transformer (Photo* self) -{ - PixelTransformer* result = NULL; - GError * _inner_error_ = NULL; -#line 2589 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 20337 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2590 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2590 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 20344 "Photo.c" - { - PixelTransformer* _tmp1_; - PixelTransformer* _tmp2_; - PixelTransformer* _tmp3_; -#line 2591 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->transformer; -#line 2591 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ == NULL) { -#line 2592 "/home/jens/Source/shotwell/src/Photo.vala" - photo_locked_create_adjustments_from_data (self); -#line 20355 "Photo.c" - } -#line 2594 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->transformer; -#line 2594 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = pixel_transformer_copy (_tmp2_); -#line 2594 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 20363 "Photo.c" - { - PhotoRow* _tmp4_; -#line 2590 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2590 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 20370 "Photo.c" - } -#line 2594 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 20374 "Photo.c" - } - __finally372: - { - PhotoRow* _tmp5_; -#line 2590 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 2590 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 20383 "Photo.c" - } -#line 2590 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2590 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2590 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 20391 "Photo.c" - } -} - - -gboolean -photo_has_color_adjustments (Photo* self) -{ - gboolean result = FALSE; -#line 2598 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 2599 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo_has_transformation (self, "adjustments"); -#line 2599 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 20406 "Photo.c" -} - - -PixelTransformation* -photo_get_color_adjustment (Photo* self, - PixelTransformationType type) -{ - PixelTransformation* result = NULL; - PixelTransformationBundle* _tmp0_; - PixelTransformationBundle* _tmp1_; - PixelTransformation* _tmp2_; - PixelTransformation* _tmp3_; -#line 2602 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 2603 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_color_adjustments (self); -#line 2603 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 2603 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = pixel_transformation_bundle_get_transformation (_tmp1_, type); -#line 2603 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_; -#line 2603 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (_tmp1_); -#line 2603 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 2603 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 20435 "Photo.c" -} - - -void -photo_set_color_adjustments (Photo* self, - PixelTransformationBundle* new_adjustments) -{ - KeyValueMap* map = NULL; - KeyValueMap* _tmp5_; - gboolean committed = FALSE; - gboolean _tmp28_; - GError * _inner_error_ = NULL; -#line 2606 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 2606 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PIXEL_TRANSFORMATION_BUNDLE (new_adjustments)); -#line 2609 "/home/jens/Source/shotwell/src/Photo.vala" - if (pixel_transformation_bundle_is_identity (new_adjustments)) { -#line 20454 "Photo.c" - gboolean _result_ = FALSE; - gboolean _tmp2_; - { - PhotoRow* _tmp0_; -#line 2611 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2611 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 20463 "Photo.c" - { -#line 2612 "/home/jens/Source/shotwell/src/Photo.vala" - _result_ = photo_remove_transformation (self, "adjustments"); -#line 2613 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (self->priv->adjustments); -#line 2613 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->adjustments = NULL; -#line 2614 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (self->priv->transformer); -#line 2614 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->transformer = NULL; -#line 20475 "Photo.c" - } - __finally373: - { - PhotoRow* _tmp1_; -#line 2611 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2611 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 20484 "Photo.c" - } -#line 2611 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2611 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2611 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2611 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 20494 "Photo.c" - } - } -#line 2617 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _result_; -#line 2617 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_) { -#line 20501 "Photo.c" - Alteration* _tmp3_; - Alteration* _tmp4_; -#line 2618 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = alteration_new ("image", "color-adjustments"); -#line 2618 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 2618 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp4_); -#line 2618 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp4_); -#line 20512 "Photo.c" - } -#line 2620 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 20516 "Photo.c" - } -#line 2624 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = pixel_transformation_bundle_save (new_adjustments, "adjustments"); -#line 2624 "/home/jens/Source/shotwell/src/Photo.vala" - map = _tmp5_; -#line 20522 "Photo.c" - { - PhotoRow* _tmp6_; -#line 2627 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->row; -#line 2627 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 20529 "Photo.c" - { - gboolean _tmp7_ = FALSE; - PixelTransformer* _tmp8_; - KeyValueMap* _tmp26_; -#line 2628 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = self->priv->transformer; -#line 2628 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp8_ == NULL) { -#line 2628 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = TRUE; -#line 20540 "Photo.c" - } else { - PixelTransformationBundle* _tmp9_; -#line 2628 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = self->priv->adjustments; -#line 2628 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp9_ == NULL; -#line 20547 "Photo.c" - } -#line 2628 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp7_) { -#line 20551 "Photo.c" - PixelTransformationBundle* _tmp10_; - PixelTransformer* _tmp11_; -#line 2630 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = pixel_transformation_bundle_copy (new_adjustments); -#line 2630 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (self->priv->adjustments); -#line 2630 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->adjustments = _tmp10_; -#line 2631 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = pixel_transformation_bundle_generate_transformer (new_adjustments); -#line 2631 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (self->priv->transformer); -#line 2631 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->transformer = _tmp11_; -#line 20566 "Photo.c" - } else { - PixelTransformationBundle* _tmp25_; - { - GeeIterator* _transformation_it = NULL; - GeeIterable* _tmp12_; - GeeIterable* _tmp13_; - GeeIterator* _tmp14_; - GeeIterator* _tmp15_; -#line 2634 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = pixel_transformation_bundle_get_transformations (new_adjustments); -#line 2634 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_; -#line 2634 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = gee_iterable_iterator (_tmp13_); -#line 2634 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_; -#line 2634 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp13_); -#line 2634 "/home/jens/Source/shotwell/src/Photo.vala" - _transformation_it = _tmp15_; -#line 2634 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 20589 "Photo.c" - GeeIterator* _tmp16_; - PixelTransformation* transformation = NULL; - GeeIterator* _tmp17_; - gpointer _tmp18_; - PixelTransformer* _tmp19_; - PixelTransformationBundle* _tmp20_; - PixelTransformation* _tmp21_; - PixelTransformation* _tmp22_; - PixelTransformation* _tmp23_; - PixelTransformation* _tmp24_; -#line 2634 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = _transformation_it; -#line 2634 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp16_)) { -#line 2634 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 20606 "Photo.c" - } -#line 2634 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _transformation_it; -#line 2634 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = gee_iterator_get (_tmp17_); -#line 2634 "/home/jens/Source/shotwell/src/Photo.vala" - transformation = (PixelTransformation*) _tmp18_; -#line 2635 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = self->priv->transformer; -#line 2635 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = self->priv->adjustments; -#line 2635 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = transformation; -#line 2635 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = pixel_transformation_bundle_get_transformation (_tmp20_, pixel_transformation_get_transformation_type (_tmp21_)); -#line 2635 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _tmp22_; -#line 2635 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = transformation; -#line 2635 "/home/jens/Source/shotwell/src/Photo.vala" - pixel_transformer_replace_transformation (_tmp19_, _tmp23_, _tmp24_); -#line 2635 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_unref0 (_tmp23_); -#line 2634 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_unref0 (transformation); -#line 20632 "Photo.c" - } -#line 2634 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_transformation_it); -#line 20636 "Photo.c" - } -#line 2640 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = pixel_transformation_bundle_copy (new_adjustments); -#line 2640 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (self->priv->adjustments); -#line 2640 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->adjustments = _tmp25_; -#line 20644 "Photo.c" - } -#line 2643 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = map; -#line 2643 "/home/jens/Source/shotwell/src/Photo.vala" - committed = photo_set_transformation (self, _tmp26_); -#line 20650 "Photo.c" - } - __finally374: - { - PhotoRow* _tmp27_; -#line 2627 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = self->row; -#line 2627 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 20659 "Photo.c" - } -#line 2627 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2627 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (map); -#line 2627 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2627 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2627 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 20671 "Photo.c" - } - } -#line 2646 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = committed; -#line 2646 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp28_) { -#line 20678 "Photo.c" - Alteration* _tmp29_; - Alteration* _tmp30_; -#line 2647 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = alteration_new ("image", "color-adjustments"); -#line 2647 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = _tmp29_; -#line 2647 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp30_); -#line 2647 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp30_); -#line 20689 "Photo.c" - } -#line 2606 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (map); -#line 20693 "Photo.c" -} - - -static PhotoMetadata* -photo_real_get_metadata (PhotoSource* base) -{ - Photo * self; - PhotoMetadata* result = NULL; - GError * _inner_error_ = NULL; -#line 2651 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 20705 "Photo.c" - { - PhotoMetadata* _tmp0_ = NULL; - PhotoFileReader* _tmp1_; - PhotoFileReader* _tmp2_; - PhotoMetadata* _tmp3_; - PhotoMetadata* _tmp4_; - PhotoMetadata* _tmp5_; -#line 2653 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_get_source_reader (self); -#line 2653 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 2653 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_file_reader_read_metadata (_tmp2_, &_inner_error_); -#line 2653 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 2653 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp2_); -#line 2653 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp4_; -#line 2653 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 20727 "Photo.c" - goto __catch375_g_error; - } -#line 2653 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp0_; -#line 2653 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = NULL; -#line 2653 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp5_; -#line 2653 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (_tmp0_); -#line 2653 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 20740 "Photo.c" - } - goto __finally375; - __catch375_g_error: - { - GError* err = NULL; - GError* _tmp6_; - const gchar* _tmp7_; -#line 2652 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 2652 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 2655 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = err; -#line 2655 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_->message; -#line 2655 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:2655: Unable to load metadata: %s", _tmp7_); -#line 2657 "/home/jens/Source/shotwell/src/Photo.vala" - result = NULL; -#line 2657 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 2657 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 20764 "Photo.c" - } - __finally375: -#line 2652 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2652 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2652 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 20773 "Photo.c" -} - - -PhotoMetadata* -photo_get_master_metadata (Photo* self, - GError** error) -{ - PhotoMetadata* result = NULL; - PhotoMetadata* _tmp0_ = NULL; - PhotoFileReader* _tmp1_; - PhotoFileReader* _tmp2_; - PhotoMetadata* _tmp3_; - PhotoMetadata* _tmp4_; - PhotoMetadata* _tmp5_; - GError * _inner_error_ = NULL; -#line 2661 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 2662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_get_master_reader (self); -#line 2662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 2662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_file_reader_read_metadata (_tmp2_, &_inner_error_); -#line 2662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 2662 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp2_); -#line 2662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp4_; -#line 2662 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2662 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2662 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 20809 "Photo.c" - } -#line 2662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp0_; -#line 2662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = NULL; -#line 2662 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp5_; -#line 2662 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (_tmp0_); -#line 2662 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 20821 "Photo.c" -} - - -PhotoMetadata* -photo_get_editable_metadata (Photo* self, - GError** error) -{ - PhotoMetadata* result = NULL; - PhotoFileReader* reader = NULL; - PhotoFileReader* _tmp0_; - PhotoMetadata* _tmp1_ = NULL; - PhotoFileReader* _tmp2_; - GError * _inner_error_ = NULL; -#line 2665 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 2666 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_editable_reader (self); -#line 2666 "/home/jens/Source/shotwell/src/Photo.vala" - reader = _tmp0_; -#line 2668 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = reader; -#line 2668 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ != NULL) { -#line 20845 "Photo.c" - PhotoFileReader* _tmp3_; - PhotoMetadata* _tmp4_; -#line 2668 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = reader; -#line 2668 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = photo_file_reader_read_metadata (_tmp3_, &_inner_error_); -#line 2668 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (_tmp1_); -#line 2668 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp4_; -#line 2668 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2668 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2668 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (_tmp1_); -#line 2668 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 2668 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 20866 "Photo.c" - } - } else { -#line 2668 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (_tmp1_); -#line 2668 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = NULL; -#line 20873 "Photo.c" - } -#line 2668 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp1_; -#line 2668 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 2668 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 20881 "Photo.c" -} - - -gboolean -photo_persist_master_metadata (Photo* self, - PhotoMetadata* metadata, - PhotoReimportMasterState* * state, - GError** error) -{ - PhotoReimportMasterState* _vala_state = NULL; - gboolean result = FALSE; - PhotoFileReader* master_reader = NULL; - PhotoFileReader* _tmp0_; - PhotoFileReader* _tmp1_; - PhotoFileMetadataWriter* _tmp2_ = NULL; - PhotoFileReader* _tmp3_; - PhotoFileMetadataWriter* _tmp4_; - gboolean _tmp7_ = FALSE; - PhotoReimportMasterState* _tmp8_ = NULL; - gboolean _tmp9_; - PhotoReimportMasterState* _tmp11_; - GError * _inner_error_ = NULL; -#line 2674 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 2674 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (metadata), FALSE); -#line 2676 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_master_state_unref0 (_vala_state); -#line 2676 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_state = NULL; -#line 2678 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_master_reader (self); -#line 2678 "/home/jens/Source/shotwell/src/Photo.vala" - master_reader = _tmp0_; -#line 2680 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = master_reader; -#line 2680 "/home/jens/Source/shotwell/src/Photo.vala" - if (!photo_file_format_can_write_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)))) { -#line 2681 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 2681 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (master_reader); -#line 2681 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 2681 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 20928 "Photo.c" - } else { -#line 2681 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_master_state_unref0 (_vala_state); -#line 20932 "Photo.c" - } -#line 2681 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 20936 "Photo.c" - } -#line 2683 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = master_reader; -#line 2683 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = photo_file_reader_create_metadata_writer (_tmp3_, &_inner_error_); -#line 2683 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp4_; -#line 2683 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 20946 "Photo.c" - gboolean _tmp5_ = FALSE; -#line 2683 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2683 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (master_reader); -#line 2683 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp5_; -#line 20954 "Photo.c" - } -#line 2683 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_metadata_writer_write_metadata (_tmp2_, metadata, &_inner_error_); -#line 2683 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 20960 "Photo.c" - gboolean _tmp6_ = FALSE; -#line 2683 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2683 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp2_); -#line 2683 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (master_reader); -#line 2683 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp6_; -#line 20970 "Photo.c" - } -#line 2685 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = photo_prepare_for_reimport_master (self, &_tmp8_, &_inner_error_); -#line 2685 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_master_state_unref0 (_vala_state); -#line 2685 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_state = _tmp8_; -#line 2685 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp9_; -#line 2685 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 20982 "Photo.c" - gboolean _tmp10_ = FALSE; -#line 2685 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2685 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp2_); -#line 2685 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (master_reader); -#line 2685 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp10_; -#line 20992 "Photo.c" - } -#line 2685 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp7_) { -#line 2686 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 2686 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp2_); -#line 2686 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (master_reader); -#line 2686 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 2686 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 21006 "Photo.c" - } else { -#line 2686 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_master_state_unref0 (_vala_state); -#line 21010 "Photo.c" - } -#line 2686 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 21014 "Photo.c" - } -#line 2688 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _vala_state; -#line 2688 "/home/jens/Source/shotwell/src/Photo.vala" - G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImpl)->metadata_only = TRUE; -#line 2690 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 2690 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp2_); -#line 2690 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (master_reader); -#line 2690 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 2690 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 21030 "Photo.c" - } else { -#line 2690 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_master_state_unref0 (_vala_state); -#line 21034 "Photo.c" - } -#line 2690 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 21038 "Photo.c" -} - - -void -photo_finish_update_master_metadata (Photo* self, - PhotoReimportMasterState* state, - GError** error) -{ - GError * _inner_error_ = NULL; -#line 2693 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 2693 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (PHOTO_IS_REIMPORT_MASTER_STATE (state)); -#line 2694 "/home/jens/Source/shotwell/src/Photo.vala" - photo_finish_reimport_master (self, state, &_inner_error_); -#line 2694 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2694 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 2694 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2694 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 21062 "Photo.c" - } else { -#line 2694 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2694 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2694 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 21070 "Photo.c" - } - } -} - - -gboolean -photo_persist_editable_metadata (Photo* self, - PhotoMetadata* metadata, - PhotoReimportEditableState* * state, - GError** error) -{ - PhotoReimportEditableState* _vala_state = NULL; - gboolean result = FALSE; - PhotoFileReader* editable_reader = NULL; - PhotoFileReader* _tmp0_; - PhotoFileReader* _tmp1_; - PhotoFileReader* _tmp2_; - PhotoFileMetadataWriter* _tmp3_ = NULL; - PhotoFileReader* _tmp4_; - PhotoFileMetadataWriter* _tmp5_; - gboolean _tmp8_ = FALSE; - PhotoReimportEditableState* _tmp9_ = NULL; - gboolean _tmp10_; - PhotoReimportEditableState* _tmp12_; - GError * _inner_error_ = NULL; -#line 2697 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 2697 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (metadata), FALSE); -#line 2699 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_editable_state_unref0 (_vala_state); -#line 2699 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_state = NULL; -#line 2701 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_editable_reader (self); -#line 2701 "/home/jens/Source/shotwell/src/Photo.vala" - editable_reader = _tmp0_; -#line 2702 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = editable_reader; -#line 2702 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ == NULL) { -#line 2703 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 2703 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (editable_reader); -#line 2703 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 2703 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 21120 "Photo.c" - } else { -#line 2703 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_editable_state_unref0 (_vala_state); -#line 21124 "Photo.c" - } -#line 2703 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 21128 "Photo.c" - } -#line 2705 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = editable_reader; -#line 2705 "/home/jens/Source/shotwell/src/Photo.vala" - if (!photo_file_format_can_write_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)))) { -#line 2706 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 2706 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (editable_reader); -#line 2706 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 2706 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 21142 "Photo.c" - } else { -#line 2706 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_editable_state_unref0 (_vala_state); -#line 21146 "Photo.c" - } -#line 2706 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 21150 "Photo.c" - } -#line 2708 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = editable_reader; -#line 2708 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = photo_file_reader_create_metadata_writer (_tmp4_, &_inner_error_); -#line 2708 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp5_; -#line 2708 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 21160 "Photo.c" - gboolean _tmp6_ = FALSE; -#line 2708 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2708 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (editable_reader); -#line 2708 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp6_; -#line 21168 "Photo.c" - } -#line 2708 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_metadata_writer_write_metadata (_tmp3_, metadata, &_inner_error_); -#line 2708 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 21174 "Photo.c" - gboolean _tmp7_ = FALSE; -#line 2708 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2708 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp3_); -#line 2708 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (editable_reader); -#line 2708 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp7_; -#line 21184 "Photo.c" - } -#line 2710 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = photo_prepare_for_reimport_editable (self, &_tmp9_, &_inner_error_); -#line 2710 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_editable_state_unref0 (_vala_state); -#line 2710 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_state = _tmp9_; -#line 2710 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _tmp10_; -#line 2710 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 21196 "Photo.c" - gboolean _tmp11_ = FALSE; -#line 2710 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2710 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp3_); -#line 2710 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (editable_reader); -#line 2710 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp11_; -#line 21206 "Photo.c" - } -#line 2710 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp8_) { -#line 2711 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 2711 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp3_); -#line 2711 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (editable_reader); -#line 2711 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 2711 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 21220 "Photo.c" - } else { -#line 2711 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_editable_state_unref0 (_vala_state); -#line 21224 "Photo.c" - } -#line 2711 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 21228 "Photo.c" - } -#line 2713 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _vala_state; -#line 2713 "/home/jens/Source/shotwell/src/Photo.vala" - G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImpl)->metadata_only = TRUE; -#line 2715 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 2715 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp3_); -#line 2715 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (editable_reader); -#line 2715 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 2715 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 21244 "Photo.c" - } else { -#line 2715 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_editable_state_unref0 (_vala_state); -#line 21248 "Photo.c" - } -#line 2715 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 21252 "Photo.c" -} - - -void -photo_finish_update_editable_metadata (Photo* self, - PhotoReimportEditableState* state, - GError** error) -{ - GError * _inner_error_ = NULL; -#line 2718 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 2718 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (PHOTO_IS_REIMPORT_EDITABLE_STATE (state)); -#line 2719 "/home/jens/Source/shotwell/src/Photo.vala" - photo_finish_reimport_editable (self, state, &_inner_error_); -#line 2719 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2719 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 2719 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 2719 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 21276 "Photo.c" - } else { -#line 2719 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2719 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2719 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 21284 "Photo.c" - } - } -} - - -void -photo_get_raw_dimensions (Photo* self, - Dimensions* result) -{ - GError * _inner_error_ = NULL; -#line 2724 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 21297 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2725 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2725 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 21304 "Photo.c" - { - BackingPhotoRow* _tmp1_; - Dimensions _tmp2_; -#line 2726 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->backing_photo_row; -#line 2726 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->dim; -#line 2726 "/home/jens/Source/shotwell/src/Photo.vala" - *result = _tmp2_; -#line 21314 "Photo.c" - { - PhotoRow* _tmp3_; -#line 2725 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2725 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 21321 "Photo.c" - } -#line 2726 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 21325 "Photo.c" - } - __finally376: - { - PhotoRow* _tmp4_; -#line 2725 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2725 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 21334 "Photo.c" - } -#line 2725 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2725 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2725 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 21342 "Photo.c" - } -} - - -gboolean -photo_has_transformations (Photo* self) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 2730 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 21354 "Photo.c" - { - PhotoRow* _tmp0_; - gboolean _tmp10_ = FALSE; -#line 2731 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2731 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 21362 "Photo.c" - { - gboolean _tmp1_ = FALSE; - PhotoRow* _tmp2_; - Orientation _tmp3_; - BackingPhotoRow* _tmp4_; - Orientation _tmp5_; -#line 2732 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->row; -#line 2732 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_->orientation; -#line 2732 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->backing_photo_row; -#line 2732 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_->original_orientation; -#line 2732 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp3_ != _tmp5_) { -#line 2733 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = TRUE; -#line 21381 "Photo.c" - } else { - PhotoRow* _tmp6_; - GeeHashMap* _tmp7_; -#line 2734 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->row; -#line 2734 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_->transformations; -#line 2734 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp7_ != NULL; -#line 21391 "Photo.c" - } -#line 2732 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp1_; -#line 21395 "Photo.c" - { - PhotoRow* _tmp8_; -#line 2731 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = self->row; -#line 2731 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 21402 "Photo.c" - } -#line 2732 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 21406 "Photo.c" - } - __finally377: - { - PhotoRow* _tmp9_; -#line 2731 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = self->row; -#line 2731 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 21415 "Photo.c" - } -#line 2731 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2731 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2731 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp10_; -#line 21423 "Photo.c" - } -} - - -gboolean -photo_only_metadata_changed (Photo* self) -{ - gboolean result = FALSE; - MetadataDateTime* date_time = NULL; - PhotoMetadata* metadata = NULL; - PhotoMetadata* _tmp0_; - PhotoMetadata* _tmp1_; - GError * _inner_error_ = NULL; -#line 2738 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 2739 "/home/jens/Source/shotwell/src/Photo.vala" - date_time = NULL; -#line 2741 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource)); -#line 2741 "/home/jens/Source/shotwell/src/Photo.vala" - metadata = _tmp0_; -#line 2742 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = metadata; -#line 2742 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ != NULL) { -#line 21449 "Photo.c" - PhotoMetadata* _tmp2_; - MetadataDateTime* _tmp3_; -#line 2743 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = metadata; -#line 2743 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_metadata_get_exposure_date_time (_tmp2_); -#line 2743 "/home/jens/Source/shotwell/src/Photo.vala" - _metadata_date_time_unref0 (date_time); -#line 2743 "/home/jens/Source/shotwell/src/Photo.vala" - date_time = _tmp3_; -#line 21460 "Photo.c" - } - { - PhotoRow* _tmp4_; - gboolean _tmp20_ = FALSE; -#line 2745 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2745 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 21469 "Photo.c" - { - gboolean _tmp5_ = FALSE; - PhotoRow* _tmp6_; - GeeHashMap* _tmp7_; -#line 2746 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->row; -#line 2746 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_->transformations; -#line 2746 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp7_ == NULL) { -#line 21480 "Photo.c" - gboolean _tmp8_ = FALSE; - PhotoRow* _tmp9_; - Orientation _tmp10_; - BackingPhotoRow* _tmp11_; - Orientation _tmp12_; -#line 2747 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = self->row; -#line 2747 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_->orientation; -#line 2747 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = self->backing_photo_row; -#line 2747 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_->original_orientation; -#line 2747 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp10_ != _tmp12_) { -#line 2747 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = TRUE; -#line 21498 "Photo.c" - } else { - gboolean _tmp13_ = FALSE; - MetadataDateTime* _tmp14_; -#line 2748 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = date_time; -#line 2748 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp14_ != NULL) { -#line 21506 "Photo.c" - PhotoRow* _tmp15_; - time_t _tmp16_; - MetadataDateTime* _tmp17_; -#line 2748 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = self->row; -#line 2748 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = _tmp15_->exposure_time; -#line 2748 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = date_time; -#line 2748 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp16_ != metadata_date_time_get_timestamp (_tmp17_); -#line 21518 "Photo.c" - } else { -#line 2748 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = FALSE; -#line 21522 "Photo.c" - } -#line 2748 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _tmp13_; -#line 21526 "Photo.c" - } -#line 2747 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp8_; -#line 21530 "Photo.c" - } else { -#line 2746 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = FALSE; -#line 21534 "Photo.c" - } -#line 2746 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp5_; -#line 21538 "Photo.c" - { - PhotoRow* _tmp18_; -#line 2745 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = self->row; -#line 2745 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 21545 "Photo.c" - } -#line 2746 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 2746 "/home/jens/Source/shotwell/src/Photo.vala" - _metadata_date_time_unref0 (date_time); -#line 2746 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 21553 "Photo.c" - } - __finally378: - { - PhotoRow* _tmp19_; -#line 2745 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = self->row; -#line 2745 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 21562 "Photo.c" - } -#line 2745 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 2745 "/home/jens/Source/shotwell/src/Photo.vala" - _metadata_date_time_unref0 (date_time); -#line 2745 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2745 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2745 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp20_; -#line 21574 "Photo.c" - } -#line 2738 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 2738 "/home/jens/Source/shotwell/src/Photo.vala" - _metadata_date_time_unref0 (date_time); -#line 21580 "Photo.c" -} - - -gboolean -photo_has_alterations (Photo* self) -{ - gboolean result = FALSE; - MetadataDateTime* date_time = NULL; - gchar* title = NULL; - gchar* comment = NULL; - PhotoMetadata* metadata = NULL; - PhotoMetadata* _tmp0_; - PhotoMetadata* _tmp1_; - MetadataDateTime* _tmp8_; - GError * _inner_error_ = NULL; -#line 2752 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 2753 "/home/jens/Source/shotwell/src/Photo.vala" - date_time = NULL; -#line 2754 "/home/jens/Source/shotwell/src/Photo.vala" - title = NULL; -#line 2755 "/home/jens/Source/shotwell/src/Photo.vala" - comment = NULL; -#line 2757 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource)); -#line 2757 "/home/jens/Source/shotwell/src/Photo.vala" - metadata = _tmp0_; -#line 2758 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = metadata; -#line 2758 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ != NULL) { -#line 21612 "Photo.c" - PhotoMetadata* _tmp2_; - MetadataDateTime* _tmp3_; - PhotoMetadata* _tmp4_; - gchar* _tmp5_; - PhotoMetadata* _tmp6_; - gchar* _tmp7_; -#line 2759 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = metadata; -#line 2759 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_metadata_get_exposure_date_time (_tmp2_); -#line 2759 "/home/jens/Source/shotwell/src/Photo.vala" - _metadata_date_time_unref0 (date_time); -#line 2759 "/home/jens/Source/shotwell/src/Photo.vala" - date_time = _tmp3_; -#line 2760 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = metadata; -#line 2760 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_METADATA, MediaMetadata)); -#line 2760 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (title); -#line 2760 "/home/jens/Source/shotwell/src/Photo.vala" - title = _tmp5_; -#line 2761 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = metadata; -#line 2761 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_METADATA, MediaMetadata)); -#line 2761 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (comment); -#line 2761 "/home/jens/Source/shotwell/src/Photo.vala" - comment = _tmp7_; -#line 21643 "Photo.c" - } -#line 2765 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = date_time; -#line 2765 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp8_ == NULL) { -#line 21649 "Photo.c" - { - PhotoRow* _tmp9_; -#line 2767 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = self->row; -#line 2767 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 21656 "Photo.c" - { - BackingPhotoRow* _tmp10_; - time_t _tmp11_; - PhotoRow* _tmp12_; - time_t _tmp13_; -#line 2769 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = self->backing_photo_row; -#line 2769 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_->timestamp; -#line 2769 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = self->row; -#line 2769 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_->exposure_time; -#line 2769 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp11_ != _tmp13_) { -#line 2771 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 21674 "Photo.c" - { - PhotoRow* _tmp14_; -#line 2767 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = self->row; -#line 2767 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 21681 "Photo.c" - } -#line 2771 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 2771 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (comment); -#line 2771 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (title); -#line 2771 "/home/jens/Source/shotwell/src/Photo.vala" - _metadata_date_time_unref0 (date_time); -#line 2771 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 21693 "Photo.c" - } - } - __finally379: - { - PhotoRow* _tmp15_; -#line 2767 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = self->row; -#line 2767 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 21703 "Photo.c" - } -#line 2767 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 21707 "Photo.c" - gboolean _tmp16_ = FALSE; -#line 2767 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 2767 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (comment); -#line 2767 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (title); -#line 2767 "/home/jens/Source/shotwell/src/Photo.vala" - _metadata_date_time_unref0 (date_time); -#line 2767 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2767 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2767 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp16_; -#line 21723 "Photo.c" - } - } - } - { - PhotoRow* _tmp17_; - gboolean _tmp41_ = FALSE; -#line 2776 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = self->row; -#line 2776 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 21734 "Photo.c" - { - gboolean _tmp18_ = FALSE; - gboolean _tmp19_ = FALSE; - gboolean _tmp20_ = FALSE; - gboolean _tmp21_ = FALSE; - PhotoRow* _tmp22_; - GeeHashMap* _tmp23_; -#line 2777 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = self->row; -#line 2777 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _tmp22_->transformations; -#line 2777 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp23_ != NULL) { -#line 2777 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = TRUE; -#line 21750 "Photo.c" - } else { - PhotoRow* _tmp24_; - Orientation _tmp25_; - BackingPhotoRow* _tmp26_; - Orientation _tmp27_; -#line 2778 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = self->row; -#line 2778 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = _tmp24_->orientation; -#line 2778 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = self->backing_photo_row; -#line 2778 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = _tmp26_->original_orientation; -#line 2778 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _tmp25_ != _tmp27_; -#line 21766 "Photo.c" - } -#line 2777 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp21_) { -#line 2777 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = TRUE; -#line 21772 "Photo.c" - } else { - gboolean _tmp28_ = FALSE; - MetadataDateTime* _tmp29_; -#line 2779 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = date_time; -#line 2779 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp29_ != NULL) { -#line 21780 "Photo.c" - PhotoRow* _tmp30_; - time_t _tmp31_; - MetadataDateTime* _tmp32_; -#line 2779 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = self->row; -#line 2779 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = _tmp30_->exposure_time; -#line 2779 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = date_time; -#line 2779 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = _tmp31_ != metadata_date_time_get_timestamp (_tmp32_); -#line 21792 "Photo.c" - } else { -#line 2779 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = FALSE; -#line 21796 "Photo.c" - } -#line 2779 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = _tmp28_; -#line 21800 "Photo.c" - } -#line 2777 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp20_) { -#line 2777 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = TRUE; -#line 21806 "Photo.c" - } else { - gchar* _tmp33_; - gchar* _tmp34_; - const gchar* _tmp35_; -#line 2780 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = media_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 2780 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = _tmp33_; -#line 2780 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = comment; -#line 2780 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = g_strcmp0 (_tmp34_, _tmp35_) != 0; -#line 2780 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp34_); -#line 21821 "Photo.c" - } -#line 2777 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp19_) { -#line 2777 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = TRUE; -#line 21827 "Photo.c" - } else { - gchar* _tmp36_; - gchar* _tmp37_; - const gchar* _tmp38_; -#line 2781 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 2781 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = _tmp36_; -#line 2781 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = title; -#line 2781 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = g_strcmp0 (_tmp37_, _tmp38_) != 0; -#line 2781 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp37_); -#line 21842 "Photo.c" - } -#line 2777 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp18_; -#line 21846 "Photo.c" - { - PhotoRow* _tmp39_; -#line 2776 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = self->row; -#line 2776 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 21853 "Photo.c" - } -#line 2777 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 2777 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (comment); -#line 2777 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (title); -#line 2777 "/home/jens/Source/shotwell/src/Photo.vala" - _metadata_date_time_unref0 (date_time); -#line 2777 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 21865 "Photo.c" - } - __finally380: - { - PhotoRow* _tmp40_; -#line 2776 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = self->row; -#line 2776 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 21874 "Photo.c" - } -#line 2776 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 2776 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (comment); -#line 2776 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (title); -#line 2776 "/home/jens/Source/shotwell/src/Photo.vala" - _metadata_date_time_unref0 (date_time); -#line 2776 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2776 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2776 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp41_; -#line 21890 "Photo.c" - } -#line 2752 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 2752 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (comment); -#line 2752 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (title); -#line 2752 "/home/jens/Source/shotwell/src/Photo.vala" - _metadata_date_time_unref0 (date_time); -#line 21900 "Photo.c" -} - - -PhotoTransformationState* -photo_save_transformation_state (Photo* self) -{ - PhotoTransformationState* result = NULL; - GError * _inner_error_ = NULL; -#line 2786 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 21911 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2787 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2787 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 21918 "Photo.c" - { - PixelTransformer* _tmp1_ = NULL; - PixelTransformer* _tmp2_; - PixelTransformationBundle* _tmp5_ = NULL; - PixelTransformationBundle* _tmp6_; - PhotoRow* _tmp9_; - Orientation _tmp10_; - PhotoRow* _tmp11_; - GeeHashMap* _tmp12_; - PhotoPhotoTransformationStateImpl* _tmp13_; -#line 2790 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->transformer; -#line 2790 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ != NULL) { -#line 21933 "Photo.c" - PixelTransformer* _tmp3_; - PixelTransformer* _tmp4_; -#line 2790 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->transformer; -#line 2790 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = pixel_transformer_copy (_tmp3_); -#line 2790 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (_tmp1_); -#line 2790 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp4_; -#line 21944 "Photo.c" - } else { -#line 2790 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (_tmp1_); -#line 2790 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = NULL; -#line 21950 "Photo.c" - } -#line 2791 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->priv->adjustments; -#line 2791 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp6_ != NULL) { -#line 21956 "Photo.c" - PixelTransformationBundle* _tmp7_; - PixelTransformationBundle* _tmp8_; -#line 2791 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = self->priv->adjustments; -#line 2791 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = pixel_transformation_bundle_copy (_tmp7_); -#line 2791 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (_tmp5_); -#line 2791 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp8_; -#line 21967 "Photo.c" - } else { -#line 2791 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (_tmp5_); -#line 2791 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = NULL; -#line 21973 "Photo.c" - } -#line 2788 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = self->row; -#line 2788 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_->orientation; -#line 2788 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = self->row; -#line 2788 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_->transformations; -#line 2788 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = photo_photo_transformation_state_impl_new (self, _tmp10_, _tmp12_, _tmp1_, _tmp5_); -#line 2788 "/home/jens/Source/shotwell/src/Photo.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationState); -#line 2788 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (_tmp5_); -#line 2788 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (_tmp1_); -#line 21991 "Photo.c" - { - PhotoRow* _tmp14_; -#line 2787 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = self->row; -#line 2787 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 21998 "Photo.c" - } -#line 2788 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 22002 "Photo.c" - } - __finally381: - { - PhotoRow* _tmp15_; -#line 2787 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = self->row; -#line 2787 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 22011 "Photo.c" - } -#line 2787 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2787 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2787 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 22019 "Photo.c" - } -} - - -static gpointer -_pixel_transformer_ref0 (gpointer self) -{ -#line 2812 "/home/jens/Source/shotwell/src/Photo.vala" - return self ? pixel_transformer_ref (self) : NULL; -#line 22029 "Photo.c" -} - - -static gpointer -_pixel_transformation_bundle_ref0 (gpointer self) -{ -#line 2813 "/home/jens/Source/shotwell/src/Photo.vala" - return self ? pixel_transformation_bundle_ref (self) : NULL; -#line 22038 "Photo.c" -} - - -gboolean -photo_load_transformation_state (Photo* self, - PhotoTransformationState* state) -{ - gboolean result = FALSE; - PhotoPhotoTransformationStateImpl* state_impl = NULL; - PhotoPhotoTransformationStateImpl* _tmp0_; - PhotoPhotoTransformationStateImpl* _tmp1_; - Orientation saved_orientation = 0; - PhotoPhotoTransformationStateImpl* _tmp2_; - GeeHashMap* saved_transformations = NULL; - PhotoPhotoTransformationStateImpl* _tmp3_; - GeeHashMap* _tmp4_; - PixelTransformer* saved_transformer = NULL; - PhotoPhotoTransformationStateImpl* _tmp5_; - PixelTransformer* _tmp6_; - PixelTransformationBundle* saved_adjustments = NULL; - PhotoPhotoTransformationStateImpl* _tmp7_; - PixelTransformationBundle* _tmp8_; - gboolean committed = FALSE; - gboolean _tmp28_; - GError * _inner_error_ = NULL; -#line 2795 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 2795 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO_TRANSFORMATION_STATE (state), FALSE); -#line 2796 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (state, PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL) ? ((PhotoPhotoTransformationStateImpl*) state) : NULL); -#line 2796 "/home/jens/Source/shotwell/src/Photo.vala" - state_impl = _tmp0_; -#line 2797 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = state_impl; -#line 2797 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ == NULL) { -#line 2798 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 2798 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (state_impl); -#line 2798 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 22082 "Photo.c" - } -#line 2800 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = state_impl; -#line 2800 "/home/jens/Source/shotwell/src/Photo.vala" - saved_orientation = photo_photo_transformation_state_impl_get_orientation (_tmp2_); -#line 2801 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = state_impl; -#line 2801 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = photo_photo_transformation_state_impl_get_transformations (_tmp3_); -#line 2801 "/home/jens/Source/shotwell/src/Photo.vala" - saved_transformations = _tmp4_; -#line 2802 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = state_impl; -#line 2802 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo_photo_transformation_state_impl_get_transformer (_tmp5_); -#line 2802 "/home/jens/Source/shotwell/src/Photo.vala" - saved_transformer = _tmp6_; -#line 2803 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = state_impl; -#line 2803 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = photo_photo_transformation_state_impl_get_color_adjustments (_tmp7_); -#line 2803 "/home/jens/Source/shotwell/src/Photo.vala" - saved_adjustments = _tmp8_; -#line 22106 "Photo.c" - { - PhotoRow* _tmp9_; -#line 2806 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = self->row; -#line 2806 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 22113 "Photo.c" - { - PhotoTable* _tmp10_; - PhotoTable* _tmp11_; - PhotoRow* _tmp12_; - PhotoID _tmp13_; - Orientation _tmp14_; - GeeHashMap* _tmp15_; - gboolean _tmp16_; -#line 2807 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = photo_table_get_instance (); -#line 2807 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_; -#line 2807 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = self->row; -#line 2807 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_->photo_id; -#line 2807 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = saved_orientation; -#line 2807 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = saved_transformations; -#line 2807 "/home/jens/Source/shotwell/src/Photo.vala" - committed = photo_table_set_transformation_state (_tmp11_, &_tmp13_, _tmp14_, _tmp15_); -#line 2807 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp11_); -#line 2809 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = committed; -#line 2809 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp16_) { -#line 22142 "Photo.c" - PhotoRow* _tmp17_; - Orientation _tmp18_; - PhotoRow* _tmp19_; - GeeHashMap* _tmp20_; - GeeHashMap* _tmp21_; - PixelTransformer* _tmp22_; - PixelTransformer* _tmp23_; - PixelTransformationBundle* _tmp24_; - PixelTransformationBundle* _tmp25_; -#line 2810 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = self->row; -#line 2810 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = saved_orientation; -#line 2810 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_->orientation = _tmp18_; -#line 2811 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = self->row; -#line 2811 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = saved_transformations; -#line 2811 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _g_object_ref0 (_tmp20_); -#line 2811 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp19_->transformations); -#line 2811 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_->transformations = _tmp21_; -#line 2812 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = saved_transformer; -#line 2812 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _pixel_transformer_ref0 (_tmp22_); -#line 2812 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (self->priv->transformer); -#line 2812 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->transformer = _tmp23_; -#line 2813 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = saved_adjustments; -#line 2813 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = _pixel_transformation_bundle_ref0 (_tmp24_); -#line 2813 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (self->priv->adjustments); -#line 2813 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->adjustments = _tmp25_; -#line 22184 "Photo.c" - } - } - __finally382: - { - PhotoRow* _tmp26_; -#line 2806 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = self->row; -#line 2806 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 22194 "Photo.c" - } -#line 2806 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 22198 "Photo.c" - gboolean _tmp27_ = FALSE; -#line 2806 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (saved_adjustments); -#line 2806 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (saved_transformer); -#line 2806 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (saved_transformations); -#line 2806 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (state_impl); -#line 2806 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2806 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2806 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp27_; -#line 22214 "Photo.c" - } - } -#line 2817 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = committed; -#line 2817 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp28_) { -#line 22221 "Photo.c" - Alteration* _tmp29_; - Alteration* _tmp30_; -#line 2818 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = alteration_new ("image", "transformation-state"); -#line 2818 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = _tmp29_; -#line 2818 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp30_); -#line 2818 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp30_); -#line 22232 "Photo.c" - } -#line 2820 "/home/jens/Source/shotwell/src/Photo.vala" - result = committed; -#line 2820 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (saved_adjustments); -#line 2820 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (saved_transformer); -#line 2820 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (saved_transformations); -#line 2820 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (state_impl); -#line 2820 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 22246 "Photo.c" -} - - -void -photo_remove_all_transformations (Photo* self) -{ -#line 2823 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 2824 "/home/jens/Source/shotwell/src/Photo.vala" - photo_internal_remove_all_transformations (self, TRUE); -#line 22257 "Photo.c" -} - - -static void -photo_internal_remove_all_transformations (Photo* self, - gboolean notify) -{ - gboolean is_altered = FALSE; - gboolean _tmp20_ = FALSE; - gboolean _tmp21_; - GError * _inner_error_ = NULL; -#line 2827 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 2828 "/home/jens/Source/shotwell/src/Photo.vala" - is_altered = FALSE; -#line 22273 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2829 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2829 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 22280 "Photo.c" - { - PhotoTable* _tmp1_; - PhotoTable* _tmp2_; - PhotoRow* _tmp3_; - PhotoID _tmp4_; - PhotoRow* _tmp5_; - PhotoRow* _tmp6_; - Orientation _tmp7_; - BackingPhotoRow* _tmp8_; - Orientation _tmp9_; -#line 2830 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_table_get_instance (); -#line 2830 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 2830 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2830 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->photo_id; -#line 2830 "/home/jens/Source/shotwell/src/Photo.vala" - is_altered = photo_table_remove_all_transformations (_tmp2_, &_tmp4_); -#line 2830 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp2_); -#line 2831 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 2831 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp5_->transformations); -#line 2831 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_->transformations = NULL; -#line 2833 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (self->priv->transformer); -#line 2833 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->transformer = NULL; -#line 2834 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (self->priv->adjustments); -#line 2834 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->adjustments = NULL; -#line 2836 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->row; -#line 2836 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_->orientation; -#line 2836 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = self->backing_photo_row; -#line 2836 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_->original_orientation; -#line 2836 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp7_ != _tmp9_) { -#line 22327 "Photo.c" - PhotoTable* _tmp10_; - PhotoTable* _tmp11_; - PhotoRow* _tmp12_; - PhotoID _tmp13_; - BackingPhotoRow* _tmp14_; - Orientation _tmp15_; - PhotoRow* _tmp16_; - BackingPhotoRow* _tmp17_; - Orientation _tmp18_; -#line 2837 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = photo_table_get_instance (); -#line 2837 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_; -#line 2837 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = self->row; -#line 2837 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_->photo_id; -#line 2837 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = self->backing_photo_row; -#line 2837 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_->original_orientation; -#line 2837 "/home/jens/Source/shotwell/src/Photo.vala" - photo_table_set_orientation (_tmp11_, &_tmp13_, _tmp15_); -#line 2837 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp11_); -#line 2839 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = self->row; -#line 2839 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = self->backing_photo_row; -#line 2839 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp17_->original_orientation; -#line 2839 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_->orientation = _tmp18_; -#line 2840 "/home/jens/Source/shotwell/src/Photo.vala" - is_altered = TRUE; -#line 22363 "Photo.c" - } - } - __finally383: - { - PhotoRow* _tmp19_; -#line 2829 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = self->row; -#line 2829 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 22373 "Photo.c" - } -#line 2829 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2829 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2829 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2829 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 22383 "Photo.c" - } - } -#line 2844 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = is_altered; -#line 2844 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp21_) { -#line 2844 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = notify; -#line 22392 "Photo.c" - } else { -#line 2844 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = FALSE; -#line 22396 "Photo.c" - } -#line 2844 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp20_) { -#line 22400 "Photo.c" - Alteration* _tmp22_; - Alteration* _tmp23_; -#line 2845 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = alteration_new ("image", "revert"); -#line 2845 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _tmp22_; -#line 2845 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp23_); -#line 2845 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp23_); -#line 22411 "Photo.c" - } -} - - -Orientation -photo_get_original_orientation (Photo* self) -{ - Orientation result = 0; - GError * _inner_error_ = NULL; -#line 2848 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), 0); -#line 22423 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2849 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2849 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 22430 "Photo.c" - { - BackingPhotoRow* _tmp1_; - Orientation _tmp2_; -#line 2850 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->backing_photo_row; -#line 2850 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->original_orientation; -#line 2850 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_; -#line 22440 "Photo.c" - { - PhotoRow* _tmp3_; -#line 2849 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2849 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 22447 "Photo.c" - } -#line 2850 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 22451 "Photo.c" - } - __finally384: - { - PhotoRow* _tmp4_; -#line 2849 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2849 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 22460 "Photo.c" - } -#line 2849 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2849 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2849 "/home/jens/Source/shotwell/src/Photo.vala" - return 0; -#line 22468 "Photo.c" - } -} - - -Orientation -photo_get_orientation (Photo* self) -{ - Orientation result = 0; - GError * _inner_error_ = NULL; -#line 2854 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), 0); -#line 22480 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2855 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2855 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 22487 "Photo.c" - { - PhotoRow* _tmp1_; - Orientation _tmp2_; -#line 2856 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2856 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->orientation; -#line 2856 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_; -#line 22497 "Photo.c" - { - PhotoRow* _tmp3_; -#line 2855 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2855 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 22504 "Photo.c" - } -#line 2856 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 22508 "Photo.c" - } - __finally385: - { - PhotoRow* _tmp4_; -#line 2855 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2855 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 22517 "Photo.c" - } -#line 2855 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2855 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2855 "/home/jens/Source/shotwell/src/Photo.vala" - return 0; -#line 22525 "Photo.c" - } -} - - -gboolean -photo_set_orientation (Photo* self, - Orientation orientation) -{ - gboolean result = FALSE; - gboolean committed = FALSE; - gboolean _tmp11_; - GError * _inner_error_ = NULL; -#line 2860 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 2861 "/home/jens/Source/shotwell/src/Photo.vala" - committed = FALSE; -#line 22542 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2862 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2862 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 22549 "Photo.c" - { - PhotoRow* _tmp1_; - Orientation _tmp2_; -#line 2863 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2863 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->orientation; -#line 2863 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ != orientation) { -#line 22559 "Photo.c" - PhotoTable* _tmp3_; - PhotoTable* _tmp4_; - PhotoRow* _tmp5_; - PhotoID _tmp6_; - gboolean _tmp7_; -#line 2864 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_table_get_instance (); -#line 2864 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 2864 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 2864 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _tmp5_->photo_id; -#line 2864 "/home/jens/Source/shotwell/src/Photo.vala" - committed = photo_table_set_orientation (_tmp4_, &_tmp6_, orientation); -#line 2864 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp4_); -#line 2865 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = committed; -#line 2865 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp7_) { -#line 22581 "Photo.c" - PhotoRow* _tmp8_; -#line 2866 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = self->row; -#line 2866 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_->orientation = orientation; -#line 22587 "Photo.c" - } - } - } - __finally386: - { - PhotoRow* _tmp9_; -#line 2862 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = self->row; -#line 2862 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 22598 "Photo.c" - } -#line 2862 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 22602 "Photo.c" - gboolean _tmp10_ = FALSE; -#line 2862 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2862 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2862 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp10_; -#line 22610 "Photo.c" - } - } -#line 2870 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = committed; -#line 2870 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp11_) { -#line 22617 "Photo.c" - Alteration* _tmp12_; - Alteration* _tmp13_; -#line 2871 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = alteration_new ("image", "orientation"); -#line 2871 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_; -#line 2871 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp13_); -#line 2871 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp13_); -#line 22628 "Photo.c" - } -#line 2873 "/home/jens/Source/shotwell/src/Photo.vala" - result = committed; -#line 2873 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 22634 "Photo.c" -} - - -gboolean -photo_check_can_rotate (Photo* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 2876 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 2877 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->can_rotate_now; -#line 2877 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp0_; -#line 2877 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 22651 "Photo.c" -} - - -static void -photo_real_rotate (Photo* self, - Rotation rotation) -{ - GError * _inner_error_ = NULL; - { - PhotoRow* _tmp0_; -#line 2881 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2881 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 22666 "Photo.c" - { -#line 2882 "/home/jens/Source/shotwell/src/Photo.vala" - photo_set_orientation (self, orientation_perform (photo_get_orientation (self), rotation)); -#line 22670 "Photo.c" - } - __finally387: - { - PhotoRow* _tmp1_; -#line 2881 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2881 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 22679 "Photo.c" - } -#line 2881 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2881 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2881 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2881 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 22689 "Photo.c" - } - } -} - - -void -photo_rotate (Photo* self, - Rotation rotation) -{ -#line 2880 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 2880 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_GET_CLASS (self)->rotate (self, rotation); -#line 22703 "Photo.c" -} - - -static gboolean -photo_has_transformation (Photo* self, - const gchar* name) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 2886 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 2886 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (name != NULL, FALSE); -#line 22717 "Photo.c" - { - PhotoRow* _tmp0_; - gboolean _tmp8_ = FALSE; -#line 2887 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2887 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 22725 "Photo.c" - { - gboolean _tmp1_ = FALSE; - PhotoRow* _tmp2_; - GeeHashMap* _tmp3_; -#line 2888 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->row; -#line 2888 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_->transformations; -#line 2888 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp3_ != NULL) { -#line 22736 "Photo.c" - PhotoRow* _tmp4_; - GeeHashMap* _tmp5_; -#line 2888 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 2888 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_->transformations; -#line 2888 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name); -#line 22745 "Photo.c" - } else { -#line 2888 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = FALSE; -#line 22749 "Photo.c" - } -#line 2888 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp1_; -#line 22753 "Photo.c" - { - PhotoRow* _tmp6_; -#line 2887 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->row; -#line 2887 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 22760 "Photo.c" - } -#line 2888 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 22764 "Photo.c" - } - __finally388: - { - PhotoRow* _tmp7_; -#line 2887 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = self->row; -#line 2887 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 22773 "Photo.c" - } -#line 2887 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2887 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2887 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp8_; -#line 22781 "Photo.c" - } -} - - -static KeyValueMap* -photo_get_transformation (Photo* self, - const gchar* name) -{ - KeyValueMap* result = NULL; - KeyValueMap* map = NULL; - GError * _inner_error_ = NULL; -#line 2895 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 2895 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 2896 "/home/jens/Source/shotwell/src/Photo.vala" - map = NULL; -#line 22799 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2897 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2897 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 22806 "Photo.c" - { - PhotoRow* _tmp1_; - GeeHashMap* _tmp2_; -#line 2898 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2898 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->transformations; -#line 2898 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ != NULL) { -#line 22816 "Photo.c" - PhotoRow* _tmp3_; - GeeHashMap* _tmp4_; - gpointer _tmp5_; - KeyValueMap* _tmp6_; -#line 2899 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2899 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->transformations; -#line 2899 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name); -#line 2899 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (map); -#line 2899 "/home/jens/Source/shotwell/src/Photo.vala" - map = (KeyValueMap*) _tmp5_; -#line 2900 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = map; -#line 2900 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp6_ != NULL) { -#line 22835 "Photo.c" - KeyValueMap* _tmp7_; - KeyValueMap* _tmp8_; -#line 2901 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = map; -#line 2901 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = key_value_map_copy (_tmp7_); -#line 2901 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (map); -#line 2901 "/home/jens/Source/shotwell/src/Photo.vala" - map = _tmp8_; -#line 22846 "Photo.c" - } - } - } - __finally389: - { - PhotoRow* _tmp9_; -#line 2897 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = self->row; -#line 2897 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 22857 "Photo.c" - } -#line 2897 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2897 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (map); -#line 2897 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2897 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2897 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 22869 "Photo.c" - } - } -#line 2905 "/home/jens/Source/shotwell/src/Photo.vala" - result = map; -#line 2905 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 22876 "Photo.c" -} - - -static gboolean -photo_set_transformation (Photo* self, - KeyValueMap* trans) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 2908 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 2908 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_KEY_VALUE_MAP (trans), FALSE); -#line 22890 "Photo.c" - { - PhotoRow* _tmp0_; - gboolean _tmp16_ = FALSE; -#line 2909 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2909 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 22898 "Photo.c" - { - PhotoRow* _tmp1_; - GeeHashMap* _tmp2_; - PhotoRow* _tmp5_; - GeeHashMap* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - PhotoTable* _tmp9_; - PhotoTable* _tmp10_; - PhotoRow* _tmp11_; - PhotoID _tmp12_; - gboolean _tmp13_; -#line 2910 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2910 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->transformations; -#line 2910 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ == NULL) { -#line 22917 "Photo.c" - PhotoRow* _tmp3_; - GeeHashMap* _tmp4_; -#line 2911 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2911 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_KEY_VALUE_MAP, (GBoxedCopyFunc) key_value_map_ref, (GDestroyNotify) key_value_map_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 2911 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp3_->transformations); -#line 2911 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_->transformations = _tmp4_; -#line 22928 "Photo.c" - } -#line 2913 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 2913 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _tmp5_->transformations; -#line 2913 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = key_value_map_get_group (trans); -#line 2913 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _tmp7_; -#line 2913 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_, trans); -#line 2913 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp8_); -#line 2915 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = photo_table_get_instance (); -#line 2915 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_; -#line 2915 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = self->row; -#line 2915 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_->photo_id; -#line 2915 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = photo_table_set_transformation (_tmp10_, &_tmp12_, trans); -#line 2915 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp10_); -#line 2915 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp13_; -#line 22956 "Photo.c" - { - PhotoRow* _tmp14_; -#line 2909 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = self->row; -#line 2909 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 22963 "Photo.c" - } -#line 2915 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 22967 "Photo.c" - } - __finally390: - { - PhotoRow* _tmp15_; -#line 2909 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = self->row; -#line 2909 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 22976 "Photo.c" - } -#line 2909 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2909 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2909 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp16_; -#line 22984 "Photo.c" - } -} - - -static gboolean -photo_remove_transformation (Photo* self, - const gchar* name) -{ - gboolean result = FALSE; - gboolean altered_cache = FALSE; - gboolean altered_persistent = FALSE; - gboolean _tmp17_ = FALSE; - gboolean _tmp18_; - GError * _inner_error_ = NULL; -#line 2919 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 2919 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (name != NULL, FALSE); -#line 23003 "Photo.c" - { - PhotoRow* _tmp0_; -#line 2921 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 2921 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 23010 "Photo.c" - { - PhotoRow* _tmp1_; - GeeHashMap* _tmp2_; - PhotoTable* _tmp11_; - PhotoTable* _tmp12_; - PhotoRow* _tmp13_; - PhotoID _tmp14_; -#line 2922 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->row; -#line 2922 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->transformations; -#line 2922 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ != NULL) { -#line 23024 "Photo.c" - PhotoRow* _tmp3_; - GeeHashMap* _tmp4_; - gboolean _tmp5_; - PhotoRow* _tmp6_; - GeeHashMap* _tmp7_; - gint _tmp8_; - gint _tmp9_; -#line 2923 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->row; -#line 2923 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->transformations; -#line 2923 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name, NULL); -#line 2923 "/home/jens/Source/shotwell/src/Photo.vala" - altered_cache = _tmp5_; -#line 2924 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->row; -#line 2924 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_->transformations; -#line 2924 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 2924 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_; -#line 2924 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp9_ == 0) { -#line 23050 "Photo.c" - PhotoRow* _tmp10_; -#line 2925 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = self->row; -#line 2925 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp10_->transformations); -#line 2925 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_->transformations = NULL; -#line 23058 "Photo.c" - } - } else { -#line 2927 "/home/jens/Source/shotwell/src/Photo.vala" - altered_cache = FALSE; -#line 23063 "Photo.c" - } -#line 2930 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = photo_table_get_instance (); -#line 2930 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_; -#line 2930 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = self->row; -#line 2930 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _tmp13_->photo_id; -#line 2930 "/home/jens/Source/shotwell/src/Photo.vala" - altered_persistent = photo_table_remove_transformation (_tmp12_, &_tmp14_, name); -#line 2930 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp12_); -#line 23077 "Photo.c" - } - __finally391: - { - PhotoRow* _tmp15_; -#line 2921 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = self->row; -#line 2921 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 23086 "Photo.c" - } -#line 2921 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 23090 "Photo.c" - gboolean _tmp16_ = FALSE; -#line 2921 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2921 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 2921 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp16_; -#line 23098 "Photo.c" - } - } -#line 2934 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = altered_cache; -#line 2934 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp18_) { -#line 2934 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = TRUE; -#line 23107 "Photo.c" - } else { -#line 2934 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = altered_persistent; -#line 23111 "Photo.c" - } -#line 2934 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp17_; -#line 2934 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 23117 "Photo.c" -} - - -gboolean -photo_has_crop (Photo* self) -{ - gboolean result = FALSE; -#line 2937 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 2938 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo_has_transformation (self, "crop"); -#line 2938 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 23131 "Photo.c" -} - - -gboolean -photo_get_raw_crop (Photo* self, - Box* crop) -{ - Box _vala_crop = {0}; - gboolean result = FALSE; - KeyValueMap* map = NULL; - KeyValueMap* _tmp0_; - KeyValueMap* _tmp1_; - gint left = 0; - KeyValueMap* _tmp2_; - gint top = 0; - KeyValueMap* _tmp3_; - gint right = 0; - KeyValueMap* _tmp4_; - gint bottom = 0; - KeyValueMap* _tmp5_; - gboolean _tmp6_ = FALSE; - gboolean _tmp7_ = FALSE; - gboolean _tmp8_ = FALSE; - gint _tmp9_; - gint _tmp13_; - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; -#line 2942 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 2943 "/home/jens/Source/shotwell/src/Photo.vala" - box_init (&_vala_crop, 0, 0, 0, 0); -#line 2945 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_transformation (self, "crop"); -#line 2945 "/home/jens/Source/shotwell/src/Photo.vala" - map = _tmp0_; -#line 2946 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = map; -#line 2946 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ == NULL) { -#line 2947 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 2947 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (map); -#line 2947 "/home/jens/Source/shotwell/src/Photo.vala" - if (crop) { -#line 2947 "/home/jens/Source/shotwell/src/Photo.vala" - *crop = _vala_crop; -#line 23180 "Photo.c" - } -#line 2947 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 23184 "Photo.c" - } -#line 2949 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = map; -#line 2949 "/home/jens/Source/shotwell/src/Photo.vala" - left = key_value_map_get_int (_tmp2_, "left", -1); -#line 2950 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = map; -#line 2950 "/home/jens/Source/shotwell/src/Photo.vala" - top = key_value_map_get_int (_tmp3_, "top", -1); -#line 2951 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = map; -#line 2951 "/home/jens/Source/shotwell/src/Photo.vala" - right = key_value_map_get_int (_tmp4_, "right", -1); -#line 2952 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = map; -#line 2952 "/home/jens/Source/shotwell/src/Photo.vala" - bottom = key_value_map_get_int (_tmp5_, "bottom", -1); -#line 2954 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = left; -#line 2954 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp9_ == -1) { -#line 2954 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = TRUE; -#line 23208 "Photo.c" - } else { - gint _tmp10_; -#line 2954 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = top; -#line 2954 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _tmp10_ == -1; -#line 23215 "Photo.c" - } -#line 2954 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp8_) { -#line 2954 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = TRUE; -#line 23221 "Photo.c" - } else { - gint _tmp11_; -#line 2954 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = right; -#line 2954 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp11_ == -1; -#line 23228 "Photo.c" - } -#line 2954 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp7_) { -#line 2954 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = TRUE; -#line 23234 "Photo.c" - } else { - gint _tmp12_; -#line 2954 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = bottom; -#line 2954 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _tmp12_ == -1; -#line 23241 "Photo.c" - } -#line 2954 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp6_) { -#line 2955 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 2955 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (map); -#line 2955 "/home/jens/Source/shotwell/src/Photo.vala" - if (crop) { -#line 2955 "/home/jens/Source/shotwell/src/Photo.vala" - *crop = _vala_crop; -#line 23253 "Photo.c" - } -#line 2955 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 23257 "Photo.c" - } -#line 2957 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = left; -#line 2957 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = top; -#line 2957 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = right; -#line 2957 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = bottom; -#line 2957 "/home/jens/Source/shotwell/src/Photo.vala" - box_init (&_vala_crop, _tmp13_, _tmp14_, _tmp15_, _tmp16_); -#line 2959 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 2959 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (map); -#line 2959 "/home/jens/Source/shotwell/src/Photo.vala" - if (crop) { -#line 2959 "/home/jens/Source/shotwell/src/Photo.vala" - *crop = _vala_crop; -#line 23277 "Photo.c" - } -#line 2959 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 23281 "Photo.c" -} - - -static void -photo_set_raw_crop (Photo* self, - Box* crop) -{ - KeyValueMap* map = NULL; - KeyValueMap* _tmp0_; - KeyValueMap* _tmp1_; - Box _tmp2_; - gint _tmp3_; - KeyValueMap* _tmp4_; - Box _tmp5_; - gint _tmp6_; - KeyValueMap* _tmp7_; - Box _tmp8_; - gint _tmp9_; - KeyValueMap* _tmp10_; - Box _tmp11_; - gint _tmp12_; - KeyValueMap* _tmp13_; -#line 2963 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 2963 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (crop != NULL); -#line 2964 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = key_value_map_new ("crop"); -#line 2964 "/home/jens/Source/shotwell/src/Photo.vala" - map = _tmp0_; -#line 2965 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = map; -#line 2965 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = *crop; -#line 2965 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_.left; -#line 2965 "/home/jens/Source/shotwell/src/Photo.vala" - key_value_map_set_int (_tmp1_, "left", _tmp3_); -#line 2966 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = map; -#line 2966 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = *crop; -#line 2966 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _tmp5_.top; -#line 2966 "/home/jens/Source/shotwell/src/Photo.vala" - key_value_map_set_int (_tmp4_, "top", _tmp6_); -#line 2967 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = map; -#line 2967 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = *crop; -#line 2967 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_.right; -#line 2967 "/home/jens/Source/shotwell/src/Photo.vala" - key_value_map_set_int (_tmp7_, "right", _tmp9_); -#line 2968 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = map; -#line 2968 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = *crop; -#line 2968 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_.bottom; -#line 2968 "/home/jens/Source/shotwell/src/Photo.vala" - key_value_map_set_int (_tmp10_, "bottom", _tmp12_); -#line 2970 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = map; -#line 2970 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_set_transformation (self, _tmp13_)) { -#line 23348 "Photo.c" - Alteration* _tmp14_; - Alteration* _tmp15_; -#line 2971 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = alteration_new ("image", "crop"); -#line 2971 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_; -#line 2971 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp15_); -#line 2971 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp15_); -#line 23359 "Photo.c" - } -#line 2963 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (map); -#line 23363 "Photo.c" -} - - -static gboolean -photo_get_raw_straighten (Photo* self, - gdouble* angle) -{ - gdouble _vala_angle = 0.0; - gboolean result = FALSE; - KeyValueMap* map = NULL; - KeyValueMap* _tmp0_; - KeyValueMap* _tmp1_; - KeyValueMap* _tmp2_; -#line 2974 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 2975 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_transformation (self, "straighten"); -#line 2975 "/home/jens/Source/shotwell/src/Photo.vala" - map = _tmp0_; -#line 2976 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = map; -#line 2976 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ == NULL) { -#line 2977 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_angle = 0.0; -#line 2979 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 2979 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (map); -#line 2979 "/home/jens/Source/shotwell/src/Photo.vala" - if (angle) { -#line 2979 "/home/jens/Source/shotwell/src/Photo.vala" - *angle = _vala_angle; -#line 23397 "Photo.c" - } -#line 2979 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 23401 "Photo.c" - } -#line 2982 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = map; -#line 2982 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_angle = key_value_map_get_double (_tmp2_, "angle", 0.0); -#line 2984 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 2984 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (map); -#line 2984 "/home/jens/Source/shotwell/src/Photo.vala" - if (angle) { -#line 2984 "/home/jens/Source/shotwell/src/Photo.vala" - *angle = _vala_angle; -#line 23415 "Photo.c" - } -#line 2984 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 23419 "Photo.c" -} - - -static void -photo_set_raw_straighten (Photo* self, - gdouble theta) -{ - KeyValueMap* map = NULL; - KeyValueMap* _tmp0_; - KeyValueMap* _tmp1_; - KeyValueMap* _tmp2_; -#line 2987 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 2988 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = key_value_map_new ("straighten"); -#line 2988 "/home/jens/Source/shotwell/src/Photo.vala" - map = _tmp0_; -#line 2989 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = map; -#line 2989 "/home/jens/Source/shotwell/src/Photo.vala" - key_value_map_set_double (_tmp1_, "angle", theta); -#line 2991 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = map; -#line 2991 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_set_transformation (self, _tmp2_)) { -#line 23445 "Photo.c" - Alteration* _tmp3_; - Alteration* _tmp4_; -#line 2992 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = alteration_new ("image", "straighten"); -#line 2992 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 2992 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp4_); -#line 2992 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp4_); -#line 23456 "Photo.c" - } -#line 2987 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (map); -#line 23460 "Photo.c" -} - - -static EditingToolsRedeyeInstance* -photo_get_raw_redeye_instances (Photo* self, - int* result_length1) -{ - EditingToolsRedeyeInstance* result = NULL; - KeyValueMap* map = NULL; - KeyValueMap* _tmp0_; - KeyValueMap* _tmp1_; - gint num_points = 0; - KeyValueMap* _tmp4_; - gint _tmp5_; - EditingToolsRedeyeInstance* res = NULL; - gint _tmp6_; - EditingToolsRedeyeInstance* _tmp7_; - gint res_length1; - gint _res_size_; - GdkPoint default_point = {0}; - GdkPoint _tmp8_ = {0}; - EditingToolsRedeyeInstance* _tmp45_; - gint _tmp45__length1; -#line 2997 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 2998 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_transformation (self, "redeye"); -#line 2998 "/home/jens/Source/shotwell/src/Photo.vala" - map = _tmp0_; -#line 2999 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = map; -#line 2999 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ == NULL) { -#line 23494 "Photo.c" - EditingToolsRedeyeInstance* _tmp2_; - EditingToolsRedeyeInstance* _tmp3_; - gint _tmp3__length1; -#line 3000 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = g_new0 (EditingToolsRedeyeInstance, 0); -#line 3000 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_; -#line 3000 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3__length1 = 0; -#line 3000 "/home/jens/Source/shotwell/src/Photo.vala" - if (result_length1) { -#line 3000 "/home/jens/Source/shotwell/src/Photo.vala" - *result_length1 = _tmp3__length1; -#line 23508 "Photo.c" - } -#line 3000 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 3000 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (map); -#line 3000 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 23516 "Photo.c" - } -#line 3002 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = map; -#line 3002 "/home/jens/Source/shotwell/src/Photo.vala" - num_points = key_value_map_get_int (_tmp4_, "num_points", -1); -#line 3003 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = num_points; -#line 3003 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (_tmp5_ > 0, "num_points > 0"); -#line 3005 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = num_points; -#line 3005 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = g_new0 (EditingToolsRedeyeInstance, _tmp6_); -#line 3005 "/home/jens/Source/shotwell/src/Photo.vala" - res = _tmp7_; -#line 3005 "/home/jens/Source/shotwell/src/Photo.vala" - res_length1 = _tmp6_; -#line 3005 "/home/jens/Source/shotwell/src/Photo.vala" - _res_size_ = res_length1; -#line 3007 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_.x = 0; -#line 3007 "/home/jens/Source/shotwell/src/Photo.vala" - default_point = _tmp8_; -#line 3008 "/home/jens/Source/shotwell/src/Photo.vala" - default_point.x = -1; -#line 3009 "/home/jens/Source/shotwell/src/Photo.vala" - default_point.y = -1; -#line 23544 "Photo.c" - { - gint i = 0; -#line 3011 "/home/jens/Source/shotwell/src/Photo.vala" - i = 0; -#line 23549 "Photo.c" - { - gboolean _tmp9_ = FALSE; -#line 3011 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = TRUE; -#line 3011 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 23556 "Photo.c" - gint _tmp11_; - gint _tmp12_; - gchar* center_key = NULL; - gint _tmp13_; - gchar* _tmp14_; - gchar* radius_key = NULL; - gint _tmp15_; - gchar* _tmp16_; - EditingToolsRedeyeInstance* _tmp17_; - gint _tmp17__length1; - gint _tmp18_; - KeyValueMap* _tmp19_; - const gchar* _tmp20_; - GdkPoint _tmp21_; - GdkPoint _tmp22_ = {0}; - EditingToolsRedeyeInstance* _tmp23_; - gint _tmp23__length1; - gint _tmp24_; - EditingToolsRedeyeInstance _tmp25_; - GdkPoint _tmp26_; - gint _tmp27_; - GdkPoint _tmp28_; - gint _tmp29_; - EditingToolsRedeyeInstance* _tmp30_; - gint _tmp30__length1; - gint _tmp31_; - EditingToolsRedeyeInstance _tmp32_; - GdkPoint _tmp33_; - gint _tmp34_; - GdkPoint _tmp35_; - gint _tmp36_; - EditingToolsRedeyeInstance* _tmp37_; - gint _tmp37__length1; - gint _tmp38_; - KeyValueMap* _tmp39_; - const gchar* _tmp40_; - EditingToolsRedeyeInstance* _tmp41_; - gint _tmp41__length1; - gint _tmp42_; - EditingToolsRedeyeInstance _tmp43_; - gint _tmp44_; -#line 3011 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp9_) { -#line 23600 "Photo.c" - gint _tmp10_; -#line 3011 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = i; -#line 3011 "/home/jens/Source/shotwell/src/Photo.vala" - i = _tmp10_ + 1; -#line 23606 "Photo.c" - } -#line 3011 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = FALSE; -#line 3011 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = i; -#line 3011 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = num_points; -#line 3011 "/home/jens/Source/shotwell/src/Photo.vala" - if (!(_tmp11_ < _tmp12_)) { -#line 3011 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 23618 "Photo.c" - } -#line 3012 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = i; -#line 3012 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = g_strdup_printf ("center%d", _tmp13_); -#line 3012 "/home/jens/Source/shotwell/src/Photo.vala" - center_key = _tmp14_; -#line 3013 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = i; -#line 3013 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = g_strdup_printf ("radius%d", _tmp15_); -#line 3013 "/home/jens/Source/shotwell/src/Photo.vala" - radius_key = _tmp16_; -#line 3015 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = res; -#line 3015 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17__length1 = res_length1; -#line 3015 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = i; -#line 3015 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = map; -#line 3015 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = center_key; -#line 3015 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = default_point; -#line 3015 "/home/jens/Source/shotwell/src/Photo.vala" - key_value_map_get_point (_tmp19_, _tmp20_, &_tmp21_, &_tmp22_); -#line 3015 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_[_tmp18_].center = _tmp22_; -#line 3016 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = res; -#line 3016 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23__length1 = res_length1; -#line 3016 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = i; -#line 3016 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = _tmp23_[_tmp24_]; -#line 3016 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = _tmp25_.center; -#line 3016 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = _tmp26_.x; -#line 3016 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = default_point; -#line 3016 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = _tmp28_.x; -#line 3016 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (_tmp27_ != _tmp29_, "res[i].center.x != default_point.x"); -#line 3017 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = res; -#line 3017 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30__length1 = res_length1; -#line 3017 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = i; -#line 3017 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = _tmp30_[_tmp31_]; -#line 3017 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = _tmp32_.center; -#line 3017 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = _tmp33_.y; -#line 3017 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = default_point; -#line 3017 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = _tmp35_.y; -#line 3017 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (_tmp34_ != _tmp36_, "res[i].center.y != default_point.y"); -#line 3019 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = res; -#line 3019 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37__length1 = res_length1; -#line 3019 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = i; -#line 3019 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = map; -#line 3019 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = radius_key; -#line 3019 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_[_tmp38_].radius = key_value_map_get_int (_tmp39_, _tmp40_, -1); -#line 3020 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = res; -#line 3020 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41__length1 = res_length1; -#line 3020 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = i; -#line 3020 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = _tmp41_[_tmp42_]; -#line 3020 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = _tmp43_.radius; -#line 3020 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (_tmp44_ != -1, "res[i].radius != -1"); -#line 3011 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (radius_key); -#line 3011 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (center_key); -#line 23712 "Photo.c" - } - } - } -#line 3023 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = res; -#line 3023 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45__length1 = res_length1; -#line 3023 "/home/jens/Source/shotwell/src/Photo.vala" - if (result_length1) { -#line 3023 "/home/jens/Source/shotwell/src/Photo.vala" - *result_length1 = _tmp45__length1; -#line 23724 "Photo.c" - } -#line 3023 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp45_; -#line 3023 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (map); -#line 3023 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 23732 "Photo.c" -} - - -gboolean -photo_has_redeye_transformations (Photo* self) -{ - gboolean result = FALSE; -#line 3026 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 3027 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo_has_transformation (self, "redeye"); -#line 3027 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 23746 "Photo.c" -} - - -void -photo_add_redeye_instance (Photo* self, - EditingToolsRedeyeInstance* redeye) -{ - KeyValueMap* map = NULL; - KeyValueMap* _tmp0_; - KeyValueMap* _tmp1_; - gint num_points = 0; - KeyValueMap* _tmp4_; - gint _tmp5_; - gint _tmp6_; - gchar* radius_key = NULL; - gint _tmp7_; - gchar* _tmp8_; - gchar* center_key = NULL; - gint _tmp9_; - gchar* _tmp10_; - KeyValueMap* _tmp11_; - const gchar* _tmp12_; - EditingToolsRedeyeInstance _tmp13_; - gint _tmp14_; - KeyValueMap* _tmp15_; - const gchar* _tmp16_; - EditingToolsRedeyeInstance _tmp17_; - GdkPoint _tmp18_; - KeyValueMap* _tmp19_; - gint _tmp20_; - KeyValueMap* _tmp21_; -#line 3031 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 3031 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (redeye != NULL); -#line 3032 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_transformation (self, "redeye"); -#line 3032 "/home/jens/Source/shotwell/src/Photo.vala" - map = _tmp0_; -#line 3033 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = map; -#line 3033 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ == NULL) { -#line 23790 "Photo.c" - KeyValueMap* _tmp2_; - KeyValueMap* _tmp3_; -#line 3034 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = key_value_map_new ("redeye"); -#line 3034 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (map); -#line 3034 "/home/jens/Source/shotwell/src/Photo.vala" - map = _tmp2_; -#line 3035 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = map; -#line 3035 "/home/jens/Source/shotwell/src/Photo.vala" - key_value_map_set_int (_tmp3_, "num_points", 0); -#line 23803 "Photo.c" - } -#line 3038 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = map; -#line 3038 "/home/jens/Source/shotwell/src/Photo.vala" - num_points = key_value_map_get_int (_tmp4_, "num_points", -1); -#line 3039 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = num_points; -#line 3039 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (_tmp5_ >= 0, "num_points >= 0"); -#line 3041 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = num_points; -#line 3041 "/home/jens/Source/shotwell/src/Photo.vala" - num_points = _tmp6_ + 1; -#line 3043 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = num_points; -#line 3043 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = g_strdup_printf ("radius%d", _tmp7_ - 1); -#line 3043 "/home/jens/Source/shotwell/src/Photo.vala" - radius_key = _tmp8_; -#line 3044 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = num_points; -#line 3044 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = g_strdup_printf ("center%d", _tmp9_ - 1); -#line 3044 "/home/jens/Source/shotwell/src/Photo.vala" - center_key = _tmp10_; -#line 3046 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = map; -#line 3046 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = radius_key; -#line 3046 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = *redeye; -#line 3046 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _tmp13_.radius; -#line 3046 "/home/jens/Source/shotwell/src/Photo.vala" - key_value_map_set_int (_tmp11_, _tmp12_, _tmp14_); -#line 3047 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = map; -#line 3047 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = center_key; -#line 3047 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = *redeye; -#line 3047 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp17_.center; -#line 3047 "/home/jens/Source/shotwell/src/Photo.vala" - key_value_map_set_point (_tmp15_, _tmp16_, &_tmp18_); -#line 3049 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = map; -#line 3049 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = num_points; -#line 3049 "/home/jens/Source/shotwell/src/Photo.vala" - key_value_map_set_int (_tmp19_, "num_points", _tmp20_); -#line 3051 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = map; -#line 3051 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_set_transformation (self, _tmp21_)) { -#line 23859 "Photo.c" - Alteration* _tmp22_; - Alteration* _tmp23_; -#line 3052 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = alteration_new ("image", "redeye"); -#line 3052 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _tmp22_; -#line 3052 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp23_); -#line 3052 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp23_); -#line 23870 "Photo.c" - } -#line 3031 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (center_key); -#line 3031 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (radius_key); -#line 3031 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (map); -#line 23878 "Photo.c" -} - - -static gboolean -photo_calculate_pixbuf_dimensions (Photo* self, - Scaling* scaling, - PhotoException exceptions, - Dimensions* scaled_image, - Dimensions* scaled_to_viewport) -{ - Dimensions _vala_scaled_image = {0}; - Dimensions _vala_scaled_to_viewport = {0}; - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 3066 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 3066 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (scaling != NULL, FALSE); -#line 23897 "Photo.c" - { - PhotoRow* _tmp0_; - gboolean _tmp7_ = FALSE; -#line 3068 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 3068 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 23905 "Photo.c" - { - Scaling _tmp1_; - Dimensions _tmp2_ = {0}; - Dimensions _tmp3_ = {0}; - gboolean _tmp4_; -#line 3070 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = *scaling; -#line 3070 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = photo_locked_calculate_pixbuf_dimensions (self, &_tmp1_, exceptions, &_tmp2_, &_tmp3_); -#line 3070 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_scaled_image = _tmp2_; -#line 3070 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_scaled_to_viewport = _tmp3_; -#line 3070 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp4_; -#line 23921 "Photo.c" - { - PhotoRow* _tmp5_; -#line 3068 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->row; -#line 3068 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 23928 "Photo.c" - } -#line 3070 "/home/jens/Source/shotwell/src/Photo.vala" - if (scaled_image) { -#line 3070 "/home/jens/Source/shotwell/src/Photo.vala" - *scaled_image = _vala_scaled_image; -#line 23934 "Photo.c" - } -#line 3070 "/home/jens/Source/shotwell/src/Photo.vala" - if (scaled_to_viewport) { -#line 3070 "/home/jens/Source/shotwell/src/Photo.vala" - *scaled_to_viewport = _vala_scaled_to_viewport; -#line 23940 "Photo.c" - } -#line 3070 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 23944 "Photo.c" - } - __finally392: - { - PhotoRow* _tmp6_; -#line 3068 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->row; -#line 3068 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 23953 "Photo.c" - } -#line 3068 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 3068 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 3068 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp7_; -#line 23961 "Photo.c" - } -#line 3066 "/home/jens/Source/shotwell/src/Photo.vala" - if (scaled_image) { -#line 3066 "/home/jens/Source/shotwell/src/Photo.vala" - *scaled_image = _vala_scaled_image; -#line 23967 "Photo.c" - } -#line 3066 "/home/jens/Source/shotwell/src/Photo.vala" - if (scaled_to_viewport) { -#line 3066 "/home/jens/Source/shotwell/src/Photo.vala" - *scaled_to_viewport = _vala_scaled_to_viewport; -#line 23973 "Photo.c" - } -} - - -static gboolean -photo_locked_calculate_pixbuf_dimensions (Photo* self, - Scaling* scaling, - PhotoException exceptions, - Dimensions* scaled_image, - Dimensions* scaled_to_viewport) -{ - Dimensions _vala_scaled_image = {0}; - Dimensions _vala_scaled_to_viewport = {0}; - gboolean result = FALSE; - Dimensions raw = {0}; - Dimensions _tmp0_ = {0}; - Orientation orientation = 0; - gboolean _tmp36_ = FALSE; - Dimensions _tmp37_; - gint _tmp38_; - Dimensions _tmp39_; - gint _tmp40_; -#line 3076 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 3076 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (scaling != NULL, FALSE); -#line 3078 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_raw_dimensions (self, &_tmp0_); -#line 3078 "/home/jens/Source/shotwell/src/Photo.vala" - raw = _tmp0_; -#line 3080 "/home/jens/Source/shotwell/src/Photo.vala" - if (scaling_is_unscaled (scaling)) { -#line 24006 "Photo.c" - Dimensions _tmp1_; - Dimensions _tmp2_; -#line 3081 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = raw; -#line 3081 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_scaled_image = _tmp1_; -#line 3082 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = raw; -#line 3082 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_scaled_to_viewport = _tmp2_; -#line 3084 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 3084 "/home/jens/Source/shotwell/src/Photo.vala" - if (scaled_image) { -#line 3084 "/home/jens/Source/shotwell/src/Photo.vala" - *scaled_image = _vala_scaled_image; -#line 24023 "Photo.c" - } -#line 3084 "/home/jens/Source/shotwell/src/Photo.vala" - if (scaled_to_viewport) { -#line 3084 "/home/jens/Source/shotwell/src/Photo.vala" - *scaled_to_viewport = _vala_scaled_to_viewport; -#line 24029 "Photo.c" - } -#line 3084 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 24033 "Photo.c" - } -#line 3087 "/home/jens/Source/shotwell/src/Photo.vala" - orientation = photo_get_orientation (self); -#line 3092 "/home/jens/Source/shotwell/src/Photo.vala" - dimensions_init (&_vala_scaled_image, 0, 0); -#line 3093 "/home/jens/Source/shotwell/src/Photo.vala" - dimensions_init (&_vala_scaled_to_viewport, 0, 0); -#line 3095 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_CROP)) { -#line 24043 "Photo.c" - Box crop = {0}; - Box _tmp3_ = {0}; - gboolean _tmp4_; -#line 3097 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = photo_get_raw_crop (self, &_tmp3_); -#line 3097 "/home/jens/Source/shotwell/src/Photo.vala" - crop = _tmp3_; -#line 3097 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp4_) { -#line 24053 "Photo.c" - Dimensions rotated_raw = {0}; - Dimensions _tmp5_; - Box scaled_crop = {0}; - Dimensions _tmp13_ = {0}; - Dimensions _tmp14_ = {0}; - Box _tmp15_ = {0}; - Dimensions _tmp16_ = {0}; - gboolean _tmp17_ = FALSE; - Dimensions _tmp20_ = {0}; - Dimensions _tmp21_ = {0}; - Dimensions _tmp22_ = {0}; -#line 3100 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = raw; -#line 3100 "/home/jens/Source/shotwell/src/Photo.vala" - rotated_raw = _tmp5_; -#line 3101 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_ORIENTATION)) { -#line 24071 "Photo.c" - Orientation _tmp6_; - Dimensions _tmp7_; - Box _tmp8_; - Box _tmp9_ = {0}; - Orientation _tmp10_; - Dimensions _tmp11_; - Dimensions _tmp12_ = {0}; -#line 3102 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = orientation; -#line 3102 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = raw; -#line 3102 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = crop; -#line 3102 "/home/jens/Source/shotwell/src/Photo.vala" - orientation_rotate_box (_tmp6_, &_tmp7_, &_tmp8_, &_tmp9_); -#line 3102 "/home/jens/Source/shotwell/src/Photo.vala" - crop = _tmp9_; -#line 3103 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = orientation; -#line 3103 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = raw; -#line 3103 "/home/jens/Source/shotwell/src/Photo.vala" - orientation_rotate_dimensions (_tmp10_, &_tmp11_, &_tmp12_); -#line 3103 "/home/jens/Source/shotwell/src/Photo.vala" - rotated_raw = _tmp12_; -#line 24097 "Photo.c" - } -#line 3107 "/home/jens/Source/shotwell/src/Photo.vala" - box_get_dimensions (&crop, &_tmp13_); -#line 3107 "/home/jens/Source/shotwell/src/Photo.vala" - scaling_get_scaled_dimensions (scaling, &_tmp13_, &_tmp14_); -#line 3107 "/home/jens/Source/shotwell/src/Photo.vala" - box_get_scaled (&crop, &_tmp14_, &_tmp15_); -#line 3107 "/home/jens/Source/shotwell/src/Photo.vala" - scaled_crop = _tmp15_; -#line 3110 "/home/jens/Source/shotwell/src/Photo.vala" - box_get_dimensions (&scaled_crop, &_tmp16_); -#line 3110 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_scaled_to_viewport = _tmp16_; -#line 3113 "/home/jens/Source/shotwell/src/Photo.vala" - if (box_get_width (&crop) <= box_get_width (&scaled_crop)) { -#line 3114 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = box_get_height (&crop) <= box_get_height (&scaled_crop); -#line 24115 "Photo.c" - } else { -#line 3113 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = FALSE; -#line 24119 "Photo.c" - } -#line 3113 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp17_) { -#line 24123 "Photo.c" - Dimensions _tmp18_; - Dimensions _tmp19_ = {0}; -#line 3115 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = raw; -#line 3115 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_scaled_image = _tmp18_; -#line 3116 "/home/jens/Source/shotwell/src/Photo.vala" - box_get_dimensions (&crop, &_tmp19_); -#line 3116 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_scaled_to_viewport = _tmp19_; -#line 3118 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 3118 "/home/jens/Source/shotwell/src/Photo.vala" - if (scaled_image) { -#line 3118 "/home/jens/Source/shotwell/src/Photo.vala" - *scaled_image = _vala_scaled_image; -#line 24140 "Photo.c" - } -#line 3118 "/home/jens/Source/shotwell/src/Photo.vala" - if (scaled_to_viewport) { -#line 3118 "/home/jens/Source/shotwell/src/Photo.vala" - *scaled_to_viewport = _vala_scaled_to_viewport; -#line 24146 "Photo.c" - } -#line 3118 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 24150 "Photo.c" - } -#line 3123 "/home/jens/Source/shotwell/src/Photo.vala" - box_get_dimensions (&crop, &_tmp20_); -#line 3123 "/home/jens/Source/shotwell/src/Photo.vala" - box_get_dimensions (&scaled_crop, &_tmp21_); -#line 3123 "/home/jens/Source/shotwell/src/Photo.vala" - dimensions_get_scaled_similar (&rotated_raw, &_tmp20_, &_tmp21_, &_tmp22_); -#line 3123 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_scaled_image = _tmp22_; -#line 3127 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_ORIENTATION)) { -#line 24162 "Photo.c" - Orientation _tmp23_; - Dimensions _tmp24_; - Dimensions _tmp25_ = {0}; -#line 3128 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = orientation; -#line 3128 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = _vala_scaled_image; -#line 3128 "/home/jens/Source/shotwell/src/Photo.vala" - orientation_derotate_dimensions (_tmp23_, &_tmp24_, &_tmp25_); -#line 3128 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_scaled_image = _tmp25_; -#line 24174 "Photo.c" - } - } - } -#line 3133 "/home/jens/Source/shotwell/src/Photo.vala" - if (!dimensions_has_area (&_vala_scaled_image)) { -#line 24180 "Photo.c" - Dimensions rotated_raw = {0}; - Dimensions _tmp26_; - Dimensions _tmp30_; - Dimensions _tmp31_ = {0}; - Dimensions _tmp32_; -#line 3135 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = raw; -#line 3135 "/home/jens/Source/shotwell/src/Photo.vala" - rotated_raw = _tmp26_; -#line 3136 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_ORIENTATION)) { -#line 24192 "Photo.c" - Orientation _tmp27_; - Dimensions _tmp28_; - Dimensions _tmp29_ = {0}; -#line 3137 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = orientation; -#line 3137 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = raw; -#line 3137 "/home/jens/Source/shotwell/src/Photo.vala" - orientation_rotate_dimensions (_tmp27_, &_tmp28_, &_tmp29_); -#line 3137 "/home/jens/Source/shotwell/src/Photo.vala" - rotated_raw = _tmp29_; -#line 24204 "Photo.c" - } -#line 3139 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = rotated_raw; -#line 3139 "/home/jens/Source/shotwell/src/Photo.vala" - scaling_get_scaled_dimensions (scaling, &_tmp30_, &_tmp31_); -#line 3139 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_scaled_image = _tmp31_; -#line 3140 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = _vala_scaled_image; -#line 3140 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_scaled_to_viewport = _tmp32_; -#line 3143 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_ORIENTATION)) { -#line 24218 "Photo.c" - Orientation _tmp33_; - Dimensions _tmp34_; - Dimensions _tmp35_ = {0}; -#line 3144 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = orientation; -#line 3144 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = _vala_scaled_image; -#line 3144 "/home/jens/Source/shotwell/src/Photo.vala" - orientation_derotate_dimensions (_tmp33_, &_tmp34_, &_tmp35_); -#line 3144 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_scaled_image = _tmp35_; -#line 24230 "Photo.c" - } - } -#line 3148 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = _vala_scaled_image; -#line 3148 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = _tmp37_.width; -#line 3148 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = raw; -#line 3148 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = _tmp39_.width; -#line 3148 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp38_ >= _tmp40_) { -#line 24243 "Photo.c" - Dimensions _tmp41_; - gint _tmp42_; - Dimensions _tmp43_; - gint _tmp44_; -#line 3148 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = _vala_scaled_image; -#line 3148 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = _tmp41_.height; -#line 3148 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = raw; -#line 3148 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = _tmp43_.height; -#line 3148 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = _tmp42_ >= _tmp44_; -#line 24258 "Photo.c" - } else { -#line 3148 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = FALSE; -#line 24262 "Photo.c" - } -#line 3148 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp36_) { -#line 24266 "Photo.c" - Dimensions _tmp45_; -#line 3149 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = raw; -#line 3149 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_scaled_image = _tmp45_; -#line 3151 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 3151 "/home/jens/Source/shotwell/src/Photo.vala" - if (scaled_image) { -#line 3151 "/home/jens/Source/shotwell/src/Photo.vala" - *scaled_image = _vala_scaled_image; -#line 24278 "Photo.c" - } -#line 3151 "/home/jens/Source/shotwell/src/Photo.vala" - if (scaled_to_viewport) { -#line 3151 "/home/jens/Source/shotwell/src/Photo.vala" - *scaled_to_viewport = _vala_scaled_to_viewport; -#line 24284 "Photo.c" - } -#line 3151 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 24288 "Photo.c" - } -#line 3154 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (dimensions_has_area (&_vala_scaled_image), "scaled_image.has_area()"); -#line 3155 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (dimensions_has_area (&_vala_scaled_to_viewport), "scaled_to_viewport.has_area()"); -#line 3157 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 3157 "/home/jens/Source/shotwell/src/Photo.vala" - if (scaled_image) { -#line 3157 "/home/jens/Source/shotwell/src/Photo.vala" - *scaled_image = _vala_scaled_image; -#line 24300 "Photo.c" - } -#line 3157 "/home/jens/Source/shotwell/src/Photo.vala" - if (scaled_to_viewport) { -#line 3157 "/home/jens/Source/shotwell/src/Photo.vala" - *scaled_to_viewport = _vala_scaled_to_viewport; -#line 24306 "Photo.c" - } -#line 3157 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 24310 "Photo.c" -} - - -static GdkPixbuf* -photo_load_raw_pixbuf (Photo* self, - Scaling* scaling, - PhotoException exceptions, - BackingFetchMode fetch_mode, - GError** error) -{ - GdkPixbuf* result = NULL; - PhotoFileReader* loader = NULL; - PhotoFileReader* _tmp0_; - Dimensions scaled_image = {0}; - Dimensions scaled_to_viewport = {0}; - gboolean is_scaled = FALSE; - Scaling _tmp5_; - Dimensions _tmp6_ = {0}; - Dimensions _tmp7_ = {0}; - gboolean _tmp8_; - gboolean _tmp9_; - GdkPixbuf* pixbuf = NULL; - PhotoFileReader* _tmp14_; - Dimensions _tmp15_ = {0}; - Dimensions _tmp16_; - GdkPixbuf* _tmp17_; - GdkPixbuf* _tmp18_; - Dimensions _tmp19_ = {0}; - GError * _inner_error_ = NULL; -#line 3163 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 3163 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 3166 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_backing_reader (self, fetch_mode); -#line 3166 "/home/jens/Source/shotwell/src/Photo.vala" - loader = _tmp0_; -#line 3169 "/home/jens/Source/shotwell/src/Photo.vala" - if (scaling_is_unscaled (scaling)) { -#line 24350 "Photo.c" - GdkPixbuf* _tmp1_ = NULL; - PhotoFileReader* _tmp2_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; -#line 3174 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = loader; -#line 3174 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_file_reader_unscaled_read (_tmp2_, &_inner_error_); -#line 3174 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp3_; -#line 3174 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3174 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3174 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (loader); -#line 3174 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 24369 "Photo.c" - } -#line 3174 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp1_; -#line 3174 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = NULL; -#line 3174 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp4_; -#line 3174 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp1_); -#line 3174 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (loader); -#line 3174 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 24383 "Photo.c" - } -#line 3179 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = *scaling; -#line 3179 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = photo_calculate_pixbuf_dimensions (self, &_tmp5_, exceptions, &_tmp6_, &_tmp7_); -#line 3179 "/home/jens/Source/shotwell/src/Photo.vala" - scaled_image = _tmp6_; -#line 3179 "/home/jens/Source/shotwell/src/Photo.vala" - scaled_to_viewport = _tmp7_; -#line 3179 "/home/jens/Source/shotwell/src/Photo.vala" - is_scaled = _tmp8_; -#line 3181 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = is_scaled; -#line 3181 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp9_) { -#line 24399 "Photo.c" - GdkPixbuf* _tmp10_ = NULL; - PhotoFileReader* _tmp11_; - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; -#line 3186 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = loader; -#line 3186 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = photo_file_reader_unscaled_read (_tmp11_, &_inner_error_); -#line 3186 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp12_; -#line 3186 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3186 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3186 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (loader); -#line 3186 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 24418 "Photo.c" - } -#line 3186 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp10_; -#line 3186 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = NULL; -#line 3186 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp13_; -#line 3186 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp10_); -#line 3186 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (loader); -#line 3186 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 24432 "Photo.c" - } -#line 3189 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = loader; -#line 3189 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_raw_dimensions (self, &_tmp15_); -#line 3189 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = scaled_image; -#line 3189 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = photo_file_reader_scaled_read (_tmp14_, &_tmp15_, &_tmp16_, &_inner_error_); -#line 3189 "/home/jens/Source/shotwell/src/Photo.vala" - pixbuf = _tmp17_; -#line 3189 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3189 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3189 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (loader); -#line 3189 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 24452 "Photo.c" - } -#line 3197 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = pixbuf; -#line 3197 "/home/jens/Source/shotwell/src/Photo.vala" - dimensions_for_pixbuf (_tmp18_, &_tmp19_); -#line 3197 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (dimensions_approx_equals (&scaled_image, &_tmp19_, PHOTO_SCALING_FUDGE), "scaled_image.approx_equals(Dimensions.for_pixbuf(pixbuf), SCALING_FUDGE)"); -#line 3199 "/home/jens/Source/shotwell/src/Photo.vala" - result = pixbuf; -#line 3199 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (loader); -#line 3199 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 24466 "Photo.c" -} - - -GdkPixbuf* -photo_get_master_pixbuf (Photo* self, - Scaling* scaling, - gboolean rotate, - GError** error) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_ = NULL; - Scaling _tmp1_; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GError * _inner_error_ = NULL; -#line 3204 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 3204 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 3205 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = *scaling; -#line 3205 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_get_untransformed_pixbuf (self, &_tmp1_, rotate, BACKING_FETCH_MODE_MASTER, &_inner_error_); -#line 3205 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp2_; -#line 3205 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3205 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3205 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 24498 "Photo.c" - } -#line 3205 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp0_; -#line 3205 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = NULL; -#line 3205 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 3205 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp0_); -#line 3205 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 24510 "Photo.c" -} - - -GdkPixbuf* -photo_get_unmodified_pixbuf (Photo* self, - Scaling* scaling, - gboolean rotate, - GError** error) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_ = NULL; - Scaling _tmp1_; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GError * _inner_error_ = NULL; -#line 3209 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 3209 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 3210 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = *scaling; -#line 3210 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_get_untransformed_pixbuf (self, &_tmp1_, rotate, BACKING_FETCH_MODE_UNMODIFIED, &_inner_error_); -#line 3210 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp2_; -#line 3210 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3210 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3210 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 24542 "Photo.c" - } -#line 3210 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp0_; -#line 3210 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = NULL; -#line 3210 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 3210 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp0_); -#line 3210 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 24554 "Photo.c" -} - - -static GdkPixbuf* -photo_get_untransformed_pixbuf (Photo* self, - Scaling* scaling, - gboolean rotate, - BackingFetchMode fetch_mode, - GError** error) -{ - GdkPixbuf* result = NULL; - Dimensions scaled_image = {0}; - Dimensions scaled_to_viewport = {0}; - Orientation original_orientation = 0; - GdkPixbuf* pixbuf = NULL; - Scaling _tmp5_; - GdkPixbuf* _tmp6_; - GError * _inner_error_ = NULL; -#line 3214 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 3214 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 24577 "Photo.c" - { - PhotoRow* _tmp0_; -#line 3228 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 3228 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 24584 "Photo.c" - { - Scaling _tmp1_; - Dimensions _tmp2_ = {0}; - Dimensions _tmp3_ = {0}; -#line 3229 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = *scaling; -#line 3229 "/home/jens/Source/shotwell/src/Photo.vala" - photo_calculate_pixbuf_dimensions (self, &_tmp1_, PHOTO_EXCEPTION_NONE, &_tmp2_, &_tmp3_); -#line 3229 "/home/jens/Source/shotwell/src/Photo.vala" - scaled_image = _tmp2_; -#line 3229 "/home/jens/Source/shotwell/src/Photo.vala" - scaled_to_viewport = _tmp3_; -#line 3231 "/home/jens/Source/shotwell/src/Photo.vala" - original_orientation = photo_get_original_orientation (self); -#line 24599 "Photo.c" - } - __finally393: - { - PhotoRow* _tmp4_; -#line 3228 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 3228 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 24608 "Photo.c" - } -#line 3228 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3228 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3228 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 24616 "Photo.c" - } - } -#line 3235 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = *scaling; -#line 3235 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo_load_raw_pixbuf (self, &_tmp5_, PHOTO_EXCEPTION_NONE, fetch_mode, &_inner_error_); -#line 3235 "/home/jens/Source/shotwell/src/Photo.vala" - pixbuf = _tmp6_; -#line 3235 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3235 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3235 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 24631 "Photo.c" - } -#line 3241 "/home/jens/Source/shotwell/src/Photo.vala" - if (rotate) { -#line 24635 "Photo.c" - GdkPixbuf* _tmp7_; - GdkPixbuf* _tmp8_; -#line 3242 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = pixbuf; -#line 3242 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = orientation_rotate_pixbuf (original_orientation, _tmp7_); -#line 3242 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 3242 "/home/jens/Source/shotwell/src/Photo.vala" - pixbuf = _tmp8_; -#line 24646 "Photo.c" - } -#line 3251 "/home/jens/Source/shotwell/src/Photo.vala" - result = pixbuf; -#line 3251 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 24652 "Photo.c" -} - - -static GdkPixbuf* -photo_real_get_pixbuf (PhotoSource* base, - Scaling* scaling, - GError** error) -{ - Photo * self; - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_ = NULL; - Scaling _tmp1_; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GError * _inner_error_ = NULL; -#line 3254 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO, Photo); -#line 3254 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 3255 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = *scaling; -#line 3255 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_get_pixbuf_with_options (self, &_tmp1_, PHOTO_EXCEPTION_NONE, BACKING_FETCH_MODE_BASELINE, &_inner_error_); -#line 3255 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp2_; -#line 3255 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3255 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3255 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 24684 "Photo.c" - } -#line 3255 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp0_; -#line 3255 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = NULL; -#line 3255 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 3255 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp0_); -#line 3255 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 24696 "Photo.c" -} - - -/** - * One-stop shopping for the source pixbuf cache. - * - * The source pixbuf cache holds untransformed, unscaled (full-sized) pixbufs of Photo objects. - * These can be rather large and shouldn't be held in memory for too long, nor should many be - * allowed to stack up. - * - * If locate is non-null, a source pixbuf is returned for the Photo. If keep is true, the - * pixbuf is stored in the cache. (Thus, passing a Photo w/ keep == false will drop the cached - * pixbuf.) If Photo is non-null but keep is false, null is returned. - * - * Whether locate is null or not, the cache is walked in its entirety, dropping expired pixbufs - * and dropping excessive pixbufs from the LRU. Locating a Photo "touches" the pixbuf, i.e. - * it moves to the head of the LRU. - */ -static gpointer -_photo_cached_pixbuf_ref0 (gpointer self) -{ -#line 3290 "/home/jens/Source/shotwell/src/Photo.vala" - return self ? photo_cached_pixbuf_ref (self) : NULL; -#line 24720 "Photo.c" -} - - -static gboolean -_photo_trim_source_pixbuf_cache_gsource_func (gpointer self) -{ - gboolean result; - result = photo_trim_source_pixbuf_cache (); -#line 3342 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 24731 "Photo.c" -} - - -static GdkPixbuf* -photo_run_source_pixbuf_cache (Photo* locate, - gboolean keep, - GError** error) -{ - GdkPixbuf* result = NULL; - GError * _inner_error_ = NULL; -#line 3273 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((locate == NULL) || IS_PHOTO (locate), NULL); -#line 24744 "Photo.c" - { - GeeLinkedList* _tmp0_; -#line 3274 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_source_pixbuf_cache; -#line 3274 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&__lock_photo_source_pixbuf_cache); -#line 24751 "Photo.c" - { - PhotoCachedPixbuf* found = NULL; - gdouble min_elapsed = 0.0; - gint count = 0; - GeeIterator* iter = NULL; - GeeLinkedList* _tmp1_; - GeeIterator* _tmp2_; - gboolean _tmp23_ = FALSE; - gboolean _tmp24_ = FALSE; - PhotoCachedPixbuf* _tmp25_; - gboolean _tmp33_ = FALSE; - PhotoCachedPixbuf* _tmp34_; - guint _tmp47_; - GeeLinkedList* _tmp49_; - gint _tmp50_; - gint _tmp51_; - GdkPixbuf* _tmp55_ = NULL; - PhotoCachedPixbuf* _tmp56_; - GdkPixbuf* _tmp59_; -#line 3275 "/home/jens/Source/shotwell/src/Photo.vala" - found = NULL; -#line 3279 "/home/jens/Source/shotwell/src/Photo.vala" - min_elapsed = DBL_MAX; -#line 3280 "/home/jens/Source/shotwell/src/Photo.vala" - count = 0; -#line 3281 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_source_pixbuf_cache; -#line 3281 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 3281 "/home/jens/Source/shotwell/src/Photo.vala" - iter = _tmp2_; -#line 3282 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 24785 "Photo.c" - GeeIterator* _tmp3_; - PhotoCachedPixbuf* cached_pixbuf = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - gdouble elapsed = 0.0; - PhotoCachedPixbuf* _tmp6_; - GTimer* _tmp7_; - gdouble _tmp8_; - gboolean _tmp9_ = FALSE; -#line 3282 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = iter; -#line 3282 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 3282 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 24801 "Photo.c" - } -#line 3283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = iter; -#line 3283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 3283 "/home/jens/Source/shotwell/src/Photo.vala" - cached_pixbuf = (PhotoCachedPixbuf*) _tmp5_; -#line 3285 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = cached_pixbuf; -#line 3285 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_->last_touched; -#line 3285 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = g_timer_elapsed (_tmp7_, NULL); -#line 3285 "/home/jens/Source/shotwell/src/Photo.vala" - elapsed = trunc (_tmp8_) + 1; -#line 3287 "/home/jens/Source/shotwell/src/Photo.vala" - if (locate != NULL) { -#line 24819 "Photo.c" - PhotoCachedPixbuf* _tmp10_; - Photo* _tmp11_; -#line 3287 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = cached_pixbuf; -#line 3287 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_->photo; -#line 3287 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (locate, TYPE_DATA_SOURCE, DataSource)); -#line 24828 "Photo.c" - } else { -#line 3287 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = FALSE; -#line 24832 "Photo.c" - } -#line 3287 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp9_) { -#line 24836 "Photo.c" - GeeIterator* _tmp12_; - PhotoCachedPixbuf* _tmp13_; - PhotoCachedPixbuf* _tmp14_; - gint _tmp15_; -#line 3289 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = iter; -#line 3289 "/home/jens/Source/shotwell/src/Photo.vala" - gee_iterator_remove (_tmp12_); -#line 3290 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = cached_pixbuf; -#line 3290 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _photo_cached_pixbuf_ref0 (_tmp13_); -#line 3290 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_cached_pixbuf_unref0 (found); -#line 3290 "/home/jens/Source/shotwell/src/Photo.vala" - found = _tmp14_; -#line 3293 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = count; -#line 3293 "/home/jens/Source/shotwell/src/Photo.vala" - count = _tmp15_ + 1; -#line 24857 "Photo.c" - } else { - gdouble _tmp16_; -#line 3294 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = elapsed; -#line 3294 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp16_ >= ((gdouble) PHOTO_SOURCE_PIXBUF_TIME_TO_LIVE_SEC)) { -#line 24864 "Photo.c" - GeeIterator* _tmp17_; -#line 3295 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = iter; -#line 3295 "/home/jens/Source/shotwell/src/Photo.vala" - gee_iterator_remove (_tmp17_); -#line 24870 "Photo.c" - } else { - gint _tmp18_; -#line 3296 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = count; -#line 3296 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp18_ >= PHOTO_SOURCE_PIXBUF_MAX_LRU_COUNT) { -#line 24877 "Photo.c" - GeeIterator* _tmp19_; -#line 3297 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = iter; -#line 3297 "/home/jens/Source/shotwell/src/Photo.vala" - gee_iterator_remove (_tmp19_); -#line 24883 "Photo.c" - } else { - gdouble _tmp20_; - gdouble _tmp21_; - gint _tmp22_; -#line 3301 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = elapsed; -#line 3301 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = min_elapsed; -#line 3301 "/home/jens/Source/shotwell/src/Photo.vala" - min_elapsed = MIN (_tmp20_, _tmp21_); -#line 3302 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = count; -#line 3302 "/home/jens/Source/shotwell/src/Photo.vala" - count = _tmp22_ + 1; -#line 24898 "Photo.c" - } - } - } -#line 3282 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_cached_pixbuf_unref0 (cached_pixbuf); -#line 24904 "Photo.c" - } -#line 3307 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = found; -#line 3307 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp25_ == NULL) { -#line 3307 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = locate != NULL; -#line 24912 "Photo.c" - } else { -#line 3307 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = FALSE; -#line 24916 "Photo.c" - } -#line 3307 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp24_) { -#line 3307 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = keep; -#line 24922 "Photo.c" - } else { -#line 3307 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = FALSE; -#line 24926 "Photo.c" - } -#line 3307 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp23_) { -#line 24930 "Photo.c" - GdkPixbuf* _tmp26_ = NULL; - Scaling _tmp27_ = {0}; - GdkPixbuf* _tmp28_; - PhotoCachedPixbuf* _tmp29_; -#line 3309 "/home/jens/Source/shotwell/src/Photo.vala" - scaling_for_original (&_tmp27_); -#line 3309 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = photo_load_raw_pixbuf (locate, &_tmp27_, PHOTO_EXCEPTION_ALL, BACKING_FETCH_MODE_SOURCE, &_inner_error_); -#line 3309 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = _tmp28_; -#line 3309 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3309 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (iter); -#line 3309 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_cached_pixbuf_unref0 (found); -#line 24947 "Photo.c" - goto __finally394; - } -#line 3308 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = photo_cached_pixbuf_new (locate, _tmp26_); -#line 3308 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_cached_pixbuf_unref0 (found); -#line 3308 "/home/jens/Source/shotwell/src/Photo.vala" - found = _tmp29_; -#line 3307 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp26_); -#line 24958 "Photo.c" - } else { - PhotoCachedPixbuf* _tmp30_; -#line 3310 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = found; -#line 3310 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp30_ != NULL) { -#line 24965 "Photo.c" - PhotoCachedPixbuf* _tmp31_; - GTimer* _tmp32_; -#line 3312 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = found; -#line 3312 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = _tmp31_->last_touched; -#line 3312 "/home/jens/Source/shotwell/src/Photo.vala" - g_timer_start (_tmp32_); -#line 24974 "Photo.c" - } - } -#line 3316 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = found; -#line 3316 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp34_ != NULL) { -#line 3316 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = keep; -#line 24983 "Photo.c" - } else { -#line 3316 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = FALSE; -#line 24987 "Photo.c" - } -#line 3316 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp33_) { -#line 24991 "Photo.c" - GeeLinkedList* _tmp35_; - PhotoCachedPixbuf* _tmp36_; - PhotoCachedPixbuf* _tmp37_; - GTimer* _tmp38_; - gdouble _tmp39_; - gdouble _tmp40_; -#line 3317 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = photo_source_pixbuf_cache; -#line 3317 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = found; -#line 3317 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0, _tmp36_); -#line 3322 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = found; -#line 3322 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = _tmp37_->last_touched; -#line 3322 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = g_timer_elapsed (_tmp38_, NULL); -#line 3322 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = min_elapsed; -#line 3322 "/home/jens/Source/shotwell/src/Photo.vala" - min_elapsed = MIN (_tmp39_, _tmp40_); -#line 3326 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 25016 "Photo.c" - GeeLinkedList* _tmp41_; - gint _tmp42_; - gint _tmp43_; - GeeLinkedList* _tmp44_; - gpointer _tmp45_; - PhotoCachedPixbuf* _tmp46_; -#line 3326 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = photo_source_pixbuf_cache; -#line 3326 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 3326 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = _tmp42_; -#line 3326 "/home/jens/Source/shotwell/src/Photo.vala" - if (!(_tmp43_ > PHOTO_SOURCE_PIXBUF_MAX_LRU_COUNT)) { -#line 3326 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 25033 "Photo.c" - } -#line 3327 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = photo_source_pixbuf_cache; -#line 3327 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = gee_deque_poll_tail (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_DEQUE, GeeDeque)); -#line 3327 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = (PhotoCachedPixbuf*) _tmp45_; -#line 3327 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_cached_pixbuf_unref0 (_tmp46_); -#line 25043 "Photo.c" - } - } -#line 3331 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = photo_discard_source_id; -#line 3331 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp47_ != ((guint) 0)) { -#line 25050 "Photo.c" - guint _tmp48_; -#line 3332 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = photo_discard_source_id; -#line 3332 "/home/jens/Source/shotwell/src/Photo.vala" - g_source_remove (_tmp48_); -#line 3333 "/home/jens/Source/shotwell/src/Photo.vala" - photo_discard_source_id = (guint) 0; -#line 25058 "Photo.c" - } -#line 3337 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = photo_source_pixbuf_cache; -#line 3337 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 3337 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp51_ = _tmp50_; -#line 3337 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp51_ > PHOTO_SOURCE_PIXBUF_MIN_LRU_COUNT) { -#line 25068 "Photo.c" - gdouble _tmp52_; - guint retry_sec = 0U; - gdouble _tmp53_; - guint _tmp54_; -#line 3338 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp52_ = min_elapsed; -#line 3338 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (_tmp52_ >= 0.0, "min_elapsed >= 0.0"); -#line 3341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp53_ = min_elapsed; -#line 3341 "/home/jens/Source/shotwell/src/Photo.vala" - retry_sec = PHOTO_SOURCE_PIXBUF_TIME_TO_LIVE_SEC - ((guint) trunc (_tmp53_)); -#line 3342 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp54_ = retry_sec; -#line 3342 "/home/jens/Source/shotwell/src/Photo.vala" - photo_discard_source_id = g_timeout_add_seconds_full (G_PRIORITY_LOW, _tmp54_, _photo_trim_source_pixbuf_cache_gsource_func, NULL, NULL); -#line 25085 "Photo.c" - } -#line 3345 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp56_ = found; -#line 3345 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp56_ != NULL) { -#line 25091 "Photo.c" - PhotoCachedPixbuf* _tmp57_; - GdkPixbuf* _tmp58_; -#line 3345 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_ = found; -#line 3345 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp58_ = _tmp57_->pixbuf; -#line 3345 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp55_ = _tmp58_; -#line 25100 "Photo.c" - } else { -#line 3345 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp55_ = NULL; -#line 25104 "Photo.c" - } -#line 3345 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp59_ = _g_object_ref0 (_tmp55_); -#line 3345 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp59_; -#line 3345 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (iter); -#line 3345 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_cached_pixbuf_unref0 (found); -#line 25114 "Photo.c" - { - GeeLinkedList* _tmp60_; -#line 3274 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp60_ = photo_source_pixbuf_cache; -#line 3274 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&__lock_photo_source_pixbuf_cache); -#line 25121 "Photo.c" - } -#line 3345 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 25125 "Photo.c" - } - __finally394: - { - GeeLinkedList* _tmp61_; -#line 3274 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp61_ = photo_source_pixbuf_cache; -#line 3274 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&__lock_photo_source_pixbuf_cache); -#line 25134 "Photo.c" - } -#line 3274 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3274 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 25140 "Photo.c" - } -} - - -static gboolean -photo_trim_source_pixbuf_cache (void) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; - { - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; -#line 3351 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_run_source_pixbuf_cache (NULL, FALSE, &_inner_error_); -#line 3351 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 3351 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp1_); -#line 3351 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 25161 "Photo.c" - goto __catch395_g_error; - } - } - goto __finally395; - __catch395_g_error: - { - GError* err = NULL; -#line 3350 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 3350 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 3350 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 25175 "Photo.c" - } - __finally395: -#line 3350 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 25180 "Photo.c" - gboolean _tmp2_ = FALSE; -#line 3350 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 3350 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 3350 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp2_; -#line 25188 "Photo.c" - } -#line 3355 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 3355 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 25194 "Photo.c" -} - - -/** - * @brief Get a copy of what's in the cache. - * - * @return A copy of the Pixbuf with the image data from unmodified_precached. - */ -GdkPixbuf* -photo_get_prefetched_copy (Photo* self, - GError** error) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_ = NULL; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; - GError * _inner_error_ = NULL; -#line 3363 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 3364 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_run_source_pixbuf_cache (self, TRUE, &_inner_error_); -#line 3364 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp1_; -#line 3364 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3364 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3364 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 25224 "Photo.c" - } -#line 3364 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = gdk_pixbuf_copy (_tmp0_); -#line 3364 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_; -#line 3364 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp0_); -#line 3364 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 25234 "Photo.c" -} - - -/** - * @brief Discards the cached version of the unmodified image. - */ -void -photo_discard_prefetched (Photo* self) -{ - GError * _inner_error_ = NULL; -#line 3370 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 25247 "Photo.c" - { - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; -#line 3372 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_run_source_pixbuf_cache (self, FALSE, &_inner_error_); -#line 3372 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 3372 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp1_); -#line 3372 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 25259 "Photo.c" - goto __catch396_g_error; - } - } - goto __finally396; - __catch396_g_error: - { - GError* err = NULL; -#line 3371 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 3371 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 3371 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 25273 "Photo.c" - } - __finally396: -#line 3371 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3371 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 3371 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 3371 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 25284 "Photo.c" - } -} - - -/** - * @brief Returns a fully transformed and scaled pixbuf. Transformations may be excluded via - * the mask. If the image is smaller than the scaling, it will be returned in its actual size. - * The caller is responsible for scaling thereafter. - * - * @param scaling A scaling object that describes the size the output pixbuf should be. - * @param exceptions The parts of the pipeline that should be skipped; defaults to NONE if - * left unset. - * @param fetch_mode The fetch mode; if left unset, defaults to BASELINE so that - * we get the image exactly as it is in the file. - */ -GdkPixbuf* -photo_get_pixbuf_with_options (Photo* self, - Scaling* scaling, - PhotoException exceptions, - BackingFetchMode fetch_mode, - GError** error) -{ - GdkPixbuf* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - gboolean _tmp3_; - gboolean _tmp4_; - gboolean is_scaled = FALSE; - gboolean is_cropped = FALSE; - gboolean is_straightened = FALSE; - Dimensions scaled_to_viewport = {0}; - Dimensions original = {0}; - Dimensions scaled = {0}; - EditingToolsRedeyeInstance* redeye_instances = NULL; - gint redeye_instances_length1; - gint _redeye_instances_size_; - Box crop = {0}; - gdouble straightening_angle = 0.0; - PixelTransformer* transformer = NULL; - Orientation orientation = 0; - GdkPixbuf* pixbuf = NULL; - GdkPixbuf* _tmp22_; - gboolean _tmp64_; - gboolean _tmp74_ = FALSE; - gboolean _tmp75_; - GError * _inner_error_ = NULL; -#line 3388 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 3388 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 3401 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_get_develop_raw_photos_to_files (); -#line 3401 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 3401 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp4_) { -#line 3402 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_get_master_file_format (self) == PHOTO_FILE_FORMAT_RAW; -#line 25344 "Photo.c" - } else { -#line 3401 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = FALSE; -#line 25348 "Photo.c" - } -#line 3401 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_) { -#line 25352 "Photo.c" - gboolean _tmp5_ = FALSE; - gboolean _tmp6_ = FALSE; -#line 3403 "/home/jens/Source/shotwell/src/Photo.vala" - if (fetch_mode == BACKING_FETCH_MODE_BASELINE) { -#line 3403 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = TRUE; -#line 25359 "Photo.c" - } else { -#line 3403 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = fetch_mode == BACKING_FETCH_MODE_UNMODIFIED; -#line 25363 "Photo.c" - } -#line 3403 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp6_) { -#line 3403 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = TRUE; -#line 25369 "Photo.c" - } else { -#line 3404 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = fetch_mode == BACKING_FETCH_MODE_SOURCE; -#line 25373 "Photo.c" - } -#line 3403 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp5_; -#line 25377 "Photo.c" - } else { -#line 3401 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = FALSE; -#line 25381 "Photo.c" - } -#line 3401 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_) { -#line 3405 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = !photo_is_raw_developer_complete (self, photo_get_raw_developer (self)); -#line 25387 "Photo.c" - } else { -#line 3401 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = FALSE; -#line 25391 "Photo.c" - } -#line 3401 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp0_) { -#line 3406 "/home/jens/Source/shotwell/src/Photo.vala" - photo_set_raw_developer (self, photo_get_raw_developer (self), TRUE); -#line 25397 "Photo.c" - } -#line 3411 "/home/jens/Source/shotwell/src/Photo.vala" - dimensions_init (&original, 0, 0); -#line 3412 "/home/jens/Source/shotwell/src/Photo.vala" - dimensions_init (&scaled, 0, 0); -#line 3413 "/home/jens/Source/shotwell/src/Photo.vala" - redeye_instances = NULL; -#line 3413 "/home/jens/Source/shotwell/src/Photo.vala" - redeye_instances_length1 = 0; -#line 3413 "/home/jens/Source/shotwell/src/Photo.vala" - _redeye_instances_size_ = redeye_instances_length1; -#line 3416 "/home/jens/Source/shotwell/src/Photo.vala" - transformer = NULL; -#line 25411 "Photo.c" - { - PhotoRow* _tmp7_; -#line 3419 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = self->row; -#line 3419 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 25418 "Photo.c" - { - Dimensions _tmp8_ = {0}; - Dimensions _tmp9_ = {0}; - Dimensions _tmp10_ = {0}; - Dimensions _tmp11_; - Dimensions _tmp12_ = {0}; - Dimensions _tmp13_; - gint _tmp14_; - EditingToolsRedeyeInstance* _tmp15_; - Box _tmp16_ = {0}; - gboolean _tmp17_; - gdouble _tmp18_ = 0.0; - gboolean _tmp19_; -#line 3420 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_ALL, &_tmp8_); -#line 3420 "/home/jens/Source/shotwell/src/Photo.vala" - original = _tmp8_; -#line 3421 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), exceptions, &_tmp9_); -#line 3421 "/home/jens/Source/shotwell/src/Photo.vala" - scaling_get_scaled_dimensions (scaling, &_tmp9_, &_tmp10_); -#line 3421 "/home/jens/Source/shotwell/src/Photo.vala" - scaled = _tmp10_; -#line 3422 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = scaled; -#line 3422 "/home/jens/Source/shotwell/src/Photo.vala" - scaled_to_viewport = _tmp11_; -#line 3424 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp12_); -#line 3424 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = scaled; -#line 3424 "/home/jens/Source/shotwell/src/Photo.vala" - is_scaled = !dimensions_equals (&_tmp12_, &_tmp13_); -#line 3426 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = photo_get_raw_redeye_instances (self, &_tmp14_); -#line 3426 "/home/jens/Source/shotwell/src/Photo.vala" - redeye_instances = (g_free (redeye_instances), NULL); -#line 3426 "/home/jens/Source/shotwell/src/Photo.vala" - redeye_instances = _tmp15_; -#line 3426 "/home/jens/Source/shotwell/src/Photo.vala" - redeye_instances_length1 = _tmp14_; -#line 3426 "/home/jens/Source/shotwell/src/Photo.vala" - _redeye_instances_size_ = redeye_instances_length1; -#line 3428 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = photo_get_raw_crop (self, &_tmp16_); -#line 3428 "/home/jens/Source/shotwell/src/Photo.vala" - crop = _tmp16_; -#line 3428 "/home/jens/Source/shotwell/src/Photo.vala" - is_cropped = _tmp17_; -#line 3430 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = photo_get_raw_straighten (self, &_tmp18_); -#line 3430 "/home/jens/Source/shotwell/src/Photo.vala" - straightening_angle = _tmp18_; -#line 3430 "/home/jens/Source/shotwell/src/Photo.vala" - is_straightened = _tmp19_; -#line 3432 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_has_color_adjustments (self)) { -#line 25476 "Photo.c" - PixelTransformer* _tmp20_; -#line 3433 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = photo_get_pixel_transformer (self); -#line 3433 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (transformer); -#line 3433 "/home/jens/Source/shotwell/src/Photo.vala" - transformer = _tmp20_; -#line 25484 "Photo.c" - } -#line 3435 "/home/jens/Source/shotwell/src/Photo.vala" - orientation = photo_get_orientation (self); -#line 25488 "Photo.c" - } - __finally397: - { - PhotoRow* _tmp21_; -#line 3419 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = self->row; -#line 3419 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 25497 "Photo.c" - } -#line 3419 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3419 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3419 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (transformer); -#line 3419 "/home/jens/Source/shotwell/src/Photo.vala" - redeye_instances = (g_free (redeye_instances), NULL); -#line 3419 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 25509 "Photo.c" - } - } -#line 3442 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = photo_get_prefetched_copy (self, &_inner_error_); -#line 3442 "/home/jens/Source/shotwell/src/Photo.vala" - pixbuf = _tmp22_; -#line 3442 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3442 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3442 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (transformer); -#line 3442 "/home/jens/Source/shotwell/src/Photo.vala" - redeye_instances = (g_free (redeye_instances), NULL); -#line 3442 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 25526 "Photo.c" - } -#line 3449 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_REDEYE)) { -#line 25530 "Photo.c" - EditingToolsRedeyeInstance* _tmp23_; - gint _tmp23__length1; -#line 3454 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = redeye_instances; -#line 3454 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23__length1 = redeye_instances_length1; -#line 25537 "Photo.c" - { - EditingToolsRedeyeInstance* instance_collection = NULL; - gint instance_collection_length1 = 0; - gint _instance_collection_size_ = 0; - gint instance_it = 0; -#line 3454 "/home/jens/Source/shotwell/src/Photo.vala" - instance_collection = _tmp23_; -#line 3454 "/home/jens/Source/shotwell/src/Photo.vala" - instance_collection_length1 = _tmp23__length1; -#line 3454 "/home/jens/Source/shotwell/src/Photo.vala" - for (instance_it = 0; instance_it < _tmp23__length1; instance_it = instance_it + 1) { -#line 25549 "Photo.c" - EditingToolsRedeyeInstance instance = {0}; -#line 3454 "/home/jens/Source/shotwell/src/Photo.vala" - instance = instance_collection[instance_it]; -#line 25553 "Photo.c" - { - GdkPixbuf* _tmp24_; - EditingToolsRedeyeInstance _tmp25_; - GdkPixbuf* _tmp26_; -#line 3455 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = pixbuf; -#line 3455 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = instance; -#line 3455 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = photo_do_redeye (self, _tmp24_, &_tmp25_); -#line 3455 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 3455 "/home/jens/Source/shotwell/src/Photo.vala" - pixbuf = _tmp26_; -#line 25568 "Photo.c" - } - } - } - } -#line 3463 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_STRAIGHTEN)) { -#line 25575 "Photo.c" - gboolean _tmp27_; -#line 3467 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = is_straightened; -#line 3467 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp27_) { -#line 25581 "Photo.c" - GdkPixbuf* _tmp28_; - gdouble _tmp29_; - GdkPixbuf* _tmp30_; -#line 3468 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = pixbuf; -#line 3468 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = straightening_angle; -#line 3468 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = rotate_arb (_tmp28_, _tmp29_); -#line 3468 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 3468 "/home/jens/Source/shotwell/src/Photo.vala" - pixbuf = _tmp30_; -#line 25595 "Photo.c" - } - } -#line 3477 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_CROP)) { -#line 25600 "Photo.c" - gboolean _tmp31_; -#line 3481 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = is_cropped; -#line 3481 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp31_) { -#line 25606 "Photo.c" - Box _tmp32_; - gint _tmp33_; - GdkPixbuf* _tmp34_; - gint _tmp35_; - gint _tmp36_; - Box _tmp37_; - gint _tmp38_; - GdkPixbuf* _tmp39_; - gint _tmp40_; - gint _tmp41_; - Box _tmp42_; - gint _tmp43_; - Box _tmp44_; - gint _tmp45_; - GdkPixbuf* _tmp46_; - gint _tmp47_; - gint _tmp48_; - Box _tmp49_; - gint _tmp50_; - Box _tmp51_; - gint _tmp52_; - GdkPixbuf* _tmp53_; - gint _tmp54_; - gint _tmp55_; - GdkPixbuf* _tmp56_; - Box _tmp57_; - gint _tmp58_; - Box _tmp59_; - gint _tmp60_; - GdkPixbuf* _tmp61_; -#line 3486 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = crop; -#line 3486 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = _tmp32_.left; -#line 3486 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = pixbuf; -#line 3486 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = gdk_pixbuf_get_width (_tmp34_); -#line 3486 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = _tmp35_; -#line 3486 "/home/jens/Source/shotwell/src/Photo.vala" - crop.left = CLAMP (_tmp33_, 0, _tmp36_ - 2); -#line 3487 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = crop; -#line 3487 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = _tmp37_.top; -#line 3487 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = pixbuf; -#line 3487 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = gdk_pixbuf_get_height (_tmp39_); -#line 3487 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = _tmp40_; -#line 3487 "/home/jens/Source/shotwell/src/Photo.vala" - crop.top = CLAMP (_tmp38_, 0, _tmp41_ - 2); -#line 3489 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = crop; -#line 3489 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = _tmp42_.right; -#line 3489 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = crop; -#line 3489 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = _tmp44_.left; -#line 3489 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = pixbuf; -#line 3489 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = gdk_pixbuf_get_width (_tmp46_); -#line 3489 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = _tmp47_; -#line 3489 "/home/jens/Source/shotwell/src/Photo.vala" - crop.right = CLAMP (_tmp43_, _tmp45_ + 1, _tmp48_ - 1); -#line 3490 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = crop; -#line 3490 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = _tmp49_.bottom; -#line 3490 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp51_ = crop; -#line 3490 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp52_ = _tmp51_.top; -#line 3490 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp53_ = pixbuf; -#line 3490 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp54_ = gdk_pixbuf_get_height (_tmp53_); -#line 3490 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp55_ = _tmp54_; -#line 3490 "/home/jens/Source/shotwell/src/Photo.vala" - crop.bottom = CLAMP (_tmp50_, _tmp52_ + 1, _tmp55_ - 1); -#line 3492 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp56_ = pixbuf; -#line 3492 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_ = crop; -#line 3492 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp58_ = _tmp57_.left; -#line 3492 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp59_ = crop; -#line 3492 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp60_ = _tmp59_.top; -#line 3492 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp61_ = gdk_pixbuf_new_subpixbuf (_tmp56_, _tmp58_, _tmp60_, box_get_width (&crop), box_get_height (&crop)); -#line 3492 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 3492 "/home/jens/Source/shotwell/src/Photo.vala" - pixbuf = _tmp61_; -#line 25709 "Photo.c" - } - } -#line 3502 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_ORIENTATION)) { -#line 25714 "Photo.c" - GdkPixbuf* _tmp62_; - GdkPixbuf* _tmp63_; -#line 3506 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp62_ = pixbuf; -#line 3506 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp63_ = orientation_rotate_pixbuf (orientation, _tmp62_); -#line 3506 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 3506 "/home/jens/Source/shotwell/src/Photo.vala" - pixbuf = _tmp63_; -#line 25725 "Photo.c" - } -#line 3513 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp64_ = is_scaled; -#line 3513 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp64_) { -#line 25731 "Photo.c" - GdkPixbuf* _tmp65_; - Dimensions _tmp66_; - gint _tmp67_; - Dimensions _tmp68_; - gint _tmp69_; - GdkPixbuf* _tmp70_; -#line 3517 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp65_ = pixbuf; -#line 3517 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp66_ = scaled_to_viewport; -#line 3517 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp67_ = _tmp66_.width; -#line 3517 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp68_ = scaled_to_viewport; -#line 3517 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp69_ = _tmp68_.height; -#line 3517 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp70_ = gdk_pixbuf_scale_simple (_tmp65_, _tmp67_, _tmp69_, GDK_INTERP_BILINEAR); -#line 3517 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 3517 "/home/jens/Source/shotwell/src/Photo.vala" - pixbuf = _tmp70_; -#line 25754 "Photo.c" - } -#line 3525 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_ADJUST)) { -#line 25758 "Photo.c" - PixelTransformer* _tmp71_; -#line 3529 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp71_ = transformer; -#line 3529 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp71_ != NULL) { -#line 25764 "Photo.c" - PixelTransformer* _tmp72_; - GdkPixbuf* _tmp73_; -#line 3530 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp72_ = transformer; -#line 3530 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp73_ = pixbuf; -#line 3530 "/home/jens/Source/shotwell/src/Photo.vala" - pixel_transformer_transform_pixbuf (_tmp72_, _tmp73_, NULL); -#line 25773 "Photo.c" - } - } -#line 3539 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp75_ = is_scaled; -#line 3539 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp75_) { -#line 25780 "Photo.c" - gboolean _tmp76_; -#line 3539 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp76_ = is_straightened; -#line 3539 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp74_ = !_tmp76_; -#line 25786 "Photo.c" - } else { -#line 3539 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp74_ = FALSE; -#line 25790 "Photo.c" - } -#line 3539 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp74_) { -#line 25794 "Photo.c" - GdkPixbuf* _tmp77_; - Dimensions _tmp78_ = {0}; -#line 3540 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp77_ = pixbuf; -#line 3540 "/home/jens/Source/shotwell/src/Photo.vala" - dimensions_for_pixbuf (_tmp77_, &_tmp78_); -#line 3540 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (dimensions_approx_equals (&scaled_to_viewport, &_tmp78_, PHOTO_SCALING_FUDGE), "scaled_to_viewport.approx_equals(Dimensions.for_pixbuf(pixbuf), SCALING_FUDGE)"); -#line 25803 "Photo.c" - } -#line 3548 "/home/jens/Source/shotwell/src/Photo.vala" - result = pixbuf; -#line 3548 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (transformer); -#line 3548 "/home/jens/Source/shotwell/src/Photo.vala" - redeye_instances = (g_free (redeye_instances), NULL); -#line 3548 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 25813 "Photo.c" -} - - -static gboolean -photo_real_has_user_generated_metadata (Photo* self) -{ - gboolean _tmp0_ = FALSE; -#line 3556 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("Type `%s' does not implement abstract method `photo_has_user_generated_metadata'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 3556 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp0_; -#line 25825 "Photo.c" -} - - -gboolean -photo_has_user_generated_metadata (Photo* self) -{ -#line 3556 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 3556 "/home/jens/Source/shotwell/src/Photo.vala" - return PHOTO_GET_CLASS (self)->has_user_generated_metadata (self); -#line 25836 "Photo.c" -} - - -static void -photo_real_set_user_metadata_for_export (Photo* self, - PhotoMetadata* metadata) -{ -#line 3560 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("Type `%s' does not implement abstract method `photo_set_user_metadata_for_export'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 3560 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 25848 "Photo.c" -} - - -void -photo_set_user_metadata_for_export (Photo* self, - PhotoMetadata* metadata) -{ -#line 3560 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 3560 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_GET_CLASS (self)->set_user_metadata_for_export (self, metadata); -#line 25860 "Photo.c" -} - - -gchar* -photo_get_export_basename (Photo* self, - PhotoFileFormat* file_format) -{ - gchar* result = NULL; -#line 3567 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 3568 "/home/jens/Source/shotwell/src/Photo.vala" - if (file_format != NULL) { -#line 25873 "Photo.c" - PhotoFileFormatProperties* _tmp0_; - PhotoFileFormatProperties* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - GFile* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 3569 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_file_format_get_properties (*file_format); -#line 3569 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 3569 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3569 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_; -#line 3569 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = photo_file_format_properties_convert_file_extension (_tmp1_, _tmp3_); -#line 3569 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_; -#line 3569 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = g_file_get_basename (_tmp5_); -#line 3569 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_; -#line 3569 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp5_); -#line 3569 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp3_); -#line 3569 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_format_properties_unref0 (_tmp1_); -#line 3569 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp7_; -#line 3569 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 25908 "Photo.c" - } else { -#line 3571 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_file_format_can_write (photo_get_file_format (self))) { -#line 25912 "Photo.c" - PhotoFileFormatProperties* _tmp8_; - PhotoFileFormatProperties* _tmp9_; - GFile* _tmp10_; - GFile* _tmp11_; - GFile* _tmp12_; - GFile* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; -#line 3572 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = photo_file_format_get_properties (photo_get_file_format (self)); -#line 3572 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_; -#line 3572 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3572 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_; -#line 3572 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = photo_file_format_properties_convert_file_extension (_tmp9_, _tmp11_); -#line 3572 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_; -#line 3572 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = g_file_get_basename (_tmp13_); -#line 3572 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_; -#line 3572 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp13_); -#line 3572 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp11_); -#line 3572 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_format_properties_unref0 (_tmp9_); -#line 3572 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp15_; -#line 3572 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 25947 "Photo.c" - } else { - PhotoFileFormatProperties* _tmp16_; - PhotoFileFormatProperties* _tmp17_; - GFile* _tmp18_; - GFile* _tmp19_; - GFile* _tmp20_; - GFile* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; -#line 3575 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = photo_file_format_get_properties (photo_file_format_get_system_default_format ()); -#line 3575 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _tmp16_; -#line 3575 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3575 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = _tmp18_; -#line 3575 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = photo_file_format_properties_convert_file_extension (_tmp17_, _tmp19_); -#line 3575 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _tmp20_; -#line 3575 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = g_file_get_basename (_tmp21_); -#line 3575 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _tmp22_; -#line 3575 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp21_); -#line 3575 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp19_); -#line 3575 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_format_properties_unref0 (_tmp17_); -#line 3575 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp23_; -#line 3575 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 25983 "Photo.c" - } - } -} - - -static gboolean -photo_export_fullsized_backing (Photo* self, - GFile* file, - gboolean export_metadata, - GError** error) -{ - gboolean result = FALSE; - PhotoFileReader* export_reader = NULL; - gboolean is_master = FALSE; - PhotoFileReader* _tmp24_; - PhotoFileFormatProperties* format_properties = NULL; - PhotoFileReader* _tmp25_; - PhotoFileFormatProperties* _tmp26_; - GFile* dest_file = NULL; - PhotoFileFormatProperties* _tmp27_; - GFile* _tmp28_; - PhotoFileMetadataWriter* writer = NULL; - PhotoFileReader* _tmp29_; - GFile* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - PhotoFileMetadataWriter* _tmp33_; - PhotoFileMetadataWriter* _tmp34_; - gchar* _tmp36_; - gchar* _tmp37_; - PhotoFileMetadataWriter* _tmp38_; - gchar* _tmp39_; - gchar* _tmp40_; - PhotoFileReader* _tmp41_; - GFile* _tmp42_; - GFile* _tmp43_; - GFile* _tmp44_; - gboolean _tmp46_ = FALSE; - gboolean _tmp47_ = FALSE; - gboolean _tmp48_ = FALSE; - gboolean _tmp49_ = FALSE; - gboolean _tmp50_ = FALSE; - PhotoMetadata* metadata = NULL; - PhotoFileReader* _tmp56_; - PhotoMetadata* _tmp57_; - PhotoMetadata* _tmp59_; - PhotoFileMetadataWriter* _tmp62_; - gchar* _tmp63_; - gchar* _tmp64_; - PhotoFileMetadataWriter* _tmp82_; - PhotoMetadata* _tmp83_; - GError * _inner_error_ = NULL; -#line 3581 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 3581 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 3584 "/home/jens/Source/shotwell/src/Photo.vala" - export_reader = NULL; -#line 3585 "/home/jens/Source/shotwell/src/Photo.vala" - is_master = TRUE; -#line 26044 "Photo.c" - { - PhotoBackingReaders* _tmp0_; -#line 3586 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->readers; -#line 3586 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 26051 "Photo.c" - { - gboolean _tmp1_ = FALSE; - PhotoBackingReaders* _tmp2_; - PhotoFileReader* _tmp3_; -#line 3587 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->readers; -#line 3587 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_->editable; -#line 3587 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp3_ != NULL) { -#line 26062 "Photo.c" - PhotoBackingReaders* _tmp4_; - PhotoFileReader* _tmp5_; -#line 3587 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->priv->readers; -#line 3587 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_->editable; -#line 3587 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_file_format_can_write_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))); -#line 26071 "Photo.c" - } else { -#line 3587 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = FALSE; -#line 26075 "Photo.c" - } -#line 3587 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_) { -#line 26079 "Photo.c" - PhotoBackingReaders* _tmp6_; - PhotoFileReader* _tmp7_; - PhotoFileReader* _tmp8_; -#line 3588 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->priv->readers; -#line 3588 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_->editable; -#line 3588 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _photo_file_adapter_ref0 (_tmp7_); -#line 3588 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (export_reader); -#line 3588 "/home/jens/Source/shotwell/src/Photo.vala" - export_reader = _tmp8_; -#line 3589 "/home/jens/Source/shotwell/src/Photo.vala" - is_master = FALSE; -#line 26095 "Photo.c" - } else { - gboolean _tmp9_ = FALSE; - PhotoBackingReaders* _tmp10_; - PhotoFileReader* _tmp11_; -#line 3590 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = self->priv->readers; -#line 3590 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_->developer; -#line 3590 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp11_ != NULL) { -#line 26106 "Photo.c" - PhotoBackingReaders* _tmp12_; - PhotoFileReader* _tmp13_; -#line 3590 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = self->priv->readers; -#line 3590 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_->developer; -#line 3590 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = photo_file_format_can_write_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))); -#line 26115 "Photo.c" - } else { -#line 3590 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = FALSE; -#line 26119 "Photo.c" - } -#line 3590 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp9_) { -#line 26123 "Photo.c" - PhotoBackingReaders* _tmp14_; - PhotoFileReader* _tmp15_; - PhotoFileReader* _tmp16_; -#line 3591 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = self->priv->readers; -#line 3591 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_->developer; -#line 3591 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = _photo_file_adapter_ref0 (_tmp15_); -#line 3591 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (export_reader); -#line 3591 "/home/jens/Source/shotwell/src/Photo.vala" - export_reader = _tmp16_; -#line 3592 "/home/jens/Source/shotwell/src/Photo.vala" - is_master = FALSE; -#line 26139 "Photo.c" - } else { - PhotoBackingReaders* _tmp17_; - PhotoFileReader* _tmp18_; -#line 3593 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = self->priv->readers; -#line 3593 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp17_->master; -#line 3593 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_file_format_can_write_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)))) { -#line 26149 "Photo.c" - PhotoBackingReaders* _tmp19_; - PhotoFileReader* _tmp20_; - PhotoFileReader* _tmp21_; -#line 3594 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = self->priv->readers; -#line 3594 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = _tmp19_->master; -#line 3594 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _photo_file_adapter_ref0 (_tmp20_); -#line 3594 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (export_reader); -#line 3594 "/home/jens/Source/shotwell/src/Photo.vala" - export_reader = _tmp21_; -#line 26163 "Photo.c" - } - } - } - } - __finally398: - { - PhotoBackingReaders* _tmp22_; -#line 3586 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = self->priv->readers; -#line 3586 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 26175 "Photo.c" - } -#line 3586 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 26179 "Photo.c" - gboolean _tmp23_ = FALSE; -#line 3586 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3586 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (export_reader); -#line 3586 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp23_; -#line 26187 "Photo.c" - } - } -#line 3598 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = export_reader; -#line 3598 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp24_ == NULL) { -#line 3599 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 3599 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (export_reader); -#line 3599 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 26200 "Photo.c" - } -#line 3601 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = export_reader; -#line 3601 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = photo_file_format_get_properties (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))); -#line 3601 "/home/jens/Source/shotwell/src/Photo.vala" - format_properties = _tmp26_; -#line 3604 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = format_properties; -#line 3604 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = photo_file_format_properties_convert_file_extension (_tmp27_, file); -#line 3604 "/home/jens/Source/shotwell/src/Photo.vala" - dest_file = _tmp28_; -#line 3607 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = export_reader; -#line 3607 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = dest_file; -#line 3607 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = g_file_get_path (_tmp30_); -#line 3607 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = _tmp31_; -#line 3607 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = photo_file_format_create_metadata_writer (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)), _tmp32_, &_inner_error_); -#line 3607 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = _tmp33_; -#line 3607 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp32_); -#line 3607 "/home/jens/Source/shotwell/src/Photo.vala" - writer = _tmp34_; -#line 3607 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 26232 "Photo.c" - gboolean _tmp35_ = FALSE; -#line 3607 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3607 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (dest_file); -#line 3607 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_format_properties_unref0 (format_properties); -#line 3607 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (export_reader); -#line 3607 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp35_; -#line 26244 "Photo.c" - } -#line 3610 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 3610 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = _tmp36_; -#line 3610 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = writer; -#line 3610 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 3610 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = _tmp39_; -#line 3610 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:3610: Exporting full-sized copy of %s to %s", _tmp37_, _tmp40_); -#line 3610 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp40_); -#line 3610 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp37_); -#line 3612 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = export_reader; -#line 3612 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 3612 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = _tmp42_; -#line 3612 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = dest_file; -#line 3612 "/home/jens/Source/shotwell/src/Photo.vala" - g_file_copy (_tmp43_, _tmp44_, G_FILE_COPY_OVERWRITE | G_FILE_COPY_TARGET_DEFAULT_PERMS, NULL, NULL, NULL, &_inner_error_); -#line 3612 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp43_); -#line 3612 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 26276 "Photo.c" - gboolean _tmp45_ = FALSE; -#line 3612 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3612 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 3612 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (dest_file); -#line 3612 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_format_properties_unref0 (format_properties); -#line 3612 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (export_reader); -#line 3612 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp45_; -#line 26290 "Photo.c" - } -#line 3617 "/home/jens/Source/shotwell/src/Photo.vala" - if (!photo_has_alterations (self)) { -#line 26294 "Photo.c" - gboolean _tmp51_; -#line 3617 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp51_ = is_master; -#line 3617 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = _tmp51_; -#line 26300 "Photo.c" - } else { -#line 3617 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = FALSE; -#line 26304 "Photo.c" - } -#line 3617 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp50_) { -#line 3617 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = !photo_has_user_generated_metadata (self); -#line 26310 "Photo.c" - } else { -#line 3617 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = FALSE; -#line 26314 "Photo.c" - } -#line 3617 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp49_) { -#line 26318 "Photo.c" - gchar* _tmp52_; - gchar* _tmp53_; -#line 3618 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp52_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3618 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp53_ = _tmp52_; -#line 3618 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = _tmp53_ == NULL; -#line 3618 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp53_); -#line 26329 "Photo.c" - } else { -#line 3617 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = FALSE; -#line 26333 "Photo.c" - } -#line 3617 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp48_) { -#line 26337 "Photo.c" - gchar* _tmp54_; - gchar* _tmp55_; -#line 3618 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp54_ = media_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3618 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp55_ = _tmp54_; -#line 3618 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = _tmp55_ == NULL; -#line 3618 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp55_); -#line 26348 "Photo.c" - } else { -#line 3617 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = FALSE; -#line 26352 "Photo.c" - } -#line 3617 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp47_) { -#line 3618 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = export_metadata; -#line 26358 "Photo.c" - } else { -#line 3617 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = FALSE; -#line 26362 "Photo.c" - } -#line 3617 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp46_) { -#line 3619 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 3619 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 3619 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (dest_file); -#line 3619 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_format_properties_unref0 (format_properties); -#line 3619 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (export_reader); -#line 3619 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 26378 "Photo.c" - } -#line 3622 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp56_ = export_reader; -#line 3622 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_ = photo_file_reader_read_metadata (_tmp56_, &_inner_error_); -#line 3622 "/home/jens/Source/shotwell/src/Photo.vala" - metadata = _tmp57_; -#line 3622 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 26388 "Photo.c" - gboolean _tmp58_ = FALSE; -#line 3622 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3622 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 3622 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (dest_file); -#line 3622 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_format_properties_unref0 (format_properties); -#line 3622 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (export_reader); -#line 3622 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp58_; -#line 26402 "Photo.c" - } -#line 3623 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp59_ = metadata; -#line 3623 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp59_ == NULL) { -#line 26408 "Photo.c" - PhotoFileReader* _tmp60_; - PhotoMetadata* _tmp61_; -#line 3624 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp60_ = export_reader; -#line 3624 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp61_ = photo_file_format_create_metadata (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter))); -#line 3624 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 3624 "/home/jens/Source/shotwell/src/Photo.vala" - metadata = _tmp61_; -#line 26419 "Photo.c" - } -#line 3626 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp62_ = writer; -#line 3626 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp63_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 3626 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp64_ = _tmp63_; -#line 3626 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:3626: Updating metadata of %s", _tmp64_); -#line 3626 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp64_); -#line 3628 "/home/jens/Source/shotwell/src/Photo.vala" - if (media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)) != ((time_t) 0)) { -#line 26433 "Photo.c" - PhotoMetadata* _tmp65_; - MetadataDateTime* _tmp66_; - MetadataDateTime* _tmp67_; -#line 3629 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp65_ = metadata; -#line 3629 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp66_ = metadata_date_time_new (media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource))); -#line 3629 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp67_ = _tmp66_; -#line 3629 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_exposure_date_time (_tmp65_, _tmp67_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 3629 "/home/jens/Source/shotwell/src/Photo.vala" - _metadata_date_time_unref0 (_tmp67_); -#line 26447 "Photo.c" - } else { - PhotoMetadata* _tmp68_; -#line 3631 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp68_ = metadata; -#line 3631 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_exposure_date_time (_tmp68_, NULL, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 26454 "Photo.c" - } -#line 3633 "/home/jens/Source/shotwell/src/Photo.vala" - if (export_metadata) { -#line 26458 "Photo.c" - PhotoMetadata* _tmp69_; - gchar* _tmp70_; - gchar* _tmp71_; - PhotoMetadata* _tmp72_; - gchar* _tmp73_; - gchar* _tmp74_; - PhotoMetadata* _tmp75_; - Dimensions _tmp76_ = {0}; - PhotoMetadata* _tmp77_; - PhotoMetadata* _tmp78_; - PhotoMetadata* _tmp80_; -#line 3635 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp69_ = metadata; -#line 3635 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp70_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3635 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp71_ = _tmp70_; -#line 3635 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_title (_tmp69_, _tmp71_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 3635 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp71_); -#line 3636 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp72_ = metadata; -#line 3636 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp73_ = media_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3636 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp74_ = _tmp73_; -#line 3636 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_comment (_tmp72_, _tmp74_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 3636 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp74_); -#line 3637 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp75_ = metadata; -#line 3637 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp76_); -#line 3637 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_pixel_dimensions (_tmp75_, &_tmp76_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 3638 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp77_ = metadata; -#line 3638 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_orientation (_tmp77_, photo_get_orientation (self)); -#line 3639 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp78_ = metadata; -#line 3639 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_software (_tmp78_, RESOURCES_APP_TITLE, RESOURCES_APP_VERSION); -#line 3641 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_get_orientation (self) != photo_get_original_orientation (self)) { -#line 26506 "Photo.c" - PhotoMetadata* _tmp79_; -#line 3642 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp79_ = metadata; -#line 3642 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_remove_exif_thumbnail (_tmp79_); -#line 26512 "Photo.c" - } -#line 3644 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp80_ = metadata; -#line 3644 "/home/jens/Source/shotwell/src/Photo.vala" - photo_set_user_metadata_for_export (self, _tmp80_); -#line 26518 "Photo.c" - } else { - PhotoMetadata* _tmp81_; -#line 3648 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp81_ = metadata; -#line 3648 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_clear (_tmp81_); -#line 26525 "Photo.c" - } -#line 3650 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp82_ = writer; -#line 3650 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp83_ = metadata; -#line 3650 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_metadata_writer_write_metadata (_tmp82_, _tmp83_, &_inner_error_); -#line 3650 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 26535 "Photo.c" - gboolean _tmp84_ = FALSE; -#line 3650 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3650 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 3650 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 3650 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (dest_file); -#line 3650 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_format_properties_unref0 (format_properties); -#line 3650 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (export_reader); -#line 3650 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp84_; -#line 26551 "Photo.c" - } -#line 3652 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 3652 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 3652 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 3652 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (dest_file); -#line 3652 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_format_properties_unref0 (format_properties); -#line 3652 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (export_reader); -#line 3652 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 26567 "Photo.c" -} - - -gboolean -photo_is_export_required (Photo* self, - Scaling* scaling, - PhotoFileFormat export_format) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; -#line 3658 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 3658 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (scaling != NULL, FALSE); -#line 3659 "/home/jens/Source/shotwell/src/Photo.vala" - if (!scaling_is_unscaled (scaling)) { -#line 3659 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = TRUE; -#line 26588 "Photo.c" - } else { -#line 3659 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_has_alterations (self); -#line 26592 "Photo.c" - } -#line 3659 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_) { -#line 3659 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = TRUE; -#line 26598 "Photo.c" - } else { -#line 3659 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_has_user_generated_metadata (self); -#line 26602 "Photo.c" - } -#line 3659 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_) { -#line 3659 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = TRUE; -#line 26608 "Photo.c" - } else { -#line 3660 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = export_format != photo_get_file_format (self); -#line 26612 "Photo.c" - } -#line 3659 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp0_; -#line 3659 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 26618 "Photo.c" -} - - -void -photo_export (Photo* self, - GFile* dest_file, - Scaling* scaling, - JpegQuality quality, - PhotoFileFormat export_format, - gboolean direct_copy_unmodified, - gboolean export_metadata, - GError** error) -{ - gboolean _tmp2_ = FALSE; - gboolean _tmp3_ = FALSE; - gboolean _tmp4_ = FALSE; - PhotoMetadata* metadata = NULL; - PhotoMetadata* _tmp7_; - PhotoMetadata* _tmp8_; - PhotoFileWriter* writer = NULL; - gchar* _tmp10_; - gchar* _tmp11_; - PhotoFileWriter* _tmp12_; - PhotoFileWriter* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - PhotoFileWriter* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - GEnumValue* _tmp19_; - GdkPixbuf* pixbuf = NULL; - gboolean _tmp20_ = FALSE; - PhotoFileWriter* _tmp29_; - GdkPixbuf* _tmp30_; - PhotoFileWriter* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - gboolean _tmp50_ = FALSE; - PhotoFileMetadataWriter* _tmp58_ = NULL; - gchar* _tmp59_; - gchar* _tmp60_; - PhotoFileMetadataWriter* _tmp61_; - PhotoFileMetadataWriter* _tmp62_; - PhotoMetadata* _tmp63_; - GError * _inner_error_ = NULL; -#line 3666 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 3666 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_IS_FILE (dest_file)); -#line 3666 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (scaling != NULL); -#line 3668 "/home/jens/Source/shotwell/src/Photo.vala" - if (direct_copy_unmodified) { -#line 26672 "Photo.c" - GFile* _tmp0_; - GFile* _tmp1_; -#line 3669 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3669 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 3669 "/home/jens/Source/shotwell/src/Photo.vala" - g_file_copy (_tmp1_, dest_file, G_FILE_COPY_OVERWRITE | G_FILE_COPY_TARGET_DEFAULT_PERMS, NULL, NULL, NULL, &_inner_error_); -#line 3669 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp1_); -#line 3669 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3669 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3669 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 26689 "Photo.c" - } -#line 3671 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 26693 "Photo.c" - } -#line 3678 "/home/jens/Source/shotwell/src/Photo.vala" - if (scaling_is_unscaled (scaling)) { -#line 26697 "Photo.c" - gboolean _tmp5_ = FALSE; -#line 3678 "/home/jens/Source/shotwell/src/Photo.vala" - if (!photo_has_alterations (self)) { -#line 3678 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = TRUE; -#line 26703 "Photo.c" - } else { -#line 3678 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = photo_only_metadata_changed (self); -#line 26707 "Photo.c" - } -#line 3678 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp5_; -#line 26711 "Photo.c" - } else { -#line 3678 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = FALSE; -#line 26715 "Photo.c" - } -#line 3678 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp4_) { -#line 3679 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = export_format == photo_get_file_format (self); -#line 26721 "Photo.c" - } else { -#line 3678 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = FALSE; -#line 26725 "Photo.c" - } -#line 3678 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp3_) { -#line 3679 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_get_file_format (self) == PHOTO_FILE_FORMAT_JFIF; -#line 26731 "Photo.c" - } else { -#line 3678 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = FALSE; -#line 26735 "Photo.c" - } -#line 3678 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_) { -#line 26739 "Photo.c" - gboolean _tmp6_ = FALSE; -#line 3680 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo_export_fullsized_backing (self, dest_file, export_metadata, &_inner_error_); -#line 3680 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3680 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3680 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 26749 "Photo.c" - } -#line 3680 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp6_) { -#line 3681 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 26755 "Photo.c" - } - } -#line 3687 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource)); -#line 3687 "/home/jens/Source/shotwell/src/Photo.vala" - metadata = _tmp7_; -#line 3688 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = metadata; -#line 3688 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp8_ == NULL) { -#line 26766 "Photo.c" - PhotoMetadata* _tmp9_; -#line 3689 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = photo_file_format_create_metadata (export_format); -#line 3689 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 3689 "/home/jens/Source/shotwell/src/Photo.vala" - metadata = _tmp9_; -#line 26774 "Photo.c" - } -#line 3691 "/home/jens/Source/shotwell/src/Photo.vala" - if (!photo_file_format_can_write (export_format)) { -#line 3692 "/home/jens/Source/shotwell/src/Photo.vala" - export_format = photo_file_format_get_system_default_format (); -#line 26780 "Photo.c" - } -#line 3694 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = g_file_get_path (dest_file); -#line 3694 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_; -#line 3694 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = photo_file_format_create_writer (export_format, _tmp11_, &_inner_error_); -#line 3694 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_; -#line 3694 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp11_); -#line 3694 "/home/jens/Source/shotwell/src/Photo.vala" - writer = _tmp13_; -#line 3694 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3694 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3694 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 3694 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 26802 "Photo.c" - } -#line 3696 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 3696 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_; -#line 3696 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = writer; -#line 3696 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 3696 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp17_; -#line 3697 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), export_format); -#line 3696 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:3696: Saving transformed version of %s to %s in file format" \ -" %s", _tmp15_, _tmp18_, (_tmp19_ != NULL) ? _tmp19_->value_name : NULL); -#line 3696 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp18_); -#line 3696 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp15_); -#line 3703 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_get_file_format (self) == PHOTO_FILE_FORMAT_JFIF) { -#line 3703 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = TRUE; -#line 26826 "Photo.c" - } else { -#line 3704 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = photo_get_file_format (self) == PHOTO_FILE_FORMAT_RAW; -#line 26830 "Photo.c" - } -#line 3703 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp20_) { -#line 26834 "Photo.c" - GdkPixbuf* _tmp21_ = NULL; - Scaling _tmp22_; - GdkPixbuf* _tmp23_; - GdkPixbuf* _tmp24_; -#line 3705 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = *scaling; -#line 3705 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = photo_get_pixbuf_with_options (self, &_tmp22_, PHOTO_EXCEPTION_ORIENTATION, BACKING_FETCH_MODE_SOURCE, &_inner_error_); -#line 3705 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _tmp23_; -#line 3705 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3705 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3705 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 3705 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 3705 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 3705 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 26857 "Photo.c" - } -#line 3705 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = _tmp21_; -#line 3705 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = NULL; -#line 3705 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 3705 "/home/jens/Source/shotwell/src/Photo.vala" - pixbuf = _tmp24_; -#line 3703 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp21_); -#line 26869 "Photo.c" - } else { - GdkPixbuf* _tmp25_ = NULL; - Scaling _tmp26_; - GdkPixbuf* _tmp27_; - GdkPixbuf* _tmp28_; -#line 3709 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = *scaling; -#line 3709 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = photo_get_pixbuf_with_options (self, &_tmp26_, PHOTO_EXCEPTION_NONE, BACKING_FETCH_MODE_SOURCE, &_inner_error_); -#line 3709 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = _tmp27_; -#line 3709 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3709 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3709 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 3709 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 3709 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 3709 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 26893 "Photo.c" - } -#line 3709 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = _tmp25_; -#line 3709 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = NULL; -#line 3709 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 3709 "/home/jens/Source/shotwell/src/Photo.vala" - pixbuf = _tmp28_; -#line 3703 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp25_); -#line 26905 "Photo.c" - } -#line 3713 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = writer; -#line 3713 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = pixbuf; -#line 3713 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_writer_write (_tmp29_, _tmp30_, quality, &_inner_error_); -#line 3713 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3713 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3713 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 3713 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 3713 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 3713 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 26925 "Photo.c" - } -#line 3715 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = writer; -#line 3715 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 3715 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = _tmp32_; -#line 3715 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:3715: Setting EXIF for %s", _tmp33_); -#line 3715 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp33_); -#line 3718 "/home/jens/Source/shotwell/src/Photo.vala" - if (export_metadata) { -#line 26939 "Photo.c" - PhotoMetadata* _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; - PhotoMetadata* _tmp37_; - gchar* _tmp38_; - gchar* _tmp39_; - PhotoMetadata* _tmp40_; - PhotoMetadata* _tmp45_; - PhotoMetadata* _tmp46_; - PhotoMetadata* _tmp47_; -#line 3720 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = metadata; -#line 3720 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3720 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = _tmp35_; -#line 3720 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_title (_tmp34_, _tmp36_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 3720 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp36_); -#line 3721 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = metadata; -#line 3721 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = media_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3721 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = _tmp38_; -#line 3721 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_comment (_tmp37_, _tmp39_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 3721 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp39_); -#line 3722 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = metadata; -#line 3722 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_software (_tmp40_, RESOURCES_APP_TITLE, RESOURCES_APP_VERSION); -#line 3724 "/home/jens/Source/shotwell/src/Photo.vala" - if (media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)) != ((time_t) 0)) { -#line 26976 "Photo.c" - PhotoMetadata* _tmp41_; - MetadataDateTime* _tmp42_; - MetadataDateTime* _tmp43_; -#line 3725 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = metadata; -#line 3725 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = metadata_date_time_new (media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource))); -#line 3725 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = _tmp42_; -#line 3725 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_exposure_date_time (_tmp41_, _tmp43_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 3725 "/home/jens/Source/shotwell/src/Photo.vala" - _metadata_date_time_unref0 (_tmp43_); -#line 26990 "Photo.c" - } else { - PhotoMetadata* _tmp44_; -#line 3727 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = metadata; -#line 3727 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_exposure_date_time (_tmp44_, NULL, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 26997 "Photo.c" - } -#line 3729 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = metadata; -#line 3729 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_remove_tag (_tmp45_, "Exif.Iop.RelatedImageWidth"); -#line 3730 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = metadata; -#line 3730 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_remove_tag (_tmp46_, "Exif.Iop.RelatedImageHeight"); -#line 3731 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = metadata; -#line 3731 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_remove_exif_thumbnail (_tmp47_); -#line 3733 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_has_user_generated_metadata (self)) { -#line 27013 "Photo.c" - PhotoMetadata* _tmp48_; -#line 3734 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = metadata; -#line 3734 "/home/jens/Source/shotwell/src/Photo.vala" - photo_set_user_metadata_for_export (self, _tmp48_); -#line 27019 "Photo.c" - } - } else { - PhotoMetadata* _tmp49_; -#line 3738 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = metadata; -#line 3738 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_clear (_tmp49_); -#line 27027 "Photo.c" - } -#line 3745 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_get_file_format (self) == PHOTO_FILE_FORMAT_JFIF) { -#line 3745 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = TRUE; -#line 27033 "Photo.c" - } else { -#line 3746 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = photo_get_file_format (self) == PHOTO_FILE_FORMAT_RAW; -#line 27037 "Photo.c" - } -#line 3745 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp50_) { -#line 27041 "Photo.c" - PhotoMetadata* _tmp51_; - Dimensions _tmp52_ = {0}; - PhotoMetadata* _tmp53_; -#line 3747 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp51_ = metadata; -#line 3747 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_ORIENTATION, &_tmp52_); -#line 3747 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_pixel_dimensions (_tmp51_, &_tmp52_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 3748 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp53_ = metadata; -#line 3748 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_orientation (_tmp53_, photo_get_orientation (self)); -#line 27055 "Photo.c" - } else { - PhotoMetadata* _tmp54_; - GdkPixbuf* _tmp55_; - Dimensions _tmp56_ = {0}; - PhotoMetadata* _tmp57_; -#line 3751 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp54_ = metadata; -#line 3751 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp55_ = pixbuf; -#line 3751 "/home/jens/Source/shotwell/src/Photo.vala" - dimensions_for_pixbuf (_tmp55_, &_tmp56_); -#line 3751 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_pixel_dimensions (_tmp54_, &_tmp56_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 3752 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_ = metadata; -#line 3752 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_orientation (_tmp57_, ORIENTATION_TOP_LEFT); -#line 27073 "Photo.c" - } -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp59_ = g_file_get_path (dest_file); -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp60_ = _tmp59_; -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp61_ = photo_file_format_create_metadata_writer (export_format, _tmp60_, &_inner_error_); -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp62_ = _tmp61_; -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp60_); -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp58_ = _tmp62_; -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 27099 "Photo.c" - } -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp63_ = metadata; -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - photo_file_metadata_writer_write_metadata (_tmp58_, _tmp63_, &_inner_error_); -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp58_); -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 3755 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 27119 "Photo.c" - } -#line 3666 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp58_); -#line 3666 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 3666 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (writer); -#line 3666 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 27129 "Photo.c" -} - - -static GFile* -photo_generate_new_editable_file (Photo* self, - PhotoFileFormat* file_format, - GError** error) -{ - PhotoFileFormat _vala_file_format = 0; - GFile* result = NULL; - GFile* backing = NULL; - PhotoFileFormat _tmp3_; - gchar* name = NULL; - gchar* ext = NULL; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_ = NULL; - gchar* _tmp7_ = NULL; - gboolean _tmp8_ = FALSE; - const gchar* _tmp9_; - gchar* editable_basename = NULL; - const gchar* _tmp18_; - const gchar* _tmp19_; - gchar* _tmp20_; - gboolean collision = FALSE; - GFile* _tmp21_ = NULL; - GFile* _tmp22_; - GFile* _tmp23_; - gboolean _tmp24_ = FALSE; - GFile* _tmp25_; - GFile* _tmp26_; - GFile* _tmp27_; - GError * _inner_error_ = NULL; -#line 3758 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 27165 "Photo.c" - { - PhotoRow* _tmp0_; -#line 3760 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->row; -#line 3760 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 27172 "Photo.c" - { - GFile* _tmp1_; -#line 3761 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_file_format = photo_get_file_format (self); -#line 3762 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3762 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (backing); -#line 3762 "/home/jens/Source/shotwell/src/Photo.vala" - backing = _tmp1_; -#line 27183 "Photo.c" - } - __finally399: - { - PhotoRow* _tmp2_; -#line 3760 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->row; -#line 3760 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 27192 "Photo.c" - } -#line 3760 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3760 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3760 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (backing); -#line 3760 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 27202 "Photo.c" - } - } -#line 3765 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _vala_file_format; -#line 3765 "/home/jens/Source/shotwell/src/Photo.vala" - if (!photo_file_format_can_write (_tmp3_)) { -#line 3766 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_file_format = photo_file_format_get_system_default_format (); -#line 27211 "Photo.c" - } -#line 3769 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = g_file_get_basename (backing); -#line 3769 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_; -#line 3769 "/home/jens/Source/shotwell/src/Photo.vala" - disassemble_filename (_tmp5_, &_tmp6_, &_tmp7_); -#line 3769 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (name); -#line 3769 "/home/jens/Source/shotwell/src/Photo.vala" - name = _tmp6_; -#line 3769 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (ext); -#line 3769 "/home/jens/Source/shotwell/src/Photo.vala" - ext = _tmp7_; -#line 3769 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp5_); -#line 3771 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = ext; -#line 3771 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp9_ == NULL) { -#line 3771 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = TRUE; -#line 27235 "Photo.c" - } else { - PhotoFileFormat _tmp10_; - PhotoFileFormatProperties* _tmp11_; - PhotoFileFormatProperties* _tmp12_; - const gchar* _tmp13_; -#line 3771 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _vala_file_format; -#line 3771 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = photo_file_format_get_properties (_tmp10_); -#line 3771 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_; -#line 3771 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = ext; -#line 3771 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = !photo_file_format_properties_is_recognized_extension (_tmp12_, _tmp13_); -#line 3771 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_format_properties_unref0 (_tmp12_); -#line 27253 "Photo.c" - } -#line 3771 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp8_) { -#line 27257 "Photo.c" - PhotoFileFormat _tmp14_; - PhotoFileFormatProperties* _tmp15_; - PhotoFileFormatProperties* _tmp16_; - gchar* _tmp17_; -#line 3772 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _vala_file_format; -#line 3772 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = photo_file_format_get_properties (_tmp14_); -#line 3772 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = _tmp15_; -#line 3772 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = photo_file_format_properties_get_default_extension (_tmp16_); -#line 3772 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (ext); -#line 3772 "/home/jens/Source/shotwell/src/Photo.vala" - ext = _tmp17_; -#line 3772 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_format_properties_unref0 (_tmp16_); -#line 27276 "Photo.c" - } -#line 3774 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = name; -#line 3774 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = ext; -#line 3774 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = g_strdup_printf ("%s_%s.%s", _tmp18_, _ ("modified"), _tmp19_); -#line 3774 "/home/jens/Source/shotwell/src/Photo.vala" - editable_basename = _tmp20_; -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = g_file_get_parent (backing); -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _tmp22_; -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = generate_unique_file (_tmp23_, editable_basename, &_tmp24_, &_inner_error_); -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - collision = _tmp24_; -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = _tmp25_; -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp23_); -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _tmp26_; -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (editable_basename); -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (ext); -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (name); -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (backing); -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 27314 "Photo.c" - } -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = _tmp21_; -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = NULL; -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp27_; -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp21_); -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (editable_basename); -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (ext); -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (name); -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (backing); -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - if (file_format) { -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - *file_format = _vala_file_format; -#line 27336 "Photo.c" - } -#line 3777 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 27340 "Photo.c" -} - - -static void -_g_object_unref0_ (gpointer var) -{ -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - (var == NULL) ? NULL : (var = (g_object_unref (var), NULL)); -#line 27349 "Photo.c" -} - - -static inline void -_g_list_free__g_object_unref0_ (GList* self) -{ -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - g_list_free_full (self, (GDestroyNotify) _g_object_unref0_); -#line 27358 "Photo.c" -} - - -static gboolean -photo_launch_editor (GFile* file, - PhotoFileFormat file_format, - GError** error) -{ - gboolean result = FALSE; - gchar* _tmp0_ = NULL; - gchar* commandline = NULL; - gchar* _tmp7_; - const gchar* _tmp8_; - GAppInfo* app = NULL; - GList* files = NULL; - GFile* _tmp14_; - GAppInfo* _tmp15_; - gchar** argv = NULL; - gchar** _tmp20_; - gint argv_length1; - gint _argv_size_; - gchar** _tmp21_; - gint _tmp21__length1; - const gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - gchar** _tmp25_; - gint _tmp25__length1; - gchar* _tmp26_; - gchar* _tmp27_; - GPid child_pid = 0; - gboolean _tmp28_ = FALSE; - gchar** _tmp29_; - gint _tmp29__length1; - GPid _tmp30_ = 0; - gboolean _tmp31_; - GError * _inner_error_ = NULL; -#line 3780 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 3781 "/home/jens/Source/shotwell/src/Photo.vala" - if (file_format == PHOTO_FILE_FORMAT_RAW) { -#line 27400 "Photo.c" - ConfigFacade* _tmp1_; - ConfigFacade* _tmp2_; - gchar* _tmp3_; -#line 3781 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = config_facade_get_instance (); -#line 3781 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 3781 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = configuration_facade_get_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 3781 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp0_); -#line 3781 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp3_; -#line 3781 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp2_); -#line 27416 "Photo.c" - } else { - ConfigFacade* _tmp4_; - ConfigFacade* _tmp5_; - gchar* _tmp6_; -#line 3782 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = config_facade_get_instance (); -#line 3782 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_; -#line 3782 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 3782 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp0_); -#line 3782 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp6_; -#line 3782 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp5_); -#line 27433 "Photo.c" - } -#line 3781 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = g_strdup (_tmp0_); -#line 3781 "/home/jens/Source/shotwell/src/Photo.vala" - commandline = _tmp7_; -#line 3784 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = commandline; -#line 3784 "/home/jens/Source/shotwell/src/Photo.vala" - if (is_string_empty (_tmp8_)) { -#line 3785 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 3785 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (commandline); -#line 3785 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp0_); -#line 3785 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 27451 "Photo.c" - } - { - GAppInfo* _tmp9_ = NULL; - const gchar* _tmp10_; - GAppInfo* _tmp11_; - GAppInfo* _tmp12_; -#line 3789 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = commandline; -#line 3789 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = g_app_info_create_from_commandline (_tmp10_, "", G_APP_INFO_CREATE_NONE, &_inner_error_); -#line 3789 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp11_; -#line 3789 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 27466 "Photo.c" - goto __catch400_g_error; - } -#line 3789 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp9_; -#line 3789 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = NULL; -#line 3789 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (app); -#line 3789 "/home/jens/Source/shotwell/src/Photo.vala" - app = _tmp12_; -#line 3788 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp9_); -#line 27479 "Photo.c" - } - goto __finally400; - __catch400_g_error: - { - GError* er = NULL; -#line 3788 "/home/jens/Source/shotwell/src/Photo.vala" - er = _inner_error_; -#line 3788 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 3792 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (app); -#line 3792 "/home/jens/Source/shotwell/src/Photo.vala" - app = NULL; -#line 3788 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (er); -#line 27495 "Photo.c" - } - __finally400: -#line 3788 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 27500 "Photo.c" - gboolean _tmp13_ = FALSE; -#line 3788 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3788 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (app); -#line 3788 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (commandline); -#line 3788 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp0_); -#line 3788 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp13_; -#line 27512 "Photo.c" - } -#line 3795 "/home/jens/Source/shotwell/src/Photo.vala" - files = NULL; -#line 3796 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _g_object_ref0 (file); -#line 3796 "/home/jens/Source/shotwell/src/Photo.vala" - files = g_list_insert (files, _tmp14_, -1); -#line 3798 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = app; -#line 3798 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp15_ != NULL) { -#line 27524 "Photo.c" - gboolean _tmp16_ = FALSE; - GAppInfo* _tmp17_; - GList* _tmp18_; -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = app; -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = files; -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = g_app_info_launch (_tmp17_, _tmp18_, NULL, &_inner_error_); -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 27536 "Photo.c" - gboolean _tmp19_ = FALSE; -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - __g_list_free__g_object_unref0_0 (files); -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (app); -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (commandline); -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp0_); -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp19_; -#line 27550 "Photo.c" - } -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp16_; -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - __g_list_free__g_object_unref0_0 (files); -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (app); -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (commandline); -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp0_); -#line 3799 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 27564 "Photo.c" - } -#line 3801 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = g_new0 (gchar*, 2 + 1); -#line 3801 "/home/jens/Source/shotwell/src/Photo.vala" - argv = _tmp20_; -#line 3801 "/home/jens/Source/shotwell/src/Photo.vala" - argv_length1 = 2; -#line 3801 "/home/jens/Source/shotwell/src/Photo.vala" - _argv_size_ = argv_length1; -#line 3802 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = argv; -#line 3802 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21__length1 = argv_length1; -#line 3802 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = commandline; -#line 3802 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = g_strdup (_tmp22_); -#line 3802 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp21_[0]); -#line 3802 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_[0] = _tmp23_; -#line 3802 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = _tmp21_[0]; -#line 3803 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = argv; -#line 3803 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25__length1 = argv_length1; -#line 3803 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = g_file_get_path (file); -#line 3803 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp25_[1]); -#line 3803 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_[1] = _tmp26_; -#line 3803 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = _tmp25_[1]; -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = argv; -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29__length1 = argv_length1; -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = g_spawn_async ("/", _tmp29_, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, &_tmp30_, &_inner_error_); -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - child_pid = _tmp30_; -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = _tmp31_; -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 27612 "Photo.c" - gboolean _tmp32_ = FALSE; -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL); -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - __g_list_free__g_object_unref0_0 (files); -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (app); -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (commandline); -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp0_); -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp32_; -#line 27628 "Photo.c" - } -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp28_; -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL); -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - __g_list_free__g_object_unref0_0 (files); -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (app); -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (commandline); -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp0_); -#line 3807 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 27644 "Photo.c" -} - - -void -photo_open_with_raw_external_editor (Photo* self, - GError** error) -{ - GFile* _tmp0_; - GFile* _tmp1_; - GError * _inner_error_ = NULL; -#line 3817 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 3818 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3818 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 3818 "/home/jens/Source/shotwell/src/Photo.vala" - photo_launch_editor (_tmp1_, photo_get_master_file_format (self), &_inner_error_); -#line 3818 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp1_); -#line 3818 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3818 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3818 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 27671 "Photo.c" - } -} - - -void -photo_open_with_external_editor (Photo* self, - GError** error) -{ - GFile* current_editable_file = NULL; - GFile* create_editable_file = NULL; - PhotoFileFormat editable_file_format = 0; - gboolean _tmp14_ = FALSE; - gboolean _tmp15_ = FALSE; - GFile* _tmp16_; - gboolean _tmp22_ = FALSE; - GFile* _tmp23_; - GFile* _tmp40_; - GFileMonitor* _tmp41_; - GFile* _tmp43_; - GError * _inner_error_ = NULL; -#line 3822 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 3823 "/home/jens/Source/shotwell/src/Photo.vala" - current_editable_file = NULL; -#line 3824 "/home/jens/Source/shotwell/src/Photo.vala" - create_editable_file = NULL; -#line 27698 "Photo.c" - { - PhotoBackingReaders* _tmp0_; -#line 3826 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->readers; -#line 3826 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 27705 "Photo.c" - { - PhotoBackingReaders* _tmp1_; - PhotoFileReader* _tmp2_; - GFile* _tmp6_; -#line 3827 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->readers; -#line 3827 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->editable; -#line 3827 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ != NULL) { -#line 27716 "Photo.c" - PhotoBackingReaders* _tmp3_; - PhotoFileReader* _tmp4_; - GFile* _tmp5_; -#line 3828 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->readers; -#line 3828 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->editable; -#line 3828 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 3828 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (current_editable_file); -#line 3828 "/home/jens/Source/shotwell/src/Photo.vala" - current_editable_file = _tmp5_; -#line 27730 "Photo.c" - } -#line 3830 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = current_editable_file; -#line 3830 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp6_ == NULL) { -#line 27736 "Photo.c" - GFile* _tmp7_ = NULL; - PhotoFileFormat _tmp8_ = 0; - GFile* _tmp9_; - GFile* _tmp10_; -#line 3831 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = photo_generate_new_editable_file (self, &_tmp8_, &_inner_error_); -#line 3831 "/home/jens/Source/shotwell/src/Photo.vala" - editable_file_format = _tmp8_; -#line 3831 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp9_; -#line 3831 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 27749 "Photo.c" - goto __finally401; - } -#line 3831 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp7_; -#line 3831 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = NULL; -#line 3831 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (create_editable_file); -#line 3831 "/home/jens/Source/shotwell/src/Photo.vala" - create_editable_file = _tmp10_; -#line 3830 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp7_); -#line 27762 "Photo.c" - } else { - PhotoBackingReaders* _tmp11_; - PhotoFileReader* _tmp12_; -#line 3833 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = self->priv->readers; -#line 3833 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_->editable; -#line 3833 "/home/jens/Source/shotwell/src/Photo.vala" - editable_file_format = photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 27772 "Photo.c" - } - } - __finally401: - { - PhotoBackingReaders* _tmp13_; -#line 3826 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = self->priv->readers; -#line 3826 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 27782 "Photo.c" - } -#line 3826 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3826 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3826 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (create_editable_file); -#line 3826 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (current_editable_file); -#line 3826 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 27794 "Photo.c" - } - } -#line 3838 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = create_editable_file; -#line 3838 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp16_ == NULL) { -#line 27801 "Photo.c" - GFile* _tmp17_; -#line 3838 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = current_editable_file; -#line 3838 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp17_ != NULL; -#line 27807 "Photo.c" - } else { -#line 3838 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = FALSE; -#line 27811 "Photo.c" - } -#line 3838 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp15_) { -#line 27815 "Photo.c" - gboolean _tmp18_ = FALSE; - GFile* _tmp19_; -#line 3839 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = current_editable_file; -#line 3839 "/home/jens/Source/shotwell/src/Photo.vala" - if (!g_file_query_exists (_tmp19_, NULL)) { -#line 3839 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = TRUE; -#line 27824 "Photo.c" - } else { -#line 3839 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = photo_has_transformations (self); -#line 27828 "Photo.c" - } -#line 3839 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _tmp18_; -#line 27832 "Photo.c" - } else { -#line 3838 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = FALSE; -#line 27836 "Photo.c" - } -#line 3838 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp14_) { -#line 27840 "Photo.c" - GFile* _tmp20_; - GFile* _tmp21_; -#line 3840 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = current_editable_file; -#line 3840 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _g_object_ref0 (_tmp20_); -#line 3840 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (create_editable_file); -#line 3840 "/home/jens/Source/shotwell/src/Photo.vala" - create_editable_file = _tmp21_; -#line 27851 "Photo.c" - } -#line 3843 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = create_editable_file; -#line 3843 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp23_ != NULL) { -#line 27857 "Photo.c" - PhotoFileFormat _tmp24_; -#line 3843 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = editable_file_format; -#line 3843 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = photo_file_format_can_write (_tmp24_); -#line 27863 "Photo.c" - } else { -#line 3843 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = FALSE; -#line 27867 "Photo.c" - } -#line 3843 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp22_) { -#line 27871 "Photo.c" - PhotoFileFormat _tmp36_; - GFile* _tmp37_; - GFile* _tmp38_; - GFile* _tmp39_; -#line 3844 "/home/jens/Source/shotwell/src/Photo.vala" - photo_halt_monitoring_editable (self); -#line 27878 "Photo.c" - { - GFile* _tmp25_; - Scaling _tmp26_ = {0}; - PhotoFileFormat _tmp27_; -#line 3847 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = create_editable_file; -#line 3847 "/home/jens/Source/shotwell/src/Photo.vala" - scaling_for_original (&_tmp26_); -#line 3847 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = editable_file_format; -#line 3847 "/home/jens/Source/shotwell/src/Photo.vala" - photo_export (self, _tmp25_, &_tmp26_, JPEG_QUALITY_MAXIMUM, _tmp27_, FALSE, TRUE, &_inner_error_); -#line 3847 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 27893 "Photo.c" - goto __catch402_g_error; - } - } - goto __finally402; - __catch402_g_error: - { - GError* err = NULL; - GError* _tmp34_; - GError* _tmp35_; -#line 3846 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 3846 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 27907 "Photo.c" - { - GFile* _tmp28_; -#line 3852 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = create_editable_file; -#line 3852 "/home/jens/Source/shotwell/src/Photo.vala" - g_file_delete (_tmp28_, NULL, &_inner_error_); -#line 3852 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 27916 "Photo.c" - goto __catch403_g_error; - } - } - goto __finally403; - __catch403_g_error: - { - GError* delete_err = NULL; - GFile* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - GError* _tmp32_; - const gchar* _tmp33_; -#line 3851 "/home/jens/Source/shotwell/src/Photo.vala" - delete_err = _inner_error_; -#line 3851 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 3855 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = create_editable_file; -#line 3855 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = g_file_get_path (_tmp29_); -#line 3855 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = _tmp30_; -#line 3855 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = delete_err; -#line 3855 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = _tmp32_->message; -#line 3855 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:3855: Unable to delete editable file %s after export error:" \ -" %s", _tmp31_, _tmp33_); -#line 3855 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp31_); -#line 3851 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (delete_err); -#line 27949 "Photo.c" - } - __finally403: -#line 3851 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3851 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 3851 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 3851 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (create_editable_file); -#line 3851 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (current_editable_file); -#line 3851 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 3851 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 3851 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 27968 "Photo.c" - } -#line 3859 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = err; -#line 3859 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = _g_error_copy0 (_tmp34_); -#line 3859 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = _tmp35_; -#line 3859 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 27978 "Photo.c" - goto __finally402; - } - __finally402: -#line 3846 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3846 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3846 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (create_editable_file); -#line 3846 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (current_editable_file); -#line 3846 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 27992 "Photo.c" - } -#line 3863 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = editable_file_format; -#line 3863 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = create_editable_file; -#line 3863 "/home/jens/Source/shotwell/src/Photo.vala" - photo_attach_editable (self, _tmp36_, _tmp37_, &_inner_error_); -#line 3863 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3863 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3863 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (create_editable_file); -#line 3863 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (current_editable_file); -#line 3863 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 28010 "Photo.c" - } -#line 3865 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = create_editable_file; -#line 3865 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = _g_object_ref0 (_tmp38_); -#line 3865 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (current_editable_file); -#line 3865 "/home/jens/Source/shotwell/src/Photo.vala" - current_editable_file = _tmp39_; -#line 28020 "Photo.c" - } -#line 3868 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = current_editable_file; -#line 3868 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (_tmp40_ != NULL, "current_editable_file != null"); -#line 3871 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = self->priv->editable_monitor; -#line 3871 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp41_ == NULL) { -#line 28030 "Photo.c" - GFile* _tmp42_; -#line 3872 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = current_editable_file; -#line 3872 "/home/jens/Source/shotwell/src/Photo.vala" - photo_start_monitoring_editable (self, _tmp42_, &_inner_error_); -#line 3872 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3872 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3872 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (create_editable_file); -#line 3872 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (current_editable_file); -#line 3872 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 28046 "Photo.c" - } - } -#line 3874 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = current_editable_file; -#line 3874 "/home/jens/Source/shotwell/src/Photo.vala" - photo_launch_editor (_tmp43_, photo_get_file_format (self), &_inner_error_); -#line 3874 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3874 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3874 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (create_editable_file); -#line 3874 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (current_editable_file); -#line 3874 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 28063 "Photo.c" - } -#line 3822 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (create_editable_file); -#line 3822 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (current_editable_file); -#line 28069 "Photo.c" -} - - -void -photo_revert_to_master (Photo* self, - gboolean notify) -{ -#line 3877 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 3878 "/home/jens/Source/shotwell/src/Photo.vala" - photo_detach_editable (self, TRUE, TRUE, notify); -#line 28081 "Photo.c" -} - - -static void -_photo_on_editable_file_changed_g_file_monitor_changed (GFileMonitor* _sender, - GFile* file, - GFile* other_file, - GFileMonitorEvent event_type, - gpointer self) -{ -#line 3888 "/home/jens/Source/shotwell/src/Photo.vala" - photo_on_editable_file_changed ((Photo*) self, file, other_file, event_type); -#line 28094 "Photo.c" -} - - -static void -photo_start_monitoring_editable (Photo* self, - GFile* file, - GError** error) -{ - GFileMonitor* _tmp0_ = NULL; - GFileMonitor* _tmp1_; - GFileMonitor* _tmp2_; - GFileMonitor* _tmp3_; - GError * _inner_error_ = NULL; -#line 3881 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 3881 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 3882 "/home/jens/Source/shotwell/src/Photo.vala" - photo_halt_monitoring_editable (self); -#line 3885 "/home/jens/Source/shotwell/src/Photo.vala" - library_monitor_blacklist_file (file, "Photo.start_monitoring_editable"); -#line 3887 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = g_file_monitor (file, G_FILE_MONITOR_NONE, NULL, &_inner_error_); -#line 3887 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp1_; -#line 3887 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3887 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3887 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 28126 "Photo.c" - } -#line 3887 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp0_; -#line 3887 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = NULL; -#line 3887 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->editable_monitor); -#line 3887 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->editable_monitor = _tmp2_; -#line 3888 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->editable_monitor; -#line 3888 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_connect_object (_tmp3_, "changed", (GCallback) _photo_on_editable_file_changed_g_file_monitor_changed, self, 0); -#line 3881 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp0_); -#line 28142 "Photo.c" -} - - -static void -photo_halt_monitoring_editable (Photo* self) -{ - GFileMonitor* _tmp0_; - GFile* file = NULL; - GFile* _tmp1_; - GFile* _tmp2_; - GFileMonitor* _tmp4_; - guint _tmp5_; - GFileMonitor* _tmp6_; -#line 3891 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 3892 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->editable_monitor; -#line 3892 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp0_ == NULL) { -#line 3893 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 28164 "Photo.c" - } -#line 3896 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_get_editable_file (self); -#line 3896 "/home/jens/Source/shotwell/src/Photo.vala" - file = _tmp1_; -#line 3897 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = file; -#line 3897 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ != NULL) { -#line 28174 "Photo.c" - GFile* _tmp3_; -#line 3898 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = file; -#line 3898 "/home/jens/Source/shotwell/src/Photo.vala" - library_monitor_unblacklist_file (_tmp3_); -#line 28180 "Photo.c" - } -#line 3900 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->priv->editable_monitor; -#line 3900 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_parse_name ("changed", g_file_monitor_get_type (), &_tmp5_, NULL, FALSE); -#line 3900 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _photo_on_editable_file_changed_g_file_monitor_changed, self); -#line 3901 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->priv->editable_monitor; -#line 3901 "/home/jens/Source/shotwell/src/Photo.vala" - g_file_monitor_cancel (_tmp6_); -#line 3902 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->editable_monitor); -#line 3902 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->editable_monitor = NULL; -#line 3891 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 28198 "Photo.c" -} - - -static void -photo_attach_editable (Photo* self, - PhotoFileFormat file_format, - GFile* file, - GError** error) -{ - gchar* _tmp0_; - gchar* _tmp1_; - PhotoFileReader* _tmp2_; - PhotoFileReader* _tmp3_; - GError * _inner_error_ = NULL; -#line 3905 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 3905 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 3910 "/home/jens/Source/shotwell/src/Photo.vala" - photo_internal_remove_all_transformations (self, FALSE); -#line 3911 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = g_file_get_path (file); -#line 3911 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 3911 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_file_format_create_reader (file_format, _tmp1_); -#line 3911 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_; -#line 3911 "/home/jens/Source/shotwell/src/Photo.vala" - photo_update_editable (self, FALSE, _tmp3_, &_inner_error_); -#line 3911 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp3_); -#line 3911 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp1_); -#line 3911 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3911 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3911 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 28239 "Photo.c" - } -} - - -static void -photo_update_editable_attributes (Photo* self, - GError** error) -{ - GError * _inner_error_ = NULL; -#line 3914 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 3915 "/home/jens/Source/shotwell/src/Photo.vala" - photo_update_editable (self, TRUE, NULL, &_inner_error_); -#line 3915 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3915 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3915 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 28259 "Photo.c" - } -} - - -void -photo_reimport_editable (Photo* self, - GError** error) -{ - GError * _inner_error_ = NULL; -#line 3918 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 3919 "/home/jens/Source/shotwell/src/Photo.vala" - photo_update_editable (self, FALSE, NULL, &_inner_error_); -#line 3919 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3919 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3919 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 28279 "Photo.c" - } -} - - -static void -_vala_array_add106 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 4026 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 4026 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 4026 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 28296 "Photo.c" - } -#line 4026 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 4026 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 28302 "Photo.c" -} - - -static void -_vala_array_add107 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 4027 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 4027 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 4027 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 28318 "Photo.c" - } -#line 4027 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 4027 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 28324 "Photo.c" -} - - -static void -_vala_array_add108 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 4030 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 4030 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 4030 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 28340 "Photo.c" - } -#line 4030 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 4030 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 28346 "Photo.c" -} - - -static void -_vala_array_add109 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 4034 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 4034 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 4034 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 28362 "Photo.c" - } -#line 4034 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 4034 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 28368 "Photo.c" -} - - -static void -_vala_array_add110 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 4035 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 4035 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 4035 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 28384 "Photo.c" - } -#line 4035 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 4035 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 28390 "Photo.c" -} - - -static void -_vala_array_add111 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 4038 "/home/jens/Source/shotwell/src/Photo.vala" - if ((*length) == (*size)) { -#line 4038 "/home/jens/Source/shotwell/src/Photo.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 4038 "/home/jens/Source/shotwell/src/Photo.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 28406 "Photo.c" - } -#line 4038 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[(*length)++] = value; -#line 4038 "/home/jens/Source/shotwell/src/Photo.vala" - (*array)[*length] = NULL; -#line 28412 "Photo.c" -} - - -static void -photo_update_editable (Photo* self, - gboolean only_attributes, - PhotoFileReader* new_reader, - GError** error) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - PhotoFileReader* old_reader = NULL; - PhotoFileReader* _tmp2_; - PhotoFileReader* _tmp3_ = NULL; - PhotoFileReader* reader = NULL; - PhotoFileReader* _tmp5_; - PhotoFileReader* _tmp6_; - gboolean timestamp_changed = FALSE; - gboolean filesize_changed = FALSE; - gboolean is_new_editable = FALSE; - BackingPhotoID editable_id = {0}; - BackingPhotoID _tmp7_ = {0}; - GFile* file = NULL; - PhotoFileReader* _tmp8_; - GFile* _tmp9_; - DetectedPhotoInformation* detected = NULL; - BackingPhotoRow* backing = NULL; - GFile* _tmp10_; - DetectedPhotoInformation* _tmp11_ = NULL; - BackingPhotoRow* _tmp12_; - gboolean _tmp87_ = FALSE; - gchar** alteration_list = NULL; - gchar** _tmp96_; - gint alteration_list_length1; - gint _alteration_list_size_; - gboolean _tmp97_; - gboolean _tmp104_ = FALSE; - gboolean _tmp105_; - gchar** _tmp112_; - gint _tmp112__length1; - GError * _inner_error_ = NULL; -#line 3924 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 3924 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((new_reader == NULL) || IS_PHOTO_FILE_READER (new_reader)); -#line 3926 "/home/jens/Source/shotwell/src/Photo.vala" - if (only_attributes) { -#line 3926 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = new_reader == NULL; -#line 28462 "Photo.c" - } else { -#line 3926 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = FALSE; -#line 28466 "Photo.c" - } -#line 3926 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_) { -#line 3926 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = TRUE; -#line 28472 "Photo.c" - } else { -#line 3926 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = !only_attributes; -#line 28476 "Photo.c" - } -#line 3926 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (_tmp0_, "(only_attributes && new_reader == null) || (!only_attributes)"); -#line 3928 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_get_editable_reader (self); -#line 3928 "/home/jens/Source/shotwell/src/Photo.vala" - old_reader = _tmp2_; -#line 3930 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = new_reader; -#line 3930 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp3_ == NULL) { -#line 28488 "Photo.c" - PhotoFileReader* _tmp4_; -#line 3930 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = old_reader; -#line 3930 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp4_; -#line 28494 "Photo.c" - } -#line 3930 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _photo_file_adapter_ref0 (_tmp3_); -#line 3930 "/home/jens/Source/shotwell/src/Photo.vala" - reader = _tmp5_; -#line 3931 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = reader; -#line 3931 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp6_ == NULL) { -#line 3932 "/home/jens/Source/shotwell/src/Photo.vala" - photo_detach_editable (self, FALSE, TRUE, TRUE); -#line 3934 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 3934 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (old_reader); -#line 3934 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 28512 "Photo.c" - } -#line 3937 "/home/jens/Source/shotwell/src/Photo.vala" - timestamp_changed = FALSE; -#line 3938 "/home/jens/Source/shotwell/src/Photo.vala" - filesize_changed = FALSE; -#line 3939 "/home/jens/Source/shotwell/src/Photo.vala" - is_new_editable = FALSE; -#line 3941 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_editable_id (self, &_tmp7_); -#line 3941 "/home/jens/Source/shotwell/src/Photo.vala" - editable_id = _tmp7_; -#line 3942 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = reader; -#line 3942 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 3942 "/home/jens/Source/shotwell/src/Photo.vala" - file = _tmp9_; -#line 3945 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = file; -#line 3945 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = photo_query_backing_photo_row (self, _tmp10_, PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5, &_tmp11_, &_inner_error_); -#line 3945 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 3945 "/home/jens/Source/shotwell/src/Photo.vala" - detected = _tmp11_; -#line 3945 "/home/jens/Source/shotwell/src/Photo.vala" - backing = _tmp12_; -#line 3945 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3945 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3945 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 3945 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 3945 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 3945 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (old_reader); -#line 3945 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 28554 "Photo.c" - } -#line 3949 "/home/jens/Source/shotwell/src/Photo.vala" - if (backing_photo_id_is_invalid (&editable_id)) { -#line 28558 "Photo.c" - BackingPhotoRow* _tmp13_; -#line 3951 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = backing; -#line 3951 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp13_ != NULL) { -#line 28564 "Photo.c" - BackingPhotoTable* _tmp14_; - BackingPhotoTable* _tmp15_; - BackingPhotoRow* _tmp16_; -#line 3952 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = backing_photo_table_get_instance (); -#line 3952 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_; -#line 3952 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = backing; -#line 3952 "/home/jens/Source/shotwell/src/Photo.vala" - backing_photo_table_add (_tmp15_, _tmp16_, &_inner_error_); -#line 3952 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp15_); -#line 3952 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3952 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3952 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 3952 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 3952 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 3952 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 3952 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (old_reader); -#line 3952 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 28594 "Photo.c" - } - { - PhotoRow* _tmp17_; -#line 3953 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = self->row; -#line 3953 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 28602 "Photo.c" - { - PhotoTable* _tmp18_; - PhotoTable* _tmp19_; - PhotoRow* _tmp20_; - BackingPhotoRow* _tmp21_; - BackingPhotoID _tmp22_; - BackingPhotoRow* _tmp23_; - BackingPhotoRow* _tmp24_; - BackingPhotoRow* _tmp25_; - BackingPhotoRow* _tmp26_; - BackingPhotoRow* _tmp27_; - Orientation _tmp28_; -#line 3954 "/home/jens/Source/shotwell/src/Photo.vala" - timestamp_changed = TRUE; -#line 3955 "/home/jens/Source/shotwell/src/Photo.vala" - filesize_changed = TRUE; -#line 3957 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = photo_table_get_instance (); -#line 3957 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = _tmp18_; -#line 3957 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = self->row; -#line 3957 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = backing; -#line 3957 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = _tmp21_->id; -#line 3957 "/home/jens/Source/shotwell/src/Photo.vala" - photo_table_attach_editable (_tmp19_, _tmp20_, &_tmp22_, &_inner_error_); -#line 3957 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp19_); -#line 3957 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 28635 "Photo.c" - goto __finally404; - } -#line 3958 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = backing; -#line 3958 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = _backing_photo_row_ref0 (_tmp23_); -#line 3958 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->priv->editable); -#line 3958 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->editable = _tmp24_; -#line 3959 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = self->priv->editable; -#line 3959 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = _backing_photo_row_ref0 (_tmp25_); -#line 3959 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->backing_photo_row); -#line 3959 "/home/jens/Source/shotwell/src/Photo.vala" - self->backing_photo_row = _tmp26_; -#line 3960 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = self->backing_photo_row; -#line 3960 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = _tmp27_->original_orientation; -#line 3960 "/home/jens/Source/shotwell/src/Photo.vala" - photo_set_orientation (self, _tmp28_); -#line 28660 "Photo.c" - } - __finally404: - { - PhotoRow* _tmp29_; -#line 3953 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = self->row; -#line 3953 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 28669 "Photo.c" - } -#line 3953 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3953 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3953 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 3953 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 3953 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 3953 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 3953 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (old_reader); -#line 3953 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 28687 "Photo.c" - } - } - } -#line 3963 "/home/jens/Source/shotwell/src/Photo.vala" - is_new_editable = TRUE; -#line 28693 "Photo.c" - } -#line 3966 "/home/jens/Source/shotwell/src/Photo.vala" - if (only_attributes) { -#line 28697 "Photo.c" - GFileInfo* info = NULL; - GTimeVal timestamp = {0}; - GFileInfo* _tmp38_; - GTimeVal _tmp39_ = {0}; - BackingPhotoTable* _tmp40_; - BackingPhotoTable* _tmp41_; - BackingPhotoID _tmp42_; - GTimeVal _tmp43_; - glong _tmp44_; - GFileInfo* _tmp45_; -#line 3968 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (backing_photo_id_is_valid (&editable_id), "editable_id.is_valid()"); -#line 28710 "Photo.c" - { - GFileInfo* _tmp30_ = NULL; - GFile* _tmp31_; - GFileInfo* _tmp32_; - GFileInfo* _tmp33_; -#line 3972 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = file; -#line 3972 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = g_file_query_filesystem_info (_tmp31_, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, NULL, &_inner_error_); -#line 3972 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = _tmp32_; -#line 3972 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 28724 "Photo.c" - goto __catch405_g_error; - } -#line 3972 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = _tmp30_; -#line 3972 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = NULL; -#line 3972 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 3972 "/home/jens/Source/shotwell/src/Photo.vala" - info = _tmp33_; -#line 3971 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp30_); -#line 28737 "Photo.c" - } - goto __finally405; - __catch405_g_error: - { - GError* err = NULL; - gchar* _tmp34_; - gchar* _tmp35_; - GError* _tmp36_; - const gchar* _tmp37_; -#line 3971 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 3971 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 3974 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 3974 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = _tmp34_; -#line 3974 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = err; -#line 3974 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = _tmp36_->message; -#line 3974 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:3974: Unable to read editable filesystem info for %s: %s", _tmp35_, _tmp37_); -#line 3974 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp35_); -#line 3975 "/home/jens/Source/shotwell/src/Photo.vala" - photo_detach_editable (self, FALSE, TRUE, TRUE); -#line 3977 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 3977 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 3977 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 3977 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 3977 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 3977 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 3977 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (old_reader); -#line 3977 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 28781 "Photo.c" - } - __finally405: -#line 3971 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3971 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3971 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 3971 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 3971 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 3971 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 3971 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 3971 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (old_reader); -#line 3971 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 28802 "Photo.c" - } -#line 3980 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = info; -#line 3980 "/home/jens/Source/shotwell/src/Photo.vala" - g_file_info_get_modification_time (_tmp38_, &_tmp39_); -#line 3980 "/home/jens/Source/shotwell/src/Photo.vala" - timestamp = _tmp39_; -#line 3982 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = backing_photo_table_get_instance (); -#line 3982 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = _tmp40_; -#line 3982 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = editable_id; -#line 3982 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = timestamp; -#line 3982 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = _tmp43_.tv_sec; -#line 3982 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = info; -#line 3982 "/home/jens/Source/shotwell/src/Photo.vala" - backing_photo_table_update_attributes (_tmp41_, &_tmp42_, (time_t) _tmp44_, g_file_info_get_size (_tmp45_), &_inner_error_); -#line 3982 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp41_); -#line 3982 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3982 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3982 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 3982 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 3982 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 3982 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 3982 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 3982 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (old_reader); -#line 3982 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 28844 "Photo.c" - } - { - PhotoRow* _tmp46_; -#line 3984 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = self->row; -#line 3984 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 28852 "Photo.c" - { - BackingPhotoRow* _tmp47_; - time_t _tmp48_; - GTimeVal _tmp49_; - glong _tmp50_; - BackingPhotoRow* _tmp51_; - gint64 _tmp52_; - GFileInfo* _tmp53_; - BackingPhotoRow* _tmp54_; - GTimeVal _tmp55_; - glong _tmp56_; - BackingPhotoRow* _tmp57_; - GFileInfo* _tmp58_; -#line 3985 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = self->priv->editable; -#line 3985 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = _tmp47_->timestamp; -#line 3985 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = timestamp; -#line 3985 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = _tmp49_.tv_sec; -#line 3985 "/home/jens/Source/shotwell/src/Photo.vala" - timestamp_changed = _tmp48_ != ((time_t) _tmp50_); -#line 3986 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp51_ = self->priv->editable; -#line 3986 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp52_ = _tmp51_->filesize; -#line 3986 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp53_ = info; -#line 3986 "/home/jens/Source/shotwell/src/Photo.vala" - filesize_changed = _tmp52_ != g_file_info_get_size (_tmp53_); -#line 3988 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp54_ = self->priv->editable; -#line 3988 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp55_ = timestamp; -#line 3988 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp56_ = _tmp55_.tv_sec; -#line 3988 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp54_->timestamp = (time_t) _tmp56_; -#line 3989 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_ = self->priv->editable; -#line 3989 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp58_ = info; -#line 3989 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_->filesize = g_file_info_get_size (_tmp58_); -#line 28898 "Photo.c" - } - __finally406: - { - PhotoRow* _tmp59_; -#line 3984 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp59_ = self->row; -#line 3984 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 28907 "Photo.c" - } -#line 3984 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3984 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3984 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 3984 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 3984 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 3984 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 3984 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 3984 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (old_reader); -#line 3984 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 28927 "Photo.c" - } - } -#line 3966 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (info); -#line 28932 "Photo.c" - } else { - gboolean _tmp60_ = FALSE; -#line 3993 "/home/jens/Source/shotwell/src/Photo.vala" - if (backing_photo_id_is_valid (&editable_id)) { -#line 28937 "Photo.c" - gboolean _tmp61_; -#line 3993 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp61_ = is_new_editable; -#line 3993 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp60_ = !_tmp61_; -#line 28943 "Photo.c" - } else { -#line 3993 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp60_ = FALSE; -#line 28947 "Photo.c" - } -#line 3993 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp60_) { -#line 28951 "Photo.c" - BackingPhotoRow* _tmp62_; - BackingPhotoID _tmp63_; - BackingPhotoTable* _tmp64_; - BackingPhotoTable* _tmp65_; - BackingPhotoRow* _tmp66_; -#line 3998 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp62_ = backing; -#line 3998 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp63_ = editable_id; -#line 3998 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp62_->id = _tmp63_; -#line 3999 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp64_ = backing_photo_table_get_instance (); -#line 3999 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp65_ = _tmp64_; -#line 3999 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp66_ = backing; -#line 3999 "/home/jens/Source/shotwell/src/Photo.vala" - backing_photo_table_update (_tmp65_, _tmp66_, &_inner_error_); -#line 3999 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp65_); -#line 3999 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3999 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 3999 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 3999 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 3999 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 3999 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 3999 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (old_reader); -#line 3999 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 28989 "Photo.c" - } - { - PhotoRow* _tmp67_; -#line 4000 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp67_ = self->row; -#line 4000 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 28997 "Photo.c" - { - BackingPhotoRow* _tmp68_; - time_t _tmp69_; - BackingPhotoRow* _tmp70_; - time_t _tmp71_; - BackingPhotoRow* _tmp72_; - gint64 _tmp73_; - BackingPhotoRow* _tmp74_; - gint64 _tmp75_; - BackingPhotoRow* _tmp76_; - BackingPhotoRow* _tmp77_; - BackingPhotoRow* _tmp78_; - BackingPhotoRow* _tmp79_; - BackingPhotoRow* _tmp80_; - Orientation _tmp81_; -#line 4001 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp68_ = self->priv->editable; -#line 4001 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp69_ = _tmp68_->timestamp; -#line 4001 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp70_ = backing; -#line 4001 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp71_ = _tmp70_->timestamp; -#line 4001 "/home/jens/Source/shotwell/src/Photo.vala" - timestamp_changed = _tmp69_ != _tmp71_; -#line 4002 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp72_ = self->priv->editable; -#line 4002 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp73_ = _tmp72_->filesize; -#line 4002 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp74_ = backing; -#line 4002 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp75_ = _tmp74_->filesize; -#line 4002 "/home/jens/Source/shotwell/src/Photo.vala" - filesize_changed = _tmp73_ != _tmp75_; -#line 4004 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp76_ = backing; -#line 4004 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp77_ = _backing_photo_row_ref0 (_tmp76_); -#line 4004 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->priv->editable); -#line 4004 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->editable = _tmp77_; -#line 4005 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp78_ = self->priv->editable; -#line 4005 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp79_ = _backing_photo_row_ref0 (_tmp78_); -#line 4005 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->backing_photo_row); -#line 4005 "/home/jens/Source/shotwell/src/Photo.vala" - self->backing_photo_row = _tmp79_; -#line 4006 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp80_ = self->backing_photo_row; -#line 4006 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp81_ = _tmp80_->original_orientation; -#line 4006 "/home/jens/Source/shotwell/src/Photo.vala" - photo_set_orientation (self, _tmp81_); -#line 29055 "Photo.c" - } - __finally407: - { - PhotoRow* _tmp82_; -#line 4000 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp82_ = self->row; -#line 4000 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 29064 "Photo.c" - } -#line 4000 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4000 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 4000 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 4000 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 4000 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 4000 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 4000 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (old_reader); -#line 4000 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 29082 "Photo.c" - } - } - } - } -#line 4012 "/home/jens/Source/shotwell/src/Photo.vala" - if (new_reader != NULL) { -#line 29089 "Photo.c" - { - PhotoBackingReaders* _tmp83_; -#line 4013 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp83_ = self->priv->readers; -#line 4013 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 29096 "Photo.c" - { - PhotoBackingReaders* _tmp84_; - PhotoFileReader* _tmp85_; -#line 4014 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp84_ = self->priv->readers; -#line 4014 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp85_ = _photo_file_adapter_ref0 (new_reader); -#line 4014 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp84_->editable); -#line 4014 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp84_->editable = _tmp85_; -#line 29108 "Photo.c" - } - __finally408: - { - PhotoBackingReaders* _tmp86_; -#line 4013 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp86_ = self->priv->readers; -#line 4013 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 29117 "Photo.c" - } -#line 4013 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4013 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 4013 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 4013 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 4013 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 4013 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 4013 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (old_reader); -#line 4013 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 29135 "Photo.c" - } - } - } -#line 4018 "/home/jens/Source/shotwell/src/Photo.vala" - if (!only_attributes) { -#line 29141 "Photo.c" - PhotoFileReader* _tmp88_; - PhotoFileReader* _tmp89_; -#line 4018 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp88_ = reader; -#line 4018 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp89_ = old_reader; -#line 4018 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp87_ = _tmp88_ != _tmp89_; -#line 29150 "Photo.c" - } else { -#line 4018 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp87_ = FALSE; -#line 29154 "Photo.c" - } -#line 4018 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp87_) { -#line 29158 "Photo.c" - GFile* _tmp90_ = NULL; - PhotoFileReader* _tmp91_; - GFile* _tmp94_ = NULL; -#line 4019 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_baseline_replaced (self); -#line 4020 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp91_ = old_reader; -#line 4020 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp91_ != NULL) { -#line 29168 "Photo.c" - PhotoFileReader* _tmp92_; - GFile* _tmp93_; -#line 4020 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp92_ = old_reader; -#line 4020 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp93_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp92_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 4020 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp90_); -#line 4020 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp90_ = _tmp93_; -#line 29179 "Photo.c" - } else { -#line 4020 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp90_); -#line 4020 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp90_ = NULL; -#line 29185 "Photo.c" - } -#line 4021 "/home/jens/Source/shotwell/src/Photo.vala" - if (new_reader != NULL) { -#line 29189 "Photo.c" - GFile* _tmp95_; -#line 4021 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp95_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (new_reader, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 4021 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp94_); -#line 4021 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp94_ = _tmp95_; -#line 29197 "Photo.c" - } else { -#line 4021 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp94_); -#line 4021 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp94_ = NULL; -#line 29203 "Photo.c" - } -#line 4020 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_editable_replaced (self, _tmp90_, _tmp94_); -#line 4018 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp94_); -#line 4018 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp90_); -#line 29211 "Photo.c" - } -#line 4024 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp96_ = g_new0 (gchar*, 0 + 1); -#line 4024 "/home/jens/Source/shotwell/src/Photo.vala" - alteration_list = _tmp96_; -#line 4024 "/home/jens/Source/shotwell/src/Photo.vala" - alteration_list_length1 = 0; -#line 4024 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_list_size_ = alteration_list_length1; -#line 4025 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp97_ = timestamp_changed; -#line 4025 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp97_) { -#line 29225 "Photo.c" - gchar** _tmp98_; - gint _tmp98__length1; - gchar* _tmp99_; - gchar** _tmp100_; - gint _tmp100__length1; - gchar* _tmp101_; -#line 4026 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp98_ = alteration_list; -#line 4026 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp98__length1 = alteration_list_length1; -#line 4026 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp99_ = g_strdup ("metadata:editable-timestamp"); -#line 4026 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add106 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp99_); -#line 4027 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp100_ = alteration_list; -#line 4027 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp100__length1 = alteration_list_length1; -#line 4027 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp101_ = g_strdup ("metadata:baseline-timestamp"); -#line 4027 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add107 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp101_); -#line 4029 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_is_editable_source (self)) { -#line 29250 "Photo.c" - gchar** _tmp102_; - gint _tmp102__length1; - gchar* _tmp103_; -#line 4030 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp102_ = alteration_list; -#line 4030 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp102__length1 = alteration_list_length1; -#line 4030 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp103_ = g_strdup ("metadata:source-timestamp"); -#line 4030 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add108 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp103_); -#line 29262 "Photo.c" - } - } -#line 4033 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp105_ = filesize_changed; -#line 4033 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp105_) { -#line 4033 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp104_ = TRUE; -#line 29271 "Photo.c" - } else { -#line 4033 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp104_ = new_reader != NULL; -#line 29275 "Photo.c" - } -#line 4033 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp104_) { -#line 29279 "Photo.c" - gchar** _tmp106_; - gint _tmp106__length1; - gchar* _tmp107_; - gchar** _tmp108_; - gint _tmp108__length1; - gchar* _tmp109_; -#line 4034 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp106_ = alteration_list; -#line 4034 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp106__length1 = alteration_list_length1; -#line 4034 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp107_ = g_strdup ("image:editable"); -#line 4034 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add109 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp107_); -#line 4035 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp108_ = alteration_list; -#line 4035 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp108__length1 = alteration_list_length1; -#line 4035 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp109_ = g_strdup ("image:baseline"); -#line 4035 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add110 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp109_); -#line 4037 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_is_editable_source (self)) { -#line 29304 "Photo.c" - gchar** _tmp110_; - gint _tmp110__length1; - gchar* _tmp111_; -#line 4038 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp110_ = alteration_list; -#line 4038 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp110__length1 = alteration_list_length1; -#line 4038 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp111_ = g_strdup ("image:source"); -#line 4038 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_array_add111 (&alteration_list, &alteration_list_length1, &_alteration_list_size_, _tmp111_); -#line 29316 "Photo.c" - } - } -#line 4041 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp112_ = alteration_list; -#line 4041 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp112__length1 = alteration_list_length1; -#line 4041 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp112__length1 > 0) { -#line 29325 "Photo.c" - gchar** _tmp113_; - gint _tmp113__length1; - Alteration* _tmp114_; - Alteration* _tmp115_; -#line 4042 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp113_ = alteration_list; -#line 4042 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp113__length1 = alteration_list_length1; -#line 4042 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp114_ = alteration_new_from_array (_tmp113_, _tmp113__length1); -#line 4042 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp115_ = _tmp114_; -#line 4042 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp115_); -#line 4042 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp115_); -#line 29342 "Photo.c" - } -#line 3924 "/home/jens/Source/shotwell/src/Photo.vala" - alteration_list = (_vala_array_free (alteration_list, alteration_list_length1, (GDestroyNotify) g_free), NULL); -#line 3924 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (backing); -#line 3924 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 3924 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 3924 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 3924 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (old_reader); -#line 29356 "Photo.c" -} - - -static void -photo_detach_editable (Photo* self, - gboolean delete_editable, - gboolean remove_transformations, - gboolean notify) -{ - gboolean has_editable = FALSE; - GFile* editable_file = NULL; - gboolean _tmp8_; - gboolean _tmp26_; - gboolean _tmp28_ = FALSE; - gboolean _tmp38_ = FALSE; - gboolean _tmp39_ = FALSE; - gboolean _tmp40_; - GError * _inner_error_ = NULL; -#line 4045 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 4046 "/home/jens/Source/shotwell/src/Photo.vala" - photo_halt_monitoring_editable (self); -#line 4048 "/home/jens/Source/shotwell/src/Photo.vala" - has_editable = FALSE; -#line 4049 "/home/jens/Source/shotwell/src/Photo.vala" - editable_file = NULL; -#line 29383 "Photo.c" - { - PhotoBackingReaders* _tmp0_; -#line 4050 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->readers; -#line 4050 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 29390 "Photo.c" - { - PhotoBackingReaders* _tmp1_; - PhotoFileReader* _tmp2_; -#line 4051 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->readers; -#line 4051 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->editable; -#line 4051 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ != NULL) { -#line 29400 "Photo.c" - PhotoBackingReaders* _tmp3_; - PhotoFileReader* _tmp4_; - GFile* _tmp5_; - PhotoBackingReaders* _tmp6_; -#line 4052 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->readers; -#line 4052 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->editable; -#line 4052 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 4052 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (editable_file); -#line 4052 "/home/jens/Source/shotwell/src/Photo.vala" - editable_file = _tmp5_; -#line 4053 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = self->priv->readers; -#line 4053 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (_tmp6_->editable); -#line 4053 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_->editable = NULL; -#line 4054 "/home/jens/Source/shotwell/src/Photo.vala" - has_editable = TRUE; -#line 29423 "Photo.c" - } - } - __finally409: - { - PhotoBackingReaders* _tmp7_; -#line 4050 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = self->priv->readers; -#line 4050 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 29433 "Photo.c" - } -#line 4050 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4050 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (editable_file); -#line 4050 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 4050 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 4050 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 29445 "Photo.c" - } - } -#line 4058 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = has_editable; -#line 4058 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp8_) { -#line 29452 "Photo.c" - BackingPhotoID editable_id = {0}; -#line 4059 "/home/jens/Source/shotwell/src/Photo.vala" - backing_photo_id_init (&editable_id, BACKING_PHOTO_ID_INVALID); -#line 29456 "Photo.c" - { - { - PhotoRow* _tmp9_; -#line 4061 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = self->row; -#line 4061 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 29464 "Photo.c" - { - PhotoRow* _tmp10_; - BackingPhotoID _tmp11_; - PhotoRow* _tmp15_; - BackingPhotoRow* _tmp16_; - BackingPhotoRow* _tmp17_; -#line 4062 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = self->row; -#line 4062 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_->editable_id; -#line 4062 "/home/jens/Source/shotwell/src/Photo.vala" - editable_id = _tmp11_; -#line 4063 "/home/jens/Source/shotwell/src/Photo.vala" - if (backing_photo_id_is_valid (&editable_id)) { -#line 29479 "Photo.c" - PhotoTable* _tmp12_; - PhotoTable* _tmp13_; - PhotoRow* _tmp14_; -#line 4064 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = photo_table_get_instance (); -#line 4064 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_; -#line 4064 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = self->row; -#line 4064 "/home/jens/Source/shotwell/src/Photo.vala" - photo_table_detach_editable (_tmp13_, _tmp14_, &_inner_error_); -#line 4064 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp13_); -#line 4064 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 29495 "Photo.c" - goto __finally411; - } - } -#line 4065 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = self->row; -#line 4065 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = _tmp15_->master; -#line 4065 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _backing_photo_row_ref0 (_tmp16_); -#line 4065 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->backing_photo_row); -#line 4065 "/home/jens/Source/shotwell/src/Photo.vala" - self->backing_photo_row = _tmp17_; -#line 29509 "Photo.c" - } - __finally411: - { - PhotoRow* _tmp18_; -#line 4061 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = self->row; -#line 4061 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 29518 "Photo.c" - } -#line 4061 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4061 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 29524 "Photo.c" - goto __catch410_database_error; - } -#line 4061 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (editable_file); -#line 4061 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 4061 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 4061 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 29535 "Photo.c" - } - } - } - goto __finally410; - __catch410_database_error: - { - GError* err = NULL; - GError* _tmp19_; - const gchar* _tmp20_; -#line 4060 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 4060 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 4068 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = err; -#line 4068 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = _tmp19_->message; -#line 4068 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:4068: Unable to remove editable from PhotoTable: %s", _tmp20_); -#line 4060 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 29557 "Photo.c" - } - __finally410: -#line 4060 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4060 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (editable_file); -#line 4060 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 4060 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 4060 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 29570 "Photo.c" - } - { -#line 4072 "/home/jens/Source/shotwell/src/Photo.vala" - if (backing_photo_id_is_valid (&editable_id)) { -#line 29575 "Photo.c" - BackingPhotoTable* _tmp21_; - BackingPhotoTable* _tmp22_; - BackingPhotoID _tmp23_; -#line 4073 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = backing_photo_table_get_instance (); -#line 4073 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = _tmp21_; -#line 4073 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = editable_id; -#line 4073 "/home/jens/Source/shotwell/src/Photo.vala" - backing_photo_table_remove (_tmp22_, &_tmp23_, &_inner_error_); -#line 4073 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp22_); -#line 4073 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4073 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 29593 "Photo.c" - goto __catch412_database_error; - } -#line 4073 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (editable_file); -#line 4073 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 4073 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 4073 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 29604 "Photo.c" - } - } - } - goto __finally412; - __catch412_database_error: - { - GError* err = NULL; - GError* _tmp24_; - const gchar* _tmp25_; -#line 4071 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 4071 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 4075 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = err; -#line 4075 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = _tmp24_->message; -#line 4075 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:4075: Unable to remove editable from BackingPhotoTable: %s", _tmp25_); -#line 4071 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 29626 "Photo.c" - } - __finally412: -#line 4071 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4071 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (editable_file); -#line 4071 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 4071 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 4071 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 29639 "Photo.c" - } - } -#line 4079 "/home/jens/Source/shotwell/src/Photo.vala" - if (remove_transformations) { -#line 4080 "/home/jens/Source/shotwell/src/Photo.vala" - photo_internal_remove_all_transformations (self, FALSE); -#line 29646 "Photo.c" - } -#line 4082 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = has_editable; -#line 4082 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp26_) { -#line 29652 "Photo.c" - GFile* _tmp27_; -#line 4083 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_baseline_replaced (self); -#line 4084 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = editable_file; -#line 4084 "/home/jens/Source/shotwell/src/Photo.vala" - photo_notify_editable_replaced (self, _tmp27_, NULL); -#line 29660 "Photo.c" - } -#line 4087 "/home/jens/Source/shotwell/src/Photo.vala" - if (delete_editable) { -#line 29664 "Photo.c" - GFile* _tmp29_; -#line 4087 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = editable_file; -#line 4087 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = _tmp29_ != NULL; -#line 29670 "Photo.c" - } else { -#line 4087 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = FALSE; -#line 29674 "Photo.c" - } -#line 4087 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp28_) { -#line 29678 "Photo.c" - { - GFile* _tmp30_; -#line 4089 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = editable_file; -#line 4089 "/home/jens/Source/shotwell/src/Photo.vala" - g_file_trash (_tmp30_, NULL, &_inner_error_); -#line 4089 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 29687 "Photo.c" - goto __catch413_g_error; - } - } - goto __finally413; - __catch413_g_error: - { - GError* err = NULL; - GFile* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; - GError* _tmp36_; - const gchar* _tmp37_; -#line 4088 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 4088 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 4091 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = editable_file; -#line 4091 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = g_file_get_path (_tmp31_); -#line 4091 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = _tmp32_; -#line 4091 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 4091 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = _tmp34_; -#line 4091 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = err; -#line 4091 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = _tmp36_->message; -#line 4091 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:4091: Unable to trash editable %s for %s: %s", _tmp33_, _tmp35_, _tmp37_); -#line 4091 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp35_); -#line 4091 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp33_); -#line 4088 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 29728 "Photo.c" - } - __finally413: -#line 4088 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4088 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (editable_file); -#line 4088 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 4088 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 4088 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 29741 "Photo.c" - } - } -#line 4096 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = has_editable; -#line 4096 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp40_) { -#line 4096 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = TRUE; -#line 29750 "Photo.c" - } else { -#line 4096 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = remove_transformations; -#line 29754 "Photo.c" - } -#line 4096 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp39_) { -#line 4096 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = notify; -#line 29760 "Photo.c" - } else { -#line 4096 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = FALSE; -#line 29764 "Photo.c" - } -#line 4096 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp38_) { -#line 29768 "Photo.c" - Alteration* _tmp41_; - Alteration* _tmp42_; -#line 4097 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = alteration_new ("image", "revert"); -#line 4097 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = _tmp41_; -#line 4097 "/home/jens/Source/shotwell/src/Photo.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp42_); -#line 4097 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp42_); -#line 29779 "Photo.c" - } -#line 4045 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (editable_file); -#line 29783 "Photo.c" -} - - -static void -_photo_on_reimport_editable_one_shot_callback (gpointer self) -{ -#line 4119 "/home/jens/Source/shotwell/src/Photo.vala" - photo_on_reimport_editable ((Photo*) self); -#line 29792 "Photo.c" -} - - -static void -_photo_on_update_editable_attributes_one_shot_callback (gpointer self) -{ -#line 4128 "/home/jens/Source/shotwell/src/Photo.vala" - photo_on_update_editable_attributes ((Photo*) self); -#line 29801 "Photo.c" -} - - -static void -_photo_on_remove_editable_one_shot_callback (gpointer self) -{ -#line 4137 "/home/jens/Source/shotwell/src/Photo.vala" - photo_on_remove_editable ((Photo*) self); -#line 29810 "Photo.c" -} - - -static void -photo_on_editable_file_changed (Photo* self, - GFile* file, - GFile* other_file, - GFileMonitorEvent event) -{ - GEnumValue* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - GError * _inner_error_ = NULL; -#line 4100 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 4100 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 4100 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((other_file == NULL) || G_IS_FILE (other_file)); -#line 29830 "Photo.c" - { - PhotoBackingReaders* _tmp0_; -#line 4102 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->readers; -#line 4102 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_readers); -#line 29837 "Photo.c" - { - PhotoBackingReaders* _tmp1_; - PhotoFileReader* _tmp2_; - PhotoBackingReaders* _tmp3_; - PhotoFileReader* _tmp4_; - GFile* _tmp5_; - GFile* _tmp6_; - gboolean _tmp7_; -#line 4103 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->readers; -#line 4103 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_->editable; -#line 4103 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (_tmp2_ != NULL, "readers.editable != null"); -#line 4105 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->readers; -#line 4105 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_->editable; -#line 4105 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 4105 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _tmp5_; -#line 4105 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = !g_file_equal (file, _tmp6_); -#line 4105 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp6_); -#line 4105 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp7_) { -#line 29866 "Photo.c" - { - PhotoBackingReaders* _tmp8_; -#line 4102 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = self->priv->readers; -#line 4102 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 29873 "Photo.c" - } -#line 4109 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 29877 "Photo.c" - } - } - __finally414: - { - PhotoBackingReaders* _tmp9_; -#line 4102 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = self->priv->readers; -#line 4102 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_readers); -#line 29887 "Photo.c" - } -#line 4102 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4102 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 4102 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 4102 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 29897 "Photo.c" - } - } -#line 4113 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = g_enum_get_value (g_type_class_ref (g_file_monitor_event_get_type ()), event); -#line 4113 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = g_file_get_path (file); -#line 4113 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_; -#line 4113 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:4113: EDITABLE %s: %s", (_tmp10_ != NULL) ? _tmp10_->value_name : NULL, _tmp12_); -#line 4113 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp12_); -#line 4115 "/home/jens/Source/shotwell/src/Photo.vala" - switch (event) { -#line 4115 "/home/jens/Source/shotwell/src/Photo.vala" - case G_FILE_MONITOR_EVENT_CHANGED: -#line 4115 "/home/jens/Source/shotwell/src/Photo.vala" - case G_FILE_MONITOR_EVENT_CREATED: -#line 29916 "Photo.c" - { - OneShotScheduler* _tmp13_; - OneShotScheduler* _tmp15_; -#line 4118 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = self->priv->reimport_editable_scheduler; -#line 4118 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp13_ == NULL) { -#line 29924 "Photo.c" - OneShotScheduler* _tmp14_; -#line 4119 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = one_shot_scheduler_new ("Photo.reimport_editable", _photo_on_reimport_editable_one_shot_callback, self); -#line 4119 "/home/jens/Source/shotwell/src/Photo.vala" - _one_shot_scheduler_unref0 (self->priv->reimport_editable_scheduler); -#line 4119 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->reimport_editable_scheduler = _tmp14_; -#line 29932 "Photo.c" - } -#line 4123 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = self->priv->reimport_editable_scheduler; -#line 4123 "/home/jens/Source/shotwell/src/Photo.vala" - one_shot_scheduler_after_timeout (_tmp15_, (guint) 1000, TRUE); -#line 4124 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 29940 "Photo.c" - } -#line 4115 "/home/jens/Source/shotwell/src/Photo.vala" - case G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED: -#line 29944 "Photo.c" - { - OneShotScheduler* _tmp16_; - OneShotScheduler* _tmp18_; -#line 4127 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = self->priv->update_editable_attributes_scheduler; -#line 4127 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp16_ == NULL) { -#line 29952 "Photo.c" - OneShotScheduler* _tmp17_; -#line 4128 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = one_shot_scheduler_new ("Photo.update_editable_attributes", _photo_on_update_editable_attributes_one_shot_callback, self); -#line 4128 "/home/jens/Source/shotwell/src/Photo.vala" - _one_shot_scheduler_unref0 (self->priv->update_editable_attributes_scheduler); -#line 4128 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->update_editable_attributes_scheduler = _tmp17_; -#line 29960 "Photo.c" - } -#line 4132 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = self->priv->update_editable_attributes_scheduler; -#line 4132 "/home/jens/Source/shotwell/src/Photo.vala" - one_shot_scheduler_after_timeout (_tmp18_, (guint) 1000, TRUE); -#line 4133 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 29968 "Photo.c" - } -#line 4115 "/home/jens/Source/shotwell/src/Photo.vala" - case G_FILE_MONITOR_EVENT_DELETED: -#line 29972 "Photo.c" - { - OneShotScheduler* _tmp19_; - OneShotScheduler* _tmp21_; -#line 4136 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = self->priv->remove_editable_scheduler; -#line 4136 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp19_ == NULL) { -#line 29980 "Photo.c" - OneShotScheduler* _tmp20_; -#line 4137 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = one_shot_scheduler_new ("Photo.remove_editable", _photo_on_remove_editable_one_shot_callback, self); -#line 4137 "/home/jens/Source/shotwell/src/Photo.vala" - _one_shot_scheduler_unref0 (self->priv->remove_editable_scheduler); -#line 4137 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->remove_editable_scheduler = _tmp20_; -#line 29988 "Photo.c" - } -#line 4141 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = self->priv->remove_editable_scheduler; -#line 4141 "/home/jens/Source/shotwell/src/Photo.vala" - one_shot_scheduler_after_timeout (_tmp21_, (guint) 3000, TRUE); -#line 4142 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 29996 "Photo.c" - } - default: -#line 4115 "/home/jens/Source/shotwell/src/Photo.vala" - case G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT: -#line 30001 "Photo.c" - { -#line 4147 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 30005 "Photo.c" - } - } -#line 4152 "/home/jens/Source/shotwell/src/Photo.vala" - photo_discard_prefetched (self); -#line 30010 "Photo.c" -} - - -static void -photo_on_reimport_editable (Photo* self) -{ - gchar* _tmp0_; - gchar* _tmp1_; - GError * _inner_error_ = NULL; -#line 4155 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 4157 "/home/jens/Source/shotwell/src/Photo.vala" - photo_discard_prefetched (self); -#line 4159 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 4159 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 4159 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:4159: Reimporting editable for %s", _tmp1_); -#line 4159 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp1_); -#line 30032 "Photo.c" - { -#line 4161 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_editable (self, &_inner_error_); -#line 4161 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 30038 "Photo.c" - goto __catch415_g_error; - } - } - goto __finally415; - __catch415_g_error: - { - GError* err = NULL; - gchar* _tmp2_; - gchar* _tmp3_; - GError* _tmp4_; - const gchar* _tmp5_; -#line 4160 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 4160 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 4163 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 4163 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_; -#line 4163 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = err; -#line 4163 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_->message; -#line 4163 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:4163: Unable to reimport photo %s changed by external edito" \ -"r: %s", _tmp3_, _tmp5_); -#line 4163 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp3_); -#line 4160 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 30068 "Photo.c" - } - __finally415: -#line 4160 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4160 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 4160 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 4160 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 30079 "Photo.c" - } -} - - -static void -photo_on_update_editable_attributes (Photo* self) -{ - gchar* _tmp0_; - gchar* _tmp1_; - GError * _inner_error_ = NULL; -#line 4168 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 4169 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 4169 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 4169 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:4169: Updating editable attributes for %s", _tmp1_); -#line 4169 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp1_); -#line 30100 "Photo.c" - { -#line 4171 "/home/jens/Source/shotwell/src/Photo.vala" - photo_update_editable_attributes (self, &_inner_error_); -#line 4171 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 30106 "Photo.c" - goto __catch416_g_error; - } - } - goto __finally416; - __catch416_g_error: - { - GError* err = NULL; - GError* _tmp2_; - const gchar* _tmp3_; -#line 4170 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 4170 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 4173 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = err; -#line 4173 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_->message; -#line 4173 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:4173: Unable to update editable attributes: %s", _tmp3_); -#line 4170 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 30128 "Photo.c" - } - __finally416: -#line 4170 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4170 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 4170 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 4170 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 30139 "Photo.c" - } -} - - -static void -photo_on_remove_editable (Photo* self) -{ - PhotoFileReader* reader = NULL; - PhotoFileReader* _tmp0_; - PhotoFileReader* _tmp1_; - GFile* file = NULL; - PhotoFileReader* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 4177 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 4178 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_editable_reader (self); -#line 4178 "/home/jens/Source/shotwell/src/Photo.vala" - reader = _tmp0_; -#line 4179 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = reader; -#line 4179 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ == NULL) { -#line 4180 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 4180 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 30170 "Photo.c" - } -#line 4182 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = reader; -#line 4182 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 4182 "/home/jens/Source/shotwell/src/Photo.vala" - file = _tmp3_; -#line 4183 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = file; -#line 4183 "/home/jens/Source/shotwell/src/Photo.vala" - if (g_file_query_exists (_tmp4_, NULL)) { -#line 30182 "Photo.c" - gchar* _tmp5_; - gchar* _tmp6_; -#line 4184 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 4184 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _tmp5_; -#line 4184 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:4184: Not removing editable for %s: file exists", _tmp6_); -#line 4184 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp6_); -#line 4186 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 4186 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 4186 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 30199 "Photo.c" - } -#line 4189 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 4189 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _tmp7_; -#line 4189 "/home/jens/Source/shotwell/src/Photo.vala" - g_debug ("Photo.vala:4189: Removing editable for %s: file no longer exists", _tmp8_); -#line 4189 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp8_); -#line 4190 "/home/jens/Source/shotwell/src/Photo.vala" - photo_detach_editable (self, FALSE, TRUE, TRUE); -#line 4177 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 4177 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (reader); -#line 30215 "Photo.c" -} - - -void -photo_get_original_dimensions (Photo* self, - Dimensions* result) -{ - Dimensions dim = {0}; - Dimensions _tmp0_ = {0}; - Orientation orientation = 0; - Dimensions _tmp1_; - Dimensions _tmp2_ = {0}; -#line 4198 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 4199 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_raw_dimensions (self, &_tmp0_); -#line 4199 "/home/jens/Source/shotwell/src/Photo.vala" - dim = _tmp0_; -#line 4200 "/home/jens/Source/shotwell/src/Photo.vala" - orientation = photo_get_orientation (self); -#line 4202 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = dim; -#line 4202 "/home/jens/Source/shotwell/src/Photo.vala" - orientation_rotate_dimensions (orientation, &_tmp1_, &_tmp2_); -#line 4202 "/home/jens/Source/shotwell/src/Photo.vala" - *result = _tmp2_; -#line 4202 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 30244 "Photo.c" -} - - -void -photo_get_master_dimensions (Photo* self, - Dimensions* result) -{ - Dimensions _tmp0_ = {0}; - Dimensions _tmp1_ = {0}; -#line 4206 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 4207 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_raw_dimensions (self, &_tmp0_); -#line 4207 "/home/jens/Source/shotwell/src/Photo.vala" - orientation_rotate_dimensions (photo_get_original_orientation (self), &_tmp0_, &_tmp1_); -#line 4207 "/home/jens/Source/shotwell/src/Photo.vala" - *result = _tmp1_; -#line 4207 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 30264 "Photo.c" -} - - -gboolean -photo_get_crop (Photo* self, - Box* crop, - PhotoException exceptions) -{ - Box _vala_crop = {0}; - gboolean result = FALSE; - Box raw = {0}; - Box _tmp0_ = {0}; - gboolean _tmp1_; - Dimensions dim = {0}; - Dimensions _tmp2_ = {0}; - Orientation orientation = 0; -#line 4211 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 4213 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_get_raw_crop (self, &_tmp0_); -#line 4213 "/home/jens/Source/shotwell/src/Photo.vala" - raw = _tmp0_; -#line 4213 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp1_) { -#line 4214 "/home/jens/Source/shotwell/src/Photo.vala" - box_init (&_vala_crop, 0, 0, 0, 0); -#line 4216 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 4216 "/home/jens/Source/shotwell/src/Photo.vala" - if (crop) { -#line 4216 "/home/jens/Source/shotwell/src/Photo.vala" - *crop = _vala_crop; -#line 30297 "Photo.c" - } -#line 4216 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 30301 "Photo.c" - } -#line 4219 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP | PHOTO_EXCEPTION_ORIENTATION, &_tmp2_); -#line 4219 "/home/jens/Source/shotwell/src/Photo.vala" - dim = _tmp2_; -#line 4220 "/home/jens/Source/shotwell/src/Photo.vala" - orientation = photo_get_orientation (self); -#line 4222 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_exception_allows (exceptions, PHOTO_EXCEPTION_ORIENTATION)) { -#line 30311 "Photo.c" - Orientation _tmp3_; - Dimensions _tmp4_; - Box _tmp5_; - Box _tmp6_ = {0}; -#line 4223 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = orientation; -#line 4223 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = dim; -#line 4223 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = raw; -#line 4223 "/home/jens/Source/shotwell/src/Photo.vala" - orientation_rotate_box (_tmp3_, &_tmp4_, &_tmp5_, &_tmp6_); -#line 4223 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_crop = _tmp6_; -#line 30326 "Photo.c" - } else { - Box _tmp7_; -#line 4225 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = raw; -#line 4225 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_crop = _tmp7_; -#line 30333 "Photo.c" - } -#line 4227 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 4227 "/home/jens/Source/shotwell/src/Photo.vala" - if (crop) { -#line 4227 "/home/jens/Source/shotwell/src/Photo.vala" - *crop = _vala_crop; -#line 30341 "Photo.c" - } -#line 4227 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 30345 "Photo.c" -} - - -void -photo_set_crop (Photo* self, - Box* crop) -{ - Dimensions dim = {0}; - Dimensions _tmp0_ = {0}; - Orientation orientation = 0; - Box derotated = {0}; - Dimensions _tmp1_; - Box _tmp2_; - Box _tmp3_ = {0}; - Box _tmp4_; - gint _tmp5_; - Dimensions _tmp6_; - gint _tmp7_; - Box _tmp8_; - gint _tmp9_; - Box _tmp10_; - gint _tmp11_; - Dimensions _tmp12_; - gint _tmp13_; - Box _tmp14_; - gint _tmp15_; - Dimensions _tmp16_; - gint _tmp17_; - Box _tmp18_; - gint _tmp19_; - Box _tmp20_; - gint _tmp21_; - Dimensions _tmp22_; - gint _tmp23_; - Box _tmp24_; -#line 4231 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 4231 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (crop != NULL); -#line 4232 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP | PHOTO_EXCEPTION_ORIENTATION, &_tmp0_); -#line 4232 "/home/jens/Source/shotwell/src/Photo.vala" - dim = _tmp0_; -#line 4233 "/home/jens/Source/shotwell/src/Photo.vala" - orientation = photo_get_orientation (self); -#line 4235 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = dim; -#line 4235 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = *crop; -#line 4235 "/home/jens/Source/shotwell/src/Photo.vala" - orientation_derotate_box (orientation, &_tmp1_, &_tmp2_, &_tmp3_); -#line 4235 "/home/jens/Source/shotwell/src/Photo.vala" - derotated = _tmp3_; -#line 4237 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = derotated; -#line 4237 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_.left; -#line 4237 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = dim; -#line 4237 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_.width; -#line 4237 "/home/jens/Source/shotwell/src/Photo.vala" - derotated.left = CLAMP (_tmp5_, 0, _tmp7_ - 2); -#line 4238 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = derotated; -#line 4238 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_.right; -#line 4238 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = derotated; -#line 4238 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_.left; -#line 4238 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = dim; -#line 4238 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_.width; -#line 4238 "/home/jens/Source/shotwell/src/Photo.vala" - derotated.right = CLAMP (_tmp9_, _tmp11_, _tmp13_ - 1); -#line 4240 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = derotated; -#line 4240 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_.top; -#line 4240 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = dim; -#line 4240 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _tmp16_.height; -#line 4240 "/home/jens/Source/shotwell/src/Photo.vala" - derotated.top = CLAMP (_tmp15_, 0, _tmp17_ - 2); -#line 4241 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = derotated; -#line 4241 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = _tmp18_.bottom; -#line 4241 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = derotated; -#line 4241 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _tmp20_.top; -#line 4241 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = dim; -#line 4241 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _tmp22_.height; -#line 4241 "/home/jens/Source/shotwell/src/Photo.vala" - derotated.bottom = CLAMP (_tmp19_, _tmp21_, _tmp23_ - 1); -#line 4243 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = derotated; -#line 4243 "/home/jens/Source/shotwell/src/Photo.vala" - photo_set_raw_crop (self, &_tmp24_); -#line 30451 "Photo.c" -} - - -gboolean -photo_get_straighten (Photo* self, - gdouble* theta) -{ - gdouble _vala_theta = 0.0; - gboolean result = FALSE; - gdouble _tmp0_ = 0.0; - gboolean _tmp1_; -#line 4246 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 4247 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_get_raw_straighten (self, &_tmp0_); -#line 4247 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_theta = _tmp0_; -#line 4247 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp1_) { -#line 4248 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 4248 "/home/jens/Source/shotwell/src/Photo.vala" - if (theta) { -#line 4248 "/home/jens/Source/shotwell/src/Photo.vala" - *theta = _vala_theta; -#line 30477 "Photo.c" - } -#line 4248 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 30481 "Photo.c" - } -#line 4250 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 4250 "/home/jens/Source/shotwell/src/Photo.vala" - if (theta) { -#line 4250 "/home/jens/Source/shotwell/src/Photo.vala" - *theta = _vala_theta; -#line 30489 "Photo.c" - } -#line 4250 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 30493 "Photo.c" -} - - -void -photo_set_straighten (Photo* self, - gdouble theta) -{ -#line 4253 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 4254 "/home/jens/Source/shotwell/src/Photo.vala" - photo_set_raw_straighten (self, theta); -#line 30505 "Photo.c" -} - - -static GdkPixbuf* -photo_do_redeye (Photo* self, - GdkPixbuf* pixbuf, - EditingToolsRedeyeInstance* inst) -{ - GdkPixbuf* result = NULL; - gdouble r = 0.0; - EditingToolsRedeyeInstance _tmp0_; - gint _tmp1_; - gint* x_insets_first_quadrant = NULL; - EditingToolsRedeyeInstance _tmp2_; - gint _tmp3_; - gint* _tmp4_; - gint x_insets_first_quadrant_length1; - gint _x_insets_first_quadrant_size_; - gint i = 0; - gint x_bounds_min = 0; - EditingToolsRedeyeInstance _tmp20_; - GdkPoint _tmp21_; - gint _tmp22_; - EditingToolsRedeyeInstance _tmp23_; - gint _tmp24_; - gint x_bounds_max = 0; - EditingToolsRedeyeInstance _tmp25_; - GdkPoint _tmp26_; - gint _tmp27_; - EditingToolsRedeyeInstance _tmp28_; - gint _tmp29_; - gint ymin = 0; - EditingToolsRedeyeInstance _tmp30_; - GdkPoint _tmp31_; - gint _tmp32_; - EditingToolsRedeyeInstance _tmp33_; - gint _tmp34_; - gint _tmp35_ = 0; - gint _tmp36_; - gint ymax = 0; - EditingToolsRedeyeInstance _tmp38_; - GdkPoint _tmp39_; - gint _tmp40_; - gint _tmp41_ = 0; - gint _tmp42_; - gint _tmp43_; - gint _tmp44_; - gint inset_index = 0; - EditingToolsRedeyeInstance _tmp81_; - GdkPoint _tmp82_; - gint _tmp83_; - EditingToolsRedeyeInstance _tmp84_; - GdkPoint _tmp85_; - gint _tmp86_; - EditingToolsRedeyeInstance _tmp87_; - gint _tmp88_; - gint* _tmp89_; - gint _tmp89__length1; - GdkPixbuf* _tmp123_; -#line 4257 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 4257 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL); -#line 4257 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (inst != NULL, NULL); -#line 4267 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = *inst; -#line 4267 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_.radius; -#line 4267 "/home/jens/Source/shotwell/src/Photo.vala" - r = (gdouble) _tmp1_; -#line 4268 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = *inst; -#line 4268 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_.radius; -#line 4268 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = g_new0 (gint, _tmp3_ + 1); -#line 4268 "/home/jens/Source/shotwell/src/Photo.vala" - x_insets_first_quadrant = _tmp4_; -#line 4268 "/home/jens/Source/shotwell/src/Photo.vala" - x_insets_first_quadrant_length1 = _tmp3_ + 1; -#line 4268 "/home/jens/Source/shotwell/src/Photo.vala" - _x_insets_first_quadrant_size_ = x_insets_first_quadrant_length1; -#line 4270 "/home/jens/Source/shotwell/src/Photo.vala" - i = 0; -#line 30591 "Photo.c" - { - gdouble y = 0.0; - gdouble _tmp5_; -#line 4271 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = r; -#line 4271 "/home/jens/Source/shotwell/src/Photo.vala" - y = _tmp5_; -#line 30599 "Photo.c" - { - gboolean _tmp6_ = FALSE; -#line 4271 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = TRUE; -#line 4271 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 30606 "Photo.c" - gdouble _tmp8_; - gdouble theta = 0.0; - gdouble _tmp9_; - gdouble _tmp10_; - gint x = 0; - gdouble _tmp11_; - gdouble _tmp12_; - gint* _tmp13_; - gint _tmp13__length1; - gint _tmp14_; - EditingToolsRedeyeInstance _tmp15_; - gint _tmp16_; - gint _tmp17_; - gint _tmp18_; - gint _tmp19_; -#line 4271 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp6_) { -#line 30624 "Photo.c" - gdouble _tmp7_; -#line 4271 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = y; -#line 4271 "/home/jens/Source/shotwell/src/Photo.vala" - y = _tmp7_ - 1.0; -#line 30630 "Photo.c" - } -#line 4271 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = FALSE; -#line 4271 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = y; -#line 4271 "/home/jens/Source/shotwell/src/Photo.vala" - if (!(_tmp8_ >= 0.0)) { -#line 4271 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 30640 "Photo.c" - } -#line 4272 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = y; -#line 4272 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = r; -#line 4272 "/home/jens/Source/shotwell/src/Photo.vala" - theta = asin (_tmp9_ / _tmp10_); -#line 4273 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = r; -#line 4273 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = theta; -#line 4273 "/home/jens/Source/shotwell/src/Photo.vala" - x = (gint) ((_tmp11_ * cos (_tmp12_)) + 0.5); -#line 4274 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = x_insets_first_quadrant; -#line 4274 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13__length1 = x_insets_first_quadrant_length1; -#line 4274 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = i; -#line 4274 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = *inst; -#line 4274 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = _tmp15_.radius; -#line 4274 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = x; -#line 4274 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_[_tmp14_] = _tmp16_ - _tmp17_; -#line 4274 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp13_[_tmp14_]; -#line 4276 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = i; -#line 4276 "/home/jens/Source/shotwell/src/Photo.vala" - i = _tmp19_ + 1; -#line 30674 "Photo.c" - } - } - } -#line 4279 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = *inst; -#line 4279 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _tmp20_.center; -#line 4279 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = _tmp21_.x; -#line 4279 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = *inst; -#line 4279 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = _tmp23_.radius; -#line 4279 "/home/jens/Source/shotwell/src/Photo.vala" - x_bounds_min = _tmp22_ - _tmp24_; -#line 4280 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = *inst; -#line 4280 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = _tmp25_.center; -#line 4280 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = _tmp26_.x; -#line 4280 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = *inst; -#line 4280 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = _tmp28_.radius; -#line 4280 "/home/jens/Source/shotwell/src/Photo.vala" - x_bounds_max = _tmp27_ + _tmp29_; -#line 4281 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = *inst; -#line 4281 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = _tmp30_.center; -#line 4281 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = _tmp31_.y; -#line 4281 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = *inst; -#line 4281 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = _tmp33_.radius; -#line 4281 "/home/jens/Source/shotwell/src/Photo.vala" - ymin = _tmp32_ - _tmp34_; -#line 4282 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = ymin; -#line 4282 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp36_ < 0) { -#line 4282 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = 0; -#line 30720 "Photo.c" - } else { - gint _tmp37_; -#line 4282 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = ymin; -#line 4282 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = _tmp37_; -#line 30727 "Photo.c" - } -#line 4282 "/home/jens/Source/shotwell/src/Photo.vala" - ymin = _tmp35_; -#line 4283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = *inst; -#line 4283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = _tmp38_.center; -#line 4283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = _tmp39_.y; -#line 4283 "/home/jens/Source/shotwell/src/Photo.vala" - ymax = _tmp40_; -#line 4284 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = ymax; -#line 4284 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = gdk_pixbuf_get_height (pixbuf); -#line 4284 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = _tmp43_; -#line 4284 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp42_ > (_tmp44_ - 1)) { -#line 30747 "Photo.c" - gint _tmp45_; - gint _tmp46_; -#line 4284 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = gdk_pixbuf_get_height (pixbuf); -#line 4284 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = _tmp45_; -#line 4284 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = _tmp46_ - 1; -#line 30756 "Photo.c" - } else { - gint _tmp47_; -#line 4284 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = ymax; -#line 4284 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = _tmp47_; -#line 30763 "Photo.c" - } -#line 4284 "/home/jens/Source/shotwell/src/Photo.vala" - ymax = _tmp41_; -#line 4288 "/home/jens/Source/shotwell/src/Photo.vala" - inset_index = 0; -#line 30769 "Photo.c" - { - gint y_it = 0; - gint _tmp48_; -#line 4289 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = ymin; -#line 4289 "/home/jens/Source/shotwell/src/Photo.vala" - y_it = _tmp48_; -#line 30777 "Photo.c" - { - gboolean _tmp49_ = FALSE; -#line 4289 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = TRUE; -#line 4289 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 30784 "Photo.c" - gint _tmp51_; - gint _tmp52_; - gint xmin = 0; - gint _tmp53_; - gint* _tmp54_; - gint _tmp54__length1; - gint _tmp55_; - gint _tmp56_; - gint _tmp57_ = 0; - gint _tmp58_; - gint xmax = 0; - gint _tmp60_; - gint* _tmp61_; - gint _tmp61__length1; - gint _tmp62_; - gint _tmp63_; - gint _tmp64_ = 0; - gint _tmp65_; - gint _tmp66_; - gint _tmp67_; - gint _tmp80_; -#line 4289 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp49_) { -#line 30808 "Photo.c" - gint _tmp50_; -#line 4289 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = y_it; -#line 4289 "/home/jens/Source/shotwell/src/Photo.vala" - y_it = _tmp50_ + 1; -#line 30814 "Photo.c" - } -#line 4289 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = FALSE; -#line 4289 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp51_ = y_it; -#line 4289 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp52_ = ymax; -#line 4289 "/home/jens/Source/shotwell/src/Photo.vala" - if (!(_tmp51_ <= _tmp52_)) { -#line 4289 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 30826 "Photo.c" - } -#line 4290 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp53_ = x_bounds_min; -#line 4290 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp54_ = x_insets_first_quadrant; -#line 4290 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp54__length1 = x_insets_first_quadrant_length1; -#line 4290 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp55_ = inset_index; -#line 4290 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp56_ = _tmp54_[_tmp55_]; -#line 4290 "/home/jens/Source/shotwell/src/Photo.vala" - xmin = _tmp53_ + _tmp56_; -#line 4291 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp58_ = xmin; -#line 4291 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp58_ < 0) { -#line 4291 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_ = 0; -#line 30846 "Photo.c" - } else { - gint _tmp59_; -#line 4291 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp59_ = xmin; -#line 4291 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_ = _tmp59_; -#line 30853 "Photo.c" - } -#line 4291 "/home/jens/Source/shotwell/src/Photo.vala" - xmin = _tmp57_; -#line 4292 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp60_ = x_bounds_max; -#line 4292 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp61_ = x_insets_first_quadrant; -#line 4292 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp61__length1 = x_insets_first_quadrant_length1; -#line 4292 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp62_ = inset_index; -#line 4292 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp63_ = _tmp61_[_tmp62_]; -#line 4292 "/home/jens/Source/shotwell/src/Photo.vala" - xmax = _tmp60_ - _tmp63_; -#line 4293 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp65_ = xmax; -#line 4293 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp66_ = gdk_pixbuf_get_width (pixbuf); -#line 4293 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp67_ = _tmp66_; -#line 4293 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp65_ > (_tmp67_ - 1)) { -#line 30877 "Photo.c" - gint _tmp68_; - gint _tmp69_; -#line 4293 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp68_ = gdk_pixbuf_get_width (pixbuf); -#line 4293 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp69_ = _tmp68_; -#line 4293 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp64_ = _tmp69_ - 1; -#line 30886 "Photo.c" - } else { - gint _tmp70_; -#line 4293 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp70_ = xmax; -#line 4293 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp64_ = _tmp70_; -#line 30893 "Photo.c" - } -#line 4293 "/home/jens/Source/shotwell/src/Photo.vala" - xmax = _tmp64_; -#line 30897 "Photo.c" - { - gint x_it = 0; - gint _tmp71_; -#line 4295 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp71_ = xmin; -#line 4295 "/home/jens/Source/shotwell/src/Photo.vala" - x_it = _tmp71_; -#line 30905 "Photo.c" - { - gboolean _tmp72_ = FALSE; -#line 4295 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp72_ = TRUE; -#line 4295 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 30912 "Photo.c" - gint _tmp74_; - gint _tmp75_; - gint _tmp76_; - gint _tmp77_; - GdkPixbuf* _tmp78_; - GdkPixbuf* _tmp79_; -#line 4295 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp72_) { -#line 30921 "Photo.c" - gint _tmp73_; -#line 4295 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp73_ = x_it; -#line 4295 "/home/jens/Source/shotwell/src/Photo.vala" - x_it = _tmp73_ + 1; -#line 30927 "Photo.c" - } -#line 4295 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp72_ = FALSE; -#line 4295 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp74_ = x_it; -#line 4295 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp75_ = xmax; -#line 4295 "/home/jens/Source/shotwell/src/Photo.vala" - if (!(_tmp74_ <= _tmp75_)) { -#line 4295 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 30939 "Photo.c" - } -#line 4296 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp76_ = x_it; -#line 4296 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp77_ = y_it; -#line 4296 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp78_ = photo_red_reduce_pixel (self, pixbuf, _tmp76_, _tmp77_); -#line 4296 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp79_ = _tmp78_; -#line 4296 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp79_); -#line 30951 "Photo.c" - } - } - } -#line 4298 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp80_ = inset_index; -#line 4298 "/home/jens/Source/shotwell/src/Photo.vala" - inset_index = _tmp80_ + 1; -#line 30959 "Photo.c" - } - } - } -#line 4303 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp81_ = *inst; -#line 4303 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp82_ = _tmp81_.center; -#line 4303 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp83_ = _tmp82_.y; -#line 4303 "/home/jens/Source/shotwell/src/Photo.vala" - ymin = _tmp83_; -#line 4304 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp84_ = *inst; -#line 4304 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp85_ = _tmp84_.center; -#line 4304 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp86_ = _tmp85_.y; -#line 4304 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp87_ = *inst; -#line 4304 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp88_ = _tmp87_.radius; -#line 4304 "/home/jens/Source/shotwell/src/Photo.vala" - ymax = _tmp86_ + _tmp88_; -#line 4305 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp89_ = x_insets_first_quadrant; -#line 4305 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp89__length1 = x_insets_first_quadrant_length1; -#line 4305 "/home/jens/Source/shotwell/src/Photo.vala" - inset_index = _tmp89__length1 - 1; -#line 30989 "Photo.c" - { - gint y_it = 0; - gint _tmp90_; -#line 4306 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp90_ = ymin; -#line 4306 "/home/jens/Source/shotwell/src/Photo.vala" - y_it = _tmp90_; -#line 30997 "Photo.c" - { - gboolean _tmp91_ = FALSE; -#line 4306 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp91_ = TRUE; -#line 4306 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 31004 "Photo.c" - gint _tmp93_; - gint _tmp94_; - gint xmin = 0; - gint _tmp95_; - gint* _tmp96_; - gint _tmp96__length1; - gint _tmp97_; - gint _tmp98_; - gint _tmp99_ = 0; - gint _tmp100_; - gint xmax = 0; - gint _tmp102_; - gint* _tmp103_; - gint _tmp103__length1; - gint _tmp104_; - gint _tmp105_; - gint _tmp106_ = 0; - gint _tmp107_; - gint _tmp108_; - gint _tmp109_; - gint _tmp122_; -#line 4306 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp91_) { -#line 31028 "Photo.c" - gint _tmp92_; -#line 4306 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp92_ = y_it; -#line 4306 "/home/jens/Source/shotwell/src/Photo.vala" - y_it = _tmp92_ + 1; -#line 31034 "Photo.c" - } -#line 4306 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp91_ = FALSE; -#line 4306 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp93_ = y_it; -#line 4306 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp94_ = ymax; -#line 4306 "/home/jens/Source/shotwell/src/Photo.vala" - if (!(_tmp93_ <= _tmp94_)) { -#line 4306 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 31046 "Photo.c" - } -#line 4307 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp95_ = x_bounds_min; -#line 4307 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp96_ = x_insets_first_quadrant; -#line 4307 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp96__length1 = x_insets_first_quadrant_length1; -#line 4307 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp97_ = inset_index; -#line 4307 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp98_ = _tmp96_[_tmp97_]; -#line 4307 "/home/jens/Source/shotwell/src/Photo.vala" - xmin = _tmp95_ + _tmp98_; -#line 4308 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp100_ = xmin; -#line 4308 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp100_ < 0) { -#line 4308 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp99_ = 0; -#line 31066 "Photo.c" - } else { - gint _tmp101_; -#line 4308 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp101_ = xmin; -#line 4308 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp99_ = _tmp101_; -#line 31073 "Photo.c" - } -#line 4308 "/home/jens/Source/shotwell/src/Photo.vala" - xmin = _tmp99_; -#line 4309 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp102_ = x_bounds_max; -#line 4309 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp103_ = x_insets_first_quadrant; -#line 4309 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp103__length1 = x_insets_first_quadrant_length1; -#line 4309 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp104_ = inset_index; -#line 4309 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp105_ = _tmp103_[_tmp104_]; -#line 4309 "/home/jens/Source/shotwell/src/Photo.vala" - xmax = _tmp102_ - _tmp105_; -#line 4310 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp107_ = xmax; -#line 4310 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp108_ = gdk_pixbuf_get_width (pixbuf); -#line 4310 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp109_ = _tmp108_; -#line 4310 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp107_ > (_tmp109_ - 1)) { -#line 31097 "Photo.c" - gint _tmp110_; - gint _tmp111_; -#line 4310 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp110_ = gdk_pixbuf_get_width (pixbuf); -#line 4310 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp111_ = _tmp110_; -#line 4310 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp106_ = _tmp111_ - 1; -#line 31106 "Photo.c" - } else { - gint _tmp112_; -#line 4310 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp112_ = xmax; -#line 4310 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp106_ = _tmp112_; -#line 31113 "Photo.c" - } -#line 4310 "/home/jens/Source/shotwell/src/Photo.vala" - xmax = _tmp106_; -#line 31117 "Photo.c" - { - gint x_it = 0; - gint _tmp113_; -#line 4312 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp113_ = xmin; -#line 4312 "/home/jens/Source/shotwell/src/Photo.vala" - x_it = _tmp113_; -#line 31125 "Photo.c" - { - gboolean _tmp114_ = FALSE; -#line 4312 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp114_ = TRUE; -#line 4312 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 31132 "Photo.c" - gint _tmp116_; - gint _tmp117_; - gint _tmp118_; - gint _tmp119_; - GdkPixbuf* _tmp120_; - GdkPixbuf* _tmp121_; -#line 4312 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp114_) { -#line 31141 "Photo.c" - gint _tmp115_; -#line 4312 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp115_ = x_it; -#line 4312 "/home/jens/Source/shotwell/src/Photo.vala" - x_it = _tmp115_ + 1; -#line 31147 "Photo.c" - } -#line 4312 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp114_ = FALSE; -#line 4312 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp116_ = x_it; -#line 4312 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp117_ = xmax; -#line 4312 "/home/jens/Source/shotwell/src/Photo.vala" - if (!(_tmp116_ <= _tmp117_)) { -#line 4312 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 31159 "Photo.c" - } -#line 4313 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp118_ = x_it; -#line 4313 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp119_ = y_it; -#line 4313 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp120_ = photo_red_reduce_pixel (self, pixbuf, _tmp118_, _tmp119_); -#line 4313 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp121_ = _tmp120_; -#line 4313 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp121_); -#line 31171 "Photo.c" - } - } - } -#line 4315 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp122_ = inset_index; -#line 4315 "/home/jens/Source/shotwell/src/Photo.vala" - inset_index = _tmp122_ - 1; -#line 31179 "Photo.c" - } - } - } -#line 4318 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp123_ = _g_object_ref0 (pixbuf); -#line 4318 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp123_; -#line 4318 "/home/jens/Source/shotwell/src/Photo.vala" - x_insets_first_quadrant = (g_free (x_insets_first_quadrant), NULL); -#line 4318 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 31191 "Photo.c" -} - - -static GdkPixbuf* -photo_red_reduce_pixel (Photo* self, - GdkPixbuf* pixbuf, - gint x, - gint y) -{ - GdkPixbuf* result = NULL; - gint px_start_byte_offset = 0; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - GdkPixbuf* _tmp20_; -#line 4321 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 4321 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL); -#line 4322 "/home/jens/Source/shotwell/src/Photo.vala" - px_start_byte_offset = (y * gdk_pixbuf_get_rowstride (pixbuf)) + (x * gdk_pixbuf_get_n_channels (pixbuf)); -#line 4329 "/home/jens/Source/shotwell/src/Photo.vala" - if (x >= 0) { -#line 4329 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = y >= 0; -#line 31217 "Photo.c" - } else { -#line 4329 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = FALSE; -#line 31221 "Photo.c" - } -#line 4329 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_) { -#line 31225 "Photo.c" - gint _tmp3_; - gint _tmp4_; -#line 4329 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = gdk_pixbuf_get_width (pixbuf); -#line 4329 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 4329 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = x < _tmp4_; -#line 31234 "Photo.c" - } else { -#line 4329 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = FALSE; -#line 31238 "Photo.c" - } -#line 4329 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_) { -#line 31242 "Photo.c" - gint _tmp5_; - gint _tmp6_; -#line 4329 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = gdk_pixbuf_get_height (pixbuf); -#line 4329 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _tmp5_; -#line 4329 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = y < _tmp6_; -#line 31251 "Photo.c" - } else { -#line 4329 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = FALSE; -#line 31255 "Photo.c" - } -#line 4329 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp0_) { -#line 31259 "Photo.c" - guchar* pixel_data = NULL; - guint8* _tmp7_; - gint pixel_data_length1; - gint _pixel_data_size_; - guchar g = '\0'; - guchar* _tmp8_; - gint _tmp8__length1; - gint _tmp9_; - guchar _tmp10_; - guchar b = '\0'; - guchar* _tmp11_; - gint _tmp11__length1; - gint _tmp12_; - guchar _tmp13_; - guchar r = '\0'; - guchar _tmp14_; - guchar _tmp15_; - guchar* _tmp16_; - gint _tmp16__length1; - gint _tmp17_; - guchar _tmp18_; - guchar _tmp19_; -#line 4330 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = gdk_pixbuf_get_pixels (pixbuf); -#line 4330 "/home/jens/Source/shotwell/src/Photo.vala" - pixel_data = _tmp7_; -#line 4330 "/home/jens/Source/shotwell/src/Photo.vala" - pixel_data_length1 = -1; -#line 4330 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_data_size_ = pixel_data_length1; -#line 4340 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = pixel_data; -#line 4340 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8__length1 = pixel_data_length1; -#line 4340 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = px_start_byte_offset; -#line 4340 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp8_[_tmp9_ + 1]; -#line 4340 "/home/jens/Source/shotwell/src/Photo.vala" - g = _tmp10_; -#line 4341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = pixel_data; -#line 4341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11__length1 = pixel_data_length1; -#line 4341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = px_start_byte_offset; -#line 4341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp11_[_tmp12_ + 2]; -#line 4341 "/home/jens/Source/shotwell/src/Photo.vala" - b = _tmp13_; -#line 4343 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = g; -#line 4343 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = b; -#line 4343 "/home/jens/Source/shotwell/src/Photo.vala" - r = (guchar) ((_tmp14_ + _tmp15_) / 2); -#line 4345 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = pixel_data; -#line 4345 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16__length1 = pixel_data_length1; -#line 4345 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = px_start_byte_offset; -#line 4345 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = r; -#line 4345 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_[_tmp17_] = _tmp18_; -#line 4345 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = _tmp16_[_tmp17_]; -#line 31328 "Photo.c" - } -#line 4348 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = _g_object_ref0 (pixbuf); -#line 4348 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp20_; -#line 4348 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 31336 "Photo.c" -} - - -void -photo_unscaled_to_raw_point (Photo* self, - GdkPoint* unscaled_point, - GdkPoint* result) -{ - Orientation unscaled_orientation = 0; - Dimensions unscaled_dims = {0}; - Orientation _tmp0_; - Dimensions _tmp1_ = {0}; - Dimensions _tmp2_ = {0}; - gint unscaled_x_offset_raw = 0; - gint unscaled_y_offset_raw = 0; - Box crop_box = {0}; - Box _tmp3_ = {0}; - gboolean _tmp4_; - GdkPoint derotated_point = {0}; - Orientation _tmp9_; - Dimensions _tmp10_; - GdkPoint _tmp11_; - GdkPoint _tmp12_ = {0}; - gint _tmp13_; - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; -#line 4351 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 4351 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (unscaled_point != NULL); -#line 4352 "/home/jens/Source/shotwell/src/Photo.vala" - unscaled_orientation = photo_get_orientation (self); -#line 4354 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = unscaled_orientation; -#line 4354 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp1_); -#line 4354 "/home/jens/Source/shotwell/src/Photo.vala" - orientation_rotate_dimensions (_tmp0_, &_tmp1_, &_tmp2_); -#line 4354 "/home/jens/Source/shotwell/src/Photo.vala" - unscaled_dims = _tmp2_; -#line 4357 "/home/jens/Source/shotwell/src/Photo.vala" - unscaled_x_offset_raw = 0; -#line 4358 "/home/jens/Source/shotwell/src/Photo.vala" - unscaled_y_offset_raw = 0; -#line 4361 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = photo_get_raw_crop (self, &_tmp3_); -#line 4361 "/home/jens/Source/shotwell/src/Photo.vala" - crop_box = _tmp3_; -#line 4361 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp4_) { -#line 31388 "Photo.c" - Box _tmp5_; - gint _tmp6_; - Box _tmp7_; - gint _tmp8_; -#line 4362 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = crop_box; -#line 4362 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _tmp5_.left; -#line 4362 "/home/jens/Source/shotwell/src/Photo.vala" - unscaled_x_offset_raw = _tmp6_; -#line 4363 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = crop_box; -#line 4363 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _tmp7_.top; -#line 4363 "/home/jens/Source/shotwell/src/Photo.vala" - unscaled_y_offset_raw = _tmp8_; -#line 31405 "Photo.c" - } -#line 4366 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = unscaled_orientation; -#line 4366 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = unscaled_dims; -#line 4366 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = *unscaled_point; -#line 4366 "/home/jens/Source/shotwell/src/Photo.vala" - orientation_derotate_point (_tmp9_, &_tmp10_, &_tmp11_, &_tmp12_); -#line 4366 "/home/jens/Source/shotwell/src/Photo.vala" - derotated_point = _tmp12_; -#line 4370 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = derotated_point.x; -#line 4370 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = unscaled_x_offset_raw; -#line 4370 "/home/jens/Source/shotwell/src/Photo.vala" - derotated_point.x = _tmp13_ + _tmp14_; -#line 4371 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = derotated_point.y; -#line 4371 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = unscaled_y_offset_raw; -#line 4371 "/home/jens/Source/shotwell/src/Photo.vala" - derotated_point.y = _tmp15_ + _tmp16_; -#line 4373 "/home/jens/Source/shotwell/src/Photo.vala" - *result = derotated_point; -#line 4373 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 31433 "Photo.c" -} - - -void -photo_unscaled_to_raw_rect (Photo* self, - GdkRectangle* unscaled_rect, - GdkRectangle* result) -{ - GdkPoint upper_left = {0}; - GdkPoint _tmp0_ = {0}; - GdkPoint lower_right = {0}; - GdkPoint _tmp1_ = {0}; - GdkRectangle _tmp2_; - gint _tmp3_; - GdkRectangle _tmp4_; - gint _tmp5_; - GdkPoint _tmp6_; - gint _tmp7_; - GdkRectangle _tmp8_; - gint _tmp9_; - GdkPoint _tmp10_; - gint _tmp11_; - GdkRectangle _tmp12_; - gint _tmp13_; - GdkPoint _tmp14_; - GdkPoint _tmp15_ = {0}; - GdkPoint _tmp16_; - GdkPoint _tmp17_ = {0}; - GdkPoint _tmp18_; - gint _tmp19_; - GdkPoint _tmp20_; - gint _tmp21_; - GdkPoint _tmp27_; - gint _tmp28_; - GdkPoint _tmp29_; - gint _tmp30_; - GdkRectangle raw_rect = {0}; - GdkPoint _tmp36_; - gint _tmp37_; - GdkPoint _tmp38_; - gint _tmp39_; - GdkPoint _tmp40_; - gint _tmp41_; - GdkPoint _tmp42_; - gint _tmp43_; - GdkPoint _tmp44_; - gint _tmp45_; - GdkPoint _tmp46_; - gint _tmp47_; -#line 4376 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (self)); -#line 4376 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (unscaled_rect != NULL); -#line 4377 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_.x = 0; -#line 4377 "/home/jens/Source/shotwell/src/Photo.vala" - upper_left = _tmp0_; -#line 4378 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_.x = 0; -#line 4378 "/home/jens/Source/shotwell/src/Photo.vala" - lower_right = _tmp1_; -#line 4379 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = *unscaled_rect; -#line 4379 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_.x; -#line 4379 "/home/jens/Source/shotwell/src/Photo.vala" - upper_left.x = _tmp3_; -#line 4380 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = *unscaled_rect; -#line 4380 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_.y; -#line 4380 "/home/jens/Source/shotwell/src/Photo.vala" - upper_left.y = _tmp5_; -#line 4381 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = upper_left; -#line 4381 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_.x; -#line 4381 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = *unscaled_rect; -#line 4381 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_.width; -#line 4381 "/home/jens/Source/shotwell/src/Photo.vala" - lower_right.x = _tmp7_ + _tmp9_; -#line 4382 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = upper_left; -#line 4382 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_.y; -#line 4382 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = *unscaled_rect; -#line 4382 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_.height; -#line 4382 "/home/jens/Source/shotwell/src/Photo.vala" - lower_right.y = _tmp11_ + _tmp13_; -#line 4384 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = upper_left; -#line 4384 "/home/jens/Source/shotwell/src/Photo.vala" - photo_unscaled_to_raw_point (self, &_tmp14_, &_tmp15_); -#line 4384 "/home/jens/Source/shotwell/src/Photo.vala" - upper_left = _tmp15_; -#line 4385 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = lower_right; -#line 4385 "/home/jens/Source/shotwell/src/Photo.vala" - photo_unscaled_to_raw_point (self, &_tmp16_, &_tmp17_); -#line 4385 "/home/jens/Source/shotwell/src/Photo.vala" - lower_right = _tmp17_; -#line 4387 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = upper_left; -#line 4387 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = _tmp18_.x; -#line 4387 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = lower_right; -#line 4387 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _tmp20_.x; -#line 4387 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp19_ > _tmp21_) { -#line 31549 "Photo.c" - gint temp = 0; - GdkPoint _tmp22_; - gint _tmp23_; - GdkPoint _tmp24_; - gint _tmp25_; - gint _tmp26_; -#line 4388 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = upper_left; -#line 4388 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _tmp22_.x; -#line 4388 "/home/jens/Source/shotwell/src/Photo.vala" - temp = _tmp23_; -#line 4389 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = lower_right; -#line 4389 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = _tmp24_.x; -#line 4389 "/home/jens/Source/shotwell/src/Photo.vala" - upper_left.x = _tmp25_; -#line 4390 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = temp; -#line 4390 "/home/jens/Source/shotwell/src/Photo.vala" - lower_right.x = _tmp26_; -#line 31572 "Photo.c" - } -#line 4392 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = upper_left; -#line 4392 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = _tmp27_.y; -#line 4392 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = lower_right; -#line 4392 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = _tmp29_.y; -#line 4392 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp28_ > _tmp30_) { -#line 31584 "Photo.c" - gint temp = 0; - GdkPoint _tmp31_; - gint _tmp32_; - GdkPoint _tmp33_; - gint _tmp34_; - gint _tmp35_; -#line 4393 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = upper_left; -#line 4393 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = _tmp31_.y; -#line 4393 "/home/jens/Source/shotwell/src/Photo.vala" - temp = _tmp32_; -#line 4394 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = lower_right; -#line 4394 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = _tmp33_.y; -#line 4394 "/home/jens/Source/shotwell/src/Photo.vala" - upper_left.y = _tmp34_; -#line 4395 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = temp; -#line 4395 "/home/jens/Source/shotwell/src/Photo.vala" - lower_right.y = _tmp35_; -#line 31607 "Photo.c" - } -#line 4398 "/home/jens/Source/shotwell/src/Photo.vala" - memset (&raw_rect, 0, sizeof (GdkRectangle)); -#line 4399 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = upper_left; -#line 4399 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = _tmp36_.x; -#line 4399 "/home/jens/Source/shotwell/src/Photo.vala" - raw_rect.x = _tmp37_; -#line 4400 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = upper_left; -#line 4400 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = _tmp38_.y; -#line 4400 "/home/jens/Source/shotwell/src/Photo.vala" - raw_rect.y = _tmp39_; -#line 4401 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = lower_right; -#line 4401 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = _tmp40_.x; -#line 4401 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = upper_left; -#line 4401 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = _tmp42_.x; -#line 4401 "/home/jens/Source/shotwell/src/Photo.vala" - raw_rect.width = _tmp41_ - _tmp43_; -#line 4402 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = lower_right; -#line 4402 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = _tmp44_.y; -#line 4402 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = upper_left; -#line 4402 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = _tmp46_.y; -#line 4402 "/home/jens/Source/shotwell/src/Photo.vala" - raw_rect.height = _tmp45_ - _tmp47_; -#line 4404 "/home/jens/Source/shotwell/src/Photo.vala" - *result = raw_rect; -#line 4404 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 31647 "Photo.c" -} - - -PixelTransformationBundle* -photo_get_enhance_transformations (Photo* self) -{ - PixelTransformationBundle* result = NULL; - GdkPixbuf* pixbuf = NULL; - PixelTransformationBundle* transformations = NULL; - GdkPixbuf* _tmp4_; - PixelTransformationBundle* _tmp5_; - GError * _inner_error_ = NULL; -#line 4407 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), NULL); -#line 4408 "/home/jens/Source/shotwell/src/Photo.vala" - pixbuf = NULL; -#line 31664 "Photo.c" - { - GdkPixbuf* _tmp0_ = NULL; - Scaling _tmp1_ = {0}; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; -#line 4415 "/home/jens/Source/shotwell/src/Photo.vala" - scaling_for_best_fit (360, FALSE, &_tmp1_); -#line 4415 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_get_pixbuf_with_options (self, &_tmp1_, PHOTO_EXCEPTION_ALL, BACKING_FETCH_MODE_BASELINE, &_inner_error_); -#line 4415 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp2_; -#line 4415 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 31678 "Photo.c" - goto __catch417_g_error; - } -#line 4415 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp0_; -#line 4415 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = NULL; -#line 4415 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 4415 "/home/jens/Source/shotwell/src/Photo.vala" - pixbuf = _tmp3_; -#line 4414 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp0_); -#line 31691 "Photo.c" - } - goto __finally417; - __catch417_g_error: - { - GError* e = NULL; -#line 4414 "/home/jens/Source/shotwell/src/Photo.vala" - e = _inner_error_; -#line 4414 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 4422 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:4422: %s", "Photo: get_enhance_transformations: couldn't obtain pixbuf to build " "transform histogram"); -#line 4424 "/home/jens/Source/shotwell/src/Photo.vala" - result = NULL; -#line 4424 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (e); -#line 4424 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 4424 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 31711 "Photo.c" - } - __finally417: -#line 4414 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4414 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 4414 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 4414 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 4414 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 31724 "Photo.c" - } -#line 4431 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = pixbuf; -#line 4431 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = auto_enhance_create_auto_enhance_adjustments (_tmp4_); -#line 4431 "/home/jens/Source/shotwell/src/Photo.vala" - transformations = _tmp5_; -#line 4439 "/home/jens/Source/shotwell/src/Photo.vala" - result = transformations; -#line 4439 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 4439 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 31738 "Photo.c" -} - - -gboolean -photo_enhance (Photo* self) -{ - gboolean result = FALSE; - PixelTransformationBundle* transformations = NULL; - PixelTransformationBundle* _tmp0_; - PixelTransformationBundle* _tmp1_; - GError * _inner_error_ = NULL; -#line 4442 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (self), FALSE); -#line 4443 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_enhance_transformations (self); -#line 4443 "/home/jens/Source/shotwell/src/Photo.vala" - transformations = _tmp0_; -#line 4445 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = transformations; -#line 4445 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ == NULL) { -#line 4446 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 4446 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (transformations); -#line 4446 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 31766 "Photo.c" - } - { - PhotoRow* _tmp2_; -#line 4451 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->row; -#line 4451 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_lock (&self->priv->__lock_row); -#line 31774 "Photo.c" - { - PixelTransformationBundle* _tmp3_; -#line 4452 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = transformations; -#line 4452 "/home/jens/Source/shotwell/src/Photo.vala" - photo_set_color_adjustments (self, _tmp3_); -#line 31781 "Photo.c" - } - __finally418: - { - PhotoRow* _tmp4_; -#line 4451 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->row; -#line 4451 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_unlock (&self->priv->__lock_row); -#line 31790 "Photo.c" - } -#line 4451 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 31794 "Photo.c" - gboolean _tmp5_ = FALSE; -#line 4451 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (transformations); -#line 4451 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 4451 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 4451 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp5_; -#line 31804 "Photo.c" - } - } -#line 4459 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 4459 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (transformations); -#line 4459 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 31813 "Photo.c" -} - - -gboolean -photo_get_develop_raw_photos_to_files (void) -{ - gboolean result; - gboolean _tmp0_; -#line 349 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo__develop_raw_photos_to_files; -#line 349 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp0_; -#line 349 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 31828 "Photo.c" -} - - -void -photo_set_develop_raw_photos_to_files (gboolean value) -{ -#line 349 "/home/jens/Source/shotwell/src/Photo.vala" - photo__develop_raw_photos_to_files = value; -#line 31837 "Photo.c" -} - - -static void -photo_real_editable_replaced (Photo* self, - GFile* old_file, - GFile* new_file) -{ -#line 358 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((old_file == NULL) || G_IS_FILE (old_file)); -#line 358 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((new_file == NULL) || G_IS_FILE (new_file)); -#line 31850 "Photo.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2); - register GMarshalFunc_VOID__OBJECT_OBJECT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (n_param_values == 3); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - data1 = closure->data; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - data2 = param_values->data[0].v_pointer; -#line 31876 "Photo.c" - } else { -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - data1 = param_values->data[0].v_pointer; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - data2 = closure->data; -#line 31882 "Photo.c" - } -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2); -#line 31888 "Photo.c" -} - - -static void -photo_real_raw_development_modified (Photo* self) -{ -} - - -static void -photo_real_baseline_replaced (Photo* self) -{ -} - - -static void -photo_real_master_reimported (Photo* self, - PhotoMetadata* metadata) -{ -#line 376 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 31910 "Photo.c" -} - - -static void -g_cclosure_user_marshal_VOID__MEDIA_METADATA (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__MEDIA_METADATA) (gpointer data1, gpointer arg_1, gpointer data2); - register GMarshalFunc_VOID__MEDIA_METADATA callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (n_param_values == 2); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - data1 = closure->data; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - data2 = param_values->data[0].v_pointer; -#line 31936 "Photo.c" - } else { -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - data1 = param_values->data[0].v_pointer; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - data2 = closure->data; -#line 31942 "Photo.c" - } -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - callback = (GMarshalFunc_VOID__MEDIA_METADATA) (marshal_data ? marshal_data : cc->callback); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - callback (data1, value_get_media_metadata (param_values + 1), data2); -#line 31948 "Photo.c" -} - - -static void -photo_real_editable_reimported (Photo* self, - PhotoMetadata* metadata) -{ -#line 380 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 31958 "Photo.c" -} - - -static void -photo_real_baseline_reimported (Photo* self, - PhotoMetadata* metadata) -{ -#line 387 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 31968 "Photo.c" -} - - -static void -photo_real_source_reimported (Photo* self, - PhotoMetadata* metadata) -{ -#line 394 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 31978 "Photo.c" -} - - -static void -_photo_photo_transformation_state_impl_on_photo_baseline_replaced_photo_baseline_replaced (Photo* _sender, - gpointer self) -{ -#line 257 "/home/jens/Source/shotwell/src/Photo.vala" - photo_photo_transformation_state_impl_on_photo_baseline_replaced ((PhotoPhotoTransformationStateImpl*) self); -#line 31988 "Photo.c" -} - - -static PhotoPhotoTransformationStateImpl* -photo_photo_transformation_state_impl_construct (GType object_type, - Photo* photo, - Orientation orientation, - GeeHashMap* transformations, - PixelTransformer* transformer, - PixelTransformationBundle* adjustments) -{ - PhotoPhotoTransformationStateImpl * self = NULL; - Photo* _tmp0_; - GeeHashMap* _tmp1_; - PixelTransformer* _tmp2_; - PixelTransformationBundle* _tmp3_; -#line 244 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 244 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((transformations == NULL) || GEE_IS_HASH_MAP (transformations), NULL); -#line 244 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((transformer == NULL) || IS_PIXEL_TRANSFORMER (transformer), NULL); -#line 244 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((adjustments == NULL) || IS_PIXEL_TRANSFORMATION_BUNDLE (adjustments), NULL); -#line 244 "/home/jens/Source/shotwell/src/Photo.vala" - self = (PhotoPhotoTransformationStateImpl*) photo_transformation_state_construct (object_type); -#line 247 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _g_object_ref0 (photo); -#line 247 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->photo); -#line 247 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->photo = _tmp0_; -#line 248 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->orientation = orientation; -#line 249 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_photo_transformation_state_impl_copy_transformations (transformations); -#line 249 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->transformations); -#line 249 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->transformations = _tmp1_; -#line 250 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _pixel_transformer_ref0 (transformer); -#line 250 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (self->priv->transformer); -#line 250 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->transformer = _tmp2_; -#line 251 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _pixel_transformation_bundle_ref0 (adjustments); -#line 251 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (self->priv->adjustments); -#line 251 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->adjustments = _tmp3_; -#line 253 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_connect_object (photo, "baseline-replaced", (GCallback) _photo_photo_transformation_state_impl_on_photo_baseline_replaced_photo_baseline_replaced, self, 0); -#line 244 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 32045 "Photo.c" -} - - -static PhotoPhotoTransformationStateImpl* -photo_photo_transformation_state_impl_new (Photo* photo, - Orientation orientation, - GeeHashMap* transformations, - PixelTransformer* transformer, - PixelTransformationBundle* adjustments) -{ -#line 244 "/home/jens/Source/shotwell/src/Photo.vala" - return photo_photo_transformation_state_impl_construct (PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, photo, orientation, transformations, transformer, adjustments); -#line 32058 "Photo.c" -} - - -static Orientation -photo_photo_transformation_state_impl_get_orientation (PhotoPhotoTransformationStateImpl* self) -{ - Orientation result = 0; - Orientation _tmp0_; -#line 260 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL (self), 0); -#line 261 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->orientation; -#line 261 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp0_; -#line 261 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 32075 "Photo.c" -} - - -static GeeHashMap* -photo_photo_transformation_state_impl_get_transformations (PhotoPhotoTransformationStateImpl* self) -{ - GeeHashMap* result = NULL; - GeeHashMap* _tmp0_; - GeeHashMap* _tmp1_; -#line 264 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL (self), NULL); -#line 265 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->transformations; -#line 265 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_photo_transformation_state_impl_copy_transformations (_tmp0_); -#line 265 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp1_; -#line 265 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 32095 "Photo.c" -} - - -static PixelTransformer* -photo_photo_transformation_state_impl_get_transformer (PhotoPhotoTransformationStateImpl* self) -{ - PixelTransformer* result = NULL; - PixelTransformer* _tmp0_ = NULL; - PixelTransformer* _tmp1_; -#line 268 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL (self), NULL); -#line 269 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->transformer; -#line 269 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ != NULL) { -#line 32111 "Photo.c" - PixelTransformer* _tmp2_; - PixelTransformer* _tmp3_; -#line 269 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->transformer; -#line 269 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = pixel_transformer_copy (_tmp2_); -#line 269 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (_tmp0_); -#line 269 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp3_; -#line 32122 "Photo.c" - } else { -#line 269 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (_tmp0_); -#line 269 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = NULL; -#line 32128 "Photo.c" - } -#line 269 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp0_; -#line 269 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 32134 "Photo.c" -} - - -static PixelTransformationBundle* -photo_photo_transformation_state_impl_get_color_adjustments (PhotoPhotoTransformationStateImpl* self) -{ - PixelTransformationBundle* result = NULL; - PixelTransformationBundle* _tmp0_ = NULL; - PixelTransformationBundle* _tmp1_; -#line 272 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL (self), NULL); -#line 273 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->adjustments; -#line 273 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ != NULL) { -#line 32150 "Photo.c" - PixelTransformationBundle* _tmp2_; - PixelTransformationBundle* _tmp3_; -#line 273 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->adjustments; -#line 273 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = pixel_transformation_bundle_copy (_tmp2_); -#line 273 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (_tmp0_); -#line 273 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp3_; -#line 32161 "Photo.c" - } else { -#line 273 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (_tmp0_); -#line 273 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = NULL; -#line 32167 "Photo.c" - } -#line 273 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp0_; -#line 273 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 32173 "Photo.c" -} - - -static GeeHashMap* -photo_photo_transformation_state_impl_copy_transformations (GeeHashMap* original) -{ - GeeHashMap* result = NULL; - GeeHashMap* clone = NULL; - GeeHashMap* _tmp0_; -#line 276 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((original == NULL) || GEE_IS_HASH_MAP (original), NULL); -#line 278 "/home/jens/Source/shotwell/src/Photo.vala" - if (original == NULL) { -#line 279 "/home/jens/Source/shotwell/src/Photo.vala" - result = NULL; -#line 279 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 32191 "Photo.c" - } -#line 281 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_KEY_VALUE_MAP, (GBoxedCopyFunc) key_value_map_ref, (GDestroyNotify) key_value_map_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 281 "/home/jens/Source/shotwell/src/Photo.vala" - clone = _tmp0_; -#line 32197 "Photo.c" - { - GeeIterator* _object_it = NULL; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeSet* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 282 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (original, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 282 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 282 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_; -#line 282 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 282 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_; -#line 282 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp3_); -#line 282 "/home/jens/Source/shotwell/src/Photo.vala" - _object_it = _tmp5_; -#line 282 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 32221 "Photo.c" - GeeIterator* _tmp6_; - gchar* object = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - GeeHashMap* _tmp9_; - const gchar* _tmp10_; - const gchar* _tmp11_; - gpointer _tmp12_; - KeyValueMap* _tmp13_; - KeyValueMap* _tmp14_; - KeyValueMap* _tmp15_; -#line 282 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _object_it; -#line 282 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 282 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 32239 "Photo.c" - } -#line 282 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _object_it; -#line 282 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 282 "/home/jens/Source/shotwell/src/Photo.vala" - object = (gchar*) _tmp8_; -#line 283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = clone; -#line 283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = object; -#line 283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = object; -#line 283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (original, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp11_); -#line 283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = (KeyValueMap*) _tmp12_; -#line 283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = key_value_map_copy (_tmp13_); -#line 283 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_; -#line 283 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp10_, _tmp15_); -#line 283 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (_tmp15_); -#line 283 "/home/jens/Source/shotwell/src/Photo.vala" - _key_value_map_unref0 (_tmp13_); -#line 282 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (object); -#line 32269 "Photo.c" - } -#line 282 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_object_it); -#line 32273 "Photo.c" - } -#line 285 "/home/jens/Source/shotwell/src/Photo.vala" - result = clone; -#line 285 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 32279 "Photo.c" -} - - -static void -photo_photo_transformation_state_impl_on_photo_baseline_replaced (PhotoPhotoTransformationStateImpl* self) -{ -#line 288 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (PHOTO_IS_PHOTO_TRANSFORMATION_STATE_IMPL (self)); -#line 289 "/home/jens/Source/shotwell/src/Photo.vala" - if (!photo_transformation_state_is_broken (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationState))) { -#line 290 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_TRANSFORMATION_STATE, PhotoTransformationState), photo_transformation_state_signals[PHOTO_TRANSFORMATION_STATE_BROKEN_SIGNAL], 0); -#line 32292 "Photo.c" - } -} - - -static void -photo_photo_transformation_state_impl_class_init (PhotoPhotoTransformationStateImplClass * klass) -{ -#line 237 "/home/jens/Source/shotwell/src/Photo.vala" - photo_photo_transformation_state_impl_parent_class = g_type_class_peek_parent (klass); -#line 237 "/home/jens/Source/shotwell/src/Photo.vala" - g_type_class_add_private (klass, sizeof (PhotoPhotoTransformationStateImplPrivate)); -#line 237 "/home/jens/Source/shotwell/src/Photo.vala" - G_OBJECT_CLASS (klass)->finalize = photo_photo_transformation_state_impl_finalize; -#line 32306 "Photo.c" -} - - -static void -photo_photo_transformation_state_impl_instance_init (PhotoPhotoTransformationStateImpl * self) -{ -#line 237 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv = PHOTO_PHOTO_TRANSFORMATION_STATE_IMPL_GET_PRIVATE (self); -#line 32315 "Photo.c" -} - - -static void -photo_photo_transformation_state_impl_finalize (GObject * obj) -{ - PhotoPhotoTransformationStateImpl * self; - Photo* _tmp0_; - guint _tmp1_; -#line 237 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_PHOTO_TRANSFORMATION_STATE_IMPL, PhotoPhotoTransformationStateImpl); -#line 257 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->photo; -#line 257 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_parse_name ("baseline-replaced", TYPE_PHOTO, &_tmp1_, NULL, FALSE); -#line 257 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _photo_photo_transformation_state_impl_on_photo_baseline_replaced_photo_baseline_replaced, self); -#line 238 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->photo); -#line 240 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->transformations); -#line 241 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (self->priv->transformer); -#line 242 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (self->priv->adjustments); -#line 237 "/home/jens/Source/shotwell/src/Photo.vala" - G_OBJECT_CLASS (photo_photo_transformation_state_impl_parent_class)->finalize (obj); -#line 32343 "Photo.c" -} - - -static GType -photo_photo_transformation_state_impl_get_type (void) -{ - static volatile gsize photo_photo_transformation_state_impl_type_id__volatile = 0; - if (g_once_init_enter (&photo_photo_transformation_state_impl_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoPhotoTransformationStateImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_photo_transformation_state_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoPhotoTransformationStateImpl), 0, (GInstanceInitFunc) photo_photo_transformation_state_impl_instance_init, NULL }; - GType photo_photo_transformation_state_impl_type_id; - photo_photo_transformation_state_impl_type_id = g_type_register_static (TYPE_PHOTO_TRANSFORMATION_STATE, "PhotoPhotoTransformationStateImpl", &g_define_type_info, 0); - g_once_init_leave (&photo_photo_transformation_state_impl_type_id__volatile, photo_photo_transformation_state_impl_type_id); - } - return photo_photo_transformation_state_impl_type_id__volatile; -} - - -static PhotoBackingReaders* -photo_backing_readers_construct (GType object_type) -{ - PhotoBackingReaders* self = NULL; -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - self = (PhotoBackingReaders*) g_type_create_instance (object_type); -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 32369 "Photo.c" -} - - -static PhotoBackingReaders* -photo_backing_readers_new (void) -{ -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - return photo_backing_readers_construct (PHOTO_TYPE_BACKING_READERS); -#line 32378 "Photo.c" -} - - -static void -photo_value_backing_readers_init (GValue* value) -{ -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 32387 "Photo.c" -} - - -static void -photo_value_backing_readers_free_value (GValue* value) -{ -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - if (value->data[0].v_pointer) { -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - photo_backing_readers_unref (value->data[0].v_pointer); -#line 32398 "Photo.c" - } -} - - -static void -photo_value_backing_readers_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - if (src_value->data[0].v_pointer) { -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - dest_value->data[0].v_pointer = photo_backing_readers_ref (src_value->data[0].v_pointer); -#line 32411 "Photo.c" - } else { -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - dest_value->data[0].v_pointer = NULL; -#line 32415 "Photo.c" - } -} - - -static gpointer -photo_value_backing_readers_peek_pointer (const GValue* value) -{ -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - return value->data[0].v_pointer; -#line 32425 "Photo.c" -} - - -static gchar* -photo_value_backing_readers_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - if (collect_values[0].v_pointer) { -#line 32437 "Photo.c" - PhotoBackingReaders * object; - object = collect_values[0].v_pointer; -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - if (object->parent_instance.g_class == NULL) { -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 32444 "Photo.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 32448 "Photo.c" - } -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = photo_backing_readers_ref (object); -#line 32452 "Photo.c" - } else { -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 32456 "Photo.c" - } -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 32460 "Photo.c" -} - - -static gchar* -photo_value_backing_readers_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PhotoBackingReaders ** object_p; - object_p = collect_values[0].v_pointer; -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - if (!object_p) { -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 32476 "Photo.c" - } -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - if (!value->data[0].v_pointer) { -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = NULL; -#line 32482 "Photo.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = value->data[0].v_pointer; -#line 32486 "Photo.c" - } else { -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = photo_backing_readers_ref (value->data[0].v_pointer); -#line 32490 "Photo.c" - } -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 32494 "Photo.c" -} - - -static GParamSpec* -photo_param_spec_backing_readers (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PhotoParamSpecBackingReaders* spec; -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (g_type_is_a (object_type, PHOTO_TYPE_BACKING_READERS), NULL); -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - return G_PARAM_SPEC (spec); -#line 32514 "Photo.c" -} - - -static gpointer -photo_value_get_backing_readers (const GValue* value) -{ -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_BACKING_READERS), NULL); -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - return value->data[0].v_pointer; -#line 32525 "Photo.c" -} - - -static void -photo_value_set_backing_readers (GValue* value, - gpointer v_object) -{ - PhotoBackingReaders * old; -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_BACKING_READERS)); -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - old = value->data[0].v_pointer; -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - if (v_object) { -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_BACKING_READERS)); -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = v_object; -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - photo_backing_readers_ref (value->data[0].v_pointer); -#line 32548 "Photo.c" - } else { -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 32552 "Photo.c" - } -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - if (old) { -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - photo_backing_readers_unref (old); -#line 32558 "Photo.c" - } -} - - -static void -photo_value_take_backing_readers (GValue* value, - gpointer v_object) -{ - PhotoBackingReaders * old; -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_BACKING_READERS)); -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - old = value->data[0].v_pointer; -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - if (v_object) { -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_BACKING_READERS)); -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = v_object; -#line 32580 "Photo.c" - } else { -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 32584 "Photo.c" - } -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - if (old) { -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - photo_backing_readers_unref (old); -#line 32590 "Photo.c" - } -} - - -static void -photo_backing_readers_class_init (PhotoBackingReadersClass * klass) -{ -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - photo_backing_readers_parent_class = g_type_class_peek_parent (klass); -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoBackingReadersClass *) klass)->finalize = photo_backing_readers_finalize; -#line 32602 "Photo.c" -} - - -static void -photo_backing_readers_instance_init (PhotoBackingReaders * self) -{ -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - self->ref_count = 1; -#line 32611 "Photo.c" -} - - -static void -photo_backing_readers_finalize (PhotoBackingReaders * obj) -{ - PhotoBackingReaders * self; -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_BACKING_READERS, PhotoBackingReaders); -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_handlers_destroy (self); -#line 295 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (self->master); -#line 296 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (self->developer); -#line 297 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_file_adapter_unref0 (self->editable); -#line 32629 "Photo.c" -} - - -static GType -photo_backing_readers_get_type (void) -{ - static volatile gsize photo_backing_readers_type_id__volatile = 0; - if (g_once_init_enter (&photo_backing_readers_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { photo_value_backing_readers_init, photo_value_backing_readers_free_value, photo_value_backing_readers_copy_value, photo_value_backing_readers_peek_pointer, "p", photo_value_backing_readers_collect_value, "p", photo_value_backing_readers_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PhotoBackingReadersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_backing_readers_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoBackingReaders), 0, (GInstanceInitFunc) photo_backing_readers_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType photo_backing_readers_type_id; - photo_backing_readers_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoBackingReaders", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&photo_backing_readers_type_id__volatile, photo_backing_readers_type_id); - } - return photo_backing_readers_type_id__volatile; -} - - -static gpointer -photo_backing_readers_ref (gpointer instance) -{ - PhotoBackingReaders * self; - self = instance; -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - g_atomic_int_inc (&self->ref_count); -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - return instance; -#line 32658 "Photo.c" -} - - -static void -photo_backing_readers_unref (gpointer instance) -{ - PhotoBackingReaders * self; - self = instance; -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_BACKING_READERS_GET_CLASS (self)->finalize (self); -#line 294 "/home/jens/Source/shotwell/src/Photo.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 32673 "Photo.c" - } -} - - -static PhotoCachedPixbuf* -photo_cached_pixbuf_construct (GType object_type, - Photo* photo, - GdkPixbuf* pixbuf) -{ - PhotoCachedPixbuf* self = NULL; - Photo* _tmp0_; - GdkPixbuf* _tmp1_; -#line 305 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 305 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL); -#line 305 "/home/jens/Source/shotwell/src/Photo.vala" - self = (PhotoCachedPixbuf*) g_type_create_instance (object_type); -#line 306 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _g_object_ref0 (photo); -#line 306 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->photo); -#line 306 "/home/jens/Source/shotwell/src/Photo.vala" - self->photo = _tmp0_; -#line 307 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _g_object_ref0 (pixbuf); -#line 307 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->pixbuf); -#line 307 "/home/jens/Source/shotwell/src/Photo.vala" - self->pixbuf = _tmp1_; -#line 305 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 32706 "Photo.c" -} - - -static PhotoCachedPixbuf* -photo_cached_pixbuf_new (Photo* photo, - GdkPixbuf* pixbuf) -{ -#line 305 "/home/jens/Source/shotwell/src/Photo.vala" - return photo_cached_pixbuf_construct (PHOTO_TYPE_CACHED_PIXBUF, photo, pixbuf); -#line 32716 "Photo.c" -} - - -static void -photo_value_cached_pixbuf_init (GValue* value) -{ -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 32725 "Photo.c" -} - - -static void -photo_value_cached_pixbuf_free_value (GValue* value) -{ -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - if (value->data[0].v_pointer) { -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - photo_cached_pixbuf_unref (value->data[0].v_pointer); -#line 32736 "Photo.c" - } -} - - -static void -photo_value_cached_pixbuf_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - if (src_value->data[0].v_pointer) { -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - dest_value->data[0].v_pointer = photo_cached_pixbuf_ref (src_value->data[0].v_pointer); -#line 32749 "Photo.c" - } else { -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - dest_value->data[0].v_pointer = NULL; -#line 32753 "Photo.c" - } -} - - -static gpointer -photo_value_cached_pixbuf_peek_pointer (const GValue* value) -{ -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - return value->data[0].v_pointer; -#line 32763 "Photo.c" -} - - -static gchar* -photo_value_cached_pixbuf_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - if (collect_values[0].v_pointer) { -#line 32775 "Photo.c" - PhotoCachedPixbuf * object; - object = collect_values[0].v_pointer; -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - if (object->parent_instance.g_class == NULL) { -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 32782 "Photo.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 32786 "Photo.c" - } -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = photo_cached_pixbuf_ref (object); -#line 32790 "Photo.c" - } else { -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 32794 "Photo.c" - } -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 32798 "Photo.c" -} - - -static gchar* -photo_value_cached_pixbuf_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PhotoCachedPixbuf ** object_p; - object_p = collect_values[0].v_pointer; -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - if (!object_p) { -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 32814 "Photo.c" - } -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - if (!value->data[0].v_pointer) { -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = NULL; -#line 32820 "Photo.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = value->data[0].v_pointer; -#line 32824 "Photo.c" - } else { -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = photo_cached_pixbuf_ref (value->data[0].v_pointer); -#line 32828 "Photo.c" - } -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 32832 "Photo.c" -} - - -static GParamSpec* -photo_param_spec_cached_pixbuf (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PhotoParamSpecCachedPixbuf* spec; -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (g_type_is_a (object_type, PHOTO_TYPE_CACHED_PIXBUF), NULL); -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - return G_PARAM_SPEC (spec); -#line 32852 "Photo.c" -} - - -static gpointer -photo_value_get_cached_pixbuf (const GValue* value) -{ -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_CACHED_PIXBUF), NULL); -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - return value->data[0].v_pointer; -#line 32863 "Photo.c" -} - - -static void -photo_value_set_cached_pixbuf (GValue* value, - gpointer v_object) -{ - PhotoCachedPixbuf * old; -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_CACHED_PIXBUF)); -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - old = value->data[0].v_pointer; -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - if (v_object) { -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_CACHED_PIXBUF)); -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = v_object; -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - photo_cached_pixbuf_ref (value->data[0].v_pointer); -#line 32886 "Photo.c" - } else { -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 32890 "Photo.c" - } -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - if (old) { -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - photo_cached_pixbuf_unref (old); -#line 32896 "Photo.c" - } -} - - -static void -photo_value_take_cached_pixbuf (GValue* value, - gpointer v_object) -{ - PhotoCachedPixbuf * old; -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_CACHED_PIXBUF)); -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - old = value->data[0].v_pointer; -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - if (v_object) { -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_CACHED_PIXBUF)); -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = v_object; -#line 32918 "Photo.c" - } else { -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 32922 "Photo.c" - } -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - if (old) { -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - photo_cached_pixbuf_unref (old); -#line 32928 "Photo.c" - } -} - - -static void -photo_cached_pixbuf_class_init (PhotoCachedPixbufClass * klass) -{ -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - photo_cached_pixbuf_parent_class = g_type_class_peek_parent (klass); -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoCachedPixbufClass *) klass)->finalize = photo_cached_pixbuf_finalize; -#line 32940 "Photo.c" -} - - -static void -photo_cached_pixbuf_instance_init (PhotoCachedPixbuf * self) -{ - GTimer* _tmp0_; -#line 303 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = g_timer_new (); -#line 303 "/home/jens/Source/shotwell/src/Photo.vala" - self->last_touched = _tmp0_; -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - self->ref_count = 1; -#line 32954 "Photo.c" -} - - -static void -photo_cached_pixbuf_finalize (PhotoCachedPixbuf * obj) -{ - PhotoCachedPixbuf * self; -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_CACHED_PIXBUF, PhotoCachedPixbuf); -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_handlers_destroy (self); -#line 301 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->photo); -#line 302 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->pixbuf); -#line 303 "/home/jens/Source/shotwell/src/Photo.vala" - _g_timer_destroy0 (self->last_touched); -#line 32972 "Photo.c" -} - - -static GType -photo_cached_pixbuf_get_type (void) -{ - static volatile gsize photo_cached_pixbuf_type_id__volatile = 0; - if (g_once_init_enter (&photo_cached_pixbuf_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { photo_value_cached_pixbuf_init, photo_value_cached_pixbuf_free_value, photo_value_cached_pixbuf_copy_value, photo_value_cached_pixbuf_peek_pointer, "p", photo_value_cached_pixbuf_collect_value, "p", photo_value_cached_pixbuf_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PhotoCachedPixbufClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_cached_pixbuf_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoCachedPixbuf), 0, (GInstanceInitFunc) photo_cached_pixbuf_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType photo_cached_pixbuf_type_id; - photo_cached_pixbuf_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoCachedPixbuf", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&photo_cached_pixbuf_type_id__volatile, photo_cached_pixbuf_type_id); - } - return photo_cached_pixbuf_type_id__volatile; -} - - -static gpointer -photo_cached_pixbuf_ref (gpointer instance) -{ - PhotoCachedPixbuf * self; - self = instance; -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - g_atomic_int_inc (&self->ref_count); -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - return instance; -#line 33001 "Photo.c" -} - - -static void -photo_cached_pixbuf_unref (gpointer instance) -{ - PhotoCachedPixbuf * self; - self = instance; -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_CACHED_PIXBUF_GET_CLASS (self)->finalize (self); -#line 300 "/home/jens/Source/shotwell/src/Photo.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 33016 "Photo.c" - } -} - - -PhotoReimportMasterState* -photo_reimport_master_state_construct (GType object_type) -{ - PhotoReimportMasterState* self = NULL; -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - self = (PhotoReimportMasterState*) g_type_create_instance (object_type); -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 33029 "Photo.c" -} - - -static void -photo_value_reimport_master_state_init (GValue* value) -{ -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 33038 "Photo.c" -} - - -static void -photo_value_reimport_master_state_free_value (GValue* value) -{ -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - if (value->data[0].v_pointer) { -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_master_state_unref (value->data[0].v_pointer); -#line 33049 "Photo.c" - } -} - - -static void -photo_value_reimport_master_state_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - if (src_value->data[0].v_pointer) { -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - dest_value->data[0].v_pointer = photo_reimport_master_state_ref (src_value->data[0].v_pointer); -#line 33062 "Photo.c" - } else { -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - dest_value->data[0].v_pointer = NULL; -#line 33066 "Photo.c" - } -} - - -static gpointer -photo_value_reimport_master_state_peek_pointer (const GValue* value) -{ -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - return value->data[0].v_pointer; -#line 33076 "Photo.c" -} - - -static gchar* -photo_value_reimport_master_state_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - if (collect_values[0].v_pointer) { -#line 33088 "Photo.c" - PhotoReimportMasterState * object; - object = collect_values[0].v_pointer; -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - if (object->parent_instance.g_class == NULL) { -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 33095 "Photo.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 33099 "Photo.c" - } -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = photo_reimport_master_state_ref (object); -#line 33103 "Photo.c" - } else { -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 33107 "Photo.c" - } -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 33111 "Photo.c" -} - - -static gchar* -photo_value_reimport_master_state_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PhotoReimportMasterState ** object_p; - object_p = collect_values[0].v_pointer; -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - if (!object_p) { -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 33127 "Photo.c" - } -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - if (!value->data[0].v_pointer) { -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = NULL; -#line 33133 "Photo.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = value->data[0].v_pointer; -#line 33137 "Photo.c" - } else { -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = photo_reimport_master_state_ref (value->data[0].v_pointer); -#line 33141 "Photo.c" - } -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 33145 "Photo.c" -} - - -GParamSpec* -photo_param_spec_reimport_master_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PhotoParamSpecReimportMasterState* spec; -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (g_type_is_a (object_type, PHOTO_TYPE_REIMPORT_MASTER_STATE), NULL); -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - return G_PARAM_SPEC (spec); -#line 33165 "Photo.c" -} - - -gpointer -photo_value_get_reimport_master_state (const GValue* value) -{ -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_MASTER_STATE), NULL); -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - return value->data[0].v_pointer; -#line 33176 "Photo.c" -} - - -void -photo_value_set_reimport_master_state (GValue* value, - gpointer v_object) -{ - PhotoReimportMasterState * old; -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_MASTER_STATE)); -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - old = value->data[0].v_pointer; -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - if (v_object) { -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_MASTER_STATE)); -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = v_object; -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_master_state_ref (value->data[0].v_pointer); -#line 33199 "Photo.c" - } else { -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 33203 "Photo.c" - } -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - if (old) { -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_master_state_unref (old); -#line 33209 "Photo.c" - } -} - - -void -photo_value_take_reimport_master_state (GValue* value, - gpointer v_object) -{ - PhotoReimportMasterState * old; -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_MASTER_STATE)); -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - old = value->data[0].v_pointer; -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - if (v_object) { -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_MASTER_STATE)); -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = v_object; -#line 33231 "Photo.c" - } else { -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 33235 "Photo.c" - } -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - if (old) { -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_master_state_unref (old); -#line 33241 "Photo.c" - } -} - - -static void -photo_reimport_master_state_class_init (PhotoReimportMasterStateClass * klass) -{ -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_master_state_parent_class = g_type_class_peek_parent (klass); -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoReimportMasterStateClass *) klass)->finalize = photo_reimport_master_state_finalize; -#line 33253 "Photo.c" -} - - -static void -photo_reimport_master_state_instance_init (PhotoReimportMasterState * self) -{ -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - self->ref_count = 1; -#line 33262 "Photo.c" -} - - -static void -photo_reimport_master_state_finalize (PhotoReimportMasterState * obj) -{ - PhotoReimportMasterState * self; -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterState); -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_handlers_destroy (self); -#line 33274 "Photo.c" -} - - -GType -photo_reimport_master_state_get_type (void) -{ - static volatile gsize photo_reimport_master_state_type_id__volatile = 0; - if (g_once_init_enter (&photo_reimport_master_state_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { photo_value_reimport_master_state_init, photo_value_reimport_master_state_free_value, photo_value_reimport_master_state_copy_value, photo_value_reimport_master_state_peek_pointer, "p", photo_value_reimport_master_state_collect_value, "p", photo_value_reimport_master_state_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportMasterStateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_master_state_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportMasterState), 0, (GInstanceInitFunc) photo_reimport_master_state_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType photo_reimport_master_state_type_id; - photo_reimport_master_state_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoReimportMasterState", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&photo_reimport_master_state_type_id__volatile, photo_reimport_master_state_type_id); - } - return photo_reimport_master_state_type_id__volatile; -} - - -gpointer -photo_reimport_master_state_ref (gpointer instance) -{ - PhotoReimportMasterState * self; - self = instance; -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - g_atomic_int_inc (&self->ref_count); -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - return instance; -#line 33303 "Photo.c" -} - - -void -photo_reimport_master_state_unref (gpointer instance) -{ - PhotoReimportMasterState * self; - self = instance; -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_REIMPORT_MASTER_STATE_GET_CLASS (self)->finalize (self); -#line 1369 "/home/jens/Source/shotwell/src/Photo.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 33318 "Photo.c" - } -} - - -static gchar** -_vala_array_dup24 (gchar** self, - int length) -{ - gchar** result; - int i; -#line 1381 "/home/jens/Source/shotwell/src/Photo.vala" - result = g_new0 (gchar*, length + 1); -#line 1381 "/home/jens/Source/shotwell/src/Photo.vala" - for (i = 0; i < length; i++) { -#line 33333 "Photo.c" - gchar* _tmp0_; -#line 1381 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = g_strdup (self[i]); -#line 1381 "/home/jens/Source/shotwell/src/Photo.vala" - result[i] = _tmp0_; -#line 33339 "Photo.c" - } -#line 1381 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 33343 "Photo.c" -} - - -static PhotoReimportMasterStateImpl* -photo_reimport_master_state_impl_construct (GType object_type, - PhotoRow* row, - PhotoMetadata* metadata, - gchar** alterations, - int alterations_length1) -{ - PhotoReimportMasterStateImpl* self = NULL; - PhotoRow* _tmp0_; - PhotoMetadata* _tmp1_; - gchar** _tmp2_; - gint _tmp2__length1; -#line 1378 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO_ROW (row), NULL); -#line 1378 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata), NULL); -#line 1378 "/home/jens/Source/shotwell/src/Photo.vala" - self = (PhotoReimportMasterStateImpl*) photo_reimport_master_state_construct (object_type); -#line 1379 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _photo_row_ref0 (row); -#line 1379 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_row_unref0 (self->row); -#line 1379 "/home/jens/Source/shotwell/src/Photo.vala" - self->row = _tmp0_; -#line 1380 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _media_metadata_ref0 (metadata); -#line 1380 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (self->metadata); -#line 1380 "/home/jens/Source/shotwell/src/Photo.vala" - self->metadata = _tmp1_; -#line 1381 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = (alterations != NULL) ? _vala_array_dup24 (alterations, alterations_length1) : ((gpointer) alterations); -#line 1381 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2__length1 = alterations_length1; -#line 1381 "/home/jens/Source/shotwell/src/Photo.vala" - self->alterations = (_vala_array_free (self->alterations, self->alterations_length1, (GDestroyNotify) g_free), NULL); -#line 1381 "/home/jens/Source/shotwell/src/Photo.vala" - self->alterations = _tmp2_; -#line 1381 "/home/jens/Source/shotwell/src/Photo.vala" - self->alterations_length1 = _tmp2__length1; -#line 1381 "/home/jens/Source/shotwell/src/Photo.vala" - self->_alterations_size_ = self->alterations_length1; -#line 1378 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 33391 "Photo.c" -} - - -static PhotoReimportMasterStateImpl* -photo_reimport_master_state_impl_new (PhotoRow* row, - PhotoMetadata* metadata, - gchar** alterations, - int alterations_length1) -{ -#line 1378 "/home/jens/Source/shotwell/src/Photo.vala" - return photo_reimport_master_state_impl_construct (PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, row, metadata, alterations, alterations_length1); -#line 33403 "Photo.c" -} - - -static void -photo_reimport_master_state_impl_class_init (PhotoReimportMasterStateImplClass * klass) -{ -#line 1372 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_master_state_impl_parent_class = g_type_class_peek_parent (klass); -#line 1372 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoReimportMasterStateClass *) klass)->finalize = photo_reimport_master_state_impl_finalize; -#line 33414 "Photo.c" -} - - -static void -photo_reimport_master_state_impl_instance_init (PhotoReimportMasterStateImpl * self) -{ - PhotoRow* _tmp0_; -#line 1373 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_row_new (); -#line 1373 "/home/jens/Source/shotwell/src/Photo.vala" - self->row = _tmp0_; -#line 1376 "/home/jens/Source/shotwell/src/Photo.vala" - self->metadata_only = FALSE; -#line 33428 "Photo.c" -} - - -static void -photo_reimport_master_state_impl_finalize (PhotoReimportMasterState * obj) -{ - PhotoReimportMasterStateImpl * self; -#line 1372 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_MASTER_STATE_IMPL, PhotoReimportMasterStateImpl); -#line 1373 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_row_unref0 (self->row); -#line 1374 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (self->metadata); -#line 1375 "/home/jens/Source/shotwell/src/Photo.vala" - self->alterations = (_vala_array_free (self->alterations, self->alterations_length1, (GDestroyNotify) g_free), NULL); -#line 1372 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_REIMPORT_MASTER_STATE_CLASS (photo_reimport_master_state_impl_parent_class)->finalize (obj); -#line 33446 "Photo.c" -} - - -static GType -photo_reimport_master_state_impl_get_type (void) -{ - static volatile gsize photo_reimport_master_state_impl_type_id__volatile = 0; - if (g_once_init_enter (&photo_reimport_master_state_impl_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportMasterStateImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_master_state_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportMasterStateImpl), 0, (GInstanceInitFunc) photo_reimport_master_state_impl_instance_init, NULL }; - GType photo_reimport_master_state_impl_type_id; - photo_reimport_master_state_impl_type_id = g_type_register_static (PHOTO_TYPE_REIMPORT_MASTER_STATE, "PhotoReimportMasterStateImpl", &g_define_type_info, 0); - g_once_init_leave (&photo_reimport_master_state_impl_type_id__volatile, photo_reimport_master_state_impl_type_id); - } - return photo_reimport_master_state_impl_type_id__volatile; -} - - -PhotoReimportEditableState* -photo_reimport_editable_state_construct (GType object_type) -{ - PhotoReimportEditableState* self = NULL; -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - self = (PhotoReimportEditableState*) g_type_create_instance (object_type); -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 33472 "Photo.c" -} - - -static void -photo_value_reimport_editable_state_init (GValue* value) -{ -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 33481 "Photo.c" -} - - -static void -photo_value_reimport_editable_state_free_value (GValue* value) -{ -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - if (value->data[0].v_pointer) { -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_editable_state_unref (value->data[0].v_pointer); -#line 33492 "Photo.c" - } -} - - -static void -photo_value_reimport_editable_state_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - if (src_value->data[0].v_pointer) { -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - dest_value->data[0].v_pointer = photo_reimport_editable_state_ref (src_value->data[0].v_pointer); -#line 33505 "Photo.c" - } else { -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - dest_value->data[0].v_pointer = NULL; -#line 33509 "Photo.c" - } -} - - -static gpointer -photo_value_reimport_editable_state_peek_pointer (const GValue* value) -{ -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - return value->data[0].v_pointer; -#line 33519 "Photo.c" -} - - -static gchar* -photo_value_reimport_editable_state_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - if (collect_values[0].v_pointer) { -#line 33531 "Photo.c" - PhotoReimportEditableState * object; - object = collect_values[0].v_pointer; -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - if (object->parent_instance.g_class == NULL) { -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 33538 "Photo.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 33542 "Photo.c" - } -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = photo_reimport_editable_state_ref (object); -#line 33546 "Photo.c" - } else { -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 33550 "Photo.c" - } -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 33554 "Photo.c" -} - - -static gchar* -photo_value_reimport_editable_state_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PhotoReimportEditableState ** object_p; - object_p = collect_values[0].v_pointer; -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - if (!object_p) { -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 33570 "Photo.c" - } -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - if (!value->data[0].v_pointer) { -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = NULL; -#line 33576 "Photo.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = value->data[0].v_pointer; -#line 33580 "Photo.c" - } else { -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = photo_reimport_editable_state_ref (value->data[0].v_pointer); -#line 33584 "Photo.c" - } -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 33588 "Photo.c" -} - - -GParamSpec* -photo_param_spec_reimport_editable_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PhotoParamSpecReimportEditableState* spec; -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (g_type_is_a (object_type, PHOTO_TYPE_REIMPORT_EDITABLE_STATE), NULL); -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - return G_PARAM_SPEC (spec); -#line 33608 "Photo.c" -} - - -gpointer -photo_value_get_reimport_editable_state (const GValue* value) -{ -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_EDITABLE_STATE), NULL); -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - return value->data[0].v_pointer; -#line 33619 "Photo.c" -} - - -void -photo_value_set_reimport_editable_state (GValue* value, - gpointer v_object) -{ - PhotoReimportEditableState * old; -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_EDITABLE_STATE)); -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - old = value->data[0].v_pointer; -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - if (v_object) { -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_EDITABLE_STATE)); -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = v_object; -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_editable_state_ref (value->data[0].v_pointer); -#line 33642 "Photo.c" - } else { -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 33646 "Photo.c" - } -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - if (old) { -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_editable_state_unref (old); -#line 33652 "Photo.c" - } -} - - -void -photo_value_take_reimport_editable_state (GValue* value, - gpointer v_object) -{ - PhotoReimportEditableState * old; -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_EDITABLE_STATE)); -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - old = value->data[0].v_pointer; -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - if (v_object) { -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_EDITABLE_STATE)); -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = v_object; -#line 33674 "Photo.c" - } else { -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 33678 "Photo.c" - } -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - if (old) { -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_editable_state_unref (old); -#line 33684 "Photo.c" - } -} - - -static void -photo_reimport_editable_state_class_init (PhotoReimportEditableStateClass * klass) -{ -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_editable_state_parent_class = g_type_class_peek_parent (klass); -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoReimportEditableStateClass *) klass)->finalize = photo_reimport_editable_state_finalize; -#line 33696 "Photo.c" -} - - -static void -photo_reimport_editable_state_instance_init (PhotoReimportEditableState * self) -{ -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - self->ref_count = 1; -#line 33705 "Photo.c" -} - - -static void -photo_reimport_editable_state_finalize (PhotoReimportEditableState * obj) -{ - PhotoReimportEditableState * self; -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableState); -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_handlers_destroy (self); -#line 33717 "Photo.c" -} - - -GType -photo_reimport_editable_state_get_type (void) -{ - static volatile gsize photo_reimport_editable_state_type_id__volatile = 0; - if (g_once_init_enter (&photo_reimport_editable_state_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { photo_value_reimport_editable_state_init, photo_value_reimport_editable_state_free_value, photo_value_reimport_editable_state_copy_value, photo_value_reimport_editable_state_peek_pointer, "p", photo_value_reimport_editable_state_collect_value, "p", photo_value_reimport_editable_state_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportEditableStateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_editable_state_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportEditableState), 0, (GInstanceInitFunc) photo_reimport_editable_state_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType photo_reimport_editable_state_type_id; - photo_reimport_editable_state_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoReimportEditableState", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&photo_reimport_editable_state_type_id__volatile, photo_reimport_editable_state_type_id); - } - return photo_reimport_editable_state_type_id__volatile; -} - - -gpointer -photo_reimport_editable_state_ref (gpointer instance) -{ - PhotoReimportEditableState * self; - self = instance; -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - g_atomic_int_inc (&self->ref_count); -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - return instance; -#line 33746 "Photo.c" -} - - -void -photo_reimport_editable_state_unref (gpointer instance) -{ - PhotoReimportEditableState * self; - self = instance; -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_REIMPORT_EDITABLE_STATE_GET_CLASS (self)->finalize (self); -#line 1385 "/home/jens/Source/shotwell/src/Photo.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 33761 "Photo.c" - } -} - - -static PhotoReimportEditableStateImpl* -photo_reimport_editable_state_impl_construct (GType object_type, - BackingPhotoRow* backing_state, - PhotoMetadata* metadata) -{ - PhotoReimportEditableStateImpl* self = NULL; - BackingPhotoRow* _tmp0_; - PhotoMetadata* _tmp1_; -#line 1393 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_BACKING_PHOTO_ROW (backing_state), NULL); -#line 1393 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata), NULL); -#line 1393 "/home/jens/Source/shotwell/src/Photo.vala" - self = (PhotoReimportEditableStateImpl*) photo_reimport_editable_state_construct (object_type); -#line 1394 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _backing_photo_row_ref0 (backing_state); -#line 1394 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->backing_state); -#line 1394 "/home/jens/Source/shotwell/src/Photo.vala" - self->backing_state = _tmp0_; -#line 1395 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _media_metadata_ref0 (metadata); -#line 1395 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (self->metadata); -#line 1395 "/home/jens/Source/shotwell/src/Photo.vala" - self->metadata = _tmp1_; -#line 1393 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 33794 "Photo.c" -} - - -static PhotoReimportEditableStateImpl* -photo_reimport_editable_state_impl_new (BackingPhotoRow* backing_state, - PhotoMetadata* metadata) -{ -#line 1393 "/home/jens/Source/shotwell/src/Photo.vala" - return photo_reimport_editable_state_impl_construct (PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, backing_state, metadata); -#line 33804 "Photo.c" -} - - -static void -photo_reimport_editable_state_impl_class_init (PhotoReimportEditableStateImplClass * klass) -{ -#line 1388 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_editable_state_impl_parent_class = g_type_class_peek_parent (klass); -#line 1388 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoReimportEditableStateClass *) klass)->finalize = photo_reimport_editable_state_impl_finalize; -#line 33815 "Photo.c" -} - - -static void -photo_reimport_editable_state_impl_instance_init (PhotoReimportEditableStateImpl * self) -{ - BackingPhotoRow* _tmp0_; -#line 1389 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = backing_photo_row_new (); -#line 1389 "/home/jens/Source/shotwell/src/Photo.vala" - self->backing_state = _tmp0_; -#line 1391 "/home/jens/Source/shotwell/src/Photo.vala" - self->metadata_only = FALSE; -#line 33829 "Photo.c" -} - - -static void -photo_reimport_editable_state_impl_finalize (PhotoReimportEditableState * obj) -{ - PhotoReimportEditableStateImpl * self; -#line 1388 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_EDITABLE_STATE_IMPL, PhotoReimportEditableStateImpl); -#line 1389 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->backing_state); -#line 1390 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (self->metadata); -#line 1388 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_REIMPORT_EDITABLE_STATE_CLASS (photo_reimport_editable_state_impl_parent_class)->finalize (obj); -#line 33845 "Photo.c" -} - - -static GType -photo_reimport_editable_state_impl_get_type (void) -{ - static volatile gsize photo_reimport_editable_state_impl_type_id__volatile = 0; - if (g_once_init_enter (&photo_reimport_editable_state_impl_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportEditableStateImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_editable_state_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportEditableStateImpl), 0, (GInstanceInitFunc) photo_reimport_editable_state_impl_instance_init, NULL }; - GType photo_reimport_editable_state_impl_type_id; - photo_reimport_editable_state_impl_type_id = g_type_register_static (PHOTO_TYPE_REIMPORT_EDITABLE_STATE, "PhotoReimportEditableStateImpl", &g_define_type_info, 0); - g_once_init_leave (&photo_reimport_editable_state_impl_type_id__volatile, photo_reimport_editable_state_impl_type_id); - } - return photo_reimport_editable_state_impl_type_id__volatile; -} - - -PhotoReimportRawDevelopmentState* -photo_reimport_raw_development_state_construct (GType object_type) -{ - PhotoReimportRawDevelopmentState* self = NULL; -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - self = (PhotoReimportRawDevelopmentState*) g_type_create_instance (object_type); -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 33871 "Photo.c" -} - - -static void -photo_value_reimport_raw_development_state_init (GValue* value) -{ -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 33880 "Photo.c" -} - - -static void -photo_value_reimport_raw_development_state_free_value (GValue* value) -{ -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - if (value->data[0].v_pointer) { -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_raw_development_state_unref (value->data[0].v_pointer); -#line 33891 "Photo.c" - } -} - - -static void -photo_value_reimport_raw_development_state_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - if (src_value->data[0].v_pointer) { -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - dest_value->data[0].v_pointer = photo_reimport_raw_development_state_ref (src_value->data[0].v_pointer); -#line 33904 "Photo.c" - } else { -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - dest_value->data[0].v_pointer = NULL; -#line 33908 "Photo.c" - } -} - - -static gpointer -photo_value_reimport_raw_development_state_peek_pointer (const GValue* value) -{ -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - return value->data[0].v_pointer; -#line 33918 "Photo.c" -} - - -static gchar* -photo_value_reimport_raw_development_state_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - if (collect_values[0].v_pointer) { -#line 33930 "Photo.c" - PhotoReimportRawDevelopmentState * object; - object = collect_values[0].v_pointer; -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - if (object->parent_instance.g_class == NULL) { -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 33937 "Photo.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 33941 "Photo.c" - } -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = photo_reimport_raw_development_state_ref (object); -#line 33945 "Photo.c" - } else { -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 33949 "Photo.c" - } -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 33953 "Photo.c" -} - - -static gchar* -photo_value_reimport_raw_development_state_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PhotoReimportRawDevelopmentState ** object_p; - object_p = collect_values[0].v_pointer; -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - if (!object_p) { -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 33969 "Photo.c" - } -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - if (!value->data[0].v_pointer) { -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = NULL; -#line 33975 "Photo.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = value->data[0].v_pointer; -#line 33979 "Photo.c" - } else { -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = photo_reimport_raw_development_state_ref (value->data[0].v_pointer); -#line 33983 "Photo.c" - } -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 33987 "Photo.c" -} - - -GParamSpec* -photo_param_spec_reimport_raw_development_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PhotoParamSpecReimportRawDevelopmentState* spec; -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (g_type_is_a (object_type, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE), NULL); -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - return G_PARAM_SPEC (spec); -#line 34007 "Photo.c" -} - - -gpointer -photo_value_get_reimport_raw_development_state (const GValue* value) -{ -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE), NULL); -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - return value->data[0].v_pointer; -#line 34018 "Photo.c" -} - - -void -photo_value_set_reimport_raw_development_state (GValue* value, - gpointer v_object) -{ - PhotoReimportRawDevelopmentState * old; -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE)); -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - old = value->data[0].v_pointer; -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - if (v_object) { -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE)); -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = v_object; -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_raw_development_state_ref (value->data[0].v_pointer); -#line 34041 "Photo.c" - } else { -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 34045 "Photo.c" - } -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - if (old) { -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_raw_development_state_unref (old); -#line 34051 "Photo.c" - } -} - - -void -photo_value_take_reimport_raw_development_state (GValue* value, - gpointer v_object) -{ - PhotoReimportRawDevelopmentState * old; -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE)); -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - old = value->data[0].v_pointer; -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - if (v_object) { -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE)); -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = v_object; -#line 34073 "Photo.c" - } else { -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 34077 "Photo.c" - } -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - if (old) { -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_raw_development_state_unref (old); -#line 34083 "Photo.c" - } -} - - -static void -photo_reimport_raw_development_state_class_init (PhotoReimportRawDevelopmentStateClass * klass) -{ -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_raw_development_state_parent_class = g_type_class_peek_parent (klass); -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoReimportRawDevelopmentStateClass *) klass)->finalize = photo_reimport_raw_development_state_finalize; -#line 34095 "Photo.c" -} - - -static void -photo_reimport_raw_development_state_instance_init (PhotoReimportRawDevelopmentState * self) -{ -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - self->ref_count = 1; -#line 34104 "Photo.c" -} - - -static void -photo_reimport_raw_development_state_finalize (PhotoReimportRawDevelopmentState * obj) -{ - PhotoReimportRawDevelopmentState * self; -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentState); -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_handlers_destroy (self); -#line 34116 "Photo.c" -} - - -GType -photo_reimport_raw_development_state_get_type (void) -{ - static volatile gsize photo_reimport_raw_development_state_type_id__volatile = 0; - if (g_once_init_enter (&photo_reimport_raw_development_state_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { photo_value_reimport_raw_development_state_init, photo_value_reimport_raw_development_state_free_value, photo_value_reimport_raw_development_state_copy_value, photo_value_reimport_raw_development_state_peek_pointer, "p", photo_value_reimport_raw_development_state_collect_value, "p", photo_value_reimport_raw_development_state_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportRawDevelopmentStateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_raw_development_state_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportRawDevelopmentState), 0, (GInstanceInitFunc) photo_reimport_raw_development_state_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType photo_reimport_raw_development_state_type_id; - photo_reimport_raw_development_state_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoReimportRawDevelopmentState", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&photo_reimport_raw_development_state_type_id__volatile, photo_reimport_raw_development_state_type_id); - } - return photo_reimport_raw_development_state_type_id__volatile; -} - - -gpointer -photo_reimport_raw_development_state_ref (gpointer instance) -{ - PhotoReimportRawDevelopmentState * self; - self = instance; -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - g_atomic_int_inc (&self->ref_count); -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - return instance; -#line 34145 "Photo.c" -} - - -void -photo_reimport_raw_development_state_unref (gpointer instance) -{ - PhotoReimportRawDevelopmentState * self; - self = instance; -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_GET_CLASS (self)->finalize (self); -#line 1399 "/home/jens/Source/shotwell/src/Photo.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 34160 "Photo.c" - } -} - - -static PhotoReimportRawDevelopmentStateImpl* -photo_reimport_raw_development_state_impl_construct (GType object_type) -{ - PhotoReimportRawDevelopmentStateImpl* self = NULL; -#line 1416 "/home/jens/Source/shotwell/src/Photo.vala" - self = (PhotoReimportRawDevelopmentStateImpl*) photo_reimport_raw_development_state_construct (object_type); -#line 1416 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 34173 "Photo.c" -} - - -static PhotoReimportRawDevelopmentStateImpl* -photo_reimport_raw_development_state_impl_new (void) -{ -#line 1416 "/home/jens/Source/shotwell/src/Photo.vala" - return photo_reimport_raw_development_state_impl_construct (PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL); -#line 34182 "Photo.c" -} - - -static void -photo_reimport_raw_development_state_impl_add (PhotoReimportRawDevelopmentStateImpl* self, - BackingPhotoRow* backing, - PhotoMetadata* metadata) -{ - GeeCollection* _tmp0_; - PhotoReimportRawDevelopmentStateImplDevToReimport* _tmp1_; - PhotoReimportRawDevelopmentStateImplDevToReimport* _tmp2_; -#line 1419 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL (self)); -#line 1419 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_BACKING_PHOTO_ROW (backing)); -#line 1419 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 1420 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->list; -#line 1420 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_reimport_raw_development_state_impl_dev_to_reimport_new (backing, metadata); -#line 1420 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 1420 "/home/jens/Source/shotwell/src/Photo.vala" - gee_collection_add (_tmp0_, _tmp2_); -#line 1420 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_reimport_raw_development_state_impl_dev_to_reimport_unref0 (_tmp2_); -#line 34210 "Photo.c" -} - - -static gint -photo_reimport_raw_development_state_impl_get_size (PhotoReimportRawDevelopmentStateImpl* self) -{ - gint result = 0; - GeeCollection* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 1423 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL (self), 0); -#line 1424 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->list; -#line 1424 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = gee_collection_get_size (_tmp0_); -#line 1424 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 1424 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_; -#line 1424 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 34233 "Photo.c" -} - - -static PhotoReimportRawDevelopmentStateImplDevToReimport* -photo_reimport_raw_development_state_impl_dev_to_reimport_construct (GType object_type, - BackingPhotoRow* backing, - PhotoMetadata* metadata) -{ - PhotoReimportRawDevelopmentStateImplDevToReimport* self = NULL; - BackingPhotoRow* _tmp0_; - PhotoMetadata* _tmp1_; -#line 1407 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_BACKING_PHOTO_ROW (backing), NULL); -#line 1407 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata), NULL); -#line 1407 "/home/jens/Source/shotwell/src/Photo.vala" - self = (PhotoReimportRawDevelopmentStateImplDevToReimport*) g_type_create_instance (object_type); -#line 1408 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _backing_photo_row_ref0 (backing); -#line 1408 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->backing); -#line 1408 "/home/jens/Source/shotwell/src/Photo.vala" - self->backing = _tmp0_; -#line 1409 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _media_metadata_ref0 (metadata); -#line 1409 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (self->metadata); -#line 1409 "/home/jens/Source/shotwell/src/Photo.vala" - self->metadata = _tmp1_; -#line 1407 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 34265 "Photo.c" -} - - -static PhotoReimportRawDevelopmentStateImplDevToReimport* -photo_reimport_raw_development_state_impl_dev_to_reimport_new (BackingPhotoRow* backing, - PhotoMetadata* metadata) -{ -#line 1407 "/home/jens/Source/shotwell/src/Photo.vala" - return photo_reimport_raw_development_state_impl_dev_to_reimport_construct (PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, backing, metadata); -#line 34275 "Photo.c" -} - - -static void -photo_reimport_raw_development_state_impl_value_dev_to_reimport_init (GValue* value) -{ -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 34284 "Photo.c" -} - - -static void -photo_reimport_raw_development_state_impl_value_dev_to_reimport_free_value (GValue* value) -{ -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - if (value->data[0].v_pointer) { -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_raw_development_state_impl_dev_to_reimport_unref (value->data[0].v_pointer); -#line 34295 "Photo.c" - } -} - - -static void -photo_reimport_raw_development_state_impl_value_dev_to_reimport_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - if (src_value->data[0].v_pointer) { -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - dest_value->data[0].v_pointer = photo_reimport_raw_development_state_impl_dev_to_reimport_ref (src_value->data[0].v_pointer); -#line 34308 "Photo.c" - } else { -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - dest_value->data[0].v_pointer = NULL; -#line 34312 "Photo.c" - } -} - - -static gpointer -photo_reimport_raw_development_state_impl_value_dev_to_reimport_peek_pointer (const GValue* value) -{ -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - return value->data[0].v_pointer; -#line 34322 "Photo.c" -} - - -static gchar* -photo_reimport_raw_development_state_impl_value_dev_to_reimport_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - if (collect_values[0].v_pointer) { -#line 34334 "Photo.c" - PhotoReimportRawDevelopmentStateImplDevToReimport * object; - object = collect_values[0].v_pointer; -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - if (object->parent_instance.g_class == NULL) { -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 34341 "Photo.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 34345 "Photo.c" - } -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = photo_reimport_raw_development_state_impl_dev_to_reimport_ref (object); -#line 34349 "Photo.c" - } else { -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 34353 "Photo.c" - } -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 34357 "Photo.c" -} - - -static gchar* -photo_reimport_raw_development_state_impl_value_dev_to_reimport_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PhotoReimportRawDevelopmentStateImplDevToReimport ** object_p; - object_p = collect_values[0].v_pointer; -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - if (!object_p) { -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 34373 "Photo.c" - } -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - if (!value->data[0].v_pointer) { -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = NULL; -#line 34379 "Photo.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = value->data[0].v_pointer; -#line 34383 "Photo.c" - } else { -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - *object_p = photo_reimport_raw_development_state_impl_dev_to_reimport_ref (value->data[0].v_pointer); -#line 34387 "Photo.c" - } -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 34391 "Photo.c" -} - - -static GParamSpec* -photo_reimport_raw_development_state_impl_param_spec_dev_to_reimport (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PhotoReimportRawDevelopmentStateImplParamSpecDevToReimport* spec; -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (g_type_is_a (object_type, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT), NULL); -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - return G_PARAM_SPEC (spec); -#line 34411 "Photo.c" -} - - -static gpointer -photo_reimport_raw_development_state_impl_value_get_dev_to_reimport (const GValue* value) -{ -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT), NULL); -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - return value->data[0].v_pointer; -#line 34422 "Photo.c" -} - - -static void -photo_reimport_raw_development_state_impl_value_set_dev_to_reimport (GValue* value, - gpointer v_object) -{ - PhotoReimportRawDevelopmentStateImplDevToReimport * old; -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT)); -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - old = value->data[0].v_pointer; -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - if (v_object) { -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT)); -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = v_object; -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_raw_development_state_impl_dev_to_reimport_ref (value->data[0].v_pointer); -#line 34445 "Photo.c" - } else { -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 34449 "Photo.c" - } -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - if (old) { -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_raw_development_state_impl_dev_to_reimport_unref (old); -#line 34455 "Photo.c" - } -} - - -static void -photo_reimport_raw_development_state_impl_value_take_dev_to_reimport (GValue* value, - gpointer v_object) -{ - PhotoReimportRawDevelopmentStateImplDevToReimport * old; -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT)); -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - old = value->data[0].v_pointer; -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - if (v_object) { -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT)); -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = v_object; -#line 34477 "Photo.c" - } else { -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - value->data[0].v_pointer = NULL; -#line 34481 "Photo.c" - } -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - if (old) { -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_raw_development_state_impl_dev_to_reimport_unref (old); -#line 34487 "Photo.c" - } -} - - -static void -photo_reimport_raw_development_state_impl_dev_to_reimport_class_init (PhotoReimportRawDevelopmentStateImplDevToReimportClass * klass) -{ -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_raw_development_state_impl_dev_to_reimport_parent_class = g_type_class_peek_parent (klass); -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoReimportRawDevelopmentStateImplDevToReimportClass *) klass)->finalize = photo_reimport_raw_development_state_impl_dev_to_reimport_finalize; -#line 34499 "Photo.c" -} - - -static void -photo_reimport_raw_development_state_impl_dev_to_reimport_instance_init (PhotoReimportRawDevelopmentStateImplDevToReimport * self) -{ - BackingPhotoRow* _tmp0_; -#line 1404 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = backing_photo_row_new (); -#line 1404 "/home/jens/Source/shotwell/src/Photo.vala" - self->backing = _tmp0_; -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - self->ref_count = 1; -#line 34513 "Photo.c" -} - - -static void -photo_reimport_raw_development_state_impl_dev_to_reimport_finalize (PhotoReimportRawDevelopmentStateImplDevToReimport * obj) -{ - PhotoReimportRawDevelopmentStateImplDevToReimport * self; -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, PhotoReimportRawDevelopmentStateImplDevToReimport); -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_handlers_destroy (self); -#line 1404 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->backing); -#line 1405 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (self->metadata); -#line 34529 "Photo.c" -} - - -GType -photo_reimport_raw_development_state_impl_dev_to_reimport_get_type (void) -{ - static volatile gsize photo_reimport_raw_development_state_impl_dev_to_reimport_type_id__volatile = 0; - if (g_once_init_enter (&photo_reimport_raw_development_state_impl_dev_to_reimport_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { photo_reimport_raw_development_state_impl_value_dev_to_reimport_init, photo_reimport_raw_development_state_impl_value_dev_to_reimport_free_value, photo_reimport_raw_development_state_impl_value_dev_to_reimport_copy_value, photo_reimport_raw_development_state_impl_value_dev_to_reimport_peek_pointer, "p", photo_reimport_raw_development_state_impl_value_dev_to_reimport_collect_value, "p", photo_reimport_raw_development_state_impl_value_dev_to_reimport_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportRawDevelopmentStateImplDevToReimportClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_raw_development_state_impl_dev_to_reimport_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportRawDevelopmentStateImplDevToReimport), 0, (GInstanceInitFunc) photo_reimport_raw_development_state_impl_dev_to_reimport_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType photo_reimport_raw_development_state_impl_dev_to_reimport_type_id; - photo_reimport_raw_development_state_impl_dev_to_reimport_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoReimportRawDevelopmentStateImplDevToReimport", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&photo_reimport_raw_development_state_impl_dev_to_reimport_type_id__volatile, photo_reimport_raw_development_state_impl_dev_to_reimport_type_id); - } - return photo_reimport_raw_development_state_impl_dev_to_reimport_type_id__volatile; -} - - -static gpointer -photo_reimport_raw_development_state_impl_dev_to_reimport_ref (gpointer instance) -{ - PhotoReimportRawDevelopmentStateImplDevToReimport * self; - self = instance; -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - g_atomic_int_inc (&self->ref_count); -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - return instance; -#line 34558 "Photo.c" -} - - -static void -photo_reimport_raw_development_state_impl_dev_to_reimport_unref (gpointer instance) -{ - PhotoReimportRawDevelopmentStateImplDevToReimport * self; - self = instance; -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_DEV_TO_REIMPORT_GET_CLASS (self)->finalize (self); -#line 1403 "/home/jens/Source/shotwell/src/Photo.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 34573 "Photo.c" - } -} - - -static void -photo_reimport_raw_development_state_impl_class_init (PhotoReimportRawDevelopmentStateImplClass * klass) -{ -#line 1402 "/home/jens/Source/shotwell/src/Photo.vala" - photo_reimport_raw_development_state_impl_parent_class = g_type_class_peek_parent (klass); -#line 1402 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoReimportRawDevelopmentStateClass *) klass)->finalize = photo_reimport_raw_development_state_impl_finalize; -#line 34585 "Photo.c" -} - - -static void -photo_reimport_raw_development_state_impl_instance_init (PhotoReimportRawDevelopmentStateImpl * self) -{ - GeeArrayList* _tmp0_; -#line 1413 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = gee_array_list_new (PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL_TYPE_DEV_TO_REIMPORT, (GBoxedCopyFunc) photo_reimport_raw_development_state_impl_dev_to_reimport_ref, (GDestroyNotify) photo_reimport_raw_development_state_impl_dev_to_reimport_unref, NULL, NULL, NULL); -#line 1413 "/home/jens/Source/shotwell/src/Photo.vala" - self->list = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 1414 "/home/jens/Source/shotwell/src/Photo.vala" - self->metadata_only = FALSE; -#line 34599 "Photo.c" -} - - -static void -photo_reimport_raw_development_state_impl_finalize (PhotoReimportRawDevelopmentState * obj) -{ - PhotoReimportRawDevelopmentStateImpl * self; -#line 1402 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE_IMPL, PhotoReimportRawDevelopmentStateImpl); -#line 1413 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->list); -#line 1402 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_CLASS (photo_reimport_raw_development_state_impl_parent_class)->finalize (obj); -#line 34613 "Photo.c" -} - - -static GType -photo_reimport_raw_development_state_impl_get_type (void) -{ - static volatile gsize photo_reimport_raw_development_state_impl_type_id__volatile = 0; - if (g_once_init_enter (&photo_reimport_raw_development_state_impl_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoReimportRawDevelopmentStateImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_reimport_raw_development_state_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoReimportRawDevelopmentStateImpl), 0, (GInstanceInitFunc) photo_reimport_raw_development_state_impl_instance_init, NULL }; - GType photo_reimport_raw_development_state_impl_type_id; - photo_reimport_raw_development_state_impl_type_id = g_type_register_static (PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, "PhotoReimportRawDevelopmentStateImpl", &g_define_type_info, 0); - g_once_init_leave (&photo_reimport_raw_development_state_impl_type_id__volatile, photo_reimport_raw_development_state_impl_type_id); - } - return photo_reimport_raw_development_state_impl_type_id__volatile; -} - - -static void -photo_class_init (PhotoClass * klass) -{ -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - photo_parent_class = g_type_class_peek_parent (klass); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - g_type_class_add_private (klass, sizeof (PhotoPrivate)); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->notify_editable_replaced = (void (*) (Photo *, GFile*, GFile*)) photo_real_notify_editable_replaced; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->notify_raw_development_modified = (void (*) (Photo *)) photo_real_notify_raw_development_modified; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->notify_baseline_replaced = (void (*) (Photo *)) photo_real_notify_baseline_replaced; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->notify_master_reimported = (void (*) (Photo *, PhotoMetadata*)) photo_real_notify_master_reimported; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->notify_editable_reimported = (void (*) (Photo *, PhotoMetadata*)) photo_real_notify_editable_reimported; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->notify_source_reimported = (void (*) (Photo *, PhotoMetadata*)) photo_real_notify_source_reimported; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->notify_baseline_reimported = (void (*) (Photo *, PhotoMetadata*)) photo_real_notify_baseline_reimported; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((DataSourceClass *) klass)->internal_delete_backing = (gboolean (*) (DataSource *, GError**)) photo_real_internal_delete_backing; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->get_backing_files_state = (BackingFileState** (*) (MediaSource *, int*)) photo_real_get_backing_files_state; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->apply_user_metadata_for_reimport = (void (*) (Photo *, PhotoMetadata*)) photo_real_apply_user_metadata_for_reimport; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) photo_real_get_typename; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) photo_real_get_instance_id; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((DataSourceClass *) klass)->get_source_id = (gchar* (*) (DataSource *)) photo_real_get_source_id; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = (PhotoFileFormat (*) (ThumbnailSource *)) photo_real_get_preferred_thumbnail_format; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((ThumbnailSourceClass *) klass)->create_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) photo_real_create_thumbnail; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->get_file = (GFile* (*) (MediaSource *)) photo_real_get_file; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->get_master_file = (GFile* (*) (MediaSource *)) photo_real_get_master_file; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->get_timestamp = (time_t (*) (MediaSource *)) photo_real_get_timestamp; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->get_event_id = (void (*) (MediaSource *, EventID*)) photo_real_get_event_id; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->get_import_id = (void (*) (MediaSource *, ImportID*)) photo_real_get_import_id; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->get_master_md5 = (gchar* (*) (MediaSource *)) photo_real_get_master_md5; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->get_rating = (Rating (*) (MediaSource *)) photo_real_get_rating; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->set_rating = (void (*) (MediaSource *, Rating)) photo_real_set_rating; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->increase_rating = (void (*) (MediaSource *)) photo_real_increase_rating; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->decrease_rating = (void (*) (MediaSource *)) photo_real_decrease_rating; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((DataSourceClass *) klass)->commit_backlinks = (void (*) (DataSource *, SourceCollection*, const gchar*)) photo_real_commit_backlinks; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->set_event_id = (gboolean (*) (MediaSource *, EventID*)) photo_real_set_event_id; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) photo_real_to_string; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((DataSourceClass *) klass)->equals = (gboolean (*) (DataSource *, DataSource*)) photo_real_equals; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->get_filesize = (guint64 (*) (MediaSource *)) photo_real_get_filesize; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->get_master_filesize = (guint64 (*) (MediaSource *)) photo_real_get_master_filesize; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->get_exposure_time = (time_t (*) (MediaSource *)) photo_real_get_exposure_time; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->get_basename = (gchar* (*) (MediaSource *)) photo_real_get_basename; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->get_title = (gchar* (*) (MediaSource *)) photo_real_get_title; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->get_comment = (gchar* (*) (MediaSource *)) photo_real_get_comment; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->set_title = (void (*) (MediaSource *, const gchar*)) photo_real_set_title; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->set_comment = (gboolean (*) (MediaSource *, const gchar*)) photo_real_set_comment; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->get_dimensions = (void (*) (MediaSource *, PhotoException, Dimensions*)) photo_real_get_dimensions; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoSourceClass *) klass)->get_metadata = (PhotoMetadata* (*) (PhotoSource *)) photo_real_get_metadata; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->rotate = (void (*) (Photo *, Rotation)) photo_real_rotate; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoSourceClass *) klass)->get_pixbuf = (GdkPixbuf* (*) (PhotoSource *, Scaling*, GError**)) photo_real_get_pixbuf; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->has_user_generated_metadata = (gboolean (*) (Photo *)) photo_real_has_user_generated_metadata; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->set_user_metadata_for_export = (void (*) (Photo *, PhotoMetadata*)) photo_real_set_user_metadata_for_export; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->editable_replaced = photo_real_editable_replaced; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->raw_development_modified = photo_real_raw_development_modified; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->baseline_replaced = photo_real_baseline_replaced; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->master_reimported = photo_real_master_reimported; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->editable_reimported = photo_real_editable_reimported; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->baseline_reimported = photo_real_baseline_reimported; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->source_reimported = photo_real_source_reimported; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_photo_get_property; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_photo_set_property; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - G_OBJECT_CLASS (klass)->finalize = photo_finalize; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - photo_signals[PHOTO_EDITABLE_REPLACED_SIGNAL] = g_signal_new ("editable-replaced", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, editable_replaced), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, g_file_get_type (), g_file_get_type ()); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - photo_signals[PHOTO_RAW_DEVELOPMENT_MODIFIED_SIGNAL] = g_signal_new ("raw-development-modified", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, raw_development_modified), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - photo_signals[PHOTO_BASELINE_REPLACED_SIGNAL] = g_signal_new ("baseline-replaced", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, baseline_replaced), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - photo_signals[PHOTO_MASTER_REIMPORTED_SIGNAL] = g_signal_new ("master-reimported", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, master_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__MEDIA_METADATA, G_TYPE_NONE, 1, TYPE_PHOTO_METADATA); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - photo_signals[PHOTO_EDITABLE_REIMPORTED_SIGNAL] = g_signal_new ("editable-reimported", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, editable_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__MEDIA_METADATA, G_TYPE_NONE, 1, TYPE_PHOTO_METADATA); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - photo_signals[PHOTO_BASELINE_REIMPORTED_SIGNAL] = g_signal_new ("baseline-reimported", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, baseline_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__MEDIA_METADATA, G_TYPE_NONE, 1, TYPE_PHOTO_METADATA); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - photo_signals[PHOTO_SOURCE_REIMPORTED_SIGNAL] = g_signal_new ("source-reimported", TYPE_PHOTO, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PhotoClass, source_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__MEDIA_METADATA, G_TYPE_NONE, 1, TYPE_PHOTO_METADATA); -#line 326 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_init (&__lock_photo_source_pixbuf_cache); -#line 34760 "Photo.c" -} - - -static void -photo_dateable_interface_init (DateableIface * iface) -{ -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - photo_dateable_parent_iface = g_type_interface_peek_parent (iface); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - iface->get_exposure_time = (time_t (*) (Dateable *)) photo_real_get_exposure_time; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - iface->set_exposure_time = (void (*) (Dateable *, time_t)) photo_real_set_exposure_time; -#line 34773 "Photo.c" -} - - -static void -photo_instance_init (Photo * self) -{ - BackingPhotoRow* _tmp0_; - PhotoBackingReaders* _tmp1_; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv = PHOTO_GET_PRIVATE (self); -#line 331 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_init (&self->priv->__lock_row); -#line 332 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = backing_photo_row_new (); -#line 332 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->editable = _tmp0_; -#line 333 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_init (&self->priv->__lock_readers); -#line 333 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_backing_readers_new (); -#line 333 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->readers = _tmp1_; -#line 334 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->transformer = NULL; -#line 335 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->adjustments = NULL; -#line 337 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->file_title = NULL; -#line 338 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->editable_monitor = NULL; -#line 339 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->reimport_editable_scheduler = NULL; -#line 340 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->update_editable_attributes_scheduler = NULL; -#line 341 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->remove_editable_scheduler = NULL; -#line 343 "/home/jens/Source/shotwell/src/Photo.vala" - self->can_rotate_now = TRUE; -#line 346 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_init (&self->priv->__lock_developments); -#line 346 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->developments = NULL; -#line 353 "/home/jens/Source/shotwell/src/Photo.vala" - self->backing_photo_row = NULL; -#line 34818 "Photo.c" -} - - -static void -photo_finalize (GObject * obj) -{ - Photo * self; -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO, Photo); -#line 331 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_clear (&self->priv->__lock_row); -#line 331 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_row_unref0 (self->row); -#line 332 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->priv->editable); -#line 333 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_clear (&self->priv->__lock_readers); -#line 333 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_backing_readers_unref0 (self->priv->readers); -#line 334 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformer_unref0 (self->priv->transformer); -#line 335 "/home/jens/Source/shotwell/src/Photo.vala" - _pixel_transformation_bundle_unref0 (self->priv->adjustments); -#line 337 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (self->priv->file_title); -#line 338 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->editable_monitor); -#line 339 "/home/jens/Source/shotwell/src/Photo.vala" - _one_shot_scheduler_unref0 (self->priv->reimport_editable_scheduler); -#line 340 "/home/jens/Source/shotwell/src/Photo.vala" - _one_shot_scheduler_unref0 (self->priv->update_editable_attributes_scheduler); -#line 341 "/home/jens/Source/shotwell/src/Photo.vala" - _one_shot_scheduler_unref0 (self->priv->remove_editable_scheduler); -#line 346 "/home/jens/Source/shotwell/src/Photo.vala" - g_rec_mutex_clear (&self->priv->__lock_developments); -#line 346 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->developments); -#line 353 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (self->backing_photo_row); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - G_OBJECT_CLASS (photo_parent_class)->finalize (obj); -#line 34860 "Photo.c" -} - - -GType -photo_get_type (void) -{ - static volatile gsize photo_type_id__volatile = 0; - if (g_once_init_enter (&photo_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Photo), 0, (GInstanceInitFunc) photo_instance_init, NULL }; - static const GInterfaceInfo dateable_info = { (GInterfaceInitFunc) photo_dateable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType photo_type_id; - photo_type_id = g_type_register_static (TYPE_PHOTO_SOURCE, "Photo", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_type_add_interface_static (photo_type_id, TYPE_DATEABLE, &dateable_info); - g_once_init_leave (&photo_type_id__volatile, photo_type_id); - } - return photo_type_id__volatile; -} - - -static void -_vala_photo_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - Photo * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_PHOTO, Photo); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - switch (property_id) { -#line 34890 "Photo.c" - default: -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 34896 "Photo.c" - } -} - - -static void -_vala_photo_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - Photo * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_PHOTO, Photo); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - switch (property_id) { -#line 34911 "Photo.c" - default: -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 161 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 34917 "Photo.c" - } -} - - -GType -library_photo_source_collection_state_get_type (void) -{ - static volatile gsize library_photo_source_collection_state_type_id__volatile = 0; - if (g_once_init_enter (&library_photo_source_collection_state_type_id__volatile)) { - static const GEnumValue values[] = {{LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_UNKNOWN, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_UNKNOWN", "unknown"}, {LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE", "online"}, {LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE", "offline"}, {LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH", "trash"}, {LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE", "editable"}, {LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER, "LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER", "developer"}, {0, NULL, NULL}}; - GType library_photo_source_collection_state_type_id; - library_photo_source_collection_state_type_id = g_enum_register_static ("LibraryPhotoSourceCollectionState", values); - g_once_init_leave (&library_photo_source_collection_state_type_id__volatile, library_photo_source_collection_state_type_id); - } - return library_photo_source_collection_state_type_id__volatile; -} - - -static guint -_file_hash_gee_hash_data_func (gconstpointer v, - gpointer self) -{ - guint result; - result = file_hash ((GFile*) v); -#line 4483 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 34944 "Photo.c" -} - - -static gboolean -_file_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gboolean result; - result = file_equal ((GFile*) a, (GFile*) b); -#line 4483 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 34957 "Photo.c" -} - - -static gint -_int64_compare_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = int64_compare ((gint64*) a, (gint64*) b); -#line 4487 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 34970 "Photo.c" -} - - -static gint64* -_int64_dup (gint64* self) -{ - gint64* dup; -#line 4487 "/home/jens/Source/shotwell/src/Photo.vala" - dup = g_new0 (gint64, 1); -#line 4487 "/home/jens/Source/shotwell/src/Photo.vala" - memcpy (dup, self, sizeof (gint64)); -#line 4487 "/home/jens/Source/shotwell/src/Photo.vala" - return dup; -#line 34984 "Photo.c" -} - - -static gboolean -_int64_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gboolean result; - result = int64_equal ((gint64*) a, (gint64*) b); -#line 4489 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 34997 "Photo.c" -} - - -static gint64 -_photo_get_photo_key_get_source_database_key (DataSource* source, - gpointer self) -{ - gint64 result; - result = photo_get_photo_key (source); -#line 4509 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 35009 "Photo.c" -} - - -static void -_library_photo_source_collection_on_trashcan_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self) -{ -#line 4511 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_collection_on_trashcan_contents_altered ((LibraryPhotoSourceCollection*) self, added, removed); -#line 35021 "Photo.c" -} - - -static void -_library_photo_source_collection_on_offline_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self) -{ -#line 4512 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_collection_on_offline_contents_altered ((LibraryPhotoSourceCollection*) self, added, removed); -#line 35033 "Photo.c" -} - - -LibraryPhotoSourceCollection* -library_photo_source_collection_construct (GType object_type) -{ - LibraryPhotoSourceCollection* self = NULL; - MediaSourceHoldingTank* _tmp0_; - MediaSourceHoldingTank* _tmp1_; - MediaSourceHoldingTank* _tmp2_; - MediaSourceHoldingTank* _tmp3_; -#line 4509 "/home/jens/Source/shotwell/src/Photo.vala" - self = (LibraryPhotoSourceCollection*) media_source_collection_construct (object_type, "LibraryPhotoSourceCollection", _photo_get_photo_key_get_source_database_key, NULL); -#line 4511 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 4511 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 4511 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), "contents-altered", (GCallback) _library_photo_source_collection_on_trashcan_contents_altered_source_holding_tank_contents_altered, self); -#line 4511 "/home/jens/Source/shotwell/src/Photo.vala" - _source_holding_tank_unref0 (_tmp1_); -#line 4512 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 4512 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_; -#line 4512 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), "contents-altered", (GCallback) _library_photo_source_collection_on_offline_contents_altered_source_holding_tank_contents_altered, self); -#line 4512 "/home/jens/Source/shotwell/src/Photo.vala" - _source_holding_tank_unref0 (_tmp3_); -#line 4508 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 35065 "Photo.c" -} - - -LibraryPhotoSourceCollection* -library_photo_source_collection_new (void) -{ -#line 4508 "/home/jens/Source/shotwell/src/Photo.vala" - return library_photo_source_collection_construct (TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION); -#line 35074 "Photo.c" -} - - -static gboolean -_library_photo_source_collection_check_if_trashed_photo_source_holding_tank_check_to_keep (DataSource* source, - Alteration* alteration, - gpointer self) -{ - gboolean result; - result = library_photo_source_collection_check_if_trashed_photo ((LibraryPhotoSourceCollection*) self, source, alteration); -#line 4516 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 35087 "Photo.c" -} - - -static MediaSourceHoldingTank* -library_photo_source_collection_real_create_trashcan (MediaSourceCollection* base) -{ - LibraryPhotoSourceCollection * self; - MediaSourceHoldingTank* result = NULL; - LibraryPhotoSourceHoldingTank* _tmp0_; -#line 4515 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection); -#line 4516 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = library_photo_source_holding_tank_new (self, _library_photo_source_collection_check_if_trashed_photo_source_holding_tank_check_to_keep, self, _photo_get_photo_key_get_source_database_key, NULL); -#line 4516 "/home/jens/Source/shotwell/src/Photo.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank); -#line 4516 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 35105 "Photo.c" -} - - -static gboolean -_library_photo_source_collection_check_if_offline_photo_source_holding_tank_check_to_keep (DataSource* source, - Alteration* alteration, - gpointer self) -{ - gboolean result; - result = library_photo_source_collection_check_if_offline_photo ((LibraryPhotoSourceCollection*) self, source, alteration); -#line 4520 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 35118 "Photo.c" -} - - -static MediaSourceHoldingTank* -library_photo_source_collection_real_create_offline_bin (MediaSourceCollection* base) -{ - LibraryPhotoSourceCollection * self; - MediaSourceHoldingTank* result = NULL; - LibraryPhotoSourceHoldingTank* _tmp0_; -#line 4519 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection); -#line 4520 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = library_photo_source_holding_tank_new (self, _library_photo_source_collection_check_if_offline_photo_source_holding_tank_check_to_keep, self, _photo_get_photo_key_get_source_database_key, NULL); -#line 4520 "/home/jens/Source/shotwell/src/Photo.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank); -#line 4520 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 35136 "Photo.c" -} - - -static MediaMonitor* -library_photo_source_collection_real_create_media_monitor (MediaSourceCollection* base, - Workers* workers, - GCancellable* cancellable) -{ - LibraryPhotoSourceCollection * self; - MediaMonitor* result = NULL; - PhotoMonitor* _tmp0_; -#line 4523 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection); -#line 4523 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_WORKERS (workers), NULL); -#line 4523 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL); -#line 4524 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_monitor_new (workers, cancellable); -#line 4524 "/home/jens/Source/shotwell/src/Photo.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_MONITOR, MediaMonitor); -#line 4524 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 35160 "Photo.c" -} - - -static gboolean -library_photo_source_collection_real_holds_type_of_source (SourceCollection* base, - DataSource* source) -{ - LibraryPhotoSourceCollection * self; - gboolean result = FALSE; -#line 4527 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection); -#line 4527 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 4528 "/home/jens/Source/shotwell/src/Photo.vala" - result = G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_LIBRARY_PHOTO); -#line 4528 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 35178 "Photo.c" -} - - -static gchar* -library_photo_source_collection_real_get_typename (MediaSourceCollection* base) -{ - LibraryPhotoSourceCollection * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 4531 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection); -#line 4532 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = g_strdup (PHOTO_TYPENAME); -#line 4532 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp0_; -#line 4532 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 35196 "Photo.c" -} - - -static gboolean -library_photo_source_collection_real_is_file_recognized (MediaSourceCollection* base, - GFile* file) -{ - LibraryPhotoSourceCollection * self; - gboolean result = FALSE; -#line 4535 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection); -#line 4535 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 4536 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo_file_format_is_file_supported (file); -#line 4536 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 35214 "Photo.c" -} - - -static void -_library_photo_source_collection_on_editable_replaced_photo_editable_replaced (Photo* _sender, - GFile* old_file, - GFile* new_file, - gpointer self) -{ -#line 4548 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_collection_on_editable_replaced ((LibraryPhotoSourceCollection*) self, _sender, old_file, new_file); -#line 35226 "Photo.c" -} - - -static void -_library_photo_source_collection_on_raw_development_modified_photo_raw_development_modified (Photo* _sender, - gpointer self) -{ -#line 4554 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_collection_on_raw_development_modified ((LibraryPhotoSourceCollection*) self, _sender); -#line 35236 "Photo.c" -} - - -static void -library_photo_source_collection_real_notify_contents_altered (DataCollection* base, - GeeIterable* added, - GeeIterable* removed) -{ - LibraryPhotoSourceCollection * self; -#line 4539 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection); -#line 4539 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added)); -#line 4539 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed)); -#line 4541 "/home/jens/Source/shotwell/src/Photo.vala" - if (added != NULL) { -#line 35254 "Photo.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 4542 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = gee_iterable_iterator (added); -#line 4542 "/home/jens/Source/shotwell/src/Photo.vala" - _object_it = _tmp0_; -#line 4542 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 35264 "Photo.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - LibraryPhoto* photo = NULL; - DataObject* _tmp4_; - LibraryPhoto* _tmp5_; - GFile* editable = NULL; - LibraryPhoto* _tmp6_; - GFile* _tmp7_; - GFile* _tmp8_; - LibraryPhoto* _tmp12_; - GeeCollection* raw_list = NULL; - LibraryPhoto* _tmp13_; - GeeCollection* _tmp14_; - GeeCollection* _tmp15_; - LibraryPhoto* _tmp24_; - gint64 master_filesize = 0LL; - LibraryPhoto* _tmp25_; - BackingPhotoRow* _tmp26_; - BackingPhotoRow* _tmp27_; - gint64 _tmp28_; - gint64 _tmp29_; - gint64 _tmp30_ = 0LL; - LibraryPhoto* _tmp31_; - BackingPhotoRow* _tmp32_; - BackingPhotoRow* _tmp33_; - gboolean _tmp34_; - gint64 editable_filesize = 0LL; - GeeMultiMap* _tmp39_; - gint64 _tmp40_; - LibraryPhoto* _tmp41_; - GeeHashMap* _tmp42_; - LibraryPhoto* _tmp43_; - gint64 _tmp44_; - gint64 _tmp45_; - GeeCollection* raw_rows = NULL; - LibraryPhoto* _tmp52_; - GeeCollection* _tmp53_; - GeeCollection* _tmp54_; -#line 4542 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _object_it; -#line 4542 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 4542 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 35311 "Photo.c" - } -#line 4542 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _object_it; -#line 4542 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 4542 "/home/jens/Source/shotwell/src/Photo.vala" - object = (DataObject*) _tmp3_; -#line 4543 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = object; -#line 4543 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 4543 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp5_; -#line 4545 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo; -#line 4545 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PHOTO, Photo)); -#line 4545 "/home/jens/Source/shotwell/src/Photo.vala" - editable = _tmp7_; -#line 4546 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = editable; -#line 4546 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp8_ != NULL) { -#line 35335 "Photo.c" - GeeHashMap* _tmp9_; - GFile* _tmp10_; - LibraryPhoto* _tmp11_; -#line 4547 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = self->priv->by_editable_file; -#line 4547 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = editable; -#line 4547 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = photo; -#line 4547 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp10_, _tmp11_); -#line 35347 "Photo.c" - } -#line 4548 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = photo; -#line 4548 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PHOTO, Photo), "editable-replaced", (GCallback) _library_photo_source_collection_on_editable_replaced_photo_editable_replaced, self); -#line 4550 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = photo; -#line 4550 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PHOTO, Photo)); -#line 4550 "/home/jens/Source/shotwell/src/Photo.vala" - raw_list = _tmp14_; -#line 4551 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = raw_list; -#line 4551 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp15_ != NULL) { -#line 35363 "Photo.c" - { - GeeIterator* _f_it = NULL; - GeeCollection* _tmp16_; - GeeIterator* _tmp17_; -#line 4552 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = raw_list; -#line 4552 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 4552 "/home/jens/Source/shotwell/src/Photo.vala" - _f_it = _tmp17_; -#line 4552 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 35376 "Photo.c" - GeeIterator* _tmp18_; - GFile* f = NULL; - GeeIterator* _tmp19_; - gpointer _tmp20_; - GeeHashMap* _tmp21_; - GFile* _tmp22_; - LibraryPhoto* _tmp23_; -#line 4552 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _f_it; -#line 4552 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp18_)) { -#line 4552 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 35390 "Photo.c" - } -#line 4552 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = _f_it; -#line 4552 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = gee_iterator_get (_tmp19_); -#line 4552 "/home/jens/Source/shotwell/src/Photo.vala" - f = (GFile*) _tmp20_; -#line 4553 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = self->priv->by_raw_development_file; -#line 4553 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = f; -#line 4553 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = photo; -#line 4553 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp22_, _tmp23_); -#line 4552 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (f); -#line 35408 "Photo.c" - } -#line 4552 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_f_it); -#line 35412 "Photo.c" - } - } -#line 4554 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = photo; -#line 4554 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_PHOTO, Photo), "raw-development-modified", (GCallback) _library_photo_source_collection_on_raw_development_modified_photo_raw_development_modified, self); -#line 4556 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = photo; -#line 4556 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = photo_get_master_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_PHOTO, Photo)); -#line 4556 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = _tmp26_; -#line 4556 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = _tmp27_->filesize; -#line 4556 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = _tmp28_; -#line 4556 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp27_); -#line 4556 "/home/jens/Source/shotwell/src/Photo.vala" - master_filesize = _tmp29_; -#line 4557 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = photo; -#line 4557 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_PHOTO, Photo)); -#line 4557 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = _tmp32_; -#line 4557 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = _tmp33_ != NULL; -#line 4557 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp33_); -#line 4557 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp34_) { -#line 35445 "Photo.c" - LibraryPhoto* _tmp35_; - BackingPhotoRow* _tmp36_; - BackingPhotoRow* _tmp37_; - gint64 _tmp38_; -#line 4558 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = photo; -#line 4558 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_PHOTO, Photo)); -#line 4558 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = _tmp36_; -#line 4558 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = _tmp37_->filesize; -#line 4558 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = _tmp38_; -#line 4558 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp37_); -#line 35462 "Photo.c" - } else { -#line 4559 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = (gint64) -1; -#line 35466 "Photo.c" - } -#line 4557 "/home/jens/Source/shotwell/src/Photo.vala" - editable_filesize = _tmp30_; -#line 4560 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = self->priv->filesize_to_photo; -#line 4560 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = master_filesize; -#line 4560 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = photo; -#line 4560 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_set (_tmp39_, &_tmp40_, _tmp41_); -#line 4561 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = self->priv->photo_to_master_filesize; -#line 4561 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = photo; -#line 4561 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = master_filesize; -#line 4561 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp43_, &_tmp44_); -#line 4562 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = editable_filesize; -#line 4562 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp45_ >= ((gint64) 0)) { -#line 35490 "Photo.c" - GeeMultiMap* _tmp46_; - gint64 _tmp47_; - LibraryPhoto* _tmp48_; - GeeHashMap* _tmp49_; - LibraryPhoto* _tmp50_; - gint64 _tmp51_; -#line 4563 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = self->priv->filesize_to_photo; -#line 4563 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = editable_filesize; -#line 4563 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = photo; -#line 4563 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_set (_tmp46_, &_tmp47_, _tmp48_); -#line 4564 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = self->priv->photo_to_editable_filesize; -#line 4564 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = photo; -#line 4564 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp51_ = editable_filesize; -#line 4564 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp50_, &_tmp51_); -#line 35513 "Photo.c" - } -#line 4567 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp52_ = photo; -#line 4567 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp53_ = photo_get_raw_development_photo_rows (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, TYPE_PHOTO, Photo)); -#line 4567 "/home/jens/Source/shotwell/src/Photo.vala" - raw_rows = _tmp53_; -#line 4568 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp54_ = raw_rows; -#line 4568 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp54_ != NULL) { -#line 35525 "Photo.c" - { - GeeIterator* _row_it = NULL; - GeeCollection* _tmp55_; - GeeIterator* _tmp56_; -#line 4569 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp55_ = raw_rows; -#line 4569 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp56_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 4569 "/home/jens/Source/shotwell/src/Photo.vala" - _row_it = _tmp56_; -#line 4569 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 35538 "Photo.c" - GeeIterator* _tmp57_; - BackingPhotoRow* row = NULL; - GeeIterator* _tmp58_; - gpointer _tmp59_; - BackingPhotoRow* _tmp60_; - gint64 _tmp61_; -#line 4569 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_ = _row_it; -#line 4569 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp57_)) { -#line 4569 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 35551 "Photo.c" - } -#line 4569 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp58_ = _row_it; -#line 4569 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp59_ = gee_iterator_get (_tmp58_); -#line 4569 "/home/jens/Source/shotwell/src/Photo.vala" - row = (BackingPhotoRow*) _tmp59_; -#line 4570 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp60_ = row; -#line 4570 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp61_ = _tmp60_->filesize; -#line 4570 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp61_ >= ((gint64) 0)) { -#line 35565 "Photo.c" - GeeMultiMap* _tmp62_; - BackingPhotoRow* _tmp63_; - gint64 _tmp64_; - LibraryPhoto* _tmp65_; - GeeMultiMap* _tmp66_; - LibraryPhoto* _tmp67_; - BackingPhotoRow* _tmp68_; - gint64 _tmp69_; -#line 4571 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp62_ = self->priv->filesize_to_photo; -#line 4571 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp63_ = row; -#line 4571 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp64_ = _tmp63_->filesize; -#line 4571 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp65_ = photo; -#line 4571 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_set (_tmp62_, &_tmp64_, _tmp65_); -#line 4572 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp66_ = self->priv->photo_to_raw_development_filesize; -#line 4572 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp67_ = photo; -#line 4572 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp68_ = row; -#line 4572 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp69_ = _tmp68_->filesize; -#line 4572 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_set (_tmp66_, _tmp67_, &_tmp69_); -#line 35594 "Photo.c" - } -#line 4569 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (row); -#line 35598 "Photo.c" - } -#line 4569 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_row_it); -#line 35602 "Photo.c" - } - } -#line 4542 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (raw_rows); -#line 4542 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (raw_list); -#line 4542 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (editable); -#line 4542 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 4542 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (object); -#line 35615 "Photo.c" - } -#line 4542 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_object_it); -#line 35619 "Photo.c" - } - } -#line 4579 "/home/jens/Source/shotwell/src/Photo.vala" - if (removed != NULL) { -#line 35624 "Photo.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp70_; -#line 4580 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp70_ = gee_iterable_iterator (removed); -#line 4580 "/home/jens/Source/shotwell/src/Photo.vala" - _object_it = _tmp70_; -#line 4580 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 35634 "Photo.c" - GeeIterator* _tmp71_; - DataObject* object = NULL; - GeeIterator* _tmp72_; - gpointer _tmp73_; - LibraryPhoto* photo = NULL; - DataObject* _tmp74_; - LibraryPhoto* _tmp75_; - GFile* editable = NULL; - LibraryPhoto* _tmp76_; - GFile* _tmp77_; - GFile* _tmp78_; - LibraryPhoto* _tmp86_; - guint _tmp87_; - GeeCollection* raw_list = NULL; - LibraryPhoto* _tmp88_; - GeeCollection* _tmp89_; - GeeCollection* _tmp90_; - LibraryPhoto* _tmp98_; - guint _tmp99_; - gint64 master_filesize = 0LL; - LibraryPhoto* _tmp100_; - BackingPhotoRow* _tmp101_; - BackingPhotoRow* _tmp102_; - gint64 _tmp103_; - gint64 _tmp104_; - gint64 _tmp105_ = 0LL; - LibraryPhoto* _tmp106_; - BackingPhotoRow* _tmp107_; - BackingPhotoRow* _tmp108_; - gboolean _tmp109_; - gint64 editable_filesize = 0LL; - GeeMultiMap* _tmp114_; - gint64 _tmp115_; - LibraryPhoto* _tmp116_; - GeeHashMap* _tmp117_; - LibraryPhoto* _tmp118_; - gint64 _tmp119_; - GeeCollection* raw_rows = NULL; - LibraryPhoto* _tmp125_; - GeeCollection* _tmp126_; - GeeCollection* _tmp127_; -#line 4580 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp71_ = _object_it; -#line 4580 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp71_)) { -#line 4580 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 35682 "Photo.c" - } -#line 4580 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp72_ = _object_it; -#line 4580 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp73_ = gee_iterator_get (_tmp72_); -#line 4580 "/home/jens/Source/shotwell/src/Photo.vala" - object = (DataObject*) _tmp73_; -#line 4581 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp74_ = object; -#line 4581 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp75_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 4581 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp75_; -#line 4583 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp76_ = photo; -#line 4583 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp77_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, TYPE_PHOTO, Photo)); -#line 4583 "/home/jens/Source/shotwell/src/Photo.vala" - editable = _tmp77_; -#line 4584 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp78_ = editable; -#line 4584 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp78_ != NULL) { -#line 35706 "Photo.c" - gboolean is_removed = FALSE; - GeeHashMap* _tmp79_; - LibraryPhoto* _tmp80_; - GFile* _tmp81_; - GFile* _tmp82_; - gboolean _tmp83_; - gboolean _tmp84_; - gboolean _tmp85_; -#line 4585 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp79_ = self->priv->by_editable_file; -#line 4585 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp80_ = photo; -#line 4585 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp81_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, TYPE_PHOTO, Photo)); -#line 4585 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp82_ = _tmp81_; -#line 4585 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp83_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp79_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp82_, NULL); -#line 4585 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp84_ = _tmp83_; -#line 4585 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp82_); -#line 4585 "/home/jens/Source/shotwell/src/Photo.vala" - is_removed = _tmp84_; -#line 4586 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp85_ = is_removed; -#line 4586 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (_tmp85_, "is_removed"); -#line 35735 "Photo.c" - } -#line 4588 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp86_ = photo; -#line 4588 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_parse_name ("editable-replaced", TYPE_PHOTO, &_tmp87_, NULL, FALSE); -#line 4588 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp86_, TYPE_PHOTO, Photo), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp87_, 0, NULL, (GCallback) _library_photo_source_collection_on_editable_replaced_photo_editable_replaced, self); -#line 4590 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp88_ = photo; -#line 4590 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp89_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, TYPE_PHOTO, Photo)); -#line 4590 "/home/jens/Source/shotwell/src/Photo.vala" - raw_list = _tmp89_; -#line 4591 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp90_ = raw_list; -#line 4591 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp90_ != NULL) { -#line 35753 "Photo.c" - { - GeeIterator* _f_it = NULL; - GeeCollection* _tmp91_; - GeeIterator* _tmp92_; -#line 4592 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp91_ = raw_list; -#line 4592 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp92_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp91_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 4592 "/home/jens/Source/shotwell/src/Photo.vala" - _f_it = _tmp92_; -#line 4592 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 35766 "Photo.c" - GeeIterator* _tmp93_; - GFile* f = NULL; - GeeIterator* _tmp94_; - gpointer _tmp95_; - GeeHashMap* _tmp96_; - GFile* _tmp97_; -#line 4592 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp93_ = _f_it; -#line 4592 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp93_)) { -#line 4592 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 35779 "Photo.c" - } -#line 4592 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp94_ = _f_it; -#line 4592 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp95_ = gee_iterator_get (_tmp94_); -#line 4592 "/home/jens/Source/shotwell/src/Photo.vala" - f = (GFile*) _tmp95_; -#line 4593 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp96_ = self->priv->by_raw_development_file; -#line 4593 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp97_ = f; -#line 4593 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp96_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp97_, NULL); -#line 4592 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (f); -#line 35795 "Photo.c" - } -#line 4592 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_f_it); -#line 35799 "Photo.c" - } - } -#line 4594 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp98_ = photo; -#line 4594 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_parse_name ("raw-development-modified", TYPE_PHOTO, &_tmp99_, NULL, FALSE); -#line 4594 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp98_, TYPE_PHOTO, Photo), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp99_, 0, NULL, (GCallback) _library_photo_source_collection_on_raw_development_modified_photo_raw_development_modified, self); -#line 4596 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp100_ = photo; -#line 4596 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp101_ = photo_get_master_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp100_, TYPE_PHOTO, Photo)); -#line 4596 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp102_ = _tmp101_; -#line 4596 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp103_ = _tmp102_->filesize; -#line 4596 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp104_ = _tmp103_; -#line 4596 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp102_); -#line 4596 "/home/jens/Source/shotwell/src/Photo.vala" - master_filesize = _tmp104_; -#line 4597 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp106_ = photo; -#line 4597 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp107_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp106_, TYPE_PHOTO, Photo)); -#line 4597 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp108_ = _tmp107_; -#line 4597 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp109_ = _tmp108_ != NULL; -#line 4597 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp108_); -#line 4597 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp109_) { -#line 35834 "Photo.c" - LibraryPhoto* _tmp110_; - BackingPhotoRow* _tmp111_; - BackingPhotoRow* _tmp112_; - gint64 _tmp113_; -#line 4598 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp110_ = photo; -#line 4598 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp111_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp110_, TYPE_PHOTO, Photo)); -#line 4598 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp112_ = _tmp111_; -#line 4598 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp113_ = _tmp112_->filesize; -#line 4598 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp105_ = _tmp113_; -#line 4598 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp112_); -#line 35851 "Photo.c" - } else { -#line 4599 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp105_ = (gint64) -1; -#line 35855 "Photo.c" - } -#line 4597 "/home/jens/Source/shotwell/src/Photo.vala" - editable_filesize = _tmp105_; -#line 4600 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp114_ = self->priv->filesize_to_photo; -#line 4600 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp115_ = master_filesize; -#line 4600 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp116_ = photo; -#line 4600 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_remove (_tmp114_, &_tmp115_, _tmp116_); -#line 4601 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp117_ = self->priv->photo_to_master_filesize; -#line 4601 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp118_ = photo; -#line 4601 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp117_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp118_, NULL); -#line 4602 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp119_ = editable_filesize; -#line 4602 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp119_ >= ((gint64) 0)) { -#line 35877 "Photo.c" - GeeMultiMap* _tmp120_; - gint64 _tmp121_; - LibraryPhoto* _tmp122_; - GeeHashMap* _tmp123_; - LibraryPhoto* _tmp124_; -#line 4603 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp120_ = self->priv->filesize_to_photo; -#line 4603 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp121_ = editable_filesize; -#line 4603 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp122_ = photo; -#line 4603 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_remove (_tmp120_, &_tmp121_, _tmp122_); -#line 4604 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp123_ = self->priv->photo_to_editable_filesize; -#line 4604 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp124_ = photo; -#line 4604 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp123_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp124_, NULL); -#line 35897 "Photo.c" - } -#line 4607 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp125_ = photo; -#line 4607 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp126_ = photo_get_raw_development_photo_rows (G_TYPE_CHECK_INSTANCE_CAST (_tmp125_, TYPE_PHOTO, Photo)); -#line 4607 "/home/jens/Source/shotwell/src/Photo.vala" - raw_rows = _tmp126_; -#line 4608 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp127_ = raw_rows; -#line 4608 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp127_ != NULL) { -#line 35909 "Photo.c" - { - GeeIterator* _row_it = NULL; - GeeCollection* _tmp128_; - GeeIterator* _tmp129_; -#line 4609 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp128_ = raw_rows; -#line 4609 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp129_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp128_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 4609 "/home/jens/Source/shotwell/src/Photo.vala" - _row_it = _tmp129_; -#line 4609 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 35922 "Photo.c" - GeeIterator* _tmp130_; - BackingPhotoRow* row = NULL; - GeeIterator* _tmp131_; - gpointer _tmp132_; - BackingPhotoRow* _tmp133_; - gint64 _tmp134_; -#line 4609 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp130_ = _row_it; -#line 4609 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp130_)) { -#line 4609 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 35935 "Photo.c" - } -#line 4609 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp131_ = _row_it; -#line 4609 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp132_ = gee_iterator_get (_tmp131_); -#line 4609 "/home/jens/Source/shotwell/src/Photo.vala" - row = (BackingPhotoRow*) _tmp132_; -#line 4610 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp133_ = row; -#line 4610 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp134_ = _tmp133_->filesize; -#line 4610 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp134_ >= ((gint64) 0)) { -#line 35949 "Photo.c" - GeeMultiMap* _tmp135_; - BackingPhotoRow* _tmp136_; - gint64 _tmp137_; - LibraryPhoto* _tmp138_; - GeeMultiMap* _tmp139_; - LibraryPhoto* _tmp140_; - BackingPhotoRow* _tmp141_; - gint64 _tmp142_; -#line 4611 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp135_ = self->priv->filesize_to_photo; -#line 4611 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp136_ = row; -#line 4611 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp137_ = _tmp136_->filesize; -#line 4611 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp138_ = photo; -#line 4611 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_remove (_tmp135_, &_tmp137_, _tmp138_); -#line 4612 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp139_ = self->priv->photo_to_raw_development_filesize; -#line 4612 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp140_ = photo; -#line 4612 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp141_ = row; -#line 4612 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp142_ = _tmp141_->filesize; -#line 4612 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_remove (_tmp139_, _tmp140_, &_tmp142_); -#line 35978 "Photo.c" - } -#line 4609 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (row); -#line 35982 "Photo.c" - } -#line 4609 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_row_it); -#line 35986 "Photo.c" - } - } -#line 4580 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (raw_rows); -#line 4580 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (raw_list); -#line 4580 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (editable); -#line 4580 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 4580 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (object); -#line 35999 "Photo.c" - } -#line 4580 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_object_it); -#line 36003 "Photo.c" - } - } -#line 4619 "/home/jens/Source/shotwell/src/Photo.vala" - DATA_COLLECTION_CLASS (library_photo_source_collection_parent_class)->notify_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), TYPE_DATA_COLLECTION, DataCollection), added, removed); -#line 36008 "Photo.c" -} - - -static void -library_photo_source_collection_on_editable_replaced (LibraryPhotoSourceCollection* self, - Photo* photo, - GFile* old_file, - GFile* new_file) -{ -#line 4622 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self)); -#line 4622 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 4622 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((old_file == NULL) || G_IS_FILE (old_file)); -#line 4622 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((new_file == NULL) || G_IS_FILE (new_file)); -#line 4623 "/home/jens/Source/shotwell/src/Photo.vala" - if (old_file != NULL) { -#line 36028 "Photo.c" - gboolean is_removed = FALSE; - GeeHashMap* _tmp0_; - gboolean _tmp1_; - gboolean _tmp2_; -#line 4624 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->by_editable_file; -#line 4624 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), old_file, NULL); -#line 4624 "/home/jens/Source/shotwell/src/Photo.vala" - is_removed = _tmp1_; -#line 4625 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = is_removed; -#line 4625 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (_tmp2_, "is_removed"); -#line 36043 "Photo.c" - } -#line 4628 "/home/jens/Source/shotwell/src/Photo.vala" - if (new_file != NULL) { -#line 36047 "Photo.c" - GeeHashMap* _tmp3_; -#line 4629 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->by_editable_file; -#line 4629 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), new_file, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 36053 "Photo.c" - } -} - - -static void -library_photo_source_collection_on_raw_development_modified (LibraryPhotoSourceCollection* self, - Photo* _photo) -{ - LibraryPhoto* photo = NULL; - LibraryPhoto* _tmp0_; - LibraryPhoto* _tmp1_; - GeeMultiMap* _tmp2_; - LibraryPhoto* _tmp3_; - GeeCollection* raw_list = NULL; - LibraryPhoto* _tmp20_; - GeeCollection* _tmp21_; - GeeCollection* _tmp22_; - GeeCollection* raw_rows = NULL; - LibraryPhoto* _tmp31_; - GeeCollection* _tmp32_; - GeeCollection* _tmp33_; -#line 4632 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self)); -#line 4632 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (_photo)); -#line 4633 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_photo, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _photo) : NULL); -#line 4633 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp0_; -#line 4634 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo; -#line 4634 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ == NULL) { -#line 4635 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 4635 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 36091 "Photo.c" - } -#line 4638 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->photo_to_raw_development_filesize; -#line 4638 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo; -#line 4638 "/home/jens/Source/shotwell/src/Photo.vala" - if (gee_multi_map_contains (_tmp2_, _tmp3_)) { -#line 36099 "Photo.c" - GeeMultiMap* _tmp18_; - LibraryPhoto* _tmp19_; - { - GeeIterator* _s_it = NULL; - GeeMultiMap* _tmp4_; - LibraryPhoto* _tmp5_; - GeeCollection* _tmp6_; - GeeCollection* _tmp7_; - GeeIterator* _tmp8_; - GeeIterator* _tmp9_; -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->priv->photo_to_raw_development_filesize; -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = photo; -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = gee_multi_map_get (_tmp4_, _tmp5_); -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_; -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_; -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp7_); -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - _s_it = _tmp9_; -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 36128 "Photo.c" - GeeIterator* _tmp10_; - gint64 s = 0LL; - GeeIterator* _tmp11_; - gpointer _tmp12_; - gint64* _tmp13_; - gint64 _tmp14_; - GeeMultiMap* _tmp15_; - gint64 _tmp16_; - LibraryPhoto* _tmp17_; -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _s_it; -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp10_)) { -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 36144 "Photo.c" - } -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _s_it; -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = gee_iterator_get (_tmp11_); -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = (gint64*) _tmp12_; -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = *_tmp13_; -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp13_); -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - s = _tmp14_; -#line 4640 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = self->priv->filesize_to_photo; -#line 4640 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = s; -#line 4640 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = photo; -#line 4640 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_remove (_tmp15_, &_tmp16_, _tmp17_); -#line 36166 "Photo.c" - } -#line 4639 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_s_it); -#line 36170 "Photo.c" - } -#line 4641 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = self->priv->photo_to_raw_development_filesize; -#line 4641 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = photo; -#line 4641 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_remove_all (_tmp18_, _tmp19_); -#line 36178 "Photo.c" - } -#line 4645 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = photo; -#line 4645 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PHOTO, Photo)); -#line 4645 "/home/jens/Source/shotwell/src/Photo.vala" - raw_list = _tmp21_; -#line 4646 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = raw_list; -#line 4646 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp22_ != NULL) { -#line 36190 "Photo.c" - { - GeeIterator* _f_it = NULL; - GeeCollection* _tmp23_; - GeeIterator* _tmp24_; -#line 4647 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = raw_list; -#line 4647 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 4647 "/home/jens/Source/shotwell/src/Photo.vala" - _f_it = _tmp24_; -#line 4647 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 36203 "Photo.c" - GeeIterator* _tmp25_; - GFile* f = NULL; - GeeIterator* _tmp26_; - gpointer _tmp27_; - GeeHashMap* _tmp28_; - GFile* _tmp29_; - LibraryPhoto* _tmp30_; -#line 4647 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = _f_it; -#line 4647 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp25_)) { -#line 4647 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 36217 "Photo.c" - } -#line 4647 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = _f_it; -#line 4647 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = gee_iterator_get (_tmp26_); -#line 4647 "/home/jens/Source/shotwell/src/Photo.vala" - f = (GFile*) _tmp27_; -#line 4648 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = self->priv->by_raw_development_file; -#line 4648 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = f; -#line 4648 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = photo; -#line 4648 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp29_, _tmp30_); -#line 4647 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (f); -#line 36235 "Photo.c" - } -#line 4647 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_f_it); -#line 36239 "Photo.c" - } - } -#line 4650 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = photo; -#line 4650 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = photo_get_raw_development_photo_rows (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_PHOTO, Photo)); -#line 4650 "/home/jens/Source/shotwell/src/Photo.vala" - raw_rows = _tmp32_; -#line 4651 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = raw_rows; -#line 4651 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp33_ != NULL) { -#line 36252 "Photo.c" - { - GeeIterator* _row_it = NULL; - GeeCollection* _tmp34_; - GeeIterator* _tmp35_; -#line 4652 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = raw_rows; -#line 4652 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 4652 "/home/jens/Source/shotwell/src/Photo.vala" - _row_it = _tmp35_; -#line 4652 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 36265 "Photo.c" - GeeIterator* _tmp36_; - BackingPhotoRow* row = NULL; - GeeIterator* _tmp37_; - gpointer _tmp38_; - BackingPhotoRow* _tmp39_; - gint64 _tmp40_; -#line 4652 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = _row_it; -#line 4652 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp36_)) { -#line 4652 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 36278 "Photo.c" - } -#line 4652 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = _row_it; -#line 4652 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = gee_iterator_get (_tmp37_); -#line 4652 "/home/jens/Source/shotwell/src/Photo.vala" - row = (BackingPhotoRow*) _tmp38_; -#line 4653 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = row; -#line 4653 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = _tmp39_->filesize; -#line 4653 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp40_ > ((gint64) 0)) { -#line 36292 "Photo.c" - GeeMultiMap* _tmp41_; - BackingPhotoRow* _tmp42_; - gint64 _tmp43_; - LibraryPhoto* _tmp44_; - GeeMultiMap* _tmp45_; - LibraryPhoto* _tmp46_; - BackingPhotoRow* _tmp47_; - gint64 _tmp48_; -#line 4654 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = self->priv->filesize_to_photo; -#line 4654 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = row; -#line 4654 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = _tmp42_->filesize; -#line 4654 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = photo; -#line 4654 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_set (_tmp41_, &_tmp43_, _tmp44_); -#line 4655 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = self->priv->photo_to_raw_development_filesize; -#line 4655 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = photo; -#line 4655 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = row; -#line 4655 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = _tmp47_->filesize; -#line 4655 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_set (_tmp45_, _tmp46_, &_tmp48_); -#line 36321 "Photo.c" - } -#line 4652 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (row); -#line 36325 "Photo.c" - } -#line 4652 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_row_it); -#line 36329 "Photo.c" - } - } -#line 4632 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (raw_rows); -#line 4632 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (raw_list); -#line 4632 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 36338 "Photo.c" -} - - -static gpointer -__int64_dup0 (gpointer self) -{ -#line 4671 "/home/jens/Source/shotwell/src/Photo.vala" - return self ? _int64_dup (self) : NULL; -#line 36347 "Photo.c" -} - - -static void -library_photo_source_collection_real_items_altered (DataCollection* base, - GeeMap* items) -{ - LibraryPhotoSourceCollection * self; -#line 4661 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection); -#line 4661 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (GEE_IS_MAP (items)); -#line 36360 "Photo.c" - { - GeeIterator* _object_it = NULL; - GeeSet* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = gee_map_get_keys (items); -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp2_); -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - _object_it = _tmp4_; -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 36384 "Photo.c" - GeeIterator* _tmp5_; - DataObject* object = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - Alteration* alteration = NULL; - DataObject* _tmp8_; - gpointer _tmp9_; - LibraryPhoto* photo = NULL; - DataObject* _tmp10_; - LibraryPhoto* _tmp11_; - gboolean _tmp12_ = FALSE; - Alteration* _tmp13_; -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _object_it; -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 36403 "Photo.c" - } -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _object_it; -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - object = (DataObject*) _tmp7_; -#line 4663 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = object; -#line 4663 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = gee_map_get (items, _tmp8_); -#line 4663 "/home/jens/Source/shotwell/src/Photo.vala" - alteration = (Alteration*) _tmp9_; -#line 4665 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = object; -#line 4665 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 4665 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp11_; -#line 4667 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = alteration; -#line 4667 "/home/jens/Source/shotwell/src/Photo.vala" - if (alteration_has_detail (_tmp13_, "image", "master")) { -#line 4667 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = TRUE; -#line 36429 "Photo.c" - } else { - Alteration* _tmp14_; -#line 4667 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = alteration; -#line 4667 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = alteration_has_detail (_tmp14_, "image", "editable"); -#line 36436 "Photo.c" - } -#line 4667 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp12_) { -#line 36440 "Photo.c" - gint64 old_master_filesize = 0LL; - GeeHashMap* _tmp15_; - LibraryPhoto* _tmp16_; - gpointer _tmp17_; - gint64* _tmp18_; - gint64 _tmp19_; - gint64* _tmp20_ = NULL; - GeeHashMap* _tmp21_; - LibraryPhoto* _tmp22_; - gint64 old_editable_filesize = 0LL; - GeeHashMap* _tmp28_; - LibraryPhoto* _tmp29_; - GeeMultiMap* _tmp30_; - gint64 _tmp31_; - LibraryPhoto* _tmp32_; - gint64 _tmp33_; - gint64 master_filesize = 0LL; - LibraryPhoto* _tmp39_; - BackingPhotoRow* _tmp40_; - BackingPhotoRow* _tmp41_; - gint64 _tmp42_; - gint64 _tmp43_; - gint64 _tmp44_ = 0LL; - LibraryPhoto* _tmp45_; - BackingPhotoRow* _tmp46_; - BackingPhotoRow* _tmp47_; - gboolean _tmp48_; - gint64 editable_filesize = 0LL; - GeeHashMap* _tmp53_; - LibraryPhoto* _tmp54_; - gint64 _tmp55_; - GeeMultiMap* _tmp56_; - gint64 _tmp57_; - LibraryPhoto* _tmp58_; - gint64 _tmp59_; -#line 4668 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = self->priv->photo_to_master_filesize; -#line 4668 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = photo; -#line 4668 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp16_); -#line 4668 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = (gint64*) _tmp17_; -#line 4668 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = *_tmp18_; -#line 4668 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp18_); -#line 4668 "/home/jens/Source/shotwell/src/Photo.vala" - old_master_filesize = _tmp19_; -#line 4669 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = self->priv->photo_to_editable_filesize; -#line 4669 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = photo; -#line 4669 "/home/jens/Source/shotwell/src/Photo.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp22_)) { -#line 36496 "Photo.c" - GeeHashMap* _tmp23_; - LibraryPhoto* _tmp24_; - gpointer _tmp25_; -#line 4670 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = self->priv->photo_to_editable_filesize; -#line 4670 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = photo; -#line 4670 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp24_); -#line 4670 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp20_); -#line 4670 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = (gint64*) _tmp25_; -#line 36510 "Photo.c" - } else { - gint64 _tmp26_; - gint64* _tmp27_; -#line 4671 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = (gint64) -1; -#line 4671 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = __int64_dup0 (&_tmp26_); -#line 4671 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp20_); -#line 4671 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = _tmp27_; -#line 36522 "Photo.c" - } -#line 4669 "/home/jens/Source/shotwell/src/Photo.vala" - old_editable_filesize = *_tmp20_; -#line 4673 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = self->priv->photo_to_master_filesize; -#line 4673 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = photo; -#line 4673 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp29_, NULL); -#line 4674 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = self->priv->filesize_to_photo; -#line 4674 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = old_master_filesize; -#line 4674 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = photo; -#line 4674 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_remove (_tmp30_, &_tmp31_, _tmp32_); -#line 4675 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = old_editable_filesize; -#line 4675 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp33_ >= ((gint64) 0)) { -#line 36544 "Photo.c" - GeeHashMap* _tmp34_; - LibraryPhoto* _tmp35_; - GeeMultiMap* _tmp36_; - gint64 _tmp37_; - LibraryPhoto* _tmp38_; -#line 4676 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = self->priv->photo_to_editable_filesize; -#line 4676 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = photo; -#line 4676 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp35_, NULL); -#line 4677 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = self->priv->filesize_to_photo; -#line 4677 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = old_editable_filesize; -#line 4677 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = photo; -#line 4677 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_remove (_tmp36_, &_tmp37_, _tmp38_); -#line 36564 "Photo.c" - } -#line 4680 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = photo; -#line 4680 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = photo_get_master_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_PHOTO, Photo)); -#line 4680 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = _tmp40_; -#line 4680 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = _tmp41_->filesize; -#line 4680 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = _tmp42_; -#line 4680 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp41_); -#line 4680 "/home/jens/Source/shotwell/src/Photo.vala" - master_filesize = _tmp43_; -#line 4681 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = photo; -#line 4681 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_PHOTO, Photo)); -#line 4681 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = _tmp46_; -#line 4681 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = _tmp47_ != NULL; -#line 4681 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp47_); -#line 4681 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp48_) { -#line 36592 "Photo.c" - LibraryPhoto* _tmp49_; - BackingPhotoRow* _tmp50_; - BackingPhotoRow* _tmp51_; - gint64 _tmp52_; -#line 4682 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = photo; -#line 4682 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, TYPE_PHOTO, Photo)); -#line 4682 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp51_ = _tmp50_; -#line 4682 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp52_ = _tmp51_->filesize; -#line 4682 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = _tmp52_; -#line 4682 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp51_); -#line 36609 "Photo.c" - } else { -#line 4683 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = (gint64) -1; -#line 36613 "Photo.c" - } -#line 4681 "/home/jens/Source/shotwell/src/Photo.vala" - editable_filesize = _tmp44_; -#line 4684 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp53_ = self->priv->photo_to_master_filesize; -#line 4684 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp54_ = photo; -#line 4684 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp55_ = master_filesize; -#line 4684 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp54_, &_tmp55_); -#line 4685 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp56_ = self->priv->filesize_to_photo; -#line 4685 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_ = master_filesize; -#line 4685 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp58_ = photo; -#line 4685 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_set (_tmp56_, &_tmp57_, _tmp58_); -#line 4686 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp59_ = editable_filesize; -#line 4686 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp59_ >= ((gint64) 0)) { -#line 36637 "Photo.c" - GeeHashMap* _tmp60_; - LibraryPhoto* _tmp61_; - gint64 _tmp62_; - GeeMultiMap* _tmp63_; - gint64 _tmp64_; - LibraryPhoto* _tmp65_; -#line 4687 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp60_ = self->priv->photo_to_editable_filesize; -#line 4687 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp61_ = photo; -#line 4687 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp62_ = editable_filesize; -#line 4687 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp61_, &_tmp62_); -#line 4688 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp63_ = self->priv->filesize_to_photo; -#line 4688 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp64_ = editable_filesize; -#line 4688 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp65_ = photo; -#line 4688 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_set (_tmp63_, &_tmp64_, _tmp65_); -#line 36660 "Photo.c" - } -#line 4667 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp20_); -#line 36664 "Photo.c" - } -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (alteration); -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (object); -#line 36672 "Photo.c" - } -#line 4662 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_object_it); -#line 36676 "Photo.c" - } -#line 4693 "/home/jens/Source/shotwell/src/Photo.vala" - DATA_COLLECTION_CLASS (library_photo_source_collection_parent_class)->items_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), TYPE_DATA_COLLECTION, DataCollection), items); -#line 36680 "Photo.c" -} - - -static void -library_photo_source_collection_real_postprocess_imported_media (MediaSourceCollection* base, - GeeCollection* media_sources) -{ - LibraryPhotoSourceCollection * self; - GeeHashMultiMap* map = NULL; - GeeHashMultiMap* _tmp0_; -#line 4697 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection); -#line 4697 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (GEE_IS_COLLECTION (media_sources)); -#line 4698 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = gee_hash_multi_map_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 4698 "/home/jens/Source/shotwell/src/Photo.vala" - map = _tmp0_; -#line 36699 "Photo.c" - { - GeeIterator* _media_it = NULL; - GeeIterator* _tmp1_; -#line 4699 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 4699 "/home/jens/Source/shotwell/src/Photo.vala" - _media_it = _tmp1_; -#line 4699 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 36709 "Photo.c" - GeeIterator* _tmp2_; - MediaSource* media = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - LibraryPhoto* photo = NULL; - MediaSource* _tmp5_; - LibraryPhoto* _tmp6_; - PhotoMetadata* metadata = NULL; - LibraryPhoto* _tmp7_; - PhotoMetadata* _tmp8_; - HierarchicalTagIndex* global_index = NULL; - HierarchicalTagIndex* _tmp9_; - HierarchicalTagIndex* htag_index = NULL; - PhotoMetadata* _tmp10_; - LibraryPhoto* _tmp15_; - GeeCollection* _tmp16_; - GeeCollection* _tmp17_; - gboolean _tmp18_; - PhotoMetadata* _tmp49_; -#line 4699 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _media_it; -#line 4699 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 4699 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 36735 "Photo.c" - } -#line 4699 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _media_it; -#line 4699 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 4699 "/home/jens/Source/shotwell/src/Photo.vala" - media = (MediaSource*) _tmp4_; -#line 4700 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = media; -#line 4700 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 4700 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp6_; -#line 4701 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = photo; -#line 4701 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO_SOURCE, PhotoSource)); -#line 4701 "/home/jens/Source/shotwell/src/Photo.vala" - metadata = _tmp8_; -#line 4704 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = hierarchical_tag_index_get_global_index (); -#line 4704 "/home/jens/Source/shotwell/src/Photo.vala" - global_index = _tmp9_; -#line 4711 "/home/jens/Source/shotwell/src/Photo.vala" - htag_index = NULL; -#line 4712 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = metadata; -#line 4712 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_metadata_has_hierarchical_keywords (_tmp10_)) { -#line 36765 "Photo.c" - PhotoMetadata* _tmp11_; - GeeSet* _tmp12_; - GeeSet* _tmp13_; - HierarchicalTagIndex* _tmp14_; -#line 4713 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = metadata; -#line 4713 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = photo_metadata_get_hierarchical_keywords (_tmp11_); -#line 4713 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_; -#line 4713 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = hierarchical_tag_utilities_process_hierarchical_import_keywords (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 4713 "/home/jens/Source/shotwell/src/Photo.vala" - _hierarchical_tag_index_unref0 (htag_index); -#line 4713 "/home/jens/Source/shotwell/src/Photo.vala" - htag_index = _tmp14_; -#line 4713 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp13_); -#line 36784 "Photo.c" - } -#line 4717 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = photo; -#line 4717 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = library_photo_get_import_keywords (_tmp15_); -#line 4717 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _tmp16_; -#line 4717 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp17_ != NULL; -#line 4717 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp17_); -#line 4717 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp18_) { -#line 36798 "Photo.c" - { - GeeIterator* _keyword_it = NULL; - LibraryPhoto* _tmp19_; - GeeCollection* _tmp20_; - GeeCollection* _tmp21_; - GeeIterator* _tmp22_; - GeeIterator* _tmp23_; -#line 4718 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = photo; -#line 4718 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = library_photo_get_import_keywords (_tmp19_); -#line 4718 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _tmp20_; -#line 4718 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 4718 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _tmp22_; -#line 4718 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp21_); -#line 4718 "/home/jens/Source/shotwell/src/Photo.vala" - _keyword_it = _tmp23_; -#line 4718 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 36822 "Photo.c" - GeeIterator* _tmp24_; - gchar* keyword = NULL; - GeeIterator* _tmp25_; - gpointer _tmp26_; - gboolean _tmp27_ = FALSE; - HierarchicalTagIndex* _tmp28_; - gchar* name = NULL; - const gchar* _tmp31_; - gchar* _tmp32_; - HierarchicalTagIndex* _tmp33_; - const gchar* _tmp34_; - const gchar* _tmp43_; -#line 4718 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = _keyword_it; -#line 4718 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp24_)) { -#line 4718 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 36841 "Photo.c" - } -#line 4718 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = _keyword_it; -#line 4718 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = gee_iterator_get (_tmp25_); -#line 4718 "/home/jens/Source/shotwell/src/Photo.vala" - keyword = (gchar*) _tmp26_; -#line 4719 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = htag_index; -#line 4719 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp28_ != NULL) { -#line 36853 "Photo.c" - HierarchicalTagIndex* _tmp29_; - const gchar* _tmp30_; -#line 4719 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = htag_index; -#line 4719 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = keyword; -#line 4719 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = hierarchical_tag_index_is_tag_in_index (_tmp29_, _tmp30_); -#line 36862 "Photo.c" - } else { -#line 4719 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = FALSE; -#line 36866 "Photo.c" - } -#line 4719 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp27_) { -#line 4720 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (keyword); -#line 4720 "/home/jens/Source/shotwell/src/Photo.vala" - continue; -#line 36874 "Photo.c" - } -#line 4722 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = keyword; -#line 4722 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = tag_prep_tag_name (_tmp31_); -#line 4722 "/home/jens/Source/shotwell/src/Photo.vala" - name = _tmp32_; -#line 4724 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = global_index; -#line 4724 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = name; -#line 4724 "/home/jens/Source/shotwell/src/Photo.vala" - if (hierarchical_tag_index_is_tag_in_index (_tmp33_, _tmp34_)) { -#line 36888 "Photo.c" - gchar* most_derived_path = NULL; - HierarchicalTagIndex* _tmp35_; - const gchar* _tmp36_; - gchar* _tmp37_; - GeeHashMultiMap* _tmp38_; - const gchar* _tmp39_; - Tag* _tmp40_; - Tag* _tmp41_; - LibraryPhoto* _tmp42_; -#line 4725 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = global_index; -#line 4725 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = name; -#line 4725 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = hierarchical_tag_index_get_path_for_name (_tmp35_, _tmp36_); -#line 4725 "/home/jens/Source/shotwell/src/Photo.vala" - most_derived_path = _tmp37_; -#line 4726 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = map; -#line 4726 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = most_derived_path; -#line 4726 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = tag_for_path (_tmp39_); -#line 4726 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = _tmp40_; -#line 4726 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = photo; -#line 4726 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp41_, _tmp42_); -#line 4726 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp41_); -#line 4727 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (most_derived_path); -#line 4727 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (name); -#line 4727 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (keyword); -#line 4727 "/home/jens/Source/shotwell/src/Photo.vala" - continue; -#line 36928 "Photo.c" - } -#line 4730 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = name; -#line 4730 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp43_ != NULL) { -#line 36934 "Photo.c" - GeeHashMultiMap* _tmp44_; - const gchar* _tmp45_; - Tag* _tmp46_; - Tag* _tmp47_; - LibraryPhoto* _tmp48_; -#line 4731 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = map; -#line 4731 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = name; -#line 4731 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = tag_for_path (_tmp45_); -#line 4731 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = _tmp46_; -#line 4731 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = photo; -#line 4731 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp47_, _tmp48_); -#line 4731 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp47_); -#line 36954 "Photo.c" - } -#line 4718 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (name); -#line 4718 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (keyword); -#line 36960 "Photo.c" - } -#line 4718 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_keyword_it); -#line 36964 "Photo.c" - } - } -#line 4735 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = metadata; -#line 4735 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_metadata_has_hierarchical_keywords (_tmp49_)) { -#line 36971 "Photo.c" - { - GeeIterator* _path_it = NULL; - HierarchicalTagIndex* _tmp50_; - GeeCollection* _tmp51_; - GeeCollection* _tmp52_; - GeeIterator* _tmp53_; - GeeIterator* _tmp54_; -#line 4736 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = htag_index; -#line 4736 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp51_ = hierarchical_tag_index_get_all_paths (_tmp50_); -#line 4736 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp52_ = _tmp51_; -#line 4736 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp53_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 4736 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp54_ = _tmp53_; -#line 4736 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp52_); -#line 4736 "/home/jens/Source/shotwell/src/Photo.vala" - _path_it = _tmp54_; -#line 4736 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 36995 "Photo.c" - GeeIterator* _tmp55_; - gchar* path = NULL; - GeeIterator* _tmp56_; - gpointer _tmp57_; - gchar* name = NULL; - const gchar* _tmp58_; - gchar* _tmp59_; - const gchar* _tmp60_; -#line 4736 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp55_ = _path_it; -#line 4736 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp55_)) { -#line 4736 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 37010 "Photo.c" - } -#line 4736 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp56_ = _path_it; -#line 4736 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_ = gee_iterator_get (_tmp56_); -#line 4736 "/home/jens/Source/shotwell/src/Photo.vala" - path = (gchar*) _tmp57_; -#line 4737 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp58_ = path; -#line 4737 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp59_ = tag_prep_tag_name (_tmp58_); -#line 4737 "/home/jens/Source/shotwell/src/Photo.vala" - name = _tmp59_; -#line 4738 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp60_ = name; -#line 4738 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp60_ != NULL) { -#line 37028 "Photo.c" - GeeHashMultiMap* _tmp61_; - const gchar* _tmp62_; - Tag* _tmp63_; - Tag* _tmp64_; - LibraryPhoto* _tmp65_; -#line 4739 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp61_ = map; -#line 4739 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp62_ = name; -#line 4739 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp63_ = tag_for_path (_tmp62_); -#line 4739 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp64_ = _tmp63_; -#line 4739 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp65_ = photo; -#line 4739 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp64_, _tmp65_); -#line 4739 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp64_); -#line 37048 "Photo.c" - } -#line 4736 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (name); -#line 4736 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (path); -#line 37054 "Photo.c" - } -#line 4736 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_path_it); -#line 37058 "Photo.c" - } - } -#line 4699 "/home/jens/Source/shotwell/src/Photo.vala" - _hierarchical_tag_index_unref0 (htag_index); -#line 4699 "/home/jens/Source/shotwell/src/Photo.vala" - _hierarchical_tag_index_unref0 (global_index); -#line 4699 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 4699 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 4699 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (media); -#line 37071 "Photo.c" - } -#line 4699 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_media_it); -#line 37075 "Photo.c" - } - { - GeeIterator* _media_it = NULL; - GeeIterator* _tmp66_; -#line 4744 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp66_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media_sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 4744 "/home/jens/Source/shotwell/src/Photo.vala" - _media_it = _tmp66_; -#line 4744 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 37086 "Photo.c" - GeeIterator* _tmp67_; - MediaSource* media = NULL; - GeeIterator* _tmp68_; - gpointer _tmp69_; - LibraryPhoto* photo = NULL; - MediaSource* _tmp70_; - LibraryPhoto* _tmp71_; - LibraryPhoto* _tmp72_; -#line 4744 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp67_ = _media_it; -#line 4744 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp67_)) { -#line 4744 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 37101 "Photo.c" - } -#line 4744 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp68_ = _media_it; -#line 4744 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp69_ = gee_iterator_get (_tmp68_); -#line 4744 "/home/jens/Source/shotwell/src/Photo.vala" - media = (MediaSource*) _tmp69_; -#line 4745 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp70_ = media; -#line 4745 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp71_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 4745 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp71_; -#line 4746 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp72_ = photo; -#line 4746 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_clear_import_keywords (_tmp72_); -#line 4744 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 4744 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (media); -#line 37123 "Photo.c" - } -#line 4744 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_media_it); -#line 37127 "Photo.c" - } - { - GeeIterator* _tag_it = NULL; - GeeHashMultiMap* _tmp73_; - GeeSet* _tmp74_; - GeeSet* _tmp75_; - GeeIterator* _tmp76_; - GeeIterator* _tmp77_; -#line 4749 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp73_ = map; -#line 4749 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp74_ = gee_multi_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, GEE_TYPE_MULTI_MAP, GeeMultiMap)); -#line 4749 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp75_ = _tmp74_; -#line 4749 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp76_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 4749 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp77_ = _tmp76_; -#line 4749 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp75_); -#line 4749 "/home/jens/Source/shotwell/src/Photo.vala" - _tag_it = _tmp77_; -#line 4749 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 37152 "Photo.c" - GeeIterator* _tmp78_; - Tag* tag = NULL; - GeeIterator* _tmp79_; - gpointer _tmp80_; - Tag* _tmp81_; - GeeHashMultiMap* _tmp82_; - Tag* _tmp83_; - GeeCollection* _tmp84_; - GeeCollection* _tmp85_; -#line 4749 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp78_ = _tag_it; -#line 4749 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp78_)) { -#line 4749 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 37168 "Photo.c" - } -#line 4749 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp79_ = _tag_it; -#line 4749 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp80_ = gee_iterator_get (_tmp79_); -#line 4749 "/home/jens/Source/shotwell/src/Photo.vala" - tag = (Tag*) _tmp80_; -#line 4750 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp81_ = tag; -#line 4750 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp82_ = map; -#line 4750 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp83_ = tag; -#line 4750 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp84_ = gee_multi_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp83_); -#line 4750 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp85_ = _tmp84_; -#line 4750 "/home/jens/Source/shotwell/src/Photo.vala" - tag_attach_many (_tmp81_, _tmp85_); -#line 4750 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp85_); -#line 4749 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (tag); -#line 37192 "Photo.c" - } -#line 4749 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tag_it); -#line 37196 "Photo.c" - } -#line 4752 "/home/jens/Source/shotwell/src/Photo.vala" - MEDIA_SOURCE_COLLECTION_CLASS (library_photo_source_collection_parent_class)->postprocess_imported_media (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), media_sources); -#line 4697 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (map); -#line 37202 "Photo.c" -} - - -static void -library_photo_source_collection_real_notify_master_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata) -{ -#line 4756 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 4756 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 4757 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_emit (self, library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_MASTER_REIMPORTED_SIGNAL], 0, photo, metadata); -#line 37217 "Photo.c" -} - - -void -library_photo_source_collection_notify_master_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata) -{ -#line 4756 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self)); -#line 4756 "/home/jens/Source/shotwell/src/Photo.vala" - LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS (self)->notify_master_reimported (self, photo, metadata); -#line 37230 "Photo.c" -} - - -static void -library_photo_source_collection_real_notify_editable_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata) -{ -#line 4761 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 4761 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 4762 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_emit (self, library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_EDITABLE_REIMPORTED_SIGNAL], 0, photo, metadata); -#line 37245 "Photo.c" -} - - -void -library_photo_source_collection_notify_editable_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata) -{ -#line 4761 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self)); -#line 4761 "/home/jens/Source/shotwell/src/Photo.vala" - LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS (self)->notify_editable_reimported (self, photo, metadata); -#line 37258 "Photo.c" -} - - -static void -library_photo_source_collection_real_notify_source_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata) -{ -#line 4766 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 4766 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 4767 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_emit (self, library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_SOURCE_REIMPORTED_SIGNAL], 0, photo, metadata); -#line 37273 "Photo.c" -} - - -void -library_photo_source_collection_notify_source_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata) -{ -#line 4766 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self)); -#line 4766 "/home/jens/Source/shotwell/src/Photo.vala" - LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS (self)->notify_source_reimported (self, photo, metadata); -#line 37286 "Photo.c" -} - - -static void -library_photo_source_collection_real_notify_baseline_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata) -{ -#line 4771 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 4771 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 4772 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_emit (self, library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_BASELINE_REIMPORTED_SIGNAL], 0, photo, metadata); -#line 37301 "Photo.c" -} - - -void -library_photo_source_collection_notify_baseline_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata) -{ -#line 4771 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self)); -#line 4771 "/home/jens/Source/shotwell/src/Photo.vala" - LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS (self)->notify_baseline_reimported (self, photo, metadata); -#line 37314 "Photo.c" -} - - -static MediaSource* -library_photo_source_collection_real_fetch_by_numeric_id (MediaSourceCollection* base, - gint64 numeric_id) -{ - LibraryPhotoSourceCollection * self; - MediaSource* result = NULL; - PhotoID _tmp0_ = {0}; - LibraryPhoto* _tmp1_; -#line 4775 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection); -#line 4776 "/home/jens/Source/shotwell/src/Photo.vala" - photo_id_init (&_tmp0_, numeric_id); -#line 4776 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = library_photo_source_collection_fetch (self, &_tmp0_); -#line 4776 "/home/jens/Source/shotwell/src/Photo.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE, MediaSource); -#line 4776 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 37336 "Photo.c" -} - - -static void -library_photo_source_collection_on_trashcan_contents_altered (LibraryPhotoSourceCollection* self, - GeeCollection* added, - GeeCollection* removed) -{ -#line 4779 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self)); -#line 4779 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 4779 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 4781 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "trashcan-contents-altered", G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_COLLECTION, GeeCollection)); -#line 37353 "Photo.c" -} - - -static gboolean -library_photo_source_collection_check_if_trashed_photo (LibraryPhotoSourceCollection* self, - DataSource* source, - Alteration* alteration) -{ - gboolean result = FALSE; -#line 4785 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), FALSE); -#line 4785 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 4785 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_ALTERATION (alteration), FALSE); -#line 4786 "/home/jens/Source/shotwell/src/Photo.vala" - result = media_source_is_trashed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource)); -#line 4786 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 37373 "Photo.c" -} - - -static void -library_photo_source_collection_on_offline_contents_altered (LibraryPhotoSourceCollection* self, - GeeCollection* added, - GeeCollection* removed) -{ -#line 4789 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self)); -#line 4789 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 4789 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 4791 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "offline-contents-altered", G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_COLLECTION, GeeCollection)); -#line 37390 "Photo.c" -} - - -static gboolean -library_photo_source_collection_check_if_offline_photo (LibraryPhotoSourceCollection* self, - DataSource* source, - Alteration* alteration) -{ - gboolean result = FALSE; -#line 4795 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), FALSE); -#line 4795 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 4795 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_ALTERATION (alteration), FALSE); -#line 4796 "/home/jens/Source/shotwell/src/Photo.vala" - result = media_source_is_offline (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource)); -#line 4796 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 37410 "Photo.c" -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 37434 "Photo.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 37443 "Photo.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 37464 "Photo.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 37468 "Photo.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 37474 "Photo.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 37484 "Photo.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 37488 "Photo.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 37496 "Photo.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 37503 "Photo.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 37507 "Photo.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 37513 "Photo.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 37525 "Photo.c" -} - - -static MediaSource* -library_photo_source_collection_real_fetch_by_source_id (MediaSourceCollection* base, - const gchar* source_id) -{ - LibraryPhotoSourceCollection * self; - MediaSource* result = NULL; - gchar* numeric_only = NULL; - gint _tmp0_; - gint _tmp1_; - gchar* _tmp2_; - MediaSource* _tmp3_; -#line 4799 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection); -#line 4799 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (source_id != NULL, NULL); -#line 4800 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (g_str_has_prefix (source_id, PHOTO_TYPENAME), "source_id.has_prefix(Photo.TYPENAME)"); -#line 4801 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = strlen (PHOTO_TYPENAME); -#line 4801 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 4801 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = string_substring (source_id, (glong) _tmp1_, (glong) -1); -#line 4801 "/home/jens/Source/shotwell/src/Photo.vala" - numeric_only = _tmp2_; -#line 4803 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = media_source_collection_fetch_by_numeric_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), parse_int64 (numeric_only, 16)); -#line 4803 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 4803 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (numeric_only); -#line 4803 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 37562 "Photo.c" -} - - -static GeeCollection* -library_photo_source_collection_real_get_event_source_ids (MediaSourceCollection* base, - EventID* event_id) -{ - LibraryPhotoSourceCollection * self; - GeeCollection* result = NULL; - PhotoTable* _tmp0_; - PhotoTable* _tmp1_; - EventID _tmp2_; - GeeArrayList* _tmp3_; - GeeCollection* _tmp4_; -#line 4806 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection); -#line 4806 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (event_id != NULL, NULL); -#line 4807 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_table_get_instance (); -#line 4807 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 4807 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = *event_id; -#line 4807 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_table_get_event_source_ids (_tmp1_, &_tmp2_); -#line 4807 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection); -#line 4807 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp1_); -#line 4807 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp4_; -#line 4807 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 37597 "Photo.c" -} - - -LibraryPhoto* -library_photo_source_collection_fetch (LibraryPhotoSourceCollection* self, - PhotoID* photo_id) -{ - LibraryPhoto* result = NULL; - PhotoID _tmp0_; - gint64 _tmp1_; - DataSource* _tmp2_; -#line 4810 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL); -#line 4810 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (photo_id != NULL, NULL); -#line 4811 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = *photo_id; -#line 4811 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_.id; -#line 4811 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = database_source_collection_fetch_by_key (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), _tmp1_); -#line 4811 "/home/jens/Source/shotwell/src/Photo.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 4811 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 37623 "Photo.c" -} - - -LibraryPhoto* -library_photo_source_collection_fetch_by_editable_file (LibraryPhotoSourceCollection* self, - GFile* file) -{ - LibraryPhoto* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 4814 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL); -#line 4814 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 4815 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->by_editable_file; -#line 4815 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file); -#line 4815 "/home/jens/Source/shotwell/src/Photo.vala" - result = (LibraryPhoto*) _tmp1_; -#line 4815 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 37646 "Photo.c" -} - - -LibraryPhoto* -library_photo_source_collection_fetch_by_raw_development_file (LibraryPhotoSourceCollection* self, - GFile* file) -{ - LibraryPhoto* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 4818 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL); -#line 4818 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 4819 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->by_raw_development_file; -#line 4819 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file); -#line 4819 "/home/jens/Source/shotwell/src/Photo.vala" - result = (LibraryPhoto*) _tmp1_; -#line 4819 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 37669 "Photo.c" -} - - -static void -library_photo_source_collection_compare_backing (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - GFileInfo* info, - GeeCollection* matches_master, - GeeCollection* matches_editable, - GeeCollection* matches_development) -{ - BackingPhotoRow* _tmp0_; - BackingPhotoRow* _tmp1_; - gboolean _tmp2_; - BackingPhotoRow* editable = NULL; - BackingPhotoRow* _tmp3_; - gboolean _tmp4_ = FALSE; - BackingPhotoRow* _tmp5_; - GeeCollection* development = NULL; - GeeCollection* _tmp7_; - GeeCollection* _tmp8_; -#line 4822 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self)); -#line 4822 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 4822 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 4822 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (GEE_IS_COLLECTION (matches_master)); -#line 4822 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (GEE_IS_COLLECTION (matches_editable)); -#line 4822 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (GEE_IS_COLLECTION (matches_development)); -#line 4825 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_get_master_photo_row (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo)); -#line 4825 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 4825 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = backing_photo_row_matches_file_info (_tmp1_, info); -#line 4825 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp1_); -#line 4825 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_) { -#line 4826 "/home/jens/Source/shotwell/src/Photo.vala" - gee_collection_add (matches_master, photo); -#line 37715 "Photo.c" - } -#line 4828 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo)); -#line 4828 "/home/jens/Source/shotwell/src/Photo.vala" - editable = _tmp3_; -#line 4829 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = editable; -#line 4829 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp5_ != NULL) { -#line 37725 "Photo.c" - BackingPhotoRow* _tmp6_; -#line 4829 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = editable; -#line 4829 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = backing_photo_row_matches_file_info (_tmp6_, info); -#line 37731 "Photo.c" - } else { -#line 4829 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = FALSE; -#line 37735 "Photo.c" - } -#line 4829 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp4_) { -#line 4830 "/home/jens/Source/shotwell/src/Photo.vala" - gee_collection_add (matches_editable, photo); -#line 37741 "Photo.c" - } -#line 4832 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = photo_get_raw_development_photo_rows (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo)); -#line 4832 "/home/jens/Source/shotwell/src/Photo.vala" - development = _tmp7_; -#line 4833 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = development; -#line 4833 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp8_ != NULL) { -#line 37751 "Photo.c" - { - GeeIterator* _row_it = NULL; - GeeCollection* _tmp9_; - GeeIterator* _tmp10_; -#line 4834 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = development; -#line 4834 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 4834 "/home/jens/Source/shotwell/src/Photo.vala" - _row_it = _tmp10_; -#line 4834 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 37764 "Photo.c" - GeeIterator* _tmp11_; - BackingPhotoRow* row = NULL; - GeeIterator* _tmp12_; - gpointer _tmp13_; - BackingPhotoRow* _tmp14_; -#line 4834 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _row_it; -#line 4834 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp11_)) { -#line 4834 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 37776 "Photo.c" - } -#line 4834 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _row_it; -#line 4834 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = gee_iterator_get (_tmp12_); -#line 4834 "/home/jens/Source/shotwell/src/Photo.vala" - row = (BackingPhotoRow*) _tmp13_; -#line 4835 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = row; -#line 4835 "/home/jens/Source/shotwell/src/Photo.vala" - if (backing_photo_row_matches_file_info (_tmp14_, info)) { -#line 4836 "/home/jens/Source/shotwell/src/Photo.vala" - gee_collection_add (matches_development, photo); -#line 4838 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (row); -#line 4838 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 37794 "Photo.c" - } -#line 4834 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (row); -#line 37798 "Photo.c" - } -#line 4834 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_row_it); -#line 37802 "Photo.c" - } - } -#line 4822 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (development); -#line 4822 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (editable); -#line 37809 "Photo.c" -} - - -void -library_photo_source_collection_fetch_by_matching_backing (LibraryPhotoSourceCollection* self, - GFileInfo* info, - GeeCollection* matches_master, - GeeCollection* matches_editable, - GeeCollection* matched_development) -{ -#line 4846 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self)); -#line 4846 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 4846 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (GEE_IS_COLLECTION (matches_master)); -#line 4846 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (GEE_IS_COLLECTION (matches_editable)); -#line 4846 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (GEE_IS_COLLECTION (matched_development)); -#line 37830 "Photo.c" - { - GeeIterator* _photo_it = NULL; - GeeMultiMap* _tmp0_; - gint64 _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 4848 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->filesize_to_photo; -#line 4848 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = g_file_info_get_size (info); -#line 4848 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = gee_multi_map_get (_tmp0_, &_tmp1_); -#line 4848 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_; -#line 4848 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 4848 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_; -#line 4848 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp3_); -#line 4848 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_it = _tmp5_; -#line 4848 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 37857 "Photo.c" - GeeIterator* _tmp6_; - LibraryPhoto* photo = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - LibraryPhoto* _tmp9_; -#line 4848 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _photo_it; -#line 4848 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 4848 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 37869 "Photo.c" - } -#line 4848 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _photo_it; -#line 4848 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 4848 "/home/jens/Source/shotwell/src/Photo.vala" - photo = (LibraryPhoto*) _tmp8_; -#line 4849 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = photo; -#line 4849 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_collection_compare_backing (self, _tmp9_, info, matches_master, matches_editable, matched_development); -#line 4848 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 37883 "Photo.c" - } -#line 4848 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_photo_it); -#line 37887 "Photo.c" - } - { - GeeIterator* _media_it = NULL; - GeeCollection* _tmp10_; - GeeCollection* _tmp11_; - GeeIterator* _tmp12_; - GeeIterator* _tmp13_; -#line 4851 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = media_source_collection_get_offline_bin_contents (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 4851 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_; -#line 4851 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 4851 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_; -#line 4851 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp11_); -#line 4851 "/home/jens/Source/shotwell/src/Photo.vala" - _media_it = _tmp13_; -#line 4851 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 37909 "Photo.c" - GeeIterator* _tmp14_; - MediaSource* media = NULL; - GeeIterator* _tmp15_; - gpointer _tmp16_; - MediaSource* _tmp17_; -#line 4851 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = _media_it; -#line 4851 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp14_)) { -#line 4851 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 37921 "Photo.c" - } -#line 4851 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _media_it; -#line 4851 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = gee_iterator_get (_tmp15_); -#line 4851 "/home/jens/Source/shotwell/src/Photo.vala" - media = (MediaSource*) _tmp16_; -#line 4852 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = media; -#line 4852 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_collection_compare_backing (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_LIBRARY_PHOTO, LibraryPhoto), info, matches_master, matches_editable, matched_development); -#line 4851 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (media); -#line 37935 "Photo.c" - } -#line 4851 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_media_it); -#line 37939 "Photo.c" - } -} - - -void -library_photo_source_collection_get_basename_filesize_duplicate (LibraryPhotoSourceCollection* self, - const gchar* basename, - gint64 filesize, - PhotoID* result) -{ - PhotoID _tmp15_ = {0}; -#line 4855 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self)); -#line 4855 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (basename != NULL); -#line 37955 "Photo.c" - { - GeeIterator* _photo_it = NULL; - GeeMultiMap* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 4856 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->filesize_to_photo; -#line 4856 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = gee_multi_map_get (_tmp0_, &filesize); -#line 4856 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 4856 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 4856 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 4856 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp2_); -#line 4856 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_it = _tmp4_; -#line 4856 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 37979 "Photo.c" - GeeIterator* _tmp5_; - LibraryPhoto* photo = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - LibraryPhoto* _tmp8_; - GFile* _tmp9_; - GFile* _tmp10_; - gchar* _tmp11_; - gboolean _tmp12_; -#line 4856 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _photo_it; -#line 4856 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 4856 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 37995 "Photo.c" - } -#line 4856 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _photo_it; -#line 4856 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 4856 "/home/jens/Source/shotwell/src/Photo.vala" - photo = (LibraryPhoto*) _tmp7_; -#line 4857 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = photo; -#line 4857 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 4857 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_; -#line 4857 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = g_file_get_basename (_tmp10_); -#line 4857 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = utf8_ci_compare (_tmp11_, basename) == 0; -#line 4857 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp10_); -#line 4857 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp12_) { -#line 38017 "Photo.c" - LibraryPhoto* _tmp13_; - PhotoID _tmp14_ = {0}; -#line 4858 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = photo; -#line 4858 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PHOTO, Photo), &_tmp14_); -#line 4858 "/home/jens/Source/shotwell/src/Photo.vala" - *result = _tmp14_; -#line 4858 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 4858 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_photo_it); -#line 4858 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 38032 "Photo.c" - } -#line 4856 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 38036 "Photo.c" - } -#line 4856 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_photo_it); -#line 38040 "Photo.c" - } -#line 4861 "/home/jens/Source/shotwell/src/Photo.vala" - photo_id_init (&_tmp15_, PHOTO_ID_INVALID); -#line 4861 "/home/jens/Source/shotwell/src/Photo.vala" - *result = _tmp15_; -#line 4861 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 38048 "Photo.c" -} - - -gboolean -library_photo_source_collection_has_basename_filesize_duplicate (LibraryPhotoSourceCollection* self, - const gchar* basename, - gint64 filesize) -{ - gboolean result = FALSE; - PhotoID _tmp0_ = {0}; -#line 4865 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), FALSE); -#line 4865 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (basename != NULL, FALSE); -#line 4866 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_collection_get_basename_filesize_duplicate (self, basename, filesize, &_tmp0_); -#line 4866 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo_id_is_valid (&_tmp0_); -#line 4866 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 38069 "Photo.c" -} - - -LibraryPhoto* -library_photo_source_collection_get_trashed_by_file (LibraryPhotoSourceCollection* self, - GFile* file) -{ - LibraryPhoto* result = NULL; - LibraryPhoto* photo = NULL; - MediaSourceHoldingTank* _tmp0_; - MediaSourceHoldingTank* _tmp1_; - MediaSource* _tmp2_; - LibraryPhoto* _tmp3_; - LibraryPhoto* _tmp4_; -#line 4869 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL); -#line 4869 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 4870 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 4870 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 4870 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = media_source_holding_tank_fetch_by_master_file (_tmp1_, file); -#line 4870 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 4870 "/home/jens/Source/shotwell/src/Photo.vala" - _source_holding_tank_unref0 (_tmp1_); -#line 4870 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp3_; -#line 4871 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = photo; -#line 4871 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp4_ == NULL) { -#line 38104 "Photo.c" - MediaSourceHoldingTank* _tmp5_; - LibraryPhotoSourceHoldingTank* _tmp6_; - LibraryPhoto* _tmp7_; -#line 4872 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 4872 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTank); -#line 4872 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = library_photo_source_holding_tank_fetch_by_backing_file (_tmp6_, file); -#line 4872 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 4872 "/home/jens/Source/shotwell/src/Photo.vala" - photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 4872 "/home/jens/Source/shotwell/src/Photo.vala" - _source_holding_tank_unref0 (_tmp6_); -#line 38120 "Photo.c" - } -#line 4875 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo; -#line 4875 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 38126 "Photo.c" -} - - -LibraryPhoto* -library_photo_source_collection_get_trashed_by_md5 (LibraryPhotoSourceCollection* self, - const gchar* md5) -{ - LibraryPhoto* result = NULL; - MediaSourceHoldingTank* _tmp0_; - MediaSourceHoldingTank* _tmp1_; - MediaSource* _tmp2_; - LibraryPhoto* _tmp3_; -#line 4878 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL); -#line 4878 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (md5 != NULL, NULL); -#line 4879 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 4879 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 4879 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = media_source_holding_tank_fetch_by_md5 (_tmp1_, md5); -#line 4879 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 4879 "/home/jens/Source/shotwell/src/Photo.vala" - _source_holding_tank_unref0 (_tmp1_); -#line 4879 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 4879 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 38157 "Photo.c" -} - - -LibraryPhoto* -library_photo_source_collection_get_offline_by_file (LibraryPhotoSourceCollection* self, - GFile* file) -{ - LibraryPhoto* result = NULL; - LibraryPhoto* photo = NULL; - MediaSourceHoldingTank* _tmp0_; - MediaSourceHoldingTank* _tmp1_; - MediaSource* _tmp2_; - LibraryPhoto* _tmp3_; - LibraryPhoto* _tmp4_; -#line 4882 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL); -#line 4882 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 4883 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 4883 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 4883 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = media_source_holding_tank_fetch_by_master_file (_tmp1_, file); -#line 4883 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 4883 "/home/jens/Source/shotwell/src/Photo.vala" - _source_holding_tank_unref0 (_tmp1_); -#line 4883 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp3_; -#line 4884 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = photo; -#line 4884 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp4_ == NULL) { -#line 38192 "Photo.c" - MediaSourceHoldingTank* _tmp5_; - LibraryPhotoSourceHoldingTank* _tmp6_; - LibraryPhoto* _tmp7_; -#line 4885 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 4885 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTank); -#line 4885 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = library_photo_source_holding_tank_fetch_by_backing_file (_tmp6_, file); -#line 4885 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 4885 "/home/jens/Source/shotwell/src/Photo.vala" - photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 4885 "/home/jens/Source/shotwell/src/Photo.vala" - _source_holding_tank_unref0 (_tmp6_); -#line 38208 "Photo.c" - } -#line 4888 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo; -#line 4888 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 38214 "Photo.c" -} - - -LibraryPhoto* -library_photo_source_collection_get_offline_by_md5 (LibraryPhotoSourceCollection* self, - const gchar* md5) -{ - LibraryPhoto* result = NULL; - MediaSourceHoldingTank* _tmp0_; - MediaSourceHoldingTank* _tmp1_; - MediaSource* _tmp2_; - LibraryPhoto* _tmp3_; -#line 4891 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL); -#line 4891 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (md5 != NULL, NULL); -#line 4892 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 4892 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 4892 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = media_source_holding_tank_fetch_by_md5 (_tmp1_, md5); -#line 4892 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 4892 "/home/jens/Source/shotwell/src/Photo.vala" - _source_holding_tank_unref0 (_tmp1_); -#line 4892 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp3_; -#line 4892 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 38245 "Photo.c" -} - - -gint -library_photo_source_collection_get_offline_count (LibraryPhotoSourceCollection* self) -{ - gint result = 0; - MediaSourceHoldingTank* _tmp0_; - MediaSourceHoldingTank* _tmp1_; - gint _tmp2_; -#line 4895 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), 0); -#line 4896 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 4896 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 4896 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = source_holding_tank_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)); -#line 4896 "/home/jens/Source/shotwell/src/Photo.vala" - _source_holding_tank_unref0 (_tmp1_); -#line 4896 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_; -#line 4896 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 38270 "Photo.c" -} - - -LibraryPhoto* -library_photo_source_collection_get_state_by_file (LibraryPhotoSourceCollection* self, - GFile* file, - LibraryPhotoSourceCollectionState* state) -{ - LibraryPhotoSourceCollectionState _vala_state = 0; - LibraryPhoto* result = NULL; - LibraryPhoto* photo = NULL; - MediaSource* _tmp0_; - LibraryPhoto* _tmp1_; - LibraryPhoto* _tmp2_; - LibraryPhoto* _tmp3_; - LibraryPhoto* _tmp4_; - LibraryPhoto* _tmp5_; - LibraryPhoto* _tmp6_; - LibraryPhoto* _tmp7_; - LibraryPhoto* _tmp8_; - LibraryPhoto* _tmp9_; - LibraryPhoto* _tmp10_; - LibraryPhoto* _tmp11_; -#line 4899 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (self), NULL); -#line 4899 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 4900 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = media_source_collection_fetch_by_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), file); -#line 4900 "/home/jens/Source/shotwell/src/Photo.vala" - photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 4901 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo; -#line 4901 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp1_ != NULL) { -#line 4902 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE; -#line 4904 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo; -#line 4904 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 4904 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 38314 "Photo.c" - } -#line 4904 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 38318 "Photo.c" - } -#line 4907 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = library_photo_source_collection_fetch_by_editable_file (self, file); -#line 4907 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 4907 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp2_; -#line 4908 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo; -#line 4908 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp3_ != NULL) { -#line 4909 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE; -#line 4911 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo; -#line 4911 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 4911 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 38338 "Photo.c" - } -#line 4911 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 38342 "Photo.c" - } -#line 4914 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = library_photo_source_collection_fetch_by_raw_development_file (self, file); -#line 4914 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 4914 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp4_; -#line 4915 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = photo; -#line 4915 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp5_ != NULL) { -#line 4916 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER; -#line 4918 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo; -#line 4918 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 4918 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 38362 "Photo.c" - } -#line 4918 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 38366 "Photo.c" - } -#line 4921 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = library_photo_source_collection_get_trashed_by_file (self, file); -#line 4921 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp6_) : NULL; -#line 4921 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp7_ == NULL) { -#line 4921 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp6_); -#line 38376 "Photo.c" - } -#line 4921 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 4921 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp7_; -#line 4922 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = photo; -#line 4922 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp8_ != NULL) { -#line 4923 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH; -#line 4925 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo; -#line 4925 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 4925 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 38394 "Photo.c" - } -#line 4925 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 38398 "Photo.c" - } -#line 4928 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = library_photo_source_collection_get_offline_by_file (self, file); -#line 4928 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp9_) : NULL; -#line 4928 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp10_ == NULL) { -#line 4928 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp9_); -#line 38408 "Photo.c" - } -#line 4928 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 4928 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp10_; -#line 4929 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = photo; -#line 4929 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp11_ != NULL) { -#line 4930 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE; -#line 4932 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo; -#line 4932 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 4932 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 38426 "Photo.c" - } -#line 4932 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 38430 "Photo.c" - } -#line 4935 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_UNKNOWN; -#line 4937 "/home/jens/Source/shotwell/src/Photo.vala" - result = NULL; -#line 4937 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 4937 "/home/jens/Source/shotwell/src/Photo.vala" - if (state) { -#line 4937 "/home/jens/Source/shotwell/src/Photo.vala" - *state = _vala_state; -#line 38442 "Photo.c" - } -#line 4937 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 38446 "Photo.c" -} - - -static gboolean -library_photo_source_collection_real_has_backlink (SourceCollection* base, - SourceBacklink* backlink) -{ - LibraryPhotoSourceCollection * self; - gboolean result = FALSE; - MediaSourceHoldingTank* _tmp0_; - MediaSourceHoldingTank* _tmp1_; - gboolean _tmp2_; - MediaSourceHoldingTank* _tmp3_; - MediaSourceHoldingTank* _tmp4_; - gboolean _tmp5_; -#line 4940 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection); -#line 4940 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_SOURCE_BACKLINK (backlink), FALSE); -#line 4941 "/home/jens/Source/shotwell/src/Photo.vala" - if (SOURCE_COLLECTION_CLASS (library_photo_source_collection_parent_class)->has_backlink (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), TYPE_SOURCE_COLLECTION, SourceCollection), backlink)) { -#line 4942 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 4942 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 38472 "Photo.c" - } -#line 4944 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 4944 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 4944 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = source_holding_tank_has_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), backlink); -#line 4944 "/home/jens/Source/shotwell/src/Photo.vala" - _source_holding_tank_unref0 (_tmp1_); -#line 4944 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_) { -#line 4945 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 4945 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 38488 "Photo.c" - } -#line 4947 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 4947 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 4947 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = source_holding_tank_has_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), backlink); -#line 4947 "/home/jens/Source/shotwell/src/Photo.vala" - _source_holding_tank_unref0 (_tmp4_); -#line 4947 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp5_) { -#line 4948 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 4948 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 38504 "Photo.c" - } -#line 4950 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 4950 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 38510 "Photo.c" -} - - -static void -library_photo_source_collection_real_remove_backlink (SourceCollection* base, - SourceBacklink* backlink) -{ - LibraryPhotoSourceCollection * self; - MediaSourceHoldingTank* _tmp0_; - MediaSourceHoldingTank* _tmp1_; - MediaSourceHoldingTank* _tmp2_; - MediaSourceHoldingTank* _tmp3_; -#line 4953 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection); -#line 4953 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_SOURCE_BACKLINK (backlink)); -#line 4954 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 4954 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 4954 "/home/jens/Source/shotwell/src/Photo.vala" - source_holding_tank_remove_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), backlink); -#line 4954 "/home/jens/Source/shotwell/src/Photo.vala" - _source_holding_tank_unref0 (_tmp1_); -#line 4955 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 4955 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_; -#line 4955 "/home/jens/Source/shotwell/src/Photo.vala" - source_holding_tank_remove_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), backlink); -#line 4955 "/home/jens/Source/shotwell/src/Photo.vala" - _source_holding_tank_unref0 (_tmp3_); -#line 4957 "/home/jens/Source/shotwell/src/Photo.vala" - SOURCE_COLLECTION_CLASS (library_photo_source_collection_parent_class)->remove_backlink (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), TYPE_SOURCE_COLLECTION, SourceCollection), backlink); -#line 38545 "Photo.c" -} - - -static TransactionController* -library_photo_source_collection_real_get_transaction_controller (MediaSourceCollection* base) -{ - TransactionController* result; - LibraryPhotoSourceCollection* self; - TransactionController* _tmp0_; - TransactionController* _tmp2_; -#line 4474 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection); -#line 4475 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->_transaction_controller; -#line 4475 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp0_ == NULL) { -#line 38562 "Photo.c" - MediaSourceTransactionController* _tmp1_; -#line 4476 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = media_source_transaction_controller_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 4476 "/home/jens/Source/shotwell/src/Photo.vala" - _transaction_controller_unref0 (self->priv->_transaction_controller); -#line 4476 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->_transaction_controller = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_TRANSACTION_CONTROLLER, TransactionController); -#line 38570 "Photo.c" - } -#line 4478 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->_transaction_controller; -#line 4478 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_; -#line 4478 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 38578 "Photo.c" -} - - -static void -library_photo_source_collection_real_master_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata) -{ -#line 4496 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 4496 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 38591 "Photo.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_MEDIA_METADATA) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2); - register GMarshalFunc_VOID__OBJECT_MEDIA_METADATA callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (n_param_values == 3); -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - data1 = closure->data; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - data2 = param_values->data[0].v_pointer; -#line 38617 "Photo.c" - } else { -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - data1 = param_values->data[0].v_pointer; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - data2 = closure->data; -#line 38623 "Photo.c" - } -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - callback = (GMarshalFunc_VOID__OBJECT_MEDIA_METADATA) (marshal_data ? marshal_data : cc->callback); -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - callback (data1, g_value_get_object (param_values + 1), value_get_media_metadata (param_values + 2), data2); -#line 38629 "Photo.c" -} - - -static void -library_photo_source_collection_real_editable_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata) -{ -#line 4499 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 4499 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 38642 "Photo.c" -} - - -static void -library_photo_source_collection_real_baseline_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata) -{ -#line 4502 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 4502 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 38655 "Photo.c" -} - - -static void -library_photo_source_collection_real_source_reimported (LibraryPhotoSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata) -{ -#line 4505 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 4505 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 38668 "Photo.c" -} - - -static void -library_photo_source_collection_class_init (LibraryPhotoSourceCollectionClass * klass) -{ -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_collection_parent_class = g_type_class_peek_parent (klass); -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((DataCollectionClass *) klass)->finalize = library_photo_source_collection_finalize; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - g_type_class_add_private (klass, sizeof (LibraryPhotoSourceCollectionPrivate)); -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceCollectionClass *) klass)->create_trashcan = (MediaSourceHoldingTank* (*) (MediaSourceCollection *)) library_photo_source_collection_real_create_trashcan; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceCollectionClass *) klass)->create_offline_bin = (MediaSourceHoldingTank* (*) (MediaSourceCollection *)) library_photo_source_collection_real_create_offline_bin; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceCollectionClass *) klass)->create_media_monitor = (MediaMonitor* (*) (MediaSourceCollection *, Workers*, GCancellable*)) library_photo_source_collection_real_create_media_monitor; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*) (SourceCollection *, DataSource*)) library_photo_source_collection_real_holds_type_of_source; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceCollectionClass *) klass)->get_typename = (gchar* (*) (MediaSourceCollection *)) library_photo_source_collection_real_get_typename; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceCollectionClass *) klass)->is_file_recognized = (gboolean (*) (MediaSourceCollection *, GFile*)) library_photo_source_collection_real_is_file_recognized; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((DataCollectionClass *) klass)->notify_contents_altered = (void (*) (DataCollection *, GeeIterable*, GeeIterable*)) library_photo_source_collection_real_notify_contents_altered; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((DataCollectionClass *) klass)->items_altered = (void (*) (DataCollection *, GeeMap*)) library_photo_source_collection_real_items_altered; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceCollectionClass *) klass)->postprocess_imported_media = (void (*) (MediaSourceCollection *, GeeCollection*)) library_photo_source_collection_real_postprocess_imported_media; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((LibraryPhotoSourceCollectionClass *) klass)->notify_master_reimported = (void (*) (LibraryPhotoSourceCollection *, LibraryPhoto*, PhotoMetadata*)) library_photo_source_collection_real_notify_master_reimported; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((LibraryPhotoSourceCollectionClass *) klass)->notify_editable_reimported = (void (*) (LibraryPhotoSourceCollection *, LibraryPhoto*, PhotoMetadata*)) library_photo_source_collection_real_notify_editable_reimported; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((LibraryPhotoSourceCollectionClass *) klass)->notify_source_reimported = (void (*) (LibraryPhotoSourceCollection *, LibraryPhoto*, PhotoMetadata*)) library_photo_source_collection_real_notify_source_reimported; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((LibraryPhotoSourceCollectionClass *) klass)->notify_baseline_reimported = (void (*) (LibraryPhotoSourceCollection *, LibraryPhoto*, PhotoMetadata*)) library_photo_source_collection_real_notify_baseline_reimported; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceCollectionClass *) klass)->fetch_by_numeric_id = (MediaSource* (*) (MediaSourceCollection *, gint64)) library_photo_source_collection_real_fetch_by_numeric_id; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceCollectionClass *) klass)->fetch_by_source_id = (MediaSource* (*) (MediaSourceCollection *, const gchar*)) library_photo_source_collection_real_fetch_by_source_id; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceCollectionClass *) klass)->get_event_source_ids = (GeeCollection* (*) (MediaSourceCollection *, EventID*)) library_photo_source_collection_real_get_event_source_ids; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((SourceCollectionClass *) klass)->has_backlink = (gboolean (*) (SourceCollection *, SourceBacklink*)) library_photo_source_collection_real_has_backlink; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((SourceCollectionClass *) klass)->remove_backlink = (void (*) (SourceCollection *, SourceBacklink*)) library_photo_source_collection_real_remove_backlink; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((LibraryPhotoSourceCollectionClass *) klass)->master_reimported = library_photo_source_collection_real_master_reimported; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((LibraryPhotoSourceCollectionClass *) klass)->editable_reimported = library_photo_source_collection_real_editable_reimported; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((LibraryPhotoSourceCollectionClass *) klass)->baseline_reimported = library_photo_source_collection_real_baseline_reimported; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - ((LibraryPhotoSourceCollectionClass *) klass)->source_reimported = library_photo_source_collection_real_source_reimported; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - MEDIA_SOURCE_COLLECTION_CLASS (klass)->get_transaction_controller = library_photo_source_collection_real_get_transaction_controller; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_MASTER_REIMPORTED_SIGNAL] = g_signal_new ("master-reimported", TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LibraryPhotoSourceCollectionClass, master_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA, G_TYPE_NONE, 2, TYPE_LIBRARY_PHOTO, TYPE_PHOTO_METADATA); -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_EDITABLE_REIMPORTED_SIGNAL] = g_signal_new ("editable-reimported", TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LibraryPhotoSourceCollectionClass, editable_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA, G_TYPE_NONE, 2, TYPE_LIBRARY_PHOTO, TYPE_PHOTO_METADATA); -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_BASELINE_REIMPORTED_SIGNAL] = g_signal_new ("baseline-reimported", TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LibraryPhotoSourceCollectionClass, baseline_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA, G_TYPE_NONE, 2, TYPE_LIBRARY_PHOTO, TYPE_PHOTO_METADATA); -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_collection_signals[LIBRARY_PHOTO_SOURCE_COLLECTION_SOURCE_REIMPORTED_SIGNAL] = g_signal_new ("source-reimported", TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LibraryPhotoSourceCollectionClass, source_reimported), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_MEDIA_METADATA, G_TYPE_NONE, 2, TYPE_LIBRARY_PHOTO, TYPE_PHOTO_METADATA); -#line 38735 "Photo.c" -} - - -static void -library_photo_source_collection_instance_init (LibraryPhotoSourceCollection * self) -{ - GeeHashMap* _tmp0_; - GeeHashMap* _tmp1_; - GeeTreeMultiMap* _tmp2_; - GeeHashMap* _tmp3_; - GeeHashMap* _tmp4_; - GeeTreeMultiMap* _tmp5_; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv = LIBRARY_PHOTO_SOURCE_COLLECTION_GET_PRIVATE (self); -#line 4482 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->_transaction_controller = NULL; -#line 4483 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); -#line 4483 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->by_editable_file = _tmp0_; -#line 4485 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); -#line 4485 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->by_raw_development_file = _tmp1_; -#line 4487 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = gee_tree_multi_map_new (G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, (GDestroyNotify) g_free, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _int64_compare_gcompare_data_func, NULL, NULL, NULL, NULL, NULL); -#line 4487 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->filesize_to_photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_MULTI_MAP, GeeMultiMap); -#line 4489 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, _int64_equal_gee_equal_data_func, NULL, NULL); -#line 4489 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->photo_to_master_filesize = _tmp3_; -#line 4491 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, _int64_equal_gee_equal_data_func, NULL, NULL); -#line 4491 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->photo_to_editable_filesize = _tmp4_; -#line 4493 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = gee_tree_multi_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 4493 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->photo_to_raw_development_filesize = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_MULTI_MAP, GeeMultiMap); -#line 38776 "Photo.c" -} - - -static void -library_photo_source_collection_finalize (DataCollection * obj) -{ - LibraryPhotoSourceCollection * self; -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection); -#line 4482 "/home/jens/Source/shotwell/src/Photo.vala" - _transaction_controller_unref0 (self->priv->_transaction_controller); -#line 4483 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->by_editable_file); -#line 4485 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->by_raw_development_file); -#line 4487 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->filesize_to_photo); -#line 4489 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->photo_to_master_filesize); -#line 4491 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->photo_to_editable_filesize); -#line 4493 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->photo_to_raw_development_filesize); -#line 4463 "/home/jens/Source/shotwell/src/Photo.vala" - DATA_COLLECTION_CLASS (library_photo_source_collection_parent_class)->finalize (obj); -#line 38802 "Photo.c" -} - - -GType -library_photo_source_collection_get_type (void) -{ - static volatile gsize library_photo_source_collection_type_id__volatile = 0; - if (g_once_init_enter (&library_photo_source_collection_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryPhotoSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_photo_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryPhotoSourceCollection), 0, (GInstanceInitFunc) library_photo_source_collection_instance_init, NULL }; - GType library_photo_source_collection_type_id; - library_photo_source_collection_type_id = g_type_register_static (TYPE_MEDIA_SOURCE_COLLECTION, "LibraryPhotoSourceCollection", &g_define_type_info, 0); - g_once_init_leave (&library_photo_source_collection_type_id__volatile, library_photo_source_collection_type_id); - } - return library_photo_source_collection_type_id__volatile; -} - - -static void -_library_photo_generate_thumbnails_one_shot_callback (gpointer self) -{ -#line 4985 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_generate_thumbnails ((LibraryPhoto*) self); -#line 38825 "Photo.c" -} - - -static LibraryPhoto* -library_photo_construct (GType object_type, - PhotoRow* row) -{ - LibraryPhoto * self = NULL; - OneShotScheduler* _tmp0_; - guint64 _tmp1_; - guint64 _tmp4_; -#line 4980 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO_ROW (row), NULL); -#line 4981 "/home/jens/Source/shotwell/src/Photo.vala" - self = (LibraryPhoto*) photo_construct (object_type, row); -#line 4983 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->import_keywords); -#line 4983 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->import_keywords = NULL; -#line 4985 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = one_shot_scheduler_new ("LibraryPhoto", _library_photo_generate_thumbnails_one_shot_callback, self); -#line 4985 "/home/jens/Source/shotwell/src/Photo.vala" - _one_shot_scheduler_unref0 (self->priv->thumbnail_scheduler); -#line 4985 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->thumbnail_scheduler = _tmp0_; -#line 4988 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = row->flags; -#line 4988 "/home/jens/Source/shotwell/src/Photo.vala" - if ((_tmp1_ & (LIBRARY_PHOTO_FLAG_TRASH | LIBRARY_PHOTO_FLAG_OFFLINE)) != ((guint64) 0)) { -#line 38855 "Photo.c" - LibraryPhotoSourceCollection* _tmp2_; - const gchar* _tmp3_; -#line 4989 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = library_photo_global; -#line 4989 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = row->backlinks; -#line 4989 "/home/jens/Source/shotwell/src/Photo.vala" - data_source_rehydrate_backlinks (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp3_); -#line 38864 "Photo.c" - } -#line 4991 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = row->flags; -#line 4991 "/home/jens/Source/shotwell/src/Photo.vala" - if ((_tmp4_ & (LIBRARY_PHOTO_FLAG_HIDDEN | LIBRARY_PHOTO_FLAG_FAVORITE)) != ((guint64) 0)) { -#line 38870 "Photo.c" - guint64 _tmp5_; -#line 4992 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = row->flags; -#line 4992 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_upgrade_rating_flags (self, _tmp5_); -#line 38876 "Photo.c" - } -#line 4980 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 38880 "Photo.c" -} - - -static LibraryPhoto* -library_photo_new (PhotoRow* row) -{ -#line 4980 "/home/jens/Source/shotwell/src/Photo.vala" - return library_photo_construct (TYPE_LIBRARY_PHOTO, row); -#line 38889 "Photo.c" -} - - -static LibraryPhoto* -library_photo_construct_from_import_params (GType object_type, - PhotoImportParams* import_params) -{ - LibraryPhoto * self = NULL; - PhotoRow* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - OneShotScheduler* _tmp3_; - PhotoRow* _tmp4_; - guint64 _tmp5_; - PhotoRow* _tmp9_; - guint64 _tmp10_; -#line 4995 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO_IMPORT_PARAMS (import_params), NULL); -#line 4996 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = import_params->row; -#line 4996 "/home/jens/Source/shotwell/src/Photo.vala" - self = (LibraryPhoto*) photo_construct (object_type, _tmp0_); -#line 4998 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = import_params->keywords; -#line 4998 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 4998 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->import_keywords); -#line 4998 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->import_keywords = _tmp2_; -#line 4999 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = one_shot_scheduler_new ("LibraryPhoto", _library_photo_generate_thumbnails_one_shot_callback, self); -#line 4999 "/home/jens/Source/shotwell/src/Photo.vala" - _one_shot_scheduler_unref0 (self->priv->thumbnail_scheduler); -#line 4999 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->thumbnail_scheduler = _tmp3_; -#line 5002 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = import_params->row; -#line 5002 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_->flags; -#line 5002 "/home/jens/Source/shotwell/src/Photo.vala" - if ((_tmp5_ & (LIBRARY_PHOTO_FLAG_TRASH | LIBRARY_PHOTO_FLAG_OFFLINE)) != ((guint64) 0)) { -#line 38932 "Photo.c" - LibraryPhotoSourceCollection* _tmp6_; - PhotoRow* _tmp7_; - const gchar* _tmp8_; -#line 5003 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = library_photo_global; -#line 5003 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = import_params->row; -#line 5003 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _tmp7_->backlinks; -#line 5003 "/home/jens/Source/shotwell/src/Photo.vala" - data_source_rehydrate_backlinks (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp8_); -#line 38944 "Photo.c" - } -#line 5005 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = import_params->row; -#line 5005 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_->flags; -#line 5005 "/home/jens/Source/shotwell/src/Photo.vala" - if ((_tmp10_ & (LIBRARY_PHOTO_FLAG_HIDDEN | LIBRARY_PHOTO_FLAG_FAVORITE)) != ((guint64) 0)) { -#line 38952 "Photo.c" - PhotoRow* _tmp11_; - guint64 _tmp12_; -#line 5006 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = import_params->row; -#line 5006 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_->flags; -#line 5006 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_upgrade_rating_flags (self, _tmp12_); -#line 38961 "Photo.c" - } -#line 4995 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 38965 "Photo.c" -} - - -static LibraryPhoto* -library_photo_new_from_import_params (PhotoImportParams* import_params) -{ -#line 4995 "/home/jens/Source/shotwell/src/Photo.vala" - return library_photo_construct_from_import_params (TYPE_LIBRARY_PHOTO, import_params); -#line 38974 "Photo.c" -} - - -void -library_photo_init (ProgressMonitor monitor, - void* monitor_target) -{ - LibraryPhotoSourceCollection* _tmp0_; - GeeArrayList* all = NULL; - PhotoTable* _tmp1_; - PhotoTable* _tmp2_; - GeeArrayList* _tmp3_; - GeeArrayList* _tmp4_; - GeeArrayList* all_photos = NULL; - GeeArrayList* _tmp5_; - GeeArrayList* trashed_photos = NULL; - GeeArrayList* _tmp6_; - GeeArrayList* offline_photos = NULL; - GeeArrayList* _tmp7_; - gint count = 0; - GeeArrayList* _tmp8_; - gint _tmp9_; - gint _tmp10_; - LibraryPhotoSourceCollection* _tmp32_; - GeeArrayList* _tmp33_; - GeeCollection* _tmp34_; - GeeCollection* _tmp35_; - LibraryPhotoSourceCollection* _tmp36_; - GeeArrayList* _tmp37_; - LibraryPhotoSourceCollection* _tmp38_; - GeeArrayList* _tmp39_; -#line 5010 "/home/jens/Source/shotwell/src/Photo.vala" - photo_init_photo (); -#line 5012 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = library_photo_source_collection_new (); -#line 5012 "/home/jens/Source/shotwell/src/Photo.vala" - _data_collection_unref0 (library_photo_global); -#line 5012 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_global = _tmp0_; -#line 5016 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_table_get_instance (); -#line 5016 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 5016 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_table_get_all (_tmp2_); -#line 5016 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 5016 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp2_); -#line 5016 "/home/jens/Source/shotwell/src/Photo.vala" - all = _tmp4_; -#line 5017 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 5017 "/home/jens/Source/shotwell/src/Photo.vala" - all_photos = _tmp5_; -#line 5018 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 5018 "/home/jens/Source/shotwell/src/Photo.vala" - trashed_photos = _tmp6_; -#line 5019 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 5019 "/home/jens/Source/shotwell/src/Photo.vala" - offline_photos = _tmp7_; -#line 5020 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = all; -#line 5020 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 5020 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tmp9_; -#line 5020 "/home/jens/Source/shotwell/src/Photo.vala" - count = _tmp10_; -#line 39046 "Photo.c" - { - gint ctr = 0; -#line 5021 "/home/jens/Source/shotwell/src/Photo.vala" - ctr = 0; -#line 39051 "Photo.c" - { - gboolean _tmp11_ = FALSE; -#line 5021 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = TRUE; -#line 5021 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 39058 "Photo.c" - gint _tmp13_; - gint _tmp14_; - PhotoRow* row = NULL; - GeeArrayList* _tmp15_; - gint _tmp16_; - gpointer _tmp17_; - LibraryPhoto* photo = NULL; - PhotoRow* _tmp18_; - LibraryPhoto* _tmp19_; - guint64 flags = 0ULL; - PhotoRow* _tmp20_; - guint64 _tmp21_; - guint64 _tmp22_; -#line 5021 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp11_) { -#line 39074 "Photo.c" - gint _tmp12_; -#line 5021 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = ctr; -#line 5021 "/home/jens/Source/shotwell/src/Photo.vala" - ctr = _tmp12_ + 1; -#line 39080 "Photo.c" - } -#line 5021 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = FALSE; -#line 5021 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = ctr; -#line 5021 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = count; -#line 5021 "/home/jens/Source/shotwell/src/Photo.vala" - if (!(_tmp13_ < _tmp14_)) { -#line 5021 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 39092 "Photo.c" - } -#line 5022 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = all; -#line 5022 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = ctr; -#line 5022 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp16_); -#line 5022 "/home/jens/Source/shotwell/src/Photo.vala" - row = (PhotoRow*) _tmp17_; -#line 5023 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = row; -#line 5023 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = library_photo_new (_tmp18_); -#line 5023 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp19_; -#line 5024 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = row; -#line 5024 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _tmp20_->flags; -#line 5024 "/home/jens/Source/shotwell/src/Photo.vala" - flags = _tmp21_; -#line 5026 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = flags; -#line 5026 "/home/jens/Source/shotwell/src/Photo.vala" - if ((_tmp22_ & LIBRARY_PHOTO_FLAG_TRASH) != ((guint64) 0)) { -#line 39118 "Photo.c" - GeeArrayList* _tmp23_; - LibraryPhoto* _tmp24_; -#line 5027 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = trashed_photos; -#line 5027 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = photo; -#line 5027 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp24_); -#line 39127 "Photo.c" - } else { - guint64 _tmp25_; -#line 5028 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = flags; -#line 5028 "/home/jens/Source/shotwell/src/Photo.vala" - if ((_tmp25_ & LIBRARY_PHOTO_FLAG_OFFLINE) != ((guint64) 0)) { -#line 39134 "Photo.c" - GeeArrayList* _tmp26_; - LibraryPhoto* _tmp27_; -#line 5029 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = offline_photos; -#line 5029 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = photo; -#line 5029 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp27_); -#line 39143 "Photo.c" - } else { - GeeArrayList* _tmp28_; - LibraryPhoto* _tmp29_; -#line 5031 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = all_photos; -#line 5031 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = photo; -#line 5031 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp29_); -#line 39153 "Photo.c" - } - } -#line 5033 "/home/jens/Source/shotwell/src/Photo.vala" - if (monitor != NULL) { -#line 39158 "Photo.c" - gint _tmp30_; - gint _tmp31_; -#line 5034 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = ctr; -#line 5034 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = count; -#line 5034 "/home/jens/Source/shotwell/src/Photo.vala" - monitor ((guint64) _tmp30_, (guint64) _tmp31_, TRUE, monitor_target); -#line 39167 "Photo.c" - } -#line 5021 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 5021 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_row_unref0 (row); -#line 39173 "Photo.c" - } - } - } -#line 5037 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = library_photo_global; -#line 5037 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = all_photos; -#line 5037 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL); -#line 5037 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = _tmp34_; -#line 5037 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp35_); -#line 5038 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = library_photo_global; -#line 5038 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = trashed_photos; -#line 5038 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_collection_add_many_to_trash (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 5039 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = library_photo_global; -#line 5039 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = offline_photos; -#line 5039 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_collection_add_many_to_offline (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 5009 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (offline_photos); -#line 5009 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (trashed_photos); -#line 5009 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (all_photos); -#line 5009 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (all); -#line 39207 "Photo.c" -} - - -void -library_photo_terminate (void) -{ -#line 5043 "/home/jens/Source/shotwell/src/Photo.vala" - photo_terminate_photo (); -#line 39216 "Photo.c" -} - - -ImportResult -library_photo_import_create (PhotoImportParams* params, - LibraryPhoto* * photo) -{ - LibraryPhoto* _vala_photo = NULL; - ImportResult result = 0; - PhotoID photo_id = {0}; - PhotoTable* _tmp0_; - PhotoTable* _tmp1_; - PhotoRow* _tmp2_; - PhotoID _tmp3_ = {0}; - PhotoID _tmp4_; - LibraryPhoto* _tmp5_; -#line 5050 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_PHOTO_IMPORT_PARAMS (params), 0); -#line 5052 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_table_get_instance (); -#line 5052 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 5052 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = params->row; -#line 5052 "/home/jens/Source/shotwell/src/Photo.vala" - photo_table_add (_tmp1_, _tmp2_, &_tmp3_); -#line 5052 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = _tmp3_; -#line 5052 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp1_); -#line 5052 "/home/jens/Source/shotwell/src/Photo.vala" - photo_id = _tmp4_; -#line 5053 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_id_is_invalid (&photo_id)) { -#line 5054 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_vala_photo); -#line 5054 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_photo = NULL; -#line 5056 "/home/jens/Source/shotwell/src/Photo.vala" - result = IMPORT_RESULT_DATABASE_ERROR; -#line 5056 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo) { -#line 5056 "/home/jens/Source/shotwell/src/Photo.vala" - *photo = _vala_photo; -#line 39261 "Photo.c" - } else { -#line 5056 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_vala_photo); -#line 39265 "Photo.c" - } -#line 5056 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 39269 "Photo.c" - } -#line 5060 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = library_photo_new_from_import_params (params); -#line 5060 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_vala_photo); -#line 5060 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_photo = _tmp5_; -#line 5062 "/home/jens/Source/shotwell/src/Photo.vala" - result = IMPORT_RESULT_SUCCESS; -#line 5062 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo) { -#line 5062 "/home/jens/Source/shotwell/src/Photo.vala" - *photo = _vala_photo; -#line 39283 "Photo.c" - } else { -#line 5062 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_vala_photo); -#line 39287 "Photo.c" - } -#line 5062 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 39291 "Photo.c" -} - - -void -library_photo_import_failed (LibraryPhoto* photo) -{ - GError * _inner_error_ = NULL; -#line 5065 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 39301 "Photo.c" - { - PhotoTable* _tmp0_; - PhotoTable* _tmp1_; - PhotoID _tmp2_ = {0}; -#line 5067 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_table_get_instance (); -#line 5067 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 5067 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo), &_tmp2_); -#line 5067 "/home/jens/Source/shotwell/src/Photo.vala" - photo_table_remove (_tmp1_, &_tmp2_, &_inner_error_); -#line 5067 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp1_); -#line 5067 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5067 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 39320 "Photo.c" - goto __catch419_database_error; - } -#line 5067 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 5067 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 5067 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 39329 "Photo.c" - } - } - goto __finally419; - __catch419_database_error: - { - GError* err = NULL; - GError* _tmp3_; -#line 5066 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 5066 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 5069 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = err; -#line 5069 "/home/jens/Source/shotwell/src/Photo.vala" - app_window_database_error (_tmp3_); -#line 5066 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 39347 "Photo.c" - } - __finally419: -#line 5066 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5066 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 5066 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 5066 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 39358 "Photo.c" - } -} - - -static void -library_photo_real_notify_master_reimported (Photo* base, - PhotoMetadata* metadata) -{ - LibraryPhoto * self; - LibraryPhotoSourceCollection* _tmp0_; -#line 5073 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5073 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 5074 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_CLASS (library_photo_parent_class)->notify_master_reimported (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), metadata); -#line 5076 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = library_photo_global; -#line 5076 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_collection_notify_master_reimported (_tmp0_, self, metadata); -#line 39379 "Photo.c" -} - - -static void -library_photo_real_notify_editable_reimported (Photo* base, - PhotoMetadata* metadata) -{ - LibraryPhoto * self; - LibraryPhotoSourceCollection* _tmp0_; -#line 5079 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5079 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 5080 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_CLASS (library_photo_parent_class)->notify_editable_reimported (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), metadata); -#line 5082 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = library_photo_global; -#line 5082 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_collection_notify_editable_reimported (_tmp0_, self, metadata); -#line 39399 "Photo.c" -} - - -static void -library_photo_real_notify_source_reimported (Photo* base, - PhotoMetadata* metadata) -{ - LibraryPhoto * self; - LibraryPhotoSourceCollection* _tmp0_; -#line 5085 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5085 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 5086 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_CLASS (library_photo_parent_class)->notify_source_reimported (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), metadata); -#line 5088 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = library_photo_global; -#line 5088 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_collection_notify_source_reimported (_tmp0_, self, metadata); -#line 39419 "Photo.c" -} - - -static void -library_photo_real_notify_baseline_reimported (Photo* base, - PhotoMetadata* metadata) -{ - LibraryPhoto * self; - LibraryPhotoSourceCollection* _tmp0_; -#line 5091 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5091 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 5092 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_CLASS (library_photo_parent_class)->notify_baseline_reimported (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), metadata); -#line 5094 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = library_photo_global; -#line 5094 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_collection_notify_baseline_reimported (_tmp0_, self, metadata); -#line 39439 "Photo.c" -} - - -static void -library_photo_generate_thumbnails (LibraryPhoto* self) -{ - GError * _inner_error_ = NULL; -#line 5097 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (self)); -#line 39449 "Photo.c" - { -#line 5099 "/home/jens/Source/shotwell/src/Photo.vala" - thumbnail_cache_import_from_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), TRUE, &_inner_error_); -#line 5099 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 39455 "Photo.c" - goto __catch420_g_error; - } - } - goto __finally420; - __catch420_g_error: - { - GError* err = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - GError* _tmp2_; - const gchar* _tmp3_; -#line 5098 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 5098 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 5101 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 5101 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 5101 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = err; -#line 5101 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_->message; -#line 5101 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:5101: Unable to generate thumbnails for %s: %s", _tmp1_, _tmp3_); -#line 5101 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp1_); -#line 5098 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 39485 "Photo.c" - } - __finally420: -#line 5098 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5098 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 5098 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 5098 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 39496 "Photo.c" - } -#line 5105 "/home/jens/Source/shotwell/src/Photo.vala" - thumbnail_source_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 39500 "Photo.c" -} - - -GeeCollection* -library_photo_get_import_keywords (LibraryPhoto* self) -{ - GeeCollection* result = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; -#line 5109 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO (self), NULL); -#line 5110 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->import_keywords; -#line 5110 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 5110 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp1_; -#line 5110 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 39520 "Photo.c" -} - - -void -library_photo_clear_import_keywords (LibraryPhoto* self) -{ -#line 5113 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (self)); -#line 5114 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->import_keywords); -#line 5114 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->import_keywords = NULL; -#line 39533 "Photo.c" -} - - -static void -library_photo_real_notify_altered (DataObject* base, - Alteration* alteration) -{ - LibraryPhoto * self; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; -#line 5117 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5117 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_ALTERATION (alteration)); -#line 5119 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = self->priv->block_thumbnail_generation; -#line 5119 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp1_) { -#line 5119 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = alteration_has_subject (alteration, "image"); -#line 39554 "Photo.c" - } else { -#line 5119 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = FALSE; -#line 39558 "Photo.c" - } -#line 5119 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp0_) { -#line 39562 "Photo.c" - OneShotScheduler* _tmp2_; -#line 5120 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->thumbnail_scheduler; -#line 5120 "/home/jens/Source/shotwell/src/Photo.vala" - one_shot_scheduler_at_priority_idle (_tmp2_, G_PRIORITY_LOW); -#line 39568 "Photo.c" - } -#line 5122 "/home/jens/Source/shotwell/src/Photo.vala" - DATA_OBJECT_CLASS (library_photo_parent_class)->notify_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), TYPE_DATA_OBJECT, DataObject), alteration); -#line 39572 "Photo.c" -} - - -static GdkPixbuf* -library_photo_real_get_preview_pixbuf (MediaSource* base, - Scaling* scaling, - GError** error) -{ - LibraryPhoto * self; - GdkPixbuf* result = NULL; - GdkPixbuf* pixbuf = NULL; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - GError * _inner_error_ = NULL; -#line 5125 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5125 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 5126 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = thumbnail_source_get_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), (gint) THUMBNAIL_CACHE_SIZE_BIG, &_inner_error_); -#line 5126 "/home/jens/Source/shotwell/src/Photo.vala" - pixbuf = _tmp0_; -#line 5126 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5126 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 5126 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 39601 "Photo.c" - } -#line 5128 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = scaling_perform_on_pixbuf (scaling, pixbuf, GDK_INTERP_BILINEAR, TRUE); -#line 5128 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp1_; -#line 5128 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (pixbuf); -#line 5128 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 39611 "Photo.c" -} - - -static void -library_photo_real_rotate (Photo* base, - Rotation rotation) -{ - LibraryPhoto * self; - GError * _inner_error_ = NULL; -#line 5131 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5133 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->block_thumbnail_generation = TRUE; -#line 5134 "/home/jens/Source/shotwell/src/Photo.vala" - PHOTO_CLASS (library_photo_parent_class)->rotate (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), rotation); -#line 5135 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->block_thumbnail_generation = FALSE; -#line 39629 "Photo.c" - { -#line 5143 "/home/jens/Source/shotwell/src/Photo.vala" - thumbnail_cache_rotate (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), rotation, &_inner_error_); -#line 5143 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 39635 "Photo.c" - goto __catch421_g_error; - } - } - goto __finally421; - __catch421_g_error: - { - GError* err = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - GError* _tmp2_; - const gchar* _tmp3_; -#line 5142 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 5142 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 5146 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 5146 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 5146 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = err; -#line 5146 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_->message; -#line 5146 "/home/jens/Source/shotwell/src/Photo.vala" - g_warning ("Photo.vala:5146: Unable to update thumbnails for %s: %s", _tmp1_, _tmp3_); -#line 5146 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp1_); -#line 5142 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 39665 "Photo.c" - } - __finally421: -#line 5142 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5142 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 5142 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 5142 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 39676 "Photo.c" - } -#line 5149 "/home/jens/Source/shotwell/src/Photo.vala" - thumbnail_source_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 39680 "Photo.c" -} - - -static GdkPixbuf* -library_photo_real_get_thumbnail (ThumbnailSource* base, - gint scale, - GError** error) -{ - LibraryPhoto * self; - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_ = NULL; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; - GError * _inner_error_ = NULL; -#line 5153 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5154 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = thumbnail_cache_fetch (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), scale, &_inner_error_); -#line 5154 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp1_; -#line 5154 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5154 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 5154 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 39707 "Photo.c" - } -#line 5154 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp0_; -#line 5154 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = NULL; -#line 5154 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp2_; -#line 5154 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp0_); -#line 5154 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 39719 "Photo.c" -} - - -static void -_library_photo_on_duplicate_progress_gfile_progress_callback (gint64 current_num_bytes, - gint64 total_num_bytes, - gpointer self) -{ -#line 5166 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_on_duplicate_progress ((LibraryPhoto*) self, current_num_bytes, total_num_bytes); -#line 39730 "Photo.c" -} - - -static void -library_photo_duplicate_backing_photo (LibraryPhoto* self, - BackingPhotoRow* backing, - BackingPhotoID* result, - GError** error) -{ - BackingPhotoID backing_id = {0}; - gboolean _tmp0_ = FALSE; - GFile* file = NULL; - const gchar* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - GError * _inner_error_ = NULL; -#line 5159 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (self)); -#line 5159 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((backing == NULL) || IS_BACKING_PHOTO_ROW (backing)); -#line 5160 "/home/jens/Source/shotwell/src/Photo.vala" - backing_photo_id_init (&backing_id, BACKING_PHOTO_ID_INVALID); -#line 5161 "/home/jens/Source/shotwell/src/Photo.vala" - if (backing == NULL) { -#line 5161 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = TRUE; -#line 39757 "Photo.c" - } else { - const gchar* _tmp1_; -#line 5161 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = backing->filepath; -#line 5161 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _tmp1_ == NULL; -#line 39764 "Photo.c" - } -#line 5161 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp0_) { -#line 5162 "/home/jens/Source/shotwell/src/Photo.vala" - *result = backing_id; -#line 5162 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 39772 "Photo.c" - } -#line 5164 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = backing->filepath; -#line 5164 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = g_file_new_for_path (_tmp2_); -#line 5164 "/home/jens/Source/shotwell/src/Photo.vala" - file = _tmp3_; -#line 5165 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = file; -#line 5165 "/home/jens/Source/shotwell/src/Photo.vala" - if (g_file_query_exists (_tmp4_, NULL)) { -#line 39784 "Photo.c" - GFile* dupe_file = NULL; - GFile* _tmp5_; - GFile* _tmp6_; - DetectedPhotoInformation* detected = NULL; - BackingPhotoRow* state = NULL; - GFile* _tmp7_; - DetectedPhotoInformation* _tmp8_ = NULL; - BackingPhotoRow* _tmp9_; - BackingPhotoRow* _tmp10_; -#line 5166 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = file; -#line 5166 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = library_files_duplicate (_tmp5_, _library_photo_on_duplicate_progress_gfile_progress_callback, self, TRUE, &_inner_error_); -#line 5166 "/home/jens/Source/shotwell/src/Photo.vala" - dupe_file = _tmp6_; -#line 5166 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5166 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 5166 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 5166 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 39808 "Photo.c" - } -#line 5169 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = dupe_file; -#line 5169 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = photo_query_backing_photo_row (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), _tmp7_, PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5, &_tmp8_, &_inner_error_); -#line 5169 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 5169 "/home/jens/Source/shotwell/src/Photo.vala" - detected = _tmp8_; -#line 5169 "/home/jens/Source/shotwell/src/Photo.vala" - state = _tmp9_; -#line 5169 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5169 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 5169 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 5169 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (dupe_file); -#line 5169 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 5169 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 39832 "Photo.c" - } -#line 5171 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = state; -#line 5171 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp10_ != NULL) { -#line 39838 "Photo.c" - BackingPhotoTable* _tmp11_; - BackingPhotoTable* _tmp12_; - BackingPhotoRow* _tmp13_; - BackingPhotoRow* _tmp14_; - BackingPhotoID _tmp15_; -#line 5172 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = backing_photo_table_get_instance (); -#line 5172 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tmp11_; -#line 5172 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = state; -#line 5172 "/home/jens/Source/shotwell/src/Photo.vala" - backing_photo_table_add (_tmp12_, _tmp13_, &_inner_error_); -#line 5172 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp12_); -#line 5172 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5172 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 5172 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (state); -#line 5172 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 5172 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (dupe_file); -#line 5172 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 5172 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 39868 "Photo.c" - } -#line 5173 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = state; -#line 5173 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_->id; -#line 5173 "/home/jens/Source/shotwell/src/Photo.vala" - backing_id = _tmp15_; -#line 39876 "Photo.c" - } -#line 5165 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (state); -#line 5165 "/home/jens/Source/shotwell/src/Photo.vala" - _detected_photo_information_unref0 (detected); -#line 5165 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (dupe_file); -#line 39884 "Photo.c" - } -#line 5177 "/home/jens/Source/shotwell/src/Photo.vala" - *result = backing_id; -#line 5177 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (file); -#line 5177 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 39892 "Photo.c" -} - - -LibraryPhoto* -library_photo_duplicate (LibraryPhoto* self, - GError** error) -{ - LibraryPhoto* result = NULL; - GFile* dupe_file = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - BackingPhotoID dupe_editable_id = {0}; - BackingPhotoRow* _tmp4_; - BackingPhotoRow* _tmp5_; - BackingPhotoID _tmp6_ = {0}; - BackingPhotoID _tmp7_; - BackingPhotoID dupe_raw_shotwell_id = {0}; - BackingPhotoRow* _tmp8_; - BackingPhotoRow* _tmp9_; - BackingPhotoID _tmp10_ = {0}; - BackingPhotoID _tmp11_; - BackingPhotoID dupe_raw_camera_id = {0}; - BackingPhotoRow* _tmp12_; - BackingPhotoRow* _tmp13_; - BackingPhotoID _tmp14_ = {0}; - BackingPhotoID _tmp15_; - BackingPhotoID dupe_raw_embedded_id = {0}; - BackingPhotoRow* _tmp16_; - BackingPhotoRow* _tmp17_; - BackingPhotoID _tmp18_ = {0}; - BackingPhotoID _tmp19_; - PhotoID dupe_id = {0}; - PhotoTable* _tmp20_; - PhotoTable* _tmp21_; - PhotoID _tmp22_ = {0}; - GFile* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - BackingPhotoID _tmp26_; - BackingPhotoID _tmp27_; - BackingPhotoID _tmp28_; - BackingPhotoID _tmp29_; - PhotoID _tmp30_ = {0}; - PhotoID _tmp31_; - PhotoRow* dupe_row = NULL; - PhotoTable* _tmp32_; - PhotoTable* _tmp33_; - PhotoID _tmp34_; - PhotoRow* _tmp35_; - PhotoRow* _tmp36_; - LibraryPhoto* dupe = NULL; - PhotoRow* _tmp37_; - LibraryPhoto* _tmp38_; - LibraryPhoto* _tmp39_; - LibraryPhotoSourceCollection* _tmp40_; - LibraryPhoto* _tmp41_; - LibraryPhoto* _tmp42_; - Event* _tmp43_; - Event* _tmp44_; - gboolean _tmp45_; - GeeCollection* tags = NULL; - TagSourceCollection* _tmp50_; - GeeList* _tmp51_; - GeeCollection* _tmp52_; - GError * _inner_error_ = NULL; -#line 5180 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO (self), NULL); -#line 5182 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 5182 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 5182 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = library_files_duplicate (_tmp1_, _library_photo_on_duplicate_progress_gfile_progress_callback, self, TRUE, &_inner_error_); -#line 5182 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = _tmp2_; -#line 5182 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp1_); -#line 5182 "/home/jens/Source/shotwell/src/Photo.vala" - dupe_file = _tmp3_; -#line 5182 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5182 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 5182 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 39980 "Photo.c" - } -#line 5185 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo)); -#line 5185 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp4_; -#line 5185 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_duplicate_backing_photo (self, _tmp5_, &_tmp6_, &_inner_error_); -#line 5185 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_; -#line 5185 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp5_); -#line 5185 "/home/jens/Source/shotwell/src/Photo.vala" - dupe_editable_id = _tmp7_; -#line 5185 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5185 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 5185 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (dupe_file); -#line 5185 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 40002 "Photo.c" - } -#line 5186 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = photo_get_raw_development_photo_row (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), RAW_DEVELOPER_SHOTWELL); -#line 5186 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_; -#line 5186 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_duplicate_backing_photo (self, _tmp9_, &_tmp10_, &_inner_error_); -#line 5186 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tmp10_; -#line 5186 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp9_); -#line 5186 "/home/jens/Source/shotwell/src/Photo.vala" - dupe_raw_shotwell_id = _tmp11_; -#line 5186 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5186 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 5186 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (dupe_file); -#line 5186 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 40024 "Photo.c" - } -#line 5188 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = photo_get_raw_development_photo_row (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), RAW_DEVELOPER_CAMERA); -#line 5188 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_; -#line 5188 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_duplicate_backing_photo (self, _tmp13_, &_tmp14_, &_inner_error_); -#line 5188 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = _tmp14_; -#line 5188 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp13_); -#line 5188 "/home/jens/Source/shotwell/src/Photo.vala" - dupe_raw_camera_id = _tmp15_; -#line 5188 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5188 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 5188 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (dupe_file); -#line 5188 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 40046 "Photo.c" - } -#line 5190 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = photo_get_raw_development_photo_row (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), RAW_DEVELOPER_EMBEDDED); -#line 5190 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _tmp16_; -#line 5190 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_duplicate_backing_photo (self, _tmp17_, &_tmp18_, &_inner_error_); -#line 5190 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = _tmp18_; -#line 5190 "/home/jens/Source/shotwell/src/Photo.vala" - _backing_photo_row_unref0 (_tmp17_); -#line 5190 "/home/jens/Source/shotwell/src/Photo.vala" - dupe_raw_embedded_id = _tmp19_; -#line 5190 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5190 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 5190 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (dupe_file); -#line 5190 "/home/jens/Source/shotwell/src/Photo.vala" - return NULL; -#line 40068 "Photo.c" - } -#line 5194 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = photo_table_get_instance (); -#line 5194 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = _tmp20_; -#line 5194 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), &_tmp22_); -#line 5194 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = dupe_file; -#line 5194 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = g_file_get_path (_tmp23_); -#line 5194 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = _tmp24_; -#line 5194 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = dupe_editable_id; -#line 5194 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = dupe_raw_shotwell_id; -#line 5194 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = dupe_raw_camera_id; -#line 5194 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = dupe_raw_embedded_id; -#line 5194 "/home/jens/Source/shotwell/src/Photo.vala" - photo_table_duplicate (_tmp21_, &_tmp22_, _tmp25_, &_tmp26_, &_tmp27_, &_tmp28_, &_tmp29_, &_tmp30_); -#line 5194 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = _tmp30_; -#line 5194 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp25_); -#line 5194 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp21_); -#line 5194 "/home/jens/Source/shotwell/src/Photo.vala" - dupe_id = _tmp31_; -#line 5196 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = photo_table_get_instance (); -#line 5196 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = _tmp32_; -#line 5196 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = dupe_id; -#line 5196 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = photo_table_get_row (_tmp33_, &_tmp34_); -#line 5196 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = _tmp35_; -#line 5196 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp33_); -#line 5196 "/home/jens/Source/shotwell/src/Photo.vala" - dupe_row = _tmp36_; -#line 5199 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = dupe_row; -#line 5199 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = library_photo_new (_tmp37_); -#line 5199 "/home/jens/Source/shotwell/src/Photo.vala" - dupe = _tmp38_; -#line 5202 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = dupe; -#line 5202 "/home/jens/Source/shotwell/src/Photo.vala" - thumbnail_cache_duplicate (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 5205 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = library_photo_global; -#line 5205 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = dupe; -#line 5205 "/home/jens/Source/shotwell/src/Photo.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_DATA_OBJECT, DataObject)); -#line 5208 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = dupe; -#line 5208 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = media_source_get_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 5208 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = _tmp43_; -#line 5208 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = _tmp44_ != NULL; -#line 5208 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp44_); -#line 5208 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp45_) { -#line 40142 "Photo.c" - LibraryPhoto* _tmp46_; - Event* _tmp47_; - Event* _tmp48_; - LibraryPhoto* _tmp49_; -#line 5209 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = dupe; -#line 5209 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = media_source_get_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 5209 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = _tmp47_; -#line 5209 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = dupe; -#line 5209 "/home/jens/Source/shotwell/src/Photo.vala" - event_attach (_tmp48_, G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 5209 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp48_); -#line 40159 "Photo.c" - } -#line 5212 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = tag_global; -#line 5212 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp51_ = tag_source_collection_fetch_for_source (_tmp50_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 5212 "/home/jens/Source/shotwell/src/Photo.vala" - tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_COLLECTION, GeeCollection); -#line 5213 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp52_ = tags; -#line 5213 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp52_ != NULL) { -#line 40171 "Photo.c" - { - GeeIterator* _tag_it = NULL; - GeeCollection* _tmp53_; - GeeIterator* _tmp54_; -#line 5214 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp53_ = tags; -#line 5214 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp54_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 5214 "/home/jens/Source/shotwell/src/Photo.vala" - _tag_it = _tmp54_; -#line 5214 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 40184 "Photo.c" - GeeIterator* _tmp55_; - Tag* tag = NULL; - GeeIterator* _tmp56_; - gpointer _tmp57_; - Tag* _tmp58_; - LibraryPhoto* _tmp59_; -#line 5214 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp55_ = _tag_it; -#line 5214 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp55_)) { -#line 5214 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 40197 "Photo.c" - } -#line 5214 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp56_ = _tag_it; -#line 5214 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_ = gee_iterator_get (_tmp56_); -#line 5214 "/home/jens/Source/shotwell/src/Photo.vala" - tag = (Tag*) _tmp57_; -#line 5215 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp58_ = tag; -#line 5215 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp59_ = dupe; -#line 5215 "/home/jens/Source/shotwell/src/Photo.vala" - tag_attach (_tmp58_, G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 5214 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (tag); -#line 40213 "Photo.c" - } -#line 5214 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tag_it); -#line 40217 "Photo.c" - } - } -#line 5219 "/home/jens/Source/shotwell/src/Photo.vala" - result = dupe; -#line 5219 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (tags); -#line 5219 "/home/jens/Source/shotwell/src/Photo.vala" - _photo_row_unref0 (dupe_row); -#line 5219 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (dupe_file); -#line 5219 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 40230 "Photo.c" -} - - -static void -library_photo_on_duplicate_progress (LibraryPhoto* self, - gint64 current, - gint64 total) -{ -#line 5222 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (self)); -#line 5223 "/home/jens/Source/shotwell/src/Photo.vala" - spin_event_loop (); -#line 40243 "Photo.c" -} - - -static void -library_photo_upgrade_rating_flags (LibraryPhoto* self, - guint64 flags) -{ -#line 5226 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (self)); -#line 5227 "/home/jens/Source/shotwell/src/Photo.vala" - if ((flags & LIBRARY_PHOTO_FLAG_HIDDEN) != ((guint64) 0)) { -#line 5228 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), RATING_REJECTED); -#line 5229 "/home/jens/Source/shotwell/src/Photo.vala" - photo_remove_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_HIDDEN, NULL); -#line 40259 "Photo.c" - } -#line 5232 "/home/jens/Source/shotwell/src/Photo.vala" - if ((flags & LIBRARY_PHOTO_FLAG_FAVORITE) != ((guint64) 0)) { -#line 5233 "/home/jens/Source/shotwell/src/Photo.vala" - media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), RATING_FIVE); -#line 5234 "/home/jens/Source/shotwell/src/Photo.vala" - photo_remove_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_FAVORITE, NULL); -#line 40267 "Photo.c" - } -} - - -static gboolean -library_photo_real_is_trashed (MediaSource* base) -{ - LibraryPhoto * self; - gboolean result = FALSE; -#line 5239 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5240 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo_is_flag_set (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_TRASH); -#line 5240 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 40283 "Photo.c" -} - - -static void -library_photo_real_trash (MediaSource* base) -{ - LibraryPhoto * self; -#line 5243 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5244 "/home/jens/Source/shotwell/src/Photo.vala" - photo_add_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_TRASH, NULL); -#line 40295 "Photo.c" -} - - -static void -library_photo_real_untrash (MediaSource* base) -{ - LibraryPhoto * self; -#line 5247 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5248 "/home/jens/Source/shotwell/src/Photo.vala" - photo_remove_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_TRASH, NULL); -#line 40307 "Photo.c" -} - - -static gboolean -library_photo_real_is_offline (Monitorable* base) -{ - LibraryPhoto * self; - gboolean result = FALSE; -#line 5251 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5252 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo_is_flag_set (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_OFFLINE); -#line 5252 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 40322 "Photo.c" -} - - -static void -library_photo_real_mark_offline (Monitorable* base) -{ - LibraryPhoto * self; -#line 5255 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5256 "/home/jens/Source/shotwell/src/Photo.vala" - photo_add_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_OFFLINE, NULL); -#line 40334 "Photo.c" -} - - -static void -library_photo_real_mark_online (Monitorable* base) -{ - LibraryPhoto * self; -#line 5259 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5260 "/home/jens/Source/shotwell/src/Photo.vala" - photo_remove_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_OFFLINE, NULL); -#line 40346 "Photo.c" -} - - -static gboolean -library_photo_real_is_flagged (Flaggable* base) -{ - LibraryPhoto * self; - gboolean result = FALSE; -#line 5263 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5264 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo_is_flag_set (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_FLAGGED); -#line 5264 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 40361 "Photo.c" -} - - -static void -library_photo_real_mark_flagged (Flaggable* base) -{ - LibraryPhoto * self; - Alteration* _tmp0_; - Alteration* _tmp1_; -#line 5267 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5268 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = alteration_new ("metadata", "flagged"); -#line 5268 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 5268 "/home/jens/Source/shotwell/src/Photo.vala" - photo_add_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_FLAGGED, _tmp1_); -#line 5268 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp1_); -#line 40381 "Photo.c" -} - - -static void -library_photo_real_mark_unflagged (Flaggable* base) -{ - LibraryPhoto * self; - Alteration* _tmp0_; - Alteration* _tmp1_; -#line 5271 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5272 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = alteration_new ("metadata", "flagged"); -#line 5272 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 5272 "/home/jens/Source/shotwell/src/Photo.vala" - photo_remove_flags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), LIBRARY_PHOTO_FLAG_FLAGGED, _tmp1_); -#line 5272 "/home/jens/Source/shotwell/src/Photo.vala" - _alteration_unref0 (_tmp1_); -#line 40401 "Photo.c" -} - - -static gboolean -library_photo_real_internal_delete_backing (DataSource* base, - GError** error) -{ - LibraryPhoto * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - GError * _inner_error_ = NULL; -#line 5275 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5278 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = DATA_SOURCE_CLASS (library_photo_parent_class)->internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), TYPE_DATA_SOURCE, DataSource), &_inner_error_); -#line 5278 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 40419 "Photo.c" - gboolean _tmp1_ = FALSE; -#line 5278 "/home/jens/Source/shotwell/src/Photo.vala" - g_propagate_error (error, _inner_error_); -#line 5278 "/home/jens/Source/shotwell/src/Photo.vala" - return _tmp1_; -#line 40425 "Photo.c" - } -#line 5278 "/home/jens/Source/shotwell/src/Photo.vala" - if (!_tmp0_) { -#line 5279 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 5279 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 40433 "Photo.c" - } -#line 5281 "/home/jens/Source/shotwell/src/Photo.vala" - result = media_source_delete_original_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 5281 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 40439 "Photo.c" -} - - -static void -library_photo_real_destroy (DataSource* base) -{ - LibraryPhoto * self; - PhotoID photo_id = {0}; - PhotoID _tmp0_ = {0}; - GError * _inner_error_ = NULL; -#line 5284 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5285 "/home/jens/Source/shotwell/src/Photo.vala" - photo_get_photo_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), &_tmp0_); -#line 5285 "/home/jens/Source/shotwell/src/Photo.vala" - photo_id = _tmp0_; -#line 5288 "/home/jens/Source/shotwell/src/Photo.vala" - thumbnail_cache_remove (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 40458 "Photo.c" - { - PhotoTable* _tmp1_; - PhotoTable* _tmp2_; - PhotoID _tmp3_; -#line 5294 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_table_get_instance (); -#line 5294 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp1_; -#line 5294 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_id; -#line 5294 "/home/jens/Source/shotwell/src/Photo.vala" - photo_table_remove (_tmp2_, &_tmp3_, &_inner_error_); -#line 5294 "/home/jens/Source/shotwell/src/Photo.vala" - _database_table_unref0 (_tmp2_); -#line 5294 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5294 "/home/jens/Source/shotwell/src/Photo.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 40477 "Photo.c" - goto __catch422_database_error; - } -#line 5294 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 5294 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 5294 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 40486 "Photo.c" - } - } - goto __finally422; - __catch422_database_error: - { - GError* err = NULL; - GError* _tmp4_; -#line 5293 "/home/jens/Source/shotwell/src/Photo.vala" - err = _inner_error_; -#line 5293 "/home/jens/Source/shotwell/src/Photo.vala" - _inner_error_ = NULL; -#line 5296 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = err; -#line 5296 "/home/jens/Source/shotwell/src/Photo.vala" - app_window_database_error (_tmp4_); -#line 5293 "/home/jens/Source/shotwell/src/Photo.vala" - _g_error_free0 (err); -#line 40504 "Photo.c" - } - __finally422: -#line 5293 "/home/jens/Source/shotwell/src/Photo.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5293 "/home/jens/Source/shotwell/src/Photo.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 5293 "/home/jens/Source/shotwell/src/Photo.vala" - g_clear_error (&_inner_error_); -#line 5293 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 40515 "Photo.c" - } -#line 5299 "/home/jens/Source/shotwell/src/Photo.vala" - DATA_SOURCE_CLASS (library_photo_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), TYPE_DATA_SOURCE, DataSource)); -#line 40519 "Photo.c" -} - - -gboolean -library_photo_has_nontrash_duplicate (GFile* file, - const gchar* thumbnail_md5, - const gchar* full_md5, - PhotoFileFormat file_format) -{ - gboolean result = FALSE; - PhotoID _tmp0_ = {0}; -#line 5302 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), FALSE); -#line 5304 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_get_nontrash_duplicate (file, thumbnail_md5, full_md5, file_format, &_tmp0_); -#line 5304 "/home/jens/Source/shotwell/src/Photo.vala" - result = photo_id_is_valid (&_tmp0_); -#line 5304 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 40539 "Photo.c" -} - - -void -library_photo_get_nontrash_duplicate (GFile* file, - const gchar* thumbnail_md5, - const gchar* full_md5, - PhotoFileFormat file_format, - PhotoID* result) -{ - PhotoID* ids = NULL; - gint _tmp0_; - PhotoID* _tmp1_; - gint ids_length1; - gint _ids_size_; - gboolean _tmp2_ = FALSE; - PhotoID* _tmp3_; - gint _tmp3__length1; - PhotoID* _tmp6_; - gint _tmp6__length1; - PhotoID _tmp13_ = {0}; -#line 5307 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((file == NULL) || G_IS_FILE (file)); -#line 5309 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo_get_duplicate_ids (file, thumbnail_md5, full_md5, file_format, &_tmp0_); -#line 5309 "/home/jens/Source/shotwell/src/Photo.vala" - ids = _tmp1_; -#line 5309 "/home/jens/Source/shotwell/src/Photo.vala" - ids_length1 = _tmp0_; -#line 5309 "/home/jens/Source/shotwell/src/Photo.vala" - _ids_size_ = ids_length1; -#line 5311 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = ids; -#line 5311 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3__length1 = ids_length1; -#line 5311 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp3_ == NULL) { -#line 5311 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = TRUE; -#line 40579 "Photo.c" - } else { - PhotoID* _tmp4_; - gint _tmp4__length1; -#line 5311 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = ids; -#line 5311 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4__length1 = ids_length1; -#line 5311 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _tmp4__length1 == 0; -#line 40589 "Photo.c" - } -#line 5311 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_) { -#line 40593 "Photo.c" - PhotoID _tmp5_ = {0}; -#line 5312 "/home/jens/Source/shotwell/src/Photo.vala" - photo_id_init (&_tmp5_, PHOTO_ID_INVALID); -#line 5312 "/home/jens/Source/shotwell/src/Photo.vala" - *result = _tmp5_; -#line 5312 "/home/jens/Source/shotwell/src/Photo.vala" - ids = (g_free (ids), NULL); -#line 5312 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 40603 "Photo.c" - } -#line 5314 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = ids; -#line 5314 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6__length1 = ids_length1; -#line 40609 "Photo.c" - { - PhotoID* id_collection = NULL; - gint id_collection_length1 = 0; - gint _id_collection_size_ = 0; - gint id_it = 0; -#line 5314 "/home/jens/Source/shotwell/src/Photo.vala" - id_collection = _tmp6_; -#line 5314 "/home/jens/Source/shotwell/src/Photo.vala" - id_collection_length1 = _tmp6__length1; -#line 5314 "/home/jens/Source/shotwell/src/Photo.vala" - for (id_it = 0; id_it < _tmp6__length1; id_it = id_it + 1) { -#line 40621 "Photo.c" - PhotoID id = {0}; -#line 5314 "/home/jens/Source/shotwell/src/Photo.vala" - id = id_collection[id_it]; -#line 40625 "Photo.c" - { - LibraryPhoto* photo = NULL; - LibraryPhotoSourceCollection* _tmp7_; - PhotoID _tmp8_; - LibraryPhoto* _tmp9_; - gboolean _tmp10_ = FALSE; - LibraryPhoto* _tmp11_; -#line 5315 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = library_photo_global; -#line 5315 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = id; -#line 5315 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = library_photo_source_collection_fetch (_tmp7_, &_tmp8_); -#line 5315 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp9_; -#line 5316 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = photo; -#line 5316 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp11_ != NULL) { -#line 40645 "Photo.c" - LibraryPhoto* _tmp12_; -#line 5316 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = photo; -#line 5316 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = !media_source_is_trashed (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 40651 "Photo.c" - } else { -#line 5316 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = FALSE; -#line 40655 "Photo.c" - } -#line 5316 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp10_) { -#line 5317 "/home/jens/Source/shotwell/src/Photo.vala" - *result = id; -#line 5317 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 5317 "/home/jens/Source/shotwell/src/Photo.vala" - ids = (g_free (ids), NULL); -#line 5317 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 40667 "Photo.c" - } -#line 5314 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 40671 "Photo.c" - } - } - } -#line 5320 "/home/jens/Source/shotwell/src/Photo.vala" - photo_id_init (&_tmp13_, PHOTO_ID_INVALID); -#line 5320 "/home/jens/Source/shotwell/src/Photo.vala" - *result = _tmp13_; -#line 5320 "/home/jens/Source/shotwell/src/Photo.vala" - ids = (g_free (ids), NULL); -#line 5320 "/home/jens/Source/shotwell/src/Photo.vala" - return; -#line 40683 "Photo.c" -} - - -static gboolean -library_photo_real_has_user_generated_metadata (Photo* base) -{ - LibraryPhoto * self; - gboolean result = FALSE; - GeeList* tags = NULL; - TagSourceCollection* _tmp0_; - GeeList* _tmp1_; - PhotoMetadata* metadata = NULL; - PhotoMetadata* _tmp2_; - PhotoMetadata* _tmp3_; - PhotoMetadata* _tmp10_; - GeeSet* keywords = NULL; - PhotoMetadata* _tmp11_; - GeeSet* _tmp12_; - gint _tmp13_ = 0; - GeeList* _tmp14_; - gint tags_count = 0; - gint _tmp18_ = 0; - GeeSet* _tmp19_; - gint keywords_count = 0; - gint _tmp23_; - gint _tmp24_; - gboolean _tmp25_ = FALSE; - GeeList* _tmp26_; -#line 5323 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5324 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = tag_global; -#line 5324 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = tag_source_collection_fetch_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 5324 "/home/jens/Source/shotwell/src/Photo.vala" - tags = _tmp1_; -#line 5326 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource)); -#line 5326 "/home/jens/Source/shotwell/src/Photo.vala" - metadata = _tmp2_; -#line 5327 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = metadata; -#line 5327 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp3_ == NULL) { -#line 40728 "Photo.c" - gboolean _tmp4_ = FALSE; - gboolean _tmp5_ = FALSE; - GeeList* _tmp6_; -#line 5328 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = tags; -#line 5328 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp6_ != NULL) { -#line 5328 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = TRUE; -#line 40738 "Photo.c" - } else { - GeeList* _tmp7_; - gint _tmp8_; - gint _tmp9_; -#line 5328 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = tags; -#line 5328 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 5328 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_; -#line 5328 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _tmp9_ > 0; -#line 40751 "Photo.c" - } -#line 5328 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp5_) { -#line 5328 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = TRUE; -#line 40757 "Photo.c" - } else { -#line 5328 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)) != RATING_UNRATED; -#line 40761 "Photo.c" - } -#line 5328 "/home/jens/Source/shotwell/src/Photo.vala" - result = _tmp4_; -#line 5328 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 5328 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (tags); -#line 5328 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 40771 "Photo.c" - } -#line 5330 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = metadata; -#line 5330 "/home/jens/Source/shotwell/src/Photo.vala" - if (media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)) != photo_metadata_get_rating (_tmp10_)) { -#line 5331 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 5331 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 5331 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (tags); -#line 5331 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 40785 "Photo.c" - } -#line 5333 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = metadata; -#line 5333 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = photo_metadata_get_keywords (_tmp11_, NULL, NULL, NULL); -#line 5333 "/home/jens/Source/shotwell/src/Photo.vala" - keywords = _tmp12_; -#line 5334 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = tags; -#line 5334 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp14_ != NULL) { -#line 40797 "Photo.c" - GeeList* _tmp15_; - gint _tmp16_; - gint _tmp17_; -#line 5334 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = tags; -#line 5334 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 5334 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = _tmp16_; -#line 5334 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp17_; -#line 40809 "Photo.c" - } else { -#line 5334 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = 0; -#line 40813 "Photo.c" - } -#line 5334 "/home/jens/Source/shotwell/src/Photo.vala" - tags_count = _tmp13_; -#line 5335 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = keywords; -#line 5335 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp19_ != NULL) { -#line 40821 "Photo.c" - GeeSet* _tmp20_; - gint _tmp21_; - gint _tmp22_; -#line 5335 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = keywords; -#line 5335 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 5335 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = _tmp21_; -#line 5335 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp22_; -#line 40833 "Photo.c" - } else { -#line 5335 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = 0; -#line 40837 "Photo.c" - } -#line 5335 "/home/jens/Source/shotwell/src/Photo.vala" - keywords_count = _tmp18_; -#line 5337 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = tags_count; -#line 5337 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = keywords_count; -#line 5337 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp23_ != _tmp24_) { -#line 5338 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 5338 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (keywords); -#line 5338 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 5338 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (tags); -#line 5338 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 40857 "Photo.c" - } -#line 5340 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = tags; -#line 5340 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp26_ != NULL) { -#line 40863 "Photo.c" - GeeSet* _tmp27_; -#line 5340 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = keywords; -#line 5340 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = _tmp27_ != NULL; -#line 40869 "Photo.c" - } else { -#line 5340 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = FALSE; -#line 40873 "Photo.c" - } -#line 5340 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp25_) { -#line 40877 "Photo.c" - { - GeeList* _tag_list = NULL; - GeeList* _tmp28_; - GeeList* _tmp29_; - gint _tag_size = 0; - GeeList* _tmp30_; - gint _tmp31_; - gint _tmp32_; - gint _tag_index = 0; -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = tags; -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = _g_object_ref0 (_tmp28_); -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - _tag_list = _tmp29_; -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = _tag_list; -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = _tmp31_; -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - _tag_size = _tmp32_; -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - _tag_index = -1; -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 40905 "Photo.c" - gint _tmp33_; - gint _tmp34_; - gint _tmp35_; - Tag* tag = NULL; - GeeList* _tmp36_; - gint _tmp37_; - gpointer _tmp38_; - GeeSet* _tmp39_; - Tag* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; - gchar* _tmp44_; - gboolean _tmp45_; -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = _tag_index; -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - _tag_index = _tmp33_ + 1; -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = _tag_index; -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = _tag_size; -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - if (!(_tmp34_ < _tmp35_)) { -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 40932 "Photo.c" - } -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = _tag_list; -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = _tag_index; -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = gee_list_get (_tmp36_, _tmp37_); -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - tag = (Tag*) _tmp38_; -#line 5342 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = keywords; -#line 5342 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = tag; -#line 5342 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_DATA_OBJECT, DataObject)); -#line 5342 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = _tmp41_; -#line 5342 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = g_utf8_normalize (_tmp42_, (gssize) -1, G_NORMALIZE_DEFAULT); -#line 5342 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = _tmp43_; -#line 5342 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = !gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection), _tmp44_); -#line 5342 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp44_); -#line 5342 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp42_); -#line 5342 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp45_) { -#line 5343 "/home/jens/Source/shotwell/src/Photo.vala" - result = TRUE; -#line 5343 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (tag); -#line 5343 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tag_list); -#line 5343 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (keywords); -#line 5343 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 5343 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (tags); -#line 5343 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 40976 "Photo.c" - } -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (tag); -#line 40980 "Photo.c" - } -#line 5341 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tag_list); -#line 40984 "Photo.c" - } - } -#line 5347 "/home/jens/Source/shotwell/src/Photo.vala" - result = FALSE; -#line 5347 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (keywords); -#line 5347 "/home/jens/Source/shotwell/src/Photo.vala" - _media_metadata_unref0 (metadata); -#line 5347 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (tags); -#line 5347 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 40997 "Photo.c" -} - - -static void -library_photo_real_set_user_metadata_for_export (Photo* base, - PhotoMetadata* metadata) -{ - LibraryPhoto * self; - GeeList* photo_tags = NULL; - TagSourceCollection* _tmp0_; - GeeList* _tmp1_; - GeeList* _tmp2_; -#line 5350 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5350 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO_METADATA (metadata)); -#line 5351 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = tag_global; -#line 5351 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = tag_source_collection_fetch_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 5351 "/home/jens/Source/shotwell/src/Photo.vala" - photo_tags = _tmp1_; -#line 5352 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = photo_tags; -#line 5352 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ != NULL) { -#line 41024 "Photo.c" - GeeCollection* string_tags = NULL; - GeeArrayList* _tmp3_; - GeeCollection* _tmp19_; -#line 5353 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 5353 "/home/jens/Source/shotwell/src/Photo.vala" - string_tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection); -#line 41032 "Photo.c" - { - GeeList* _tag_list = NULL; - GeeList* _tmp4_; - GeeList* _tmp5_; - gint _tag_size = 0; - GeeList* _tmp6_; - gint _tmp7_; - gint _tmp8_; - gint _tag_index = 0; -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = photo_tags; -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _g_object_ref0 (_tmp4_); -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - _tag_list = _tmp5_; -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = _tag_list; -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _tmp7_; -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - _tag_size = _tmp8_; -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - _tag_index = -1; -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 41060 "Photo.c" - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; - Tag* tag = NULL; - GeeList* _tmp12_; - gint _tmp13_; - gpointer _tmp14_; - GeeCollection* _tmp15_; - Tag* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tag_index; -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - _tag_index = _tmp9_ + 1; -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _tag_index; -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _tag_size; -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - if (!(_tmp10_ < _tmp11_)) { -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 41084 "Photo.c" - } -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = _tag_list; -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tag_index; -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = gee_list_get (_tmp12_, _tmp13_); -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - tag = (Tag*) _tmp14_; -#line 5355 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = string_tags; -#line 5355 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = tag; -#line 5355 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_OBJECT, DataObject)); -#line 5355 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = _tmp17_; -#line 5355 "/home/jens/Source/shotwell/src/Photo.vala" - gee_collection_add (_tmp15_, _tmp18_); -#line 5355 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (_tmp18_); -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (tag); -#line 41108 "Photo.c" - } -#line 5354 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tag_list); -#line 41112 "Photo.c" - } -#line 5357 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = string_tags; -#line 5357 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_keywords (metadata, _tmp19_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 5352 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (string_tags); -#line 41120 "Photo.c" - } else { -#line 5359 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_keywords (metadata, NULL, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 41124 "Photo.c" - } -#line 5361 "/home/jens/Source/shotwell/src/Photo.vala" - photo_metadata_set_rating (metadata, media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource))); -#line 5350 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo_tags); -#line 41130 "Photo.c" -} - - -static void -library_photo_real_apply_user_metadata_for_reimport (Photo* base, - PhotoMetadata* metadata) -{ - LibraryPhoto * self; - HierarchicalTagIndex* new_htag_index = NULL; - GeeCollection* keywords = NULL; - GeeSet* _tmp3_; - GeeCollection* _tmp4_; - HierarchicalTagIndex* _tmp31_; -#line 5364 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 5364 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO_METADATA (metadata)); -#line 5365 "/home/jens/Source/shotwell/src/Photo.vala" - new_htag_index = NULL; -#line 5367 "/home/jens/Source/shotwell/src/Photo.vala" - if (photo_metadata_has_hierarchical_keywords (metadata)) { -#line 41152 "Photo.c" - GeeSet* _tmp0_; - GeeSet* _tmp1_; - HierarchicalTagIndex* _tmp2_; -#line 5368 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = photo_metadata_get_hierarchical_keywords (metadata); -#line 5368 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _tmp0_; -#line 5368 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = hierarchical_tag_utilities_process_hierarchical_import_keywords (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 5368 "/home/jens/Source/shotwell/src/Photo.vala" - _hierarchical_tag_index_unref0 (new_htag_index); -#line 5368 "/home/jens/Source/shotwell/src/Photo.vala" - new_htag_index = _tmp2_; -#line 5368 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp1_); -#line 41168 "Photo.c" - } -#line 5372 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo_metadata_get_keywords (metadata, NULL, NULL, NULL); -#line 5372 "/home/jens/Source/shotwell/src/Photo.vala" - keywords = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection); -#line 5373 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = keywords; -#line 5373 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp4_ != NULL) { -#line 41178 "Photo.c" - { - GeeIterator* _keyword_it = NULL; - GeeCollection* _tmp5_; - GeeIterator* _tmp6_; -#line 5374 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = keywords; -#line 5374 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 5374 "/home/jens/Source/shotwell/src/Photo.vala" - _keyword_it = _tmp6_; -#line 5374 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 41191 "Photo.c" - GeeIterator* _tmp7_; - gchar* keyword = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; - gboolean _tmp10_ = FALSE; - HierarchicalTagIndex* _tmp11_; - gchar* safe_keyword = NULL; - const gchar* _tmp14_; - gchar* _tmp15_; - gchar* promoted_keyword = NULL; - const gchar* _tmp16_; - gchar* _tmp17_; - TagSourceCollection* _tmp18_; - const gchar* _tmp19_; - TagSourceCollection* _tmp23_; - const gchar* _tmp24_; - const gchar* _tmp28_; - Tag* _tmp29_; - Tag* _tmp30_; -#line 5374 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _keyword_it; -#line 5374 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp7_)) { -#line 5374 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 41217 "Photo.c" - } -#line 5374 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _keyword_it; -#line 5374 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = gee_iterator_get (_tmp8_); -#line 5374 "/home/jens/Source/shotwell/src/Photo.vala" - keyword = (gchar*) _tmp9_; -#line 5375 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = new_htag_index; -#line 5375 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp11_ != NULL) { -#line 41229 "Photo.c" - HierarchicalTagIndex* _tmp12_; - const gchar* _tmp13_; -#line 5375 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = new_htag_index; -#line 5375 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = keyword; -#line 5375 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = hierarchical_tag_index_is_tag_in_index (_tmp12_, _tmp13_); -#line 41238 "Photo.c" - } else { -#line 5375 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = FALSE; -#line 41242 "Photo.c" - } -#line 5375 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp10_) { -#line 5376 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (keyword); -#line 5376 "/home/jens/Source/shotwell/src/Photo.vala" - continue; -#line 41250 "Photo.c" - } -#line 5378 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = keyword; -#line 5378 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = hierarchical_tag_utilities_make_flat_tag_safe (_tmp14_); -#line 5378 "/home/jens/Source/shotwell/src/Photo.vala" - safe_keyword = _tmp15_; -#line 5379 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = safe_keyword; -#line 5379 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = hierarchical_tag_utilities_flat_to_hierarchical (_tmp16_); -#line 5379 "/home/jens/Source/shotwell/src/Photo.vala" - promoted_keyword = _tmp17_; -#line 5382 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = tag_global; -#line 5382 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = safe_keyword; -#line 5382 "/home/jens/Source/shotwell/src/Photo.vala" - if (tag_source_collection_exists (_tmp18_, _tmp19_, FALSE)) { -#line 41270 "Photo.c" - const gchar* _tmp20_; - Tag* _tmp21_; - Tag* _tmp22_; -#line 5383 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = safe_keyword; -#line 5383 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = tag_for_path (_tmp20_); -#line 5383 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = _tmp21_; -#line 5383 "/home/jens/Source/shotwell/src/Photo.vala" - tag_attach (_tmp22_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 5383 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp22_); -#line 5384 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (promoted_keyword); -#line 5384 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (safe_keyword); -#line 5384 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (keyword); -#line 5384 "/home/jens/Source/shotwell/src/Photo.vala" - continue; -#line 41292 "Photo.c" - } -#line 5387 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = tag_global; -#line 5387 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = promoted_keyword; -#line 5387 "/home/jens/Source/shotwell/src/Photo.vala" - if (tag_source_collection_exists (_tmp23_, _tmp24_, FALSE)) { -#line 41300 "Photo.c" - const gchar* _tmp25_; - Tag* _tmp26_; - Tag* _tmp27_; -#line 5388 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = promoted_keyword; -#line 5388 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = tag_for_path (_tmp25_); -#line 5388 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = _tmp26_; -#line 5388 "/home/jens/Source/shotwell/src/Photo.vala" - tag_attach (_tmp27_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 5388 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp27_); -#line 5389 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (promoted_keyword); -#line 5389 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (safe_keyword); -#line 5389 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (keyword); -#line 5389 "/home/jens/Source/shotwell/src/Photo.vala" - continue; -#line 41322 "Photo.c" - } -#line 5392 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = keyword; -#line 5392 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = tag_for_path (_tmp28_); -#line 5392 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = _tmp29_; -#line 5392 "/home/jens/Source/shotwell/src/Photo.vala" - tag_attach (_tmp30_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 5392 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp30_); -#line 5374 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (promoted_keyword); -#line 5374 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (safe_keyword); -#line 5374 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (keyword); -#line 41340 "Photo.c" - } -#line 5374 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_keyword_it); -#line 41344 "Photo.c" - } - } -#line 5396 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = new_htag_index; -#line 5396 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp31_ != NULL) { -#line 41351 "Photo.c" - { - GeeIterator* _path_it = NULL; - HierarchicalTagIndex* _tmp32_; - GeeCollection* _tmp33_; - GeeCollection* _tmp34_; - GeeIterator* _tmp35_; - GeeIterator* _tmp36_; -#line 5397 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = new_htag_index; -#line 5397 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = hierarchical_tag_index_get_all_paths (_tmp32_); -#line 5397 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = _tmp33_; -#line 5397 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 5397 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = _tmp35_; -#line 5397 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp34_); -#line 5397 "/home/jens/Source/shotwell/src/Photo.vala" - _path_it = _tmp36_; -#line 5397 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 41375 "Photo.c" - GeeIterator* _tmp37_; - gchar* path = NULL; - GeeIterator* _tmp38_; - gpointer _tmp39_; - const gchar* _tmp40_; - Tag* _tmp41_; - Tag* _tmp42_; -#line 5397 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = _path_it; -#line 5397 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp37_)) { -#line 5397 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 41389 "Photo.c" - } -#line 5397 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = _path_it; -#line 5397 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = gee_iterator_get (_tmp38_); -#line 5397 "/home/jens/Source/shotwell/src/Photo.vala" - path = (gchar*) _tmp39_; -#line 5398 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = path; -#line 5398 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = tag_for_path (_tmp40_); -#line 5398 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = _tmp41_; -#line 5398 "/home/jens/Source/shotwell/src/Photo.vala" - tag_attach (_tmp42_, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 5398 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp42_); -#line 5397 "/home/jens/Source/shotwell/src/Photo.vala" - _g_free0 (path); -#line 41409 "Photo.c" - } -#line 5397 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_path_it); -#line 41413 "Photo.c" - } - } -#line 5364 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (keywords); -#line 5364 "/home/jens/Source/shotwell/src/Photo.vala" - _hierarchical_tag_index_unref0 (new_htag_index); -#line 41420 "Photo.c" -} - - -static void -library_photo_class_init (LibraryPhotoClass * klass) -{ -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_parent_class = g_type_class_peek_parent (klass); -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - g_type_class_add_private (klass, sizeof (LibraryPhotoPrivate)); -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->notify_master_reimported = (void (*) (Photo *, PhotoMetadata*)) library_photo_real_notify_master_reimported; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->notify_editable_reimported = (void (*) (Photo *, PhotoMetadata*)) library_photo_real_notify_editable_reimported; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->notify_source_reimported = (void (*) (Photo *, PhotoMetadata*)) library_photo_real_notify_source_reimported; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->notify_baseline_reimported = (void (*) (Photo *, PhotoMetadata*)) library_photo_real_notify_baseline_reimported; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((DataObjectClass *) klass)->notify_altered = (void (*) (DataObject *, Alteration*)) library_photo_real_notify_altered; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->get_preview_pixbuf = (GdkPixbuf* (*) (MediaSource *, Scaling*, GError**)) library_photo_real_get_preview_pixbuf; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->rotate = (void (*) (Photo *, Rotation)) library_photo_real_rotate; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((ThumbnailSourceClass *) klass)->get_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) library_photo_real_get_thumbnail; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->is_trashed = (gboolean (*) (MediaSource *)) library_photo_real_is_trashed; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->trash = (void (*) (MediaSource *)) library_photo_real_trash; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->untrash = (void (*) (MediaSource *)) library_photo_real_untrash; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->is_offline = (gboolean (*) (MediaSource *)) library_photo_real_is_offline; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->mark_offline = (void (*) (MediaSource *)) library_photo_real_mark_offline; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((MediaSourceClass *) klass)->mark_online = (void (*) (MediaSource *)) library_photo_real_mark_online; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((DataSourceClass *) klass)->internal_delete_backing = (gboolean (*) (DataSource *, GError**)) library_photo_real_internal_delete_backing; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((DataSourceClass *) klass)->destroy = (void (*) (DataSource *)) library_photo_real_destroy; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->has_user_generated_metadata = (gboolean (*) (Photo *)) library_photo_real_has_user_generated_metadata; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->set_user_metadata_for_export = (void (*) (Photo *, PhotoMetadata*)) library_photo_real_set_user_metadata_for_export; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - ((PhotoClass *) klass)->apply_user_metadata_for_reimport = (void (*) (Photo *, PhotoMetadata*)) library_photo_real_apply_user_metadata_for_reimport; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - G_OBJECT_CLASS (klass)->finalize = library_photo_finalize; -#line 41471 "Photo.c" -} - - -static void -library_photo_flaggable_interface_init (FlaggableIface * iface) -{ -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_flaggable_parent_iface = g_type_interface_peek_parent (iface); -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - iface->is_flagged = (gboolean (*) (Flaggable *)) library_photo_real_is_flagged; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - iface->mark_flagged = (void (*) (Flaggable *)) library_photo_real_mark_flagged; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - iface->mark_unflagged = (void (*) (Flaggable *)) library_photo_real_mark_unflagged; -#line 41486 "Photo.c" -} - - -static void -library_photo_monitorable_interface_init (MonitorableIface * iface) -{ -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_monitorable_parent_iface = g_type_interface_peek_parent (iface); -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - iface->is_offline = (gboolean (*) (Monitorable *)) library_photo_real_is_offline; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - iface->mark_offline = (void (*) (Monitorable *)) library_photo_real_mark_offline; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - iface->mark_online = (void (*) (Monitorable *)) library_photo_real_mark_online; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - iface->set_master_file = (void (*) (Monitorable *, GFile*)) photo_set_master_file; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - iface->set_master_timestamp = (void (*) (Monitorable *, GFileInfo*)) photo_set_master_timestamp; -#line 41505 "Photo.c" -} - - -static void -library_photo_instance_init (LibraryPhoto * self) -{ -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv = LIBRARY_PHOTO_GET_PRIVATE (self); -#line 4976 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->block_thumbnail_generation = FALSE; -#line 4977 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->thumbnail_scheduler = NULL; -#line 41518 "Photo.c" -} - - -static void -library_photo_finalize (GObject * obj) -{ - LibraryPhoto * self; -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 4977 "/home/jens/Source/shotwell/src/Photo.vala" - _one_shot_scheduler_unref0 (self->priv->thumbnail_scheduler); -#line 4978 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->import_keywords); -#line 4965 "/home/jens/Source/shotwell/src/Photo.vala" - G_OBJECT_CLASS (library_photo_parent_class)->finalize (obj); -#line 41534 "Photo.c" -} - - -GType -library_photo_get_type (void) -{ - static volatile gsize library_photo_type_id__volatile = 0; - if (g_once_init_enter (&library_photo_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryPhotoClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_photo_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryPhoto), 0, (GInstanceInitFunc) library_photo_instance_init, NULL }; - static const GInterfaceInfo flaggable_info = { (GInterfaceInitFunc) library_photo_flaggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo monitorable_info = { (GInterfaceInitFunc) library_photo_monitorable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType library_photo_type_id; - library_photo_type_id = g_type_register_static (TYPE_PHOTO, "LibraryPhoto", &g_define_type_info, 0); - g_type_add_interface_static (library_photo_type_id, TYPE_FLAGGABLE, &flaggable_info); - g_type_add_interface_static (library_photo_type_id, TYPE_MONITORABLE, &monitorable_info); - g_once_init_leave (&library_photo_type_id__volatile, library_photo_type_id); - } - return library_photo_type_id__volatile; -} - - -LibraryPhotoSourceHoldingTank* -library_photo_source_holding_tank_construct (GType object_type, - LibraryPhotoSourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target) -{ - LibraryPhotoSourceHoldingTank* self = NULL; -#line 5414 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_COLLECTION (sources), NULL); -#line 5416 "/home/jens/Source/shotwell/src/Photo.vala" - self = (LibraryPhotoSourceHoldingTank*) media_source_holding_tank_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), check_to_keep, check_to_keep_target, get_key, get_key_target); -#line 5414 "/home/jens/Source/shotwell/src/Photo.vala" - return self; -#line 41571 "Photo.c" -} - - -LibraryPhotoSourceHoldingTank* -library_photo_source_holding_tank_new (LibraryPhotoSourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target) -{ -#line 5414 "/home/jens/Source/shotwell/src/Photo.vala" - return library_photo_source_holding_tank_construct (TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, sources, check_to_keep, check_to_keep_target, get_key, get_key_target); -#line 41584 "Photo.c" -} - - -LibraryPhoto* -library_photo_source_holding_tank_fetch_by_backing_file (LibraryPhotoSourceHoldingTank* self, - GFile* file) -{ - LibraryPhoto* result = NULL; - LibraryPhoto* ret = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - LibraryPhoto* _tmp2_; - GeeHashMap* _tmp3_; - gpointer _tmp4_; -#line 5419 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO_SOURCE_HOLDING_TANK (self), NULL); -#line 5419 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 5420 "/home/jens/Source/shotwell/src/Photo.vala" - ret = NULL; -#line 5421 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = self->priv->editable_file_map; -#line 5421 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file); -#line 5421 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (ret); -#line 5421 "/home/jens/Source/shotwell/src/Photo.vala" - ret = (LibraryPhoto*) _tmp1_; -#line 5422 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = ret; -#line 5422 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp2_ != NULL) { -#line 5423 "/home/jens/Source/shotwell/src/Photo.vala" - result = ret; -#line 5423 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 41621 "Photo.c" - } -#line 5425 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->development_file_map; -#line 5425 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file); -#line 5425 "/home/jens/Source/shotwell/src/Photo.vala" - result = (LibraryPhoto*) _tmp4_; -#line 5425 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (ret); -#line 5425 "/home/jens/Source/shotwell/src/Photo.vala" - return result; -#line 41633 "Photo.c" -} - - -static void -_library_photo_source_holding_tank_on_editable_replaced_photo_editable_replaced (Photo* _sender, - GFile* old_file, - GFile* new_file, - gpointer self) -{ -#line 5449 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_holding_tank_on_editable_replaced ((LibraryPhotoSourceHoldingTank*) self, _sender, old_file, new_file); -#line 41645 "Photo.c" -} - - -static void -_library_photo_source_holding_tank_on_raw_development_modified_photo_raw_development_modified (Photo* _sender, - gpointer self) -{ -#line 5450 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_holding_tank_on_raw_development_modified ((LibraryPhotoSourceHoldingTank*) self, _sender); -#line 41655 "Photo.c" -} - - -static void -library_photo_source_holding_tank_real_notify_contents_altered (SourceHoldingTank* base, - GeeCollection* added, - GeeCollection* removed) -{ - LibraryPhotoSourceHoldingTank * self; -#line 5428 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTank); -#line 5428 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 5428 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 5430 "/home/jens/Source/shotwell/src/Photo.vala" - if (added != NULL) { -#line 41673 "Photo.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 5431 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_ITERABLE, GeeIterable)); -#line 5431 "/home/jens/Source/shotwell/src/Photo.vala" - _source_it = _tmp0_; -#line 5431 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 41683 "Photo.c" - GeeIterator* _tmp1_; - DataSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - LibraryPhoto* photo = NULL; - DataSource* _tmp4_; - LibraryPhoto* _tmp5_; - LibraryPhoto* _tmp6_; - GFile* _tmp7_; - GFile* _tmp8_; - gboolean _tmp9_; - GeeCollection* raw_files = NULL; - LibraryPhoto* _tmp20_; - GeeCollection* _tmp21_; - GeeCollection* _tmp22_; - LibraryPhoto* _tmp34_; - LibraryPhoto* _tmp35_; -#line 5431 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = _source_it; -#line 5431 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 5431 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 41707 "Photo.c" - } -#line 5431 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = _source_it; -#line 5431 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 5431 "/home/jens/Source/shotwell/src/Photo.vala" - source = (DataSource*) _tmp3_; -#line 5432 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = source; -#line 5432 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 5432 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp5_; -#line 5435 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo; -#line 5435 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PHOTO, Photo)); -#line 5435 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = _tmp7_; -#line 5435 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_ != NULL; -#line 5435 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp8_); -#line 5435 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp9_) { -#line 41733 "Photo.c" - GeeHashMap* _tmp10_; - LibraryPhoto* _tmp11_; - GFile* _tmp12_; - GFile* _tmp13_; - LibraryPhoto* _tmp14_; - GeeMultiMap* _tmp15_; - LibraryPhoto* _tmp16_; - LibraryPhoto* _tmp17_; - GFile* _tmp18_; - GFile* _tmp19_; -#line 5436 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = self->priv->editable_file_map; -#line 5436 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = photo; -#line 5436 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PHOTO, Photo)); -#line 5436 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = _tmp12_; -#line 5436 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = photo; -#line 5436 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_, _tmp14_); -#line 5436 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp13_); -#line 5437 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = self->priv->reverse_editable_file_map; -#line 5437 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = photo; -#line 5437 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = photo; -#line 5437 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PHOTO, Photo)); -#line 5437 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = _tmp18_; -#line 5437 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_set (_tmp15_, _tmp16_, _tmp19_); -#line 5437 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp19_); -#line 41772 "Photo.c" - } -#line 5441 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = photo; -#line 5441 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PHOTO, Photo)); -#line 5441 "/home/jens/Source/shotwell/src/Photo.vala" - raw_files = _tmp21_; -#line 5442 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = raw_files; -#line 5442 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp22_ != NULL) { -#line 41784 "Photo.c" - { - GeeIterator* _f_it = NULL; - GeeCollection* _tmp23_; - GeeIterator* _tmp24_; -#line 5443 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = raw_files; -#line 5443 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 5443 "/home/jens/Source/shotwell/src/Photo.vala" - _f_it = _tmp24_; -#line 5443 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 41797 "Photo.c" - GeeIterator* _tmp25_; - GFile* f = NULL; - GeeIterator* _tmp26_; - gpointer _tmp27_; - GeeHashMap* _tmp28_; - GFile* _tmp29_; - LibraryPhoto* _tmp30_; - GeeMultiMap* _tmp31_; - LibraryPhoto* _tmp32_; - GFile* _tmp33_; -#line 5443 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = _f_it; -#line 5443 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp25_)) { -#line 5443 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 41814 "Photo.c" - } -#line 5443 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = _f_it; -#line 5443 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = gee_iterator_get (_tmp26_); -#line 5443 "/home/jens/Source/shotwell/src/Photo.vala" - f = (GFile*) _tmp27_; -#line 5444 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = self->priv->development_file_map; -#line 5444 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = f; -#line 5444 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = photo; -#line 5444 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp29_, _tmp30_); -#line 5445 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp31_ = self->priv->reverse_development_file_map; -#line 5445 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp32_ = photo; -#line 5445 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp33_ = f; -#line 5445 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_set (_tmp31_, _tmp32_, _tmp33_); -#line 5443 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (f); -#line 41840 "Photo.c" - } -#line 5443 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_f_it); -#line 41844 "Photo.c" - } - } -#line 5449 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp34_ = photo; -#line 5449 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_PHOTO, Photo), "editable-replaced", (GCallback) _library_photo_source_holding_tank_on_editable_replaced_photo_editable_replaced, self); -#line 5450 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp35_ = photo; -#line 5450 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_PHOTO, Photo), "raw-development-modified", (GCallback) _library_photo_source_holding_tank_on_raw_development_modified_photo_raw_development_modified, self); -#line 5431 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (raw_files); -#line 5431 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 5431 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (source); -#line 41861 "Photo.c" - } -#line 5431 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_source_it); -#line 41865 "Photo.c" - } - } -#line 5454 "/home/jens/Source/shotwell/src/Photo.vala" - if (removed != NULL) { -#line 41870 "Photo.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp36_; -#line 5455 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp36_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_ITERABLE, GeeIterable)); -#line 5455 "/home/jens/Source/shotwell/src/Photo.vala" - _source_it = _tmp36_; -#line 5455 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 41880 "Photo.c" - GeeIterator* _tmp37_; - DataSource* source = NULL; - GeeIterator* _tmp38_; - gpointer _tmp39_; - LibraryPhoto* photo = NULL; - DataSource* _tmp40_; - LibraryPhoto* _tmp41_; - GeeMultiMap* _tmp64_; - LibraryPhoto* _tmp65_; - GeeMultiMap* _tmp66_; - LibraryPhoto* _tmp67_; - LibraryPhoto* _tmp68_; - guint _tmp69_; - LibraryPhoto* _tmp70_; - guint _tmp71_; -#line 5455 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp37_ = _source_it; -#line 5455 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp37_)) { -#line 5455 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 41902 "Photo.c" - } -#line 5455 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp38_ = _source_it; -#line 5455 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp39_ = gee_iterator_get (_tmp38_); -#line 5455 "/home/jens/Source/shotwell/src/Photo.vala" - source = (DataSource*) _tmp39_; -#line 5456 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp40_ = source; -#line 5456 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp41_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 5456 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp41_; -#line 41916 "Photo.c" - { - GeeIterator* _f_it = NULL; - GeeMultiMap* _tmp42_; - LibraryPhoto* _tmp43_; - GeeCollection* _tmp44_; - GeeCollection* _tmp45_; - GeeIterator* _tmp46_; - GeeIterator* _tmp47_; -#line 5457 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp42_ = self->priv->reverse_editable_file_map; -#line 5457 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp43_ = photo; -#line 5457 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp44_ = gee_multi_map_get (_tmp42_, _tmp43_); -#line 5457 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp45_ = _tmp44_; -#line 5457 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp46_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 5457 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp47_ = _tmp46_; -#line 5457 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp45_); -#line 5457 "/home/jens/Source/shotwell/src/Photo.vala" - _f_it = _tmp47_; -#line 5457 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 41943 "Photo.c" - GeeIterator* _tmp48_; - GFile* f = NULL; - GeeIterator* _tmp49_; - gpointer _tmp50_; - GeeHashMap* _tmp51_; - GFile* _tmp52_; -#line 5457 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp48_ = _f_it; -#line 5457 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp48_)) { -#line 5457 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 41956 "Photo.c" - } -#line 5457 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp49_ = _f_it; -#line 5457 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp50_ = gee_iterator_get (_tmp49_); -#line 5457 "/home/jens/Source/shotwell/src/Photo.vala" - f = (GFile*) _tmp50_; -#line 5458 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp51_ = self->priv->editable_file_map; -#line 5458 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp52_ = f; -#line 5458 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp52_, NULL); -#line 5457 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (f); -#line 41972 "Photo.c" - } -#line 5457 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_f_it); -#line 41976 "Photo.c" - } - { - GeeIterator* _f_it = NULL; - GeeMultiMap* _tmp53_; - LibraryPhoto* _tmp54_; - GeeCollection* _tmp55_; - GeeCollection* _tmp56_; - GeeIterator* _tmp57_; - GeeIterator* _tmp58_; -#line 5460 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp53_ = self->priv->reverse_development_file_map; -#line 5460 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp54_ = photo; -#line 5460 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp55_ = gee_multi_map_get (_tmp53_, _tmp54_); -#line 5460 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp56_ = _tmp55_; -#line 5460 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp57_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 5460 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp58_ = _tmp57_; -#line 5460 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp56_); -#line 5460 "/home/jens/Source/shotwell/src/Photo.vala" - _f_it = _tmp58_; -#line 5460 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 42004 "Photo.c" - GeeIterator* _tmp59_; - GFile* f = NULL; - GeeIterator* _tmp60_; - gpointer _tmp61_; - GeeHashMap* _tmp62_; - GFile* _tmp63_; -#line 5460 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp59_ = _f_it; -#line 5460 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp59_)) { -#line 5460 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 42017 "Photo.c" - } -#line 5460 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp60_ = _f_it; -#line 5460 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp61_ = gee_iterator_get (_tmp60_); -#line 5460 "/home/jens/Source/shotwell/src/Photo.vala" - f = (GFile*) _tmp61_; -#line 5461 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp62_ = self->priv->development_file_map; -#line 5461 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp63_ = f; -#line 5461 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp63_, NULL); -#line 5460 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (f); -#line 42033 "Photo.c" - } -#line 5460 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_f_it); -#line 42037 "Photo.c" - } -#line 5463 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp64_ = self->priv->reverse_editable_file_map; -#line 5463 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp65_ = photo; -#line 5463 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_remove_all (_tmp64_, _tmp65_); -#line 5464 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp66_ = self->priv->reverse_development_file_map; -#line 5464 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp67_ = photo; -#line 5464 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_remove_all (_tmp66_, _tmp67_); -#line 5466 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp68_ = photo; -#line 5466 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_parse_name ("editable-replaced", TYPE_PHOTO, &_tmp69_, NULL, FALSE); -#line 5466 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, TYPE_PHOTO, Photo), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp69_, 0, NULL, (GCallback) _library_photo_source_holding_tank_on_editable_replaced_photo_editable_replaced, self); -#line 5467 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp70_ = photo; -#line 5467 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_parse_name ("raw-development-modified", TYPE_PHOTO, &_tmp71_, NULL, FALSE); -#line 5467 "/home/jens/Source/shotwell/src/Photo.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, TYPE_PHOTO, Photo), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp71_, 0, NULL, (GCallback) _library_photo_source_holding_tank_on_raw_development_modified_photo_raw_development_modified, self); -#line 5455 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 5455 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (source); -#line 42067 "Photo.c" - } -#line 5455 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_source_it); -#line 42071 "Photo.c" - } - } -#line 5471 "/home/jens/Source/shotwell/src/Photo.vala" - SOURCE_HOLDING_TANK_CLASS (library_photo_source_holding_tank_parent_class)->notify_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), added, removed); -#line 42076 "Photo.c" -} - - -static void -library_photo_source_holding_tank_on_editable_replaced (LibraryPhotoSourceHoldingTank* self, - Photo* _photo, - GFile* old_file, - GFile* new_file) -{ - LibraryPhoto* photo = NULL; - LibraryPhoto* _tmp0_; - LibraryPhoto* _tmp1_; - GeeMultiMap* _tmp7_; - LibraryPhoto* _tmp8_; -#line 5474 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_HOLDING_TANK (self)); -#line 5474 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (_photo)); -#line 5474 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((old_file == NULL) || G_IS_FILE (old_file)); -#line 5474 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail ((new_file == NULL) || G_IS_FILE (new_file)); -#line 5475 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_photo, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _photo) : NULL); -#line 5475 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp0_; -#line 5476 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo; -#line 5476 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (_tmp1_ != NULL, "photo != null"); -#line 5478 "/home/jens/Source/shotwell/src/Photo.vala" - if (old_file != NULL) { -#line 42109 "Photo.c" - GeeHashMap* _tmp2_; - GeeMultiMap* _tmp3_; - LibraryPhoto* _tmp4_; -#line 5479 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->editable_file_map; -#line 5479 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), old_file, NULL); -#line 5480 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = self->priv->reverse_editable_file_map; -#line 5480 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = photo; -#line 5480 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_remove (_tmp3_, _tmp4_, old_file); -#line 42123 "Photo.c" - } -#line 5483 "/home/jens/Source/shotwell/src/Photo.vala" - if (new_file != NULL) { -#line 42127 "Photo.c" - GeeHashMap* _tmp5_; - LibraryPhoto* _tmp6_; -#line 5484 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = self->priv->editable_file_map; -#line 5484 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = photo; -#line 5484 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), new_file, _tmp6_); -#line 42136 "Photo.c" - } -#line 5485 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = self->priv->reverse_editable_file_map; -#line 5485 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = photo; -#line 5485 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_set (_tmp7_, _tmp8_, new_file); -#line 5474 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 42146 "Photo.c" -} - - -static void -library_photo_source_holding_tank_on_raw_development_modified (LibraryPhotoSourceHoldingTank* self, - Photo* _photo) -{ - LibraryPhoto* photo = NULL; - LibraryPhoto* _tmp0_; - LibraryPhoto* _tmp1_; - GeeMultiMap* _tmp2_; - LibraryPhoto* _tmp3_; - GeeCollection* raw_list = NULL; - LibraryPhoto* _tmp17_; - GeeCollection* _tmp18_; - GeeCollection* _tmp19_; -#line 5488 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_SOURCE_HOLDING_TANK (self)); -#line 5488 "/home/jens/Source/shotwell/src/Photo.vala" - g_return_if_fail (IS_PHOTO (_photo)); -#line 5489 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_photo, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _photo) : NULL); -#line 5489 "/home/jens/Source/shotwell/src/Photo.vala" - photo = _tmp0_; -#line 5490 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = photo; -#line 5490 "/home/jens/Source/shotwell/src/Photo.vala" - _vala_assert (_tmp1_ != NULL, "photo != null"); -#line 5493 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = self->priv->reverse_development_file_map; -#line 5493 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = photo; -#line 5493 "/home/jens/Source/shotwell/src/Photo.vala" - if (gee_multi_map_contains (_tmp2_, _tmp3_)) { -#line 42181 "Photo.c" - GeeMultiMap* _tmp15_; - LibraryPhoto* _tmp16_; - { - GeeIterator* _f_it = NULL; - GeeMultiMap* _tmp4_; - LibraryPhoto* _tmp5_; - GeeCollection* _tmp6_; - GeeCollection* _tmp7_; - GeeIterator* _tmp8_; - GeeIterator* _tmp9_; -#line 5494 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp4_ = self->priv->reverse_development_file_map; -#line 5494 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp5_ = photo; -#line 5494 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp6_ = gee_multi_map_get (_tmp4_, _tmp5_); -#line 5494 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp7_ = _tmp6_; -#line 5494 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 5494 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp9_ = _tmp8_; -#line 5494 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_tmp7_); -#line 5494 "/home/jens/Source/shotwell/src/Photo.vala" - _f_it = _tmp9_; -#line 5494 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 42210 "Photo.c" - GeeIterator* _tmp10_; - GFile* f = NULL; - GeeIterator* _tmp11_; - gpointer _tmp12_; - GeeHashMap* _tmp13_; - GFile* _tmp14_; -#line 5494 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp10_ = _f_it; -#line 5494 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp10_)) { -#line 5494 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 42223 "Photo.c" - } -#line 5494 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp11_ = _f_it; -#line 5494 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp12_ = gee_iterator_get (_tmp11_); -#line 5494 "/home/jens/Source/shotwell/src/Photo.vala" - f = (GFile*) _tmp12_; -#line 5495 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp13_ = self->priv->development_file_map; -#line 5495 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp14_ = f; -#line 5495 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp14_, NULL); -#line 5494 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (f); -#line 42239 "Photo.c" - } -#line 5494 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_f_it); -#line 42243 "Photo.c" - } -#line 5496 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp15_ = self->priv->reverse_development_file_map; -#line 5496 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp16_ = photo; -#line 5496 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_remove_all (_tmp15_, _tmp16_); -#line 42251 "Photo.c" - } -#line 5500 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp17_ = photo; -#line 5500 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp18_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PHOTO, Photo)); -#line 5500 "/home/jens/Source/shotwell/src/Photo.vala" - raw_list = _tmp18_; -#line 5501 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp19_ = raw_list; -#line 5501 "/home/jens/Source/shotwell/src/Photo.vala" - if (_tmp19_ != NULL) { -#line 42263 "Photo.c" - { - GeeIterator* _f_it = NULL; - GeeCollection* _tmp20_; - GeeIterator* _tmp21_; -#line 5502 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp20_ = raw_list; -#line 5502 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp21_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 5502 "/home/jens/Source/shotwell/src/Photo.vala" - _f_it = _tmp21_; -#line 5502 "/home/jens/Source/shotwell/src/Photo.vala" - while (TRUE) { -#line 42276 "Photo.c" - GeeIterator* _tmp22_; - GFile* f = NULL; - GeeIterator* _tmp23_; - gpointer _tmp24_; - GeeHashMap* _tmp25_; - GFile* _tmp26_; - LibraryPhoto* _tmp27_; - GeeMultiMap* _tmp28_; - LibraryPhoto* _tmp29_; - GFile* _tmp30_; -#line 5502 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp22_ = _f_it; -#line 5502 "/home/jens/Source/shotwell/src/Photo.vala" - if (!gee_iterator_next (_tmp22_)) { -#line 5502 "/home/jens/Source/shotwell/src/Photo.vala" - break; -#line 42293 "Photo.c" - } -#line 5502 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp23_ = _f_it; -#line 5502 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp24_ = gee_iterator_get (_tmp23_); -#line 5502 "/home/jens/Source/shotwell/src/Photo.vala" - f = (GFile*) _tmp24_; -#line 5503 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp25_ = self->priv->development_file_map; -#line 5503 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp26_ = f; -#line 5503 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp27_ = photo; -#line 5503 "/home/jens/Source/shotwell/src/Photo.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp26_, _tmp27_); -#line 5504 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp28_ = self->priv->reverse_development_file_map; -#line 5504 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp29_ = photo; -#line 5504 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp30_ = f; -#line 5504 "/home/jens/Source/shotwell/src/Photo.vala" - gee_multi_map_set (_tmp28_, _tmp29_, _tmp30_); -#line 5502 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (f); -#line 42319 "Photo.c" - } -#line 5502 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (_f_it); -#line 42323 "Photo.c" - } - } -#line 5488 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (raw_list); -#line 5488 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (photo); -#line 42330 "Photo.c" -} - - -static void -library_photo_source_holding_tank_class_init (LibraryPhotoSourceHoldingTankClass * klass) -{ -#line 5404 "/home/jens/Source/shotwell/src/Photo.vala" - library_photo_source_holding_tank_parent_class = g_type_class_peek_parent (klass); -#line 5404 "/home/jens/Source/shotwell/src/Photo.vala" - ((SourceHoldingTankClass *) klass)->finalize = library_photo_source_holding_tank_finalize; -#line 5404 "/home/jens/Source/shotwell/src/Photo.vala" - g_type_class_add_private (klass, sizeof (LibraryPhotoSourceHoldingTankPrivate)); -#line 5404 "/home/jens/Source/shotwell/src/Photo.vala" - ((SourceHoldingTankClass *) klass)->notify_contents_altered = (void (*) (SourceHoldingTank *, GeeCollection*, GeeCollection*)) library_photo_source_holding_tank_real_notify_contents_altered; -#line 42345 "Photo.c" -} - - -static void -library_photo_source_holding_tank_instance_init (LibraryPhotoSourceHoldingTank * self) -{ - GeeHashMap* _tmp0_; - GeeHashMap* _tmp1_; - GeeHashMultiMap* _tmp2_; - GeeHashMultiMap* _tmp3_; -#line 5404 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv = LIBRARY_PHOTO_SOURCE_HOLDING_TANK_GET_PRIVATE (self); -#line 5405 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); -#line 5405 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->editable_file_map = _tmp0_; -#line 5407 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp1_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); -#line 5407 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->development_file_map = _tmp1_; -#line 5409 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp2_ = gee_hash_multi_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); -#line 5409 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->reverse_editable_file_map = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_MULTI_MAP, GeeMultiMap); -#line 5411 "/home/jens/Source/shotwell/src/Photo.vala" - _tmp3_ = gee_hash_multi_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL); -#line 5411 "/home/jens/Source/shotwell/src/Photo.vala" - self->priv->reverse_development_file_map = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_MULTI_MAP, GeeMultiMap); -#line 42374 "Photo.c" -} - - -static void -library_photo_source_holding_tank_finalize (SourceHoldingTank * obj) -{ - LibraryPhotoSourceHoldingTank * self; -#line 5404 "/home/jens/Source/shotwell/src/Photo.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_PHOTO_SOURCE_HOLDING_TANK, LibraryPhotoSourceHoldingTank); -#line 5405 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->editable_file_map); -#line 5407 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->development_file_map); -#line 5409 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->reverse_editable_file_map); -#line 5411 "/home/jens/Source/shotwell/src/Photo.vala" - _g_object_unref0 (self->priv->reverse_development_file_map); -#line 5404 "/home/jens/Source/shotwell/src/Photo.vala" - SOURCE_HOLDING_TANK_CLASS (library_photo_source_holding_tank_parent_class)->finalize (obj); -#line 42394 "Photo.c" -} - - -GType -library_photo_source_holding_tank_get_type (void) -{ - static volatile gsize library_photo_source_holding_tank_type_id__volatile = 0; - if (g_once_init_enter (&library_photo_source_holding_tank_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryPhotoSourceHoldingTankClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_photo_source_holding_tank_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryPhotoSourceHoldingTank), 0, (GInstanceInitFunc) library_photo_source_holding_tank_instance_init, NULL }; - GType library_photo_source_holding_tank_type_id; - library_photo_source_holding_tank_type_id = g_type_register_static (TYPE_MEDIA_SOURCE_HOLDING_TANK, "LibraryPhotoSourceHoldingTank", &g_define_type_info, 0); - g_once_init_leave (&library_photo_source_holding_tank_type_id__volatile, library_photo_source_holding_tank_type_id); - } - return library_photo_source_holding_tank_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/Photo.vala b/src/Photo.vala index f089d79..0d8e955 100644 --- a/src/Photo.vala +++ b/src/Photo.vala @@ -4698,7 +4698,7 @@ public class LibraryPhotoSourceCollection : MediaSourceCollection { Gee.HashMultiMap map = new Gee.HashMultiMap(); foreach (MediaSource media in media_sources) { LibraryPhoto photo = (LibraryPhoto) media; - PhotoMetadata metadata = photo.get_metadata(); + PhotoMetadata? metadata = photo.get_metadata(); // get an index of all the htags in the application HierarchicalTagIndex global_index = HierarchicalTagIndex.get_global_index(); @@ -4709,7 +4709,7 @@ public class LibraryPhotoSourceCollection : MediaSourceCollection { // hierarchical tag information as plain old tags. If a tag name appears as part of // a hierarchical path, it needs to be excluded from being processed as a flat tag HierarchicalTagIndex? htag_index = null; - if (metadata.has_hierarchical_keywords()) { + if (metadata != null && metadata.has_hierarchical_keywords()) { htag_index = HierarchicalTagUtilities.process_hierarchical_import_keywords( metadata.get_hierarchical_keywords()); } @@ -4732,7 +4732,7 @@ public class LibraryPhotoSourceCollection : MediaSourceCollection { } } - if (metadata.has_hierarchical_keywords()) { + if (metadata != null && metadata.has_hierarchical_keywords()) { foreach (string path in htag_index.get_all_paths()) { string? name = Tag.prep_tag_name(path); if (name != null) @@ -5216,6 +5216,22 @@ public class LibraryPhoto : Photo, Flaggable, Monitorable { } } +#if ENABLE_FACES + // Attach faces. + Gee.Collection? faces = Face.global.fetch_for_source(this); + if (faces != null) { + foreach (Face face in faces) { + FaceLocation? location = FaceLocation.get_face_location(face.get_face_id(), + this.get_photo_id()); + if (location != null) { + face.attach(dupe); + FaceLocation.create(face.get_face_id(), dupe.get_photo_id(), + location.get_serialized_geometry()); + } + } + } +#endif + return dupe; } diff --git a/src/PhotoMonitor.c b/src/PhotoMonitor.c deleted file mode 100644 index 158acec..0000000 --- a/src/PhotoMonitor.c +++ /dev/null @@ -1,8645 +0,0 @@ -/* PhotoMonitor.c generated by valac 0.40.4, the Vala compiler - * generated from PhotoMonitor.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_MONITORABLE_UPDATES (monitorable_updates_get_type ()) -#define MONITORABLE_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE_UPDATES, MonitorableUpdates)) -#define MONITORABLE_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MONITORABLE_UPDATES, MonitorableUpdatesClass)) -#define IS_MONITORABLE_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE_UPDATES)) -#define IS_MONITORABLE_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MONITORABLE_UPDATES)) -#define MONITORABLE_UPDATES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MONITORABLE_UPDATES, MonitorableUpdatesClass)) - -typedef struct _MonitorableUpdates MonitorableUpdates; -typedef struct _MonitorableUpdatesClass MonitorableUpdatesClass; -typedef struct _MonitorableUpdatesPrivate MonitorableUpdatesPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_MONITORABLE (monitorable_get_type ()) -#define MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE, Monitorable)) -#define IS_MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE)) -#define MONITORABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MONITORABLE, MonitorableIface)) - -typedef struct _Monitorable Monitorable; -typedef struct _MonitorableIface MonitorableIface; - -#define TYPE_PHOTO_UPDATES (photo_updates_get_type ()) -#define PHOTO_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_UPDATES, PhotoUpdates)) -#define PHOTO_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_UPDATES, PhotoUpdatesClass)) -#define IS_PHOTO_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_UPDATES)) -#define IS_PHOTO_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_UPDATES)) -#define PHOTO_UPDATES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_UPDATES, PhotoUpdatesClass)) - -typedef struct _PhotoUpdates PhotoUpdates; -typedef struct _PhotoUpdatesClass PhotoUpdatesClass; -typedef struct _PhotoUpdatesPrivate PhotoUpdatesPrivate; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_MEDIA_MONITOR (media_monitor_get_type ()) -#define MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_MONITOR, MediaMonitor)) -#define MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_MONITOR, MediaMonitorClass)) -#define IS_MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_MONITOR)) -#define IS_MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_MONITOR)) -#define MEDIA_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_MONITOR, MediaMonitorClass)) - -typedef struct _MediaMonitor MediaMonitor; -typedef struct _MediaMonitorClass MediaMonitorClass; -typedef struct _MediaMonitorPrivate MediaMonitorPrivate; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define MEDIA_MONITOR_TYPE_DISCOVERED_FILE (media_monitor_discovered_file_get_type ()) - -#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ()) -#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController)) -#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) -#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER)) -#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER)) -#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) - -typedef struct _TransactionController TransactionController; -typedef struct _TransactionControllerClass TransactionControllerClass; - -#define TYPE_PHOTO_MONITOR (photo_monitor_get_type ()) -#define PHOTO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_MONITOR, PhotoMonitor)) -#define PHOTO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_MONITOR, PhotoMonitorClass)) -#define IS_PHOTO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_MONITOR)) -#define IS_PHOTO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_MONITOR)) -#define PHOTO_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_MONITOR, PhotoMonitorClass)) - -typedef struct _PhotoMonitor PhotoMonitor; -typedef struct _PhotoMonitorClass PhotoMonitorClass; -typedef struct _PhotoMonitorPrivate PhotoMonitorPrivate; - -#define TYPE_WORKERS (workers_get_type ()) -#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers)) -#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass)) -#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS)) -#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS)) -#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass)) - -typedef struct _Workers Workers; -typedef struct _WorkersClass WorkersClass; - -#define TYPE_BACKGROUND_JOB (background_job_get_type ()) -#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob)) -#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass)) -#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB)) -#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB)) -#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass)) - -typedef struct _BackgroundJob BackgroundJob; -typedef struct _BackgroundJobClass BackgroundJobClass; - -#define PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB (photo_monitor_reimport_master_job_get_type ()) -#define PHOTO_MONITOR_REIMPORT_MASTER_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, PhotoMonitorReimportMasterJob)) -#define PHOTO_MONITOR_REIMPORT_MASTER_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, PhotoMonitorReimportMasterJobClass)) -#define PHOTO_MONITOR_IS_REIMPORT_MASTER_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB)) -#define PHOTO_MONITOR_IS_REIMPORT_MASTER_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB)) -#define PHOTO_MONITOR_REIMPORT_MASTER_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, PhotoMonitorReimportMasterJobClass)) - -typedef struct _PhotoMonitorReimportMasterJob PhotoMonitorReimportMasterJob; -typedef struct _PhotoMonitorReimportMasterJobClass PhotoMonitorReimportMasterJobClass; - -#define PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB (photo_monitor_reimport_editable_job_get_type ()) -#define PHOTO_MONITOR_REIMPORT_EDITABLE_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, PhotoMonitorReimportEditableJob)) -#define PHOTO_MONITOR_REIMPORT_EDITABLE_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, PhotoMonitorReimportEditableJobClass)) -#define PHOTO_MONITOR_IS_REIMPORT_EDITABLE_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB)) -#define PHOTO_MONITOR_IS_REIMPORT_EDITABLE_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB)) -#define PHOTO_MONITOR_REIMPORT_EDITABLE_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, PhotoMonitorReimportEditableJobClass)) - -typedef struct _PhotoMonitorReimportEditableJob PhotoMonitorReimportEditableJob; -typedef struct _PhotoMonitorReimportEditableJobClass PhotoMonitorReimportEditableJobClass; - -#define PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB (photo_monitor_reimport_raw_development_job_get_type ()) -#define PHOTO_MONITOR_REIMPORT_RAW_DEVELOPMENT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, PhotoMonitorReimportRawDevelopmentJob)) -#define PHOTO_MONITOR_REIMPORT_RAW_DEVELOPMENT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, PhotoMonitorReimportRawDevelopmentJobClass)) -#define PHOTO_MONITOR_IS_REIMPORT_RAW_DEVELOPMENT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB)) -#define PHOTO_MONITOR_IS_REIMPORT_RAW_DEVELOPMENT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB)) -#define PHOTO_MONITOR_REIMPORT_RAW_DEVELOPMENT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, PhotoMonitorReimportRawDevelopmentJobClass)) - -typedef struct _PhotoMonitorReimportRawDevelopmentJob PhotoMonitorReimportRawDevelopmentJob; -typedef struct _PhotoMonitorReimportRawDevelopmentJobClass PhotoMonitorReimportRawDevelopmentJobClass; -enum { - PHOTO_MONITOR_0_PROPERTY, - PHOTO_MONITOR_NUM_PROPERTIES -}; -static GParamSpec* photo_monitor_properties[PHOTO_MONITOR_NUM_PROPERTIES]; -#define _workers_unref0(var) ((var == NULL) ? NULL : (var = (workers_unref (var), NULL))) - -#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ()) -#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) - -typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; -typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; - -#define LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE (library_photo_source_collection_state_get_type ()) -#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ()) -#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow)) -#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) -#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW)) -#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW)) -#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) - -typedef struct _BackingPhotoRow BackingPhotoRow; -typedef struct _BackingPhotoRowClass BackingPhotoRowClass; -#define _backing_photo_row_unref0(var) ((var == NULL) ? NULL : (var = (backing_photo_row_unref (var), NULL))) - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) -typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate; - -#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ()) -typedef struct _BackingPhotoID BackingPhotoID; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_ORIENTATION (orientation_get_type ()) -#define _monitorable_updates_unref0(var) ((var == NULL) ? NULL : (var = (monitorable_updates_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -typedef struct _BackgroundJobPrivate BackgroundJobPrivate; - -#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ()) -typedef struct _PhotoMonitorReimportMasterJobPrivate PhotoMonitorReimportMasterJobPrivate; - -#define PHOTO_TYPE_REIMPORT_MASTER_STATE (photo_reimport_master_state_get_type ()) -#define PHOTO_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterState)) -#define PHOTO_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass)) -#define PHOTO_IS_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE)) -#define PHOTO_IS_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE)) -#define PHOTO_REIMPORT_MASTER_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass)) - -typedef struct _PhotoReimportMasterState PhotoReimportMasterState; -typedef struct _PhotoReimportMasterStateClass PhotoReimportMasterStateClass; -typedef struct _PhotoMonitorReimportEditableJobPrivate PhotoMonitorReimportEditableJobPrivate; - -#define PHOTO_TYPE_REIMPORT_EDITABLE_STATE (photo_reimport_editable_state_get_type ()) -#define PHOTO_REIMPORT_EDITABLE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableState)) -#define PHOTO_REIMPORT_EDITABLE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableStateClass)) -#define PHOTO_IS_REIMPORT_EDITABLE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE)) -#define PHOTO_IS_REIMPORT_EDITABLE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_EDITABLE_STATE)) -#define PHOTO_REIMPORT_EDITABLE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_EDITABLE_STATE, PhotoReimportEditableStateClass)) - -typedef struct _PhotoReimportEditableState PhotoReimportEditableState; -typedef struct _PhotoReimportEditableStateClass PhotoReimportEditableStateClass; -typedef struct _PhotoMonitorReimportRawDevelopmentJobPrivate PhotoMonitorReimportRawDevelopmentJobPrivate; - -#define PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE (photo_reimport_raw_development_state_get_type ()) -#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentState)) -#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentStateClass)) -#define PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE)) -#define PHOTO_IS_REIMPORT_RAW_DEVELOPMENT_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE)) -#define PHOTO_REIMPORT_RAW_DEVELOPMENT_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_RAW_DEVELOPMENT_STATE, PhotoReimportRawDevelopmentStateClass)) - -typedef struct _PhotoReimportRawDevelopmentState PhotoReimportRawDevelopmentState; -typedef struct _PhotoReimportRawDevelopmentStateClass PhotoReimportRawDevelopmentStateClass; -#define _photo_reimport_master_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_master_state_unref (var), NULL))) - -#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ()) -#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)) -#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) -#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE)) -#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE)) -#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) - -typedef struct _AbstractSemaphore AbstractSemaphore; -typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass; -#define _photo_reimport_editable_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_editable_state_unref (var), NULL))) -#define _photo_reimport_raw_development_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_raw_development_state_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _MonitorableIface { - GTypeInterface parent_iface; - gboolean (*is_offline) (Monitorable* self); - void (*mark_online) (Monitorable* self); - void (*mark_offline) (Monitorable* self); - void (*set_master_file) (Monitorable* self, GFile* file); - void (*set_master_timestamp) (Monitorable* self, GFileInfo* info); -}; - -struct _MonitorableUpdates { - GTypeInstance parent_instance; - volatile int ref_count; - MonitorableUpdatesPrivate * priv; - Monitorable* monitorable; -}; - -struct _MonitorableUpdatesClass { - GTypeClass parent_class; - void (*finalize) (MonitorableUpdates *self); - gboolean (*is_in_alteration) (MonitorableUpdates* self); - void (*set_master_file) (MonitorableUpdates* self, GFile* file); - void (*set_master_file_info_altered) (MonitorableUpdates* self, gboolean altered); - void (*set_master_file_info) (MonitorableUpdates* self, GFileInfo* info); - void (*set_master_in_alteration) (MonitorableUpdates* self, gboolean in_alteration); - void (*set_master_alterations_complete) (MonitorableUpdates* self, GFileInfo* info); - void (*mark_offline) (MonitorableUpdates* self); - void (*mark_online) (MonitorableUpdates* self); - void (*reset_online_offline) (MonitorableUpdates* self); - gboolean (*is_all_updated) (MonitorableUpdates* self); -}; - -struct _PhotoUpdates { - MonitorableUpdates parent_instance; - PhotoUpdatesPrivate * priv; - LibraryPhoto* photo; - gboolean reimport_master; - gboolean reimport_editable; - gboolean reimport_raw_developments; - GFile* editable_file; - gboolean editable_file_info_altered; - gboolean raw_developer_file_info_altered; - GFileInfo* editable_file_info; - gboolean editable_in_alteration; - gboolean raw_development_in_alteration; - gboolean revert_to_master; - GeeCollection* developer_files; -}; - -struct _PhotoUpdatesClass { - MonitorableUpdatesClass parent_class; - void (*set_editable_file) (PhotoUpdates* self, GFile* file); - void (*set_editable_file_info) (PhotoUpdates* self, GFileInfo* info); - void (*set_editable_file_info_altered) (PhotoUpdates* self, gboolean altered); - void (*set_editable_in_alteration) (PhotoUpdates* self, gboolean in_alteration); - void (*set_raw_development_in_alteration) (PhotoUpdates* self, gboolean in_alteration); - void (*set_raw_developer_file_info_altered) (PhotoUpdates* self, gboolean altered); - void (*set_revert_to_master) (PhotoUpdates* self, gboolean revert); - void (*add_raw_developer_file) (PhotoUpdates* self, GFile* file); - void (*clear_raw_developer_files) (PhotoUpdates* self); - void (*set_reimport_master) (PhotoUpdates* self, gboolean reimport); - void (*set_reimport_editable) (PhotoUpdates* self, gboolean reimport); - void (*set_reimport_raw_developments) (PhotoUpdates* self, gboolean reimport); -}; - -typedef enum { - MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED, - MEDIA_MONITOR_DISCOVERED_FILE_IGNORE, - MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN -} MediaMonitorDiscoveredFile; - -struct _MediaMonitor { - GObject parent_instance; - MediaMonitorPrivate * priv; -}; - -struct _MediaMonitorClass { - GObjectClass parent_class; - MediaSourceCollection* (*get_media_source_collection) (MediaMonitor* self); - void (*close) (MediaMonitor* self); - gchar* (*to_string) (MediaMonitor* self); - MonitorableUpdates* (*create_updates) (MediaMonitor* self, Monitorable* monitorable); - void (*on_media_source_destroyed) (MediaMonitor* self, DataSource* source); - void (*notify_discovery_started) (MediaMonitor* self); - MediaMonitorDiscoveredFile (*notify_file_discovered) (MediaMonitor* self, GFile* file, GFileInfo* info, Monitorable* * monitorable); - GeeCollection* (*candidates_for_unknown_file) (MediaMonitor* self, GFile* file, GFileInfo* info, MediaMonitorDiscoveredFile* _result_); - GFile** (*get_auxilliary_backing_files) (MediaMonitor* self, Monitorable* monitorable, int* result_length1); - void (*update_backing_file_info) (MediaMonitor* self, Monitorable* monitorable, GFile* file, GFileInfo* info); - void (*notify_discovery_completing) (MediaMonitor* self); - gboolean (*is_file_represented) (MediaMonitor* self, GFile* file); - gboolean (*notify_file_created) (MediaMonitor* self, GFile* file, GFileInfo* info); - gboolean (*notify_file_moved) (MediaMonitor* self, GFile* old_file, GFile* new_file, GFileInfo* new_file_info); - gboolean (*notify_file_altered) (MediaMonitor* self, GFile* file); - gboolean (*notify_file_attributes_altered) (MediaMonitor* self, GFile* file); - gboolean (*notify_file_alteration_completed) (MediaMonitor* self, GFile* file, GFileInfo* info); - gboolean (*notify_file_deleted) (MediaMonitor* self, GFile* file); - void (*process_updates) (MediaMonitor* self, GeeCollection* all_updates, TransactionController* controller, gint* op_count, GError** error); -}; - -struct _PhotoMonitor { - MediaMonitor parent_instance; - PhotoMonitorPrivate * priv; -}; - -struct _PhotoMonitorClass { - MediaMonitorClass parent_class; -}; - -struct _PhotoMonitorPrivate { - Workers* workers; - GeeArrayList* matched_editables; - GeeArrayList* matched_developments; - GeeHashMap* master_reimport_pending; - GeeHashMap* editable_reimport_pending; - GeeHashMap* raw_developments_reimport_pending; -}; - -typedef enum { - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_UNKNOWN, - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE, - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE, - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH, - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE, - LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER -} LibraryPhotoSourceCollectionState; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _BackingPhotoID { - gint64 id; -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _Dimensions { - gint width; - gint height; -}; - -typedef enum { - ORIENTATION_MIN = 1, - ORIENTATION_TOP_LEFT = 1, - ORIENTATION_TOP_RIGHT = 2, - ORIENTATION_BOTTOM_RIGHT = 3, - ORIENTATION_BOTTOM_LEFT = 4, - ORIENTATION_LEFT_TOP = 5, - ORIENTATION_RIGHT_TOP = 6, - ORIENTATION_RIGHT_BOTTOM = 7, - ORIENTATION_LEFT_BOTTOM = 8, - ORIENTATION_MAX = 8 -} Orientation; - -struct _BackingPhotoRow { - GTypeInstance parent_instance; - volatile int ref_count; - BackingPhotoRowPrivate * priv; - BackingPhotoID id; - time_t time_created; - gchar* filepath; - gint64 filesize; - time_t timestamp; - PhotoFileFormat file_format; - Dimensions dim; - Orientation original_orientation; -}; - -struct _BackingPhotoRowClass { - GTypeClass parent_class; - void (*finalize) (BackingPhotoRow *self); -}; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -typedef enum { - BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100, - BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75, - BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50, - BACKGROUND_JOB_JOB_PRIORITY_LOW = 25, - BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0 -} BackgroundJobJobPriority; - -struct _BackgroundJob { - GTypeInstance parent_instance; - volatile int ref_count; - BackgroundJobPrivate * priv; -}; - -struct _BackgroundJobClass { - GTypeClass parent_class; - void (*finalize) (BackgroundJob *self); - void (*execute) (BackgroundJob* self); - BackgroundJobJobPriority (*get_priority) (BackgroundJob* self); -}; - -struct _PhotoMonitorReimportMasterJob { - BackgroundJob parent_instance; - PhotoMonitorReimportMasterJobPrivate * priv; - LibraryPhoto* photo; - PhotoReimportMasterState* reimport_state; - gboolean mark_online; - GError* err; -}; - -struct _PhotoMonitorReimportMasterJobClass { - BackgroundJobClass parent_class; -}; - -struct _PhotoMonitorReimportEditableJob { - BackgroundJob parent_instance; - PhotoMonitorReimportEditableJobPrivate * priv; - LibraryPhoto* photo; - PhotoReimportEditableState* state; - gboolean success; - GError* err; -}; - -struct _PhotoMonitorReimportEditableJobClass { - BackgroundJobClass parent_class; -}; - -struct _PhotoMonitorReimportRawDevelopmentJob { - BackgroundJob parent_instance; - PhotoMonitorReimportRawDevelopmentJobPrivate * priv; - LibraryPhoto* photo; - PhotoReimportRawDevelopmentState* state; - gboolean success; - GError* err; -}; - -struct _PhotoMonitorReimportRawDevelopmentJobClass { - BackgroundJobClass parent_class; -}; - -typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data); -typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data); - -static gpointer photo_updates_parent_class = NULL; -static gpointer photo_monitor_parent_class = NULL; -extern LibraryPhotoSourceCollection* library_photo_global; -static gpointer photo_monitor_reimport_master_job_parent_class = NULL; -static gpointer photo_monitor_reimport_editable_job_parent_class = NULL; -static gpointer photo_monitor_reimport_raw_development_job_parent_class = NULL; - -gpointer monitorable_updates_ref (gpointer instance); -void monitorable_updates_unref (gpointer instance); -GParamSpec* param_spec_monitorable_updates (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_monitorable_updates (GValue* value, - gpointer v_object); -void value_take_monitorable_updates (GValue* value, - gpointer v_object); -gpointer value_get_monitorable_updates (const GValue* value); -GType monitorable_updates_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType monitorable_get_type (void) G_GNUC_CONST; -GType photo_updates_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -PhotoUpdates* photo_updates_new (LibraryPhoto* photo); -PhotoUpdates* photo_updates_construct (GType object_type, - LibraryPhoto* photo); -MonitorableUpdates* monitorable_updates_new (Monitorable* monitorable); -MonitorableUpdates* monitorable_updates_construct (GType object_type, - Monitorable* monitorable); -static void photo_updates_real_mark_offline (MonitorableUpdates* base); -void monitorable_updates_mark_offline (MonitorableUpdates* self); -gboolean photo_updates_is_reimport_master (PhotoUpdates* self); -gboolean photo_updates_is_reimport_editable (PhotoUpdates* self); -GFile* photo_updates_get_editable_file (PhotoUpdates* self); -GFileInfo* photo_updates_get_editable_file_info (PhotoUpdates* self); -GeeCollection* photo_updates_get_raw_developer_files (PhotoUpdates* self); -static gboolean photo_updates_real_is_in_alteration (MonitorableUpdates* base); -gboolean monitorable_updates_is_in_alteration (MonitorableUpdates* self); -gboolean photo_updates_is_revert_to_master (PhotoUpdates* self); -void photo_updates_set_editable_file (PhotoUpdates* self, - GFile* file); -static void photo_updates_real_set_editable_file (PhotoUpdates* self, - GFile* file); -void photo_updates_set_editable_file_info (PhotoUpdates* self, - GFileInfo* info); -static void photo_updates_real_set_editable_file_info (PhotoUpdates* self, - GFileInfo* info); -void photo_updates_set_editable_file_info_altered (PhotoUpdates* self, - gboolean altered); -static void photo_updates_real_set_editable_file_info_altered (PhotoUpdates* self, - gboolean altered); -void photo_updates_set_editable_in_alteration (PhotoUpdates* self, - gboolean in_alteration); -static void photo_updates_real_set_editable_in_alteration (PhotoUpdates* self, - gboolean in_alteration); -void photo_updates_set_raw_development_in_alteration (PhotoUpdates* self, - gboolean in_alteration); -static void photo_updates_real_set_raw_development_in_alteration (PhotoUpdates* self, - gboolean in_alteration); -void photo_updates_set_raw_developer_file_info_altered (PhotoUpdates* self, - gboolean altered); -static void photo_updates_real_set_raw_developer_file_info_altered (PhotoUpdates* self, - gboolean altered); -void photo_updates_set_revert_to_master (PhotoUpdates* self, - gboolean revert); -static void photo_updates_real_set_revert_to_master (PhotoUpdates* self, - gboolean revert); -void photo_updates_add_raw_developer_file (PhotoUpdates* self, - GFile* file); -static void photo_updates_real_add_raw_developer_file (PhotoUpdates* self, - GFile* file); -void photo_updates_clear_raw_developer_files (PhotoUpdates* self); -static void photo_updates_real_clear_raw_developer_files (PhotoUpdates* self); -void photo_updates_set_reimport_master (PhotoUpdates* self, - gboolean reimport); -static void photo_updates_real_set_reimport_master (PhotoUpdates* self, - gboolean reimport); -void monitorable_updates_mark_online (MonitorableUpdates* self); -void photo_updates_set_reimport_editable (PhotoUpdates* self, - gboolean reimport); -static void photo_updates_real_set_reimport_editable (PhotoUpdates* self, - gboolean reimport); -gboolean monitorable_updates_is_set_offline (MonitorableUpdates* self); -void photo_updates_set_reimport_raw_developments (PhotoUpdates* self, - gboolean reimport); -static void photo_updates_real_set_reimport_raw_developments (PhotoUpdates* self, - gboolean reimport); -static gboolean photo_updates_real_is_all_updated (MonitorableUpdates* base); -gboolean monitorable_updates_is_all_updated (MonitorableUpdates* self); -static void photo_updates_finalize (MonitorableUpdates * obj); -GType media_monitor_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -GType media_monitor_discovered_file_get_type (void) G_GNUC_CONST; -gpointer transaction_controller_ref (gpointer instance); -void transaction_controller_unref (gpointer instance); -GParamSpec* param_spec_transaction_controller (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_transaction_controller (GValue* value, - gpointer v_object); -void value_take_transaction_controller (GValue* value, - gpointer v_object); -gpointer value_get_transaction_controller (const GValue* value); -GType transaction_controller_get_type (void) G_GNUC_CONST; -GType photo_monitor_get_type (void) G_GNUC_CONST; -gpointer workers_ref (gpointer instance); -void workers_unref (gpointer instance); -GParamSpec* param_spec_workers (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_workers (GValue* value, - gpointer v_object); -void value_take_workers (GValue* value, - gpointer v_object); -gpointer value_get_workers (const GValue* value); -GType workers_get_type (void) G_GNUC_CONST; -gpointer background_job_ref (gpointer instance); -void background_job_unref (gpointer instance); -GParamSpec* param_spec_background_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_background_job (GValue* value, - gpointer v_object); -void value_take_background_job (GValue* value, - gpointer v_object); -gpointer value_get_background_job (const GValue* value); -GType background_job_get_type (void) G_GNUC_CONST; -static GType photo_monitor_reimport_master_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static GType photo_monitor_reimport_editable_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static GType photo_monitor_reimport_raw_development_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define PHOTO_MONITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_MONITOR, PhotoMonitorPrivate)) -#define PHOTO_MONITOR_MAX_REIMPORT_JOBS_PER_CYCLE 20 -#define PHOTO_MONITOR_MAX_REVERTS_PER_CYCLE 5 -PhotoMonitor* photo_monitor_new (Workers* workers, - GCancellable* cancellable); -PhotoMonitor* photo_monitor_construct (GType object_type, - Workers* workers, - GCancellable* cancellable); -GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -MediaMonitor* media_monitor_construct (GType object_type, - MediaSourceCollection* sources, - GCancellable* cancellable); -static MonitorableUpdates* photo_monitor_real_create_updates (MediaMonitor* base, - Monitorable* monitorable); -static MediaSourceCollection* photo_monitor_real_get_media_source_collection (MediaMonitor* base); -static gboolean photo_monitor_real_is_file_represented (MediaMonitor* base, - GFile* file); -GType library_photo_source_collection_state_get_type (void) G_GNUC_CONST; -static LibraryPhoto* photo_monitor_get_photo_state_by_file (PhotoMonitor* self, - GFile* file, - LibraryPhotoSourceCollectionState* state); -static void photo_monitor_real_close (MediaMonitor* base); -void background_job_cancel (BackgroundJob* self); -void media_monitor_close (MediaMonitor* self); -static void photo_monitor_cancel_reimports (PhotoMonitor* self, - LibraryPhoto* photo); -static MediaMonitorDiscoveredFile photo_monitor_real_notify_file_discovered (MediaMonitor* base, - GFile* file, - GFileInfo* info, - Monitorable* * monitorable); -static GeeCollection* photo_monitor_real_candidates_for_unknown_file (MediaMonitor* base, - GFile* file, - GFileInfo* info, - MediaMonitorDiscoveredFile* _result_); -void library_photo_source_collection_fetch_by_matching_backing (LibraryPhotoSourceCollection* self, - GFileInfo* info, - GeeCollection* matches_master, - GeeCollection* matches_editable, - GeeCollection* matched_development); -gchar* data_object_to_string (DataObject* self); -gboolean photo_does_editable_exist (Photo* self); -void photo_revert_to_master (Photo* self, - gboolean notify); -void photo_monitor_update_editable_file (PhotoMonitor* self, - LibraryPhoto* photo, - GFile* file); -void photo_monitor_update_raw_development_file (PhotoMonitor* self, - LibraryPhoto* photo, - GFile* file); -static GFile** photo_monitor_real_get_auxilliary_backing_files (MediaMonitor* base, - Monitorable* monitorable, - int* result_length1); -gboolean photo_has_editable (Photo* self); -GFile* photo_get_editable_file (Photo* self); -static void _vala_array_add131 (GFile** * array, - int* length, - int* size, - GFile* value); -GeeCollection* photo_get_raw_developer_files (Photo* self); -static void _vala_array_add132 (GFile** * array, - int* length, - int* size, - GFile* value); -static GFile** _vala_array_dup26 (GFile** self, - int length); -static void photo_monitor_real_update_backing_file_info (MediaMonitor* base, - Monitorable* monitorable, - GFile* file, - GFileInfo* info); -GFile* media_monitor_get_master_file (MediaMonitor* self, - Monitorable* monitorable); -static void photo_monitor_check_for_master_changes (PhotoMonitor* self, - LibraryPhoto* photo, - GFileInfo* info); -GFile* photo_monitor_get_editable_file (PhotoMonitor* self, - LibraryPhoto* photo); -static void photo_monitor_check_for_editable_changes (PhotoMonitor* self, - LibraryPhoto* photo, - GFileInfo* info); -GeeCollection* photo_monitor_get_raw_development_files (PhotoMonitor* self, - LibraryPhoto* photo); -static void photo_monitor_check_for_raw_development_changes (PhotoMonitor* self, - LibraryPhoto* photo, - GFileInfo* info); -static void photo_monitor_real_notify_discovery_completing (MediaMonitor* base); -gpointer backing_photo_row_ref (gpointer instance); -void backing_photo_row_unref (gpointer instance); -GParamSpec* param_spec_backing_photo_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_backing_photo_row (GValue* value, - gpointer v_object); -void value_take_backing_photo_row (GValue* value, - gpointer v_object); -gpointer value_get_backing_photo_row (const GValue* value); -GType backing_photo_row_get_type (void) G_GNUC_CONST; -BackingPhotoRow* photo_get_master_photo_row (Photo* self); -gboolean backing_photo_row_matches_file_info (BackingPhotoRow* self, - GFileInfo* info); -gboolean backing_photo_row_is_touched (BackingPhotoRow* self, - GFileInfo* info); -void media_monitor_update_master_file_info_altered (MediaMonitor* self, - Monitorable* monitorable); -void media_monitor_update_master_file_alterations_completed (MediaMonitor* self, - Monitorable* monitorable, - GFileInfo* info); -void photo_monitor_update_reimport_master (PhotoMonitor* self, - LibraryPhoto* photo); -void photo_monitor_update_revert_to_master (PhotoMonitor* self, - LibraryPhoto* photo); -BackingPhotoRow* photo_get_editable_photo_row (Photo* self); -void photo_monitor_update_editable_file_info_altered (PhotoMonitor* self, - LibraryPhoto* photo); -void photo_monitor_update_editable_file_alterations_completed (PhotoMonitor* self, - LibraryPhoto* photo, - GFileInfo* info); -void photo_monitor_update_reimport_editable (PhotoMonitor* self, - LibraryPhoto* photo); -GType raw_developer_get_type (void) G_GNUC_CONST; -void photo_set_raw_developer (Photo* self, - RawDeveloper d, - gboolean notify); -GeeCollection* photo_get_raw_development_photo_rows (Photo* self); -GType backing_photo_id_get_type (void) G_GNUC_CONST; -BackingPhotoID* backing_photo_id_dup (const BackingPhotoID* self); -void backing_photo_id_free (BackingPhotoID* self); -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType orientation_get_type (void) G_GNUC_CONST; -void photo_monitor_update_raw_development_file_info_altered (PhotoMonitor* self, - LibraryPhoto* photo); -void photo_monitor_update_raw_development_file_alterations_completed (PhotoMonitor* self, - LibraryPhoto* photo); -void photo_monitor_update_reimport_raw_developments (PhotoMonitor* self, - LibraryPhoto* photo); -static gboolean photo_monitor_real_notify_file_created (MediaMonitor* base, - GFile* file, - GFileInfo* info); -const gchar* library_photo_source_collection_state_to_string (LibraryPhotoSourceCollectionState self); -void media_monitor_mdbg (const gchar* msg); -void media_monitor_update_online (MediaMonitor* self, - Monitorable* monitorable); -static gboolean photo_monitor_real_notify_file_moved (MediaMonitor* base, - GFile* old_file, - GFile* new_file, - GFileInfo* info); -void media_monitor_update_master_file (MediaMonitor* self, - Monitorable* monitorable, - GFile* file); -void media_monitor_update_offline (MediaMonitor* self, - Monitorable* monitorable); -static gboolean photo_monitor_real_notify_file_altered (MediaMonitor* base, - GFile* file); -void media_monitor_update_master_file_in_alteration (MediaMonitor* self, - Monitorable* monitorable, - gboolean in_alteration); -void photo_monitor_update_editable_file_in_alteration (PhotoMonitor* self, - LibraryPhoto* photo, - gboolean in_alteration); -void photo_monitor_update_raw_development_file_in_alteration (PhotoMonitor* self, - LibraryPhoto* photo, - gboolean in_alteration); -static gboolean photo_monitor_real_notify_file_attributes_altered (MediaMonitor* base, - GFile* file); -static gboolean photo_monitor_real_notify_file_alteration_completed (MediaMonitor* base, - GFile* file, - GFileInfo* info); -static gboolean photo_monitor_real_notify_file_deleted (MediaMonitor* base, - GFile* file); -static void photo_monitor_real_on_media_source_destroyed (MediaMonitor* base, - DataSource* source); -void media_monitor_on_media_source_destroyed (MediaMonitor* self, - DataSource* source); -gboolean media_monitor_has_pending_updates (MediaMonitor* self); -GeeCollection* media_monitor_get_monitorables (MediaMonitor* self); -PhotoUpdates* photo_monitor_get_existing_photo_updates (PhotoMonitor* self, - LibraryPhoto* photo); -GFile* monitorable_updates_get_master_file (MonitorableUpdates* self); -GFile* media_source_get_master_file (MediaSource* self); -LibraryPhoto* library_photo_source_collection_get_state_by_file (LibraryPhotoSourceCollection* self, - GFile* file, - LibraryPhotoSourceCollectionState* state); -PhotoUpdates* photo_monitor_fetch_photo_updates (PhotoMonitor* self, - LibraryPhoto* photo); -MonitorableUpdates* media_monitor_fetch_updates (MediaMonitor* self, - Monitorable* monitorable); -MonitorableUpdates* media_monitor_get_existing_updates (MediaMonitor* self, - Monitorable* monitorable); -static void photo_monitor_real_process_updates (MediaMonitor* base, - GeeCollection* all_updates, - TransactionController* controller, - gint* op_count, - GError** error); -void media_monitor_process_updates (MediaMonitor* self, - GeeCollection* all_updates, - TransactionController* controller, - gint* op_count, - GError** error); -#define MEDIA_MONITOR_MAX_OPERATIONS_PER_CYCLE 100 -GQuark database_error_quark (void); -void photo_set_many_editable_file (GeeMap* map, - GError** error); -void app_window_database_error (GError* err); -void photo_update_many_editable_timestamps (GeeMap* map, - GError** error); -static PhotoMonitorReimportMasterJob* photo_monitor_reimport_master_job_new (PhotoMonitor* owner, - LibraryPhoto* photo); -static PhotoMonitorReimportMasterJob* photo_monitor_reimport_master_job_construct (GType object_type, - PhotoMonitor* owner, - LibraryPhoto* photo); -void workers_enqueue (Workers* self, - BackgroundJob* job); -static PhotoMonitorReimportEditableJob* photo_monitor_reimport_editable_job_new (PhotoMonitor* owner, - LibraryPhoto* photo); -static PhotoMonitorReimportEditableJob* photo_monitor_reimport_editable_job_construct (GType object_type, - PhotoMonitor* owner, - LibraryPhoto* photo); -static PhotoMonitorReimportRawDevelopmentJob* photo_monitor_reimport_raw_development_job_new (PhotoMonitor* owner, - LibraryPhoto* photo); -static PhotoMonitorReimportRawDevelopmentJob* photo_monitor_reimport_raw_development_job_construct (GType object_type, - PhotoMonitor* owner, - LibraryPhoto* photo); -static void photo_monitor_on_master_reimported (PhotoMonitor* self, - BackgroundJob* j); -GType background_job_job_priority_get_type (void) G_GNUC_CONST; -gpointer photo_reimport_master_state_ref (gpointer instance); -void photo_reimport_master_state_unref (gpointer instance); -GParamSpec* photo_param_spec_reimport_master_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void photo_value_set_reimport_master_state (GValue* value, - gpointer v_object); -void photo_value_take_reimport_master_state (GValue* value, - gpointer v_object); -gpointer photo_value_get_reimport_master_state (const GValue* value); -GType photo_reimport_master_state_get_type (void) G_GNUC_CONST; -void photo_finish_reimport_master (Photo* self, - PhotoReimportMasterState* state, - GError** error); -gboolean media_source_is_offline (MediaSource* self); -static void photo_monitor_on_master_reimport_cancelled (PhotoMonitor* self, - BackgroundJob* j); -static void photo_monitor_on_editable_reimported (PhotoMonitor* self, - BackgroundJob* j); -gpointer photo_reimport_editable_state_ref (gpointer instance); -void photo_reimport_editable_state_unref (gpointer instance); -GParamSpec* photo_param_spec_reimport_editable_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void photo_value_set_reimport_editable_state (GValue* value, - gpointer v_object); -void photo_value_take_reimport_editable_state (GValue* value, - gpointer v_object); -gpointer photo_value_get_reimport_editable_state (const GValue* value); -GType photo_reimport_editable_state_get_type (void) G_GNUC_CONST; -void photo_finish_reimport_editable (Photo* self, - PhotoReimportEditableState* state, - GError** error); -static void photo_monitor_on_editable_reimport_cancelled (PhotoMonitor* self, - BackgroundJob* j); -static void photo_monitor_on_raw_development_reimported (PhotoMonitor* self, - BackgroundJob* j); -gpointer photo_reimport_raw_development_state_ref (gpointer instance); -void photo_reimport_raw_development_state_unref (gpointer instance); -GParamSpec* photo_param_spec_reimport_raw_development_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void photo_value_set_reimport_raw_development_state (GValue* value, - gpointer v_object); -void photo_value_take_reimport_raw_development_state (GValue* value, - gpointer v_object); -gpointer photo_value_get_reimport_raw_development_state (const GValue* value); -GType photo_reimport_raw_development_state_get_type (void) G_GNUC_CONST; -void photo_finish_reimport_raw_development (Photo* self, - PhotoReimportRawDevelopmentState* state, - GError** error); -static void photo_monitor_on_raw_development_reimport_cancelled (PhotoMonitor* self, - BackgroundJob* j); -static void _photo_monitor_on_master_reimported_completion_callback (BackgroundJob* job, - gpointer self); -static void _photo_monitor_on_master_reimport_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self); -gpointer abstract_semaphore_ref (gpointer instance); -void abstract_semaphore_unref (gpointer instance); -GParamSpec* param_spec_abstract_semaphore (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_abstract_semaphore (GValue* value, - gpointer v_object); -void value_take_abstract_semaphore (GValue* value, - gpointer v_object); -gpointer value_get_abstract_semaphore (const GValue* value); -GType abstract_semaphore_get_type (void) G_GNUC_CONST; -BackgroundJob* background_job_construct (GType object_type, - GObject* owner, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target, - AbstractSemaphore* completion_semaphore); -static void photo_monitor_reimport_master_job_real_execute (BackgroundJob* base); -gboolean photo_prepare_for_reimport_master (Photo* self, - PhotoReimportMasterState* * reimport_state, - GError** error); -static void photo_monitor_reimport_master_job_finalize (BackgroundJob * obj); -static void _photo_monitor_on_editable_reimported_completion_callback (BackgroundJob* job, - gpointer self); -static void _photo_monitor_on_editable_reimport_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self); -static void photo_monitor_reimport_editable_job_real_execute (BackgroundJob* base); -gboolean photo_prepare_for_reimport_editable (Photo* self, - PhotoReimportEditableState* * state, - GError** error); -static void photo_monitor_reimport_editable_job_finalize (BackgroundJob * obj); -static void _photo_monitor_on_raw_development_reimported_completion_callback (BackgroundJob* job, - gpointer self); -static void _photo_monitor_on_raw_development_reimport_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self); -static void photo_monitor_reimport_raw_development_job_real_execute (BackgroundJob* base); -gboolean photo_prepare_for_reimport_raw_development (Photo* self, - PhotoReimportRawDevelopmentState* * state, - GError** error); -static void photo_monitor_reimport_raw_development_job_finalize (BackgroundJob * obj); -static void photo_monitor_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 25 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return self ? g_object_ref (self) : NULL; -#line 1105 "PhotoMonitor.c" -} - - -PhotoUpdates* -photo_updates_construct (GType object_type, - LibraryPhoto* photo) -{ - PhotoUpdates* self = NULL; - LibraryPhoto* _tmp0_; -#line 22 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL); -#line 23 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = (PhotoUpdates*) monitorable_updates_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MONITORABLE, Monitorable)); -#line 25 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = _g_object_ref0 (photo); -#line 25 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->photo); -#line 25 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->photo = _tmp0_; -#line 22 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return self; -#line 1127 "PhotoMonitor.c" -} - - -PhotoUpdates* -photo_updates_new (LibraryPhoto* photo) -{ -#line 22 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return photo_updates_construct (TYPE_PHOTO_UPDATES, photo); -#line 1136 "PhotoMonitor.c" -} - - -static void -photo_updates_real_mark_offline (MonitorableUpdates* base) -{ - PhotoUpdates * self; -#line 28 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_UPDATES, PhotoUpdates); -#line 29 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - MONITORABLE_UPDATES_CLASS (photo_updates_parent_class)->mark_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates)); -#line 31 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->reimport_master = FALSE; -#line 32 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->reimport_editable = FALSE; -#line 33 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->reimport_raw_developments = FALSE; -#line 1154 "PhotoMonitor.c" -} - - -gboolean -photo_updates_is_reimport_master (PhotoUpdates* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 36 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_PHOTO_UPDATES (self), FALSE); -#line 37 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = self->reimport_master; -#line 37 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = _tmp0_; -#line 37 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 1171 "PhotoMonitor.c" -} - - -gboolean -photo_updates_is_reimport_editable (PhotoUpdates* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 40 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_PHOTO_UPDATES (self), FALSE); -#line 41 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = self->reimport_editable; -#line 41 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = _tmp0_; -#line 41 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 1188 "PhotoMonitor.c" -} - - -GFile* -photo_updates_get_editable_file (PhotoUpdates* self) -{ - GFile* result = NULL; - GFile* _tmp0_; - GFile* _tmp1_; -#line 44 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_PHOTO_UPDATES (self), NULL); -#line 45 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = self->editable_file; -#line 45 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 45 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = _tmp1_; -#line 45 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 1208 "PhotoMonitor.c" -} - - -GFileInfo* -photo_updates_get_editable_file_info (PhotoUpdates* self) -{ - GFileInfo* result = NULL; - GFileInfo* _tmp0_; - GFileInfo* _tmp1_; -#line 48 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_PHOTO_UPDATES (self), NULL); -#line 49 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = self->editable_file_info; -#line 49 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 49 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = _tmp1_; -#line 49 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 1228 "PhotoMonitor.c" -} - - -GeeCollection* -photo_updates_get_raw_developer_files (PhotoUpdates* self) -{ - GeeCollection* result = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; -#line 52 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_PHOTO_UPDATES (self), NULL); -#line 53 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = self->developer_files; -#line 53 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 53 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = _tmp1_; -#line 53 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 1248 "PhotoMonitor.c" -} - - -static gboolean -photo_updates_real_is_in_alteration (MonitorableUpdates* base) -{ - PhotoUpdates * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; -#line 56 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_UPDATES, PhotoUpdates); -#line 57 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (MONITORABLE_UPDATES_CLASS (photo_updates_parent_class)->is_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates))) { -#line 57 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = TRUE; -#line 1264 "PhotoMonitor.c" - } else { - gboolean _tmp1_; -#line 57 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = self->editable_in_alteration; -#line 57 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = _tmp1_; -#line 1271 "PhotoMonitor.c" - } -#line 57 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = _tmp0_; -#line 57 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 1277 "PhotoMonitor.c" -} - - -gboolean -photo_updates_is_revert_to_master (PhotoUpdates* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 60 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_PHOTO_UPDATES (self), FALSE); -#line 61 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = self->revert_to_master; -#line 61 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = _tmp0_; -#line 61 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 1294 "PhotoMonitor.c" -} - - -static void -photo_updates_real_set_editable_file (PhotoUpdates* self, - GFile* file) -{ - gboolean _tmp0_ = FALSE; - GFile* _tmp2_; -#line 64 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail ((file == NULL) || G_IS_FILE (file)); -#line 66 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (file != NULL) { -#line 1308 "PhotoMonitor.c" - gboolean _tmp1_; -#line 66 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = self->revert_to_master; -#line 66 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = _tmp1_; -#line 1314 "PhotoMonitor.c" - } else { -#line 66 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = FALSE; -#line 1318 "PhotoMonitor.c" - } -#line 66 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp0_) { -#line 67 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 1324 "PhotoMonitor.c" - } -#line 69 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = _g_object_ref0 (file); -#line 69 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->editable_file); -#line 69 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->editable_file = _tmp2_; -#line 1332 "PhotoMonitor.c" -} - - -void -photo_updates_set_editable_file (PhotoUpdates* self, - GFile* file) -{ -#line 64 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_UPDATES (self)); -#line 64 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - PHOTO_UPDATES_GET_CLASS (self)->set_editable_file (self, file); -#line 1344 "PhotoMonitor.c" -} - - -static void -photo_updates_real_set_editable_file_info (PhotoUpdates* self, - GFileInfo* info) -{ - gboolean _tmp0_ = FALSE; - GFileInfo* _tmp2_; -#line 72 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail ((info == NULL) || G_IS_FILE_INFO (info)); -#line 74 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (info != NULL) { -#line 1358 "PhotoMonitor.c" - gboolean _tmp1_; -#line 74 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = self->revert_to_master; -#line 74 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = _tmp1_; -#line 1364 "PhotoMonitor.c" - } else { -#line 74 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = FALSE; -#line 1368 "PhotoMonitor.c" - } -#line 74 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp0_) { -#line 75 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 1374 "PhotoMonitor.c" - } -#line 77 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = _g_object_ref0 (info); -#line 77 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->editable_file_info); -#line 77 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->editable_file_info = _tmp2_; -#line 78 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (info == NULL) { -#line 79 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->editable_file_info_altered = FALSE; -#line 1386 "PhotoMonitor.c" - } -} - - -void -photo_updates_set_editable_file_info (PhotoUpdates* self, - GFileInfo* info) -{ -#line 72 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_UPDATES (self)); -#line 72 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - PHOTO_UPDATES_GET_CLASS (self)->set_editable_file_info (self, info); -#line 1399 "PhotoMonitor.c" -} - - -static void -photo_updates_real_set_editable_file_info_altered (PhotoUpdates* self, - gboolean altered) -{ - gboolean _tmp0_ = FALSE; -#line 84 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (altered) { -#line 1410 "PhotoMonitor.c" - gboolean _tmp1_; -#line 84 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = self->revert_to_master; -#line 84 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = _tmp1_; -#line 1416 "PhotoMonitor.c" - } else { -#line 84 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = FALSE; -#line 1420 "PhotoMonitor.c" - } -#line 84 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp0_) { -#line 85 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 1426 "PhotoMonitor.c" - } -#line 87 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->editable_file_info_altered = altered; -#line 1430 "PhotoMonitor.c" -} - - -void -photo_updates_set_editable_file_info_altered (PhotoUpdates* self, - gboolean altered) -{ -#line 82 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_UPDATES (self)); -#line 82 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - PHOTO_UPDATES_GET_CLASS (self)->set_editable_file_info_altered (self, altered); -#line 1442 "PhotoMonitor.c" -} - - -static void -photo_updates_real_set_editable_in_alteration (PhotoUpdates* self, - gboolean in_alteration) -{ -#line 91 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->editable_in_alteration = in_alteration; -#line 1452 "PhotoMonitor.c" -} - - -void -photo_updates_set_editable_in_alteration (PhotoUpdates* self, - gboolean in_alteration) -{ -#line 90 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_UPDATES (self)); -#line 90 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - PHOTO_UPDATES_GET_CLASS (self)->set_editable_in_alteration (self, in_alteration); -#line 1464 "PhotoMonitor.c" -} - - -static void -photo_updates_real_set_raw_development_in_alteration (PhotoUpdates* self, - gboolean in_alteration) -{ -#line 95 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->raw_development_in_alteration = in_alteration; -#line 1474 "PhotoMonitor.c" -} - - -void -photo_updates_set_raw_development_in_alteration (PhotoUpdates* self, - gboolean in_alteration) -{ -#line 94 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_UPDATES (self)); -#line 94 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - PHOTO_UPDATES_GET_CLASS (self)->set_raw_development_in_alteration (self, in_alteration); -#line 1486 "PhotoMonitor.c" -} - - -static void -photo_updates_real_set_raw_developer_file_info_altered (PhotoUpdates* self, - gboolean altered) -{ -#line 99 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->raw_developer_file_info_altered = altered; -#line 1496 "PhotoMonitor.c" -} - - -void -photo_updates_set_raw_developer_file_info_altered (PhotoUpdates* self, - gboolean altered) -{ -#line 98 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_UPDATES (self)); -#line 98 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - PHOTO_UPDATES_GET_CLASS (self)->set_raw_developer_file_info_altered (self, altered); -#line 1508 "PhotoMonitor.c" -} - - -static void -photo_updates_real_set_revert_to_master (PhotoUpdates* self, - gboolean revert) -{ -#line 103 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (revert) { -#line 105 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->reimport_editable = FALSE; -#line 106 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->editable_file); -#line 106 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->editable_file = NULL; -#line 107 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->editable_file_info); -#line 107 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->editable_file_info = NULL; -#line 1528 "PhotoMonitor.c" - } -#line 110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->revert_to_master = revert; -#line 1532 "PhotoMonitor.c" -} - - -void -photo_updates_set_revert_to_master (PhotoUpdates* self, - gboolean revert) -{ -#line 102 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_UPDATES (self)); -#line 102 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - PHOTO_UPDATES_GET_CLASS (self)->set_revert_to_master (self, revert); -#line 1544 "PhotoMonitor.c" -} - - -static void -photo_updates_real_add_raw_developer_file (PhotoUpdates* self, - GFile* file) -{ - GeeCollection* _tmp0_; -#line 113 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 114 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = self->developer_files; -#line 114 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - gee_collection_add (_tmp0_, file); -#line 1559 "PhotoMonitor.c" -} - - -void -photo_updates_add_raw_developer_file (PhotoUpdates* self, - GFile* file) -{ -#line 113 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_UPDATES (self)); -#line 113 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - PHOTO_UPDATES_GET_CLASS (self)->add_raw_developer_file (self, file); -#line 1571 "PhotoMonitor.c" -} - - -static void -photo_updates_real_clear_raw_developer_files (PhotoUpdates* self) -{ - GeeCollection* _tmp0_; -#line 118 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = self->developer_files; -#line 118 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - gee_collection_clear (_tmp0_); -#line 1583 "PhotoMonitor.c" -} - - -void -photo_updates_clear_raw_developer_files (PhotoUpdates* self) -{ -#line 117 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_UPDATES (self)); -#line 117 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - PHOTO_UPDATES_GET_CLASS (self)->clear_raw_developer_files (self); -#line 1594 "PhotoMonitor.c" -} - - -static void -photo_updates_real_set_reimport_master (PhotoUpdates* self, - gboolean reimport) -{ -#line 122 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->reimport_master = reimport; -#line 124 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (reimport) { -#line 125 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - monitorable_updates_mark_online (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates)); -#line 1608 "PhotoMonitor.c" - } -} - - -void -photo_updates_set_reimport_master (PhotoUpdates* self, - gboolean reimport) -{ -#line 121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_UPDATES (self)); -#line 121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - PHOTO_UPDATES_GET_CLASS (self)->set_reimport_master (self, reimport); -#line 1621 "PhotoMonitor.c" -} - - -static void -photo_updates_real_set_reimport_editable (PhotoUpdates* self, - gboolean reimport) -{ - gboolean _tmp0_ = FALSE; -#line 130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (reimport) { -#line 1632 "PhotoMonitor.c" - gboolean _tmp1_ = FALSE; - gboolean _tmp2_; -#line 130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = self->revert_to_master; -#line 130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp2_) { -#line 130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = TRUE; -#line 1641 "PhotoMonitor.c" - } else { -#line 130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = monitorable_updates_is_set_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates)); -#line 1645 "PhotoMonitor.c" - } -#line 130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = _tmp1_; -#line 1649 "PhotoMonitor.c" - } else { -#line 130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = FALSE; -#line 1653 "PhotoMonitor.c" - } -#line 130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp0_) { -#line 131 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 1659 "PhotoMonitor.c" - } -#line 133 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->reimport_editable = reimport; -#line 1663 "PhotoMonitor.c" -} - - -void -photo_updates_set_reimport_editable (PhotoUpdates* self, - gboolean reimport) -{ -#line 128 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_UPDATES (self)); -#line 128 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - PHOTO_UPDATES_GET_CLASS (self)->set_reimport_editable (self, reimport); -#line 1675 "PhotoMonitor.c" -} - - -static void -photo_updates_real_set_reimport_raw_developments (PhotoUpdates* self, - gboolean reimport) -{ -#line 137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->reimport_raw_developments = reimport; -#line 139 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (reimport) { -#line 140 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - monitorable_updates_mark_online (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates)); -#line 1689 "PhotoMonitor.c" - } -} - - -void -photo_updates_set_reimport_raw_developments (PhotoUpdates* self, - gboolean reimport) -{ -#line 136 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_UPDATES (self)); -#line 136 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - PHOTO_UPDATES_GET_CLASS (self)->set_reimport_raw_developments (self, reimport); -#line 1702 "PhotoMonitor.c" -} - - -static gboolean -photo_updates_real_is_all_updated (MonitorableUpdates* base) -{ - PhotoUpdates * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - gboolean _tmp3_ = FALSE; - gboolean _tmp4_ = FALSE; - gboolean _tmp5_ = FALSE; - gboolean _tmp6_ = FALSE; - gboolean _tmp7_ = FALSE; - gboolean _tmp8_ = FALSE; -#line 143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_UPDATES, PhotoUpdates); -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (MONITORABLE_UPDATES_CLASS (photo_updates_parent_class)->is_all_updated (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates))) { -#line 1724 "PhotoMonitor.c" - gboolean _tmp9_; -#line 145 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = self->reimport_master; -#line 145 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = _tmp9_ == FALSE; -#line 1730 "PhotoMonitor.c" - } else { -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = FALSE; -#line 1734 "PhotoMonitor.c" - } -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp8_) { -#line 1738 "PhotoMonitor.c" - gboolean _tmp10_; -#line 146 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp10_ = self->reimport_editable; -#line 146 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = _tmp10_ == FALSE; -#line 1744 "PhotoMonitor.c" - } else { -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = FALSE; -#line 1748 "PhotoMonitor.c" - } -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp7_) { -#line 1752 "PhotoMonitor.c" - GFile* _tmp11_; -#line 147 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp11_ = self->editable_file; -#line 147 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = _tmp11_ == NULL; -#line 1758 "PhotoMonitor.c" - } else { -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = FALSE; -#line 1762 "PhotoMonitor.c" - } -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp6_) { -#line 1766 "PhotoMonitor.c" - gboolean _tmp12_; -#line 148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp12_ = self->editable_file_info_altered; -#line 148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = _tmp12_ == FALSE; -#line 1772 "PhotoMonitor.c" - } else { -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = FALSE; -#line 1776 "PhotoMonitor.c" - } -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp5_) { -#line 1780 "PhotoMonitor.c" - GFileInfo* _tmp13_; -#line 149 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp13_ = self->editable_file_info; -#line 149 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = _tmp13_ == NULL; -#line 1786 "PhotoMonitor.c" - } else { -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = FALSE; -#line 1790 "PhotoMonitor.c" - } -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp4_) { -#line 1794 "PhotoMonitor.c" - gboolean _tmp14_; -#line 150 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp14_ = self->editable_in_alteration; -#line 150 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = _tmp14_ == FALSE; -#line 1800 "PhotoMonitor.c" - } else { -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = FALSE; -#line 1804 "PhotoMonitor.c" - } -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp3_) { -#line 1808 "PhotoMonitor.c" - GeeCollection* _tmp15_; - gint _tmp16_; - gint _tmp17_; -#line 151 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp15_ = self->developer_files; -#line 151 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp16_ = gee_collection_get_size (_tmp15_); -#line 151 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17_ = _tmp16_; -#line 151 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = _tmp17_ == 0; -#line 1820 "PhotoMonitor.c" - } else { -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = FALSE; -#line 1824 "PhotoMonitor.c" - } -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp2_) { -#line 1828 "PhotoMonitor.c" - gboolean _tmp18_; -#line 152 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp18_ = self->raw_developer_file_info_altered; -#line 152 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp18_ == FALSE; -#line 1834 "PhotoMonitor.c" - } else { -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = FALSE; -#line 1838 "PhotoMonitor.c" - } -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp1_) { -#line 1842 "PhotoMonitor.c" - gboolean _tmp19_; -#line 153 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp19_ = self->revert_to_master; -#line 153 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = _tmp19_ == FALSE; -#line 1848 "PhotoMonitor.c" - } else { -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = FALSE; -#line 1852 "PhotoMonitor.c" - } -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = _tmp0_; -#line 144 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 1858 "PhotoMonitor.c" -} - - -static void -photo_updates_class_init (PhotoUpdatesClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MonitorableUpdatesClass *) klass)->finalize = photo_updates_finalize; -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MonitorableUpdatesClass *) klass)->mark_offline = (void (*) (MonitorableUpdates *)) photo_updates_real_mark_offline; -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MonitorableUpdatesClass *) klass)->is_in_alteration = (gboolean (*) (MonitorableUpdates *)) photo_updates_real_is_in_alteration; -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((PhotoUpdatesClass *) klass)->set_editable_file = (void (*) (PhotoUpdates *, GFile*)) photo_updates_real_set_editable_file; -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((PhotoUpdatesClass *) klass)->set_editable_file_info = (void (*) (PhotoUpdates *, GFileInfo*)) photo_updates_real_set_editable_file_info; -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((PhotoUpdatesClass *) klass)->set_editable_file_info_altered = (void (*) (PhotoUpdates *, gboolean)) photo_updates_real_set_editable_file_info_altered; -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((PhotoUpdatesClass *) klass)->set_editable_in_alteration = (void (*) (PhotoUpdates *, gboolean)) photo_updates_real_set_editable_in_alteration; -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((PhotoUpdatesClass *) klass)->set_raw_development_in_alteration = (void (*) (PhotoUpdates *, gboolean)) photo_updates_real_set_raw_development_in_alteration; -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((PhotoUpdatesClass *) klass)->set_raw_developer_file_info_altered = (void (*) (PhotoUpdates *, gboolean)) photo_updates_real_set_raw_developer_file_info_altered; -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((PhotoUpdatesClass *) klass)->set_revert_to_master = (void (*) (PhotoUpdates *, gboolean)) photo_updates_real_set_revert_to_master; -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((PhotoUpdatesClass *) klass)->add_raw_developer_file = (void (*) (PhotoUpdates *, GFile*)) photo_updates_real_add_raw_developer_file; -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((PhotoUpdatesClass *) klass)->clear_raw_developer_files = (void (*) (PhotoUpdates *)) photo_updates_real_clear_raw_developer_files; -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((PhotoUpdatesClass *) klass)->set_reimport_master = (void (*) (PhotoUpdates *, gboolean)) photo_updates_real_set_reimport_master; -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((PhotoUpdatesClass *) klass)->set_reimport_editable = (void (*) (PhotoUpdates *, gboolean)) photo_updates_real_set_reimport_editable; -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((PhotoUpdatesClass *) klass)->set_reimport_raw_developments = (void (*) (PhotoUpdates *, gboolean)) photo_updates_real_set_reimport_raw_developments; -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MonitorableUpdatesClass *) klass)->is_all_updated = (gboolean (*) (MonitorableUpdates *)) photo_updates_real_is_all_updated; -#line 1899 "PhotoMonitor.c" -} - - -static void -photo_updates_instance_init (PhotoUpdates * self) -{ - GeeArrayList* _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->reimport_master = FALSE; -#line 11 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->reimport_editable = FALSE; -#line 12 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->reimport_raw_developments = FALSE; -#line 13 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->editable_file = NULL; -#line 14 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->editable_file_info_altered = FALSE; -#line 15 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->raw_developer_file_info_altered = FALSE; -#line 16 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->editable_file_info = NULL; -#line 17 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->editable_in_alteration = FALSE; -#line 18 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->raw_development_in_alteration = FALSE; -#line 19 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->revert_to_master = FALSE; -#line 20 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 20 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->developer_files = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 1931 "PhotoMonitor.c" -} - - -static void -photo_updates_finalize (MonitorableUpdates * obj) -{ - PhotoUpdates * self; -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_UPDATES, PhotoUpdates); -#line 8 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->photo); -#line 13 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->editable_file); -#line 16 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->editable_file_info); -#line 20 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->developer_files); -#line 7 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - MONITORABLE_UPDATES_CLASS (photo_updates_parent_class)->finalize (obj); -#line 1951 "PhotoMonitor.c" -} - - -GType -photo_updates_get_type (void) -{ - static volatile gsize photo_updates_type_id__volatile = 0; - if (g_once_init_enter (&photo_updates_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoUpdatesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_updates_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoUpdates), 0, (GInstanceInitFunc) photo_updates_instance_init, NULL }; - GType photo_updates_type_id; - photo_updates_type_id = g_type_register_static (TYPE_MONITORABLE_UPDATES, "PhotoUpdates", &g_define_type_info, 0); - g_once_init_leave (&photo_updates_type_id__volatile, photo_updates_type_id); - } - return photo_updates_type_id__volatile; -} - - -static gpointer -_workers_ref0 (gpointer self) -{ -#line 240 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return self ? workers_ref (self) : NULL; -#line 1974 "PhotoMonitor.c" -} - - -PhotoMonitor* -photo_monitor_construct (GType object_type, - Workers* workers, - GCancellable* cancellable) -{ - PhotoMonitor * self = NULL; - LibraryPhotoSourceCollection* _tmp0_; - Workers* _tmp1_; -#line 237 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_WORKERS (workers), NULL); -#line 237 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL); -#line 238 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = library_photo_global; -#line 238 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = (PhotoMonitor*) media_monitor_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), cancellable); -#line 240 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _workers_ref0 (workers); -#line 240 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _workers_unref0 (self->priv->workers); -#line 240 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->priv->workers = _tmp1_; -#line 237 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return self; -#line 2002 "PhotoMonitor.c" -} - - -PhotoMonitor* -photo_monitor_new (Workers* workers, - GCancellable* cancellable) -{ -#line 237 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return photo_monitor_construct (TYPE_PHOTO_MONITOR, workers, cancellable); -#line 2012 "PhotoMonitor.c" -} - - -static MonitorableUpdates* -photo_monitor_real_create_updates (MediaMonitor* base, - Monitorable* monitorable) -{ - PhotoMonitor * self; - MonitorableUpdates* result = NULL; - PhotoUpdates* _tmp0_; -#line 243 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 243 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL); -#line 244 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (monitorable, TYPE_LIBRARY_PHOTO), "monitorable is LibraryPhoto"); -#line 246 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_updates_new (G_TYPE_CHECK_INSTANCE_CAST (monitorable, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 246 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates); -#line 246 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 2035 "PhotoMonitor.c" -} - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 250 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return self ? data_collection_ref (self) : NULL; -#line 2044 "PhotoMonitor.c" -} - - -static MediaSourceCollection* -photo_monitor_real_get_media_source_collection (MediaMonitor* base) -{ - PhotoMonitor * self; - MediaSourceCollection* result = NULL; - LibraryPhotoSourceCollection* _tmp0_; - MediaSourceCollection* _tmp1_; -#line 249 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 250 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = library_photo_global; -#line 250 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _data_collection_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 250 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = _tmp1_; -#line 250 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 2065 "PhotoMonitor.c" -} - - -static gboolean -photo_monitor_real_is_file_represented (MediaMonitor* base, - GFile* file) -{ - PhotoMonitor * self; - gboolean result = FALSE; - LibraryPhotoSourceCollectionState state = 0; - LibraryPhotoSourceCollectionState _tmp0_ = 0; - LibraryPhoto* _tmp1_; - LibraryPhoto* _tmp2_; - gboolean _tmp3_; -#line 253 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 253 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 255 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = photo_monitor_get_photo_state_by_file (self, file, &_tmp0_); -#line 255 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - state = _tmp0_; -#line 255 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = _tmp1_; -#line 255 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = _tmp2_ != NULL; -#line 255 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp2_); -#line 255 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = _tmp3_; -#line 255 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 2098 "PhotoMonitor.c" -} - - -static void -photo_monitor_real_close (MediaMonitor* base) -{ - PhotoMonitor * self; -#line 258 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 2108 "PhotoMonitor.c" - { - GeeIterator* _job_it = NULL; - GeeHashMap* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = self->priv->master_reimport_pending; -#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = _tmp1_; -#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = _tmp2_; -#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = _tmp4_; -#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp3_); -#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _job_it = _tmp5_; -#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - while (TRUE) { -#line 2135 "PhotoMonitor.c" - GeeIterator* _tmp6_; - PhotoMonitorReimportMasterJob* job = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - PhotoMonitorReimportMasterJob* _tmp9_; -#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = _job_it; -#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 2147 "PhotoMonitor.c" - } -#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = _job_it; -#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - job = (PhotoMonitorReimportMasterJob*) _tmp8_; -#line 260 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = job; -#line 260 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 2161 "PhotoMonitor.c" - } -#line 259 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_job_it); -#line 2165 "PhotoMonitor.c" - } - { - GeeIterator* _job_it = NULL; - GeeHashMap* _tmp10_; - GeeCollection* _tmp11_; - GeeCollection* _tmp12_; - GeeCollection* _tmp13_; - GeeIterator* _tmp14_; - GeeIterator* _tmp15_; -#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp10_ = self->priv->editable_reimport_pending; -#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp11_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp12_ = _tmp11_; -#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp13_ = _tmp12_; -#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp14_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp15_ = _tmp14_; -#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp13_); -#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _job_it = _tmp15_; -#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - while (TRUE) { -#line 2193 "PhotoMonitor.c" - GeeIterator* _tmp16_; - PhotoMonitorReimportEditableJob* job = NULL; - GeeIterator* _tmp17_; - gpointer _tmp18_; - PhotoMonitorReimportEditableJob* _tmp19_; -#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp16_ = _job_it; -#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (!gee_iterator_next (_tmp16_)) { -#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 2205 "PhotoMonitor.c" - } -#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17_ = _job_it; -#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp18_ = gee_iterator_get (_tmp17_); -#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - job = (PhotoMonitorReimportEditableJob*) _tmp18_; -#line 263 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp19_ = job; -#line 263 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 2219 "PhotoMonitor.c" - } -#line 262 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_job_it); -#line 2223 "PhotoMonitor.c" - } - { - GeeIterator* _job_it = NULL; - GeeHashMap* _tmp20_; - GeeCollection* _tmp21_; - GeeCollection* _tmp22_; - GeeCollection* _tmp23_; - GeeIterator* _tmp24_; - GeeIterator* _tmp25_; -#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp20_ = self->priv->raw_developments_reimport_pending; -#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp21_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp22_ = _tmp21_; -#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp23_ = _tmp22_; -#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp24_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp25_ = _tmp24_; -#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp23_); -#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _job_it = _tmp25_; -#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - while (TRUE) { -#line 2251 "PhotoMonitor.c" - GeeIterator* _tmp26_; - PhotoMonitorReimportRawDevelopmentJob* job = NULL; - GeeIterator* _tmp27_; - gpointer _tmp28_; - PhotoMonitorReimportRawDevelopmentJob* _tmp29_; -#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp26_ = _job_it; -#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (!gee_iterator_next (_tmp26_)) { -#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 2263 "PhotoMonitor.c" - } -#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp27_ = _job_it; -#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp28_ = gee_iterator_get (_tmp27_); -#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - job = (PhotoMonitorReimportRawDevelopmentJob*) _tmp28_; -#line 266 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp29_ = job; -#line 266 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 2277 "PhotoMonitor.c" - } -#line 265 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_job_it); -#line 2281 "PhotoMonitor.c" - } -#line 268 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - MEDIA_MONITOR_CLASS (photo_monitor_parent_class)->close (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor)); -#line 2285 "PhotoMonitor.c" -} - - -static void -photo_monitor_cancel_reimports (PhotoMonitor* self, - LibraryPhoto* photo) -{ - PhotoMonitorReimportMasterJob* master_job = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - PhotoMonitorReimportMasterJob* _tmp2_; - PhotoMonitorReimportEditableJob* editable_job = NULL; - GeeHashMap* _tmp4_; - gpointer _tmp5_; - PhotoMonitorReimportEditableJob* _tmp6_; -#line 271 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 271 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 272 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = self->priv->master_reimport_pending; -#line 272 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo); -#line 272 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - master_job = (PhotoMonitorReimportMasterJob*) _tmp1_; -#line 273 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = master_job; -#line 273 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp2_ != NULL) { -#line 2315 "PhotoMonitor.c" - PhotoMonitorReimportMasterJob* _tmp3_; -#line 274 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = master_job; -#line 274 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 2321 "PhotoMonitor.c" - } -#line 276 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = self->priv->editable_reimport_pending; -#line 276 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo); -#line 276 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - editable_job = (PhotoMonitorReimportEditableJob*) _tmp5_; -#line 277 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = editable_job; -#line 277 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp6_ != NULL) { -#line 2333 "PhotoMonitor.c" - PhotoMonitorReimportEditableJob* _tmp7_; -#line 278 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = editable_job; -#line 278 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 2339 "PhotoMonitor.c" - } -#line 271 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (editable_job); -#line 271 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (master_job); -#line 2345 "PhotoMonitor.c" -} - - -static MediaMonitorDiscoveredFile -photo_monitor_real_notify_file_discovered (MediaMonitor* base, - GFile* file, - GFileInfo* info, - Monitorable* * monitorable) -{ - PhotoMonitor * self; - Monitorable* _vala_monitorable = NULL; - MediaMonitorDiscoveredFile result = 0; - LibraryPhotoSourceCollectionState state = 0; - LibraryPhoto* photo = NULL; - LibraryPhotoSourceCollectionState _tmp0_ = 0; - LibraryPhoto* _tmp1_; - LibraryPhoto* _tmp2_; - LibraryPhotoSourceCollectionState _tmp3_; -#line 281 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 281 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), 0); -#line 281 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), 0); -#line 284 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = photo_monitor_get_photo_state_by_file (self, file, &_tmp0_); -#line 284 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - state = _tmp0_; -#line 284 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo = _tmp1_; -#line 285 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = photo; -#line 285 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp2_ == NULL) { -#line 286 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_vala_monitorable); -#line 286 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_monitorable = NULL; -#line 288 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN; -#line 288 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 288 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (monitorable) { -#line 288 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *monitorable = _vala_monitorable; -#line 2392 "PhotoMonitor.c" - } else { -#line 288 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_vala_monitorable); -#line 2396 "PhotoMonitor.c" - } -#line 288 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 2400 "PhotoMonitor.c" - } -#line 291 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = state; -#line 291 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - switch (_tmp3_) { -#line 291 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE: -#line 291 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE: -#line 2410 "PhotoMonitor.c" - { - LibraryPhoto* _tmp4_; - Monitorable* _tmp5_; -#line 294 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = photo; -#line 294 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MONITORABLE, Monitorable)); -#line 294 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_vala_monitorable); -#line 294 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_monitorable = _tmp5_; -#line 296 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED; -#line 296 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 296 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (monitorable) { -#line 296 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *monitorable = _vala_monitorable; -#line 2430 "PhotoMonitor.c" - } else { -#line 296 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_vala_monitorable); -#line 2434 "PhotoMonitor.c" - } -#line 296 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 2438 "PhotoMonitor.c" - } - default: -#line 291 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH: -#line 291 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE: -#line 291 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER: -#line 2447 "PhotoMonitor.c" - { -#line 304 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_vala_monitorable); -#line 304 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_monitorable = NULL; -#line 306 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = MEDIA_MONITOR_DISCOVERED_FILE_IGNORE; -#line 306 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 306 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (monitorable) { -#line 306 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *monitorable = _vala_monitorable; -#line 2461 "PhotoMonitor.c" - } else { -#line 306 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_vala_monitorable); -#line 2465 "PhotoMonitor.c" - } -#line 306 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 2469 "PhotoMonitor.c" - } - } -#line 281 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 281 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (monitorable) { -#line 281 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *monitorable = _vala_monitorable; -#line 2478 "PhotoMonitor.c" - } else { -#line 281 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_vala_monitorable); -#line 2482 "PhotoMonitor.c" - } -} - - -static GeeCollection* -photo_monitor_real_candidates_for_unknown_file (MediaMonitor* base, - GFile* file, - GFileInfo* info, - MediaMonitorDiscoveredFile* _result_) -{ - PhotoMonitor * self; - MediaMonitorDiscoveredFile _vala_result = 0; - GeeCollection* result = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; - GeeCollection* matched_masters = NULL; - GeeArrayList* _tmp2_; - LibraryPhotoSourceCollection* _tmp3_; - GeeCollection* _tmp4_; - GeeArrayList* _tmp5_; - GeeArrayList* _tmp6_; - GeeCollection* _tmp7_; - gint _tmp8_; - gint _tmp9_; - gboolean _tmp10_ = FALSE; - GeeArrayList* _tmp11_; - gint _tmp12_; - gint _tmp13_; - GeeArrayList* _tmp17_; - gint _tmp18_; - gint _tmp19_; - GeeArrayList* _tmp49_; - gint _tmp50_; - gint _tmp51_; -#line 310 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 310 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 310 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), NULL); -#line 313 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = self->priv->matched_editables; -#line 313 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 314 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = self->priv->matched_developments; -#line 314 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 316 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 316 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - matched_masters = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 317 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = library_photo_global; -#line 317 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = matched_masters; -#line 317 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = self->priv->matched_editables; -#line 317 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = self->priv->matched_developments; -#line 317 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - library_photo_source_collection_fetch_by_matching_backing (_tmp3_, info, _tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 319 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = matched_masters; -#line 319 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = gee_collection_get_size (_tmp7_); -#line 319 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = _tmp8_; -#line 319 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp9_ > 0) { -#line 320 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_result = MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN; -#line 322 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = matched_masters; -#line 322 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_result_) { -#line 322 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *_result_ = _vala_result; -#line 2561 "PhotoMonitor.c" - } -#line 322 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 2565 "PhotoMonitor.c" - } -#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp11_ = self->priv->matched_editables; -#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp12_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp13_ = _tmp12_; -#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp13_ == 0) { -#line 2575 "PhotoMonitor.c" - GeeArrayList* _tmp14_; - gint _tmp15_; - gint _tmp16_; -#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp14_ = self->priv->matched_developments; -#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp15_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp16_ = _tmp15_; -#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp10_ = _tmp16_ == 0; -#line 2587 "PhotoMonitor.c" - } else { -#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp10_ = FALSE; -#line 2591 "PhotoMonitor.c" - } -#line 325 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp10_) { -#line 326 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_result = MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN; -#line 328 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = NULL; -#line 328 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (matched_masters); -#line 328 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_result_) { -#line 328 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *_result_ = _vala_result; -#line 2605 "PhotoMonitor.c" - } -#line 328 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 2609 "PhotoMonitor.c" - } -#line 332 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17_ = self->priv->matched_editables; -#line 332 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp18_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 332 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp19_ = _tmp18_; -#line 332 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp19_ > 0) { -#line 2619 "PhotoMonitor.c" - LibraryPhoto* match = NULL; - GeeArrayList* _tmp20_; - gpointer _tmp21_; - GeeArrayList* _tmp22_; - gint _tmp23_; - gint _tmp24_; - LibraryPhoto* _tmp48_; -#line 333 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp20_ = self->priv->matched_editables; -#line 333 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp21_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 333 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - match = (LibraryPhoto*) _tmp21_; -#line 334 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp22_ = self->priv->matched_editables; -#line 334 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp23_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 334 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp24_ = _tmp23_; -#line 334 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp24_ > 1) { -#line 2641 "PhotoMonitor.c" - gchar* _tmp25_; - gchar* _tmp26_; - GeeArrayList* _tmp27_; - gint _tmp28_; - gint _tmp29_; - LibraryPhoto* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; -#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp25_ = g_file_get_path (file); -#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp26_ = _tmp25_; -#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp27_ = self->priv->matched_editables; -#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp28_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp29_ = _tmp28_; -#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp30_ = match; -#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp31_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_DATA_OBJECT, DataObject)); -#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp32_ = _tmp31_; -#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_warning ("PhotoMonitor.vala:335: Unknown file %s could be matched with %d photos" \ -"; giving to %s, dropping others", _tmp26_, _tmp29_, _tmp32_); -#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp32_); -#line 335 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp26_); -#line 2672 "PhotoMonitor.c" - { - gint ctr = 0; -#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ctr = 1; -#line 2677 "PhotoMonitor.c" - { - gboolean _tmp33_ = FALSE; -#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp33_ = TRUE; -#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - while (TRUE) { -#line 2684 "PhotoMonitor.c" - gint _tmp35_; - GeeArrayList* _tmp36_; - gint _tmp37_; - gint _tmp38_; - GeeArrayList* _tmp39_; - gint _tmp40_; - gpointer _tmp41_; - LibraryPhoto* _tmp42_; - gboolean _tmp43_; -#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (!_tmp33_) { -#line 2696 "PhotoMonitor.c" - gint _tmp34_; -#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp34_ = ctr; -#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ctr = _tmp34_ + 1; -#line 2702 "PhotoMonitor.c" - } -#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp33_ = FALSE; -#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp35_ = ctr; -#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp36_ = self->priv->matched_editables; -#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp37_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp38_ = _tmp37_; -#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (!(_tmp35_ < _tmp38_)) { -#line 337 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 2718 "PhotoMonitor.c" - } -#line 338 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp39_ = self->priv->matched_editables; -#line 338 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp40_ = ctr; -#line 338 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp41_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp40_); -#line 338 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp42_ = (LibraryPhoto*) _tmp41_; -#line 338 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp43_ = !photo_does_editable_exist (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_PHOTO, Photo)); -#line 338 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp42_); -#line 338 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp43_) { -#line 2734 "PhotoMonitor.c" - GeeArrayList* _tmp44_; - gint _tmp45_; - gpointer _tmp46_; - LibraryPhoto* _tmp47_; -#line 339 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp44_ = self->priv->matched_editables; -#line 339 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp45_ = ctr; -#line 339 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp46_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp45_); -#line 339 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp47_ = (LibraryPhoto*) _tmp46_; -#line 339 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_revert_to_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_PHOTO, Photo), TRUE); -#line 339 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp47_); -#line 2751 "PhotoMonitor.c" - } - } - } - } - } -#line 343 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp48_ = match; -#line 343 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_editable_file (self, _tmp48_, file); -#line 332 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (match); -#line 2763 "PhotoMonitor.c" - } -#line 346 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp49_ = self->priv->matched_developments; -#line 346 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp50_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 346 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp51_ = _tmp50_; -#line 346 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp51_ > 0) { -#line 2773 "PhotoMonitor.c" - LibraryPhoto* match_raw = NULL; - GeeArrayList* _tmp52_; - gpointer _tmp53_; - GeeArrayList* _tmp54_; - gint _tmp55_; - gint _tmp56_; - LibraryPhoto* _tmp65_; -#line 347 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp52_ = self->priv->matched_developments; -#line 347 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp53_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 347 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - match_raw = (LibraryPhoto*) _tmp53_; -#line 348 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp54_ = self->priv->matched_developments; -#line 348 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp55_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 348 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp56_ = _tmp55_; -#line 348 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp56_ > 1) { -#line 2795 "PhotoMonitor.c" - gchar* _tmp57_; - gchar* _tmp58_; - GeeArrayList* _tmp59_; - gint _tmp60_; - gint _tmp61_; - LibraryPhoto* _tmp62_; - gchar* _tmp63_; - gchar* _tmp64_; -#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp57_ = g_file_get_path (file); -#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp58_ = _tmp57_; -#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp59_ = self->priv->matched_developments; -#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp60_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp61_ = _tmp60_; -#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp62_ = match_raw; -#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp63_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, TYPE_DATA_OBJECT, DataObject)); -#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp64_ = _tmp63_; -#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_warning ("PhotoMonitor.vala:349: Unknown file %s could be matched with %d photos" \ -"; giving to %s, dropping others", _tmp58_, _tmp61_, _tmp64_); -#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp64_); -#line 349 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp58_); -#line 2826 "PhotoMonitor.c" - } -#line 353 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp65_ = match_raw; -#line 353 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_raw_development_file (self, _tmp65_, file); -#line 346 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (match_raw); -#line 2834 "PhotoMonitor.c" - } -#line 356 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_result = MEDIA_MONITOR_DISCOVERED_FILE_IGNORE; -#line 358 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = NULL; -#line 358 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (matched_masters); -#line 358 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_result_) { -#line 358 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *_result_ = _vala_result; -#line 2846 "PhotoMonitor.c" - } -#line 358 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 2850 "PhotoMonitor.c" -} - - -static void -_vala_array_add131 (GFile** * array, - int* length, - int* size, - GFile* value) -{ -#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if ((*length) == (*size)) { -#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *array = g_renew (GFile*, *array, (*size) + 1); -#line 2866 "PhotoMonitor.c" - } -#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - (*array)[(*length)++] = value; -#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - (*array)[*length] = NULL; -#line 2872 "PhotoMonitor.c" -} - - -static void -_vala_array_add132 (GFile** * array, - int* length, - int* size, - GFile* value) -{ -#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if ((*length) == (*size)) { -#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *array = g_renew (GFile*, *array, (*size) + 1); -#line 2888 "PhotoMonitor.c" - } -#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - (*array)[(*length)++] = value; -#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - (*array)[*length] = NULL; -#line 2894 "PhotoMonitor.c" -} - - -static GFile** -_vala_array_dup26 (GFile** self, - int length) -{ - GFile** result; - int i; -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = g_new0 (GFile*, length + 1); -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - for (i = 0; i < length; i++) { -#line 2908 "PhotoMonitor.c" - GFile* _tmp0_; -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result[i] = _tmp0_; -#line 2914 "PhotoMonitor.c" - } -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 2918 "PhotoMonitor.c" -} - - -static GFile** -photo_monitor_real_get_auxilliary_backing_files (MediaMonitor* base, - Monitorable* monitorable, - int* result_length1) -{ - PhotoMonitor * self; - GFile** result = NULL; - LibraryPhoto* photo = NULL; - LibraryPhoto* _tmp0_; - GFile** files = NULL; - GFile** _tmp1_; - gint files_length1; - gint _files_size_; - LibraryPhoto* _tmp2_; - GeeCollection* raw_files = NULL; - LibraryPhoto* _tmp6_; - GeeCollection* _tmp7_; - GeeCollection* _tmp8_; - GFile** _tmp17_ = NULL; - gint _tmp17__length1 = 0; - gint __tmp17__size_ = 0; - GFile** _tmp18_; - gint _tmp18__length1; - GFile** _tmp20_; - gint _tmp20__length1; - GFile** _tmp21_; - gint _tmp21__length1; -#line 361 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 361 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL); -#line 362 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (monitorable, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 362 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo = _tmp0_; -#line 363 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = g_new0 (GFile*, 0 + 1); -#line 363 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - files = _tmp1_; -#line 363 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - files_length1 = 0; -#line 363 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _files_size_ = files_length1; -#line 366 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = photo; -#line 366 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (photo_has_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO, Photo))) { -#line 2969 "PhotoMonitor.c" - GFile** _tmp3_; - gint _tmp3__length1; - LibraryPhoto* _tmp4_; - GFile* _tmp5_; -#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = files; -#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3__length1 = files_length1; -#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = photo; -#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO, Photo)); -#line 367 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_array_add131 (&files, &files_length1, &_files_size_, _tmp5_); -#line 2984 "PhotoMonitor.c" - } -#line 370 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = photo; -#line 370 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PHOTO, Photo)); -#line 370 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - raw_files = _tmp7_; -#line 371 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = raw_files; -#line 371 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp8_ != NULL) { -#line 2996 "PhotoMonitor.c" - { - GeeIterator* _f_it = NULL; - GeeCollection* _tmp9_; - GeeIterator* _tmp10_; -#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = raw_files; -#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _f_it = _tmp10_; -#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - while (TRUE) { -#line 3009 "PhotoMonitor.c" - GeeIterator* _tmp11_; - GFile* f = NULL; - GeeIterator* _tmp12_; - gpointer _tmp13_; - GFile** _tmp14_; - gint _tmp14__length1; - GFile* _tmp15_; - GFile* _tmp16_; -#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp11_ = _f_it; -#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (!gee_iterator_next (_tmp11_)) { -#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 3024 "PhotoMonitor.c" - } -#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp12_ = _f_it; -#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp13_ = gee_iterator_get (_tmp12_); -#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - f = (GFile*) _tmp13_; -#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp14_ = files; -#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp14__length1 = files_length1; -#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp15_ = f; -#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp16_ = _g_object_ref0 (_tmp15_); -#line 373 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_array_add132 (&files, &files_length1, &_files_size_, _tmp16_); -#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (f); -#line 3044 "PhotoMonitor.c" - } -#line 372 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_f_it); -#line 3048 "PhotoMonitor.c" - } - } -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp18_ = files; -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp18__length1 = files_length1; -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp18__length1 > 0) { -#line 3057 "PhotoMonitor.c" - GFile** _tmp19_; - gint _tmp19__length1; -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp19_ = files; -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp19__length1 = files_length1; -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17_ = _tmp19_; -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17__length1 = _tmp19__length1; -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - __tmp17__size_ = _tmp17__length1; -#line 3070 "PhotoMonitor.c" - } else { -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17_ = NULL; -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17__length1 = 0; -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - __tmp17__size_ = _tmp17__length1; -#line 3078 "PhotoMonitor.c" - } -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp20_ = (_tmp17_ != NULL) ? _vala_array_dup26 (_tmp17_, _tmp17__length1) : ((gpointer) _tmp17_); -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp20__length1 = _tmp17__length1; -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp21_ = _tmp20_; -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp21__length1 = _tmp20__length1; -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (result_length1) { -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *result_length1 = _tmp21__length1; -#line 3092 "PhotoMonitor.c" - } -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = _tmp21_; -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (raw_files); -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - files = (_vala_array_free (files, files_length1, (GDestroyNotify) g_object_unref), NULL); -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 376 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 3104 "PhotoMonitor.c" -} - - -static void -photo_monitor_real_update_backing_file_info (MediaMonitor* base, - Monitorable* monitorable, - GFile* file, - GFileInfo* info) -{ - PhotoMonitor * self; - LibraryPhoto* photo = NULL; - LibraryPhoto* _tmp0_; - LibraryPhoto* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - gboolean _tmp4_; -#line 379 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 379 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_MONITORABLE (monitorable)); -#line 379 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 379 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail ((info == NULL) || G_IS_FILE_INFO (info)); -#line 380 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (monitorable, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 380 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo = _tmp0_; -#line 382 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = photo; -#line 382 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = media_monitor_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MONITORABLE, Monitorable)); -#line 382 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = _tmp2_; -#line 382 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = g_file_equal (_tmp3_, file); -#line 382 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp3_); -#line 382 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp4_) { -#line 3145 "PhotoMonitor.c" - LibraryPhoto* _tmp5_; -#line 383 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = photo; -#line 383 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_check_for_master_changes (self, _tmp5_, info); -#line 3151 "PhotoMonitor.c" - } else { - gboolean _tmp6_ = FALSE; - LibraryPhoto* _tmp7_; - GFile* _tmp8_; - GFile* _tmp9_; - gboolean _tmp10_; -#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = photo; -#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = photo_monitor_get_editable_file (self, _tmp7_); -#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = _tmp8_; -#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp10_ = _tmp9_ != NULL; -#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp9_); -#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp10_) { -#line 3170 "PhotoMonitor.c" - LibraryPhoto* _tmp11_; - GFile* _tmp12_; - GFile* _tmp13_; -#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp11_ = photo; -#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp12_ = photo_monitor_get_editable_file (self, _tmp11_); -#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp13_ = _tmp12_; -#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = g_file_equal (_tmp13_, file); -#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp13_); -#line 3184 "PhotoMonitor.c" - } else { -#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = FALSE; -#line 3188 "PhotoMonitor.c" - } -#line 384 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp6_) { -#line 3192 "PhotoMonitor.c" - LibraryPhoto* _tmp14_; -#line 385 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp14_ = photo; -#line 385 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_check_for_editable_changes (self, _tmp14_, info); -#line 3198 "PhotoMonitor.c" - } else { - LibraryPhoto* _tmp15_; - GeeCollection* _tmp16_; - GeeCollection* _tmp17_; - gboolean _tmp18_; -#line 386 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp15_ = photo; -#line 386 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp16_ = photo_monitor_get_raw_development_files (self, _tmp15_); -#line 386 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17_ = _tmp16_; -#line 386 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp18_ = _tmp17_ != NULL; -#line 386 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp17_); -#line 386 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp18_) { -#line 3216 "PhotoMonitor.c" - { - GeeIterator* _f_it = NULL; - LibraryPhoto* _tmp19_; - GeeCollection* _tmp20_; - GeeCollection* _tmp21_; - GeeIterator* _tmp22_; - GeeIterator* _tmp23_; -#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp19_ = photo; -#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp20_ = photo_monitor_get_raw_development_files (self, _tmp19_); -#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp21_ = _tmp20_; -#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp22_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp23_ = _tmp22_; -#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp21_); -#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _f_it = _tmp23_; -#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - while (TRUE) { -#line 3240 "PhotoMonitor.c" - GeeIterator* _tmp24_; - GFile* f = NULL; - GeeIterator* _tmp25_; - gpointer _tmp26_; - GFile* _tmp27_; -#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp24_ = _f_it; -#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (!gee_iterator_next (_tmp24_)) { -#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 3252 "PhotoMonitor.c" - } -#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp25_ = _f_it; -#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp26_ = gee_iterator_get (_tmp25_); -#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - f = (GFile*) _tmp26_; -#line 388 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp27_ = f; -#line 388 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (g_file_equal (_tmp27_, file)) { -#line 3264 "PhotoMonitor.c" - LibraryPhoto* _tmp28_; -#line 389 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp28_ = photo; -#line 389 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_check_for_raw_development_changes (self, _tmp28_, info); -#line 3270 "PhotoMonitor.c" - } -#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (f); -#line 3274 "PhotoMonitor.c" - } -#line 387 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_f_it); -#line 3278 "PhotoMonitor.c" - } - } - } - } -#line 379 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 3285 "PhotoMonitor.c" -} - - -static void -photo_monitor_real_notify_discovery_completing (MediaMonitor* base) -{ - PhotoMonitor * self; - GeeArrayList* _tmp0_; -#line 394 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 395 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = self->priv->matched_editables; -#line 395 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 3300 "PhotoMonitor.c" -} - - -static void -photo_monitor_check_for_master_changes (PhotoMonitor* self, - LibraryPhoto* photo, - GFileInfo* info) -{ - BackingPhotoRow* state = NULL; - BackingPhotoRow* _tmp0_; - BackingPhotoRow* _tmp1_; - BackingPhotoRow* _tmp2_; -#line 402 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 402 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 402 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail ((info == NULL) || G_IS_FILE_INFO (info)); -#line 404 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (info == NULL) { -#line 405 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 3323 "PhotoMonitor.c" - } -#line 407 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_get_master_photo_row (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo)); -#line 407 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - state = _tmp0_; -#line 408 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = state; -#line 408 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (backing_photo_row_matches_file_info (_tmp1_, info)) { -#line 409 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _backing_photo_row_unref0 (state); -#line 409 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 3337 "PhotoMonitor.c" - } -#line 411 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = state; -#line 411 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (backing_photo_row_is_touched (_tmp2_, info)) { -#line 412 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_update_master_file_info_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MONITORABLE, Monitorable)); -#line 413 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_update_master_file_alterations_completed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MONITORABLE, Monitorable), info); -#line 3347 "PhotoMonitor.c" - } else { -#line 415 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_reimport_master (self, photo); -#line 3351 "PhotoMonitor.c" - } -#line 402 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _backing_photo_row_unref0 (state); -#line 3355 "PhotoMonitor.c" -} - - -static void -photo_monitor_check_for_editable_changes (PhotoMonitor* self, - LibraryPhoto* photo, - GFileInfo* info) -{ - BackingPhotoRow* state = NULL; - BackingPhotoRow* _tmp0_; - gboolean _tmp1_ = FALSE; - BackingPhotoRow* _tmp2_; - BackingPhotoRow* _tmp4_; -#line 419 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 419 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 419 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail ((info == NULL) || G_IS_FILE_INFO (info)); -#line 420 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (info == NULL) { -#line 421 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_revert_to_master (self, photo); -#line 423 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 3381 "PhotoMonitor.c" - } -#line 427 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_get_editable_photo_row (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo)); -#line 427 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - state = _tmp0_; -#line 428 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = state; -#line 428 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp2_ == NULL) { -#line 428 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = TRUE; -#line 3393 "PhotoMonitor.c" - } else { - BackingPhotoRow* _tmp3_; -#line 428 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = state; -#line 428 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = backing_photo_row_matches_file_info (_tmp3_, info); -#line 3400 "PhotoMonitor.c" - } -#line 428 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp1_) { -#line 429 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _backing_photo_row_unref0 (state); -#line 429 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 3408 "PhotoMonitor.c" - } -#line 431 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = state; -#line 431 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (backing_photo_row_is_touched (_tmp4_, info)) { -#line 432 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_editable_file_info_altered (self, photo); -#line 433 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_editable_file_alterations_completed (self, photo, info); -#line 3418 "PhotoMonitor.c" - } else { -#line 435 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_reimport_editable (self, photo); -#line 3422 "PhotoMonitor.c" - } -#line 419 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _backing_photo_row_unref0 (state); -#line 3426 "PhotoMonitor.c" -} - - -static void -photo_monitor_check_for_raw_development_changes (PhotoMonitor* self, - LibraryPhoto* photo, - GFileInfo* info) -{ - GeeCollection* rows = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; -#line 439 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 439 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 439 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail ((info == NULL) || G_IS_FILE_INFO (info)); -#line 440 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (info == NULL) { -#line 442 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_set_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo), RAW_DEVELOPER_SHOTWELL, TRUE); -#line 444 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 3450 "PhotoMonitor.c" - } -#line 447 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_get_raw_development_photo_rows (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo)); -#line 447 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - rows = _tmp0_; -#line 448 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = rows; -#line 448 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp1_ == NULL) { -#line 449 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (rows); -#line 449 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 3464 "PhotoMonitor.c" - } - { - GeeIterator* _row_it = NULL; - GeeCollection* _tmp2_; - GeeIterator* _tmp3_; -#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = rows; -#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _row_it = _tmp3_; -#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - while (TRUE) { -#line 3478 "PhotoMonitor.c" - GeeIterator* _tmp4_; - BackingPhotoRow* row = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - BackingPhotoRow* _tmp7_; - const gchar* _tmp8_; - BackingPhotoRow* _tmp9_; - const gchar* _tmp10_; -#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = _row_it; -#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 3493 "PhotoMonitor.c" - } -#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = _row_it; -#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - row = (BackingPhotoRow*) _tmp6_; -#line 454 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = row; -#line 454 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (backing_photo_row_matches_file_info (_tmp7_, info)) { -#line 455 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _backing_photo_row_unref0 (row); -#line 455 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_row_it); -#line 455 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (rows); -#line 455 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 3513 "PhotoMonitor.c" - } -#line 456 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = g_file_info_get_name (info); -#line 456 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = row; -#line 456 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp10_ = _tmp9_->filepath; -#line 456 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (g_strcmp0 (_tmp8_, _tmp10_) == 0) { -#line 3523 "PhotoMonitor.c" - BackingPhotoRow* _tmp11_; -#line 457 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp11_ = row; -#line 457 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (backing_photo_row_is_touched (_tmp11_, info)) { -#line 458 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_raw_development_file_info_altered (self, photo); -#line 459 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_raw_development_file_alterations_completed (self, photo); -#line 3533 "PhotoMonitor.c" - } else { -#line 461 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_reimport_raw_developments (self, photo); -#line 3537 "PhotoMonitor.c" - } -#line 464 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _backing_photo_row_unref0 (row); -#line 464 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 3543 "PhotoMonitor.c" - } -#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _backing_photo_row_unref0 (row); -#line 3547 "PhotoMonitor.c" - } -#line 453 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_row_it); -#line 3551 "PhotoMonitor.c" - } -#line 439 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (rows); -#line 3555 "PhotoMonitor.c" -} - - -static gboolean -photo_monitor_real_notify_file_created (MediaMonitor* base, - GFile* file, - GFileInfo* info) -{ - PhotoMonitor * self; - gboolean result = FALSE; - LibraryPhotoSourceCollectionState state = 0; - LibraryPhoto* photo = NULL; - LibraryPhotoSourceCollectionState _tmp0_ = 0; - LibraryPhoto* _tmp1_; - LibraryPhoto* _tmp2_; - LibraryPhotoSourceCollectionState _tmp3_; -#line 469 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 469 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 469 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE); -#line 471 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = photo_monitor_get_photo_state_by_file (self, file, &_tmp0_); -#line 471 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - state = _tmp0_; -#line 471 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo = _tmp1_; -#line 472 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = photo; -#line 472 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp2_ == NULL) { -#line 473 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = FALSE; -#line 473 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 473 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 3594 "PhotoMonitor.c" - } -#line 475 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = state; -#line 475 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - switch (_tmp3_) { -#line 475 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE: -#line 475 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH: -#line 475 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE: -#line 475 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER: -#line 3608 "PhotoMonitor.c" - { - gchar* _tmp4_; - gchar* _tmp5_; - LibraryPhotoSourceCollectionState _tmp6_; - GEnumValue* _tmp7_; -#line 481 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = g_file_get_path (file); -#line 481 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = _tmp4_; -#line 481 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = state; -#line 481 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp6_); -#line 481 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_warning ("PhotoMonitor.vala:481: File %s created in %s state", _tmp5_, (_tmp7_ != NULL) ? _tmp7_->value_name : NULL); -#line 481 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp5_); -#line 482 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 3628 "PhotoMonitor.c" - } -#line 475 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE: -#line 3632 "PhotoMonitor.c" - { - LibraryPhoto* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - LibraryPhoto* _tmp13_; -#line 485 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = photo; -#line 485 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject)); -#line 485 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp10_ = _tmp9_; -#line 485 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp11_ = g_strdup_printf ("Will mark %s online", _tmp10_); -#line 485 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp12_ = _tmp11_; -#line 485 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp12_); -#line 485 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp12_); -#line 485 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp10_); -#line 486 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp13_ = photo; -#line 486 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_update_online (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MONITORABLE, Monitorable)); -#line 487 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 3662 "PhotoMonitor.c" - } - default: - { - LibraryPhotoSourceCollectionState _tmp14_; - GEnumValue* _tmp15_; -#line 490 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp14_ = state; -#line 490 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp15_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp14_); -#line 490 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_error ("PhotoMonitor.vala:490: Unknown LibraryPhoto collection state %s", (_tmp15_ != NULL) ? _tmp15_->value_name : NULL); -#line 3674 "PhotoMonitor.c" - } - } -#line 493 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = TRUE; -#line 493 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 493 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 3683 "PhotoMonitor.c" -} - - -static gboolean -photo_monitor_real_notify_file_moved (MediaMonitor* base, - GFile* old_file, - GFile* new_file, - GFileInfo* info) -{ - PhotoMonitor * self; - gboolean result = FALSE; - LibraryPhotoSourceCollectionState old_state = 0; - LibraryPhoto* old_photo = NULL; - LibraryPhotoSourceCollectionState _tmp0_ = 0; - LibraryPhoto* _tmp1_; - LibraryPhotoSourceCollectionState new_state = 0; - LibraryPhoto* new_photo = NULL; - LibraryPhotoSourceCollectionState _tmp2_ = 0; - LibraryPhoto* _tmp3_; - gboolean _tmp4_ = FALSE; - LibraryPhoto* _tmp5_; -#line 496 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 496 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (old_file), FALSE); -#line 496 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (new_file), FALSE); -#line 496 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE); -#line 498 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = photo_monitor_get_photo_state_by_file (self, old_file, &_tmp0_); -#line 498 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - old_state = _tmp0_; -#line 498 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - old_photo = _tmp1_; -#line 501 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = photo_monitor_get_photo_state_by_file (self, new_file, &_tmp2_); -#line 501 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - new_state = _tmp2_; -#line 501 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - new_photo = _tmp3_; -#line 515 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = old_photo; -#line 515 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp5_ != NULL) { -#line 3729 "PhotoMonitor.c" - LibraryPhoto* _tmp6_; -#line 515 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = new_photo; -#line 515 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = _tmp6_ == NULL; -#line 3735 "PhotoMonitor.c" - } else { -#line 515 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = FALSE; -#line 3739 "PhotoMonitor.c" - } -#line 515 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp4_) { -#line 3743 "PhotoMonitor.c" - LibraryPhotoSourceCollectionState _tmp7_; -#line 517 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = old_state; -#line 517 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - switch (_tmp7_) { -#line 517 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE: -#line 517 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH: -#line 517 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE: -#line 3755 "PhotoMonitor.c" - { - LibraryPhoto* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - LibraryPhoto* _tmp15_; -#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = old_photo; -#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject)); -#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp10_ = _tmp9_; -#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp11_ = g_file_get_path (new_file); -#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp12_ = _tmp11_; -#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp13_ = g_strdup_printf ("Will set new master file for %s to %s", _tmp10_, _tmp12_); -#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp14_ = _tmp13_; -#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp14_); -#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp14_); -#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp12_); -#line 521 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp10_); -#line 523 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp15_ = old_photo; -#line 523 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_update_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_MONITORABLE, Monitorable), new_file); -#line 524 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 3793 "PhotoMonitor.c" - } -#line 517 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE: -#line 3797 "PhotoMonitor.c" - { - LibraryPhoto* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - LibraryPhoto* _tmp23_; -#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp16_ = old_photo; -#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_OBJECT, DataObject)); -#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp18_ = _tmp17_; -#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp19_ = g_file_get_path (new_file); -#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp20_ = _tmp19_; -#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp21_ = g_strdup_printf ("Will set new editable file for %s to %s", _tmp18_, _tmp20_); -#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp22_ = _tmp21_; -#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp22_); -#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp22_); -#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp20_); -#line 527 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp18_); -#line 529 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp23_ = old_photo; -#line 529 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_editable_file (self, _tmp23_, new_file); -#line 530 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 3835 "PhotoMonitor.c" - } -#line 517 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER: -#line 3839 "PhotoMonitor.c" - { - LibraryPhoto* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; - LibraryPhoto* _tmp31_; -#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp24_ = old_photo; -#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp25_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_OBJECT, DataObject)); -#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp26_ = _tmp25_; -#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp27_ = g_file_get_path (new_file); -#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp28_ = _tmp27_; -#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp29_ = g_strdup_printf ("Will set new raw development file for %s to %s", _tmp26_, _tmp28_); -#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp30_ = _tmp29_; -#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp30_); -#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp30_); -#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp28_); -#line 533 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp26_); -#line 535 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp31_ = old_photo; -#line 535 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_raw_development_file (self, _tmp31_, new_file); -#line 536 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 3877 "PhotoMonitor.c" - } - default: - { - LibraryPhotoSourceCollectionState _tmp32_; - GEnumValue* _tmp33_; -#line 539 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp32_ = old_state; -#line 539 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp33_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp32_); -#line 539 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_error ("PhotoMonitor.vala:539: Unknown LibraryPhoto collection state %s", (_tmp33_ != NULL) ? _tmp33_->value_name : NULL); -#line 3889 "PhotoMonitor.c" - } - } - } else { - gboolean _tmp34_ = FALSE; - LibraryPhoto* _tmp35_; -#line 541 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp35_ = old_photo; -#line 541 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp35_ == NULL) { -#line 3899 "PhotoMonitor.c" - LibraryPhoto* _tmp36_; -#line 541 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp36_ = new_photo; -#line 541 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp34_ = _tmp36_ != NULL; -#line 3905 "PhotoMonitor.c" - } else { -#line 541 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp34_ = FALSE; -#line 3909 "PhotoMonitor.c" - } -#line 541 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp34_) { -#line 3913 "PhotoMonitor.c" - LibraryPhotoSourceCollectionState _tmp37_; -#line 543 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp37_ = new_state; -#line 543 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - switch (_tmp37_) { -#line 543 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE: -#line 543 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH: -#line 543 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE: -#line 3925 "PhotoMonitor.c" - { - LibraryPhoto* _tmp38_; - gchar* _tmp39_; - gchar* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; - LibraryPhoto* _tmp43_; -#line 547 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp38_ = new_photo; -#line 547 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp39_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_DATA_OBJECT, DataObject)); -#line 547 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp40_ = _tmp39_; -#line 547 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp41_ = g_strdup_printf ("Will reimport master file for %s", _tmp40_); -#line 547 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp42_ = _tmp41_; -#line 547 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp42_); -#line 547 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp42_); -#line 547 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp40_); -#line 548 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp43_ = new_photo; -#line 548 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_reimport_master (self, _tmp43_); -#line 549 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 3955 "PhotoMonitor.c" - } -#line 543 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE: -#line 3959 "PhotoMonitor.c" - { - LibraryPhoto* _tmp44_; - gchar* _tmp45_; - gchar* _tmp46_; - gchar* _tmp47_; - gchar* _tmp48_; - LibraryPhoto* _tmp49_; -#line 552 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp44_ = new_photo; -#line 552 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp45_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_DATA_OBJECT, DataObject)); -#line 552 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp46_ = _tmp45_; -#line 552 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp47_ = g_strdup_printf ("Will reimport editable file for %s", _tmp46_); -#line 552 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp48_ = _tmp47_; -#line 552 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp48_); -#line 552 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp48_); -#line 552 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp46_); -#line 553 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp49_ = new_photo; -#line 553 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_reimport_editable (self, _tmp49_); -#line 554 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 3989 "PhotoMonitor.c" - } -#line 543 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER: -#line 3993 "PhotoMonitor.c" - { - LibraryPhoto* _tmp50_; - gchar* _tmp51_; - gchar* _tmp52_; - gchar* _tmp53_; - gchar* _tmp54_; - LibraryPhoto* _tmp55_; -#line 557 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp50_ = new_photo; -#line 557 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp51_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, TYPE_DATA_OBJECT, DataObject)); -#line 557 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp52_ = _tmp51_; -#line 557 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp53_ = g_strdup_printf ("Will reimport raw development file for %s", _tmp52_); -#line 557 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp54_ = _tmp53_; -#line 557 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp54_); -#line 557 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp54_); -#line 557 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp52_); -#line 558 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp55_ = new_photo; -#line 558 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_reimport_raw_developments (self, _tmp55_); -#line 559 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4023 "PhotoMonitor.c" - } - default: - { - LibraryPhotoSourceCollectionState _tmp56_; - GEnumValue* _tmp57_; -#line 562 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp56_ = new_state; -#line 562 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp57_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp56_); -#line 562 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_error ("PhotoMonitor.vala:562: Unknown LibraryPhoto collection state %s", (_tmp57_ != NULL) ? _tmp57_->value_name : NULL); -#line 4035 "PhotoMonitor.c" - } - } - } else { - gboolean _tmp58_ = FALSE; - LibraryPhoto* _tmp59_; -#line 564 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp59_ = old_photo; -#line 564 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp59_ == NULL) { -#line 4045 "PhotoMonitor.c" - LibraryPhoto* _tmp60_; -#line 564 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp60_ = new_photo; -#line 564 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp58_ = _tmp60_ == NULL; -#line 4051 "PhotoMonitor.c" - } else { -#line 564 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp58_ = FALSE; -#line 4055 "PhotoMonitor.c" - } -#line 564 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp58_) { -#line 566 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = FALSE; -#line 566 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (new_photo); -#line 566 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (old_photo); -#line 566 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 4067 "PhotoMonitor.c" - } else { - gboolean _tmp61_ = FALSE; - LibraryPhoto* _tmp62_; - LibraryPhotoSourceCollectionState _tmp64_; - LibraryPhotoSourceCollectionState _tmp79_; -#line 568 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp62_ = old_photo; -#line 568 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp62_ != NULL) { -#line 4077 "PhotoMonitor.c" - LibraryPhoto* _tmp63_; -#line 568 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp63_ = new_photo; -#line 568 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp61_ = _tmp63_ != NULL; -#line 4083 "PhotoMonitor.c" - } else { -#line 568 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp61_ = FALSE; -#line 4087 "PhotoMonitor.c" - } -#line 568 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_assert (_tmp61_, "old_photo != null && new_photo != null"); -#line 570 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp64_ = old_state; -#line 570 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - switch (_tmp64_) { -#line 570 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE: -#line 4097 "PhotoMonitor.c" - { - LibraryPhoto* _tmp65_; - gchar* _tmp66_; - gchar* _tmp67_; - gchar* _tmp68_; - gchar* _tmp69_; - LibraryPhoto* _tmp70_; -#line 572 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp65_ = old_photo; -#line 572 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp66_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, TYPE_DATA_OBJECT, DataObject)); -#line 572 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp67_ = _tmp66_; -#line 572 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp68_ = g_strdup_printf ("Will mark offline %s", _tmp67_); -#line 572 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp69_ = _tmp68_; -#line 572 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp69_); -#line 572 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp69_); -#line 572 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp67_); -#line 573 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp70_ = old_photo; -#line 573 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_update_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, TYPE_MONITORABLE, Monitorable)); -#line 574 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4127 "PhotoMonitor.c" - } -#line 570 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH: -#line 570 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE: -#line 4133 "PhotoMonitor.c" - { -#line 579 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4137 "PhotoMonitor.c" - } -#line 570 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE: -#line 4141 "PhotoMonitor.c" - { - LibraryPhoto* _tmp71_; - gchar* _tmp72_; - gchar* _tmp73_; - gchar* _tmp74_; - gchar* _tmp75_; - LibraryPhoto* _tmp76_; -#line 582 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp71_ = old_photo; -#line 582 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp72_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, TYPE_DATA_OBJECT, DataObject)); -#line 582 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp73_ = _tmp72_; -#line 582 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp74_ = g_strdup_printf ("Will revert %s to master", _tmp73_); -#line 582 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp75_ = _tmp74_; -#line 582 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp75_); -#line 582 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp75_); -#line 582 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp73_); -#line 583 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp76_ = old_photo; -#line 583 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_revert_to_master (self, _tmp76_); -#line 584 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4171 "PhotoMonitor.c" - } -#line 570 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER: -#line 4175 "PhotoMonitor.c" - { -#line 588 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4179 "PhotoMonitor.c" - } - default: - { - LibraryPhotoSourceCollectionState _tmp77_; - GEnumValue* _tmp78_; -#line 591 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp77_ = old_state; -#line 591 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp78_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp77_); -#line 591 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_error ("PhotoMonitor.vala:591: Unknown LibraryPhoto collection state %s", (_tmp78_ != NULL) ? _tmp78_->value_name : NULL); -#line 4191 "PhotoMonitor.c" - } - } -#line 594 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp79_ = new_state; -#line 594 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - switch (_tmp79_) { -#line 594 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE: -#line 594 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH: -#line 594 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE: -#line 4204 "PhotoMonitor.c" - { - LibraryPhoto* _tmp80_; - gchar* _tmp81_; - gchar* _tmp82_; - gchar* _tmp83_; - gchar* _tmp84_; - LibraryPhoto* _tmp85_; -#line 598 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp80_ = new_photo; -#line 598 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp81_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, TYPE_DATA_OBJECT, DataObject)); -#line 598 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp82_ = _tmp81_; -#line 598 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp83_ = g_strdup_printf ("Will reimport master file for %s", _tmp82_); -#line 598 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp84_ = _tmp83_; -#line 598 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp84_); -#line 598 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp84_); -#line 598 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp82_); -#line 599 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp85_ = new_photo; -#line 599 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_reimport_master (self, _tmp85_); -#line 600 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4234 "PhotoMonitor.c" - } -#line 594 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE: -#line 4238 "PhotoMonitor.c" - { - LibraryPhoto* _tmp86_; - gchar* _tmp87_; - gchar* _tmp88_; - gchar* _tmp89_; - gchar* _tmp90_; - LibraryPhoto* _tmp91_; -#line 603 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp86_ = new_photo; -#line 603 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp87_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp86_, TYPE_DATA_OBJECT, DataObject)); -#line 603 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp88_ = _tmp87_; -#line 603 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp89_ = g_strdup_printf ("Will reimport editable file for %s", _tmp88_); -#line 603 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp90_ = _tmp89_; -#line 603 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp90_); -#line 603 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp90_); -#line 603 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp88_); -#line 604 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp91_ = new_photo; -#line 604 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_reimport_editable (self, _tmp91_); -#line 605 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4268 "PhotoMonitor.c" - } -#line 594 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER: -#line 4272 "PhotoMonitor.c" - { - LibraryPhoto* _tmp92_; - gchar* _tmp93_; - gchar* _tmp94_; - gchar* _tmp95_; - gchar* _tmp96_; - LibraryPhoto* _tmp97_; -#line 608 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp92_ = new_photo; -#line 608 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp93_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp92_, TYPE_DATA_OBJECT, DataObject)); -#line 608 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp94_ = _tmp93_; -#line 608 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp95_ = g_strdup_printf ("Will reimport raw development file for %s", _tmp94_); -#line 608 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp96_ = _tmp95_; -#line 608 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp96_); -#line 608 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp96_); -#line 608 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp94_); -#line 609 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp97_ = new_photo; -#line 609 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_reimport_raw_developments (self, _tmp97_); -#line 610 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4302 "PhotoMonitor.c" - } - default: - { - LibraryPhotoSourceCollectionState _tmp98_; - GEnumValue* _tmp99_; -#line 613 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp98_ = new_state; -#line 613 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp99_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp98_); -#line 613 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_error ("PhotoMonitor.vala:613: Unknown LibraryPhoto collection state %s", (_tmp99_ != NULL) ? _tmp99_->value_name : NULL); -#line 4314 "PhotoMonitor.c" - } - } - } - } - } -#line 617 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = TRUE; -#line 617 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (new_photo); -#line 617 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (old_photo); -#line 617 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 4328 "PhotoMonitor.c" -} - - -static gboolean -photo_monitor_real_notify_file_altered (MediaMonitor* base, - GFile* file) -{ - PhotoMonitor * self; - gboolean result = FALSE; - LibraryPhotoSourceCollectionState state = 0; - LibraryPhoto* photo = NULL; - LibraryPhotoSourceCollectionState _tmp0_ = 0; - LibraryPhoto* _tmp1_; - LibraryPhoto* _tmp2_; - LibraryPhotoSourceCollectionState _tmp3_; -#line 620 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 620 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 622 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = photo_monitor_get_photo_state_by_file (self, file, &_tmp0_); -#line 622 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - state = _tmp0_; -#line 622 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo = _tmp1_; -#line 623 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = photo; -#line 623 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp2_ == NULL) { -#line 624 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = FALSE; -#line 624 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 624 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 4364 "PhotoMonitor.c" - } -#line 626 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = state; -#line 626 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - switch (_tmp3_) { -#line 626 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE: -#line 626 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE: -#line 626 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH: -#line 4376 "PhotoMonitor.c" - { - LibraryPhoto* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - LibraryPhoto* _tmp9_; - LibraryPhoto* _tmp10_; -#line 630 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = photo; -#line 630 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject)); -#line 630 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = _tmp5_; -#line 630 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = g_strdup_printf ("Will reimport master for %s", _tmp6_); -#line 630 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = _tmp7_; -#line 630 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp8_); -#line 630 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp8_); -#line 630 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp6_); -#line 631 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = photo; -#line 631 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_reimport_master (self, _tmp9_); -#line 632 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp10_ = photo; -#line 632 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MONITORABLE, Monitorable), TRUE); -#line 633 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4411 "PhotoMonitor.c" - } -#line 626 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE: -#line 4415 "PhotoMonitor.c" - { - LibraryPhoto* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - LibraryPhoto* _tmp16_; - LibraryPhoto* _tmp17_; -#line 636 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp11_ = photo; -#line 636 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp12_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject)); -#line 636 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp13_ = _tmp12_; -#line 636 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp14_ = g_strdup_printf ("Will reimport editable for %s", _tmp13_); -#line 636 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp15_ = _tmp14_; -#line 636 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp15_); -#line 636 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp15_); -#line 636 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp13_); -#line 637 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp16_ = photo; -#line 637 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_reimport_editable (self, _tmp16_); -#line 638 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17_ = photo; -#line 638 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_editable_file_in_alteration (self, _tmp17_, TRUE); -#line 639 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4450 "PhotoMonitor.c" - } -#line 626 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER: -#line 4454 "PhotoMonitor.c" - { - LibraryPhoto* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - LibraryPhoto* _tmp23_; - LibraryPhoto* _tmp24_; -#line 642 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp18_ = photo; -#line 642 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp19_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_OBJECT, DataObject)); -#line 642 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp20_ = _tmp19_; -#line 642 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp21_ = g_strdup_printf ("Will reimport raw development for %s", _tmp20_); -#line 642 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp22_ = _tmp21_; -#line 642 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp22_); -#line 642 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp22_); -#line 642 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp20_); -#line 643 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp23_ = photo; -#line 643 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_reimport_raw_developments (self, _tmp23_); -#line 644 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp24_ = photo; -#line 644 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_raw_development_file_in_alteration (self, _tmp24_, TRUE); -#line 645 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4489 "PhotoMonitor.c" - } - default: - { - LibraryPhotoSourceCollectionState _tmp25_; - GEnumValue* _tmp26_; -#line 648 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp25_ = state; -#line 648 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp26_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp25_); -#line 648 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_error ("PhotoMonitor.vala:648: Unknown LibraryPhoto collection state %s", (_tmp26_ != NULL) ? _tmp26_->value_name : NULL); -#line 4501 "PhotoMonitor.c" - } - } -#line 651 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = TRUE; -#line 651 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 651 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 4510 "PhotoMonitor.c" -} - - -static gboolean -photo_monitor_real_notify_file_attributes_altered (MediaMonitor* base, - GFile* file) -{ - PhotoMonitor * self; - gboolean result = FALSE; - LibraryPhotoSourceCollectionState state = 0; - LibraryPhoto* photo = NULL; - LibraryPhotoSourceCollectionState _tmp0_ = 0; - LibraryPhoto* _tmp1_; - LibraryPhoto* _tmp2_; - LibraryPhotoSourceCollectionState _tmp3_; -#line 654 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 654 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 656 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = photo_monitor_get_photo_state_by_file (self, file, &_tmp0_); -#line 656 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - state = _tmp0_; -#line 656 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo = _tmp1_; -#line 657 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = photo; -#line 657 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp2_ == NULL) { -#line 658 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = FALSE; -#line 658 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 658 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 4546 "PhotoMonitor.c" - } -#line 660 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = state; -#line 660 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - switch (_tmp3_) { -#line 660 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE: -#line 660 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH: -#line 4556 "PhotoMonitor.c" - { - LibraryPhoto* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - LibraryPhoto* _tmp9_; - LibraryPhoto* _tmp10_; -#line 663 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = photo; -#line 663 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject)); -#line 663 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = _tmp5_; -#line 663 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = g_strdup_printf ("Will update master file info for %s", _tmp6_); -#line 663 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = _tmp7_; -#line 663 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp8_); -#line 663 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp8_); -#line 663 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp6_); -#line 664 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = photo; -#line 664 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_update_master_file_info_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MONITORABLE, Monitorable)); -#line 665 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp10_ = photo; -#line 665 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MONITORABLE, Monitorable), TRUE); -#line 666 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4591 "PhotoMonitor.c" - } -#line 660 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE: -#line 4595 "PhotoMonitor.c" - { - gchar* _tmp11_; - gchar* _tmp12_; - LibraryPhotoSourceCollectionState _tmp13_; - GEnumValue* _tmp14_; - LibraryPhoto* _tmp15_; -#line 670 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp11_ = g_file_get_path (file); -#line 670 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp12_ = _tmp11_; -#line 670 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp13_ = state; -#line 671 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp14_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp13_); -#line 670 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_warning ("PhotoMonitor.vala:670: File %s attributes altered in %s state", _tmp12_, (_tmp14_ != NULL) ? _tmp14_->value_name : NULL); -#line 670 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp12_); -#line 672 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp15_ = photo; -#line 672 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_MONITORABLE, Monitorable), TRUE); -#line 673 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4620 "PhotoMonitor.c" - } -#line 660 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE: -#line 4624 "PhotoMonitor.c" - { - LibraryPhoto* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - LibraryPhoto* _tmp21_; - LibraryPhoto* _tmp22_; -#line 676 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp16_ = photo; -#line 676 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_OBJECT, DataObject)); -#line 676 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp18_ = _tmp17_; -#line 676 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp19_ = g_strdup_printf ("Will update editable file info for %s", _tmp18_); -#line 676 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp20_ = _tmp19_; -#line 676 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp20_); -#line 676 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp20_); -#line 676 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp18_); -#line 677 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp21_ = photo; -#line 677 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_editable_file_info_altered (self, _tmp21_); -#line 678 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp22_ = photo; -#line 678 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_editable_file_in_alteration (self, _tmp22_, TRUE); -#line 679 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4659 "PhotoMonitor.c" - } -#line 660 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER: -#line 4663 "PhotoMonitor.c" - { - LibraryPhoto* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; - LibraryPhoto* _tmp28_; - LibraryPhoto* _tmp29_; -#line 682 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp23_ = photo; -#line 682 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp24_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_DATA_OBJECT, DataObject)); -#line 682 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp25_ = _tmp24_; -#line 682 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp26_ = g_strdup_printf ("Will update raw development file info for %s", _tmp25_); -#line 682 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp27_ = _tmp26_; -#line 682 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp27_); -#line 682 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp27_); -#line 682 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp25_); -#line 683 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp28_ = photo; -#line 683 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_raw_development_file_info_altered (self, _tmp28_); -#line 684 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp29_ = photo; -#line 684 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_raw_development_file_in_alteration (self, _tmp29_, TRUE); -#line 685 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4698 "PhotoMonitor.c" - } - default: - { - LibraryPhotoSourceCollectionState _tmp30_; - GEnumValue* _tmp31_; -#line 688 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp30_ = state; -#line 688 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp31_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp30_); -#line 688 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_error ("PhotoMonitor.vala:688: Unknown LibraryPhoto collection state %s", (_tmp31_ != NULL) ? _tmp31_->value_name : NULL); -#line 4710 "PhotoMonitor.c" - } - } -#line 691 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = TRUE; -#line 691 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 691 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 4719 "PhotoMonitor.c" -} - - -static gboolean -photo_monitor_real_notify_file_alteration_completed (MediaMonitor* base, - GFile* file, - GFileInfo* info) -{ - PhotoMonitor * self; - gboolean result = FALSE; - LibraryPhotoSourceCollectionState state = 0; - LibraryPhoto* photo = NULL; - LibraryPhotoSourceCollectionState _tmp0_ = 0; - LibraryPhoto* _tmp1_; - LibraryPhoto* _tmp2_; - LibraryPhotoSourceCollectionState _tmp3_; -#line 694 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 694 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 694 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE); -#line 696 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = photo_monitor_get_photo_state_by_file (self, file, &_tmp0_); -#line 696 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - state = _tmp0_; -#line 696 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo = _tmp1_; -#line 697 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = photo; -#line 697 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp2_ == NULL) { -#line 698 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = FALSE; -#line 698 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 698 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 4758 "PhotoMonitor.c" - } -#line 700 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = state; -#line 700 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - switch (_tmp3_) { -#line 700 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE: -#line 700 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH: -#line 700 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE: -#line 4770 "PhotoMonitor.c" - { - LibraryPhoto* _tmp4_; -#line 704 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = photo; -#line 704 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_update_master_file_alterations_completed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MONITORABLE, Monitorable), info); -#line 705 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4779 "PhotoMonitor.c" - } -#line 700 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE: -#line 4783 "PhotoMonitor.c" - { - LibraryPhoto* _tmp5_; -#line 708 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = photo; -#line 708 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_editable_file_alterations_completed (self, _tmp5_, info); -#line 709 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4792 "PhotoMonitor.c" - } -#line 700 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER: -#line 4796 "PhotoMonitor.c" - { - LibraryPhoto* _tmp6_; -#line 712 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = photo; -#line 712 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_raw_development_file_alterations_completed (self, _tmp6_); -#line 713 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4805 "PhotoMonitor.c" - } - default: - { - LibraryPhotoSourceCollectionState _tmp7_; - GEnumValue* _tmp8_; -#line 716 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = state; -#line 716 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp7_); -#line 716 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_error ("PhotoMonitor.vala:716: Unknown LibraryPhoto collection state %s", (_tmp8_ != NULL) ? _tmp8_->value_name : NULL); -#line 4817 "PhotoMonitor.c" - } - } -#line 719 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = TRUE; -#line 719 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 719 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 4826 "PhotoMonitor.c" -} - - -static gboolean -photo_monitor_real_notify_file_deleted (MediaMonitor* base, - GFile* file) -{ - PhotoMonitor * self; - gboolean result = FALSE; - LibraryPhotoSourceCollectionState state = 0; - LibraryPhoto* photo = NULL; - LibraryPhotoSourceCollectionState _tmp0_ = 0; - LibraryPhoto* _tmp1_; - LibraryPhoto* _tmp2_; - LibraryPhotoSourceCollectionState _tmp3_; -#line 722 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 722 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 724 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = photo_monitor_get_photo_state_by_file (self, file, &_tmp0_); -#line 724 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - state = _tmp0_; -#line 724 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo = _tmp1_; -#line 725 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = photo; -#line 725 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp2_ == NULL) { -#line 726 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = FALSE; -#line 726 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 726 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 4862 "PhotoMonitor.c" - } -#line 728 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = state; -#line 728 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - switch (_tmp3_) { -#line 728 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_ONLINE: -#line 4870 "PhotoMonitor.c" - { - LibraryPhoto* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - LibraryPhoto* _tmp9_; - LibraryPhoto* _tmp10_; -#line 730 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = photo; -#line 730 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject)); -#line 730 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = _tmp5_; -#line 730 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = g_strdup_printf ("Will mark %s offline", _tmp6_); -#line 730 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = _tmp7_; -#line 730 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp8_); -#line 730 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp8_); -#line 730 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp6_); -#line 731 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = photo; -#line 731 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_update_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MONITORABLE, Monitorable)); -#line 732 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp10_ = photo; -#line 732 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MONITORABLE, Monitorable), FALSE); -#line 733 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4905 "PhotoMonitor.c" - } -#line 728 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_TRASH: -#line 728 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_OFFLINE: -#line 4911 "PhotoMonitor.c" - { - LibraryPhoto* _tmp11_; -#line 738 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp11_ = photo; -#line 738 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_MONITORABLE, Monitorable), FALSE); -#line 739 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4920 "PhotoMonitor.c" - } -#line 728 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE: -#line 4924 "PhotoMonitor.c" - { - LibraryPhoto* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - LibraryPhoto* _tmp17_; - LibraryPhoto* _tmp18_; -#line 742 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp12_ = photo; -#line 742 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp13_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject)); -#line 742 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp14_ = _tmp13_; -#line 742 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp15_ = g_strdup_printf ("Will revert %s to master", _tmp14_); -#line 742 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp16_ = _tmp15_; -#line 742 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp16_); -#line 742 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp16_); -#line 742 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp14_); -#line 743 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17_ = photo; -#line 743 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_revert_to_master (self, _tmp17_); -#line 744 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp18_ = photo; -#line 744 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_editable_file_in_alteration (self, _tmp18_, FALSE); -#line 745 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 4959 "PhotoMonitor.c" - } -#line 728 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - case LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER: -#line 4963 "PhotoMonitor.c" - { - LibraryPhoto* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - LibraryPhoto* _tmp24_; - LibraryPhoto* _tmp25_; - LibraryPhoto* _tmp26_; -#line 748 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp19_ = photo; -#line 748 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp20_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_DATA_OBJECT, DataObject)); -#line 748 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp21_ = _tmp20_; -#line 748 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp22_ = g_strdup_printf ("Will revert %s to master", _tmp21_); -#line 748 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp23_ = _tmp22_; -#line 748 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp23_); -#line 748 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp23_); -#line 748 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp21_); -#line 749 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp24_ = photo; -#line 749 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_revert_to_master (self, _tmp24_); -#line 750 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp25_ = photo; -#line 750 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_editable_file_in_alteration (self, _tmp25_, FALSE); -#line 751 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp26_ = photo; -#line 751 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_update_raw_development_file_in_alteration (self, _tmp26_, FALSE); -#line 752 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 5003 "PhotoMonitor.c" - } - default: - { - LibraryPhotoSourceCollectionState _tmp27_; - GEnumValue* _tmp28_; -#line 755 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp27_ = state; -#line 755 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp28_ = g_enum_get_value (g_type_class_ref (LIBRARY_PHOTO_SOURCE_COLLECTION_TYPE_STATE), _tmp27_); -#line 755 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_error ("PhotoMonitor.vala:755: Unknown LibraryPhoto collection state %s", (_tmp28_ != NULL) ? _tmp28_->value_name : NULL); -#line 5015 "PhotoMonitor.c" - } - } -#line 758 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = TRUE; -#line 758 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 758 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 5024 "PhotoMonitor.c" -} - - -static void -photo_monitor_real_on_media_source_destroyed (MediaMonitor* base, - DataSource* source) -{ - PhotoMonitor * self; -#line 761 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 761 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 762 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - MEDIA_MONITOR_CLASS (photo_monitor_parent_class)->on_media_source_destroyed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), source); -#line 764 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_cancel_reimports (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 5041 "PhotoMonitor.c" -} - - -static LibraryPhoto* -photo_monitor_get_photo_state_by_file (PhotoMonitor* self, - GFile* file, - LibraryPhotoSourceCollectionState* state) -{ - LibraryPhotoSourceCollectionState _vala_state = 0; - LibraryPhoto* result = NULL; - GFile* real_file = NULL; - GFile* _tmp58_ = NULL; - GFile* _tmp59_; - LibraryPhotoSourceCollection* _tmp60_; - LibraryPhotoSourceCollectionState _tmp61_ = 0; - LibraryPhoto* _tmp62_; -#line 767 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_PHOTO_MONITOR (self), NULL); -#line 767 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 768 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - real_file = NULL; -#line 769 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (media_monitor_has_pending_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor))) { -#line 5066 "PhotoMonitor.c" - { - GeeIterator* _monitorable_it = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = media_monitor_get_monitorables (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor)); -#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp0_; -#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = _tmp2_; -#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp1_); -#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_it = _tmp3_; -#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - while (TRUE) { -#line 5087 "PhotoMonitor.c" - GeeIterator* _tmp4_; - Monitorable* monitorable = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - LibraryPhoto* photo = NULL; - Monitorable* _tmp7_; - LibraryPhoto* _tmp8_; - PhotoUpdates* updates = NULL; - LibraryPhoto* _tmp9_; - PhotoUpdates* _tmp10_; - PhotoUpdates* _tmp11_; - gboolean _tmp12_ = FALSE; - PhotoUpdates* _tmp13_; - GFile* _tmp14_; - GFile* _tmp15_; - gboolean _tmp16_; - gboolean _tmp22_ = FALSE; - PhotoUpdates* _tmp23_; - GFile* _tmp24_; - GFile* _tmp25_; - gboolean _tmp26_; - PhotoUpdates* _tmp33_; - GeeCollection* _tmp34_; - GeeCollection* _tmp35_; - gboolean _tmp36_; -#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = _monitorable_it; -#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 5119 "PhotoMonitor.c" - } -#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = _monitorable_it; -#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - monitorable = (Monitorable*) _tmp6_; -#line 771 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = monitorable; -#line 771 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 771 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo = _tmp8_; -#line 773 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = photo; -#line 773 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp10_ = photo_monitor_get_existing_photo_updates (self, _tmp9_); -#line 773 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - updates = _tmp10_; -#line 774 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp11_ = updates; -#line 774 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp11_ == NULL) { -#line 775 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 775 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 775 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (monitorable); -#line 775 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - continue; -#line 5151 "PhotoMonitor.c" - } -#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp13_ = updates; -#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp14_ = monitorable_updates_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates)); -#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp15_ = _tmp14_; -#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp16_ = _tmp15_ != NULL; -#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp15_); -#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp16_) { -#line 5165 "PhotoMonitor.c" - PhotoUpdates* _tmp17_; - GFile* _tmp18_; - GFile* _tmp19_; -#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17_ = updates; -#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp18_ = monitorable_updates_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates)); -#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp19_ = _tmp18_; -#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp12_ = g_file_equal (_tmp19_, file); -#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp19_); -#line 5179 "PhotoMonitor.c" - } else { -#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp12_ = FALSE; -#line 5183 "PhotoMonitor.c" - } -#line 777 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp12_) { -#line 5187 "PhotoMonitor.c" - LibraryPhoto* _tmp20_; - GFile* _tmp21_; -#line 778 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp20_ = photo; -#line 778 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp21_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 778 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (real_file); -#line 778 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - real_file = _tmp21_; -#line 780 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 780 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 780 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (monitorable); -#line 780 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 5206 "PhotoMonitor.c" - } -#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp23_ = updates; -#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp24_ = photo_updates_get_editable_file (_tmp23_); -#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp25_ = _tmp24_; -#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp26_ = _tmp25_ != NULL; -#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp25_); -#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp26_) { -#line 5220 "PhotoMonitor.c" - PhotoUpdates* _tmp27_; - GFile* _tmp28_; - GFile* _tmp29_; -#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp27_ = updates; -#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp28_ = photo_updates_get_editable_file (_tmp27_); -#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp29_ = _tmp28_; -#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp22_ = g_file_equal (_tmp29_, file); -#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp29_); -#line 5234 "PhotoMonitor.c" - } else { -#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp22_ = FALSE; -#line 5238 "PhotoMonitor.c" - } -#line 783 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp22_) { -#line 5242 "PhotoMonitor.c" - LibraryPhoto* _tmp30_; - GFile* _tmp31_; - GFile* _tmp32_; -#line 784 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp30_ = photo; -#line 784 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp31_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_PHOTO, Photo)); -#line 784 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (real_file); -#line 784 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - real_file = _tmp31_; -#line 788 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp32_ = real_file; -#line 788 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp32_ == NULL) { -#line 789 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_EDITABLE; -#line 791 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = photo; -#line 791 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 791 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (monitorable); -#line 791 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_monitorable_it); -#line 791 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (real_file); -#line 791 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (state) { -#line 791 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *state = _vala_state; -#line 5274 "PhotoMonitor.c" - } -#line 791 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 5278 "PhotoMonitor.c" - } -#line 794 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 794 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 794 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (monitorable); -#line 794 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 5288 "PhotoMonitor.c" - } -#line 797 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp33_ = updates; -#line 797 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp34_ = photo_updates_get_raw_developer_files (_tmp33_); -#line 797 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp35_ = _tmp34_; -#line 797 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp36_ = _tmp35_ != NULL; -#line 797 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp35_); -#line 797 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp36_) { -#line 5302 "PhotoMonitor.c" - gboolean found = FALSE; - gboolean _tmp46_; -#line 798 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - found = FALSE; -#line 5307 "PhotoMonitor.c" - { - GeeIterator* _raw_it = NULL; - PhotoUpdates* _tmp37_; - GeeCollection* _tmp38_; - GeeCollection* _tmp39_; - GeeIterator* _tmp40_; - GeeIterator* _tmp41_; -#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp37_ = updates; -#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp38_ = photo_updates_get_raw_developer_files (_tmp37_); -#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp39_ = _tmp38_; -#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp40_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp41_ = _tmp40_; -#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp39_); -#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _raw_it = _tmp41_; -#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - while (TRUE) { -#line 5331 "PhotoMonitor.c" - GeeIterator* _tmp42_; - GFile* raw = NULL; - GeeIterator* _tmp43_; - gpointer _tmp44_; - GFile* _tmp45_; -#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp42_ = _raw_it; -#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (!gee_iterator_next (_tmp42_)) { -#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 5343 "PhotoMonitor.c" - } -#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp43_ = _raw_it; -#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp44_ = gee_iterator_get (_tmp43_); -#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - raw = (GFile*) _tmp44_; -#line 800 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp45_ = raw; -#line 800 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (g_file_equal (_tmp45_, file)) { -#line 801 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - found = TRUE; -#line 803 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (raw); -#line 803 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 5361 "PhotoMonitor.c" - } -#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (raw); -#line 5365 "PhotoMonitor.c" - } -#line 799 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_raw_it); -#line 5369 "PhotoMonitor.c" - } -#line 807 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp46_ = found; -#line 807 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp46_) { -#line 5375 "PhotoMonitor.c" - GeeCollection* developed = NULL; - LibraryPhoto* _tmp47_; - GeeCollection* _tmp48_; - GeeCollection* _tmp49_; -#line 808 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp47_ = photo; -#line 808 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp48_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_PHOTO, Photo)); -#line 808 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - developed = _tmp48_; -#line 809 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp49_ = developed; -#line 809 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp49_ != NULL) { -#line 5390 "PhotoMonitor.c" - { - GeeIterator* _f_it = NULL; - GeeCollection* _tmp50_; - GeeIterator* _tmp51_; -#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp50_ = developed; -#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp51_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _f_it = _tmp51_; -#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - while (TRUE) { -#line 5403 "PhotoMonitor.c" - GeeIterator* _tmp52_; - GFile* f = NULL; - GeeIterator* _tmp53_; - gpointer _tmp54_; - GFile* _tmp55_; -#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp52_ = _f_it; -#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (!gee_iterator_next (_tmp52_)) { -#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 5415 "PhotoMonitor.c" - } -#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp53_ = _f_it; -#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp54_ = gee_iterator_get (_tmp53_); -#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - f = (GFile*) _tmp54_; -#line 811 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp55_ = f; -#line 811 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (g_file_equal (_tmp55_, file)) { -#line 5427 "PhotoMonitor.c" - GFile* _tmp56_; - GFile* _tmp57_; -#line 812 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp56_ = f; -#line 812 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp57_ = _g_object_ref0 (_tmp56_); -#line 812 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (real_file); -#line 812 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - real_file = _tmp57_; -#line 813 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_state = LIBRARY_PHOTO_SOURCE_COLLECTION_STATE_DEVELOPER; -#line 815 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (f); -#line 815 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 5444 "PhotoMonitor.c" - } -#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (f); -#line 5448 "PhotoMonitor.c" - } -#line 810 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_f_it); -#line 5452 "PhotoMonitor.c" - } - } -#line 821 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (developed); -#line 821 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 821 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 821 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (monitorable); -#line 821 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 5465 "PhotoMonitor.c" - } - } -#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (monitorable); -#line 5474 "PhotoMonitor.c" - } -#line 770 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_monitorable_it); -#line 5478 "PhotoMonitor.c" - } - } -#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp59_ = real_file; -#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp58_ = _tmp59_; -#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp58_ == NULL) { -#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp58_ = file; -#line 5489 "PhotoMonitor.c" - } -#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp60_ = library_photo_global; -#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp62_ = library_photo_source_collection_get_state_by_file (_tmp60_, _tmp58_, &_tmp61_); -#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_state = _tmp61_; -#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = _tmp62_; -#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (real_file); -#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (state) { -#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *state = _vala_state; -#line 5505 "PhotoMonitor.c" - } -#line 827 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 5509 "PhotoMonitor.c" -} - - -PhotoUpdates* -photo_monitor_fetch_photo_updates (PhotoMonitor* self, - LibraryPhoto* photo) -{ - PhotoUpdates* result = NULL; - MonitorableUpdates* _tmp0_; -#line 830 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_PHOTO_MONITOR (self), NULL); -#line 830 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL); -#line 831 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = media_monitor_fetch_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MONITORABLE, Monitorable)); -#line 831 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_UPDATES, PhotoUpdates); -#line 831 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 5529 "PhotoMonitor.c" -} - - -PhotoUpdates* -photo_monitor_get_existing_photo_updates (PhotoMonitor* self, - LibraryPhoto* photo) -{ - PhotoUpdates* result = NULL; - MonitorableUpdates* _tmp0_; - PhotoUpdates* _tmp1_; -#line 834 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_PHOTO_MONITOR (self), NULL); -#line 834 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL); -#line 835 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = media_monitor_get_existing_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MONITORABLE, Monitorable)); -#line 835 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_PHOTO_UPDATES) ? ((PhotoUpdates*) _tmp0_) : NULL; -#line 835 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp1_ == NULL) { -#line 835 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (_tmp0_); -#line 5552 "PhotoMonitor.c" - } -#line 835 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = _tmp1_; -#line 835 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 5558 "PhotoMonitor.c" -} - - -void -photo_monitor_update_reimport_master (PhotoMonitor* self, - LibraryPhoto* photo) -{ - PhotoUpdates* _tmp0_; - PhotoUpdates* _tmp1_; - GeeHashMap* _tmp2_; -#line 838 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 838 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 839 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_monitor_fetch_photo_updates (self, photo); -#line 839 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp0_; -#line 839 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_set_reimport_master (_tmp1_, TRUE); -#line 839 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 842 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = self->priv->master_reimport_pending; -#line 842 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo)) { -#line 5585 "PhotoMonitor.c" - GeeHashMap* _tmp3_; - gpointer _tmp4_; - PhotoMonitorReimportMasterJob* _tmp5_; -#line 843 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = self->priv->master_reimport_pending; -#line 843 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo); -#line 843 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = (PhotoMonitorReimportMasterJob*) _tmp4_; -#line 843 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 843 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (_tmp5_); -#line 5599 "PhotoMonitor.c" - } -} - - -void -photo_monitor_update_reimport_editable (PhotoMonitor* self, - LibraryPhoto* photo) -{ - PhotoUpdates* _tmp0_; - PhotoUpdates* _tmp1_; - GeeHashMap* _tmp2_; -#line 846 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 846 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 847 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_monitor_fetch_photo_updates (self, photo); -#line 847 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp0_; -#line 847 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_set_reimport_editable (_tmp1_, TRUE); -#line 847 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 850 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = self->priv->editable_reimport_pending; -#line 850 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo)) { -#line 5627 "PhotoMonitor.c" - GeeHashMap* _tmp3_; - gpointer _tmp4_; - PhotoMonitorReimportEditableJob* _tmp5_; -#line 851 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = self->priv->editable_reimport_pending; -#line 851 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo); -#line 851 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = (PhotoMonitorReimportEditableJob*) _tmp4_; -#line 851 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 851 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (_tmp5_); -#line 5641 "PhotoMonitor.c" - } -} - - -void -photo_monitor_update_reimport_raw_developments (PhotoMonitor* self, - LibraryPhoto* photo) -{ - PhotoUpdates* _tmp0_; - PhotoUpdates* _tmp1_; - GeeHashMap* _tmp2_; -#line 854 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 854 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 855 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_monitor_fetch_photo_updates (self, photo); -#line 855 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp0_; -#line 855 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_set_reimport_raw_developments (_tmp1_, TRUE); -#line 855 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 858 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = self->priv->raw_developments_reimport_pending; -#line 858 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo)) { -#line 5669 "PhotoMonitor.c" - GeeHashMap* _tmp3_; - gpointer _tmp4_; - PhotoMonitorReimportRawDevelopmentJob* _tmp5_; -#line 859 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = self->priv->raw_developments_reimport_pending; -#line 859 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo); -#line 859 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = (PhotoMonitorReimportRawDevelopmentJob*) _tmp4_; -#line 859 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 859 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (_tmp5_); -#line 5683 "PhotoMonitor.c" - } -} - - -GFile* -photo_monitor_get_editable_file (PhotoMonitor* self, - LibraryPhoto* photo) -{ - GFile* result = NULL; - PhotoUpdates* updates = NULL; - PhotoUpdates* _tmp0_; - GFile* _tmp1_ = NULL; - gboolean _tmp2_ = FALSE; - PhotoUpdates* _tmp3_; -#line 862 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_PHOTO_MONITOR (self), NULL); -#line 862 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL); -#line 863 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_monitor_get_existing_photo_updates (self, photo); -#line 863 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - updates = _tmp0_; -#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = updates; -#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp3_ != NULL) { -#line 5710 "PhotoMonitor.c" - PhotoUpdates* _tmp4_; - GFile* _tmp5_; - GFile* _tmp6_; -#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = updates; -#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = photo_updates_get_editable_file (_tmp4_); -#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = _tmp5_; -#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = _tmp6_ != NULL; -#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp6_); -#line 5724 "PhotoMonitor.c" - } else { -#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = FALSE; -#line 5728 "PhotoMonitor.c" - } -#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp2_) { -#line 5732 "PhotoMonitor.c" - PhotoUpdates* _tmp7_; - GFile* _tmp8_; -#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = updates; -#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = photo_updates_get_editable_file (_tmp7_); -#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp1_); -#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp8_; -#line 5743 "PhotoMonitor.c" - } else { - GFile* _tmp9_; -#line 866 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = photo_get_editable_file (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo)); -#line 866 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp1_); -#line 866 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp9_; -#line 5752 "PhotoMonitor.c" - } -#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = _tmp1_; -#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 865 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 5760 "PhotoMonitor.c" -} - - -GeeCollection* -photo_monitor_get_raw_development_files (PhotoMonitor* self, - LibraryPhoto* photo) -{ - GeeCollection* result = NULL; - PhotoUpdates* updates = NULL; - PhotoUpdates* _tmp0_; - GeeCollection* _tmp1_ = NULL; - gboolean _tmp2_ = FALSE; - PhotoUpdates* _tmp3_; -#line 869 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_PHOTO_MONITOR (self), NULL); -#line 869 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL); -#line 870 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_monitor_get_existing_photo_updates (self, photo); -#line 870 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - updates = _tmp0_; -#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = updates; -#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp3_ != NULL) { -#line 5786 "PhotoMonitor.c" - PhotoUpdates* _tmp4_; - GeeCollection* _tmp5_; - GeeCollection* _tmp6_; -#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = updates; -#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = photo_updates_get_raw_developer_files (_tmp4_); -#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = _tmp5_; -#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = _tmp6_ != NULL; -#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp6_); -#line 5800 "PhotoMonitor.c" - } else { -#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = FALSE; -#line 5804 "PhotoMonitor.c" - } -#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp2_) { -#line 5808 "PhotoMonitor.c" - PhotoUpdates* _tmp7_; - GeeCollection* _tmp8_; -#line 873 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = updates; -#line 873 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = photo_updates_get_raw_developer_files (_tmp7_); -#line 873 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp1_); -#line 873 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp8_; -#line 5819 "PhotoMonitor.c" - } else { - GeeCollection* _tmp9_; -#line 873 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = photo_get_raw_developer_files (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo)); -#line 873 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp1_); -#line 873 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp9_; -#line 5828 "PhotoMonitor.c" - } -#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - result = _tmp1_; -#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 872 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return result; -#line 5836 "PhotoMonitor.c" -} - - -void -photo_monitor_update_editable_file (PhotoMonitor* self, - LibraryPhoto* photo, - GFile* file) -{ - PhotoUpdates* _tmp0_; - PhotoUpdates* _tmp1_; -#line 876 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 876 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 876 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 877 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_monitor_fetch_photo_updates (self, photo); -#line 877 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp0_; -#line 877 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_set_editable_file (_tmp1_, file); -#line 877 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 5861 "PhotoMonitor.c" -} - - -void -photo_monitor_update_editable_file_info_altered (PhotoMonitor* self, - LibraryPhoto* photo) -{ - PhotoUpdates* _tmp0_; - PhotoUpdates* _tmp1_; -#line 880 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 880 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 881 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_monitor_fetch_photo_updates (self, photo); -#line 881 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp0_; -#line 881 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_set_editable_file_info_altered (_tmp1_, TRUE); -#line 881 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 5883 "PhotoMonitor.c" -} - - -void -photo_monitor_update_raw_development_file (PhotoMonitor* self, - LibraryPhoto* photo, - GFile* file) -{ - PhotoUpdates* _tmp0_; - PhotoUpdates* _tmp1_; -#line 884 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 884 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 884 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 885 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_monitor_fetch_photo_updates (self, photo); -#line 885 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp0_; -#line 885 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_add_raw_developer_file (_tmp1_, file); -#line 885 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 5908 "PhotoMonitor.c" -} - - -void -photo_monitor_update_raw_development_file_info_altered (PhotoMonitor* self, - LibraryPhoto* photo) -{ - PhotoUpdates* _tmp0_; - PhotoUpdates* _tmp1_; -#line 888 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 888 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 889 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_monitor_fetch_photo_updates (self, photo); -#line 889 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp0_; -#line 889 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_set_raw_developer_file_info_altered (_tmp1_, TRUE); -#line 889 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 5930 "PhotoMonitor.c" -} - - -void -photo_monitor_update_editable_file_in_alteration (PhotoMonitor* self, - LibraryPhoto* photo, - gboolean in_alteration) -{ - PhotoUpdates* _tmp0_; - PhotoUpdates* _tmp1_; -#line 892 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 892 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 893 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_monitor_fetch_photo_updates (self, photo); -#line 893 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp0_; -#line 893 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_set_editable_in_alteration (_tmp1_, in_alteration); -#line 893 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 5953 "PhotoMonitor.c" -} - - -void -photo_monitor_update_editable_file_alterations_completed (PhotoMonitor* self, - LibraryPhoto* photo, - GFileInfo* info) -{ - PhotoUpdates* _tmp0_; - PhotoUpdates* _tmp1_; - PhotoUpdates* _tmp2_; - PhotoUpdates* _tmp3_; -#line 896 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 896 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 896 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 897 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_monitor_fetch_photo_updates (self, photo); -#line 897 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp0_; -#line 897 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_set_editable_file_info (_tmp1_, info); -#line 897 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 898 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = photo_monitor_fetch_photo_updates (self, photo); -#line 898 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = _tmp2_; -#line 898 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_set_editable_in_alteration (_tmp3_, FALSE); -#line 898 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (_tmp3_); -#line 5988 "PhotoMonitor.c" -} - - -void -photo_monitor_update_raw_development_file_in_alteration (PhotoMonitor* self, - LibraryPhoto* photo, - gboolean in_alteration) -{ - PhotoUpdates* _tmp0_; - PhotoUpdates* _tmp1_; -#line 901 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 901 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 902 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_monitor_fetch_photo_updates (self, photo); -#line 902 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp0_; -#line 902 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_set_raw_development_in_alteration (_tmp1_, in_alteration); -#line 902 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 6011 "PhotoMonitor.c" -} - - -void -photo_monitor_update_raw_development_file_alterations_completed (PhotoMonitor* self, - LibraryPhoto* photo) -{ - PhotoUpdates* _tmp0_; - PhotoUpdates* _tmp1_; -#line 905 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 905 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 906 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_monitor_fetch_photo_updates (self, photo); -#line 906 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp0_; -#line 906 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_set_raw_development_in_alteration (_tmp1_, FALSE); -#line 906 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 6033 "PhotoMonitor.c" -} - - -void -photo_monitor_update_revert_to_master (PhotoMonitor* self, - LibraryPhoto* photo) -{ - PhotoUpdates* _tmp0_; - PhotoUpdates* _tmp1_; -#line 909 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 909 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 910 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = photo_monitor_fetch_photo_updates (self, photo); -#line 910 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp0_; -#line 910 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_set_revert_to_master (_tmp1_, TRUE); -#line 910 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 6055 "PhotoMonitor.c" -} - - -static gpointer -_monitorable_updates_ref0 (gpointer self) -{ -#line 930 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return self ? monitorable_updates_ref (self) : NULL; -#line 6064 "PhotoMonitor.c" -} - - -static void -photo_monitor_real_process_updates (MediaMonitor* base, - GeeCollection* all_updates, - TransactionController* controller, - gint* op_count, - GError** error) -{ - PhotoMonitor * self; - GeeMap* set_editable_file = NULL; - GeeMap* set_editable_file_info = NULL; - GeeMap* set_raw_developer_files = NULL; - GeeArrayList* revert_to_master = NULL; - GeeArrayList* reimport_master = NULL; - GeeArrayList* reimport_editable = NULL; - GeeArrayList* reimport_raw_developments = NULL; - gint reimport_job_count = 0; - GeeMap* _tmp82_; - GeeMap* _tmp90_; - GeeArrayList* _tmp98_; - GeeArrayList* _tmp116_; - GeeArrayList* _tmp142_; - GeeArrayList* _tmp168_; - GError * _inner_error_ = NULL; -#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (GEE_IS_COLLECTION (all_updates)); -#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_TRANSACTION_CONTROLLER (controller)); -#line 915 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - MEDIA_MONITOR_CLASS (photo_monitor_parent_class)->process_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), all_updates, controller, op_count, &_inner_error_); -#line 915 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 915 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_propagate_error (error, _inner_error_); -#line 915 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 6105 "PhotoMonitor.c" - } -#line 917 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - set_editable_file = NULL; -#line 918 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - set_editable_file_info = NULL; -#line 919 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - set_raw_developer_files = NULL; -#line 920 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - revert_to_master = NULL; -#line 921 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - reimport_master = NULL; -#line 922 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - reimport_editable = NULL; -#line 923 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - reimport_raw_developments = NULL; -#line 924 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - reimport_job_count = 0; -#line 6123 "PhotoMonitor.c" - { - GeeIterator* _monitorable_updates_it = NULL; - GeeIterator* _tmp0_; -#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (all_updates, GEE_TYPE_ITERABLE, GeeIterable)); -#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_it = _tmp0_; -#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - while (TRUE) { -#line 6133 "PhotoMonitor.c" - GeeIterator* _tmp1_; - MonitorableUpdates* monitorable_updates = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - PhotoUpdates* updates = NULL; - MonitorableUpdates* _tmp4_; - PhotoUpdates* _tmp5_; - PhotoUpdates* _tmp6_; - PhotoUpdates* _tmp7_; - GFile* _tmp8_; - GFile* _tmp9_; - gboolean _tmp10_; - PhotoUpdates* _tmp21_; - GFileInfo* _tmp22_; - GFileInfo* _tmp23_; - gboolean _tmp24_; - PhotoUpdates* _tmp35_; - GeeCollection* _tmp36_; - GeeCollection* _tmp37_; - gboolean _tmp38_; - PhotoUpdates* _tmp49_; - gboolean _tmp60_ = FALSE; - PhotoUpdates* _tmp61_; - gboolean _tmp71_ = FALSE; - PhotoUpdates* _tmp72_; -#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _monitorable_updates_it; -#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 6165 "PhotoMonitor.c" - } -#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = _monitorable_updates_it; -#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - monitorable_updates = (MonitorableUpdates*) _tmp3_; -#line 927 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if ((*op_count) >= MEDIA_MONITOR_MAX_OPERATIONS_PER_CYCLE) { -#line 928 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (monitorable_updates); -#line 928 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 6179 "PhotoMonitor.c" - } -#line 930 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = monitorable_updates; -#line 930 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = _monitorable_updates_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_PHOTO_UPDATES) ? ((PhotoUpdates*) _tmp4_) : NULL); -#line 930 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - updates = _tmp5_; -#line 931 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = updates; -#line 931 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp6_ == NULL) { -#line 932 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 932 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (monitorable_updates); -#line 932 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - continue; -#line 6197 "PhotoMonitor.c" - } -#line 934 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = updates; -#line 934 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = photo_updates_get_editable_file (_tmp7_); -#line 934 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = _tmp8_; -#line 934 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp10_ = _tmp9_ != NULL; -#line 934 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp9_); -#line 934 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp10_) { -#line 6211 "PhotoMonitor.c" - GeeMap* _tmp11_; - GeeMap* _tmp13_; - PhotoUpdates* _tmp14_; - LibraryPhoto* _tmp15_; - PhotoUpdates* _tmp16_; - GFile* _tmp17_; - GFile* _tmp18_; - PhotoUpdates* _tmp19_; - gint _tmp20_; -#line 935 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp11_ = set_editable_file; -#line 935 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp11_ == NULL) { -#line 6225 "PhotoMonitor.c" - GeeHashMap* _tmp12_; -#line 936 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp12_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 936 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_editable_file); -#line 936 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - set_editable_file = G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_MAP, GeeMap); -#line 6233 "PhotoMonitor.c" - } -#line 938 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp13_ = set_editable_file; -#line 938 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp14_ = updates; -#line 938 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp15_ = _tmp14_->photo; -#line 938 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp16_ = updates; -#line 938 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17_ = photo_updates_get_editable_file (_tmp16_); -#line 938 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp18_ = _tmp17_; -#line 938 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - gee_map_set (_tmp13_, _tmp15_, _tmp18_); -#line 938 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp18_); -#line 939 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp19_ = updates; -#line 939 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_set_editable_file (_tmp19_, NULL); -#line 940 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp20_ = *op_count; -#line 940 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *op_count = _tmp20_ + 1; -#line 6259 "PhotoMonitor.c" - } -#line 943 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp21_ = updates; -#line 943 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp22_ = photo_updates_get_editable_file_info (_tmp21_); -#line 943 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp23_ = _tmp22_; -#line 943 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp24_ = _tmp23_ != NULL; -#line 943 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp23_); -#line 943 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp24_) { -#line 6273 "PhotoMonitor.c" - GeeMap* _tmp25_; - GeeMap* _tmp27_; - PhotoUpdates* _tmp28_; - LibraryPhoto* _tmp29_; - PhotoUpdates* _tmp30_; - GFileInfo* _tmp31_; - GFileInfo* _tmp32_; - PhotoUpdates* _tmp33_; - gint _tmp34_; -#line 944 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp25_ = set_editable_file_info; -#line 944 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp25_ == NULL) { -#line 6287 "PhotoMonitor.c" - GeeHashMap* _tmp26_; -#line 945 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp26_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, g_file_info_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 945 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_editable_file_info); -#line 945 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - set_editable_file_info = G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_MAP, GeeMap); -#line 6295 "PhotoMonitor.c" - } -#line 947 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp27_ = set_editable_file_info; -#line 947 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp28_ = updates; -#line 947 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp29_ = _tmp28_->photo; -#line 947 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp30_ = updates; -#line 947 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp31_ = photo_updates_get_editable_file_info (_tmp30_); -#line 947 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp32_ = _tmp31_; -#line 947 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - gee_map_set (_tmp27_, _tmp29_, _tmp32_); -#line 947 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp32_); -#line 948 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp33_ = updates; -#line 948 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_set_editable_file_info (_tmp33_, NULL); -#line 949 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp34_ = *op_count; -#line 949 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *op_count = _tmp34_ + 1; -#line 6321 "PhotoMonitor.c" - } -#line 952 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp35_ = updates; -#line 952 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp36_ = photo_updates_get_raw_developer_files (_tmp35_); -#line 952 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp37_ = _tmp36_; -#line 952 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp38_ = _tmp37_ != NULL; -#line 952 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp37_); -#line 952 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp38_) { -#line 6335 "PhotoMonitor.c" - GeeMap* _tmp39_; - GeeMap* _tmp41_; - PhotoUpdates* _tmp42_; - LibraryPhoto* _tmp43_; - PhotoUpdates* _tmp44_; - GeeCollection* _tmp45_; - GeeCollection* _tmp46_; - PhotoUpdates* _tmp47_; - gint _tmp48_; -#line 953 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp39_ = set_raw_developer_files; -#line 953 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp39_ == NULL) { -#line 6349 "PhotoMonitor.c" - GeeHashMap* _tmp40_; -#line 954 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp40_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, GEE_TYPE_COLLECTION, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 954 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_raw_developer_files); -#line 954 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - set_raw_developer_files = G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GEE_TYPE_MAP, GeeMap); -#line 6357 "PhotoMonitor.c" - } -#line 956 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp41_ = set_raw_developer_files; -#line 956 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp42_ = updates; -#line 956 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp43_ = _tmp42_->photo; -#line 956 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp44_ = updates; -#line 956 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp45_ = photo_updates_get_raw_developer_files (_tmp44_); -#line 956 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp46_ = _tmp45_; -#line 956 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - gee_map_set (_tmp41_, _tmp43_, _tmp46_); -#line 956 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp46_); -#line 957 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp47_ = updates; -#line 957 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_clear_raw_developer_files (_tmp47_); -#line 958 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp48_ = *op_count; -#line 958 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *op_count = _tmp48_ + 1; -#line 6383 "PhotoMonitor.c" - } -#line 961 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp49_ = updates; -#line 961 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (photo_updates_is_revert_to_master (_tmp49_)) { -#line 6389 "PhotoMonitor.c" - GeeArrayList* _tmp50_; - GeeArrayList* _tmp52_; - gint _tmp53_; - gint _tmp54_; - gint _tmp59_; -#line 962 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp50_ = revert_to_master; -#line 962 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp50_ == NULL) { -#line 6399 "PhotoMonitor.c" - GeeArrayList* _tmp51_; -#line 963 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp51_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 963 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (revert_to_master); -#line 963 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - revert_to_master = _tmp51_; -#line 6407 "PhotoMonitor.c" - } -#line 965 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp52_ = revert_to_master; -#line 965 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp53_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 965 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp54_ = _tmp53_; -#line 965 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp54_ < PHOTO_MONITOR_MAX_REVERTS_PER_CYCLE) { -#line 6417 "PhotoMonitor.c" - GeeArrayList* _tmp55_; - PhotoUpdates* _tmp56_; - LibraryPhoto* _tmp57_; - PhotoUpdates* _tmp58_; -#line 966 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp55_ = revert_to_master; -#line 966 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp56_ = updates; -#line 966 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp57_ = _tmp56_->photo; -#line 966 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp57_); -#line 967 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp58_ = updates; -#line 967 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_set_revert_to_master (_tmp58_, FALSE); -#line 6434 "PhotoMonitor.c" - } -#line 969 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp59_ = *op_count; -#line 969 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *op_count = _tmp59_ + 1; -#line 6440 "PhotoMonitor.c" - } -#line 972 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp61_ = updates; -#line 972 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (photo_updates_is_reimport_master (_tmp61_)) { -#line 6446 "PhotoMonitor.c" - gint _tmp62_; -#line 972 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp62_ = reimport_job_count; -#line 972 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp60_ = _tmp62_ < PHOTO_MONITOR_MAX_REIMPORT_JOBS_PER_CYCLE; -#line 6452 "PhotoMonitor.c" - } else { -#line 972 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp60_ = FALSE; -#line 6456 "PhotoMonitor.c" - } -#line 972 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp60_) { -#line 6460 "PhotoMonitor.c" - GeeArrayList* _tmp63_; - GeeArrayList* _tmp65_; - PhotoUpdates* _tmp66_; - LibraryPhoto* _tmp67_; - PhotoUpdates* _tmp68_; - gint _tmp69_; - gint _tmp70_; -#line 973 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp63_ = reimport_master; -#line 973 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp63_ == NULL) { -#line 6472 "PhotoMonitor.c" - GeeArrayList* _tmp64_; -#line 974 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp64_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 974 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (reimport_master); -#line 974 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - reimport_master = _tmp64_; -#line 6480 "PhotoMonitor.c" - } -#line 976 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp65_ = reimport_master; -#line 976 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp66_ = updates; -#line 976 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp67_ = _tmp66_->photo; -#line 976 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp67_); -#line 977 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp68_ = updates; -#line 977 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_set_reimport_master (_tmp68_, FALSE); -#line 978 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp69_ = reimport_job_count; -#line 978 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - reimport_job_count = _tmp69_ + 1; -#line 979 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp70_ = *op_count; -#line 979 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *op_count = _tmp70_ + 1; -#line 6502 "PhotoMonitor.c" - } -#line 982 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp72_ = updates; -#line 982 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (photo_updates_is_reimport_editable (_tmp72_)) { -#line 6508 "PhotoMonitor.c" - gint _tmp73_; -#line 982 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp73_ = reimport_job_count; -#line 982 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp71_ = _tmp73_ < PHOTO_MONITOR_MAX_REIMPORT_JOBS_PER_CYCLE; -#line 6514 "PhotoMonitor.c" - } else { -#line 982 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp71_ = FALSE; -#line 6518 "PhotoMonitor.c" - } -#line 982 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp71_) { -#line 6522 "PhotoMonitor.c" - GeeArrayList* _tmp74_; - GeeArrayList* _tmp76_; - PhotoUpdates* _tmp77_; - LibraryPhoto* _tmp78_; - PhotoUpdates* _tmp79_; - gint _tmp80_; - gint _tmp81_; -#line 983 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp74_ = reimport_editable; -#line 983 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp74_ == NULL) { -#line 6534 "PhotoMonitor.c" - GeeArrayList* _tmp75_; -#line 984 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp75_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 984 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (reimport_editable); -#line 984 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - reimport_editable = _tmp75_; -#line 6542 "PhotoMonitor.c" - } -#line 986 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp76_ = reimport_editable; -#line 986 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp77_ = updates; -#line 986 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp78_ = _tmp77_->photo; -#line 986 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp78_); -#line 987 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp79_ = updates; -#line 987 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_updates_set_reimport_editable (_tmp79_, FALSE); -#line 988 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp80_ = reimport_job_count; -#line 988 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - reimport_job_count = _tmp80_ + 1; -#line 989 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp81_ = *op_count; -#line 989 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - *op_count = _tmp81_ + 1; -#line 6564 "PhotoMonitor.c" - } -#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _monitorable_updates_unref0 (monitorable_updates); -#line 6570 "PhotoMonitor.c" - } -#line 926 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_monitorable_updates_it); -#line 6574 "PhotoMonitor.c" - } -#line 993 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp82_ = set_editable_file; -#line 993 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp82_ != NULL) { -#line 6580 "PhotoMonitor.c" - GeeMap* _tmp83_; - gint _tmp84_; - gint _tmp85_; - gchar* _tmp86_; - gchar* _tmp87_; -#line 994 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp83_ = set_editable_file; -#line 994 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp84_ = gee_map_get_size (_tmp83_); -#line 994 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp85_ = _tmp84_; -#line 994 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp86_ = g_strdup_printf ("Changing editable file of %d photos", _tmp85_); -#line 994 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp87_ = _tmp86_; -#line 994 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp87_); -#line 994 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp87_); -#line 6600 "PhotoMonitor.c" - { - GeeMap* _tmp88_; -#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp88_ = set_editable_file; -#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_set_many_editable_file (_tmp88_, &_inner_error_); -#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 6611 "PhotoMonitor.c" - goto __catch595_database_error; - } -#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (reimport_raw_developments); -#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (reimport_editable); -#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (reimport_master); -#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (revert_to_master); -#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_raw_developer_files); -#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_editable_file_info); -#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_editable_file); -#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_clear_error (&_inner_error_); -#line 997 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 6634 "PhotoMonitor.c" - } - } - goto __finally595; - __catch595_database_error: - { - GError* err = NULL; - GError* _tmp89_; -#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - err = _inner_error_; -#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _inner_error_ = NULL; -#line 999 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp89_ = err; -#line 999 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - app_window_database_error (_tmp89_); -#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_error_free0 (err); -#line 6652 "PhotoMonitor.c" - } - __finally595: -#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_propagate_error (error, _inner_error_); -#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (reimport_raw_developments); -#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (reimport_editable); -#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (reimport_master); -#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (revert_to_master); -#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_raw_developer_files); -#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_editable_file_info); -#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_editable_file); -#line 996 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 6675 "PhotoMonitor.c" - } - } -#line 1003 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp90_ = set_editable_file_info; -#line 1003 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp90_ != NULL) { -#line 6682 "PhotoMonitor.c" - GeeMap* _tmp91_; - gint _tmp92_; - gint _tmp93_; - gchar* _tmp94_; - gchar* _tmp95_; -#line 1004 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp91_ = set_editable_file_info; -#line 1004 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp92_ = gee_map_get_size (_tmp91_); -#line 1004 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp93_ = _tmp92_; -#line 1004 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp94_ = g_strdup_printf ("Updating %d editable files timestamps", _tmp93_); -#line 1004 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp95_ = _tmp94_; -#line 1004 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp95_); -#line 1004 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp95_); -#line 6702 "PhotoMonitor.c" - { - GeeMap* _tmp96_; -#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp96_ = set_editable_file_info; -#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_update_many_editable_timestamps (_tmp96_, &_inner_error_); -#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 6713 "PhotoMonitor.c" - goto __catch596_database_error; - } -#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (reimport_raw_developments); -#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (reimport_editable); -#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (reimport_master); -#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (revert_to_master); -#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_raw_developer_files); -#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_editable_file_info); -#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_editable_file); -#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_clear_error (&_inner_error_); -#line 1007 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 6736 "PhotoMonitor.c" - } - } - goto __finally596; - __catch596_database_error: - { - GError* err = NULL; - GError* _tmp97_; -#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - err = _inner_error_; -#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _inner_error_ = NULL; -#line 1009 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp97_ = err; -#line 1009 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - app_window_database_error (_tmp97_); -#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_error_free0 (err); -#line 6754 "PhotoMonitor.c" - } - __finally596: -#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_propagate_error (error, _inner_error_); -#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (reimport_raw_developments); -#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (reimport_editable); -#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (reimport_master); -#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (revert_to_master); -#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_raw_developer_files); -#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_editable_file_info); -#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_editable_file); -#line 1006 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 6777 "PhotoMonitor.c" - } - } -#line 1013 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp98_ = revert_to_master; -#line 1013 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp98_ != NULL) { -#line 6784 "PhotoMonitor.c" - GeeArrayList* _tmp99_; - gint _tmp100_; - gint _tmp101_; - gchar* _tmp102_; - gchar* _tmp103_; -#line 1014 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp99_ = revert_to_master; -#line 1014 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp100_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp99_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1014 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp101_ = _tmp100_; -#line 1014 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp102_ = g_strdup_printf ("Reverting %d photos to master", _tmp101_); -#line 1014 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp103_ = _tmp102_; -#line 1014 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp103_); -#line 1014 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp103_); -#line 6804 "PhotoMonitor.c" - { - GeeArrayList* _photo_list = NULL; - GeeArrayList* _tmp104_; - GeeArrayList* _tmp105_; - gint _photo_size = 0; - GeeArrayList* _tmp106_; - gint _tmp107_; - gint _tmp108_; - gint _photo_index = 0; -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp104_ = revert_to_master; -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp105_ = _g_object_ref0 (_tmp104_); -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_list = _tmp105_; -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp106_ = _photo_list; -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp107_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp106_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp108_ = _tmp107_; -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_size = _tmp108_; -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_index = -1; -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - while (TRUE) { -#line 6832 "PhotoMonitor.c" - gint _tmp109_; - gint _tmp110_; - gint _tmp111_; - LibraryPhoto* photo = NULL; - GeeArrayList* _tmp112_; - gint _tmp113_; - gpointer _tmp114_; - LibraryPhoto* _tmp115_; -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp109_ = _photo_index; -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_index = _tmp109_ + 1; -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp110_ = _photo_index; -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp111_ = _photo_size; -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (!(_tmp110_ < _tmp111_)) { -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 6853 "PhotoMonitor.c" - } -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp112_ = _photo_list; -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp113_ = _photo_index; -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp114_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp112_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp113_); -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo = (LibraryPhoto*) _tmp114_; -#line 1017 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp115_ = photo; -#line 1017 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_revert_to_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp115_, TYPE_PHOTO, Photo), TRUE); -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 6869 "PhotoMonitor.c" - } -#line 1016 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_photo_list); -#line 6873 "PhotoMonitor.c" - } - } -#line 1024 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp116_ = reimport_master; -#line 1024 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp116_ != NULL) { -#line 6880 "PhotoMonitor.c" - GeeArrayList* _tmp117_; - gint _tmp118_; - gint _tmp119_; - gchar* _tmp120_; - gchar* _tmp121_; -#line 1025 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp117_ = reimport_master; -#line 1025 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp118_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp117_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1025 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp119_ = _tmp118_; -#line 1025 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp120_ = g_strdup_printf ("Reimporting %d masters", _tmp119_); -#line 1025 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp121_ = _tmp120_; -#line 1025 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp121_); -#line 1025 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp121_); -#line 6900 "PhotoMonitor.c" - { - GeeArrayList* _photo_list = NULL; - GeeArrayList* _tmp122_; - GeeArrayList* _tmp123_; - gint _photo_size = 0; - GeeArrayList* _tmp124_; - gint _tmp125_; - gint _tmp126_; - gint _photo_index = 0; -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp122_ = reimport_master; -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp123_ = _g_object_ref0 (_tmp122_); -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_list = _tmp123_; -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp124_ = _photo_list; -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp125_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp124_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp126_ = _tmp125_; -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_size = _tmp126_; -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_index = -1; -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - while (TRUE) { -#line 6928 "PhotoMonitor.c" - gint _tmp127_; - gint _tmp128_; - gint _tmp129_; - LibraryPhoto* photo = NULL; - GeeArrayList* _tmp130_; - gint _tmp131_; - gpointer _tmp132_; - GeeHashMap* _tmp133_; - LibraryPhoto* _tmp134_; - PhotoMonitorReimportMasterJob* job = NULL; - LibraryPhoto* _tmp135_; - PhotoMonitorReimportMasterJob* _tmp136_; - GeeHashMap* _tmp137_; - LibraryPhoto* _tmp138_; - PhotoMonitorReimportMasterJob* _tmp139_; - Workers* _tmp140_; - PhotoMonitorReimportMasterJob* _tmp141_; -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp127_ = _photo_index; -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_index = _tmp127_ + 1; -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp128_ = _photo_index; -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp129_ = _photo_size; -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (!(_tmp128_ < _tmp129_)) { -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 6958 "PhotoMonitor.c" - } -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp130_ = _photo_list; -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp131_ = _photo_index; -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp132_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp130_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp131_); -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo = (LibraryPhoto*) _tmp132_; -#line 1028 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp133_ = self->priv->master_reimport_pending; -#line 1028 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp134_ = photo; -#line 1028 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp133_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp134_), "!master_reimport_pending.has_key(photo)"); -#line 1030 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp135_ = photo; -#line 1030 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp136_ = photo_monitor_reimport_master_job_new (self, _tmp135_); -#line 1030 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - job = _tmp136_; -#line 1031 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp137_ = self->priv->master_reimport_pending; -#line 1031 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp138_ = photo; -#line 1031 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp139_ = job; -#line 1031 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp137_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp138_, _tmp139_); -#line 1032 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp140_ = self->priv->workers; -#line 1032 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp141_ = job; -#line 1032 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - workers_enqueue (_tmp140_, G_TYPE_CHECK_INSTANCE_CAST (_tmp141_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 6998 "PhotoMonitor.c" - } -#line 1027 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_photo_list); -#line 7002 "PhotoMonitor.c" - } - } -#line 1036 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp142_ = reimport_editable; -#line 1036 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp142_ != NULL) { -#line 7009 "PhotoMonitor.c" - GeeArrayList* _tmp143_; - gint _tmp144_; - gint _tmp145_; - gchar* _tmp146_; - gchar* _tmp147_; -#line 1037 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp143_ = reimport_editable; -#line 1037 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp144_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp143_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1037 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp145_ = _tmp144_; -#line 1037 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp146_ = g_strdup_printf ("Reimporting %d editables", _tmp145_); -#line 1037 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp147_ = _tmp146_; -#line 1037 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp147_); -#line 1037 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp147_); -#line 7029 "PhotoMonitor.c" - { - GeeArrayList* _photo_list = NULL; - GeeArrayList* _tmp148_; - GeeArrayList* _tmp149_; - gint _photo_size = 0; - GeeArrayList* _tmp150_; - gint _tmp151_; - gint _tmp152_; - gint _photo_index = 0; -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp148_ = reimport_editable; -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp149_ = _g_object_ref0 (_tmp148_); -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_list = _tmp149_; -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp150_ = _photo_list; -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp151_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp150_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp152_ = _tmp151_; -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_size = _tmp152_; -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_index = -1; -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - while (TRUE) { -#line 7057 "PhotoMonitor.c" - gint _tmp153_; - gint _tmp154_; - gint _tmp155_; - LibraryPhoto* photo = NULL; - GeeArrayList* _tmp156_; - gint _tmp157_; - gpointer _tmp158_; - GeeHashMap* _tmp159_; - LibraryPhoto* _tmp160_; - PhotoMonitorReimportEditableJob* job = NULL; - LibraryPhoto* _tmp161_; - PhotoMonitorReimportEditableJob* _tmp162_; - GeeHashMap* _tmp163_; - LibraryPhoto* _tmp164_; - PhotoMonitorReimportEditableJob* _tmp165_; - Workers* _tmp166_; - PhotoMonitorReimportEditableJob* _tmp167_; -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp153_ = _photo_index; -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_index = _tmp153_ + 1; -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp154_ = _photo_index; -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp155_ = _photo_size; -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (!(_tmp154_ < _tmp155_)) { -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 7087 "PhotoMonitor.c" - } -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp156_ = _photo_list; -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp157_ = _photo_index; -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp158_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp156_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp157_); -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo = (LibraryPhoto*) _tmp158_; -#line 1040 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp159_ = self->priv->editable_reimport_pending; -#line 1040 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp160_ = photo; -#line 1040 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp159_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp160_), "!editable_reimport_pending.has_key(photo)"); -#line 1042 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp161_ = photo; -#line 1042 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp162_ = photo_monitor_reimport_editable_job_new (self, _tmp161_); -#line 1042 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - job = _tmp162_; -#line 1043 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp163_ = self->priv->editable_reimport_pending; -#line 1043 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp164_ = photo; -#line 1043 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp165_ = job; -#line 1043 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp163_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp164_, _tmp165_); -#line 1044 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp166_ = self->priv->workers; -#line 1044 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp167_ = job; -#line 1044 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - workers_enqueue (_tmp166_, G_TYPE_CHECK_INSTANCE_CAST (_tmp167_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 7127 "PhotoMonitor.c" - } -#line 1039 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_photo_list); -#line 7131 "PhotoMonitor.c" - } - } -#line 1048 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp168_ = reimport_raw_developments; -#line 1048 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp168_ != NULL) { -#line 7138 "PhotoMonitor.c" - GeeArrayList* _tmp169_; - gint _tmp170_; - gint _tmp171_; - gchar* _tmp172_; - gchar* _tmp173_; -#line 1049 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp169_ = reimport_raw_developments; -#line 1049 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp170_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp169_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1049 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp171_ = _tmp170_; -#line 1049 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp172_ = g_strdup_printf ("Reimporting %d raw developments", _tmp171_); -#line 1049 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp173_ = _tmp172_; -#line 1049 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp173_); -#line 1049 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp173_); -#line 7158 "PhotoMonitor.c" - { - GeeArrayList* _photo_list = NULL; - GeeArrayList* _tmp174_; - GeeArrayList* _tmp175_; - gint _photo_size = 0; - GeeArrayList* _tmp176_; - gint _tmp177_; - gint _tmp178_; - gint _photo_index = 0; -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp174_ = reimport_raw_developments; -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp175_ = _g_object_ref0 (_tmp174_); -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_list = _tmp175_; -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp176_ = _photo_list; -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp177_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp176_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp178_ = _tmp177_; -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_size = _tmp178_; -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_index = -1; -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - while (TRUE) { -#line 7186 "PhotoMonitor.c" - gint _tmp179_; - gint _tmp180_; - gint _tmp181_; - LibraryPhoto* photo = NULL; - GeeArrayList* _tmp182_; - gint _tmp183_; - gpointer _tmp184_; - GeeHashMap* _tmp185_; - LibraryPhoto* _tmp186_; - PhotoMonitorReimportRawDevelopmentJob* job = NULL; - LibraryPhoto* _tmp187_; - PhotoMonitorReimportRawDevelopmentJob* _tmp188_; - GeeHashMap* _tmp189_; - LibraryPhoto* _tmp190_; - PhotoMonitorReimportRawDevelopmentJob* _tmp191_; - Workers* _tmp192_; - PhotoMonitorReimportRawDevelopmentJob* _tmp193_; -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp179_ = _photo_index; -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_index = _tmp179_ + 1; -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp180_ = _photo_index; -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp181_ = _photo_size; -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (!(_tmp180_ < _tmp181_)) { -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - break; -#line 7216 "PhotoMonitor.c" - } -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp182_ = _photo_list; -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp183_ = _photo_index; -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp184_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp182_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp183_); -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo = (LibraryPhoto*) _tmp184_; -#line 1052 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp185_ = self->priv->raw_developments_reimport_pending; -#line 1052 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp186_ = photo; -#line 1052 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp185_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp186_), "!raw_developments_reimport_pending.has_key(photo)"); -#line 1054 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp187_ = photo; -#line 1054 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp188_ = photo_monitor_reimport_raw_development_job_new (self, _tmp187_); -#line 1054 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - job = _tmp188_; -#line 1055 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp189_ = self->priv->raw_developments_reimport_pending; -#line 1055 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp190_ = photo; -#line 1055 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp191_ = job; -#line 1055 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp189_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp190_, _tmp191_); -#line 1056 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp192_ = self->priv->workers; -#line 1056 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp193_ = job; -#line 1056 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - workers_enqueue (_tmp192_, G_TYPE_CHECK_INSTANCE_CAST (_tmp193_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (photo); -#line 7256 "PhotoMonitor.c" - } -#line 1051 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_photo_list); -#line 7260 "PhotoMonitor.c" - } - } -#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (reimport_raw_developments); -#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (reimport_editable); -#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (reimport_master); -#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (revert_to_master); -#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_raw_developer_files); -#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_editable_file_info); -#line 913 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (set_editable_file); -#line 7277 "PhotoMonitor.c" -} - - -static gpointer -_background_job_ref0 (gpointer self) -{ -#line 1062 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return self ? background_job_ref (self) : NULL; -#line 7286 "PhotoMonitor.c" -} - - -static void -photo_monitor_on_master_reimported (PhotoMonitor* self, - BackgroundJob* j) -{ - PhotoMonitorReimportMasterJob* job = NULL; - PhotoMonitorReimportMasterJob* _tmp0_; - gboolean removed = FALSE; - GeeHashMap* _tmp1_; - PhotoMonitorReimportMasterJob* _tmp2_; - LibraryPhoto* _tmp3_; - gboolean _tmp4_; - gboolean _tmp5_; - PhotoMonitorReimportMasterJob* _tmp6_; - GError* _tmp7_; - PhotoMonitorReimportMasterJob* _tmp17_; - gboolean _tmp18_; - PhotoMonitorReimportMasterJob* _tmp26_; - LibraryPhoto* _tmp27_; - PhotoMonitorReimportMasterJob* _tmp30_; - LibraryPhoto* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; - GError * _inner_error_ = NULL; -#line 1061 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 1061 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 1062 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, PhotoMonitorReimportMasterJob)); -#line 1062 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - job = _tmp0_; -#line 1065 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = self->priv->master_reimport_pending; -#line 1065 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = job; -#line 1065 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = _tmp2_->photo; -#line 1065 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_, NULL); -#line 1065 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - removed = _tmp4_; -#line 1066 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = removed; -#line 1066 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_assert (_tmp5_, "removed"); -#line 1068 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = job; -#line 1068 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = _tmp6_->err; -#line 1068 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp7_ != NULL) { -#line 7343 "PhotoMonitor.c" - PhotoMonitorReimportMasterJob* _tmp8_; - LibraryPhoto* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - PhotoMonitorReimportMasterJob* _tmp12_; - GError* _tmp13_; - const gchar* _tmp14_; - PhotoMonitorReimportMasterJob* _tmp15_; - LibraryPhoto* _tmp16_; -#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = job; -#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = _tmp8_->photo; -#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject)); -#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp11_ = _tmp10_; -#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp12_ = job; -#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp13_ = _tmp12_->err; -#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp14_ = _tmp13_->message; -#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_critical ("PhotoMonitor.vala:1069: Unable to reimport %s due to master file chang" \ -"ing: %s", _tmp11_, _tmp14_); -#line 1069 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp11_); -#line 1072 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp15_ = job; -#line 1072 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp16_ = _tmp15_->photo; -#line 1072 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_update_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_MONITORABLE, Monitorable)); -#line 1074 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 1074 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 7381 "PhotoMonitor.c" - } -#line 1077 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17_ = job; -#line 1077 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp18_ = _tmp17_->mark_online; -#line 1077 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (!_tmp18_) { -#line 7389 "PhotoMonitor.c" - PhotoMonitorReimportMasterJob* _tmp19_; - LibraryPhoto* _tmp20_; -#line 1079 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp19_ = job; -#line 1079 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp20_ = _tmp19_->photo; -#line 1079 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_update_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_MONITORABLE, Monitorable)); -#line 1081 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 1081 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 7402 "PhotoMonitor.c" - } - { - PhotoMonitorReimportMasterJob* _tmp21_; - LibraryPhoto* _tmp22_; - PhotoMonitorReimportMasterJob* _tmp23_; - PhotoReimportMasterState* _tmp24_; -#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp21_ = job; -#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp22_ = _tmp21_->photo; -#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp23_ = job; -#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp24_ = _tmp23_->reimport_state; -#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_finish_reimport_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_PHOTO, Photo), _tmp24_, &_inner_error_); -#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 7423 "PhotoMonitor.c" - goto __catch597_database_error; - } -#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_clear_error (&_inner_error_); -#line 1085 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 7434 "PhotoMonitor.c" - } - } - goto __finally597; - __catch597_database_error: - { - GError* err = NULL; - GError* _tmp25_; -#line 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - err = _inner_error_; -#line 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _inner_error_ = NULL; -#line 1087 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp25_ = err; -#line 1087 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - app_window_database_error (_tmp25_); -#line 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_error_free0 (err); -#line 7452 "PhotoMonitor.c" - } - __finally597: -#line 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_clear_error (&_inner_error_); -#line 1084 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 7465 "PhotoMonitor.c" - } -#line 1091 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp26_ = job; -#line 1091 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp27_ = _tmp26_->photo; -#line 1091 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (media_source_is_offline (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_MEDIA_SOURCE, MediaSource))) { -#line 7473 "PhotoMonitor.c" - PhotoMonitorReimportMasterJob* _tmp28_; - LibraryPhoto* _tmp29_; -#line 1092 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp28_ = job; -#line 1092 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp29_ = _tmp28_->photo; -#line 1092 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_update_online (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_MONITORABLE, Monitorable)); -#line 7482 "PhotoMonitor.c" - } -#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp30_ = job; -#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp31_ = _tmp30_->photo; -#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp32_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_DATA_OBJECT, DataObject)); -#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp33_ = _tmp32_; -#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp34_ = g_strdup_printf ("Reimported master for %s", _tmp33_); -#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp35_ = _tmp34_; -#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp35_); -#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp35_); -#line 1094 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp33_); -#line 1061 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 7504 "PhotoMonitor.c" -} - - -static void -photo_monitor_on_master_reimport_cancelled (PhotoMonitor* self, - BackgroundJob* j) -{ - gboolean removed = FALSE; - GeeHashMap* _tmp0_; - LibraryPhoto* _tmp1_; - gboolean _tmp2_; -#line 1097 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 1097 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 1098 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = self->priv->master_reimport_pending; -#line 1098 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (j, PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, PhotoMonitorReimportMasterJob)->photo; -#line 1098 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp1_, NULL); -#line 1098 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - removed = _tmp2_; -#line 1099 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_assert (removed, "removed"); -#line 7530 "PhotoMonitor.c" -} - - -static void -photo_monitor_on_editable_reimported (PhotoMonitor* self, - BackgroundJob* j) -{ - PhotoMonitorReimportEditableJob* job = NULL; - PhotoMonitorReimportEditableJob* _tmp0_; - gboolean removed = FALSE; - GeeHashMap* _tmp1_; - PhotoMonitorReimportEditableJob* _tmp2_; - LibraryPhoto* _tmp3_; - gboolean _tmp4_; - gboolean _tmp5_; - PhotoMonitorReimportEditableJob* _tmp6_; - GError* _tmp7_; - PhotoMonitorReimportEditableJob* _tmp20_; - LibraryPhoto* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - GError * _inner_error_ = NULL; -#line 1102 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 1102 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 1103 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, PhotoMonitorReimportEditableJob)); -#line 1103 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - job = _tmp0_; -#line 1106 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = self->priv->editable_reimport_pending; -#line 1106 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = job; -#line 1106 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = _tmp2_->photo; -#line 1106 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_, NULL); -#line 1106 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - removed = _tmp4_; -#line 1107 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = removed; -#line 1107 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_assert (_tmp5_, "removed"); -#line 1109 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = job; -#line 1109 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = _tmp6_->err; -#line 1109 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp7_ != NULL) { -#line 7583 "PhotoMonitor.c" - PhotoMonitorReimportEditableJob* _tmp8_; - LibraryPhoto* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - PhotoMonitorReimportEditableJob* _tmp12_; - GError* _tmp13_; - const gchar* _tmp14_; -#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = job; -#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = _tmp8_->photo; -#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject)); -#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp11_ = _tmp10_; -#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp12_ = job; -#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp13_ = _tmp12_->err; -#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp14_ = _tmp13_->message; -#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_critical ("PhotoMonitor.vala:1110: Unable to reimport editable %s: %s", _tmp11_, _tmp14_); -#line 1110 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp11_); -#line 1112 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 1112 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 7613 "PhotoMonitor.c" - } - { - PhotoMonitorReimportEditableJob* _tmp15_; - LibraryPhoto* _tmp16_; - PhotoMonitorReimportEditableJob* _tmp17_; - PhotoReimportEditableState* _tmp18_; -#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp15_ = job; -#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp16_ = _tmp15_->photo; -#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17_ = job; -#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp18_ = _tmp17_->state; -#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_finish_reimport_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PHOTO, Photo), _tmp18_, &_inner_error_); -#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 7634 "PhotoMonitor.c" - goto __catch598_database_error; - } -#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_clear_error (&_inner_error_); -#line 1116 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 7645 "PhotoMonitor.c" - } - } - goto __finally598; - __catch598_database_error: - { - GError* err = NULL; - GError* _tmp19_; -#line 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - err = _inner_error_; -#line 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _inner_error_ = NULL; -#line 1118 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp19_ = err; -#line 1118 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - app_window_database_error (_tmp19_); -#line 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_error_free0 (err); -#line 7663 "PhotoMonitor.c" - } - __finally598: -#line 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_clear_error (&_inner_error_); -#line 1115 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 7676 "PhotoMonitor.c" - } -#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp20_ = job; -#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp21_ = _tmp20_->photo; -#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp22_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_OBJECT, DataObject)); -#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp23_ = _tmp22_; -#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp24_ = g_strdup_printf ("Reimported editable for %s", _tmp23_); -#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp25_ = _tmp24_; -#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp25_); -#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp25_); -#line 1121 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp23_); -#line 1102 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 7698 "PhotoMonitor.c" -} - - -static void -photo_monitor_on_editable_reimport_cancelled (PhotoMonitor* self, - BackgroundJob* j) -{ - gboolean removed = FALSE; - GeeHashMap* _tmp0_; - LibraryPhoto* _tmp1_; - gboolean _tmp2_; -#line 1124 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 1124 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 1125 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = self->priv->editable_reimport_pending; -#line 1125 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (j, PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, PhotoMonitorReimportEditableJob)->photo; -#line 1125 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp1_, NULL); -#line 1125 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - removed = _tmp2_; -#line 1126 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_assert (removed, "removed"); -#line 7724 "PhotoMonitor.c" -} - - -static void -photo_monitor_on_raw_development_reimported (PhotoMonitor* self, - BackgroundJob* j) -{ - PhotoMonitorReimportRawDevelopmentJob* job = NULL; - PhotoMonitorReimportRawDevelopmentJob* _tmp0_; - gboolean removed = FALSE; - GeeHashMap* _tmp1_; - PhotoMonitorReimportRawDevelopmentJob* _tmp2_; - LibraryPhoto* _tmp3_; - gboolean _tmp4_; - gboolean _tmp5_; - PhotoMonitorReimportRawDevelopmentJob* _tmp6_; - GError* _tmp7_; - PhotoMonitorReimportRawDevelopmentJob* _tmp20_; - LibraryPhoto* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - GError * _inner_error_ = NULL; -#line 1129 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 1129 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 1130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, PhotoMonitorReimportRawDevelopmentJob)); -#line 1130 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - job = _tmp0_; -#line 1133 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = self->priv->raw_developments_reimport_pending; -#line 1133 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = job; -#line 1133 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = _tmp2_->photo; -#line 1133 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_, NULL); -#line 1133 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - removed = _tmp4_; -#line 1134 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = removed; -#line 1134 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_assert (_tmp5_, "removed"); -#line 1136 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp6_ = job; -#line 1136 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp7_ = _tmp6_->err; -#line 1136 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_tmp7_ != NULL) { -#line 7777 "PhotoMonitor.c" - PhotoMonitorReimportRawDevelopmentJob* _tmp8_; - LibraryPhoto* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - PhotoMonitorReimportRawDevelopmentJob* _tmp12_; - GError* _tmp13_; - const gchar* _tmp14_; -#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp8_ = job; -#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp9_ = _tmp8_->photo; -#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject)); -#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp11_ = _tmp10_; -#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp12_ = job; -#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp13_ = _tmp12_->err; -#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp14_ = _tmp13_->message; -#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_critical ("PhotoMonitor.vala:1137: Unable to reimport raw development %s: %s", _tmp11_, _tmp14_); -#line 1137 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp11_); -#line 1139 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 1139 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 7807 "PhotoMonitor.c" - } - { - PhotoMonitorReimportRawDevelopmentJob* _tmp15_; - LibraryPhoto* _tmp16_; - PhotoMonitorReimportRawDevelopmentJob* _tmp17_; - PhotoReimportRawDevelopmentState* _tmp18_; -#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp15_ = job; -#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp16_ = _tmp15_->photo; -#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp17_ = job; -#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp18_ = _tmp17_->state; -#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_finish_reimport_raw_development (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PHOTO, Photo), _tmp18_, &_inner_error_); -#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 7828 "PhotoMonitor.c" - goto __catch599_database_error; - } -#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_clear_error (&_inner_error_); -#line 1143 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 7839 "PhotoMonitor.c" - } - } - goto __finally599; - __catch599_database_error: - { - GError* err = NULL; - GError* _tmp19_; -#line 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - err = _inner_error_; -#line 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _inner_error_ = NULL; -#line 1145 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp19_ = err; -#line 1145 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - app_window_database_error (_tmp19_); -#line 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_error_free0 (err); -#line 7857 "PhotoMonitor.c" - } - __finally599: -#line 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_clear_error (&_inner_error_); -#line 1142 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 7870 "PhotoMonitor.c" - } -#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp20_ = job; -#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp21_ = _tmp20_->photo; -#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp22_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_OBJECT, DataObject)); -#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp23_ = _tmp22_; -#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp24_ = g_strdup_printf ("Reimported raw development for %s", _tmp23_); -#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp25_ = _tmp24_; -#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - media_monitor_mdbg (_tmp25_); -#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp25_); -#line 1148 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_free0 (_tmp23_); -#line 1129 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _background_job_unref0 (job); -#line 7892 "PhotoMonitor.c" -} - - -static void -photo_monitor_on_raw_development_reimport_cancelled (PhotoMonitor* self, - BackgroundJob* j) -{ - gboolean removed = FALSE; - GeeHashMap* _tmp0_; - LibraryPhoto* _tmp1_; - gboolean _tmp2_; -#line 1151 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_PHOTO_MONITOR (self)); -#line 1151 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 1152 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = self->priv->raw_developments_reimport_pending; -#line 1152 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (j, PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, PhotoMonitorReimportRawDevelopmentJob)->photo; -#line 1152 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp1_, NULL); -#line 1152 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - removed = _tmp2_; -#line 1153 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _vala_assert (removed, "removed"); -#line 7918 "PhotoMonitor.c" -} - - -static void -_photo_monitor_on_master_reimported_completion_callback (BackgroundJob* job, - gpointer self) -{ -#line 168 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_on_master_reimported ((PhotoMonitor*) self, job); -#line 7928 "PhotoMonitor.c" -} - - -static void -_photo_monitor_on_master_reimport_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self) -{ -#line 168 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_on_master_reimport_cancelled ((PhotoMonitor*) self, job); -#line 7938 "PhotoMonitor.c" -} - - -static PhotoMonitorReimportMasterJob* -photo_monitor_reimport_master_job_construct (GType object_type, - PhotoMonitor* owner, - LibraryPhoto* photo) -{ - PhotoMonitorReimportMasterJob* self = NULL; - GCancellable* _tmp0_; - GCancellable* _tmp1_; - LibraryPhoto* _tmp2_; -#line 167 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_PHOTO_MONITOR (owner), NULL); -#line 167 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL); -#line 168 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = g_cancellable_new (); -#line 168 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp0_; -#line 168 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = (PhotoMonitorReimportMasterJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), _photo_monitor_on_master_reimported_completion_callback, owner, _tmp1_, _photo_monitor_on_master_reimport_cancelled_cancellation_callback, owner, NULL); -#line 168 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp1_); -#line 171 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = _g_object_ref0 (photo); -#line 171 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->photo); -#line 171 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->photo = _tmp2_; -#line 167 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return self; -#line 7971 "PhotoMonitor.c" -} - - -static PhotoMonitorReimportMasterJob* -photo_monitor_reimport_master_job_new (PhotoMonitor* owner, - LibraryPhoto* photo) -{ -#line 167 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return photo_monitor_reimport_master_job_construct (PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, owner, photo); -#line 7981 "PhotoMonitor.c" -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 178 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return self ? g_error_copy (self) : NULL; -#line 7990 "PhotoMonitor.c" -} - - -static void -photo_monitor_reimport_master_job_real_execute (BackgroundJob* base) -{ - PhotoMonitorReimportMasterJob * self; - GError * _inner_error_ = NULL; -#line 174 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, PhotoMonitorReimportMasterJob); -#line 8001 "PhotoMonitor.c" - { - gboolean _tmp0_ = FALSE; - LibraryPhoto* _tmp1_; - PhotoReimportMasterState* _tmp2_ = NULL; - gboolean _tmp3_; -#line 176 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = self->photo; -#line 176 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = photo_prepare_for_reimport_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO, Photo), &_tmp2_, &_inner_error_); -#line 176 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_reimport_master_state_unref0 (self->reimport_state); -#line 176 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->reimport_state = _tmp2_; -#line 176 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = _tmp3_; -#line 176 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8019 "PhotoMonitor.c" - goto __catch600_g_error; - } -#line 176 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->mark_online = _tmp0_; -#line 8024 "PhotoMonitor.c" - } - goto __finally600; - __catch600_g_error: - { - GError* err = NULL; - GError* _tmp4_; - GError* _tmp5_; -#line 175 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - err = _inner_error_; -#line 175 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _inner_error_ = NULL; -#line 178 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = err; -#line 178 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = _g_error_copy0 (_tmp4_); -#line 178 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_error_free0 (self->err); -#line 178 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->err = _tmp5_; -#line 175 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_error_free0 (err); -#line 8046 "PhotoMonitor.c" - } - __finally600: -#line 175 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 175 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 175 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_clear_error (&_inner_error_); -#line 175 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 8057 "PhotoMonitor.c" - } -} - - -static void -photo_monitor_reimport_master_job_class_init (PhotoMonitorReimportMasterJobClass * klass) -{ -#line 161 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_reimport_master_job_parent_class = g_type_class_peek_parent (klass); -#line 161 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((BackgroundJobClass *) klass)->finalize = photo_monitor_reimport_master_job_finalize; -#line 161 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) photo_monitor_reimport_master_job_real_execute; -#line 8071 "PhotoMonitor.c" -} - - -static void -photo_monitor_reimport_master_job_instance_init (PhotoMonitorReimportMasterJob * self) -{ -#line 163 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->reimport_state = NULL; -#line 164 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->mark_online = FALSE; -#line 165 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->err = NULL; -#line 8084 "PhotoMonitor.c" -} - - -static void -photo_monitor_reimport_master_job_finalize (BackgroundJob * obj) -{ - PhotoMonitorReimportMasterJob * self; -#line 161 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, PhotoMonitorReimportMasterJob); -#line 162 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->photo); -#line 163 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_reimport_master_state_unref0 (self->reimport_state); -#line 165 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_error_free0 (self->err); -#line 161 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - BACKGROUND_JOB_CLASS (photo_monitor_reimport_master_job_parent_class)->finalize (obj); -#line 8102 "PhotoMonitor.c" -} - - -static GType -photo_monitor_reimport_master_job_get_type (void) -{ - static volatile gsize photo_monitor_reimport_master_job_type_id__volatile = 0; - if (g_once_init_enter (&photo_monitor_reimport_master_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoMonitorReimportMasterJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_monitor_reimport_master_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoMonitorReimportMasterJob), 0, (GInstanceInitFunc) photo_monitor_reimport_master_job_instance_init, NULL }; - GType photo_monitor_reimport_master_job_type_id; - photo_monitor_reimport_master_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "PhotoMonitorReimportMasterJob", &g_define_type_info, 0); - g_once_init_leave (&photo_monitor_reimport_master_job_type_id__volatile, photo_monitor_reimport_master_job_type_id); - } - return photo_monitor_reimport_master_job_type_id__volatile; -} - - -static void -_photo_monitor_on_editable_reimported_completion_callback (BackgroundJob* job, - gpointer self) -{ -#line 190 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_on_editable_reimported ((PhotoMonitor*) self, job); -#line 8126 "PhotoMonitor.c" -} - - -static void -_photo_monitor_on_editable_reimport_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self) -{ -#line 190 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_on_editable_reimport_cancelled ((PhotoMonitor*) self, job); -#line 8136 "PhotoMonitor.c" -} - - -static PhotoMonitorReimportEditableJob* -photo_monitor_reimport_editable_job_construct (GType object_type, - PhotoMonitor* owner, - LibraryPhoto* photo) -{ - PhotoMonitorReimportEditableJob* self = NULL; - GCancellable* _tmp0_; - GCancellable* _tmp1_; - LibraryPhoto* _tmp2_; -#line 189 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_PHOTO_MONITOR (owner), NULL); -#line 189 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL); -#line 190 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = g_cancellable_new (); -#line 190 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp0_; -#line 190 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = (PhotoMonitorReimportEditableJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), _photo_monitor_on_editable_reimported_completion_callback, owner, _tmp1_, _photo_monitor_on_editable_reimport_cancelled_cancellation_callback, owner, NULL); -#line 190 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp1_); -#line 193 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = _g_object_ref0 (photo); -#line 193 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->photo); -#line 193 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->photo = _tmp2_; -#line 189 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return self; -#line 8169 "PhotoMonitor.c" -} - - -static PhotoMonitorReimportEditableJob* -photo_monitor_reimport_editable_job_new (PhotoMonitor* owner, - LibraryPhoto* photo) -{ -#line 189 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return photo_monitor_reimport_editable_job_construct (PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, owner, photo); -#line 8179 "PhotoMonitor.c" -} - - -static void -photo_monitor_reimport_editable_job_real_execute (BackgroundJob* base) -{ - PhotoMonitorReimportEditableJob * self; - GError * _inner_error_ = NULL; -#line 196 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, PhotoMonitorReimportEditableJob); -#line 8190 "PhotoMonitor.c" - { - gboolean _tmp0_ = FALSE; - LibraryPhoto* _tmp1_; - PhotoReimportEditableState* _tmp2_ = NULL; - gboolean _tmp3_; -#line 198 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = self->photo; -#line 198 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = photo_prepare_for_reimport_editable (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO, Photo), &_tmp2_, &_inner_error_); -#line 198 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_reimport_editable_state_unref0 (self->state); -#line 198 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->state = _tmp2_; -#line 198 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = _tmp3_; -#line 198 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8208 "PhotoMonitor.c" - goto __catch601_g_error; - } -#line 198 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->success = _tmp0_; -#line 8213 "PhotoMonitor.c" - } - goto __finally601; - __catch601_g_error: - { - GError* err = NULL; - GError* _tmp4_; - GError* _tmp5_; -#line 197 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - err = _inner_error_; -#line 197 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _inner_error_ = NULL; -#line 200 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = err; -#line 200 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = _g_error_copy0 (_tmp4_); -#line 200 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_error_free0 (self->err); -#line 200 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->err = _tmp5_; -#line 197 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_error_free0 (err); -#line 8235 "PhotoMonitor.c" - } - __finally601: -#line 197 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 197 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 197 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_clear_error (&_inner_error_); -#line 197 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 8246 "PhotoMonitor.c" - } -} - - -static void -photo_monitor_reimport_editable_job_class_init (PhotoMonitorReimportEditableJobClass * klass) -{ -#line 183 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_reimport_editable_job_parent_class = g_type_class_peek_parent (klass); -#line 183 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((BackgroundJobClass *) klass)->finalize = photo_monitor_reimport_editable_job_finalize; -#line 183 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) photo_monitor_reimport_editable_job_real_execute; -#line 8260 "PhotoMonitor.c" -} - - -static void -photo_monitor_reimport_editable_job_instance_init (PhotoMonitorReimportEditableJob * self) -{ -#line 185 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->state = NULL; -#line 186 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->success = FALSE; -#line 187 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->err = NULL; -#line 8273 "PhotoMonitor.c" -} - - -static void -photo_monitor_reimport_editable_job_finalize (BackgroundJob * obj) -{ - PhotoMonitorReimportEditableJob * self; -#line 183 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, PhotoMonitorReimportEditableJob); -#line 184 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->photo); -#line 185 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_reimport_editable_state_unref0 (self->state); -#line 187 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_error_free0 (self->err); -#line 183 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - BACKGROUND_JOB_CLASS (photo_monitor_reimport_editable_job_parent_class)->finalize (obj); -#line 8291 "PhotoMonitor.c" -} - - -static GType -photo_monitor_reimport_editable_job_get_type (void) -{ - static volatile gsize photo_monitor_reimport_editable_job_type_id__volatile = 0; - if (g_once_init_enter (&photo_monitor_reimport_editable_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoMonitorReimportEditableJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_monitor_reimport_editable_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoMonitorReimportEditableJob), 0, (GInstanceInitFunc) photo_monitor_reimport_editable_job_instance_init, NULL }; - GType photo_monitor_reimport_editable_job_type_id; - photo_monitor_reimport_editable_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "PhotoMonitorReimportEditableJob", &g_define_type_info, 0); - g_once_init_leave (&photo_monitor_reimport_editable_job_type_id__volatile, photo_monitor_reimport_editable_job_type_id); - } - return photo_monitor_reimport_editable_job_type_id__volatile; -} - - -static void -_photo_monitor_on_raw_development_reimported_completion_callback (BackgroundJob* job, - gpointer self) -{ -#line 212 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_on_raw_development_reimported ((PhotoMonitor*) self, job); -#line 8315 "PhotoMonitor.c" -} - - -static void -_photo_monitor_on_raw_development_reimport_cancelled_cancellation_callback (BackgroundJob* job, - gpointer self) -{ -#line 212 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_on_raw_development_reimport_cancelled ((PhotoMonitor*) self, job); -#line 8325 "PhotoMonitor.c" -} - - -static PhotoMonitorReimportRawDevelopmentJob* -photo_monitor_reimport_raw_development_job_construct (GType object_type, - PhotoMonitor* owner, - LibraryPhoto* photo) -{ - PhotoMonitorReimportRawDevelopmentJob* self = NULL; - GCancellable* _tmp0_; - GCancellable* _tmp1_; - LibraryPhoto* _tmp2_; -#line 211 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_PHOTO_MONITOR (owner), NULL); -#line 211 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO (photo), NULL); -#line 212 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = g_cancellable_new (); -#line 212 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = _tmp0_; -#line 212 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = (PhotoMonitorReimportRawDevelopmentJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), _photo_monitor_on_raw_development_reimported_completion_callback, owner, _tmp1_, _photo_monitor_on_raw_development_reimport_cancelled_cancellation_callback, owner, NULL); -#line 212 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (_tmp1_); -#line 215 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = _g_object_ref0 (photo); -#line 215 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->photo); -#line 215 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->photo = _tmp2_; -#line 211 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return self; -#line 8358 "PhotoMonitor.c" -} - - -static PhotoMonitorReimportRawDevelopmentJob* -photo_monitor_reimport_raw_development_job_new (PhotoMonitor* owner, - LibraryPhoto* photo) -{ -#line 211 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return photo_monitor_reimport_raw_development_job_construct (PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, owner, photo); -#line 8368 "PhotoMonitor.c" -} - - -static void -photo_monitor_reimport_raw_development_job_real_execute (BackgroundJob* base) -{ - PhotoMonitorReimportRawDevelopmentJob * self; - GError * _inner_error_ = NULL; -#line 218 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, PhotoMonitorReimportRawDevelopmentJob); -#line 8379 "PhotoMonitor.c" - { - gboolean _tmp0_ = FALSE; - LibraryPhoto* _tmp1_; - PhotoReimportRawDevelopmentState* _tmp2_ = NULL; - gboolean _tmp3_; -#line 220 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = self->photo; -#line 220 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = photo_prepare_for_reimport_raw_development (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO, Photo), &_tmp2_, &_inner_error_); -#line 220 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_reimport_raw_development_state_unref0 (self->state); -#line 220 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->state = _tmp2_; -#line 220 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = _tmp3_; -#line 220 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8397 "PhotoMonitor.c" - goto __catch602_g_error; - } -#line 220 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->success = _tmp0_; -#line 8402 "PhotoMonitor.c" - } - goto __finally602; - __catch602_g_error: - { - GError* err = NULL; - GError* _tmp4_; - GError* _tmp5_; -#line 219 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - err = _inner_error_; -#line 219 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _inner_error_ = NULL; -#line 222 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = err; -#line 222 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp5_ = _g_error_copy0 (_tmp4_); -#line 222 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_error_free0 (self->err); -#line 222 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->err = _tmp5_; -#line 219 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_error_free0 (err); -#line 8424 "PhotoMonitor.c" - } - __finally602: -#line 219 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 219 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 219 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_clear_error (&_inner_error_); -#line 219 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - return; -#line 8435 "PhotoMonitor.c" - } -} - - -static void -photo_monitor_reimport_raw_development_job_class_init (PhotoMonitorReimportRawDevelopmentJobClass * klass) -{ -#line 205 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_reimport_raw_development_job_parent_class = g_type_class_peek_parent (klass); -#line 205 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((BackgroundJobClass *) klass)->finalize = photo_monitor_reimport_raw_development_job_finalize; -#line 205 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) photo_monitor_reimport_raw_development_job_real_execute; -#line 8449 "PhotoMonitor.c" -} - - -static void -photo_monitor_reimport_raw_development_job_instance_init (PhotoMonitorReimportRawDevelopmentJob * self) -{ -#line 207 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->state = NULL; -#line 208 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->success = FALSE; -#line 209 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->err = NULL; -#line 8462 "PhotoMonitor.c" -} - - -static void -photo_monitor_reimport_raw_development_job_finalize (BackgroundJob * obj) -{ - PhotoMonitorReimportRawDevelopmentJob * self; -#line 205 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, PhotoMonitorReimportRawDevelopmentJob); -#line 206 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->photo); -#line 207 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _photo_reimport_raw_development_state_unref0 (self->state); -#line 209 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_error_free0 (self->err); -#line 205 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - BACKGROUND_JOB_CLASS (photo_monitor_reimport_raw_development_job_parent_class)->finalize (obj); -#line 8480 "PhotoMonitor.c" -} - - -static GType -photo_monitor_reimport_raw_development_job_get_type (void) -{ - static volatile gsize photo_monitor_reimport_raw_development_job_type_id__volatile = 0; - if (g_once_init_enter (&photo_monitor_reimport_raw_development_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoMonitorReimportRawDevelopmentJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_monitor_reimport_raw_development_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoMonitorReimportRawDevelopmentJob), 0, (GInstanceInitFunc) photo_monitor_reimport_raw_development_job_instance_init, NULL }; - GType photo_monitor_reimport_raw_development_job_type_id; - photo_monitor_reimport_raw_development_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "PhotoMonitorReimportRawDevelopmentJob", &g_define_type_info, 0); - g_once_init_leave (&photo_monitor_reimport_raw_development_job_type_id__volatile, photo_monitor_reimport_raw_development_job_type_id); - } - return photo_monitor_reimport_raw_development_job_type_id__volatile; -} - - -static void -photo_monitor_class_init (PhotoMonitorClass * klass) -{ -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - photo_monitor_parent_class = g_type_class_peek_parent (klass); -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - g_type_class_add_private (klass, sizeof (PhotoMonitorPrivate)); -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MediaMonitorClass *) klass)->create_updates = (MonitorableUpdates* (*) (MediaMonitor *, Monitorable*)) photo_monitor_real_create_updates; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MediaMonitorClass *) klass)->get_media_source_collection = (MediaSourceCollection* (*) (MediaMonitor *)) photo_monitor_real_get_media_source_collection; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MediaMonitorClass *) klass)->is_file_represented = (gboolean (*) (MediaMonitor *, GFile*)) photo_monitor_real_is_file_represented; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MediaMonitorClass *) klass)->close = (void (*) (MediaMonitor *)) photo_monitor_real_close; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_discovered = (MediaMonitorDiscoveredFile (*) (MediaMonitor *, GFile*, GFileInfo*, Monitorable* *)) photo_monitor_real_notify_file_discovered; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MediaMonitorClass *) klass)->candidates_for_unknown_file = (GeeCollection* (*) (MediaMonitor *, GFile*, GFileInfo*, MediaMonitorDiscoveredFile*)) photo_monitor_real_candidates_for_unknown_file; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MediaMonitorClass *) klass)->get_auxilliary_backing_files = (GFile** (*) (MediaMonitor *, Monitorable*, int*)) photo_monitor_real_get_auxilliary_backing_files; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MediaMonitorClass *) klass)->update_backing_file_info = (void (*) (MediaMonitor *, Monitorable*, GFile*, GFileInfo*)) photo_monitor_real_update_backing_file_info; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MediaMonitorClass *) klass)->notify_discovery_completing = (void (*) (MediaMonitor *)) photo_monitor_real_notify_discovery_completing; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_created = (gboolean (*) (MediaMonitor *, GFile*, GFileInfo*)) photo_monitor_real_notify_file_created; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_moved = (gboolean (*) (MediaMonitor *, GFile*, GFile*, GFileInfo*)) photo_monitor_real_notify_file_moved; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_altered = (gboolean (*) (MediaMonitor *, GFile*)) photo_monitor_real_notify_file_altered; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_attributes_altered = (gboolean (*) (MediaMonitor *, GFile*)) photo_monitor_real_notify_file_attributes_altered; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_alteration_completed = (gboolean (*) (MediaMonitor *, GFile*, GFileInfo*)) photo_monitor_real_notify_file_alteration_completed; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_deleted = (gboolean (*) (MediaMonitor *, GFile*)) photo_monitor_real_notify_file_deleted; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MediaMonitorClass *) klass)->on_media_source_destroyed = (void (*) (MediaMonitor *, DataSource*)) photo_monitor_real_on_media_source_destroyed; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - ((MediaMonitorClass *) klass)->process_updates = (void (*) (MediaMonitor *, GeeCollection*, TransactionController*, gint*, GError**)) photo_monitor_real_process_updates; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - G_OBJECT_CLASS (klass)->finalize = photo_monitor_finalize; -#line 8541 "PhotoMonitor.c" -} - - -static void -photo_monitor_instance_init (PhotoMonitor * self) -{ - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; - GeeHashMap* _tmp2_; - GeeHashMap* _tmp3_; - GeeHashMap* _tmp4_; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->priv = PHOTO_MONITOR_GET_PRIVATE (self); -#line 228 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp0_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 228 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->priv->matched_editables = _tmp0_; -#line 229 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp1_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 229 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->priv->matched_developments = _tmp1_; -#line 230 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp2_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, PHOTO_MONITOR_TYPE_REIMPORT_MASTER_JOB, (GBoxedCopyFunc) background_job_ref, (GDestroyNotify) background_job_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 230 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->priv->master_reimport_pending = _tmp2_; -#line 232 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp3_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, PHOTO_MONITOR_TYPE_REIMPORT_EDITABLE_JOB, (GBoxedCopyFunc) background_job_ref, (GDestroyNotify) background_job_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 232 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->priv->editable_reimport_pending = _tmp3_; -#line 234 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _tmp4_ = gee_hash_map_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, PHOTO_MONITOR_TYPE_REIMPORT_RAW_DEVELOPMENT_JOB, (GBoxedCopyFunc) background_job_ref, (GDestroyNotify) background_job_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 234 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self->priv->raw_developments_reimport_pending = _tmp4_; -#line 8575 "PhotoMonitor.c" -} - - -static void -photo_monitor_finalize (GObject * obj) -{ - PhotoMonitor * self; -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_MONITOR, PhotoMonitor); -#line 227 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _workers_unref0 (self->priv->workers); -#line 228 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->priv->matched_editables); -#line 229 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->priv->matched_developments); -#line 230 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->priv->master_reimport_pending); -#line 232 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->priv->editable_reimport_pending); -#line 234 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - _g_object_unref0 (self->priv->raw_developments_reimport_pending); -#line 157 "/home/jens/Source/shotwell/src/PhotoMonitor.vala" - G_OBJECT_CLASS (photo_monitor_parent_class)->finalize (obj); -#line 8599 "PhotoMonitor.c" -} - - -GType -photo_monitor_get_type (void) -{ - static volatile gsize photo_monitor_type_id__volatile = 0; - if (g_once_init_enter (&photo_monitor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoMonitorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_monitor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoMonitor), 0, (GInstanceInitFunc) photo_monitor_instance_init, NULL }; - GType photo_monitor_type_id; - photo_monitor_type_id = g_type_register_static (TYPE_MEDIA_MONITOR, "PhotoMonitor", &g_define_type_info, 0); - g_once_init_leave (&photo_monitor_type_id__volatile, photo_monitor_type_id); - } - return photo_monitor_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/PhotoPage.c b/src/PhotoPage.c deleted file mode 100644 index 5ba8350..0000000 --- a/src/PhotoPage.c +++ /dev/null @@ -1,20126 +0,0 @@ -/* PhotoPage.c generated by valac 0.40.4, the Vala compiler - * generated from PhotoPage.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-graphics-processor.h" -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_ZOOM_BUFFER (zoom_buffer_get_type ()) -#define ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ZOOM_BUFFER, ZoomBuffer)) -#define ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ZOOM_BUFFER, ZoomBufferClass)) -#define IS_ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ZOOM_BUFFER)) -#define IS_ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ZOOM_BUFFER)) -#define ZOOM_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ZOOM_BUFFER, ZoomBufferClass)) - -typedef struct _ZoomBuffer ZoomBuffer; -typedef struct _ZoomBufferClass ZoomBufferClass; -typedef struct _ZoomBufferPrivate ZoomBufferPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define ZOOM_BUFFER_TYPE_OBJECT_STATE (zoom_buffer_object_state_get_type ()) - -#define TYPE_ZOOM_STATE (zoom_state_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -typedef struct _ZoomState ZoomState; - -#define TYPE_BACKGROUND_JOB (background_job_get_type ()) -#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob)) -#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass)) -#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB)) -#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB)) -#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass)) - -typedef struct _BackgroundJob BackgroundJob; -typedef struct _BackgroundJobClass BackgroundJobClass; - -#define ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB (zoom_buffer_transformation_job_get_type ()) -#define ZOOM_BUFFER_TRANSFORMATION_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, ZoomBufferTransformationJob)) -#define ZOOM_BUFFER_TRANSFORMATION_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, ZoomBufferTransformationJobClass)) -#define ZOOM_BUFFER_IS_TRANSFORMATION_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB)) -#define ZOOM_BUFFER_IS_TRANSFORMATION_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB)) -#define ZOOM_BUFFER_TRANSFORMATION_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, ZoomBufferTransformationJobClass)) - -typedef struct _ZoomBufferTransformationJob ZoomBufferTransformationJob; -typedef struct _ZoomBufferTransformationJobClass ZoomBufferTransformationJobClass; - -#define TYPE_WORKERS (workers_get_type ()) -#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers)) -#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass)) -#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS)) -#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS)) -#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass)) - -typedef struct _Workers Workers; -typedef struct _WorkersClass WorkersClass; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ()) -#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)) -#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) -#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE)) -#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE)) -#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) - -typedef struct _SinglePhotoPage SinglePhotoPage; -typedef struct _SinglePhotoPageClass SinglePhotoPageClass; -enum { - ZOOM_BUFFER_0_PROPERTY, - ZOOM_BUFFER_NUM_PROPERTIES -}; -static GParamSpec* zoom_buffer_properties[ZOOM_BUFFER_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL))) -#define _workers_unref0(var) ((var == NULL) ? NULL : (var = (workers_unref (var), NULL))) - -#define ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB (zoom_buffer_iso_source_fetch_job_get_type ()) -#define ZOOM_BUFFER_ISO_SOURCE_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB, ZoomBufferIsoSourceFetchJob)) -#define ZOOM_BUFFER_ISO_SOURCE_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB, ZoomBufferIsoSourceFetchJobClass)) -#define ZOOM_BUFFER_IS_ISO_SOURCE_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB)) -#define ZOOM_BUFFER_IS_ISO_SOURCE_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB)) -#define ZOOM_BUFFER_ISO_SOURCE_FETCH_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB, ZoomBufferIsoSourceFetchJobClass)) - -typedef struct _ZoomBufferIsoSourceFetchJob ZoomBufferIsoSourceFetchJob; -typedef struct _ZoomBufferIsoSourceFetchJobClass ZoomBufferIsoSourceFetchJobClass; -typedef struct _BackgroundJobPrivate BackgroundJobPrivate; - -#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ()) -typedef struct _ZoomBufferIsoSourceFetchJobPrivate ZoomBufferIsoSourceFetchJobPrivate; - -#define TYPE_DIRECTION (direction_get_type ()) -#define _pixel_transformer_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformer_unref (var), NULL))) -typedef struct _ZoomBufferTransformationJobPrivate ZoomBufferTransformationJobPrivate; - -#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ()) -#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)) -#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) -#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE)) -#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE)) -#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) - -typedef struct _AbstractSemaphore AbstractSemaphore; -typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass; - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) -typedef struct _Scaling Scaling; - -#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ()) - -#define TYPE_BACKING_FETCH_MODE (backing_fetch_mode_get_type ()) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; -typedef struct _SinglePhotoPagePrivate SinglePhotoPagePrivate; - -#define SINGLE_PHOTO_PAGE_TYPE_UPDATE_REASON (single_photo_page_update_reason_get_type ()) - -#define TYPE_EDITING_HOST_PAGE (editing_host_page_get_type ()) -#define EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPage)) -#define EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDITING_HOST_PAGE, EditingHostPageClass)) -#define IS_EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDITING_HOST_PAGE)) -#define IS_EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDITING_HOST_PAGE)) -#define EDITING_HOST_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPageClass)) - -typedef struct _EditingHostPage EditingHostPage; -typedef struct _EditingHostPageClass EditingHostPageClass; -typedef struct _EditingHostPagePrivate EditingHostPagePrivate; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; - -#define EDITING_TOOLS_TYPE_EDITING_TOOL (editing_tools_editing_tool_get_type ()) -#define EDITING_TOOLS_EDITING_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)) -#define EDITING_TOOLS_EDITING_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingToolClass)) -#define EDITING_TOOLS_IS_EDITING_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL)) -#define EDITING_TOOLS_IS_EDITING_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL)) -#define EDITING_TOOLS_EDITING_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingToolClass)) - -typedef struct _EditingToolsEditingTool EditingToolsEditingTool; -typedef struct _EditingToolsEditingToolClass EditingToolsEditingToolClass; - -#define TYPE_PIXBUF_CACHE (pixbuf_cache_get_type ()) -#define PIXBUF_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXBUF_CACHE, PixbufCache)) -#define PIXBUF_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXBUF_CACHE, PixbufCacheClass)) -#define IS_PIXBUF_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXBUF_CACHE)) -#define IS_PIXBUF_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXBUF_CACHE)) -#define PIXBUF_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXBUF_CACHE, PixbufCacheClass)) - -typedef struct _PixbufCache PixbufCache; -typedef struct _PixbufCacheClass PixbufCacheClass; - -#define TYPE_DRAG_AND_DROP_HANDLER (drag_and_drop_handler_get_type ()) -#define DRAG_AND_DROP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandler)) -#define DRAG_AND_DROP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandlerClass)) -#define IS_DRAG_AND_DROP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DRAG_AND_DROP_HANDLER)) -#define IS_DRAG_AND_DROP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DRAG_AND_DROP_HANDLER)) -#define DRAG_AND_DROP_HANDLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DRAG_AND_DROP_HANDLER, DragAndDropHandlerClass)) - -typedef struct _DragAndDropHandler DragAndDropHandler; -typedef struct _DragAndDropHandlerClass DragAndDropHandlerClass; -enum { - EDITING_HOST_PAGE_0_PROPERTY, - EDITING_HOST_PAGE_NUM_PROPERTIES -}; -static GParamSpec* editing_host_page_properties[EDITING_HOST_PAGE_NUM_PROPERTIES]; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _editing_tools_editing_tool_unref0(var) ((var == NULL) ? NULL : (var = (editing_tools_editing_tool_unref (var), NULL))) -#define _drag_and_drop_handler_unref0(var) ((var == NULL) ? NULL : (var = (drag_and_drop_handler_unref (var), NULL))) - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PIXBUF_CACHE_TYPE_PHOTO_TYPE (pixbuf_cache_photo_type_get_type ()) - -#define PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH (pixbuf_cache_pixbuf_cache_batch_get_type ()) -#define PIXBUF_CACHE_PIXBUF_CACHE_BATCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH, PixbufCachePixbufCacheBatch)) -#define PIXBUF_CACHE_PIXBUF_CACHE_BATCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH, PixbufCachePixbufCacheBatchClass)) -#define PIXBUF_CACHE_IS_PIXBUF_CACHE_BATCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH)) -#define PIXBUF_CACHE_IS_PIXBUF_CACHE_BATCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH)) -#define PIXBUF_CACHE_PIXBUF_CACHE_BATCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH, PixbufCachePixbufCacheBatchClass)) - -typedef struct _PixbufCachePixbufCacheBatch PixbufCachePixbufCacheBatch; -typedef struct _PixbufCachePixbufCacheBatchClass PixbufCachePixbufCacheBatchClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; - -#define TYPE_PHOTO_VIEW (photo_view_get_type ()) -#define PHOTO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_VIEW, PhotoView)) -#define PHOTO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_VIEW, PhotoViewClass)) -#define IS_PHOTO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_VIEW)) -#define IS_PHOTO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_VIEW)) -#define PHOTO_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_VIEW, PhotoViewClass)) - -typedef struct _PhotoView PhotoView; -typedef struct _PhotoViewClass PhotoViewClass; - -#define TYPE_ORIENTATION (orientation_get_type ()) - -#define EDITING_TOOLS_TYPE_PHOTO_CANVAS (editing_tools_photo_canvas_get_type ()) -#define EDITING_TOOLS_PHOTO_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvas)) -#define EDITING_TOOLS_PHOTO_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvasClass)) -#define EDITING_TOOLS_IS_PHOTO_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS)) -#define EDITING_TOOLS_IS_PHOTO_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_PHOTO_CANVAS)) -#define EDITING_TOOLS_PHOTO_CANVAS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvasClass)) - -typedef struct _EditingToolsPhotoCanvas EditingToolsPhotoCanvas; -typedef struct _EditingToolsPhotoCanvasClass EditingToolsPhotoCanvasClass; - -#define EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS (editing_host_page_editing_host_canvas_get_type ()) -#define EDITING_HOST_PAGE_EDITING_HOST_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS, EditingHostPageEditingHostCanvas)) -#define EDITING_HOST_PAGE_EDITING_HOST_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS, EditingHostPageEditingHostCanvasClass)) -#define EDITING_HOST_PAGE_IS_EDITING_HOST_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS)) -#define EDITING_HOST_PAGE_IS_EDITING_HOST_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS)) -#define EDITING_HOST_PAGE_EDITING_HOST_CANVAS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS, EditingHostPageEditingHostCanvasClass)) - -typedef struct _EditingHostPageEditingHostCanvas EditingHostPageEditingHostCanvas; -typedef struct _EditingHostPageEditingHostCanvasClass EditingHostPageEditingHostCanvasClass; -#define _editing_tools_photo_canvas_unref0(var) ((var == NULL) ? NULL : (var = (editing_tools_photo_canvas_unref (var), NULL))) - -#define EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW (editing_tools_editing_tool_window_get_type ()) -#define EDITING_TOOLS_EDITING_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow)) -#define EDITING_TOOLS_EDITING_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindowClass)) -#define EDITING_TOOLS_IS_EDITING_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW)) -#define EDITING_TOOLS_IS_EDITING_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW)) -#define EDITING_TOOLS_EDITING_TOOL_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindowClass)) - -typedef struct _EditingToolsEditingToolWindow EditingToolsEditingToolWindow; -typedef struct _EditingToolsEditingToolWindowClass EditingToolsEditingToolWindowClass; -typedef struct _EditingToolsEditingToolPrivate EditingToolsEditingToolPrivate; - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) - -#define TYPE_ROTATION (rotation_get_type ()) - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; - -#define TYPE_SINGLE_DATA_SOURCE_COMMAND (single_data_source_command_get_type ()) -#define SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)) -#define SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) -#define IS_SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND)) -#define IS_SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND)) -#define SINGLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) - -typedef struct _SingleDataSourceCommand SingleDataSourceCommand; -typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass; - -#define TYPE_ROTATE_SINGLE_COMMAND (rotate_single_command_get_type ()) -#define ROTATE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommand)) -#define ROTATE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommandClass)) -#define IS_ROTATE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ROTATE_SINGLE_COMMAND)) -#define IS_ROTATE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ROTATE_SINGLE_COMMAND)) -#define ROTATE_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ROTATE_SINGLE_COMMAND, RotateSingleCommandClass)) - -typedef struct _RotateSingleCommand RotateSingleCommand; -typedef struct _RotateSingleCommandClass RotateSingleCommandClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND (generic_photo_transformation_command_get_type ()) -#define GENERIC_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand)) -#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandClass)) -#define IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND)) -#define IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND)) -#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandClass)) - -typedef struct _GenericPhotoTransformationCommand GenericPhotoTransformationCommand; -typedef struct _GenericPhotoTransformationCommandClass GenericPhotoTransformationCommandClass; - -#define TYPE_REVERT_SINGLE_COMMAND (revert_single_command_get_type ()) -#define REVERT_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommand)) -#define REVERT_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommandClass)) -#define IS_REVERT_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REVERT_SINGLE_COMMAND)) -#define IS_REVERT_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REVERT_SINGLE_COMMAND)) -#define REVERT_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REVERT_SINGLE_COMMAND, RevertSingleCommandClass)) - -typedef struct _RevertSingleCommand RevertSingleCommand; -typedef struct _RevertSingleCommandClass RevertSingleCommandClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_TEXT_ENTRY_DIALOG_MEDIATOR (text_entry_dialog_mediator_get_type ()) -#define TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator)) -#define TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass)) -#define IS_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define IS_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass)) - -typedef struct _TextEntryDialogMediator TextEntryDialogMediator; -typedef struct _TextEntryDialogMediatorClass TextEntryDialogMediatorClass; - -#define TYPE_EDIT_TITLE_DIALOG (edit_title_dialog_get_type ()) -#define EDIT_TITLE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_TITLE_DIALOG, EditTitleDialog)) -#define EDIT_TITLE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_TITLE_DIALOG, EditTitleDialogClass)) -#define IS_EDIT_TITLE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_TITLE_DIALOG)) -#define IS_EDIT_TITLE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_TITLE_DIALOG)) -#define EDIT_TITLE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_TITLE_DIALOG, EditTitleDialogClass)) - -typedef struct _EditTitleDialog EditTitleDialog; -typedef struct _EditTitleDialogClass EditTitleDialogClass; -#define _text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (text_entry_dialog_mediator_unref (var), NULL))) - -#define TYPE_EDIT_TITLE_COMMAND (edit_title_command_get_type ()) -#define EDIT_TITLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_TITLE_COMMAND, EditTitleCommand)) -#define EDIT_TITLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_TITLE_COMMAND, EditTitleCommandClass)) -#define IS_EDIT_TITLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_TITLE_COMMAND)) -#define IS_EDIT_TITLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_TITLE_COMMAND)) -#define EDIT_TITLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_TITLE_COMMAND, EditTitleCommandClass)) - -typedef struct _EditTitleCommand EditTitleCommand; -typedef struct _EditTitleCommandClass EditTitleCommandClass; - -#define TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR (multi_text_entry_dialog_mediator_get_type ()) -#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediator)) -#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass)) -#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass)) - -typedef struct _MultiTextEntryDialogMediator MultiTextEntryDialogMediator; -typedef struct _MultiTextEntryDialogMediatorClass MultiTextEntryDialogMediatorClass; - -#define TYPE_EDIT_COMMENT_DIALOG (edit_comment_dialog_get_type ()) -#define EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialog)) -#define EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass)) -#define IS_EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_COMMENT_DIALOG)) -#define IS_EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_COMMENT_DIALOG)) -#define EDIT_COMMENT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass)) - -typedef struct _EditCommentDialog EditCommentDialog; -typedef struct _EditCommentDialogClass EditCommentDialogClass; -#define _multi_text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (multi_text_entry_dialog_mediator_unref (var), NULL))) - -#define TYPE_EDIT_COMMENT_COMMAND (edit_comment_command_get_type ()) -#define EDIT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_COMMENT_COMMAND, EditCommentCommand)) -#define EDIT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_COMMENT_COMMAND, EditCommentCommandClass)) -#define IS_EDIT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_COMMENT_COMMAND)) -#define IS_EDIT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_COMMENT_COMMAND)) -#define EDIT_COMMENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_COMMENT_COMMAND, EditCommentCommandClass)) - -typedef struct _EditCommentCommand EditCommentCommand; -typedef struct _EditCommentCommandClass EditCommentCommandClass; - -#define TYPE_ADJUST_DATE_TIME_DIALOG (adjust_date_time_dialog_get_type ()) -#define ADJUST_DATE_TIME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialog)) -#define ADJUST_DATE_TIME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialogClass)) -#define IS_ADJUST_DATE_TIME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_DATE_TIME_DIALOG)) -#define IS_ADJUST_DATE_TIME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_DATE_TIME_DIALOG)) -#define ADJUST_DATE_TIME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialogClass)) - -typedef struct _AdjustDateTimeDialog AdjustDateTimeDialog; -typedef struct _AdjustDateTimeDialogClass AdjustDateTimeDialogClass; - -#define TYPE_DATEABLE (dateable_get_type ()) -#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable)) -#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE)) -#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface)) - -typedef struct _Dateable Dateable; -typedef struct _DateableIface DateableIface; - -#define TYPE_DIRECT_PHOTO_PAGE (direct_photo_page_get_type ()) -#define DIRECT_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage)) -#define DIRECT_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPageClass)) -#define IS_DIRECT_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO_PAGE)) -#define IS_DIRECT_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO_PAGE)) -#define DIRECT_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPageClass)) - -typedef struct _DirectPhotoPage DirectPhotoPage; -typedef struct _DirectPhotoPageClass DirectPhotoPageClass; - -#define TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND (adjust_date_time_photo_command_get_type ()) -#define ADJUST_DATE_TIME_PHOTO_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommand)) -#define ADJUST_DATE_TIME_PHOTO_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommandClass)) -#define IS_ADJUST_DATE_TIME_PHOTO_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND)) -#define IS_ADJUST_DATE_TIME_PHOTO_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND)) -#define ADJUST_DATE_TIME_PHOTO_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_DATE_TIME_PHOTO_COMMAND, AdjustDateTimePhotoCommandClass)) - -typedef struct _AdjustDateTimePhotoCommand AdjustDateTimePhotoCommand; -typedef struct _AdjustDateTimePhotoCommandClass AdjustDateTimePhotoCommandClass; - -#define TYPE_SET_BACKGROUND_PHOTO_DIALOG (set_background_photo_dialog_get_type ()) -#define SET_BACKGROUND_PHOTO_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialog)) -#define SET_BACKGROUND_PHOTO_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialogClass)) -#define IS_SET_BACKGROUND_PHOTO_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG)) -#define IS_SET_BACKGROUND_PHOTO_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_BACKGROUND_PHOTO_DIALOG)) -#define SET_BACKGROUND_PHOTO_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialogClass)) - -typedef struct _SetBackgroundPhotoDialog SetBackgroundPhotoDialog; -typedef struct _SetBackgroundPhotoDialogClass SetBackgroundPhotoDialogClass; - -#define EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL (editing_tools_straighten_tool_get_type ()) -#define EDITING_TOOLS_STRAIGHTEN_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool)) -#define EDITING_TOOLS_STRAIGHTEN_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenToolClass)) -#define EDITING_TOOLS_IS_STRAIGHTEN_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL)) -#define EDITING_TOOLS_IS_STRAIGHTEN_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL)) -#define EDITING_TOOLS_STRAIGHTEN_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenToolClass)) - -typedef struct _EditingToolsStraightenTool EditingToolsStraightenTool; -typedef struct _EditingToolsStraightenToolClass EditingToolsStraightenToolClass; - -#define EDITING_TOOLS_TYPE_CROP_TOOL (editing_tools_crop_tool_get_type ()) -#define EDITING_TOOLS_CROP_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool)) -#define EDITING_TOOLS_CROP_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropToolClass)) -#define EDITING_TOOLS_IS_CROP_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_CROP_TOOL)) -#define EDITING_TOOLS_IS_CROP_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_CROP_TOOL)) -#define EDITING_TOOLS_CROP_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropToolClass)) - -typedef struct _EditingToolsCropTool EditingToolsCropTool; -typedef struct _EditingToolsCropToolClass EditingToolsCropToolClass; - -#define EDITING_TOOLS_TYPE_REDEYE_TOOL (editing_tools_redeye_tool_get_type ()) -#define EDITING_TOOLS_REDEYE_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool)) -#define EDITING_TOOLS_REDEYE_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeToolClass)) -#define EDITING_TOOLS_IS_REDEYE_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_REDEYE_TOOL)) -#define EDITING_TOOLS_IS_REDEYE_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_REDEYE_TOOL)) -#define EDITING_TOOLS_REDEYE_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeToolClass)) - -typedef struct _EditingToolsRedeyeTool EditingToolsRedeyeTool; -typedef struct _EditingToolsRedeyeToolClass EditingToolsRedeyeToolClass; - -#define EDITING_TOOLS_TYPE_ADJUST_TOOL (editing_tools_adjust_tool_get_type ()) -#define EDITING_TOOLS_ADJUST_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool)) -#define EDITING_TOOLS_ADJUST_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustToolClass)) -#define EDITING_TOOLS_IS_ADJUST_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_ADJUST_TOOL)) -#define EDITING_TOOLS_IS_ADJUST_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_ADJUST_TOOL)) -#define EDITING_TOOLS_ADJUST_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustToolClass)) - -typedef struct _EditingToolsAdjustTool EditingToolsAdjustTool; -typedef struct _EditingToolsAdjustToolClass EditingToolsAdjustToolClass; - -#define TYPE_ENHANCE_SINGLE_COMMAND (enhance_single_command_get_type ()) -#define ENHANCE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommand)) -#define ENHANCE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommandClass)) -#define IS_ENHANCE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ENHANCE_SINGLE_COMMAND)) -#define IS_ENHANCE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ENHANCE_SINGLE_COMMAND)) -#define ENHANCE_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommandClass)) - -typedef struct _EnhanceSingleCommand EnhanceSingleCommand; -typedef struct _EnhanceSingleCommandClass EnhanceSingleCommandClass; -#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL))) - -#define TYPE_ADJUST_COLORS_SINGLE_COMMAND (adjust_colors_single_command_get_type ()) -#define ADJUST_COLORS_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommand)) -#define ADJUST_COLORS_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommandClass)) -#define IS_ADJUST_COLORS_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND)) -#define IS_ADJUST_COLORS_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_COLORS_SINGLE_COMMAND)) -#define ADJUST_COLORS_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommandClass)) - -typedef struct _AdjustColorsSingleCommand AdjustColorsSingleCommand; -typedef struct _AdjustColorsSingleCommandClass AdjustColorsSingleCommandClass; -typedef struct _EditingToolsPhotoCanvasPrivate EditingToolsPhotoCanvasPrivate; -typedef struct _EditingHostPageEditingHostCanvasPrivate EditingHostPageEditingHostCanvasPrivate; -#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL))) - -#define TYPE_LIBRARY_PHOTO_PAGE (library_photo_page_get_type ()) -#define LIBRARY_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage)) -#define LIBRARY_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPageClass)) -#define IS_LIBRARY_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_PAGE)) -#define IS_LIBRARY_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_PAGE)) -#define LIBRARY_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPageClass)) - -typedef struct _LibraryPhotoPage LibraryPhotoPage; -typedef struct _LibraryPhotoPageClass LibraryPhotoPageClass; -typedef struct _LibraryPhotoPagePrivate LibraryPhotoPagePrivate; - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define LIBRARY_PHOTO_PAGE_TYPE_LIBRARY_PHOTO_PAGE_VIEW_FILTER (library_photo_page_library_photo_page_view_filter_get_type ()) -#define LIBRARY_PHOTO_PAGE_LIBRARY_PHOTO_PAGE_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_PHOTO_PAGE_TYPE_LIBRARY_PHOTO_PAGE_VIEW_FILTER, LibraryPhotoPageLibraryPhotoPageViewFilter)) -#define LIBRARY_PHOTO_PAGE_LIBRARY_PHOTO_PAGE_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_PHOTO_PAGE_TYPE_LIBRARY_PHOTO_PAGE_VIEW_FILTER, LibraryPhotoPageLibraryPhotoPageViewFilterClass)) -#define LIBRARY_PHOTO_PAGE_IS_LIBRARY_PHOTO_PAGE_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_PHOTO_PAGE_TYPE_LIBRARY_PHOTO_PAGE_VIEW_FILTER)) -#define LIBRARY_PHOTO_PAGE_IS_LIBRARY_PHOTO_PAGE_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_PHOTO_PAGE_TYPE_LIBRARY_PHOTO_PAGE_VIEW_FILTER)) -#define LIBRARY_PHOTO_PAGE_LIBRARY_PHOTO_PAGE_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_PHOTO_PAGE_TYPE_LIBRARY_PHOTO_PAGE_VIEW_FILTER, LibraryPhotoPageLibraryPhotoPageViewFilterClass)) - -typedef struct _LibraryPhotoPageLibraryPhotoPageViewFilter LibraryPhotoPageLibraryPhotoPageViewFilter; -typedef struct _LibraryPhotoPageLibraryPhotoPageViewFilterClass LibraryPhotoPageLibraryPhotoPageViewFilterClass; -enum { - LIBRARY_PHOTO_PAGE_0_PROPERTY, - LIBRARY_PHOTO_PAGE_NUM_PROPERTIES -}; -static GParamSpec* library_photo_page_properties[LIBRARY_PHOTO_PAGE_NUM_PROPERTIES]; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ()) -#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) - -typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; -typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL))) -#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) -#define _injection_group_unref0(var) ((var == NULL) ? NULL : (var = (injection_group_unref (var), NULL))) - -#define TYPE_MULTIPLE_DATA_SOURCE_COMMAND (multiple_data_source_command_get_type ()) -#define MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommand)) -#define MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass)) -#define IS_MULTIPLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND)) -#define IS_MULTIPLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_COMMAND)) -#define MULTIPLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_COMMAND, MultipleDataSourceCommandClass)) - -typedef struct _MultipleDataSourceCommand MultipleDataSourceCommand; -typedef struct _MultipleDataSourceCommandClass MultipleDataSourceCommandClass; - -#define TYPE_SET_RAW_DEVELOPER_COMMAND (set_raw_developer_command_get_type ()) -#define SET_RAW_DEVELOPER_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommand)) -#define SET_RAW_DEVELOPER_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommandClass)) -#define IS_SET_RAW_DEVELOPER_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND)) -#define IS_SET_RAW_DEVELOPER_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_RAW_DEVELOPER_COMMAND)) -#define SET_RAW_DEVELOPER_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_RAW_DEVELOPER_COMMAND, SetRawDeveloperCommandClass)) - -typedef struct _SetRawDeveloperCommand SetRawDeveloperCommand; -typedef struct _SetRawDeveloperCommandClass SetRawDeveloperCommandClass; - -#define TYPE_RATING (rating_get_type ()) - -#define TYPE_FLAGGABLE (flaggable_get_type ()) -#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable)) -#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE)) -#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface)) - -typedef struct _Flaggable Flaggable; -typedef struct _FlaggableIface FlaggableIface; - -#define TYPE_SLIDESHOW_PAGE (slideshow_page_get_type ()) -#define SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPage)) -#define SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDESHOW_PAGE, SlideshowPageClass)) -#define IS_SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDESHOW_PAGE)) -#define IS_SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDESHOW_PAGE)) -#define SLIDESHOW_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPageClass)) - -typedef struct _SlideshowPage SlideshowPage; -typedef struct _SlideshowPageClass SlideshowPageClass; - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; - -#define TYPE_EVENT_PAGE (event_page_get_type ()) -#define EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_PAGE, EventPage)) -#define EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_PAGE, EventPageClass)) -#define IS_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_PAGE)) -#define IS_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_PAGE)) -#define EVENT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_PAGE, EventPageClass)) - -typedef struct _EventPage EventPage; -typedef struct _EventPageClass EventPageClass; - -#define TYPE_TRASH_UNTRASH_PHOTOS_COMMAND (trash_untrash_photos_command_get_type ()) -#define TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommand)) -#define TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass)) -#define IS_TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND)) -#define IS_TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND)) -#define TRASH_UNTRASH_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass)) - -typedef struct _TrashUntrashPhotosCommand TrashUntrashPhotosCommand; -typedef struct _TrashUntrashPhotosCommandClass TrashUntrashPhotosCommandClass; - -#define TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (multiple_data_source_at_once_command_get_type ()) -#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommand)) -#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass)) -#define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND)) -#define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND)) -#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass)) - -typedef struct _MultipleDataSourceAtOnceCommand MultipleDataSourceAtOnceCommand; -typedef struct _MultipleDataSourceAtOnceCommandClass MultipleDataSourceAtOnceCommandClass; - -#define TYPE_FLAG_UNFLAG_COMMAND (flag_unflag_command_get_type ()) -#define FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand)) -#define FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass)) -#define IS_FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAG_UNFLAG_COMMAND)) -#define IS_FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLAG_UNFLAG_COMMAND)) -#define FLAG_UNFLAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass)) - -typedef struct _FlagUnflagCommand FlagUnflagCommand; -typedef struct _FlagUnflagCommandClass FlagUnflagCommandClass; - -#define TYPE_PRINT_MANAGER (print_manager_get_type ()) -#define PRINT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PRINT_MANAGER, PrintManager)) -#define PRINT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PRINT_MANAGER, PrintManagerClass)) -#define IS_PRINT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PRINT_MANAGER)) -#define IS_PRINT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PRINT_MANAGER)) -#define PRINT_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PRINT_MANAGER, PrintManagerClass)) - -typedef struct _PrintManager PrintManager; -typedef struct _PrintManagerClass PrintManagerClass; -#define _print_manager_unref0(var) ((var == NULL) ? NULL : (var = (print_manager_unref (var), NULL))) - -#define TYPE_EXPORT_DIALOG (export_dialog_get_type ()) -#define EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORT_DIALOG, ExportDialog)) -#define EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORT_DIALOG, ExportDialogClass)) -#define IS_EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORT_DIALOG)) -#define IS_EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORT_DIALOG)) -#define EXPORT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORT_DIALOG, ExportDialogClass)) - -typedef struct _ExportDialog ExportDialog; -typedef struct _ExportDialogClass ExportDialogClass; - -#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ()) - -#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ()) - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) -typedef struct _ExportFormatParameters ExportFormatParameters; - -#define TYPE_SET_RATING_SINGLE_COMMAND (set_rating_single_command_get_type ()) -#define SET_RATING_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommand)) -#define SET_RATING_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommandClass)) -#define IS_SET_RATING_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_RATING_SINGLE_COMMAND)) -#define IS_SET_RATING_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_RATING_SINGLE_COMMAND)) -#define SET_RATING_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_RATING_SINGLE_COMMAND, SetRatingSingleCommandClass)) - -typedef struct _SetRatingSingleCommand SetRatingSingleCommand; -typedef struct _SetRatingSingleCommandClass SetRatingSingleCommandClass; -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) - -#define TYPE_TAGS_DIALOG (tags_dialog_get_type ()) -#define TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAGS_DIALOG, TagsDialog)) -#define TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAGS_DIALOG, TagsDialogClass)) -#define IS_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAGS_DIALOG)) -#define IS_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAGS_DIALOG)) -#define TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAGS_DIALOG, TagsDialogClass)) - -typedef struct _TagsDialog TagsDialog; -typedef struct _TagsDialogClass TagsDialogClass; - -#define TYPE_ADD_TAGS_DIALOG (add_tags_dialog_get_type ()) -#define ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialog)) -#define ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass)) -#define IS_ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_DIALOG)) -#define IS_ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_DIALOG)) -#define ADD_TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass)) - -typedef struct _AddTagsDialog AddTagsDialog; -typedef struct _AddTagsDialogClass AddTagsDialogClass; - -#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ()) -#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex)) -#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) -#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX)) -#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX)) -#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) - -typedef struct _HierarchicalTagIndex HierarchicalTagIndex; -typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass; - -#define TYPE_ADD_TAGS_COMMAND (add_tags_command_get_type ()) -#define ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommand)) -#define ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass)) -#define IS_ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_COMMAND)) -#define IS_ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_COMMAND)) -#define ADD_TAGS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass)) - -typedef struct _AddTagsCommand AddTagsCommand; -typedef struct _AddTagsCommandClass AddTagsCommandClass; -#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL))) - -#define TYPE_MODIFY_TAGS_DIALOG (modify_tags_dialog_get_type ()) -#define MODIFY_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialog)) -#define MODIFY_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialogClass)) -#define IS_MODIFY_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MODIFY_TAGS_DIALOG)) -#define IS_MODIFY_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MODIFY_TAGS_DIALOG)) -#define MODIFY_TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MODIFY_TAGS_DIALOG, ModifyTagsDialogClass)) - -typedef struct _ModifyTagsDialog ModifyTagsDialog; -typedef struct _ModifyTagsDialogClass ModifyTagsDialogClass; - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; - -#define TYPE_MODIFY_TAGS_COMMAND (modify_tags_command_get_type ()) -#define MODIFY_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommand)) -#define MODIFY_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommandClass)) -#define IS_MODIFY_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MODIFY_TAGS_COMMAND)) -#define IS_MODIFY_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MODIFY_TAGS_COMMAND)) -#define MODIFY_TAGS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MODIFY_TAGS_COMMAND, ModifyTagsCommandClass)) - -typedef struct _ModifyTagsCommand ModifyTagsCommand; -typedef struct _ModifyTagsCommandClass ModifyTagsCommandClass; -typedef struct _ViewFilterPrivate ViewFilterPrivate; -typedef struct _LibraryPhotoPageLibraryPhotoPageViewFilterPrivate LibraryPhotoPageLibraryPhotoPageViewFilterPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _ZoomBuffer { - GObject parent_instance; - ZoomBufferPrivate * priv; -}; - -struct _ZoomBufferClass { - GObjectClass parent_class; -}; - -typedef enum { - ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_LOADED, - ZOOM_BUFFER_OBJECT_STATE_SOURCE_LOAD_IN_PROGRESS, - ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_TRANSFORMED, - ZOOM_BUFFER_OBJECT_STATE_TRANSFORMED_READY -} ZoomBufferObjectState; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _ZoomState { - Dimensions content_dimensions; - Dimensions viewport_dimensions; - gdouble zoom_factor; - gdouble interpolation_factor; - gdouble min_factor; - gdouble max_factor; - GdkPoint viewport_center; -}; - -struct _ZoomBufferPrivate { - GdkPixbuf* iso_source_image; - GdkPixbuf* reduced_source_image; - GdkPixbuf* iso_transformed_image; - GdkPixbuf* reduced_transformed_image; - GdkPixbuf* preview_image; - Photo* backing_photo; - ZoomBufferObjectState object_state; - GdkPixbuf* demand_transform_cached_pixbuf; - ZoomState demand_transform_zoom_state; - ZoomBufferTransformationJob* demand_transform_job; - Workers* workers; - SinglePhotoPage* parent_page; - gboolean is_interactive_redraw_in_progress; -}; - -typedef enum { - BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100, - BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75, - BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50, - BACKGROUND_JOB_JOB_PRIORITY_LOW = 25, - BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0 -} BackgroundJobJobPriority; - -struct _BackgroundJob { - GTypeInstance parent_instance; - volatile int ref_count; - BackgroundJobPrivate * priv; -}; - -struct _BackgroundJobClass { - GTypeClass parent_class; - void (*finalize) (BackgroundJob *self); - void (*execute) (BackgroundJob* self); - BackgroundJobJobPriority (*get_priority) (BackgroundJob* self); -}; - -struct _ZoomBufferIsoSourceFetchJob { - BackgroundJob parent_instance; - ZoomBufferIsoSourceFetchJobPrivate * priv; - GdkPixbuf* fetched; -}; - -struct _ZoomBufferIsoSourceFetchJobClass { - BackgroundJobClass parent_class; -}; - -typedef enum { - DIRECTION_FORWARD, - DIRECTION_BACKWARD -} Direction; - -typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data); -struct _ZoomBufferTransformationJob { - BackgroundJob parent_instance; - ZoomBufferTransformationJobPrivate * priv; - GdkPixbuf* transformed; -}; - -struct _ZoomBufferTransformationJobClass { - BackgroundJobClass parent_class; -}; - -struct _ZoomBufferIsoSourceFetchJobPrivate { - Photo* to_fetch; -}; - -typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data); -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -typedef enum { - PHOTO_EXCEPTION_NONE = 0, - PHOTO_EXCEPTION_ORIENTATION = 1 << 0, - PHOTO_EXCEPTION_CROP = 1 << 1, - PHOTO_EXCEPTION_REDEYE = 1 << 2, - PHOTO_EXCEPTION_ADJUST = 1 << 3, - PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4, - PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL -} PhotoException; - -typedef enum { - BACKING_FETCH_MODE_SOURCE, - BACKING_FETCH_MODE_BASELINE, - BACKING_FETCH_MODE_MASTER, - BACKING_FETCH_MODE_UNMODIFIED -} BackingFetchMode; - -struct _ZoomBufferTransformationJobPrivate { - GdkPixbuf* to_transform; - PixelTransformer* transformer; - GCancellable* cancellable; -}; - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -typedef enum { - SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF, - SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT, - SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS -} SinglePhotoPageUpdateReason; - -struct _SinglePhotoPage { - Page parent_instance; - SinglePhotoPagePrivate * priv; - GtkDrawingArea* canvas; - GtkViewport* viewport; -}; - -struct _SinglePhotoPageClass { - PageClass parent_class; - gboolean (*is_zoom_supported) (SinglePhotoPage* self); - void (*cancel_zoom) (SinglePhotoPage* self); - void (*save_zoom_state) (SinglePhotoPage* self); - void (*restore_zoom_state) (SinglePhotoPage* self); - ZoomBuffer* (*get_zoom_buffer) (SinglePhotoPage* self); - void (*new_surface) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim); - void (*updated_pixbuf) (SinglePhotoPage* self, GdkPixbuf* pixbuf, SinglePhotoPageUpdateReason reason, Dimensions* old_dim); - void (*paint) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim); - void (*on_previous_photo) (SinglePhotoPage* self); - void (*on_next_photo) (SinglePhotoPage* self); -}; - -struct _EditingHostPage { - SinglePhotoPage parent_instance; - EditingHostPagePrivate * priv; -}; - -struct _EditingHostPageClass { - SinglePhotoPageClass parent_class; - gboolean (*on_zoom_slider_key_press) (EditingHostPage* self, GdkEventKey* event); - void (*on_increase_size) (EditingHostPage* self); - void (*on_decrease_size) (EditingHostPage* self); - void (*photo_changing) (EditingHostPage* self, Photo* new_photo); - DataView* (*create_photo_view) (EditingHostPage* self, DataSource* source); - void (*update_ui) (EditingHostPage* self, gboolean missing); - void (*notify_photo_backing_missing) (EditingHostPage* self, Photo* photo, gboolean missing); - gboolean (*confirm_replace_photo) (EditingHostPage* self, Photo* old_photo, Photo* new_photo); - gboolean (*on_double_click) (EditingHostPage* self, GdkEventButton* event); - GdkPixbuf* (*get_bottom_left_trinket) (EditingHostPage* self, gint scale); - GdkPixbuf* (*get_top_left_trinket) (EditingHostPage* self, gint scale); - GdkPixbuf* (*get_top_right_trinket) (EditingHostPage* self, gint scale); - GdkPixbuf* (*get_bottom_right_trinket) (EditingHostPage* self, gint scale); -}; - -struct _EditingHostPagePrivate { - SourceCollection* sources; - ViewCollection* parent_view; - GdkPixbuf* swapped; - gboolean pixbuf_dirty; - GtkToolButton* rotate_button; - GtkToggleToolButton* crop_button; - GtkToggleToolButton* redeye_button; - GtkToggleToolButton* adjust_button; - GtkToggleToolButton* straighten_button; - GtkToolButton* enhance_button; - GtkScale* zoom_slider; - GtkToolButton* prev_button; - GtkToolButton* next_button; - EditingToolsEditingTool* current_tool; - GtkToggleToolButton* current_editing_toggle; - GdkPixbuf* cancel_editing_pixbuf; - gboolean photo_missing; - PixbufCache* cache; - PixbufCache* master_cache; - DragAndDropHandler* dnd_handler; - gboolean enable_interactive_zoom_refresh; - GdkPoint zoom_pan_start_point; - gboolean is_pan_in_progress; - gdouble saved_slider_val; - ZoomBuffer* zoom_buffer; - GeeHashMap* last_locations; -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -typedef enum { - PIXBUF_CACHE_PHOTO_TYPE_BASELINE, - PIXBUF_CACHE_PHOTO_TYPE_MASTER -} PixbufCachePhotoType; - -typedef gboolean (*PixbufCacheCacheFilter) (Photo* photo, void* user_data); -typedef DataView* (*CreateView) (DataSource* source, void* user_data); -typedef gboolean (*CreateViewPredicate) (DataSource* source, void* user_data); -typedef enum { - ORIENTATION_MIN = 1, - ORIENTATION_TOP_LEFT = 1, - ORIENTATION_TOP_RIGHT = 2, - ORIENTATION_BOTTOM_RIGHT = 3, - ORIENTATION_BOTTOM_LEFT = 4, - ORIENTATION_LEFT_TOP = 5, - ORIENTATION_RIGHT_TOP = 6, - ORIENTATION_RIGHT_BOTTOM = 7, - ORIENTATION_LEFT_BOTTOM = 8, - ORIENTATION_MAX = 8 -} Orientation; - -struct _EditingToolsEditingTool { - GTypeInstance parent_instance; - volatile int ref_count; - EditingToolsEditingToolPrivate * priv; - EditingToolsPhotoCanvas* canvas; - cairo_surface_t* surface; - gchar* name; -}; - -struct _EditingToolsEditingToolClass { - GTypeClass parent_class; - void (*finalize) (EditingToolsEditingTool *self); - void (*activate) (EditingToolsEditingTool* self, EditingToolsPhotoCanvas* canvas); - void (*deactivate) (EditingToolsEditingTool* self); - EditingToolsEditingToolWindow* (*get_tool_window) (EditingToolsEditingTool* self); - GdkPixbuf* (*get_display_pixbuf) (EditingToolsEditingTool* self, Scaling* scaling, Photo* photo, Dimensions* max_dim, GError** error); - void (*on_left_click) (EditingToolsEditingTool* self, gint x, gint y); - void (*on_left_released) (EditingToolsEditingTool* self, gint x, gint y); - void (*on_motion) (EditingToolsEditingTool* self, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (EditingToolsEditingTool* self); - gboolean (*on_keypress) (EditingToolsEditingTool* self, GdkEventKey* event); - void (*paint) (EditingToolsEditingTool* self, cairo_t* ctx); -}; - -typedef enum { - ROTATION_CLOCKWISE, - ROTATION_COUNTERCLOCKWISE, - ROTATION_MIRROR, - ROTATION_UPSIDE_DOWN -} Rotation; - -struct _DateableIface { - GTypeInterface parent_iface; - void (*set_exposure_time) (Dateable* self, time_t target_time); - time_t (*get_exposure_time) (Dateable* self); -}; - -typedef EditingToolsEditingTool* (*EditingToolsEditingToolFactory) (); -struct _EditingToolsPhotoCanvas { - GTypeInstance parent_instance; - volatile int ref_count; - EditingToolsPhotoCanvasPrivate * priv; -}; - -struct _EditingToolsPhotoCanvasClass { - GTypeClass parent_class; - void (*finalize) (EditingToolsPhotoCanvas *self); - void (*repaint) (EditingToolsPhotoCanvas* self); -}; - -struct _EditingHostPageEditingHostCanvas { - EditingToolsPhotoCanvas parent_instance; - EditingHostPageEditingHostCanvasPrivate * priv; -}; - -struct _EditingHostPageEditingHostCanvasClass { - EditingToolsPhotoCanvasClass parent_class; -}; - -struct _EditingHostPageEditingHostCanvasPrivate { - EditingHostPage* host_page; -}; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _LibraryPhotoPage { - EditingHostPage parent_instance; - LibraryPhotoPagePrivate * priv; -}; - -struct _LibraryPhotoPageClass { - EditingHostPageClass parent_class; - void (*developer_changed) (LibraryPhotoPage* self, RawDeveloper rd); -}; - -struct _LibraryPhotoPagePrivate { - CollectionPage* return_page; - gboolean return_to_collection_on_release; - LibraryPhotoPageLibraryPhotoPageViewFilter* filter; - GtkMenu* context_menu; -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -struct _FlaggableIface { - GTypeInterface parent_iface; - gboolean (*is_flagged) (Flaggable* self); - void (*mark_flagged) (Flaggable* self); - void (*mark_unflagged) (Flaggable* self); -}; - -typedef enum { - EXPORT_FORMAT_MODE_UNMODIFIED, - EXPORT_FORMAT_MODE_CURRENT, - EXPORT_FORMAT_MODE_SPECIFIED, - EXPORT_FORMAT_MODE_LAST -} ExportFormatMode; - -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -struct _ExportFormatParameters { - ExportFormatMode mode; - PhotoFileFormat specified_format; - JpegQuality quality; - gboolean export_metadata; -}; - -struct _ViewFilter { - GTypeInstance parent_instance; - volatile int ref_count; - ViewFilterPrivate * priv; -}; - -struct _ViewFilterClass { - GTypeClass parent_class; - void (*finalize) (ViewFilter *self); - gboolean (*predicate) (ViewFilter* self, DataView* view); - void (*refresh) (ViewFilter* self); -}; - -struct _LibraryPhotoPageLibraryPhotoPageViewFilter { - ViewFilter parent_instance; - LibraryPhotoPageLibraryPhotoPageViewFilterPrivate * priv; -}; - -struct _LibraryPhotoPageLibraryPhotoPageViewFilterClass { - ViewFilterClass parent_class; -}; - - -static gpointer zoom_buffer_parent_class = NULL; -static gpointer zoom_buffer_iso_source_fetch_job_parent_class = NULL; -static gpointer zoom_buffer_transformation_job_parent_class = NULL; -static gpointer editing_host_page_parent_class = NULL; -static gpointer editing_host_page_editing_host_canvas_parent_class = NULL; -static gpointer library_photo_page_parent_class = NULL; -extern LibraryPhotoSourceCollection* library_photo_global; -static gpointer library_photo_page_library_photo_page_view_filter_parent_class = NULL; - -GType zoom_buffer_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -static GType zoom_buffer_object_state_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -GType zoom_state_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -ZoomState* zoom_state_dup (const ZoomState* self); -void zoom_state_free (ZoomState* self); -gpointer background_job_ref (gpointer instance); -void background_job_unref (gpointer instance); -GParamSpec* param_spec_background_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_background_job (GValue* value, - gpointer v_object); -void value_take_background_job (GValue* value, - gpointer v_object); -gpointer value_get_background_job (const GValue* value); -GType background_job_get_type (void) G_GNUC_CONST; -static GType zoom_buffer_transformation_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -gpointer workers_ref (gpointer instance); -void workers_unref (gpointer instance); -GParamSpec* param_spec_workers (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_workers (GValue* value, - gpointer v_object); -void value_take_workers (GValue* value, - gpointer v_object); -gpointer value_get_workers (const GValue* value); -GType workers_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType single_photo_page_get_type (void) G_GNUC_CONST; -#define ZOOM_BUFFER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ZOOM_BUFFER, ZoomBufferPrivate)) -#define ZOOM_BUFFER_MEGAPIXEL 1048576 -#define ZOOM_BUFFER_USE_REDUCED_THRESHOLD (((gint) 2.0) * ZOOM_BUFFER_MEGAPIXEL) -ZoomBuffer* zoom_buffer_new (SinglePhotoPage* parent_page, - Photo* backing_photo, - GdkPixbuf* preview_image); -ZoomBuffer* zoom_buffer_construct (GType object_type, - SinglePhotoPage* parent_page, - Photo* backing_photo, - GdkPixbuf* preview_image); -Workers* workers_new (guint max_threads, - gboolean exclusive); -Workers* workers_construct (GType object_type, - guint max_threads, - gboolean exclusive); -static void zoom_buffer_on_iso_source_fetch_complete (ZoomBuffer* self, - BackgroundJob* job); -static GType zoom_buffer_iso_source_fetch_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -GType background_job_job_priority_get_type (void) G_GNUC_CONST; -GType direction_get_type (void) G_GNUC_CONST; -void single_photo_page_repaint (SinglePhotoPage* self, - Direction* direction); -PixelTransformer* photo_get_pixel_transformer (Photo* self); -static void zoom_buffer_on_iso_transformation_complete (ZoomBuffer* self, - BackgroundJob* job); -static void _zoom_buffer_on_iso_transformation_complete_completion_callback (BackgroundJob* job, - gpointer self); -static ZoomBufferTransformationJob* zoom_buffer_transformation_job_new (ZoomBuffer* owner, - GdkPixbuf* to_transform, - PixelTransformer* transformer, - CompletionCallback completion_callback, - void* completion_callback_target, - GCancellable* cancellable); -static ZoomBufferTransformationJob* zoom_buffer_transformation_job_construct (GType object_type, - ZoomBuffer* owner, - GdkPixbuf* to_transform, - PixelTransformer* transformer, - CompletionCallback completion_callback, - void* completion_callback_target, - GCancellable* cancellable); -void workers_enqueue (Workers* self, - BackgroundJob* job); -static void zoom_buffer_on_demand_transform_complete (ZoomBuffer* self, - BackgroundJob* job); -static GdkPixbuf* zoom_buffer_get_view_projection_pixbuf (ZoomBuffer* self, - ZoomState* zoom_state, - GdkPixbuf* iso_pixbuf, - GdkPixbuf* reduced_pixbuf); -void zoom_state_get_viewing_rectangle_wrt_content (ZoomState *self, - GdkRectangle* result); -void zoom_state_get_viewing_rectangle_projection (ZoomState *self, - GdkPixbuf* for_pixbuf, - GdkRectangle* result); -gdouble zoom_state_get_zoom_factor (ZoomState *self); -static GdkPixbuf* zoom_buffer_get_zoomed_image_source_not_transformed (ZoomBuffer* self, - ZoomState* zoom_state); -gboolean zoom_state_equals (ZoomState *self, - ZoomState* other); -GdkPixbuf* zoom_buffer_get_zoom_preview_image_internal (ZoomBuffer* self, - ZoomState* zoom_state); -void background_job_cancel (BackgroundJob* self); -static void _zoom_buffer_on_demand_transform_complete_completion_callback (BackgroundJob* job, - gpointer self); -static void _zoom_buffer_on_iso_source_fetch_complete_completion_callback (BackgroundJob* job, - gpointer self); -static ZoomBufferIsoSourceFetchJob* zoom_buffer_iso_source_fetch_job_new (ZoomBuffer* owner, - Photo* to_fetch, - CompletionCallback completion_callback, - void* completion_callback_target); -static ZoomBufferIsoSourceFetchJob* zoom_buffer_iso_source_fetch_job_construct (GType object_type, - ZoomBuffer* owner, - Photo* to_fetch, - CompletionCallback completion_callback, - void* completion_callback_target); -Photo* zoom_buffer_get_backing_photo (ZoomBuffer* self); -void zoom_buffer_update_preview_image (ZoomBuffer* self, - GdkPixbuf* preview_image); -void zoom_buffer_flush_demand_cache (ZoomBuffer* self, - ZoomState* initial_zoom_state); -GdkPixbuf* zoom_buffer_get_zoomed_image (ZoomBuffer* self, - ZoomState* zoom_state); -gdouble zoom_state_get_interpolation_factor (ZoomState *self); -GdkPixbuf* zoom_buffer_get_zoom_preview_image (ZoomBuffer* self, - ZoomState* zoom_state); -#define ZOOM_BUFFER_ISO_SOURCE_FETCH_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB, ZoomBufferIsoSourceFetchJobPrivate)) -gpointer abstract_semaphore_ref (gpointer instance); -void abstract_semaphore_unref (gpointer instance); -GParamSpec* param_spec_abstract_semaphore (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_abstract_semaphore (GValue* value, - gpointer v_object); -void value_take_abstract_semaphore (GValue* value, - gpointer v_object); -gpointer value_get_abstract_semaphore (const GValue* value); -GType abstract_semaphore_get_type (void) G_GNUC_CONST; -BackgroundJob* background_job_construct (GType object_type, - GObject* owner, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target, - AbstractSemaphore* completion_semaphore); -static void zoom_buffer_iso_source_fetch_job_real_execute (BackgroundJob* base); -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -GType photo_exception_get_type (void) G_GNUC_CONST; -GType backing_fetch_mode_get_type (void) G_GNUC_CONST; -GdkPixbuf* photo_get_pixbuf_with_options (Photo* self, - Scaling* scaling, - PhotoException exceptions, - BackingFetchMode fetch_mode, - GError** error); -void scaling_for_original (Scaling* result); -static void zoom_buffer_iso_source_fetch_job_finalize (BackgroundJob * obj); -#define ZOOM_BUFFER_TRANSFORMATION_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, ZoomBufferTransformationJobPrivate)) -static void zoom_buffer_transformation_job_real_execute (BackgroundJob* base); -static void zoom_buffer_transformation_job_finalize (BackgroundJob * obj); -static void zoom_buffer_finalize (GObject * obj); -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType single_photo_page_update_reason_get_type (void) G_GNUC_CONST; -GType editing_host_page_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -gpointer editing_tools_editing_tool_ref (gpointer instance); -void editing_tools_editing_tool_unref (gpointer instance); -GParamSpec* editing_tools_param_spec_editing_tool (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void editing_tools_value_set_editing_tool (GValue* value, - gpointer v_object); -void editing_tools_value_take_editing_tool (GValue* value, - gpointer v_object); -gpointer editing_tools_value_get_editing_tool (const GValue* value); -GType editing_tools_editing_tool_get_type (void) G_GNUC_CONST; -GType pixbuf_cache_get_type (void) G_GNUC_CONST; -gpointer drag_and_drop_handler_ref (gpointer instance); -void drag_and_drop_handler_unref (gpointer instance); -GParamSpec* param_spec_drag_and_drop_handler (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_drag_and_drop_handler (GValue* value, - gpointer v_object); -void value_take_drag_and_drop_handler (GValue* value, - gpointer v_object); -gpointer value_get_drag_and_drop_handler (const GValue* value); -GType drag_and_drop_handler_get_type (void) G_GNUC_CONST; -#define EDITING_HOST_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EDITING_HOST_PAGE, EditingHostPagePrivate)) -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -static void editing_host_page_on_photos_altered (EditingHostPage* self, - GeeMap* map); -static void _editing_host_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -ViewCollection* page_get_view (Page* self); -static void editing_host_page_on_view_contents_ordering_altered (EditingHostPage* self); -static void _editing_host_page_on_view_contents_ordering_altered_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self); -static void _editing_host_page_on_view_contents_ordering_altered_data_collection_ordering_changed (DataCollection* _sender, - gpointer self); -#define RESOURCES_PREVIOUS_LABEL _ ("_Previous") -#define RESOURCES_NEXT_LABEL _ ("_Next") -#define EDITING_HOST_PAGE_TRINKET_SCALE 20 -#define EDITING_HOST_PAGE_TRINKET_PADDING 1 -#define EDITING_HOST_PAGE_ZOOM_INCREMENT_SIZE 0.1 -#define EDITING_HOST_PAGE_PAN_INCREMENT_SIZE 64 -#define EDITING_HOST_PAGE_TOOL_WINDOW_SEPARATOR 8 -#define EDITING_HOST_PAGE_PIXBUF_CACHE_COUNT 5 -#define EDITING_HOST_PAGE_ORIGINAL_PIXBUF_CACHE_COUNT 5 -EditingHostPage* editing_host_page_construct (GType object_type, - SourceCollection* sources, - const gchar* name); -SinglePhotoPage* single_photo_page_construct (GType object_type, - const gchar* page_name, - gboolean scale_up_to_viewport); -static void editing_host_page_on_viewport_resized (EditingHostPage* self); -static void _editing_host_page_on_viewport_resized_gtk_widget_size_allocate (GtkWidget* _sender, - GtkAllocation* allocation, - gpointer self); -GtkToolbar* page_get_toolbar (Page* self); -#define RESOURCES_ROTATE_CW_LABEL _ ("Rotate") -#define RESOURCES_CLOCKWISE "object-rotate-right" -#define RESOURCES_ROTATE_CW_TOOLTIP _ ("Rotate the photos right (press Ctrl to rotate left)") -void editing_host_page_on_rotate_clockwise (EditingHostPage* self); -static void _editing_host_page_on_rotate_clockwise_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self); -#define RESOURCES_CROP_LABEL _ ("Crop") -#define RESOURCES_CROP_TOOLTIP _ ("Crop the photo’s size") -static void editing_host_page_on_crop_toggled (EditingHostPage* self); -static void _editing_host_page_on_crop_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, - gpointer self); -#define RESOURCES_STRAIGHTEN_LABEL _ ("Straighten") -#define RESOURCES_STRAIGHTEN_TOOLTIP _ ("Straighten the photo") -static void editing_host_page_on_straighten_toggled (EditingHostPage* self); -static void _editing_host_page_on_straighten_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, - gpointer self); -#define RESOURCES_RED_EYE_LABEL _ ("Red-eye") -#define RESOURCES_RED_EYE_TOOLTIP _ ("Reduce or eliminate any red-eye effects in the photo") -static void editing_host_page_on_redeye_toggled (EditingHostPage* self); -static void _editing_host_page_on_redeye_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, - gpointer self); -#define RESOURCES_ADJUST "image-adjust" -#define RESOURCES_ADJUST_LABEL _ ("Adjust") -#define RESOURCES_ADJUST_TOOLTIP _ ("Adjust the photo’s color and tone") -static void editing_host_page_on_adjust_toggled (EditingHostPage* self); -static void _editing_host_page_on_adjust_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, - gpointer self); -#define RESOURCES_ENHANCE_LABEL _ ("Enhance") -#define RESOURCES_ENHANCE "shotwell-auto-enhance" -#define RESOURCES_ENHANCE_TOOLTIP _ ("Automatically improve the photo’s appearance") -void editing_host_page_on_enhance (EditingHostPage* self); -static void _editing_host_page_on_enhance_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self); -GdkPixbuf* resources_load_icon (const gchar* name, - gint scale); -#define RESOURCES_ICON_ZOOM_OUT "zoom-out.png" -#define RESOURCES_ICON_ZOOM_SCALE 16 -static gboolean editing_host_page_on_zoom_out_pressed (EditingHostPage* self, - GdkEventButton* event); -static gboolean _editing_host_page_on_zoom_out_pressed_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self); -static void editing_host_page_on_zoom_slider_value_changed (EditingHostPage* self); -static void _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed (GtkRange* _sender, - gpointer self); -static gboolean editing_host_page_on_zoom_slider_drag_begin (EditingHostPage* self, - GdkEventButton* event); -static gboolean _editing_host_page_on_zoom_slider_drag_begin_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self); -static gboolean editing_host_page_on_zoom_slider_drag_end (EditingHostPage* self, - GdkEventButton* event); -static gboolean _editing_host_page_on_zoom_slider_drag_end_gtk_widget_button_release_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self); -gboolean editing_host_page_on_zoom_slider_key_press (EditingHostPage* self, - GdkEventKey* event); -static gboolean _editing_host_page_on_zoom_slider_key_press_gtk_widget_key_press_event (GtkWidget* _sender, - GdkEventKey* event, - gpointer self); -#define RESOURCES_ICON_ZOOM_IN "zoom-in.png" -static gboolean editing_host_page_on_zoom_in_pressed (EditingHostPage* self, - GdkEventButton* event); -static gboolean _editing_host_page_on_zoom_in_pressed_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self); -void single_photo_page_on_previous_photo (SinglePhotoPage* self); -static void _single_photo_page_on_previous_photo_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self); -void single_photo_page_on_next_photo (SinglePhotoPage* self); -static void _single_photo_page_on_next_photo_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self); -void single_photo_page_get_zoom_state (SinglePhotoPage* self, - ZoomState* result); -void zoom_state_init_rescale (ZoomState *self, - ZoomState* existing, - gdouble new_slider_val); -void single_photo_page_on_interactive_zoom (SinglePhotoPage* self, - ZoomState* interactive_zoom_state); -gboolean zoom_state_is_default (ZoomState *self); -void single_photo_page_set_zoom_state (SinglePhotoPage* self, - ZoomState* zoom_state); -void single_photo_page_cancel_zoom (SinglePhotoPage* self); -static void editing_host_page_update_cursor_for_zoom_context (EditingHostPage* self); -GtkWindow* page_get_container (Page* self); -void fullscreen_window_disable_toolbar_dismissal (FullscreenWindow* self); -void fullscreen_window_update_toolbar_dismissal (FullscreenWindow* self); -void editing_host_page_snap_zoom_to_min (EditingHostPage* self); -void editing_host_page_snap_zoom_to_max (EditingHostPage* self); -static void editing_host_page_get_cursor_wrt_viewport (EditingHostPage* self, - GdkEventScroll* event, - GdkPoint* result); -void zoom_state_get_viewing_rectangle_wrt_screen (ZoomState *self, - GdkRectangle* result); -static void editing_host_page_get_cursor_wrt_viewport_center (EditingHostPage* self, - GdkEventScroll* event, - GdkPoint* result); -void subtract_points (GdkPoint* p1, - GdkPoint* p2, - GdkPoint* result); -static void editing_host_page_get_iso_pixel_under_cursor (EditingHostPage* self, - GdkEventScroll* event, - GdkPoint* result); -void scale_point (GdkPoint* p, - gdouble factor, - GdkPoint* result); -void zoom_state_get_viewport_center (ZoomState *self, - GdkPoint* result); -void add_points (GdkPoint* p1, - GdkPoint* p2, - GdkPoint* result); -static gdouble editing_host_page_snap_interpolation_factor (EditingHostPage* self, - gdouble interp); -static gdouble editing_host_page_adjust_interpolation_factor (EditingHostPage* self, - gdouble adjustment); -static void editing_host_page_zoom_about_event_cursor_point (EditingHostPage* self, - GdkEventScroll* event, - gdouble zoom_increment); -gboolean zoom_state_is_min (ZoomState *self); -void zoom_state_init_pan (ZoomState *self, - ZoomState* existing, - GdkPoint* new_viewport_center); -void editing_host_page_snap_zoom_to_isomorphic (EditingHostPage* self); -void zoom_state_init_rescale_to_isomorphic (ZoomState *self, - ZoomState* existing); -static gboolean editing_host_page_real_on_zoom_slider_key_press (EditingHostPage* self, - GdkEventKey* event); -void page_activate_action (Page* self, - const gchar* name); -void editing_host_page_on_increase_size (EditingHostPage* self); -static void editing_host_page_real_on_increase_size (EditingHostPage* self); -void editing_host_page_on_decrease_size (EditingHostPage* self); -static void editing_host_page_real_on_decrease_size (EditingHostPage* self); -static void editing_host_page_real_save_zoom_state (SinglePhotoPage* base); -void single_photo_page_save_zoom_state (SinglePhotoPage* self); -static ZoomBuffer* editing_host_page_real_get_zoom_buffer (SinglePhotoPage* base); -static gboolean editing_host_page_real_on_mousewheel_up (Page* base, - GdkEventScroll* event); -gboolean zoom_state_is_max (ZoomState *self); -static gboolean editing_host_page_real_on_mousewheel_down (Page* base, - GdkEventScroll* event); -static void editing_host_page_real_restore_zoom_state (SinglePhotoPage* base); -void single_photo_page_restore_zoom_state (SinglePhotoPage* self); -static gboolean editing_host_page_real_is_zoom_supported (SinglePhotoPage* base); -static void editing_host_page_real_set_container (Page* base, - GtkWindow* container); -void page_set_container (Page* self, - GtkWindow* container); -DragAndDropHandler* drag_and_drop_handler_new (Page* page); -DragAndDropHandler* drag_and_drop_handler_construct (GType object_type, - Page* page); -ViewCollection* editing_host_page_get_parent_view (EditingHostPage* self); -gboolean editing_host_page_has_photo (EditingHostPage* self); -Photo* editing_host_page_get_photo (EditingHostPage* self); -gint view_collection_get_selected_count (ViewCollection* self); -DataView* view_collection_get_selected_at (ViewCollection* self, - gint index); -DataSource* data_view_get_source (DataView* self); -void editing_host_page_photo_changing (EditingHostPage* self, - Photo* new_photo); -static void editing_host_page_real_photo_changing (EditingHostPage* self, - Photo* new_photo); -GType photo_file_format_get_type (void) G_GNUC_CONST; -PhotoFileFormat photo_get_file_format (Photo* self); -void editing_host_page_set_photo_missing (EditingHostPage* self, - gboolean missing); -GFile* media_source_get_file (MediaSource* self); -void editing_host_page_update_ui (EditingHostPage* self, - gboolean missing); -static void editing_host_page_set_photo (EditingHostPage* self, - Photo* photo); -DataView* view_collection_get_view_for_source (ViewCollection* self, - DataSource* source); -void view_collection_unselect_all (ViewCollection* self); -GType marker_get_type (void) G_GNUC_CONST; -Marker* data_collection_mark (DataCollection* self, - DataObject* object); -void view_collection_select_marked (ViewCollection* self, - Marker* marker); -DataView* view_collection_get_view_for_source_filtered (ViewCollection* self, - DataSource* source); -static void editing_host_page_real_realize (GtkWidget* base); -static void editing_host_page_rebuild_caches (EditingHostPage* self, - const gchar* caller); -static void editing_host_page_real_switched_to (Page* base); -void page_switched_to (Page* self); -static void editing_host_page_replace_photo (EditingHostPage* self, - Photo* new_photo); -static void editing_host_page_real_switching_from (Page* base); -void page_switching_from (Page* self); -GType command_get_type (void) G_GNUC_CONST; -static void editing_host_page_deactivate_tool (EditingHostPage* self, - Command* command, - GdkPixbuf* new_pixbuf, - Dimensions* new_max_dim, - gboolean needs_improvement); -void dimensions_init (Dimensions *self, - gint width, - gint height); -void data_collection_clear (DataCollection* self); -static void editing_host_page_real_switching_to_fullscreen (Page* base, - FullscreenWindow* fsw); -void page_switching_to_fullscreen (Page* self, - FullscreenWindow* fsw); -Page* page_window_get_current_page (PageWindow* self); -static void editing_host_page_on_selection_changed (EditingHostPage* self, - GeeIterable* selected); -static void _editing_host_page_on_selection_changed_view_collection_items_selected (ViewCollection* _sender, - GeeIterable* selected, - gpointer self); -static void editing_host_page_real_returning_from_fullscreen (Page* base, - FullscreenWindow* fsw); -void page_returning_from_fullscreen (Page* self, - FullscreenWindow* fsw); -void editing_host_page_enable_rotate (EditingHostPage* self, - gboolean should_enable); -void single_photo_page_get_canvas_scaling (SinglePhotoPage* self, - Scaling* result); -void pixbuf_cache_get_scaling (PixbufCache* self, - Scaling* result); -gboolean scaling_equals (Scaling *self, - Scaling* scaling); -gchar* scaling_to_string (Scaling *self); -static void editing_host_page_on_pixbuf_fetched (EditingHostPage* self, - Photo* photo, - GdkPixbuf* pixbuf, - GError* err); -static void _editing_host_page_on_pixbuf_fetched_pixbuf_cache_fetched (PixbufCache* _sender, - Photo* photo, - GdkPixbuf* pixbuf, - GError* err, - gpointer self); -void pixbuf_cache_cancel_all (PixbufCache* self); -GType pixbuf_cache_photo_type_get_type (void) G_GNUC_CONST; -PixbufCache* pixbuf_cache_new (SourceCollection* sources, - PixbufCachePhotoType type, - Scaling* scaling, - gint max_count, - PixbufCacheCacheFilter filter, - void* filter_target); -PixbufCache* pixbuf_cache_construct (GType object_type, - SourceCollection* sources, - PixbufCachePhotoType type, - Scaling* scaling, - gint max_count, - PixbufCacheCacheFilter filter, - void* filter_target); -static gboolean editing_host_page_master_cache_filter (EditingHostPage* self, - Photo* photo); -static gboolean _editing_host_page_master_cache_filter_pixbuf_cache_cache_filter (Photo* photo, - gpointer self); -static void editing_host_page_refresh_caches (EditingHostPage* self, - const gchar* caller); -gchar* data_object_to_string (DataObject* self); -static void editing_host_page_prefetch_neighbors (EditingHostPage* self, - ViewCollection* controller, - Photo* photo); -gboolean photo_has_transformations (Photo* self); -gboolean photo_has_editable (Photo* self); -gboolean data_source_equals (DataSource* self, - DataSource* source); -void media_source_get_dimensions (MediaSource* self, - PhotoException disallowed_steps, - Dimensions* result); -GdkPixbuf* editing_tools_editing_tool_get_display_pixbuf (EditingToolsEditingTool* self, - Scaling* scaling, - Photo* photo, - Dimensions* max_dim, - GError** error); -void single_photo_page_set_pixbuf (SinglePhotoPage* self, - GdkPixbuf* unscaled, - Dimensions* max_dim, - Direction* direction); -void editing_host_page_notify_photo_backing_missing (EditingHostPage* self, - Photo* photo, - gboolean missing); -GType pixbuf_cache_pixbuf_cache_batch_get_type (void) G_GNUC_CONST; -PixbufCachePixbufCacheBatch* pixbuf_cache_pixbuf_cache_batch_new (void); -PixbufCachePixbufCacheBatch* pixbuf_cache_pixbuf_cache_batch_construct (GType object_type); -gboolean view_collection_get_immediate_neighbors (ViewCollection* self, - DataSource* home, - DataSource* * next, - DataSource* * prev, - const gchar* type_selector); -#define PHOTO_TYPENAME "thumb" -GeeSet* view_collection_get_extended_neighbors (ViewCollection* self, - DataSource* home, - const gchar* typename); -void pixbuf_cache_prefetch_batch (PixbufCache* self, - PixbufCachePixbufCacheBatch* batch, - gboolean force); -static void editing_host_page_cancel_prefetch_neighbors (EditingHostPage* self, - ViewCollection* old_controller, - Photo* old_photo, - ViewCollection* new_controller, - Photo* new_photo); -void pixbuf_cache_drop (PixbufCache* self, - Photo* photo); -DataView* editing_host_page_create_photo_view (EditingHostPage* self, - DataSource* source); -static DataView* editing_host_page_real_create_photo_view (EditingHostPage* self, - DataSource* source); -PhotoView* photo_view_new (PhotoSource* source); -PhotoView* photo_view_construct (GType object_type, - PhotoSource* source); -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType photo_view_get_type (void) G_GNUC_CONST; -static gboolean editing_host_page_is_photo (EditingHostPage* self, - DataSource* source); -void editing_host_page_display_copy_of (EditingHostPage* self, - ViewCollection* controller, - Photo* starting_photo); -void view_collection_copy_into (ViewCollection* self, - ViewCollection* to_copy, - CreateView copying_ctor, - void* copying_ctor_target, - CreateViewPredicate should_copy, - void* should_copy_target); -static DataView* _editing_host_page_create_photo_view_create_view (DataSource* source, - gpointer self); -static gboolean _editing_host_page_is_photo_create_view_predicate (DataSource* source, - gpointer self); -void editing_host_page_display_mirror_of (EditingHostPage* self, - ViewCollection* controller, - Photo* starting_photo); -void view_collection_mirror (ViewCollection* self, - ViewCollection* to_mirror, - CreateView mirroring_ctor, - void* mirroring_ctor_target, - CreateViewPredicate should_mirror, - void* should_mirror_target); -static void editing_host_page_real_update_ui (EditingHostPage* self, - gboolean missing); -static void editing_host_page_real_notify_photo_backing_missing (EditingHostPage* self, - Photo* photo, - gboolean missing); -static void editing_host_page_draw_message (EditingHostPage* self, - const gchar* message); -void single_photo_page_paint_text (SinglePhotoPage* self, - PangoLayout* pango_layout, - gint x, - gint y); -GdkPixbuf* media_source_get_preview_pixbuf (MediaSource* self, - Scaling* scaling, - GError** error); -gboolean editing_host_page_get_photo_missing (EditingHostPage* self); -gboolean editing_host_page_confirm_replace_photo (EditingHostPage* self, - Photo* old_photo, - Photo* new_photo); -static gboolean editing_host_page_real_confirm_replace_photo (EditingHostPage* self, - Photo* old_photo, - Photo* new_photo); -static GdkPixbuf* editing_host_page_get_zoom_pixbuf (EditingHostPage* self, - Photo* new_photo); -GdkPixbuf* pixbuf_cache_get_ready_pixbuf (PixbufCache* self, - Photo* photo); -GdkPixbuf* get_placeholder_pixbuf (void); -GdkPixbuf* scaling_perform_on_pixbuf (Scaling *self, - GdkPixbuf* pixbuf, - GdkInterpType interp, - gboolean scale_up); -void page_set_page_name (Page* self, - const gchar* page_name); -gchar* data_object_get_name (DataObject* self); -static void editing_host_page_quick_update_pixbuf (EditingHostPage* self); -static void editing_host_page_real_cancel_zoom (SinglePhotoPage* base); -void single_photo_page_get_surface_dim (SinglePhotoPage* self, - Dimensions* result); -void zoom_state_init (ZoomState *self, - Dimensions* content_dimensions, - Dimensions* viewport_dimensions, - gdouble slider_val, - GdkPoint* viewport_center); -void page_set_page_cursor (Page* self, - GdkCursorType cursor_type); -void pixbuf_cache_prefetch (PixbufCache* self, - Photo* photo, - BackgroundJobJobPriority priority, - gboolean force); -static gboolean editing_host_page_update_pixbuf (EditingHostPage* self); -static void editing_host_page_real_on_resize (Page* base, - GdkRectangle* rect); -void page_on_resize (Page* self, - GdkRectangle* rect); -static void editing_host_page_track_tool_window (EditingHostPage* self); -static void editing_host_page_real_on_resize_finished (Page* base, - GdkRectangle* rect); -static void editing_host_page_real_update_actions (Page* base, - gint selected_count, - gint count); -gint view_collection_get_sources_of_type_count (ViewCollection* self, - GType t); -gboolean photo_check_can_rotate (Photo* self); -gboolean editing_host_page_is_rotate_available (EditingHostPage* self, - Photo* photo); -gboolean editing_tools_crop_tool_is_available (Photo* photo, - Scaling* scaling); -gboolean editing_tools_redeye_tool_is_available (Photo* photo, - Scaling* scaling); -gboolean editing_tools_adjust_tool_is_available (Photo* photo, - Scaling* scaling); -gboolean editing_host_page_is_enhance_available (EditingHostPage* self, - Photo* photo); -gboolean editing_tools_straighten_tool_is_available (Photo* photo, - Scaling* scaling); -void page_update_actions (Page* self, - gint selected_count, - gint count); -static gboolean editing_host_page_real_on_shift_pressed (Page* base, - GdkEventKey* event); -gboolean page_get_ctrl_pressed (Page* self); -gboolean page_get_alt_pressed (Page* self); -static void editing_host_page_swap_in_original (EditingHostPage* self); -gboolean page_on_shift_pressed (Page* self, - GdkEventKey* event); -static gboolean editing_host_page_real_on_shift_released (Page* base, - GdkEventKey* event); -static void editing_host_page_swap_out_original (EditingHostPage* self); -gboolean page_on_shift_released (Page* self, - GdkEventKey* event); -static gboolean editing_host_page_real_on_alt_pressed (Page* base, - GdkEventKey* event); -gboolean page_on_alt_pressed (Page* self, - GdkEventKey* event); -static gboolean editing_host_page_real_on_alt_released (Page* base, - GdkEventKey* event); -gboolean page_get_shift_pressed (Page* self); -gboolean page_on_alt_released (Page* self, - GdkEventKey* event); -GdkPixbuf* photo_get_prefetched_copy (Photo* self, - GError** error); -GType orientation_get_type (void) G_GNUC_CONST; -Orientation photo_get_original_orientation (Photo* self); -GdkPixbuf* orientation_rotate_pixbuf (Orientation self, - GdkPixbuf* pixbuf); -GdkPixbuf* single_photo_page_get_unscaled_pixbuf (SinglePhotoPage* self); -void photo_get_master_dimensions (Photo* self, - Dimensions* result); -static void editing_host_page_activate_tool (EditingHostPage* self, - EditingToolsEditingTool* tool); -gpointer editing_tools_photo_canvas_ref (gpointer instance); -void editing_tools_photo_canvas_unref (gpointer instance); -GParamSpec* editing_tools_param_spec_photo_canvas (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void editing_tools_value_set_photo_canvas (GValue* value, - gpointer v_object); -void editing_tools_value_take_photo_canvas (GValue* value, - gpointer v_object); -gpointer editing_tools_value_get_photo_canvas (const GValue* value); -GType editing_tools_photo_canvas_get_type (void) G_GNUC_CONST; -static EditingHostPageEditingHostCanvas* editing_host_page_editing_host_canvas_new (EditingHostPage* host_page); -static EditingHostPageEditingHostCanvas* editing_host_page_editing_host_canvas_construct (GType object_type, - EditingHostPage* host_page); -static GType editing_host_page_editing_host_canvas_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -void editing_tools_editing_tool_activate (EditingToolsEditingTool* self, - EditingToolsPhotoCanvas* canvas); -static void editing_host_page_place_tool_window (EditingHostPage* self); -GType editing_tools_editing_tool_window_get_type (void) G_GNUC_CONST; -EditingToolsEditingToolWindow* editing_tools_editing_tool_get_tool_window (EditingToolsEditingTool* self); -gboolean editing_tools_editing_tool_window_has_user_moved (EditingToolsEditingToolWindow* self); -void editing_tools_editing_tool_deactivate (EditingToolsEditingTool* self); -static void editing_host_page_on_tool_activated (EditingHostPage* self); -static void _editing_host_page_on_tool_activated_editing_tools_editing_tool_activated (EditingToolsEditingTool* _sender, - gpointer self); -static void editing_host_page_on_tool_deactivated (EditingHostPage* self); -static void _editing_host_page_on_tool_deactivated_editing_tools_editing_tool_deactivated (EditingToolsEditingTool* _sender, - gpointer self); -static void editing_host_page_on_tool_applied (EditingHostPage* self, - Command* command, - GdkPixbuf* new_pixbuf, - Dimensions* new_max_dim, - gboolean needs_improvement); -static void _editing_host_page_on_tool_applied_editing_tools_editing_tool_applied (EditingToolsEditingTool* _sender, - Command* command, - GdkPixbuf* new_pixbuf, - Dimensions* new_max_dim, - gboolean needs_improvement, - gpointer self); -static void editing_host_page_on_tool_cancelled (EditingHostPage* self); -static void _editing_host_page_on_tool_cancelled_editing_tools_editing_tool_cancelled (EditingToolsEditingTool* _sender, - gpointer self); -static void editing_host_page_on_tool_aborted (EditingHostPage* self); -static void _editing_host_page_on_tool_aborted_editing_tools_editing_tool_aborted (EditingToolsEditingTool* _sender, - gpointer self); -void dimensions_for_pixbuf (GdkPixbuf* pixbuf, - Dimensions* result); -static gboolean _editing_host_page_update_pixbuf_gsource_func (gpointer self); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* page_get_command_manager (Page* self); -void command_manager_execute (CommandManager* self, - Command* command); -gboolean editing_host_page_on_double_click (EditingHostPage* self, - GdkEventButton* event); -static gboolean editing_host_page_real_on_double_click (EditingHostPage* self, - GdkEventButton* event); -static gboolean editing_host_page_real_on_left_click (Page* base, - GdkEventButton* event); -void page_suspend_cursor_hiding (Page* self); -gboolean single_photo_page_is_inside_pixbuf (SinglePhotoPage* self, - gint x, - gint y); -void editing_tools_editing_tool_on_left_click (EditingToolsEditingTool* self, - gint x, - gint y); -static gboolean editing_host_page_real_on_left_released (Page* base, - GdkEventButton* event); -ZoomBuffer* single_photo_page_get_zoom_buffer (SinglePhotoPage* self); -void page_restore_cursor_hiding (Page* self); -void editing_tools_editing_tool_on_left_released (EditingToolsEditingTool* self, - gint x, - gint y); -static gboolean editing_host_page_real_on_right_click (Page* base, - GdkEventButton* event); -gboolean page_on_context_buttonpress (Page* self, - GdkEventButton* event); -static gboolean editing_host_page_on_fetch_original (EditingHostPage* self); -static gboolean _editing_host_page_on_fetch_original_gsource_func (gpointer self); -gint data_collection_get_count (DataCollection* self); -static gboolean editing_host_page_is_panning_possible (EditingHostPage* self); -gint zoom_state_get_zoomed_width (ZoomState *self); -gint zoom_state_get_zoomed_height (ZoomState *self); -static gboolean editing_host_page_real_on_motion (Page* base, - GdkEventMotion* event, - gint x, - gint y, - GdkModifierType mask); -void editing_tools_editing_tool_on_motion (EditingToolsEditingTool* self, - gint x, - gint y, - GdkModifierType mask); -void single_photo_page_on_interactive_pan (SinglePhotoPage* self, - ZoomState* interactive_zoom_state); -gboolean page_on_motion (Page* self, - GdkEventMotion* event, - gint x, - gint y, - GdkModifierType mask); -static gboolean editing_host_page_real_on_leave_notify_event (Page* base); -gboolean editing_tools_editing_tool_on_leave_notify_event (EditingToolsEditingTool* self); -gboolean page_on_leave_notify_event (Page* self); -static void editing_host_page_real_on_move (Page* base, - GdkRectangle* rect); -void page_on_move (Page* self, - GdkRectangle* rect); -static void editing_host_page_real_on_move_finished (Page* base, - GdkRectangle* rect); -void page_on_move_finished (Page* self, - GdkRectangle* rect); -static gboolean editing_host_page_on_keyboard_pan_event (EditingHostPage* self, - GdkEventKey* event); -static gboolean editing_host_page_real_key_press_event (GtkWidget* base, - GdkEventKey* event); -gboolean editing_tools_editing_tool_on_keypress (EditingToolsEditingTool* self, - GdkEventKey* event); -static void editing_host_page_real_new_surface (SinglePhotoPage* base, - cairo_t* default_ctx, - Dimensions* dim); -void editing_tools_photo_canvas_set_surface (EditingToolsPhotoCanvas* self, - cairo_t* default_ctx, - Dimensions* surface_dim); -static void editing_host_page_real_updated_pixbuf (SinglePhotoPage* base, - GdkPixbuf* pixbuf, - SinglePhotoPageUpdateReason reason, - Dimensions* old_dim); -void editing_tools_photo_canvas_resized_pixbuf (EditingToolsPhotoCanvas* self, - Dimensions* old_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position); -void single_photo_page_get_scaled_pixbuf_position (SinglePhotoPage* self, - GdkRectangle* result); -GdkPixbuf* editing_host_page_get_bottom_left_trinket (EditingHostPage* self, - gint scale); -static GdkPixbuf* editing_host_page_real_get_bottom_left_trinket (EditingHostPage* self, - gint scale); -GdkPixbuf* editing_host_page_get_top_left_trinket (EditingHostPage* self, - gint scale); -static GdkPixbuf* editing_host_page_real_get_top_left_trinket (EditingHostPage* self, - gint scale); -GdkPixbuf* editing_host_page_get_top_right_trinket (EditingHostPage* self, - gint scale); -static GdkPixbuf* editing_host_page_real_get_top_right_trinket (EditingHostPage* self, - gint scale); -GdkPixbuf* editing_host_page_get_bottom_right_trinket (EditingHostPage* self, - gint scale); -static GdkPixbuf* editing_host_page_real_get_bottom_right_trinket (EditingHostPage* self, - gint scale); -static void editing_host_page_real_paint (SinglePhotoPage* base, - cairo_t* ctx, - Dimensions* ctx_dim); -void editing_tools_editing_tool_paint (EditingToolsEditingTool* self, - cairo_t* ctx); -void set_source_color_from_string (cairo_t* ctx, - const gchar* spec); -void single_photo_page_paint (SinglePhotoPage* self, - cairo_t* ctx, - Dimensions* ctx_dim); -GType rotation_get_type (void) G_GNUC_CONST; -static void editing_host_page_rotate (EditingHostPage* self, - Rotation rotation, - const gchar* name, - const gchar* description); -GType page_command_get_type (void) G_GNUC_CONST; -GType single_data_source_command_get_type (void) G_GNUC_CONST; -GType rotate_single_command_get_type (void) G_GNUC_CONST; -RotateSingleCommand* rotate_single_command_new (Photo* photo, - Rotation rotation, - const gchar* name, - const gchar* explanation); -RotateSingleCommand* rotate_single_command_construct (GType object_type, - Photo* photo, - Rotation rotation, - const gchar* name, - const gchar* explanation); -#define RESOURCES_ROTATE_CW_FULL_LABEL _ ("Rotate Right") -void editing_host_page_on_rotate_counterclockwise (EditingHostPage* self); -#define RESOURCES_ROTATE_CCW_FULL_LABEL _ ("Rotate Left") -#define RESOURCES_ROTATE_CCW_TOOLTIP _ ("Rotate the photos left") -void editing_host_page_on_flip_horizontally (EditingHostPage* self); -#define RESOURCES_HFLIP_LABEL _ ("Flip Horizontally") -void editing_host_page_on_flip_vertically (EditingHostPage* self); -#define RESOURCES_VFLIP_LABEL _ ("Flip Vertically") -void editing_host_page_on_revert (EditingHostPage* self); -gboolean revert_editable_dialog (GtkWindow* owner, - GeeCollection* photos); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -GeeCollection* view_collection_get_sources (ViewCollection* self); -void photo_revert_to_master (Photo* self, - gboolean notify); -GType generic_photo_transformation_command_get_type (void) G_GNUC_CONST; -GType revert_single_command_get_type (void) G_GNUC_CONST; -RevertSingleCommand* revert_single_command_new (Photo* photo); -RevertSingleCommand* revert_single_command_construct (GType object_type, - Photo* photo); -void editing_host_page_on_edit_title (EditingHostPage* self); -GType library_photo_get_type (void) G_GNUC_CONST; -gpointer text_entry_dialog_mediator_ref (gpointer instance); -void text_entry_dialog_mediator_unref (gpointer instance); -GParamSpec* param_spec_text_entry_dialog_mediator (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -void value_take_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -gpointer value_get_text_entry_dialog_mediator (const GValue* value); -GType text_entry_dialog_mediator_get_type (void) G_GNUC_CONST; -GType edit_title_dialog_get_type (void) G_GNUC_CONST; -gchar* media_source_get_title (MediaSource* self); -EditTitleDialog* edit_title_dialog_new (const gchar* photo_title); -EditTitleDialog* edit_title_dialog_construct (GType object_type, - const gchar* photo_title); -gchar* edit_title_dialog_execute (EditTitleDialog* self); -GType edit_title_command_get_type (void) G_GNUC_CONST; -EditTitleCommand* edit_title_command_new (MediaSource* source, - const gchar* new_title); -EditTitleCommand* edit_title_command_construct (GType object_type, - MediaSource* source, - const gchar* new_title); -void editing_host_page_on_edit_comment (EditingHostPage* self); -gpointer multi_text_entry_dialog_mediator_ref (gpointer instance); -void multi_text_entry_dialog_mediator_unref (gpointer instance); -GParamSpec* param_spec_multi_text_entry_dialog_mediator (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_multi_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -void value_take_multi_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -gpointer value_get_multi_text_entry_dialog_mediator (const GValue* value); -GType multi_text_entry_dialog_mediator_get_type (void) G_GNUC_CONST; -GType edit_comment_dialog_get_type (void) G_GNUC_CONST; -gchar* media_source_get_comment (MediaSource* self); -EditCommentDialog* edit_comment_dialog_new (const gchar* comment, - gboolean is_event); -EditCommentDialog* edit_comment_dialog_construct (GType object_type, - const gchar* comment, - gboolean is_event); -gchar* edit_comment_dialog_execute (EditCommentDialog* self); -GType edit_comment_command_get_type (void) G_GNUC_CONST; -EditCommentCommand* edit_comment_command_new (MediaSource* source, - const gchar* new_comment); -EditCommentCommand* edit_comment_command_construct (GType object_type, - MediaSource* source, - const gchar* new_comment); -void editing_host_page_on_adjust_date_time (EditingHostPage* self); -GType adjust_date_time_dialog_get_type (void) G_GNUC_CONST; -GType dateable_get_type (void) G_GNUC_CONST; -GType direct_photo_page_get_type (void) G_GNUC_CONST; -AdjustDateTimeDialog* adjust_date_time_dialog_new (Dateable* source, - gint photo_count, - gboolean display_options, - gboolean contains_video, - gboolean only_video); -AdjustDateTimeDialog* adjust_date_time_dialog_construct (GType object_type, - Dateable* source, - gint photo_count, - gboolean display_options, - gboolean contains_video, - gboolean only_video); -gboolean adjust_date_time_dialog_execute (AdjustDateTimeDialog* self, - gint64* time_shift, - gboolean* keep_relativity, - gboolean* modify_originals); -GeeList* view_collection_get_selected (ViewCollection* self); -GType adjust_date_time_photo_command_get_type (void) G_GNUC_CONST; -AdjustDateTimePhotoCommand* adjust_date_time_photo_command_new (Dateable* dateable, - gint64 time_shift, - gboolean modify_original); -AdjustDateTimePhotoCommand* adjust_date_time_photo_command_construct (GType object_type, - Dateable* dateable, - gint64 time_shift, - gboolean modify_original); -void editing_host_page_on_set_background (EditingHostPage* self); -GType set_background_photo_dialog_get_type (void) G_GNUC_CONST; -SetBackgroundPhotoDialog* set_background_photo_dialog_new (void); -SetBackgroundPhotoDialog* set_background_photo_dialog_construct (GType object_type); -gboolean set_background_photo_dialog_execute (SetBackgroundPhotoDialog* self, - gboolean* desktop_background, - gboolean* screensaver); -void page_window_set_busy_cursor (PageWindow* self); -void desktop_integration_set_background (Photo* photo, - gboolean desktop, - gboolean screensaver); -void page_window_set_normal_cursor (PageWindow* self); -static gboolean editing_host_page_real_on_ctrl_pressed (Page* base, - GdkEventKey* event); -#define RESOURCES_COUNTERCLOCKWISE "object-rotate-left" -#define RESOURCES_ROTATE_CCW_LABEL _ ("Rotate") -static void _editing_host_page_on_rotate_counterclockwise_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self); -gboolean page_on_ctrl_pressed (Page* self, - GdkEventKey* event); -static gboolean editing_host_page_real_on_ctrl_released (Page* base, - GdkEventKey* event); -gboolean page_on_ctrl_released (Page* self, - GdkEventKey* event); -void editing_host_page_on_tool_button_toggled (EditingHostPage* self, - GtkToggleToolButton* toggle, - EditingToolsEditingToolFactory factory); -void editing_host_page_toggle_crop (EditingHostPage* self); -void editing_host_page_toggle_straighten (EditingHostPage* self); -void editing_host_page_toggle_redeye (EditingHostPage* self); -void editing_host_page_toggle_adjust (EditingHostPage* self); -GType editing_tools_straighten_tool_get_type (void) G_GNUC_CONST; -EditingToolsStraightenTool* editing_tools_straighten_tool_factory (void); -static EditingToolsEditingTool* _editing_tools_straighten_tool_factory_editing_tools_editing_tool_factory (void); -GType editing_tools_crop_tool_get_type (void) G_GNUC_CONST; -EditingToolsCropTool* editing_tools_crop_tool_factory (void); -static EditingToolsEditingTool* _editing_tools_crop_tool_factory_editing_tools_editing_tool_factory (void); -GType editing_tools_redeye_tool_get_type (void) G_GNUC_CONST; -EditingToolsRedeyeTool* editing_tools_redeye_tool_factory (void); -static EditingToolsEditingTool* _editing_tools_redeye_tool_factory_editing_tools_editing_tool_factory (void); -GType editing_tools_adjust_tool_get_type (void) G_GNUC_CONST; -EditingToolsAdjustTool* editing_tools_adjust_tool_factory (void); -static EditingToolsEditingTool* _editing_tools_adjust_tool_factory_editing_tools_editing_tool_factory (void); -gboolean editing_tools_adjust_tool_enhance (EditingToolsAdjustTool* self); -GType enhance_single_command_get_type (void) G_GNUC_CONST; -EnhanceSingleCommand* enhance_single_command_new (Photo* photo); -EnhanceSingleCommand* enhance_single_command_construct (GType object_type, - Photo* photo); -void editing_host_page_on_copy_adjustments (EditingHostPage* self); -PixelTransformationBundle* photo_get_color_adjustments (Photo* self); -void page_set_action_sensitive (Page* self, - const gchar* name, - gboolean sensitive); -void editing_host_page_on_paste_adjustments (EditingHostPage* self); -GType adjust_colors_single_command_get_type (void) G_GNUC_CONST; -#define RESOURCES_PASTE_ADJUSTMENTS_LABEL _ ("Paste Color Adjustments") -#define RESOURCES_PASTE_ADJUSTMENTS_TOOLTIP _ ("Apply copied color adjustments to the selected photos") -AdjustColorsSingleCommand* adjust_colors_single_command_new (Photo* photo, - PixelTransformationBundle* transformations, - const gchar* name, - const gchar* explanation); -AdjustColorsSingleCommand* adjust_colors_single_command_construct (GType object_type, - Photo* photo, - PixelTransformationBundle* transformations, - const gchar* name, - const gchar* explanation); -static void editing_host_page_real_on_next_photo (SinglePhotoPage* base); -DataView* view_collection_get_next (ViewCollection* self, - DataView* view); -static void editing_host_page_real_on_previous_photo (SinglePhotoPage* base); -DataView* view_collection_get_previous (ViewCollection* self, - DataView* view); -gboolean editing_host_page_has_current_tool (EditingHostPage* self); -void editing_host_page_unset_view_collection (EditingHostPage* self); -#define EDITING_HOST_PAGE_EDITING_HOST_CANVAS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS, EditingHostPageEditingHostCanvasPrivate)) -cairo_t* single_photo_page_get_cairo_context (SinglePhotoPage* self); -GdkPixbuf* single_photo_page_get_scaled_pixbuf (SinglePhotoPage* self); -EditingToolsPhotoCanvas* editing_tools_photo_canvas_construct (GType object_type, - GtkWindow* container, - GdkWindow* drawing_window, - Photo* photo, - cairo_t* default_ctx, - Dimensions* surface_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position); -static void editing_host_page_editing_host_canvas_real_repaint (EditingToolsPhotoCanvas* base); -static void editing_host_page_editing_host_canvas_finalize (EditingToolsPhotoCanvas * obj); -static void editing_host_page_finalize (GObject * obj); -GType library_photo_page_get_type (void) G_GNUC_CONST; -GType raw_developer_get_type (void) G_GNUC_CONST; -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType media_page_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -static GType library_photo_page_library_photo_page_view_filter_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define LIBRARY_PHOTO_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPagePrivate)) -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -static void library_photo_page_on_photo_destroyed (LibraryPhotoPage* self, - DataSource* source); -static void _library_photo_page_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self); -static void library_photo_page_on_metadata_altered (LibraryPhotoPage* self, - GeeMap* map); -static void _library_photo_page_on_metadata_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -static void library_photo_page_on_external_app_changed (LibraryPhotoPage* self); -static void _library_photo_page_on_external_app_changed_configuration_facade_external_app_changed (ConfigurationFacade* _sender, - gpointer self); -static LibraryPhotoPageLibraryPhotoPageViewFilter* library_photo_page_library_photo_page_view_filter_new (void); -static LibraryPhotoPageLibraryPhotoPageViewFilter* library_photo_page_library_photo_page_view_filter_construct (GType object_type); -static void library_photo_page_on_export (LibraryPhotoPage* self); -static void _library_photo_page_on_export_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_print (LibraryPhotoPage* self); -static void _library_photo_page_on_print_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_publish (LibraryPhotoPage* self); -static void _library_photo_page_on_publish_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_remove_from_library (LibraryPhotoPage* self); -static void _library_photo_page_on_remove_from_library_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_move_to_trash (LibraryPhotoPage* self); -static void _library_photo_page_on_move_to_trash_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _single_photo_page_on_previous_photo_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _single_photo_page_on_next_photo_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_on_copy_adjustments_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_on_paste_adjustments_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_toggle_crop_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_toggle_straighten_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_toggle_redeye_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_toggle_adjust_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_on_edit_title_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_external_edit (LibraryPhotoPage* self); -static void _library_photo_page_on_external_edit_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_external_edit_raw (LibraryPhotoPage* self); -static void _library_photo_page_on_external_edit_raw_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_send_to (LibraryPhotoPage* self); -static void _library_photo_page_on_send_to_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_flag_unflag (LibraryPhotoPage* self); -static void _library_photo_page_on_flag_unflag_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_increase_rating (LibraryPhotoPage* self); -static void _library_photo_page_on_increase_rating_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_decrease_rating (LibraryPhotoPage* self); -static void _library_photo_page_on_decrease_rating_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_rate_rejected (LibraryPhotoPage* self); -static void _library_photo_page_on_rate_rejected_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_rate_unrated (LibraryPhotoPage* self); -static void _library_photo_page_on_rate_unrated_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_rate_one (LibraryPhotoPage* self); -static void _library_photo_page_on_rate_one_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_rate_two (LibraryPhotoPage* self); -static void _library_photo_page_on_rate_two_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_rate_three (LibraryPhotoPage* self); -static void _library_photo_page_on_rate_three_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_rate_four (LibraryPhotoPage* self); -static void _library_photo_page_on_rate_four_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_rate_five (LibraryPhotoPage* self); -static void _library_photo_page_on_rate_five_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_on_increase_size_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_on_decrease_size_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_snap_zoom_to_min_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_snap_zoom_to_isomorphic_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void _editing_host_page_snap_zoom_to_max_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_add_tags (LibraryPhotoPage* self); -static void _library_photo_page_on_add_tags_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_modify_tags (LibraryPhotoPage* self); -static void _library_photo_page_on_modify_tags_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_slideshow (LibraryPhotoPage* self); -static void _library_photo_page_on_slideshow_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void page_on_action_toggle (Page* self, - GAction* action, - GVariant* value); -static void _page_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_photo_page_on_display_ratings (LibraryPhotoPage* self, - GSimpleAction* action, - GVariant* value); -static void _library_photo_page_on_display_ratings_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -LibraryPhotoPage* library_photo_page_new (void); -LibraryPhotoPage* library_photo_page_construct (GType object_type); -static void library_photo_page_on_photos_altered (LibraryPhotoPage* self); -static void _library_photo_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -void view_collection_install_view_filter (ViewCollection* self, - ViewFilter* f); -static void library_photo_page_on_photo_unlinking (LibraryPhotoPage* self, - GeeCollection* unlinking); -static void _library_photo_page_on_photo_unlinking_source_collection_items_unlinking (SourceCollection* _sender, - GeeCollection* unlinking, - gpointer self); -static void library_photo_page_on_photo_relinked (LibraryPhotoPage* self, - GeeCollection* relinked); -static void _library_photo_page_on_photo_relinked_source_collection_items_relinked (SourceCollection* _sender, - GeeCollection* relinked, - gpointer self); -gboolean library_photo_page_not_trashed_view_filter (LibraryPhotoPage* self, - DataView* view); -gboolean media_source_is_trashed (MediaSource* self); -static void library_photo_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames); -void page_init_collect_ui_filenames (Page* self, - GeeList* ui_filenames); -static void library_photo_page_real_add_actions (Page* base, - GActionMap* map); -void page_add_actions (Page* self, - GActionMap* map); -GAction* page_get_action (Page* self, - const gchar* name); -gboolean configuration_facade_get_display_photo_ratings (ConfigurationFacade* self); -static GVariant* _variant_new16 (gboolean value); -RawDeveloper configuration_facade_get_default_raw_developer (ConfigurationFacade* self); -static GVariant* _variant_new17 (const gchar* value); -static void library_photo_page_on_raw_developer_changed (LibraryPhotoPage* self, - GSimpleAction* action, - GVariant* value); -static void _library_photo_page_on_raw_developer_changed_g_simple_action_change_state (GSimpleAction* _sender, - GVariant* value, - gpointer self); -static void library_photo_page_real_remove_actions (Page* base, - GActionMap* map); -void page_remove_actions (Page* self, - GActionMap* map); -static InjectionGroup** library_photo_page_real_init_collect_injection_groups (Page* base, - int* result_length1); -InjectionGroup** page_init_collect_injection_groups (Page* self, - int* result_length1); -InjectionGroup* injection_group_new (const gchar* path); -InjectionGroup* injection_group_construct (GType object_type, - const gchar* path); -void injection_group_add_menu_item (InjectionGroup* self, - const gchar* name, - const gchar* action, - const gchar* accellerator); -static void _vala_array_add85 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value); -static void _vala_array_add86 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value); -static void _vala_array_add87 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value); -static void library_photo_page_set_display_ratings (LibraryPhotoPage* self, - gboolean display); -void configuration_facade_set_display_photo_ratings (ConfigurationFacade* self, - gboolean display); -static void library_photo_page_real_update_actions (Page* base, - gint selected_count, - gint count); -PhotoFileFormat photo_get_master_file_format (Photo* self); -gchar* configuration_facade_get_external_photo_app (ConfigurationFacade* self); -static void library_photo_page_update_rating_menu_item_sensitivity (LibraryPhotoPage* self); -static void library_photo_page_update_development_menu_item_sensitivity (LibraryPhotoPage* self); -gboolean photo_has_color_adjustments (Photo* self); -static void library_photo_page_update_flag_action (LibraryPhotoPage* self); -gchar* configuration_facade_get_external_raw_app (ConfigurationFacade* self); -void library_photo_page_developer_changed (LibraryPhotoPage* self, - RawDeveloper rd); -static void library_photo_page_real_developer_changed (LibraryPhotoPage* self, - RawDeveloper rd); -gboolean raw_developer_is_equivalent (RawDeveloper self, - RawDeveloper d); -RawDeveloper photo_get_raw_developer (Photo* self); -gboolean dialogs_confirm_warn_developer_changed (gint number); -GType multiple_data_source_command_get_type (void) G_GNUC_CONST; -GType set_raw_developer_command_get_type (void) G_GNUC_CONST; -SetRawDeveloperCommand* set_raw_developer_command_new (GeeIterable* iter, - RawDeveloper developer); -SetRawDeveloperCommand* set_raw_developer_command_construct (GType object_type, - GeeIterable* iter, - RawDeveloper developer); -void library_photo_page_display_for_collection (LibraryPhotoPage* self, - CollectionPage* return_page, - Photo* photo, - ViewCollection* view); -void library_photo_page_on_page_destroyed (LibraryPhotoPage* self); -static void _library_photo_page_on_page_destroyed_gtk_widget_destroy (GtkWidget* _sender, - gpointer self); -CollectionPage* library_photo_page_get_controller_page (LibraryPhotoPage* self); -static void library_photo_page_real_switched_to (Page* base); -static void library_photo_page_update_zoom_menu_item_sensitivity (LibraryPhotoPage* self); -static void library_photo_page_real_switching_from (Page* base); -static GdkPixbuf* library_photo_page_real_get_bottom_left_trinket (EditingHostPage* base, - gint scale); -GType rating_get_type (void) G_GNUC_CONST; -GdkPixbuf* resources_get_rating_trinket (Rating rating, - gint scale); -Rating media_source_get_rating (MediaSource* self); -static GdkPixbuf* library_photo_page_real_get_top_right_trinket (EditingHostPage* base, - gint scale); -GType flaggable_get_type (void) G_GNUC_CONST; -gboolean flaggable_is_flagged (Flaggable* self); -GdkPixbuf* resources_get_icon (const gchar* name, - gint scale); -#define RESOURCES_ICON_FLAGGED_TRINKET "flag-trinket.png" -#define RESOURCES_DEFAULT_ICON_SCALE 24 -void app_window_go_fullscreen (AppWindow* self, - Page* page); -SlideshowPage* slideshow_page_new (SourceCollection* sources, - ViewCollection* controller, - Photo* start); -SlideshowPage* slideshow_page_construct (GType object_type, - SourceCollection* sources, - ViewCollection* controller, - Photo* start); -GType slideshow_page_get_type (void) G_GNUC_CONST; -static void library_photo_page_real_on_increase_size (EditingHostPage* base); -static void library_photo_page_real_on_decrease_size (EditingHostPage* base); -static gboolean library_photo_page_real_on_zoom_slider_key_press (EditingHostPage* base, - GdkEventKey* event); -static void library_photo_page_return_to_collection (LibraryPhotoPage* self); -static void library_photo_page_real_update_ui (EditingHostPage* base, - gboolean missing); -static void library_photo_page_real_notify_photo_backing_missing (EditingHostPage* base, - Photo* photo, - gboolean missing); -void media_source_mark_offline (MediaSource* self); -void media_source_mark_online (MediaSource* self); -static gboolean library_photo_page_real_key_press_event (GtkWidget* base, - GdkEventKey* event); -static gboolean library_photo_page_real_on_double_click (EditingHostPage* base, - GdkEventButton* event); -void fullscreen_window_close (FullscreenWindow* self); -static gboolean library_photo_page_real_on_left_released (Page* base, - GdkEventButton* event); -gboolean page_on_left_released (Page* self, - GdkEventButton* event); -static GtkMenu* library_photo_page_get_context_menu (LibraryPhotoPage* self); -static gboolean library_photo_page_real_on_context_buttonpress (Page* base, - GdkEventButton* event); -gboolean page_popup_context_menu (Page* self, - GtkMenu* context_menu, - GdkEventButton* event); -static gboolean library_photo_page_real_on_context_keypress (Page* base); -GType library_window_get_type (void) G_GNUC_CONST; -LibraryWindow* library_window_get_app (void); -void library_window_switch_to_page (LibraryWindow* self, - Page* page); -void library_window_switch_to_library_page (LibraryWindow* self); -void remove_from_app (GeeCollection* sources, - const gchar* dialog_title, - const gchar* progress_dialog_text); -GType event_page_get_type (void) G_GNUC_CONST; -void library_window_set_page_switching_enabled (LibraryWindow* self, - gboolean should_enable); -TrashUntrashPhotosCommand* trash_untrash_photos_command_new (GeeCollection* sources, - gboolean to_trash); -TrashUntrashPhotosCommand* trash_untrash_photos_command_construct (GType object_type, - GeeCollection* sources, - gboolean to_trash); -GType trash_untrash_photos_command_get_type (void) G_GNUC_CONST; -FlagUnflagCommand* flag_unflag_command_new (GeeCollection* sources, - gboolean flag); -FlagUnflagCommand* flag_unflag_command_construct (GType object_type, - GeeCollection* sources, - gboolean flag); -GType multiple_data_source_at_once_command_get_type (void) G_GNUC_CONST; -GType flag_unflag_command_get_type (void) G_GNUC_CONST; -static void library_photo_page_on_photo_removed (LibraryPhotoPage* self, - LibraryPhoto* photo); -void data_collection_remove_marked (DataCollection* self, - Marker* m); -gpointer print_manager_ref (gpointer instance); -void print_manager_unref (gpointer instance); -GParamSpec* param_spec_print_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_print_manager (GValue* value, - gpointer v_object); -void value_take_print_manager (GValue* value, - gpointer v_object); -gpointer value_get_print_manager (const GValue* value); -GType print_manager_get_type (void) G_GNUC_CONST; -PrintManager* print_manager_get_instance (void); -void print_manager_spool_photo (PrintManager* self, - GeeCollection* to_print); -GeeList* view_collection_get_selected_sources_of_type (ViewCollection* self, - GType t); -void photo_open_with_external_editor (Photo* self, - GError** error); -void open_external_editor_error_dialog (GError* err, - Photo* photo); -void photo_open_with_raw_external_editor (Photo* self, - GError** error); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -gchar* resources_launch_editor_failed (GError* err); -void desktop_integration_send_to (GeeCollection* media); -GeeList* view_collection_get_selected_sources (ViewCollection* self); -GType export_dialog_get_type (void) G_GNUC_CONST; -ExportDialog* export_dialog_new (const gchar* title); -ExportDialog* export_dialog_construct (GType object_type, - const gchar* title); -GType export_format_parameters_get_type (void) G_GNUC_CONST; -GType export_format_mode_get_type (void) G_GNUC_CONST; -GType jpeg_quality_get_type (void) G_GNUC_CONST; -ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self); -void export_format_parameters_free (ExportFormatParameters* self); -void export_format_parameters_last (ExportFormatParameters* result); -gboolean export_dialog_execute (ExportDialog* self, - gint* scale, - ScaleConstraint* constraint, - ExportFormatParameters* parameters); -GFile* export_ui_choose_file (const gchar* current_file_basename); -gchar* photo_get_export_basename_for_parameters (Photo* self, - ExportFormatParameters* params); -void scaling_for_constraint (ScaleConstraint constraint, - gint scale, - gboolean scale_up, - Scaling* result); -void photo_export (Photo* self, - GFile* dest_file, - Scaling* scaling, - JpegQuality quality, - PhotoFileFormat export_format, - gboolean direct_copy_unmodified, - gboolean export_metadata, - GError** error); -PhotoFileFormat photo_get_export_format_for_parameters (Photo* self, - ExportFormatParameters* params); -void publishing_ui_publishing_dialog_go (GeeCollection* to_publish); -GType set_rating_single_command_get_type (void) G_GNUC_CONST; -SetRatingSingleCommand* set_rating_single_command_new_inc_dec (DataSource* source, - gboolean is_incrementing); -SetRatingSingleCommand* set_rating_single_command_construct_inc_dec (GType object_type, - DataSource* source, - gboolean is_incrementing); -static void library_photo_page_on_set_rating (LibraryPhotoPage* self, - Rating rating); -SetRatingSingleCommand* set_rating_single_command_new (DataSource* source, - Rating rating); -SetRatingSingleCommand* set_rating_single_command_construct (GType object_type, - DataSource* source, - Rating rating); -gboolean rating_can_increase (Rating self); -gboolean rating_can_decrease (Rating self); -static GVariant* _variant_new18 (const gchar* value); -static GVariant* _variant_new19 (const gchar* value); -gboolean alteration_has_subject (Alteration* self, - const gchar* subject); -GType tags_dialog_get_type (void) G_GNUC_CONST; -GType add_tags_dialog_get_type (void) G_GNUC_CONST; -AddTagsDialog* add_tags_dialog_new (void); -AddTagsDialog* add_tags_dialog_construct (GType object_type); -gchar** add_tags_dialog_execute (AddTagsDialog* self, - int* result_length1); -gpointer hierarchical_tag_index_ref (gpointer instance); -void hierarchical_tag_index_unref (gpointer instance); -GParamSpec* param_spec_hierarchical_tag_index (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_hierarchical_tag_index (GValue* value, - gpointer v_object); -void value_take_hierarchical_tag_index (GValue* value, - gpointer v_object); -gpointer value_get_hierarchical_tag_index (const GValue* value); -GType hierarchical_tag_index_get_type (void) G_GNUC_CONST; -HierarchicalTagIndex* hierarchical_tag_index_get_global_index (void); -gchar** hierarchical_tag_index_get_paths_for_names_array (HierarchicalTagIndex* self, - gchar** names, - int names_length1, - int* result_length1); -AddTagsCommand* add_tags_command_new (gchar** paths, - int paths_length1, - GeeCollection* sources); -AddTagsCommand* add_tags_command_construct (GType object_type, - gchar** paths, - int paths_length1, - GeeCollection* sources); -GType add_tags_command_get_type (void) G_GNUC_CONST; -GType modify_tags_dialog_get_type (void) G_GNUC_CONST; -ModifyTagsDialog* modify_tags_dialog_new (MediaSource* source); -ModifyTagsDialog* modify_tags_dialog_construct (GType object_type, - MediaSource* source); -GType tag_get_type (void) G_GNUC_CONST; -GeeArrayList* modify_tags_dialog_execute (ModifyTagsDialog* self); -ModifyTagsCommand* modify_tags_command_new (MediaSource* media, - GeeCollection* new_tag_list); -ModifyTagsCommand* modify_tags_command_construct (GType object_type, - MediaSource* media, - GeeCollection* new_tag_list); -GType modify_tags_command_get_type (void) G_GNUC_CONST; -static gboolean library_photo_page_library_photo_page_view_filter_real_predicate (ViewFilter* base, - DataView* view); -ViewFilter* view_filter_construct (GType object_type); -static void library_photo_page_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - -static const GActionEntry LIBRARY_PHOTO_PAGE_entries[45] = {{"Export", _library_photo_page_on_export_gsimple_action_activate_callback}, {"Print", _library_photo_page_on_print_gsimple_action_activate_callback}, {"Publish", _library_photo_page_on_publish_gsimple_action_activate_callback}, {"RemoveFromLibrary", _library_photo_page_on_remove_from_library_gsimple_action_activate_callback}, {"MoveToTrash", _library_photo_page_on_move_to_trash_gsimple_action_activate_callback}, {"PrevPhoto", _single_photo_page_on_previous_photo_gsimple_action_activate_callback}, {"NextPhoto", _single_photo_page_on_next_photo_gsimple_action_activate_callback}, {"RotateClockwise", _editing_host_page_on_rotate_clockwise_gsimple_action_activate_callback}, {"RotateCounterclockwise", _editing_host_page_on_rotate_counterclockwise_gsimple_action_activate_callback}, {"FlipHorizontally", _editing_host_page_on_flip_horizontally_gsimple_action_activate_callback}, {"FlipVertically", _editing_host_page_on_flip_vertically_gsimple_action_activate_callback}, {"Enhance", _editing_host_page_on_enhance_gsimple_action_activate_callback}, {"CopyColorAdjustments", _editing_host_page_on_copy_adjustments_gsimple_action_activate_callback}, {"PasteColorAdjustments", _editing_host_page_on_paste_adjustments_gsimple_action_activate_callback}, {"Crop", _editing_host_page_toggle_crop_gsimple_action_activate_callback}, {"Straighten", _editing_host_page_toggle_straighten_gsimple_action_activate_callback}, {"RedEye", _editing_host_page_toggle_redeye_gsimple_action_activate_callback}, {"Adjust", _editing_host_page_toggle_adjust_gsimple_action_activate_callback}, {"Revert", _editing_host_page_on_revert_gsimple_action_activate_callback}, {"EditTitle", _editing_host_page_on_edit_title_gsimple_action_activate_callback}, {"EditComment", _editing_host_page_on_edit_comment_gsimple_action_activate_callback}, {"AdjustDateTime", _editing_host_page_on_adjust_date_time_gsimple_action_activate_callback}, {"ExternalEdit", _library_photo_page_on_external_edit_gsimple_action_activate_callback}, {"ExternalEditRAW", _library_photo_page_on_external_edit_raw_gsimple_action_activate_callback}, {"SendTo", _library_photo_page_on_send_to_gsimple_action_activate_callback}, {"SetBackground", _editing_host_page_on_set_background_gsimple_action_activate_callback}, {"Flag", _library_photo_page_on_flag_unflag_gsimple_action_activate_callback}, {"IncreaseRating", _library_photo_page_on_increase_rating_gsimple_action_activate_callback}, {"DecreaseRating", _library_photo_page_on_decrease_rating_gsimple_action_activate_callback}, {"RateRejected", _library_photo_page_on_rate_rejected_gsimple_action_activate_callback}, {"RateUnrated", _library_photo_page_on_rate_unrated_gsimple_action_activate_callback}, {"RateOne", _library_photo_page_on_rate_one_gsimple_action_activate_callback}, {"RateTwo", _library_photo_page_on_rate_two_gsimple_action_activate_callback}, {"RateThree", _library_photo_page_on_rate_three_gsimple_action_activate_callback}, {"RateFour", _library_photo_page_on_rate_four_gsimple_action_activate_callback}, {"RateFive", _library_photo_page_on_rate_five_gsimple_action_activate_callback}, {"IncreaseSize", _editing_host_page_on_increase_size_gsimple_action_activate_callback}, {"DecreaseSize", _editing_host_page_on_decrease_size_gsimple_action_activate_callback}, {"ZoomFit", _editing_host_page_snap_zoom_to_min_gsimple_action_activate_callback}, {"Zoom100", _editing_host_page_snap_zoom_to_isomorphic_gsimple_action_activate_callback}, {"Zoom200", _editing_host_page_snap_zoom_to_max_gsimple_action_activate_callback}, {"AddTags", _library_photo_page_on_add_tags_gsimple_action_activate_callback}, {"ModifyTags", _library_photo_page_on_modify_tags_gsimple_action_activate_callback}, {"Slideshow", _library_photo_page_on_slideshow_gsimple_action_activate_callback}, {"ViewRatings", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _library_photo_page_on_display_ratings_gsimple_action_change_state_callback}}; - -static GType -zoom_buffer_object_state_get_type (void) -{ - static volatile gsize zoom_buffer_object_state_type_id__volatile = 0; - if (g_once_init_enter (&zoom_buffer_object_state_type_id__volatile)) { - static const GEnumValue values[] = {{ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_LOADED, "ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_LOADED", "source-not-loaded"}, {ZOOM_BUFFER_OBJECT_STATE_SOURCE_LOAD_IN_PROGRESS, "ZOOM_BUFFER_OBJECT_STATE_SOURCE_LOAD_IN_PROGRESS", "source-load-in-progress"}, {ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_TRANSFORMED, "ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_TRANSFORMED", "source-not-transformed"}, {ZOOM_BUFFER_OBJECT_STATE_TRANSFORMED_READY, "ZOOM_BUFFER_OBJECT_STATE_TRANSFORMED_READY", "transformed-ready"}, {0, NULL, NULL}}; - GType zoom_buffer_object_state_type_id; - zoom_buffer_object_state_type_id = g_enum_register_static ("ZoomBufferObjectState", values); - g_once_init_leave (&zoom_buffer_object_state_type_id__volatile, zoom_buffer_object_state_type_id); - } - return zoom_buffer_object_state_type_id__volatile; -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 86 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return self ? g_object_ref (self) : NULL; -#line 3128 "PhotoPage.c" -} - - -ZoomBuffer* -zoom_buffer_construct (GType object_type, - SinglePhotoPage* parent_page, - Photo* backing_photo, - GdkPixbuf* preview_image) -{ - ZoomBuffer * self = NULL; - SinglePhotoPage* _tmp0_; - GdkPixbuf* _tmp1_; - Photo* _tmp2_; - Workers* _tmp3_; -#line 84 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_SINGLE_PHOTO_PAGE (parent_page), NULL); -#line 84 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_PHOTO (backing_photo), NULL); -#line 84 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (GDK_IS_PIXBUF (preview_image), NULL); -#line 84 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = (ZoomBuffer*) g_object_new (object_type, NULL); -#line 86 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = _g_object_ref0 (parent_page); -#line 86 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->parent_page); -#line 86 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->parent_page = _tmp0_; -#line 87 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _g_object_ref0 (preview_image); -#line 87 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->preview_image); -#line 87 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->preview_image = _tmp1_; -#line 88 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _g_object_ref0 (backing_photo); -#line 88 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->backing_photo); -#line 88 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->backing_photo = _tmp2_; -#line 89 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = workers_new ((guint) 2, FALSE); -#line 89 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _workers_unref0 (self->priv->workers); -#line 89 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->workers = _tmp3_; -#line 84 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return self; -#line 3177 "PhotoPage.c" -} - - -ZoomBuffer* -zoom_buffer_new (SinglePhotoPage* parent_page, - Photo* backing_photo, - GdkPixbuf* preview_image) -{ -#line 84 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return zoom_buffer_construct (TYPE_ZOOM_BUFFER, parent_page, backing_photo, preview_image); -#line 3188 "PhotoPage.c" -} - - -static gpointer -_background_job_ref0 (gpointer self) -{ -#line 93 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return self ? background_job_ref (self) : NULL; -#line 3197 "PhotoPage.c" -} - - -static void -_zoom_buffer_on_iso_transformation_complete_completion_callback (BackgroundJob* job, - gpointer self) -{ -#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_buffer_on_iso_transformation_complete ((ZoomBuffer*) self, job); -#line 3207 "PhotoPage.c" -} - - -static void -zoom_buffer_on_iso_source_fetch_complete (ZoomBuffer* self, - BackgroundJob* job) -{ - ZoomBufferIsoSourceFetchJob* fetch_job = NULL; - ZoomBufferIsoSourceFetchJob* _tmp0_; - ZoomBufferIsoSourceFetchJob* _tmp1_; - GdkPixbuf* _tmp2_; - ZoomBufferIsoSourceFetchJob* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; - gint _tmp7_; - gint _tmp8_; - GdkPixbuf* _tmp9_; - gint _tmp10_; - gint _tmp11_; - gboolean _tmp20_; - BackgroundJob* transformation_job = NULL; - GdkPixbuf* _tmp22_; - Photo* _tmp23_; - PixelTransformer* _tmp24_; - PixelTransformer* _tmp25_; - GCancellable* _tmp26_; - GCancellable* _tmp27_; - ZoomBufferTransformationJob* _tmp28_; - BackgroundJob* _tmp29_; - Workers* _tmp30_; - BackgroundJob* _tmp31_; -#line 92 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_ZOOM_BUFFER (self)); -#line 92 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_BACKGROUND_JOB (job)); -#line 93 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (job, ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB, ZoomBufferIsoSourceFetchJob)); -#line 93 "/home/jens/Source/shotwell/src/PhotoPage.vala" - fetch_job = _tmp0_; -#line 94 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = fetch_job; -#line 94 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_->fetched; -#line 94 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_ == NULL) { -#line 95 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_critical ("PhotoPage.vala:95: ZoomBuffer: iso_source_fetch_complete( ): fetch job" \ -" has null image member"); -#line 96 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _background_job_unref0 (fetch_job); -#line 96 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 3260 "PhotoPage.c" - } -#line 99 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = fetch_job; -#line 99 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_->fetched; -#line 99 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _g_object_ref0 (_tmp4_); -#line 99 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->iso_source_image); -#line 99 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->iso_source_image = _tmp5_; -#line 100 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = self->priv->iso_source_image; -#line 100 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = gdk_pixbuf_get_width (_tmp6_); -#line 100 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_; -#line 100 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = self->priv->iso_source_image; -#line 100 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = gdk_pixbuf_get_height (_tmp9_); -#line 100 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = _tmp10_; -#line 100 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if ((_tmp8_ * _tmp11_) > ZOOM_BUFFER_USE_REDUCED_THRESHOLD) { -#line 3286 "PhotoPage.c" - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; - gint _tmp14_; - gint _tmp15_; - GdkPixbuf* _tmp16_; - gint _tmp17_; - gint _tmp18_; - GdkPixbuf* _tmp19_; -#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = self->priv->iso_source_image; -#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = self->priv->iso_source_image; -#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = gdk_pixbuf_get_width (_tmp13_); -#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = _tmp14_; -#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = self->priv->iso_source_image; -#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = gdk_pixbuf_get_height (_tmp16_); -#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = _tmp17_; -#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = gdk_pixbuf_scale_simple (_tmp12_, _tmp15_ / 2, _tmp18_ / 2, GDK_INTERP_BILINEAR); -#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->reduced_source_image); -#line 101 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->reduced_source_image = _tmp19_; -#line 3315 "PhotoPage.c" - } -#line 104 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->object_state = ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_TRANSFORMED; -#line 106 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = self->priv->is_interactive_redraw_in_progress; -#line 106 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!_tmp20_) { -#line 3323 "PhotoPage.c" - SinglePhotoPage* _tmp21_; -#line 107 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = self->priv->parent_page; -#line 107 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_repaint (_tmp21_, NULL); -#line 3329 "PhotoPage.c" - } -#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = self->priv->iso_source_image; -#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = self->priv->backing_photo; -#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = photo_get_pixel_transformer (_tmp23_); -#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = _tmp24_; -#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = g_cancellable_new (); -#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp27_ = _tmp26_; -#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp28_ = zoom_buffer_transformation_job_new (self, _tmp22_, _tmp25_, _zoom_buffer_on_iso_transformation_complete_completion_callback, self, _tmp27_); -#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp29_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_BACKGROUND_JOB, BackgroundJob); -#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp27_); -#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _pixel_transformer_unref0 (_tmp25_); -#line 109 "/home/jens/Source/shotwell/src/PhotoPage.vala" - transformation_job = _tmp29_; -#line 112 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp30_ = self->priv->workers; -#line 112 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp31_ = transformation_job; -#line 112 "/home/jens/Source/shotwell/src/PhotoPage.vala" - workers_enqueue (_tmp30_, _tmp31_); -#line 92 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _background_job_unref0 (transformation_job); -#line 92 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _background_job_unref0 (fetch_job); -#line 3363 "PhotoPage.c" -} - - -static void -zoom_buffer_on_iso_transformation_complete (ZoomBuffer* self, - BackgroundJob* job) -{ - ZoomBufferTransformationJob* transform_job = NULL; - ZoomBufferTransformationJob* _tmp0_; - ZoomBufferTransformationJob* _tmp1_; - GdkPixbuf* _tmp2_; - ZoomBufferTransformationJob* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; - gint _tmp7_; - gint _tmp8_; - GdkPixbuf* _tmp9_; - gint _tmp10_; - gint _tmp11_; -#line 115 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_ZOOM_BUFFER (self)); -#line 115 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_BACKGROUND_JOB (job)); -#line 116 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (job, ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, ZoomBufferTransformationJob)); -#line 116 "/home/jens/Source/shotwell/src/PhotoPage.vala" - transform_job = _tmp0_; -#line 117 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = transform_job; -#line 117 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_->transformed; -#line 117 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_ == NULL) { -#line 118 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_critical ("PhotoPage.vala:118: %s", "ZoomBuffer: on_iso_transformation_complete( ): completed job has null " "image"); -#line 120 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _background_job_unref0 (transform_job); -#line 120 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 3404 "PhotoPage.c" - } -#line 123 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = transform_job; -#line 123 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_->transformed; -#line 123 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _g_object_ref0 (_tmp4_); -#line 123 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->iso_transformed_image); -#line 123 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->iso_transformed_image = _tmp5_; -#line 124 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = self->priv->iso_transformed_image; -#line 124 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = gdk_pixbuf_get_width (_tmp6_); -#line 124 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_; -#line 124 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = self->priv->iso_transformed_image; -#line 124 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = gdk_pixbuf_get_height (_tmp9_); -#line 124 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = _tmp10_; -#line 124 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if ((_tmp8_ * _tmp11_) > ZOOM_BUFFER_USE_REDUCED_THRESHOLD) { -#line 3430 "PhotoPage.c" - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; - gint _tmp14_; - gint _tmp15_; - GdkPixbuf* _tmp16_; - gint _tmp17_; - gint _tmp18_; - GdkPixbuf* _tmp19_; -#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = self->priv->iso_transformed_image; -#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = self->priv->iso_transformed_image; -#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = gdk_pixbuf_get_width (_tmp13_); -#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = _tmp14_; -#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = self->priv->iso_transformed_image; -#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = gdk_pixbuf_get_height (_tmp16_); -#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = _tmp17_; -#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = gdk_pixbuf_scale_simple (_tmp12_, _tmp15_ / 2, _tmp18_ / 2, GDK_INTERP_BILINEAR); -#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->reduced_transformed_image); -#line 125 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->reduced_transformed_image = _tmp19_; -#line 3459 "PhotoPage.c" - } -#line 129 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->object_state = ZOOM_BUFFER_OBJECT_STATE_TRANSFORMED_READY; -#line 115 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _background_job_unref0 (transform_job); -#line 3465 "PhotoPage.c" -} - - -static void -zoom_buffer_on_demand_transform_complete (ZoomBuffer* self, - BackgroundJob* job) -{ - ZoomBufferTransformationJob* transform_job = NULL; - ZoomBufferTransformationJob* _tmp0_; - ZoomBufferTransformationJob* _tmp1_; - GdkPixbuf* _tmp2_; - ZoomBufferTransformationJob* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; - SinglePhotoPage* _tmp6_; -#line 132 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_ZOOM_BUFFER (self)); -#line 132 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_BACKGROUND_JOB (job)); -#line 133 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (job, ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, ZoomBufferTransformationJob)); -#line 133 "/home/jens/Source/shotwell/src/PhotoPage.vala" - transform_job = _tmp0_; -#line 134 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = transform_job; -#line 134 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_->transformed; -#line 134 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_ == NULL) { -#line 135 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_critical ("PhotoPage.vala:135: %s", "ZoomBuffer: on_demand_transform_complete( ): completed job has null " "image"); -#line 137 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _background_job_unref0 (transform_job); -#line 137 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 3501 "PhotoPage.c" - } -#line 140 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = transform_job; -#line 140 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_->transformed; -#line 140 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _g_object_ref0 (_tmp4_); -#line 140 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->demand_transform_cached_pixbuf); -#line 140 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->demand_transform_cached_pixbuf = _tmp5_; -#line 141 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _background_job_unref0 (self->priv->demand_transform_job); -#line 141 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->demand_transform_job = NULL; -#line 143 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = self->priv->parent_page; -#line 143 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_repaint (_tmp6_, NULL); -#line 132 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _background_job_unref0 (transform_job); -#line 3523 "PhotoPage.c" -} - - -static GdkPixbuf* -zoom_buffer_get_view_projection_pixbuf (ZoomBuffer* self, - ZoomState* zoom_state, - GdkPixbuf* iso_pixbuf, - GdkPixbuf* reduced_pixbuf) -{ - GdkPixbuf* result = NULL; - GdkRectangle view_rect = {0}; - GdkRectangle _tmp0_ = {0}; - GdkRectangle view_rect_proj = {0}; - GdkRectangle _tmp1_ = {0}; - GdkPixbuf* sample_source_pixbuf = NULL; - GdkPixbuf* _tmp2_; - gboolean _tmp3_ = FALSE; - GdkRectangle _tmp9_; - gint _tmp10_; - GdkRectangle _tmp11_; - gint _tmp12_; - GdkRectangle _tmp13_; - gint _tmp14_; - GdkRectangle _tmp15_; - gint _tmp16_; - GdkPixbuf* proj_subpixbuf = NULL; - GdkPixbuf* _tmp17_; - GdkRectangle _tmp18_; - gint _tmp19_; - GdkRectangle _tmp20_; - gint _tmp21_; - GdkRectangle _tmp22_; - gint _tmp23_; - GdkRectangle _tmp24_; - gint _tmp25_; - GdkPixbuf* _tmp26_; - GdkPixbuf* zoomed = NULL; - GdkRectangle _tmp27_; - gint _tmp28_; - GdkRectangle _tmp29_; - gint _tmp30_; - GdkPixbuf* _tmp31_; -#line 149 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_ZOOM_BUFFER (self), NULL); -#line 149 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (zoom_state != NULL, NULL); -#line 149 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (GDK_IS_PIXBUF (iso_pixbuf), NULL); -#line 149 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail ((reduced_pixbuf == NULL) || GDK_IS_PIXBUF (reduced_pixbuf), NULL); -#line 151 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_get_viewing_rectangle_wrt_content (zoom_state, &_tmp0_); -#line 151 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_rect = _tmp0_; -#line 152 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_get_viewing_rectangle_projection (zoom_state, iso_pixbuf, &_tmp1_); -#line 152 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_rect_proj = _tmp1_; -#line 154 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _g_object_ref0 (iso_pixbuf); -#line 154 "/home/jens/Source/shotwell/src/PhotoPage.vala" - sample_source_pixbuf = _tmp2_; -#line 156 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (reduced_pixbuf != NULL) { -#line 156 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = zoom_state_get_zoom_factor (zoom_state) < 0.5; -#line 3590 "PhotoPage.c" - } else { -#line 156 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = FALSE; -#line 3594 "PhotoPage.c" - } -#line 156 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp3_) { -#line 3598 "PhotoPage.c" - GdkPixbuf* _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - gint _tmp8_; -#line 157 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _g_object_ref0 (reduced_pixbuf); -#line 157 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (sample_source_pixbuf); -#line 157 "/home/jens/Source/shotwell/src/PhotoPage.vala" - sample_source_pixbuf = _tmp4_; -#line 158 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = view_rect_proj.x; -#line 158 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_rect_proj.x = _tmp5_ / 2; -#line 159 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = view_rect_proj.y; -#line 159 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_rect_proj.y = _tmp6_ / 2; -#line 160 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = view_rect_proj.width; -#line 160 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_rect_proj.width = _tmp7_ / 2; -#line 161 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = view_rect_proj.height; -#line 161 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_rect_proj.height = _tmp8_ / 2; -#line 3626 "PhotoPage.c" - } -#line 167 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = view_rect_proj; -#line 167 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = _tmp9_.width; -#line 167 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_rect_proj.width = CLAMP (_tmp10_, 1, G_MAXINT); -#line 168 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = view_rect_proj; -#line 168 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _tmp11_.height; -#line 168 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_rect_proj.height = CLAMP (_tmp12_, 1, G_MAXINT); -#line 170 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = view_rect; -#line 170 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = _tmp13_.width; -#line 170 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_rect.width = CLAMP (_tmp14_, 1, G_MAXINT); -#line 171 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = view_rect; -#line 171 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = _tmp15_.height; -#line 171 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_rect.height = CLAMP (_tmp16_, 1, G_MAXINT); -#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = sample_source_pixbuf; -#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = view_rect_proj; -#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = _tmp18_.x; -#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = view_rect_proj; -#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = _tmp20_.y; -#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = view_rect_proj; -#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = _tmp22_.width; -#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = view_rect_proj; -#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = _tmp24_.height; -#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = gdk_pixbuf_new_subpixbuf (_tmp17_, _tmp19_, _tmp21_, _tmp23_, _tmp25_); -#line 173 "/home/jens/Source/shotwell/src/PhotoPage.vala" - proj_subpixbuf = _tmp26_; -#line 176 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp27_ = view_rect; -#line 176 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp28_ = _tmp27_.width; -#line 176 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp29_ = view_rect; -#line 176 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp30_ = _tmp29_.height; -#line 176 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp31_ = gdk_pixbuf_scale_simple (proj_subpixbuf, _tmp28_, _tmp30_, GDK_INTERP_BILINEAR); -#line 176 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoomed = _tmp31_; -#line 179 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _vala_assert (zoomed != NULL, "zoomed != null"); -#line 181 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = zoomed; -#line 181 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (proj_subpixbuf); -#line 181 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (sample_source_pixbuf); -#line 181 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 3696 "PhotoPage.c" -} - - -static void -_zoom_buffer_on_demand_transform_complete_completion_callback (BackgroundJob* job, - gpointer self) -{ -#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_buffer_on_demand_transform_complete ((ZoomBuffer*) self, job); -#line 3706 "PhotoPage.c" -} - - -static GdkPixbuf* -zoom_buffer_get_zoomed_image_source_not_transformed (ZoomBuffer* self, - ZoomState* zoom_state) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_; - ZoomBufferTransformationJob* _tmp86_; - ZoomBufferTransformationJob* _tmp107_; - ZoomState _tmp124_; - GdkPixbuf* _tmp125_; -#line 184 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_ZOOM_BUFFER (self), NULL); -#line 184 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (zoom_state != NULL, NULL); -#line 185 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->demand_transform_cached_pixbuf; -#line 185 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_ != NULL) { -#line 3728 "PhotoPage.c" - ZoomState _tmp1_; -#line 186 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->demand_transform_zoom_state; -#line 186 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (zoom_state_equals (zoom_state, &_tmp1_)) { -#line 3734 "PhotoPage.c" - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; -#line 190 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->demand_transform_cached_pixbuf; -#line 190 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 190 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp3_; -#line 190 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 3745 "PhotoPage.c" - } else { -#line 191 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (zoom_state_get_zoom_factor (zoom_state) == zoom_state_get_zoom_factor (&self->priv->demand_transform_zoom_state)) { -#line 3749 "PhotoPage.c" - GdkRectangle curr_rect = {0}; - GdkRectangle _tmp4_ = {0}; - GdkRectangle pre_rect = {0}; - GdkRectangle _tmp5_ = {0}; - GdkRectangle transfer_src_rect = {0}; - GdkRectangle transfer_dest_rect = {0}; - GdkRectangle _tmp6_; - gint _tmp7_; - GdkRectangle _tmp8_; - gint _tmp9_; - GdkRectangle _tmp10_; - gint _tmp11_; - GdkRectangle _tmp12_; - gint _tmp13_; - GdkRectangle _tmp14_; - gint _tmp15_; - GdkRectangle _tmp16_; - gint _tmp17_; - gint transfer_src_right = 0; - GdkRectangle _tmp18_; - gint _tmp19_; - GdkRectangle _tmp20_; - gint _tmp21_; - GdkRectangle _tmp22_; - gint _tmp23_; - GdkRectangle _tmp24_; - gint _tmp25_; - gint _tmp26_; - GdkRectangle _tmp27_; - gint _tmp28_; - gint transfer_src_bottom = 0; - GdkRectangle _tmp29_; - gint _tmp30_; - GdkRectangle _tmp31_; - gint _tmp32_; - GdkRectangle _tmp33_; - gint _tmp34_; - GdkRectangle _tmp35_; - gint _tmp36_; - gint _tmp37_; - GdkRectangle _tmp38_; - gint _tmp39_; - GdkRectangle _tmp40_; - gint _tmp41_; - GdkRectangle _tmp42_; - gint _tmp43_; - GdkRectangle _tmp44_; - gint _tmp45_; - GdkRectangle _tmp46_; - gint _tmp47_; - GdkRectangle _tmp48_; - gint _tmp49_; - GdkRectangle _tmp50_; - gint _tmp51_; - gint transfer_dest_right = 0; - GdkRectangle _tmp52_; - gint _tmp53_; - GdkRectangle _tmp54_; - gint _tmp55_; - GdkRectangle _tmp56_; - gint _tmp57_; - gint _tmp58_; - GdkRectangle _tmp59_; - gint _tmp60_; - gint transfer_dest_bottom = 0; - GdkRectangle _tmp61_; - gint _tmp62_; - GdkRectangle _tmp63_; - gint _tmp64_; - GdkRectangle _tmp65_; - gint _tmp66_; - gint _tmp67_; - GdkRectangle _tmp68_; - gint _tmp69_; - GdkPixbuf* composited_result = NULL; - ZoomState _tmp70_; - GdkPixbuf* _tmp71_; - GdkPixbuf* _tmp72_; - GdkRectangle _tmp73_; - gint _tmp74_; - GdkRectangle _tmp75_; - gint _tmp76_; - GdkRectangle _tmp77_; - gint _tmp78_; - GdkRectangle _tmp79_; - gint _tmp80_; - GdkPixbuf* _tmp81_; - GdkRectangle _tmp82_; - gint _tmp83_; - GdkRectangle _tmp84_; - gint _tmp85_; -#line 202 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_get_viewing_rectangle_wrt_content (zoom_state, &_tmp4_); -#line 202 "/home/jens/Source/shotwell/src/PhotoPage.vala" - curr_rect = _tmp4_; -#line 203 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_get_viewing_rectangle_wrt_content (&self->priv->demand_transform_zoom_state, &_tmp5_); -#line 203 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pre_rect = _tmp5_; -#line 205 "/home/jens/Source/shotwell/src/PhotoPage.vala" - memset (&transfer_src_rect, 0, sizeof (GdkRectangle)); -#line 206 "/home/jens/Source/shotwell/src/PhotoPage.vala" - memset (&transfer_dest_rect, 0, sizeof (GdkRectangle)); -#line 208 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = curr_rect; -#line 208 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_.x; -#line 208 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = pre_rect; -#line 208 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = _tmp8_.x; -#line 208 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = pre_rect; -#line 208 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = _tmp10_.width; -#line 208 "/home/jens/Source/shotwell/src/PhotoPage.vala" - transfer_src_rect.x = CLAMP (_tmp7_ - _tmp9_, 0, _tmp11_); -#line 209 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = curr_rect; -#line 209 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = _tmp12_.y; -#line 209 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = pre_rect; -#line 209 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = _tmp14_.y; -#line 209 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = pre_rect; -#line 209 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = _tmp16_.height; -#line 209 "/home/jens/Source/shotwell/src/PhotoPage.vala" - transfer_src_rect.y = CLAMP (_tmp13_ - _tmp15_, 0, _tmp17_); -#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = curr_rect; -#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = _tmp18_.x; -#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = curr_rect; -#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = _tmp20_.width; -#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = pre_rect; -#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = _tmp22_.width; -#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = pre_rect; -#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = _tmp24_.width; -#line 210 "/home/jens/Source/shotwell/src/PhotoPage.vala" - transfer_src_right = CLAMP ((_tmp19_ + _tmp21_) - _tmp23_, 0, _tmp25_); -#line 212 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = transfer_src_right; -#line 212 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp27_ = transfer_src_rect; -#line 212 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp28_ = _tmp27_.x; -#line 212 "/home/jens/Source/shotwell/src/PhotoPage.vala" - transfer_src_rect.width = _tmp26_ - _tmp28_; -#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp29_ = curr_rect; -#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp30_ = _tmp29_.y; -#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp31_ = curr_rect; -#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp32_ = _tmp31_.height; -#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp33_ = pre_rect; -#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp34_ = _tmp33_.width; -#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp35_ = pre_rect; -#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp36_ = _tmp35_.height; -#line 213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - transfer_src_bottom = CLAMP ((_tmp30_ + _tmp32_) - _tmp34_, 0, _tmp36_); -#line 215 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp37_ = transfer_src_bottom; -#line 215 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp38_ = transfer_src_rect; -#line 215 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp39_ = _tmp38_.y; -#line 215 "/home/jens/Source/shotwell/src/PhotoPage.vala" - transfer_src_rect.height = _tmp37_ - _tmp39_; -#line 217 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp40_ = pre_rect; -#line 217 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp41_ = _tmp40_.x; -#line 217 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp42_ = curr_rect; -#line 217 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp43_ = _tmp42_.x; -#line 217 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp44_ = curr_rect; -#line 217 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp45_ = _tmp44_.width; -#line 217 "/home/jens/Source/shotwell/src/PhotoPage.vala" - transfer_dest_rect.x = CLAMP (_tmp41_ - _tmp43_, 0, _tmp45_); -#line 218 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp46_ = pre_rect; -#line 218 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp47_ = _tmp46_.y; -#line 218 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp48_ = curr_rect; -#line 218 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp49_ = _tmp48_.y; -#line 218 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp50_ = curr_rect; -#line 218 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp51_ = _tmp50_.height; -#line 218 "/home/jens/Source/shotwell/src/PhotoPage.vala" - transfer_dest_rect.y = CLAMP (_tmp47_ - _tmp49_, 0, _tmp51_); -#line 219 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp52_ = transfer_dest_rect; -#line 219 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp53_ = _tmp52_.x; -#line 219 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp54_ = transfer_src_rect; -#line 219 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp55_ = _tmp54_.width; -#line 219 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp56_ = curr_rect; -#line 219 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp57_ = _tmp56_.width; -#line 219 "/home/jens/Source/shotwell/src/PhotoPage.vala" - transfer_dest_right = CLAMP (_tmp53_ + _tmp55_, 0, _tmp57_); -#line 221 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp58_ = transfer_dest_right; -#line 221 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp59_ = transfer_dest_rect; -#line 221 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp60_ = _tmp59_.x; -#line 221 "/home/jens/Source/shotwell/src/PhotoPage.vala" - transfer_dest_rect.width = _tmp58_ - _tmp60_; -#line 222 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp61_ = transfer_dest_rect; -#line 222 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp62_ = _tmp61_.y; -#line 222 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp63_ = transfer_src_rect; -#line 222 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp64_ = _tmp63_.height; -#line 222 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp65_ = curr_rect; -#line 222 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp66_ = _tmp65_.height; -#line 222 "/home/jens/Source/shotwell/src/PhotoPage.vala" - transfer_dest_bottom = CLAMP (_tmp62_ + _tmp64_, 0, _tmp66_); -#line 224 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp67_ = transfer_dest_bottom; -#line 224 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp68_ = transfer_dest_rect; -#line 224 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp69_ = _tmp68_.y; -#line 224 "/home/jens/Source/shotwell/src/PhotoPage.vala" - transfer_dest_rect.height = _tmp67_ - _tmp69_; -#line 226 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp70_ = *zoom_state; -#line 226 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp71_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp70_); -#line 226 "/home/jens/Source/shotwell/src/PhotoPage.vala" - composited_result = _tmp71_; -#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp72_ = self->priv->demand_transform_cached_pixbuf; -#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp73_ = transfer_src_rect; -#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp74_ = _tmp73_.x; -#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp75_ = transfer_src_rect; -#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp76_ = _tmp75_.y; -#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp77_ = transfer_dest_rect; -#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp78_ = _tmp77_.width; -#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp79_ = transfer_dest_rect; -#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp80_ = _tmp79_.height; -#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp81_ = composited_result; -#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp82_ = transfer_dest_rect; -#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp83_ = _tmp82_.x; -#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp84_ = transfer_dest_rect; -#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp85_ = _tmp84_.y; -#line 227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gdk_pixbuf_copy_area (_tmp72_, _tmp74_, _tmp76_, _tmp78_, _tmp80_, _tmp81_, _tmp83_, _tmp85_); -#line 231 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = composited_result; -#line 231 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 4045 "PhotoPage.c" - } - } - } -#line 242 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp86_ = self->priv->demand_transform_job; -#line 242 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp86_ != NULL) { -#line 4053 "PhotoPage.c" - ZoomState _tmp87_; -#line 243 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp87_ = self->priv->demand_transform_zoom_state; -#line 243 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (zoom_state_equals (zoom_state, &_tmp87_)) { -#line 4059 "PhotoPage.c" - ZoomState _tmp88_; - GdkPixbuf* _tmp89_; -#line 244 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp88_ = *zoom_state; -#line 244 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp89_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp88_); -#line 244 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp89_; -#line 244 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 4070 "PhotoPage.c" - } else { - ZoomBufferTransformationJob* _tmp90_; - GdkPixbuf* zoomed = NULL; - ZoomState _tmp91_; - GdkPixbuf* _tmp92_; - GdkPixbuf* _tmp93_; - GdkPixbuf* _tmp94_; - GdkPixbuf* _tmp95_; - Photo* _tmp96_; - PixelTransformer* _tmp97_; - PixelTransformer* _tmp98_; - GCancellable* _tmp99_; - GCancellable* _tmp100_; - ZoomBufferTransformationJob* _tmp101_; - ZoomState _tmp102_; - Workers* _tmp103_; - ZoomBufferTransformationJob* _tmp104_; - ZoomState _tmp105_; - GdkPixbuf* _tmp106_; -#line 246 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp90_ = self->priv->demand_transform_job; -#line 246 "/home/jens/Source/shotwell/src/PhotoPage.vala" - background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp90_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 247 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _background_job_unref0 (self->priv->demand_transform_job); -#line 247 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->demand_transform_job = NULL; -#line 249 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp91_ = *zoom_state; -#line 249 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp92_ = self->priv->iso_source_image; -#line 249 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp93_ = self->priv->reduced_source_image; -#line 249 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp94_ = zoom_buffer_get_view_projection_pixbuf (self, &_tmp91_, _tmp92_, _tmp93_); -#line 249 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoomed = _tmp94_; -#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp95_ = zoomed; -#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp96_ = self->priv->backing_photo; -#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp97_ = photo_get_pixel_transformer (_tmp96_); -#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp98_ = _tmp97_; -#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp99_ = g_cancellable_new (); -#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp100_ = _tmp99_; -#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp101_ = zoom_buffer_transformation_job_new (self, _tmp95_, _tmp98_, _zoom_buffer_on_demand_transform_complete_completion_callback, self, _tmp100_); -#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _background_job_unref0 (self->priv->demand_transform_job); -#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->demand_transform_job = _tmp101_; -#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp100_); -#line 252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _pixel_transformer_unref0 (_tmp98_); -#line 255 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp102_ = *zoom_state; -#line 255 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->demand_transform_zoom_state = _tmp102_; -#line 256 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp103_ = self->priv->workers; -#line 256 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp104_ = self->priv->demand_transform_job; -#line 256 "/home/jens/Source/shotwell/src/PhotoPage.vala" - workers_enqueue (_tmp103_, G_TYPE_CHECK_INSTANCE_CAST (_tmp104_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 258 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp105_ = *zoom_state; -#line 258 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp106_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp105_); -#line 258 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp106_; -#line 258 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (zoomed); -#line 258 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 4150 "PhotoPage.c" - } - } -#line 263 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp107_ = self->priv->demand_transform_job; -#line 263 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp107_ == NULL) { -#line 4157 "PhotoPage.c" - GdkPixbuf* zoomed = NULL; - ZoomState _tmp108_; - GdkPixbuf* _tmp109_; - GdkPixbuf* _tmp110_; - GdkPixbuf* _tmp111_; - GdkPixbuf* _tmp112_; - Photo* _tmp113_; - PixelTransformer* _tmp114_; - PixelTransformer* _tmp115_; - GCancellable* _tmp116_; - GCancellable* _tmp117_; - ZoomBufferTransformationJob* _tmp118_; - ZoomState _tmp119_; - Workers* _tmp120_; - ZoomBufferTransformationJob* _tmp121_; - ZoomState _tmp122_; - GdkPixbuf* _tmp123_; -#line 264 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp108_ = *zoom_state; -#line 264 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp109_ = self->priv->iso_source_image; -#line 264 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp110_ = self->priv->reduced_source_image; -#line 264 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp111_ = zoom_buffer_get_view_projection_pixbuf (self, &_tmp108_, _tmp109_, _tmp110_); -#line 264 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoomed = _tmp111_; -#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp112_ = zoomed; -#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp113_ = self->priv->backing_photo; -#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp114_ = photo_get_pixel_transformer (_tmp113_); -#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp115_ = _tmp114_; -#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp116_ = g_cancellable_new (); -#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp117_ = _tmp116_; -#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp118_ = zoom_buffer_transformation_job_new (self, _tmp112_, _tmp115_, _zoom_buffer_on_demand_transform_complete_completion_callback, self, _tmp117_); -#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _background_job_unref0 (self->priv->demand_transform_job); -#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->demand_transform_job = _tmp118_; -#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp117_); -#line 267 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _pixel_transformer_unref0 (_tmp115_); -#line 271 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp119_ = *zoom_state; -#line 271 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->demand_transform_zoom_state = _tmp119_; -#line 273 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp120_ = self->priv->workers; -#line 273 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp121_ = self->priv->demand_transform_job; -#line 273 "/home/jens/Source/shotwell/src/PhotoPage.vala" - workers_enqueue (_tmp120_, G_TYPE_CHECK_INSTANCE_CAST (_tmp121_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 275 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp122_ = *zoom_state; -#line 275 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp123_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp122_); -#line 275 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp123_; -#line 275 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (zoomed); -#line 275 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 4227 "PhotoPage.c" - } -#line 283 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_critical ("PhotoPage.vala:283: %s", "ZoomBuffer: get_zoomed_image( ): in SOURCE-NOT-TRANSFORMED but can't t" \ -"ransform " "on-screen projection on-demand; using preview image"); -#line 285 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp124_ = *zoom_state; -#line 285 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp125_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp124_); -#line 285 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp125_; -#line 285 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 4239 "PhotoPage.c" -} - - -static void -_zoom_buffer_on_iso_source_fetch_complete_completion_callback (BackgroundJob* job, - gpointer self) -{ -#line 290 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_buffer_on_iso_source_fetch_complete ((ZoomBuffer*) self, job); -#line 4249 "PhotoPage.c" -} - - -GdkPixbuf* -zoom_buffer_get_zoom_preview_image_internal (ZoomBuffer* self, - ZoomState* zoom_state) -{ - GdkPixbuf* result = NULL; - ZoomBufferObjectState _tmp0_; - GdkRectangle view_rect = {0}; - GdkRectangle _tmp5_ = {0}; - GdkRectangle view_rect_proj = {0}; - GdkPixbuf* _tmp6_; - GdkRectangle _tmp7_ = {0}; - GdkRectangle _tmp8_; - gint _tmp9_; - GdkRectangle _tmp10_; - gint _tmp11_; - GdkPixbuf* proj_subpixbuf = NULL; - GdkPixbuf* _tmp12_; - GdkRectangle _tmp13_; - gint _tmp14_; - GdkRectangle _tmp15_; - gint _tmp16_; - GdkRectangle _tmp17_; - gint _tmp18_; - GdkRectangle _tmp19_; - gint _tmp20_; - GdkPixbuf* _tmp21_; - GdkPixbuf* zoomed = NULL; - GdkRectangle _tmp22_; - gint _tmp23_; - GdkRectangle _tmp24_; - gint _tmp25_; - GdkPixbuf* _tmp26_; -#line 288 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_ZOOM_BUFFER (self), NULL); -#line 288 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (zoom_state != NULL, NULL); -#line 289 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->object_state; -#line 289 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_ == ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_LOADED) { -#line 4293 "PhotoPage.c" - BackgroundJob* iso_source_fetch_job = NULL; - Photo* _tmp1_; - ZoomBufferIsoSourceFetchJob* _tmp2_; - Workers* _tmp3_; - BackgroundJob* _tmp4_; -#line 290 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->backing_photo; -#line 290 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = zoom_buffer_iso_source_fetch_job_new (self, _tmp1_, _zoom_buffer_on_iso_source_fetch_complete_completion_callback, self); -#line 290 "/home/jens/Source/shotwell/src/PhotoPage.vala" - iso_source_fetch_job = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_BACKGROUND_JOB, BackgroundJob); -#line 292 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = self->priv->workers; -#line 292 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = iso_source_fetch_job; -#line 292 "/home/jens/Source/shotwell/src/PhotoPage.vala" - workers_enqueue (_tmp3_, _tmp4_); -#line 294 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->object_state = ZOOM_BUFFER_OBJECT_STATE_SOURCE_LOAD_IN_PROGRESS; -#line 289 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _background_job_unref0 (iso_source_fetch_job); -#line 4315 "PhotoPage.c" - } -#line 296 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_get_viewing_rectangle_wrt_content (zoom_state, &_tmp5_); -#line 296 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_rect = _tmp5_; -#line 297 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = self->priv->preview_image; -#line 297 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_get_viewing_rectangle_projection (zoom_state, _tmp6_, &_tmp7_); -#line 297 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_rect_proj = _tmp7_; -#line 300 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = view_rect_proj; -#line 300 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = _tmp8_.width; -#line 300 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_rect_proj.width = CLAMP (_tmp9_, 1, G_MAXINT); -#line 301 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = view_rect_proj; -#line 301 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = _tmp10_.height; -#line 301 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_rect_proj.height = CLAMP (_tmp11_, 1, G_MAXINT); -#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = self->priv->preview_image; -#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = view_rect_proj; -#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = _tmp13_.x; -#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = view_rect_proj; -#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = _tmp15_.y; -#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = view_rect_proj; -#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = _tmp17_.width; -#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = view_rect_proj; -#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = _tmp19_.height; -#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = gdk_pixbuf_new_subpixbuf (_tmp12_, _tmp14_, _tmp16_, _tmp18_, _tmp20_); -#line 303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - proj_subpixbuf = _tmp21_; -#line 306 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = view_rect; -#line 306 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = _tmp22_.width; -#line 306 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = view_rect; -#line 306 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = _tmp24_.height; -#line 306 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = gdk_pixbuf_scale_simple (proj_subpixbuf, _tmp23_, _tmp25_, GDK_INTERP_BILINEAR); -#line 306 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoomed = _tmp26_; -#line 309 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = zoomed; -#line 309 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (proj_subpixbuf); -#line 309 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 4379 "PhotoPage.c" -} - - -Photo* -zoom_buffer_get_backing_photo (ZoomBuffer* self) -{ - Photo* result = NULL; - Photo* _tmp0_; - Photo* _tmp1_; -#line 312 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_ZOOM_BUFFER (self), NULL); -#line 313 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->backing_photo; -#line 313 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 313 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp1_; -#line 313 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 4399 "PhotoPage.c" -} - - -void -zoom_buffer_update_preview_image (ZoomBuffer* self, - GdkPixbuf* preview_image) -{ - GdkPixbuf* _tmp0_; -#line 316 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_ZOOM_BUFFER (self)); -#line 316 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (GDK_IS_PIXBUF (preview_image)); -#line 317 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = _g_object_ref0 (preview_image); -#line 317 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->preview_image); -#line 317 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->preview_image = _tmp0_; -#line 4418 "PhotoPage.c" -} - - -void -zoom_buffer_flush_demand_cache (ZoomBuffer* self, - ZoomState* initial_zoom_state) -{ -#line 322 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_ZOOM_BUFFER (self)); -#line 323 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->demand_transform_cached_pixbuf); -#line 323 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->demand_transform_cached_pixbuf = NULL; -#line 324 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (initial_zoom_state != NULL) { -#line 4434 "PhotoPage.c" - ZoomState _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; -#line 325 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = *initial_zoom_state; -#line 325 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = zoom_buffer_get_zoomed_image (self, &_tmp0_); -#line 325 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 325 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 4446 "PhotoPage.c" - } -} - - -GdkPixbuf* -zoom_buffer_get_zoomed_image (ZoomBuffer* self, - ZoomState* zoom_state) -{ - GdkPixbuf* result = NULL; - ZoomBufferObjectState _tmp2_; -#line 328 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_ZOOM_BUFFER (self), NULL); -#line 328 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (zoom_state != NULL, NULL); -#line 329 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->is_interactive_redraw_in_progress = FALSE; -#line 333 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (zoom_state_get_interpolation_factor (zoom_state) == 0.0) { -#line 4465 "PhotoPage.c" - ZoomState _tmp0_; - GdkPixbuf* _tmp1_; -#line 334 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = *zoom_state; -#line 334 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp0_); -#line 334 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp1_; -#line 334 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 4476 "PhotoPage.c" - } -#line 337 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->object_state; -#line 337 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (_tmp2_) { -#line 337 "/home/jens/Source/shotwell/src/PhotoPage.vala" - case ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_LOADED: -#line 337 "/home/jens/Source/shotwell/src/PhotoPage.vala" - case ZOOM_BUFFER_OBJECT_STATE_SOURCE_LOAD_IN_PROGRESS: -#line 4486 "PhotoPage.c" - { - ZoomState _tmp3_; - GdkPixbuf* _tmp4_; -#line 340 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = *zoom_state; -#line 340 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp3_); -#line 340 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp4_; -#line 340 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 4498 "PhotoPage.c" - } -#line 337 "/home/jens/Source/shotwell/src/PhotoPage.vala" - case ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_TRANSFORMED: -#line 4502 "PhotoPage.c" - { - ZoomState _tmp5_; - GdkPixbuf* _tmp6_; -#line 343 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = *zoom_state; -#line 343 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = zoom_buffer_get_zoomed_image_source_not_transformed (self, &_tmp5_); -#line 343 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp6_; -#line 343 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 4514 "PhotoPage.c" - } -#line 337 "/home/jens/Source/shotwell/src/PhotoPage.vala" - case ZOOM_BUFFER_OBJECT_STATE_TRANSFORMED_READY: -#line 4518 "PhotoPage.c" - { - ZoomState _tmp7_; - GdkPixbuf* _tmp8_; - GdkPixbuf* _tmp9_; - GdkPixbuf* _tmp10_; -#line 348 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = *zoom_state; -#line 348 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = self->priv->iso_transformed_image; -#line 348 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = self->priv->reduced_transformed_image; -#line 348 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = zoom_buffer_get_view_projection_pixbuf (self, &_tmp7_, _tmp8_, _tmp9_); -#line 348 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp10_; -#line 348 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 4536 "PhotoPage.c" - } - default: - { - ZoomState _tmp11_; - GdkPixbuf* _tmp12_; -#line 352 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_critical ("PhotoPage.vala:352: ZoomBuffer: get_zoomed_image( ): object is an inco" \ -"nsistent state"); -#line 353 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = *zoom_state; -#line 353 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp11_); -#line 353 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp12_; -#line 353 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 4552 "PhotoPage.c" - } - } -} - - -GdkPixbuf* -zoom_buffer_get_zoom_preview_image (ZoomBuffer* self, - ZoomState* zoom_state) -{ - GdkPixbuf* result = NULL; - ZoomState _tmp0_; - GdkPixbuf* _tmp1_; -#line 357 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_ZOOM_BUFFER (self), NULL); -#line 357 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (zoom_state != NULL, NULL); -#line 358 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->is_interactive_redraw_in_progress = TRUE; -#line 360 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = *zoom_state; -#line 360 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = zoom_buffer_get_zoom_preview_image_internal (self, &_tmp0_); -#line 360 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp1_; -#line 360 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 4579 "PhotoPage.c" -} - - -static ZoomBufferIsoSourceFetchJob* -zoom_buffer_iso_source_fetch_job_construct (GType object_type, - ZoomBuffer* owner, - Photo* to_fetch, - CompletionCallback completion_callback, - void* completion_callback_target) -{ - ZoomBufferIsoSourceFetchJob* self = NULL; - Photo* _tmp0_; -#line 20 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_ZOOM_BUFFER (owner), NULL); -#line 20 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_PHOTO (to_fetch), NULL); -#line 22 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = (ZoomBufferIsoSourceFetchJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), completion_callback, completion_callback_target, NULL, NULL, NULL, NULL); -#line 24 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = _g_object_ref0 (to_fetch); -#line 24 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->to_fetch); -#line 24 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->to_fetch = _tmp0_; -#line 20 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return self; -#line 4606 "PhotoPage.c" -} - - -static ZoomBufferIsoSourceFetchJob* -zoom_buffer_iso_source_fetch_job_new (ZoomBuffer* owner, - Photo* to_fetch, - CompletionCallback completion_callback, - void* completion_callback_target) -{ -#line 20 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return zoom_buffer_iso_source_fetch_job_construct (ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB, owner, to_fetch, completion_callback, completion_callback_target); -#line 4618 "PhotoPage.c" -} - - -static void -zoom_buffer_iso_source_fetch_job_real_execute (BackgroundJob* base) -{ - ZoomBufferIsoSourceFetchJob * self; - GError * _inner_error_ = NULL; -#line 27 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB, ZoomBufferIsoSourceFetchJob); -#line 4629 "PhotoPage.c" - { - GdkPixbuf* _tmp0_ = NULL; - Photo* _tmp1_; - Scaling _tmp2_ = {0}; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; -#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->to_fetch; -#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala" - scaling_for_original (&_tmp2_); -#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = photo_get_pixbuf_with_options (_tmp1_, &_tmp2_, PHOTO_EXCEPTION_ADJUST, BACKING_FETCH_MODE_BASELINE, &_inner_error_); -#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = _tmp3_; -#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4646 "PhotoPage.c" - goto __catch255_g_error; - } -#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp0_; -#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = NULL; -#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->fetched); -#line 29 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->fetched = _tmp4_; -#line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp0_); -#line 4659 "PhotoPage.c" - } - goto __finally255; - __catch255_g_error: - { - GError* fetch_error = NULL; -#line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala" - fetch_error = _inner_error_; -#line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _inner_error_ = NULL; -#line 32 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_critical ("PhotoPage.vala:32: IsoSourceFetchJob: execute( ): can't get pixbuf fro" \ -"m backing photo"); -#line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_error_free0 (fetch_error); -#line 4673 "PhotoPage.c" - } - __finally255: -#line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_clear_error (&_inner_error_); -#line 28 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 4684 "PhotoPage.c" - } -} - - -static void -zoom_buffer_iso_source_fetch_job_class_init (ZoomBufferIsoSourceFetchJobClass * klass) -{ -#line 15 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_buffer_iso_source_fetch_job_parent_class = g_type_class_peek_parent (klass); -#line 15 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((BackgroundJobClass *) klass)->finalize = zoom_buffer_iso_source_fetch_job_finalize; -#line 15 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_type_class_add_private (klass, sizeof (ZoomBufferIsoSourceFetchJobPrivate)); -#line 15 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) zoom_buffer_iso_source_fetch_job_real_execute; -#line 4700 "PhotoPage.c" -} - - -static void -zoom_buffer_iso_source_fetch_job_instance_init (ZoomBufferIsoSourceFetchJob * self) -{ -#line 15 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv = ZOOM_BUFFER_ISO_SOURCE_FETCH_JOB_GET_PRIVATE (self); -#line 18 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->fetched = NULL; -#line 4711 "PhotoPage.c" -} - - -static void -zoom_buffer_iso_source_fetch_job_finalize (BackgroundJob * obj) -{ - ZoomBufferIsoSourceFetchJob * self; -#line 15 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, ZOOM_BUFFER_TYPE_ISO_SOURCE_FETCH_JOB, ZoomBufferIsoSourceFetchJob); -#line 16 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->to_fetch); -#line 18 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->fetched); -#line 15 "/home/jens/Source/shotwell/src/PhotoPage.vala" - BACKGROUND_JOB_CLASS (zoom_buffer_iso_source_fetch_job_parent_class)->finalize (obj); -#line 4727 "PhotoPage.c" -} - - -static GType -zoom_buffer_iso_source_fetch_job_get_type (void) -{ - static volatile gsize zoom_buffer_iso_source_fetch_job_type_id__volatile = 0; - if (g_once_init_enter (&zoom_buffer_iso_source_fetch_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ZoomBufferIsoSourceFetchJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) zoom_buffer_iso_source_fetch_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ZoomBufferIsoSourceFetchJob), 0, (GInstanceInitFunc) zoom_buffer_iso_source_fetch_job_instance_init, NULL }; - GType zoom_buffer_iso_source_fetch_job_type_id; - zoom_buffer_iso_source_fetch_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "ZoomBufferIsoSourceFetchJob", &g_define_type_info, 0); - g_once_init_leave (&zoom_buffer_iso_source_fetch_job_type_id__volatile, zoom_buffer_iso_source_fetch_job_type_id); - } - return zoom_buffer_iso_source_fetch_job_type_id__volatile; -} - - -static gpointer -_pixel_transformer_ref0 (gpointer self) -{ -#line 55 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return self ? pixel_transformer_ref (self) : NULL; -#line 4750 "PhotoPage.c" -} - - -static ZoomBufferTransformationJob* -zoom_buffer_transformation_job_construct (GType object_type, - ZoomBuffer* owner, - GdkPixbuf* to_transform, - PixelTransformer* transformer, - CompletionCallback completion_callback, - void* completion_callback_target, - GCancellable* cancellable) -{ - ZoomBufferTransformationJob* self = NULL; - GCancellable* _tmp0_; - GdkPixbuf* _tmp1_; - PixelTransformer* _tmp2_; - GdkPixbuf* _tmp3_; -#line 49 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_ZOOM_BUFFER (owner), NULL); -#line 49 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (GDK_IS_PIXBUF (to_transform), NULL); -#line 49 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail ((transformer == NULL) || IS_PIXEL_TRANSFORMER (transformer), NULL); -#line 49 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL); -#line 51 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = (ZoomBufferTransformationJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), completion_callback, completion_callback_target, cancellable, NULL, NULL, NULL); -#line 53 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = _g_object_ref0 (cancellable); -#line 53 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->cancellable); -#line 53 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->cancellable = _tmp0_; -#line 54 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _g_object_ref0 (to_transform); -#line 54 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->to_transform); -#line 54 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->to_transform = _tmp1_; -#line 55 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _pixel_transformer_ref0 (transformer); -#line 55 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _pixel_transformer_unref0 (self->priv->transformer); -#line 55 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->transformer = _tmp2_; -#line 56 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = gdk_pixbuf_copy (to_transform); -#line 56 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->transformed); -#line 56 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->transformed = _tmp3_; -#line 49 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return self; -#line 4804 "PhotoPage.c" -} - - -static ZoomBufferTransformationJob* -zoom_buffer_transformation_job_new (ZoomBuffer* owner, - GdkPixbuf* to_transform, - PixelTransformer* transformer, - CompletionCallback completion_callback, - void* completion_callback_target, - GCancellable* cancellable) -{ -#line 49 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return zoom_buffer_transformation_job_construct (ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, owner, to_transform, transformer, completion_callback, completion_callback_target, cancellable); -#line 4818 "PhotoPage.c" -} - - -static void -zoom_buffer_transformation_job_real_execute (BackgroundJob* base) -{ - ZoomBufferTransformationJob * self; - PixelTransformer* _tmp0_; -#line 59 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, ZoomBufferTransformationJob); -#line 60 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->transformer; -#line 60 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_ != NULL) { -#line 4833 "PhotoPage.c" - PixelTransformer* _tmp1_; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GCancellable* _tmp4_; -#line 61 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->transformer; -#line 61 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->to_transform; -#line 61 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = self->transformed; -#line 61 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = self->priv->cancellable; -#line 61 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixel_transformer_transform_to_other_pixbuf (_tmp1_, _tmp2_, _tmp3_, _tmp4_, -1); -#line 4848 "PhotoPage.c" - } -} - - -static void -zoom_buffer_transformation_job_class_init (ZoomBufferTransformationJobClass * klass) -{ -#line 42 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_buffer_transformation_job_parent_class = g_type_class_peek_parent (klass); -#line 42 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((BackgroundJobClass *) klass)->finalize = zoom_buffer_transformation_job_finalize; -#line 42 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_type_class_add_private (klass, sizeof (ZoomBufferTransformationJobPrivate)); -#line 42 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) zoom_buffer_transformation_job_real_execute; -#line 4864 "PhotoPage.c" -} - - -static void -zoom_buffer_transformation_job_instance_init (ZoomBufferTransformationJob * self) -{ -#line 42 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv = ZOOM_BUFFER_TRANSFORMATION_JOB_GET_PRIVATE (self); -#line 47 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->transformed = NULL; -#line 4875 "PhotoPage.c" -} - - -static void -zoom_buffer_transformation_job_finalize (BackgroundJob * obj) -{ - ZoomBufferTransformationJob * self; -#line 42 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, ZOOM_BUFFER_TYPE_TRANSFORMATION_JOB, ZoomBufferTransformationJob); -#line 43 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->to_transform); -#line 44 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _pixel_transformer_unref0 (self->priv->transformer); -#line 45 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->cancellable); -#line 47 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->transformed); -#line 42 "/home/jens/Source/shotwell/src/PhotoPage.vala" - BACKGROUND_JOB_CLASS (zoom_buffer_transformation_job_parent_class)->finalize (obj); -#line 4895 "PhotoPage.c" -} - - -static GType -zoom_buffer_transformation_job_get_type (void) -{ - static volatile gsize zoom_buffer_transformation_job_type_id__volatile = 0; - if (g_once_init_enter (&zoom_buffer_transformation_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ZoomBufferTransformationJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) zoom_buffer_transformation_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ZoomBufferTransformationJob), 0, (GInstanceInitFunc) zoom_buffer_transformation_job_instance_init, NULL }; - GType zoom_buffer_transformation_job_type_id; - zoom_buffer_transformation_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "ZoomBufferTransformationJob", &g_define_type_info, 0); - g_once_init_leave (&zoom_buffer_transformation_job_type_id__volatile, zoom_buffer_transformation_job_type_id); - } - return zoom_buffer_transformation_job_type_id__volatile; -} - - -static void -zoom_buffer_class_init (ZoomBufferClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_buffer_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_type_class_add_private (klass, sizeof (ZoomBufferPrivate)); -#line 7 "/home/jens/Source/shotwell/src/PhotoPage.vala" - G_OBJECT_CLASS (klass)->finalize = zoom_buffer_finalize; -#line 4922 "PhotoPage.c" -} - - -static void -zoom_buffer_instance_init (ZoomBuffer * self) -{ -#line 7 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv = ZOOM_BUFFER_GET_PRIVATE (self); -#line 69 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->iso_source_image = NULL; -#line 70 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->reduced_source_image = NULL; -#line 71 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->iso_transformed_image = NULL; -#line 72 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->reduced_transformed_image = NULL; -#line 73 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->preview_image = NULL; -#line 74 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->backing_photo = NULL; -#line 75 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->object_state = ZOOM_BUFFER_OBJECT_STATE_SOURCE_NOT_LOADED; -#line 76 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->demand_transform_cached_pixbuf = NULL; -#line 78 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->demand_transform_job = NULL; -#line 80 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->workers = NULL; -#line 82 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->is_interactive_redraw_in_progress = FALSE; -#line 4953 "PhotoPage.c" -} - - -static void -zoom_buffer_finalize (GObject * obj) -{ - ZoomBuffer * self; -#line 7 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ZOOM_BUFFER, ZoomBuffer); -#line 69 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->iso_source_image); -#line 70 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->reduced_source_image); -#line 71 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->iso_transformed_image); -#line 72 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->reduced_transformed_image); -#line 73 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->preview_image); -#line 74 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->backing_photo); -#line 76 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->demand_transform_cached_pixbuf); -#line 78 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _background_job_unref0 (self->priv->demand_transform_job); -#line 80 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _workers_unref0 (self->priv->workers); -#line 81 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->parent_page); -#line 7 "/home/jens/Source/shotwell/src/PhotoPage.vala" - G_OBJECT_CLASS (zoom_buffer_parent_class)->finalize (obj); -#line 4985 "PhotoPage.c" -} - - -GType -zoom_buffer_get_type (void) -{ - static volatile gsize zoom_buffer_type_id__volatile = 0; - if (g_once_init_enter (&zoom_buffer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ZoomBufferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) zoom_buffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ZoomBuffer), 0, (GInstanceInitFunc) zoom_buffer_instance_init, NULL }; - GType zoom_buffer_type_id; - zoom_buffer_type_id = g_type_register_static (G_TYPE_OBJECT, "ZoomBuffer", &g_define_type_info, 0); - g_once_init_leave (&zoom_buffer_type_id__volatile, zoom_buffer_type_id); - } - return zoom_buffer_type_id__volatile; -} - - -static void -_editing_host_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 551 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_photos_altered ((EditingHostPage*) self, items); -#line 5010 "PhotoPage.c" -} - - -static void -_editing_host_page_on_view_contents_ordering_altered_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self) -{ -#line 553 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_view_contents_ordering_altered ((EditingHostPage*) self); -#line 5022 "PhotoPage.c" -} - - -static void -_editing_host_page_on_view_contents_ordering_altered_data_collection_ordering_changed (DataCollection* _sender, - gpointer self) -{ -#line 554 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_view_contents_ordering_altered ((EditingHostPage*) self); -#line 5032 "PhotoPage.c" -} - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 420 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return self ? data_collection_ref (self) : NULL; -#line 5041 "PhotoPage.c" -} - - -static void -_editing_host_page_on_viewport_resized_gtk_widget_size_allocate (GtkWidget* _sender, - GtkAllocation* allocation, - gpointer self) -{ -#line 431 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_viewport_resized ((EditingHostPage*) self); -#line 5052 "PhotoPage.c" -} - - -static void -_editing_host_page_on_rotate_clockwise_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self) -{ -#line 440 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_rotate_clockwise ((EditingHostPage*) self); -#line 5062 "PhotoPage.c" -} - - -static void -_editing_host_page_on_crop_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, - gpointer self) -{ -#line 452 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_crop_toggled ((EditingHostPage*) self); -#line 5072 "PhotoPage.c" -} - - -static void -_editing_host_page_on_straighten_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, - gpointer self) -{ -#line 461 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_straighten_toggled ((EditingHostPage*) self); -#line 5082 "PhotoPage.c" -} - - -static void -_editing_host_page_on_redeye_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, - gpointer self) -{ -#line 470 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_redeye_toggled ((EditingHostPage*) self); -#line 5092 "PhotoPage.c" -} - - -static void -_editing_host_page_on_adjust_toggled_gtk_toggle_tool_button_toggled (GtkToggleToolButton* _sender, - gpointer self) -{ -#line 479 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_adjust_toggled ((EditingHostPage*) self); -#line 5102 "PhotoPage.c" -} - - -static void -_editing_host_page_on_enhance_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self) -{ -#line 487 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_enhance ((EditingHostPage*) self); -#line 5112 "PhotoPage.c" -} - - -static gboolean -_editing_host_page_on_zoom_out_pressed_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self) -{ - gboolean result; - result = editing_host_page_on_zoom_out_pressed ((EditingHostPage*) self, event); -#line 506 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 5125 "PhotoPage.c" -} - - -static void -_editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed (GtkRange* _sender, - gpointer self) -{ -#line 514 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_zoom_slider_value_changed ((EditingHostPage*) self); -#line 5135 "PhotoPage.c" -} - - -static gboolean -_editing_host_page_on_zoom_slider_drag_begin_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self) -{ - gboolean result; - result = editing_host_page_on_zoom_slider_drag_begin ((EditingHostPage*) self, event); -#line 515 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 5148 "PhotoPage.c" -} - - -static gboolean -_editing_host_page_on_zoom_slider_drag_end_gtk_widget_button_release_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self) -{ - gboolean result; - result = editing_host_page_on_zoom_slider_drag_end ((EditingHostPage*) self, event); -#line 516 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 5161 "PhotoPage.c" -} - - -static gboolean -_editing_host_page_on_zoom_slider_key_press_gtk_widget_key_press_event (GtkWidget* _sender, - GdkEventKey* event, - gpointer self) -{ - gboolean result; - result = editing_host_page_on_zoom_slider_key_press ((EditingHostPage*) self, event); -#line 517 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 5174 "PhotoPage.c" -} - - -static gboolean -_editing_host_page_on_zoom_in_pressed_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self) -{ - gboolean result; - result = editing_host_page_on_zoom_in_pressed ((EditingHostPage*) self, event); -#line 528 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 5187 "PhotoPage.c" -} - - -static void -_single_photo_page_on_previous_photo_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self) -{ -#line 540 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_on_previous_photo ((SinglePhotoPage*) self); -#line 5197 "PhotoPage.c" -} - - -static void -_single_photo_page_on_next_photo_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self) -{ -#line 546 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_on_next_photo ((SinglePhotoPage*) self); -#line 5207 "PhotoPage.c" -} - - -EditingHostPage* -editing_host_page_construct (GType object_type, - SourceCollection* sources, - const gchar* name) -{ - EditingHostPage * self = NULL; - SourceCollection* _tmp0_; - ViewCollection* _tmp1_; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GtkViewport* _tmp5_; - GtkToolbar* toolbar = NULL; - GtkToolbar* _tmp6_; - GtkToolButton* _tmp7_; - GtkToolButton* _tmp8_; - GtkToolButton* _tmp9_; - GtkToolButton* _tmp10_; - GtkToolButton* _tmp11_; - GtkToolButton* _tmp12_; - GtkBindingSet* binding_set = NULL; - GtkToolButton* _tmp13_; - GObjectClass* _tmp14_; - GtkBindingSet* _tmp15_; - GtkToggleToolButton* _tmp16_; - GtkToggleToolButton* _tmp17_; - GtkToggleToolButton* _tmp18_; - GtkToggleToolButton* _tmp19_; - GtkToggleToolButton* _tmp20_; - GtkToggleToolButton* _tmp21_; - GtkToggleToolButton* _tmp22_; - GtkToggleToolButton* _tmp23_; - GtkToggleToolButton* _tmp24_; - GtkToggleToolButton* _tmp25_; - GtkToggleToolButton* _tmp26_; - GtkToggleToolButton* _tmp27_; - GtkToggleToolButton* _tmp28_; - GtkToggleToolButton* _tmp29_; - GtkToggleToolButton* _tmp30_; - GtkToggleToolButton* _tmp31_; - GtkToggleToolButton* _tmp32_; - GtkToggleToolButton* _tmp33_; - GtkToggleToolButton* _tmp34_; - GtkToggleToolButton* _tmp35_; - GtkToggleToolButton* _tmp36_; - GtkToggleToolButton* _tmp37_; - GtkToggleToolButton* _tmp38_; - GtkToggleToolButton* _tmp39_; - GtkToggleToolButton* _tmp40_; - GtkToggleToolButton* _tmp41_; - GtkToggleToolButton* _tmp42_; - GtkToggleToolButton* _tmp43_; - GtkToolButton* _tmp44_; - GtkToolButton* _tmp45_; - GtkToolButton* _tmp46_; - GtkToolButton* _tmp47_; - GtkToolButton* _tmp48_; - GtkToolButton* _tmp49_; - GtkSeparatorToolItem* separator = NULL; - GtkSeparatorToolItem* _tmp50_; - GtkBox* zoom_group = NULL; - GtkBox* _tmp51_; - GtkImage* zoom_out = NULL; - GdkPixbuf* _tmp52_; - GdkPixbuf* _tmp53_; - GtkImage* _tmp54_; - GtkImage* _tmp55_; - GtkEventBox* zoom_out_box = NULL; - GtkEventBox* _tmp56_; - GtkAdjustment* _tmp57_; - GtkAdjustment* _tmp58_; - GtkScale* _tmp59_; - GtkScale* _tmp60_; - GtkScale* _tmp61_; - GtkScale* _tmp62_; - GtkScale* _tmp63_; - GtkScale* _tmp64_; - GtkScale* _tmp65_; - GtkScale* _tmp66_; - GtkImage* zoom_in = NULL; - GdkPixbuf* _tmp67_; - GdkPixbuf* _tmp68_; - GtkImage* _tmp69_; - GtkImage* _tmp70_; - GtkEventBox* zoom_in_box = NULL; - GtkEventBox* _tmp71_; - GtkToolItem* group_wrapper = NULL; - GtkToolItem* _tmp72_; - GtkToolButton* _tmp73_; - GtkToolButton* _tmp74_; - GtkToolButton* _tmp75_; - GtkToolButton* _tmp76_; - GtkToolButton* _tmp77_; - GtkToolButton* _tmp78_; - GtkToolButton* _tmp79_; - GtkToolButton* _tmp80_; -#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_SOURCE_COLLECTION (sources), NULL); -#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 418 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = (EditingHostPage*) single_photo_page_construct (object_type, name, FALSE); -#line 420 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = _data_collection_ref0 (sources); -#line 420 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (self->priv->sources); -#line 420 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->sources = _tmp0_; -#line 423 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _editing_host_page_on_photos_altered_data_collection_items_altered, self, 0); -#line 426 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 426 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 426 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _editing_host_page_on_view_contents_ordering_altered_data_collection_contents_altered, self, 0); -#line 426 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp2_); -#line 427 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 427 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 427 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), "ordering-changed", (GCallback) _editing_host_page_on_view_contents_ordering_altered_data_collection_ordering_changed, self, 0); -#line 427 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp4_); -#line 431 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)->viewport; -#line 431 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), "size-allocate", (GCallback) _editing_host_page_on_viewport_resized_gtk_widget_size_allocate, self, 0); -#line 434 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 434 "/home/jens/Source/shotwell/src/PhotoPage.vala" - toolbar = _tmp6_; -#line 437 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = (GtkToolButton*) gtk_tool_button_new (NULL, RESOURCES_ROTATE_CW_LABEL); -#line 437 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp7_); -#line 437 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->rotate_button); -#line 437 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->rotate_button = _tmp7_; -#line 438 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = self->priv->rotate_button; -#line 438 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_button_set_icon_name (_tmp8_, RESOURCES_CLOCKWISE); -#line 439 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = self->priv->rotate_button; -#line 439 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ROTATE_CW_TOOLTIP); -#line 440 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = self->priv->rotate_button; -#line 440 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (_tmp10_, "clicked", (GCallback) _editing_host_page_on_rotate_clockwise_gtk_tool_button_clicked, self, 0); -#line 441 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = self->priv->rotate_button; -#line 441 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_tool_item_get_type (), GtkToolItem), TRUE); -#line 442 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = self->priv->rotate_button; -#line 442 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 443 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = self->priv->rotate_button; -#line 443 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = G_OBJECT_GET_CLASS (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, G_TYPE_OBJECT, GObject)); -#line 443 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = gtk_binding_set_by_class ((gpointer) _tmp14_); -#line 443 "/home/jens/Source/shotwell/src/PhotoPage.vala" - binding_set = _tmp15_; -#line 444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_binding_entry_add_signal (binding_set, (guint) GDK_KEY_KP_Space, GDK_CONTROL_MASK, "clicked", (guint) 0, NULL); -#line 445 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_binding_entry_add_signal (binding_set, (guint) GDK_KEY_space, GDK_CONTROL_MASK, "clicked", (guint) 0, NULL); -#line 448 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = (GtkToggleToolButton*) gtk_toggle_tool_button_new (); -#line 448 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp16_); -#line 448 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->crop_button); -#line 448 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->crop_button = _tmp16_; -#line 449 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = self->priv->crop_button; -#line 449 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_button_set_icon_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_tool_button_get_type (), GtkToolButton), "crop"); -#line 450 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = self->priv->crop_button; -#line 450 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_tool_button_get_type (), GtkToolButton), RESOURCES_CROP_LABEL); -#line 451 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = self->priv->crop_button; -#line 451 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_CROP_TOOLTIP); -#line 452 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = self->priv->crop_button; -#line 452 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (_tmp20_, "toggled", (GCallback) _editing_host_page_on_crop_toggled_gtk_toggle_tool_button_toggled, self, 0); -#line 453 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = self->priv->crop_button; -#line 453 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_tool_item_get_type (), GtkToolItem), TRUE); -#line 454 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = self->priv->crop_button; -#line 454 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 457 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = (GtkToggleToolButton*) gtk_toggle_tool_button_new (); -#line 457 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp23_); -#line 457 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->straighten_button); -#line 457 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->straighten_button = _tmp23_; -#line 458 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = self->priv->straighten_button; -#line 458 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_button_set_icon_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_tool_button_get_type (), GtkToolButton), "straighten"); -#line 459 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = self->priv->straighten_button; -#line 459 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_tool_button_get_type (), GtkToolButton), RESOURCES_STRAIGHTEN_LABEL); -#line 460 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = self->priv->straighten_button; -#line 460 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_STRAIGHTEN_TOOLTIP); -#line 461 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp27_ = self->priv->straighten_button; -#line 461 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (_tmp27_, "toggled", (GCallback) _editing_host_page_on_straighten_toggled_gtk_toggle_tool_button_toggled, self, 0); -#line 462 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp28_ = self->priv->straighten_button; -#line 462 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_tool_item_get_type (), GtkToolItem), TRUE); -#line 463 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp29_ = self->priv->straighten_button; -#line 463 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 466 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp30_ = (GtkToggleToolButton*) gtk_toggle_tool_button_new (); -#line 466 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp30_); -#line 466 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->redeye_button); -#line 466 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->redeye_button = _tmp30_; -#line 467 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp31_ = self->priv->redeye_button; -#line 467 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_button_set_icon_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_tool_button_get_type (), GtkToolButton), "redeye"); -#line 468 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp32_ = self->priv->redeye_button; -#line 468 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_tool_button_get_type (), GtkToolButton), RESOURCES_RED_EYE_LABEL); -#line 469 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp33_ = self->priv->redeye_button; -#line 469 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_RED_EYE_TOOLTIP); -#line 470 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp34_ = self->priv->redeye_button; -#line 470 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (_tmp34_, "toggled", (GCallback) _editing_host_page_on_redeye_toggled_gtk_toggle_tool_button_toggled, self, 0); -#line 471 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp35_ = self->priv->redeye_button; -#line 471 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_tool_item_get_type (), GtkToolItem), TRUE); -#line 472 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp36_ = self->priv->redeye_button; -#line 472 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 475 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp37_ = (GtkToggleToolButton*) gtk_toggle_tool_button_new (); -#line 475 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp37_); -#line 475 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->adjust_button); -#line 475 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->adjust_button = _tmp37_; -#line 476 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp38_ = self->priv->adjust_button; -#line 476 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_button_set_icon_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_tool_button_get_type (), GtkToolButton), RESOURCES_ADJUST); -#line 477 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp39_ = self->priv->adjust_button; -#line 477 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_tool_button_get_type (), GtkToolButton), RESOURCES_ADJUST_LABEL); -#line 478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp40_ = self->priv->adjust_button; -#line 478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ADJUST_TOOLTIP); -#line 479 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp41_ = self->priv->adjust_button; -#line 479 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (_tmp41_, "toggled", (GCallback) _editing_host_page_on_adjust_toggled_gtk_toggle_tool_button_toggled, self, 0); -#line 480 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp42_ = self->priv->adjust_button; -#line 480 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_tool_item_get_type (), GtkToolItem), TRUE); -#line 481 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp43_ = self->priv->adjust_button; -#line 481 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 484 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp44_ = (GtkToolButton*) gtk_tool_button_new (NULL, RESOURCES_ENHANCE_LABEL); -#line 484 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp44_); -#line 484 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->enhance_button); -#line 484 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->enhance_button = _tmp44_; -#line 485 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp45_ = self->priv->enhance_button; -#line 485 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_button_set_icon_name (_tmp45_, RESOURCES_ENHANCE); -#line 486 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp46_ = self->priv->enhance_button; -#line 486 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ENHANCE_TOOLTIP); -#line 487 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp47_ = self->priv->enhance_button; -#line 487 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (_tmp47_, "clicked", (GCallback) _editing_host_page_on_enhance_gtk_tool_button_clicked, self, 0); -#line 488 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp48_ = self->priv->enhance_button; -#line 488 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_tool_item_get_type (), GtkToolItem), TRUE); -#line 489 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp49_ = self->priv->enhance_button; -#line 489 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 492 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp50_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new (); -#line 492 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp50_); -#line 492 "/home/jens/Source/shotwell/src/PhotoPage.vala" - separator = _tmp50_; -#line 493 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_item_set_expand (G_TYPE_CHECK_INSTANCE_CAST (separator, gtk_tool_item_get_type (), GtkToolItem), TRUE); -#line 494 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_separator_tool_item_set_draw (separator, FALSE); -#line 495 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (separator, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 497 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp51_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); -#line 497 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp51_); -#line 497 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_group = _tmp51_; -#line 499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp52_ = resources_load_icon (RESOURCES_ICON_ZOOM_OUT, RESOURCES_ICON_ZOOM_SCALE); -#line 499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp53_ = _tmp52_; -#line 499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp54_ = (GtkImage*) gtk_image_new_from_pixbuf (_tmp53_); -#line 499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp54_); -#line 499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp55_ = _tmp54_; -#line 499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp53_); -#line 499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_out = _tmp55_; -#line 501 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp56_ = (GtkEventBox*) gtk_event_box_new (); -#line 501 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp56_); -#line 501 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_out_box = _tmp56_; -#line 502 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_event_box_set_above_child (zoom_out_box, TRUE); -#line 503 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_event_box_set_visible_window (zoom_out_box, FALSE); -#line 504 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (zoom_out_box, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (zoom_out, gtk_widget_get_type (), GtkWidget)); -#line 506 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (zoom_out_box, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_host_page_on_zoom_out_pressed_gtk_widget_button_press_event, self, 0); -#line 508 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_box_pack_start (zoom_group, G_TYPE_CHECK_INSTANCE_CAST (zoom_out_box, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 511 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp57_ = gtk_adjustment_new (0.0, 0.0, 1.1, 0.1, 0.1, 0.1); -#line 511 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp57_); -#line 511 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp58_ = _tmp57_; -#line 511 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp59_ = (GtkScale*) gtk_scale_new (GTK_ORIENTATION_HORIZONTAL, _tmp58_); -#line 511 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp59_); -#line 511 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->zoom_slider); -#line 511 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->zoom_slider = _tmp59_; -#line 511 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp58_); -#line 512 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp60_ = self->priv->zoom_slider; -#line 512 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_scale_set_draw_value (_tmp60_, FALSE); -#line 513 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp61_ = self->priv->zoom_slider; -#line 513 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, gtk_widget_get_type (), GtkWidget), 120, -1); -#line 514 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp62_ = self->priv->zoom_slider; -#line 514 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self, 0); -#line 515 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp63_ = self->priv->zoom_slider; -#line 515 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_host_page_on_zoom_slider_drag_begin_gtk_widget_button_press_event, self, 0); -#line 516 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp64_ = self->priv->zoom_slider; -#line 516 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_widget_get_type (), GtkWidget), "button-release-event", (GCallback) _editing_host_page_on_zoom_slider_drag_end_gtk_widget_button_release_event, self, 0); -#line 517 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp65_ = self->priv->zoom_slider; -#line 517 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_widget_get_type (), GtkWidget), "key-press-event", (GCallback) _editing_host_page_on_zoom_slider_key_press_gtk_widget_key_press_event, self, 0); -#line 519 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp66_ = self->priv->zoom_slider; -#line 519 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_box_pack_start (zoom_group, G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 521 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp67_ = resources_load_icon (RESOURCES_ICON_ZOOM_IN, RESOURCES_ICON_ZOOM_SCALE); -#line 521 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp68_ = _tmp67_; -#line 521 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp69_ = (GtkImage*) gtk_image_new_from_pixbuf (_tmp68_); -#line 521 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp69_); -#line 521 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp70_ = _tmp69_; -#line 521 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp68_); -#line 521 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_in = _tmp70_; -#line 523 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp71_ = (GtkEventBox*) gtk_event_box_new (); -#line 523 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp71_); -#line 523 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_in_box = _tmp71_; -#line 524 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_event_box_set_above_child (zoom_in_box, TRUE); -#line 525 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_event_box_set_visible_window (zoom_in_box, FALSE); -#line 526 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (zoom_in_box, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (zoom_in, gtk_widget_get_type (), GtkWidget)); -#line 528 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (zoom_in_box, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_host_page_on_zoom_in_pressed_gtk_widget_button_press_event, self, 0); -#line 530 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_box_pack_start (zoom_group, G_TYPE_CHECK_INSTANCE_CAST (zoom_in_box, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 532 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp72_ = gtk_tool_item_new (); -#line 532 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp72_); -#line 532 "/home/jens/Source/shotwell/src/PhotoPage.vala" - group_wrapper = _tmp72_; -#line 533 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (group_wrapper, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (zoom_group, gtk_widget_get_type (), GtkWidget)); -#line 535 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_toolbar_insert (toolbar, group_wrapper, -1); -#line 538 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp73_ = self->priv->prev_button; -#line 538 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, gtk_tool_item_get_type (), GtkToolItem), _ ("Previous photo")); -#line 539 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp74_ = self->priv->prev_button; -#line 539 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_button_set_icon_name (_tmp74_, "go-previous"); -#line 540 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp75_ = self->priv->prev_button; -#line 540 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (_tmp75_, "clicked", (GCallback) _single_photo_page_on_previous_photo_gtk_tool_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), 0); -#line 541 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp76_ = self->priv->prev_button; -#line 541 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 544 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp77_ = self->priv->next_button; -#line 544 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, gtk_tool_item_get_type (), GtkToolItem), _ ("Next photo")); -#line 545 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp78_ = self->priv->next_button; -#line 545 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_button_set_icon_name (_tmp78_, "go-next"); -#line 546 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp79_ = self->priv->next_button; -#line 546 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (_tmp79_, "clicked", (GCallback) _single_photo_page_on_next_photo_gtk_tool_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), 0); -#line 547 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp80_ = self->priv->next_button; -#line 547 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (group_wrapper); -#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (zoom_in_box); -#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (zoom_in); -#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (zoom_out_box); -#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (zoom_out); -#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (zoom_group); -#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (separator); -#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (toolbar); -#line 417 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return self; -#line 5723 "PhotoPage.c" -} - - -static void -editing_host_page_on_zoom_slider_value_changed (EditingHostPage* self) -{ - ZoomState new_zoom_state = {0}; - ZoomState _tmp0_ = {0}; - GtkScale* _tmp1_; - gboolean _tmp2_; -#line 557 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 558 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp0_); -#line 558 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->zoom_slider; -#line 558 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_init_rescale (&new_zoom_state, &_tmp0_, gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange))); -#line 560 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->enable_interactive_zoom_refresh; -#line 560 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_) { -#line 5746 "PhotoPage.c" - ZoomState _tmp3_; -#line 561 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = new_zoom_state; -#line 561 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_on_interactive_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp3_); -#line 563 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (zoom_state_is_default (&new_zoom_state)) { -#line 5754 "PhotoPage.c" - ZoomState _tmp4_; -#line 564 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = new_zoom_state; -#line 564 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_set_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp4_); -#line 5760 "PhotoPage.c" - } - } else { -#line 566 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (zoom_state_is_default (&new_zoom_state)) { -#line 567 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 5767 "PhotoPage.c" - } else { - ZoomState _tmp5_; -#line 569 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = new_zoom_state; -#line 569 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_set_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp5_); -#line 5774 "PhotoPage.c" - } -#line 571 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); -#line 5778 "PhotoPage.c" - } -#line 574 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_update_cursor_for_zoom_context (self); -#line 5782 "PhotoPage.c" -} - - -static gboolean -editing_host_page_on_zoom_slider_drag_begin (EditingHostPage* self, - GdkEventButton* event) -{ - gboolean result = FALSE; - GtkWindow* _tmp0_; - GtkWindow* _tmp1_; - gboolean _tmp2_; -#line 577 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 577 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 578 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->enable_interactive_zoom_refresh = TRUE; -#line 580 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 580 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 580 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_FULLSCREEN_WINDOW); -#line 580 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 580 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_) { -#line 5810 "PhotoPage.c" - GtkWindow* _tmp3_; - FullscreenWindow* _tmp4_; -#line 581 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 581 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_FULLSCREEN_WINDOW, FullscreenWindow); -#line 581 "/home/jens/Source/shotwell/src/PhotoPage.vala" - fullscreen_window_disable_toolbar_dismissal (_tmp4_); -#line 581 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp4_); -#line 5821 "PhotoPage.c" - } -#line 583 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = FALSE; -#line 583 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 5827 "PhotoPage.c" -} - - -static gboolean -editing_host_page_on_zoom_slider_drag_end (EditingHostPage* self, - GdkEventButton* event) -{ - gboolean result = FALSE; - GtkWindow* _tmp0_; - GtkWindow* _tmp1_; - gboolean _tmp2_; - ZoomState zoom_state = {0}; - ZoomState _tmp5_ = {0}; - GtkScale* _tmp6_; - ZoomState _tmp7_; -#line 586 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 586 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 587 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->enable_interactive_zoom_refresh = FALSE; -#line 589 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 589 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 589 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_FULLSCREEN_WINDOW); -#line 589 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 589 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_) { -#line 5859 "PhotoPage.c" - GtkWindow* _tmp3_; - FullscreenWindow* _tmp4_; -#line 590 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 590 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_FULLSCREEN_WINDOW, FullscreenWindow); -#line 590 "/home/jens/Source/shotwell/src/PhotoPage.vala" - fullscreen_window_update_toolbar_dismissal (_tmp4_); -#line 590 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp4_); -#line 5870 "PhotoPage.c" - } -#line 592 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp5_); -#line 592 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = self->priv->zoom_slider; -#line 592 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_init_rescale (&zoom_state, &_tmp5_, gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_range_get_type (), GtkRange))); -#line 593 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = zoom_state; -#line 593 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_set_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp7_); -#line 595 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); -#line 597 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = FALSE; -#line 597 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 5888 "PhotoPage.c" -} - - -static gboolean -editing_host_page_on_zoom_out_pressed (EditingHostPage* self, - GdkEventButton* event) -{ - gboolean result = FALSE; -#line 600 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 600 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 601 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_snap_zoom_to_min (self); -#line 602 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 602 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 5907 "PhotoPage.c" -} - - -static gboolean -editing_host_page_on_zoom_in_pressed (EditingHostPage* self, - GdkEventButton* event) -{ - gboolean result = FALSE; -#line 605 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 605 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 606 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_snap_zoom_to_max (self); -#line 607 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 607 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 5926 "PhotoPage.c" -} - - -static void -editing_host_page_get_cursor_wrt_viewport (EditingHostPage* self, - GdkEventScroll* event, - GdkPoint* result) -{ - GdkPoint cursor_wrt_canvas = {0}; - GdkPoint _tmp0_ = {0}; - gdouble _tmp1_; - gdouble _tmp2_; - GdkRectangle viewport_wrt_canvas = {0}; - ZoomState _tmp3_ = {0}; - GdkRectangle _tmp4_ = {0}; - GdkPoint _result_ = {0}; - GdkPoint _tmp5_ = {0}; - GdkPoint _tmp6_; - gint _tmp7_; - GdkRectangle _tmp8_; - gint _tmp9_; - GdkPoint _tmp10_; - gint _tmp11_; - GdkRectangle _tmp12_; - gint _tmp13_; - GdkPoint _tmp14_; - gint _tmp15_; - GdkRectangle _tmp16_; - gint _tmp17_; - GdkPoint _tmp18_; - gint _tmp19_; - GdkRectangle _tmp20_; - gint _tmp21_; -#line 610 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 610 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (event != NULL); -#line 611 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_.x = 0; -#line 611 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cursor_wrt_canvas = _tmp0_; -#line 612 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = event->x; -#line 612 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cursor_wrt_canvas.x = (gint) _tmp1_; -#line 613 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = event->y; -#line 613 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cursor_wrt_canvas.y = (gint) _tmp2_; -#line 615 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp3_); -#line 615 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_get_viewing_rectangle_wrt_screen (&_tmp3_, &_tmp4_); -#line 615 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_wrt_canvas = _tmp4_; -#line 616 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_.x = 0; -#line 616 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _result_ = _tmp5_; -#line 617 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = cursor_wrt_canvas; -#line 617 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_.x; -#line 617 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = viewport_wrt_canvas; -#line 617 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = _tmp8_.x; -#line 617 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _result_.x = _tmp7_ - _tmp9_; -#line 618 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = _result_; -#line 618 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = _tmp10_.x; -#line 618 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = viewport_wrt_canvas; -#line 618 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = _tmp12_.width; -#line 618 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _result_.x = CLAMP (_tmp11_, 0, _tmp13_); -#line 619 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = cursor_wrt_canvas; -#line 619 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = _tmp14_.y; -#line 619 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = viewport_wrt_canvas; -#line 619 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = _tmp16_.y; -#line 619 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _result_.y = _tmp15_ - _tmp17_; -#line 620 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = _result_; -#line 620 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = _tmp18_.y; -#line 620 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = viewport_wrt_canvas; -#line 620 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = _tmp20_.height; -#line 620 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _result_.y = CLAMP (_tmp19_, 0, _tmp21_); -#line 622 "/home/jens/Source/shotwell/src/PhotoPage.vala" - *result = _result_; -#line 622 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 6030 "PhotoPage.c" -} - - -static void -editing_host_page_get_cursor_wrt_viewport_center (EditingHostPage* self, - GdkEventScroll* event, - GdkPoint* result) -{ - GdkPoint cursor_wrt_viewport = {0}; - GdkPoint _tmp0_ = {0}; - GdkRectangle viewport_wrt_canvas = {0}; - ZoomState _tmp1_ = {0}; - GdkRectangle _tmp2_ = {0}; - GdkPoint viewport_center = {0}; - GdkPoint _tmp3_ = {0}; - GdkRectangle _tmp4_; - gint _tmp5_; - GdkRectangle _tmp6_; - gint _tmp7_; - GdkPoint _tmp8_; - GdkPoint _tmp9_; - GdkPoint _tmp10_ = {0}; -#line 625 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 625 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (event != NULL); -#line 626 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_get_cursor_wrt_viewport (self, event, &_tmp0_); -#line 626 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cursor_wrt_viewport = _tmp0_; -#line 627 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp1_); -#line 627 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_get_viewing_rectangle_wrt_screen (&_tmp1_, &_tmp2_); -#line 627 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_wrt_canvas = _tmp2_; -#line 629 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_.x = 0; -#line 629 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_center = _tmp3_; -#line 630 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = viewport_wrt_canvas; -#line 630 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _tmp4_.width; -#line 630 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_center.x = _tmp5_ / 2; -#line 631 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = viewport_wrt_canvas; -#line 631 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_.height; -#line 631 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_center.y = _tmp7_ / 2; -#line 633 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = cursor_wrt_viewport; -#line 633 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = viewport_center; -#line 633 "/home/jens/Source/shotwell/src/PhotoPage.vala" - subtract_points (&_tmp8_, &_tmp9_, &_tmp10_); -#line 633 "/home/jens/Source/shotwell/src/PhotoPage.vala" - *result = _tmp10_; -#line 633 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 6093 "PhotoPage.c" -} - - -static void -editing_host_page_get_iso_pixel_under_cursor (EditingHostPage* self, - GdkEventScroll* event, - GdkPoint* result) -{ - GdkPoint viewport_center_iso = {0}; - ZoomState _tmp0_ = {0}; - GdkPoint _tmp1_ = {0}; - ZoomState _tmp2_ = {0}; - GdkPoint _tmp3_ = {0}; - GdkPoint cursor_wrt_center_iso = {0}; - GdkPoint _tmp4_ = {0}; - ZoomState _tmp5_ = {0}; - GdkPoint _tmp6_ = {0}; - GdkPoint _tmp7_; - GdkPoint _tmp8_; - GdkPoint _tmp9_ = {0}; -#line 636 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 636 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (event != NULL); -#line 637 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp0_); -#line 637 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_get_viewport_center (&_tmp0_, &_tmp1_); -#line 637 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp2_); -#line 637 "/home/jens/Source/shotwell/src/PhotoPage.vala" - scale_point (&_tmp1_, 1.0 / zoom_state_get_zoom_factor (&_tmp2_), &_tmp3_); -#line 637 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_center_iso = _tmp3_; -#line 640 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_get_cursor_wrt_viewport_center (self, event, &_tmp4_); -#line 640 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp5_); -#line 640 "/home/jens/Source/shotwell/src/PhotoPage.vala" - scale_point (&_tmp4_, 1.0 / zoom_state_get_zoom_factor (&_tmp5_), &_tmp6_); -#line 640 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cursor_wrt_center_iso = _tmp6_; -#line 643 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = viewport_center_iso; -#line 643 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = cursor_wrt_center_iso; -#line 643 "/home/jens/Source/shotwell/src/PhotoPage.vala" - add_points (&_tmp7_, &_tmp8_, &_tmp9_); -#line 643 "/home/jens/Source/shotwell/src/PhotoPage.vala" - *result = _tmp9_; -#line 643 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 6146 "PhotoPage.c" -} - - -static gdouble -editing_host_page_snap_interpolation_factor (EditingHostPage* self, - gdouble interp) -{ - gdouble result = 0.0; -#line 646 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), 0.0); -#line 647 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (interp < 0.03) { -#line 648 "/home/jens/Source/shotwell/src/PhotoPage.vala" - interp = 0.0; -#line 6161 "PhotoPage.c" - } else { -#line 649 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (interp > 0.97) { -#line 650 "/home/jens/Source/shotwell/src/PhotoPage.vala" - interp = 1.0; -#line 6167 "PhotoPage.c" - } - } -#line 652 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = interp; -#line 652 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 6174 "PhotoPage.c" -} - - -static gdouble -editing_host_page_adjust_interpolation_factor (EditingHostPage* self, - gdouble adjustment) -{ - gdouble result = 0.0; - ZoomState _tmp0_ = {0}; -#line 655 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), 0.0); -#line 656 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp0_); -#line 656 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = editing_host_page_snap_interpolation_factor (self, zoom_state_get_interpolation_factor (&_tmp0_) + adjustment); -#line 656 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 6192 "PhotoPage.c" -} - - -static void -editing_host_page_zoom_about_event_cursor_point (EditingHostPage* self, - GdkEventScroll* event, - gdouble zoom_increment) -{ - gboolean _tmp0_; - GdkPoint cursor_wrt_viewport_center = {0}; - GdkPoint _tmp1_ = {0}; - GdkPoint iso_pixel_under_cursor = {0}; - GdkPoint _tmp2_ = {0}; - gdouble interp = 0.0; - GtkScale* _tmp3_; - guint _tmp4_; - GtkScale* _tmp5_; - gdouble _tmp6_; - GtkScale* _tmp7_; - ZoomState new_zoom_state = {0}; - ZoomState _tmp8_ = {0}; - gdouble _tmp9_; - GdkPoint new_zoomed_old_cursor = {0}; - GdkPoint _tmp10_; - GdkPoint _tmp11_ = {0}; - GdkPoint desired_new_viewport_center = {0}; - GdkPoint _tmp12_; - GdkPoint _tmp13_; - GdkPoint _tmp14_ = {0}; - ZoomState _tmp15_; - GdkPoint _tmp16_; - ZoomState _tmp17_; -#line 659 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 659 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (event != NULL); -#line 660 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->photo_missing; -#line 660 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 661 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 6235 "PhotoPage.c" - } -#line 663 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_get_cursor_wrt_viewport_center (self, event, &_tmp1_); -#line 663 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cursor_wrt_viewport_center = _tmp1_; -#line 664 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_get_iso_pixel_under_cursor (self, event, &_tmp2_); -#line 664 "/home/jens/Source/shotwell/src/PhotoPage.vala" - iso_pixel_under_cursor = _tmp2_; -#line 666 "/home/jens/Source/shotwell/src/PhotoPage.vala" - interp = editing_host_page_adjust_interpolation_factor (self, zoom_increment); -#line 667 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = self->priv->zoom_slider; -#line 667 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp4_, NULL, FALSE); -#line 667 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self); -#line 668 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = self->priv->zoom_slider; -#line 668 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = interp; -#line 668 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_range_get_type (), GtkRange), _tmp6_); -#line 669 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = self->priv->zoom_slider; -#line 669 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self, 0); -#line 671 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp8_); -#line 671 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = interp; -#line 671 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_init_rescale (&new_zoom_state, &_tmp8_, _tmp9_); -#line 673 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (zoom_state_is_min (&new_zoom_state)) { -#line 674 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 675 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_update_cursor_for_zoom_context (self); -#line 676 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); -#line 677 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 6279 "PhotoPage.c" - } -#line 680 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = iso_pixel_under_cursor; -#line 680 "/home/jens/Source/shotwell/src/PhotoPage.vala" - scale_point (&_tmp10_, zoom_state_get_zoom_factor (&new_zoom_state), &_tmp11_); -#line 680 "/home/jens/Source/shotwell/src/PhotoPage.vala" - new_zoomed_old_cursor = _tmp11_; -#line 682 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = new_zoomed_old_cursor; -#line 682 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = cursor_wrt_viewport_center; -#line 682 "/home/jens/Source/shotwell/src/PhotoPage.vala" - subtract_points (&_tmp12_, &_tmp13_, &_tmp14_); -#line 682 "/home/jens/Source/shotwell/src/PhotoPage.vala" - desired_new_viewport_center = _tmp14_; -#line 685 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = new_zoom_state; -#line 685 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = desired_new_viewport_center; -#line 685 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_init_pan (&new_zoom_state, &_tmp15_, &_tmp16_); -#line 687 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = new_zoom_state; -#line 687 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_set_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp17_); -#line 688 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); -#line 690 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_update_cursor_for_zoom_context (self); -#line 6309 "PhotoPage.c" -} - - -void -editing_host_page_snap_zoom_to_min (EditingHostPage* self) -{ - GtkScale* _tmp0_; -#line 693 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 694 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->zoom_slider; -#line 694 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), 0.0); -#line 6323 "PhotoPage.c" -} - - -void -editing_host_page_snap_zoom_to_max (EditingHostPage* self) -{ - GtkScale* _tmp0_; -#line 697 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 698 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->zoom_slider; -#line 698 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), 1.0); -#line 6337 "PhotoPage.c" -} - - -void -editing_host_page_snap_zoom_to_isomorphic (EditingHostPage* self) -{ - ZoomState iso_state = {0}; - ZoomState _tmp0_ = {0}; - GtkScale* _tmp1_; -#line 701 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 702 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp0_); -#line 702 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_init_rescale_to_isomorphic (&iso_state, &_tmp0_); -#line 703 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->zoom_slider; -#line 703 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange), zoom_state_get_interpolation_factor (&iso_state)); -#line 6357 "PhotoPage.c" -} - - -static gboolean -editing_host_page_real_on_zoom_slider_key_press (EditingHostPage* self, - GdkEventKey* event) -{ - gboolean result = FALSE; - guint _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - GQuark _tmp4_ = 0U; -#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp3_label0 = 0; -#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp3_label1 = 0; -#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp3_label2 = 0; -#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp3_label3 = 0; -#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp3_label4 = 0; -#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp3_label5 = 0; -#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp3_label6 = 0; -#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp3_label7 = 0; -#line 706 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = event->keyval; -#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = gdk_keyval_name (_tmp0_); -#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_); -#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (((_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("equal")))) || (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("plus"))))) || (_tmp4_ == ((0 != _tmp3_label2) ? _tmp3_label2 : (_tmp3_label2 = g_quark_from_static_string ("KP_Add"))))) { -#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 6400 "PhotoPage.c" - default: - { -#line 711 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize"); -#line 712 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 712 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 6409 "PhotoPage.c" - } - } - } else if (((_tmp4_ == ((0 != _tmp3_label3) ? _tmp3_label3 : (_tmp3_label3 = g_quark_from_static_string ("minus")))) || (_tmp4_ == ((0 != _tmp3_label4) ? _tmp3_label4 : (_tmp3_label4 = g_quark_from_static_string ("underscore"))))) || (_tmp4_ == ((0 != _tmp3_label5) ? _tmp3_label5 : (_tmp3_label5 = g_quark_from_static_string ("KP_Subtract"))))) { -#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 6415 "PhotoPage.c" - default: - { -#line 717 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize"); -#line 718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 6424 "PhotoPage.c" - } - } - } else if (_tmp4_ == ((0 != _tmp3_label6) ? _tmp3_label6 : (_tmp3_label6 = g_quark_from_static_string ("KP_Divide")))) { -#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 6430 "PhotoPage.c" - default: - { -#line 721 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Zoom100"); -#line 722 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 722 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 6439 "PhotoPage.c" - } - } - } else if (_tmp4_ == ((0 != _tmp3_label7) ? _tmp3_label7 : (_tmp3_label7 = g_quark_from_static_string ("KP_Multiply")))) { -#line 707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 6445 "PhotoPage.c" - default: - { -#line 725 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ZoomFit"); -#line 726 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 726 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 6454 "PhotoPage.c" - } - } - } -#line 729 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = FALSE; -#line 729 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 6462 "PhotoPage.c" -} - - -gboolean -editing_host_page_on_zoom_slider_key_press (EditingHostPage* self, - GdkEventKey* event) -{ -#line 706 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 706 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return EDITING_HOST_PAGE_GET_CLASS (self)->on_zoom_slider_key_press (self, event); -#line 6474 "PhotoPage.c" -} - - -static void -editing_host_page_real_on_increase_size (EditingHostPage* self) -{ - GtkScale* _tmp0_; -#line 733 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->zoom_slider; -#line 733 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), editing_host_page_adjust_interpolation_factor (self, EDITING_HOST_PAGE_ZOOM_INCREMENT_SIZE)); -#line 6486 "PhotoPage.c" -} - - -void -editing_host_page_on_increase_size (EditingHostPage* self) -{ -#line 732 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 732 "/home/jens/Source/shotwell/src/PhotoPage.vala" - EDITING_HOST_PAGE_GET_CLASS (self)->on_increase_size (self); -#line 6497 "PhotoPage.c" -} - - -static void -editing_host_page_real_on_decrease_size (EditingHostPage* self) -{ - GtkScale* _tmp0_; -#line 737 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->zoom_slider; -#line 737 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), editing_host_page_adjust_interpolation_factor (self, -EDITING_HOST_PAGE_ZOOM_INCREMENT_SIZE)); -#line 6509 "PhotoPage.c" -} - - -void -editing_host_page_on_decrease_size (EditingHostPage* self) -{ -#line 736 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 736 "/home/jens/Source/shotwell/src/PhotoPage.vala" - EDITING_HOST_PAGE_GET_CLASS (self)->on_decrease_size (self); -#line 6520 "PhotoPage.c" -} - - -static void -editing_host_page_real_save_zoom_state (SinglePhotoPage* base) -{ - EditingHostPage * self; - GtkScale* _tmp0_; -#line 740 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - SINGLE_PHOTO_PAGE_CLASS (editing_host_page_parent_class)->save_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 742 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->zoom_slider; -#line 742 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->saved_slider_val = gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange)); -#line 6537 "PhotoPage.c" -} - - -static ZoomBuffer* -editing_host_page_real_get_zoom_buffer (SinglePhotoPage* base) -{ - EditingHostPage * self; - ZoomBuffer* result = NULL; - ZoomBuffer* _tmp0_; - ZoomBuffer* _tmp1_; -#line 745 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 746 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->zoom_buffer; -#line 746 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 746 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp1_; -#line 746 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 6558 "PhotoPage.c" -} - - -static gboolean -editing_host_page_real_on_mousewheel_up (Page* base, - GdkEventScroll* event) -{ - EditingHostPage * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - ZoomState _tmp1_ = {0}; -#line 749 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 749 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 750 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp1_); -#line 750 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (zoom_state_is_max (&_tmp1_)) { -#line 750 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = TRUE; -#line 6580 "PhotoPage.c" - } else { - GtkScale* _tmp2_; -#line 750 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->zoom_slider; -#line 750 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = !gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 6587 "PhotoPage.c" - } -#line 750 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 751 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = FALSE; -#line 751 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 6595 "PhotoPage.c" - } -#line 753 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_zoom_about_event_cursor_point (self, event, EDITING_HOST_PAGE_ZOOM_INCREMENT_SIZE); -#line 754 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = FALSE; -#line 754 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 6603 "PhotoPage.c" -} - - -static gboolean -editing_host_page_real_on_mousewheel_down (Page* base, - GdkEventScroll* event) -{ - EditingHostPage * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - ZoomState _tmp1_ = {0}; -#line 757 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 757 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 758 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp1_); -#line 758 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (zoom_state_is_min (&_tmp1_)) { -#line 758 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = TRUE; -#line 6625 "PhotoPage.c" - } else { - GtkScale* _tmp2_; -#line 758 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->zoom_slider; -#line 758 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = !gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 6632 "PhotoPage.c" - } -#line 758 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 759 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = FALSE; -#line 759 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 6640 "PhotoPage.c" - } -#line 761 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_zoom_about_event_cursor_point (self, event, -EDITING_HOST_PAGE_ZOOM_INCREMENT_SIZE); -#line 762 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = FALSE; -#line 762 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 6648 "PhotoPage.c" -} - - -static void -editing_host_page_real_restore_zoom_state (SinglePhotoPage* base) -{ - EditingHostPage * self; - GtkScale* _tmp0_; - guint _tmp1_; - GtkScale* _tmp2_; - gdouble _tmp3_; - GtkScale* _tmp4_; -#line 765 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 766 "/home/jens/Source/shotwell/src/PhotoPage.vala" - SINGLE_PHOTO_PAGE_CLASS (editing_host_page_parent_class)->restore_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 768 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->zoom_slider; -#line 768 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp1_, NULL, FALSE); -#line 768 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self); -#line 769 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->zoom_slider; -#line 769 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = self->priv->saved_slider_val; -#line 769 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_range_get_type (), GtkRange), _tmp3_); -#line 770 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = self->priv->zoom_slider; -#line 770 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self, 0); -#line 6681 "PhotoPage.c" -} - - -static gboolean -editing_host_page_real_is_zoom_supported (SinglePhotoPage* base) -{ - EditingHostPage * self; - gboolean result = FALSE; -#line 773 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 774 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 774 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 6696 "PhotoPage.c" -} - - -static void -editing_host_page_real_set_container (Page* base, - GtkWindow* container) -{ - EditingHostPage * self; -#line 777 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 777 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (GTK_IS_WINDOW (container)); -#line 778 "/home/jens/Source/shotwell/src/PhotoPage.vala" - PAGE_CLASS (editing_host_page_parent_class)->set_container (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), container); -#line 781 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!G_TYPE_CHECK_INSTANCE_TYPE (container, TYPE_FULLSCREEN_WINDOW)) { -#line 6713 "PhotoPage.c" - DragAndDropHandler* _tmp0_; -#line 782 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = drag_and_drop_handler_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 782 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _drag_and_drop_handler_unref0 (self->priv->dnd_handler); -#line 782 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->dnd_handler = _tmp0_; -#line 6721 "PhotoPage.c" - } -} - - -ViewCollection* -editing_host_page_get_parent_view (EditingHostPage* self) -{ - ViewCollection* result = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; -#line 785 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL); -#line 786 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->parent_view; -#line 786 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _data_collection_ref0 (_tmp0_); -#line 786 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp1_; -#line 786 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 6742 "PhotoPage.c" -} - - -gboolean -editing_host_page_has_photo (EditingHostPage* self) -{ - gboolean result = FALSE; - Photo* _tmp0_; - Photo* _tmp1_; - gboolean _tmp2_; -#line 789 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 790 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (self); -#line 790 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 790 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_ != NULL; -#line 790 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 790 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp2_; -#line 790 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 6767 "PhotoPage.c" -} - - -Photo* -editing_host_page_get_photo (EditingHostPage* self) -{ - Photo* result = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; - DataView* _tmp7_; - DataView* _tmp8_; - DataSource* _tmp9_; - Photo* _tmp10_; -#line 793 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL); -#line 795 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 795 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 795 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 795 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp1_); -#line 795 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_) { -#line 796 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = NULL; -#line 796 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 6802 "PhotoPage.c" - } -#line 800 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 800 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 800 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _vala_assert (view_collection_get_selected_count (_tmp4_) == 1, "get_view().get_selected_count() == 1"); -#line 800 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp4_); -#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = view_collection_get_selected_at (_tmp6_, 0); -#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_; -#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = data_view_get_source (_tmp8_); -#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO, Photo); -#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp8_); -#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp6_); -#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp10_; -#line 801 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 6832 "PhotoPage.c" -} - - -static void -editing_host_page_real_photo_changing (EditingHostPage* self, - Photo* new_photo) -{ - gboolean _tmp2_; -#line 805 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_PHOTO (new_photo)); -#line 808 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (photo_get_file_format (new_photo) == PHOTO_FILE_FORMAT_RAW) { -#line 809 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_set_photo_missing (self, FALSE); -#line 6847 "PhotoPage.c" - } else { - GFile* _tmp0_; - GFile* _tmp1_; -#line 811 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_MEDIA_SOURCE, MediaSource)); -#line 811 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 811 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_set_photo_missing (self, !g_file_query_exists (_tmp1_, NULL)); -#line 811 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 6859 "PhotoPage.c" - } -#line 813 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->photo_missing; -#line 813 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_update_ui (self, _tmp2_); -#line 6865 "PhotoPage.c" -} - - -void -editing_host_page_photo_changing (EditingHostPage* self, - Photo* new_photo) -{ -#line 805 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 805 "/home/jens/Source/shotwell/src/PhotoPage.vala" - EDITING_HOST_PAGE_GET_CLASS (self)->photo_changing (self, new_photo); -#line 6877 "PhotoPage.c" -} - - -static void -editing_host_page_set_photo (EditingHostPage* self, - Photo* photo) -{ - GtkScale* _tmp0_; - guint _tmp1_; - GtkScale* _tmp2_; - GtkScale* _tmp3_; - DataView* view = NULL; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - DataView* _tmp6_; - DataView* _tmp7_; - DataView* _tmp8_; - ViewCollection* _tmp9_; - ViewCollection* _tmp10_; - Marker* marker = NULL; - ViewCollection* _tmp11_; - ViewCollection* _tmp12_; - DataView* _tmp13_; - Marker* _tmp14_; - Marker* _tmp15_; - ViewCollection* _tmp16_; - ViewCollection* _tmp17_; - Marker* _tmp18_; - ViewCollection* _tmp19_; -#line 816 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 816 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 817 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->zoom_slider; -#line 817 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp1_, NULL, FALSE); -#line 817 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self); -#line 818 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->zoom_slider; -#line 818 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_range_get_type (), GtkRange), 0.0); -#line 819 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = self->priv->zoom_slider; -#line 819 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self, 0); -#line 821 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_photo_changing (self, photo); -#line 822 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 822 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _tmp4_; -#line 822 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = view_collection_get_view_for_source (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource)); -#line 822 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_; -#line 822 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp5_); -#line 822 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view = _tmp7_; -#line 823 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = view; -#line 823 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _vala_assert (_tmp8_ != NULL, "view != null"); -#line 826 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 826 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = _tmp9_; -#line 826 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_collection_unselect_all (_tmp10_); -#line 826 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp10_); -#line 827 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 827 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _tmp11_; -#line 827 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = view; -#line 827 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_OBJECT, DataObject)); -#line 827 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = _tmp14_; -#line 827 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp12_); -#line 827 "/home/jens/Source/shotwell/src/PhotoPage.vala" - marker = _tmp15_; -#line 828 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 828 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = _tmp16_; -#line 828 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = marker; -#line 828 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_collection_select_marked (_tmp17_, _tmp18_); -#line 828 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp17_); -#line 832 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = self->priv->parent_view; -#line 832 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp19_ != NULL) { -#line 6979 "PhotoPage.c" - ViewCollection* _tmp20_; - DataView* view_in_parent = NULL; - ViewCollection* _tmp21_; - DataView* _tmp22_; - DataView* _tmp23_; -#line 833 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = self->priv->parent_view; -#line 833 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_collection_unselect_all (_tmp20_); -#line 834 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = self->priv->parent_view; -#line 834 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = view_collection_get_view_for_source_filtered (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource)); -#line 834 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_in_parent = _tmp22_; -#line 835 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = view_in_parent; -#line 835 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (NULL != _tmp23_) { -#line 6999 "PhotoPage.c" - ViewCollection* _tmp24_; - ViewCollection* _tmp25_; - DataView* _tmp26_; - Marker* _tmp27_; - Marker* _tmp28_; -#line 836 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = self->priv->parent_view; -#line 836 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = self->priv->parent_view; -#line 836 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = view_in_parent; -#line 836 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp27_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_DATA_OBJECT, DataObject)); -#line 836 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp28_ = _tmp27_; -#line 836 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_collection_select_marked (_tmp24_, _tmp28_); -#line 836 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp28_); -#line 7019 "PhotoPage.c" - } -#line 832 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (view_in_parent); -#line 7023 "PhotoPage.c" - } -#line 816 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (marker); -#line 816 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (view); -#line 7029 "PhotoPage.c" -} - - -static void -editing_host_page_real_realize (GtkWidget* base) -{ - EditingHostPage * self; -#line 840 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 841 "/home/jens/Source/shotwell/src/PhotoPage.vala" - GTK_WIDGET_CLASS (editing_host_page_parent_class)->realize (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), gtk_widget_get_type (), GtkWidget)); -#line 843 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_rebuild_caches (self, "realize"); -#line 7043 "PhotoPage.c" -} - - -static void -editing_host_page_real_switched_to (Page* base) -{ - EditingHostPage * self; - gboolean _tmp0_ = FALSE; -#line 846 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 847 "/home/jens/Source/shotwell/src/PhotoPage.vala" - PAGE_CLASS (editing_host_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page)); -#line 849 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_rebuild_caches (self, "switched_to"); -#line 852 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_has_photo (self)) { -#line 7060 "PhotoPage.c" - gboolean _tmp1_; -#line 852 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->pixbuf_dirty; -#line 852 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = _tmp1_; -#line 7066 "PhotoPage.c" - } else { -#line 852 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = FALSE; -#line 7070 "PhotoPage.c" - } -#line 852 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 7074 "PhotoPage.c" - Photo* _tmp2_; - Photo* _tmp3_; -#line 853 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = editing_host_page_get_photo (self); -#line 853 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_; -#line 853 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_replace_photo (self, _tmp3_); -#line 853 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 7085 "PhotoPage.c" - } -} - - -static void -editing_host_page_real_switching_from (Page* base) -{ - EditingHostPage * self; - Dimensions _tmp0_ = {0}; - gboolean _tmp1_ = FALSE; - ViewCollection* _tmp12_; - ViewCollection* _tmp13_; -#line 856 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 857 "/home/jens/Source/shotwell/src/PhotoPage.vala" - PAGE_CLASS (editing_host_page_parent_class)->switching_from (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page)); -#line 859 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 860 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->is_pan_in_progress = FALSE; -#line 862 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dimensions_init (&_tmp0_, 0, 0); -#line 862 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp0_, FALSE); -#line 869 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_has_photo (self)) { -#line 7112 "PhotoPage.c" - ViewCollection* _tmp2_; -#line 869 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->parent_view; -#line 869 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp2_ != NULL; -#line 7118 "PhotoPage.c" - } else { -#line 869 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = FALSE; -#line 7122 "PhotoPage.c" - } -#line 869 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp1_) { -#line 7126 "PhotoPage.c" - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - Photo* _tmp6_; - Photo* _tmp7_; - DataView* _tmp8_; - DataView* _tmp9_; - Marker* _tmp10_; - Marker* _tmp11_; -#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = self->priv->parent_view; -#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = self->priv->parent_view; -#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = self->priv->parent_view; -#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = editing_host_page_get_photo (self); -#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_; -#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = view_collection_get_view_for_source (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_SOURCE, DataSource)); -#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = _tmp8_; -#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject)); -#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = _tmp10_; -#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_collection_select_marked (_tmp3_, _tmp11_); -#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp11_); -#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp9_); -#line 870 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp7_); -#line 7162 "PhotoPage.c" - } -#line 873 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (self->priv->parent_view); -#line 873 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->parent_view = NULL; -#line 874 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 874 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = _tmp12_; -#line 874 "/home/jens/Source/shotwell/src/PhotoPage.vala" - data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection)); -#line 874 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp13_); -#line 7176 "PhotoPage.c" -} - - -static void -_editing_host_page_on_selection_changed_view_collection_items_selected (ViewCollection* _sender, - GeeIterable* selected, - gpointer self) -{ -#line 887 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_selection_changed ((EditingHostPage*) self, selected); -#line 7187 "PhotoPage.c" -} - - -static void -editing_host_page_real_switching_to_fullscreen (Page* base, - FullscreenWindow* fsw) -{ - EditingHostPage * self; - Dimensions _tmp0_ = {0}; - Page* page = NULL; - Page* _tmp1_; - Page* _tmp2_; -#line 877 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 877 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_FULLSCREEN_WINDOW (fsw)); -#line 878 "/home/jens/Source/shotwell/src/PhotoPage.vala" - PAGE_CLASS (editing_host_page_parent_class)->switching_to_fullscreen (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), fsw); -#line 880 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dimensions_init (&_tmp0_, 0, 0); -#line 880 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp0_, FALSE); -#line 882 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 883 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->is_pan_in_progress = FALSE; -#line 885 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (fsw, TYPE_PAGE_WINDOW, PageWindow)); -#line 885 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page = _tmp1_; -#line 886 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = page; -#line 886 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_ != NULL) { -#line 7222 "PhotoPage.c" - Page* _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; -#line 887 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = page; -#line 887 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = page_get_view (_tmp3_); -#line 887 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _tmp4_; -#line 887 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (_tmp5_, "items-selected", (GCallback) _editing_host_page_on_selection_changed_view_collection_items_selected, self, 0); -#line 887 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp5_); -#line 7236 "PhotoPage.c" - } -#line 877 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (page); -#line 7240 "PhotoPage.c" -} - - -static void -editing_host_page_real_returning_from_fullscreen (Page* base, - FullscreenWindow* fsw) -{ - EditingHostPage * self; - Page* page = NULL; - Page* _tmp0_; - Page* _tmp1_; -#line 890 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 890 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_FULLSCREEN_WINDOW (fsw)); -#line 891 "/home/jens/Source/shotwell/src/PhotoPage.vala" - PAGE_CLASS (editing_host_page_parent_class)->returning_from_fullscreen (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), fsw); -#line 893 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); -#line 895 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (fsw, TYPE_PAGE_WINDOW, PageWindow)); -#line 895 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page = _tmp0_; -#line 896 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = page; -#line 896 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp1_ != NULL) { -#line 7268 "PhotoPage.c" - Page* _tmp2_; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - guint _tmp5_; -#line 897 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = page; -#line 897 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = page_get_view (_tmp2_); -#line 897 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 897 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("items-selected", TYPE_VIEW_COLLECTION, &_tmp5_, NULL, FALSE); -#line 897 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _editing_host_page_on_selection_changed_view_collection_items_selected, self); -#line 897 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp4_); -#line 7285 "PhotoPage.c" - } -#line 890 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (page); -#line 7289 "PhotoPage.c" -} - - -static void -editing_host_page_on_selection_changed (EditingHostPage* self, - GeeIterable* selected) -{ -#line 900 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 900 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (GEE_IS_ITERABLE (selected)); -#line 7301 "PhotoPage.c" - { - GeeIterator* _view_it = NULL; - GeeIterator* _tmp0_; -#line 901 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = gee_iterable_iterator (selected); -#line 901 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _view_it = _tmp0_; -#line 901 "/home/jens/Source/shotwell/src/PhotoPage.vala" - while (TRUE) { -#line 7311 "PhotoPage.c" - DataView* view = NULL; - gpointer _tmp1_; - DataView* _tmp2_; - DataSource* _tmp3_; - Photo* _tmp4_; -#line 901 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!gee_iterator_next (_view_it)) { -#line 901 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 7321 "PhotoPage.c" - } -#line 901 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = gee_iterator_get (_view_it); -#line 901 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view = (DataView*) _tmp1_; -#line 902 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = view; -#line 902 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = data_view_get_source (_tmp2_); -#line 902 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PHOTO, Photo); -#line 902 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_replace_photo (self, _tmp4_); -#line 902 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp4_); -#line 903 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (view); -#line 903 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 7341 "PhotoPage.c" - } -#line 901 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_view_it); -#line 7345 "PhotoPage.c" - } -} - - -void -editing_host_page_enable_rotate (EditingHostPage* self, - gboolean should_enable) -{ - GtkToolButton* _tmp0_; -#line 907 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 908 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->rotate_button; -#line 908 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), should_enable); -#line 7361 "PhotoPage.c" -} - - -static void -_editing_host_page_on_pixbuf_fetched_pixbuf_cache_fetched (PixbufCache* _sender, - Photo* photo, - GdkPixbuf* pixbuf, - GError* err, - gpointer self) -{ -#line 926 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_pixbuf_fetched ((EditingHostPage*) self, photo, pixbuf, err); -#line 7374 "PhotoPage.c" -} - - -static gboolean -_editing_host_page_master_cache_filter_pixbuf_cache_cache_filter (Photo* photo, - gpointer self) -{ - gboolean result; - result = editing_host_page_master_cache_filter ((EditingHostPage*) self, photo); -#line 933 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 7386 "PhotoPage.c" -} - - -static void -editing_host_page_rebuild_caches (EditingHostPage* self, - const gchar* caller) -{ - Scaling scaling = {0}; - Scaling _tmp0_ = {0}; - gboolean _tmp1_ = FALSE; - PixbufCache* _tmp2_; - gchar* _tmp6_; - gchar* _tmp7_; - PixbufCache* _tmp8_; - SourceCollection* _tmp12_; - Scaling _tmp13_; - PixbufCache* _tmp14_; - PixbufCache* _tmp15_; - SourceCollection* _tmp16_; - Scaling _tmp17_; - PixbufCache* _tmp18_; -#line 914 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 914 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (caller != NULL); -#line 915 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp0_); -#line 915 "/home/jens/Source/shotwell/src/PhotoPage.vala" - scaling = _tmp0_; -#line 918 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->cache; -#line 918 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_ != NULL) { -#line 7420 "PhotoPage.c" - PixbufCache* _tmp3_; - Scaling _tmp4_ = {0}; - Scaling _tmp5_; -#line 918 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = self->priv->cache; -#line 918 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf_cache_get_scaling (_tmp3_, &_tmp4_); -#line 918 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = scaling; -#line 918 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = scaling_equals (&_tmp4_, &_tmp5_); -#line 7432 "PhotoPage.c" - } else { -#line 918 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = FALSE; -#line 7436 "PhotoPage.c" - } -#line 918 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp1_) { -#line 919 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 7442 "PhotoPage.c" - } -#line 921 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = scaling_to_string (&scaling); -#line 921 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_; -#line 921 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_debug ("PhotoPage.vala:921: Rebuild pixbuf caches: %s (%s)", caller, _tmp7_); -#line 921 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp7_); -#line 925 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = self->priv->cache; -#line 925 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp8_ != NULL) { -#line 7456 "PhotoPage.c" - PixbufCache* _tmp9_; - guint _tmp10_; - PixbufCache* _tmp11_; -#line 926 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = self->priv->cache; -#line 926 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("fetched", TYPE_PIXBUF_CACHE, &_tmp10_, NULL, FALSE); -#line 926 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _editing_host_page_on_pixbuf_fetched_pixbuf_cache_fetched, self); -#line 927 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = self->priv->cache; -#line 927 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf_cache_cancel_all (_tmp11_); -#line 7470 "PhotoPage.c" - } -#line 930 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = self->priv->sources; -#line 930 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = scaling; -#line 930 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = pixbuf_cache_new (_tmp12_, PIXBUF_CACHE_PHOTO_TYPE_BASELINE, &_tmp13_, EDITING_HOST_PAGE_PIXBUF_CACHE_COUNT, NULL, NULL); -#line 930 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->cache); -#line 930 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->cache = _tmp14_; -#line 931 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = self->priv->cache; -#line 931 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (_tmp15_, "fetched", (GCallback) _editing_host_page_on_pixbuf_fetched_pixbuf_cache_fetched, self, 0); -#line 933 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = self->priv->sources; -#line 933 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = scaling; -#line 933 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = pixbuf_cache_new (_tmp16_, PIXBUF_CACHE_PHOTO_TYPE_MASTER, &_tmp17_, EDITING_HOST_PAGE_ORIGINAL_PIXBUF_CACHE_COUNT, _editing_host_page_master_cache_filter_pixbuf_cache_cache_filter, self); -#line 933 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->master_cache); -#line 933 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->master_cache = _tmp18_; -#line 936 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_refresh_caches (self, caller); -#line 7498 "PhotoPage.c" -} - - -static void -editing_host_page_refresh_caches (EditingHostPage* self, - const gchar* caller) -{ -#line 940 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 940 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (caller != NULL); -#line 941 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_has_photo (self)) { -#line 7512 "PhotoPage.c" - Photo* _tmp0_; - Photo* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - Photo* _tmp6_; - Photo* _tmp7_; -#line 942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (self); -#line 942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject)); -#line 942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_; -#line 942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_debug ("PhotoPage.vala:942: Refresh pixbuf caches (%s): prefetching neighbors " \ -"of %s", caller, _tmp3_); -#line 942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp3_); -#line 942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 944 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 944 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _tmp4_; -#line 944 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = editing_host_page_get_photo (self); -#line 944 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_; -#line 944 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_prefetch_neighbors (self, _tmp5_, _tmp7_); -#line 944 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp7_); -#line 944 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp5_); -#line 7549 "PhotoPage.c" - } else { -#line 946 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_debug ("PhotoPage.vala:946: Refresh pixbuf caches (%s): (no photo)", caller); -#line 7553 "PhotoPage.c" - } -} - - -static gboolean -editing_host_page_master_cache_filter (EditingHostPage* self, - Photo* photo) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; -#line 950 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 950 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_PHOTO (photo), FALSE); -#line 951 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (photo_has_transformations (photo)) { -#line 951 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = TRUE; -#line 7572 "PhotoPage.c" - } else { -#line 951 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = photo_has_editable (photo); -#line 7576 "PhotoPage.c" - } -#line 951 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp0_; -#line 951 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 7582 "PhotoPage.c" -} - - -static void -editing_host_page_on_pixbuf_fetched (EditingHostPage* self, - Photo* photo, - GdkPixbuf* pixbuf, - GError* err) -{ - Photo* _tmp0_; - Photo* _tmp1_; - gboolean _tmp2_; - GError * _inner_error_ = NULL; -#line 954 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 954 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 954 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail ((pixbuf == NULL) || GDK_IS_PIXBUF (pixbuf)); -#line 956 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (self); -#line 956 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 956 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = !data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_SOURCE, DataSource)); -#line 956 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 956 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_) { -#line 957 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 7614 "PhotoPage.c" - } -#line 959 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (pixbuf != NULL) { -#line 7618 "PhotoPage.c" - gboolean _tmp3_ = FALSE; - ZoomBuffer* _tmp4_; - Dimensions max_dim = {0}; - Dimensions _tmp9_ = {0}; - EditingToolsEditingTool* _tmp10_; - Dimensions _tmp22_; -#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = self->priv->zoom_buffer; -#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp4_ != NULL) { -#line 7629 "PhotoPage.c" - ZoomBuffer* _tmp5_; - Photo* _tmp6_; - Photo* _tmp7_; -#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = self->priv->zoom_buffer; -#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = zoom_buffer_get_backing_photo (_tmp5_); -#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_; -#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp7_ == photo; -#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp7_); -#line 7643 "PhotoPage.c" - } else { -#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = FALSE; -#line 7647 "PhotoPage.c" - } -#line 961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp3_) { -#line 7651 "PhotoPage.c" - ZoomBuffer* _tmp8_; -#line 962 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = zoom_buffer_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), photo, pixbuf); -#line 962 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->zoom_buffer); -#line 962 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->zoom_buffer = _tmp8_; -#line 7659 "PhotoPage.c" - } -#line 966 "/home/jens/Source/shotwell/src/PhotoPage.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp9_); -#line 966 "/home/jens/Source/shotwell/src/PhotoPage.vala" - max_dim = _tmp9_; -#line 967 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = self->priv->current_tool; -#line 967 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp10_ != NULL) { -#line 7669 "PhotoPage.c" - { - Dimensions tool_pixbuf_dim = {0}; - GdkPixbuf* tool_pixbuf = NULL; - EditingToolsEditingTool* _tmp11_; - Scaling _tmp12_ = {0}; - Dimensions _tmp13_ = {0}; - GdkPixbuf* _tmp14_; - GdkPixbuf* _tmp15_; -#line 970 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = self->priv->current_tool; -#line 970 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp12_); -#line 970 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = editing_tools_editing_tool_get_display_pixbuf (_tmp11_, &_tmp12_, photo, &_tmp13_, &_inner_error_); -#line 970 "/home/jens/Source/shotwell/src/PhotoPage.vala" - tool_pixbuf_dim = _tmp13_; -#line 970 "/home/jens/Source/shotwell/src/PhotoPage.vala" - tool_pixbuf = _tmp14_; -#line 970 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7690 "PhotoPage.c" - goto __catch256_g_error; - } -#line 973 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = tool_pixbuf; -#line 973 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp15_ != NULL) { -#line 7697 "PhotoPage.c" - GdkPixbuf* _tmp16_; - Dimensions _tmp17_; -#line 974 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = tool_pixbuf; -#line 974 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf = _tmp16_; -#line 975 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = tool_pixbuf_dim; -#line 975 "/home/jens/Source/shotwell/src/PhotoPage.vala" - max_dim = _tmp17_; -#line 7708 "PhotoPage.c" - } -#line 968 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (tool_pixbuf); -#line 7712 "PhotoPage.c" - } - goto __finally256; - __catch256_g_error: - { - GError* err = NULL; - gchar* _tmp18_; - gchar* _tmp19_; - GError* _tmp20_; - const gchar* _tmp21_; -#line 968 "/home/jens/Source/shotwell/src/PhotoPage.vala" - err = _inner_error_; -#line 968 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _inner_error_ = NULL; -#line 978 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_OBJECT, DataObject)); -#line 978 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = _tmp18_; -#line 978 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = err; -#line 978 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = _tmp20_->message; -#line 978 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_warning ("PhotoPage.vala:978: Unable to fetch tool pixbuf for %s: %s", _tmp19_, _tmp21_); -#line 978 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp19_); -#line 979 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_set_photo_missing (self, TRUE); -#line 981 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_error_free0 (err); -#line 981 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 7744 "PhotoPage.c" - } - __finally256: -#line 968 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 968 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 968 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_clear_error (&_inner_error_); -#line 968 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 7755 "PhotoPage.c" - } - } -#line 985 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = max_dim; -#line 985 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), pixbuf, &_tmp22_, NULL); -#line 986 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->pixbuf_dirty = FALSE; -#line 988 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_notify_photo_backing_missing (self, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo), FALSE); -#line 7766 "PhotoPage.c" - } else { -#line 989 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (err != NULL) { -#line 992 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_set_photo_missing (self, TRUE); -#line 995 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_notify_photo_backing_missing (self, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo), TRUE); -#line 7774 "PhotoPage.c" - } - } -} - - -static void -editing_host_page_prefetch_neighbors (EditingHostPage* self, - ViewCollection* controller, - Photo* photo) -{ - PixbufCachePixbufCacheBatch* normal_batch = NULL; - PixbufCachePixbufCacheBatch* _tmp0_; - PixbufCachePixbufCacheBatch* master_batch = NULL; - PixbufCachePixbufCacheBatch* _tmp1_; - PixbufCachePixbufCacheBatch* _tmp2_; - PixbufCachePixbufCacheBatch* _tmp3_; - DataSource* next_source = NULL; - DataSource* prev_source = NULL; - DataSource* _tmp4_ = NULL; - DataSource* _tmp5_ = NULL; - gboolean _tmp6_; - Photo* next = NULL; - DataSource* _tmp7_; - Photo* _tmp8_; - Photo* prev = NULL; - DataSource* _tmp9_; - Photo* _tmp10_; - PixbufCache* _tmp30_; - PixbufCachePixbufCacheBatch* _tmp31_; - PixbufCache* _tmp32_; - PixbufCachePixbufCacheBatch* _tmp33_; -#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_VIEW_COLLECTION (controller)); -#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 1000 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = pixbuf_cache_pixbuf_cache_batch_new (); -#line 1000 "/home/jens/Source/shotwell/src/PhotoPage.vala" - normal_batch = _tmp0_; -#line 1001 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = pixbuf_cache_pixbuf_cache_batch_new (); -#line 1001 "/home/jens/Source/shotwell/src/PhotoPage.vala" - master_batch = _tmp1_; -#line 1003 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = normal_batch; -#line 1003 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_MULTI_MAP, GeeMultiMap), (gpointer) ((gintptr) BACKGROUND_JOB_JOB_PRIORITY_HIGHEST), photo); -#line 1004 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = master_batch; -#line 1004 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_MULTI_MAP, GeeMultiMap), (gpointer) ((gintptr) BACKGROUND_JOB_JOB_PRIORITY_LOW), photo); -#line 1007 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = view_collection_get_immediate_neighbors (controller, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), &_tmp4_, &_tmp5_, PHOTO_TYPENAME); -#line 1007 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (next_source); -#line 1007 "/home/jens/Source/shotwell/src/PhotoPage.vala" - next_source = _tmp4_; -#line 1007 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (prev_source); -#line 1007 "/home/jens/Source/shotwell/src/PhotoPage.vala" - prev_source = _tmp5_; -#line 1007 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!_tmp6_) { -#line 1008 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (prev_source); -#line 1008 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (next_source); -#line 1008 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (master_batch); -#line 1008 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (normal_batch); -#line 1008 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 7850 "PhotoPage.c" - } -#line 1010 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = next_source; -#line 1010 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO, Photo)); -#line 1010 "/home/jens/Source/shotwell/src/PhotoPage.vala" - next = _tmp8_; -#line 1011 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = prev_source; -#line 1011 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO, Photo)); -#line 1011 "/home/jens/Source/shotwell/src/PhotoPage.vala" - prev = _tmp10_; -#line 7864 "PhotoPage.c" - { - GeeIterator* _neighbor_source_it = NULL; - GeeSet* _tmp11_; - GeeSet* _tmp12_; - GeeIterator* _tmp13_; - GeeIterator* _tmp14_; -#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = view_collection_get_extended_neighbors (controller, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), PHOTO_TYPENAME); -#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _tmp11_; -#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = _tmp13_; -#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp12_); -#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _neighbor_source_it = _tmp14_; -#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - while (TRUE) { -#line 7885 "PhotoPage.c" - GeeIterator* _tmp15_; - DataSource* neighbor_source = NULL; - GeeIterator* _tmp16_; - gpointer _tmp17_; - Photo* neighbor = NULL; - DataSource* _tmp18_; - Photo* _tmp19_; - BackgroundJobJobPriority priority = 0; - gboolean _tmp20_ = FALSE; - Photo* _tmp21_; - Photo* _tmp22_; - PixbufCachePixbufCacheBatch* _tmp25_; - BackgroundJobJobPriority _tmp26_; - Photo* _tmp27_; - PixbufCachePixbufCacheBatch* _tmp28_; - Photo* _tmp29_; -#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = _neighbor_source_it; -#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!gee_iterator_next (_tmp15_)) { -#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 7908 "PhotoPage.c" - } -#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = _neighbor_source_it; -#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = gee_iterator_get (_tmp16_); -#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - neighbor_source = (DataSource*) _tmp17_; -#line 1015 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = neighbor_source; -#line 1015 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_PHOTO, Photo)); -#line 1015 "/home/jens/Source/shotwell/src/PhotoPage.vala" - neighbor = _tmp19_; -#line 1017 "/home/jens/Source/shotwell/src/PhotoPage.vala" - priority = BACKGROUND_JOB_JOB_PRIORITY_NORMAL; -#line 1018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = neighbor; -#line 1018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = next; -#line 1018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_DATA_SOURCE, DataSource))) { -#line 1018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = TRUE; -#line 7932 "PhotoPage.c" - } else { - Photo* _tmp23_; - Photo* _tmp24_; -#line 1018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = neighbor; -#line 1018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = prev; -#line 1018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_SOURCE, DataSource)); -#line 7942 "PhotoPage.c" - } -#line 1018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp20_) { -#line 1019 "/home/jens/Source/shotwell/src/PhotoPage.vala" - priority = BACKGROUND_JOB_JOB_PRIORITY_HIGH; -#line 7948 "PhotoPage.c" - } -#line 1021 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = normal_batch; -#line 1021 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = priority; -#line 1021 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp27_ = neighbor; -#line 1021 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_MULTI_MAP, GeeMultiMap), (gpointer) ((gintptr) _tmp26_), _tmp27_); -#line 1022 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp28_ = master_batch; -#line 1022 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp29_ = neighbor; -#line 1022 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_MULTI_MAP, GeeMultiMap), (gpointer) ((gintptr) BACKGROUND_JOB_JOB_PRIORITY_LOWEST), _tmp29_); -#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (neighbor); -#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (neighbor_source); -#line 7968 "PhotoPage.c" - } -#line 1014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_neighbor_source_it); -#line 7972 "PhotoPage.c" - } -#line 1025 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp30_ = self->priv->cache; -#line 1025 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp31_ = normal_batch; -#line 1025 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf_cache_prefetch_batch (_tmp30_, _tmp31_, FALSE); -#line 1026 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp32_ = self->priv->master_cache; -#line 1026 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp33_ = master_batch; -#line 1026 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf_cache_prefetch_batch (_tmp32_, _tmp33_, FALSE); -#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (prev); -#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (next); -#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (prev_source); -#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (next_source); -#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (master_batch); -#line 999 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (normal_batch); -#line 7998 "PhotoPage.c" -} - - -static void -editing_host_page_cancel_prefetch_neighbors (EditingHostPage* self, - ViewCollection* old_controller, - Photo* old_photo, - ViewCollection* new_controller, - Photo* new_photo) -{ - GeeSet* old_neighbors = NULL; - GeeSet* _tmp0_; - GeeSet* new_neighbors = NULL; - GeeSet* _tmp1_; - gboolean _tmp15_ = FALSE; - GeeSet* _tmp16_; -#line 1031 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1031 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_VIEW_COLLECTION (old_controller)); -#line 1031 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_PHOTO (old_photo)); -#line 1031 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_VIEW_COLLECTION (new_controller)); -#line 1031 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_PHOTO (new_photo)); -#line 1033 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = view_collection_get_extended_neighbors (old_controller, G_TYPE_CHECK_INSTANCE_CAST (old_photo, TYPE_DATA_SOURCE, DataSource), PHOTO_TYPENAME); -#line 1033 "/home/jens/Source/shotwell/src/PhotoPage.vala" - old_neighbors = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SET, GeeSet); -#line 1035 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = view_collection_get_extended_neighbors (new_controller, G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_DATA_SOURCE, DataSource), PHOTO_TYPENAME); -#line 1035 "/home/jens/Source/shotwell/src/PhotoPage.vala" - new_neighbors = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SET, GeeSet); -#line 8033 "PhotoPage.c" - { - GeeIterator* _old_neighbor_it = NULL; - GeeSet* _tmp2_; - GeeIterator* _tmp3_; -#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = old_neighbors; -#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _old_neighbor_it = _tmp3_; -#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala" - while (TRUE) { -#line 8046 "PhotoPage.c" - GeeIterator* _tmp4_; - Photo* old_neighbor = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - gboolean _tmp7_ = FALSE; - GeeSet* _tmp8_; - Photo* _tmp9_; -#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _old_neighbor_it; -#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 8060 "PhotoPage.c" - } -#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _old_neighbor_it; -#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala" - old_neighbor = (Photo*) _tmp6_; -#line 1041 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = new_neighbors; -#line 1041 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = old_neighbor; -#line 1041 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection), _tmp9_)) { -#line 8074 "PhotoPage.c" - Photo* _tmp10_; -#line 1041 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = old_neighbor; -#line 1041 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = !data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_SOURCE, DataSource)); -#line 8080 "PhotoPage.c" - } else { -#line 1041 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = FALSE; -#line 8084 "PhotoPage.c" - } -#line 1041 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp7_) { -#line 8088 "PhotoPage.c" - PixbufCache* _tmp11_; - Photo* _tmp12_; - PixbufCache* _tmp13_; - Photo* _tmp14_; -#line 1042 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = self->priv->cache; -#line 1042 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = old_neighbor; -#line 1042 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf_cache_drop (_tmp11_, _tmp12_); -#line 1043 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = self->priv->master_cache; -#line 1043 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = old_neighbor; -#line 1043 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf_cache_drop (_tmp13_, _tmp14_); -#line 8105 "PhotoPage.c" - } -#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (old_neighbor); -#line 8109 "PhotoPage.c" - } -#line 1038 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_old_neighbor_it); -#line 8113 "PhotoPage.c" - } -#line 1048 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = new_neighbors; -#line 1048 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection), old_photo)) { -#line 1048 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = !data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (old_photo, TYPE_DATA_SOURCE, DataSource)); -#line 8121 "PhotoPage.c" - } else { -#line 1048 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = FALSE; -#line 8125 "PhotoPage.c" - } -#line 1048 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp15_) { -#line 8129 "PhotoPage.c" - PixbufCache* _tmp17_; - PixbufCache* _tmp18_; -#line 1049 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = self->priv->cache; -#line 1049 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf_cache_drop (_tmp17_, old_photo); -#line 1050 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = self->priv->master_cache; -#line 1050 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf_cache_drop (_tmp18_, old_photo); -#line 8140 "PhotoPage.c" - } -#line 1031 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (new_neighbors); -#line 1031 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (old_neighbors); -#line 8146 "PhotoPage.c" -} - - -static DataView* -editing_host_page_real_create_photo_view (EditingHostPage* self, - DataSource* source) -{ - DataView* result = NULL; - PhotoView* _tmp0_; -#line 1054 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 1055 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = photo_view_new (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO_SOURCE, PhotoSource)); -#line 1055 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_VIEW, DataView); -#line 1055 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 8164 "PhotoPage.c" -} - - -DataView* -editing_host_page_create_photo_view (EditingHostPage* self, - DataSource* source) -{ -#line 1054 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL); -#line 1054 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return EDITING_HOST_PAGE_GET_CLASS (self)->create_photo_view (self, source); -#line 8176 "PhotoPage.c" -} - - -static gboolean -editing_host_page_is_photo (EditingHostPage* self, - DataSource* source) -{ - gboolean result = FALSE; -#line 1058 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 1058 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 1059 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO_SOURCE); -#line 1059 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 8193 "PhotoPage.c" -} - - -static DataView* -_editing_host_page_create_photo_view_create_view (DataSource* source, - gpointer self) -{ - DataView* result; - result = editing_host_page_create_photo_view ((EditingHostPage*) self, source); -#line 1067 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 8205 "PhotoPage.c" -} - - -static gboolean -_editing_host_page_is_photo_create_view_predicate (DataSource* source, - gpointer self) -{ - gboolean result; - result = editing_host_page_is_photo ((EditingHostPage*) self, source); -#line 1067 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 8217 "PhotoPage.c" -} - - -void -editing_host_page_display_copy_of (EditingHostPage* self, - ViewCollection* controller, - Photo* starting_photo) -{ - DataView* _tmp0_; - DataView* _tmp1_; - gboolean _tmp2_ = FALSE; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - gboolean _tmp5_; -#line 1062 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1062 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_VIEW_COLLECTION (controller)); -#line 1062 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_PHOTO (starting_photo)); -#line 1063 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = view_collection_get_view_for_source (controller, G_TYPE_CHECK_INSTANCE_CAST (starting_photo, TYPE_DATA_SOURCE, DataSource)); -#line 1063 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 1063 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _vala_assert (_tmp1_ != NULL, "controller.get_view_for_source(starting_photo) != null"); -#line 1063 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = controller != _tmp4_; -#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp4_); -#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp5_) { -#line 8256 "PhotoPage.c" - ViewCollection* _tmp6_; -#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = self->priv->parent_view; -#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = controller != _tmp6_; -#line 8262 "PhotoPage.c" - } else { -#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = FALSE; -#line 8266 "PhotoPage.c" - } -#line 1065 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_) { -#line 8270 "PhotoPage.c" - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; - ViewCollection* _tmp9_; - ViewCollection* _tmp10_; - ViewCollection* _tmp11_; -#line 1066 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1066 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_; -#line 1066 "/home/jens/Source/shotwell/src/PhotoPage.vala" - data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1066 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp8_); -#line 1067 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1067 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = _tmp9_; -#line 1067 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_collection_copy_into (_tmp10_, controller, _editing_host_page_create_photo_view_create_view, self, _editing_host_page_is_photo_create_view_predicate, self); -#line 1067 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp10_); -#line 1068 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = _data_collection_ref0 (controller); -#line 1068 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (self->priv->parent_view); -#line 1068 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->parent_view = _tmp11_; -#line 8298 "PhotoPage.c" - } -#line 1071 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_replace_photo (self, starting_photo); -#line 8302 "PhotoPage.c" -} - - -void -editing_host_page_display_mirror_of (EditingHostPage* self, - ViewCollection* controller, - Photo* starting_photo) -{ - DataView* _tmp0_; - DataView* _tmp1_; - gboolean _tmp2_ = FALSE; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - gboolean _tmp5_; -#line 1074 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1074 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_VIEW_COLLECTION (controller)); -#line 1074 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_PHOTO (starting_photo)); -#line 1075 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = view_collection_get_view_for_source (controller, G_TYPE_CHECK_INSTANCE_CAST (starting_photo, TYPE_DATA_SOURCE, DataSource)); -#line 1075 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 1075 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _vala_assert (_tmp1_ != NULL, "controller.get_view_for_source(starting_photo) != null"); -#line 1075 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = controller != _tmp4_; -#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp4_); -#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp5_) { -#line 8341 "PhotoPage.c" - ViewCollection* _tmp6_; -#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = self->priv->parent_view; -#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = controller != _tmp6_; -#line 8347 "PhotoPage.c" - } else { -#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = FALSE; -#line 8351 "PhotoPage.c" - } -#line 1077 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_) { -#line 8355 "PhotoPage.c" - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; - ViewCollection* _tmp9_; - ViewCollection* _tmp10_; - ViewCollection* _tmp11_; -#line 1078 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1078 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_; -#line 1078 "/home/jens/Source/shotwell/src/PhotoPage.vala" - data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1078 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp8_); -#line 1079 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1079 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = _tmp9_; -#line 1079 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_collection_mirror (_tmp10_, controller, _editing_host_page_create_photo_view_create_view, self, _editing_host_page_is_photo_create_view_predicate, self); -#line 1079 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp10_); -#line 1080 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = _data_collection_ref0 (controller); -#line 1080 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (self->priv->parent_view); -#line 1080 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->parent_view = _tmp11_; -#line 8383 "PhotoPage.c" - } -#line 1083 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_replace_photo (self, starting_photo); -#line 8387 "PhotoPage.c" -} - - -static void -editing_host_page_real_update_ui (EditingHostPage* self, - gboolean missing) -{ - gboolean sensitivity = FALSE; - GtkToolButton* _tmp0_; - GtkToggleToolButton* _tmp1_; - GtkToggleToolButton* _tmp2_; - GtkToggleToolButton* _tmp3_; - GtkToggleToolButton* _tmp4_; - GtkToolButton* _tmp5_; - GtkScale* _tmp6_; - Dimensions _tmp7_ = {0}; -#line 1087 "/home/jens/Source/shotwell/src/PhotoPage.vala" - sensitivity = !missing; -#line 1089 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->rotate_button; -#line 1089 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), sensitivity); -#line 1090 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->crop_button; -#line 1090 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), sensitivity); -#line 1091 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->straighten_button; -#line 1091 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), sensitivity); -#line 1092 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = self->priv->redeye_button; -#line 1092 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), sensitivity); -#line 1093 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = self->priv->adjust_button; -#line 1093 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), sensitivity); -#line 1094 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = self->priv->enhance_button; -#line 1094 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), sensitivity); -#line 1095 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = self->priv->zoom_slider; -#line 1095 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), sensitivity); -#line 1097 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dimensions_init (&_tmp7_, 0, 0); -#line 1097 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp7_, FALSE); -#line 8438 "PhotoPage.c" -} - - -void -editing_host_page_update_ui (EditingHostPage* self, - gboolean missing) -{ -#line 1086 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1086 "/home/jens/Source/shotwell/src/PhotoPage.vala" - EDITING_HOST_PAGE_GET_CLASS (self)->update_ui (self, missing); -#line 8450 "PhotoPage.c" -} - - -static void -editing_host_page_real_notify_photo_backing_missing (EditingHostPage* self, - Photo* photo, - gboolean missing) -{ -#line 1101 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 8461 "PhotoPage.c" -} - - -void -editing_host_page_notify_photo_backing_missing (EditingHostPage* self, - Photo* photo, - gboolean missing) -{ -#line 1101 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1101 "/home/jens/Source/shotwell/src/PhotoPage.vala" - EDITING_HOST_PAGE_GET_CLASS (self)->notify_photo_backing_missing (self, photo, missing); -#line 8474 "PhotoPage.c" -} - - -static void -editing_host_page_draw_message (EditingHostPage* self, - const gchar* message) -{ - PangoLayout* pango_layout = NULL; - PangoLayout* _tmp0_; - gint text_width = 0; - gint text_height = 0; - PangoLayout* _tmp1_; - gint _tmp2_ = 0; - gint _tmp3_ = 0; - GtkAllocation allocation = {0}; - GtkAllocation _tmp4_ = {0}; - gint x = 0; - GtkAllocation _tmp5_; - gint _tmp6_; - gint _tmp7_; - gint _tmp8_ = 0; - gint _tmp9_; - gint y = 0; - GtkAllocation _tmp11_; - gint _tmp12_; - gint _tmp13_; - gint _tmp14_ = 0; - gint _tmp15_; - PangoLayout* _tmp17_; - gint _tmp18_; - gint _tmp19_; -#line 1104 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1104 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (message != NULL); -#line 1106 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = gtk_widget_create_pango_layout (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), message); -#line 1106 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pango_layout = _tmp0_; -#line 1108 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = pango_layout; -#line 1108 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pango_layout_get_pixel_size (_tmp1_, &_tmp2_, &_tmp3_); -#line 1108 "/home/jens/Source/shotwell/src/PhotoPage.vala" - text_width = _tmp2_; -#line 1108 "/home/jens/Source/shotwell/src/PhotoPage.vala" - text_height = _tmp3_; -#line 1111 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), &_tmp4_); -#line 1111 "/home/jens/Source/shotwell/src/PhotoPage.vala" - allocation = _tmp4_; -#line 1113 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = allocation; -#line 1113 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_.width; -#line 1113 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = text_width; -#line 1113 "/home/jens/Source/shotwell/src/PhotoPage.vala" - x = _tmp6_ - _tmp7_; -#line 1114 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = x; -#line 1114 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp9_ > 0) { -#line 8538 "PhotoPage.c" - gint _tmp10_; -#line 1114 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = x; -#line 1114 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp10_ / 2; -#line 8544 "PhotoPage.c" - } else { -#line 1114 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = 0; -#line 8548 "PhotoPage.c" - } -#line 1114 "/home/jens/Source/shotwell/src/PhotoPage.vala" - x = _tmp8_; -#line 1116 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = allocation; -#line 1116 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _tmp11_.height; -#line 1116 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = text_height; -#line 1116 "/home/jens/Source/shotwell/src/PhotoPage.vala" - y = _tmp12_ - _tmp13_; -#line 1117 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = y; -#line 1117 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp15_ > 0) { -#line 8564 "PhotoPage.c" - gint _tmp16_; -#line 1117 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = y; -#line 1117 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = _tmp16_ / 2; -#line 8570 "PhotoPage.c" - } else { -#line 1117 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = 0; -#line 8574 "PhotoPage.c" - } -#line 1117 "/home/jens/Source/shotwell/src/PhotoPage.vala" - y = _tmp14_; -#line 1119 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = pango_layout; -#line 1119 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = x; -#line 1119 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = y; -#line 1119 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_paint_text (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp17_, _tmp18_, _tmp19_); -#line 1104 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (pango_layout); -#line 8588 "PhotoPage.c" -} - - -void -editing_host_page_set_photo_missing (EditingHostPage* self, - gboolean missing) -{ - gboolean _tmp0_; - Photo* photo = NULL; - Photo* _tmp1_; - Photo* _tmp2_; - gboolean _tmp3_; - GError * _inner_error_ = NULL; -#line 1123 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1124 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->photo_missing; -#line 1124 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_ == missing) { -#line 1125 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 8610 "PhotoPage.c" - } -#line 1127 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->photo_missing = missing; -#line 1129 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = editing_host_page_get_photo (self); -#line 1129 "/home/jens/Source/shotwell/src/PhotoPage.vala" - photo = _tmp1_; -#line 1130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = photo; -#line 1130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_ == NULL) { -#line 1131 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photo); -#line 1131 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 8626 "PhotoPage.c" - } -#line 1133 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_update_ui (self, missing); -#line 1135 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = self->priv->photo_missing; -#line 1135 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp3_) { -#line 8634 "PhotoPage.c" - { - GdkPixbuf* pixbuf = NULL; - Photo* _tmp4_; - Scaling _tmp5_ = {0}; - GdkPixbuf* _tmp6_; - GdkPixbuf* _tmp7_; - GdkPixbuf* _tmp8_; - GdkPixbuf* _tmp9_; - GdkPixbuf* _tmp10_; - GdkPixbuf* _tmp11_; - Photo* _tmp12_; - Dimensions _tmp13_ = {0}; -#line 1137 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = photo; -#line 1137 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp5_); -#line 1137 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = media_source_get_preview_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource), &_tmp5_, &_inner_error_); -#line 1137 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf = _tmp6_; -#line 1137 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8657 "PhotoPage.c" - goto __catch257_g_error; - } -#line 1139 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = pixbuf; -#line 1139 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = pixbuf; -#line 1139 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = pixbuf; -#line 1139 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = gdk_pixbuf_composite_color_simple (_tmp7_, gdk_pixbuf_get_width (_tmp8_), gdk_pixbuf_get_height (_tmp9_), GDK_INTERP_NEAREST, 100, 2, (guint32) 0, (guint32) 0); -#line 1139 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (pixbuf); -#line 1139 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf = _tmp10_; -#line 1142 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = pixbuf; -#line 1142 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = photo; -#line 1142 "/home/jens/Source/shotwell/src/PhotoPage.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp13_); -#line 1142 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp11_, &_tmp13_, NULL); -#line 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (pixbuf); -#line 8682 "PhotoPage.c" - } - goto __finally257; - __catch257_g_error: - { - GError* err = NULL; - GdkPixbuf* _tmp14_; - GdkPixbuf* _tmp15_; - Photo* _tmp16_; - Dimensions _tmp17_ = {0}; - GError* _tmp18_; - const gchar* _tmp19_; -#line 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala" - err = _inner_error_; -#line 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _inner_error_ = NULL; -#line 1144 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, 1, 1); -#line 1144 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = _tmp14_; -#line 1144 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = photo; -#line 1144 "/home/jens/Source/shotwell/src/PhotoPage.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp17_); -#line 1144 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp15_, &_tmp17_, NULL); -#line 1144 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp15_); -#line 1145 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = err; -#line 1145 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = _tmp18_->message; -#line 1145 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_warning ("PhotoPage.vala:1145: %s", _tmp19_); -#line 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_error_free0 (err); -#line 8718 "PhotoPage.c" - } - __finally257: -#line 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photo); -#line 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_clear_error (&_inner_error_); -#line 1136 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 8731 "PhotoPage.c" - } - } -#line 1123 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photo); -#line 8736 "PhotoPage.c" -} - - -gboolean -editing_host_page_get_photo_missing (EditingHostPage* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 1150 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 1151 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->photo_missing; -#line 1151 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp0_; -#line 1151 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 8753 "PhotoPage.c" -} - - -static gboolean -editing_host_page_real_confirm_replace_photo (EditingHostPage* self, - Photo* old_photo, - Photo* new_photo) -{ - gboolean result = FALSE; -#line 1154 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail ((old_photo == NULL) || IS_PHOTO (old_photo), FALSE); -#line 1154 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_PHOTO (new_photo), FALSE); -#line 1155 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 1155 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 8771 "PhotoPage.c" -} - - -gboolean -editing_host_page_confirm_replace_photo (EditingHostPage* self, - Photo* old_photo, - Photo* new_photo) -{ -#line 1154 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 1154 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return EDITING_HOST_PAGE_GET_CLASS (self)->confirm_replace_photo (self, old_photo, new_photo); -#line 8784 "PhotoPage.c" -} - - -static GdkPixbuf* -editing_host_page_get_zoom_pixbuf (EditingHostPage* self, - Photo* new_photo) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* pixbuf = NULL; - PixbufCache* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp9_; - GError * _inner_error_ = NULL; -#line 1158 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL); -#line 1158 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_PHOTO (new_photo), NULL); -#line 1159 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->cache; -#line 1159 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = pixbuf_cache_get_ready_pixbuf (_tmp0_, new_photo); -#line 1159 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf = _tmp1_; -#line 1160 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = pixbuf; -#line 1160 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_ == NULL) { -#line 8813 "PhotoPage.c" - { - GdkPixbuf* _tmp3_ = NULL; - Scaling _tmp4_ = {0}; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; -#line 1162 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp4_); -#line 1162 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = media_source_get_preview_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_MEDIA_SOURCE, MediaSource), &_tmp4_, &_inner_error_); -#line 1162 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp5_; -#line 1162 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8827 "PhotoPage.c" - goto __catch258_g_error; - } -#line 1162 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp3_; -#line 1162 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = NULL; -#line 1162 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (pixbuf); -#line 1162 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf = _tmp6_; -#line 1161 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 8840 "PhotoPage.c" - } - goto __finally258; - __catch258_g_error: - { - GError* err = NULL; - GError* _tmp7_; - const gchar* _tmp8_; -#line 1161 "/home/jens/Source/shotwell/src/PhotoPage.vala" - err = _inner_error_; -#line 1161 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _inner_error_ = NULL; -#line 1164 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = err; -#line 1164 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_->message; -#line 1164 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_warning ("PhotoPage.vala:1164: %s", _tmp8_); -#line 1161 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_error_free0 (err); -#line 8860 "PhotoPage.c" - } - __finally258: -#line 1161 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1161 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (pixbuf); -#line 1161 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1161 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_clear_error (&_inner_error_); -#line 1161 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return NULL; -#line 8873 "PhotoPage.c" - } - } -#line 1167 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = pixbuf; -#line 1167 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp9_ == NULL) { -#line 8880 "PhotoPage.c" - GdkPixbuf* _tmp10_; - Scaling _tmp11_ = {0}; - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; - GdkPixbuf* _tmp14_; -#line 1168 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = get_placeholder_pixbuf (); -#line 1168 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (pixbuf); -#line 1168 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf = _tmp10_; -#line 1169 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp11_); -#line 1169 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = pixbuf; -#line 1169 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = scaling_perform_on_pixbuf (&_tmp11_, _tmp12_, GDK_INTERP_NEAREST, TRUE); -#line 1169 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = _tmp13_; -#line 1169 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp14_); -#line 8902 "PhotoPage.c" - } -#line 1171 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = pixbuf; -#line 1171 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 8908 "PhotoPage.c" -} - - -static void -editing_host_page_replace_photo (EditingHostPage* self, - Photo* new_photo) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - Photo* _tmp2_; - Photo* _tmp3_; - gboolean _tmp4_; - gboolean _tmp10_ = FALSE; - gboolean _tmp11_ = FALSE; - Dimensions _tmp17_ = {0}; - Photo* old_photo = NULL; - Photo* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - GFile* _tmp21_; - GFile* _tmp22_; - Photo* _tmp23_; - GdkPixbuf* _tmp29_; - GdkPixbuf* _tmp30_; - ZoomBuffer* _tmp31_; -#line 1174 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1174 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_PHOTO (new_photo)); -#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = editing_host_page_get_photo (self); -#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_; -#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_SOURCE, DataSource)); -#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp4_) { -#line 8948 "PhotoPage.c" - gboolean _tmp5_; -#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = self->priv->pixbuf_dirty; -#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = !_tmp5_; -#line 8954 "PhotoPage.c" - } else { -#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = FALSE; -#line 8958 "PhotoPage.c" - } -#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp1_) { -#line 8962 "PhotoPage.c" - gboolean _tmp6_; -#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = self->priv->photo_missing; -#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = !_tmp6_; -#line 8968 "PhotoPage.c" - } else { -#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = FALSE; -#line 8972 "PhotoPage.c" - } -#line 1179 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 8976 "PhotoPage.c" - GdkPixbuf* _tmp7_; - GdkPixbuf* _tmp8_; - ZoomBuffer* _tmp9_; -#line 1180 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = editing_host_page_get_zoom_pixbuf (self, new_photo); -#line 1180 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_; -#line 1180 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = zoom_buffer_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), new_photo, _tmp8_); -#line 1180 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->zoom_buffer); -#line 1180 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->zoom_buffer = _tmp9_; -#line 1180 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp8_); -#line 1181 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 8994 "PhotoPage.c" - } -#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_has_photo (self)) { -#line 8998 "PhotoPage.c" - Photo* _tmp12_; - Photo* _tmp13_; -#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = editing_host_page_get_photo (self); -#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = _tmp12_; -#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = !data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_SOURCE, DataSource)); -#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp13_); -#line 9009 "PhotoPage.c" - } else { -#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = FALSE; -#line 9013 "PhotoPage.c" - } -#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp11_) { -#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = editing_host_page_confirm_replace_photo != NULL; -#line 9019 "PhotoPage.c" - } else { -#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = FALSE; -#line 9023 "PhotoPage.c" - } -#line 1185 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp10_) { -#line 9027 "PhotoPage.c" - Photo* _tmp14_; - Photo* _tmp15_; - gboolean _tmp16_; -#line 1186 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = editing_host_page_get_photo (self); -#line 1186 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = _tmp14_; -#line 1186 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = !editing_host_page_confirm_replace_photo (self, _tmp15_, new_photo); -#line 1186 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp15_); -#line 1186 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp16_) { -#line 1187 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 9043 "PhotoPage.c" - } - } -#line 1190 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dimensions_init (&_tmp17_, 0, 0); -#line 1190 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp17_, FALSE); -#line 1193 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = editing_host_page_get_photo (self); -#line 1193 "/home/jens/Source/shotwell/src/PhotoPage.vala" - old_photo = _tmp18_; -#line 1194 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_set_photo (self, new_photo); -#line 1195 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_DATA_OBJECT, DataObject)); -#line 1195 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = _tmp19_; -#line 1195 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_page_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp20_); -#line 1195 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp20_); -#line 1198 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->swapped); -#line 1198 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->swapped = NULL; -#line 1201 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1201 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = _tmp21_; -#line 1201 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_set_photo_missing (self, !g_file_query_exists (_tmp22_, NULL)); -#line 1201 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp22_); -#line 1202 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->pixbuf_dirty = TRUE; -#line 1206 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_rebuild_caches (self, "replace_photo"); -#line 1208 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = old_photo; -#line 1208 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp23_ != NULL) { -#line 9084 "PhotoPage.c" - ViewCollection* _tmp24_; - ViewCollection* _tmp25_; - Photo* _tmp26_; - ViewCollection* _tmp27_; - ViewCollection* _tmp28_; -#line 1209 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1209 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = _tmp24_; -#line 1209 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = old_photo; -#line 1209 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp27_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1209 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp28_ = _tmp27_; -#line 1209 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_cancel_prefetch_neighbors (self, _tmp25_, _tmp26_, _tmp28_, new_photo); -#line 1209 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp28_); -#line 1209 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp25_); -#line 9106 "PhotoPage.c" - } -#line 1211 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 1213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp29_ = editing_host_page_get_zoom_pixbuf (self, new_photo); -#line 1213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp30_ = _tmp29_; -#line 1213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp31_ = zoom_buffer_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), new_photo, _tmp30_); -#line 1213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->zoom_buffer); -#line 1213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->zoom_buffer = _tmp31_; -#line 1213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp30_); -#line 1215 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_quick_update_pixbuf (self); -#line 1218 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_refresh_caches (self, "replace_photo"); -#line 1174 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (old_photo); -#line 9128 "PhotoPage.c" -} - - -static void -editing_host_page_real_cancel_zoom (SinglePhotoPage* base) -{ - EditingHostPage * self; - GtkScale* _tmp0_; - guint _tmp1_; - GtkScale* _tmp2_; - GtkScale* _tmp3_; - Photo* _tmp4_; - Photo* _tmp5_; - gboolean _tmp6_; - gboolean _tmp12_ = FALSE; - GtkDrawingArea* _tmp13_; -#line 1221 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1222 "/home/jens/Source/shotwell/src/PhotoPage.vala" - SINGLE_PHOTO_PAGE_CLASS (editing_host_page_parent_class)->cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 1224 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->zoom_slider; -#line 1224 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp1_, NULL, FALSE); -#line 1224 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self); -#line 1225 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->zoom_slider; -#line 1225 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_range_get_type (), GtkRange), 0.0); -#line 1226 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = self->priv->zoom_slider; -#line 1226 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_host_page_on_zoom_slider_value_changed_gtk_range_value_changed, self, 0); -#line 1228 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = editing_host_page_get_photo (self); -#line 1228 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _tmp4_; -#line 1228 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_ != NULL; -#line 1228 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp5_); -#line 1228 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp6_) { -#line 9173 "PhotoPage.c" - Photo* _tmp7_; - Photo* _tmp8_; - Dimensions _tmp9_ = {0}; - Dimensions _tmp10_ = {0}; - ZoomState _tmp11_ = {0}; -#line 1229 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = editing_host_page_get_photo (self); -#line 1229 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_; -#line 1229 "/home/jens/Source/shotwell/src/PhotoPage.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp9_); -#line 1229 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_surface_dim (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp10_); -#line 1229 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_init (&_tmp11_, &_tmp9_, &_tmp10_, 0.0, NULL); -#line 1229 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_set_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp11_); -#line 1229 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp8_); -#line 9193 "PhotoPage.c" - } -#line 1235 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)->canvas; -#line 1235 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp13_ != NULL) { -#line 9199 "PhotoPage.c" - GtkDrawingArea* _tmp14_; - GdkWindow* _tmp15_; -#line 1235 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)->canvas; -#line 1235 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget)); -#line 1235 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _tmp15_ != NULL; -#line 9208 "PhotoPage.c" - } else { -#line 1235 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = FALSE; -#line 9212 "PhotoPage.c" - } -#line 1235 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp12_) { -#line 1236 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_page_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), GDK_LEFT_PTR); -#line 9218 "PhotoPage.c" - } -#line 1238 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); -#line 9222 "PhotoPage.c" -} - - -static void -editing_host_page_quick_update_pixbuf (EditingHostPage* self) -{ - GdkPixbuf* pixbuf = NULL; - PixbufCache* _tmp0_; - Photo* _tmp1_; - Photo* _tmp2_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; - Scaling scaling = {0}; - Scaling _tmp10_ = {0}; - Photo* _tmp11_; - Photo* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - PixbufCache* _tmp28_; - Photo* _tmp29_; - Photo* _tmp30_; - GError * _inner_error_ = NULL; -#line 1241 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1242 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->cache; -#line 1242 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = editing_host_page_get_photo (self); -#line 1242 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 1242 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = pixbuf_cache_get_ready_pixbuf (_tmp0_, _tmp2_); -#line 1242 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 1242 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 1242 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf = _tmp4_; -#line 1243 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = pixbuf; -#line 1243 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp5_ != NULL) { -#line 9268 "PhotoPage.c" - GdkPixbuf* _tmp6_; - Photo* _tmp7_; - Photo* _tmp8_; - Dimensions _tmp9_ = {0}; -#line 1244 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = pixbuf; -#line 1244 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = editing_host_page_get_photo (self); -#line 1244 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_; -#line 1244 "/home/jens/Source/shotwell/src/PhotoPage.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp9_); -#line 1244 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp6_, &_tmp9_, NULL); -#line 1244 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp8_); -#line 1245 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->pixbuf_dirty = FALSE; -#line 1247 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (pixbuf); -#line 1247 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 9291 "PhotoPage.c" - } -#line 1250 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp10_); -#line 1250 "/home/jens/Source/shotwell/src/PhotoPage.vala" - scaling = _tmp10_; -#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = editing_host_page_get_photo (self); -#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _tmp11_; -#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject)); -#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = _tmp13_; -#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = scaling_to_string (&scaling); -#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = _tmp15_; -#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_debug ("PhotoPage.vala:1252: Using progressive load for %s (%s)", _tmp14_, _tmp16_); -#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp16_); -#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp14_); -#line 1252 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp12_); -#line 9317 "PhotoPage.c" - { - GdkPixbuf* _tmp17_ = NULL; - Photo* _tmp18_; - Photo* _tmp19_; - Scaling _tmp20_; - GdkPixbuf* _tmp21_; - GdkPixbuf* _tmp22_; - Photo* _tmp23_; - Photo* _tmp24_; - Dimensions _tmp25_ = {0}; -#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = editing_host_page_get_photo (self); -#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = _tmp18_; -#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = scaling; -#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = media_source_get_preview_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_MEDIA_SOURCE, MediaSource), &_tmp20_, &_inner_error_); -#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = _tmp21_; -#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp19_); -#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = _tmp22_; -#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9344 "PhotoPage.c" - goto __catch259_g_error; - } -#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = editing_host_page_get_photo (self); -#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = _tmp23_; -#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp25_); -#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp17_, &_tmp25_, NULL); -#line 1257 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp24_); -#line 1256 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp17_); -#line 9359 "PhotoPage.c" - } - goto __finally259; - __catch259_g_error: - { - GError* err = NULL; - GError* _tmp26_; - const gchar* _tmp27_; -#line 1256 "/home/jens/Source/shotwell/src/PhotoPage.vala" - err = _inner_error_; -#line 1256 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _inner_error_ = NULL; -#line 1259 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = err; -#line 1259 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp27_ = _tmp26_->message; -#line 1259 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_warning ("PhotoPage.vala:1259: %s", _tmp27_); -#line 1256 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_error_free0 (err); -#line 9379 "PhotoPage.c" - } - __finally259: -#line 1256 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1256 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (pixbuf); -#line 1256 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1256 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_clear_error (&_inner_error_); -#line 1256 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 9392 "PhotoPage.c" - } -#line 1262 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp28_ = self->priv->cache; -#line 1262 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp29_ = editing_host_page_get_photo (self); -#line 1262 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp30_ = _tmp29_; -#line 1262 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf_cache_prefetch (_tmp28_, _tmp30_, BACKGROUND_JOB_JOB_PRIORITY_HIGHEST, FALSE); -#line 1262 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp30_); -#line 1266 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->pixbuf_dirty = FALSE; -#line 1241 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (pixbuf); -#line 9408 "PhotoPage.c" -} - - -static gboolean -editing_host_page_update_pixbuf (EditingHostPage* self) -{ - gboolean result = FALSE; - Photo* photo = NULL; - Photo* _tmp0_; - Photo* _tmp1_; - GdkPixbuf* pixbuf = NULL; - Dimensions max_dim = {0}; - Photo* _tmp2_; - Dimensions _tmp3_ = {0}; - gboolean _tmp18_; - gboolean _tmp26_ = FALSE; - gboolean _tmp27_; - GError * _inner_error_ = NULL; -#line 1269 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 1274 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (self); -#line 1274 "/home/jens/Source/shotwell/src/PhotoPage.vala" - photo = _tmp0_; -#line 1275 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = photo; -#line 1275 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp1_ == NULL) { -#line 1276 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = FALSE; -#line 1276 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photo); -#line 1276 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 9443 "PhotoPage.c" - } -#line 1278 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf = NULL; -#line 1279 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = photo; -#line 1279 "/home/jens/Source/shotwell/src/PhotoPage.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp3_); -#line 1279 "/home/jens/Source/shotwell/src/PhotoPage.vala" - max_dim = _tmp3_; -#line 9453 "PhotoPage.c" - { - Dimensions tool_pixbuf_dim = {0}; - Dimensions _tmp4_ = {0}; - EditingToolsEditingTool* _tmp5_; - GdkPixbuf* _tmp13_; -#line 1282 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_.width = 0; -#line 1282 "/home/jens/Source/shotwell/src/PhotoPage.vala" - tool_pixbuf_dim = _tmp4_; -#line 1283 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = self->priv->current_tool; -#line 1283 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp5_ != NULL) { -#line 9467 "PhotoPage.c" - GdkPixbuf* _tmp6_ = NULL; - EditingToolsEditingTool* _tmp7_; - Scaling _tmp8_ = {0}; - Photo* _tmp9_; - Dimensions _tmp10_ = {0}; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp12_; -#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = self->priv->current_tool; -#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp8_); -#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = photo; -#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = editing_tools_editing_tool_get_display_pixbuf (_tmp7_, &_tmp8_, _tmp9_, &_tmp10_, &_inner_error_); -#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala" - tool_pixbuf_dim = _tmp10_; -#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp11_; -#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9489 "PhotoPage.c" - goto __catch260_g_error; - } -#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _tmp6_; -#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = NULL; -#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (pixbuf); -#line 1284 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf = _tmp12_; -#line 1283 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp6_); -#line 9502 "PhotoPage.c" - } -#line 1286 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = pixbuf; -#line 1286 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp13_ != NULL) { -#line 9508 "PhotoPage.c" - Dimensions _tmp14_; -#line 1287 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = tool_pixbuf_dim; -#line 1287 "/home/jens/Source/shotwell/src/PhotoPage.vala" - max_dim = _tmp14_; -#line 9514 "PhotoPage.c" - } - } - goto __finally260; - __catch260_g_error: - { - GError* err = NULL; - GError* _tmp15_; - const gchar* _tmp16_; -#line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala" - err = _inner_error_; -#line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _inner_error_ = NULL; -#line 1289 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = err; -#line 1289 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = _tmp15_->message; -#line 1289 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_warning ("PhotoPage.vala:1289: %s", _tmp16_); -#line 1290 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_set_photo_missing (self, TRUE); -#line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_error_free0 (err); -#line 9537 "PhotoPage.c" - } - __finally260: -#line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9542 "PhotoPage.c" - gboolean _tmp17_ = FALSE; -#line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (pixbuf); -#line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photo); -#line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_clear_error (&_inner_error_); -#line 1281 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return _tmp17_; -#line 9554 "PhotoPage.c" - } -#line 1293 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = self->priv->photo_missing; -#line 1293 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!_tmp18_) { -#line 9560 "PhotoPage.c" - GdkPixbuf* _tmp19_; - GdkPixbuf* _tmp23_; -#line 1295 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = pixbuf; -#line 1295 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp19_ == NULL) { -#line 9567 "PhotoPage.c" - PixbufCache* _tmp20_; - Photo* _tmp21_; - GdkPixbuf* _tmp22_; -#line 1296 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = self->priv->cache; -#line 1296 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = photo; -#line 1296 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = pixbuf_cache_get_ready_pixbuf (_tmp20_, _tmp21_); -#line 1296 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (pixbuf); -#line 1296 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf = _tmp22_; -#line 9581 "PhotoPage.c" - } -#line 1299 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = pixbuf; -#line 1299 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp23_ == NULL) { -#line 9587 "PhotoPage.c" - PixbufCache* _tmp24_; - Photo* _tmp25_; -#line 1300 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = self->priv->cache; -#line 1300 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = photo; -#line 1300 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf_cache_prefetch (_tmp24_, _tmp25_, BACKGROUND_JOB_JOB_PRIORITY_NORMAL, FALSE); -#line 9596 "PhotoPage.c" - } - } -#line 1303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp27_ = self->priv->photo_missing; -#line 1303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!_tmp27_) { -#line 9603 "PhotoPage.c" - GdkPixbuf* _tmp28_; -#line 1303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp28_ = pixbuf; -#line 1303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = _tmp28_ != NULL; -#line 9609 "PhotoPage.c" - } else { -#line 1303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = FALSE; -#line 9613 "PhotoPage.c" - } -#line 1303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp26_) { -#line 9617 "PhotoPage.c" - GdkPixbuf* _tmp29_; - Dimensions _tmp30_; -#line 1304 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp29_ = pixbuf; -#line 1304 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp30_ = max_dim; -#line 1304 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp29_, &_tmp30_, NULL); -#line 1305 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->pixbuf_dirty = FALSE; -#line 9628 "PhotoPage.c" - } -#line 1312 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = FALSE; -#line 1312 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (pixbuf); -#line 1312 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photo); -#line 1312 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 9638 "PhotoPage.c" -} - - -static void -editing_host_page_real_on_resize (Page* base, - GdkRectangle* rect) -{ - EditingHostPage * self; - GdkRectangle _tmp0_; -#line 1315 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1315 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (rect != NULL); -#line 1316 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = *rect; -#line 1316 "/home/jens/Source/shotwell/src/PhotoPage.vala" - PAGE_CLASS (editing_host_page_parent_class)->on_resize (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), &_tmp0_); -#line 1318 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_track_tool_window (self); -#line 9658 "PhotoPage.c" -} - - -static void -editing_host_page_real_on_resize_finished (Page* base, - GdkRectangle* rect) -{ - EditingHostPage * self; -#line 1321 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1321 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (rect != NULL); -#line 1325 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_rebuild_caches (self, "on_resize_finished"); -#line 1326 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->pixbuf_dirty = TRUE; -#line 1328 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_update_pixbuf (self); -#line 9677 "PhotoPage.c" -} - - -static void -editing_host_page_on_viewport_resized (EditingHostPage* self) -{ -#line 1331 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1334 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_rebuild_caches (self, "on_viewport_resized"); -#line 1335 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->pixbuf_dirty = TRUE; -#line 1337 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_update_pixbuf (self); -#line 9692 "PhotoPage.c" -} - - -static void -editing_host_page_real_update_actions (Page* base, - gint selected_count, - gint count) -{ - EditingHostPage * self; - gboolean multiple_photos = FALSE; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - GtkToolButton* _tmp3_; - gboolean _tmp4_; - GtkToolButton* _tmp5_; - gboolean _tmp6_; - Photo* photo = NULL; - Photo* _tmp7_; - Scaling scaling = {0}; - Scaling _tmp8_ = {0}; - gboolean _tmp9_ = FALSE; - gboolean _tmp10_ = FALSE; - gboolean _tmp11_ = FALSE; - Photo* _tmp12_; - GtkToolButton* _tmp16_; - gboolean _tmp17_ = FALSE; - gboolean _tmp18_ = FALSE; - Photo* _tmp19_; - GtkToggleToolButton* _tmp23_; - gboolean _tmp24_ = FALSE; - gboolean _tmp25_ = FALSE; - Photo* _tmp26_; - GtkToggleToolButton* _tmp30_; - gboolean _tmp31_ = FALSE; - gboolean _tmp32_ = FALSE; - Photo* _tmp33_; - GtkToggleToolButton* _tmp37_; - gboolean _tmp38_ = FALSE; - gboolean _tmp39_ = FALSE; - Photo* _tmp40_; - GtkToolButton* _tmp43_; - gboolean _tmp44_ = FALSE; - gboolean _tmp45_ = FALSE; - Photo* _tmp46_; - GtkToggleToolButton* _tmp50_; -#line 1340 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1341 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1341 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 1341 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = view_collection_get_sources_of_type_count (_tmp1_, TYPE_PHOTO) > 1; -#line 1341 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp1_); -#line 1341 "/home/jens/Source/shotwell/src/PhotoPage.vala" - multiple_photos = _tmp2_; -#line 1343 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = self->priv->prev_button; -#line 1343 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = multiple_photos; -#line 1343 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), _tmp4_); -#line 1344 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = self->priv->next_button; -#line 1344 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = multiple_photos; -#line 1344 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), _tmp6_); -#line 1346 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = editing_host_page_get_photo (self); -#line 1346 "/home/jens/Source/shotwell/src/PhotoPage.vala" - photo = _tmp7_; -#line 1347 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp8_); -#line 1347 "/home/jens/Source/shotwell/src/PhotoPage.vala" - scaling = _tmp8_; -#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = photo; -#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp12_ != NULL) { -#line 9775 "PhotoPage.c" - gboolean _tmp13_; -#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = self->priv->photo_missing; -#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = !_tmp13_; -#line 9781 "PhotoPage.c" - } else { -#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = FALSE; -#line 9785 "PhotoPage.c" - } -#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp11_) { -#line 9789 "PhotoPage.c" - Photo* _tmp14_; -#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = photo; -#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = photo_check_can_rotate (_tmp14_); -#line 9795 "PhotoPage.c" - } else { -#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = FALSE; -#line 9799 "PhotoPage.c" - } -#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp10_) { -#line 9803 "PhotoPage.c" - Photo* _tmp15_; -#line 1350 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = photo; -#line 1350 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = editing_host_page_is_rotate_available (self, _tmp15_); -#line 9809 "PhotoPage.c" - } else { -#line 1350 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = FALSE; -#line 9813 "PhotoPage.c" - } -#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = self->priv->rotate_button; -#line 1349 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), _tmp9_); -#line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = photo; -#line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp19_ != NULL) { -#line 9823 "PhotoPage.c" - gboolean _tmp20_; -#line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = self->priv->photo_missing; -#line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = !_tmp20_; -#line 9829 "PhotoPage.c" - } else { -#line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = FALSE; -#line 9833 "PhotoPage.c" - } -#line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp18_) { -#line 9837 "PhotoPage.c" - Photo* _tmp21_; - Scaling _tmp22_; -#line 1352 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = photo; -#line 1352 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = scaling; -#line 1352 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = editing_tools_crop_tool_is_available (_tmp21_, &_tmp22_); -#line 9846 "PhotoPage.c" - } else { -#line 1352 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = FALSE; -#line 9850 "PhotoPage.c" - } -#line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = self->priv->crop_button; -#line 1351 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), _tmp17_); -#line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = photo; -#line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp26_ != NULL) { -#line 9860 "PhotoPage.c" - gboolean _tmp27_; -#line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp27_ = self->priv->photo_missing; -#line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = !_tmp27_; -#line 9866 "PhotoPage.c" - } else { -#line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = FALSE; -#line 9870 "PhotoPage.c" - } -#line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp25_) { -#line 9874 "PhotoPage.c" - Photo* _tmp28_; - Scaling _tmp29_; -#line 1354 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp28_ = photo; -#line 1354 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp29_ = scaling; -#line 1354 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = editing_tools_redeye_tool_is_available (_tmp28_, &_tmp29_); -#line 9883 "PhotoPage.c" - } else { -#line 1354 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = FALSE; -#line 9887 "PhotoPage.c" - } -#line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp30_ = self->priv->redeye_button; -#line 1353 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_widget_get_type (), GtkWidget), _tmp24_); -#line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp33_ = photo; -#line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp33_ != NULL) { -#line 9897 "PhotoPage.c" - gboolean _tmp34_; -#line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp34_ = self->priv->photo_missing; -#line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp32_ = !_tmp34_; -#line 9903 "PhotoPage.c" - } else { -#line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp32_ = FALSE; -#line 9907 "PhotoPage.c" - } -#line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp32_) { -#line 9911 "PhotoPage.c" - Photo* _tmp35_; - Scaling _tmp36_; -#line 1356 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp35_ = photo; -#line 1356 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp36_ = scaling; -#line 1356 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp31_ = editing_tools_adjust_tool_is_available (_tmp35_, &_tmp36_); -#line 9920 "PhotoPage.c" - } else { -#line 1356 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp31_ = FALSE; -#line 9924 "PhotoPage.c" - } -#line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp37_ = self->priv->adjust_button; -#line 1355 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget), _tmp31_); -#line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp40_ = photo; -#line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp40_ != NULL) { -#line 9934 "PhotoPage.c" - gboolean _tmp41_; -#line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp41_ = self->priv->photo_missing; -#line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp39_ = !_tmp41_; -#line 9940 "PhotoPage.c" - } else { -#line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp39_ = FALSE; -#line 9944 "PhotoPage.c" - } -#line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp39_) { -#line 9948 "PhotoPage.c" - Photo* _tmp42_; -#line 1358 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp42_ = photo; -#line 1358 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp38_ = editing_host_page_is_enhance_available (self, _tmp42_); -#line 9954 "PhotoPage.c" - } else { -#line 1358 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp38_ = FALSE; -#line 9958 "PhotoPage.c" - } -#line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp43_ = self->priv->enhance_button; -#line 1357 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_widget_get_type (), GtkWidget), _tmp38_); -#line 1359 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp46_ = photo; -#line 1359 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp46_ != NULL) { -#line 9968 "PhotoPage.c" - gboolean _tmp47_; -#line 1359 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp47_ = self->priv->photo_missing; -#line 1359 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp45_ = !_tmp47_; -#line 9974 "PhotoPage.c" - } else { -#line 1359 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp45_ = FALSE; -#line 9978 "PhotoPage.c" - } -#line 1359 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp45_) { -#line 9982 "PhotoPage.c" - Photo* _tmp48_; - Scaling _tmp49_; -#line 1360 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp48_ = photo; -#line 1360 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp49_ = scaling; -#line 1360 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp44_ = editing_tools_straighten_tool_is_available (_tmp48_, &_tmp49_); -#line 9991 "PhotoPage.c" - } else { -#line 1360 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp44_ = FALSE; -#line 9995 "PhotoPage.c" - } -#line 1359 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp50_ = self->priv->straighten_button; -#line 1359 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_widget_get_type (), GtkWidget), _tmp44_); -#line 1362 "/home/jens/Source/shotwell/src/PhotoPage.vala" - PAGE_CLASS (editing_host_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), selected_count, count); -#line 1340 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photo); -#line 10005 "PhotoPage.c" -} - - -static gboolean -editing_host_page_real_on_shift_pressed (Page* base, - GdkEventKey* event) -{ - EditingHostPage * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - EditingToolsEditingTool* _tmp3_; -#line 1365 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = self->priv->current_tool; -#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp3_ == NULL) { -#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = !page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 10027 "PhotoPage.c" - } else { -#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = FALSE; -#line 10031 "PhotoPage.c" - } -#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_) { -#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = !page_get_alt_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 10037 "PhotoPage.c" - } else { -#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = FALSE; -#line 10041 "PhotoPage.c" - } -#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp1_) { -#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_has_photo (self); -#line 10047 "PhotoPage.c" - } else { -#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = FALSE; -#line 10051 "PhotoPage.c" - } -#line 1367 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 1368 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_swap_in_original (self); -#line 10057 "PhotoPage.c" - } -#line 1370 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = PAGE_CLASS (editing_host_page_parent_class)->on_shift_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), event); -#line 1370 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 10063 "PhotoPage.c" -} - - -static gboolean -editing_host_page_real_on_shift_released (Page* base, - GdkEventKey* event) -{ - EditingHostPage * self; - gboolean result = FALSE; - EditingToolsEditingTool* _tmp0_; -#line 1373 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1374 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->current_tool; -#line 1374 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_ == NULL) { -#line 1375 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_swap_out_original (self); -#line 10082 "PhotoPage.c" - } -#line 1377 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = PAGE_CLASS (editing_host_page_parent_class)->on_shift_released (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), event); -#line 1377 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 10088 "PhotoPage.c" -} - - -static gboolean -editing_host_page_real_on_alt_pressed (Page* base, - GdkEventKey* event) -{ - EditingHostPage * self; - gboolean result = FALSE; - EditingToolsEditingTool* _tmp0_; -#line 1380 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1381 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->current_tool; -#line 1381 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_ == NULL) { -#line 1382 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_swap_out_original (self); -#line 10107 "PhotoPage.c" - } -#line 1384 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = PAGE_CLASS (editing_host_page_parent_class)->on_alt_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), event); -#line 1384 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 10113 "PhotoPage.c" -} - - -static gboolean -editing_host_page_real_on_alt_released (Page* base, - GdkEventKey* event) -{ - EditingHostPage * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - EditingToolsEditingTool* _tmp2_; -#line 1387 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->current_tool; -#line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_ == NULL) { -#line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = page_get_shift_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 10134 "PhotoPage.c" - } else { -#line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = FALSE; -#line 10138 "PhotoPage.c" - } -#line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp1_) { -#line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = !page_get_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 10144 "PhotoPage.c" - } else { -#line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = FALSE; -#line 10148 "PhotoPage.c" - } -#line 1388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 1389 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_swap_in_original (self); -#line 10154 "PhotoPage.c" - } -#line 1391 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = PAGE_CLASS (editing_host_page_parent_class)->on_alt_released (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), event); -#line 1391 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 10160 "PhotoPage.c" -} - - -static void -editing_host_page_swap_in_original (EditingHostPage* self) -{ - GdkPixbuf* original = NULL; - GdkPixbuf* _tmp8_; - GtkScale* _tmp9_; - GdkPixbuf* _tmp10_; - Photo* _tmp11_; - Photo* _tmp12_; - Dimensions _tmp13_ = {0}; - GError * _inner_error_ = NULL; -#line 1394 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 10177 "PhotoPage.c" - { - GdkPixbuf* _tmp0_ = NULL; - Photo* _tmp1_; - Photo* _tmp2_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - Photo* _tmp5_; - Photo* _tmp6_; - GdkPixbuf* _tmp7_; -#line 1398 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = editing_host_page_get_photo (self); -#line 1398 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 1398 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = photo_get_prefetched_copy (_tmp2_, &_inner_error_); -#line 1398 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 1398 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 1398 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = _tmp4_; -#line 1398 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 10201 "PhotoPage.c" - goto __catch261_g_error; - } -#line 1397 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = editing_host_page_get_photo (self); -#line 1397 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 1397 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = orientation_rotate_pixbuf (photo_get_original_orientation (_tmp6_), _tmp0_); -#line 1397 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (original); -#line 1397 "/home/jens/Source/shotwell/src/PhotoPage.vala" - original = _tmp7_; -#line 1397 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp6_); -#line 1396 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp0_); -#line 10218 "PhotoPage.c" - } - goto __finally261; - __catch261_g_error: - { - GError* err = NULL; -#line 1396 "/home/jens/Source/shotwell/src/PhotoPage.vala" - err = _inner_error_; -#line 1396 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _inner_error_ = NULL; -#line 1400 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_error_free0 (err); -#line 1400 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (original); -#line 1400 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 10234 "PhotoPage.c" - } - __finally261: -#line 1396 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1396 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (original); -#line 1396 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1396 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_clear_error (&_inner_error_); -#line 1396 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 10247 "PhotoPage.c" - } -#line 1404 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = single_photo_page_get_unscaled_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 1404 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->swapped); -#line 1404 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->swapped = _tmp8_; -#line 1408 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = self->priv->zoom_slider; -#line 1408 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_range_get_type (), GtkRange)) != 0.0) { -#line 1409 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_save_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 1410 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 10263 "PhotoPage.c" - } -#line 1413 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = original; -#line 1413 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = editing_host_page_get_photo (self); -#line 1413 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _tmp11_; -#line 1413 "/home/jens/Source/shotwell/src/PhotoPage.vala" - photo_get_master_dimensions (_tmp12_, &_tmp13_); -#line 1413 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp10_, &_tmp13_, NULL); -#line 1413 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp12_); -#line 1394 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (original); -#line 10279 "PhotoPage.c" -} - - -static void -editing_host_page_swap_out_original (EditingHostPage* self) -{ - GdkPixbuf* _tmp0_; -#line 1416 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1417 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->swapped; -#line 1417 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_ != NULL) { -#line 10293 "PhotoPage.c" - GdkPixbuf* _tmp1_; - Photo* _tmp2_; - Photo* _tmp3_; - Dimensions _tmp4_ = {0}; -#line 1418 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->swapped; -#line 1418 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = editing_host_page_get_photo (self); -#line 1418 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_; -#line 1418 "/home/jens/Source/shotwell/src/PhotoPage.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp4_); -#line 1418 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp1_, &_tmp4_, NULL); -#line 1418 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 1420 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_restore_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 1421 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_update_cursor_for_zoom_context (self); -#line 1424 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->swapped); -#line 1424 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->swapped = NULL; -#line 10318 "PhotoPage.c" - } -} - - -static gpointer -_editing_tools_editing_tool_ref0 (gpointer self) -{ -#line 1468 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return self ? editing_tools_editing_tool_ref (self) : NULL; -#line 10328 "PhotoPage.c" -} - - -static void -editing_host_page_activate_tool (EditingHostPage* self, - EditingToolsEditingTool* tool) -{ - Dimensions _tmp0_ = {0}; - GdkPixbuf* _tmp1_; - GdkPixbuf* unscaled = NULL; - Dimensions max_dim = {0}; - Photo* _tmp2_; - Photo* _tmp3_; - Dimensions _tmp4_ = {0}; - Dimensions _tmp5_; - GdkPixbuf* _tmp21_; - EditingToolsPhotoCanvas* photo_canvas = NULL; - EditingHostPageEditingHostCanvas* _tmp24_; - EditingToolsEditingTool* _tmp25_; - EditingToolsEditingTool* _tmp26_; - EditingToolsPhotoCanvas* _tmp27_; - GError * _inner_error_ = NULL; -#line 1428 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1428 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (tool)); -#line 1431 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_save_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 1432 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 1436 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dimensions_init (&_tmp0_, 0, 0); -#line 1436 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp0_, FALSE); -#line 1439 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = single_photo_page_get_unscaled_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 1439 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->cancel_editing_pixbuf); -#line 1439 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->cancel_editing_pixbuf = _tmp1_; -#line 1443 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = editing_host_page_get_photo (self); -#line 1443 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_; -#line 1443 "/home/jens/Source/shotwell/src/PhotoPage.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp4_); -#line 1443 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _tmp4_; -#line 1443 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 1443 "/home/jens/Source/shotwell/src/PhotoPage.vala" - max_dim = _tmp5_; -#line 10381 "PhotoPage.c" - { - Dimensions tool_pixbuf_dim = {0}; - Dimensions _tmp6_ = {0}; - GdkPixbuf* _tmp7_ = NULL; - Scaling _tmp8_ = {0}; - Photo* _tmp9_; - Photo* _tmp10_; - Dimensions _tmp11_ = {0}; - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; - GdkPixbuf* _tmp14_; - GdkPixbuf* _tmp15_; -#line 1445 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_.width = 0; -#line 1445 "/home/jens/Source/shotwell/src/PhotoPage.vala" - tool_pixbuf_dim = _tmp6_; -#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp8_); -#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = editing_host_page_get_photo (self); -#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = _tmp9_; -#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = editing_tools_editing_tool_get_display_pixbuf (tool, &_tmp8_, _tmp10_, &_tmp11_, &_inner_error_); -#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - tool_pixbuf_dim = _tmp11_; -#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = _tmp12_; -#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp10_); -#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp13_; -#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 10416 "PhotoPage.c" - goto __catch262_g_error; - } -#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = _tmp7_; -#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = NULL; -#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (unscaled); -#line 1446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - unscaled = _tmp14_; -#line 1448 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = unscaled; -#line 1448 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp15_ != NULL) { -#line 10431 "PhotoPage.c" - Dimensions _tmp16_; -#line 1449 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = tool_pixbuf_dim; -#line 1449 "/home/jens/Source/shotwell/src/PhotoPage.vala" - max_dim = _tmp16_; -#line 10437 "PhotoPage.c" - } -#line 1444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp7_); -#line 10441 "PhotoPage.c" - } - goto __finally262; - __catch262_g_error: - { - GError* err = NULL; - GError* _tmp17_; - const gchar* _tmp18_; - GtkToggleToolButton* _tmp19_; - GtkToggleToolButton* _tmp20_; -#line 1444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - err = _inner_error_; -#line 1444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _inner_error_ = NULL; -#line 1451 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = err; -#line 1451 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = _tmp17_->message; -#line 1451 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_warning ("PhotoPage.vala:1451: %s", _tmp18_); -#line 1452 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_set_photo_missing (self, TRUE); -#line 1455 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = self->priv->current_editing_toggle; -#line 1455 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _vala_assert (_tmp19_ != NULL, "current_editing_toggle != null"); -#line 1456 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = self->priv->current_editing_toggle; -#line 1456 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_toggle_tool_button_set_active (_tmp20_, FALSE); -#line 1458 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_error_free0 (err); -#line 1458 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (unscaled); -#line 1458 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 10477 "PhotoPage.c" - } - __finally262: -#line 1444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (unscaled); -#line 1444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_clear_error (&_inner_error_); -#line 1444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 10490 "PhotoPage.c" - } -#line 1461 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = unscaled; -#line 1461 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp21_ != NULL) { -#line 10496 "PhotoPage.c" - GdkPixbuf* _tmp22_; - Dimensions _tmp23_; -#line 1462 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = unscaled; -#line 1462 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = max_dim; -#line 1462 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp22_, &_tmp23_, NULL); -#line 10505 "PhotoPage.c" - } -#line 1465 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = editing_host_page_editing_host_canvas_new (self); -#line 1465 "/home/jens/Source/shotwell/src/PhotoPage.vala" - photo_canvas = G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvas); -#line 1468 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = _editing_tools_editing_tool_ref0 (tool); -#line 1468 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _editing_tools_editing_tool_unref0 (self->priv->current_tool); -#line 1468 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->current_tool = _tmp25_; -#line 1469 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = self->priv->current_tool; -#line 1469 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp27_ = photo_canvas; -#line 1469 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_tools_editing_tool_activate (_tmp26_, _tmp27_); -#line 1472 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_place_tool_window (self); -#line 1475 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); -#line 1428 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _editing_tools_photo_canvas_unref0 (photo_canvas); -#line 1428 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (unscaled); -#line 10531 "PhotoPage.c" -} - - -static void -_editing_host_page_on_tool_activated_editing_tools_editing_tool_activated (EditingToolsEditingTool* _sender, - gpointer self) -{ -#line 1499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_tool_activated ((EditingHostPage*) self); -#line 10541 "PhotoPage.c" -} - - -static void -_editing_host_page_on_tool_deactivated_editing_tools_editing_tool_deactivated (EditingToolsEditingTool* _sender, - gpointer self) -{ -#line 1500 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_tool_deactivated ((EditingHostPage*) self); -#line 10551 "PhotoPage.c" -} - - -static void -_editing_host_page_on_tool_applied_editing_tools_editing_tool_applied (EditingToolsEditingTool* _sender, - Command* command, - GdkPixbuf* new_pixbuf, - Dimensions* new_max_dim, - gboolean needs_improvement, - gpointer self) -{ -#line 1501 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_tool_applied ((EditingHostPage*) self, command, new_pixbuf, new_max_dim, needs_improvement); -#line 10565 "PhotoPage.c" -} - - -static void -_editing_host_page_on_tool_cancelled_editing_tools_editing_tool_cancelled (EditingToolsEditingTool* _sender, - gpointer self) -{ -#line 1502 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_tool_cancelled ((EditingHostPage*) self); -#line 10575 "PhotoPage.c" -} - - -static void -_editing_host_page_on_tool_aborted_editing_tools_editing_tool_aborted (EditingToolsEditingTool* _sender, - gpointer self) -{ -#line 1503 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_tool_aborted ((EditingHostPage*) self); -#line 10585 "PhotoPage.c" -} - - -static gboolean -_editing_host_page_update_pixbuf_gsource_func (gpointer self) -{ - gboolean result; - result = editing_host_page_update_pixbuf ((EditingHostPage*) self); -#line 1530 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 10596 "PhotoPage.c" -} - - -static void -editing_host_page_deactivate_tool (EditingHostPage* self, - Command* command, - GdkPixbuf* new_pixbuf, - Dimensions* new_max_dim, - gboolean needs_improvement) -{ - EditingToolsEditingTool* _tmp0_; - EditingToolsEditingTool* tool = NULL; - EditingToolsEditingTool* _tmp1_; - EditingToolsEditingTool* _tmp2_; - EditingToolsEditingToolWindow* tool_window = NULL; - EditingToolsEditingTool* _tmp3_; - EditingToolsEditingToolWindow* _tmp4_; - gboolean _tmp5_ = FALSE; - EditingToolsEditingToolWindow* _tmp6_; - EditingToolsEditingTool* _tmp23_; - EditingToolsEditingTool* _tmp24_; - guint _tmp25_; - EditingToolsEditingTool* _tmp26_; - guint _tmp27_; - EditingToolsEditingTool* _tmp28_; - guint _tmp29_; - EditingToolsEditingTool* _tmp30_; - guint _tmp31_; - EditingToolsEditingTool* _tmp32_; - guint _tmp33_; - GdkPixbuf* replacement = NULL; - GdkPixbuf* _tmp40_; -#line 1478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail ((command == NULL) || IS_COMMAND (command)); -#line 1478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail ((new_pixbuf == NULL) || GDK_IS_PIXBUF (new_pixbuf)); -#line 1478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (new_max_dim != NULL); -#line 1480 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->current_tool; -#line 1480 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_ == NULL) { -#line 1481 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 10643 "PhotoPage.c" - } -#line 1483 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->current_tool; -#line 1483 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _editing_tools_editing_tool_ref0 (_tmp1_); -#line 1483 "/home/jens/Source/shotwell/src/PhotoPage.vala" - tool = _tmp2_; -#line 1484 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _editing_tools_editing_tool_unref0 (self->priv->current_tool); -#line 1484 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->current_tool = NULL; -#line 1487 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = tool; -#line 1487 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = editing_tools_editing_tool_get_tool_window (_tmp3_); -#line 1487 "/home/jens/Source/shotwell/src/PhotoPage.vala" - tool_window = _tmp4_; -#line 1488 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = tool_window; -#line 1488 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp6_ != NULL) { -#line 10665 "PhotoPage.c" - EditingToolsEditingToolWindow* _tmp7_; -#line 1488 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = tool_window; -#line 1488 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = editing_tools_editing_tool_window_has_user_moved (_tmp7_); -#line 10671 "PhotoPage.c" - } else { -#line 1488 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = FALSE; -#line 10675 "PhotoPage.c" - } -#line 1488 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp5_) { -#line 10679 "PhotoPage.c" - gint last_location_x = 0; - gint last_location_y = 0; - EditingToolsEditingToolWindow* _tmp8_; - gint _tmp9_ = 0; - gint _tmp10_ = 0; - GeeHashMap* _tmp11_; - EditingToolsEditingTool* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gint _tmp16_; - GeeHashMap* _tmp17_; - EditingToolsEditingTool* _tmp18_; - const gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - gint _tmp22_; -#line 1490 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = tool_window; -#line 1490 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_window_get_position (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_window_get_type (), GtkWindow), &_tmp9_, &_tmp10_); -#line 1490 "/home/jens/Source/shotwell/src/PhotoPage.vala" - last_location_x = _tmp9_; -#line 1490 "/home/jens/Source/shotwell/src/PhotoPage.vala" - last_location_y = _tmp10_; -#line 1491 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = self->priv->last_locations; -#line 1491 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = tool; -#line 1491 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = _tmp12_->name; -#line 1491 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = g_strconcat (_tmp13_, "_x", NULL); -#line 1491 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = _tmp14_; -#line 1491 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = last_location_x; -#line 1491 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_, (gpointer) ((gintptr) _tmp16_)); -#line 1491 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp15_); -#line 1492 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = self->priv->last_locations; -#line 1492 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = tool; -#line 1492 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = _tmp18_->name; -#line 1492 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = g_strconcat (_tmp19_, "_y", NULL); -#line 1492 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = _tmp20_; -#line 1492 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = last_location_y; -#line 1492 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp21_, (gpointer) ((gintptr) _tmp22_)); -#line 1492 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp21_); -#line 10737 "PhotoPage.c" - } -#line 1497 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = tool; -#line 1497 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_tools_editing_tool_deactivate (_tmp23_); -#line 1499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = tool; -#line 1499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("activated", EDITING_TOOLS_TYPE_EDITING_TOOL, &_tmp25_, NULL, FALSE); -#line 1499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (_tmp24_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp25_, 0, NULL, (GCallback) _editing_host_page_on_tool_activated_editing_tools_editing_tool_activated, self); -#line 1500 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = tool; -#line 1500 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("deactivated", EDITING_TOOLS_TYPE_EDITING_TOOL, &_tmp27_, NULL, FALSE); -#line 1500 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (_tmp26_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp27_, 0, NULL, (GCallback) _editing_host_page_on_tool_deactivated_editing_tools_editing_tool_deactivated, self); -#line 1501 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp28_ = tool; -#line 1501 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("applied", EDITING_TOOLS_TYPE_EDITING_TOOL, &_tmp29_, NULL, FALSE); -#line 1501 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (_tmp28_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp29_, 0, NULL, (GCallback) _editing_host_page_on_tool_applied_editing_tools_editing_tool_applied, self); -#line 1502 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp30_ = tool; -#line 1502 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("cancelled", EDITING_TOOLS_TYPE_EDITING_TOOL, &_tmp31_, NULL, FALSE); -#line 1502 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (_tmp30_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp31_, 0, NULL, (GCallback) _editing_host_page_on_tool_cancelled_editing_tools_editing_tool_cancelled, self); -#line 1503 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp32_ = tool; -#line 1503 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("aborted", EDITING_TOOLS_TYPE_EDITING_TOOL, &_tmp33_, NULL, FALSE); -#line 1503 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (_tmp32_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp33_, 0, NULL, (GCallback) _editing_host_page_on_tool_aborted_editing_tools_editing_tool_aborted, self); -#line 1505 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _editing_tools_editing_tool_unref0 (tool); -#line 1505 "/home/jens/Source/shotwell/src/PhotoPage.vala" - tool = NULL; -#line 1509 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->current_editing_toggle); -#line 1509 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->current_editing_toggle = NULL; -#line 1512 "/home/jens/Source/shotwell/src/PhotoPage.vala" - replacement = NULL; -#line 1513 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (new_pixbuf != NULL) { -#line 10785 "PhotoPage.c" - GdkPixbuf* _tmp34_; -#line 1514 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp34_ = _g_object_ref0 (new_pixbuf); -#line 1514 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (replacement); -#line 1514 "/home/jens/Source/shotwell/src/PhotoPage.vala" - replacement = _tmp34_; -#line 10793 "PhotoPage.c" - } else { - GdkPixbuf* _tmp35_; -#line 1515 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp35_ = self->priv->cancel_editing_pixbuf; -#line 1515 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp35_ != NULL) { -#line 10800 "PhotoPage.c" - GdkPixbuf* _tmp36_; - GdkPixbuf* _tmp37_; - GdkPixbuf* _tmp38_; - Dimensions _tmp39_ = {0}; -#line 1516 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp36_ = self->priv->cancel_editing_pixbuf; -#line 1516 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp37_ = _g_object_ref0 (_tmp36_); -#line 1516 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (replacement); -#line 1516 "/home/jens/Source/shotwell/src/PhotoPage.vala" - replacement = _tmp37_; -#line 1517 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp38_ = replacement; -#line 1517 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dimensions_for_pixbuf (_tmp38_, &_tmp39_); -#line 1517 "/home/jens/Source/shotwell/src/PhotoPage.vala" - *new_max_dim = _tmp39_; -#line 1518 "/home/jens/Source/shotwell/src/PhotoPage.vala" - needs_improvement = FALSE; -#line 10821 "PhotoPage.c" - } else { -#line 1520 "/home/jens/Source/shotwell/src/PhotoPage.vala" - needs_improvement = TRUE; -#line 10825 "PhotoPage.c" - } - } -#line 1523 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp40_ = replacement; -#line 1523 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp40_ != NULL) { -#line 10832 "PhotoPage.c" - GdkPixbuf* _tmp41_; - Dimensions _tmp42_; -#line 1524 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp41_ = replacement; -#line 1524 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp42_ = *new_max_dim; -#line 1524 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp41_, &_tmp42_, NULL); -#line 10841 "PhotoPage.c" - } -#line 1525 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->cancel_editing_pixbuf); -#line 1525 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->cancel_editing_pixbuf = NULL; -#line 1528 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (needs_improvement) { -#line 1529 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->pixbuf_dirty = TRUE; -#line 1530 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _editing_host_page_update_pixbuf_gsource_func, g_object_ref (self), g_object_unref); -#line 10853 "PhotoPage.c" - } -#line 1534 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (command != NULL) { -#line 10857 "PhotoPage.c" - CommandManager* _tmp43_; - CommandManager* _tmp44_; -#line 1535 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp43_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1535 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp44_ = _tmp43_; -#line 1535 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command_manager_execute (_tmp44_, command); -#line 1535 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _command_manager_unref0 (_tmp44_); -#line 10868 "PhotoPage.c" - } -#line 1478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (replacement); -#line 1478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (tool_window); -#line 1478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _editing_tools_editing_tool_unref0 (tool); -#line 10876 "PhotoPage.c" -} - - -static gboolean -editing_host_page_real_on_double_click (EditingHostPage* self, - GdkEventButton* event) -{ - gboolean result = FALSE; -#line 1540 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1541 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = FALSE; -#line 1541 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 10891 "PhotoPage.c" -} - - -gboolean -editing_host_page_on_double_click (EditingHostPage* self, - GdkEventButton* event) -{ -#line 1540 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 1540 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return EDITING_HOST_PAGE_GET_CLASS (self)->on_double_click (self, event); -#line 10903 "PhotoPage.c" -} - - -static gboolean -editing_host_page_real_on_left_click (Page* base, - GdkEventButton* event) -{ - EditingHostPage * self; - gboolean result = FALSE; - GdkEventType _tmp0_; - gint x = 0; - gdouble _tmp3_; - gint y = 0; - gdouble _tmp4_; - gboolean _tmp5_ = FALSE; - EditingToolsEditingTool* _tmp6_; - EditingToolsEditingTool* _tmp10_; - gint _tmp11_; - gint _tmp12_; - EditingToolsEditingTool* _tmp13_; - gint _tmp14_; - gint _tmp15_; -#line 1545 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1545 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1547 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = event->type; -#line 1547 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_ == GDK_2BUTTON_PRESS) { -#line 10934 "PhotoPage.c" - gboolean _tmp1_ = FALSE; - EditingToolsEditingTool* _tmp2_; -#line 1548 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->current_tool; -#line 1548 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_ == NULL) { -#line 1548 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = editing_host_page_on_double_click (self, event); -#line 10943 "PhotoPage.c" - } else { -#line 1548 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = FALSE; -#line 10947 "PhotoPage.c" - } -#line 1548 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp1_; -#line 1548 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 10953 "PhotoPage.c" - } -#line 1550 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = event->x; -#line 1550 "/home/jens/Source/shotwell/src/PhotoPage.vala" - x = (gint) _tmp3_; -#line 1551 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = event->y; -#line 1551 "/home/jens/Source/shotwell/src/PhotoPage.vala" - y = (gint) _tmp4_; -#line 1555 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = self->priv->current_tool; -#line 1555 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp6_ == NULL) { -#line 10967 "PhotoPage.c" - GtkScale* _tmp7_; -#line 1555 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = self->priv->zoom_slider; -#line 1555 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_range_get_type (), GtkRange)) != 0.0; -#line 10973 "PhotoPage.c" - } else { -#line 1555 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = FALSE; -#line 10977 "PhotoPage.c" - } -#line 1555 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp5_) { -#line 10981 "PhotoPage.c" - gdouble _tmp8_; - gdouble _tmp9_; -#line 1556 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = event->x; -#line 1556 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->zoom_pan_start_point.x = (gint) _tmp8_; -#line 1557 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = event->y; -#line 1557 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->zoom_pan_start_point.y = (gint) _tmp9_; -#line 1558 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->is_pan_in_progress = TRUE; -#line 1559 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_suspend_cursor_hiding (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1561 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 1561 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11000 "PhotoPage.c" - } -#line 1565 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = self->priv->current_tool; -#line 1565 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp10_ == NULL) { -#line 1566 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = FALSE; -#line 1566 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11010 "PhotoPage.c" - } -#line 1571 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = x; -#line 1571 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = y; -#line 1571 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!single_photo_page_is_inside_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp11_, _tmp12_)) { -#line 1572 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 1572 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11022 "PhotoPage.c" - } -#line 1574 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = self->priv->current_tool; -#line 1574 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = x; -#line 1574 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = y; -#line 1574 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_tools_editing_tool_on_left_click (_tmp13_, _tmp14_, _tmp15_); -#line 1577 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 1577 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11036 "PhotoPage.c" -} - - -static gboolean -editing_host_page_real_on_left_released (Page* base, - GdkEventButton* event) -{ - EditingHostPage * self; - gboolean result = FALSE; - gboolean _tmp0_; - EditingToolsEditingTool* _tmp19_; - EditingToolsEditingTool* _tmp20_; - gdouble _tmp21_; - gdouble _tmp22_; - EditingToolsEditingTool* _tmp23_; - EditingToolsEditingToolWindow* _tmp24_; - EditingToolsEditingToolWindow* _tmp25_; - gboolean _tmp26_; -#line 1580 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1580 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1581 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->is_pan_in_progress; -#line 1581 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 11063 "PhotoPage.c" - GdkPoint viewport_center = {0}; - ZoomState _tmp1_ = {0}; - GdkPoint _tmp2_ = {0}; - gint delta_x = 0; - gdouble _tmp3_; - GdkPoint _tmp4_; - gint _tmp5_; - gint delta_y = 0; - gdouble _tmp6_; - GdkPoint _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; - gint _tmp12_; - ZoomState zoom_state = {0}; - ZoomState _tmp13_ = {0}; - GdkPoint _tmp14_; - ZoomState _tmp15_; - ZoomBuffer* _tmp16_; - ZoomBuffer* _tmp17_; - ZoomState _tmp18_; -#line 1582 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp1_); -#line 1582 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_get_viewport_center (&_tmp1_, &_tmp2_); -#line 1582 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_center = _tmp2_; -#line 1583 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = event->x; -#line 1583 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = self->priv->zoom_pan_start_point; -#line 1583 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _tmp4_.x; -#line 1583 "/home/jens/Source/shotwell/src/PhotoPage.vala" - delta_x = ((gint) _tmp3_) - _tmp5_; -#line 1584 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = event->y; -#line 1584 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = self->priv->zoom_pan_start_point; -#line 1584 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_.y; -#line 1584 "/home/jens/Source/shotwell/src/PhotoPage.vala" - delta_y = ((gint) _tmp6_) - _tmp8_; -#line 1585 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = viewport_center.x; -#line 1585 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = delta_x; -#line 1585 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_center.x = _tmp9_ - _tmp10_; -#line 1586 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = viewport_center.y; -#line 1586 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = delta_y; -#line 1586 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_center.y = _tmp11_ - _tmp12_; -#line 1588 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp13_); -#line 1588 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = viewport_center; -#line 1588 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_init_pan (&zoom_state, &_tmp13_, &_tmp14_); -#line 1589 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = zoom_state; -#line 1589 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_set_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp15_); -#line 1590 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = single_photo_page_get_zoom_buffer (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 1590 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = _tmp16_; -#line 1590 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = zoom_state; -#line 1590 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_buffer_flush_demand_cache (_tmp17_, &_tmp18_); -#line 1590 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp17_); -#line 1592 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->is_pan_in_progress = FALSE; -#line 1593 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_restore_cursor_hiding (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 11144 "PhotoPage.c" - } -#line 1598 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = self->priv->current_tool; -#line 1598 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp19_ == NULL) { -#line 1599 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = FALSE; -#line 1599 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11154 "PhotoPage.c" - } -#line 1601 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = self->priv->current_tool; -#line 1601 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = event->x; -#line 1601 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = event->y; -#line 1601 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_tools_editing_tool_on_left_released (_tmp20_, (gint) _tmp21_, (gint) _tmp22_); -#line 1603 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = self->priv->current_tool; -#line 1603 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = editing_tools_editing_tool_get_tool_window (_tmp23_); -#line 1603 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = _tmp24_; -#line 1603 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = _tmp25_ != NULL; -#line 1603 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp25_); -#line 1603 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp26_) { -#line 11176 "PhotoPage.c" - EditingToolsEditingTool* _tmp27_; - EditingToolsEditingToolWindow* _tmp28_; - EditingToolsEditingToolWindow* _tmp29_; -#line 1604 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp27_ = self->priv->current_tool; -#line 1604 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp28_ = editing_tools_editing_tool_get_tool_window (_tmp27_); -#line 1604 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp29_ = _tmp28_; -#line 1604 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_window_get_type (), GtkWindow)); -#line 1604 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp29_); -#line 11190 "PhotoPage.c" - } -#line 1606 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = FALSE; -#line 1606 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11196 "PhotoPage.c" -} - - -static gboolean -editing_host_page_real_on_right_click (Page* base, - GdkEventButton* event) -{ - EditingHostPage * self; - gboolean result = FALSE; -#line 1609 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1609 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1610 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = page_on_context_buttonpress (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), event); -#line 1610 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11214 "PhotoPage.c" -} - - -static gboolean -_editing_host_page_on_fetch_original_gsource_func (gpointer self) -{ - gboolean result; - result = editing_host_page_on_fetch_original ((EditingHostPage*) self); -#line 1622 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11225 "PhotoPage.c" -} - - -static void -editing_host_page_on_photos_altered (EditingHostPage* self, - GeeMap* map) -{ - Photo* _tmp0_; - Photo* _tmp1_; - gboolean _tmp2_; - Photo* _tmp3_; - Photo* _tmp4_; - gboolean _tmp5_; - ViewCollection* _tmp6_; - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; - ViewCollection* _tmp9_; -#line 1613 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1613 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (GEE_IS_MAP (map)); -#line 1614 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (self); -#line 1614 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 1614 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = !gee_map_has_key (map, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject)); -#line 1614 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 1614 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_) { -#line 1615 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 11259 "PhotoPage.c" - } -#line 1617 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->pixbuf_dirty = TRUE; -#line 1621 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = editing_host_page_get_photo (self); -#line 1621 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 1621 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = photo_has_transformations (_tmp4_); -#line 1621 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp4_); -#line 1621 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp5_) { -#line 1622 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _editing_host_page_on_fetch_original_gsource_func, g_object_ref (self), g_object_unref); -#line 11275 "PhotoPage.c" - } -#line 1624 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1624 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_; -#line 1624 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1624 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = _tmp8_; -#line 1624 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_update_actions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), view_collection_get_selected_count (_tmp7_), data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_COLLECTION, DataCollection))); -#line 1624 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp9_); -#line 1624 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp7_); -#line 11291 "PhotoPage.c" -} - - -static void -editing_host_page_on_view_contents_ordering_altered (EditingHostPage* self) -{ -#line 1627 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1628 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_refresh_caches (self, "on_view_contents_ordering_altered"); -#line 11302 "PhotoPage.c" -} - - -static gboolean -editing_host_page_on_fetch_original (EditingHostPage* self) -{ - gboolean result = FALSE; -#line 1631 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 1632 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_has_photo (self)) { -#line 11314 "PhotoPage.c" - PixbufCache* _tmp0_; - Photo* _tmp1_; - Photo* _tmp2_; -#line 1633 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->master_cache; -#line 1633 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = editing_host_page_get_photo (self); -#line 1633 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 1633 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixbuf_cache_prefetch (_tmp0_, _tmp2_, BACKGROUND_JOB_JOB_PRIORITY_LOW, FALSE); -#line 1633 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 11328 "PhotoPage.c" - } -#line 1635 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = FALSE; -#line 1635 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11334 "PhotoPage.c" -} - - -static gboolean -editing_host_page_is_panning_possible (EditingHostPage* self) -{ - gboolean result = FALSE; - Dimensions content_dim = {0}; - Dimensions _tmp0_ = {0}; - ZoomState _tmp1_ = {0}; - ZoomState _tmp2_ = {0}; - Dimensions canvas_dim = {0}; - Dimensions _tmp3_ = {0}; - gboolean _tmp4_ = FALSE; - Dimensions _tmp5_; - gint _tmp6_; - Dimensions _tmp7_; - gint _tmp8_; -#line 1638 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 1641 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_.width = 0; -#line 1641 "/home/jens/Source/shotwell/src/PhotoPage.vala" - content_dim = _tmp0_; -#line 1642 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp1_); -#line 1642 "/home/jens/Source/shotwell/src/PhotoPage.vala" - content_dim.width = zoom_state_get_zoomed_width (&_tmp1_); -#line 1643 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp2_); -#line 1643 "/home/jens/Source/shotwell/src/PhotoPage.vala" - content_dim.height = zoom_state_get_zoomed_height (&_tmp2_); -#line 1644 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_surface_dim (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp3_); -#line 1644 "/home/jens/Source/shotwell/src/PhotoPage.vala" - canvas_dim = _tmp3_; -#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = canvas_dim; -#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_.width; -#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = content_dim; -#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_.width; -#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp6_ >= _tmp8_) { -#line 11381 "PhotoPage.c" - Dimensions _tmp9_; - gint _tmp10_; - Dimensions _tmp11_; - gint _tmp12_; -#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = canvas_dim; -#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = _tmp9_.height; -#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = content_dim; -#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _tmp11_.height; -#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp10_ >= _tmp12_; -#line 11396 "PhotoPage.c" - } else { -#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = FALSE; -#line 11400 "PhotoPage.c" - } -#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = !_tmp4_; -#line 1646 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11406 "PhotoPage.c" -} - - -static void -editing_host_page_update_cursor_for_zoom_context (EditingHostPage* self) -{ -#line 1649 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1650 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_is_panning_possible (self)) { -#line 1651 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_page_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), GDK_FLEUR); -#line 11419 "PhotoPage.c" - } else { -#line 1653 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_page_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), GDK_LEFT_PTR); -#line 11423 "PhotoPage.c" - } -} - - -static gboolean -editing_host_page_real_on_motion (Page* base, - GdkEventMotion* event, - gint x, - gint y, - GdkModifierType mask) -{ - EditingHostPage * self; - gboolean result = FALSE; - EditingToolsEditingTool* _tmp0_; - gboolean _tmp2_; -#line 1657 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1657 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1658 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->current_tool; -#line 1658 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_ != NULL) { -#line 11447 "PhotoPage.c" - EditingToolsEditingTool* _tmp1_; -#line 1659 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->current_tool; -#line 1659 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_tools_editing_tool_on_motion (_tmp1_, x, y, mask); -#line 1662 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gdk_event_request_motions (event); -#line 1664 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 1664 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11459 "PhotoPage.c" - } -#line 1667 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_update_cursor_for_zoom_context (self); -#line 1669 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->is_pan_in_progress; -#line 1669 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_) { -#line 11467 "PhotoPage.c" - gint delta_x = 0; - gdouble _tmp3_; - GdkPoint _tmp4_; - gint _tmp5_; - gint delta_y = 0; - gdouble _tmp6_; - GdkPoint _tmp7_; - gint _tmp8_; - GdkPoint viewport_center = {0}; - ZoomState _tmp9_ = {0}; - GdkPoint _tmp10_ = {0}; - gint _tmp11_; - gint _tmp12_; - gint _tmp13_; - gint _tmp14_; - ZoomState zoom_state = {0}; - ZoomState _tmp15_ = {0}; - GdkPoint _tmp16_; - ZoomState _tmp17_; -#line 1670 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = event->x; -#line 1670 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = self->priv->zoom_pan_start_point; -#line 1670 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _tmp4_.x; -#line 1670 "/home/jens/Source/shotwell/src/PhotoPage.vala" - delta_x = ((gint) _tmp3_) - _tmp5_; -#line 1671 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = event->y; -#line 1671 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = self->priv->zoom_pan_start_point; -#line 1671 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_.y; -#line 1671 "/home/jens/Source/shotwell/src/PhotoPage.vala" - delta_y = ((gint) _tmp6_) - _tmp8_; -#line 1673 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp9_); -#line 1673 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_get_viewport_center (&_tmp9_, &_tmp10_); -#line 1673 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_center = _tmp10_; -#line 1674 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = viewport_center.x; -#line 1674 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = delta_x; -#line 1674 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_center.x = _tmp11_ - _tmp12_; -#line 1675 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = viewport_center.y; -#line 1675 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = delta_y; -#line 1675 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_center.y = _tmp13_ - _tmp14_; -#line 1677 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp15_); -#line 1677 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = viewport_center; -#line 1677 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_init_pan (&zoom_state, &_tmp15_, &_tmp16_); -#line 1679 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = zoom_state; -#line 1679 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_on_interactive_pan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp17_); -#line 1680 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 1680 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11535 "PhotoPage.c" - } -#line 1683 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = PAGE_CLASS (editing_host_page_parent_class)->on_motion (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), event, x, y, mask); -#line 1683 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11541 "PhotoPage.c" -} - - -static gboolean -editing_host_page_real_on_leave_notify_event (Page* base) -{ - EditingHostPage * self; - gboolean result = FALSE; - EditingToolsEditingTool* _tmp0_; -#line 1686 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1687 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->current_tool; -#line 1687 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_ != NULL) { -#line 11557 "PhotoPage.c" - EditingToolsEditingTool* _tmp1_; -#line 1688 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->current_tool; -#line 1688 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = editing_tools_editing_tool_on_leave_notify_event (_tmp1_); -#line 1688 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11565 "PhotoPage.c" - } -#line 1690 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = PAGE_CLASS (editing_host_page_parent_class)->on_leave_notify_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page)); -#line 1690 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11571 "PhotoPage.c" -} - - -static void -editing_host_page_track_tool_window (EditingHostPage* self) -{ - EditingToolsEditingTool* _tmp0_; -#line 1693 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1695 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->current_tool; -#line 1695 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_ != NULL) { -#line 11585 "PhotoPage.c" - EditingToolsEditingToolWindow* tool_window = NULL; - EditingToolsEditingTool* _tmp1_; - EditingToolsEditingToolWindow* _tmp2_; - gboolean _tmp3_ = FALSE; - EditingToolsEditingToolWindow* _tmp4_; -#line 1696 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->current_tool; -#line 1696 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = editing_tools_editing_tool_get_tool_window (_tmp1_); -#line 1696 "/home/jens/Source/shotwell/src/PhotoPage.vala" - tool_window = _tmp2_; -#line 1697 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = tool_window; -#line 1697 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp4_ != NULL) { -#line 11601 "PhotoPage.c" - EditingToolsEditingToolWindow* _tmp5_; -#line 1697 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = tool_window; -#line 1697 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = !editing_tools_editing_tool_window_has_user_moved (_tmp5_); -#line 11607 "PhotoPage.c" - } else { -#line 1697 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = FALSE; -#line 11611 "PhotoPage.c" - } -#line 1697 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp3_) { -#line 1698 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_place_tool_window (self); -#line 11617 "PhotoPage.c" - } -#line 1695 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (tool_window); -#line 11621 "PhotoPage.c" - } -} - - -static void -editing_host_page_real_on_move (Page* base, - GdkRectangle* rect) -{ - EditingHostPage * self; - GdkRectangle _tmp0_; -#line 1702 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1702 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (rect != NULL); -#line 1703 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_track_tool_window (self); -#line 1705 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = *rect; -#line 1705 "/home/jens/Source/shotwell/src/PhotoPage.vala" - PAGE_CLASS (editing_host_page_parent_class)->on_move (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), &_tmp0_); -#line 11642 "PhotoPage.c" -} - - -static void -editing_host_page_real_on_move_finished (Page* base, - GdkRectangle* rect) -{ - EditingHostPage * self; - GeeHashMap* _tmp0_; - GdkRectangle _tmp1_; -#line 1708 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1708 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (rect != NULL); -#line 1709 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->last_locations; -#line 1709 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gee_abstract_map_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 1711 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = *rect; -#line 1711 "/home/jens/Source/shotwell/src/PhotoPage.vala" - PAGE_CLASS (editing_host_page_parent_class)->on_move_finished (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), &_tmp1_); -#line 11665 "PhotoPage.c" -} - - -static gboolean -editing_host_page_on_keyboard_pan_event (EditingHostPage* self, - GdkEventKey* event) -{ - gboolean result = FALSE; - ZoomState current_zoom_state = {0}; - ZoomState _tmp0_ = {0}; - GdkPoint viewport_center = {0}; - GdkPoint _tmp1_ = {0}; - guint _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - GQuark _tmp6_ = 0U; -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label0 = 0; -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label1 = 0; -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label2 = 0; -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label3 = 0; -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label4 = 0; -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label5 = 0; -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label6 = 0; -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label7 = 0; -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label8 = 0; -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label9 = 0; -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label10 = 0; -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label11 = 0; -#line 11706 "PhotoPage.c" - ZoomState new_zoom_state = {0}; - ZoomState _tmp11_; - GdkPoint _tmp12_; - ZoomState _tmp13_; -#line 1714 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 1714 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1715 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp0_); -#line 1715 "/home/jens/Source/shotwell/src/PhotoPage.vala" - current_zoom_state = _tmp0_; -#line 1716 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_get_viewport_center (¤t_zoom_state, &_tmp1_); -#line 1716 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_center = _tmp1_; -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = event->keyval; -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = gdk_keyval_name (_tmp2_); -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = (NULL == _tmp4_) ? 0 : g_quark_from_string (_tmp4_); -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (((_tmp6_ == ((0 != _tmp5_label0) ? _tmp5_label0 : (_tmp5_label0 = g_quark_from_static_string ("Left")))) || (_tmp6_ == ((0 != _tmp5_label1) ? _tmp5_label1 : (_tmp5_label1 = g_quark_from_static_string ("KP_Left"))))) || (_tmp6_ == ((0 != _tmp5_label2) ? _tmp5_label2 : (_tmp5_label2 = g_quark_from_static_string ("KP_4"))))) { -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 11735 "PhotoPage.c" - default: - { - gint _tmp7_; -#line 1722 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = viewport_center.x; -#line 1722 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_center.x = _tmp7_ - EDITING_HOST_PAGE_PAN_INCREMENT_SIZE; -#line 1723 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 11745 "PhotoPage.c" - } - } - } else if (((_tmp6_ == ((0 != _tmp5_label3) ? _tmp5_label3 : (_tmp5_label3 = g_quark_from_static_string ("Right")))) || (_tmp6_ == ((0 != _tmp5_label4) ? _tmp5_label4 : (_tmp5_label4 = g_quark_from_static_string ("KP_Right"))))) || (_tmp6_ == ((0 != _tmp5_label5) ? _tmp5_label5 : (_tmp5_label5 = g_quark_from_static_string ("KP_6"))))) { -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 11751 "PhotoPage.c" - default: - { - gint _tmp8_; -#line 1728 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = viewport_center.x; -#line 1728 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_center.x = _tmp8_ + EDITING_HOST_PAGE_PAN_INCREMENT_SIZE; -#line 1729 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 11761 "PhotoPage.c" - } - } - } else if (((_tmp6_ == ((0 != _tmp5_label6) ? _tmp5_label6 : (_tmp5_label6 = g_quark_from_static_string ("Down")))) || (_tmp6_ == ((0 != _tmp5_label7) ? _tmp5_label7 : (_tmp5_label7 = g_quark_from_static_string ("KP_Down"))))) || (_tmp6_ == ((0 != _tmp5_label8) ? _tmp5_label8 : (_tmp5_label8 = g_quark_from_static_string ("KP_2"))))) { -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 11767 "PhotoPage.c" - default: - { - gint _tmp9_; -#line 1734 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = viewport_center.y; -#line 1734 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_center.y = _tmp9_ + EDITING_HOST_PAGE_PAN_INCREMENT_SIZE; -#line 1735 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 11777 "PhotoPage.c" - } - } - } else if (((_tmp6_ == ((0 != _tmp5_label9) ? _tmp5_label9 : (_tmp5_label9 = g_quark_from_static_string ("Up")))) || (_tmp6_ == ((0 != _tmp5_label10) ? _tmp5_label10 : (_tmp5_label10 = g_quark_from_static_string ("KP_Up"))))) || (_tmp6_ == ((0 != _tmp5_label11) ? _tmp5_label11 : (_tmp5_label11 = g_quark_from_static_string ("KP_8"))))) { -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 11783 "PhotoPage.c" - default: - { - gint _tmp10_; -#line 1740 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = viewport_center.y; -#line 1740 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_center.y = _tmp10_ - EDITING_HOST_PAGE_PAN_INCREMENT_SIZE; -#line 1741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 11793 "PhotoPage.c" - } - } - } else { -#line 1718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 11799 "PhotoPage.c" - default: - { -#line 1744 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = FALSE; -#line 1744 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11806 "PhotoPage.c" - } - } - } -#line 1747 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = current_zoom_state; -#line 1747 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = viewport_center; -#line 1747 "/home/jens/Source/shotwell/src/PhotoPage.vala" - zoom_state_init_pan (&new_zoom_state, &_tmp11_, &_tmp12_); -#line 1748 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = new_zoom_state; -#line 1748 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_set_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp13_); -#line 1749 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); -#line 1751 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 1751 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11826 "PhotoPage.c" -} - - -static gboolean -editing_host_page_real_key_press_event (GtkWidget* base, - GdkEventKey* event) -{ - EditingHostPage * self; - gboolean result = FALSE; - EditingToolsEditingTool* _tmp0_; - gboolean handled = FALSE; - guint _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - GQuark _tmp6_ = 0U; -#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label0 = 0; -#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label1 = 0; -#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label2 = 0; -#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label3 = 0; -#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label4 = 0; -#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label5 = 0; -#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label6 = 0; -#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp5_label7 = 0; -#line 11858 "PhotoPage.c" - gboolean _tmp7_; - gboolean _tmp8_ = FALSE; -#line 1754 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1754 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1756 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->current_tool; -#line 1756 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_ != NULL) { -#line 11869 "PhotoPage.c" - EditingToolsEditingTool* _tmp1_; -#line 1757 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->current_tool; -#line 1757 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_tools_editing_tool_on_keypress (_tmp1_, event)) { -#line 1758 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 1758 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11879 "PhotoPage.c" - } - } -#line 1762 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_is_panning_possible (self)) { -#line 1763 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_on_keyboard_pan_event (self, event)) { -#line 1764 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 1764 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11890 "PhotoPage.c" - } - } -#line 1770 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_on_zoom_slider_key_press (self, event)) { -#line 1771 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 1771 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11899 "PhotoPage.c" - } -#line 1773 "/home/jens/Source/shotwell/src/PhotoPage.vala" - handled = TRUE; -#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = event->keyval; -#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = gdk_keyval_name (_tmp2_); -#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = (NULL == _tmp4_) ? 0 : g_quark_from_string (_tmp4_); -#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if ((_tmp6_ == ((0 != _tmp5_label0) ? _tmp5_label0 : (_tmp5_label0 = g_quark_from_static_string ("Down")))) || (_tmp6_ == ((0 != _tmp5_label1) ? _tmp5_label1 : (_tmp5_label1 = g_quark_from_static_string ("KP_Down"))))) { -#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 11915 "PhotoPage.c" - default: - { -#line 1780 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 11920 "PhotoPage.c" - } - } - } else if (((_tmp6_ == ((0 != _tmp5_label2) ? _tmp5_label2 : (_tmp5_label2 = g_quark_from_static_string ("equal")))) || (_tmp6_ == ((0 != _tmp5_label3) ? _tmp5_label3 : (_tmp5_label3 = g_quark_from_static_string ("plus"))))) || (_tmp6_ == ((0 != _tmp5_label4) ? _tmp5_label4 : (_tmp5_label4 = g_quark_from_static_string ("KP_Add"))))) { -#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 11926 "PhotoPage.c" - default: - { -#line 1785 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize"); -#line 1786 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 11933 "PhotoPage.c" - } - } - } else if (((_tmp6_ == ((0 != _tmp5_label5) ? _tmp5_label5 : (_tmp5_label5 = g_quark_from_static_string ("minus")))) || (_tmp6_ == ((0 != _tmp5_label6) ? _tmp5_label6 : (_tmp5_label6 = g_quark_from_static_string ("underscore"))))) || (_tmp6_ == ((0 != _tmp5_label7) ? _tmp5_label7 : (_tmp5_label7 = g_quark_from_static_string ("KP_Subtract"))))) { -#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 11939 "PhotoPage.c" - default: - { -#line 1792 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize"); -#line 1793 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 11946 "PhotoPage.c" - } - } - } else { -#line 1775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 11952 "PhotoPage.c" - default: - { -#line 1796 "/home/jens/Source/shotwell/src/PhotoPage.vala" - handled = FALSE; -#line 1797 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 11959 "PhotoPage.c" - } - } - } -#line 1800 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = handled; -#line 1800 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp7_) { -#line 1801 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 1801 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11971 "PhotoPage.c" - } -#line 1803 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (GTK_WIDGET_CLASS (editing_host_page_parent_class)->key_press_event != NULL) { -#line 1803 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = GTK_WIDGET_CLASS (editing_host_page_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), gtk_widget_get_type (), GtkWidget), event); -#line 11977 "PhotoPage.c" - } else { -#line 1803 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = TRUE; -#line 11981 "PhotoPage.c" - } -#line 1803 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp8_; -#line 1803 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 11987 "PhotoPage.c" -} - - -static void -editing_host_page_real_new_surface (SinglePhotoPage* base, - cairo_t* default_ctx, - Dimensions* dim) -{ - EditingHostPage * self; - EditingToolsEditingTool* _tmp0_; -#line 1806 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1806 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (default_ctx != NULL); -#line 1806 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (dim != NULL); -#line 1808 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->current_tool; -#line 1808 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_ != NULL) { -#line 12008 "PhotoPage.c" - EditingToolsEditingTool* _tmp1_; - EditingToolsPhotoCanvas* _tmp2_; - Dimensions _tmp3_; -#line 1809 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->current_tool; -#line 1809 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_->canvas; -#line 1809 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = *dim; -#line 1809 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_tools_photo_canvas_set_surface (_tmp2_, default_ctx, &_tmp3_); -#line 12020 "PhotoPage.c" - } -} - - -static void -editing_host_page_real_updated_pixbuf (SinglePhotoPage* base, - GdkPixbuf* pixbuf, - SinglePhotoPageUpdateReason reason, - Dimensions* old_dim) -{ - EditingHostPage * self; - gboolean _tmp0_ = FALSE; - EditingToolsEditingTool* _tmp1_; -#line 1812 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1812 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 1812 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (old_dim != NULL); -#line 1816 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->current_tool; -#line 1816 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp1_ != NULL) { -#line 1816 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = reason != SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT; -#line 12046 "PhotoPage.c" - } else { -#line 1816 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = FALSE; -#line 12050 "PhotoPage.c" - } -#line 1816 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 12054 "PhotoPage.c" - EditingToolsEditingTool* _tmp2_; - EditingToolsPhotoCanvas* _tmp3_; - Dimensions _tmp4_; - GdkRectangle _tmp5_ = {0}; -#line 1817 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->current_tool; -#line 1817 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_->canvas; -#line 1817 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = *old_dim; -#line 1817 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_scaled_pixbuf_position (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp5_); -#line 1817 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_tools_photo_canvas_resized_pixbuf (_tmp3_, &_tmp4_, pixbuf, &_tmp5_); -#line 1818 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->cancel_editing_pixbuf); -#line 1818 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->cancel_editing_pixbuf = NULL; -#line 12073 "PhotoPage.c" - } -} - - -static GdkPixbuf* -editing_host_page_real_get_bottom_left_trinket (EditingHostPage* self, - gint scale) -{ - GdkPixbuf* result = NULL; -#line 1823 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = NULL; -#line 1823 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 12087 "PhotoPage.c" -} - - -GdkPixbuf* -editing_host_page_get_bottom_left_trinket (EditingHostPage* self, - gint scale) -{ -#line 1822 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL); -#line 1822 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return EDITING_HOST_PAGE_GET_CLASS (self)->get_bottom_left_trinket (self, scale); -#line 12099 "PhotoPage.c" -} - - -static GdkPixbuf* -editing_host_page_real_get_top_left_trinket (EditingHostPage* self, - gint scale) -{ - GdkPixbuf* result = NULL; -#line 1827 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = NULL; -#line 1827 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 12112 "PhotoPage.c" -} - - -GdkPixbuf* -editing_host_page_get_top_left_trinket (EditingHostPage* self, - gint scale) -{ -#line 1826 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL); -#line 1826 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return EDITING_HOST_PAGE_GET_CLASS (self)->get_top_left_trinket (self, scale); -#line 12124 "PhotoPage.c" -} - - -static GdkPixbuf* -editing_host_page_real_get_top_right_trinket (EditingHostPage* self, - gint scale) -{ - GdkPixbuf* result = NULL; -#line 1831 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = NULL; -#line 1831 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 12137 "PhotoPage.c" -} - - -GdkPixbuf* -editing_host_page_get_top_right_trinket (EditingHostPage* self, - gint scale) -{ -#line 1830 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL); -#line 1830 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return EDITING_HOST_PAGE_GET_CLASS (self)->get_top_right_trinket (self, scale); -#line 12149 "PhotoPage.c" -} - - -static GdkPixbuf* -editing_host_page_real_get_bottom_right_trinket (EditingHostPage* self, - gint scale) -{ - GdkPixbuf* result = NULL; -#line 1835 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = NULL; -#line 1835 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 12162 "PhotoPage.c" -} - - -GdkPixbuf* -editing_host_page_get_bottom_right_trinket (EditingHostPage* self, - gint scale) -{ -#line 1834 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), NULL); -#line 1834 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return EDITING_HOST_PAGE_GET_CLASS (self)->get_bottom_right_trinket (self, scale); -#line 12174 "PhotoPage.c" -} - - -static void -editing_host_page_real_paint (SinglePhotoPage* base, - cairo_t* ctx, - Dimensions* ctx_dim) -{ - EditingHostPage * self; - EditingToolsEditingTool* _tmp0_; - gboolean _tmp2_ = FALSE; - gboolean _tmp3_; - Dimensions _tmp16_; - ZoomState _tmp17_ = {0}; - GdkRectangle scaled_rect = {0}; - GdkRectangle _tmp18_ = {0}; - GdkPixbuf* trinket = NULL; - GdkPixbuf* _tmp19_; - GdkPixbuf* _tmp20_; - GdkPixbuf* _tmp41_; - GdkPixbuf* _tmp42_; - GdkPixbuf* _tmp58_; - GdkPixbuf* _tmp59_; - GdkPixbuf* _tmp80_; - GdkPixbuf* _tmp81_; -#line 1838 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 1838 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (ctx != NULL); -#line 1838 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (ctx_dim != NULL); -#line 1839 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->current_tool; -#line 1839 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_ != NULL) { -#line 12210 "PhotoPage.c" - EditingToolsEditingTool* _tmp1_; -#line 1840 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->current_tool; -#line 1840 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_tools_editing_tool_paint (_tmp1_, ctx); -#line 1842 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 12218 "PhotoPage.c" - } -#line 1845 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = self->priv->photo_missing; -#line 1845 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp3_) { -#line 1845 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = editing_host_page_has_photo (self); -#line 12226 "PhotoPage.c" - } else { -#line 1845 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = FALSE; -#line 12230 "PhotoPage.c" - } -#line 1845 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_) { -#line 12234 "PhotoPage.c" - Dimensions _tmp4_ = {0}; - gint _tmp5_; - Dimensions _tmp6_ = {0}; - gint _tmp7_; - Photo* _tmp8_; - Photo* _tmp9_; - GFile* _tmp10_; - GFile* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; -#line 1846 "/home/jens/Source/shotwell/src/PhotoPage.vala" - set_source_color_from_string (ctx, "#000"); -#line 1847 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_surface_dim (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp4_); -#line 1847 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _tmp4_.width; -#line 1847 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_surface_dim (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp6_); -#line 1847 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_.height; -#line 1847 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cairo_rectangle (ctx, (gdouble) 0, (gdouble) 0, (gdouble) _tmp5_, (gdouble) _tmp7_); -#line 1848 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cairo_fill (ctx); -#line 1849 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cairo_paint (ctx); -#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = editing_host_page_get_photo (self); -#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = _tmp8_; -#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = _tmp10_; -#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = g_file_get_path (_tmp11_); -#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = _tmp12_; -#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = g_strdup_printf (_ ("Photo source file missing: %s"), _tmp13_); -#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = _tmp14_; -#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_draw_message (self, _tmp15_); -#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp15_); -#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp13_); -#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp11_); -#line 1850 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp9_); -#line 1851 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 12291 "PhotoPage.c" - } -#line 1854 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = *ctx_dim; -#line 1854 "/home/jens/Source/shotwell/src/PhotoPage.vala" - SINGLE_PHOTO_PAGE_CLASS (editing_host_page_parent_class)->paint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), ctx, &_tmp16_); -#line 1856 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp17_); -#line 1856 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!zoom_state_is_default (&_tmp17_)) { -#line 1857 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 12303 "PhotoPage.c" - } -#line 1860 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_scaled_pixbuf_position (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp18_); -#line 1860 "/home/jens/Source/shotwell/src/PhotoPage.vala" - scaled_rect = _tmp18_; -#line 1862 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = editing_host_page_get_bottom_left_trinket (self, EDITING_HOST_PAGE_TRINKET_SCALE); -#line 1862 "/home/jens/Source/shotwell/src/PhotoPage.vala" - trinket = _tmp19_; -#line 1863 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = trinket; -#line 1863 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp20_ != NULL) { -#line 12317 "PhotoPage.c" - gint x = 0; - GdkRectangle _tmp21_; - gint _tmp22_; - gint y = 0; - GdkRectangle _tmp23_; - gint _tmp24_; - GdkRectangle _tmp25_; - gint _tmp26_; - GdkPixbuf* _tmp27_; - gint _tmp28_; - gint _tmp29_; - GdkPixbuf* _tmp30_; - gint _tmp31_; - gint _tmp32_; - gint _tmp33_; - gint _tmp34_; - GdkPixbuf* _tmp35_; - gint _tmp36_; - gint _tmp37_; - GdkPixbuf* _tmp38_; - gint _tmp39_; - gint _tmp40_; -#line 1864 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = scaled_rect; -#line 1864 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = _tmp21_.x; -#line 1864 "/home/jens/Source/shotwell/src/PhotoPage.vala" - x = _tmp22_ + EDITING_HOST_PAGE_TRINKET_PADDING; -#line 1865 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = scaled_rect; -#line 1865 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = _tmp23_.y; -#line 1865 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = scaled_rect; -#line 1865 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = _tmp25_.height; -#line 1865 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp27_ = trinket; -#line 1865 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp28_ = gdk_pixbuf_get_height (_tmp27_); -#line 1865 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp29_ = _tmp28_; -#line 1865 "/home/jens/Source/shotwell/src/PhotoPage.vala" - y = ((_tmp24_ + _tmp26_) - _tmp29_) - EDITING_HOST_PAGE_TRINKET_PADDING; -#line 1866 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp30_ = trinket; -#line 1866 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp31_ = x; -#line 1866 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp32_ = y; -#line 1866 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp30_, (gdouble) _tmp31_, (gdouble) _tmp32_); -#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp33_ = x; -#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp34_ = y; -#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp35_ = trinket; -#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp36_ = gdk_pixbuf_get_width (_tmp35_); -#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp37_ = _tmp36_; -#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp38_ = trinket; -#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp39_ = gdk_pixbuf_get_height (_tmp38_); -#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp40_ = _tmp39_; -#line 1867 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cairo_rectangle (ctx, (gdouble) _tmp33_, (gdouble) _tmp34_, (gdouble) _tmp37_, (gdouble) _tmp40_); -#line 1868 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cairo_fill (ctx); -#line 12390 "PhotoPage.c" - } -#line 1871 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp41_ = editing_host_page_get_top_left_trinket (self, EDITING_HOST_PAGE_TRINKET_SCALE); -#line 1871 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (trinket); -#line 1871 "/home/jens/Source/shotwell/src/PhotoPage.vala" - trinket = _tmp41_; -#line 1872 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp42_ = trinket; -#line 1872 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp42_ != NULL) { -#line 12402 "PhotoPage.c" - gint x = 0; - GdkRectangle _tmp43_; - gint _tmp44_; - gint y = 0; - GdkRectangle _tmp45_; - gint _tmp46_; - GdkPixbuf* _tmp47_; - gint _tmp48_; - gint _tmp49_; - gint _tmp50_; - gint _tmp51_; - GdkPixbuf* _tmp52_; - gint _tmp53_; - gint _tmp54_; - GdkPixbuf* _tmp55_; - gint _tmp56_; - gint _tmp57_; -#line 1873 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp43_ = scaled_rect; -#line 1873 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp44_ = _tmp43_.x; -#line 1873 "/home/jens/Source/shotwell/src/PhotoPage.vala" - x = _tmp44_ + EDITING_HOST_PAGE_TRINKET_PADDING; -#line 1874 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp45_ = scaled_rect; -#line 1874 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp46_ = _tmp45_.y; -#line 1874 "/home/jens/Source/shotwell/src/PhotoPage.vala" - y = _tmp46_ + EDITING_HOST_PAGE_TRINKET_PADDING; -#line 1875 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp47_ = trinket; -#line 1875 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp48_ = x; -#line 1875 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp49_ = y; -#line 1875 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp47_, (gdouble) _tmp48_, (gdouble) _tmp49_); -#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp50_ = x; -#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp51_ = y; -#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp52_ = trinket; -#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp53_ = gdk_pixbuf_get_width (_tmp52_); -#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp54_ = _tmp53_; -#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp55_ = trinket; -#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp56_ = gdk_pixbuf_get_height (_tmp55_); -#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp57_ = _tmp56_; -#line 1876 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cairo_rectangle (ctx, (gdouble) _tmp50_, (gdouble) _tmp51_, (gdouble) _tmp54_, (gdouble) _tmp57_); -#line 1877 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cairo_fill (ctx); -#line 12460 "PhotoPage.c" - } -#line 1880 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp58_ = editing_host_page_get_top_right_trinket (self, EDITING_HOST_PAGE_TRINKET_SCALE); -#line 1880 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (trinket); -#line 1880 "/home/jens/Source/shotwell/src/PhotoPage.vala" - trinket = _tmp58_; -#line 1881 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp59_ = trinket; -#line 1881 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp59_ != NULL) { -#line 12472 "PhotoPage.c" - gint x = 0; - GdkRectangle _tmp60_; - gint _tmp61_; - GdkRectangle _tmp62_; - gint _tmp63_; - GdkPixbuf* _tmp64_; - gint _tmp65_; - gint _tmp66_; - gint y = 0; - GdkRectangle _tmp67_; - gint _tmp68_; - GdkPixbuf* _tmp69_; - gint _tmp70_; - gint _tmp71_; - gint _tmp72_; - gint _tmp73_; - GdkPixbuf* _tmp74_; - gint _tmp75_; - gint _tmp76_; - GdkPixbuf* _tmp77_; - gint _tmp78_; - gint _tmp79_; -#line 1882 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp60_ = scaled_rect; -#line 1882 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp61_ = _tmp60_.x; -#line 1882 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp62_ = scaled_rect; -#line 1882 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp63_ = _tmp62_.width; -#line 1882 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp64_ = trinket; -#line 1882 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp65_ = gdk_pixbuf_get_width (_tmp64_); -#line 1882 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp66_ = _tmp65_; -#line 1882 "/home/jens/Source/shotwell/src/PhotoPage.vala" - x = ((_tmp61_ + _tmp63_) - _tmp66_) - EDITING_HOST_PAGE_TRINKET_PADDING; -#line 1883 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp67_ = scaled_rect; -#line 1883 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp68_ = _tmp67_.y; -#line 1883 "/home/jens/Source/shotwell/src/PhotoPage.vala" - y = _tmp68_ + EDITING_HOST_PAGE_TRINKET_PADDING; -#line 1884 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp69_ = trinket; -#line 1884 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp70_ = x; -#line 1884 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp71_ = y; -#line 1884 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp69_, (gdouble) _tmp70_, (gdouble) _tmp71_); -#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp72_ = x; -#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp73_ = y; -#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp74_ = trinket; -#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp75_ = gdk_pixbuf_get_width (_tmp74_); -#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp76_ = _tmp75_; -#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp77_ = trinket; -#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp78_ = gdk_pixbuf_get_height (_tmp77_); -#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp79_ = _tmp78_; -#line 1885 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cairo_rectangle (ctx, (gdouble) _tmp72_, (gdouble) _tmp73_, (gdouble) _tmp76_, (gdouble) _tmp79_); -#line 1886 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cairo_fill (ctx); -#line 12545 "PhotoPage.c" - } -#line 1889 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp80_ = editing_host_page_get_bottom_right_trinket (self, EDITING_HOST_PAGE_TRINKET_SCALE); -#line 1889 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (trinket); -#line 1889 "/home/jens/Source/shotwell/src/PhotoPage.vala" - trinket = _tmp80_; -#line 1890 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp81_ = trinket; -#line 1890 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp81_ != NULL) { -#line 12557 "PhotoPage.c" - gint x = 0; - GdkRectangle _tmp82_; - gint _tmp83_; - GdkRectangle _tmp84_; - gint _tmp85_; - GdkPixbuf* _tmp86_; - gint _tmp87_; - gint _tmp88_; - gint y = 0; - GdkRectangle _tmp89_; - gint _tmp90_; - GdkRectangle _tmp91_; - gint _tmp92_; - GdkPixbuf* _tmp93_; - gint _tmp94_; - gint _tmp95_; - GdkPixbuf* _tmp96_; - gint _tmp97_; - gint _tmp98_; - gint _tmp99_; - gint _tmp100_; - GdkPixbuf* _tmp101_; - gint _tmp102_; - gint _tmp103_; - GdkPixbuf* _tmp104_; - gint _tmp105_; - gint _tmp106_; -#line 1891 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp82_ = scaled_rect; -#line 1891 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp83_ = _tmp82_.x; -#line 1891 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp84_ = scaled_rect; -#line 1891 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp85_ = _tmp84_.width; -#line 1891 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp86_ = trinket; -#line 1891 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp87_ = gdk_pixbuf_get_width (_tmp86_); -#line 1891 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp88_ = _tmp87_; -#line 1891 "/home/jens/Source/shotwell/src/PhotoPage.vala" - x = ((_tmp83_ + _tmp85_) - _tmp88_) - EDITING_HOST_PAGE_TRINKET_PADDING; -#line 1892 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp89_ = scaled_rect; -#line 1892 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp90_ = _tmp89_.y; -#line 1892 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp91_ = scaled_rect; -#line 1892 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp92_ = _tmp91_.height; -#line 1892 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp93_ = trinket; -#line 1892 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp94_ = gdk_pixbuf_get_height (_tmp93_); -#line 1892 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp95_ = _tmp94_; -#line 1892 "/home/jens/Source/shotwell/src/PhotoPage.vala" - y = ((_tmp90_ + _tmp92_) - _tmp95_) - EDITING_HOST_PAGE_TRINKET_PADDING; -#line 1893 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp96_ = trinket; -#line 1893 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp97_ = x; -#line 1893 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp98_ = y; -#line 1893 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp96_, (gdouble) _tmp97_, (gdouble) _tmp98_); -#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp99_ = x; -#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp100_ = y; -#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp101_ = trinket; -#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp102_ = gdk_pixbuf_get_width (_tmp101_); -#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp103_ = _tmp102_; -#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp104_ = trinket; -#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp105_ = gdk_pixbuf_get_height (_tmp104_); -#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp106_ = _tmp105_; -#line 1894 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cairo_rectangle (ctx, (gdouble) _tmp99_, (gdouble) _tmp100_, (gdouble) _tmp103_, (gdouble) _tmp106_); -#line 1895 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cairo_fill (ctx); -#line 12645 "PhotoPage.c" - } -#line 1838 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (trinket); -#line 12649 "PhotoPage.c" -} - - -gboolean -editing_host_page_is_rotate_available (EditingHostPage* self, - Photo* photo) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 1899 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 1899 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_PHOTO (photo), FALSE); -#line 1900 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->photo_missing; -#line 1900 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = !_tmp0_; -#line 1900 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 12669 "PhotoPage.c" -} - - -static void -editing_host_page_rotate (EditingHostPage* self, - Rotation rotation, - const gchar* name, - const gchar* description) -{ - Dimensions _tmp0_ = {0}; - RotateSingleCommand* command = NULL; - Photo* _tmp1_; - Photo* _tmp2_; - RotateSingleCommand* _tmp3_; - RotateSingleCommand* _tmp4_; - CommandManager* _tmp5_; - CommandManager* _tmp6_; - RotateSingleCommand* _tmp7_; -#line 1903 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1903 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (name != NULL); -#line 1903 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (description != NULL); -#line 1904 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 1906 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dimensions_init (&_tmp0_, 0, 0); -#line 1906 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp0_, FALSE); -#line 1908 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!editing_host_page_has_photo (self)) { -#line 1909 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 12704 "PhotoPage.c" - } -#line 1911 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = editing_host_page_get_photo (self); -#line 1911 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 1911 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = rotate_single_command_new (_tmp2_, rotation, name, description); -#line 1911 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 1911 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 1911 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command = _tmp4_; -#line 1913 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1913 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 1913 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = command; -#line 1913 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command_manager_execute (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_COMMAND, Command)); -#line 1913 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _command_manager_unref0 (_tmp6_); -#line 1903 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (command); -#line 12730 "PhotoPage.c" -} - - -void -editing_host_page_on_rotate_clockwise (EditingHostPage* self) -{ -#line 1916 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1917 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_rotate (self, ROTATION_CLOCKWISE, RESOURCES_ROTATE_CW_FULL_LABEL, RESOURCES_ROTATE_CW_TOOLTIP); -#line 12741 "PhotoPage.c" -} - - -void -editing_host_page_on_rotate_counterclockwise (EditingHostPage* self) -{ -#line 1920 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1921 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_rotate (self, ROTATION_COUNTERCLOCKWISE, RESOURCES_ROTATE_CCW_FULL_LABEL, RESOURCES_ROTATE_CCW_TOOLTIP); -#line 12752 "PhotoPage.c" -} - - -void -editing_host_page_on_flip_horizontally (EditingHostPage* self) -{ -#line 1924 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1925 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_rotate (self, ROTATION_MIRROR, RESOURCES_HFLIP_LABEL, ""); -#line 12763 "PhotoPage.c" -} - - -void -editing_host_page_on_flip_vertically (EditingHostPage* self) -{ -#line 1928 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1929 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_rotate (self, ROTATION_UPSIDE_DOWN, RESOURCES_VFLIP_LABEL, ""); -#line 12774 "PhotoPage.c" -} - - -void -editing_host_page_on_revert (EditingHostPage* self) -{ - gboolean _tmp0_; - Dimensions _tmp1_ = {0}; - Photo* _tmp2_; - Photo* _tmp3_; - gboolean _tmp4_; - RevertSingleCommand* command = NULL; - Photo* _tmp14_; - Photo* _tmp15_; - RevertSingleCommand* _tmp16_; - RevertSingleCommand* _tmp17_; - CommandManager* _tmp18_; - CommandManager* _tmp19_; - RevertSingleCommand* _tmp20_; -#line 1932 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1933 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->photo_missing; -#line 1933 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 1934 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 12802 "PhotoPage.c" - } -#line 1936 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dimensions_init (&_tmp1_, 0, 0); -#line 1936 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp1_, FALSE); -#line 1938 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!editing_host_page_has_photo (self)) { -#line 1939 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 12812 "PhotoPage.c" - } -#line 1941 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = editing_host_page_get_photo (self); -#line 1941 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_; -#line 1941 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = photo_has_editable (_tmp3_); -#line 1941 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 1941 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp4_) { -#line 12824 "PhotoPage.c" - AppWindow* _tmp5_; - AppWindow* _tmp6_; - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; - GeeCollection* _tmp9_; - GeeCollection* _tmp10_; - gboolean _tmp11_; - Photo* _tmp12_; - Photo* _tmp13_; -#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = app_window_get_instance (); -#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_; -#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = view_collection_get_sources (_tmp8_); -#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection); -#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = !revert_editable_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow), _tmp10_); -#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp10_); -#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp8_); -#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp6_); -#line 1942 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp11_) { -#line 1944 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 12858 "PhotoPage.c" - } -#line 1947 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = editing_host_page_get_photo (self); -#line 1947 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = _tmp12_; -#line 1947 "/home/jens/Source/shotwell/src/PhotoPage.vala" - photo_revert_to_master (_tmp13_, TRUE); -#line 1947 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp13_); -#line 12868 "PhotoPage.c" - } -#line 1950 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 1952 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_set_photo_missing (self, FALSE); -#line 1954 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = editing_host_page_get_photo (self); -#line 1954 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = _tmp14_; -#line 1954 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = revert_single_command_new (_tmp15_); -#line 1954 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = _tmp16_; -#line 1954 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp15_); -#line 1954 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command = _tmp17_; -#line 1955 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1955 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = _tmp18_; -#line 1955 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = command; -#line 1955 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command_manager_execute (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_COMMAND, Command)); -#line 1955 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _command_manager_unref0 (_tmp19_); -#line 1932 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (command); -#line 12898 "PhotoPage.c" -} - - -void -editing_host_page_on_edit_title (EditingHostPage* self) -{ - LibraryPhoto* item = NULL; - Photo* _tmp0_; - Photo* _tmp1_; - gboolean _tmp2_; - EditTitleDialog* edit_title_dialog = NULL; - LibraryPhoto* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - EditTitleDialog* _tmp8_; - EditTitleDialog* _tmp9_; - gchar* new_title = NULL; - EditTitleDialog* _tmp10_; - gchar* _tmp11_; - const gchar* _tmp12_; - EditTitleCommand* command = NULL; - LibraryPhoto* _tmp13_; - const gchar* _tmp14_; - EditTitleCommand* _tmp15_; - CommandManager* _tmp16_; - CommandManager* _tmp17_; - EditTitleCommand* _tmp18_; -#line 1958 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1960 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (self); -#line 1960 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 1960 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_LIBRARY_PHOTO); -#line 1960 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 1960 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_) { -#line 12938 "PhotoPage.c" - Photo* _tmp3_; - LibraryPhoto* _tmp4_; -#line 1961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = editing_host_page_get_photo (self); -#line 1961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp3_) : NULL; -#line 1961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp4_ == NULL) { -#line 1961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 12949 "PhotoPage.c" - } -#line 1961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (item); -#line 1961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - item = _tmp4_; -#line 12955 "PhotoPage.c" - } else { -#line 1963 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (item); -#line 1963 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 12961 "PhotoPage.c" - } -#line 1965 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = item; -#line 1965 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1965 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_; -#line 1965 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = edit_title_dialog_new (_tmp7_); -#line 1965 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = _tmp8_; -#line 1965 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp7_); -#line 1965 "/home/jens/Source/shotwell/src/PhotoPage.vala" - edit_title_dialog = _tmp9_; -#line 1966 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = edit_title_dialog; -#line 1966 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = edit_title_dialog_execute (_tmp10_); -#line 1966 "/home/jens/Source/shotwell/src/PhotoPage.vala" - new_title = _tmp11_; -#line 1967 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = new_title; -#line 1967 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp12_ == NULL) { -#line 1968 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (new_title); -#line 1968 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _text_entry_dialog_mediator_unref0 (edit_title_dialog); -#line 1968 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (item); -#line 1968 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 12995 "PhotoPage.c" - } -#line 1970 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = item; -#line 1970 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = new_title; -#line 1970 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = edit_title_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MEDIA_SOURCE, MediaSource), _tmp14_); -#line 1970 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command = _tmp15_; -#line 1971 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1971 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = _tmp16_; -#line 1971 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = command; -#line 1971 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command_manager_execute (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_COMMAND, Command)); -#line 1971 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _command_manager_unref0 (_tmp17_); -#line 1958 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (command); -#line 1958 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (new_title); -#line 1958 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _text_entry_dialog_mediator_unref0 (edit_title_dialog); -#line 1958 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (item); -#line 13023 "PhotoPage.c" -} - - -void -editing_host_page_on_edit_comment (EditingHostPage* self) -{ - LibraryPhoto* item = NULL; - Photo* _tmp0_; - Photo* _tmp1_; - gboolean _tmp2_; - EditCommentDialog* edit_comment_dialog = NULL; - LibraryPhoto* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - EditCommentDialog* _tmp8_; - EditCommentDialog* _tmp9_; - gchar* new_comment = NULL; - EditCommentDialog* _tmp10_; - gchar* _tmp11_; - const gchar* _tmp12_; - EditCommentCommand* command = NULL; - LibraryPhoto* _tmp13_; - const gchar* _tmp14_; - EditCommentCommand* _tmp15_; - CommandManager* _tmp16_; - CommandManager* _tmp17_; - EditCommentCommand* _tmp18_; -#line 1974 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1976 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (self); -#line 1976 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 1976 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_LIBRARY_PHOTO); -#line 1976 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 1976 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_) { -#line 13063 "PhotoPage.c" - Photo* _tmp3_; - LibraryPhoto* _tmp4_; -#line 1977 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = editing_host_page_get_photo (self); -#line 1977 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) _tmp3_) : NULL; -#line 1977 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp4_ == NULL) { -#line 1977 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 13074 "PhotoPage.c" - } -#line 1977 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (item); -#line 1977 "/home/jens/Source/shotwell/src/PhotoPage.vala" - item = _tmp4_; -#line 13080 "PhotoPage.c" - } else { -#line 1979 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (item); -#line 1979 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 13086 "PhotoPage.c" - } -#line 1981 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = item; -#line 1981 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = media_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1981 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_; -#line 1981 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = edit_comment_dialog_new (_tmp7_, FALSE); -#line 1981 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = _tmp8_; -#line 1981 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp7_); -#line 1981 "/home/jens/Source/shotwell/src/PhotoPage.vala" - edit_comment_dialog = _tmp9_; -#line 1982 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = edit_comment_dialog; -#line 1982 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = edit_comment_dialog_execute (_tmp10_); -#line 1982 "/home/jens/Source/shotwell/src/PhotoPage.vala" - new_comment = _tmp11_; -#line 1983 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = new_comment; -#line 1983 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp12_ == NULL) { -#line 1984 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (new_comment); -#line 1984 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog); -#line 1984 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (item); -#line 1984 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 13120 "PhotoPage.c" - } -#line 1986 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = item; -#line 1986 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = new_comment; -#line 1986 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = edit_comment_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MEDIA_SOURCE, MediaSource), _tmp14_); -#line 1986 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command = _tmp15_; -#line 1987 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1987 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = _tmp16_; -#line 1987 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = command; -#line 1987 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command_manager_execute (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_COMMAND, Command)); -#line 1987 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _command_manager_unref0 (_tmp17_); -#line 1974 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (command); -#line 1974 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (new_comment); -#line 1974 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog); -#line 1974 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (item); -#line 13148 "PhotoPage.c" -} - - -void -editing_host_page_on_adjust_date_time (EditingHostPage* self) -{ - AdjustDateTimeDialog* dialog = NULL; - Photo* _tmp0_; - Photo* _tmp1_; - AdjustDateTimeDialog* _tmp2_; - AdjustDateTimeDialog* _tmp3_; - gint64 time_shift = 0LL; - gboolean keep_relativity = FALSE; - gboolean modify_originals = FALSE; - AdjustDateTimeDialog* _tmp4_; - gint64 _tmp5_ = 0LL; - gboolean _tmp6_ = FALSE; - gboolean _tmp7_ = FALSE; - gboolean _tmp8_; -#line 1990 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 1991 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!editing_host_page_has_photo (self)) { -#line 1992 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 13174 "PhotoPage.c" - } -#line 1994 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (self); -#line 1994 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 1994 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = adjust_date_time_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATEABLE, Dateable), 1, !G_TYPE_CHECK_INSTANCE_TYPE (self, TYPE_DIRECT_PHOTO_PAGE), FALSE, FALSE); -#line 1994 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp2_); -#line 1994 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_; -#line 1994 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 1994 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dialog = _tmp3_; -#line 1998 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = dialog; -#line 1998 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = adjust_date_time_dialog_execute (_tmp4_, &_tmp5_, &_tmp6_, &_tmp7_); -#line 1998 "/home/jens/Source/shotwell/src/PhotoPage.vala" - time_shift = _tmp5_; -#line 1998 "/home/jens/Source/shotwell/src/PhotoPage.vala" - keep_relativity = _tmp6_; -#line 1998 "/home/jens/Source/shotwell/src/PhotoPage.vala" - modify_originals = _tmp7_; -#line 1998 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp8_) { -#line 13202 "PhotoPage.c" - ViewCollection* _tmp9_; - ViewCollection* _tmp10_; - GeeList* _tmp11_; - GeeList* _tmp12_; - AdjustDateTimePhotoCommand* command = NULL; - Photo* _tmp13_; - Photo* _tmp14_; - gint64 _tmp15_; - gboolean _tmp16_; - AdjustDateTimePhotoCommand* _tmp17_; - AdjustDateTimePhotoCommand* _tmp18_; - CommandManager* _tmp19_; - CommandManager* _tmp20_; - AdjustDateTimePhotoCommand* _tmp21_; -#line 1999 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1999 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = _tmp9_; -#line 1999 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = view_collection_get_selected (_tmp10_); -#line 1999 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _tmp11_; -#line 1999 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp12_); -#line 1999 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp10_); -#line 2001 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = editing_host_page_get_photo (self); -#line 2001 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = _tmp13_; -#line 2001 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = time_shift; -#line 2001 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = modify_originals; -#line 2001 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = adjust_date_time_photo_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATEABLE, Dateable), _tmp15_, _tmp16_); -#line 2001 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = _tmp17_; -#line 2001 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp14_); -#line 2001 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command = _tmp18_; -#line 2003 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2003 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = _tmp19_; -#line 2003 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = command; -#line 2003 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command_manager_execute (_tmp20_, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_COMMAND, Command)); -#line 2003 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _command_manager_unref0 (_tmp20_); -#line 1998 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (command); -#line 13257 "PhotoPage.c" - } -#line 1990 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (dialog); -#line 13261 "PhotoPage.c" -} - - -void -editing_host_page_on_set_background (EditingHostPage* self) -{ -#line 2007 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2008 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_has_photo (self)) { -#line 13272 "PhotoPage.c" - SetBackgroundPhotoDialog* dialog = NULL; - SetBackgroundPhotoDialog* _tmp0_; - gboolean desktop = FALSE; - gboolean screensaver = FALSE; - SetBackgroundPhotoDialog* _tmp1_; - gboolean _tmp2_ = FALSE; - gboolean _tmp3_ = FALSE; - gboolean _tmp4_; -#line 2009 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = set_background_photo_dialog_new (); -#line 2009 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp0_); -#line 2009 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dialog = _tmp0_; -#line 2011 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = dialog; -#line 2011 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = set_background_photo_dialog_execute (_tmp1_, &_tmp2_, &_tmp3_); -#line 2011 "/home/jens/Source/shotwell/src/PhotoPage.vala" - desktop = _tmp2_; -#line 2011 "/home/jens/Source/shotwell/src/PhotoPage.vala" - screensaver = _tmp3_; -#line 2011 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp4_) { -#line 13297 "PhotoPage.c" - AppWindow* _tmp5_; - AppWindow* _tmp6_; - Photo* _tmp7_; - Photo* _tmp8_; - gboolean _tmp9_; - gboolean _tmp10_; - AppWindow* _tmp11_; - AppWindow* _tmp12_; -#line 2012 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = app_window_get_instance (); -#line 2012 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 2012 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PAGE_WINDOW, PageWindow)); -#line 2012 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp6_); -#line 2013 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = editing_host_page_get_photo (self); -#line 2013 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_; -#line 2013 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = desktop; -#line 2013 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = screensaver; -#line 2013 "/home/jens/Source/shotwell/src/PhotoPage.vala" - desktop_integration_set_background (_tmp8_, _tmp9_, _tmp10_); -#line 2013 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp8_); -#line 2014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = app_window_get_instance (); -#line 2014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _tmp11_; -#line 2014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PAGE_WINDOW, PageWindow)); -#line 2014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp12_); -#line 13334 "PhotoPage.c" - } -#line 2008 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (dialog); -#line 13338 "PhotoPage.c" - } -} - - -static void -_editing_host_page_on_rotate_counterclockwise_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self) -{ -#line 2024 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_rotate_counterclockwise ((EditingHostPage*) self); -#line 13349 "PhotoPage.c" -} - - -static gboolean -editing_host_page_real_on_ctrl_pressed (Page* base, - GdkEventKey* event) -{ - EditingHostPage * self; - gboolean result = FALSE; - GtkToolButton* _tmp0_; - GtkToolButton* _tmp1_; - GtkToolButton* _tmp2_; - GtkToolButton* _tmp3_; - guint _tmp4_; - GtkToolButton* _tmp5_; - EditingToolsEditingTool* _tmp6_; -#line 2019 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 2020 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->rotate_button; -#line 2020 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_button_set_icon_name (_tmp0_, RESOURCES_COUNTERCLOCKWISE); -#line 2021 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->rotate_button; -#line 2021 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_button_set_label (_tmp1_, RESOURCES_ROTATE_CCW_LABEL); -#line 2022 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->rotate_button; -#line 2022 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ROTATE_CCW_TOOLTIP); -#line 2023 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = self->priv->rotate_button; -#line 2023 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("clicked", gtk_tool_button_get_type (), &_tmp4_, NULL, FALSE); -#line 2023 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _editing_host_page_on_rotate_clockwise_gtk_tool_button_clicked, self); -#line 2024 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = self->priv->rotate_button; -#line 2024 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (_tmp5_, "clicked", (GCallback) _editing_host_page_on_rotate_counterclockwise_gtk_tool_button_clicked, self, 0); -#line 2026 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = self->priv->current_tool; -#line 2026 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp6_ == NULL) { -#line 2027 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_swap_out_original (self); -#line 13396 "PhotoPage.c" - } -#line 2029 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = PAGE_CLASS (editing_host_page_parent_class)->on_ctrl_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), event); -#line 2029 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 13402 "PhotoPage.c" -} - - -static gboolean -editing_host_page_real_on_ctrl_released (Page* base, - GdkEventKey* event) -{ - EditingHostPage * self; - gboolean result = FALSE; - GtkToolButton* _tmp0_; - GtkToolButton* _tmp1_; - GtkToolButton* _tmp2_; - GtkToolButton* _tmp3_; - guint _tmp4_; - GtkToolButton* _tmp5_; - gboolean _tmp6_ = FALSE; - gboolean _tmp7_ = FALSE; - EditingToolsEditingTool* _tmp8_; -#line 2032 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 2033 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->rotate_button; -#line 2033 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_button_set_icon_name (_tmp0_, RESOURCES_CLOCKWISE); -#line 2034 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->rotate_button; -#line 2034 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_button_set_label (_tmp1_, RESOURCES_ROTATE_CW_LABEL); -#line 2035 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->rotate_button; -#line 2035 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_ROTATE_CW_TOOLTIP); -#line 2036 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = self->priv->rotate_button; -#line 2036 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("clicked", gtk_tool_button_get_type (), &_tmp4_, NULL, FALSE); -#line 2036 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _editing_host_page_on_rotate_counterclockwise_gtk_tool_button_clicked, self); -#line 2037 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = self->priv->rotate_button; -#line 2037 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (_tmp5_, "clicked", (GCallback) _editing_host_page_on_rotate_clockwise_gtk_tool_button_clicked, self, 0); -#line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = self->priv->current_tool; -#line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp8_ == NULL) { -#line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = page_get_shift_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 13451 "PhotoPage.c" - } else { -#line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = FALSE; -#line 13455 "PhotoPage.c" - } -#line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp7_) { -#line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = !page_get_alt_pressed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 13461 "PhotoPage.c" - } else { -#line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = FALSE; -#line 13465 "PhotoPage.c" - } -#line 2039 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp6_) { -#line 2040 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_swap_in_original (self); -#line 13471 "PhotoPage.c" - } -#line 2042 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = PAGE_CLASS (editing_host_page_parent_class)->on_ctrl_released (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), event); -#line 2042 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 13477 "PhotoPage.c" -} - - -void -editing_host_page_on_tool_button_toggled (EditingHostPage* self, - GtkToggleToolButton* toggle, - EditingToolsEditingToolFactory factory) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; - gboolean _tmp2_; - gboolean deactivating_only = FALSE; - Dimensions _tmp4_ = {0}; - gboolean _tmp5_; - GtkToggleToolButton* _tmp6_; - EditingToolsEditingTool* tool = NULL; - EditingToolsEditingTool* _tmp7_; - EditingToolsEditingTool* _tmp8_; - EditingToolsEditingTool* _tmp9_; - EditingToolsEditingTool* _tmp10_; - EditingToolsEditingTool* _tmp11_; - EditingToolsEditingTool* _tmp12_; - EditingToolsEditingTool* _tmp13_; -#line 2045 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2045 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (GTK_IS_TOGGLE_TOOL_BUTTON (toggle)); -#line 2048 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = gtk_toggle_tool_button_get_active (toggle); -#line 2048 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 2048 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!_tmp2_) { -#line 13511 "PhotoPage.c" - GtkToggleToolButton* _tmp3_; -#line 2048 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = self->priv->current_editing_toggle; -#line 2048 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = _tmp3_ == toggle; -#line 13517 "PhotoPage.c" - } else { -#line 2048 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = FALSE; -#line 13521 "PhotoPage.c" - } -#line 2048 "/home/jens/Source/shotwell/src/PhotoPage.vala" - deactivating_only = _tmp0_; -#line 2049 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dimensions_init (&_tmp4_, 0, 0); -#line 2049 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp4_, FALSE); -#line 2051 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = deactivating_only; -#line 2051 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp5_) { -#line 2052 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_restore_cursor_hiding (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2053 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 13537 "PhotoPage.c" - } -#line 2056 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_suspend_cursor_hiding (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2058 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _g_object_ref0 (toggle); -#line 2058 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->current_editing_toggle); -#line 2058 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->current_editing_toggle = _tmp6_; -#line 2061 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = factory (); -#line 2061 "/home/jens/Source/shotwell/src/PhotoPage.vala" - tool = _tmp7_; -#line 2062 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = tool; -#line 2062 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (_tmp8_, "activated", (GCallback) _editing_host_page_on_tool_activated_editing_tools_editing_tool_activated, self, 0); -#line 2063 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = tool; -#line 2063 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (_tmp9_, "deactivated", (GCallback) _editing_host_page_on_tool_deactivated_editing_tools_editing_tool_deactivated, self, 0); -#line 2064 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = tool; -#line 2064 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (_tmp10_, "applied", (GCallback) _editing_host_page_on_tool_applied_editing_tools_editing_tool_applied, self, 0); -#line 2065 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = tool; -#line 2065 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (_tmp11_, "cancelled", (GCallback) _editing_host_page_on_tool_cancelled_editing_tools_editing_tool_cancelled, self, 0); -#line 2066 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = tool; -#line 2066 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (_tmp12_, "aborted", (GCallback) _editing_host_page_on_tool_aborted_editing_tools_editing_tool_aborted, self, 0); -#line 2068 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = tool; -#line 2068 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_activate_tool (self, _tmp13_); -#line 2045 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _editing_tools_editing_tool_unref0 (tool); -#line 13577 "PhotoPage.c" -} - - -static void -editing_host_page_on_tool_activated (EditingHostPage* self) -{ - GtkToggleToolButton* _tmp0_; - GtkScale* _tmp1_; - GtkToggleToolButton* _tmp2_; -#line 2071 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2072 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->current_editing_toggle; -#line 2072 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _vala_assert (_tmp0_ != NULL, "current_editing_toggle != null"); -#line 2073 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->zoom_slider; -#line 2073 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 2074 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->current_editing_toggle; -#line 2074 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_toggle_tool_button_set_active (_tmp2_, TRUE); -#line 13601 "PhotoPage.c" -} - - -static void -editing_host_page_on_tool_deactivated (EditingHostPage* self) -{ - GtkToggleToolButton* _tmp0_; - GtkScale* _tmp1_; - GtkToggleToolButton* _tmp2_; -#line 2077 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2078 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->current_editing_toggle; -#line 2078 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _vala_assert (_tmp0_ != NULL, "current_editing_toggle != null"); -#line 2079 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->zoom_slider; -#line 2079 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 2080 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->current_editing_toggle; -#line 2080 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_toggle_tool_button_set_active (_tmp2_, FALSE); -#line 13625 "PhotoPage.c" -} - - -static void -editing_host_page_on_tool_applied (EditingHostPage* self, - Command* command, - GdkPixbuf* new_pixbuf, - Dimensions* new_max_dim, - gboolean needs_improvement) -{ - Dimensions _tmp0_; -#line 2083 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2083 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail ((command == NULL) || IS_COMMAND (command)); -#line 2083 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail ((new_pixbuf == NULL) || GDK_IS_PIXBUF (new_pixbuf)); -#line 2083 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (new_max_dim != NULL); -#line 2085 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = *new_max_dim; -#line 2085 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_deactivate_tool (self, command, new_pixbuf, &_tmp0_, needs_improvement); -#line 13649 "PhotoPage.c" -} - - -static void -editing_host_page_on_tool_cancelled (EditingHostPage* self) -{ - Dimensions _tmp0_ = {0}; -#line 2088 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2089 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dimensions_init (&_tmp0_, 0, 0); -#line 2089 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp0_, FALSE); -#line 2091 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_restore_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 2092 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); -#line 13667 "PhotoPage.c" -} - - -static void -editing_host_page_on_tool_aborted (EditingHostPage* self) -{ - Dimensions _tmp0_ = {0}; -#line 2095 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2096 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dimensions_init (&_tmp0_, 0, 0); -#line 2096 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp0_, FALSE); -#line 2097 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_set_photo_missing (self, TRUE); -#line 13683 "PhotoPage.c" -} - - -void -editing_host_page_toggle_crop (EditingHostPage* self) -{ - GtkToggleToolButton* _tmp0_; - GtkToggleToolButton* _tmp1_; -#line 2100 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2101 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->crop_button; -#line 2101 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->crop_button; -#line 2101 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_toggle_tool_button_set_active (_tmp0_, !gtk_toggle_tool_button_get_active (_tmp1_)); -#line 13700 "PhotoPage.c" -} - - -void -editing_host_page_toggle_straighten (EditingHostPage* self) -{ - GtkToggleToolButton* _tmp0_; - GtkToggleToolButton* _tmp1_; -#line 2104 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2105 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->straighten_button; -#line 2105 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->straighten_button; -#line 2105 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_toggle_tool_button_set_active (_tmp0_, !gtk_toggle_tool_button_get_active (_tmp1_)); -#line 13717 "PhotoPage.c" -} - - -void -editing_host_page_toggle_redeye (EditingHostPage* self) -{ - GtkToggleToolButton* _tmp0_; - GtkToggleToolButton* _tmp1_; -#line 2108 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2109 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->redeye_button; -#line 2109 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->redeye_button; -#line 2109 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_toggle_tool_button_set_active (_tmp0_, !gtk_toggle_tool_button_get_active (_tmp1_)); -#line 13734 "PhotoPage.c" -} - - -void -editing_host_page_toggle_adjust (EditingHostPage* self) -{ - GtkToggleToolButton* _tmp0_; - GtkToggleToolButton* _tmp1_; -#line 2112 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2113 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->adjust_button; -#line 2113 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->adjust_button; -#line 2113 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_toggle_tool_button_set_active (_tmp0_, !gtk_toggle_tool_button_get_active (_tmp1_)); -#line 13751 "PhotoPage.c" -} - - -static EditingToolsEditingTool* -_editing_tools_straighten_tool_factory_editing_tools_editing_tool_factory (void) -{ - EditingToolsEditingTool* result; - result = editing_tools_straighten_tool_factory (); -#line 2117 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 13762 "PhotoPage.c" -} - - -static void -editing_host_page_on_straighten_toggled (EditingHostPage* self) -{ - GtkToggleToolButton* _tmp0_; -#line 2116 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2117 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->straighten_button; -#line 2117 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_tool_button_toggled (self, _tmp0_, _editing_tools_straighten_tool_factory_editing_tools_editing_tool_factory); -#line 13776 "PhotoPage.c" -} - - -static EditingToolsEditingTool* -_editing_tools_crop_tool_factory_editing_tools_editing_tool_factory (void) -{ - EditingToolsEditingTool* result; - result = editing_tools_crop_tool_factory (); -#line 2121 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 13787 "PhotoPage.c" -} - - -static void -editing_host_page_on_crop_toggled (EditingHostPage* self) -{ - GtkToggleToolButton* _tmp0_; -#line 2120 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2121 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->crop_button; -#line 2121 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_tool_button_toggled (self, _tmp0_, _editing_tools_crop_tool_factory_editing_tools_editing_tool_factory); -#line 13801 "PhotoPage.c" -} - - -static EditingToolsEditingTool* -_editing_tools_redeye_tool_factory_editing_tools_editing_tool_factory (void) -{ - EditingToolsEditingTool* result; - result = editing_tools_redeye_tool_factory (); -#line 2125 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 13812 "PhotoPage.c" -} - - -static void -editing_host_page_on_redeye_toggled (EditingHostPage* self) -{ - GtkToggleToolButton* _tmp0_; -#line 2124 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2125 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->redeye_button; -#line 2125 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_tool_button_toggled (self, _tmp0_, _editing_tools_redeye_tool_factory_editing_tools_editing_tool_factory); -#line 13826 "PhotoPage.c" -} - - -static EditingToolsEditingTool* -_editing_tools_adjust_tool_factory_editing_tools_editing_tool_factory (void) -{ - EditingToolsEditingTool* result; - result = editing_tools_adjust_tool_factory (); -#line 2129 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 13837 "PhotoPage.c" -} - - -static void -editing_host_page_on_adjust_toggled (EditingHostPage* self) -{ - GtkToggleToolButton* _tmp0_; -#line 2128 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2129 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->adjust_button; -#line 2129 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_tool_button_toggled (self, _tmp0_, _editing_tools_adjust_tool_factory_editing_tools_editing_tool_factory); -#line 13851 "PhotoPage.c" -} - - -gboolean -editing_host_page_is_enhance_available (EditingHostPage* self, - Photo* photo) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 2132 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 2132 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_PHOTO (photo), FALSE); -#line 2133 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->photo_missing; -#line 2133 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = !_tmp0_; -#line 2133 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 13871 "PhotoPage.c" -} - - -void -editing_host_page_on_enhance (EditingHostPage* self) -{ - EditingToolsEditingTool* _tmp0_; - EditingToolsAdjustTool* adjust_tool = NULL; - EditingToolsEditingTool* _tmp2_; - EditingToolsAdjustTool* _tmp3_; - EditingToolsAdjustTool* _tmp4_; - EnhanceSingleCommand* command = NULL; - Photo* _tmp6_; - Photo* _tmp7_; - EnhanceSingleCommand* _tmp8_; - EnhanceSingleCommand* _tmp9_; - CommandManager* _tmp10_; - CommandManager* _tmp11_; - EnhanceSingleCommand* _tmp12_; -#line 2136 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2140 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->current_tool; -#line 2140 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, EDITING_TOOLS_TYPE_ADJUST_TOOL)) { -#line 13897 "PhotoPage.c" - Dimensions _tmp1_ = {0}; -#line 2141 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dimensions_init (&_tmp1_, 0, 0); -#line 2141 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp1_, FALSE); -#line 2143 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_cancel_zoom (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 13905 "PhotoPage.c" - } -#line 2146 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!editing_host_page_has_photo (self)) { -#line 2147 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 13911 "PhotoPage.c" - } -#line 2149 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = self->priv->current_tool; -#line 2149 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _editing_tools_editing_tool_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, EDITING_TOOLS_TYPE_ADJUST_TOOL) ? ((EditingToolsAdjustTool*) _tmp2_) : NULL); -#line 2149 "/home/jens/Source/shotwell/src/PhotoPage.vala" - adjust_tool = _tmp3_; -#line 2150 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = adjust_tool; -#line 2150 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp4_ != NULL) { -#line 13923 "PhotoPage.c" - EditingToolsAdjustTool* _tmp5_; -#line 2151 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = adjust_tool; -#line 2151 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_tools_adjust_tool_enhance (_tmp5_); -#line 2153 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _editing_tools_editing_tool_unref0 (adjust_tool); -#line 2153 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 13933 "PhotoPage.c" - } -#line 2156 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = editing_host_page_get_photo (self); -#line 2156 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_; -#line 2156 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = enhance_single_command_new (_tmp7_); -#line 2156 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = _tmp8_; -#line 2156 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp7_); -#line 2156 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command = _tmp9_; -#line 2157 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2157 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = _tmp10_; -#line 2157 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = command; -#line 2157 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_COMMAND, Command)); -#line 2157 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _command_manager_unref0 (_tmp11_); -#line 2136 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (command); -#line 2136 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _editing_tools_editing_tool_unref0 (adjust_tool); -#line 13961 "PhotoPage.c" -} - - -void -editing_host_page_on_copy_adjustments (EditingHostPage* self) -{ - Photo* _tmp0_; - Photo* _tmp1_; - PixelTransformationBundle* _tmp2_; - PixelTransformationBundle* _tmp3_; -#line 2160 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2161 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!editing_host_page_has_photo (self)) { -#line 2162 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 13978 "PhotoPage.c" - } -#line 2163 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (self); -#line 2163 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 2163 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = photo_get_color_adjustments (_tmp1_); -#line 2163 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_; -#line 2163 "/home/jens/Source/shotwell/src/PhotoPage.vala" - pixel_transformation_bundle_set_copied_color_adjustments (_tmp3_); -#line 2163 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _pixel_transformation_bundle_unref0 (_tmp3_); -#line 2163 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 2164 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", TRUE); -#line 13996 "PhotoPage.c" -} - - -void -editing_host_page_on_paste_adjustments (EditingHostPage* self) -{ - PixelTransformationBundle* copied_adjustments = NULL; - PixelTransformationBundle* _tmp0_; - gboolean _tmp1_ = FALSE; - AdjustColorsSingleCommand* command = NULL; - Photo* _tmp3_; - Photo* _tmp4_; - PixelTransformationBundle* _tmp5_; - AdjustColorsSingleCommand* _tmp6_; - AdjustColorsSingleCommand* _tmp7_; - CommandManager* _tmp8_; - CommandManager* _tmp9_; - AdjustColorsSingleCommand* _tmp10_; -#line 2167 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2168 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = pixel_transformation_bundle_get_copied_color_adjustments (); -#line 2168 "/home/jens/Source/shotwell/src/PhotoPage.vala" - copied_adjustments = _tmp0_; -#line 2169 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!editing_host_page_has_photo (self)) { -#line 2169 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = TRUE; -#line 14025 "PhotoPage.c" - } else { - PixelTransformationBundle* _tmp2_; -#line 2169 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = copied_adjustments; -#line 2169 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp2_ == NULL; -#line 14032 "PhotoPage.c" - } -#line 2169 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp1_) { -#line 2170 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _pixel_transformation_bundle_unref0 (copied_adjustments); -#line 2170 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 14040 "PhotoPage.c" - } -#line 2172 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = editing_host_page_get_photo (self); -#line 2172 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 2172 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = copied_adjustments; -#line 2172 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = adjust_colors_single_command_new (_tmp4_, _tmp5_, RESOURCES_PASTE_ADJUSTMENTS_LABEL, RESOURCES_PASTE_ADJUSTMENTS_TOOLTIP); -#line 2172 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_; -#line 2172 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp4_); -#line 2172 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command = _tmp7_; -#line 2174 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2174 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = _tmp8_; -#line 2174 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = command; -#line 2174 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command_manager_execute (_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_COMMAND, Command)); -#line 2174 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _command_manager_unref0 (_tmp9_); -#line 2167 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (command); -#line 2167 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _pixel_transformation_bundle_unref0 (copied_adjustments); -#line 14070 "PhotoPage.c" -} - - -static void -editing_host_page_place_tool_window (EditingHostPage* self) -{ - EditingToolsEditingTool* _tmp0_; - EditingToolsEditingToolWindow* tool_window = NULL; - EditingToolsEditingTool* _tmp1_; - EditingToolsEditingToolWindow* _tmp2_; - EditingToolsEditingToolWindow* _tmp3_; - EditingToolsEditingToolWindow* _tmp4_; - AppWindow* _tmp5_; - AppWindow* _tmp6_; - EditingToolsEditingToolWindow* _tmp7_; - EditingToolsEditingToolWindow* _tmp8_; - GtkAllocation tool_alloc = {0}; - EditingToolsEditingToolWindow* _tmp9_; - GtkAllocation _tmp10_ = {0}; - gint x = 0; - gint y = 0; - GeeHashMap* _tmp11_; - EditingToolsEditingTool* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gboolean _tmp16_; - GdkScreen* screen = NULL; - GtkWindow* _tmp84_; - GtkWindow* _tmp85_; - GdkScreen* _tmp86_; - GdkScreen* _tmp87_; - GdkScreen* _tmp88_; - gint _tmp89_; - GdkScreen* _tmp90_; - GtkAllocation _tmp91_; - gint _tmp92_; - gint _tmp93_; - GdkScreen* _tmp94_; - GtkAllocation _tmp95_; - gint _tmp96_; - EditingToolsEditingToolWindow* _tmp97_; - gint _tmp98_; - gint _tmp99_; - EditingToolsEditingToolWindow* _tmp100_; - EditingToolsEditingToolWindow* _tmp101_; -#line 2177 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2178 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->current_tool; -#line 2178 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_ == NULL) { -#line 2179 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 14125 "PhotoPage.c" - } -#line 2181 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = self->priv->current_tool; -#line 2181 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = editing_tools_editing_tool_get_tool_window (_tmp1_); -#line 2181 "/home/jens/Source/shotwell/src/PhotoPage.vala" - tool_window = _tmp2_; -#line 2182 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = tool_window; -#line 2182 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp3_ == NULL) { -#line 2183 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (tool_window); -#line 2183 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 14141 "PhotoPage.c" - } -#line 2186 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = tool_window; -#line 2186 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = app_window_get_instance (); -#line 2186 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 2186 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow)); -#line 2186 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp6_); -#line 2187 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = tool_window; -#line 2187 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget)); -#line 2188 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = tool_window; -#line 2188 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget)); -#line 2191 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = tool_window; -#line 2191 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), &_tmp10_); -#line 2191 "/home/jens/Source/shotwell/src/PhotoPage.vala" - tool_alloc = _tmp10_; -#line 2195 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = self->priv->last_locations; -#line 2195 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = self->priv->current_tool; -#line 2195 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = _tmp12_->name; -#line 2195 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = g_strconcat (_tmp13_, "_x", NULL); -#line 2195 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = _tmp14_; -#line 2195 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_); -#line 2195 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp15_); -#line 2195 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp16_) { -#line 14183 "PhotoPage.c" - GeeHashMap* _tmp17_; - EditingToolsEditingTool* _tmp18_; - const gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - gpointer _tmp22_; - GeeHashMap* _tmp23_; - EditingToolsEditingTool* _tmp24_; - const gchar* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; - gpointer _tmp28_; -#line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = self->priv->last_locations; -#line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = self->priv->current_tool; -#line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = _tmp18_->name; -#line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = g_strconcat (_tmp19_, "_x", NULL); -#line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = _tmp20_; -#line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp21_); -#line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala" - x = (gint) ((gintptr) _tmp22_); -#line 2196 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp21_); -#line 2197 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = self->priv->last_locations; -#line 2197 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = self->priv->current_tool; -#line 2197 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = _tmp24_->name; -#line 2197 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = g_strconcat (_tmp25_, "_y", NULL); -#line 2197 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp27_ = _tmp26_; -#line 2197 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp28_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp27_); -#line 2197 "/home/jens/Source/shotwell/src/PhotoPage.vala" - y = (gint) ((gintptr) _tmp28_); -#line 2197 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp27_); -#line 14228 "PhotoPage.c" - } else { - GtkWindow* _tmp29_; - GtkWindow* _tmp30_; - AppWindow* _tmp31_; - AppWindow* _tmp32_; - gboolean _tmp33_; -#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp29_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp30_ = _tmp29_; -#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp31_ = app_window_get_instance (); -#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp32_ = _tmp31_; -#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp33_ = _tmp30_ == G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_window_get_type (), GtkWindow); -#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp32_); -#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp30_); -#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp33_) { -#line 14251 "PhotoPage.c" - gint rx = 0; - gint ry = 0; - GtkWindow* _tmp34_; - GtkWindow* _tmp35_; - GdkWindow* _tmp36_; - gint _tmp37_ = 0; - gint _tmp38_ = 0; - GtkAllocation viewport_allocation = {0}; - GtkViewport* _tmp39_; - GtkAllocation _tmp40_ = {0}; - gint cx = 0; - gint cy = 0; - gint cwidth = 0; - gint cheight = 0; - GtkAllocation _tmp41_; - gint _tmp42_; - GtkAllocation _tmp43_; - gint _tmp44_; - GtkAllocation _tmp45_; - gint _tmp46_; - GtkAllocation _tmp47_; - gint _tmp48_; - gint _tmp49_ = 0; - gint _tmp58_; - gint _tmp59_; - gint _tmp60_; - GtkAllocation _tmp61_; - gint _tmp62_; -#line 2205 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp34_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2205 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp35_ = _tmp34_; -#line 2205 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp36_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_widget_get_type (), GtkWidget)); -#line 2205 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gdk_window_get_root_origin (_tmp36_, &_tmp37_, &_tmp38_); -#line 2205 "/home/jens/Source/shotwell/src/PhotoPage.vala" - rx = _tmp37_; -#line 2205 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ry = _tmp38_; -#line 2205 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp35_); -#line 2208 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp39_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)->viewport; -#line 2208 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_widget_get_type (), GtkWidget), &_tmp40_); -#line 2208 "/home/jens/Source/shotwell/src/PhotoPage.vala" - viewport_allocation = _tmp40_; -#line 2211 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp41_ = viewport_allocation; -#line 2211 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp42_ = _tmp41_.x; -#line 2211 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cx = _tmp42_; -#line 2212 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp43_ = viewport_allocation; -#line 2212 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp44_ = _tmp43_.y; -#line 2212 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cy = _tmp44_; -#line 2213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp45_ = viewport_allocation; -#line 2213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp46_ = _tmp45_.width; -#line 2213 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cwidth = _tmp46_; -#line 2214 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp47_ = viewport_allocation; -#line 2214 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp48_ = _tmp47_.height; -#line 2214 "/home/jens/Source/shotwell/src/PhotoPage.vala" - cheight = _tmp48_; -#line 2218 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (self, TYPE_DIRECT_PHOTO_PAGE)) { -#line 14326 "PhotoPage.c" - gint _tmp50_; - gint _tmp51_; - gint _tmp52_; - GtkAllocation _tmp53_; - gint _tmp54_; -#line 2218 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp50_ = rx; -#line 2218 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp51_ = cx; -#line 2218 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp52_ = cwidth; -#line 2218 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp53_ = tool_alloc; -#line 2218 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp54_ = _tmp53_.width; -#line 2218 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp49_ = ((_tmp50_ + _tmp51_) + (_tmp52_ / 2)) - (_tmp54_ / 2); -#line 14344 "PhotoPage.c" - } else { - gint _tmp55_; - gint _tmp56_; - gint _tmp57_; -#line 2219 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp55_ = rx; -#line 2219 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp56_ = cx; -#line 2219 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp57_ = cwidth; -#line 2219 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp49_ = (_tmp55_ + _tmp56_) + (_tmp57_ / 2); -#line 14357 "PhotoPage.c" - } -#line 2218 "/home/jens/Source/shotwell/src/PhotoPage.vala" - x = _tmp49_; -#line 2220 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp58_ = ry; -#line 2220 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp59_ = cy; -#line 2220 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp60_ = cheight; -#line 2220 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp61_ = tool_alloc; -#line 2220 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp62_ = _tmp61_.height; -#line 2220 "/home/jens/Source/shotwell/src/PhotoPage.vala" - y = ((_tmp58_ + _tmp59_) + _tmp60_) - ((_tmp62_ / 4) * 3); -#line 14373 "PhotoPage.c" - } else { - GtkWindow* _tmp63_; - GtkWindow* _tmp64_; - GtkAllocation toolbar_alloc = {0}; - GtkToolbar* _tmp65_; - GtkToolbar* _tmp66_; - GtkAllocation _tmp67_ = {0}; - GdkScreen* screen = NULL; - GtkWindow* _tmp68_; - GtkWindow* _tmp69_; - GdkScreen* _tmp70_; - GdkScreen* _tmp71_; - GdkScreen* _tmp72_; - GdkScreen* _tmp73_; - GdkScreen* _tmp74_; - GtkAllocation _tmp75_; - gint _tmp76_; - GtkAllocation _tmp77_; - gint _tmp78_; - EditingToolsEditingTool* _tmp79_; -#line 2222 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp63_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2222 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp64_ = _tmp63_; -#line 2222 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (_tmp64_, TYPE_FULLSCREEN_WINDOW), "get_container() is FullscreenWindow"); -#line 2222 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp64_); -#line 2227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp65_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp66_ = _tmp65_; -#line 2227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_get_allocation (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, gtk_widget_get_type (), GtkWidget), &_tmp67_); -#line 2227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - toolbar_alloc = _tmp67_; -#line 2227 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp66_); -#line 2229 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp68_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2229 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp69_ = _tmp68_; -#line 2229 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp70_ = gtk_window_get_screen (_tmp69_); -#line 2229 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp71_ = _g_object_ref0 (_tmp70_); -#line 2229 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp72_ = _tmp71_; -#line 2229 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp69_); -#line 2229 "/home/jens/Source/shotwell/src/PhotoPage.vala" - screen = _tmp72_; -#line 2230 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp73_ = screen; -#line 2230 "/home/jens/Source/shotwell/src/PhotoPage.vala" - x = gdk_screen_get_width (_tmp73_); -#line 2231 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp74_ = screen; -#line 2231 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp75_ = toolbar_alloc; -#line 2231 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp76_ = _tmp75_.height; -#line 2231 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp77_ = tool_alloc; -#line 2231 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp78_ = _tmp77_.height; -#line 2231 "/home/jens/Source/shotwell/src/PhotoPage.vala" - y = ((gdk_screen_get_height (_tmp74_) - _tmp76_) - _tmp78_) - EDITING_HOST_PAGE_TOOL_WINDOW_SEPARATOR; -#line 2235 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp79_ = self->priv->current_tool; -#line 2235 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp79_, EDITING_TOOLS_TYPE_ADJUST_TOOL)) { -#line 14446 "PhotoPage.c" - gint _tmp80_; -#line 2236 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp80_ = x; -#line 2236 "/home/jens/Source/shotwell/src/PhotoPage.vala" - x = (_tmp80_ * 3) / 4; -#line 14452 "PhotoPage.c" - } else { - gint _tmp81_; - GtkAllocation _tmp82_; - gint _tmp83_; -#line 2238 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp81_ = x; -#line 2238 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp82_ = tool_alloc; -#line 2238 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp83_ = _tmp82_.width; -#line 2238 "/home/jens/Source/shotwell/src/PhotoPage.vala" - x = (_tmp81_ - _tmp83_) / 2; -#line 14465 "PhotoPage.c" - } -#line 2200 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (screen); -#line 14469 "PhotoPage.c" - } - } -#line 2244 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp84_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2244 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp85_ = _tmp84_; -#line 2244 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp86_ = gtk_window_get_screen (_tmp85_); -#line 2244 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp87_ = _g_object_ref0 (_tmp86_); -#line 2244 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp88_ = _tmp87_; -#line 2244 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp85_); -#line 2244 "/home/jens/Source/shotwell/src/PhotoPage.vala" - screen = _tmp88_; -#line 2245 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp89_ = x; -#line 2245 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp90_ = screen; -#line 2245 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp91_ = tool_alloc; -#line 2245 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp92_ = _tmp91_.width; -#line 2245 "/home/jens/Source/shotwell/src/PhotoPage.vala" - x = CLAMP (_tmp89_, 0, gdk_screen_get_width (_tmp90_) - _tmp92_); -#line 2246 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp93_ = y; -#line 2246 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp94_ = screen; -#line 2246 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp95_ = tool_alloc; -#line 2246 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp96_ = _tmp95_.height; -#line 2246 "/home/jens/Source/shotwell/src/PhotoPage.vala" - y = CLAMP (_tmp93_, 0, gdk_screen_get_height (_tmp94_) - _tmp96_); -#line 2248 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp97_ = tool_window; -#line 2248 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp98_ = x; -#line 2248 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp99_ = y; -#line 2248 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_window_move (G_TYPE_CHECK_INSTANCE_CAST (_tmp97_, gtk_window_get_type (), GtkWindow), _tmp98_, _tmp99_); -#line 2249 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp100_ = tool_window; -#line 2249 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp100_, gtk_widget_get_type (), GtkWidget)); -#line 2250 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp101_ = tool_window; -#line 2250 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (_tmp101_, gtk_window_get_type (), GtkWindow)); -#line 2177 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (screen); -#line 2177 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (tool_window); -#line 14526 "PhotoPage.c" -} - - -static void -editing_host_page_real_on_next_photo (SinglePhotoPage* base) -{ - EditingHostPage * self; - Dimensions _tmp0_ = {0}; - Photo* current_photo = NULL; - Photo* _tmp1_; - Photo* _tmp2_; - DataView* current = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - Photo* _tmp5_; - Photo* _tmp6_; - DataView* _tmp7_; - DataView* _tmp8_; - DataView* _tmp9_; - DataView* next = NULL; - DataView* _tmp10_; - DataView* _tmp11_; -#line 2253 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 2254 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dimensions_init (&_tmp0_, 0, 0); -#line 2254 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp0_, FALSE); -#line 2256 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!editing_host_page_has_photo (self)) { -#line 2257 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 14559 "PhotoPage.c" - } -#line 2259 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = editing_host_page_get_photo (self); -#line 2259 "/home/jens/Source/shotwell/src/PhotoPage.vala" - current_photo = _tmp1_; -#line 2260 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = current_photo; -#line 2260 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _vala_assert (_tmp2_ != NULL, "current_photo != null"); -#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = editing_host_page_get_photo (self); -#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = view_collection_get_view_for_source (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_SOURCE, DataSource)); -#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_; -#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp6_); -#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp4_); -#line 2262 "/home/jens/Source/shotwell/src/PhotoPage.vala" - current = _tmp8_; -#line 2263 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = current; -#line 2263 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp9_ == NULL) { -#line 2264 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (current); -#line 2264 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (current_photo); -#line 2264 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 14597 "PhotoPage.c" - } -#line 2267 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = current; -#line 2267 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = _g_object_ref0 (_tmp10_); -#line 2267 "/home/jens/Source/shotwell/src/PhotoPage.vala" - next = _tmp11_; -#line 14605 "PhotoPage.c" - { - gboolean _tmp12_ = FALSE; -#line 2268 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = TRUE; -#line 2268 "/home/jens/Source/shotwell/src/PhotoPage.vala" - while (TRUE) { -#line 14612 "PhotoPage.c" - ViewCollection* _tmp13_; - ViewCollection* _tmp14_; - DataView* _tmp15_; - DataView* _tmp16_; - DataView* _tmp17_; - Photo* next_photo = NULL; - DataView* _tmp18_; - DataSource* _tmp19_; - Photo* _tmp20_; - Photo* _tmp21_; - Photo* _tmp22_; - Photo* _tmp23_; - Photo* _tmp24_; -#line 2268 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!_tmp12_) { -#line 14628 "PhotoPage.c" - } -#line 2268 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = FALSE; -#line 2269 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2269 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = _tmp13_; -#line 2269 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = next; -#line 2269 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = view_collection_get_next (_tmp14_, _tmp15_); -#line 2269 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (next); -#line 2269 "/home/jens/Source/shotwell/src/PhotoPage.vala" - next = _tmp16_; -#line 2269 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp14_); -#line 2270 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = next; -#line 2270 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp17_ == NULL) { -#line 2271 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 14652 "PhotoPage.c" - } -#line 2273 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = next; -#line 2273 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = data_view_get_source (_tmp18_); -#line 2273 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_PHOTO) ? ((Photo*) _tmp19_) : NULL; -#line 2273 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp20_ == NULL) { -#line 2273 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp19_); -#line 14664 "PhotoPage.c" - } -#line 2273 "/home/jens/Source/shotwell/src/PhotoPage.vala" - next_photo = _tmp20_; -#line 2274 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = next_photo; -#line 2274 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp21_ == NULL) { -#line 2275 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (next_photo); -#line 2275 "/home/jens/Source/shotwell/src/PhotoPage.vala" - continue; -#line 14676 "PhotoPage.c" - } -#line 2277 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = next_photo; -#line 2277 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = current_photo; -#line 2277 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp22_ == _tmp23_) { -#line 2278 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (next_photo); -#line 2278 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 14688 "PhotoPage.c" - } -#line 2280 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = next_photo; -#line 2280 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_replace_photo (self, _tmp24_); -#line 2282 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (next_photo); -#line 2282 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 14698 "PhotoPage.c" - } - } -#line 2253 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (next); -#line 2253 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (current); -#line 2253 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (current_photo); -#line 14707 "PhotoPage.c" -} - - -static void -editing_host_page_real_on_previous_photo (SinglePhotoPage* base) -{ - EditingHostPage * self; - Dimensions _tmp0_ = {0}; - Photo* current_photo = NULL; - Photo* _tmp1_; - Photo* _tmp2_; - DataView* current = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - Photo* _tmp5_; - Photo* _tmp6_; - DataView* _tmp7_; - DataView* _tmp8_; - DataView* _tmp9_; - DataView* previous = NULL; - DataView* _tmp10_; - DataView* _tmp11_; -#line 2286 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 2287 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dimensions_init (&_tmp0_, 0, 0); -#line 2287 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_deactivate_tool (self, NULL, NULL, &_tmp0_, FALSE); -#line 2289 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!editing_host_page_has_photo (self)) { -#line 2290 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 14740 "PhotoPage.c" - } -#line 2292 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = editing_host_page_get_photo (self); -#line 2292 "/home/jens/Source/shotwell/src/PhotoPage.vala" - current_photo = _tmp1_; -#line 2293 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = current_photo; -#line 2293 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _vala_assert (_tmp2_ != NULL, "current_photo != null"); -#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = editing_host_page_get_photo (self); -#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = view_collection_get_view_for_source (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_SOURCE, DataSource)); -#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_; -#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp6_); -#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp4_); -#line 2295 "/home/jens/Source/shotwell/src/PhotoPage.vala" - current = _tmp8_; -#line 2296 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = current; -#line 2296 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp9_ == NULL) { -#line 2297 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (current); -#line 2297 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (current_photo); -#line 2297 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 14778 "PhotoPage.c" - } -#line 2300 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = current; -#line 2300 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = _g_object_ref0 (_tmp10_); -#line 2300 "/home/jens/Source/shotwell/src/PhotoPage.vala" - previous = _tmp11_; -#line 14786 "PhotoPage.c" - { - gboolean _tmp12_ = FALSE; -#line 2301 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = TRUE; -#line 2301 "/home/jens/Source/shotwell/src/PhotoPage.vala" - while (TRUE) { -#line 14793 "PhotoPage.c" - ViewCollection* _tmp13_; - ViewCollection* _tmp14_; - DataView* _tmp15_; - DataView* _tmp16_; - DataView* _tmp17_; - Photo* previous_photo = NULL; - DataView* _tmp18_; - DataSource* _tmp19_; - Photo* _tmp20_; - Photo* _tmp21_; - Photo* _tmp22_; - Photo* _tmp23_; - Photo* _tmp24_; -#line 2301 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!_tmp12_) { -#line 14809 "PhotoPage.c" - } -#line 2301 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = FALSE; -#line 2302 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2302 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = _tmp13_; -#line 2302 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = previous; -#line 2302 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = view_collection_get_previous (_tmp14_, _tmp15_); -#line 2302 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (previous); -#line 2302 "/home/jens/Source/shotwell/src/PhotoPage.vala" - previous = _tmp16_; -#line 2302 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp14_); -#line 2303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = previous; -#line 2303 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp17_ == NULL) { -#line 2304 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 14833 "PhotoPage.c" - } -#line 2306 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = previous; -#line 2306 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = data_view_get_source (_tmp18_); -#line 2306 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_PHOTO) ? ((Photo*) _tmp19_) : NULL; -#line 2306 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp20_ == NULL) { -#line 2306 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp19_); -#line 14845 "PhotoPage.c" - } -#line 2306 "/home/jens/Source/shotwell/src/PhotoPage.vala" - previous_photo = _tmp20_; -#line 2307 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = previous_photo; -#line 2307 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp21_ == NULL) { -#line 2308 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (previous_photo); -#line 2308 "/home/jens/Source/shotwell/src/PhotoPage.vala" - continue; -#line 14857 "PhotoPage.c" - } -#line 2310 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = previous_photo; -#line 2310 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = current_photo; -#line 2310 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp22_ == _tmp23_) { -#line 2311 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (previous_photo); -#line 2311 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 14869 "PhotoPage.c" - } -#line 2313 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = previous_photo; -#line 2313 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_replace_photo (self, _tmp24_); -#line 2315 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (previous_photo); -#line 2315 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 14879 "PhotoPage.c" - } - } -#line 2286 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (previous); -#line 2286 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (current); -#line 2286 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (current_photo); -#line 14888 "PhotoPage.c" -} - - -gboolean -editing_host_page_has_current_tool (EditingHostPage* self) -{ - gboolean result = FALSE; - EditingToolsEditingTool* _tmp0_; -#line 2319 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (self), FALSE); -#line 2320 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->current_tool; -#line 2320 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp0_ != NULL; -#line 2320 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 14905 "PhotoPage.c" -} - - -void -editing_host_page_unset_view_collection (EditingHostPage* self) -{ -#line 2323 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_EDITING_HOST_PAGE (self)); -#line 2324 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (self->priv->parent_view); -#line 2324 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->parent_view = NULL; -#line 14918 "PhotoPage.c" -} - - -static EditingHostPageEditingHostCanvas* -editing_host_page_editing_host_canvas_construct (GType object_type, - EditingHostPage* host_page) -{ - EditingHostPageEditingHostCanvas* self = NULL; - GtkWindow* _tmp0_; - GtkWindow* _tmp1_; - GtkDrawingArea* _tmp2_; - GdkWindow* _tmp3_; - Photo* _tmp4_; - Photo* _tmp5_; - cairo_t* _tmp6_; - cairo_t* _tmp7_; - Dimensions _tmp8_ = {0}; - GdkPixbuf* _tmp9_; - GdkPixbuf* _tmp10_; - GdkRectangle _tmp11_ = {0}; - EditingHostPage* _tmp12_; -#line 377 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_EDITING_HOST_PAGE (host_page), NULL); -#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (host_page, TYPE_PAGE, Page)); -#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (host_page, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)->canvas; -#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = editing_host_page_get_photo (host_page); -#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _tmp4_; -#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = single_photo_page_get_cairo_context (G_TYPE_CHECK_INSTANCE_CAST (host_page, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_; -#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_surface_dim (G_TYPE_CHECK_INSTANCE_CAST (host_page, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp8_); -#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = single_photo_page_get_scaled_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (host_page, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = _tmp9_; -#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_scaled_pixbuf_position (G_TYPE_CHECK_INSTANCE_CAST (host_page, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp11_); -#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = (EditingHostPageEditingHostCanvas*) editing_tools_photo_canvas_construct (object_type, _tmp1_, _tmp3_, _tmp5_, _tmp7_, &_tmp8_, _tmp10_, &_tmp11_); -#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp10_); -#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _cairo_destroy0 (_tmp7_); -#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp5_); -#line 378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 382 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _g_object_ref0 (host_page); -#line 382 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->host_page); -#line 382 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->host_page = _tmp12_; -#line 377 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return self; -#line 14984 "PhotoPage.c" -} - - -static EditingHostPageEditingHostCanvas* -editing_host_page_editing_host_canvas_new (EditingHostPage* host_page) -{ -#line 377 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return editing_host_page_editing_host_canvas_construct (EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS, host_page); -#line 14993 "PhotoPage.c" -} - - -static void -editing_host_page_editing_host_canvas_real_repaint (EditingToolsPhotoCanvas* base) -{ - EditingHostPageEditingHostCanvas * self; - EditingHostPage* _tmp0_; -#line 385 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS, EditingHostPageEditingHostCanvas); -#line 386 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->host_page; -#line 386 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); -#line 15008 "PhotoPage.c" -} - - -static void -editing_host_page_editing_host_canvas_class_init (EditingHostPageEditingHostCanvasClass * klass) -{ -#line 374 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_editing_host_canvas_parent_class = g_type_class_peek_parent (klass); -#line 374 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingToolsPhotoCanvasClass *) klass)->finalize = editing_host_page_editing_host_canvas_finalize; -#line 374 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_type_class_add_private (klass, sizeof (EditingHostPageEditingHostCanvasPrivate)); -#line 374 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingToolsPhotoCanvasClass *) klass)->repaint = (void (*) (EditingToolsPhotoCanvas *)) editing_host_page_editing_host_canvas_real_repaint; -#line 15023 "PhotoPage.c" -} - - -static void -editing_host_page_editing_host_canvas_instance_init (EditingHostPageEditingHostCanvas * self) -{ -#line 374 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv = EDITING_HOST_PAGE_EDITING_HOST_CANVAS_GET_PRIVATE (self); -#line 15032 "PhotoPage.c" -} - - -static void -editing_host_page_editing_host_canvas_finalize (EditingToolsPhotoCanvas * obj) -{ - EditingHostPageEditingHostCanvas * self; -#line 374 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_HOST_PAGE_TYPE_EDITING_HOST_CANVAS, EditingHostPageEditingHostCanvas); -#line 375 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->host_page); -#line 374 "/home/jens/Source/shotwell/src/PhotoPage.vala" - EDITING_TOOLS_PHOTO_CANVAS_CLASS (editing_host_page_editing_host_canvas_parent_class)->finalize (obj); -#line 15046 "PhotoPage.c" -} - - -static GType -editing_host_page_editing_host_canvas_get_type (void) -{ - static volatile gsize editing_host_page_editing_host_canvas_type_id__volatile = 0; - if (g_once_init_enter (&editing_host_page_editing_host_canvas_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditingHostPageEditingHostCanvasClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_host_page_editing_host_canvas_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingHostPageEditingHostCanvas), 0, (GInstanceInitFunc) editing_host_page_editing_host_canvas_instance_init, NULL }; - GType editing_host_page_editing_host_canvas_type_id; - editing_host_page_editing_host_canvas_type_id = g_type_register_static (EDITING_TOOLS_TYPE_PHOTO_CANVAS, "EditingHostPageEditingHostCanvas", &g_define_type_info, 0); - g_once_init_leave (&editing_host_page_editing_host_canvas_type_id__volatile, editing_host_page_editing_host_canvas_type_id); - } - return editing_host_page_editing_host_canvas_type_id__volatile; -} - - -static void -editing_host_page_class_init (EditingHostPageClass * klass) -{ -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_parent_class = g_type_class_peek_parent (klass); -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_type_class_add_private (klass, sizeof (EditingHostPagePrivate)); -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->on_zoom_slider_key_press = (gboolean (*) (EditingHostPage *, GdkEventKey*)) editing_host_page_real_on_zoom_slider_key_press; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->on_increase_size = (void (*) (EditingHostPage *)) editing_host_page_real_on_increase_size; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->on_decrease_size = (void (*) (EditingHostPage *)) editing_host_page_real_on_decrease_size; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((SinglePhotoPageClass *) klass)->save_zoom_state = (void (*) (SinglePhotoPage *)) editing_host_page_real_save_zoom_state; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((SinglePhotoPageClass *) klass)->get_zoom_buffer = (ZoomBuffer* (*) (SinglePhotoPage *)) editing_host_page_real_get_zoom_buffer; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_mousewheel_up = (gboolean (*) (Page *, GdkEventScroll*)) editing_host_page_real_on_mousewheel_up; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_mousewheel_down = (gboolean (*) (Page *, GdkEventScroll*)) editing_host_page_real_on_mousewheel_down; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((SinglePhotoPageClass *) klass)->restore_zoom_state = (void (*) (SinglePhotoPage *)) editing_host_page_real_restore_zoom_state; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((SinglePhotoPageClass *) klass)->is_zoom_supported = (gboolean (*) (SinglePhotoPage *)) editing_host_page_real_is_zoom_supported; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->set_container = (void (*) (Page *, GtkWindow*)) editing_host_page_real_set_container; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->photo_changing = (void (*) (EditingHostPage *, Photo*)) editing_host_page_real_photo_changing; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((GtkWidgetClass *) klass)->realize = (void (*) (GtkWidget *)) editing_host_page_real_realize; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->switched_to = (void (*) (Page *)) editing_host_page_real_switched_to; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->switching_from = (void (*) (Page *)) editing_host_page_real_switching_from; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->switching_to_fullscreen = (void (*) (Page *, FullscreenWindow*)) editing_host_page_real_switching_to_fullscreen; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->returning_from_fullscreen = (void (*) (Page *, FullscreenWindow*)) editing_host_page_real_returning_from_fullscreen; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->create_photo_view = (DataView* (*) (EditingHostPage *, DataSource*)) editing_host_page_real_create_photo_view; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->update_ui = (void (*) (EditingHostPage *, gboolean)) editing_host_page_real_update_ui; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->notify_photo_backing_missing = (void (*) (EditingHostPage *, Photo*, gboolean)) editing_host_page_real_notify_photo_backing_missing; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->confirm_replace_photo = (gboolean (*) (EditingHostPage *, Photo*, Photo*)) editing_host_page_real_confirm_replace_photo; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((SinglePhotoPageClass *) klass)->cancel_zoom = (void (*) (SinglePhotoPage *)) editing_host_page_real_cancel_zoom; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_resize = (void (*) (Page *, GdkRectangle*)) editing_host_page_real_on_resize; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_resize_finished = (void (*) (Page *, GdkRectangle*)) editing_host_page_real_on_resize_finished; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) editing_host_page_real_update_actions; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_shift_pressed = (gboolean (*) (Page *, GdkEventKey*)) editing_host_page_real_on_shift_pressed; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_shift_released = (gboolean (*) (Page *, GdkEventKey*)) editing_host_page_real_on_shift_released; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_alt_pressed = (gboolean (*) (Page *, GdkEventKey*)) editing_host_page_real_on_alt_pressed; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_alt_released = (gboolean (*) (Page *, GdkEventKey*)) editing_host_page_real_on_alt_released; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->on_double_click = (gboolean (*) (EditingHostPage *, GdkEventButton*)) editing_host_page_real_on_double_click; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_left_click = (gboolean (*) (Page *, GdkEventButton*)) editing_host_page_real_on_left_click; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_left_released = (gboolean (*) (Page *, GdkEventButton*)) editing_host_page_real_on_left_released; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_right_click = (gboolean (*) (Page *, GdkEventButton*)) editing_host_page_real_on_right_click; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_motion = (gboolean (*) (Page *, GdkEventMotion*, gint, gint, GdkModifierType)) editing_host_page_real_on_motion; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_leave_notify_event = (gboolean (*) (Page *)) editing_host_page_real_on_leave_notify_event; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_move = (void (*) (Page *, GdkRectangle*)) editing_host_page_real_on_move; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_move_finished = (void (*) (Page *, GdkRectangle*)) editing_host_page_real_on_move_finished; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) editing_host_page_real_key_press_event; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((SinglePhotoPageClass *) klass)->new_surface = (void (*) (SinglePhotoPage *, cairo_t*, Dimensions*)) editing_host_page_real_new_surface; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((SinglePhotoPageClass *) klass)->updated_pixbuf = (void (*) (SinglePhotoPage *, GdkPixbuf*, SinglePhotoPageUpdateReason, Dimensions*)) editing_host_page_real_updated_pixbuf; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->get_bottom_left_trinket = (GdkPixbuf* (*) (EditingHostPage *, gint)) editing_host_page_real_get_bottom_left_trinket; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->get_top_left_trinket = (GdkPixbuf* (*) (EditingHostPage *, gint)) editing_host_page_real_get_top_left_trinket; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->get_top_right_trinket = (GdkPixbuf* (*) (EditingHostPage *, gint)) editing_host_page_real_get_top_right_trinket; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->get_bottom_right_trinket = (GdkPixbuf* (*) (EditingHostPage *, gint)) editing_host_page_real_get_bottom_right_trinket; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((SinglePhotoPageClass *) klass)->paint = (void (*) (SinglePhotoPage *, cairo_t*, Dimensions*)) editing_host_page_real_paint; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_ctrl_pressed = (gboolean (*) (Page *, GdkEventKey*)) editing_host_page_real_on_ctrl_pressed; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_ctrl_released = (gboolean (*) (Page *, GdkEventKey*)) editing_host_page_real_on_ctrl_released; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((SinglePhotoPageClass *) klass)->on_next_photo = (void (*) (SinglePhotoPage *)) editing_host_page_real_on_next_photo; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((SinglePhotoPageClass *) klass)->on_previous_photo = (void (*) (SinglePhotoPage *)) editing_host_page_real_on_previous_photo; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - G_OBJECT_CLASS (klass)->finalize = editing_host_page_finalize; -#line 15169 "PhotoPage.c" -} - - -static void -editing_host_page_instance_init (EditingHostPage * self) -{ - GtkToolButton* _tmp0_; - GtkToolButton* _tmp1_; - GeeHashMap* _tmp2_; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv = EDITING_HOST_PAGE_GET_PRIVATE (self); -#line 391 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->parent_view = NULL; -#line 392 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->swapped = NULL; -#line 393 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->pixbuf_dirty = TRUE; -#line 394 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->rotate_button = NULL; -#line 395 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->crop_button = NULL; -#line 396 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->redeye_button = NULL; -#line 397 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->adjust_button = NULL; -#line 398 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->straighten_button = NULL; -#line 399 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->enhance_button = NULL; -#line 400 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->zoom_slider = NULL; -#line 401 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = (GtkToolButton*) gtk_tool_button_new (NULL, RESOURCES_PREVIOUS_LABEL); -#line 401 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp0_); -#line 401 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->prev_button = _tmp0_; -#line 402 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = (GtkToolButton*) gtk_tool_button_new (NULL, RESOURCES_NEXT_LABEL); -#line 402 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp1_); -#line 402 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->next_button = _tmp1_; -#line 403 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->current_tool = NULL; -#line 404 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->current_editing_toggle = NULL; -#line 405 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->cancel_editing_pixbuf = NULL; -#line 406 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->photo_missing = FALSE; -#line 407 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->cache = NULL; -#line 408 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->master_cache = NULL; -#line 409 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->dnd_handler = NULL; -#line 410 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->enable_interactive_zoom_refresh = FALSE; -#line 412 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->is_pan_in_progress = FALSE; -#line 413 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->saved_slider_val = 0.0; -#line 414 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->zoom_buffer = NULL; -#line 415 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_INT, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 415 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->last_locations = _tmp2_; -#line 15239 "PhotoPage.c" -} - - -static void -editing_host_page_finalize (GObject * obj) -{ - EditingHostPage * self; - SourceCollection* _tmp0_; - guint _tmp1_; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; - guint _tmp4_; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; - guint _tmp7_; -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EDITING_HOST_PAGE, EditingHostPage); -#line 551 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->sources; -#line 551 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE); -#line 551 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _editing_host_page_on_photos_altered_data_collection_items_altered, self); -#line 553 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 553 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_; -#line 553 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp4_, NULL, FALSE); -#line 553 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _editing_host_page_on_view_contents_ordering_altered_data_collection_contents_altered, self); -#line 553 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp3_); -#line 554 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 554 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 554 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("ordering-changed", TYPE_DATA_COLLECTION, &_tmp7_, NULL, FALSE); -#line 554 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _editing_host_page_on_view_contents_ordering_altered_data_collection_ordering_changed, self); -#line 554 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp6_); -#line 390 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (self->priv->sources); -#line 391 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (self->priv->parent_view); -#line 392 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->swapped); -#line 394 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->rotate_button); -#line 395 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->crop_button); -#line 396 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->redeye_button); -#line 397 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->adjust_button); -#line 398 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->straighten_button); -#line 399 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->enhance_button); -#line 400 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->zoom_slider); -#line 401 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->prev_button); -#line 402 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->next_button); -#line 403 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _editing_tools_editing_tool_unref0 (self->priv->current_tool); -#line 404 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->current_editing_toggle); -#line 405 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->cancel_editing_pixbuf); -#line 407 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->cache); -#line 408 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->master_cache); -#line 409 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _drag_and_drop_handler_unref0 (self->priv->dnd_handler); -#line 414 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->zoom_buffer); -#line 415 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->last_locations); -#line 364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - G_OBJECT_CLASS (editing_host_page_parent_class)->finalize (obj); -#line 15325 "PhotoPage.c" -} - - -GType -editing_host_page_get_type (void) -{ - static volatile gsize editing_host_page_type_id__volatile = 0; - if (g_once_init_enter (&editing_host_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditingHostPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_host_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingHostPage), 0, (GInstanceInitFunc) editing_host_page_instance_init, NULL }; - GType editing_host_page_type_id; - editing_host_page_type_id = g_type_register_static (TYPE_SINGLE_PHOTO_PAGE, "EditingHostPage", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&editing_host_page_type_id__volatile, editing_host_page_type_id); - } - return editing_host_page_type_id__volatile; -} - - -static void -_library_photo_page_on_photo_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self) -{ -#line 2364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_photo_destroyed ((LibraryPhotoPage*) self, source); -#line 15350 "PhotoPage.c" -} - - -static void -_library_photo_page_on_metadata_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 2365 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_metadata_altered ((LibraryPhotoPage*) self, items); -#line 15361 "PhotoPage.c" -} - - -static void -_library_photo_page_on_external_app_changed_configuration_facade_external_app_changed (ConfigurationFacade* _sender, - gpointer self) -{ -#line 2366 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_external_app_changed ((LibraryPhotoPage*) self); -#line 15371 "PhotoPage.c" -} - - -static void -_library_photo_page_on_export_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_export ((LibraryPhotoPage*) self); -#line 15382 "PhotoPage.c" -} - - -static void -_library_photo_page_on_print_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_print ((LibraryPhotoPage*) self); -#line 15393 "PhotoPage.c" -} - - -static void -_library_photo_page_on_publish_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_publish ((LibraryPhotoPage*) self); -#line 15404 "PhotoPage.c" -} - - -static void -_library_photo_page_on_remove_from_library_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_remove_from_library ((LibraryPhotoPage*) self); -#line 15415 "PhotoPage.c" -} - - -static void -_library_photo_page_on_move_to_trash_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_move_to_trash ((LibraryPhotoPage*) self); -#line 15426 "PhotoPage.c" -} - - -static void -_single_photo_page_on_previous_photo_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_on_previous_photo ((SinglePhotoPage*) self); -#line 15437 "PhotoPage.c" -} - - -static void -_single_photo_page_on_next_photo_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_on_next_photo ((SinglePhotoPage*) self); -#line 15448 "PhotoPage.c" -} - - -static void -_editing_host_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_rotate_clockwise ((EditingHostPage*) self); -#line 15459 "PhotoPage.c" -} - - -static void -_editing_host_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_rotate_counterclockwise ((EditingHostPage*) self); -#line 15470 "PhotoPage.c" -} - - -static void -_editing_host_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_flip_horizontally ((EditingHostPage*) self); -#line 15481 "PhotoPage.c" -} - - -static void -_editing_host_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_flip_vertically ((EditingHostPage*) self); -#line 15492 "PhotoPage.c" -} - - -static void -_editing_host_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_enhance ((EditingHostPage*) self); -#line 15503 "PhotoPage.c" -} - - -static void -_editing_host_page_on_copy_adjustments_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_copy_adjustments ((EditingHostPage*) self); -#line 15514 "PhotoPage.c" -} - - -static void -_editing_host_page_on_paste_adjustments_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_paste_adjustments ((EditingHostPage*) self); -#line 15525 "PhotoPage.c" -} - - -static void -_editing_host_page_toggle_crop_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_toggle_crop ((EditingHostPage*) self); -#line 15536 "PhotoPage.c" -} - - -static void -_editing_host_page_toggle_straighten_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_toggle_straighten ((EditingHostPage*) self); -#line 15547 "PhotoPage.c" -} - - -static void -_editing_host_page_toggle_redeye_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_toggle_redeye ((EditingHostPage*) self); -#line 15558 "PhotoPage.c" -} - - -static void -_editing_host_page_toggle_adjust_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_toggle_adjust ((EditingHostPage*) self); -#line 15569 "PhotoPage.c" -} - - -static void -_editing_host_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_revert ((EditingHostPage*) self); -#line 15580 "PhotoPage.c" -} - - -static void -_editing_host_page_on_edit_title_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_edit_title ((EditingHostPage*) self); -#line 15591 "PhotoPage.c" -} - - -static void -_editing_host_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_edit_comment ((EditingHostPage*) self); -#line 15602 "PhotoPage.c" -} - - -static void -_editing_host_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_adjust_date_time ((EditingHostPage*) self); -#line 15613 "PhotoPage.c" -} - - -static void -_library_photo_page_on_external_edit_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_external_edit ((LibraryPhotoPage*) self); -#line 15624 "PhotoPage.c" -} - - -static void -_library_photo_page_on_external_edit_raw_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_external_edit_raw ((LibraryPhotoPage*) self); -#line 15635 "PhotoPage.c" -} - - -static void -_library_photo_page_on_send_to_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_send_to ((LibraryPhotoPage*) self); -#line 15646 "PhotoPage.c" -} - - -static void -_editing_host_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_set_background ((EditingHostPage*) self); -#line 15657 "PhotoPage.c" -} - - -static void -_library_photo_page_on_flag_unflag_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_flag_unflag ((LibraryPhotoPage*) self); -#line 15668 "PhotoPage.c" -} - - -static void -_library_photo_page_on_increase_rating_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_increase_rating ((LibraryPhotoPage*) self); -#line 15679 "PhotoPage.c" -} - - -static void -_library_photo_page_on_decrease_rating_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_decrease_rating ((LibraryPhotoPage*) self); -#line 15690 "PhotoPage.c" -} - - -static void -_library_photo_page_on_rate_rejected_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_rate_rejected ((LibraryPhotoPage*) self); -#line 15701 "PhotoPage.c" -} - - -static void -_library_photo_page_on_rate_unrated_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_rate_unrated ((LibraryPhotoPage*) self); -#line 15712 "PhotoPage.c" -} - - -static void -_library_photo_page_on_rate_one_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_rate_one ((LibraryPhotoPage*) self); -#line 15723 "PhotoPage.c" -} - - -static void -_library_photo_page_on_rate_two_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_rate_two ((LibraryPhotoPage*) self); -#line 15734 "PhotoPage.c" -} - - -static void -_library_photo_page_on_rate_three_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_rate_three ((LibraryPhotoPage*) self); -#line 15745 "PhotoPage.c" -} - - -static void -_library_photo_page_on_rate_four_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_rate_four ((LibraryPhotoPage*) self); -#line 15756 "PhotoPage.c" -} - - -static void -_library_photo_page_on_rate_five_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_rate_five ((LibraryPhotoPage*) self); -#line 15767 "PhotoPage.c" -} - - -static void -_editing_host_page_on_increase_size_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_increase_size ((EditingHostPage*) self); -#line 15778 "PhotoPage.c" -} - - -static void -_editing_host_page_on_decrease_size_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_on_decrease_size ((EditingHostPage*) self); -#line 15789 "PhotoPage.c" -} - - -static void -_editing_host_page_snap_zoom_to_min_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_snap_zoom_to_min ((EditingHostPage*) self); -#line 15800 "PhotoPage.c" -} - - -static void -_editing_host_page_snap_zoom_to_isomorphic_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_snap_zoom_to_isomorphic ((EditingHostPage*) self); -#line 15811 "PhotoPage.c" -} - - -static void -_editing_host_page_snap_zoom_to_max_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_snap_zoom_to_max ((EditingHostPage*) self); -#line 15822 "PhotoPage.c" -} - - -static void -_library_photo_page_on_add_tags_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_add_tags ((LibraryPhotoPage*) self); -#line 15833 "PhotoPage.c" -} - - -static void -_library_photo_page_on_modify_tags_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_modify_tags ((LibraryPhotoPage*) self); -#line 15844 "PhotoPage.c" -} - - -static void -_library_photo_page_on_slideshow_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_slideshow ((LibraryPhotoPage*) self); -#line 15855 "PhotoPage.c" -} - - -static void -_page_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_on_action_toggle ((Page*) self, action, parameter); -#line 15866 "PhotoPage.c" -} - - -static void -_library_photo_page_on_display_ratings_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 2388 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_display_ratings ((LibraryPhotoPage*) self, action, value); -#line 15877 "PhotoPage.c" -} - - -static void -_library_photo_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 2348 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_photos_altered ((LibraryPhotoPage*) self); -#line 15888 "PhotoPage.c" -} - - -static void -_library_photo_page_on_photo_unlinking_source_collection_items_unlinking (SourceCollection* _sender, - GeeCollection* unlinking, - gpointer self) -{ -#line 2359 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_photo_unlinking ((LibraryPhotoPage*) self, unlinking); -#line 15899 "PhotoPage.c" -} - - -static void -_library_photo_page_on_photo_relinked_source_collection_items_relinked (SourceCollection* _sender, - GeeCollection* relinked, - gpointer self) -{ -#line 2360 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_photo_relinked ((LibraryPhotoPage*) self, relinked); -#line 15910 "PhotoPage.c" -} - - -LibraryPhotoPage* -library_photo_page_construct (GType object_type) -{ - LibraryPhotoPage * self = NULL; - LibraryPhotoSourceCollection* _tmp0_; - ViewCollection* _tmp1_; - ViewCollection* _tmp2_; - LibraryPhotoSourceCollection* _tmp3_; - LibraryPhotoSourceCollection* _tmp4_; - ConfigFacade* _tmp5_; - ConfigFacade* _tmp6_; - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; - LibraryPhotoPageLibraryPhotoPageViewFilter* _tmp9_; - LibraryPhotoSourceCollection* _tmp10_; - LibraryPhotoSourceCollection* _tmp11_; -#line 2345 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = library_photo_global; -#line 2345 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = (LibraryPhotoPage*) editing_host_page_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), "Photo"); -#line 2348 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2348 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 2348 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _library_photo_page_on_photos_altered_data_collection_items_altered, self, 0); -#line 2348 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp2_); -#line 2351 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = library_photo_global; -#line 2351 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _library_photo_page_on_photo_destroyed_source_collection_item_destroyed, self, 0); -#line 2352 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = library_photo_global; -#line 2352 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _library_photo_page_on_metadata_altered_data_collection_items_altered, self, 0); -#line 2355 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = config_facade_get_instance (); -#line 2355 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 2355 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "external-app-changed", (GCallback) _library_photo_page_on_external_app_changed_configuration_facade_external_app_changed, self, 0); -#line 2355 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp6_); -#line 2358 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2358 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_; -#line 2358 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = self->priv->filter; -#line 2358 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view_collection_install_view_filter (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_VIEW_FILTER, ViewFilter)); -#line 2358 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp8_); -#line 2359 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = library_photo_global; -#line 2359 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-unlinking", (GCallback) _library_photo_page_on_photo_unlinking_source_collection_items_unlinking, self, 0); -#line 2360 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = library_photo_global; -#line 2360 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-relinked", (GCallback) _library_photo_page_on_photo_relinked_source_collection_items_relinked, self, 0); -#line 2344 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return self; -#line 15978 "PhotoPage.c" -} - - -LibraryPhotoPage* -library_photo_page_new (void) -{ -#line 2344 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return library_photo_page_construct (TYPE_LIBRARY_PHOTO_PAGE); -#line 15987 "PhotoPage.c" -} - - -gboolean -library_photo_page_not_trashed_view_filter (LibraryPhotoPage* self, - DataView* view) -{ - gboolean result = FALSE; - DataSource* _tmp0_; - MediaSource* _tmp1_; - gboolean _tmp2_; -#line 2369 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO_PAGE (self), FALSE); -#line 2369 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_DATA_VIEW (view), FALSE); -#line 2370 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = data_view_get_source (view); -#line 2370 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource); -#line 2370 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = !media_source_is_trashed (_tmp1_); -#line 2370 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 2370 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp2_; -#line 2370 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 16015 "PhotoPage.c" -} - - -static void -library_photo_page_on_photo_unlinking (LibraryPhotoPage* self, - GeeCollection* unlinking) -{ - LibraryPhotoPageLibraryPhotoPageViewFilter* _tmp0_; -#line 2373 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2373 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (GEE_IS_COLLECTION (unlinking)); -#line 2374 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->filter; -#line 2374 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIEW_FILTER, ViewFilter), "refresh"); -#line 16032 "PhotoPage.c" -} - - -static void -library_photo_page_on_photo_relinked (LibraryPhotoPage* self, - GeeCollection* relinked) -{ - LibraryPhotoPageLibraryPhotoPageViewFilter* _tmp0_; -#line 2377 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2377 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (GEE_IS_COLLECTION (relinked)); -#line 2378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->filter; -#line 2378 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIEW_FILTER, ViewFilter), "refresh"); -#line 16049 "PhotoPage.c" -} - - -static void -library_photo_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames) -{ - LibraryPhotoPage * self; -#line 2381 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2381 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 2382 "/home/jens/Source/shotwell/src/PhotoPage.vala" - PAGE_CLASS (library_photo_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), ui_filenames); -#line 2384 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "photo_context.ui"); -#line 2385 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "photo.ui"); -#line 16068 "PhotoPage.c" -} - - -static GVariant* -_variant_new16 (gboolean value) -{ -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 16077 "PhotoPage.c" -} - - -static GVariant* -_variant_new17 (const gchar* value) -{ -#line 2446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 16086 "PhotoPage.c" -} - - -static void -_library_photo_page_on_raw_developer_changed_g_simple_action_change_state (GSimpleAction* _sender, - GVariant* value, - gpointer self) -{ -#line 2448 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_raw_developer_changed ((LibraryPhotoPage*) self, _sender, value); -#line 16097 "PhotoPage.c" -} - - -static void -library_photo_page_real_add_actions (Page* base, - GActionMap* map) -{ - LibraryPhotoPage * self; - GAction* _tmp0_; - GSimpleAction* _tmp1_; - GSimpleAction* _tmp2_; - ConfigFacade* _tmp3_; - ConfigFacade* _tmp4_; - GVariant* _tmp5_; - RawDeveloper d = 0; - ConfigFacade* _tmp6_; - ConfigFacade* _tmp7_; - RawDeveloper _tmp8_; - const gchar* _tmp9_ = NULL; - RawDeveloper _tmp10_; - GSimpleAction* action = NULL; - const GVariantType* _tmp11_; - GVariant* _tmp12_; - GSimpleAction* _tmp13_; - GSimpleAction* _tmp14_; -#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 2441 "/home/jens/Source/shotwell/src/PhotoPage.vala" - PAGE_CLASS (library_photo_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), map); -#line 2443 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_action_map_add_action_entries (map, LIBRARY_PHOTO_PAGE_entries, G_N_ELEMENTS (LIBRARY_PHOTO_PAGE_entries), self); -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewRatings"); -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL; -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp1_ == NULL) { -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp0_); -#line 16139 "PhotoPage.c" - } -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = config_facade_get_instance (); -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _variant_new16 (configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_emit_by_name (_tmp2_, "change-state", _tmp5_); -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_variant_unref0 (_tmp5_); -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp4_); -#line 2444 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 2445 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = config_facade_get_instance (); -#line 2445 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_; -#line 2445 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = configuration_facade_get_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 2445 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp7_); -#line 2445 "/home/jens/Source/shotwell/src/PhotoPage.vala" - d = _tmp8_; -#line 2447 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = d; -#line 2447 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp10_ == RAW_DEVELOPER_SHOTWELL) { -#line 2447 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = "Shotwell"; -#line 16173 "PhotoPage.c" - } else { -#line 2447 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = "Camera"; -#line 16177 "PhotoPage.c" - } -#line 2446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = G_VARIANT_TYPE_STRING; -#line 2446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _variant_new17 (_tmp9_); -#line 2446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = g_simple_action_new_stateful ("RawDeveloper", _tmp11_, _tmp12_); -#line 2446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = _tmp13_; -#line 2446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_variant_unref0 (_tmp12_); -#line 2446 "/home/jens/Source/shotwell/src/PhotoPage.vala" - action = _tmp14_; -#line 2448 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (action, "change-state", (GCallback) _library_photo_page_on_raw_developer_changed_g_simple_action_change_state, self, 0); -#line 2449 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_simple_action_set_enabled (action, TRUE); -#line 2450 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_action_map_add_action (map, G_TYPE_CHECK_INSTANCE_CAST (action, g_action_get_type (), GAction)); -#line 2440 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (action); -#line 16199 "PhotoPage.c" -} - - -static void -library_photo_page_real_remove_actions (Page* base, - GActionMap* map) -{ - LibraryPhotoPage * self; -#line 2453 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2453 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 2454 "/home/jens/Source/shotwell/src/PhotoPage.vala" - PAGE_CLASS (library_photo_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), map); -#line 16214 "PhotoPage.c" - { - GActionEntry* entry_collection = NULL; - gint entry_collection_length1 = 0; - gint _entry_collection_size_ = 0; - gint entry_it = 0; -#line 2455 "/home/jens/Source/shotwell/src/PhotoPage.vala" - entry_collection = LIBRARY_PHOTO_PAGE_entries; -#line 2455 "/home/jens/Source/shotwell/src/PhotoPage.vala" - entry_collection_length1 = G_N_ELEMENTS (LIBRARY_PHOTO_PAGE_entries); -#line 2455 "/home/jens/Source/shotwell/src/PhotoPage.vala" - for (entry_it = 0; entry_it < G_N_ELEMENTS (LIBRARY_PHOTO_PAGE_entries); entry_it = entry_it + 1) { -#line 16226 "PhotoPage.c" - GActionEntry entry = {0}; -#line 2455 "/home/jens/Source/shotwell/src/PhotoPage.vala" - entry = entry_collection[entry_it]; -#line 16230 "PhotoPage.c" - { - GActionEntry _tmp0_; - const gchar* _tmp1_; -#line 2456 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = entry; -#line 2456 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_.name; -#line 2456 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_action_map_remove_action (map, _tmp1_); -#line 16240 "PhotoPage.c" - } - } - } -} - - -static gpointer -_injection_group_ref0 (gpointer self) -{ -#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return self ? injection_group_ref (self) : NULL; -#line 16252 "PhotoPage.c" -} - - -static void -_vala_array_add85 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value) -{ -#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if ((*length) == (*size)) { -#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala" - *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 16268 "PhotoPage.c" - } -#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala" - (*array)[(*length)++] = value; -#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala" - (*array)[*length] = NULL; -#line 16274 "PhotoPage.c" -} - - -static void -_vala_array_add86 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value) -{ -#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if ((*length) == (*size)) { -#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala" - *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 16290 "PhotoPage.c" - } -#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala" - (*array)[(*length)++] = value; -#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala" - (*array)[*length] = NULL; -#line 16296 "PhotoPage.c" -} - - -static void -_vala_array_add87 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value) -{ -#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if ((*length) == (*size)) { -#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala" - *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 16312 "PhotoPage.c" - } -#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala" - (*array)[(*length)++] = value; -#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala" - (*array)[*length] = NULL; -#line 16318 "PhotoPage.c" -} - - -static InjectionGroup** -library_photo_page_real_init_collect_injection_groups (Page* base, - int* result_length1) -{ - LibraryPhotoPage * self; - InjectionGroup** result = NULL; - InjectionGroup** groups = NULL; - gint _tmp0_; - InjectionGroup** _tmp1_; - gint groups_length1; - gint _groups_size_; - InjectionGroup* print_group = NULL; - InjectionGroup* _tmp2_; - InjectionGroup** _tmp3_; - gint _tmp3__length1; - InjectionGroup* _tmp4_; - InjectionGroup* publish_group = NULL; - InjectionGroup* _tmp5_; - InjectionGroup** _tmp6_; - gint _tmp6__length1; - InjectionGroup* _tmp7_; - InjectionGroup* bg_group = NULL; - InjectionGroup* _tmp8_; - InjectionGroup** _tmp9_; - gint _tmp9__length1; - InjectionGroup* _tmp10_; - InjectionGroup** _tmp11_; - gint _tmp11__length1; -#line 2460 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2461 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = PAGE_CLASS (library_photo_page_parent_class)->init_collect_injection_groups (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), &_tmp0_); -#line 2461 "/home/jens/Source/shotwell/src/PhotoPage.vala" - groups = _tmp1_; -#line 2461 "/home/jens/Source/shotwell/src/PhotoPage.vala" - groups_length1 = _tmp0_; -#line 2461 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _groups_size_ = groups_length1; -#line 2463 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = injection_group_new ("PrintPlaceholder"); -#line 2463 "/home/jens/Source/shotwell/src/PhotoPage.vala" - print_group = _tmp2_; -#line 2464 "/home/jens/Source/shotwell/src/PhotoPage.vala" - injection_group_add_menu_item (print_group, _ ("_Print"), "Print", "p"); -#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = groups; -#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3__length1 = groups_length1; -#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _injection_group_ref0 (print_group); -#line 2466 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _vala_array_add85 (&groups, &groups_length1, &_groups_size_, _tmp4_); -#line 2468 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = injection_group_new ("PublishPlaceholder"); -#line 2468 "/home/jens/Source/shotwell/src/PhotoPage.vala" - publish_group = _tmp5_; -#line 2469 "/home/jens/Source/shotwell/src/PhotoPage.vala" - injection_group_add_menu_item (publish_group, _ ("_Publish"), "Publish", "p"); -#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = groups; -#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6__length1 = groups_length1; -#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _injection_group_ref0 (publish_group); -#line 2471 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _vala_array_add86 (&groups, &groups_length1, &_groups_size_, _tmp7_); -#line 2473 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = injection_group_new ("SetBackgroundPlaceholder"); -#line 2473 "/home/jens/Source/shotwell/src/PhotoPage.vala" - bg_group = _tmp8_; -#line 2474 "/home/jens/Source/shotwell/src/PhotoPage.vala" - injection_group_add_menu_item (bg_group, _ ("Set as _Desktop Background"), "SetBackground", "b"); -#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = groups; -#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9__length1 = groups_length1; -#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = _injection_group_ref0 (bg_group); -#line 2476 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _vala_array_add87 (&groups, &groups_length1, &_groups_size_, _tmp10_); -#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = groups; -#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11__length1 = groups_length1; -#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (result_length1) { -#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - *result_length1 = _tmp11__length1; -#line 16410 "PhotoPage.c" - } -#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp11_; -#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _injection_group_unref0 (bg_group); -#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _injection_group_unref0 (publish_group); -#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _injection_group_unref0 (print_group); -#line 2478 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 16422 "PhotoPage.c" -} - - -static void -library_photo_page_on_display_ratings (LibraryPhotoPage* self, - GSimpleAction* action, - GVariant* value) -{ - gboolean display = FALSE; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 2481 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2481 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 2482 "/home/jens/Source/shotwell/src/PhotoPage.vala" - display = g_variant_get_boolean (value); -#line 2484 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_set_display_ratings (self, display); -#line 2486 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 2486 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 2486 "/home/jens/Source/shotwell/src/PhotoPage.vala" - configuration_facade_set_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); -#line 2486 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 2487 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_simple_action_set_state (action, value); -#line 16452 "PhotoPage.c" -} - - -static void -library_photo_page_set_display_ratings (LibraryPhotoPage* self, - gboolean display) -{ - GSimpleAction* action = NULL; - GAction* _tmp0_; - GSimpleAction* _tmp1_; - GSimpleAction* _tmp2_; -#line 2491 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2492 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewRatings"); -#line 2492 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL; -#line 2492 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp1_ == NULL) { -#line 2492 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp0_); -#line 16474 "PhotoPage.c" - } -#line 2492 "/home/jens/Source/shotwell/src/PhotoPage.vala" - action = _tmp1_; -#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = action; -#line 2493 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_ != NULL) { -#line 16482 "PhotoPage.c" - GSimpleAction* _tmp3_; -#line 2494 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = action; -#line 2494 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_simple_action_set_enabled (_tmp3_, display); -#line 16488 "PhotoPage.c" - } -#line 2491 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (action); -#line 16492 "PhotoPage.c" -} - - -static void -library_photo_page_real_update_actions (Page* base, - gint selected_count, - gint count) -{ - LibraryPhotoPage * self; - gboolean multiple = FALSE; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - gboolean _tmp3_ = FALSE; - gboolean rotate_possible = FALSE; - gboolean _tmp6_ = FALSE; - gboolean is_raw = FALSE; - gboolean _tmp9_ = FALSE; - gboolean _tmp14_ = FALSE; - gboolean _tmp21_ = FALSE; - gboolean _tmp22_ = FALSE; - gboolean _tmp25_; - gboolean _tmp26_; - gboolean _tmp27_; - gboolean _tmp28_; - gboolean _tmp29_; - gboolean _tmp30_; - gboolean _tmp37_ = FALSE; - gboolean _tmp38_; -#line 2497 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2498 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2498 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 2498 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)) > 1; -#line 2498 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp1_); -#line 2498 "/home/jens/Source/shotwell/src/PhotoPage.vala" - multiple = _tmp2_; -#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 16536 "PhotoPage.c" - Photo* _tmp4_; - Photo* _tmp5_; -#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _tmp4_; -#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = editing_host_page_is_rotate_available (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp5_); -#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp5_); -#line 16547 "PhotoPage.c" - } else { -#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = FALSE; -#line 16551 "PhotoPage.c" - } -#line 2499 "/home/jens/Source/shotwell/src/PhotoPage.vala" - rotate_possible = _tmp3_; -#line 2500 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 16557 "PhotoPage.c" - Photo* _tmp7_; - Photo* _tmp8_; -#line 2500 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2500 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_; -#line 2500 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = photo_get_master_file_format (_tmp8_) == PHOTO_FILE_FORMAT_RAW; -#line 2500 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp8_); -#line 16568 "PhotoPage.c" - } else { -#line 2500 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = FALSE; -#line 16572 "PhotoPage.c" - } -#line 2500 "/home/jens/Source/shotwell/src/PhotoPage.vala" - is_raw = _tmp6_; -#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 16578 "PhotoPage.c" - ConfigFacade* _tmp10_; - ConfigFacade* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = config_facade_get_instance (); -#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = _tmp10_; -#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = _tmp12_; -#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = g_strcmp0 (_tmp13_, "") != 0; -#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp13_); -#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp11_); -#line 16597 "PhotoPage.c" - } else { -#line 2503 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = FALSE; -#line 16601 "PhotoPage.c" - } -#line 2502 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp9_); -#line 2505 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 16607 "PhotoPage.c" - gboolean _tmp15_ = FALSE; - Photo* _tmp16_; - Photo* _tmp17_; - gboolean _tmp18_; -#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = _tmp16_; -#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = photo_has_transformations (_tmp17_); -#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp17_); -#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp18_) { -#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = TRUE; -#line 16624 "PhotoPage.c" - } else { - Photo* _tmp19_; - Photo* _tmp20_; -#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = _tmp19_; -#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = photo_has_editable (_tmp20_); -#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp20_); -#line 16636 "PhotoPage.c" - } -#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = _tmp15_; -#line 16640 "PhotoPage.c" - } else { -#line 2506 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = FALSE; -#line 16644 "PhotoPage.c" - } -#line 2505 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp14_); -#line 2508 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 2508 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = !editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 16652 "PhotoPage.c" - } else { -#line 2508 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = FALSE; -#line 16656 "PhotoPage.c" - } -#line 2508 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp21_) { -#line 2509 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_update_rating_menu_item_sensitivity (self); -#line 2510 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_update_development_menu_item_sensitivity (self); -#line 16664 "PhotoPage.c" - } -#line 2513 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))); -#line 2515 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 16670 "PhotoPage.c" - Photo* _tmp23_; - Photo* _tmp24_; -#line 2515 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2515 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = _tmp23_; -#line 2515 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = photo_has_color_adjustments (_tmp24_); -#line 2515 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp24_); -#line 16681 "PhotoPage.c" - } else { -#line 2515 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = FALSE; -#line 16685 "PhotoPage.c" - } -#line 2515 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CopyColorAdjustments", _tmp22_); -#line 2516 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PasteColorAdjustments", pixel_transformation_bundle_has_copied_color_adjustments ()); -#line 2518 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = multiple; -#line 2518 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PrevPhoto", _tmp25_); -#line 2519 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = multiple; -#line 2519 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "NextPhoto", _tmp26_); -#line 2520 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp27_ = rotate_possible; -#line 2520 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", _tmp27_); -#line 2521 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp28_ = rotate_possible; -#line 2521 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", _tmp28_); -#line 2522 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp29_ = rotate_possible; -#line 2522 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", _tmp29_); -#line 2523 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp30_ = rotate_possible; -#line 2523 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", _tmp30_); -#line 2525 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 16717 "PhotoPage.c" - Photo* _tmp31_; - Photo* _tmp32_; - Scaling _tmp33_ = {0}; - Photo* _tmp34_; - Photo* _tmp35_; - Scaling _tmp36_ = {0}; -#line 2526 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp31_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2526 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp32_ = _tmp31_; -#line 2526 "/home/jens/Source/shotwell/src/PhotoPage.vala" - scaling_for_original (&_tmp33_); -#line 2526 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Crop", editing_tools_crop_tool_is_available (_tmp32_, &_tmp33_)); -#line 2526 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp32_); -#line 2527 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp34_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2527 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp35_ = _tmp34_; -#line 2527 "/home/jens/Source/shotwell/src/PhotoPage.vala" - scaling_for_original (&_tmp36_); -#line 2527 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RedEye", editing_tools_redeye_tool_is_available (_tmp35_, &_tmp36_)); -#line 2527 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp35_); -#line 16744 "PhotoPage.c" - } -#line 2531 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_update_flag_action (self); -#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp38_ = is_raw; -#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp38_) { -#line 16752 "PhotoPage.c" - ConfigFacade* _tmp39_; - ConfigFacade* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; -#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp39_ = config_facade_get_instance (); -#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp40_ = _tmp39_; -#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp41_ = configuration_facade_get_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp42_ = _tmp41_; -#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp37_ = g_strcmp0 (_tmp42_, "") != 0; -#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp42_); -#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp40_); -#line 16771 "PhotoPage.c" - } else { -#line 2534 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp37_ = FALSE; -#line 16775 "PhotoPage.c" - } -#line 2533 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEditRAW", _tmp37_); -#line 2536 "/home/jens/Source/shotwell/src/PhotoPage.vala" - PAGE_CLASS (library_photo_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), selected_count, count); -#line 16781 "PhotoPage.c" -} - - -static void -library_photo_page_on_photos_altered (LibraryPhotoPage* self) -{ - gboolean _tmp0_ = FALSE; -#line 2539 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2540 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 16793 "PhotoPage.c" - gboolean _tmp1_ = FALSE; - Photo* _tmp2_; - Photo* _tmp3_; - gboolean _tmp4_; -#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_; -#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = photo_has_transformations (_tmp3_); -#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp4_) { -#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = TRUE; -#line 16810 "PhotoPage.c" - } else { - Photo* _tmp5_; - Photo* _tmp6_; -#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = photo_has_editable (_tmp6_); -#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp6_); -#line 16822 "PhotoPage.c" - } -#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = _tmp1_; -#line 16826 "PhotoPage.c" - } else { -#line 2541 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = FALSE; -#line 16830 "PhotoPage.c" - } -#line 2540 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp0_); -#line 2542 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_update_flag_action (self); -#line 16836 "PhotoPage.c" -} - - -static void -library_photo_page_on_raw_developer_changed (LibraryPhotoPage* self, - GSimpleAction* action, - GVariant* value) -{ - RawDeveloper developer = 0; - const gchar* _tmp0_; - const gchar* _tmp1_; - GQuark _tmp3_ = 0U; -#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp2_label0 = 0; -#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp2_label1 = 0; -#line 16853 "PhotoPage.c" - RawDeveloper _tmp4_; -#line 2545 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2545 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 2547 "/home/jens/Source/shotwell/src/PhotoPage.vala" - developer = RAW_DEVELOPER_SHOTWELL; -#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = g_variant_get_string (value, NULL); -#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_); -#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("Shotwell")))) { -#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 16871 "PhotoPage.c" - default: - { -#line 2551 "/home/jens/Source/shotwell/src/PhotoPage.vala" - developer = RAW_DEVELOPER_SHOTWELL; -#line 2552 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 16878 "PhotoPage.c" - } - } - } else if (_tmp3_ == ((0 != _tmp2_label1) ? _tmp2_label1 : (_tmp2_label1 = g_quark_from_static_string ("Camera")))) { -#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 16884 "PhotoPage.c" - default: - { -#line 2554 "/home/jens/Source/shotwell/src/PhotoPage.vala" - developer = RAW_DEVELOPER_CAMERA; -#line 2555 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 16891 "PhotoPage.c" - } - } - } else { -#line 2549 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 16897 "PhotoPage.c" - default: - { -#line 2557 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 16902 "PhotoPage.c" - } - } - } -#line 2560 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = developer; -#line 2560 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_developer_changed (self, _tmp4_); -#line 2562 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_simple_action_set_state (action, value); -#line 16912 "PhotoPage.c" -} - - -static void -library_photo_page_real_developer_changed (LibraryPhotoPage* self, - RawDeveloper rd) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - Photo* photo = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp6_; - gpointer _tmp7_; - DataView* _tmp8_; - DataSource* _tmp9_; - Photo* _tmp10_; - Photo* _tmp11_; - gboolean _tmp12_ = FALSE; - Photo* _tmp13_; - gboolean _tmp15_ = FALSE; - Photo* _tmp16_; -#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1; -#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp1_); -#line 2566 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_) { -#line 2567 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 16949 "PhotoPage.c" - } -#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = view_collection_get_selected (_tmp4_); -#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = gee_list_get (_tmp6_, 0); -#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = (DataView*) _tmp7_; -#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = data_view_get_source (_tmp8_); -#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_PHOTO) ? ((Photo*) _tmp9_) : NULL; -#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp10_ == NULL) { -#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp9_); -#line 16971 "PhotoPage.c" - } -#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = _tmp10_; -#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp8_); -#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp6_); -#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp4_); -#line 2569 "/home/jens/Source/shotwell/src/PhotoPage.vala" - photo = _tmp11_; -#line 2570 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = photo; -#line 2570 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp13_ == NULL) { -#line 2570 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = TRUE; -#line 16989 "PhotoPage.c" - } else { - Photo* _tmp14_; -#line 2570 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = photo; -#line 2570 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = raw_developer_is_equivalent (rd, photo_get_raw_developer (_tmp14_)); -#line 16996 "PhotoPage.c" - } -#line 2570 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp12_) { -#line 2571 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photo); -#line 2571 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 17004 "PhotoPage.c" - } -#line 2575 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = photo; -#line 2575 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!photo_has_transformations (_tmp16_)) { -#line 2575 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = TRUE; -#line 17012 "PhotoPage.c" - } else { -#line 2575 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = dialogs_confirm_warn_developer_changed (1); -#line 17016 "PhotoPage.c" - } -#line 2575 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp15_) { -#line 17020 "PhotoPage.c" - SetRawDeveloperCommand* command = NULL; - ViewCollection* _tmp17_; - ViewCollection* _tmp18_; - GeeList* _tmp19_; - GeeList* _tmp20_; - SetRawDeveloperCommand* _tmp21_; - SetRawDeveloperCommand* _tmp22_; - CommandManager* _tmp23_; - CommandManager* _tmp24_; - SetRawDeveloperCommand* _tmp25_; -#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = _tmp17_; -#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = view_collection_get_selected (_tmp18_); -#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = _tmp19_; -#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = set_raw_developer_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ITERABLE, GeeIterable), rd); -#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = _tmp21_; -#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp20_); -#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp18_); -#line 2576 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command = _tmp22_; -#line 2578 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2578 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = _tmp23_; -#line 2578 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = command; -#line 2578 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command_manager_execute (_tmp24_, G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_COMMAND, Command)); -#line 2578 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _command_manager_unref0 (_tmp24_); -#line 2580 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_update_development_menu_item_sensitivity (self); -#line 2575 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (command); -#line 17063 "PhotoPage.c" - } -#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photo); -#line 17067 "PhotoPage.c" -} - - -void -library_photo_page_developer_changed (LibraryPhotoPage* self, - RawDeveloper rd) -{ -#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2565 "/home/jens/Source/shotwell/src/PhotoPage.vala" - LIBRARY_PHOTO_PAGE_GET_CLASS (self)->developer_changed (self, rd); -#line 17079 "PhotoPage.c" -} - - -static void -library_photo_page_update_flag_action (LibraryPhotoPage* self) -{ -#line 2584 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2585 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Flag", editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))); -#line 17090 "PhotoPage.c" -} - - -static void -_library_photo_page_on_page_destroyed_gtk_widget_destroy (GtkWidget* _sender, - gpointer self) -{ -#line 2595 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_page_destroyed ((LibraryPhotoPage*) self); -#line 17100 "PhotoPage.c" -} - - -void -library_photo_page_display_for_collection (LibraryPhotoPage* self, - CollectionPage* return_page, - Photo* photo, - ViewCollection* view) -{ - CollectionPage* _tmp0_; - ViewCollection* _tmp1_ = NULL; -#line 2592 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2592 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_COLLECTION_PAGE (return_page)); -#line 2592 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 2592 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail ((view == NULL) || IS_VIEW_COLLECTION (view)); -#line 2594 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = _g_object_ref0 (return_page); -#line 2594 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->return_page); -#line 2594 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->return_page = _tmp0_; -#line 2595 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (return_page, gtk_widget_get_type (), GtkWidget), "destroy", (GCallback) _library_photo_page_on_page_destroyed_gtk_widget_destroy, self, 0); -#line 2597 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (view != NULL) { -#line 17130 "PhotoPage.c" - ViewCollection* _tmp2_; -#line 2597 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _data_collection_ref0 (view); -#line 2597 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp1_); -#line 2597 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp2_; -#line 17138 "PhotoPage.c" - } else { - ViewCollection* _tmp3_; -#line 2597 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (return_page, TYPE_PAGE, Page)); -#line 2597 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp1_); -#line 2597 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp3_; -#line 17147 "PhotoPage.c" - } -#line 2597 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_display_copy_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp1_, photo); -#line 2592 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp1_); -#line 17153 "PhotoPage.c" -} - - -void -library_photo_page_on_page_destroyed (LibraryPhotoPage* self) -{ -#line 2600 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2603 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->return_page); -#line 2603 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->return_page = NULL; -#line 2604 "/home/jens/Source/shotwell/src/PhotoPage.vala" - editing_host_page_unset_view_collection (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 17168 "PhotoPage.c" -} - - -CollectionPage* -library_photo_page_get_controller_page (LibraryPhotoPage* self) -{ - CollectionPage* result = NULL; - CollectionPage* _tmp0_; - CollectionPage* _tmp1_; -#line 2607 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO_PAGE (self), NULL); -#line 2608 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->return_page; -#line 2608 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 2608 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp1_; -#line 2608 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 17188 "PhotoPage.c" -} - - -static void -library_photo_page_real_switched_to (Page* base) -{ - LibraryPhotoPage * self; - Photo* _tmp0_; - Photo* _tmp1_; - ConfigFacade* _tmp2_; - ConfigFacade* _tmp3_; -#line 2611 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2615 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2615 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 2615 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _vala_assert (_tmp1_ != NULL, "get_photo() != null"); -#line 2615 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 2617 "/home/jens/Source/shotwell/src/PhotoPage.vala" - PAGE_CLASS (library_photo_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page)); -#line 2619 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_update_zoom_menu_item_sensitivity (self); -#line 2620 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_update_rating_menu_item_sensitivity (self); -#line 2622 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = config_facade_get_instance (); -#line 2622 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_; -#line 2622 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_set_display_ratings (self, configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 2622 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 17224 "PhotoPage.c" -} - - -static void -library_photo_page_real_switching_from (Page* base) -{ - LibraryPhotoPage * self; -#line 2626 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2627 "/home/jens/Source/shotwell/src/PhotoPage.vala" - PAGE_CLASS (library_photo_page_parent_class)->switching_from (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page)); -#line 17236 "PhotoPage.c" - { - GActionEntry* entry_collection = NULL; - gint entry_collection_length1 = 0; - gint _entry_collection_size_ = 0; - gint entry_it = 0; -#line 2628 "/home/jens/Source/shotwell/src/PhotoPage.vala" - entry_collection = LIBRARY_PHOTO_PAGE_entries; -#line 2628 "/home/jens/Source/shotwell/src/PhotoPage.vala" - entry_collection_length1 = G_N_ELEMENTS (LIBRARY_PHOTO_PAGE_entries); -#line 2628 "/home/jens/Source/shotwell/src/PhotoPage.vala" - for (entry_it = 0; entry_it < G_N_ELEMENTS (LIBRARY_PHOTO_PAGE_entries); entry_it = entry_it + 1) { -#line 17248 "PhotoPage.c" - GActionEntry entry = {0}; -#line 2628 "/home/jens/Source/shotwell/src/PhotoPage.vala" - entry = entry_collection[entry_it]; -#line 17252 "PhotoPage.c" - { - AppWindow* _tmp0_; - AppWindow* _tmp1_; - GActionEntry _tmp2_; - const gchar* _tmp3_; -#line 2629 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = app_window_get_instance (); -#line 2629 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 2629 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = entry; -#line 2629 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_.name; -#line 2629 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_action_map_remove_action (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_action_map_get_type (), GActionMap), _tmp3_); -#line 2629 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 17270 "PhotoPage.c" - } - } - } -} - - -static GdkPixbuf* -library_photo_page_real_get_bottom_left_trinket (EditingHostPage* base, - gint scale) -{ - LibraryPhotoPage * self; - GdkPixbuf* result = NULL; - gboolean _tmp0_ = FALSE; - Photo* _tmp3_; - LibraryPhoto* _tmp4_; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; -#line 2633 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2634 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 2634 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = TRUE; -#line 17294 "PhotoPage.c" - } else { - ConfigFacade* _tmp1_; - ConfigFacade* _tmp2_; -#line 2634 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = config_facade_get_instance (); -#line 2634 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 2634 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = !configuration_facade_get_display_photo_ratings (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 2634 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 17306 "PhotoPage.c" - } -#line 2634 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 2635 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = NULL; -#line 2635 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 17314 "PhotoPage.c" - } -#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = resources_get_rating_trinket (media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource)), scale); -#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp4_); -#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp6_; -#line 2637 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 17330 "PhotoPage.c" -} - - -static GdkPixbuf* -library_photo_page_real_get_top_right_trinket (EditingHostPage* base, - gint scale) -{ - LibraryPhotoPage * self; - GdkPixbuf* result = NULL; - gboolean _tmp0_ = FALSE; - GdkPixbuf* _tmp3_; -#line 2640 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2641 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 2641 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = TRUE; -#line 17348 "PhotoPage.c" - } else { - Photo* _tmp1_; - LibraryPhoto* _tmp2_; -#line 2641 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2641 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 2641 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = !flaggable_is_flagged (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_FLAGGABLE, Flaggable)); -#line 2641 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 17360 "PhotoPage.c" - } -#line 2641 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 2642 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = NULL; -#line 2642 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 17368 "PhotoPage.c" - } -#line 2644 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = resources_get_icon (RESOURCES_ICON_FLAGGED_TRINKET, RESOURCES_DEFAULT_ICON_SCALE); -#line 2644 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp3_; -#line 2644 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 17376 "PhotoPage.c" -} - - -static void -library_photo_page_on_slideshow (LibraryPhotoPage* self) -{ - LibraryPhoto* photo = NULL; - Photo* _tmp0_; - LibraryPhoto* _tmp1_; - AppWindow* _tmp2_; - AppWindow* _tmp3_; - LibraryPhotoSourceCollection* _tmp4_; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; - LibraryPhoto* _tmp7_; - SlideshowPage* _tmp8_; - SlideshowPage* _tmp9_; -#line 2647 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2648 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2648 "/home/jens/Source/shotwell/src/PhotoPage.vala" - photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 2649 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = photo; -#line 2649 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp1_ == NULL) { -#line 2650 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photo); -#line 2650 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 17408 "PhotoPage.c" - } -#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = app_window_get_instance (); -#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_; -#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = library_photo_global; -#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = photo; -#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = slideshow_page_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO, Photo)); -#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp8_); -#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = _tmp8_; -#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala" - app_window_go_fullscreen (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PAGE, Page)); -#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp9_); -#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp6_); -#line 2652 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 2647 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photo); -#line 17438 "PhotoPage.c" -} - - -static void -library_photo_page_update_zoom_menu_item_sensitivity (LibraryPhotoPage* self) -{ - gboolean _tmp0_ = FALSE; - ZoomState _tmp1_ = {0}; - gboolean _tmp2_ = FALSE; - ZoomState _tmp3_ = {0}; -#line 2656 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2657 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp1_); -#line 2657 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!zoom_state_is_max (&_tmp1_)) { -#line 2657 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = !editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 17457 "PhotoPage.c" - } else { -#line 2657 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = FALSE; -#line 17461 "PhotoPage.c" - } -#line 2657 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", _tmp0_); -#line 2658 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp3_); -#line 2658 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!zoom_state_is_default (&_tmp3_)) { -#line 2658 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = !editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 17471 "PhotoPage.c" - } else { -#line 2658 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = FALSE; -#line 17475 "PhotoPage.c" - } -#line 2658 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", _tmp2_); -#line 17479 "PhotoPage.c" -} - - -static void -library_photo_page_real_on_increase_size (EditingHostPage* base) -{ - LibraryPhotoPage * self; -#line 2661 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2662 "/home/jens/Source/shotwell/src/PhotoPage.vala" - EDITING_HOST_PAGE_CLASS (library_photo_page_parent_class)->on_increase_size (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2664 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_update_zoom_menu_item_sensitivity (self); -#line 17493 "PhotoPage.c" -} - - -static void -library_photo_page_real_on_decrease_size (EditingHostPage* base) -{ - LibraryPhotoPage * self; -#line 2667 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2668 "/home/jens/Source/shotwell/src/PhotoPage.vala" - EDITING_HOST_PAGE_CLASS (library_photo_page_parent_class)->on_decrease_size (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2670 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_update_zoom_menu_item_sensitivity (self); -#line 17507 "PhotoPage.c" -} - - -static gboolean -library_photo_page_real_on_zoom_slider_key_press (EditingHostPage* base, - GdkEventKey* event) -{ - LibraryPhotoPage * self; - gboolean result = FALSE; - guint _tmp0_; - const gchar* _tmp1_; -#line 2673 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2673 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 2674 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (EDITING_HOST_PAGE_CLASS (library_photo_page_parent_class)->on_zoom_slider_key_press (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), event)) { -#line 2675 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 2675 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 17529 "PhotoPage.c" - } -#line 2677 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = event->keyval; -#line 2677 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = gdk_keyval_name (_tmp0_); -#line 2677 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (g_strcmp0 (_tmp1_, "Escape") == 0) { -#line 2678 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_return_to_collection (self); -#line 2679 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 2679 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 17543 "PhotoPage.c" - } else { -#line 2681 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = FALSE; -#line 2681 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 17549 "PhotoPage.c" - } -} - - -static void -library_photo_page_real_update_ui (EditingHostPage* base, - gboolean missing) -{ - LibraryPhotoPage * self; - gboolean sensitivity = FALSE; -#line 2685 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2686 "/home/jens/Source/shotwell/src/PhotoPage.vala" - sensitivity = !missing; -#line 2688 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SendTo", sensitivity); -#line 2689 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", sensitivity); -#line 2690 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Print", sensitivity); -#line 2691 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonJumpToFile", sensitivity); -#line 2693 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonUndo", sensitivity); -#line 2694 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonRedo", sensitivity); -#line 2696 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", sensitivity); -#line 2697 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", sensitivity); -#line 2698 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ZoomFit", sensitivity); -#line 2699 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Zoom100", sensitivity); -#line 2700 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Zoom200", sensitivity); -#line 2701 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Slideshow", sensitivity); -#line 2703 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", sensitivity); -#line 2704 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", sensitivity); -#line 2705 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", sensitivity); -#line 2706 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", sensitivity); -#line 2707 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", sensitivity); -#line 2708 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Crop", sensitivity); -#line 2709 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RedEye", sensitivity); -#line 2710 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Adjust", sensitivity); -#line 2711 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditTitle", sensitivity); -#line 2712 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", sensitivity); -#line 2713 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", sensitivity); -#line 2714 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEditRAW", sensitivity); -#line 2715 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", sensitivity); -#line 2717 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Rate", sensitivity); -#line 2718 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Flag", sensitivity); -#line 2719 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AddTags", sensitivity); -#line 2720 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ModifyTags", sensitivity); -#line 2722 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", sensitivity); -#line 2724 "/home/jens/Source/shotwell/src/PhotoPage.vala" - EDITING_HOST_PAGE_CLASS (library_photo_page_parent_class)->update_ui (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), missing); -#line 17626 "PhotoPage.c" -} - - -static void -library_photo_page_real_notify_photo_backing_missing (EditingHostPage* base, - Photo* photo, - gboolean missing) -{ - LibraryPhotoPage * self; -#line 2727 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2727 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 2728 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (missing) { -#line 2729 "/home/jens/Source/shotwell/src/PhotoPage.vala" - media_source_mark_offline (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource)); -#line 17644 "PhotoPage.c" - } else { -#line 2731 "/home/jens/Source/shotwell/src/PhotoPage.vala" - media_source_mark_online (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource)); -#line 17648 "PhotoPage.c" - } -#line 2733 "/home/jens/Source/shotwell/src/PhotoPage.vala" - EDITING_HOST_PAGE_CLASS (library_photo_page_parent_class)->notify_photo_backing_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), photo, missing); -#line 17652 "PhotoPage.c" -} - - -static gboolean -library_photo_page_real_key_press_event (GtkWidget* base, - GdkEventKey* event) -{ - LibraryPhotoPage * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean handled = FALSE; - guint _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - GQuark _tmp5_ = 0U; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label0 = 0; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label1 = 0; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label2 = 0; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label3 = 0; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label4 = 0; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label5 = 0; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label6 = 0; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label7 = 0; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label8 = 0; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label9 = 0; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label10 = 0; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label11 = 0; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label12 = 0; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label13 = 0; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label14 = 0; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label15 = 0; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label16 = 0; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - static GQuark _tmp4_label17 = 0; -#line 2736 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2736 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (GTK_WIDGET_CLASS (library_photo_page_parent_class)->key_press_event != NULL) { -#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = GTK_WIDGET_CLASS (library_photo_page_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), gtk_widget_get_type (), GtkWidget), event) == TRUE; -#line 17712 "PhotoPage.c" - } else { -#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = FALSE; -#line 17716 "PhotoPage.c" - } -#line 2737 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 2738 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 2738 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 17724 "PhotoPage.c" - } -#line 2740 "/home/jens/Source/shotwell/src/PhotoPage.vala" - handled = TRUE; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = event->keyval; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = gdk_keyval_name (_tmp1_); -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_; -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = (NULL == _tmp3_) ? 0 : g_quark_from_string (_tmp3_); -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (((_tmp5_ == ((0 != _tmp4_label0) ? _tmp4_label0 : (_tmp4_label0 = g_quark_from_static_string ("Escape")))) || (_tmp5_ == ((0 != _tmp4_label1) ? _tmp4_label1 : (_tmp4_label1 = g_quark_from_static_string ("Return"))))) || (_tmp5_ == ((0 != _tmp4_label2) ? _tmp4_label2 : (_tmp4_label2 = g_quark_from_static_string ("KP_Enter"))))) { -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 17740 "PhotoPage.c" - default: - { - GtkWindow* _tmp6_; - GtkWindow* _tmp7_; - gboolean _tmp8_; -#line 2745 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2745 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_; -#line 2745 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_FULLSCREEN_WINDOW); -#line 2745 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp7_); -#line 2745 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp8_) { -#line 2746 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_return_to_collection (self); -#line 17758 "PhotoPage.c" - } -#line 2747 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 17762 "PhotoPage.c" - } - } - } else if (_tmp5_ == ((0 != _tmp4_label3) ? _tmp4_label3 : (_tmp4_label3 = g_quark_from_static_string ("Delete")))) { -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 17768 "PhotoPage.c" - default: - { -#line 2753 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "MoveToTrash"); -#line 2754 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 17775 "PhotoPage.c" - } - } - } else if ((_tmp5_ == ((0 != _tmp4_label4) ? _tmp4_label4 : (_tmp4_label4 = g_quark_from_static_string ("period")))) || (_tmp5_ == ((0 != _tmp4_label5) ? _tmp4_label5 : (_tmp4_label5 = g_quark_from_static_string ("greater"))))) { -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 17781 "PhotoPage.c" - default: - { -#line 2758 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseRating"); -#line 2759 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 17788 "PhotoPage.c" - } - } - } else if ((_tmp5_ == ((0 != _tmp4_label6) ? _tmp4_label6 : (_tmp4_label6 = g_quark_from_static_string ("comma")))) || (_tmp5_ == ((0 != _tmp4_label7) ? _tmp4_label7 : (_tmp4_label7 = g_quark_from_static_string ("less"))))) { -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 17794 "PhotoPage.c" - default: - { -#line 2763 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseRating"); -#line 2764 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 17801 "PhotoPage.c" - } - } - } else if (_tmp5_ == ((0 != _tmp4_label8) ? _tmp4_label8 : (_tmp4_label8 = g_quark_from_static_string ("KP_1")))) { -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 17807 "PhotoPage.c" - default: - { -#line 2767 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateOne"); -#line 2768 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 17814 "PhotoPage.c" - } - } - } else if (_tmp5_ == ((0 != _tmp4_label9) ? _tmp4_label9 : (_tmp4_label9 = g_quark_from_static_string ("KP_2")))) { -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 17820 "PhotoPage.c" - default: - { -#line 2771 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateTwo"); -#line 2772 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 17827 "PhotoPage.c" - } - } - } else if (_tmp5_ == ((0 != _tmp4_label10) ? _tmp4_label10 : (_tmp4_label10 = g_quark_from_static_string ("KP_3")))) { -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 17833 "PhotoPage.c" - default: - { -#line 2775 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateThree"); -#line 2776 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 17840 "PhotoPage.c" - } - } - } else if (_tmp5_ == ((0 != _tmp4_label11) ? _tmp4_label11 : (_tmp4_label11 = g_quark_from_static_string ("KP_4")))) { -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 17846 "PhotoPage.c" - default: - { -#line 2779 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFour"); -#line 2780 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 17853 "PhotoPage.c" - } - } - } else if (_tmp5_ == ((0 != _tmp4_label12) ? _tmp4_label12 : (_tmp4_label12 = g_quark_from_static_string ("KP_5")))) { -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 17859 "PhotoPage.c" - default: - { -#line 2783 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFive"); -#line 2784 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 17866 "PhotoPage.c" - } - } - } else if (_tmp5_ == ((0 != _tmp4_label13) ? _tmp4_label13 : (_tmp4_label13 = g_quark_from_static_string ("KP_0")))) { -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 17872 "PhotoPage.c" - default: - { -#line 2787 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateUnrated"); -#line 2788 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 17879 "PhotoPage.c" - } - } - } else if (_tmp5_ == ((0 != _tmp4_label14) ? _tmp4_label14 : (_tmp4_label14 = g_quark_from_static_string ("KP_9")))) { -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 17885 "PhotoPage.c" - default: - { -#line 2791 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateRejected"); -#line 2792 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 17892 "PhotoPage.c" - } - } - } else if (_tmp5_ == ((0 != _tmp4_label15) ? _tmp4_label15 : (_tmp4_label15 = g_quark_from_static_string ("bracketright")))) { -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 17898 "PhotoPage.c" - default: - { -#line 2795 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise"); -#line 2796 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 17905 "PhotoPage.c" - } - } - } else if (_tmp5_ == ((0 != _tmp4_label16) ? _tmp4_label16 : (_tmp4_label16 = g_quark_from_static_string ("bracketleft")))) { -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 17911 "PhotoPage.c" - default: - { -#line 2799 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise"); -#line 2800 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 17918 "PhotoPage.c" - } - } - } else if (_tmp5_ == ((0 != _tmp4_label17) ? _tmp4_label17 : (_tmp4_label17 = g_quark_from_static_string ("slash")))) { -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 17924 "PhotoPage.c" - default: - { -#line 2803 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Flag"); -#line 2804 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 17931 "PhotoPage.c" - } - } - } else { -#line 2741 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (0) { -#line 17937 "PhotoPage.c" - default: - { -#line 2807 "/home/jens/Source/shotwell/src/PhotoPage.vala" - handled = FALSE; -#line 2808 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 17944 "PhotoPage.c" - } - } - } -#line 2811 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = handled; -#line 2811 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 17952 "PhotoPage.c" -} - - -static gboolean -library_photo_page_real_on_double_click (EditingHostPage* base, - GdkEventButton* event) -{ - LibraryPhotoPage * self; - gboolean result = FALSE; - FullscreenWindow* fs = NULL; - GtkWindow* _tmp0_; - FullscreenWindow* _tmp1_; - FullscreenWindow* _tmp2_; -#line 2814 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2814 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 2815 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2815 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_FULLSCREEN_WINDOW) ? ((FullscreenWindow*) _tmp0_) : NULL; -#line 2815 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp1_ == NULL) { -#line 2815 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp0_); -#line 17978 "PhotoPage.c" - } -#line 2815 "/home/jens/Source/shotwell/src/PhotoPage.vala" - fs = _tmp1_; -#line 2816 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = fs; -#line 2816 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_ == NULL) { -#line 2817 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->return_to_collection_on_release = TRUE; -#line 17988 "PhotoPage.c" - } else { - FullscreenWindow* _tmp3_; -#line 2819 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = fs; -#line 2819 "/home/jens/Source/shotwell/src/PhotoPage.vala" - fullscreen_window_close (_tmp3_); -#line 17995 "PhotoPage.c" - } -#line 2821 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 2821 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (fs); -#line 2821 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 18003 "PhotoPage.c" -} - - -static gboolean -library_photo_page_real_on_left_released (Page* base, - GdkEventButton* event) -{ - LibraryPhotoPage * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 2824 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2824 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 2825 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->return_to_collection_on_release; -#line 2825 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 2826 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->return_to_collection_on_release = FALSE; -#line 2827 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_return_to_collection (self); -#line 2829 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 2829 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 18030 "PhotoPage.c" - } -#line 2832 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = PAGE_CLASS (library_photo_page_parent_class)->on_left_released (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), event); -#line 2832 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 18036 "PhotoPage.c" -} - - -static GtkMenu* -library_photo_page_get_context_menu (LibraryPhotoPage* self) -{ - GtkMenu* result = NULL; - GtkMenu* _tmp0_; - GtkMenu* _tmp7_; - GtkMenu* _tmp8_; -#line 2837 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_LIBRARY_PHOTO_PAGE (self), NULL); -#line 2838 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->context_menu; -#line 2838 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_ == NULL) { -#line 18053 "PhotoPage.c" - GMenuModel* model = NULL; - GtkBuilder* _tmp1_; - GObject* _tmp2_; - GMenuModel* _tmp3_; - GMenuModel* _tmp4_; - GtkMenu* _tmp5_; - GtkMenu* _tmp6_; -#line 2839 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder; -#line 2839 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = gtk_builder_get_object (_tmp1_, "PhotoContextMenu"); -#line 2839 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp2_) : NULL); -#line 2839 "/home/jens/Source/shotwell/src/PhotoPage.vala" - model = _tmp3_; -#line 2841 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = model; -#line 2841 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = (GtkMenu*) gtk_menu_new_from_model (_tmp4_); -#line 2841 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp5_); -#line 2841 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->context_menu); -#line 2841 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->context_menu = _tmp5_; -#line 2842 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = self->priv->context_menu; -#line 2842 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gtk_menu_attach_to_widget (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), NULL); -#line 2838 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (model); -#line 18085 "PhotoPage.c" - } -#line 2845 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = self->priv->context_menu; -#line 2845 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _g_object_ref0 (_tmp7_); -#line 2845 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp8_; -#line 2845 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 18095 "PhotoPage.c" -} - - -static gboolean -library_photo_page_real_on_context_buttonpress (Page* base, - GdkEventButton* event) -{ - LibraryPhotoPage * self; - gboolean result = FALSE; - GtkMenu* _tmp0_; - GtkMenu* _tmp1_; -#line 2848 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2848 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 2849 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = library_photo_page_get_context_menu (self); -#line 2849 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 2849 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_popup_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp1_, event); -#line 2849 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 2851 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 2851 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 18123 "PhotoPage.c" -} - - -static gboolean -library_photo_page_real_on_context_keypress (Page* base) -{ - LibraryPhotoPage * self; - gboolean result = FALSE; - GtkMenu* _tmp0_; - GtkMenu* _tmp1_; -#line 2854 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2855 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = library_photo_page_get_context_menu (self); -#line 2855 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 2855 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_popup_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp1_, NULL); -#line 2855 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 2857 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = TRUE; -#line 2857 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 18148 "PhotoPage.c" -} - - -static void -library_photo_page_return_to_collection (LibraryPhotoPage* self) -{ - CollectionPage* _tmp0_; -#line 2860 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2862 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->return_page; -#line 2862 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (NULL != _tmp0_) { -#line 18162 "PhotoPage.c" - LibraryWindow* _tmp1_; - LibraryWindow* _tmp2_; - CollectionPage* _tmp3_; -#line 2863 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = library_window_get_app (); -#line 2863 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 2863 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = self->priv->return_page; -#line 2863 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_window_switch_to_page (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PAGE, Page)); -#line 2863 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 18176 "PhotoPage.c" - } else { - LibraryWindow* _tmp4_; - LibraryWindow* _tmp5_; -#line 2865 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = library_window_get_app (); -#line 2865 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _tmp4_; -#line 2865 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_window_switch_to_library_page (_tmp5_); -#line 2865 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp5_); -#line 18188 "PhotoPage.c" - } -} - - -static void -library_photo_page_on_remove_from_library (LibraryPhotoPage* self) -{ - LibraryPhoto* photo = NULL; - Photo* _tmp0_; - GeeCollection* photos = NULL; - GeeArrayList* _tmp1_; -#line 2868 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2869 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2869 "/home/jens/Source/shotwell/src/PhotoPage.vala" - photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 2871 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 2871 "/home/jens/Source/shotwell/src/PhotoPage.vala" - photos = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection); -#line 2872 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gee_collection_add (photos, photo); -#line 2874 "/home/jens/Source/shotwell/src/PhotoPage.vala" - remove_from_app (photos, _ ("Remove From Library"), _ ("Removing Photo From Library")); -#line 2868 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photos); -#line 2868 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photo); -#line 18218 "PhotoPage.c" -} - - -static void -library_photo_page_on_move_to_trash (LibraryPhotoPage* self) -{ - CollectionPage* _tmp0_; - LibraryPhoto* photo = NULL; - Photo* _tmp3_; - GeeCollection* photos = NULL; - GeeArrayList* _tmp4_; - GeeCollection* _tmp5_; - LibraryPhoto* _tmp6_; - LibraryPhoto* _tmp7_; - Photo* _tmp8_; - Photo* _tmp9_; - gboolean _tmp10_; - CommandManager* _tmp20_; - CommandManager* _tmp21_; - GeeCollection* _tmp22_; - TrashUntrashPhotosCommand* _tmp23_; - TrashUntrashPhotosCommand* _tmp24_; - LibraryWindow* _tmp25_; - LibraryWindow* _tmp26_; -#line 2877 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2878 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 2879 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 18249 "PhotoPage.c" - } -#line 2886 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = self->priv->return_page; -#line 2886 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_EVENT_PAGE)) { -#line 18255 "PhotoPage.c" - LibraryWindow* _tmp1_; - LibraryWindow* _tmp2_; -#line 2887 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = library_window_get_app (); -#line 2887 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 2887 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_window_set_page_switching_enabled (_tmp2_, FALSE); -#line 2887 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 18266 "PhotoPage.c" - } -#line 2890 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2890 "/home/jens/Source/shotwell/src/PhotoPage.vala" - photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 2892 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 2892 "/home/jens/Source/shotwell/src/PhotoPage.vala" - photos = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection); -#line 2893 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = photos; -#line 2893 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = photo; -#line 2893 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gee_collection_add (_tmp5_, _tmp6_); -#line 2896 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_on_next_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 2900 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = photo; -#line 2900 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2900 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = _tmp8_; -#line 2900 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_SOURCE, DataSource)); -#line 2900 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp9_); -#line 2900 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp10_) { -#line 18296 "PhotoPage.c" - LibraryWindow* _tmp11_; - LibraryWindow* _tmp12_; - GtkWindow* _tmp13_; - GtkWindow* _tmp14_; - gboolean _tmp15_; - LibraryWindow* _tmp18_; - LibraryWindow* _tmp19_; -#line 2903 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = library_window_get_app (); -#line 2903 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _tmp11_; -#line 2903 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_window_set_page_switching_enabled (_tmp12_, TRUE); -#line 2903 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp12_); -#line 2905 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2905 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = _tmp13_; -#line 2905 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, TYPE_FULLSCREEN_WINDOW); -#line 2905 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp14_); -#line 2905 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp15_) { -#line 18322 "PhotoPage.c" - GtkWindow* _tmp16_; - FullscreenWindow* _tmp17_; -#line 2906 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2906 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_FULLSCREEN_WINDOW, FullscreenWindow); -#line 2906 "/home/jens/Source/shotwell/src/PhotoPage.vala" - fullscreen_window_close (_tmp17_); -#line 2906 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp17_); -#line 18333 "PhotoPage.c" - } -#line 2908 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = library_window_get_app (); -#line 2908 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = _tmp18_; -#line 2908 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_window_switch_to_library_page (_tmp19_); -#line 2908 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp19_); -#line 18343 "PhotoPage.c" - } -#line 2911 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2911 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = _tmp20_; -#line 2911 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = photos; -#line 2911 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = trash_untrash_photos_command_new (_tmp22_, TRUE); -#line 2911 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = _tmp23_; -#line 2911 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command_manager_execute (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_COMMAND, Command)); -#line 2911 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp24_); -#line 2911 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _command_manager_unref0 (_tmp21_); -#line 2912 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = library_window_get_app (); -#line 2912 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = _tmp25_; -#line 2912 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_window_set_page_switching_enabled (_tmp26_, TRUE); -#line 2912 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp26_); -#line 2877 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photos); -#line 2877 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photo); -#line 18373 "PhotoPage.c" -} - - -static void -library_photo_page_on_flag_unflag (LibraryPhotoPage* self) -{ -#line 2915 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2916 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 18384 "PhotoPage.c" - GeeArrayList* photo_list = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; - Photo* _tmp2_; - Photo* _tmp3_; - CommandManager* _tmp4_; - CommandManager* _tmp5_; - GeeArrayList* _tmp6_; - Photo* _tmp7_; - LibraryPhoto* _tmp8_; - FlagUnflagCommand* _tmp9_; - FlagUnflagCommand* _tmp10_; -#line 2917 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 2917 "/home/jens/Source/shotwell/src/PhotoPage.vala" - photo_list = _tmp0_; -#line 2918 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = photo_list; -#line 2918 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2918 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_; -#line 2918 "/home/jens/Source/shotwell/src/PhotoPage.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 2918 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _tmp4_; -#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = photo_list; -#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = flag_unflag_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), !flaggable_is_flagged (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_FLAGGABLE, Flaggable))); -#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = _tmp9_; -#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command_manager_execute (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_COMMAND, Command)); -#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp10_); -#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp8_); -#line 2919 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _command_manager_unref0 (_tmp5_); -#line 2916 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photo_list); -#line 18435 "PhotoPage.c" - } -} - - -static void -library_photo_page_on_photo_destroyed (LibraryPhotoPage* self, - DataSource* source) -{ -#line 2924 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2924 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 2925 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_photo_removed (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 18450 "PhotoPage.c" -} - - -static void -library_photo_page_on_photo_removed (LibraryPhotoPage* self, - LibraryPhoto* photo) -{ - gboolean _tmp0_ = FALSE; - ViewCollection* view = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; - DataView* _tmp7_; - DataView* _tmp8_; - Marker* _tmp9_; - Marker* _tmp10_; - Photo* _tmp11_; - Photo* _tmp12_; - gboolean _tmp13_; -#line 2928 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2928 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 2930 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (photo == NULL) { -#line 2930 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = TRUE; -#line 18479 "PhotoPage.c" - } else { - Photo* _tmp1_; - Photo* _tmp2_; -#line 2930 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2930 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 2930 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = !data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_SOURCE, DataSource)); -#line 2930 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 18491 "PhotoPage.c" - } -#line 2930 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 2931 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 18497 "PhotoPage.c" - } -#line 2934 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_on_next_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 2936 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2936 "/home/jens/Source/shotwell/src/PhotoPage.vala" - view = _tmp3_; -#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = view; -#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = view; -#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = view; -#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = view_collection_get_view_for_source (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource)); -#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_; -#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject)); -#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = _tmp9_; -#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala" - data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), _tmp10_); -#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp10_); -#line 2937 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp8_); -#line 2938 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2938 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _tmp11_; -#line 2938 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_SOURCE, DataSource)); -#line 2938 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp12_); -#line 2938 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp13_) { -#line 18535 "PhotoPage.c" - LibraryWindow* _tmp14_; - LibraryWindow* _tmp15_; -#line 2941 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = library_window_get_app (); -#line 2941 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = _tmp14_; -#line 2941 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_window_switch_to_library_page (_tmp15_); -#line 2941 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp15_); -#line 18546 "PhotoPage.c" - } -#line 2928 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (view); -#line 18550 "PhotoPage.c" -} - - -static void -library_photo_page_on_print (LibraryPhotoPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; -#line 2945 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2946 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2946 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 2946 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) > 0; -#line 2946 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp1_); -#line 2946 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_) { -#line 18572 "PhotoPage.c" - PrintManager* _tmp3_; - PrintManager* _tmp4_; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; - GeeList* _tmp7_; - GeeCollection* _tmp8_; -#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = print_manager_get_instance (); -#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = view_collection_get_selected_sources_of_type (_tmp6_, TYPE_PHOTO); -#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection); -#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala" - print_manager_spool_photo (_tmp4_, _tmp8_); -#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp8_); -#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp6_); -#line 2947 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _print_manager_unref0 (_tmp4_); -#line 18599 "PhotoPage.c" - } -} - - -static void -library_photo_page_on_external_app_changed (LibraryPhotoPage* self) -{ - gboolean _tmp0_ = FALSE; -#line 2952 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2953 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 18612 "PhotoPage.c" - ConfigFacade* _tmp1_; - ConfigFacade* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 2954 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = config_facade_get_instance (); -#line 2954 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 2954 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 2954 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 2954 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = g_strcmp0 (_tmp4_, "") != 0; -#line 2954 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp4_); -#line 2954 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 18631 "PhotoPage.c" - } else { -#line 2953 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = FALSE; -#line 18635 "PhotoPage.c" - } -#line 2953 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ExternalEdit", _tmp0_); -#line 18639 "PhotoPage.c" -} - - -static void -library_photo_page_on_external_edit (LibraryPhotoPage* self) -{ - GError * _inner_error_ = NULL; -#line 2957 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2958 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 2959 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 18653 "PhotoPage.c" - } - { - AppWindow* _tmp0_; - AppWindow* _tmp1_; - Photo* _tmp2_; - Photo* _tmp3_; - AppWindow* _tmp4_; - AppWindow* _tmp5_; -#line 2962 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = app_window_get_instance (); -#line 2962 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 2962 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE_WINDOW, PageWindow)); -#line 2962 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_; -#line 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala" - photo_open_with_external_editor (_tmp3_, &_inner_error_); -#line 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 2963 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 18680 "PhotoPage.c" - goto __catch263_g_error; - } -#line 2964 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = app_window_get_instance (); -#line 2964 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _tmp4_; -#line 2964 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PAGE_WINDOW, PageWindow)); -#line 2964 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp5_); -#line 18691 "PhotoPage.c" - } - goto __finally263; - __catch263_g_error: - { - GError* err = NULL; - AppWindow* _tmp6_; - AppWindow* _tmp7_; - GError* _tmp8_; - Photo* _tmp9_; - Photo* _tmp10_; -#line 2961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - err = _inner_error_; -#line 2961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _inner_error_ = NULL; -#line 2966 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = app_window_get_instance (); -#line 2966 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_; -#line 2966 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PAGE_WINDOW, PageWindow)); -#line 2966 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp7_); -#line 2967 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = err; -#line 2967 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2967 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = _tmp9_; -#line 2967 "/home/jens/Source/shotwell/src/PhotoPage.vala" - open_external_editor_error_dialog (_tmp8_, _tmp10_); -#line 2967 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp10_); -#line 2961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_error_free0 (err); -#line 18726 "PhotoPage.c" - } - __finally263: -#line 2961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_clear_error (&_inner_error_); -#line 2961 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 18737 "PhotoPage.c" - } -} - - -static void -library_photo_page_on_external_edit_raw (LibraryPhotoPage* self) -{ - Photo* _tmp0_; - Photo* _tmp1_; - gboolean _tmp2_; - GError * _inner_error_ = NULL; -#line 2972 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2973 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 2974 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 18755 "PhotoPage.c" - } -#line 2976 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2976 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 2976 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = photo_get_master_file_format (_tmp1_) != PHOTO_FILE_FORMAT_RAW; -#line 2976 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 2976 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_) { -#line 2977 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 18769 "PhotoPage.c" - } - { - AppWindow* _tmp3_; - AppWindow* _tmp4_; - Photo* _tmp5_; - Photo* _tmp6_; - AppWindow* _tmp7_; - AppWindow* _tmp8_; -#line 2980 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = app_window_get_instance (); -#line 2980 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 2980 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PAGE_WINDOW, PageWindow)); -#line 2980 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp4_); -#line 2981 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2981 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 2981 "/home/jens/Source/shotwell/src/PhotoPage.vala" - photo_open_with_raw_external_editor (_tmp6_, &_inner_error_); -#line 2981 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp6_); -#line 2981 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 18796 "PhotoPage.c" - goto __catch264_g_error; - } -#line 2982 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = app_window_get_instance (); -#line 2982 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_; -#line 2982 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PAGE_WINDOW, PageWindow)); -#line 2982 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp8_); -#line 18807 "PhotoPage.c" - } - goto __finally264; - __catch264_g_error: - { - GError* err = NULL; - AppWindow* _tmp9_; - AppWindow* _tmp10_; - GError* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 2979 "/home/jens/Source/shotwell/src/PhotoPage.vala" - err = _inner_error_; -#line 2979 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _inner_error_ = NULL; -#line 2984 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = app_window_get_instance (); -#line 2984 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = _tmp9_; -#line 2984 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_PAGE_WINDOW, PageWindow)); -#line 2984 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp10_); -#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = err; -#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = resources_launch_editor_failed (_tmp11_); -#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = _tmp12_; -#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala" - app_window_error_message (_tmp13_, NULL); -#line 2985 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp13_); -#line 2979 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_error_free0 (err); -#line 18842 "PhotoPage.c" - } - __finally264: -#line 2979 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2979 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 2979 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_clear_error (&_inner_error_); -#line 2979 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 18853 "PhotoPage.c" - } -} - - -static void -library_photo_page_on_send_to (LibraryPhotoPage* self) -{ -#line 2989 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2990 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 18865 "PhotoPage.c" - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - GeeList* _tmp2_; - GeeCollection* _tmp3_; -#line 2991 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 2991 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 2991 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = view_collection_get_selected_sources (_tmp1_); -#line 2991 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 2991 "/home/jens/Source/shotwell/src/PhotoPage.vala" - desktop_integration_send_to (_tmp3_); -#line 2991 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 2991 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp1_); -#line 18884 "PhotoPage.c" - } -} - - -static void -library_photo_page_on_export (LibraryPhotoPage* self) -{ - ExportDialog* export_dialog = NULL; - ExportDialog* _tmp0_; - gint scale = 0; - ScaleConstraint constraint = 0; - ExportFormatParameters export_params = {0}; - ExportFormatParameters _tmp1_ = {0}; - ExportDialog* _tmp2_; - gint _tmp3_ = 0; - ScaleConstraint _tmp4_ = 0; - gboolean _tmp5_; - GFile* save_as = NULL; - Photo* _tmp6_; - Photo* _tmp7_; - ExportFormatParameters _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - GFile* _tmp11_; - GFile* _tmp12_; - GFile* _tmp13_; - Scaling scaling = {0}; - ScaleConstraint _tmp14_; - gint _tmp15_; - Scaling _tmp16_ = {0}; - GError * _inner_error_ = NULL; -#line 2994 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 2995 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 2996 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 18922 "PhotoPage.c" - } -#line 2998 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = export_dialog_new (_ ("Export Photo")); -#line 2998 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_object_ref_sink (_tmp0_); -#line 2998 "/home/jens/Source/shotwell/src/PhotoPage.vala" - export_dialog = _tmp0_; -#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" - export_format_parameters_last (&_tmp1_); -#line 3002 "/home/jens/Source/shotwell/src/PhotoPage.vala" - export_params = _tmp1_; -#line 3003 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = export_dialog; -#line 3003 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = export_dialog_execute (_tmp2_, &_tmp3_, &_tmp4_, &export_params); -#line 3003 "/home/jens/Source/shotwell/src/PhotoPage.vala" - scale = _tmp3_; -#line 3003 "/home/jens/Source/shotwell/src/PhotoPage.vala" - constraint = _tmp4_; -#line 3003 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!_tmp5_) { -#line 3004 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (export_dialog); -#line 3004 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 18948 "PhotoPage.c" - } -#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_; -#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = export_params; -#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = photo_get_export_basename_for_parameters (_tmp7_, &_tmp8_); -#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = _tmp9_; -#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = export_ui_choose_file (_tmp10_); -#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _tmp11_; -#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp10_); -#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp7_); -#line 3006 "/home/jens/Source/shotwell/src/PhotoPage.vala" - save_as = _tmp12_; -#line 3008 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = save_as; -#line 3008 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp13_ == NULL) { -#line 3009 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (save_as); -#line 3009 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (export_dialog); -#line 3009 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 18980 "PhotoPage.c" - } -#line 3011 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = constraint; -#line 3011 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = scale; -#line 3011 "/home/jens/Source/shotwell/src/PhotoPage.vala" - scaling_for_constraint (_tmp14_, _tmp15_, FALSE, &_tmp16_); -#line 3011 "/home/jens/Source/shotwell/src/PhotoPage.vala" - scaling = _tmp16_; -#line 18990 "PhotoPage.c" - { - Photo* _tmp17_; - Photo* _tmp18_; - GFile* _tmp19_; - Scaling _tmp20_; - ExportFormatParameters _tmp21_; - JpegQuality _tmp22_; - Photo* _tmp23_; - Photo* _tmp24_; - ExportFormatParameters _tmp25_; - ExportFormatParameters _tmp26_; - ExportFormatMode _tmp27_; - ExportFormatParameters _tmp28_; - gboolean _tmp29_; -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = _tmp17_; -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp19_ = save_as; -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp20_ = scaling; -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp21_ = export_params; -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp22_ = _tmp21_.quality; -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp23_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp24_ = _tmp23_; -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp25_ = export_params; -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp26_ = export_params; -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp27_ = _tmp26_.mode; -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp28_ = export_params; -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp29_ = _tmp28_.export_metadata; -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - photo_export (_tmp18_, _tmp19_, &_tmp20_, _tmp22_, photo_get_export_format_for_parameters (_tmp24_, &_tmp25_), _tmp27_ == EXPORT_FORMAT_MODE_UNMODIFIED, _tmp29_, &_inner_error_); -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp24_); -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp18_); -#line 3014 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 19039 "PhotoPage.c" - goto __catch265_g_error; - } - } - goto __finally265; - __catch265_g_error: - { - GError* err = NULL; - GFile* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - GError* _tmp33_; - const gchar* _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; -#line 3013 "/home/jens/Source/shotwell/src/PhotoPage.vala" - err = _inner_error_; -#line 3013 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _inner_error_ = NULL; -#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp30_ = save_as; -#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp31_ = g_file_get_path (_tmp30_); -#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp32_ = _tmp31_; -#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp33_ = err; -#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp34_ = _tmp33_->message; -#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp35_ = g_strdup_printf (_ ("Unable to export %s: %s"), _tmp32_, _tmp34_); -#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp36_ = _tmp35_; -#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - app_window_error_message (_tmp36_, NULL); -#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp36_); -#line 3018 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_free0 (_tmp32_); -#line 3013 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_error_free0 (err); -#line 19080 "PhotoPage.c" - } - __finally265: -#line 3013 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3013 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (save_as); -#line 3013 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (export_dialog); -#line 3013 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 3013 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_clear_error (&_inner_error_); -#line 3013 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 19095 "PhotoPage.c" - } -#line 2994 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (save_as); -#line 2994 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (export_dialog); -#line 19101 "PhotoPage.c" -} - - -static void -library_photo_page_on_publish (LibraryPhotoPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; -#line 3022 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3023 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3023 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 3023 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)) > 0; -#line 3023 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp1_); -#line 3023 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp2_) { -#line 19123 "PhotoPage.c" - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GeeList* _tmp5_; - GeeCollection* _tmp6_; -#line 3024 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3024 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 3024 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = view_collection_get_selected_sources (_tmp4_); -#line 3024 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection); -#line 3024 "/home/jens/Source/shotwell/src/PhotoPage.vala" - publishing_ui_publishing_dialog_go (_tmp6_); -#line 3024 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp6_); -#line 3024 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp4_); -#line 19142 "PhotoPage.c" - } -} - - -static void -library_photo_page_on_increase_rating (LibraryPhotoPage* self) -{ - gboolean _tmp0_ = FALSE; - SetRatingSingleCommand* command = NULL; - Photo* _tmp1_; - Photo* _tmp2_; - SetRatingSingleCommand* _tmp3_; - SetRatingSingleCommand* _tmp4_; - CommandManager* _tmp5_; - CommandManager* _tmp6_; - SetRatingSingleCommand* _tmp7_; -#line 3028 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3029 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 3029 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = TRUE; -#line 19165 "PhotoPage.c" - } else { -#line 3029 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 19169 "PhotoPage.c" - } -#line 3029 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 3030 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 19175 "PhotoPage.c" - } -#line 3032 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3032 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 3032 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = set_rating_single_command_new_inc_dec (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_SOURCE, DataSource), TRUE); -#line 3032 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 3032 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 3032 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command = _tmp4_; -#line 3033 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3033 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 3033 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = command; -#line 3033 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command_manager_execute (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_COMMAND, Command)); -#line 3033 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _command_manager_unref0 (_tmp6_); -#line 3035 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_update_rating_menu_item_sensitivity (self); -#line 3028 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (command); -#line 19203 "PhotoPage.c" -} - - -static void -library_photo_page_on_decrease_rating (LibraryPhotoPage* self) -{ - gboolean _tmp0_ = FALSE; - SetRatingSingleCommand* command = NULL; - Photo* _tmp1_; - Photo* _tmp2_; - SetRatingSingleCommand* _tmp3_; - SetRatingSingleCommand* _tmp4_; - CommandManager* _tmp5_; - CommandManager* _tmp6_; - SetRatingSingleCommand* _tmp7_; -#line 3038 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3039 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 3039 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = TRUE; -#line 19225 "PhotoPage.c" - } else { -#line 3039 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 19229 "PhotoPage.c" - } -#line 3039 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 3040 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 19235 "PhotoPage.c" - } -#line 3042 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3042 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 3042 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = set_rating_single_command_new_inc_dec (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_SOURCE, DataSource), FALSE); -#line 3042 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 3042 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 3042 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command = _tmp4_; -#line 3043 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3043 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 3043 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = command; -#line 3043 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command_manager_execute (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_COMMAND, Command)); -#line 3043 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _command_manager_unref0 (_tmp6_); -#line 3045 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_update_rating_menu_item_sensitivity (self); -#line 3038 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (command); -#line 19263 "PhotoPage.c" -} - - -static void -library_photo_page_on_set_rating (LibraryPhotoPage* self, - Rating rating) -{ - gboolean _tmp0_ = FALSE; - SetRatingSingleCommand* command = NULL; - Photo* _tmp1_; - Photo* _tmp2_; - SetRatingSingleCommand* _tmp3_; - SetRatingSingleCommand* _tmp4_; - CommandManager* _tmp5_; - CommandManager* _tmp6_; - SetRatingSingleCommand* _tmp7_; -#line 3048 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3049 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 3049 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = TRUE; -#line 19286 "PhotoPage.c" - } else { -#line 3049 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 19290 "PhotoPage.c" - } -#line 3049 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 3050 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 19296 "PhotoPage.c" - } -#line 3052 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3052 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 3052 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = set_rating_single_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_SOURCE, DataSource), rating); -#line 3052 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = _tmp3_; -#line 3052 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 3052 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command = _tmp4_; -#line 3053 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3053 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 3053 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = command; -#line 3053 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command_manager_execute (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_COMMAND, Command)); -#line 3053 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _command_manager_unref0 (_tmp6_); -#line 3055 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_update_rating_menu_item_sensitivity (self); -#line 3048 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (command); -#line 19324 "PhotoPage.c" -} - - -static void -library_photo_page_on_rate_rejected (LibraryPhotoPage* self) -{ -#line 3058 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3059 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_set_rating (self, RATING_REJECTED); -#line 19335 "PhotoPage.c" -} - - -static void -library_photo_page_on_rate_unrated (LibraryPhotoPage* self) -{ -#line 3062 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3063 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_set_rating (self, RATING_UNRATED); -#line 19346 "PhotoPage.c" -} - - -static void -library_photo_page_on_rate_one (LibraryPhotoPage* self) -{ -#line 3066 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3067 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_set_rating (self, RATING_ONE); -#line 19357 "PhotoPage.c" -} - - -static void -library_photo_page_on_rate_two (LibraryPhotoPage* self) -{ -#line 3070 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3071 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_set_rating (self, RATING_TWO); -#line 19368 "PhotoPage.c" -} - - -static void -library_photo_page_on_rate_three (LibraryPhotoPage* self) -{ -#line 3074 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3075 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_set_rating (self, RATING_THREE); -#line 19379 "PhotoPage.c" -} - - -static void -library_photo_page_on_rate_four (LibraryPhotoPage* self) -{ -#line 3078 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3079 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_set_rating (self, RATING_FOUR); -#line 19390 "PhotoPage.c" -} - - -static void -library_photo_page_on_rate_five (LibraryPhotoPage* self) -{ -#line 3082 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3083 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_on_set_rating (self, RATING_FIVE); -#line 19401 "PhotoPage.c" -} - - -static void -library_photo_page_update_rating_menu_item_sensitivity (LibraryPhotoPage* self) -{ - Photo* _tmp0_; - Photo* _tmp1_; - Photo* _tmp2_; - Photo* _tmp3_; - Photo* _tmp4_; - Photo* _tmp5_; - Photo* _tmp6_; - Photo* _tmp7_; - Photo* _tmp8_; - Photo* _tmp9_; - Photo* _tmp10_; - Photo* _tmp11_; - Photo* _tmp12_; - Photo* _tmp13_; - Photo* _tmp14_; - Photo* _tmp15_; - Photo* _tmp16_; - Photo* _tmp17_; -#line 3086 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3087 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3087 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 3087 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateRejected", media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE, MediaSource)) != RATING_REJECTED); -#line 3087 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 3088 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3088 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_; -#line 3088 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateUnrated", media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource)) != RATING_UNRATED); -#line 3088 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 3089 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3089 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _tmp4_; -#line 3089 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateOne", media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource)) != RATING_ONE); -#line 3089 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp5_); -#line 3090 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3090 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = _tmp6_; -#line 3090 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateTwo", media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MEDIA_SOURCE, MediaSource)) != RATING_TWO); -#line 3090 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp7_); -#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = _tmp8_; -#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateThree", media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_SOURCE, MediaSource)) != RATING_THREE); -#line 3091 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp9_); -#line 3092 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3092 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = _tmp10_; -#line 3092 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFour", media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_MEDIA_SOURCE, MediaSource)) != RATING_FOUR); -#line 3092 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp11_); -#line 3093 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3093 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = _tmp12_; -#line 3093 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RateFive", media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MEDIA_SOURCE, MediaSource)) != RATING_FIVE); -#line 3093 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp13_); -#line 3094 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3094 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = _tmp14_; -#line 3094 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseRating", rating_can_increase (media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_MEDIA_SOURCE, MediaSource)))); -#line 3094 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp15_); -#line 3095 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3095 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = _tmp16_; -#line 3095 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseRating", rating_can_decrease (media_source_get_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MEDIA_SOURCE, MediaSource)))); -#line 3095 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp17_); -#line 19500 "PhotoPage.c" -} - - -static GVariant* -_variant_new18 (const gchar* value) -{ -#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 19509 "PhotoPage.c" -} - - -static GVariant* -_variant_new19 (const gchar* value) -{ -#line 3112 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 19518 "PhotoPage.c" -} - - -static void -library_photo_page_update_development_menu_item_sensitivity (LibraryPhotoPage* self) -{ - PhotoFileFormat format = 0; - Photo* _tmp0_; - Photo* _tmp1_; - PhotoFileFormat _tmp2_; - PhotoFileFormat _tmp3_; - PhotoFileFormat _tmp4_; -#line 3098 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3099 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3099 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 3099 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = photo_get_master_file_format (_tmp1_); -#line 3099 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 3099 "/home/jens/Source/shotwell/src/PhotoPage.vala" - format = _tmp2_; -#line 3100 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = format; -#line 3100 "/home/jens/Source/shotwell/src/PhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper", _tmp3_ == PHOTO_FILE_FORMAT_RAW); -#line 3102 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = format; -#line 3102 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp4_ == PHOTO_FILE_FORMAT_RAW) { -#line 19551 "PhotoPage.c" - Photo* _tmp5_; - Photo* _tmp6_; - RawDeveloper _tmp7_; -#line 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = photo_get_raw_developer (_tmp6_); -#line 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp6_); -#line 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala" - switch (_tmp7_) { -#line 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala" - case RAW_DEVELOPER_SHOTWELL: -#line 19567 "PhotoPage.c" - { - GAction* _tmp8_; - GAction* _tmp9_; - GVariant* _tmp10_; -#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper"); -#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = _tmp8_; -#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = _variant_new18 ("Shotwell"); -#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_action_change_state (_tmp9_, _tmp10_); -#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_variant_unref0 (_tmp10_); -#line 3107 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp9_); -#line 3108 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 19586 "PhotoPage.c" - } -#line 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala" - case RAW_DEVELOPER_CAMERA: -#line 3105 "/home/jens/Source/shotwell/src/PhotoPage.vala" - case RAW_DEVELOPER_EMBEDDED: -#line 19592 "PhotoPage.c" - { - GAction* _tmp11_; - GAction* _tmp12_; - GVariant* _tmp13_; -#line 3112 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RawDeveloper"); -#line 3112 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _tmp11_; -#line 3112 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = _variant_new19 ("Camera"); -#line 3112 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_action_change_state (_tmp12_, _tmp13_); -#line 3112 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_variant_unref0 (_tmp13_); -#line 3112 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp12_); -#line 3113 "/home/jens/Source/shotwell/src/PhotoPage.vala" - break; -#line 19611 "PhotoPage.c" - } - default: - { -#line 3116 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_assert_not_reached (); -#line 19617 "PhotoPage.c" - } - } - } -} - - -static void -library_photo_page_on_metadata_altered (LibraryPhotoPage* self, - GeeMap* map) -{ - gboolean _tmp0_ = FALSE; - Photo* _tmp1_; - Photo* _tmp2_; - gboolean _tmp3_; -#line 3121 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3121 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (GEE_IS_MAP (map)); -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = _tmp1_; -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = gee_map_has_key (map, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_OBJECT, DataObject)); -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp3_) { -#line 19646 "PhotoPage.c" - Photo* _tmp4_; - Photo* _tmp5_; - gpointer _tmp6_; - Alteration* _tmp7_; -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _tmp4_; -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = gee_map_get (map, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_OBJECT, DataObject)); -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = (Alteration*) _tmp6_; -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = alteration_has_subject (_tmp7_, "metadata"); -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _alteration_unref0 (_tmp7_); -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp5_); -#line 19665 "PhotoPage.c" - } else { -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = FALSE; -#line 19669 "PhotoPage.c" - } -#line 3122 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp0_) { -#line 3123 "/home/jens/Source/shotwell/src/PhotoPage.vala" - single_photo_page_repaint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), NULL); -#line 19675 "PhotoPage.c" - } -} - - -static void -library_photo_page_on_add_tags (LibraryPhotoPage* self) -{ - AddTagsDialog* dialog = NULL; - AddTagsDialog* _tmp0_; - gchar** names = NULL; - AddTagsDialog* _tmp1_; - gint _tmp2_; - gchar** _tmp3_; - gint names_length1; - gint _names_size_; - gchar** _tmp4_; - gint _tmp4__length1; -#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3127 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = add_tags_dialog_new (); -#line 3127 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dialog = _tmp0_; -#line 3128 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = dialog; -#line 3128 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = add_tags_dialog_execute (_tmp1_, &_tmp2_); -#line 3128 "/home/jens/Source/shotwell/src/PhotoPage.vala" - names = _tmp3_; -#line 3128 "/home/jens/Source/shotwell/src/PhotoPage.vala" - names_length1 = _tmp2_; -#line 3128 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _names_size_ = names_length1; -#line 3129 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = names; -#line 3129 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4__length1 = names_length1; -#line 3129 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp4_ != NULL) { -#line 19715 "PhotoPage.c" - CommandManager* _tmp5_; - CommandManager* _tmp6_; - HierarchicalTagIndex* _tmp7_; - HierarchicalTagIndex* _tmp8_; - gchar** _tmp9_; - gint _tmp9__length1; - gint _tmp10_; - gchar** _tmp11_; - gchar** _tmp12_; - gint _tmp12__length1; - ViewCollection* _tmp13_; - ViewCollection* _tmp14_; - GeeList* _tmp15_; - GeeCollection* _tmp16_; - AddTagsCommand* _tmp17_; - AddTagsCommand* _tmp18_; -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = _tmp5_; -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = hierarchical_tag_index_get_global_index (); -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = _tmp7_; -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = names; -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9__length1 = names_length1; -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = hierarchical_tag_index_get_paths_for_names_array (_tmp8_, _tmp9_, _tmp9__length1, &_tmp10_); -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _tmp11_; -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12__length1 = _tmp10_; -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = _tmp13_; -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = view_collection_get_selected_sources (_tmp14_); -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection); -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp17_ = add_tags_command_new (_tmp12_, _tmp10_, _tmp16_); -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp18_ = _tmp17_; -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command_manager_execute (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_COMMAND, Command)); -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp18_); -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp16_); -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp14_); -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = (_vala_array_free (_tmp12_, _tmp12__length1, (GDestroyNotify) g_free), NULL); -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _hierarchical_tag_index_unref0 (_tmp8_); -#line 3130 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _command_manager_unref0 (_tmp6_); -#line 19776 "PhotoPage.c" - } -#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" - names = (_vala_array_free (names, names_length1, (GDestroyNotify) g_free), NULL); -#line 3126 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _text_entry_dialog_mediator_unref0 (dialog); -#line 19782 "PhotoPage.c" -} - - -static void -library_photo_page_on_modify_tags (LibraryPhotoPage* self) -{ - LibraryPhoto* photo = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - DataView* _tmp2_; - DataView* _tmp3_; - DataSource* _tmp4_; - LibraryPhoto* _tmp5_; - ModifyTagsDialog* dialog = NULL; - LibraryPhoto* _tmp6_; - ModifyTagsDialog* _tmp7_; - GeeArrayList* new_tags = NULL; - ModifyTagsDialog* _tmp8_; - GeeArrayList* _tmp9_; - GeeArrayList* _tmp10_; - CommandManager* _tmp11_; - CommandManager* _tmp12_; - LibraryPhoto* _tmp13_; - GeeArrayList* _tmp14_; - ModifyTagsCommand* _tmp15_; - ModifyTagsCommand* _tmp16_; -#line 3136 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_if_fail (IS_LIBRARY_PHOTO_PAGE (self)); -#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = _tmp0_; -#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = view_collection_get_selected_at (_tmp1_, 0); -#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp3_ = _tmp2_; -#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = data_view_get_source (_tmp3_); -#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_LIBRARY_PHOTO, LibraryPhoto); -#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _data_collection_unref0 (_tmp1_); -#line 3137 "/home/jens/Source/shotwell/src/PhotoPage.vala" - photo = _tmp5_; -#line 3139 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp6_ = photo; -#line 3139 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp7_ = modify_tags_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 3139 "/home/jens/Source/shotwell/src/PhotoPage.vala" - dialog = _tmp7_; -#line 3140 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp8_ = dialog; -#line 3140 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp9_ = modify_tags_dialog_execute (_tmp8_); -#line 3140 "/home/jens/Source/shotwell/src/PhotoPage.vala" - new_tags = _tmp9_; -#line 3142 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp10_ = new_tags; -#line 3142 "/home/jens/Source/shotwell/src/PhotoPage.vala" - if (_tmp10_ == NULL) { -#line 3143 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (new_tags); -#line 3143 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _text_entry_dialog_mediator_unref0 (dialog); -#line 3143 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photo); -#line 3143 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return; -#line 19853 "PhotoPage.c" - } -#line 3145 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp11_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 3145 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp12_ = _tmp11_; -#line 3145 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp13_ = photo; -#line 3145 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp14_ = new_tags; -#line 3145 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp15_ = modify_tags_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MEDIA_SOURCE, MediaSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 3145 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp16_ = _tmp15_; -#line 3145 "/home/jens/Source/shotwell/src/PhotoPage.vala" - command_manager_execute (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_COMMAND, Command)); -#line 3145 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp16_); -#line 3145 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _command_manager_unref0 (_tmp12_); -#line 3136 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (new_tags); -#line 3136 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _text_entry_dialog_mediator_unref0 (dialog); -#line 3136 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (photo); -#line 19879 "PhotoPage.c" -} - - -static gboolean -library_photo_page_library_photo_page_view_filter_real_predicate (ViewFilter* base, - DataView* view) -{ - LibraryPhotoPageLibraryPhotoPageViewFilter * self; - gboolean result = FALSE; - DataSource* _tmp0_; - MediaSource* _tmp1_; - gboolean _tmp2_; -#line 2335 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_PHOTO_PAGE_TYPE_LIBRARY_PHOTO_PAGE_VIEW_FILTER, LibraryPhotoPageLibraryPhotoPageViewFilter); -#line 2335 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_return_val_if_fail (IS_DATA_VIEW (view), FALSE); -#line 2336 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = data_view_get_source (view); -#line 2336 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource); -#line 2336 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = !media_source_is_trashed (_tmp1_); -#line 2336 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 2336 "/home/jens/Source/shotwell/src/PhotoPage.vala" - result = _tmp2_; -#line 2336 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return result; -#line 19908 "PhotoPage.c" -} - - -static LibraryPhotoPageLibraryPhotoPageViewFilter* -library_photo_page_library_photo_page_view_filter_construct (GType object_type) -{ - LibraryPhotoPageLibraryPhotoPageViewFilter* self = NULL; -#line 2334 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = (LibraryPhotoPageLibraryPhotoPageViewFilter*) view_filter_construct (object_type); -#line 2334 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return self; -#line 19920 "PhotoPage.c" -} - - -static LibraryPhotoPageLibraryPhotoPageViewFilter* -library_photo_page_library_photo_page_view_filter_new (void) -{ -#line 2334 "/home/jens/Source/shotwell/src/PhotoPage.vala" - return library_photo_page_library_photo_page_view_filter_construct (LIBRARY_PHOTO_PAGE_TYPE_LIBRARY_PHOTO_PAGE_VIEW_FILTER); -#line 19929 "PhotoPage.c" -} - - -static void -library_photo_page_library_photo_page_view_filter_class_init (LibraryPhotoPageLibraryPhotoPageViewFilterClass * klass) -{ -#line 2334 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_library_photo_page_view_filter_parent_class = g_type_class_peek_parent (klass); -#line 2334 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((ViewFilterClass *) klass)->predicate = (gboolean (*) (ViewFilter *, DataView*)) library_photo_page_library_photo_page_view_filter_real_predicate; -#line 19940 "PhotoPage.c" -} - - -static void -library_photo_page_library_photo_page_view_filter_instance_init (LibraryPhotoPageLibraryPhotoPageViewFilter * self) -{ -} - - -static GType -library_photo_page_library_photo_page_view_filter_get_type (void) -{ - static volatile gsize library_photo_page_library_photo_page_view_filter_type_id__volatile = 0; - if (g_once_init_enter (&library_photo_page_library_photo_page_view_filter_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryPhotoPageLibraryPhotoPageViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_photo_page_library_photo_page_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryPhotoPageLibraryPhotoPageViewFilter), 0, (GInstanceInitFunc) library_photo_page_library_photo_page_view_filter_instance_init, NULL }; - GType library_photo_page_library_photo_page_view_filter_type_id; - library_photo_page_library_photo_page_view_filter_type_id = g_type_register_static (TYPE_VIEW_FILTER, "LibraryPhotoPageLibraryPhotoPageViewFilter", &g_define_type_info, 0); - g_once_init_leave (&library_photo_page_library_photo_page_view_filter_type_id__volatile, library_photo_page_library_photo_page_view_filter_type_id); - } - return library_photo_page_library_photo_page_view_filter_type_id__volatile; -} - - -static void -library_photo_page_class_init (LibraryPhotoPageClass * klass) -{ -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - library_photo_page_parent_class = g_type_class_peek_parent (klass); -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_type_class_add_private (klass, sizeof (LibraryPhotoPagePrivate)); -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) library_photo_page_real_init_collect_ui_filenames; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) library_photo_page_real_add_actions; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) library_photo_page_real_remove_actions; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->init_collect_injection_groups = (InjectionGroup** (*) (Page *, int*)) library_photo_page_real_init_collect_injection_groups; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) library_photo_page_real_update_actions; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((LibraryPhotoPageClass *) klass)->developer_changed = (void (*) (LibraryPhotoPage *, RawDeveloper)) library_photo_page_real_developer_changed; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->switched_to = (void (*) (Page *)) library_photo_page_real_switched_to; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->switching_from = (void (*) (Page *)) library_photo_page_real_switching_from; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->get_bottom_left_trinket = (GdkPixbuf* (*) (EditingHostPage *, gint)) library_photo_page_real_get_bottom_left_trinket; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->get_top_right_trinket = (GdkPixbuf* (*) (EditingHostPage *, gint)) library_photo_page_real_get_top_right_trinket; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->on_increase_size = (void (*) (EditingHostPage *)) library_photo_page_real_on_increase_size; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->on_decrease_size = (void (*) (EditingHostPage *)) library_photo_page_real_on_decrease_size; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->on_zoom_slider_key_press = (gboolean (*) (EditingHostPage *, GdkEventKey*)) library_photo_page_real_on_zoom_slider_key_press; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->update_ui = (void (*) (EditingHostPage *, gboolean)) library_photo_page_real_update_ui; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->notify_photo_backing_missing = (void (*) (EditingHostPage *, Photo*, gboolean)) library_photo_page_real_notify_photo_backing_missing; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) library_photo_page_real_key_press_event; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((EditingHostPageClass *) klass)->on_double_click = (gboolean (*) (EditingHostPage *, GdkEventButton*)) library_photo_page_real_on_double_click; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_left_released = (gboolean (*) (Page *, GdkEventButton*)) library_photo_page_real_on_left_released; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_context_buttonpress = (gboolean (*) (Page *, GdkEventButton*)) library_photo_page_real_on_context_buttonpress; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - ((PageClass *) klass)->on_context_keypress = (gboolean (*) (Page *)) library_photo_page_real_on_context_keypress; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - G_OBJECT_CLASS (klass)->finalize = library_photo_page_finalize; -#line 20013 "PhotoPage.c" -} - - -static void -library_photo_page_instance_init (LibraryPhotoPage * self) -{ - LibraryPhotoPageLibraryPhotoPageViewFilter* _tmp0_; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv = LIBRARY_PHOTO_PAGE_GET_PRIVATE (self); -#line 2340 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->return_page = NULL; -#line 2341 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->return_to_collection_on_release = FALSE; -#line 2342 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = library_photo_page_library_photo_page_view_filter_new (); -#line 2342 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self->priv->filter = _tmp0_; -#line 20031 "PhotoPage.c" -} - - -static void -library_photo_page_finalize (GObject * obj) -{ - LibraryPhotoPage * self; - LibraryPhotoSourceCollection* _tmp0_; - guint _tmp1_; - LibraryPhotoSourceCollection* _tmp2_; - guint _tmp3_; - ConfigFacade* _tmp4_; - ConfigFacade* _tmp5_; - guint _tmp6_; -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage); -#line 2364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp0_ = library_photo_global; -#line 2364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE); -#line 2364 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _library_photo_page_on_photo_destroyed_source_collection_item_destroyed, self); -#line 2365 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp2_ = library_photo_global; -#line 2365 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE); -#line 2365 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _library_photo_page_on_metadata_altered_data_collection_items_altered, self); -#line 2366 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp4_ = config_facade_get_instance (); -#line 2366 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _tmp5_ = _tmp4_; -#line 2366 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_parse_name ("external-app-changed", TYPE_CONFIGURATION_FACADE, &_tmp6_, NULL, FALSE); -#line 2366 "/home/jens/Source/shotwell/src/PhotoPage.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _library_photo_page_on_external_app_changed_configuration_facade_external_app_changed, self); -#line 2366 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (_tmp5_); -#line 2340 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->return_page); -#line 2342 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _view_filter_unref0 (self->priv->filter); -#line 2835 "/home/jens/Source/shotwell/src/PhotoPage.vala" - _g_object_unref0 (self->priv->context_menu); -#line 2332 "/home/jens/Source/shotwell/src/PhotoPage.vala" - G_OBJECT_CLASS (library_photo_page_parent_class)->finalize (obj); -#line 20078 "PhotoPage.c" -} - - -GType -library_photo_page_get_type (void) -{ - static volatile gsize library_photo_page_type_id__volatile = 0; - if (g_once_init_enter (&library_photo_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryPhotoPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_photo_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryPhotoPage), 0, (GInstanceInitFunc) library_photo_page_instance_init, NULL }; - GType library_photo_page_type_id; - library_photo_page_type_id = g_type_register_static (TYPE_EDITING_HOST_PAGE, "LibraryPhotoPage", &g_define_type_info, 0); - g_once_init_leave (&library_photo_page_type_id__volatile, library_photo_page_type_id); - } - return library_photo_page_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/PhotoPage.vala b/src/PhotoPage.vala index 5c2a1de..af1d50c 100644 --- a/src/PhotoPage.vala +++ b/src/PhotoPage.vala @@ -396,6 +396,9 @@ public abstract class EditingHostPage : SinglePhotoPage { private Gtk.ToggleToolButton redeye_button = null; private Gtk.ToggleToolButton adjust_button = null; private Gtk.ToggleToolButton straighten_button = null; +#if ENABLE_FACES + private Gtk.ToggleToolButton faces_button = null; +#endif private Gtk.ToolButton enhance_button = null; private Gtk.Scale zoom_slider = null; private Gtk.ToolButton prev_button = new Gtk.ToolButton(null, Resources.PREVIOUS_LABEL); @@ -446,7 +449,7 @@ public abstract class EditingHostPage : SinglePhotoPage { // crop tool crop_button = new Gtk.ToggleToolButton (); - crop_button.set_icon_name("crop"); + crop_button.set_icon_name("image-crop-symbolic"); crop_button.set_label(Resources.CROP_LABEL); crop_button.set_tooltip_text(Resources.CROP_TOOLTIP); crop_button.toggled.connect(on_crop_toggled); @@ -455,7 +458,7 @@ public abstract class EditingHostPage : SinglePhotoPage { // straightening tool straighten_button = new Gtk.ToggleToolButton (); - straighten_button.set_icon_name("straighten"); + straighten_button.set_icon_name(Resources.STRAIGHTEN); straighten_button.set_label(Resources.STRAIGHTEN_LABEL); straighten_button.set_tooltip_text(Resources.STRAIGHTEN_TOOLTIP); straighten_button.toggled.connect(on_straighten_toggled); @@ -464,7 +467,7 @@ public abstract class EditingHostPage : SinglePhotoPage { // redeye reduction tool redeye_button = new Gtk.ToggleToolButton (); - redeye_button.set_icon_name("redeye"); + redeye_button.set_icon_name("stock-eye-symbolic"); redeye_button.set_label(Resources.RED_EYE_LABEL); redeye_button.set_tooltip_text(Resources.RED_EYE_TOOLTIP); redeye_button.toggled.connect(on_redeye_toggled); @@ -488,6 +491,13 @@ public abstract class EditingHostPage : SinglePhotoPage { enhance_button.is_important = true; toolbar.insert(enhance_button, -1); +#if ENABLE_FACES + // faces tool + insert_faces_button(toolbar); + faces_button = new Gtk.ToggleToolButton(); + //face_button +#endif + // separator to force next/prev buttons to right side of toolbar Gtk.SeparatorToolItem separator = new Gtk.SeparatorToolItem(); separator.set_expand(true); @@ -496,8 +506,7 @@ public abstract class EditingHostPage : SinglePhotoPage { Gtk.Box zoom_group = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0); - Gtk.Image zoom_out = new Gtk.Image.from_pixbuf(Resources.load_icon(Resources.ICON_ZOOM_OUT, - Resources.ICON_ZOOM_SCALE)); + Gtk.Image zoom_out = new Gtk.Image.from_icon_name("image-zoom-out-symbolic", Gtk.IconSize.SMALL_TOOLBAR); Gtk.EventBox zoom_out_box = new Gtk.EventBox(); zoom_out_box.set_above_child(true); zoom_out_box.set_visible_window(false); @@ -518,8 +527,7 @@ public abstract class EditingHostPage : SinglePhotoPage { zoom_group.pack_start(zoom_slider, false, false, 0); - Gtk.Image zoom_in = new Gtk.Image.from_pixbuf(Resources.load_icon(Resources.ICON_ZOOM_IN, - Resources.ICON_ZOOM_SCALE)); + Gtk.Image zoom_in = new Gtk.Image.from_icon_name("image-zoom-in-symbolic", Gtk.IconSize.SMALL_TOOLBAR); Gtk.EventBox zoom_in_box = new Gtk.EventBox(); zoom_in_box.set_above_child(true); zoom_in_box.set_visible_window(false); @@ -534,15 +542,19 @@ public abstract class EditingHostPage : SinglePhotoPage { toolbar.insert(group_wrapper, -1); + separator = new Gtk.SeparatorToolItem(); + separator.set_draw(false); + toolbar.insert(separator, -1); + // previous button prev_button.set_tooltip_text(_("Previous photo")); - prev_button.set_icon_name("go-previous"); + prev_button.set_icon_name("go-previous-symbolic"); prev_button.clicked.connect(on_previous_photo); toolbar.insert(prev_button, -1); // next button next_button.set_tooltip_text(_("Next photo")); - next_button.set_icon_name("go-next"); + next_button.set_icon_name("go-next-symbolic"); next_button.clicked.connect(on_next_photo); toolbar.insert(next_button, -1); } @@ -2226,9 +2238,9 @@ public abstract class EditingHostPage : SinglePhotoPage { Gtk.Allocation toolbar_alloc; get_toolbar().get_allocation(out toolbar_alloc); - Gdk.Screen screen = get_container().get_screen(); - x = screen.get_width(); - y = screen.get_height() - toolbar_alloc.height - + var dimensions = Scaling.get_screen_dimensions(get_container()); + x = dimensions.width; + y = dimensions.height - toolbar_alloc.height - tool_alloc.height - TOOL_WINDOW_SEPARATOR; // put larger adjust tool off to the side @@ -2241,9 +2253,9 @@ public abstract class EditingHostPage : SinglePhotoPage { } // however, clamp the window so it's never off-screen initially - Gdk.Screen screen = get_container().get_screen(); - x = x.clamp(0, screen.get_width() - tool_alloc.width); - y = y.clamp(0, screen.get_height() - tool_alloc.height); + var dimensions = Scaling.get_screen_dimensions(get_container()); + x = x.clamp(0, dimensions.width - tool_alloc.width); + y = y.clamp(0, dimensions.height - tool_alloc.height); tool_window.move(x, y); tool_window.show(); @@ -2323,6 +2335,14 @@ public abstract class EditingHostPage : SinglePhotoPage { protected void unset_view_collection() { parent_view = null; } + + // This method is intentionally empty --its purpose is to allow overriding + // it in LibraryPhotoPage, since FacesTool must only be present in + // LibraryMode, but it need to be called from constructor of EditingHostPage + // to place it correctly in the toolbar. + protected virtual void insert_faces_button(Gtk.Toolbar toolbar) { + ; + } } // @@ -2337,6 +2357,9 @@ public class LibraryPhotoPage : EditingHostPage { } } +#if ENABLE_FACES + private Gtk.ToggleToolButton faces_button = null; +#endif private CollectionPage? return_page = null; private bool return_to_collection_on_release = false; private LibraryPhotoPageViewFilter filter = new LibraryPhotoPageViewFilter(); @@ -2641,7 +2664,7 @@ public class LibraryPhotoPage : EditingHostPage { if (!has_photo() || !((LibraryPhoto) get_photo()).is_flagged()) return null; - return Resources.get_icon(Resources.ICON_FLAGGED_TRINKET); + return Resources.get_flagged_trinket(scale); } private void on_slideshow() { @@ -3144,5 +3167,25 @@ public class LibraryPhotoPage : EditingHostPage { get_command_manager().execute(new ModifyTagsCommand(photo, new_tags)); } + +#if ENABLE_FACES + private void on_faces_toggled() { + on_tool_button_toggled(faces_button, FacesTool.factory); + } + + protected void toggle_faces() { + faces_button.set_active(!faces_button.get_active()); + } + + protected override void insert_faces_button(Gtk.Toolbar toolbar) { + faces_button = new Gtk.ToggleToolButton.from_stock(Resources.FACES_TOOL); + faces_button.set_icon_name(Resources.ICON_FACES); + faces_button.set_label(Resources.FACES_LABEL); + faces_button.set_tooltip_text(Resources.FACES_TOOLTIP); + faces_button.toggled.connect(on_faces_toggled); + faces_button.is_important = true; + toolbar.insert(faces_button, -1); + } +#endif } diff --git a/src/PixbufCache.c b/src/PixbufCache.c deleted file mode 100644 index c4d3563..0000000 --- a/src/PixbufCache.c +++ /dev/null @@ -1,2689 +0,0 @@ -/* PixbufCache.c generated by valac 0.40.4, the Vala compiler - * generated from PixbufCache.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PIXBUF_CACHE (pixbuf_cache_get_type ()) -#define PIXBUF_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXBUF_CACHE, PixbufCache)) -#define PIXBUF_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXBUF_CACHE, PixbufCacheClass)) -#define IS_PIXBUF_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXBUF_CACHE)) -#define IS_PIXBUF_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXBUF_CACHE)) -#define PIXBUF_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXBUF_CACHE, PixbufCacheClass)) - -typedef struct _PixbufCache PixbufCache; -typedef struct _PixbufCacheClass PixbufCacheClass; -typedef struct _PixbufCachePrivate PixbufCachePrivate; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define PIXBUF_CACHE_TYPE_PHOTO_TYPE (pixbuf_cache_photo_type_get_type ()) - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -typedef struct _Scaling Scaling; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_BACKGROUND_JOB (background_job_get_type ()) -#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob)) -#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass)) -#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB)) -#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB)) -#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass)) - -typedef struct _BackgroundJob BackgroundJob; -typedef struct _BackgroundJobClass BackgroundJobClass; - -#define PIXBUF_CACHE_TYPE_FETCH_JOB (pixbuf_cache_fetch_job_get_type ()) -#define PIXBUF_CACHE_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)) -#define PIXBUF_CACHE_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJobClass)) -#define PIXBUF_CACHE_IS_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIXBUF_CACHE_TYPE_FETCH_JOB)) -#define PIXBUF_CACHE_IS_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PIXBUF_CACHE_TYPE_FETCH_JOB)) -#define PIXBUF_CACHE_FETCH_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJobClass)) - -typedef struct _PixbufCacheFetchJob PixbufCacheFetchJob; -typedef struct _PixbufCacheFetchJobClass PixbufCacheFetchJobClass; -enum { - PIXBUF_CACHE_0_PROPERTY, - PIXBUF_CACHE_NUM_PROPERTIES -}; -static GParamSpec* pixbuf_cache_properties[PIXBUF_CACHE_NUM_PROPERTIES]; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL))) - -#define TYPE_WORKERS (workers_get_type ()) -#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers)) -#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass)) -#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS)) -#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS)) -#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass)) - -typedef struct _Workers Workers; -typedef struct _WorkersClass WorkersClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _workers_unref0(var) ((var == NULL) ? NULL : (var = (workers_unref (var), NULL))) -typedef struct _BackgroundJobPrivate BackgroundJobPrivate; - -#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ()) -typedef struct _PixbufCacheFetchJobPrivate PixbufCacheFetchJobPrivate; - -#define PIXBUF_CACHE_TYPE_BASELINE_FETCH_JOB (pixbuf_cache_baseline_fetch_job_get_type ()) -#define PIXBUF_CACHE_BASELINE_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIXBUF_CACHE_TYPE_BASELINE_FETCH_JOB, PixbufCacheBaselineFetchJob)) -#define PIXBUF_CACHE_BASELINE_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PIXBUF_CACHE_TYPE_BASELINE_FETCH_JOB, PixbufCacheBaselineFetchJobClass)) -#define PIXBUF_CACHE_IS_BASELINE_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIXBUF_CACHE_TYPE_BASELINE_FETCH_JOB)) -#define PIXBUF_CACHE_IS_BASELINE_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PIXBUF_CACHE_TYPE_BASELINE_FETCH_JOB)) -#define PIXBUF_CACHE_BASELINE_FETCH_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PIXBUF_CACHE_TYPE_BASELINE_FETCH_JOB, PixbufCacheBaselineFetchJobClass)) - -typedef struct _PixbufCacheBaselineFetchJob PixbufCacheBaselineFetchJob; -typedef struct _PixbufCacheBaselineFetchJobClass PixbufCacheBaselineFetchJobClass; - -#define PIXBUF_CACHE_TYPE_MASTER_FETCH_JOB (pixbuf_cache_master_fetch_job_get_type ()) -#define PIXBUF_CACHE_MASTER_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIXBUF_CACHE_TYPE_MASTER_FETCH_JOB, PixbufCacheMasterFetchJob)) -#define PIXBUF_CACHE_MASTER_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PIXBUF_CACHE_TYPE_MASTER_FETCH_JOB, PixbufCacheMasterFetchJobClass)) -#define PIXBUF_CACHE_IS_MASTER_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIXBUF_CACHE_TYPE_MASTER_FETCH_JOB)) -#define PIXBUF_CACHE_IS_MASTER_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PIXBUF_CACHE_TYPE_MASTER_FETCH_JOB)) -#define PIXBUF_CACHE_MASTER_FETCH_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PIXBUF_CACHE_TYPE_MASTER_FETCH_JOB, PixbufCacheMasterFetchJobClass)) - -typedef struct _PixbufCacheMasterFetchJob PixbufCacheMasterFetchJob; -typedef struct _PixbufCacheMasterFetchJobClass PixbufCacheMasterFetchJobClass; - -#define PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH (pixbuf_cache_pixbuf_cache_batch_get_type ()) -#define PIXBUF_CACHE_PIXBUF_CACHE_BATCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH, PixbufCachePixbufCacheBatch)) -#define PIXBUF_CACHE_PIXBUF_CACHE_BATCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH, PixbufCachePixbufCacheBatchClass)) -#define PIXBUF_CACHE_IS_PIXBUF_CACHE_BATCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH)) -#define PIXBUF_CACHE_IS_PIXBUF_CACHE_BATCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH)) -#define PIXBUF_CACHE_PIXBUF_CACHE_BATCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH, PixbufCachePixbufCacheBatchClass)) - -typedef struct _PixbufCachePixbufCacheBatch PixbufCachePixbufCacheBatch; -typedef struct _PixbufCachePixbufCacheBatchClass PixbufCachePixbufCacheBatchClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) -typedef struct _PixbufCachePixbufCacheBatchPrivate PixbufCachePixbufCacheBatchPrivate; -enum { - PIXBUF_CACHE_PIXBUF_CACHE_BATCH_0_PROPERTY, - PIXBUF_CACHE_PIXBUF_CACHE_BATCH_NUM_PROPERTIES -}; -static GParamSpec* pixbuf_cache_pixbuf_cache_batch_properties[PIXBUF_CACHE_PIXBUF_CACHE_BATCH_NUM_PROPERTIES]; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ()) -#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)) -#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) -#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE)) -#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE)) -#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) - -typedef struct _AbstractSemaphore AbstractSemaphore; -typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass; - -#define TYPE_SEMAPHORE (semaphore_get_type ()) -#define SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEMAPHORE, Semaphore)) -#define SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEMAPHORE, SemaphoreClass)) -#define IS_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEMAPHORE)) -#define IS_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEMAPHORE)) -#define SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEMAPHORE, SemaphoreClass)) - -typedef struct _Semaphore Semaphore; -typedef struct _SemaphoreClass SemaphoreClass; -#define _abstract_semaphore_unref0(var) ((var == NULL) ? NULL : (var = (abstract_semaphore_unref (var), NULL))) -typedef struct _PixbufCacheBaselineFetchJobPrivate PixbufCacheBaselineFetchJobPrivate; -typedef struct _PixbufCacheMasterFetchJobPrivate PixbufCacheMasterFetchJobPrivate; -enum { - PIXBUF_CACHE_FETCHED_SIGNAL, - PIXBUF_CACHE_NUM_SIGNALS -}; -static guint pixbuf_cache_signals[PIXBUF_CACHE_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PixbufCache { - GObject parent_instance; - PixbufCachePrivate * priv; -}; - -struct _PixbufCacheClass { - GObjectClass parent_class; -}; - -typedef enum { - PIXBUF_CACHE_PHOTO_TYPE_BASELINE, - PIXBUF_CACHE_PHOTO_TYPE_MASTER -} PixbufCachePhotoType; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -typedef gboolean (*PixbufCacheCacheFilter) (Photo* photo, void* user_data); -struct _PixbufCachePrivate { - SourceCollection* sources; - PixbufCachePhotoType type; - gint max_count; - Scaling scaling; - PixbufCacheCacheFilter filter; - gpointer filter_target; - GeeHashMap* cache; - GeeArrayList* lru; - GeeHashMap* in_progress; -}; - -typedef enum { - BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100, - BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75, - BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50, - BACKGROUND_JOB_JOB_PRIORITY_LOW = 25, - BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0 -} BackgroundJobJobPriority; - -struct _BackgroundJob { - GTypeInstance parent_instance; - volatile int ref_count; - BackgroundJobPrivate * priv; -}; - -struct _BackgroundJobClass { - GTypeClass parent_class; - void (*finalize) (BackgroundJob *self); - void (*execute) (BackgroundJob* self); - BackgroundJobJobPriority (*get_priority) (BackgroundJob* self); -}; - -struct _PixbufCacheFetchJob { - BackgroundJob parent_instance; - PixbufCacheFetchJobPrivate * priv; - BackgroundJobJobPriority priority; - Photo* photo; - Scaling scaling; - GdkPixbuf* pixbuf; - GError* err; -}; - -struct _PixbufCacheFetchJobClass { - BackgroundJobClass parent_class; -}; - -typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data); -struct _PixbufCachePixbufCacheBatch { - GeeTreeMultiMap parent_instance; - PixbufCachePixbufCacheBatchPrivate * priv; -}; - -struct _PixbufCachePixbufCacheBatchClass { - GeeTreeMultiMapClass parent_class; -}; - -typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data); -struct _PixbufCacheBaselineFetchJob { - PixbufCacheFetchJob parent_instance; - PixbufCacheBaselineFetchJobPrivate * priv; -}; - -struct _PixbufCacheBaselineFetchJobClass { - PixbufCacheFetchJobClass parent_class; -}; - -struct _PixbufCacheMasterFetchJob { - PixbufCacheFetchJob parent_instance; - PixbufCacheMasterFetchJobPrivate * priv; -}; - -struct _PixbufCacheMasterFetchJobClass { - PixbufCacheFetchJobClass parent_class; -}; - - -static gpointer pixbuf_cache_parent_class = NULL; -static Workers* pixbuf_cache_background_workers; -static Workers* pixbuf_cache_background_workers = NULL; -static gpointer pixbuf_cache_pixbuf_cache_batch_parent_class = NULL; -static gpointer pixbuf_cache_fetch_job_parent_class = NULL; -static gpointer pixbuf_cache_baseline_fetch_job_parent_class = NULL; -static gpointer pixbuf_cache_master_fetch_job_parent_class = NULL; - -GType pixbuf_cache_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType pixbuf_cache_photo_type_get_type (void) G_GNUC_CONST; -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -gpointer background_job_ref (gpointer instance); -void background_job_unref (gpointer instance); -GParamSpec* param_spec_background_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_background_job (GValue* value, - gpointer v_object); -void value_take_background_job (GValue* value, - gpointer v_object); -gpointer value_get_background_job (const GValue* value); -GType background_job_get_type (void) G_GNUC_CONST; -static GType pixbuf_cache_fetch_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define PIXBUF_CACHE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PIXBUF_CACHE, PixbufCachePrivate)) -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -static void pixbuf_cache_on_sources_altered (PixbufCache* self, - GeeMap* map); -static void _pixbuf_cache_on_sources_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -static void pixbuf_cache_on_sources_removed (PixbufCache* self, - GeeIterable* removed); -static void _pixbuf_cache_on_sources_removed_data_collection_items_removed (DataCollection* _sender, - GeeIterable* removed, - gpointer self); -void background_job_cancel (BackgroundJob* self); -gpointer workers_ref (gpointer instance); -void workers_unref (gpointer instance); -GParamSpec* param_spec_workers (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_workers (GValue* value, - gpointer v_object); -void value_take_workers (GValue* value, - gpointer v_object); -gpointer value_get_workers (const GValue* value); -GType workers_get_type (void) G_GNUC_CONST; -PixbufCache* pixbuf_cache_new (SourceCollection* sources, - PixbufCachePhotoType type, - Scaling* scaling, - gint max_count, - PixbufCacheCacheFilter filter, - void* filter_target); -PixbufCache* pixbuf_cache_construct (GType object_type, - SourceCollection* sources, - PixbufCachePhotoType type, - Scaling* scaling, - gint max_count, - PixbufCacheCacheFilter filter, - void* filter_target); -guint workers_thread_per_cpu_minus_one (void); -Workers* workers_new (guint max_threads, - gboolean exclusive); -Workers* workers_construct (GType object_type, - guint max_threads, - gboolean exclusive); -void pixbuf_cache_get_scaling (PixbufCache* self, - Scaling* result); -GdkPixbuf* pixbuf_cache_get_ready_pixbuf (PixbufCache* self, - Photo* photo); -static GdkPixbuf* pixbuf_cache_get_cached (PixbufCache* self, - Photo* photo); -GdkPixbuf* pixbuf_cache_fetch (PixbufCache* self, - Photo* photo, - GError** error); -GFile* photo_get_actual_file (Photo* self); -static void pixbuf_cache_decache (PixbufCache* self, - Photo* photo); -void background_job_wait_for_completion (BackgroundJob* self); -GType background_job_job_priority_get_type (void) G_GNUC_CONST; -GdkPixbuf* photo_source_get_pixbuf (PhotoSource* self, - Scaling* scaling, - GError** error); -static void pixbuf_cache_encache (PixbufCache* self, - Photo* photo, - GdkPixbuf* pixbuf); -void pixbuf_cache_drop (PixbufCache* self, - Photo* photo); -gboolean pixbuf_cache_cancel_prefetch (PixbufCache* self, - Photo* photo); -void pixbuf_cache_prefetch (PixbufCache* self, - Photo* photo, - BackgroundJobJobPriority priority, - gboolean force); -static void pixbuf_cache_prioritize (PixbufCache* self, - Photo* photo); -static void pixbuf_cache_on_fetched (PixbufCache* self, - BackgroundJob* j); -static void _pixbuf_cache_on_fetched_completion_callback (BackgroundJob* job, - gpointer self); -static PixbufCacheBaselineFetchJob* pixbuf_cache_baseline_fetch_job_new (PixbufCache* owner, - BackgroundJobJobPriority priority, - Photo* photo, - Scaling* scaling, - CompletionCallback callback, - void* callback_target); -static PixbufCacheBaselineFetchJob* pixbuf_cache_baseline_fetch_job_construct (GType object_type, - PixbufCache* owner, - BackgroundJobJobPriority priority, - Photo* photo, - Scaling* scaling, - CompletionCallback callback, - void* callback_target); -static GType pixbuf_cache_baseline_fetch_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static PixbufCacheMasterFetchJob* pixbuf_cache_master_fetch_job_new (PixbufCache* owner, - BackgroundJobJobPriority priority, - Photo* photo, - Scaling* scaling, - CompletionCallback callback, - void* callback_target); -static PixbufCacheMasterFetchJob* pixbuf_cache_master_fetch_job_construct (GType object_type, - PixbufCache* owner, - BackgroundJobJobPriority priority, - Photo* photo, - Scaling* scaling, - CompletionCallback callback, - void* callback_target); -static GType pixbuf_cache_master_fetch_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -void workers_enqueue (Workers* self, - BackgroundJob* job); -void pixbuf_cache_prefetch_many (PixbufCache* self, - GeeCollection* photos, - BackgroundJobJobPriority priority, - gboolean force); -GType pixbuf_cache_pixbuf_cache_batch_get_type (void) G_GNUC_CONST; -void pixbuf_cache_prefetch_batch (PixbufCache* self, - PixbufCachePixbufCacheBatch* batch, - gboolean force); -void pixbuf_cache_cancel_all (PixbufCache* self); -gchar* data_object_to_string (DataObject* self); -gboolean alteration_has_subject (Alteration* self, - const gchar* subject); -static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_POINTER (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -PixbufCachePixbufCacheBatch* pixbuf_cache_pixbuf_cache_batch_new (void); -PixbufCachePixbufCacheBatch* pixbuf_cache_pixbuf_cache_batch_construct (GType object_type); -gint background_job_job_priority_compare_func (BackgroundJobJobPriority a, - BackgroundJobJobPriority b); -static PixbufCacheFetchJob* pixbuf_cache_fetch_job_construct (GType object_type, - PixbufCache* owner, - BackgroundJobJobPriority priority, - Photo* photo, - Scaling* scaling, - CompletionCallback callback, - void* callback_target); -Semaphore* semaphore_new (void); -Semaphore* semaphore_construct (GType object_type); -gpointer abstract_semaphore_ref (gpointer instance); -void abstract_semaphore_unref (gpointer instance); -GParamSpec* param_spec_abstract_semaphore (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_abstract_semaphore (GValue* value, - gpointer v_object); -void value_take_abstract_semaphore (GValue* value, - gpointer v_object); -gpointer value_get_abstract_semaphore (const GValue* value); -GType abstract_semaphore_get_type (void) G_GNUC_CONST; -GType semaphore_get_type (void) G_GNUC_CONST; -BackgroundJob* background_job_construct (GType object_type, - GObject* owner, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target, - AbstractSemaphore* completion_semaphore); -static BackgroundJobJobPriority pixbuf_cache_fetch_job_real_get_priority (BackgroundJob* base); -static void pixbuf_cache_fetch_job_finalize (BackgroundJob * obj); -static void pixbuf_cache_baseline_fetch_job_real_execute (BackgroundJob* base); -static void pixbuf_cache_master_fetch_job_real_execute (BackgroundJob* base); -GdkPixbuf* photo_get_master_pixbuf (Photo* self, - Scaling* scaling, - gboolean rotate, - GError** error); -static void pixbuf_cache_finalize (GObject * obj); - - -static void -_pixbuf_cache_on_sources_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 111 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_on_sources_altered ((PixbufCache*) self, items); -#line 601 "PixbufCache.c" -} - - -static void -_pixbuf_cache_on_sources_removed_data_collection_items_removed (DataCollection* _sender, - GeeIterable* removed, - gpointer self) -{ -#line 112 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_on_sources_removed ((PixbufCache*) self, removed); -#line 612 "PixbufCache.c" -} - - -GType -pixbuf_cache_photo_type_get_type (void) -{ - static volatile gsize pixbuf_cache_photo_type_type_id__volatile = 0; - if (g_once_init_enter (&pixbuf_cache_photo_type_type_id__volatile)) { - static const GEnumValue values[] = {{PIXBUF_CACHE_PHOTO_TYPE_BASELINE, "PIXBUF_CACHE_PHOTO_TYPE_BASELINE", "baseline"}, {PIXBUF_CACHE_PHOTO_TYPE_MASTER, "PIXBUF_CACHE_PHOTO_TYPE_MASTER", "master"}, {0, NULL, NULL}}; - GType pixbuf_cache_photo_type_type_id; - pixbuf_cache_photo_type_type_id = g_enum_register_static ("PixbufCachePhotoType", values); - g_once_init_leave (&pixbuf_cache_photo_type_type_id__volatile, pixbuf_cache_photo_type_type_id); - } - return pixbuf_cache_photo_type_type_id__volatile; -} - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 87 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return self ? data_collection_ref (self) : NULL; -#line 635 "PixbufCache.c" -} - - -PixbufCache* -pixbuf_cache_construct (GType object_type, - SourceCollection* sources, - PixbufCachePhotoType type, - Scaling* scaling, - gint max_count, - PixbufCacheCacheFilter filter, - void* filter_target) -{ - PixbufCache * self = NULL; - SourceCollection* _tmp0_; - Scaling _tmp1_; - Workers* _tmp2_; -#line 85 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (IS_SOURCE_COLLECTION (sources), NULL); -#line 85 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 85 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self = (PixbufCache*) g_object_new (object_type, NULL); -#line 87 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = _data_collection_ref0 (sources); -#line 87 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _data_collection_unref0 (self->priv->sources); -#line 87 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self->priv->sources = _tmp0_; -#line 88 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self->priv->type = type; -#line 89 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = *scaling; -#line 89 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self->priv->scaling = _tmp1_; -#line 90 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self->priv->max_count = max_count; -#line 91 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self->priv->filter = filter; -#line 91 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self->priv->filter_target = filter_target; -#line 93 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _vala_assert (max_count > 0, "max_count > 0"); -#line 95 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = pixbuf_cache_background_workers; -#line 95 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (_tmp2_ == NULL) { -#line 682 "PixbufCache.c" - Workers* _tmp3_; -#line 96 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = workers_new (workers_thread_per_cpu_minus_one (), FALSE); -#line 96 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _workers_unref0 (pixbuf_cache_background_workers); -#line 96 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_background_workers = _tmp3_; -#line 690 "PixbufCache.c" - } -#line 100 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (type != PIXBUF_CACHE_PHOTO_TYPE_MASTER) { -#line 101 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _pixbuf_cache_on_sources_altered_data_collection_items_altered, self, 0); -#line 696 "PixbufCache.c" - } -#line 102 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_DATA_COLLECTION, DataCollection), "items-removed", (GCallback) _pixbuf_cache_on_sources_removed_data_collection_items_removed, self, 0); -#line 85 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return self; -#line 702 "PixbufCache.c" -} - - -PixbufCache* -pixbuf_cache_new (SourceCollection* sources, - PixbufCachePhotoType type, - Scaling* scaling, - gint max_count, - PixbufCacheCacheFilter filter, - void* filter_target) -{ -#line 85 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return pixbuf_cache_construct (TYPE_PIXBUF_CACHE, sources, type, scaling, max_count, filter, filter_target); -#line 716 "PixbufCache.c" -} - - -void -pixbuf_cache_get_scaling (PixbufCache* self, - Scaling* result) -{ - Scaling _tmp0_; -#line 118 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_PIXBUF_CACHE (self)); -#line 119 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = self->priv->scaling; -#line 119 "/home/jens/Source/shotwell/src/PixbufCache.vala" - *result = _tmp0_; -#line 119 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return; -#line 733 "PixbufCache.c" -} - - -GdkPixbuf* -pixbuf_cache_get_ready_pixbuf (PixbufCache* self, - Photo* photo) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_; -#line 123 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (IS_PIXBUF_CACHE (self), NULL); -#line 123 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 124 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = pixbuf_cache_get_cached (self, photo); -#line 124 "/home/jens/Source/shotwell/src/PixbufCache.vala" - result = _tmp0_; -#line 124 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return result; -#line 753 "PixbufCache.c" -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return self ? g_error_copy (self) : NULL; -#line 762 "PixbufCache.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 148 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return self ? g_object_ref (self) : NULL; -#line 771 "PixbufCache.c" -} - - -GdkPixbuf* -pixbuf_cache_fetch (PixbufCache* self, - Photo* photo, - GError** error) -{ - GdkPixbuf* result = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - gboolean _tmp2_; - GdkPixbuf* pixbuf = NULL; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - PixbufCacheFetchJob* job = NULL; - GeeHashMap* _tmp5_; - gpointer _tmp6_; - PixbufCacheFetchJob* _tmp7_; - GdkPixbuf* _tmp17_ = NULL; - Scaling _tmp18_; - GdkPixbuf* _tmp19_; - GdkPixbuf* _tmp20_; - GdkPixbuf* _tmp21_; - GError * _inner_error_ = NULL; -#line 129 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (IS_PIXBUF_CACHE (self), NULL); -#line 129 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 130 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = photo_get_actual_file (photo); -#line 130 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = _tmp0_; -#line 130 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = !g_file_query_exists (_tmp1_, NULL); -#line 130 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_tmp1_); -#line 130 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (_tmp2_) { -#line 131 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_decache (self, photo); -#line 813 "PixbufCache.c" - } -#line 133 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = pixbuf_cache_get_cached (self, photo); -#line 133 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf = _tmp3_; -#line 134 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp4_ = pixbuf; -#line 134 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (_tmp4_ != NULL) { -#line 139 "/home/jens/Source/shotwell/src/PixbufCache.vala" - result = pixbuf; -#line 139 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return result; -#line 827 "PixbufCache.c" - } -#line 142 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp5_ = self->priv->in_progress; -#line 142 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp6_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo); -#line 142 "/home/jens/Source/shotwell/src/PixbufCache.vala" - job = (PixbufCacheFetchJob*) _tmp6_; -#line 143 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp7_ = job; -#line 143 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (_tmp7_ != NULL) { -#line 839 "PixbufCache.c" - PixbufCacheFetchJob* _tmp8_; - PixbufCacheFetchJob* _tmp9_; - GError* _tmp10_; - PixbufCacheFetchJob* _tmp14_; - GdkPixbuf* _tmp15_; - GdkPixbuf* _tmp16_; -#line 144 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp8_ = job; -#line 144 "/home/jens/Source/shotwell/src/PixbufCache.vala" - background_job_wait_for_completion (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 145 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp9_ = job; -#line 145 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp10_ = _tmp9_->err; -#line 145 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (_tmp10_ != NULL) { -#line 856 "PixbufCache.c" - PixbufCacheFetchJob* _tmp11_; - GError* _tmp12_; - GError* _tmp13_; -#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp11_ = job; -#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp12_ = _tmp11_->err; -#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp13_ = _g_error_copy0 (_tmp12_); -#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _inner_error_ = _tmp13_; -#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_propagate_error (error, _inner_error_); -#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _background_job_unref0 (job); -#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (pixbuf); -#line 146 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return NULL; -#line 876 "PixbufCache.c" - } -#line 148 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp14_ = job; -#line 148 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp15_ = _tmp14_->pixbuf; -#line 148 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp16_ = _g_object_ref0 (_tmp15_); -#line 148 "/home/jens/Source/shotwell/src/PixbufCache.vala" - result = _tmp16_; -#line 148 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _background_job_unref0 (job); -#line 148 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (pixbuf); -#line 148 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return result; -#line 892 "PixbufCache.c" - } -#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp18_ = self->priv->scaling; -#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp19_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp18_, &_inner_error_); -#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp17_ = _tmp19_; -#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_propagate_error (error, _inner_error_); -#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _background_job_unref0 (job); -#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (pixbuf); -#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return NULL; -#line 910 "PixbufCache.c" - } -#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp20_ = _tmp17_; -#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp17_ = NULL; -#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (pixbuf); -#line 155 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf = _tmp20_; -#line 157 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp21_ = pixbuf; -#line 157 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_encache (self, photo, _tmp21_); -#line 159 "/home/jens/Source/shotwell/src/PixbufCache.vala" - result = pixbuf; -#line 159 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_tmp17_); -#line 159 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _background_job_unref0 (job); -#line 159 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return result; -#line 932 "PixbufCache.c" -} - - -void -pixbuf_cache_drop (PixbufCache* self, - Photo* photo) -{ -#line 165 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_PIXBUF_CACHE (self)); -#line 165 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 166 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_cancel_prefetch (self, photo); -#line 167 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_decache (self, photo); -#line 948 "PixbufCache.c" -} - - -static void -_pixbuf_cache_on_fetched_completion_callback (BackgroundJob* job, - gpointer self) -{ -#line 192 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_on_fetched ((PixbufCache*) self, job); -#line 958 "PixbufCache.c" -} - - -void -pixbuf_cache_prefetch (PixbufCache* self, - Photo* photo, - BackgroundJobJobPriority priority, - gboolean force) -{ - GFile* _tmp0_; - GFile* _tmp1_; - gboolean _tmp2_; - gboolean _tmp3_ = FALSE; - GeeHashMap* _tmp5_; - gboolean _tmp6_ = FALSE; - PixbufCacheCacheFilter _tmp7_; - void* _tmp7__target; - PixbufCacheFetchJob* job = NULL; - PixbufCachePhotoType _tmp9_; - GeeHashMap* _tmp15_; - PixbufCacheFetchJob* _tmp16_; - Workers* _tmp17_; - PixbufCacheFetchJob* _tmp18_; -#line 172 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_PIXBUF_CACHE (self)); -#line 172 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 174 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = photo_get_actual_file (photo); -#line 174 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = _tmp0_; -#line 174 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = !g_file_query_exists (_tmp1_, NULL); -#line 174 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_tmp1_); -#line 174 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (_tmp2_) { -#line 175 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_decache (self, photo); -#line 998 "PixbufCache.c" - } -#line 177 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (!force) { -#line 1002 "PixbufCache.c" - GeeHashMap* _tmp4_; -#line 177 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp4_ = self->priv->cache; -#line 177 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo); -#line 1008 "PixbufCache.c" - } else { -#line 177 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = FALSE; -#line 1012 "PixbufCache.c" - } -#line 177 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (_tmp3_) { -#line 178 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_prioritize (self, photo); -#line 180 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return; -#line 1020 "PixbufCache.c" - } -#line 183 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp5_ = self->priv->in_progress; -#line 183 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo)) { -#line 184 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return; -#line 1028 "PixbufCache.c" - } -#line 186 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp7_ = self->priv->filter; -#line 186 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp7__target = self->priv->filter_target; -#line 186 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (_tmp7_ != NULL) { -#line 1036 "PixbufCache.c" - PixbufCacheCacheFilter _tmp8_; - void* _tmp8__target; -#line 186 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp8_ = self->priv->filter; -#line 186 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp8__target = self->priv->filter_target; -#line 186 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp6_ = !_tmp8_ (photo, _tmp8__target); -#line 1045 "PixbufCache.c" - } else { -#line 186 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp6_ = FALSE; -#line 1049 "PixbufCache.c" - } -#line 186 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (_tmp6_) { -#line 187 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return; -#line 1055 "PixbufCache.c" - } -#line 189 "/home/jens/Source/shotwell/src/PixbufCache.vala" - job = NULL; -#line 190 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp9_ = self->priv->type; -#line 190 "/home/jens/Source/shotwell/src/PixbufCache.vala" - switch (_tmp9_) { -#line 190 "/home/jens/Source/shotwell/src/PixbufCache.vala" - case PIXBUF_CACHE_PHOTO_TYPE_BASELINE: -#line 1065 "PixbufCache.c" - { - Scaling _tmp10_; - PixbufCacheBaselineFetchJob* _tmp11_; -#line 192 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp10_ = self->priv->scaling; -#line 192 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp11_ = pixbuf_cache_baseline_fetch_job_new (self, priority, photo, &_tmp10_, _pixbuf_cache_on_fetched_completion_callback, self); -#line 192 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _background_job_unref0 (job); -#line 192 "/home/jens/Source/shotwell/src/PixbufCache.vala" - job = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob); -#line 193 "/home/jens/Source/shotwell/src/PixbufCache.vala" - break; -#line 1079 "PixbufCache.c" - } -#line 190 "/home/jens/Source/shotwell/src/PixbufCache.vala" - case PIXBUF_CACHE_PHOTO_TYPE_MASTER: -#line 1083 "PixbufCache.c" - { - Scaling _tmp12_; - PixbufCacheMasterFetchJob* _tmp13_; -#line 196 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp12_ = self->priv->scaling; -#line 196 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp13_ = pixbuf_cache_master_fetch_job_new (self, priority, photo, &_tmp12_, _pixbuf_cache_on_fetched_completion_callback, self); -#line 196 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _background_job_unref0 (job); -#line 196 "/home/jens/Source/shotwell/src/PixbufCache.vala" - job = G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob); -#line 197 "/home/jens/Source/shotwell/src/PixbufCache.vala" - break; -#line 1097 "PixbufCache.c" - } - default: - { - PixbufCachePhotoType _tmp14_; -#line 200 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp14_ = self->priv->type; -#line 200 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_error ("PixbufCache.vala:200: Unknown photo type: %d", (gint) _tmp14_); -#line 1106 "PixbufCache.c" - } - } -#line 203 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp15_ = self->priv->in_progress; -#line 203 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp16_ = job; -#line 203 "/home/jens/Source/shotwell/src/PixbufCache.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo, _tmp16_); -#line 205 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp17_ = pixbuf_cache_background_workers; -#line 205 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp18_ = job; -#line 205 "/home/jens/Source/shotwell/src/PixbufCache.vala" - workers_enqueue (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 172 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _background_job_unref0 (job); -#line 1123 "PixbufCache.c" -} - - -void -pixbuf_cache_prefetch_many (PixbufCache* self, - GeeCollection* photos, - BackgroundJobJobPriority priority, - gboolean force) -{ -#line 210 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_PIXBUF_CACHE (self)); -#line 210 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (GEE_IS_COLLECTION (photos)); -#line 1137 "PixbufCache.c" - { - GeeIterator* _photo_it = NULL; - GeeIterator* _tmp0_; -#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_ITERABLE, GeeIterable)); -#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _photo_it = _tmp0_; -#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala" - while (TRUE) { -#line 1147 "PixbufCache.c" - GeeIterator* _tmp1_; - Photo* photo = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - Photo* _tmp4_; -#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = _photo_it; -#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala" - break; -#line 1159 "PixbufCache.c" - } -#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = _photo_it; -#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala" - photo = (Photo*) _tmp3_; -#line 213 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp4_ = photo; -#line 213 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_prefetch (self, _tmp4_, priority, force); -#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (photo); -#line 1173 "PixbufCache.c" - } -#line 212 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_photo_it); -#line 1177 "PixbufCache.c" - } -} - - -void -pixbuf_cache_prefetch_batch (PixbufCache* self, - PixbufCachePixbufCacheBatch* batch, - gboolean force) -{ -#line 217 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_PIXBUF_CACHE (self)); -#line 217 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (PIXBUF_CACHE_IS_PIXBUF_CACHE_BATCH (batch)); -#line 1191 "PixbufCache.c" - { - GeeIterator* _priority_it = NULL; - GeeSet* _tmp0_; - GeeSet* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = gee_multi_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (batch, GEE_TYPE_MULTI_MAP, GeeMultiMap)); -#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = _tmp0_; -#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = _tmp2_; -#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_tmp1_); -#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _priority_it = _tmp3_; -#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala" - while (TRUE) { -#line 1212 "PixbufCache.c" - GeeIterator* _tmp4_; - BackgroundJobJobPriority priority = 0; - GeeIterator* _tmp5_; - gpointer _tmp6_; -#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp4_ = _priority_it; -#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala" - break; -#line 1223 "PixbufCache.c" - } -#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp5_ = _priority_it; -#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala" - priority = (BackgroundJobJobPriority) ((gintptr) _tmp6_); -#line 1231 "PixbufCache.c" - { - GeeIterator* _photo_it = NULL; - BackgroundJobJobPriority _tmp7_; - GeeCollection* _tmp8_; - GeeCollection* _tmp9_; - GeeIterator* _tmp10_; - GeeIterator* _tmp11_; -#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp7_ = priority; -#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp8_ = gee_multi_map_get (G_TYPE_CHECK_INSTANCE_CAST (batch, GEE_TYPE_MULTI_MAP, GeeMultiMap), (gpointer) ((gintptr) _tmp7_)); -#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp9_ = _tmp8_; -#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp11_ = _tmp10_; -#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_tmp9_); -#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _photo_it = _tmp11_; -#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala" - while (TRUE) { -#line 1255 "PixbufCache.c" - GeeIterator* _tmp12_; - Photo* photo = NULL; - GeeIterator* _tmp13_; - gpointer _tmp14_; - Photo* _tmp15_; - BackgroundJobJobPriority _tmp16_; -#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp12_ = _photo_it; -#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (!gee_iterator_next (_tmp12_)) { -#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala" - break; -#line 1268 "PixbufCache.c" - } -#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp13_ = _photo_it; -#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp14_ = gee_iterator_get (_tmp13_); -#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala" - photo = (Photo*) _tmp14_; -#line 220 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp15_ = photo; -#line 220 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp16_ = priority; -#line 220 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_prefetch (self, _tmp15_, _tmp16_, force); -#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (photo); -#line 1284 "PixbufCache.c" - } -#line 219 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_photo_it); -#line 1288 "PixbufCache.c" - } - } -#line 218 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_priority_it); -#line 1293 "PixbufCache.c" - } -} - - -gboolean -pixbuf_cache_cancel_prefetch (PixbufCache* self, - Photo* photo) -{ - gboolean result = FALSE; - PixbufCacheFetchJob* job = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - PixbufCacheFetchJob* _tmp2_; - gboolean removed = FALSE; - GeeHashMap* _tmp3_; - gboolean _tmp4_; - gboolean _tmp5_; - PixbufCacheFetchJob* _tmp6_; -#line 224 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (IS_PIXBUF_CACHE (self), FALSE); -#line 224 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (IS_PHOTO (photo), FALSE); -#line 225 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = self->priv->in_progress; -#line 225 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo); -#line 225 "/home/jens/Source/shotwell/src/PixbufCache.vala" - job = (PixbufCacheFetchJob*) _tmp1_; -#line 226 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = job; -#line 226 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (_tmp2_ == NULL) { -#line 227 "/home/jens/Source/shotwell/src/PixbufCache.vala" - result = FALSE; -#line 227 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _background_job_unref0 (job); -#line 227 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return result; -#line 1332 "PixbufCache.c" - } -#line 230 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = self->priv->in_progress; -#line 230 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp4_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo, NULL); -#line 230 "/home/jens/Source/shotwell/src/PixbufCache.vala" - removed = _tmp4_; -#line 231 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp5_ = removed; -#line 231 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _vala_assert (_tmp5_, "removed"); -#line 233 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp6_ = job; -#line 233 "/home/jens/Source/shotwell/src/PixbufCache.vala" - background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 239 "/home/jens/Source/shotwell/src/PixbufCache.vala" - result = TRUE; -#line 239 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _background_job_unref0 (job); -#line 239 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return result; -#line 1354 "PixbufCache.c" -} - - -void -pixbuf_cache_cancel_all (PixbufCache* self) -{ - GeeHashMap* _tmp10_; -#line 242 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_PIXBUF_CACHE (self)); -#line 1364 "PixbufCache.c" - { - GeeIterator* _job_it = NULL; - GeeHashMap* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = self->priv->in_progress; -#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = _tmp1_; -#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = _tmp2_; -#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp5_ = _tmp4_; -#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_tmp3_); -#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _job_it = _tmp5_; -#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala" - while (TRUE) { -#line 1391 "PixbufCache.c" - GeeIterator* _tmp6_; - PixbufCacheFetchJob* job = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - PixbufCacheFetchJob* _tmp9_; -#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp6_ = _job_it; -#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala" - break; -#line 1403 "PixbufCache.c" - } -#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp7_ = _job_it; -#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala" - job = (PixbufCacheFetchJob*) _tmp8_; -#line 247 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp9_ = job; -#line 247 "/home/jens/Source/shotwell/src/PixbufCache.vala" - background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _background_job_unref0 (job); -#line 1417 "PixbufCache.c" - } -#line 246 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_job_it); -#line 1421 "PixbufCache.c" - } -#line 249 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp10_ = self->priv->in_progress; -#line 249 "/home/jens/Source/shotwell/src/PixbufCache.vala" - gee_abstract_map_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 1427 "PixbufCache.c" -} - - -static gpointer -_background_job_ref0 (gpointer self) -{ -#line 253 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return self ? background_job_ref (self) : NULL; -#line 1436 "PixbufCache.c" -} - - -static void -pixbuf_cache_on_fetched (PixbufCache* self, - BackgroundJob* j) -{ - PixbufCacheFetchJob* job = NULL; - PixbufCacheFetchJob* _tmp0_; - GeeHashMap* _tmp1_; - PixbufCacheFetchJob* _tmp2_; - Photo* _tmp3_; - PixbufCacheFetchJob* _tmp4_; - GError* _tmp5_; - PixbufCacheFetchJob* _tmp19_; - Photo* _tmp20_; - PixbufCacheFetchJob* _tmp21_; - GdkPixbuf* _tmp22_; - PixbufCacheFetchJob* _tmp23_; - Photo* _tmp24_; - PixbufCacheFetchJob* _tmp25_; - GdkPixbuf* _tmp26_; -#line 252 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_PIXBUF_CACHE (self)); -#line 252 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 253 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)); -#line 253 "/home/jens/Source/shotwell/src/PixbufCache.vala" - job = _tmp0_; -#line 257 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = self->priv->in_progress; -#line 257 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = job; -#line 257 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = _tmp2_->photo; -#line 257 "/home/jens/Source/shotwell/src/PixbufCache.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_, NULL); -#line 259 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp4_ = job; -#line 259 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp5_ = _tmp4_->err; -#line 259 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (_tmp5_ != NULL) { -#line 1481 "PixbufCache.c" - PixbufCacheFetchJob* _tmp6_; - GdkPixbuf* _tmp7_; - PixbufCacheFetchJob* _tmp8_; - Photo* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - PixbufCacheFetchJob* _tmp12_; - GError* _tmp13_; - const gchar* _tmp14_; - PixbufCacheFetchJob* _tmp15_; - Photo* _tmp16_; - PixbufCacheFetchJob* _tmp17_; - GError* _tmp18_; -#line 260 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp6_ = job; -#line 260 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp7_ = _tmp6_->pixbuf; -#line 260 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _vala_assert (_tmp7_ == NULL, "job.pixbuf == null"); -#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp8_ = job; -#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp9_ = _tmp8_->photo; -#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject)); -#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp11_ = _tmp10_; -#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp12_ = job; -#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp13_ = _tmp12_->err; -#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp14_ = _tmp13_->message; -#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_critical ("PixbufCache.vala:262: Unable to readahead %s: %s", _tmp11_, _tmp14_); -#line 262 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_free0 (_tmp11_); -#line 263 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp15_ = job; -#line 263 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp16_ = _tmp15_->photo; -#line 263 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp17_ = job; -#line 263 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp18_ = _tmp17_->err; -#line 263 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_signal_emit (self, pixbuf_cache_signals[PIXBUF_CACHE_FETCHED_SIGNAL], 0, _tmp16_, NULL, _tmp18_); -#line 265 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _background_job_unref0 (job); -#line 265 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return; -#line 1533 "PixbufCache.c" - } -#line 272 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp19_ = job; -#line 272 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp20_ = _tmp19_->photo; -#line 272 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp21_ = job; -#line 272 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp22_ = _tmp21_->pixbuf; -#line 272 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_encache (self, _tmp20_, _tmp22_); -#line 275 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp23_ = job; -#line 275 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp24_ = _tmp23_->photo; -#line 275 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp25_ = job; -#line 275 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp26_ = _tmp25_->pixbuf; -#line 275 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_signal_emit (self, pixbuf_cache_signals[PIXBUF_CACHE_FETCHED_SIGNAL], 0, _tmp24_, _tmp26_, NULL); -#line 252 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _background_job_unref0 (job); -#line 1557 "PixbufCache.c" -} - - -static void -pixbuf_cache_on_sources_altered (PixbufCache* self, - GeeMap* map) -{ -#line 278 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_PIXBUF_CACHE (self)); -#line 278 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (GEE_IS_MAP (map)); -#line 1569 "PixbufCache.c" - { - GeeIterator* _object_it = NULL; - GeeSet* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = gee_map_get_keys (map); -#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = _tmp0_; -#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = _tmp1_; -#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp4_ = _tmp3_; -#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_tmp2_); -#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _object_it = _tmp4_; -#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala" - while (TRUE) { -#line 1593 "PixbufCache.c" - GeeIterator* _tmp5_; - DataObject* object = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - DataObject* _tmp8_; - gpointer _tmp9_; - Alteration* _tmp10_; - gboolean _tmp11_; - Photo* photo = NULL; - DataObject* _tmp12_; - Photo* _tmp13_; - GeeHashMap* _tmp14_; - Photo* _tmp15_; - Photo* _tmp24_; - Photo* _tmp25_; -#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp5_ = _object_it; -#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala" - break; -#line 1615 "PixbufCache.c" - } -#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp6_ = _object_it; -#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala" - object = (DataObject*) _tmp7_; -#line 280 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp8_ = object; -#line 280 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp9_ = gee_map_get (map, _tmp8_); -#line 280 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp10_ = (Alteration*) _tmp9_; -#line 280 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp11_ = !alteration_has_subject (_tmp10_, "image"); -#line 280 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _alteration_unref0 (_tmp10_); -#line 280 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (_tmp11_) { -#line 281 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (object); -#line 281 "/home/jens/Source/shotwell/src/PixbufCache.vala" - continue; -#line 1639 "PixbufCache.c" - } -#line 283 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp12_ = object; -#line 283 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PHOTO, Photo)); -#line 283 "/home/jens/Source/shotwell/src/PixbufCache.vala" - photo = _tmp13_; -#line 285 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp14_ = self->priv->in_progress; -#line 285 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp15_ = photo; -#line 285 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_)) { -#line 1653 "PixbufCache.c" - GeeHashMap* _tmp16_; - Photo* _tmp17_; - gpointer _tmp18_; - PixbufCacheFetchJob* _tmp19_; - GeeHashMap* _tmp20_; - Photo* _tmp21_; -#line 288 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp16_ = self->priv->in_progress; -#line 288 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp17_ = photo; -#line 288 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp18_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp17_); -#line 288 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp19_ = (PixbufCacheFetchJob*) _tmp18_; -#line 288 "/home/jens/Source/shotwell/src/PixbufCache.vala" - background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 288 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _background_job_unref0 (_tmp19_); -#line 289 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp20_ = self->priv->in_progress; -#line 289 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp21_ = photo; -#line 289 "/home/jens/Source/shotwell/src/PixbufCache.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp21_, NULL); -#line 1678 "PixbufCache.c" - } else { - GeeHashMap* _tmp22_; - Photo* _tmp23_; -#line 290 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp22_ = self->priv->cache; -#line 290 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp23_ = photo; -#line 290 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp23_)) { -#line 291 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (photo); -#line 291 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (object); -#line 291 "/home/jens/Source/shotwell/src/PixbufCache.vala" - continue; -#line 1694 "PixbufCache.c" - } - } -#line 294 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp24_ = photo; -#line 294 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_decache (self, _tmp24_); -#line 301 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp25_ = photo; -#line 301 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_prefetch (self, _tmp25_, BACKGROUND_JOB_JOB_PRIORITY_HIGH, FALSE); -#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (photo); -#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (object); -#line 1709 "PixbufCache.c" - } -#line 279 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_object_it); -#line 1713 "PixbufCache.c" - } -} - - -static void -pixbuf_cache_on_sources_removed (PixbufCache* self, - GeeIterable* removed) -{ -#line 305 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_PIXBUF_CACHE (self)); -#line 305 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (GEE_IS_ITERABLE (removed)); -#line 1726 "PixbufCache.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = gee_iterable_iterator (removed); -#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _object_it = _tmp0_; -#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala" - while (TRUE) { -#line 1736 "PixbufCache.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - Photo* photo = NULL; - DataObject* _tmp4_; - Photo* _tmp5_; - Photo* _tmp6_; - Photo* _tmp7_; -#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = _object_it; -#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala" - break; -#line 1752 "PixbufCache.c" - } -#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = _object_it; -#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala" - object = (DataObject*) _tmp3_; -#line 307 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp4_ = object; -#line 307 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_PHOTO) ? ((Photo*) _tmp4_) : NULL); -#line 307 "/home/jens/Source/shotwell/src/PixbufCache.vala" - photo = _tmp5_; -#line 308 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp6_ = photo; -#line 308 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _vala_assert (_tmp6_ != NULL, "photo != null"); -#line 310 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp7_ = photo; -#line 310 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_decache (self, _tmp7_); -#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (photo); -#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (object); -#line 1778 "PixbufCache.c" - } -#line 306 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_object_it); -#line 1782 "PixbufCache.c" - } -} - - -static GdkPixbuf* -pixbuf_cache_get_cached (PixbufCache* self, - Photo* photo) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* pixbuf = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - GdkPixbuf* _tmp2_; -#line 314 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (IS_PIXBUF_CACHE (self), NULL); -#line 314 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 315 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = self->priv->cache; -#line 315 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo); -#line 315 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf = (GdkPixbuf*) _tmp1_; -#line 316 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = pixbuf; -#line 316 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (_tmp2_ != NULL) { -#line 317 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_prioritize (self, photo); -#line 1812 "PixbufCache.c" - } -#line 319 "/home/jens/Source/shotwell/src/PixbufCache.vala" - result = pixbuf; -#line 319 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return result; -#line 1818 "PixbufCache.c" -} - - -static void -pixbuf_cache_prioritize (PixbufCache* self, - Photo* photo) -{ - gint index = 0; - GeeArrayList* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 323 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_PIXBUF_CACHE (self)); -#line 323 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 324 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = self->priv->lru; -#line 324 "/home/jens/Source/shotwell/src/PixbufCache.vala" - index = gee_abstract_list_index_of (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), photo); -#line 325 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = index; -#line 325 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _vala_assert (_tmp1_ >= 0, "index >= 0"); -#line 327 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = index; -#line 327 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (_tmp2_ > 0) { -#line 1846 "PixbufCache.c" - GeeArrayList* _tmp3_; - gint _tmp4_; - gpointer _tmp5_; - Photo* _tmp6_; - GeeArrayList* _tmp7_; -#line 328 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = self->priv->lru; -#line 328 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp4_ = index; -#line 328 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp5_ = gee_abstract_list_remove_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp4_); -#line 328 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp6_ = (Photo*) _tmp5_; -#line 328 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_tmp6_); -#line 329 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp7_ = self->priv->lru; -#line 329 "/home/jens/Source/shotwell/src/PixbufCache.vala" - gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0, photo); -#line 1866 "PixbufCache.c" - } -} - - -static void -pixbuf_cache_encache (PixbufCache* self, - Photo* photo, - GdkPixbuf* pixbuf) -{ - GeeHashMap* _tmp0_; - GeeArrayList* _tmp1_; - GeeArrayList* _tmp16_; - gint _tmp17_; - gint _tmp18_; - GeeHashMap* _tmp19_; - gint _tmp20_; - gint _tmp21_; -#line 333 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_PIXBUF_CACHE (self)); -#line 333 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 333 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 335 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_decache (self, photo); -#line 337 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = self->priv->cache; -#line 337 "/home/jens/Source/shotwell/src/PixbufCache.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo, pixbuf); -#line 338 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = self->priv->lru; -#line 338 "/home/jens/Source/shotwell/src/PixbufCache.vala" - gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0, photo); -#line 340 "/home/jens/Source/shotwell/src/PixbufCache.vala" - while (TRUE) { -#line 1902 "PixbufCache.c" - GeeArrayList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _tmp5_; - Photo* cached_photo = NULL; - GeeArrayList* _tmp6_; - GeeArrayList* _tmp7_; - gint _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - Photo* _tmp11_; - gboolean removed = FALSE; - GeeHashMap* _tmp12_; - Photo* _tmp13_; - gboolean _tmp14_; - gboolean _tmp15_; -#line 340 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = self->priv->lru; -#line 340 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 340 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp4_ = _tmp3_; -#line 340 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp5_ = self->priv->max_count; -#line 340 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (!(_tmp4_ > _tmp5_)) { -#line 340 "/home/jens/Source/shotwell/src/PixbufCache.vala" - break; -#line 1931 "PixbufCache.c" - } -#line 341 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp6_ = self->priv->lru; -#line 341 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp7_ = self->priv->lru; -#line 341 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp8_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 341 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp9_ = _tmp8_; -#line 341 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp10_ = gee_abstract_list_remove_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_ - 1); -#line 341 "/home/jens/Source/shotwell/src/PixbufCache.vala" - cached_photo = (Photo*) _tmp10_; -#line 342 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp11_ = cached_photo; -#line 342 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _vala_assert (_tmp11_ != NULL, "cached_photo != null"); -#line 344 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp12_ = self->priv->cache; -#line 344 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp13_ = cached_photo; -#line 344 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp14_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_, NULL); -#line 344 "/home/jens/Source/shotwell/src/PixbufCache.vala" - removed = _tmp14_; -#line 345 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp15_ = removed; -#line 345 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _vala_assert (_tmp15_, "removed"); -#line 340 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (cached_photo); -#line 1963 "PixbufCache.c" - } -#line 348 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp16_ = self->priv->lru; -#line 348 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp17_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 348 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp18_ = _tmp17_; -#line 348 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp19_ = self->priv->cache; -#line 348 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp20_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 348 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp21_ = _tmp20_; -#line 348 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _vala_assert (_tmp18_ == _tmp21_, "lru.size == cache.size"); -#line 1979 "PixbufCache.c" -} - - -static void -pixbuf_cache_decache (PixbufCache* self, - Photo* photo) -{ - GeeHashMap* _tmp0_; - gboolean _tmp1_; - gboolean removed = FALSE; - GeeArrayList* _tmp3_; - gboolean _tmp4_; -#line 351 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_PIXBUF_CACHE (self)); -#line 351 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 352 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = self->priv->cache; -#line 352 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo, NULL); -#line 352 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (!_tmp1_) { -#line 2002 "PixbufCache.c" - GeeArrayList* _tmp2_; -#line 353 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = self->priv->lru; -#line 353 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _vala_assert (!gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), photo), "!lru.contains(photo)"); -#line 355 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return; -#line 2010 "PixbufCache.c" - } -#line 358 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = self->priv->lru; -#line 358 "/home/jens/Source/shotwell/src/PixbufCache.vala" - removed = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), photo); -#line 359 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp4_ = removed; -#line 359 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _vala_assert (_tmp4_, "removed"); -#line 2020 "PixbufCache.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_OBJECT_POINTER (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_POINTER) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer arg_3, gpointer data2); - register GMarshalFunc_VOID__OBJECT_OBJECT_POINTER callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_if_fail (n_param_values == 4); -#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" - data1 = closure->data; -#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" - data2 = param_values->data[0].v_pointer; -#line 2046 "PixbufCache.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" - data1 = param_values->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" - data2 = closure->data; -#line 2052 "PixbufCache.c" - } -#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" - callback = (GMarshalFunc_VOID__OBJECT_OBJECT_POINTER) (marshal_data ? marshal_data : cc->callback); -#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), g_value_get_pointer (param_values + 3), data2); -#line 2058 "PixbufCache.c" -} - - -PixbufCachePixbufCacheBatch* -pixbuf_cache_pixbuf_cache_batch_construct (GType object_type) -{ - PixbufCachePixbufCacheBatch * self = NULL; -#line 17 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self = (PixbufCachePixbufCacheBatch*) gee_tree_multi_map_construct (object_type, BACKGROUND_JOB_TYPE_JOB_PRIORITY, NULL, NULL, TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, (GCompareDataFunc) background_job_job_priority_compare_func, NULL, NULL, NULL, NULL, NULL); -#line 16 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return self; -#line 2070 "PixbufCache.c" -} - - -PixbufCachePixbufCacheBatch* -pixbuf_cache_pixbuf_cache_batch_new (void) -{ -#line 16 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return pixbuf_cache_pixbuf_cache_batch_construct (PIXBUF_CACHE_TYPE_PIXBUF_CACHE_BATCH); -#line 2079 "PixbufCache.c" -} - - -static void -pixbuf_cache_pixbuf_cache_batch_class_init (PixbufCachePixbufCacheBatchClass * klass) -{ -#line 15 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_pixbuf_cache_batch_parent_class = g_type_class_peek_parent (klass); -#line 2088 "PixbufCache.c" -} - - -static void -pixbuf_cache_pixbuf_cache_batch_instance_init (PixbufCachePixbufCacheBatch * self) -{ -} - - -GType -pixbuf_cache_pixbuf_cache_batch_get_type (void) -{ - static volatile gsize pixbuf_cache_pixbuf_cache_batch_type_id__volatile = 0; - if (g_once_init_enter (&pixbuf_cache_pixbuf_cache_batch_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PixbufCachePixbufCacheBatchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pixbuf_cache_pixbuf_cache_batch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PixbufCachePixbufCacheBatch), 0, (GInstanceInitFunc) pixbuf_cache_pixbuf_cache_batch_instance_init, NULL }; - GType pixbuf_cache_pixbuf_cache_batch_type_id; - pixbuf_cache_pixbuf_cache_batch_type_id = g_type_register_static (GEE_TYPE_TREE_MULTI_MAP, "PixbufCachePixbufCacheBatch", &g_define_type_info, 0); - g_once_init_leave (&pixbuf_cache_pixbuf_cache_batch_type_id__volatile, pixbuf_cache_pixbuf_cache_batch_type_id); - } - return pixbuf_cache_pixbuf_cache_batch_type_id__volatile; -} - - -static PixbufCacheFetchJob* -pixbuf_cache_fetch_job_construct (GType object_type, - PixbufCache* owner, - BackgroundJobJobPriority priority, - Photo* photo, - Scaling* scaling, - CompletionCallback callback, - void* callback_target) -{ - PixbufCacheFetchJob* self = NULL; - GCancellable* _tmp0_; - GCancellable* _tmp1_; - Semaphore* _tmp2_; - Semaphore* _tmp3_; - Photo* _tmp4_; - Scaling _tmp5_; -#line 28 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (IS_PIXBUF_CACHE (owner), NULL); -#line 28 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 28 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 30 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = g_cancellable_new (); -#line 30 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = _tmp0_; -#line 30 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = semaphore_new (); -#line 30 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = _tmp2_; -#line 30 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self = (PixbufCacheFetchJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, G_TYPE_OBJECT, GObject), callback, callback_target, _tmp1_, NULL, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)); -#line 30 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _abstract_semaphore_unref0 (_tmp3_); -#line 30 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_tmp1_); -#line 32 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self->priority = priority; -#line 33 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp4_ = _g_object_ref0 (photo); -#line 33 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (self->photo); -#line 33 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self->photo = _tmp4_; -#line 34 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp5_ = *scaling; -#line 34 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self->scaling = _tmp5_; -#line 28 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return self; -#line 2162 "PixbufCache.c" -} - - -static BackgroundJobJobPriority -pixbuf_cache_fetch_job_real_get_priority (BackgroundJob* base) -{ - PixbufCacheFetchJob * self; - BackgroundJobJobPriority result = 0; - BackgroundJobJobPriority _tmp0_; -#line 37 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob); -#line 38 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = self->priority; -#line 38 "/home/jens/Source/shotwell/src/PixbufCache.vala" - result = _tmp0_; -#line 38 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return result; -#line 2180 "PixbufCache.c" -} - - -static void -pixbuf_cache_fetch_job_class_init (PixbufCacheFetchJobClass * klass) -{ -#line 21 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_fetch_job_parent_class = g_type_class_peek_parent (klass); -#line 21 "/home/jens/Source/shotwell/src/PixbufCache.vala" - ((BackgroundJobClass *) klass)->finalize = pixbuf_cache_fetch_job_finalize; -#line 21 "/home/jens/Source/shotwell/src/PixbufCache.vala" - ((BackgroundJobClass *) klass)->get_priority = (BackgroundJobJobPriority (*) (BackgroundJob *)) pixbuf_cache_fetch_job_real_get_priority; -#line 2193 "PixbufCache.c" -} - - -static void -pixbuf_cache_fetch_job_instance_init (PixbufCacheFetchJob * self) -{ -#line 25 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self->pixbuf = NULL; -#line 26 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self->err = NULL; -#line 2204 "PixbufCache.c" -} - - -static void -pixbuf_cache_fetch_job_finalize (BackgroundJob * obj) -{ - PixbufCacheFetchJob * self; -#line 21 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob); -#line 23 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (self->photo); -#line 25 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (self->pixbuf); -#line 26 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_error_free0 (self->err); -#line 21 "/home/jens/Source/shotwell/src/PixbufCache.vala" - BACKGROUND_JOB_CLASS (pixbuf_cache_fetch_job_parent_class)->finalize (obj); -#line 2222 "PixbufCache.c" -} - - -static GType -pixbuf_cache_fetch_job_get_type (void) -{ - static volatile gsize pixbuf_cache_fetch_job_type_id__volatile = 0; - if (g_once_init_enter (&pixbuf_cache_fetch_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PixbufCacheFetchJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pixbuf_cache_fetch_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PixbufCacheFetchJob), 0, (GInstanceInitFunc) pixbuf_cache_fetch_job_instance_init, NULL }; - GType pixbuf_cache_fetch_job_type_id; - pixbuf_cache_fetch_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "PixbufCacheFetchJob", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&pixbuf_cache_fetch_job_type_id__volatile, pixbuf_cache_fetch_job_type_id); - } - return pixbuf_cache_fetch_job_type_id__volatile; -} - - -static PixbufCacheBaselineFetchJob* -pixbuf_cache_baseline_fetch_job_construct (GType object_type, - PixbufCache* owner, - BackgroundJobJobPriority priority, - Photo* photo, - Scaling* scaling, - CompletionCallback callback, - void* callback_target) -{ - PixbufCacheBaselineFetchJob* self = NULL; - Scaling _tmp0_; -#line 43 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (IS_PIXBUF_CACHE (owner), NULL); -#line 43 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 43 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 45 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = *scaling; -#line 45 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self = (PixbufCacheBaselineFetchJob*) pixbuf_cache_fetch_job_construct (object_type, owner, priority, photo, &_tmp0_, callback, callback_target); -#line 43 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return self; -#line 2263 "PixbufCache.c" -} - - -static PixbufCacheBaselineFetchJob* -pixbuf_cache_baseline_fetch_job_new (PixbufCache* owner, - BackgroundJobJobPriority priority, - Photo* photo, - Scaling* scaling, - CompletionCallback callback, - void* callback_target) -{ -#line 43 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return pixbuf_cache_baseline_fetch_job_construct (PIXBUF_CACHE_TYPE_BASELINE_FETCH_JOB, owner, priority, photo, scaling, callback, callback_target); -#line 2277 "PixbufCache.c" -} - - -static void -pixbuf_cache_baseline_fetch_job_real_execute (BackgroundJob* base) -{ - PixbufCacheBaselineFetchJob * self; - GError * _inner_error_ = NULL; -#line 48 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PIXBUF_CACHE_TYPE_BASELINE_FETCH_JOB, PixbufCacheBaselineFetchJob); -#line 2288 "PixbufCache.c" - { - GdkPixbuf* _tmp0_ = NULL; - Photo* _tmp1_; - Scaling _tmp2_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; -#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->photo; -#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->scaling; -#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp2_, &_inner_error_); -#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = _tmp3_; -#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2305 "PixbufCache.c" - goto __catch462_g_error; - } -#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp4_ = _tmp0_; -#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = NULL; -#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->pixbuf); -#line 50 "/home/jens/Source/shotwell/src/PixbufCache.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->pixbuf = _tmp4_; -#line 49 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_tmp0_); -#line 2318 "PixbufCache.c" - } - goto __finally462; - __catch462_g_error: - { - GError* err = NULL; - GError* _tmp5_; - GError* _tmp6_; -#line 49 "/home/jens/Source/shotwell/src/PixbufCache.vala" - err = _inner_error_; -#line 49 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _inner_error_ = NULL; -#line 52 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp5_ = err; -#line 52 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp6_ = _g_error_copy0 (_tmp5_); -#line 52 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_error_free0 (G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->err); -#line 52 "/home/jens/Source/shotwell/src/PixbufCache.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->err = _tmp6_; -#line 49 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_error_free0 (err); -#line 2340 "PixbufCache.c" - } - __finally462: -#line 49 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 49 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 49 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_clear_error (&_inner_error_); -#line 49 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return; -#line 2351 "PixbufCache.c" - } -} - - -static void -pixbuf_cache_baseline_fetch_job_class_init (PixbufCacheBaselineFetchJobClass * klass) -{ -#line 42 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_baseline_fetch_job_parent_class = g_type_class_peek_parent (klass); -#line 42 "/home/jens/Source/shotwell/src/PixbufCache.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) pixbuf_cache_baseline_fetch_job_real_execute; -#line 2363 "PixbufCache.c" -} - - -static void -pixbuf_cache_baseline_fetch_job_instance_init (PixbufCacheBaselineFetchJob * self) -{ -} - - -static GType -pixbuf_cache_baseline_fetch_job_get_type (void) -{ - static volatile gsize pixbuf_cache_baseline_fetch_job_type_id__volatile = 0; - if (g_once_init_enter (&pixbuf_cache_baseline_fetch_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PixbufCacheBaselineFetchJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pixbuf_cache_baseline_fetch_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PixbufCacheBaselineFetchJob), 0, (GInstanceInitFunc) pixbuf_cache_baseline_fetch_job_instance_init, NULL }; - GType pixbuf_cache_baseline_fetch_job_type_id; - pixbuf_cache_baseline_fetch_job_type_id = g_type_register_static (PIXBUF_CACHE_TYPE_FETCH_JOB, "PixbufCacheBaselineFetchJob", &g_define_type_info, 0); - g_once_init_leave (&pixbuf_cache_baseline_fetch_job_type_id__volatile, pixbuf_cache_baseline_fetch_job_type_id); - } - return pixbuf_cache_baseline_fetch_job_type_id__volatile; -} - - -static PixbufCacheMasterFetchJob* -pixbuf_cache_master_fetch_job_construct (GType object_type, - PixbufCache* owner, - BackgroundJobJobPriority priority, - Photo* photo, - Scaling* scaling, - CompletionCallback callback, - void* callback_target) -{ - PixbufCacheMasterFetchJob* self = NULL; - Scaling _tmp0_; -#line 58 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (IS_PIXBUF_CACHE (owner), NULL); -#line 58 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 58 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 60 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = *scaling; -#line 60 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self = (PixbufCacheMasterFetchJob*) pixbuf_cache_fetch_job_construct (object_type, owner, priority, photo, &_tmp0_, callback, callback_target); -#line 58 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return self; -#line 2410 "PixbufCache.c" -} - - -static PixbufCacheMasterFetchJob* -pixbuf_cache_master_fetch_job_new (PixbufCache* owner, - BackgroundJobJobPriority priority, - Photo* photo, - Scaling* scaling, - CompletionCallback callback, - void* callback_target) -{ -#line 58 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return pixbuf_cache_master_fetch_job_construct (PIXBUF_CACHE_TYPE_MASTER_FETCH_JOB, owner, priority, photo, scaling, callback, callback_target); -#line 2424 "PixbufCache.c" -} - - -static void -pixbuf_cache_master_fetch_job_real_execute (BackgroundJob* base) -{ - PixbufCacheMasterFetchJob * self; - GError * _inner_error_ = NULL; -#line 63 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PIXBUF_CACHE_TYPE_MASTER_FETCH_JOB, PixbufCacheMasterFetchJob); -#line 2435 "PixbufCache.c" - { - GdkPixbuf* _tmp0_ = NULL; - Photo* _tmp1_; - Scaling _tmp2_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; -#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->photo; -#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->scaling; -#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = photo_get_master_pixbuf (_tmp1_, &_tmp2_, TRUE, &_inner_error_); -#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = _tmp3_; -#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2452 "PixbufCache.c" - goto __catch463_g_error; - } -#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp4_ = _tmp0_; -#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = NULL; -#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->pixbuf); -#line 65 "/home/jens/Source/shotwell/src/PixbufCache.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->pixbuf = _tmp4_; -#line 64 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_tmp0_); -#line 2465 "PixbufCache.c" - } - goto __finally463; - __catch463_g_error: - { - GError* err = NULL; - GError* _tmp5_; - GError* _tmp6_; -#line 64 "/home/jens/Source/shotwell/src/PixbufCache.vala" - err = _inner_error_; -#line 64 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _inner_error_ = NULL; -#line 67 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp5_ = err; -#line 67 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp6_ = _g_error_copy0 (_tmp5_); -#line 67 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_error_free0 (G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->err); -#line 67 "/home/jens/Source/shotwell/src/PixbufCache.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, PIXBUF_CACHE_TYPE_FETCH_JOB, PixbufCacheFetchJob)->err = _tmp6_; -#line 64 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_error_free0 (err); -#line 2487 "PixbufCache.c" - } - __finally463: -#line 64 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 64 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 64 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_clear_error (&_inner_error_); -#line 64 "/home/jens/Source/shotwell/src/PixbufCache.vala" - return; -#line 2498 "PixbufCache.c" - } -} - - -static void -pixbuf_cache_master_fetch_job_class_init (PixbufCacheMasterFetchJobClass * klass) -{ -#line 57 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_master_fetch_job_parent_class = g_type_class_peek_parent (klass); -#line 57 "/home/jens/Source/shotwell/src/PixbufCache.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) pixbuf_cache_master_fetch_job_real_execute; -#line 2510 "PixbufCache.c" -} - - -static void -pixbuf_cache_master_fetch_job_instance_init (PixbufCacheMasterFetchJob * self) -{ -} - - -static GType -pixbuf_cache_master_fetch_job_get_type (void) -{ - static volatile gsize pixbuf_cache_master_fetch_job_type_id__volatile = 0; - if (g_once_init_enter (&pixbuf_cache_master_fetch_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PixbufCacheMasterFetchJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pixbuf_cache_master_fetch_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PixbufCacheMasterFetchJob), 0, (GInstanceInitFunc) pixbuf_cache_master_fetch_job_instance_init, NULL }; - GType pixbuf_cache_master_fetch_job_type_id; - pixbuf_cache_master_fetch_job_type_id = g_type_register_static (PIXBUF_CACHE_TYPE_FETCH_JOB, "PixbufCacheMasterFetchJob", &g_define_type_info, 0); - g_once_init_leave (&pixbuf_cache_master_fetch_job_type_id__volatile, pixbuf_cache_master_fetch_job_type_id); - } - return pixbuf_cache_master_fetch_job_type_id__volatile; -} - - -static void -pixbuf_cache_class_init (PixbufCacheClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_type_class_add_private (klass, sizeof (PixbufCachePrivate)); -#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" - G_OBJECT_CLASS (klass)->finalize = pixbuf_cache_finalize; -#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" - pixbuf_cache_signals[PIXBUF_CACHE_FETCHED_SIGNAL] = g_signal_new ("fetched", TYPE_PIXBUF_CACHE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_POINTER, G_TYPE_NONE, 3, TYPE_PHOTO, gdk_pixbuf_get_type (), G_TYPE_POINTER); -#line 2545 "PixbufCache.c" -} - - -static void -pixbuf_cache_instance_init (PixbufCache * self) -{ - GeeHashMap* _tmp0_; - GeeArrayList* _tmp1_; - GeeHashMap* _tmp2_; -#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self->priv = PIXBUF_CACHE_GET_PRIVATE (self); -#line 79 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = gee_hash_map_new (TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, gdk_pixbuf_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 79 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self->priv->cache = _tmp0_; -#line 80 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = gee_array_list_new (TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 80 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self->priv->lru = _tmp1_; -#line 81 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp2_ = gee_hash_map_new (TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, PIXBUF_CACHE_TYPE_FETCH_JOB, (GBoxedCopyFunc) background_job_ref, (GDestroyNotify) background_job_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 81 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self->priv->in_progress = _tmp2_; -#line 2569 "PixbufCache.c" -} - - -static void -pixbuf_cache_finalize (GObject * obj) -{ - PixbufCache * self; - PixbufCachePhotoType _tmp0_; - SourceCollection* _tmp3_; - guint _tmp4_; -#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PIXBUF_CACHE, PixbufCache); -#line 110 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp0_ = self->priv->type; -#line 110 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (_tmp0_ != PIXBUF_CACHE_PHOTO_TYPE_MASTER) { -#line 2586 "PixbufCache.c" - SourceCollection* _tmp1_; - guint _tmp2_; -#line 111 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp1_ = self->priv->sources; -#line 111 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp2_, NULL, FALSE); -#line 111 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _pixbuf_cache_on_sources_altered_data_collection_items_altered, self); -#line 2595 "PixbufCache.c" - } -#line 112 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp3_ = self->priv->sources; -#line 112 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_signal_parse_name ("items-removed", TYPE_DATA_COLLECTION, &_tmp4_, NULL, FALSE); -#line 112 "/home/jens/Source/shotwell/src/PixbufCache.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _pixbuf_cache_on_sources_removed_data_collection_items_removed, self); -#line 2603 "PixbufCache.c" - { - GeeIterator* _job_it = NULL; - GeeHashMap* _tmp5_; - GeeCollection* _tmp6_; - GeeCollection* _tmp7_; - GeeCollection* _tmp8_; - GeeIterator* _tmp9_; - GeeIterator* _tmp10_; -#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp5_ = self->priv->in_progress; -#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp6_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp7_ = _tmp6_; -#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp8_ = _tmp7_; -#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp10_ = _tmp9_; -#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_tmp8_); -#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _job_it = _tmp10_; -#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala" - while (TRUE) { -#line 2630 "PixbufCache.c" - GeeIterator* _tmp11_; - PixbufCacheFetchJob* job = NULL; - GeeIterator* _tmp12_; - gpointer _tmp13_; - PixbufCacheFetchJob* _tmp14_; -#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp11_ = _job_it; -#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala" - if (!gee_iterator_next (_tmp11_)) { -#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala" - break; -#line 2642 "PixbufCache.c" - } -#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp12_ = _job_it; -#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp13_ = gee_iterator_get (_tmp12_); -#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala" - job = (PixbufCacheFetchJob*) _tmp13_; -#line 115 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _tmp14_ = job; -#line 115 "/home/jens/Source/shotwell/src/PixbufCache.vala" - background_job_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _background_job_unref0 (job); -#line 2656 "PixbufCache.c" - } -#line 114 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (_job_it); -#line 2660 "PixbufCache.c" - } -#line 74 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _data_collection_unref0 (self->priv->sources); -#line 79 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (self->priv->cache); -#line 80 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (self->priv->lru); -#line 81 "/home/jens/Source/shotwell/src/PixbufCache.vala" - _g_object_unref0 (self->priv->in_progress); -#line 7 "/home/jens/Source/shotwell/src/PixbufCache.vala" - G_OBJECT_CLASS (pixbuf_cache_parent_class)->finalize (obj); -#line 2672 "PixbufCache.c" -} - - -GType -pixbuf_cache_get_type (void) -{ - static volatile gsize pixbuf_cache_type_id__volatile = 0; - if (g_once_init_enter (&pixbuf_cache_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PixbufCacheClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pixbuf_cache_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PixbufCache), 0, (GInstanceInitFunc) pixbuf_cache_instance_init, NULL }; - GType pixbuf_cache_type_id; - pixbuf_cache_type_id = g_type_register_static (G_TYPE_OBJECT, "PixbufCache", &g_define_type_info, 0); - g_once_init_leave (&pixbuf_cache_type_id__volatile, pixbuf_cache_type_id); - } - return pixbuf_cache_type_id__volatile; -} - - - diff --git a/src/Printing.c b/src/Printing.c deleted file mode 100644 index 47e9298..0000000 --- a/src/Printing.c +++ /dev/null @@ -1,8490 +0,0 @@ -/* Printing.c generated by valac 0.40.4, the Vala compiler - * generated from Printing.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_CONTENT_LAYOUT (content_layout_get_type ()) - -#define TYPE_PRINT_SETTINGS (print_settings_get_type ()) -#define PRINT_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PRINT_SETTINGS, PrintSettings)) -#define PRINT_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PRINT_SETTINGS, PrintSettingsClass)) -#define IS_PRINT_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PRINT_SETTINGS)) -#define IS_PRINT_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PRINT_SETTINGS)) -#define PRINT_SETTINGS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PRINT_SETTINGS, PrintSettingsClass)) - -typedef struct _PrintSettings PrintSettings; -typedef struct _PrintSettingsClass PrintSettingsClass; -typedef struct _PrintSettingsPrivate PrintSettingsPrivate; - -#define TYPE_MEASUREMENT (measurement_get_type ()) - -#define TYPE_MEASUREMENT_UNIT (measurement_unit_get_type ()) -typedef struct _Measurement Measurement; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_PRINT_MANAGER (print_manager_get_type ()) -#define PRINT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PRINT_MANAGER, PrintManager)) -#define PRINT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PRINT_MANAGER, PrintManagerClass)) -#define IS_PRINT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PRINT_MANAGER)) -#define IS_PRINT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PRINT_MANAGER)) -#define PRINT_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PRINT_MANAGER, PrintManagerClass)) - -typedef struct _PrintManager PrintManager; -typedef struct _PrintManagerClass PrintManagerClass; - -#define TYPE_STANDARD_PRINT_SIZE (standard_print_size_get_type ()) -#define STANDARD_PRINT_SIZE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STANDARD_PRINT_SIZE, StandardPrintSize)) -#define STANDARD_PRINT_SIZE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STANDARD_PRINT_SIZE, StandardPrintSizeClass)) -#define IS_STANDARD_PRINT_SIZE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STANDARD_PRINT_SIZE)) -#define IS_STANDARD_PRINT_SIZE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STANDARD_PRINT_SIZE)) -#define STANDARD_PRINT_SIZE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STANDARD_PRINT_SIZE, StandardPrintSizeClass)) - -typedef struct _StandardPrintSize StandardPrintSize; -typedef struct _StandardPrintSizeClass StandardPrintSizeClass; -typedef struct _StandardPrintSizePrivate StandardPrintSizePrivate; -#define _print_manager_unref0(var) ((var == NULL) ? NULL : (var = (print_manager_unref (var), NULL))) -typedef struct _ParamSpecPrintSettings ParamSpecPrintSettings; - -#define TYPE_PRINT_LAYOUT (print_layout_get_type ()) - -#define TYPE_CUSTOM_PRINT_TAB (custom_print_tab_get_type ()) -#define CUSTOM_PRINT_TAB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CUSTOM_PRINT_TAB, CustomPrintTab)) -#define CUSTOM_PRINT_TAB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CUSTOM_PRINT_TAB, CustomPrintTabClass)) -#define IS_CUSTOM_PRINT_TAB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CUSTOM_PRINT_TAB)) -#define IS_CUSTOM_PRINT_TAB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CUSTOM_PRINT_TAB)) -#define CUSTOM_PRINT_TAB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CUSTOM_PRINT_TAB, CustomPrintTabClass)) - -typedef struct _CustomPrintTab CustomPrintTab; -typedef struct _CustomPrintTabClass CustomPrintTabClass; -typedef struct _CustomPrintTabPrivate CustomPrintTabPrivate; - -#define TYPE_PRINT_JOB (print_job_get_type ()) -#define PRINT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PRINT_JOB, PrintJob)) -#define PRINT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PRINT_JOB, PrintJobClass)) -#define IS_PRINT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PRINT_JOB)) -#define IS_PRINT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PRINT_JOB)) -#define PRINT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PRINT_JOB, PrintJobClass)) - -typedef struct _PrintJob PrintJob; -typedef struct _PrintJobClass PrintJobClass; -enum { - CUSTOM_PRINT_TAB_0_PROPERTY, - CUSTOM_PRINT_TAB_NUM_PROPERTIES -}; -static GParamSpec* custom_print_tab_properties[CUSTOM_PRINT_TAB_NUM_PROPERTIES]; -#define _standard_print_size_unref0(var) ((var == NULL) ? NULL : (var = (standard_print_size_unref (var), NULL))) - -#define RESOURCES_TYPE_UNIT_SYSTEM (resources_unit_system_get_type ()) -#define _print_settings_unref0(var) ((var == NULL) ? NULL : (var = (print_settings_unref (var), NULL))) -typedef struct _PrintJobPrivate PrintJobPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; -enum { - PRINT_JOB_0_PROPERTY, - PRINT_JOB_NUM_PROPERTIES -}; -static GParamSpec* print_job_properties[PRINT_JOB_NUM_PROPERTIES]; - -#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -typedef struct _ParamSpecStandardPrintSize ParamSpecStandardPrintSize; -typedef struct _PrintManagerPrivate PrintManagerPrivate; - -#define TYPE_PROGRESS_DIALOG (progress_dialog_get_type ()) -#define PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROGRESS_DIALOG, ProgressDialog)) -#define PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PROGRESS_DIALOG, ProgressDialogClass)) -#define IS_PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROGRESS_DIALOG)) -#define IS_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROGRESS_DIALOG)) -#define PROGRESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROGRESS_DIALOG, ProgressDialogClass)) - -typedef struct _ProgressDialog ProgressDialog; -typedef struct _ProgressDialogClass ProgressDialogClass; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL))) - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) -typedef struct _Scaling Scaling; -#define __vala_PangoFontDescription_free0(var) ((var == NULL) ? NULL : (var = (_vala_PangoFontDescription_free (var), NULL))) -typedef struct _ParamSpecPrintManager ParamSpecPrintManager; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef enum { - CONTENT_LAYOUT_STANDARD_SIZE, - CONTENT_LAYOUT_CUSTOM_SIZE, - CONTENT_LAYOUT_IMAGE_PER_PAGE -} ContentLayout; - -struct _PrintSettings { - GTypeInstance parent_instance; - volatile int ref_count; - PrintSettingsPrivate * priv; -}; - -struct _PrintSettingsClass { - GTypeClass parent_class; - void (*finalize) (PrintSettings *self); -}; - -typedef enum { - MEASUREMENT_UNIT_INCHES, - MEASUREMENT_UNIT_CENTIMETERS -} MeasurementUnit; - -struct _Measurement { - gdouble value; - MeasurementUnit unit; -}; - -struct _PrintSettingsPrivate { - ContentLayout content_layout; - Measurement content_width; - Measurement content_height; - gint content_ppi; - gint image_per_page_selection; - gint size_selection; - gboolean match_aspect_ratio; - gboolean print_titles; - gchar* print_titles_font; -}; - -struct _StandardPrintSize { - GTypeInstance parent_instance; - volatile int ref_count; - StandardPrintSizePrivate * priv; - gchar* name; - Measurement width; - Measurement height; -}; - -struct _StandardPrintSizeClass { - GTypeClass parent_class; - void (*finalize) (StandardPrintSize *self); -}; - -struct _ParamSpecPrintSettings { - GParamSpec parent_instance; -}; - -typedef enum { - PRINT_LAYOUT_ENTIRE_PAGE, - PRINT_LAYOUT_TWO_PER_PAGE, - PRINT_LAYOUT_FOUR_PER_PAGE, - PRINT_LAYOUT_SIX_PER_PAGE, - PRINT_LAYOUT_EIGHT_PER_PAGE, - PRINT_LAYOUT_SIXTEEN_PER_PAGE, - PRINT_LAYOUT_THIRTY_TWO_PER_PAGE -} PrintLayout; - -struct _CustomPrintTab { - GtkBox parent_instance; - CustomPrintTabPrivate * priv; -}; - -struct _CustomPrintTabClass { - GtkBoxClass parent_class; -}; - -struct _CustomPrintTabPrivate { - GtkRadioButton* standard_size_radio; - GtkRadioButton* custom_size_radio; - GtkRadioButton* image_per_page_radio; - GtkComboBoxText* image_per_page_combo; - GtkComboBoxText* standard_sizes_combo; - GtkComboBoxText* units_combo; - GtkEntry* custom_width_entry; - GtkEntry* custom_height_entry; - GtkEntry* ppi_entry; - GtkCheckButton* aspect_ratio_check; - GtkCheckButton* title_print_check; - GtkFontButton* title_print_font; - Measurement local_content_width; - Measurement local_content_height; - gint local_content_ppi; - gboolean is_text_insertion_in_progress; - PrintJob* source_job; -}; - -typedef enum { - RESOURCES_UNIT_SYSTEM_IMPERIAL, - RESOURCES_UNIT_SYSTEM_METRIC, - RESOURCES_UNIT_SYSTEM_UNKNOWN -} ResourcesUnitSystem; - -struct _PrintJob { - GtkPrintOperation parent_instance; - PrintJobPrivate * priv; -}; - -struct _PrintJobClass { - GtkPrintOperationClass parent_class; -}; - -struct _PrintJobPrivate { - PrintSettings* settings; - GeeArrayList* photos; -}; - -typedef enum { - PHOTO_EXCEPTION_NONE = 0, - PHOTO_EXCEPTION_ORIENTATION = 1 << 0, - PHOTO_EXCEPTION_CROP = 1 << 1, - PHOTO_EXCEPTION_REDEYE = 1 << 2, - PHOTO_EXCEPTION_ADJUST = 1 << 3, - PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4, - PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL -} PhotoException; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _ParamSpecStandardPrintSize { - GParamSpec parent_instance; -}; - -struct _PrintManager { - GTypeInstance parent_instance; - volatile int ref_count; - PrintManagerPrivate * priv; -}; - -struct _PrintManagerClass { - GTypeClass parent_class; - void (*finalize) (PrintManager *self); -}; - -struct _PrintManagerPrivate { - PrintSettings* settings; - GtkPageSetup* user_page_setup; - CustomPrintTab* custom_tab; - ProgressDialog* progress_dialog; - GCancellable* cancellable; - StandardPrintSize** standard_sizes; - gint standard_sizes_length1; - gint _standard_sizes_size_; -}; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -struct _ParamSpecPrintManager { - GParamSpec parent_instance; -}; - - -static gpointer print_settings_parent_class = NULL; -static gpointer custom_print_tab_parent_class = NULL; -static gpointer print_job_parent_class = NULL; -static gpointer standard_print_size_parent_class = NULL; -static gpointer print_manager_parent_class = NULL; -static PrintManager* print_manager_instance; -static PrintManager* print_manager_instance = NULL; - -GType content_layout_get_type (void) G_GNUC_CONST; -gpointer print_settings_ref (gpointer instance); -void print_settings_unref (gpointer instance); -GParamSpec* param_spec_print_settings (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_print_settings (GValue* value, - gpointer v_object); -void value_take_print_settings (GValue* value, - gpointer v_object); -gpointer value_get_print_settings (const GValue* value); -GType print_settings_get_type (void) G_GNUC_CONST; -GType measurement_get_type (void) G_GNUC_CONST; -GType measurement_unit_get_type (void) G_GNUC_CONST; -Measurement* measurement_dup (const Measurement* self); -void measurement_free (Measurement* self); -#define PRINT_SETTINGS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PRINT_SETTINGS, PrintSettingsPrivate)) -#define PRINT_SETTINGS_MIN_CONTENT_PPI 72 -#define PRINT_SETTINGS_MAX_CONTENT_PPI 1200 -PrintSettings* print_settings_new (void); -PrintSettings* print_settings_construct (GType object_type); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gint configuration_facade_get_printing_content_units (ConfigurationFacade* self); -gdouble configuration_facade_get_printing_content_width (ConfigurationFacade* self); -void measurement_init (Measurement *self, - gdouble value, - MeasurementUnit unit); -gdouble configuration_facade_get_printing_content_height (ConfigurationFacade* self); -gint configuration_facade_get_printing_size_selection (ConfigurationFacade* self); -gint configuration_facade_get_printing_content_layout (ConfigurationFacade* self); -gboolean configuration_facade_get_printing_match_aspect_ratio (ConfigurationFacade* self); -gboolean configuration_facade_get_printing_print_titles (ConfigurationFacade* self); -gchar* configuration_facade_get_printing_titles_font (ConfigurationFacade* self); -gint configuration_facade_get_printing_images_per_page (ConfigurationFacade* self); -gint configuration_facade_get_printing_content_ppi (ConfigurationFacade* self); -void print_settings_save (PrintSettings* self); -void configuration_facade_set_printing_content_units (ConfigurationFacade* self, - gint units_code); -void configuration_facade_set_printing_content_width (ConfigurationFacade* self, - gdouble content_width); -void configuration_facade_set_printing_content_height (ConfigurationFacade* self, - gdouble content_height); -void configuration_facade_set_printing_size_selection (ConfigurationFacade* self, - gint size_code); -void configuration_facade_set_printing_content_layout (ConfigurationFacade* self, - gint layout_code); -void configuration_facade_set_printing_match_aspect_ratio (ConfigurationFacade* self, - gboolean match_aspect_ratio); -void configuration_facade_set_printing_print_titles (ConfigurationFacade* self, - gboolean print_titles); -void configuration_facade_set_printing_titles_font (ConfigurationFacade* self, - const gchar* font_name); -void configuration_facade_set_printing_images_per_page (ConfigurationFacade* self, - gint images_per_page_code); -void configuration_facade_set_printing_content_ppi (ConfigurationFacade* self, - gint content_ppi); -void print_settings_get_content_width (PrintSettings* self, - Measurement* result); -ContentLayout print_settings_get_content_layout (PrintSettings* self); -gpointer print_manager_ref (gpointer instance); -void print_manager_unref (gpointer instance); -GParamSpec* param_spec_print_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_print_manager (GValue* value, - gpointer v_object); -void value_take_print_manager (GValue* value, - gpointer v_object); -gpointer value_get_print_manager (const GValue* value); -GType print_manager_get_type (void) G_GNUC_CONST; -PrintManager* print_manager_get_instance (void); -gpointer standard_print_size_ref (gpointer instance); -void standard_print_size_unref (gpointer instance); -GParamSpec* param_spec_standard_print_size (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_standard_print_size (GValue* value, - gpointer v_object); -void value_take_standard_print_size (GValue* value, - gpointer v_object); -gpointer value_get_standard_print_size (const GValue* value); -GType standard_print_size_get_type (void) G_GNUC_CONST; -StandardPrintSize** print_manager_get_standard_sizes (PrintManager* self, - int* result_length1); -gint print_settings_get_size_selection (PrintSettings* self); -void print_settings_get_content_height (PrintSettings* self, - Measurement* result); -void print_settings_get_minimum_content_dimension (PrintSettings* self, - Measurement* result); -void print_settings_get_maximum_content_dimension (PrintSettings* self, - Measurement* result); -gboolean print_settings_is_match_aspect_ratio_enabled (PrintSettings* self); -gboolean print_settings_is_print_titles_enabled (PrintSettings* self); -gint print_settings_get_content_ppi (PrintSettings* self); -gint print_settings_get_image_per_page_selection (PrintSettings* self); -void print_settings_set_content_layout (PrintSettings* self, - ContentLayout content_layout); -void print_settings_set_content_width (PrintSettings* self, - Measurement* content_width); -void print_settings_set_content_height (PrintSettings* self, - Measurement* content_height); -void print_settings_set_content_ppi (PrintSettings* self, - gint content_ppi); -void print_settings_set_image_per_page_selection (PrintSettings* self, - gint image_per_page_selection); -void print_settings_set_size_selection (PrintSettings* self, - gint size_selection); -void print_settings_set_match_aspect_ratio_enabled (PrintSettings* self, - gboolean enable_state); -void print_settings_set_print_titles_enabled (PrintSettings* self, - gboolean print_titles); -void print_settings_set_print_titles_font (PrintSettings* self, - const gchar* fontname); -gchar* print_settings_get_print_titles_font (PrintSettings* self); -static void print_settings_finalize (PrintSettings * obj); -#define MEASUREMENT_CENTIMETERS_PER_INCH 2.54 -#define MEASUREMENT_INCHES_PER_CENTIMETER (1.0 / 2.54) -void measurement_convert_to (Measurement *self, - MeasurementUnit to_unit, - Measurement* result); -gboolean measurement_is_less_than (Measurement *self, - Measurement* rhs); -gboolean measurement_is_greater_than (Measurement *self, - Measurement* rhs); -GType print_layout_get_type (void) G_GNUC_CONST; -PrintLayout* print_layout_get_all (int* result_length1); -gint print_layout_get_per_page (PrintLayout self); -gint print_layout_get_x (PrintLayout self); -gint print_layout_get_y (PrintLayout self); -gchar* print_layout_to_string (PrintLayout self); -GType custom_print_tab_get_type (void) G_GNUC_CONST; -GType print_job_get_type (void) G_GNUC_CONST; -#define CUSTOM_PRINT_TAB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CUSTOM_PRINT_TAB, CustomPrintTabPrivate)) -#define CUSTOM_PRINT_TAB_INCHES_COMBO_CHOICE 0 -#define CUSTOM_PRINT_TAB_CENTIMETERS_COMBO_CHOICE 1 -CustomPrintTab* custom_print_tab_new (PrintJob* source_job); -CustomPrintTab* custom_print_tab_construct (GType object_type, - PrintJob* source_job); -static void custom_print_tab_on_radio_group_click (CustomPrintTab* self, - GtkButton* b); -static void _custom_print_tab_on_radio_group_click_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static gboolean custom_print_tab_standard_sizes_combo_separator_func (GtkTreeModel* model, - GtkTreeIter* iter); -static gboolean _custom_print_tab_standard_sizes_combo_separator_func_gtk_tree_view_row_separator_func (GtkTreeModel* model, - GtkTreeIter* iter, - gpointer self); -GType resources_unit_system_get_type (void) G_GNUC_CONST; -ResourcesUnitSystem resources_get_default_measurement_unit (void); -static void custom_print_tab_on_entry_insert_text (CustomPrintTab* self, - GtkEditable* editable, - const gchar* text, - gint length, - gint* position); -static void _custom_print_tab_on_entry_insert_text_gtk_editable_insert_text (GtkEditable* _sender, - const gchar* new_text, - gint new_text_length, - gint* position, - gpointer self); -static gboolean custom_print_tab_on_width_entry_focus_out (CustomPrintTab* self, - GdkEventFocus* event); -static gboolean _custom_print_tab_on_width_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender, - GdkEventFocus* event, - gpointer self); -static gboolean custom_print_tab_on_height_entry_focus_out (CustomPrintTab* self, - GdkEventFocus* event); -static gboolean _custom_print_tab_on_height_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender, - GdkEventFocus* event, - gpointer self); -static void custom_print_tab_on_units_combo_changed (CustomPrintTab* self); -static void _custom_print_tab_on_units_combo_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void custom_print_tab_on_ppi_entry_insert_text (CustomPrintTab* self, - GtkEditable* editable, - const gchar* text, - gint length, - gint* position); -static void _custom_print_tab_on_ppi_entry_insert_text_gtk_editable_insert_text (GtkEditable* _sender, - const gchar* new_text, - gint new_text_length, - gint* position, - gpointer self); -static gboolean custom_print_tab_on_ppi_entry_focus_out (CustomPrintTab* self, - GdkEventFocus* event); -static gboolean _custom_print_tab_on_ppi_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender, - GdkEventFocus* event, - gpointer self); -static void custom_print_tab_sync_state_from_job (CustomPrintTab* self, - PrintJob* job); -static void custom_print_tab_on_aspect_ratio_check_clicked (CustomPrintTab* self); -static void _custom_print_tab_on_aspect_ratio_check_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -gdouble print_job_get_source_aspect_ratio (PrintJob* self); -static gchar* custom_print_tab_format_measurement (CustomPrintTab* self, - Measurement* measurement); -static gchar* custom_print_tab_format_measurement_as (CustomPrintTab* self, - Measurement* measurement, - MeasurementUnit to_unit); -static MeasurementUnit custom_print_tab_get_user_unit_choice (CustomPrintTab* self); -static void custom_print_tab_get_width_entry_value (CustomPrintTab* self, - Measurement* result); -PrintSettings* print_job_get_local_settings (PrintJob* self); -static gboolean custom_print_tab_is_match_aspect_ratio_enabled (CustomPrintTab* self); -static void custom_print_tab_set_content_ppi (CustomPrintTab* self, - gint content_ppi); -static void custom_print_tab_get_height_entry_value (CustomPrintTab* self, - Measurement* result); -static void custom_print_tab_set_user_unit_choice (CustomPrintTab* self, - MeasurementUnit unit); -static void custom_print_tab_set_content_width (CustomPrintTab* self, - Measurement* content_width); -static void custom_print_tab_set_content_height (CustomPrintTab* self, - Measurement* content_height); -static void custom_print_tab_set_content_layout (CustomPrintTab* self, - ContentLayout content_layout); -static void custom_print_tab_set_image_per_page_selection (CustomPrintTab* self, - gint image_per_page); -static void custom_print_tab_set_size_selection (CustomPrintTab* self, - gint size_selection); -static void custom_print_tab_set_match_aspect_ratio_enabled (CustomPrintTab* self, - gboolean enable_state); -static void custom_print_tab_set_print_titles_enabled (CustomPrintTab* self, - gboolean print_titles); -static void custom_print_tab_set_print_titles_font (CustomPrintTab* self, - const gchar* fontname); -static void custom_print_tab_set_content_layout_control_state (CustomPrintTab* self, - ContentLayout layout); -static ContentLayout custom_print_tab_get_content_layout (CustomPrintTab* self); -static void custom_print_tab_get_content_width (CustomPrintTab* self, - Measurement* result); -static void custom_print_tab_get_content_height (CustomPrintTab* self, - Measurement* result); -static gint custom_print_tab_get_content_ppi (CustomPrintTab* self); -static gint custom_print_tab_get_image_per_page_selection (CustomPrintTab* self); -static gint custom_print_tab_get_size_selection (CustomPrintTab* self); -static gboolean custom_print_tab_is_print_titles_enabled (CustomPrintTab* self); -static gchar* custom_print_tab_get_print_titles_font (CustomPrintTab* self); -PrintJob* custom_print_tab_get_source_job (CustomPrintTab* self); -PrintSettings* custom_print_tab_get_local_settings (CustomPrintTab* self); -static void custom_print_tab_finalize (GObject * obj); -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -#define PRINT_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PRINT_JOB, PrintJobPrivate)) -PrintJob* print_job_new (GeeCollection* to_print); -PrintJob* print_job_construct (GType object_type, - GeeCollection* to_print); -PrintSettings* print_manager_get_global_settings (PrintManager* self); -GType photo_exception_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -void media_source_get_dimensions (MediaSource* self, - PhotoException disallowed_steps, - Dimensions* result); -gdouble dimensions_get_aspect_ratio (Dimensions *self); -GeeList* print_job_get_photos (PrintJob* self); -Photo* print_job_get_source_photo (PrintJob* self); -void print_job_set_local_settings (PrintJob* self, - PrintSettings* settings); -static void print_job_finalize (GObject * obj); -StandardPrintSize* standard_print_size_new (const gchar* name, - Measurement* width, - Measurement* height); -StandardPrintSize* standard_print_size_construct (GType object_type, - const gchar* name, - Measurement* width, - Measurement* height); -static void standard_print_size_finalize (StandardPrintSize * obj); -GType progress_dialog_get_type (void) G_GNUC_CONST; -#define PRINT_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PRINT_MANAGER, PrintManagerPrivate)) -#define PRINT_MANAGER_IMAGE_DISTANCE 0.24 -static PrintManager* print_manager_new (void); -static PrintManager* print_manager_construct (GType object_type); -static void _vala_array_add112 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value); -static void _vala_array_add113 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value); -static void _vala_array_add114 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value); -static void _vala_array_add115 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value); -static void _vala_array_add116 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value); -static void _vala_array_add117 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value); -static void _vala_array_add118 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value); -static void _vala_array_add119 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value); -static void _vala_array_add120 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value); -static void _vala_array_add121 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value); -static void _vala_array_add122 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value); -static void _vala_array_add123 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value); -static void _vala_array_add124 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value); -static void _vala_array_add125 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value); -static void _vala_array_add126 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value); -void print_manager_spool_photo (PrintManager* self, - GeeCollection* to_print); -gchar* data_object_get_name (DataObject* self); -static void print_manager_on_begin_print (PrintManager* self, - GtkPrintOperation* emitting_object, - GtkPrintContext* job_context); -static void _print_manager_on_begin_print_gtk_print_operation_begin_print (GtkPrintOperation* _sender, - GtkPrintContext* context, - gpointer self); -static void print_manager_on_draw_page (PrintManager* self, - GtkPrintOperation* emitting_object, - GtkPrintContext* job_context, - gint page_num); -static void _print_manager_on_draw_page_gtk_print_operation_draw_page (GtkPrintOperation* _sender, - GtkPrintContext* context, - gint page_nr, - gpointer self); -static GObject* print_manager_on_create_custom_widget (PrintManager* self, - GtkPrintOperation* emitting_object); -static GObject* _print_manager_on_create_custom_widget_gtk_print_operation_create_custom_widget (GtkPrintOperation* _sender, - gpointer self); -static void print_manager_on_status_changed (PrintManager* self, - GtkPrintOperation* job); -static void _print_manager_on_status_changed_gtk_print_operation_status_changed (GtkPrintOperation* _sender, - gpointer self); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -void page_window_set_busy_cursor (PageWindow* self); -ProgressDialog* progress_dialog_new (GtkWindow* owner, - const gchar* text, - GCancellable* cancellable); -ProgressDialog* progress_dialog_construct (GType object_type, - GtkWindow* owner, - const gchar* text, - GCancellable* cancellable); -void progress_dialog_close (ProgressDialog* self); -void page_window_set_normal_cursor (PageWindow* self); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -void spin_event_loop (void); -void progress_dialog_set_status (ProgressDialog* self, - const gchar* text); -static void print_manager_fit_image_to_canvas (PrintManager* self, - Photo* photo, - gdouble x, - gdouble y, - gdouble canvas_width, - gdouble canvas_height, - gboolean crop, - PrintJob* job, - GtkPrintContext* job_context); -static void print_manager_add_title_to_canvas (PrintManager* self, - gdouble x, - gdouble y, - const gchar* title, - PrintJob* job, - GtkPrintContext* job_context); -gboolean progress_dialog_monitor (ProgressDialog* self, - guint64 count, - guint64 total, - gboolean do_event_loop); -static void print_manager_on_custom_widget_apply (PrintManager* self, - GtkWidget* custom_widget); -static void _print_manager_on_custom_widget_apply_gtk_print_operation_custom_widget_apply (GtkPrintOperation* _sender, - GtkWidget* widget, - gpointer self); -void print_manager_set_global_settings (PrintManager* self, - PrintSettings* settings); -void dimensions_init (Dimensions *self, - gint width, - gint height); -static gboolean print_manager_are_approximately_equal (PrintManager* self, - gdouble val1, - gdouble val2); -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -void scaling_to_fill_viewport (Dimensions* viewport, - Scaling* result); -GdkPixbuf* photo_source_get_pixbuf (PhotoSource* self, - Scaling* scaling, - GError** error); -void dimensions_for_pixbuf (GdkPixbuf* pixbuf, - Dimensions* result); -GdkPixbuf* scaling_perform_on_pixbuf (Scaling *self, - GdkPixbuf* pixbuf, - GdkInterpType interp, - gboolean scale_up); -void scaling_for_viewport (Dimensions* viewport, - gboolean scale_up, - Scaling* result); -static void _vala_PangoFontDescription_free (PangoFontDescription* self); -static void print_manager_finalize (PrintManager * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -GType -content_layout_get_type (void) -{ - static volatile gsize content_layout_type_id__volatile = 0; - if (g_once_init_enter (&content_layout_type_id__volatile)) { - static const GEnumValue values[] = {{CONTENT_LAYOUT_STANDARD_SIZE, "CONTENT_LAYOUT_STANDARD_SIZE", "standard-size"}, {CONTENT_LAYOUT_CUSTOM_SIZE, "CONTENT_LAYOUT_CUSTOM_SIZE", "custom-size"}, {CONTENT_LAYOUT_IMAGE_PER_PAGE, "CONTENT_LAYOUT_IMAGE_PER_PAGE", "image-per-page"}, {0, NULL, NULL}}; - GType content_layout_type_id; - content_layout_type_id = g_enum_register_static ("ContentLayout", values); - g_once_init_leave (&content_layout_type_id__volatile, content_layout_type_id); - } - return content_layout_type_id__volatile; -} - - -PrintSettings* -print_settings_construct (GType object_type) -{ - PrintSettings* self = NULL; - ConfigFacade* config = NULL; - ConfigFacade* _tmp0_; - MeasurementUnit units = 0; - gchar* _tmp1_; -#line 30 "/home/jens/Source/shotwell/src/Printing.vala" - self = (PrintSettings*) g_type_create_instance (object_type); -#line 31 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = config_facade_get_instance (); -#line 31 "/home/jens/Source/shotwell/src/Printing.vala" - config = _tmp0_; -#line 33 "/home/jens/Source/shotwell/src/Printing.vala" - units = (MeasurementUnit) configuration_facade_get_printing_content_units (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 35 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&self->priv->content_width, configuration_facade_get_printing_content_width (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)), units); -#line 36 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&self->priv->content_height, configuration_facade_get_printing_content_height (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)), units); -#line 37 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->size_selection = configuration_facade_get_printing_size_selection (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 38 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->content_layout = (ContentLayout) configuration_facade_get_printing_content_layout (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 39 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->match_aspect_ratio = configuration_facade_get_printing_match_aspect_ratio (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 40 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->print_titles = configuration_facade_get_printing_print_titles (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 41 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = configuration_facade_get_printing_titles_font (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 41 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (self->priv->print_titles_font); -#line 41 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->print_titles_font = _tmp1_; -#line 42 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->image_per_page_selection = configuration_facade_get_printing_images_per_page (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 43 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->content_ppi = configuration_facade_get_printing_content_ppi (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 30 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (config); -#line 30 "/home/jens/Source/shotwell/src/Printing.vala" - return self; -#line 931 "Printing.c" -} - - -PrintSettings* -print_settings_new (void) -{ -#line 30 "/home/jens/Source/shotwell/src/Printing.vala" - return print_settings_construct (TYPE_PRINT_SETTINGS); -#line 940 "Printing.c" -} - - -void -print_settings_save (PrintSettings* self) -{ - ConfigFacade* config = NULL; - ConfigFacade* _tmp0_; - Measurement _tmp1_; - MeasurementUnit _tmp2_; - Measurement _tmp3_; - gdouble _tmp4_; - Measurement _tmp5_; - gdouble _tmp6_; - gint _tmp7_; - ContentLayout _tmp8_; - gboolean _tmp9_; - gboolean _tmp10_; - const gchar* _tmp11_; - gint _tmp12_; - gint _tmp13_; -#line 46 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_SETTINGS (self)); -#line 47 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = config_facade_get_instance (); -#line 47 "/home/jens/Source/shotwell/src/Printing.vala" - config = _tmp0_; -#line 49 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = self->priv->content_width; -#line 49 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = _tmp1_.unit; -#line 49 "/home/jens/Source/shotwell/src/Printing.vala" - configuration_facade_set_printing_content_units (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), (gint) _tmp2_); -#line 50 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = self->priv->content_width; -#line 50 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = _tmp3_.value; -#line 50 "/home/jens/Source/shotwell/src/Printing.vala" - configuration_facade_set_printing_content_width (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp4_); -#line 51 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = self->priv->content_height; -#line 51 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = _tmp5_.value; -#line 51 "/home/jens/Source/shotwell/src/Printing.vala" - configuration_facade_set_printing_content_height (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp6_); -#line 52 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = self->priv->size_selection; -#line 52 "/home/jens/Source/shotwell/src/Printing.vala" - configuration_facade_set_printing_size_selection (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp7_); -#line 53 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = self->priv->content_layout; -#line 53 "/home/jens/Source/shotwell/src/Printing.vala" - configuration_facade_set_printing_content_layout (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), (gint) _tmp8_); -#line 54 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = self->priv->match_aspect_ratio; -#line 54 "/home/jens/Source/shotwell/src/Printing.vala" - configuration_facade_set_printing_match_aspect_ratio (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp9_); -#line 55 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp10_ = self->priv->print_titles; -#line 55 "/home/jens/Source/shotwell/src/Printing.vala" - configuration_facade_set_printing_print_titles (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp10_); -#line 56 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp11_ = self->priv->print_titles_font; -#line 56 "/home/jens/Source/shotwell/src/Printing.vala" - configuration_facade_set_printing_titles_font (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp11_); -#line 57 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp12_ = self->priv->image_per_page_selection; -#line 57 "/home/jens/Source/shotwell/src/Printing.vala" - configuration_facade_set_printing_images_per_page (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp12_); -#line 58 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp13_ = self->priv->content_ppi; -#line 58 "/home/jens/Source/shotwell/src/Printing.vala" - configuration_facade_set_printing_content_ppi (G_TYPE_CHECK_INSTANCE_CAST (config, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp13_); -#line 46 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (config); -#line 1016 "Printing.c" -} - - -void -print_settings_get_content_width (PrintSettings* self, - Measurement* result) -{ -#line 62 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_SETTINGS (self)); -#line 63 "/home/jens/Source/shotwell/src/Printing.vala" - switch (print_settings_get_content_layout (self)) { -#line 63 "/home/jens/Source/shotwell/src/Printing.vala" - case CONTENT_LAYOUT_STANDARD_SIZE: -#line 63 "/home/jens/Source/shotwell/src/Printing.vala" - case CONTENT_LAYOUT_IMAGE_PER_PAGE: -#line 1032 "Printing.c" - { - PrintManager* _tmp0_; - PrintManager* _tmp1_; - gint _tmp2_; - StandardPrintSize** _tmp3_; - StandardPrintSize* _tmp4_; - Measurement _tmp5_; - Measurement _tmp6_; -#line 66 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = print_manager_get_instance (); -#line 66 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = _tmp0_; -#line 66 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = print_manager_get_standard_sizes (_tmp1_, &_tmp2_); -#line 66 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = _tmp3_[print_settings_get_size_selection (self)]; -#line 66 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = _tmp4_->width; -#line 66 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = _tmp5_; -#line 66 "/home/jens/Source/shotwell/src/Printing.vala" - _print_manager_unref0 (_tmp1_); -#line 66 "/home/jens/Source/shotwell/src/Printing.vala" - *result = _tmp6_; -#line 66 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 1059 "Printing.c" - } -#line 63 "/home/jens/Source/shotwell/src/Printing.vala" - case CONTENT_LAYOUT_CUSTOM_SIZE: -#line 1063 "Printing.c" - { - Measurement _tmp7_; -#line 70 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = self->priv->content_width; -#line 70 "/home/jens/Source/shotwell/src/Printing.vala" - *result = _tmp7_; -#line 70 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 1072 "Printing.c" - } - default: - { -#line 73 "/home/jens/Source/shotwell/src/Printing.vala" - g_error ("Printing.vala:73: unknown ContentLayout enumeration value"); -#line 1078 "Printing.c" - } - } -} - - -void -print_settings_get_content_height (PrintSettings* self, - Measurement* result) -{ -#line 77 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_SETTINGS (self)); -#line 78 "/home/jens/Source/shotwell/src/Printing.vala" - switch (print_settings_get_content_layout (self)) { -#line 78 "/home/jens/Source/shotwell/src/Printing.vala" - case CONTENT_LAYOUT_STANDARD_SIZE: -#line 78 "/home/jens/Source/shotwell/src/Printing.vala" - case CONTENT_LAYOUT_IMAGE_PER_PAGE: -#line 1096 "Printing.c" - { - PrintManager* _tmp0_; - PrintManager* _tmp1_; - gint _tmp2_; - StandardPrintSize** _tmp3_; - StandardPrintSize* _tmp4_; - Measurement _tmp5_; - Measurement _tmp6_; -#line 81 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = print_manager_get_instance (); -#line 81 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = _tmp0_; -#line 81 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = print_manager_get_standard_sizes (_tmp1_, &_tmp2_); -#line 81 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = _tmp3_[print_settings_get_size_selection (self)]; -#line 81 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = _tmp4_->height; -#line 81 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = _tmp5_; -#line 81 "/home/jens/Source/shotwell/src/Printing.vala" - _print_manager_unref0 (_tmp1_); -#line 81 "/home/jens/Source/shotwell/src/Printing.vala" - *result = _tmp6_; -#line 81 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 1123 "Printing.c" - } -#line 78 "/home/jens/Source/shotwell/src/Printing.vala" - case CONTENT_LAYOUT_CUSTOM_SIZE: -#line 1127 "Printing.c" - { - Measurement _tmp7_; -#line 85 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = self->priv->content_height; -#line 85 "/home/jens/Source/shotwell/src/Printing.vala" - *result = _tmp7_; -#line 85 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 1136 "Printing.c" - } - default: - { -#line 88 "/home/jens/Source/shotwell/src/Printing.vala" - g_error ("Printing.vala:88: unknown ContentLayout enumeration value"); -#line 1142 "Printing.c" - } - } -} - - -void -print_settings_get_minimum_content_dimension (PrintSettings* self, - Measurement* result) -{ - Measurement _tmp0_ = {0}; -#line 92 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_SETTINGS (self)); -#line 93 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp0_, 0.5, MEASUREMENT_UNIT_INCHES); -#line 93 "/home/jens/Source/shotwell/src/Printing.vala" - *result = _tmp0_; -#line 93 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 1161 "Printing.c" -} - - -void -print_settings_get_maximum_content_dimension (PrintSettings* self, - Measurement* result) -{ - Measurement _tmp0_ = {0}; -#line 96 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_SETTINGS (self)); -#line 97 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp0_, (gdouble) 30, MEASUREMENT_UNIT_INCHES); -#line 97 "/home/jens/Source/shotwell/src/Printing.vala" - *result = _tmp0_; -#line 97 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 1178 "Printing.c" -} - - -gboolean -print_settings_is_match_aspect_ratio_enabled (PrintSettings* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 100 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_PRINT_SETTINGS (self), FALSE); -#line 101 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->match_aspect_ratio; -#line 101 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp0_; -#line 101 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 1195 "Printing.c" -} - - -gboolean -print_settings_is_print_titles_enabled (PrintSettings* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 104 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_PRINT_SETTINGS (self), FALSE); -#line 105 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->print_titles; -#line 105 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp0_; -#line 105 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 1212 "Printing.c" -} - - -gint -print_settings_get_content_ppi (PrintSettings* self) -{ - gint result = 0; - gint _tmp0_; -#line 108 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_PRINT_SETTINGS (self), 0); -#line 109 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->content_ppi; -#line 109 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp0_; -#line 109 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 1229 "Printing.c" -} - - -gint -print_settings_get_image_per_page_selection (PrintSettings* self) -{ - gint result = 0; - gint _tmp0_; -#line 112 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_PRINT_SETTINGS (self), 0); -#line 113 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->image_per_page_selection; -#line 113 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp0_; -#line 113 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 1246 "Printing.c" -} - - -gint -print_settings_get_size_selection (PrintSettings* self) -{ - gint result = 0; - gint _tmp0_; -#line 116 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_PRINT_SETTINGS (self), 0); -#line 117 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->size_selection; -#line 117 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp0_; -#line 117 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 1263 "Printing.c" -} - - -ContentLayout -print_settings_get_content_layout (PrintSettings* self) -{ - ContentLayout result = 0; - ContentLayout _tmp0_; -#line 120 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_PRINT_SETTINGS (self), 0); -#line 121 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->content_layout; -#line 121 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp0_; -#line 121 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 1280 "Printing.c" -} - - -void -print_settings_set_content_layout (PrintSettings* self, - ContentLayout content_layout) -{ -#line 124 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_SETTINGS (self)); -#line 125 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->content_layout = content_layout; -#line 1292 "Printing.c" -} - - -void -print_settings_set_content_width (PrintSettings* self, - Measurement* content_width) -{ - Measurement _tmp0_; -#line 128 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_SETTINGS (self)); -#line 128 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (content_width != NULL); -#line 129 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = *content_width; -#line 129 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->content_width = _tmp0_; -#line 1309 "Printing.c" -} - - -void -print_settings_set_content_height (PrintSettings* self, - Measurement* content_height) -{ - Measurement _tmp0_; -#line 132 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_SETTINGS (self)); -#line 132 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (content_height != NULL); -#line 133 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = *content_height; -#line 133 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->content_height = _tmp0_; -#line 1326 "Printing.c" -} - - -void -print_settings_set_content_ppi (PrintSettings* self, - gint content_ppi) -{ -#line 136 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_SETTINGS (self)); -#line 137 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->content_ppi = content_ppi; -#line 1338 "Printing.c" -} - - -void -print_settings_set_image_per_page_selection (PrintSettings* self, - gint image_per_page_selection) -{ -#line 140 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_SETTINGS (self)); -#line 141 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->image_per_page_selection = image_per_page_selection; -#line 1350 "Printing.c" -} - - -void -print_settings_set_size_selection (PrintSettings* self, - gint size_selection) -{ -#line 144 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_SETTINGS (self)); -#line 145 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->size_selection = size_selection; -#line 1362 "Printing.c" -} - - -void -print_settings_set_match_aspect_ratio_enabled (PrintSettings* self, - gboolean enable_state) -{ -#line 148 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_SETTINGS (self)); -#line 149 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->match_aspect_ratio = enable_state; -#line 1374 "Printing.c" -} - - -void -print_settings_set_print_titles_enabled (PrintSettings* self, - gboolean print_titles) -{ -#line 152 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_SETTINGS (self)); -#line 153 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->print_titles = print_titles; -#line 1386 "Printing.c" -} - - -void -print_settings_set_print_titles_font (PrintSettings* self, - const gchar* fontname) -{ - gchar* _tmp0_; -#line 156 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_SETTINGS (self)); -#line 156 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (fontname != NULL); -#line 157 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = g_strdup (fontname); -#line 157 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (self->priv->print_titles_font); -#line 157 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->print_titles_font = _tmp0_; -#line 1405 "Printing.c" -} - - -gchar* -print_settings_get_print_titles_font (PrintSettings* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 160 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_PRINT_SETTINGS (self), NULL); -#line 161 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->print_titles_font; -#line 161 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 161 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp1_; -#line 161 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 1425 "Printing.c" -} - - -static void -value_print_settings_init (GValue* value) -{ -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = NULL; -#line 1434 "Printing.c" -} - - -static void -value_print_settings_free_value (GValue* value) -{ -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - if (value->data[0].v_pointer) { -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_unref (value->data[0].v_pointer); -#line 1445 "Printing.c" - } -} - - -static void -value_print_settings_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - if (src_value->data[0].v_pointer) { -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - dest_value->data[0].v_pointer = print_settings_ref (src_value->data[0].v_pointer); -#line 1458 "Printing.c" - } else { -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - dest_value->data[0].v_pointer = NULL; -#line 1462 "Printing.c" - } -} - - -static gpointer -value_print_settings_peek_pointer (const GValue* value) -{ -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - return value->data[0].v_pointer; -#line 1472 "Printing.c" -} - - -static gchar* -value_print_settings_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - if (collect_values[0].v_pointer) { -#line 1484 "Printing.c" - PrintSettings * object; - object = collect_values[0].v_pointer; -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - if (object->parent_instance.g_class == NULL) { -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1491 "Printing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1495 "Printing.c" - } -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = print_settings_ref (object); -#line 1499 "Printing.c" - } else { -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = NULL; -#line 1503 "Printing.c" - } -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - return NULL; -#line 1507 "Printing.c" -} - - -static gchar* -value_print_settings_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PrintSettings ** object_p; - object_p = collect_values[0].v_pointer; -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - if (!object_p) { -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1523 "Printing.c" - } -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - if (!value->data[0].v_pointer) { -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - *object_p = NULL; -#line 1529 "Printing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - *object_p = value->data[0].v_pointer; -#line 1533 "Printing.c" - } else { -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - *object_p = print_settings_ref (value->data[0].v_pointer); -#line 1537 "Printing.c" - } -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - return NULL; -#line 1541 "Printing.c" -} - - -GParamSpec* -param_spec_print_settings (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecPrintSettings* spec; -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_PRINT_SETTINGS), NULL); -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - return G_PARAM_SPEC (spec); -#line 1561 "Printing.c" -} - - -gpointer -value_get_print_settings (const GValue* value) -{ -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PRINT_SETTINGS), NULL); -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - return value->data[0].v_pointer; -#line 1572 "Printing.c" -} - - -void -value_set_print_settings (GValue* value, - gpointer v_object) -{ - PrintSettings * old; -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PRINT_SETTINGS)); -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - old = value->data[0].v_pointer; -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - if (v_object) { -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PRINT_SETTINGS)); -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = v_object; -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_ref (value->data[0].v_pointer); -#line 1595 "Printing.c" - } else { -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = NULL; -#line 1599 "Printing.c" - } -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - if (old) { -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_unref (old); -#line 1605 "Printing.c" - } -} - - -void -value_take_print_settings (GValue* value, - gpointer v_object) -{ - PrintSettings * old; -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PRINT_SETTINGS)); -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - old = value->data[0].v_pointer; -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - if (v_object) { -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PRINT_SETTINGS)); -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = v_object; -#line 1627 "Printing.c" - } else { -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = NULL; -#line 1631 "Printing.c" - } -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - if (old) { -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_unref (old); -#line 1637 "Printing.c" - } -} - - -static void -print_settings_class_init (PrintSettingsClass * klass) -{ -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_parent_class = g_type_class_peek_parent (klass); -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - ((PrintSettingsClass *) klass)->finalize = print_settings_finalize; -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - g_type_class_add_private (klass, sizeof (PrintSettingsPrivate)); -#line 1651 "Printing.c" -} - - -static void -print_settings_instance_init (PrintSettings * self) -{ -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv = PRINT_SETTINGS_GET_PRIVATE (self); -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - self->ref_count = 1; -#line 1662 "Printing.c" -} - - -static void -print_settings_finalize (PrintSettings * obj) -{ - PrintSettings * self; -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PRINT_SETTINGS, PrintSettings); -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_handlers_destroy (self); -#line 28 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (self->priv->print_titles_font); -#line 1676 "Printing.c" -} - - -GType -print_settings_get_type (void) -{ - static volatile gsize print_settings_type_id__volatile = 0; - if (g_once_init_enter (&print_settings_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_print_settings_init, value_print_settings_free_value, value_print_settings_copy_value, value_print_settings_peek_pointer, "p", value_print_settings_collect_value, "p", value_print_settings_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PrintSettingsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) print_settings_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PrintSettings), 0, (GInstanceInitFunc) print_settings_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType print_settings_type_id; - print_settings_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PrintSettings", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&print_settings_type_id__volatile, print_settings_type_id); - } - return print_settings_type_id__volatile; -} - - -gpointer -print_settings_ref (gpointer instance) -{ - PrintSettings * self; - self = instance; -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - g_atomic_int_inc (&self->ref_count); -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - return instance; -#line 1705 "Printing.c" -} - - -void -print_settings_unref (gpointer instance) -{ - PrintSettings * self; - self = instance; -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - PRINT_SETTINGS_GET_CLASS (self)->finalize (self); -#line 13 "/home/jens/Source/shotwell/src/Printing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1720 "Printing.c" - } -} - - -GType -measurement_unit_get_type (void) -{ - static volatile gsize measurement_unit_type_id__volatile = 0; - if (g_once_init_enter (&measurement_unit_type_id__volatile)) { - static const GEnumValue values[] = {{MEASUREMENT_UNIT_INCHES, "MEASUREMENT_UNIT_INCHES", "inches"}, {MEASUREMENT_UNIT_CENTIMETERS, "MEASUREMENT_UNIT_CENTIMETERS", "centimeters"}, {0, NULL, NULL}}; - GType measurement_unit_type_id; - measurement_unit_type_id = g_enum_register_static ("MeasurementUnit", values); - g_once_init_leave (&measurement_unit_type_id__volatile, measurement_unit_type_id); - } - return measurement_unit_type_id__volatile; -} - - -void -measurement_init (Measurement *self, - gdouble value, - MeasurementUnit unit) -{ -#line 185 "/home/jens/Source/shotwell/src/Printing.vala" - memset (self, 0, sizeof (Measurement)); -#line 186 "/home/jens/Source/shotwell/src/Printing.vala" - (*self).value = value; -#line 187 "/home/jens/Source/shotwell/src/Printing.vala" - (*self).unit = unit; -#line 1750 "Printing.c" -} - - -void -measurement_convert_to (Measurement *self, - MeasurementUnit to_unit, - Measurement* result) -{ - MeasurementUnit _tmp0_; -#line 191 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = (*self).unit; -#line 191 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp0_ == to_unit) { -#line 192 "/home/jens/Source/shotwell/src/Printing.vala" - *result = (*self); -#line 192 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 1768 "Printing.c" - } -#line 194 "/home/jens/Source/shotwell/src/Printing.vala" - if (to_unit == MEASUREMENT_UNIT_INCHES) { -#line 1772 "Printing.c" - gdouble _tmp1_; - Measurement _tmp2_ = {0}; -#line 195 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = (*self).value; -#line 195 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp2_, _tmp1_ * MEASUREMENT_INCHES_PER_CENTIMETER, MEASUREMENT_UNIT_INCHES); -#line 195 "/home/jens/Source/shotwell/src/Printing.vala" - *result = _tmp2_; -#line 195 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 1783 "Printing.c" - } else { -#line 196 "/home/jens/Source/shotwell/src/Printing.vala" - if (to_unit == MEASUREMENT_UNIT_CENTIMETERS) { -#line 1787 "Printing.c" - gdouble _tmp3_; - Measurement _tmp4_ = {0}; -#line 197 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = (*self).value; -#line 197 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp4_, _tmp3_ * MEASUREMENT_CENTIMETERS_PER_INCH, MEASUREMENT_UNIT_CENTIMETERS); -#line 197 "/home/jens/Source/shotwell/src/Printing.vala" - *result = _tmp4_; -#line 197 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 1798 "Printing.c" - } else { -#line 199 "/home/jens/Source/shotwell/src/Printing.vala" - g_error ("Printing.vala:199: unrecognized unit"); -#line 1802 "Printing.c" - } - } -} - - -gboolean -measurement_is_less_than (Measurement *self, - Measurement* rhs) -{ - gboolean result = FALSE; - Measurement _tmp0_ = {0}; - MeasurementUnit _tmp1_; - Measurement _tmp2_; - MeasurementUnit _tmp3_; - Measurement converted_rhs = {0}; - gdouble _tmp7_; - Measurement _tmp8_; - gdouble _tmp9_; -#line 203 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (rhs != NULL, FALSE); -#line 204 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = (*self).unit; -#line 204 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = *rhs; -#line 204 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = _tmp2_.unit; -#line 204 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp1_ == _tmp3_) { -#line 1831 "Printing.c" - Measurement _tmp4_; -#line 204 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = *rhs; -#line 204 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = _tmp4_; -#line 1837 "Printing.c" - } else { - MeasurementUnit _tmp5_; - Measurement _tmp6_ = {0}; -#line 204 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = (*self).unit; -#line 204 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_convert_to (rhs, _tmp5_, &_tmp6_); -#line 204 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = _tmp6_; -#line 1847 "Printing.c" - } -#line 204 "/home/jens/Source/shotwell/src/Printing.vala" - converted_rhs = _tmp0_; -#line 205 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = (*self).value; -#line 205 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = converted_rhs; -#line 205 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = _tmp8_.value; -#line 205 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp7_ < _tmp9_; -#line 205 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 1861 "Printing.c" -} - - -gboolean -measurement_is_greater_than (Measurement *self, - Measurement* rhs) -{ - gboolean result = FALSE; - Measurement _tmp0_ = {0}; - MeasurementUnit _tmp1_; - Measurement _tmp2_; - MeasurementUnit _tmp3_; - Measurement converted_rhs = {0}; - gdouble _tmp7_; - Measurement _tmp8_; - gdouble _tmp9_; -#line 208 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (rhs != NULL, FALSE); -#line 209 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = (*self).unit; -#line 209 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = *rhs; -#line 209 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = _tmp2_.unit; -#line 209 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp1_ == _tmp3_) { -#line 1888 "Printing.c" - Measurement _tmp4_; -#line 209 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = *rhs; -#line 209 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = _tmp4_; -#line 1894 "Printing.c" - } else { - MeasurementUnit _tmp5_; - Measurement _tmp6_ = {0}; -#line 209 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = (*self).unit; -#line 209 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_convert_to (rhs, _tmp5_, &_tmp6_); -#line 209 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = _tmp6_; -#line 1904 "Printing.c" - } -#line 209 "/home/jens/Source/shotwell/src/Printing.vala" - converted_rhs = _tmp0_; -#line 210 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = (*self).value; -#line 210 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = converted_rhs; -#line 210 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = _tmp8_.value; -#line 210 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp7_ > _tmp9_; -#line 210 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 1918 "Printing.c" -} - - -Measurement* -measurement_dup (const Measurement* self) -{ - Measurement* dup; -#line 178 "/home/jens/Source/shotwell/src/Printing.vala" - dup = g_new0 (Measurement, 1); -#line 178 "/home/jens/Source/shotwell/src/Printing.vala" - memcpy (dup, self, sizeof (Measurement)); -#line 178 "/home/jens/Source/shotwell/src/Printing.vala" - return dup; -#line 1932 "Printing.c" -} - - -void -measurement_free (Measurement* self) -{ -#line 178 "/home/jens/Source/shotwell/src/Printing.vala" - g_free (self); -#line 1941 "Printing.c" -} - - -GType -measurement_get_type (void) -{ - static volatile gsize measurement_type_id__volatile = 0; - if (g_once_init_enter (&measurement_type_id__volatile)) { - GType measurement_type_id; - measurement_type_id = g_boxed_type_register_static ("Measurement", (GBoxedCopyFunc) measurement_dup, (GBoxedFreeFunc) measurement_free); - g_once_init_leave (&measurement_type_id__volatile, measurement_type_id); - } - return measurement_type_id__volatile; -} - - -PrintLayout* -print_layout_get_all (int* result_length1) -{ - PrintLayout* result = NULL; - PrintLayout* _tmp0_; - PrintLayout* _tmp1_; - gint _tmp1__length1; -#line 224 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = g_new0 (PrintLayout, 7); -#line 224 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[0] = PRINT_LAYOUT_ENTIRE_PAGE; -#line 224 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[1] = PRINT_LAYOUT_TWO_PER_PAGE; -#line 224 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[2] = PRINT_LAYOUT_FOUR_PER_PAGE; -#line 224 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[3] = PRINT_LAYOUT_SIX_PER_PAGE; -#line 224 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[4] = PRINT_LAYOUT_EIGHT_PER_PAGE; -#line 224 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[5] = PRINT_LAYOUT_SIXTEEN_PER_PAGE; -#line 224 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[6] = PRINT_LAYOUT_THIRTY_TWO_PER_PAGE; -#line 224 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = _tmp0_; -#line 224 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1__length1 = 7; -#line 224 "/home/jens/Source/shotwell/src/Printing.vala" - if (result_length1) { -#line 224 "/home/jens/Source/shotwell/src/Printing.vala" - *result_length1 = _tmp1__length1; -#line 1989 "Printing.c" - } -#line 224 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp1_; -#line 224 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 1995 "Printing.c" -} - - -gint -print_layout_get_per_page (PrintLayout self) -{ - gint result = 0; - gint* per_page = NULL; - gint* _tmp0_; - gint per_page_length1; - gint _per_page_size_; - gint _tmp1_; -#line 236 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = g_new0 (gint, 7); -#line 236 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[0] = 1; -#line 236 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[1] = 2; -#line 236 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[2] = 4; -#line 236 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[3] = 6; -#line 236 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[4] = 8; -#line 236 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[5] = 16; -#line 236 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[6] = 32; -#line 236 "/home/jens/Source/shotwell/src/Printing.vala" - per_page = _tmp0_; -#line 236 "/home/jens/Source/shotwell/src/Printing.vala" - per_page_length1 = 7; -#line 236 "/home/jens/Source/shotwell/src/Printing.vala" - _per_page_size_ = per_page_length1; -#line 238 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = per_page[self]; -#line 238 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp1_; -#line 238 "/home/jens/Source/shotwell/src/Printing.vala" - per_page = (g_free (per_page), NULL); -#line 238 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 2038 "Printing.c" -} - - -gint -print_layout_get_x (PrintLayout self) -{ - gint result = 0; - gint* x = NULL; - gint* _tmp0_; - gint x_length1; - gint _x_size_; - gint _tmp1_; -#line 242 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = g_new0 (gint, 7); -#line 242 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[0] = 1; -#line 242 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[1] = 1; -#line 242 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[2] = 2; -#line 242 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[3] = 2; -#line 242 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[4] = 2; -#line 242 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[5] = 4; -#line 242 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[6] = 4; -#line 242 "/home/jens/Source/shotwell/src/Printing.vala" - x = _tmp0_; -#line 242 "/home/jens/Source/shotwell/src/Printing.vala" - x_length1 = 7; -#line 242 "/home/jens/Source/shotwell/src/Printing.vala" - _x_size_ = x_length1; -#line 244 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = x[self]; -#line 244 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp1_; -#line 244 "/home/jens/Source/shotwell/src/Printing.vala" - x = (g_free (x), NULL); -#line 244 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 2081 "Printing.c" -} - - -gint -print_layout_get_y (PrintLayout self) -{ - gint result = 0; - gint* y = NULL; - gint* _tmp0_; - gint y_length1; - gint _y_size_; - gint _tmp1_; -#line 248 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = g_new0 (gint, 7); -#line 248 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[0] = 1; -#line 248 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[1] = 2; -#line 248 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[2] = 2; -#line 248 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[3] = 3; -#line 248 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[4] = 4; -#line 248 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[5] = 4; -#line 248 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_[6] = 8; -#line 248 "/home/jens/Source/shotwell/src/Printing.vala" - y = _tmp0_; -#line 248 "/home/jens/Source/shotwell/src/Printing.vala" - y_length1 = 7; -#line 248 "/home/jens/Source/shotwell/src/Printing.vala" - _y_size_ = y_length1; -#line 250 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = y[self]; -#line 250 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp1_; -#line 250 "/home/jens/Source/shotwell/src/Printing.vala" - y = (g_free (y), NULL); -#line 250 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 2124 "Printing.c" -} - - -gchar* -print_layout_to_string (PrintLayout self) -{ - gchar* result = NULL; - gchar** labels = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar** _tmp7_; - gint labels_length1; - gint _labels_size_; - const gchar* _tmp8_; - gchar* _tmp9_; -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = g_strdup (_ ("Fill the entire page")); -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = g_strdup (_ ("2 images per page")); -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = g_strdup (_ ("4 images per page")); -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = g_strdup (_ ("6 images per page")); -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = g_strdup (_ ("8 images per page")); -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = g_strdup (_ ("16 images per page")); -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = g_strdup (_ ("32 images per page")); -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = g_new0 (gchar*, 7 + 1); -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_[0] = _tmp0_; -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_[1] = _tmp1_; -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_[2] = _tmp2_; -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_[3] = _tmp3_; -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_[4] = _tmp4_; -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_[5] = _tmp5_; -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_[6] = _tmp6_; -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - labels = _tmp7_; -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - labels_length1 = 7; -#line 254 "/home/jens/Source/shotwell/src/Printing.vala" - _labels_size_ = labels_length1; -#line 264 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = labels[self]; -#line 264 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 264 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp9_; -#line 264 "/home/jens/Source/shotwell/src/Printing.vala" - labels = (_vala_array_free (labels, labels_length1, (GDestroyNotify) g_free), NULL); -#line 264 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 2191 "Printing.c" -} - - -GType -print_layout_get_type (void) -{ - static volatile gsize print_layout_type_id__volatile = 0; - if (g_once_init_enter (&print_layout_type_id__volatile)) { - static const GEnumValue values[] = {{PRINT_LAYOUT_ENTIRE_PAGE, "PRINT_LAYOUT_ENTIRE_PAGE", "entire-page"}, {PRINT_LAYOUT_TWO_PER_PAGE, "PRINT_LAYOUT_TWO_PER_PAGE", "two-per-page"}, {PRINT_LAYOUT_FOUR_PER_PAGE, "PRINT_LAYOUT_FOUR_PER_PAGE", "four-per-page"}, {PRINT_LAYOUT_SIX_PER_PAGE, "PRINT_LAYOUT_SIX_PER_PAGE", "six-per-page"}, {PRINT_LAYOUT_EIGHT_PER_PAGE, "PRINT_LAYOUT_EIGHT_PER_PAGE", "eight-per-page"}, {PRINT_LAYOUT_SIXTEEN_PER_PAGE, "PRINT_LAYOUT_SIXTEEN_PER_PAGE", "sixteen-per-page"}, {PRINT_LAYOUT_THIRTY_TWO_PER_PAGE, "PRINT_LAYOUT_THIRTY_TWO_PER_PAGE", "thirty-two-per-page"}, {0, NULL, NULL}}; - GType print_layout_type_id; - print_layout_type_id = g_enum_register_static ("PrintLayout", values); - g_once_init_leave (&print_layout_type_id__volatile, print_layout_type_id); - } - return print_layout_type_id__volatile; -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 305 "/home/jens/Source/shotwell/src/Printing.vala" - return self ? g_object_ref (self) : NULL; -#line 2214 "Printing.c" -} - - -static void -_custom_print_tab_on_radio_group_click_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 307 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_on_radio_group_click ((CustomPrintTab*) self, _sender); -#line 2224 "Printing.c" -} - - -static gboolean -_custom_print_tab_standard_sizes_combo_separator_func_gtk_tree_view_row_separator_func (GtkTreeModel* model, - GtkTreeIter* iter, - gpointer self) -{ - gboolean result; - result = custom_print_tab_standard_sizes_combo_separator_func (model, iter); -#line 316 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 2237 "Printing.c" -} - - -static gpointer -_standard_print_size_ref0 (gpointer self) -{ -#line 317 "/home/jens/Source/shotwell/src/Printing.vala" - return self ? standard_print_size_ref (self) : NULL; -#line 2246 "Printing.c" -} - - -static void -_custom_print_tab_on_entry_insert_text_gtk_editable_insert_text (GtkEditable* _sender, - const gchar* new_text, - gint new_text_length, - gint* position, - gpointer self) -{ -#line 323 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_on_entry_insert_text ((CustomPrintTab*) self, _sender, new_text, new_text_length, position); -#line 2259 "Printing.c" -} - - -static gboolean -_custom_print_tab_on_width_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender, - GdkEventFocus* event, - gpointer self) -{ - gboolean result; - result = custom_print_tab_on_width_entry_focus_out ((CustomPrintTab*) self, event); -#line 324 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 2272 "Printing.c" -} - - -static gboolean -_custom_print_tab_on_height_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender, - GdkEventFocus* event, - gpointer self) -{ - gboolean result; - result = custom_print_tab_on_height_entry_focus_out ((CustomPrintTab*) self, event); -#line 327 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 2285 "Printing.c" -} - - -static void -_custom_print_tab_on_units_combo_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 329 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_on_units_combo_changed ((CustomPrintTab*) self); -#line 2295 "Printing.c" -} - - -static void -_custom_print_tab_on_ppi_entry_insert_text_gtk_editable_insert_text (GtkEditable* _sender, - const gchar* new_text, - gint new_text_length, - gint* position, - gpointer self) -{ -#line 332 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_on_ppi_entry_insert_text ((CustomPrintTab*) self, _sender, new_text, new_text_length, position); -#line 2308 "Printing.c" -} - - -static gboolean -_custom_print_tab_on_ppi_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender, - GdkEventFocus* event, - gpointer self) -{ - gboolean result; - result = custom_print_tab_on_ppi_entry_focus_out ((CustomPrintTab*) self, event); -#line 333 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 2321 "Printing.c" -} - - -static void -_custom_print_tab_on_aspect_ratio_check_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 340 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_on_aspect_ratio_check_clicked ((CustomPrintTab*) self); -#line 2331 "Printing.c" -} - - -CustomPrintTab* -custom_print_tab_construct (GType object_type, - PrintJob* source_job) -{ - CustomPrintTab * self = NULL; - PrintJob* _tmp0_; - GtkRadioButton* _tmp1_; - GtkRadioButton* _tmp2_; - GtkRadioButton* _tmp3_; - gint _tmp4_; - PrintLayout* _tmp5_; - StandardPrintSize** standard_sizes = NULL; - PrintManager* _tmp10_; - PrintManager* _tmp11_; - gint _tmp12_; - StandardPrintSize** _tmp13_; - StandardPrintSize** _tmp14_; - gint _tmp14__length1; - gint standard_sizes_length1; - gint _standard_sizes_size_; - GtkComboBoxText* _tmp15_; - StandardPrintSize** _tmp16_; - gint _tmp16__length1; - GtkComboBoxText* _tmp21_; - GtkEntry* _tmp22_; - GtkEntry* _tmp23_; - GtkEntry* _tmp24_; - GtkEntry* _tmp25_; - GtkComboBoxText* _tmp26_; - GtkComboBoxText* _tmp27_; - GtkEntry* _tmp28_; - GtkEntry* _tmp29_; - GtkCheckButton* _tmp30_; -#line 304 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_PRINT_JOB (source_job), NULL); -#line 304 "/home/jens/Source/shotwell/src/Printing.vala" - self = (CustomPrintTab*) g_object_new (object_type, NULL); -#line 305 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = _g_object_ref0 (source_job); -#line 305 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->source_job); -#line 305 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->source_job = _tmp0_; -#line 307 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = self->priv->standard_size_radio; -#line 307 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _custom_print_tab_on_radio_group_click_gtk_button_clicked, self, 0); -#line 308 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = self->priv->custom_size_radio; -#line 308 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _custom_print_tab_on_radio_group_click_gtk_button_clicked, self, 0); -#line 309 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = self->priv->image_per_page_radio; -#line 309 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _custom_print_tab_on_radio_group_click_gtk_button_clicked, self, 0); -#line 311 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = print_layout_get_all (&_tmp4_); -#line 2392 "Printing.c" - { - PrintLayout* layout_collection = NULL; - gint layout_collection_length1 = 0; - gint _layout_collection_size_ = 0; - gint layout_it = 0; -#line 311 "/home/jens/Source/shotwell/src/Printing.vala" - layout_collection = _tmp5_; -#line 311 "/home/jens/Source/shotwell/src/Printing.vala" - layout_collection_length1 = _tmp4_; -#line 311 "/home/jens/Source/shotwell/src/Printing.vala" - for (layout_it = 0; layout_it < _tmp4_; layout_it = layout_it + 1) { -#line 2404 "Printing.c" - PrintLayout layout = 0; -#line 311 "/home/jens/Source/shotwell/src/Printing.vala" - layout = layout_collection[layout_it]; -#line 2408 "Printing.c" - { - GtkComboBoxText* _tmp6_; - PrintLayout _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 312 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = self->priv->image_per_page_combo; -#line 312 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = layout; -#line 312 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = print_layout_to_string (_tmp7_); -#line 312 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = _tmp8_; -#line 312 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_combo_box_text_append_text (_tmp6_, _tmp9_); -#line 312 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp9_); -#line 2426 "Printing.c" - } - } -#line 311 "/home/jens/Source/shotwell/src/Printing.vala" - layout_collection = (g_free (layout_collection), NULL); -#line 2431 "Printing.c" - } -#line 315 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp10_ = print_manager_get_instance (); -#line 315 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp11_ = _tmp10_; -#line 315 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp13_ = print_manager_get_standard_sizes (_tmp11_, &_tmp12_); -#line 315 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp14_ = _tmp13_; -#line 315 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp14__length1 = _tmp12_; -#line 315 "/home/jens/Source/shotwell/src/Printing.vala" - _print_manager_unref0 (_tmp11_); -#line 315 "/home/jens/Source/shotwell/src/Printing.vala" - standard_sizes = _tmp14_; -#line 315 "/home/jens/Source/shotwell/src/Printing.vala" - standard_sizes_length1 = _tmp14__length1; -#line 315 "/home/jens/Source/shotwell/src/Printing.vala" - _standard_sizes_size_ = standard_sizes_length1; -#line 316 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp15_ = self->priv->standard_sizes_combo; -#line 316 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_combo_box_set_row_separator_func (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_combo_box_get_type (), GtkComboBox), _custom_print_tab_standard_sizes_combo_separator_func_gtk_tree_view_row_separator_func, NULL, NULL); -#line 317 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp16_ = standard_sizes; -#line 317 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp16__length1 = standard_sizes_length1; -#line 2459 "Printing.c" - { - StandardPrintSize** size_collection = NULL; - gint size_collection_length1 = 0; - gint _size_collection_size_ = 0; - gint size_it = 0; -#line 317 "/home/jens/Source/shotwell/src/Printing.vala" - size_collection = _tmp16_; -#line 317 "/home/jens/Source/shotwell/src/Printing.vala" - size_collection_length1 = _tmp16__length1; -#line 317 "/home/jens/Source/shotwell/src/Printing.vala" - for (size_it = 0; size_it < _tmp16__length1; size_it = size_it + 1) { -#line 2471 "Printing.c" - StandardPrintSize* _tmp17_; - StandardPrintSize* size = NULL; -#line 317 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp17_ = _standard_print_size_ref0 (size_collection[size_it]); -#line 317 "/home/jens/Source/shotwell/src/Printing.vala" - size = _tmp17_; -#line 2478 "Printing.c" - { - GtkComboBoxText* _tmp18_; - StandardPrintSize* _tmp19_; - const gchar* _tmp20_; -#line 318 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp18_ = self->priv->standard_sizes_combo; -#line 318 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp19_ = size; -#line 318 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp20_ = _tmp19_->name; -#line 318 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_combo_box_text_append_text (_tmp18_, _tmp20_); -#line 317 "/home/jens/Source/shotwell/src/Printing.vala" - _standard_print_size_unref0 (size); -#line 2493 "Printing.c" - } - } - } -#line 321 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp21_ = self->priv->standard_sizes_combo; -#line 321 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_combo_box_get_type (), GtkComboBox), 9 * resources_get_default_measurement_unit ()); -#line 323 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp22_ = self->priv->custom_width_entry; -#line 323 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_editable_get_type (), GtkEditable), "insert-text", (GCallback) _custom_print_tab_on_entry_insert_text_gtk_editable_insert_text, self, 0); -#line 324 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp23_ = self->priv->custom_width_entry; -#line 324 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), "focus-out-event", (GCallback) _custom_print_tab_on_width_entry_focus_out_gtk_widget_focus_out_event, self, 0); -#line 326 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp24_ = self->priv->custom_height_entry; -#line 326 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_editable_get_type (), GtkEditable), "insert-text", (GCallback) _custom_print_tab_on_entry_insert_text_gtk_editable_insert_text, self, 0); -#line 327 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp25_ = self->priv->custom_height_entry; -#line 327 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget), "focus-out-event", (GCallback) _custom_print_tab_on_height_entry_focus_out_gtk_widget_focus_out_event, self, 0); -#line 329 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp26_ = self->priv->units_combo; -#line 329 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _custom_print_tab_on_units_combo_changed_gtk_combo_box_changed, self, 0); -#line 330 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp27_ = self->priv->units_combo; -#line 330 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_combo_box_get_type (), GtkComboBox), (gint) resources_get_default_measurement_unit ()); -#line 332 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp28_ = self->priv->ppi_entry; -#line 332 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_editable_get_type (), GtkEditable), "insert-text", (GCallback) _custom_print_tab_on_ppi_entry_insert_text_gtk_editable_insert_text, self, 0); -#line 333 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp29_ = self->priv->ppi_entry; -#line 333 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget), "focus-out-event", (GCallback) _custom_print_tab_on_ppi_entry_focus_out_gtk_widget_focus_out_event, self, 0); -#line 335 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_sync_state_from_job (self, source_job); -#line 337 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 340 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp30_ = self->priv->aspect_ratio_check; -#line 340 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _custom_print_tab_on_aspect_ratio_check_clicked_gtk_button_clicked, self, 0); -#line 304 "/home/jens/Source/shotwell/src/Printing.vala" - return self; -#line 2543 "Printing.c" -} - - -CustomPrintTab* -custom_print_tab_new (PrintJob* source_job) -{ -#line 304 "/home/jens/Source/shotwell/src/Printing.vala" - return custom_print_tab_construct (TYPE_CUSTOM_PRINT_TAB, source_job); -#line 2552 "Printing.c" -} - - -static void -custom_print_tab_on_aspect_ratio_check_clicked (CustomPrintTab* self) -{ - GtkCheckButton* _tmp0_; -#line 343 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 344 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->aspect_ratio_check; -#line 344 "/home/jens/Source/shotwell/src/Printing.vala" - if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton))) { -#line 2566 "Printing.c" - Measurement _tmp1_; - gdouble _tmp2_; - PrintJob* _tmp3_; - Measurement _tmp4_; - MeasurementUnit _tmp5_; - GtkEntry* _tmp6_; - Measurement _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 345 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = self->priv->local_content_height; -#line 345 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = _tmp1_.value; -#line 345 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = self->priv->source_job; -#line 345 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = self->priv->local_content_height; -#line 345 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = _tmp4_.unit; -#line 345 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&self->priv->local_content_width, _tmp2_ * print_job_get_source_aspect_ratio (_tmp3_), _tmp5_); -#line 348 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = self->priv->custom_width_entry; -#line 348 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = self->priv->local_content_width; -#line 348 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = custom_print_tab_format_measurement (self, &_tmp7_); -#line 348 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = _tmp8_; -#line 348 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_entry_set_text (_tmp6_, _tmp9_); -#line 348 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp9_); -#line 2600 "Printing.c" - } -} - - -static gboolean -custom_print_tab_on_width_entry_focus_out (CustomPrintTab* self, - GdkEventFocus* event) -{ - gboolean result = FALSE; - GtkEntry* _tmp0_; - const gchar* _tmp1_; - Measurement _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gboolean _tmp5_; - Measurement new_width = {0}; - Measurement _tmp6_ = {0}; - Measurement min_width = {0}; - PrintJob* _tmp7_; - PrintSettings* _tmp8_; - PrintSettings* _tmp9_; - Measurement _tmp10_ = {0}; - Measurement _tmp11_; - Measurement max_width = {0}; - PrintJob* _tmp12_; - PrintSettings* _tmp13_; - PrintSettings* _tmp14_; - Measurement _tmp15_ = {0}; - Measurement _tmp16_; - gboolean _tmp17_ = FALSE; - Measurement _tmp18_; - Measurement _tmp34_; - GtkEntry* _tmp35_; - Measurement _tmp36_; - gchar* _tmp37_; - gchar* _tmp38_; -#line 352 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), FALSE); -#line 352 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 353 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->custom_width_entry; -#line 353 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 353 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = self->priv->local_content_width; -#line 353 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = custom_print_tab_format_measurement_as (self, &_tmp2_, custom_print_tab_get_user_unit_choice (self)); -#line 353 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = _tmp3_; -#line 353 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = g_strcmp0 (_tmp1_, _tmp4_) == 0; -#line 353 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp4_); -#line 353 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp5_) { -#line 355 "/home/jens/Source/shotwell/src/Printing.vala" - result = FALSE; -#line 355 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 2661 "Printing.c" - } -#line 357 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_get_width_entry_value (self, &_tmp6_); -#line 357 "/home/jens/Source/shotwell/src/Printing.vala" - new_width = _tmp6_; -#line 358 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = self->priv->source_job; -#line 358 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = print_job_get_local_settings (_tmp7_); -#line 358 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = _tmp8_; -#line 358 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_get_minimum_content_dimension (_tmp9_, &_tmp10_); -#line 358 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp11_ = _tmp10_; -#line 358 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp9_); -#line 358 "/home/jens/Source/shotwell/src/Printing.vala" - min_width = _tmp11_; -#line 359 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp12_ = self->priv->source_job; -#line 359 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp13_ = print_job_get_local_settings (_tmp12_); -#line 359 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp14_ = _tmp13_; -#line 359 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_get_maximum_content_dimension (_tmp14_, &_tmp15_); -#line 359 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp16_ = _tmp15_; -#line 359 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp14_); -#line 359 "/home/jens/Source/shotwell/src/Printing.vala" - max_width = _tmp16_; -#line 361 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp18_ = min_width; -#line 361 "/home/jens/Source/shotwell/src/Printing.vala" - if (measurement_is_less_than (&new_width, &_tmp18_)) { -#line 361 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp17_ = TRUE; -#line 2701 "Printing.c" - } else { - Measurement _tmp19_; -#line 361 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp19_ = max_width; -#line 361 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp17_ = measurement_is_greater_than (&new_width, &_tmp19_); -#line 2708 "Printing.c" - } -#line 361 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp17_) { -#line 2712 "Printing.c" - GtkEntry* _tmp20_; - Measurement _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; -#line 362 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp20_ = self->priv->custom_width_entry; -#line 362 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp21_ = self->priv->local_content_width; -#line 362 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp22_ = custom_print_tab_format_measurement (self, &_tmp21_); -#line 362 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp23_ = _tmp22_; -#line 362 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_entry_set_text (_tmp20_, _tmp23_); -#line 362 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp23_); -#line 363 "/home/jens/Source/shotwell/src/Printing.vala" - result = FALSE; -#line 363 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 2733 "Printing.c" - } -#line 366 "/home/jens/Source/shotwell/src/Printing.vala" - if (custom_print_tab_is_match_aspect_ratio_enabled (self)) { -#line 2737 "Printing.c" - Measurement new_height = {0}; - Measurement _tmp24_; - gdouble _tmp25_; - PrintJob* _tmp26_; - Measurement _tmp27_; - MeasurementUnit _tmp28_; - Measurement _tmp29_; - GtkEntry* _tmp30_; - Measurement _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; -#line 367 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp24_ = new_width; -#line 367 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp25_ = _tmp24_.value; -#line 367 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp26_ = self->priv->source_job; -#line 367 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp27_ = new_width; -#line 367 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp28_ = _tmp27_.unit; -#line 367 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&new_height, _tmp25_ / print_job_get_source_aspect_ratio (_tmp26_), _tmp28_); -#line 370 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp29_ = new_height; -#line 370 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->local_content_height = _tmp29_; -#line 371 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp30_ = self->priv->custom_height_entry; -#line 371 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp31_ = new_height; -#line 371 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp32_ = custom_print_tab_format_measurement (self, &_tmp31_); -#line 371 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp33_ = _tmp32_; -#line 371 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_entry_set_text (_tmp30_, _tmp33_); -#line 371 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp33_); -#line 2777 "Printing.c" - } -#line 374 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp34_ = new_width; -#line 374 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->local_content_width = _tmp34_; -#line 375 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp35_ = self->priv->custom_width_entry; -#line 375 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp36_ = new_width; -#line 375 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp37_ = custom_print_tab_format_measurement (self, &_tmp36_); -#line 375 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp38_ = _tmp37_; -#line 375 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_entry_set_text (_tmp35_, _tmp38_); -#line 375 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp38_); -#line 376 "/home/jens/Source/shotwell/src/Printing.vala" - result = FALSE; -#line 376 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 2799 "Printing.c" -} - - -static gchar* -custom_print_tab_format_measurement (CustomPrintTab* self, - Measurement* measurement) -{ - gchar* result = NULL; - Measurement _tmp0_; - gdouble _tmp1_; - gchar* _tmp2_; -#line 379 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), NULL); -#line 379 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (measurement != NULL, NULL); -#line 380 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = *measurement; -#line 380 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = _tmp0_.value; -#line 380 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = g_strdup_printf ("%.2f", _tmp1_); -#line 380 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp2_; -#line 380 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 2825 "Printing.c" -} - - -static gchar* -custom_print_tab_format_measurement_as (CustomPrintTab* self, - Measurement* measurement, - MeasurementUnit to_unit) -{ - gchar* result = NULL; - Measurement _tmp0_ = {0}; - Measurement _tmp1_; - MeasurementUnit _tmp2_; - Measurement converted_measurement = {0}; - Measurement _tmp5_; - gchar* _tmp6_; -#line 383 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), NULL); -#line 383 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (measurement != NULL, NULL); -#line 384 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = *measurement; -#line 384 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = _tmp1_.unit; -#line 384 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp2_ == to_unit) { -#line 2851 "Printing.c" - Measurement _tmp3_; -#line 384 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = *measurement; -#line 384 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = _tmp3_; -#line 2857 "Printing.c" - } else { - Measurement _tmp4_ = {0}; -#line 385 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_convert_to (measurement, to_unit, &_tmp4_); -#line 385 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = _tmp4_; -#line 2864 "Printing.c" - } -#line 384 "/home/jens/Source/shotwell/src/Printing.vala" - converted_measurement = _tmp0_; -#line 386 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = converted_measurement; -#line 386 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = custom_print_tab_format_measurement (self, &_tmp5_); -#line 386 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp6_; -#line 386 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 2876 "Printing.c" -} - - -static gboolean -custom_print_tab_on_ppi_entry_focus_out (CustomPrintTab* self, - GdkEventFocus* event) -{ - gboolean result = FALSE; - GtkEntry* _tmp0_; - const gchar* _tmp1_; -#line 389 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), FALSE); -#line 389 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 390 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->ppi_entry; -#line 390 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 390 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_set_content_ppi (self, atoi (_tmp1_)); -#line 391 "/home/jens/Source/shotwell/src/Printing.vala" - result = FALSE; -#line 391 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 2901 "Printing.c" -} - - -static gchar -string_get (const gchar* self, - glong index) -{ - gchar result = '\0'; - gchar _tmp0_; -#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, '\0'); -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = ((gchar*) self)[index]; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2919 "Printing.c" -} - - -static void -custom_print_tab_on_ppi_entry_insert_text (CustomPrintTab* self, - GtkEditable* editable, - const gchar* text, - gint length, - gint* position) -{ - GtkEntry* sender = NULL; - GtkEntry* _tmp0_; - gboolean _tmp1_; - gchar* new_text = NULL; - gchar* _tmp4_; - const gchar* _tmp14_; - gint _tmp15_; - gint _tmp16_; - GtkEntry* _tmp22_; -#line 394 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 394 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (GTK_IS_EDITABLE (editable)); -#line 394 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (text != NULL); -#line 396 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (editable, gtk_entry_get_type (), GtkEntry)); -#line 396 "/home/jens/Source/shotwell/src/Printing.vala" - sender = _tmp0_; -#line 398 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = self->priv->is_text_insertion_in_progress; -#line 398 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp1_) { -#line 399 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (sender); -#line 399 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 2957 "Printing.c" - } -#line 401 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->is_text_insertion_in_progress = TRUE; -#line 403 "/home/jens/Source/shotwell/src/Printing.vala" - if (length == -1) { -#line 2963 "Printing.c" - gint _tmp2_; - gint _tmp3_; -#line 404 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = strlen (text); -#line 404 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = _tmp2_; -#line 404 "/home/jens/Source/shotwell/src/Printing.vala" - length = (gint) _tmp3_; -#line 2972 "Printing.c" - } -#line 406 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = g_strdup (""); -#line 406 "/home/jens/Source/shotwell/src/Printing.vala" - new_text = _tmp4_; -#line 2978 "Printing.c" - { - gint ctr = 0; -#line 407 "/home/jens/Source/shotwell/src/Printing.vala" - ctr = 0; -#line 2983 "Printing.c" - { - gboolean _tmp5_ = FALSE; -#line 407 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = TRUE; -#line 407 "/home/jens/Source/shotwell/src/Printing.vala" - while (TRUE) { -#line 2990 "Printing.c" - gint _tmp7_; - gint _tmp8_; -#line 407 "/home/jens/Source/shotwell/src/Printing.vala" - if (!_tmp5_) { -#line 2995 "Printing.c" - gint _tmp6_; -#line 407 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = ctr; -#line 407 "/home/jens/Source/shotwell/src/Printing.vala" - ctr = _tmp6_ + 1; -#line 3001 "Printing.c" - } -#line 407 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = FALSE; -#line 407 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = ctr; -#line 407 "/home/jens/Source/shotwell/src/Printing.vala" - if (!(_tmp7_ < length)) { -#line 407 "/home/jens/Source/shotwell/src/Printing.vala" - break; -#line 3011 "Printing.c" - } -#line 408 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = ctr; -#line 408 "/home/jens/Source/shotwell/src/Printing.vala" - if (g_ascii_isdigit (string_get (text, (glong) _tmp8_))) { -#line 3017 "Printing.c" - const gchar* _tmp9_; - gint _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 409 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = new_text; -#line 409 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp10_ = ctr; -#line 409 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp11_ = g_strdup_printf ("%c", (gchar) string_get (text, (glong) _tmp10_)); -#line 409 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp12_ = _tmp11_; -#line 409 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp13_ = g_strconcat (_tmp9_, _tmp12_, NULL); -#line 409 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (new_text); -#line 409 "/home/jens/Source/shotwell/src/Printing.vala" - new_text = _tmp13_; -#line 409 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp12_); -#line 3039 "Printing.c" - } - } - } - } -#line 412 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp14_ = new_text; -#line 412 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp15_ = strlen (_tmp14_); -#line 412 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp16_ = _tmp15_; -#line 412 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp16_ > 0) { -#line 3052 "Printing.c" - GtkEntry* _tmp17_; - const gchar* _tmp18_; - const gchar* _tmp19_; - gint _tmp20_; - gint _tmp21_; -#line 413 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp17_ = sender; -#line 413 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp18_ = new_text; -#line 413 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp19_ = new_text; -#line 413 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp20_ = strlen (_tmp19_); -#line 413 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp21_ = _tmp20_; -#line 413 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_editable_get_type (), GtkEditable), "insert-text", _tmp18_, (gint) _tmp21_, position); -#line 3070 "Printing.c" - } -#line 415 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp22_ = sender; -#line 415 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_stop_emission_by_name (_tmp22_, "insert-text"); -#line 417 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->is_text_insertion_in_progress = FALSE; -#line 394 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (new_text); -#line 394 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (sender); -#line 3082 "Printing.c" -} - - -static gboolean -custom_print_tab_on_height_entry_focus_out (CustomPrintTab* self, - GdkEventFocus* event) -{ - gboolean result = FALSE; - GtkEntry* _tmp0_; - const gchar* _tmp1_; - Measurement _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gboolean _tmp5_; - Measurement new_height = {0}; - Measurement _tmp6_ = {0}; - Measurement min_height = {0}; - PrintJob* _tmp7_; - PrintSettings* _tmp8_; - PrintSettings* _tmp9_; - Measurement _tmp10_ = {0}; - Measurement _tmp11_; - Measurement max_height = {0}; - PrintJob* _tmp12_; - PrintSettings* _tmp13_; - PrintSettings* _tmp14_; - Measurement _tmp15_ = {0}; - Measurement _tmp16_; - gboolean _tmp17_ = FALSE; - Measurement _tmp18_; - Measurement _tmp34_; - GtkEntry* _tmp35_; - Measurement _tmp36_; - gchar* _tmp37_; - gchar* _tmp38_; -#line 420 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), FALSE); -#line 420 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 421 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->custom_height_entry; -#line 421 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 421 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = self->priv->local_content_height; -#line 421 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = custom_print_tab_format_measurement_as (self, &_tmp2_, custom_print_tab_get_user_unit_choice (self)); -#line 421 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = _tmp3_; -#line 421 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = g_strcmp0 (_tmp1_, _tmp4_) == 0; -#line 421 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp4_); -#line 421 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp5_) { -#line 423 "/home/jens/Source/shotwell/src/Printing.vala" - result = FALSE; -#line 423 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 3142 "Printing.c" - } -#line 425 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_get_height_entry_value (self, &_tmp6_); -#line 425 "/home/jens/Source/shotwell/src/Printing.vala" - new_height = _tmp6_; -#line 426 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = self->priv->source_job; -#line 426 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = print_job_get_local_settings (_tmp7_); -#line 426 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = _tmp8_; -#line 426 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_get_minimum_content_dimension (_tmp9_, &_tmp10_); -#line 426 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp11_ = _tmp10_; -#line 426 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp9_); -#line 426 "/home/jens/Source/shotwell/src/Printing.vala" - min_height = _tmp11_; -#line 427 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp12_ = self->priv->source_job; -#line 427 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp13_ = print_job_get_local_settings (_tmp12_); -#line 427 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp14_ = _tmp13_; -#line 427 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_get_maximum_content_dimension (_tmp14_, &_tmp15_); -#line 427 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp16_ = _tmp15_; -#line 427 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp14_); -#line 427 "/home/jens/Source/shotwell/src/Printing.vala" - max_height = _tmp16_; -#line 429 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp18_ = min_height; -#line 429 "/home/jens/Source/shotwell/src/Printing.vala" - if (measurement_is_less_than (&new_height, &_tmp18_)) { -#line 429 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp17_ = TRUE; -#line 3182 "Printing.c" - } else { - Measurement _tmp19_; -#line 429 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp19_ = max_height; -#line 429 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp17_ = measurement_is_greater_than (&new_height, &_tmp19_); -#line 3189 "Printing.c" - } -#line 429 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp17_) { -#line 3193 "Printing.c" - GtkEntry* _tmp20_; - Measurement _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; -#line 430 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp20_ = self->priv->custom_height_entry; -#line 430 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp21_ = self->priv->local_content_height; -#line 430 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp22_ = custom_print_tab_format_measurement (self, &_tmp21_); -#line 430 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp23_ = _tmp22_; -#line 430 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_entry_set_text (_tmp20_, _tmp23_); -#line 430 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp23_); -#line 431 "/home/jens/Source/shotwell/src/Printing.vala" - result = FALSE; -#line 431 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 3214 "Printing.c" - } -#line 434 "/home/jens/Source/shotwell/src/Printing.vala" - if (custom_print_tab_is_match_aspect_ratio_enabled (self)) { -#line 3218 "Printing.c" - Measurement new_width = {0}; - Measurement _tmp24_; - gdouble _tmp25_; - PrintJob* _tmp26_; - Measurement _tmp27_; - MeasurementUnit _tmp28_; - Measurement _tmp29_; - GtkEntry* _tmp30_; - Measurement _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; -#line 435 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp24_ = new_height; -#line 435 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp25_ = _tmp24_.value; -#line 435 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp26_ = self->priv->source_job; -#line 435 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp27_ = new_height; -#line 435 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp28_ = _tmp27_.unit; -#line 435 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&new_width, _tmp25_ * print_job_get_source_aspect_ratio (_tmp26_), _tmp28_); -#line 438 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp29_ = new_width; -#line 438 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->local_content_width = _tmp29_; -#line 439 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp30_ = self->priv->custom_width_entry; -#line 439 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp31_ = new_width; -#line 439 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp32_ = custom_print_tab_format_measurement (self, &_tmp31_); -#line 439 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp33_ = _tmp32_; -#line 439 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_entry_set_text (_tmp30_, _tmp33_); -#line 439 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp33_); -#line 3258 "Printing.c" - } -#line 442 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp34_ = new_height; -#line 442 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->local_content_height = _tmp34_; -#line 443 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp35_ = self->priv->custom_height_entry; -#line 443 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp36_ = new_height; -#line 443 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp37_ = custom_print_tab_format_measurement (self, &_tmp36_); -#line 443 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp38_ = _tmp37_; -#line 443 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_entry_set_text (_tmp35_, _tmp38_); -#line 443 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp38_); -#line 444 "/home/jens/Source/shotwell/src/Printing.vala" - result = FALSE; -#line 444 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 3280 "Printing.c" -} - - -static MeasurementUnit -custom_print_tab_get_user_unit_choice (CustomPrintTab* self) -{ - MeasurementUnit result = 0; - GtkComboBoxText* _tmp0_; -#line 447 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), 0); -#line 448 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->units_combo; -#line 448 "/home/jens/Source/shotwell/src/Printing.vala" - if (gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox)) == CUSTOM_PRINT_TAB_INCHES_COMBO_CHOICE) { -#line 449 "/home/jens/Source/shotwell/src/Printing.vala" - result = MEASUREMENT_UNIT_INCHES; -#line 449 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 3299 "Printing.c" - } else { - GtkComboBoxText* _tmp1_; -#line 450 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = self->priv->units_combo; -#line 450 "/home/jens/Source/shotwell/src/Printing.vala" - if (gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox)) == CUSTOM_PRINT_TAB_CENTIMETERS_COMBO_CHOICE) { -#line 451 "/home/jens/Source/shotwell/src/Printing.vala" - result = MEASUREMENT_UNIT_CENTIMETERS; -#line 451 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 3310 "Printing.c" - } else { -#line 453 "/home/jens/Source/shotwell/src/Printing.vala" - g_error ("Printing.vala:453: unknown unit combo box choice"); -#line 3314 "Printing.c" - } - } -} - - -static void -custom_print_tab_set_user_unit_choice (CustomPrintTab* self, - MeasurementUnit unit) -{ -#line 457 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 458 "/home/jens/Source/shotwell/src/Printing.vala" - if (unit == MEASUREMENT_UNIT_INCHES) { -#line 3328 "Printing.c" - GtkComboBoxText* _tmp0_; -#line 459 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->units_combo; -#line 459 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), CUSTOM_PRINT_TAB_INCHES_COMBO_CHOICE); -#line 3334 "Printing.c" - } else { -#line 460 "/home/jens/Source/shotwell/src/Printing.vala" - if (unit == MEASUREMENT_UNIT_CENTIMETERS) { -#line 3338 "Printing.c" - GtkComboBoxText* _tmp1_; -#line 461 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = self->priv->units_combo; -#line 461 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), CUSTOM_PRINT_TAB_CENTIMETERS_COMBO_CHOICE); -#line 3344 "Printing.c" - } else { -#line 463 "/home/jens/Source/shotwell/src/Printing.vala" - g_error ("Printing.vala:463: unknown MeasurementUnit enumeration"); -#line 3348 "Printing.c" - } - } -} - - -static gdouble -double_parse (const gchar* str) -{ - gdouble result = 0.0; - gdouble _tmp0_; -#line 889 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (str != NULL, 0.0); -#line 890 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_ascii_strtod (str, NULL); -#line 890 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 890 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3367 "Printing.c" -} - - -static void -custom_print_tab_get_width_entry_value (CustomPrintTab* self, - Measurement* result) -{ - GtkEntry* _tmp0_; - const gchar* _tmp1_; - Measurement _tmp2_ = {0}; -#line 467 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 468 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->custom_width_entry; -#line 468 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 468 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp2_, double_parse (_tmp1_), custom_print_tab_get_user_unit_choice (self)); -#line 468 "/home/jens/Source/shotwell/src/Printing.vala" - *result = _tmp2_; -#line 468 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 3390 "Printing.c" -} - - -static void -custom_print_tab_get_height_entry_value (CustomPrintTab* self, - Measurement* result) -{ - GtkEntry* _tmp0_; - const gchar* _tmp1_; - Measurement _tmp2_ = {0}; -#line 471 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 472 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->custom_height_entry; -#line 472 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = gtk_entry_get_text (_tmp0_); -#line 472 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp2_, double_parse (_tmp1_), custom_print_tab_get_user_unit_choice (self)); -#line 472 "/home/jens/Source/shotwell/src/Printing.vala" - *result = _tmp2_; -#line 472 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 3413 "Printing.c" -} - - -static gboolean -string_contains (const gchar* self, - const gchar* needle) -{ - gboolean result = FALSE; - gchar* _tmp0_; -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, FALSE); -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, FALSE); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr ((gchar*) self, (gchar*) needle); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_ != NULL; -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3433 "Printing.c" -} - - -static void -custom_print_tab_on_entry_insert_text (CustomPrintTab* self, - GtkEditable* editable, - const gchar* text, - gint length, - gint* position) -{ - GtkEntry* sender = NULL; - GtkEntry* _tmp0_; - gboolean _tmp1_; - const gchar* decimal_point = NULL; - const gchar* _tmp4_; - gboolean contains_decimal_point = FALSE; - GtkEntry* _tmp5_; - const gchar* _tmp6_; - const gchar* _tmp7_; - gchar* new_text = NULL; - gchar* _tmp8_; - const gchar* _tmp27_; - gint _tmp28_; - gint _tmp29_; - GtkEntry* _tmp35_; -#line 475 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 475 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (GTK_IS_EDITABLE (editable)); -#line 475 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (text != NULL); -#line 478 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (editable, gtk_entry_get_type (), GtkEntry)); -#line 478 "/home/jens/Source/shotwell/src/Printing.vala" - sender = _tmp0_; -#line 480 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = self->priv->is_text_insertion_in_progress; -#line 480 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp1_) { -#line 481 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (sender); -#line 481 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 3477 "Printing.c" - } -#line 483 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->is_text_insertion_in_progress = TRUE; -#line 485 "/home/jens/Source/shotwell/src/Printing.vala" - if (length == -1) { -#line 3483 "Printing.c" - gint _tmp2_; - gint _tmp3_; -#line 486 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = strlen (text); -#line 486 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = _tmp2_; -#line 486 "/home/jens/Source/shotwell/src/Printing.vala" - length = (gint) _tmp3_; -#line 3492 "Printing.c" - } -#line 488 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = nl_langinfo (RADIXCHAR); -#line 488 "/home/jens/Source/shotwell/src/Printing.vala" - decimal_point = _tmp4_; -#line 490 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = sender; -#line 490 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = gtk_entry_get_text (_tmp5_); -#line 490 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = decimal_point; -#line 490 "/home/jens/Source/shotwell/src/Printing.vala" - contains_decimal_point = string_contains (_tmp6_, _tmp7_); -#line 492 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = g_strdup (""); -#line 492 "/home/jens/Source/shotwell/src/Printing.vala" - new_text = _tmp8_; -#line 3510 "Printing.c" - { - gint ctr = 0; -#line 493 "/home/jens/Source/shotwell/src/Printing.vala" - ctr = 0; -#line 3515 "Printing.c" - { - gboolean _tmp9_ = FALSE; -#line 493 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = TRUE; -#line 493 "/home/jens/Source/shotwell/src/Printing.vala" - while (TRUE) { -#line 3522 "Printing.c" - gint _tmp11_; - gint _tmp12_; -#line 493 "/home/jens/Source/shotwell/src/Printing.vala" - if (!_tmp9_) { -#line 3527 "Printing.c" - gint _tmp10_; -#line 493 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp10_ = ctr; -#line 493 "/home/jens/Source/shotwell/src/Printing.vala" - ctr = _tmp10_ + 1; -#line 3533 "Printing.c" - } -#line 493 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = FALSE; -#line 493 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp11_ = ctr; -#line 493 "/home/jens/Source/shotwell/src/Printing.vala" - if (!(_tmp11_ < length)) { -#line 493 "/home/jens/Source/shotwell/src/Printing.vala" - break; -#line 3543 "Printing.c" - } -#line 494 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp12_ = ctr; -#line 494 "/home/jens/Source/shotwell/src/Printing.vala" - if (g_ascii_isdigit (string_get (text, (glong) _tmp12_))) { -#line 3549 "Printing.c" - const gchar* _tmp13_; - gint _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; -#line 495 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp13_ = new_text; -#line 495 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp14_ = ctr; -#line 495 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp15_ = g_strdup_printf ("%c", (gchar) string_get (text, (glong) _tmp14_)); -#line 495 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp16_ = _tmp15_; -#line 495 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp17_ = g_strconcat (_tmp13_, _tmp16_, NULL); -#line 495 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (new_text); -#line 495 "/home/jens/Source/shotwell/src/Printing.vala" - new_text = _tmp17_; -#line 495 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp16_); -#line 3571 "Printing.c" - } else { - gboolean _tmp18_ = FALSE; - gboolean _tmp19_; -#line 496 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp19_ = contains_decimal_point; -#line 496 "/home/jens/Source/shotwell/src/Printing.vala" - if (!_tmp19_) { -#line 3579 "Printing.c" - gint _tmp20_; - const gchar* _tmp21_; -#line 496 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp20_ = ctr; -#line 496 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp21_ = decimal_point; -#line 496 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp18_ = string_get (text, (glong) _tmp20_) == string_get (_tmp21_, (glong) 0); -#line 3588 "Printing.c" - } else { -#line 496 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp18_ = FALSE; -#line 3592 "Printing.c" - } -#line 496 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp18_) { -#line 3596 "Printing.c" - const gchar* _tmp22_; - gint _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; -#line 497 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp22_ = new_text; -#line 497 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp23_ = ctr; -#line 497 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp24_ = g_strdup_printf ("%c", (gchar) string_get (text, (glong) _tmp23_)); -#line 497 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp25_ = _tmp24_; -#line 497 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp26_ = g_strconcat (_tmp22_, _tmp25_, NULL); -#line 497 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (new_text); -#line 497 "/home/jens/Source/shotwell/src/Printing.vala" - new_text = _tmp26_; -#line 497 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp25_); -#line 3618 "Printing.c" - } - } - } - } - } -#line 501 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp27_ = new_text; -#line 501 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp28_ = strlen (_tmp27_); -#line 501 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp29_ = _tmp28_; -#line 501 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp29_ > 0) { -#line 3632 "Printing.c" - GtkEntry* _tmp30_; - const gchar* _tmp31_; - const gchar* _tmp32_; - gint _tmp33_; - gint _tmp34_; -#line 502 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp30_ = sender; -#line 502 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp31_ = new_text; -#line 502 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp32_ = new_text; -#line 502 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp33_ = strlen (_tmp32_); -#line 502 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp34_ = _tmp33_; -#line 502 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_editable_get_type (), GtkEditable), "insert-text", _tmp31_, (gint) _tmp34_, position); -#line 3650 "Printing.c" - } -#line 504 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp35_ = sender; -#line 504 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_stop_emission_by_name (_tmp35_, "insert-text"); -#line 506 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->is_text_insertion_in_progress = FALSE; -#line 475 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (new_text); -#line 475 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (sender); -#line 3662 "Printing.c" -} - - -static void -custom_print_tab_sync_state_from_job (CustomPrintTab* self, - PrintJob* job) -{ - PrintSettings* _tmp0_; - PrintSettings* _tmp1_; - Measurement _tmp2_ = {0}; - MeasurementUnit _tmp3_; - PrintSettings* _tmp4_; - PrintSettings* _tmp5_; - Measurement _tmp6_ = {0}; - MeasurementUnit _tmp7_; - Measurement constrained_width = {0}; - PrintSettings* _tmp8_; - PrintSettings* _tmp9_; - Measurement _tmp10_ = {0}; - Measurement _tmp11_; - PrintSettings* _tmp12_; - PrintSettings* _tmp13_; - gboolean _tmp14_; - Measurement _tmp23_; - PrintSettings* _tmp24_; - PrintSettings* _tmp25_; - Measurement _tmp26_ = {0}; - PrintSettings* _tmp27_; - PrintSettings* _tmp28_; - PrintSettings* _tmp29_; - PrintSettings* _tmp30_; - PrintSettings* _tmp31_; - PrintSettings* _tmp32_; - PrintSettings* _tmp33_; - PrintSettings* _tmp34_; - PrintSettings* _tmp35_; - PrintSettings* _tmp36_; - PrintSettings* _tmp37_; - PrintSettings* _tmp38_; - PrintSettings* _tmp39_; - PrintSettings* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; -#line 509 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 509 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_JOB (job)); -#line 510 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = print_job_get_local_settings (job); -#line 510 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = _tmp0_; -#line 510 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_get_content_width (_tmp1_, &_tmp2_); -#line 510 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = _tmp2_.unit; -#line 510 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = print_job_get_local_settings (job); -#line 510 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = _tmp4_; -#line 510 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_get_content_height (_tmp5_, &_tmp6_); -#line 510 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = _tmp6_.unit; -#line 510 "/home/jens/Source/shotwell/src/Printing.vala" - _vala_assert (_tmp3_ == _tmp7_, "job.get_local_settings().get_content_width().unit == job.get_local_settings().get_content_height().unit"); -#line 510 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp5_); -#line 510 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp1_); -#line 513 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = print_job_get_local_settings (job); -#line 513 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = _tmp8_; -#line 513 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_get_content_width (_tmp9_, &_tmp10_); -#line 513 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp11_ = _tmp10_; -#line 513 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp9_); -#line 513 "/home/jens/Source/shotwell/src/Printing.vala" - constrained_width = _tmp11_; -#line 514 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp12_ = print_job_get_local_settings (job); -#line 514 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp13_ = _tmp12_; -#line 514 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp14_ = print_settings_is_match_aspect_ratio_enabled (_tmp13_); -#line 514 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp13_); -#line 514 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp14_) { -#line 3754 "Printing.c" - PrintSettings* _tmp15_; - PrintSettings* _tmp16_; - Measurement _tmp17_ = {0}; - gdouble _tmp18_; - PrintSettings* _tmp19_; - PrintSettings* _tmp20_; - Measurement _tmp21_ = {0}; - MeasurementUnit _tmp22_; -#line 515 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp15_ = print_job_get_local_settings (job); -#line 515 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp16_ = _tmp15_; -#line 515 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_get_content_height (_tmp16_, &_tmp17_); -#line 515 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp18_ = _tmp17_.value; -#line 515 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp19_ = print_job_get_local_settings (job); -#line 515 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp20_ = _tmp19_; -#line 515 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_get_content_height (_tmp20_, &_tmp21_); -#line 515 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp22_ = _tmp21_.unit; -#line 515 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&constrained_width, _tmp18_ * print_job_get_source_aspect_ratio (job), _tmp22_); -#line 515 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp20_); -#line 515 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp16_); -#line 3785 "Printing.c" - } -#line 517 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp23_ = constrained_width; -#line 517 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_set_content_width (self, &_tmp23_); -#line 518 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp24_ = print_job_get_local_settings (job); -#line 518 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp25_ = _tmp24_; -#line 518 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_get_content_height (_tmp25_, &_tmp26_); -#line 518 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_set_content_height (self, &_tmp26_); -#line 518 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp25_); -#line 519 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp27_ = print_job_get_local_settings (job); -#line 519 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp28_ = _tmp27_; -#line 519 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_set_content_layout (self, print_settings_get_content_layout (_tmp28_)); -#line 519 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp28_); -#line 520 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp29_ = print_job_get_local_settings (job); -#line 520 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp30_ = _tmp29_; -#line 520 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_set_content_ppi (self, print_settings_get_content_ppi (_tmp30_)); -#line 520 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp30_); -#line 521 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp31_ = print_job_get_local_settings (job); -#line 521 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp32_ = _tmp31_; -#line 521 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_set_image_per_page_selection (self, print_settings_get_image_per_page_selection (_tmp32_)); -#line 521 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp32_); -#line 522 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp33_ = print_job_get_local_settings (job); -#line 522 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp34_ = _tmp33_; -#line 522 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_set_size_selection (self, print_settings_get_size_selection (_tmp34_)); -#line 522 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp34_); -#line 523 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp35_ = print_job_get_local_settings (job); -#line 523 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp36_ = _tmp35_; -#line 523 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_set_match_aspect_ratio_enabled (self, print_settings_is_match_aspect_ratio_enabled (_tmp36_)); -#line 523 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp36_); -#line 524 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp37_ = print_job_get_local_settings (job); -#line 524 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp38_ = _tmp37_; -#line 524 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_set_print_titles_enabled (self, print_settings_is_print_titles_enabled (_tmp38_)); -#line 524 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp38_); -#line 525 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp39_ = print_job_get_local_settings (job); -#line 525 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp40_ = _tmp39_; -#line 525 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp41_ = print_settings_get_print_titles_font (_tmp40_); -#line 525 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp42_ = _tmp41_; -#line 525 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_set_print_titles_font (self, _tmp42_); -#line 525 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp42_); -#line 525 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp40_); -#line 3863 "Printing.c" -} - - -static void -custom_print_tab_on_radio_group_click (CustomPrintTab* self, - GtkButton* b) -{ - GtkRadioButton* sender = NULL; - GtkRadioButton* _tmp0_; - GtkRadioButton* _tmp1_; - GtkRadioButton* _tmp2_; -#line 528 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 528 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (GTK_IS_BUTTON (b)); -#line 529 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (b, gtk_radio_button_get_type (), GtkRadioButton)); -#line 529 "/home/jens/Source/shotwell/src/Printing.vala" - sender = _tmp0_; -#line 531 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = sender; -#line 531 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = self->priv->standard_size_radio; -#line 531 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp1_ == _tmp2_) { -#line 3889 "Printing.c" - GtkComboBoxText* _tmp3_; -#line 532 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_set_content_layout_control_state (self, CONTENT_LAYOUT_STANDARD_SIZE); -#line 533 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = self->priv->standard_sizes_combo; -#line 533 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget)); -#line 3897 "Printing.c" - } else { - GtkRadioButton* _tmp4_; - GtkRadioButton* _tmp5_; -#line 534 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = sender; -#line 534 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = self->priv->custom_size_radio; -#line 534 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp4_ == _tmp5_) { -#line 3907 "Printing.c" - GtkEntry* _tmp6_; -#line 535 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_set_content_layout_control_state (self, CONTENT_LAYOUT_CUSTOM_SIZE); -#line 536 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = self->priv->custom_height_entry; -#line 536 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget)); -#line 3915 "Printing.c" - } else { - GtkRadioButton* _tmp7_; - GtkRadioButton* _tmp8_; -#line 537 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = sender; -#line 537 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = self->priv->image_per_page_radio; -#line 537 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp7_ == _tmp8_) { -#line 538 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_set_content_layout_control_state (self, CONTENT_LAYOUT_IMAGE_PER_PAGE); -#line 3927 "Printing.c" - } - } - } -#line 528 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (sender); -#line 3933 "Printing.c" -} - - -static void -custom_print_tab_on_units_combo_changed (CustomPrintTab* self) -{ - GtkEntry* _tmp0_; - Measurement _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GtkEntry* _tmp4_; - Measurement _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 542 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 543 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->custom_height_entry; -#line 543 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = self->priv->local_content_height; -#line 543 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = custom_print_tab_format_measurement_as (self, &_tmp1_, custom_print_tab_get_user_unit_choice (self)); -#line 543 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = _tmp2_; -#line 543 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_entry_set_text (_tmp0_, _tmp3_); -#line 543 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp3_); -#line 545 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = self->priv->custom_width_entry; -#line 545 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = self->priv->local_content_width; -#line 545 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = custom_print_tab_format_measurement_as (self, &_tmp5_, custom_print_tab_get_user_unit_choice (self)); -#line 545 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = _tmp6_; -#line 545 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_entry_set_text (_tmp4_, _tmp7_); -#line 545 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp7_); -#line 3974 "Printing.c" -} - - -static void -custom_print_tab_set_content_layout_control_state (CustomPrintTab* self, - ContentLayout layout) -{ -#line 549 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 550 "/home/jens/Source/shotwell/src/Printing.vala" - switch (layout) { -#line 550 "/home/jens/Source/shotwell/src/Printing.vala" - case CONTENT_LAYOUT_STANDARD_SIZE: -#line 3988 "Printing.c" - { - GtkComboBoxText* _tmp0_; - GtkComboBoxText* _tmp1_; - GtkEntry* _tmp2_; - GtkEntry* _tmp3_; - GtkCheckButton* _tmp4_; - GtkComboBoxText* _tmp5_; -#line 552 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->standard_sizes_combo; -#line 552 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 553 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = self->priv->units_combo; -#line 553 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 554 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = self->priv->custom_width_entry; -#line 554 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 555 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = self->priv->custom_height_entry; -#line 555 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 556 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = self->priv->aspect_ratio_check; -#line 556 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 557 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = self->priv->image_per_page_combo; -#line 557 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 558 "/home/jens/Source/shotwell/src/Printing.vala" - break; -#line 4022 "Printing.c" - } -#line 550 "/home/jens/Source/shotwell/src/Printing.vala" - case CONTENT_LAYOUT_CUSTOM_SIZE: -#line 4026 "Printing.c" - { - GtkComboBoxText* _tmp6_; - GtkComboBoxText* _tmp7_; - GtkEntry* _tmp8_; - GtkEntry* _tmp9_; - GtkCheckButton* _tmp10_; - GtkComboBoxText* _tmp11_; -#line 561 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = self->priv->standard_sizes_combo; -#line 561 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 562 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = self->priv->units_combo; -#line 562 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 563 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = self->priv->custom_width_entry; -#line 563 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 564 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = self->priv->custom_height_entry; -#line 564 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 565 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp10_ = self->priv->aspect_ratio_check; -#line 565 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 566 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp11_ = self->priv->image_per_page_combo; -#line 566 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 567 "/home/jens/Source/shotwell/src/Printing.vala" - break; -#line 4060 "Printing.c" - } -#line 550 "/home/jens/Source/shotwell/src/Printing.vala" - case CONTENT_LAYOUT_IMAGE_PER_PAGE: -#line 4064 "Printing.c" - { - GtkComboBoxText* _tmp12_; - GtkComboBoxText* _tmp13_; - GtkEntry* _tmp14_; - GtkEntry* _tmp15_; - GtkCheckButton* _tmp16_; - GtkComboBoxText* _tmp17_; -#line 570 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp12_ = self->priv->standard_sizes_combo; -#line 570 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 571 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp13_ = self->priv->units_combo; -#line 571 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 572 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp14_ = self->priv->custom_width_entry; -#line 572 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 573 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp15_ = self->priv->custom_height_entry; -#line 573 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 574 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp16_ = self->priv->aspect_ratio_check; -#line 574 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 575 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp17_ = self->priv->image_per_page_combo; -#line 575 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 576 "/home/jens/Source/shotwell/src/Printing.vala" - break; -#line 4098 "Printing.c" - } - default: - { -#line 579 "/home/jens/Source/shotwell/src/Printing.vala" - g_error ("Printing.vala:579: unknown ContentLayout enumeration value"); -#line 4104 "Printing.c" - } - } -} - - -static gboolean -custom_print_tab_standard_sizes_combo_separator_func (GtkTreeModel* model, - GtkTreeIter* iter) -{ - gboolean result = FALSE; - GValue val = {0}; - GtkTreeIter _tmp0_; - GValue _tmp1_ = {0}; - const gchar* _tmp2_; -#line 583 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (GTK_IS_TREE_MODEL (model), FALSE); -#line 583 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (iter != NULL, FALSE); -#line 586 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = *iter; -#line 586 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_tree_model_get_value (model, &_tmp0_, 0, &_tmp1_); -#line 586 "/home/jens/Source/shotwell/src/Printing.vala" - G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL; -#line 586 "/home/jens/Source/shotwell/src/Printing.vala" - val = _tmp1_; -#line 588 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = g_value_get_string (&val); -#line 588 "/home/jens/Source/shotwell/src/Printing.vala" - result = g_strcmp0 (_tmp2_, "-") == 0; -#line 588 "/home/jens/Source/shotwell/src/Printing.vala" - G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL; -#line 588 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 4139 "Printing.c" -} - - -static void -custom_print_tab_set_content_layout (CustomPrintTab* self, - ContentLayout content_layout) -{ -#line 591 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 592 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_set_content_layout_control_state (self, content_layout); -#line 593 "/home/jens/Source/shotwell/src/Printing.vala" - switch (content_layout) { -#line 593 "/home/jens/Source/shotwell/src/Printing.vala" - case CONTENT_LAYOUT_STANDARD_SIZE: -#line 4155 "Printing.c" - { - GtkRadioButton* _tmp0_; -#line 595 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->standard_size_radio; -#line 595 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 596 "/home/jens/Source/shotwell/src/Printing.vala" - break; -#line 4164 "Printing.c" - } -#line 593 "/home/jens/Source/shotwell/src/Printing.vala" - case CONTENT_LAYOUT_CUSTOM_SIZE: -#line 4168 "Printing.c" - { - GtkRadioButton* _tmp1_; -#line 599 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = self->priv->custom_size_radio; -#line 599 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 600 "/home/jens/Source/shotwell/src/Printing.vala" - break; -#line 4177 "Printing.c" - } -#line 593 "/home/jens/Source/shotwell/src/Printing.vala" - case CONTENT_LAYOUT_IMAGE_PER_PAGE: -#line 4181 "Printing.c" - { - GtkRadioButton* _tmp2_; -#line 603 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = self->priv->image_per_page_radio; -#line 603 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 604 "/home/jens/Source/shotwell/src/Printing.vala" - break; -#line 4190 "Printing.c" - } - default: - { -#line 607 "/home/jens/Source/shotwell/src/Printing.vala" - g_error ("Printing.vala:607: unknown ContentLayout enumeration value"); -#line 4196 "Printing.c" - } - } -} - - -static ContentLayout -custom_print_tab_get_content_layout (CustomPrintTab* self) -{ - ContentLayout result = 0; - GtkRadioButton* _tmp0_; - GtkRadioButton* _tmp1_; - GtkRadioButton* _tmp2_; -#line 611 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), 0); -#line 612 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->standard_size_radio; -#line 612 "/home/jens/Source/shotwell/src/Printing.vala" - if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton))) { -#line 613 "/home/jens/Source/shotwell/src/Printing.vala" - result = CONTENT_LAYOUT_STANDARD_SIZE; -#line 613 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 4219 "Printing.c" - } -#line 614 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = self->priv->custom_size_radio; -#line 614 "/home/jens/Source/shotwell/src/Printing.vala" - if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_toggle_button_get_type (), GtkToggleButton))) { -#line 615 "/home/jens/Source/shotwell/src/Printing.vala" - result = CONTENT_LAYOUT_CUSTOM_SIZE; -#line 615 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 4229 "Printing.c" - } -#line 616 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = self->priv->image_per_page_radio; -#line 616 "/home/jens/Source/shotwell/src/Printing.vala" - if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_toggle_button_get_type (), GtkToggleButton))) { -#line 617 "/home/jens/Source/shotwell/src/Printing.vala" - result = CONTENT_LAYOUT_IMAGE_PER_PAGE; -#line 617 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 4239 "Printing.c" - } -#line 619 "/home/jens/Source/shotwell/src/Printing.vala" - g_error ("Printing.vala:619: inconsistent content layout radio button group stat" \ -"e"); -#line 4243 "Printing.c" -} - - -static void -custom_print_tab_set_content_width (CustomPrintTab* self, - Measurement* content_width) -{ - Measurement _tmp0_; - MeasurementUnit _tmp1_; - Measurement _tmp2_; - MeasurementUnit _tmp3_; - Measurement _tmp13_; - GtkEntry* _tmp14_; - Measurement _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; -#line 622 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 622 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (content_width != NULL); -#line 623 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = *content_width; -#line 623 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = _tmp0_.unit; -#line 623 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = self->priv->local_content_height; -#line 623 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = _tmp2_.unit; -#line 623 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp1_ != _tmp3_) { -#line 4274 "Printing.c" - Measurement _tmp4_; - MeasurementUnit _tmp5_; - Measurement _tmp6_; - MeasurementUnit _tmp7_; - Measurement _tmp8_ = {0}; - GtkEntry* _tmp9_; - Measurement _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; -#line 624 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = *content_width; -#line 624 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = _tmp4_.unit; -#line 624 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_set_user_unit_choice (self, _tmp5_); -#line 625 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = *content_width; -#line 625 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = _tmp6_.unit; -#line 625 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_convert_to (&self->priv->local_content_height, _tmp7_, &_tmp8_); -#line 625 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->local_content_height = _tmp8_; -#line 626 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = self->priv->custom_height_entry; -#line 626 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp10_ = self->priv->local_content_height; -#line 626 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp11_ = custom_print_tab_format_measurement (self, &_tmp10_); -#line 626 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp12_ = _tmp11_; -#line 626 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_entry_set_text (_tmp9_, _tmp12_); -#line 626 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp12_); -#line 4310 "Printing.c" - } -#line 628 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp13_ = *content_width; -#line 628 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->local_content_width = _tmp13_; -#line 629 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp14_ = self->priv->custom_width_entry; -#line 629 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp15_ = *content_width; -#line 629 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp16_ = custom_print_tab_format_measurement (self, &_tmp15_); -#line 629 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp17_ = _tmp16_; -#line 629 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_entry_set_text (_tmp14_, _tmp17_); -#line 629 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp17_); -#line 4328 "Printing.c" -} - - -static void -custom_print_tab_get_content_width (CustomPrintTab* self, - Measurement* result) -{ - Measurement _tmp0_; -#line 632 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 633 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->local_content_width; -#line 633 "/home/jens/Source/shotwell/src/Printing.vala" - *result = _tmp0_; -#line 633 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 4345 "Printing.c" -} - - -static void -custom_print_tab_set_content_height (CustomPrintTab* self, - Measurement* content_height) -{ - Measurement _tmp0_; - MeasurementUnit _tmp1_; - Measurement _tmp2_; - MeasurementUnit _tmp3_; - Measurement _tmp13_; - GtkEntry* _tmp14_; - Measurement _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; -#line 636 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 636 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (content_height != NULL); -#line 637 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = *content_height; -#line 637 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = _tmp0_.unit; -#line 637 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = self->priv->local_content_width; -#line 637 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = _tmp2_.unit; -#line 637 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp1_ != _tmp3_) { -#line 4376 "Printing.c" - Measurement _tmp4_; - MeasurementUnit _tmp5_; - Measurement _tmp6_; - MeasurementUnit _tmp7_; - Measurement _tmp8_ = {0}; - GtkEntry* _tmp9_; - Measurement _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; -#line 638 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = *content_height; -#line 638 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = _tmp4_.unit; -#line 638 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_set_user_unit_choice (self, _tmp5_); -#line 639 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = *content_height; -#line 639 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = _tmp6_.unit; -#line 639 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_convert_to (&self->priv->local_content_width, _tmp7_, &_tmp8_); -#line 639 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->local_content_width = _tmp8_; -#line 640 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = self->priv->custom_width_entry; -#line 640 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp10_ = self->priv->local_content_width; -#line 640 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp11_ = custom_print_tab_format_measurement (self, &_tmp10_); -#line 640 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp12_ = _tmp11_; -#line 640 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_entry_set_text (_tmp9_, _tmp12_); -#line 640 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp12_); -#line 4412 "Printing.c" - } -#line 642 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp13_ = *content_height; -#line 642 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->local_content_height = _tmp13_; -#line 643 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp14_ = self->priv->custom_height_entry; -#line 643 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp15_ = *content_height; -#line 643 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp16_ = custom_print_tab_format_measurement (self, &_tmp15_); -#line 643 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp17_ = _tmp16_; -#line 643 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_entry_set_text (_tmp14_, _tmp17_); -#line 643 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp17_); -#line 4430 "Printing.c" -} - - -static void -custom_print_tab_get_content_height (CustomPrintTab* self, - Measurement* result) -{ - Measurement _tmp0_; -#line 646 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 647 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->local_content_height; -#line 647 "/home/jens/Source/shotwell/src/Printing.vala" - *result = _tmp0_; -#line 647 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 4447 "Printing.c" -} - - -static void -custom_print_tab_set_content_ppi (CustomPrintTab* self, - gint content_ppi) -{ - GtkEntry* _tmp0_; - gint _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 650 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 651 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->local_content_ppi = CLAMP (content_ppi, PRINT_SETTINGS_MIN_CONTENT_PPI, PRINT_SETTINGS_MAX_CONTENT_PPI); -#line 654 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->ppi_entry; -#line 654 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = self->priv->local_content_ppi; -#line 654 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = g_strdup_printf ("%d", _tmp1_); -#line 654 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = _tmp2_; -#line 654 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_entry_set_text (_tmp0_, _tmp3_); -#line 654 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp3_); -#line 4475 "Printing.c" -} - - -static gint -custom_print_tab_get_content_ppi (CustomPrintTab* self) -{ - gint result = 0; - gint _tmp0_; -#line 657 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), 0); -#line 658 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->local_content_ppi; -#line 658 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp0_; -#line 658 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 4492 "Printing.c" -} - - -static void -custom_print_tab_set_image_per_page_selection (CustomPrintTab* self, - gint image_per_page) -{ - GtkComboBoxText* _tmp0_; -#line 661 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 662 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->image_per_page_combo; -#line 662 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), image_per_page); -#line 4507 "Printing.c" -} - - -static gint -custom_print_tab_get_image_per_page_selection (CustomPrintTab* self) -{ - gint result = 0; - GtkComboBoxText* _tmp0_; -#line 665 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), 0); -#line 666 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->image_per_page_combo; -#line 666 "/home/jens/Source/shotwell/src/Printing.vala" - result = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox)); -#line 666 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 4524 "Printing.c" -} - - -static void -custom_print_tab_set_size_selection (CustomPrintTab* self, - gint size_selection) -{ - GtkComboBoxText* _tmp0_; -#line 669 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 670 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->standard_sizes_combo; -#line 670 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), size_selection); -#line 4539 "Printing.c" -} - - -static gint -custom_print_tab_get_size_selection (CustomPrintTab* self) -{ - gint result = 0; - GtkComboBoxText* _tmp0_; -#line 673 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), 0); -#line 674 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->standard_sizes_combo; -#line 674 "/home/jens/Source/shotwell/src/Printing.vala" - result = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox)); -#line 674 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 4556 "Printing.c" -} - - -static void -custom_print_tab_set_match_aspect_ratio_enabled (CustomPrintTab* self, - gboolean enable_state) -{ - GtkCheckButton* _tmp0_; -#line 677 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 678 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->aspect_ratio_check; -#line 678 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton), enable_state); -#line 4571 "Printing.c" -} - - -static void -custom_print_tab_set_print_titles_enabled (CustomPrintTab* self, - gboolean print_titles) -{ - GtkCheckButton* _tmp0_; -#line 681 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 682 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->title_print_check; -#line 682 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton), print_titles); -#line 4586 "Printing.c" -} - - -static void -custom_print_tab_set_print_titles_font (CustomPrintTab* self, - const gchar* fontname) -{ - GtkFontButton* _tmp0_; -#line 685 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_CUSTOM_PRINT_TAB (self)); -#line 685 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (fontname != NULL); -#line 686 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->title_print_font; -#line 686 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_font_button_set_font_name (_tmp0_, fontname); -#line 4603 "Printing.c" -} - - -static gboolean -custom_print_tab_is_match_aspect_ratio_enabled (CustomPrintTab* self) -{ - gboolean result = FALSE; - GtkCheckButton* _tmp0_; -#line 690 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), FALSE); -#line 691 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->aspect_ratio_check; -#line 691 "/home/jens/Source/shotwell/src/Printing.vala" - result = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 691 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 4620 "Printing.c" -} - - -static gboolean -custom_print_tab_is_print_titles_enabled (CustomPrintTab* self) -{ - gboolean result = FALSE; - GtkCheckButton* _tmp0_; -#line 694 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), FALSE); -#line 695 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->title_print_check; -#line 695 "/home/jens/Source/shotwell/src/Printing.vala" - result = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 695 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 4637 "Printing.c" -} - - -static gchar* -custom_print_tab_get_print_titles_font (CustomPrintTab* self) -{ - gchar* result = NULL; - GtkFontButton* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 698 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), NULL); -#line 699 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->title_print_font; -#line 699 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = gtk_font_button_get_font_name (_tmp0_); -#line 699 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 699 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp2_; -#line 699 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 4660 "Printing.c" -} - - -PrintJob* -custom_print_tab_get_source_job (CustomPrintTab* self) -{ - PrintJob* result = NULL; - PrintJob* _tmp0_; - PrintJob* _tmp1_; -#line 702 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), NULL); -#line 703 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->source_job; -#line 703 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 703 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp1_; -#line 703 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 4680 "Printing.c" -} - - -PrintSettings* -custom_print_tab_get_local_settings (CustomPrintTab* self) -{ - PrintSettings* result = NULL; - PrintSettings* _result_ = NULL; - PrintSettings* _tmp0_; - Measurement _tmp1_ = {0}; - Measurement _tmp2_ = {0}; - gchar* _tmp3_; - gchar* _tmp4_; -#line 706 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_CUSTOM_PRINT_TAB (self), NULL); -#line 707 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = print_settings_new (); -#line 707 "/home/jens/Source/shotwell/src/Printing.vala" - _result_ = _tmp0_; -#line 709 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_get_content_width (self, &_tmp1_); -#line 709 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_set_content_width (_result_, &_tmp1_); -#line 710 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_get_content_height (self, &_tmp2_); -#line 710 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_set_content_height (_result_, &_tmp2_); -#line 711 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_set_content_layout (_result_, custom_print_tab_get_content_layout (self)); -#line 712 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_set_content_ppi (_result_, custom_print_tab_get_content_ppi (self)); -#line 713 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_set_image_per_page_selection (_result_, custom_print_tab_get_image_per_page_selection (self)); -#line 714 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_set_size_selection (_result_, custom_print_tab_get_size_selection (self)); -#line 715 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_set_match_aspect_ratio_enabled (_result_, custom_print_tab_is_match_aspect_ratio_enabled (self)); -#line 716 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_set_print_titles_enabled (_result_, custom_print_tab_is_print_titles_enabled (self)); -#line 717 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = custom_print_tab_get_print_titles_font (self); -#line 717 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = _tmp3_; -#line 717 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_set_print_titles_font (_result_, _tmp4_); -#line 717 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp4_); -#line 719 "/home/jens/Source/shotwell/src/Printing.vala" - result = _result_; -#line 719 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 4732 "Printing.c" -} - - -static void -custom_print_tab_class_init (CustomPrintTabClass * klass) -{ - gint CustomPrintTab_private_offset; -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - custom_print_tab_parent_class = g_type_class_peek_parent (klass); -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - g_type_class_add_private (klass, sizeof (CustomPrintTabPrivate)); -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - G_OBJECT_CLASS (klass)->finalize = custom_print_tab_finalize; -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - CustomPrintTab_private_offset = g_type_class_get_instance_private_offset (klass); -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/printing_widget.ui"); -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "standard_size_radio", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, standard_size_radio)); -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "custom_size_radio", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, custom_size_radio)); -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "image_per_page_radio", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, image_per_page_radio)); -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "image_per_page_combo", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, image_per_page_combo)); -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "standard_sizes_combo", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, standard_sizes_combo)); -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "units_combo", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, units_combo)); -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "custom_width_entry", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, custom_width_entry)); -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "custom_height_entry", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, custom_height_entry)); -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "ppi_entry", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, ppi_entry)); -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "aspect_ratio_check", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, aspect_ratio_check)); -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "title_print_check", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, title_print_check)); -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "title_print_font", FALSE, CustomPrintTab_private_offset + G_STRUCT_OFFSET (CustomPrintTabPrivate, title_print_font)); -#line 4774 "Printing.c" -} - - -static void -custom_print_tab_instance_init (CustomPrintTab * self) -{ -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv = CUSTOM_PRINT_TAB_GET_PRIVATE (self); -#line 298 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&self->priv->local_content_width, 5.0, MEASUREMENT_UNIT_INCHES); -#line 299 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&self->priv->local_content_height, 5.0, MEASUREMENT_UNIT_INCHES); -#line 301 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->is_text_insertion_in_progress = FALSE; -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_widget_init_template (GTK_WIDGET (self)); -#line 4791 "Printing.c" -} - - -static void -custom_print_tab_finalize (GObject * obj) -{ - CustomPrintTab * self; -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CUSTOM_PRINT_TAB, CustomPrintTab); -#line 274 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->standard_size_radio); -#line 276 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->custom_size_radio); -#line 278 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->image_per_page_radio); -#line 280 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->image_per_page_combo); -#line 282 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->standard_sizes_combo); -#line 284 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->units_combo); -#line 286 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->custom_width_entry); -#line 288 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->custom_height_entry); -#line 290 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->ppi_entry); -#line 292 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->aspect_ratio_check); -#line 294 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->title_print_check); -#line 296 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->title_print_font); -#line 302 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->source_job); -#line 269 "/home/jens/Source/shotwell/src/Printing.vala" - G_OBJECT_CLASS (custom_print_tab_parent_class)->finalize (obj); -#line 4829 "Printing.c" -} - - -GType -custom_print_tab_get_type (void) -{ - static volatile gsize custom_print_tab_type_id__volatile = 0; - if (g_once_init_enter (&custom_print_tab_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CustomPrintTabClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) custom_print_tab_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CustomPrintTab), 0, (GInstanceInitFunc) custom_print_tab_instance_init, NULL }; - GType custom_print_tab_type_id; - custom_print_tab_type_id = g_type_register_static (gtk_box_get_type (), "CustomPrintTab", &g_define_type_info, 0); - g_once_init_leave (&custom_print_tab_type_id__volatile, custom_print_tab_type_id); - } - return custom_print_tab_type_id__volatile; -} - - -PrintJob* -print_job_construct (GType object_type, - GeeCollection* to_print) -{ - PrintJob * self = NULL; - PrintManager* _tmp0_; - PrintManager* _tmp1_; - PrintSettings* _tmp2_; - GeeArrayList* _tmp3_; - gdouble photo_aspect_ratio = 0.0; - GeeArrayList* _tmp4_; - gpointer _tmp5_; - Photo* _tmp6_; - Dimensions _tmp7_ = {0}; - gdouble _tmp8_; - gdouble _tmp9_; -#line 727 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (to_print), NULL); -#line 727 "/home/jens/Source/shotwell/src/Printing.vala" - self = (PrintJob*) g_object_new (object_type, NULL); -#line 728 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = print_manager_get_instance (); -#line 728 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = _tmp0_; -#line 728 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = print_manager_get_global_settings (_tmp1_); -#line 728 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (self->priv->settings); -#line 728 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->settings = _tmp2_; -#line 728 "/home/jens/Source/shotwell/src/Printing.vala" - _print_manager_unref0 (_tmp1_); -#line 729 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = self->priv->photos; -#line 729 "/home/jens/Source/shotwell/src/Printing.vala" - gee_array_list_add_all (_tmp3_, to_print); -#line 731 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_print_operation_set_embed_page_setup (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_print_operation_get_type (), GtkPrintOperation), TRUE); -#line 732 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = self->priv->photos; -#line 732 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 732 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = (Photo*) _tmp5_; -#line 732 "/home/jens/Source/shotwell/src/Printing.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp7_); -#line 732 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = dimensions_get_aspect_ratio (&_tmp7_); -#line 732 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (_tmp6_); -#line 732 "/home/jens/Source/shotwell/src/Printing.vala" - photo_aspect_ratio = _tmp8_; -#line 733 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = photo_aspect_ratio; -#line 733 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp9_ < 1.0) { -#line 4903 "Printing.c" - gdouble _tmp10_; -#line 734 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp10_ = photo_aspect_ratio; -#line 734 "/home/jens/Source/shotwell/src/Printing.vala" - photo_aspect_ratio = 1.0 / _tmp10_; -#line 4909 "Printing.c" - } -#line 727 "/home/jens/Source/shotwell/src/Printing.vala" - return self; -#line 4913 "Printing.c" -} - - -PrintJob* -print_job_new (GeeCollection* to_print) -{ -#line 727 "/home/jens/Source/shotwell/src/Printing.vala" - return print_job_construct (TYPE_PRINT_JOB, to_print); -#line 4922 "Printing.c" -} - - -GeeList* -print_job_get_photos (PrintJob* self) -{ - GeeList* result = NULL; - GeeArrayList* _tmp0_; - GeeList* _tmp1_; -#line 737 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_PRINT_JOB (self), NULL); -#line 738 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->photos; -#line 738 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList)); -#line 738 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp1_; -#line 738 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 4942 "Printing.c" -} - - -Photo* -print_job_get_source_photo (PrintJob* self) -{ - Photo* result = NULL; - GeeArrayList* _tmp0_; - gpointer _tmp1_; -#line 741 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_PRINT_JOB (self), NULL); -#line 742 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->photos; -#line 742 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 742 "/home/jens/Source/shotwell/src/Printing.vala" - result = (Photo*) _tmp1_; -#line 742 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 4962 "Printing.c" -} - - -gdouble -print_job_get_source_aspect_ratio (PrintJob* self) -{ - gdouble result = 0.0; - gdouble aspect_ratio = 0.0; - GeeArrayList* _tmp0_; - gpointer _tmp1_; - Photo* _tmp2_; - Dimensions _tmp3_ = {0}; - gdouble _tmp4_; - gdouble _tmp5_ = 0.0; - gdouble _tmp6_; -#line 745 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_PRINT_JOB (self), 0.0); -#line 746 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->photos; -#line 746 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 746 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = (Photo*) _tmp1_; -#line 746 "/home/jens/Source/shotwell/src/Printing.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp3_); -#line 746 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = dimensions_get_aspect_ratio (&_tmp3_); -#line 746 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (_tmp2_); -#line 746 "/home/jens/Source/shotwell/src/Printing.vala" - aspect_ratio = _tmp4_; -#line 747 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = aspect_ratio; -#line 747 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp6_ < 1.0) { -#line 4998 "Printing.c" - gdouble _tmp7_; -#line 747 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = aspect_ratio; -#line 747 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = 1.0 / _tmp7_; -#line 5004 "Printing.c" - } else { - gdouble _tmp8_; -#line 747 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = aspect_ratio; -#line 747 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = _tmp8_; -#line 5011 "Printing.c" - } -#line 747 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp5_; -#line 747 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 5017 "Printing.c" -} - - -static gpointer -_print_settings_ref0 (gpointer self) -{ -#line 751 "/home/jens/Source/shotwell/src/Printing.vala" - return self ? print_settings_ref (self) : NULL; -#line 5026 "Printing.c" -} - - -PrintSettings* -print_job_get_local_settings (PrintJob* self) -{ - PrintSettings* result = NULL; - PrintSettings* _tmp0_; - PrintSettings* _tmp1_; -#line 750 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_PRINT_JOB (self), NULL); -#line 751 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->settings; -#line 751 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = _print_settings_ref0 (_tmp0_); -#line 751 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp1_; -#line 751 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 5046 "Printing.c" -} - - -void -print_job_set_local_settings (PrintJob* self, - PrintSettings* settings) -{ - PrintSettings* _tmp0_; -#line 754 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_JOB (self)); -#line 754 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_SETTINGS (settings)); -#line 755 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = _print_settings_ref0 (settings); -#line 755 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (self->priv->settings); -#line 755 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->settings = _tmp0_; -#line 5065 "Printing.c" -} - - -static void -print_job_class_init (PrintJobClass * klass) -{ -#line 723 "/home/jens/Source/shotwell/src/Printing.vala" - print_job_parent_class = g_type_class_peek_parent (klass); -#line 723 "/home/jens/Source/shotwell/src/Printing.vala" - g_type_class_add_private (klass, sizeof (PrintJobPrivate)); -#line 723 "/home/jens/Source/shotwell/src/Printing.vala" - G_OBJECT_CLASS (klass)->finalize = print_job_finalize; -#line 5078 "Printing.c" -} - - -static void -print_job_instance_init (PrintJob * self) -{ - GeeArrayList* _tmp0_; -#line 723 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv = PRINT_JOB_GET_PRIVATE (self); -#line 725 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = gee_array_list_new (TYPE_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 725 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->photos = _tmp0_; -#line 5092 "Printing.c" -} - - -static void -print_job_finalize (GObject * obj) -{ - PrintJob * self; -#line 723 "/home/jens/Source/shotwell/src/Printing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PRINT_JOB, PrintJob); -#line 724 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (self->priv->settings); -#line 725 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->photos); -#line 723 "/home/jens/Source/shotwell/src/Printing.vala" - G_OBJECT_CLASS (print_job_parent_class)->finalize (obj); -#line 5108 "Printing.c" -} - - -GType -print_job_get_type (void) -{ - static volatile gsize print_job_type_id__volatile = 0; - if (g_once_init_enter (&print_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PrintJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) print_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PrintJob), 0, (GInstanceInitFunc) print_job_instance_init, NULL }; - GType print_job_type_id; - print_job_type_id = g_type_register_static (gtk_print_operation_get_type (), "PrintJob", &g_define_type_info, 0); - g_once_init_leave (&print_job_type_id__volatile, print_job_type_id); - } - return print_job_type_id__volatile; -} - - -StandardPrintSize* -standard_print_size_construct (GType object_type, - const gchar* name, - Measurement* width, - Measurement* height) -{ - StandardPrintSize* self = NULL; - gchar* _tmp0_; - Measurement _tmp1_; - Measurement _tmp2_; -#line 760 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 760 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (width != NULL, NULL); -#line 760 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (height != NULL, NULL); -#line 760 "/home/jens/Source/shotwell/src/Printing.vala" - self = (StandardPrintSize*) g_type_create_instance (object_type); -#line 761 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = g_strdup (name); -#line 761 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (self->name); -#line 761 "/home/jens/Source/shotwell/src/Printing.vala" - self->name = _tmp0_; -#line 762 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = *width; -#line 762 "/home/jens/Source/shotwell/src/Printing.vala" - self->width = _tmp1_; -#line 763 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = *height; -#line 763 "/home/jens/Source/shotwell/src/Printing.vala" - self->height = _tmp2_; -#line 760 "/home/jens/Source/shotwell/src/Printing.vala" - return self; -#line 5160 "Printing.c" -} - - -StandardPrintSize* -standard_print_size_new (const gchar* name, - Measurement* width, - Measurement* height) -{ -#line 760 "/home/jens/Source/shotwell/src/Printing.vala" - return standard_print_size_construct (TYPE_STANDARD_PRINT_SIZE, name, width, height); -#line 5171 "Printing.c" -} - - -static void -value_standard_print_size_init (GValue* value) -{ -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = NULL; -#line 5180 "Printing.c" -} - - -static void -value_standard_print_size_free_value (GValue* value) -{ -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - if (value->data[0].v_pointer) { -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - standard_print_size_unref (value->data[0].v_pointer); -#line 5191 "Printing.c" - } -} - - -static void -value_standard_print_size_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - if (src_value->data[0].v_pointer) { -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - dest_value->data[0].v_pointer = standard_print_size_ref (src_value->data[0].v_pointer); -#line 5204 "Printing.c" - } else { -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - dest_value->data[0].v_pointer = NULL; -#line 5208 "Printing.c" - } -} - - -static gpointer -value_standard_print_size_peek_pointer (const GValue* value) -{ -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - return value->data[0].v_pointer; -#line 5218 "Printing.c" -} - - -static gchar* -value_standard_print_size_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - if (collect_values[0].v_pointer) { -#line 5230 "Printing.c" - StandardPrintSize * object; - object = collect_values[0].v_pointer; -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - if (object->parent_instance.g_class == NULL) { -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5237 "Printing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5241 "Printing.c" - } -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = standard_print_size_ref (object); -#line 5245 "Printing.c" - } else { -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = NULL; -#line 5249 "Printing.c" - } -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - return NULL; -#line 5253 "Printing.c" -} - - -static gchar* -value_standard_print_size_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - StandardPrintSize ** object_p; - object_p = collect_values[0].v_pointer; -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - if (!object_p) { -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 5269 "Printing.c" - } -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - if (!value->data[0].v_pointer) { -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - *object_p = NULL; -#line 5275 "Printing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - *object_p = value->data[0].v_pointer; -#line 5279 "Printing.c" - } else { -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - *object_p = standard_print_size_ref (value->data[0].v_pointer); -#line 5283 "Printing.c" - } -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - return NULL; -#line 5287 "Printing.c" -} - - -GParamSpec* -param_spec_standard_print_size (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecStandardPrintSize* spec; -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_STANDARD_PRINT_SIZE), NULL); -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - return G_PARAM_SPEC (spec); -#line 5307 "Printing.c" -} - - -gpointer -value_get_standard_print_size (const GValue* value) -{ -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_STANDARD_PRINT_SIZE), NULL); -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - return value->data[0].v_pointer; -#line 5318 "Printing.c" -} - - -void -value_set_standard_print_size (GValue* value, - gpointer v_object) -{ - StandardPrintSize * old; -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_STANDARD_PRINT_SIZE)); -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - old = value->data[0].v_pointer; -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - if (v_object) { -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_STANDARD_PRINT_SIZE)); -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = v_object; -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - standard_print_size_ref (value->data[0].v_pointer); -#line 5341 "Printing.c" - } else { -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = NULL; -#line 5345 "Printing.c" - } -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - if (old) { -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - standard_print_size_unref (old); -#line 5351 "Printing.c" - } -} - - -void -value_take_standard_print_size (GValue* value, - gpointer v_object) -{ - StandardPrintSize * old; -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_STANDARD_PRINT_SIZE)); -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - old = value->data[0].v_pointer; -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - if (v_object) { -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_STANDARD_PRINT_SIZE)); -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = v_object; -#line 5373 "Printing.c" - } else { -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = NULL; -#line 5377 "Printing.c" - } -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - if (old) { -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - standard_print_size_unref (old); -#line 5383 "Printing.c" - } -} - - -static void -standard_print_size_class_init (StandardPrintSizeClass * klass) -{ -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - standard_print_size_parent_class = g_type_class_peek_parent (klass); -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - ((StandardPrintSizeClass *) klass)->finalize = standard_print_size_finalize; -#line 5395 "Printing.c" -} - - -static void -standard_print_size_instance_init (StandardPrintSize * self) -{ -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - self->ref_count = 1; -#line 5404 "Printing.c" -} - - -static void -standard_print_size_finalize (StandardPrintSize * obj) -{ - StandardPrintSize * self; -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_STANDARD_PRINT_SIZE, StandardPrintSize); -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_handlers_destroy (self); -#line 766 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (self->name); -#line 5418 "Printing.c" -} - - -GType -standard_print_size_get_type (void) -{ - static volatile gsize standard_print_size_type_id__volatile = 0; - if (g_once_init_enter (&standard_print_size_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_standard_print_size_init, value_standard_print_size_free_value, value_standard_print_size_copy_value, value_standard_print_size_peek_pointer, "p", value_standard_print_size_collect_value, "p", value_standard_print_size_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (StandardPrintSizeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) standard_print_size_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (StandardPrintSize), 0, (GInstanceInitFunc) standard_print_size_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType standard_print_size_type_id; - standard_print_size_type_id = g_type_register_fundamental (g_type_fundamental_next (), "StandardPrintSize", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&standard_print_size_type_id__volatile, standard_print_size_type_id); - } - return standard_print_size_type_id__volatile; -} - - -gpointer -standard_print_size_ref (gpointer instance) -{ - StandardPrintSize * self; - self = instance; -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - g_atomic_int_inc (&self->ref_count); -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - return instance; -#line 5447 "Printing.c" -} - - -void -standard_print_size_unref (gpointer instance) -{ - StandardPrintSize * self; - self = instance; -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - STANDARD_PRINT_SIZE_GET_CLASS (self)->finalize (self); -#line 759 "/home/jens/Source/shotwell/src/Printing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 5462 "Printing.c" - } -} - - -static PrintManager* -print_manager_construct (GType object_type) -{ - PrintManager* self = NULL; - GtkPageSetup* _tmp0_; - PrintSettings* _tmp1_; -#line 783 "/home/jens/Source/shotwell/src/Printing.vala" - self = (PrintManager*) g_type_create_instance (object_type); -#line 784 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = gtk_page_setup_new (); -#line 784 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->user_page_setup); -#line 784 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->user_page_setup = _tmp0_; -#line 785 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = print_settings_new (); -#line 785 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (self->priv->settings); -#line 785 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->settings = _tmp1_; -#line 783 "/home/jens/Source/shotwell/src/Printing.vala" - return self; -#line 5489 "Printing.c" -} - - -static PrintManager* -print_manager_new (void) -{ -#line 783 "/home/jens/Source/shotwell/src/Printing.vala" - return print_manager_construct (TYPE_PRINT_MANAGER); -#line 5498 "Printing.c" -} - - -static void -_vala_array_add112 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value) -{ -#line 792 "/home/jens/Source/shotwell/src/Printing.vala" - if ((*length) == (*size)) { -#line 792 "/home/jens/Source/shotwell/src/Printing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 792 "/home/jens/Source/shotwell/src/Printing.vala" - *array = g_renew (StandardPrintSize*, *array, (*size) + 1); -#line 5514 "Printing.c" - } -#line 792 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[(*length)++] = value; -#line 792 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[*length] = NULL; -#line 5520 "Printing.c" -} - - -static void -_vala_array_add113 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value) -{ -#line 795 "/home/jens/Source/shotwell/src/Printing.vala" - if ((*length) == (*size)) { -#line 795 "/home/jens/Source/shotwell/src/Printing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 795 "/home/jens/Source/shotwell/src/Printing.vala" - *array = g_renew (StandardPrintSize*, *array, (*size) + 1); -#line 5536 "Printing.c" - } -#line 795 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[(*length)++] = value; -#line 795 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[*length] = NULL; -#line 5542 "Printing.c" -} - - -static void -_vala_array_add114 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value) -{ -#line 798 "/home/jens/Source/shotwell/src/Printing.vala" - if ((*length) == (*size)) { -#line 798 "/home/jens/Source/shotwell/src/Printing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 798 "/home/jens/Source/shotwell/src/Printing.vala" - *array = g_renew (StandardPrintSize*, *array, (*size) + 1); -#line 5558 "Printing.c" - } -#line 798 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[(*length)++] = value; -#line 798 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[*length] = NULL; -#line 5564 "Printing.c" -} - - -static void -_vala_array_add115 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value) -{ -#line 801 "/home/jens/Source/shotwell/src/Printing.vala" - if ((*length) == (*size)) { -#line 801 "/home/jens/Source/shotwell/src/Printing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 801 "/home/jens/Source/shotwell/src/Printing.vala" - *array = g_renew (StandardPrintSize*, *array, (*size) + 1); -#line 5580 "Printing.c" - } -#line 801 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[(*length)++] = value; -#line 801 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[*length] = NULL; -#line 5586 "Printing.c" -} - - -static void -_vala_array_add116 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value) -{ -#line 804 "/home/jens/Source/shotwell/src/Printing.vala" - if ((*length) == (*size)) { -#line 804 "/home/jens/Source/shotwell/src/Printing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 804 "/home/jens/Source/shotwell/src/Printing.vala" - *array = g_renew (StandardPrintSize*, *array, (*size) + 1); -#line 5602 "Printing.c" - } -#line 804 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[(*length)++] = value; -#line 804 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[*length] = NULL; -#line 5608 "Printing.c" -} - - -static void -_vala_array_add117 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value) -{ -#line 807 "/home/jens/Source/shotwell/src/Printing.vala" - if ((*length) == (*size)) { -#line 807 "/home/jens/Source/shotwell/src/Printing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 807 "/home/jens/Source/shotwell/src/Printing.vala" - *array = g_renew (StandardPrintSize*, *array, (*size) + 1); -#line 5624 "Printing.c" - } -#line 807 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[(*length)++] = value; -#line 807 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[*length] = NULL; -#line 5630 "Printing.c" -} - - -static void -_vala_array_add118 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value) -{ -#line 810 "/home/jens/Source/shotwell/src/Printing.vala" - if ((*length) == (*size)) { -#line 810 "/home/jens/Source/shotwell/src/Printing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 810 "/home/jens/Source/shotwell/src/Printing.vala" - *array = g_renew (StandardPrintSize*, *array, (*size) + 1); -#line 5646 "Printing.c" - } -#line 810 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[(*length)++] = value; -#line 810 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[*length] = NULL; -#line 5652 "Printing.c" -} - - -static void -_vala_array_add119 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value) -{ -#line 813 "/home/jens/Source/shotwell/src/Printing.vala" - if ((*length) == (*size)) { -#line 813 "/home/jens/Source/shotwell/src/Printing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 813 "/home/jens/Source/shotwell/src/Printing.vala" - *array = g_renew (StandardPrintSize*, *array, (*size) + 1); -#line 5668 "Printing.c" - } -#line 813 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[(*length)++] = value; -#line 813 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[*length] = NULL; -#line 5674 "Printing.c" -} - - -static void -_vala_array_add120 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value) -{ -#line 816 "/home/jens/Source/shotwell/src/Printing.vala" - if ((*length) == (*size)) { -#line 816 "/home/jens/Source/shotwell/src/Printing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 816 "/home/jens/Source/shotwell/src/Printing.vala" - *array = g_renew (StandardPrintSize*, *array, (*size) + 1); -#line 5690 "Printing.c" - } -#line 816 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[(*length)++] = value; -#line 816 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[*length] = NULL; -#line 5696 "Printing.c" -} - - -static void -_vala_array_add121 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value) -{ -#line 819 "/home/jens/Source/shotwell/src/Printing.vala" - if ((*length) == (*size)) { -#line 819 "/home/jens/Source/shotwell/src/Printing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 819 "/home/jens/Source/shotwell/src/Printing.vala" - *array = g_renew (StandardPrintSize*, *array, (*size) + 1); -#line 5712 "Printing.c" - } -#line 819 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[(*length)++] = value; -#line 819 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[*length] = NULL; -#line 5718 "Printing.c" -} - - -static void -_vala_array_add122 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value) -{ -#line 822 "/home/jens/Source/shotwell/src/Printing.vala" - if ((*length) == (*size)) { -#line 822 "/home/jens/Source/shotwell/src/Printing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 822 "/home/jens/Source/shotwell/src/Printing.vala" - *array = g_renew (StandardPrintSize*, *array, (*size) + 1); -#line 5734 "Printing.c" - } -#line 822 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[(*length)++] = value; -#line 822 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[*length] = NULL; -#line 5740 "Printing.c" -} - - -static void -_vala_array_add123 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value) -{ -#line 825 "/home/jens/Source/shotwell/src/Printing.vala" - if ((*length) == (*size)) { -#line 825 "/home/jens/Source/shotwell/src/Printing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 825 "/home/jens/Source/shotwell/src/Printing.vala" - *array = g_renew (StandardPrintSize*, *array, (*size) + 1); -#line 5756 "Printing.c" - } -#line 825 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[(*length)++] = value; -#line 825 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[*length] = NULL; -#line 5762 "Printing.c" -} - - -static void -_vala_array_add124 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value) -{ -#line 828 "/home/jens/Source/shotwell/src/Printing.vala" - if ((*length) == (*size)) { -#line 828 "/home/jens/Source/shotwell/src/Printing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 828 "/home/jens/Source/shotwell/src/Printing.vala" - *array = g_renew (StandardPrintSize*, *array, (*size) + 1); -#line 5778 "Printing.c" - } -#line 828 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[(*length)++] = value; -#line 828 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[*length] = NULL; -#line 5784 "Printing.c" -} - - -static void -_vala_array_add125 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value) -{ -#line 831 "/home/jens/Source/shotwell/src/Printing.vala" - if ((*length) == (*size)) { -#line 831 "/home/jens/Source/shotwell/src/Printing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 831 "/home/jens/Source/shotwell/src/Printing.vala" - *array = g_renew (StandardPrintSize*, *array, (*size) + 1); -#line 5800 "Printing.c" - } -#line 831 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[(*length)++] = value; -#line 831 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[*length] = NULL; -#line 5806 "Printing.c" -} - - -static void -_vala_array_add126 (StandardPrintSize** * array, - int* length, - int* size, - StandardPrintSize* value) -{ -#line 834 "/home/jens/Source/shotwell/src/Printing.vala" - if ((*length) == (*size)) { -#line 834 "/home/jens/Source/shotwell/src/Printing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 834 "/home/jens/Source/shotwell/src/Printing.vala" - *array = g_renew (StandardPrintSize*, *array, (*size) + 1); -#line 5822 "Printing.c" - } -#line 834 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[(*length)++] = value; -#line 834 "/home/jens/Source/shotwell/src/Printing.vala" - (*array)[*length] = NULL; -#line 5828 "Printing.c" -} - - -StandardPrintSize** -print_manager_get_standard_sizes (PrintManager* self, - int* result_length1) -{ - StandardPrintSize** result = NULL; - StandardPrintSize** _tmp0_; - gint _tmp0__length1; - StandardPrintSize** _tmp62_; - gint _tmp62__length1; - StandardPrintSize** _tmp63_; - gint _tmp63__length1; -#line 788 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_PRINT_MANAGER (self), NULL); -#line 789 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->standard_sizes; -#line 789 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0__length1 = self->priv->standard_sizes_length1; -#line 789 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp0_ == NULL) { -#line 5851 "Printing.c" - StandardPrintSize** _tmp1_; - StandardPrintSize** _tmp2_; - gint _tmp2__length1; - Measurement _tmp3_ = {0}; - Measurement _tmp4_ = {0}; - StandardPrintSize* _tmp5_; - StandardPrintSize** _tmp6_; - gint _tmp6__length1; - Measurement _tmp7_ = {0}; - Measurement _tmp8_ = {0}; - StandardPrintSize* _tmp9_; - StandardPrintSize** _tmp10_; - gint _tmp10__length1; - Measurement _tmp11_ = {0}; - Measurement _tmp12_ = {0}; - StandardPrintSize* _tmp13_; - StandardPrintSize** _tmp14_; - gint _tmp14__length1; - Measurement _tmp15_ = {0}; - Measurement _tmp16_ = {0}; - StandardPrintSize* _tmp17_; - StandardPrintSize** _tmp18_; - gint _tmp18__length1; - Measurement _tmp19_ = {0}; - Measurement _tmp20_ = {0}; - StandardPrintSize* _tmp21_; - StandardPrintSize** _tmp22_; - gint _tmp22__length1; - Measurement _tmp23_ = {0}; - Measurement _tmp24_ = {0}; - StandardPrintSize* _tmp25_; - StandardPrintSize** _tmp26_; - gint _tmp26__length1; - Measurement _tmp27_ = {0}; - Measurement _tmp28_ = {0}; - StandardPrintSize* _tmp29_; - StandardPrintSize** _tmp30_; - gint _tmp30__length1; - Measurement _tmp31_ = {0}; - Measurement _tmp32_ = {0}; - StandardPrintSize* _tmp33_; - StandardPrintSize** _tmp34_; - gint _tmp34__length1; - Measurement _tmp35_ = {0}; - Measurement _tmp36_ = {0}; - StandardPrintSize* _tmp37_; - StandardPrintSize** _tmp38_; - gint _tmp38__length1; - Measurement _tmp39_ = {0}; - Measurement _tmp40_ = {0}; - StandardPrintSize* _tmp41_; - StandardPrintSize** _tmp42_; - gint _tmp42__length1; - Measurement _tmp43_ = {0}; - Measurement _tmp44_ = {0}; - StandardPrintSize* _tmp45_; - StandardPrintSize** _tmp46_; - gint _tmp46__length1; - Measurement _tmp47_ = {0}; - Measurement _tmp48_ = {0}; - StandardPrintSize* _tmp49_; - StandardPrintSize** _tmp50_; - gint _tmp50__length1; - Measurement _tmp51_ = {0}; - Measurement _tmp52_ = {0}; - StandardPrintSize* _tmp53_; - StandardPrintSize** _tmp54_; - gint _tmp54__length1; - Measurement _tmp55_ = {0}; - Measurement _tmp56_ = {0}; - StandardPrintSize* _tmp57_; - StandardPrintSize** _tmp58_; - gint _tmp58__length1; - Measurement _tmp59_ = {0}; - Measurement _tmp60_ = {0}; - StandardPrintSize* _tmp61_; -#line 790 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = g_new0 (StandardPrintSize*, 0 + 1); -#line 790 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->standard_sizes = (_vala_array_free (self->priv->standard_sizes, self->priv->standard_sizes_length1, (GDestroyNotify) standard_print_size_unref), NULL); -#line 790 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->standard_sizes = _tmp1_; -#line 790 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->standard_sizes_length1 = 0; -#line 790 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->_standard_sizes_size_ = self->priv->standard_sizes_length1; -#line 792 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = self->priv->standard_sizes; -#line 792 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2__length1 = self->priv->standard_sizes_length1; -#line 792 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp3_, (gdouble) 3, MEASUREMENT_UNIT_INCHES); -#line 792 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp4_, (gdouble) 2, MEASUREMENT_UNIT_INCHES); -#line 792 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = standard_print_size_new (_ ("Wallet (2 × 3 in.)"), &_tmp3_, &_tmp4_); -#line 792 "/home/jens/Source/shotwell/src/Printing.vala" - _vala_array_add112 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp5_); -#line 795 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = self->priv->standard_sizes; -#line 795 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6__length1 = self->priv->standard_sizes_length1; -#line 795 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp7_, (gdouble) 5, MEASUREMENT_UNIT_INCHES); -#line 795 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp8_, (gdouble) 3, MEASUREMENT_UNIT_INCHES); -#line 795 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = standard_print_size_new (_ ("Notecard (3 × 5 in.)"), &_tmp7_, &_tmp8_); -#line 795 "/home/jens/Source/shotwell/src/Printing.vala" - _vala_array_add113 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp9_); -#line 798 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp10_ = self->priv->standard_sizes; -#line 798 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp10__length1 = self->priv->standard_sizes_length1; -#line 798 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp11_, (gdouble) 6, MEASUREMENT_UNIT_INCHES); -#line 798 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp12_, (gdouble) 4, MEASUREMENT_UNIT_INCHES); -#line 798 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp13_ = standard_print_size_new (_ ("4 × 6 in."), &_tmp11_, &_tmp12_); -#line 798 "/home/jens/Source/shotwell/src/Printing.vala" - _vala_array_add114 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp13_); -#line 801 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp14_ = self->priv->standard_sizes; -#line 801 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp14__length1 = self->priv->standard_sizes_length1; -#line 801 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp15_, (gdouble) 7, MEASUREMENT_UNIT_INCHES); -#line 801 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp16_, (gdouble) 5, MEASUREMENT_UNIT_INCHES); -#line 801 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp17_ = standard_print_size_new (_ ("5 × 7 in."), &_tmp15_, &_tmp16_); -#line 801 "/home/jens/Source/shotwell/src/Printing.vala" - _vala_array_add115 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp17_); -#line 804 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp18_ = self->priv->standard_sizes; -#line 804 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp18__length1 = self->priv->standard_sizes_length1; -#line 804 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp19_, (gdouble) 10, MEASUREMENT_UNIT_INCHES); -#line 804 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp20_, (gdouble) 8, MEASUREMENT_UNIT_INCHES); -#line 804 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp21_ = standard_print_size_new (_ ("8 × 10 in."), &_tmp19_, &_tmp20_); -#line 804 "/home/jens/Source/shotwell/src/Printing.vala" - _vala_array_add116 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp21_); -#line 807 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp22_ = self->priv->standard_sizes; -#line 807 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp22__length1 = self->priv->standard_sizes_length1; -#line 807 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp23_, (gdouble) 14, MEASUREMENT_UNIT_INCHES); -#line 807 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp24_, (gdouble) 11, MEASUREMENT_UNIT_INCHES); -#line 807 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp25_ = standard_print_size_new (_ ("11 × 14 in."), &_tmp23_, &_tmp24_); -#line 807 "/home/jens/Source/shotwell/src/Printing.vala" - _vala_array_add117 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp25_); -#line 810 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp26_ = self->priv->standard_sizes; -#line 810 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp26__length1 = self->priv->standard_sizes_length1; -#line 810 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp27_, (gdouble) 20, MEASUREMENT_UNIT_INCHES); -#line 810 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp28_, (gdouble) 16, MEASUREMENT_UNIT_INCHES); -#line 810 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp29_ = standard_print_size_new (_ ("16 × 20 in."), &_tmp27_, &_tmp28_); -#line 810 "/home/jens/Source/shotwell/src/Printing.vala" - _vala_array_add118 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp29_); -#line 813 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp30_ = self->priv->standard_sizes; -#line 813 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp30__length1 = self->priv->standard_sizes_length1; -#line 813 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp31_, (gdouble) 0, MEASUREMENT_UNIT_INCHES); -#line 813 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp32_, (gdouble) 0, MEASUREMENT_UNIT_INCHES); -#line 813 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp33_ = standard_print_size_new ("-", &_tmp31_, &_tmp32_); -#line 813 "/home/jens/Source/shotwell/src/Printing.vala" - _vala_array_add119 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp33_); -#line 816 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp34_ = self->priv->standard_sizes; -#line 816 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp34__length1 = self->priv->standard_sizes_length1; -#line 816 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp35_, (gdouble) 13, MEASUREMENT_UNIT_CENTIMETERS); -#line 816 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp36_, (gdouble) 9, MEASUREMENT_UNIT_CENTIMETERS); -#line 816 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp37_ = standard_print_size_new (_ ("Metric Wallet (9 × 13 cm)"), &_tmp35_, &_tmp36_); -#line 816 "/home/jens/Source/shotwell/src/Printing.vala" - _vala_array_add120 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp37_); -#line 819 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp38_ = self->priv->standard_sizes; -#line 819 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp38__length1 = self->priv->standard_sizes_length1; -#line 819 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp39_, (gdouble) 15, MEASUREMENT_UNIT_CENTIMETERS); -#line 819 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp40_, (gdouble) 10, MEASUREMENT_UNIT_CENTIMETERS); -#line 819 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp41_ = standard_print_size_new (_ ("Postcard (10 × 15 cm)"), &_tmp39_, &_tmp40_); -#line 819 "/home/jens/Source/shotwell/src/Printing.vala" - _vala_array_add121 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp41_); -#line 822 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp42_ = self->priv->standard_sizes; -#line 822 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp42__length1 = self->priv->standard_sizes_length1; -#line 822 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp43_, (gdouble) 18, MEASUREMENT_UNIT_CENTIMETERS); -#line 822 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp44_, (gdouble) 13, MEASUREMENT_UNIT_CENTIMETERS); -#line 822 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp45_ = standard_print_size_new (_ ("13 × 18 cm"), &_tmp43_, &_tmp44_); -#line 822 "/home/jens/Source/shotwell/src/Printing.vala" - _vala_array_add122 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp45_); -#line 825 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp46_ = self->priv->standard_sizes; -#line 825 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp46__length1 = self->priv->standard_sizes_length1; -#line 825 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp47_, (gdouble) 24, MEASUREMENT_UNIT_CENTIMETERS); -#line 825 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp48_, (gdouble) 18, MEASUREMENT_UNIT_CENTIMETERS); -#line 825 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp49_ = standard_print_size_new (_ ("18 × 24 cm"), &_tmp47_, &_tmp48_); -#line 825 "/home/jens/Source/shotwell/src/Printing.vala" - _vala_array_add123 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp49_); -#line 828 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp50_ = self->priv->standard_sizes; -#line 828 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp50__length1 = self->priv->standard_sizes_length1; -#line 828 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp51_, (gdouble) 30, MEASUREMENT_UNIT_CENTIMETERS); -#line 828 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp52_, (gdouble) 20, MEASUREMENT_UNIT_CENTIMETERS); -#line 828 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp53_ = standard_print_size_new (_ ("20 × 30 cm"), &_tmp51_, &_tmp52_); -#line 828 "/home/jens/Source/shotwell/src/Printing.vala" - _vala_array_add124 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp53_); -#line 831 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp54_ = self->priv->standard_sizes; -#line 831 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp54__length1 = self->priv->standard_sizes_length1; -#line 831 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp55_, (gdouble) 40, MEASUREMENT_UNIT_CENTIMETERS); -#line 831 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp56_, (gdouble) 24, MEASUREMENT_UNIT_CENTIMETERS); -#line 831 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp57_ = standard_print_size_new (_ ("24 × 40 cm"), &_tmp55_, &_tmp56_); -#line 831 "/home/jens/Source/shotwell/src/Printing.vala" - _vala_array_add125 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp57_); -#line 834 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp58_ = self->priv->standard_sizes; -#line 834 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp58__length1 = self->priv->standard_sizes_length1; -#line 834 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp59_, (gdouble) 40, MEASUREMENT_UNIT_CENTIMETERS); -#line 834 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_init (&_tmp60_, (gdouble) 30, MEASUREMENT_UNIT_CENTIMETERS); -#line 834 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp61_ = standard_print_size_new (_ ("30 × 40 cm"), &_tmp59_, &_tmp60_); -#line 834 "/home/jens/Source/shotwell/src/Printing.vala" - _vala_array_add126 (&self->priv->standard_sizes, &self->priv->standard_sizes_length1, &self->priv->_standard_sizes_size_, _tmp61_); -#line 6118 "Printing.c" - } -#line 839 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp62_ = self->priv->standard_sizes; -#line 839 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp62__length1 = self->priv->standard_sizes_length1; -#line 839 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp63_ = _tmp62_; -#line 839 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp63__length1 = _tmp62__length1; -#line 839 "/home/jens/Source/shotwell/src/Printing.vala" - if (result_length1) { -#line 839 "/home/jens/Source/shotwell/src/Printing.vala" - *result_length1 = _tmp63__length1; -#line 6132 "Printing.c" - } -#line 839 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp63_; -#line 839 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 6138 "Printing.c" -} - - -static gpointer -_print_manager_ref0 (gpointer self) -{ -#line 846 "/home/jens/Source/shotwell/src/Printing.vala" - return self ? print_manager_ref (self) : NULL; -#line 6147 "Printing.c" -} - - -PrintManager* -print_manager_get_instance (void) -{ - PrintManager* result = NULL; - PrintManager* _tmp0_; - PrintManager* _tmp2_; - PrintManager* _tmp3_; -#line 843 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = print_manager_instance; -#line 843 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp0_ == NULL) { -#line 6162 "Printing.c" - PrintManager* _tmp1_; -#line 844 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = print_manager_new (); -#line 844 "/home/jens/Source/shotwell/src/Printing.vala" - _print_manager_unref0 (print_manager_instance); -#line 844 "/home/jens/Source/shotwell/src/Printing.vala" - print_manager_instance = _tmp1_; -#line 6170 "Printing.c" - } -#line 846 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = print_manager_instance; -#line 846 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = _print_manager_ref0 (_tmp2_); -#line 846 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp3_; -#line 846 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 6180 "Printing.c" -} - - -static void -_print_manager_on_begin_print_gtk_print_operation_begin_print (GtkPrintOperation* _sender, - GtkPrintContext* context, - gpointer self) -{ -#line 856 "/home/jens/Source/shotwell/src/Printing.vala" - print_manager_on_begin_print ((PrintManager*) self, _sender, context); -#line 6191 "Printing.c" -} - - -static void -_print_manager_on_draw_page_gtk_print_operation_draw_page (GtkPrintOperation* _sender, - GtkPrintContext* context, - gint page_nr, - gpointer self) -{ -#line 857 "/home/jens/Source/shotwell/src/Printing.vala" - print_manager_on_draw_page ((PrintManager*) self, _sender, context, page_nr); -#line 6203 "Printing.c" -} - - -static GObject* -_print_manager_on_create_custom_widget_gtk_print_operation_create_custom_widget (GtkPrintOperation* _sender, - gpointer self) -{ - GObject* result; - result = print_manager_on_create_custom_widget ((PrintManager*) self, _sender); -#line 858 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 6215 "Printing.c" -} - - -static void -_print_manager_on_status_changed_gtk_print_operation_status_changed (GtkPrintOperation* _sender, - gpointer self) -{ -#line 859 "/home/jens/Source/shotwell/src/Printing.vala" - print_manager_on_status_changed ((PrintManager*) self, _sender); -#line 6225 "Printing.c" -} - - -void -print_manager_spool_photo (PrintManager* self, - GeeCollection* to_print) -{ - PrintJob* job = NULL; - PrintJob* _tmp0_; - Photo* _tmp1_; - Photo* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - GtkPageSetup* _tmp5_; - AppWindow* _tmp6_; - AppWindow* _tmp7_; - GCancellable* _tmp8_; - AppWindow* _tmp9_; - AppWindow* _tmp10_; - GCancellable* _tmp11_; - ProgressDialog* _tmp12_; - gchar* err_msg = NULL; - ProgressDialog* _tmp21_; - AppWindow* _tmp22_; - AppWindow* _tmp23_; - const gchar* _tmp24_; - GError * _inner_error_ = NULL; -#line 849 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_MANAGER (self)); -#line 849 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (GEE_IS_COLLECTION (to_print)); -#line 850 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = print_job_new (to_print); -#line 850 "/home/jens/Source/shotwell/src/Printing.vala" - job = _tmp0_; -#line 851 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_print_operation_set_custom_tab_label (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), _ ("Image Settings")); -#line 852 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_print_operation_set_unit (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), GTK_UNIT_INCH); -#line 853 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_print_operation_set_n_pages (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), 1); -#line 854 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = print_job_get_source_photo (job); -#line 854 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = _tmp1_; -#line 854 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_OBJECT, DataObject)); -#line 854 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = _tmp3_; -#line 854 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_print_operation_set_job_name (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), _tmp4_); -#line 854 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp4_); -#line 854 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (_tmp2_); -#line 855 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = self->priv->user_page_setup; -#line 855 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_print_operation_set_default_page_setup (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), _tmp5_); -#line 856 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), "begin-print", (GCallback) _print_manager_on_begin_print_gtk_print_operation_begin_print, self); -#line 857 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), "draw-page", (GCallback) _print_manager_on_draw_page_gtk_print_operation_draw_page, self); -#line 858 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), "create-custom-widget", (GCallback) _print_manager_on_create_custom_widget_gtk_print_operation_create_custom_widget, self); -#line 859 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), "status-changed", (GCallback) _print_manager_on_status_changed_gtk_print_operation_status_changed, self); -#line 861 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = app_window_get_instance (); -#line 861 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = _tmp6_; -#line 861 "/home/jens/Source/shotwell/src/Printing.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PAGE_WINDOW, PageWindow)); -#line 861 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (_tmp7_); -#line 863 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = g_cancellable_new (); -#line 863 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->cancellable); -#line 863 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->cancellable = _tmp8_; -#line 864 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = app_window_get_instance (); -#line 864 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp10_ = _tmp9_; -#line 864 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp11_ = self->priv->cancellable; -#line 864 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp12_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_window_get_type (), GtkWindow), _ ("Printing…"), _tmp11_); -#line 864 "/home/jens/Source/shotwell/src/Printing.vala" - g_object_ref_sink (_tmp12_); -#line 864 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->progress_dialog); -#line 864 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->progress_dialog = _tmp12_; -#line 864 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (_tmp10_); -#line 866 "/home/jens/Source/shotwell/src/Printing.vala" - err_msg = NULL; -#line 6325 "Printing.c" - { - GtkPrintOperationResult _result_ = 0; - AppWindow* _tmp13_; - AppWindow* _tmp14_; - GtkPrintOperationResult _tmp15_; -#line 868 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp13_ = app_window_get_instance (); -#line 868 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp14_ = _tmp13_; -#line 868 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp15_ = gtk_print_operation_run (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation), GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_window_get_type (), GtkWindow), &_inner_error_); -#line 868 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (_tmp14_); -#line 868 "/home/jens/Source/shotwell/src/Printing.vala" - _result_ = _tmp15_; -#line 868 "/home/jens/Source/shotwell/src/Printing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6343 "Printing.c" - goto __catch478_g_error; - } -#line 870 "/home/jens/Source/shotwell/src/Printing.vala" - if (_result_ == GTK_PRINT_OPERATION_RESULT_APPLY) { -#line 6348 "Printing.c" - GtkPageSetup* _tmp16_; - GtkPageSetup* _tmp17_; -#line 871 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp16_ = gtk_print_operation_get_default_page_setup (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation)); -#line 871 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp17_ = _g_object_ref0 (_tmp16_); -#line 871 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->user_page_setup); -#line 871 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->user_page_setup = _tmp17_; -#line 6359 "Printing.c" - } - } - goto __finally478; - __catch478_g_error: - { - GError* e = NULL; - GError* _tmp18_; - const gchar* _tmp19_; - gchar* _tmp20_; -#line 867 "/home/jens/Source/shotwell/src/Printing.vala" - e = _inner_error_; -#line 867 "/home/jens/Source/shotwell/src/Printing.vala" - _inner_error_ = NULL; -#line 873 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_print_operation_cancel (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation)); -#line 874 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp18_ = e; -#line 874 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp19_ = _tmp18_->message; -#line 874 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp20_ = g_strdup (_tmp19_); -#line 874 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (err_msg); -#line 874 "/home/jens/Source/shotwell/src/Printing.vala" - err_msg = _tmp20_; -#line 867 "/home/jens/Source/shotwell/src/Printing.vala" - _g_error_free0 (e); -#line 6387 "Printing.c" - } - __finally478: -#line 867 "/home/jens/Source/shotwell/src/Printing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 867 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (err_msg); -#line 867 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (job); -#line 867 "/home/jens/Source/shotwell/src/Printing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 867 "/home/jens/Source/shotwell/src/Printing.vala" - g_clear_error (&_inner_error_); -#line 867 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 6402 "Printing.c" - } -#line 877 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp21_ = self->priv->progress_dialog; -#line 877 "/home/jens/Source/shotwell/src/Printing.vala" - progress_dialog_close (_tmp21_); -#line 878 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->progress_dialog); -#line 878 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->progress_dialog = NULL; -#line 879 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->cancellable); -#line 879 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->cancellable = NULL; -#line 881 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp22_ = app_window_get_instance (); -#line 881 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp23_ = _tmp22_; -#line 881 "/home/jens/Source/shotwell/src/Printing.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_PAGE_WINDOW, PageWindow)); -#line 881 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (_tmp23_); -#line 883 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp24_ = err_msg; -#line 883 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp24_ != NULL) { -#line 6428 "Printing.c" - const gchar* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; -#line 884 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp25_ = err_msg; -#line 884 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp26_ = g_strdup_printf (_ ("Unable to print photo:\n\n%s"), _tmp25_); -#line 884 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp27_ = _tmp26_; -#line 884 "/home/jens/Source/shotwell/src/Printing.vala" - app_window_error_message (_tmp27_, NULL); -#line 884 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp27_); -#line 6442 "Printing.c" - } -#line 849 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (err_msg); -#line 849 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (job); -#line 6448 "Printing.c" -} - - -static void -print_manager_on_begin_print (PrintManager* self, - GtkPrintOperation* emitting_object, - GtkPrintContext* job_context) -{ - PrintJob* job = NULL; - PrintJob* _tmp0_; - gboolean _tmp1_ = FALSE; - GCancellable* _tmp2_; - GeeList* photos = NULL; - PrintJob* _tmp5_; - GeeList* _tmp6_; - PrintJob* _tmp7_; - PrintSettings* _tmp8_; - PrintSettings* _tmp9_; - gboolean _tmp10_; -#line 887 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_MANAGER (self)); -#line 887 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (GTK_IS_PRINT_OPERATION (emitting_object)); -#line 887 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (GTK_IS_PRINT_CONTEXT (job_context)); -#line 888 "/home/jens/Source/shotwell/src/Printing.vala" - g_debug ("Printing.vala:888: on_begin_print"); -#line 890 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (emitting_object, TYPE_PRINT_JOB, PrintJob)); -#line 890 "/home/jens/Source/shotwell/src/Printing.vala" - job = _tmp0_; -#line 893 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = self->priv->cancellable; -#line 893 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp2_ != NULL) { -#line 6484 "Printing.c" - GCancellable* _tmp3_; -#line 893 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = self->priv->cancellable; -#line 893 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = g_cancellable_is_cancelled (_tmp3_); -#line 6490 "Printing.c" - } else { -#line 893 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = FALSE; -#line 6494 "Printing.c" - } -#line 893 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp1_) { -#line 6498 "Printing.c" - PrintJob* _tmp4_; -#line 894 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = job; -#line 894 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_print_operation_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_print_operation_get_type (), GtkPrintOperation)); -#line 896 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (job); -#line 896 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 6508 "Printing.c" - } -#line 899 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = job; -#line 899 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = print_job_get_photos (_tmp5_); -#line 899 "/home/jens/Source/shotwell/src/Printing.vala" - photos = _tmp6_; -#line 900 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = job; -#line 900 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = print_job_get_local_settings (_tmp7_); -#line 900 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = _tmp8_; -#line 900 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp10_ = print_settings_get_content_layout (_tmp9_) == CONTENT_LAYOUT_IMAGE_PER_PAGE; -#line 900 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp9_); -#line 900 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp10_) { -#line 6528 "Printing.c" - PrintLayout layout = 0; - PrintJob* _tmp11_; - PrintSettings* _tmp12_; - PrintSettings* _tmp13_; - PrintLayout _tmp14_; - PrintJob* _tmp15_; - GeeList* _tmp16_; - gint _tmp17_; - gint _tmp18_; - PrintLayout _tmp19_; -#line 901 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp11_ = job; -#line 901 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp12_ = print_job_get_local_settings (_tmp11_); -#line 901 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp13_ = _tmp12_; -#line 901 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp14_ = (PrintLayout) print_settings_get_image_per_page_selection (_tmp13_); -#line 901 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp13_); -#line 901 "/home/jens/Source/shotwell/src/Printing.vala" - layout = _tmp14_; -#line 902 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp15_ = job; -#line 902 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp16_ = photos; -#line 902 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp17_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 902 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp18_ = _tmp17_; -#line 902 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp19_ = layout; -#line 902 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_print_operation_set_n_pages (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_print_operation_get_type (), GtkPrintOperation), (gint) ceil (((gdouble) _tmp18_) / ((gdouble) print_layout_get_per_page (_tmp19_)))); -#line 6563 "Printing.c" - } else { - PrintJob* _tmp20_; - GeeList* _tmp21_; - gint _tmp22_; - gint _tmp23_; -#line 904 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp20_ = job; -#line 904 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp21_ = photos; -#line 904 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp22_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 904 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp23_ = _tmp22_; -#line 904 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_print_operation_set_n_pages (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_print_operation_get_type (), GtkPrintOperation), _tmp23_); -#line 6579 "Printing.c" - } -#line 907 "/home/jens/Source/shotwell/src/Printing.vala" - spin_event_loop (); -#line 887 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (photos); -#line 887 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (job); -#line 6587 "Printing.c" -} - - -static void -print_manager_on_status_changed (PrintManager* self, - GtkPrintOperation* job) -{ - const gchar* _tmp0_; - ProgressDialog* _tmp1_; -#line 910 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_MANAGER (self)); -#line 910 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (GTK_IS_PRINT_OPERATION (job)); -#line 911 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = gtk_print_operation_get_status_string (job); -#line 911 "/home/jens/Source/shotwell/src/Printing.vala" - g_debug ("Printing.vala:911: on_status_changed: %s", _tmp0_); -#line 913 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = self->priv->progress_dialog; -#line 913 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp1_ != NULL) { -#line 6609 "Printing.c" - ProgressDialog* _tmp2_; - const gchar* _tmp3_; -#line 914 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = self->priv->progress_dialog; -#line 914 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = gtk_print_operation_get_status_string (job); -#line 914 "/home/jens/Source/shotwell/src/Printing.vala" - progress_dialog_set_status (_tmp2_, _tmp3_); -#line 915 "/home/jens/Source/shotwell/src/Printing.vala" - spin_event_loop (); -#line 6620 "Printing.c" - } -} - - -static gpointer -_cairo_reference0 (gpointer self) -{ -#line 940 "/home/jens/Source/shotwell/src/Printing.vala" - return self ? cairo_reference (self) : NULL; -#line 6630 "Printing.c" -} - - -static void -print_manager_on_draw_page (PrintManager* self, - GtkPrintOperation* emitting_object, - GtkPrintContext* job_context, - gint page_num) -{ - PrintJob* job = NULL; - PrintJob* _tmp0_; - gboolean _tmp1_ = FALSE; - GCancellable* _tmp2_; - GtkPageSetup* page_setup = NULL; - GtkPageSetup* _tmp5_; - GtkPageSetup* _tmp6_; - gdouble page_width = 0.0; - GtkPageSetup* _tmp7_; - gdouble page_height = 0.0; - GtkPageSetup* _tmp8_; - gdouble dpi = 0.0; - PrintJob* _tmp9_; - PrintSettings* _tmp10_; - PrintSettings* _tmp11_; - gdouble _tmp12_; - gdouble inv_dpi = 0.0; - gdouble _tmp13_; - cairo_t* dc = NULL; - cairo_t* _tmp14_; - cairo_t* _tmp15_; - cairo_t* _tmp16_; - gdouble _tmp17_; - gdouble _tmp18_; - GeeList* photos = NULL; - PrintJob* _tmp19_; - GeeList* _tmp20_; - ContentLayout content_layout = 0; - PrintJob* _tmp21_; - PrintSettings* _tmp22_; - PrintSettings* _tmp23_; - ContentLayout _tmp24_; - ContentLayout _tmp25_; -#line 919 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_MANAGER (self)); -#line 919 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (GTK_IS_PRINT_OPERATION (emitting_object)); -#line 919 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (GTK_IS_PRINT_CONTEXT (job_context)); -#line 921 "/home/jens/Source/shotwell/src/Printing.vala" - g_debug ("Printing.vala:921: on_draw_page"); -#line 923 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (emitting_object, TYPE_PRINT_JOB, PrintJob)); -#line 923 "/home/jens/Source/shotwell/src/Printing.vala" - job = _tmp0_; -#line 926 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = self->priv->cancellable; -#line 926 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp2_ != NULL) { -#line 6689 "Printing.c" - GCancellable* _tmp3_; -#line 926 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = self->priv->cancellable; -#line 926 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = g_cancellable_is_cancelled (_tmp3_); -#line 6695 "Printing.c" - } else { -#line 926 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = FALSE; -#line 6699 "Printing.c" - } -#line 926 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp1_) { -#line 6703 "Printing.c" - PrintJob* _tmp4_; -#line 927 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = job; -#line 927 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_print_operation_cancel (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_print_operation_get_type (), GtkPrintOperation)); -#line 929 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (job); -#line 929 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 6713 "Printing.c" - } -#line 932 "/home/jens/Source/shotwell/src/Printing.vala" - spin_event_loop (); -#line 934 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = gtk_print_context_get_page_setup (job_context); -#line 934 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = _g_object_ref0 (_tmp5_); -#line 934 "/home/jens/Source/shotwell/src/Printing.vala" - page_setup = _tmp6_; -#line 935 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = page_setup; -#line 935 "/home/jens/Source/shotwell/src/Printing.vala" - page_width = gtk_page_setup_get_page_width (_tmp7_, GTK_UNIT_INCH); -#line 936 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = page_setup; -#line 936 "/home/jens/Source/shotwell/src/Printing.vala" - page_height = gtk_page_setup_get_page_height (_tmp8_, GTK_UNIT_INCH); -#line 938 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = job; -#line 938 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp10_ = print_job_get_local_settings (_tmp9_); -#line 938 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp11_ = _tmp10_; -#line 938 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp12_ = (gdouble) print_settings_get_content_ppi (_tmp11_); -#line 938 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp11_); -#line 938 "/home/jens/Source/shotwell/src/Printing.vala" - dpi = _tmp12_; -#line 939 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp13_ = dpi; -#line 939 "/home/jens/Source/shotwell/src/Printing.vala" - inv_dpi = 1.0 / _tmp13_; -#line 940 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp14_ = gtk_print_context_get_cairo_context (job_context); -#line 940 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp15_ = _cairo_reference0 (_tmp14_); -#line 940 "/home/jens/Source/shotwell/src/Printing.vala" - dc = _tmp15_; -#line 941 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp16_ = dc; -#line 941 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp17_ = inv_dpi; -#line 941 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp18_ = inv_dpi; -#line 941 "/home/jens/Source/shotwell/src/Printing.vala" - cairo_scale (_tmp16_, _tmp17_, _tmp18_); -#line 942 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp19_ = job; -#line 942 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp20_ = print_job_get_photos (_tmp19_); -#line 942 "/home/jens/Source/shotwell/src/Printing.vala" - photos = _tmp20_; -#line 944 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp21_ = job; -#line 944 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp22_ = print_job_get_local_settings (_tmp21_); -#line 944 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp23_ = _tmp22_; -#line 944 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp24_ = print_settings_get_content_layout (_tmp23_); -#line 944 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp23_); -#line 944 "/home/jens/Source/shotwell/src/Printing.vala" - content_layout = _tmp24_; -#line 945 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp25_ = content_layout; -#line 945 "/home/jens/Source/shotwell/src/Printing.vala" - switch (_tmp25_) { -#line 945 "/home/jens/Source/shotwell/src/Printing.vala" - case CONTENT_LAYOUT_STANDARD_SIZE: -#line 945 "/home/jens/Source/shotwell/src/Printing.vala" - case CONTENT_LAYOUT_CUSTOM_SIZE: -#line 6787 "Printing.c" - { - gdouble canvas_width = 0.0; - gdouble canvas_height = 0.0; - ContentLayout _tmp26_; - GeeList* _tmp56_; - gint _tmp57_; - gint _tmp58_; - ProgressDialog* _tmp95_; -#line 949 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp26_ = content_layout; -#line 949 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp26_ == CONTENT_LAYOUT_STANDARD_SIZE) { -#line 6800 "Printing.c" - gint _tmp27_; - StandardPrintSize** _tmp28_; - PrintJob* _tmp29_; - PrintSettings* _tmp30_; - PrintSettings* _tmp31_; - StandardPrintSize* _tmp32_; - Measurement _tmp33_ = {0}; - gdouble _tmp34_; - gint _tmp35_; - StandardPrintSize** _tmp36_; - PrintJob* _tmp37_; - PrintSettings* _tmp38_; - PrintSettings* _tmp39_; - StandardPrintSize* _tmp40_; - Measurement _tmp41_ = {0}; - gdouble _tmp42_; -#line 950 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp28_ = print_manager_get_standard_sizes (self, &_tmp27_); -#line 950 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp29_ = job; -#line 950 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp30_ = print_job_get_local_settings (_tmp29_); -#line 950 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp31_ = _tmp30_; -#line 950 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp32_ = _tmp28_[print_settings_get_size_selection (_tmp31_)]; -#line 950 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_convert_to (&_tmp32_->width, MEASUREMENT_UNIT_INCHES, &_tmp33_); -#line 950 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp34_ = _tmp33_.value; -#line 950 "/home/jens/Source/shotwell/src/Printing.vala" - canvas_width = _tmp34_; -#line 950 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp31_); -#line 952 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp36_ = print_manager_get_standard_sizes (self, &_tmp35_); -#line 952 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp37_ = job; -#line 952 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp38_ = print_job_get_local_settings (_tmp37_); -#line 952 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp39_ = _tmp38_; -#line 952 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp40_ = _tmp36_[print_settings_get_size_selection (_tmp39_)]; -#line 952 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_convert_to (&_tmp40_->height, MEASUREMENT_UNIT_INCHES, &_tmp41_); -#line 952 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp42_ = _tmp41_.value; -#line 952 "/home/jens/Source/shotwell/src/Printing.vala" - canvas_height = _tmp42_; -#line 952 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp39_); -#line 6853 "Printing.c" - } else { - ContentLayout _tmp43_; - PrintJob* _tmp44_; - PrintSettings* _tmp45_; - PrintSettings* _tmp46_; - Measurement _tmp47_ = {0}; - Measurement _tmp48_ = {0}; - gdouble _tmp49_; - PrintJob* _tmp50_; - PrintSettings* _tmp51_; - PrintSettings* _tmp52_; - Measurement _tmp53_ = {0}; - Measurement _tmp54_ = {0}; - gdouble _tmp55_; -#line 955 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp43_ = content_layout; -#line 955 "/home/jens/Source/shotwell/src/Printing.vala" - _vala_assert (_tmp43_ == CONTENT_LAYOUT_CUSTOM_SIZE, "content_layout == ContentLayout.CUSTOM_SIZE"); -#line 956 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp44_ = job; -#line 956 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp45_ = print_job_get_local_settings (_tmp44_); -#line 956 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp46_ = _tmp45_; -#line 956 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_get_content_width (_tmp46_, &_tmp47_); -#line 956 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_convert_to (&_tmp47_, MEASUREMENT_UNIT_INCHES, &_tmp48_); -#line 956 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp49_ = _tmp48_.value; -#line 956 "/home/jens/Source/shotwell/src/Printing.vala" - canvas_width = _tmp49_; -#line 956 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp46_); -#line 958 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp50_ = job; -#line 958 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp51_ = print_job_get_local_settings (_tmp50_); -#line 958 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp52_ = _tmp51_; -#line 958 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_get_content_height (_tmp52_, &_tmp53_); -#line 958 "/home/jens/Source/shotwell/src/Printing.vala" - measurement_convert_to (&_tmp53_, MEASUREMENT_UNIT_INCHES, &_tmp54_); -#line 958 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp55_ = _tmp54_.value; -#line 958 "/home/jens/Source/shotwell/src/Printing.vala" - canvas_height = _tmp55_; -#line 958 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp52_); -#line 6904 "Printing.c" - } -#line 962 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp56_ = photos; -#line 962 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp57_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 962 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp58_ = _tmp57_; -#line 962 "/home/jens/Source/shotwell/src/Printing.vala" - if (page_num < _tmp58_) { -#line 6914 "Printing.c" - Dimensions photo_dimensions = {0}; - GeeList* _tmp59_; - gpointer _tmp60_; - Photo* _tmp61_; - Dimensions _tmp62_ = {0}; - Dimensions _tmp63_; - gdouble photo_aspect_ratio = 0.0; - gdouble canvas_aspect_ratio = 0.0; - gdouble _tmp64_; - gdouble _tmp65_; - gdouble _tmp66_; - gdouble _tmp67_; - gdouble dx = 0.0; - gdouble _tmp71_; - gdouble _tmp72_; - gdouble dy = 0.0; - gdouble _tmp73_; - gdouble _tmp74_; - GeeList* _tmp75_; - gpointer _tmp76_; - Photo* _tmp77_; - gdouble _tmp78_; - gdouble _tmp79_; - gdouble _tmp80_; - gdouble _tmp81_; - PrintJob* _tmp82_; - PrintJob* _tmp83_; - PrintSettings* _tmp84_; - PrintSettings* _tmp85_; - gboolean _tmp86_; -#line 963 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp59_ = photos; -#line 963 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp60_ = gee_list_get (_tmp59_, page_num); -#line 963 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp61_ = (Photo*) _tmp60_; -#line 963 "/home/jens/Source/shotwell/src/Printing.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp62_); -#line 963 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp63_ = _tmp62_; -#line 963 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (_tmp61_); -#line 963 "/home/jens/Source/shotwell/src/Printing.vala" - photo_dimensions = _tmp63_; -#line 964 "/home/jens/Source/shotwell/src/Printing.vala" - photo_aspect_ratio = dimensions_get_aspect_ratio (&photo_dimensions); -#line 965 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp64_ = canvas_width; -#line 965 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp65_ = canvas_height; -#line 965 "/home/jens/Source/shotwell/src/Printing.vala" - canvas_aspect_ratio = ((gdouble) _tmp64_) / _tmp65_; -#line 966 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp66_ = canvas_aspect_ratio; -#line 966 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp67_ = photo_aspect_ratio; -#line 966 "/home/jens/Source/shotwell/src/Printing.vala" - if (floor (_tmp66_) != floor (_tmp67_)) { -#line 6973 "Printing.c" - gdouble canvas_tmp = 0.0; - gdouble _tmp68_; - gdouble _tmp69_; - gdouble _tmp70_; -#line 967 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp68_ = canvas_width; -#line 967 "/home/jens/Source/shotwell/src/Printing.vala" - canvas_tmp = _tmp68_; -#line 968 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp69_ = canvas_height; -#line 968 "/home/jens/Source/shotwell/src/Printing.vala" - canvas_width = _tmp69_; -#line 969 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp70_ = canvas_tmp; -#line 969 "/home/jens/Source/shotwell/src/Printing.vala" - canvas_height = _tmp70_; -#line 6990 "Printing.c" - } -#line 972 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp71_ = page_width; -#line 972 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp72_ = canvas_width; -#line 972 "/home/jens/Source/shotwell/src/Printing.vala" - dx = (_tmp71_ - _tmp72_) / 2.0; -#line 973 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp73_ = page_height; -#line 973 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp74_ = canvas_height; -#line 973 "/home/jens/Source/shotwell/src/Printing.vala" - dy = (_tmp73_ - _tmp74_) / 2.0; -#line 974 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp75_ = photos; -#line 974 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp76_ = gee_list_get (_tmp75_, page_num); -#line 974 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp77_ = (Photo*) _tmp76_; -#line 974 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp78_ = dx; -#line 974 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp79_ = dy; -#line 974 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp80_ = canvas_width; -#line 974 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp81_ = canvas_height; -#line 974 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp82_ = job; -#line 974 "/home/jens/Source/shotwell/src/Printing.vala" - print_manager_fit_image_to_canvas (self, _tmp77_, _tmp78_, _tmp79_, _tmp80_, _tmp81_, TRUE, _tmp82_, job_context); -#line 974 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (_tmp77_); -#line 976 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp83_ = job; -#line 976 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp84_ = print_job_get_local_settings (_tmp83_); -#line 976 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp85_ = _tmp84_; -#line 976 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp86_ = print_settings_is_print_titles_enabled (_tmp85_); -#line 976 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp85_); -#line 976 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp86_) { -#line 7036 "Printing.c" - gdouble _tmp87_; - gdouble _tmp88_; - GeeList* _tmp89_; - gpointer _tmp90_; - Photo* _tmp91_; - gchar* _tmp92_; - gchar* _tmp93_; - PrintJob* _tmp94_; -#line 977 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp87_ = page_width; -#line 977 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp88_ = page_height; -#line 977 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp89_ = photos; -#line 977 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp90_ = gee_list_get (_tmp89_, page_num); -#line 977 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp91_ = (Photo*) _tmp90_; -#line 977 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp92_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp91_, TYPE_DATA_OBJECT, DataObject)); -#line 977 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp93_ = _tmp92_; -#line 977 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp94_ = job; -#line 977 "/home/jens/Source/shotwell/src/Printing.vala" - print_manager_add_title_to_canvas (self, _tmp87_ / 2, _tmp88_, _tmp93_, _tmp94_, job_context); -#line 977 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp93_); -#line 977 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (_tmp91_); -#line 7067 "Printing.c" - } - } -#line 982 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp95_ = self->priv->progress_dialog; -#line 982 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp95_ != NULL) { -#line 7074 "Printing.c" - ProgressDialog* _tmp96_; - GeeList* _tmp97_; - gint _tmp98_; - gint _tmp99_; -#line 983 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp96_ = self->priv->progress_dialog; -#line 983 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp97_ = photos; -#line 983 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp98_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp97_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 983 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp99_ = _tmp98_; -#line 983 "/home/jens/Source/shotwell/src/Printing.vala" - progress_dialog_monitor (_tmp96_, (guint64) page_num, (guint64) _tmp99_, TRUE); -#line 7089 "Printing.c" - } -#line 984 "/home/jens/Source/shotwell/src/Printing.vala" - break; -#line 7093 "Printing.c" - } -#line 945 "/home/jens/Source/shotwell/src/Printing.vala" - case CONTENT_LAYOUT_IMAGE_PER_PAGE: -#line 7097 "Printing.c" - { - PrintLayout layout = 0; - PrintJob* _tmp100_; - PrintSettings* _tmp101_; - PrintSettings* _tmp102_; - PrintLayout _tmp103_; - gint nx = 0; - PrintLayout _tmp104_; - gint ny = 0; - PrintLayout _tmp105_; - gint start = 0; - PrintLayout _tmp106_; - gdouble canvas_width = 0.0; - gdouble _tmp107_; - gint _tmp108_; - gint _tmp109_; - gdouble canvas_height = 0.0; - gdouble _tmp110_; - gint _tmp111_; - gint _tmp112_; -#line 987 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp100_ = job; -#line 987 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp101_ = print_job_get_local_settings (_tmp100_); -#line 987 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp102_ = _tmp101_; -#line 987 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp103_ = (PrintLayout) print_settings_get_image_per_page_selection (_tmp102_); -#line 987 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp102_); -#line 987 "/home/jens/Source/shotwell/src/Printing.vala" - layout = _tmp103_; -#line 988 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp104_ = layout; -#line 988 "/home/jens/Source/shotwell/src/Printing.vala" - nx = print_layout_get_x (_tmp104_); -#line 989 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp105_ = layout; -#line 989 "/home/jens/Source/shotwell/src/Printing.vala" - ny = print_layout_get_y (_tmp105_); -#line 990 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp106_ = layout; -#line 990 "/home/jens/Source/shotwell/src/Printing.vala" - start = page_num * print_layout_get_per_page (_tmp106_); -#line 991 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp107_ = page_width; -#line 991 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp108_ = nx; -#line 991 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp109_ = nx; -#line 991 "/home/jens/Source/shotwell/src/Printing.vala" - canvas_width = ((gdouble) (_tmp107_ - (PRINT_MANAGER_IMAGE_DISTANCE * (_tmp108_ - 1)))) / _tmp109_; -#line 992 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp110_ = page_height; -#line 992 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp111_ = ny; -#line 992 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp112_ = ny; -#line 992 "/home/jens/Source/shotwell/src/Printing.vala" - canvas_height = ((gdouble) (_tmp110_ - (PRINT_MANAGER_IMAGE_DISTANCE * (_tmp111_ - 1)))) / _tmp112_; -#line 7158 "Printing.c" - { - gint y = 0; -#line 993 "/home/jens/Source/shotwell/src/Printing.vala" - y = 0; -#line 7163 "Printing.c" - { - gboolean _tmp113_ = FALSE; -#line 993 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp113_ = TRUE; -#line 993 "/home/jens/Source/shotwell/src/Printing.vala" - while (TRUE) { -#line 7170 "Printing.c" - gint _tmp115_; - gint _tmp116_; -#line 993 "/home/jens/Source/shotwell/src/Printing.vala" - if (!_tmp113_) { -#line 7175 "Printing.c" - gint _tmp114_; -#line 993 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp114_ = y; -#line 993 "/home/jens/Source/shotwell/src/Printing.vala" - y = _tmp114_ + 1; -#line 7181 "Printing.c" - } -#line 993 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp113_ = FALSE; -#line 993 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp115_ = y; -#line 993 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp116_ = ny; -#line 993 "/home/jens/Source/shotwell/src/Printing.vala" - if (!(_tmp115_ < _tmp116_)) { -#line 993 "/home/jens/Source/shotwell/src/Printing.vala" - break; -#line 7193 "Printing.c" - } - { - gint x = 0; -#line 994 "/home/jens/Source/shotwell/src/Printing.vala" - x = 0; -#line 7199 "Printing.c" - { - gboolean _tmp117_ = FALSE; -#line 994 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp117_ = TRUE; -#line 994 "/home/jens/Source/shotwell/src/Printing.vala" - while (TRUE) { -#line 7206 "Printing.c" - gint _tmp119_; - gint _tmp120_; - gint i = 0; - gint _tmp121_; - gint _tmp122_; - gint _tmp123_; - gint _tmp124_; - gint _tmp125_; - GeeList* _tmp126_; - gint _tmp127_; - gint _tmp128_; - ProgressDialog* _tmp159_; -#line 994 "/home/jens/Source/shotwell/src/Printing.vala" - if (!_tmp117_) { -#line 7221 "Printing.c" - gint _tmp118_; -#line 994 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp118_ = x; -#line 994 "/home/jens/Source/shotwell/src/Printing.vala" - x = _tmp118_ + 1; -#line 7227 "Printing.c" - } -#line 994 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp117_ = FALSE; -#line 994 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp119_ = x; -#line 994 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp120_ = nx; -#line 994 "/home/jens/Source/shotwell/src/Printing.vala" - if (!(_tmp119_ < _tmp120_)) { -#line 994 "/home/jens/Source/shotwell/src/Printing.vala" - break; -#line 7239 "Printing.c" - } -#line 995 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp121_ = start; -#line 995 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp122_ = y; -#line 995 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp123_ = nx; -#line 995 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp124_ = x; -#line 995 "/home/jens/Source/shotwell/src/Printing.vala" - i = (_tmp121_ + (_tmp122_ * _tmp123_)) + _tmp124_; -#line 996 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp125_ = i; -#line 996 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp126_ = photos; -#line 996 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp127_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp126_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 996 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp128_ = _tmp127_; -#line 996 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp125_ < _tmp128_) { -#line 7261 "Printing.c" - gdouble dx = 0.0; - gint _tmp129_; - gdouble _tmp130_; - gint _tmp131_; - gdouble dy = 0.0; - gint _tmp132_; - gdouble _tmp133_; - gint _tmp134_; - GeeList* _tmp135_; - gint _tmp136_; - gpointer _tmp137_; - Photo* _tmp138_; - gdouble _tmp139_; - gdouble _tmp140_; - gdouble _tmp141_; - gdouble _tmp142_; - PrintJob* _tmp143_; - PrintJob* _tmp144_; - PrintSettings* _tmp145_; - PrintSettings* _tmp146_; - gboolean _tmp147_; -#line 997 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp129_ = x; -#line 997 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp130_ = canvas_width; -#line 997 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp131_ = x; -#line 997 "/home/jens/Source/shotwell/src/Printing.vala" - dx = (_tmp129_ * _tmp130_) + (_tmp131_ * PRINT_MANAGER_IMAGE_DISTANCE); -#line 998 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp132_ = y; -#line 998 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp133_ = canvas_height; -#line 998 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp134_ = y; -#line 998 "/home/jens/Source/shotwell/src/Printing.vala" - dy = (_tmp132_ * _tmp133_) + (_tmp134_ * PRINT_MANAGER_IMAGE_DISTANCE); -#line 999 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp135_ = photos; -#line 999 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp136_ = i; -#line 999 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp137_ = gee_list_get (_tmp135_, _tmp136_); -#line 999 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp138_ = (Photo*) _tmp137_; -#line 999 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp139_ = dx; -#line 999 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp140_ = dy; -#line 999 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp141_ = canvas_width; -#line 999 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp142_ = canvas_height; -#line 999 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp143_ = job; -#line 999 "/home/jens/Source/shotwell/src/Printing.vala" - print_manager_fit_image_to_canvas (self, _tmp138_, _tmp139_, _tmp140_, _tmp141_, _tmp142_, FALSE, _tmp143_, job_context); -#line 999 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (_tmp138_); -#line 1001 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp144_ = job; -#line 1001 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp145_ = print_job_get_local_settings (_tmp144_); -#line 1001 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp146_ = _tmp145_; -#line 1001 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp147_ = print_settings_is_print_titles_enabled (_tmp146_); -#line 1001 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp146_); -#line 1001 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp147_) { -#line 7333 "Printing.c" - gdouble _tmp148_; - gdouble _tmp149_; - gdouble _tmp150_; - gdouble _tmp151_; - GeeList* _tmp152_; - gint _tmp153_; - gpointer _tmp154_; - Photo* _tmp155_; - gchar* _tmp156_; - gchar* _tmp157_; - PrintJob* _tmp158_; -#line 1002 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp148_ = dx; -#line 1002 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp149_ = canvas_width; -#line 1002 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp150_ = dy; -#line 1002 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp151_ = canvas_height; -#line 1002 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp152_ = photos; -#line 1002 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp153_ = i; -#line 1002 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp154_ = gee_list_get (_tmp152_, _tmp153_); -#line 1002 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp155_ = (Photo*) _tmp154_; -#line 1002 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp156_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp155_, TYPE_DATA_OBJECT, DataObject)); -#line 1002 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp157_ = _tmp156_; -#line 1002 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp158_ = job; -#line 1002 "/home/jens/Source/shotwell/src/Printing.vala" - print_manager_add_title_to_canvas (self, _tmp148_ + (_tmp149_ / 2), _tmp150_ + _tmp151_, _tmp157_, _tmp158_, job_context); -#line 1002 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp157_); -#line 1002 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (_tmp155_); -#line 7373 "Printing.c" - } - } -#line 1007 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp159_ = self->priv->progress_dialog; -#line 1007 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp159_ != NULL) { -#line 7380 "Printing.c" - ProgressDialog* _tmp160_; - gint _tmp161_; - GeeList* _tmp162_; - gint _tmp163_; - gint _tmp164_; -#line 1008 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp160_ = self->priv->progress_dialog; -#line 1008 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp161_ = i; -#line 1008 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp162_ = photos; -#line 1008 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp163_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp162_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1008 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp164_ = _tmp163_; -#line 1008 "/home/jens/Source/shotwell/src/Printing.vala" - progress_dialog_monitor (_tmp160_, (guint64) _tmp161_, (guint64) _tmp164_, TRUE); -#line 7398 "Printing.c" - } - } - } - } - } - } - } -#line 1011 "/home/jens/Source/shotwell/src/Printing.vala" - break; -#line 7408 "Printing.c" - } - default: - { -#line 1014 "/home/jens/Source/shotwell/src/Printing.vala" - g_error ("Printing.vala:1014: unknown or unsupported layout mode"); -#line 7414 "Printing.c" - } - } -#line 919 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (photos); -#line 919 "/home/jens/Source/shotwell/src/Printing.vala" - _cairo_destroy0 (dc); -#line 919 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (page_setup); -#line 919 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (job); -#line 7425 "Printing.c" -} - - -static void -_print_manager_on_custom_widget_apply_gtk_print_operation_custom_widget_apply (GtkPrintOperation* _sender, - GtkWidget* widget, - gpointer self) -{ -#line 1020 "/home/jens/Source/shotwell/src/Printing.vala" - print_manager_on_custom_widget_apply ((PrintManager*) self, widget); -#line 7436 "Printing.c" -} - - -static GObject* -print_manager_on_create_custom_widget (PrintManager* self, - GtkPrintOperation* emitting_object) -{ - GObject* result = NULL; - CustomPrintTab* _tmp0_; - CustomPrintTab* _tmp1_; -#line 1018 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_PRINT_MANAGER (self), NULL); -#line 1018 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (GTK_IS_PRINT_OPERATION (emitting_object), NULL); -#line 1019 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = custom_print_tab_new (G_TYPE_CHECK_INSTANCE_CAST (emitting_object, TYPE_PRINT_JOB, PrintJob)); -#line 1019 "/home/jens/Source/shotwell/src/Printing.vala" - g_object_ref_sink (_tmp0_); -#line 1019 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->custom_tab); -#line 1019 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->custom_tab = _tmp0_; -#line 1020 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (emitting_object, TYPE_PRINT_JOB, PrintJob), gtk_print_operation_get_type (), GtkPrintOperation), "custom-widget-apply", (GCallback) _print_manager_on_custom_widget_apply_gtk_print_operation_custom_widget_apply, self); -#line 1021 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = self->priv->custom_tab; -#line 1021 "/home/jens/Source/shotwell/src/Printing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, G_TYPE_OBJECT, GObject); -#line 1021 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 7467 "Printing.c" -} - - -static void -print_manager_on_custom_widget_apply (PrintManager* self, - GtkWidget* custom_widget) -{ - CustomPrintTab* tab = NULL; - CustomPrintTab* _tmp0_; - PrintJob* _tmp1_; - PrintJob* _tmp2_; - PrintSettings* _tmp3_; - PrintSettings* _tmp4_; - PrintSettings* _tmp5_; - PrintSettings* _tmp6_; -#line 1024 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_MANAGER (self)); -#line 1024 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (GTK_IS_WIDGET (custom_widget)); -#line 1025 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (custom_widget, TYPE_CUSTOM_PRINT_TAB, CustomPrintTab)); -#line 1025 "/home/jens/Source/shotwell/src/Printing.vala" - tab = _tmp0_; -#line 1026 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = custom_print_tab_get_source_job (tab); -#line 1026 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = _tmp1_; -#line 1026 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = custom_print_tab_get_local_settings (tab); -#line 1026 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = _tmp3_; -#line 1026 "/home/jens/Source/shotwell/src/Printing.vala" - print_job_set_local_settings (_tmp2_, _tmp4_); -#line 1026 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp4_); -#line 1026 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (_tmp2_); -#line 1027 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = custom_print_tab_get_local_settings (tab); -#line 1027 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = _tmp5_; -#line 1027 "/home/jens/Source/shotwell/src/Printing.vala" - print_manager_set_global_settings (self, _tmp6_); -#line 1027 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp6_); -#line 1024 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (tab); -#line 7515 "Printing.c" -} - - -static void -print_manager_fit_image_to_canvas (PrintManager* self, - Photo* photo, - gdouble x, - gdouble y, - gdouble canvas_width, - gdouble canvas_height, - gboolean crop, - PrintJob* job, - GtkPrintContext* job_context) -{ - cairo_t* dc = NULL; - cairo_t* _tmp0_; - cairo_t* _tmp1_; - Dimensions photo_dimensions = {0}; - Dimensions _tmp2_ = {0}; - gdouble photo_aspect_ratio = 0.0; - gdouble canvas_aspect_ratio = 0.0; - gdouble target_width = 0.0; - gdouble target_height = 0.0; - gdouble dpi = 0.0; - PrintSettings* _tmp3_; - PrintSettings* _tmp4_; - gdouble _tmp5_; - gdouble x_offset = 0.0; - gdouble _tmp14_; - gdouble y_offset = 0.0; - gdouble _tmp15_; - cairo_t* _tmp16_; - cairo_t* _tmp17_; - gdouble _tmp18_; - gdouble _tmp19_; - gint w = 0; - gdouble _tmp20_; - gint h = 0; - gdouble _tmp21_; - Dimensions viewport = {0}; - gint _tmp22_; - gint _tmp23_; - cairo_t* _tmp72_; - GError * _inner_error_ = NULL; -#line 1030 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_MANAGER (self)); -#line 1030 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 1030 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_JOB (job)); -#line 1030 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (GTK_IS_PRINT_CONTEXT (job_context)); -#line 1031 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = gtk_print_context_get_cairo_context (job_context); -#line 1031 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = _cairo_reference0 (_tmp0_); -#line 1031 "/home/jens/Source/shotwell/src/Printing.vala" - dc = _tmp1_; -#line 1032 "/home/jens/Source/shotwell/src/Printing.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp2_); -#line 1032 "/home/jens/Source/shotwell/src/Printing.vala" - photo_dimensions = _tmp2_; -#line 1033 "/home/jens/Source/shotwell/src/Printing.vala" - photo_aspect_ratio = dimensions_get_aspect_ratio (&photo_dimensions); -#line 1034 "/home/jens/Source/shotwell/src/Printing.vala" - canvas_aspect_ratio = ((gdouble) canvas_width) / canvas_height; -#line 1036 "/home/jens/Source/shotwell/src/Printing.vala" - target_width = 0.0; -#line 1037 "/home/jens/Source/shotwell/src/Printing.vala" - target_height = 0.0; -#line 1038 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = print_job_get_local_settings (job); -#line 1038 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = _tmp3_; -#line 1038 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = (gdouble) print_settings_get_content_ppi (_tmp4_); -#line 1038 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp4_); -#line 1038 "/home/jens/Source/shotwell/src/Printing.vala" - dpi = _tmp5_; -#line 1040 "/home/jens/Source/shotwell/src/Printing.vala" - if (!crop) { -#line 7598 "Printing.c" - gdouble _tmp6_; - gdouble _tmp7_; - gdouble _tmp12_; - gdouble _tmp13_; -#line 1041 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = canvas_aspect_ratio; -#line 1041 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = photo_aspect_ratio; -#line 1041 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp6_ < _tmp7_) { -#line 7609 "Printing.c" - gdouble _tmp8_; - gdouble _tmp9_; -#line 1042 "/home/jens/Source/shotwell/src/Printing.vala" - target_width = canvas_width; -#line 1043 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = target_width; -#line 1043 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = photo_aspect_ratio; -#line 1043 "/home/jens/Source/shotwell/src/Printing.vala" - target_height = _tmp8_ * (1.0 / _tmp9_); -#line 7620 "Printing.c" - } else { - gdouble _tmp10_; - gdouble _tmp11_; -#line 1045 "/home/jens/Source/shotwell/src/Printing.vala" - target_height = canvas_height; -#line 1046 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp10_ = target_height; -#line 1046 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp11_ = photo_aspect_ratio; -#line 1046 "/home/jens/Source/shotwell/src/Printing.vala" - target_width = _tmp10_ * _tmp11_; -#line 7632 "Printing.c" - } -#line 1048 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp12_ = target_width; -#line 1048 "/home/jens/Source/shotwell/src/Printing.vala" - x = x + ((canvas_width - _tmp12_) / 2.0); -#line 1049 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp13_ = target_height; -#line 1049 "/home/jens/Source/shotwell/src/Printing.vala" - y = y + ((canvas_height - _tmp13_) / 2.0); -#line 7642 "Printing.c" - } -#line 1052 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp14_ = dpi; -#line 1052 "/home/jens/Source/shotwell/src/Printing.vala" - x_offset = _tmp14_ * x; -#line 1053 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp15_ = dpi; -#line 1053 "/home/jens/Source/shotwell/src/Printing.vala" - y_offset = _tmp15_ * y; -#line 1054 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp16_ = dc; -#line 1054 "/home/jens/Source/shotwell/src/Printing.vala" - cairo_save (_tmp16_); -#line 1055 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp17_ = dc; -#line 1055 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp18_ = x_offset; -#line 1055 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp19_ = y_offset; -#line 1055 "/home/jens/Source/shotwell/src/Printing.vala" - cairo_translate (_tmp17_, _tmp18_, _tmp19_); -#line 1057 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp20_ = dpi; -#line 1057 "/home/jens/Source/shotwell/src/Printing.vala" - w = (gint) (_tmp20_ * canvas_width); -#line 1058 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp21_ = dpi; -#line 1058 "/home/jens/Source/shotwell/src/Printing.vala" - h = (gint) (_tmp21_ * canvas_height); -#line 1059 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp22_ = w; -#line 1059 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp23_ = h; -#line 1059 "/home/jens/Source/shotwell/src/Printing.vala" - dimensions_init (&viewport, _tmp22_, _tmp23_); -#line 7678 "Printing.c" - { - gboolean _tmp24_ = FALSE; - cairo_t* _tmp67_; -#line 1062 "/home/jens/Source/shotwell/src/Printing.vala" - if (crop) { -#line 7684 "Printing.c" - gdouble _tmp25_; - gdouble _tmp26_; -#line 1062 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp25_ = canvas_aspect_ratio; -#line 1062 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp26_ = photo_aspect_ratio; -#line 1062 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp24_ = !print_manager_are_approximately_equal (self, _tmp25_, _tmp26_); -#line 7693 "Printing.c" - } else { -#line 1062 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp24_ = FALSE; -#line 7697 "Printing.c" - } -#line 1062 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp24_) { -#line 7701 "Printing.c" - Scaling pixbuf_scaling = {0}; - Dimensions _tmp27_; - Scaling _tmp28_ = {0}; - GdkPixbuf* photo_pixbuf = NULL; - Scaling _tmp29_; - GdkPixbuf* _tmp30_; - Dimensions scaled_photo_dimensions = {0}; - GdkPixbuf* _tmp31_; - Dimensions _tmp32_ = {0}; - gint shave_vertical = 0; - gint shave_horizontal = 0; - gdouble _tmp33_; - gdouble _tmp34_; - GdkPixbuf* shaved_pixbuf = NULL; - GdkPixbuf* _tmp45_; - gint _tmp46_; - gint _tmp47_; - Dimensions _tmp48_; - gint _tmp49_; - gint _tmp50_; - Dimensions _tmp51_; - gint _tmp52_; - gint _tmp53_; - GdkPixbuf* _tmp54_; - GdkPixbuf* _tmp55_; - GdkPixbuf* _tmp56_; - cairo_t* _tmp57_; - GdkPixbuf* _tmp58_; -#line 1063 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp27_ = viewport; -#line 1063 "/home/jens/Source/shotwell/src/Printing.vala" - scaling_to_fill_viewport (&_tmp27_, &_tmp28_); -#line 1063 "/home/jens/Source/shotwell/src/Printing.vala" - pixbuf_scaling = _tmp28_; -#line 1064 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp29_ = pixbuf_scaling; -#line 1064 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp30_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp29_, &_inner_error_); -#line 1064 "/home/jens/Source/shotwell/src/Printing.vala" - photo_pixbuf = _tmp30_; -#line 1064 "/home/jens/Source/shotwell/src/Printing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7744 "Printing.c" - goto __catch479_g_error; - } -#line 1065 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp31_ = photo_pixbuf; -#line 1065 "/home/jens/Source/shotwell/src/Printing.vala" - dimensions_for_pixbuf (_tmp31_, &_tmp32_); -#line 1065 "/home/jens/Source/shotwell/src/Printing.vala" - scaled_photo_dimensions = _tmp32_; -#line 1066 "/home/jens/Source/shotwell/src/Printing.vala" - shave_vertical = 0; -#line 1067 "/home/jens/Source/shotwell/src/Printing.vala" - shave_horizontal = 0; -#line 1068 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp33_ = canvas_aspect_ratio; -#line 1068 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp34_ = photo_aspect_ratio; -#line 1068 "/home/jens/Source/shotwell/src/Printing.vala" - if (_tmp33_ < _tmp34_) { -#line 7763 "Printing.c" - Dimensions _tmp35_; - gint _tmp36_; - Dimensions _tmp37_; - gint _tmp38_; - gdouble _tmp39_; -#line 1069 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp35_ = scaled_photo_dimensions; -#line 1069 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp36_ = _tmp35_.width; -#line 1069 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp37_ = scaled_photo_dimensions; -#line 1069 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp38_ = _tmp37_.height; -#line 1069 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp39_ = canvas_aspect_ratio; -#line 1069 "/home/jens/Source/shotwell/src/Printing.vala" - shave_vertical = (gint) ((_tmp36_ - (_tmp38_ * _tmp39_)) / 2.0); -#line 7781 "Printing.c" - } else { - Dimensions _tmp40_; - gint _tmp41_; - Dimensions _tmp42_; - gint _tmp43_; - gdouble _tmp44_; -#line 1071 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp40_ = scaled_photo_dimensions; -#line 1071 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp41_ = _tmp40_.height; -#line 1071 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp42_ = scaled_photo_dimensions; -#line 1071 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp43_ = _tmp42_.width; -#line 1071 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp44_ = canvas_aspect_ratio; -#line 1071 "/home/jens/Source/shotwell/src/Printing.vala" - shave_horizontal = (gint) ((_tmp41_ - (_tmp43_ * (1.0 / _tmp44_))) / 2.0); -#line 7800 "Printing.c" - } -#line 1073 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp45_ = photo_pixbuf; -#line 1073 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp46_ = shave_vertical; -#line 1073 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp47_ = shave_horizontal; -#line 1073 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp48_ = scaled_photo_dimensions; -#line 1073 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp49_ = _tmp48_.width; -#line 1073 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp50_ = shave_vertical; -#line 1073 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp51_ = scaled_photo_dimensions; -#line 1073 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp52_ = _tmp51_.height; -#line 1073 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp53_ = shave_horizontal; -#line 1073 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp54_ = gdk_pixbuf_new_subpixbuf (_tmp45_, _tmp46_, _tmp47_, _tmp49_ - (2 * _tmp50_), _tmp52_ - (2 * _tmp53_)); -#line 1073 "/home/jens/Source/shotwell/src/Printing.vala" - shaved_pixbuf = _tmp54_; -#line 1075 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp55_ = shaved_pixbuf; -#line 1075 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp56_ = scaling_perform_on_pixbuf (&pixbuf_scaling, _tmp55_, GDK_INTERP_HYPER, TRUE); -#line 1075 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (photo_pixbuf); -#line 1075 "/home/jens/Source/shotwell/src/Printing.vala" - photo_pixbuf = _tmp56_; -#line 1076 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp57_ = dc; -#line 1076 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp58_ = photo_pixbuf; -#line 1076 "/home/jens/Source/shotwell/src/Printing.vala" - gdk_cairo_set_source_pixbuf (_tmp57_, _tmp58_, 0.0, 0.0); -#line 1062 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (shaved_pixbuf); -#line 1062 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (photo_pixbuf); -#line 7842 "Printing.c" - } else { - Scaling pixbuf_scaling = {0}; - Dimensions _tmp59_; - Scaling _tmp60_ = {0}; - GdkPixbuf* photo_pixbuf = NULL; - Scaling _tmp61_; - GdkPixbuf* _tmp62_; - GdkPixbuf* _tmp63_; - GdkPixbuf* _tmp64_; - cairo_t* _tmp65_; - GdkPixbuf* _tmp66_; -#line 1078 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp59_ = viewport; -#line 1078 "/home/jens/Source/shotwell/src/Printing.vala" - scaling_for_viewport (&_tmp59_, TRUE, &_tmp60_); -#line 1078 "/home/jens/Source/shotwell/src/Printing.vala" - pixbuf_scaling = _tmp60_; -#line 1079 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp61_ = pixbuf_scaling; -#line 1079 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp62_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp61_, &_inner_error_); -#line 1079 "/home/jens/Source/shotwell/src/Printing.vala" - photo_pixbuf = _tmp62_; -#line 1079 "/home/jens/Source/shotwell/src/Printing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7868 "Printing.c" - goto __catch479_g_error; - } -#line 1080 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp63_ = photo_pixbuf; -#line 1080 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp64_ = scaling_perform_on_pixbuf (&pixbuf_scaling, _tmp63_, GDK_INTERP_HYPER, TRUE); -#line 1080 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (photo_pixbuf); -#line 1080 "/home/jens/Source/shotwell/src/Printing.vala" - photo_pixbuf = _tmp64_; -#line 1081 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp65_ = dc; -#line 1081 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp66_ = photo_pixbuf; -#line 1081 "/home/jens/Source/shotwell/src/Printing.vala" - gdk_cairo_set_source_pixbuf (_tmp65_, _tmp66_, 0.0, 0.0); -#line 1062 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (photo_pixbuf); -#line 7887 "Printing.c" - } -#line 1083 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp67_ = dc; -#line 1083 "/home/jens/Source/shotwell/src/Printing.vala" - cairo_paint (_tmp67_); -#line 7893 "Printing.c" - } - goto __finally479; - __catch479_g_error: - { - GError* e = NULL; - GError* _tmp68_; - const gchar* _tmp69_; - gchar* _tmp70_; - gchar* _tmp71_; -#line 1061 "/home/jens/Source/shotwell/src/Printing.vala" - e = _inner_error_; -#line 1061 "/home/jens/Source/shotwell/src/Printing.vala" - _inner_error_ = NULL; -#line 1086 "/home/jens/Source/shotwell/src/Printing.vala" - gtk_print_operation_cancel (G_TYPE_CHECK_INSTANCE_CAST (job, gtk_print_operation_get_type (), GtkPrintOperation)); -#line 1087 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp68_ = e; -#line 1087 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp69_ = _tmp68_->message; -#line 1087 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp70_ = g_strdup_printf (_ ("Unable to print photo:\n\n%s"), _tmp69_); -#line 1087 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp71_ = _tmp70_; -#line 1087 "/home/jens/Source/shotwell/src/Printing.vala" - app_window_error_message (_tmp71_, NULL); -#line 1087 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp71_); -#line 1061 "/home/jens/Source/shotwell/src/Printing.vala" - _g_error_free0 (e); -#line 7923 "Printing.c" - } - __finally479: -#line 1061 "/home/jens/Source/shotwell/src/Printing.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1061 "/home/jens/Source/shotwell/src/Printing.vala" - _cairo_destroy0 (dc); -#line 1061 "/home/jens/Source/shotwell/src/Printing.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1061 "/home/jens/Source/shotwell/src/Printing.vala" - g_clear_error (&_inner_error_); -#line 1061 "/home/jens/Source/shotwell/src/Printing.vala" - return; -#line 7936 "Printing.c" - } -#line 1089 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp72_ = dc; -#line 1089 "/home/jens/Source/shotwell/src/Printing.vala" - cairo_restore (_tmp72_); -#line 1030 "/home/jens/Source/shotwell/src/Printing.vala" - _cairo_destroy0 (dc); -#line 7944 "Printing.c" -} - - -static void -_vala_PangoFontDescription_free (PangoFontDescription* self) -{ -#line 1092 "/home/jens/Source/shotwell/src/Printing.vala" - g_boxed_free (pango_font_description_get_type (), self); -#line 7953 "Printing.c" -} - - -static void -print_manager_add_title_to_canvas (PrintManager* self, - gdouble x, - gdouble y, - const gchar* title, - PrintJob* job, - GtkPrintContext* job_context) -{ - cairo_t* dc = NULL; - cairo_t* _tmp0_; - cairo_t* _tmp1_; - gdouble dpi = 0.0; - PrintSettings* _tmp2_; - PrintSettings* _tmp3_; - gdouble _tmp4_; - PangoFontDescription* title_font_description = NULL; - PrintSettings* _tmp5_; - PrintSettings* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - PangoFontDescription* _tmp9_; - PangoFontDescription* _tmp10_; - PangoLayout* title_layout = NULL; - PangoLayout* _tmp11_; - PangoContext* context = NULL; - PangoContext* _tmp12_; - PangoContext* _tmp13_; - gint title_width = 0; - gint title_height = 0; - gint _tmp14_ = 0; - gint _tmp15_ = 0; - gdouble tx = 0.0; - gdouble ty = 0.0; -#line 1092 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_MANAGER (self)); -#line 1092 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (title != NULL); -#line 1092 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_JOB (job)); -#line 1092 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (GTK_IS_PRINT_CONTEXT (job_context)); -#line 1093 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = gtk_print_context_get_cairo_context (job_context); -#line 1093 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = _cairo_reference0 (_tmp0_); -#line 1093 "/home/jens/Source/shotwell/src/Printing.vala" - dc = _tmp1_; -#line 1094 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp2_ = print_job_get_local_settings (job); -#line 1094 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp3_ = _tmp2_; -#line 1094 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp4_ = (gdouble) print_settings_get_content_ppi (_tmp3_); -#line 1094 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp3_); -#line 1094 "/home/jens/Source/shotwell/src/Printing.vala" - dpi = _tmp4_; -#line 1095 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp5_ = print_job_get_local_settings (job); -#line 1095 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp6_ = _tmp5_; -#line 1095 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp7_ = print_settings_get_print_titles_font (_tmp6_); -#line 1095 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp8_ = _tmp7_; -#line 1095 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp9_ = pango_font_description_from_string (_tmp8_); -#line 1095 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp10_ = _tmp9_; -#line 1095 "/home/jens/Source/shotwell/src/Printing.vala" - _g_free0 (_tmp8_); -#line 1095 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (_tmp6_); -#line 1095 "/home/jens/Source/shotwell/src/Printing.vala" - title_font_description = _tmp10_; -#line 1096 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp11_ = pango_cairo_create_layout (dc); -#line 1096 "/home/jens/Source/shotwell/src/Printing.vala" - title_layout = _tmp11_; -#line 1097 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp12_ = pango_layout_get_context (title_layout); -#line 1097 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp13_ = _g_object_ref0 (_tmp12_); -#line 1097 "/home/jens/Source/shotwell/src/Printing.vala" - context = _tmp13_; -#line 1098 "/home/jens/Source/shotwell/src/Printing.vala" - pango_cairo_context_set_resolution (context, dpi); -#line 1099 "/home/jens/Source/shotwell/src/Printing.vala" - pango_layout_set_font_description (title_layout, title_font_description); -#line 1100 "/home/jens/Source/shotwell/src/Printing.vala" - pango_layout_set_text (title_layout, title, -1); -#line 1102 "/home/jens/Source/shotwell/src/Printing.vala" - pango_layout_get_pixel_size (title_layout, &_tmp14_, &_tmp15_); -#line 1102 "/home/jens/Source/shotwell/src/Printing.vala" - title_width = _tmp14_; -#line 1102 "/home/jens/Source/shotwell/src/Printing.vala" - title_height = _tmp15_; -#line 1103 "/home/jens/Source/shotwell/src/Printing.vala" - tx = (dpi * x) - (title_width / 2); -#line 1104 "/home/jens/Source/shotwell/src/Printing.vala" - ty = (dpi * y) - title_height; -#line 1107 "/home/jens/Source/shotwell/src/Printing.vala" - cairo_rectangle (dc, tx - 10, ty + 2, (gdouble) (title_width + 20), (gdouble) title_height); -#line 1108 "/home/jens/Source/shotwell/src/Printing.vala" - cairo_set_source_rgba (dc, (gdouble) 1, (gdouble) 1, (gdouble) 1, (gdouble) 1); -#line 1109 "/home/jens/Source/shotwell/src/Printing.vala" - cairo_set_line_width (dc, (gdouble) 2); -#line 1110 "/home/jens/Source/shotwell/src/Printing.vala" - cairo_stroke_preserve (dc); -#line 1111 "/home/jens/Source/shotwell/src/Printing.vala" - cairo_set_source_rgba (dc, (gdouble) 1, (gdouble) 1, (gdouble) 1, 0.5); -#line 1112 "/home/jens/Source/shotwell/src/Printing.vala" - cairo_fill (dc); -#line 1113 "/home/jens/Source/shotwell/src/Printing.vala" - cairo_set_source_rgba (dc, (gdouble) 0, (gdouble) 0, (gdouble) 0, (gdouble) 1); -#line 1115 "/home/jens/Source/shotwell/src/Printing.vala" - cairo_move_to (dc, tx, ty + 2); -#line 1116 "/home/jens/Source/shotwell/src/Printing.vala" - pango_cairo_show_layout (dc, title_layout); -#line 1092 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (context); -#line 1092 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (title_layout); -#line 1092 "/home/jens/Source/shotwell/src/Printing.vala" - __vala_PangoFontDescription_free0 (title_font_description); -#line 1092 "/home/jens/Source/shotwell/src/Printing.vala" - _cairo_destroy0 (dc); -#line 8084 "Printing.c" -} - - -static gboolean -print_manager_are_approximately_equal (PrintManager* self, - gdouble val1, - gdouble val2) -{ - gboolean result = FALSE; - gdouble accept_err = 0.0; -#line 1119 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_PRINT_MANAGER (self), FALSE); -#line 1120 "/home/jens/Source/shotwell/src/Printing.vala" - accept_err = 0.005; -#line 1121 "/home/jens/Source/shotwell/src/Printing.vala" - result = fabs (val1 - val2) <= accept_err; -#line 1121 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 8103 "Printing.c" -} - - -PrintSettings* -print_manager_get_global_settings (PrintManager* self) -{ - PrintSettings* result = NULL; - PrintSettings* _tmp0_; - PrintSettings* _tmp1_; -#line 1124 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (IS_PRINT_MANAGER (self), NULL); -#line 1125 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = self->priv->settings; -#line 1125 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp1_ = _print_settings_ref0 (_tmp0_); -#line 1125 "/home/jens/Source/shotwell/src/Printing.vala" - result = _tmp1_; -#line 1125 "/home/jens/Source/shotwell/src/Printing.vala" - return result; -#line 8123 "Printing.c" -} - - -void -print_manager_set_global_settings (PrintManager* self, - PrintSettings* settings) -{ - PrintSettings* _tmp0_; -#line 1128 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_MANAGER (self)); -#line 1128 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (IS_PRINT_SETTINGS (settings)); -#line 1129 "/home/jens/Source/shotwell/src/Printing.vala" - _tmp0_ = _print_settings_ref0 (settings); -#line 1129 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (self->priv->settings); -#line 1129 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->settings = _tmp0_; -#line 1130 "/home/jens/Source/shotwell/src/Printing.vala" - print_settings_save (settings); -#line 8144 "Printing.c" -} - - -static void -value_print_manager_init (GValue* value) -{ -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = NULL; -#line 8153 "Printing.c" -} - - -static void -value_print_manager_free_value (GValue* value) -{ -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - if (value->data[0].v_pointer) { -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - print_manager_unref (value->data[0].v_pointer); -#line 8164 "Printing.c" - } -} - - -static void -value_print_manager_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - if (src_value->data[0].v_pointer) { -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - dest_value->data[0].v_pointer = print_manager_ref (src_value->data[0].v_pointer); -#line 8177 "Printing.c" - } else { -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - dest_value->data[0].v_pointer = NULL; -#line 8181 "Printing.c" - } -} - - -static gpointer -value_print_manager_peek_pointer (const GValue* value) -{ -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - return value->data[0].v_pointer; -#line 8191 "Printing.c" -} - - -static gchar* -value_print_manager_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - if (collect_values[0].v_pointer) { -#line 8203 "Printing.c" - PrintManager * object; - object = collect_values[0].v_pointer; -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - if (object->parent_instance.g_class == NULL) { -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 8210 "Printing.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 8214 "Printing.c" - } -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = print_manager_ref (object); -#line 8218 "Printing.c" - } else { -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = NULL; -#line 8222 "Printing.c" - } -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - return NULL; -#line 8226 "Printing.c" -} - - -static gchar* -value_print_manager_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PrintManager ** object_p; - object_p = collect_values[0].v_pointer; -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - if (!object_p) { -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 8242 "Printing.c" - } -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - if (!value->data[0].v_pointer) { -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - *object_p = NULL; -#line 8248 "Printing.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - *object_p = value->data[0].v_pointer; -#line 8252 "Printing.c" - } else { -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - *object_p = print_manager_ref (value->data[0].v_pointer); -#line 8256 "Printing.c" - } -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - return NULL; -#line 8260 "Printing.c" -} - - -GParamSpec* -param_spec_print_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecPrintManager* spec; -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_PRINT_MANAGER), NULL); -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - return G_PARAM_SPEC (spec); -#line 8280 "Printing.c" -} - - -gpointer -value_get_print_manager (const GValue* value) -{ -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PRINT_MANAGER), NULL); -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - return value->data[0].v_pointer; -#line 8291 "Printing.c" -} - - -void -value_set_print_manager (GValue* value, - gpointer v_object) -{ - PrintManager * old; -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PRINT_MANAGER)); -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - old = value->data[0].v_pointer; -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - if (v_object) { -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PRINT_MANAGER)); -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = v_object; -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - print_manager_ref (value->data[0].v_pointer); -#line 8314 "Printing.c" - } else { -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = NULL; -#line 8318 "Printing.c" - } -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - if (old) { -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - print_manager_unref (old); -#line 8324 "Printing.c" - } -} - - -void -value_take_print_manager (GValue* value, - gpointer v_object) -{ - PrintManager * old; -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PRINT_MANAGER)); -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - old = value->data[0].v_pointer; -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - if (v_object) { -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PRINT_MANAGER)); -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = v_object; -#line 8346 "Printing.c" - } else { -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - value->data[0].v_pointer = NULL; -#line 8350 "Printing.c" - } -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - if (old) { -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - print_manager_unref (old); -#line 8356 "Printing.c" - } -} - - -static void -print_manager_class_init (PrintManagerClass * klass) -{ -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - print_manager_parent_class = g_type_class_peek_parent (klass); -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - ((PrintManagerClass *) klass)->finalize = print_manager_finalize; -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - g_type_class_add_private (klass, sizeof (PrintManagerPrivate)); -#line 8370 "Printing.c" -} - - -static void -print_manager_instance_init (PrintManager * self) -{ -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv = PRINT_MANAGER_GET_PRIVATE (self); -#line 779 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->progress_dialog = NULL; -#line 780 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->cancellable = NULL; -#line 781 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->standard_sizes = NULL; -#line 781 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->standard_sizes_length1 = 0; -#line 781 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->_standard_sizes_size_ = self->priv->standard_sizes_length1; -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - self->ref_count = 1; -#line 8391 "Printing.c" -} - - -static void -print_manager_finalize (PrintManager * obj) -{ - PrintManager * self; -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PRINT_MANAGER, PrintManager); -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - g_signal_handlers_destroy (self); -#line 776 "/home/jens/Source/shotwell/src/Printing.vala" - _print_settings_unref0 (self->priv->settings); -#line 777 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->user_page_setup); -#line 778 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->custom_tab); -#line 779 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->progress_dialog); -#line 780 "/home/jens/Source/shotwell/src/Printing.vala" - _g_object_unref0 (self->priv->cancellable); -#line 781 "/home/jens/Source/shotwell/src/Printing.vala" - self->priv->standard_sizes = (_vala_array_free (self->priv->standard_sizes, self->priv->standard_sizes_length1, (GDestroyNotify) standard_print_size_unref), NULL); -#line 8415 "Printing.c" -} - - -GType -print_manager_get_type (void) -{ - static volatile gsize print_manager_type_id__volatile = 0; - if (g_once_init_enter (&print_manager_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_print_manager_init, value_print_manager_free_value, value_print_manager_copy_value, value_print_manager_peek_pointer, "p", value_print_manager_collect_value, "p", value_print_manager_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PrintManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) print_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PrintManager), 0, (GInstanceInitFunc) print_manager_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType print_manager_type_id; - print_manager_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PrintManager", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&print_manager_type_id__volatile, print_manager_type_id); - } - return print_manager_type_id__volatile; -} - - -gpointer -print_manager_ref (gpointer instance) -{ - PrintManager * self; - self = instance; -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - g_atomic_int_inc (&self->ref_count); -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - return instance; -#line 8444 "Printing.c" -} - - -void -print_manager_unref (gpointer instance) -{ - PrintManager * self; - self = instance; -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - PRINT_MANAGER_GET_CLASS (self)->finalize (self); -#line 771 "/home/jens/Source/shotwell/src/Printing.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 8459 "Printing.c" - } -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/Properties.c b/src/Properties.c deleted file mode 100644 index a39f400..0000000 --- a/src/Properties.c +++ /dev/null @@ -1,5654 +0,0 @@ -/* Properties.c generated by valac 0.40.4, the Vala compiler - * generated from Properties.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PROPERTIES (properties_get_type ()) -#define PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROPERTIES, Properties)) -#define PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PROPERTIES, PropertiesClass)) -#define IS_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROPERTIES)) -#define IS_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROPERTIES)) -#define PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROPERTIES, PropertiesClass)) - -typedef struct _Properties Properties; -typedef struct _PropertiesClass PropertiesClass; -typedef struct _PropertiesPrivate PropertiesPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -enum { - PROPERTIES_0_PROPERTY, - PROPERTIES_NUM_PROPERTIES -}; -static GParamSpec* properties_properties[PROPERTIES_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL))) - -#define TYPE_BASIC_PROPERTIES (basic_properties_get_type ()) -#define BASIC_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BASIC_PROPERTIES, BasicProperties)) -#define BASIC_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BASIC_PROPERTIES, BasicPropertiesClass)) -#define IS_BASIC_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BASIC_PROPERTIES)) -#define IS_BASIC_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BASIC_PROPERTIES)) -#define BASIC_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BASIC_PROPERTIES, BasicPropertiesClass)) - -typedef struct _BasicProperties BasicProperties; -typedef struct _BasicPropertiesClass BasicPropertiesClass; -typedef struct _BasicPropertiesPrivate BasicPropertiesPrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -enum { - BASIC_PROPERTIES_0_PROPERTY, - BASIC_PROPERTIES_NUM_PROPERTIES -}; -static GParamSpec* basic_properties_properties[BASIC_PROPERTIES_NUM_PROPERTIES]; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_IMPORT_SOURCE (import_source_get_type ()) -#define IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_SOURCE, ImportSource)) -#define IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_SOURCE, ImportSourceClass)) -#define IS_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_SOURCE)) -#define IS_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_SOURCE)) -#define IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_SOURCE, ImportSourceClass)) - -typedef struct _ImportSource ImportSource; -typedef struct _ImportSourceClass ImportSourceClass; - -#define TYPE_PHOTO_IMPORT_SOURCE (photo_import_source_get_type ()) -#define PHOTO_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource)) -#define PHOTO_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSourceClass)) -#define IS_PHOTO_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_IMPORT_SOURCE)) -#define IS_PHOTO_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_IMPORT_SOURCE)) -#define PHOTO_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSourceClass)) - -typedef struct _PhotoImportSource PhotoImportSource; -typedef struct _PhotoImportSourceClass PhotoImportSourceClass; - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; -#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL))) -#define _dimensions_free0(var) ((var == NULL) ? NULL : (var = (dimensions_free (var), NULL))) - -#define TYPE_ORIENTATION (orientation_get_type ()) - -#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ()) - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) - -#define TYPE_EVENT_SOURCE (event_source_get_type ()) -#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource)) -#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass)) -#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE)) -#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE)) -#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass)) - -typedef struct _EventSource EventSource; -typedef struct _EventSourceClass EventSourceClass; - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_VIDEO_IMPORT_SOURCE (video_import_source_get_type ()) -#define VIDEO_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource)) -#define VIDEO_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_IMPORT_SOURCE, VideoImportSourceClass)) -#define IS_VIDEO_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_IMPORT_SOURCE)) -#define IS_VIDEO_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_IMPORT_SOURCE)) -#define VIDEO_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_IMPORT_SOURCE, VideoImportSourceClass)) - -typedef struct _VideoImportSource VideoImportSource; -typedef struct _VideoImportSourceClass VideoImportSourceClass; - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; - -#define TYPE_TAG_PAGE (tag_page_get_type ()) -#define TAG_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_PAGE, TagPage)) -#define TAG_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_PAGE, TagPageClass)) -#define IS_TAG_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_PAGE)) -#define IS_TAG_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_PAGE)) -#define TAG_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_PAGE, TagPageClass)) - -typedef struct _TagPage TagPage; -typedef struct _TagPageClass TagPageClass; - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; - -#define TYPE_EXTENDED_PROPERTIES_WINDOW (extended_properties_window_get_type ()) -#define EXTENDED_PROPERTIES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindow)) -#define EXTENDED_PROPERTIES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindowClass)) -#define IS_EXTENDED_PROPERTIES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXTENDED_PROPERTIES_WINDOW)) -#define IS_EXTENDED_PROPERTIES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXTENDED_PROPERTIES_WINDOW)) -#define EXTENDED_PROPERTIES_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindowClass)) - -typedef struct _ExtendedPropertiesWindow ExtendedPropertiesWindow; -typedef struct _ExtendedPropertiesWindowClass ExtendedPropertiesWindowClass; -typedef struct _ExtendedPropertiesWindowPrivate ExtendedPropertiesWindowPrivate; - -#define EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES (extended_properties_window_extended_properties_get_type ()) -#define EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES, ExtendedPropertiesWindowExtendedProperties)) -#define EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES, ExtendedPropertiesWindowExtendedPropertiesClass)) -#define EXTENDED_PROPERTIES_WINDOW_IS_EXTENDED_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES)) -#define EXTENDED_PROPERTIES_WINDOW_IS_EXTENDED_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES)) -#define EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES, ExtendedPropertiesWindowExtendedPropertiesClass)) - -typedef struct _ExtendedPropertiesWindowExtendedProperties ExtendedPropertiesWindowExtendedProperties; -typedef struct _ExtendedPropertiesWindowExtendedPropertiesClass ExtendedPropertiesWindowExtendedPropertiesClass; -enum { - EXTENDED_PROPERTIES_WINDOW_0_PROPERTY, - EXTENDED_PROPERTIES_WINDOW_NUM_PROPERTIES -}; -static GParamSpec* extended_properties_window_properties[EXTENDED_PROPERTIES_WINDOW_NUM_PROPERTIES]; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; -typedef struct _ExtendedPropertiesWindowExtendedPropertiesPrivate ExtendedPropertiesWindowExtendedPropertiesPrivate; -enum { - EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_0_PROPERTY, - EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NUM_PROPERTIES -}; -static GParamSpec* extended_properties_window_extended_properties_properties[EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NUM_PROPERTIES]; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ()) -#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime)) -#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) -#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME)) -#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME)) -#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) - -typedef struct _MetadataDateTime MetadataDateTime; -typedef struct _MetadataDateTimeClass MetadataDateTimeClass; -#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL))) - -#define PHOTO_METADATA_TYPE_SET_OPTION (photo_metadata_set_option_get_type ()) - -#define TYPE_EVENT (event_get_type ()) -#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event)) -#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass)) -#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT)) -#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT)) -#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass)) - -typedef struct _Event Event; -typedef struct _EventClass EventClass; - -#define TYPE_EVENTS_DIRECTORY_PAGE (events_directory_page_get_type ()) -#define EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage)) -#define EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPageClass)) -#define IS_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENTS_DIRECTORY_PAGE)) -#define IS_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENTS_DIRECTORY_PAGE)) -#define EVENTS_DIRECTORY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPageClass)) - -typedef struct _EventsDirectoryPage EventsDirectoryPage; -typedef struct _EventsDirectoryPageClass EventsDirectoryPageClass; -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) - -struct _Properties { - GtkGrid parent_instance; - PropertiesPrivate * priv; -}; - -struct _PropertiesClass { - GtkGridClass parent_class; - void (*get_single_properties) (Properties* self, DataView* view); - void (*get_multiple_properties) (Properties* self, GeeIterable* iter); - void (*get_properties) (Properties* self, Page* current_page); - void (*clear_properties) (Properties* self); - void (*internal_update_properties) (Properties* self, Page* page); -}; - -struct _PropertiesPrivate { - guint line_count; -}; - -struct _BasicProperties { - Properties parent_instance; - BasicPropertiesPrivate * priv; -}; - -struct _BasicPropertiesClass { - PropertiesClass parent_class; -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _BasicPropertiesPrivate { - gchar* title; - time_t start_time; - time_t end_time; - Dimensions dimensions; - gint photo_count; - gint event_count; - gint video_count; - gchar* exposure; - gchar* aperture; - gchar* iso; - gdouble clip_duration; - gchar* raw_developer; - gchar* raw_assoc; -}; - -typedef enum { - ORIENTATION_MIN = 1, - ORIENTATION_TOP_LEFT = 1, - ORIENTATION_TOP_RIGHT = 2, - ORIENTATION_BOTTOM_RIGHT = 3, - ORIENTATION_BOTTOM_LEFT = 4, - ORIENTATION_LEFT_TOP = 5, - ORIENTATION_RIGHT_TOP = 6, - ORIENTATION_RIGHT_BOTTOM = 7, - ORIENTATION_LEFT_BOTTOM = 8, - ORIENTATION_MAX = 8 -} Orientation; - -typedef enum { - PHOTO_EXCEPTION_NONE = 0, - PHOTO_EXCEPTION_ORIENTATION = 1 << 0, - PHOTO_EXCEPTION_CROP = 1 << 1, - PHOTO_EXCEPTION_REDEYE = 1 << 2, - PHOTO_EXCEPTION_ADJUST = 1 << 3, - PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4, - PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL -} PhotoException; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _ExtendedPropertiesWindow { - GtkDialog parent_instance; - ExtendedPropertiesWindowPrivate * priv; -}; - -struct _ExtendedPropertiesWindowClass { - GtkDialogClass parent_class; -}; - -struct _ExtendedPropertiesWindowPrivate { - ExtendedPropertiesWindowExtendedProperties* properties; -}; - -struct _ExtendedPropertiesWindowExtendedProperties { - Properties parent_instance; - ExtendedPropertiesWindowExtendedPropertiesPrivate * priv; -}; - -struct _ExtendedPropertiesWindowExtendedPropertiesClass { - PropertiesClass parent_class; -}; - -struct _ExtendedPropertiesWindowExtendedPropertiesPrivate { - gchar* file_path; - guint64 filesize; - Dimensions* original_dim; - gchar* camera_make; - gchar* camera_model; - gchar* flash; - gchar* focal_length; - gdouble gps_lat; - gchar* gps_lat_ref; - gdouble gps_long; - gchar* gps_long_ref; - gdouble gps_alt; - gchar* artist; - gchar* copyright; - gchar* software; - gchar* exposure_bias; - gchar* exposure_date; - gchar* exposure_time; - gboolean is_raw; - gchar* development_path; - gchar* comment; -}; - -typedef enum { - PHOTO_METADATA_SET_OPTION_ALL_DOMAINS, - PHOTO_METADATA_SET_OPTION_ONLY_IF_DOMAIN_PRESENT, - PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN -} PhotoMetadataSetOption; - - -static gpointer properties_parent_class = NULL; -static gpointer basic_properties_parent_class = NULL; -static gpointer extended_properties_window_parent_class = NULL; -static gpointer extended_properties_window_extended_properties_parent_class = NULL; - -GType properties_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -#define PROPERTIES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PROPERTIES, PropertiesPrivate)) -Properties* properties_construct (GType object_type); -void properties_add_line (Properties* self, - const gchar* label_text, - const gchar* info_text, - gboolean multi_line); -gboolean is_string_empty (const gchar* s); -gchar* properties_get_prettyprint_time (Properties* self, - struct tm* time); -gchar* resources_get_hh_mm_format_string (void); -gchar* properties_get_prettyprint_time_with_seconds (Properties* self, - struct tm* time); -gchar* resources_get_hh_mm_ss_format_string (void); -gchar* properties_get_prettyprint_date (Properties* self, - struct tm* date); -gchar* format_local_date (struct tm* date); -void properties_get_single_properties (Properties* self, - DataView* view); -static void properties_real_get_single_properties (Properties* self, - DataView* view); -void properties_get_multiple_properties (Properties* self, - GeeIterable* iter); -static void properties_real_get_multiple_properties (Properties* self, - GeeIterable* iter); -void properties_get_properties (Properties* self, - Page* current_page); -static void properties_real_get_properties (Properties* self, - Page* current_page); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -gint view_collection_get_selected_count (ViewCollection* self); -GeeList* view_collection_get_selected (ViewCollection* self); -gint data_collection_get_count (DataCollection* self); -GeeCollection* data_collection_get_all (DataCollection* self); -void properties_clear_properties (Properties* self); -static void properties_real_clear_properties (Properties* self); -void properties_update_properties (Properties* self, - Page* page); -void properties_internal_update_properties (Properties* self, - Page* page); -static void properties_real_internal_update_properties (Properties* self, - Page* page); -void properties_unselect_text (Properties* self); -static void properties_finalize (GObject * obj); -GType basic_properties_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -#define BASIC_PROPERTIES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_BASIC_PROPERTIES, BasicPropertiesPrivate)) -BasicProperties* basic_properties_new (void); -BasicProperties* basic_properties_construct (GType object_type); -static void basic_properties_real_clear_properties (Properties* base); -void dimensions_init (Dimensions *self, - gint width, - gint height); -static void basic_properties_real_get_single_properties (Properties* base, - DataView* view); -GType data_source_get_type (void) G_GNUC_CONST; -DataSource* data_view_get_source (DataView* self); -gchar* data_object_get_name (DataObject* self); -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType import_source_get_type (void) G_GNUC_CONST; -GType photo_import_source_get_type (void) G_GNUC_CONST; -time_t media_source_get_exposure_time (MediaSource* self); -time_t import_source_get_exposure_time (ImportSource* self); -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -PhotoMetadata* photo_source_get_metadata (PhotoSource* self); -PhotoMetadata* photo_import_source_get_metadata (PhotoImportSource* self); -gchar* photo_metadata_get_exposure_string (PhotoMetadata* self); -gchar* photo_metadata_get_aperture_string (PhotoMetadata* self, - gboolean pango_formatted); -gchar* photo_metadata_get_iso_string (PhotoMetadata* self); -Dimensions* photo_metadata_get_pixel_dimensions (PhotoMetadata* self); -GType orientation_get_type (void) G_GNUC_CONST; -Orientation photo_metadata_get_orientation (PhotoMetadata* self); -void orientation_rotate_dimensions (Orientation self, - Dimensions* dim, - Dimensions* result); -GType photo_exception_get_type (void) G_GNUC_CONST; -void media_source_get_dimensions (MediaSource* self, - PhotoException disallowed_steps, - Dimensions* result); -GType photo_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -PhotoFileFormat photo_get_master_file_format (Photo* self); -GType raw_developer_get_type (void) G_GNUC_CONST; -RawDeveloper photo_get_raw_developer (Photo* self); -gchar* raw_developer_get_label (RawDeveloper self); -gboolean photo_is_raw_developer_available (Photo* self, - RawDeveloper d); -GType event_source_get_type (void) G_GNUC_CONST; -time_t event_source_get_start_time (EventSource* self); -time_t event_source_get_end_time (EventSource* self); -void media_source_collection_count_media (GeeCollection* media, - gint* photo_count, - gint* video_count); -GeeCollection* event_source_get_media (EventSource* self); -GType video_source_get_type (void) G_GNUC_CONST; -GType video_import_source_get_type (void) G_GNUC_CONST; -GType video_get_type (void) G_GNUC_CONST; -gdouble video_get_clip_duration (Video* self); -gboolean video_get_is_interpretable (Video* self); -void video_get_frame_dimensions (Video* self, - Dimensions* result); -static void basic_properties_real_get_multiple_properties (Properties* base, - GeeIterable* iter); -static void basic_properties_real_get_properties (Properties* base, - Page* current_page); -static void basic_properties_real_internal_update_properties (Properties* base, - Page* page); -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType media_page_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -GType tag_page_get_type (void) G_GNUC_CONST; -GType tag_get_type (void) G_GNUC_CONST; -Tag* tag_page_get_tag (TagPage* self); -gchar* tag_get_user_visible_name (Tag* self); -gchar* guarded_markup_escape_text (const gchar* plain); -gboolean dimensions_has_area (Dimensions *self); -static void basic_properties_finalize (GObject * obj); -GType extended_properties_window_get_type (void) G_GNUC_CONST; -static GType extended_properties_window_extended_properties_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define EXTENDED_PROPERTIES_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindowPrivate)) -ExtendedPropertiesWindow* extended_properties_window_new (GtkWindow* owner); -ExtendedPropertiesWindow* extended_properties_window_construct (GType object_type, - GtkWindow* owner); -gint resources_use_header_bar (void); -static gboolean _gtk_widget_hide_on_delete_gtk_widget_delete_event (GtkWidget* _sender, - GdkEventAny* event, - gpointer self); -static ExtendedPropertiesWindowExtendedProperties* extended_properties_window_extended_properties_new (void); -static ExtendedPropertiesWindowExtendedProperties* extended_properties_window_extended_properties_construct (GType object_type); -static gboolean extended_properties_window_real_button_press_event (GtkWidget* base, - GdkEventButton* event); -static gboolean extended_properties_window_real_key_press_event (GtkWidget* base, - GdkEventKey* event); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -void extended_properties_window_update_properties (ExtendedPropertiesWindow* self, - Page* page); -static void extended_properties_window_real_show_all (GtkWidget* base); -#define EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES, ExtendedPropertiesWindowExtendedPropertiesPrivate)) -#define EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE "" -static void extended_properties_window_extended_properties_real_clear_properties (Properties* base); -static void extended_properties_window_extended_properties_real_get_single_properties (Properties* base, - DataView* view); -GFile* media_source_get_master_file (MediaSource* self); -GFile* media_source_get_file (MediaSource* self); -guint64 media_source_get_master_filesize (MediaSource* self); -PhotoMetadata* photo_get_master_metadata (Photo* self, - GError** error); -gpointer metadata_date_time_ref (gpointer instance); -void metadata_date_time_unref (gpointer instance); -GParamSpec* param_spec_metadata_date_time (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_metadata_date_time (GValue* value, - gpointer v_object); -void value_take_metadata_date_time (GValue* value, - gpointer v_object); -gpointer value_get_metadata_date_time (const GValue* value); -GType metadata_date_time_get_type (void) G_GNUC_CONST; -MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self); -GType photo_metadata_set_option_get_type (void) G_GNUC_CONST; -void photo_metadata_set_exposure_date_time (PhotoMetadata* self, - MetadataDateTime* date_time, - PhotoMetadataSetOption option); -time_t media_source_get_timestamp (MediaSource* self); -MetadataDateTime* metadata_date_time_new (time_t timestamp); -MetadataDateTime* metadata_date_time_construct (GType object_type, - time_t timestamp); -gchar* photo_metadata_get_camera_make (PhotoMetadata* self); -gchar* photo_metadata_get_camera_model (PhotoMetadata* self); -gchar* photo_metadata_get_flash_string (PhotoMetadata* self); -gchar* photo_metadata_get_focal_length_string (PhotoMetadata* self); -gboolean photo_metadata_get_gps (PhotoMetadata* self, - gdouble* longitude, - gchar* * long_ref, - gdouble* latitude, - gchar* * lat_ref, - gdouble* altitude); -gchar* photo_metadata_get_artist (PhotoMetadata* self); -gchar* photo_metadata_get_copyright (PhotoMetadata* self); -gchar* photo_metadata_get_software (PhotoMetadata* self); -gchar* photo_metadata_get_exposure_bias (PhotoMetadata* self); -time_t metadata_date_time_get_timestamp (MetadataDateTime* self); -gchar* media_source_get_comment (MediaSource* self); -GType event_get_type (void) G_GNUC_CONST; -gchar* event_source_get_comment (EventSource* self); -static void extended_properties_window_extended_properties_real_internal_update_properties (Properties* base, - Page* page); -GType events_directory_page_get_type (void) G_GNUC_CONST; -static void extended_properties_window_extended_properties_finalize (GObject * obj); -static void extended_properties_window_finalize (GObject * obj); - - -Properties* -properties_construct (GType object_type) -{ - Properties * self = NULL; -#line 10 "/home/jens/Source/shotwell/src/Properties.vala" - self = (Properties*) g_object_new (object_type, NULL); -#line 11 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_grid_set_row_spacing (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_grid_get_type (), GtkGrid), 0); -#line 12 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_grid_set_column_spacing (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_grid_get_type (), GtkGrid), 6); -#line 10 "/home/jens/Source/shotwell/src/Properties.vala" - return self; -#line 780 "Properties.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 31 "/home/jens/Source/shotwell/src/Properties.vala" - return self ? g_object_ref (self) : NULL; -#line 789 "Properties.c" -} - - -void -properties_add_line (Properties* self, - const gchar* label_text, - const gchar* info_text, - gboolean multi_line) -{ - GtkLabel* label = NULL; - GtkLabel* _tmp0_; - GtkWidget* info = NULL; - GtkLabel* _tmp1_; - GtkLabel* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - GtkLabel* _tmp38_; - guint _tmp39_; - guint _tmp44_; -#line 15 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_PROPERTIES (self)); -#line 15 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (label_text != NULL); -#line 15 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (info_text != NULL); -#line 16 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = (GtkLabel*) gtk_label_new (""); -#line 16 "/home/jens/Source/shotwell/src/Properties.vala" - g_object_ref_sink (_tmp0_); -#line 16 "/home/jens/Source/shotwell/src/Properties.vala" - label = _tmp0_; -#line 19 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = label; -#line 19 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_label_set_justify (_tmp1_, GTK_JUSTIFY_RIGHT); -#line 21 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = label; -#line 21 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = g_markup_printf_escaped ("%s", label_text); -#line 21 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp4_ = _tmp3_; -#line 21 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_label_set_markup (_tmp2_, _tmp4_); -#line 21 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp4_); -#line 23 "/home/jens/Source/shotwell/src/Properties.vala" - if (multi_line) { -#line 837 "Properties.c" - GtkScrolledWindow* info_scroll = NULL; - GtkScrolledWindow* _tmp5_; - GtkScrolledWindow* _tmp6_; - GtkTextView* view = NULL; - GtkTextView* _tmp7_; - GtkStyleContext* context = NULL; - GtkScrolledWindow* _tmp8_; - GtkStyleContext* _tmp9_; - GtkStyleContext* _tmp10_; - GtkTextView* _tmp11_; - GtkStyleContext* _tmp12_; - GdkRGBA _tmp13_ = {0}; - GtkTextView* _tmp14_; - GtkTextView* _tmp15_; - GtkTextView* _tmp16_; - const gchar* _tmp17_ = NULL; - GtkTextView* _tmp18_; - GtkTextBuffer* _tmp19_; - GtkTextBuffer* _tmp20_; - GtkScrolledWindow* _tmp21_; - GtkTextView* _tmp22_; - GtkLabel* _tmp23_; - GtkLabel* _tmp24_; - GtkScrolledWindow* _tmp25_; - GtkWidget* _tmp26_; -#line 24 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp5_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL); -#line 24 "/home/jens/Source/shotwell/src/Properties.vala" - g_object_ref_sink (_tmp5_); -#line 24 "/home/jens/Source/shotwell/src/Properties.vala" - info_scroll = _tmp5_; -#line 25 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp6_ = info_scroll; -#line 25 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_scrolled_window_set_shadow_type (_tmp6_, GTK_SHADOW_ETCHED_IN); -#line 26 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp7_ = (GtkTextView*) gtk_text_view_new (); -#line 26 "/home/jens/Source/shotwell/src/Properties.vala" - g_object_ref_sink (_tmp7_); -#line 26 "/home/jens/Source/shotwell/src/Properties.vala" - view = _tmp7_; -#line 31 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp8_ = info_scroll; -#line 31 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp9_ = gtk_widget_get_style_context (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget)); -#line 31 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp10_ = _g_object_ref0 (_tmp9_); -#line 31 "/home/jens/Source/shotwell/src/Properties.vala" - context = _tmp10_; -#line 32 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp11_ = view; -#line 32 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp12_ = context; -#line 32 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_style_context_get_background_color (_tmp12_, GTK_STATE_FLAG_NORMAL, &_tmp13_); -#line 32 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_widget_override_background_color (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), GTK_STATE_FLAG_NORMAL, &_tmp13_); -#line 34 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp14_ = view; -#line 34 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_text_view_set_wrap_mode (_tmp14_, GTK_WRAP_WORD); -#line 35 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp15_ = view; -#line 35 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_text_view_set_cursor_visible (_tmp15_, FALSE); -#line 36 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp16_ = view; -#line 36 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_text_view_set_editable (_tmp16_, FALSE); -#line 37 "/home/jens/Source/shotwell/src/Properties.vala" - if (is_string_empty (info_text)) { -#line 37 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp17_ = ""; -#line 911 "Properties.c" - } else { -#line 37 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp17_ = info_text; -#line 915 "Properties.c" - } -#line 37 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp18_ = view; -#line 37 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp19_ = gtk_text_view_get_buffer (_tmp18_); -#line 37 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp20_ = _tmp19_; -#line 37 "/home/jens/Source/shotwell/src/Properties.vala" - g_object_set (_tmp20_, "text", _tmp17_, NULL); -#line 38 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp21_ = info_scroll; -#line 38 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp22_ = view; -#line 38 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget)); -#line 39 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp23_ = label; -#line 39 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_label_set_xalign (_tmp23_, 1.0f); -#line 40 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp24_ = label; -#line 40 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_label_set_yalign (_tmp24_, 0.0f); -#line 41 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp25_ = info_scroll; -#line 41 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp26_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget)); -#line 41 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (info); -#line 41 "/home/jens/Source/shotwell/src/Properties.vala" - info = _tmp26_; -#line 23 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (context); -#line 23 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (view); -#line 23 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (info_scroll); -#line 953 "Properties.c" - } else { - GtkLabel* info_label = NULL; - GtkLabel* _tmp27_; - const gchar* _tmp28_ = NULL; - GtkLabel* _tmp29_; - GtkLabel* _tmp30_; - GtkLabel* _tmp31_; - GtkLabel* _tmp32_; - GtkLabel* _tmp33_; - GtkLabel* _tmp34_; - GtkLabel* _tmp35_; - GtkLabel* _tmp36_; - GtkWidget* _tmp37_; -#line 43 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp27_ = (GtkLabel*) gtk_label_new (""); -#line 43 "/home/jens/Source/shotwell/src/Properties.vala" - g_object_ref_sink (_tmp27_); -#line 43 "/home/jens/Source/shotwell/src/Properties.vala" - info_label = _tmp27_; -#line 44 "/home/jens/Source/shotwell/src/Properties.vala" - if (is_string_empty (info_text)) { -#line 44 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp28_ = ""; -#line 977 "Properties.c" - } else { -#line 44 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp28_ = info_text; -#line 981 "Properties.c" - } -#line 44 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp29_ = info_label; -#line 44 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_label_set_markup (_tmp29_, _tmp28_); -#line 45 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp30_ = info_label; -#line 45 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_label_set_ellipsize (_tmp30_, PANGO_ELLIPSIZE_END); -#line 46 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp31_ = info_label; -#line 46 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_label_set_xalign (_tmp31_, 0.0f); -#line 47 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp32_ = info_label; -#line 47 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_label_set_yalign (_tmp32_, 0.5f); -#line 48 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp33_ = info_label; -#line 48 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_label_set_selectable (_tmp33_, TRUE); -#line 49 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp34_ = label; -#line 49 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_label_set_xalign (_tmp34_, 1.0f); -#line 50 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp35_ = label; -#line 50 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_label_set_yalign (_tmp35_, 0.5f); -#line 51 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp36_ = info_label; -#line 51 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp37_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_widget_get_type (), GtkWidget)); -#line 51 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (info); -#line 51 "/home/jens/Source/shotwell/src/Properties.vala" - info = _tmp37_; -#line 23 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (info_label); -#line 1021 "Properties.c" - } -#line 54 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp38_ = label; -#line 54 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp39_ = self->priv->line_count; -#line 54 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_grid_attach (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_grid_get_type (), GtkGrid), G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_widget_get_type (), GtkWidget), 0, (gint) _tmp39_, 1, 1); -#line 56 "/home/jens/Source/shotwell/src/Properties.vala" - if (multi_line) { -#line 1031 "Properties.c" - GtkWidget* _tmp40_; - guint _tmp41_; -#line 57 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp40_ = info; -#line 57 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp41_ = self->priv->line_count; -#line 57 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_grid_attach (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_grid_get_type (), GtkGrid), _tmp40_, 1, (gint) _tmp41_, 1, 2); -#line 1040 "Properties.c" - } else { - GtkWidget* _tmp42_; - guint _tmp43_; -#line 59 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp42_ = info; -#line 59 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp43_ = self->priv->line_count; -#line 59 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_grid_attach (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_grid_get_type (), GtkGrid), _tmp42_, 1, (gint) _tmp43_, 1, 1); -#line 1050 "Properties.c" - } -#line 62 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp44_ = self->priv->line_count; -#line 62 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->line_count = _tmp44_ + 1; -#line 15 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (info); -#line 15 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (label); -#line 1060 "Properties.c" -} - - -static gchar* -g_time_format (struct tm *self, - const gchar* format) -{ - gchar* result = NULL; - gchar* buffer = NULL; - gchar* _tmp0_; - gint buffer_length1; - gint _buffer_size_; - gchar* _tmp1_; - gint _tmp1__length1; - gchar* _tmp2_; - gint _tmp2__length1; - gchar* _tmp3_; -#line 2874 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (format != NULL, NULL); -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_new0 (gchar, 64); -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer = _tmp0_; -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer_length1 = 64; -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _buffer_size_ = buffer_length1; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = buffer; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1__length1 = buffer_length1; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - strftime (_tmp1_, _tmp1__length1, format, &(*self)); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = buffer; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2__length1 = buffer_length1; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_strdup ((const gchar*) _tmp2_); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp3_; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer = (g_free (buffer), NULL); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1106 "Properties.c" -} - - -static gchar -string_get (const gchar* self, - glong index) -{ - gchar result = '\0'; - gchar _tmp0_; -#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, '\0'); -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = ((gchar*) self)[index]; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1124 "Properties.c" -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1148 "Properties.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1157 "Properties.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 1178 "Properties.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 1182 "Properties.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 1188 "Properties.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 1198 "Properties.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 1202 "Properties.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 1210 "Properties.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 1217 "Properties.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 1221 "Properties.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 1227 "Properties.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1239 "Properties.c" -} - - -gchar* -properties_get_prettyprint_time (Properties* self, - struct tm* time) -{ - gchar* result = NULL; - gchar* timestring = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; -#line 65 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_val_if_fail (IS_PROPERTIES (self), NULL); -#line 65 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_val_if_fail (time != NULL, NULL); -#line 66 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = resources_get_hh_mm_format_string (); -#line 66 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = _tmp0_; -#line 66 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = g_time_format (time, _tmp1_); -#line 66 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = _tmp2_; -#line 66 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp1_); -#line 66 "/home/jens/Source/shotwell/src/Properties.vala" - timestring = _tmp3_; -#line 68 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp4_ = timestring; -#line 68 "/home/jens/Source/shotwell/src/Properties.vala" - if (string_get (_tmp4_, (glong) 0) == '0') { -#line 1274 "Properties.c" - const gchar* _tmp5_; - gchar* _tmp6_; -#line 69 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp5_ = timestring; -#line 69 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp6_ = string_substring (_tmp5_, (glong) 1, (glong) -1); -#line 69 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (timestring); -#line 69 "/home/jens/Source/shotwell/src/Properties.vala" - timestring = _tmp6_; -#line 1285 "Properties.c" - } -#line 71 "/home/jens/Source/shotwell/src/Properties.vala" - result = timestring; -#line 71 "/home/jens/Source/shotwell/src/Properties.vala" - return result; -#line 1291 "Properties.c" -} - - -gchar* -properties_get_prettyprint_time_with_seconds (Properties* self, - struct tm* time) -{ - gchar* result = NULL; - gchar* timestring = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; -#line 74 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_val_if_fail (IS_PROPERTIES (self), NULL); -#line 74 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_val_if_fail (time != NULL, NULL); -#line 75 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = resources_get_hh_mm_ss_format_string (); -#line 75 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = _tmp0_; -#line 75 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = g_time_format (time, _tmp1_); -#line 75 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = _tmp2_; -#line 75 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp1_); -#line 75 "/home/jens/Source/shotwell/src/Properties.vala" - timestring = _tmp3_; -#line 77 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp4_ = timestring; -#line 77 "/home/jens/Source/shotwell/src/Properties.vala" - if (string_get (_tmp4_, (glong) 0) == '0') { -#line 1326 "Properties.c" - const gchar* _tmp5_; - gchar* _tmp6_; -#line 78 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp5_ = timestring; -#line 78 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp6_ = string_substring (_tmp5_, (glong) 1, (glong) -1); -#line 78 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (timestring); -#line 78 "/home/jens/Source/shotwell/src/Properties.vala" - timestring = _tmp6_; -#line 1337 "Properties.c" - } -#line 80 "/home/jens/Source/shotwell/src/Properties.vala" - result = timestring; -#line 80 "/home/jens/Source/shotwell/src/Properties.vala" - return result; -#line 1343 "Properties.c" -} - - -static void -g_time_local (time_t time, - struct tm* result) -{ - struct tm _result_ = {0}; - struct tm _tmp0_ = {0}; -#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - localtime_r (&time, &_tmp0_); -#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result = _result_; -#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return; -#line 1361 "Properties.c" -} - - -gchar* -properties_get_prettyprint_date (Properties* self, - struct tm* date) -{ - gchar* result = NULL; - gchar* date_string = NULL; - struct tm today = {0}; - time_t _tmp0_; - struct tm _tmp1_ = {0}; - gboolean _tmp2_ = FALSE; - struct tm _tmp3_; - gint _tmp4_; - struct tm _tmp5_; - gint _tmp6_; -#line 83 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_val_if_fail (IS_PROPERTIES (self), NULL); -#line 83 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_val_if_fail (date != NULL, NULL); -#line 84 "/home/jens/Source/shotwell/src/Properties.vala" - date_string = NULL; -#line 85 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = time (NULL); -#line 85 "/home/jens/Source/shotwell/src/Properties.vala" - g_time_local (_tmp0_, &_tmp1_); -#line 85 "/home/jens/Source/shotwell/src/Properties.vala" - today = _tmp1_; -#line 86 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = *date; -#line 86 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp4_ = _tmp3_.tm_yday; -#line 86 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp5_ = today; -#line 86 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp6_ = _tmp5_.tm_yday; -#line 86 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp4_ == _tmp6_) { -#line 1401 "Properties.c" - struct tm _tmp7_; - gint _tmp8_; - struct tm _tmp9_; - gint _tmp10_; -#line 86 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp7_ = *date; -#line 86 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp8_ = _tmp7_.tm_year; -#line 86 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp9_ = today; -#line 86 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp10_ = _tmp9_.tm_year; -#line 86 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = _tmp8_ == _tmp10_; -#line 1416 "Properties.c" - } else { -#line 86 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = FALSE; -#line 1420 "Properties.c" - } -#line 86 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp2_) { -#line 1424 "Properties.c" - gchar* _tmp11_; -#line 87 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp11_ = g_strdup (_ ("Today")); -#line 87 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (date_string); -#line 87 "/home/jens/Source/shotwell/src/Properties.vala" - date_string = _tmp11_; -#line 1432 "Properties.c" - } else { - gboolean _tmp12_ = FALSE; - struct tm _tmp13_; - gint _tmp14_; - struct tm _tmp15_; - gint _tmp16_; -#line 88 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp13_ = *date; -#line 88 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp14_ = _tmp13_.tm_yday; -#line 88 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp15_ = today; -#line 88 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp16_ = _tmp15_.tm_yday; -#line 88 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp14_ == (_tmp16_ - 1)) { -#line 1449 "Properties.c" - struct tm _tmp17_; - gint _tmp18_; - struct tm _tmp19_; - gint _tmp20_; -#line 88 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp17_ = *date; -#line 88 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp18_ = _tmp17_.tm_year; -#line 88 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp19_ = today; -#line 88 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp20_ = _tmp19_.tm_year; -#line 88 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp12_ = _tmp18_ == _tmp20_; -#line 1464 "Properties.c" - } else { -#line 88 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp12_ = FALSE; -#line 1468 "Properties.c" - } -#line 88 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp12_) { -#line 1472 "Properties.c" - gchar* _tmp21_; -#line 89 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp21_ = g_strdup (_ ("Yesterday")); -#line 89 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (date_string); -#line 89 "/home/jens/Source/shotwell/src/Properties.vala" - date_string = _tmp21_; -#line 1480 "Properties.c" - } else { - struct tm _tmp22_; - gchar* _tmp23_; -#line 91 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp22_ = *date; -#line 91 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp23_ = format_local_date (&_tmp22_); -#line 91 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (date_string); -#line 91 "/home/jens/Source/shotwell/src/Properties.vala" - date_string = _tmp23_; -#line 1492 "Properties.c" - } - } -#line 94 "/home/jens/Source/shotwell/src/Properties.vala" - result = date_string; -#line 94 "/home/jens/Source/shotwell/src/Properties.vala" - return result; -#line 1499 "Properties.c" -} - - -static void -properties_real_get_single_properties (Properties* self, - DataView* view) -{ -#line 97 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_DATA_VIEW (view)); -#line 1509 "Properties.c" -} - - -void -properties_get_single_properties (Properties* self, - DataView* view) -{ -#line 97 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_PROPERTIES (self)); -#line 97 "/home/jens/Source/shotwell/src/Properties.vala" - PROPERTIES_GET_CLASS (self)->get_single_properties (self, view); -#line 1521 "Properties.c" -} - - -static void -properties_real_get_multiple_properties (Properties* self, - GeeIterable* iter) -{ -#line 100 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail ((iter == NULL) || GEE_IS_ITERABLE (iter)); -#line 1531 "Properties.c" -} - - -void -properties_get_multiple_properties (Properties* self, - GeeIterable* iter) -{ -#line 100 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_PROPERTIES (self)); -#line 100 "/home/jens/Source/shotwell/src/Properties.vala" - PROPERTIES_GET_CLASS (self)->get_multiple_properties (self, iter); -#line 1543 "Properties.c" -} - - -static void -properties_real_get_properties (Properties* self, - Page* current_page) -{ - ViewCollection* view = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gint count = 0; - ViewCollection* _tmp2_; - GeeIterable* iter = NULL; - gint _tmp3_; - gboolean _tmp9_ = FALSE; - GeeIterable* _tmp10_; - gint _tmp12_; -#line 103 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_PAGE (current_page)); -#line 104 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = page_get_view (current_page); -#line 104 "/home/jens/Source/shotwell/src/Properties.vala" - view = _tmp0_; -#line 105 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = view; -#line 105 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp1_ == NULL) { -#line 106 "/home/jens/Source/shotwell/src/Properties.vala" - _data_collection_unref0 (view); -#line 106 "/home/jens/Source/shotwell/src/Properties.vala" - return; -#line 1575 "Properties.c" - } -#line 109 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = view; -#line 109 "/home/jens/Source/shotwell/src/Properties.vala" - count = view_collection_get_selected_count (_tmp2_); -#line 110 "/home/jens/Source/shotwell/src/Properties.vala" - iter = NULL; -#line 111 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = count; -#line 111 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp3_ != 0) { -#line 1587 "Properties.c" - ViewCollection* _tmp4_; - GeeList* _tmp5_; -#line 112 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp4_ = view; -#line 112 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp5_ = view_collection_get_selected (_tmp4_); -#line 112 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (iter); -#line 112 "/home/jens/Source/shotwell/src/Properties.vala" - iter = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable); -#line 1598 "Properties.c" - } else { - ViewCollection* _tmp6_; - ViewCollection* _tmp7_; - GeeCollection* _tmp8_; -#line 114 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp6_ = view; -#line 114 "/home/jens/Source/shotwell/src/Properties.vala" - count = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection)); -#line 115 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp7_ = view; -#line 115 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp8_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection)); -#line 115 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (iter); -#line 115 "/home/jens/Source/shotwell/src/Properties.vala" - iter = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable); -#line 1615 "Properties.c" - } -#line 118 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp10_ = iter; -#line 118 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp10_ == NULL) { -#line 118 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp9_ = TRUE; -#line 1623 "Properties.c" - } else { - gint _tmp11_; -#line 118 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp11_ = count; -#line 118 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp9_ = _tmp11_ == 0; -#line 1630 "Properties.c" - } -#line 118 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp9_) { -#line 119 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (iter); -#line 119 "/home/jens/Source/shotwell/src/Properties.vala" - _data_collection_unref0 (view); -#line 119 "/home/jens/Source/shotwell/src/Properties.vala" - return; -#line 1640 "Properties.c" - } -#line 121 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp12_ = count; -#line 121 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp12_ == 1) { -#line 1646 "Properties.c" - { - GeeIterator* _item_it = NULL; - GeeIterable* _tmp13_; - GeeIterator* _tmp14_; -#line 122 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp13_ = iter; -#line 122 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp14_ = gee_iterable_iterator (_tmp13_); -#line 122 "/home/jens/Source/shotwell/src/Properties.vala" - _item_it = _tmp14_; -#line 122 "/home/jens/Source/shotwell/src/Properties.vala" - while (TRUE) { -#line 1659 "Properties.c" - GeeIterator* _tmp15_; - DataView* item = NULL; - GeeIterator* _tmp16_; - gpointer _tmp17_; - DataView* _tmp18_; -#line 122 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp15_ = _item_it; -#line 122 "/home/jens/Source/shotwell/src/Properties.vala" - if (!gee_iterator_next (_tmp15_)) { -#line 122 "/home/jens/Source/shotwell/src/Properties.vala" - break; -#line 1671 "Properties.c" - } -#line 122 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp16_ = _item_it; -#line 122 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp17_ = gee_iterator_get (_tmp16_); -#line 122 "/home/jens/Source/shotwell/src/Properties.vala" - item = (DataView*) _tmp17_; -#line 123 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp18_ = item; -#line 123 "/home/jens/Source/shotwell/src/Properties.vala" - properties_get_single_properties (self, _tmp18_); -#line 124 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (item); -#line 124 "/home/jens/Source/shotwell/src/Properties.vala" - break; -#line 1687 "Properties.c" - } -#line 122 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (_item_it); -#line 1691 "Properties.c" - } - } else { - GeeIterable* _tmp19_; -#line 127 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp19_ = iter; -#line 127 "/home/jens/Source/shotwell/src/Properties.vala" - properties_get_multiple_properties (self, _tmp19_); -#line 1699 "Properties.c" - } -#line 103 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (iter); -#line 103 "/home/jens/Source/shotwell/src/Properties.vala" - _data_collection_unref0 (view); -#line 1705 "Properties.c" -} - - -void -properties_get_properties (Properties* self, - Page* current_page) -{ -#line 103 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_PROPERTIES (self)); -#line 103 "/home/jens/Source/shotwell/src/Properties.vala" - PROPERTIES_GET_CLASS (self)->get_properties (self, current_page); -#line 1717 "Properties.c" -} - - -static void -properties_real_clear_properties (Properties* self) -{ - GList* _tmp0_; -#line 132 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = gtk_container_get_children (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer)); -#line 1727 "Properties.c" - { - GList* child_collection = NULL; - GList* child_it = NULL; -#line 132 "/home/jens/Source/shotwell/src/Properties.vala" - child_collection = _tmp0_; -#line 132 "/home/jens/Source/shotwell/src/Properties.vala" - for (child_it = child_collection; child_it != NULL; child_it = child_it->next) { -#line 1735 "Properties.c" - GtkWidget* _tmp1_; - GtkWidget* child = NULL; -#line 132 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = _g_object_ref0 ((GtkWidget*) child_it->data); -#line 132 "/home/jens/Source/shotwell/src/Properties.vala" - child = _tmp1_; -#line 1742 "Properties.c" - { - GtkWidget* _tmp2_; -#line 133 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = child; -#line 133 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), _tmp2_); -#line 132 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (child); -#line 1751 "Properties.c" - } - } -#line 132 "/home/jens/Source/shotwell/src/Properties.vala" - _g_list_free0 (child_collection); -#line 1756 "Properties.c" - } -#line 135 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->line_count = (guint) 0; -#line 1760 "Properties.c" -} - - -void -properties_clear_properties (Properties* self) -{ -#line 131 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_PROPERTIES (self)); -#line 131 "/home/jens/Source/shotwell/src/Properties.vala" - PROPERTIES_GET_CLASS (self)->clear_properties (self); -#line 1771 "Properties.c" -} - - -void -properties_update_properties (Properties* self, - Page* page) -{ -#line 138 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_PROPERTIES (self)); -#line 138 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_PAGE (page)); -#line 139 "/home/jens/Source/shotwell/src/Properties.vala" - properties_clear_properties (self); -#line 140 "/home/jens/Source/shotwell/src/Properties.vala" - properties_internal_update_properties (self, page); -#line 141 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 1789 "Properties.c" -} - - -static void -properties_real_internal_update_properties (Properties* self, - Page* page) -{ -#line 144 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_PAGE (page)); -#line 145 "/home/jens/Source/shotwell/src/Properties.vala" - properties_get_properties (self, page); -#line 1801 "Properties.c" -} - - -void -properties_internal_update_properties (Properties* self, - Page* page) -{ -#line 144 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_PROPERTIES (self)); -#line 144 "/home/jens/Source/shotwell/src/Properties.vala" - PROPERTIES_GET_CLASS (self)->internal_update_properties (self, page); -#line 1813 "Properties.c" -} - - -void -properties_unselect_text (Properties* self) -{ - GList* _tmp0_; -#line 148 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_PROPERTIES (self)); -#line 149 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = gtk_container_get_children (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer)); -#line 1825 "Properties.c" - { - GList* child_collection = NULL; - GList* child_it = NULL; -#line 149 "/home/jens/Source/shotwell/src/Properties.vala" - child_collection = _tmp0_; -#line 149 "/home/jens/Source/shotwell/src/Properties.vala" - for (child_it = child_collection; child_it != NULL; child_it = child_it->next) { -#line 1833 "Properties.c" - GtkWidget* _tmp1_; - GtkWidget* child = NULL; -#line 149 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = _g_object_ref0 ((GtkWidget*) child_it->data); -#line 149 "/home/jens/Source/shotwell/src/Properties.vala" - child = _tmp1_; -#line 1840 "Properties.c" - { - GtkWidget* _tmp2_; -#line 150 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = child; -#line 150 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, gtk_label_get_type ())) { -#line 1847 "Properties.c" - GtkWidget* _tmp3_; -#line 151 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = child; -#line 151 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_label_select_region (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_label_get_type (), GtkLabel), 0, 0); -#line 1853 "Properties.c" - } -#line 149 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (child); -#line 1857 "Properties.c" - } - } -#line 149 "/home/jens/Source/shotwell/src/Properties.vala" - _g_list_free0 (child_collection); -#line 1862 "Properties.c" - } -} - - -static void -properties_class_init (PropertiesClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/Properties.vala" - properties_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/Properties.vala" - g_type_class_add_private (klass, sizeof (PropertiesPrivate)); -#line 7 "/home/jens/Source/shotwell/src/Properties.vala" - ((PropertiesClass *) klass)->get_single_properties = (void (*) (Properties *, DataView*)) properties_real_get_single_properties; -#line 7 "/home/jens/Source/shotwell/src/Properties.vala" - ((PropertiesClass *) klass)->get_multiple_properties = (void (*) (Properties *, GeeIterable*)) properties_real_get_multiple_properties; -#line 7 "/home/jens/Source/shotwell/src/Properties.vala" - ((PropertiesClass *) klass)->get_properties = (void (*) (Properties *, Page*)) properties_real_get_properties; -#line 7 "/home/jens/Source/shotwell/src/Properties.vala" - ((PropertiesClass *) klass)->clear_properties = (void (*) (Properties *)) properties_real_clear_properties; -#line 7 "/home/jens/Source/shotwell/src/Properties.vala" - ((PropertiesClass *) klass)->internal_update_properties = (void (*) (Properties *, Page*)) properties_real_internal_update_properties; -#line 7 "/home/jens/Source/shotwell/src/Properties.vala" - G_OBJECT_CLASS (klass)->finalize = properties_finalize; -#line 1886 "Properties.c" -} - - -static void -properties_instance_init (Properties * self) -{ -#line 7 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv = PROPERTIES_GET_PRIVATE (self); -#line 8 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->line_count = (guint) 0; -#line 1897 "Properties.c" -} - - -static void -properties_finalize (GObject * obj) -{ - Properties * self; -#line 7 "/home/jens/Source/shotwell/src/Properties.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PROPERTIES, Properties); -#line 7 "/home/jens/Source/shotwell/src/Properties.vala" - G_OBJECT_CLASS (properties_parent_class)->finalize (obj); -#line 1909 "Properties.c" -} - - -GType -properties_get_type (void) -{ - static volatile gsize properties_type_id__volatile = 0; - if (g_once_init_enter (&properties_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Properties), 0, (GInstanceInitFunc) properties_instance_init, NULL }; - GType properties_type_id; - properties_type_id = g_type_register_static (gtk_grid_get_type (), "Properties", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&properties_type_id__volatile, properties_type_id); - } - return properties_type_id__volatile; -} - - -BasicProperties* -basic_properties_construct (GType object_type) -{ - BasicProperties * self = NULL; -#line 171 "/home/jens/Source/shotwell/src/Properties.vala" - self = (BasicProperties*) properties_construct (object_type); -#line 171 "/home/jens/Source/shotwell/src/Properties.vala" - return self; -#line 1935 "Properties.c" -} - - -BasicProperties* -basic_properties_new (void) -{ -#line 171 "/home/jens/Source/shotwell/src/Properties.vala" - return basic_properties_construct (TYPE_BASIC_PROPERTIES); -#line 1944 "Properties.c" -} - - -static void -basic_properties_real_clear_properties (Properties* base) -{ - BasicProperties * self; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 174 "/home/jens/Source/shotwell/src/Properties.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BASIC_PROPERTIES, BasicProperties); -#line 175 "/home/jens/Source/shotwell/src/Properties.vala" - PROPERTIES_CLASS (basic_properties_parent_class)->clear_properties (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties)); -#line 176 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = g_strdup (""); -#line 176 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->title); -#line 176 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->title = _tmp0_; -#line 177 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->start_time = (time_t) 0; -#line 178 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->end_time = (time_t) 0; -#line 179 "/home/jens/Source/shotwell/src/Properties.vala" - dimensions_init (&self->priv->dimensions, 0, 0); -#line 180 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->photo_count = -1; -#line 181 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->event_count = -1; -#line 182 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->video_count = -1; -#line 183 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = g_strdup (""); -#line 183 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->exposure); -#line 183 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->exposure = _tmp1_; -#line 184 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = g_strdup (""); -#line 184 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->aperture); -#line 184 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->aperture = _tmp2_; -#line 185 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = g_strdup (""); -#line 185 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->iso); -#line 185 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->iso = _tmp3_; -#line 186 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->clip_duration = 0.0; -#line 187 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp4_ = g_strdup (""); -#line 187 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->raw_developer); -#line 187 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->raw_developer = _tmp4_; -#line 188 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp5_ = g_strdup (""); -#line 188 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->raw_assoc); -#line 188 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->raw_assoc = _tmp5_; -#line 2012 "Properties.c" -} - - -static gpointer -_media_metadata_ref0 (gpointer self) -{ -#line 203 "/home/jens/Source/shotwell/src/Properties.vala" - return self ? media_metadata_ref (self) : NULL; -#line 2021 "Properties.c" -} - - -static void -basic_properties_real_get_single_properties (Properties* base, - DataView* view) -{ - BasicProperties * self; - DataSource* source = NULL; - DataSource* _tmp0_; - DataSource* _tmp1_; - gchar* _tmp2_; - gboolean _tmp3_ = FALSE; - DataSource* _tmp4_; -#line 191 "/home/jens/Source/shotwell/src/Properties.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BASIC_PROPERTIES, BasicProperties); -#line 191 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_DATA_VIEW (view)); -#line 192 "/home/jens/Source/shotwell/src/Properties.vala" - PROPERTIES_CLASS (basic_properties_parent_class)->get_single_properties (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), view); -#line 194 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = data_view_get_source (view); -#line 194 "/home/jens/Source/shotwell/src/Properties.vala" - source = _tmp0_; -#line 196 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = source; -#line 196 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject)); -#line 196 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->title); -#line 196 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->title = _tmp2_; -#line 198 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp4_ = source; -#line 198 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_PHOTO_SOURCE)) { -#line 198 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = TRUE; -#line 2060 "Properties.c" - } else { - DataSource* _tmp5_; -#line 198 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp5_ = source; -#line 198 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_PHOTO_IMPORT_SOURCE); -#line 2067 "Properties.c" - } -#line 198 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp3_) { -#line 2071 "Properties.c" - time_t _tmp6_ = 0; - DataSource* _tmp7_; - time_t _tmp10_; - PhotoMetadata* _tmp11_ = NULL; - DataSource* _tmp12_; - PhotoMetadata* metadata = NULL; - PhotoMetadata* _tmp17_; - PhotoMetadata* _tmp18_; - DataSource* _tmp42_; - gboolean _tmp45_ = FALSE; - DataSource* _tmp46_; -#line 199 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp7_ = source; -#line 199 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_PHOTO_SOURCE)) { -#line 2087 "Properties.c" - DataSource* _tmp8_; -#line 199 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp8_ = source; -#line 199 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp6_ = media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PHOTO_SOURCE, PhotoSource), TYPE_MEDIA_SOURCE, MediaSource)); -#line 2093 "Properties.c" - } else { - DataSource* _tmp9_; -#line 200 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp9_ = source; -#line 200 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp6_ = import_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource), TYPE_IMPORT_SOURCE, ImportSource)); -#line 2100 "Properties.c" - } -#line 199 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->start_time = _tmp6_; -#line 201 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp10_ = self->priv->start_time; -#line 201 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->end_time = _tmp10_; -#line 203 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp12_ = source; -#line 203 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, TYPE_PHOTO_SOURCE)) { -#line 2112 "Properties.c" - DataSource* _tmp13_; - PhotoMetadata* _tmp14_; -#line 203 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp13_ = source; -#line 203 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp14_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_PHOTO_SOURCE, PhotoSource)); -#line 203 "/home/jens/Source/shotwell/src/Properties.vala" - _media_metadata_unref0 (_tmp11_); -#line 203 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp11_ = _tmp14_; -#line 2123 "Properties.c" - } else { - DataSource* _tmp15_; - PhotoMetadata* _tmp16_; -#line 204 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp15_ = source; -#line 204 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp16_ = photo_import_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource)); -#line 204 "/home/jens/Source/shotwell/src/Properties.vala" - _media_metadata_unref0 (_tmp11_); -#line 204 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp11_ = _tmp16_; -#line 2135 "Properties.c" - } -#line 203 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp17_ = _media_metadata_ref0 (_tmp11_); -#line 203 "/home/jens/Source/shotwell/src/Properties.vala" - metadata = _tmp17_; -#line 206 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp18_ = metadata; -#line 206 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp18_ != NULL) { -#line 2145 "Properties.c" - PhotoMetadata* _tmp19_; - gchar* _tmp20_; - const gchar* _tmp21_; - PhotoMetadata* _tmp23_; - gchar* _tmp24_; - const gchar* _tmp25_; - PhotoMetadata* _tmp27_; - gchar* _tmp28_; - const gchar* _tmp29_; - Dimensions _tmp31_ = {0}; - PhotoMetadata* _tmp32_; - Dimensions* _tmp33_; - Dimensions* _tmp34_; - gboolean _tmp35_; -#line 207 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp19_ = metadata; -#line 207 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp20_ = photo_metadata_get_exposure_string (_tmp19_); -#line 207 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->exposure); -#line 207 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->exposure = _tmp20_; -#line 208 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp21_ = self->priv->exposure; -#line 208 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp21_ == NULL) { -#line 2172 "Properties.c" - gchar* _tmp22_; -#line 209 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp22_ = g_strdup (""); -#line 209 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->exposure); -#line 209 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->exposure = _tmp22_; -#line 2180 "Properties.c" - } -#line 211 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp23_ = metadata; -#line 211 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp24_ = photo_metadata_get_aperture_string (_tmp23_, TRUE); -#line 211 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->aperture); -#line 211 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->aperture = _tmp24_; -#line 212 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp25_ = self->priv->aperture; -#line 212 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp25_ == NULL) { -#line 2194 "Properties.c" - gchar* _tmp26_; -#line 213 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp26_ = g_strdup (""); -#line 213 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->aperture); -#line 213 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->aperture = _tmp26_; -#line 2202 "Properties.c" - } -#line 215 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp27_ = metadata; -#line 215 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp28_ = photo_metadata_get_iso_string (_tmp27_); -#line 215 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->iso); -#line 215 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->iso = _tmp28_; -#line 216 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp29_ = self->priv->iso; -#line 216 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp29_ == NULL) { -#line 2216 "Properties.c" - gchar* _tmp30_; -#line 217 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp30_ = g_strdup (""); -#line 217 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->iso); -#line 217 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->iso = _tmp30_; -#line 2224 "Properties.c" - } -#line 219 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp32_ = metadata; -#line 219 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp33_ = photo_metadata_get_pixel_dimensions (_tmp32_); -#line 219 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp34_ = _tmp33_; -#line 219 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp35_ = _tmp34_ != NULL; -#line 219 "/home/jens/Source/shotwell/src/Properties.vala" - _dimensions_free0 (_tmp34_); -#line 219 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp35_) { -#line 2238 "Properties.c" - PhotoMetadata* _tmp36_; - PhotoMetadata* _tmp37_; - Dimensions* _tmp38_; - Dimensions* _tmp39_; - Dimensions _tmp40_; - Dimensions _tmp41_ = {0}; -#line 220 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp36_ = metadata; -#line 220 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp37_ = metadata; -#line 220 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp38_ = photo_metadata_get_pixel_dimensions (_tmp37_); -#line 220 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp39_ = _tmp38_; -#line 220 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp40_ = *_tmp39_; -#line 220 "/home/jens/Source/shotwell/src/Properties.vala" - orientation_rotate_dimensions (photo_metadata_get_orientation (_tmp36_), &_tmp40_, &_tmp41_); -#line 220 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp31_ = _tmp41_; -#line 220 "/home/jens/Source/shotwell/src/Properties.vala" - _dimensions_free0 (_tmp39_); -#line 2261 "Properties.c" - } else { -#line 221 "/home/jens/Source/shotwell/src/Properties.vala" - dimensions_init (&_tmp31_, 0, 0); -#line 2265 "Properties.c" - } -#line 219 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->dimensions = _tmp31_; -#line 2269 "Properties.c" - } -#line 224 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp42_ = source; -#line 224 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp42_, TYPE_PHOTO_SOURCE)) { -#line 2275 "Properties.c" - DataSource* _tmp43_; - Dimensions _tmp44_ = {0}; -#line 225 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp43_ = source; -#line 225 "/home/jens/Source/shotwell/src/Properties.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_PHOTO_SOURCE, PhotoSource), TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp44_); -#line 225 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->dimensions = _tmp44_; -#line 2284 "Properties.c" - } -#line 227 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp46_ = source; -#line 227 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp46_, TYPE_PHOTO)) { -#line 2290 "Properties.c" - DataSource* _tmp47_; -#line 227 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp47_ = source; -#line 227 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp45_ = photo_get_master_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_PHOTO, Photo)) == PHOTO_FILE_FORMAT_RAW; -#line 2296 "Properties.c" - } else { -#line 227 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp45_ = FALSE; -#line 2300 "Properties.c" - } -#line 227 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp45_) { -#line 2304 "Properties.c" - Photo* photo = NULL; - DataSource* _tmp48_; - Photo* _tmp49_; - Photo* _tmp50_; - gchar* _tmp51_; - const gchar* _tmp52_ = NULL; - Photo* _tmp53_; - gchar* _tmp54_; -#line 228 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp48_ = source; -#line 228 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp49_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp48_, TYPE_PHOTO) ? ((Photo*) _tmp48_) : NULL); -#line 228 "/home/jens/Source/shotwell/src/Properties.vala" - photo = _tmp49_; -#line 229 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp50_ = photo; -#line 229 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp51_ = raw_developer_get_label (photo_get_raw_developer (_tmp50_)); -#line 229 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->raw_developer); -#line 229 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->raw_developer = _tmp51_; -#line 230 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp53_ = photo; -#line 230 "/home/jens/Source/shotwell/src/Properties.vala" - if (photo_is_raw_developer_available (_tmp53_, RAW_DEVELOPER_CAMERA)) { -#line 230 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp52_ = _ ("RAW+JPEG"); -#line 2333 "Properties.c" - } else { -#line 230 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp52_ = ""; -#line 2337 "Properties.c" - } -#line 230 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp54_ = g_strdup (_tmp52_); -#line 230 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->raw_assoc); -#line 230 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->raw_assoc = _tmp54_; -#line 227 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (photo); -#line 2347 "Properties.c" - } -#line 198 "/home/jens/Source/shotwell/src/Properties.vala" - _media_metadata_unref0 (metadata); -#line 198 "/home/jens/Source/shotwell/src/Properties.vala" - _media_metadata_unref0 (_tmp11_); -#line 2353 "Properties.c" - } else { - DataSource* _tmp55_; -#line 232 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp55_ = source; -#line 232 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp55_, TYPE_EVENT_SOURCE)) { -#line 2360 "Properties.c" - EventSource* event_source = NULL; - DataSource* _tmp56_; - EventSource* _tmp57_; - EventSource* _tmp58_; - EventSource* _tmp59_; - gint event_photo_count = 0; - gint event_video_count = 0; - EventSource* _tmp60_; - GeeCollection* _tmp61_; - GeeCollection* _tmp62_; - gint _tmp63_ = 0; - gint _tmp64_ = 0; - gint _tmp65_; - gint _tmp66_; -#line 233 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp56_ = source; -#line 233 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp57_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, TYPE_EVENT_SOURCE, EventSource)); -#line 233 "/home/jens/Source/shotwell/src/Properties.vala" - event_source = _tmp57_; -#line 235 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp58_ = event_source; -#line 235 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->start_time = event_source_get_start_time (_tmp58_); -#line 236 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp59_ = event_source; -#line 236 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->end_time = event_source_get_end_time (_tmp59_); -#line 240 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp60_ = event_source; -#line 240 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp61_ = event_source_get_media (_tmp60_); -#line 240 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp62_ = _tmp61_; -#line 240 "/home/jens/Source/shotwell/src/Properties.vala" - media_source_collection_count_media (_tmp62_, &_tmp63_, &_tmp64_); -#line 240 "/home/jens/Source/shotwell/src/Properties.vala" - event_photo_count = _tmp63_; -#line 240 "/home/jens/Source/shotwell/src/Properties.vala" - event_video_count = _tmp64_; -#line 240 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (_tmp62_); -#line 243 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp65_ = event_photo_count; -#line 243 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->photo_count = _tmp65_; -#line 244 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp66_ = event_video_count; -#line 244 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->video_count = _tmp66_; -#line 232 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (event_source); -#line 2413 "Properties.c" - } else { - gboolean _tmp67_ = FALSE; - DataSource* _tmp68_; -#line 245 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp68_ = source; -#line 245 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp68_, TYPE_VIDEO_SOURCE)) { -#line 245 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp67_ = TRUE; -#line 2423 "Properties.c" - } else { - DataSource* _tmp69_; -#line 245 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp69_ = source; -#line 245 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp67_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp69_, TYPE_VIDEO_IMPORT_SOURCE); -#line 2430 "Properties.c" - } -#line 245 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp67_) { -#line 2434 "Properties.c" - DataSource* _tmp70_; - time_t _tmp79_; -#line 246 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp70_ = source; -#line 246 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp70_, TYPE_VIDEO_SOURCE)) { -#line 2441 "Properties.c" - Video* video = NULL; - DataSource* _tmp71_; - Video* _tmp72_; - Video* _tmp73_; - Video* _tmp74_; - Video* _tmp77_; -#line 247 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp71_ = source; -#line 247 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp72_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, TYPE_VIDEO, Video)); -#line 247 "/home/jens/Source/shotwell/src/Properties.vala" - video = _tmp72_; -#line 248 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp73_ = video; -#line 248 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->clip_duration = video_get_clip_duration (_tmp73_); -#line 250 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp74_ = video; -#line 250 "/home/jens/Source/shotwell/src/Properties.vala" - if (video_get_is_interpretable (_tmp74_)) { -#line 2462 "Properties.c" - Video* _tmp75_; - Dimensions _tmp76_ = {0}; -#line 251 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp75_ = video; -#line 251 "/home/jens/Source/shotwell/src/Properties.vala" - video_get_frame_dimensions (_tmp75_, &_tmp76_); -#line 251 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->dimensions = _tmp76_; -#line 2471 "Properties.c" - } -#line 253 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp77_ = video; -#line 253 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->start_time = media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 246 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (video); -#line 2479 "Properties.c" - } else { - DataSource* _tmp78_; -#line 255 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp78_ = source; -#line 255 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->start_time = import_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource), TYPE_IMPORT_SOURCE, ImportSource)); -#line 2486 "Properties.c" - } -#line 257 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp79_ = self->priv->start_time; -#line 257 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->end_time = _tmp79_; -#line 2492 "Properties.c" - } - } - } -#line 191 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (source); -#line 2498 "Properties.c" -} - - -static void -basic_properties_real_get_multiple_properties (Properties* base, - GeeIterable* iter) -{ - BasicProperties * self; -#line 261 "/home/jens/Source/shotwell/src/Properties.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BASIC_PROPERTIES, BasicProperties); -#line 261 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail ((iter == NULL) || GEE_IS_ITERABLE (iter)); -#line 262 "/home/jens/Source/shotwell/src/Properties.vala" - PROPERTIES_CLASS (basic_properties_parent_class)->get_multiple_properties (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), iter); -#line 264 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->photo_count = 0; -#line 265 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->video_count = 0; -#line 2517 "Properties.c" - { - GeeIterator* _view_it = NULL; - GeeIterator* _tmp0_; -#line 266 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = gee_iterable_iterator (iter); -#line 266 "/home/jens/Source/shotwell/src/Properties.vala" - _view_it = _tmp0_; -#line 266 "/home/jens/Source/shotwell/src/Properties.vala" - while (TRUE) { -#line 2527 "Properties.c" - GeeIterator* _tmp1_; - DataView* view = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataSource* source = NULL; - DataView* _tmp4_; - DataSource* _tmp5_; - gboolean _tmp6_ = FALSE; - DataSource* _tmp7_; -#line 266 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = _view_it; -#line 266 "/home/jens/Source/shotwell/src/Properties.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 266 "/home/jens/Source/shotwell/src/Properties.vala" - break; -#line 2543 "Properties.c" - } -#line 266 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = _view_it; -#line 266 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 266 "/home/jens/Source/shotwell/src/Properties.vala" - view = (DataView*) _tmp3_; -#line 267 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp4_ = view; -#line 267 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp5_ = data_view_get_source (_tmp4_); -#line 267 "/home/jens/Source/shotwell/src/Properties.vala" - source = _tmp5_; -#line 269 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp7_ = source; -#line 269 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_PHOTO_SOURCE)) { -#line 269 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp6_ = TRUE; -#line 2563 "Properties.c" - } else { - DataSource* _tmp8_; -#line 269 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp8_ = source; -#line 269 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, TYPE_PHOTO_IMPORT_SOURCE); -#line 2570 "Properties.c" - } -#line 269 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp6_) { -#line 2574 "Properties.c" - time_t _tmp9_ = 0; - DataSource* _tmp10_; - time_t exposure_time = 0; - time_t _tmp13_; - gint _tmp24_; -#line 270 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp10_ = source; -#line 270 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, TYPE_PHOTO_SOURCE)) { -#line 2584 "Properties.c" - DataSource* _tmp11_; -#line 271 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp11_ = source; -#line 271 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp9_ = media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PHOTO_SOURCE, PhotoSource), TYPE_MEDIA_SOURCE, MediaSource)); -#line 2590 "Properties.c" - } else { - DataSource* _tmp12_; -#line 272 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp12_ = source; -#line 272 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp9_ = import_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource), TYPE_IMPORT_SOURCE, ImportSource)); -#line 2597 "Properties.c" - } -#line 270 "/home/jens/Source/shotwell/src/Properties.vala" - exposure_time = _tmp9_; -#line 274 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp13_ = exposure_time; -#line 274 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp13_ != ((time_t) 0)) { -#line 2605 "Properties.c" - gboolean _tmp14_ = FALSE; - time_t _tmp15_; - gboolean _tmp19_ = FALSE; - time_t _tmp20_; -#line 275 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp15_ = self->priv->start_time; -#line 275 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp15_ == ((time_t) 0)) { -#line 275 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp14_ = TRUE; -#line 2616 "Properties.c" - } else { - time_t _tmp16_; - time_t _tmp17_; -#line 275 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp16_ = exposure_time; -#line 275 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp17_ = self->priv->start_time; -#line 275 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp14_ = _tmp16_ < _tmp17_; -#line 2626 "Properties.c" - } -#line 275 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp14_) { -#line 2630 "Properties.c" - time_t _tmp18_; -#line 276 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp18_ = exposure_time; -#line 276 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->start_time = _tmp18_; -#line 2636 "Properties.c" - } -#line 278 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp20_ = self->priv->end_time; -#line 278 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp20_ == ((time_t) 0)) { -#line 278 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp19_ = TRUE; -#line 2644 "Properties.c" - } else { - time_t _tmp21_; - time_t _tmp22_; -#line 278 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp21_ = exposure_time; -#line 278 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp22_ = self->priv->end_time; -#line 278 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp19_ = _tmp21_ > _tmp22_; -#line 2654 "Properties.c" - } -#line 278 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp19_) { -#line 2658 "Properties.c" - time_t _tmp23_; -#line 279 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp23_ = exposure_time; -#line 279 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->end_time = _tmp23_; -#line 2664 "Properties.c" - } - } -#line 282 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp24_ = self->priv->photo_count; -#line 282 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->photo_count = _tmp24_ + 1; -#line 2671 "Properties.c" - } else { - DataSource* _tmp25_; -#line 283 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp25_ = source; -#line 283 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp25_, TYPE_EVENT_SOURCE)) { -#line 2678 "Properties.c" - EventSource* event_source = NULL; - DataSource* _tmp26_; - EventSource* _tmp27_; - gint _tmp28_; - gboolean _tmp29_ = FALSE; - gboolean _tmp30_ = FALSE; - time_t _tmp31_; - gboolean _tmp36_ = FALSE; - gboolean _tmp37_ = FALSE; - time_t _tmp38_; - gint event_photo_count = 0; - gint event_video_count = 0; - EventSource* _tmp48_; - GeeCollection* _tmp49_; - GeeCollection* _tmp50_; - gint _tmp51_ = 0; - gint _tmp52_ = 0; - gint _tmp53_; - gint _tmp54_; - gint _tmp55_; - gint _tmp56_; - gint _tmp57_; -#line 284 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp26_ = source; -#line 284 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_EVENT_SOURCE, EventSource)); -#line 284 "/home/jens/Source/shotwell/src/Properties.vala" - event_source = _tmp27_; -#line 286 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp28_ = self->priv->event_count; -#line 286 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp28_ == -1) { -#line 287 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->event_count = 0; -#line 2713 "Properties.c" - } -#line 289 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp31_ = self->priv->start_time; -#line 289 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp31_ == ((time_t) 0)) { -#line 289 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp30_ = TRUE; -#line 2721 "Properties.c" - } else { - EventSource* _tmp32_; - time_t _tmp33_; -#line 289 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp32_ = event_source; -#line 289 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp33_ = self->priv->start_time; -#line 289 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp30_ = event_source_get_start_time (_tmp32_) < _tmp33_; -#line 2731 "Properties.c" - } -#line 289 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp30_) { -#line 2735 "Properties.c" - EventSource* _tmp34_; -#line 290 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp34_ = event_source; -#line 290 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp29_ = event_source_get_start_time (_tmp34_) != ((time_t) 0); -#line 2741 "Properties.c" - } else { -#line 289 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp29_ = FALSE; -#line 2745 "Properties.c" - } -#line 289 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp29_) { -#line 2749 "Properties.c" - EventSource* _tmp35_; -#line 291 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp35_ = event_source; -#line 291 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->start_time = event_source_get_start_time (_tmp35_); -#line 2755 "Properties.c" - } -#line 293 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp38_ = self->priv->end_time; -#line 293 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp38_ == ((time_t) 0)) { -#line 293 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp37_ = TRUE; -#line 2763 "Properties.c" - } else { - EventSource* _tmp39_; - time_t _tmp40_; -#line 293 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp39_ = event_source; -#line 293 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp40_ = self->priv->end_time; -#line 293 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp37_ = event_source_get_end_time (_tmp39_) > _tmp40_; -#line 2773 "Properties.c" - } -#line 293 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp37_) { -#line 2777 "Properties.c" - EventSource* _tmp41_; -#line 294 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp41_ = event_source; -#line 294 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp36_ = event_source_get_end_time (_tmp41_) != ((time_t) 0); -#line 2783 "Properties.c" - } else { -#line 293 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp36_ = FALSE; -#line 2787 "Properties.c" - } -#line 293 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp36_) { -#line 2791 "Properties.c" - EventSource* _tmp42_; -#line 295 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp42_ = event_source; -#line 295 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->end_time = event_source_get_end_time (_tmp42_); -#line 2797 "Properties.c" - } else { - gboolean _tmp43_ = FALSE; - time_t _tmp44_; -#line 296 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp44_ = self->priv->end_time; -#line 296 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp44_ == ((time_t) 0)) { -#line 296 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp43_ = TRUE; -#line 2807 "Properties.c" - } else { - EventSource* _tmp45_; - time_t _tmp46_; -#line 296 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp45_ = event_source; -#line 296 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp46_ = self->priv->end_time; -#line 296 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp43_ = event_source_get_start_time (_tmp45_) > _tmp46_; -#line 2817 "Properties.c" - } -#line 296 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp43_) { -#line 2821 "Properties.c" - EventSource* _tmp47_; -#line 297 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp47_ = event_source; -#line 297 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->end_time = event_source_get_start_time (_tmp47_); -#line 2827 "Properties.c" - } - } -#line 302 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp48_ = event_source; -#line 302 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp49_ = event_source_get_media (_tmp48_); -#line 302 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp50_ = _tmp49_; -#line 302 "/home/jens/Source/shotwell/src/Properties.vala" - media_source_collection_count_media (_tmp50_, &_tmp51_, &_tmp52_); -#line 302 "/home/jens/Source/shotwell/src/Properties.vala" - event_photo_count = _tmp51_; -#line 302 "/home/jens/Source/shotwell/src/Properties.vala" - event_video_count = _tmp52_; -#line 302 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (_tmp50_); -#line 305 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp53_ = self->priv->photo_count; -#line 305 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp54_ = event_photo_count; -#line 305 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->photo_count = _tmp53_ + _tmp54_; -#line 306 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp55_ = self->priv->video_count; -#line 306 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp56_ = event_video_count; -#line 306 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->video_count = _tmp55_ + _tmp56_; -#line 307 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp57_ = self->priv->event_count; -#line 307 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->event_count = _tmp57_ + 1; -#line 283 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (event_source); -#line 2862 "Properties.c" - } else { - gboolean _tmp58_ = FALSE; - DataSource* _tmp59_; -#line 308 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp59_ = source; -#line 308 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp59_, TYPE_VIDEO_SOURCE)) { -#line 308 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp58_ = TRUE; -#line 2872 "Properties.c" - } else { - DataSource* _tmp60_; -#line 308 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp60_ = source; -#line 308 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp58_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp60_, TYPE_VIDEO_IMPORT_SOURCE); -#line 2879 "Properties.c" - } -#line 308 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp58_) { -#line 2883 "Properties.c" - time_t _tmp61_ = 0; - DataSource* _tmp62_; - time_t exposure_time = 0; - time_t _tmp65_; - gint _tmp76_; -#line 309 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp62_ = source; -#line 309 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp62_, TYPE_VIDEO_SOURCE)) { -#line 2893 "Properties.c" - DataSource* _tmp63_; -#line 310 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp63_ = source; -#line 310 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp61_ = media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, TYPE_VIDEO_SOURCE, VideoSource), TYPE_MEDIA_SOURCE, MediaSource)); -#line 2899 "Properties.c" - } else { - DataSource* _tmp64_; -#line 311 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp64_ = source; -#line 311 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp61_ = import_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource), TYPE_IMPORT_SOURCE, ImportSource)); -#line 2906 "Properties.c" - } -#line 309 "/home/jens/Source/shotwell/src/Properties.vala" - exposure_time = _tmp61_; -#line 313 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp65_ = exposure_time; -#line 313 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp65_ != ((time_t) 0)) { -#line 2914 "Properties.c" - gboolean _tmp66_ = FALSE; - time_t _tmp67_; - gboolean _tmp71_ = FALSE; - time_t _tmp72_; -#line 314 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp67_ = self->priv->start_time; -#line 314 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp67_ == ((time_t) 0)) { -#line 314 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp66_ = TRUE; -#line 2925 "Properties.c" - } else { - time_t _tmp68_; - time_t _tmp69_; -#line 314 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp68_ = exposure_time; -#line 314 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp69_ = self->priv->start_time; -#line 314 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp66_ = _tmp68_ < _tmp69_; -#line 2935 "Properties.c" - } -#line 314 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp66_) { -#line 2939 "Properties.c" - time_t _tmp70_; -#line 315 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp70_ = exposure_time; -#line 315 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->start_time = _tmp70_; -#line 2945 "Properties.c" - } -#line 317 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp72_ = self->priv->end_time; -#line 317 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp72_ == ((time_t) 0)) { -#line 317 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp71_ = TRUE; -#line 2953 "Properties.c" - } else { - time_t _tmp73_; - time_t _tmp74_; -#line 317 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp73_ = exposure_time; -#line 317 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp74_ = self->priv->end_time; -#line 317 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp71_ = _tmp73_ > _tmp74_; -#line 2963 "Properties.c" - } -#line 317 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp71_) { -#line 2967 "Properties.c" - time_t _tmp75_; -#line 318 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp75_ = exposure_time; -#line 318 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->end_time = _tmp75_; -#line 2973 "Properties.c" - } - } -#line 321 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp76_ = self->priv->video_count; -#line 321 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->video_count = _tmp76_ + 1; -#line 2980 "Properties.c" - } - } - } -#line 266 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (source); -#line 266 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (view); -#line 2988 "Properties.c" - } -#line 266 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (_view_it); -#line 2992 "Properties.c" - } -} - - -static void -basic_properties_real_get_properties (Properties* base, - Page* current_page) -{ - BasicProperties * self; - time_t _tmp0_; - time_t _tmp2_; -#line 326 "/home/jens/Source/shotwell/src/Properties.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BASIC_PROPERTIES, BasicProperties); -#line 326 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_PAGE (current_page)); -#line 327 "/home/jens/Source/shotwell/src/Properties.vala" - PROPERTIES_CLASS (basic_properties_parent_class)->get_properties (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), current_page); -#line 329 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = self->priv->end_time; -#line 329 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp0_ == ((time_t) 0)) { -#line 3014 "Properties.c" - time_t _tmp1_; -#line 330 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = self->priv->start_time; -#line 330 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->end_time = _tmp1_; -#line 3020 "Properties.c" - } -#line 331 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = self->priv->start_time; -#line 331 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp2_ == ((time_t) 0)) { -#line 3026 "Properties.c" - time_t _tmp3_; -#line 332 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = self->priv->end_time; -#line 332 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->start_time = _tmp3_; -#line 3032 "Properties.c" - } -} - - -static void -basic_properties_real_internal_update_properties (Properties* base, - Page* page) -{ - BasicProperties * self; - gboolean _tmp0_ = FALSE; - const gchar* _tmp1_; - const gchar* _tmp5_; - gboolean _tmp9_ = FALSE; - gint _tmp10_; - time_t _tmp35_; - gdouble _tmp67_; - const gchar* _tmp71_; - const gchar* _tmp73_; - gboolean _tmp75_ = FALSE; - gboolean _tmp76_ = FALSE; - const gchar* _tmp77_; -#line 335 "/home/jens/Source/shotwell/src/Properties.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BASIC_PROPERTIES, BasicProperties); -#line 335 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_PAGE (page)); -#line 336 "/home/jens/Source/shotwell/src/Properties.vala" - PROPERTIES_CLASS (basic_properties_parent_class)->internal_update_properties (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), page); -#line 339 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = self->priv->title; -#line 339 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp1_, "") == 0) { -#line 339 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_TAG_PAGE); -#line 3066 "Properties.c" - } else { -#line 339 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = FALSE; -#line 3070 "Properties.c" - } -#line 339 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp0_) { -#line 3074 "Properties.c" - Tag* _tmp2_; - Tag* _tmp3_; - gchar* _tmp4_; -#line 340 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = tag_page_get_tag (G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_TAG_PAGE, TagPage)); -#line 340 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = _tmp2_; -#line 340 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp4_ = tag_get_user_visible_name (_tmp3_); -#line 340 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->title); -#line 340 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->title = _tmp4_; -#line 340 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (_tmp3_); -#line 3090 "Properties.c" - } -#line 342 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp5_ = self->priv->title; -#line 342 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp5_, "") != 0) { -#line 3096 "Properties.c" - const gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 343 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp6_ = self->priv->title; -#line 343 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp7_ = guarded_markup_escape_text (_tmp6_); -#line 343 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp8_ = _tmp7_; -#line 343 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Title:"), _tmp8_, FALSE); -#line 343 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp8_); -#line 3110 "Properties.c" - } -#line 345 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp10_ = self->priv->photo_count; -#line 345 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp10_ >= 0) { -#line 345 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp9_ = TRUE; -#line 3118 "Properties.c" - } else { - gint _tmp11_; -#line 345 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp11_ = self->priv->video_count; -#line 345 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp9_ = _tmp11_ >= 0; -#line 3125 "Properties.c" - } -#line 345 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp9_) { -#line 3129 "Properties.c" - gchar* label = NULL; - gchar* _tmp12_; - gint _tmp13_; - gchar* photo_num_string = NULL; - gint _tmp20_; - gint _tmp21_; - gchar* _tmp22_; - gchar* video_num_string = NULL; - gint _tmp23_; - gint _tmp24_; - gchar* _tmp25_; - gboolean _tmp26_ = FALSE; - gint _tmp27_; - const gchar* _tmp31_; - const gchar* _tmp32_; - gint _tmp33_; -#line 346 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp12_ = g_strdup (_ ("Items:")); -#line 346 "/home/jens/Source/shotwell/src/Properties.vala" - label = _tmp12_; -#line 348 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp13_ = self->priv->event_count; -#line 348 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp13_ >= 0) { -#line 3154 "Properties.c" - gchar* event_num_string = NULL; - gint _tmp14_; - gint _tmp15_; - gchar* _tmp16_; - const gchar* _tmp17_; - const gchar* _tmp18_; - gchar* _tmp19_; -#line 349 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp14_ = self->priv->event_count; -#line 349 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp15_ = self->priv->event_count; -#line 349 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp16_ = g_strdup_printf (ngettext ("%d Event", "%d Events", (gulong) _tmp14_), _tmp15_); -#line 349 "/home/jens/Source/shotwell/src/Properties.vala" - event_num_string = _tmp16_; -#line 352 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp17_ = label; -#line 352 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp18_ = event_num_string; -#line 352 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _tmp17_, _tmp18_, FALSE); -#line 353 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp19_ = g_strdup (""); -#line 353 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (label); -#line 353 "/home/jens/Source/shotwell/src/Properties.vala" - label = _tmp19_; -#line 348 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (event_num_string); -#line 3184 "Properties.c" - } -#line 356 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp20_ = self->priv->photo_count; -#line 356 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp21_ = self->priv->photo_count; -#line 356 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp22_ = g_strdup_printf (ngettext ("%d Photo", "%d Photos", (gulong) _tmp20_), _tmp21_); -#line 356 "/home/jens/Source/shotwell/src/Properties.vala" - photo_num_string = _tmp22_; -#line 358 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp23_ = self->priv->video_count; -#line 358 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp24_ = self->priv->video_count; -#line 358 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp25_ = g_strdup_printf (ngettext ("%d Video", "%d Videos", (gulong) _tmp23_), _tmp24_); -#line 358 "/home/jens/Source/shotwell/src/Properties.vala" - video_num_string = _tmp25_; -#line 361 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp27_ = self->priv->photo_count; -#line 361 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp27_ == 0) { -#line 3206 "Properties.c" - gint _tmp28_; -#line 361 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp28_ = self->priv->video_count; -#line 361 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp26_ = _tmp28_ > 0; -#line 3212 "Properties.c" - } else { -#line 361 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp26_ = FALSE; -#line 3216 "Properties.c" - } -#line 361 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp26_) { -#line 3220 "Properties.c" - const gchar* _tmp29_; - const gchar* _tmp30_; -#line 362 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp29_ = label; -#line 362 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp30_ = video_num_string; -#line 362 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _tmp29_, _tmp30_, FALSE); -#line 363 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (video_num_string); -#line 363 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (photo_num_string); -#line 363 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (label); -#line 363 "/home/jens/Source/shotwell/src/Properties.vala" - return; -#line 3237 "Properties.c" - } -#line 366 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp31_ = label; -#line 366 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp32_ = photo_num_string; -#line 366 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _tmp31_, _tmp32_, FALSE); -#line 368 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp33_ = self->priv->video_count; -#line 368 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp33_ > 0) { -#line 3249 "Properties.c" - const gchar* _tmp34_; -#line 369 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp34_ = video_num_string; -#line 369 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), "", _tmp34_, FALSE); -#line 3255 "Properties.c" - } -#line 345 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (video_num_string); -#line 345 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (photo_num_string); -#line 345 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (label); -#line 3263 "Properties.c" - } -#line 372 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp35_ = self->priv->start_time; -#line 372 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp35_ != ((time_t) 0)) { -#line 3269 "Properties.c" - gchar* start_date = NULL; - time_t _tmp36_; - struct tm _tmp37_ = {0}; - gchar* _tmp38_; - gchar* start_time = NULL; - time_t _tmp39_; - struct tm _tmp40_ = {0}; - gchar* _tmp41_; - gchar* end_date = NULL; - time_t _tmp42_; - struct tm _tmp43_ = {0}; - gchar* _tmp44_; - gchar* end_time = NULL; - time_t _tmp45_; - struct tm _tmp46_ = {0}; - gchar* _tmp47_; - const gchar* _tmp48_; - const gchar* _tmp49_; -#line 373 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp36_ = self->priv->start_time; -#line 373 "/home/jens/Source/shotwell/src/Properties.vala" - g_time_local (_tmp36_, &_tmp37_); -#line 373 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp38_ = properties_get_prettyprint_date (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), &_tmp37_); -#line 373 "/home/jens/Source/shotwell/src/Properties.vala" - start_date = _tmp38_; -#line 374 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp39_ = self->priv->start_time; -#line 374 "/home/jens/Source/shotwell/src/Properties.vala" - g_time_local (_tmp39_, &_tmp40_); -#line 374 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp41_ = properties_get_prettyprint_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), &_tmp40_); -#line 374 "/home/jens/Source/shotwell/src/Properties.vala" - start_time = _tmp41_; -#line 375 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp42_ = self->priv->end_time; -#line 375 "/home/jens/Source/shotwell/src/Properties.vala" - g_time_local (_tmp42_, &_tmp43_); -#line 375 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp44_ = properties_get_prettyprint_date (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), &_tmp43_); -#line 375 "/home/jens/Source/shotwell/src/Properties.vala" - end_date = _tmp44_; -#line 376 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp45_ = self->priv->end_time; -#line 376 "/home/jens/Source/shotwell/src/Properties.vala" - g_time_local (_tmp45_, &_tmp46_); -#line 376 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp47_ = properties_get_prettyprint_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), &_tmp46_); -#line 376 "/home/jens/Source/shotwell/src/Properties.vala" - end_time = _tmp47_; -#line 378 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp48_ = start_date; -#line 378 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp49_ = end_date; -#line 378 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp48_, _tmp49_) == 0) { -#line 3326 "Properties.c" - const gchar* _tmp50_; - const gchar* _tmp51_; - const gchar* _tmp52_; -#line 380 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp50_ = start_date; -#line 380 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Date:"), _tmp50_, FALSE); -#line 382 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp51_ = start_time; -#line 382 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp52_ = end_time; -#line 382 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp51_, _tmp52_) == 0) { -#line 3340 "Properties.c" - const gchar* _tmp53_; -#line 384 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp53_ = start_time; -#line 384 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Time:"), _tmp53_, FALSE); -#line 3346 "Properties.c" - } else { - const gchar* _tmp54_; - const gchar* _tmp55_; -#line 387 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp54_ = start_time; -#line 387 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("From:"), _tmp54_, FALSE); -#line 388 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp55_ = end_time; -#line 388 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("To:"), _tmp55_, FALSE); -#line 3358 "Properties.c" - } - } else { - const gchar* _tmp56_; - const gchar* _tmp57_; -#line 392 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp56_ = start_date; -#line 392 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("From:"), _tmp56_, FALSE); -#line 393 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp57_ = end_date; -#line 393 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("To:"), _tmp57_, FALSE); -#line 3371 "Properties.c" - } -#line 372 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (end_time); -#line 372 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (end_date); -#line 372 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (start_time); -#line 372 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (start_date); -#line 3381 "Properties.c" - } -#line 397 "/home/jens/Source/shotwell/src/Properties.vala" - if (dimensions_has_area (&self->priv->dimensions)) { -#line 3385 "Properties.c" - gchar* label = NULL; - gchar* _tmp58_; -#line 398 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp58_ = g_strdup (_ ("Size:")); -#line 398 "/home/jens/Source/shotwell/src/Properties.vala" - label = _tmp58_; -#line 400 "/home/jens/Source/shotwell/src/Properties.vala" - if (dimensions_has_area (&self->priv->dimensions)) { -#line 3394 "Properties.c" - const gchar* _tmp59_; - Dimensions _tmp60_; - gint _tmp61_; - Dimensions _tmp62_; - gint _tmp63_; - gchar* _tmp64_; - gchar* _tmp65_; - gchar* _tmp66_; -#line 401 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp59_ = label; -#line 401 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp60_ = self->priv->dimensions; -#line 401 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp61_ = _tmp60_.width; -#line 401 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp62_ = self->priv->dimensions; -#line 401 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp63_ = _tmp62_.height; -#line 401 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp64_ = g_strdup_printf ("%d × %d", _tmp61_, _tmp63_); -#line 401 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp65_ = _tmp64_; -#line 401 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _tmp59_, _tmp65_, FALSE); -#line 401 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp65_); -#line 402 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp66_ = g_strdup (""); -#line 402 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (label); -#line 402 "/home/jens/Source/shotwell/src/Properties.vala" - label = _tmp66_; -#line 3427 "Properties.c" - } -#line 397 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (label); -#line 3431 "Properties.c" - } -#line 406 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp67_ = self->priv->clip_duration; -#line 406 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp67_ > 0.0) { -#line 3437 "Properties.c" - gdouble _tmp68_; - gchar* _tmp69_; - gchar* _tmp70_; -#line 407 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp68_ = self->priv->clip_duration; -#line 407 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp69_ = g_strdup_printf (_ ("%.1f seconds"), _tmp68_); -#line 407 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp70_ = _tmp69_; -#line 407 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Duration:"), _tmp70_, FALSE); -#line 407 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp70_); -#line 3451 "Properties.c" - } -#line 410 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp71_ = self->priv->raw_developer; -#line 410 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp71_, "") != 0) { -#line 3457 "Properties.c" - const gchar* _tmp72_; -#line 411 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp72_ = self->priv->raw_developer; -#line 411 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Developer:"), _tmp72_, FALSE); -#line 3463 "Properties.c" - } -#line 415 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp73_ = self->priv->raw_assoc; -#line 415 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp73_, "") != 0) { -#line 3469 "Properties.c" - const gchar* _tmp74_; -#line 416 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp74_ = self->priv->raw_assoc; -#line 416 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), "", _tmp74_, FALSE); -#line 3475 "Properties.c" - } -#line 418 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp77_ = self->priv->exposure; -#line 418 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp77_, "") != 0) { -#line 418 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp76_ = TRUE; -#line 3483 "Properties.c" - } else { - const gchar* _tmp78_; -#line 418 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp78_ = self->priv->aperture; -#line 418 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp76_ = g_strcmp0 (_tmp78_, "") != 0; -#line 3490 "Properties.c" - } -#line 418 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp76_) { -#line 418 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp75_ = TRUE; -#line 3496 "Properties.c" - } else { - const gchar* _tmp79_; -#line 418 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp79_ = self->priv->iso; -#line 418 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp75_ = g_strcmp0 (_tmp79_, "") != 0; -#line 3503 "Properties.c" - } -#line 418 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp75_) { -#line 3507 "Properties.c" - gchar* line = NULL; - const gchar* _tmp80_; - const gchar* _tmp83_; - gboolean _tmp92_ = FALSE; - gboolean _tmp93_ = FALSE; - const gchar* _tmp94_; -#line 419 "/home/jens/Source/shotwell/src/Properties.vala" - line = NULL; -#line 422 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp80_ = self->priv->exposure; -#line 422 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp80_, "") != 0) { -#line 3520 "Properties.c" - const gchar* _tmp81_; - gchar* _tmp82_; -#line 423 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp81_ = self->priv->exposure; -#line 423 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp82_ = g_strdup (_tmp81_); -#line 423 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (line); -#line 423 "/home/jens/Source/shotwell/src/Properties.vala" - line = _tmp82_; -#line 3531 "Properties.c" - } -#line 425 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp83_ = self->priv->aperture; -#line 425 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp83_, "") != 0) { -#line 3537 "Properties.c" - const gchar* _tmp84_; -#line 426 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp84_ = line; -#line 426 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp84_ != NULL) { -#line 3543 "Properties.c" - const gchar* _tmp85_; - const gchar* _tmp86_; - gchar* _tmp87_; - gchar* _tmp88_; - gchar* _tmp89_; -#line 427 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp85_ = line; -#line 427 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp86_ = self->priv->aperture; -#line 427 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp87_ = g_strconcat (", ", _tmp86_, NULL); -#line 427 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp88_ = _tmp87_; -#line 427 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp89_ = g_strconcat (_tmp85_, _tmp88_, NULL); -#line 427 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (line); -#line 427 "/home/jens/Source/shotwell/src/Properties.vala" - line = _tmp89_; -#line 427 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp88_); -#line 3565 "Properties.c" - } else { - const gchar* _tmp90_; - gchar* _tmp91_; -#line 429 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp90_ = self->priv->aperture; -#line 429 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp91_ = g_strdup (_tmp90_); -#line 429 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (line); -#line 429 "/home/jens/Source/shotwell/src/Properties.vala" - line = _tmp91_; -#line 3577 "Properties.c" - } - } -#line 433 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp94_ = self->priv->exposure; -#line 433 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp94_, "") == 0) { -#line 433 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp93_ = TRUE; -#line 3586 "Properties.c" - } else { - const gchar* _tmp95_; -#line 433 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp95_ = self->priv->aperture; -#line 433 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp93_ = g_strcmp0 (_tmp95_, "") == 0; -#line 3593 "Properties.c" - } -#line 433 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp93_) { -#line 3597 "Properties.c" - const gchar* _tmp96_; -#line 433 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp96_ = self->priv->iso; -#line 433 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp92_ = g_strcmp0 (_tmp96_, "") != 0; -#line 3603 "Properties.c" - } else { -#line 433 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp92_ = FALSE; -#line 3607 "Properties.c" - } -#line 433 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp92_) { -#line 3611 "Properties.c" - const gchar* _tmp97_; - const gchar* _tmp105_; -#line 434 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp97_ = line; -#line 434 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp97_ != NULL) { -#line 3618 "Properties.c" - const gchar* _tmp98_; - const gchar* _tmp99_; - gchar* _tmp100_; - gchar* _tmp101_; - gchar* _tmp102_; -#line 435 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp98_ = line; -#line 435 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp99_ = self->priv->iso; -#line 435 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp100_ = g_strconcat (", " "ISO ", _tmp99_, NULL); -#line 435 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp101_ = _tmp100_; -#line 435 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp102_ = g_strconcat (_tmp98_, _tmp101_, NULL); -#line 435 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (line); -#line 435 "/home/jens/Source/shotwell/src/Properties.vala" - line = _tmp102_; -#line 435 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp101_); -#line 3640 "Properties.c" - } else { - const gchar* _tmp103_; - gchar* _tmp104_; -#line 437 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp103_ = self->priv->iso; -#line 437 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp104_ = g_strconcat ("ISO ", _tmp103_, NULL); -#line 437 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (line); -#line 437 "/home/jens/Source/shotwell/src/Properties.vala" - line = _tmp104_; -#line 3652 "Properties.c" - } -#line 439 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp105_ = line; -#line 439 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Exposure:"), _tmp105_, FALSE); -#line 3658 "Properties.c" - } else { - const gchar* _tmp106_; - const gchar* _tmp108_; -#line 442 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp106_ = line; -#line 442 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp106_ != NULL) { -#line 3666 "Properties.c" - const gchar* _tmp107_; -#line 443 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp107_ = line; -#line 443 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Exposure:"), _tmp107_, FALSE); -#line 3672 "Properties.c" - } -#line 446 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp108_ = self->priv->iso; -#line 446 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp108_, "") != 0) { -#line 3678 "Properties.c" - const gchar* _tmp109_; -#line 447 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp109_ = line; -#line 447 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp109_ != NULL) { -#line 3684 "Properties.c" - const gchar* _tmp110_; - gchar* _tmp111_; - gchar* _tmp112_; -#line 448 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp110_ = self->priv->iso; -#line 448 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp111_ = g_strconcat ("ISO ", _tmp110_, NULL); -#line 448 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp112_ = _tmp111_; -#line 448 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), "", _tmp112_, FALSE); -#line 448 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp112_); -#line 3698 "Properties.c" - } else { - const gchar* _tmp113_; - gchar* _tmp114_; - gchar* _tmp115_; -#line 450 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp113_ = self->priv->iso; -#line 450 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp114_ = g_strconcat ("ISO ", _tmp113_, NULL); -#line 450 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp115_ = _tmp114_; -#line 450 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Exposure:"), _tmp115_, FALSE); -#line 450 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp115_); -#line 3713 "Properties.c" - } - } - } -#line 418 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (line); -#line 3719 "Properties.c" - } -} - - -static void -basic_properties_class_init (BasicPropertiesClass * klass) -{ -#line 156 "/home/jens/Source/shotwell/src/Properties.vala" - basic_properties_parent_class = g_type_class_peek_parent (klass); -#line 156 "/home/jens/Source/shotwell/src/Properties.vala" - g_type_class_add_private (klass, sizeof (BasicPropertiesPrivate)); -#line 156 "/home/jens/Source/shotwell/src/Properties.vala" - ((PropertiesClass *) klass)->clear_properties = (void (*) (Properties *)) basic_properties_real_clear_properties; -#line 156 "/home/jens/Source/shotwell/src/Properties.vala" - ((PropertiesClass *) klass)->get_single_properties = (void (*) (Properties *, DataView*)) basic_properties_real_get_single_properties; -#line 156 "/home/jens/Source/shotwell/src/Properties.vala" - ((PropertiesClass *) klass)->get_multiple_properties = (void (*) (Properties *, GeeIterable*)) basic_properties_real_get_multiple_properties; -#line 156 "/home/jens/Source/shotwell/src/Properties.vala" - ((PropertiesClass *) klass)->get_properties = (void (*) (Properties *, Page*)) basic_properties_real_get_properties; -#line 156 "/home/jens/Source/shotwell/src/Properties.vala" - ((PropertiesClass *) klass)->internal_update_properties = (void (*) (Properties *, Page*)) basic_properties_real_internal_update_properties; -#line 156 "/home/jens/Source/shotwell/src/Properties.vala" - G_OBJECT_CLASS (klass)->finalize = basic_properties_finalize; -#line 3743 "Properties.c" -} - - -static void -basic_properties_instance_init (BasicProperties * self) -{ - time_t _tmp0_; - time_t _tmp1_; -#line 156 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv = BASIC_PROPERTIES_GET_PRIVATE (self); -#line 158 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = time (NULL); -#line 158 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->start_time = _tmp0_; -#line 159 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = time (NULL); -#line 159 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->end_time = _tmp1_; -#line 3762 "Properties.c" -} - - -static void -basic_properties_finalize (GObject * obj) -{ - BasicProperties * self; -#line 156 "/home/jens/Source/shotwell/src/Properties.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BASIC_PROPERTIES, BasicProperties); -#line 157 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->title); -#line 164 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->exposure); -#line 165 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->aperture); -#line 166 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->iso); -#line 168 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->raw_developer); -#line 169 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->raw_assoc); -#line 156 "/home/jens/Source/shotwell/src/Properties.vala" - G_OBJECT_CLASS (basic_properties_parent_class)->finalize (obj); -#line 3786 "Properties.c" -} - - -GType -basic_properties_get_type (void) -{ - static volatile gsize basic_properties_type_id__volatile = 0; - if (g_once_init_enter (&basic_properties_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (BasicPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) basic_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BasicProperties), 0, (GInstanceInitFunc) basic_properties_instance_init, NULL }; - GType basic_properties_type_id; - basic_properties_type_id = g_type_register_static (TYPE_PROPERTIES, "BasicProperties", &g_define_type_info, 0); - g_once_init_leave (&basic_properties_type_id__volatile, basic_properties_type_id); - } - return basic_properties_type_id__volatile; -} - - -static gboolean -_gtk_widget_hide_on_delete_gtk_widget_delete_event (GtkWidget* _sender, - GdkEventAny* event, - gpointer self) -{ - gboolean result; - result = gtk_widget_hide_on_delete ((GtkWidget*) self); -#line 647 "/home/jens/Source/shotwell/src/Properties.vala" - return result; -#line 3813 "Properties.c" -} - - -ExtendedPropertiesWindow* -extended_properties_window_construct (GType object_type, - GtkWindow* owner) -{ - ExtendedPropertiesWindow * self = NULL; - ExtendedPropertiesWindowExtendedProperties* _tmp0_; - ExtendedPropertiesWindowExtendedProperties* _tmp1_; - ExtendedPropertiesWindowExtendedProperties* _tmp2_; - ExtendedPropertiesWindowExtendedProperties* _tmp3_; - ExtendedPropertiesWindowExtendedProperties* _tmp4_; - ExtendedPropertiesWindowExtendedProperties* _tmp5_; - ExtendedPropertiesWindowExtendedProperties* _tmp6_; - ExtendedPropertiesWindowExtendedProperties* _tmp7_; - ExtendedPropertiesWindowExtendedProperties* _tmp8_; - GtkBox* _tmp9_; - ExtendedPropertiesWindowExtendedProperties* _tmp10_; -#line 635 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_val_if_fail (GTK_IS_WINDOW (owner), NULL); -#line 636 "/home/jens/Source/shotwell/src/Properties.vala" - self = (ExtendedPropertiesWindow*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL); -#line 638 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) (GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK)); -#line 639 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_window_set_focus_on_map (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE); -#line 640 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_window_set_accept_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE); -#line 641 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_widget_set_can_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), TRUE); -#line 642 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _ ("Extended Information")); -#line 643 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_window_set_position (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), GTK_WIN_POS_CENTER); -#line 644 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), owner); -#line 645 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_window_set_type_hint (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), GDK_WINDOW_TYPE_HINT_DIALOG); -#line 647 "/home/jens/Source/shotwell/src/Properties.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "delete-event", (GCallback) _gtk_widget_hide_on_delete_gtk_widget_delete_event, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), 0); -#line 649 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = extended_properties_window_extended_properties_new (); -#line 649 "/home/jens/Source/shotwell/src/Properties.vala" - g_object_ref_sink (_tmp0_); -#line 649 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (self->priv->properties); -#line 649 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->properties = _tmp0_; -#line 650 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = self->priv->properties; -#line 650 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_FILL); -#line 651 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = self->priv->properties; -#line 651 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_FILL); -#line 652 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = self->priv->properties; -#line 652 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 653 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp4_ = self->priv->properties; -#line 653 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 654 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp5_ = self->priv->properties; -#line 654 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), 3); -#line 655 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp6_ = self->priv->properties; -#line 655 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), 3); -#line 656 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp7_ = self->priv->properties; -#line 656 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), 3); -#line 657 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp8_ = self->priv->properties; -#line 657 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), 3); -#line 658 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp9_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 658 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp10_ = self->priv->properties; -#line 658 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_box_get_type (), GtkBox), gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget)); -#line 635 "/home/jens/Source/shotwell/src/Properties.vala" - return self; -#line 3903 "Properties.c" -} - - -ExtendedPropertiesWindow* -extended_properties_window_new (GtkWindow* owner) -{ -#line 635 "/home/jens/Source/shotwell/src/Properties.vala" - return extended_properties_window_construct (TYPE_EXTENDED_PROPERTIES_WINDOW, owner); -#line 3912 "Properties.c" -} - - -static gboolean -extended_properties_window_real_button_press_event (GtkWidget* base, - GdkEventButton* event) -{ - ExtendedPropertiesWindow * self; - gboolean result = FALSE; - guint _tmp0_; - guint _tmp2_; - gdouble _tmp3_; - gdouble _tmp4_; - guint32 _tmp5_; -#line 661 "/home/jens/Source/shotwell/src/Properties.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindow); -#line 661 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 663 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = event->button; -#line 663 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp0_ != ((guint) 1)) { -#line 3935 "Properties.c" - gboolean _tmp1_ = FALSE; -#line 664 "/home/jens/Source/shotwell/src/Properties.vala" - if (GTK_WIDGET_CLASS (extended_properties_window_parent_class)->button_press_event != NULL) { -#line 664 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = GTK_WIDGET_CLASS (extended_properties_window_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), gtk_widget_get_type (), GtkWidget), event); -#line 3941 "Properties.c" - } else { -#line 664 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = TRUE; -#line 3945 "Properties.c" - } -#line 664 "/home/jens/Source/shotwell/src/Properties.vala" - result = _tmp1_; -#line 664 "/home/jens/Source/shotwell/src/Properties.vala" - return result; -#line 3951 "Properties.c" - } -#line 666 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = event->button; -#line 666 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = event->x_root; -#line 666 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp4_ = event->y_root; -#line 666 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp5_ = event->time; -#line 666 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_window_begin_move_drag (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), (gint) _tmp2_, (gint) _tmp3_, (gint) _tmp4_, _tmp5_); -#line 668 "/home/jens/Source/shotwell/src/Properties.vala" - result = TRUE; -#line 668 "/home/jens/Source/shotwell/src/Properties.vala" - return result; -#line 3967 "Properties.c" -} - - -static gboolean -extended_properties_window_real_key_press_event (GtkWidget* base, - GdkEventKey* event) -{ - ExtendedPropertiesWindow * self; - gboolean result = FALSE; - guint _tmp0_; - const gchar* _tmp1_; - AppWindow* _tmp2_; - AppWindow* _tmp3_; - gboolean _tmp4_ = FALSE; - gboolean _tmp5_; -#line 671 "/home/jens/Source/shotwell/src/Properties.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindow); -#line 671 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 673 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = event->keyval; -#line 673 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = gdk_keyval_name (_tmp0_); -#line 673 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp1_, "Escape") == 0) { -#line 674 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 675 "/home/jens/Source/shotwell/src/Properties.vala" - result = TRUE; -#line 675 "/home/jens/Source/shotwell/src/Properties.vala" - return result; -#line 3999 "Properties.c" - } -#line 678 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = app_window_get_instance (); -#line 678 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = _tmp2_; -#line 678 "/home/jens/Source/shotwell/src/Properties.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), "key-press-event", event, &_tmp4_); -#line 678 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp5_ = _tmp4_; -#line 678 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (_tmp3_); -#line 678 "/home/jens/Source/shotwell/src/Properties.vala" - result = _tmp5_; -#line 678 "/home/jens/Source/shotwell/src/Properties.vala" - return result; -#line 4015 "Properties.c" -} - - -void -extended_properties_window_update_properties (ExtendedPropertiesWindow* self, - Page* page) -{ - ExtendedPropertiesWindowExtendedProperties* _tmp0_; -#line 681 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_EXTENDED_PROPERTIES_WINDOW (self)); -#line 681 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_PAGE (page)); -#line 682 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = self->priv->properties; -#line 682 "/home/jens/Source/shotwell/src/Properties.vala" - properties_update_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PROPERTIES, Properties), page); -#line 4032 "Properties.c" -} - - -static void -extended_properties_window_real_show_all (GtkWidget* base) -{ - ExtendedPropertiesWindow * self; - ExtendedPropertiesWindowExtendedProperties* _tmp0_; -#line 685 "/home/jens/Source/shotwell/src/Properties.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindow); -#line 686 "/home/jens/Source/shotwell/src/Properties.vala" - GTK_WIDGET_CLASS (extended_properties_window_parent_class)->show_all (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), gtk_widget_get_type (), GtkWidget)); -#line 687 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = self->priv->properties; -#line 687 "/home/jens/Source/shotwell/src/Properties.vala" - properties_unselect_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PROPERTIES, Properties)); -#line 688 "/home/jens/Source/shotwell/src/Properties.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 4051 "Properties.c" -} - - -static gpointer -_dimensions_dup0 (gpointer self) -{ -#line 498 "/home/jens/Source/shotwell/src/Properties.vala" - return self ? dimensions_dup (self) : NULL; -#line 4060 "Properties.c" -} - - -static void -extended_properties_window_extended_properties_real_clear_properties (Properties* base) -{ - ExtendedPropertiesWindowExtendedProperties * self; - gchar* _tmp0_; - gchar* _tmp1_; - Dimensions _tmp2_ = {0}; - Dimensions* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; -#line 491 "/home/jens/Source/shotwell/src/Properties.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES, ExtendedPropertiesWindowExtendedProperties); -#line 492 "/home/jens/Source/shotwell/src/Properties.vala" - PROPERTIES_CLASS (extended_properties_window_extended_properties_parent_class)->clear_properties (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties)); -#line 494 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = g_strdup (""); -#line 494 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->file_path); -#line 494 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->file_path = _tmp0_; -#line 495 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = g_strdup (""); -#line 495 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->development_path); -#line 495 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->development_path = _tmp1_; -#line 496 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->is_raw = FALSE; -#line 497 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->filesize = (guint64) 0; -#line 498 "/home/jens/Source/shotwell/src/Properties.vala" - dimensions_init (&_tmp2_, 0, 0); -#line 498 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = _dimensions_dup0 (&_tmp2_); -#line 498 "/home/jens/Source/shotwell/src/Properties.vala" - _dimensions_free0 (self->priv->original_dim); -#line 498 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->original_dim = _tmp3_; -#line 499 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp4_ = g_strdup (""); -#line 499 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->camera_make); -#line 499 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->camera_make = _tmp4_; -#line 500 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp5_ = g_strdup (""); -#line 500 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->camera_model); -#line 500 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->camera_model = _tmp5_; -#line 501 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp6_ = g_strdup (""); -#line 501 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->flash); -#line 501 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->flash = _tmp6_; -#line 502 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp7_ = g_strdup (""); -#line 502 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->focal_length); -#line 502 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->focal_length = _tmp7_; -#line 503 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->gps_lat = (gdouble) -1; -#line 504 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp8_ = g_strdup (""); -#line 504 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->gps_lat_ref); -#line 504 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->gps_lat_ref = _tmp8_; -#line 505 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->gps_long = (gdouble) -1; -#line 506 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp9_ = g_strdup (""); -#line 506 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->gps_long_ref); -#line 506 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->gps_long_ref = _tmp9_; -#line 507 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp10_ = g_strdup (""); -#line 507 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->artist); -#line 507 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->artist = _tmp10_; -#line 508 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp11_ = g_strdup (""); -#line 508 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->copyright); -#line 508 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->copyright = _tmp11_; -#line 509 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp12_ = g_strdup (""); -#line 509 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->software); -#line 509 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->software = _tmp12_; -#line 510 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp13_ = g_strdup (""); -#line 510 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->exposure_bias); -#line 510 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->exposure_bias = _tmp13_; -#line 511 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp14_ = g_strdup (""); -#line 511 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->exposure_date); -#line 511 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->exposure_date = _tmp14_; -#line 512 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp15_ = g_strdup (""); -#line 512 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->exposure_time); -#line 512 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->exposure_time = _tmp15_; -#line 513 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp16_ = g_strdup (""); -#line 513 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->comment); -#line 513 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->comment = _tmp16_; -#line 4195 "Properties.c" -} - - -static void -extended_properties_window_extended_properties_real_get_single_properties (Properties* base, - DataView* view) -{ - ExtendedPropertiesWindowExtendedProperties * self; - DataSource* source = NULL; - DataSource* _tmp0_; - DataSource* _tmp1_; - DataSource* _tmp2_; - GError * _inner_error_ = NULL; -#line 516 "/home/jens/Source/shotwell/src/Properties.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES, ExtendedPropertiesWindowExtendedProperties); -#line 516 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_DATA_VIEW (view)); -#line 517 "/home/jens/Source/shotwell/src/Properties.vala" - PROPERTIES_CLASS (extended_properties_window_extended_properties_parent_class)->get_single_properties (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), view); -#line 519 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = data_view_get_source (view); -#line 519 "/home/jens/Source/shotwell/src/Properties.vala" - source = _tmp0_; -#line 520 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = source; -#line 520 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp1_ == NULL) { -#line 521 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (source); -#line 521 "/home/jens/Source/shotwell/src/Properties.vala" - return; -#line 4227 "Properties.c" - } -#line 523 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = source; -#line 523 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_MEDIA_SOURCE)) { -#line 4233 "Properties.c" - MediaSource* media = NULL; - DataSource* _tmp3_; - MediaSource* _tmp4_; - MediaSource* _tmp5_; - GFile* _tmp6_; - GFile* _tmp7_; - gchar* _tmp8_; - MediaSource* _tmp9_; - GFile* _tmp10_; - GFile* _tmp11_; - gchar* _tmp12_; - MediaSource* _tmp13_; - Photo* photo = NULL; - MediaSource* _tmp14_; - Photo* _tmp15_; - Photo* _tmp16_; - PhotoMetadata* metadata = NULL; - PhotoMetadata* _tmp23_; - PhotoMetadata* _tmp24_; - MetadataDateTime* _tmp25_; - MetadataDateTime* _tmp26_; - gboolean _tmp27_; - Photo* _tmp32_; - PhotoMetadata* _tmp33_; - Dimensions* _tmp34_; - PhotoMetadata* _tmp35_; - gchar* _tmp36_; - PhotoMetadata* _tmp37_; - gchar* _tmp38_; - PhotoMetadata* _tmp39_; - gchar* _tmp40_; - PhotoMetadata* _tmp41_; - gchar* _tmp42_; - PhotoMetadata* _tmp43_; - gdouble _tmp44_ = 0.0; - gchar* _tmp45_ = NULL; - gdouble _tmp46_ = 0.0; - gchar* _tmp47_ = NULL; - gdouble _tmp48_ = 0.0; - PhotoMetadata* _tmp49_; - gchar* _tmp50_; - PhotoMetadata* _tmp51_; - gchar* _tmp52_; - PhotoMetadata* _tmp53_; - gchar* _tmp54_; - PhotoMetadata* _tmp55_; - gchar* _tmp56_; - time_t exposure_time_obj = 0; - PhotoMetadata* _tmp57_; - MetadataDateTime* _tmp58_; - MetadataDateTime* _tmp59_; - time_t _tmp60_; - time_t _tmp61_; - struct tm _tmp62_ = {0}; - gchar* _tmp63_; - time_t _tmp64_; - struct tm _tmp65_ = {0}; - gchar* _tmp66_; - MediaSource* _tmp67_; - gchar* _tmp68_; -#line 524 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = source; -#line 524 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 524 "/home/jens/Source/shotwell/src/Properties.vala" - media = _tmp4_; -#line 525 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp5_ = media; -#line 525 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp6_ = media_source_get_master_file (_tmp5_); -#line 525 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp7_ = _tmp6_; -#line 525 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp8_ = g_file_get_path (_tmp7_); -#line 525 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->file_path); -#line 525 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->file_path = _tmp8_; -#line 525 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (_tmp7_); -#line 526 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp9_ = media; -#line 526 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp10_ = media_source_get_file (_tmp9_); -#line 526 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp11_ = _tmp10_; -#line 526 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp12_ = g_file_get_path (_tmp11_); -#line 526 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->development_path); -#line 526 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->development_path = _tmp12_; -#line 526 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (_tmp11_); -#line 527 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp13_ = media; -#line 527 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->filesize = media_source_get_master_filesize (_tmp13_); -#line 532 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp14_ = media; -#line 532 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, TYPE_PHOTO) ? ((Photo*) _tmp14_) : NULL); -#line 532 "/home/jens/Source/shotwell/src/Properties.vala" - photo = _tmp15_; -#line 533 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp16_ = photo; -#line 533 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp16_ == NULL) { -#line 534 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (photo); -#line 534 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (media); -#line 534 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (source); -#line 534 "/home/jens/Source/shotwell/src/Properties.vala" - return; -#line 4350 "Properties.c" - } - { - PhotoMetadata* _tmp17_ = NULL; - Photo* _tmp18_; - PhotoMetadata* _tmp19_; - PhotoMetadata* _tmp20_; -#line 543 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp18_ = photo; -#line 543 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp19_ = photo_get_master_metadata (_tmp18_, &_inner_error_); -#line 543 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp17_ = _tmp19_; -#line 543 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4365 "Properties.c" - goto __catch442_g_error; - } -#line 543 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp20_ = _tmp17_; -#line 543 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp17_ = NULL; -#line 543 "/home/jens/Source/shotwell/src/Properties.vala" - _media_metadata_unref0 (metadata); -#line 543 "/home/jens/Source/shotwell/src/Properties.vala" - metadata = _tmp20_; -#line 538 "/home/jens/Source/shotwell/src/Properties.vala" - _media_metadata_unref0 (_tmp17_); -#line 4378 "Properties.c" - } - goto __finally442; - __catch442_g_error: - { - GError* e = NULL; - Photo* _tmp21_; - PhotoMetadata* _tmp22_; -#line 538 "/home/jens/Source/shotwell/src/Properties.vala" - e = _inner_error_; -#line 538 "/home/jens/Source/shotwell/src/Properties.vala" - _inner_error_ = NULL; -#line 545 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp21_ = photo; -#line 545 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp22_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_PHOTO_SOURCE, PhotoSource)); -#line 545 "/home/jens/Source/shotwell/src/Properties.vala" - _media_metadata_unref0 (metadata); -#line 545 "/home/jens/Source/shotwell/src/Properties.vala" - metadata = _tmp22_; -#line 538 "/home/jens/Source/shotwell/src/Properties.vala" - _g_error_free0 (e); -#line 4400 "Properties.c" - } - __finally442: -#line 538 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 538 "/home/jens/Source/shotwell/src/Properties.vala" - _media_metadata_unref0 (metadata); -#line 538 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (photo); -#line 538 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (media); -#line 538 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (source); -#line 538 "/home/jens/Source/shotwell/src/Properties.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 538 "/home/jens/Source/shotwell/src/Properties.vala" - g_clear_error (&_inner_error_); -#line 538 "/home/jens/Source/shotwell/src/Properties.vala" - return; -#line 4419 "Properties.c" - } -#line 548 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp23_ = metadata; -#line 548 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp23_ == NULL) { -#line 549 "/home/jens/Source/shotwell/src/Properties.vala" - _media_metadata_unref0 (metadata); -#line 549 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (photo); -#line 549 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (media); -#line 549 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (source); -#line 549 "/home/jens/Source/shotwell/src/Properties.vala" - return; -#line 4435 "Properties.c" - } -#line 556 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp24_ = metadata; -#line 556 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp25_ = photo_metadata_get_exposure_date_time (_tmp24_); -#line 556 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp26_ = _tmp25_; -#line 556 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp27_ = _tmp26_ == NULL; -#line 556 "/home/jens/Source/shotwell/src/Properties.vala" - _metadata_date_time_unref0 (_tmp26_); -#line 556 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp27_) { -#line 4449 "Properties.c" - PhotoMetadata* _tmp28_; - Photo* _tmp29_; - MetadataDateTime* _tmp30_; - MetadataDateTime* _tmp31_; -#line 557 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp28_ = metadata; -#line 557 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp29_ = photo; -#line 557 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp30_ = metadata_date_time_new (media_source_get_timestamp (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_MEDIA_SOURCE, MediaSource))); -#line 557 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp31_ = _tmp30_; -#line 557 "/home/jens/Source/shotwell/src/Properties.vala" - photo_metadata_set_exposure_date_time (_tmp28_, _tmp31_, PHOTO_METADATA_SET_OPTION_ALL_DOMAINS); -#line 557 "/home/jens/Source/shotwell/src/Properties.vala" - _metadata_date_time_unref0 (_tmp31_); -#line 4466 "Properties.c" - } -#line 559 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp32_ = photo; -#line 559 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->is_raw = photo_get_master_file_format (_tmp32_) == PHOTO_FILE_FORMAT_RAW; -#line 560 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp33_ = metadata; -#line 560 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp34_ = photo_metadata_get_pixel_dimensions (_tmp33_); -#line 560 "/home/jens/Source/shotwell/src/Properties.vala" - _dimensions_free0 (self->priv->original_dim); -#line 560 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->original_dim = _tmp34_; -#line 561 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp35_ = metadata; -#line 561 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp36_ = photo_metadata_get_camera_make (_tmp35_); -#line 561 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->camera_make); -#line 561 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->camera_make = _tmp36_; -#line 562 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp37_ = metadata; -#line 562 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp38_ = photo_metadata_get_camera_model (_tmp37_); -#line 562 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->camera_model); -#line 562 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->camera_model = _tmp38_; -#line 563 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp39_ = metadata; -#line 563 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp40_ = photo_metadata_get_flash_string (_tmp39_); -#line 563 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->flash); -#line 563 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->flash = _tmp40_; -#line 564 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp41_ = metadata; -#line 564 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp42_ = photo_metadata_get_focal_length_string (_tmp41_); -#line 564 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->focal_length); -#line 564 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->focal_length = _tmp42_; -#line 565 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp43_ = metadata; -#line 565 "/home/jens/Source/shotwell/src/Properties.vala" - photo_metadata_get_gps (_tmp43_, &_tmp44_, &_tmp45_, &_tmp46_, &_tmp47_, &_tmp48_); -#line 565 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->gps_long = _tmp44_; -#line 565 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->gps_long_ref); -#line 565 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->gps_long_ref = _tmp45_; -#line 565 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->gps_lat = _tmp46_; -#line 565 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->gps_lat_ref); -#line 565 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->gps_lat_ref = _tmp47_; -#line 565 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->gps_alt = _tmp48_; -#line 566 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp49_ = metadata; -#line 566 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp50_ = photo_metadata_get_artist (_tmp49_); -#line 566 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->artist); -#line 566 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->artist = _tmp50_; -#line 567 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp51_ = metadata; -#line 567 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp52_ = photo_metadata_get_copyright (_tmp51_); -#line 567 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->copyright); -#line 567 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->copyright = _tmp52_; -#line 568 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp53_ = metadata; -#line 568 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp54_ = photo_metadata_get_software (_tmp53_); -#line 568 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->software); -#line 568 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->software = _tmp54_; -#line 569 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp55_ = metadata; -#line 569 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp56_ = photo_metadata_get_exposure_bias (_tmp55_); -#line 569 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->exposure_bias); -#line 569 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->exposure_bias = _tmp56_; -#line 570 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp57_ = metadata; -#line 570 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp58_ = photo_metadata_get_exposure_date_time (_tmp57_); -#line 570 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp59_ = _tmp58_; -#line 570 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp60_ = metadata_date_time_get_timestamp (_tmp59_); -#line 570 "/home/jens/Source/shotwell/src/Properties.vala" - _metadata_date_time_unref0 (_tmp59_); -#line 570 "/home/jens/Source/shotwell/src/Properties.vala" - exposure_time_obj = _tmp60_; -#line 571 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp61_ = exposure_time_obj; -#line 571 "/home/jens/Source/shotwell/src/Properties.vala" - g_time_local (_tmp61_, &_tmp62_); -#line 571 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp63_ = properties_get_prettyprint_date (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), &_tmp62_); -#line 571 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->exposure_date); -#line 571 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->exposure_date = _tmp63_; -#line 572 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp64_ = exposure_time_obj; -#line 572 "/home/jens/Source/shotwell/src/Properties.vala" - g_time_local (_tmp64_, &_tmp65_); -#line 572 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp66_ = properties_get_prettyprint_time_with_seconds (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), &_tmp65_); -#line 572 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->exposure_time); -#line 572 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->exposure_time = _tmp66_; -#line 573 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp67_ = media; -#line 573 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp68_ = media_source_get_comment (_tmp67_); -#line 573 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->comment); -#line 573 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->comment = _tmp68_; -#line 523 "/home/jens/Source/shotwell/src/Properties.vala" - _media_metadata_unref0 (metadata); -#line 523 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (photo); -#line 523 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (media); -#line 4608 "Properties.c" - } else { - DataSource* _tmp69_; -#line 574 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp69_ = source; -#line 574 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp69_, TYPE_EVENT_SOURCE)) { -#line 4615 "Properties.c" - Event* event = NULL; - DataSource* _tmp70_; - Event* _tmp71_; - Event* _tmp72_; - gchar* _tmp73_; -#line 575 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp70_ = source; -#line 575 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp71_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, TYPE_EVENT, Event)); -#line 575 "/home/jens/Source/shotwell/src/Properties.vala" - event = _tmp71_; -#line 576 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp72_ = event; -#line 576 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp73_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, TYPE_EVENT_SOURCE, EventSource)); -#line 576 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->comment); -#line 576 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->comment = _tmp73_; -#line 574 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (event); -#line 4637 "Properties.c" - } - } -#line 516 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (source); -#line 4642 "Properties.c" -} - - -static gchar* -string_replace (const gchar* self, - const gchar* old, - const gchar* replacement) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 4665 "Properties.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 4669 "Properties.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 4675 "Properties.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 4679 "Properties.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 4683 "Properties.c" - gchar* _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = g_strdup (self); -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 4691 "Properties.c" - } - { - GRegex* regex = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GRegex* _tmp5_; - GRegex* _tmp6_; - gchar* _tmp7_ = NULL; - GRegex* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_regex_escape_string (old, -1); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp5_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp4_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - regex = _tmp6_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 4719 "Properties.c" - goto __catch443_g_regex_error; - } -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 4728 "Properties.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = regex; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp9_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 4742 "Properties.c" - goto __catch443_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 4753 "Properties.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = _tmp7_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = NULL; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp10_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp7_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 4767 "Properties.c" - } - goto __finally443; - __catch443_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 4781 "Properties.c" - } - __finally443: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 4792 "Properties.c" - } -} - - -static void -extended_properties_window_extended_properties_real_internal_update_properties (Properties* base, - Page* page) -{ - ExtendedPropertiesWindowExtendedProperties * self; - gboolean _tmp94_ = FALSE; - const gchar* _tmp95_; - gboolean has_comment = FALSE; - const gchar* _tmp97_ = NULL; - gboolean _tmp98_; - gboolean _tmp100_; -#line 580 "/home/jens/Source/shotwell/src/Properties.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES, ExtendedPropertiesWindowExtendedProperties); -#line 580 "/home/jens/Source/shotwell/src/Properties.vala" - g_return_if_fail (IS_PAGE (page)); -#line 581 "/home/jens/Source/shotwell/src/Properties.vala" - PROPERTIES_CLASS (extended_properties_window_extended_properties_parent_class)->internal_update_properties (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), page); -#line 583 "/home/jens/Source/shotwell/src/Properties.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_EVENTS_DIRECTORY_PAGE)) { -#line 4816 "Properties.c" - } else { - gchar* _tmp0_ = NULL; - gboolean _tmp1_ = FALSE; - const gchar* _tmp2_; - gchar* _tmp7_ = NULL; - guint64 _tmp8_; - gboolean _tmp12_; - gchar* _tmp14_ = NULL; - gboolean _tmp15_ = FALSE; - Dimensions* _tmp16_; - const gchar* _tmp24_ = NULL; - gboolean _tmp25_ = FALSE; - const gchar* _tmp26_; - const gchar* _tmp29_ = NULL; - gboolean _tmp30_ = FALSE; - const gchar* _tmp31_; - const gchar* _tmp34_ = NULL; - gboolean _tmp35_ = FALSE; - const gchar* _tmp36_; - const gchar* _tmp39_ = NULL; - gboolean _tmp40_ = FALSE; - const gchar* _tmp41_; - const gchar* _tmp44_ = NULL; - gboolean _tmp45_ = FALSE; - const gchar* _tmp46_; - const gchar* _tmp49_ = NULL; - gboolean _tmp50_ = FALSE; - const gchar* _tmp51_; - const gchar* _tmp54_ = NULL; - gboolean _tmp55_ = FALSE; - const gchar* _tmp56_; - gchar* _tmp59_ = NULL; - gboolean _tmp60_ = FALSE; - gboolean _tmp61_ = FALSE; - gdouble _tmp62_; - gchar* _tmp69_ = NULL; - gboolean _tmp70_ = FALSE; - gboolean _tmp71_ = FALSE; - gdouble _tmp72_; - const gchar* _tmp79_ = NULL; - gboolean _tmp80_ = FALSE; - const gchar* _tmp81_; - const gchar* _tmp84_ = NULL; - gboolean _tmp85_ = FALSE; - const gchar* _tmp86_; - const gchar* _tmp89_ = NULL; - gboolean _tmp90_ = FALSE; - const gchar* _tmp91_; -#line 586 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp2_ = self->priv->file_path; -#line 586 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp2_, "") != 0) { -#line 4869 "Properties.c" - const gchar* _tmp3_; -#line 586 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp3_ = self->priv->file_path; -#line 586 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = _tmp3_ != NULL; -#line 4875 "Properties.c" - } else { -#line 586 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp1_ = FALSE; -#line 4879 "Properties.c" - } -#line 586 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp1_) { -#line 4883 "Properties.c" - const gchar* _tmp4_; - gchar* _tmp5_; -#line 587 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp4_ = self->priv->file_path; -#line 587 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp5_ = string_replace (_tmp4_, "&", "&"); -#line 587 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp0_); -#line 587 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = _tmp5_; -#line 4894 "Properties.c" - } else { - gchar* _tmp6_; -#line 587 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp6_ = g_strdup (EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE); -#line 587 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp0_); -#line 587 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp0_ = _tmp6_; -#line 4903 "Properties.c" - } -#line 586 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Location:"), _tmp0_, FALSE); -#line 589 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp8_ = self->priv->filesize; -#line 589 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp8_ > ((guint64) 0)) { -#line 4911 "Properties.c" - guint64 _tmp9_; - gchar* _tmp10_; -#line 590 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp9_ = self->priv->filesize; -#line 590 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp10_ = g_format_size_full ((guint64) ((gint64) _tmp9_), G_FORMAT_SIZE_DEFAULT); -#line 590 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp7_); -#line 590 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp7_ = _tmp10_; -#line 4922 "Properties.c" - } else { - gchar* _tmp11_; -#line 590 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp11_ = g_strdup (EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE); -#line 590 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp7_); -#line 590 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp7_ = _tmp11_; -#line 4931 "Properties.c" - } -#line 589 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("File size:"), _tmp7_, FALSE); -#line 592 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp12_ = self->priv->is_raw; -#line 592 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp12_) { -#line 4939 "Properties.c" - const gchar* _tmp13_; -#line 593 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp13_ = self->priv->development_path; -#line 593 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Current Development:"), _tmp13_, FALSE); -#line 4945 "Properties.c" - } -#line 595 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp16_ = self->priv->original_dim; -#line 595 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp16_ != NULL) { -#line 4951 "Properties.c" - Dimensions* _tmp17_; -#line 595 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp17_ = self->priv->original_dim; -#line 595 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp15_ = dimensions_has_area (_tmp17_); -#line 4957 "Properties.c" - } else { -#line 595 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp15_ = FALSE; -#line 4961 "Properties.c" - } -#line 595 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp15_) { -#line 4965 "Properties.c" - Dimensions* _tmp18_; - gint _tmp19_; - Dimensions* _tmp20_; - gint _tmp21_; - gchar* _tmp22_; -#line 596 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp18_ = self->priv->original_dim; -#line 596 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp19_ = (*_tmp18_).width; -#line 596 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp20_ = self->priv->original_dim; -#line 596 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp21_ = (*_tmp20_).height; -#line 596 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp22_ = g_strdup_printf ("%d × %d", _tmp19_, _tmp21_); -#line 596 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp14_); -#line 596 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp14_ = _tmp22_; -#line 4985 "Properties.c" - } else { - gchar* _tmp23_; -#line 596 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp23_ = g_strdup (EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE); -#line 596 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp14_); -#line 596 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp14_ = _tmp23_; -#line 4994 "Properties.c" - } -#line 595 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Original dimensions:"), _tmp14_, FALSE); -#line 598 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp26_ = self->priv->camera_make; -#line 598 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp26_, "") != 0) { -#line 5002 "Properties.c" - const gchar* _tmp27_; -#line 598 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp27_ = self->priv->camera_make; -#line 598 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp25_ = _tmp27_ != NULL; -#line 5008 "Properties.c" - } else { -#line 598 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp25_ = FALSE; -#line 5012 "Properties.c" - } -#line 598 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp25_) { -#line 5016 "Properties.c" - const gchar* _tmp28_; -#line 599 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp28_ = self->priv->camera_make; -#line 599 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp24_ = _tmp28_; -#line 5022 "Properties.c" - } else { -#line 599 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp24_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE; -#line 5026 "Properties.c" - } -#line 598 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Camera make:"), _tmp24_, FALSE); -#line 601 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp31_ = self->priv->camera_model; -#line 601 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp31_, "") != 0) { -#line 5034 "Properties.c" - const gchar* _tmp32_; -#line 601 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp32_ = self->priv->camera_model; -#line 601 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp30_ = _tmp32_ != NULL; -#line 5040 "Properties.c" - } else { -#line 601 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp30_ = FALSE; -#line 5044 "Properties.c" - } -#line 601 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp30_) { -#line 5048 "Properties.c" - const gchar* _tmp33_; -#line 602 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp33_ = self->priv->camera_model; -#line 602 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp29_ = _tmp33_; -#line 5054 "Properties.c" - } else { -#line 602 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp29_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE; -#line 5058 "Properties.c" - } -#line 601 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Camera model:"), _tmp29_, FALSE); -#line 604 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp36_ = self->priv->flash; -#line 604 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp36_, "") != 0) { -#line 5066 "Properties.c" - const gchar* _tmp37_; -#line 604 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp37_ = self->priv->flash; -#line 604 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp35_ = _tmp37_ != NULL; -#line 5072 "Properties.c" - } else { -#line 604 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp35_ = FALSE; -#line 5076 "Properties.c" - } -#line 604 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp35_) { -#line 5080 "Properties.c" - const gchar* _tmp38_; -#line 604 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp38_ = self->priv->flash; -#line 604 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp34_ = _tmp38_; -#line 5086 "Properties.c" - } else { -#line 604 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp34_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE; -#line 5090 "Properties.c" - } -#line 604 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Flash:"), _tmp34_, FALSE); -#line 606 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp41_ = self->priv->focal_length; -#line 606 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp41_, "") != 0) { -#line 5098 "Properties.c" - const gchar* _tmp42_; -#line 606 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp42_ = self->priv->focal_length; -#line 606 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp40_ = _tmp42_ != NULL; -#line 5104 "Properties.c" - } else { -#line 606 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp40_ = FALSE; -#line 5108 "Properties.c" - } -#line 606 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp40_) { -#line 5112 "Properties.c" - const gchar* _tmp43_; -#line 607 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp43_ = self->priv->focal_length; -#line 607 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp39_ = _tmp43_; -#line 5118 "Properties.c" - } else { -#line 607 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp39_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE; -#line 5122 "Properties.c" - } -#line 606 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Focal length:"), _tmp39_, FALSE); -#line 609 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp46_ = self->priv->exposure_date; -#line 609 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp46_, "") != 0) { -#line 5130 "Properties.c" - const gchar* _tmp47_; -#line 609 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp47_ = self->priv->exposure_date; -#line 609 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp45_ = _tmp47_ != NULL; -#line 5136 "Properties.c" - } else { -#line 609 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp45_ = FALSE; -#line 5140 "Properties.c" - } -#line 609 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp45_) { -#line 5144 "Properties.c" - const gchar* _tmp48_; -#line 610 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp48_ = self->priv->exposure_date; -#line 610 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp44_ = _tmp48_; -#line 5150 "Properties.c" - } else { -#line 610 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp44_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE; -#line 5154 "Properties.c" - } -#line 609 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Exposure date:"), _tmp44_, FALSE); -#line 612 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp51_ = self->priv->exposure_time; -#line 612 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp51_, "") != 0) { -#line 5162 "Properties.c" - const gchar* _tmp52_; -#line 612 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp52_ = self->priv->exposure_time; -#line 612 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp50_ = _tmp52_ != NULL; -#line 5168 "Properties.c" - } else { -#line 612 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp50_ = FALSE; -#line 5172 "Properties.c" - } -#line 612 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp50_) { -#line 5176 "Properties.c" - const gchar* _tmp53_; -#line 613 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp53_ = self->priv->exposure_time; -#line 613 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp49_ = _tmp53_; -#line 5182 "Properties.c" - } else { -#line 613 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp49_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE; -#line 5186 "Properties.c" - } -#line 612 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Exposure time:"), _tmp49_, FALSE); -#line 615 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp56_ = self->priv->exposure_bias; -#line 615 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp56_, "") != 0) { -#line 5194 "Properties.c" - const gchar* _tmp57_; -#line 615 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp57_ = self->priv->exposure_bias; -#line 615 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp55_ = _tmp57_ != NULL; -#line 5200 "Properties.c" - } else { -#line 615 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp55_ = FALSE; -#line 5204 "Properties.c" - } -#line 615 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp55_) { -#line 5208 "Properties.c" - const gchar* _tmp58_; -#line 615 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp58_ = self->priv->exposure_bias; -#line 615 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp54_ = _tmp58_; -#line 5214 "Properties.c" - } else { -#line 615 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp54_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE; -#line 5218 "Properties.c" - } -#line 615 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Exposure bias:"), _tmp54_, FALSE); -#line 617 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp62_ = self->priv->gps_lat; -#line 617 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp62_ != ((gdouble) -1)) { -#line 5226 "Properties.c" - const gchar* _tmp63_; -#line 617 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp63_ = self->priv->gps_lat_ref; -#line 617 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp61_ = g_strcmp0 (_tmp63_, "") != 0; -#line 5232 "Properties.c" - } else { -#line 617 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp61_ = FALSE; -#line 5236 "Properties.c" - } -#line 617 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp61_) { -#line 5240 "Properties.c" - const gchar* _tmp64_; -#line 618 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp64_ = self->priv->gps_lat_ref; -#line 618 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp60_ = _tmp64_ != NULL; -#line 5246 "Properties.c" - } else { -#line 617 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp60_ = FALSE; -#line 5250 "Properties.c" - } -#line 617 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp60_) { -#line 5254 "Properties.c" - gdouble _tmp65_; - const gchar* _tmp66_; - gchar* _tmp67_; -#line 618 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp65_ = self->priv->gps_lat; -#line 618 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp66_ = self->priv->gps_lat_ref; -#line 618 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp67_ = g_strdup_printf ("%f °%s", _tmp65_, _tmp66_); -#line 618 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp59_); -#line 618 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp59_ = _tmp67_; -#line 5268 "Properties.c" - } else { - gchar* _tmp68_; -#line 618 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp68_ = g_strdup (EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE); -#line 618 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp59_); -#line 618 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp59_ = _tmp68_; -#line 5277 "Properties.c" - } -#line 617 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("GPS latitude:"), _tmp59_, FALSE); -#line 620 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp72_ = self->priv->gps_long; -#line 620 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp72_ != ((gdouble) -1)) { -#line 5285 "Properties.c" - const gchar* _tmp73_; -#line 620 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp73_ = self->priv->gps_long_ref; -#line 620 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp71_ = g_strcmp0 (_tmp73_, "") != 0; -#line 5291 "Properties.c" - } else { -#line 620 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp71_ = FALSE; -#line 5295 "Properties.c" - } -#line 620 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp71_) { -#line 5299 "Properties.c" - const gchar* _tmp74_; -#line 621 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp74_ = self->priv->gps_long_ref; -#line 621 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp70_ = _tmp74_ != NULL; -#line 5305 "Properties.c" - } else { -#line 620 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp70_ = FALSE; -#line 5309 "Properties.c" - } -#line 620 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp70_) { -#line 5313 "Properties.c" - gdouble _tmp75_; - const gchar* _tmp76_; - gchar* _tmp77_; -#line 621 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp75_ = self->priv->gps_long; -#line 621 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp76_ = self->priv->gps_long_ref; -#line 621 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp77_ = g_strdup_printf ("%f °%s", _tmp75_, _tmp76_); -#line 621 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp69_); -#line 621 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp69_ = _tmp77_; -#line 5327 "Properties.c" - } else { - gchar* _tmp78_; -#line 621 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp78_ = g_strdup (EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE); -#line 621 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp69_); -#line 621 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp69_ = _tmp78_; -#line 5336 "Properties.c" - } -#line 620 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("GPS longitude:"), _tmp69_, FALSE); -#line 623 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp81_ = self->priv->artist; -#line 623 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp81_, "") != 0) { -#line 5344 "Properties.c" - const gchar* _tmp82_; -#line 623 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp82_ = self->priv->artist; -#line 623 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp80_ = _tmp82_ != NULL; -#line 5350 "Properties.c" - } else { -#line 623 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp80_ = FALSE; -#line 5354 "Properties.c" - } -#line 623 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp80_) { -#line 5358 "Properties.c" - const gchar* _tmp83_; -#line 623 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp83_ = self->priv->artist; -#line 623 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp79_ = _tmp83_; -#line 5364 "Properties.c" - } else { -#line 623 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp79_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE; -#line 5368 "Properties.c" - } -#line 623 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Artist:"), _tmp79_, FALSE); -#line 625 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp86_ = self->priv->copyright; -#line 625 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp86_, "") != 0) { -#line 5376 "Properties.c" - const gchar* _tmp87_; -#line 625 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp87_ = self->priv->copyright; -#line 625 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp85_ = _tmp87_ != NULL; -#line 5382 "Properties.c" - } else { -#line 625 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp85_ = FALSE; -#line 5386 "Properties.c" - } -#line 625 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp85_) { -#line 5390 "Properties.c" - const gchar* _tmp88_; -#line 625 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp88_ = self->priv->copyright; -#line 625 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp84_ = _tmp88_; -#line 5396 "Properties.c" - } else { -#line 625 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp84_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE; -#line 5400 "Properties.c" - } -#line 625 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Copyright:"), _tmp84_, FALSE); -#line 627 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp91_ = self->priv->software; -#line 627 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp91_, "") != 0) { -#line 5408 "Properties.c" - const gchar* _tmp92_; -#line 627 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp92_ = self->priv->software; -#line 627 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp90_ = _tmp92_ != NULL; -#line 5414 "Properties.c" - } else { -#line 627 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp90_ = FALSE; -#line 5418 "Properties.c" - } -#line 627 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp90_) { -#line 5422 "Properties.c" - const gchar* _tmp93_; -#line 627 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp93_ = self->priv->software; -#line 627 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp89_ = _tmp93_; -#line 5428 "Properties.c" - } else { -#line 627 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp89_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE; -#line 5432 "Properties.c" - } -#line 627 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Software:"), _tmp89_, FALSE); -#line 583 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp69_); -#line 583 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp59_); -#line 583 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp14_); -#line 583 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp7_); -#line 583 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (_tmp0_); -#line 5446 "Properties.c" - } -#line 630 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp95_ = self->priv->comment; -#line 630 "/home/jens/Source/shotwell/src/Properties.vala" - if (g_strcmp0 (_tmp95_, "") != 0) { -#line 5452 "Properties.c" - const gchar* _tmp96_; -#line 630 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp96_ = self->priv->comment; -#line 630 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp94_ = _tmp96_ != NULL; -#line 5458 "Properties.c" - } else { -#line 630 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp94_ = FALSE; -#line 5462 "Properties.c" - } -#line 630 "/home/jens/Source/shotwell/src/Properties.vala" - has_comment = _tmp94_; -#line 631 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp98_ = has_comment; -#line 631 "/home/jens/Source/shotwell/src/Properties.vala" - if (_tmp98_) { -#line 5470 "Properties.c" - const gchar* _tmp99_; -#line 631 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp99_ = self->priv->comment; -#line 631 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp97_ = _tmp99_; -#line 5476 "Properties.c" - } else { -#line 631 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp97_ = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_NO_VALUE; -#line 5480 "Properties.c" - } -#line 631 "/home/jens/Source/shotwell/src/Properties.vala" - _tmp100_ = has_comment; -#line 631 "/home/jens/Source/shotwell/src/Properties.vala" - properties_add_line (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PROPERTIES, Properties), _ ("Comment:"), _tmp97_, _tmp100_); -#line 5486 "Properties.c" -} - - -static ExtendedPropertiesWindowExtendedProperties* -extended_properties_window_extended_properties_construct (GType object_type) -{ - ExtendedPropertiesWindowExtendedProperties * self = NULL; -#line 460 "/home/jens/Source/shotwell/src/Properties.vala" - self = (ExtendedPropertiesWindowExtendedProperties*) properties_construct (object_type); -#line 460 "/home/jens/Source/shotwell/src/Properties.vala" - return self; -#line 5498 "Properties.c" -} - - -static ExtendedPropertiesWindowExtendedProperties* -extended_properties_window_extended_properties_new (void) -{ -#line 460 "/home/jens/Source/shotwell/src/Properties.vala" - return extended_properties_window_extended_properties_construct (EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES); -#line 5507 "Properties.c" -} - - -static void -extended_properties_window_extended_properties_class_init (ExtendedPropertiesWindowExtendedPropertiesClass * klass) -{ -#line 460 "/home/jens/Source/shotwell/src/Properties.vala" - extended_properties_window_extended_properties_parent_class = g_type_class_peek_parent (klass); -#line 460 "/home/jens/Source/shotwell/src/Properties.vala" - g_type_class_add_private (klass, sizeof (ExtendedPropertiesWindowExtendedPropertiesPrivate)); -#line 460 "/home/jens/Source/shotwell/src/Properties.vala" - ((PropertiesClass *) klass)->clear_properties = (void (*) (Properties *)) extended_properties_window_extended_properties_real_clear_properties; -#line 460 "/home/jens/Source/shotwell/src/Properties.vala" - ((PropertiesClass *) klass)->get_single_properties = (void (*) (Properties *, DataView*)) extended_properties_window_extended_properties_real_get_single_properties; -#line 460 "/home/jens/Source/shotwell/src/Properties.vala" - ((PropertiesClass *) klass)->internal_update_properties = (void (*) (Properties *, Page*)) extended_properties_window_extended_properties_real_internal_update_properties; -#line 460 "/home/jens/Source/shotwell/src/Properties.vala" - G_OBJECT_CLASS (klass)->finalize = extended_properties_window_extended_properties_finalize; -#line 5526 "Properties.c" -} - - -static void -extended_properties_window_extended_properties_instance_init (ExtendedPropertiesWindowExtendedProperties * self) -{ -#line 460 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv = EXTENDED_PROPERTIES_WINDOW_EXTENDED_PROPERTIES_GET_PRIVATE (self); -#line 5535 "Properties.c" -} - - -static void -extended_properties_window_extended_properties_finalize (GObject * obj) -{ - ExtendedPropertiesWindowExtendedProperties * self; -#line 460 "/home/jens/Source/shotwell/src/Properties.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EXTENDED_PROPERTIES_WINDOW_TYPE_EXTENDED_PROPERTIES, ExtendedPropertiesWindowExtendedProperties); -#line 463 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->file_path); -#line 465 "/home/jens/Source/shotwell/src/Properties.vala" - _dimensions_free0 (self->priv->original_dim); -#line 466 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->camera_make); -#line 467 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->camera_model); -#line 468 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->flash); -#line 469 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->focal_length); -#line 471 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->gps_lat_ref); -#line 473 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->gps_long_ref); -#line 475 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->artist); -#line 476 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->copyright); -#line 477 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->software); -#line 478 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->exposure_bias); -#line 479 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->exposure_date); -#line 480 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->exposure_time); -#line 482 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->development_path); -#line 489 "/home/jens/Source/shotwell/src/Properties.vala" - _g_free0 (self->priv->comment); -#line 460 "/home/jens/Source/shotwell/src/Properties.vala" - G_OBJECT_CLASS (extended_properties_window_extended_properties_parent_class)->finalize (obj); -#line 5579 "Properties.c" -} - - -static GType -extended_properties_window_extended_properties_get_type (void) -{ - static volatile gsize extended_properties_window_extended_properties_type_id__volatile = 0; - if (g_once_init_enter (&extended_properties_window_extended_properties_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ExtendedPropertiesWindowExtendedPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) extended_properties_window_extended_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ExtendedPropertiesWindowExtendedProperties), 0, (GInstanceInitFunc) extended_properties_window_extended_properties_instance_init, NULL }; - GType extended_properties_window_extended_properties_type_id; - extended_properties_window_extended_properties_type_id = g_type_register_static (TYPE_PROPERTIES, "ExtendedPropertiesWindowExtendedProperties", &g_define_type_info, 0); - g_once_init_leave (&extended_properties_window_extended_properties_type_id__volatile, extended_properties_window_extended_properties_type_id); - } - return extended_properties_window_extended_properties_type_id__volatile; -} - - -static void -extended_properties_window_class_init (ExtendedPropertiesWindowClass * klass) -{ -#line 457 "/home/jens/Source/shotwell/src/Properties.vala" - extended_properties_window_parent_class = g_type_class_peek_parent (klass); -#line 457 "/home/jens/Source/shotwell/src/Properties.vala" - g_type_class_add_private (klass, sizeof (ExtendedPropertiesWindowPrivate)); -#line 457 "/home/jens/Source/shotwell/src/Properties.vala" - ((GtkWidgetClass *) klass)->button_press_event = (gboolean (*) (GtkWidget *, GdkEventButton*)) extended_properties_window_real_button_press_event; -#line 457 "/home/jens/Source/shotwell/src/Properties.vala" - ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) extended_properties_window_real_key_press_event; -#line 457 "/home/jens/Source/shotwell/src/Properties.vala" - ((GtkWidgetClass *) klass)->show_all = (void (*) (GtkWidget *)) extended_properties_window_real_show_all; -#line 457 "/home/jens/Source/shotwell/src/Properties.vala" - G_OBJECT_CLASS (klass)->finalize = extended_properties_window_finalize; -#line 5612 "Properties.c" -} - - -static void -extended_properties_window_instance_init (ExtendedPropertiesWindow * self) -{ -#line 457 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv = EXTENDED_PROPERTIES_WINDOW_GET_PRIVATE (self); -#line 458 "/home/jens/Source/shotwell/src/Properties.vala" - self->priv->properties = NULL; -#line 5623 "Properties.c" -} - - -static void -extended_properties_window_finalize (GObject * obj) -{ - ExtendedPropertiesWindow * self; -#line 457 "/home/jens/Source/shotwell/src/Properties.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindow); -#line 458 "/home/jens/Source/shotwell/src/Properties.vala" - _g_object_unref0 (self->priv->properties); -#line 457 "/home/jens/Source/shotwell/src/Properties.vala" - G_OBJECT_CLASS (extended_properties_window_parent_class)->finalize (obj); -#line 5637 "Properties.c" -} - - -GType -extended_properties_window_get_type (void) -{ - static volatile gsize extended_properties_window_type_id__volatile = 0; - if (g_once_init_enter (&extended_properties_window_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ExtendedPropertiesWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) extended_properties_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ExtendedPropertiesWindow), 0, (GInstanceInitFunc) extended_properties_window_instance_init, NULL }; - GType extended_properties_window_type_id; - extended_properties_window_type_id = g_type_register_static (gtk_dialog_get_type (), "ExtendedPropertiesWindow", &g_define_type_info, 0); - g_once_init_leave (&extended_properties_window_type_id__volatile, extended_properties_window_type_id); - } - return extended_properties_window_type_id__volatile; -} - - - diff --git a/src/Properties.vala b/src/Properties.vala index 3cbd5af..2a07bb0 100644 --- a/src/Properties.vala +++ b/src/Properties.vala @@ -8,53 +8,64 @@ private abstract class Properties : Gtk.Grid { uint line_count = 0; public Properties() { - row_spacing = 0; - column_spacing = 6; + row_spacing = 6; + column_spacing = 12; } - protected void add_line(string label_text, string info_text, bool multi_line = false) { + protected void add_line(string label_text, string info_text, bool multi_line = false, string? href = null) { Gtk.Label label = new Gtk.Label(""); Gtk.Widget info; label.set_justify(Gtk.Justification.RIGHT); + label.get_style_context().add_class("dim-label"); label.set_markup(GLib.Markup.printf_escaped("%s", label_text)); if (multi_line) { Gtk.ScrolledWindow info_scroll = new Gtk.ScrolledWindow(null, null); - info_scroll.shadow_type = Gtk.ShadowType.ETCHED_IN; + info_scroll.shadow_type = Gtk.ShadowType.NONE; Gtk.TextView view = new Gtk.TextView(); // by default TextView widgets have a white background, which // makes sense during editing. In this instance we only *show* // the content and thus want that the parent's background color // is inherited to the TextView - Gtk.StyleContext context = info_scroll.get_style_context(); - view.override_background_color (Gtk.StateFlags.NORMAL, - context.get_background_color(Gtk.StateFlags.NORMAL)); + view.get_style_context().add_class("shotwell-static"); view.set_wrap_mode(Gtk.WrapMode.WORD); view.set_cursor_visible(false); view.set_editable(false); view.buffer.text = is_string_empty(info_text) ? "" : info_text; + view.hexpand = true; info_scroll.add(view); - label.xalign = 1.0f; - label.yalign = 0.0f; + label.halign = Gtk.Align.END; + label.valign = Gtk.Align.START; info = (Gtk.Widget) info_scroll; } else { Gtk.Label info_label = new Gtk.Label(""); - info_label.set_markup(is_string_empty(info_text) ? "" : info_text); + if (!is_string_empty(info_text)) { + info_label.set_tooltip_markup(info_text); + } + + if (href == null) { + info_label.set_markup(is_string_empty(info_text) ? "" : info_text); + } else { + info_label.set_markup("%s".printf(href, info_text)); + } info_label.set_ellipsize(Pango.EllipsizeMode.END); - info_label.xalign = 0.0f; - info_label.yalign = 0.5f; + info_label.halign = Gtk.Align.START; + info_label.valign = Gtk.Align.FILL; + info_label.hexpand = false; + info_label.vexpand = false; + info_label.set_justify(Gtk.Justification.LEFT); info_label.set_selectable(true); - label.xalign = 1.0f; - label.yalign = 0.5f; + label.halign = Gtk.Align.END; + label.valign = Gtk.Align.FILL; info = (Gtk.Widget) info_label; } attach(label, 0, (int) line_count, 1, 1); if (multi_line) { - attach(info, 1, (int) line_count, 1, 2); + attach(info, 1, (int) line_count, 1, 3); } else { attach(info, 1, (int) line_count, 1, 1); } @@ -144,13 +155,6 @@ private abstract class Properties : Gtk.Grid { public virtual void internal_update_properties(Page page) { get_properties(page); } - - public void unselect_text() { - foreach (Gtk.Widget child in get_children()) { - if (child is Gtk.Label) - ((Gtk.Label) child).select_region(0, 0); - } - } } private class BasicProperties : Properties { @@ -454,237 +458,191 @@ private class BasicProperties : Properties { } } -private class ExtendedPropertiesWindow : Gtk.Dialog { - private ExtendedProperties properties = null; - - private class ExtendedProperties : Properties { - private const string NO_VALUE = ""; - // Photo stuff - private string file_path; - private uint64 filesize; - private Dimensions? original_dim; - private string camera_make; - private string camera_model; - private string flash; - private string focal_length; - private double gps_lat; - private string gps_lat_ref; - private double gps_long; - private string gps_long_ref; - private double gps_alt; - private string artist; - private string copyright; - private string software; - private string exposure_bias; - private string exposure_date; - private string exposure_time; - private bool is_raw; - private string? development_path; - - // Event stuff - // nothing here which is not already shown in the BasicProperties but - // comments, which are common, see below +private class ExtendedProperties : Properties { + private const string NO_VALUE = ""; + // Photo stuff + private string file_path; + private uint64 filesize; + private Dimensions? original_dim; + private string camera_make; + private string camera_model; + private string flash; + private string focal_length; + private double gps_lat; + private string gps_lat_ref; + private double gps_long; + private string gps_long_ref; + private double gps_alt; + private string artist; + private string copyright; + private string software; + private string exposure_bias; + private string exposure_date; + private string exposure_time; + private bool is_raw; + private string? development_path; + private const string OSM_LINK_TEMPLATE = "https://www.openstreetmap.org/?mlat=%1$f&mlon=%2$f#map=16/%1$f/%2$f"; + + public ExtendedProperties() { + base(); + row_spacing = 6; + } + + // Event stuff + // nothing here which is not already shown in the BasicProperties but + // comments, which are common, see below + + // common stuff + private string comment; - // common stuff - private string comment; - - protected override void clear_properties() { - base.clear_properties(); - - file_path = ""; - development_path = ""; - is_raw = false; - filesize = 0; - original_dim = Dimensions(0, 0); - camera_make = ""; - camera_model = ""; - flash = ""; - focal_length = ""; - gps_lat = -1; - gps_lat_ref = ""; - gps_long = -1; - gps_long_ref = ""; - artist = ""; - copyright = ""; - software = ""; - exposure_bias = ""; - exposure_date = ""; - exposure_time = ""; - comment = ""; - } + protected override void clear_properties() { + base.clear_properties(); + + file_path = ""; + development_path = ""; + is_raw = false; + filesize = 0; + original_dim = Dimensions(0, 0); + camera_make = ""; + camera_model = ""; + flash = ""; + focal_length = ""; + gps_lat = -1; + gps_lat_ref = ""; + gps_long = -1; + gps_long_ref = ""; + artist = ""; + copyright = ""; + software = ""; + exposure_bias = ""; + exposure_date = ""; + exposure_time = ""; + comment = ""; + } + + protected override void get_single_properties(DataView view) { + base.get_single_properties(view); + + DataSource source = view.get_source(); + if (source == null) + return; + + if (source is MediaSource) { + MediaSource media = (MediaSource) source; + file_path = media.get_master_file().get_path(); + development_path = media.get_file().get_path(); + filesize = media.get_master_filesize(); + + // as of right now, all extended properties other than filesize, filepath & comment aren't + // applicable to non-photo media types, so if the current media source isn't a photo, + // just do a short-circuit return + Photo photo = media as Photo; + if (photo == null) + return; - protected override void get_single_properties(DataView view) { - base.get_single_properties(view); + PhotoMetadata? metadata; + + try { + // For some raw files, the developments may not contain metadata (please + // see the comment about cameras generating 'crazy' exif segments in + // Photo.develop_photo() for why), and so we'll want to display what was + // in the original raw file instead. + metadata = photo.get_master_metadata(); + } catch (Error e) { + metadata = photo.get_metadata(); + } - DataSource source = view.get_source(); - if (source == null) + if (metadata == null) return; - if (source is MediaSource) { - MediaSource media = (MediaSource) source; - file_path = media.get_master_file().get_path(); - development_path = media.get_file().get_path(); - filesize = media.get_master_filesize(); - - // as of right now, all extended properties other than filesize, filepath & comment aren't - // applicable to non-photo media types, so if the current media source isn't a photo, - // just do a short-circuit return - Photo photo = media as Photo; - if (photo == null) - return; + // Fix up any timestamp weirdness. + // + // If the exposure date wasn't properly set (the most likely cause of this + // is a raw with a metadataless development), use the one from the photo + // row. + if (metadata.get_exposure_date_time() == null) + metadata.set_exposure_date_time(new MetadataDateTime(photo.get_timestamp())); - PhotoMetadata? metadata; - - try { - // For some raw files, the developments may not contain metadata (please - // see the comment about cameras generating 'crazy' exif segments in - // Photo.develop_photo() for why), and so we'll want to display what was - // in the original raw file instead. - metadata = photo.get_master_metadata(); - } catch (Error e) { - metadata = photo.get_metadata(); - } - - if (metadata == null) - return; - - // Fix up any timestamp weirdness. - // - // If the exposure date wasn't properly set (the most likely cause of this - // is a raw with a metadataless development), use the one from the photo - // row. - if (metadata.get_exposure_date_time() == null) - metadata.set_exposure_date_time(new MetadataDateTime(photo.get_timestamp())); - - is_raw = (photo.get_master_file_format() == PhotoFileFormat.RAW); - original_dim = metadata.get_pixel_dimensions(); - camera_make = metadata.get_camera_make(); - camera_model = metadata.get_camera_model(); - flash = metadata.get_flash_string(); - focal_length = metadata.get_focal_length_string(); - metadata.get_gps(out gps_long, out gps_long_ref, out gps_lat, out gps_lat_ref, out gps_alt); - artist = metadata.get_artist(); - copyright = metadata.get_copyright(); - software = metadata.get_software(); - exposure_bias = metadata.get_exposure_bias(); - time_t exposure_time_obj = metadata.get_exposure_date_time().get_timestamp(); - exposure_date = get_prettyprint_date(Time.local(exposure_time_obj)); - exposure_time = get_prettyprint_time_with_seconds(Time.local(exposure_time_obj)); - comment = media.get_comment(); - } else if (source is EventSource) { - Event event = (Event) source; - comment = event.get_comment(); - } + is_raw = (photo.get_master_file_format() == PhotoFileFormat.RAW); + original_dim = metadata.get_pixel_dimensions(); + camera_make = metadata.get_camera_make(); + camera_model = metadata.get_camera_model(); + flash = metadata.get_flash_string(); + focal_length = metadata.get_focal_length_string(); + metadata.get_gps(out gps_long, out gps_long_ref, out gps_lat, out gps_lat_ref, out gps_alt); + artist = metadata.get_artist(); + copyright = metadata.get_copyright(); + software = metadata.get_software(); + exposure_bias = metadata.get_exposure_bias(); + time_t exposure_time_obj = metadata.get_exposure_date_time().get_timestamp(); + exposure_date = get_prettyprint_date(Time.local(exposure_time_obj)); + exposure_time = get_prettyprint_time_with_seconds(Time.local(exposure_time_obj)); + comment = media.get_comment(); + } else if (source is EventSource) { + Event event = (Event) source; + comment = event.get_comment(); } - - public override void internal_update_properties(Page page) { - base.internal_update_properties(page); + } - if (page is EventsDirectoryPage) { - // nothing special to be done for now for Events - } else { - add_line(_("Location:"), (file_path != "" && file_path != null) ? - file_path.replace("&", "&") : NO_VALUE); + public override void internal_update_properties(Page page) { + base.internal_update_properties(page); - add_line(_("File size:"), (filesize > 0) ? - format_size((int64) filesize) : NO_VALUE); + if (page is EventsDirectoryPage) { + // nothing special to be done for now for Events + } else { + add_line(_("Location:"), (file_path != "" && file_path != null) ? + file_path.replace("&", "&") : NO_VALUE); - if (is_raw) - add_line(_("Current Development:"), development_path); + add_line(_("File size:"), (filesize > 0) ? + format_size((int64) filesize) : NO_VALUE); - add_line(_("Original dimensions:"), (original_dim != null && original_dim.has_area()) ? - "%d × %d".printf(original_dim.width, original_dim.height) : NO_VALUE); + if (is_raw) + add_line(_("Current Development:"), development_path); - add_line(_("Camera make:"), (camera_make != "" && camera_make != null) ? - camera_make : NO_VALUE); + add_line(_("Original dimensions:"), (original_dim != null && original_dim.has_area()) ? + "%d × %d".printf(original_dim.width, original_dim.height) : NO_VALUE); - add_line(_("Camera model:"), (camera_model != "" && camera_model != null) ? - camera_model : NO_VALUE); + add_line(_("Camera make:"), (camera_make != "" && camera_make != null) ? + camera_make : NO_VALUE); - add_line(_("Flash:"), (flash != "" && flash != null) ? flash : NO_VALUE); + add_line(_("Camera model:"), (camera_model != "" && camera_model != null) ? + camera_model : NO_VALUE); - add_line(_("Focal length:"), (focal_length != "" && focal_length != null) ? - focal_length : NO_VALUE); - - add_line(_("Exposure date:"), (exposure_date != "" && exposure_date != null) ? - exposure_date : NO_VALUE); - - add_line(_("Exposure time:"), (exposure_time != "" && exposure_time != null) ? - exposure_time : NO_VALUE); - - add_line(_("Exposure bias:"), (exposure_bias != "" && exposure_bias != null) ? exposure_bias : NO_VALUE); + add_line(_("Flash:"), (flash != "" && flash != null) ? flash : NO_VALUE); + + add_line(_("Focal length:"), (focal_length != "" && focal_length != null) ? + focal_length : NO_VALUE); - add_line(_("GPS latitude:"), (gps_lat != -1 && gps_lat_ref != "" && - gps_lat_ref != null) ? "%f °%s".printf(gps_lat, gps_lat_ref) : NO_VALUE); + add_line(_("Exposure date:"), (exposure_date != "" && exposure_date != null) ? + exposure_date : NO_VALUE); - add_line(_("GPS longitude:"), (gps_long != -1 && gps_long_ref != "" && - gps_long_ref != null) ? "%f °%s".printf(gps_long, gps_long_ref) : NO_VALUE); + add_line(_("Exposure time:"), (exposure_time != "" && exposure_time != null) ? + exposure_time : NO_VALUE); - add_line(_("Artist:"), (artist != "" && artist != null) ? artist : NO_VALUE); + add_line(_("Exposure bias:"), (exposure_bias != "" && exposure_bias != null) ? exposure_bias : NO_VALUE); - add_line(_("Copyright:"), (copyright != "" && copyright != null) ? copyright : NO_VALUE); - - add_line(_("Software:"), (software != "" && software != null) ? software : NO_VALUE); + string? osm_link = null; + if (gps_lat != -1 && gps_lat_ref != "" && gps_long != -1 && gps_long_ref != "") { + var old_locale = Intl.setlocale(LocaleCategory.NUMERIC, "C"); + osm_link = OSM_LINK_TEMPLATE.printf(gps_lat, gps_long); + Intl.setlocale(LocaleCategory.NUMERIC, old_locale); } - bool has_comment = (comment != "" && comment != null); - add_line(_("Comment:"), has_comment ? comment : NO_VALUE, has_comment); - } - } + add_line(_("GPS latitude:"), (gps_lat != -1 && gps_lat_ref != "" && + gps_lat_ref != null) ? "%f °%s".printf(gps_lat, gps_lat_ref) : NO_VALUE, false, osm_link); - public ExtendedPropertiesWindow(Gtk.Window owner) { - Object(use_header_bar: Resources.use_header_bar()); - - add_events(Gdk.EventMask.BUTTON_PRESS_MASK | Gdk.EventMask.KEY_PRESS_MASK); - focus_on_map = true; - set_accept_focus(true); - set_can_focus(true); - set_title(_("Extended Information")); - set_position(Gtk.WindowPosition.CENTER); - set_transient_for(owner); - set_type_hint(Gdk.WindowTypeHint.DIALOG); - - delete_event.connect(hide_on_delete); - - properties = new ExtendedProperties(); - properties.halign = Gtk.Align.FILL; - properties.valign = Gtk.Align.FILL; - properties.hexpand = true; - properties.vexpand = true; - properties.set_margin_top (3); - properties.set_margin_bottom (3); - properties.set_margin_start (3); - properties.set_margin_end (3); - ((Gtk.Box) get_content_area()).add(properties); - } + add_line(_("GPS longitude:"), (gps_long != -1 && gps_long_ref != "" && + gps_long_ref != null) ? "%f °%s".printf(gps_long, gps_long_ref) : NO_VALUE, false, osm_link); - public override bool button_press_event(Gdk.EventButton event) { - // LMB only - if (event.button != 1) - return (base.button_press_event != null) ? base.button_press_event(event) : true; + add_line(_("Artist:"), (artist != "" && artist != null) ? artist : NO_VALUE); - begin_move_drag((int) event.button, (int) event.x_root, (int) event.y_root, event.time); + add_line(_("Copyright:"), (copyright != "" && copyright != null) ? copyright : NO_VALUE); - return true; - } - - public override bool key_press_event(Gdk.EventKey event) { - // hide properties - if (Gdk.keyval_name(event.keyval) == "Escape") { - hide(); - return true; + add_line(_("Software:"), (software != "" && software != null) ? software : NO_VALUE); } - // or send through to AppWindow - return AppWindow.get_instance().key_press_event(event); - } - public void update_properties(Page page) { - properties.update_properties(page); - } - - public override void show_all() { - base.show_all(); - properties.unselect_text(); - grab_focus(); + bool has_comment = (comment != "" && comment != null); + add_line(_("Comment:"), has_comment ? comment : NO_VALUE, has_comment); } + } diff --git a/src/Resources.c b/src/Resources.c deleted file mode 100644 index 0db3c0e..0000000 --- a/src/Resources.c +++ /dev/null @@ -1,3817 +0,0 @@ -/* Resources.c generated by valac 0.40.4, the Vala compiler - * generated from Resources.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/* defined by ./configure or Makefile and included by gcc -D*/ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_RATING (rating_get_type ()) - -#define TYPE_RATING_FILTER (rating_filter_get_type ()) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define RESOURCES_TYPE_UNIT_SYSTEM (resources_unit_system_get_type ()) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - RATING_FILTER_NO_FILTER = 0, - RATING_FILTER_REJECTED_OR_HIGHER = 1, - RATING_FILTER_UNRATED_OR_HIGHER = 2, - RATING_FILTER_ONE_OR_HIGHER = 3, - RATING_FILTER_TWO_OR_HIGHER = 4, - RATING_FILTER_THREE_OR_HIGHER = 5, - RATING_FILTER_FOUR_OR_HIGHER = 6, - RATING_FILTER_FIVE_OR_HIGHER = 7, - RATING_FILTER_REJECTED_ONLY = 8, - RATING_FILTER_UNRATED_ONLY = 9, - RATING_FILTER_ONE_ONLY = 10, - RATING_FILTER_TWO_ONLY = 11, - RATING_FILTER_THREE_ONLY = 12, - RATING_FILTER_FOUR_ONLY = 13, - RATING_FILTER_FIVE_ONLY = 14 -} RatingFilter; - -typedef enum { - RESOURCES_UNIT_SYSTEM_IMPERIAL, - RESOURCES_UNIT_SYSTEM_METRIC, - RESOURCES_UNIT_SYSTEM_UNKNOWN -} ResourcesUnitSystem; - - -extern gchar* resources_RATE_ONE_LABEL; -extern gchar* resources_RATE_TWO_LABEL; -extern gchar* resources_RATE_THREE_LABEL; -extern gchar* resources_RATE_FOUR_LABEL; -extern gchar* resources_RATE_FIVE_LABEL; -extern gchar* resources_RATE_ONE_MENU; -extern gchar* resources_RATE_TWO_MENU; -extern gchar* resources_RATE_THREE_MENU; -extern gchar* resources_RATE_FOUR_MENU; -extern gchar* resources_RATE_FIVE_MENU; -extern gchar* resources_DISPLAY_ONE_OR_HIGHER_TOOLTIP; -extern gchar* resources_DISPLAY_TWO_OR_HIGHER_TOOLTIP; -extern gchar* resources_DISPLAY_THREE_OR_HIGHER_TOOLTIP; -extern gchar* resources_DISPLAY_FOUR_OR_HIGHER_TOOLTIP; -extern gchar* resources_DISPLAY_FIVE_OR_HIGHER_TOOLTIP; -extern gchar* resources_RATE_ONE_PROGRESS; -extern gchar* resources_RATE_TWO_PROGRESS; -extern gchar* resources_RATE_THREE_PROGRESS; -extern gchar* resources_RATE_FOUR_PROGRESS; -extern gchar* resources_RATE_FIVE_PROGRESS; -extern gchar* resources_RATE_ONE_TOOLTIP; -extern gchar* resources_RATE_TWO_TOOLTIP; -extern gchar* resources_RATE_THREE_TOOLTIP; -extern gchar* resources_RATE_FOUR_TOOLTIP; -extern gchar* resources_RATE_FIVE_TOOLTIP; -extern gchar* resources_DISPLAY_ONE_OR_HIGHER_MENU; -extern gchar* resources_DISPLAY_TWO_OR_HIGHER_MENU; -extern gchar* resources_DISPLAY_THREE_OR_HIGHER_MENU; -extern gchar* resources_DISPLAY_FOUR_OR_HIGHER_MENU; -extern gchar* resources_DISPLAY_FIVE_OR_HIGHER_MENU; -extern gchar* resources_DISPLAY_ONE_OR_HIGHER_LABEL; -extern gchar* resources_DISPLAY_TWO_OR_HIGHER_LABEL; -extern gchar* resources_DISPLAY_THREE_OR_HIGHER_LABEL; -extern gchar* resources_DISPLAY_FOUR_OR_HIGHER_LABEL; -extern gchar* resources_DISPLAY_FIVE_OR_HIGHER_LABEL; -gchar* resources_RATE_ONE_MENU = NULL; -gchar* resources_RATE_ONE_LABEL = NULL; -gchar* resources_RATE_ONE_TOOLTIP = NULL; -gchar* resources_RATE_ONE_PROGRESS = NULL; -gchar* resources_RATE_TWO_MENU = NULL; -gchar* resources_RATE_TWO_LABEL = NULL; -gchar* resources_RATE_TWO_TOOLTIP = NULL; -gchar* resources_RATE_TWO_PROGRESS = NULL; -gchar* resources_RATE_THREE_MENU = NULL; -gchar* resources_RATE_THREE_LABEL = NULL; -gchar* resources_RATE_THREE_TOOLTIP = NULL; -gchar* resources_RATE_THREE_PROGRESS = NULL; -gchar* resources_RATE_FOUR_MENU = NULL; -gchar* resources_RATE_FOUR_LABEL = NULL; -gchar* resources_RATE_FOUR_TOOLTIP = NULL; -gchar* resources_RATE_FOUR_PROGRESS = NULL; -gchar* resources_RATE_FIVE_MENU = NULL; -gchar* resources_RATE_FIVE_LABEL = NULL; -gchar* resources_RATE_FIVE_TOOLTIP = NULL; -gchar* resources_RATE_FIVE_PROGRESS = NULL; -gchar* resources_DISPLAY_ONE_OR_HIGHER_MENU = NULL; -gchar* resources_DISPLAY_ONE_OR_HIGHER_LABEL = NULL; -gchar* resources_DISPLAY_ONE_OR_HIGHER_TOOLTIP = NULL; -gchar* resources_DISPLAY_TWO_OR_HIGHER_MENU = NULL; -gchar* resources_DISPLAY_TWO_OR_HIGHER_LABEL = NULL; -gchar* resources_DISPLAY_TWO_OR_HIGHER_TOOLTIP = NULL; -gchar* resources_DISPLAY_THREE_OR_HIGHER_MENU = NULL; -gchar* resources_DISPLAY_THREE_OR_HIGHER_LABEL = NULL; -gchar* resources_DISPLAY_THREE_OR_HIGHER_TOOLTIP = NULL; -gchar* resources_DISPLAY_FOUR_OR_HIGHER_MENU = NULL; -gchar* resources_DISPLAY_FOUR_OR_HIGHER_LABEL = NULL; -gchar* resources_DISPLAY_FOUR_OR_HIGHER_TOOLTIP = NULL; -gchar* resources_DISPLAY_FIVE_OR_HIGHER_MENU = NULL; -gchar* resources_DISPLAY_FIVE_OR_HIGHER_LABEL = NULL; -gchar* resources_DISPLAY_FIVE_OR_HIGHER_TOOLTIP = NULL; -extern GeeHashMap* resources_icon_cache; -GeeHashMap* resources_icon_cache = NULL; -extern GeeHashMap* resources_scaled_icon_cache; -GeeHashMap* resources_scaled_icon_cache = NULL; -extern gchar* resources_HH_MM_FORMAT_STRING; -gchar* resources_HH_MM_FORMAT_STRING = NULL; -extern gchar* resources_HH_MM_SS_FORMAT_STRING; -gchar* resources_HH_MM_SS_FORMAT_STRING = NULL; -extern gchar* resources_LONG_DATE_FORMAT_STRING; -gchar* resources_LONG_DATE_FORMAT_STRING = NULL; -extern gchar* resources_START_MULTIDAY_DATE_FORMAT_STRING; -gchar* resources_START_MULTIDAY_DATE_FORMAT_STRING = NULL; -extern gchar* resources_END_MULTIDAY_DATE_FORMAT_STRING; -gchar* resources_END_MULTIDAY_DATE_FORMAT_STRING = NULL; -extern gchar* resources_START_MULTIMONTH_DATE_FORMAT_STRING; -gchar* resources_START_MULTIMONTH_DATE_FORMAT_STRING = NULL; -extern gchar* resources_END_MULTIMONTH_DATE_FORMAT_STRING; -gchar* resources_END_MULTIMONTH_DATE_FORMAT_STRING = NULL; -extern gchar* resources_lc_measurement; -gchar* resources_lc_measurement = NULL; -extern ResourcesUnitSystem resources_unit_system; -ResourcesUnitSystem resources_unit_system = RESOURCES_UNIT_SYSTEM_UNKNOWN; -extern GdkPixbuf* resources_noninterpretable_badge_pixbuf; -GdkPixbuf* resources_noninterpretable_badge_pixbuf = NULL; -extern GeeMap* resources_providers; -GeeMap* resources_providers = NULL; - -#define RESOURCES_APP_TITLE "Shotwell" -#define RESOURCES_APP_LIBRARY_ROLE _ ("Photo Manager") -#define RESOURCES_APP_DIRECT_ROLE _ ("Photo Viewer") -#define RESOURCES_APP_VERSION _VERSION -#define RESOURCES_GIT_VERSION _GIT_VERSION -#define RESOURCES_COPYRIGHT _ ("Copyright 2016 Software Freedom Conservancy Inc.") -#define RESOURCES_APP_GETTEXT_PACKAGE GETTEXT_PACKAGE -#define RESOURCES_HOME_URL "https://wiki.gnome.org/Apps/Shotwell" -#define RESOURCES_FAQ_URL "https://wiki.gnome.org/Apps/Shotwell/FAQ" -#define RESOURCES_BUG_DB_URL "https://wiki.gnome.org/Apps/Shotwell/ReportingABug" -#define RESOURCES_DIR_PATTERN_URI_SYSWIDE "help:shotwell/other-files" -#define RESOURCES_LIB _LIB -#define RESOURCES_LIBEXECDIR _LIBEXECDIR -#define RESOURCES_PREFIX _PREFIX -#define RESOURCES_TRANSIENT_WINDOW_OPACITY 0.90 -#define RESOURCES_DEFAULT_ICON_SCALE 24 -#define RESOURCES_LICENSE "\n" \ -"Shotwell is free software; you can redistribute it and/or modify it un" \ -"der the \n" \ -"terms of the GNU Lesser General Public License as published by the Fre" \ -"e \n" \ -"Software Foundation; either version 2.1 of the License, or (at your op" \ -"tion) \n" \ -"any later version.\n" \ -"\n" \ -"Shotwell is distributed in the hope that it will be useful, but WITHOU" \ -"T \n" \ -"ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or " \ -"FITNESS\n" \ -"FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License f" \ -"or \n" \ -"more details.\n" \ -"\n" \ -"You should have received a copy of the GNU Lesser General Public Licen" \ -"se \n" \ -"along with Shotwell; if not, write to the Free Software Foundation, In" \ -"c., \n" \ -"51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n" -#define RESOURCES_CLOCKWISE "object-rotate-right" -#define RESOURCES_COUNTERCLOCKWISE "object-rotate-left" -#define RESOURCES_HFLIP "object-flip-horizontal" -#define RESOURCES_VFLIP "object-flip-vertical" -#define RESOURCES_CROP "shotwell-crop" -#define RESOURCES_STRAIGHTEN "shotwell-straighten" -#define RESOURCES_REDEYE "shotwell-redeye" -#define RESOURCES_ADJUST "image-adjust" -#define RESOURCES_PIN_TOOLBAR "shotwell-pin-toolbar" -#define RESOURCES_MAKE_PRIMARY "shotwell-make-primary" -#define RESOURCES_IMPORT "import" -#define RESOURCES_IMPORT_ALL "import-all" -#define RESOURCES_ENHANCE "shotwell-auto-enhance" -#define RESOURCES_CROP_PIVOT_RETICLE "shotwell-crop-pivot-reticle" -#define RESOURCES_PUBLISH "applications-internet" -#define RESOURCES_MERGE "shotwell-merge-events" -#define RESOURCES_GO_NEXT "go-next" -#define RESOURCES_GO_PREVIOUS "go-previous" -#define RESOURCES_ICON_ABOUT_LOGO "about-braunschweig.jpg" -#define RESOURCES_ICON_GENERIC_PLUGIN "generic-plugin.png" -#define RESOURCES_ICON_SLIDESHOW_EXTENSION_POINT "slideshow-extension-point" -#define RESOURCES_ICON_RATING_REJECTED "rejected.svg" -#define RESOURCES_ICON_RATING_ONE "one-star.svg" -#define RESOURCES_ICON_RATING_TWO "two-stars.svg" -#define RESOURCES_ICON_RATING_THREE "three-stars.svg" -#define RESOURCES_ICON_RATING_FOUR "four-stars.svg" -#define RESOURCES_ICON_RATING_FIVE "five-stars.svg" -#define RESOURCES_ICON_FILTER_REJECTED_OR_BETTER "all-rejected.png" -#define RESOURCES_ICON_FILTER_REJECTED_OR_BETTER_FIXED_SIZE 32 -#define RESOURCES_ICON_FILTER_UNRATED_OR_BETTER "shotwell-16.png" -#define RESOURCES_ICON_FILTER_UNRATED_OR_BETTER_FIXED_SIZE 16 -#define RESOURCES_ICON_FILTER_ONE_OR_BETTER "one-star-filter-plus.svg" -#define RESOURCES_ICON_FILTER_TWO_OR_BETTER "two-star-filter-plus.svg" -#define RESOURCES_ICON_FILTER_THREE_OR_BETTER "three-star-filter-plus.svg" -#define RESOURCES_ICON_FILTER_FOUR_OR_BETTER "four-star-filter-plus.svg" -#define RESOURCES_ICON_FILTER_FIVE "five-star-filter.svg" -#define RESOURCES_ICON_ZOOM_IN "zoom-in.png" -#define RESOURCES_ICON_ZOOM_OUT "zoom-out.png" -#define RESOURCES_ICON_ZOOM_SCALE 16 -#define RESOURCES_ICON_CAMERAS "camera-photo" -#define RESOURCES_ICON_EVENTS "multiple-events" -#define RESOURCES_ICON_ONE_EVENT "one-event" -#define RESOURCES_ICON_NO_EVENT "no-event" -#define RESOURCES_ICON_ONE_TAG "one-tag" -#define RESOURCES_ICON_TAGS "multiple-tags" -#define RESOURCES_ICON_FOLDER "folder" -#define RESOURCES_ICON_FOLDER_DOCUMENTS "folder-documents" -#define RESOURCES_ICON_IMPORTING "go-down" -#define RESOURCES_ICON_LAST_IMPORT "document-open-recent" -#define RESOURCES_ICON_MISSING_FILES "process-stop" -#define RESOURCES_ICON_PHOTOS "shotwell" -#define RESOURCES_ICON_SINGLE_PHOTO "image-x-generic" -#define RESOURCES_ICON_FILTER_PHOTOS "filter-photos" -#define RESOURCES_ICON_FILTER_PHOTOS_DISABLED "filter-photos-disabled" -#define RESOURCES_ICON_FILTER_VIDEOS "filter-videos" -#define RESOURCES_ICON_FILTER_VIDEOS_DISABLED "filter-videos-disabled" -#define RESOURCES_ICON_FILTER_RAW "filter-raw" -#define RESOURCES_ICON_FILTER_RAW_DISABLED "filter-raw-disabled" -#define RESOURCES_ICON_FILTER_FLAGGED "filter-flagged" -#define RESOURCES_ICON_FILTER_FLAGGED_DISABLED "filter-flagged-disabled" -#define RESOURCES_ICON_TRASH_EMPTY "user-trash" -#define RESOURCES_ICON_TRASH_FULL "user-trash-full" -#define RESOURCES_ICON_VIDEOS_PAGE "videos-page" -#define RESOURCES_ICON_FLAGGED_PAGE "flag-page" -#define RESOURCES_ICON_FLAGGED_TRINKET "flag-trinket.png" -#define RESOURCES_ROTATE_CW_MENU _ ("Rotate _Right") -#define RESOURCES_ROTATE_CW_LABEL _ ("Rotate") -#define RESOURCES_ROTATE_CW_FULL_LABEL _ ("Rotate Right") -#define RESOURCES_ROTATE_CW_TOOLTIP _ ("Rotate the photos right (press Ctrl to rotate left)") -#define RESOURCES_ROTATE_CCW_MENU _ ("Rotate _Left") -#define RESOURCES_ROTATE_CCW_LABEL _ ("Rotate") -#define RESOURCES_ROTATE_CCW_FULL_LABEL _ ("Rotate Left") -#define RESOURCES_ROTATE_CCW_TOOLTIP _ ("Rotate the photos left") -#define RESOURCES_HFLIP_MENU _ ("Flip Hori_zontally") -#define RESOURCES_HFLIP_LABEL _ ("Flip Horizontally") -#define RESOURCES_VFLIP_MENU _ ("Flip Verti_cally") -#define RESOURCES_VFLIP_LABEL _ ("Flip Vertically") -#define RESOURCES_ABOUT_LABEL _ ("_About") -#define RESOURCES_APPLY_LABEL _ ("_Apply") -#define RESOURCES_CANCEL_LABEL _ ("_Cancel") -#define RESOURCES_DELETE_LABEL _ ("_Delete") -#define RESOURCES_EDIT_LABEL _ ("_Edit") -#define RESOURCES_FORWARD_LABEL _ ("_Forward") -#define RESOURCES_FULLSCREEN_LABEL _ ("Fulls_creen") -#define RESOURCES_HELP_LABEL _ ("_Help") -#define RESOURCES_LEAVE_FULLSCREEN_LABEL _ ("Leave _Fullscreen") -#define RESOURCES_NEW_LABEL _ ("_New") -#define RESOURCES_NEXT_LABEL _ ("_Next") -#define RESOURCES_OK_LABEL _ ("_OK") -#define RESOURCES_PLAY_LABEL _ ("_Play") -#define RESOURCES_PREFERENCES_LABEL _ ("_Preferences") -#define RESOURCES_PREVIOUS_LABEL _ ("_Previous") -#define RESOURCES_PRINT_LABEL _ ("_Print") -#define RESOURCES_QUIT_LABEL _ ("_Quit") -#define RESOURCES_REFRESH_LABEL _ ("_Refresh") -#define RESOURCES_REMOVE_LABEL _ ("_Remove") -#define RESOURCES_REVERT_TO_SAVED_LABEL _ ("_Revert") -#define RESOURCES_SAVE_LABEL _ ("_Save") -#define RESOURCES_SAVE_AS_LABEL _ ("Save _As") -#define RESOURCES_SORT_ASCENDING_LABEL _ ("Sort _Ascending") -#define RESOURCES_SORT_DESCENDING_LABEL _ ("Sort _Descending") -#define RESOURCES_STOP_LABEL _ ("_Stop") -#define RESOURCES_UNDELETE_LABEL _ ("_Undelete") -#define RESOURCES_ZOOM_100_LABEL _ ("_Normal Size") -#define RESOURCES_ZOOM_FIT_LABEL _ ("Best _Fit") -#define RESOURCES_ZOOM_IN_LABEL _ ("Zoom _In") -#define RESOURCES_ZOOM_OUT_LABEL _ ("Zoom _Out") -#define RESOURCES_ENHANCE_MENU _ ("_Enhance") -#define RESOURCES_ENHANCE_LABEL _ ("Enhance") -#define RESOURCES_ENHANCE_TOOLTIP _ ("Automatically improve the photo’s appearance") -#define RESOURCES_COPY_ADJUSTMENTS_MENU _ ("_Copy Color Adjustments") -#define RESOURCES_COPY_ADJUSTMENTS_LABEL _ ("Copy Color Adjustments") -#define RESOURCES_COPY_ADJUSTMENTS_TOOLTIP _ ("Copy the color adjustments applied to the photo") -#define RESOURCES_PASTE_ADJUSTMENTS_MENU _ ("_Paste Color Adjustments") -#define RESOURCES_PASTE_ADJUSTMENTS_LABEL _ ("Paste Color Adjustments") -#define RESOURCES_PASTE_ADJUSTMENTS_TOOLTIP _ ("Apply copied color adjustments to the selected photos") -#define RESOURCES_CROP_MENU _ ("_Crop") -#define RESOURCES_CROP_LABEL _ ("Crop") -#define RESOURCES_CROP_TOOLTIP _ ("Crop the photo’s size") -#define RESOURCES_STRAIGHTEN_MENU _ ("_Straighten") -#define RESOURCES_STRAIGHTEN_LABEL _ ("Straighten") -#define RESOURCES_STRAIGHTEN_TOOLTIP _ ("Straighten the photo") -#define RESOURCES_RED_EYE_MENU _ ("_Red-eye") -#define RESOURCES_RED_EYE_LABEL _ ("Red-eye") -#define RESOURCES_RED_EYE_TOOLTIP _ ("Reduce or eliminate any red-eye effects in the photo") -#define RESOURCES_ADJUST_MENU _ ("_Adjust") -#define RESOURCES_ADJUST_LABEL _ ("Adjust") -#define RESOURCES_ADJUST_TOOLTIP _ ("Adjust the photo’s color and tone") -#define RESOURCES_REVERT_MENU _ ("Re_vert to Original") -#define RESOURCES_REVERT_LABEL _ ("Revert to Original") -#define RESOURCES_REVERT_EDITABLE_MENU _ ("Revert External E_dits") -#define RESOURCES_REVERT_EDITABLE_TOOLTIP _ ("Revert to the master photo") -#define RESOURCES_SET_BACKGROUND_MENU _ ("Set as _Desktop Background") -#define RESOURCES_SET_BACKGROUND_TOOLTIP _ ("Set selected image to be the new desktop background") -#define RESOURCES_SET_BACKGROUND_SLIDESHOW_MENU _ ("Set as _Desktop Slideshow…") -#define RESOURCES_UNDO_MENU _ ("_Undo") -#define RESOURCES_UNDO_LABEL _ ("Undo") -#define RESOURCES_REDO_MENU _ ("_Redo") -#define RESOURCES_REDO_LABEL _ ("Redo") -#define RESOURCES_RENAME_EVENT_MENU _ ("Re_name Event…") -#define RESOURCES_RENAME_EVENT_LABEL _ ("Rename Event") -#define RESOURCES_MAKE_KEY_PHOTO_MENU _ ("Make _Key Photo for Event") -#define RESOURCES_MAKE_KEY_PHOTO_LABEL _ ("Make Key Photo for Event") -#define RESOURCES_NEW_EVENT_MENU _ ("_New Event") -#define RESOURCES_NEW_EVENT_LABEL _ ("New Event") -#define RESOURCES_SET_PHOTO_EVENT_LABEL _ ("Move Photos") -#define RESOURCES_SET_PHOTO_EVENT_TOOLTIP _ ("Move photos to an event") -#define RESOURCES_MERGE_MENU _ ("_Merge Events") -#define RESOURCES_MERGE_LABEL _ ("Merge") -#define RESOURCES_MERGE_TOOLTIP _ ("Combine events into a single event") -#define RESOURCES_RATING_MENU _ ("_Set Rating") -#define RESOURCES_RATING_LABEL _ ("Set Rating") -#define RESOURCES_RATING_TOOLTIP _ ("Change the rating of your photo") -#define RESOURCES_INCREASE_RATING_MENU _ ("_Increase") -#define RESOURCES_INCREASE_RATING_LABEL _ ("Increase Rating") -#define RESOURCES_DECREASE_RATING_MENU _ ("_Decrease") -#define RESOURCES_DECREASE_RATING_LABEL _ ("Decrease Rating") -#define RESOURCES_RATE_UNRATED_MENU _ ("_Unrated") -#define RESOURCES_RATE_UNRATED_COMBO_BOX _ ("Unrated") -#define RESOURCES_RATE_UNRATED_LABEL _ ("Rate Unrated") -#define RESOURCES_RATE_UNRATED_PROGRESS _ ("Setting as unrated") -#define RESOURCES_RATE_UNRATED_TOOLTIP _ ("Remove any ratings") -#define RESOURCES_RATE_REJECTED_MENU _ ("_Rejected") -#define RESOURCES_RATE_REJECTED_COMBO_BOX _ ("Rejected") -#define RESOURCES_RATE_REJECTED_LABEL _ ("Rate Rejected") -#define RESOURCES_RATE_REJECTED_PROGRESS _ ("Setting as rejected") -#define RESOURCES_RATE_REJECTED_TOOLTIP _ ("Set rating to rejected") -#define RESOURCES_DISPLAY_REJECTED_ONLY_MENU _ ("Rejected _Only") -#define RESOURCES_DISPLAY_REJECTED_ONLY_LABEL _ ("Rejected Only") -#define RESOURCES_DISPLAY_REJECTED_ONLY_TOOLTIP _ ("Show only rejected photos") -#define RESOURCES_DISPLAY_REJECTED_OR_HIGHER_MENU _ ("All + _Rejected") -#define RESOURCES_DISPLAY_REJECTED_OR_HIGHER_TOOLTIP NC_ ("Tooltip", "Show all photos, including rejected") -#define RESOURCES_DISPLAY_UNRATED_OR_HIGHER_MENU _ ("_All Photos") -#define RESOURCES_DISPLAY_UNRATED_OR_HIGHER_TOOLTIP _ ("Show all photos") -#define RESOURCES_VIEW_RATINGS_MENU _ ("_Ratings") -#define RESOURCES_VIEW_RATINGS_TOOLTIP _ ("Display each photo’s rating") -#define RESOURCES_FILTER_PHOTOS_MENU _ ("_Filter Photos") -#define RESOURCES_FILTER_PHOTOS_LABEL _ ("Filter Photos") -#define RESOURCES_FILTER_PHOTOS_TOOLTIP _ ("Limit the number of photos displayed based on a filter") -#define RESOURCES_DUPLICATE_PHOTO_MENU _ ("_Duplicate") -#define RESOURCES_DUPLICATE_PHOTO_LABEL _ ("Duplicate") -#define RESOURCES_DUPLICATE_PHOTO_TOOLTIP _ ("Make a duplicate of the photo") -#define RESOURCES_EXPORT_MENU _ ("_Export…") -#define RESOURCES_PRINT_MENU _ ("_Print…") -#define RESOURCES_PUBLISH_MENU _ ("Pu_blish…") -#define RESOURCES_PUBLISH_LABEL _ ("Publish") -#define RESOURCES_PUBLISH_TOOLTIP _ ("Publish to various websites") -#define RESOURCES_EDIT_TITLE_MENU _ ("Edit _Title…") -#define RESOURCES_EDIT_TITLE_LABEL NC_ ("Button Label", "Edit Title") -#define RESOURCES_EDIT_COMMENT_MENU _ ("Edit _Comment…") -#define RESOURCES_EDIT_COMMENT_LABEL _ ("Edit Comment") -#define RESOURCES_EDIT_EVENT_COMMENT_MENU _ ("Edit Event _Comment…") -#define RESOURCES_EDIT_EVENT_COMMENT_LABEL _ ("Edit Event Comment") -#define RESOURCES_ADJUST_DATE_TIME_MENU _ ("_Adjust Date and Time…") -#define RESOURCES_ADJUST_DATE_TIME_LABEL _ ("Adjust Date and Time") -#define RESOURCES_ADD_TAGS_MENU _ ("Add _Tags…") -#define RESOURCES_ADD_TAGS_CONTEXT_MENU _ ("_Add Tags…") -#define RESOURCES_ADD_TAGS_TITLE NC_ ("Dialog Title", "Add Tags") -#define RESOURCES_PREFERENCES_MENU _ ("_Preferences") -#define RESOURCES_EXTERNAL_EDIT_MENU _ ("Open With E_xternal Editor") -#define RESOURCES_EXTERNAL_EDIT_RAW_MENU _ ("Open With RA_W Editor") -#define RESOURCES_SEND_TO_MENU _ ("Send _To…") -#define RESOURCES_SEND_TO_CONTEXT_MENU _ ("Send T_o…") -#define RESOURCES_FIND_MENU _ ("_Find…") -#define RESOURCES_FIND_LABEL _ ("Find") -#define RESOURCES_FIND_TOOLTIP _ ("Find an image by typing text that appears in its name or tags") -#define RESOURCES_FLAG_MENU _ ("_Flag") -#define RESOURCES_UNFLAG_MENU _ ("Un_flag") -gchar* resources_launch_editor_failed (GError* err); -gchar* resources_add_tags_label (gchar** names, - int names_length1); -gchar* hierarchical_tag_utilities_get_basename (const gchar* in_path); -gchar* resources_delete_tag_menu (const gchar* name); -gchar* resources_delete_tag_label (const gchar* name); -#define RESOURCES_DELETE_TAG_TITLE _ ("Delete Tag") -#define RESOURCES_DELETE_TAG_SIDEBAR_MENU _ ("_Delete") -#define RESOURCES_NEW_CHILD_TAG_SIDEBAR_MENU _ ("_New") -gchar* resources_rename_tag_menu (const gchar* name); -gchar* resources_rename_tag_label (const gchar* old_name, - const gchar* new_name); -#define RESOURCES_RENAME_TAG_SIDEBAR_MENU _ ("_Rename…") -#define RESOURCES_MODIFY_TAGS_MENU _ ("Modif_y Tags…") -#define RESOURCES_MODIFY_TAGS_LABEL _ ("Modify Tags") -gchar* resources_tag_photos_label (const gchar* name, - gint count); -gchar* resources_tag_photos_tooltip (const gchar* name, - gint count); -gchar* resources_untag_photos_menu (const gchar* name, - gint count); -gchar* resources_untag_photos_label (const gchar* name, - gint count); -gchar* resources_rename_tag_exists_message (const gchar* name); -gchar* resources_rename_search_exists_message (const gchar* name); -#define RESOURCES_DEFAULT_SAVED_SEARCH_NAME _ ("Saved Search") -#define RESOURCES_DELETE_SAVED_SEARCH_DIALOG_TITLE _ ("Delete Search") -#define RESOURCES_DELETE_SEARCH_MENU _ ("_Delete") -#define RESOURCES_EDIT_SEARCH_MENU _ ("_Edit…") -#define RESOURCES_RENAME_SEARCH_MENU _ ("Re_name…") -gchar* resources_rename_search_label (const gchar* old_name, - const gchar* new_name); -gchar* resources_delete_search_label (const gchar* name); -GType rating_get_type (void) G_GNUC_CONST; -const gchar* resources_rating_label (Rating rating); -const gchar* resources_rating_combo_box (Rating rating); -GType rating_filter_get_type (void) G_GNUC_CONST; -gchar* resources_get_rating_filter_tooltip (RatingFilter filter); -gchar* resources_rating_progress (Rating rating); -gchar* resources_get_stars (Rating rating); -GdkPixbuf* resources_get_rating_trinket (Rating rating, - gint scale); -GdkPixbuf* resources_get_icon (const gchar* name, - gint scale); -void resources_generate_rating_strings (void); -#define RESOURCES_DELETE_PHOTOS_MENU _ ("_Delete") -#define RESOURCES_DELETE_FROM_TRASH_TOOLTIP _ ("Remove the selected photos from the trash") -#define RESOURCES_DELETE_FROM_LIBRARY_TOOLTIP _ ("Remove the selected photos from the library") -#define RESOURCES_RESTORE_PHOTOS_MENU _ ("_Restore") -#define RESOURCES_RESTORE_PHOTOS_TOOLTIP _ ("Move the selected photos back into the library") -#define RESOURCES_JUMP_TO_FILE_MENU _ ("Show in File Mana_ger") -#define RESOURCES_JUMP_TO_FILE_TOOLTIP _ ("Open the selected photo’s directory in the file manager") -gchar* resources_jump_to_file_failed (GError* err); -#define RESOURCES_REMOVE_FROM_LIBRARY_MENU _ ("R_emove From Library") -#define RESOURCES_MOVE_TO_TRASH_MENU _ ("_Move to Trash") -#define RESOURCES_SELECT_ALL_MENU _ ("Select _All") -#define RESOURCES_SELECT_ALL_TOOLTIP _ ("Select all items") -void resources_init (void); -GtkIconTheme* resources_get_icon_theme_engine (void); -void resources_terminate (void); -void resources_fetch_lc_time_format (void); -GType resources_unit_system_get_type (void) G_GNUC_CONST; -ResourcesUnitSystem resources_get_default_measurement_unit (void); -static gboolean _vala_string_array_contains (const gchar* * stack, - int stack_length, - const gchar* needle); -gchar* resources_get_hh_mm_format_string (void); -gchar* resources_get_hh_mm_ss_format_string (void); -gchar* resources_get_long_date_format_string (void); -gchar* resources_get_start_multiday_span_format_string (void); -gchar* resources_get_end_multiday_span_format_string (void); -gchar* resources_get_start_multimonth_span_format_string (void); -gchar* resources_get_end_multimonth_span_format_string (void); -gchar* resources_get_ui (const gchar* filename); -#define RESOURCES_NONINTERPRETABLE_BADGE_FILE "noninterpretable-video.png" -GdkPixbuf* resources_get_noninterpretable_badge_pixbuf (void); -GdkPixbuf* resources_load_icon (const gchar* name, - gint scale); -GdkPixbuf* scale_pixbuf (GdkPixbuf* pixbuf, - gint scale, - GdkInterpType interp, - gboolean scale_up); -gchar* resources_get_help_path (void); -GFile* app_dirs_get_exec_dir (void); -void resources_launch_help (GdkScreen* screen, - const gchar* anchor, - GError** error); -void sys_show_uri (GdkScreen* screen, - const gchar* uri, - GError** error); -gchar* resources_to_css_color (GdkRGBA* color); -#define RESOURCES_ALL_DATA -1 -void resources_style_widget (GtkWidget* widget, - const gchar* stylesheet); -gint resources_use_header_bar (void); -#define RESOURCES_CUSTOM_CSS "LibraryWindow .pane-separator {\n" \ -" background-color: @borders;\n" \ -" }\n" \ -" SearchFilterToolbar {\n" \ -" border-width: 0 0 1px 0;\n" \ -" border-style: solid;\n" \ -" border-color: @borders;\n" \ -" }" -#define RESOURCES_ONIMAGE_FONT_COLOR "#000000" -#define RESOURCES_ONIMAGE_FONT_BACKGROUND "rgba(255,255,255,0.5)" -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - -const gchar* RESOURCES_AUTHORS[6] = {"Jim Nelson ", "Lucas Beeler ", "Allison Barlow ", "Eric Gregory ", "Clinton Rogers ", NULL}; -const gint RESOURCES_rating_thresholds[6] = {0, 1, 25, 50, 75, 99}; -const gchar* RESOURCES_IMPERIAL_COUNTRIES[4] = {"unm_US", "es_US", "en_US", "yi_US"}; - -gchar* -resources_launch_editor_failed (GError* err) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 336 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = err->message; -#line 336 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = g_strdup_printf (_ ("Unable to launch editor: %s"), _tmp0_); -#line 336 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp1_; -#line 336 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 519 "Resources.c" -} - - -gchar* -resources_add_tags_label (gchar** names, - int names_length1) -{ - gchar* result = NULL; -#line 340 "/home/jens/Source/shotwell/src/Resources.vala" - if (names_length1 == 1) { -#line 530 "Resources.c" - const gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 341 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = names[0]; -#line 341 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = hierarchical_tag_utilities_get_basename (_tmp0_); -#line 341 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = _tmp1_; -#line 341 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = g_strdup_printf (_ ("Add Tag “%s”"), _tmp2_); -#line 341 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp4_ = _tmp3_; -#line 341 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp2_); -#line 341 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp4_; -#line 341 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 552 "Resources.c" - } else { -#line 342 "/home/jens/Source/shotwell/src/Resources.vala" - if (names_length1 == 2) { -#line 556 "Resources.c" - const gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; -#line 344 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp5_ = names[0]; -#line 344 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp6_ = hierarchical_tag_utilities_get_basename (_tmp5_); -#line 344 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp7_ = _tmp6_; -#line 344 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp8_ = names[1]; -#line 344 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp9_ = hierarchical_tag_utilities_get_basename (_tmp8_); -#line 344 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp10_ = _tmp9_; -#line 344 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp11_ = g_strdup_printf (_ ("Add Tags “%s” and “%s”"), _tmp7_, _tmp10_); -#line 344 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp12_ = _tmp11_; -#line 344 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp10_); -#line 344 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp7_); -#line 344 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp12_; -#line 344 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 589 "Resources.c" - } else { - gchar* _tmp13_; -#line 349 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp13_ = g_strdup (C_ ("UndoRedo menu entry", "Add Tags")); -#line 349 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp13_; -#line 349 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 598 "Resources.c" - } - } -} - - -gchar* -resources_delete_tag_menu (const gchar* name) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 353 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 354 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup_printf (_ ("_Delete Tag “%s”"), name); -#line 354 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 354 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 617 "Resources.c" -} - - -gchar* -resources_delete_tag_label (const gchar* name) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 357 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 358 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup_printf (_ ("Delete Tag “%s”"), name); -#line 358 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 358 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 634 "Resources.c" -} - - -gchar* -resources_rename_tag_menu (const gchar* name) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 366 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 367 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup_printf (_ ("Re_name Tag “%s”…"), name); -#line 367 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 367 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 651 "Resources.c" -} - - -gchar* -resources_rename_tag_label (const gchar* old_name, - const gchar* new_name) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 370 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (old_name != NULL, NULL); -#line 370 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (new_name != NULL, NULL); -#line 371 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup_printf (_ ("Rename Tag “%s” to “%s”"), old_name, new_name); -#line 371 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 371 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 671 "Resources.c" -} - - -gchar* -resources_tag_photos_label (const gchar* name, - gint count) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 379 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 380 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup_printf (ngettext ("Tag Photo as “%s”", "Tag Photos as “%s”", (gulong) count), name); -#line 380 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 380 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 689 "Resources.c" -} - - -gchar* -resources_tag_photos_tooltip (const gchar* name, - gint count) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 385 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 386 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup_printf (ngettext ("Tag the selected photo as “%s”", "Tag the selected photos as “%s”", (gulong) count), name); -#line 386 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 386 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 707 "Resources.c" -} - - -gchar* -resources_untag_photos_menu (const gchar* name, - gint count) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 391 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 392 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup_printf (ngettext ("Remove Tag “%s” From _Photo", "Remove Tag “%s” From _Photos", (gulong) count), name); -#line 392 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 392 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 725 "Resources.c" -} - - -gchar* -resources_untag_photos_label (const gchar* name, - gint count) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 397 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 398 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup_printf (ngettext ("Remove Tag “%s” From Photo", "Remove Tag “%s” From Photos", (gulong) count), name); -#line 398 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 398 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 743 "Resources.c" -} - - -gchar* -resources_rename_tag_exists_message (const gchar* name) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 403 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 404 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup_printf (_ ("Unable to rename tag to “%s” because the tag already exists."), name); -#line 404 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 404 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 760 "Resources.c" -} - - -gchar* -resources_rename_search_exists_message (const gchar* name) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 407 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 408 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup_printf (_ ("Unable to rename search to “%s” because the search already exists."), name); -#line 408 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 408 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 777 "Resources.c" -} - - -gchar* -resources_rename_search_label (const gchar* old_name, - const gchar* new_name) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 419 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (old_name != NULL, NULL); -#line 419 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (new_name != NULL, NULL); -#line 420 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup_printf (_ ("Rename Search “%s” to “%s”"), old_name, new_name); -#line 420 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 420 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 797 "Resources.c" -} - - -gchar* -resources_delete_search_label (const gchar* name) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 423 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 424 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup_printf (_ ("Delete Search “%s”"), name); -#line 424 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 424 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 814 "Resources.c" -} - - -const gchar* -resources_rating_label (Rating rating) -{ - const gchar* result = NULL; -#line 428 "/home/jens/Source/shotwell/src/Resources.vala" - switch (rating) { -#line 428 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_REJECTED: -#line 826 "Resources.c" - { -#line 430 "/home/jens/Source/shotwell/src/Resources.vala" - result = RESOURCES_RATE_REJECTED_LABEL; -#line 430 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 832 "Resources.c" - } -#line 428 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_UNRATED: -#line 836 "Resources.c" - { -#line 432 "/home/jens/Source/shotwell/src/Resources.vala" - result = RESOURCES_RATE_UNRATED_LABEL; -#line 432 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 842 "Resources.c" - } -#line 428 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_ONE: -#line 846 "Resources.c" - { - const gchar* _tmp0_; -#line 434 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = resources_RATE_ONE_LABEL; -#line 434 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 434 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 855 "Resources.c" - } -#line 428 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_TWO: -#line 859 "Resources.c" - { - const gchar* _tmp1_; -#line 436 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = resources_RATE_TWO_LABEL; -#line 436 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp1_; -#line 436 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 868 "Resources.c" - } -#line 428 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_THREE: -#line 872 "Resources.c" - { - const gchar* _tmp2_; -#line 438 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = resources_RATE_THREE_LABEL; -#line 438 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp2_; -#line 438 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 881 "Resources.c" - } -#line 428 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FOUR: -#line 885 "Resources.c" - { - const gchar* _tmp3_; -#line 440 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = resources_RATE_FOUR_LABEL; -#line 440 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp3_; -#line 440 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 894 "Resources.c" - } -#line 428 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FIVE: -#line 898 "Resources.c" - { - const gchar* _tmp4_; -#line 442 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp4_ = resources_RATE_FIVE_LABEL; -#line 442 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp4_; -#line 442 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 907 "Resources.c" - } - default: - { -#line 444 "/home/jens/Source/shotwell/src/Resources.vala" - result = RESOURCES_RATE_UNRATED_LABEL; -#line 444 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 915 "Resources.c" - } - } -} - - -const gchar* -resources_rating_combo_box (Rating rating) -{ - const gchar* result = NULL; -#line 449 "/home/jens/Source/shotwell/src/Resources.vala" - switch (rating) { -#line 449 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_REJECTED: -#line 929 "Resources.c" - { -#line 451 "/home/jens/Source/shotwell/src/Resources.vala" - result = RESOURCES_RATE_REJECTED_COMBO_BOX; -#line 451 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 935 "Resources.c" - } -#line 449 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_UNRATED: -#line 939 "Resources.c" - { -#line 453 "/home/jens/Source/shotwell/src/Resources.vala" - result = RESOURCES_RATE_UNRATED_COMBO_BOX; -#line 453 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 945 "Resources.c" - } -#line 449 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_ONE: -#line 949 "Resources.c" - { - const gchar* _tmp0_; -#line 455 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = resources_RATE_ONE_MENU; -#line 455 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 455 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 958 "Resources.c" - } -#line 449 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_TWO: -#line 962 "Resources.c" - { - const gchar* _tmp1_; -#line 457 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = resources_RATE_TWO_MENU; -#line 457 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp1_; -#line 457 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 971 "Resources.c" - } -#line 449 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_THREE: -#line 975 "Resources.c" - { - const gchar* _tmp2_; -#line 459 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = resources_RATE_THREE_MENU; -#line 459 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp2_; -#line 459 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 984 "Resources.c" - } -#line 449 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FOUR: -#line 988 "Resources.c" - { - const gchar* _tmp3_; -#line 461 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = resources_RATE_FOUR_MENU; -#line 461 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp3_; -#line 461 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 997 "Resources.c" - } -#line 449 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FIVE: -#line 1001 "Resources.c" - { - const gchar* _tmp4_; -#line 463 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp4_ = resources_RATE_FIVE_MENU; -#line 463 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp4_; -#line 463 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1010 "Resources.c" - } - default: - { -#line 465 "/home/jens/Source/shotwell/src/Resources.vala" - result = RESOURCES_RATE_UNRATED_MENU; -#line 465 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1018 "Resources.c" - } - } -} - - -gchar* -resources_get_rating_filter_tooltip (RatingFilter filter) -{ - gchar* result = NULL; -#line 470 "/home/jens/Source/shotwell/src/Resources.vala" - switch (filter) { -#line 470 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FILTER_REJECTED_OR_HIGHER: -#line 1032 "Resources.c" - { - gchar* _tmp0_; -#line 472 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup (RESOURCES_DISPLAY_REJECTED_OR_HIGHER_TOOLTIP); -#line 472 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 472 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1041 "Resources.c" - } -#line 470 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FILTER_ONE_OR_HIGHER: -#line 1045 "Resources.c" - { - const gchar* _tmp1_; - gchar* _tmp2_; -#line 475 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = resources_DISPLAY_ONE_OR_HIGHER_TOOLTIP; -#line 475 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 475 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp2_; -#line 475 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1057 "Resources.c" - } -#line 470 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FILTER_TWO_OR_HIGHER: -#line 1061 "Resources.c" - { - const gchar* _tmp3_; - gchar* _tmp4_; -#line 478 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = resources_DISPLAY_TWO_OR_HIGHER_TOOLTIP; -#line 478 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp4_ = g_strdup (_tmp3_); -#line 478 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp4_; -#line 478 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1073 "Resources.c" - } -#line 470 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FILTER_THREE_OR_HIGHER: -#line 1077 "Resources.c" - { - const gchar* _tmp5_; - gchar* _tmp6_; -#line 481 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp5_ = resources_DISPLAY_THREE_OR_HIGHER_TOOLTIP; -#line 481 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 481 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp6_; -#line 481 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1089 "Resources.c" - } -#line 470 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FILTER_FOUR_OR_HIGHER: -#line 1093 "Resources.c" - { - const gchar* _tmp7_; - gchar* _tmp8_; -#line 484 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp7_ = resources_DISPLAY_FOUR_OR_HIGHER_TOOLTIP; -#line 484 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp8_ = g_strdup (_tmp7_); -#line 484 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp8_; -#line 484 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1105 "Resources.c" - } -#line 470 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FILTER_FIVE_ONLY: -#line 470 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FILTER_FIVE_OR_HIGHER: -#line 1111 "Resources.c" - { - const gchar* _tmp9_; - gchar* _tmp10_; -#line 488 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp9_ = resources_DISPLAY_FIVE_OR_HIGHER_TOOLTIP; -#line 488 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp10_ = g_strdup (_tmp9_); -#line 488 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp10_; -#line 488 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1123 "Resources.c" - } -#line 470 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FILTER_REJECTED_ONLY: -#line 1127 "Resources.c" - { - gchar* _tmp11_; -#line 491 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp11_ = g_strdup (RESOURCES_DISPLAY_REJECTED_ONLY_TOOLTIP); -#line 491 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp11_; -#line 491 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1136 "Resources.c" - } - default: -#line 470 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FILTER_UNRATED_OR_HIGHER: -#line 1141 "Resources.c" - { - gchar* _tmp12_; -#line 495 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp12_ = g_strdup (RESOURCES_DISPLAY_UNRATED_OR_HIGHER_TOOLTIP); -#line 495 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp12_; -#line 495 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1150 "Resources.c" - } - } -} - - -gchar* -resources_rating_progress (Rating rating) -{ - gchar* result = NULL; -#line 500 "/home/jens/Source/shotwell/src/Resources.vala" - switch (rating) { -#line 500 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_REJECTED: -#line 1164 "Resources.c" - { - gchar* _tmp0_; -#line 502 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup (RESOURCES_RATE_REJECTED_PROGRESS); -#line 502 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 502 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1173 "Resources.c" - } -#line 500 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_UNRATED: -#line 1177 "Resources.c" - { - gchar* _tmp1_; -#line 504 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = g_strdup (RESOURCES_RATE_UNRATED_PROGRESS); -#line 504 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp1_; -#line 504 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1186 "Resources.c" - } -#line 500 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_ONE: -#line 1190 "Resources.c" - { - const gchar* _tmp2_; - gchar* _tmp3_; -#line 506 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = resources_RATE_ONE_PROGRESS; -#line 506 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 506 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp3_; -#line 506 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1202 "Resources.c" - } -#line 500 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_TWO: -#line 1206 "Resources.c" - { - const gchar* _tmp4_; - gchar* _tmp5_; -#line 508 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp4_ = resources_RATE_TWO_PROGRESS; -#line 508 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp5_ = g_strdup (_tmp4_); -#line 508 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp5_; -#line 508 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1218 "Resources.c" - } -#line 500 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_THREE: -#line 1222 "Resources.c" - { - const gchar* _tmp6_; - gchar* _tmp7_; -#line 510 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp6_ = resources_RATE_THREE_PROGRESS; -#line 510 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp7_ = g_strdup (_tmp6_); -#line 510 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp7_; -#line 510 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1234 "Resources.c" - } -#line 500 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FOUR: -#line 1238 "Resources.c" - { - const gchar* _tmp8_; - gchar* _tmp9_; -#line 512 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp8_ = resources_RATE_FOUR_PROGRESS; -#line 512 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 512 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp9_; -#line 512 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1250 "Resources.c" - } -#line 500 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FIVE: -#line 1254 "Resources.c" - { - const gchar* _tmp10_; - gchar* _tmp11_; -#line 514 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp10_ = resources_RATE_FIVE_PROGRESS; -#line 514 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp11_ = g_strdup (_tmp10_); -#line 514 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp11_; -#line 514 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1266 "Resources.c" - } - default: - { - gchar* _tmp12_; -#line 516 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp12_ = g_strdup (RESOURCES_RATE_UNRATED_PROGRESS); -#line 516 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp12_; -#line 516 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1277 "Resources.c" - } - } -} - - -gchar* -resources_get_stars (Rating rating) -{ - gchar* result = NULL; -#line 523 "/home/jens/Source/shotwell/src/Resources.vala" - switch (rating) { -#line 523 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_ONE: -#line 1291 "Resources.c" - { - gchar* _tmp0_; -#line 525 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup ("\xE2\x98\x85"); -#line 525 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 525 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1300 "Resources.c" - } -#line 523 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_TWO: -#line 1304 "Resources.c" - { - gchar* _tmp1_; -#line 527 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = g_strdup ("\xE2\x98\x85\xE2\x98\x85"); -#line 527 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp1_; -#line 527 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1313 "Resources.c" - } -#line 523 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_THREE: -#line 1317 "Resources.c" - { - gchar* _tmp2_; -#line 529 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = g_strdup ("\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85"); -#line 529 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp2_; -#line 529 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1326 "Resources.c" - } -#line 523 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FOUR: -#line 1330 "Resources.c" - { - gchar* _tmp3_; -#line 531 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = g_strdup ("\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85"); -#line 531 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp3_; -#line 531 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1339 "Resources.c" - } -#line 523 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FIVE: -#line 1343 "Resources.c" - { - gchar* _tmp4_; -#line 533 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp4_ = g_strdup ("\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85\xE2\x98\x85"); -#line 533 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp4_; -#line 533 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1352 "Resources.c" - } - default: - { - gchar* _tmp5_; -#line 535 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp5_ = g_strdup (""); -#line 535 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp5_; -#line 535 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1363 "Resources.c" - } - } -} - - -GdkPixbuf* -resources_get_rating_trinket (Rating rating, - gint scale) -{ - GdkPixbuf* result = NULL; -#line 540 "/home/jens/Source/shotwell/src/Resources.vala" - switch (rating) { -#line 540 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_REJECTED: -#line 1378 "Resources.c" - { - GdkPixbuf* _tmp0_; -#line 542 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = resources_get_icon (RESOURCES_ICON_RATING_REJECTED, scale); -#line 542 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 542 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1387 "Resources.c" - } -#line 540 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_ONE: -#line 1391 "Resources.c" - { - GdkPixbuf* _tmp1_; -#line 545 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = resources_get_icon (RESOURCES_ICON_RATING_ONE, scale); -#line 545 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp1_; -#line 545 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1400 "Resources.c" - } -#line 540 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_TWO: -#line 1404 "Resources.c" - { - GdkPixbuf* _tmp2_; -#line 547 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = resources_get_icon (RESOURCES_ICON_RATING_TWO, scale * 2); -#line 547 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp2_; -#line 547 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1413 "Resources.c" - } -#line 540 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_THREE: -#line 1417 "Resources.c" - { - GdkPixbuf* _tmp3_; -#line 549 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = resources_get_icon (RESOURCES_ICON_RATING_THREE, scale * 3); -#line 549 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp3_; -#line 549 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1426 "Resources.c" - } -#line 540 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FOUR: -#line 1430 "Resources.c" - { - GdkPixbuf* _tmp4_; -#line 551 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp4_ = resources_get_icon (RESOURCES_ICON_RATING_FOUR, scale * 4); -#line 551 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp4_; -#line 551 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1439 "Resources.c" - } -#line 540 "/home/jens/Source/shotwell/src/Resources.vala" - case RATING_FIVE: -#line 1443 "Resources.c" - { - GdkPixbuf* _tmp5_; -#line 553 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp5_ = resources_get_icon (RESOURCES_ICON_RATING_FIVE, scale * 5); -#line 553 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp5_; -#line 553 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1452 "Resources.c" - } - default: - { -#line 555 "/home/jens/Source/shotwell/src/Resources.vala" - result = NULL; -#line 555 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 1460 "Resources.c" - } - } -} - - -void -resources_generate_rating_strings (void) -{ - gchar* menu_base = NULL; - gchar* _tmp0_; - gchar* label_base = NULL; - gchar* _tmp1_; - gchar* tooltip_base = NULL; - gchar* _tmp2_; - gchar* progress_base = NULL; - gchar* _tmp3_; - gchar* display_rating_menu_base = NULL; - gchar* _tmp4_; - gchar* display_rating_label_base = NULL; - gchar* _tmp5_; - gchar* display_rating_tooltip_base = NULL; - gchar* _tmp6_; - gchar* display_rating_or_higher_menu_base = NULL; - gchar* _tmp7_; - gchar* display_rating_or_higher_label_base = NULL; - gchar* _tmp8_; - gchar* display_rating_or_higher_tooltip_base = NULL; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; - gchar* _tmp37_; - gchar* _tmp38_; - gchar* _tmp39_; - gchar* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; - gchar* _tmp44_; - gchar* _tmp45_; - gchar* _tmp46_; - gchar* _tmp47_; - gchar* _tmp48_; - gchar* _tmp49_; - gchar* _tmp50_; - gchar* _tmp51_; - gchar* _tmp52_; - gchar* _tmp53_; - gchar* _tmp54_; - gchar* _tmp55_; - gchar* _tmp56_; - gchar* _tmp57_; - gchar* _tmp58_; - gchar* _tmp59_; - gchar* _tmp60_; - gchar* _tmp61_; - gchar* _tmp62_; - gchar* _tmp63_; - gchar* _tmp64_; - gchar* _tmp65_; - gchar* _tmp66_; - gchar* _tmp67_; - gchar* _tmp68_; - gchar* _tmp69_; - gchar* _tmp70_; - gchar* _tmp71_; - gchar* _tmp72_; - gchar* _tmp73_; - gchar* _tmp74_; - gchar* _tmp75_; - gchar* _tmp76_; - gchar* _tmp77_; - gchar* _tmp78_; - gchar* _tmp79_; - gchar* _tmp80_; - gchar* _tmp81_; - gchar* _tmp82_; - gchar* _tmp83_; - gchar* _tmp84_; - gchar* _tmp85_; - gchar* _tmp86_; - gchar* _tmp87_; - gchar* _tmp88_; - gchar* _tmp89_; - gchar* _tmp90_; - gchar* _tmp91_; - gchar* _tmp92_; - gchar* _tmp93_; - gchar* _tmp94_; - gchar* _tmp95_; - gchar* _tmp96_; - gchar* _tmp97_; - gchar* _tmp98_; - gchar* _tmp99_; - gchar* _tmp100_; - gchar* _tmp101_; - gchar* _tmp102_; - gchar* _tmp103_; - gchar* _tmp104_; - gchar* _tmp105_; - gchar* _tmp106_; - gchar* _tmp107_; - gchar* _tmp108_; - gchar* _tmp109_; - gchar* _tmp110_; - gchar* _tmp111_; - gchar* _tmp112_; - gchar* _tmp113_; - gchar* _tmp114_; -#line 560 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup ("%s"); -#line 560 "/home/jens/Source/shotwell/src/Resources.vala" - menu_base = _tmp0_; -#line 561 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = g_strdup (_ ("Rate %s")); -#line 561 "/home/jens/Source/shotwell/src/Resources.vala" - label_base = _tmp1_; -#line 562 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = g_strdup (_ ("Set rating to %s")); -#line 562 "/home/jens/Source/shotwell/src/Resources.vala" - tooltip_base = _tmp2_; -#line 563 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = g_strdup (_ ("Setting rating to %s")); -#line 563 "/home/jens/Source/shotwell/src/Resources.vala" - progress_base = _tmp3_; -#line 564 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp4_ = g_strdup ("%s"); -#line 564 "/home/jens/Source/shotwell/src/Resources.vala" - display_rating_menu_base = _tmp4_; -#line 565 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp5_ = g_strdup (_ ("Display %s")); -#line 565 "/home/jens/Source/shotwell/src/Resources.vala" - display_rating_label_base = _tmp5_; -#line 566 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp6_ = g_strdup (_ ("Only show photos with a rating of %s")); -#line 566 "/home/jens/Source/shotwell/src/Resources.vala" - display_rating_tooltip_base = _tmp6_; -#line 567 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp7_ = g_strdup (_ ("%s or Better")); -#line 567 "/home/jens/Source/shotwell/src/Resources.vala" - display_rating_or_higher_menu_base = _tmp7_; -#line 568 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp8_ = g_strdup (_ ("Display %s or Better")); -#line 568 "/home/jens/Source/shotwell/src/Resources.vala" - display_rating_or_higher_label_base = _tmp8_; -#line 569 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp9_ = g_strdup (_ ("Only show photos with a rating of %s or better")); -#line 569 "/home/jens/Source/shotwell/src/Resources.vala" - display_rating_or_higher_tooltip_base = _tmp9_; -#line 571 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp10_ = resources_get_stars (RATING_ONE); -#line 571 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp11_ = _tmp10_; -#line 571 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp12_ = g_strdup_printf (menu_base, _tmp11_); -#line 571 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_ONE_MENU); -#line 571 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_ONE_MENU = _tmp12_; -#line 571 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp11_); -#line 572 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp13_ = resources_get_stars (RATING_TWO); -#line 572 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp14_ = _tmp13_; -#line 572 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp15_ = g_strdup_printf (menu_base, _tmp14_); -#line 572 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_TWO_MENU); -#line 572 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_TWO_MENU = _tmp15_; -#line 572 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp14_); -#line 573 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp16_ = resources_get_stars (RATING_THREE); -#line 573 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp17_ = _tmp16_; -#line 573 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp18_ = g_strdup_printf (menu_base, _tmp17_); -#line 573 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_THREE_MENU); -#line 573 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_THREE_MENU = _tmp18_; -#line 573 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp17_); -#line 574 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp19_ = resources_get_stars (RATING_FOUR); -#line 574 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp20_ = _tmp19_; -#line 574 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp21_ = g_strdup_printf (menu_base, _tmp20_); -#line 574 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_FOUR_MENU); -#line 574 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_FOUR_MENU = _tmp21_; -#line 574 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp20_); -#line 575 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp22_ = resources_get_stars (RATING_FIVE); -#line 575 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp23_ = _tmp22_; -#line 575 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp24_ = g_strdup_printf (menu_base, _tmp23_); -#line 575 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_FIVE_MENU); -#line 575 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_FIVE_MENU = _tmp24_; -#line 575 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp23_); -#line 577 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp25_ = resources_get_stars (RATING_ONE); -#line 577 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp26_ = _tmp25_; -#line 577 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp27_ = g_strdup_printf (label_base, _tmp26_); -#line 577 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_ONE_LABEL); -#line 577 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_ONE_LABEL = _tmp27_; -#line 577 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp26_); -#line 578 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp28_ = resources_get_stars (RATING_TWO); -#line 578 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp29_ = _tmp28_; -#line 578 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp30_ = g_strdup_printf (label_base, _tmp29_); -#line 578 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_TWO_LABEL); -#line 578 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_TWO_LABEL = _tmp30_; -#line 578 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp29_); -#line 579 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp31_ = resources_get_stars (RATING_THREE); -#line 579 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp32_ = _tmp31_; -#line 579 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp33_ = g_strdup_printf (label_base, _tmp32_); -#line 579 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_THREE_LABEL); -#line 579 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_THREE_LABEL = _tmp33_; -#line 579 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp32_); -#line 580 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp34_ = resources_get_stars (RATING_FOUR); -#line 580 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp35_ = _tmp34_; -#line 580 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp36_ = g_strdup_printf (label_base, _tmp35_); -#line 580 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_FOUR_LABEL); -#line 580 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_FOUR_LABEL = _tmp36_; -#line 580 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp35_); -#line 581 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp37_ = resources_get_stars (RATING_FIVE); -#line 581 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp38_ = _tmp37_; -#line 581 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp39_ = g_strdup_printf (label_base, _tmp38_); -#line 581 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_FIVE_LABEL); -#line 581 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_FIVE_LABEL = _tmp39_; -#line 581 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp38_); -#line 583 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp40_ = resources_get_stars (RATING_ONE); -#line 583 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp41_ = _tmp40_; -#line 583 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp42_ = g_strdup_printf (tooltip_base, _tmp41_); -#line 583 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_ONE_TOOLTIP); -#line 583 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_ONE_TOOLTIP = _tmp42_; -#line 583 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp41_); -#line 584 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp43_ = resources_get_stars (RATING_TWO); -#line 584 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp44_ = _tmp43_; -#line 584 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp45_ = g_strdup_printf (tooltip_base, _tmp44_); -#line 584 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_TWO_TOOLTIP); -#line 584 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_TWO_TOOLTIP = _tmp45_; -#line 584 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp44_); -#line 585 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp46_ = resources_get_stars (RATING_THREE); -#line 585 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp47_ = _tmp46_; -#line 585 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp48_ = g_strdup_printf (tooltip_base, _tmp47_); -#line 585 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_THREE_TOOLTIP); -#line 585 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_THREE_TOOLTIP = _tmp48_; -#line 585 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp47_); -#line 586 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp49_ = resources_get_stars (RATING_FOUR); -#line 586 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp50_ = _tmp49_; -#line 586 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp51_ = g_strdup_printf (tooltip_base, _tmp50_); -#line 586 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_FOUR_TOOLTIP); -#line 586 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_FOUR_TOOLTIP = _tmp51_; -#line 586 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp50_); -#line 587 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp52_ = resources_get_stars (RATING_FIVE); -#line 587 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp53_ = _tmp52_; -#line 587 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp54_ = g_strdup_printf (tooltip_base, _tmp53_); -#line 587 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_FIVE_TOOLTIP); -#line 587 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_FIVE_TOOLTIP = _tmp54_; -#line 587 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp53_); -#line 589 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp55_ = resources_get_stars (RATING_ONE); -#line 589 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp56_ = _tmp55_; -#line 589 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp57_ = g_strdup_printf (progress_base, _tmp56_); -#line 589 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_ONE_PROGRESS); -#line 589 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_ONE_PROGRESS = _tmp57_; -#line 589 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp56_); -#line 590 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp58_ = resources_get_stars (RATING_TWO); -#line 590 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp59_ = _tmp58_; -#line 590 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp60_ = g_strdup_printf (progress_base, _tmp59_); -#line 590 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_TWO_PROGRESS); -#line 590 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_TWO_PROGRESS = _tmp60_; -#line 590 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp59_); -#line 591 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp61_ = resources_get_stars (RATING_THREE); -#line 591 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp62_ = _tmp61_; -#line 591 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp63_ = g_strdup_printf (progress_base, _tmp62_); -#line 591 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_THREE_PROGRESS); -#line 591 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_THREE_PROGRESS = _tmp63_; -#line 591 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp62_); -#line 592 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp64_ = resources_get_stars (RATING_FOUR); -#line 592 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp65_ = _tmp64_; -#line 592 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp66_ = g_strdup_printf (progress_base, _tmp65_); -#line 592 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_FOUR_PROGRESS); -#line 592 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_FOUR_PROGRESS = _tmp66_; -#line 592 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp65_); -#line 593 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp67_ = resources_get_stars (RATING_FIVE); -#line 593 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp68_ = _tmp67_; -#line 593 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp69_ = g_strdup_printf (progress_base, _tmp68_); -#line 593 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_RATE_FIVE_PROGRESS); -#line 593 "/home/jens/Source/shotwell/src/Resources.vala" - resources_RATE_FIVE_PROGRESS = _tmp69_; -#line 593 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp68_); -#line 595 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp70_ = resources_get_stars (RATING_ONE); -#line 595 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp71_ = _tmp70_; -#line 595 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp72_ = g_strdup_printf (display_rating_or_higher_menu_base, _tmp71_); -#line 595 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_DISPLAY_ONE_OR_HIGHER_MENU); -#line 595 "/home/jens/Source/shotwell/src/Resources.vala" - resources_DISPLAY_ONE_OR_HIGHER_MENU = _tmp72_; -#line 595 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp71_); -#line 596 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp73_ = resources_get_stars (RATING_TWO); -#line 596 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp74_ = _tmp73_; -#line 596 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp75_ = g_strdup_printf (display_rating_or_higher_menu_base, _tmp74_); -#line 596 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_DISPLAY_TWO_OR_HIGHER_MENU); -#line 596 "/home/jens/Source/shotwell/src/Resources.vala" - resources_DISPLAY_TWO_OR_HIGHER_MENU = _tmp75_; -#line 596 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp74_); -#line 597 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp76_ = resources_get_stars (RATING_THREE); -#line 597 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp77_ = _tmp76_; -#line 597 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp78_ = g_strdup_printf (display_rating_or_higher_menu_base, _tmp77_); -#line 597 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_DISPLAY_THREE_OR_HIGHER_MENU); -#line 597 "/home/jens/Source/shotwell/src/Resources.vala" - resources_DISPLAY_THREE_OR_HIGHER_MENU = _tmp78_; -#line 597 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp77_); -#line 598 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp79_ = resources_get_stars (RATING_FOUR); -#line 598 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp80_ = _tmp79_; -#line 598 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp81_ = g_strdup_printf (display_rating_or_higher_menu_base, _tmp80_); -#line 598 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_DISPLAY_FOUR_OR_HIGHER_MENU); -#line 598 "/home/jens/Source/shotwell/src/Resources.vala" - resources_DISPLAY_FOUR_OR_HIGHER_MENU = _tmp81_; -#line 598 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp80_); -#line 599 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp82_ = resources_get_stars (RATING_FIVE); -#line 599 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp83_ = _tmp82_; -#line 599 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp84_ = g_strdup_printf (display_rating_menu_base, _tmp83_); -#line 599 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_DISPLAY_FIVE_OR_HIGHER_MENU); -#line 599 "/home/jens/Source/shotwell/src/Resources.vala" - resources_DISPLAY_FIVE_OR_HIGHER_MENU = _tmp84_; -#line 599 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp83_); -#line 601 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp85_ = resources_get_stars (RATING_ONE); -#line 601 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp86_ = _tmp85_; -#line 601 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp87_ = g_strdup_printf (display_rating_or_higher_label_base, _tmp86_); -#line 601 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_DISPLAY_ONE_OR_HIGHER_LABEL); -#line 601 "/home/jens/Source/shotwell/src/Resources.vala" - resources_DISPLAY_ONE_OR_HIGHER_LABEL = _tmp87_; -#line 601 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp86_); -#line 602 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp88_ = resources_get_stars (RATING_TWO); -#line 602 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp89_ = _tmp88_; -#line 602 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp90_ = g_strdup_printf (display_rating_or_higher_label_base, _tmp89_); -#line 602 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_DISPLAY_TWO_OR_HIGHER_LABEL); -#line 602 "/home/jens/Source/shotwell/src/Resources.vala" - resources_DISPLAY_TWO_OR_HIGHER_LABEL = _tmp90_; -#line 602 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp89_); -#line 603 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp91_ = resources_get_stars (RATING_THREE); -#line 603 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp92_ = _tmp91_; -#line 603 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp93_ = g_strdup_printf (display_rating_or_higher_label_base, _tmp92_); -#line 603 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_DISPLAY_THREE_OR_HIGHER_LABEL); -#line 603 "/home/jens/Source/shotwell/src/Resources.vala" - resources_DISPLAY_THREE_OR_HIGHER_LABEL = _tmp93_; -#line 603 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp92_); -#line 604 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp94_ = resources_get_stars (RATING_FOUR); -#line 604 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp95_ = _tmp94_; -#line 604 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp96_ = g_strdup_printf (display_rating_or_higher_label_base, _tmp95_); -#line 604 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_DISPLAY_FOUR_OR_HIGHER_LABEL); -#line 604 "/home/jens/Source/shotwell/src/Resources.vala" - resources_DISPLAY_FOUR_OR_HIGHER_LABEL = _tmp96_; -#line 604 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp95_); -#line 605 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp97_ = resources_get_stars (RATING_FIVE); -#line 605 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp98_ = _tmp97_; -#line 605 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp99_ = g_strdup_printf (display_rating_label_base, _tmp98_); -#line 605 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_DISPLAY_FIVE_OR_HIGHER_LABEL); -#line 605 "/home/jens/Source/shotwell/src/Resources.vala" - resources_DISPLAY_FIVE_OR_HIGHER_LABEL = _tmp99_; -#line 605 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp98_); -#line 607 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp100_ = resources_get_stars (RATING_ONE); -#line 607 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp101_ = _tmp100_; -#line 607 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp102_ = g_strdup_printf (display_rating_or_higher_tooltip_base, _tmp101_); -#line 607 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_DISPLAY_ONE_OR_HIGHER_TOOLTIP); -#line 607 "/home/jens/Source/shotwell/src/Resources.vala" - resources_DISPLAY_ONE_OR_HIGHER_TOOLTIP = _tmp102_; -#line 607 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp101_); -#line 608 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp103_ = resources_get_stars (RATING_TWO); -#line 608 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp104_ = _tmp103_; -#line 608 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp105_ = g_strdup_printf (display_rating_or_higher_tooltip_base, _tmp104_); -#line 608 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_DISPLAY_TWO_OR_HIGHER_TOOLTIP); -#line 608 "/home/jens/Source/shotwell/src/Resources.vala" - resources_DISPLAY_TWO_OR_HIGHER_TOOLTIP = _tmp105_; -#line 608 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp104_); -#line 609 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp106_ = resources_get_stars (RATING_THREE); -#line 609 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp107_ = _tmp106_; -#line 609 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp108_ = g_strdup_printf (display_rating_or_higher_tooltip_base, _tmp107_); -#line 609 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_DISPLAY_THREE_OR_HIGHER_TOOLTIP); -#line 609 "/home/jens/Source/shotwell/src/Resources.vala" - resources_DISPLAY_THREE_OR_HIGHER_TOOLTIP = _tmp108_; -#line 609 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp107_); -#line 610 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp109_ = resources_get_stars (RATING_FOUR); -#line 610 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp110_ = _tmp109_; -#line 610 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp111_ = g_strdup_printf (display_rating_or_higher_tooltip_base, _tmp110_); -#line 610 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_DISPLAY_FOUR_OR_HIGHER_TOOLTIP); -#line 610 "/home/jens/Source/shotwell/src/Resources.vala" - resources_DISPLAY_FOUR_OR_HIGHER_TOOLTIP = _tmp111_; -#line 610 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp110_); -#line 611 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp112_ = resources_get_stars (RATING_FIVE); -#line 611 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp113_ = _tmp112_; -#line 611 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp114_ = g_strdup_printf (display_rating_tooltip_base, _tmp113_); -#line 611 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_DISPLAY_FIVE_OR_HIGHER_TOOLTIP); -#line 611 "/home/jens/Source/shotwell/src/Resources.vala" - resources_DISPLAY_FIVE_OR_HIGHER_TOOLTIP = _tmp114_; -#line 611 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp113_); -#line 559 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (display_rating_or_higher_tooltip_base); -#line 559 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (display_rating_or_higher_label_base); -#line 559 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (display_rating_or_higher_menu_base); -#line 559 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (display_rating_tooltip_base); -#line 559 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (display_rating_label_base); -#line 559 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (display_rating_menu_base); -#line 559 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (progress_base); -#line 559 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (tooltip_base); -#line 559 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (label_base); -#line 559 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (menu_base); -#line 2074 "Resources.c" -} - - -gchar* -resources_jump_to_file_failed (GError* err) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 670 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = err->message; -#line 670 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = g_strdup_printf (_ ("Unable to open in file manager: %s"), _tmp0_); -#line 670 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp1_; -#line 670 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 2092 "Resources.c" -} - - -void -resources_init (void) -{ - GtkIconTheme* _tmp0_; - GtkIconTheme* _tmp1_; -#line 692 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = resources_get_icon_theme_engine (); -#line 692 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = _tmp0_; -#line 692 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (_tmp1_); -#line 694 "/home/jens/Source/shotwell/src/Resources.vala" - resources_generate_rating_strings (); -#line 2109 "Resources.c" -} - - -void -resources_terminate (void) -{ -} - - -/** - * @brief Helper for getting a format string that matches the - * user's LC_TIME settings from the system. This is intended - * to help support the use case where a user wants the text - * from one locale, but the timestamp format of another. - * - * Stolen wholesale from code written for Geary by Jim Nelson - * and from Marcel Stimberg's original patch to Shotwell to - * try to fix this; both are graciously thanked for their help. - */ -void -resources_fetch_lc_time_format (void) -{ - gchar* old_language = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; - const gchar* _tmp2_; - gchar* old_messages = NULL; - const gchar* _tmp3_; - gchar* _tmp4_; - gchar* lc_time = NULL; - const gchar* _tmp5_; - gchar* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp9_; - const gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - const gchar* _tmp17_; - const gchar* _tmp19_; -#line 713 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_getenv ("LANGUAGE"); -#line 713 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 713 "/home/jens/Source/shotwell/src/Resources.vala" - old_language = _tmp1_; -#line 714 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = old_language; -#line 714 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp2_ != NULL) { -#line 715 "/home/jens/Source/shotwell/src/Resources.vala" - g_unsetenv ("LANGUAGE"); -#line 2165 "Resources.c" - } -#line 719 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = setlocale (LC_MESSAGES, NULL); -#line 719 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp4_ = g_strdup (_tmp3_); -#line 719 "/home/jens/Source/shotwell/src/Resources.vala" - old_messages = _tmp4_; -#line 720 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp5_ = setlocale (LC_TIME, NULL); -#line 720 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 720 "/home/jens/Source/shotwell/src/Resources.vala" - lc_time = _tmp6_; -#line 722 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp7_ = lc_time; -#line 722 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp7_ != NULL) { -#line 2183 "Resources.c" - const gchar* _tmp8_; -#line 723 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp8_ = lc_time; -#line 723 "/home/jens/Source/shotwell/src/Resources.vala" - setlocale (LC_MESSAGES, _tmp8_); -#line 2189 "Resources.c" - } -#line 730 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp9_ = g_strdup ("%X"); -#line 730 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_HH_MM_FORMAT_STRING); -#line 730 "/home/jens/Source/shotwell/src/Resources.vala" - resources_HH_MM_FORMAT_STRING = _tmp9_; -#line 735 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp10_ = nl_langinfo (T_FMT); -#line 735 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp11_ = g_strdup (_tmp10_); -#line 735 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_HH_MM_SS_FORMAT_STRING); -#line 735 "/home/jens/Source/shotwell/src/Resources.vala" - resources_HH_MM_SS_FORMAT_STRING = _tmp11_; -#line 739 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp12_ = g_strdup (_ ("%a %b %d, %Y")); -#line 739 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_LONG_DATE_FORMAT_STRING); -#line 739 "/home/jens/Source/shotwell/src/Resources.vala" - resources_LONG_DATE_FORMAT_STRING = _tmp12_; -#line 744 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp13_ = g_strdup (C_ ("MultidayFormat", "%a %b %d")); -#line 744 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_START_MULTIDAY_DATE_FORMAT_STRING); -#line 744 "/home/jens/Source/shotwell/src/Resources.vala" - resources_START_MULTIDAY_DATE_FORMAT_STRING = _tmp13_; -#line 749 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp14_ = g_strdup (C_ ("MultidayFormat", "%d, %Y")); -#line 749 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_END_MULTIDAY_DATE_FORMAT_STRING); -#line 749 "/home/jens/Source/shotwell/src/Resources.vala" - resources_END_MULTIDAY_DATE_FORMAT_STRING = _tmp14_; -#line 754 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp15_ = g_strdup (C_ ("MultimonthFormat", "%a %b %d")); -#line 754 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_START_MULTIMONTH_DATE_FORMAT_STRING); -#line 754 "/home/jens/Source/shotwell/src/Resources.vala" - resources_START_MULTIMONTH_DATE_FORMAT_STRING = _tmp15_; -#line 759 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp16_ = g_strdup (C_ ("MultimonthFormat", "%a %b %d, %Y")); -#line 759 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_END_MULTIMONTH_DATE_FORMAT_STRING); -#line 759 "/home/jens/Source/shotwell/src/Resources.vala" - resources_END_MULTIMONTH_DATE_FORMAT_STRING = _tmp16_; -#line 762 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp17_ = old_messages; -#line 762 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp17_ != NULL) { -#line 2239 "Resources.c" - const gchar* _tmp18_; -#line 763 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp18_ = old_messages; -#line 763 "/home/jens/Source/shotwell/src/Resources.vala" - setlocale (LC_MESSAGES, _tmp18_); -#line 2245 "Resources.c" - } -#line 766 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp19_ = old_language; -#line 766 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp19_ != NULL) { -#line 2251 "Resources.c" - const gchar* _tmp20_; -#line 767 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp20_ = old_language; -#line 767 "/home/jens/Source/shotwell/src/Resources.vala" - g_setenv ("LANGUAGE", _tmp20_, TRUE); -#line 2257 "Resources.c" - } -#line 710 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (lc_time); -#line 710 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (old_messages); -#line 710 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (old_language); -#line 2265 "Resources.c" -} - - -GType -resources_unit_system_get_type (void) -{ - static volatile gsize resources_unit_system_type_id__volatile = 0; - if (g_once_init_enter (&resources_unit_system_type_id__volatile)) { - static const GEnumValue values[] = {{RESOURCES_UNIT_SYSTEM_IMPERIAL, "RESOURCES_UNIT_SYSTEM_IMPERIAL", "imperial"}, {RESOURCES_UNIT_SYSTEM_METRIC, "RESOURCES_UNIT_SYSTEM_METRIC", "metric"}, {RESOURCES_UNIT_SYSTEM_UNKNOWN, "RESOURCES_UNIT_SYSTEM_UNKNOWN", "unknown"}, {0, NULL, NULL}}; - GType resources_unit_system_type_id; - resources_unit_system_type_id = g_enum_register_static ("ResourcesUnitSystem", values); - g_once_init_leave (&resources_unit_system_type_id__volatile, resources_unit_system_type_id); - } - return resources_unit_system_type_id__volatile; -} - - -static gint -string_last_index_of_char (const gchar* self, - gunichar c, - gint start_index) -{ - gint result = 0; - gchar* _result_ = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1055 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0); -#line 1056 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_utf8_strrchr (((gchar*) self) + start_index, (gssize) -1, c); -#line 1056 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1058 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1058 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ != NULL) { -#line 2302 "Resources.c" - gchar* _tmp2_; -#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _result_; -#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gint) (_tmp2_ - ((gchar*) self)); -#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2310 "Resources.c" - } else { -#line 1061 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = -1; -#line 1061 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2316 "Resources.c" - } -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2341 "Resources.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2350 "Resources.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 2371 "Resources.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 2375 "Resources.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 2381 "Resources.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 2391 "Resources.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 2395 "Resources.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 2403 "Resources.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 2410 "Resources.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 2414 "Resources.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 2420 "Resources.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2432 "Resources.c" -} - - -static gboolean -_vala_string_array_contains (const gchar* * stack, - int stack_length, - const gchar* needle) -{ - int i; -#line 798 "/home/jens/Source/shotwell/src/Resources.vala" - for (i = 0; i < stack_length; i++) { -#line 798 "/home/jens/Source/shotwell/src/Resources.vala" - if (g_strcmp0 (stack[i], needle) == 0) { -#line 798 "/home/jens/Source/shotwell/src/Resources.vala" - return TRUE; -#line 2448 "Resources.c" - } - } -#line 798 "/home/jens/Source/shotwell/src/Resources.vala" - return FALSE; -#line 2453 "Resources.c" -} - - -ResourcesUnitSystem -resources_get_default_measurement_unit (void) -{ - ResourcesUnitSystem result = 0; - ResourcesUnitSystem _tmp0_; - const gchar* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; - gint index = 0; - const gchar* _tmp9_; - gint _tmp10_; - const gchar* _tmp14_; - ResourcesUnitSystem _tmp15_; -#line 783 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = resources_unit_system; -#line 783 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp0_ != RESOURCES_UNIT_SYSTEM_UNKNOWN) { -#line 2474 "Resources.c" - ResourcesUnitSystem _tmp1_; -#line 784 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = resources_unit_system; -#line 784 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp1_; -#line 784 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 2482 "Resources.c" - } -#line 787 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = g_getenv ("LC_MEASUREMENT"); -#line 787 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 787 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_lc_measurement); -#line 787 "/home/jens/Source/shotwell/src/Resources.vala" - resources_lc_measurement = _tmp3_; -#line 788 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp4_ = resources_lc_measurement; -#line 788 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp4_ == NULL) { -#line 2496 "Resources.c" - gchar** _tmp5_; - gchar** _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_; -#line 789 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp6_ = _tmp5_ = g_get_language_names (); -#line 789 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp7_ = _tmp6_[0]; -#line 789 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp8_ = g_strdup (_tmp7_); -#line 789 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_lc_measurement); -#line 789 "/home/jens/Source/shotwell/src/Resources.vala" - resources_lc_measurement = _tmp8_; -#line 2511 "Resources.c" - } -#line 792 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp9_ = resources_lc_measurement; -#line 792 "/home/jens/Source/shotwell/src/Resources.vala" - index = string_last_index_of_char (_tmp9_, (gunichar) '.', 0); -#line 793 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp10_ = index; -#line 793 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp10_ > 0) { -#line 2521 "Resources.c" - const gchar* _tmp11_; - gint _tmp12_; - gchar* _tmp13_; -#line 794 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp11_ = resources_lc_measurement; -#line 794 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp12_ = index; -#line 794 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp13_ = string_substring (_tmp11_, (glong) 0, (glong) _tmp12_); -#line 794 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (resources_lc_measurement); -#line 794 "/home/jens/Source/shotwell/src/Resources.vala" - resources_lc_measurement = _tmp13_; -#line 2535 "Resources.c" - } -#line 797 "/home/jens/Source/shotwell/src/Resources.vala" - resources_unit_system = RESOURCES_UNIT_SYSTEM_METRIC; -#line 798 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp14_ = resources_lc_measurement; -#line 798 "/home/jens/Source/shotwell/src/Resources.vala" - if (_vala_string_array_contains (RESOURCES_IMPERIAL_COUNTRIES, G_N_ELEMENTS (RESOURCES_IMPERIAL_COUNTRIES), _tmp14_)) { -#line 799 "/home/jens/Source/shotwell/src/Resources.vala" - resources_unit_system = RESOURCES_UNIT_SYSTEM_IMPERIAL; -#line 2545 "Resources.c" - } -#line 802 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp15_ = resources_unit_system; -#line 802 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp15_; -#line 802 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 2553 "Resources.c" -} - - -/** - * @brief Returns a precached format string that matches the - * user's LC_TIME settings. - */ -gchar* -resources_get_hh_mm_format_string (void) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 810 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = resources_HH_MM_FORMAT_STRING; -#line 810 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp0_ == NULL) { -#line 811 "/home/jens/Source/shotwell/src/Resources.vala" - resources_fetch_lc_time_format (); -#line 2574 "Resources.c" - } -#line 814 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = resources_HH_MM_FORMAT_STRING; -#line 814 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 814 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp2_; -#line 814 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 2584 "Resources.c" -} - - -gchar* -resources_get_hh_mm_ss_format_string (void) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 818 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = resources_HH_MM_SS_FORMAT_STRING; -#line 818 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp0_ == NULL) { -#line 819 "/home/jens/Source/shotwell/src/Resources.vala" - resources_fetch_lc_time_format (); -#line 2601 "Resources.c" - } -#line 822 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = resources_HH_MM_SS_FORMAT_STRING; -#line 822 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 822 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp2_; -#line 822 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 2611 "Resources.c" -} - - -gchar* -resources_get_long_date_format_string (void) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 826 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = resources_LONG_DATE_FORMAT_STRING; -#line 826 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp0_ == NULL) { -#line 827 "/home/jens/Source/shotwell/src/Resources.vala" - resources_fetch_lc_time_format (); -#line 2628 "Resources.c" - } -#line 830 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = resources_LONG_DATE_FORMAT_STRING; -#line 830 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 830 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp2_; -#line 830 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 2638 "Resources.c" -} - - -gchar* -resources_get_start_multiday_span_format_string (void) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 834 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = resources_START_MULTIDAY_DATE_FORMAT_STRING; -#line 834 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp0_ == NULL) { -#line 835 "/home/jens/Source/shotwell/src/Resources.vala" - resources_fetch_lc_time_format (); -#line 2655 "Resources.c" - } -#line 838 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = resources_START_MULTIDAY_DATE_FORMAT_STRING; -#line 838 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 838 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp2_; -#line 838 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 2665 "Resources.c" -} - - -gchar* -resources_get_end_multiday_span_format_string (void) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 842 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = resources_END_MULTIDAY_DATE_FORMAT_STRING; -#line 842 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp0_ == NULL) { -#line 843 "/home/jens/Source/shotwell/src/Resources.vala" - resources_fetch_lc_time_format (); -#line 2682 "Resources.c" - } -#line 846 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = resources_END_MULTIDAY_DATE_FORMAT_STRING; -#line 846 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 846 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp2_; -#line 846 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 2692 "Resources.c" -} - - -gchar* -resources_get_start_multimonth_span_format_string (void) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 850 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = resources_START_MULTIMONTH_DATE_FORMAT_STRING; -#line 850 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp0_ == NULL) { -#line 851 "/home/jens/Source/shotwell/src/Resources.vala" - resources_fetch_lc_time_format (); -#line 2709 "Resources.c" - } -#line 854 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = resources_START_MULTIMONTH_DATE_FORMAT_STRING; -#line 854 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 854 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp2_; -#line 854 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 2719 "Resources.c" -} - - -gchar* -resources_get_end_multimonth_span_format_string (void) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 858 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = resources_END_MULTIMONTH_DATE_FORMAT_STRING; -#line 858 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp0_ == NULL) { -#line 859 "/home/jens/Source/shotwell/src/Resources.vala" - resources_fetch_lc_time_format (); -#line 2736 "Resources.c" - } -#line 862 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = resources_END_MULTIMONTH_DATE_FORMAT_STRING; -#line 862 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 862 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp2_; -#line 862 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 2746 "Resources.c" -} - - -gchar* -resources_get_ui (const gchar* filename) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 865 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (filename != NULL, NULL); -#line 866 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup_printf ("/org/gnome/Shotwell/ui/%s", filename); -#line 866 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp0_; -#line 866 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 2763 "Resources.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 882 "/home/jens/Source/shotwell/src/Resources.vala" - return self ? g_object_ref (self) : NULL; -#line 2772 "Resources.c" -} - - -GdkPixbuf* -resources_get_noninterpretable_badge_pixbuf (void) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp7_; - GdkPixbuf* _tmp8_; - GError * _inner_error_ = NULL; -#line 873 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = resources_noninterpretable_badge_pixbuf; -#line 873 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp0_ == NULL) { -#line 2788 "Resources.c" - { - gchar* path = NULL; - gchar* _tmp1_; - GdkPixbuf* _tmp2_ = NULL; - const gchar* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; -#line 875 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = g_strdup ("/org/gnome/Shotwell/icons/" RESOURCES_NONINTERPRETABLE_BADGE_FILE); -#line 875 "/home/jens/Source/shotwell/src/Resources.vala" - path = _tmp1_; -#line 876 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = path; -#line 876 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp4_ = gdk_pixbuf_new_from_resource (_tmp3_, &_inner_error_); -#line 876 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = _tmp4_; -#line 876 "/home/jens/Source/shotwell/src/Resources.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 876 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (path); -#line 2810 "Resources.c" - goto __catch438_g_error; - } -#line 876 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp5_ = _tmp2_; -#line 876 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = NULL; -#line 876 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (resources_noninterpretable_badge_pixbuf); -#line 876 "/home/jens/Source/shotwell/src/Resources.vala" - resources_noninterpretable_badge_pixbuf = _tmp5_; -#line 874 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (_tmp2_); -#line 874 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (path); -#line 2825 "Resources.c" - } - goto __finally438; - __catch438_g_error: - { - GError* err = NULL; - const gchar* _tmp6_; -#line 874 "/home/jens/Source/shotwell/src/Resources.vala" - err = _inner_error_; -#line 874 "/home/jens/Source/shotwell/src/Resources.vala" - _inner_error_ = NULL; -#line 878 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp6_ = err->message; -#line 878 "/home/jens/Source/shotwell/src/Resources.vala" - g_error ("Resources.vala:878: VideoReader can't load noninterpretable badge imag" \ -"e: %s", _tmp6_); -#line 874 "/home/jens/Source/shotwell/src/Resources.vala" - _g_error_free0 (err); -#line 2842 "Resources.c" - } - __finally438: -#line 874 "/home/jens/Source/shotwell/src/Resources.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 874 "/home/jens/Source/shotwell/src/Resources.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 874 "/home/jens/Source/shotwell/src/Resources.vala" - g_clear_error (&_inner_error_); -#line 874 "/home/jens/Source/shotwell/src/Resources.vala" - return NULL; -#line 2853 "Resources.c" - } - } -#line 882 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp7_ = resources_noninterpretable_badge_pixbuf; -#line 882 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp8_ = _g_object_ref0 (_tmp7_); -#line 882 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp8_; -#line 882 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 2864 "Resources.c" -} - - -GtkIconTheme* -resources_get_icon_theme_engine (void) -{ - GtkIconTheme* result = NULL; - GtkIconTheme* icon_theme = NULL; - GtkIconTheme* _tmp0_; - GtkIconTheme* _tmp1_; -#line 886 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = gtk_icon_theme_get_default (); -#line 886 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 886 "/home/jens/Source/shotwell/src/Resources.vala" - icon_theme = _tmp1_; -#line 887 "/home/jens/Source/shotwell/src/Resources.vala" - gtk_icon_theme_add_resource_path (icon_theme, "/org/gnome/Shotwell/icons"); -#line 889 "/home/jens/Source/shotwell/src/Resources.vala" - result = icon_theme; -#line 889 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 2887 "Resources.c" -} - - -GdkPixbuf* -resources_get_icon (const gchar* name, - gint scale) -{ - GdkPixbuf* result = NULL; - GeeHashMap* _tmp0_; - GeeHashMap* _tmp7_; - GdkPixbuf* pixbuf = NULL; - GeeHashMap* _tmp9_; - gpointer _tmp10_; - GdkPixbuf* _tmp11_; - GdkPixbuf* scaled_pixbuf = NULL; - GdkPixbuf* _tmp16_; - GdkPixbuf* _tmp17_; - GeeHashMap* _tmp18_; - GeeHashMap* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - GdkPixbuf* _tmp23_; -#line 894 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 895 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = resources_scaled_icon_cache; -#line 895 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp0_ != NULL) { -#line 2916 "Resources.c" - gchar* scaled_name = NULL; - gchar* _tmp1_; - GeeHashMap* _tmp2_; - const gchar* _tmp3_; -#line 896 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = g_strdup_printf ("%s-%d", name, scale); -#line 896 "/home/jens/Source/shotwell/src/Resources.vala" - scaled_name = _tmp1_; -#line 897 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = resources_scaled_icon_cache; -#line 897 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = scaled_name; -#line 897 "/home/jens/Source/shotwell/src/Resources.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_)) { -#line 2931 "Resources.c" - GeeHashMap* _tmp4_; - const gchar* _tmp5_; - gpointer _tmp6_; -#line 898 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp4_ = resources_scaled_icon_cache; -#line 898 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp5_ = scaled_name; -#line 898 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp6_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_); -#line 898 "/home/jens/Source/shotwell/src/Resources.vala" - result = (GdkPixbuf*) _tmp6_; -#line 898 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (scaled_name); -#line 898 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 2947 "Resources.c" - } -#line 895 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (scaled_name); -#line 2951 "Resources.c" - } -#line 903 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp7_ = resources_icon_cache; -#line 903 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp7_ == NULL) { -#line 2957 "Resources.c" - GeeHashMap* _tmp8_; -#line 904 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp8_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, gdk_pixbuf_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 904 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (resources_icon_cache); -#line 904 "/home/jens/Source/shotwell/src/Resources.vala" - resources_icon_cache = _tmp8_; -#line 2965 "Resources.c" - } -#line 907 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp9_ = resources_icon_cache; -#line 907 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp10_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name); -#line 907 "/home/jens/Source/shotwell/src/Resources.vala" - pixbuf = (GdkPixbuf*) _tmp10_; -#line 908 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp11_ = pixbuf; -#line 908 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp11_ == NULL) { -#line 2977 "Resources.c" - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; - GeeHashMap* _tmp14_; - GdkPixbuf* _tmp15_; -#line 909 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp12_ = resources_load_icon (name, 0); -#line 909 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (pixbuf); -#line 909 "/home/jens/Source/shotwell/src/Resources.vala" - pixbuf = _tmp12_; -#line 910 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp13_ = pixbuf; -#line 910 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp13_ == NULL) { -#line 911 "/home/jens/Source/shotwell/src/Resources.vala" - result = NULL; -#line 911 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (pixbuf); -#line 911 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 2998 "Resources.c" - } -#line 913 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp14_ = resources_icon_cache; -#line 913 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp15_ = pixbuf; -#line 913 "/home/jens/Source/shotwell/src/Resources.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name, _tmp15_); -#line 3006 "Resources.c" - } -#line 916 "/home/jens/Source/shotwell/src/Resources.vala" - if (scale <= 0) { -#line 917 "/home/jens/Source/shotwell/src/Resources.vala" - result = pixbuf; -#line 917 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 3014 "Resources.c" - } -#line 919 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp16_ = pixbuf; -#line 919 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp17_ = scale_pixbuf (_tmp16_, scale, GDK_INTERP_BILINEAR, FALSE); -#line 919 "/home/jens/Source/shotwell/src/Resources.vala" - scaled_pixbuf = _tmp17_; -#line 921 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp18_ = resources_scaled_icon_cache; -#line 921 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp18_ == NULL) { -#line 3026 "Resources.c" - GeeHashMap* _tmp19_; -#line 922 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp19_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, gdk_pixbuf_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 922 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (resources_scaled_icon_cache); -#line 922 "/home/jens/Source/shotwell/src/Resources.vala" - resources_scaled_icon_cache = _tmp19_; -#line 3034 "Resources.c" - } -#line 924 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp20_ = resources_scaled_icon_cache; -#line 924 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp21_ = g_strdup_printf ("%s-%d", name, scale); -#line 924 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp22_ = _tmp21_; -#line 924 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp23_ = scaled_pixbuf; -#line 924 "/home/jens/Source/shotwell/src/Resources.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp22_, _tmp23_); -#line 924 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp22_); -#line 926 "/home/jens/Source/shotwell/src/Resources.vala" - result = scaled_pixbuf; -#line 926 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (pixbuf); -#line 926 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 3054 "Resources.c" -} - - -GdkPixbuf* -resources_load_icon (const gchar* name, - gint scale) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* pixbuf = NULL; - GdkPixbuf* _tmp6_; - GdkPixbuf* _tmp7_ = NULL; - GError * _inner_error_ = NULL; -#line 929 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 930 "/home/jens/Source/shotwell/src/Resources.vala" - pixbuf = NULL; -#line 3071 "Resources.c" - { - gchar* path = NULL; - gchar* _tmp0_; - GdkPixbuf* _tmp1_ = NULL; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; -#line 932 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_strdup_printf ("/org/gnome/Shotwell/icons/%s", name); -#line 932 "/home/jens/Source/shotwell/src/Resources.vala" - path = _tmp0_; -#line 933 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = gdk_pixbuf_new_from_resource (path, &_inner_error_); -#line 933 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = _tmp2_; -#line 933 "/home/jens/Source/shotwell/src/Resources.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 933 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (path); -#line 3090 "Resources.c" - goto __catch439_g_error; - } -#line 933 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = _tmp1_; -#line 933 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = NULL; -#line 933 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (pixbuf); -#line 933 "/home/jens/Source/shotwell/src/Resources.vala" - pixbuf = _tmp3_; -#line 931 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (_tmp1_); -#line 931 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (path); -#line 3105 "Resources.c" - } - goto __finally439; - __catch439_g_error: - { - GError* err = NULL; - GError* _tmp4_; - const gchar* _tmp5_; -#line 931 "/home/jens/Source/shotwell/src/Resources.vala" - err = _inner_error_; -#line 931 "/home/jens/Source/shotwell/src/Resources.vala" - _inner_error_ = NULL; -#line 935 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp4_ = err; -#line 935 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp5_ = _tmp4_->message; -#line 935 "/home/jens/Source/shotwell/src/Resources.vala" - g_critical ("Resources.vala:935: Unable to load icon %s: %s", name, _tmp5_); -#line 931 "/home/jens/Source/shotwell/src/Resources.vala" - _g_error_free0 (err); -#line 3125 "Resources.c" - } - __finally439: -#line 931 "/home/jens/Source/shotwell/src/Resources.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 931 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (pixbuf); -#line 931 "/home/jens/Source/shotwell/src/Resources.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 931 "/home/jens/Source/shotwell/src/Resources.vala" - g_clear_error (&_inner_error_); -#line 931 "/home/jens/Source/shotwell/src/Resources.vala" - return NULL; -#line 3138 "Resources.c" - } -#line 938 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp6_ = pixbuf; -#line 938 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp6_ == NULL) { -#line 939 "/home/jens/Source/shotwell/src/Resources.vala" - result = NULL; -#line 939 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (pixbuf); -#line 939 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 3150 "Resources.c" - } -#line 941 "/home/jens/Source/shotwell/src/Resources.vala" - if (scale > 0) { -#line 3154 "Resources.c" - GdkPixbuf* _tmp8_; - GdkPixbuf* _tmp9_; -#line 941 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp8_ = pixbuf; -#line 941 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp9_ = scale_pixbuf (_tmp8_, scale, GDK_INTERP_BILINEAR, FALSE); -#line 941 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (_tmp7_); -#line 941 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp7_ = _tmp9_; -#line 3165 "Resources.c" - } else { - GdkPixbuf* _tmp10_; - GdkPixbuf* _tmp11_; -#line 941 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp10_ = pixbuf; -#line 941 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp11_ = _g_object_ref0 (_tmp10_); -#line 941 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (_tmp7_); -#line 941 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp7_ = _tmp11_; -#line 3177 "Resources.c" - } -#line 941 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp7_; -#line 941 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (pixbuf); -#line 941 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 3185 "Resources.c" -} - - -gchar* -resources_get_help_path (void) -{ - gchar* result = NULL; - GFile* dir = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gboolean _tmp4_; - GFile* help_dir = NULL; - GFile* _tmp9_; - GFile* _tmp10_; - GFile* _tmp11_; - GFile* _tmp12_; - GFile* _tmp13_; - GFile* help_index = NULL; - GFile* _tmp14_; - GFile* _tmp15_; - GFile* _tmp16_; -#line 951 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = app_dirs_get_exec_dir (); -#line 951 "/home/jens/Source/shotwell/src/Resources.vala" - dir = _tmp0_; -#line 953 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = dir; -#line 953 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = g_file_get_path (_tmp1_); -#line 953 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = _tmp2_; -#line 953 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp4_ = g_str_has_suffix (_tmp3_, "src"); -#line 953 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp3_); -#line 953 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp4_) { -#line 3225 "Resources.c" - GFile* _tmp5_; - GFile* _tmp6_; - GFile* _tmp7_; - GFile* _tmp8_; -#line 954 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp5_ = dir; -#line 954 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp6_ = g_file_get_parent (_tmp5_); -#line 954 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp7_ = _tmp6_; -#line 954 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp8_ = g_file_get_parent (_tmp7_); -#line 954 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (dir); -#line 954 "/home/jens/Source/shotwell/src/Resources.vala" - dir = _tmp8_; -#line 954 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (_tmp7_); -#line 3244 "Resources.c" - } -#line 957 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp9_ = dir; -#line 957 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp10_ = g_file_get_child (_tmp9_, "help"); -#line 957 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp11_ = _tmp10_; -#line 957 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp12_ = g_file_get_child (_tmp11_, "C"); -#line 957 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp13_ = _tmp12_; -#line 957 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (_tmp11_); -#line 957 "/home/jens/Source/shotwell/src/Resources.vala" - help_dir = _tmp13_; -#line 958 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp14_ = help_dir; -#line 958 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp15_ = g_file_get_child (_tmp14_, "index.page"); -#line 958 "/home/jens/Source/shotwell/src/Resources.vala" - help_index = _tmp15_; -#line 960 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp16_ = help_index; -#line 960 "/home/jens/Source/shotwell/src/Resources.vala" - if (g_file_query_exists (_tmp16_, NULL)) { -#line 3270 "Resources.c" - gchar* help_path = NULL; - GFile* _tmp17_; - gchar* _tmp18_; - const gchar* _tmp19_; -#line 963 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp17_ = help_dir; -#line 963 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp18_ = g_file_get_path (_tmp17_); -#line 963 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (help_path); -#line 963 "/home/jens/Source/shotwell/src/Resources.vala" - help_path = _tmp18_; -#line 965 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp19_ = help_path; -#line 965 "/home/jens/Source/shotwell/src/Resources.vala" - if (!g_str_has_suffix (_tmp19_, "/")) { -#line 3287 "Resources.c" - const gchar* _tmp20_; - gchar* _tmp21_; -#line 966 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp20_ = help_path; -#line 966 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp21_ = g_strconcat (_tmp20_, "/", NULL); -#line 966 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (help_path); -#line 966 "/home/jens/Source/shotwell/src/Resources.vala" - help_path = _tmp21_; -#line 3298 "Resources.c" - } -#line 969 "/home/jens/Source/shotwell/src/Resources.vala" - result = help_path; -#line 969 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (help_index); -#line 969 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (help_dir); -#line 969 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (dir); -#line 969 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 3310 "Resources.c" - } -#line 975 "/home/jens/Source/shotwell/src/Resources.vala" - result = NULL; -#line 975 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (help_index); -#line 975 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (help_dir); -#line 975 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (dir); -#line 975 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 3322 "Resources.c" -} - - -void -resources_launch_help (GdkScreen* screen, - const gchar* anchor, - GError** error) -{ - gchar* help_path = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - GError * _inner_error_ = NULL; -#line 978 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_if_fail (GDK_IS_SCREEN (screen)); -#line 979 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = resources_get_help_path (); -#line 979 "/home/jens/Source/shotwell/src/Resources.vala" - help_path = _tmp0_; -#line 981 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = help_path; -#line 981 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp1_ != NULL) { -#line 3345 "Resources.c" - gchar** argv = NULL; - gchar** _tmp4_; - gint argv_length1; - gint _argv_size_; - gchar** _tmp5_; - gint _tmp5__length1; - gchar* _tmp6_; - gchar* _tmp7_; - gchar** _tmp8_; - gint _tmp8__length1; - const gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gchar** _tmp12_; - gint _tmp12__length1; - gchar* _tmp13_; - GPid pid = 0; - gboolean _tmp14_ = FALSE; - GFile* _tmp15_; - GFile* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - gchar** _tmp19_; - gint _tmp19__length1; - GPid _tmp20_ = 0; - gboolean _tmp21_; - gboolean _tmp22_; - gchar** _tmp23_; - gint _tmp23__length1; - const gchar* _tmp24_; -#line 985 "/home/jens/Source/shotwell/src/Resources.vala" - if (anchor != NULL) { -#line 3378 "Resources.c" - const gchar* _tmp2_; - gchar* _tmp3_; -#line 986 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = help_path; -#line 986 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = g_strconcat (_tmp2_, anchor, NULL); -#line 986 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (help_path); -#line 986 "/home/jens/Source/shotwell/src/Resources.vala" - help_path = _tmp3_; -#line 3389 "Resources.c" - } -#line 989 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp4_ = g_new0 (gchar*, 3 + 1); -#line 989 "/home/jens/Source/shotwell/src/Resources.vala" - argv = _tmp4_; -#line 989 "/home/jens/Source/shotwell/src/Resources.vala" - argv_length1 = 3; -#line 989 "/home/jens/Source/shotwell/src/Resources.vala" - _argv_size_ = argv_length1; -#line 990 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp5_ = argv; -#line 990 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp5__length1 = argv_length1; -#line 990 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp6_ = g_strdup ("yelp"); -#line 990 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp5_[0]); -#line 990 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp5_[0] = _tmp6_; -#line 990 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp7_ = _tmp5_[0]; -#line 991 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp8_ = argv; -#line 991 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp8__length1 = argv_length1; -#line 991 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp9_ = help_path; -#line 991 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp10_ = g_strdup (_tmp9_); -#line 991 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp8_[1]); -#line 991 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp8_[1] = _tmp10_; -#line 991 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp11_ = _tmp8_[1]; -#line 992 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp12_ = argv; -#line 992 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp12__length1 = argv_length1; -#line 992 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp12_[2]); -#line 992 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp12_[2] = NULL; -#line 992 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp13_ = _tmp12_[2]; -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp15_ = app_dirs_get_exec_dir (); -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp16_ = _tmp15_; -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp17_ = g_file_get_path (_tmp16_); -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp18_ = _tmp17_; -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp19_ = argv; -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp19__length1 = argv_length1; -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp21_ = g_spawn_async (_tmp18_, _tmp19_, NULL, G_SPAWN_SEARCH_PATH | G_SPAWN_STDERR_TO_DEV_NULL, NULL, NULL, &_tmp20_, &_inner_error_); -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - pid = _tmp20_; -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp22_ = _tmp21_; -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp18_); -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (_tmp16_); -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp14_ = _tmp22_; -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - g_propagate_error (error, _inner_error_); -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL); -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (help_path); -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - return; -#line 3469 "Resources.c" - } -#line 995 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp14_) { -#line 997 "/home/jens/Source/shotwell/src/Resources.vala" - argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL); -#line 997 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (help_path); -#line 997 "/home/jens/Source/shotwell/src/Resources.vala" - return; -#line 3479 "Resources.c" - } -#line 1000 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp23_ = argv; -#line 1000 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp23__length1 = argv_length1; -#line 1000 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp24_ = _tmp23_[0]; -#line 1000 "/home/jens/Source/shotwell/src/Resources.vala" - g_warning ("Resources.vala:1000: Unable to launch %s", _tmp24_); -#line 981 "/home/jens/Source/shotwell/src/Resources.vala" - argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL); -#line 3491 "Resources.c" - } -#line 1004 "/home/jens/Source/shotwell/src/Resources.vala" - if (anchor != NULL) { -#line 3495 "Resources.c" - gchar* _tmp25_; - gchar* _tmp26_; -#line 1005 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp25_ = g_strconcat ("help:shotwell", anchor, NULL); -#line 1005 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp26_ = _tmp25_; -#line 1005 "/home/jens/Source/shotwell/src/Resources.vala" - sys_show_uri (screen, _tmp26_, &_inner_error_); -#line 1005 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (_tmp26_); -#line 1005 "/home/jens/Source/shotwell/src/Resources.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1005 "/home/jens/Source/shotwell/src/Resources.vala" - g_propagate_error (error, _inner_error_); -#line 1005 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (help_path); -#line 1005 "/home/jens/Source/shotwell/src/Resources.vala" - return; -#line 3514 "Resources.c" - } - } else { -#line 1007 "/home/jens/Source/shotwell/src/Resources.vala" - sys_show_uri (screen, "help:shotwell", &_inner_error_); -#line 1007 "/home/jens/Source/shotwell/src/Resources.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1007 "/home/jens/Source/shotwell/src/Resources.vala" - g_propagate_error (error, _inner_error_); -#line 1007 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (help_path); -#line 1007 "/home/jens/Source/shotwell/src/Resources.vala" - return; -#line 3527 "Resources.c" - } - } -#line 978 "/home/jens/Source/shotwell/src/Resources.vala" - _g_free0 (help_path); -#line 3532 "Resources.c" -} - - -gchar* -resources_to_css_color (GdkRGBA* color) -{ - gchar* result = NULL; - gint r = 0; - GdkRGBA _tmp0_; - gdouble _tmp1_; - gint g = 0; - GdkRGBA _tmp2_; - gdouble _tmp3_; - gint b = 0; - GdkRGBA _tmp4_; - gdouble _tmp5_; - gchar* _tmp6_; -#line 1011 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_val_if_fail (color != NULL, NULL); -#line 1012 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = *color; -#line 1012 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = _tmp0_.red; -#line 1012 "/home/jens/Source/shotwell/src/Resources.vala" - r = (gint) (_tmp1_ * 255); -#line 1013 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = *color; -#line 1013 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = _tmp2_.green; -#line 1013 "/home/jens/Source/shotwell/src/Resources.vala" - g = (gint) (_tmp3_ * 255); -#line 1014 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp4_ = *color; -#line 1014 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp5_ = _tmp4_.blue; -#line 1014 "/home/jens/Source/shotwell/src/Resources.vala" - b = (gint) (_tmp5_ * 255); -#line 1016 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp6_ = g_strdup_printf ("rgb(%d, %d, %d)", r, g, b); -#line 1016 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp6_; -#line 1016 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 3576 "Resources.c" -} - - -void -resources_style_widget (GtkWidget* widget, - const gchar* stylesheet) -{ - GeeMap* _tmp0_; - GeeMap* _tmp2_; - GtkCssProvider* styler = NULL; - GtkCssProvider* _tmp7_; - GtkStyleContext* _tmp11_; - GtkCssProvider* _tmp12_; - GeeMap* _tmp13_; - GtkCssProvider* _tmp14_; - GError * _inner_error_ = NULL; -#line 1023 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_if_fail (GTK_IS_WIDGET (widget)); -#line 1023 "/home/jens/Source/shotwell/src/Resources.vala" - g_return_if_fail (stylesheet != NULL); -#line 1024 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = resources_providers; -#line 1024 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp0_ == NULL) { -#line 3601 "Resources.c" - GeeHashMap* _tmp1_; -#line 1025 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = gee_hash_map_new (gtk_widget_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, gtk_css_provider_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1025 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (resources_providers); -#line 1025 "/home/jens/Source/shotwell/src/Resources.vala" - resources_providers = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_MAP, GeeMap); -#line 3609 "Resources.c" - } -#line 1027 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = resources_providers; -#line 1027 "/home/jens/Source/shotwell/src/Resources.vala" - if (gee_map_has_key (_tmp2_, widget)) { -#line 3615 "Resources.c" - GtkStyleContext* _tmp3_; - GeeMap* _tmp4_; - gpointer _tmp5_; - GtkCssProvider* _tmp6_; -#line 1028 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = gtk_widget_get_style_context (widget); -#line 1028 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp4_ = resources_providers; -#line 1028 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp5_ = gee_map_get (_tmp4_, widget); -#line 1028 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp6_ = (GtkCssProvider*) _tmp5_; -#line 1028 "/home/jens/Source/shotwell/src/Resources.vala" - gtk_style_context_remove_provider (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_style_provider_get_type (), GtkStyleProvider)); -#line 1028 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (_tmp6_); -#line 3632 "Resources.c" - } -#line 1030 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp7_ = gtk_css_provider_new (); -#line 1030 "/home/jens/Source/shotwell/src/Resources.vala" - styler = _tmp7_; -#line 3638 "Resources.c" - { - GtkCssProvider* _tmp8_; -#line 1033 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp8_ = styler; -#line 1033 "/home/jens/Source/shotwell/src/Resources.vala" - gtk_css_provider_load_from_data (_tmp8_, stylesheet, (gssize) RESOURCES_ALL_DATA, &_inner_error_); -#line 1033 "/home/jens/Source/shotwell/src/Resources.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3647 "Resources.c" - goto __catch440_g_error; - } - } - goto __finally440; - __catch440_g_error: - { - GError* e = NULL; - GError* _tmp9_; - const gchar* _tmp10_; -#line 1032 "/home/jens/Source/shotwell/src/Resources.vala" - e = _inner_error_; -#line 1032 "/home/jens/Source/shotwell/src/Resources.vala" - _inner_error_ = NULL; -#line 1035 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp9_ = e; -#line 1035 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp10_ = _tmp9_->message; -#line 1035 "/home/jens/Source/shotwell/src/Resources.vala" - g_warning ("Resources.vala:1035: couldn't parse widget stylesheet '%s': %s", stylesheet, _tmp10_); -#line 1039 "/home/jens/Source/shotwell/src/Resources.vala" - _g_error_free0 (e); -#line 1039 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (styler); -#line 1039 "/home/jens/Source/shotwell/src/Resources.vala" - return; -#line 3673 "Resources.c" - } - __finally440: -#line 1032 "/home/jens/Source/shotwell/src/Resources.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1032 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (styler); -#line 1032 "/home/jens/Source/shotwell/src/Resources.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1032 "/home/jens/Source/shotwell/src/Resources.vala" - g_clear_error (&_inner_error_); -#line 1032 "/home/jens/Source/shotwell/src/Resources.vala" - return; -#line 3686 "Resources.c" - } -#line 1042 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp11_ = gtk_widget_get_style_context (widget); -#line 1042 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp12_ = styler; -#line 1042 "/home/jens/Source/shotwell/src/Resources.vala" - gtk_style_context_add_provider (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_style_provider_get_type (), GtkStyleProvider), (guint) GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); -#line 1045 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp13_ = resources_providers; -#line 1045 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp14_ = styler; -#line 1045 "/home/jens/Source/shotwell/src/Resources.vala" - gee_map_set (_tmp13_, widget, _tmp14_); -#line 1023 "/home/jens/Source/shotwell/src/Resources.vala" - _g_object_unref0 (styler); -#line 3702 "Resources.c" -} - - -gint -resources_use_header_bar (void) -{ - gint result = 0; - const gchar* _tmp0_; - gboolean use_header = FALSE; - GtkSettings* _tmp1_; - gint _tmp2_ = 0; - gboolean _tmp3_; -#line 1049 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp0_ = g_getenv ("SHOTWELL_USE_HEADERBARS"); -#line 1049 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp0_ != NULL) { -#line 1050 "/home/jens/Source/shotwell/src/Resources.vala" - result = 0; -#line 1050 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 3723 "Resources.c" - } -#line 1054 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp1_ = gtk_settings_get_default (); -#line 1054 "/home/jens/Source/shotwell/src/Resources.vala" - g_object_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, G_TYPE_OBJECT, GObject), "gtk-dialogs-use-header", &use_header, NULL); -#line 1056 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp3_ = use_header; -#line 1056 "/home/jens/Source/shotwell/src/Resources.vala" - if (_tmp3_) { -#line 1056 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = 1; -#line 3735 "Resources.c" - } else { -#line 1056 "/home/jens/Source/shotwell/src/Resources.vala" - _tmp2_ = 0; -#line 3739 "Resources.c" - } -#line 1056 "/home/jens/Source/shotwell/src/Resources.vala" - result = _tmp2_; -#line 1056 "/home/jens/Source/shotwell/src/Resources.vala" - return result; -#line 3745 "Resources.c" -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/src/Resources.vala b/src/Resources.vala index ef86424..8fabbe4 100644 --- a/src/Resources.vala +++ b/src/Resources.vala @@ -66,76 +66,45 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA """; - public const string CLOCKWISE = "object-rotate-right"; - public const string COUNTERCLOCKWISE = "object-rotate-left"; - public const string HFLIP = "object-flip-horizontal"; - public const string VFLIP = "object-flip-vertical"; - public const string CROP = "shotwell-crop"; - public const string STRAIGHTEN = "shotwell-straighten"; - public const string REDEYE = "shotwell-redeye"; - public const string ADJUST = "image-adjust"; - public const string PIN_TOOLBAR = "shotwell-pin-toolbar"; - public const string MAKE_PRIMARY = "shotwell-make-primary"; - public const string IMPORT = "import"; - public const string IMPORT_ALL = "import-all"; - public const string ENHANCE = "shotwell-auto-enhance"; - public const string CROP_PIVOT_RETICLE = "shotwell-crop-pivot-reticle"; - public const string PUBLISH = "applications-internet"; - public const string MERGE = "shotwell-merge-events"; - - public const string GO_NEXT = "go-next"; - public const string GO_PREVIOUS = "go-previous"; - - - //public const string ICON_ABOUT_LOGO = "shotwell-street.jpg"; - public const string ICON_ABOUT_LOGO = "about-braunschweig.jpg"; - public const string ICON_GENERIC_PLUGIN = "generic-plugin.png"; + public const string CLOCKWISE = "object-rotate-right-symbolic"; + public const string COUNTERCLOCKWISE = "object-rotate-left-symbolic"; + public const string HFLIP = "object-flip-horizontal-symbolic"; + public const string VFLIP = "object-flip-vertical-symbolic"; + public const string STRAIGHTEN = "straighten-symbolic"; + public const string ADJUST = "image-adjust-color-symbolic"; + public const string IMPORT = "image-x-generic-symbolic"; + public const string IMPORT_ALL = "filter-photos-symbolic"; + public const string ENHANCE = "image-auto-adjust-symbolic"; + public const string PUBLISH = "send-to-symbolic"; + public const string FACES_TOOL = "avatar-default-symbolic"; + + public const string GO_NEXT = "go-next-symbolic"; + public const string GO_PREVIOUS = "go-previous-symbolic"; + + public const string ICON_ABOUT_LOGO = "about-celle.jpg"; + public const string ICON_GENERIC_PLUGIN = "application-x-addon-symbolic"; public const string ICON_SLIDESHOW_EXTENSION_POINT = "slideshow-extension-point"; - public const string ICON_RATING_REJECTED = "rejected.svg"; - public const string ICON_RATING_ONE = "one-star.svg"; - public const string ICON_RATING_TWO = "two-stars.svg"; - public const string ICON_RATING_THREE = "three-stars.svg"; - public const string ICON_RATING_FOUR = "four-stars.svg"; - public const string ICON_RATING_FIVE = "five-stars.svg"; - public const string ICON_FILTER_REJECTED_OR_BETTER = "all-rejected.png"; public const int ICON_FILTER_REJECTED_OR_BETTER_FIXED_SIZE = 32; - public const string ICON_FILTER_UNRATED_OR_BETTER = "shotwell-16.png"; public const int ICON_FILTER_UNRATED_OR_BETTER_FIXED_SIZE = 16; - public const string ICON_FILTER_ONE_OR_BETTER = "one-star-filter-plus.svg"; - public const string ICON_FILTER_TWO_OR_BETTER = "two-star-filter-plus.svg"; - public const string ICON_FILTER_THREE_OR_BETTER = "three-star-filter-plus.svg"; - public const string ICON_FILTER_FOUR_OR_BETTER = "four-star-filter-plus.svg"; - public const string ICON_FILTER_FIVE = "five-star-filter.svg"; - public const string ICON_ZOOM_IN = "zoom-in.png"; - public const string ICON_ZOOM_OUT = "zoom-out.png"; public const int ICON_ZOOM_SCALE = 16; public const string ICON_CAMERAS = "camera-photo"; - public const string ICON_EVENTS = "multiple-events"; - public const string ICON_ONE_EVENT = "one-event"; - public const string ICON_NO_EVENT = "no-event"; - public const string ICON_ONE_TAG = "one-tag"; - public const string ICON_TAGS = "multiple-tags"; - public const string ICON_FOLDER = "folder"; - public const string ICON_FOLDER_DOCUMENTS = "folder-documents"; - public const string ICON_IMPORTING = "go-down"; - public const string ICON_LAST_IMPORT = "document-open-recent"; - public const string ICON_MISSING_FILES = "process-stop"; - public const string ICON_PHOTOS = "shotwell"; - public const string ICON_SINGLE_PHOTO = "image-x-generic"; - public const string ICON_FILTER_PHOTOS = "filter-photos"; - public const string ICON_FILTER_PHOTOS_DISABLED = "filter-photos-disabled"; - public const string ICON_FILTER_VIDEOS = "filter-videos"; - public const string ICON_FILTER_VIDEOS_DISABLED = "filter-videos-disabled"; - public const string ICON_FILTER_RAW = "filter-raw"; - public const string ICON_FILTER_RAW_DISABLED = "filter-raw-disabled"; - public const string ICON_FILTER_FLAGGED = "filter-flagged"; - public const string ICON_FILTER_FLAGGED_DISABLED = "filter-flagged-disabled"; - public const string ICON_TRASH_EMPTY = "user-trash"; - public const string ICON_TRASH_FULL = "user-trash-full"; - public const string ICON_VIDEOS_PAGE = "videos-page"; - public const string ICON_FLAGGED_PAGE = "flag-page"; - public const string ICON_FLAGGED_TRINKET = "flag-trinket.png"; + public const string ICON_EVENTS = "multiple-events-symbolic"; + public const string ICON_ONE_EVENT = "one-event-symbolic"; + public const string ICON_NO_EVENT = "no-event-symbolic"; + public const string ICON_ONE_TAG = "one-tag-symbolic"; + public const string ICON_TAGS = "multiple-tags-symbolic"; + public const string ICON_FOLDER = "folder-symbolic"; + public const string ICON_FOLDER_DOCUMENTS = "folder-documents-symbolic"; + public const string ICON_IMPORTING = "go-down-symbolic"; + public const string ICON_LAST_IMPORT = "document-open-recent-symbolic"; + public const string ICON_MISSING_FILES = "process-stop-symbolic"; + public const string ICON_PHOTOS = "shotwell-symbolic"; + public const string ICON_SINGLE_PHOTO = "image-x-generic-symbolic"; + public const string ICON_TRASH_EMPTY = "user-trash-symbolic"; + public const string ICON_TRASH_FULL = "user-trash-full-symbolic"; + public const string ICON_ONE_FACE = "avatar-default-symbolic"; + public const string ICON_FACES = "avatar-default-symbolic"; public const string ROTATE_CW_MENU = _("Rotate _Right"); public const string ROTATE_CW_LABEL = _("Rotate"); @@ -332,6 +301,15 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc., public const string UNFLAG_MENU = _("Un_flag"); + public const string FACES_MENU = _("Faces"); + public const string FACES_LABEL = _("Faces"); + public const string FACES_TOOLTIP = _("Mark faces of people in the photo"); + public const string MODIFY_FACES_LABEL = _("Modify Faces"); + public const string DELETE_FACE_TITLE = _("Delete Face"); + public const string DELETE_FACE_SIDEBAR_MENU = _("_Delete"); + public const string RENAME_FACE_SIDEBAR_MENU = _("_Rename…"); + public const string FACES_MENU_SECTION = "FacesMenuPlaceholder"; + public string launch_editor_failed(Error err) { return _("Unable to launch editor: %s").printf(err.message); } @@ -423,6 +401,38 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc., public string delete_search_label(string name) { return _("Delete Search “%s”").printf(name); } + +#if ENABLE_FACES + public static string rename_face_exists_message(string name) { + return _("Unable to rename face to “%s” because the face already exists.").printf(name); + } + + public string remove_face_from_photos_menu(string name, int count) { + return ngettext ("Remove Face “%s” From _Photo", + "Remove Face “%s” From _Photos", count).printf(name); + } + + public string remove_face_from_photos_label(string name, int count) { + return ngettext ("Remove Face “%s” From Photo", + "Remove Face “%s” From Photos", count).printf(name); + } + + public string rename_face_menu(string name) { + return _("Re_name Face “%s”…").printf(name); + } + + public string rename_face_label(string old_name, string new_name) { + return _("Rename Face “%s” to “%s”").printf(old_name, new_name); + } + + public string delete_face_menu(string name) { + return _("_Delete Face “%s”").printf(name); + } + + public string delete_face_label(string name) { + return _("Delete Face “%s”").printf(name); + } +#endif private unowned string rating_label(Rating rating) { switch (rating) { @@ -521,6 +531,8 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc., private string get_stars(Rating rating) { switch (rating) { + case Rating.REJECTED: + return "\xE2\x9D\x8C"; case Rating.ONE: return "\xE2\x98\x85"; case Rating.TWO: @@ -536,26 +548,116 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc., } } - private Gdk.Pixbuf? get_rating_trinket(Rating rating, int scale) { - switch (rating) { - case Rating.REJECTED: - return Resources.get_icon(Resources.ICON_RATING_REJECTED, scale); - // case Rating.UNRATED needs no icon - case Rating.ONE: - return Resources.get_icon(Resources.ICON_RATING_ONE, scale); - case Rating.TWO: - return Resources.get_icon(Resources.ICON_RATING_TWO, scale*2); - case Rating.THREE: - return Resources.get_icon(Resources.ICON_RATING_THREE, scale*3); - case Rating.FOUR: - return Resources.get_icon(Resources.ICON_RATING_FOUR, scale*4); - case Rating.FIVE: - return Resources.get_icon(Resources.ICON_RATING_FIVE, scale*5); - default: - return null; + private GLib.HashTable trinket_cache = null; + private Gdk.Pixbuf? get_cached_trinket(int key) { + if (trinket_cache == null) { + trinket_cache = new GLib.HashTable(int_hash, int_equal); } + + if (trinket_cache[key] != null) { + return trinket_cache[key]; + } + + return null; } - + + public Gdk.Pixbuf? get_video_trinket(int scale) { + int cache_key = scale << 18; + var cached_pixbuf = get_cached_trinket(cache_key); + + if (cached_pixbuf != null) + return cached_pixbuf; + + try { + var theme = Gtk.IconTheme.get_default(); + var info = theme.lookup_icon ("filter-videos-symbolic", (int)(scale * 2), Gtk.IconLookupFlags.GENERIC_FALLBACK); + var icon = info.load_symbolic({0.8, 0.8, 0.8, 1.0}, null, null, null); + var surface = new Cairo.ImageSurface(Cairo.Format.ARGB32, icon.width, icon.height); + var ctx = new Cairo.Context(surface); + ctx.set_source_rgba(0.0, 0.0, 0.0, 0.35); + ctx.rectangle(0, 0, icon.width, icon.height); + ctx.fill(); + Gdk.cairo_set_source_pixbuf(ctx, icon, 0, 0); + ctx.paint(); + + trinket_cache[cache_key] = Gdk.pixbuf_get_from_surface(surface, 0, 0, icon.width, icon.height); + return trinket_cache[cache_key]; + } catch (Error err) { + critical ("%s", err.message); + + return null; + } + } + + public Gdk.Pixbuf? get_flagged_trinket(int scale) { + int cache_key = scale << 16; + var cached_pixbuf = get_cached_trinket(cache_key); + + if (cached_pixbuf != null) + return cached_pixbuf; + + try { + var theme = Gtk.IconTheme.get_default(); + var info = theme.lookup_icon ("filter-flagged-symbolic", (int)(scale * 1.33), Gtk.IconLookupFlags.GENERIC_FALLBACK); + var icon = info.load_symbolic({0.8, 0.8, 0.8, 1.0}, null, null, null); + var surface = new Cairo.ImageSurface(Cairo.Format.ARGB32, icon.width, icon.height); + var ctx = new Cairo.Context(surface); + ctx.set_source_rgba(0.0, 0.0, 0.0, 0.35); + ctx.rectangle(0, 0, icon.width, icon.height); + ctx.fill(); + Gdk.cairo_set_source_pixbuf(ctx, icon, 0, 0); + ctx.paint(); + + trinket_cache[cache_key] = Gdk.pixbuf_get_from_surface(surface, 0, 0, icon.width, icon.height); + return trinket_cache[cache_key]; + } catch (Error err) { + critical ("%s", err.message); + + return null; + } + } + + private Gdk.Pixbuf? get_rating_trinket(Rating rating, int scale) { + if (rating == Rating.UNRATED) + return null; + + int rating_key = (rating << 8) + scale; + + var cached_pixbuf = get_cached_trinket(rating_key); + if (cached_pixbuf != null) + return cached_pixbuf; + + var layout = AppWindow.get_instance().create_pango_layout(get_stars(rating)); + + // Adjust style according to scale (depending on whether it is rendered on a Thumbnail or on a full foto) + var att = new Pango.AttrList(); + var a = Pango.attr_scale_new((double)scale/12.0); + att.insert(a.copy()); + layout.set_attributes(att); + + // Render the layout with a slight dark background so it stands out on all kinds of images + // FIXME: Cache the result + int width, height; + layout.get_pixel_size(out width, out height); + var surface = new Cairo.ImageSurface(Cairo.Format.ARGB32, width, height); + var ctx = new Cairo.Context(surface); + ctx.set_source_rgba(0.0, 0.0, 0.0, 0.35); + ctx.rectangle(0,0,width,height); + ctx.fill(); + if (rating == Rating.REJECTED) + ctx.set_source_rgba(0.8, 0.0, 0.0, 1.0); + else + ctx.set_source_rgba(0.8, 0.8, 0.8, 1.0); + + ctx.move_to(0, 0); + Pango.cairo_show_layout(ctx, layout); + + cached_pixbuf = Gdk.pixbuf_get_from_surface(surface, 0, 0, width, height); + trinket_cache[rating_key] = cached_pixbuf; + + return cached_pixbuf; + } + private void generate_rating_strings() { string menu_base = "%s"; string label_base = _("Rate %s"); @@ -906,7 +1008,7 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc., // fetch from cache and if not present, from disk Gdk.Pixbuf? pixbuf = icon_cache.get(name); if (pixbuf == null) { - pixbuf = load_icon(name, 0); + pixbuf = load_icon(name, scale); if (pixbuf == null) return null; @@ -928,6 +1030,14 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc., public Gdk.Pixbuf? load_icon(string name, int scale = DEFAULT_ICON_SCALE) { Gdk.Pixbuf pixbuf = null; + try { + var theme = Gtk.IconTheme.get_default(); + var info = theme.lookup_icon(name, scale, Gtk.IconLookupFlags.GENERIC_FALLBACK); + pixbuf = info.load_symbolic_for_context(AppWindow.get_instance().get_style_context(), null); + } catch (Error err) { + debug("Failed to find icon %s in theme, falling back to resources", name); + } + try { var path = "/org/gnome/Shotwell/icons/%s".printf(name); pixbuf = new Gdk.Pixbuf.from_resource(path); @@ -953,7 +1063,7 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc., if (dir.get_path().has_suffix("src")) { dir = dir.get_parent().get_parent(); } - + File help_dir = dir.get_child("help").get_child("C"); File help_index = help_dir.get_child("index.page"); @@ -975,7 +1085,7 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc., return null; } - public static void launch_help(Gdk.Screen screen, string? anchor=null) throws Error { + public static void launch_help(Gtk.Window window, string? anchor=null) throws Error { string? help_path = get_help_path(); if(help_path != null) { @@ -1001,50 +1111,16 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc., } // launch from system-installed help + var uri = "help:shotwell"; if (anchor != null) { - sys_show_uri(screen, "help:shotwell" + anchor); - } else { - sys_show_uri(screen, "help:shotwell"); + uri += anchor; } - } - - public string to_css_color(Gdk.RGBA color) { - int r = (int) (color.red * 255); - int g = (int) (color.green * 255); - int b = (int) (color.blue * 255); - - return "rgb(%d, %d, %d)".printf(r, g, b); + + Gtk.show_uri_on_window(window, uri, Gdk.CURRENT_TIME); } public const int ALL_DATA = -1; - private static Gee.Map providers = null; - - public static void style_widget(Gtk.Widget widget, string stylesheet) { - if (providers == null) - providers = new Gee.HashMap(); - - if (providers.has_key(widget)) - widget.get_style_context().remove_provider(providers.get(widget)); - - Gtk.CssProvider styler = new Gtk.CssProvider(); - - try { - styler.load_from_data(stylesheet, ALL_DATA); - } catch (Error e) { - warning("couldn't parse widget stylesheet '%s': %s", stylesheet, - e.message); - // short-circuit return -- if the stylesheet couldn't be interpreted - // then we can't do anything more - return; - } - - widget.get_style_context().add_provider(styler, - Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION); - - providers.set(widget, styler); - } - public static int use_header_bar() { if (Environment.get_variable("SHOTWELL_USE_HEADERBARS") != null) { return 0; @@ -1056,16 +1132,6 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc., return use_header ? 1 : 0; } - public const string CUSTOM_CSS = - """LibraryWindow .pane-separator { - background-color: @borders; - } - SearchFilterToolbar { - border-width: 0 0 1px 0; - border-style: solid; - border-color: @borders; - }"""; - public const string ONIMAGE_FONT_COLOR = "#000000"; public const string ONIMAGE_FONT_BACKGROUND = "rgba(255,255,255,0.5)"; } diff --git a/src/Screensaver.c b/src/Screensaver.c deleted file mode 100644 index f397c01..0000000 --- a/src/Screensaver.c +++ /dev/null @@ -1,487 +0,0 @@ -/* Screensaver.c generated by valac 0.40.4, the Vala compiler - * generated from Screensaver.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SCREENSAVER (screensaver_get_type ()) -#define SCREENSAVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCREENSAVER, Screensaver)) -#define SCREENSAVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCREENSAVER, ScreensaverClass)) -#define IS_SCREENSAVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCREENSAVER)) -#define IS_SCREENSAVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCREENSAVER)) -#define SCREENSAVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCREENSAVER, ScreensaverClass)) - -typedef struct _Screensaver Screensaver; -typedef struct _ScreensaverClass ScreensaverClass; -typedef struct _ScreensaverPrivate ScreensaverPrivate; - -#define TYPE_APPLICATION (application_get_type ()) -#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application)) -#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass)) -#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION)) -#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION)) -#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass)) - -typedef struct _Application Application; -typedef struct _ApplicationClass ApplicationClass; -#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL))) -typedef struct _ParamSpecScreensaver ParamSpecScreensaver; - -struct _Screensaver { - GTypeInstance parent_instance; - volatile int ref_count; - ScreensaverPrivate * priv; -}; - -struct _ScreensaverClass { - GTypeClass parent_class; - void (*finalize) (Screensaver *self); -}; - -struct _ScreensaverPrivate { - guint32 cookie; -}; - -struct _ParamSpecScreensaver { - GParamSpec parent_instance; -}; - - -static gpointer screensaver_parent_class = NULL; - -gpointer screensaver_ref (gpointer instance); -void screensaver_unref (gpointer instance); -GParamSpec* param_spec_screensaver (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_screensaver (GValue* value, - gpointer v_object); -void value_take_screensaver (GValue* value, - gpointer v_object); -gpointer value_get_screensaver (const GValue* value); -GType screensaver_get_type (void) G_GNUC_CONST; -#define SCREENSAVER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SCREENSAVER, ScreensaverPrivate)) -Screensaver* screensaver_new (void); -Screensaver* screensaver_construct (GType object_type); -void screensaver_inhibit (Screensaver* self, - const gchar* reason); -gpointer application_ref (gpointer instance); -void application_unref (gpointer instance); -GParamSpec* param_spec_application (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_application (GValue* value, - gpointer v_object); -void value_take_application (GValue* value, - gpointer v_object); -gpointer value_get_application (const GValue* value); -GType application_get_type (void) G_GNUC_CONST; -Application* application_get_instance (void); -guint application_inhibit (Application* self, - GtkApplicationInhibitFlags what, - const gchar* reason); -void screensaver_uninhibit (Screensaver* self); -void application_uninhibit (Application* self, - guint cookie); -static void screensaver_finalize (Screensaver * obj); - - -Screensaver* -screensaver_construct (GType object_type) -{ - Screensaver* self = NULL; -#line 10 "/home/jens/Source/shotwell/src/Screensaver.vala" - self = (Screensaver*) g_type_create_instance (object_type); -#line 10 "/home/jens/Source/shotwell/src/Screensaver.vala" - return self; -#line 115 "Screensaver.c" -} - - -Screensaver* -screensaver_new (void) -{ -#line 10 "/home/jens/Source/shotwell/src/Screensaver.vala" - return screensaver_construct (TYPE_SCREENSAVER); -#line 124 "Screensaver.c" -} - - -void -screensaver_inhibit (Screensaver* self, - const gchar* reason) -{ - guint32 _tmp0_; - Application* _tmp1_; - Application* _tmp2_; -#line 13 "/home/jens/Source/shotwell/src/Screensaver.vala" - g_return_if_fail (IS_SCREENSAVER (self)); -#line 13 "/home/jens/Source/shotwell/src/Screensaver.vala" - g_return_if_fail (reason != NULL); -#line 14 "/home/jens/Source/shotwell/src/Screensaver.vala" - _tmp0_ = self->priv->cookie; -#line 14 "/home/jens/Source/shotwell/src/Screensaver.vala" - if (_tmp0_ != ((guint32) 0)) { -#line 15 "/home/jens/Source/shotwell/src/Screensaver.vala" - return; -#line 145 "Screensaver.c" - } -#line 17 "/home/jens/Source/shotwell/src/Screensaver.vala" - _tmp1_ = application_get_instance (); -#line 17 "/home/jens/Source/shotwell/src/Screensaver.vala" - _tmp2_ = _tmp1_; -#line 17 "/home/jens/Source/shotwell/src/Screensaver.vala" - self->priv->cookie = (guint32) application_inhibit (_tmp2_, GTK_APPLICATION_INHIBIT_IDLE | GTK_APPLICATION_INHIBIT_SUSPEND, _ ("Slideshow")); -#line 17 "/home/jens/Source/shotwell/src/Screensaver.vala" - _application_unref0 (_tmp2_); -#line 155 "Screensaver.c" -} - - -void -screensaver_uninhibit (Screensaver* self) -{ - guint32 _tmp0_; - Application* _tmp1_; - Application* _tmp2_; - guint32 _tmp3_; -#line 21 "/home/jens/Source/shotwell/src/Screensaver.vala" - g_return_if_fail (IS_SCREENSAVER (self)); -#line 22 "/home/jens/Source/shotwell/src/Screensaver.vala" - _tmp0_ = self->priv->cookie; -#line 22 "/home/jens/Source/shotwell/src/Screensaver.vala" - if (_tmp0_ == ((guint32) 0)) { -#line 23 "/home/jens/Source/shotwell/src/Screensaver.vala" - return; -#line 174 "Screensaver.c" - } -#line 25 "/home/jens/Source/shotwell/src/Screensaver.vala" - _tmp1_ = application_get_instance (); -#line 25 "/home/jens/Source/shotwell/src/Screensaver.vala" - _tmp2_ = _tmp1_; -#line 25 "/home/jens/Source/shotwell/src/Screensaver.vala" - _tmp3_ = self->priv->cookie; -#line 25 "/home/jens/Source/shotwell/src/Screensaver.vala" - application_uninhibit (_tmp2_, (guint) _tmp3_); -#line 25 "/home/jens/Source/shotwell/src/Screensaver.vala" - _application_unref0 (_tmp2_); -#line 26 "/home/jens/Source/shotwell/src/Screensaver.vala" - self->priv->cookie = (guint32) 0; -#line 188 "Screensaver.c" -} - - -static void -value_screensaver_init (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - value->data[0].v_pointer = NULL; -#line 197 "Screensaver.c" -} - - -static void -value_screensaver_free_value (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - if (value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - screensaver_unref (value->data[0].v_pointer); -#line 208 "Screensaver.c" - } -} - - -static void -value_screensaver_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - if (src_value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - dest_value->data[0].v_pointer = screensaver_ref (src_value->data[0].v_pointer); -#line 221 "Screensaver.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - dest_value->data[0].v_pointer = NULL; -#line 225 "Screensaver.c" - } -} - - -static gpointer -value_screensaver_peek_pointer (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - return value->data[0].v_pointer; -#line 235 "Screensaver.c" -} - - -static gchar* -value_screensaver_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - if (collect_values[0].v_pointer) { -#line 247 "Screensaver.c" - Screensaver * object; - object = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - if (object->parent_instance.g_class == NULL) { -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 254 "Screensaver.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 258 "Screensaver.c" - } -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - value->data[0].v_pointer = screensaver_ref (object); -#line 262 "Screensaver.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - value->data[0].v_pointer = NULL; -#line 266 "Screensaver.c" - } -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - return NULL; -#line 270 "Screensaver.c" -} - - -static gchar* -value_screensaver_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - Screensaver ** object_p; - object_p = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - if (!object_p) { -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 286 "Screensaver.c" - } -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - if (!value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - *object_p = NULL; -#line 292 "Screensaver.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - *object_p = value->data[0].v_pointer; -#line 296 "Screensaver.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - *object_p = screensaver_ref (value->data[0].v_pointer); -#line 300 "Screensaver.c" - } -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - return NULL; -#line 304 "Screensaver.c" -} - - -GParamSpec* -param_spec_screensaver (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecScreensaver* spec; -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_SCREENSAVER), NULL); -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - return G_PARAM_SPEC (spec); -#line 324 "Screensaver.c" -} - - -gpointer -value_get_screensaver (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCREENSAVER), NULL); -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - return value->data[0].v_pointer; -#line 335 "Screensaver.c" -} - - -void -value_set_screensaver (GValue* value, - gpointer v_object) -{ - Screensaver * old; -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCREENSAVER)); -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SCREENSAVER)); -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - value->data[0].v_pointer = v_object; -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - screensaver_ref (value->data[0].v_pointer); -#line 358 "Screensaver.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - value->data[0].v_pointer = NULL; -#line 362 "Screensaver.c" - } -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - screensaver_unref (old); -#line 368 "Screensaver.c" - } -} - - -void -value_take_screensaver (GValue* value, - gpointer v_object) -{ - Screensaver * old; -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCREENSAVER)); -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SCREENSAVER)); -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - value->data[0].v_pointer = v_object; -#line 390 "Screensaver.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - value->data[0].v_pointer = NULL; -#line 394 "Screensaver.c" - } -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - screensaver_unref (old); -#line 400 "Screensaver.c" - } -} - - -static void -screensaver_class_init (ScreensaverClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - screensaver_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - ((ScreensaverClass *) klass)->finalize = screensaver_finalize; -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - g_type_class_add_private (klass, sizeof (ScreensaverPrivate)); -#line 414 "Screensaver.c" -} - - -static void -screensaver_instance_init (Screensaver * self) -{ -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - self->priv = SCREENSAVER_GET_PRIVATE (self); -#line 8 "/home/jens/Source/shotwell/src/Screensaver.vala" - self->priv->cookie = (guint32) 0; -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - self->ref_count = 1; -#line 427 "Screensaver.c" -} - - -static void -screensaver_finalize (Screensaver * obj) -{ - Screensaver * self; -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SCREENSAVER, Screensaver); -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - g_signal_handlers_destroy (self); -#line 439 "Screensaver.c" -} - - -GType -screensaver_get_type (void) -{ - static volatile gsize screensaver_type_id__volatile = 0; - if (g_once_init_enter (&screensaver_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_screensaver_init, value_screensaver_free_value, value_screensaver_copy_value, value_screensaver_peek_pointer, "p", value_screensaver_collect_value, "p", value_screensaver_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (ScreensaverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) screensaver_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Screensaver), 0, (GInstanceInitFunc) screensaver_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType screensaver_type_id; - screensaver_type_id = g_type_register_fundamental (g_type_fundamental_next (), "Screensaver", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&screensaver_type_id__volatile, screensaver_type_id); - } - return screensaver_type_id__volatile; -} - - -gpointer -screensaver_ref (gpointer instance) -{ - Screensaver * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - g_atomic_int_inc (&self->ref_count); -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - return instance; -#line 468 "Screensaver.c" -} - - -void -screensaver_unref (gpointer instance) -{ - Screensaver * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - SCREENSAVER_GET_CLASS (self)->finalize (self); -#line 7 "/home/jens/Source/shotwell/src/Screensaver.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 483 "Screensaver.c" - } -} - - - diff --git a/src/SearchFilter.c b/src/SearchFilter.c deleted file mode 100644 index a3a1b0f..0000000 --- a/src/SearchFilter.c +++ /dev/null @@ -1,10171 +0,0 @@ -/* SearchFilter.c generated by valac 0.40.4, the Vala compiler - * generated from SearchFilter.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/* Bitfield values used to specify which search bar features we want.*/ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SEARCH_FILTER_CRITERIA (search_filter_criteria_get_type ()) - -#define TYPE_RATING_FILTER (rating_filter_get_type ()) - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; -typedef struct _ViewFilterPrivate ViewFilterPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ()) -#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)) -#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) -#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER)) -#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER)) -#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) - -typedef struct _SearchViewFilter SearchViewFilter; -typedef struct _SearchViewFilterClass SearchViewFilterClass; -typedef struct _SearchViewFilterPrivate SearchViewFilterPrivate; - -#define TYPE_RATING (rating_get_type ()) - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_SAVED_SEARCH (saved_search_get_type ()) -#define SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH, SavedSearch)) -#define SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH, SavedSearchClass)) -#define IS_SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH)) -#define IS_SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH)) -#define SAVED_SEARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH, SavedSearchClass)) - -typedef struct _SavedSearch SavedSearch; -typedef struct _SavedSearchClass SavedSearchClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_DEFAULT_SEARCH_VIEW_FILTER (default_search_view_filter_get_type ()) -#define DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilter)) -#define DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass)) -#define IS_DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER)) -#define IS_DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER)) -#define DEFAULT_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass)) - -typedef struct _DefaultSearchViewFilter DefaultSearchViewFilter; -typedef struct _DefaultSearchViewFilterClass DefaultSearchViewFilterClass; -typedef struct _DefaultSearchViewFilterPrivate DefaultSearchViewFilterPrivate; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; - -#define TYPE_MEDIA_SOURCE_ITEM (media_source_item_get_type ()) -#define MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem)) -#define MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) -#define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM)) -#define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM)) -#define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) - -typedef struct _MediaSourceItem MediaSourceItem; -typedef struct _MediaSourceItemClass MediaSourceItemClass; - -#define TYPE_THUMBNAIL (thumbnail_get_type ()) -#define THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL, Thumbnail)) -#define THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL, ThumbnailClass)) -#define IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL)) -#define IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL)) -#define THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL, ThumbnailClass)) - -typedef struct _Thumbnail Thumbnail; -typedef struct _ThumbnailClass ThumbnailClass; - -#define TYPE_FLAGGABLE (flaggable_get_type ()) -#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable)) -#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE)) -#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface)) - -typedef struct _Flaggable Flaggable; -typedef struct _FlaggableIface FlaggableIface; - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_INDEXABLE (indexable_get_type ()) -#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable)) -#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE)) -#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface)) - -typedef struct _Indexable Indexable; -typedef struct _IndexableIface IndexableIface; - -#define TYPE_EVENT_SOURCE (event_source_get_type ()) -#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource)) -#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass)) -#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE)) -#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE)) -#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass)) - -typedef struct _EventSource EventSource; -typedef struct _EventSourceClass EventSourceClass; - -#define TYPE_EVENT (event_get_type ()) -#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event)) -#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass)) -#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT)) -#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT)) -#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass)) - -typedef struct _Event Event; -typedef struct _EventClass EventClass; - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ()) -#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection)) -#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) -#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION)) -#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION)) -#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) - -typedef struct _TagSourceCollection TagSourceCollection; -typedef struct _TagSourceCollectionClass TagSourceCollectionClass; - -#define TYPE_DISABLED_VIEW_FILTER (disabled_view_filter_get_type ()) -#define DISABLED_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DISABLED_VIEW_FILTER, DisabledViewFilter)) -#define DISABLED_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DISABLED_VIEW_FILTER, DisabledViewFilterClass)) -#define IS_DISABLED_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DISABLED_VIEW_FILTER)) -#define IS_DISABLED_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DISABLED_VIEW_FILTER)) -#define DISABLED_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DISABLED_VIEW_FILTER, DisabledViewFilterClass)) - -typedef struct _DisabledViewFilter DisabledViewFilter; -typedef struct _DisabledViewFilterClass DisabledViewFilterClass; -typedef struct _DisabledViewFilterPrivate DisabledViewFilterPrivate; - -#define TYPE_TEXT_ACTION (text_action_get_type ()) -#define TEXT_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ACTION, TextAction)) -#define TEXT_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ACTION, TextActionClass)) -#define IS_TEXT_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ACTION)) -#define IS_TEXT_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ACTION)) -#define TEXT_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ACTION, TextActionClass)) - -typedef struct _TextAction TextAction; -typedef struct _TextActionClass TextActionClass; -typedef struct _TextActionPrivate TextActionPrivate; -typedef struct _ParamSpecTextAction ParamSpecTextAction; -enum { - TEXT_ACTION_TEXT_CHANGED_SIGNAL, - TEXT_ACTION_SENSITIVITY_CHANGED_SIGNAL, - TEXT_ACTION_VISIBILITY_CHANGED_SIGNAL, - TEXT_ACTION_NUM_SIGNALS -}; -static guint text_action_signals[TEXT_ACTION_NUM_SIGNALS] = {0}; - -#define TYPE_SEARCH_FILTER_ACTIONS (search_filter_actions_get_type ()) -#define SEARCH_FILTER_ACTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_FILTER_ACTIONS, SearchFilterActions)) -#define SEARCH_FILTER_ACTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_FILTER_ACTIONS, SearchFilterActionsClass)) -#define IS_SEARCH_FILTER_ACTIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_FILTER_ACTIONS)) -#define IS_SEARCH_FILTER_ACTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_FILTER_ACTIONS)) -#define SEARCH_FILTER_ACTIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_FILTER_ACTIONS, SearchFilterActionsClass)) - -typedef struct _SearchFilterActions SearchFilterActions; -typedef struct _SearchFilterActionsClass SearchFilterActionsClass; -typedef struct _SearchFilterActionsPrivate SearchFilterActionsPrivate; -#define _text_action_unref0(var) ((var == NULL) ? NULL : (var = (text_action_unref (var), NULL))) - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; -#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; - -#define CORE_TYPE_TRACKER (core_tracker_get_type ()) -#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) -#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) -#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) -#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) -#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) - -typedef struct _CoreTracker CoreTracker; -typedef struct _CoreTrackerClass CoreTrackerClass; - -#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) -#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) -#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) -#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) -#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) -#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) - -typedef struct _CoreViewTracker CoreViewTracker; -typedef struct _CoreViewTrackerClass CoreViewTrackerClass; - -#define TYPE_MEDIA_VIEW_TRACKER (media_view_tracker_get_type ()) -#define MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTracker)) -#define MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass)) -#define IS_MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_VIEW_TRACKER)) -#define IS_MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_VIEW_TRACKER)) -#define MEDIA_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass)) - -typedef struct _MediaViewTracker MediaViewTracker; -typedef struct _MediaViewTrackerClass MediaViewTrackerClass; - -#define TYPE_CAMERA_VIEW_TRACKER (camera_view_tracker_get_type ()) -#define CAMERA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CAMERA_VIEW_TRACKER, CameraViewTracker)) -#define CAMERA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CAMERA_VIEW_TRACKER, CameraViewTrackerClass)) -#define IS_CAMERA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CAMERA_VIEW_TRACKER)) -#define IS_CAMERA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CAMERA_VIEW_TRACKER)) -#define CAMERA_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CAMERA_VIEW_TRACKER, CameraViewTrackerClass)) - -typedef struct _CameraViewTracker CameraViewTracker; -typedef struct _CameraViewTrackerClass CameraViewTrackerClass; -#define _core_tracker_unref0(var) ((var == NULL) ? NULL : (var = (core_tracker_unref (var), NULL))) -typedef struct _CoreTrackerPrivate CoreTrackerPrivate; -typedef struct _CoreViewTrackerPrivate CoreViewTrackerPrivate; -typedef struct _MediaViewTrackerPrivate MediaViewTrackerPrivate; - -#define TYPE_MEDIA_ACCUMULATOR (media_accumulator_get_type ()) -#define MEDIA_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_ACCUMULATOR, MediaAccumulator)) -#define MEDIA_ACCUMULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_ACCUMULATOR, MediaAccumulatorClass)) -#define IS_MEDIA_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_ACCUMULATOR)) -#define IS_MEDIA_ACCUMULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_ACCUMULATOR)) -#define MEDIA_ACCUMULATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_ACCUMULATOR, MediaAccumulatorClass)) - -typedef struct _MediaAccumulator MediaAccumulator; -typedef struct _MediaAccumulatorClass MediaAccumulatorClass; - -#define CORE_TYPE_TRACKER_ACCUMULATOR (core_tracker_accumulator_get_type ()) -#define CORE_TRACKER_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator)) -#define CORE_IS_TRACKER_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER_ACCUMULATOR)) -#define CORE_TRACKER_ACCUMULATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulatorIface)) - -typedef struct _CoreTrackerAccumulator CoreTrackerAccumulator; -typedef struct _CoreTrackerAccumulatorIface CoreTrackerAccumulatorIface; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; -typedef struct _MediaAccumulatorPrivate MediaAccumulatorPrivate; -typedef struct _CameraViewTrackerPrivate CameraViewTrackerPrivate; - -#define TYPE_CAMERA_ACCUMULATOR (camera_accumulator_get_type ()) -#define CAMERA_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CAMERA_ACCUMULATOR, CameraAccumulator)) -#define CAMERA_ACCUMULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CAMERA_ACCUMULATOR, CameraAccumulatorClass)) -#define IS_CAMERA_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CAMERA_ACCUMULATOR)) -#define IS_CAMERA_ACCUMULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CAMERA_ACCUMULATOR)) -#define CAMERA_ACCUMULATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CAMERA_ACCUMULATOR, CameraAccumulatorClass)) - -typedef struct _CameraAccumulator CameraAccumulator; -typedef struct _CameraAccumulatorClass CameraAccumulatorClass; -typedef struct _ParamSpecSearchFilterActions ParamSpecSearchFilterActions; -enum { - SEARCH_FILTER_ACTIONS_FLAGGED_TOGGLED_SIGNAL, - SEARCH_FILTER_ACTIONS_PHOTOS_TOGGLED_SIGNAL, - SEARCH_FILTER_ACTIONS_VIDEOS_TOGGLED_SIGNAL, - SEARCH_FILTER_ACTIONS_RAW_TOGGLED_SIGNAL, - SEARCH_FILTER_ACTIONS_RATING_CHANGED_SIGNAL, - SEARCH_FILTER_ACTIONS_TEXT_CHANGED_SIGNAL, - SEARCH_FILTER_ACTIONS_MEDIA_CONTEXT_CHANGED_SIGNAL, - SEARCH_FILTER_ACTIONS_CRITERIA_CHANGED_SIGNAL, - SEARCH_FILTER_ACTIONS_NUM_SIGNALS -}; -static guint search_filter_actions_signals[SEARCH_FILTER_ACTIONS_NUM_SIGNALS] = {0}; - -#define TYPE_SEARCH_FILTER_TOOLBAR (search_filter_toolbar_get_type ()) -#define SEARCH_FILTER_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_FILTER_TOOLBAR, SearchFilterToolbar)) -#define SEARCH_FILTER_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_FILTER_TOOLBAR, SearchFilterToolbarClass)) -#define IS_SEARCH_FILTER_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_FILTER_TOOLBAR)) -#define IS_SEARCH_FILTER_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_FILTER_TOOLBAR)) -#define SEARCH_FILTER_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_FILTER_TOOLBAR, SearchFilterToolbarClass)) - -typedef struct _SearchFilterToolbar SearchFilterToolbar; -typedef struct _SearchFilterToolbarClass SearchFilterToolbarClass; -typedef struct _SearchFilterToolbarPrivate SearchFilterToolbarPrivate; - -#define SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX (search_filter_toolbar_search_box_get_type ()) -#define SEARCH_FILTER_TOOLBAR_SEARCH_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX, SearchFilterToolbarSearchBox)) -#define SEARCH_FILTER_TOOLBAR_SEARCH_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX, SearchFilterToolbarSearchBoxClass)) -#define SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX)) -#define SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX)) -#define SEARCH_FILTER_TOOLBAR_SEARCH_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX, SearchFilterToolbarSearchBoxClass)) - -typedef struct _SearchFilterToolbarSearchBox SearchFilterToolbarSearchBox; -typedef struct _SearchFilterToolbarSearchBoxClass SearchFilterToolbarSearchBoxClass; - -#define SEARCH_FILTER_TOOLBAR_TYPE_RATING_FILTER_BUTTON (search_filter_toolbar_rating_filter_button_get_type ()) -#define SEARCH_FILTER_TOOLBAR_RATING_FILTER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCH_FILTER_TOOLBAR_TYPE_RATING_FILTER_BUTTON, SearchFilterToolbarRatingFilterButton)) -#define SEARCH_FILTER_TOOLBAR_RATING_FILTER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCH_FILTER_TOOLBAR_TYPE_RATING_FILTER_BUTTON, SearchFilterToolbarRatingFilterButtonClass)) -#define SEARCH_FILTER_TOOLBAR_IS_RATING_FILTER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCH_FILTER_TOOLBAR_TYPE_RATING_FILTER_BUTTON)) -#define SEARCH_FILTER_TOOLBAR_IS_RATING_FILTER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCH_FILTER_TOOLBAR_TYPE_RATING_FILTER_BUTTON)) -#define SEARCH_FILTER_TOOLBAR_RATING_FILTER_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCH_FILTER_TOOLBAR_TYPE_RATING_FILTER_BUTTON, SearchFilterToolbarRatingFilterButtonClass)) - -typedef struct _SearchFilterToolbarRatingFilterButton SearchFilterToolbarRatingFilterButton; -typedef struct _SearchFilterToolbarRatingFilterButtonClass SearchFilterToolbarRatingFilterButtonClass; - -#define SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON (search_filter_toolbar_saved_search_filter_button_get_type ()) -#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON, SearchFilterToolbarSavedSearchFilterButton)) -#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON, SearchFilterToolbarSavedSearchFilterButtonClass)) -#define SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_FILTER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON)) -#define SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_FILTER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON)) -#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON, SearchFilterToolbarSavedSearchFilterButtonClass)) - -typedef struct _SearchFilterToolbarSavedSearchFilterButton SearchFilterToolbarSavedSearchFilterButton; -typedef struct _SearchFilterToolbarSavedSearchFilterButtonClass SearchFilterToolbarSavedSearchFilterButtonClass; - -#define SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM (search_filter_toolbar_label_tool_item_get_type ()) -#define SEARCH_FILTER_TOOLBAR_LABEL_TOOL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM, SearchFilterToolbarLabelToolItem)) -#define SEARCH_FILTER_TOOLBAR_LABEL_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM, SearchFilterToolbarLabelToolItemClass)) -#define SEARCH_FILTER_TOOLBAR_IS_LABEL_TOOL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM)) -#define SEARCH_FILTER_TOOLBAR_IS_LABEL_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM)) -#define SEARCH_FILTER_TOOLBAR_LABEL_TOOL_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM, SearchFilterToolbarLabelToolItemClass)) - -typedef struct _SearchFilterToolbarLabelToolItem SearchFilterToolbarLabelToolItem; -typedef struct _SearchFilterToolbarLabelToolItemClass SearchFilterToolbarLabelToolItemClass; - -#define SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON (search_filter_toolbar_toggle_action_tool_button_get_type ()) -#define SEARCH_FILTER_TOOLBAR_TOGGLE_ACTION_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON, SearchFilterToolbarToggleActionToolButton)) -#define SEARCH_FILTER_TOOLBAR_TOGGLE_ACTION_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON, SearchFilterToolbarToggleActionToolButtonClass)) -#define SEARCH_FILTER_TOOLBAR_IS_TOGGLE_ACTION_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON)) -#define SEARCH_FILTER_TOOLBAR_IS_TOGGLE_ACTION_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON)) -#define SEARCH_FILTER_TOOLBAR_TOGGLE_ACTION_TOOL_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON, SearchFilterToolbarToggleActionToolButtonClass)) - -typedef struct _SearchFilterToolbarToggleActionToolButton SearchFilterToolbarToggleActionToolButton; -typedef struct _SearchFilterToolbarToggleActionToolButtonClass SearchFilterToolbarToggleActionToolButtonClass; -enum { - SEARCH_FILTER_TOOLBAR_0_PROPERTY, - SEARCH_FILTER_TOOLBAR_NUM_PROPERTIES -}; -static GParamSpec* search_filter_toolbar_properties[SEARCH_FILTER_TOOLBAR_NUM_PROPERTIES]; -#define _search_filter_actions_unref0(var) ((var == NULL) ? NULL : (var = (search_filter_actions_unref (var), NULL))) -#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -typedef struct _SearchFilterToolbarSavedSearchFilterButtonPrivate SearchFilterToolbarSavedSearchFilterButtonPrivate; - -#define SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER (search_filter_toolbar_saved_search_popover_get_type ()) -#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, SearchFilterToolbarSavedSearchPopover)) -#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, SearchFilterToolbarSavedSearchPopoverClass)) -#define SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER)) -#define SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER)) -#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, SearchFilterToolbarSavedSearchPopoverClass)) - -typedef struct _SearchFilterToolbarSavedSearchPopover SearchFilterToolbarSavedSearchPopover; -typedef struct _SearchFilterToolbarSavedSearchPopoverClass SearchFilterToolbarSavedSearchPopoverClass; - -#define TYPE_SAVED_SEARCH_DIALOG (saved_search_dialog_get_type ()) -#define SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialog)) -#define SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass)) -#define IS_SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_DIALOG)) -#define IS_SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_DIALOG)) -#define SAVED_SEARCH_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass)) - -typedef struct _SavedSearchDialog SavedSearchDialog; -typedef struct _SavedSearchDialogClass SavedSearchDialogClass; - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; - -#define TYPE_SINGLE_DATA_SOURCE_COMMAND (single_data_source_command_get_type ()) -#define SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)) -#define SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) -#define IS_SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND)) -#define IS_SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND)) -#define SINGLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) - -typedef struct _SingleDataSourceCommand SingleDataSourceCommand; -typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass; - -#define TYPE_DELETE_SAVED_SEARCH_COMMAND (delete_saved_search_command_get_type ()) -#define DELETE_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommand)) -#define DELETE_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandClass)) -#define IS_DELETE_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND)) -#define IS_DELETE_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DELETE_SAVED_SEARCH_COMMAND)) -#define DELETE_SAVED_SEARCH_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandClass)) - -typedef struct _DeleteSavedSearchCommand DeleteSavedSearchCommand; -typedef struct _DeleteSavedSearchCommandClass DeleteSavedSearchCommandClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) -#define _search_filter_toolbar_saved_search_popover_unref0(var) ((var == NULL) ? NULL : (var = (search_filter_toolbar_saved_search_popover_unref (var), NULL))) -typedef struct _SearchFilterToolbarLabelToolItemPrivate SearchFilterToolbarLabelToolItemPrivate; -enum { - SEARCH_FILTER_TOOLBAR_LABEL_TOOL_ITEM_0_PROPERTY, - SEARCH_FILTER_TOOLBAR_LABEL_TOOL_ITEM_NUM_PROPERTIES -}; -static GParamSpec* search_filter_toolbar_label_tool_item_properties[SEARCH_FILTER_TOOLBAR_LABEL_TOOL_ITEM_NUM_PROPERTIES]; -typedef struct _SearchFilterToolbarToggleActionToolButtonPrivate SearchFilterToolbarToggleActionToolButtonPrivate; -enum { - SEARCH_FILTER_TOOLBAR_TOGGLE_ACTION_TOOL_BUTTON_0_PROPERTY, - SEARCH_FILTER_TOOLBAR_TOGGLE_ACTION_TOOL_BUTTON_NUM_PROPERTIES -}; -static GParamSpec* search_filter_toolbar_toggle_action_tool_button_properties[SEARCH_FILTER_TOOLBAR_TOGGLE_ACTION_TOOL_BUTTON_NUM_PROPERTIES]; -typedef struct _SearchFilterToolbarSearchBoxPrivate SearchFilterToolbarSearchBoxPrivate; -enum { - SEARCH_FILTER_TOOLBAR_SEARCH_BOX_0_PROPERTY, - SEARCH_FILTER_TOOLBAR_SEARCH_BOX_NUM_PROPERTIES -}; -static GParamSpec* search_filter_toolbar_search_box_properties[SEARCH_FILTER_TOOLBAR_SEARCH_BOX_NUM_PROPERTIES]; -typedef struct _SearchFilterToolbarRatingFilterButtonPrivate SearchFilterToolbarRatingFilterButtonPrivate; -enum { - SEARCH_FILTER_TOOLBAR_RATING_FILTER_BUTTON_0_PROPERTY, - SEARCH_FILTER_TOOLBAR_RATING_FILTER_BUTTON_NUM_PROPERTIES -}; -static GParamSpec* search_filter_toolbar_rating_filter_button_properties[SEARCH_FILTER_TOOLBAR_RATING_FILTER_BUTTON_NUM_PROPERTIES]; -enum { - SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_0_PROPERTY, - SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_NUM_PROPERTIES -}; -static GParamSpec* search_filter_toolbar_saved_search_filter_button_properties[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_NUM_PROPERTIES]; -enum { - SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_CLICKED_SIGNAL, - SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_NUM_SIGNALS -}; -static guint search_filter_toolbar_saved_search_filter_button_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_NUM_SIGNALS] = {0}; -typedef struct _SearchFilterToolbarSavedSearchPopoverPrivate SearchFilterToolbarSavedSearchPopoverPrivate; - -#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON (search_filter_toolbar_saved_search_popover_data_button_get_type ()) -#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, SearchFilterToolbarSavedSearchPopoverDataButton)) -#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, SearchFilterToolbarSavedSearchPopoverDataButtonClass)) -#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_IS_DATA_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON)) -#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_IS_DATA_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON)) -#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, SearchFilterToolbarSavedSearchPopoverDataButtonClass)) - -typedef struct _SearchFilterToolbarSavedSearchPopoverDataButton SearchFilterToolbarSavedSearchPopoverDataButton; -typedef struct _SearchFilterToolbarSavedSearchPopoverDataButtonClass SearchFilterToolbarSavedSearchPopoverDataButtonClass; - -#define TYPE_SAVED_SEARCH_TABLE (saved_search_table_get_type ()) -#define SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTable)) -#define SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass)) -#define IS_SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_TABLE)) -#define IS_SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_TABLE)) -#define SAVED_SEARCH_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass)) - -typedef struct _SavedSearchTable SavedSearchTable; -typedef struct _SavedSearchTableClass SavedSearchTableClass; -#define _saved_search_table_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_table_unref (var), NULL))) -#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL))) -typedef struct _SearchFilterToolbarSavedSearchPopoverDataButtonPrivate SearchFilterToolbarSavedSearchPopoverDataButtonPrivate; -enum { - SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_0_PROPERTY, - SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_SEARCH_PROPERTY, - SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_NUM_PROPERTIES -}; -static GParamSpec* search_filter_toolbar_saved_search_popover_data_button_properties[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_NUM_PROPERTIES]; -enum { - SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_CLICKED_SIGNAL, - SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_NUM_SIGNALS -}; -static guint search_filter_toolbar_saved_search_popover_data_button_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_NUM_SIGNALS] = {0}; -typedef struct _SearchFilterToolbarParamSpecSavedSearchPopover SearchFilterToolbarParamSpecSavedSearchPopover; -enum { - SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_SEARCH_ACTIVATED_SIGNAL, - SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_EDIT_CLICKED_SIGNAL, - SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DELETE_CLICKED_SIGNAL, - SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_ADD_CLICKED_SIGNAL, - SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_CLOSED_SIGNAL, - SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_NUM_SIGNALS -}; -static guint search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef enum { - SEARCH_FILTER_CRITERIA_NONE = 0, - SEARCH_FILTER_CRITERIA_RECURSIVE = 1 << 0, - SEARCH_FILTER_CRITERIA_TEXT = 1 << 1, - SEARCH_FILTER_CRITERIA_FLAG = 1 << 2, - SEARCH_FILTER_CRITERIA_MEDIA = 1 << 3, - SEARCH_FILTER_CRITERIA_RATING = 1 << 4, - SEARCH_FILTER_CRITERIA_SAVEDSEARCH = 1 << 5, - SEARCH_FILTER_CRITERIA_ALL = 0xFFFFFFFFLL -} SearchFilterCriteria; - -typedef enum { - RATING_FILTER_NO_FILTER = 0, - RATING_FILTER_REJECTED_OR_HIGHER = 1, - RATING_FILTER_UNRATED_OR_HIGHER = 2, - RATING_FILTER_ONE_OR_HIGHER = 3, - RATING_FILTER_TWO_OR_HIGHER = 4, - RATING_FILTER_THREE_OR_HIGHER = 5, - RATING_FILTER_FOUR_OR_HIGHER = 6, - RATING_FILTER_FIVE_OR_HIGHER = 7, - RATING_FILTER_REJECTED_ONLY = 8, - RATING_FILTER_UNRATED_ONLY = 9, - RATING_FILTER_ONE_ONLY = 10, - RATING_FILTER_TWO_ONLY = 11, - RATING_FILTER_THREE_ONLY = 12, - RATING_FILTER_FOUR_ONLY = 13, - RATING_FILTER_FIVE_ONLY = 14 -} RatingFilter; - -struct _ViewFilter { - GTypeInstance parent_instance; - volatile int ref_count; - ViewFilterPrivate * priv; -}; - -struct _ViewFilterClass { - GTypeClass parent_class; - void (*finalize) (ViewFilter *self); - gboolean (*predicate) (ViewFilter* self, DataView* view); - void (*refresh) (ViewFilter* self); -}; - -struct _SearchViewFilter { - ViewFilter parent_instance; - SearchViewFilterPrivate * priv; -}; - -struct _SearchViewFilterClass { - ViewFilterClass parent_class; - guint (*get_criteria) (SearchViewFilter* self); -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -struct _SearchViewFilterPrivate { - gboolean rating_allow_higher; - Rating rating; - RatingFilter rating_filter; - gboolean _flagged; - gboolean _show_media_video; - gboolean _show_media_photos; - gboolean _show_media_raw; - gchar* search_filter; - gchar** search_filter_words; - gint search_filter_words_length1; - gint _search_filter_words_size_; - SavedSearch* _saved_search; -}; - -struct _DefaultSearchViewFilter { - SearchViewFilter parent_instance; - DefaultSearchViewFilterPrivate * priv; -}; - -struct _DefaultSearchViewFilterClass { - SearchViewFilterClass parent_class; -}; - -struct _FlaggableIface { - GTypeInterface parent_iface; - gboolean (*is_flagged) (Flaggable* self); - void (*mark_flagged) (Flaggable* self); - void (*mark_unflagged) (Flaggable* self); -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _IndexableIface { - GTypeInterface parent_iface; - const gchar* (*get_indexable_keywords) (Indexable* self); -}; - -struct _DisabledViewFilter { - SearchViewFilter parent_instance; - DisabledViewFilterPrivate * priv; -}; - -struct _DisabledViewFilterClass { - SearchViewFilterClass parent_class; -}; - -struct _TextAction { - GTypeInstance parent_instance; - volatile int ref_count; - TextActionPrivate * priv; -}; - -struct _TextActionClass { - GTypeClass parent_class; - void (*finalize) (TextAction *self); -}; - -struct _TextActionPrivate { - gchar* text; - gboolean sensitive; - gboolean visible; -}; - -struct _ParamSpecTextAction { - GParamSpec parent_instance; -}; - -struct _SearchFilterActions { - GTypeInstance parent_instance; - volatile int ref_count; - SearchFilterActionsPrivate * priv; -}; - -struct _SearchFilterActionsClass { - GTypeClass parent_class; - void (*finalize) (SearchFilterActions *self); -}; - -struct _SearchFilterActionsPrivate { - SearchFilterCriteria criteria; - TextAction* _text; - gboolean has_flagged; - gboolean has_photos; - gboolean has_videos; - gboolean has_raw; - gboolean can_filter_by_stars; -}; - -struct _CoreTracker { - GTypeInstance parent_instance; - volatile int ref_count; - CoreTrackerPrivate * priv; -}; - -struct _CoreTrackerClass { - GTypeClass parent_class; - void (*finalize) (CoreTracker *self); - void (*updated) (CoreTracker* self); -}; - -struct _CoreViewTracker { - CoreTracker parent_instance; - CoreViewTrackerPrivate * priv; -}; - -struct _CoreViewTrackerClass { - CoreTrackerClass parent_class; -}; - -struct _MediaViewTracker { - CoreViewTracker parent_instance; - MediaViewTrackerPrivate * priv; - MediaAccumulator* all; - MediaAccumulator* visible; - MediaAccumulator* selected; -}; - -struct _MediaViewTrackerClass { - CoreViewTrackerClass parent_class; -}; - -struct _CoreTrackerAccumulatorIface { - GTypeInterface parent_iface; - gboolean (*include) (CoreTrackerAccumulator* self, DataObject* object); - gboolean (*uninclude) (CoreTrackerAccumulator* self, DataObject* object); - gboolean (*altered) (CoreTrackerAccumulator* self, DataObject* object, Alteration* alteration); -}; - -struct _MediaAccumulator { - GObject parent_instance; - MediaAccumulatorPrivate * priv; - gint total; - gint photos; - gint videos; - gint raw; - gint flagged; -}; - -struct _MediaAccumulatorClass { - GObjectClass parent_class; -}; - -struct _CameraViewTracker { - CoreViewTracker parent_instance; - CameraViewTrackerPrivate * priv; - CameraAccumulator* all; - CameraAccumulator* visible; - CameraAccumulator* selected; -}; - -struct _CameraViewTrackerClass { - CoreViewTrackerClass parent_class; -}; - -struct _ParamSpecSearchFilterActions { - GParamSpec parent_instance; -}; - -struct _SearchFilterToolbar { - GtkRevealer parent_instance; - SearchFilterToolbarPrivate * priv; - GtkBuilder* builder; -}; - -struct _SearchFilterToolbarClass { - GtkRevealerClass parent_class; -}; - -struct _SearchFilterToolbarPrivate { - GtkToolbar* toolbar; - GtkMenu* close_menu; - GtkMenuItem* close_item; - SearchFilterActions* actions; - SavedSearch* saved_search; - SearchFilterToolbarSearchBox* search_box; - SearchFilterToolbarRatingFilterButton* rating_button; - SearchFilterToolbarSavedSearchFilterButton* saved_search_button; - gboolean elide_showing_again; - SearchViewFilter* search_filter; - SearchFilterToolbarLabelToolItem* label_type; - SearchFilterToolbarToggleActionToolButton* toolbtn_photos; - SearchFilterToolbarToggleActionToolButton* toolbtn_videos; - SearchFilterToolbarToggleActionToolButton* toolbtn_raw; - SearchFilterToolbarToggleActionToolButton* toolbtn_flag; - GtkSeparatorToolItem* sepr_mediatype_flagged; - GtkSeparatorToolItem* sepr_flagged_rating; - GtkSeparatorToolItem* sepr_rating_saved; -}; - -struct _SearchFilterToolbarSavedSearchFilterButton { - GtkToolItem parent_instance; - SearchFilterToolbarSavedSearchFilterButtonPrivate * priv; - SearchFilterToolbarSavedSearchPopover* filter_popup; - GtkToggleButton* button; -}; - -struct _SearchFilterToolbarSavedSearchFilterButtonClass { - GtkToolItemClass parent_class; -}; - -struct _SearchFilterToolbarLabelToolItem { - GtkToolItem parent_instance; - SearchFilterToolbarLabelToolItemPrivate * priv; -}; - -struct _SearchFilterToolbarLabelToolItemClass { - GtkToolItemClass parent_class; -}; - -struct _SearchFilterToolbarLabelToolItemPrivate { - GtkLabel* label; -}; - -struct _SearchFilterToolbarToggleActionToolButton { - GtkToolItem parent_instance; - SearchFilterToolbarToggleActionToolButtonPrivate * priv; -}; - -struct _SearchFilterToolbarToggleActionToolButtonClass { - GtkToolItemClass parent_class; -}; - -struct _SearchFilterToolbarToggleActionToolButtonPrivate { - GtkToggleButton* button; -}; - -struct _SearchFilterToolbarSearchBox { - GtkToolItem parent_instance; - SearchFilterToolbarSearchBoxPrivate * priv; -}; - -struct _SearchFilterToolbarSearchBoxClass { - GtkToolItemClass parent_class; -}; - -struct _SearchFilterToolbarSearchBoxPrivate { - GtkSearchEntry* search_entry; - TextAction* action; -}; - -struct _SearchFilterToolbarRatingFilterButton { - GtkToolItem parent_instance; - SearchFilterToolbarRatingFilterButtonPrivate * priv; - GtkMenuButton* button; -}; - -struct _SearchFilterToolbarRatingFilterButtonClass { - GtkToolItemClass parent_class; -}; - -struct _SearchFilterToolbarSavedSearchPopover { - GTypeInstance parent_instance; - volatile int ref_count; - SearchFilterToolbarSavedSearchPopoverPrivate * priv; -}; - -struct _SearchFilterToolbarSavedSearchPopoverClass { - GTypeClass parent_class; - void (*finalize) (SearchFilterToolbarSavedSearchPopover *self); -}; - -struct _SearchFilterToolbarSavedSearchPopoverPrivate { - GtkPopover* popover; - GtkListBox* list_box; - SearchFilterToolbarSavedSearchPopoverDataButton** edit_buttons; - gint edit_buttons_length1; - gint _edit_buttons_size_; - SearchFilterToolbarSavedSearchPopoverDataButton** delete_buttons; - gint delete_buttons_length1; - gint _delete_buttons_size_; - GtkButton* add; -}; - -struct _SearchFilterToolbarSavedSearchPopoverDataButton { - GtkBin parent_instance; - SearchFilterToolbarSavedSearchPopoverDataButtonPrivate * priv; -}; - -struct _SearchFilterToolbarSavedSearchPopoverDataButtonClass { - GtkBinClass parent_class; -}; - -struct _SearchFilterToolbarSavedSearchPopoverDataButtonPrivate { - GtkButton* button; - SavedSearch* _search; -}; - -struct _SearchFilterToolbarParamSpecSavedSearchPopover { - GParamSpec parent_instance; -}; - - -static gpointer search_view_filter_parent_class = NULL; -static gpointer default_search_view_filter_parent_class = NULL; -extern TagSourceCollection* tag_global; -static gpointer disabled_view_filter_parent_class = NULL; -static gpointer text_action_parent_class = NULL; -static gpointer search_filter_actions_parent_class = NULL; -static gpointer search_filter_toolbar_parent_class = NULL; -static gpointer search_filter_toolbar_label_tool_item_parent_class = NULL; -static gpointer search_filter_toolbar_toggle_action_tool_button_parent_class = NULL; -static gpointer search_filter_toolbar_search_box_parent_class = NULL; -static gpointer search_filter_toolbar_rating_filter_button_parent_class = NULL; -static gpointer search_filter_toolbar_saved_search_filter_button_parent_class = NULL; -static gpointer search_filter_toolbar_saved_search_popover_parent_class = NULL; -static gpointer search_filter_toolbar_saved_search_popover_data_button_parent_class = NULL; - -GType search_filter_criteria_get_type (void) G_GNUC_CONST; -GType rating_filter_get_type (void) G_GNUC_CONST; -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType search_view_filter_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType saved_search_get_type (void) G_GNUC_CONST; -#define SEARCH_VIEW_FILTER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterPrivate)) -guint search_view_filter_get_criteria (SearchViewFilter* self); -static guint search_view_filter_real_get_criteria (SearchViewFilter* self); -void search_view_filter_set_rating_filter (SearchViewFilter* self, - RatingFilter rf); -gboolean search_view_filter_has_search_filter (SearchViewFilter* self); -gboolean is_string_empty (const gchar* s); -const gchar* search_view_filter_get_search_filter (SearchViewFilter* self); -gchar** search_view_filter_get_search_filter_words (SearchViewFilter* self, - int* result_length1); -void search_view_filter_set_search_filter (SearchViewFilter* self, - const gchar* text); -static gchar** _vala_array_dup27 (gchar** self, - int length); -void search_view_filter_clear_search_filter (SearchViewFilter* self); -gboolean search_view_filter_has_saved_search (SearchViewFilter* self); -SavedSearch* search_view_filter_get_saved_search (SearchViewFilter* self); -gboolean search_view_filter_get_rating_allow_higher (SearchViewFilter* self); -Rating search_view_filter_get_rating (SearchViewFilter* self); -gboolean search_view_filter_filter_by_media_type (SearchViewFilter* self); -gboolean search_view_filter_get_show_media_video (SearchViewFilter* self); -gboolean search_view_filter_get_show_media_photos (SearchViewFilter* self); -gboolean search_view_filter_get_show_media_raw (SearchViewFilter* self); -SearchViewFilter* search_view_filter_construct (GType object_type); -ViewFilter* view_filter_construct (GType object_type); -gboolean search_view_filter_get_flagged (SearchViewFilter* self); -void search_view_filter_set_flagged (SearchViewFilter* self, - gboolean value); -void search_view_filter_set_show_media_video (SearchViewFilter* self, - gboolean value); -void search_view_filter_set_show_media_photos (SearchViewFilter* self, - gboolean value); -void search_view_filter_set_show_media_raw (SearchViewFilter* self, - gboolean value); -void search_view_filter_set_saved_search (SearchViewFilter* self, - SavedSearch* value); -static void search_view_filter_finalize (ViewFilter * obj); -GType default_search_view_filter_get_type (void) G_GNUC_CONST; -static gboolean default_search_view_filter_real_predicate (ViewFilter* base, - DataView* view); -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType media_source_item_get_type (void) G_GNUC_CONST; -GType thumbnail_get_type (void) G_GNUC_CONST; -MediaSource* thumbnail_get_media_source (Thumbnail* self); -Rating media_source_get_rating (MediaSource* self); -GType flaggable_get_type (void) G_GNUC_CONST; -gboolean flaggable_is_flagged (Flaggable* self); -GType video_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -PhotoFileFormat photo_get_master_file_format (Photo* self); -GType indexable_get_type (void) G_GNUC_CONST; -const gchar* indexable_get_indexable_keywords (Indexable* self); -GType event_source_get_type (void) G_GNUC_CONST; -GType event_get_type (void) G_GNUC_CONST; -Event* media_source_get_event (MediaSource* self); -GType tag_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType tag_source_collection_get_type (void) G_GNUC_CONST; -GeeList* tag_source_collection_fetch_for_source (TagSourceCollection* self, - MediaSource* source); -gboolean saved_search_predicate (SavedSearch* self, - MediaSource* source); -DefaultSearchViewFilter* default_search_view_filter_construct (GType object_type); -GType disabled_view_filter_get_type (void) G_GNUC_CONST; -static gboolean disabled_view_filter_real_predicate (ViewFilter* base, - DataView* view); -static guint disabled_view_filter_real_get_criteria (SearchViewFilter* base); -DisabledViewFilter* disabled_view_filter_new (void); -DisabledViewFilter* disabled_view_filter_construct (GType object_type); -gpointer text_action_ref (gpointer instance); -void text_action_unref (gpointer instance); -GParamSpec* param_spec_text_action (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_text_action (GValue* value, - gpointer v_object); -void value_take_text_action (GValue* value, - gpointer v_object); -gpointer value_get_text_action (const GValue* value); -GType text_action_get_type (void) G_GNUC_CONST; -#define TEXT_ACTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TEXT_ACTION, TextActionPrivate)) -TextAction* text_action_new (const gchar* init); -TextAction* text_action_construct (GType object_type, - const gchar* init); -void text_action_set_text (TextAction* self, - const gchar* text); -void text_action_clear (TextAction* self); -gboolean text_action_is_sensitive (TextAction* self); -void text_action_set_sensitive (TextAction* self, - gboolean sensitive); -gboolean text_action_is_visible (TextAction* self); -void text_action_set_visible (TextAction* self, - gboolean visible); -const gchar* text_action_get_value (TextAction* self); -static void text_action_finalize (TextAction * obj); -gpointer search_filter_actions_ref (gpointer instance); -void search_filter_actions_unref (gpointer instance); -GParamSpec* param_spec_search_filter_actions (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_search_filter_actions (GValue* value, - gpointer v_object); -void value_take_search_filter_actions (GValue* value, - gpointer v_object); -gpointer value_get_search_filter_actions (const GValue* value); -GType search_filter_actions_get_type (void) G_GNUC_CONST; -#define SEARCH_FILTER_ACTIONS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_FILTER_ACTIONS, SearchFilterActionsPrivate)) -static void search_filter_actions_on_action_radio (SearchFilterActions* self, - GSimpleAction* action, - GVariant* parameter); -static void _search_filter_actions_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void search_filter_actions_on_rating_changed (SearchFilterActions* self, - GSimpleAction* action, - GVariant* value); -static void _search_filter_actions_on_rating_changed_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -static void search_filter_actions_on_action_toggle (SearchFilterActions* self, - GSimpleAction* action, - GVariant* parameter); -static void _search_filter_actions_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void search_filter_actions_on_flagged_toggled (SearchFilterActions* self, - GSimpleAction* action, - GVariant* value); -static void _search_filter_actions_on_flagged_toggled_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -static void search_filter_actions_on_photos_toggled (SearchFilterActions* self, - GSimpleAction* action, - GVariant* value); -static void _search_filter_actions_on_photos_toggled_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -static void search_filter_actions_on_videos_toggled (SearchFilterActions* self, - GSimpleAction* action, - GVariant* value); -static void _search_filter_actions_on_videos_toggled_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -static void search_filter_actions_on_raw_toggled (SearchFilterActions* self, - GSimpleAction* action, - GVariant* value); -static void _search_filter_actions_on_raw_toggled_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -SearchFilterActions* search_filter_actions_new (void); -SearchFilterActions* search_filter_actions_construct (GType object_type); -static void search_filter_actions_register (SearchFilterActions* self); -TextAction* search_filter_actions_get_text (SearchFilterActions* self); -static void search_filter_actions_on_text_changed (SearchFilterActions* self, - TextAction* action, - const gchar* text); -static void _search_filter_actions_on_text_changed_text_action_text_changed (TextAction* _sender, - const gchar* text, - gpointer self); -SearchFilterCriteria search_filter_actions_get_criteria (SearchFilterActions* self); -GActionEntry* search_filter_actions_get_actions (SearchFilterActions* self, - int* result_length1); -GSimpleAction* search_filter_actions_get_action (SearchFilterActions* self, - const gchar* name); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -GType library_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -void search_filter_actions_set_action_sensitive (SearchFilterActions* self, - const gchar* name, - gboolean sensitive); -void search_filter_actions_reset (SearchFilterActions* self); -GSimpleAction* search_filter_actions_get_flagged (SearchFilterActions* self); -static GVariant* _variant_new32 (gboolean value); -GSimpleAction* search_filter_actions_get_photos (SearchFilterActions* self); -static GVariant* _variant_new33 (gboolean value); -GSimpleAction* search_filter_actions_get_raw (SearchFilterActions* self); -static GVariant* _variant_new34 (gboolean value); -GSimpleAction* search_filter_actions_get_videos (SearchFilterActions* self); -static GVariant* _variant_new35 (gboolean value); -static GVariant* _variant_new36 (gchar* value); -GSimpleAction* search_filter_actions_get_rating (SearchFilterActions* self); -void search_filter_actions_set_sensitive_for_search_criteria (SearchFilterActions* self, - SearchFilterCriteria criteria); -static void search_filter_actions_update_sensitivities (SearchFilterActions* self); -GType page_get_type (void) G_GNUC_CONST; -void search_filter_actions_monitor_page_contents (SearchFilterActions* self, - Page* old_page, - Page* new_page); -GType checkerboard_page_get_type (void) G_GNUC_CONST; -gpointer core_tracker_ref (gpointer instance); -void core_tracker_unref (gpointer instance); -GParamSpec* core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void core_value_set_tracker (GValue* value, - gpointer v_object); -void core_value_take_tracker (GValue* value, - gpointer v_object); -gpointer core_value_get_tracker (const GValue* value); -GType core_tracker_get_type (void) G_GNUC_CONST; -GType core_view_tracker_get_type (void) G_GNUC_CONST; -CoreViewTracker* checkerboard_page_get_view_tracker (CheckerboardPage* self); -GType media_view_tracker_get_type (void) G_GNUC_CONST; -static void search_filter_actions_on_media_tracker_updated (SearchFilterActions* self, - CoreTracker* t); -static void _search_filter_actions_on_media_tracker_updated_core_tracker_updated (CoreTracker* _sender, - gpointer self); -GType camera_view_tracker_get_type (void) G_GNUC_CONST; -static void search_filter_actions_on_camera_tracker_updated (SearchFilterActions* self, - CoreTracker* t); -static void _search_filter_actions_on_camera_tracker_updated_core_tracker_updated (CoreTracker* _sender, - gpointer self); -GType media_accumulator_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -GType core_tracker_accumulator_get_type (void) G_GNUC_CONST; -GType camera_accumulator_get_type (void) G_GNUC_CONST; -gint camera_accumulator_get_photos (CameraAccumulator* self); -gint camera_accumulator_get_videos (CameraAccumulator* self); -gint camera_accumulator_get_raw (CameraAccumulator* self); -static gboolean _variant_get37 (GVariant* value); -static GVariant* _variant_new38 (gboolean value); -gboolean search_filter_actions_get_has_photos (SearchFilterActions* self); -gboolean search_filter_actions_get_has_videos (SearchFilterActions* self); -gboolean search_filter_actions_get_has_raw (SearchFilterActions* self); -gboolean search_filter_actions_get_has_flagged (SearchFilterActions* self); -static void g_cclosure_user_marshal_VOID__BOOLEAN_BOOLEAN_BOOLEAN_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void search_filter_actions_finalize (SearchFilterActions * obj); -GType search_filter_toolbar_get_type (void) G_GNUC_CONST; -GType search_filter_toolbar_search_box_get_type (void) G_GNUC_CONST; -GType search_filter_toolbar_rating_filter_button_get_type (void) G_GNUC_CONST; -GType search_filter_toolbar_saved_search_filter_button_get_type (void) G_GNUC_CONST; -static GType search_filter_toolbar_label_tool_item_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static GType search_filter_toolbar_toggle_action_tool_button_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define SEARCH_FILTER_TOOLBAR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_FILTER_TOOLBAR, SearchFilterToolbarPrivate)) -static void search_filter_toolbar_on_media_context_changed (SearchFilterToolbar* self, - gboolean has_photos, - gboolean has_videos, - gboolean has_raw, - gboolean has_flagged); -static void _search_filter_toolbar_on_media_context_changed_search_filter_actions_media_context_changed (SearchFilterActions* _sender, - gboolean has_photos, - gboolean has_videos, - gboolean has_raw, - gboolean has_flagged, - gpointer self); -static void search_filter_toolbar_on_flagged_toggled (SearchFilterToolbar* self); -static void _search_filter_toolbar_on_flagged_toggled_search_filter_actions_flagged_toggled (SearchFilterActions* _sender, - gboolean on, - gpointer self); -static void search_filter_toolbar_on_photos_toggled (SearchFilterToolbar* self); -static void _search_filter_toolbar_on_photos_toggled_search_filter_actions_photos_toggled (SearchFilterActions* _sender, - gboolean on, - gpointer self); -static void search_filter_toolbar_on_videos_toggled (SearchFilterToolbar* self); -static void _search_filter_toolbar_on_videos_toggled_search_filter_actions_videos_toggled (SearchFilterActions* _sender, - gboolean on, - gpointer self); -static void search_filter_toolbar_on_raw_toggled (SearchFilterToolbar* self); -static void _search_filter_toolbar_on_raw_toggled_search_filter_actions_raw_toggled (SearchFilterActions* _sender, - gboolean on, - gpointer self); -static void search_filter_toolbar_on_rating_changed (SearchFilterToolbar* self); -static void _search_filter_toolbar_on_rating_changed_search_filter_actions_rating_changed (SearchFilterActions* _sender, - RatingFilter filter, - gpointer self); -static void search_filter_toolbar_on_search_text_changed (SearchFilterToolbar* self); -static void _search_filter_toolbar_on_search_text_changed_search_filter_actions_text_changed (SearchFilterActions* _sender, - const gchar* text, - gpointer self); -static void search_filter_toolbar_on_criteria_changed (SearchFilterToolbar* self); -static void _search_filter_toolbar_on_criteria_changed_search_filter_actions_criteria_changed (SearchFilterActions* _sender, - gpointer self); -static gboolean search_filter_toolbar_on_context_menu_requested (SearchFilterToolbar* self, - gint x, - gint y, - gint button); -static gboolean _search_filter_toolbar_on_context_menu_requested_gtk_toolbar_popup_context_menu (GtkToolbar* _sender, - gint x, - gint y, - gint button_number, - gpointer self); -SearchFilterToolbarSavedSearchFilterButton* search_filter_toolbar_saved_search_filter_button_new (void); -SearchFilterToolbarSavedSearchFilterButton* search_filter_toolbar_saved_search_filter_button_construct (GType object_type); -#define SEARCH_FILTER_TOOLBAR_FILTER_BUTTON_MARGIN 12 -#define SEARCH_FILTER_TOOLBAR_FILTER_ICON_STAR_SCALE 0.65f -#define SEARCH_FILTER_TOOLBAR_FILTER_ICON_SCALE 0.75f -#define SEARCH_FILTER_TOOLBAR_FILTER_ICON_BASE_WIDTH 30 -#define SEARCH_FILTER_TOOLBAR_FILTER_ICON_PLUS_WIDTH 20 -SearchFilterToolbar* search_filter_toolbar_new (SearchFilterActions* actions); -SearchFilterToolbar* search_filter_toolbar_construct (GType object_type, - SearchFilterActions* actions); -SearchFilterToolbarSearchBox* search_filter_toolbar_search_box_new (TextAction* action); -SearchFilterToolbarSearchBox* search_filter_toolbar_search_box_construct (GType object_type, - TextAction* action); -gchar* resources_get_ui (const gchar* filename); -void app_window_panic (const gchar* msg); -static void search_filter_toolbar_on_context_menu_close_chosen (SearchFilterToolbar* self); -static void _search_filter_toolbar_on_context_menu_close_chosen_gtk_menu_item_activate (GtkMenuItem* _sender, - gpointer self); -static SearchFilterToolbarLabelToolItem* search_filter_toolbar_label_tool_item_new (const gchar* s, - gint left_padding, - gint right_padding); -static SearchFilterToolbarLabelToolItem* search_filter_toolbar_label_tool_item_construct (GType object_type, - const gchar* s, - gint left_padding, - gint right_padding); -static SearchFilterToolbarToggleActionToolButton* search_filter_toolbar_toggle_action_tool_button_new (const gchar* action); -static SearchFilterToolbarToggleActionToolButton* search_filter_toolbar_toggle_action_tool_button_construct (GType object_type, - const gchar* action); -static void search_filter_toolbar_toggle_action_tool_button_set_label (SearchFilterToolbarToggleActionToolButton* self, - const gchar* label); -SearchFilterToolbarRatingFilterButton* search_filter_toolbar_rating_filter_button_new (GMenuModel* model); -SearchFilterToolbarRatingFilterButton* search_filter_toolbar_rating_filter_button_construct (GType object_type, - GMenuModel* model); -void search_filter_toolbar_rating_filter_button_set_label (SearchFilterToolbarRatingFilterButton* self, - const gchar* label); -void search_filter_toolbar_saved_search_filter_button_set_label (SearchFilterToolbarSavedSearchFilterButton* self, - const gchar* label); -static void search_filter_toolbar_on_saved_search_button_clicked (SearchFilterToolbar* self); -static void _search_filter_toolbar_on_saved_search_button_clicked_search_filter_toolbar_saved_search_filter_button_clicked (SearchFilterToolbarSavedSearchFilterButton* _sender, - gpointer self); -static void search_filter_toolbar_toggle_action_tool_button_set_icon_name (SearchFilterToolbarToggleActionToolButton* self, - const gchar* icon_name); -#define RESOURCES_ICON_FILTER_PHOTOS "filter-photos" -#define RESOURCES_ICON_FILTER_PHOTOS_DISABLED "filter-photos-disabled" -#define RESOURCES_ICON_FILTER_VIDEOS "filter-videos" -#define RESOURCES_ICON_FILTER_VIDEOS_DISABLED "filter-videos-disabled" -#define RESOURCES_ICON_FILTER_RAW "filter-raw" -#define RESOURCES_ICON_FILTER_RAW_DISABLED "filter-raw-disabled" -#define RESOURCES_ICON_FILTER_FLAGGED "filter-flagged" -#define RESOURCES_ICON_FILTER_FLAGGED_DISABLED "filter-flagged-disabled" -LibraryWindow* library_window_get_app (void); -static GVariant* _variant_new39 (gboolean value); -void search_filter_toolbar_update (SearchFilterToolbar* self); -static GVariant* _variant_new40 (gboolean value); -void search_filter_toolbar_set_view_filter (SearchFilterToolbar* self, - SearchViewFilter* search_filter); -void search_filter_toolbar_unset_view_filter (SearchFilterToolbar* self); -void library_window_show_search_bar (LibraryWindow* self, - gboolean display); -void search_filter_toolbar_rating_filter_button_set_filter_icon (SearchFilterToolbarRatingFilterButton* self, - RatingFilter filter); -static void search_filter_toolbar_on_savedsearch_selected (SearchFilterToolbar* self, - SavedSearch* saved_search); -static void search_filter_toolbar_disable_savedsearch (SearchFilterToolbar* self); -static void search_filter_toolbar_edit_dialog (SearchFilterToolbar* self, - SavedSearch* search); -gpointer search_filter_toolbar_saved_search_popover_ref (gpointer instance); -void search_filter_toolbar_saved_search_popover_unref (gpointer instance); -GParamSpec* search_filter_toolbar_param_spec_saved_search_popover (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void search_filter_toolbar_value_set_saved_search_popover (GValue* value, - gpointer v_object); -void search_filter_toolbar_value_take_saved_search_popover (GValue* value, - gpointer v_object); -gpointer search_filter_toolbar_value_get_saved_search_popover (const GValue* value); -GType search_filter_toolbar_saved_search_popover_get_type (void) G_GNUC_CONST; -void search_filter_toolbar_saved_search_popover_hide (SearchFilterToolbarSavedSearchPopover* self); -GType saved_search_dialog_get_type (void) G_GNUC_CONST; -SavedSearchDialog* saved_search_dialog_new_edit_existing (SavedSearch* saved_search); -SavedSearchDialog* saved_search_dialog_construct_edit_existing (GType object_type, - SavedSearch* saved_search); -void saved_search_dialog_show (SavedSearchDialog* self); -static void search_filter_toolbar_delete_dialog (SearchFilterToolbar* self, - SavedSearch* search); -gboolean dialogs_confirm_delete_saved_search (SavedSearch* search); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* app_window_get_command_manager (void); -GType command_get_type (void) G_GNUC_CONST; -void command_manager_execute (CommandManager* self, - Command* command); -DeleteSavedSearchCommand* delete_saved_search_command_new (SavedSearch* search); -DeleteSavedSearchCommand* delete_saved_search_command_construct (GType object_type, - SavedSearch* search); -GType page_command_get_type (void) G_GNUC_CONST; -GType single_data_source_command_get_type (void) G_GNUC_CONST; -GType delete_saved_search_command_get_type (void) G_GNUC_CONST; -static void search_filter_toolbar_add_dialog (SearchFilterToolbar* self); -SavedSearchDialog* saved_search_dialog_new (void); -SavedSearchDialog* saved_search_dialog_construct (GType object_type); -static void search_filter_toolbar_on_popover_closed (SearchFilterToolbar* self); -void search_filter_toolbar_saved_search_filter_button_set_active (SearchFilterToolbarSavedSearchFilterButton* self, - gboolean active); -static void _search_filter_toolbar_edit_dialog_search_filter_toolbar_saved_search_popover_edit_clicked (SearchFilterToolbarSavedSearchPopover* _sender, - SavedSearch* search, - gpointer self); -static void _search_filter_toolbar_on_savedsearch_selected_search_filter_toolbar_saved_search_popover_search_activated (SearchFilterToolbarSavedSearchPopover* _sender, - SavedSearch* search, - gpointer self); -static void _search_filter_toolbar_delete_dialog_search_filter_toolbar_saved_search_popover_delete_clicked (SearchFilterToolbarSavedSearchPopover* _sender, - SavedSearch* search, - gpointer self); -static void _search_filter_toolbar_add_dialog_search_filter_toolbar_saved_search_popover_add_clicked (SearchFilterToolbarSavedSearchPopover* _sender, - gpointer self); -static void _search_filter_toolbar_on_popover_closed_search_filter_toolbar_saved_search_popover_closed (SearchFilterToolbarSavedSearchPopover* _sender, - gpointer self); -SearchFilterToolbarSavedSearchPopover* search_filter_toolbar_saved_search_popover_new (GtkWidget* relative_to); -SearchFilterToolbarSavedSearchPopover* search_filter_toolbar_saved_search_popover_construct (GType object_type, - GtkWidget* relative_to); -void search_filter_toolbar_saved_search_popover_show_all (SearchFilterToolbarSavedSearchPopover* self); -void search_filter_toolbar_take_focus (SearchFilterToolbar* self); -void search_filter_toolbar_search_box_get_focus (SearchFilterToolbarSearchBox* self); -#define SEARCH_FILTER_TOOLBAR_LABEL_TOOL_ITEM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM, SearchFilterToolbarLabelToolItemPrivate)) -static void search_filter_toolbar_label_tool_item_finalize (GObject * obj); -#define SEARCH_FILTER_TOOLBAR_TOGGLE_ACTION_TOOL_BUTTON_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON, SearchFilterToolbarToggleActionToolButtonPrivate)) -static void search_filter_toolbar_toggle_action_tool_button_finalize (GObject * obj); -#define SEARCH_FILTER_TOOLBAR_SEARCH_BOX_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX, SearchFilterToolbarSearchBoxPrivate)) -static void search_filter_toolbar_search_box_on_action_text_changed (SearchFilterToolbarSearchBox* self, - const gchar* text); -static void _search_filter_toolbar_search_box_on_action_text_changed_text_action_text_changed (TextAction* _sender, - const gchar* text, - gpointer self); -static void search_filter_toolbar_search_box_on_sensitivity_changed (SearchFilterToolbarSearchBox* self, - gboolean sensitive); -static void _search_filter_toolbar_search_box_on_sensitivity_changed_text_action_sensitivity_changed (TextAction* _sender, - gboolean sensitive, - gpointer self); -static void search_filter_toolbar_search_box_on_visibility_changed (SearchFilterToolbarSearchBox* self, - gboolean visible); -static void _search_filter_toolbar_search_box_on_visibility_changed_text_action_visibility_changed (TextAction* _sender, - gboolean visible, - gpointer self); -static void search_filter_toolbar_search_box_on_entry_changed (SearchFilterToolbarSearchBox* self); -static void _search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_deleted_text (GtkEntryBuffer* _sender, - guint position, - guint n_chars, - gpointer self); -static void _search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_inserted_text (GtkEntryBuffer* _sender, - guint position, - const gchar* chars, - guint n_chars, - gpointer self); -static gboolean search_filter_toolbar_search_box_on_escape_key (SearchFilterToolbarSearchBox* self, - GdkEventKey* e); -static gboolean _search_filter_toolbar_search_box_on_escape_key_gtk_widget_key_press_event (GtkWidget* _sender, - GdkEventKey* event, - gpointer self); -static void search_filter_toolbar_search_box_set_nullable_text (SearchFilterToolbarSearchBox* self, - const gchar* text); -static void search_filter_toolbar_search_box_finalize (GObject * obj); -static GtkWidget* search_filter_toolbar_rating_filter_button_get_filter_icon (SearchFilterToolbarRatingFilterButton* self, - RatingFilter filter); -#define RESOURCES_ICON_FILTER_REJECTED_OR_BETTER "all-rejected.png" -#define RESOURCES_ICON_RATING_REJECTED "rejected.svg" -#define RESOURCES_ICON_FILTER_UNRATED_OR_BETTER "shotwell-16.png" -GdkPixbuf* resources_load_icon (const gchar* name, - gint scale); -static gint search_filter_toolbar_rating_filter_button_get_filter_icon_size (SearchFilterToolbarRatingFilterButton* self, - RatingFilter filter); -#define RESOURCES_ICON_FILTER_REJECTED_OR_BETTER_FIXED_SIZE 32 -#define RESOURCES_ICON_FILTER_UNRATED_OR_BETTER_FIXED_SIZE 16 -static gint search_filter_toolbar_rating_filter_button_get_filter_button_size (SearchFilterToolbarRatingFilterButton* self, - RatingFilter filter); -gchar* resources_get_rating_filter_tooltip (RatingFilter filter); -static void search_filter_toolbar_rating_filter_button_finalize (GObject * obj); -static void search_filter_toolbar_saved_search_filter_button_on_clicked (SearchFilterToolbarSavedSearchFilterButton* self); -static void _search_filter_toolbar_saved_search_filter_button_on_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -void search_filter_toolbar_saved_search_filter_button_restyle (SearchFilterToolbarSavedSearchFilterButton* self); -static void search_filter_toolbar_saved_search_filter_button_finalize (GObject * obj); -static GType search_filter_toolbar_saved_search_popover_data_button_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, SearchFilterToolbarSavedSearchPopoverPrivate)) -static void search_filter_toolbar_saved_search_popover_on_edit_click (SearchFilterToolbarSavedSearchPopover* self, - SavedSearch* search); -static void _search_filter_toolbar_saved_search_popover_on_edit_click_search_filter_toolbar_saved_search_popover_data_button_clicked (SearchFilterToolbarSavedSearchPopoverDataButton* _sender, - SavedSearch* search, - gpointer self); -static void search_filter_toolbar_saved_search_popover_on_delete_click (SearchFilterToolbarSavedSearchPopover* self, - SavedSearch* search); -static void _search_filter_toolbar_saved_search_popover_on_delete_click_search_filter_toolbar_saved_search_popover_data_button_clicked (SearchFilterToolbarSavedSearchPopoverDataButton* _sender, - SavedSearch* search, - gpointer self); -static void search_filter_toolbar_saved_search_popover_on_add_click (SearchFilterToolbarSavedSearchPopover* self); -static void _search_filter_toolbar_saved_search_popover_on_add_click_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void search_filter_toolbar_saved_search_popover_on_activate_row (SearchFilterToolbarSavedSearchPopover* self, - GtkListBoxRow* row); -static void _search_filter_toolbar_saved_search_popover_on_activate_row_gtk_list_box_row_activated (GtkListBox* _sender, - GtkListBoxRow* row, - gpointer self); -static void search_filter_toolbar_saved_search_popover_on_popover_closed (SearchFilterToolbarSavedSearchPopover* self); -static void _search_filter_toolbar_saved_search_popover_on_popover_closed_gtk_popover_closed (GtkPopover* _sender, - gpointer self); -gpointer saved_search_table_ref (gpointer instance); -void saved_search_table_unref (gpointer instance); -GParamSpec* param_spec_saved_search_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_saved_search_table (GValue* value, - gpointer v_object); -void value_take_saved_search_table (GValue* value, - gpointer v_object); -gpointer value_get_saved_search_table (const GValue* value); -GType saved_search_table_get_type (void) G_GNUC_CONST; -SavedSearchTable* saved_search_table_get_instance (void); -GeeCollection* saved_search_table_get_all (SavedSearchTable* self); -gchar* data_object_get_name (DataObject* self); -static SearchFilterToolbarSavedSearchPopoverDataButton* search_filter_toolbar_saved_search_popover_data_button_new (SavedSearch* search, - const gchar* name); -static SearchFilterToolbarSavedSearchPopoverDataButton* search_filter_toolbar_saved_search_popover_data_button_construct (GType object_type, - SavedSearch* search, - const gchar* name); -static void _vala_array_add133 (SearchFilterToolbarSavedSearchPopoverDataButton** * array, - int* length, - int* size, - SearchFilterToolbarSavedSearchPopoverDataButton* value); -static void _vala_array_add134 (SearchFilterToolbarSavedSearchPopoverDataButton** * array, - int* length, - int* size, - SearchFilterToolbarSavedSearchPopoverDataButton* value); -void search_filter_toolbar_saved_search_popover_restyle (SearchFilterToolbarSavedSearchPopover* self); -static void search_filter_toolbar_saved_search_popover_data_button_restyle (SearchFilterToolbarSavedSearchPopoverDataButton* self); -static gboolean search_filter_toolbar_saved_search_popover_is_search_row (SearchFilterToolbarSavedSearchPopover* self, - GtkListBoxRow* row); -static SavedSearch* search_filter_toolbar_saved_search_popover_get_search (SearchFilterToolbarSavedSearchPopover* self, - GtkListBoxRow* row); -static SavedSearch* search_filter_toolbar_saved_search_popover_data_button_get_search (SearchFilterToolbarSavedSearchPopoverDataButton* self); -#define SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, SearchFilterToolbarSavedSearchPopoverDataButtonPrivate)) -static void search_filter_toolbar_saved_search_popover_data_button_on_click (SearchFilterToolbarSavedSearchPopoverDataButton* self); -static void _search_filter_toolbar_saved_search_popover_data_button_on_click_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void search_filter_toolbar_saved_search_popover_data_button_set_search (SearchFilterToolbarSavedSearchPopoverDataButton* self, - SavedSearch* value); -static void search_filter_toolbar_saved_search_popover_data_button_finalize (GObject * obj); -static void _vala_search_filter_toolbar_saved_search_popover_data_button_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_search_filter_toolbar_saved_search_popover_data_button_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -static void search_filter_toolbar_saved_search_popover_finalize (SearchFilterToolbarSavedSearchPopover * obj); -static void search_filter_toolbar_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - -static const GActionEntry SEARCH_FILTER_ACTIONS_entries[5] = {{"display.rating", _search_filter_actions_on_action_radio_gsimple_action_activate_callback, "s", "'2'", _search_filter_actions_on_rating_changed_gsimple_action_change_state_callback}, {"display.flagged", _search_filter_actions_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _search_filter_actions_on_flagged_toggled_gsimple_action_change_state_callback}, {"display.photos", _search_filter_actions_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _search_filter_actions_on_photos_toggled_gsimple_action_change_state_callback}, {"display.videos", _search_filter_actions_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _search_filter_actions_on_videos_toggled_gsimple_action_change_state_callback}, {"display.raw", _search_filter_actions_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _search_filter_actions_on_raw_toggled_gsimple_action_change_state_callback}}; - -GType -search_filter_criteria_get_type (void) -{ - static volatile gsize search_filter_criteria_type_id__volatile = 0; - if (g_once_init_enter (&search_filter_criteria_type_id__volatile)) { - static const GFlagsValue values[] = {{SEARCH_FILTER_CRITERIA_NONE, "SEARCH_FILTER_CRITERIA_NONE", "none"}, {SEARCH_FILTER_CRITERIA_RECURSIVE, "SEARCH_FILTER_CRITERIA_RECURSIVE", "recursive"}, {SEARCH_FILTER_CRITERIA_TEXT, "SEARCH_FILTER_CRITERIA_TEXT", "text"}, {SEARCH_FILTER_CRITERIA_FLAG, "SEARCH_FILTER_CRITERIA_FLAG", "flag"}, {SEARCH_FILTER_CRITERIA_MEDIA, "SEARCH_FILTER_CRITERIA_MEDIA", "media"}, {SEARCH_FILTER_CRITERIA_RATING, "SEARCH_FILTER_CRITERIA_RATING", "rating"}, {SEARCH_FILTER_CRITERIA_SAVEDSEARCH, "SEARCH_FILTER_CRITERIA_SAVEDSEARCH", "savedsearch"}, {SEARCH_FILTER_CRITERIA_ALL, "SEARCH_FILTER_CRITERIA_ALL", "all"}, {0, NULL, NULL}}; - GType search_filter_criteria_type_id; - search_filter_criteria_type_id = g_flags_register_static ("SearchFilterCriteria", values); - g_once_init_leave (&search_filter_criteria_type_id__volatile, search_filter_criteria_type_id); - } - return search_filter_criteria_type_id__volatile; -} - - -GType -rating_filter_get_type (void) -{ - static volatile gsize rating_filter_type_id__volatile = 0; - if (g_once_init_enter (&rating_filter_type_id__volatile)) { - static const GEnumValue values[] = {{RATING_FILTER_NO_FILTER, "RATING_FILTER_NO_FILTER", "no-filter"}, {RATING_FILTER_REJECTED_OR_HIGHER, "RATING_FILTER_REJECTED_OR_HIGHER", "rejected-or-higher"}, {RATING_FILTER_UNRATED_OR_HIGHER, "RATING_FILTER_UNRATED_OR_HIGHER", "unrated-or-higher"}, {RATING_FILTER_ONE_OR_HIGHER, "RATING_FILTER_ONE_OR_HIGHER", "one-or-higher"}, {RATING_FILTER_TWO_OR_HIGHER, "RATING_FILTER_TWO_OR_HIGHER", "two-or-higher"}, {RATING_FILTER_THREE_OR_HIGHER, "RATING_FILTER_THREE_OR_HIGHER", "three-or-higher"}, {RATING_FILTER_FOUR_OR_HIGHER, "RATING_FILTER_FOUR_OR_HIGHER", "four-or-higher"}, {RATING_FILTER_FIVE_OR_HIGHER, "RATING_FILTER_FIVE_OR_HIGHER", "five-or-higher"}, {RATING_FILTER_REJECTED_ONLY, "RATING_FILTER_REJECTED_ONLY", "rejected-only"}, {RATING_FILTER_UNRATED_ONLY, "RATING_FILTER_UNRATED_ONLY", "unrated-only"}, {RATING_FILTER_ONE_ONLY, "RATING_FILTER_ONE_ONLY", "one-only"}, {RATING_FILTER_TWO_ONLY, "RATING_FILTER_TWO_ONLY", "two-only"}, {RATING_FILTER_THREE_ONLY, "RATING_FILTER_THREE_ONLY", "three-only"}, {RATING_FILTER_FOUR_ONLY, "RATING_FILTER_FOUR_ONLY", "four-only"}, {RATING_FILTER_FIVE_ONLY, "RATING_FILTER_FIVE_ONLY", "five-only"}, {0, NULL, NULL}}; - GType rating_filter_type_id; - rating_filter_type_id = g_enum_register_static ("RatingFilter", values); - g_once_init_leave (&rating_filter_type_id__volatile, rating_filter_type_id); - } - return rating_filter_type_id__volatile; -} - - -static guint -search_view_filter_real_get_criteria (SearchViewFilter* self) -{ - guint _tmp0_ = 0U; -#line 65 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_critical ("Type `%s' does not implement abstract method `search_view_filter_get_criteria'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 65 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return _tmp0_; -#line 1751 "SearchFilter.c" -} - - -guint -search_view_filter_get_criteria (SearchViewFilter* self) -{ -#line 65 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), 0U); -#line 65 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return SEARCH_VIEW_FILTER_GET_CLASS (self)->get_criteria (self); -#line 1762 "SearchFilter.c" -} - - -void -search_view_filter_set_rating_filter (SearchViewFilter* self, - RatingFilter rf) -{ - RatingFilter _tmp0_; -#line 67 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_VIEW_FILTER (self)); -#line 68 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating_filter = rf; -#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->rating_filter; -#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala" - switch (_tmp0_) { -#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_REJECTED_ONLY: -#line 1781 "SearchFilter.c" - { -#line 71 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating = RATING_REJECTED; -#line 72 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating_allow_higher = FALSE; -#line 73 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 1789 "SearchFilter.c" - } -#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_REJECTED_OR_HIGHER: -#line 1793 "SearchFilter.c" - { -#line 76 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating = RATING_REJECTED; -#line 77 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating_allow_higher = TRUE; -#line 78 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 1801 "SearchFilter.c" - } -#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_ONE_OR_HIGHER: -#line 1805 "SearchFilter.c" - { -#line 81 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating = RATING_ONE; -#line 82 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating_allow_higher = TRUE; -#line 83 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 1813 "SearchFilter.c" - } -#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_ONE_ONLY: -#line 1817 "SearchFilter.c" - { -#line 86 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating = RATING_ONE; -#line 87 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating_allow_higher = FALSE; -#line 88 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 1825 "SearchFilter.c" - } -#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_TWO_OR_HIGHER: -#line 1829 "SearchFilter.c" - { -#line 91 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating = RATING_TWO; -#line 92 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating_allow_higher = TRUE; -#line 93 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 1837 "SearchFilter.c" - } -#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_TWO_ONLY: -#line 1841 "SearchFilter.c" - { -#line 96 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating = RATING_TWO; -#line 97 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating_allow_higher = FALSE; -#line 98 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 1849 "SearchFilter.c" - } -#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_THREE_OR_HIGHER: -#line 1853 "SearchFilter.c" - { -#line 101 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating = RATING_THREE; -#line 102 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating_allow_higher = TRUE; -#line 103 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 1861 "SearchFilter.c" - } -#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_THREE_ONLY: -#line 1865 "SearchFilter.c" - { -#line 106 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating = RATING_THREE; -#line 107 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating_allow_higher = FALSE; -#line 108 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 1873 "SearchFilter.c" - } -#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_FOUR_OR_HIGHER: -#line 1877 "SearchFilter.c" - { -#line 111 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating = RATING_FOUR; -#line 112 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating_allow_higher = TRUE; -#line 113 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 1885 "SearchFilter.c" - } -#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_FOUR_ONLY: -#line 1889 "SearchFilter.c" - { -#line 116 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating = RATING_FOUR; -#line 117 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating_allow_higher = FALSE; -#line 118 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 1897 "SearchFilter.c" - } -#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_FIVE_OR_HIGHER: -#line 1901 "SearchFilter.c" - { -#line 121 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating = RATING_FIVE; -#line 122 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating_allow_higher = TRUE; -#line 123 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 1909 "SearchFilter.c" - } -#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_FIVE_ONLY: -#line 1913 "SearchFilter.c" - { -#line 126 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating = RATING_FIVE; -#line 127 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating_allow_higher = FALSE; -#line 128 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 1921 "SearchFilter.c" - } - default: -#line 69 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_UNRATED_OR_HIGHER: -#line 1926 "SearchFilter.c" - { -#line 132 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating = RATING_UNRATED; -#line 133 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating_allow_higher = TRUE; -#line 134 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 1934 "SearchFilter.c" - } - } -} - - -gboolean -search_view_filter_has_search_filter (SearchViewFilter* self) -{ - gboolean result = FALSE; - const gchar* _tmp0_; -#line 138 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), FALSE); -#line 139 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->search_filter; -#line 139 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = !is_string_empty (_tmp0_); -#line 139 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 1953 "SearchFilter.c" -} - - -const gchar* -search_view_filter_get_search_filter (SearchViewFilter* self) -{ - const gchar* result = NULL; - const gchar* _tmp0_; -#line 142 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), NULL); -#line 143 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->search_filter; -#line 143 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 143 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 1970 "SearchFilter.c" -} - - -gchar** -search_view_filter_get_search_filter_words (SearchViewFilter* self, - int* result_length1) -{ - gchar** result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - gchar** _tmp1_; - gint _tmp1__length1; -#line 146 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), NULL); -#line 147 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->search_filter_words; -#line 147 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0__length1 = self->priv->search_filter_words_length1; -#line 147 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = _tmp0_; -#line 147 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1__length1 = _tmp0__length1; -#line 147 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (result_length1) { -#line 147 "/home/jens/Source/shotwell/src/SearchFilter.vala" - *result_length1 = _tmp1__length1; -#line 1997 "SearchFilter.c" - } -#line 147 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp1_; -#line 147 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 2003 "SearchFilter.c" -} - - -static gchar** -_vala_array_dup27 (gchar** self, - int length) -{ - gchar** result; - int i; -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = g_new0 (gchar*, length + 1); -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - for (i = 0; i < length; i++) { -#line 2017 "SearchFilter.c" - gchar* _tmp0_; -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = g_strdup (self[i]); -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result[i] = _tmp0_; -#line 2023 "SearchFilter.c" - } -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 2027 "SearchFilter.c" -} - - -void -search_view_filter_set_search_filter (SearchViewFilter* self, - const gchar* text) -{ - gchar* _tmp0_ = NULL; - gchar* _tmp2_; - gchar** _tmp3_ = NULL; - gint _tmp3__length1 = 0; - gint __tmp3__size_ = 0; - const gchar* _tmp4_; - gchar** _tmp8_; - gint _tmp8__length1; -#line 150 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_VIEW_FILTER (self)); -#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (!is_string_empty (text)) { -#line 2047 "SearchFilter.c" - gchar* _tmp1_; -#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = g_utf8_strdown (text, (gssize) -1); -#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (_tmp0_); -#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = _tmp1_; -#line 2055 "SearchFilter.c" - } else { -#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (_tmp0_); -#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = NULL; -#line 2061 "SearchFilter.c" - } -#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = g_strdup (_tmp0_); -#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (self->priv->search_filter); -#line 151 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->search_filter = _tmp2_; -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = self->priv->search_filter; -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp4_ != NULL) { -#line 2073 "SearchFilter.c" - const gchar* _tmp5_; - gchar** _tmp6_; - gchar** _tmp7_; -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = self->priv->search_filter; -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = _tmp6_ = g_strsplit (_tmp5_, " ", 0); -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) g_free), NULL); -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = _tmp7_; -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3__length1 = _vala_array_length (_tmp6_); -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - __tmp3__size_ = _tmp3__length1; -#line 2089 "SearchFilter.c" - } else { -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) g_free), NULL); -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = NULL; -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3__length1 = 0; -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - __tmp3__size_ = _tmp3__length1; -#line 2099 "SearchFilter.c" - } -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = (_tmp3_ != NULL) ? _vala_array_dup27 (_tmp3_, _tmp3__length1) : ((gpointer) _tmp3_); -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8__length1 = _tmp3__length1; -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->search_filter_words = (_vala_array_free (self->priv->search_filter_words, self->priv->search_filter_words_length1, (GDestroyNotify) g_free), NULL); -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->search_filter_words = _tmp8_; -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->search_filter_words_length1 = _tmp8__length1; -#line 152 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_search_filter_words_size_ = self->priv->search_filter_words_length1; -#line 150 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) g_free), NULL); -#line 150 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (_tmp0_); -#line 2117 "SearchFilter.c" -} - - -void -search_view_filter_clear_search_filter (SearchViewFilter* self) -{ -#line 155 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_VIEW_FILTER (self)); -#line 156 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (self->priv->search_filter); -#line 156 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->search_filter = NULL; -#line 157 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->search_filter_words = (_vala_array_free (self->priv->search_filter_words, self->priv->search_filter_words_length1, (GDestroyNotify) g_free), NULL); -#line 157 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->search_filter_words = NULL; -#line 157 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->search_filter_words_length1 = 0; -#line 157 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_search_filter_words_size_ = self->priv->search_filter_words_length1; -#line 2138 "SearchFilter.c" -} - - -gboolean -search_view_filter_has_saved_search (SearchViewFilter* self) -{ - gboolean result = FALSE; - SavedSearch* _tmp0_; -#line 160 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), FALSE); -#line 161 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->_saved_search; -#line 161 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_ != NULL; -#line 161 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 2155 "SearchFilter.c" -} - - -gboolean -search_view_filter_get_rating_allow_higher (SearchViewFilter* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 164 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), FALSE); -#line 165 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->rating_allow_higher; -#line 165 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 165 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 2172 "SearchFilter.c" -} - - -Rating -search_view_filter_get_rating (SearchViewFilter* self) -{ - Rating result = 0; - Rating _tmp0_; -#line 168 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), 0); -#line 169 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->rating; -#line 169 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 169 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 2189 "SearchFilter.c" -} - - -gboolean -search_view_filter_filter_by_media_type (SearchViewFilter* self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - gboolean _tmp3_; -#line 172 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), FALSE); -#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = self->priv->_show_media_video; -#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp3_) { -#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = TRUE; -#line 2209 "SearchFilter.c" - } else { - gboolean _tmp4_; -#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = self->priv->_show_media_photos; -#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = _tmp4_; -#line 2216 "SearchFilter.c" - } -#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp2_) { -#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = TRUE; -#line 2222 "SearchFilter.c" - } else { - gboolean _tmp5_; -#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = self->priv->_show_media_raw; -#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = _tmp5_; -#line 2229 "SearchFilter.c" - } -#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp1_) { -#line 2233 "SearchFilter.c" - gboolean _tmp6_ = FALSE; - gboolean _tmp7_ = FALSE; - gboolean _tmp8_; -#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = self->priv->_show_media_video; -#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp8_) { -#line 2241 "SearchFilter.c" - gboolean _tmp9_; -#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp9_ = self->priv->_show_media_photos; -#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = _tmp9_; -#line 2247 "SearchFilter.c" - } else { -#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = FALSE; -#line 2251 "SearchFilter.c" - } -#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp7_) { -#line 2255 "SearchFilter.c" - gboolean _tmp10_; -#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp10_ = self->priv->_show_media_raw; -#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = _tmp10_; -#line 2261 "SearchFilter.c" - } else { -#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = FALSE; -#line 2265 "SearchFilter.c" - } -#line 174 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = !_tmp6_; -#line 2269 "SearchFilter.c" - } else { -#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = FALSE; -#line 2273 "SearchFilter.c" - } -#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 173 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 2279 "SearchFilter.c" -} - - -SearchViewFilter* -search_view_filter_construct (GType object_type) -{ - SearchViewFilter* self = NULL; -#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = (SearchViewFilter*) view_filter_construct (object_type); -#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self; -#line 2291 "SearchFilter.c" -} - - -gboolean -search_view_filter_get_flagged (SearchViewFilter* self) -{ - gboolean result; - gboolean _tmp0_; -#line 48 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), FALSE); -#line 48 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->_flagged; -#line 48 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 48 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 2308 "SearchFilter.c" -} - - -void -search_view_filter_set_flagged (SearchViewFilter* self, - gboolean value) -{ -#line 48 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_VIEW_FILTER (self)); -#line 48 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_flagged = value; -#line 2320 "SearchFilter.c" -} - - -gboolean -search_view_filter_get_show_media_video (SearchViewFilter* self) -{ - gboolean result; - gboolean _tmp0_; -#line 51 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), FALSE); -#line 51 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->_show_media_video; -#line 51 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 51 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 2337 "SearchFilter.c" -} - - -void -search_view_filter_set_show_media_video (SearchViewFilter* self, - gboolean value) -{ -#line 51 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_VIEW_FILTER (self)); -#line 51 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_show_media_video = value; -#line 2349 "SearchFilter.c" -} - - -gboolean -search_view_filter_get_show_media_photos (SearchViewFilter* self) -{ - gboolean result; - gboolean _tmp0_; -#line 52 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), FALSE); -#line 52 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->_show_media_photos; -#line 52 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 52 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 2366 "SearchFilter.c" -} - - -void -search_view_filter_set_show_media_photos (SearchViewFilter* self, - gboolean value) -{ -#line 52 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_VIEW_FILTER (self)); -#line 52 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_show_media_photos = value; -#line 2378 "SearchFilter.c" -} - - -gboolean -search_view_filter_get_show_media_raw (SearchViewFilter* self) -{ - gboolean result; - gboolean _tmp0_; -#line 53 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), FALSE); -#line 53 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->_show_media_raw; -#line 53 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 53 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 2395 "SearchFilter.c" -} - - -void -search_view_filter_set_show_media_raw (SearchViewFilter* self, - gboolean value) -{ -#line 53 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_VIEW_FILTER (self)); -#line 53 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_show_media_raw = value; -#line 2407 "SearchFilter.c" -} - - -SavedSearch* -search_view_filter_get_saved_search (SearchViewFilter* self) -{ - SavedSearch* result; - SavedSearch* _tmp0_; -#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_VIEW_FILTER (self), NULL); -#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->_saved_search; -#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 2424 "SearchFilter.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self ? g_object_ref (self) : NULL; -#line 2433 "SearchFilter.c" -} - - -void -search_view_filter_set_saved_search (SearchViewFilter* self, - SavedSearch* value) -{ - SavedSearch* _tmp0_; -#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_VIEW_FILTER (self)); -#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = _g_object_ref0 (value); -#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->_saved_search); -#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_saved_search = _tmp0_; -#line 2450 "SearchFilter.c" -} - - -static void -search_view_filter_class_init (SearchViewFilterClass * klass) -{ -#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_view_filter_parent_class = g_type_class_peek_parent (klass); -#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala" - ((ViewFilterClass *) klass)->finalize = search_view_filter_finalize; -#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_type_class_add_private (klass, sizeof (SearchViewFilterPrivate)); -#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala" - ((SearchViewFilterClass *) klass)->get_criteria = (guint (*) (SearchViewFilter *)) search_view_filter_real_get_criteria; -#line 2465 "SearchFilter.c" -} - - -static void -search_view_filter_instance_init (SearchViewFilter * self) -{ -#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv = SEARCH_VIEW_FILTER_GET_PRIVATE (self); -#line 41 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating_allow_higher = TRUE; -#line 44 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating = RATING_UNRATED; -#line 45 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating_filter = RATING_FILTER_UNRATED_OR_HIGHER; -#line 48 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_flagged = FALSE; -#line 51 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_show_media_video = TRUE; -#line 52 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_show_media_photos = TRUE; -#line 53 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_show_media_raw = TRUE; -#line 56 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->search_filter = NULL; -#line 57 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->search_filter_words = NULL; -#line 57 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->search_filter_words_length1 = 0; -#line 57 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_search_filter_words_size_ = self->priv->search_filter_words_length1; -#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_saved_search = NULL; -#line 2498 "SearchFilter.c" -} - - -static void -search_view_filter_finalize (ViewFilter * obj) -{ - SearchViewFilter * self; -#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter); -#line 56 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (self->priv->search_filter); -#line 57 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->search_filter_words = (_vala_array_free (self->priv->search_filter_words, self->priv->search_filter_words_length1, (GDestroyNotify) g_free), NULL); -#line 60 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->_saved_search); -#line 39 "/home/jens/Source/shotwell/src/SearchFilter.vala" - VIEW_FILTER_CLASS (search_view_filter_parent_class)->finalize (obj); -#line 2516 "SearchFilter.c" -} - - -GType -search_view_filter_get_type (void) -{ - static volatile gsize search_view_filter_type_id__volatile = 0; - if (g_once_init_enter (&search_view_filter_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchViewFilter), 0, (GInstanceInitFunc) search_view_filter_instance_init, NULL }; - GType search_view_filter_type_id; - search_view_filter_type_id = g_type_register_static (TYPE_VIEW_FILTER, "SearchViewFilter", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&search_view_filter_type_id__volatile, search_view_filter_type_id); - } - return search_view_filter_type_id__volatile; -} - - -static gboolean -string_contains (const gchar* self, - const gchar* needle) -{ - gboolean result = FALSE; - gchar* _tmp0_; -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, FALSE); -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, FALSE); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr ((gchar*) self, (gchar*) needle); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_ != NULL; -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2550 "SearchFilter.c" -} - - -static gboolean -default_search_view_filter_real_predicate (ViewFilter* base, - DataView* view) -{ - DefaultSearchViewFilter * self; - gboolean result = FALSE; - MediaSource* source = NULL; - MediaSource* _tmp0_; - guint criteria = 0U; - guint _tmp1_; - guint _tmp6_; - gboolean _tmp13_ = FALSE; - guint _tmp14_; - gboolean _tmp29_ = FALSE; - guint _tmp30_; - gboolean _tmp72_ = FALSE; - guint _tmp73_; -#line 181 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilter); -#line 181 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_DATA_VIEW (view), FALSE); -#line 182 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = thumbnail_get_media_source (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_THUMBNAIL, Thumbnail)); -#line 182 "/home/jens/Source/shotwell/src/SearchFilter.vala" - source = _tmp0_; -#line 183 "/home/jens/Source/shotwell/src/SearchFilter.vala" - criteria = search_view_filter_get_criteria (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 186 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = criteria; -#line 186 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if ((SEARCH_FILTER_CRITERIA_RATING & _tmp1_) != 0) { -#line 2585 "SearchFilter.c" - gboolean _tmp2_ = FALSE; -#line 187 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (search_view_filter_get_rating_allow_higher (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))) { -#line 2589 "SearchFilter.c" - MediaSource* _tmp3_; -#line 187 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = source; -#line 187 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = media_source_get_rating (_tmp3_) < search_view_filter_get_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 2595 "SearchFilter.c" - } else { -#line 187 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = FALSE; -#line 2599 "SearchFilter.c" - } -#line 187 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp2_) { -#line 188 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = FALSE; -#line 188 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (source); -#line 188 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 2609 "SearchFilter.c" - } else { - gboolean _tmp4_ = FALSE; -#line 189 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (!search_view_filter_get_rating_allow_higher (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter))) { -#line 2614 "SearchFilter.c" - MediaSource* _tmp5_; -#line 189 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = source; -#line 189 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = media_source_get_rating (_tmp5_) != search_view_filter_get_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 2620 "SearchFilter.c" - } else { -#line 189 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = FALSE; -#line 2624 "SearchFilter.c" - } -#line 189 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp4_) { -#line 190 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = FALSE; -#line 190 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (source); -#line 190 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 2634 "SearchFilter.c" - } - } - } -#line 194 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = criteria; -#line 194 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if ((SEARCH_FILTER_CRITERIA_FLAG & _tmp6_) != 0) { -#line 2642 "SearchFilter.c" - gboolean _tmp7_ = FALSE; - gboolean _tmp8_ = FALSE; - gboolean _tmp9_; - gboolean _tmp10_; -#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp9_ = search_view_filter_get_flagged (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp10_ = _tmp9_; -#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp10_) { -#line 2653 "SearchFilter.c" - MediaSource* _tmp11_; -#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp11_ = source; -#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_FLAGGABLE); -#line 2659 "SearchFilter.c" - } else { -#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = FALSE; -#line 2663 "SearchFilter.c" - } -#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp8_) { -#line 2667 "SearchFilter.c" - MediaSource* _tmp12_; -#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp12_ = source; -#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = !flaggable_is_flagged (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_FLAGGABLE, Flaggable)); -#line 2673 "SearchFilter.c" - } else { -#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = FALSE; -#line 2677 "SearchFilter.c" - } -#line 195 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp7_) { -#line 196 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = FALSE; -#line 196 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (source); -#line 196 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 2687 "SearchFilter.c" - } - } -#line 200 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp14_ = criteria; -#line 200 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if ((SEARCH_FILTER_CRITERIA_MEDIA & _tmp14_) != 0) { -#line 200 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp13_ = search_view_filter_filter_by_media_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 2696 "SearchFilter.c" - } else { -#line 200 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp13_ = FALSE; -#line 2700 "SearchFilter.c" - } -#line 200 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp13_) { -#line 2704 "SearchFilter.c" - MediaSource* _tmp15_; -#line 201 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp15_ = source; -#line 201 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, TYPE_VIDEO_SOURCE)) { -#line 2710 "SearchFilter.c" - gboolean _tmp16_; - gboolean _tmp17_; -#line 202 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp16_ = search_view_filter_get_show_media_video (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 202 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp17_ = _tmp16_; -#line 202 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (!_tmp17_) { -#line 203 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = FALSE; -#line 203 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (source); -#line 203 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 2725 "SearchFilter.c" - } - } else { - MediaSource* _tmp18_; -#line 204 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp18_ = source; -#line 204 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, TYPE_PHOTO)) { -#line 2733 "SearchFilter.c" - Photo* photo = NULL; - MediaSource* _tmp19_; - Photo* _tmp20_; - Photo* _tmp21_; -#line 205 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp19_ = source; -#line 205 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_PHOTO) ? ((Photo*) _tmp19_) : NULL); -#line 205 "/home/jens/Source/shotwell/src/SearchFilter.vala" - photo = _tmp20_; -#line 206 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp21_ = photo; -#line 206 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (photo_get_master_file_format (_tmp21_) == PHOTO_FILE_FORMAT_RAW) { -#line 2748 "SearchFilter.c" - gboolean _tmp22_ = FALSE; - gboolean _tmp23_; - gboolean _tmp24_; -#line 207 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp23_ = search_view_filter_get_show_media_photos (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 207 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp24_ = _tmp23_; -#line 207 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (!_tmp24_) { -#line 2758 "SearchFilter.c" - gboolean _tmp25_; - gboolean _tmp26_; -#line 207 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp25_ = search_view_filter_get_show_media_raw (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 207 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp26_ = _tmp25_; -#line 207 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp22_ = !_tmp26_; -#line 2767 "SearchFilter.c" - } else { -#line 207 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp22_ = FALSE; -#line 2771 "SearchFilter.c" - } -#line 207 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp22_) { -#line 208 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = FALSE; -#line 208 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (photo); -#line 208 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (source); -#line 208 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 2783 "SearchFilter.c" - } - } else { - gboolean _tmp27_; - gboolean _tmp28_; -#line 209 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp27_ = search_view_filter_get_show_media_photos (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 209 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp28_ = _tmp27_; -#line 209 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (!_tmp28_) { -#line 210 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = FALSE; -#line 210 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (photo); -#line 210 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (source); -#line 210 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 2802 "SearchFilter.c" - } - } -#line 204 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (photo); -#line 2807 "SearchFilter.c" - } - } - } -#line 215 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp30_ = criteria; -#line 215 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if ((SEARCH_FILTER_CRITERIA_TEXT & _tmp30_) != 0) { -#line 215 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp29_ = search_view_filter_has_search_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 2817 "SearchFilter.c" - } else { -#line 215 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp29_ = FALSE; -#line 2821 "SearchFilter.c" - } -#line 215 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp29_) { -#line 2825 "SearchFilter.c" - const gchar* media_keywords = NULL; - MediaSource* _tmp31_; - const gchar* _tmp32_; - const gchar* event_keywords = NULL; - Event* event = NULL; - MediaSource* _tmp33_; - Event* _tmp34_; - Event* _tmp35_; - GeeList* tags = NULL; - TagSourceCollection* _tmp38_; - MediaSource* _tmp39_; - GeeList* _tmp40_; - gint _tmp41_ = 0; - GeeList* _tmp42_; - gint tags_size = 0; - gint _tmp46_; - gchar** _tmp47_; -#line 216 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp31_ = source; -#line 216 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp32_ = indexable_get_indexable_keywords (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_INDEXABLE, Indexable)); -#line 216 "/home/jens/Source/shotwell/src/SearchFilter.vala" - media_keywords = _tmp32_; -#line 218 "/home/jens/Source/shotwell/src/SearchFilter.vala" - event_keywords = NULL; -#line 219 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp33_ = source; -#line 219 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp34_ = media_source_get_event (_tmp33_); -#line 219 "/home/jens/Source/shotwell/src/SearchFilter.vala" - event = _tmp34_; -#line 220 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp35_ = event; -#line 220 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp35_ != NULL) { -#line 2861 "SearchFilter.c" - Event* _tmp36_; - const gchar* _tmp37_; -#line 221 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp36_ = event; -#line 221 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp37_ = indexable_get_indexable_keywords (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_INDEXABLE, Indexable)); -#line 221 "/home/jens/Source/shotwell/src/SearchFilter.vala" - event_keywords = _tmp37_; -#line 2870 "SearchFilter.c" - } -#line 223 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp38_ = tag_global; -#line 223 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp39_ = source; -#line 223 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp40_ = tag_source_collection_fetch_for_source (_tmp38_, _tmp39_); -#line 223 "/home/jens/Source/shotwell/src/SearchFilter.vala" - tags = _tmp40_; -#line 224 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp42_ = tags; -#line 224 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp42_ != NULL) { -#line 2884 "SearchFilter.c" - GeeList* _tmp43_; - gint _tmp44_; - gint _tmp45_; -#line 224 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp43_ = tags; -#line 224 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp44_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 224 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp45_ = _tmp44_; -#line 224 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp41_ = _tmp45_; -#line 2896 "SearchFilter.c" - } else { -#line 224 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp41_ = 0; -#line 2900 "SearchFilter.c" - } -#line 224 "/home/jens/Source/shotwell/src/SearchFilter.vala" - tags_size = _tmp41_; -#line 226 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp47_ = search_view_filter_get_search_filter_words (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter), &_tmp46_); -#line 2906 "SearchFilter.c" - { - gchar** word_collection = NULL; - gint word_collection_length1 = 0; - gint _word_collection_size_ = 0; - gint word_it = 0; -#line 226 "/home/jens/Source/shotwell/src/SearchFilter.vala" - word_collection = _tmp47_; -#line 226 "/home/jens/Source/shotwell/src/SearchFilter.vala" - word_collection_length1 = _tmp46_; -#line 226 "/home/jens/Source/shotwell/src/SearchFilter.vala" - for (word_it = 0; word_it < _tmp46_; word_it = word_it + 1) { -#line 2918 "SearchFilter.c" - const gchar* word = NULL; -#line 226 "/home/jens/Source/shotwell/src/SearchFilter.vala" - word = word_collection[word_it]; -#line 2922 "SearchFilter.c" - { - gboolean _tmp48_ = FALSE; - const gchar* _tmp49_; - gboolean _tmp52_ = FALSE; - const gchar* _tmp53_; - gint _tmp56_; -#line 227 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp49_ = media_keywords; -#line 227 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp49_ != NULL) { -#line 2933 "SearchFilter.c" - const gchar* _tmp50_; - const gchar* _tmp51_; -#line 227 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp50_ = media_keywords; -#line 227 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp51_ = word; -#line 227 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp48_ = string_contains (_tmp50_, _tmp51_); -#line 2942 "SearchFilter.c" - } else { -#line 227 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp48_ = FALSE; -#line 2946 "SearchFilter.c" - } -#line 227 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp48_) { -#line 228 "/home/jens/Source/shotwell/src/SearchFilter.vala" - continue; -#line 2952 "SearchFilter.c" - } -#line 230 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp53_ = event_keywords; -#line 230 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp53_ != NULL) { -#line 2958 "SearchFilter.c" - const gchar* _tmp54_; - const gchar* _tmp55_; -#line 230 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp54_ = event_keywords; -#line 230 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp55_ = word; -#line 230 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp52_ = string_contains (_tmp54_, _tmp55_); -#line 2967 "SearchFilter.c" - } else { -#line 230 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp52_ = FALSE; -#line 2971 "SearchFilter.c" - } -#line 230 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp52_) { -#line 231 "/home/jens/Source/shotwell/src/SearchFilter.vala" - continue; -#line 2977 "SearchFilter.c" - } -#line 233 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp56_ = tags_size; -#line 233 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp56_ > 0) { -#line 2983 "SearchFilter.c" - gboolean found = FALSE; - gboolean _tmp71_; -#line 234 "/home/jens/Source/shotwell/src/SearchFilter.vala" - found = FALSE; -#line 2988 "SearchFilter.c" - { - gint ctr = 0; -#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala" - ctr = 0; -#line 2993 "SearchFilter.c" - { - gboolean _tmp57_ = FALSE; -#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp57_ = TRUE; -#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala" - while (TRUE) { -#line 3000 "SearchFilter.c" - gint _tmp59_; - gint _tmp60_; - const gchar* tag_keywords = NULL; - GeeList* _tmp61_; - gint _tmp62_; - gpointer _tmp63_; - Tag* _tmp64_; - const gchar* _tmp65_; - const gchar* _tmp66_; - gboolean _tmp67_ = FALSE; - const gchar* _tmp68_; -#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (!_tmp57_) { -#line 3014 "SearchFilter.c" - gint _tmp58_; -#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp58_ = ctr; -#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala" - ctr = _tmp58_ + 1; -#line 3020 "SearchFilter.c" - } -#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp57_ = FALSE; -#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp59_ = ctr; -#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp60_ = tags_size; -#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (!(_tmp59_ < _tmp60_)) { -#line 235 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 3032 "SearchFilter.c" - } -#line 236 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp61_ = tags; -#line 236 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp62_ = ctr; -#line 236 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp63_ = gee_list_get (_tmp61_, _tmp62_); -#line 236 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp64_ = (Tag*) _tmp63_; -#line 236 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp65_ = indexable_get_indexable_keywords (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_INDEXABLE, Indexable)); -#line 236 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp66_ = _tmp65_; -#line 236 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (_tmp64_); -#line 236 "/home/jens/Source/shotwell/src/SearchFilter.vala" - tag_keywords = _tmp66_; -#line 237 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp68_ = tag_keywords; -#line 237 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp68_ != NULL) { -#line 3054 "SearchFilter.c" - const gchar* _tmp69_; - const gchar* _tmp70_; -#line 237 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp69_ = tag_keywords; -#line 237 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp70_ = word; -#line 237 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp67_ = string_contains (_tmp69_, _tmp70_); -#line 3063 "SearchFilter.c" - } else { -#line 237 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp67_ = FALSE; -#line 3067 "SearchFilter.c" - } -#line 237 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp67_) { -#line 238 "/home/jens/Source/shotwell/src/SearchFilter.vala" - found = TRUE; -#line 240 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 3075 "SearchFilter.c" - } - } - } - } -#line 244 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp71_ = found; -#line 244 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp71_) { -#line 245 "/home/jens/Source/shotwell/src/SearchFilter.vala" - continue; -#line 3086 "SearchFilter.c" - } - } -#line 250 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = FALSE; -#line 250 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (tags); -#line 250 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (event); -#line 250 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (source); -#line 250 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 3099 "SearchFilter.c" - } - } - } -#line 215 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (tags); -#line 215 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (event); -#line 3107 "SearchFilter.c" - } -#line 255 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp73_ = criteria; -#line 255 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if ((SEARCH_FILTER_CRITERIA_SAVEDSEARCH & _tmp73_) != 0) { -#line 255 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp72_ = search_view_filter_has_saved_search (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 3115 "SearchFilter.c" - } else { -#line 255 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp72_ = FALSE; -#line 3119 "SearchFilter.c" - } -#line 255 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp72_) { -#line 3123 "SearchFilter.c" - SavedSearch* _tmp74_; - SavedSearch* _tmp75_; - MediaSource* _tmp76_; -#line 256 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp74_ = search_view_filter_get_saved_search (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 256 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp75_ = _tmp74_; -#line 256 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp76_ = source; -#line 256 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = saved_search_predicate (_tmp75_, _tmp76_); -#line 256 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (source); -#line 256 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 3139 "SearchFilter.c" - } -#line 259 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = TRUE; -#line 259 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (source); -#line 259 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 3147 "SearchFilter.c" -} - - -DefaultSearchViewFilter* -default_search_view_filter_construct (GType object_type) -{ - DefaultSearchViewFilter* self = NULL; -#line 180 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = (DefaultSearchViewFilter*) search_view_filter_construct (object_type); -#line 180 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self; -#line 3159 "SearchFilter.c" -} - - -static void -default_search_view_filter_class_init (DefaultSearchViewFilterClass * klass) -{ -#line 180 "/home/jens/Source/shotwell/src/SearchFilter.vala" - default_search_view_filter_parent_class = g_type_class_peek_parent (klass); -#line 180 "/home/jens/Source/shotwell/src/SearchFilter.vala" - ((ViewFilterClass *) klass)->predicate = (gboolean (*) (ViewFilter *, DataView*)) default_search_view_filter_real_predicate; -#line 3170 "SearchFilter.c" -} - - -static void -default_search_view_filter_instance_init (DefaultSearchViewFilter * self) -{ -} - - -GType -default_search_view_filter_get_type (void) -{ - static volatile gsize default_search_view_filter_type_id__volatile = 0; - if (g_once_init_enter (&default_search_view_filter_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DefaultSearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) default_search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DefaultSearchViewFilter), 0, (GInstanceInitFunc) default_search_view_filter_instance_init, NULL }; - GType default_search_view_filter_type_id; - default_search_view_filter_type_id = g_type_register_static (TYPE_SEARCH_VIEW_FILTER, "DefaultSearchViewFilter", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&default_search_view_filter_type_id__volatile, default_search_view_filter_type_id); - } - return default_search_view_filter_type_id__volatile; -} - - -static gboolean -disabled_view_filter_real_predicate (ViewFilter* base, - DataView* view) -{ - DisabledViewFilter * self; - gboolean result = FALSE; -#line 264 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DISABLED_VIEW_FILTER, DisabledViewFilter); -#line 264 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_DATA_VIEW (view), FALSE); -#line 265 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = TRUE; -#line 265 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 3208 "SearchFilter.c" -} - - -static guint -disabled_view_filter_real_get_criteria (SearchViewFilter* base) -{ - DisabledViewFilter * self; - guint result = 0U; -#line 268 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DISABLED_VIEW_FILTER, DisabledViewFilter); -#line 269 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = (guint) SEARCH_FILTER_CRITERIA_RATING; -#line 269 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 3223 "SearchFilter.c" -} - - -DisabledViewFilter* -disabled_view_filter_construct (GType object_type) -{ - DisabledViewFilter* self = NULL; -#line 263 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = (DisabledViewFilter*) search_view_filter_construct (object_type); -#line 263 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self; -#line 3235 "SearchFilter.c" -} - - -DisabledViewFilter* -disabled_view_filter_new (void) -{ -#line 263 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return disabled_view_filter_construct (TYPE_DISABLED_VIEW_FILTER); -#line 3244 "SearchFilter.c" -} - - -static void -disabled_view_filter_class_init (DisabledViewFilterClass * klass) -{ -#line 263 "/home/jens/Source/shotwell/src/SearchFilter.vala" - disabled_view_filter_parent_class = g_type_class_peek_parent (klass); -#line 263 "/home/jens/Source/shotwell/src/SearchFilter.vala" - ((ViewFilterClass *) klass)->predicate = (gboolean (*) (ViewFilter *, DataView*)) disabled_view_filter_real_predicate; -#line 263 "/home/jens/Source/shotwell/src/SearchFilter.vala" - ((SearchViewFilterClass *) klass)->get_criteria = (guint (*) (SearchViewFilter *)) disabled_view_filter_real_get_criteria; -#line 3257 "SearchFilter.c" -} - - -static void -disabled_view_filter_instance_init (DisabledViewFilter * self) -{ -} - - -GType -disabled_view_filter_get_type (void) -{ - static volatile gsize disabled_view_filter_type_id__volatile = 0; - if (g_once_init_enter (&disabled_view_filter_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DisabledViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) disabled_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DisabledViewFilter), 0, (GInstanceInitFunc) disabled_view_filter_instance_init, NULL }; - GType disabled_view_filter_type_id; - disabled_view_filter_type_id = g_type_register_static (TYPE_SEARCH_VIEW_FILTER, "DisabledViewFilter", &g_define_type_info, 0); - g_once_init_leave (&disabled_view_filter_type_id__volatile, disabled_view_filter_type_id); - } - return disabled_view_filter_type_id__volatile; -} - - -TextAction* -text_action_construct (GType object_type, - const gchar* init) -{ - TextAction* self = NULL; - gchar* _tmp0_; -#line 290 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = (TextAction*) g_type_create_instance (object_type); -#line 291 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = g_strdup (init); -#line 291 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (self->priv->text); -#line 291 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->text = _tmp0_; -#line 290 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self; -#line 3297 "SearchFilter.c" -} - - -TextAction* -text_action_new (const gchar* init) -{ -#line 290 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return text_action_construct (TYPE_TEXT_ACTION, init); -#line 3306 "SearchFilter.c" -} - - -void -text_action_set_text (TextAction* self, - const gchar* text) -{ - const gchar* _tmp0_; -#line 294 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_TEXT_ACTION (self)); -#line 295 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->text; -#line 295 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (g_strcmp0 (_tmp0_, text) != 0) { -#line 3321 "SearchFilter.c" - gchar* _tmp1_; -#line 296 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = g_strdup (text); -#line 296 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (self->priv->text); -#line 296 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->text = _tmp1_; -#line 297 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, text_action_signals[TEXT_ACTION_TEXT_CHANGED_SIGNAL], 0, text); -#line 3331 "SearchFilter.c" - } -} - - -void -text_action_clear (TextAction* self) -{ -#line 301 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_TEXT_ACTION (self)); -#line 302 "/home/jens/Source/shotwell/src/SearchFilter.vala" - text_action_set_text (self, NULL); -#line 3343 "SearchFilter.c" -} - - -gboolean -text_action_is_sensitive (TextAction* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 305 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_TEXT_ACTION (self), FALSE); -#line 306 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->sensitive; -#line 306 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 306 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 3360 "SearchFilter.c" -} - - -void -text_action_set_sensitive (TextAction* self, - gboolean sensitive) -{ - gboolean _tmp0_; -#line 309 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_TEXT_ACTION (self)); -#line 310 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->sensitive; -#line 310 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp0_ != sensitive) { -#line 311 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->sensitive = sensitive; -#line 312 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, text_action_signals[TEXT_ACTION_SENSITIVITY_CHANGED_SIGNAL], 0, sensitive); -#line 3379 "SearchFilter.c" - } -} - - -gboolean -text_action_is_visible (TextAction* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 316 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_TEXT_ACTION (self), FALSE); -#line 317 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->visible; -#line 317 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 317 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 3397 "SearchFilter.c" -} - - -void -text_action_set_visible (TextAction* self, - gboolean visible) -{ - gboolean _tmp0_; -#line 320 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_TEXT_ACTION (self)); -#line 321 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->visible; -#line 321 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp0_ != visible) { -#line 322 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->visible = visible; -#line 323 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, text_action_signals[TEXT_ACTION_VISIBILITY_CHANGED_SIGNAL], 0, visible); -#line 3416 "SearchFilter.c" - } -} - - -const gchar* -text_action_get_value (TextAction* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 275 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_TEXT_ACTION (self), NULL); -#line 276 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->text; -#line 276 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 276 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 3434 "SearchFilter.c" -} - - -static void -value_text_action_init (GValue* value) -{ -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = NULL; -#line 3443 "SearchFilter.c" -} - - -static void -value_text_action_free_value (GValue* value) -{ -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (value->data[0].v_pointer) { -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - text_action_unref (value->data[0].v_pointer); -#line 3454 "SearchFilter.c" - } -} - - -static void -value_text_action_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (src_value->data[0].v_pointer) { -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - dest_value->data[0].v_pointer = text_action_ref (src_value->data[0].v_pointer); -#line 3467 "SearchFilter.c" - } else { -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - dest_value->data[0].v_pointer = NULL; -#line 3471 "SearchFilter.c" - } -} - - -static gpointer -value_text_action_peek_pointer (const GValue* value) -{ -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return value->data[0].v_pointer; -#line 3481 "SearchFilter.c" -} - - -static gchar* -value_text_action_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (collect_values[0].v_pointer) { -#line 3493 "SearchFilter.c" - TextAction * object; - object = collect_values[0].v_pointer; -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (object->parent_instance.g_class == NULL) { -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3500 "SearchFilter.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3504 "SearchFilter.c" - } -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = text_action_ref (object); -#line 3508 "SearchFilter.c" - } else { -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = NULL; -#line 3512 "SearchFilter.c" - } -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return NULL; -#line 3516 "SearchFilter.c" -} - - -static gchar* -value_text_action_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - TextAction ** object_p; - object_p = collect_values[0].v_pointer; -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (!object_p) { -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 3532 "SearchFilter.c" - } -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (!value->data[0].v_pointer) { -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - *object_p = NULL; -#line 3538 "SearchFilter.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - *object_p = value->data[0].v_pointer; -#line 3542 "SearchFilter.c" - } else { -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - *object_p = text_action_ref (value->data[0].v_pointer); -#line 3546 "SearchFilter.c" - } -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return NULL; -#line 3550 "SearchFilter.c" -} - - -GParamSpec* -param_spec_text_action (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecTextAction* spec; -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_TEXT_ACTION), NULL); -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return G_PARAM_SPEC (spec); -#line 3570 "SearchFilter.c" -} - - -gpointer -value_get_text_action (const GValue* value) -{ -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEXT_ACTION), NULL); -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return value->data[0].v_pointer; -#line 3581 "SearchFilter.c" -} - - -void -value_set_text_action (GValue* value, - gpointer v_object) -{ - TextAction * old; -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEXT_ACTION)); -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - old = value->data[0].v_pointer; -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (v_object) { -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TEXT_ACTION)); -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = v_object; -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - text_action_ref (value->data[0].v_pointer); -#line 3604 "SearchFilter.c" - } else { -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = NULL; -#line 3608 "SearchFilter.c" - } -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (old) { -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - text_action_unref (old); -#line 3614 "SearchFilter.c" - } -} - - -void -value_take_text_action (GValue* value, - gpointer v_object) -{ - TextAction * old; -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEXT_ACTION)); -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - old = value->data[0].v_pointer; -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (v_object) { -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TEXT_ACTION)); -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = v_object; -#line 3636 "SearchFilter.c" - } else { -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = NULL; -#line 3640 "SearchFilter.c" - } -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (old) { -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - text_action_unref (old); -#line 3646 "SearchFilter.c" - } -} - - -static void -text_action_class_init (TextActionClass * klass) -{ -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - text_action_parent_class = g_type_class_peek_parent (klass); -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - ((TextActionClass *) klass)->finalize = text_action_finalize; -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_type_class_add_private (klass, sizeof (TextActionPrivate)); -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - text_action_signals[TEXT_ACTION_TEXT_CHANGED_SIGNAL] = g_signal_new ("text-changed", TYPE_TEXT_ACTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - text_action_signals[TEXT_ACTION_SENSITIVITY_CHANGED_SIGNAL] = g_signal_new ("sensitivity-changed", TYPE_TEXT_ACTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - text_action_signals[TEXT_ACTION_VISIBILITY_CHANGED_SIGNAL] = g_signal_new ("visibility-changed", TYPE_TEXT_ACTION, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); -#line 3666 "SearchFilter.c" -} - - -static void -text_action_instance_init (TextAction * self) -{ -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv = TEXT_ACTION_GET_PRIVATE (self); -#line 280 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->text = NULL; -#line 281 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->sensitive = TRUE; -#line 282 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->visible = TRUE; -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->ref_count = 1; -#line 3683 "SearchFilter.c" -} - - -static void -text_action_finalize (TextAction * obj) -{ - TextAction * self; -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TEXT_ACTION, TextAction); -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_destroy (self); -#line 280 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (self->priv->text); -#line 3697 "SearchFilter.c" -} - - -GType -text_action_get_type (void) -{ - static volatile gsize text_action_type_id__volatile = 0; - if (g_once_init_enter (&text_action_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_text_action_init, value_text_action_free_value, value_text_action_copy_value, value_text_action_peek_pointer, "p", value_text_action_collect_value, "p", value_text_action_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (TextActionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) text_action_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TextAction), 0, (GInstanceInitFunc) text_action_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType text_action_type_id; - text_action_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TextAction", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&text_action_type_id__volatile, text_action_type_id); - } - return text_action_type_id__volatile; -} - - -gpointer -text_action_ref (gpointer instance) -{ - TextAction * self; - self = instance; -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_atomic_int_inc (&self->ref_count); -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return instance; -#line 3726 "SearchFilter.c" -} - - -void -text_action_unref (gpointer instance) -{ - TextAction * self; - self = instance; -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - TEXT_ACTION_GET_CLASS (self)->finalize (self); -#line 273 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 3741 "SearchFilter.c" - } -} - - -static void -_search_filter_actions_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 528 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_on_action_radio ((SearchFilterActions*) self, action, parameter); -#line 3753 "SearchFilter.c" -} - - -static void -_search_filter_actions_on_rating_changed_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 528 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_on_rating_changed ((SearchFilterActions*) self, action, value); -#line 3764 "SearchFilter.c" -} - - -static void -_search_filter_actions_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 528 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_on_action_toggle ((SearchFilterActions*) self, action, parameter); -#line 3775 "SearchFilter.c" -} - - -static void -_search_filter_actions_on_flagged_toggled_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 528 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_on_flagged_toggled ((SearchFilterActions*) self, action, value); -#line 3786 "SearchFilter.c" -} - - -static void -_search_filter_actions_on_photos_toggled_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 528 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_on_photos_toggled ((SearchFilterActions*) self, action, value); -#line 3797 "SearchFilter.c" -} - - -static void -_search_filter_actions_on_videos_toggled_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 528 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_on_videos_toggled ((SearchFilterActions*) self, action, value); -#line 3808 "SearchFilter.c" -} - - -static void -_search_filter_actions_on_raw_toggled_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 528 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_on_raw_toggled ((SearchFilterActions*) self, action, value); -#line 3819 "SearchFilter.c" -} - - -static void -_search_filter_actions_on_text_changed_text_action_text_changed (TextAction* _sender, - const gchar* text, - gpointer self) -{ -#line 406 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_on_text_changed ((SearchFilterActions*) self, _sender, text); -#line 3830 "SearchFilter.c" -} - - -SearchFilterActions* -search_filter_actions_construct (GType object_type) -{ - SearchFilterActions* self = NULL; - TextAction* _tmp0_; - TextAction* _tmp1_; -#line 402 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = (SearchFilterActions*) g_type_create_instance (object_type); -#line 404 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_register (self); -#line 406 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = search_filter_actions_get_text (self); -#line 406 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = _tmp0_; -#line 406 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect (_tmp1_, "text-changed", (GCallback) _search_filter_actions_on_text_changed_text_action_text_changed, self); -#line 402 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self; -#line 3852 "SearchFilter.c" -} - - -SearchFilterActions* -search_filter_actions_new (void) -{ -#line 402 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return search_filter_actions_construct (TYPE_SEARCH_FILTER_ACTIONS); -#line 3861 "SearchFilter.c" -} - - -SearchFilterCriteria -search_filter_actions_get_criteria (SearchFilterActions* self) -{ - SearchFilterCriteria result = 0; - SearchFilterCriteria _tmp0_; -#line 409 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), 0); -#line 410 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->criteria; -#line 410 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 410 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 3878 "SearchFilter.c" -} - - -GActionEntry* -search_filter_actions_get_actions (SearchFilterActions* self, - int* result_length1) -{ - GActionEntry* result = NULL; - GActionEntry* _tmp0_; - gint _tmp0__length1; -#line 413 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), NULL); -#line 414 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = SEARCH_FILTER_ACTIONS_entries; -#line 414 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0__length1 = G_N_ELEMENTS (SEARCH_FILTER_ACTIONS_entries); -#line 414 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (result_length1) { -#line 414 "/home/jens/Source/shotwell/src/SearchFilter.vala" - *result_length1 = _tmp0__length1; -#line 3899 "SearchFilter.c" - } -#line 414 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 414 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 3905 "SearchFilter.c" -} - - -GSimpleAction* -search_filter_actions_get_action (SearchFilterActions* self, - const gchar* name) -{ - GSimpleAction* result = NULL; - LibraryWindow* lw = NULL; - AppWindow* _tmp0_; - LibraryWindow* _tmp1_; - LibraryWindow* _tmp2_; -#line 417 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), NULL); -#line 417 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 418 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = app_window_get_instance (); -#line 418 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_LIBRARY_WINDOW) ? ((LibraryWindow*) _tmp0_) : NULL; -#line 418 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp1_ == NULL) { -#line 418 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (_tmp0_); -#line 3930 "SearchFilter.c" - } -#line 418 "/home/jens/Source/shotwell/src/SearchFilter.vala" - lw = _tmp1_; -#line 419 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = lw; -#line 419 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp2_ != NULL) { -#line 3938 "SearchFilter.c" - LibraryWindow* _tmp3_; - GAction* _tmp4_; -#line 420 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = lw; -#line 420 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, g_action_map_get_type (), GActionMap), name); -#line 420 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp4_) : NULL; -#line 420 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (lw); -#line 420 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 3951 "SearchFilter.c" - } -#line 423 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = NULL; -#line 423 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (lw); -#line 423 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 3959 "SearchFilter.c" -} - - -void -search_filter_actions_set_action_sensitive (SearchFilterActions* self, - const gchar* name, - gboolean sensitive) -{ - GSimpleAction* action = NULL; - GSimpleAction* _tmp0_; - GSimpleAction* _tmp1_; - GSimpleAction* _tmp2_; -#line 427 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self)); -#line 427 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (name != NULL); -#line 428 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = search_filter_actions_get_action (self, name); -#line 428 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 428 "/home/jens/Source/shotwell/src/SearchFilter.vala" - action = _tmp1_; -#line 429 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = action; -#line 429 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp2_ != NULL) { -#line 3986 "SearchFilter.c" - GSimpleAction* _tmp3_; -#line 430 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = action; -#line 430 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_simple_action_set_enabled (_tmp3_, sensitive); -#line 3992 "SearchFilter.c" - } -#line 427 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (action); -#line 3996 "SearchFilter.c" -} - - -static GVariant* -_variant_new32 (gboolean value) -{ -#line 435 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 4005 "SearchFilter.c" -} - - -static GVariant* -_variant_new33 (gboolean value) -{ -#line 436 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 4014 "SearchFilter.c" -} - - -static GVariant* -_variant_new34 (gboolean value) -{ -#line 437 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 4023 "SearchFilter.c" -} - - -static GVariant* -_variant_new35 (gboolean value) -{ -#line 438 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 4032 "SearchFilter.c" -} - - -static GVariant* -_variant_new36 (gchar* value) -{ -#line 439 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 4041 "SearchFilter.c" -} - - -void -search_filter_actions_reset (SearchFilterActions* self) -{ - GSimpleAction* _tmp0_; - GSimpleAction* _tmp1_; - GVariant* _tmp2_; - GSimpleAction* _tmp3_; - GSimpleAction* _tmp4_; - GVariant* _tmp5_; - GSimpleAction* _tmp6_; - GSimpleAction* _tmp7_; - GVariant* _tmp8_; - GSimpleAction* _tmp9_; - GSimpleAction* _tmp10_; - GVariant* _tmp11_; - GVariant* v = NULL; - gchar* _tmp12_; - gchar* _tmp13_; - GVariant* _tmp14_; - GVariant* _tmp15_; - GSimpleAction* _tmp16_; - GSimpleAction* _tmp17_; - TextAction* _tmp18_; - TextAction* _tmp19_; -#line 434 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self)); -#line 435 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = search_filter_actions_get_flagged (self); -#line 435 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = _tmp0_; -#line 435 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = _variant_new32 (FALSE); -#line 435 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit_by_name (_tmp1_, "change-state", _tmp2_); -#line 435 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_variant_unref0 (_tmp2_); -#line 436 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = search_filter_actions_get_photos (self); -#line 436 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = _tmp3_; -#line 436 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = _variant_new33 (FALSE); -#line 436 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit_by_name (_tmp4_, "change-state", _tmp5_); -#line 436 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_variant_unref0 (_tmp5_); -#line 437 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = search_filter_actions_get_raw (self); -#line 437 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = _tmp6_; -#line 437 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = _variant_new34 (FALSE); -#line 437 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit_by_name (_tmp7_, "change-state", _tmp8_); -#line 437 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_variant_unref0 (_tmp8_); -#line 438 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp9_ = search_filter_actions_get_videos (self); -#line 438 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp10_ = _tmp9_; -#line 438 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp11_ = _variant_new35 (FALSE); -#line 438 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit_by_name (_tmp10_, "change-state", _tmp11_); -#line 438 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_variant_unref0 (_tmp11_); -#line 439 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp12_ = g_strdup_printf ("%d", (gint) RATING_FILTER_UNRATED_OR_HIGHER); -#line 439 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp13_ = _tmp12_; -#line 439 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp14_ = _variant_new36 (_tmp13_); -#line 439 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp15_ = _tmp14_; -#line 439 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (_tmp13_); -#line 439 "/home/jens/Source/shotwell/src/SearchFilter.vala" - v = _tmp15_; -#line 440 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp16_ = search_filter_actions_get_rating (self); -#line 440 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp17_ = _tmp16_; -#line 440 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit_by_name (_tmp17_, "change-state", v); -#line 442 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp18_ = search_filter_actions_get_text (self); -#line 442 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp19_ = _tmp18_; -#line 442 "/home/jens/Source/shotwell/src/SearchFilter.vala" - text_action_set_text (_tmp19_, NULL); -#line 434 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_variant_unref0 (v); -#line 4137 "SearchFilter.c" -} - - -void -search_filter_actions_set_sensitive_for_search_criteria (SearchFilterActions* self, - SearchFilterCriteria criteria) -{ -#line 445 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self)); -#line 446 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->criteria = criteria; -#line 447 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_update_sensitivities (self); -#line 450 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, search_filter_actions_signals[SEARCH_FILTER_ACTIONS_CRITERIA_CHANGED_SIGNAL], 0); -#line 4153 "SearchFilter.c" -} - - -static void -_search_filter_actions_on_media_tracker_updated_core_tracker_updated (CoreTracker* _sender, - gpointer self) -{ -#line 458 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_on_media_tracker_updated ((SearchFilterActions*) self, _sender); -#line 4163 "SearchFilter.c" -} - - -static void -_search_filter_actions_on_camera_tracker_updated_core_tracker_updated (CoreTracker* _sender, - gpointer self) -{ -#line 460 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_on_camera_tracker_updated ((SearchFilterActions*) self, _sender); -#line 4173 "SearchFilter.c" -} - - -void -search_filter_actions_monitor_page_contents (SearchFilterActions* self, - Page* old_page, - Page* new_page) -{ - CheckerboardPage* old_tracked_page = NULL; - CheckerboardPage* _tmp0_; - CheckerboardPage* _tmp1_; - CheckerboardPage* new_tracked_page = NULL; - CheckerboardPage* _tmp10_; - CheckerboardPage* _tmp11_; -#line 453 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self)); -#line 453 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail ((old_page == NULL) || IS_PAGE (old_page)); -#line 453 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail ((new_page == NULL) || IS_PAGE (new_page)); -#line 454 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (old_page, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) old_page) : NULL); -#line 454 "/home/jens/Source/shotwell/src/SearchFilter.vala" - old_tracked_page = _tmp0_; -#line 455 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = old_tracked_page; -#line 455 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp1_ != NULL) { -#line 4202 "SearchFilter.c" - CoreViewTracker* tracker = NULL; - CheckerboardPage* _tmp2_; - CoreViewTracker* _tmp3_; - CoreViewTracker* _tmp4_; -#line 456 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = old_tracked_page; -#line 456 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = checkerboard_page_get_view_tracker (_tmp2_); -#line 456 "/home/jens/Source/shotwell/src/SearchFilter.vala" - tracker = _tmp3_; -#line 457 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = tracker; -#line 457 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_MEDIA_VIEW_TRACKER)) { -#line 4217 "SearchFilter.c" - CoreViewTracker* _tmp5_; - guint _tmp6_; -#line 458 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = tracker; -#line 458 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("updated", CORE_TYPE_TRACKER, &_tmp6_, NULL, FALSE); -#line 458 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, CORE_TYPE_TRACKER, CoreTracker), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _search_filter_actions_on_media_tracker_updated_core_tracker_updated, self); -#line 4226 "SearchFilter.c" - } else { - CoreViewTracker* _tmp7_; -#line 459 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = tracker; -#line 459 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_CAMERA_VIEW_TRACKER)) { -#line 4233 "SearchFilter.c" - CoreViewTracker* _tmp8_; - guint _tmp9_; -#line 460 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = tracker; -#line 460 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("updated", CORE_TYPE_TRACKER, &_tmp9_, NULL, FALSE); -#line 460 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, CORE_TYPE_TRACKER, CoreTracker), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _search_filter_actions_on_camera_tracker_updated_core_tracker_updated, self); -#line 4242 "SearchFilter.c" - } - } -#line 455 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _core_tracker_unref0 (tracker); -#line 4247 "SearchFilter.c" - } -#line 463 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (new_page, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) new_page) : NULL); -#line 463 "/home/jens/Source/shotwell/src/SearchFilter.vala" - new_tracked_page = _tmp10_; -#line 464 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp11_ = new_tracked_page; -#line 464 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp11_ != NULL) { -#line 4257 "SearchFilter.c" - CoreViewTracker* tracker = NULL; - CheckerboardPage* _tmp12_; - CoreViewTracker* _tmp13_; - CoreViewTracker* _tmp14_; -#line 465 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->can_filter_by_stars = TRUE; -#line 467 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp12_ = new_tracked_page; -#line 467 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp13_ = checkerboard_page_get_view_tracker (_tmp12_); -#line 467 "/home/jens/Source/shotwell/src/SearchFilter.vala" - tracker = _tmp13_; -#line 468 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp14_ = tracker; -#line 468 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, TYPE_MEDIA_VIEW_TRACKER)) { -#line 4274 "SearchFilter.c" - CoreViewTracker* _tmp15_; - CoreViewTracker* _tmp16_; -#line 469 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp15_ = tracker; -#line 469 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, CORE_TYPE_TRACKER, CoreTracker), "updated", (GCallback) _search_filter_actions_on_media_tracker_updated_core_tracker_updated, self); -#line 470 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp16_ = tracker; -#line 470 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_on_media_tracker_updated (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, CORE_TYPE_TRACKER, CoreTracker)); -#line 472 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _core_tracker_unref0 (tracker); -#line 472 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (new_tracked_page); -#line 472 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (old_tracked_page); -#line 472 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return; -#line 4293 "SearchFilter.c" - } else { - CoreViewTracker* _tmp17_; -#line 473 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp17_ = tracker; -#line 473 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp17_, TYPE_CAMERA_VIEW_TRACKER)) { -#line 4300 "SearchFilter.c" - CoreViewTracker* _tmp18_; - CoreViewTracker* _tmp19_; -#line 474 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp18_ = tracker; -#line 474 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, CORE_TYPE_TRACKER, CoreTracker), "updated", (GCallback) _search_filter_actions_on_camera_tracker_updated_core_tracker_updated, self); -#line 475 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp19_ = tracker; -#line 475 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_on_camera_tracker_updated (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, CORE_TYPE_TRACKER, CoreTracker)); -#line 477 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _core_tracker_unref0 (tracker); -#line 477 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (new_tracked_page); -#line 477 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (old_tracked_page); -#line 477 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return; -#line 4319 "SearchFilter.c" - } - } -#line 464 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _core_tracker_unref0 (tracker); -#line 4324 "SearchFilter.c" - } -#line 482 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->has_flagged = FALSE; -#line 483 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->has_photos = FALSE; -#line 484 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->has_videos = FALSE; -#line 485 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->has_raw = FALSE; -#line 486 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->can_filter_by_stars = FALSE; -#line 488 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_update_sensitivities (self); -#line 453 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (new_tracked_page); -#line 453 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (old_tracked_page); -#line 4342 "SearchFilter.c" -} - - -static gpointer -_core_tracker_ref0 (gpointer self) -{ -#line 492 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self ? core_tracker_ref (self) : NULL; -#line 4351 "SearchFilter.c" -} - - -static void -search_filter_actions_on_media_tracker_updated (SearchFilterActions* self, - CoreTracker* t) -{ - MediaViewTracker* tracker = NULL; - MediaViewTracker* _tmp0_; - MediaAccumulator* _tmp1_; - gint _tmp2_; - MediaAccumulator* _tmp3_; - gint _tmp4_; - MediaAccumulator* _tmp5_; - gint _tmp6_; - MediaAccumulator* _tmp7_; - gint _tmp8_; -#line 491 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self)); -#line 491 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (CORE_IS_TRACKER (t)); -#line 492 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = _core_tracker_ref0 (G_TYPE_CHECK_INSTANCE_CAST (t, TYPE_MEDIA_VIEW_TRACKER, MediaViewTracker)); -#line 492 "/home/jens/Source/shotwell/src/SearchFilter.vala" - tracker = _tmp0_; -#line 494 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = tracker->all; -#line 494 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = _tmp1_->flagged; -#line 494 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->has_flagged = _tmp2_ > 0; -#line 495 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = tracker->all; -#line 495 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = _tmp3_->photos; -#line 495 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->has_photos = _tmp4_ > 0; -#line 496 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = tracker->all; -#line 496 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = _tmp5_->videos; -#line 496 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->has_videos = _tmp6_ > 0; -#line 497 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = tracker->all; -#line 497 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = _tmp7_->raw; -#line 497 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->has_raw = _tmp8_ > 0; -#line 499 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_update_sensitivities (self); -#line 491 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _core_tracker_unref0 (tracker); -#line 4405 "SearchFilter.c" -} - - -static void -search_filter_actions_on_camera_tracker_updated (SearchFilterActions* self, - CoreTracker* t) -{ - CameraViewTracker* tracker = NULL; - CameraViewTracker* _tmp0_; - CameraAccumulator* _tmp1_; - gint _tmp2_; - gint _tmp3_; - CameraAccumulator* _tmp4_; - gint _tmp5_; - gint _tmp6_; - CameraAccumulator* _tmp7_; - gint _tmp8_; - gint _tmp9_; -#line 502 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self)); -#line 502 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (CORE_IS_TRACKER (t)); -#line 503 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = _core_tracker_ref0 (G_TYPE_CHECK_INSTANCE_CAST (t, TYPE_CAMERA_VIEW_TRACKER, CameraViewTracker)); -#line 503 "/home/jens/Source/shotwell/src/SearchFilter.vala" - tracker = _tmp0_; -#line 505 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->has_flagged = FALSE; -#line 506 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = tracker->all; -#line 506 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = camera_accumulator_get_photos (_tmp1_); -#line 506 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = _tmp2_; -#line 506 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->has_photos = _tmp3_ > 0; -#line 507 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = tracker->all; -#line 507 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = camera_accumulator_get_videos (_tmp4_); -#line 507 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = _tmp5_; -#line 507 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->has_videos = _tmp6_ > 0; -#line 508 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = tracker->all; -#line 508 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = camera_accumulator_get_raw (_tmp7_); -#line 508 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp9_ = _tmp8_; -#line 508 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->has_raw = _tmp9_ > 0; -#line 510 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_update_sensitivities (self); -#line 502 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _core_tracker_unref0 (tracker); -#line 4462 "SearchFilter.c" -} - - -static void -search_filter_actions_update_sensitivities (SearchFilterActions* self) -{ - gboolean allow_ratings = FALSE; - SearchFilterCriteria _tmp0_; - gboolean _tmp1_; - TextAction* _tmp2_; - TextAction* _tmp3_; - gboolean _tmp4_; - gboolean _tmp5_; - gboolean _tmp6_; - gboolean _tmp7_; -#line 513 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self)); -#line 514 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->criteria; -#line 514 "/home/jens/Source/shotwell/src/SearchFilter.vala" - allow_ratings = (SEARCH_FILTER_CRITERIA_RATING & _tmp0_) != 0; -#line 515 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = self->priv->can_filter_by_stars; -#line 515 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_set_action_sensitive (self, "display.rating", allow_ratings & _tmp1_); -#line 519 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = search_filter_actions_get_text (self); -#line 519 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = _tmp2_; -#line 519 "/home/jens/Source/shotwell/src/SearchFilter.vala" - text_action_set_sensitive (_tmp3_, TRUE); -#line 521 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = self->priv->has_photos; -#line 521 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = self->priv->has_videos; -#line 521 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = self->priv->has_raw; -#line 521 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = self->priv->has_flagged; -#line 521 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, search_filter_actions_signals[SEARCH_FILTER_ACTIONS_MEDIA_CONTEXT_CHANGED_SIGNAL], 0, _tmp4_, _tmp5_, _tmp6_, _tmp7_); -#line 4504 "SearchFilter.c" -} - - -static void -search_filter_actions_on_text_changed (SearchFilterActions* self, - TextAction* action, - const gchar* text) -{ -#line 524 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self)); -#line 524 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_TEXT_ACTION (action)); -#line 525 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, search_filter_actions_signals[SEARCH_FILTER_ACTIONS_TEXT_CHANGED_SIGNAL], 0, text); -#line 4519 "SearchFilter.c" -} - - -static void -search_filter_actions_on_action_radio (SearchFilterActions* self, - GSimpleAction* action, - GVariant* parameter) -{ -#line 536 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self)); -#line 536 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 538 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit_by_name (action, "change-state", parameter); -#line 4534 "SearchFilter.c" -} - - -static gboolean -_variant_get37 (GVariant* value) -{ -#line 543 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_variant_get_boolean (value); -#line 4543 "SearchFilter.c" -} - - -static GVariant* -_variant_new38 (gboolean value) -{ -#line 544 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 4552 "SearchFilter.c" -} - - -static void -search_filter_actions_on_action_toggle (SearchFilterActions* self, - GSimpleAction* action, - GVariant* parameter) -{ - gboolean state = FALSE; - GVariant* _tmp0_; - GVariant* _tmp1_; - gboolean _tmp2_; - gboolean _tmp3_; - GVariant* _tmp4_; -#line 541 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self)); -#line 541 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 543 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (action, g_action_get_type (), GAction)); -#line 543 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = _tmp0_; -#line 543 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = _variant_get37 (_tmp1_); -#line 543 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = _tmp2_; -#line 543 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_variant_unref0 (_tmp1_); -#line 543 "/home/jens/Source/shotwell/src/SearchFilter.vala" - state = _tmp3_; -#line 544 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = _variant_new38 (!state); -#line 544 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit_by_name (action, "change-state", _tmp4_); -#line 544 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_variant_unref0 (_tmp4_); -#line 4589 "SearchFilter.c" -} - - -static void -search_filter_actions_register (SearchFilterActions* self) -{ - TextAction* _tmp0_; -#line 547 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self)); -#line 548 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = text_action_new (NULL); -#line 548 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _text_action_unref0 (self->priv->_text); -#line 548 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_text = _tmp0_; -#line 4605 "SearchFilter.c" -} - - -static void -search_filter_actions_on_rating_changed (SearchFilterActions* self, - GSimpleAction* action, - GVariant* value) -{ - const gchar* _tmp0_; - GVariant* _tmp1_; - GVariant* _tmp2_; - const gchar* _tmp3_; - gboolean _tmp4_; - RatingFilter filter = 0; - const gchar* _tmp5_; - RatingFilter _tmp6_; -#line 551 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self)); -#line 551 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 551 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (value != NULL); -#line 553 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = g_variant_get_string (value, NULL); -#line 553 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (action, g_action_get_type (), GAction)); -#line 553 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = _tmp1_; -#line 553 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = g_variant_get_string (_tmp2_, NULL); -#line 553 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = g_strcmp0 (_tmp0_, _tmp3_) == 0; -#line 553 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_variant_unref0 (_tmp2_); -#line 553 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp4_) { -#line 554 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return; -#line 4644 "SearchFilter.c" - } -#line 556 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = g_variant_get_string (value, NULL); -#line 556 "/home/jens/Source/shotwell/src/SearchFilter.vala" - filter = (RatingFilter) atoi (_tmp5_); -#line 557 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_simple_action_set_state (action, value); -#line 558 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = filter; -#line 558 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, search_filter_actions_signals[SEARCH_FILTER_ACTIONS_RATING_CHANGED_SIGNAL], 0, _tmp6_); -#line 4656 "SearchFilter.c" -} - - -static void -search_filter_actions_on_flagged_toggled (SearchFilterActions* self, - GSimpleAction* action, - GVariant* value) -{ -#line 561 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self)); -#line 561 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 561 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (value != NULL); -#line 563 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_simple_action_set_state (action, value); -#line 564 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, search_filter_actions_signals[SEARCH_FILTER_ACTIONS_FLAGGED_TOGGLED_SIGNAL], 0, g_variant_get_boolean (value)); -#line 4675 "SearchFilter.c" -} - - -static void -search_filter_actions_on_photos_toggled (SearchFilterActions* self, - GSimpleAction* action, - GVariant* value) -{ -#line 567 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self)); -#line 567 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 567 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (value != NULL); -#line 569 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_simple_action_set_state (action, value); -#line 570 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, search_filter_actions_signals[SEARCH_FILTER_ACTIONS_PHOTOS_TOGGLED_SIGNAL], 0, g_variant_get_boolean (value)); -#line 4694 "SearchFilter.c" -} - - -static void -search_filter_actions_on_videos_toggled (SearchFilterActions* self, - GSimpleAction* action, - GVariant* value) -{ -#line 573 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self)); -#line 573 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 573 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (value != NULL); -#line 575 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_simple_action_set_state (action, value); -#line 576 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, search_filter_actions_signals[SEARCH_FILTER_ACTIONS_VIDEOS_TOGGLED_SIGNAL], 0, g_variant_get_boolean (value)); -#line 4713 "SearchFilter.c" -} - - -static void -search_filter_actions_on_raw_toggled (SearchFilterActions* self, - GSimpleAction* action, - GVariant* value) -{ -#line 579 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_ACTIONS (self)); -#line 579 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 579 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (value != NULL); -#line 581 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_simple_action_set_state (action, value); -#line 582 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, search_filter_actions_signals[SEARCH_FILTER_ACTIONS_RAW_TOGGLED_SIGNAL], 0, g_variant_get_boolean (value)); -#line 4732 "SearchFilter.c" -} - - -gboolean -search_filter_actions_get_has_photos (SearchFilterActions* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 585 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), FALSE); -#line 586 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->has_photos; -#line 586 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 586 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 4749 "SearchFilter.c" -} - - -gboolean -search_filter_actions_get_has_videos (SearchFilterActions* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 589 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), FALSE); -#line 590 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->has_videos; -#line 590 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 590 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 4766 "SearchFilter.c" -} - - -gboolean -search_filter_actions_get_has_raw (SearchFilterActions* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 593 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), FALSE); -#line 594 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->has_raw; -#line 594 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 594 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 4783 "SearchFilter.c" -} - - -gboolean -search_filter_actions_get_has_flagged (SearchFilterActions* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 597 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), FALSE); -#line 598 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->has_flagged; -#line 598 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 598 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 4800 "SearchFilter.c" -} - - -GSimpleAction* -search_filter_actions_get_flagged (SearchFilterActions* self) -{ - GSimpleAction* result; - GSimpleAction* _tmp0_; -#line 331 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), NULL); -#line 332 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = search_filter_actions_get_action (self, "display.flagged"); -#line 332 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 332 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 4817 "SearchFilter.c" -} - - -GSimpleAction* -search_filter_actions_get_photos (SearchFilterActions* self) -{ - GSimpleAction* result; - GSimpleAction* _tmp0_; -#line 337 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), NULL); -#line 338 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = search_filter_actions_get_action (self, "display.photos"); -#line 338 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 338 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 4834 "SearchFilter.c" -} - - -GSimpleAction* -search_filter_actions_get_videos (SearchFilterActions* self) -{ - GSimpleAction* result; - GSimpleAction* _tmp0_; -#line 343 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), NULL); -#line 344 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = search_filter_actions_get_action (self, "display.videos"); -#line 344 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 344 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 4851 "SearchFilter.c" -} - - -GSimpleAction* -search_filter_actions_get_raw (SearchFilterActions* self) -{ - GSimpleAction* result; - GSimpleAction* _tmp0_; -#line 349 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), NULL); -#line 350 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = search_filter_actions_get_action (self, "display.raw"); -#line 350 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 350 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 4868 "SearchFilter.c" -} - - -GSimpleAction* -search_filter_actions_get_rating (SearchFilterActions* self) -{ - GSimpleAction* result; - GSimpleAction* _tmp0_; -#line 355 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), NULL); -#line 356 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = search_filter_actions_get_action (self, "display.rating"); -#line 356 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 356 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 4885 "SearchFilter.c" -} - - -TextAction* -search_filter_actions_get_text (SearchFilterActions* self) -{ - TextAction* result; - TextAction* _tmp0_; - TextAction* _tmp1_; -#line 361 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (self), NULL); -#line 362 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->_text; -#line 362 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _vala_assert (_tmp0_ != NULL, "_text != null"); -#line 363 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = self->priv->_text; -#line 363 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp1_; -#line 363 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 4907 "SearchFilter.c" -} - - -static void -g_cclosure_user_marshal_VOID__BOOLEAN_BOOLEAN_BOOLEAN_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__BOOLEAN_BOOLEAN_BOOLEAN_BOOLEAN) (gpointer data1, gboolean arg_1, gboolean arg_2, gboolean arg_3, gboolean arg_4, gpointer data2); - register GMarshalFunc_VOID__BOOLEAN_BOOLEAN_BOOLEAN_BOOLEAN callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (n_param_values == 5); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - data1 = closure->data; -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - data2 = param_values->data[0].v_pointer; -#line 4933 "SearchFilter.c" - } else { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - data1 = param_values->data[0].v_pointer; -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - data2 = closure->data; -#line 4939 "SearchFilter.c" - } -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - callback = (GMarshalFunc_VOID__BOOLEAN_BOOLEAN_BOOLEAN_BOOLEAN) (marshal_data ? marshal_data : cc->callback); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - callback (data1, g_value_get_boolean (param_values + 1), g_value_get_boolean (param_values + 2), g_value_get_boolean (param_values + 3), g_value_get_boolean (param_values + 4), data2); -#line 4945 "SearchFilter.c" -} - - -static void -value_search_filter_actions_init (GValue* value) -{ -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = NULL; -#line 4954 "SearchFilter.c" -} - - -static void -value_search_filter_actions_free_value (GValue* value) -{ -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (value->data[0].v_pointer) { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_unref (value->data[0].v_pointer); -#line 4965 "SearchFilter.c" - } -} - - -static void -value_search_filter_actions_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (src_value->data[0].v_pointer) { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - dest_value->data[0].v_pointer = search_filter_actions_ref (src_value->data[0].v_pointer); -#line 4978 "SearchFilter.c" - } else { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - dest_value->data[0].v_pointer = NULL; -#line 4982 "SearchFilter.c" - } -} - - -static gpointer -value_search_filter_actions_peek_pointer (const GValue* value) -{ -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return value->data[0].v_pointer; -#line 4992 "SearchFilter.c" -} - - -static gchar* -value_search_filter_actions_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (collect_values[0].v_pointer) { -#line 5004 "SearchFilter.c" - SearchFilterActions * object; - object = collect_values[0].v_pointer; -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (object->parent_instance.g_class == NULL) { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5011 "SearchFilter.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5015 "SearchFilter.c" - } -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = search_filter_actions_ref (object); -#line 5019 "SearchFilter.c" - } else { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = NULL; -#line 5023 "SearchFilter.c" - } -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return NULL; -#line 5027 "SearchFilter.c" -} - - -static gchar* -value_search_filter_actions_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - SearchFilterActions ** object_p; - object_p = collect_values[0].v_pointer; -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (!object_p) { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 5043 "SearchFilter.c" - } -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (!value->data[0].v_pointer) { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - *object_p = NULL; -#line 5049 "SearchFilter.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - *object_p = value->data[0].v_pointer; -#line 5053 "SearchFilter.c" - } else { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - *object_p = search_filter_actions_ref (value->data[0].v_pointer); -#line 5057 "SearchFilter.c" - } -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return NULL; -#line 5061 "SearchFilter.c" -} - - -GParamSpec* -param_spec_search_filter_actions (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecSearchFilterActions* spec; -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_SEARCH_FILTER_ACTIONS), NULL); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return G_PARAM_SPEC (spec); -#line 5081 "SearchFilter.c" -} - - -gpointer -value_get_search_filter_actions (const GValue* value) -{ -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SEARCH_FILTER_ACTIONS), NULL); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return value->data[0].v_pointer; -#line 5092 "SearchFilter.c" -} - - -void -value_set_search_filter_actions (GValue* value, - gpointer v_object) -{ - SearchFilterActions * old; -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SEARCH_FILTER_ACTIONS)); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - old = value->data[0].v_pointer; -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (v_object) { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SEARCH_FILTER_ACTIONS)); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = v_object; -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_ref (value->data[0].v_pointer); -#line 5115 "SearchFilter.c" - } else { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = NULL; -#line 5119 "SearchFilter.c" - } -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (old) { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_unref (old); -#line 5125 "SearchFilter.c" - } -} - - -void -value_take_search_filter_actions (GValue* value, - gpointer v_object) -{ - SearchFilterActions * old; -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SEARCH_FILTER_ACTIONS)); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - old = value->data[0].v_pointer; -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (v_object) { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SEARCH_FILTER_ACTIONS)); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = v_object; -#line 5147 "SearchFilter.c" - } else { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = NULL; -#line 5151 "SearchFilter.c" - } -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (old) { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_unref (old); -#line 5157 "SearchFilter.c" - } -} - - -static void -search_filter_actions_class_init (SearchFilterActionsClass * klass) -{ -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_parent_class = g_type_class_peek_parent (klass); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - ((SearchFilterActionsClass *) klass)->finalize = search_filter_actions_finalize; -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_type_class_add_private (klass, sizeof (SearchFilterActionsPrivate)); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_signals[SEARCH_FILTER_ACTIONS_FLAGGED_TOGGLED_SIGNAL] = g_signal_new ("flagged-toggled", TYPE_SEARCH_FILTER_ACTIONS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_signals[SEARCH_FILTER_ACTIONS_PHOTOS_TOGGLED_SIGNAL] = g_signal_new ("photos-toggled", TYPE_SEARCH_FILTER_ACTIONS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_signals[SEARCH_FILTER_ACTIONS_VIDEOS_TOGGLED_SIGNAL] = g_signal_new ("videos-toggled", TYPE_SEARCH_FILTER_ACTIONS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_signals[SEARCH_FILTER_ACTIONS_RAW_TOGGLED_SIGNAL] = g_signal_new ("raw-toggled", TYPE_SEARCH_FILTER_ACTIONS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_signals[SEARCH_FILTER_ACTIONS_RATING_CHANGED_SIGNAL] = g_signal_new ("rating-changed", TYPE_SEARCH_FILTER_ACTIONS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__ENUM, G_TYPE_NONE, 1, TYPE_RATING_FILTER); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_signals[SEARCH_FILTER_ACTIONS_TEXT_CHANGED_SIGNAL] = g_signal_new ("text-changed", TYPE_SEARCH_FILTER_ACTIONS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); -#line 5183 "SearchFilter.c" - /** - * fired when the kinds of media present in the current view change (e.g., a video becomes - * available in the view through a new import operation or no raw photos are available in - * the view anymore because the last one was moved to the trash) - */ -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_signals[SEARCH_FILTER_ACTIONS_MEDIA_CONTEXT_CHANGED_SIGNAL] = g_signal_new ("media-context-changed", TYPE_SEARCH_FILTER_ACTIONS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__BOOLEAN_BOOLEAN_BOOLEAN_BOOLEAN, G_TYPE_NONE, 4, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_signals[SEARCH_FILTER_ACTIONS_CRITERIA_CHANGED_SIGNAL] = g_signal_new ("criteria-changed", TYPE_SEARCH_FILTER_ACTIONS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 5193 "SearchFilter.c" -} - - -static void -search_filter_actions_instance_init (SearchFilterActions * self) -{ -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv = SEARCH_FILTER_ACTIONS_GET_PRIVATE (self); -#line 367 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->criteria = SEARCH_FILTER_CRITERIA_ALL; -#line 368 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_text = NULL; -#line 369 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->has_flagged = TRUE; -#line 370 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->has_photos = TRUE; -#line 371 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->has_videos = TRUE; -#line 372 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->has_raw = TRUE; -#line 373 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->can_filter_by_stars = TRUE; -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->ref_count = 1; -#line 5218 "SearchFilter.c" -} - - -static void -search_filter_actions_finalize (SearchFilterActions * obj) -{ - SearchFilterActions * self; -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_FILTER_ACTIONS, SearchFilterActions); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_destroy (self); -#line 368 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _text_action_unref0 (self->priv->_text); -#line 5232 "SearchFilter.c" -} - - -GType -search_filter_actions_get_type (void) -{ - static volatile gsize search_filter_actions_type_id__volatile = 0; - if (g_once_init_enter (&search_filter_actions_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_search_filter_actions_init, value_search_filter_actions_free_value, value_search_filter_actions_copy_value, value_search_filter_actions_peek_pointer, "p", value_search_filter_actions_collect_value, "p", value_search_filter_actions_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (SearchFilterActionsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_actions_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterActions), 0, (GInstanceInitFunc) search_filter_actions_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType search_filter_actions_type_id; - search_filter_actions_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SearchFilterActions", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&search_filter_actions_type_id__volatile, search_filter_actions_type_id); - } - return search_filter_actions_type_id__volatile; -} - - -gpointer -search_filter_actions_ref (gpointer instance) -{ - SearchFilterActions * self; - self = instance; -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_atomic_int_inc (&self->ref_count); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return instance; -#line 5261 "SearchFilter.c" -} - - -void -search_filter_actions_unref (gpointer instance) -{ - SearchFilterActions * self; - self = instance; -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - SEARCH_FILTER_ACTIONS_GET_CLASS (self)->finalize (self); -#line 329 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 5276 "SearchFilter.c" - } -} - - -static void -_search_filter_toolbar_on_media_context_changed_search_filter_actions_media_context_changed (SearchFilterActions* _sender, - gboolean has_photos, - gboolean has_videos, - gboolean has_raw, - gboolean has_flagged, - gpointer self) -{ -#line 1156 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_on_media_context_changed ((SearchFilterToolbar*) self, has_photos, has_videos, has_raw, has_flagged); -#line 5291 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_on_flagged_toggled_search_filter_actions_flagged_toggled (SearchFilterActions* _sender, - gboolean on, - gpointer self) -{ -#line 1158 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_on_flagged_toggled ((SearchFilterToolbar*) self); -#line 5302 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_on_photos_toggled_search_filter_actions_photos_toggled (SearchFilterActions* _sender, - gboolean on, - gpointer self) -{ -#line 1159 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_on_photos_toggled ((SearchFilterToolbar*) self); -#line 5313 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_on_videos_toggled_search_filter_actions_videos_toggled (SearchFilterActions* _sender, - gboolean on, - gpointer self) -{ -#line 1160 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_on_videos_toggled ((SearchFilterToolbar*) self); -#line 5324 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_on_raw_toggled_search_filter_actions_raw_toggled (SearchFilterActions* _sender, - gboolean on, - gpointer self) -{ -#line 1161 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_on_raw_toggled ((SearchFilterToolbar*) self); -#line 5335 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_on_rating_changed_search_filter_actions_rating_changed (SearchFilterActions* _sender, - RatingFilter filter, - gpointer self) -{ -#line 1162 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_on_rating_changed ((SearchFilterToolbar*) self); -#line 5346 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_on_search_text_changed_search_filter_actions_text_changed (SearchFilterActions* _sender, - const gchar* text, - gpointer self) -{ -#line 1163 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_on_search_text_changed ((SearchFilterToolbar*) self); -#line 5357 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_on_criteria_changed_search_filter_actions_criteria_changed (SearchFilterActions* _sender, - gpointer self) -{ -#line 1164 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_on_criteria_changed ((SearchFilterToolbar*) self); -#line 5367 "SearchFilter.c" -} - - -static gboolean -_search_filter_toolbar_on_context_menu_requested_gtk_toolbar_popup_context_menu (GtkToolbar* _sender, - gint x, - gint y, - gint button_number, - gpointer self) -{ - gboolean result; - result = search_filter_toolbar_on_context_menu_requested ((SearchFilterToolbar*) self, x, y, button_number); -#line 1166 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 5382 "SearchFilter.c" -} - - -static gpointer -_search_filter_actions_ref0 (gpointer self) -{ -#line 1051 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self ? search_filter_actions_ref (self) : NULL; -#line 5391 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_on_context_menu_close_chosen_gtk_menu_item_activate (GtkMenuItem* _sender, - gpointer self) -{ -#line 1073 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_on_context_menu_close_chosen ((SearchFilterToolbar*) self); -#line 5401 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_on_saved_search_button_clicked_search_filter_toolbar_saved_search_filter_button_clicked (SearchFilterToolbarSavedSearchFilterButton* _sender, - gpointer self) -{ -#line 1124 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_on_saved_search_button_clicked ((SearchFilterToolbar*) self); -#line 5411 "SearchFilter.c" -} - - -SearchFilterToolbar* -search_filter_toolbar_construct (GType object_type, - SearchFilterActions* actions) -{ - SearchFilterToolbar * self = NULL; - SearchFilterActions* _tmp0_; - GtkToolbar* _tmp1_; - TextAction* _tmp2_; - TextAction* _tmp3_; - SearchFilterToolbarSearchBox* _tmp4_; - GtkToolbar* _tmp5_; - GtkToolbar* _tmp6_; - GtkMenuItem* _tmp14_; - GtkMenuItem* _tmp15_; - GtkMenuItem* _tmp16_; - GtkMenu* _tmp17_; - GtkMenuItem* _tmp18_; - SearchFilterToolbarLabelToolItem* _tmp19_; - GtkToolbar* _tmp20_; - SearchFilterToolbarLabelToolItem* _tmp21_; - SearchFilterToolbarToggleActionToolButton* _tmp22_; - SearchFilterToolbarToggleActionToolButton* _tmp23_; - SearchFilterToolbarToggleActionToolButton* _tmp24_; - SearchFilterToolbarToggleActionToolButton* _tmp25_; - SearchFilterToolbarToggleActionToolButton* _tmp26_; - SearchFilterToolbarToggleActionToolButton* _tmp27_; - GtkToolbar* _tmp28_; - SearchFilterToolbarToggleActionToolButton* _tmp29_; - GtkToolbar* _tmp30_; - SearchFilterToolbarToggleActionToolButton* _tmp31_; - GtkToolbar* _tmp32_; - SearchFilterToolbarToggleActionToolButton* _tmp33_; - GtkSeparatorToolItem* _tmp34_; - GtkToolbar* _tmp35_; - GtkSeparatorToolItem* _tmp36_; - SearchFilterToolbarToggleActionToolButton* _tmp37_; - SearchFilterToolbarToggleActionToolButton* _tmp38_; - SearchFilterToolbarToggleActionToolButton* _tmp39_; - GtkToolbar* _tmp40_; - SearchFilterToolbarToggleActionToolButton* _tmp41_; - GtkSeparatorToolItem* _tmp42_; - GtkToolbar* _tmp43_; - GtkSeparatorToolItem* _tmp44_; - GMenuModel* model = NULL; - GtkBuilder* _tmp45_; - GObject* _tmp46_; - GMenuModel* _tmp47_; - SearchFilterToolbarRatingFilterButton* _tmp48_; - SearchFilterToolbarRatingFilterButton* _tmp49_; - SearchFilterToolbarRatingFilterButton* _tmp50_; - GtkToolbar* _tmp51_; - SearchFilterToolbarRatingFilterButton* _tmp52_; - GtkSeparatorToolItem* _tmp53_; - GtkToolbar* _tmp54_; - GtkSeparatorToolItem* _tmp55_; - SearchFilterToolbarSavedSearchFilterButton* _tmp56_; - SearchFilterToolbarSavedSearchFilterButton* _tmp57_; - SearchFilterToolbarSavedSearchFilterButton* _tmp58_; - SearchFilterToolbarSavedSearchFilterButton* _tmp59_; - GtkToolbar* _tmp60_; - SearchFilterToolbarSavedSearchFilterButton* _tmp61_; - GtkSeparatorToolItem* separator_align = NULL; - GtkSeparatorToolItem* _tmp62_; - GtkToolbar* _tmp63_; - GtkToolbar* _tmp64_; - SearchFilterToolbarSearchBox* _tmp65_; - GtkToolbar* _tmp66_; - GtkToolbar* _tmp67_; - GError * _inner_error_ = NULL; -#line 1050 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_FILTER_ACTIONS (actions), NULL); -#line 1050 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = (SearchFilterToolbar*) g_object_new (object_type, NULL); -#line 1051 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = _search_filter_actions_ref0 (actions); -#line 1051 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _search_filter_actions_unref0 (self->priv->actions); -#line 1051 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->actions = _tmp0_; -#line 1052 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = (GtkToolbar*) gtk_toolbar_new (); -#line 1052 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp1_); -#line 1052 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->toolbar); -#line 1052 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->toolbar = _tmp1_; -#line 1053 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (actions, "media-context-changed", (GCallback) _search_filter_toolbar_on_media_context_changed_search_filter_actions_media_context_changed, self, 0); -#line 1054 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = search_filter_actions_get_text (actions); -#line 1054 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = _tmp2_; -#line 1054 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = search_filter_toolbar_search_box_new (_tmp3_); -#line 1054 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp4_); -#line 1054 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->search_box); -#line 1054 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->search_box = _tmp4_; -#line 1056 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = self->priv->toolbar; -#line 1056 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_buildable_set_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_buildable_get_type (), GtkBuildable), "search-filter-toolbar"); -#line 1057 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = self->priv->toolbar; -#line 1057 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_toolbar_set_icon_size (_tmp6_, GTK_ICON_SIZE_SMALL_TOOLBAR); -#line 5524 "SearchFilter.c" - { - GtkBuilder* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 1060 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = self->builder; -#line 1060 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = resources_get_ui ("search_bar.ui"); -#line 1060 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp9_ = _tmp8_; -#line 1060 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_builder_add_from_resource (_tmp7_, _tmp9_, &_inner_error_); -#line 1060 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (_tmp9_); -#line 1060 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5541 "SearchFilter.c" - goto __catch603_g_error; - } - } - goto __finally603; - __catch603_g_error: - { - GError* err = NULL; - GError* _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 1059 "/home/jens/Source/shotwell/src/SearchFilter.vala" - err = _inner_error_; -#line 1059 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _inner_error_ = NULL; -#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp10_ = err; -#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp11_ = _tmp10_->message; -#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp12_ = g_strdup_printf (_ ("Error loading search bar UI: %s"), _tmp11_); -#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp13_ = _tmp12_; -#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala" - app_window_panic (_tmp13_); -#line 1062 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (_tmp13_); -#line 1059 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_error_free0 (err); -#line 5571 "SearchFilter.c" - } - __finally603: -#line 1059 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1059 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1059 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_clear_error (&_inner_error_); -#line 1059 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return NULL; -#line 5582 "SearchFilter.c" - } -#line 1071 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp14_ = self->priv->close_item; -#line 1071 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_menu_item_set_label (_tmp14_, _ ("Close")); -#line 1072 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp15_ = self->priv->close_item; -#line 1072 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_widget_get_type (), GtkWidget)); -#line 1073 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp16_ = self->priv->close_item; -#line 1073 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (_tmp16_, "activate", (GCallback) _search_filter_toolbar_on_context_menu_close_chosen_gtk_menu_item_activate, self, 0); -#line 1074 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp17_ = self->priv->close_menu; -#line 1074 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp18_ = self->priv->close_item; -#line 1074 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_menu_shell_append (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_menu_shell_get_type (), GtkMenuShell), _tmp18_); -#line 1077 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp19_ = search_filter_toolbar_label_tool_item_new (_ ("Type"), 10, 5); -#line 1077 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp19_); -#line 1077 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->label_type); -#line 1077 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->label_type = _tmp19_; -#line 1078 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp20_ = self->priv->toolbar; -#line 1078 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp21_ = self->priv->label_type; -#line 1078 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_toolbar_insert (_tmp20_, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1080 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp22_ = search_filter_toolbar_toggle_action_tool_button_new ("win.display.photos"); -#line 1080 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp22_); -#line 1080 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->toolbtn_photos); -#line 1080 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->toolbtn_photos = _tmp22_; -#line 1081 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp23_ = self->priv->toolbtn_photos; -#line 1081 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_tool_item_get_type (), GtkToolItem), _ ("Photos")); -#line 1083 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp24_ = search_filter_toolbar_toggle_action_tool_button_new ("win.display.videos"); -#line 1083 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp24_); -#line 1083 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->toolbtn_videos); -#line 1083 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->toolbtn_videos = _tmp24_; -#line 1084 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp25_ = self->priv->toolbtn_videos; -#line 1084 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_tool_item_get_type (), GtkToolItem), _ ("Videos")); -#line 1086 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp26_ = search_filter_toolbar_toggle_action_tool_button_new ("win.display.raw"); -#line 1086 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp26_); -#line 1086 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->toolbtn_raw); -#line 1086 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->toolbtn_raw = _tmp26_; -#line 1087 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp27_ = self->priv->toolbtn_raw; -#line 1087 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_tool_item_get_type (), GtkToolItem), _ ("RAW Photos")); -#line 1089 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp28_ = self->priv->toolbar; -#line 1089 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp29_ = self->priv->toolbtn_photos; -#line 1089 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_toolbar_insert (_tmp28_, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1090 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp30_ = self->priv->toolbar; -#line 1090 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp31_ = self->priv->toolbtn_videos; -#line 1090 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_toolbar_insert (_tmp30_, G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1091 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp32_ = self->priv->toolbar; -#line 1091 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp33_ = self->priv->toolbtn_raw; -#line 1091 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_toolbar_insert (_tmp32_, G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1094 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp34_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new (); -#line 1094 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp34_); -#line 1094 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->sepr_mediatype_flagged); -#line 1094 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->sepr_mediatype_flagged = _tmp34_; -#line 1095 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp35_ = self->priv->toolbar; -#line 1095 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp36_ = self->priv->sepr_mediatype_flagged; -#line 1095 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_toolbar_insert (_tmp35_, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1099 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp37_ = search_filter_toolbar_toggle_action_tool_button_new ("win.display.flagged"); -#line 1099 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp37_); -#line 1099 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->toolbtn_flag); -#line 1099 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->toolbtn_flag = _tmp37_; -#line 1100 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp38_ = self->priv->toolbtn_flag; -#line 1100 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_toggle_action_tool_button_set_label (_tmp38_, _ ("Flagged")); -#line 1101 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp39_ = self->priv->toolbtn_flag; -#line 1101 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_tool_item_get_type (), GtkToolItem), _ ("Flagged")); -#line 1103 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp40_ = self->priv->toolbar; -#line 1103 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp41_ = self->priv->toolbtn_flag; -#line 1103 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_toolbar_insert (_tmp40_, G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1106 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp42_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new (); -#line 1106 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp42_); -#line 1106 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->sepr_flagged_rating); -#line 1106 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->sepr_flagged_rating = _tmp42_; -#line 1107 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp43_ = self->priv->toolbar; -#line 1107 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp44_ = self->priv->sepr_flagged_rating; -#line 1107 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_toolbar_insert (_tmp43_, G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1110 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp45_ = self->builder; -#line 1110 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp46_ = gtk_builder_get_object (_tmp45_, "popup-menu"); -#line 1110 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp47_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp46_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp46_) : NULL); -#line 1110 "/home/jens/Source/shotwell/src/SearchFilter.vala" - model = _tmp47_; -#line 1111 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp48_ = search_filter_toolbar_rating_filter_button_new (model); -#line 1111 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp48_); -#line 1111 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->rating_button); -#line 1111 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->rating_button = _tmp48_; -#line 1112 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp49_ = self->priv->rating_button; -#line 1112 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_rating_filter_button_set_label (_tmp49_, _ ("Rating")); -#line 1113 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp50_ = self->priv->rating_button; -#line 1113 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_tool_item_set_expand (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_tool_item_get_type (), GtkToolItem), FALSE); -#line 1114 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp51_ = self->priv->toolbar; -#line 1114 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp52_ = self->priv->rating_button; -#line 1114 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_toolbar_insert (_tmp51_, G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1117 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp53_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new (); -#line 1117 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp53_); -#line 1117 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->sepr_rating_saved); -#line 1117 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->sepr_rating_saved = _tmp53_; -#line 1118 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp54_ = self->priv->toolbar; -#line 1118 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp55_ = self->priv->sepr_rating_saved; -#line 1118 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_toolbar_insert (_tmp54_, G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1121 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp56_ = self->priv->saved_search_button; -#line 1121 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_tool_item_set_expand (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, gtk_tool_item_get_type (), GtkToolItem), FALSE); -#line 1122 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp57_ = self->priv->saved_search_button; -#line 1122 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_filter_button_set_label (_tmp57_, _ ("Saved Search")); -#line 1123 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp58_ = self->priv->saved_search_button; -#line 1123 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_tool_item_get_type (), GtkToolItem), _ ("Use a saved search to filter items in the current view")); -#line 1124 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp59_ = self->priv->saved_search_button; -#line 1124 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (_tmp59_, "clicked", (GCallback) _search_filter_toolbar_on_saved_search_button_clicked_search_filter_toolbar_saved_search_filter_button_clicked, self, 0); -#line 1125 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp60_ = self->priv->toolbar; -#line 1125 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp61_ = self->priv->saved_search_button; -#line 1125 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_toolbar_insert (_tmp60_, G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1128 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp62_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new (); -#line 1128 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp62_); -#line 1128 "/home/jens/Source/shotwell/src/SearchFilter.vala" - separator_align = _tmp62_; -#line 1129 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_tool_item_set_expand (G_TYPE_CHECK_INSTANCE_CAST (separator_align, gtk_tool_item_get_type (), GtkToolItem), TRUE); -#line 1130 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_separator_tool_item_set_draw (separator_align, FALSE); -#line 1131 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp63_ = self->priv->toolbar; -#line 1131 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_toolbar_insert (_tmp63_, G_TYPE_CHECK_INSTANCE_CAST (separator_align, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1134 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp64_ = self->priv->toolbar; -#line 1134 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp65_ = self->priv->search_box; -#line 1134 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_toolbar_insert (_tmp64_, G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 1136 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp66_ = self->priv->toolbar; -#line 1136 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, gtk_widget_get_type (), GtkWidget)); -#line 1139 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (actions, "flagged-toggled", (GCallback) _search_filter_toolbar_on_flagged_toggled_search_filter_actions_flagged_toggled, self, 0); -#line 1140 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (actions, "photos-toggled", (GCallback) _search_filter_toolbar_on_photos_toggled_search_filter_actions_photos_toggled, self, 0); -#line 1141 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (actions, "videos-toggled", (GCallback) _search_filter_toolbar_on_videos_toggled_search_filter_actions_videos_toggled, self, 0); -#line 1142 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (actions, "raw-toggled", (GCallback) _search_filter_toolbar_on_raw_toggled_search_filter_actions_raw_toggled, self, 0); -#line 1143 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (actions, "rating-changed", (GCallback) _search_filter_toolbar_on_rating_changed_search_filter_actions_rating_changed, self, 0); -#line 1144 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (actions, "text-changed", (GCallback) _search_filter_toolbar_on_search_text_changed_search_filter_actions_text_changed, self, 0); -#line 1145 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (actions, "criteria-changed", (GCallback) _search_filter_toolbar_on_criteria_changed_search_filter_actions_criteria_changed, self, 0); -#line 1148 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp67_ = self->priv->toolbar; -#line 1148 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (_tmp67_, "popup-context-menu", (GCallback) _search_filter_toolbar_on_context_menu_requested_gtk_toolbar_popup_context_menu, self, 0); -#line 1150 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_on_media_context_changed (self, search_filter_actions_get_has_photos (actions), search_filter_actions_get_has_videos (actions), search_filter_actions_get_has_raw (actions), search_filter_actions_get_has_flagged (actions)); -#line 1050 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (separator_align); -#line 1050 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (model); -#line 1050 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self; -#line 5836 "SearchFilter.c" -} - - -SearchFilterToolbar* -search_filter_toolbar_new (SearchFilterActions* actions) -{ -#line 1050 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return search_filter_toolbar_construct (TYPE_SEARCH_FILTER_TOOLBAR, actions); -#line 5845 "SearchFilter.c" -} - - -static void -search_filter_toolbar_on_media_context_changed (SearchFilterToolbar* self, - gboolean has_photos, - gboolean has_videos, - gboolean has_raw, - gboolean has_flagged) -{ - gboolean _tmp0_ = FALSE; -#line 1169 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1171 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (has_photos) { -#line 1171 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = TRUE; -#line 5863 "SearchFilter.c" - } else { -#line 1171 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = has_raw; -#line 5867 "SearchFilter.c" - } -#line 1171 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp0_) { -#line 5871 "SearchFilter.c" - SearchFilterToolbarToggleActionToolButton* _tmp1_; -#line 1174 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = self->priv->toolbtn_photos; -#line 1174 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp1_, RESOURCES_ICON_FILTER_PHOTOS); -#line 5877 "SearchFilter.c" - } else { - SearchFilterToolbarToggleActionToolButton* _tmp2_; -#line 1176 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = self->priv->toolbtn_photos; -#line 1176 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp2_, RESOURCES_ICON_FILTER_PHOTOS_DISABLED); -#line 5884 "SearchFilter.c" - } -#line 1178 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (has_videos) { -#line 5888 "SearchFilter.c" - SearchFilterToolbarToggleActionToolButton* _tmp3_; -#line 1179 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = self->priv->toolbtn_videos; -#line 1179 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp3_, RESOURCES_ICON_FILTER_VIDEOS); -#line 5894 "SearchFilter.c" - } else { - SearchFilterToolbarToggleActionToolButton* _tmp4_; -#line 1181 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = self->priv->toolbtn_videos; -#line 1181 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp4_, RESOURCES_ICON_FILTER_VIDEOS_DISABLED); -#line 5901 "SearchFilter.c" - } -#line 1183 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (has_raw) { -#line 5905 "SearchFilter.c" - SearchFilterToolbarToggleActionToolButton* _tmp5_; -#line 1184 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = self->priv->toolbtn_raw; -#line 1184 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp5_, RESOURCES_ICON_FILTER_RAW); -#line 5911 "SearchFilter.c" - } else { - SearchFilterToolbarToggleActionToolButton* _tmp6_; -#line 1186 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = self->priv->toolbtn_raw; -#line 1186 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp6_, RESOURCES_ICON_FILTER_RAW_DISABLED); -#line 5918 "SearchFilter.c" - } -#line 1188 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (has_flagged) { -#line 5922 "SearchFilter.c" - SearchFilterToolbarToggleActionToolButton* _tmp7_; -#line 1189 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = self->priv->toolbtn_flag; -#line 1189 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp7_, RESOURCES_ICON_FILTER_FLAGGED); -#line 5928 "SearchFilter.c" - } else { - SearchFilterToolbarToggleActionToolButton* _tmp8_; -#line 1191 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = self->priv->toolbtn_flag; -#line 1191 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_toggle_action_tool_button_set_icon_name (_tmp8_, RESOURCES_ICON_FILTER_FLAGGED_DISABLED); -#line 5935 "SearchFilter.c" - } -} - - -static gboolean -search_filter_toolbar_on_context_menu_requested (SearchFilterToolbar* self, - gint x, - gint y, - gint button) -{ - gboolean result = FALSE; - GtkMenu* _tmp0_; -#line 1195 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SEARCH_FILTER_TOOLBAR (self), FALSE); -#line 1196 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->close_menu; -#line 1196 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_menu_popup (_tmp0_, NULL, NULL, NULL, NULL, (guint) button, gtk_get_current_event_time ()); -#line 1197 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = FALSE; -#line 1197 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 5958 "SearchFilter.c" -} - - -static GVariant* -_variant_new39 (gboolean value) -{ -#line 1214 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 5967 "SearchFilter.c" -} - - -static void -search_filter_toolbar_on_context_menu_close_chosen (SearchFilterToolbar* self) -{ - AppWindow* aw = NULL; - LibraryWindow* _tmp0_; - GSimpleAction* action = NULL; - AppWindow* _tmp1_; - GAction* _tmp2_; - GSimpleAction* _tmp3_; - GSimpleAction* _tmp4_; -#line 1202 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1203 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = library_window_get_app (); -#line 1203 "/home/jens/Source/shotwell/src/SearchFilter.vala" - aw = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_APP_WINDOW, AppWindow); -#line 1208 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = aw; -#line 1208 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_action_map_get_type (), GActionMap), "CommonDisplaySearchbar"); -#line 1208 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp2_) : NULL); -#line 1208 "/home/jens/Source/shotwell/src/SearchFilter.vala" - action = _tmp3_; -#line 1212 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = action; -#line 1212 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp4_ != NULL) { -#line 5999 "SearchFilter.c" - GSimpleAction* _tmp5_; - GVariant* _tmp6_; -#line 1214 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = action; -#line 1214 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = _variant_new39 (FALSE); -#line 1214 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit_by_name (_tmp5_, "change-state", _tmp6_); -#line 1214 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_variant_unref0 (_tmp6_); -#line 6010 "SearchFilter.c" - } -#line 1202 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (action); -#line 1202 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (aw); -#line 6016 "SearchFilter.c" -} - - -static void -search_filter_toolbar_on_flagged_toggled (SearchFilterToolbar* self) -{ -#line 1218 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1219 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_update (self); -#line 6027 "SearchFilter.c" -} - - -static void -search_filter_toolbar_on_videos_toggled (SearchFilterToolbar* self) -{ -#line 1222 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1223 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_update (self); -#line 6038 "SearchFilter.c" -} - - -static void -search_filter_toolbar_on_photos_toggled (SearchFilterToolbar* self) -{ -#line 1226 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1227 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_update (self); -#line 6049 "SearchFilter.c" -} - - -static void -search_filter_toolbar_on_raw_toggled (SearchFilterToolbar* self) -{ -#line 1230 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1231 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_update (self); -#line 6060 "SearchFilter.c" -} - - -static void -search_filter_toolbar_on_search_text_changed (SearchFilterToolbar* self) -{ -#line 1234 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1235 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_update (self); -#line 6071 "SearchFilter.c" -} - - -static GVariant* -_variant_new40 (gboolean value) -{ -#line 1249 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 6080 "SearchFilter.c" -} - - -static void -search_filter_toolbar_on_rating_changed (SearchFilterToolbar* self) -{ - AppWindow* aw = NULL; - LibraryWindow* _tmp0_; - AppWindow* _tmp1_; - GSimpleAction* action = NULL; - AppWindow* _tmp2_; - GAction* _tmp3_; - GSimpleAction* _tmp4_; - GSimpleAction* _tmp5_; -#line 1238 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1239 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = library_window_get_app (); -#line 1239 "/home/jens/Source/shotwell/src/SearchFilter.vala" - aw = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_APP_WINDOW, AppWindow); -#line 1241 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = aw; -#line 1241 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp1_ == NULL) { -#line 1242 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (aw); -#line 1242 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return; -#line 6109 "SearchFilter.c" - } -#line 1244 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = aw; -#line 1244 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, g_action_map_get_type (), GActionMap), "CommonDisplaySearchbar"); -#line 1244 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp3_) : NULL); -#line 1244 "/home/jens/Source/shotwell/src/SearchFilter.vala" - action = _tmp4_; -#line 1248 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = action; -#line 1248 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp5_ != NULL) { -#line 6123 "SearchFilter.c" - GSimpleAction* _tmp6_; - GVariant* _tmp7_; -#line 1249 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = action; -#line 1249 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = _variant_new40 (TRUE); -#line 1249 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit_by_name (_tmp6_, "change-state", _tmp7_); -#line 1249 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_variant_unref0 (_tmp7_); -#line 6134 "SearchFilter.c" - } -#line 1252 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_update (self); -#line 1238 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (action); -#line 1238 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (aw); -#line 6142 "SearchFilter.c" -} - - -static void -search_filter_toolbar_on_criteria_changed (SearchFilterToolbar* self) -{ -#line 1258 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1259 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_update (self); -#line 6153 "SearchFilter.c" -} - - -static gpointer -_view_filter_ref0 (gpointer self) -{ -#line 1266 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self ? view_filter_ref (self) : NULL; -#line 6162 "SearchFilter.c" -} - - -void -search_filter_toolbar_set_view_filter (SearchFilterToolbar* self, - SearchViewFilter* search_filter) -{ - SearchViewFilter* _tmp0_; - SearchViewFilter* _tmp1_; - SearchFilterActions* _tmp2_; - SearchFilterToolbarRatingFilterButton* _tmp3_; -#line 1262 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1262 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_VIEW_FILTER (search_filter)); -#line 1263 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->search_filter; -#line 1263 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (search_filter == _tmp0_) { -#line 1264 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return; -#line 6184 "SearchFilter.c" - } -#line 1266 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = _view_filter_ref0 (search_filter); -#line 1266 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _view_filter_unref0 (self->priv->search_filter); -#line 1266 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->search_filter = _tmp1_; -#line 1269 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = self->priv->actions; -#line 1269 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_actions_set_sensitive_for_search_criteria (_tmp2_, (SearchFilterCriteria) search_view_filter_get_criteria (search_filter)); -#line 1270 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = self->priv->rating_button; -#line 1270 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), (SEARCH_FILTER_CRITERIA_RATING & search_view_filter_get_criteria (search_filter)) != 0); -#line 1272 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_update (self); -#line 6202 "SearchFilter.c" -} - - -void -search_filter_toolbar_unset_view_filter (SearchFilterToolbar* self) -{ - DisabledViewFilter* _tmp0_; - DisabledViewFilter* _tmp1_; -#line 1275 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1276 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = disabled_view_filter_new (); -#line 1276 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = _tmp0_; -#line 1276 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_set_view_filter (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 1276 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _view_filter_unref0 (_tmp1_); -#line 6221 "SearchFilter.c" -} - - -void -search_filter_toolbar_update (SearchFilterToolbar* self) -{ - SearchViewFilter* _tmp0_; - SearchViewFilter* _tmp3_; - SearchViewFilter* _tmp4_; - SearchFilterActions* _tmp5_; - TextAction* _tmp6_; - TextAction* _tmp7_; - const gchar* _tmp8_; - const gchar* _tmp9_; - SearchViewFilter* _tmp10_; - SearchFilterActions* _tmp11_; - GSimpleAction* _tmp12_; - GSimpleAction* _tmp13_; - GVariant* _tmp14_; - GVariant* _tmp15_; - SearchViewFilter* _tmp16_; - SearchFilterActions* _tmp17_; - GSimpleAction* _tmp18_; - GSimpleAction* _tmp19_; - GVariant* _tmp20_; - GVariant* _tmp21_; - SearchViewFilter* _tmp22_; - SearchFilterActions* _tmp23_; - GSimpleAction* _tmp24_; - GSimpleAction* _tmp25_; - GVariant* _tmp26_; - GVariant* _tmp27_; - SearchViewFilter* _tmp28_; - SearchFilterActions* _tmp29_; - GSimpleAction* _tmp30_; - GSimpleAction* _tmp31_; - GVariant* _tmp32_; - GVariant* _tmp33_; - RatingFilter filter = 0; - SearchFilterActions* _tmp34_; - GSimpleAction* _tmp35_; - GSimpleAction* _tmp36_; - GVariant* _tmp37_; - GVariant* _tmp38_; - const gchar* _tmp39_; - RatingFilter _tmp40_; - SearchViewFilter* _tmp41_; - RatingFilter _tmp42_; - SearchFilterToolbarRatingFilterButton* _tmp43_; - RatingFilter _tmp44_; - SearchViewFilter* _tmp45_; - SavedSearch* _tmp46_; - SearchFilterCriteria criteria = 0; - SearchFilterActions* _tmp47_; - SearchFilterToolbarSearchBox* _tmp48_; - SearchFilterCriteria _tmp49_; - SearchFilterToolbarRatingFilterButton* _tmp50_; - SearchFilterCriteria _tmp51_; - SearchFilterToolbarToggleActionToolButton* _tmp52_; - SearchFilterCriteria _tmp53_; - SearchFilterToolbarLabelToolItem* _tmp54_; - SearchFilterCriteria _tmp55_; - SearchFilterToolbarToggleActionToolButton* _tmp56_; - SearchFilterCriteria _tmp57_; - SearchFilterToolbarToggleActionToolButton* _tmp58_; - SearchFilterCriteria _tmp59_; - SearchFilterToolbarToggleActionToolButton* _tmp60_; - SearchFilterCriteria _tmp61_; - SearchFilterToolbarSavedSearchFilterButton* _tmp62_; - SearchFilterCriteria _tmp63_; - gboolean _tmp64_ = FALSE; - SearchFilterToolbarLabelToolItem* _tmp65_; - gboolean _tmp66_; - gboolean _tmp67_; - GtkSeparatorToolItem* _tmp71_; - gboolean _tmp72_ = FALSE; - gboolean _tmp73_ = FALSE; - SearchFilterToolbarLabelToolItem* _tmp74_; - gboolean _tmp75_; - gboolean _tmp76_; - GtkSeparatorToolItem* _tmp87_; - SearchViewFilter* _tmp88_; -#line 1280 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1281 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->search_filter; -#line 1281 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (NULL == _tmp0_) { -#line 6310 "SearchFilter.c" - LibraryWindow* _tmp1_; - LibraryWindow* _tmp2_; -#line 1283 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = library_window_get_app (); -#line 1283 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = _tmp1_; -#line 1283 "/home/jens/Source/shotwell/src/SearchFilter.vala" - library_window_show_search_bar (_tmp2_, TRUE); -#line 1283 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (_tmp2_); -#line 6321 "SearchFilter.c" - } -#line 1286 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = self->priv->search_filter; -#line 1286 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _vala_assert (NULL != _tmp3_, "null != search_filter"); -#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = self->priv->search_filter; -#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = self->priv->actions; -#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = search_filter_actions_get_text (_tmp5_); -#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = _tmp6_; -#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = text_action_get_value (_tmp7_); -#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp9_ = _tmp8_; -#line 1288 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_view_filter_set_search_filter (_tmp4_, _tmp9_); -#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp10_ = self->priv->search_filter; -#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp11_ = self->priv->actions; -#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp12_ = search_filter_actions_get_flagged (_tmp11_); -#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp13_ = _tmp12_; -#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp14_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, g_action_get_type (), GAction)); -#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp15_ = _tmp14_; -#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_view_filter_set_flagged (_tmp10_, g_variant_get_boolean (_tmp15_)); -#line 1289 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_variant_unref0 (_tmp15_); -#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp16_ = self->priv->search_filter; -#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp17_ = self->priv->actions; -#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp18_ = search_filter_actions_get_videos (_tmp17_); -#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp19_ = _tmp18_; -#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp20_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, g_action_get_type (), GAction)); -#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp21_ = _tmp20_; -#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_view_filter_set_show_media_video (_tmp16_, g_variant_get_boolean (_tmp21_)); -#line 1290 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_variant_unref0 (_tmp21_); -#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp22_ = self->priv->search_filter; -#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp23_ = self->priv->actions; -#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp24_ = search_filter_actions_get_photos (_tmp23_); -#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp25_ = _tmp24_; -#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp26_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, g_action_get_type (), GAction)); -#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp27_ = _tmp26_; -#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_view_filter_set_show_media_photos (_tmp22_, g_variant_get_boolean (_tmp27_)); -#line 1292 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_variant_unref0 (_tmp27_); -#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp28_ = self->priv->search_filter; -#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp29_ = self->priv->actions; -#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp30_ = search_filter_actions_get_raw (_tmp29_); -#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp31_ = _tmp30_; -#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp32_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, g_action_get_type (), GAction)); -#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp33_ = _tmp32_; -#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_view_filter_set_show_media_raw (_tmp28_, g_variant_get_boolean (_tmp33_)); -#line 1294 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_variant_unref0 (_tmp33_); -#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp34_ = self->priv->actions; -#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp35_ = search_filter_actions_get_rating (_tmp34_); -#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp36_ = _tmp35_; -#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp37_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, g_action_get_type (), GAction)); -#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp38_ = _tmp37_; -#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp39_ = g_variant_get_string (_tmp38_, NULL); -#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp40_ = (RatingFilter) atoi (_tmp39_); -#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_variant_unref0 (_tmp38_); -#line 1296 "/home/jens/Source/shotwell/src/SearchFilter.vala" - filter = _tmp40_; -#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp41_ = self->priv->search_filter; -#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp42_ = filter; -#line 1297 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_view_filter_set_rating_filter (_tmp41_, _tmp42_); -#line 1298 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp43_ = self->priv->rating_button; -#line 1298 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp44_ = filter; -#line 1298 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_rating_filter_button_set_filter_icon (_tmp43_, _tmp44_); -#line 1300 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp45_ = self->priv->search_filter; -#line 1300 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp46_ = self->priv->saved_search; -#line 1300 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_view_filter_set_saved_search (_tmp45_, _tmp46_); -#line 1304 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp47_ = self->priv->actions; -#line 1304 "/home/jens/Source/shotwell/src/SearchFilter.vala" - criteria = search_filter_actions_get_criteria (_tmp47_); -#line 1306 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp48_ = self->priv->search_box; -#line 1306 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp49_ = criteria; -#line 1306 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_widget_get_type (), GtkWidget), (_tmp49_ & SEARCH_FILTER_CRITERIA_TEXT) != 0); -#line 1308 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp50_ = self->priv->rating_button; -#line 1308 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp51_ = criteria; -#line 1308 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_widget_get_type (), GtkWidget), (_tmp51_ & SEARCH_FILTER_CRITERIA_RATING) != 0); -#line 1310 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp52_ = self->priv->toolbtn_flag; -#line 1310 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp53_ = criteria; -#line 1310 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_widget_get_type (), GtkWidget), (_tmp53_ & SEARCH_FILTER_CRITERIA_FLAG) != 0); -#line 1312 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp54_ = self->priv->label_type; -#line 1312 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp55_ = criteria; -#line 1312 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_widget_get_type (), GtkWidget), (_tmp55_ & SEARCH_FILTER_CRITERIA_MEDIA) != 0); -#line 1313 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp56_ = self->priv->toolbtn_photos; -#line 1313 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp57_ = criteria; -#line 1313 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, gtk_widget_get_type (), GtkWidget), (_tmp57_ & SEARCH_FILTER_CRITERIA_MEDIA) != 0); -#line 1314 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp58_ = self->priv->toolbtn_videos; -#line 1314 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp59_ = criteria; -#line 1314 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_widget_get_type (), GtkWidget), (_tmp59_ & SEARCH_FILTER_CRITERIA_MEDIA) != 0); -#line 1315 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp60_ = self->priv->toolbtn_raw; -#line 1315 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp61_ = criteria; -#line 1315 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, gtk_widget_get_type (), GtkWidget), (_tmp61_ & SEARCH_FILTER_CRITERIA_MEDIA) != 0); -#line 1317 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp62_ = self->priv->saved_search_button; -#line 1317 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp63_ = criteria; -#line 1317 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_widget_get_type (), GtkWidget), (_tmp63_ & SEARCH_FILTER_CRITERIA_SAVEDSEARCH) != 0); -#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp65_ = self->priv->label_type; -#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp66_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_widget_get_type (), GtkWidget)); -#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp67_ = _tmp66_; -#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp67_) { -#line 6501 "SearchFilter.c" - SearchFilterToolbarToggleActionToolButton* _tmp68_; - gboolean _tmp69_; - gboolean _tmp70_; -#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp68_ = self->priv->toolbtn_flag; -#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp69_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, gtk_widget_get_type (), GtkWidget)); -#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp70_ = _tmp69_; -#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp64_ = _tmp70_; -#line 6513 "SearchFilter.c" - } else { -#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp64_ = FALSE; -#line 6517 "SearchFilter.c" - } -#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp71_ = self->priv->sepr_mediatype_flagged; -#line 1321 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, gtk_widget_get_type (), GtkWidget), _tmp64_); -#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp74_ = self->priv->label_type; -#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp75_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, gtk_widget_get_type (), GtkWidget)); -#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp76_ = _tmp75_; -#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp76_) { -#line 6531 "SearchFilter.c" - SearchFilterToolbarRatingFilterButton* _tmp77_; - gboolean _tmp78_; - gboolean _tmp79_; -#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp77_ = self->priv->rating_button; -#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp78_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, gtk_widget_get_type (), GtkWidget)); -#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp79_ = _tmp78_; -#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp73_ = _tmp79_; -#line 6543 "SearchFilter.c" - } else { -#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp73_ = FALSE; -#line 6547 "SearchFilter.c" - } -#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp73_) { -#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp72_ = TRUE; -#line 6553 "SearchFilter.c" - } else { - gboolean _tmp80_ = FALSE; - SearchFilterToolbarToggleActionToolButton* _tmp81_; - gboolean _tmp82_; - gboolean _tmp83_; -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp81_ = self->priv->toolbtn_flag; -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp82_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp81_, gtk_widget_get_type (), GtkWidget)); -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp83_ = _tmp82_; -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp83_) { -#line 6567 "SearchFilter.c" - SearchFilterToolbarRatingFilterButton* _tmp84_; - gboolean _tmp85_; - gboolean _tmp86_; -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp84_ = self->priv->rating_button; -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp85_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp84_, gtk_widget_get_type (), GtkWidget)); -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp86_ = _tmp85_; -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp80_ = _tmp86_; -#line 6579 "SearchFilter.c" - } else { -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp80_ = FALSE; -#line 6583 "SearchFilter.c" - } -#line 1324 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp72_ = _tmp80_; -#line 6587 "SearchFilter.c" - } -#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp87_ = self->priv->sepr_flagged_rating; -#line 1323 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp87_, gtk_widget_get_type (), GtkWidget), _tmp72_); -#line 1327 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp88_ = self->priv->search_filter; -#line 1327 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, TYPE_VIEW_FILTER, ViewFilter), "refresh"); -#line 6597 "SearchFilter.c" -} - - -static void -search_filter_toolbar_on_savedsearch_selected (SearchFilterToolbar* self, - SavedSearch* saved_search) -{ - SavedSearch* _tmp0_; -#line 1330 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1330 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SAVED_SEARCH (saved_search)); -#line 1331 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = _g_object_ref0 (saved_search); -#line 1331 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->saved_search); -#line 1331 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->saved_search = _tmp0_; -#line 1332 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_update (self); -#line 6618 "SearchFilter.c" -} - - -static void -search_filter_toolbar_disable_savedsearch (SearchFilterToolbar* self) -{ -#line 1335 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1336 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->saved_search); -#line 1336 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->saved_search = NULL; -#line 1337 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_update (self); -#line 6633 "SearchFilter.c" -} - - -static void -search_filter_toolbar_edit_dialog (SearchFilterToolbar* self, - SavedSearch* search) -{ - SearchFilterToolbarSavedSearchFilterButton* _tmp0_; - SearchFilterToolbarSavedSearchPopover* _tmp1_; - SavedSearchDialog* ssd = NULL; - SavedSearchDialog* _tmp2_; -#line 1340 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1340 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SAVED_SEARCH (search)); -#line 1341 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->saved_search_button; -#line 1341 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = _tmp0_->filter_popup; -#line 1341 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_hide (_tmp1_); -#line 1342 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = saved_search_dialog_new_edit_existing (search); -#line 1342 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp2_); -#line 1342 "/home/jens/Source/shotwell/src/SearchFilter.vala" - ssd = _tmp2_; -#line 1343 "/home/jens/Source/shotwell/src/SearchFilter.vala" - saved_search_dialog_show (ssd); -#line 1340 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (ssd); -#line 6665 "SearchFilter.c" -} - - -static void -search_filter_toolbar_delete_dialog (SearchFilterToolbar* self, - SavedSearch* search) -{ - SearchFilterToolbarSavedSearchFilterButton* _tmp0_; - SearchFilterToolbarSavedSearchPopover* _tmp1_; -#line 1346 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1346 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SAVED_SEARCH (search)); -#line 1347 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->saved_search_button; -#line 1347 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = _tmp0_->filter_popup; -#line 1347 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_hide (_tmp1_); -#line 1348 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (dialogs_confirm_delete_saved_search (search)) { -#line 6687 "SearchFilter.c" - CommandManager* _tmp2_; - CommandManager* _tmp3_; - DeleteSavedSearchCommand* _tmp4_; - DeleteSavedSearchCommand* _tmp5_; -#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = app_window_get_command_manager (); -#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = _tmp2_; -#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = delete_saved_search_command_new (search); -#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = _tmp4_; -#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" - command_manager_execute (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_COMMAND, Command)); -#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (_tmp5_); -#line 1349 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _command_manager_unref0 (_tmp3_); -#line 6706 "SearchFilter.c" - } -} - - -static void -search_filter_toolbar_add_dialog (SearchFilterToolbar* self) -{ - SearchFilterToolbarSavedSearchFilterButton* _tmp0_; - SearchFilterToolbarSavedSearchPopover* _tmp1_; - SavedSearchDialog* _tmp2_; - SavedSearchDialog* _tmp3_; -#line 1352 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1353 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->saved_search_button; -#line 1353 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = _tmp0_->filter_popup; -#line 1353 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_hide (_tmp1_); -#line 1354 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = saved_search_dialog_new (); -#line 1354 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp2_); -#line 1354 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = _tmp2_; -#line 1354 "/home/jens/Source/shotwell/src/SearchFilter.vala" - saved_search_dialog_show (_tmp3_); -#line 1354 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (_tmp3_); -#line 6736 "SearchFilter.c" -} - - -static void -search_filter_toolbar_on_popover_closed (SearchFilterToolbar* self) -{ - SearchFilterToolbarSavedSearchFilterButton* _tmp0_; - SavedSearch* _tmp1_; - SearchFilterToolbarSavedSearchFilterButton* _tmp2_; - SearchFilterToolbarSavedSearchPopover* _tmp3_; -#line 1357 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1359 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->elide_showing_again = TRUE; -#line 1360 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->saved_search_button; -#line 1360 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = self->priv->saved_search; -#line 1360 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_filter_button_set_active (_tmp0_, _tmp1_ != NULL); -#line 1361 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = self->priv->saved_search_button; -#line 1361 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = _tmp2_->filter_popup; -#line 1361 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_hide (_tmp3_); -#line 6763 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_edit_dialog_search_filter_toolbar_saved_search_popover_edit_clicked (SearchFilterToolbarSavedSearchPopover* _sender, - SavedSearch* search, - gpointer self) -{ -#line 1372 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_edit_dialog ((SearchFilterToolbar*) self, search); -#line 6774 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_on_savedsearch_selected_search_filter_toolbar_saved_search_popover_search_activated (SearchFilterToolbarSavedSearchPopover* _sender, - SavedSearch* search, - gpointer self) -{ -#line 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_on_savedsearch_selected ((SearchFilterToolbar*) self, search); -#line 6785 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_delete_dialog_search_filter_toolbar_saved_search_popover_delete_clicked (SearchFilterToolbarSavedSearchPopover* _sender, - SavedSearch* search, - gpointer self) -{ -#line 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_delete_dialog ((SearchFilterToolbar*) self, search); -#line 6796 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_add_dialog_search_filter_toolbar_saved_search_popover_add_clicked (SearchFilterToolbarSavedSearchPopover* _sender, - gpointer self) -{ -#line 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_add_dialog ((SearchFilterToolbar*) self); -#line 6806 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_on_popover_closed_search_filter_toolbar_saved_search_popover_closed (SearchFilterToolbarSavedSearchPopover* _sender, - gpointer self) -{ -#line 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_on_popover_closed ((SearchFilterToolbar*) self); -#line 6816 "SearchFilter.c" -} - - -static void -search_filter_toolbar_on_saved_search_button_clicked (SearchFilterToolbar* self) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; -#line 1364 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = self->priv->elide_showing_again; -#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp1_) { -#line 6831 "SearchFilter.c" - SavedSearch* _tmp2_; -#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = self->priv->saved_search; -#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = _tmp2_ == NULL; -#line 6837 "SearchFilter.c" - } else { -#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = FALSE; -#line 6841 "SearchFilter.c" - } -#line 1365 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp0_) { -#line 6845 "SearchFilter.c" - } else { - SavedSearch* _tmp3_; -#line 1366 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = self->priv->saved_search; -#line 1366 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp3_ != NULL) { -#line 6852 "SearchFilter.c" - SearchFilterToolbarSavedSearchFilterButton* _tmp4_; -#line 1367 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->saved_search); -#line 1367 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->saved_search = NULL; -#line 1368 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = self->priv->saved_search_button; -#line 1368 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_filter_button_set_active (_tmp4_, FALSE); -#line 1369 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_disable_savedsearch (self); -#line 6864 "SearchFilter.c" - } else { - SearchFilterToolbarSavedSearchFilterButton* _tmp5_; - SearchFilterToolbarSavedSearchPopover* _tmp6_; - SearchFilterToolbarSavedSearchFilterButton* _tmp22_; - SearchFilterToolbarSavedSearchFilterButton* _tmp23_; - SearchFilterToolbarSavedSearchPopover* _tmp24_; - SearchFilterToolbarSavedSearchFilterButton* _tmp25_; - SearchFilterToolbarSavedSearchPopover* _tmp26_; - SearchFilterToolbarSavedSearchFilterButton* _tmp27_; - SearchFilterToolbarSavedSearchPopover* _tmp28_; - SearchFilterToolbarSavedSearchFilterButton* _tmp29_; - SearchFilterToolbarSavedSearchPopover* _tmp30_; - SearchFilterToolbarSavedSearchFilterButton* _tmp31_; - SearchFilterToolbarSavedSearchPopover* _tmp32_; - SearchFilterToolbarSavedSearchFilterButton* _tmp33_; - SearchFilterToolbarSavedSearchPopover* _tmp34_; - SearchFilterToolbarSavedSearchFilterButton* _tmp35_; - SearchFilterToolbarSavedSearchPopover* _tmp36_; -#line 1371 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = self->priv->saved_search_button; -#line 1371 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = _tmp5_->filter_popup; -#line 1371 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp6_ != NULL) { -#line 6889 "SearchFilter.c" - SearchFilterToolbarSavedSearchFilterButton* _tmp7_; - SearchFilterToolbarSavedSearchPopover* _tmp8_; - guint _tmp9_; - SearchFilterToolbarSavedSearchFilterButton* _tmp10_; - SearchFilterToolbarSavedSearchPopover* _tmp11_; - guint _tmp12_; - SearchFilterToolbarSavedSearchFilterButton* _tmp13_; - SearchFilterToolbarSavedSearchPopover* _tmp14_; - guint _tmp15_; - SearchFilterToolbarSavedSearchFilterButton* _tmp16_; - SearchFilterToolbarSavedSearchPopover* _tmp17_; - guint _tmp18_; - SearchFilterToolbarSavedSearchFilterButton* _tmp19_; - SearchFilterToolbarSavedSearchPopover* _tmp20_; - guint _tmp21_; -#line 1372 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = self->priv->saved_search_button; -#line 1372 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = _tmp7_->filter_popup; -#line 1372 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("edit-clicked", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, &_tmp9_, NULL, FALSE); -#line 1372 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _search_filter_toolbar_edit_dialog_search_filter_toolbar_saved_search_popover_edit_clicked, self); -#line 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp10_ = self->priv->saved_search_button; -#line 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp11_ = _tmp10_->filter_popup; -#line 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("search-activated", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, &_tmp12_, NULL, FALSE); -#line 1373 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp11_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _search_filter_toolbar_on_savedsearch_selected_search_filter_toolbar_saved_search_popover_search_activated, self); -#line 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp13_ = self->priv->saved_search_button; -#line 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp14_ = _tmp13_->filter_popup; -#line 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("delete-clicked", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, &_tmp15_, NULL, FALSE); -#line 1374 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp14_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp15_, 0, NULL, (GCallback) _search_filter_toolbar_delete_dialog_search_filter_toolbar_saved_search_popover_delete_clicked, self); -#line 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp16_ = self->priv->saved_search_button; -#line 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp17_ = _tmp16_->filter_popup; -#line 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("add-clicked", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, &_tmp18_, NULL, FALSE); -#line 1375 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp17_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp18_, 0, NULL, (GCallback) _search_filter_toolbar_add_dialog_search_filter_toolbar_saved_search_popover_add_clicked, self); -#line 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp19_ = self->priv->saved_search_button; -#line 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp20_ = _tmp19_->filter_popup; -#line 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("closed", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, &_tmp21_, NULL, FALSE); -#line 1376 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp20_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp21_, 0, NULL, (GCallback) _search_filter_toolbar_on_popover_closed_search_filter_toolbar_saved_search_popover_closed, self); -#line 6945 "SearchFilter.c" - } -#line 1378 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp22_ = self->priv->saved_search_button; -#line 1378 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp23_ = self->priv->saved_search_button; -#line 1378 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp24_ = search_filter_toolbar_saved_search_popover_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget)); -#line 1378 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _search_filter_toolbar_saved_search_popover_unref0 (_tmp22_->filter_popup); -#line 1378 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp22_->filter_popup = _tmp24_; -#line 1379 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp25_ = self->priv->saved_search_button; -#line 1379 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp26_ = _tmp25_->filter_popup; -#line 1379 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (_tmp26_, "edit-clicked", (GCallback) _search_filter_toolbar_edit_dialog_search_filter_toolbar_saved_search_popover_edit_clicked, self, 0); -#line 1380 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp27_ = self->priv->saved_search_button; -#line 1380 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp28_ = _tmp27_->filter_popup; -#line 1380 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (_tmp28_, "search-activated", (GCallback) _search_filter_toolbar_on_savedsearch_selected_search_filter_toolbar_saved_search_popover_search_activated, self, 0); -#line 1381 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp29_ = self->priv->saved_search_button; -#line 1381 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp30_ = _tmp29_->filter_popup; -#line 1381 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (_tmp30_, "delete-clicked", (GCallback) _search_filter_toolbar_delete_dialog_search_filter_toolbar_saved_search_popover_delete_clicked, self, 0); -#line 1382 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp31_ = self->priv->saved_search_button; -#line 1382 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp32_ = _tmp31_->filter_popup; -#line 1382 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (_tmp32_, "add-clicked", (GCallback) _search_filter_toolbar_add_dialog_search_filter_toolbar_saved_search_popover_add_clicked, self, 0); -#line 1383 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp33_ = self->priv->saved_search_button; -#line 1383 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp34_ = _tmp33_->filter_popup; -#line 1383 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (_tmp34_, "closed", (GCallback) _search_filter_toolbar_on_popover_closed_search_filter_toolbar_saved_search_popover_closed, self, 0); -#line 1385 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp35_ = self->priv->saved_search_button; -#line 1385 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp36_ = _tmp35_->filter_popup; -#line 1385 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_show_all (_tmp36_); -#line 6993 "SearchFilter.c" - } - } -#line 1387 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->elide_showing_again = FALSE; -#line 6998 "SearchFilter.c" -} - - -void -search_filter_toolbar_take_focus (SearchFilterToolbar* self) -{ - SearchFilterToolbarSearchBox* _tmp0_; -#line 1390 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SEARCH_FILTER_TOOLBAR (self)); -#line 1391 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->search_box; -#line 1391 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_search_box_get_focus (_tmp0_); -#line 7012 "SearchFilter.c" -} - - -static SearchFilterToolbarLabelToolItem* -search_filter_toolbar_label_tool_item_construct (GType object_type, - const gchar* s, - gint left_padding, - gint right_padding) -{ - SearchFilterToolbarLabelToolItem * self = NULL; - GtkLabel* _tmp0_; - gboolean _tmp1_ = FALSE; - GtkLabel* _tmp6_; -#line 616 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (s != NULL, NULL); -#line 616 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = (SearchFilterToolbarLabelToolItem*) g_object_new (object_type, NULL); -#line 617 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = (GtkLabel*) gtk_label_new (s); -#line 617 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp0_); -#line 617 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->label); -#line 617 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->label = _tmp0_; -#line 618 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (left_padding != 0) { -#line 618 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = TRUE; -#line 7042 "SearchFilter.c" - } else { -#line 618 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = right_padding != 0; -#line 7046 "SearchFilter.c" - } -#line 618 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp1_) { -#line 7050 "SearchFilter.c" - GtkLabel* _tmp2_; - GtkLabel* _tmp3_; - GtkLabel* _tmp4_; - GtkLabel* _tmp5_; -#line 619 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = self->priv->label; -#line 619 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START); -#line 620 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = self->priv->label; -#line 620 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 621 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = self->priv->label; -#line 621 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), left_padding); -#line 622 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = self->priv->label; -#line 622 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), right_padding); -#line 7071 "SearchFilter.c" - } -#line 624 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = self->priv->label; -#line 624 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget)); -#line 616 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self; -#line 7079 "SearchFilter.c" -} - - -static SearchFilterToolbarLabelToolItem* -search_filter_toolbar_label_tool_item_new (const gchar* s, - gint left_padding, - gint right_padding) -{ -#line 616 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return search_filter_toolbar_label_tool_item_construct (SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM, s, left_padding, right_padding); -#line 7090 "SearchFilter.c" -} - - -static void -search_filter_toolbar_label_tool_item_class_init (SearchFilterToolbarLabelToolItemClass * klass) -{ -#line 613 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_label_tool_item_parent_class = g_type_class_peek_parent (klass); -#line 613 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_type_class_add_private (klass, sizeof (SearchFilterToolbarLabelToolItemPrivate)); -#line 613 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_CLASS (klass)->finalize = search_filter_toolbar_label_tool_item_finalize; -#line 7103 "SearchFilter.c" -} - - -static void -search_filter_toolbar_label_tool_item_instance_init (SearchFilterToolbarLabelToolItem * self) -{ -#line 613 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv = SEARCH_FILTER_TOOLBAR_LABEL_TOOL_ITEM_GET_PRIVATE (self); -#line 7112 "SearchFilter.c" -} - - -static void -search_filter_toolbar_label_tool_item_finalize (GObject * obj) -{ - SearchFilterToolbarLabelToolItem * self; -#line 613 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCH_FILTER_TOOLBAR_TYPE_LABEL_TOOL_ITEM, SearchFilterToolbarLabelToolItem); -#line 614 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->label); -#line 613 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_CLASS (search_filter_toolbar_label_tool_item_parent_class)->finalize (obj); -#line 7126 "SearchFilter.c" -} - - -static GType -search_filter_toolbar_label_tool_item_get_type (void) -{ - static volatile gsize search_filter_toolbar_label_tool_item_type_id__volatile = 0; - if (g_once_init_enter (&search_filter_toolbar_label_tool_item_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SearchFilterToolbarLabelToolItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_toolbar_label_tool_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterToolbarLabelToolItem), 0, (GInstanceInitFunc) search_filter_toolbar_label_tool_item_instance_init, NULL }; - GType search_filter_toolbar_label_tool_item_type_id; - search_filter_toolbar_label_tool_item_type_id = g_type_register_static (gtk_tool_item_get_type (), "SearchFilterToolbarLabelToolItem", &g_define_type_info, 0); - g_once_init_leave (&search_filter_toolbar_label_tool_item_type_id__volatile, search_filter_toolbar_label_tool_item_type_id); - } - return search_filter_toolbar_label_tool_item_type_id__volatile; -} - - -static SearchFilterToolbarToggleActionToolButton* -search_filter_toolbar_toggle_action_tool_button_construct (GType object_type, - const gchar* action) -{ - SearchFilterToolbarToggleActionToolButton * self = NULL; - GtkToggleButton* _tmp0_; - GtkToggleButton* _tmp1_; - GtkToggleButton* _tmp2_; - GtkToggleButton* _tmp3_; - GtkToggleButton* _tmp4_; - GtkToggleButton* _tmp5_; - GtkToggleButton* _tmp6_; -#line 631 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (action != NULL, NULL); -#line 631 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = (SearchFilterToolbarToggleActionToolButton*) g_object_new (object_type, NULL); -#line 632 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = (GtkToggleButton*) gtk_toggle_button_new (); -#line 632 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp0_); -#line 632 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->button); -#line 632 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->button = _tmp0_; -#line 633 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = self->priv->button; -#line 633 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_can_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 634 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = self->priv->button; -#line 634 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_actionable_get_type (), GtkActionable), action); -#line 635 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = self->priv->button; -#line 635 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_has_tooltip (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 636 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = self->priv->button; -#line 636 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_relief (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_button_get_type (), GtkButton), GTK_RELIEF_NONE); -#line 637 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = self->priv->button; -#line 637 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), 2); -#line 639 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = self->priv->button; -#line 639 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget)); -#line 631 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self; -#line 7194 "SearchFilter.c" -} - - -static SearchFilterToolbarToggleActionToolButton* -search_filter_toolbar_toggle_action_tool_button_new (const gchar* action) -{ -#line 631 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return search_filter_toolbar_toggle_action_tool_button_construct (SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON, action); -#line 7203 "SearchFilter.c" -} - - -static void -search_filter_toolbar_toggle_action_tool_button_set_icon_name (SearchFilterToolbarToggleActionToolButton* self, - const gchar* icon_name) -{ - GtkImage* image = NULL; - GtkToggleButton* _tmp0_; - GtkImage* _tmp1_; - GtkToggleButton* _tmp2_; - GtkImage* _tmp3_; - gboolean _tmp4_ = FALSE; - GtkToggleButton* _tmp5_; - const gchar* _tmp6_; -#line 642 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_TOGGLE_ACTION_TOOL_BUTTON (self)); -#line 642 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (icon_name != NULL); -#line 643 "/home/jens/Source/shotwell/src/SearchFilter.vala" - image = NULL; -#line 644 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->button; -#line 644 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_always_show_image (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_button_get_type (), GtkButton), TRUE); -#line 645 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = (GtkImage*) gtk_image_new_from_icon_name (icon_name, (GtkIconSize) GTK_ICON_SIZE_SMALL_TOOLBAR); -#line 645 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp1_); -#line 645 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (image); -#line 645 "/home/jens/Source/shotwell/src/SearchFilter.vala" - image = _tmp1_; -#line 646 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = self->priv->button; -#line 646 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = image; -#line 646 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_image (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_button_get_type (), GtkButton), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget)); -#line 647 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = self->priv->button; -#line 647 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = gtk_button_get_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_button_get_type (), GtkButton)); -#line 647 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (g_strcmp0 (_tmp6_, "") != 0) { -#line 7249 "SearchFilter.c" - GtkToggleButton* _tmp7_; - const gchar* _tmp8_; -#line 647 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = self->priv->button; -#line 647 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = gtk_button_get_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_button_get_type (), GtkButton)); -#line 647 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = _tmp8_ != NULL; -#line 7258 "SearchFilter.c" - } else { -#line 647 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = FALSE; -#line 7262 "SearchFilter.c" - } -#line 647 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp4_) { -#line 7266 "SearchFilter.c" - GtkImage* _tmp9_; -#line 648 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp9_ = image; -#line 648 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), 6); -#line 7272 "SearchFilter.c" - } -#line 642 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (image); -#line 7276 "SearchFilter.c" -} - - -static void -search_filter_toolbar_toggle_action_tool_button_set_label (SearchFilterToolbarToggleActionToolButton* self, - const gchar* label) -{ - GtkToggleButton* _tmp0_; -#line 652 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_TOGGLE_ACTION_TOOL_BUTTON (self)); -#line 652 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (label != NULL); -#line 653 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->button; -#line 653 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_button_get_type (), GtkButton), label); -#line 7293 "SearchFilter.c" -} - - -static void -search_filter_toolbar_toggle_action_tool_button_class_init (SearchFilterToolbarToggleActionToolButtonClass * klass) -{ -#line 628 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_toggle_action_tool_button_parent_class = g_type_class_peek_parent (klass); -#line 628 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_type_class_add_private (klass, sizeof (SearchFilterToolbarToggleActionToolButtonPrivate)); -#line 628 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_CLASS (klass)->finalize = search_filter_toolbar_toggle_action_tool_button_finalize; -#line 7306 "SearchFilter.c" -} - - -static void -search_filter_toolbar_toggle_action_tool_button_instance_init (SearchFilterToolbarToggleActionToolButton * self) -{ -#line 628 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv = SEARCH_FILTER_TOOLBAR_TOGGLE_ACTION_TOOL_BUTTON_GET_PRIVATE (self); -#line 7315 "SearchFilter.c" -} - - -static void -search_filter_toolbar_toggle_action_tool_button_finalize (GObject * obj) -{ - SearchFilterToolbarToggleActionToolButton * self; -#line 628 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCH_FILTER_TOOLBAR_TYPE_TOGGLE_ACTION_TOOL_BUTTON, SearchFilterToolbarToggleActionToolButton); -#line 629 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->button); -#line 628 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_CLASS (search_filter_toolbar_toggle_action_tool_button_parent_class)->finalize (obj); -#line 7329 "SearchFilter.c" -} - - -static GType -search_filter_toolbar_toggle_action_tool_button_get_type (void) -{ - static volatile gsize search_filter_toolbar_toggle_action_tool_button_type_id__volatile = 0; - if (g_once_init_enter (&search_filter_toolbar_toggle_action_tool_button_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SearchFilterToolbarToggleActionToolButtonClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_toolbar_toggle_action_tool_button_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterToolbarToggleActionToolButton), 0, (GInstanceInitFunc) search_filter_toolbar_toggle_action_tool_button_instance_init, NULL }; - GType search_filter_toolbar_toggle_action_tool_button_type_id; - search_filter_toolbar_toggle_action_tool_button_type_id = g_type_register_static (gtk_tool_item_get_type (), "SearchFilterToolbarToggleActionToolButton", &g_define_type_info, 0); - g_once_init_leave (&search_filter_toolbar_toggle_action_tool_button_type_id__volatile, search_filter_toolbar_toggle_action_tool_button_type_id); - } - return search_filter_toolbar_toggle_action_tool_button_type_id__volatile; -} - - -static void -_search_filter_toolbar_search_box_on_action_text_changed_text_action_text_changed (TextAction* _sender, - const gchar* text, - gpointer self) -{ -#line 688 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_search_box_on_action_text_changed ((SearchFilterToolbarSearchBox*) self, text); -#line 7354 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_search_box_on_sensitivity_changed_text_action_sensitivity_changed (TextAction* _sender, - gboolean sensitive, - gpointer self) -{ -#line 689 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_search_box_on_sensitivity_changed ((SearchFilterToolbarSearchBox*) self, sensitive); -#line 7365 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_search_box_on_visibility_changed_text_action_visibility_changed (TextAction* _sender, - gboolean visible, - gpointer self) -{ -#line 690 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_search_box_on_visibility_changed ((SearchFilterToolbarSearchBox*) self, visible); -#line 7376 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_deleted_text (GtkEntryBuffer* _sender, - guint position, - guint n_chars, - gpointer self) -{ -#line 692 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_search_box_on_entry_changed ((SearchFilterToolbarSearchBox*) self); -#line 7388 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_inserted_text (GtkEntryBuffer* _sender, - guint position, - const gchar* chars, - guint n_chars, - gpointer self) -{ -#line 693 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_search_box_on_entry_changed ((SearchFilterToolbarSearchBox*) self); -#line 7401 "SearchFilter.c" -} - - -static gpointer -_text_action_ref0 (gpointer self) -{ -#line 670 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self ? text_action_ref (self) : NULL; -#line 7410 "SearchFilter.c" -} - - -static gboolean -_search_filter_toolbar_search_box_on_escape_key_gtk_widget_key_press_event (GtkWidget* _sender, - GdkEventKey* event, - gpointer self) -{ - gboolean result; - result = search_filter_toolbar_search_box_on_escape_key ((SearchFilterToolbarSearchBox*) self, event); -#line 674 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 7423 "SearchFilter.c" -} - - -SearchFilterToolbarSearchBox* -search_filter_toolbar_search_box_construct (GType object_type, - TextAction* action) -{ - SearchFilterToolbarSearchBox * self = NULL; - TextAction* _tmp0_; - GtkSearchEntry* _tmp1_; - GtkSearchEntry* _tmp2_; - GtkSearchEntry* _tmp3_; - GtkSearchEntry* _tmp4_; - const gchar* _tmp5_; - const gchar* _tmp6_; - GtkSearchEntry* _tmp7_; - GtkEntryBuffer* _tmp8_; - GtkEntryBuffer* _tmp9_; - GtkSearchEntry* _tmp10_; - GtkEntryBuffer* _tmp11_; - GtkEntryBuffer* _tmp12_; -#line 669 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_TEXT_ACTION (action), NULL); -#line 669 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = (SearchFilterToolbarSearchBox*) g_object_new (object_type, NULL); -#line 670 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = _text_action_ref0 (action); -#line 670 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _text_action_unref0 (self->priv->action); -#line 670 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->action = _tmp0_; -#line 671 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = (GtkSearchEntry*) gtk_search_entry_new (); -#line 671 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp1_); -#line 671 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->search_entry); -#line 671 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->search_entry = _tmp1_; -#line 673 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = self->priv->search_entry; -#line 673 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_entry_set_width_chars (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_entry_get_type (), GtkEntry), 23); -#line 674 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = self->priv->search_entry; -#line 674 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), "key-press-event", (GCallback) _search_filter_toolbar_search_box_on_escape_key_gtk_widget_key_press_event, self, 0); -#line 675 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = self->priv->search_entry; -#line 675 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget)); -#line 677 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = text_action_get_value (action); -#line 677 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = _tmp5_; -#line 677 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_search_box_set_nullable_text (self, _tmp6_); -#line 679 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (action, "text-changed", (GCallback) _search_filter_toolbar_search_box_on_action_text_changed_text_action_text_changed, self, 0); -#line 680 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (action, "sensitivity-changed", (GCallback) _search_filter_toolbar_search_box_on_sensitivity_changed_text_action_sensitivity_changed, self, 0); -#line 681 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (action, "visibility-changed", (GCallback) _search_filter_toolbar_search_box_on_visibility_changed_text_action_visibility_changed, self, 0); -#line 683 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = self->priv->search_entry; -#line 683 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = gtk_entry_get_buffer (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_entry_get_type (), GtkEntry)); -#line 683 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp9_ = _tmp8_; -#line 683 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (_tmp9_, "deleted-text", (GCallback) _search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_deleted_text, self, 0); -#line 684 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp10_ = self->priv->search_entry; -#line 684 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp11_ = gtk_entry_get_buffer (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_entry_get_type (), GtkEntry)); -#line 684 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp12_ = _tmp11_; -#line 684 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (_tmp12_, "inserted-text", (GCallback) _search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_inserted_text, self, 0); -#line 669 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self; -#line 7505 "SearchFilter.c" -} - - -SearchFilterToolbarSearchBox* -search_filter_toolbar_search_box_new (TextAction* action) -{ -#line 669 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return search_filter_toolbar_search_box_construct (SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX, action); -#line 7514 "SearchFilter.c" -} - - -void -search_filter_toolbar_search_box_get_focus (SearchFilterToolbarSearchBox* self) -{ - GtkSearchEntry* _tmp0_; -#line 696 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX (self)); -#line 697 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->search_entry; -#line 697 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), "has-focus", TRUE, NULL); -#line 7528 "SearchFilter.c" -} - - -static gboolean -search_filter_toolbar_search_box_on_escape_key (SearchFilterToolbarSearchBox* self, - GdkEventKey* e) -{ - gboolean result = FALSE; - guint _tmp0_; - const gchar* _tmp1_; -#line 702 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX (self), FALSE); -#line 702 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (e != NULL, FALSE); -#line 703 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = e->keyval; -#line 703 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = gdk_keyval_name (_tmp0_); -#line 703 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (g_strcmp0 (_tmp1_, "Escape") == 0) { -#line 7549 "SearchFilter.c" - TextAction* _tmp2_; -#line 704 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = self->priv->action; -#line 704 "/home/jens/Source/shotwell/src/SearchFilter.vala" - text_action_clear (_tmp2_); -#line 7555 "SearchFilter.c" - } -#line 708 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = FALSE; -#line 708 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 7561 "SearchFilter.c" -} - - -static void -search_filter_toolbar_search_box_on_action_text_changed (SearchFilterToolbarSearchBox* self, - const gchar* text) -{ - GtkSearchEntry* _tmp0_; - GtkEntryBuffer* _tmp1_; - GtkEntryBuffer* _tmp2_; - guint _tmp3_; - GtkSearchEntry* _tmp4_; - GtkEntryBuffer* _tmp5_; - GtkEntryBuffer* _tmp6_; - guint _tmp7_; - GtkSearchEntry* _tmp8_; - GtkEntryBuffer* _tmp9_; - GtkEntryBuffer* _tmp10_; - GtkSearchEntry* _tmp11_; - GtkEntryBuffer* _tmp12_; - GtkEntryBuffer* _tmp13_; -#line 711 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX (self)); -#line 712 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->search_entry; -#line 712 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = gtk_entry_get_buffer (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_entry_get_type (), GtkEntry)); -#line 712 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = _tmp1_; -#line 712 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("deleted-text", gtk_entry_buffer_get_type (), &_tmp3_, NULL, FALSE); -#line 712 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_deleted_text, self); -#line 713 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = self->priv->search_entry; -#line 713 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = gtk_entry_get_buffer (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_entry_get_type (), GtkEntry)); -#line 713 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = _tmp5_; -#line 713 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("inserted-text", gtk_entry_buffer_get_type (), &_tmp7_, NULL, FALSE); -#line 713 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_inserted_text, self); -#line 714 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_search_box_set_nullable_text (self, text); -#line 715 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = self->priv->search_entry; -#line 715 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp9_ = gtk_entry_get_buffer (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_entry_get_type (), GtkEntry)); -#line 715 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp10_ = _tmp9_; -#line 715 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (_tmp10_, "deleted-text", (GCallback) _search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_deleted_text, self, 0); -#line 716 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp11_ = self->priv->search_entry; -#line 716 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp12_ = gtk_entry_get_buffer (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_entry_get_type (), GtkEntry)); -#line 716 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp13_ = _tmp12_; -#line 716 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (_tmp13_, "inserted-text", (GCallback) _search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_inserted_text, self, 0); -#line 7623 "SearchFilter.c" -} - - -static void -search_filter_toolbar_search_box_on_entry_changed (SearchFilterToolbarSearchBox* self) -{ - TextAction* _tmp0_; - guint _tmp1_; - TextAction* _tmp2_; - GtkSearchEntry* _tmp3_; - const gchar* _tmp4_; - TextAction* _tmp5_; -#line 719 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX (self)); -#line 720 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->action; -#line 720 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("text-changed", TYPE_TEXT_ACTION, &_tmp1_, NULL, FALSE); -#line 720 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _search_filter_toolbar_search_box_on_action_text_changed_text_action_text_changed, self); -#line 721 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = self->priv->action; -#line 721 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = self->priv->search_entry; -#line 721 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = gtk_entry_get_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_entry_get_type (), GtkEntry)); -#line 721 "/home/jens/Source/shotwell/src/SearchFilter.vala" - text_action_set_text (_tmp2_, _tmp4_); -#line 722 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = self->priv->action; -#line 722 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (_tmp5_, "text-changed", (GCallback) _search_filter_toolbar_search_box_on_action_text_changed_text_action_text_changed, self, 0); -#line 7656 "SearchFilter.c" -} - - -static void -search_filter_toolbar_search_box_on_sensitivity_changed (SearchFilterToolbarSearchBox* self, - gboolean sensitive) -{ -#line 725 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX (self)); -#line 726 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), sensitive); -#line 7668 "SearchFilter.c" -} - - -static void -search_filter_toolbar_search_box_on_visibility_changed (SearchFilterToolbarSearchBox* self, - gboolean visible) -{ -#line 729 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX (self)); -#line 730 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), visible); -#line 7680 "SearchFilter.c" -} - - -static void -search_filter_toolbar_search_box_set_nullable_text (SearchFilterToolbarSearchBox* self, - const gchar* text) -{ - const gchar* _tmp0_ = NULL; - GtkSearchEntry* _tmp1_; -#line 733 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SEARCH_BOX (self)); -#line 734 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (text != NULL) { -#line 734 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = text; -#line 7696 "SearchFilter.c" - } else { -#line 734 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = ""; -#line 7700 "SearchFilter.c" - } -#line 734 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = self->priv->search_entry; -#line 734 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_entry_set_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_entry_get_type (), GtkEntry), _tmp0_); -#line 7706 "SearchFilter.c" -} - - -static void -search_filter_toolbar_search_box_class_init (SearchFilterToolbarSearchBoxClass * klass) -{ -#line 665 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_search_box_parent_class = g_type_class_peek_parent (klass); -#line 665 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_type_class_add_private (klass, sizeof (SearchFilterToolbarSearchBoxPrivate)); -#line 665 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_CLASS (klass)->finalize = search_filter_toolbar_search_box_finalize; -#line 7719 "SearchFilter.c" -} - - -static void -search_filter_toolbar_search_box_instance_init (SearchFilterToolbarSearchBox * self) -{ -#line 665 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv = SEARCH_FILTER_TOOLBAR_SEARCH_BOX_GET_PRIVATE (self); -#line 7728 "SearchFilter.c" -} - - -static void -search_filter_toolbar_search_box_finalize (GObject * obj) -{ - SearchFilterToolbarSearchBox * self; - TextAction* _tmp0_; - guint _tmp1_; - TextAction* _tmp2_; - guint _tmp3_; - TextAction* _tmp4_; - guint _tmp5_; - GtkSearchEntry* _tmp6_; - GtkEntryBuffer* _tmp7_; - GtkEntryBuffer* _tmp8_; - guint _tmp9_; - GtkSearchEntry* _tmp10_; - GtkEntryBuffer* _tmp11_; - GtkEntryBuffer* _tmp12_; - guint _tmp13_; -#line 665 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCH_FILTER_TOOLBAR_TYPE_SEARCH_BOX, SearchFilterToolbarSearchBox); -#line 688 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->action; -#line 688 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("text-changed", TYPE_TEXT_ACTION, &_tmp1_, NULL, FALSE); -#line 688 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _search_filter_toolbar_search_box_on_action_text_changed_text_action_text_changed, self); -#line 689 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = self->priv->action; -#line 689 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("sensitivity-changed", TYPE_TEXT_ACTION, &_tmp3_, NULL, FALSE); -#line 689 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _search_filter_toolbar_search_box_on_sensitivity_changed_text_action_sensitivity_changed, self); -#line 690 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = self->priv->action; -#line 690 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("visibility-changed", TYPE_TEXT_ACTION, &_tmp5_, NULL, FALSE); -#line 690 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _search_filter_toolbar_search_box_on_visibility_changed_text_action_visibility_changed, self); -#line 692 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = self->priv->search_entry; -#line 692 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = gtk_entry_get_buffer (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_entry_get_type (), GtkEntry)); -#line 692 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = _tmp7_; -#line 692 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("deleted-text", gtk_entry_buffer_get_type (), &_tmp9_, NULL, FALSE); -#line 692 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_deleted_text, self); -#line 693 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp10_ = self->priv->search_entry; -#line 693 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp11_ = gtk_entry_get_buffer (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_entry_get_type (), GtkEntry)); -#line 693 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp12_ = _tmp11_; -#line 693 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("inserted-text", gtk_entry_buffer_get_type (), &_tmp13_, NULL, FALSE); -#line 693 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp12_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _search_filter_toolbar_search_box_on_entry_changed_gtk_entry_buffer_inserted_text, self); -#line 666 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->search_entry); -#line 667 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _text_action_unref0 (self->priv->action); -#line 665 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_CLASS (search_filter_toolbar_search_box_parent_class)->finalize (obj); -#line 7796 "SearchFilter.c" -} - - -GType -search_filter_toolbar_search_box_get_type (void) -{ - static volatile gsize search_filter_toolbar_search_box_type_id__volatile = 0; - if (g_once_init_enter (&search_filter_toolbar_search_box_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SearchFilterToolbarSearchBoxClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_toolbar_search_box_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterToolbarSearchBox), 0, (GInstanceInitFunc) search_filter_toolbar_search_box_instance_init, NULL }; - GType search_filter_toolbar_search_box_type_id; - search_filter_toolbar_search_box_type_id = g_type_register_static (gtk_tool_item_get_type (), "SearchFilterToolbarSearchBox", &g_define_type_info, 0); - g_once_init_leave (&search_filter_toolbar_search_box_type_id__volatile, search_filter_toolbar_search_box_type_id); - } - return search_filter_toolbar_search_box_type_id__volatile; -} - - -SearchFilterToolbarRatingFilterButton* -search_filter_toolbar_rating_filter_button_construct (GType object_type, - GMenuModel* model) -{ - SearchFilterToolbarRatingFilterButton * self = NULL; - GtkMenuButton* _tmp0_; - GtkMenuButton* _tmp1_; - GtkWidget* _tmp2_; - GtkWidget* _tmp3_; - GtkMenuButton* _tmp4_; - GtkMenuButton* _tmp5_; - GtkMenuButton* _tmp6_; - GtkMenuButton* _tmp7_; - GtkMenuButton* _tmp8_; -#line 742 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (G_IS_MENU_MODEL (model), NULL); -#line 742 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = (SearchFilterToolbarRatingFilterButton*) g_object_new (object_type, NULL); -#line 743 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = (GtkMenuButton*) gtk_menu_button_new (); -#line 743 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp0_); -#line 743 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->button); -#line 743 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->button = _tmp0_; -#line 745 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = self->button; -#line 745 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = search_filter_toolbar_rating_filter_button_get_filter_icon (self, RATING_FILTER_UNRATED_OR_HIGHER); -#line 745 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = _tmp2_; -#line 745 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_image (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_button_get_type (), GtkButton), _tmp3_); -#line 745 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (_tmp3_); -#line 746 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = self->button; -#line 746 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_can_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 747 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = self->button; -#line 747 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_relief (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_button_get_type (), GtkButton), GTK_RELIEF_NONE); -#line 748 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = self->button; -#line 748 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), 2); -#line 749 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = self->button; -#line 749 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_menu_button_set_menu_model (_tmp7_, model); -#line 751 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_tool_item_set_homogeneous (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tool_item_get_type (), GtkToolItem), FALSE); -#line 753 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = self->button; -#line 753 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget)); -#line 742 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self; -#line 7874 "SearchFilter.c" -} - - -SearchFilterToolbarRatingFilterButton* -search_filter_toolbar_rating_filter_button_new (GMenuModel* model) -{ -#line 742 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return search_filter_toolbar_rating_filter_button_construct (SEARCH_FILTER_TOOLBAR_TYPE_RATING_FILTER_BUTTON, model); -#line 7883 "SearchFilter.c" -} - - -static GtkWidget* -search_filter_toolbar_rating_filter_button_get_filter_icon (SearchFilterToolbarRatingFilterButton* self, - RatingFilter filter) -{ - GtkWidget* result = NULL; - gchar* filename = NULL; - GtkImage* image = NULL; - const gchar* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; - GtkImage* _tmp6_; - GtkImage* _tmp7_; -#line 756 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (SEARCH_FILTER_TOOLBAR_IS_RATING_FILTER_BUTTON (self), NULL); -#line 757 "/home/jens/Source/shotwell/src/SearchFilter.vala" - filename = NULL; -#line 759 "/home/jens/Source/shotwell/src/SearchFilter.vala" - switch (filter) { -#line 759 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_REJECTED_OR_HIGHER: -#line 7907 "SearchFilter.c" - { - gchar* _tmp0_; -#line 761 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = g_strdup (RESOURCES_ICON_FILTER_REJECTED_OR_BETTER); -#line 761 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (filename); -#line 761 "/home/jens/Source/shotwell/src/SearchFilter.vala" - filename = _tmp0_; -#line 762 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 7918 "SearchFilter.c" - } -#line 759 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_REJECTED_ONLY: -#line 7922 "SearchFilter.c" - { - gchar* _tmp1_; -#line 765 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = g_strdup (RESOURCES_ICON_RATING_REJECTED); -#line 765 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (filename); -#line 765 "/home/jens/Source/shotwell/src/SearchFilter.vala" - filename = _tmp1_; -#line 766 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 7933 "SearchFilter.c" - } - default: -#line 759 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_UNRATED_OR_HIGHER: -#line 7938 "SearchFilter.c" - { - gchar* _tmp2_; -#line 770 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = g_strdup (RESOURCES_ICON_FILTER_UNRATED_OR_BETTER); -#line 770 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (filename); -#line 770 "/home/jens/Source/shotwell/src/SearchFilter.vala" - filename = _tmp2_; -#line 771 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 7949 "SearchFilter.c" - } - } -#line 774 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = filename; -#line 774 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = resources_load_icon (_tmp3_, search_filter_toolbar_rating_filter_button_get_filter_icon_size (self, filter)); -#line 774 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = _tmp4_; -#line 774 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = (GtkImage*) gtk_image_new_from_pixbuf (_tmp5_); -#line 774 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp6_); -#line 774 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = _tmp6_; -#line 774 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (_tmp5_); -#line 774 "/home/jens/Source/shotwell/src/SearchFilter.vala" - image = _tmp7_; -#line 776 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (image, gtk_widget_get_type (), GtkWidget), 6); -#line 778 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (image, gtk_widget_get_type (), GtkWidget); -#line 778 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (filename); -#line 778 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 7976 "SearchFilter.c" -} - - -static gint -search_filter_toolbar_rating_filter_button_get_filter_icon_size (SearchFilterToolbarRatingFilterButton* self, - RatingFilter filter) -{ - gint result = 0; - gint icon_base = 0; - gint icon_star_base = 0; - gint icon_plus = 0; -#line 781 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (SEARCH_FILTER_TOOLBAR_IS_RATING_FILTER_BUTTON (self), 0); -#line 782 "/home/jens/Source/shotwell/src/SearchFilter.vala" - icon_base = (gint) (SEARCH_FILTER_TOOLBAR_FILTER_ICON_BASE_WIDTH * SEARCH_FILTER_TOOLBAR_FILTER_ICON_SCALE); -#line 783 "/home/jens/Source/shotwell/src/SearchFilter.vala" - icon_star_base = (gint) (SEARCH_FILTER_TOOLBAR_FILTER_ICON_BASE_WIDTH * SEARCH_FILTER_TOOLBAR_FILTER_ICON_STAR_SCALE); -#line 784 "/home/jens/Source/shotwell/src/SearchFilter.vala" - icon_plus = (gint) (SEARCH_FILTER_TOOLBAR_FILTER_ICON_PLUS_WIDTH * SEARCH_FILTER_TOOLBAR_FILTER_ICON_STAR_SCALE); -#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala" - switch (filter) { -#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_ONE_OR_HIGHER: -#line 8000 "SearchFilter.c" - { - gint _tmp0_; - gint _tmp1_; -#line 788 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = icon_star_base; -#line 788 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = icon_plus; -#line 788 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_ + _tmp1_; -#line 788 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 8012 "SearchFilter.c" - } -#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_TWO_OR_HIGHER: -#line 8016 "SearchFilter.c" - { - gint _tmp2_; - gint _tmp3_; -#line 790 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = icon_star_base; -#line 790 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = icon_plus; -#line 790 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = (_tmp2_ * 2) + _tmp3_; -#line 790 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 8028 "SearchFilter.c" - } -#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_THREE_OR_HIGHER: -#line 8032 "SearchFilter.c" - { - gint _tmp4_; - gint _tmp5_; -#line 792 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = icon_star_base; -#line 792 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = icon_plus; -#line 792 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = (_tmp4_ * 3) + _tmp5_; -#line 792 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 8044 "SearchFilter.c" - } -#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_FOUR_OR_HIGHER: -#line 8048 "SearchFilter.c" - { - gint _tmp6_; - gint _tmp7_; -#line 794 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = icon_star_base; -#line 794 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = icon_plus; -#line 794 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = (_tmp6_ * 4) + _tmp7_; -#line 794 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 8060 "SearchFilter.c" - } -#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_FIVE_OR_HIGHER: -#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_FIVE_ONLY: -#line 8066 "SearchFilter.c" - { - gint _tmp8_; -#line 797 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = icon_star_base; -#line 797 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp8_ * 5; -#line 797 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 8075 "SearchFilter.c" - } -#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_REJECTED_OR_HIGHER: -#line 8079 "SearchFilter.c" - { -#line 799 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = RESOURCES_ICON_FILTER_REJECTED_OR_BETTER_FIXED_SIZE; -#line 799 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 8085 "SearchFilter.c" - } -#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_UNRATED_OR_HIGHER: -#line 8089 "SearchFilter.c" - { -#line 801 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = RESOURCES_ICON_FILTER_UNRATED_OR_BETTER_FIXED_SIZE; -#line 801 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 8095 "SearchFilter.c" - } -#line 786 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_REJECTED_ONLY: -#line 8099 "SearchFilter.c" - { -#line 803 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = icon_plus; -#line 803 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 8105 "SearchFilter.c" - } - default: - { -#line 805 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = icon_base; -#line 805 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 8113 "SearchFilter.c" - } - } -} - - -void -search_filter_toolbar_rating_filter_button_set_filter_icon (SearchFilterToolbarRatingFilterButton* self, - RatingFilter filter) -{ - GtkMenuButton* _tmp0_; - gchar* _tmp10_; - gchar* _tmp11_; -#line 809 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_RATING_FILTER_BUTTON (self)); -#line 810 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->button; -#line 810 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_always_show_image (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_button_get_type (), GtkButton), TRUE); -#line 811 "/home/jens/Source/shotwell/src/SearchFilter.vala" - switch (filter) { -#line 811 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_ONE_OR_HIGHER: -#line 8136 "SearchFilter.c" - { - GtkMenuButton* _tmp1_; -#line 813 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = self->button; -#line 813 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_button_get_type (), GtkButton), _ ("★+ Rating")); -#line 814 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 8145 "SearchFilter.c" - } -#line 811 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_TWO_OR_HIGHER: -#line 8149 "SearchFilter.c" - { - GtkMenuButton* _tmp2_; -#line 816 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = self->button; -#line 816 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_button_get_type (), GtkButton), _ ("★★+ Rating")); -#line 817 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 8158 "SearchFilter.c" - } -#line 811 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_THREE_OR_HIGHER: -#line 8162 "SearchFilter.c" - { - GtkMenuButton* _tmp3_; -#line 819 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = self->button; -#line 819 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_button_get_type (), GtkButton), _ ("★★★+ Rating")); -#line 820 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 8171 "SearchFilter.c" - } -#line 811 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_FOUR_OR_HIGHER: -#line 8175 "SearchFilter.c" - { - GtkMenuButton* _tmp4_; -#line 822 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = self->button; -#line 822 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_button_get_type (), GtkButton), _ ("★★★★+ Rating")); -#line 823 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 8184 "SearchFilter.c" - } -#line 811 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_FIVE_ONLY: -#line 811 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case RATING_FILTER_FIVE_OR_HIGHER: -#line 8190 "SearchFilter.c" - { - GtkMenuButton* _tmp5_; -#line 826 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = self->button; -#line 826 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_button_get_type (), GtkButton), _ ("★★★★★+ Rating")); -#line 827 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 8199 "SearchFilter.c" - } - default: - { - GtkMenuButton* _tmp6_; - GtkMenuButton* _tmp7_; - GtkWidget* _tmp8_; - GtkWidget* _tmp9_; -#line 829 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = self->button; -#line 829 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_button_get_type (), GtkButton), _ ("Rating")); -#line 830 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = self->button; -#line 830 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = search_filter_toolbar_rating_filter_button_get_filter_icon (self, filter); -#line 830 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp9_ = _tmp8_; -#line 830 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_image (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_button_get_type (), GtkButton), _tmp9_); -#line 830 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (_tmp9_); -#line 831 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 8223 "SearchFilter.c" - } - } -#line 834 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), search_filter_toolbar_rating_filter_button_get_filter_button_size (self, filter), -1); -#line 835 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp10_ = resources_get_rating_filter_tooltip (filter); -#line 835 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp11_ = _tmp10_; -#line 835 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tool_item_get_type (), GtkToolItem), _tmp11_); -#line 835 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (_tmp11_); -#line 836 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_has_tooltip (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), TRUE); -#line 837 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 8240 "SearchFilter.c" -} - - -static gint -search_filter_toolbar_rating_filter_button_get_filter_button_size (SearchFilterToolbarRatingFilterButton* self, - RatingFilter filter) -{ - gint result = 0; -#line 840 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (SEARCH_FILTER_TOOLBAR_IS_RATING_FILTER_BUTTON (self), 0); -#line 841 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = search_filter_toolbar_rating_filter_button_get_filter_icon_size (self, filter) + (2 * SEARCH_FILTER_TOOLBAR_FILTER_BUTTON_MARGIN); -#line 841 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 8255 "SearchFilter.c" -} - - -void -search_filter_toolbar_rating_filter_button_set_label (SearchFilterToolbarRatingFilterButton* self, - const gchar* label) -{ - GtkMenuButton* _tmp0_; -#line 844 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_RATING_FILTER_BUTTON (self)); -#line 844 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (label != NULL); -#line 845 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->button; -#line 845 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_button_get_type (), GtkButton), label); -#line 8272 "SearchFilter.c" -} - - -static void -search_filter_toolbar_rating_filter_button_class_init (SearchFilterToolbarRatingFilterButtonClass * klass) -{ -#line 739 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_rating_filter_button_parent_class = g_type_class_peek_parent (klass); -#line 739 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_CLASS (klass)->finalize = search_filter_toolbar_rating_filter_button_finalize; -#line 8283 "SearchFilter.c" -} - - -static void -search_filter_toolbar_rating_filter_button_instance_init (SearchFilterToolbarRatingFilterButton * self) -{ -} - - -static void -search_filter_toolbar_rating_filter_button_finalize (GObject * obj) -{ - SearchFilterToolbarRatingFilterButton * self; -#line 739 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCH_FILTER_TOOLBAR_TYPE_RATING_FILTER_BUTTON, SearchFilterToolbarRatingFilterButton); -#line 740 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->button); -#line 739 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_CLASS (search_filter_toolbar_rating_filter_button_parent_class)->finalize (obj); -#line 8303 "SearchFilter.c" -} - - -GType -search_filter_toolbar_rating_filter_button_get_type (void) -{ - static volatile gsize search_filter_toolbar_rating_filter_button_type_id__volatile = 0; - if (g_once_init_enter (&search_filter_toolbar_rating_filter_button_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SearchFilterToolbarRatingFilterButtonClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_toolbar_rating_filter_button_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterToolbarRatingFilterButton), 0, (GInstanceInitFunc) search_filter_toolbar_rating_filter_button_instance_init, NULL }; - GType search_filter_toolbar_rating_filter_button_type_id; - search_filter_toolbar_rating_filter_button_type_id = g_type_register_static (gtk_tool_item_get_type (), "SearchFilterToolbarRatingFilterButton", &g_define_type_info, 0); - g_once_init_leave (&search_filter_toolbar_rating_filter_button_type_id__volatile, search_filter_toolbar_rating_filter_button_type_id); - } - return search_filter_toolbar_rating_filter_button_type_id__volatile; -} - - -static void -_search_filter_toolbar_saved_search_filter_button_on_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 875 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_filter_button_on_clicked ((SearchFilterToolbarSavedSearchFilterButton*) self); -#line 8327 "SearchFilter.c" -} - - -SearchFilterToolbarSavedSearchFilterButton* -search_filter_toolbar_saved_search_filter_button_construct (GType object_type) -{ - SearchFilterToolbarSavedSearchFilterButton * self = NULL; - GtkToggleButton* _tmp0_; - GtkToggleButton* _tmp1_; - GtkImage* image = NULL; - GtkImage* _tmp2_; - GtkToggleButton* _tmp3_; - GtkToggleButton* _tmp4_; - GtkToggleButton* _tmp5_; - GtkToggleButton* _tmp6_; -#line 856 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = (SearchFilterToolbarSavedSearchFilterButton*) g_object_new (object_type, NULL); -#line 857 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = (GtkToggleButton*) gtk_toggle_button_new (); -#line 857 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp0_); -#line 857 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->button); -#line 857 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->button = _tmp0_; -#line 858 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = self->button; -#line 858 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_always_show_image (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_button_get_type (), GtkButton), TRUE); -#line 860 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = (GtkImage*) gtk_image_new_from_icon_name ("edit-find", (GtkIconSize) GTK_ICON_SIZE_SMALL_TOOLBAR); -#line 860 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp2_); -#line 860 "/home/jens/Source/shotwell/src/SearchFilter.vala" - image = _tmp2_; -#line 861 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (image, gtk_widget_get_type (), GtkWidget), 6); -#line 862 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = self->button; -#line 862 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_image (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_button_get_type (), GtkButton), G_TYPE_CHECK_INSTANCE_CAST (image, gtk_widget_get_type (), GtkWidget)); -#line 863 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = self->button; -#line 863 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_can_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 865 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = self->button; -#line 865 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _search_filter_toolbar_saved_search_filter_button_on_clicked_gtk_button_clicked, self, 0); -#line 867 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_filter_button_restyle (self); -#line 869 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_tool_item_set_homogeneous (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tool_item_get_type (), GtkToolItem), FALSE); -#line 871 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = self->button; -#line 871 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget)); -#line 856 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (image); -#line 856 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self; -#line 8389 "SearchFilter.c" -} - - -SearchFilterToolbarSavedSearchFilterButton* -search_filter_toolbar_saved_search_filter_button_new (void) -{ -#line 856 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return search_filter_toolbar_saved_search_filter_button_construct (SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON); -#line 8398 "SearchFilter.c" -} - - -static void -search_filter_toolbar_saved_search_filter_button_on_clicked (SearchFilterToolbarSavedSearchFilterButton* self) -{ -#line 878 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_FILTER_BUTTON (self)); -#line 879 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, search_filter_toolbar_saved_search_filter_button_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_CLICKED_SIGNAL], 0); -#line 8409 "SearchFilter.c" -} - - -void -search_filter_toolbar_saved_search_filter_button_set_active (SearchFilterToolbarSavedSearchFilterButton* self, - gboolean active) -{ - GtkToggleButton* _tmp0_; -#line 882 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_FILTER_BUTTON (self)); -#line 883 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->button; -#line 883 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_toggle_button_set_active (_tmp0_, active); -#line 8424 "SearchFilter.c" -} - - -void -search_filter_toolbar_saved_search_filter_button_set_label (SearchFilterToolbarSavedSearchFilterButton* self, - const gchar* label) -{ - GtkToggleButton* _tmp0_; -#line 886 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_FILTER_BUTTON (self)); -#line 886 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (label != NULL); -#line 887 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->button; -#line 887 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_label (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_button_get_type (), GtkButton), label); -#line 8441 "SearchFilter.c" -} - - -void -search_filter_toolbar_saved_search_filter_button_restyle (SearchFilterToolbarSavedSearchFilterButton* self) -{ - GtkToggleButton* _tmp0_; - GtkToggleButton* _tmp1_; -#line 890 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_FILTER_BUTTON (self)); -#line 891 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->button; -#line 891 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), 24, 24); -#line 892 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = self->button; -#line 892 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_relief (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_button_get_type (), GtkButton), GTK_RELIEF_NONE); -#line 8460 "SearchFilter.c" -} - - -static void -search_filter_toolbar_saved_search_filter_button_class_init (SearchFilterToolbarSavedSearchFilterButtonClass * klass) -{ -#line 850 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_filter_button_parent_class = g_type_class_peek_parent (klass); -#line 850 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_CLASS (klass)->finalize = search_filter_toolbar_saved_search_filter_button_finalize; -#line 850 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_filter_button_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_FILTER_BUTTON_CLICKED_SIGNAL] = g_signal_new ("clicked", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 8473 "SearchFilter.c" -} - - -static void -search_filter_toolbar_saved_search_filter_button_instance_init (SearchFilterToolbarSavedSearchFilterButton * self) -{ -#line 851 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->filter_popup = NULL; -#line 8482 "SearchFilter.c" -} - - -static void -search_filter_toolbar_saved_search_filter_button_finalize (GObject * obj) -{ - SearchFilterToolbarSavedSearchFilterButton * self; - GtkToggleButton* _tmp0_; - guint _tmp1_; -#line 850 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_FILTER_BUTTON, SearchFilterToolbarSavedSearchFilterButton); -#line 875 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->button; -#line 875 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp1_, NULL, FALSE); -#line 875 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_button_get_type (), GtkButton), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _search_filter_toolbar_saved_search_filter_button_on_clicked_gtk_button_clicked, self); -#line 851 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _search_filter_toolbar_saved_search_popover_unref0 (self->filter_popup); -#line 852 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->button); -#line 850 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_CLASS (search_filter_toolbar_saved_search_filter_button_parent_class)->finalize (obj); -#line 8506 "SearchFilter.c" -} - - -GType -search_filter_toolbar_saved_search_filter_button_get_type (void) -{ - static volatile gsize search_filter_toolbar_saved_search_filter_button_type_id__volatile = 0; - if (g_once_init_enter (&search_filter_toolbar_saved_search_filter_button_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SearchFilterToolbarSavedSearchFilterButtonClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_toolbar_saved_search_filter_button_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterToolbarSavedSearchFilterButton), 0, (GInstanceInitFunc) search_filter_toolbar_saved_search_filter_button_instance_init, NULL }; - GType search_filter_toolbar_saved_search_filter_button_type_id; - search_filter_toolbar_saved_search_filter_button_type_id = g_type_register_static (gtk_tool_item_get_type (), "SearchFilterToolbarSavedSearchFilterButton", &g_define_type_info, 0); - g_once_init_leave (&search_filter_toolbar_saved_search_filter_button_type_id__volatile, search_filter_toolbar_saved_search_filter_button_type_id); - } - return search_filter_toolbar_saved_search_filter_button_type_id__volatile; -} - - -static void -_search_filter_toolbar_saved_search_popover_on_edit_click_search_filter_toolbar_saved_search_popover_data_button_clicked (SearchFilterToolbarSavedSearchPopoverDataButton* _sender, - SavedSearch* search, - gpointer self) -{ -#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_on_edit_click ((SearchFilterToolbarSavedSearchPopover*) self, search); -#line 8531 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_saved_search_popover_on_delete_click_search_filter_toolbar_saved_search_popover_data_button_clicked (SearchFilterToolbarSavedSearchPopoverDataButton* _sender, - SavedSearch* search, - gpointer self) -{ -#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_on_delete_click ((SearchFilterToolbarSavedSearchPopover*) self, search); -#line 8542 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_saved_search_popover_on_add_click_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 979 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_on_add_click ((SearchFilterToolbarSavedSearchPopover*) self); -#line 8552 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_saved_search_popover_on_activate_row_gtk_list_box_row_activated (GtkListBox* _sender, - GtkListBoxRow* row, - gpointer self) -{ -#line 980 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_on_activate_row ((SearchFilterToolbarSavedSearchPopover*) self, row); -#line 8563 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_saved_search_popover_on_popover_closed_gtk_popover_closed (GtkPopover* _sender, - gpointer self) -{ -#line 981 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_on_popover_closed ((SearchFilterToolbarSavedSearchPopover*) self); -#line 8573 "SearchFilter.c" -} - - -static void -_vala_array_add133 (SearchFilterToolbarSavedSearchPopoverDataButton** * array, - int* length, - int* size, - SearchFilterToolbarSavedSearchPopoverDataButton* value) -{ -#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if ((*length) == (*size)) { -#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala" - *array = g_renew (SearchFilterToolbarSavedSearchPopoverDataButton*, *array, (*size) + 1); -#line 8589 "SearchFilter.c" - } -#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala" - (*array)[(*length)++] = value; -#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala" - (*array)[*length] = NULL; -#line 8595 "SearchFilter.c" -} - - -static void -_vala_array_add134 (SearchFilterToolbarSavedSearchPopoverDataButton** * array, - int* length, - int* size, - SearchFilterToolbarSavedSearchPopoverDataButton* value) -{ -#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if ((*length) == (*size)) { -#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala" - *array = g_renew (SearchFilterToolbarSavedSearchPopoverDataButton*, *array, (*size) + 1); -#line 8611 "SearchFilter.c" - } -#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala" - (*array)[(*length)++] = value; -#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala" - (*array)[*length] = NULL; -#line 8617 "SearchFilter.c" -} - - -SearchFilterToolbarSavedSearchPopover* -search_filter_toolbar_saved_search_popover_construct (GType object_type, - GtkWidget* relative_to) -{ - SearchFilterToolbarSavedSearchPopover* self = NULL; - GtkPopover* _tmp0_; - GtkPopover* _tmp1_; - GtkListBox* _tmp2_; - SearchFilterToolbarSavedSearchPopoverDataButton** _tmp3_; - SearchFilterToolbarSavedSearchPopoverDataButton** _tmp4_; - GtkButton* _tmp42_; - GtkButton* _tmp43_; - GtkListBox* _tmp44_; - GtkButton* _tmp45_; - GtkListBox* _tmp46_; - GtkListBox* _tmp47_; - GtkPopover* _tmp48_; - GtkListBox* _tmp49_; -#line 940 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (GTK_IS_WIDGET (relative_to), NULL); -#line 940 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = (SearchFilterToolbarSavedSearchPopover*) g_type_create_instance (object_type); -#line 941 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = (GtkPopover*) gtk_popover_new (relative_to); -#line 941 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp0_); -#line 941 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->popover); -#line 941 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->popover = _tmp0_; -#line 942 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = self->priv->popover; -#line 942 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect (_tmp1_, "closed", (GCallback) _search_filter_toolbar_saved_search_popover_on_popover_closed_gtk_popover_closed, self); -#line 943 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = (GtkListBox*) gtk_list_box_new (); -#line 943 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp2_); -#line 943 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->list_box); -#line 943 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->list_box = _tmp2_; -#line 944 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = g_new0 (SearchFilterToolbarSavedSearchPopoverDataButton*, 0 + 1); -#line 944 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->edit_buttons = (_vala_array_free (self->priv->edit_buttons, self->priv->edit_buttons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 944 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->edit_buttons = _tmp3_; -#line 944 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->edit_buttons_length1 = 0; -#line 944 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_edit_buttons_size_ = self->priv->edit_buttons_length1; -#line 945 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = g_new0 (SearchFilterToolbarSavedSearchPopoverDataButton*, 0 + 1); -#line 945 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->delete_buttons = (_vala_array_free (self->priv->delete_buttons, self->priv->delete_buttons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 945 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->delete_buttons = _tmp4_; -#line 945 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->delete_buttons_length1 = 0; -#line 945 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_delete_buttons_size_ = self->priv->delete_buttons_length1; -#line 8683 "SearchFilter.c" - { - GeeIterator* _search_it = NULL; - SavedSearchTable* _tmp5_; - SavedSearchTable* _tmp6_; - GeeCollection* _tmp7_; - GeeCollection* _tmp8_; - GeeIterator* _tmp9_; - GeeIterator* _tmp10_; -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = saved_search_table_get_instance (); -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = _tmp5_; -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = saved_search_table_get_all (_tmp6_); -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = _tmp7_; -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp10_ = _tmp9_; -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (_tmp8_); -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _saved_search_table_unref0 (_tmp6_); -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _search_it = _tmp10_; -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - while (TRUE) { -#line 8712 "SearchFilter.c" - GeeIterator* _tmp11_; - SavedSearch* search = NULL; - GeeIterator* _tmp12_; - gpointer _tmp13_; - GtkBox* row = NULL; - GtkBox* _tmp14_; - GtkBox* _tmp15_; - GtkLabel* label = NULL; - SavedSearch* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - GtkLabel* _tmp19_; - GtkLabel* _tmp20_; - GtkLabel* _tmp21_; - GtkBox* _tmp22_; - GtkLabel* _tmp23_; - SearchFilterToolbarSavedSearchPopoverDataButton* delete_button = NULL; - SavedSearch* _tmp24_; - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp25_; - GtkBox* _tmp26_; - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp27_; - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp28_; - SearchFilterToolbarSavedSearchPopoverDataButton** _tmp29_; - gint _tmp29__length1; - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp30_; - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp31_; - SearchFilterToolbarSavedSearchPopoverDataButton* edit_button = NULL; - SavedSearch* _tmp32_; - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp33_; - GtkBox* _tmp34_; - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp35_; - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp36_; - SearchFilterToolbarSavedSearchPopoverDataButton** _tmp37_; - gint _tmp37__length1; - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp38_; - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp39_; - GtkListBox* _tmp40_; - GtkBox* _tmp41_; -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp11_ = _search_it; -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (!gee_iterator_next (_tmp11_)) { -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 8757 "SearchFilter.c" - } -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp12_ = _search_it; -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp13_ = gee_iterator_get (_tmp12_); -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search = (SavedSearch*) _tmp13_; -#line 948 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp14_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 1); -#line 948 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp14_); -#line 948 "/home/jens/Source/shotwell/src/SearchFilter.vala" - row = _tmp14_; -#line 949 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp15_ = row; -#line 949 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_box_set_homogeneous (_tmp15_, FALSE); -#line 950 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp16_ = search; -#line 950 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp17_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_OBJECT, DataObject)); -#line 950 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp18_ = _tmp17_; -#line 950 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp19_ = (GtkLabel*) gtk_label_new (_tmp18_); -#line 950 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp19_); -#line 950 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp20_ = _tmp19_; -#line 950 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_free0 (_tmp18_); -#line 950 "/home/jens/Source/shotwell/src/SearchFilter.vala" - label = _tmp20_; -#line 951 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp21_ = label; -#line 951 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START); -#line 952 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp22_ = row; -#line 952 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp23_ = label; -#line 952 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_box_pack_start (_tmp22_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 3); -#line 954 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp24_ = search; -#line 954 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp25_ = search_filter_toolbar_saved_search_popover_data_button_new (_tmp24_, "edit-delete-symbolic"); -#line 954 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp25_); -#line 954 "/home/jens/Source/shotwell/src/SearchFilter.vala" - delete_button = _tmp25_; -#line 955 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp26_ = row; -#line 955 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp27_ = delete_button; -#line 955 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_box_pack_end (_tmp26_, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 956 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp28_ = delete_button; -#line 956 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect (_tmp28_, "clicked", (GCallback) _search_filter_toolbar_saved_search_popover_on_delete_click_search_filter_toolbar_saved_search_popover_data_button_clicked, self); -#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp29_ = self->priv->delete_buttons; -#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp29__length1 = self->priv->delete_buttons_length1; -#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp30_ = delete_button; -#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp31_ = _g_object_ref0 (_tmp30_); -#line 957 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _vala_array_add133 (&self->priv->delete_buttons, &self->priv->delete_buttons_length1, &self->priv->_delete_buttons_size_, _tmp31_); -#line 959 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp32_ = search; -#line 959 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp33_ = search_filter_toolbar_saved_search_popover_data_button_new (_tmp32_, "text-editor-symbolic"); -#line 959 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp33_); -#line 959 "/home/jens/Source/shotwell/src/SearchFilter.vala" - edit_button = _tmp33_; -#line 960 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp34_ = row; -#line 960 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp35_ = edit_button; -#line 960 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_box_pack_end (_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 961 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp36_ = edit_button; -#line 961 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect (_tmp36_, "clicked", (GCallback) _search_filter_toolbar_saved_search_popover_on_edit_click_search_filter_toolbar_saved_search_popover_data_button_clicked, self); -#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp37_ = self->priv->edit_buttons; -#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp37__length1 = self->priv->edit_buttons_length1; -#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp38_ = edit_button; -#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp39_ = _g_object_ref0 (_tmp38_); -#line 962 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _vala_array_add134 (&self->priv->edit_buttons, &self->priv->edit_buttons_length1, &self->priv->_edit_buttons_size_, _tmp39_); -#line 964 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp40_ = self->priv->list_box; -#line 964 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp41_ = row; -#line 964 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_list_box_insert (_tmp40_, G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget), -1); -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (edit_button); -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (delete_button); -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (label); -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (row); -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (search); -#line 8873 "SearchFilter.c" - } -#line 947 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (_search_it); -#line 8877 "SearchFilter.c" - } -#line 966 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp42_ = (GtkButton*) gtk_button_new_from_icon_name ("list-add-symbolic", (GtkIconSize) GTK_ICON_SIZE_BUTTON); -#line 966 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp42_); -#line 966 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->add); -#line 966 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->add = _tmp42_; -#line 967 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp43_ = self->priv->add; -#line 967 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect (_tmp43_, "clicked", (GCallback) _search_filter_toolbar_saved_search_popover_on_add_click_gtk_button_clicked, self); -#line 968 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp44_ = self->priv->list_box; -#line 968 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp45_ = self->priv->add; -#line 968 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_list_box_insert (_tmp44_, G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_widget_get_type (), GtkWidget), -1); -#line 969 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp46_ = self->priv->list_box; -#line 969 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect (_tmp46_, "row-activated", (GCallback) _search_filter_toolbar_saved_search_popover_on_activate_row_gtk_list_box_row_activated, self); -#line 970 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp47_ = self->priv->list_box; -#line 970 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_list_box_set_selection_mode (_tmp47_, GTK_SELECTION_NONE); -#line 971 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp48_ = self->priv->popover; -#line 971 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp49_ = self->priv->list_box; -#line 971 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_widget_get_type (), GtkWidget)); -#line 973 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_restyle (self); -#line 940 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self; -#line 8915 "SearchFilter.c" -} - - -SearchFilterToolbarSavedSearchPopover* -search_filter_toolbar_saved_search_popover_new (GtkWidget* relative_to) -{ -#line 940 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return search_filter_toolbar_saved_search_popover_construct (SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, relative_to); -#line 8924 "SearchFilter.c" -} - - -void -search_filter_toolbar_saved_search_popover_restyle (SearchFilterToolbarSavedSearchPopover* self) -{ - GtkButton* _tmp0_; - SearchFilterToolbarSavedSearchPopoverDataButton** _tmp1_; - gint _tmp1__length1; - SearchFilterToolbarSavedSearchPopoverDataButton** _tmp4_; - gint _tmp4__length1; -#line 984 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self)); -#line 985 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->add; -#line 985 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_relief (_tmp0_, GTK_RELIEF_NONE); -#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = self->priv->edit_buttons; -#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1__length1 = self->priv->edit_buttons_length1; -#line 8946 "SearchFilter.c" - { - SearchFilterToolbarSavedSearchPopoverDataButton** button_collection = NULL; - gint button_collection_length1 = 0; - gint _button_collection_size_ = 0; - gint button_it = 0; -#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala" - button_collection = _tmp1_; -#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala" - button_collection_length1 = _tmp1__length1; -#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala" - for (button_it = 0; button_it < _tmp1__length1; button_it = button_it + 1) { -#line 8958 "SearchFilter.c" - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp2_; - SearchFilterToolbarSavedSearchPopoverDataButton* button = NULL; -#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = _g_object_ref0 (button_collection[button_it]); -#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala" - button = _tmp2_; -#line 8965 "SearchFilter.c" - { - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp3_; -#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = button; -#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_data_button_restyle (_tmp3_); -#line 986 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (button); -#line 8974 "SearchFilter.c" - } - } - } -#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = self->priv->delete_buttons; -#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4__length1 = self->priv->delete_buttons_length1; -#line 8982 "SearchFilter.c" - { - SearchFilterToolbarSavedSearchPopoverDataButton** button_collection = NULL; - gint button_collection_length1 = 0; - gint _button_collection_size_ = 0; - gint button_it = 0; -#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala" - button_collection = _tmp4_; -#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala" - button_collection_length1 = _tmp4__length1; -#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala" - for (button_it = 0; button_it < _tmp4__length1; button_it = button_it + 1) { -#line 8994 "SearchFilter.c" - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp5_; - SearchFilterToolbarSavedSearchPopoverDataButton* button = NULL; -#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = _g_object_ref0 (button_collection[button_it]); -#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala" - button = _tmp5_; -#line 9001 "SearchFilter.c" - { - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp6_; -#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = button; -#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_data_button_restyle (_tmp6_); -#line 987 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (button); -#line 9010 "SearchFilter.c" - } - } - } -} - - -static gboolean -search_filter_toolbar_saved_search_popover_is_search_row (SearchFilterToolbarSavedSearchPopover* self, - GtkListBoxRow* row) -{ - gboolean result = FALSE; - GList* _tmp0_; - GList* _tmp1_; - GList* _tmp2_; - gconstpointer _tmp3_; - gboolean _tmp4_; -#line 990 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self), FALSE); -#line 990 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail ((row == NULL) || GTK_IS_LIST_BOX_ROW (row), FALSE); -#line 991 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (row == NULL) { -#line 991 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = FALSE; -#line 991 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 9037 "SearchFilter.c" - } -#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = gtk_container_get_children (G_TYPE_CHECK_INSTANCE_CAST (row, gtk_container_get_type (), GtkContainer)); -#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = _tmp0_; -#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = g_list_last (_tmp1_); -#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = _tmp2_->data; -#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE ((GtkWidget*) _tmp3_, gtk_button_get_type ()); -#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_list_free0 (_tmp1_); -#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (_tmp4_) { -#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = FALSE; -#line 992 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 9057 "SearchFilter.c" - } -#line 993 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = TRUE; -#line 993 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 9063 "SearchFilter.c" -} - - -static SavedSearch* -search_filter_toolbar_saved_search_popover_get_search (SearchFilterToolbarSavedSearchPopover* self, - GtkListBoxRow* row) -{ - SavedSearch* result = NULL; - SearchFilterToolbarSavedSearchPopoverDataButton* button = NULL; - GList* _tmp0_; - GList* _tmp1_; - GList* _tmp2_; - gconstpointer _tmp3_; - GtkWidget* _tmp4_; - GList* _tmp5_; - GList* _tmp6_; - GList* _tmp7_; - gconstpointer _tmp8_; - GtkWidget* _tmp9_; - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp10_; - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp11_; - SavedSearch* _tmp12_; - SavedSearch* _tmp13_; - SavedSearch* _tmp14_; -#line 996 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self), NULL); -#line 996 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (GTK_IS_LIST_BOX_ROW (row), NULL); -#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = gtk_container_get_children (G_TYPE_CHECK_INSTANCE_CAST (row, gtk_container_get_type (), GtkContainer)); -#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = _tmp0_; -#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = g_list_first (_tmp1_); -#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = _tmp2_->data; -#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = (GtkWidget*) _tmp3_; -#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = gtk_container_get_children (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gtk_box_get_type ()) ? ((GtkBox*) _tmp4_) : NULL, gtk_container_get_type (), GtkContainer)); -#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = _tmp5_; -#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp7_ = g_list_last (_tmp6_); -#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = _tmp7_->data; -#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp9_ = (GtkWidget*) _tmp8_; -#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON) ? ((SearchFilterToolbarSavedSearchPopoverDataButton*) _tmp9_) : NULL); -#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp11_ = _tmp10_; -#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_list_free0 (_tmp6_); -#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_list_free0 (_tmp1_); -#line 997 "/home/jens/Source/shotwell/src/SearchFilter.vala" - button = _tmp11_; -#line 998 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp12_ = search_filter_toolbar_saved_search_popover_data_button_get_search (button); -#line 998 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp13_ = _tmp12_; -#line 998 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp14_ = _g_object_ref0 (_tmp13_); -#line 998 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp14_; -#line 998 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (button); -#line 998 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 9134 "SearchFilter.c" -} - - -static void -search_filter_toolbar_saved_search_popover_on_activate_row (SearchFilterToolbarSavedSearchPopover* self, - GtkListBoxRow* row) -{ - GtkPopover* _tmp2_; -#line 1001 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self)); -#line 1001 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail ((row == NULL) || GTK_IS_LIST_BOX_ROW (row)); -#line 1002 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (search_filter_toolbar_saved_search_popover_is_search_row (self, row)) { -#line 9149 "SearchFilter.c" - SavedSearch* _tmp0_; - SavedSearch* _tmp1_; -#line 1003 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = search_filter_toolbar_saved_search_popover_get_search (self, row); -#line 1003 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = _tmp0_; -#line 1003 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_SEARCH_ACTIVATED_SIGNAL], 0, _tmp1_); -#line 1003 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (_tmp1_); -#line 9160 "SearchFilter.c" - } -#line 1004 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = self->priv->popover; -#line 1004 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 9166 "SearchFilter.c" -} - - -static void -search_filter_toolbar_saved_search_popover_on_edit_click (SearchFilterToolbarSavedSearchPopover* self, - SavedSearch* search) -{ -#line 1007 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self)); -#line 1007 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SAVED_SEARCH (search)); -#line 1008 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_EDIT_CLICKED_SIGNAL], 0, search); -#line 9180 "SearchFilter.c" -} - - -static void -search_filter_toolbar_saved_search_popover_on_delete_click (SearchFilterToolbarSavedSearchPopover* self, - SavedSearch* search) -{ -#line 1011 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self)); -#line 1011 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (IS_SAVED_SEARCH (search)); -#line 1012 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DELETE_CLICKED_SIGNAL], 0, search); -#line 9194 "SearchFilter.c" -} - - -static void -search_filter_toolbar_saved_search_popover_on_add_click (SearchFilterToolbarSavedSearchPopover* self) -{ -#line 1015 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self)); -#line 1016 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_ADD_CLICKED_SIGNAL], 0); -#line 9205 "SearchFilter.c" -} - - -static void -search_filter_toolbar_saved_search_popover_on_popover_closed (SearchFilterToolbarSavedSearchPopover* self) -{ -#line 1019 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self)); -#line 1020 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_CLOSED_SIGNAL], 0); -#line 9216 "SearchFilter.c" -} - - -void -search_filter_toolbar_saved_search_popover_show_all (SearchFilterToolbarSavedSearchPopover* self) -{ - GtkPopover* _tmp0_; -#line 1023 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self)); -#line 1024 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->popover; -#line 1024 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 9230 "SearchFilter.c" -} - - -void -search_filter_toolbar_saved_search_popover_hide (SearchFilterToolbarSavedSearchPopover* self) -{ - GtkPopover* _tmp0_; -#line 1027 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_IS_SAVED_SEARCH_POPOVER (self)); -#line 1028 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->popover; -#line 1028 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 9244 "SearchFilter.c" -} - - -static void -_search_filter_toolbar_saved_search_popover_data_button_on_click_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 927 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_data_button_on_click ((SearchFilterToolbarSavedSearchPopoverDataButton*) self); -#line 9254 "SearchFilter.c" -} - - -static SearchFilterToolbarSavedSearchPopoverDataButton* -search_filter_toolbar_saved_search_popover_data_button_construct (GType object_type, - SavedSearch* search, - const gchar* name) -{ - SearchFilterToolbarSavedSearchPopoverDataButton * self = NULL; - GtkButton* _tmp0_; - GtkButton* _tmp1_; - GtkButton* _tmp2_; -#line 916 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (IS_SAVED_SEARCH (search), NULL); -#line 916 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 916 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = (SearchFilterToolbarSavedSearchPopoverDataButton*) g_object_new (object_type, NULL); -#line 917 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = (GtkButton*) gtk_button_new_from_icon_name (name, (GtkIconSize) GTK_ICON_SIZE_SMALL_TOOLBAR); -#line 917 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp0_); -#line 917 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->button); -#line 917 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->button = _tmp0_; -#line 918 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_data_button_set_search (self, search); -#line 919 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = self->priv->button; -#line 919 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 921 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_data_button_restyle (self); -#line 923 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = self->priv->button; -#line 923 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_connect_object (_tmp2_, "clicked", (GCallback) _search_filter_toolbar_saved_search_popover_data_button_on_click_gtk_button_clicked, self, 0); -#line 916 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return self; -#line 9295 "SearchFilter.c" -} - - -static SearchFilterToolbarSavedSearchPopoverDataButton* -search_filter_toolbar_saved_search_popover_data_button_new (SavedSearch* search, - const gchar* name) -{ -#line 916 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return search_filter_toolbar_saved_search_popover_data_button_construct (SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, search, name); -#line 9305 "SearchFilter.c" -} - - -static void -search_filter_toolbar_saved_search_popover_data_button_restyle (SearchFilterToolbarSavedSearchPopoverDataButton* self) -{ - GtkButton* _tmp0_; - GtkButton* _tmp1_; -#line 930 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_IS_DATA_BUTTON (self)); -#line 931 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->button; -#line 931 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), 24, 24); -#line 932 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = self->priv->button; -#line 932 "/home/jens/Source/shotwell/src/SearchFilter.vala" - gtk_button_set_relief (_tmp1_, GTK_RELIEF_NONE); -#line 9324 "SearchFilter.c" -} - - -static void -search_filter_toolbar_saved_search_popover_data_button_on_click (SearchFilterToolbarSavedSearchPopoverDataButton* self) -{ - SavedSearch* _tmp0_; -#line 935 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_IS_DATA_BUTTON (self)); -#line 936 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->_search; -#line 936 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_emit (self, search_filter_toolbar_saved_search_popover_data_button_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_CLICKED_SIGNAL], 0, _tmp0_); -#line 9338 "SearchFilter.c" -} - - -static SavedSearch* -search_filter_toolbar_saved_search_popover_data_button_get_search (SearchFilterToolbarSavedSearchPopoverDataButton* self) -{ - SavedSearch* result; - SavedSearch* _tmp0_; -#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_IS_DATA_BUTTON (self), NULL); -#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->_search; -#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala" - result = _tmp0_; -#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return result; -#line 9355 "SearchFilter.c" -} - - -static void -search_filter_toolbar_saved_search_popover_data_button_set_search (SearchFilterToolbarSavedSearchPopoverDataButton* self, - SavedSearch* value) -{ -#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_IS_DATA_BUTTON (self)); -#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (search_filter_toolbar_saved_search_popover_data_button_get_search (self) != value) { -#line 9367 "SearchFilter.c" - SavedSearch* _tmp0_; -#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = _g_object_ref0 (value); -#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->_search); -#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_search = _tmp0_; -#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_notify_by_pspec ((GObject *) self, search_filter_toolbar_saved_search_popover_data_button_properties[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_SEARCH_PROPERTY]); -#line 9377 "SearchFilter.c" - } -} - - -static void -search_filter_toolbar_saved_search_popover_data_button_class_init (SearchFilterToolbarSavedSearchPopoverDataButtonClass * klass) -{ -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_data_button_parent_class = g_type_class_peek_parent (klass); -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_type_class_add_private (klass, sizeof (SearchFilterToolbarSavedSearchPopoverDataButtonPrivate)); -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_search_filter_toolbar_saved_search_popover_data_button_get_property; -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_search_filter_toolbar_saved_search_popover_data_button_set_property; -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_CLASS (klass)->finalize = search_filter_toolbar_saved_search_popover_data_button_finalize; -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_SEARCH_PROPERTY, search_filter_toolbar_saved_search_popover_data_button_properties[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_SEARCH_PROPERTY] = g_param_spec_object ("search", "search", "search", TYPE_SAVED_SEARCH, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_data_button_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_CLICKED_SIGNAL] = g_signal_new ("clicked", SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_SAVED_SEARCH); -#line 9399 "SearchFilter.c" -} - - -static void -search_filter_toolbar_saved_search_popover_data_button_instance_init (SearchFilterToolbarSavedSearchPopoverDataButton * self) -{ -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv = SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_GET_PRIVATE (self); -#line 911 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->button = NULL; -#line 9410 "SearchFilter.c" -} - - -static void -search_filter_toolbar_saved_search_popover_data_button_finalize (GObject * obj) -{ - SearchFilterToolbarSavedSearchPopoverDataButton * self; - GtkButton* _tmp0_; - guint _tmp1_; -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, SearchFilterToolbarSavedSearchPopoverDataButton); -#line 927 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->button; -#line 927 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp1_, NULL, FALSE); -#line 927 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _search_filter_toolbar_saved_search_popover_data_button_on_click_gtk_button_clicked, self); -#line 911 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->button); -#line 912 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->_search); -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_CLASS (search_filter_toolbar_saved_search_popover_data_button_parent_class)->finalize (obj); -#line 9434 "SearchFilter.c" -} - - -static GType -search_filter_toolbar_saved_search_popover_data_button_get_type (void) -{ - static volatile gsize search_filter_toolbar_saved_search_popover_data_button_type_id__volatile = 0; - if (g_once_init_enter (&search_filter_toolbar_saved_search_popover_data_button_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SearchFilterToolbarSavedSearchPopoverDataButtonClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_toolbar_saved_search_popover_data_button_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterToolbarSavedSearchPopoverDataButton), 0, (GInstanceInitFunc) search_filter_toolbar_saved_search_popover_data_button_instance_init, NULL }; - GType search_filter_toolbar_saved_search_popover_data_button_type_id; - search_filter_toolbar_saved_search_popover_data_button_type_id = g_type_register_static (gtk_bin_get_type (), "SearchFilterToolbarSavedSearchPopoverDataButton", &g_define_type_info, 0); - g_once_init_leave (&search_filter_toolbar_saved_search_popover_data_button_type_id__volatile, search_filter_toolbar_saved_search_popover_data_button_type_id); - } - return search_filter_toolbar_saved_search_popover_data_button_type_id__volatile; -} - - -static void -_vala_search_filter_toolbar_saved_search_popover_data_button_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - SearchFilterToolbarSavedSearchPopoverDataButton * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, SearchFilterToolbarSavedSearchPopoverDataButton); -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - switch (property_id) { -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_SEARCH_PROPERTY: -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_value_set_object (value, search_filter_toolbar_saved_search_popover_data_button_get_search (self)); -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 9468 "SearchFilter.c" - default: -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 9474 "SearchFilter.c" - } -} - - -static void -_vala_search_filter_toolbar_saved_search_popover_data_button_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - SearchFilterToolbarSavedSearchPopoverDataButton * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, SearchFilterToolbarSavedSearchPopoverDataButton); -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - switch (property_id) { -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - case SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DATA_BUTTON_SEARCH_PROPERTY: -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_data_button_set_search (self, g_value_get_object (value)); -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 9495 "SearchFilter.c" - default: -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 910 "/home/jens/Source/shotwell/src/SearchFilter.vala" - break; -#line 9501 "SearchFilter.c" - } -} - - -static void -search_filter_toolbar_value_saved_search_popover_init (GValue* value) -{ -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = NULL; -#line 9511 "SearchFilter.c" -} - - -static void -search_filter_toolbar_value_saved_search_popover_free_value (GValue* value) -{ -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (value->data[0].v_pointer) { -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_unref (value->data[0].v_pointer); -#line 9522 "SearchFilter.c" - } -} - - -static void -search_filter_toolbar_value_saved_search_popover_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (src_value->data[0].v_pointer) { -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - dest_value->data[0].v_pointer = search_filter_toolbar_saved_search_popover_ref (src_value->data[0].v_pointer); -#line 9535 "SearchFilter.c" - } else { -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - dest_value->data[0].v_pointer = NULL; -#line 9539 "SearchFilter.c" - } -} - - -static gpointer -search_filter_toolbar_value_saved_search_popover_peek_pointer (const GValue* value) -{ -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return value->data[0].v_pointer; -#line 9549 "SearchFilter.c" -} - - -static gchar* -search_filter_toolbar_value_saved_search_popover_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (collect_values[0].v_pointer) { -#line 9561 "SearchFilter.c" - SearchFilterToolbarSavedSearchPopover * object; - object = collect_values[0].v_pointer; -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (object->parent_instance.g_class == NULL) { -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 9568 "SearchFilter.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 9572 "SearchFilter.c" - } -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = search_filter_toolbar_saved_search_popover_ref (object); -#line 9576 "SearchFilter.c" - } else { -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = NULL; -#line 9580 "SearchFilter.c" - } -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return NULL; -#line 9584 "SearchFilter.c" -} - - -static gchar* -search_filter_toolbar_value_saved_search_popover_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - SearchFilterToolbarSavedSearchPopover ** object_p; - object_p = collect_values[0].v_pointer; -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (!object_p) { -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 9600 "SearchFilter.c" - } -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (!value->data[0].v_pointer) { -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - *object_p = NULL; -#line 9606 "SearchFilter.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - *object_p = value->data[0].v_pointer; -#line 9610 "SearchFilter.c" - } else { -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - *object_p = search_filter_toolbar_saved_search_popover_ref (value->data[0].v_pointer); -#line 9614 "SearchFilter.c" - } -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return NULL; -#line 9618 "SearchFilter.c" -} - - -GParamSpec* -search_filter_toolbar_param_spec_saved_search_popover (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - SearchFilterToolbarParamSpecSavedSearchPopover* spec; -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (g_type_is_a (object_type, SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER), NULL); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return G_PARAM_SPEC (spec); -#line 9638 "SearchFilter.c" -} - - -gpointer -search_filter_toolbar_value_get_saved_search_popover (const GValue* value) -{ -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER), NULL); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return value->data[0].v_pointer; -#line 9649 "SearchFilter.c" -} - - -void -search_filter_toolbar_value_set_saved_search_popover (GValue* value, - gpointer v_object) -{ - SearchFilterToolbarSavedSearchPopover * old; -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER)); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - old = value->data[0].v_pointer; -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (v_object) { -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER)); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = v_object; -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_ref (value->data[0].v_pointer); -#line 9672 "SearchFilter.c" - } else { -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = NULL; -#line 9676 "SearchFilter.c" - } -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (old) { -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_unref (old); -#line 9682 "SearchFilter.c" - } -} - - -void -search_filter_toolbar_value_take_saved_search_popover (GValue* value, - gpointer v_object) -{ - SearchFilterToolbarSavedSearchPopover * old; -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER)); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - old = value->data[0].v_pointer; -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (v_object) { -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER)); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = v_object; -#line 9704 "SearchFilter.c" - } else { -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - value->data[0].v_pointer = NULL; -#line 9708 "SearchFilter.c" - } -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (old) { -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_unref (old); -#line 9714 "SearchFilter.c" - } -} - - -static void -search_filter_toolbar_saved_search_popover_class_init (SearchFilterToolbarSavedSearchPopoverClass * klass) -{ -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_parent_class = g_type_class_peek_parent (klass); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - ((SearchFilterToolbarSavedSearchPopoverClass *) klass)->finalize = search_filter_toolbar_saved_search_popover_finalize; -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_type_class_add_private (klass, sizeof (SearchFilterToolbarSavedSearchPopoverPrivate)); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_SEARCH_ACTIVATED_SIGNAL] = g_signal_new ("search-activated", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_SAVED_SEARCH); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_EDIT_CLICKED_SIGNAL] = g_signal_new ("edit-clicked", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_SAVED_SEARCH); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_DELETE_CLICKED_SIGNAL] = g_signal_new ("delete-clicked", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_SAVED_SEARCH); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_ADD_CLICKED_SIGNAL] = g_signal_new ("add-clicked", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_saved_search_popover_signals[SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_CLOSED_SIGNAL] = g_signal_new ("closed", SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 9738 "SearchFilter.c" -} - - -static void -search_filter_toolbar_saved_search_popover_instance_init (SearchFilterToolbarSavedSearchPopover * self) -{ -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv = SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_GET_PRIVATE (self); -#line 897 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->popover = NULL; -#line 898 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->list_box = NULL; -#line 899 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->edit_buttons = NULL; -#line 899 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->edit_buttons_length1 = 0; -#line 899 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_edit_buttons_size_ = self->priv->edit_buttons_length1; -#line 900 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->delete_buttons = NULL; -#line 900 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->delete_buttons_length1 = 0; -#line 900 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->_delete_buttons_size_ = self->priv->delete_buttons_length1; -#line 901 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->add = NULL; -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->ref_count = 1; -#line 9767 "SearchFilter.c" -} - - -static void -search_filter_toolbar_saved_search_popover_finalize (SearchFilterToolbarSavedSearchPopover * obj) -{ - SearchFilterToolbarSavedSearchPopover * self; - SearchFilterToolbarSavedSearchPopoverDataButton** _tmp0_; - gint _tmp0__length1; - SearchFilterToolbarSavedSearchPopoverDataButton** _tmp4_; - gint _tmp4__length1; - GtkButton* _tmp8_; - guint _tmp9_; - GtkListBox* _tmp10_; - guint _tmp11_; - GtkPopover* _tmp12_; - guint _tmp13_; -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCH_FILTER_TOOLBAR_TYPE_SAVED_SEARCH_POPOVER, SearchFilterToolbarSavedSearchPopover); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_destroy (self); -#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->edit_buttons; -#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0__length1 = self->priv->edit_buttons_length1; -#line 9793 "SearchFilter.c" - { - SearchFilterToolbarSavedSearchPopoverDataButton** button_collection = NULL; - gint button_collection_length1 = 0; - gint _button_collection_size_ = 0; - gint button_it = 0; -#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala" - button_collection = _tmp0_; -#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala" - button_collection_length1 = _tmp0__length1; -#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala" - for (button_it = 0; button_it < _tmp0__length1; button_it = button_it + 1) { -#line 9805 "SearchFilter.c" - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp1_; - SearchFilterToolbarSavedSearchPopoverDataButton* button = NULL; -#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = _g_object_ref0 (button_collection[button_it]); -#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala" - button = _tmp1_; -#line 9812 "SearchFilter.c" - { - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp2_; - guint _tmp3_; -#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = button; -#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("clicked", SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, &_tmp3_, NULL, FALSE); -#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _search_filter_toolbar_saved_search_popover_on_edit_click_search_filter_toolbar_saved_search_popover_data_button_clicked, self); -#line 977 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (button); -#line 9824 "SearchFilter.c" - } - } - } -#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = self->priv->delete_buttons; -#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4__length1 = self->priv->delete_buttons_length1; -#line 9832 "SearchFilter.c" - { - SearchFilterToolbarSavedSearchPopoverDataButton** button_collection = NULL; - gint button_collection_length1 = 0; - gint _button_collection_size_ = 0; - gint button_it = 0; -#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala" - button_collection = _tmp4_; -#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala" - button_collection_length1 = _tmp4__length1; -#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala" - for (button_it = 0; button_it < _tmp4__length1; button_it = button_it + 1) { -#line 9844 "SearchFilter.c" - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp5_; - SearchFilterToolbarSavedSearchPopoverDataButton* button = NULL; -#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp5_ = _g_object_ref0 (button_collection[button_it]); -#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala" - button = _tmp5_; -#line 9851 "SearchFilter.c" - { - SearchFilterToolbarSavedSearchPopoverDataButton* _tmp6_; - guint _tmp7_; -#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = button; -#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("clicked", SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_TYPE_DATA_BUTTON, &_tmp7_, NULL, FALSE); -#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _search_filter_toolbar_saved_search_popover_on_delete_click_search_filter_toolbar_saved_search_popover_data_button_clicked, self); -#line 978 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (button); -#line 9863 "SearchFilter.c" - } - } - } -#line 979 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = self->priv->add; -#line 979 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp9_, NULL, FALSE); -#line 979 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _search_filter_toolbar_saved_search_popover_on_add_click_gtk_button_clicked, self); -#line 980 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp10_ = self->priv->list_box; -#line 980 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("row-activated", gtk_list_box_get_type (), &_tmp11_, NULL, FALSE); -#line 980 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp10_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _search_filter_toolbar_saved_search_popover_on_activate_row_gtk_list_box_row_activated, self); -#line 981 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp12_ = self->priv->popover; -#line 981 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("closed", gtk_popover_get_type (), &_tmp13_, NULL, FALSE); -#line 981 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp12_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _search_filter_toolbar_saved_search_popover_on_popover_closed_gtk_popover_closed, self); -#line 897 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->popover); -#line 898 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->list_box); -#line 899 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->edit_buttons = (_vala_array_free (self->priv->edit_buttons, self->priv->edit_buttons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 900 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->delete_buttons = (_vala_array_free (self->priv->delete_buttons, self->priv->delete_buttons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 901 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->add); -#line 9895 "SearchFilter.c" -} - - -GType -search_filter_toolbar_saved_search_popover_get_type (void) -{ - static volatile gsize search_filter_toolbar_saved_search_popover_type_id__volatile = 0; - if (g_once_init_enter (&search_filter_toolbar_saved_search_popover_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { search_filter_toolbar_value_saved_search_popover_init, search_filter_toolbar_value_saved_search_popover_free_value, search_filter_toolbar_value_saved_search_popover_copy_value, search_filter_toolbar_value_saved_search_popover_peek_pointer, "p", search_filter_toolbar_value_saved_search_popover_collect_value, "p", search_filter_toolbar_value_saved_search_popover_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (SearchFilterToolbarSavedSearchPopoverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_toolbar_saved_search_popover_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterToolbarSavedSearchPopover), 0, (GInstanceInitFunc) search_filter_toolbar_saved_search_popover_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType search_filter_toolbar_saved_search_popover_type_id; - search_filter_toolbar_saved_search_popover_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SearchFilterToolbarSavedSearchPopover", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&search_filter_toolbar_saved_search_popover_type_id__volatile, search_filter_toolbar_saved_search_popover_type_id); - } - return search_filter_toolbar_saved_search_popover_type_id__volatile; -} - - -gpointer -search_filter_toolbar_saved_search_popover_ref (gpointer instance) -{ - SearchFilterToolbarSavedSearchPopover * self; - self = instance; -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_atomic_int_inc (&self->ref_count); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - return instance; -#line 9924 "SearchFilter.c" -} - - -void -search_filter_toolbar_saved_search_popover_unref (gpointer instance) -{ - SearchFilterToolbarSavedSearchPopover * self; - self = instance; -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - SEARCH_FILTER_TOOLBAR_SAVED_SEARCH_POPOVER_GET_CLASS (self)->finalize (self); -#line 896 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 9939 "SearchFilter.c" - } -} - - -static void -search_filter_toolbar_class_init (SearchFilterToolbarClass * klass) -{ -#line 602 "/home/jens/Source/shotwell/src/SearchFilter.vala" - search_filter_toolbar_parent_class = g_type_class_peek_parent (klass); -#line 602 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_type_class_add_private (klass, sizeof (SearchFilterToolbarPrivate)); -#line 602 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_CLASS (klass)->finalize = search_filter_toolbar_finalize; -#line 9953 "SearchFilter.c" -} - - -static void -search_filter_toolbar_instance_init (SearchFilterToolbar * self) -{ - GtkMenu* _tmp0_; - GtkMenuItem* _tmp1_; - GtkBuilder* _tmp2_; - SearchFilterToolbarSavedSearchFilterButton* _tmp3_; -#line 602 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv = SEARCH_FILTER_TOOLBAR_GET_PRIVATE (self); -#line 661 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = (GtkMenu*) gtk_menu_new (); -#line 661 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp0_); -#line 661 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->close_menu = _tmp0_; -#line 662 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp1_ = (GtkMenuItem*) gtk_menu_item_new (); -#line 662 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp1_); -#line 662 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->close_item = _tmp1_; -#line 1032 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = gtk_builder_new (); -#line 1032 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->builder = _tmp2_; -#line 1035 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->saved_search = NULL; -#line 1038 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp3_ = search_filter_toolbar_saved_search_filter_button_new (); -#line 1038 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_object_ref_sink (_tmp3_); -#line 1038 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->saved_search_button = _tmp3_; -#line 1039 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->elide_showing_again = FALSE; -#line 1040 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self->priv->search_filter = NULL; -#line 9994 "SearchFilter.c" -} - - -static void -search_filter_toolbar_finalize (GObject * obj) -{ - SearchFilterToolbar * self; - SearchFilterActions* _tmp0_; - guint _tmp1_; - SearchFilterActions* _tmp2_; - guint _tmp3_; - SearchFilterActions* _tmp4_; - guint _tmp5_; - SearchFilterActions* _tmp6_; - guint _tmp7_; - SearchFilterActions* _tmp8_; - guint _tmp9_; - SearchFilterActions* _tmp10_; - guint _tmp11_; - SearchFilterActions* _tmp12_; - guint _tmp13_; - SearchFilterActions* _tmp14_; - guint _tmp15_; - GtkToolbar* _tmp16_; - guint _tmp17_; -#line 602 "/home/jens/Source/shotwell/src/SearchFilter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_FILTER_TOOLBAR, SearchFilterToolbar); -#line 1156 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp0_ = self->priv->actions; -#line 1156 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("media-context-changed", TYPE_SEARCH_FILTER_ACTIONS, &_tmp1_, NULL, FALSE); -#line 1156 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _search_filter_toolbar_on_media_context_changed_search_filter_actions_media_context_changed, self); -#line 1158 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp2_ = self->priv->actions; -#line 1158 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("flagged-toggled", TYPE_SEARCH_FILTER_ACTIONS, &_tmp3_, NULL, FALSE); -#line 1158 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _search_filter_toolbar_on_flagged_toggled_search_filter_actions_flagged_toggled, self); -#line 1159 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp4_ = self->priv->actions; -#line 1159 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("photos-toggled", TYPE_SEARCH_FILTER_ACTIONS, &_tmp5_, NULL, FALSE); -#line 1159 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _search_filter_toolbar_on_photos_toggled_search_filter_actions_photos_toggled, self); -#line 1160 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp6_ = self->priv->actions; -#line 1160 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("videos-toggled", TYPE_SEARCH_FILTER_ACTIONS, &_tmp7_, NULL, FALSE); -#line 1160 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _search_filter_toolbar_on_videos_toggled_search_filter_actions_videos_toggled, self); -#line 1161 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp8_ = self->priv->actions; -#line 1161 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("raw-toggled", TYPE_SEARCH_FILTER_ACTIONS, &_tmp9_, NULL, FALSE); -#line 1161 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _search_filter_toolbar_on_raw_toggled_search_filter_actions_raw_toggled, self); -#line 1162 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp10_ = self->priv->actions; -#line 1162 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("rating-changed", TYPE_SEARCH_FILTER_ACTIONS, &_tmp11_, NULL, FALSE); -#line 1162 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp10_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _search_filter_toolbar_on_rating_changed_search_filter_actions_rating_changed, self); -#line 1163 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp12_ = self->priv->actions; -#line 1163 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("text-changed", TYPE_SEARCH_FILTER_ACTIONS, &_tmp13_, NULL, FALSE); -#line 1163 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp12_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _search_filter_toolbar_on_search_text_changed_search_filter_actions_text_changed, self); -#line 1164 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp14_ = self->priv->actions; -#line 1164 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("criteria-changed", TYPE_SEARCH_FILTER_ACTIONS, &_tmp15_, NULL, FALSE); -#line 1164 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp14_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp15_, 0, NULL, (GCallback) _search_filter_toolbar_on_criteria_changed_search_filter_actions_criteria_changed, self); -#line 1166 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _tmp16_ = self->priv->toolbar; -#line 1166 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_parse_name ("popup-context-menu", gtk_toolbar_get_type (), &_tmp17_, NULL, FALSE); -#line 1166 "/home/jens/Source/shotwell/src/SearchFilter.vala" - g_signal_handlers_disconnect_matched (_tmp16_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp17_, 0, NULL, (GCallback) _search_filter_toolbar_on_context_menu_requested_gtk_toolbar_popup_context_menu, self); -#line 603 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->toolbar); -#line 661 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->close_menu); -#line 662 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->close_item); -#line 1032 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->builder); -#line 1034 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _search_filter_actions_unref0 (self->priv->actions); -#line 1035 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->saved_search); -#line 1036 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->search_box); -#line 1037 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->rating_button); -#line 1038 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->saved_search_button); -#line 1040 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _view_filter_unref0 (self->priv->search_filter); -#line 1041 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->label_type); -#line 1042 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->toolbtn_photos); -#line 1043 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->toolbtn_videos); -#line 1044 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->toolbtn_raw); -#line 1045 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->toolbtn_flag); -#line 1046 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->sepr_mediatype_flagged); -#line 1047 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->sepr_flagged_rating); -#line 1048 "/home/jens/Source/shotwell/src/SearchFilter.vala" - _g_object_unref0 (self->priv->sepr_rating_saved); -#line 602 "/home/jens/Source/shotwell/src/SearchFilter.vala" - G_OBJECT_CLASS (search_filter_toolbar_parent_class)->finalize (obj); -#line 10114 "SearchFilter.c" -} - - -GType -search_filter_toolbar_get_type (void) -{ - static volatile gsize search_filter_toolbar_type_id__volatile = 0; - if (g_once_init_enter (&search_filter_toolbar_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SearchFilterToolbarClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_filter_toolbar_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchFilterToolbar), 0, (GInstanceInitFunc) search_filter_toolbar_instance_init, NULL }; - GType search_filter_toolbar_type_id; - search_filter_toolbar_type_id = g_type_register_static (gtk_revealer_get_type (), "SearchFilterToolbar", &g_define_type_info, 0); - g_once_init_leave (&search_filter_toolbar_type_id__volatile, search_filter_toolbar_type_id); - } - return search_filter_toolbar_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/src/SearchFilter.vala b/src/SearchFilter.vala index 8acf035..bad6a73 100644 --- a/src/SearchFilter.vala +++ b/src/SearchFilter.vala @@ -223,6 +223,10 @@ public abstract class DefaultSearchViewFilter : SearchViewFilter { Gee.List? tags = Tag.global.fetch_for_source(source); int tags_size = (tags != null) ? tags.size : 0; +#if ENABLE_FACES + Gee.List? faces = Face.global.fetch_for_source(source); +#endif + foreach (unowned string word in get_search_filter_words()) { if (media_keywords != null && media_keywords.contains(word)) continue; @@ -245,6 +249,22 @@ public abstract class DefaultSearchViewFilter : SearchViewFilter { continue; } +#if ENABLE_FACES + if (faces != null) { + bool found = false; + foreach (Face f in faces) { + unowned string? face_keywords = f.get_indexable_keywords(); + if (face_keywords != null && face_keywords.contains(word)) { + found = true; + + break; + } + } + + if (found) + continue; + } +#endif // failed all tests (this even works if none of the Indexables have strings, // as they fail the implicit AND test) return false; @@ -754,28 +774,32 @@ public class SearchFilterToolbar : Gtk.Revealer { } private Gtk.Widget get_filter_icon(RatingFilter filter) { - string filename = null; + Gtk.Widget? icon = null; switch (filter) { case RatingFilter.REJECTED_OR_HIGHER: - filename = Resources.ICON_FILTER_REJECTED_OR_BETTER; + icon = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0); + var image = new Gtk.Image.from_icon_name ("emblem-photos-symbolic", Gtk.IconSize.SMALL_TOOLBAR); + image.margin_end = 2; + (icon as Gtk.Box).pack_start(image); + image = new Gtk.Image.from_icon_name ("window-close-symbolic", Gtk.IconSize.SMALL_TOOLBAR); + (icon as Gtk.Box).pack_start(image); + icon.show_all(); break; case RatingFilter.REJECTED_ONLY: - filename = Resources.ICON_RATING_REJECTED; + icon = new Gtk.Image.from_icon_name ("window-close-symbolic", Gtk.IconSize.SMALL_TOOLBAR); break; case RatingFilter.UNRATED_OR_HIGHER: default: - filename = Resources.ICON_FILTER_UNRATED_OR_BETTER; + icon = new Gtk.Image.from_icon_name ("emblem-photos-symbolic", Gtk.IconSize.SMALL_TOOLBAR); break; } - - Gtk.Image image = new Gtk.Image.from_pixbuf(Resources.load_icon(filename, - get_filter_icon_size(filter))); - image.set_margin_end(6); - return image; + icon.margin_end = 6; + + return icon; } private int get_filter_icon_size(RatingFilter filter) { @@ -857,7 +881,7 @@ public class SearchFilterToolbar : Gtk.Revealer { button = new Gtk.ToggleButton(); button.set_always_show_image(true); - Gtk.Image? image = new Gtk.Image.from_icon_name("edit-find", Gtk.IconSize.SMALL_TOOLBAR); + Gtk.Image? image = new Gtk.Image.from_icon_name("edit-find-symbolic", Gtk.IconSize.SMALL_TOOLBAR); image.set_margin_end(6); button.set_image(image); button.set_can_focus(false); @@ -1171,29 +1195,29 @@ public class SearchFilterToolbar : Gtk.Revealer { if (has_photos || has_raw) // As a user, I would expect, that a raw photo is still a photo. // Let's enable the photo button even if there ar only raw photos. - toolbtn_photos.set_icon_name(Resources.ICON_FILTER_PHOTOS); + toolbtn_photos.set_icon_name("filter-photos-symbolic"); else - toolbtn_photos.set_icon_name(Resources.ICON_FILTER_PHOTOS_DISABLED); + toolbtn_photos.set_icon_name("filter-photos-disabled-symbolic"); if (has_videos) - toolbtn_videos.set_icon_name(Resources.ICON_FILTER_VIDEOS); + toolbtn_videos.set_icon_name("filter-videos-symbolic"); else - toolbtn_videos.set_icon_name(Resources.ICON_FILTER_VIDEOS_DISABLED); + toolbtn_videos.set_icon_name("filter-videos-disabled-symbolic"); if (has_raw) - toolbtn_raw.set_icon_name(Resources.ICON_FILTER_RAW); + toolbtn_raw.set_icon_name("filter-raw-symbolic"); else - toolbtn_raw.set_icon_name(Resources.ICON_FILTER_RAW_DISABLED); + toolbtn_raw.set_icon_name("filter-raw-disabled-symbolic"); if (has_flagged) - toolbtn_flag.set_icon_name(Resources.ICON_FILTER_FLAGGED); + toolbtn_flag.set_icon_name("filter-flagged-symbolic"); else - toolbtn_flag.set_icon_name(Resources.ICON_FILTER_FLAGGED_DISABLED); + toolbtn_flag.set_icon_name("filter-flagged-disabled-symbolic"); } // Ticket #3260 part IV - display the context menu on secondary click private bool on_context_menu_requested(int x, int y, int button) { - close_menu.popup(null, null, null, button, Gtk.get_current_event_time()); + close_menu.popup_at_pointer(null); return false; } diff --git a/src/SlideshowPage.c b/src/SlideshowPage.c deleted file mode 100644 index e19ca76..0000000 --- a/src/SlideshowPage.c +++ /dev/null @@ -1,3324 +0,0 @@ -/* SlideshowPage.c generated by valac 0.40.4, the Vala compiler - * generated from SlideshowPage.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; - -#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ()) -#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)) -#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) -#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE)) -#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE)) -#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) - -typedef struct _SinglePhotoPage SinglePhotoPage; -typedef struct _SinglePhotoPageClass SinglePhotoPageClass; -typedef struct _SinglePhotoPagePrivate SinglePhotoPagePrivate; - -#define TYPE_ZOOM_BUFFER (zoom_buffer_get_type ()) -#define ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ZOOM_BUFFER, ZoomBuffer)) -#define ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ZOOM_BUFFER, ZoomBufferClass)) -#define IS_ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ZOOM_BUFFER)) -#define IS_ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ZOOM_BUFFER)) -#define ZOOM_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ZOOM_BUFFER, ZoomBufferClass)) - -typedef struct _ZoomBuffer ZoomBuffer; -typedef struct _ZoomBufferClass ZoomBufferClass; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define SINGLE_PHOTO_PAGE_TYPE_UPDATE_REASON (single_photo_page_update_reason_get_type ()) - -#define TYPE_SLIDESHOW_PAGE (slideshow_page_get_type ()) -#define SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPage)) -#define SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SLIDESHOW_PAGE, SlideshowPageClass)) -#define IS_SLIDESHOW_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SLIDESHOW_PAGE)) -#define IS_SLIDESHOW_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SLIDESHOW_PAGE)) -#define SLIDESHOW_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SLIDESHOW_PAGE, SlideshowPageClass)) - -typedef struct _SlideshowPage SlideshowPage; -typedef struct _SlideshowPageClass SlideshowPageClass; -typedef struct _SlideshowPagePrivate SlideshowPagePrivate; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_PIXBUF_CACHE (pixbuf_cache_get_type ()) -#define PIXBUF_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXBUF_CACHE, PixbufCache)) -#define PIXBUF_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXBUF_CACHE, PixbufCacheClass)) -#define IS_PIXBUF_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXBUF_CACHE)) -#define IS_PIXBUF_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXBUF_CACHE)) -#define PIXBUF_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXBUF_CACHE, PixbufCacheClass)) - -typedef struct _PixbufCache PixbufCache; -typedef struct _PixbufCacheClass PixbufCacheClass; - -#define TYPE_SCREENSAVER (screensaver_get_type ()) -#define SCREENSAVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCREENSAVER, Screensaver)) -#define SCREENSAVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCREENSAVER, ScreensaverClass)) -#define IS_SCREENSAVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCREENSAVER)) -#define IS_SCREENSAVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCREENSAVER)) -#define SCREENSAVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCREENSAVER, ScreensaverClass)) - -typedef struct _Screensaver Screensaver; -typedef struct _ScreensaverClass ScreensaverClass; -enum { - SLIDESHOW_PAGE_0_PROPERTY, - SLIDESHOW_PAGE_NUM_PROPERTIES -}; -static GParamSpec* slideshow_page_properties[SLIDESHOW_PAGE_NUM_PROPERTIES]; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL))) -#define _screensaver_unref0(var) ((var == NULL) ? NULL : (var = (screensaver_unref (var), NULL))) - -#define TYPE_TRANSITION_EFFECTS_MANAGER (transition_effects_manager_get_type ()) -#define TRANSITION_EFFECTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManager)) -#define TRANSITION_EFFECTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManagerClass)) -#define IS_TRANSITION_EFFECTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSITION_EFFECTS_MANAGER)) -#define IS_TRANSITION_EFFECTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSITION_EFFECTS_MANAGER)) -#define TRANSITION_EFFECTS_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManagerClass)) - -typedef struct _TransitionEffectsManager TransitionEffectsManager; -typedef struct _TransitionEffectsManagerClass TransitionEffectsManagerClass; -#define _transition_effects_manager_unref0(var) ((var == NULL) ? NULL : (var = (transition_effects_manager_unref (var), NULL))) - -#define PIXBUF_CACHE_TYPE_PHOTO_TYPE (pixbuf_cache_photo_type_get_type ()) - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) -typedef struct _Scaling Scaling; - -#define TYPE_DIRECTION (direction_get_type ()) - -#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ()) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ()) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; - -#define SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG (slideshow_page_settings_dialog_get_type ()) -#define SLIDESHOW_PAGE_SETTINGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG, SlideshowPageSettingsDialog)) -#define SLIDESHOW_PAGE_SETTINGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG, SlideshowPageSettingsDialogClass)) -#define SLIDESHOW_PAGE_IS_SETTINGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG)) -#define SLIDESHOW_PAGE_IS_SETTINGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG)) -#define SLIDESHOW_PAGE_SETTINGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG, SlideshowPageSettingsDialogClass)) - -typedef struct _SlideshowPageSettingsDialog SlideshowPageSettingsDialog; -typedef struct _SlideshowPageSettingsDialogClass SlideshowPageSettingsDialogClass; -#define _pango_attribute_destroy0(var) ((var == NULL) ? NULL : (var = (pango_attribute_destroy (var), NULL))) -#define _pango_attr_list_unref0(var) ((var == NULL) ? NULL : (var = (pango_attr_list_unref (var), NULL))) -typedef struct _SlideshowPageSettingsDialogPrivate SlideshowPageSettingsDialogPrivate; -enum { - SLIDESHOW_PAGE_SETTINGS_DIALOG_0_PROPERTY, - SLIDESHOW_PAGE_SETTINGS_DIALOG_NUM_PROPERTIES -}; -static GParamSpec* slideshow_page_settings_dialog_properties[SLIDESHOW_PAGE_SETTINGS_DIALOG_NUM_PROPERTIES]; -enum { - SLIDESHOW_PAGE_HIDE_TOOLBAR_SIGNAL, - SLIDESHOW_PAGE_NUM_SIGNALS -}; -static guint slideshow_page_signals[SLIDESHOW_PAGE_NUM_SIGNALS] = {0}; - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -typedef enum { - SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF, - SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT, - SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS -} SinglePhotoPageUpdateReason; - -struct _SinglePhotoPage { - Page parent_instance; - SinglePhotoPagePrivate * priv; - GtkDrawingArea* canvas; - GtkViewport* viewport; -}; - -struct _SinglePhotoPageClass { - PageClass parent_class; - gboolean (*is_zoom_supported) (SinglePhotoPage* self); - void (*cancel_zoom) (SinglePhotoPage* self); - void (*save_zoom_state) (SinglePhotoPage* self); - void (*restore_zoom_state) (SinglePhotoPage* self); - ZoomBuffer* (*get_zoom_buffer) (SinglePhotoPage* self); - void (*new_surface) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim); - void (*updated_pixbuf) (SinglePhotoPage* self, GdkPixbuf* pixbuf, SinglePhotoPageUpdateReason reason, Dimensions* old_dim); - void (*paint) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim); - void (*on_previous_photo) (SinglePhotoPage* self); - void (*on_next_photo) (SinglePhotoPage* self); -}; - -struct _SlideshowPage { - SinglePhotoPage parent_instance; - SlideshowPagePrivate * priv; -}; - -struct _SlideshowPageClass { - SinglePhotoPageClass parent_class; -}; - -struct _SlideshowPagePrivate { - SourceCollection* sources; - ViewCollection* controller; - Photo* current; - GtkToolButton* play_pause_button; - GtkToolButton* settings_button; - PixbufCache* cache; - GTimer* timer; - gboolean playing; - gboolean exiting; - gchar** transitions; - gint transitions_length1; - gint _transitions_size_; - Screensaver* screensaver; -}; - -typedef enum { - PIXBUF_CACHE_PHOTO_TYPE_BASELINE, - PIXBUF_CACHE_PHOTO_TYPE_MASTER -} PixbufCachePhotoType; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -typedef gboolean (*PixbufCacheCacheFilter) (Photo* photo, void* user_data); -typedef enum { - DIRECTION_FORWARD, - DIRECTION_BACKWARD -} Direction; - -typedef enum { - PHOTO_EXCEPTION_NONE = 0, - PHOTO_EXCEPTION_ORIENTATION = 1 << 0, - PHOTO_EXCEPTION_CROP = 1 << 1, - PHOTO_EXCEPTION_REDEYE = 1 << 2, - PHOTO_EXCEPTION_ADJUST = 1 << 3, - PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4, - PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL -} PhotoException; - -typedef enum { - BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100, - BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75, - BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50, - BACKGROUND_JOB_JOB_PRIORITY_LOW = 25, - BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0 -} BackgroundJobJobPriority; - -struct _SlideshowPageSettingsDialog { - GtkDialog parent_instance; - SlideshowPageSettingsDialogPrivate * priv; -}; - -struct _SlideshowPageSettingsDialogClass { - GtkDialogClass parent_class; -}; - -struct _SlideshowPageSettingsDialogPrivate { - GtkAdjustment* delay_adjustment; - GtkSpinButton* delay_entry; - GtkComboBoxText* transition_effect_selector; - GtkScale* transition_effect_hscale; - GtkSpinButton* transition_effect_entry; - GtkAdjustment* transition_effect_adjustment; - GtkCheckButton* show_title_button; -}; - - -static gpointer slideshow_page_parent_class = NULL; -static gpointer slideshow_page_settings_dialog_parent_class = NULL; - -GType page_get_type (void) G_GNUC_CONST; -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType single_photo_page_get_type (void) G_GNUC_CONST; -GType zoom_buffer_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType single_photo_page_update_reason_get_type (void) G_GNUC_CONST; -GType slideshow_page_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType pixbuf_cache_get_type (void) G_GNUC_CONST; -gpointer screensaver_ref (gpointer instance); -void screensaver_unref (gpointer instance); -GParamSpec* param_spec_screensaver (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_screensaver (GValue* value, - gpointer v_object); -void value_take_screensaver (GValue* value, - gpointer v_object); -gpointer value_get_screensaver (const GValue* value); -GType screensaver_get_type (void) G_GNUC_CONST; -#define SLIDESHOW_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SLIDESHOW_PAGE, SlideshowPagePrivate)) -#define SLIDESHOW_PAGE_READAHEAD_COUNT 5 -#define SLIDESHOW_PAGE_CHECK_ADVANCE_MSEC 250 -SlideshowPage* slideshow_page_new (SourceCollection* sources, - ViewCollection* controller, - Photo* start); -SlideshowPage* slideshow_page_construct (GType object_type, - SourceCollection* sources, - ViewCollection* controller, - Photo* start); -SinglePhotoPage* single_photo_page_construct (GType object_type, - const gchar* page_name, - gboolean scale_up_to_viewport); -gpointer transition_effects_manager_ref (gpointer instance); -void transition_effects_manager_unref (gpointer instance); -GParamSpec* param_spec_transition_effects_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_transition_effects_manager (GValue* value, - gpointer v_object); -void value_take_transition_effects_manager (GValue* value, - gpointer v_object); -gpointer value_get_transition_effects_manager (const GValue* value); -GType transition_effects_manager_get_type (void) G_GNUC_CONST; -TransitionEffectsManager* transition_effects_manager_get_instance (void); -GeeCollection* transition_effects_manager_get_effect_ids (TransitionEffectsManager* self); -#define NULL_TRANSITION_DESCRIPTOR_EFFECT_ID "org.yorba.shotwell.transitions.null" -#define RANDOM_EFFECT_DESCRIPTOR_EFFECT_ID "org.yorba.shotwell.transitions.random" -static void slideshow_page_update_transition_effect (SlideshowPage* self); -GtkToolbar* page_get_toolbar (Page* self); -void single_photo_page_on_previous_photo (SinglePhotoPage* self); -static void _single_photo_page_on_previous_photo_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self); -static void slideshow_page_on_play_pause (SlideshowPage* self); -static void _slideshow_page_on_play_pause_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self); -void single_photo_page_on_next_photo (SinglePhotoPage* self); -static void _single_photo_page_on_next_photo_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self); -static void slideshow_page_on_change_settings (SlideshowPage* self); -static void _slideshow_page_on_change_settings_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self); -Screensaver* screensaver_new (void); -Screensaver* screensaver_construct (GType object_type); -static void slideshow_page_real_switched_to (Page* base); -void page_switched_to (Page* self); -GType pixbuf_cache_photo_type_get_type (void) G_GNUC_CONST; -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -void single_photo_page_get_canvas_scaling (SinglePhotoPage* self, - Scaling* result); -PixbufCache* pixbuf_cache_new (SourceCollection* sources, - PixbufCachePhotoType type, - Scaling* scaling, - gint max_count, - PixbufCacheCacheFilter filter, - void* filter_target); -PixbufCache* pixbuf_cache_construct (GType object_type, - SourceCollection* sources, - PixbufCachePhotoType type, - Scaling* scaling, - gint max_count, - PixbufCacheCacheFilter filter, - void* filter_target); -GType direction_get_type (void) G_GNUC_CONST; -static gboolean slideshow_page_get_next_photo (SlideshowPage* self, - Photo* start, - Direction direction, - Photo* * next, - GdkPixbuf* * next_pixbuf); -void single_photo_page_set_pixbuf (SinglePhotoPage* self, - GdkPixbuf* unscaled, - Dimensions* max_dim, - Direction* direction); -GType photo_exception_get_type (void) G_GNUC_CONST; -void media_source_get_dimensions (MediaSource* self, - PhotoException disallowed_steps, - Dimensions* result); -static gboolean slideshow_page_auto_advance (SlideshowPage* self); -static gboolean _slideshow_page_auto_advance_gsource_func (gpointer self); -void screensaver_inhibit (Screensaver* self, - const gchar* reason); -static void slideshow_page_real_switching_from (Page* base); -void page_switching_from (Page* self); -void screensaver_uninhibit (Screensaver* self); -GdkPixbuf* pixbuf_cache_fetch (PixbufCache* self, - Photo* photo, - GError** error); -gchar* data_object_to_string (DataObject* self); -GType data_view_get_type (void) G_GNUC_CONST; -DataView* view_collection_get_view_for_source (ViewCollection* self, - DataSource* source); -DataView* view_collection_get_next (ViewCollection* self, - DataView* view); -DataView* view_collection_get_previous (ViewCollection* self, - DataView* view); -DataSource* data_view_get_source (DataView* self); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -GtkWindow* page_get_container (Page* self); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -void app_window_end_fullscreen (AppWindow* self); -gboolean view_collection_get_immediate_neighbors (ViewCollection* self, - DataSource* home, - DataSource* * next, - DataSource* * prev, - const gchar* type_selector); -#define PHOTO_TYPENAME "thumb" -GType background_job_job_priority_get_type (void) G_GNUC_CONST; -void pixbuf_cache_prefetch (PixbufCache* self, - Photo* photo, - BackgroundJobJobPriority priority, - gboolean force); -GeeSet* view_collection_get_extended_neighbors (ViewCollection* self, - DataSource* home, - const gchar* typename); -void pixbuf_cache_prefetch_many (PixbufCache* self, - GeeCollection* photos, - BackgroundJobJobPriority priority, - gboolean force); -static void slideshow_page_real_on_previous_photo (SinglePhotoPage* base); -static void slideshow_page_advance (SlideshowPage* self, - Photo* photo, - Direction direction); -static void slideshow_page_real_on_next_photo (SinglePhotoPage* base); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gchar* configuration_facade_get_slideshow_transition_effect_id (ConfigurationFacade* self); -static void slideshow_page_random_transition_effect (SlideshowPage* self); -gdouble configuration_facade_get_slideshow_delay (ConfigurationFacade* self); -static gboolean slideshow_page_real_key_press_event (GtkWidget* base, - GdkEventKey* event); -static GType slideshow_page_settings_dialog_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static SlideshowPageSettingsDialog* slideshow_page_settings_dialog_new (void); -static SlideshowPageSettingsDialog* slideshow_page_settings_dialog_construct (GType object_type); -void configuration_facade_set_slideshow_delay (ConfigurationFacade* self, - gdouble delay); -static gdouble slideshow_page_settings_dialog_get_delay (SlideshowPageSettingsDialog* self); -void configuration_facade_set_slideshow_transition_delay (ConfigurationFacade* self, - gdouble delay); -static gdouble slideshow_page_settings_dialog_get_transition_delay (SlideshowPageSettingsDialog* self); -void configuration_facade_set_slideshow_transition_effect_id (ConfigurationFacade* self, - const gchar* id); -static gchar* slideshow_page_settings_dialog_get_transition_effect_id (SlideshowPageSettingsDialog* self); -void configuration_facade_set_slideshow_show_title (ConfigurationFacade* self, - gboolean show_title); -static gboolean slideshow_page_settings_dialog_get_show_title (SlideshowPageSettingsDialog* self); -gdouble configuration_facade_get_slideshow_transition_delay (ConfigurationFacade* self); -void single_photo_page_set_transition (SinglePhotoPage* self, - const gchar* effect_id, - gint duration_msec); -#define TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID NULL_TRANSITION_DESCRIPTOR_EFFECT_ID -static void slideshow_page_paint_title (SlideshowPage* self, - cairo_t* ctx, - Dimensions* ctx_dim); -gchar* media_source_get_title (MediaSource* self); -void set_source_color_from_string (cairo_t* ctx, - const gchar* spec); -static void slideshow_page_real_paint (SinglePhotoPage* base, - cairo_t* ctx, - Dimensions* ctx_dim); -void single_photo_page_paint (SinglePhotoPage* self, - cairo_t* ctx, - Dimensions* ctx_dim); -gboolean configuration_facade_get_slideshow_show_title (ConfigurationFacade* self); -gboolean single_photo_page_is_transition_in_progress (SinglePhotoPage* self); -#define SLIDESHOW_PAGE_SETTINGS_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG, SlideshowPageSettingsDialogPrivate)) -FullscreenWindow* app_window_get_fullscreen (void); -gchar* transition_effects_manager_get_effect_name (TransitionEffectsManager* self, - const gchar* effect_id); -GeeCollection* transition_effects_manager_get_effect_names (TransitionEffectsManager* self, - GCompareDataFunc comparator, - void* comparator_target, - GDestroyNotify comparator_target_destroy_notify); -gint utf8_ci_compare (void* a, - void* b); -static gint _utf8_ci_compare_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -gchar* transition_effects_manager_get_id_for_effect_name (TransitionEffectsManager* self, - const gchar* effect_name); -static void slideshow_page_settings_dialog_on_transition_changed (SlideshowPageSettingsDialog* self); -static void _slideshow_page_settings_dialog_on_transition_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void slideshow_page_settings_dialog_finalize (GObject * obj); -static void slideshow_page_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 117 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return self ? data_collection_ref (self) : NULL; -#line 764 "SlideshowPage.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 126 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return self ? g_object_ref (self) : NULL; -#line 773 "SlideshowPage.c" -} - - -static void -_single_photo_page_on_previous_photo_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self) -{ -#line 137 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - single_photo_page_on_previous_photo ((SinglePhotoPage*) self); -#line 783 "SlideshowPage.c" -} - - -static void -_slideshow_page_on_play_pause_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self) -{ -#line 144 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - slideshow_page_on_play_pause ((SlideshowPage*) self); -#line 793 "SlideshowPage.c" -} - - -static void -_single_photo_page_on_next_photo_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self) -{ -#line 151 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - single_photo_page_on_next_photo ((SinglePhotoPage*) self); -#line 803 "SlideshowPage.c" -} - - -static void -_slideshow_page_on_change_settings_gtk_tool_button_clicked (GtkToolButton* _sender, - gpointer self) -{ -#line 159 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - slideshow_page_on_change_settings ((SlideshowPage*) self); -#line 813 "SlideshowPage.c" -} - - -SlideshowPage* -slideshow_page_construct (GType object_type, - SourceCollection* sources, - ViewCollection* controller, - Photo* start) -{ - SlideshowPage * self = NULL; - SourceCollection* _tmp0_; - ViewCollection* _tmp1_; - GeeCollection* pluggables = NULL; - TransitionEffectsManager* _tmp2_; - TransitionEffectsManager* _tmp3_; - GeeCollection* _tmp4_; - GeeCollection* _tmp5_; - GeeArrayList* a = NULL; - GeeArrayList* _tmp6_; - gint _tmp7_; - gpointer* _tmp8_; - Photo* _tmp9_; - GtkToolbar* toolbar = NULL; - GtkToolbar* _tmp10_; - GtkToolButton* previous_button = NULL; - GtkToolButton* _tmp11_; - GtkToolButton* _tmp12_; - GtkToolButton* _tmp13_; - GtkToolButton* _tmp14_; - GtkToolButton* _tmp15_; - GtkToolButton* _tmp16_; - GtkToolButton* next_button = NULL; - GtkToolButton* _tmp17_; - GtkToolButton* _tmp18_; - GtkToolButton* _tmp19_; - GtkToolButton* _tmp20_; - GtkToolButton* _tmp21_; - GtkToolButton* _tmp22_; - GtkToolButton* _tmp23_; - GtkToolButton* _tmp24_; - Screensaver* _tmp25_; -#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_val_if_fail (IS_SOURCE_COLLECTION (sources), NULL); -#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (controller), NULL); -#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_val_if_fail (IS_PHOTO (start), NULL); -#line 115 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self = (SlideshowPage*) single_photo_page_construct (object_type, _ ("Slideshow"), TRUE); -#line 117 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = _data_collection_ref0 (sources); -#line 117 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _data_collection_unref0 (self->priv->sources); -#line 117 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->sources = _tmp0_; -#line 118 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = _data_collection_ref0 (controller); -#line 118 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _data_collection_unref0 (self->priv->controller); -#line 118 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->controller = _tmp1_; -#line 120 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = transition_effects_manager_get_instance (); -#line 120 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp3_ = _tmp2_; -#line 120 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp4_ = transition_effects_manager_get_effect_ids (_tmp3_); -#line 120 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp5_ = _tmp4_; -#line 120 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _transition_effects_manager_unref0 (_tmp3_); -#line 120 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - pluggables = _tmp5_; -#line 121 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 121 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - a = _tmp6_; -#line 122 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gee_array_list_add_all (a, pluggables); -#line 123 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), NULL_TRANSITION_DESCRIPTOR_EFFECT_ID); -#line 124 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), RANDOM_EFFECT_DESCRIPTOR_EFFECT_ID); -#line 125 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp8_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_COLLECTION, GeeCollection), &_tmp7_); -#line 125 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->transitions = (_vala_array_free (self->priv->transitions, self->priv->transitions_length1, (GDestroyNotify) g_free), NULL); -#line 125 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->transitions = _tmp8_; -#line 125 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->transitions_length1 = _tmp7_; -#line 125 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->_transitions_size_ = self->priv->transitions_length1; -#line 126 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp9_ = _g_object_ref0 (start); -#line 126 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->current); -#line 126 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->current = _tmp9_; -#line 128 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - slideshow_page_update_transition_effect (self); -#line 131 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp10_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 131 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - toolbar = _tmp10_; -#line 134 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp11_ = (GtkToolButton*) gtk_tool_button_new (NULL, _ ("Back")); -#line 134 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_object_ref_sink (_tmp11_); -#line 134 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - previous_button = _tmp11_; -#line 135 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_tool_button_set_icon_name (previous_button, "go-previous"); -#line 136 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (previous_button, gtk_tool_item_get_type (), GtkToolItem), _ ("Go to the previous photo")); -#line 137 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_signal_connect_object (previous_button, "clicked", (GCallback) _single_photo_page_on_previous_photo_gtk_tool_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), 0); -#line 139 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (previous_button, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 141 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp12_ = (GtkToolButton*) gtk_tool_button_new (NULL, _ ("Pause")); -#line 141 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_object_ref_sink (_tmp12_); -#line 141 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->play_pause_button); -#line 141 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->play_pause_button = _tmp12_; -#line 142 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp13_ = self->priv->play_pause_button; -#line 142 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_tool_button_set_icon_name (_tmp13_, "media-playback-pause"); -#line 143 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp14_ = self->priv->play_pause_button; -#line 143 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_tool_item_get_type (), GtkToolItem), _ ("Pause the slideshow")); -#line 144 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp15_ = self->priv->play_pause_button; -#line 144 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_signal_connect_object (_tmp15_, "clicked", (GCallback) _slideshow_page_on_play_pause_gtk_tool_button_clicked, self, 0); -#line 146 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp16_ = self->priv->play_pause_button; -#line 146 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 148 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp17_ = (GtkToolButton*) gtk_tool_button_new (NULL, _ ("Next")); -#line 148 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_object_ref_sink (_tmp17_); -#line 148 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - next_button = _tmp17_; -#line 149 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_tool_button_set_icon_name (next_button, "go-next"); -#line 150 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (next_button, gtk_tool_item_get_type (), GtkToolItem), _ ("Go to the next photo")); -#line 151 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_signal_connect_object (next_button, "clicked", (GCallback) _single_photo_page_on_next_photo_gtk_tool_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), 0); -#line 153 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (next_button, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 155 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp18_ = (GtkToolButton*) gtk_tool_button_new (NULL, NULL); -#line 155 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_object_ref_sink (_tmp18_); -#line 155 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->settings_button); -#line 155 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->settings_button = _tmp18_; -#line 156 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp19_ = self->priv->settings_button; -#line 156 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_tool_button_set_icon_name (_tmp19_, "preferences-system"); -#line 157 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp20_ = self->priv->settings_button; -#line 157 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_tool_button_set_label (_tmp20_, _ ("Settings")); -#line 158 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp21_ = self->priv->settings_button; -#line 158 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_tool_item_get_type (), GtkToolItem), _ ("Change slideshow settings")); -#line 159 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp22_ = self->priv->settings_button; -#line 159 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_signal_connect_object (_tmp22_, "clicked", (GCallback) _slideshow_page_on_change_settings_gtk_tool_button_clicked, self, 0); -#line 160 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp23_ = self->priv->settings_button; -#line 160 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_tool_item_get_type (), GtkToolItem), TRUE); -#line 162 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp24_ = self->priv->settings_button; -#line 162 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 164 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp25_ = screensaver_new (); -#line 164 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _screensaver_unref0 (self->priv->screensaver); -#line 164 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->screensaver = _tmp25_; -#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (next_button); -#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (previous_button); -#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (toolbar); -#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (a); -#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (pluggables); -#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return self; -#line 1021 "SlideshowPage.c" -} - - -SlideshowPage* -slideshow_page_new (SourceCollection* sources, - ViewCollection* controller, - Photo* start) -{ -#line 114 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return slideshow_page_construct (TYPE_SLIDESHOW_PAGE, sources, controller, start); -#line 1032 "SlideshowPage.c" -} - - -static gboolean -_slideshow_page_auto_advance_gsource_func (gpointer self) -{ - gboolean result; - result = slideshow_page_auto_advance ((SlideshowPage*) self); -#line 179 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return result; -#line 1043 "SlideshowPage.c" -} - - -static void -slideshow_page_real_switched_to (Page* base) -{ - SlideshowPage * self; - SourceCollection* _tmp0_; - Scaling _tmp1_ = {0}; - PixbufCache* _tmp2_; - GdkPixbuf* pixbuf = NULL; - Photo* _tmp3_; - Photo* _tmp4_ = NULL; - GdkPixbuf* _tmp5_ = NULL; - gboolean _tmp6_; - GTimer* _tmp11_; - Screensaver* _tmp12_; -#line 167 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage); -#line 168 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - PAGE_CLASS (slideshow_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page)); -#line 171 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = self->priv->sources; -#line 171 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - single_photo_page_get_canvas_scaling (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp1_); -#line 171 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = pixbuf_cache_new (_tmp0_, PIXBUF_CACHE_PHOTO_TYPE_BASELINE, &_tmp1_, SLIDESHOW_PAGE_READAHEAD_COUNT, NULL, NULL); -#line 171 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->cache); -#line 171 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->cache = _tmp2_; -#line 175 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp3_ = self->priv->current; -#line 175 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6_ = slideshow_page_get_next_photo (self, _tmp3_, DIRECTION_FORWARD, &_tmp4_, &_tmp5_); -#line 175 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->current); -#line 175 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->current = _tmp4_; -#line 175 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (pixbuf); -#line 175 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - pixbuf = _tmp5_; -#line 175 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp6_) { -#line 1089 "SlideshowPage.c" - GdkPixbuf* _tmp7_; - Photo* _tmp8_; - Dimensions _tmp9_ = {0}; - Direction _tmp10_; -#line 176 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp7_ = pixbuf; -#line 176 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp8_ = self->priv->current; -#line 176 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp9_); -#line 176 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp10_ = DIRECTION_FORWARD; -#line 176 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp7_, &_tmp9_, &_tmp10_); -#line 1104 "SlideshowPage.c" - } -#line 179 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) SLIDESHOW_PAGE_CHECK_ADVANCE_MSEC, _slideshow_page_auto_advance_gsource_func, g_object_ref (self), g_object_unref); -#line 180 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp11_ = self->priv->timer; -#line 180 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_timer_start (_tmp11_); -#line 182 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp12_ = self->priv->screensaver; -#line 182 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - screensaver_inhibit (_tmp12_, "Playing slideshow"); -#line 167 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (pixbuf); -#line 1118 "SlideshowPage.c" -} - - -static void -slideshow_page_real_switching_from (Page* base) -{ - SlideshowPage * self; - Screensaver* _tmp0_; -#line 185 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage); -#line 186 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - PAGE_CLASS (slideshow_page_parent_class)->switching_from (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page)); -#line 188 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = self->priv->screensaver; -#line 188 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - screensaver_uninhibit (_tmp0_); -#line 189 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->exiting = TRUE; -#line 1137 "SlideshowPage.c" -} - - -static gboolean -slideshow_page_get_next_photo (SlideshowPage* self, - Photo* start, - Direction direction, - Photo* * next, - GdkPixbuf* * next_pixbuf) -{ - Photo* _vala_next = NULL; - GdkPixbuf* _vala_next_pixbuf = NULL; - gboolean result = FALSE; - Photo* _tmp0_; - GError * _inner_error_ = NULL; -#line 192 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_val_if_fail (IS_SLIDESHOW_PAGE (self), FALSE); -#line 192 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_val_if_fail (IS_PHOTO (start), FALSE); -#line 194 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = _g_object_ref0 (start); -#line 194 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_vala_next); -#line 194 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _vala_next = _tmp0_; -#line 1163 "SlideshowPage.c" - { - gboolean _tmp1_ = FALSE; -#line 196 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = TRUE; -#line 196 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - while (TRUE) { -#line 1170 "SlideshowPage.c" - DataSource* forward = NULL; - DataSource* back = NULL; - ViewCollection* _tmp37_; - Photo* _tmp38_; - DataSource* _tmp39_ = NULL; - DataSource* _tmp40_ = NULL; - PixbufCache* _tmp41_; - DataSource* _tmp42_; - PixbufCache* _tmp43_; - DataSource* _tmp44_; - GeeSet* neighbors = NULL; - ViewCollection* _tmp45_; - Photo* _tmp46_; - GeeSet* _tmp47_; - GeeSet* _tmp48_; - DataSource* _tmp49_; - GeeSet* _tmp50_; - DataSource* _tmp51_; - PixbufCache* _tmp52_; - GeeSet* _tmp53_; -#line 196 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (!_tmp1_) { -#line 1193 "SlideshowPage.c" - } -#line 196 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = FALSE; -#line 1197 "SlideshowPage.c" - { - GdkPixbuf* _tmp2_ = NULL; - PixbufCache* _tmp3_; - Photo* _tmp4_; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; -#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp3_ = self->priv->cache; -#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp4_ = _vala_next; -#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp5_ = pixbuf_cache_fetch (_tmp3_, _tmp4_, &_inner_error_); -#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = _tmp5_; -#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1214 "SlideshowPage.c" - goto __catch470_g_error; - } -#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6_ = _tmp2_; -#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = NULL; -#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_vala_next_pixbuf); -#line 199 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _vala_next_pixbuf = _tmp6_; -#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp2_); -#line 1227 "SlideshowPage.c" - } - goto __finally470; - __catch470_g_error: - { - GError* err = NULL; - Photo* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - GError* _tmp10_; - const gchar* _tmp11_; - DataView* view = NULL; - ViewCollection* _tmp12_; - Photo* _tmp13_; - DataView* _tmp14_; - DataView* _tmp15_ = NULL; - DataView* _tmp22_; - DataView* _tmp23_; - DataSource* _tmp24_; - gboolean _tmp25_ = FALSE; - gboolean _tmp26_ = FALSE; - Photo* _tmp27_; -#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - err = _inner_error_; -#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _inner_error_ = NULL; -#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp7_ = _vala_next; -#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp8_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_OBJECT, DataObject)); -#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp9_ = _tmp8_; -#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp10_ = err; -#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp11_ = _tmp10_->message; -#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_warning ("SlideshowPage.vala:201: Unable to fetch pixbuf for %s: %s", _tmp9_, _tmp11_); -#line 201 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_free0 (_tmp9_); -#line 204 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp12_ = self->priv->controller; -#line 204 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp13_ = _vala_next; -#line 204 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp14_ = view_collection_get_view_for_source (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_SOURCE, DataSource)); -#line 204 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - view = _tmp14_; -#line 205 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (direction == DIRECTION_FORWARD) { -#line 1277 "SlideshowPage.c" - ViewCollection* _tmp16_; - DataView* _tmp17_; - DataView* _tmp18_; -#line 206 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp16_ = self->priv->controller; -#line 206 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp17_ = view; -#line 206 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp18_ = view_collection_get_next (_tmp16_, _tmp17_); -#line 206 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp15_); -#line 206 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp15_ = _tmp18_; -#line 1291 "SlideshowPage.c" - } else { - ViewCollection* _tmp19_; - DataView* _tmp20_; - DataView* _tmp21_; -#line 207 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp19_ = self->priv->controller; -#line 207 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp20_ = view; -#line 207 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp21_ = view_collection_get_previous (_tmp19_, _tmp20_); -#line 207 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp15_); -#line 207 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp15_ = _tmp21_; -#line 1306 "SlideshowPage.c" - } -#line 205 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp22_ = _g_object_ref0 (_tmp15_); -#line 205 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (view); -#line 205 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - view = _tmp22_; -#line 208 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp23_ = view; -#line 208 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp24_ = data_view_get_source (_tmp23_); -#line 208 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_vala_next); -#line 208 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _vala_next = G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_PHOTO, Photo); -#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp27_ = _vala_next; -#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp27_ == start) { -#line 1326 "SlideshowPage.c" - Photo* _tmp28_; - Photo* _tmp29_; -#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp28_ = _vala_next; -#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp29_ = self->priv->current; -#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp26_ = _tmp28_ != _tmp29_; -#line 1335 "SlideshowPage.c" - } else { -#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp26_ = FALSE; -#line 1339 "SlideshowPage.c" - } -#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp26_) { -#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp25_ = TRUE; -#line 1345 "SlideshowPage.c" - } else { - Photo* _tmp30_; - Photo* _tmp31_; -#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp30_ = _vala_next; -#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp31_ = self->priv->current; -#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp25_ = _tmp30_ == _tmp31_; -#line 1355 "SlideshowPage.c" - } -#line 211 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp25_) { -#line 1359 "SlideshowPage.c" - GtkWindow* _tmp32_; - GtkWindow* _tmp33_; - AppWindow* _tmp34_; - AppWindow* _tmp35_; -#line 212 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp32_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 212 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp33_ = _tmp32_; -#line 212 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - app_window_error_message (_ ("All photo source files are missing."), _tmp33_); -#line 212 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp33_); -#line 213 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp34_ = app_window_get_instance (); -#line 213 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp35_ = _tmp34_; -#line 213 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - app_window_end_fullscreen (_tmp35_); -#line 213 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp35_); -#line 215 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_vala_next); -#line 215 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _vala_next = NULL; -#line 216 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_vala_next_pixbuf); -#line 216 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _vala_next_pixbuf = NULL; -#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - result = FALSE; -#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp15_); -#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (view); -#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_error_free0 (err); -#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (next) { -#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - *next = _vala_next; -#line 1400 "SlideshowPage.c" - } else { -#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_vala_next); -#line 1404 "SlideshowPage.c" - } -#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (next_pixbuf) { -#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - *next_pixbuf = _vala_next_pixbuf; -#line 1410 "SlideshowPage.c" - } else { -#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_vala_next_pixbuf); -#line 1414 "SlideshowPage.c" - } -#line 218 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return result; -#line 1418 "SlideshowPage.c" - } -#line 221 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp15_); -#line 221 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (view); -#line 221 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_error_free0 (err); -#line 221 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - continue; -#line 1428 "SlideshowPage.c" - } - __finally470: -#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1433 "SlideshowPage.c" - gboolean _tmp36_ = FALSE; -#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_clear_error (&_inner_error_); -#line 197 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return _tmp36_; -#line 1441 "SlideshowPage.c" - } -#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp37_ = self->priv->controller; -#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp38_ = _vala_next; -#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - view_collection_get_immediate_neighbors (_tmp37_, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_DATA_SOURCE, DataSource), &_tmp39_, &_tmp40_, PHOTO_TYPENAME); -#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (forward); -#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - forward = _tmp39_; -#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (back); -#line 227 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - back = _tmp40_; -#line 228 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp41_ = self->priv->cache; -#line 228 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp42_ = forward; -#line 228 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - pixbuf_cache_prefetch (_tmp41_, G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_PHOTO, Photo), BACKGROUND_JOB_JOB_PRIORITY_HIGHEST, FALSE); -#line 229 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp43_ = self->priv->cache; -#line 229 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp44_ = back; -#line 229 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - pixbuf_cache_prefetch (_tmp43_, G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_PHOTO, Photo), BACKGROUND_JOB_JOB_PRIORITY_NORMAL, FALSE); -#line 231 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp45_ = self->priv->controller; -#line 231 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp46_ = _vala_next; -#line 231 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp47_ = view_collection_get_extended_neighbors (_tmp45_, G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_DATA_SOURCE, DataSource), PHOTO_TYPENAME); -#line 231 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - neighbors = _tmp47_; -#line 232 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp48_ = neighbors; -#line 232 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp49_ = forward; -#line 232 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, GEE_TYPE_COLLECTION, GeeCollection), _tmp49_); -#line 233 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp50_ = neighbors; -#line 233 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp51_ = back; -#line 233 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_COLLECTION, GeeCollection), _tmp51_); -#line 235 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp52_ = self->priv->cache; -#line 235 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp53_ = neighbors; -#line 235 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - pixbuf_cache_prefetch_many (_tmp52_, G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_COLLECTION, GeeCollection), BACKGROUND_JOB_JOB_PRIORITY_LOWEST, FALSE); -#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - result = TRUE; -#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (neighbors); -#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (back); -#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (forward); -#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (next) { -#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - *next = _vala_next; -#line 1507 "SlideshowPage.c" - } else { -#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_vala_next); -#line 1511 "SlideshowPage.c" - } -#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (next_pixbuf) { -#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - *next_pixbuf = _vala_next_pixbuf; -#line 1517 "SlideshowPage.c" - } else { -#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_vala_next_pixbuf); -#line 1521 "SlideshowPage.c" - } -#line 237 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return result; -#line 1525 "SlideshowPage.c" - } - } -#line 192 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (next) { -#line 192 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - *next = _vala_next; -#line 1532 "SlideshowPage.c" - } else { -#line 192 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_vala_next); -#line 1536 "SlideshowPage.c" - } -#line 192 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (next_pixbuf) { -#line 192 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - *next_pixbuf = _vala_next_pixbuf; -#line 1542 "SlideshowPage.c" - } else { -#line 192 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_vala_next_pixbuf); -#line 1546 "SlideshowPage.c" - } -} - - -static void -slideshow_page_on_play_pause (SlideshowPage* self) -{ - gboolean _tmp0_; - gboolean _tmp7_; - GTimer* _tmp8_; -#line 241 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_if_fail (IS_SLIDESHOW_PAGE (self)); -#line 242 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = self->priv->playing; -#line 242 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp0_) { -#line 1563 "SlideshowPage.c" - GtkToolButton* _tmp1_; - GtkToolButton* _tmp2_; - GtkToolButton* _tmp3_; -#line 243 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = self->priv->play_pause_button; -#line 243 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_tool_button_set_icon_name (_tmp1_, "media-playback-start"); -#line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = self->priv->play_pause_button; -#line 244 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_tool_button_set_label (_tmp2_, _ ("Play")); -#line 245 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp3_ = self->priv->play_pause_button; -#line 245 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_tool_item_get_type (), GtkToolItem), _ ("Continue the slideshow")); -#line 1579 "SlideshowPage.c" - } else { - GtkToolButton* _tmp4_; - GtkToolButton* _tmp5_; - GtkToolButton* _tmp6_; -#line 247 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp4_ = self->priv->play_pause_button; -#line 247 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_tool_button_set_icon_name (_tmp4_, "media-playback-pause"); -#line 248 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp5_ = self->priv->play_pause_button; -#line 248 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_tool_button_set_label (_tmp5_, _ ("Pause")); -#line 249 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6_ = self->priv->play_pause_button; -#line 249 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tool_item_get_type (), GtkToolItem), _ ("Pause the slideshow")); -#line 1596 "SlideshowPage.c" - } -#line 252 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp7_ = self->priv->playing; -#line 252 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->playing = !_tmp7_; -#line 255 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp8_ = self->priv->timer; -#line 255 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_timer_start (_tmp8_); -#line 1606 "SlideshowPage.c" -} - - -static void -slideshow_page_real_on_previous_photo (SinglePhotoPage* base) -{ - SlideshowPage * self; - DataView* view = NULL; - ViewCollection* _tmp0_; - Photo* _tmp1_; - DataView* _tmp2_; - Photo* prev_photo = NULL; - DataView* start_view = NULL; - ViewCollection* _tmp3_; - DataView* _tmp4_; - DataView* _tmp5_; - DataView* prev_view = NULL; - DataView* _tmp6_; - DataView* _tmp7_; - Photo* _tmp20_; -#line 258 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage); -#line 259 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = self->priv->controller; -#line 259 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = self->priv->current; -#line 259 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = view_collection_get_view_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_SOURCE, DataSource)); -#line 259 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - view = _tmp2_; -#line 261 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - prev_photo = NULL; -#line 262 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp3_ = self->priv->controller; -#line 262 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp4_ = view; -#line 262 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp5_ = view_collection_get_previous (_tmp3_, _tmp4_); -#line 262 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - start_view = _tmp5_; -#line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6_ = start_view; -#line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp7_ = _g_object_ref0 (_tmp6_); -#line 263 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - prev_view = _tmp7_; -#line 265 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - while (TRUE) { -#line 1655 "SlideshowPage.c" - DataView* _tmp8_; - DataView* _tmp9_; - DataSource* _tmp10_; - DataSource* _tmp11_; - gboolean _tmp12_; - ViewCollection* _tmp15_; - DataView* _tmp16_; - DataView* _tmp17_; - DataView* _tmp18_; - DataView* _tmp19_; -#line 265 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp8_ = prev_view; -#line 265 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (!(_tmp8_ != NULL)) { -#line 265 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - break; -#line 1672 "SlideshowPage.c" - } -#line 266 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp9_ = prev_view; -#line 266 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp10_ = data_view_get_source (_tmp9_); -#line 266 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp11_ = _tmp10_; -#line 266 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp12_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_PHOTO); -#line 266 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp11_); -#line 266 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp12_) { -#line 1686 "SlideshowPage.c" - DataView* _tmp13_; - DataSource* _tmp14_; -#line 267 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp13_ = prev_view; -#line 267 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp14_ = data_view_get_source (_tmp13_); -#line 267 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (prev_photo); -#line 267 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - prev_photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PHOTO, Photo); -#line 268 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - break; -#line 1699 "SlideshowPage.c" - } -#line 271 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp15_ = self->priv->controller; -#line 271 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp16_ = prev_view; -#line 271 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp17_ = view_collection_get_previous (_tmp15_, _tmp16_); -#line 271 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (prev_view); -#line 271 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - prev_view = _tmp17_; -#line 273 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp18_ = prev_view; -#line 273 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp19_ = start_view; -#line 273 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp18_ == _tmp19_) { -#line 274 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_warning ("SlideshowPage.vala:274: on_previous( ): can't advance to previous phot" \ -"o: collection has only videos"); -#line 275 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (prev_view); -#line 275 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (start_view); -#line 275 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (prev_photo); -#line 275 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (view); -#line 275 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return; -#line 1729 "SlideshowPage.c" - } - } -#line 279 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp20_ = prev_photo; -#line 279 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - slideshow_page_advance (self, _tmp20_, DIRECTION_BACKWARD); -#line 258 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (prev_view); -#line 258 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (start_view); -#line 258 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (prev_photo); -#line 258 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (view); -#line 1744 "SlideshowPage.c" -} - - -static void -slideshow_page_real_on_next_photo (SinglePhotoPage* base) -{ - SlideshowPage * self; - DataView* view = NULL; - ViewCollection* _tmp0_; - Photo* _tmp1_; - DataView* _tmp2_; - Photo* next_photo = NULL; - DataView* start_view = NULL; - ViewCollection* _tmp3_; - DataView* _tmp4_; - DataView* _tmp5_; - DataView* next_view = NULL; - DataView* _tmp6_; - DataView* _tmp7_; - ConfigFacade* _tmp20_; - ConfigFacade* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gboolean _tmp24_; - Photo* _tmp25_; -#line 282 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage); -#line 283 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = self->priv->controller; -#line 283 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = self->priv->current; -#line 283 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = view_collection_get_view_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_SOURCE, DataSource)); -#line 283 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - view = _tmp2_; -#line 285 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - next_photo = NULL; -#line 286 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp3_ = self->priv->controller; -#line 286 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp4_ = view; -#line 286 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp5_ = view_collection_get_next (_tmp3_, _tmp4_); -#line 286 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - start_view = _tmp5_; -#line 287 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6_ = start_view; -#line 287 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp7_ = _g_object_ref0 (_tmp6_); -#line 287 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - next_view = _tmp7_; -#line 289 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - while (TRUE) { -#line 1798 "SlideshowPage.c" - DataView* _tmp8_; - DataView* _tmp9_; - DataSource* _tmp10_; - DataSource* _tmp11_; - gboolean _tmp12_; - ViewCollection* _tmp15_; - DataView* _tmp16_; - DataView* _tmp17_; - DataView* _tmp18_; - DataView* _tmp19_; -#line 289 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp8_ = next_view; -#line 289 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (!(_tmp8_ != NULL)) { -#line 289 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - break; -#line 1815 "SlideshowPage.c" - } -#line 290 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp9_ = next_view; -#line 290 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp10_ = data_view_get_source (_tmp9_); -#line 290 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp11_ = _tmp10_; -#line 290 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp12_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_PHOTO); -#line 290 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp11_); -#line 290 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp12_) { -#line 1829 "SlideshowPage.c" - DataView* _tmp13_; - DataSource* _tmp14_; -#line 291 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp13_ = next_view; -#line 291 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp14_ = data_view_get_source (_tmp13_); -#line 291 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (next_photo); -#line 291 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - next_photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PHOTO, Photo); -#line 292 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - break; -#line 1842 "SlideshowPage.c" - } -#line 295 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp15_ = self->priv->controller; -#line 295 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp16_ = next_view; -#line 295 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp17_ = view_collection_get_next (_tmp15_, _tmp16_); -#line 295 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (next_view); -#line 295 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - next_view = _tmp17_; -#line 297 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp18_ = next_view; -#line 297 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp19_ = start_view; -#line 297 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp18_ == _tmp19_) { -#line 298 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_warning ("SlideshowPage.vala:298: on_next( ): can't advance to next photo: colle" \ -"ction has only videos"); -#line 299 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (next_view); -#line 299 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (start_view); -#line 299 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (next_photo); -#line 299 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (view); -#line 299 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return; -#line 1872 "SlideshowPage.c" - } - } -#line 303 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp20_ = config_facade_get_instance (); -#line 303 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp21_ = _tmp20_; -#line 303 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp22_ = configuration_facade_get_slideshow_transition_effect_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 303 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp23_ = _tmp22_; -#line 303 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp24_ = g_strcmp0 (_tmp23_, RANDOM_EFFECT_DESCRIPTOR_EFFECT_ID) == 0; -#line 303 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_free0 (_tmp23_); -#line 303 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp21_); -#line 303 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp24_) { -#line 305 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - slideshow_page_random_transition_effect (self); -#line 1893 "SlideshowPage.c" - } -#line 308 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp25_ = next_photo; -#line 308 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - slideshow_page_advance (self, _tmp25_, DIRECTION_FORWARD); -#line 282 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (next_view); -#line 282 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (start_view); -#line 282 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (next_photo); -#line 282 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (view); -#line 1907 "SlideshowPage.c" -} - - -static void -slideshow_page_advance (SlideshowPage* self, - Photo* photo, - Direction direction) -{ - Photo* _tmp0_; - GdkPixbuf* next_pixbuf = NULL; - Photo* _tmp1_; - Photo* _tmp2_ = NULL; - GdkPixbuf* _tmp3_ = NULL; - gboolean _tmp4_; - GTimer* _tmp8_; -#line 311 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_if_fail (IS_SLIDESHOW_PAGE (self)); -#line 311 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_if_fail (IS_PHOTO (photo)); -#line 312 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = _g_object_ref0 (photo); -#line 312 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->current); -#line 312 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->current = _tmp0_; -#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = self->priv->current; -#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp4_ = slideshow_page_get_next_photo (self, _tmp1_, direction, &_tmp2_, &_tmp3_); -#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->current); -#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->current = _tmp2_; -#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (next_pixbuf); -#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - next_pixbuf = _tmp3_; -#line 316 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp4_) { -#line 1947 "SlideshowPage.c" - GdkPixbuf* _tmp5_; - Photo* _tmp6_; - Dimensions _tmp7_ = {0}; -#line 317 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp5_ = next_pixbuf; -#line 317 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6_ = self->priv->current; -#line 317 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp7_); -#line 317 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp5_, &_tmp7_, &direction); -#line 1959 "SlideshowPage.c" - } -#line 320 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp8_ = self->priv->timer; -#line 320 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_timer_start (_tmp8_); -#line 311 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (next_pixbuf); -#line 1967 "SlideshowPage.c" -} - - -static gboolean -slideshow_page_auto_advance (SlideshowPage* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; - gboolean _tmp1_; - GTimer* _tmp2_; - gdouble _tmp3_; - ConfigFacade* _tmp4_; - ConfigFacade* _tmp5_; - gboolean _tmp6_; -#line 323 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_val_if_fail (IS_SLIDESHOW_PAGE (self), FALSE); -#line 324 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = self->priv->exiting; -#line 324 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp0_) { -#line 325 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - result = FALSE; -#line 325 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return result; -#line 1992 "SlideshowPage.c" - } -#line 327 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = self->priv->playing; -#line 327 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (!_tmp1_) { -#line 328 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - result = TRUE; -#line 328 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return result; -#line 2002 "SlideshowPage.c" - } -#line 330 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = self->priv->timer; -#line 330 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp3_ = g_timer_elapsed (_tmp2_, NULL); -#line 330 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp4_ = config_facade_get_instance (); -#line 330 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp5_ = _tmp4_; -#line 330 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6_ = _tmp3_ < configuration_facade_get_slideshow_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 330 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp5_); -#line 330 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp6_) { -#line 331 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - result = TRUE; -#line 331 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return result; -#line 2022 "SlideshowPage.c" - } -#line 333 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - single_photo_page_on_next_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 335 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - result = TRUE; -#line 335 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return result; -#line 2030 "SlideshowPage.c" -} - - -static gboolean -slideshow_page_real_key_press_event (GtkWidget* base, - GdkEventKey* event) -{ - SlideshowPage * self; - gboolean result = FALSE; - gboolean handled = FALSE; - guint _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - GQuark _tmp4_ = 0U; -#line 340 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - static GQuark _tmp3_label0 = 0; -#line 2047 "SlideshowPage.c" - gboolean _tmp5_; - gboolean _tmp6_ = FALSE; -#line 338 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage); -#line 338 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 339 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - handled = TRUE; -#line 340 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = event->keyval; -#line 340 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = gdk_keyval_name (_tmp0_); -#line 340 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = _tmp1_; -#line 340 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_); -#line 340 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("space")))) { -#line 340 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - switch (0) { -#line 2068 "SlideshowPage.c" - default: - { -#line 342 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - slideshow_page_on_play_pause (self); -#line 343 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - break; -#line 2075 "SlideshowPage.c" - } - } - } else { -#line 340 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - switch (0) { -#line 2081 "SlideshowPage.c" - default: - { -#line 346 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - handled = FALSE; -#line 347 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - break; -#line 2088 "SlideshowPage.c" - } - } - } -#line 350 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp5_ = handled; -#line 350 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp5_) { -#line 351 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - result = TRUE; -#line 351 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return result; -#line 2100 "SlideshowPage.c" - } -#line 353 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (GTK_WIDGET_CLASS (slideshow_page_parent_class)->key_press_event != NULL) { -#line 353 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6_ = GTK_WIDGET_CLASS (slideshow_page_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), gtk_widget_get_type (), GtkWidget), event); -#line 2106 "SlideshowPage.c" - } else { -#line 353 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6_ = TRUE; -#line 2110 "SlideshowPage.c" - } -#line 353 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - result = _tmp6_; -#line 353 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return result; -#line 2116 "SlideshowPage.c" -} - - -static void -slideshow_page_on_change_settings (SlideshowPage* self) -{ - SlideshowPageSettingsDialog* settings_dialog = NULL; - SlideshowPageSettingsDialog* _tmp0_; - SlideshowPageSettingsDialog* _tmp1_; - gboolean slideshow_playing = FALSE; - gboolean _tmp2_; - SlideshowPageSettingsDialog* _tmp3_; - SlideshowPageSettingsDialog* _tmp18_; - gboolean _tmp19_; - GTimer* _tmp20_; -#line 356 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_if_fail (IS_SLIDESHOW_PAGE (self)); -#line 357 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = slideshow_page_settings_dialog_new (); -#line 357 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_object_ref_sink (_tmp0_); -#line 357 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - settings_dialog = _tmp0_; -#line 358 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = settings_dialog; -#line 358 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 360 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = self->priv->playing; -#line 360 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - slideshow_playing = _tmp2_; -#line 361 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->playing = FALSE; -#line 362 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_signal_emit (self, slideshow_page_signals[SLIDESHOW_PAGE_HIDE_TOOLBAR_SIGNAL], 0); -#line 364 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp3_ = settings_dialog; -#line 364 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_OK)) { -#line 2156 "SlideshowPage.c" - ConfigFacade* _tmp4_; - ConfigFacade* _tmp5_; - SlideshowPageSettingsDialog* _tmp6_; - ConfigFacade* _tmp7_; - ConfigFacade* _tmp8_; - SlideshowPageSettingsDialog* _tmp9_; - ConfigFacade* _tmp10_; - ConfigFacade* _tmp11_; - SlideshowPageSettingsDialog* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - ConfigFacade* _tmp15_; - ConfigFacade* _tmp16_; - SlideshowPageSettingsDialog* _tmp17_; -#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp4_ = config_facade_get_instance (); -#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp5_ = _tmp4_; -#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6_ = settings_dialog; -#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - configuration_facade_set_slideshow_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), slideshow_page_settings_dialog_get_delay (_tmp6_)); -#line 366 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp5_); -#line 368 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp7_ = config_facade_get_instance (); -#line 368 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp8_ = _tmp7_; -#line 368 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp9_ = settings_dialog; -#line 368 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - configuration_facade_set_slideshow_transition_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), slideshow_page_settings_dialog_get_transition_delay (_tmp9_)); -#line 368 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp8_); -#line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp10_ = config_facade_get_instance (); -#line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp11_ = _tmp10_; -#line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp12_ = settings_dialog; -#line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp13_ = slideshow_page_settings_dialog_get_transition_effect_id (_tmp12_); -#line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp14_ = _tmp13_; -#line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - configuration_facade_set_slideshow_transition_effect_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp14_); -#line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_free0 (_tmp14_); -#line 369 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp11_); -#line 370 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp15_ = config_facade_get_instance (); -#line 370 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp16_ = _tmp15_; -#line 370 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp17_ = settings_dialog; -#line 370 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - configuration_facade_set_slideshow_show_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), slideshow_page_settings_dialog_get_show_title (_tmp17_)); -#line 370 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp16_); -#line 372 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - slideshow_page_update_transition_effect (self); -#line 2219 "SlideshowPage.c" - } -#line 375 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp18_ = settings_dialog; -#line 375 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget)); -#line 376 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp19_ = slideshow_playing; -#line 376 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->playing = _tmp19_; -#line 377 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp20_ = self->priv->timer; -#line 377 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_timer_start (_tmp20_); -#line 356 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (settings_dialog); -#line 2235 "SlideshowPage.c" -} - - -static void -slideshow_page_update_transition_effect (SlideshowPage* self) -{ - gchar* effect_id = NULL; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gdouble effect_delay = 0.0; - ConfigFacade* _tmp4_; - ConfigFacade* _tmp5_; - gdouble _tmp6_; -#line 380 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_if_fail (IS_SLIDESHOW_PAGE (self)); -#line 381 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 381 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = _tmp0_; -#line 381 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = configuration_facade_get_slideshow_transition_effect_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 381 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp3_ = _tmp2_; -#line 381 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp1_); -#line 381 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - effect_id = _tmp3_; -#line 382 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp4_ = config_facade_get_instance (); -#line 382 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp5_ = _tmp4_; -#line 382 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6_ = configuration_facade_get_slideshow_transition_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 382 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp5_); -#line 382 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - effect_delay = _tmp6_; -#line 384 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - single_photo_page_set_transition (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), effect_id, (gint) (effect_delay * 1000.0)); -#line 380 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_free0 (effect_id); -#line 2279 "SlideshowPage.c" -} - - -static void -slideshow_page_random_transition_effect (SlideshowPage* self) -{ - gdouble effect_delay = 0.0; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gdouble _tmp2_; - gchar* effect_id = NULL; - gchar* _tmp3_; - gchar** _tmp4_; - gint _tmp4__length1; - const gchar* _tmp10_; - gdouble _tmp11_; -#line 387 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_if_fail (IS_SLIDESHOW_PAGE (self)); -#line 388 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 388 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = _tmp0_; -#line 388 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = configuration_facade_get_slideshow_transition_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 388 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp1_); -#line 388 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - effect_delay = _tmp2_; -#line 389 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp3_ = g_strdup (TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID); -#line 389 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - effect_id = _tmp3_; -#line 390 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp4_ = self->priv->transitions; -#line 390 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp4__length1 = self->priv->transitions_length1; -#line 390 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (0 < _tmp4__length1) { -#line 2318 "SlideshowPage.c" - gint random = 0; - gchar** _tmp5_; - gint _tmp5__length1; - gchar** _tmp6_; - gint _tmp6__length1; - gint _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; -#line 391 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp5_ = self->priv->transitions; -#line 391 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp5__length1 = self->priv->transitions_length1; -#line 391 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - random = (gint) g_random_int_range ((gint32) 0, (gint32) _tmp5__length1); -#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6_ = self->priv->transitions; -#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6__length1 = self->priv->transitions_length1; -#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp7_ = random; -#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp8_ = _tmp6_[_tmp7_]; -#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_free0 (effect_id); -#line 392 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - effect_id = _tmp9_; -#line 2347 "SlideshowPage.c" - } -#line 394 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp10_ = effect_id; -#line 394 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp11_ = effect_delay; -#line 394 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - single_photo_page_set_transition (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), _tmp10_, (gint) (_tmp11_ * 1000.0)); -#line 387 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_free0 (effect_id); -#line 2357 "SlideshowPage.c" -} - - -static void -slideshow_page_paint_title (SlideshowPage* self, - cairo_t* ctx, - Dimensions* ctx_dim) -{ - gchar* title = NULL; - Photo* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_ = FALSE; - const gchar* _tmp3_; - PangoLayout* layout = NULL; - const gchar* _tmp5_; - PangoLayout* _tmp6_; - PangoAttrList* list = NULL; - PangoAttrList* _tmp7_; - PangoAttribute* size = NULL; - PangoAttribute* _tmp8_; - PangoAttrList* _tmp9_; - PangoAttribute* _tmp10_; - PangoAttribute* _tmp11_; - PangoLayout* _tmp12_; - PangoAttrList* _tmp13_; - PangoLayout* _tmp14_; - Dimensions _tmp15_; - gint _tmp16_; - gint title_width = 0; - gint title_height = 0; - PangoLayout* _tmp17_; - gint _tmp18_ = 0; - gint _tmp19_ = 0; - gdouble x = 0.0; - Dimensions _tmp20_; - gint _tmp21_; - gdouble y = 0.0; - Dimensions _tmp22_; - gint _tmp23_; - gdouble _tmp24_; - gint _tmp25_; - Dimensions _tmp26_; - gint _tmp27_; - gdouble _tmp31_; - gint _tmp32_; - Dimensions _tmp33_; - gint _tmp34_; - gdouble _tmp38_; - gdouble _tmp39_; - PangoLayout* _tmp40_; - PangoLayout* _tmp41_; -#line 398 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_if_fail (IS_SLIDESHOW_PAGE (self)); -#line 398 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_if_fail (ctx != NULL); -#line 398 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_if_fail (ctx_dim != NULL); -#line 399 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = self->priv->current; -#line 399 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = media_source_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 399 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - title = _tmp1_; -#line 402 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp3_ = title; -#line 402 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp3_ == NULL) { -#line 402 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = TRUE; -#line 2427 "SlideshowPage.c" - } else { - const gchar* _tmp4_; -#line 402 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp4_ = title; -#line 402 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = g_strcmp0 (_tmp4_, "") == 0; -#line 2434 "SlideshowPage.c" - } -#line 402 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp2_) { -#line 403 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_free0 (title); -#line 403 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return; -#line 2442 "SlideshowPage.c" - } -#line 405 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp5_ = title; -#line 405 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6_ = gtk_widget_create_pango_layout (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp5_); -#line 405 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - layout = _tmp6_; -#line 406 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp7_ = pango_attr_list_new (); -#line 406 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - list = _tmp7_; -#line 407 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp8_ = pango_attr_scale_new ((gdouble) 3); -#line 407 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - size = _tmp8_; -#line 408 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp9_ = list; -#line 408 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp10_ = size; -#line 408 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp11_ = pango_attribute_copy (_tmp10_); -#line 408 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - pango_attr_list_insert (_tmp9_, _tmp11_); -#line 409 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp12_ = layout; -#line 409 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp13_ = list; -#line 409 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - pango_layout_set_attributes (_tmp12_, _tmp13_); -#line 410 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp14_ = layout; -#line 410 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp15_ = *ctx_dim; -#line 410 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp16_ = _tmp15_.width; -#line 410 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - pango_layout_set_width (_tmp14_, (gint) ((_tmp16_ * 0.9) * PANGO_SCALE)); -#line 414 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp17_ = layout; -#line 414 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - pango_layout_get_pixel_size (_tmp17_, &_tmp18_, &_tmp19_); -#line 414 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - title_width = _tmp18_; -#line 414 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - title_height = _tmp19_; -#line 415 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp20_ = *ctx_dim; -#line 415 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp21_ = _tmp20_.width; -#line 415 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - x = _tmp21_ * 0.2; -#line 416 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp22_ = *ctx_dim; -#line 416 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp23_ = _tmp22_.height; -#line 416 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - y = _tmp23_ * 0.90; -#line 419 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp24_ = y; -#line 419 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp25_ = title_height; -#line 419 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp26_ = *ctx_dim; -#line 419 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp27_ = _tmp26_.height; -#line 419 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if ((_tmp24_ + _tmp25_) >= (_tmp27_ * 0.95)) { -#line 2510 "SlideshowPage.c" - Dimensions _tmp28_; - gint _tmp29_; - gint _tmp30_; -#line 420 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp28_ = *ctx_dim; -#line 420 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp29_ = _tmp28_.height; -#line 420 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp30_ = title_height; -#line 420 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - y = (_tmp29_ * 0.95) - _tmp30_; -#line 2522 "SlideshowPage.c" - } -#line 422 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp31_ = x; -#line 422 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp32_ = title_width; -#line 422 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp33_ = *ctx_dim; -#line 422 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp34_ = _tmp33_.width; -#line 422 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if ((_tmp31_ + _tmp32_) >= (_tmp34_ * 0.95)) { -#line 2534 "SlideshowPage.c" - Dimensions _tmp35_; - gint _tmp36_; - gint _tmp37_; -#line 423 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp35_ = *ctx_dim; -#line 423 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp36_ = _tmp35_.width; -#line 423 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp37_ = title_width; -#line 423 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - x = (gdouble) ((_tmp36_ / 2) - (_tmp37_ / 2)); -#line 2546 "SlideshowPage.c" - } -#line 425 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - set_source_color_from_string (ctx, "#fff"); -#line 426 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp38_ = x; -#line 426 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp39_ = y; -#line 426 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - cairo_move_to (ctx, _tmp38_, _tmp39_); -#line 427 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp40_ = layout; -#line 427 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - pango_cairo_show_layout (ctx, _tmp40_); -#line 428 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp41_ = layout; -#line 428 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - pango_cairo_layout_path (ctx, _tmp41_); -#line 429 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - cairo_set_line_width (ctx, 1.5); -#line 430 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - set_source_color_from_string (ctx, "#000"); -#line 431 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - cairo_stroke (ctx); -#line 398 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _pango_attribute_destroy0 (size); -#line 398 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _pango_attr_list_unref0 (list); -#line 398 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (layout); -#line 398 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_free0 (title); -#line 2578 "SlideshowPage.c" -} - - -static void -slideshow_page_real_paint (SinglePhotoPage* base, - cairo_t* ctx, - Dimensions* ctx_dim) -{ - SlideshowPage * self; - Dimensions _tmp0_; - gboolean _tmp1_ = FALSE; - ConfigFacade* _tmp2_; - ConfigFacade* _tmp3_; - gboolean _tmp4_; -#line 434 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SLIDESHOW_PAGE, SlideshowPage); -#line 434 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_if_fail (ctx != NULL); -#line 434 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_if_fail (ctx_dim != NULL); -#line 435 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = *ctx_dim; -#line 435 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - SINGLE_PHOTO_PAGE_CLASS (slideshow_page_parent_class)->paint (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), ctx, &_tmp0_); -#line 437 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = config_facade_get_instance (); -#line 437 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp3_ = _tmp2_; -#line 437 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp4_ = configuration_facade_get_slideshow_show_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 437 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp3_); -#line 437 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp4_) { -#line 437 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = !single_photo_page_is_transition_in_progress (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 2615 "SlideshowPage.c" - } else { -#line 437 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = FALSE; -#line 2619 "SlideshowPage.c" - } -#line 437 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp1_) { -#line 2623 "SlideshowPage.c" - Dimensions _tmp5_; -#line 438 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp5_ = *ctx_dim; -#line 438 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - slideshow_page_paint_title (self, ctx, &_tmp5_); -#line 2629 "SlideshowPage.c" - } -} - - -static gint -_utf8_ci_compare_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = utf8_ci_compare (a, b); -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return result; -#line 2643 "SlideshowPage.c" -} - - -static void -_slideshow_page_settings_dialog_on_transition_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 71 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - slideshow_page_settings_dialog_on_transition_changed ((SlideshowPageSettingsDialog*) self); -#line 2653 "SlideshowPage.c" -} - - -static SlideshowPageSettingsDialog* -slideshow_page_settings_dialog_construct (GType object_type) -{ - SlideshowPageSettingsDialog * self = NULL; - gdouble delay = 0.0; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gdouble _tmp2_; - FullscreenWindow* _tmp3_; - FullscreenWindow* _tmp4_; - GtkAdjustment* _tmp5_; - gdouble _tmp6_; - gchar* effect_id = NULL; - ConfigFacade* _tmp7_; - ConfigFacade* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* null_display_name = NULL; - TransitionEffectsManager* _tmp11_; - TransitionEffectsManager* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - GtkComboBoxText* _tmp15_; - const gchar* _tmp16_; - GtkComboBoxText* _tmp17_; - gint i = 0; - GtkComboBoxText* _tmp41_; - gdouble transition_delay = 0.0; - ConfigFacade* _tmp42_; - ConfigFacade* _tmp43_; - gdouble _tmp44_; - GtkAdjustment* _tmp45_; - gboolean show_title = FALSE; - ConfigFacade* _tmp46_; - ConfigFacade* _tmp47_; - gboolean _tmp48_; - GtkCheckButton* _tmp49_; -#line 43 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self = (SlideshowPageSettingsDialog*) g_object_new (object_type, NULL); -#line 44 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 44 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = _tmp0_; -#line 44 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = configuration_facade_get_slideshow_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 44 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp1_); -#line 44 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - delay = _tmp2_; -#line 46 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp3_ = app_window_get_fullscreen (); -#line 46 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp4_ = _tmp3_; -#line 46 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow)); -#line 46 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp4_); -#line 48 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp5_ = self->priv->delay_adjustment; -#line 48 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6_ = delay; -#line 48 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_adjustment_set_value (_tmp5_, _tmp6_); -#line 51 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp7_ = config_facade_get_instance (); -#line 51 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp8_ = _tmp7_; -#line 51 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp9_ = configuration_facade_get_slideshow_transition_effect_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 51 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp10_ = _tmp9_; -#line 51 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp8_); -#line 51 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - effect_id = _tmp10_; -#line 54 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp11_ = transition_effects_manager_get_instance (); -#line 54 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp12_ = _tmp11_; -#line 54 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp13_ = transition_effects_manager_get_effect_name (_tmp12_, TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID); -#line 54 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp14_ = _tmp13_; -#line 54 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _transition_effects_manager_unref0 (_tmp12_); -#line 54 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - null_display_name = _tmp14_; -#line 56 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp15_ = self->priv->transition_effect_selector; -#line 56 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp16_ = null_display_name; -#line 56 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_combo_box_text_append_text (_tmp15_, _tmp16_); -#line 57 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp17_ = self->priv->transition_effect_selector; -#line 57 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 59 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - i = 1; -#line 2756 "SlideshowPage.c" - { - GeeIterator* _display_name_it = NULL; - TransitionEffectsManager* _tmp18_; - TransitionEffectsManager* _tmp19_; - GeeCollection* _tmp20_; - GeeCollection* _tmp21_; - GeeIterator* _tmp22_; - GeeIterator* _tmp23_; -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp18_ = transition_effects_manager_get_instance (); -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp19_ = _tmp18_; -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp20_ = transition_effects_manager_get_effect_names (_tmp19_, _utf8_ci_compare_gcompare_data_func, NULL, NULL); -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp21_ = _tmp20_; -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp22_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp23_ = _tmp22_; -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp21_); -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _transition_effects_manager_unref0 (_tmp19_); -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _display_name_it = _tmp23_; -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - while (TRUE) { -#line 2785 "SlideshowPage.c" - GeeIterator* _tmp24_; - gchar* display_name = NULL; - GeeIterator* _tmp25_; - gpointer _tmp26_; - const gchar* _tmp27_; - const gchar* _tmp28_; - GtkComboBoxText* _tmp29_; - const gchar* _tmp30_; - const gchar* _tmp31_; - TransitionEffectsManager* _tmp32_; - TransitionEffectsManager* _tmp33_; - const gchar* _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; - gboolean _tmp37_; - gint _tmp40_; -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp24_ = _display_name_it; -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (!gee_iterator_next (_tmp24_)) { -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - break; -#line 2808 "SlideshowPage.c" - } -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp25_ = _display_name_it; -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp26_ = gee_iterator_get (_tmp25_); -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - display_name = (gchar*) _tmp26_; -#line 62 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp27_ = display_name; -#line 62 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp28_ = null_display_name; -#line 62 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (g_strcmp0 (_tmp27_, _tmp28_) == 0) { -#line 63 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_free0 (display_name); -#line 63 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - continue; -#line 2826 "SlideshowPage.c" - } -#line 65 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp29_ = self->priv->transition_effect_selector; -#line 65 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp30_ = display_name; -#line 65 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_combo_box_text_append_text (_tmp29_, _tmp30_); -#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp31_ = effect_id; -#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp32_ = transition_effects_manager_get_instance (); -#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp33_ = _tmp32_; -#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp34_ = display_name; -#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp35_ = transition_effects_manager_get_id_for_effect_name (_tmp33_, _tmp34_); -#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp36_ = _tmp35_; -#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp37_ = g_strcmp0 (_tmp31_, _tmp36_) == 0; -#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_free0 (_tmp36_); -#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _transition_effects_manager_unref0 (_tmp33_); -#line 66 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp37_) { -#line 2854 "SlideshowPage.c" - GtkComboBoxText* _tmp38_; - gint _tmp39_; -#line 67 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp38_ = self->priv->transition_effect_selector; -#line 67 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp39_ = i; -#line 67 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_combo_box_get_type (), GtkComboBox), _tmp39_); -#line 2863 "SlideshowPage.c" - } -#line 69 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp40_ = i; -#line 69 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - i = _tmp40_ + 1; -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_free0 (display_name); -#line 2871 "SlideshowPage.c" - } -#line 60 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_display_name_it); -#line 2875 "SlideshowPage.c" - } -#line 71 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp41_ = self->priv->transition_effect_selector; -#line 71 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _slideshow_page_settings_dialog_on_transition_changed_gtk_combo_box_changed, self, 0); -#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp42_ = config_facade_get_instance (); -#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp43_ = _tmp42_; -#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp44_ = configuration_facade_get_slideshow_transition_delay (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp43_); -#line 73 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - transition_delay = _tmp44_; -#line 74 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp45_ = self->priv->transition_effect_adjustment; -#line 74 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_adjustment_set_value (_tmp45_, transition_delay); -#line 76 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp46_ = config_facade_get_instance (); -#line 76 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp47_ = _tmp46_; -#line 76 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp48_ = configuration_facade_get_slideshow_show_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 76 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (_tmp47_); -#line 76 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - show_title = _tmp48_; -#line 77 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp49_ = self->priv->show_title_button; -#line 77 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_toggle_button_get_type (), GtkToggleButton), show_title); -#line 79 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - slideshow_page_settings_dialog_on_transition_changed (self); -#line 43 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_free0 (null_display_name); -#line 43 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_free0 (effect_id); -#line 43 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return self; -#line 2917 "SlideshowPage.c" -} - - -static SlideshowPageSettingsDialog* -slideshow_page_settings_dialog_new (void) -{ -#line 43 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return slideshow_page_settings_dialog_construct (SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG); -#line 2926 "SlideshowPage.c" -} - - -static void -slideshow_page_settings_dialog_on_transition_changed (SlideshowPageSettingsDialog* self) -{ - gchar* selected = NULL; - GtkComboBoxText* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_ = FALSE; - const gchar* _tmp3_; - gboolean sensitive = FALSE; - GtkScale* _tmp5_; - GtkSpinButton* _tmp6_; -#line 82 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_if_fail (SLIDESHOW_PAGE_IS_SETTINGS_DIALOG (self)); -#line 83 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = self->priv->transition_effect_selector; -#line 83 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = gtk_combo_box_text_get_active_text (_tmp0_); -#line 83 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - selected = _tmp1_; -#line 84 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp3_ = selected; -#line 84 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp3_ != NULL) { -#line 2953 "SlideshowPage.c" - const gchar* _tmp4_; -#line 85 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp4_ = selected; -#line 85 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = g_strcmp0 (_tmp4_, TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID) != 0; -#line 2959 "SlideshowPage.c" - } else { -#line 84 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = FALSE; -#line 2963 "SlideshowPage.c" - } -#line 84 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - sensitive = _tmp2_; -#line 87 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp5_ = self->priv->transition_effect_hscale; -#line 87 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), sensitive); -#line 88 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6_ = self->priv->transition_effect_entry; -#line 88 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), sensitive); -#line 82 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_free0 (selected); -#line 2977 "SlideshowPage.c" -} - - -static gdouble -slideshow_page_settings_dialog_get_delay (SlideshowPageSettingsDialog* self) -{ - gdouble result = 0.0; - GtkSpinButton* _tmp0_; -#line 91 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_val_if_fail (SLIDESHOW_PAGE_IS_SETTINGS_DIALOG (self), 0.0); -#line 92 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = self->priv->delay_entry; -#line 92 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - result = gtk_spin_button_get_value (_tmp0_); -#line 92 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return result; -#line 2994 "SlideshowPage.c" -} - - -static gdouble -slideshow_page_settings_dialog_get_transition_delay (SlideshowPageSettingsDialog* self) -{ - gdouble result = 0.0; - GtkSpinButton* _tmp0_; -#line 95 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_val_if_fail (SLIDESHOW_PAGE_IS_SETTINGS_DIALOG (self), 0.0); -#line 96 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = self->priv->transition_effect_entry; -#line 96 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - result = gtk_spin_button_get_value (_tmp0_); -#line 96 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return result; -#line 3011 "SlideshowPage.c" -} - - -static gchar* -slideshow_page_settings_dialog_get_transition_effect_id (SlideshowPageSettingsDialog* self) -{ - gchar* result = NULL; - gchar* active = NULL; - GtkComboBoxText* _tmp0_; - gchar* _tmp1_; - const gchar* _tmp2_; - gchar* id = NULL; - TransitionEffectsManager* _tmp4_; - TransitionEffectsManager* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - const gchar* _tmp9_ = NULL; - const gchar* _tmp10_; - gchar* _tmp12_; -#line 99 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_val_if_fail (SLIDESHOW_PAGE_IS_SETTINGS_DIALOG (self), NULL); -#line 100 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = self->priv->transition_effect_selector; -#line 100 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = gtk_combo_box_text_get_active_text (_tmp0_); -#line 100 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - active = _tmp1_; -#line 101 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = active; -#line 101 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp2_ == NULL) { -#line 3044 "SlideshowPage.c" - gchar* _tmp3_; -#line 102 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp3_ = g_strdup (TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID); -#line 102 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - result = _tmp3_; -#line 102 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_free0 (active); -#line 102 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return result; -#line 3054 "SlideshowPage.c" - } -#line 104 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp4_ = transition_effects_manager_get_instance (); -#line 104 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp5_ = _tmp4_; -#line 104 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp6_ = active; -#line 104 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp7_ = transition_effects_manager_get_id_for_effect_name (_tmp5_, _tmp6_); -#line 104 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp8_ = _tmp7_; -#line 104 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _transition_effects_manager_unref0 (_tmp5_); -#line 104 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - id = _tmp8_; -#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp10_ = id; -#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - if (_tmp10_ != NULL) { -#line 3074 "SlideshowPage.c" - const gchar* _tmp11_; -#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp11_ = id; -#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp9_ = _tmp11_; -#line 3080 "SlideshowPage.c" - } else { -#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp9_ = TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID; -#line 3084 "SlideshowPage.c" - } -#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp12_ = g_strdup (_tmp9_); -#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - result = _tmp12_; -#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_free0 (id); -#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_free0 (active); -#line 106 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return result; -#line 3096 "SlideshowPage.c" -} - - -static gboolean -slideshow_page_settings_dialog_get_show_title (SlideshowPageSettingsDialog* self) -{ - gboolean result = FALSE; - GtkCheckButton* _tmp0_; - gboolean _tmp1_; - gboolean _tmp2_; -#line 109 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_return_val_if_fail (SLIDESHOW_PAGE_IS_SETTINGS_DIALOG (self), FALSE); -#line 110 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = self->priv->show_title_button; -#line 110 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp1_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 110 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp2_ = _tmp1_; -#line 110 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - result = _tmp2_; -#line 110 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - return result; -#line 3119 "SlideshowPage.c" -} - - -static void -slideshow_page_settings_dialog_class_init (SlideshowPageSettingsDialogClass * klass) -{ - gint SlideshowPageSettingsDialog_private_offset; -#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - slideshow_page_settings_dialog_parent_class = g_type_class_peek_parent (klass); -#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_type_class_add_private (klass, sizeof (SlideshowPageSettingsDialogPrivate)); -#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - G_OBJECT_CLASS (klass)->finalize = slideshow_page_settings_dialog_finalize; -#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - SlideshowPageSettingsDialog_private_offset = g_type_class_get_instance_private_offset (klass); -#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/slideshow_settings.ui"); -#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "delay_adjustment", FALSE, SlideshowPageSettingsDialog_private_offset + G_STRUCT_OFFSET (SlideshowPageSettingsDialogPrivate, delay_adjustment)); -#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "delay_entry", FALSE, SlideshowPageSettingsDialog_private_offset + G_STRUCT_OFFSET (SlideshowPageSettingsDialogPrivate, delay_entry)); -#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transition_effect_selector", FALSE, SlideshowPageSettingsDialog_private_offset + G_STRUCT_OFFSET (SlideshowPageSettingsDialogPrivate, transition_effect_selector)); -#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transition_effect_hscale", FALSE, SlideshowPageSettingsDialog_private_offset + G_STRUCT_OFFSET (SlideshowPageSettingsDialogPrivate, transition_effect_hscale)); -#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transition_effect_entry", FALSE, SlideshowPageSettingsDialog_private_offset + G_STRUCT_OFFSET (SlideshowPageSettingsDialogPrivate, transition_effect_entry)); -#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transition_effect_adjustment", FALSE, SlideshowPageSettingsDialog_private_offset + G_STRUCT_OFFSET (SlideshowPageSettingsDialogPrivate, transition_effect_adjustment)); -#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "show_title_button", FALSE, SlideshowPageSettingsDialog_private_offset + G_STRUCT_OFFSET (SlideshowPageSettingsDialogPrivate, show_title_button)); -#line 3151 "SlideshowPage.c" -} - - -static void -slideshow_page_settings_dialog_instance_init (SlideshowPageSettingsDialog * self) -{ -#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv = SLIDESHOW_PAGE_SETTINGS_DIALOG_GET_PRIVATE (self); -#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - gtk_widget_init_template (GTK_WIDGET (self)); -#line 3162 "SlideshowPage.c" -} - - -static void -slideshow_page_settings_dialog_finalize (GObject * obj) -{ - SlideshowPageSettingsDialog * self; -#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SLIDESHOW_PAGE_TYPE_SETTINGS_DIALOG, SlideshowPageSettingsDialog); -#line 29 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->delay_adjustment); -#line 31 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->delay_entry); -#line 33 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->transition_effect_selector); -#line 35 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->transition_effect_hscale); -#line 37 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->transition_effect_entry); -#line 39 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->transition_effect_adjustment); -#line 41 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->show_title_button); -#line 27 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - G_OBJECT_CLASS (slideshow_page_settings_dialog_parent_class)->finalize (obj); -#line 3188 "SlideshowPage.c" -} - - -static GType -slideshow_page_settings_dialog_get_type (void) -{ - static volatile gsize slideshow_page_settings_dialog_type_id__volatile = 0; - if (g_once_init_enter (&slideshow_page_settings_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SlideshowPageSettingsDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) slideshow_page_settings_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SlideshowPageSettingsDialog), 0, (GInstanceInitFunc) slideshow_page_settings_dialog_instance_init, NULL }; - GType slideshow_page_settings_dialog_type_id; - slideshow_page_settings_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "SlideshowPageSettingsDialog", &g_define_type_info, 0); - g_once_init_leave (&slideshow_page_settings_dialog_type_id__volatile, slideshow_page_settings_dialog_type_id); - } - return slideshow_page_settings_dialog_type_id__volatile; -} - - -static void -slideshow_page_class_init (SlideshowPageClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - slideshow_page_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - g_type_class_add_private (klass, sizeof (SlideshowPagePrivate)); -#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - ((PageClass *) klass)->switched_to = (void (*) (Page *)) slideshow_page_real_switched_to; -#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - ((PageClass *) klass)->switching_from = (void (*) (Page *)) slideshow_page_real_switching_from; -#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - ((SinglePhotoPageClass *) klass)->on_previous_photo = (void (*) (SinglePhotoPage *)) slideshow_page_real_on_previous_photo; -#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - ((SinglePhotoPageClass *) klass)->on_next_photo = (void (*) (SinglePhotoPage *)) slideshow_page_real_on_next_photo; -#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) slideshow_page_real_key_press_event; -#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - ((SinglePhotoPageClass *) klass)->paint = (void (*) (SinglePhotoPage *, cairo_t*, Dimensions*)) slideshow_page_real_paint; -#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - G_OBJECT_CLASS (klass)->finalize = slideshow_page_finalize; -#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - slideshow_page_signals[SLIDESHOW_PAGE_HIDE_TOOLBAR_SIGNAL] = g_signal_new ("hide-toolbar", TYPE_SLIDESHOW_PAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 3229 "SlideshowPage.c" -} - - -static void -slideshow_page_instance_init (SlideshowPage * self) -{ - GTimer* _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv = SLIDESHOW_PAGE_GET_PRIVATE (self); -#line 16 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->cache = NULL; -#line 17 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _tmp0_ = g_timer_new (); -#line 17 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->timer = _tmp0_; -#line 18 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->playing = TRUE; -#line 19 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->exiting = FALSE; -#line 3249 "SlideshowPage.c" -} - - -static void -slideshow_page_finalize (GObject * obj) -{ - SlideshowPage * self; -#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SLIDESHOW_PAGE, SlideshowPage); -#line 11 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _data_collection_unref0 (self->priv->sources); -#line 12 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _data_collection_unref0 (self->priv->controller); -#line 13 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->current); -#line 14 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->play_pause_button); -#line 15 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->settings_button); -#line 16 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_object_unref0 (self->priv->cache); -#line 17 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _g_timer_destroy0 (self->priv->timer); -#line 20 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - self->priv->transitions = (_vala_array_free (self->priv->transitions, self->priv->transitions_length1, (GDestroyNotify) g_free), NULL); -#line 22 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - _screensaver_unref0 (self->priv->screensaver); -#line 7 "/home/jens/Source/shotwell/src/SlideshowPage.vala" - G_OBJECT_CLASS (slideshow_page_parent_class)->finalize (obj); -#line 3279 "SlideshowPage.c" -} - - -GType -slideshow_page_get_type (void) -{ - static volatile gsize slideshow_page_type_id__volatile = 0; - if (g_once_init_enter (&slideshow_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SlideshowPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) slideshow_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SlideshowPage), 0, (GInstanceInitFunc) slideshow_page_instance_init, NULL }; - GType slideshow_page_type_id; - slideshow_page_type_id = g_type_register_static (TYPE_SINGLE_PHOTO_PAGE, "SlideshowPage", &g_define_type_info, 0); - g_once_init_leave (&slideshow_page_type_id__volatile, slideshow_page_type_id); - } - return slideshow_page_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/SlideshowPage.vala b/src/SlideshowPage.vala index fcb6430..18fef7f 100644 --- a/src/SlideshowPage.vala +++ b/src/SlideshowPage.vala @@ -41,6 +41,8 @@ class SlideshowPage : SinglePhotoPage { Gtk.CheckButton show_title_button; public SettingsDialog() { + Object (use_header_bar: Resources.use_header_bar()); + double delay = Config.Facade.get_instance().get_slideshow_delay(); set_transient_for(AppWindow.get_fullscreen()); @@ -132,28 +134,28 @@ class SlideshowPage : SinglePhotoPage { // add toolbar buttons Gtk.ToolButton previous_button = new Gtk.ToolButton(null, _("Back")); - previous_button.set_icon_name("go-previous"); + previous_button.set_icon_name("go-previous-symbolic"); previous_button.set_tooltip_text(_("Go to the previous photo")); previous_button.clicked.connect(on_previous_photo); toolbar.insert(previous_button, -1); play_pause_button = new Gtk.ToolButton(null, _("Pause")); - play_pause_button.set_icon_name("media-playback-pause"); + play_pause_button.set_icon_name("media-playback-pause-symbolic"); play_pause_button.set_tooltip_text(_("Pause the slideshow")); play_pause_button.clicked.connect(on_play_pause); toolbar.insert(play_pause_button, -1); Gtk.ToolButton next_button = new Gtk.ToolButton(null, _("Next")); - next_button.set_icon_name("go-next"); + next_button.set_icon_name("go-next-symbolic"); next_button.set_tooltip_text(_("Go to the next photo")); next_button.clicked.connect(on_next_photo); toolbar.insert(next_button, -1); settings_button = new Gtk.ToolButton(null, null); - settings_button.set_icon_name("preferences-system"); + settings_button.set_icon_name("preferences-system-symbolic"); settings_button.set_label(_("Settings")); settings_button.set_tooltip_text(_("Change slideshow settings")); settings_button.clicked.connect(on_change_settings); @@ -240,11 +242,11 @@ class SlideshowPage : SinglePhotoPage { private void on_play_pause() { if (playing) { - play_pause_button.set_icon_name("media-playback-start"); + play_pause_button.set_icon_name("media-playback-start-symbolic"); play_pause_button.set_label(_("Play")); play_pause_button.set_tooltip_text(_("Continue the slideshow")); } else { - play_pause_button.set_icon_name("media-playback-pause"); + play_pause_button.set_icon_name("media-playback-pause-symbolic"); play_pause_button.set_label(_("Pause")); play_pause_button.set_tooltip_text(_("Pause the slideshow")); } diff --git a/src/SortedList.c b/src/SortedList.c deleted file mode 100644 index 37f2db4..0000000 --- a/src/SortedList.c +++ /dev/null @@ -1,2613 +0,0 @@ -/* SortedList.c generated by valac 0.40.4, the Vala compiler - * generated from SortedList.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include - - -#define TYPE_SORTED_LIST (sorted_list_get_type ()) -#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList)) -#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass)) -#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST)) -#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST)) -#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass)) - -typedef struct _SortedList SortedList; -typedef struct _SortedListClass SortedListClass; -typedef struct _SortedListPrivate SortedListPrivate; -enum { - SORTED_LIST_0_PROPERTY, - SORTED_LIST_G_TYPE, - SORTED_LIST_G_DUP_FUNC, - SORTED_LIST_G_DESTROY_FUNC, - SORTED_LIST_ELEMENT_TYPE_PROPERTY, - SORTED_LIST_READ_ONLY_PROPERTY, - SORTED_LIST_IS_EMPTY_PROPERTY, - SORTED_LIST_SIZE_PROPERTY, - SORTED_LIST_READ_ONLY_VIEW_PROPERTY, - SORTED_LIST_READ_ONLY_VIEW_AS_LIST_PROPERTY, - SORTED_LIST_NUM_PROPERTIES -}; -static GParamSpec* sorted_list_properties[SORTED_LIST_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -struct _SortedList { - GObject parent_instance; - SortedListPrivate * priv; -}; - -struct _SortedListClass { - GObjectClass parent_class; -}; - -struct _SortedListPrivate { - GType g_type; - GBoxedCopyFunc g_dup_func; - GDestroyNotify g_destroy_func; - GeeArrayList* list; - Comparator cmp; - gpointer cmp_target; -}; - - -static gpointer sorted_list_parent_class = NULL; -static GeeTraversableIface * sorted_list_gee_traversable_parent_iface = NULL; -static GeeIterableIface * sorted_list_gee_iterable_parent_iface = NULL; -static GeeCollectionIface * sorted_list_gee_collection_parent_iface = NULL; - -GType sorted_list_get_type (void) G_GNUC_CONST; -#define SORTED_LIST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SORTED_LIST, SortedListPrivate)) -SortedList* sorted_list_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - Comparator cmp, - void* cmp_target); -SortedList* sorted_list_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - Comparator cmp, - void* cmp_target); -static GeeIterator* sorted_list_real_iterator (GeeIterable* base); -static gboolean sorted_list_real_foreach (GeeTraversable* base, - GeeForallFunc f, - void* f_target); -static gboolean sorted_list_real_add (GeeCollection* base, - gconstpointer item); -static gint sorted_list_get_sorted_insert_pos (SortedList* self, - gconstpointer item); -static gboolean sorted_list_real_add_all (GeeCollection* base, - GeeCollection* collection); -gboolean sorted_list_add_list (SortedList* self, - GeeList* items); -static gboolean sorted_list_merge_sort (SortedList* self, - GeeList* add); -static void sorted_list_real_clear (GeeCollection* base); -static gboolean sorted_list_real_contains (GeeCollection* base, - gconstpointer item); -static gboolean sorted_list_real_contains_all (GeeCollection* base, - GeeCollection* collection); -static gboolean sorted_list_real_remove (GeeCollection* base, - gconstpointer item); -static gboolean sorted_list_real_remove_all (GeeCollection* base, - GeeCollection* collection); -static gboolean sorted_list_real_retain_all (GeeCollection* base, - GeeCollection* collection); -gint sorted_list_get_count (SortedList* self); -gpointer sorted_list_get_at (SortedList* self, - gint index); -static gint sorted_list_binary_search (SortedList* self, - gconstpointer search, - GEqualFunc equal_func); -gint sorted_list_index_of (SortedList* self, - gconstpointer search); -gint sorted_list_locate (SortedList* self, - gconstpointer search, - gboolean altered, - GEqualFunc equal_func); -gpointer sorted_list_remove_at (SortedList* self, - gint index); -static gpointer* sorted_list_real_to_array (GeeCollection* base, - int* result_length1); -void sorted_list_resort (SortedList* self, - Comparator new_cmp, - void* new_cmp_target); -gboolean sorted_list_resort_item (SortedList* self, - gconstpointer item); -SortedList* sorted_list_copy (SortedList* self); -static void _sorted_list_merge_sort (SortedList* self, - gpointer* array, - int array_length1, - gpointer* scratch, - int scratch_length1, - gint start_index, - gint end_index); -static void sorted_list_merge (SortedList* self, - gpointer* array, - int array_length1, - gpointer* scratch, - int scratch_length1, - gint start_index, - gint middle_index, - gint end_index); -GeeList* sorted_list_get_read_only_view_as_list (SortedList* self); -static void sorted_list_finalize (GObject * obj); -static void _vala_sorted_list_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_sorted_list_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -SortedList* -sorted_list_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - Comparator cmp, - void* cmp_target) -{ - SortedList * self = NULL; - GeeArrayList* _tmp0_; -#line 13 "/home/jens/Source/shotwell/src/SortedList.vala" - self = (SortedList*) g_object_new (object_type, NULL); -#line 13 "/home/jens/Source/shotwell/src/SortedList.vala" - self->priv->g_type = g_type; -#line 13 "/home/jens/Source/shotwell/src/SortedList.vala" - self->priv->g_dup_func = g_dup_func; -#line 13 "/home/jens/Source/shotwell/src/SortedList.vala" - self->priv->g_destroy_func = g_destroy_func; -#line 14 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = gee_array_list_new (g_type, (GBoxedCopyFunc) g_dup_func, (GDestroyNotify) g_destroy_func, NULL, NULL, NULL); -#line 14 "/home/jens/Source/shotwell/src/SortedList.vala" - _g_object_unref0 (self->priv->list); -#line 14 "/home/jens/Source/shotwell/src/SortedList.vala" - self->priv->list = _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/SortedList.vala" - self->priv->cmp = cmp; -#line 15 "/home/jens/Source/shotwell/src/SortedList.vala" - self->priv->cmp_target = cmp_target; -#line 13 "/home/jens/Source/shotwell/src/SortedList.vala" - return self; -#line 195 "SortedList.c" -} - - -SortedList* -sorted_list_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - Comparator cmp, - void* cmp_target) -{ -#line 13 "/home/jens/Source/shotwell/src/SortedList.vala" - return sorted_list_construct (TYPE_SORTED_LIST, g_type, g_dup_func, g_destroy_func, cmp, cmp_target); -#line 208 "SortedList.c" -} - - -static GeeIterator* -sorted_list_real_iterator (GeeIterable* base) -{ - SortedList * self; - GeeIterator* result = NULL; - GeeArrayList* _tmp0_; - GeeIterator* _tmp1_; -#line 26 "/home/jens/Source/shotwell/src/SortedList.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList); -#line 27 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 27 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 27 "/home/jens/Source/shotwell/src/SortedList.vala" - result = _tmp1_; -#line 27 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 229 "SortedList.c" -} - - -static gboolean -sorted_list_real_foreach (GeeTraversable* base, - GeeForallFunc f, - void* f_target) -{ - SortedList * self; - gboolean result = FALSE; - GeeArrayList* _tmp0_; -#line 30 "/home/jens/Source/shotwell/src/SortedList.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList); -#line 31 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 31 "/home/jens/Source/shotwell/src/SortedList.vala" - result = gee_abstract_collection_foreach (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), f, f_target); -#line 31 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 249 "SortedList.c" -} - - -static gboolean -sorted_list_real_add (GeeCollection* base, - gconstpointer item) -{ - SortedList * self; - gboolean result = FALSE; - Comparator _tmp0_; - void* _tmp0__target; -#line 34 "/home/jens/Source/shotwell/src/SortedList.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList); -#line 35 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->cmp; -#line 35 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0__target = self->priv->cmp_target; -#line 35 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp0_ == NULL) { -#line 269 "SortedList.c" - GeeArrayList* _tmp1_; -#line 36 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = self->priv->list; -#line 36 "/home/jens/Source/shotwell/src/SortedList.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), item); -#line 275 "SortedList.c" - } else { - GeeArrayList* _tmp2_; -#line 38 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = self->priv->list; -#line 38 "/home/jens/Source/shotwell/src/SortedList.vala" - gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), sorted_list_get_sorted_insert_pos (self, item), item); -#line 282 "SortedList.c" - } -#line 44 "/home/jens/Source/shotwell/src/SortedList.vala" - result = TRUE; -#line 44 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 288 "SortedList.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 51 "/home/jens/Source/shotwell/src/SortedList.vala" - return self ? g_object_ref (self) : NULL; -#line 297 "SortedList.c" -} - - -static gboolean -sorted_list_real_add_all (GeeCollection* base, - GeeCollection* collection) -{ - SortedList * self; - gboolean result = FALSE; - gint _tmp0_; - gint _tmp1_; - GeeList* as_list = NULL; - GeeList* _tmp2_; - GeeList* _tmp3_; - Comparator _tmp5_; - void* _tmp5__target; - gboolean changed = FALSE; - gint _tmp7_; - gint _tmp8_; -#line 47 "/home/jens/Source/shotwell/src/SortedList.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList); -#line 47 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (collection), FALSE); -#line 48 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = gee_collection_get_size (collection); -#line 48 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = _tmp0_; -#line 48 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp1_ == 0) { -#line 49 "/home/jens/Source/shotwell/src/SortedList.vala" - result = FALSE; -#line 49 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 331 "SortedList.c" - } -#line 51 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (collection, GEE_TYPE_LIST) ? ((GeeList*) collection) : NULL); -#line 51 "/home/jens/Source/shotwell/src/SortedList.vala" - as_list = _tmp2_; -#line 52 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp3_ = as_list; -#line 52 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp3_ != NULL) { -#line 341 "SortedList.c" - GeeList* _tmp4_; -#line 53 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp4_ = as_list; -#line 53 "/home/jens/Source/shotwell/src/SortedList.vala" - result = sorted_list_add_list (self, _tmp4_); -#line 53 "/home/jens/Source/shotwell/src/SortedList.vala" - _g_object_unref0 (as_list); -#line 53 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 351 "SortedList.c" - } -#line 55 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp5_ = self->priv->cmp; -#line 55 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp5__target = self->priv->cmp_target; -#line 55 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp5_ == NULL) { -#line 359 "SortedList.c" - GeeArrayList* _tmp6_; -#line 56 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp6_ = self->priv->list; -#line 56 "/home/jens/Source/shotwell/src/SortedList.vala" - result = gee_array_list_add_all (_tmp6_, collection); -#line 56 "/home/jens/Source/shotwell/src/SortedList.vala" - _g_object_unref0 (as_list); -#line 56 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 369 "SortedList.c" - } -#line 58 "/home/jens/Source/shotwell/src/SortedList.vala" - changed = FALSE; -#line 59 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp7_ = gee_collection_get_size (collection); -#line 59 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp8_ = _tmp7_; -#line 59 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp8_ == 1) { -#line 379 "SortedList.c" - GeeIterator* iter = NULL; - GeeIterator* _tmp9_; - GeeIterator* _tmp10_; - gpointer item = NULL; - GeeIterator* _tmp11_; - gpointer _tmp12_; - GeeArrayList* _tmp13_; - gconstpointer _tmp14_; - gconstpointer _tmp15_; -#line 60 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (collection, GEE_TYPE_ITERABLE, GeeIterable)); -#line 60 "/home/jens/Source/shotwell/src/SortedList.vala" - iter = _tmp9_; -#line 61 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp10_ = iter; -#line 61 "/home/jens/Source/shotwell/src/SortedList.vala" - gee_iterator_next (_tmp10_); -#line 62 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp11_ = iter; -#line 62 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp12_ = gee_iterator_get (_tmp11_); -#line 62 "/home/jens/Source/shotwell/src/SortedList.vala" - item = _tmp12_; -#line 64 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp13_ = self->priv->list; -#line 64 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp14_ = item; -#line 64 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp15_ = item; -#line 64 "/home/jens/Source/shotwell/src/SortedList.vala" - gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), sorted_list_get_sorted_insert_pos (self, _tmp14_), _tmp15_); -#line 65 "/home/jens/Source/shotwell/src/SortedList.vala" - changed = TRUE; -#line 59 "/home/jens/Source/shotwell/src/SortedList.vala" - ((item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (item = (self->priv->g_destroy_func (item), NULL)); -#line 59 "/home/jens/Source/shotwell/src/SortedList.vala" - _g_object_unref0 (iter); -#line 417 "SortedList.c" - } else { - GeeList* items = NULL; - GeeArrayList* _tmp16_; - GeeList* _tmp17_; - GeeList* _tmp18_; -#line 67 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp16_ = gee_array_list_new (self->priv->g_type, (GBoxedCopyFunc) self->priv->g_dup_func, (GDestroyNotify) self->priv->g_destroy_func, NULL, NULL, NULL); -#line 67 "/home/jens/Source/shotwell/src/SortedList.vala" - items = G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_LIST, GeeList); -#line 68 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp17_ = items; -#line 68 "/home/jens/Source/shotwell/src/SortedList.vala" - gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection), collection); -#line 70 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp18_ = items; -#line 70 "/home/jens/Source/shotwell/src/SortedList.vala" - changed = sorted_list_merge_sort (self, _tmp18_); -#line 59 "/home/jens/Source/shotwell/src/SortedList.vala" - _g_object_unref0 (items); -#line 437 "SortedList.c" - } -#line 76 "/home/jens/Source/shotwell/src/SortedList.vala" - result = changed; -#line 76 "/home/jens/Source/shotwell/src/SortedList.vala" - _g_object_unref0 (as_list); -#line 76 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 445 "SortedList.c" -} - - -gboolean -sorted_list_add_list (SortedList* self, - GeeList* items) -{ - gboolean result = FALSE; - gboolean added = FALSE; - gint _tmp0_; - gint _tmp1_; -#line 79 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail (IS_SORTED_LIST (self), FALSE); -#line 79 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail (GEE_IS_LIST (items), FALSE); -#line 80 "/home/jens/Source/shotwell/src/SortedList.vala" - added = FALSE; -#line 81 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (items, GEE_TYPE_COLLECTION, GeeCollection)); -#line 81 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = _tmp0_; -#line 81 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp1_ == 0) { -#line 469 "SortedList.c" - } else { - Comparator _tmp2_; - void* _tmp2__target; -#line 83 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = self->priv->cmp; -#line 83 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2__target = self->priv->cmp_target; -#line 83 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp2_ != NULL) { -#line 479 "SortedList.c" - gint _tmp3_; - gint _tmp4_; -#line 86 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (items, GEE_TYPE_COLLECTION, GeeCollection)); -#line 86 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp4_ = _tmp3_; -#line 86 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp4_ == 1) { -#line 488 "SortedList.c" - GeeArrayList* _tmp5_; - gpointer _tmp6_; - gpointer _tmp7_; - gpointer _tmp8_; - gpointer _tmp9_; -#line 87 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp5_ = self->priv->list; -#line 87 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp6_ = gee_list_get (items, 0); -#line 87 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp7_ = _tmp6_; -#line 87 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp8_ = gee_list_get (items, 0); -#line 87 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp9_ = _tmp8_; -#line 87 "/home/jens/Source/shotwell/src/SortedList.vala" - gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), sorted_list_get_sorted_insert_pos (self, _tmp7_), _tmp9_); -#line 87 "/home/jens/Source/shotwell/src/SortedList.vala" - ((_tmp9_ == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (_tmp9_ = (self->priv->g_destroy_func (_tmp9_), NULL)); -#line 87 "/home/jens/Source/shotwell/src/SortedList.vala" - ((_tmp7_ == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (_tmp7_ = (self->priv->g_destroy_func (_tmp7_), NULL)); -#line 88 "/home/jens/Source/shotwell/src/SortedList.vala" - added = TRUE; -#line 512 "SortedList.c" - } else { -#line 90 "/home/jens/Source/shotwell/src/SortedList.vala" - added = sorted_list_merge_sort (self, items); -#line 516 "SortedList.c" - } - } else { - GeeArrayList* _tmp10_; -#line 93 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp10_ = self->priv->list; -#line 93 "/home/jens/Source/shotwell/src/SortedList.vala" - added = gee_array_list_add_all (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (items, GEE_TYPE_COLLECTION, GeeCollection)); -#line 524 "SortedList.c" - } - } -#line 100 "/home/jens/Source/shotwell/src/SortedList.vala" - result = added; -#line 100 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 531 "SortedList.c" -} - - -static void -sorted_list_real_clear (GeeCollection* base) -{ - SortedList * self; - GeeArrayList* _tmp0_; -#line 103 "/home/jens/Source/shotwell/src/SortedList.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList); -#line 104 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 104 "/home/jens/Source/shotwell/src/SortedList.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 546 "SortedList.c" -} - - -static gboolean -sorted_list_real_contains (GeeCollection* base, - gconstpointer item) -{ - SortedList * self; - gboolean result = FALSE; - GeeArrayList* _tmp0_; -#line 107 "/home/jens/Source/shotwell/src/SortedList.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList); -#line 108 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 108 "/home/jens/Source/shotwell/src/SortedList.vala" - result = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), item); -#line 108 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 565 "SortedList.c" -} - - -static gboolean -sorted_list_real_contains_all (GeeCollection* base, - GeeCollection* collection) -{ - SortedList * self; - gboolean result = FALSE; - GeeArrayList* _tmp0_; -#line 111 "/home/jens/Source/shotwell/src/SortedList.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList); -#line 111 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (collection), FALSE); -#line 112 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 112 "/home/jens/Source/shotwell/src/SortedList.vala" - result = gee_collection_contains_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), collection); -#line 112 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 586 "SortedList.c" -} - - -static gboolean -sorted_list_real_remove (GeeCollection* base, - gconstpointer item) -{ - SortedList * self; - gboolean result = FALSE; - GeeArrayList* _tmp0_; -#line 121 "/home/jens/Source/shotwell/src/SortedList.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList); -#line 122 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 122 "/home/jens/Source/shotwell/src/SortedList.vala" - result = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), item); -#line 122 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 605 "SortedList.c" -} - - -static gboolean -sorted_list_real_remove_all (GeeCollection* base, - GeeCollection* collection) -{ - SortedList * self; - gboolean result = FALSE; - GeeArrayList* _tmp0_; -#line 125 "/home/jens/Source/shotwell/src/SortedList.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList); -#line 125 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (collection), FALSE); -#line 126 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 126 "/home/jens/Source/shotwell/src/SortedList.vala" - result = gee_collection_remove_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), collection); -#line 126 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 626 "SortedList.c" -} - - -static gboolean -sorted_list_real_retain_all (GeeCollection* base, - GeeCollection* collection) -{ - SortedList * self; - gboolean result = FALSE; - GeeArrayList* _tmp0_; -#line 129 "/home/jens/Source/shotwell/src/SortedList.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList); -#line 129 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (collection), FALSE); -#line 130 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 130 "/home/jens/Source/shotwell/src/SortedList.vala" - result = gee_collection_retain_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), collection); -#line 130 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 647 "SortedList.c" -} - - -inline gint -sorted_list_get_count (SortedList* self) -{ - gint result = 0; - GeeArrayList* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 137 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail (IS_SORTED_LIST (self), 0); -#line 138 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 138 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 138 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = _tmp1_; -#line 138 "/home/jens/Source/shotwell/src/SortedList.vala" - result = _tmp2_; -#line 138 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 670 "SortedList.c" -} - - -gpointer -sorted_list_get_at (SortedList* self, - gint index) -{ - gpointer result = NULL; - GeeArrayList* _tmp0_; - gpointer _tmp1_; -#line 141 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail (IS_SORTED_LIST (self), NULL); -#line 142 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 142 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), index); -#line 142 "/home/jens/Source/shotwell/src/SortedList.vala" - result = _tmp1_; -#line 142 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 691 "SortedList.c" -} - - -static gint -sorted_list_binary_search (SortedList* self, - gconstpointer search, - GEqualFunc equal_func) -{ - gint result = 0; - Comparator _tmp0_; - void* _tmp0__target; - gint min = 0; - gint max = 0; - GeeArrayList* _tmp1_; - gint _tmp2_; - gint _tmp3_; -#line 145 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail (IS_SORTED_LIST (self), 0); -#line 146 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->cmp; -#line 146 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0__target = self->priv->cmp_target; -#line 146 "/home/jens/Source/shotwell/src/SortedList.vala" - _vala_assert (_tmp0_ != NULL, "cmp != null"); -#line 148 "/home/jens/Source/shotwell/src/SortedList.vala" - min = 0; -#line 149 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = self->priv->list; -#line 149 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 149 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp3_ = _tmp2_; -#line 149 "/home/jens/Source/shotwell/src/SortedList.vala" - max = _tmp3_; -#line 726 "SortedList.c" - { - gboolean _tmp4_ = FALSE; -#line 150 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp4_ = TRUE; -#line 150 "/home/jens/Source/shotwell/src/SortedList.vala" - while (TRUE) { -#line 733 "SortedList.c" - gint mid = 0; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - gpointer item = NULL; - GeeArrayList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - gboolean _tmp11_ = FALSE; - gint64 compare = 0LL; - Comparator _tmp13_; - void* _tmp13__target; - gconstpointer _tmp14_; - gint64 _tmp15_; - gint _tmp19_; - gint _tmp20_; -#line 150 "/home/jens/Source/shotwell/src/SortedList.vala" - if (!_tmp4_) { -#line 752 "SortedList.c" - } -#line 150 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp4_ = FALSE; -#line 151 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp5_ = min; -#line 151 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp6_ = max; -#line 151 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp7_ = min; -#line 151 "/home/jens/Source/shotwell/src/SortedList.vala" - mid = _tmp5_ + ((_tmp6_ - _tmp7_) / 2); -#line 152 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp8_ = self->priv->list; -#line 152 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp9_ = mid; -#line 152 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_); -#line 152 "/home/jens/Source/shotwell/src/SortedList.vala" - item = _tmp10_; -#line 154 "/home/jens/Source/shotwell/src/SortedList.vala" - if (equal_func != NULL) { -#line 774 "SortedList.c" - gconstpointer _tmp12_; -#line 154 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp12_ = item; -#line 154 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp11_ = equal_func (_tmp12_, search); -#line 780 "SortedList.c" - } else { -#line 154 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp11_ = FALSE; -#line 784 "SortedList.c" - } -#line 154 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp11_) { -#line 155 "/home/jens/Source/shotwell/src/SortedList.vala" - result = mid; -#line 155 "/home/jens/Source/shotwell/src/SortedList.vala" - ((item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (item = (self->priv->g_destroy_func (item), NULL)); -#line 155 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 794 "SortedList.c" - } -#line 157 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp13_ = self->priv->cmp; -#line 157 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp13__target = self->priv->cmp_target; -#line 157 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp14_ = item; -#line 157 "/home/jens/Source/shotwell/src/SortedList.vala" - compare = _tmp13_ (_tmp14_, search, _tmp13__target); -#line 158 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp15_ = compare; -#line 158 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp15_ == ((gint64) 0)) { -#line 159 "/home/jens/Source/shotwell/src/SortedList.vala" - result = mid; -#line 159 "/home/jens/Source/shotwell/src/SortedList.vala" - ((item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (item = (self->priv->g_destroy_func (item), NULL)); -#line 159 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 814 "SortedList.c" - } else { - gint64 _tmp16_; -#line 160 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp16_ = compare; -#line 160 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp16_ > ((gint64) 0)) { -#line 821 "SortedList.c" - gint _tmp17_; -#line 161 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp17_ = mid; -#line 161 "/home/jens/Source/shotwell/src/SortedList.vala" - max = _tmp17_ - 1; -#line 827 "SortedList.c" - } else { - gint _tmp18_; -#line 163 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp18_ = mid; -#line 163 "/home/jens/Source/shotwell/src/SortedList.vala" - min = _tmp18_ + 1; -#line 834 "SortedList.c" - } - } -#line 165 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp19_ = min; -#line 165 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp20_ = max; -#line 165 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp19_ > _tmp20_) { -#line 166 "/home/jens/Source/shotwell/src/SortedList.vala" - ((item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (item = (self->priv->g_destroy_func (item), NULL)); -#line 166 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 847 "SortedList.c" - } -#line 150 "/home/jens/Source/shotwell/src/SortedList.vala" - ((item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (item = (self->priv->g_destroy_func (item), NULL)); -#line 851 "SortedList.c" - } - } -#line 169 "/home/jens/Source/shotwell/src/SortedList.vala" - result = -1; -#line 169 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 858 "SortedList.c" -} - - -gint -sorted_list_index_of (SortedList* self, - gconstpointer search) -{ - gint result = 0; - gint _tmp0_ = 0; - Comparator _tmp1_; - void* _tmp1__target; -#line 179 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail (IS_SORTED_LIST (self), 0); -#line 180 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = self->priv->cmp; -#line 180 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1__target = self->priv->cmp_target; -#line 180 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp1_ != NULL) { -#line 180 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = sorted_list_binary_search (self, search, NULL); -#line 880 "SortedList.c" - } else { - GEqualFunc _tmp2_; -#line 180 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = g_direct_equal; -#line 180 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = sorted_list_locate (self, search, FALSE, _tmp2_); -#line 887 "SortedList.c" - } -#line 180 "/home/jens/Source/shotwell/src/SortedList.vala" - result = _tmp0_; -#line 180 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 893 "SortedList.c" -} - - -gint -sorted_list_locate (SortedList* self, - gconstpointer search, - gboolean altered, - GEqualFunc equal_func) -{ - gint result = 0; - gboolean _tmp0_ = FALSE; - Comparator _tmp1_; - void* _tmp1__target; -#line 184 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail (IS_SORTED_LIST (self), 0); -#line 185 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = self->priv->cmp; -#line 185 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1__target = self->priv->cmp_target; -#line 185 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp1_ == NULL) { -#line 185 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = TRUE; -#line 917 "SortedList.c" - } else { -#line 185 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = altered; -#line 921 "SortedList.c" - } -#line 185 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp0_) { -#line 925 "SortedList.c" - gint count = 0; - GeeArrayList* _tmp2_; - gint _tmp3_; - gint _tmp4_; -#line 186 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = self->priv->list; -#line 186 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 186 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp4_ = _tmp3_; -#line 186 "/home/jens/Source/shotwell/src/SortedList.vala" - count = _tmp4_; -#line 938 "SortedList.c" - { - gint ctr = 0; -#line 187 "/home/jens/Source/shotwell/src/SortedList.vala" - ctr = 0; -#line 943 "SortedList.c" - { - gboolean _tmp5_ = FALSE; -#line 187 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp5_ = TRUE; -#line 187 "/home/jens/Source/shotwell/src/SortedList.vala" - while (TRUE) { -#line 950 "SortedList.c" - gint _tmp7_; - gint _tmp8_; - GeeArrayList* _tmp9_; - gint _tmp10_; - gpointer _tmp11_; - gpointer _tmp12_; - gboolean _tmp13_; -#line 187 "/home/jens/Source/shotwell/src/SortedList.vala" - if (!_tmp5_) { -#line 960 "SortedList.c" - gint _tmp6_; -#line 187 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp6_ = ctr; -#line 187 "/home/jens/Source/shotwell/src/SortedList.vala" - ctr = _tmp6_ + 1; -#line 966 "SortedList.c" - } -#line 187 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp5_ = FALSE; -#line 187 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp7_ = ctr; -#line 187 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp8_ = count; -#line 187 "/home/jens/Source/shotwell/src/SortedList.vala" - if (!(_tmp7_ < _tmp8_)) { -#line 187 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 978 "SortedList.c" - } -#line 188 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp9_ = self->priv->list; -#line 188 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp10_ = ctr; -#line 188 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp11_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp10_); -#line 188 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp12_ = _tmp11_; -#line 188 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp13_ = equal_func (_tmp12_, search); -#line 188 "/home/jens/Source/shotwell/src/SortedList.vala" - ((_tmp12_ == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (_tmp12_ = (self->priv->g_destroy_func (_tmp12_), NULL)); -#line 188 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp13_) { -#line 189 "/home/jens/Source/shotwell/src/SortedList.vala" - result = ctr; -#line 189 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 998 "SortedList.c" - } - } - } - } -#line 192 "/home/jens/Source/shotwell/src/SortedList.vala" - result = -1; -#line 192 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 1007 "SortedList.c" - } -#line 195 "/home/jens/Source/shotwell/src/SortedList.vala" - result = sorted_list_binary_search (self, search, equal_func); -#line 195 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 1013 "SortedList.c" -} - - -gpointer -sorted_list_remove_at (SortedList* self, - gint index) -{ - gpointer result = NULL; - GeeArrayList* _tmp0_; - gpointer _tmp1_; -#line 210 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail (IS_SORTED_LIST (self), NULL); -#line 211 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 211 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = gee_abstract_list_remove_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), index); -#line 211 "/home/jens/Source/shotwell/src/SortedList.vala" - result = _tmp1_; -#line 211 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 1034 "SortedList.c" -} - - -static gpointer* -sorted_list_real_to_array (GeeCollection* base, - int* result_length1) -{ - SortedList * self; - gpointer* result = NULL; - GeeArrayList* _tmp0_; - gint _tmp1_; - gpointer* _tmp2_; - gpointer* _tmp3_; - gint _tmp3__length1; -#line 214 "/home/jens/Source/shotwell/src/SortedList.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList); -#line 215 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 215 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp1_); -#line 215 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp3_ = _tmp2_; -#line 215 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp3__length1 = _tmp1_; -#line 215 "/home/jens/Source/shotwell/src/SortedList.vala" - if (result_length1) { -#line 215 "/home/jens/Source/shotwell/src/SortedList.vala" - *result_length1 = _tmp3__length1; -#line 1063 "SortedList.c" - } -#line 215 "/home/jens/Source/shotwell/src/SortedList.vala" - result = _tmp3_; -#line 215 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 1069 "SortedList.c" -} - - -void -sorted_list_resort (SortedList* self, - Comparator new_cmp, - void* new_cmp_target) -{ -#line 218 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_if_fail (IS_SORTED_LIST (self)); -#line 219 "/home/jens/Source/shotwell/src/SortedList.vala" - self->priv->cmp = new_cmp; -#line 219 "/home/jens/Source/shotwell/src/SortedList.vala" - self->priv->cmp_target = new_cmp_target; -#line 221 "/home/jens/Source/shotwell/src/SortedList.vala" - sorted_list_merge_sort (self, NULL); -#line 1086 "SortedList.c" -} - - -gboolean -sorted_list_resort_item (SortedList* self, - gconstpointer item) -{ - gboolean result = FALSE; - gint index = 0; - GEqualFunc _tmp0_; - gint _tmp1_; - gint new_index = 0; - gint _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _tmp5_; -#line 229 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail (IS_SORTED_LIST (self), FALSE); -#line 230 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = g_direct_equal; -#line 230 "/home/jens/Source/shotwell/src/SortedList.vala" - index = sorted_list_locate (self, item, TRUE, _tmp0_); -#line 231 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = index; -#line 231 "/home/jens/Source/shotwell/src/SortedList.vala" - _vala_assert (_tmp1_ >= 0, "index >= 0"); -#line 233 "/home/jens/Source/shotwell/src/SortedList.vala" - new_index = sorted_list_get_sorted_insert_pos (self, item); -#line 235 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = index; -#line 235 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp3_ = new_index; -#line 235 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp2_ == _tmp3_) { -#line 236 "/home/jens/Source/shotwell/src/SortedList.vala" - result = FALSE; -#line 236 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 1125 "SortedList.c" - } -#line 240 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp4_ = new_index; -#line 240 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp5_ = index; -#line 240 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp4_ > _tmp5_) { -#line 1133 "SortedList.c" - GeeArrayList* _tmp6_; - gint _tmp7_; - gpointer removed_item = NULL; - GeeArrayList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - gconstpointer _tmp11_; -#line 241 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp6_ = self->priv->list; -#line 241 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp7_ = new_index; -#line 241 "/home/jens/Source/shotwell/src/SortedList.vala" - gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp7_, item); -#line 242 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp8_ = self->priv->list; -#line 242 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp9_ = index; -#line 242 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp10_ = gee_abstract_list_remove_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_); -#line 242 "/home/jens/Source/shotwell/src/SortedList.vala" - removed_item = _tmp10_; -#line 243 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp11_ = removed_item; -#line 243 "/home/jens/Source/shotwell/src/SortedList.vala" - _vala_assert (item == _tmp11_, "item == removed_item"); -#line 240 "/home/jens/Source/shotwell/src/SortedList.vala" - ((removed_item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (removed_item = (self->priv->g_destroy_func (removed_item), NULL)); -#line 1161 "SortedList.c" - } else { - gpointer removed_item = NULL; - GeeArrayList* _tmp12_; - gint _tmp13_; - gpointer _tmp14_; - gconstpointer _tmp15_; - GeeArrayList* _tmp16_; - gint _tmp17_; -#line 245 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp12_ = self->priv->list; -#line 245 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp13_ = index; -#line 245 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp14_ = gee_abstract_list_remove_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp13_); -#line 245 "/home/jens/Source/shotwell/src/SortedList.vala" - removed_item = _tmp14_; -#line 246 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp15_ = removed_item; -#line 246 "/home/jens/Source/shotwell/src/SortedList.vala" - _vala_assert (item == _tmp15_, "item == removed_item"); -#line 247 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp16_ = self->priv->list; -#line 247 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp17_ = new_index; -#line 247 "/home/jens/Source/shotwell/src/SortedList.vala" - gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp17_, item); -#line 240 "/home/jens/Source/shotwell/src/SortedList.vala" - ((removed_item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (removed_item = (self->priv->g_destroy_func (removed_item), NULL)); -#line 1190 "SortedList.c" - } -#line 254 "/home/jens/Source/shotwell/src/SortedList.vala" - result = TRUE; -#line 254 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 1196 "SortedList.c" -} - - -static gint -sorted_list_get_sorted_insert_pos (SortedList* self, - gconstpointer item) -{ - gint result = 0; - gint low = 0; - gint high = 0; - GeeArrayList* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 257 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail (IS_SORTED_LIST (self), 0); -#line 258 "/home/jens/Source/shotwell/src/SortedList.vala" - low = 0; -#line 259 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 259 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 259 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = _tmp1_; -#line 259 "/home/jens/Source/shotwell/src/SortedList.vala" - high = _tmp2_; -#line 1222 "SortedList.c" - { - gboolean _tmp3_ = FALSE; -#line 260 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp3_ = TRUE; -#line 260 "/home/jens/Source/shotwell/src/SortedList.vala" - while (TRUE) { -#line 1229 "SortedList.c" - gint _tmp4_; - gint _tmp5_; - gint mid = 0; - gint _tmp6_; - gint _tmp7_; - gint _tmp8_; - gpointer cmp_item = NULL; - GeeArrayList* _tmp9_; - gint _tmp10_; - gpointer _tmp11_; - gconstpointer _tmp12_; - gint64 _result_ = 0LL; - Comparator _tmp23_; - void* _tmp23__target; - gconstpointer _tmp24_; - gint64 _tmp25_; -#line 260 "/home/jens/Source/shotwell/src/SortedList.vala" - if (!_tmp3_) { -#line 1248 "SortedList.c" - } -#line 260 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp3_ = FALSE; -#line 261 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp4_ = low; -#line 261 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp5_ = high; -#line 261 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp4_ == _tmp5_) { -#line 262 "/home/jens/Source/shotwell/src/SortedList.vala" - result = low; -#line 262 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 1262 "SortedList.c" - } -#line 264 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp6_ = low; -#line 264 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp7_ = high; -#line 264 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp8_ = low; -#line 264 "/home/jens/Source/shotwell/src/SortedList.vala" - mid = _tmp6_ + ((_tmp7_ - _tmp8_) / 2); -#line 268 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp9_ = self->priv->list; -#line 268 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp10_ = mid; -#line 268 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp11_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp10_); -#line 268 "/home/jens/Source/shotwell/src/SortedList.vala" - cmp_item = _tmp11_; -#line 269 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp12_ = cmp_item; -#line 269 "/home/jens/Source/shotwell/src/SortedList.vala" - if (item == _tmp12_) { -#line 1284 "SortedList.c" - gint _tmp13_; - GeeArrayList* _tmp14_; - gint _tmp15_; - gint _tmp16_; - GeeArrayList* _tmp20_; - gint _tmp21_; - gpointer _tmp22_; -#line 271 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp13_ = mid; -#line 271 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp14_ = self->priv->list; -#line 271 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp15_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 271 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp16_ = _tmp15_; -#line 271 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp13_ >= (_tmp16_ - 1)) { -#line 1302 "SortedList.c" - GeeArrayList* _tmp17_; - gint _tmp18_; - gint _tmp19_; -#line 272 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp17_ = self->priv->list; -#line 272 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp18_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 272 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp19_ = _tmp18_; -#line 272 "/home/jens/Source/shotwell/src/SortedList.vala" - result = _tmp19_; -#line 272 "/home/jens/Source/shotwell/src/SortedList.vala" - ((cmp_item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (cmp_item = (self->priv->g_destroy_func (cmp_item), NULL)); -#line 272 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 1318 "SortedList.c" - } -#line 274 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp20_ = self->priv->list; -#line 274 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp21_ = mid; -#line 274 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp22_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp21_ + 1); -#line 274 "/home/jens/Source/shotwell/src/SortedList.vala" - ((cmp_item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (cmp_item = (self->priv->g_destroy_func (cmp_item), NULL)); -#line 274 "/home/jens/Source/shotwell/src/SortedList.vala" - cmp_item = _tmp22_; -#line 1330 "SortedList.c" - } -#line 277 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp23_ = self->priv->cmp; -#line 277 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp23__target = self->priv->cmp_target; -#line 277 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp24_ = cmp_item; -#line 277 "/home/jens/Source/shotwell/src/SortedList.vala" - _result_ = _tmp23_ (item, _tmp24_, _tmp23__target); -#line 278 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp25_ = _result_; -#line 278 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp25_ < ((gint64) 0)) { -#line 1344 "SortedList.c" - gint _tmp26_; -#line 279 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp26_ = mid; -#line 279 "/home/jens/Source/shotwell/src/SortedList.vala" - high = _tmp26_; -#line 1350 "SortedList.c" - } else { - gint64 _tmp27_; -#line 280 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp27_ = _result_; -#line 280 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp27_ > ((gint64) 0)) { -#line 1357 "SortedList.c" - gint _tmp28_; -#line 281 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp28_ = mid; -#line 281 "/home/jens/Source/shotwell/src/SortedList.vala" - low = _tmp28_ + 1; -#line 1363 "SortedList.c" - } else { -#line 283 "/home/jens/Source/shotwell/src/SortedList.vala" - result = mid; -#line 283 "/home/jens/Source/shotwell/src/SortedList.vala" - ((cmp_item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (cmp_item = (self->priv->g_destroy_func (cmp_item), NULL)); -#line 283 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 1371 "SortedList.c" - } - } -#line 260 "/home/jens/Source/shotwell/src/SortedList.vala" - ((cmp_item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (cmp_item = (self->priv->g_destroy_func (cmp_item), NULL)); -#line 1376 "SortedList.c" - } - } -} - - -SortedList* -sorted_list_copy (SortedList* self) -{ - SortedList* result = NULL; - SortedList* copy = NULL; - Comparator _tmp0_; - void* _tmp0__target; - SortedList* _tmp1_; - GeeArrayList* _tmp2_; - GeeArrayList* _tmp3_; -#line 287 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail (IS_SORTED_LIST (self), NULL); -#line 288 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->cmp; -#line 288 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0__target = self->priv->cmp_target; -#line 288 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = sorted_list_new (self->priv->g_type, (GBoxedCopyFunc) self->priv->g_dup_func, (GDestroyNotify) self->priv->g_destroy_func, _tmp0_, _tmp0__target); -#line 288 "/home/jens/Source/shotwell/src/SortedList.vala" - copy = _tmp1_; -#line 290 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = copy->priv->list; -#line 290 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp3_ = self->priv->list; -#line 290 "/home/jens/Source/shotwell/src/SortedList.vala" - gee_array_list_add_all (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 292 "/home/jens/Source/shotwell/src/SortedList.vala" - result = copy; -#line 292 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 1412 "SortedList.c" -} - - -static gboolean -sorted_list_merge_sort (SortedList* self, - GeeList* add) -{ - gboolean result = FALSE; - Comparator _tmp0_; - void* _tmp0__target; - gint list_count = 0; - GeeArrayList* _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint _tmp4_ = 0; - gint add_count = 0; - gint count = 0; - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - gpointer* array = NULL; - gint _tmp10_; - gpointer* _tmp11_; - gint array_length1; - gint _array_size_; - gint offset = 0; - gint _tmp29_; - gint _tmp30_; - gpointer* _tmp31_; - gint _tmp31__length1; - gint _tmp32_; - gpointer* _tmp33_; - gpointer* _tmp34_; - gint _tmp34__length1; - gint _tmp35_; -#line 313 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail (IS_SORTED_LIST (self), FALSE); -#line 313 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail ((add == NULL) || GEE_IS_LIST (add), FALSE); -#line 314 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->cmp; -#line 314 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0__target = self->priv->cmp_target; -#line 314 "/home/jens/Source/shotwell/src/SortedList.vala" - _vala_assert (_tmp0_ != NULL, "cmp != null"); -#line 316 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = self->priv->list; -#line 316 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 316 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp3_ = _tmp2_; -#line 316 "/home/jens/Source/shotwell/src/SortedList.vala" - list_count = _tmp3_; -#line 317 "/home/jens/Source/shotwell/src/SortedList.vala" - if (add != NULL) { -#line 1468 "SortedList.c" - gint _tmp5_; - gint _tmp6_; -#line 317 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (add, GEE_TYPE_COLLECTION, GeeCollection)); -#line 317 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp6_ = _tmp5_; -#line 317 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp4_ = _tmp6_; -#line 1477 "SortedList.c" - } else { -#line 317 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp4_ = 0; -#line 1481 "SortedList.c" - } -#line 317 "/home/jens/Source/shotwell/src/SortedList.vala" - add_count = _tmp4_; -#line 319 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp7_ = list_count; -#line 319 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp8_ = add_count; -#line 319 "/home/jens/Source/shotwell/src/SortedList.vala" - count = _tmp7_ + _tmp8_; -#line 320 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp9_ = count; -#line 320 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp9_ == 0) { -#line 321 "/home/jens/Source/shotwell/src/SortedList.vala" - result = FALSE; -#line 321 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 1499 "SortedList.c" - } -#line 325 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp10_ = count; -#line 325 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp11_ = g_new0 (gpointer, _tmp10_); -#line 325 "/home/jens/Source/shotwell/src/SortedList.vala" - array = _tmp11_; -#line 325 "/home/jens/Source/shotwell/src/SortedList.vala" - array_length1 = _tmp10_; -#line 325 "/home/jens/Source/shotwell/src/SortedList.vala" - _array_size_ = array_length1; -#line 326 "/home/jens/Source/shotwell/src/SortedList.vala" - offset = 0; -#line 328 "/home/jens/Source/shotwell/src/SortedList.vala" - while (TRUE) { -#line 1515 "SortedList.c" - gint _tmp12_; - gint _tmp13_; - gpointer* _tmp14_; - gint _tmp14__length1; - gint _tmp15_; - GeeArrayList* _tmp16_; - gint _tmp17_; - gpointer _tmp18_; - gpointer _tmp19_; - gint _tmp20_; -#line 328 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp12_ = offset; -#line 328 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp13_ = list_count; -#line 328 "/home/jens/Source/shotwell/src/SortedList.vala" - if (!(_tmp12_ < _tmp13_)) { -#line 328 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 1534 "SortedList.c" - } -#line 329 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp14_ = array; -#line 329 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp14__length1 = array_length1; -#line 329 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp15_ = offset; -#line 329 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp16_ = self->priv->list; -#line 329 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp17_ = offset; -#line 329 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp18_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp17_); -#line 329 "/home/jens/Source/shotwell/src/SortedList.vala" - ((_tmp14_[_tmp15_] == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (_tmp14_[_tmp15_] = (self->priv->g_destroy_func (_tmp14_[_tmp15_]), NULL)); -#line 329 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp14_[_tmp15_] = _tmp18_; -#line 329 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp19_ = _tmp14_[_tmp15_]; -#line 330 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp20_ = offset; -#line 330 "/home/jens/Source/shotwell/src/SortedList.vala" - offset = _tmp20_ + 1; -#line 1558 "SortedList.c" - } -#line 333 "/home/jens/Source/shotwell/src/SortedList.vala" - if (add != NULL) { -#line 1562 "SortedList.c" - gint add_ctr = 0; -#line 334 "/home/jens/Source/shotwell/src/SortedList.vala" - add_ctr = 0; -#line 335 "/home/jens/Source/shotwell/src/SortedList.vala" - while (TRUE) { -#line 1568 "SortedList.c" - gint _tmp21_; - gint _tmp22_; - gpointer* _tmp23_; - gint _tmp23__length1; - gint _tmp24_; - gint _tmp25_; - gpointer _tmp26_; - gpointer _tmp27_; - gint _tmp28_; -#line 335 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp21_ = offset; -#line 335 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp22_ = count; -#line 335 "/home/jens/Source/shotwell/src/SortedList.vala" - if (!(_tmp21_ < _tmp22_)) { -#line 335 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 1586 "SortedList.c" - } -#line 336 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp23_ = array; -#line 336 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp23__length1 = array_length1; -#line 336 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp24_ = offset; -#line 336 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp25_ = add_ctr; -#line 336 "/home/jens/Source/shotwell/src/SortedList.vala" - add_ctr = _tmp25_ + 1; -#line 336 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp26_ = gee_list_get (add, _tmp25_); -#line 336 "/home/jens/Source/shotwell/src/SortedList.vala" - ((_tmp23_[_tmp24_] == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (_tmp23_[_tmp24_] = (self->priv->g_destroy_func (_tmp23_[_tmp24_]), NULL)); -#line 336 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp23_[_tmp24_] = _tmp26_; -#line 336 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp27_ = _tmp23_[_tmp24_]; -#line 337 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp28_ = offset; -#line 337 "/home/jens/Source/shotwell/src/SortedList.vala" - offset = _tmp28_ + 1; -#line 1610 "SortedList.c" - } - } -#line 341 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp29_ = offset; -#line 341 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp30_ = count; -#line 341 "/home/jens/Source/shotwell/src/SortedList.vala" - _vala_assert (_tmp29_ == _tmp30_, "offset == count"); -#line 343 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp31_ = array; -#line 343 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp31__length1 = array_length1; -#line 343 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp32_ = count; -#line 343 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp33_ = g_new0 (gpointer, _tmp32_); -#line 343 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp34_ = _tmp33_; -#line 343 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp34__length1 = _tmp32_; -#line 343 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp35_ = count; -#line 343 "/home/jens/Source/shotwell/src/SortedList.vala" - _sorted_list_merge_sort (self, _tmp31_, _tmp31__length1, _tmp34_, _tmp32_, 0, _tmp35_ - 1); -#line 343 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp34_ = (_vala_array_free (_tmp34_, _tmp34__length1, (GDestroyNotify) self->priv->g_destroy_func), NULL); -#line 345 "/home/jens/Source/shotwell/src/SortedList.vala" - offset = 0; -#line 346 "/home/jens/Source/shotwell/src/SortedList.vala" - while (TRUE) { -#line 1641 "SortedList.c" - gint _tmp36_; - gint _tmp37_; - GeeArrayList* _tmp38_; - gint _tmp39_; - gpointer* _tmp40_; - gint _tmp40__length1; - gint _tmp41_; - gconstpointer _tmp42_; - gint _tmp43_; -#line 346 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp36_ = offset; -#line 346 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp37_ = list_count; -#line 346 "/home/jens/Source/shotwell/src/SortedList.vala" - if (!(_tmp36_ < _tmp37_)) { -#line 346 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 1659 "SortedList.c" - } -#line 347 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp38_ = self->priv->list; -#line 347 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp39_ = offset; -#line 347 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp40_ = array; -#line 347 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp40__length1 = array_length1; -#line 347 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp41_ = offset; -#line 347 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp42_ = _tmp40_[_tmp41_]; -#line 347 "/home/jens/Source/shotwell/src/SortedList.vala" - gee_abstract_list_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp39_, _tmp42_); -#line 348 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp43_ = offset; -#line 348 "/home/jens/Source/shotwell/src/SortedList.vala" - offset = _tmp43_ + 1; -#line 1679 "SortedList.c" - } -#line 351 "/home/jens/Source/shotwell/src/SortedList.vala" - while (TRUE) { -#line 1683 "SortedList.c" - gint _tmp44_; - gint _tmp45_; - GeeArrayList* _tmp46_; - gint _tmp47_; - gpointer* _tmp48_; - gint _tmp48__length1; - gint _tmp49_; - gconstpointer _tmp50_; - gint _tmp51_; -#line 351 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp44_ = offset; -#line 351 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp45_ = count; -#line 351 "/home/jens/Source/shotwell/src/SortedList.vala" - if (!(_tmp44_ < _tmp45_)) { -#line 351 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 1701 "SortedList.c" - } -#line 352 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp46_ = self->priv->list; -#line 352 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp47_ = offset; -#line 352 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp48_ = array; -#line 352 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp48__length1 = array_length1; -#line 352 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp49_ = offset; -#line 352 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp50_ = _tmp48_[_tmp49_]; -#line 352 "/home/jens/Source/shotwell/src/SortedList.vala" - gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp47_, _tmp50_); -#line 353 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp51_ = offset; -#line 353 "/home/jens/Source/shotwell/src/SortedList.vala" - offset = _tmp51_ + 1; -#line 1721 "SortedList.c" - } -#line 356 "/home/jens/Source/shotwell/src/SortedList.vala" - result = TRUE; -#line 356 "/home/jens/Source/shotwell/src/SortedList.vala" - array = (_vala_array_free (array, array_length1, (GDestroyNotify) self->priv->g_destroy_func), NULL); -#line 356 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 1729 "SortedList.c" -} - - -static void -_sorted_list_merge_sort (SortedList* self, - gpointer* array, - int array_length1, - gpointer* scratch, - int scratch_length1, - gint start_index, - gint end_index) -{ - gint count = 0; - gint _tmp0_; - gint middle_index = 0; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - Comparator _tmp4_; - void* _tmp4__target; - gint _tmp5_; - gconstpointer _tmp6_; - gint _tmp7_; - gconstpointer _tmp8_; -#line 359 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_if_fail (IS_SORTED_LIST (self)); -#line 360 "/home/jens/Source/shotwell/src/SortedList.vala" - _vala_assert (start_index <= end_index, "start_index <= end_index"); -#line 362 "/home/jens/Source/shotwell/src/SortedList.vala" - count = (end_index - start_index) + 1; -#line 363 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = count; -#line 363 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp0_ <= 1) { -#line 364 "/home/jens/Source/shotwell/src/SortedList.vala" - return; -#line 1766 "SortedList.c" - } -#line 366 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = count; -#line 366 "/home/jens/Source/shotwell/src/SortedList.vala" - middle_index = start_index + (_tmp1_ / 2); -#line 368 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = middle_index; -#line 368 "/home/jens/Source/shotwell/src/SortedList.vala" - _sorted_list_merge_sort (self, array, array_length1, scratch, scratch_length1, start_index, _tmp2_ - 1); -#line 369 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp3_ = middle_index; -#line 369 "/home/jens/Source/shotwell/src/SortedList.vala" - _sorted_list_merge_sort (self, array, array_length1, scratch, scratch_length1, _tmp3_, end_index); -#line 371 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp4_ = self->priv->cmp; -#line 371 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp4__target = self->priv->cmp_target; -#line 371 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp5_ = middle_index; -#line 371 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp6_ = array[_tmp5_ - 1]; -#line 371 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp7_ = middle_index; -#line 371 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp8_ = array[_tmp7_]; -#line 371 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp4_ (_tmp6_, _tmp8_, _tmp4__target) > ((gint64) 0)) { -#line 1794 "SortedList.c" - gint _tmp9_; -#line 372 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp9_ = middle_index; -#line 372 "/home/jens/Source/shotwell/src/SortedList.vala" - sorted_list_merge (self, array, array_length1, scratch, scratch_length1, start_index, _tmp9_, end_index); -#line 1800 "SortedList.c" - } -} - - -static void -sorted_list_merge (SortedList* self, - gpointer* array, - int array_length1, - gpointer* scratch, - int scratch_length1, - gint start_index, - gint middle_index, - gint end_index) -{ - gint count = 0; - gint left_start = 0; - gint left_end = 0; - gint right_start = 0; - gint right_end = 0; - gint _tmp0_; - gint scratch_index = 0; - gint _tmp39_; - gint _tmp40_; -#line 375 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_if_fail (IS_SORTED_LIST (self)); -#line 376 "/home/jens/Source/shotwell/src/SortedList.vala" - _vala_assert (start_index < end_index, "start_index < end_index"); -#line 378 "/home/jens/Source/shotwell/src/SortedList.vala" - count = (end_index - start_index) + 1; -#line 379 "/home/jens/Source/shotwell/src/SortedList.vala" - left_start = start_index; -#line 380 "/home/jens/Source/shotwell/src/SortedList.vala" - left_end = middle_index - 1; -#line 381 "/home/jens/Source/shotwell/src/SortedList.vala" - right_start = middle_index; -#line 382 "/home/jens/Source/shotwell/src/SortedList.vala" - right_end = end_index; -#line 384 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = count; -#line 384 "/home/jens/Source/shotwell/src/SortedList.vala" - _vala_assert (scratch_length1 >= _tmp0_, "scratch.length >= count"); -#line 385 "/home/jens/Source/shotwell/src/SortedList.vala" - scratch_index = 0; -#line 387 "/home/jens/Source/shotwell/src/SortedList.vala" - while (TRUE) { -#line 1846 "SortedList.c" - gboolean _tmp1_ = FALSE; - gint _tmp2_; - gint _tmp3_; - gpointer left = NULL; - gint _tmp6_; - gconstpointer _tmp7_; - gpointer _tmp8_; - gpointer right = NULL; - gint _tmp9_; - gconstpointer _tmp10_; - gpointer _tmp11_; - Comparator _tmp12_; - void* _tmp12__target; - gconstpointer _tmp13_; - gconstpointer _tmp14_; -#line 387 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = left_start; -#line 387 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp3_ = left_end; -#line 387 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp2_ <= _tmp3_) { -#line 1868 "SortedList.c" - gint _tmp4_; - gint _tmp5_; -#line 387 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp4_ = right_start; -#line 387 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp5_ = right_end; -#line 387 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = _tmp4_ <= _tmp5_; -#line 1877 "SortedList.c" - } else { -#line 387 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = FALSE; -#line 1881 "SortedList.c" - } -#line 387 "/home/jens/Source/shotwell/src/SortedList.vala" - if (!_tmp1_) { -#line 387 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 1887 "SortedList.c" - } -#line 388 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp6_ = left_start; -#line 388 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp7_ = array[_tmp6_]; -#line 388 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp8_ = ((_tmp7_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp7_) : ((gpointer) _tmp7_); -#line 388 "/home/jens/Source/shotwell/src/SortedList.vala" - left = _tmp8_; -#line 389 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp9_ = right_start; -#line 389 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp10_ = array[_tmp9_]; -#line 389 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp11_ = ((_tmp10_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp10_) : ((gpointer) _tmp10_); -#line 389 "/home/jens/Source/shotwell/src/SortedList.vala" - right = _tmp11_; -#line 391 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp12_ = self->priv->cmp; -#line 391 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp12__target = self->priv->cmp_target; -#line 391 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp13_ = left; -#line 391 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp14_ = right; -#line 391 "/home/jens/Source/shotwell/src/SortedList.vala" - if (_tmp12_ (_tmp13_, _tmp14_, _tmp12__target) <= ((gint64) 0)) { -#line 1915 "SortedList.c" - gint _tmp15_; - gconstpointer _tmp16_; - gpointer _tmp17_; - gpointer _tmp18_; - gint _tmp19_; -#line 392 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp15_ = scratch_index; -#line 392 "/home/jens/Source/shotwell/src/SortedList.vala" - scratch_index = _tmp15_ + 1; -#line 392 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp16_ = left; -#line 392 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp17_ = ((_tmp16_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp16_) : ((gpointer) _tmp16_); -#line 392 "/home/jens/Source/shotwell/src/SortedList.vala" - ((scratch[_tmp15_] == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (scratch[_tmp15_] = (self->priv->g_destroy_func (scratch[_tmp15_]), NULL)); -#line 392 "/home/jens/Source/shotwell/src/SortedList.vala" - scratch[_tmp15_] = _tmp17_; -#line 392 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp18_ = scratch[_tmp15_]; -#line 393 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp19_ = left_start; -#line 393 "/home/jens/Source/shotwell/src/SortedList.vala" - left_start = _tmp19_ + 1; -#line 1939 "SortedList.c" - } else { - gint _tmp20_; - gconstpointer _tmp21_; - gpointer _tmp22_; - gpointer _tmp23_; - gint _tmp24_; -#line 395 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp20_ = scratch_index; -#line 395 "/home/jens/Source/shotwell/src/SortedList.vala" - scratch_index = _tmp20_ + 1; -#line 395 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp21_ = right; -#line 395 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp22_ = ((_tmp21_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp21_) : ((gpointer) _tmp21_); -#line 395 "/home/jens/Source/shotwell/src/SortedList.vala" - ((scratch[_tmp20_] == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (scratch[_tmp20_] = (self->priv->g_destroy_func (scratch[_tmp20_]), NULL)); -#line 395 "/home/jens/Source/shotwell/src/SortedList.vala" - scratch[_tmp20_] = _tmp22_; -#line 395 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp23_ = scratch[_tmp20_]; -#line 396 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp24_ = right_start; -#line 396 "/home/jens/Source/shotwell/src/SortedList.vala" - right_start = _tmp24_ + 1; -#line 1964 "SortedList.c" - } -#line 387 "/home/jens/Source/shotwell/src/SortedList.vala" - ((right == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (right = (self->priv->g_destroy_func (right), NULL)); -#line 387 "/home/jens/Source/shotwell/src/SortedList.vala" - ((left == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (left = (self->priv->g_destroy_func (left), NULL)); -#line 1970 "SortedList.c" - } -#line 400 "/home/jens/Source/shotwell/src/SortedList.vala" - while (TRUE) { -#line 1974 "SortedList.c" - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; - gint _tmp28_; - gconstpointer _tmp29_; - gpointer _tmp30_; - gpointer _tmp31_; -#line 400 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp25_ = left_start; -#line 400 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp26_ = left_end; -#line 400 "/home/jens/Source/shotwell/src/SortedList.vala" - if (!(_tmp25_ <= _tmp26_)) { -#line 400 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 1990 "SortedList.c" - } -#line 401 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp27_ = scratch_index; -#line 401 "/home/jens/Source/shotwell/src/SortedList.vala" - scratch_index = _tmp27_ + 1; -#line 401 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp28_ = left_start; -#line 401 "/home/jens/Source/shotwell/src/SortedList.vala" - left_start = _tmp28_ + 1; -#line 401 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp29_ = array[_tmp28_]; -#line 401 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp30_ = ((_tmp29_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp29_) : ((gpointer) _tmp29_); -#line 401 "/home/jens/Source/shotwell/src/SortedList.vala" - ((scratch[_tmp27_] == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (scratch[_tmp27_] = (self->priv->g_destroy_func (scratch[_tmp27_]), NULL)); -#line 401 "/home/jens/Source/shotwell/src/SortedList.vala" - scratch[_tmp27_] = _tmp30_; -#line 401 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp31_ = scratch[_tmp27_]; -#line 2010 "SortedList.c" - } -#line 403 "/home/jens/Source/shotwell/src/SortedList.vala" - while (TRUE) { -#line 2014 "SortedList.c" - gint _tmp32_; - gint _tmp33_; - gint _tmp34_; - gint _tmp35_; - gconstpointer _tmp36_; - gpointer _tmp37_; - gpointer _tmp38_; -#line 403 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp32_ = right_start; -#line 403 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp33_ = right_end; -#line 403 "/home/jens/Source/shotwell/src/SortedList.vala" - if (!(_tmp32_ <= _tmp33_)) { -#line 403 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 2030 "SortedList.c" - } -#line 404 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp34_ = scratch_index; -#line 404 "/home/jens/Source/shotwell/src/SortedList.vala" - scratch_index = _tmp34_ + 1; -#line 404 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp35_ = right_start; -#line 404 "/home/jens/Source/shotwell/src/SortedList.vala" - right_start = _tmp35_ + 1; -#line 404 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp36_ = array[_tmp35_]; -#line 404 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp37_ = ((_tmp36_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp36_) : ((gpointer) _tmp36_); -#line 404 "/home/jens/Source/shotwell/src/SortedList.vala" - ((scratch[_tmp34_] == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (scratch[_tmp34_] = (self->priv->g_destroy_func (scratch[_tmp34_]), NULL)); -#line 404 "/home/jens/Source/shotwell/src/SortedList.vala" - scratch[_tmp34_] = _tmp37_; -#line 404 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp38_ = scratch[_tmp34_]; -#line 2050 "SortedList.c" - } -#line 406 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp39_ = scratch_index; -#line 406 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp40_ = count; -#line 406 "/home/jens/Source/shotwell/src/SortedList.vala" - _vala_assert (_tmp39_ == _tmp40_, "scratch_index == count"); -#line 408 "/home/jens/Source/shotwell/src/SortedList.vala" - scratch_index = 0; -#line 2060 "SortedList.c" - { - gint list_index = 0; -#line 409 "/home/jens/Source/shotwell/src/SortedList.vala" - list_index = start_index; -#line 2065 "SortedList.c" - { - gboolean _tmp41_ = FALSE; -#line 409 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp41_ = TRUE; -#line 409 "/home/jens/Source/shotwell/src/SortedList.vala" - while (TRUE) { -#line 2072 "SortedList.c" - gint _tmp43_; - gint _tmp44_; - gint _tmp45_; - gconstpointer _tmp46_; - gpointer _tmp47_; - gpointer _tmp48_; -#line 409 "/home/jens/Source/shotwell/src/SortedList.vala" - if (!_tmp41_) { -#line 2081 "SortedList.c" - gint _tmp42_; -#line 409 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp42_ = list_index; -#line 409 "/home/jens/Source/shotwell/src/SortedList.vala" - list_index = _tmp42_ + 1; -#line 2087 "SortedList.c" - } -#line 409 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp41_ = FALSE; -#line 409 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp43_ = list_index; -#line 409 "/home/jens/Source/shotwell/src/SortedList.vala" - if (!(_tmp43_ <= end_index)) { -#line 409 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 2097 "SortedList.c" - } -#line 410 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp44_ = list_index; -#line 410 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp45_ = scratch_index; -#line 410 "/home/jens/Source/shotwell/src/SortedList.vala" - scratch_index = _tmp45_ + 1; -#line 410 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp46_ = scratch[_tmp45_]; -#line 410 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp47_ = ((_tmp46_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp46_) : ((gpointer) _tmp46_); -#line 410 "/home/jens/Source/shotwell/src/SortedList.vala" - ((array[_tmp44_] == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (array[_tmp44_] = (self->priv->g_destroy_func (array[_tmp44_]), NULL)); -#line 410 "/home/jens/Source/shotwell/src/SortedList.vala" - array[_tmp44_] = _tmp47_; -#line 410 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp48_ = array[_tmp44_]; -#line 2115 "SortedList.c" - } - } - } -} - - -static GType -sorted_list_real_get_element_type (GeeTraversable* base) -{ - GType result; - SortedList* self; -#line 19 "/home/jens/Source/shotwell/src/SortedList.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList); -#line 19 "/home/jens/Source/shotwell/src/SortedList.vala" - result = self->priv->g_type; -#line 19 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 2133 "SortedList.c" -} - - -static gboolean -sorted_list_real_get_read_only (GeeCollection* base) -{ - gboolean result; - SortedList* self; - GeeArrayList* _tmp0_; - gboolean _tmp1_; - gboolean _tmp2_; -#line 23 "/home/jens/Source/shotwell/src/SortedList.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList); -#line 23 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 23 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = gee_abstract_collection_get_read_only (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 23 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/SortedList.vala" - result = _tmp2_; -#line 23 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 2157 "SortedList.c" -} - - -static gboolean -sorted_list_real_get_is_empty (GeeCollection* base) -{ - gboolean result; - SortedList* self; - GeeArrayList* _tmp0_; - gboolean _tmp1_; - gboolean _tmp2_; -#line 116 "/home/jens/Source/shotwell/src/SortedList.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList); -#line 117 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 117 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = gee_collection_get_is_empty (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 117 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = _tmp1_; -#line 117 "/home/jens/Source/shotwell/src/SortedList.vala" - result = _tmp2_; -#line 117 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 2181 "SortedList.c" -} - - -static gint -sorted_list_real_get_size (GeeCollection* base) -{ - gint result; - SortedList* self; - GeeArrayList* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 134 "/home/jens/Source/shotwell/src/SortedList.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList); -#line 134 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 134 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 134 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = _tmp1_; -#line 134 "/home/jens/Source/shotwell/src/SortedList.vala" - result = _tmp2_; -#line 134 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 2205 "SortedList.c" -} - - -static GeeCollection* -sorted_list_real_get_read_only_view (GeeCollection* base) -{ - GeeCollection* result; - SortedList* self; - GeeArrayList* _tmp0_; - GeeBidirList* _tmp1_; - GeeBidirList* _tmp2_; -#line 199 "/home/jens/Source/shotwell/src/SortedList.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SORTED_LIST, SortedList); -#line 200 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 200 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = gee_abstract_bidir_list_get_read_only_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_BIDIR_LIST, GeeAbstractBidirList)); -#line 200 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = _tmp1_; -#line 200 "/home/jens/Source/shotwell/src/SortedList.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 200 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 2229 "SortedList.c" -} - - -GeeList* -sorted_list_get_read_only_view_as_list (SortedList* self) -{ - GeeList* result; - GeeArrayList* _tmp0_; - GeeBidirList* _tmp1_; - GeeBidirList* _tmp2_; -#line 205 "/home/jens/Source/shotwell/src/SortedList.vala" - g_return_val_if_fail (IS_SORTED_LIST (self), NULL); -#line 206 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp0_ = self->priv->list; -#line 206 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp1_ = gee_abstract_bidir_list_get_read_only_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_BIDIR_LIST, GeeAbstractBidirList)); -#line 206 "/home/jens/Source/shotwell/src/SortedList.vala" - _tmp2_ = _tmp1_; -#line 206 "/home/jens/Source/shotwell/src/SortedList.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_LIST, GeeList); -#line 206 "/home/jens/Source/shotwell/src/SortedList.vala" - return result; -#line 2252 "SortedList.c" -} - - -static void -sorted_list_class_init (SortedListClass * klass) -{ -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - sorted_list_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - g_type_class_add_private (klass, sizeof (SortedListPrivate)); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_sorted_list_get_property; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_sorted_list_set_property; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - G_OBJECT_CLASS (klass)->finalize = sorted_list_finalize; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_G_TYPE, g_param_spec_gtype ("g-type", "type", "type", G_TYPE_NONE, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_G_DUP_FUNC, g_param_spec_pointer ("g-dup-func", "dup func", "dup func", G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_G_DESTROY_FUNC, g_param_spec_pointer ("g-destroy-func", "destroy func", "destroy func", G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_ELEMENT_TYPE_PROPERTY, sorted_list_properties[SORTED_LIST_ELEMENT_TYPE_PROPERTY] = g_param_spec_gtype ("element-type", "element-type", "element-type", G_TYPE_NONE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_READ_ONLY_PROPERTY, sorted_list_properties[SORTED_LIST_READ_ONLY_PROPERTY] = g_param_spec_boolean ("read-only", "read-only", "read-only", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_IS_EMPTY_PROPERTY, sorted_list_properties[SORTED_LIST_IS_EMPTY_PROPERTY] = g_param_spec_boolean ("is-empty", "is-empty", "is-empty", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_SIZE_PROPERTY, sorted_list_properties[SORTED_LIST_SIZE_PROPERTY] = g_param_spec_int ("size", "size", "size", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_READ_ONLY_VIEW_PROPERTY, sorted_list_properties[SORTED_LIST_READ_ONLY_VIEW_PROPERTY] = g_param_spec_object ("read-only-view", "read-only-view", "read-only-view", GEE_TYPE_COLLECTION, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SORTED_LIST_READ_ONLY_VIEW_AS_LIST_PROPERTY, sorted_list_properties[SORTED_LIST_READ_ONLY_VIEW_AS_LIST_PROPERTY] = g_param_spec_object ("read-only-view-as-list", "read-only-view-as-list", "read-only-view-as-list", GEE_TYPE_LIST, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 2287 "SortedList.c" -} - - -static GType -sorted_list_gee_traversable_get_g_type (SortedList* self) -{ -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - return self->priv->g_type; -#line 2296 "SortedList.c" -} - - -static GBoxedCopyFunc -sorted_list_gee_traversable_get_g_dup_func (SortedList* self) -{ -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - return self->priv->g_dup_func; -#line 2305 "SortedList.c" -} - - -static GDestroyNotify -sorted_list_gee_traversable_get_g_destroy_func (SortedList* self) -{ -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - return self->priv->g_destroy_func; -#line 2314 "SortedList.c" -} - - -static void -sorted_list_gee_traversable_interface_init (GeeTraversableIface * iface) -{ -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - sorted_list_gee_traversable_parent_iface = g_type_interface_peek_parent (iface); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->foreach = (gboolean (*) (GeeTraversable *, GeeForallFunc, void*)) sorted_list_real_foreach; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->get_g_type = (GType (*) (GeeTraversable *)) sorted_list_gee_traversable_get_g_type; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->get_g_dup_func = (GBoxedCopyFunc (*) (GeeTraversable *)) sorted_list_gee_traversable_get_g_dup_func; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->get_g_destroy_func = (GDestroyNotify (*) (GeeTraversable *)) sorted_list_gee_traversable_get_g_destroy_func; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->get_element_type = sorted_list_real_get_element_type; -#line 2333 "SortedList.c" -} - - -static GType -sorted_list_gee_iterable_get_g_type (SortedList* self) -{ -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - return self->priv->g_type; -#line 2342 "SortedList.c" -} - - -static GBoxedCopyFunc -sorted_list_gee_iterable_get_g_dup_func (SortedList* self) -{ -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - return self->priv->g_dup_func; -#line 2351 "SortedList.c" -} - - -static GDestroyNotify -sorted_list_gee_iterable_get_g_destroy_func (SortedList* self) -{ -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - return self->priv->g_destroy_func; -#line 2360 "SortedList.c" -} - - -static void -sorted_list_gee_iterable_interface_init (GeeIterableIface * iface) -{ -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - sorted_list_gee_iterable_parent_iface = g_type_interface_peek_parent (iface); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->iterator = (GeeIterator* (*) (GeeIterable *)) sorted_list_real_iterator; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->get_g_type = (GType (*) (GeeIterable *)) sorted_list_gee_iterable_get_g_type; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->get_g_dup_func = (GBoxedCopyFunc (*) (GeeIterable *)) sorted_list_gee_iterable_get_g_dup_func; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->get_g_destroy_func = (GDestroyNotify (*) (GeeIterable *)) sorted_list_gee_iterable_get_g_destroy_func; -#line 2377 "SortedList.c" -} - - -static GType -sorted_list_gee_collection_get_g_type (SortedList* self) -{ -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - return self->priv->g_type; -#line 2386 "SortedList.c" -} - - -static GBoxedCopyFunc -sorted_list_gee_collection_get_g_dup_func (SortedList* self) -{ -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - return self->priv->g_dup_func; -#line 2395 "SortedList.c" -} - - -static GDestroyNotify -sorted_list_gee_collection_get_g_destroy_func (SortedList* self) -{ -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - return self->priv->g_destroy_func; -#line 2404 "SortedList.c" -} - - -static void -sorted_list_gee_collection_interface_init (GeeCollectionIface * iface) -{ -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - sorted_list_gee_collection_parent_iface = g_type_interface_peek_parent (iface); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->add = (gboolean (*) (GeeCollection *, gconstpointer)) sorted_list_real_add; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->add_all = (gboolean (*) (GeeCollection *, GeeCollection*)) sorted_list_real_add_all; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->clear = (void (*) (GeeCollection *)) sorted_list_real_clear; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->contains = (gboolean (*) (GeeCollection *, gconstpointer)) sorted_list_real_contains; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->contains_all = (gboolean (*) (GeeCollection *, GeeCollection*)) sorted_list_real_contains_all; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->remove = (gboolean (*) (GeeCollection *, gconstpointer)) sorted_list_real_remove; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->remove_all = (gboolean (*) (GeeCollection *, GeeCollection*)) sorted_list_real_remove_all; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->retain_all = (gboolean (*) (GeeCollection *, GeeCollection*)) sorted_list_real_retain_all; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->to_array = (gpointer* (*) (GeeCollection *, int*)) sorted_list_real_to_array; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->get_g_type = (GType (*) (GeeCollection *)) sorted_list_gee_collection_get_g_type; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->get_g_dup_func = (GBoxedCopyFunc (*) (GeeCollection *)) sorted_list_gee_collection_get_g_dup_func; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->get_g_destroy_func = (GDestroyNotify (*) (GeeCollection *)) sorted_list_gee_collection_get_g_destroy_func; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->get_read_only = sorted_list_real_get_read_only; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->get_is_empty = sorted_list_real_get_is_empty; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->get_size = sorted_list_real_get_size; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - iface->get_read_only_view = sorted_list_real_get_read_only_view; -#line 2445 "SortedList.c" -} - - -static void -sorted_list_instance_init (SortedList * self) -{ -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - self->priv = SORTED_LIST_GET_PRIVATE (self); -#line 2454 "SortedList.c" -} - - -static void -sorted_list_finalize (GObject * obj) -{ - SortedList * self; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SORTED_LIST, SortedList); -#line 10 "/home/jens/Source/shotwell/src/SortedList.vala" - _g_object_unref0 (self->priv->list); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - G_OBJECT_CLASS (sorted_list_parent_class)->finalize (obj); -#line 2468 "SortedList.c" -} - - -GType -sorted_list_get_type (void) -{ - static volatile gsize sorted_list_type_id__volatile = 0; - if (g_once_init_enter (&sorted_list_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SortedListClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sorted_list_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SortedList), 0, (GInstanceInitFunc) sorted_list_instance_init, NULL }; - static const GInterfaceInfo gee_traversable_info = { (GInterfaceInitFunc) sorted_list_gee_traversable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo gee_iterable_info = { (GInterfaceInitFunc) sorted_list_gee_iterable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo gee_collection_info = { (GInterfaceInitFunc) sorted_list_gee_collection_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType sorted_list_type_id; - sorted_list_type_id = g_type_register_static (G_TYPE_OBJECT, "SortedList", &g_define_type_info, 0); - g_type_add_interface_static (sorted_list_type_id, GEE_TYPE_TRAVERSABLE, &gee_traversable_info); - g_type_add_interface_static (sorted_list_type_id, GEE_TYPE_ITERABLE, &gee_iterable_info); - g_type_add_interface_static (sorted_list_type_id, GEE_TYPE_COLLECTION, &gee_collection_info); - g_once_init_leave (&sorted_list_type_id__volatile, sorted_list_type_id); - } - return sorted_list_type_id__volatile; -} - - -static void -_vala_sorted_list_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - SortedList * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_SORTED_LIST, SortedList); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - switch (property_id) { -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - case SORTED_LIST_ELEMENT_TYPE_PROPERTY: -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - g_value_set_gtype (value, gee_traversable_get_element_type (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_TRAVERSABLE, GeeTraversable))); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - case SORTED_LIST_READ_ONLY_PROPERTY: -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - g_value_set_boolean (value, gee_collection_get_read_only (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_COLLECTION, GeeCollection))); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - case SORTED_LIST_IS_EMPTY_PROPERTY: -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - g_value_set_boolean (value, gee_collection_get_is_empty (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_COLLECTION, GeeCollection))); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - case SORTED_LIST_SIZE_PROPERTY: -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - g_value_set_int (value, gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_COLLECTION, GeeCollection))); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - case SORTED_LIST_READ_ONLY_VIEW_PROPERTY: -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - g_value_take_object (value, gee_collection_get_read_only_view (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_COLLECTION, GeeCollection))); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - case SORTED_LIST_READ_ONLY_VIEW_AS_LIST_PROPERTY: -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - g_value_take_object (value, sorted_list_get_read_only_view_as_list (self)); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 2538 "SortedList.c" - default: -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 2544 "SortedList.c" - } -} - - -static void -_vala_sorted_list_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - SortedList * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_SORTED_LIST, SortedList); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - switch (property_id) { -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - case SORTED_LIST_G_TYPE: -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - self->priv->g_type = g_value_get_gtype (value); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - case SORTED_LIST_G_DUP_FUNC: -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - self->priv->g_dup_func = g_value_get_pointer (value); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - case SORTED_LIST_G_DESTROY_FUNC: -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - self->priv->g_destroy_func = g_value_get_pointer (value); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 2577 "SortedList.c" - default: -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 9 "/home/jens/Source/shotwell/src/SortedList.vala" - break; -#line 2583 "SortedList.c" - } -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/Tag.c b/src/Tag.c deleted file mode 100644 index a4b9131..0000000 --- a/src/Tag.c +++ /dev/null @@ -1,9694 +0,0 @@ -/* Tag.c generated by valac 0.40.4, the Vala compiler - * generated from Tag.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; -typedef struct _DataCollectionPrivate DataCollectionPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; -typedef struct _SourceCollectionPrivate SourceCollectionPrivate; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ()) -#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink)) -#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) -#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK)) -#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK)) -#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) - -typedef struct _SourceBacklink SourceBacklink; -typedef struct _SourceBacklinkClass SourceBacklinkClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; -typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; -typedef struct _ContainerSourceCollectionPrivate ContainerSourceCollectionPrivate; - -#define TYPE_CONTAINER_SOURCE (container_source_get_type ()) -#define CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE, ContainerSource)) -#define IS_CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE)) -#define CONTAINER_SOURCE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONTAINER_SOURCE, ContainerSourceIface)) - -typedef struct _ContainerSource ContainerSource; -typedef struct _ContainerSourceIface ContainerSourceIface; - -#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ()) -#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection)) -#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) -#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION)) -#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION)) -#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) - -typedef struct _TagSourceCollection TagSourceCollection; -typedef struct _TagSourceCollectionClass TagSourceCollectionClass; -typedef struct _TagSourceCollectionPrivate TagSourceCollectionPrivate; - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ()) -#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) - -typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; -typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_VIDEO_SOURCE_COLLECTION (video_source_collection_get_type ()) -#define VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection)) -#define VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) -#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION)) -#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION)) -#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) - -typedef struct _VideoSourceCollection VideoSourceCollection; -typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass; - -#define TYPE_TAG_ID (tag_id_get_type ()) -typedef struct _TagID TagID; -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _DataObjectPrivate DataObjectPrivate; -typedef struct _DataSourcePrivate DataSourcePrivate; - -#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ()) -#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)) -#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) -#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK)) -#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK)) -#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) - -typedef struct _SourceHoldingTank SourceHoldingTank; -typedef struct _SourceHoldingTankClass SourceHoldingTankClass; - -#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ()) -#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot)) -#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) -#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT)) -#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT)) -#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) - -typedef struct _SourceSnapshot SourceSnapshot; -typedef struct _SourceSnapshotClass SourceSnapshotClass; - -#define TYPE_PROXYABLE (proxyable_get_type ()) -#define PROXYABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROXYABLE, Proxyable)) -#define IS_PROXYABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROXYABLE)) -#define PROXYABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_PROXYABLE, ProxyableIface)) - -typedef struct _Proxyable Proxyable; -typedef struct _ProxyableIface ProxyableIface; - -#define TYPE_SOURCE_PROXY (source_proxy_get_type ()) -#define SOURCE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_PROXY, SourceProxy)) -#define SOURCE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_PROXY, SourceProxyClass)) -#define IS_SOURCE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_PROXY)) -#define IS_SOURCE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_PROXY)) -#define SOURCE_PROXY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_PROXY, SourceProxyClass)) - -typedef struct _SourceProxy SourceProxy; -typedef struct _SourceProxyClass SourceProxyClass; - -#define TYPE_INDEXABLE (indexable_get_type ()) -#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable)) -#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE)) -#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface)) - -typedef struct _Indexable Indexable; -typedef struct _IndexableIface IndexableIface; -typedef struct _TagPrivate TagPrivate; - -#define TYPE_TAG_ROW (tag_row_get_type ()) -#define TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_ROW, TagRow)) -#define TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_ROW, TagRowClass)) -#define IS_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_ROW)) -#define IS_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_ROW)) -#define TAG_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_ROW, TagRowClass)) - -typedef struct _TagRow TagRow; -typedef struct _TagRowClass TagRowClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; -enum { - TAG_0_PROPERTY, - TAG_NUM_PROPERTIES -}; -static GParamSpec* tag_properties[TAG_NUM_PROPERTIES]; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; -#define _tag_row_unref0(var) ((var == NULL) ? NULL : (var = (tag_row_unref (var), NULL))) -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -typedef struct _TagRowPrivate TagRowPrivate; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; - -#define TYPE_TAG_TABLE (tag_table_get_type ()) -#define TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_TABLE, TagTable)) -#define TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_TABLE, TagTableClass)) -#define IS_TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_TABLE)) -#define IS_TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_TABLE)) -#define TAG_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_TABLE, TagTableClass)) - -typedef struct _TagTable TagTable; -typedef struct _TagTableClass TagTableClass; -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL))) - -#define TYPE_PREPARE_INPUT_TEXT_OPTIONS (prepare_input_text_options_get_type ()) -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) - -#define TAG_TYPE_TAG_SNAPSHOT (tag_tag_snapshot_get_type ()) -#define TAG_TAG_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TAG_TYPE_TAG_SNAPSHOT, TagTagSnapshot)) -#define TAG_TAG_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TAG_TYPE_TAG_SNAPSHOT, TagTagSnapshotClass)) -#define TAG_IS_TAG_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TAG_TYPE_TAG_SNAPSHOT)) -#define TAG_IS_TAG_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TAG_TYPE_TAG_SNAPSHOT)) -#define TAG_TAG_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TAG_TYPE_TAG_SNAPSHOT, TagTagSnapshotClass)) - -typedef struct _TagTagSnapshot TagTagSnapshot; -typedef struct _TagTagSnapshotClass TagTagSnapshotClass; - -#define TAG_TYPE_TAG_PROXY (tag_tag_proxy_get_type ()) -#define TAG_TAG_PROXY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TAG_TYPE_TAG_PROXY, TagTagProxy)) -#define TAG_TAG_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TAG_TYPE_TAG_PROXY, TagTagProxyClass)) -#define TAG_IS_TAG_PROXY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TAG_TYPE_TAG_PROXY)) -#define TAG_IS_TAG_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TAG_TYPE_TAG_PROXY)) -#define TAG_TAG_PROXY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TAG_TYPE_TAG_PROXY, TagTagProxyClass)) - -typedef struct _TagTagProxy TagTagProxy; -typedef struct _TagTagProxyClass TagTagProxyClass; -#define _source_backlink_unref0(var) ((var == NULL) ? NULL : (var = (source_backlink_unref (var), NULL))) -typedef struct _SourceSnapshotPrivate SourceSnapshotPrivate; -typedef struct _TagTagSnapshotPrivate TagTagSnapshotPrivate; -typedef struct _SourceProxyPrivate SourceProxyPrivate; -typedef struct _TagTagProxyPrivate TagTagProxyPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -struct _DataCollection { - GTypeInstance parent_instance; - volatile int ref_count; - DataCollectionPrivate * priv; -}; - -struct _DataCollectionClass { - GTypeClass parent_class; - void (*finalize) (DataCollection *self); - gchar* (*to_string) (DataCollection* self); - void (*notify_items_added) (DataCollection* self, GeeIterable* added); - void (*notify_items_removed) (DataCollection* self, GeeIterable* removed); - void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*notify_items_altered) (DataCollection* self, GeeMap* items); - void (*notify_ordering_changed) (DataCollection* self); - void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*notify_property_cleared) (DataCollection* self, const gchar* name); - gboolean (*valid_type) (DataCollection* self, DataObject* object); - void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target); - void (*reset_comparator) (DataCollection* self); - GeeCollection* (*get_all) (DataCollection* self); - gint (*get_count) (DataCollection* self); - DataObject* (*get_at) (DataCollection* self, gint index); - gint (*index_of) (DataCollection* self, DataObject* object); - gboolean (*contains) (DataCollection* self, DataObject* object); - gboolean (*add) (DataCollection* self, DataObject* object); - GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target); - void (*remove_marked) (DataCollection* self, Marker* m); - void (*clear) (DataCollection* self); - void (*close) (DataCollection* self); - void (*notify_frozen) (DataCollection* self); - void (*notify_thawed) (DataCollection* self); - void (*items_added) (DataCollection* self, GeeIterable* added); - void (*items_removed) (DataCollection* self, GeeIterable* removed); - void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*items_altered) (DataCollection* self, GeeMap* items); - void (*ordering_changed) (DataCollection* self); - void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*property_cleared) (DataCollection* self, const gchar* name); - void (*frozen) (DataCollection* self); - void (*thawed) (DataCollection* self); -}; - -struct _SourceCollection { - DataCollection parent_instance; - SourceCollectionPrivate * priv; -}; - -struct _SourceCollectionClass { - DataCollectionClass parent_class; - gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source); - void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*notify_item_destroyed) (SourceCollection* self, DataSource* source); - void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked); - void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); - gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*item_destroyed) (SourceCollection* self, DataSource* source); - void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*unlinked_destroyed) (SourceCollection* self, DataSource* source); - void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); -}; - -struct _DatabaseSourceCollection { - SourceCollection parent_instance; - DatabaseSourceCollectionPrivate * priv; -}; - -struct _DatabaseSourceCollectionClass { - SourceCollectionClass parent_class; -}; - -struct _ContainerSourceIface { - GTypeInterface parent_iface; - gboolean (*has_links) (ContainerSource* self); - SourceBacklink* (*get_backlink) (ContainerSource* self); - void (*break_link) (ContainerSource* self, DataSource* source); - void (*break_link_many) (ContainerSource* self, GeeCollection* sources); - void (*establish_link) (ContainerSource* self, DataSource* source); - void (*establish_link_many) (ContainerSource* self, GeeCollection* sources); -}; - -struct _ContainerSourceCollection { - DatabaseSourceCollection parent_instance; - ContainerSourceCollectionPrivate * priv; -}; - -struct _ContainerSourceCollectionClass { - DatabaseSourceCollectionClass parent_class; - void (*notify_container_contents_added) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked); - void (*notify_container_contents_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked); - void (*notify_container_contents_altered) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked); - void (*notify_backlink_to_container_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources); - GeeCollection* (*get_containers_holding_source) (ContainerSourceCollection* self, DataSource* source); - ContainerSource* (*convert_backlink_to_container) (ContainerSourceCollection* self, SourceBacklink* backlink); - void (*container_contents_added) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked); - void (*container_contents_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked); - void (*container_contents_altered) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked); - void (*backlink_to_container_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources); -}; - -struct _TagSourceCollection { - ContainerSourceCollection parent_instance; - TagSourceCollectionPrivate * priv; -}; - -struct _TagSourceCollectionClass { - ContainerSourceCollectionClass parent_class; -}; - -struct _TagSourceCollectionPrivate { - GeeHashMap* name_map; - GeeHashMap* source_map; - GeeHashMap* sorted_source_map; -}; - -typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data); -struct _TagID { - gint64 id; -}; - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataSource { - DataObject parent_instance; - DataSourcePrivate * priv; -}; - -struct _DataSourceClass { - DataObjectClass parent_class; - void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank); - void (*notify_unlinking) (DataSource* self, SourceCollection* collection); - void (*notify_unlinked) (DataSource* self); - void (*notify_relinking) (DataSource* self, SourceCollection* collection); - void (*notify_relinked) (DataSource* self); - gchar* (*get_typename) (DataSource* self); - gint64 (*get_instance_id) (DataSource* self); - gchar* (*get_source_id) (DataSource* self); - void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated); - SourceSnapshot* (*save_snapshot) (DataSource* self); - gboolean (*internal_delete_backing) (DataSource* self, GError** error); - gboolean (*equals) (DataSource* self, DataSource* source); - void (*destroy) (DataSource* self); - void (*unlinked) (DataSource* self, SourceCollection* sources); - void (*relinked) (DataSource* self, SourceCollection* sources); - void (*destroyed) (DataSource* self); -}; - -struct _ProxyableIface { - GTypeInterface parent_iface; - SourceProxy* (*get_proxy) (Proxyable* self); -}; - -struct _IndexableIface { - GTypeInterface parent_iface; - const gchar* (*get_indexable_keywords) (Indexable* self); -}; - -struct _Tag { - DataSource parent_instance; - TagPrivate * priv; -}; - -struct _TagClass { - DataSourceClass parent_class; -}; - -struct _TagPrivate { - TagRow* row; - ViewCollection* media_views; - gchar* name_collation_key; - gboolean unlinking; - gboolean relinking; - gchar* indexable_keywords; -}; - -struct _TagRow { - GTypeInstance parent_instance; - volatile int ref_count; - TagRowPrivate * priv; - TagID tag_id; - gchar* name; - GeeSet* source_id_list; - time_t time_created; -}; - -struct _TagRowClass { - GTypeClass parent_class; - void (*finalize) (TagRow *self); -}; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -typedef enum { - PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL = 1 << 0, - PREPARE_INPUT_TEXT_OPTIONS_VALIDATE = 1 << 1, - PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL = 1 << 2, - PREPARE_INPUT_TEXT_OPTIONS_STRIP = 1 << 3, - PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF = 1 << 4, - PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE = 1 << 5, - PREPARE_INPUT_TEXT_OPTIONS_DEFAULT = ((((PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE -} PrepareInputTextOptions; - -typedef DataView* (*CreateView) (DataSource* source, void* user_data); -typedef gboolean (*CreateViewPredicate) (DataSource* source, void* user_data); -struct _SourceSnapshot { - GTypeInstance parent_instance; - volatile int ref_count; - SourceSnapshotPrivate * priv; -}; - -struct _SourceSnapshotClass { - GTypeClass parent_class; - void (*finalize) (SourceSnapshot *self); - void (*notify_broken) (SourceSnapshot* self); - void (*broken) (SourceSnapshot* self); -}; - -struct _TagTagSnapshot { - SourceSnapshot parent_instance; - TagTagSnapshotPrivate * priv; -}; - -struct _TagTagSnapshotClass { - SourceSnapshotClass parent_class; -}; - -struct _TagTagSnapshotPrivate { - TagRow* row; - GeeHashSet* sources; -}; - -struct _SourceProxy { - GTypeInstance parent_instance; - volatile int ref_count; - SourceProxyPrivate * priv; -}; - -struct _SourceProxyClass { - GTypeClass parent_class; - void (*finalize) (SourceProxy *self); - DataSource* (*reconstitute) (SourceProxy* self, gint64 object_id, SourceSnapshot* snapshot); - void (*notify_reconstituted) (SourceProxy* self, DataSource* source); - void (*notify_dehydrated) (SourceProxy* self); - void (*notify_broken) (SourceProxy* self); - void (*reconstituted) (SourceProxy* self, DataSource* source); - void (*dehydrated) (SourceProxy* self); - void (*broken) (SourceProxy* self); -}; - -struct _TagTagProxy { - SourceProxy parent_instance; - TagTagProxyPrivate * priv; -}; - -struct _TagTagProxyClass { - SourceProxyClass parent_class; -}; - - -static gpointer tag_source_collection_parent_class = NULL; -extern LibraryPhotoSourceCollection* library_photo_global; -extern VideoSourceCollection* video_global; -static gpointer tag_parent_class = NULL; -extern TagSourceCollection* tag_global; -TagSourceCollection* tag_global = NULL; -static gpointer tag_tag_snapshot_parent_class = NULL; -static gpointer tag_tag_proxy_parent_class = NULL; -static ContainerSourceIface * tag_container_source_parent_iface = NULL; -static ProxyableIface * tag_proxyable_parent_iface = NULL; -static IndexableIface * tag_indexable_parent_iface = NULL; - -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -GType marker_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -gpointer source_backlink_ref (gpointer instance); -void source_backlink_unref (gpointer instance); -GParamSpec* param_spec_source_backlink (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_backlink (GValue* value, - gpointer v_object); -void value_take_source_backlink (GValue* value, - gpointer v_object); -gpointer value_get_source_backlink (const GValue* value); -GType source_backlink_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_get_type (void) G_GNUC_CONST; -GType tag_source_collection_get_type (void) G_GNUC_CONST; -GType tag_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -#define TAG_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionPrivate)) -GType media_source_collection_get_type (void) G_GNUC_CONST; -GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -static void tag_source_collection_on_photo_source_reimported (TagSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata); -static void _tag_source_collection_on_photo_source_reimported_library_photo_source_collection_source_reimported (LibraryPhotoSourceCollection* _sender, - LibraryPhoto* photo, - PhotoMetadata* metadata, - gpointer self); -guint tag_hash_name_string (const gchar* a); -static guint _tag_hash_name_string_gee_hash_data_func (gconstpointer v, - gpointer self); -gboolean tag_equal_name_strings (const gchar* a, - const gchar* b); -static gboolean _tag_equal_name_strings_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -TagSourceCollection* tag_source_collection_new (void); -TagSourceCollection* tag_source_collection_construct (GType object_type); -#define TAG_TYPENAME "tag" -static gint64 tag_source_collection_get_tag_key (DataSource* source); -static gint64 _tag_source_collection_get_tag_key_get_source_database_key (DataSource* source, - gpointer self); -ContainerSourceCollection* container_source_collection_construct (GType object_type, - const gchar* backlink_name, - const gchar* name, - GetSourceDatabaseKey source_key_func, - void* source_key_func_target); -void container_source_collection_attach_collection (ContainerSourceCollection* self, - SourceCollection* collection); -GType video_source_collection_get_type (void) G_GNUC_CONST; -static gboolean tag_source_collection_real_holds_type_of_source (SourceCollection* base, - DataSource* source); -gint64 data_source_get_instance_id (DataSource* self); -static GeeCollection* tag_source_collection_real_get_containers_holding_source (ContainerSourceCollection* base, - DataSource* source); -GeeList* tag_source_collection_fetch_for_source (TagSourceCollection* self, - MediaSource* source); -static ContainerSource* tag_source_collection_real_convert_backlink_to_container (ContainerSourceCollection* base, - SourceBacklink* backlink); -GType tag_id_get_type (void) G_GNUC_CONST; -TagID* tag_id_dup (const TagID* self); -void tag_id_free (TagID* self); -gint64 source_backlink_get_instance_id (SourceBacklink* self); -void tag_id_init (TagID *self, - gint64 id); -Tag* tag_source_collection_fetch (TagSourceCollection* self, - TagID* tag_id); -GeeCollection* container_source_collection_get_holding_tank (ContainerSourceCollection* self); -void tag_get_tag_id (Tag* self, - TagID* result); -gchar* tag_get_path (Tag* self); -#define TAG_PATH_SEPARATOR_STRING "/" -GeeList* hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path); -gchar* hierarchical_tag_utilities_hierarchical_to_flat (const gchar* path); -void tag_promote (Tag* self); -DataSource* database_source_collection_fetch_by_key (DatabaseSourceCollection* self, - gint64 key); -gboolean tag_source_collection_exists (TagSourceCollection* self, - const gchar* name, - gboolean treat_htags_as_root); -Tag* tag_source_collection_fetch_by_name (TagSourceCollection* self, - const gchar* name, - gboolean treat_htags_as_root); -GeeCollection* tag_source_collection_get_all_names (TagSourceCollection* self); -GeeSortedSet* tag_source_collection_fetch_sorted_for_source (TagSourceCollection* self, - MediaSource* photo); -GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path); -gchar* hierarchical_tag_utilities_flat_to_hierarchical (const gchar* name); -Tag* tag_source_collection_restore_tag_from_holding_tank (TagSourceCollection* self, - const gchar* name); -gchar* data_object_get_name (DataObject* self); -gboolean container_source_collection_relink_from_holding_tank (ContainerSourceCollection* self, - ContainerSource* source); -static void tag_source_collection_real_notify_items_added (DataCollection* base, - GeeIterable* added); -void data_collection_notify_items_added (DataCollection* self, - GeeIterable* added); -static void tag_source_collection_real_notify_items_removed (DataCollection* base, - GeeIterable* removed); -Tag* tag_get_hierarchical_parent (Tag* self); -GeeList* tag_get_hierarchical_children (Tag* self); -void tag_flatten (Tag* self); -void data_collection_notify_items_removed (DataCollection* self, - GeeIterable* removed); -static void tag_source_collection_real_notify_items_altered (DataCollection* base, - GeeMap* map); -gboolean data_source_equals (DataSource* self, - DataSource* source); -void data_collection_notify_items_altered (DataCollection* self, - GeeMap* items); -static void tag_source_collection_real_notify_container_contents_added (ContainerSourceCollection* base, - ContainerSource* container, - GeeCollection* added, - gboolean relinking); -gint tag_compare_names (Tag* a, - Tag* b); -static gint _tag_compare_names_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -void container_source_collection_notify_container_contents_added (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinked); -static void tag_source_collection_real_notify_container_contents_removed (ContainerSourceCollection* base, - ContainerSource* container, - GeeCollection* removed, - gboolean unlinking); -void container_source_collection_notify_container_contents_removed (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* removed, - gboolean unlinked); -static void tag_source_collection_finalize (DataCollection * obj); -gpointer source_holding_tank_ref (gpointer instance); -void source_holding_tank_unref (gpointer instance); -GParamSpec* param_spec_source_holding_tank (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_holding_tank (GValue* value, - gpointer v_object); -void value_take_source_holding_tank (GValue* value, - gpointer v_object); -gpointer value_get_source_holding_tank (const GValue* value); -GType source_holding_tank_get_type (void) G_GNUC_CONST; -gpointer source_snapshot_ref (gpointer instance); -void source_snapshot_unref (gpointer instance); -GParamSpec* param_spec_source_snapshot (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_snapshot (GValue* value, - gpointer v_object); -void value_take_source_snapshot (GValue* value, - gpointer v_object); -gpointer value_get_source_snapshot (const GValue* value); -GType source_snapshot_get_type (void) G_GNUC_CONST; -gpointer source_proxy_ref (gpointer instance); -void source_proxy_unref (gpointer instance); -GParamSpec* param_spec_source_proxy (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_proxy (GValue* value, - gpointer v_object); -void value_take_source_proxy (GValue* value, - gpointer v_object); -gpointer value_get_source_proxy (const GValue* value); -GType source_proxy_get_type (void) G_GNUC_CONST; -GType proxyable_get_type (void) G_GNUC_CONST; -GType indexable_get_type (void) G_GNUC_CONST; -gpointer tag_row_ref (gpointer instance); -void tag_row_unref (gpointer instance); -GParamSpec* param_spec_tag_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_tag_row (GValue* value, - gpointer v_object); -void value_take_tag_row (GValue* value, - gpointer v_object); -gpointer value_get_tag_row (const GValue* value); -GType tag_row_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -#define TAG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TAG, TagPrivate)) -GType data_view_get_type (void) G_GNUC_CONST; -static void tag_on_media_views_contents_altered (Tag* self, - GeeIterable* added, - GeeIterable* removed); -static void _tag_on_media_views_contents_altered_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self); -static void tag_on_sources_destroyed (Tag* self, - GeeCollection* sources); -static void _tag_on_sources_destroyed_source_collection_items_destroyed (SourceCollection* _sender, - GeeCollection* destroyed, - gpointer self); -#define TAG_TAG_LIST_SEPARATOR_STRING ", " -static Tag* tag_new (TagRow* row, - gint64 object_id); -static Tag* tag_construct (GType object_type, - TagRow* row, - gint64 object_id); -DataSource* data_source_construct (GType object_type, - gint64 object_id); -gchar* tag_prep_tag_name (const gchar* name); -GType thumbnail_view_get_type (void) G_GNUC_CONST; -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -MediaSource* media_collection_registry_fetch_media (MediaCollectionRegistry* self, - const gchar* source_id); -ThumbnailView* thumbnail_view_new (ThumbnailSource* source); -ThumbnailView* thumbnail_view_construct (GType object_type, - ThumbnailSource* source); -ViewCollection* view_collection_new (const gchar* name); -ViewCollection* view_collection_construct (GType object_type, - const gchar* name); -GeeCollection* data_collection_add_many (DataCollection* self, - GeeCollection* objects, - ProgressMonitor monitor, - void* monitor_target); -void container_source_collection_notify_container_contents_altered (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinked, - GeeCollection* removed, - gboolean unlinked); -static void tag_update_indexable_keywords (Tag* self); -void tag_init (ProgressMonitor monitor, - void* monitor_target); -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType tag_table_get_type (void) G_GNUC_CONST; -TagTable* tag_table_get_instance (void); -GQuark database_error_quark (void); -GeeList* tag_table_get_all_rows (TagTable* self, - GError** error); -void app_window_database_error (GError* err); -void tag_table_remove (TagTable* self, - TagID* tag_id, - GError** error); -#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1) -gboolean container_source_has_links (ContainerSource* self); -void data_source_rehydrate_backlinks (DataSource* self, - SourceCollection* unlinked_from, - const gchar* dehydrated); -GeeCollection* tag_get_sources (Tag* self); -gchar* tag_get_user_visible_name (Tag* self); -void tag_attach_many (Tag* self, - GeeCollection* sources); -GeeMultiMap* tag_detach_many (Tag* self, - GeeCollection* sources); -gboolean data_source_destroy_orphan (DataSource* self, - gboolean delete_backing); -gint tag_get_sources_count (Tag* self); -void container_source_collection_init_add_many_unlinked (ContainerSourceCollection* self, - GeeCollection* unlinked); -void tag_terminate (void); -gint string_precollated_compare (const gchar* astr, - const gchar* akey, - const gchar* bstr, - const gchar* bkey); -gchar* tag_get_name_collation_key (Tag* self); -gint tag_compare_user_visible_names (Tag* a, - Tag* b); -guint string_collated_hash (void* ptr); -gboolean string_collated_equals (void* a, - void* b); -Tag* tag_for_path (const gchar* name); -TagRow* tag_table_add (TagTable* self, - const gchar* name, - GError** error); -gboolean data_collection_add (DataCollection* self, - DataObject* object); -GeeCollection* tag_get_terminal_tags (GeeCollection* tags); -GeeList* tag_make_user_visible_tag_list (GeeCollection* tags); -static gint _tag_compare_user_visible_names_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -gchar* tag_make_tag_markup_string (GeeList* tags, - gint highlight_index); -gchar* guarded_markup_escape_text (const gchar* plain); -GType prepare_input_text_options_get_type (void) G_GNUC_CONST; -gchar* prepare_input_text (const gchar* text, - PrepareInputTextOptions options, - gint dest_length); -#define DEFAULT_USER_TEXT_INPUT_LENGTH 1024 -gchar** tag_prep_tag_names (gchar** names, - int names_length1, - int* result_length1); -static void _vala_array_add127 (gchar** * array, - int* length, - int* size, - gchar* value); -static void tag_set_raw_flat_name (Tag* self, - const gchar* name); -void tag_table_rename (TagTable* self, - TagID* tag_id, - const gchar* new_name, - GError** error); -void data_object_notify_altered (DataObject* self, - Alteration* alteration); -Alteration* alteration_new_from_list (const gchar* list); -Alteration* alteration_construct_from_list (GType object_type, - const gchar* list); -static void tag_set_raw_path (Tag* self, - const gchar* path, - gboolean suppress_notify); -static gchar* tag_real_get_typename (DataSource* base); -static gint64 tag_real_get_instance_id (DataSource* base); -static gchar* tag_real_get_name (DataObject* base); -gchar* hierarchical_tag_utilities_get_basename (const gchar* in_path); -gchar* tag_get_searchable_name (Tag* self); -gchar* string_remove_diacritics (const gchar* istring); -gint tag_get_attachment_count (Tag* self, - MediaSource* source); -gboolean tag_contains (Tag* self, - MediaSource* source); -static gchar* tag_get_next_untitled_tag_name (const gchar* _prefix); -Tag* tag_create_new_child (Tag* self); -Tag* tag_create_new_root (void); -static gchar* tag_real_to_string (DataObject* base); -gint data_collection_get_count (DataCollection* self); -static gboolean tag_real_equals (DataSource* base, - DataSource* source); -static SourceSnapshot* tag_real_save_snapshot (DataSource* base); -static TagTagSnapshot* tag_tag_snapshot_new (Tag* tag); -static TagTagSnapshot* tag_tag_snapshot_construct (GType object_type, - Tag* tag); -static GType tag_tag_snapshot_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static SourceProxy* tag_real_get_proxy (Proxyable* base); -static TagTagProxy* tag_tag_proxy_new (Tag* tag); -static TagTagProxy* tag_tag_proxy_construct (GType object_type, - Tag* tag); -static GType tag_tag_proxy_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -Tag* tag_reconstitute (gint64 object_id, - TagRow* row); -void tag_table_create_from_row (TagTable* self, - TagRow* row, - TagID* result, - GError** error); -gchar* data_object_to_string (DataObject* self); -static gboolean tag_real_has_links (ContainerSource* base); -gboolean source_collection_has_backlink (SourceCollection* self, - SourceBacklink* backlink); -SourceBacklink* container_source_get_backlink (ContainerSource* self); -static SourceBacklink* tag_real_get_backlink (ContainerSource* base); -SourceBacklink* source_backlink_new_from_source (DataSource* source); -SourceBacklink* source_backlink_construct_from_source (GType object_type, - DataSource* source); -static void tag_real_break_link (ContainerSource* base, - DataSource* source); -GeeList* tag_detach (Tag* self, - MediaSource* source); -static void tag_real_break_link_many (ContainerSource* base, - GeeCollection* sources); -static void tag_real_establish_link (ContainerSource* base, - DataSource* source); -void tag_attach (Tag* self, - MediaSource* source); -static void tag_real_establish_link_many (ContainerSource* base, - GeeCollection* sources); -gchar* indexable_prepare_indexable_string (const gchar* str); -static const gchar* tag_real_get_indexable_keywords (Indexable* base); -gboolean view_collection_has_view_for_source (ViewCollection* self, - DataSource* source); -DataView* view_collection_get_view_for_source (ViewCollection* self, - DataSource* source); -void data_collection_remove_marked (DataCollection* self, - Marker* m); -Marker* data_collection_mark (DataCollection* self, - DataObject* object); -Marker* data_collection_start_marking (DataCollection* self); -void marker_mark (Marker* self, - DataObject* object); -gboolean tag_rename (Tag* self, - const gchar* name); -GeeCollection* view_collection_get_sources (ViewCollection* self); -void tag_mirror_sources (Tag* self, - ViewCollection* view, - CreateView mirroring_ctor, - void* mirroring_ctor_target); -void view_collection_mirror (ViewCollection* self, - ViewCollection* to_mirror, - CreateView mirroring_ctor, - void* mirroring_ctor_target, - CreateViewPredicate should_mirror, - void* should_mirror_target); -DataSource* data_view_get_source (DataView* self); -gchar* data_source_get_source_id (DataSource* self); -void tag_table_set_tagged_sources (TagTable* self, - TagID* tag_id, - GeeCollection* source_ids, - GError** error); -static void tag_real_destroy (DataSource* base); -void data_collection_clear (DataCollection* self); -void data_source_destroy (DataSource* self); -#define TAG_TAG_SNAPSHOT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TAG_TYPE_TAG_SNAPSHOT, TagTagSnapshotPrivate)) -static void tag_tag_snapshot_on_source_destroyed (TagTagSnapshot* self, - DataSource* source); -static void _tag_tag_snapshot_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self); -SourceSnapshot* source_snapshot_construct (GType object_type); -static TagRow* tag_tag_snapshot_get_row (TagTagSnapshot* self); -static void tag_tag_snapshot_real_notify_broken (SourceSnapshot* base); -TagRow* tag_row_new (void); -TagRow* tag_row_construct (GType object_type); -void source_snapshot_notify_broken (SourceSnapshot* self); -static void tag_tag_snapshot_finalize (SourceSnapshot * obj); -SourceProxy* source_proxy_construct (GType object_type, - DataSource* source); -static DataSource* tag_tag_proxy_real_reconstitute (SourceProxy* base, - gint64 object_id, - SourceSnapshot* snapshot); -static void tag_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static void -_tag_source_collection_on_photo_source_reimported_library_photo_source_collection_source_reimported (LibraryPhotoSourceCollection* _sender, - LibraryPhoto* photo, - PhotoMetadata* metadata, - gpointer self) -{ -#line 26 "/home/jens/Source/shotwell/src/Tag.vala" - tag_source_collection_on_photo_source_reimported ((TagSourceCollection*) self, photo, metadata); -#line 1229 "Tag.c" -} - - -static guint -_tag_hash_name_string_gee_hash_data_func (gconstpointer v, - gpointer self) -{ - guint result; - result = tag_hash_name_string ((const gchar*) v); -#line 8 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 1241 "Tag.c" -} - - -static gboolean -_tag_equal_name_strings_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gboolean result; - result = tag_equal_name_strings ((const gchar*) a, (const gchar*) b); -#line 8 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 1254 "Tag.c" -} - - -static gint64 -_tag_source_collection_get_tag_key_get_source_database_key (DataSource* source, - gpointer self) -{ - gint64 result; - result = tag_source_collection_get_tag_key (source); -#line 16 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 1266 "Tag.c" -} - - -TagSourceCollection* -tag_source_collection_construct (GType object_type) -{ - TagSourceCollection* self = NULL; - LibraryPhotoSourceCollection* _tmp0_; - VideoSourceCollection* _tmp1_; - LibraryPhotoSourceCollection* _tmp2_; -#line 16 "/home/jens/Source/shotwell/src/Tag.vala" - self = (TagSourceCollection*) container_source_collection_construct (object_type, TAG_TYPENAME, "TagSourceCollection", _tag_source_collection_get_tag_key_get_source_database_key, NULL); -#line 18 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = library_photo_global; -#line 18 "/home/jens/Source/shotwell/src/Tag.vala" - container_source_collection_attach_collection (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection)); -#line 19 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = video_global; -#line 19 "/home/jens/Source/shotwell/src/Tag.vala" - container_source_collection_attach_collection (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_COLLECTION, SourceCollection)); -#line 22 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = library_photo_global; -#line 22 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_connect (_tmp2_, "source-reimported", (GCallback) _tag_source_collection_on_photo_source_reimported_library_photo_source_collection_source_reimported, self); -#line 15 "/home/jens/Source/shotwell/src/Tag.vala" - return self; -#line 1293 "Tag.c" -} - - -TagSourceCollection* -tag_source_collection_new (void) -{ -#line 15 "/home/jens/Source/shotwell/src/Tag.vala" - return tag_source_collection_construct (TYPE_TAG_SOURCE_COLLECTION); -#line 1302 "Tag.c" -} - - -static gboolean -tag_source_collection_real_holds_type_of_source (SourceCollection* base, - DataSource* source) -{ - TagSourceCollection * self; - gboolean result = FALSE; -#line 29 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection); -#line 29 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 30 "/home/jens/Source/shotwell/src/Tag.vala" - result = G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_TAG); -#line 30 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 1320 "Tag.c" -} - - -static gint64 -tag_source_collection_get_tag_key (DataSource* source) -{ - gint64 result = 0LL; -#line 33 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), 0LL); -#line 34 "/home/jens/Source/shotwell/src/Tag.vala" - result = data_source_get_instance_id (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TAG, Tag), TYPE_DATA_SOURCE, DataSource)); -#line 34 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 1334 "Tag.c" -} - - -static GeeCollection* -tag_source_collection_real_get_containers_holding_source (ContainerSourceCollection* base, - DataSource* source) -{ - TagSourceCollection * self; - GeeCollection* result = NULL; - GeeList* _tmp0_; -#line 37 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection); -#line 37 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 38 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_source_collection_fetch_for_source (self, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource)); -#line 38 "/home/jens/Source/shotwell/src/Tag.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 38 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 1355 "Tag.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 48 "/home/jens/Source/shotwell/src/Tag.vala" - return self ? g_object_ref (self) : NULL; -#line 1364 "Tag.c" -} - - -static ContainerSource* -tag_source_collection_real_convert_backlink_to_container (ContainerSourceCollection* base, - SourceBacklink* backlink) -{ - TagSourceCollection * self; - ContainerSource* result = NULL; - TagID tag_id = {0}; - gint64 _tmp0_; - gint64 _tmp1_; - Tag* _result_ = NULL; - Tag* tag = NULL; - TagID _tmp2_; - Tag* _tmp3_; - Tag* _tmp4_; - Tag* _tmp23_; -#line 41 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection); -#line 41 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_SOURCE_BACKLINK (backlink), NULL); -#line 42 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = source_backlink_get_instance_id (backlink); -#line 42 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 42 "/home/jens/Source/shotwell/src/Tag.vala" - tag_id_init (&tag_id, _tmp1_); -#line 43 "/home/jens/Source/shotwell/src/Tag.vala" - _result_ = NULL; -#line 46 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = tag_id; -#line 46 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = tag_source_collection_fetch (self, &_tmp2_); -#line 46 "/home/jens/Source/shotwell/src/Tag.vala" - tag = _tmp3_; -#line 47 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = tag; -#line 47 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp4_ != NULL) { -#line 1405 "Tag.c" - Tag* _tmp5_; - Tag* _tmp6_; -#line 48 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = tag; -#line 48 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = _g_object_ref0 (_tmp5_); -#line 48 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_result_); -#line 48 "/home/jens/Source/shotwell/src/Tag.vala" - _result_ = _tmp6_; -#line 1416 "Tag.c" - } else { - { - GeeIterator* _container_it = NULL; - GeeCollection* _tmp7_; - GeeCollection* _tmp8_; - GeeIterator* _tmp9_; - GeeIterator* _tmp10_; -#line 51 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = container_source_collection_get_holding_tank (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)); -#line 51 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = _tmp7_; -#line 51 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 51 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = _tmp9_; -#line 51 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp8_); -#line 51 "/home/jens/Source/shotwell/src/Tag.vala" - _container_it = _tmp10_; -#line 51 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 1438 "Tag.c" - GeeIterator* _tmp11_; - ContainerSource* container = NULL; - GeeIterator* _tmp12_; - gpointer _tmp13_; - ContainerSource* _tmp14_; - Tag* _tmp15_; - Tag* _tmp16_; - TagID _tmp17_ = {0}; - gint64 _tmp18_; - TagID _tmp19_; - gint64 _tmp20_; -#line 51 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = _container_it; -#line 51 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp11_)) { -#line 51 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 1456 "Tag.c" - } -#line 51 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = _container_it; -#line 51 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = gee_iterator_get (_tmp12_); -#line 51 "/home/jens/Source/shotwell/src/Tag.vala" - container = (ContainerSource*) _tmp13_; -#line 52 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = container; -#line 52 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_TAG, Tag)); -#line 52 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 52 "/home/jens/Source/shotwell/src/Tag.vala" - tag = _tmp15_; -#line 53 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = tag; -#line 53 "/home/jens/Source/shotwell/src/Tag.vala" - tag_get_tag_id (_tmp16_, &_tmp17_); -#line 53 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = _tmp17_.id; -#line 53 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp19_ = tag_id; -#line 53 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp20_ = _tmp19_.id; -#line 53 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp18_ == _tmp20_) { -#line 1484 "Tag.c" - Tag* _tmp21_; - Tag* _tmp22_; -#line 54 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp21_ = tag; -#line 54 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp22_ = _g_object_ref0 (_tmp21_); -#line 54 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_result_); -#line 54 "/home/jens/Source/shotwell/src/Tag.vala" - _result_ = _tmp22_; -#line 55 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (container); -#line 55 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 1499 "Tag.c" - } -#line 51 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (container); -#line 1503 "Tag.c" - } -#line 51 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_container_it); -#line 1507 "Tag.c" - } - } -#line 63 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp23_ = _result_; -#line 63 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp23_ != NULL) { -#line 1514 "Tag.c" - gboolean _tmp24_ = FALSE; - Tag* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; - gboolean _tmp28_; -#line 64 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp25_ = _result_; -#line 64 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp26_ = tag_get_path (_tmp25_); -#line 64 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp27_ = _tmp26_; -#line 64 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp28_ = g_str_has_prefix (_tmp27_, TAG_PATH_SEPARATOR_STRING); -#line 64 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp27_); -#line 64 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp28_) { -#line 1532 "Tag.c" - Tag* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - GeeList* _tmp32_; - GeeList* _tmp33_; - gint _tmp34_; - gint _tmp35_; -#line 65 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp29_ = _result_; -#line 65 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp30_ = tag_get_path (_tmp29_); -#line 65 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp31_ = _tmp30_; -#line 65 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp32_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp31_); -#line 65 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp33_ = _tmp32_; -#line 65 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp34_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 65 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp35_ = _tmp34_; -#line 65 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp24_ = _tmp35_ > 0; -#line 65 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp33_); -#line 65 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp31_); -#line 1560 "Tag.c" - } else { -#line 64 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp24_ = FALSE; -#line 1564 "Tag.c" - } -#line 64 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp24_) { -#line 1568 "Tag.c" - gchar* top_level_with_prefix_path = NULL; - Tag* _tmp36_; - gchar* _tmp37_; - gchar* _tmp38_; - GeeList* _tmp39_; - GeeList* _tmp40_; - gpointer _tmp41_; - gchar* _tmp42_; - gchar* top_level_no_prefix_path = NULL; - const gchar* _tmp43_; - gchar* _tmp44_; -#line 66 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp36_ = _result_; -#line 66 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp37_ = tag_get_path (_tmp36_); -#line 66 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp38_ = _tmp37_; -#line 66 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp39_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp38_); -#line 66 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp40_ = _tmp39_; -#line 66 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp41_ = gee_list_get (_tmp40_, 0); -#line 66 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp42_ = (gchar*) _tmp41_; -#line 66 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp40_); -#line 66 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp38_); -#line 66 "/home/jens/Source/shotwell/src/Tag.vala" - top_level_with_prefix_path = _tmp42_; -#line 68 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp43_ = top_level_with_prefix_path; -#line 68 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp44_ = hierarchical_tag_utilities_hierarchical_to_flat (_tmp43_); -#line 68 "/home/jens/Source/shotwell/src/Tag.vala" - top_level_no_prefix_path = _tmp44_; -#line 1606 "Tag.c" - { - GeeIterator* _container_it = NULL; - GeeCollection* _tmp45_; - GeeCollection* _tmp46_; - GeeIterator* _tmp47_; - GeeIterator* _tmp48_; -#line 71 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp45_ = container_source_collection_get_holding_tank (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)); -#line 71 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp46_ = _tmp45_; -#line 71 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp47_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 71 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp48_ = _tmp47_; -#line 71 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp46_); -#line 71 "/home/jens/Source/shotwell/src/Tag.vala" - _container_it = _tmp48_; -#line 71 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 1627 "Tag.c" - GeeIterator* _tmp49_; - ContainerSource* container = NULL; - GeeIterator* _tmp50_; - gpointer _tmp51_; - Tag* parent_candidate = NULL; - ContainerSource* _tmp52_; - Tag* _tmp53_; - Tag* _tmp54_; - gchar* _tmp55_; - gchar* _tmp56_; - const gchar* _tmp57_; - gboolean _tmp58_; -#line 71 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp49_ = _container_it; -#line 71 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp49_)) { -#line 71 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 1646 "Tag.c" - } -#line 71 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp50_ = _container_it; -#line 71 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp51_ = gee_iterator_get (_tmp50_); -#line 71 "/home/jens/Source/shotwell/src/Tag.vala" - container = (ContainerSource*) _tmp51_; -#line 72 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp52_ = container; -#line 72 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp53_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, TYPE_TAG, Tag)); -#line 72 "/home/jens/Source/shotwell/src/Tag.vala" - parent_candidate = _tmp53_; -#line 73 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp54_ = parent_candidate; -#line 73 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp55_ = tag_get_path (_tmp54_); -#line 73 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp56_ = _tmp55_; -#line 73 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp57_ = top_level_no_prefix_path; -#line 73 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp58_ = g_strcmp0 (_tmp56_, _tmp57_) == 0; -#line 73 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp56_); -#line 73 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp58_) { -#line 1674 "Tag.c" - Tag* _tmp59_; -#line 74 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp59_ = parent_candidate; -#line 74 "/home/jens/Source/shotwell/src/Tag.vala" - tag_promote (_tmp59_); -#line 1680 "Tag.c" - } -#line 71 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (parent_candidate); -#line 71 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (container); -#line 1686 "Tag.c" - } -#line 71 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_container_it); -#line 1690 "Tag.c" - } -#line 64 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (top_level_no_prefix_path); -#line 64 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (top_level_with_prefix_path); -#line 1696 "Tag.c" - } - } -#line 79 "/home/jens/Source/shotwell/src/Tag.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_result_, TYPE_CONTAINER_SOURCE, ContainerSource); -#line 79 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 79 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 1705 "Tag.c" -} - - -Tag* -tag_source_collection_fetch (TagSourceCollection* self, - TagID* tag_id) -{ - Tag* result = NULL; - TagID _tmp0_; - gint64 _tmp1_; - DataSource* _tmp2_; -#line 82 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG_SOURCE_COLLECTION (self), NULL); -#line 82 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (tag_id != NULL, NULL); -#line 83 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = *tag_id; -#line 83 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_.id; -#line 83 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = database_source_collection_fetch_by_key (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), _tmp1_); -#line 83 "/home/jens/Source/shotwell/src/Tag.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_TAG, Tag); -#line 83 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 1731 "Tag.c" -} - - -gboolean -tag_source_collection_exists (TagSourceCollection* self, - const gchar* name, - gboolean treat_htags_as_root) -{ - gboolean result = FALSE; - Tag* _tmp0_; - Tag* _tmp1_; - gboolean _tmp2_; -#line 86 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG_SOURCE_COLLECTION (self), FALSE); -#line 86 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (name != NULL, FALSE); -#line 87 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_source_collection_fetch_by_name (self, name, treat_htags_as_root); -#line 87 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 87 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = _tmp1_ != NULL; -#line 87 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp1_); -#line 87 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp2_; -#line 87 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 1760 "Tag.c" -} - - -GeeCollection* -tag_source_collection_get_all_names (TagSourceCollection* self) -{ - GeeCollection* result = NULL; - GeeHashMap* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; -#line 90 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG_SOURCE_COLLECTION (self), NULL); -#line 91 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = self->priv->name_map; -#line 91 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 91 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = _tmp1_; -#line 91 "/home/jens/Source/shotwell/src/Tag.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 91 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 1783 "Tag.c" -} - - -GeeList* -tag_source_collection_fetch_for_source (TagSourceCollection* self, - MediaSource* source) -{ - GeeList* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 98 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG_SOURCE_COLLECTION (self), NULL); -#line 98 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL); -#line 99 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = self->priv->source_map; -#line 99 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), source); -#line 99 "/home/jens/Source/shotwell/src/Tag.vala" - result = (GeeList*) _tmp1_; -#line 99 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 1806 "Tag.c" -} - - -GeeSortedSet* -tag_source_collection_fetch_sorted_for_source (TagSourceCollection* self, - MediaSource* photo) -{ - GeeSortedSet* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 106 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG_SOURCE_COLLECTION (self), NULL); -#line 106 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (photo), NULL); -#line 107 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = self->priv->sorted_source_map; -#line 107 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), photo); -#line 107 "/home/jens/Source/shotwell/src/Tag.vala" - result = (GeeSortedSet*) _tmp1_; -#line 107 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 1829 "Tag.c" -} - - -Tag* -tag_source_collection_fetch_by_name (TagSourceCollection* self, - const gchar* name, - gboolean treat_htags_as_root) -{ - Tag* result = NULL; - GeeHashMap* _tmp17_; - gpointer _tmp18_; -#line 112 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG_SOURCE_COLLECTION (self), NULL); -#line 112 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 113 "/home/jens/Source/shotwell/src/Tag.vala" - if (treat_htags_as_root) { -#line 114 "/home/jens/Source/shotwell/src/Tag.vala" - if (g_str_has_prefix (name, TAG_PATH_SEPARATOR_STRING)) { -#line 1849 "Tag.c" - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _tmp2_; - gint _tmp3_; - gboolean _tmp4_; -#line 115 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = hierarchical_tag_utilities_enumerate_path_components (name); -#line 115 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 115 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 115 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = _tmp2_; -#line 115 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = _tmp3_ == 1; -#line 115 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp1_); -#line 115 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp4_) { -#line 1869 "Tag.c" - Tag* tag = NULL; - GeeHashMap* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gpointer _tmp8_; - Tag* _tmp9_; - Tag* _tmp10_; -#line 116 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = self->priv->name_map; -#line 116 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = hierarchical_tag_utilities_hierarchical_to_flat (name); -#line 116 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = _tmp6_; -#line 116 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp7_); -#line 116 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = (Tag*) _tmp8_; -#line 116 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp7_); -#line 116 "/home/jens/Source/shotwell/src/Tag.vala" - tag = _tmp9_; -#line 117 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = tag; -#line 117 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp10_ != NULL) { -#line 118 "/home/jens/Source/shotwell/src/Tag.vala" - result = tag; -#line 118 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 1899 "Tag.c" - } -#line 115 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 1903 "Tag.c" - } - } else { - Tag* tag = NULL; - GeeHashMap* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gpointer _tmp14_; - Tag* _tmp15_; - Tag* _tmp16_; -#line 121 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = self->priv->name_map; -#line 121 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = hierarchical_tag_utilities_flat_to_hierarchical (name); -#line 121 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = _tmp12_; -#line 121 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_); -#line 121 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = (Tag*) _tmp14_; -#line 121 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp13_); -#line 121 "/home/jens/Source/shotwell/src/Tag.vala" - tag = _tmp15_; -#line 122 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = tag; -#line 122 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp16_ != NULL) { -#line 123 "/home/jens/Source/shotwell/src/Tag.vala" - result = tag; -#line 123 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 1935 "Tag.c" - } -#line 114 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 1939 "Tag.c" - } - } -#line 127 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = self->priv->name_map; -#line 127 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name); -#line 127 "/home/jens/Source/shotwell/src/Tag.vala" - result = (Tag*) _tmp18_; -#line 127 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 1950 "Tag.c" -} - - -Tag* -tag_source_collection_restore_tag_from_holding_tank (TagSourceCollection* self, - const gchar* name) -{ - Tag* result = NULL; - Tag* found = NULL; - Tag* _tmp15_; -#line 130 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG_SOURCE_COLLECTION (self), NULL); -#line 130 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 131 "/home/jens/Source/shotwell/src/Tag.vala" - found = NULL; -#line 1967 "Tag.c" - { - GeeIterator* _container_it = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 132 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = container_source_collection_get_holding_tank (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)); -#line 132 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 132 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 132 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = _tmp2_; -#line 132 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp1_); -#line 132 "/home/jens/Source/shotwell/src/Tag.vala" - _container_it = _tmp3_; -#line 132 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 1988 "Tag.c" - GeeIterator* _tmp4_; - ContainerSource* container = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - Tag* tag = NULL; - ContainerSource* _tmp7_; - Tag* _tmp8_; - Tag* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gboolean _tmp12_; -#line 132 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = _container_it; -#line 132 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 132 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 2006 "Tag.c" - } -#line 132 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _container_it; -#line 132 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 132 "/home/jens/Source/shotwell/src/Tag.vala" - container = (ContainerSource*) _tmp6_; -#line 133 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = container; -#line 133 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_TAG, Tag)); -#line 133 "/home/jens/Source/shotwell/src/Tag.vala" - tag = _tmp8_; -#line 134 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = tag; -#line 134 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject)); -#line 134 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = _tmp10_; -#line 134 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = g_strcmp0 (_tmp11_, name) == 0; -#line 134 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp11_); -#line 134 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp12_) { -#line 2032 "Tag.c" - Tag* _tmp13_; - Tag* _tmp14_; -#line 135 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = tag; -#line 135 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = _g_object_ref0 (_tmp13_); -#line 135 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (found); -#line 135 "/home/jens/Source/shotwell/src/Tag.vala" - found = _tmp14_; -#line 137 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 137 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (container); -#line 137 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 2049 "Tag.c" - } -#line 132 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 132 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (container); -#line 2055 "Tag.c" - } -#line 132 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_container_it); -#line 2059 "Tag.c" - } -#line 141 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = found; -#line 141 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp15_ != NULL) { -#line 2065 "Tag.c" - gboolean relinked = FALSE; - Tag* _tmp16_; - gboolean _tmp17_; -#line 142 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = found; -#line 142 "/home/jens/Source/shotwell/src/Tag.vala" - relinked = container_source_collection_relink_from_holding_tank (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_CONTAINER_SOURCE, ContainerSource)); -#line 143 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = relinked; -#line 143 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp17_, "relinked"); -#line 2077 "Tag.c" - } -#line 146 "/home/jens/Source/shotwell/src/Tag.vala" - result = found; -#line 146 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 2083 "Tag.c" -} - - -static void -tag_source_collection_real_notify_items_added (DataCollection* base, - GeeIterable* added) -{ - TagSourceCollection * self; -#line 149 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection); -#line 149 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (GEE_IS_ITERABLE (added)); -#line 2096 "Tag.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 150 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = gee_iterable_iterator (added); -#line 150 "/home/jens/Source/shotwell/src/Tag.vala" - _object_it = _tmp0_; -#line 150 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 2106 "Tag.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - Tag* tag = NULL; - DataObject* _tmp4_; - Tag* _tmp5_; - GeeHashMap* _tmp6_; - Tag* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - GeeHashMap* _tmp10_; - Tag* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - Tag* _tmp14_; -#line 150 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _object_it; -#line 150 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 150 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 2129 "Tag.c" - } -#line 150 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = _object_it; -#line 150 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 150 "/home/jens/Source/shotwell/src/Tag.vala" - object = (DataObject*) _tmp3_; -#line 151 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = object; -#line 151 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_TAG, Tag)); -#line 151 "/home/jens/Source/shotwell/src/Tag.vala" - tag = _tmp5_; -#line 153 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = self->priv->name_map; -#line 153 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = tag; -#line 153 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_OBJECT, DataObject)); -#line 153 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = _tmp8_; -#line 153 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_), "!name_map.has_key(tag.get_name())"); -#line 153 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp9_); -#line 154 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = self->priv->name_map; -#line 154 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = tag; -#line 154 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject)); -#line 154 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = _tmp12_; -#line 154 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = tag; -#line 154 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_, _tmp14_); -#line 154 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp13_); -#line 150 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 150 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (object); -#line 2173 "Tag.c" - } -#line 150 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_object_it); -#line 2177 "Tag.c" - } -#line 157 "/home/jens/Source/shotwell/src/Tag.vala" - DATA_COLLECTION_CLASS (tag_source_collection_parent_class)->notify_items_added (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), TYPE_DATA_COLLECTION, DataCollection), added); -#line 2181 "Tag.c" -} - - -static void -tag_source_collection_real_notify_items_removed (DataCollection* base, - GeeIterable* removed) -{ - TagSourceCollection * self; -#line 160 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection); -#line 160 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (GEE_IS_ITERABLE (removed)); -#line 2194 "Tag.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 161 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = gee_iterable_iterator (removed); -#line 161 "/home/jens/Source/shotwell/src/Tag.vala" - _object_it = _tmp0_; -#line 161 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 2204 "Tag.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - Tag* tag = NULL; - DataObject* _tmp4_; - Tag* _tmp5_; - gboolean unset = FALSE; - GeeHashMap* _tmp6_; - Tag* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gboolean _tmp10_; - gboolean _tmp11_; - gboolean _tmp12_; - Tag* parent = NULL; - Tag* _tmp13_; - Tag* _tmp14_; - gboolean _tmp15_ = FALSE; - Tag* _tmp16_; -#line 161 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _object_it; -#line 161 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 161 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 2231 "Tag.c" - } -#line 161 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = _object_it; -#line 161 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 161 "/home/jens/Source/shotwell/src/Tag.vala" - object = (DataObject*) _tmp3_; -#line 162 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = object; -#line 162 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_TAG, Tag)); -#line 162 "/home/jens/Source/shotwell/src/Tag.vala" - tag = _tmp5_; -#line 164 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = self->priv->name_map; -#line 164 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = tag; -#line 164 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_OBJECT, DataObject)); -#line 164 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = _tmp8_; -#line 164 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, NULL); -#line 164 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = _tmp10_; -#line 164 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp9_); -#line 164 "/home/jens/Source/shotwell/src/Tag.vala" - unset = _tmp11_; -#line 165 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = unset; -#line 165 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp12_, "unset"); -#line 169 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = tag; -#line 169 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = tag_get_hierarchical_parent (_tmp13_); -#line 169 "/home/jens/Source/shotwell/src/Tag.vala" - parent = _tmp14_; -#line 170 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = parent; -#line 170 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp16_ != NULL) { -#line 2275 "Tag.c" - Tag* _tmp17_; - Tag* _tmp18_; - Tag* _tmp19_; -#line 170 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = parent; -#line 170 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = tag_get_hierarchical_parent (_tmp17_); -#line 170 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp19_ = _tmp18_; -#line 170 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = _tmp19_ == NULL; -#line 170 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp19_); -#line 2289 "Tag.c" - } else { -#line 170 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = FALSE; -#line 2293 "Tag.c" - } -#line 170 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp15_) { -#line 2297 "Tag.c" - Tag* _tmp20_; - GeeList* _tmp21_; - GeeList* _tmp22_; - gint _tmp23_; - gint _tmp24_; - gboolean _tmp25_; -#line 171 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp20_ = parent; -#line 171 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp21_ = tag_get_hierarchical_children (_tmp20_); -#line 171 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp22_ = _tmp21_; -#line 171 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp23_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 171 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp24_ = _tmp23_; -#line 171 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp25_ = _tmp24_ == 0; -#line 171 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp22_); -#line 171 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp25_) { -#line 2320 "Tag.c" - Tag* _tmp26_; -#line 172 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp26_ = parent; -#line 172 "/home/jens/Source/shotwell/src/Tag.vala" - tag_flatten (_tmp26_); -#line 2326 "Tag.c" - } - } -#line 161 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (parent); -#line 161 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 161 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (object); -#line 2335 "Tag.c" - } -#line 161 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_object_it); -#line 2339 "Tag.c" - } -#line 176 "/home/jens/Source/shotwell/src/Tag.vala" - DATA_COLLECTION_CLASS (tag_source_collection_parent_class)->notify_items_removed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), TYPE_DATA_COLLECTION, DataCollection), removed); -#line 2343 "Tag.c" -} - - -static void -tag_source_collection_real_notify_items_altered (DataCollection* base, - GeeMap* map) -{ - TagSourceCollection * self; -#line 179 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection); -#line 179 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (GEE_IS_MAP (map)); -#line 2356 "Tag.c" - { - GeeIterator* _object_it = NULL; - GeeSet* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = gee_map_get_keys (map); -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = _tmp1_; -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = _tmp3_; -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp2_); -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - _object_it = _tmp4_; -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 2380 "Tag.c" - GeeIterator* _tmp5_; - DataObject* object = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - Tag* tag = NULL; - DataObject* _tmp8_; - Tag* _tmp9_; - gchar* old_name = NULL; - GeeMapIterator* iter = NULL; - GeeHashMap* _tmp10_; - GeeMapIterator* _tmp11_; - const gchar* _tmp20_; - Tag* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - const gchar* _tmp24_; - gboolean _tmp25_; -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _object_it; -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 2404 "Tag.c" - } -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = _object_it; -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - object = (DataObject*) _tmp7_; -#line 181 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = object; -#line 181 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_TAG, Tag)); -#line 181 "/home/jens/Source/shotwell/src/Tag.vala" - tag = _tmp9_; -#line 183 "/home/jens/Source/shotwell/src/Tag.vala" - old_name = NULL; -#line 186 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = self->priv->name_map; -#line 186 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = gee_abstract_map_map_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 186 "/home/jens/Source/shotwell/src/Tag.vala" - iter = _tmp11_; -#line 187 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 2428 "Tag.c" - GeeMapIterator* _tmp12_; - GeeMapIterator* _tmp13_; - gpointer _tmp14_; - Tag* _tmp15_; - Tag* _tmp16_; - gboolean _tmp17_; - GeeMapIterator* _tmp18_; - gpointer _tmp19_; -#line 187 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = iter; -#line 187 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_map_iterator_next (_tmp12_)) { -#line 187 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 2443 "Tag.c" - } -#line 188 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = iter; -#line 188 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = gee_map_iterator_get_value (_tmp13_); -#line 188 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = (Tag*) _tmp14_; -#line 188 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = tag; -#line 188 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = !data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_SOURCE, DataSource)); -#line 188 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp15_); -#line 188 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp17_) { -#line 189 "/home/jens/Source/shotwell/src/Tag.vala" - continue; -#line 2461 "Tag.c" - } -#line 191 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = iter; -#line 191 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp19_ = gee_map_iterator_get_key (_tmp18_); -#line 191 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (old_name); -#line 191 "/home/jens/Source/shotwell/src/Tag.vala" - old_name = (gchar*) _tmp19_; -#line 193 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 2473 "Tag.c" - } -#line 196 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp20_ = old_name; -#line 196 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp20_ != NULL, "old_name != null"); -#line 198 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp21_ = tag; -#line 198 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp22_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_OBJECT, DataObject)); -#line 198 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp23_ = _tmp22_; -#line 198 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp24_ = old_name; -#line 198 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp25_ = g_strcmp0 (_tmp23_, _tmp24_) != 0; -#line 198 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp23_); -#line 198 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp25_) { -#line 2493 "Tag.c" - GeeHashMap* _tmp26_; - const gchar* _tmp27_; - GeeHashMap* _tmp28_; - Tag* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - Tag* _tmp32_; -#line 199 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp26_ = self->priv->name_map; -#line 199 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp27_ = old_name; -#line 199 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp27_, NULL); -#line 200 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp28_ = self->priv->name_map; -#line 200 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp29_ = tag; -#line 200 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp30_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_OBJECT, DataObject)); -#line 200 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp31_ = _tmp30_; -#line 200 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp32_ = tag; -#line 200 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp31_, _tmp32_); -#line 200 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp31_); -#line 2521 "Tag.c" - } -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (iter); -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (old_name); -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (object); -#line 2531 "Tag.c" - } -#line 180 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_object_it); -#line 2535 "Tag.c" - } -#line 204 "/home/jens/Source/shotwell/src/Tag.vala" - DATA_COLLECTION_CLASS (tag_source_collection_parent_class)->notify_items_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), TYPE_DATA_COLLECTION, DataCollection), map); -#line 2539 "Tag.c" -} - - -static gint -_tag_compare_names_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = tag_compare_names ((Tag*) a, (Tag*) b); -#line 224 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 2552 "Tag.c" -} - - -static void -tag_source_collection_real_notify_container_contents_added (ContainerSourceCollection* base, - ContainerSource* container, - GeeCollection* added, - gboolean relinking) -{ - TagSourceCollection * self; - Tag* tag = NULL; - Tag* _tmp0_; - GeeCollection* sources = NULL; - GeeCollection* _tmp1_; -#line 207 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection); -#line 207 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (container)); -#line 207 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (GEE_IS_COLLECTION (added)); -#line 209 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (container, TYPE_TAG, Tag)); -#line 209 "/home/jens/Source/shotwell/src/Tag.vala" - tag = _tmp0_; -#line 210 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_COLLECTION, GeeCollection)); -#line 210 "/home/jens/Source/shotwell/src/Tag.vala" - sources = _tmp1_; -#line 2581 "Tag.c" - { - GeeIterator* _source_it = NULL; - GeeCollection* _tmp2_; - GeeIterator* _tmp3_; -#line 212 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = sources; -#line 212 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 212 "/home/jens/Source/shotwell/src/Tag.vala" - _source_it = _tmp3_; -#line 212 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 2594 "Tag.c" - GeeIterator* _tmp4_; - MediaSource* source = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - GeeList* tags = NULL; - GeeHashMap* _tmp7_; - MediaSource* _tmp8_; - gpointer _tmp9_; - GeeList* _tmp10_; - gboolean is_added = FALSE; - GeeList* _tmp15_; - Tag* _tmp16_; - gboolean _tmp17_; - GeeSortedSet* sorted_tags = NULL; - GeeHashMap* _tmp18_; - MediaSource* _tmp19_; - gpointer _tmp20_; - GeeSortedSet* _tmp21_; - GeeSortedSet* _tmp26_; - Tag* _tmp27_; - gboolean _tmp28_; -#line 212 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = _source_it; -#line 212 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 212 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 2622 "Tag.c" - } -#line 212 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _source_it; -#line 212 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 212 "/home/jens/Source/shotwell/src/Tag.vala" - source = (MediaSource*) _tmp6_; -#line 213 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = self->priv->source_map; -#line 213 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = source; -#line 213 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_); -#line 213 "/home/jens/Source/shotwell/src/Tag.vala" - tags = (GeeList*) _tmp9_; -#line 214 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = tags; -#line 214 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp10_ == NULL) { -#line 2642 "Tag.c" - GeeArrayList* _tmp11_; - GeeHashMap* _tmp12_; - MediaSource* _tmp13_; - GeeList* _tmp14_; -#line 215 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 215 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tags); -#line 215 "/home/jens/Source/shotwell/src/Tag.vala" - tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_LIST, GeeList); -#line 216 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = self->priv->source_map; -#line 216 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = source; -#line 216 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = tags; -#line 216 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_, _tmp14_); -#line 2661 "Tag.c" - } -#line 219 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = tags; -#line 219 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = tag; -#line 219 "/home/jens/Source/shotwell/src/Tag.vala" - is_added = gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection), _tmp16_); -#line 220 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = is_added; -#line 220 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp17_, "is_added"); -#line 222 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = self->priv->sorted_source_map; -#line 222 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp19_ = source; -#line 222 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp20_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp19_); -#line 222 "/home/jens/Source/shotwell/src/Tag.vala" - sorted_tags = (GeeSortedSet*) _tmp20_; -#line 223 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp21_ = sorted_tags; -#line 223 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp21_ == NULL) { -#line 2685 "Tag.c" - GeeTreeSet* _tmp22_; - GeeHashMap* _tmp23_; - MediaSource* _tmp24_; - GeeSortedSet* _tmp25_; -#line 224 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp22_ = gee_tree_set_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tag_compare_names_gcompare_data_func, NULL, NULL); -#line 224 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (sorted_tags); -#line 224 "/home/jens/Source/shotwell/src/Tag.vala" - sorted_tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_SORTED_SET, GeeSortedSet); -#line 225 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp23_ = self->priv->sorted_source_map; -#line 225 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp24_ = source; -#line 225 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp25_ = sorted_tags; -#line 225 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp24_, _tmp25_); -#line 2704 "Tag.c" - } -#line 228 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp26_ = sorted_tags; -#line 228 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp27_ = tag; -#line 228 "/home/jens/Source/shotwell/src/Tag.vala" - is_added = gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection), _tmp27_); -#line 229 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp28_ = is_added; -#line 229 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp28_, "is_added"); -#line 212 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (sorted_tags); -#line 212 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tags); -#line 212 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (source); -#line 2722 "Tag.c" - } -#line 212 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_source_it); -#line 2726 "Tag.c" - } -#line 232 "/home/jens/Source/shotwell/src/Tag.vala" - CONTAINER_SOURCE_COLLECTION_CLASS (tag_source_collection_parent_class)->notify_container_contents_added (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), container, added, relinking); -#line 207 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (sources); -#line 207 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 2734 "Tag.c" -} - - -static void -tag_source_collection_real_notify_container_contents_removed (ContainerSourceCollection* base, - ContainerSource* container, - GeeCollection* removed, - gboolean unlinking) -{ - TagSourceCollection * self; - Tag* tag = NULL; - Tag* _tmp0_; - GeeCollection* sources = NULL; - GeeCollection* _tmp1_; -#line 235 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection); -#line 235 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (container)); -#line 235 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (GEE_IS_COLLECTION (removed)); -#line 237 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (container, TYPE_TAG, Tag)); -#line 237 "/home/jens/Source/shotwell/src/Tag.vala" - tag = _tmp0_; -#line 238 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_COLLECTION, GeeCollection)); -#line 238 "/home/jens/Source/shotwell/src/Tag.vala" - sources = _tmp1_; -#line 2763 "Tag.c" - { - GeeIterator* _source_it = NULL; - GeeCollection* _tmp2_; - GeeIterator* _tmp3_; -#line 240 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = sources; -#line 240 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 240 "/home/jens/Source/shotwell/src/Tag.vala" - _source_it = _tmp3_; -#line 240 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 2776 "Tag.c" - GeeIterator* _tmp4_; - MediaSource* source = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - GeeList* tags = NULL; - GeeHashMap* _tmp7_; - MediaSource* _tmp8_; - gpointer _tmp9_; - GeeList* _tmp10_; - gboolean is_removed = FALSE; - GeeList* _tmp11_; - Tag* _tmp12_; - gboolean _tmp13_; - GeeList* _tmp14_; - gint _tmp15_; - gint _tmp16_; - GeeSortedSet* sorted_tags = NULL; - GeeHashMap* _tmp19_; - MediaSource* _tmp20_; - gpointer _tmp21_; - GeeSortedSet* _tmp22_; - GeeSortedSet* _tmp23_; - Tag* _tmp24_; - gboolean _tmp25_; - GeeSortedSet* _tmp26_; - gint _tmp27_; - gint _tmp28_; -#line 240 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = _source_it; -#line 240 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 240 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 2810 "Tag.c" - } -#line 240 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _source_it; -#line 240 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 240 "/home/jens/Source/shotwell/src/Tag.vala" - source = (MediaSource*) _tmp6_; -#line 241 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = self->priv->source_map; -#line 241 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = source; -#line 241 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_); -#line 241 "/home/jens/Source/shotwell/src/Tag.vala" - tags = (GeeList*) _tmp9_; -#line 242 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = tags; -#line 242 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp10_ != NULL, "tags != null"); -#line 244 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = tags; -#line 244 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = tag; -#line 244 "/home/jens/Source/shotwell/src/Tag.vala" - is_removed = gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection), _tmp12_); -#line 245 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = is_removed; -#line 245 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp13_, "is_removed"); -#line 247 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = tags; -#line 247 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 247 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = _tmp15_; -#line 247 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp16_ == 0) { -#line 2848 "Tag.c" - GeeHashMap* _tmp17_; - MediaSource* _tmp18_; -#line 248 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = self->priv->source_map; -#line 248 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = source; -#line 248 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp18_, NULL); -#line 2857 "Tag.c" - } -#line 250 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp19_ = self->priv->sorted_source_map; -#line 250 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp20_ = source; -#line 250 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp21_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp20_); -#line 250 "/home/jens/Source/shotwell/src/Tag.vala" - sorted_tags = (GeeSortedSet*) _tmp21_; -#line 251 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp22_ = sorted_tags; -#line 251 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp22_ != NULL, "sorted_tags != null"); -#line 253 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp23_ = sorted_tags; -#line 253 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp24_ = tag; -#line 253 "/home/jens/Source/shotwell/src/Tag.vala" - is_removed = gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_COLLECTION, GeeCollection), _tmp24_); -#line 254 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp25_ = is_removed; -#line 254 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp25_, "is_removed"); -#line 256 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp26_ = sorted_tags; -#line 256 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp27_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 256 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp28_ = _tmp27_; -#line 256 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp28_ == 0) { -#line 2889 "Tag.c" - GeeHashMap* _tmp29_; - MediaSource* _tmp30_; -#line 257 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp29_ = self->priv->sorted_source_map; -#line 257 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp30_ = source; -#line 257 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp30_, NULL); -#line 2898 "Tag.c" - } -#line 240 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (sorted_tags); -#line 240 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tags); -#line 240 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (source); -#line 2906 "Tag.c" - } -#line 240 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_source_it); -#line 2910 "Tag.c" - } -#line 260 "/home/jens/Source/shotwell/src/Tag.vala" - CONTAINER_SOURCE_COLLECTION_CLASS (tag_source_collection_parent_class)->notify_container_contents_removed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), container, removed, unlinking); -#line 235 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (sources); -#line 235 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 2918 "Tag.c" -} - - -static void -tag_source_collection_on_photo_source_reimported (TagSourceCollection* self, - LibraryPhoto* photo, - PhotoMetadata* metadata) -{ -#line 263 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_TAG_SOURCE_COLLECTION (self)); -#line 263 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_LIBRARY_PHOTO (photo)); -#line 263 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 2933 "Tag.c" -} - - -static void -tag_source_collection_class_init (TagSourceCollectionClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/Tag.vala" - tag_source_collection_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/Tag.vala" - ((DataCollectionClass *) klass)->finalize = tag_source_collection_finalize; -#line 7 "/home/jens/Source/shotwell/src/Tag.vala" - g_type_class_add_private (klass, sizeof (TagSourceCollectionPrivate)); -#line 7 "/home/jens/Source/shotwell/src/Tag.vala" - ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*) (SourceCollection *, DataSource*)) tag_source_collection_real_holds_type_of_source; -#line 7 "/home/jens/Source/shotwell/src/Tag.vala" - ((ContainerSourceCollectionClass *) klass)->get_containers_holding_source = (GeeCollection* (*) (ContainerSourceCollection *, DataSource*)) tag_source_collection_real_get_containers_holding_source; -#line 7 "/home/jens/Source/shotwell/src/Tag.vala" - ((ContainerSourceCollectionClass *) klass)->convert_backlink_to_container = (ContainerSource* (*) (ContainerSourceCollection *, SourceBacklink*)) tag_source_collection_real_convert_backlink_to_container; -#line 7 "/home/jens/Source/shotwell/src/Tag.vala" - ((DataCollectionClass *) klass)->notify_items_added = (void (*) (DataCollection *, GeeIterable*)) tag_source_collection_real_notify_items_added; -#line 7 "/home/jens/Source/shotwell/src/Tag.vala" - ((DataCollectionClass *) klass)->notify_items_removed = (void (*) (DataCollection *, GeeIterable*)) tag_source_collection_real_notify_items_removed; -#line 7 "/home/jens/Source/shotwell/src/Tag.vala" - ((DataCollectionClass *) klass)->notify_items_altered = (void (*) (DataCollection *, GeeMap*)) tag_source_collection_real_notify_items_altered; -#line 7 "/home/jens/Source/shotwell/src/Tag.vala" - ((ContainerSourceCollectionClass *) klass)->notify_container_contents_added = (void (*) (ContainerSourceCollection *, ContainerSource*, GeeCollection*, gboolean)) tag_source_collection_real_notify_container_contents_added; -#line 7 "/home/jens/Source/shotwell/src/Tag.vala" - ((ContainerSourceCollectionClass *) klass)->notify_container_contents_removed = (void (*) (ContainerSourceCollection *, ContainerSource*, GeeCollection*, gboolean)) tag_source_collection_real_notify_container_contents_removed; -#line 2962 "Tag.c" -} - - -static void -tag_source_collection_instance_init (TagSourceCollection * self) -{ - GeeHashMap* _tmp0_; - GeeHashMap* _tmp1_; - GeeHashMap* _tmp2_; -#line 7 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv = TAG_SOURCE_COLLECTION_GET_PRIVATE (self); -#line 8 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tag_hash_name_string_gee_hash_data_func, NULL, NULL, _tag_equal_name_strings_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); -#line 8 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->name_map = _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = gee_hash_map_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, GEE_TYPE_LIST, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 10 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->source_map = _tmp1_; -#line 12 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = gee_hash_map_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, GEE_TYPE_SORTED_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 12 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->sorted_source_map = _tmp2_; -#line 2986 "Tag.c" -} - - -static void -tag_source_collection_finalize (DataCollection * obj) -{ - TagSourceCollection * self; - LibraryPhotoSourceCollection* _tmp0_; - guint _tmp1_; -#line 7 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection); -#line 26 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = library_photo_global; -#line 26 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_parse_name ("source-reimported", TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE); -#line 26 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _tag_source_collection_on_photo_source_reimported_library_photo_source_collection_source_reimported, self); -#line 8 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (self->priv->name_map); -#line 10 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (self->priv->source_map); -#line 12 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (self->priv->sorted_source_map); -#line 7 "/home/jens/Source/shotwell/src/Tag.vala" - DATA_COLLECTION_CLASS (tag_source_collection_parent_class)->finalize (obj); -#line 3012 "Tag.c" -} - - -GType -tag_source_collection_get_type (void) -{ - static volatile gsize tag_source_collection_type_id__volatile = 0; - if (g_once_init_enter (&tag_source_collection_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TagSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagSourceCollection), 0, (GInstanceInitFunc) tag_source_collection_instance_init, NULL }; - GType tag_source_collection_type_id; - tag_source_collection_type_id = g_type_register_static (TYPE_CONTAINER_SOURCE_COLLECTION, "TagSourceCollection", &g_define_type_info, 0); - g_once_init_leave (&tag_source_collection_type_id__volatile, tag_source_collection_type_id); - } - return tag_source_collection_type_id__volatile; -} - - -static void -_tag_on_media_views_contents_altered_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self) -{ -#line 382 "/home/jens/Source/shotwell/src/Tag.vala" - tag_on_media_views_contents_altered ((Tag*) self, added, removed); -#line 3038 "Tag.c" -} - - -static void -_tag_on_sources_destroyed_source_collection_items_destroyed (SourceCollection* _sender, - GeeCollection* destroyed, - gpointer self) -{ -#line 383 "/home/jens/Source/shotwell/src/Tag.vala" - tag_on_sources_destroyed ((Tag*) self, destroyed); -#line 3049 "Tag.c" -} - - -static gpointer -_tag_row_ref0 (gpointer self) -{ -#line 335 "/home/jens/Source/shotwell/src/Tag.vala" - return self ? tag_row_ref (self) : NULL; -#line 3058 "Tag.c" -} - - -static Tag* -tag_construct (GType object_type, - TagRow* row, - gint64 object_id) -{ - Tag * self = NULL; - TagRow* _tmp0_; - TagRow* _tmp1_; - TagRow* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - GeeArrayList* source_list = NULL; - GeeArrayList* _tmp5_; - GeeArrayList* thumbnail_views = NULL; - GeeArrayList* _tmp6_; - TagRow* _tmp7_; - GeeSet* _tmp8_; - TagID _tmp29_; - gint64 _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - gchar* _tmp34_; - ViewCollection* _tmp35_; - ViewCollection* _tmp36_; - GeeArrayList* _tmp37_; - GeeCollection* _tmp38_; - GeeCollection* _tmp39_; - GeeArrayList* _tmp40_; - gint _tmp41_; - gint _tmp42_; - ViewCollection* _tmp47_; - LibraryPhotoSourceCollection* _tmp48_; - VideoSourceCollection* _tmp49_; -#line 332 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG_ROW (row), NULL); -#line 333 "/home/jens/Source/shotwell/src/Tag.vala" - self = (Tag*) data_source_construct (object_type, object_id); -#line 335 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = _tag_row_ref0 (row); -#line 335 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_row_unref0 (self->priv->row); -#line 335 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->row = _tmp0_; -#line 338 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = self->priv->row; -#line 338 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = self->priv->row; -#line 338 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = _tmp2_->name; -#line 338 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = tag_prep_tag_name (_tmp3_); -#line 338 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp1_->name); -#line 338 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_->name = _tmp4_; -#line 341 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 341 "/home/jens/Source/shotwell/src/Tag.vala" - source_list = _tmp5_; -#line 342 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = gee_array_list_new (TYPE_THUMBNAIL_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 342 "/home/jens/Source/shotwell/src/Tag.vala" - thumbnail_views = _tmp6_; -#line 343 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = self->priv->row; -#line 343 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = _tmp7_->source_id_list; -#line 343 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp8_ != NULL) { -#line 3132 "Tag.c" - { - GeeIterator* _source_id_it = NULL; - TagRow* _tmp9_; - GeeSet* _tmp10_; - GeeIterator* _tmp11_; -#line 344 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = self->priv->row; -#line 344 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = _tmp9_->source_id_list; -#line 344 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 344 "/home/jens/Source/shotwell/src/Tag.vala" - _source_id_it = _tmp11_; -#line 344 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 3148 "Tag.c" - GeeIterator* _tmp12_; - gchar* source_id = NULL; - GeeIterator* _tmp13_; - gpointer _tmp14_; - MediaSource* current_source = NULL; - MediaCollectionRegistry* _tmp15_; - MediaCollectionRegistry* _tmp16_; - const gchar* _tmp17_; - MediaSource* _tmp18_; - MediaSource* _tmp19_; - MediaSource* _tmp20_; - GeeArrayList* _tmp21_; - MediaSource* _tmp22_; - GeeArrayList* _tmp23_; - MediaSource* _tmp24_; - ThumbnailView* _tmp25_; - ThumbnailView* _tmp26_; -#line 344 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = _source_id_it; -#line 344 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp12_)) { -#line 344 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 3172 "Tag.c" - } -#line 344 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = _source_id_it; -#line 344 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = gee_iterator_get (_tmp13_); -#line 344 "/home/jens/Source/shotwell/src/Tag.vala" - source_id = (gchar*) _tmp14_; -#line 345 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = media_collection_registry_get_instance (); -#line 345 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = _tmp15_; -#line 345 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = source_id; -#line 345 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = media_collection_registry_fetch_media (_tmp16_, _tmp17_); -#line 345 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_MEDIA_SOURCE, MediaSource); -#line 345 "/home/jens/Source/shotwell/src/Tag.vala" - _media_collection_registry_unref0 (_tmp16_); -#line 345 "/home/jens/Source/shotwell/src/Tag.vala" - current_source = _tmp19_; -#line 347 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp20_ = current_source; -#line 347 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp20_ == NULL) { -#line 348 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (current_source); -#line 348 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (source_id); -#line 348 "/home/jens/Source/shotwell/src/Tag.vala" - continue; -#line 3204 "Tag.c" - } -#line 350 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp21_ = source_list; -#line 350 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp22_ = current_source; -#line 350 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp22_); -#line 351 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp23_ = thumbnail_views; -#line 351 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp24_ = current_source; -#line 351 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp25_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 351 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp26_ = _tmp25_; -#line 351 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp26_); -#line 351 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp26_); -#line 344 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (current_source); -#line 344 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (source_id); -#line 3228 "Tag.c" - } -#line 344 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_source_id_it); -#line 3232 "Tag.c" - } - } else { - TagRow* _tmp27_; - GeeHashSet* _tmp28_; -#line 355 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp27_ = self->priv->row; -#line 355 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp28_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 355 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp27_->source_id_list); -#line 355 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp27_->source_id_list = G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_SET, GeeSet); -#line 3245 "Tag.c" - } -#line 359 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp29_ = row->tag_id; -#line 359 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp30_ = _tmp29_.id; -#line 359 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp31_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp30_); -#line 359 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp32_ = _tmp31_; -#line 359 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp33_ = g_strdup_printf ("ViewCollection for tag %s", _tmp32_); -#line 359 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp34_ = _tmp33_; -#line 359 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp35_ = view_collection_new (_tmp34_); -#line 359 "/home/jens/Source/shotwell/src/Tag.vala" - _data_collection_unref0 (self->priv->media_views); -#line 359 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->media_views = _tmp35_; -#line 359 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp34_); -#line 359 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp32_); -#line 360 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp36_ = self->priv->media_views; -#line 360 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp37_ = thumbnail_views; -#line 360 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp38_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL); -#line 360 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp39_ = _tmp38_; -#line 360 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp39_); -#line 364 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp40_ = source_list; -#line 364 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp41_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 364 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp42_ = _tmp41_; -#line 364 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp42_ > 0) { -#line 3287 "Tag.c" - TagSourceCollection* _tmp43_; - GeeArrayList* _tmp44_; - TagSourceCollection* _tmp45_; - GeeArrayList* _tmp46_; -#line 365 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp43_ = tag_global; -#line 365 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp44_ = source_list; -#line 365 "/home/jens/Source/shotwell/src/Tag.vala" - container_source_collection_notify_container_contents_added (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_COLLECTION, GeeCollection), FALSE); -#line 366 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp45_ = tag_global; -#line 366 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp46_ = source_list; -#line 366 "/home/jens/Source/shotwell/src/Tag.vala" - container_source_collection_notify_container_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_COLLECTION, GeeCollection), FALSE, NULL, FALSE); -#line 3304 "Tag.c" - } -#line 371 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp47_ = self->priv->media_views; -#line 371 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _tag_on_media_views_contents_altered_data_collection_contents_altered, self, 0); -#line 375 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp48_ = library_photo_global; -#line 375 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-destroyed", (GCallback) _tag_on_sources_destroyed_source_collection_items_destroyed, self, 0); -#line 376 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp49_ = video_global; -#line 376 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, TYPE_SOURCE_COLLECTION, SourceCollection), "items-destroyed", (GCallback) _tag_on_sources_destroyed_source_collection_items_destroyed, self, 0); -#line 378 "/home/jens/Source/shotwell/src/Tag.vala" - tag_update_indexable_keywords (self); -#line 332 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (thumbnail_views); -#line 332 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (source_list); -#line 332 "/home/jens/Source/shotwell/src/Tag.vala" - return self; -#line 3326 "Tag.c" -} - - -static Tag* -tag_new (TagRow* row, - gint64 object_id) -{ -#line 332 "/home/jens/Source/shotwell/src/Tag.vala" - return tag_construct (TYPE_TAG, row, object_id); -#line 3336 "Tag.c" -} - - -void -tag_init (ProgressMonitor monitor, - void* monitor_target) -{ - TagSourceCollection* _tmp0_; - GeeList* rows = NULL; - GeeTreeMap* ancestry_dictionary = NULL; - GeeTreeMap* _tmp8_; - GeeArrayList* unlinked = NULL; - GeeArrayList* _tmp9_; - gint count = 0; - GeeList* _tmp10_; - gint _tmp11_; - gint _tmp12_; - GeeSet* victim_set = NULL; - GeeHashSet* _tmp51_; - GeeSet* _tmp103_; - TagSourceCollection* _tmp158_; - GeeTreeMap* _tmp159_; - GeeCollection* _tmp160_; - GeeCollection* _tmp161_; - GeeCollection* _tmp162_; - GeeCollection* _tmp163_; - GeeCollection* _tmp164_; - TagSourceCollection* _tmp165_; - GeeArrayList* _tmp166_; - GError * _inner_error_ = NULL; -#line 388 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_source_collection_new (); -#line 388 "/home/jens/Source/shotwell/src/Tag.vala" - _data_collection_unref0 (tag_global); -#line 388 "/home/jens/Source/shotwell/src/Tag.vala" - tag_global = _tmp0_; -#line 391 "/home/jens/Source/shotwell/src/Tag.vala" - rows = NULL; -#line 3375 "Tag.c" - { - GeeList* _tmp1_ = NULL; - TagTable* _tmp2_; - TagTable* _tmp3_; - GeeList* _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp6_; -#line 393 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = tag_table_get_instance (); -#line 393 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = _tmp2_; -#line 393 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = tag_table_get_all_rows (_tmp3_, &_inner_error_); -#line 393 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _tmp4_; -#line 393 "/home/jens/Source/shotwell/src/Tag.vala" - _database_table_unref0 (_tmp3_); -#line 393 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp5_; -#line 393 "/home/jens/Source/shotwell/src/Tag.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 393 "/home/jens/Source/shotwell/src/Tag.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 3399 "Tag.c" - goto __catch480_database_error; - } -#line 393 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (rows); -#line 393 "/home/jens/Source/shotwell/src/Tag.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 393 "/home/jens/Source/shotwell/src/Tag.vala" - g_clear_error (&_inner_error_); -#line 393 "/home/jens/Source/shotwell/src/Tag.vala" - return; -#line 3410 "Tag.c" - } -#line 393 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = _tmp1_; -#line 393 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = NULL; -#line 393 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (rows); -#line 393 "/home/jens/Source/shotwell/src/Tag.vala" - rows = _tmp6_; -#line 392 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp1_); -#line 3422 "Tag.c" - } - goto __finally480; - __catch480_database_error: - { - GError* err = NULL; - GError* _tmp7_; -#line 392 "/home/jens/Source/shotwell/src/Tag.vala" - err = _inner_error_; -#line 392 "/home/jens/Source/shotwell/src/Tag.vala" - _inner_error_ = NULL; -#line 395 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = err; -#line 395 "/home/jens/Source/shotwell/src/Tag.vala" - app_window_database_error (_tmp7_); -#line 392 "/home/jens/Source/shotwell/src/Tag.vala" - _g_error_free0 (err); -#line 3439 "Tag.c" - } - __finally480: -#line 392 "/home/jens/Source/shotwell/src/Tag.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 392 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (rows); -#line 392 "/home/jens/Source/shotwell/src/Tag.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 392 "/home/jens/Source/shotwell/src/Tag.vala" - g_clear_error (&_inner_error_); -#line 392 "/home/jens/Source/shotwell/src/Tag.vala" - return; -#line 3452 "Tag.c" - } -#line 404 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = gee_tree_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 404 "/home/jens/Source/shotwell/src/Tag.vala" - ancestry_dictionary = _tmp8_; -#line 406 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 406 "/home/jens/Source/shotwell/src/Tag.vala" - unlinked = _tmp9_; -#line 407 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = rows; -#line 407 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 407 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = _tmp11_; -#line 407 "/home/jens/Source/shotwell/src/Tag.vala" - count = _tmp12_; -#line 3470 "Tag.c" - { - gint ctr = 0; -#line 408 "/home/jens/Source/shotwell/src/Tag.vala" - ctr = 0; -#line 3475 "Tag.c" - { - gboolean _tmp13_ = FALSE; -#line 408 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = TRUE; -#line 408 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 3482 "Tag.c" - gint _tmp15_; - gint _tmp16_; - TagRow* row = NULL; - GeeList* _tmp17_; - gint _tmp18_; - gpointer _tmp19_; - gchar* name = NULL; - TagRow* _tmp20_; - const gchar* _tmp21_; - gchar* _tmp22_; - const gchar* _tmp23_; - TagRow* _tmp34_; - const gchar* _tmp35_; - gchar* _tmp36_; - Tag* tag = NULL; - TagRow* _tmp37_; - Tag* _tmp38_; - GeeTreeMap* _tmp41_; - Tag* _tmp42_; - gchar* _tmp43_; - gchar* _tmp44_; - Tag* _tmp45_; - Tag* _tmp46_; -#line 408 "/home/jens/Source/shotwell/src/Tag.vala" - if (!_tmp13_) { -#line 3508 "Tag.c" - gint _tmp14_; -#line 408 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = ctr; -#line 408 "/home/jens/Source/shotwell/src/Tag.vala" - ctr = _tmp14_ + 1; -#line 3514 "Tag.c" - } -#line 408 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = FALSE; -#line 408 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = ctr; -#line 408 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = count; -#line 408 "/home/jens/Source/shotwell/src/Tag.vala" - if (!(_tmp15_ < _tmp16_)) { -#line 408 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 3526 "Tag.c" - } -#line 409 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = rows; -#line 409 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = ctr; -#line 409 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp19_ = gee_list_get (_tmp17_, _tmp18_); -#line 409 "/home/jens/Source/shotwell/src/Tag.vala" - row = (TagRow*) _tmp19_; -#line 412 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp20_ = row; -#line 412 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp21_ = _tmp20_->name; -#line 412 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp22_ = tag_prep_tag_name (_tmp21_); -#line 412 "/home/jens/Source/shotwell/src/Tag.vala" - name = _tmp22_; -#line 413 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp23_ = name; -#line 413 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp23_ == NULL) { -#line 3548 "Tag.c" - TagRow* _tmp24_; - const gchar* _tmp25_; -#line 416 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp24_ = row; -#line 416 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp25_ = _tmp24_->name; -#line 416 "/home/jens/Source/shotwell/src/Tag.vala" - g_warning ("Tag.vala:416: Invalid tag name \"%s\": removing from database", _tmp25_); -#line 3557 "Tag.c" - { - TagTable* _tmp26_; - TagTable* _tmp27_; - TagRow* _tmp28_; - TagID _tmp29_; -#line 418 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp26_ = tag_table_get_instance (); -#line 418 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp27_ = _tmp26_; -#line 418 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp28_ = row; -#line 418 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp29_ = _tmp28_->tag_id; -#line 418 "/home/jens/Source/shotwell/src/Tag.vala" - tag_table_remove (_tmp27_, &_tmp29_, &_inner_error_); -#line 418 "/home/jens/Source/shotwell/src/Tag.vala" - _database_table_unref0 (_tmp27_); -#line 418 "/home/jens/Source/shotwell/src/Tag.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 418 "/home/jens/Source/shotwell/src/Tag.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 3579 "Tag.c" - goto __catch481_database_error; - } -#line 418 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (name); -#line 418 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_row_unref0 (row); -#line 418 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (unlinked); -#line 418 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (ancestry_dictionary); -#line 418 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (rows); -#line 418 "/home/jens/Source/shotwell/src/Tag.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 418 "/home/jens/Source/shotwell/src/Tag.vala" - g_clear_error (&_inner_error_); -#line 418 "/home/jens/Source/shotwell/src/Tag.vala" - return; -#line 3598 "Tag.c" - } - } - goto __finally481; - __catch481_database_error: - { - GError* err = NULL; - TagRow* _tmp30_; - const gchar* _tmp31_; - GError* _tmp32_; - const gchar* _tmp33_; -#line 417 "/home/jens/Source/shotwell/src/Tag.vala" - err = _inner_error_; -#line 417 "/home/jens/Source/shotwell/src/Tag.vala" - _inner_error_ = NULL; -#line 420 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp30_ = row; -#line 420 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp31_ = _tmp30_->name; -#line 420 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp32_ = err; -#line 420 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp33_ = _tmp32_->message; -#line 420 "/home/jens/Source/shotwell/src/Tag.vala" - g_warning ("Tag.vala:420: Unable to delete tag \"%s\": %s", _tmp31_, _tmp33_); -#line 417 "/home/jens/Source/shotwell/src/Tag.vala" - _g_error_free0 (err); -#line 3625 "Tag.c" - } - __finally481: -#line 417 "/home/jens/Source/shotwell/src/Tag.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 417 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (name); -#line 417 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_row_unref0 (row); -#line 417 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (unlinked); -#line 417 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (ancestry_dictionary); -#line 417 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (rows); -#line 417 "/home/jens/Source/shotwell/src/Tag.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 417 "/home/jens/Source/shotwell/src/Tag.vala" - g_clear_error (&_inner_error_); -#line 417 "/home/jens/Source/shotwell/src/Tag.vala" - return; -#line 3646 "Tag.c" - } -#line 423 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (name); -#line 423 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_row_unref0 (row); -#line 423 "/home/jens/Source/shotwell/src/Tag.vala" - continue; -#line 3654 "Tag.c" - } -#line 426 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp34_ = row; -#line 426 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp35_ = name; -#line 426 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp36_ = g_strdup (_tmp35_); -#line 426 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp34_->name); -#line 426 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp34_->name = _tmp36_; -#line 428 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp37_ = row; -#line 428 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp38_ = tag_new (_tmp37_, DATA_OBJECT_INVALID_OBJECT_ID); -#line 428 "/home/jens/Source/shotwell/src/Tag.vala" - tag = _tmp38_; -#line 429 "/home/jens/Source/shotwell/src/Tag.vala" - if (monitor != NULL) { -#line 3674 "Tag.c" - gint _tmp39_; - gint _tmp40_; -#line 430 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp39_ = ctr; -#line 430 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp40_ = count; -#line 430 "/home/jens/Source/shotwell/src/Tag.vala" - monitor ((guint64) _tmp39_, (guint64) _tmp40_, TRUE, monitor_target); -#line 3683 "Tag.c" - } -#line 432 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp41_ = ancestry_dictionary; -#line 432 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp42_ = tag; -#line 432 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp43_ = tag_get_path (_tmp42_); -#line 432 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp44_ = _tmp43_; -#line 432 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp45_ = tag; -#line 432 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp44_, _tmp45_); -#line 432 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp44_); -#line 434 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp46_ = tag; -#line 434 "/home/jens/Source/shotwell/src/Tag.vala" - if (container_source_has_links (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_CONTAINER_SOURCE, ContainerSource))) { -#line 3703 "Tag.c" - Tag* _tmp47_; - TagSourceCollection* _tmp48_; - GeeArrayList* _tmp49_; - Tag* _tmp50_; -#line 435 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp47_ = tag; -#line 435 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp48_ = tag_global; -#line 435 "/home/jens/Source/shotwell/src/Tag.vala" - data_source_rehydrate_backlinks (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_SOURCE_COLLECTION, SourceCollection), NULL); -#line 436 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp49_ = unlinked; -#line 436 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp50_ = tag; -#line 436 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp50_); -#line 3720 "Tag.c" - } -#line 408 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 408 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (name); -#line 408 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_row_unref0 (row); -#line 3728 "Tag.c" - } - } - } -#line 440 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp51_ = gee_hash_set_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 440 "/home/jens/Source/shotwell/src/Tag.vala" - victim_set = G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_SET, GeeSet); -#line 3736 "Tag.c" - { - GeeIterator* _fq_tag_path_it = NULL; - GeeTreeMap* _tmp52_; - GeeSet* _tmp53_; - GeeSet* _tmp54_; - GeeSet* _tmp55_; - GeeIterator* _tmp56_; - GeeIterator* _tmp57_; -#line 445 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp52_ = ancestry_dictionary; -#line 445 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp53_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 445 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp54_ = _tmp53_; -#line 445 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp55_ = _tmp54_; -#line 445 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp56_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 445 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp57_ = _tmp56_; -#line 445 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp55_); -#line 445 "/home/jens/Source/shotwell/src/Tag.vala" - _fq_tag_path_it = _tmp57_; -#line 445 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 3763 "Tag.c" - GeeIterator* _tmp58_; - gchar* fq_tag_path = NULL; - GeeIterator* _tmp59_; - gpointer _tmp60_; - const gchar* _tmp61_; - GeeList* _tmp62_; - GeeList* _tmp63_; - gint _tmp64_; - gint _tmp65_; - gboolean _tmp66_; -#line 445 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp58_ = _fq_tag_path_it; -#line 445 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp58_)) { -#line 445 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 3780 "Tag.c" - } -#line 445 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp59_ = _fq_tag_path_it; -#line 445 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp60_ = gee_iterator_get (_tmp59_); -#line 445 "/home/jens/Source/shotwell/src/Tag.vala" - fq_tag_path = (gchar*) _tmp60_; -#line 446 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp61_ = fq_tag_path; -#line 446 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp62_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp61_); -#line 446 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp63_ = _tmp62_; -#line 446 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp64_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 446 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp65_ = _tmp64_; -#line 446 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp66_ = _tmp65_ < 1; -#line 446 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp63_); -#line 446 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp66_) { -#line 3804 "Tag.c" - gboolean _tmp67_ = FALSE; - const gchar* _tmp68_; -#line 447 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp68_ = fq_tag_path; -#line 447 "/home/jens/Source/shotwell/src/Tag.vala" - if (g_str_has_prefix (_tmp68_, TAG_PATH_SEPARATOR_STRING)) { -#line 3811 "Tag.c" - GeeTreeMap* _tmp69_; - const gchar* _tmp70_; - gchar* _tmp71_; - gchar* _tmp72_; -#line 448 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp69_ = ancestry_dictionary; -#line 448 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp70_ = fq_tag_path; -#line 448 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp71_ = hierarchical_tag_utilities_hierarchical_to_flat (_tmp70_); -#line 448 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp72_ = _tmp71_; -#line 448 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp67_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp72_); -#line 448 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp72_); -#line 3828 "Tag.c" - } else { -#line 447 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp67_ = FALSE; -#line 3832 "Tag.c" - } -#line 447 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp67_) { -#line 3836 "Tag.c" - GeeSet* _tmp73_; - GeeTreeMap* _tmp74_; - const gchar* _tmp75_; - gpointer _tmp76_; - Tag* _tmp77_; -#line 449 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp73_ = victim_set; -#line 449 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp74_ = ancestry_dictionary; -#line 449 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp75_ = fq_tag_path; -#line 449 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp76_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp75_); -#line 449 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp77_ = (Tag*) _tmp76_; -#line 449 "/home/jens/Source/shotwell/src/Tag.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, GEE_TYPE_COLLECTION, GeeCollection), _tmp77_); -#line 449 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp77_); -#line 3856 "Tag.c" - } - } -#line 445 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (fq_tag_path); -#line 3861 "Tag.c" - } -#line 445 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_fq_tag_path_it); -#line 3865 "Tag.c" - } - { - GeeIterator* _tag_it = NULL; - GeeSet* _tmp78_; - GeeIterator* _tmp79_; -#line 454 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp78_ = victim_set; -#line 454 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp79_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 454 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_it = _tmp79_; -#line 454 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 3879 "Tag.c" - GeeIterator* _tmp80_; - Tag* tag = NULL; - GeeIterator* _tmp81_; - gpointer _tmp82_; - GeeCollection* source_collection = NULL; - Tag* _tmp83_; - GeeCollection* _tmp84_; - gchar* flat_version = NULL; - Tag* _tmp85_; - gchar* _tmp86_; - TagSourceCollection* _tmp87_; - const gchar* _tmp88_; - Tag* _tmp89_; - Tag* _tmp90_; - GeeCollection* _tmp91_; - GeeTreeMap* _tmp92_; - Tag* _tmp93_; - gchar* _tmp94_; - gchar* _tmp95_; - Tag* _tmp96_; - Tag* _tmp97_; - GeeCollection* _tmp98_; - GeeCollection* _tmp99_; - GeeMultiMap* _tmp100_; - GeeMultiMap* _tmp101_; - Tag* _tmp102_; -#line 454 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp80_ = _tag_it; -#line 454 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp80_)) { -#line 454 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 3912 "Tag.c" - } -#line 454 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp81_ = _tag_it; -#line 454 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp82_ = gee_iterator_get (_tmp81_); -#line 454 "/home/jens/Source/shotwell/src/Tag.vala" - tag = (Tag*) _tmp82_; -#line 455 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp83_ = tag; -#line 455 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp84_ = tag_get_sources (_tmp83_); -#line 455 "/home/jens/Source/shotwell/src/Tag.vala" - source_collection = _tmp84_; -#line 456 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp85_ = tag; -#line 456 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp86_ = tag_get_user_visible_name (_tmp85_); -#line 456 "/home/jens/Source/shotwell/src/Tag.vala" - flat_version = _tmp86_; -#line 457 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp87_ = tag_global; -#line 457 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp88_ = flat_version; -#line 457 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp89_ = tag_source_collection_fetch_by_name (_tmp87_, _tmp88_, FALSE); -#line 457 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp90_ = _tmp89_; -#line 457 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp91_ = source_collection; -#line 457 "/home/jens/Source/shotwell/src/Tag.vala" - tag_attach_many (_tmp90_, _tmp91_); -#line 457 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp90_); -#line 459 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp92_ = ancestry_dictionary; -#line 459 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp93_ = tag; -#line 459 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp94_ = tag_get_path (_tmp93_); -#line 459 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp95_ = _tmp94_; -#line 459 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp92_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp95_, NULL); -#line 459 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp95_); -#line 461 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp96_ = tag; -#line 461 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp97_ = tag; -#line 461 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp98_ = tag_get_sources (_tmp97_); -#line 461 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp99_ = _tmp98_; -#line 461 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp100_ = tag_detach_many (_tmp96_, _tmp99_); -#line 461 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp101_ = _tmp100_; -#line 461 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp101_); -#line 461 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp99_); -#line 462 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp102_ = tag; -#line 462 "/home/jens/Source/shotwell/src/Tag.vala" - data_source_destroy_orphan (G_TYPE_CHECK_INSTANCE_CAST (_tmp102_, TYPE_DATA_SOURCE, DataSource), TRUE); -#line 454 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (flat_version); -#line 454 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (source_collection); -#line 454 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 3984 "Tag.c" - } -#line 454 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tag_it); -#line 3988 "Tag.c" - } -#line 468 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp103_ = victim_set; -#line 468 "/home/jens/Source/shotwell/src/Tag.vala" - gee_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp103_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 3994 "Tag.c" - { - GeeIterator* _fq_tag_path_it = NULL; - GeeTreeMap* _tmp104_; - GeeSet* _tmp105_; - GeeSet* _tmp106_; - GeeSet* _tmp107_; - GeeIterator* _tmp108_; - GeeIterator* _tmp109_; -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp104_ = ancestry_dictionary; -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp105_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp104_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp106_ = _tmp105_; -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp107_ = _tmp106_; -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp108_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp107_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp109_ = _tmp108_; -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp107_); -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - _fq_tag_path_it = _tmp109_; -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 4021 "Tag.c" - GeeIterator* _tmp110_; - gchar* fq_tag_path = NULL; - GeeIterator* _tmp111_; - gpointer _tmp112_; - GeeList* parents_to_search = NULL; - const gchar* _tmp113_; - GeeList* _tmp114_; - Tag* curr_child = NULL; - GeeTreeMap* _tmp115_; - const gchar* _tmp116_; - gpointer _tmp117_; -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp110_ = _fq_tag_path_it; -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp110_)) { -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 4039 "Tag.c" - } -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp111_ = _fq_tag_path_it; -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp112_ = gee_iterator_get (_tmp111_); -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - fq_tag_path = (gchar*) _tmp112_; -#line 471 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp113_ = fq_tag_path; -#line 471 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp114_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp113_); -#line 471 "/home/jens/Source/shotwell/src/Tag.vala" - parents_to_search = _tmp114_; -#line 474 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp115_ = ancestry_dictionary; -#line 474 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp116_ = fq_tag_path; -#line 474 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp117_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp115_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp116_); -#line 474 "/home/jens/Source/shotwell/src/Tag.vala" - curr_child = (Tag*) _tmp117_; -#line 4061 "Tag.c" - { - GeeList* _parent_path_list = NULL; - GeeList* _tmp118_; - GeeList* _tmp119_; - gint _parent_path_size = 0; - GeeList* _tmp120_; - gint _tmp121_; - gint _tmp122_; - gint _parent_path_index = 0; -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp118_ = parents_to_search; -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp119_ = _g_object_ref0 (_tmp118_); -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - _parent_path_list = _tmp119_; -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp120_ = _parent_path_list; -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp121_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp120_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp122_ = _tmp121_; -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - _parent_path_size = _tmp122_; -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - _parent_path_index = -1; -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 4089 "Tag.c" - gint _tmp123_; - gint _tmp124_; - gint _tmp125_; - gchar* parent_path = NULL; - GeeList* _tmp126_; - gint _tmp127_; - gpointer _tmp128_; - gint child_ref_count = 0; - Tag* _tmp129_; - gint parent_ref_count = 0; - GeeTreeMap* _tmp130_; - const gchar* _tmp131_; - gint _tmp136_; - gint _tmp137_; - GeeSet* _tmp140_; - GeeTreeMap* _tmp141_; - const gchar* _tmp142_; - gpointer _tmp143_; - Tag* _tmp144_; - gboolean _tmp145_; -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp123_ = _parent_path_index; -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - _parent_path_index = _tmp123_ + 1; -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp124_ = _parent_path_index; -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp125_ = _parent_path_size; -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - if (!(_tmp124_ < _tmp125_)) { -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 4122 "Tag.c" - } -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp126_ = _parent_path_list; -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp127_ = _parent_path_index; -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp128_ = gee_list_get (_tmp126_, _tmp127_); -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - parent_path = (gchar*) _tmp128_; -#line 479 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp129_ = curr_child; -#line 479 "/home/jens/Source/shotwell/src/Tag.vala" - child_ref_count = tag_get_sources_count (_tmp129_); -#line 480 "/home/jens/Source/shotwell/src/Tag.vala" - parent_ref_count = -1; -#line 483 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp130_ = ancestry_dictionary; -#line 483 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp131_ = parent_path; -#line 483 "/home/jens/Source/shotwell/src/Tag.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp130_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp131_)) { -#line 4144 "Tag.c" - GeeTreeMap* _tmp132_; - const gchar* _tmp133_; - gpointer _tmp134_; - Tag* _tmp135_; -#line 485 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp132_ = ancestry_dictionary; -#line 485 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp133_ = parent_path; -#line 485 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp134_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp132_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp133_); -#line 485 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp135_ = (Tag*) _tmp134_; -#line 485 "/home/jens/Source/shotwell/src/Tag.vala" - parent_ref_count = tag_get_sources_count (_tmp135_); -#line 485 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp135_); -#line 4161 "Tag.c" - } -#line 489 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp136_ = child_ref_count; -#line 489 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp137_ = parent_ref_count; -#line 489 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp136_ > _tmp137_) { -#line 4169 "Tag.c" - GeeSet* _tmp138_; - Tag* _tmp139_; -#line 493 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp138_ = victim_set; -#line 493 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp139_ = curr_child; -#line 493 "/home/jens/Source/shotwell/src/Tag.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp138_, GEE_TYPE_COLLECTION, GeeCollection), _tmp139_); -#line 497 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (parent_path); -#line 497 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 4182 "Tag.c" - } -#line 501 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp140_ = victim_set; -#line 501 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp141_ = ancestry_dictionary; -#line 501 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp142_ = parent_path; -#line 501 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp143_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp141_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp142_); -#line 501 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp144_ = (Tag*) _tmp143_; -#line 501 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp145_ = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp140_, GEE_TYPE_COLLECTION, GeeCollection), _tmp144_); -#line 501 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp144_); -#line 501 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp145_) { -#line 4200 "Tag.c" - GeeSet* _tmp146_; - Tag* _tmp147_; -#line 503 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp146_ = victim_set; -#line 503 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp147_ = curr_child; -#line 503 "/home/jens/Source/shotwell/src/Tag.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp146_, GEE_TYPE_COLLECTION, GeeCollection), _tmp147_); -#line 504 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (parent_path); -#line 504 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 4213 "Tag.c" - } -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (parent_path); -#line 4217 "Tag.c" - } -#line 476 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_parent_path_list); -#line 4221 "Tag.c" - } -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (curr_child); -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (parents_to_search); -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (fq_tag_path); -#line 4229 "Tag.c" - } -#line 470 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_fq_tag_path_it); -#line 4233 "Tag.c" - } - { - GeeIterator* _t_it = NULL; - GeeSet* _tmp148_; - GeeIterator* _tmp149_; -#line 510 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp148_ = victim_set; -#line 510 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp149_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp148_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 510 "/home/jens/Source/shotwell/src/Tag.vala" - _t_it = _tmp149_; -#line 510 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 4247 "Tag.c" - GeeIterator* _tmp150_; - Tag* t = NULL; - GeeIterator* _tmp151_; - gpointer _tmp152_; - GeeTreeMap* _tmp153_; - Tag* _tmp154_; - gchar* _tmp155_; - gchar* _tmp156_; - Tag* _tmp157_; -#line 510 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp150_ = _t_it; -#line 510 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp150_)) { -#line 510 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 4263 "Tag.c" - } -#line 510 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp151_ = _t_it; -#line 510 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp152_ = gee_iterator_get (_tmp151_); -#line 510 "/home/jens/Source/shotwell/src/Tag.vala" - t = (Tag*) _tmp152_; -#line 511 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp153_ = ancestry_dictionary; -#line 511 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp154_ = t; -#line 511 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp155_ = tag_get_path (_tmp154_); -#line 511 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp156_ = _tmp155_; -#line 511 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp153_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp156_, NULL); -#line 511 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp156_); -#line 512 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp157_ = t; -#line 512 "/home/jens/Source/shotwell/src/Tag.vala" - data_source_destroy_orphan (G_TYPE_CHECK_INSTANCE_CAST (_tmp157_, TYPE_DATA_SOURCE, DataSource), TRUE); -#line 510 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (t); -#line 4289 "Tag.c" - } -#line 510 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_t_it); -#line 4293 "Tag.c" - } -#line 516 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp158_ = tag_global; -#line 516 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp159_ = ancestry_dictionary; -#line 516 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp160_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp159_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 516 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp161_ = _tmp160_; -#line 516 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp162_ = _tmp161_; -#line 516 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp163_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp158_, TYPE_DATA_COLLECTION, DataCollection), _tmp162_, NULL, NULL); -#line 516 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp164_ = _tmp163_; -#line 516 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp164_); -#line 516 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp162_); -#line 517 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp165_ = tag_global; -#line 517 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp166_ = unlinked; -#line 517 "/home/jens/Source/shotwell/src/Tag.vala" - container_source_collection_init_add_many_unlinked (G_TYPE_CHECK_INSTANCE_CAST (_tmp165_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp166_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 4319 "Tag.c" - { - GeeIterator* _t_it = NULL; - GeeTreeMap* _tmp167_; - GeeCollection* _tmp168_; - GeeCollection* _tmp169_; - GeeCollection* _tmp170_; - GeeIterator* _tmp171_; - GeeIterator* _tmp172_; -#line 521 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp167_ = ancestry_dictionary; -#line 521 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp168_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp167_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 521 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp169_ = _tmp168_; -#line 521 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp170_ = _tmp169_; -#line 521 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp171_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp170_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 521 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp172_ = _tmp171_; -#line 521 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp170_); -#line 521 "/home/jens/Source/shotwell/src/Tag.vala" - _t_it = _tmp172_; -#line 521 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 4346 "Tag.c" - GeeIterator* _tmp173_; - Tag* t = NULL; - GeeIterator* _tmp174_; - gpointer _tmp175_; - gboolean _tmp176_ = FALSE; - Tag* _tmp177_; - GeeList* _tmp178_; - GeeList* _tmp179_; - gint _tmp180_; - gint _tmp181_; - gboolean _tmp182_; -#line 521 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp173_ = _t_it; -#line 521 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp173_)) { -#line 521 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 4364 "Tag.c" - } -#line 521 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp174_ = _t_it; -#line 521 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp175_ = gee_iterator_get (_tmp174_); -#line 521 "/home/jens/Source/shotwell/src/Tag.vala" - t = (Tag*) _tmp175_; -#line 523 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp177_ = t; -#line 523 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp178_ = tag_get_hierarchical_children (_tmp177_); -#line 523 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp179_ = _tmp178_; -#line 523 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp180_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp179_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 523 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp181_ = _tmp180_; -#line 523 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp182_ = _tmp181_ < 1; -#line 523 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp179_); -#line 523 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp182_) { -#line 4388 "Tag.c" - Tag* _tmp183_; - Tag* _tmp184_; - Tag* _tmp185_; -#line 523 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp183_ = t; -#line 523 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp184_ = tag_get_hierarchical_parent (_tmp183_); -#line 523 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp185_ = _tmp184_; -#line 523 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp176_ = _tmp185_ == NULL; -#line 523 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp185_); -#line 4402 "Tag.c" - } else { -#line 523 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp176_ = FALSE; -#line 4406 "Tag.c" - } -#line 523 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp176_) { -#line 4410 "Tag.c" - Tag* _tmp186_; -#line 525 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp186_ = t; -#line 525 "/home/jens/Source/shotwell/src/Tag.vala" - tag_flatten (_tmp186_); -#line 4416 "Tag.c" - } -#line 521 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (t); -#line 4420 "Tag.c" - } -#line 521 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_t_it); -#line 4424 "Tag.c" - } -#line 387 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (victim_set); -#line 387 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (unlinked); -#line 387 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (ancestry_dictionary); -#line 387 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (rows); -#line 4434 "Tag.c" -} - - -void -tag_terminate (void) -{ -} - - -gint -tag_compare_names (Tag* a, - Tag* b) -{ - gint result = 0; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gint _tmp8_; -#line 533 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (a), 0); -#line 533 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (b), 0); -#line 534 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (a, TYPE_DATA_OBJECT, DataObject)); -#line 534 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 534 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = tag_get_name_collation_key (a); -#line 534 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = _tmp2_; -#line 534 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (b, TYPE_DATA_OBJECT, DataObject)); -#line 534 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _tmp4_; -#line 534 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = tag_get_name_collation_key (b); -#line 534 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = _tmp6_; -#line 534 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = string_precollated_compare (_tmp1_, _tmp3_, _tmp5_, _tmp7_); -#line 534 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp7_); -#line 534 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp5_); -#line 534 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp3_); -#line 534 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp1_); -#line 534 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp8_; -#line 534 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 4492 "Tag.c" -} - - -gint -tag_compare_user_visible_names (Tag* a, - Tag* b) -{ - gint result = 0; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gint _tmp8_; -#line 538 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (a), 0); -#line 538 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (b), 0); -#line 539 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_get_user_visible_name (a); -#line 539 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 539 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = tag_get_name_collation_key (a); -#line 539 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = _tmp2_; -#line 539 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = tag_get_user_visible_name (b); -#line 539 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _tmp4_; -#line 539 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = tag_get_name_collation_key (b); -#line 539 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = _tmp6_; -#line 539 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = string_precollated_compare (_tmp1_, _tmp3_, _tmp5_, _tmp7_); -#line 539 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp7_); -#line 539 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp5_); -#line 539 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp3_); -#line 539 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp1_); -#line 539 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp8_; -#line 539 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 4544 "Tag.c" -} - - -guint -tag_hash_name_string (const gchar* a) -{ - guint result = 0U; -#line 543 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (a != NULL, 0U); -#line 544 "/home/jens/Source/shotwell/src/Tag.vala" - result = string_collated_hash (a); -#line 544 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 4558 "Tag.c" -} - - -gboolean -tag_equal_name_strings (const gchar* a, - const gchar* b) -{ - gboolean result = FALSE; -#line 547 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (a != NULL, FALSE); -#line 547 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (b != NULL, FALSE); -#line 548 "/home/jens/Source/shotwell/src/Tag.vala" - result = string_collated_equals (a, b); -#line 548 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 4575 "Tag.c" -} - - -Tag* -tag_for_path (const gchar* name) -{ - Tag* result = NULL; - Tag* tag = NULL; - TagSourceCollection* _tmp0_; - Tag* _tmp1_; - Tag* _tmp2_; - Tag* _tmp5_; - TagSourceCollection* _tmp13_; - Tag* _tmp14_; - GError * _inner_error_ = NULL; -#line 553 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 554 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_global; -#line 554 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = tag_source_collection_fetch_by_name (_tmp0_, name, TRUE); -#line 554 "/home/jens/Source/shotwell/src/Tag.vala" - tag = _tmp1_; -#line 555 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = tag; -#line 555 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp2_ == NULL) { -#line 4603 "Tag.c" - TagSourceCollection* _tmp3_; - Tag* _tmp4_; -#line 556 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = tag_global; -#line 556 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = tag_source_collection_restore_tag_from_holding_tank (_tmp3_, name); -#line 556 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 556 "/home/jens/Source/shotwell/src/Tag.vala" - tag = _tmp4_; -#line 4614 "Tag.c" - } -#line 558 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = tag; -#line 558 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp5_ != NULL) { -#line 559 "/home/jens/Source/shotwell/src/Tag.vala" - result = tag; -#line 559 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 4624 "Tag.c" - } - { - TagRow* _tmp6_ = NULL; - TagTable* _tmp7_; - TagTable* _tmp8_; - TagRow* _tmp9_; - TagRow* _tmp10_; - Tag* _tmp11_; -#line 563 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = tag_table_get_instance (); -#line 563 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = _tmp7_; -#line 563 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = tag_table_add (_tmp8_, name, &_inner_error_); -#line 563 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = _tmp9_; -#line 563 "/home/jens/Source/shotwell/src/Tag.vala" - _database_table_unref0 (_tmp8_); -#line 563 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = _tmp10_; -#line 563 "/home/jens/Source/shotwell/src/Tag.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 563 "/home/jens/Source/shotwell/src/Tag.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 4649 "Tag.c" - goto __catch482_database_error; - } -#line 563 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 563 "/home/jens/Source/shotwell/src/Tag.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 563 "/home/jens/Source/shotwell/src/Tag.vala" - g_clear_error (&_inner_error_); -#line 563 "/home/jens/Source/shotwell/src/Tag.vala" - return NULL; -#line 4660 "Tag.c" - } -#line 563 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = tag_new (_tmp6_, DATA_OBJECT_INVALID_OBJECT_ID); -#line 563 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 563 "/home/jens/Source/shotwell/src/Tag.vala" - tag = _tmp11_; -#line 562 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_row_unref0 (_tmp6_); -#line 4670 "Tag.c" - } - goto __finally482; - __catch482_database_error: - { - GError* err = NULL; - GError* _tmp12_; -#line 562 "/home/jens/Source/shotwell/src/Tag.vala" - err = _inner_error_; -#line 562 "/home/jens/Source/shotwell/src/Tag.vala" - _inner_error_ = NULL; -#line 565 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = err; -#line 565 "/home/jens/Source/shotwell/src/Tag.vala" - app_window_database_error (_tmp12_); -#line 562 "/home/jens/Source/shotwell/src/Tag.vala" - _g_error_free0 (err); -#line 4687 "Tag.c" - } - __finally482: -#line 562 "/home/jens/Source/shotwell/src/Tag.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 562 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 562 "/home/jens/Source/shotwell/src/Tag.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 562 "/home/jens/Source/shotwell/src/Tag.vala" - g_clear_error (&_inner_error_); -#line 562 "/home/jens/Source/shotwell/src/Tag.vala" - return NULL; -#line 4700 "Tag.c" - } -#line 568 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = tag_global; -#line 568 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = tag; -#line 568 "/home/jens/Source/shotwell/src/Tag.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_OBJECT, DataObject)); -#line 570 "/home/jens/Source/shotwell/src/Tag.vala" - result = tag; -#line 570 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 4712 "Tag.c" -} - - -GeeCollection* -tag_get_terminal_tags (GeeCollection* tags) -{ - GeeCollection* result = NULL; - GeeSet* result_paths = NULL; - GeeHashSet* _tmp0_; - GeeArrayList* _result_ = NULL; - GeeArrayList* _tmp34_; -#line 573 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (tags), NULL); -#line 574 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 574 "/home/jens/Source/shotwell/src/Tag.vala" - result_paths = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SET, GeeSet); -#line 4730 "Tag.c" - { - GeeIterator* _tag_it = NULL; - GeeIterator* _tmp1_; -#line 576 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (tags, GEE_TYPE_ITERABLE, GeeIterable)); -#line 576 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_it = _tmp1_; -#line 576 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 4740 "Tag.c" - GeeIterator* _tmp2_; - Tag* tag = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - Tag* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gboolean _tmp8_; - Tag* _tmp13_; - Tag* _tmp14_; - Tag* _tmp15_; - gboolean _tmp16_; - GeeSet* _tmp30_; - Tag* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; -#line 576 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = _tag_it; -#line 576 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 576 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 4763 "Tag.c" - } -#line 576 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = _tag_it; -#line 576 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 576 "/home/jens/Source/shotwell/src/Tag.vala" - tag = (Tag*) _tmp4_; -#line 578 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = tag; -#line 578 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = tag_get_path (_tmp5_); -#line 578 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = _tmp6_; -#line 578 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = !g_str_has_prefix (_tmp7_, TAG_PATH_SEPARATOR_STRING); -#line 578 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp7_); -#line 578 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp8_) { -#line 4783 "Tag.c" - GeeSet* _tmp9_; - Tag* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; -#line 579 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = result_paths; -#line 579 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = tag; -#line 579 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = tag_get_path (_tmp10_); -#line 579 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = _tmp11_; -#line 579 "/home/jens/Source/shotwell/src/Tag.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection), _tmp12_); -#line 579 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp12_); -#line 580 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 580 "/home/jens/Source/shotwell/src/Tag.vala" - continue; -#line 4804 "Tag.c" - } -#line 586 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = tag; -#line 586 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = tag_get_hierarchical_parent (_tmp13_); -#line 586 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = _tmp14_; -#line 586 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = _tmp15_ != NULL; -#line 586 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp15_); -#line 586 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp16_) { -#line 4818 "Tag.c" - GeeSet* _tmp17_; - Tag* _tmp18_; - Tag* _tmp19_; - Tag* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - gboolean _tmp23_; -#line 589 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = result_paths; -#line 589 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = tag; -#line 589 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp19_ = tag_get_hierarchical_parent (_tmp18_); -#line 589 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp20_ = _tmp19_; -#line 589 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp21_ = tag_get_path (_tmp20_); -#line 589 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp22_ = _tmp21_; -#line 589 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp23_ = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection), _tmp22_); -#line 589 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp22_); -#line 589 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp20_); -#line 589 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp23_) { -#line 4846 "Tag.c" - GeeSet* _tmp24_; - Tag* _tmp25_; - Tag* _tmp26_; - Tag* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; -#line 590 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp24_ = result_paths; -#line 590 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp25_ = tag; -#line 590 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp26_ = tag_get_hierarchical_parent (_tmp25_); -#line 590 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp27_ = _tmp26_; -#line 590 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp28_ = tag_get_path (_tmp27_); -#line 590 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp29_ = _tmp28_; -#line 590 "/home/jens/Source/shotwell/src/Tag.vala" - gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection), _tmp29_); -#line 590 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp29_); -#line 590 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp27_); -#line 4871 "Tag.c" - } - } -#line 593 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp30_ = result_paths; -#line 593 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp31_ = tag; -#line 593 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp32_ = tag_get_path (_tmp31_); -#line 593 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp33_ = _tmp32_; -#line 593 "/home/jens/Source/shotwell/src/Tag.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_COLLECTION, GeeCollection), _tmp33_); -#line 593 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp33_); -#line 576 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 4888 "Tag.c" - } -#line 576 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tag_it); -#line 4892 "Tag.c" - } -#line 596 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp34_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 596 "/home/jens/Source/shotwell/src/Tag.vala" - _result_ = _tmp34_; -#line 4898 "Tag.c" - { - GeeIterator* _path_it = NULL; - GeeSet* _tmp35_; - GeeIterator* _tmp36_; -#line 597 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp35_ = result_paths; -#line 597 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp36_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 597 "/home/jens/Source/shotwell/src/Tag.vala" - _path_it = _tmp36_; -#line 597 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 4911 "Tag.c" - GeeIterator* _tmp37_; - gchar* path = NULL; - GeeIterator* _tmp38_; - gpointer _tmp39_; - TagSourceCollection* _tmp40_; - const gchar* _tmp41_; -#line 597 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp37_ = _path_it; -#line 597 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp37_)) { -#line 597 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 4924 "Tag.c" - } -#line 597 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp38_ = _path_it; -#line 597 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp39_ = gee_iterator_get (_tmp38_); -#line 597 "/home/jens/Source/shotwell/src/Tag.vala" - path = (gchar*) _tmp39_; -#line 598 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp40_ = tag_global; -#line 598 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp41_ = path; -#line 598 "/home/jens/Source/shotwell/src/Tag.vala" - if (tag_source_collection_exists (_tmp40_, _tmp41_, FALSE)) { -#line 4938 "Tag.c" - GeeArrayList* _tmp42_; - const gchar* _tmp43_; - Tag* _tmp44_; - Tag* _tmp45_; -#line 599 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp42_ = _result_; -#line 599 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp43_ = path; -#line 599 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp44_ = tag_for_path (_tmp43_); -#line 599 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp45_ = _tmp44_; -#line 599 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp45_); -#line 599 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp45_); -#line 4955 "Tag.c" - } else { - { - GeeIterator* _probed_tag_it = NULL; - GeeIterator* _tmp46_; -#line 601 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp46_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (tags, GEE_TYPE_ITERABLE, GeeIterable)); -#line 601 "/home/jens/Source/shotwell/src/Tag.vala" - _probed_tag_it = _tmp46_; -#line 601 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 4966 "Tag.c" - GeeIterator* _tmp47_; - Tag* probed_tag = NULL; - GeeIterator* _tmp48_; - gpointer _tmp49_; - Tag* _tmp50_; - gchar* _tmp51_; - gchar* _tmp52_; - const gchar* _tmp53_; - gboolean _tmp54_; -#line 601 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp47_ = _probed_tag_it; -#line 601 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp47_)) { -#line 601 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 4982 "Tag.c" - } -#line 601 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp48_ = _probed_tag_it; -#line 601 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp49_ = gee_iterator_get (_tmp48_); -#line 601 "/home/jens/Source/shotwell/src/Tag.vala" - probed_tag = (Tag*) _tmp49_; -#line 602 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp50_ = probed_tag; -#line 602 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp51_ = tag_get_path (_tmp50_); -#line 602 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp52_ = _tmp51_; -#line 602 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp53_ = path; -#line 602 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp54_ = g_strcmp0 (_tmp52_, _tmp53_) == 0; -#line 602 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp52_); -#line 602 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp54_) { -#line 5004 "Tag.c" - GeeArrayList* _tmp55_; - Tag* _tmp56_; -#line 603 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp55_ = _result_; -#line 603 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp56_ = probed_tag; -#line 603 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp56_); -#line 5013 "Tag.c" - } -#line 601 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (probed_tag); -#line 5017 "Tag.c" - } -#line 601 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_probed_tag_it); -#line 5021 "Tag.c" - } - } -#line 597 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (path); -#line 5026 "Tag.c" - } -#line 597 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_path_it); -#line 5030 "Tag.c" - } -#line 608 "/home/jens/Source/shotwell/src/Tag.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_result_, GEE_TYPE_COLLECTION, GeeCollection); -#line 608 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (result_paths); -#line 608 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 5038 "Tag.c" -} - - -static gint -_tag_compare_user_visible_names_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = tag_compare_user_visible_names ((Tag*) a, (Tag*) b); -#line 623 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 5051 "Tag.c" -} - - -GeeList* -tag_make_user_visible_tag_list (GeeCollection* tags) -{ - GeeList* result = NULL; - GeeHashSet* seen_tags = NULL; - GeeHashSet* _tmp0_; - GeeCollection* terminal_tags = NULL; - GeeCollection* _tmp1_; - GeeArrayList* sorted_tags = NULL; - GeeArrayList* _tmp2_; - GeeArrayList* _tmp16_; -#line 612 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (tags), NULL); -#line 613 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 613 "/home/jens/Source/shotwell/src/Tag.vala" - seen_tags = _tmp0_; -#line 614 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = tag_get_terminal_tags (tags); -#line 614 "/home/jens/Source/shotwell/src/Tag.vala" - terminal_tags = _tmp1_; -#line 615 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 615 "/home/jens/Source/shotwell/src/Tag.vala" - sorted_tags = _tmp2_; -#line 5080 "Tag.c" - { - GeeIterator* _tag_it = NULL; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; -#line 616 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = terminal_tags; -#line 616 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 616 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_it = _tmp4_; -#line 616 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 5093 "Tag.c" - GeeIterator* _tmp5_; - Tag* tag = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - gchar* user_visible_name = NULL; - Tag* _tmp8_; - gchar* _tmp9_; - GeeHashSet* _tmp10_; - const gchar* _tmp11_; -#line 616 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _tag_it; -#line 616 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 616 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 5109 "Tag.c" - } -#line 616 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = _tag_it; -#line 616 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 616 "/home/jens/Source/shotwell/src/Tag.vala" - tag = (Tag*) _tmp7_; -#line 617 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = tag; -#line 617 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = tag_get_user_visible_name (_tmp8_); -#line 617 "/home/jens/Source/shotwell/src/Tag.vala" - user_visible_name = _tmp9_; -#line 618 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = seen_tags; -#line 618 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = user_visible_name; -#line 618 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp11_)) { -#line 5129 "Tag.c" - GeeArrayList* _tmp12_; - Tag* _tmp13_; - GeeHashSet* _tmp14_; - const gchar* _tmp15_; -#line 619 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = sorted_tags; -#line 619 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = tag; -#line 619 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp13_); -#line 620 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = seen_tags; -#line 620 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = user_visible_name; -#line 620 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_); -#line 5146 "Tag.c" - } -#line 616 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (user_visible_name); -#line 616 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 5152 "Tag.c" - } -#line 616 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tag_it); -#line 5156 "Tag.c" - } -#line 623 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = sorted_tags; -#line 623 "/home/jens/Source/shotwell/src/Tag.vala" - gee_list_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_LIST, GeeList), _tag_compare_user_visible_names_gcompare_data_func, NULL, NULL); -#line 624 "/home/jens/Source/shotwell/src/Tag.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (sorted_tags, GEE_TYPE_LIST, GeeList); -#line 624 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (terminal_tags); -#line 624 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (seen_tags); -#line 624 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 5170 "Tag.c" -} - - -gchar* -tag_make_tag_markup_string (GeeList* tags, - gint highlight_index) -{ - gchar* result = NULL; - GString* builder = NULL; - GString* _tmp0_; - gint i = 0; - gboolean first = FALSE; - GString* _tmp24_; - gchar* built = NULL; - GString* _tmp25_; - const gchar* _tmp26_; - gchar* _tmp27_; -#line 627 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (GEE_IS_LIST (tags), NULL); -#line 628 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = g_string_new (""); -#line 628 "/home/jens/Source/shotwell/src/Tag.vala" - builder = _tmp0_; -#line 629 "/home/jens/Source/shotwell/src/Tag.vala" - i = 0; -#line 630 "/home/jens/Source/shotwell/src/Tag.vala" - first = TRUE; -#line 5198 "Tag.c" - { - GeeList* _tag_list = NULL; - GeeList* _tmp1_; - gint _tag_size = 0; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _tag_index = 0; -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _g_object_ref0 (tags); -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_list = _tmp1_; -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = _tag_list; -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = _tmp3_; -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_size = _tmp4_; -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_index = -1; -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 5223 "Tag.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - Tag* tag = NULL; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - gchar* tag_name = NULL; - Tag* _tmp11_; - gchar* _tmp12_; - gchar* esc_tag_name = NULL; - const gchar* _tmp13_; - gchar* _tmp14_; - gboolean _tmp15_; - gint _tmp17_; - GString* _tmp19_; - const gchar* _tmp20_; - gint _tmp21_; - gint _tmp23_; -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _tag_index; -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_index = _tmp5_ + 1; -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = _tag_index; -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = _tag_size; -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 5255 "Tag.c" - } -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = _tag_list; -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = _tag_index; -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - tag = (Tag*) _tmp10_; -#line 632 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = tag; -#line 632 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = tag_get_user_visible_name (_tmp11_); -#line 632 "/home/jens/Source/shotwell/src/Tag.vala" - tag_name = _tmp12_; -#line 633 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = tag_name; -#line 633 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = guarded_markup_escape_text (_tmp13_); -#line 633 "/home/jens/Source/shotwell/src/Tag.vala" - esc_tag_name = _tmp14_; -#line 634 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = first; -#line 634 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp15_) { -#line 635 "/home/jens/Source/shotwell/src/Tag.vala" - first = FALSE; -#line 5283 "Tag.c" - } else { - GString* _tmp16_; -#line 637 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = builder; -#line 637 "/home/jens/Source/shotwell/src/Tag.vala" - g_string_append (_tmp16_, TAG_TAG_LIST_SEPARATOR_STRING); -#line 5290 "Tag.c" - } -#line 638 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = i; -#line 638 "/home/jens/Source/shotwell/src/Tag.vala" - if (highlight_index == _tmp17_) { -#line 5296 "Tag.c" - GString* _tmp18_; -#line 639 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = builder; -#line 639 "/home/jens/Source/shotwell/src/Tag.vala" - g_string_append (_tmp18_, ""); -#line 5302 "Tag.c" - } -#line 640 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp19_ = builder; -#line 640 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp20_ = esc_tag_name; -#line 640 "/home/jens/Source/shotwell/src/Tag.vala" - g_string_append (_tmp19_, _tmp20_); -#line 641 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp21_ = i; -#line 641 "/home/jens/Source/shotwell/src/Tag.vala" - if (highlight_index == _tmp21_) { -#line 5314 "Tag.c" - GString* _tmp22_; -#line 642 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp22_ = builder; -#line 642 "/home/jens/Source/shotwell/src/Tag.vala" - g_string_append (_tmp22_, ""); -#line 5320 "Tag.c" - } -#line 643 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp23_ = i; -#line 643 "/home/jens/Source/shotwell/src/Tag.vala" - i = _tmp23_ + 1; -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (esc_tag_name); -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (tag_name); -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 5332 "Tag.c" - } -#line 631 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tag_list); -#line 5336 "Tag.c" - } -#line 646 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp24_ = builder; -#line 646 "/home/jens/Source/shotwell/src/Tag.vala" - g_string_append (_tmp24_, ""); -#line 647 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp25_ = builder; -#line 647 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp26_ = _tmp25_->str; -#line 647 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp27_ = g_strdup (_tmp26_); -#line 647 "/home/jens/Source/shotwell/src/Tag.vala" - built = _tmp27_; -#line 648 "/home/jens/Source/shotwell/src/Tag.vala" - result = built; -#line 648 "/home/jens/Source/shotwell/src/Tag.vala" - _g_string_free0 (builder); -#line 648 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 5356 "Tag.c" -} - - -gchar* -tag_prep_tag_name (const gchar* name) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 653 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 654 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = prepare_input_text (name, PREPARE_INPUT_TEXT_OPTIONS_DEFAULT, DEFAULT_USER_TEXT_INPUT_LENGTH); -#line 654 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp0_; -#line 654 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 5373 "Tag.c" -} - - -static void -_vala_array_add127 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 665 "/home/jens/Source/shotwell/src/Tag.vala" - if ((*length) == (*size)) { -#line 665 "/home/jens/Source/shotwell/src/Tag.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 665 "/home/jens/Source/shotwell/src/Tag.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 5389 "Tag.c" - } -#line 665 "/home/jens/Source/shotwell/src/Tag.vala" - (*array)[(*length)++] = value; -#line 665 "/home/jens/Source/shotwell/src/Tag.vala" - (*array)[*length] = NULL; -#line 5395 "Tag.c" -} - - -gchar** -tag_prep_tag_names (gchar** names, - int names_length1, - int* result_length1) -{ - gchar** result = NULL; - gchar** _result_ = NULL; - gchar** _tmp0_; - gint _result__length1; - gint __result__size_; - gchar** _tmp11_; - gint _tmp11__length1; -#line 660 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = g_new0 (gchar*, 0 + 1); -#line 660 "/home/jens/Source/shotwell/src/Tag.vala" - _result_ = _tmp0_; -#line 660 "/home/jens/Source/shotwell/src/Tag.vala" - _result__length1 = 0; -#line 660 "/home/jens/Source/shotwell/src/Tag.vala" - __result__size_ = _result__length1; -#line 5419 "Tag.c" - { - gint ctr = 0; -#line 662 "/home/jens/Source/shotwell/src/Tag.vala" - ctr = 0; -#line 5424 "Tag.c" - { - gboolean _tmp1_ = FALSE; -#line 662 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = TRUE; -#line 662 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 5431 "Tag.c" - gint _tmp3_; - gchar* new_name = NULL; - gint _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - const gchar* _tmp7_; -#line 662 "/home/jens/Source/shotwell/src/Tag.vala" - if (!_tmp1_) { -#line 5440 "Tag.c" - gint _tmp2_; -#line 662 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = ctr; -#line 662 "/home/jens/Source/shotwell/src/Tag.vala" - ctr = _tmp2_ + 1; -#line 5446 "Tag.c" - } -#line 662 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = FALSE; -#line 662 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = ctr; -#line 662 "/home/jens/Source/shotwell/src/Tag.vala" - if (!(_tmp3_ < names_length1)) { -#line 662 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 5456 "Tag.c" - } -#line 663 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = ctr; -#line 663 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = names[_tmp4_]; -#line 663 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = tag_prep_tag_name (_tmp5_); -#line 663 "/home/jens/Source/shotwell/src/Tag.vala" - new_name = _tmp6_; -#line 664 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = new_name; -#line 664 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp7_ != NULL) { -#line 5470 "Tag.c" - gchar** _tmp8_; - gint _tmp8__length1; - const gchar* _tmp9_; - gchar* _tmp10_; -#line 665 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = _result_; -#line 665 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8__length1 = _result__length1; -#line 665 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = new_name; -#line 665 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = g_strdup (_tmp9_); -#line 665 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_array_add127 (&_result_, &_result__length1, &__result__size_, _tmp10_); -#line 5485 "Tag.c" - } -#line 662 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (new_name); -#line 5489 "Tag.c" - } - } - } -#line 668 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = _result_; -#line 668 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11__length1 = _result__length1; -#line 668 "/home/jens/Source/shotwell/src/Tag.vala" - if (result_length1) { -#line 668 "/home/jens/Source/shotwell/src/Tag.vala" - *result_length1 = _tmp11__length1; -#line 5501 "Tag.c" - } -#line 668 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp11_; -#line 668 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 5507 "Tag.c" -} - - -static void -tag_set_raw_flat_name (Tag* self, - const gchar* name) -{ - gchar* prepped_name = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - TagRow* _tmp9_; - const gchar* _tmp10_; - gchar* _tmp11_; - Alteration* _tmp12_; - Alteration* _tmp13_; - GError * _inner_error_ = NULL; -#line 671 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_TAG (self)); -#line 671 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (name != NULL); -#line 672 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_prep_tag_name (name); -#line 672 "/home/jens/Source/shotwell/src/Tag.vala" - prepped_name = _tmp0_; -#line 674 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = prepped_name; -#line 674 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp1_ != NULL, "prepped_name != null"); -#line 675 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = prepped_name; -#line 675 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (!g_str_has_prefix (_tmp2_, TAG_PATH_SEPARATOR_STRING), "!prepped_name.has_prefix(Tag.PATH_SEPARATOR_STRING)"); -#line 5541 "Tag.c" - { - TagTable* _tmp3_; - TagTable* _tmp4_; - TagRow* _tmp5_; - TagID _tmp6_; - const gchar* _tmp7_; -#line 678 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = tag_table_get_instance (); -#line 678 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = _tmp3_; -#line 678 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = self->priv->row; -#line 678 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = _tmp5_->tag_id; -#line 678 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = prepped_name; -#line 678 "/home/jens/Source/shotwell/src/Tag.vala" - tag_table_rename (_tmp4_, &_tmp6_, _tmp7_, &_inner_error_); -#line 678 "/home/jens/Source/shotwell/src/Tag.vala" - _database_table_unref0 (_tmp4_); -#line 678 "/home/jens/Source/shotwell/src/Tag.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 678 "/home/jens/Source/shotwell/src/Tag.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 5566 "Tag.c" - goto __catch483_database_error; - } -#line 678 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (prepped_name); -#line 678 "/home/jens/Source/shotwell/src/Tag.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 678 "/home/jens/Source/shotwell/src/Tag.vala" - g_clear_error (&_inner_error_); -#line 678 "/home/jens/Source/shotwell/src/Tag.vala" - return; -#line 5577 "Tag.c" - } - } - goto __finally483; - __catch483_database_error: - { - GError* err = NULL; - GError* _tmp8_; -#line 677 "/home/jens/Source/shotwell/src/Tag.vala" - err = _inner_error_; -#line 677 "/home/jens/Source/shotwell/src/Tag.vala" - _inner_error_ = NULL; -#line 680 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = err; -#line 680 "/home/jens/Source/shotwell/src/Tag.vala" - app_window_database_error (_tmp8_); -#line 681 "/home/jens/Source/shotwell/src/Tag.vala" - _g_error_free0 (err); -#line 681 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (prepped_name); -#line 681 "/home/jens/Source/shotwell/src/Tag.vala" - return; -#line 5599 "Tag.c" - } - __finally483: -#line 677 "/home/jens/Source/shotwell/src/Tag.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 677 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (prepped_name); -#line 677 "/home/jens/Source/shotwell/src/Tag.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 677 "/home/jens/Source/shotwell/src/Tag.vala" - g_clear_error (&_inner_error_); -#line 677 "/home/jens/Source/shotwell/src/Tag.vala" - return; -#line 5612 "Tag.c" - } -#line 684 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = self->priv->row; -#line 684 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = prepped_name; -#line 684 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = g_strdup (_tmp10_); -#line 684 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp9_->name); -#line 684 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_->name = _tmp11_; -#line 685 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (self->priv->name_collation_key); -#line 685 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->name_collation_key = NULL; -#line 687 "/home/jens/Source/shotwell/src/Tag.vala" - tag_update_indexable_keywords (self); -#line 689 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = alteration_new_from_list ("metadata:name, indexable:keywords"); -#line 689 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = _tmp12_; -#line 689 "/home/jens/Source/shotwell/src/Tag.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp13_); -#line 689 "/home/jens/Source/shotwell/src/Tag.vala" - _alteration_unref0 (_tmp13_); -#line 671 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (prepped_name); -#line 5640 "Tag.c" -} - - -static void -tag_set_raw_path (Tag* self, - const gchar* path, - gboolean suppress_notify) -{ - gchar* prepped_path = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - TagSourceCollection* _tmp3_; - const gchar* _tmp4_; - TagRow* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; - GError * _inner_error_ = NULL; -#line 692 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_TAG (self)); -#line 692 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (path != NULL); -#line 693 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_prep_tag_name (path); -#line 693 "/home/jens/Source/shotwell/src/Tag.vala" - prepped_path = _tmp0_; -#line 695 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = prepped_path; -#line 695 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp1_ != NULL, "prepped_path != null"); -#line 696 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = prepped_path; -#line 696 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (g_str_has_prefix (_tmp2_, TAG_PATH_SEPARATOR_STRING), "prepped_path.has_prefix(Tag.PATH_SEPARATOR_STRING)"); -#line 697 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = tag_global; -#line 697 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = prepped_path; -#line 697 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (!tag_source_collection_exists (_tmp3_, _tmp4_, FALSE), "!Tag.global.exists(prepped_path)"); -#line 5681 "Tag.c" - { - TagTable* _tmp5_; - TagTable* _tmp6_; - TagRow* _tmp7_; - TagID _tmp8_; - const gchar* _tmp9_; -#line 700 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = tag_table_get_instance (); -#line 700 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = _tmp5_; -#line 700 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = self->priv->row; -#line 700 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = _tmp7_->tag_id; -#line 700 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = prepped_path; -#line 700 "/home/jens/Source/shotwell/src/Tag.vala" - tag_table_rename (_tmp6_, &_tmp8_, _tmp9_, &_inner_error_); -#line 700 "/home/jens/Source/shotwell/src/Tag.vala" - _database_table_unref0 (_tmp6_); -#line 700 "/home/jens/Source/shotwell/src/Tag.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 700 "/home/jens/Source/shotwell/src/Tag.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 5706 "Tag.c" - goto __catch484_database_error; - } -#line 700 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (prepped_path); -#line 700 "/home/jens/Source/shotwell/src/Tag.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 700 "/home/jens/Source/shotwell/src/Tag.vala" - g_clear_error (&_inner_error_); -#line 700 "/home/jens/Source/shotwell/src/Tag.vala" - return; -#line 5717 "Tag.c" - } - } - goto __finally484; - __catch484_database_error: - { - GError* err = NULL; - GError* _tmp10_; -#line 699 "/home/jens/Source/shotwell/src/Tag.vala" - err = _inner_error_; -#line 699 "/home/jens/Source/shotwell/src/Tag.vala" - _inner_error_ = NULL; -#line 702 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = err; -#line 702 "/home/jens/Source/shotwell/src/Tag.vala" - app_window_database_error (_tmp10_); -#line 703 "/home/jens/Source/shotwell/src/Tag.vala" - _g_error_free0 (err); -#line 703 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (prepped_path); -#line 703 "/home/jens/Source/shotwell/src/Tag.vala" - return; -#line 5739 "Tag.c" - } - __finally484: -#line 699 "/home/jens/Source/shotwell/src/Tag.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 699 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (prepped_path); -#line 699 "/home/jens/Source/shotwell/src/Tag.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 699 "/home/jens/Source/shotwell/src/Tag.vala" - g_clear_error (&_inner_error_); -#line 699 "/home/jens/Source/shotwell/src/Tag.vala" - return; -#line 5752 "Tag.c" - } -#line 706 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = self->priv->row; -#line 706 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = prepped_path; -#line 706 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = g_strdup (_tmp12_); -#line 706 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp11_->name); -#line 706 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_->name = _tmp13_; -#line 707 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (self->priv->name_collation_key); -#line 707 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->name_collation_key = NULL; -#line 709 "/home/jens/Source/shotwell/src/Tag.vala" - if (!suppress_notify) { -#line 5770 "Tag.c" - Alteration* _tmp14_; - Alteration* _tmp15_; -#line 710 "/home/jens/Source/shotwell/src/Tag.vala" - tag_update_indexable_keywords (self); -#line 711 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = alteration_new_from_list ("metadata:name, indexable:keywords"); -#line 711 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = _tmp14_; -#line 711 "/home/jens/Source/shotwell/src/Tag.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp15_); -#line 711 "/home/jens/Source/shotwell/src/Tag.vala" - _alteration_unref0 (_tmp15_); -#line 5783 "Tag.c" - } -#line 692 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (prepped_path); -#line 5787 "Tag.c" -} - - -static gchar* -tag_real_get_typename (DataSource* base) -{ - Tag * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 715 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag); -#line 716 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = g_strdup (TAG_TYPENAME); -#line 716 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp0_; -#line 716 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 5805 "Tag.c" -} - - -static gint64 -tag_real_get_instance_id (DataSource* base) -{ - Tag * self; - gint64 result = 0LL; - TagID _tmp0_ = {0}; - gint64 _tmp1_; -#line 719 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag); -#line 720 "/home/jens/Source/shotwell/src/Tag.vala" - tag_get_tag_id (self, &_tmp0_); -#line 720 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_.id; -#line 720 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp1_; -#line 720 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 5826 "Tag.c" -} - - -static gchar* -tag_real_get_name (DataObject* base) -{ - Tag * self; - gchar* result = NULL; - TagRow* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 723 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag); -#line 724 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = self->priv->row; -#line 724 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_->name; -#line 724 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 724 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp2_; -#line 724 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 5850 "Tag.c" -} - - -gchar* -tag_get_path (Tag* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 727 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (self), NULL); -#line 728 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 728 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp0_; -#line 728 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 5867 "Tag.c" -} - - -gchar* -tag_get_user_visible_name (Tag* self) -{ - gchar* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 731 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (self), NULL); -#line 732 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_get_path (self); -#line 732 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 732 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = hierarchical_tag_utilities_get_basename (_tmp1_); -#line 732 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = _tmp2_; -#line 732 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp1_); -#line 732 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp3_; -#line 732 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 5895 "Tag.c" -} - - -gchar* -tag_get_searchable_name (Tag* self) -{ - gchar* result = NULL; - gchar* istring = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 735 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (self), NULL); -#line 736 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_get_path (self); -#line 736 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 736 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = hierarchical_tag_utilities_get_basename (_tmp1_); -#line 736 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = _tmp2_; -#line 736 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = g_utf8_strdown (_tmp3_, (gssize) -1); -#line 736 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _tmp4_; -#line 736 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp3_); -#line 736 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp1_); -#line 736 "/home/jens/Source/shotwell/src/Tag.vala" - istring = _tmp5_; -#line 737 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = string_remove_diacritics (istring); -#line 737 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp6_; -#line 737 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (istring); -#line 737 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 5939 "Tag.c" -} - - -void -tag_flatten (Tag* self) -{ - Tag* _tmp0_; - Tag* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 740 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_TAG (self)); -#line 741 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_get_hierarchical_parent (self); -#line 741 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 741 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp1_ == NULL, "get_hierarchical_parent() == null"); -#line 741 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp1_); -#line 743 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = tag_get_user_visible_name (self); -#line 743 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = _tmp2_; -#line 743 "/home/jens/Source/shotwell/src/Tag.vala" - tag_set_raw_flat_name (self, _tmp3_); -#line 743 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp3_); -#line 5968 "Tag.c" -} - - -void -tag_promote (Tag* self) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 746 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_TAG (self)); -#line 747 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_get_path (self); -#line 747 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 747 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = g_str_has_prefix (_tmp1_, TAG_PATH_SEPARATOR_STRING); -#line 747 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp1_); -#line 747 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp2_) { -#line 748 "/home/jens/Source/shotwell/src/Tag.vala" - return; -#line 5996 "Tag.c" - } -#line 750 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = tag_get_path (self); -#line 750 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = _tmp3_; -#line 750 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp4_, NULL); -#line 750 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = _tmp5_; -#line 750 "/home/jens/Source/shotwell/src/Tag.vala" - tag_set_raw_path (self, _tmp6_, FALSE); -#line 750 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp6_); -#line 750 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp4_); -#line 6012 "Tag.c" -} - - -Tag* -tag_get_hierarchical_parent (Tag* self) -{ - Tag* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_; - GeeList* components = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp6_; - GeeList* _tmp7_; - gint _tmp8_; - gint _tmp9_; - GeeList* _tmp10_; - gint _tmp11_; - gint _tmp12_; - gchar* parent_path = NULL; - gchar* _tmp13_; - TagSourceCollection* _tmp28_; - const gchar* _tmp29_; -#line 753 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (self), NULL); -#line 755 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_get_path (self); -#line 755 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 755 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = !g_str_has_prefix (_tmp1_, TAG_PATH_SEPARATOR_STRING); -#line 755 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp1_); -#line 755 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp2_) { -#line 756 "/home/jens/Source/shotwell/src/Tag.vala" - result = NULL; -#line 756 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 6054 "Tag.c" - } -#line 758 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = tag_get_path (self); -#line 758 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = _tmp3_; -#line 758 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = hierarchical_tag_utilities_enumerate_path_components (_tmp4_); -#line 758 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = _tmp5_; -#line 758 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp4_); -#line 758 "/home/jens/Source/shotwell/src/Tag.vala" - components = _tmp6_; -#line 761 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = components; -#line 761 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 761 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = _tmp8_; -#line 761 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp9_ > 0, "components.size > 0"); -#line 763 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = components; -#line 763 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 763 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = _tmp11_; -#line 763 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp12_ == 1) { -#line 764 "/home/jens/Source/shotwell/src/Tag.vala" - result = NULL; -#line 764 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (components); -#line 764 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 6090 "Tag.c" - } -#line 767 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = g_strdup (""); -#line 767 "/home/jens/Source/shotwell/src/Tag.vala" - parent_path = _tmp13_; -#line 6096 "Tag.c" - { - gint i = 0; -#line 768 "/home/jens/Source/shotwell/src/Tag.vala" - i = 0; -#line 6101 "Tag.c" - { - gboolean _tmp14_ = FALSE; -#line 768 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = TRUE; -#line 768 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 6108 "Tag.c" - gint _tmp16_; - GeeList* _tmp17_; - gint _tmp18_; - gint _tmp19_; - const gchar* _tmp20_; - GeeList* _tmp21_; - gint _tmp22_; - gpointer _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; -#line 768 "/home/jens/Source/shotwell/src/Tag.vala" - if (!_tmp14_) { -#line 6123 "Tag.c" - gint _tmp15_; -#line 768 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = i; -#line 768 "/home/jens/Source/shotwell/src/Tag.vala" - i = _tmp15_ + 1; -#line 6129 "Tag.c" - } -#line 768 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = FALSE; -#line 768 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = i; -#line 768 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = components; -#line 768 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 768 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp19_ = _tmp18_; -#line 768 "/home/jens/Source/shotwell/src/Tag.vala" - if (!(_tmp16_ < (_tmp19_ - 1))) { -#line 768 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 6145 "Tag.c" - } -#line 769 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp20_ = parent_path; -#line 769 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp21_ = components; -#line 769 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp22_ = i; -#line 769 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp23_ = gee_list_get (_tmp21_, _tmp22_); -#line 769 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp24_ = (gchar*) _tmp23_; -#line 769 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp25_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp24_, NULL); -#line 769 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp26_ = _tmp25_; -#line 769 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp27_ = g_strconcat (_tmp20_, _tmp26_, NULL); -#line 769 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (parent_path); -#line 769 "/home/jens/Source/shotwell/src/Tag.vala" - parent_path = _tmp27_; -#line 769 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp26_); -#line 769 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp24_); -#line 6171 "Tag.c" - } - } - } -#line 771 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp28_ = tag_global; -#line 771 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp29_ = parent_path; -#line 771 "/home/jens/Source/shotwell/src/Tag.vala" - if (tag_source_collection_exists (_tmp28_, _tmp29_, FALSE)) { -#line 6181 "Tag.c" - const gchar* _tmp30_; - Tag* _tmp31_; -#line 772 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp30_ = parent_path; -#line 772 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp31_ = tag_for_path (_tmp30_); -#line 772 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp31_; -#line 772 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (parent_path); -#line 772 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (components); -#line 772 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 6196 "Tag.c" - } else { -#line 774 "/home/jens/Source/shotwell/src/Tag.vala" - result = NULL; -#line 774 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (parent_path); -#line 774 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (components); -#line 774 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 6206 "Tag.c" - } -#line 753 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (parent_path); -#line 753 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (components); -#line 6212 "Tag.c" -} - - -gint -tag_get_attachment_count (Tag* self, - MediaSource* source) -{ - gint result = 0; - gint _result_ = 0; -#line 777 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (self), 0); -#line 777 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), 0); -#line 779 "/home/jens/Source/shotwell/src/Tag.vala" - if (!tag_contains (self, source)) { -#line 780 "/home/jens/Source/shotwell/src/Tag.vala" - result = 0; -#line 780 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 6232 "Tag.c" - } -#line 783 "/home/jens/Source/shotwell/src/Tag.vala" - _result_ = 1; -#line 6236 "Tag.c" - { - GeeList* _child_list = NULL; - GeeList* _tmp0_; - gint _child_size = 0; - GeeList* _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint _child_index = 0; -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_get_hierarchical_children (self); -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - _child_list = _tmp0_; -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _child_list; -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = _tmp2_; -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - _child_size = _tmp3_; -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - _child_index = -1; -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 6261 "Tag.c" - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; - Tag* child = NULL; - GeeList* _tmp7_; - gint _tmp8_; - gpointer _tmp9_; - Tag* _tmp10_; -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = _child_index; -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - _child_index = _tmp4_ + 1; -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _child_index; -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = _child_size; -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - if (!(_tmp5_ < _tmp6_)) { -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 6282 "Tag.c" - } -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = _child_list; -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = _child_index; -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = gee_list_get (_tmp7_, _tmp8_); -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - child = (Tag*) _tmp9_; -#line 787 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = child; -#line 787 "/home/jens/Source/shotwell/src/Tag.vala" - if (tag_contains (_tmp10_, source)) { -#line 6296 "Tag.c" - gint _tmp11_; -#line 788 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = _result_; -#line 788 "/home/jens/Source/shotwell/src/Tag.vala" - _result_ = _tmp11_ + 1; -#line 6302 "Tag.c" - } -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (child); -#line 6306 "Tag.c" - } -#line 786 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_child_list); -#line 6310 "Tag.c" - } -#line 790 "/home/jens/Source/shotwell/src/Tag.vala" - result = _result_; -#line 790 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 6316 "Tag.c" -} - - -/** - * gets all hierarchical children of a tag recursively; tags are enumerated from most-derived - * to least-derived - */ -GeeList* -tag_get_hierarchical_children (Tag* self) -{ - GeeList* result = NULL; - GeeArrayList* _result_ = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* result_reversed = NULL; - GeeArrayList* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gboolean _tmp4_; - GeeTreeSet* forward_sorted_paths = NULL; - GeeTreeSet* _tmp5_; - gchar* target_path = NULL; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 797 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (self), NULL); -#line 798 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 798 "/home/jens/Source/shotwell/src/Tag.vala" - _result_ = _tmp0_; -#line 799 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 799 "/home/jens/Source/shotwell/src/Tag.vala" - result_reversed = _tmp1_; -#line 802 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = tag_get_path (self); -#line 802 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = _tmp2_; -#line 802 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = !g_str_has_prefix (_tmp3_, TAG_PATH_SEPARATOR_STRING); -#line 802 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp3_); -#line 802 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp4_) { -#line 803 "/home/jens/Source/shotwell/src/Tag.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_result_, GEE_TYPE_LIST, GeeList); -#line 803 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (result_reversed); -#line 803 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 6368 "Tag.c" - } -#line 807 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 807 "/home/jens/Source/shotwell/src/Tag.vala" - forward_sorted_paths = _tmp5_; -#line 809 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = tag_get_path (self); -#line 809 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = _tmp6_; -#line 809 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = g_strconcat (_tmp7_, TAG_PATH_SEPARATOR_STRING, NULL); -#line 809 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = _tmp8_; -#line 809 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp7_); -#line 809 "/home/jens/Source/shotwell/src/Tag.vala" - target_path = _tmp9_; -#line 6386 "Tag.c" - { - GeeIterator* _path_it = NULL; - TagSourceCollection* _tmp10_; - GeeCollection* _tmp11_; - GeeCollection* _tmp12_; - GeeIterator* _tmp13_; - GeeIterator* _tmp14_; -#line 810 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = tag_global; -#line 810 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = tag_source_collection_get_all_names (_tmp10_); -#line 810 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = _tmp11_; -#line 810 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 810 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = _tmp13_; -#line 810 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp12_); -#line 810 "/home/jens/Source/shotwell/src/Tag.vala" - _path_it = _tmp14_; -#line 810 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 6410 "Tag.c" - GeeIterator* _tmp15_; - gchar* path = NULL; - GeeIterator* _tmp16_; - gpointer _tmp17_; - const gchar* _tmp18_; - const gchar* _tmp19_; -#line 810 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = _path_it; -#line 810 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp15_)) { -#line 810 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 6423 "Tag.c" - } -#line 810 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = _path_it; -#line 810 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = gee_iterator_get (_tmp16_); -#line 810 "/home/jens/Source/shotwell/src/Tag.vala" - path = (gchar*) _tmp17_; -#line 811 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = path; -#line 811 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp19_ = target_path; -#line 811 "/home/jens/Source/shotwell/src/Tag.vala" - if (g_str_has_prefix (_tmp18_, _tmp19_)) { -#line 6437 "Tag.c" - GeeTreeSet* _tmp20_; - const gchar* _tmp21_; -#line 812 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp20_ = forward_sorted_paths; -#line 812 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp21_ = path; -#line 812 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp21_); -#line 6446 "Tag.c" - } -#line 810 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (path); -#line 6450 "Tag.c" - } -#line 810 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_path_it); -#line 6454 "Tag.c" - } - { - GeeIterator* _tmp_it = NULL; - GeeTreeSet* _tmp22_; - GeeIterator* _tmp23_; -#line 815 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp22_ = forward_sorted_paths; -#line 815 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp23_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 815 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp_it = _tmp23_; -#line 815 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 6468 "Tag.c" - GeeIterator* _tmp24_; - gchar* tmp = NULL; - GeeIterator* _tmp25_; - gpointer _tmp26_; - GeeArrayList* _tmp27_; - const gchar* _tmp28_; - Tag* _tmp29_; - Tag* _tmp30_; -#line 815 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp24_ = _tmp_it; -#line 815 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp24_)) { -#line 815 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 6483 "Tag.c" - } -#line 815 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp25_ = _tmp_it; -#line 815 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp26_ = gee_iterator_get (_tmp25_); -#line 815 "/home/jens/Source/shotwell/src/Tag.vala" - tmp = (gchar*) _tmp26_; -#line 816 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp27_ = result_reversed; -#line 816 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp28_ = tmp; -#line 816 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp29_ = tag_for_path (_tmp28_); -#line 816 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp30_ = _tmp29_; -#line 816 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp30_); -#line 816 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp30_); -#line 815 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (tmp); -#line 6505 "Tag.c" - } -#line 815 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp_it); -#line 6509 "Tag.c" - } - { - gint index = 0; - GeeArrayList* _tmp31_; - gint _tmp32_; - gint _tmp33_; -#line 819 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp31_ = result_reversed; -#line 819 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp32_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 819 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp33_ = _tmp32_; -#line 819 "/home/jens/Source/shotwell/src/Tag.vala" - index = _tmp33_ - 1; -#line 6524 "Tag.c" - { - gboolean _tmp34_ = FALSE; -#line 819 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp34_ = TRUE; -#line 819 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 6531 "Tag.c" - gint _tmp36_; - GeeArrayList* _tmp37_; - GeeArrayList* _tmp38_; - gint _tmp39_; - gpointer _tmp40_; - Tag* _tmp41_; -#line 819 "/home/jens/Source/shotwell/src/Tag.vala" - if (!_tmp34_) { -#line 6540 "Tag.c" - gint _tmp35_; -#line 819 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp35_ = index; -#line 819 "/home/jens/Source/shotwell/src/Tag.vala" - index = _tmp35_ - 1; -#line 6546 "Tag.c" - } -#line 819 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp34_ = FALSE; -#line 819 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp36_ = index; -#line 819 "/home/jens/Source/shotwell/src/Tag.vala" - if (!(_tmp36_ >= 0)) { -#line 819 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 6556 "Tag.c" - } -#line 820 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp37_ = _result_; -#line 820 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp38_ = result_reversed; -#line 820 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp39_ = index; -#line 820 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp40_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp39_); -#line 820 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp41_ = (Tag*) _tmp40_; -#line 820 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp41_); -#line 820 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp41_); -#line 6572 "Tag.c" - } - } - } -#line 823 "/home/jens/Source/shotwell/src/Tag.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_result_, GEE_TYPE_LIST, GeeList); -#line 823 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (target_path); -#line 823 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (forward_sorted_paths); -#line 823 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (result_reversed); -#line 823 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 6586 "Tag.c" -} - - -static gchar* -tag_get_next_untitled_tag_name (const gchar* _prefix) -{ - gchar* result = NULL; - const gchar* _tmp0_ = NULL; - gchar* prefix = NULL; - gchar* _tmp1_; - gchar* candidate_name = NULL; - gchar* _tmp2_; - guint64 counter = 0ULL; -#line 829 "/home/jens/Source/shotwell/src/Tag.vala" - if (_prefix != NULL) { -#line 829 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = _prefix; -#line 6604 "Tag.c" - } else { -#line 829 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = ""; -#line 6608 "Tag.c" - } -#line 829 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 829 "/home/jens/Source/shotwell/src/Tag.vala" - prefix = _tmp1_; -#line 830 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = g_strdup (_ ("untitled")); -#line 830 "/home/jens/Source/shotwell/src/Tag.vala" - candidate_name = _tmp2_; -#line 831 "/home/jens/Source/shotwell/src/Tag.vala" - counter = (guint64) 0; -#line 6620 "Tag.c" - { - gboolean _tmp3_ = FALSE; -#line 832 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = TRUE; -#line 832 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 6627 "Tag.c" - gchar* _tmp5_ = NULL; - guint64 _tmp6_; - gchar* path_candidate = NULL; - const gchar* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - TagSourceCollection* _tmp18_; - const gchar* _tmp19_; - guint64 _tmp20_; -#line 832 "/home/jens/Source/shotwell/src/Tag.vala" - if (!_tmp3_) { -#line 6642 "Tag.c" - guint64 _tmp4_; -#line 840 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = counter; -#line 840 "/home/jens/Source/shotwell/src/Tag.vala" - if (!(_tmp4_ < G_MAXUINT64)) { -#line 840 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 6650 "Tag.c" - } - } -#line 832 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = FALSE; -#line 834 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = counter; -#line 834 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp6_ == ((guint64) 0)) { -#line 6659 "Tag.c" - gchar* _tmp7_; -#line 834 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = g_strdup (""); -#line 834 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp5_); -#line 834 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _tmp7_; -#line 6667 "Tag.c" - } else { - guint64 _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; -#line 834 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = counter; -#line 834 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = g_strdup_printf ("%" G_GUINT64_FORMAT, _tmp8_); -#line 834 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = _tmp9_; -#line 834 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = g_strconcat (" ", _tmp10_, NULL); -#line 834 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp5_); -#line 834 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _tmp11_; -#line 834 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp10_); -#line 6687 "Tag.c" - } -#line 833 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = prefix; -#line 833 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = candidate_name; -#line 833 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = g_strconcat (_tmp12_, _tmp13_, NULL); -#line 833 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = _tmp14_; -#line 833 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = g_strconcat (_tmp15_, _tmp5_, NULL); -#line 833 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = _tmp16_; -#line 833 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp15_); -#line 833 "/home/jens/Source/shotwell/src/Tag.vala" - path_candidate = _tmp17_; -#line 836 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = tag_global; -#line 836 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp19_ = path_candidate; -#line 836 "/home/jens/Source/shotwell/src/Tag.vala" - if (!tag_source_collection_exists (_tmp18_, _tmp19_, FALSE)) { -#line 837 "/home/jens/Source/shotwell/src/Tag.vala" - result = path_candidate; -#line 837 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp5_); -#line 837 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (candidate_name); -#line 837 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (prefix); -#line 837 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 6721 "Tag.c" - } -#line 839 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp20_ = counter; -#line 839 "/home/jens/Source/shotwell/src/Tag.vala" - counter = _tmp20_ + 1; -#line 832 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (path_candidate); -#line 832 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp5_); -#line 6731 "Tag.c" - } - } -#line 843 "/home/jens/Source/shotwell/src/Tag.vala" - g_assert_not_reached (); -#line 828 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (candidate_name); -#line 828 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (prefix); -#line 6740 "Tag.c" -} - - -Tag* -tag_create_new_child (Tag* self) -{ - Tag* result = NULL; - gchar* path_prefix = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - Tag* _tmp12_; - Tag* _tmp13_; -#line 846 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (self), NULL); -#line 847 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_get_path (self); -#line 847 "/home/jens/Source/shotwell/src/Tag.vala" - path_prefix = _tmp0_; -#line 849 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = path_prefix; -#line 849 "/home/jens/Source/shotwell/src/Tag.vala" - if (!g_str_has_prefix (_tmp1_, TAG_PATH_SEPARATOR_STRING)) { -#line 6768 "Tag.c" - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 850 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = tag_get_path (self); -#line 850 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = _tmp2_; -#line 850 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = hierarchical_tag_utilities_flat_to_hierarchical (_tmp3_); -#line 850 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _tmp4_; -#line 850 "/home/jens/Source/shotwell/src/Tag.vala" - tag_set_raw_path (self, _tmp5_, FALSE); -#line 850 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp5_); -#line 850 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp3_); -#line 852 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = tag_get_path (self); -#line 852 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (path_prefix); -#line 852 "/home/jens/Source/shotwell/src/Tag.vala" - path_prefix = _tmp6_; -#line 6794 "Tag.c" - } -#line 855 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = path_prefix; -#line 855 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = g_strconcat (_tmp7_, TAG_PATH_SEPARATOR_STRING, NULL); -#line 855 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = _tmp8_; -#line 855 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = tag_get_next_untitled_tag_name (_tmp9_); -#line 855 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = _tmp10_; -#line 855 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = tag_for_path (_tmp11_); -#line 855 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = _tmp12_; -#line 855 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp11_); -#line 855 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp9_); -#line 855 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp13_; -#line 855 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (path_prefix); -#line 855 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 6820 "Tag.c" -} - - -Tag* -tag_create_new_root (void) -{ - Tag* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - Tag* _tmp2_; - Tag* _tmp3_; -#line 859 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_get_next_untitled_tag_name (NULL); -#line 859 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 859 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = tag_for_path (_tmp1_); -#line 859 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = _tmp2_; -#line 859 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp1_); -#line 859 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp3_; -#line 859 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 6846 "Tag.c" -} - - -gchar* -tag_get_name_collation_key (Tag* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp4_; - gchar* _tmp5_; -#line 862 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (self), NULL); -#line 863 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = self->priv->name_collation_key; -#line 863 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp0_ == NULL) { -#line 6863 "Tag.c" - TagRow* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; -#line 864 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = self->priv->row; -#line 864 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = _tmp1_->name; -#line 864 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = g_utf8_collate_key (_tmp2_, (gssize) -1); -#line 864 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (self->priv->name_collation_key); -#line 864 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->name_collation_key = _tmp3_; -#line 6877 "Tag.c" - } -#line 866 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = self->priv->name_collation_key; -#line 866 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = g_strdup (_tmp4_); -#line 866 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp5_; -#line 866 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 6887 "Tag.c" -} - - -static gchar* -tag_real_to_string (DataObject* base) -{ - Tag * self; - gchar* result = NULL; - TagRow* _tmp0_; - const gchar* _tmp1_; - ViewCollection* _tmp2_; - gchar* _tmp3_; -#line 869 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag); -#line 870 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = self->priv->row; -#line 870 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_->name; -#line 870 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = self->priv->media_views; -#line 870 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = g_strdup_printf ("Tag %s (%d sources)", _tmp1_, data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection))); -#line 870 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp3_; -#line 870 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 6914 "Tag.c" -} - - -static gboolean -tag_real_equals (DataSource* base, - DataSource* source) -{ - Tag * self; - gboolean result = FALSE; - Tag* tag = NULL; - Tag* _tmp0_; - Tag* _tmp1_; -#line 873 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag); -#line 873 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail ((source == NULL) || IS_DATA_SOURCE (source), FALSE); -#line 875 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_TAG) ? ((Tag*) source) : NULL); -#line 875 "/home/jens/Source/shotwell/src/Tag.vala" - tag = _tmp0_; -#line 876 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = tag; -#line 876 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp1_ != NULL) { -#line 6939 "Tag.c" - Tag* _tmp2_; -#line 877 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = tag; -#line 877 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp2_ != self) { -#line 6945 "Tag.c" - Tag* _tmp3_; - TagRow* _tmp4_; - TagID _tmp5_; - gint64 _tmp6_; - TagRow* _tmp7_; - TagID _tmp8_; - gint64 _tmp9_; -#line 878 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = tag; -#line 878 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = _tmp3_->priv->row; -#line 878 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _tmp4_->tag_id; -#line 878 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = _tmp5_.id; -#line 878 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = self->priv->row; -#line 878 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = _tmp7_->tag_id; -#line 878 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = _tmp8_.id; -#line 878 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp6_ != _tmp9_, "tag.row.tag_id.id != row.tag_id.id"); -#line 6969 "Tag.c" - } - } -#line 882 "/home/jens/Source/shotwell/src/Tag.vala" - result = DATA_SOURCE_CLASS (tag_parent_class)->equals (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource), source); -#line 882 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (tag); -#line 882 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 6978 "Tag.c" -} - - -void -tag_get_tag_id (Tag* self, - TagID* result) -{ - TagRow* _tmp0_; - TagID _tmp1_; -#line 885 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_TAG (self)); -#line 886 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = self->priv->row; -#line 886 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_->tag_id; -#line 886 "/home/jens/Source/shotwell/src/Tag.vala" - *result = _tmp1_; -#line 886 "/home/jens/Source/shotwell/src/Tag.vala" - return; -#line 6998 "Tag.c" -} - - -static SourceSnapshot* -tag_real_save_snapshot (DataSource* base) -{ - Tag * self; - SourceSnapshot* result = NULL; - TagTagSnapshot* _tmp0_; -#line 889 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag); -#line 890 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_tag_snapshot_new (self); -#line 890 "/home/jens/Source/shotwell/src/Tag.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_SNAPSHOT, SourceSnapshot); -#line 890 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 7016 "Tag.c" -} - - -static SourceProxy* -tag_real_get_proxy (Proxyable* base) -{ - Tag * self; - SourceProxy* result = NULL; - TagTagProxy* _tmp0_; -#line 893 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag); -#line 894 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_tag_proxy_new (self); -#line 894 "/home/jens/Source/shotwell/src/Tag.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_PROXY, SourceProxy); -#line 894 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 7034 "Tag.c" -} - - -Tag* -tag_reconstitute (gint64 object_id, - TagRow* row) -{ - Tag* result = NULL; - Tag* tag = NULL; - Tag* _tmp6_; - TagSourceCollection* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - GError * _inner_error_ = NULL; -#line 897 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG_ROW (row), NULL); -#line 7051 "Tag.c" - { - TagID _tmp0_ = {0}; - TagTable* _tmp1_; - TagTable* _tmp2_; - TagID _tmp3_ = {0}; - TagID _tmp4_; -#line 900 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = tag_table_get_instance (); -#line 900 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = _tmp1_; -#line 900 "/home/jens/Source/shotwell/src/Tag.vala" - tag_table_create_from_row (_tmp2_, row, &_tmp3_, &_inner_error_); -#line 900 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = _tmp3_; -#line 900 "/home/jens/Source/shotwell/src/Tag.vala" - _database_table_unref0 (_tmp2_); -#line 900 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = _tmp4_; -#line 900 "/home/jens/Source/shotwell/src/Tag.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 900 "/home/jens/Source/shotwell/src/Tag.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 7074 "Tag.c" - goto __catch485_database_error; - } -#line 900 "/home/jens/Source/shotwell/src/Tag.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 900 "/home/jens/Source/shotwell/src/Tag.vala" - g_clear_error (&_inner_error_); -#line 900 "/home/jens/Source/shotwell/src/Tag.vala" - return NULL; -#line 7083 "Tag.c" - } -#line 900 "/home/jens/Source/shotwell/src/Tag.vala" - row->tag_id = _tmp0_; -#line 7087 "Tag.c" - } - goto __finally485; - __catch485_database_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 899 "/home/jens/Source/shotwell/src/Tag.vala" - err = _inner_error_; -#line 899 "/home/jens/Source/shotwell/src/Tag.vala" - _inner_error_ = NULL; -#line 902 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = err; -#line 902 "/home/jens/Source/shotwell/src/Tag.vala" - app_window_database_error (_tmp5_); -#line 899 "/home/jens/Source/shotwell/src/Tag.vala" - _g_error_free0 (err); -#line 7104 "Tag.c" - } - __finally485: -#line 899 "/home/jens/Source/shotwell/src/Tag.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 899 "/home/jens/Source/shotwell/src/Tag.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 899 "/home/jens/Source/shotwell/src/Tag.vala" - g_clear_error (&_inner_error_); -#line 899 "/home/jens/Source/shotwell/src/Tag.vala" - return NULL; -#line 7115 "Tag.c" - } -#line 905 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = tag_new (row, object_id); -#line 905 "/home/jens/Source/shotwell/src/Tag.vala" - tag = _tmp6_; -#line 906 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = tag_global; -#line 906 "/home/jens/Source/shotwell/src/Tag.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject)); -#line 908 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject)); -#line 908 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = _tmp8_; -#line 908 "/home/jens/Source/shotwell/src/Tag.vala" - g_debug ("Tag.vala:908: Reconstituted %s", _tmp9_); -#line 908 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp9_); -#line 910 "/home/jens/Source/shotwell/src/Tag.vala" - result = tag; -#line 910 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 7137 "Tag.c" -} - - -static gboolean -tag_real_has_links (ContainerSource* base) -{ - Tag * self; - gboolean result = FALSE; - LibraryPhotoSourceCollection* _tmp0_; - SourceBacklink* _tmp1_; - SourceBacklink* _tmp2_; - gboolean _tmp3_; -#line 913 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag); -#line 914 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = library_photo_global; -#line 914 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = container_source_get_backlink (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource)); -#line 914 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = _tmp1_; -#line 914 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = source_collection_has_backlink (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp2_); -#line 914 "/home/jens/Source/shotwell/src/Tag.vala" - _source_backlink_unref0 (_tmp2_); -#line 914 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp3_; -#line 914 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 7166 "Tag.c" -} - - -static SourceBacklink* -tag_real_get_backlink (ContainerSource* base) -{ - Tag * self; - SourceBacklink* result = NULL; - SourceBacklink* _tmp0_; -#line 917 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag); -#line 918 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = source_backlink_new_from_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource)); -#line 918 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp0_; -#line 918 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 7184 "Tag.c" -} - - -static void -tag_real_break_link (ContainerSource* base, - DataSource* source) -{ - Tag * self; - GeeList* _tmp0_; - GeeList* _tmp1_; -#line 921 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag); -#line 921 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 922 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->unlinking = TRUE; -#line 924 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_detach (self, G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource)); -#line 924 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 924 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp1_); -#line 926 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->unlinking = FALSE; -#line 7209 "Tag.c" -} - - -static void -tag_real_break_link_many (ContainerSource* base, - GeeCollection* sources) -{ - Tag * self; - GeeMultiMap* _tmp0_; - GeeMultiMap* _tmp1_; -#line 929 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag); -#line 929 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 930 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->unlinking = TRUE; -#line 932 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_detach_many (self, G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_COLLECTION, GeeCollection)); -#line 932 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 932 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp1_); -#line 934 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->unlinking = FALSE; -#line 7234 "Tag.c" -} - - -static void -tag_real_establish_link (ContainerSource* base, - DataSource* source) -{ - Tag * self; -#line 937 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag); -#line 937 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 938 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->relinking = TRUE; -#line 940 "/home/jens/Source/shotwell/src/Tag.vala" - tag_attach (self, G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto), TYPE_MEDIA_SOURCE, MediaSource)); -#line 942 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->relinking = FALSE; -#line 7253 "Tag.c" -} - - -static void -tag_real_establish_link_many (ContainerSource* base, - GeeCollection* sources) -{ - Tag * self; -#line 945 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag); -#line 945 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 946 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->relinking = TRUE; -#line 948 "/home/jens/Source/shotwell/src/Tag.vala" - tag_attach_many (self, G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_COLLECTION, GeeCollection)); -#line 950 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->relinking = FALSE; -#line 7272 "Tag.c" -} - - -static void -tag_update_indexable_keywords (Tag* self) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 953 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_TAG (self)); -#line 954 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_get_searchable_name (self); -#line 954 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 954 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = indexable_prepare_indexable_string (_tmp1_); -#line 954 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (self->priv->indexable_keywords); -#line 954 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->indexable_keywords = _tmp2_; -#line 954 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp1_); -#line 7296 "Tag.c" -} - - -static const gchar* -tag_real_get_indexable_keywords (Indexable* base) -{ - Tag * self; - const gchar* result = NULL; - const gchar* _tmp0_; -#line 957 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag); -#line 958 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = self->priv->indexable_keywords; -#line 958 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp0_; -#line 958 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 7314 "Tag.c" -} - - -void -tag_attach (Tag* self, - MediaSource* source) -{ - Tag* attach_to = NULL; - Tag* _tmp0_; -#line 961 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_TAG (self)); -#line 961 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_MEDIA_SOURCE (source)); -#line 962 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = _g_object_ref0 (self); -#line 962 "/home/jens/Source/shotwell/src/Tag.vala" - attach_to = _tmp0_; -#line 963 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 7334 "Tag.c" - Tag* _tmp1_; - Tag* _tmp2_; - ViewCollection* _tmp3_; - Tag* _tmp8_; - Tag* _tmp9_; -#line 963 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = attach_to; -#line 963 "/home/jens/Source/shotwell/src/Tag.vala" - if (!(_tmp1_ != NULL)) { -#line 963 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 7346 "Tag.c" - } -#line 964 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = attach_to; -#line 964 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = _tmp2_->priv->media_views; -#line 964 "/home/jens/Source/shotwell/src/Tag.vala" - if (!view_collection_has_view_for_source (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource))) { -#line 7354 "Tag.c" - Tag* _tmp4_; - ViewCollection* _tmp5_; - ThumbnailView* _tmp6_; - ThumbnailView* _tmp7_; -#line 965 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = attach_to; -#line 965 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _tmp4_->priv->media_views; -#line 965 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 965 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = _tmp6_; -#line 965 "/home/jens/Source/shotwell/src/Tag.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_OBJECT, DataObject)); -#line 965 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp7_); -#line 7371 "Tag.c" - } -#line 968 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = attach_to; -#line 968 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = tag_get_hierarchical_parent (_tmp8_); -#line 968 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (attach_to); -#line 968 "/home/jens/Source/shotwell/src/Tag.vala" - attach_to = _tmp9_; -#line 7381 "Tag.c" - } -#line 961 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (attach_to); -#line 7385 "Tag.c" -} - - -void -tag_attach_many (Tag* self, - GeeCollection* sources) -{ - Tag* attach_to = NULL; - Tag* _tmp0_; -#line 972 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_TAG (self)); -#line 972 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 973 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = _g_object_ref0 (self); -#line 973 "/home/jens/Source/shotwell/src/Tag.vala" - attach_to = _tmp0_; -#line 974 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 7405 "Tag.c" - Tag* _tmp1_; - GeeArrayList* view_list = NULL; - GeeArrayList* _tmp2_; - GeeArrayList* _tmp14_; - gint _tmp15_; - gint _tmp16_; - Tag* _tmp22_; - Tag* _tmp23_; -#line 974 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = attach_to; -#line 974 "/home/jens/Source/shotwell/src/Tag.vala" - if (!(_tmp1_ != NULL)) { -#line 974 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 7420 "Tag.c" - } -#line 975 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = gee_array_list_new (TYPE_THUMBNAIL_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 975 "/home/jens/Source/shotwell/src/Tag.vala" - view_list = _tmp2_; -#line 7426 "Tag.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp3_; -#line 976 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 976 "/home/jens/Source/shotwell/src/Tag.vala" - _source_it = _tmp3_; -#line 976 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 7436 "Tag.c" - GeeIterator* _tmp4_; - MediaSource* source = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - Tag* _tmp7_; - ViewCollection* _tmp8_; - MediaSource* _tmp9_; -#line 976 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = _source_it; -#line 976 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 976 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 7450 "Tag.c" - } -#line 976 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _source_it; -#line 976 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 976 "/home/jens/Source/shotwell/src/Tag.vala" - source = (MediaSource*) _tmp6_; -#line 977 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = attach_to; -#line 977 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = _tmp7_->priv->media_views; -#line 977 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = source; -#line 977 "/home/jens/Source/shotwell/src/Tag.vala" - if (!view_collection_has_view_for_source (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_SOURCE, DataSource))) { -#line 7466 "Tag.c" - GeeArrayList* _tmp10_; - MediaSource* _tmp11_; - ThumbnailView* _tmp12_; - ThumbnailView* _tmp13_; -#line 978 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = view_list; -#line 978 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = source; -#line 978 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = thumbnail_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 978 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = _tmp12_; -#line 978 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp13_); -#line 978 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp13_); -#line 7483 "Tag.c" - } -#line 976 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (source); -#line 7487 "Tag.c" - } -#line 976 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_source_it); -#line 7491 "Tag.c" - } -#line 981 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = view_list; -#line 981 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 981 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = _tmp15_; -#line 981 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp16_ > 0) { -#line 7501 "Tag.c" - Tag* _tmp17_; - ViewCollection* _tmp18_; - GeeArrayList* _tmp19_; - GeeCollection* _tmp20_; - GeeCollection* _tmp21_; -#line 982 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = attach_to; -#line 982 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = _tmp17_->priv->media_views; -#line 982 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp19_ = view_list; -#line 982 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp20_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL); -#line 982 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp21_ = _tmp20_; -#line 982 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp21_); -#line 7519 "Tag.c" - } -#line 984 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp22_ = attach_to; -#line 984 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp23_ = tag_get_hierarchical_parent (_tmp22_); -#line 984 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (attach_to); -#line 984 "/home/jens/Source/shotwell/src/Tag.vala" - attach_to = _tmp23_; -#line 974 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (view_list); -#line 7531 "Tag.c" - } -#line 972 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (attach_to); -#line 7535 "Tag.c" -} - - -GeeList* -tag_detach (Tag* self, - MediaSource* source) -{ - GeeList* result = NULL; - DataView* this_view = NULL; - ViewCollection* _tmp0_; - DataView* _tmp1_; - DataView* _tmp2_; - GeeList* detached_from = NULL; - GeeArrayList* _tmp3_; - ViewCollection* _tmp27_; - ViewCollection* _tmp28_; - DataView* _tmp29_; - Marker* _tmp30_; - Marker* _tmp31_; - GeeList* _tmp32_; -#line 991 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (self), NULL); -#line 991 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL); -#line 992 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = self->priv->media_views; -#line 992 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = view_collection_get_view_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)); -#line 992 "/home/jens/Source/shotwell/src/Tag.vala" - this_view = _tmp1_; -#line 993 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = this_view; -#line 993 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp2_ == NULL) { -#line 994 "/home/jens/Source/shotwell/src/Tag.vala" - result = NULL; -#line 994 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (this_view); -#line 994 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 7576 "Tag.c" - } -#line 996 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = gee_array_list_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 996 "/home/jens/Source/shotwell/src/Tag.vala" - detached_from = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_LIST, GeeList); -#line 7582 "Tag.c" - { - GeeList* _child_tag_list = NULL; - GeeList* _tmp4_; - gint _child_tag_size = 0; - GeeList* _tmp5_; - gint _tmp6_; - gint _tmp7_; - gint _child_tag_index = 0; -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = tag_get_hierarchical_children (self); -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - _child_tag_list = _tmp4_; -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _child_tag_list; -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = _tmp6_; -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - _child_tag_size = _tmp7_; -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - _child_tag_index = -1; -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 7607 "Tag.c" - gint _tmp8_; - gint _tmp9_; - gint _tmp10_; - Tag* child_tag = NULL; - GeeList* _tmp11_; - gint _tmp12_; - gpointer _tmp13_; - DataView* child_view = NULL; - Tag* _tmp14_; - ViewCollection* _tmp15_; - DataView* _tmp16_; - DataView* _tmp17_; -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = _child_tag_index; -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - _child_tag_index = _tmp8_ + 1; -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = _child_tag_index; -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = _child_tag_size; -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - if (!(_tmp9_ < _tmp10_)) { -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 7632 "Tag.c" - } -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = _child_tag_list; -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = _child_tag_index; -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = gee_list_get (_tmp11_, _tmp12_); -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - child_tag = (Tag*) _tmp13_; -#line 999 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = child_tag; -#line 999 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = _tmp14_->priv->media_views; -#line 999 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = view_collection_get_view_for_source (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)); -#line 999 "/home/jens/Source/shotwell/src/Tag.vala" - child_view = _tmp16_; -#line 1000 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = child_view; -#line 1000 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp17_ != NULL) { -#line 7654 "Tag.c" - Tag* _tmp18_; - ViewCollection* _tmp19_; - Tag* _tmp20_; - ViewCollection* _tmp21_; - DataView* _tmp22_; - Marker* _tmp23_; - Marker* _tmp24_; - GeeList* _tmp25_; - Tag* _tmp26_; -#line 1001 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = child_tag; -#line 1001 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp19_ = _tmp18_->priv->media_views; -#line 1001 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp20_ = child_tag; -#line 1001 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp21_ = _tmp20_->priv->media_views; -#line 1001 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp22_ = child_view; -#line 1001 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp23_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_DATA_OBJECT, DataObject)); -#line 1001 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp24_ = _tmp23_; -#line 1001 "/home/jens/Source/shotwell/src/Tag.vala" - data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_DATA_COLLECTION, DataCollection), _tmp24_); -#line 1001 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp24_); -#line 1002 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp25_ = detached_from; -#line 1002 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp26_ = child_tag; -#line 1002 "/home/jens/Source/shotwell/src/Tag.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_COLLECTION, GeeCollection), _tmp26_); -#line 7688 "Tag.c" - } -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (child_view); -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (child_tag); -#line 7694 "Tag.c" - } -#line 998 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_child_tag_list); -#line 7698 "Tag.c" - } -#line 1006 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp27_ = self->priv->media_views; -#line 1006 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp28_ = self->priv->media_views; -#line 1006 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp29_ = this_view; -#line 1006 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp30_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_OBJECT, DataObject)); -#line 1006 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp31_ = _tmp30_; -#line 1006 "/home/jens/Source/shotwell/src/Tag.vala" - data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_DATA_COLLECTION, DataCollection), _tmp31_); -#line 1006 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp31_); -#line 1007 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp32_ = detached_from; -#line 1007 "/home/jens/Source/shotwell/src/Tag.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_COLLECTION, GeeCollection), self); -#line 1009 "/home/jens/Source/shotwell/src/Tag.vala" - result = detached_from; -#line 1009 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (this_view); -#line 1009 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 7724 "Tag.c" -} - - -GeeMultiMap* -tag_detach_many (Tag* self, - GeeCollection* sources) -{ - GeeMultiMap* result = NULL; - GeeMultiMap* detached_from = NULL; - GeeHashMultiMap* _tmp0_; - Marker* marker = NULL; - ViewCollection* _tmp1_; - Marker* _tmp2_; - ViewCollection* _tmp40_; - Marker* _tmp41_; - GeeMultiMap* _tmp42_ = NULL; - GeeMultiMap* _tmp43_; - gint _tmp44_; - gint _tmp45_; - GeeMultiMap* _tmp47_; -#line 1015 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (self), NULL); -#line 1015 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (sources), NULL); -#line 1016 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = gee_hash_multi_map_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1016 "/home/jens/Source/shotwell/src/Tag.vala" - detached_from = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MULTI_MAP, GeeMultiMap); -#line 1018 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = self->priv->media_views; -#line 1018 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1018 "/home/jens/Source/shotwell/src/Tag.vala" - marker = _tmp2_; -#line 7759 "Tag.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp3_; -#line 1019 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1019 "/home/jens/Source/shotwell/src/Tag.vala" - _source_it = _tmp3_; -#line 1019 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 7769 "Tag.c" - GeeIterator* _tmp4_; - MediaSource* source = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - DataView* view = NULL; - ViewCollection* _tmp7_; - MediaSource* _tmp8_; - DataView* _tmp9_; - DataView* _tmp10_; - Marker* _tmp36_; - DataView* _tmp37_; - GeeMultiMap* _tmp38_; - MediaSource* _tmp39_; -#line 1019 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = _source_it; -#line 1019 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 1019 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 7789 "Tag.c" - } -#line 1019 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _source_it; -#line 1019 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 1019 "/home/jens/Source/shotwell/src/Tag.vala" - source = (MediaSource*) _tmp6_; -#line 1020 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = self->priv->media_views; -#line 1020 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = source; -#line 1020 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = view_collection_get_view_for_source (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_SOURCE, DataSource)); -#line 1020 "/home/jens/Source/shotwell/src/Tag.vala" - view = _tmp9_; -#line 1021 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = view; -#line 1021 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp10_ == NULL) { -#line 1022 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (view); -#line 1022 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (source); -#line 1022 "/home/jens/Source/shotwell/src/Tag.vala" - continue; -#line 7815 "Tag.c" - } - { - GeeList* _child_tag_list = NULL; - GeeList* _tmp11_; - gint _child_tag_size = 0; - GeeList* _tmp12_; - gint _tmp13_; - gint _tmp14_; - gint _child_tag_index = 0; -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = tag_get_hierarchical_children (self); -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - _child_tag_list = _tmp11_; -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = _child_tag_list; -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = _tmp13_; -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - _child_tag_size = _tmp14_; -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - _child_tag_index = -1; -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 7841 "Tag.c" - gint _tmp15_; - gint _tmp16_; - gint _tmp17_; - Tag* child_tag = NULL; - GeeList* _tmp18_; - gint _tmp19_; - gpointer _tmp20_; - DataView* child_view = NULL; - Tag* _tmp21_; - ViewCollection* _tmp22_; - MediaSource* _tmp23_; - DataView* _tmp24_; - DataView* _tmp25_; -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = _child_tag_index; -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - _child_tag_index = _tmp15_ + 1; -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = _child_tag_index; -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = _child_tag_size; -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - if (!(_tmp16_ < _tmp17_)) { -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 7867 "Tag.c" - } -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = _child_tag_list; -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp19_ = _child_tag_index; -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp20_ = gee_list_get (_tmp18_, _tmp19_); -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - child_tag = (Tag*) _tmp20_; -#line 1025 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp21_ = child_tag; -#line 1025 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp22_ = _tmp21_->priv->media_views; -#line 1025 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp23_ = source; -#line 1025 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp24_ = view_collection_get_view_for_source (_tmp22_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_DATA_SOURCE, DataSource)); -#line 1025 "/home/jens/Source/shotwell/src/Tag.vala" - child_view = _tmp24_; -#line 1026 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp25_ = child_view; -#line 1026 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp25_ != NULL) { -#line 7891 "Tag.c" - Tag* _tmp26_; - ViewCollection* _tmp27_; - Tag* _tmp28_; - ViewCollection* _tmp29_; - DataView* _tmp30_; - Marker* _tmp31_; - Marker* _tmp32_; - GeeMultiMap* _tmp33_; - Tag* _tmp34_; - MediaSource* _tmp35_; -#line 1027 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp26_ = child_tag; -#line 1027 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp27_ = _tmp26_->priv->media_views; -#line 1027 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp28_ = child_tag; -#line 1027 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp29_ = _tmp28_->priv->media_views; -#line 1027 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp30_ = child_view; -#line 1027 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp31_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_DATA_OBJECT, DataObject)); -#line 1027 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp32_ = _tmp31_; -#line 1027 "/home/jens/Source/shotwell/src/Tag.vala" - data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_DATA_COLLECTION, DataCollection), _tmp32_); -#line 1027 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp32_); -#line 1028 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp33_ = detached_from; -#line 1028 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp34_ = child_tag; -#line 1028 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp35_ = source; -#line 1028 "/home/jens/Source/shotwell/src/Tag.vala" - gee_multi_map_set (_tmp33_, _tmp34_, _tmp35_); -#line 7928 "Tag.c" - } -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (child_view); -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (child_tag); -#line 7934 "Tag.c" - } -#line 1024 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_child_tag_list); -#line 7938 "Tag.c" - } -#line 1032 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp36_ = marker; -#line 1032 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp37_ = view; -#line 1032 "/home/jens/Source/shotwell/src/Tag.vala" - marker_mark (_tmp36_, G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, TYPE_DATA_OBJECT, DataObject)); -#line 1033 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp38_ = detached_from; -#line 1033 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp39_ = source; -#line 1033 "/home/jens/Source/shotwell/src/Tag.vala" - gee_multi_map_set (_tmp38_, self, _tmp39_); -#line 1019 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (view); -#line 1019 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (source); -#line 7956 "Tag.c" - } -#line 1019 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_source_it); -#line 7960 "Tag.c" - } -#line 1036 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp40_ = self->priv->media_views; -#line 1036 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp41_ = marker; -#line 1036 "/home/jens/Source/shotwell/src/Tag.vala" - data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_DATA_COLLECTION, DataCollection), _tmp41_); -#line 1038 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp43_ = detached_from; -#line 1038 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp44_ = gee_multi_map_get_size (_tmp43_); -#line 1038 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp45_ = _tmp44_; -#line 1038 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp45_ > 0) { -#line 7976 "Tag.c" - GeeMultiMap* _tmp46_; -#line 1038 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp46_ = detached_from; -#line 1038 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp42_ = _tmp46_; -#line 7982 "Tag.c" - } else { -#line 1038 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp42_ = NULL; -#line 7986 "Tag.c" - } -#line 1038 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp47_ = _g_object_ref0 (_tmp42_); -#line 1038 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp47_; -#line 1038 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (marker); -#line 1038 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (detached_from); -#line 1038 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 7998 "Tag.c" -} - - -static gint -string_index_of (const gchar* self, - const gchar* needle, - gint start_index) -{ - gint result = 0; - gchar* _result_ = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1025 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0); -#line 1025 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, 0); -#line 1026 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr (((gchar*) self) + start_index, (gchar*) needle); -#line 1026 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1028 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1028 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ != NULL) { -#line 8023 "Tag.c" - gchar* _tmp2_; -#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _result_; -#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gint) (_tmp2_ - ((gchar*) self)); -#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 8031 "Tag.c" - } else { -#line 1031 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = -1; -#line 1031 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 8037 "Tag.c" - } -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 8062 "Tag.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 8071 "Tag.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 8092 "Tag.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 8096 "Tag.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 8102 "Tag.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 8112 "Tag.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 8116 "Tag.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 8124 "Tag.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 8131 "Tag.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 8135 "Tag.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 8141 "Tag.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 8153 "Tag.c" -} - - -gboolean -tag_rename (Tag* self, - const gchar* name) -{ - gboolean result = FALSE; - gchar* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_; - gchar* new_name = NULL; - gchar* _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gboolean _tmp7_; -#line 1042 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (self), FALSE); -#line 1042 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (name != NULL, FALSE); -#line 1043 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_get_user_visible_name (self); -#line 1043 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 1043 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = g_strcmp0 (name, _tmp1_) == 0; -#line 1043 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp1_); -#line 1043 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp2_) { -#line 1044 "/home/jens/Source/shotwell/src/Tag.vala" - result = TRUE; -#line 1044 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 8189 "Tag.c" - } -#line 1046 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = tag_prep_tag_name (name); -#line 1046 "/home/jens/Source/shotwell/src/Tag.vala" - new_name = _tmp3_; -#line 1047 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = new_name; -#line 1047 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp4_ == NULL) { -#line 1048 "/home/jens/Source/shotwell/src/Tag.vala" - result = FALSE; -#line 1048 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (new_name); -#line 1048 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 8205 "Tag.c" - } -#line 1051 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = tag_get_path (self); -#line 1051 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = _tmp5_; -#line 1051 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = g_str_has_prefix (_tmp6_, TAG_PATH_SEPARATOR_STRING); -#line 1051 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp6_); -#line 1051 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp7_) { -#line 8217 "Tag.c" - gchar* new_path = NULL; - const gchar* _tmp8_; - gchar* _tmp9_; - gchar* old_path = NULL; - gchar* _tmp10_; - Tag* parent = NULL; - Tag* _tmp11_; - Tag* _tmp12_; - TagSourceCollection* _tmp22_; - const gchar* _tmp23_; - GeeCollection* children = NULL; - GeeList* _tmp24_; - const gchar* _tmp25_; - Alteration* _tmp47_; - Alteration* _tmp48_; -#line 1052 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = new_name; -#line 1052 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 1052 "/home/jens/Source/shotwell/src/Tag.vala" - new_path = _tmp9_; -#line 1053 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = tag_get_path (self); -#line 1053 "/home/jens/Source/shotwell/src/Tag.vala" - old_path = _tmp10_; -#line 1055 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = tag_get_hierarchical_parent (self); -#line 1055 "/home/jens/Source/shotwell/src/Tag.vala" - parent = _tmp11_; -#line 1056 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = parent; -#line 1056 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp12_ != NULL) { -#line 8251 "Tag.c" - Tag* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - const gchar* _tmp18_; - gchar* _tmp19_; -#line 1057 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = parent; -#line 1057 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = tag_get_path (_tmp13_); -#line 1057 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = _tmp14_; -#line 1057 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = g_strconcat (_tmp15_, TAG_PATH_SEPARATOR_STRING, NULL); -#line 1057 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = _tmp16_; -#line 1057 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = new_path; -#line 1057 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp19_ = g_strconcat (_tmp17_, _tmp18_, NULL); -#line 1057 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (new_path); -#line 1057 "/home/jens/Source/shotwell/src/Tag.vala" - new_path = _tmp19_; -#line 1057 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp17_); -#line 1057 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp15_); -#line 8281 "Tag.c" - } else { - const gchar* _tmp20_; - gchar* _tmp21_; -#line 1059 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp20_ = new_path; -#line 1059 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp21_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp20_, NULL); -#line 1059 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (new_path); -#line 1059 "/home/jens/Source/shotwell/src/Tag.vala" - new_path = _tmp21_; -#line 8293 "Tag.c" - } -#line 1062 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp22_ = tag_global; -#line 1062 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp23_ = new_path; -#line 1062 "/home/jens/Source/shotwell/src/Tag.vala" - if (tag_source_collection_exists (_tmp22_, _tmp23_, TRUE)) { -#line 1063 "/home/jens/Source/shotwell/src/Tag.vala" - result = FALSE; -#line 1063 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (parent); -#line 1063 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (old_path); -#line 1063 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (new_path); -#line 1063 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (new_name); -#line 1063 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 8313 "Tag.c" - } -#line 1065 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp24_ = tag_get_hierarchical_children (self); -#line 1065 "/home/jens/Source/shotwell/src/Tag.vala" - children = G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection); -#line 1067 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp25_ = new_path; -#line 1067 "/home/jens/Source/shotwell/src/Tag.vala" - tag_set_raw_path (self, _tmp25_, TRUE); -#line 8323 "Tag.c" - { - GeeIterator* _child_it = NULL; - GeeCollection* _tmp26_; - GeeIterator* _tmp27_; -#line 1069 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp26_ = children; -#line 1069 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp27_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1069 "/home/jens/Source/shotwell/src/Tag.vala" - _child_it = _tmp27_; -#line 1069 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 8336 "Tag.c" - GeeIterator* _tmp28_; - Tag* child = NULL; - GeeIterator* _tmp29_; - gpointer _tmp30_; - gchar* old_child_path = NULL; - Tag* _tmp31_; - gchar* _tmp32_; - gint old_path_index = 0; - const gchar* _tmp33_; - const gchar* _tmp34_; - gint _tmp35_; - gchar* child_subpath = NULL; - const gchar* _tmp36_; - gint _tmp37_; - const gchar* _tmp38_; - gint _tmp39_; - gint _tmp40_; - gchar* _tmp41_; - gchar* new_child_path = NULL; - const gchar* _tmp42_; - const gchar* _tmp43_; - gchar* _tmp44_; - Tag* _tmp45_; - const gchar* _tmp46_; -#line 1069 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp28_ = _child_it; -#line 1069 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp28_)) { -#line 1069 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 8367 "Tag.c" - } -#line 1069 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp29_ = _child_it; -#line 1069 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp30_ = gee_iterator_get (_tmp29_); -#line 1069 "/home/jens/Source/shotwell/src/Tag.vala" - child = (Tag*) _tmp30_; -#line 1072 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp31_ = child; -#line 1072 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp32_ = tag_get_path (_tmp31_); -#line 1072 "/home/jens/Source/shotwell/src/Tag.vala" - old_child_path = _tmp32_; -#line 1076 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp33_ = old_child_path; -#line 1076 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp34_ = old_path; -#line 1076 "/home/jens/Source/shotwell/src/Tag.vala" - old_path_index = string_index_of (_tmp33_, _tmp34_, 0); -#line 1077 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp35_ = old_path_index; -#line 1077 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp35_ != -1, "old_path_index != -1"); -#line 1079 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp36_ = old_child_path; -#line 1079 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp37_ = old_path_index; -#line 1079 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp38_ = old_path; -#line 1079 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp39_ = strlen (_tmp38_); -#line 1079 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp40_ = _tmp39_; -#line 1079 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp41_ = string_substring (_tmp36_, (glong) (_tmp37_ + _tmp40_), (glong) -1); -#line 1079 "/home/jens/Source/shotwell/src/Tag.vala" - child_subpath = _tmp41_; -#line 1081 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp42_ = new_path; -#line 1081 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp43_ = child_subpath; -#line 1081 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp44_ = g_strconcat (_tmp42_, _tmp43_, NULL); -#line 1081 "/home/jens/Source/shotwell/src/Tag.vala" - new_child_path = _tmp44_; -#line 1083 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp45_ = child; -#line 1083 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp46_ = new_child_path; -#line 1083 "/home/jens/Source/shotwell/src/Tag.vala" - tag_set_raw_path (_tmp45_, _tmp46_, TRUE); -#line 1069 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (new_child_path); -#line 1069 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (child_subpath); -#line 1069 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (old_child_path); -#line 1069 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (child); -#line 8427 "Tag.c" - } -#line 1069 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_child_it); -#line 8431 "Tag.c" - } -#line 1086 "/home/jens/Source/shotwell/src/Tag.vala" - tag_update_indexable_keywords (self); -#line 1087 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp47_ = alteration_new_from_list ("metadata:name, indexable:keywords"); -#line 1087 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp48_ = _tmp47_; -#line 1087 "/home/jens/Source/shotwell/src/Tag.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp48_); -#line 1087 "/home/jens/Source/shotwell/src/Tag.vala" - _alteration_unref0 (_tmp48_); -#line 8443 "Tag.c" - { - GeeIterator* _child_it = NULL; - GeeCollection* _tmp49_; - GeeIterator* _tmp50_; -#line 1088 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp49_ = children; -#line 1088 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp50_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1088 "/home/jens/Source/shotwell/src/Tag.vala" - _child_it = _tmp50_; -#line 1088 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 8456 "Tag.c" - GeeIterator* _tmp51_; - Tag* child = NULL; - GeeIterator* _tmp52_; - gpointer _tmp53_; - Tag* _tmp54_; - Alteration* _tmp55_; - Alteration* _tmp56_; -#line 1088 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp51_ = _child_it; -#line 1088 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp51_)) { -#line 1088 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 8470 "Tag.c" - } -#line 1088 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp52_ = _child_it; -#line 1088 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp53_ = gee_iterator_get (_tmp52_); -#line 1088 "/home/jens/Source/shotwell/src/Tag.vala" - child = (Tag*) _tmp53_; -#line 1089 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp54_ = child; -#line 1089 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp55_ = alteration_new_from_list ("metadata:name, indexable:keywords"); -#line 1089 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp56_ = _tmp55_; -#line 1089 "/home/jens/Source/shotwell/src/Tag.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, TYPE_DATA_OBJECT, DataObject), _tmp56_); -#line 1089 "/home/jens/Source/shotwell/src/Tag.vala" - _alteration_unref0 (_tmp56_); -#line 1088 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (child); -#line 8490 "Tag.c" - } -#line 1088 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_child_it); -#line 8494 "Tag.c" - } -#line 1051 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (children); -#line 1051 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (parent); -#line 1051 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (old_path); -#line 1051 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (new_path); -#line 8504 "Tag.c" - } else { - TagSourceCollection* _tmp57_; - const gchar* _tmp58_; - const gchar* _tmp59_; -#line 1093 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp57_ = tag_global; -#line 1093 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp58_ = new_name; -#line 1093 "/home/jens/Source/shotwell/src/Tag.vala" - if (tag_source_collection_exists (_tmp57_, _tmp58_, TRUE)) { -#line 1094 "/home/jens/Source/shotwell/src/Tag.vala" - result = FALSE; -#line 1094 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (new_name); -#line 1094 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 8521 "Tag.c" - } -#line 1096 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp59_ = new_name; -#line 1096 "/home/jens/Source/shotwell/src/Tag.vala" - tag_set_raw_flat_name (self, _tmp59_); -#line 8527 "Tag.c" - } -#line 1099 "/home/jens/Source/shotwell/src/Tag.vala" - result = TRUE; -#line 1099 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (new_name); -#line 1099 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 8535 "Tag.c" -} - - -gboolean -tag_contains (Tag* self, - MediaSource* source) -{ - gboolean result = FALSE; - ViewCollection* _tmp0_; -#line 1102 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (self), FALSE); -#line 1102 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE); -#line 1103 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = self->priv->media_views; -#line 1103 "/home/jens/Source/shotwell/src/Tag.vala" - result = view_collection_has_view_for_source (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)); -#line 1103 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 8555 "Tag.c" -} - - -gint -tag_get_sources_count (Tag* self) -{ - gint result = 0; - ViewCollection* _tmp0_; -#line 1106 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (self), 0); -#line 1107 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = self->priv->media_views; -#line 1107 "/home/jens/Source/shotwell/src/Tag.vala" - result = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1107 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 8572 "Tag.c" -} - - -GeeCollection* -tag_get_sources (Tag* self) -{ - GeeCollection* result = NULL; - ViewCollection* _tmp0_; - GeeCollection* _tmp1_; -#line 1110 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (self), NULL); -#line 1111 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = self->priv->media_views; -#line 1111 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = view_collection_get_sources (_tmp0_); -#line 1111 "/home/jens/Source/shotwell/src/Tag.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection); -#line 1111 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 8592 "Tag.c" -} - - -void -tag_mirror_sources (Tag* self, - ViewCollection* view, - CreateView mirroring_ctor, - void* mirroring_ctor_target) -{ - ViewCollection* _tmp0_; -#line 1114 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_TAG (self)); -#line 1114 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_VIEW_COLLECTION (view)); -#line 1115 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = self->priv->media_views; -#line 1115 "/home/jens/Source/shotwell/src/Tag.vala" - view_collection_mirror (view, _tmp0_, mirroring_ctor, mirroring_ctor_target, NULL, NULL); -#line 8611 "Tag.c" -} - - -static void -tag_on_media_views_contents_altered (Tag* self, - GeeIterable* added, - GeeIterable* removed) -{ - GeeCollection* added_sources = NULL; - GeeCollection* removed_sources = NULL; - GeeCollection* _tmp47_; - GeeCollection* _tmp51_; - gboolean _tmp55_ = FALSE; - GeeCollection* _tmp56_; - GError * _inner_error_ = NULL; -#line 1118 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_TAG (self)); -#line 1118 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added)); -#line 1118 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed)); -#line 1120 "/home/jens/Source/shotwell/src/Tag.vala" - added_sources = NULL; -#line 1121 "/home/jens/Source/shotwell/src/Tag.vala" - if (added != NULL) { -#line 8637 "Tag.c" - GeeArrayList* _tmp0_; -#line 1122 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1122 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (added_sources); -#line 1122 "/home/jens/Source/shotwell/src/Tag.vala" - added_sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 8645 "Tag.c" - { - GeeIterator* _view_it = NULL; - GeeIterator* _tmp1_; -#line 1123 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = gee_iterable_iterator (added); -#line 1123 "/home/jens/Source/shotwell/src/Tag.vala" - _view_it = _tmp1_; -#line 1123 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 8655 "Tag.c" - GeeIterator* _tmp2_; - DataView* view = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - MediaSource* source = NULL; - DataView* _tmp5_; - DataSource* _tmp6_; - TagRow* _tmp7_; - GeeSet* _tmp8_; - MediaSource* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gboolean _tmp12_; - gboolean is_added = FALSE; - GeeCollection* _tmp20_; - MediaSource* _tmp21_; - gboolean _tmp22_; -#line 1123 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = _view_it; -#line 1123 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 1123 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 8679 "Tag.c" - } -#line 1123 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = _view_it; -#line 1123 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 1123 "/home/jens/Source/shotwell/src/Tag.vala" - view = (DataView*) _tmp4_; -#line 1124 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = view; -#line 1124 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = data_view_get_source (_tmp5_); -#line 1124 "/home/jens/Source/shotwell/src/Tag.vala" - source = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource); -#line 1128 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = self->priv->row; -#line 1128 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = _tmp7_->source_id_list; -#line 1128 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = source; -#line 1128 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_SOURCE, DataSource)); -#line 1128 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = _tmp10_; -#line 1128 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = !gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection), _tmp11_); -#line 1128 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp11_); -#line 1128 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp12_) { -#line 8709 "Tag.c" - gboolean is_added = FALSE; - TagRow* _tmp13_; - GeeSet* _tmp14_; - MediaSource* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gboolean _tmp18_; - gboolean _tmp19_; -#line 1129 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = self->priv->row; -#line 1129 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = _tmp13_->source_id_list; -#line 1129 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = source; -#line 1129 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_SOURCE, DataSource)); -#line 1129 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = _tmp16_; -#line 1129 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection), _tmp17_); -#line 1129 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp17_); -#line 1129 "/home/jens/Source/shotwell/src/Tag.vala" - is_added = _tmp18_; -#line 1130 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp19_ = is_added; -#line 1130 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp19_, "is_added"); -#line 8738 "Tag.c" - } -#line 1133 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp20_ = added_sources; -#line 1133 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp21_ = source; -#line 1133 "/home/jens/Source/shotwell/src/Tag.vala" - is_added = gee_collection_add (_tmp20_, _tmp21_); -#line 1134 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp22_ = is_added; -#line 1134 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp22_, "is_added"); -#line 1123 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (source); -#line 1123 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (view); -#line 8754 "Tag.c" - } -#line 1123 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_view_it); -#line 8758 "Tag.c" - } - } -#line 1138 "/home/jens/Source/shotwell/src/Tag.vala" - removed_sources = NULL; -#line 1139 "/home/jens/Source/shotwell/src/Tag.vala" - if (removed != NULL) { -#line 8765 "Tag.c" - GeeArrayList* _tmp23_; -#line 1140 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp23_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1140 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (removed_sources); -#line 1140 "/home/jens/Source/shotwell/src/Tag.vala" - removed_sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_COLLECTION, GeeCollection); -#line 8773 "Tag.c" - { - GeeIterator* _view_it = NULL; - GeeIterator* _tmp24_; -#line 1141 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp24_ = gee_iterable_iterator (removed); -#line 1141 "/home/jens/Source/shotwell/src/Tag.vala" - _view_it = _tmp24_; -#line 1141 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 8783 "Tag.c" - GeeIterator* _tmp25_; - DataView* view = NULL; - GeeIterator* _tmp26_; - gpointer _tmp27_; - MediaSource* source = NULL; - DataView* _tmp28_; - DataSource* _tmp29_; - gboolean is_removed = FALSE; - TagRow* _tmp30_; - GeeSet* _tmp31_; - MediaSource* _tmp32_; - gchar* _tmp33_; - gchar* _tmp34_; - gboolean _tmp35_; - gboolean _tmp36_; - gboolean is_added = FALSE; - GeeCollection* _tmp37_; - MediaSource* _tmp38_; - gboolean _tmp39_; -#line 1141 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp25_ = _view_it; -#line 1141 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp25_)) { -#line 1141 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 8809 "Tag.c" - } -#line 1141 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp26_ = _view_it; -#line 1141 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp27_ = gee_iterator_get (_tmp26_); -#line 1141 "/home/jens/Source/shotwell/src/Tag.vala" - view = (DataView*) _tmp27_; -#line 1142 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp28_ = view; -#line 1142 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp29_ = data_view_get_source (_tmp28_); -#line 1142 "/home/jens/Source/shotwell/src/Tag.vala" - source = G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_MEDIA_SOURCE, MediaSource); -#line 1144 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp30_ = self->priv->row; -#line 1144 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp31_ = _tmp30_->source_id_list; -#line 1144 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp32_ = source; -#line 1144 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp33_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_DATA_SOURCE, DataSource)); -#line 1144 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp34_ = _tmp33_; -#line 1144 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp35_ = gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_COLLECTION, GeeCollection), _tmp34_); -#line 1144 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (_tmp34_); -#line 1144 "/home/jens/Source/shotwell/src/Tag.vala" - is_removed = _tmp35_; -#line 1145 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp36_ = is_removed; -#line 1145 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp36_, "is_removed"); -#line 1147 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp37_ = removed_sources; -#line 1147 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp38_ = source; -#line 1147 "/home/jens/Source/shotwell/src/Tag.vala" - is_added = gee_collection_add (_tmp37_, _tmp38_); -#line 1148 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp39_ = is_added; -#line 1148 "/home/jens/Source/shotwell/src/Tag.vala" - _vala_assert (_tmp39_, "is_added"); -#line 1141 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (source); -#line 1141 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (view); -#line 8857 "Tag.c" - } -#line 1141 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_view_it); -#line 8861 "Tag.c" - } - } - { - TagTable* _tmp40_; - TagTable* _tmp41_; - TagRow* _tmp42_; - TagID _tmp43_; - TagRow* _tmp44_; - GeeSet* _tmp45_; -#line 1153 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp40_ = tag_table_get_instance (); -#line 1153 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp41_ = _tmp40_; -#line 1153 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp42_ = self->priv->row; -#line 1153 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp43_ = _tmp42_->tag_id; -#line 1153 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp44_ = self->priv->row; -#line 1153 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp45_ = _tmp44_->source_id_list; -#line 1153 "/home/jens/Source/shotwell/src/Tag.vala" - tag_table_set_tagged_sources (_tmp41_, &_tmp43_, G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_COLLECTION, GeeCollection), &_inner_error_); -#line 1153 "/home/jens/Source/shotwell/src/Tag.vala" - _database_table_unref0 (_tmp41_); -#line 1153 "/home/jens/Source/shotwell/src/Tag.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1153 "/home/jens/Source/shotwell/src/Tag.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 8891 "Tag.c" - goto __catch486_database_error; - } -#line 1153 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (removed_sources); -#line 1153 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (added_sources); -#line 1153 "/home/jens/Source/shotwell/src/Tag.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1153 "/home/jens/Source/shotwell/src/Tag.vala" - g_clear_error (&_inner_error_); -#line 1153 "/home/jens/Source/shotwell/src/Tag.vala" - return; -#line 8904 "Tag.c" - } - } - goto __finally486; - __catch486_database_error: - { - GError* err = NULL; - GError* _tmp46_; -#line 1152 "/home/jens/Source/shotwell/src/Tag.vala" - err = _inner_error_; -#line 1152 "/home/jens/Source/shotwell/src/Tag.vala" - _inner_error_ = NULL; -#line 1155 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp46_ = err; -#line 1155 "/home/jens/Source/shotwell/src/Tag.vala" - app_window_database_error (_tmp46_); -#line 1152 "/home/jens/Source/shotwell/src/Tag.vala" - _g_error_free0 (err); -#line 8922 "Tag.c" - } - __finally486: -#line 1152 "/home/jens/Source/shotwell/src/Tag.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1152 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (removed_sources); -#line 1152 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (added_sources); -#line 1152 "/home/jens/Source/shotwell/src/Tag.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1152 "/home/jens/Source/shotwell/src/Tag.vala" - g_clear_error (&_inner_error_); -#line 1152 "/home/jens/Source/shotwell/src/Tag.vala" - return; -#line 8937 "Tag.c" - } -#line 1159 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp47_ = added_sources; -#line 1159 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp47_ != NULL) { -#line 8943 "Tag.c" - TagSourceCollection* _tmp48_; - GeeCollection* _tmp49_; - gboolean _tmp50_; -#line 1160 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp48_ = tag_global; -#line 1160 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp49_ = added_sources; -#line 1160 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp50_ = self->priv->relinking; -#line 1160 "/home/jens/Source/shotwell/src/Tag.vala" - container_source_collection_notify_container_contents_added (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), _tmp49_, _tmp50_); -#line 8955 "Tag.c" - } -#line 1162 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp51_ = removed_sources; -#line 1162 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp51_ != NULL) { -#line 8961 "Tag.c" - TagSourceCollection* _tmp52_; - GeeCollection* _tmp53_; - gboolean _tmp54_; -#line 1163 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp52_ = tag_global; -#line 1163 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp53_ = removed_sources; -#line 1163 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp54_ = self->priv->unlinking; -#line 1163 "/home/jens/Source/shotwell/src/Tag.vala" - container_source_collection_notify_container_contents_removed (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), _tmp53_, _tmp54_); -#line 8973 "Tag.c" - } -#line 1165 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp56_ = added_sources; -#line 1165 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp56_ != NULL) { -#line 1165 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp55_ = TRUE; -#line 8981 "Tag.c" - } else { - GeeCollection* _tmp57_; -#line 1165 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp57_ = removed_sources; -#line 1165 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp55_ = _tmp57_ != NULL; -#line 8988 "Tag.c" - } -#line 1165 "/home/jens/Source/shotwell/src/Tag.vala" - if (_tmp55_) { -#line 8992 "Tag.c" - TagSourceCollection* _tmp58_; - GeeCollection* _tmp59_; - gboolean _tmp60_; - GeeCollection* _tmp61_; - gboolean _tmp62_; -#line 1166 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp58_ = tag_global; -#line 1166 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp59_ = added_sources; -#line 1166 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp60_ = self->priv->relinking; -#line 1166 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp61_ = removed_sources; -#line 1166 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp62_ = self->priv->unlinking; -#line 1166 "/home/jens/Source/shotwell/src/Tag.vala" - container_source_collection_notify_container_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), _tmp59_, _tmp60_, _tmp61_, _tmp62_); -#line 9010 "Tag.c" - } -#line 1118 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (removed_sources); -#line 1118 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (added_sources); -#line 9016 "Tag.c" -} - - -static void -tag_on_sources_destroyed (Tag* self, - GeeCollection* sources) -{ - GeeMultiMap* _tmp0_; - GeeMultiMap* _tmp1_; -#line 1171 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_TAG (self)); -#line 1171 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 1172 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_detach_many (self, G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1172 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 1172 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp1_); -#line 9036 "Tag.c" -} - - -static void -tag_real_destroy (DataSource* base) -{ - Tag * self; - ViewCollection* _tmp0_; - GError * _inner_error_ = NULL; -#line 1175 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG, Tag); -#line 1179 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = self->priv->media_views; -#line 1179 "/home/jens/Source/shotwell/src/Tag.vala" - if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection)) > 0) { -#line 9052 "Tag.c" - ViewCollection* _tmp1_; - guint _tmp2_; - GeeArrayList* removed = NULL; - GeeArrayList* _tmp3_; - GeeArrayList* _tmp4_; - ViewCollection* _tmp5_; - GeeCollection* _tmp6_; - GeeCollection* _tmp7_; - ViewCollection* _tmp8_; - TagSourceCollection* _tmp9_; - GeeArrayList* _tmp10_; - TagSourceCollection* _tmp11_; - GeeArrayList* _tmp12_; - ViewCollection* _tmp13_; -#line 1180 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = self->priv->media_views; -#line 1180 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp2_, NULL, FALSE); -#line 1180 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _tag_on_media_views_contents_altered_data_collection_contents_altered, self); -#line 1182 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1182 "/home/jens/Source/shotwell/src/Tag.vala" - removed = _tmp3_; -#line 1183 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = removed; -#line 1183 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = self->priv->media_views; -#line 1183 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = view_collection_get_sources (_tmp5_); -#line 1183 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection); -#line 1183 "/home/jens/Source/shotwell/src/Tag.vala" - gee_array_list_add_all (_tmp4_, _tmp7_); -#line 1183 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp7_); -#line 1185 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = self->priv->media_views; -#line 1185 "/home/jens/Source/shotwell/src/Tag.vala" - data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1187 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = tag_global; -#line 1187 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = removed; -#line 1187 "/home/jens/Source/shotwell/src/Tag.vala" - container_source_collection_notify_container_contents_removed (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection), FALSE); -#line 1188 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = tag_global; -#line 1188 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = removed; -#line 1188 "/home/jens/Source/shotwell/src/Tag.vala" - container_source_collection_notify_container_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONTAINER_SOURCE, ContainerSource), NULL, FALSE, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), FALSE); -#line 1190 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp13_ = self->priv->media_views; -#line 1190 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _tag_on_media_views_contents_altered_data_collection_contents_altered, self, 0); -#line 1179 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (removed); -#line 9111 "Tag.c" - } - { - TagTable* _tmp14_; - TagTable* _tmp15_; - TagRow* _tmp16_; - TagID _tmp17_; -#line 1194 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp14_ = tag_table_get_instance (); -#line 1194 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp15_ = _tmp14_; -#line 1194 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp16_ = self->priv->row; -#line 1194 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp17_ = _tmp16_->tag_id; -#line 1194 "/home/jens/Source/shotwell/src/Tag.vala" - tag_table_remove (_tmp15_, &_tmp17_, &_inner_error_); -#line 1194 "/home/jens/Source/shotwell/src/Tag.vala" - _database_table_unref0 (_tmp15_); -#line 1194 "/home/jens/Source/shotwell/src/Tag.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1194 "/home/jens/Source/shotwell/src/Tag.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 9134 "Tag.c" - goto __catch487_database_error; - } -#line 1194 "/home/jens/Source/shotwell/src/Tag.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1194 "/home/jens/Source/shotwell/src/Tag.vala" - g_clear_error (&_inner_error_); -#line 1194 "/home/jens/Source/shotwell/src/Tag.vala" - return; -#line 9143 "Tag.c" - } - } - goto __finally487; - __catch487_database_error: - { - GError* err = NULL; - GError* _tmp18_; -#line 1193 "/home/jens/Source/shotwell/src/Tag.vala" - err = _inner_error_; -#line 1193 "/home/jens/Source/shotwell/src/Tag.vala" - _inner_error_ = NULL; -#line 1196 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp18_ = err; -#line 1196 "/home/jens/Source/shotwell/src/Tag.vala" - app_window_database_error (_tmp18_); -#line 1193 "/home/jens/Source/shotwell/src/Tag.vala" - _g_error_free0 (err); -#line 9161 "Tag.c" - } - __finally487: -#line 1193 "/home/jens/Source/shotwell/src/Tag.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1193 "/home/jens/Source/shotwell/src/Tag.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1193 "/home/jens/Source/shotwell/src/Tag.vala" - g_clear_error (&_inner_error_); -#line 1193 "/home/jens/Source/shotwell/src/Tag.vala" - return; -#line 9172 "Tag.c" - } -#line 1199 "/home/jens/Source/shotwell/src/Tag.vala" - DATA_SOURCE_CLASS (tag_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource)); -#line 9176 "Tag.c" -} - - -static void -_tag_tag_snapshot_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self) -{ -#line 292 "/home/jens/Source/shotwell/src/Tag.vala" - tag_tag_snapshot_on_source_destroyed ((TagTagSnapshot*) self, source); -#line 9187 "Tag.c" -} - - -static TagTagSnapshot* -tag_tag_snapshot_construct (GType object_type, - Tag* tag) -{ - TagTagSnapshot* self = NULL; - TagRow* _tmp0_; - TagRow* _tmp1_; - LibraryPhotoSourceCollection* _tmp11_; - VideoSourceCollection* _tmp12_; -#line 278 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (tag), NULL); -#line 278 "/home/jens/Source/shotwell/src/Tag.vala" - self = (TagTagSnapshot*) source_snapshot_construct (object_type); -#line 280 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag->priv->row; -#line 280 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tag_row_ref0 (_tmp0_); -#line 280 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_row_unref0 (self->priv->row); -#line 280 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->row = _tmp1_; -#line 9212 "Tag.c" - { - GeeIterator* _source_it = NULL; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 284 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = tag_get_sources (tag); -#line 284 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = _tmp2_; -#line 284 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 284 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp5_ = _tmp4_; -#line 284 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_tmp3_); -#line 284 "/home/jens/Source/shotwell/src/Tag.vala" - _source_it = _tmp5_; -#line 284 "/home/jens/Source/shotwell/src/Tag.vala" - while (TRUE) { -#line 9233 "Tag.c" - GeeIterator* _tmp6_; - MediaSource* source = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - GeeHashSet* _tmp9_; - MediaSource* _tmp10_; -#line 284 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp6_ = _source_it; -#line 284 "/home/jens/Source/shotwell/src/Tag.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 284 "/home/jens/Source/shotwell/src/Tag.vala" - break; -#line 9246 "Tag.c" - } -#line 284 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp7_ = _source_it; -#line 284 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 284 "/home/jens/Source/shotwell/src/Tag.vala" - source = (MediaSource*) _tmp8_; -#line 285 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp9_ = self->priv->sources; -#line 285 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp10_ = source; -#line 285 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp10_); -#line 284 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (source); -#line 9262 "Tag.c" - } -#line 284 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (_source_it); -#line 9266 "Tag.c" - } -#line 287 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp11_ = library_photo_global; -#line 287 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _tag_tag_snapshot_on_source_destroyed_source_collection_item_destroyed, self); -#line 288 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp12_ = video_global; -#line 288 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_SOURCE_COLLECTION, SourceCollection), "item-destroyed", (GCallback) _tag_tag_snapshot_on_source_destroyed_source_collection_item_destroyed, self); -#line 278 "/home/jens/Source/shotwell/src/Tag.vala" - return self; -#line 9278 "Tag.c" -} - - -static TagTagSnapshot* -tag_tag_snapshot_new (Tag* tag) -{ -#line 278 "/home/jens/Source/shotwell/src/Tag.vala" - return tag_tag_snapshot_construct (TAG_TYPE_TAG_SNAPSHOT, tag); -#line 9287 "Tag.c" -} - - -static TagRow* -tag_tag_snapshot_get_row (TagTagSnapshot* self) -{ - TagRow* result = NULL; - TagRow* _tmp0_; - TagRow* _tmp1_; -#line 296 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (TAG_IS_TAG_SNAPSHOT (self), NULL); -#line 297 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = self->priv->row; -#line 297 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tag_row_ref0 (_tmp0_); -#line 297 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp1_; -#line 297 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 9307 "Tag.c" -} - - -static void -tag_tag_snapshot_real_notify_broken (SourceSnapshot* base) -{ - TagTagSnapshot * self; - TagRow* _tmp0_; - GeeHashSet* _tmp1_; -#line 300 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TAG_TYPE_TAG_SNAPSHOT, TagTagSnapshot); -#line 301 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_row_new (); -#line 301 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_row_unref0 (self->priv->row); -#line 301 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->row = _tmp0_; -#line 302 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = self->priv->sources; -#line 302 "/home/jens/Source/shotwell/src/Tag.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 304 "/home/jens/Source/shotwell/src/Tag.vala" - SOURCE_SNAPSHOT_CLASS (tag_tag_snapshot_parent_class)->notify_broken (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_SNAPSHOT, SourceSnapshot)); -#line 9331 "Tag.c" -} - - -static void -tag_tag_snapshot_on_source_destroyed (TagTagSnapshot* self, - DataSource* source) -{ - GeeHashSet* _tmp0_; -#line 307 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (TAG_IS_TAG_SNAPSHOT (self)); -#line 307 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 308 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = self->priv->sources; -#line 308 "/home/jens/Source/shotwell/src/Tag.vala" - if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource))) { -#line 309 "/home/jens/Source/shotwell/src/Tag.vala" - source_snapshot_notify_broken (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_SNAPSHOT, SourceSnapshot)); -#line 9350 "Tag.c" - } -} - - -static void -tag_tag_snapshot_class_init (TagTagSnapshotClass * klass) -{ -#line 274 "/home/jens/Source/shotwell/src/Tag.vala" - tag_tag_snapshot_parent_class = g_type_class_peek_parent (klass); -#line 274 "/home/jens/Source/shotwell/src/Tag.vala" - ((SourceSnapshotClass *) klass)->finalize = tag_tag_snapshot_finalize; -#line 274 "/home/jens/Source/shotwell/src/Tag.vala" - g_type_class_add_private (klass, sizeof (TagTagSnapshotPrivate)); -#line 274 "/home/jens/Source/shotwell/src/Tag.vala" - ((SourceSnapshotClass *) klass)->notify_broken = (void (*) (SourceSnapshot *)) tag_tag_snapshot_real_notify_broken; -#line 9366 "Tag.c" -} - - -static void -tag_tag_snapshot_instance_init (TagTagSnapshot * self) -{ - GeeHashSet* _tmp0_; -#line 274 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv = TAG_TAG_SNAPSHOT_GET_PRIVATE (self); -#line 276 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = gee_hash_set_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 276 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->sources = _tmp0_; -#line 9380 "Tag.c" -} - - -static void -tag_tag_snapshot_finalize (SourceSnapshot * obj) -{ - TagTagSnapshot * self; - LibraryPhotoSourceCollection* _tmp0_; - guint _tmp1_; - VideoSourceCollection* _tmp2_; - guint _tmp3_; -#line 274 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TAG_TYPE_TAG_SNAPSHOT, TagTagSnapshot); -#line 292 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = library_photo_global; -#line 292 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE); -#line 292 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _tag_tag_snapshot_on_source_destroyed_source_collection_item_destroyed, self); -#line 293 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = video_global; -#line 293 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE); -#line 293 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _tag_tag_snapshot_on_source_destroyed_source_collection_item_destroyed, self); -#line 275 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_row_unref0 (self->priv->row); -#line 276 "/home/jens/Source/shotwell/src/Tag.vala" - _g_object_unref0 (self->priv->sources); -#line 274 "/home/jens/Source/shotwell/src/Tag.vala" - SOURCE_SNAPSHOT_CLASS (tag_tag_snapshot_parent_class)->finalize (obj); -#line 9412 "Tag.c" -} - - -static GType -tag_tag_snapshot_get_type (void) -{ - static volatile gsize tag_tag_snapshot_type_id__volatile = 0; - if (g_once_init_enter (&tag_tag_snapshot_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TagTagSnapshotClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_tag_snapshot_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagTagSnapshot), 0, (GInstanceInitFunc) tag_tag_snapshot_instance_init, NULL }; - GType tag_tag_snapshot_type_id; - tag_tag_snapshot_type_id = g_type_register_static (TYPE_SOURCE_SNAPSHOT, "TagTagSnapshot", &g_define_type_info, 0); - g_once_init_leave (&tag_tag_snapshot_type_id__volatile, tag_tag_snapshot_type_id); - } - return tag_tag_snapshot_type_id__volatile; -} - - -static TagTagProxy* -tag_tag_proxy_construct (GType object_type, - Tag* tag) -{ - TagTagProxy* self = NULL; -#line 314 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_TAG (tag), NULL); -#line 315 "/home/jens/Source/shotwell/src/Tag.vala" - self = (TagTagProxy*) source_proxy_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_SOURCE, DataSource)); -#line 314 "/home/jens/Source/shotwell/src/Tag.vala" - return self; -#line 9441 "Tag.c" -} - - -static TagTagProxy* -tag_tag_proxy_new (Tag* tag) -{ -#line 314 "/home/jens/Source/shotwell/src/Tag.vala" - return tag_tag_proxy_construct (TAG_TYPE_TAG_PROXY, tag); -#line 9450 "Tag.c" -} - - -static DataSource* -tag_tag_proxy_real_reconstitute (SourceProxy* base, - gint64 object_id, - SourceSnapshot* snapshot) -{ - TagTagProxy * self; - DataSource* result = NULL; - TagRow* _tmp0_; - TagRow* _tmp1_; - Tag* _tmp2_; - DataSource* _tmp3_; -#line 318 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TAG_TYPE_TAG_PROXY, TagTagProxy); -#line 318 "/home/jens/Source/shotwell/src/Tag.vala" - g_return_val_if_fail (IS_SOURCE_SNAPSHOT (snapshot), NULL); -#line 319 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = tag_tag_snapshot_get_row (G_TYPE_CHECK_INSTANCE_CAST (snapshot, TAG_TYPE_TAG_SNAPSHOT, TagTagSnapshot)); -#line 319 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp1_ = _tmp0_; -#line 319 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = tag_reconstitute (object_id, _tmp1_); -#line 319 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_SOURCE, DataSource); -#line 319 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_row_unref0 (_tmp1_); -#line 319 "/home/jens/Source/shotwell/src/Tag.vala" - result = _tmp3_; -#line 319 "/home/jens/Source/shotwell/src/Tag.vala" - return result; -#line 9483 "Tag.c" -} - - -static void -tag_tag_proxy_class_init (TagTagProxyClass * klass) -{ -#line 313 "/home/jens/Source/shotwell/src/Tag.vala" - tag_tag_proxy_parent_class = g_type_class_peek_parent (klass); -#line 313 "/home/jens/Source/shotwell/src/Tag.vala" - ((SourceProxyClass *) klass)->reconstitute = (DataSource* (*) (SourceProxy *, gint64, SourceSnapshot*)) tag_tag_proxy_real_reconstitute; -#line 9494 "Tag.c" -} - - -static void -tag_tag_proxy_instance_init (TagTagProxy * self) -{ -} - - -static GType -tag_tag_proxy_get_type (void) -{ - static volatile gsize tag_tag_proxy_type_id__volatile = 0; - if (g_once_init_enter (&tag_tag_proxy_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TagTagProxyClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_tag_proxy_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagTagProxy), 0, (GInstanceInitFunc) tag_tag_proxy_instance_init, NULL }; - GType tag_tag_proxy_type_id; - tag_tag_proxy_type_id = g_type_register_static (TYPE_SOURCE_PROXY, "TagTagProxy", &g_define_type_info, 0); - g_once_init_leave (&tag_tag_proxy_type_id__volatile, tag_tag_proxy_type_id); - } - return tag_tag_proxy_type_id__volatile; -} - - -static void -tag_class_init (TagClass * klass) -{ -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - tag_parent_class = g_type_class_peek_parent (klass); -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - g_type_class_add_private (klass, sizeof (TagPrivate)); -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) tag_real_get_typename; -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) tag_real_get_instance_id; -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) tag_real_get_name; -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) tag_real_to_string; -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - ((DataSourceClass *) klass)->equals = (gboolean (*) (DataSource *, DataSource*)) tag_real_equals; -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - ((DataSourceClass *) klass)->save_snapshot = (SourceSnapshot* (*) (DataSource *)) tag_real_save_snapshot; -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - ((DataSourceClass *) klass)->destroy = (void (*) (DataSource *)) tag_real_destroy; -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - G_OBJECT_CLASS (klass)->finalize = tag_finalize; -#line 9541 "Tag.c" -} - - -static void -tag_container_source_interface_init (ContainerSourceIface * iface) -{ -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - tag_container_source_parent_iface = g_type_interface_peek_parent (iface); -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - iface->has_links = (gboolean (*) (ContainerSource *)) tag_real_has_links; -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - iface->get_backlink = (SourceBacklink* (*) (ContainerSource *)) tag_real_get_backlink; -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - iface->break_link = (void (*) (ContainerSource *, DataSource*)) tag_real_break_link; -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - iface->break_link_many = (void (*) (ContainerSource *, GeeCollection*)) tag_real_break_link_many; -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - iface->establish_link = (void (*) (ContainerSource *, DataSource*)) tag_real_establish_link; -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - iface->establish_link_many = (void (*) (ContainerSource *, GeeCollection*)) tag_real_establish_link_many; -#line 9562 "Tag.c" -} - - -static void -tag_proxyable_interface_init (ProxyableIface * iface) -{ -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - tag_proxyable_parent_iface = g_type_interface_peek_parent (iface); -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - iface->get_proxy = (SourceProxy* (*) (Proxyable *)) tag_real_get_proxy; -#line 9573 "Tag.c" -} - - -static void -tag_indexable_interface_init (IndexableIface * iface) -{ -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - tag_indexable_parent_iface = g_type_interface_peek_parent (iface); -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - iface->get_indexable_keywords = (const gchar* (*) (Indexable *)) tag_real_get_indexable_keywords; -#line 9584 "Tag.c" -} - - -static void -tag_instance_init (Tag * self) -{ -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv = TAG_GET_PRIVATE (self); -#line 327 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->name_collation_key = NULL; -#line 328 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->unlinking = FALSE; -#line 329 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->relinking = FALSE; -#line 330 "/home/jens/Source/shotwell/src/Tag.vala" - self->priv->indexable_keywords = NULL; -#line 9601 "Tag.c" -} - - -static void -tag_finalize (GObject * obj) -{ - Tag * self; - ViewCollection* _tmp0_; - guint _tmp1_; - LibraryPhotoSourceCollection* _tmp2_; - guint _tmp3_; - VideoSourceCollection* _tmp4_; - guint _tmp5_; -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TAG, Tag); -#line 382 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp0_ = self->priv->media_views; -#line 382 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE); -#line 382 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _tag_on_media_views_contents_altered_data_collection_contents_altered, self); -#line 383 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp2_ = library_photo_global; -#line 383 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_parse_name ("items-destroyed", TYPE_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE); -#line 383 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _tag_on_sources_destroyed_source_collection_items_destroyed, self); -#line 384 "/home/jens/Source/shotwell/src/Tag.vala" - _tmp4_ = video_global; -#line 384 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_parse_name ("items-destroyed", TYPE_SOURCE_COLLECTION, &_tmp5_, NULL, FALSE); -#line 384 "/home/jens/Source/shotwell/src/Tag.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SOURCE_COLLECTION, SourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _tag_on_sources_destroyed_source_collection_items_destroyed, self); -#line 325 "/home/jens/Source/shotwell/src/Tag.vala" - _tag_row_unref0 (self->priv->row); -#line 326 "/home/jens/Source/shotwell/src/Tag.vala" - _data_collection_unref0 (self->priv->media_views); -#line 327 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (self->priv->name_collation_key); -#line 330 "/home/jens/Source/shotwell/src/Tag.vala" - _g_free0 (self->priv->indexable_keywords); -#line 269 "/home/jens/Source/shotwell/src/Tag.vala" - G_OBJECT_CLASS (tag_parent_class)->finalize (obj); -#line 9645 "Tag.c" -} - - -GType -tag_get_type (void) -{ - static volatile gsize tag_type_id__volatile = 0; - if (g_once_init_enter (&tag_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TagClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Tag), 0, (GInstanceInitFunc) tag_instance_init, NULL }; - static const GInterfaceInfo container_source_info = { (GInterfaceInitFunc) tag_container_source_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo proxyable_info = { (GInterfaceInitFunc) tag_proxyable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo indexable_info = { (GInterfaceInitFunc) tag_indexable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType tag_type_id; - tag_type_id = g_type_register_static (TYPE_DATA_SOURCE, "Tag", &g_define_type_info, 0); - g_type_add_interface_static (tag_type_id, TYPE_CONTAINER_SOURCE, &container_source_info); - g_type_add_interface_static (tag_type_id, TYPE_PROXYABLE, &proxyable_info); - g_type_add_interface_static (tag_type_id, TYPE_INDEXABLE, &indexable_info); - g_once_init_leave (&tag_type_id__volatile, tag_type_id); - } - return tag_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/Thumbnail.c b/src/Thumbnail.c deleted file mode 100644 index 34942cc..0000000 --- a/src/Thumbnail.c +++ /dev/null @@ -1,2656 +0,0 @@ -/* Thumbnail.c generated by valac 0.40.4, the Vala compiler - * generated from Thumbnail.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; -typedef struct _DataViewPrivate DataViewPrivate; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; -typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; -typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_MEDIA_SOURCE_ITEM (media_source_item_get_type ()) -#define MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem)) -#define MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) -#define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM)) -#define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM)) -#define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) - -typedef struct _MediaSourceItem MediaSourceItem; -typedef struct _MediaSourceItemClass MediaSourceItemClass; -typedef struct _MediaSourceItemPrivate MediaSourceItemPrivate; - -#define TYPE_THUMBNAIL (thumbnail_get_type ()) -#define THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL, Thumbnail)) -#define THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL, ThumbnailClass)) -#define IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL)) -#define IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL)) -#define THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL, ThumbnailClass)) - -typedef struct _Thumbnail Thumbnail; -typedef struct _ThumbnailClass ThumbnailClass; -typedef struct _ThumbnailPrivate ThumbnailPrivate; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; -enum { - THUMBNAIL_0_PROPERTY, - THUMBNAIL_NUM_PROPERTIES -}; -static GParamSpec* thumbnail_properties[THUMBNAIL_NUM_PROPERTIES]; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ()) -#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection)) -#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) -#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION)) -#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION)) -#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) - -typedef struct _TagSourceCollection TagSourceCollection; -typedef struct _TagSourceCollectionClass TagSourceCollectionClass; - -#define TYPE_CONTAINER_SOURCE (container_source_get_type ()) -#define CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE, ContainerSource)) -#define IS_CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE)) -#define CONTAINER_SOURCE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONTAINER_SOURCE, ContainerSourceIface)) - -typedef struct _ContainerSource ContainerSource; -typedef struct _ContainerSourceIface ContainerSourceIface; - -#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ()) -#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink)) -#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) -#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK)) -#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK)) -#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) - -typedef struct _SourceBacklink SourceBacklink; -typedef struct _SourceBacklinkClass SourceBacklinkClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ()) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; - -#define TYPE_RATING (rating_get_type ()) - -#define THUMBNAIL_CACHE_TYPE_SIZE (thumbnail_cache_size_get_type ()) - -#define TYPE_FLAGGABLE (flaggable_get_type ()) -#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable)) -#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE)) -#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface)) - -typedef struct _Flaggable Flaggable; -typedef struct _FlaggableIface FlaggableIface; -#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataView { - DataObject parent_instance; - DataViewPrivate * priv; -}; - -struct _DataViewClass { - DataObjectClass parent_class; - void (*notify_view_altered) (DataView* self); - void (*notify_geometry_altered) (DataView* self); - void (*notify_unsubscribed) (DataView* self, DataSource* source); - void (*state_changed) (DataView* self, gboolean selected); - void (*visibility_changed) (DataView* self, gboolean visible); - void (*view_altered) (DataView* self); - void (*geometry_altered) (DataView* self); - void (*unsubscribed) (DataView* self, DataSource* source); -}; - -struct _ThumbnailView { - DataView parent_instance; - ThumbnailViewPrivate * priv; -}; - -struct _ThumbnailViewClass { - DataViewClass parent_class; - void (*notify_thumbnail_altered) (ThumbnailView* self); - void (*thumbnail_altered) (ThumbnailView* self); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _CheckerboardItem { - ThumbnailView parent_instance; - CheckerboardItemPrivate * priv; - Dimensions requisition; - GdkRectangle allocation; -}; - -struct _CheckerboardItemClass { - ThumbnailViewClass parent_class; - void (*exposed) (CheckerboardItem* self); - void (*unexposed) (CheckerboardItem* self); - gboolean (*is_exposed) (CheckerboardItem* self); - void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha); - void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width); - void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin); - GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale); -}; - -struct _MediaSourceItem { - CheckerboardItem parent_instance; - MediaSourceItemPrivate * priv; -}; - -struct _MediaSourceItemClass { - CheckerboardItemClass parent_class; -}; - -struct _Thumbnail { - MediaSourceItem parent_instance; - ThumbnailPrivate * priv; -}; - -struct _ThumbnailClass { - MediaSourceItemClass parent_class; -}; - -struct _ThumbnailPrivate { - MediaSource* media; - gint scale; - Dimensions original_dim; - Dimensions dim; - GdkPixbuf* unscaled_pixbuf; - GCancellable* cancellable; - gboolean hq_scheduled; - gboolean hq_reschedule; - gboolean exposure; -}; - -struct _ContainerSourceIface { - GTypeInterface parent_iface; - gboolean (*has_links) (ContainerSource* self); - SourceBacklink* (*get_backlink) (ContainerSource* self); - void (*break_link) (ContainerSource* self, DataSource* source); - void (*break_link_many) (ContainerSource* self, GeeCollection* sources); - void (*establish_link) (ContainerSource* self, DataSource* source); - void (*establish_link_many) (ContainerSource* self, GeeCollection* sources); -}; - -typedef enum { - PHOTO_EXCEPTION_NONE = 0, - PHOTO_EXCEPTION_ORIENTATION = 1 << 0, - PHOTO_EXCEPTION_CROP = 1 << 1, - PHOTO_EXCEPTION_REDEYE = 1 << 2, - PHOTO_EXCEPTION_ADJUST = 1 << 3, - PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4, - PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL -} PhotoException; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef void (*ThumbnailCacheAsyncFetchCallback) (GdkPixbuf* pixbuf, GdkPixbuf* unscaled, Dimensions* dim, GdkInterpType interp, GError* err, void* user_data); -typedef enum { - THUMBNAIL_CACHE_SIZE_LARGEST = 360, - THUMBNAIL_CACHE_SIZE_BIG = 360, - THUMBNAIL_CACHE_SIZE_MEDIUM = 128, - THUMBNAIL_CACHE_SIZE_SMALLEST = 128 -} ThumbnailCacheSize; - -struct _FlaggableIface { - GTypeInterface parent_iface; - gboolean (*is_flagged) (Flaggable* self); - void (*mark_flagged) (Flaggable* self); - void (*mark_unflagged) (Flaggable* self); -}; - - -static gpointer thumbnail_parent_class = NULL; -extern TagSourceCollection* tag_global; - -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType media_source_item_get_type (void) G_GNUC_CONST; -GType thumbnail_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -#define THUMBNAIL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_THUMBNAIL, ThumbnailPrivate)) -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType tag_source_collection_get_type (void) G_GNUC_CONST; -gpointer source_backlink_ref (gpointer instance); -void source_backlink_unref (gpointer instance); -GParamSpec* param_spec_source_backlink (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_backlink (GValue* value, - gpointer v_object); -void value_take_source_backlink (GValue* value, - gpointer v_object); -gpointer value_get_source_backlink (const GValue* value); -GType source_backlink_get_type (void) G_GNUC_CONST; -GType container_source_get_type (void) G_GNUC_CONST; -static void thumbnail_on_tag_contents_altered (Thumbnail* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinking, - GeeCollection* removed, - gboolean unlinking); -static void _thumbnail_on_tag_contents_altered_container_source_collection_container_contents_altered (ContainerSourceCollection* _sender, - ContainerSource* container, - GeeCollection* added, - gboolean relinked, - GeeCollection* removed, - gboolean unlinked, - gpointer self); -static void thumbnail_on_tags_altered (Thumbnail* self, - GeeMap* altered); -static void _thumbnail_on_tags_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -#define CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES "show-subtitles" -#define THUMBNAIL_PROP_SHOW_TAGS CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES -#define THUMBNAIL_PROP_SIZE "thumbnail-size" -#define THUMBNAIL_PROP_SHOW_RATINGS "show-ratings" -#define THUMBNAIL_LOW_QUALITY_INTERP GDK_INTERP_NEAREST -#define THUMBNAIL_HIGH_QUALITY_INTERP GDK_INTERP_BILINEAR -#define THUMBNAIL_HQ_IMPROVEMENT_MSEC 100 -Thumbnail* thumbnail_new (MediaSource* media, - gint scale); -Thumbnail* thumbnail_construct (GType object_type, - MediaSource* media, - gint scale); -GType photo_exception_get_type (void) G_GNUC_CONST; -void media_source_get_dimensions (MediaSource* self, - PhotoException disallowed_steps, - Dimensions* result); -void dimensions_get_scaled (Dimensions *self, - gint scale, - gboolean scale_up, - Dimensions* result); -gchar* data_object_get_name (DataObject* self); -gchar* media_source_get_comment (MediaSource* self); -MediaSourceItem* media_source_item_new (ThumbnailSource* source, - Dimensions* initial_pixbuf_dim, - const gchar* title, - const gchar* comment, - gboolean marked_up, - PangoAlignment alignment); -MediaSourceItem* media_source_item_construct (GType object_type, - ThumbnailSource* source, - Dimensions* initial_pixbuf_dim, - const gchar* title, - const gchar* comment, - gboolean marked_up, - PangoAlignment alignment); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -GType video_source_get_type (void) G_GNUC_CONST; -GType video_get_type (void) G_GNUC_CONST; -void media_source_item_set_enable_sprockets (MediaSourceItem* self, - gboolean enable_sprockets); -static void thumbnail_update_title (Thumbnail* self, - gboolean init); -static void thumbnail_update_comment (Thumbnail* self, - gboolean init); -static void thumbnail_update_tags (Thumbnail* self, - gboolean init); -GType tag_get_type (void) G_GNUC_CONST; -GeeSortedSet* tag_source_collection_fetch_sorted_for_source (TagSourceCollection* self, - MediaSource* photo); -void checkerboard_item_clear_tags (CheckerboardItem* self); -void checkerboard_item_set_tags (CheckerboardItem* self, - GeeCollection* tags, - PangoAlignment alignment); -gboolean tag_contains (Tag* self, - MediaSource* source); -gboolean is_string_empty (const gchar* s); -void checkerboard_item_clear_title (CheckerboardItem* self); -void media_source_item_set_title (MediaSourceItem* self, - const gchar* text, - gboolean marked_up, - PangoAlignment alignment); -void checkerboard_item_clear_comment (CheckerboardItem* self); -void checkerboard_item_set_comment (CheckerboardItem* self, - const gchar* text, - gboolean marked_up, - PangoAlignment alignment); -static void thumbnail_real_notify_altered (DataObject* base, - Alteration* alteration); -gboolean alteration_has_detail (Alteration* self, - const gchar* subject, - const gchar* detail); -void data_object_notify_altered (DataObject* self, - Alteration* alteration); -MediaSource* thumbnail_get_media_source (Thumbnail* self); -gint64 thumbnail_photo_id_ascending_comparator (void* a, - void* b); -gint64 data_source_get_instance_id (DataSource* self); -gint64 thumbnail_photo_id_descending_comparator (void* a, - void* b); -gint64 thumbnail_title_ascending_comparator (void* a, - void* b); -gchar* media_source_item_get_natural_collation_key (MediaSourceItem* self); -gint64 thumbnail_title_descending_comparator (void* a, - void* b); -gboolean thumbnail_title_comparator_predicate (DataObject* object, - Alteration* alteration); -gint64 thumbnail_exposure_time_ascending_comparator (void* a, - void* b); -time_t media_source_get_exposure_time (MediaSource* self); -gint64 thumbnail_filename_ascending_comparator (void* a, - void* b); -gint64 thumbnail_exposure_time_desending_comparator (void* a, - void* b); -gint64 thumbnail_filename_descending_comparator (void* a, - void* b); -gboolean thumbnail_exposure_time_comparator_predicate (DataObject* object, - Alteration* alteration); -gboolean thumbnail_filename_comparator_predicate (DataObject* object, - Alteration* alteration); -GFile* media_source_get_file (MediaSource* self); -gint64 thumbnail_rating_ascending_comparator (void* a, - void* b); -GType rating_get_type (void) G_GNUC_CONST; -Rating media_source_get_rating (MediaSource* self); -gint64 thumbnail_rating_descending_comparator (void* a, - void* b); -gboolean thumbnail_rating_comparator_predicate (DataObject* object, - Alteration* alteration); -static void thumbnail_real_thumbnail_altered (ThumbnailView* base); -static void thumbnail_delayed_high_quality_fetch (Thumbnail* self); -static void thumbnail_paint_empty (Thumbnail* self); -static void thumbnail_real_notify_collection_property_set (DataObject* base, - const gchar* name, - GValue* old, - GValue* val); -static void thumbnail_resize (Thumbnail* self, - gint new_scale); -void data_view_notify_view_altered (DataView* self); -void data_object_notify_collection_property_set (DataObject* self, - const gchar* name, - GValue* old, - GValue* val); -gint thumbnail_get_MIN_SCALE (void); -gint thumbnail_get_MAX_SCALE (void); -static void thumbnail_cancel_async_fetch (Thumbnail* self); -gboolean checkerboard_item_has_image (CheckerboardItem* self); -GdkPixbuf* checkerboard_item_get_image (CheckerboardItem* self); -void checkerboard_item_set_image (CheckerboardItem* self, - GdkPixbuf* pixbuf); -GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf, - Dimensions* resized, - GdkInterpType interp); -void checkerboard_item_clear_image (CheckerboardItem* self, - Dimensions* dim); -static void thumbnail_schedule_low_quality_fetch (Thumbnail* self); -void thumbnail_cache_fetch_async_scaled (ThumbnailSource* source, - gint scale, - Dimensions* dim, - GdkInterpType interp, - ThumbnailCacheAsyncFetchCallback callback, - void* callback_target, - GCancellable* cancellable); -GType thumbnail_cache_size_get_type (void) G_GNUC_CONST; -static void thumbnail_on_low_quality_fetched (Thumbnail* self, - GdkPixbuf* pixbuf, - GdkPixbuf* unscaled, - Dimensions* dim, - GdkInterpType interp, - GError* err); -static void _thumbnail_on_low_quality_fetched_thumbnail_cache_async_fetch_callback (GdkPixbuf* pixbuf, - GdkPixbuf* unscaled, - Dimensions* dim, - GdkInterpType interp, - GError* err, - gpointer self); -static gboolean thumbnail_on_schedule_high_quality (Thumbnail* self); -static gboolean _thumbnail_on_schedule_high_quality_gsource_func (gpointer self); -static void thumbnail_on_high_quality_fetched (Thumbnail* self, - GdkPixbuf* pixbuf, - GdkPixbuf* unscaled, - Dimensions* dim, - GdkInterpType interp, - GError* err); -static void _thumbnail_on_high_quality_fetched_thumbnail_cache_async_fetch_callback (GdkPixbuf* pixbuf, - GdkPixbuf* unscaled, - Dimensions* dim, - GdkInterpType interp, - GError* err, - gpointer self); -gchar* data_object_to_string (DataObject* self); -static void thumbnail_real_exposed (CheckerboardItem* base); -void checkerboard_item_exposed (CheckerboardItem* self); -static void thumbnail_real_unexposed (CheckerboardItem* base); -void checkerboard_item_unexposed (CheckerboardItem* self); -static GdkPixbuf* thumbnail_real_get_top_right_trinket (CheckerboardItem* base, - gint scale); -GType flaggable_get_type (void) G_GNUC_CONST; -gboolean flaggable_is_flagged (Flaggable* self); -GdkPixbuf* resources_get_icon (const gchar* name, - gint scale); -#define RESOURCES_ICON_FLAGGED_TRINKET "flag-trinket.png" -#define RESOURCES_DEFAULT_ICON_SCALE 24 -static GdkPixbuf* thumbnail_real_get_bottom_left_trinket (CheckerboardItem* base, - gint scale); -void data_object_get_collection_property (DataObject* self, - const gchar* name, - GValue* def, - GValue* result); -static void _vala_GValue_free (GValue* self); -GdkPixbuf* resources_get_rating_trinket (Rating rating, - gint scale); -gint thumbnail_cache_size_get_scale (ThumbnailCacheSize self); -gint thumbnail_get_DEFAULT_SCALE (void); -static void thumbnail_finalize (GObject * obj); -static void _vala_thumbnail_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); - - -static void -_thumbnail_on_tag_contents_altered_container_source_collection_container_contents_altered (ContainerSourceCollection* _sender, - ContainerSource* container, - GeeCollection* added, - gboolean relinked, - GeeCollection* removed, - gboolean unlinked, - gpointer self) -{ -#line 76 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_on_tag_contents_altered ((Thumbnail*) self, container, added, relinked, removed, unlinked); -#line 726 "Thumbnail.c" -} - - -static void -_thumbnail_on_tags_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 77 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_on_tags_altered ((Thumbnail*) self, items); -#line 737 "Thumbnail.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 53 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return self ? g_object_ref (self) : NULL; -#line 746 "Thumbnail.c" -} - - -Thumbnail* -thumbnail_construct (GType object_type, - MediaSource* media, - gint scale) -{ - Thumbnail * self = NULL; - Dimensions _tmp0_ = {0}; - Dimensions _tmp1_ = {0}; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - MediaSource* _tmp6_; - TagSourceCollection* _tmp7_; - TagSourceCollection* _tmp8_; - gboolean _tmp9_ = FALSE; - Dimensions _tmp10_ = {0}; - Dimensions _tmp11_ = {0}; -#line 49 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (media), NULL); -#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala" - media_source_get_dimensions (media, PHOTO_EXCEPTION_NONE, &_tmp0_); -#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala" - dimensions_get_scaled (&_tmp0_, scale, TRUE, &_tmp1_); -#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (media, TYPE_DATA_OBJECT, DataObject)); -#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = _tmp2_; -#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = media_source_get_comment (media); -#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp5_ = _tmp4_; -#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self = (Thumbnail*) media_source_item_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (media, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), &_tmp1_, _tmp3_, _tmp5_, FALSE, PANGO_ALIGN_LEFT); -#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_free0 (_tmp5_); -#line 50 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_free0 (_tmp3_); -#line 53 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp6_ = _g_object_ref0 (media); -#line 53 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (self->priv->media); -#line 53 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->media = _tmp6_; -#line 54 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->scale = scale; -#line 56 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp7_ = tag_global; -#line 56 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), "container-contents-altered", (GCallback) _thumbnail_on_tag_contents_altered_container_source_collection_container_contents_altered, self, 0); -#line 57 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp8_ = tag_global; -#line 57 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _thumbnail_on_tags_altered_data_collection_items_altered, self, 0); -#line 59 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (media, TYPE_LIBRARY_PHOTO)) { -#line 59 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp9_ = TRUE; -#line 808 "Thumbnail.c" - } else { -#line 59 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp9_ = G_TYPE_CHECK_INSTANCE_TYPE (media, TYPE_VIDEO); -#line 812 "Thumbnail.c" - } -#line 59 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _vala_assert (_tmp9_, "(media is LibraryPhoto) || (media is Video)"); -#line 60 "/home/jens/Source/shotwell/src/Thumbnail.vala" - media_source_item_set_enable_sprockets (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem), G_TYPE_CHECK_INSTANCE_TYPE (media, TYPE_VIDEO)); -#line 62 "/home/jens/Source/shotwell/src/Thumbnail.vala" - media_source_get_dimensions (media, PHOTO_EXCEPTION_NONE, &_tmp10_); -#line 62 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->original_dim = _tmp10_; -#line 63 "/home/jens/Source/shotwell/src/Thumbnail.vala" - dimensions_get_scaled (&self->priv->original_dim, scale, TRUE, &_tmp11_); -#line 63 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->dim = _tmp11_; -#line 67 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_update_title (self, TRUE); -#line 68 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_update_comment (self, TRUE); -#line 69 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_update_tags (self, TRUE); -#line 49 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return self; -#line 834 "Thumbnail.c" -} - - -Thumbnail* -thumbnail_new (MediaSource* media, - gint scale) -{ -#line 49 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return thumbnail_construct (TYPE_THUMBNAIL, media, scale); -#line 844 "Thumbnail.c" -} - - -static void -thumbnail_update_tags (Thumbnail* self, - gboolean init) -{ - GeeCollection* tags = NULL; - TagSourceCollection* _tmp0_; - MediaSource* _tmp1_; - GeeSortedSet* _tmp2_; - gboolean _tmp3_ = FALSE; - GeeCollection* _tmp4_; -#line 80 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (IS_THUMBNAIL (self)); -#line 81 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = tag_global; -#line 81 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = self->priv->media; -#line 81 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = tag_source_collection_fetch_sorted_for_source (_tmp0_, _tmp1_); -#line 81 "/home/jens/Source/shotwell/src/Thumbnail.vala" - tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 82 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = tags; -#line 82 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp4_ == NULL) { -#line 82 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = TRUE; -#line 874 "Thumbnail.c" - } else { - GeeCollection* _tmp5_; - gint _tmp6_; - gint _tmp7_; -#line 82 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp5_ = tags; -#line 82 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp6_ = gee_collection_get_size (_tmp5_); -#line 82 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp7_ = _tmp6_; -#line 82 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = _tmp7_ == 0; -#line 887 "Thumbnail.c" - } -#line 82 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp3_) { -#line 83 "/home/jens/Source/shotwell/src/Thumbnail.vala" - checkerboard_item_clear_tags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 893 "Thumbnail.c" - } else { - GeeCollection* _tmp8_; -#line 85 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp8_ = tags; -#line 85 "/home/jens/Source/shotwell/src/Thumbnail.vala" - checkerboard_item_set_tags (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp8_, PANGO_ALIGN_LEFT); -#line 900 "Thumbnail.c" - } -#line 80 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (tags); -#line 904 "Thumbnail.c" -} - - -static void -thumbnail_on_tag_contents_altered (Thumbnail* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinking, - GeeCollection* removed, - gboolean unlinking) -{ - gboolean _tmp0_; - gboolean _tmp1_ = FALSE; - gboolean tag_added = FALSE; - gboolean _tmp3_ = FALSE; - gboolean tag_removed = FALSE; - gboolean _tmp5_ = FALSE; - gboolean _tmp6_; -#line 88 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (IS_THUMBNAIL (self)); -#line 88 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (container)); -#line 88 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 88 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 90 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = self->priv->exposure; -#line 90 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (!_tmp0_) { -#line 91 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return; -#line 937 "Thumbnail.c" - } -#line 93 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (added != NULL) { -#line 941 "Thumbnail.c" - MediaSource* _tmp2_; -#line 93 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = self->priv->media; -#line 93 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = gee_collection_contains (added, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_SOURCE, DataSource)); -#line 947 "Thumbnail.c" - } else { -#line 93 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = FALSE; -#line 951 "Thumbnail.c" - } -#line 93 "/home/jens/Source/shotwell/src/Thumbnail.vala" - tag_added = _tmp1_; -#line 94 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (removed != NULL) { -#line 957 "Thumbnail.c" - MediaSource* _tmp4_; -#line 94 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = self->priv->media; -#line 94 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = gee_collection_contains (removed, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_SOURCE, DataSource)); -#line 963 "Thumbnail.c" - } else { -#line 94 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = FALSE; -#line 967 "Thumbnail.c" - } -#line 94 "/home/jens/Source/shotwell/src/Thumbnail.vala" - tag_removed = _tmp3_; -#line 97 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp6_ = tag_added; -#line 97 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp6_) { -#line 97 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp5_ = TRUE; -#line 977 "Thumbnail.c" - } else { - gboolean _tmp7_; -#line 97 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp7_ = tag_removed; -#line 97 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp5_ = _tmp7_; -#line 984 "Thumbnail.c" - } -#line 97 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp5_) { -#line 98 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_update_tags (self, FALSE); -#line 990 "Thumbnail.c" - } -} - - -static void -thumbnail_on_tags_altered (Thumbnail* self, - GeeMap* altered) -{ - gboolean _tmp0_; -#line 101 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (IS_THUMBNAIL (self)); -#line 101 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (GEE_IS_MAP (altered)); -#line 102 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = self->priv->exposure; -#line 102 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (!_tmp0_) { -#line 103 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return; -#line 1010 "Thumbnail.c" - } - { - GeeIterator* _object_it = NULL; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeSet* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = gee_map_get_keys (altered); -#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = _tmp1_; -#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = _tmp2_; -#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp5_ = _tmp4_; -#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (_tmp3_); -#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _object_it = _tmp5_; -#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala" - while (TRUE) { -#line 1035 "Thumbnail.c" - GeeIterator* _tmp6_; - DataObject* object = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - Tag* tag = NULL; - DataObject* _tmp9_; - Tag* _tmp10_; - Tag* _tmp11_; - MediaSource* _tmp12_; -#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp6_ = _object_it; -#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala" - break; -#line 1051 "Thumbnail.c" - } -#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp7_ = _object_it; -#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala" - object = (DataObject*) _tmp8_; -#line 106 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp9_ = object; -#line 106 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_TAG, Tag)); -#line 106 "/home/jens/Source/shotwell/src/Thumbnail.vala" - tag = _tmp10_; -#line 108 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp11_ = tag; -#line 108 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp12_ = self->priv->media; -#line 108 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (tag_contains (_tmp11_, _tmp12_)) { -#line 109 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_update_tags (self, FALSE); -#line 111 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (tag); -#line 111 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (object); -#line 111 "/home/jens/Source/shotwell/src/Thumbnail.vala" - break; -#line 1079 "Thumbnail.c" - } -#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (tag); -#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (object); -#line 1085 "Thumbnail.c" - } -#line 105 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (_object_it); -#line 1089 "Thumbnail.c" - } -} - - -static void -thumbnail_update_title (Thumbnail* self, - gboolean init) -{ - gchar* title = NULL; - MediaSource* _tmp0_; - gchar* _tmp1_; - const gchar* _tmp2_; -#line 116 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (IS_THUMBNAIL (self)); -#line 117 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = self->priv->media; -#line 117 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject)); -#line 117 "/home/jens/Source/shotwell/src/Thumbnail.vala" - title = _tmp1_; -#line 118 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = title; -#line 118 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (is_string_empty (_tmp2_)) { -#line 119 "/home/jens/Source/shotwell/src/Thumbnail.vala" - checkerboard_item_clear_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 1116 "Thumbnail.c" - } else { -#line 120 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (!init) { -#line 1120 "Thumbnail.c" - const gchar* _tmp3_; -#line 121 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = title; -#line 121 "/home/jens/Source/shotwell/src/Thumbnail.vala" - media_source_item_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem), _tmp3_, FALSE, PANGO_ALIGN_LEFT); -#line 1126 "Thumbnail.c" - } - } -#line 116 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_free0 (title); -#line 1131 "Thumbnail.c" -} - - -static void -thumbnail_update_comment (Thumbnail* self, - gboolean init) -{ - gchar* comment = NULL; - MediaSource* _tmp0_; - gchar* _tmp1_; - const gchar* _tmp2_; -#line 124 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (IS_THUMBNAIL (self)); -#line 125 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = self->priv->media; -#line 125 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = media_source_get_comment (_tmp0_); -#line 125 "/home/jens/Source/shotwell/src/Thumbnail.vala" - comment = _tmp1_; -#line 126 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = comment; -#line 126 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (is_string_empty (_tmp2_)) { -#line 127 "/home/jens/Source/shotwell/src/Thumbnail.vala" - checkerboard_item_clear_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 1157 "Thumbnail.c" - } else { -#line 128 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (!init) { -#line 1161 "Thumbnail.c" - const gchar* _tmp3_; -#line 129 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = comment; -#line 129 "/home/jens/Source/shotwell/src/Thumbnail.vala" - checkerboard_item_set_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp3_, FALSE, PANGO_ALIGN_LEFT); -#line 1167 "Thumbnail.c" - } - } -#line 124 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_free0 (comment); -#line 1172 "Thumbnail.c" -} - - -static void -thumbnail_real_notify_altered (DataObject* base, - Alteration* alteration) -{ - Thumbnail * self; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; - gboolean _tmp2_ = FALSE; - gboolean _tmp3_; -#line 132 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_THUMBNAIL, Thumbnail); -#line 132 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (IS_ALTERATION (alteration)); -#line 133 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = self->priv->exposure; -#line 133 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp1_) { -#line 133 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = alteration_has_detail (alteration, "metadata", "name"); -#line 1195 "Thumbnail.c" - } else { -#line 133 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = FALSE; -#line 1199 "Thumbnail.c" - } -#line 133 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp0_) { -#line 134 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_update_title (self, FALSE); -#line 1205 "Thumbnail.c" - } -#line 135 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = self->priv->exposure; -#line 135 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp3_) { -#line 135 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = alteration_has_detail (alteration, "metadata", "comment"); -#line 1213 "Thumbnail.c" - } else { -#line 135 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = FALSE; -#line 1217 "Thumbnail.c" - } -#line 135 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp2_) { -#line 136 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_update_comment (self, FALSE); -#line 1223 "Thumbnail.c" - } -#line 138 "/home/jens/Source/shotwell/src/Thumbnail.vala" - DATA_OBJECT_CLASS (thumbnail_parent_class)->notify_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem), TYPE_DATA_OBJECT, DataObject), alteration); -#line 1227 "Thumbnail.c" -} - - -MediaSource* -thumbnail_get_media_source (Thumbnail* self) -{ - MediaSource* result = NULL; - MediaSource* _tmp0_; - MediaSource* _tmp1_; -#line 141 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_val_if_fail (IS_THUMBNAIL (self), NULL); -#line 142 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = self->priv->media; -#line 142 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 142 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = _tmp1_; -#line 142 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 1247 "Thumbnail.c" -} - - -gint64 -thumbnail_photo_id_ascending_comparator (void* a, - void* b) -{ - gint64 result = 0LL; - MediaSource* _tmp0_; - MediaSource* _tmp1_; -#line 150 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) a, TYPE_THUMBNAIL, Thumbnail)->priv->media; -#line 150 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) b, TYPE_THUMBNAIL, Thumbnail)->priv->media; -#line 150 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = data_source_get_instance_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_SOURCE, DataSource)) - data_source_get_instance_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_SOURCE, DataSource)); -#line 150 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 1266 "Thumbnail.c" -} - - -gint64 -thumbnail_photo_id_descending_comparator (void* a, - void* b) -{ - gint64 result = 0LL; -#line 154 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = thumbnail_photo_id_ascending_comparator (b, a); -#line 154 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 1279 "Thumbnail.c" -} - - -gint64 -thumbnail_title_ascending_comparator (void* a, - void* b) -{ - gint64 result = 0LL; - gint64 _result_ = 0LL; - GCompareFunc _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gint64 _tmp5_; - gint64 _tmp6_ = 0LL; - gint64 _tmp7_; -#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = g_strcmp0; -#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = media_source_item_get_natural_collation_key (G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) a, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem)); -#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = _tmp1_; -#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = media_source_item_get_natural_collation_key (G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) b, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem)); -#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = _tmp3_; -#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp5_ = (gint64) _tmp0_ (_tmp2_, _tmp4_); -#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_free0 (_tmp4_); -#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_free0 (_tmp2_); -#line 158 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _result_ = _tmp5_; -#line 159 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp7_ = _result_; -#line 159 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp7_ != ((gint64) 0)) { -#line 1319 "Thumbnail.c" - gint64 _tmp8_; -#line 159 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp8_ = _result_; -#line 159 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp6_ = _tmp8_; -#line 1325 "Thumbnail.c" - } else { -#line 159 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp6_ = thumbnail_photo_id_ascending_comparator (a, b); -#line 1329 "Thumbnail.c" - } -#line 159 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = _tmp6_; -#line 159 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 1335 "Thumbnail.c" -} - - -gint64 -thumbnail_title_descending_comparator (void* a, - void* b) -{ - gint64 result = 0LL; - gint64 _result_ = 0LL; - gint64 _tmp0_ = 0LL; - gint64 _tmp1_; -#line 163 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _result_ = thumbnail_title_ascending_comparator (b, a); -#line 165 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = _result_; -#line 165 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp1_ != ((gint64) 0)) { -#line 1353 "Thumbnail.c" - gint64 _tmp2_; -#line 165 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = _result_; -#line 165 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = _tmp2_; -#line 1359 "Thumbnail.c" - } else { -#line 165 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = thumbnail_photo_id_descending_comparator (a, b); -#line 1363 "Thumbnail.c" - } -#line 165 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = _tmp0_; -#line 165 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 1369 "Thumbnail.c" -} - - -gboolean -thumbnail_title_comparator_predicate (DataObject* object, - Alteration* alteration) -{ - gboolean result = FALSE; -#line 168 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 168 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_val_if_fail (IS_ALTERATION (alteration), FALSE); -#line 169 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = alteration_has_detail (alteration, "metadata", "title"); -#line 169 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 1386 "Thumbnail.c" -} - - -gint64 -thumbnail_exposure_time_ascending_comparator (void* a, - void* b) -{ - gint64 result = 0LL; - gint64 time_a = 0LL; - MediaSource* _tmp0_; - gint64 time_b = 0LL; - MediaSource* _tmp1_; - gint64 _result_ = 0LL; - gint64 _tmp2_; - gint64 _tmp3_; - gint64 _tmp4_ = 0LL; - gint64 _tmp5_; -#line 173 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) a, TYPE_THUMBNAIL, Thumbnail)->priv->media; -#line 173 "/home/jens/Source/shotwell/src/Thumbnail.vala" - time_a = (gint64) media_source_get_exposure_time (_tmp0_); -#line 174 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) b, TYPE_THUMBNAIL, Thumbnail)->priv->media; -#line 174 "/home/jens/Source/shotwell/src/Thumbnail.vala" - time_b = (gint64) media_source_get_exposure_time (_tmp1_); -#line 175 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = time_a; -#line 175 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = time_b; -#line 175 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _result_ = _tmp2_ - _tmp3_; -#line 177 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp5_ = _result_; -#line 177 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp5_ != ((gint64) 0)) { -#line 1422 "Thumbnail.c" - gint64 _tmp6_; -#line 177 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp6_ = _result_; -#line 177 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = _tmp6_; -#line 1428 "Thumbnail.c" - } else { -#line 177 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = thumbnail_filename_ascending_comparator (a, b); -#line 1432 "Thumbnail.c" - } -#line 177 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = _tmp4_; -#line 177 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 1438 "Thumbnail.c" -} - - -gint64 -thumbnail_exposure_time_desending_comparator (void* a, - void* b) -{ - gint64 result = 0LL; - gint64 _result_ = 0LL; - gint64 _tmp0_ = 0LL; - gint64 _tmp1_; -#line 181 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _result_ = thumbnail_exposure_time_ascending_comparator (b, a); -#line 183 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = _result_; -#line 183 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp1_ != ((gint64) 0)) { -#line 1456 "Thumbnail.c" - gint64 _tmp2_; -#line 183 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = _result_; -#line 183 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = _tmp2_; -#line 1462 "Thumbnail.c" - } else { -#line 183 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = thumbnail_filename_descending_comparator (a, b); -#line 1466 "Thumbnail.c" - } -#line 183 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = _tmp0_; -#line 183 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 1472 "Thumbnail.c" -} - - -gboolean -thumbnail_exposure_time_comparator_predicate (DataObject* object, - Alteration* alteration) -{ - gboolean result = FALSE; -#line 186 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 186 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_val_if_fail (IS_ALTERATION (alteration), FALSE); -#line 187 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = alteration_has_detail (alteration, "metadata", "exposure-time"); -#line 187 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 1489 "Thumbnail.c" -} - - -gboolean -thumbnail_filename_comparator_predicate (DataObject* object, - Alteration* alteration) -{ - gboolean result = FALSE; -#line 190 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 190 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_val_if_fail (IS_ALTERATION (alteration), FALSE); -#line 191 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = alteration_has_detail (alteration, "metadata", "filename"); -#line 191 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 1506 "Thumbnail.c" -} - - -gint64 -thumbnail_filename_ascending_comparator (void* a, - void* b) -{ - gint64 result = 0LL; - gchar* path_a = NULL; - MediaSource* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* path_b = NULL; - MediaSource* _tmp7_; - GFile* _tmp8_; - GFile* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gint64 _result_ = 0LL; - GCompareFunc _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - const gchar* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gint64 _tmp21_; - gint64 _tmp22_ = 0LL; - gint64 _tmp23_; -#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) a, TYPE_THUMBNAIL, Thumbnail)->priv->media; -#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = media_source_get_file (_tmp0_); -#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = _tmp1_; -#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = g_file_get_basename (_tmp2_); -#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = _tmp3_; -#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp5_ = g_utf8_strdown (_tmp4_, (gssize) -1); -#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp6_ = _tmp5_; -#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_free0 (_tmp4_); -#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (_tmp2_); -#line 195 "/home/jens/Source/shotwell/src/Thumbnail.vala" - path_a = _tmp6_; -#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) b, TYPE_THUMBNAIL, Thumbnail)->priv->media; -#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp8_ = media_source_get_file (_tmp7_); -#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp9_ = _tmp8_; -#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp10_ = g_file_get_basename (_tmp9_); -#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp11_ = _tmp10_; -#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp12_ = g_utf8_strdown (_tmp11_, (gssize) -1); -#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp13_ = _tmp12_; -#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_free0 (_tmp11_); -#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (_tmp9_); -#line 196 "/home/jens/Source/shotwell/src/Thumbnail.vala" - path_b = _tmp13_; -#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp14_ = g_strcmp0; -#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp15_ = path_a; -#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp16_ = g_utf8_collate_key_for_filename (_tmp15_, (gssize) -1); -#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp17_ = _tmp16_; -#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp18_ = path_b; -#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp19_ = g_utf8_collate_key_for_filename (_tmp18_, (gssize) -1); -#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp20_ = _tmp19_; -#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp21_ = (gint64) _tmp14_ (_tmp17_, _tmp20_); -#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_free0 (_tmp20_); -#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_free0 (_tmp17_); -#line 198 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _result_ = _tmp21_; -#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp23_ = _result_; -#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp23_ != ((gint64) 0)) { -#line 1608 "Thumbnail.c" - gint64 _tmp24_; -#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp24_ = _result_; -#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp22_ = _tmp24_; -#line 1614 "Thumbnail.c" - } else { -#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp22_ = thumbnail_photo_id_ascending_comparator (a, b); -#line 1618 "Thumbnail.c" - } -#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = _tmp22_; -#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_free0 (path_b); -#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_free0 (path_a); -#line 199 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 1628 "Thumbnail.c" -} - - -gint64 -thumbnail_filename_descending_comparator (void* a, - void* b) -{ - gint64 result = 0LL; - gint64 _result_ = 0LL; - gint64 _tmp0_ = 0LL; - gint64 _tmp1_; -#line 203 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _result_ = thumbnail_filename_ascending_comparator (b, a); -#line 205 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = _result_; -#line 205 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp1_ != ((gint64) 0)) { -#line 1646 "Thumbnail.c" - gint64 _tmp2_; -#line 205 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = _result_; -#line 205 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = _tmp2_; -#line 1652 "Thumbnail.c" - } else { -#line 205 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = thumbnail_photo_id_descending_comparator (a, b); -#line 1656 "Thumbnail.c" - } -#line 205 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = _tmp0_; -#line 205 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 1662 "Thumbnail.c" -} - - -gint64 -thumbnail_rating_ascending_comparator (void* a, - void* b) -{ - gint64 result = 0LL; - gint64 _result_ = 0LL; - MediaSource* _tmp0_; - MediaSource* _tmp1_; - gint64 _tmp2_ = 0LL; - gint64 _tmp3_; -#line 209 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) a, TYPE_THUMBNAIL, Thumbnail)->priv->media; -#line 209 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST ((Thumbnail*) b, TYPE_THUMBNAIL, Thumbnail)->priv->media; -#line 209 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _result_ = (gint64) (media_source_get_rating (_tmp0_) - media_source_get_rating (_tmp1_)); -#line 211 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = _result_; -#line 211 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp3_ != ((gint64) 0)) { -#line 1686 "Thumbnail.c" - gint64 _tmp4_; -#line 211 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = _result_; -#line 211 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = _tmp4_; -#line 1692 "Thumbnail.c" - } else { -#line 211 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = thumbnail_photo_id_ascending_comparator (a, b); -#line 1696 "Thumbnail.c" - } -#line 211 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = _tmp2_; -#line 211 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 1702 "Thumbnail.c" -} - - -gint64 -thumbnail_rating_descending_comparator (void* a, - void* b) -{ - gint64 result = 0LL; - gint64 _result_ = 0LL; - gint64 _tmp0_ = 0LL; - gint64 _tmp1_; -#line 215 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _result_ = thumbnail_rating_ascending_comparator (b, a); -#line 217 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = _result_; -#line 217 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp1_ != ((gint64) 0)) { -#line 1720 "Thumbnail.c" - gint64 _tmp2_; -#line 217 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = _result_; -#line 217 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = _tmp2_; -#line 1726 "Thumbnail.c" - } else { -#line 217 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = thumbnail_photo_id_descending_comparator (a, b); -#line 1730 "Thumbnail.c" - } -#line 217 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = _tmp0_; -#line 217 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 1736 "Thumbnail.c" -} - - -gboolean -thumbnail_rating_comparator_predicate (DataObject* object, - Alteration* alteration) -{ - gboolean result = FALSE; -#line 220 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 220 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_val_if_fail (IS_ALTERATION (alteration), FALSE); -#line 221 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = alteration_has_detail (alteration, "metadata", "rating"); -#line 221 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 1753 "Thumbnail.c" -} - - -static void -thumbnail_real_thumbnail_altered (ThumbnailView* base) -{ - Thumbnail * self; - MediaSource* _tmp0_; - Dimensions _tmp1_ = {0}; - gint _tmp2_; - Dimensions _tmp3_ = {0}; - gboolean _tmp4_; -#line 224 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_THUMBNAIL, Thumbnail); -#line 225 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = self->priv->media; -#line 225 "/home/jens/Source/shotwell/src/Thumbnail.vala" - media_source_get_dimensions (_tmp0_, PHOTO_EXCEPTION_NONE, &_tmp1_); -#line 225 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->original_dim = _tmp1_; -#line 226 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = self->priv->scale; -#line 226 "/home/jens/Source/shotwell/src/Thumbnail.vala" - dimensions_get_scaled (&self->priv->original_dim, _tmp2_, TRUE, &_tmp3_); -#line 226 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->dim = _tmp3_; -#line 228 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = self->priv->exposure; -#line 228 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp4_) { -#line 229 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_delayed_high_quality_fetch (self); -#line 1786 "Thumbnail.c" - } else { -#line 231 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_paint_empty (self); -#line 1790 "Thumbnail.c" - } -#line 233 "/home/jens/Source/shotwell/src/Thumbnail.vala" - THUMBNAIL_VIEW_CLASS (thumbnail_parent_class)->thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem), TYPE_THUMBNAIL_VIEW, ThumbnailView)); -#line 1794 "Thumbnail.c" -} - - -static void -thumbnail_real_notify_collection_property_set (DataObject* base, - const gchar* name, - GValue* old, - GValue* val) -{ - Thumbnail * self; - const gchar* _tmp0_; - GQuark _tmp2_ = 0U; - GValue _tmp4_; -#line 236 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_THUMBNAIL, Thumbnail); -#line 236 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (name != NULL); -#line 236 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (val != NULL); -#line 237 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = name; -#line 237 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_); -#line 237 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp2_ == g_quark_from_string (THUMBNAIL_PROP_SIZE)) { -#line 237 "/home/jens/Source/shotwell/src/Thumbnail.vala" - switch (0) { -#line 1822 "Thumbnail.c" - default: - { - GValue _tmp3_; -#line 239 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = *val; -#line 239 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_resize (self, g_value_get_int (&_tmp3_)); -#line 240 "/home/jens/Source/shotwell/src/Thumbnail.vala" - break; -#line 1832 "Thumbnail.c" - } - } - } else if (_tmp2_ == g_quark_from_string (THUMBNAIL_PROP_SHOW_RATINGS)) { -#line 237 "/home/jens/Source/shotwell/src/Thumbnail.vala" - switch (0) { -#line 1838 "Thumbnail.c" - default: - { -#line 243 "/home/jens/Source/shotwell/src/Thumbnail.vala" - data_view_notify_view_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 244 "/home/jens/Source/shotwell/src/Thumbnail.vala" - break; -#line 1845 "Thumbnail.c" - } - } - } -#line 247 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = *val; -#line 247 "/home/jens/Source/shotwell/src/Thumbnail.vala" - DATA_OBJECT_CLASS (thumbnail_parent_class)->notify_collection_property_set (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem), TYPE_DATA_OBJECT, DataObject), name, old, &_tmp4_); -#line 1853 "Thumbnail.c" -} - - -static void -thumbnail_resize (Thumbnail* self, - gint new_scale) -{ - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _tmp5_; - Dimensions _tmp6_ = {0}; - gboolean _tmp7_; -#line 250 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (IS_THUMBNAIL (self)); -#line 251 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = thumbnail_get_MIN_SCALE (); -#line 251 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = _tmp0_; -#line 251 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _vala_assert (new_scale >= _tmp1_, "new_scale >= MIN_SCALE"); -#line 252 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = thumbnail_get_MAX_SCALE (); -#line 252 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = _tmp2_; -#line 252 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _vala_assert (new_scale <= _tmp3_, "new_scale <= MAX_SCALE"); -#line 254 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = self->priv->scale; -#line 254 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp4_ == new_scale) { -#line 255 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return; -#line 1889 "Thumbnail.c" - } -#line 257 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->scale = new_scale; -#line 258 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp5_ = self->priv->scale; -#line 258 "/home/jens/Source/shotwell/src/Thumbnail.vala" - dimensions_get_scaled (&self->priv->original_dim, _tmp5_, TRUE, &_tmp6_); -#line 258 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->dim = _tmp6_; -#line 260 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_cancel_async_fetch (self); -#line 262 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp7_ = self->priv->exposure; -#line 262 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp7_) { -#line 1905 "Thumbnail.c" - GdkPixbuf* resizable = NULL; - GdkPixbuf* _tmp8_; - GdkPixbuf* _tmp12_; -#line 267 "/home/jens/Source/shotwell/src/Thumbnail.vala" - resizable = NULL; -#line 268 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp8_ = self->priv->unscaled_pixbuf; -#line 268 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp8_ != NULL) { -#line 1915 "Thumbnail.c" - GdkPixbuf* _tmp9_; - GdkPixbuf* _tmp10_; -#line 269 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp9_ = self->priv->unscaled_pixbuf; -#line 269 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp10_ = _g_object_ref0 (_tmp9_); -#line 269 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (resizable); -#line 269 "/home/jens/Source/shotwell/src/Thumbnail.vala" - resizable = _tmp10_; -#line 1926 "Thumbnail.c" - } else { -#line 270 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (checkerboard_item_has_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem))) { -#line 1930 "Thumbnail.c" - GdkPixbuf* _tmp11_; -#line 271 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp11_ = checkerboard_item_get_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 271 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (resizable); -#line 271 "/home/jens/Source/shotwell/src/Thumbnail.vala" - resizable = _tmp11_; -#line 1938 "Thumbnail.c" - } - } -#line 273 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp12_ = resizable; -#line 273 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp12_ != NULL) { -#line 1945 "Thumbnail.c" - GdkPixbuf* _tmp13_; - Dimensions _tmp14_; - GdkPixbuf* _tmp15_; - GdkPixbuf* _tmp16_; -#line 274 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp13_ = resizable; -#line 274 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp14_ = self->priv->dim; -#line 274 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp15_ = resize_pixbuf (_tmp13_, &_tmp14_, THUMBNAIL_LOW_QUALITY_INTERP); -#line 274 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp16_ = _tmp15_; -#line 274 "/home/jens/Source/shotwell/src/Thumbnail.vala" - checkerboard_item_set_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp16_); -#line 274 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (_tmp16_); -#line 1962 "Thumbnail.c" - } -#line 276 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_delayed_high_quality_fetch (self); -#line 262 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (resizable); -#line 1968 "Thumbnail.c" - } else { - Dimensions _tmp17_; -#line 278 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp17_ = self->priv->dim; -#line 278 "/home/jens/Source/shotwell/src/Thumbnail.vala" - checkerboard_item_clear_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), &_tmp17_); -#line 1975 "Thumbnail.c" - } -} - - -static void -thumbnail_paint_empty (Thumbnail* self) -{ - Dimensions _tmp0_; -#line 282 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (IS_THUMBNAIL (self)); -#line 283 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_cancel_async_fetch (self); -#line 284 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = self->priv->dim; -#line 284 "/home/jens/Source/shotwell/src/Thumbnail.vala" - checkerboard_item_clear_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), &_tmp0_); -#line 285 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (self->priv->unscaled_pixbuf); -#line 285 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->unscaled_pixbuf = NULL; -#line 1996 "Thumbnail.c" -} - - -static void -_thumbnail_on_low_quality_fetched_thumbnail_cache_async_fetch_callback (GdkPixbuf* pixbuf, - GdkPixbuf* unscaled, - Dimensions* dim, - GdkInterpType interp, - GError* err, - gpointer self) -{ -#line 292 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_on_low_quality_fetched ((Thumbnail*) self, pixbuf, unscaled, dim, interp, err); -#line 2010 "Thumbnail.c" -} - - -static void -thumbnail_schedule_low_quality_fetch (Thumbnail* self) -{ - GCancellable* _tmp0_; - MediaSource* _tmp1_; - Dimensions _tmp2_; - GCancellable* _tmp3_; -#line 288 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (IS_THUMBNAIL (self)); -#line 289 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_cancel_async_fetch (self); -#line 290 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = g_cancellable_new (); -#line 290 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (self->priv->cancellable); -#line 290 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->cancellable = _tmp0_; -#line 292 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = self->priv->media; -#line 292 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = self->priv->dim; -#line 292 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = self->priv->cancellable; -#line 292 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_cache_fetch_async_scaled (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), (gint) THUMBNAIL_CACHE_SIZE_SMALLEST, &_tmp2_, THUMBNAIL_LOW_QUALITY_INTERP, _thumbnail_on_low_quality_fetched_thumbnail_cache_async_fetch_callback, self, _tmp3_); -#line 2039 "Thumbnail.c" -} - - -static gboolean -_thumbnail_on_schedule_high_quality_gsource_func (gpointer self) -{ - gboolean result; - result = thumbnail_on_schedule_high_quality ((Thumbnail*) self); -#line 303 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 2050 "Thumbnail.c" -} - - -static void -thumbnail_delayed_high_quality_fetch (Thumbnail* self) -{ - gboolean _tmp0_; -#line 296 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (IS_THUMBNAIL (self)); -#line 297 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = self->priv->hq_scheduled; -#line 297 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp0_) { -#line 298 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->hq_reschedule = TRUE; -#line 300 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return; -#line 2068 "Thumbnail.c" - } -#line 303 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) THUMBNAIL_HQ_IMPROVEMENT_MSEC, _thumbnail_on_schedule_high_quality_gsource_func, g_object_ref (self), g_object_unref); -#line 304 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->hq_scheduled = TRUE; -#line 2074 "Thumbnail.c" -} - - -static void -_thumbnail_on_high_quality_fetched_thumbnail_cache_async_fetch_callback (GdkPixbuf* pixbuf, - GdkPixbuf* unscaled, - Dimensions* dim, - GdkInterpType interp, - GError* err, - gpointer self) -{ -#line 318 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_on_high_quality_fetched ((Thumbnail*) self, pixbuf, unscaled, dim, interp, err); -#line 2088 "Thumbnail.c" -} - - -static gboolean -thumbnail_on_schedule_high_quality (Thumbnail* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; - GCancellable* _tmp1_; - gboolean _tmp2_; -#line 307 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_val_if_fail (IS_THUMBNAIL (self), FALSE); -#line 308 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = self->priv->hq_reschedule; -#line 308 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp0_) { -#line 309 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->hq_reschedule = FALSE; -#line 311 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = TRUE; -#line 311 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 2111 "Thumbnail.c" - } -#line 314 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_cancel_async_fetch (self); -#line 315 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = g_cancellable_new (); -#line 315 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (self->priv->cancellable); -#line 315 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->cancellable = _tmp1_; -#line 317 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = self->priv->exposure; -#line 317 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp2_) { -#line 2125 "Thumbnail.c" - MediaSource* _tmp3_; - gint _tmp4_; - Dimensions _tmp5_; - GCancellable* _tmp6_; -#line 318 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = self->priv->media; -#line 318 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = self->priv->scale; -#line 318 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp5_ = self->priv->dim; -#line 318 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp6_ = self->priv->cancellable; -#line 318 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_cache_fetch_async_scaled (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), _tmp4_, &_tmp5_, THUMBNAIL_HIGH_QUALITY_INTERP, _thumbnail_on_high_quality_fetched_thumbnail_cache_async_fetch_callback, self, _tmp6_); -#line 2140 "Thumbnail.c" - } -#line 322 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->hq_scheduled = FALSE; -#line 324 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = FALSE; -#line 324 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 2148 "Thumbnail.c" -} - - -static void -thumbnail_cancel_async_fetch (Thumbnail* self) -{ - GCancellable* _tmp0_; -#line 327 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (IS_THUMBNAIL (self)); -#line 329 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = self->priv->cancellable; -#line 329 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp0_ != NULL) { -#line 2162 "Thumbnail.c" - GCancellable* _tmp1_; -#line 330 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = self->priv->cancellable; -#line 330 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_cancellable_cancel (_tmp1_); -#line 2168 "Thumbnail.c" - } -} - - -static void -thumbnail_on_low_quality_fetched (Thumbnail* self, - GdkPixbuf* pixbuf, - GdkPixbuf* unscaled, - Dimensions* dim, - GdkInterpType interp, - GError* err) -{ -#line 333 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (IS_THUMBNAIL (self)); -#line 333 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail ((pixbuf == NULL) || GDK_IS_PIXBUF (pixbuf)); -#line 333 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail ((unscaled == NULL) || GDK_IS_PIXBUF (unscaled)); -#line 333 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (dim != NULL); -#line 335 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (err != NULL) { -#line 2191 "Thumbnail.c" - gchar* _tmp0_; - gchar* _tmp1_; - gint _tmp2_; - const gchar* _tmp3_; -#line 336 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 336 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = _tmp0_; -#line 336 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = self->priv->scale; -#line 336 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = err->message; -#line 336 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_critical ("Thumbnail.vala:336: Unable to fetch low-quality thumbnail for %s (scal" \ -"e: %d): %s", _tmp1_, _tmp2_, _tmp3_); -#line 336 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_free0 (_tmp1_); -#line 2208 "Thumbnail.c" - } -#line 339 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (pixbuf != NULL) { -#line 340 "/home/jens/Source/shotwell/src/Thumbnail.vala" - checkerboard_item_set_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), pixbuf); -#line 2214 "Thumbnail.c" - } -#line 342 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (unscaled != NULL) { -#line 2218 "Thumbnail.c" - GdkPixbuf* _tmp4_; -#line 343 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = _g_object_ref0 (unscaled); -#line 343 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (self->priv->unscaled_pixbuf); -#line 343 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->unscaled_pixbuf = _tmp4_; -#line 2226 "Thumbnail.c" - } -#line 345 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_delayed_high_quality_fetch (self); -#line 2230 "Thumbnail.c" -} - - -static void -thumbnail_on_high_quality_fetched (Thumbnail* self, - GdkPixbuf* pixbuf, - GdkPixbuf* unscaled, - Dimensions* dim, - GdkInterpType interp, - GError* err) -{ -#line 348 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (IS_THUMBNAIL (self)); -#line 348 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail ((pixbuf == NULL) || GDK_IS_PIXBUF (pixbuf)); -#line 348 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail ((unscaled == NULL) || GDK_IS_PIXBUF (unscaled)); -#line 348 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_return_if_fail (dim != NULL); -#line 350 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (err != NULL) { -#line 2252 "Thumbnail.c" - gchar* _tmp0_; - gchar* _tmp1_; - gint _tmp2_; - const gchar* _tmp3_; -#line 351 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 351 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = _tmp0_; -#line 351 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = self->priv->scale; -#line 351 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = err->message; -#line 351 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_critical ("Thumbnail.vala:351: Unable to fetch high-quality thumbnail for %s (sca" \ -"le: %d): %s", _tmp1_, _tmp2_, _tmp3_); -#line 351 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_free0 (_tmp1_); -#line 2269 "Thumbnail.c" - } -#line 354 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (pixbuf != NULL) { -#line 355 "/home/jens/Source/shotwell/src/Thumbnail.vala" - checkerboard_item_set_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), pixbuf); -#line 2275 "Thumbnail.c" - } -#line 357 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (unscaled != NULL) { -#line 2279 "Thumbnail.c" - GdkPixbuf* _tmp4_; -#line 358 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = _g_object_ref0 (unscaled); -#line 358 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (self->priv->unscaled_pixbuf); -#line 358 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->unscaled_pixbuf = _tmp4_; -#line 2287 "Thumbnail.c" - } -} - - -static void -thumbnail_real_exposed (CheckerboardItem* base) -{ - Thumbnail * self; -#line 361 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_THUMBNAIL, Thumbnail); -#line 362 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->exposure = TRUE; -#line 364 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (!checkerboard_item_has_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem))) { -#line 365 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_schedule_low_quality_fetch (self); -#line 2304 "Thumbnail.c" - } -#line 367 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_update_title (self, FALSE); -#line 368 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_update_comment (self, FALSE); -#line 369 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_update_tags (self, FALSE); -#line 371 "/home/jens/Source/shotwell/src/Thumbnail.vala" - CHECKERBOARD_ITEM_CLASS (thumbnail_parent_class)->exposed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 2314 "Thumbnail.c" -} - - -static void -thumbnail_real_unexposed (CheckerboardItem* base) -{ - Thumbnail * self; -#line 374 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_THUMBNAIL, Thumbnail); -#line 375 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->exposure = FALSE; -#line 377 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_paint_empty (self); -#line 379 "/home/jens/Source/shotwell/src/Thumbnail.vala" - CHECKERBOARD_ITEM_CLASS (thumbnail_parent_class)->unexposed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 2330 "Thumbnail.c" -} - - -static GdkPixbuf* -thumbnail_real_get_top_right_trinket (CheckerboardItem* base, - gint scale) -{ - Thumbnail * self; - GdkPixbuf* result = NULL; - Flaggable* flaggable = NULL; - MediaSource* _tmp0_; - Flaggable* _tmp1_; - GdkPixbuf* _tmp2_ = NULL; - gboolean _tmp3_ = FALSE; - Flaggable* _tmp4_; -#line 382 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_THUMBNAIL, Thumbnail); -#line 383 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = self->priv->media; -#line 383 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_FLAGGABLE) ? ((Flaggable*) _tmp0_) : NULL); -#line 383 "/home/jens/Source/shotwell/src/Thumbnail.vala" - flaggable = _tmp1_; -#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = flaggable; -#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp4_ != NULL) { -#line 2358 "Thumbnail.c" - Flaggable* _tmp5_; -#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp5_ = flaggable; -#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = flaggable_is_flagged (_tmp5_); -#line 2364 "Thumbnail.c" - } else { -#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = FALSE; -#line 2368 "Thumbnail.c" - } -#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp3_) { -#line 2372 "Thumbnail.c" - GdkPixbuf* _tmp6_; -#line 386 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp6_ = resources_get_icon (RESOURCES_ICON_FLAGGED_TRINKET, RESOURCES_DEFAULT_ICON_SCALE); -#line 386 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (_tmp2_); -#line 386 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = _tmp6_; -#line 2380 "Thumbnail.c" - } else { -#line 386 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (_tmp2_); -#line 386 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = NULL; -#line 2386 "Thumbnail.c" - } -#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = _tmp2_; -#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (flaggable); -#line 385 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 2394 "Thumbnail.c" -} - - -static void -_vala_GValue_free (GValue* self) -{ -#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_value_unset (self); -#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_free (self); -#line 2405 "Thumbnail.c" -} - - -static GdkPixbuf* -thumbnail_real_get_bottom_left_trinket (CheckerboardItem* base, - gint scale) -{ - Thumbnail * self; - GdkPixbuf* result = NULL; - Rating rating = 0; - MediaSource* _tmp0_; - gboolean show_ratings = FALSE; - GValue* _tmp1_ = NULL; - GValue _tmp2_ = {0}; - gboolean _tmp3_; - GdkPixbuf* _tmp4_ = NULL; - gboolean _tmp5_ = FALSE; - Rating _tmp6_; -#line 389 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_THUMBNAIL, Thumbnail); -#line 390 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = self->priv->media; -#line 390 "/home/jens/Source/shotwell/src/Thumbnail.vala" - rating = media_source_get_rating (_tmp0_); -#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = g_new0 (GValue, 1); -#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_value_init (_tmp1_, G_TYPE_BOOLEAN); -#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_value_set_boolean (_tmp1_, FALSE); -#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala" - data_object_get_collection_property (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), THUMBNAIL_PROP_SHOW_RATINGS, _tmp1_, &_tmp2_); -#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp3_ = g_value_get_boolean (&_tmp2_); -#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala" - __vala_GValue_free0 (_tmp1_); -#line 391 "/home/jens/Source/shotwell/src/Thumbnail.vala" - show_ratings = _tmp3_; -#line 393 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp6_ = rating; -#line 393 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp6_ != RATING_UNRATED) { -#line 2448 "Thumbnail.c" - gboolean _tmp7_; -#line 393 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp7_ = show_ratings; -#line 393 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp5_ = _tmp7_; -#line 2454 "Thumbnail.c" - } else { -#line 393 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp5_ = FALSE; -#line 2458 "Thumbnail.c" - } -#line 393 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp5_) { -#line 2462 "Thumbnail.c" - Rating _tmp8_; - GdkPixbuf* _tmp9_; -#line 394 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp8_ = rating; -#line 394 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp9_ = resources_get_rating_trinket (_tmp8_, scale); -#line 394 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (_tmp4_); -#line 394 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = _tmp9_; -#line 2473 "Thumbnail.c" - } else { -#line 394 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (_tmp4_); -#line 394 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = NULL; -#line 2479 "Thumbnail.c" - } -#line 393 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = _tmp4_; -#line 393 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 2485 "Thumbnail.c" -} - - -gint -thumbnail_get_MIN_SCALE (void) -{ - gint result; -#line 18 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = 72; -#line 18 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 2497 "Thumbnail.c" -} - - -gint -thumbnail_get_MAX_SCALE (void) -{ - gint result; -#line 23 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = thumbnail_cache_size_get_scale (THUMBNAIL_CACHE_SIZE_LARGEST); -#line 23 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 2509 "Thumbnail.c" -} - - -gint -thumbnail_get_DEFAULT_SCALE (void) -{ - gint result; -#line 28 "/home/jens/Source/shotwell/src/Thumbnail.vala" - result = thumbnail_cache_size_get_scale (THUMBNAIL_CACHE_SIZE_MEDIUM); -#line 28 "/home/jens/Source/shotwell/src/Thumbnail.vala" - return result; -#line 2521 "Thumbnail.c" -} - - -static void -thumbnail_class_init (ThumbnailClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala" - thumbnail_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_type_class_add_private (klass, sizeof (ThumbnailPrivate)); -#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala" - ((DataObjectClass *) klass)->notify_altered = (void (*) (DataObject *, Alteration*)) thumbnail_real_notify_altered; -#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala" - ((ThumbnailViewClass *) klass)->thumbnail_altered = (void (*) (ThumbnailView *)) thumbnail_real_thumbnail_altered; -#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala" - ((DataObjectClass *) klass)->notify_collection_property_set = (void (*) (DataObject *, const gchar*, GValue*, GValue*)) thumbnail_real_notify_collection_property_set; -#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala" - ((CheckerboardItemClass *) klass)->exposed = (void (*) (CheckerboardItem *)) thumbnail_real_exposed; -#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala" - ((CheckerboardItemClass *) klass)->unexposed = (void (*) (CheckerboardItem *)) thumbnail_real_unexposed; -#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala" - ((CheckerboardItemClass *) klass)->get_top_right_trinket = (GdkPixbuf* (*) (CheckerboardItem *, gint)) thumbnail_real_get_top_right_trinket; -#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala" - ((CheckerboardItemClass *) klass)->get_bottom_left_trinket = (GdkPixbuf* (*) (CheckerboardItem *, gint)) thumbnail_real_get_bottom_left_trinket; -#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_thumbnail_get_property; -#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala" - G_OBJECT_CLASS (klass)->finalize = thumbnail_finalize; -#line 2550 "Thumbnail.c" -} - - -static void -thumbnail_instance_init (Thumbnail * self) -{ -#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv = THUMBNAIL_GET_PRIVATE (self); -#line 41 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->unscaled_pixbuf = NULL; -#line 42 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->cancellable = NULL; -#line 43 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->hq_scheduled = FALSE; -#line 44 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->hq_reschedule = FALSE; -#line 47 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self->priv->exposure = FALSE; -#line 2569 "Thumbnail.c" -} - - -static void -thumbnail_finalize (GObject * obj) -{ - Thumbnail * self; - GCancellable* _tmp0_; - TagSourceCollection* _tmp2_; - guint _tmp3_; - TagSourceCollection* _tmp4_; - guint _tmp5_; -#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_THUMBNAIL, Thumbnail); -#line 73 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp0_ = self->priv->cancellable; -#line 73 "/home/jens/Source/shotwell/src/Thumbnail.vala" - if (_tmp0_ != NULL) { -#line 2588 "Thumbnail.c" - GCancellable* _tmp1_; -#line 74 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp1_ = self->priv->cancellable; -#line 74 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_cancellable_cancel (_tmp1_); -#line 2594 "Thumbnail.c" - } -#line 76 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp2_ = tag_global; -#line 76 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_signal_parse_name ("container-contents-altered", TYPE_CONTAINER_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE); -#line 76 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _thumbnail_on_tag_contents_altered_container_source_collection_container_contents_altered, self); -#line 77 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _tmp4_ = tag_global; -#line 77 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp5_, NULL, FALSE); -#line 77 "/home/jens/Source/shotwell/src/Thumbnail.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _thumbnail_on_tags_altered_data_collection_items_altered, self); -#line 37 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (self->priv->media); -#line 41 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (self->priv->unscaled_pixbuf); -#line 42 "/home/jens/Source/shotwell/src/Thumbnail.vala" - _g_object_unref0 (self->priv->cancellable); -#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala" - G_OBJECT_CLASS (thumbnail_parent_class)->finalize (obj); -#line 2616 "Thumbnail.c" -} - - -GType -thumbnail_get_type (void) -{ - static volatile gsize thumbnail_type_id__volatile = 0; - if (g_once_init_enter (&thumbnail_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ThumbnailClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) thumbnail_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Thumbnail), 0, (GInstanceInitFunc) thumbnail_instance_init, NULL }; - GType thumbnail_type_id; - thumbnail_type_id = g_type_register_static (TYPE_MEDIA_SOURCE_ITEM, "Thumbnail", &g_define_type_info, 0); - g_once_init_leave (&thumbnail_type_id__volatile, thumbnail_type_id); - } - return thumbnail_type_id__volatile; -} - - -static void -_vala_thumbnail_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - Thumbnail * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_THUMBNAIL, Thumbnail); -#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala" - switch (property_id) { -#line 2644 "Thumbnail.c" - default: -#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 7 "/home/jens/Source/shotwell/src/Thumbnail.vala" - break; -#line 2650 "Thumbnail.c" - } -} - - - diff --git a/src/Thumbnail.vala b/src/Thumbnail.vala index 17dda4b..f47fc69 100644 --- a/src/Thumbnail.vala +++ b/src/Thumbnail.vala @@ -57,8 +57,7 @@ public class Thumbnail : MediaSourceItem { Tag.global.items_altered.connect(on_tags_altered); assert((media is LibraryPhoto) || (media is Video)); - set_enable_sprockets(media is Video); - + original_dim = media.get_dimensions(); dim = original_dim.get_scaled(scale, true); @@ -378,12 +377,15 @@ public class Thumbnail : MediaSourceItem { base.unexposed(); } - + protected override Gdk.Pixbuf? get_top_right_trinket(int scale) { Flaggable? flaggable = media as Flaggable; - return (flaggable != null && flaggable.is_flagged()) - ? Resources.get_icon(Resources.ICON_FLAGGED_TRINKET) : null; + if (!(flaggable != null && flaggable.is_flagged())) + return null; + + return Resources.get_flagged_trinket(scale); + } protected override Gdk.Pixbuf? get_bottom_left_trinket(int scale) { @@ -393,4 +395,8 @@ public class Thumbnail : MediaSourceItem { return (rating != Rating.UNRATED && show_ratings) ? Resources.get_rating_trinket(rating, scale) : null; } + + protected override Gdk.Pixbuf? get_top_left_trinket(int scale) { + return (media is Video) ? Resources.get_video_trinket (scale) : null; + } } diff --git a/src/ThumbnailCache.c b/src/ThumbnailCache.c deleted file mode 100644 index 8b17e03..0000000 --- a/src/ThumbnailCache.c +++ /dev/null @@ -1,4535 +0,0 @@ -/* ThumbnailCache.c generated by valac 0.40.4, the Vala compiler - * generated from ThumbnailCache.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_THUMBNAILS (thumbnails_get_type ()) -#define THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAILS, Thumbnails)) -#define THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAILS, ThumbnailsClass)) -#define IS_THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAILS)) -#define IS_THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAILS)) -#define THUMBNAILS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAILS, ThumbnailsClass)) - -typedef struct _Thumbnails Thumbnails; -typedef struct _ThumbnailsClass ThumbnailsClass; -typedef struct _ThumbnailsPrivate ThumbnailsPrivate; - -#define THUMBNAIL_CACHE_TYPE_SIZE (thumbnail_cache_size_get_type ()) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _ParamSpecThumbnails ParamSpecThumbnails; - -#define TYPE_THUMBNAIL_CACHE (thumbnail_cache_get_type ()) -#define THUMBNAIL_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_CACHE, ThumbnailCache)) -#define THUMBNAIL_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_CACHE, ThumbnailCacheClass)) -#define IS_THUMBNAIL_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_CACHE)) -#define IS_THUMBNAIL_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_CACHE)) -#define THUMBNAIL_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_CACHE, ThumbnailCacheClass)) - -typedef struct _ThumbnailCache ThumbnailCache; -typedef struct _ThumbnailCacheClass ThumbnailCacheClass; -typedef struct _ThumbnailCachePrivate ThumbnailCachePrivate; - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) - -#define THUMBNAIL_CACHE_TYPE_IMAGE_DATA (thumbnail_cache_image_data_get_type ()) -#define THUMBNAIL_CACHE_IMAGE_DATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), THUMBNAIL_CACHE_TYPE_IMAGE_DATA, ThumbnailCacheImageData)) -#define THUMBNAIL_CACHE_IMAGE_DATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), THUMBNAIL_CACHE_TYPE_IMAGE_DATA, ThumbnailCacheImageDataClass)) -#define THUMBNAIL_CACHE_IS_IMAGE_DATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), THUMBNAIL_CACHE_TYPE_IMAGE_DATA)) -#define THUMBNAIL_CACHE_IS_IMAGE_DATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), THUMBNAIL_CACHE_TYPE_IMAGE_DATA)) -#define THUMBNAIL_CACHE_IMAGE_DATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), THUMBNAIL_CACHE_TYPE_IMAGE_DATA, ThumbnailCacheImageDataClass)) - -typedef struct _ThumbnailCacheImageData ThumbnailCacheImageData; -typedef struct _ThumbnailCacheImageDataClass ThumbnailCacheImageDataClass; -enum { - THUMBNAIL_CACHE_0_PROPERTY, - THUMBNAIL_CACHE_NUM_PROPERTIES -}; -static GParamSpec* thumbnail_cache_properties[THUMBNAIL_CACHE_NUM_PROPERTIES]; - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -typedef struct _Scaling Scaling; - -#define TYPE_WORKERS (workers_get_type ()) -#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers)) -#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass)) -#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS)) -#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS)) -#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass)) - -typedef struct _Workers Workers; -typedef struct _WorkersClass WorkersClass; - -#define TYPE_ONE_SHOT_SCHEDULER (one_shot_scheduler_get_type ()) -#define ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler)) -#define ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass)) -#define IS_ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ONE_SHOT_SCHEDULER)) -#define IS_ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ONE_SHOT_SCHEDULER)) -#define ONE_SHOT_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass)) - -typedef struct _OneShotScheduler OneShotScheduler; -typedef struct _OneShotSchedulerClass OneShotSchedulerClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _one_shot_scheduler_unref0(var) ((var == NULL) ? NULL : (var = (one_shot_scheduler_unref (var), NULL))) -#define _workers_unref0(var) ((var == NULL) ? NULL : (var = (workers_unref (var), NULL))) - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_ROTATION (rotation_get_type ()) - -#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ()) -#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)) -#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) -#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER)) -#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER)) -#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) - -typedef struct _PhotoFileAdapter PhotoFileAdapter; -typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass; - -#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ()) -#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader)) -#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) -#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER)) -#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER)) -#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) - -typedef struct _PhotoFileReader PhotoFileReader; -typedef struct _PhotoFileReaderClass PhotoFileReaderClass; - -#define TYPE_ORIENTATION (orientation_get_type ()) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_BACKGROUND_JOB (background_job_get_type ()) -#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob)) -#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass)) -#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB)) -#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB)) -#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass)) - -typedef struct _BackgroundJob BackgroundJob; -typedef struct _BackgroundJobClass BackgroundJobClass; - -#define THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB (thumbnail_cache_async_fetch_job_get_type ()) -#define THUMBNAIL_CACHE_ASYNC_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB, ThumbnailCacheAsyncFetchJob)) -#define THUMBNAIL_CACHE_ASYNC_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB, ThumbnailCacheAsyncFetchJobClass)) -#define THUMBNAIL_CACHE_IS_ASYNC_FETCH_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB)) -#define THUMBNAIL_CACHE_IS_ASYNC_FETCH_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB)) -#define THUMBNAIL_CACHE_ASYNC_FETCH_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB, ThumbnailCacheAsyncFetchJobClass)) - -typedef struct _ThumbnailCacheAsyncFetchJob ThumbnailCacheAsyncFetchJob; -typedef struct _ThumbnailCacheAsyncFetchJobClass ThumbnailCacheAsyncFetchJobClass; -#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL))) -typedef struct _BackgroundJobPrivate BackgroundJobPrivate; - -#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ()) -typedef struct _ThumbnailCacheAsyncFetchJobPrivate ThumbnailCacheAsyncFetchJobPrivate; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; -#define _photo_file_adapter_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_adapter_unref (var), NULL))) -typedef struct _ThumbnailCacheImageDataPrivate ThumbnailCacheImageDataPrivate; -#define _thumbnail_cache_image_data_unref0(var) ((var == NULL) ? NULL : (var = (thumbnail_cache_image_data_unref (var), NULL))) - -#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ()) -#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter)) -#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) -#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER)) -#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER)) -#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) - -typedef struct _PhotoFileWriter PhotoFileWriter; -typedef struct _PhotoFileWriterClass PhotoFileWriterClass; -typedef struct _ThumbnailCacheParamSpecImageData ThumbnailCacheParamSpecImageData; - -#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ()) -#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)) -#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) -#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE)) -#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE)) -#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) - -typedef struct _AbstractSemaphore AbstractSemaphore; -typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass; - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _Thumbnails { - GTypeInstance parent_instance; - volatile int ref_count; - ThumbnailsPrivate * priv; -}; - -struct _ThumbnailsClass { - GTypeClass parent_class; - void (*finalize) (Thumbnails *self); -}; - -typedef enum { - THUMBNAIL_CACHE_SIZE_LARGEST = 360, - THUMBNAIL_CACHE_SIZE_BIG = 360, - THUMBNAIL_CACHE_SIZE_MEDIUM = 128, - THUMBNAIL_CACHE_SIZE_SMALLEST = 128 -} ThumbnailCacheSize; - -struct _ThumbnailsPrivate { - GeeHashMap* map; -}; - -struct _ParamSpecThumbnails { - GParamSpec parent_instance; -}; - -struct _ThumbnailCache { - GObject parent_instance; - ThumbnailCachePrivate * priv; -}; - -struct _ThumbnailCacheClass { - GObjectClass parent_class; -}; - -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -struct _ThumbnailCachePrivate { - GFile* cache_dir; - ThumbnailCacheSize size; - gulong max_cached_bytes; - GdkInterpType interp; - JpegQuality quality; - GeeHashMap* cache_map; - GeeArrayList* cache_lru; - gulong cached_bytes; -}; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -typedef void (*OneShotCallback) (void* user_data); -typedef void (*ThumbnailCacheAsyncFetchCallback) (GdkPixbuf* pixbuf, GdkPixbuf* unscaled, Dimensions* dim, GdkInterpType interp, GError* err, void* user_data); -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef enum { - ROTATION_CLOCKWISE, - ROTATION_COUNTERCLOCKWISE, - ROTATION_MIRROR, - ROTATION_UPSIDE_DOWN -} Rotation; - -typedef enum { - ORIENTATION_MIN = 1, - ORIENTATION_TOP_LEFT = 1, - ORIENTATION_TOP_RIGHT = 2, - ORIENTATION_BOTTOM_RIGHT = 3, - ORIENTATION_BOTTOM_LEFT = 4, - ORIENTATION_LEFT_TOP = 5, - ORIENTATION_RIGHT_TOP = 6, - ORIENTATION_RIGHT_BOTTOM = 7, - ORIENTATION_LEFT_BOTTOM = 8, - ORIENTATION_MAX = 8 -} Orientation; - -typedef enum { - BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100, - BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75, - BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50, - BACKGROUND_JOB_JOB_PRIORITY_LOW = 25, - BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0 -} BackgroundJobJobPriority; - -struct _BackgroundJob { - GTypeInstance parent_instance; - volatile int ref_count; - BackgroundJobPrivate * priv; -}; - -struct _BackgroundJobClass { - GTypeClass parent_class; - void (*finalize) (BackgroundJob *self); - void (*execute) (BackgroundJob* self); - BackgroundJobJobPriority (*get_priority) (BackgroundJob* self); -}; - -struct _ThumbnailCacheAsyncFetchJob { - BackgroundJob parent_instance; - ThumbnailCacheAsyncFetchJobPrivate * priv; - ThumbnailCache* cache; - gchar* thumbnail_name; - ThumbnailSource* source; - PhotoFileFormat source_format; - Dimensions dim; - GdkInterpType interp; - ThumbnailCacheAsyncFetchCallback callback; - gpointer callback_target; - GdkPixbuf* unscaled; - GdkPixbuf* scaled; - GError* err; - gboolean fetched; - gboolean replace; -}; - -struct _ThumbnailCacheAsyncFetchJobClass { - BackgroundJobClass parent_class; -}; - -struct _ThumbnailCacheImageData { - GTypeInstance parent_instance; - volatile int ref_count; - ThumbnailCacheImageDataPrivate * priv; - GdkPixbuf* pixbuf; - gulong bytes; -}; - -struct _ThumbnailCacheImageDataClass { - GTypeClass parent_class; - void (*finalize) (ThumbnailCacheImageData *self); -}; - -typedef enum { - PHOTO_FORMAT_ERROR_READ_ONLY -} PhotoFormatError; -#define PHOTO_FORMAT_ERROR photo_format_error_quark () -struct _ThumbnailCacheParamSpecImageData { - GParamSpec parent_instance; -}; - -typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data); -typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data); - -static gpointer thumbnails_parent_class = NULL; -static gpointer thumbnail_cache_parent_class = NULL; -static ThumbnailCacheSize* thumbnail_cache_ALL_SIZES; -static gint thumbnail_cache_ALL_SIZES_length1; -static ThumbnailCacheSize* thumbnail_cache_ALL_SIZES = NULL; -static gint thumbnail_cache_ALL_SIZES_length1 = 0; -static gint _thumbnail_cache_ALL_SIZES_size_ = 0; -static Workers* thumbnail_cache_fetch_workers; -static Workers* thumbnail_cache_fetch_workers = NULL; -static ThumbnailCache* thumbnail_cache_big; -static ThumbnailCache* thumbnail_cache_big = NULL; -static ThumbnailCache* thumbnail_cache_medium; -static ThumbnailCache* thumbnail_cache_medium = NULL; -static OneShotScheduler* thumbnail_cache_debug_scheduler; -static OneShotScheduler* thumbnail_cache_debug_scheduler = NULL; -static gint thumbnail_cache_cycle_fetched_thumbnails; -static gint thumbnail_cache_cycle_fetched_thumbnails = 0; -static gint thumbnail_cache_cycle_async_fetched_thumbnails; -static gint thumbnail_cache_cycle_async_fetched_thumbnails = 0; -static gint thumbnail_cache_cycle_async_resized_thumbnails; -static gint thumbnail_cache_cycle_async_resized_thumbnails = 0; -static gint thumbnail_cache_cycle_overflow_thumbnails; -static gint thumbnail_cache_cycle_overflow_thumbnails = 0; -static gulong thumbnail_cache_cycle_dropped_bytes; -static gulong thumbnail_cache_cycle_dropped_bytes = (gulong) 0; -static gpointer thumbnail_cache_image_data_parent_class = NULL; -static gpointer thumbnail_cache_async_fetch_job_parent_class = NULL; - -gpointer thumbnails_ref (gpointer instance); -void thumbnails_unref (gpointer instance); -GParamSpec* param_spec_thumbnails (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_thumbnails (GValue* value, - gpointer v_object); -void value_take_thumbnails (GValue* value, - gpointer v_object); -gpointer value_get_thumbnails (const GValue* value); -GType thumbnails_get_type (void) G_GNUC_CONST; -GType thumbnail_cache_size_get_type (void) G_GNUC_CONST; -#define THUMBNAILS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_THUMBNAILS, ThumbnailsPrivate)) -Thumbnails* thumbnails_new (void); -Thumbnails* thumbnails_construct (GType object_type); -void thumbnails_set (Thumbnails* self, - ThumbnailCacheSize size, - GdkPixbuf* pixbuf); -void thumbnails_remove (Thumbnails* self, - ThumbnailCacheSize size); -GdkPixbuf* thumbnails_get (Thumbnails* self, - ThumbnailCacheSize size); -static void thumbnails_finalize (Thumbnails * obj); -GType thumbnail_cache_get_type (void) G_GNUC_CONST; -GType jpeg_quality_get_type (void) G_GNUC_CONST; -static gpointer thumbnail_cache_image_data_ref (gpointer instance); -static void thumbnail_cache_image_data_unref (gpointer instance); -static GParamSpec* thumbnail_cache_param_spec_image_data (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void thumbnail_cache_value_set_image_data (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void thumbnail_cache_value_take_image_data (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer thumbnail_cache_value_get_image_data (const GValue* value) G_GNUC_UNUSED; -static GType thumbnail_cache_image_data_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define THUMBNAIL_CACHE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_THUMBNAIL_CACHE, ThumbnailCachePrivate)) -gint thumbnail_cache_size_get_scale (ThumbnailCacheSize self); -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -void thumbnail_cache_size_get_scaling (ThumbnailCacheSize self, - Scaling* result); -void scaling_for_best_fit (gint pixels, - gboolean scale_up, - Scaling* result); -ThumbnailCacheSize thumbnail_cache_size_get_best_size (gint scale); -gpointer workers_ref (gpointer instance); -void workers_unref (gpointer instance); -GParamSpec* param_spec_workers (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_workers (GValue* value, - gpointer v_object); -void value_take_workers (GValue* value, - gpointer v_object); -gpointer value_get_workers (const GValue* value); -GType workers_get_type (void) G_GNUC_CONST; -gpointer one_shot_scheduler_ref (gpointer instance); -void one_shot_scheduler_unref (gpointer instance); -GParamSpec* param_spec_one_shot_scheduler (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_one_shot_scheduler (GValue* value, - gpointer v_object); -void value_take_one_shot_scheduler (GValue* value, - gpointer v_object); -gpointer value_get_one_shot_scheduler (const GValue* value); -GType one_shot_scheduler_get_type (void) G_GNUC_CONST; -#define THUMBNAIL_CACHE_DEFAULT_INTERP GDK_INTERP_HYPER -#define THUMBNAIL_CACHE_DEFAULT_QUALITY JPEG_QUALITY_HIGH -#define THUMBNAIL_CACHE_MAX_INMEMORY_DATA_SIZE (512 * 1024) -#define THUMBNAIL_CACHE_MAX_BIG_CACHED_BYTES ((gulong) ((40 * 1024) * 1024)) -#define THUMBNAIL_CACHE_MAX_MEDIUM_CACHED_BYTES ((gulong) ((30 * 1024) * 1024)) -static ThumbnailCache* thumbnail_cache_new (ThumbnailCacheSize size, - gulong max_cached_bytes, - GdkInterpType interp, - JpegQuality quality); -static ThumbnailCache* thumbnail_cache_construct (GType object_type, - ThumbnailCacheSize size, - gulong max_cached_bytes, - GdkInterpType interp, - JpegQuality quality); -GFile* app_dirs_get_cache_subdir (const gchar* name, - const gchar* subname); -void thumbnail_cache_init (void); -static void thumbnail_cache_report_cycle (void); -static void _thumbnail_cache_report_cycle_one_shot_callback (gpointer self); -OneShotScheduler* one_shot_scheduler_new (const gchar* name, - OneShotCallback callback, - void* callback_target); -OneShotScheduler* one_shot_scheduler_construct (GType object_type, - const gchar* name, - OneShotCallback callback, - void* callback_target); -guint workers_threads_per_cpu (gint per, - gint max); -Workers* workers_new (guint max_threads, - gboolean exclusive); -Workers* workers_construct (GType object_type, - guint max_threads, - gboolean exclusive); -void thumbnail_cache_terminate (void); -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -void thumbnail_cache_import_from_source (ThumbnailSource* source, - gboolean force, - GError** error); -gchar* data_object_to_string (DataObject* self); -static void _thumbnail_cache_import_from_source (ThumbnailCache* self, - ThumbnailSource* source, - gboolean force, - GError** error); -void thumbnail_cache_import_thumbnails (ThumbnailSource* source, - Thumbnails* thumbnails, - gboolean force, - GError** error); -static void _thumbnail_cache_import_thumbnail (ThumbnailCache* self, - ThumbnailSource* source, - GdkPixbuf* scaled, - gboolean force, - GError** error); -void thumbnail_cache_duplicate (ThumbnailSource* src_source, - ThumbnailSource* dest_source); -static void _thumbnail_cache_duplicate (ThumbnailCache* self, - ThumbnailSource* src_source, - ThumbnailSource* dest_source); -void thumbnail_cache_remove (ThumbnailSource* source); -static void _thumbnail_cache_remove (ThumbnailCache* self, - ThumbnailSource* source); -static ThumbnailCache* thumbnail_cache_get_best_cache (gint scale); -static ThumbnailCache* thumbnail_cache_get_cache_for (ThumbnailCacheSize size); -GdkPixbuf* thumbnail_cache_fetch (ThumbnailSource* source, - gint scale, - GError** error); -static GdkPixbuf* _thumbnail_cache_fetch (ThumbnailCache* self, - ThumbnailSource* source, - GError** error); -void thumbnail_cache_fetch_async (ThumbnailSource* source, - gint scale, - ThumbnailCacheAsyncFetchCallback callback, - void* callback_target, - GCancellable* cancellable); -GType photo_file_format_get_type (void) G_GNUC_CONST; -static void _thumbnail_cache_fetch_async (ThumbnailCache* self, - ThumbnailSource* source, - PhotoFileFormat format, - Dimensions* dim, - GdkInterpType interp, - ThumbnailCacheAsyncFetchCallback callback, - void* callback_target, - GCancellable* cancellable); -PhotoFileFormat thumbnail_source_get_preferred_thumbnail_format (ThumbnailSource* self); -void dimensions_init (Dimensions *self, - gint width, - gint height); -void thumbnail_cache_fetch_async_scaled (ThumbnailSource* source, - gint scale, - Dimensions* dim, - GdkInterpType interp, - ThumbnailCacheAsyncFetchCallback callback, - void* callback_target, - GCancellable* cancellable); -void thumbnail_cache_replace (ThumbnailSource* source, - ThumbnailCacheSize size, - GdkPixbuf* replacement, - GError** error); -static void _thumbnail_cache_replace (ThumbnailCache* self, - ThumbnailSource* source, - GdkPixbuf* original, - GError** error); -gboolean thumbnail_cache_exists (ThumbnailSource* source); -static gboolean _thumbnail_cache_exists (ThumbnailCache* self, - ThumbnailSource* source); -GType rotation_get_type (void) G_GNUC_CONST; -void thumbnail_cache_rotate (ThumbnailSource* source, - Rotation rotation, - GError** error); -GdkPixbuf* rotation_perform (Rotation self, - GdkPixbuf* pixbuf); -gpointer photo_file_adapter_ref (gpointer instance); -void photo_file_adapter_unref (gpointer instance); -GParamSpec* param_spec_photo_file_adapter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_adapter (GValue* value, - gpointer v_object); -void value_take_photo_file_adapter (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_adapter (const GValue* value); -GType photo_file_adapter_get_type (void) G_GNUC_CONST; -GType photo_file_reader_get_type (void) G_GNUC_CONST; -GType orientation_get_type (void) G_GNUC_CONST; -void thumbnail_cache_generate_for_photo (Thumbnails* thumbnails, - PhotoFileReader* reader, - Orientation orientation, - Dimensions* original_dim, - GError** error); -void scaling_get_scaled_dimensions (Scaling *self, - Dimensions* original, - Dimensions* result); -GdkPixbuf* photo_file_reader_scaled_read (PhotoFileReader* self, - Dimensions* full, - Dimensions* scaled, - GError** error); -GdkPixbuf* photo_file_reader_unscaled_read (PhotoFileReader* self, - GError** error); -GdkPixbuf* orientation_rotate_pixbuf (Orientation self, - GdkPixbuf* pixbuf); -void dimensions_for_pixbuf (GdkPixbuf* pixbuf, - Dimensions* result); -void thumbnail_cache_generate_for_video_frame (Thumbnails* thumbnails, - GdkPixbuf* preview_frame); -GdkPixbuf* scaling_perform_on_pixbuf (Scaling *self, - GdkPixbuf* pixbuf, - GdkInterpType interp, - gboolean scale_up); -static void thumbnail_cache_schedule_debug (void); -static GdkPixbuf* thumbnail_cache_fetch_from_memory (ThumbnailCache* self, - const gchar* thumbnail_name); -gchar* data_source_get_source_id (DataSource* self); -static GdkPixbuf* thumbnail_cache_read_pixbuf (ThumbnailCache* self, - const gchar* thumbnail_name, - PhotoFileFormat format, - GError** error); -static void thumbnail_cache_store_in_memory (ThumbnailCache* self, - const gchar* thumbnail_name, - GdkPixbuf* thumbnail); -gboolean dimensions_has_area (Dimensions *self); -gboolean dimensions_equals (Dimensions *self, - Dimensions* dim); -gpointer background_job_ref (gpointer instance); -void background_job_unref (gpointer instance); -GParamSpec* param_spec_background_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_background_job (GValue* value, - gpointer v_object); -void value_take_background_job (GValue* value, - gpointer v_object); -gpointer value_get_background_job (const GValue* value); -GType background_job_get_type (void) G_GNUC_CONST; -void workers_enqueue (Workers* self, - BackgroundJob* job); -static ThumbnailCacheAsyncFetchJob* thumbnail_cache_async_fetch_job_new (ThumbnailCache* cache, - const gchar* thumbnail_name, - ThumbnailSource* source, - GdkPixbuf* prefetched, - Dimensions* dim, - GdkInterpType interp, - ThumbnailCacheAsyncFetchCallback callback, - void* callback_target, - GCancellable* cancellable); -static ThumbnailCacheAsyncFetchJob* thumbnail_cache_async_fetch_job_construct (GType object_type, - ThumbnailCache* cache, - const gchar* thumbnail_name, - ThumbnailSource* source, - GdkPixbuf* prefetched, - Dimensions* dim, - GdkInterpType interp, - ThumbnailCacheAsyncFetchCallback callback, - void* callback_target, - GCancellable* cancellable); -static GType thumbnail_cache_async_fetch_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static void thumbnail_cache_async_fetch_completion_callback (BackgroundJob* background_job); -GType background_job_job_priority_get_type (void) G_GNUC_CONST; -static GFile* thumbnail_cache_get_source_cached_file (ThumbnailCache* self, - ThumbnailSource* source); -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -GdkPixbuf* photo_source_get_pixbuf (PhotoSource* self, - Scaling* scaling, - GError** error); -static void thumbnail_cache_save_thumbnail (ThumbnailCache* self, - GFile* file, - GdkPixbuf* pixbuf, - ThumbnailSource* source, - GError** error); -gboolean dimensions_approx_scaled (Dimensions *self, - gint scale, - gint fudge); -static GFile* thumbnail_cache_get_cached_file (ThumbnailCache* self, - const gchar* thumbnail_name, - PhotoFileFormat thumbnail_format); -gchar* thumbnail_source_get_representative_id (ThumbnailSource* self); -void app_window_panic (const gchar* msg); -static gboolean thumbnail_cache_remove_from_memory (ThumbnailCache* self, - const gchar* thumbnail_name); -GdkPixbuf* scale_pixbuf (GdkPixbuf* pixbuf, - gint scale, - GdkInterpType interp, - gboolean scale_up); -PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self, - const gchar* filepath); -gchar* photo_file_format_get_default_basename (PhotoFileFormat self, - const gchar* name); -static ThumbnailCacheImageData* thumbnail_cache_image_data_new (GdkPixbuf* pixbuf); -static ThumbnailCacheImageData* thumbnail_cache_image_data_construct (GType object_type, - GdkPixbuf* pixbuf); -GType photo_file_writer_get_type (void) G_GNUC_CONST; -GQuark photo_format_error_quark (void); -PhotoFileWriter* photo_file_format_create_writer (PhotoFileFormat self, - const gchar* filepath, - GError** error); -void photo_file_writer_write (PhotoFileWriter* self, - GdkPixbuf* pixbuf, - JpegQuality quality, - GError** error); -static void thumbnail_cache_image_data_finalize (ThumbnailCacheImageData * obj); -static void _thumbnail_cache_async_fetch_completion_callback_completion_callback (BackgroundJob* job, - gpointer self); -gpointer abstract_semaphore_ref (gpointer instance); -void abstract_semaphore_unref (gpointer instance); -GParamSpec* param_spec_abstract_semaphore (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_abstract_semaphore (GValue* value, - gpointer v_object); -void value_take_abstract_semaphore (GValue* value, - gpointer v_object); -gpointer value_get_abstract_semaphore (const GValue* value); -GType abstract_semaphore_get_type (void) G_GNUC_CONST; -BackgroundJob* background_job_construct (GType object_type, - GObject* owner, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target, - AbstractSemaphore* completion_semaphore); -static BackgroundJobJobPriority thumbnail_cache_async_fetch_job_real_get_priority (BackgroundJob* base); -static void thumbnail_cache_async_fetch_job_real_execute (BackgroundJob* base); -gboolean background_job_is_cancelled (BackgroundJob* self); -GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf, - Dimensions* resized, - GdkInterpType interp); -static void thumbnail_cache_async_fetch_job_generate_thumbnail (ThumbnailCacheAsyncFetchJob* self, - GError** error); -GType video_source_get_type (void) G_GNUC_CONST; -GType video_get_type (void) G_GNUC_CONST; -GdkPixbuf* thumbnail_source_create_thumbnail (ThumbnailSource* self, - gint scale, - GError** error); -static void thumbnail_cache_async_fetch_job_finalize (BackgroundJob * obj); -static void thumbnail_cache_finalize (GObject * obj); - - -Thumbnails* -thumbnails_construct (GType object_type) -{ - Thumbnails* self = NULL; -#line 11 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self = (Thumbnails*) g_type_create_instance (object_type); -#line 11 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return self; -#line 841 "ThumbnailCache.c" -} - - -Thumbnails* -thumbnails_new (void) -{ -#line 11 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return thumbnails_construct (TYPE_THUMBNAILS); -#line 850 "ThumbnailCache.c" -} - - -void -thumbnails_set (Thumbnails* self, - ThumbnailCacheSize size, - GdkPixbuf* pixbuf) -{ - GeeHashMap* _tmp0_; -#line 14 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAILS (self)); -#line 14 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 15 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = self->priv->map; -#line 15 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) size), pixbuf); -#line 868 "ThumbnailCache.c" -} - - -void -thumbnails_remove (Thumbnails* self, - ThumbnailCacheSize size) -{ - GeeHashMap* _tmp0_; -#line 18 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAILS (self)); -#line 19 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = self->priv->map; -#line 19 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) size), NULL); -#line 883 "ThumbnailCache.c" -} - - -GdkPixbuf* -thumbnails_get (Thumbnails* self, - ThumbnailCacheSize size) -{ - GdkPixbuf* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 22 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (IS_THUMBNAILS (self), NULL); -#line 23 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = self->priv->map; -#line 23 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) size)); -#line 23 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = (GdkPixbuf*) _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 904 "ThumbnailCache.c" -} - - -static void -value_thumbnails_init (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - value->data[0].v_pointer = NULL; -#line 913 "ThumbnailCache.c" -} - - -static void -value_thumbnails_free_value (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnails_unref (value->data[0].v_pointer); -#line 924 "ThumbnailCache.c" - } -} - - -static void -value_thumbnails_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (src_value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - dest_value->data[0].v_pointer = thumbnails_ref (src_value->data[0].v_pointer); -#line 937 "ThumbnailCache.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - dest_value->data[0].v_pointer = NULL; -#line 941 "ThumbnailCache.c" - } -} - - -static gpointer -value_thumbnails_peek_pointer (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return value->data[0].v_pointer; -#line 951 "ThumbnailCache.c" -} - - -static gchar* -value_thumbnails_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (collect_values[0].v_pointer) { -#line 963 "ThumbnailCache.c" - Thumbnails * object; - object = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (object->parent_instance.g_class == NULL) { -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 970 "ThumbnailCache.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 974 "ThumbnailCache.c" - } -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - value->data[0].v_pointer = thumbnails_ref (object); -#line 978 "ThumbnailCache.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - value->data[0].v_pointer = NULL; -#line 982 "ThumbnailCache.c" - } -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return NULL; -#line 986 "ThumbnailCache.c" -} - - -static gchar* -value_thumbnails_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - Thumbnails ** object_p; - object_p = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (!object_p) { -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1002 "ThumbnailCache.c" - } -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (!value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - *object_p = NULL; -#line 1008 "ThumbnailCache.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - *object_p = value->data[0].v_pointer; -#line 1012 "ThumbnailCache.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - *object_p = thumbnails_ref (value->data[0].v_pointer); -#line 1016 "ThumbnailCache.c" - } -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return NULL; -#line 1020 "ThumbnailCache.c" -} - - -GParamSpec* -param_spec_thumbnails (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecThumbnails* spec; -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_THUMBNAILS), NULL); -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return G_PARAM_SPEC (spec); -#line 1040 "ThumbnailCache.c" -} - - -gpointer -value_get_thumbnails (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_THUMBNAILS), NULL); -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return value->data[0].v_pointer; -#line 1051 "ThumbnailCache.c" -} - - -void -value_set_thumbnails (GValue* value, - gpointer v_object) -{ - Thumbnails * old; -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_THUMBNAILS)); -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_THUMBNAILS)); -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - value->data[0].v_pointer = v_object; -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnails_ref (value->data[0].v_pointer); -#line 1074 "ThumbnailCache.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - value->data[0].v_pointer = NULL; -#line 1078 "ThumbnailCache.c" - } -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnails_unref (old); -#line 1084 "ThumbnailCache.c" - } -} - - -void -value_take_thumbnails (GValue* value, - gpointer v_object) -{ - Thumbnails * old; -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_THUMBNAILS)); -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_THUMBNAILS)); -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - value->data[0].v_pointer = v_object; -#line 1106 "ThumbnailCache.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - value->data[0].v_pointer = NULL; -#line 1110 "ThumbnailCache.c" - } -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnails_unref (old); -#line 1116 "ThumbnailCache.c" - } -} - - -static void -thumbnails_class_init (ThumbnailsClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnails_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - ((ThumbnailsClass *) klass)->finalize = thumbnails_finalize; -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_type_class_add_private (klass, sizeof (ThumbnailsPrivate)); -#line 1130 "ThumbnailCache.c" -} - - -static void -thumbnails_instance_init (Thumbnails * self) -{ - GeeHashMap* _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->priv = THUMBNAILS_GET_PRIVATE (self); -#line 8 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = gee_hash_map_new (THUMBNAIL_CACHE_TYPE_SIZE, NULL, NULL, gdk_pixbuf_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 8 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->priv->map = _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->ref_count = 1; -#line 1146 "ThumbnailCache.c" -} - - -static void -thumbnails_finalize (Thumbnails * obj) -{ - Thumbnails * self; -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_THUMBNAILS, Thumbnails); -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_signal_handlers_destroy (self); -#line 8 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->priv->map); -#line 1160 "ThumbnailCache.c" -} - - -GType -thumbnails_get_type (void) -{ - static volatile gsize thumbnails_type_id__volatile = 0; - if (g_once_init_enter (&thumbnails_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_thumbnails_init, value_thumbnails_free_value, value_thumbnails_copy_value, value_thumbnails_peek_pointer, "p", value_thumbnails_collect_value, "p", value_thumbnails_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (ThumbnailsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) thumbnails_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Thumbnails), 0, (GInstanceInitFunc) thumbnails_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType thumbnails_type_id; - thumbnails_type_id = g_type_register_fundamental (g_type_fundamental_next (), "Thumbnails", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&thumbnails_type_id__volatile, thumbnails_type_id); - } - return thumbnails_type_id__volatile; -} - - -gpointer -thumbnails_ref (gpointer instance) -{ - Thumbnails * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_atomic_int_inc (&self->ref_count); -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return instance; -#line 1189 "ThumbnailCache.c" -} - - -void -thumbnails_unref (gpointer instance) -{ - Thumbnails * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - THUMBNAILS_GET_CLASS (self)->finalize (self); -#line 7 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1204 "ThumbnailCache.c" - } -} - - -gint -thumbnail_cache_size_get_scale (ThumbnailCacheSize self) -{ - gint result = 0; -#line 42 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = (gint) self; -#line 42 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 1217 "ThumbnailCache.c" -} - - -void -thumbnail_cache_size_get_scaling (ThumbnailCacheSize self, - Scaling* result) -{ - Scaling _tmp0_ = {0}; -#line 46 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - scaling_for_best_fit (thumbnail_cache_size_get_scale (self), TRUE, &_tmp0_); -#line 46 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - *result = _tmp0_; -#line 46 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 1232 "ThumbnailCache.c" -} - - -ThumbnailCacheSize -thumbnail_cache_size_get_best_size (gint scale) -{ - ThumbnailCacheSize result = 0; - ThumbnailCacheSize _tmp0_ = 0; -#line 50 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (scale <= thumbnail_cache_size_get_scale (THUMBNAIL_CACHE_SIZE_MEDIUM)) { -#line 50 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = THUMBNAIL_CACHE_SIZE_MEDIUM; -#line 1245 "ThumbnailCache.c" - } else { -#line 50 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = THUMBNAIL_CACHE_SIZE_BIG; -#line 1249 "ThumbnailCache.c" - } -#line 50 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = _tmp0_; -#line 50 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 1255 "ThumbnailCache.c" -} - - -GType -thumbnail_cache_size_get_type (void) -{ - static volatile gsize thumbnail_cache_size_type_id__volatile = 0; - if (g_once_init_enter (&thumbnail_cache_size_type_id__volatile)) { - static const GEnumValue values[] = {{THUMBNAIL_CACHE_SIZE_LARGEST, "THUMBNAIL_CACHE_SIZE_LARGEST", "largest"}, {THUMBNAIL_CACHE_SIZE_BIG, "THUMBNAIL_CACHE_SIZE_BIG", "big"}, {THUMBNAIL_CACHE_SIZE_MEDIUM, "THUMBNAIL_CACHE_SIZE_MEDIUM", "medium"}, {THUMBNAIL_CACHE_SIZE_SMALLEST, "THUMBNAIL_CACHE_SIZE_SMALLEST", "smallest"}, {0, NULL, NULL}}; - GType thumbnail_cache_size_type_id; - thumbnail_cache_size_type_id = g_enum_register_static ("ThumbnailCacheSize", values); - g_once_init_leave (&thumbnail_cache_size_type_id__volatile, thumbnail_cache_size_type_id); - } - return thumbnail_cache_size_type_id__volatile; -} - - -static ThumbnailCache* -thumbnail_cache_construct (GType object_type, - ThumbnailCacheSize size, - gulong max_cached_bytes, - GdkInterpType interp, - JpegQuality quality) -{ - ThumbnailCache * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - GFile* _tmp2_; -#line 190 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self = (ThumbnailCache*) g_object_new (object_type, NULL); -#line 192 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = g_strdup_printf ("thumbs%d", thumbnail_cache_size_get_scale (size)); -#line 192 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = _tmp0_; -#line 192 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = app_dirs_get_cache_subdir ("thumbs", _tmp1_); -#line 192 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->priv->cache_dir); -#line 192 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->priv->cache_dir = _tmp2_; -#line 192 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (_tmp1_); -#line 193 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->priv->size = size; -#line 194 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->priv->max_cached_bytes = max_cached_bytes; -#line 195 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->priv->interp = interp; -#line 196 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->priv->quality = quality; -#line 190 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return self; -#line 1308 "ThumbnailCache.c" -} - - -static ThumbnailCache* -thumbnail_cache_new (ThumbnailCacheSize size, - gulong max_cached_bytes, - GdkInterpType interp, - JpegQuality quality) -{ -#line 190 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return thumbnail_cache_construct (TYPE_THUMBNAIL_CACHE, size, max_cached_bytes, interp, quality); -#line 1320 "ThumbnailCache.c" -} - - -static void -_thumbnail_cache_report_cycle_one_shot_callback (gpointer self) -{ -#line 201 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_report_cycle (); -#line 1329 "ThumbnailCache.c" -} - - -void -thumbnail_cache_init (void) -{ - OneShotScheduler* _tmp0_; - Workers* _tmp1_; - ThumbnailCache* _tmp2_; - ThumbnailCache* _tmp3_; -#line 201 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = one_shot_scheduler_new ("ThumbnailCache cycle reporter", _thumbnail_cache_report_cycle_one_shot_callback, NULL); -#line 201 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _one_shot_scheduler_unref0 (thumbnail_cache_debug_scheduler); -#line 201 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_debug_scheduler = _tmp0_; -#line 202 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = workers_new (workers_threads_per_cpu (1, -1), TRUE); -#line 202 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _workers_unref0 (thumbnail_cache_fetch_workers); -#line 202 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_fetch_workers = _tmp1_; -#line 204 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = thumbnail_cache_new (THUMBNAIL_CACHE_SIZE_BIG, THUMBNAIL_CACHE_MAX_BIG_CACHED_BYTES, THUMBNAIL_CACHE_DEFAULT_INTERP, THUMBNAIL_CACHE_DEFAULT_QUALITY); -#line 204 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (thumbnail_cache_big); -#line 204 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_big = _tmp2_; -#line 205 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = thumbnail_cache_new (THUMBNAIL_CACHE_SIZE_MEDIUM, THUMBNAIL_CACHE_MAX_MEDIUM_CACHED_BYTES, THUMBNAIL_CACHE_DEFAULT_INTERP, THUMBNAIL_CACHE_DEFAULT_QUALITY); -#line 205 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (thumbnail_cache_medium); -#line 205 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_medium = _tmp3_; -#line 1364 "ThumbnailCache.c" -} - - -void -thumbnail_cache_terminate (void) -{ -} - - -void -thumbnail_cache_import_from_source (ThumbnailSource* source, - gboolean force, - GError** error) -{ - gchar* _tmp0_; - gchar* _tmp1_; - ThumbnailCache* _tmp2_; - ThumbnailCache* _tmp3_; - GError * _inner_error_ = NULL; -#line 211 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (source)); -#line 213 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject)); -#line 213 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = _tmp0_; -#line 213 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_debug ("ThumbnailCache.vala:213: import from source: %s", _tmp1_); -#line 213 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (_tmp1_); -#line 214 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = thumbnail_cache_big; -#line 214 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_import_from_source (_tmp2_, source, force, &_inner_error_); -#line 214 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 214 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 214 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 1404 "ThumbnailCache.c" - } -#line 215 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = thumbnail_cache_medium; -#line 215 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_import_from_source (_tmp3_, source, force, &_inner_error_); -#line 215 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 215 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 215 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 1416 "ThumbnailCache.c" - } -} - - -void -thumbnail_cache_import_thumbnails (ThumbnailSource* source, - Thumbnails* thumbnails, - gboolean force, - GError** error) -{ - ThumbnailCache* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; - ThumbnailCache* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; - GError * _inner_error_ = NULL; -#line 218 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (source)); -#line 218 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAILS (thumbnails)); -#line 220 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = thumbnail_cache_big; -#line 220 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = thumbnails_get (thumbnails, THUMBNAIL_CACHE_SIZE_BIG); -#line 220 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = _tmp1_; -#line 220 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_import_thumbnail (_tmp0_, source, _tmp2_, force, &_inner_error_); -#line 220 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp2_); -#line 220 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 220 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 220 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 1454 "ThumbnailCache.c" - } -#line 221 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = thumbnail_cache_medium; -#line 221 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = thumbnails_get (thumbnails, THUMBNAIL_CACHE_SIZE_MEDIUM); -#line 221 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = _tmp4_; -#line 221 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_import_thumbnail (_tmp3_, source, _tmp5_, force, &_inner_error_); -#line 221 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp5_); -#line 221 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 221 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 221 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 1472 "ThumbnailCache.c" - } -} - - -void -thumbnail_cache_duplicate (ThumbnailSource* src_source, - ThumbnailSource* dest_source) -{ - ThumbnailCache* _tmp0_; - ThumbnailCache* _tmp1_; -#line 224 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (src_source)); -#line 224 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (dest_source)); -#line 225 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = thumbnail_cache_big; -#line 225 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_duplicate (_tmp0_, src_source, dest_source); -#line 226 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = thumbnail_cache_medium; -#line 226 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_duplicate (_tmp1_, src_source, dest_source); -#line 1495 "ThumbnailCache.c" -} - - -void -thumbnail_cache_remove (ThumbnailSource* source) -{ - ThumbnailCache* _tmp0_; - ThumbnailCache* _tmp1_; -#line 229 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (source)); -#line 230 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = thumbnail_cache_big; -#line 230 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_remove (_tmp0_, source); -#line 231 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = thumbnail_cache_medium; -#line 231 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_remove (_tmp1_, source); -#line 1514 "ThumbnailCache.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 237 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return self ? g_object_ref (self) : NULL; -#line 1523 "ThumbnailCache.c" -} - - -static ThumbnailCache* -thumbnail_cache_get_best_cache (gint scale) -{ - ThumbnailCache* result = NULL; - ThumbnailCacheSize size = 0; - ThumbnailCacheSize _tmp0_; -#line 235 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - size = thumbnail_cache_size_get_best_size (scale); -#line 236 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = size; -#line 236 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_tmp0_ == THUMBNAIL_CACHE_SIZE_BIG) { -#line 1539 "ThumbnailCache.c" - ThumbnailCache* _tmp1_; - ThumbnailCache* _tmp2_; -#line 237 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = thumbnail_cache_big; -#line 237 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 237 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = _tmp2_; -#line 237 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 1550 "ThumbnailCache.c" - } else { - ThumbnailCacheSize _tmp3_; - ThumbnailCache* _tmp4_; - ThumbnailCache* _tmp5_; -#line 239 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = size; -#line 239 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _vala_assert (_tmp3_ == THUMBNAIL_CACHE_SIZE_MEDIUM, "size == Size.MEDIUM"); -#line 241 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = thumbnail_cache_medium; -#line 241 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = _g_object_ref0 (_tmp4_); -#line 241 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = _tmp5_; -#line 241 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 1567 "ThumbnailCache.c" - } -} - - -static ThumbnailCache* -thumbnail_cache_get_cache_for (ThumbnailCacheSize size) -{ - ThumbnailCache* result = NULL; -#line 246 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - switch (size) { -#line 246 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - case THUMBNAIL_CACHE_SIZE_BIG: -#line 1580 "ThumbnailCache.c" - { - ThumbnailCache* _tmp0_; - ThumbnailCache* _tmp1_; -#line 248 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = thumbnail_cache_big; -#line 248 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 248 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = _tmp1_; -#line 248 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 1592 "ThumbnailCache.c" - } -#line 246 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - case THUMBNAIL_CACHE_SIZE_MEDIUM: -#line 1596 "ThumbnailCache.c" - { - ThumbnailCache* _tmp2_; - ThumbnailCache* _tmp3_; -#line 251 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = thumbnail_cache_medium; -#line 251 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 251 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = _tmp3_; -#line 251 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 1608 "ThumbnailCache.c" - } - default: - { -#line 254 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_error ("ThumbnailCache.vala:254: Unknown thumbnail size %d", thumbnail_cache_size_get_scale (size)); -#line 1614 "ThumbnailCache.c" - } - } -} - - -GdkPixbuf* -thumbnail_cache_fetch (ThumbnailSource* source, - gint scale, - GError** error) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_ = NULL; - ThumbnailCache* _tmp1_; - ThumbnailCache* _tmp2_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; - GError * _inner_error_ = NULL; -#line 258 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), NULL); -#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = thumbnail_cache_get_best_cache (scale); -#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = _tmp1_; -#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = _thumbnail_cache_fetch (_tmp2_, source, &_inner_error_); -#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = _tmp3_; -#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp2_); -#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = _tmp4_; -#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return NULL; -#line 1653 "ThumbnailCache.c" - } -#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = _tmp0_; -#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = NULL; -#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = _tmp5_; -#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp0_); -#line 259 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 1665 "ThumbnailCache.c" -} - - -void -thumbnail_cache_fetch_async (ThumbnailSource* source, - gint scale, - ThumbnailCacheAsyncFetchCallback callback, - void* callback_target, - GCancellable* cancellable) -{ - ThumbnailCache* _tmp0_; - ThumbnailCache* _tmp1_; - Dimensions _tmp2_ = {0}; -#line 262 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (source)); -#line 262 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable)); -#line 264 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = thumbnail_cache_get_best_cache (scale); -#line 264 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = _tmp0_; -#line 264 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - dimensions_init (&_tmp2_, 0, 0); -#line 264 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_fetch_async (_tmp1_, source, thumbnail_source_get_preferred_thumbnail_format (source), &_tmp2_, THUMBNAIL_CACHE_DEFAULT_INTERP, callback, callback_target, cancellable); -#line 264 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp1_); -#line 1693 "ThumbnailCache.c" -} - - -void -thumbnail_cache_fetch_async_scaled (ThumbnailSource* source, - gint scale, - Dimensions* dim, - GdkInterpType interp, - ThumbnailCacheAsyncFetchCallback callback, - void* callback_target, - GCancellable* cancellable) -{ - ThumbnailCache* _tmp0_; - ThumbnailCache* _tmp1_; - Dimensions _tmp2_; -#line 268 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (source)); -#line 268 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (dim != NULL); -#line 268 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable)); -#line 270 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = thumbnail_cache_get_best_cache (scale); -#line 270 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = _tmp0_; -#line 270 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = *dim; -#line 270 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_fetch_async (_tmp1_, source, thumbnail_source_get_preferred_thumbnail_format (source), &_tmp2_, interp, callback, callback_target, cancellable); -#line 270 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp1_); -#line 1725 "ThumbnailCache.c" -} - - -void -thumbnail_cache_replace (ThumbnailSource* source, - ThumbnailCacheSize size, - GdkPixbuf* replacement, - GError** error) -{ - ThumbnailCache* _tmp0_; - ThumbnailCache* _tmp1_; - GError * _inner_error_ = NULL; -#line 274 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (source)); -#line 274 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (GDK_IS_PIXBUF (replacement)); -#line 276 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = thumbnail_cache_get_cache_for (size); -#line 276 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = _tmp0_; -#line 276 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_replace (_tmp1_, source, replacement, &_inner_error_); -#line 276 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp1_); -#line 276 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 276 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 276 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 1756 "ThumbnailCache.c" - } -} - - -gboolean -thumbnail_cache_exists (ThumbnailSource* source) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - ThumbnailCache* _tmp1_; -#line 279 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), FALSE); -#line 280 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = thumbnail_cache_big; -#line 280 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_thumbnail_cache_exists (_tmp1_, source)) { -#line 1773 "ThumbnailCache.c" - ThumbnailCache* _tmp2_; -#line 280 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = thumbnail_cache_medium; -#line 280 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = _thumbnail_cache_exists (_tmp2_, source); -#line 1779 "ThumbnailCache.c" - } else { -#line 280 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = FALSE; -#line 1783 "ThumbnailCache.c" - } -#line 280 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = _tmp0_; -#line 280 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 1789 "ThumbnailCache.c" -} - - -void -thumbnail_cache_rotate (ThumbnailSource* source, - Rotation rotation, - GError** error) -{ - ThumbnailCacheSize* _tmp0_; - gint _tmp0__length1; - GError * _inner_error_ = NULL; -#line 283 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (source)); -#line 284 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = thumbnail_cache_ALL_SIZES; -#line 284 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0__length1 = thumbnail_cache_ALL_SIZES_length1; -#line 1807 "ThumbnailCache.c" - { - ThumbnailCacheSize* size_collection = NULL; - gint size_collection_length1 = 0; - gint _size_collection_size_ = 0; - gint size_it = 0; -#line 284 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - size_collection = _tmp0_; -#line 284 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - size_collection_length1 = _tmp0__length1; -#line 284 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - for (size_it = 0; size_it < _tmp0__length1; size_it = size_it + 1) { -#line 1819 "ThumbnailCache.c" - ThumbnailCacheSize size = 0; -#line 284 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - size = size_collection[size_it]; -#line 1823 "ThumbnailCache.c" - { - GdkPixbuf* thumbnail = NULL; - ThumbnailCacheSize _tmp1_; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - ThumbnailCacheSize _tmp5_; - GdkPixbuf* _tmp6_; -#line 285 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = size; -#line 285 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = thumbnail_cache_fetch (source, (gint) _tmp1_, &_inner_error_); -#line 285 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail = _tmp2_; -#line 285 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 285 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 285 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 1844 "ThumbnailCache.c" - } -#line 286 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = thumbnail; -#line 286 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = rotation_perform (rotation, _tmp3_); -#line 286 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (thumbnail); -#line 286 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail = _tmp4_; -#line 287 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = size; -#line 287 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp6_ = thumbnail; -#line 287 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_replace (source, _tmp5_, _tmp6_, &_inner_error_); -#line 287 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 287 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 287 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (thumbnail); -#line 287 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 1868 "ThumbnailCache.c" - } -#line 284 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (thumbnail); -#line 1872 "ThumbnailCache.c" - } - } - } -} - - -void -thumbnail_cache_generate_for_photo (Thumbnails* thumbnails, - PhotoFileReader* reader, - Orientation orientation, - Dimensions* original_dim, - GError** error) -{ - ThumbnailCacheSize max_size = 0; - Dimensions dim = {0}; - ThumbnailCacheSize _tmp0_; - Scaling _tmp1_ = {0}; - Dimensions _tmp2_; - Dimensions _tmp3_ = {0}; - GdkPixbuf* largest_thumbnail = NULL; - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; - Dimensions largest_thumb_dimensions = {0}; - GdkPixbuf* _tmp14_; - Dimensions _tmp15_ = {0}; - ThumbnailCacheSize* _tmp16_; - gint _tmp16__length1; - GError * _inner_error_ = NULL; -#line 293 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAILS (thumbnails)); -#line 293 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_PHOTO_FILE_READER (reader)); -#line 293 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (original_dim != NULL); -#line 296 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - max_size = THUMBNAIL_CACHE_SIZE_BIG * 2; -#line 297 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = max_size; -#line 297 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_size_get_scaling (_tmp0_, &_tmp1_); -#line 297 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = *original_dim; -#line 297 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - scaling_get_scaled_dimensions (&_tmp1_, &_tmp2_, &_tmp3_); -#line 297 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - dim = _tmp3_; -#line 298 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - largest_thumbnail = NULL; -#line 1921 "ThumbnailCache.c" - { - GdkPixbuf* _tmp4_ = NULL; - Dimensions _tmp5_; - Dimensions _tmp6_; - GdkPixbuf* _tmp7_; - GdkPixbuf* _tmp8_; -#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = *original_dim; -#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp6_ = dim; -#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp7_ = photo_file_reader_scaled_read (reader, &_tmp5_, &_tmp6_, &_inner_error_); -#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = _tmp7_; -#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1938 "ThumbnailCache.c" - goto __catch248_g_error; - } -#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp8_ = _tmp4_; -#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = NULL; -#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (largest_thumbnail); -#line 300 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - largest_thumbnail = _tmp8_; -#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp4_); -#line 1951 "ThumbnailCache.c" - } - goto __finally248; - __catch248_g_error: - { - GError* err = NULL; - GdkPixbuf* _tmp9_ = NULL; - GdkPixbuf* _tmp10_; - GdkPixbuf* _tmp11_; -#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - err = _inner_error_; -#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _inner_error_ = NULL; -#line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp10_ = photo_file_reader_unscaled_read (reader, &_inner_error_); -#line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp9_ = _tmp10_; -#line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_error_free0 (err); -#line 1972 "ThumbnailCache.c" - goto __finally248; - } -#line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp11_ = _tmp9_; -#line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp9_ = NULL; -#line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (largest_thumbnail); -#line 305 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - largest_thumbnail = _tmp11_; -#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp9_); -#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_error_free0 (err); -#line 1987 "ThumbnailCache.c" - } - __finally248: -#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (largest_thumbnail); -#line 299 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 1998 "ThumbnailCache.c" - } -#line 307 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp12_ = largest_thumbnail; -#line 307 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp13_ = orientation_rotate_pixbuf (orientation, _tmp12_); -#line 307 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (largest_thumbnail); -#line 307 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - largest_thumbnail = _tmp13_; -#line 308 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp14_ = largest_thumbnail; -#line 308 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - dimensions_for_pixbuf (_tmp14_, &_tmp15_); -#line 308 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - largest_thumb_dimensions = _tmp15_; -#line 310 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp16_ = thumbnail_cache_ALL_SIZES; -#line 310 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp16__length1 = thumbnail_cache_ALL_SIZES_length1; -#line 2018 "ThumbnailCache.c" - { - ThumbnailCacheSize* size_collection = NULL; - gint size_collection_length1 = 0; - gint _size_collection_size_ = 0; - gint size_it = 0; -#line 310 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - size_collection = _tmp16_; -#line 310 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - size_collection_length1 = _tmp16__length1; -#line 310 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - for (size_it = 0; size_it < _tmp16__length1; size_it = size_it + 1) { -#line 2030 "ThumbnailCache.c" - ThumbnailCacheSize size = 0; -#line 310 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - size = size_collection[size_it]; -#line 2034 "ThumbnailCache.c" - { - ThumbnailCacheSize _tmp17_; - Scaling _tmp18_ = {0}; - Dimensions _tmp19_; - Dimensions _tmp20_ = {0}; - ThumbnailCacheSize _tmp21_; - GdkPixbuf* _tmp22_; - Dimensions _tmp23_; - gint _tmp24_; - Dimensions _tmp25_; - gint _tmp26_; - GdkPixbuf* _tmp27_; - GdkPixbuf* _tmp28_; -#line 311 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp17_ = size; -#line 311 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_size_get_scaling (_tmp17_, &_tmp18_); -#line 311 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp19_ = largest_thumb_dimensions; -#line 311 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - scaling_get_scaled_dimensions (&_tmp18_, &_tmp19_, &_tmp20_); -#line 311 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - dim = _tmp20_; -#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp21_ = size; -#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp22_ = largest_thumbnail; -#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp23_ = dim; -#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp24_ = _tmp23_.width; -#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp25_ = dim; -#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp26_ = _tmp25_.height; -#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp27_ = gdk_pixbuf_scale_simple (_tmp22_, _tmp24_, _tmp26_, GDK_INTERP_HYPER); -#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp28_ = _tmp27_; -#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnails_set (thumbnails, _tmp21_, _tmp28_); -#line 312 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp28_); -#line 2078 "ThumbnailCache.c" - } - } - } -#line 293 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (largest_thumbnail); -#line 2084 "ThumbnailCache.c" -} - - -void -thumbnail_cache_generate_for_video_frame (Thumbnails* thumbnails, - GdkPixbuf* preview_frame) -{ - ThumbnailCacheSize* _tmp0_; - gint _tmp0__length1; -#line 316 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAILS (thumbnails)); -#line 316 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (GDK_IS_PIXBUF (preview_frame)); -#line 317 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = thumbnail_cache_ALL_SIZES; -#line 317 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0__length1 = thumbnail_cache_ALL_SIZES_length1; -#line 2102 "ThumbnailCache.c" - { - ThumbnailCacheSize* size_collection = NULL; - gint size_collection_length1 = 0; - gint _size_collection_size_ = 0; - gint size_it = 0; -#line 317 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - size_collection = _tmp0_; -#line 317 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - size_collection_length1 = _tmp0__length1; -#line 317 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - for (size_it = 0; size_it < _tmp0__length1; size_it = size_it + 1) { -#line 2114 "ThumbnailCache.c" - ThumbnailCacheSize size = 0; -#line 317 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - size = size_collection[size_it]; -#line 2118 "ThumbnailCache.c" - { - Scaling current_scaling = {0}; - ThumbnailCacheSize _tmp1_; - Scaling _tmp2_ = {0}; - GdkPixbuf* current_thumbnail = NULL; - GdkPixbuf* _tmp3_; - ThumbnailCacheSize _tmp4_; - GdkPixbuf* _tmp5_; -#line 318 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = size; -#line 318 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_size_get_scaling (_tmp1_, &_tmp2_); -#line 318 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - current_scaling = _tmp2_; -#line 319 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = scaling_perform_on_pixbuf (¤t_scaling, preview_frame, GDK_INTERP_HYPER, TRUE); -#line 319 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - current_thumbnail = _tmp3_; -#line 321 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = size; -#line 321 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = current_thumbnail; -#line 321 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnails_set (thumbnails, _tmp4_, _tmp5_); -#line 317 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (current_thumbnail); -#line 2145 "ThumbnailCache.c" - } - } - } -} - - -static void -thumbnail_cache_schedule_debug (void) -{ -} - - -static void -thumbnail_cache_report_cycle (void) -{ -} - - -static GdkPixbuf* -_thumbnail_cache_fetch (ThumbnailCache* self, - ThumbnailSource* source, - GError** error) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* pixbuf = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_ = NULL; - gchar* _tmp6_; - gchar* _tmp7_; - GdkPixbuf* _tmp8_; - GdkPixbuf* _tmp9_; - GdkPixbuf* _tmp10_; - gint _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - GdkPixbuf* _tmp14_; - GError * _inner_error_ = NULL; -#line 371 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (IS_THUMBNAIL_CACHE (self), NULL); -#line 371 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), NULL); -#line 373 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)); -#line 373 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = _tmp0_; -#line 373 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = thumbnail_cache_fetch_from_memory (self, _tmp1_); -#line 373 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = _tmp2_; -#line 373 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (_tmp1_); -#line 373 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - pixbuf = _tmp3_; -#line 374 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = pixbuf; -#line 374 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_tmp4_ != NULL) { -#line 375 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = pixbuf; -#line 375 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 2211 "ThumbnailCache.c" - } -#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp6_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)); -#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp7_ = _tmp6_; -#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp8_ = thumbnail_cache_read_pixbuf (self, _tmp7_, thumbnail_source_get_preferred_thumbnail_format (source), &_inner_error_); -#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp9_ = _tmp8_; -#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (_tmp7_); -#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = _tmp9_; -#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (pixbuf); -#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return NULL; -#line 2233 "ThumbnailCache.c" - } -#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp10_ = _tmp5_; -#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = NULL; -#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (pixbuf); -#line 377 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - pixbuf = _tmp10_; -#line 379 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp11_ = thumbnail_cache_cycle_fetched_thumbnails; -#line 379 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_cycle_fetched_thumbnails = _tmp11_ + 1; -#line 380 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_schedule_debug (); -#line 383 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp12_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)); -#line 383 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp13_ = _tmp12_; -#line 383 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp14_ = pixbuf; -#line 383 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_store_in_memory (self, _tmp13_, _tmp14_); -#line 383 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (_tmp13_); -#line 385 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = pixbuf; -#line 385 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp5_); -#line 385 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 2265 "ThumbnailCache.c" -} - - -static void -_thumbnail_cache_fetch_async (ThumbnailCache* self, - ThumbnailSource* source, - PhotoFileFormat format, - Dimensions* dim, - GdkInterpType interp, - ThumbnailCacheAsyncFetchCallback callback, - void* callback_target, - GCancellable* cancellable) -{ - gchar* thumbnail_name = NULL; - gchar* _tmp0_; - GdkPixbuf* pixbuf = NULL; - const gchar* _tmp1_; - GdkPixbuf* _tmp2_; - gboolean _tmp3_ = FALSE; - GdkPixbuf* _tmp4_; - Workers* _tmp12_; - const gchar* _tmp13_; - GdkPixbuf* _tmp14_; - Dimensions _tmp15_; - ThumbnailCacheAsyncFetchJob* _tmp16_; - ThumbnailCacheAsyncFetchJob* _tmp17_; -#line 388 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_CACHE (self)); -#line 388 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (source)); -#line 388 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (dim != NULL); -#line 388 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable)); -#line 391 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)); -#line 391 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_name = _tmp0_; -#line 392 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = thumbnail_name; -#line 392 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = thumbnail_cache_fetch_from_memory (self, _tmp1_); -#line 392 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - pixbuf = _tmp2_; -#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = pixbuf; -#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_tmp4_ != NULL) { -#line 2314 "ThumbnailCache.c" - gboolean _tmp5_ = FALSE; -#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (!dimensions_has_area (dim)) { -#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = TRUE; -#line 2320 "ThumbnailCache.c" - } else { - GdkPixbuf* _tmp6_; - Dimensions _tmp7_ = {0}; - Dimensions _tmp8_; -#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp6_ = pixbuf; -#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - dimensions_for_pixbuf (_tmp6_, &_tmp7_); -#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp8_ = *dim; -#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = dimensions_equals (&_tmp7_, &_tmp8_); -#line 2333 "ThumbnailCache.c" - } -#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = _tmp5_; -#line 2337 "ThumbnailCache.c" - } else { -#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = FALSE; -#line 2341 "ThumbnailCache.c" - } -#line 393 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_tmp3_) { -#line 2345 "ThumbnailCache.c" - GdkPixbuf* _tmp9_; - GdkPixbuf* _tmp10_; - Dimensions _tmp11_; -#line 396 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp9_ = pixbuf; -#line 396 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp10_ = pixbuf; -#line 396 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp11_ = *dim; -#line 396 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - callback (_tmp9_, _tmp10_, &_tmp11_, interp, NULL, callback_target); -#line 398 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (pixbuf); -#line 398 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (thumbnail_name); -#line 398 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 2363 "ThumbnailCache.c" - } -#line 411 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp12_ = thumbnail_cache_fetch_workers; -#line 411 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp13_ = thumbnail_name; -#line 411 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp14_ = pixbuf; -#line 411 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp15_ = *dim; -#line 411 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp16_ = thumbnail_cache_async_fetch_job_new (self, _tmp13_, source, _tmp14_, &_tmp15_, interp, callback, callback_target, cancellable); -#line 411 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp17_ = _tmp16_; -#line 411 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - workers_enqueue (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 411 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _background_job_unref0 (_tmp17_); -#line 388 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (pixbuf); -#line 388 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (thumbnail_name); -#line 2385 "ThumbnailCache.c" -} - - -static gpointer -_background_job_ref0 (gpointer self) -{ -#line 417 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return self ? background_job_ref (self) : NULL; -#line 2394 "ThumbnailCache.c" -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 425 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return self ? g_error_copy (self) : NULL; -#line 2403 "ThumbnailCache.c" -} - - -static void -thumbnail_cache_async_fetch_completion_callback (BackgroundJob* background_job) -{ - ThumbnailCacheAsyncFetchJob* job = NULL; - ThumbnailCacheAsyncFetchJob* _tmp0_; - gboolean _tmp1_ = FALSE; - ThumbnailCacheAsyncFetchJob* _tmp2_; - gboolean _tmp3_; - ThumbnailCacheAsyncFetchJob* _tmp16_; - GdkPixbuf* _tmp17_; - ThumbnailCacheAsyncFetchJob* _tmp28_; - ThumbnailCacheAsyncFetchCallback _tmp29_; - void* _tmp29__target; - ThumbnailCacheAsyncFetchJob* _tmp30_; - GdkPixbuf* _tmp31_; - ThumbnailCacheAsyncFetchJob* _tmp32_; - GdkPixbuf* _tmp33_; - ThumbnailCacheAsyncFetchJob* _tmp34_; - Dimensions _tmp35_; - ThumbnailCacheAsyncFetchJob* _tmp36_; - GdkInterpType _tmp37_; - ThumbnailCacheAsyncFetchJob* _tmp38_; - GError* _tmp39_; - GError * _inner_error_ = NULL; -#line 416 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_BACKGROUND_JOB (background_job)); -#line 417 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (background_job, THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB, ThumbnailCacheAsyncFetchJob)); -#line 417 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - job = _tmp0_; -#line 421 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = job; -#line 421 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = _tmp2_->replace; -#line 421 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_tmp3_) { -#line 2443 "ThumbnailCache.c" - ThumbnailCacheAsyncFetchJob* _tmp4_; - GdkPixbuf* _tmp5_; -#line 421 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = job; -#line 421 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = _tmp4_->unscaled; -#line 421 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = _tmp5_ != NULL; -#line 2452 "ThumbnailCache.c" - } else { -#line 421 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = FALSE; -#line 2456 "ThumbnailCache.c" - } -#line 421 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_tmp1_) { -#line 2460 "ThumbnailCache.c" - { - ThumbnailCacheAsyncFetchJob* _tmp6_; - ThumbnailSource* _tmp7_; - ThumbnailCacheAsyncFetchJob* _tmp8_; - ThumbnailCache* _tmp9_; - ThumbnailCacheSize _tmp10_; - ThumbnailCacheAsyncFetchJob* _tmp11_; - GdkPixbuf* _tmp12_; -#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp6_ = job; -#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp7_ = _tmp6_->source; -#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp8_ = job; -#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp9_ = _tmp8_->cache; -#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp10_ = _tmp9_->priv->size; -#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp11_ = job; -#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp12_ = _tmp11_->unscaled; -#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_replace (_tmp7_, _tmp10_, _tmp12_, &_inner_error_); -#line 423 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2487 "ThumbnailCache.c" - goto __catch249_g_error; - } - } - goto __finally249; - __catch249_g_error: - { - GError* err = NULL; - ThumbnailCacheAsyncFetchJob* _tmp13_; - GError* _tmp14_; - GError* _tmp15_; -#line 422 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - err = _inner_error_; -#line 422 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _inner_error_ = NULL; -#line 425 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp13_ = job; -#line 425 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp14_ = err; -#line 425 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp15_ = _g_error_copy0 (_tmp14_); -#line 425 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_error_free0 (_tmp13_->err); -#line 425 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp13_->err = _tmp15_; -#line 422 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_error_free0 (err); -#line 2514 "ThumbnailCache.c" - } - __finally249: -#line 422 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 422 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _background_job_unref0 (job); -#line 422 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 422 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_clear_error (&_inner_error_); -#line 422 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 2527 "ThumbnailCache.c" - } - } -#line 429 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp16_ = job; -#line 429 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp17_ = _tmp16_->unscaled; -#line 429 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_tmp17_ != NULL) { -#line 2536 "ThumbnailCache.c" - ThumbnailCacheAsyncFetchJob* _tmp18_; - gboolean _tmp19_; -#line 430 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp18_ = job; -#line 430 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp19_ = _tmp18_->fetched; -#line 430 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_tmp19_) { -#line 2545 "ThumbnailCache.c" - ThumbnailCacheAsyncFetchJob* _tmp20_; - ThumbnailCache* _tmp21_; - ThumbnailCacheAsyncFetchJob* _tmp22_; - const gchar* _tmp23_; - ThumbnailCacheAsyncFetchJob* _tmp24_; - GdkPixbuf* _tmp25_; - gint _tmp26_; -#line 432 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp20_ = job; -#line 432 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp21_ = _tmp20_->cache; -#line 432 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp22_ = job; -#line 432 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp23_ = _tmp22_->thumbnail_name; -#line 432 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp24_ = job; -#line 432 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp25_ = _tmp24_->unscaled; -#line 432 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_store_in_memory (_tmp21_, _tmp23_, _tmp25_); -#line 434 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp26_ = thumbnail_cache_cycle_async_fetched_thumbnails; -#line 434 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_cycle_async_fetched_thumbnails = _tmp26_ + 1; -#line 435 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_schedule_debug (); -#line 2573 "ThumbnailCache.c" - } else { - gint _tmp27_; -#line 437 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp27_ = thumbnail_cache_cycle_async_resized_thumbnails; -#line 437 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_cycle_async_resized_thumbnails = _tmp27_ + 1; -#line 438 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_schedule_debug (); -#line 2582 "ThumbnailCache.c" - } - } -#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp28_ = job; -#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp29_ = _tmp28_->callback; -#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp29__target = _tmp28_->callback_target; -#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp30_ = job; -#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp31_ = _tmp30_->scaled; -#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp32_ = job; -#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp33_ = _tmp32_->unscaled; -#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp34_ = job; -#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp35_ = _tmp34_->dim; -#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp36_ = job; -#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp37_ = _tmp36_->interp; -#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp38_ = job; -#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp39_ = _tmp38_->err; -#line 442 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp29_ (_tmp31_, _tmp33_, &_tmp35_, _tmp37_, _tmp39_, _tmp29__target); -#line 416 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _background_job_unref0 (job); -#line 2615 "ThumbnailCache.c" -} - - -static void -_thumbnail_cache_import_from_source (ThumbnailCache* self, - ThumbnailSource* source, - gboolean force, - GError** error) -{ - GFile* file = NULL; - GFile* _tmp0_; - LibraryPhoto* photo = NULL; - LibraryPhoto* _tmp1_; - GdkPixbuf* _tmp2_ = NULL; - LibraryPhoto* _tmp3_; - ThumbnailCacheSize _tmp4_; - Scaling _tmp5_ = {0}; - GdkPixbuf* _tmp6_; - GFile* _tmp7_; - GError * _inner_error_ = NULL; -#line 445 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_CACHE (self)); -#line 445 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (source)); -#line 447 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = thumbnail_cache_get_source_cached_file (self, source); -#line 447 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - file = _tmp0_; -#line 451 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (!force) { -#line 452 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_thumbnail_cache_exists (self, source)) { -#line 453 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (file); -#line 453 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 2652 "ThumbnailCache.c" - } - } else { -#line 456 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_remove (self, source); -#line 2657 "ThumbnailCache.c" - } -#line 459 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 459 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - photo = _tmp1_; -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = photo; -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = self->priv->size; -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - scaling_for_best_fit (thumbnail_cache_size_get_scale (_tmp4_), TRUE, &_tmp5_); -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp6_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp5_, &_inner_error_); -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = _tmp6_; -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (photo); -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (file); -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 2683 "ThumbnailCache.c" - } -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp7_ = file; -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_save_thumbnail (self, _tmp7_, _tmp2_, source, &_inner_error_); -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp2_); -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (photo); -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (file); -#line 460 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 2701 "ThumbnailCache.c" - } -#line 445 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp2_); -#line 445 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (photo); -#line 445 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (file); -#line 2709 "ThumbnailCache.c" -} - - -static void -_thumbnail_cache_import_thumbnail (ThumbnailCache* self, - ThumbnailSource* source, - GdkPixbuf* scaled, - gboolean force, - GError** error) -{ - Dimensions _tmp0_ = {0}; - ThumbnailCacheSize _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - GError * _inner_error_ = NULL; -#line 466 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_CACHE (self)); -#line 466 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (source)); -#line 466 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail ((scaled == NULL) || GDK_IS_PIXBUF (scaled)); -#line 468 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _vala_assert (scaled != NULL, "scaled != null"); -#line 469 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - dimensions_for_pixbuf (scaled, &_tmp0_); -#line 469 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = self->priv->size; -#line 469 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _vala_assert (dimensions_approx_scaled (&_tmp0_, thumbnail_cache_size_get_scale (_tmp1_), 1), "Dimensions.for_pixbuf(scaled).approx_scaled(size.get_scale())"); -#line 473 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (!force) { -#line 474 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_thumbnail_cache_exists (self, source)) { -#line 475 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 2745 "ThumbnailCache.c" - } - } else { -#line 478 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_remove (self, source); -#line 2750 "ThumbnailCache.c" - } -#line 481 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = thumbnail_cache_get_source_cached_file (self, source); -#line 481 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = _tmp2_; -#line 481 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_save_thumbnail (self, _tmp3_, scaled, source, &_inner_error_); -#line 481 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp3_); -#line 481 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 481 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 481 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 2766 "ThumbnailCache.c" - } -} - - -static void -_thumbnail_cache_duplicate (ThumbnailCache* self, - ThumbnailSource* src_source, - ThumbnailSource* dest_source) -{ - GFile* src_file = NULL; - GFile* _tmp0_; - GFile* dest_file = NULL; - gchar* _tmp1_; - gchar* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - GError * _inner_error_ = NULL; -#line 488 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_CACHE (self)); -#line 488 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (src_source)); -#line 488 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (dest_source)); -#line 489 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = thumbnail_cache_get_source_cached_file (self, src_source); -#line 489 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - src_file = _tmp0_; -#line 490 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = thumbnail_source_get_representative_id (dest_source); -#line 490 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = _tmp1_; -#line 490 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = thumbnail_cache_get_cached_file (self, _tmp2_, thumbnail_source_get_preferred_thumbnail_format (src_source)); -#line 490 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = _tmp3_; -#line 490 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (_tmp2_); -#line 490 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - dest_file = _tmp4_; -#line 2806 "ThumbnailCache.c" - { -#line 494 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_file_copy (src_file, dest_file, G_FILE_COPY_ALL_METADATA | G_FILE_COPY_OVERWRITE, NULL, NULL, NULL, &_inner_error_); -#line 494 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2812 "ThumbnailCache.c" - goto __catch250_g_error; - } - } - goto __finally250; - __catch250_g_error: - { - GError* err = NULL; - GError* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - err = _inner_error_; -#line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _inner_error_ = NULL; -#line 496 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = err; -#line 496 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp6_ = _tmp5_->message; -#line 496 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp7_ = g_strdup_printf ("%s", _tmp6_); -#line 496 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp8_ = _tmp7_; -#line 496 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - app_window_panic (_tmp8_); -#line 496 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (_tmp8_); -#line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_error_free0 (err); -#line 2842 "ThumbnailCache.c" - } - __finally250: -#line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (dest_file); -#line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (src_file); -#line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_clear_error (&_inner_error_); -#line 493 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 2857 "ThumbnailCache.c" - } -#line 488 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (dest_file); -#line 488 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (src_file); -#line 2863 "ThumbnailCache.c" -} - - -static void -_thumbnail_cache_replace (ThumbnailCache* self, - ThumbnailSource* source, - GdkPixbuf* original, - GError** error) -{ - GFile* file = NULL; - GFile* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - GdkPixbuf* scaled = NULL; - ThumbnailCacheSize _tmp3_; - GdkInterpType _tmp4_; - GdkPixbuf* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - GError * _inner_error_ = NULL; -#line 502 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_CACHE (self)); -#line 502 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (source)); -#line 502 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (GDK_IS_PIXBUF (original)); -#line 503 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = thumbnail_cache_get_source_cached_file (self, source); -#line 503 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - file = _tmp0_; -#line 506 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)); -#line 506 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = _tmp1_; -#line 506 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_remove_from_memory (self, _tmp2_); -#line 506 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (_tmp2_); -#line 509 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = self->priv->size; -#line 509 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = self->priv->interp; -#line 509 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = scale_pixbuf (original, thumbnail_cache_size_get_scale (_tmp3_), _tmp4_, TRUE); -#line 509 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - scaled = _tmp5_; -#line 512 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_save_thumbnail (self, file, scaled, source, &_inner_error_); -#line 512 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 512 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 512 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (scaled); -#line 512 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (file); -#line 512 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 2922 "ThumbnailCache.c" - } -#line 518 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp6_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)); -#line 518 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp7_ = _tmp6_; -#line 518 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_store_in_memory (self, _tmp7_, scaled); -#line 518 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (_tmp7_); -#line 502 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (scaled); -#line 502 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (file); -#line 2936 "ThumbnailCache.c" -} - - -static void -_thumbnail_cache_remove (ThumbnailCache* self, - ThumbnailSource* source) -{ - GFile* file = NULL; - GFile* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - GError * _inner_error_ = NULL; -#line 521 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_CACHE (self)); -#line 521 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (source)); -#line 522 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = thumbnail_cache_get_source_cached_file (self, source); -#line 522 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - file = _tmp0_; -#line 525 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)); -#line 525 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = _tmp1_; -#line 525 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_remove_from_memory (self, _tmp2_); -#line 525 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (_tmp2_); -#line 2965 "ThumbnailCache.c" - { -#line 529 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_file_delete (file, NULL, &_inner_error_); -#line 529 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2971 "ThumbnailCache.c" - goto __catch251_g_error; - } - } - goto __finally251; - __catch251_g_error: - { - GError* err = NULL; -#line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - err = _inner_error_; -#line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _inner_error_ = NULL; -#line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_error_free0 (err); -#line 2985 "ThumbnailCache.c" - } - __finally251: -#line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (file); -#line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_clear_error (&_inner_error_); -#line 528 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 2998 "ThumbnailCache.c" - } -#line 521 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (file); -#line 3002 "ThumbnailCache.c" -} - - -static gboolean -_thumbnail_cache_exists (ThumbnailCache* self, - ThumbnailSource* source) -{ - gboolean result = FALSE; - GFile* _tmp0_; - GFile* _tmp1_; - gboolean _tmp2_; -#line 535 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (IS_THUMBNAIL_CACHE (self), FALSE); -#line 535 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), FALSE); -#line 536 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = thumbnail_cache_get_source_cached_file (self, source); -#line 536 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = _tmp0_; -#line 536 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = g_file_query_exists (_tmp1_, NULL); -#line 536 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp1_); -#line 536 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = _tmp2_; -#line 536 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 3030 "ThumbnailCache.c" -} - - -static GdkPixbuf* -thumbnail_cache_read_pixbuf (ThumbnailCache* self, - const gchar* thumbnail_name, - PhotoFileFormat format, - GError** error) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_ = NULL; - GFile* _tmp1_; - GFile* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - PhotoFileReader* _tmp5_; - PhotoFileReader* _tmp6_; - GdkPixbuf* _tmp7_; - GdkPixbuf* _tmp8_; - GdkPixbuf* _tmp9_; - GError * _inner_error_ = NULL; -#line 540 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (IS_THUMBNAIL_CACHE (self), NULL); -#line 540 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (thumbnail_name != NULL, NULL); -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = thumbnail_cache_get_cached_file (self, thumbnail_name, format); -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = _tmp1_; -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = g_file_get_path (_tmp2_); -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = _tmp3_; -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = photo_file_format_create_reader (format, _tmp4_); -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp6_ = _tmp5_; -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp7_ = photo_file_reader_unscaled_read (_tmp6_, &_inner_error_); -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp8_ = _tmp7_; -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _photo_file_adapter_unref0 (_tmp6_); -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (_tmp4_); -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp2_); -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = _tmp8_; -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return NULL; -#line 3086 "ThumbnailCache.c" - } -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp9_ = _tmp0_; -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = NULL; -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = _tmp9_; -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp0_); -#line 541 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 3098 "ThumbnailCache.c" -} - - -static GFile* -thumbnail_cache_get_source_cached_file (ThumbnailCache* self, - ThumbnailSource* source) -{ - GFile* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; -#line 545 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (IS_THUMBNAIL_CACHE (self), NULL); -#line 545 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), NULL); -#line 546 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = thumbnail_source_get_representative_id (source); -#line 546 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = _tmp0_; -#line 546 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = thumbnail_cache_get_cached_file (self, _tmp1_, thumbnail_source_get_preferred_thumbnail_format (source)); -#line 546 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = _tmp2_; -#line 546 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (_tmp1_); -#line 546 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = _tmp3_; -#line 546 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 3129 "ThumbnailCache.c" -} - - -static GFile* -thumbnail_cache_get_cached_file (ThumbnailCache* self, - const gchar* thumbnail_name, - PhotoFileFormat thumbnail_format) -{ - GFile* result = NULL; - GFile* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; -#line 550 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (IS_THUMBNAIL_CACHE (self), NULL); -#line 550 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (thumbnail_name != NULL, NULL); -#line 551 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = self->priv->cache_dir; -#line 551 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = photo_file_format_get_default_basename (thumbnail_format, thumbnail_name); -#line 551 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = _tmp1_; -#line 551 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = g_file_get_child (_tmp0_, _tmp2_); -#line 551 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = _tmp3_; -#line 551 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (_tmp2_); -#line 551 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = _tmp4_; -#line 551 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 3164 "ThumbnailCache.c" -} - - -static GdkPixbuf* -thumbnail_cache_fetch_from_memory (ThumbnailCache* self, - const gchar* thumbnail_name) -{ - GdkPixbuf* result = NULL; - ThumbnailCacheImageData* data = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - GdkPixbuf* _tmp2_ = NULL; - ThumbnailCacheImageData* _tmp3_; - GdkPixbuf* _tmp6_; -#line 554 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (IS_THUMBNAIL_CACHE (self), NULL); -#line 554 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (thumbnail_name != NULL, NULL); -#line 555 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = self->priv->cache_map; -#line 555 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), thumbnail_name); -#line 555 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - data = (ThumbnailCacheImageData*) _tmp1_; -#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = data; -#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_tmp3_ != NULL) { -#line 3193 "ThumbnailCache.c" - ThumbnailCacheImageData* _tmp4_; - GdkPixbuf* _tmp5_; -#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = data; -#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = _tmp4_->pixbuf; -#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = _tmp5_; -#line 3202 "ThumbnailCache.c" - } else { -#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = NULL; -#line 3206 "ThumbnailCache.c" - } -#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp6_ = _g_object_ref0 (_tmp2_); -#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = _tmp6_; -#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_image_data_unref0 (data); -#line 557 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 3216 "ThumbnailCache.c" -} - - -static void -thumbnail_cache_store_in_memory (ThumbnailCache* self, - const gchar* thumbnail_name, - GdkPixbuf* thumbnail) -{ - gulong _tmp0_; - ThumbnailCacheImageData* data = NULL; - ThumbnailCacheImageData* _tmp1_; - ThumbnailCacheImageData* _tmp2_; - gulong _tmp3_; - GeeHashMap* _tmp4_; - ThumbnailCacheImageData* _tmp5_; - GeeArrayList* _tmp6_; - gulong _tmp7_; - ThumbnailCacheImageData* _tmp8_; - gulong _tmp9_; -#line 560 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_CACHE (self)); -#line 560 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (thumbnail_name != NULL); -#line 560 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (GDK_IS_PIXBUF (thumbnail)); -#line 561 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = self->priv->max_cached_bytes; -#line 561 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_tmp0_ <= ((gulong) 0)) { -#line 562 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 3248 "ThumbnailCache.c" - } -#line 564 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_remove_from_memory (self, thumbnail_name); -#line 566 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = thumbnail_cache_image_data_new (thumbnail); -#line 566 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - data = _tmp1_; -#line 569 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = data; -#line 569 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = _tmp2_->bytes; -#line 569 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_tmp3_ > ((gulong) THUMBNAIL_CACHE_MAX_INMEMORY_DATA_SIZE)) { -#line 570 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_debug ("ThumbnailCache.vala:570: Persistent thumbnail [%s] too large to cache " \ -"in memory", thumbnail_name); -#line 572 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_image_data_unref0 (data); -#line 572 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 3268 "ThumbnailCache.c" - } -#line 575 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = self->priv->cache_map; -#line 575 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = data; -#line 575 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), thumbnail_name, _tmp5_); -#line 576 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp6_ = self->priv->cache_lru; -#line 576 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - gee_abstract_list_insert (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0, thumbnail_name); -#line 578 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp7_ = self->priv->cached_bytes; -#line 578 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp8_ = data; -#line 578 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp9_ = _tmp8_->bytes; -#line 578 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->priv->cached_bytes = _tmp7_ + _tmp9_; -#line 581 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - while (TRUE) { -#line 3290 "ThumbnailCache.c" - gulong _tmp10_; - gulong _tmp11_; - GeeArrayList* _tmp12_; - gint _tmp13_; - gint _tmp14_; - gint index = 0; - GeeArrayList* _tmp15_; - gint _tmp16_; - gint _tmp17_; - gchar* victim_name = NULL; - GeeArrayList* _tmp18_; - gint _tmp19_; - gpointer _tmp20_; - GeeArrayList* _tmp21_; - gint _tmp22_; - gpointer _tmp23_; - gchar* _tmp24_; - GeeHashMap* _tmp25_; - const gchar* _tmp26_; - gpointer _tmp27_; - gint _tmp28_; - gboolean removed = FALSE; - GeeHashMap* _tmp29_; - const gchar* _tmp30_; - gboolean _tmp31_; - gboolean _tmp32_; - ThumbnailCacheImageData* _tmp33_; - gulong _tmp34_; - gulong _tmp35_; - gulong _tmp36_; - ThumbnailCacheImageData* _tmp37_; - gulong _tmp38_; -#line 581 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp10_ = self->priv->cached_bytes; -#line 581 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp11_ = self->priv->max_cached_bytes; -#line 581 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (!(_tmp10_ > _tmp11_)) { -#line 581 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - break; -#line 3331 "ThumbnailCache.c" - } -#line 582 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp12_ = self->priv->cache_lru; -#line 582 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp13_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 582 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp14_ = _tmp13_; -#line 582 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _vala_assert (_tmp14_ > 0, "cache_lru.size > 0"); -#line 583 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp15_ = self->priv->cache_lru; -#line 583 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp16_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 583 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp17_ = _tmp16_; -#line 583 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - index = _tmp17_ - 1; -#line 585 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp18_ = self->priv->cache_lru; -#line 585 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp19_ = index; -#line 585 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp20_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp19_); -#line 585 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - victim_name = (gchar*) _tmp20_; -#line 586 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp21_ = self->priv->cache_lru; -#line 586 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp22_ = index; -#line 586 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp23_ = gee_abstract_list_remove_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp22_); -#line 586 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp24_ = (gchar*) _tmp23_; -#line 586 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (_tmp24_); -#line 588 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp25_ = self->priv->cache_map; -#line 588 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp26_ = victim_name; -#line 588 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp27_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp26_); -#line 588 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_image_data_unref0 (data); -#line 588 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - data = (ThumbnailCacheImageData*) _tmp27_; -#line 590 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp28_ = thumbnail_cache_cycle_overflow_thumbnails; -#line 590 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_cycle_overflow_thumbnails = _tmp28_ + 1; -#line 591 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_schedule_debug (); -#line 593 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp29_ = self->priv->cache_map; -#line 593 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp30_ = victim_name; -#line 593 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp31_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp30_, NULL); -#line 593 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - removed = _tmp31_; -#line 594 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp32_ = removed; -#line 594 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _vala_assert (_tmp32_, "removed"); -#line 596 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp33_ = data; -#line 596 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp34_ = _tmp33_->bytes; -#line 596 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp35_ = self->priv->cached_bytes; -#line 596 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _vala_assert (_tmp34_ <= _tmp35_, "data.bytes <= cached_bytes"); -#line 597 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp36_ = self->priv->cached_bytes; -#line 597 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp37_ = data; -#line 597 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp38_ = _tmp37_->bytes; -#line 597 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->priv->cached_bytes = _tmp36_ - _tmp38_; -#line 581 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (victim_name); -#line 3413 "ThumbnailCache.c" - } -#line 560 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_image_data_unref0 (data); -#line 3417 "ThumbnailCache.c" -} - - -static gboolean -thumbnail_cache_remove_from_memory (ThumbnailCache* self, - const gchar* thumbnail_name) -{ - gboolean result = FALSE; - ThumbnailCacheImageData* data = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - ThumbnailCacheImageData* _tmp2_; - gulong _tmp3_; - ThumbnailCacheImageData* _tmp4_; - gulong _tmp5_; - gulong _tmp6_; - ThumbnailCacheImageData* _tmp7_; - gulong _tmp8_; - gboolean removed = FALSE; - GeeHashMap* _tmp9_; - gboolean _tmp10_; - gboolean _tmp11_; - GeeArrayList* _tmp12_; - gboolean _tmp13_; -#line 601 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (IS_THUMBNAIL_CACHE (self), FALSE); -#line 601 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (thumbnail_name != NULL, FALSE); -#line 602 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = self->priv->cache_map; -#line 602 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), thumbnail_name); -#line 602 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - data = (ThumbnailCacheImageData*) _tmp1_; -#line 603 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = data; -#line 603 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_tmp2_ == NULL) { -#line 604 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = FALSE; -#line 604 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_image_data_unref0 (data); -#line 604 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 3462 "ThumbnailCache.c" - } -#line 606 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = self->priv->cached_bytes; -#line 606 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = data; -#line 606 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = _tmp4_->bytes; -#line 606 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _vala_assert (_tmp3_ >= _tmp5_, "cached_bytes >= data.bytes"); -#line 607 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp6_ = self->priv->cached_bytes; -#line 607 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp7_ = data; -#line 607 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp8_ = _tmp7_->bytes; -#line 607 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->priv->cached_bytes = _tmp6_ - _tmp8_; -#line 610 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp9_ = self->priv->cache_map; -#line 610 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp10_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), thumbnail_name, NULL); -#line 610 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - removed = _tmp10_; -#line 611 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp11_ = removed; -#line 611 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _vala_assert (_tmp11_, "removed"); -#line 614 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp12_ = self->priv->cache_lru; -#line 614 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - removed = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), thumbnail_name); -#line 615 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp13_ = removed; -#line 615 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _vala_assert (_tmp13_, "removed"); -#line 617 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = TRUE; -#line 617 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _thumbnail_cache_image_data_unref0 (data); -#line 617 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 3504 "ThumbnailCache.c" -} - - -static void -thumbnail_cache_save_thumbnail (ThumbnailCache* self, - GFile* file, - GdkPixbuf* pixbuf, - ThumbnailSource* source, - GError** error) -{ - PhotoFileWriter* _tmp0_ = NULL; - gchar* _tmp1_; - gchar* _tmp2_; - PhotoFileWriter* _tmp3_; - PhotoFileWriter* _tmp4_; - GError * _inner_error_ = NULL; -#line 620 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_CACHE (self)); -#line 620 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 620 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 620 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (source)); -#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = g_file_get_path (file); -#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = _tmp1_; -#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = photo_file_format_create_writer (thumbnail_source_get_preferred_thumbnail_format (source), _tmp2_, &_inner_error_); -#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = _tmp3_; -#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (_tmp2_); -#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = _tmp4_; -#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 3547 "ThumbnailCache.c" - } -#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - photo_file_writer_write (_tmp0_, pixbuf, THUMBNAIL_CACHE_DEFAULT_QUALITY, &_inner_error_); -#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _photo_file_adapter_unref0 (_tmp0_); -#line 621 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 3559 "ThumbnailCache.c" - } -#line 620 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _photo_file_adapter_unref0 (_tmp0_); -#line 3563 "ThumbnailCache.c" -} - - -static ThumbnailCacheImageData* -thumbnail_cache_image_data_construct (GType object_type, - GdkPixbuf* pixbuf) -{ - ThumbnailCacheImageData* self = NULL; - GdkPixbuf* _tmp0_; -#line 63 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL); -#line 63 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self = (ThumbnailCacheImageData*) g_type_create_instance (object_type); -#line 64 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = _g_object_ref0 (pixbuf); -#line 64 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->pixbuf); -#line 64 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->pixbuf = _tmp0_; -#line 68 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->bytes = ((gulong) gdk_pixbuf_get_rowstride (pixbuf)) * ((gulong) gdk_pixbuf_get_height (pixbuf)); -#line 63 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return self; -#line 3587 "ThumbnailCache.c" -} - - -static ThumbnailCacheImageData* -thumbnail_cache_image_data_new (GdkPixbuf* pixbuf) -{ -#line 63 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return thumbnail_cache_image_data_construct (THUMBNAIL_CACHE_TYPE_IMAGE_DATA, pixbuf); -#line 3596 "ThumbnailCache.c" -} - - -static void -thumbnail_cache_value_image_data_init (GValue* value) -{ -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - value->data[0].v_pointer = NULL; -#line 3605 "ThumbnailCache.c" -} - - -static void -thumbnail_cache_value_image_data_free_value (GValue* value) -{ -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (value->data[0].v_pointer) { -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_image_data_unref (value->data[0].v_pointer); -#line 3616 "ThumbnailCache.c" - } -} - - -static void -thumbnail_cache_value_image_data_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (src_value->data[0].v_pointer) { -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - dest_value->data[0].v_pointer = thumbnail_cache_image_data_ref (src_value->data[0].v_pointer); -#line 3629 "ThumbnailCache.c" - } else { -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - dest_value->data[0].v_pointer = NULL; -#line 3633 "ThumbnailCache.c" - } -} - - -static gpointer -thumbnail_cache_value_image_data_peek_pointer (const GValue* value) -{ -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return value->data[0].v_pointer; -#line 3643 "ThumbnailCache.c" -} - - -static gchar* -thumbnail_cache_value_image_data_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (collect_values[0].v_pointer) { -#line 3655 "ThumbnailCache.c" - ThumbnailCacheImageData * object; - object = collect_values[0].v_pointer; -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (object->parent_instance.g_class == NULL) { -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3662 "ThumbnailCache.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3666 "ThumbnailCache.c" - } -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - value->data[0].v_pointer = thumbnail_cache_image_data_ref (object); -#line 3670 "ThumbnailCache.c" - } else { -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - value->data[0].v_pointer = NULL; -#line 3674 "ThumbnailCache.c" - } -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return NULL; -#line 3678 "ThumbnailCache.c" -} - - -static gchar* -thumbnail_cache_value_image_data_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - ThumbnailCacheImageData ** object_p; - object_p = collect_values[0].v_pointer; -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (!object_p) { -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 3694 "ThumbnailCache.c" - } -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (!value->data[0].v_pointer) { -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - *object_p = NULL; -#line 3700 "ThumbnailCache.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - *object_p = value->data[0].v_pointer; -#line 3704 "ThumbnailCache.c" - } else { -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - *object_p = thumbnail_cache_image_data_ref (value->data[0].v_pointer); -#line 3708 "ThumbnailCache.c" - } -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return NULL; -#line 3712 "ThumbnailCache.c" -} - - -static GParamSpec* -thumbnail_cache_param_spec_image_data (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ThumbnailCacheParamSpecImageData* spec; -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (g_type_is_a (object_type, THUMBNAIL_CACHE_TYPE_IMAGE_DATA), NULL); -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return G_PARAM_SPEC (spec); -#line 3732 "ThumbnailCache.c" -} - - -static gpointer -thumbnail_cache_value_get_image_data (const GValue* value) -{ -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, THUMBNAIL_CACHE_TYPE_IMAGE_DATA), NULL); -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return value->data[0].v_pointer; -#line 3743 "ThumbnailCache.c" -} - - -static void -thumbnail_cache_value_set_image_data (GValue* value, - gpointer v_object) -{ - ThumbnailCacheImageData * old; -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, THUMBNAIL_CACHE_TYPE_IMAGE_DATA)); -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - old = value->data[0].v_pointer; -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (v_object) { -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, THUMBNAIL_CACHE_TYPE_IMAGE_DATA)); -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - value->data[0].v_pointer = v_object; -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_image_data_ref (value->data[0].v_pointer); -#line 3766 "ThumbnailCache.c" - } else { -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - value->data[0].v_pointer = NULL; -#line 3770 "ThumbnailCache.c" - } -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (old) { -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_image_data_unref (old); -#line 3776 "ThumbnailCache.c" - } -} - - -static void -thumbnail_cache_value_take_image_data (GValue* value, - gpointer v_object) -{ - ThumbnailCacheImageData * old; -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, THUMBNAIL_CACHE_TYPE_IMAGE_DATA)); -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - old = value->data[0].v_pointer; -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (v_object) { -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, THUMBNAIL_CACHE_TYPE_IMAGE_DATA)); -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - value->data[0].v_pointer = v_object; -#line 3798 "ThumbnailCache.c" - } else { -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - value->data[0].v_pointer = NULL; -#line 3802 "ThumbnailCache.c" - } -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (old) { -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_image_data_unref (old); -#line 3808 "ThumbnailCache.c" - } -} - - -static void -thumbnail_cache_image_data_class_init (ThumbnailCacheImageDataClass * klass) -{ -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_image_data_parent_class = g_type_class_peek_parent (klass); -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - ((ThumbnailCacheImageDataClass *) klass)->finalize = thumbnail_cache_image_data_finalize; -#line 3820 "ThumbnailCache.c" -} - - -static void -thumbnail_cache_image_data_instance_init (ThumbnailCacheImageData * self) -{ -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->ref_count = 1; -#line 3829 "ThumbnailCache.c" -} - - -static void -thumbnail_cache_image_data_finalize (ThumbnailCacheImageData * obj) -{ - ThumbnailCacheImageData * self; - gulong _tmp0_; - gulong _tmp1_; -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, THUMBNAIL_CACHE_TYPE_IMAGE_DATA, ThumbnailCacheImageData); -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_signal_handlers_destroy (self); -#line 72 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = thumbnail_cache_cycle_dropped_bytes; -#line 72 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = self->bytes; -#line 72 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_cycle_dropped_bytes = _tmp0_ + _tmp1_; -#line 73 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_schedule_debug (); -#line 60 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->pixbuf); -#line 3853 "ThumbnailCache.c" -} - - -static GType -thumbnail_cache_image_data_get_type (void) -{ - static volatile gsize thumbnail_cache_image_data_type_id__volatile = 0; - if (g_once_init_enter (&thumbnail_cache_image_data_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { thumbnail_cache_value_image_data_init, thumbnail_cache_value_image_data_free_value, thumbnail_cache_value_image_data_copy_value, thumbnail_cache_value_image_data_peek_pointer, "p", thumbnail_cache_value_image_data_collect_value, "p", thumbnail_cache_value_image_data_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (ThumbnailCacheImageDataClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) thumbnail_cache_image_data_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ThumbnailCacheImageData), 0, (GInstanceInitFunc) thumbnail_cache_image_data_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType thumbnail_cache_image_data_type_id; - thumbnail_cache_image_data_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ThumbnailCacheImageData", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&thumbnail_cache_image_data_type_id__volatile, thumbnail_cache_image_data_type_id); - } - return thumbnail_cache_image_data_type_id__volatile; -} - - -static gpointer -thumbnail_cache_image_data_ref (gpointer instance) -{ - ThumbnailCacheImageData * self; - self = instance; -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_atomic_int_inc (&self->ref_count); -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return instance; -#line 3882 "ThumbnailCache.c" -} - - -static void -thumbnail_cache_image_data_unref (gpointer instance) -{ - ThumbnailCacheImageData * self; - self = instance; -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - THUMBNAIL_CACHE_IMAGE_DATA_GET_CLASS (self)->finalize (self); -#line 59 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 3897 "ThumbnailCache.c" - } -} - - -static void -_thumbnail_cache_async_fetch_completion_callback_completion_callback (BackgroundJob* job, - gpointer self) -{ -#line 94 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_async_fetch_completion_callback (job); -#line 3908 "ThumbnailCache.c" -} - - -static ThumbnailCacheAsyncFetchJob* -thumbnail_cache_async_fetch_job_construct (GType object_type, - ThumbnailCache* cache, - const gchar* thumbnail_name, - ThumbnailSource* source, - GdkPixbuf* prefetched, - Dimensions* dim, - GdkInterpType interp, - ThumbnailCacheAsyncFetchCallback callback, - void* callback_target, - GCancellable* cancellable) -{ - ThumbnailCacheAsyncFetchJob* self = NULL; - ThumbnailCache* _tmp0_; - gchar* _tmp1_; - ThumbnailSource* _tmp2_; - GdkPixbuf* _tmp3_; - Dimensions _tmp4_; -#line 91 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (IS_THUMBNAIL_CACHE (cache), NULL); -#line 91 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (thumbnail_name != NULL, NULL); -#line 91 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), NULL); -#line 91 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail ((prefetched == NULL) || GDK_IS_PIXBUF (prefetched), NULL); -#line 91 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail (dim != NULL, NULL); -#line 91 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_val_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable), NULL); -#line 94 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self = (ThumbnailCacheAsyncFetchJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (cache, G_TYPE_OBJECT, GObject), _thumbnail_cache_async_fetch_completion_callback_completion_callback, NULL, cancellable, NULL, NULL, NULL); -#line 96 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = _g_object_ref0 (cache); -#line 96 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->cache); -#line 96 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->cache = _tmp0_; -#line 97 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = g_strdup (thumbnail_name); -#line 97 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (self->thumbnail_name); -#line 97 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->thumbnail_name = _tmp1_; -#line 98 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = _g_object_ref0 (source); -#line 98 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->source); -#line 98 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->source = _tmp2_; -#line 99 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->source_format = thumbnail_source_get_preferred_thumbnail_format (source); -#line 100 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = _g_object_ref0 (prefetched); -#line 100 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->unscaled); -#line 100 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->unscaled = _tmp3_; -#line 101 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = *dim; -#line 101 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->dim = _tmp4_; -#line 102 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->interp = interp; -#line 103 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->callback = callback; -#line 103 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->callback_target = callback_target; -#line 91 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return self; -#line 3982 "ThumbnailCache.c" -} - - -static ThumbnailCacheAsyncFetchJob* -thumbnail_cache_async_fetch_job_new (ThumbnailCache* cache, - const gchar* thumbnail_name, - ThumbnailSource* source, - GdkPixbuf* prefetched, - Dimensions* dim, - GdkInterpType interp, - ThumbnailCacheAsyncFetchCallback callback, - void* callback_target, - GCancellable* cancellable) -{ -#line 91 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return thumbnail_cache_async_fetch_job_construct (THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB, cache, thumbnail_name, source, prefetched, dim, interp, callback, callback_target, cancellable); -#line 3999 "ThumbnailCache.c" -} - - -static BackgroundJobJobPriority -thumbnail_cache_async_fetch_job_real_get_priority (BackgroundJob* base) -{ - ThumbnailCacheAsyncFetchJob * self; - BackgroundJobJobPriority result = 0; - GdkInterpType _tmp0_; -#line 106 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB, ThumbnailCacheAsyncFetchJob); -#line 109 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = self->interp; -#line 109 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - switch (_tmp0_) { -#line 109 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - case GDK_INTERP_NEAREST: -#line 109 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - case GDK_INTERP_TILES: -#line 4019 "ThumbnailCache.c" - { -#line 112 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = BACKGROUND_JOB_JOB_PRIORITY_HIGH; -#line 112 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 4025 "ThumbnailCache.c" - } - default: -#line 109 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - case GDK_INTERP_BILINEAR: -#line 109 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - case GDK_INTERP_HYPER: -#line 4032 "ThumbnailCache.c" - { -#line 117 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - result = BACKGROUND_JOB_JOB_PRIORITY_NORMAL; -#line 117 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return result; -#line 4038 "ThumbnailCache.c" - } - } -} - - -static void -thumbnail_cache_async_fetch_job_real_execute (BackgroundJob* base) -{ - ThumbnailCacheAsyncFetchJob * self; - GError * _inner_error_ = NULL; -#line 121 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB, ThumbnailCacheAsyncFetchJob); -#line 4051 "ThumbnailCache.c" - { - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp7_ = NULL; - GdkPixbuf* _tmp14_; -#line 124 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = self->unscaled; -#line 124 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_tmp0_ == NULL) { -#line 4060 "ThumbnailCache.c" - GdkPixbuf* _tmp1_ = NULL; - ThumbnailCache* _tmp2_; - const gchar* _tmp3_; - PhotoFileFormat _tmp4_; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; -#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = self->cache; -#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = self->thumbnail_name; -#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = self->source_format; -#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = thumbnail_cache_read_pixbuf (_tmp2_, _tmp3_, _tmp4_, &_inner_error_); -#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = _tmp5_; -#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4079 "ThumbnailCache.c" - goto __catch252_g_error; - } -#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp6_ = _tmp1_; -#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = NULL; -#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->unscaled); -#line 125 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->unscaled = _tmp6_; -#line 126 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->fetched = TRUE; -#line 124 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp1_); -#line 4094 "ThumbnailCache.c" - } -#line 129 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (background_job_is_cancelled (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BACKGROUND_JOB, BackgroundJob))) { -#line 130 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 4100 "ThumbnailCache.c" - } -#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (dimensions_has_area (&self->dim)) { -#line 4104 "ThumbnailCache.c" - GdkPixbuf* _tmp8_; - Dimensions _tmp9_; - GdkInterpType _tmp10_; - GdkPixbuf* _tmp11_; -#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp8_ = self->unscaled; -#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp9_ = self->dim; -#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp10_ = self->interp; -#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp11_ = resize_pixbuf (_tmp8_, &_tmp9_, _tmp10_); -#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp7_); -#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp7_ = _tmp11_; -#line 4121 "ThumbnailCache.c" - } else { - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; -#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp12_ = self->unscaled; -#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp13_ = _g_object_ref0 (_tmp12_); -#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp7_); -#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp7_ = _tmp13_; -#line 4133 "ThumbnailCache.c" - } -#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp14_ = _g_object_ref0 (_tmp7_); -#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->scaled); -#line 133 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->scaled = _tmp14_; -#line 122 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp7_); -#line 4143 "ThumbnailCache.c" - } - goto __finally252; - __catch252_g_error: - { - GError* err = NULL; - GError* _tmp15_; -#line 122 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - err = _inner_error_; -#line 122 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _inner_error_ = NULL; -#line 135 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp15_ = err; -#line 135 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_tmp15_->domain == G_FILE_ERROR) { -#line 4158 "ThumbnailCache.c" - { -#line 137 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_async_fetch_job_generate_thumbnail (self, &_inner_error_); -#line 137 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4164 "ThumbnailCache.c" - goto __catch253_g_error; - } - } - goto __finally253; - __catch253_g_error: - { - GError* generr = NULL; - GError* _tmp16_; - GError* _tmp17_; -#line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - generr = _inner_error_; -#line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _inner_error_ = NULL; -#line 140 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp16_ = generr; -#line 140 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp17_ = _g_error_copy0 (_tmp16_); -#line 140 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_error_free0 (err); -#line 140 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - err = _tmp17_; -#line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_error_free0 (generr); -#line 4188 "ThumbnailCache.c" - } - __finally253: -#line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_error_free0 (err); -#line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_error_free0 (err); -#line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_clear_error (&_inner_error_); -#line 136 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 4203 "ThumbnailCache.c" - } - } else { - GError* _tmp18_; - GError* _tmp19_; -#line 144 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp18_ = err; -#line 144 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp19_ = _g_error_copy0 (_tmp18_); -#line 144 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_error_free0 (self->err); -#line 144 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->err = _tmp19_; -#line 4216 "ThumbnailCache.c" - } -#line 122 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_error_free0 (err); -#line 4220 "ThumbnailCache.c" - } - __finally252: -#line 122 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 122 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 122 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_clear_error (&_inner_error_); -#line 122 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 4231 "ThumbnailCache.c" - } -} - - -static void -thumbnail_cache_async_fetch_job_generate_thumbnail (ThumbnailCacheAsyncFetchJob* self, - GError** error) -{ - Photo* photo = NULL; - ThumbnailSource* _tmp0_; - Photo* _tmp1_; - Photo* _tmp2_; - GdkPixbuf* _tmp19_; - GError * _inner_error_ = NULL; -#line 149 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_return_if_fail (THUMBNAIL_CACHE_IS_ASYNC_FETCH_JOB (self)); -#line 150 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = self->source; -#line 150 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_PHOTO) ? ((Photo*) _tmp0_) : NULL); -#line 150 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - photo = _tmp1_; -#line 151 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp2_ = photo; -#line 151 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_tmp2_ != NULL) { -#line 4258 "ThumbnailCache.c" - GdkPixbuf* _tmp3_ = NULL; - Photo* _tmp4_; - Dimensions _tmp5_; - gint _tmp6_; - Scaling _tmp7_ = {0}; - GdkPixbuf* _tmp8_; - GdkPixbuf* _tmp9_; -#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp4_ = photo; -#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp5_ = self->dim; -#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp6_ = _tmp5_.width; -#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - scaling_for_best_fit (_tmp6_, TRUE, &_tmp7_); -#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp8_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp7_, &_inner_error_); -#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = _tmp8_; -#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (photo); -#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 4286 "ThumbnailCache.c" - } -#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp9_ = _tmp3_; -#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp3_ = NULL; -#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->unscaled); -#line 152 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->unscaled = _tmp9_; -#line 151 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp3_); -#line 4298 "ThumbnailCache.c" - } else { - Video* video = NULL; - ThumbnailSource* _tmp10_; - Video* _tmp11_; - Video* _tmp12_; -#line 154 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp10_ = self->source; -#line 154 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, TYPE_VIDEO) ? ((Video*) _tmp10_) : NULL); -#line 154 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - video = _tmp11_; -#line 155 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp12_ = video; -#line 155 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_tmp12_ != NULL) { -#line 4314 "ThumbnailCache.c" - GdkPixbuf* _tmp13_ = NULL; - Video* _tmp14_; - Dimensions _tmp15_; - gint _tmp16_; - GdkPixbuf* _tmp17_; - GdkPixbuf* _tmp18_; -#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp14_ = video; -#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp15_ = self->dim; -#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp16_ = _tmp15_.width; -#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp17_ = thumbnail_source_create_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), _tmp16_, &_inner_error_); -#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp13_ = _tmp17_; -#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_propagate_error (error, _inner_error_); -#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (video); -#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (photo); -#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - return; -#line 4341 "ThumbnailCache.c" - } -#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp18_ = _tmp13_; -#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp13_ = NULL; -#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->unscaled); -#line 156 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->unscaled = _tmp18_; -#line 155 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (_tmp13_); -#line 4353 "ThumbnailCache.c" - } -#line 151 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (video); -#line 4357 "ThumbnailCache.c" - } -#line 159 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp19_ = self->unscaled; -#line 159 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - if (_tmp19_ != NULL) { -#line 4363 "ThumbnailCache.c" - GdkPixbuf* _tmp20_; - Dimensions _tmp21_; - GdkInterpType _tmp22_; - GdkPixbuf* _tmp23_; -#line 160 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp20_ = self->unscaled; -#line 160 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp21_ = self->dim; -#line 160 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp22_ = self->interp; -#line 160 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp23_ = resize_pixbuf (_tmp20_, &_tmp21_, _tmp22_); -#line 160 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->scaled); -#line 160 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->scaled = _tmp23_; -#line 161 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->replace = TRUE; -#line 4382 "ThumbnailCache.c" - } -#line 149 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (photo); -#line 4386 "ThumbnailCache.c" -} - - -static void -thumbnail_cache_async_fetch_job_class_init (ThumbnailCacheAsyncFetchJobClass * klass) -{ -#line 77 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_async_fetch_job_parent_class = g_type_class_peek_parent (klass); -#line 77 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - ((BackgroundJobClass *) klass)->finalize = thumbnail_cache_async_fetch_job_finalize; -#line 77 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - ((BackgroundJobClass *) klass)->get_priority = (BackgroundJobJobPriority (*) (BackgroundJob *)) thumbnail_cache_async_fetch_job_real_get_priority; -#line 77 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) thumbnail_cache_async_fetch_job_real_execute; -#line 4401 "ThumbnailCache.c" -} - - -static void -thumbnail_cache_async_fetch_job_instance_init (ThumbnailCacheAsyncFetchJob * self) -{ -#line 86 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->scaled = NULL; -#line 87 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->err = NULL; -#line 88 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->fetched = FALSE; -#line 89 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->replace = FALSE; -#line 4416 "ThumbnailCache.c" -} - - -static void -thumbnail_cache_async_fetch_job_finalize (BackgroundJob * obj) -{ - ThumbnailCacheAsyncFetchJob * self; -#line 77 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, THUMBNAIL_CACHE_TYPE_ASYNC_FETCH_JOB, ThumbnailCacheAsyncFetchJob); -#line 78 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->cache); -#line 79 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_free0 (self->thumbnail_name); -#line 80 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->source); -#line 85 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->unscaled); -#line 86 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->scaled); -#line 87 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_error_free0 (self->err); -#line 77 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - BACKGROUND_JOB_CLASS (thumbnail_cache_async_fetch_job_parent_class)->finalize (obj); -#line 4440 "ThumbnailCache.c" -} - - -static GType -thumbnail_cache_async_fetch_job_get_type (void) -{ - static volatile gsize thumbnail_cache_async_fetch_job_type_id__volatile = 0; - if (g_once_init_enter (&thumbnail_cache_async_fetch_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ThumbnailCacheAsyncFetchJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) thumbnail_cache_async_fetch_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ThumbnailCacheAsyncFetchJob), 0, (GInstanceInitFunc) thumbnail_cache_async_fetch_job_instance_init, NULL }; - GType thumbnail_cache_async_fetch_job_type_id; - thumbnail_cache_async_fetch_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "ThumbnailCacheAsyncFetchJob", &g_define_type_info, 0); - g_once_init_leave (&thumbnail_cache_async_fetch_job_type_id__volatile, thumbnail_cache_async_fetch_job_type_id); - } - return thumbnail_cache_async_fetch_job_type_id__volatile; -} - - -static void -thumbnail_cache_class_init (ThumbnailCacheClass * klass) -{ - ThumbnailCacheSize* _tmp0_; -#line 27 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_parent_class = g_type_class_peek_parent (klass); -#line 27 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - g_type_class_add_private (klass, sizeof (ThumbnailCachePrivate)); -#line 27 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - G_OBJECT_CLASS (klass)->finalize = thumbnail_cache_finalize; -#line 54 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = g_new0 (ThumbnailCacheSize, 2); -#line 54 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_[0] = THUMBNAIL_CACHE_SIZE_BIG; -#line 54 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_[1] = THUMBNAIL_CACHE_SIZE_MEDIUM; -#line 54 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_ALL_SIZES = _tmp0_; -#line 54 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - thumbnail_cache_ALL_SIZES_length1 = 2; -#line 4478 "ThumbnailCache.c" -} - - -static void -thumbnail_cache_instance_init (ThumbnailCache * self) -{ - GeeHashMap* _tmp0_; - GeeArrayList* _tmp1_; -#line 27 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->priv = THUMBNAIL_CACHE_GET_PRIVATE (self); -#line 186 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, THUMBNAIL_CACHE_TYPE_IMAGE_DATA, (GBoxedCopyFunc) thumbnail_cache_image_data_ref, (GDestroyNotify) thumbnail_cache_image_data_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 186 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->priv->cache_map = _tmp0_; -#line 187 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _tmp1_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 187 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->priv->cache_lru = _tmp1_; -#line 188 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self->priv->cached_bytes = (gulong) 0; -#line 4499 "ThumbnailCache.c" -} - - -static void -thumbnail_cache_finalize (GObject * obj) -{ - ThumbnailCache * self; -#line 27 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_THUMBNAIL_CACHE, ThumbnailCache); -#line 181 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->priv->cache_dir); -#line 186 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->priv->cache_map); -#line 187 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - _g_object_unref0 (self->priv->cache_lru); -#line 27 "/home/jens/Source/shotwell/src/ThumbnailCache.vala" - G_OBJECT_CLASS (thumbnail_cache_parent_class)->finalize (obj); -#line 4517 "ThumbnailCache.c" -} - - -GType -thumbnail_cache_get_type (void) -{ - static volatile gsize thumbnail_cache_type_id__volatile = 0; - if (g_once_init_enter (&thumbnail_cache_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ThumbnailCacheClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) thumbnail_cache_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ThumbnailCache), 0, (GInstanceInitFunc) thumbnail_cache_instance_init, NULL }; - GType thumbnail_cache_type_id; - thumbnail_cache_type_id = g_type_register_static (G_TYPE_OBJECT, "ThumbnailCache", &g_define_type_info, 0); - g_once_init_leave (&thumbnail_cache_type_id__volatile, thumbnail_cache_type_id); - } - return thumbnail_cache_type_id__volatile; -} - - - diff --git a/src/ThumbnailCache.vala b/src/ThumbnailCache.vala index f803089..a0b27fd 100644 --- a/src/ThumbnailCache.vala +++ b/src/ThumbnailCache.vala @@ -149,7 +149,7 @@ public class ThumbnailCache : Object { private void generate_thumbnail() throws Error { Photo? photo = source as Photo; if (photo != null) { - unscaled = photo.get_pixbuf(Scaling.for_best_fit(dim.width, true)); + unscaled = photo.get_pixbuf(Scaling.for_best_fit(dim.major_axis(), true)); } else { Video? video = source as Video; if (video != null) diff --git a/src/TimedQueue.c b/src/TimedQueue.c deleted file mode 100644 index 8775526..0000000 --- a/src/TimedQueue.c +++ /dev/null @@ -1,2416 +0,0 @@ -/* TimedQueue.c generated by valac 0.40.4, the Vala compiler - * generated from TimedQueue.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/* TimedQueue is a specialized collection class. It holds items in order, but rather than being*/ -/* manually dequeued, they are dequeued automatically after a specified amount of time has elapsed*/ -/* for that item. As of today, it's possible the item will be dequeued a bit later than asked*/ -/* for, but it will never be early. Future implementations might tighten up the lateness.*/ -/**/ -/* The original design was to use a signal to notify when an item has been dequeued, but Vala has*/ -/* a bug with passing an unnamed type as a signal parameter:*/ -/* https://bugzilla.gnome.org/show_bug.cgi?id=628639*/ -/**/ -/* The rate the items come off the queue can be spaced out. Note that this can cause items to back*/ -/* up. As of today, TimedQueue makes no effort to combat this.*/ - - -#include -#include -#include -#include - - -#define TYPE_TIMED_QUEUE (timed_queue_get_type ()) -#define TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TIMED_QUEUE, TimedQueue)) -#define TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TIMED_QUEUE, TimedQueueClass)) -#define IS_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TIMED_QUEUE)) -#define IS_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TIMED_QUEUE)) -#define TIMED_QUEUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TIMED_QUEUE, TimedQueueClass)) - -typedef struct _TimedQueue TimedQueue; -typedef struct _TimedQueueClass TimedQueueClass; -typedef struct _TimedQueuePrivate TimedQueuePrivate; - -#define TYPE_SORTED_LIST (sorted_list_get_type ()) -#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList)) -#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass)) -#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST)) -#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST)) -#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass)) - -typedef struct _SortedList SortedList; -typedef struct _SortedListClass SortedListClass; - -#define TIMED_QUEUE_TYPE_ELEMENT (timed_queue_element_get_type ()) -#define TIMED_QUEUE_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TIMED_QUEUE_TYPE_ELEMENT, TimedQueueElement)) -#define TIMED_QUEUE_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TIMED_QUEUE_TYPE_ELEMENT, TimedQueueElementClass)) -#define TIMED_QUEUE_IS_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TIMED_QUEUE_TYPE_ELEMENT)) -#define TIMED_QUEUE_IS_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TIMED_QUEUE_TYPE_ELEMENT)) -#define TIMED_QUEUE_ELEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TIMED_QUEUE_TYPE_ELEMENT, TimedQueueElementClass)) - -typedef struct _TimedQueueElement TimedQueueElement; -typedef struct _TimedQueueElementClass TimedQueueElementClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _TimedQueueElementPrivate TimedQueueElementPrivate; -#define _timed_queue_element_unref0(var) ((var == NULL) ? NULL : (var = (timed_queue_element_unref (var), NULL))) -#define _g_destroy_func0(var) (((var == NULL) || (g_destroy_func == NULL)) ? NULL : (var = (g_destroy_func (var), NULL))) -typedef struct _TimedQueueParamSpecElement TimedQueueParamSpecElement; -typedef struct _ParamSpecTimedQueue ParamSpecTimedQueue; -enum { - TIMED_QUEUE_PAUSED_SIGNAL, - TIMED_QUEUE_NUM_SIGNALS -}; -static guint timed_queue_signals[TIMED_QUEUE_NUM_SIGNALS] = {0}; - -#define TYPE_HASH_TIMED_QUEUE (hash_timed_queue_get_type ()) -#define HASH_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HASH_TIMED_QUEUE, HashTimedQueue)) -#define HASH_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HASH_TIMED_QUEUE, HashTimedQueueClass)) -#define IS_HASH_TIMED_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HASH_TIMED_QUEUE)) -#define IS_HASH_TIMED_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HASH_TIMED_QUEUE)) -#define HASH_TIMED_QUEUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HASH_TIMED_QUEUE, HashTimedQueueClass)) - -typedef struct _HashTimedQueue HashTimedQueue; -typedef struct _HashTimedQueueClass HashTimedQueueClass; -typedef struct _HashTimedQueuePrivate HashTimedQueuePrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef void (*DequeuedCallback) (gconstpointer item, void* user_data); -struct _TimedQueue { - GTypeInstance parent_instance; - volatile int ref_count; - TimedQueuePrivate * priv; -}; - -struct _TimedQueueClass { - GTypeClass parent_class; - void (*finalize) (TimedQueue *self); - void (*notify_dequeued) (TimedQueue* self, gconstpointer item); - void (*clear) (TimedQueue* self); - gboolean (*contains) (TimedQueue* self, gconstpointer item); - gboolean (*enqueue) (TimedQueue* self, gconstpointer item); - gboolean (*enqueue_many) (TimedQueue* self, GeeCollection* items); - gboolean (*remove_first) (TimedQueue* self, gconstpointer item); - void (*paused) (TimedQueue* self, gboolean is_paused); - gint (*get_size) (TimedQueue* self); -}; - -struct _TimedQueuePrivate { - GType g_type; - GBoxedCopyFunc g_dup_func; - GDestroyNotify g_destroy_func; - guint hold_msec; - DequeuedCallback callback; - gpointer callback_target; - GeeEqualDataFunc equal_func; - gpointer equal_func_target; - GDestroyNotify equal_func_target_destroy_notify; - gint priority; - guint timer_id; - SortedList* queue; - guint dequeue_spacing_msec; - gulong last_dequeue; - gboolean paused_state; -}; - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -struct _TimedQueueElement { - GTypeInstance parent_instance; - volatile int ref_count; - TimedQueueElementPrivate * priv; - gpointer item; - gulong ready; -}; - -struct _TimedQueueElementClass { - GTypeClass parent_class; - void (*finalize) (TimedQueueElement *self); -}; - -struct _TimedQueueElementPrivate { - GType g_type; - GBoxedCopyFunc g_dup_func; - GDestroyNotify g_destroy_func; -}; - -struct _TimedQueueParamSpecElement { - GParamSpec parent_instance; -}; - -struct _ParamSpecTimedQueue { - GParamSpec parent_instance; -}; - -struct _HashTimedQueue { - TimedQueue parent_instance; - HashTimedQueuePrivate * priv; -}; - -struct _HashTimedQueueClass { - TimedQueueClass parent_class; -}; - -struct _HashTimedQueuePrivate { - GType g_type; - GBoxedCopyFunc g_dup_func; - GDestroyNotify g_destroy_func; - GeeHashMap* item_count; -}; - - -static gpointer timed_queue_parent_class = NULL; -static gpointer timed_queue_element_parent_class = NULL; -static gpointer hash_timed_queue_parent_class = NULL; - -gpointer timed_queue_ref (gpointer instance); -void timed_queue_unref (gpointer instance); -GParamSpec* param_spec_timed_queue (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_timed_queue (GValue* value, - gpointer v_object); -void value_take_timed_queue (GValue* value, - gpointer v_object); -gpointer value_get_timed_queue (const GValue* value); -GType timed_queue_get_type (void) G_GNUC_CONST; -GType sorted_list_get_type (void) G_GNUC_CONST; -static gpointer timed_queue_element_ref (gpointer instance); -static void timed_queue_element_unref (gpointer instance); -static GParamSpec* timed_queue_param_spec_element (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void timed_queue_value_set_element (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void timed_queue_value_take_element (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer timed_queue_value_get_element (const GValue* value) G_GNUC_UNUSED; -static GType timed_queue_element_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define TIMED_QUEUE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TIMED_QUEUE, TimedQueuePrivate)) -TimedQueue* timed_queue_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - guint hold_msec, - DequeuedCallback callback, - void* callback_target, - GeeEqualDataFunc equal_func, - void* equal_func_target, - GDestroyNotify equal_func_target_destroy_notify, - gint priority); -TimedQueue* timed_queue_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - guint hold_msec, - DequeuedCallback callback, - void* callback_target, - GeeEqualDataFunc equal_func, - void* equal_func_target, - GDestroyNotify equal_func_target_destroy_notify, - gint priority); -static gint64 timed_queue_element_comparator (void* a, - void* b); -static gint64 _timed_queue_element_comparator_comparator (void* a, - void* b, - gpointer self); -SortedList* sorted_list_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - Comparator cmp, - void* cmp_target); -SortedList* sorted_list_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - Comparator cmp, - void* cmp_target); -static guint timed_queue_get_heartbeat_timeout (TimedQueue* self); -static gboolean timed_queue_on_heartbeat (TimedQueue* self); -static gboolean _timed_queue_on_heartbeat_gsource_func (gpointer self); -guint timed_queue_get_dequeue_spacing_msec (TimedQueue* self); -void timed_queue_set_dequeue_spacing_msec (TimedQueue* self, - guint msec); -void timed_queue_notify_dequeued (TimedQueue* self, - gconstpointer item); -static void timed_queue_real_notify_dequeued (TimedQueue* self, - gconstpointer item); -gboolean timed_queue_is_paused (TimedQueue* self); -void timed_queue_pause (TimedQueue* self); -void timed_queue_unpause (TimedQueue* self); -void timed_queue_clear (TimedQueue* self); -static void timed_queue_real_clear (TimedQueue* self); -gboolean timed_queue_contains (TimedQueue* self, - gconstpointer item); -static gboolean timed_queue_real_contains (TimedQueue* self, - gconstpointer item); -gboolean timed_queue_enqueue (TimedQueue* self, - gconstpointer item); -static gboolean timed_queue_real_enqueue (TimedQueue* self, - gconstpointer item); -static gulong timed_queue_calc_ready_time (TimedQueue* self); -static TimedQueueElement* timed_queue_element_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - gconstpointer item, - gulong ready); -static TimedQueueElement* timed_queue_element_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - gconstpointer item, - gulong ready); -gboolean timed_queue_enqueue_many (TimedQueue* self, - GeeCollection* items); -static gboolean timed_queue_real_enqueue_many (TimedQueue* self, - GeeCollection* items); -gboolean sorted_list_add_list (SortedList* self, - GeeList* items); -gboolean timed_queue_remove_first (TimedQueue* self, - gconstpointer item); -static gboolean timed_queue_real_remove_first (TimedQueue* self, - gconstpointer item); -gulong now_ms (void); -gpointer sorted_list_get_at (SortedList* self, - gint index); -gpointer sorted_list_remove_at (SortedList* self, - gint index); -gint timed_queue_get_size (TimedQueue* self); -static void timed_queue_real_paused (TimedQueue* self, - gboolean is_paused); -#define TIMED_QUEUE_ELEMENT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TIMED_QUEUE_TYPE_ELEMENT, TimedQueueElementPrivate)) -static void timed_queue_element_finalize (TimedQueueElement * obj); -static void timed_queue_finalize (TimedQueue * obj); -GType hash_timed_queue_get_type (void) G_GNUC_CONST; -#define HASH_TIMED_QUEUE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_HASH_TIMED_QUEUE, HashTimedQueuePrivate)) -HashTimedQueue* hash_timed_queue_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - guint hold_msec, - DequeuedCallback callback, - void* callback_target, - GeeHashDataFunc hash_func, - void* hash_func_target, - GDestroyNotify hash_func_target_destroy_notify, - GeeEqualDataFunc equal_func, - void* equal_func_target, - GDestroyNotify equal_func_target_destroy_notify, - gint priority); -HashTimedQueue* hash_timed_queue_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - guint hold_msec, - DequeuedCallback callback, - void* callback_target, - GeeHashDataFunc hash_func, - void* hash_func_target, - GDestroyNotify hash_func_target_destroy_notify, - GeeEqualDataFunc equal_func, - void* equal_func_target, - GDestroyNotify equal_func_target_destroy_notify, - gint priority); -static void hash_timed_queue_real_notify_dequeued (TimedQueue* base, - gconstpointer item); -static void hash_timed_queue_removed (HashTimedQueue* self, - gconstpointer item); -static void hash_timed_queue_real_clear (TimedQueue* base); -static gboolean hash_timed_queue_real_contains (TimedQueue* base, - gconstpointer item); -static gboolean hash_timed_queue_real_enqueue (TimedQueue* base, - gconstpointer item); -static gboolean hash_timed_queue_real_enqueue_many (TimedQueue* base, - GeeCollection* items); -static gboolean hash_timed_queue_real_remove_first (TimedQueue* base, - gconstpointer item); -static void hash_timed_queue_finalize (TimedQueue * obj); - - -static gint64 -_timed_queue_element_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = timed_queue_element_comparator (a, b); -#line 64 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 348 "TimedQueue.c" -} - - -static gboolean -_timed_queue_on_heartbeat_gsource_func (gpointer self) -{ - gboolean result; - result = timed_queue_on_heartbeat ((TimedQueue*) self); -#line 66 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 359 "TimedQueue.c" -} - - -TimedQueue* -timed_queue_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - guint hold_msec, - DequeuedCallback callback, - void* callback_target, - GeeEqualDataFunc equal_func, - void* equal_func_target, - GDestroyNotify equal_func_target_destroy_notify, - gint priority) -{ - TimedQueue* self = NULL; - SortedList* _tmp4_; -#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self = (TimedQueue*) g_type_create_instance (object_type); -#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->g_type = g_type; -#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->g_dup_func = g_dup_func; -#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->g_destroy_func = g_destroy_func; -#line 54 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->hold_msec = hold_msec; -#line 55 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->callback = callback; -#line 55 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->callback_target = callback_target; -#line 57 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (equal_func != NULL) { -#line 394 "TimedQueue.c" - GeeEqualDataFunc _tmp0_; - void* _tmp0__target; - GDestroyNotify _tmp0__target_destroy_notify; -#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = equal_func; -#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0__target = equal_func_target; -#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0__target_destroy_notify = equal_func_target_destroy_notify; -#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala" - equal_func = NULL; -#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala" - equal_func_target = NULL; -#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala" - equal_func_target_destroy_notify = NULL; -#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala" - (self->priv->equal_func_target_destroy_notify == NULL) ? NULL : (self->priv->equal_func_target_destroy_notify (self->priv->equal_func_target), NULL); -#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->equal_func = NULL; -#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->equal_func_target = NULL; -#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->equal_func_target_destroy_notify = NULL; -#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->equal_func = _tmp0_; -#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->equal_func_target = _tmp0__target; -#line 58 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->equal_func_target_destroy_notify = _tmp0__target_destroy_notify; -#line 424 "TimedQueue.c" - } else { - void* _tmp1_; - GDestroyNotify _tmp2_; - GeeEqualDataFunc _tmp3_; -#line 60 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp3_ = gee_functions_get_equal_func_for (g_type, &_tmp1_, &_tmp2_); -#line 60 "/home/jens/Source/shotwell/src/TimedQueue.vala" - (self->priv->equal_func_target_destroy_notify == NULL) ? NULL : (self->priv->equal_func_target_destroy_notify (self->priv->equal_func_target), NULL); -#line 60 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->equal_func = NULL; -#line 60 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->equal_func_target = NULL; -#line 60 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->equal_func_target_destroy_notify = NULL; -#line 60 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->equal_func = (GeeEqualDataFunc) _tmp3_; -#line 60 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->equal_func_target = _tmp1_; -#line 60 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->equal_func_target_destroy_notify = _tmp2_; -#line 445 "TimedQueue.c" - } -#line 62 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->priority = priority; -#line 64 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp4_ = sorted_list_new (TIMED_QUEUE_TYPE_ELEMENT, (GBoxedCopyFunc) timed_queue_element_ref, (GDestroyNotify) timed_queue_element_unref, _timed_queue_element_comparator_comparator, NULL); -#line 64 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _g_object_unref0 (self->priv->queue); -#line 64 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->queue = _tmp4_; -#line 66 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->timer_id = g_timeout_add_full (priority, timed_queue_get_heartbeat_timeout (self), _timed_queue_on_heartbeat_gsource_func, timed_queue_ref (self), timed_queue_unref); -#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala" - (equal_func_target_destroy_notify == NULL) ? NULL : (equal_func_target_destroy_notify (equal_func_target), NULL); -#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala" - equal_func = NULL; -#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala" - equal_func_target = NULL; -#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala" - equal_func_target_destroy_notify = NULL; -#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return self; -#line 467 "TimedQueue.c" -} - - -TimedQueue* -timed_queue_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - guint hold_msec, - DequeuedCallback callback, - void* callback_target, - GeeEqualDataFunc equal_func, - void* equal_func_target, - GDestroyNotify equal_func_target_destroy_notify, - gint priority) -{ -#line 52 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return timed_queue_construct (TYPE_TIMED_QUEUE, g_type, g_dup_func, g_destroy_func, hold_msec, callback, callback_target, equal_func, equal_func_target, equal_func_target_destroy_notify, priority); -#line 485 "TimedQueue.c" -} - - -guint -timed_queue_get_dequeue_spacing_msec (TimedQueue* self) -{ - guint result = 0U; - guint _tmp0_; -#line 74 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_val_if_fail (IS_TIMED_QUEUE (self), 0U); -#line 75 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = self->priv->dequeue_spacing_msec; -#line 75 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = _tmp0_; -#line 75 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 502 "TimedQueue.c" -} - - -void -timed_queue_set_dequeue_spacing_msec (TimedQueue* self, - guint msec) -{ - guint _tmp0_; - guint _tmp1_; - gint _tmp3_; -#line 78 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (IS_TIMED_QUEUE (self)); -#line 79 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = self->priv->dequeue_spacing_msec; -#line 79 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (msec == _tmp0_) { -#line 80 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return; -#line 521 "TimedQueue.c" - } -#line 82 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp1_ = self->priv->timer_id; -#line 82 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (_tmp1_ != ((guint) 0)) { -#line 527 "TimedQueue.c" - guint _tmp2_; -#line 83 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp2_ = self->priv->timer_id; -#line 83 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_source_remove (_tmp2_); -#line 533 "TimedQueue.c" - } -#line 85 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->dequeue_spacing_msec = msec; -#line 87 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp3_ = self->priv->priority; -#line 87 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->timer_id = g_timeout_add_full (_tmp3_, timed_queue_get_heartbeat_timeout (self), _timed_queue_on_heartbeat_gsource_func, timed_queue_ref (self), timed_queue_unref); -#line 541 "TimedQueue.c" -} - - -static guint -timed_queue_get_heartbeat_timeout (TimedQueue* self) -{ - guint result = 0U; - guint _tmp0_ = 0U; - guint _tmp1_; -#line 90 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_val_if_fail (IS_TIMED_QUEUE (self), 0U); -#line 91 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp1_ = self->priv->dequeue_spacing_msec; -#line 91 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (_tmp1_ == ((guint) 0)) { -#line 557 "TimedQueue.c" - guint _tmp2_; -#line 92 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp2_ = self->priv->hold_msec; -#line 92 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = _tmp2_ / 10; -#line 563 "TimedQueue.c" - } else { - guint _tmp3_; -#line 93 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp3_ = self->priv->dequeue_spacing_msec; -#line 93 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = _tmp3_ / 2; -#line 570 "TimedQueue.c" - } -#line 91 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = CLAMP (_tmp0_, (guint) 10, G_MAXUINT); -#line 91 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 576 "TimedQueue.c" -} - - -static void -timed_queue_real_notify_dequeued (TimedQueue* self, - gconstpointer item) -{ - DequeuedCallback _tmp0_; - void* _tmp0__target; -#line 97 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = self->priv->callback; -#line 97 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0__target = self->priv->callback_target; -#line 97 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ (item, _tmp0__target); -#line 592 "TimedQueue.c" -} - - -void -timed_queue_notify_dequeued (TimedQueue* self, - gconstpointer item) -{ -#line 96 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (IS_TIMED_QUEUE (self)); -#line 96 "/home/jens/Source/shotwell/src/TimedQueue.vala" - TIMED_QUEUE_GET_CLASS (self)->notify_dequeued (self, item); -#line 604 "TimedQueue.c" -} - - -gboolean -timed_queue_is_paused (TimedQueue* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 100 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_val_if_fail (IS_TIMED_QUEUE (self), FALSE); -#line 101 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = self->priv->paused_state; -#line 101 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = _tmp0_; -#line 101 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 621 "TimedQueue.c" -} - - -void -timed_queue_pause (TimedQueue* self) -{ - gboolean _tmp0_; -#line 104 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (IS_TIMED_QUEUE (self)); -#line 105 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = self->priv->paused_state; -#line 105 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (_tmp0_) { -#line 106 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return; -#line 637 "TimedQueue.c" - } -#line 108 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->paused_state = TRUE; -#line 110 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_signal_emit (self, timed_queue_signals[TIMED_QUEUE_PAUSED_SIGNAL], 0, TRUE); -#line 643 "TimedQueue.c" -} - - -void -timed_queue_unpause (TimedQueue* self) -{ - gboolean _tmp0_; -#line 113 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (IS_TIMED_QUEUE (self)); -#line 114 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = self->priv->paused_state; -#line 114 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (!_tmp0_) { -#line 115 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return; -#line 659 "TimedQueue.c" - } -#line 117 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->paused_state = FALSE; -#line 119 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_signal_emit (self, timed_queue_signals[TIMED_QUEUE_PAUSED_SIGNAL], 0, FALSE); -#line 665 "TimedQueue.c" -} - - -static void -timed_queue_real_clear (TimedQueue* self) -{ - SortedList* _tmp0_; -#line 123 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = self->priv->queue; -#line 123 "/home/jens/Source/shotwell/src/TimedQueue.vala" - gee_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 677 "TimedQueue.c" -} - - -void -timed_queue_clear (TimedQueue* self) -{ -#line 122 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (IS_TIMED_QUEUE (self)); -#line 122 "/home/jens/Source/shotwell/src/TimedQueue.vala" - TIMED_QUEUE_GET_CLASS (self)->clear (self); -#line 688 "TimedQueue.c" -} - - -static gboolean -timed_queue_real_contains (TimedQueue* self, - gconstpointer item) -{ - gboolean result = FALSE; - { - GeeIterator* _e_it = NULL; - SortedList* _tmp0_; - GeeIterator* _tmp1_; -#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = self->priv->queue; -#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _e_it = _tmp1_; -#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala" - while (TRUE) { -#line 709 "TimedQueue.c" - GeeIterator* _tmp2_; - TimedQueueElement* e = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - GeeEqualDataFunc _tmp5_; - void* _tmp5__target; - TimedQueueElement* _tmp6_; - gconstpointer _tmp7_; -#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp2_ = _e_it; -#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala" - break; -#line 724 "TimedQueue.c" - } -#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp3_ = _e_it; -#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala" - e = (TimedQueueElement*) _tmp4_; -#line 128 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp5_ = self->priv->equal_func; -#line 128 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp5__target = self->priv->equal_func_target; -#line 128 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp6_ = e; -#line 128 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp7_ = _tmp6_->item; -#line 128 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (_tmp5_ (item, _tmp7_, _tmp5__target)) { -#line 129 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = TRUE; -#line 129 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _timed_queue_element_unref0 (e); -#line 129 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _g_object_unref0 (_e_it); -#line 129 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 750 "TimedQueue.c" - } -#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _timed_queue_element_unref0 (e); -#line 754 "TimedQueue.c" - } -#line 127 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _g_object_unref0 (_e_it); -#line 758 "TimedQueue.c" - } -#line 132 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = FALSE; -#line 132 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 764 "TimedQueue.c" -} - - -gboolean -timed_queue_contains (TimedQueue* self, - gconstpointer item) -{ -#line 126 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_val_if_fail (IS_TIMED_QUEUE (self), FALSE); -#line 126 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return TIMED_QUEUE_GET_CLASS (self)->contains (self, item); -#line 776 "TimedQueue.c" -} - - -static gboolean -timed_queue_real_enqueue (TimedQueue* self, - gconstpointer item) -{ - gboolean result = FALSE; - SortedList* _tmp0_; - TimedQueueElement* _tmp1_; - TimedQueueElement* _tmp2_; - gboolean _tmp3_; -#line 136 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = self->priv->queue; -#line 136 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp1_ = timed_queue_element_new (self->priv->g_type, (GBoxedCopyFunc) self->priv->g_dup_func, (GDestroyNotify) self->priv->g_destroy_func, item, timed_queue_calc_ready_time (self)); -#line 136 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp2_ = _tmp1_; -#line 136 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp3_ = gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), _tmp2_); -#line 136 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _timed_queue_element_unref0 (_tmp2_); -#line 136 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = _tmp3_; -#line 136 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 803 "TimedQueue.c" -} - - -gboolean -timed_queue_enqueue (TimedQueue* self, - gconstpointer item) -{ -#line 135 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_val_if_fail (IS_TIMED_QUEUE (self), FALSE); -#line 135 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return TIMED_QUEUE_GET_CLASS (self)->enqueue (self, item); -#line 815 "TimedQueue.c" -} - - -static gboolean -timed_queue_real_enqueue_many (TimedQueue* self, - GeeCollection* items) -{ - gboolean result = FALSE; - gulong ready_time = 0UL; - GeeArrayList* elements = NULL; - GeeArrayList* _tmp0_; - SortedList* _tmp10_; - GeeArrayList* _tmp11_; -#line 139 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (items), FALSE); -#line 140 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ready_time = timed_queue_calc_ready_time (self); -#line 142 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = gee_array_list_new (TIMED_QUEUE_TYPE_ELEMENT, (GBoxedCopyFunc) timed_queue_element_ref, (GDestroyNotify) timed_queue_element_unref, NULL, NULL, NULL); -#line 142 "/home/jens/Source/shotwell/src/TimedQueue.vala" - elements = _tmp0_; -#line 837 "TimedQueue.c" - { - GeeIterator* _item_it = NULL; - GeeIterator* _tmp1_; -#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (items, GEE_TYPE_ITERABLE, GeeIterable)); -#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _item_it = _tmp1_; -#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala" - while (TRUE) { -#line 847 "TimedQueue.c" - GeeIterator* _tmp2_; - gpointer item = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - GeeArrayList* _tmp5_; - gconstpointer _tmp6_; - gulong _tmp7_; - TimedQueueElement* _tmp8_; - TimedQueueElement* _tmp9_; -#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp2_ = _item_it; -#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala" - break; -#line 863 "TimedQueue.c" - } -#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp3_ = _item_it; -#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala" - item = _tmp4_; -#line 144 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp5_ = elements; -#line 144 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp6_ = item; -#line 144 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp7_ = ready_time; -#line 144 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp8_ = timed_queue_element_new (self->priv->g_type, (GBoxedCopyFunc) self->priv->g_dup_func, (GDestroyNotify) self->priv->g_destroy_func, _tmp6_, _tmp7_); -#line 144 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp9_ = _tmp8_; -#line 144 "/home/jens/Source/shotwell/src/TimedQueue.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp9_); -#line 144 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _timed_queue_element_unref0 (_tmp9_); -#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (item = (self->priv->g_destroy_func (item), NULL)); -#line 887 "TimedQueue.c" - } -#line 143 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _g_object_unref0 (_item_it); -#line 891 "TimedQueue.c" - } -#line 146 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp10_ = self->priv->queue; -#line 146 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp11_ = elements; -#line 146 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = sorted_list_add_list (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_LIST, GeeList)); -#line 146 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _g_object_unref0 (elements); -#line 146 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 903 "TimedQueue.c" -} - - -gboolean -timed_queue_enqueue_many (TimedQueue* self, - GeeCollection* items) -{ -#line 139 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_val_if_fail (IS_TIMED_QUEUE (self), FALSE); -#line 139 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return TIMED_QUEUE_GET_CLASS (self)->enqueue_many (self, items); -#line 915 "TimedQueue.c" -} - - -static gboolean -timed_queue_real_remove_first (TimedQueue* self, - gconstpointer item) -{ - gboolean result = FALSE; - GeeIterator* iter = NULL; - SortedList* _tmp0_; - GeeIterator* _tmp1_; -#line 150 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = self->priv->queue; -#line 150 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 150 "/home/jens/Source/shotwell/src/TimedQueue.vala" - iter = _tmp1_; -#line 151 "/home/jens/Source/shotwell/src/TimedQueue.vala" - while (TRUE) { -#line 935 "TimedQueue.c" - GeeIterator* _tmp2_; - TimedQueueElement* e = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - GeeEqualDataFunc _tmp5_; - void* _tmp5__target; - TimedQueueElement* _tmp6_; - gconstpointer _tmp7_; -#line 151 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp2_ = iter; -#line 151 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 151 "/home/jens/Source/shotwell/src/TimedQueue.vala" - break; -#line 950 "TimedQueue.c" - } -#line 152 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp3_ = iter; -#line 152 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 152 "/home/jens/Source/shotwell/src/TimedQueue.vala" - e = (TimedQueueElement*) _tmp4_; -#line 153 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp5_ = self->priv->equal_func; -#line 153 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp5__target = self->priv->equal_func_target; -#line 153 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp6_ = e; -#line 153 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp7_ = _tmp6_->item; -#line 153 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (_tmp5_ (item, _tmp7_, _tmp5__target)) { -#line 968 "TimedQueue.c" - GeeIterator* _tmp8_; -#line 154 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp8_ = iter; -#line 154 "/home/jens/Source/shotwell/src/TimedQueue.vala" - gee_iterator_remove (_tmp8_); -#line 156 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = TRUE; -#line 156 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _timed_queue_element_unref0 (e); -#line 156 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _g_object_unref0 (iter); -#line 156 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 982 "TimedQueue.c" - } -#line 151 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _timed_queue_element_unref0 (e); -#line 986 "TimedQueue.c" - } -#line 160 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = FALSE; -#line 160 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _g_object_unref0 (iter); -#line 160 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 994 "TimedQueue.c" -} - - -gboolean -timed_queue_remove_first (TimedQueue* self, - gconstpointer item) -{ -#line 149 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_val_if_fail (IS_TIMED_QUEUE (self), FALSE); -#line 149 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return TIMED_QUEUE_GET_CLASS (self)->remove_first (self, item); -#line 1006 "TimedQueue.c" -} - - -static gulong -timed_queue_calc_ready_time (TimedQueue* self) -{ - gulong result = 0UL; - guint _tmp0_; -#line 169 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_val_if_fail (IS_TIMED_QUEUE (self), 0UL); -#line 170 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = self->priv->hold_msec; -#line 170 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = now_ms () + ((gulong) _tmp0_); -#line 170 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 1023 "TimedQueue.c" -} - - -static gboolean -timed_queue_on_heartbeat (TimedQueue* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; - gulong now = 0UL; -#line 173 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_val_if_fail (IS_TIMED_QUEUE (self), FALSE); -#line 174 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = self->priv->paused_state; -#line 174 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (_tmp0_) { -#line 175 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = TRUE; -#line 175 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 1043 "TimedQueue.c" - } -#line 177 "/home/jens/Source/shotwell/src/TimedQueue.vala" - now = (gulong) 0; -#line 1047 "TimedQueue.c" - { - gboolean _tmp1_ = FALSE; -#line 179 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp1_ = TRUE; -#line 179 "/home/jens/Source/shotwell/src/TimedQueue.vala" - while (TRUE) { -#line 1054 "TimedQueue.c" - SortedList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - TimedQueueElement* head = NULL; - SortedList* _tmp5_; - gpointer _tmp6_; - TimedQueueElement* _tmp7_; - gulong _tmp8_; - TimedQueueElement* _tmp9_; - gulong _tmp10_; - gulong _tmp11_; - gboolean _tmp12_ = FALSE; - guint _tmp13_; - TimedQueueElement* h = NULL; - SortedList* _tmp17_; - gpointer _tmp18_; - TimedQueueElement* _tmp19_; - TimedQueueElement* _tmp20_; - TimedQueueElement* _tmp21_; - gconstpointer _tmp22_; - gulong _tmp23_; - guint _tmp24_; -#line 179 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (!_tmp1_) { -#line 1079 "TimedQueue.c" - } -#line 179 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp1_ = FALSE; -#line 180 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp2_ = self->priv->queue; -#line 180 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 180 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp4_ = _tmp3_; -#line 180 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (_tmp4_ == 0) { -#line 181 "/home/jens/Source/shotwell/src/TimedQueue.vala" - break; -#line 1093 "TimedQueue.c" - } -#line 183 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp5_ = self->priv->queue; -#line 183 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp6_ = sorted_list_get_at (_tmp5_, 0); -#line 183 "/home/jens/Source/shotwell/src/TimedQueue.vala" - head = (TimedQueueElement*) _tmp6_; -#line 184 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp7_ = head; -#line 184 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _vala_assert (_tmp7_ != NULL, "head != null"); -#line 186 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp8_ = now; -#line 186 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (_tmp8_ == ((gulong) 0)) { -#line 187 "/home/jens/Source/shotwell/src/TimedQueue.vala" - now = now_ms (); -#line 1111 "TimedQueue.c" - } -#line 189 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp9_ = head; -#line 189 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp10_ = _tmp9_->ready; -#line 189 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp11_ = now; -#line 189 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (_tmp10_ > _tmp11_) { -#line 190 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _timed_queue_element_unref0 (head); -#line 190 "/home/jens/Source/shotwell/src/TimedQueue.vala" - break; -#line 1125 "TimedQueue.c" - } -#line 193 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp13_ = self->priv->dequeue_spacing_msec; -#line 193 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (_tmp13_ != ((guint) 0)) { -#line 1131 "TimedQueue.c" - gulong _tmp14_; - gulong _tmp15_; - guint _tmp16_; -#line 193 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp14_ = now; -#line 193 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp15_ = self->priv->last_dequeue; -#line 193 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp16_ = self->priv->dequeue_spacing_msec; -#line 193 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp12_ = (_tmp14_ - _tmp15_) < ((gulong) _tmp16_); -#line 1143 "TimedQueue.c" - } else { -#line 193 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp12_ = FALSE; -#line 1147 "TimedQueue.c" - } -#line 193 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (_tmp12_) { -#line 194 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _timed_queue_element_unref0 (head); -#line 194 "/home/jens/Source/shotwell/src/TimedQueue.vala" - break; -#line 1155 "TimedQueue.c" - } -#line 196 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp17_ = self->priv->queue; -#line 196 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp18_ = sorted_list_remove_at (_tmp17_, 0); -#line 196 "/home/jens/Source/shotwell/src/TimedQueue.vala" - h = (TimedQueueElement*) _tmp18_; -#line 197 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp19_ = head; -#line 197 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp20_ = h; -#line 197 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _vala_assert (_tmp19_ == _tmp20_, "head == h"); -#line 199 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp21_ = head; -#line 199 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp22_ = _tmp21_->item; -#line 199 "/home/jens/Source/shotwell/src/TimedQueue.vala" - timed_queue_notify_dequeued (self, _tmp22_); -#line 200 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp23_ = now; -#line 200 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->last_dequeue = _tmp23_; -#line 204 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp24_ = self->priv->dequeue_spacing_msec; -#line 204 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (_tmp24_ != ((guint) 0)) { -#line 205 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _timed_queue_element_unref0 (h); -#line 205 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _timed_queue_element_unref0 (head); -#line 205 "/home/jens/Source/shotwell/src/TimedQueue.vala" - break; -#line 1189 "TimedQueue.c" - } -#line 179 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _timed_queue_element_unref0 (h); -#line 179 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _timed_queue_element_unref0 (head); -#line 1195 "TimedQueue.c" - } - } -#line 208 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = TRUE; -#line 208 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 1202 "TimedQueue.c" -} - - -gint -timed_queue_get_size (TimedQueue* self) -{ -#line 164 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_val_if_fail (IS_TIMED_QUEUE (self), 0); -#line 164 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return TIMED_QUEUE_GET_CLASS (self)->get_size (self); -#line 1213 "TimedQueue.c" -} - - -static gint -timed_queue_real_get_size (TimedQueue* base) -{ - gint result; - TimedQueue* self; - SortedList* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 164 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self = base; -#line 165 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = self->priv->queue; -#line 165 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 165 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp2_ = _tmp1_; -#line 165 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = _tmp2_; -#line 165 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 1237 "TimedQueue.c" -} - - -static void -timed_queue_real_paused (TimedQueue* self, - gboolean is_paused) -{ -} - - -static TimedQueueElement* -timed_queue_element_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - gconstpointer item, - gulong ready) -{ - TimedQueueElement* self = NULL; - gpointer _tmp0_; -#line 26 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self = (TimedQueueElement*) g_type_create_instance (object_type); -#line 26 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->g_type = g_type; -#line 26 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->g_dup_func = g_dup_func; -#line 26 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->g_destroy_func = g_destroy_func; -#line 27 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = ((item != NULL) && (g_dup_func != NULL)) ? g_dup_func ((gpointer) item) : ((gpointer) item); -#line 27 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _g_destroy_func0 (self->item); -#line 27 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->item = _tmp0_; -#line 28 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->ready = ready; -#line 26 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return self; -#line 1276 "TimedQueue.c" -} - - -static TimedQueueElement* -timed_queue_element_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - gconstpointer item, - gulong ready) -{ -#line 26 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return timed_queue_element_construct (TIMED_QUEUE_TYPE_ELEMENT, g_type, g_dup_func, g_destroy_func, item, ready); -#line 1289 "TimedQueue.c" -} - - -static gint64 -timed_queue_element_comparator (void* a, - void* b) -{ - gint64 result = 0LL; - gulong _tmp0_; - gulong _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST ((TimedQueueElement*) a, TIMED_QUEUE_TYPE_ELEMENT, TimedQueueElement)->ready; -#line 32 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST ((TimedQueueElement*) b, TIMED_QUEUE_TYPE_ELEMENT, TimedQueueElement)->ready; -#line 32 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = ((gint64) _tmp0_) - ((gint64) _tmp1_); -#line 32 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 1308 "TimedQueue.c" -} - - -static void -timed_queue_value_element_init (GValue* value) -{ -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - value->data[0].v_pointer = NULL; -#line 1317 "TimedQueue.c" -} - - -static void -timed_queue_value_element_free_value (GValue* value) -{ -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (value->data[0].v_pointer) { -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - timed_queue_element_unref (value->data[0].v_pointer); -#line 1328 "TimedQueue.c" - } -} - - -static void -timed_queue_value_element_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (src_value->data[0].v_pointer) { -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - dest_value->data[0].v_pointer = timed_queue_element_ref (src_value->data[0].v_pointer); -#line 1341 "TimedQueue.c" - } else { -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - dest_value->data[0].v_pointer = NULL; -#line 1345 "TimedQueue.c" - } -} - - -static gpointer -timed_queue_value_element_peek_pointer (const GValue* value) -{ -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return value->data[0].v_pointer; -#line 1355 "TimedQueue.c" -} - - -static gchar* -timed_queue_value_element_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (collect_values[0].v_pointer) { -#line 1367 "TimedQueue.c" - TimedQueueElement * object; - object = collect_values[0].v_pointer; -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (object->parent_instance.g_class == NULL) { -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1374 "TimedQueue.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1378 "TimedQueue.c" - } -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - value->data[0].v_pointer = timed_queue_element_ref (object); -#line 1382 "TimedQueue.c" - } else { -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - value->data[0].v_pointer = NULL; -#line 1386 "TimedQueue.c" - } -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return NULL; -#line 1390 "TimedQueue.c" -} - - -static gchar* -timed_queue_value_element_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - TimedQueueElement ** object_p; - object_p = collect_values[0].v_pointer; -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (!object_p) { -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1406 "TimedQueue.c" - } -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (!value->data[0].v_pointer) { -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - *object_p = NULL; -#line 1412 "TimedQueue.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - *object_p = value->data[0].v_pointer; -#line 1416 "TimedQueue.c" - } else { -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - *object_p = timed_queue_element_ref (value->data[0].v_pointer); -#line 1420 "TimedQueue.c" - } -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return NULL; -#line 1424 "TimedQueue.c" -} - - -static GParamSpec* -timed_queue_param_spec_element (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - TimedQueueParamSpecElement* spec; -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_val_if_fail (g_type_is_a (object_type, TIMED_QUEUE_TYPE_ELEMENT), NULL); -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return G_PARAM_SPEC (spec); -#line 1444 "TimedQueue.c" -} - - -static gpointer -timed_queue_value_get_element (const GValue* value) -{ -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TIMED_QUEUE_TYPE_ELEMENT), NULL); -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return value->data[0].v_pointer; -#line 1455 "TimedQueue.c" -} - - -static void -timed_queue_value_set_element (GValue* value, - gpointer v_object) -{ - TimedQueueElement * old; -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TIMED_QUEUE_TYPE_ELEMENT)); -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - old = value->data[0].v_pointer; -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (v_object) { -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TIMED_QUEUE_TYPE_ELEMENT)); -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - value->data[0].v_pointer = v_object; -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - timed_queue_element_ref (value->data[0].v_pointer); -#line 1478 "TimedQueue.c" - } else { -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - value->data[0].v_pointer = NULL; -#line 1482 "TimedQueue.c" - } -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (old) { -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - timed_queue_element_unref (old); -#line 1488 "TimedQueue.c" - } -} - - -static void -timed_queue_value_take_element (GValue* value, - gpointer v_object) -{ - TimedQueueElement * old; -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TIMED_QUEUE_TYPE_ELEMENT)); -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - old = value->data[0].v_pointer; -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (v_object) { -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TIMED_QUEUE_TYPE_ELEMENT)); -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - value->data[0].v_pointer = v_object; -#line 1510 "TimedQueue.c" - } else { -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - value->data[0].v_pointer = NULL; -#line 1514 "TimedQueue.c" - } -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (old) { -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - timed_queue_element_unref (old); -#line 1520 "TimedQueue.c" - } -} - - -static void -timed_queue_element_class_init (TimedQueueElementClass * klass) -{ -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - timed_queue_element_parent_class = g_type_class_peek_parent (klass); -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((TimedQueueElementClass *) klass)->finalize = timed_queue_element_finalize; -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_type_class_add_private (klass, sizeof (TimedQueueElementPrivate)); -#line 1534 "TimedQueue.c" -} - - -static void -timed_queue_element_instance_init (TimedQueueElement * self) -{ -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv = TIMED_QUEUE_ELEMENT_GET_PRIVATE (self); -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->ref_count = 1; -#line 1545 "TimedQueue.c" -} - - -static void -timed_queue_element_finalize (TimedQueueElement * obj) -{ - TimedQueueElement * self; -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TIMED_QUEUE_TYPE_ELEMENT, TimedQueueElement); -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_signal_handlers_destroy (self); -#line 23 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((self->item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (self->item = (self->priv->g_destroy_func (self->item), NULL)); -#line 1559 "TimedQueue.c" -} - - -static GType -timed_queue_element_get_type (void) -{ - static volatile gsize timed_queue_element_type_id__volatile = 0; - if (g_once_init_enter (&timed_queue_element_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { timed_queue_value_element_init, timed_queue_value_element_free_value, timed_queue_value_element_copy_value, timed_queue_value_element_peek_pointer, "p", timed_queue_value_element_collect_value, "p", timed_queue_value_element_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (TimedQueueElementClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) timed_queue_element_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TimedQueueElement), 0, (GInstanceInitFunc) timed_queue_element_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType timed_queue_element_type_id; - timed_queue_element_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TimedQueueElement", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&timed_queue_element_type_id__volatile, timed_queue_element_type_id); - } - return timed_queue_element_type_id__volatile; -} - - -static gpointer -timed_queue_element_ref (gpointer instance) -{ - TimedQueueElement * self; - self = instance; -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_atomic_int_inc (&self->ref_count); -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return instance; -#line 1588 "TimedQueue.c" -} - - -static void -timed_queue_element_unref (gpointer instance) -{ - TimedQueueElement * self; - self = instance; -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - TIMED_QUEUE_ELEMENT_GET_CLASS (self)->finalize (self); -#line 22 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1603 "TimedQueue.c" - } -} - - -static void -value_timed_queue_init (GValue* value) -{ -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - value->data[0].v_pointer = NULL; -#line 1613 "TimedQueue.c" -} - - -static void -value_timed_queue_free_value (GValue* value) -{ -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (value->data[0].v_pointer) { -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - timed_queue_unref (value->data[0].v_pointer); -#line 1624 "TimedQueue.c" - } -} - - -static void -value_timed_queue_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (src_value->data[0].v_pointer) { -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - dest_value->data[0].v_pointer = timed_queue_ref (src_value->data[0].v_pointer); -#line 1637 "TimedQueue.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - dest_value->data[0].v_pointer = NULL; -#line 1641 "TimedQueue.c" - } -} - - -static gpointer -value_timed_queue_peek_pointer (const GValue* value) -{ -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return value->data[0].v_pointer; -#line 1651 "TimedQueue.c" -} - - -static gchar* -value_timed_queue_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (collect_values[0].v_pointer) { -#line 1663 "TimedQueue.c" - TimedQueue * object; - object = collect_values[0].v_pointer; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (object->parent_instance.g_class == NULL) { -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1670 "TimedQueue.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1674 "TimedQueue.c" - } -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - value->data[0].v_pointer = timed_queue_ref (object); -#line 1678 "TimedQueue.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - value->data[0].v_pointer = NULL; -#line 1682 "TimedQueue.c" - } -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return NULL; -#line 1686 "TimedQueue.c" -} - - -static gchar* -value_timed_queue_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - TimedQueue ** object_p; - object_p = collect_values[0].v_pointer; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (!object_p) { -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1702 "TimedQueue.c" - } -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (!value->data[0].v_pointer) { -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - *object_p = NULL; -#line 1708 "TimedQueue.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - *object_p = value->data[0].v_pointer; -#line 1712 "TimedQueue.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - *object_p = timed_queue_ref (value->data[0].v_pointer); -#line 1716 "TimedQueue.c" - } -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return NULL; -#line 1720 "TimedQueue.c" -} - - -GParamSpec* -param_spec_timed_queue (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecTimedQueue* spec; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_TIMED_QUEUE), NULL); -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return G_PARAM_SPEC (spec); -#line 1740 "TimedQueue.c" -} - - -gpointer -value_get_timed_queue (const GValue* value) -{ -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TIMED_QUEUE), NULL); -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return value->data[0].v_pointer; -#line 1751 "TimedQueue.c" -} - - -void -value_set_timed_queue (GValue* value, - gpointer v_object) -{ - TimedQueue * old; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TIMED_QUEUE)); -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - old = value->data[0].v_pointer; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (v_object) { -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TIMED_QUEUE)); -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - value->data[0].v_pointer = v_object; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - timed_queue_ref (value->data[0].v_pointer); -#line 1774 "TimedQueue.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - value->data[0].v_pointer = NULL; -#line 1778 "TimedQueue.c" - } -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (old) { -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - timed_queue_unref (old); -#line 1784 "TimedQueue.c" - } -} - - -void -value_take_timed_queue (GValue* value, - gpointer v_object) -{ - TimedQueue * old; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TIMED_QUEUE)); -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - old = value->data[0].v_pointer; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (v_object) { -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TIMED_QUEUE)); -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - value->data[0].v_pointer = v_object; -#line 1806 "TimedQueue.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - value->data[0].v_pointer = NULL; -#line 1810 "TimedQueue.c" - } -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (old) { -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - timed_queue_unref (old); -#line 1816 "TimedQueue.c" - } -} - - -static void -timed_queue_class_init (TimedQueueClass * klass) -{ -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - timed_queue_parent_class = g_type_class_peek_parent (klass); -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((TimedQueueClass *) klass)->finalize = timed_queue_finalize; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_type_class_add_private (klass, sizeof (TimedQueuePrivate)); -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((TimedQueueClass *) klass)->notify_dequeued = (void (*) (TimedQueue *, gconstpointer)) timed_queue_real_notify_dequeued; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((TimedQueueClass *) klass)->clear = (void (*) (TimedQueue *)) timed_queue_real_clear; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((TimedQueueClass *) klass)->contains = (gboolean (*) (TimedQueue *, gconstpointer)) timed_queue_real_contains; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((TimedQueueClass *) klass)->enqueue = (gboolean (*) (TimedQueue *, gconstpointer)) timed_queue_real_enqueue; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((TimedQueueClass *) klass)->enqueue_many = (gboolean (*) (TimedQueue *, GeeCollection*)) timed_queue_real_enqueue_many; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((TimedQueueClass *) klass)->remove_first = (gboolean (*) (TimedQueue *, gconstpointer)) timed_queue_real_remove_first; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((TimedQueueClass *) klass)->paused = timed_queue_real_paused; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - TIMED_QUEUE_CLASS (klass)->get_size = timed_queue_real_get_size; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - timed_queue_signals[TIMED_QUEUE_PAUSED_SIGNAL] = g_signal_new ("paused", TYPE_TIMED_QUEUE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (TimedQueueClass, paused), NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); -#line 1848 "TimedQueue.c" -} - - -static void -timed_queue_instance_init (TimedQueue * self) -{ -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv = TIMED_QUEUE_GET_PRIVATE (self); -#line 40 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->timer_id = (guint) 0; -#line 42 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->dequeue_spacing_msec = (guint) 0; -#line 43 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->last_dequeue = (gulong) 0; -#line 44 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->paused_state = FALSE; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->ref_count = 1; -#line 1867 "TimedQueue.c" -} - - -static void -timed_queue_finalize (TimedQueue * obj) -{ - TimedQueue * self; - guint _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TIMED_QUEUE, TimedQueue); -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_signal_handlers_destroy (self); -#line 70 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = self->priv->timer_id; -#line 70 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (_tmp0_ != ((guint) 0)) { -#line 1884 "TimedQueue.c" - guint _tmp1_; -#line 71 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp1_ = self->priv->timer_id; -#line 71 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_source_remove (_tmp1_); -#line 1890 "TimedQueue.c" - } -#line 38 "/home/jens/Source/shotwell/src/TimedQueue.vala" - (self->priv->equal_func_target_destroy_notify == NULL) ? NULL : (self->priv->equal_func_target_destroy_notify (self->priv->equal_func_target), NULL); -#line 38 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->equal_func = NULL; -#line 38 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->equal_func_target = NULL; -#line 38 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->equal_func_target_destroy_notify = NULL; -#line 41 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _g_object_unref0 (self->priv->queue); -#line 1902 "TimedQueue.c" -} - - -GType -timed_queue_get_type (void) -{ - static volatile gsize timed_queue_type_id__volatile = 0; - if (g_once_init_enter (&timed_queue_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_timed_queue_init, value_timed_queue_free_value, value_timed_queue_copy_value, value_timed_queue_peek_pointer, "p", value_timed_queue_collect_value, "p", value_timed_queue_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (TimedQueueClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) timed_queue_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TimedQueue), 0, (GInstanceInitFunc) timed_queue_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType timed_queue_type_id; - timed_queue_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TimedQueue", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&timed_queue_type_id__volatile, timed_queue_type_id); - } - return timed_queue_type_id__volatile; -} - - -gpointer -timed_queue_ref (gpointer instance) -{ - TimedQueue * self; - self = instance; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_atomic_int_inc (&self->ref_count); -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return instance; -#line 1931 "TimedQueue.c" -} - - -void -timed_queue_unref (gpointer instance) -{ - TimedQueue * self; - self = instance; -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - TIMED_QUEUE_GET_CLASS (self)->finalize (self); -#line 21 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1946 "TimedQueue.c" - } -} - - -HashTimedQueue* -hash_timed_queue_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - guint hold_msec, - DequeuedCallback callback, - void* callback_target, - GeeHashDataFunc hash_func, - void* hash_func_target, - GDestroyNotify hash_func_target_destroy_notify, - GeeEqualDataFunc equal_func, - void* equal_func_target, - GDestroyNotify equal_func_target_destroy_notify, - gint priority) -{ - HashTimedQueue* self = NULL; - GeeEqualDataFunc _tmp0_; - void* _tmp0__target; - GDestroyNotify _tmp0__target_destroy_notify; - GeeHashDataFunc _tmp1_; - void* _tmp1__target; - GDestroyNotify _tmp1__target_destroy_notify; - GeeEqualDataFunc _tmp2_; - void* _tmp2__target; - GDestroyNotify _tmp2__target_destroy_notify; - GeeHashMap* _tmp3_; -#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = equal_func; -#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0__target = equal_func_target; -#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0__target_destroy_notify = equal_func_target_destroy_notify; -#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala" - equal_func = NULL; -#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala" - equal_func_target = NULL; -#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala" - equal_func_target_destroy_notify = NULL; -#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self = (HashTimedQueue*) timed_queue_construct (object_type, g_type, (GBoxedCopyFunc) g_dup_func, (GDestroyNotify) g_destroy_func, hold_msec, callback, callback_target, _tmp0_, _tmp0__target, _tmp0__target_destroy_notify, priority); -#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->g_type = g_type; -#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->g_dup_func = g_dup_func; -#line 220 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->g_destroy_func = g_destroy_func; -#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp1_ = hash_func; -#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp1__target = hash_func_target; -#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp1__target_destroy_notify = hash_func_target_destroy_notify; -#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala" - hash_func = NULL; -#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala" - hash_func_target = NULL; -#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala" - hash_func_target_destroy_notify = NULL; -#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp2_ = equal_func; -#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp2__target = equal_func_target; -#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp2__target_destroy_notify = equal_func_target_destroy_notify; -#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala" - equal_func = NULL; -#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala" - equal_func_target = NULL; -#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala" - equal_func_target_destroy_notify = NULL; -#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp3_ = gee_hash_map_new (g_type, (GBoxedCopyFunc) g_dup_func, (GDestroyNotify) g_destroy_func, G_TYPE_INT, NULL, NULL, _tmp1_, _tmp1__target, _tmp1__target_destroy_notify, _tmp2_, _tmp2__target, _tmp2__target_destroy_notify, NULL, NULL, NULL); -#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _g_object_unref0 (self->priv->item_count); -#line 222 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv->item_count = _tmp3_; -#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala" - (hash_func_target_destroy_notify == NULL) ? NULL : (hash_func_target_destroy_notify (hash_func_target), NULL); -#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala" - hash_func = NULL; -#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala" - hash_func_target = NULL; -#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala" - hash_func_target_destroy_notify = NULL; -#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala" - (equal_func_target_destroy_notify == NULL) ? NULL : (equal_func_target_destroy_notify (equal_func_target), NULL); -#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala" - equal_func = NULL; -#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala" - equal_func_target = NULL; -#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala" - equal_func_target_destroy_notify = NULL; -#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return self; -#line 2046 "TimedQueue.c" -} - - -HashTimedQueue* -hash_timed_queue_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - guint hold_msec, - DequeuedCallback callback, - void* callback_target, - GeeHashDataFunc hash_func, - void* hash_func_target, - GDestroyNotify hash_func_target_destroy_notify, - GeeEqualDataFunc equal_func, - void* equal_func_target, - GDestroyNotify equal_func_target_destroy_notify, - gint priority) -{ -#line 217 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return hash_timed_queue_construct (TYPE_HASH_TIMED_QUEUE, g_type, g_dup_func, g_destroy_func, hold_msec, callback, callback_target, hash_func, hash_func_target, hash_func_target_destroy_notify, equal_func, equal_func_target, equal_func_target_destroy_notify, priority); -#line 2067 "TimedQueue.c" -} - - -static void -hash_timed_queue_real_notify_dequeued (TimedQueue* base, - gconstpointer item) -{ - HashTimedQueue * self; -#line 225 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HASH_TIMED_QUEUE, HashTimedQueue); -#line 226 "/home/jens/Source/shotwell/src/TimedQueue.vala" - hash_timed_queue_removed (self, item); -#line 228 "/home/jens/Source/shotwell/src/TimedQueue.vala" - TIMED_QUEUE_CLASS (hash_timed_queue_parent_class)->notify_dequeued (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TIMED_QUEUE, TimedQueue), item); -#line 2082 "TimedQueue.c" -} - - -static void -hash_timed_queue_real_clear (TimedQueue* base) -{ - HashTimedQueue * self; - GeeHashMap* _tmp0_; -#line 231 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HASH_TIMED_QUEUE, HashTimedQueue); -#line 232 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = self->priv->item_count; -#line 232 "/home/jens/Source/shotwell/src/TimedQueue.vala" - gee_abstract_map_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 234 "/home/jens/Source/shotwell/src/TimedQueue.vala" - TIMED_QUEUE_CLASS (hash_timed_queue_parent_class)->clear (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TIMED_QUEUE, TimedQueue)); -#line 2099 "TimedQueue.c" -} - - -static gboolean -hash_timed_queue_real_contains (TimedQueue* base, - gconstpointer item) -{ - HashTimedQueue * self; - gboolean result = FALSE; - GeeHashMap* _tmp0_; -#line 237 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HASH_TIMED_QUEUE, HashTimedQueue); -#line 238 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = self->priv->item_count; -#line 238 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), item); -#line 238 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 2118 "TimedQueue.c" -} - - -static gboolean -hash_timed_queue_real_enqueue (TimedQueue* base, - gconstpointer item) -{ - HashTimedQueue * self; - gboolean result = FALSE; - gint _tmp0_ = 0; - GeeHashMap* _tmp1_; - GeeHashMap* _tmp4_; -#line 241 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HASH_TIMED_QUEUE, HashTimedQueue); -#line 242 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (!TIMED_QUEUE_CLASS (hash_timed_queue_parent_class)->enqueue (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TIMED_QUEUE, TimedQueue), item)) { -#line 243 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = FALSE; -#line 243 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 2139 "TimedQueue.c" - } -#line 245 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp1_ = self->priv->item_count; -#line 245 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), item)) { -#line 2145 "TimedQueue.c" - GeeHashMap* _tmp2_; - gpointer _tmp3_; -#line 245 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp2_ = self->priv->item_count; -#line 245 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), item); -#line 245 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = ((gint) ((gintptr) _tmp3_)) + 1; -#line 2154 "TimedQueue.c" - } else { -#line 245 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = 1; -#line 2158 "TimedQueue.c" - } -#line 245 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp4_ = self->priv->item_count; -#line 245 "/home/jens/Source/shotwell/src/TimedQueue.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), item, (gpointer) ((gintptr) _tmp0_)); -#line 247 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = TRUE; -#line 247 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 2168 "TimedQueue.c" -} - - -static gboolean -hash_timed_queue_real_enqueue_many (TimedQueue* base, - GeeCollection* items) -{ - HashTimedQueue * self; - gboolean result = FALSE; -#line 250 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HASH_TIMED_QUEUE, HashTimedQueue); -#line 250 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (items), FALSE); -#line 251 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (!TIMED_QUEUE_CLASS (hash_timed_queue_parent_class)->enqueue_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TIMED_QUEUE, TimedQueue), items)) { -#line 252 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = FALSE; -#line 252 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 2188 "TimedQueue.c" - } - { - GeeIterator* _item_it = NULL; - GeeIterator* _tmp0_; -#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (items, GEE_TYPE_ITERABLE, GeeIterable)); -#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _item_it = _tmp0_; -#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala" - while (TRUE) { -#line 2199 "TimedQueue.c" - GeeIterator* _tmp1_; - gpointer item = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - gint _tmp4_ = 0; - GeeHashMap* _tmp5_; - gconstpointer _tmp6_; - GeeHashMap* _tmp10_; - gconstpointer _tmp11_; -#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp1_ = _item_it; -#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala" - break; -#line 2215 "TimedQueue.c" - } -#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp2_ = _item_it; -#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala" - item = _tmp3_; -#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp5_ = self->priv->item_count; -#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp6_ = item; -#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp6_)) { -#line 2229 "TimedQueue.c" - GeeHashMap* _tmp7_; - gconstpointer _tmp8_; - gpointer _tmp9_; -#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp7_ = self->priv->item_count; -#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp8_ = item; -#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp9_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp8_); -#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp4_ = ((gint) ((gintptr) _tmp9_)) + 1; -#line 2241 "TimedQueue.c" - } else { -#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp4_ = 1; -#line 2245 "TimedQueue.c" - } -#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp10_ = self->priv->item_count; -#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp11_ = item; -#line 255 "/home/jens/Source/shotwell/src/TimedQueue.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp11_, (gpointer) ((gintptr) _tmp4_)); -#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((item == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (item = (self->priv->g_destroy_func (item), NULL)); -#line 2255 "TimedQueue.c" - } -#line 254 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _g_object_unref0 (_item_it); -#line 2259 "TimedQueue.c" - } -#line 257 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = TRUE; -#line 257 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 2265 "TimedQueue.c" -} - - -static gboolean -hash_timed_queue_real_remove_first (TimedQueue* base, - gconstpointer item) -{ - HashTimedQueue * self; - gboolean result = FALSE; -#line 260 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_HASH_TIMED_QUEUE, HashTimedQueue); -#line 261 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (!TIMED_QUEUE_CLASS (hash_timed_queue_parent_class)->remove_first (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_TIMED_QUEUE, TimedQueue), item)) { -#line 262 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = FALSE; -#line 262 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 2283 "TimedQueue.c" - } -#line 264 "/home/jens/Source/shotwell/src/TimedQueue.vala" - hash_timed_queue_removed (self, item); -#line 266 "/home/jens/Source/shotwell/src/TimedQueue.vala" - result = TRUE; -#line 266 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return result; -#line 2291 "TimedQueue.c" -} - - -static void -hash_timed_queue_removed (HashTimedQueue* self, - gconstpointer item) -{ - GeeHashMap* _tmp0_; - gint count = 0; - GeeHashMap* _tmp1_; - gpointer _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _tmp5_; -#line 269 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_return_if_fail (IS_HASH_TIMED_QUEUE (self)); -#line 272 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp0_ = self->priv->item_count; -#line 272 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), item)) { -#line 273 "/home/jens/Source/shotwell/src/TimedQueue.vala" - return; -#line 2314 "TimedQueue.c" - } -#line 275 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp1_ = self->priv->item_count; -#line 275 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), item); -#line 275 "/home/jens/Source/shotwell/src/TimedQueue.vala" - count = (gint) ((gintptr) _tmp2_); -#line 276 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp3_ = count; -#line 276 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _vala_assert (_tmp3_ > 0, "count > 0"); -#line 278 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp4_ = count; -#line 278 "/home/jens/Source/shotwell/src/TimedQueue.vala" - count = _tmp4_ - 1; -#line 278 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp5_ = count; -#line 278 "/home/jens/Source/shotwell/src/TimedQueue.vala" - if (_tmp5_ == 0) { -#line 2334 "TimedQueue.c" - GeeHashMap* _tmp6_; -#line 279 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp6_ = self->priv->item_count; -#line 279 "/home/jens/Source/shotwell/src/TimedQueue.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), item, NULL); -#line 2340 "TimedQueue.c" - } else { - GeeHashMap* _tmp7_; - gint _tmp8_; -#line 281 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp7_ = self->priv->item_count; -#line 281 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _tmp8_ = count; -#line 281 "/home/jens/Source/shotwell/src/TimedQueue.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), item, (gpointer) ((gintptr) _tmp8_)); -#line 2350 "TimedQueue.c" - } -} - - -static void -hash_timed_queue_class_init (HashTimedQueueClass * klass) -{ -#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala" - hash_timed_queue_parent_class = g_type_class_peek_parent (klass); -#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((TimedQueueClass *) klass)->finalize = hash_timed_queue_finalize; -#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala" - g_type_class_add_private (klass, sizeof (HashTimedQueuePrivate)); -#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((TimedQueueClass *) klass)->notify_dequeued = (void (*) (TimedQueue *, gconstpointer)) hash_timed_queue_real_notify_dequeued; -#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((TimedQueueClass *) klass)->clear = (void (*) (TimedQueue *)) hash_timed_queue_real_clear; -#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((TimedQueueClass *) klass)->contains = (gboolean (*) (TimedQueue *, gconstpointer)) hash_timed_queue_real_contains; -#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((TimedQueueClass *) klass)->enqueue = (gboolean (*) (TimedQueue *, gconstpointer)) hash_timed_queue_real_enqueue; -#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((TimedQueueClass *) klass)->enqueue_many = (gboolean (*) (TimedQueue *, GeeCollection*)) hash_timed_queue_real_enqueue_many; -#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala" - ((TimedQueueClass *) klass)->remove_first = (gboolean (*) (TimedQueue *, gconstpointer)) hash_timed_queue_real_remove_first; -#line 2376 "TimedQueue.c" -} - - -static void -hash_timed_queue_instance_init (HashTimedQueue * self) -{ -#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self->priv = HASH_TIMED_QUEUE_GET_PRIVATE (self); -#line 2385 "TimedQueue.c" -} - - -static void -hash_timed_queue_finalize (TimedQueue * obj) -{ - HashTimedQueue * self; -#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_HASH_TIMED_QUEUE, HashTimedQueue); -#line 215 "/home/jens/Source/shotwell/src/TimedQueue.vala" - _g_object_unref0 (self->priv->item_count); -#line 214 "/home/jens/Source/shotwell/src/TimedQueue.vala" - TIMED_QUEUE_CLASS (hash_timed_queue_parent_class)->finalize (obj); -#line 2399 "TimedQueue.c" -} - - -GType -hash_timed_queue_get_type (void) -{ - static volatile gsize hash_timed_queue_type_id__volatile = 0; - if (g_once_init_enter (&hash_timed_queue_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (HashTimedQueueClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) hash_timed_queue_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HashTimedQueue), 0, (GInstanceInitFunc) hash_timed_queue_instance_init, NULL }; - GType hash_timed_queue_type_id; - hash_timed_queue_type_id = g_type_register_static (TYPE_TIMED_QUEUE, "HashTimedQueue", &g_define_type_info, 0); - g_once_init_leave (&hash_timed_queue_type_id__volatile, hash_timed_queue_type_id); - } - return hash_timed_queue_type_id__volatile; -} - - - diff --git a/src/Tombstone.c b/src/Tombstone.c deleted file mode 100644 index 4f221d3..0000000 --- a/src/Tombstone.c +++ /dev/null @@ -1,3711 +0,0 @@ -/* Tombstone.c generated by valac 0.40.4, the Vala compiler - * generated from Tombstone.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; -typedef struct _DataCollectionPrivate DataCollectionPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; -typedef struct _SourceCollectionPrivate SourceCollectionPrivate; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ()) -#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink)) -#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) -#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK)) -#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK)) -#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) - -typedef struct _SourceBacklink SourceBacklink; -typedef struct _SourceBacklinkClass SourceBacklinkClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; -typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate; - -#define TYPE_TOMBSTONE_SOURCE_COLLECTION (tombstone_source_collection_get_type ()) -#define TOMBSTONE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollection)) -#define TOMBSTONE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollectionClass)) -#define IS_TOMBSTONE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION)) -#define IS_TOMBSTONE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE_SOURCE_COLLECTION)) -#define TOMBSTONE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollectionClass)) - -typedef struct _TombstoneSourceCollection TombstoneSourceCollection; -typedef struct _TombstoneSourceCollectionClass TombstoneSourceCollectionClass; -typedef struct _TombstoneSourceCollectionPrivate TombstoneSourceCollectionPrivate; - -#define TYPE_TOMBSTONE (tombstone_get_type ()) -#define TOMBSTONE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE, Tombstone)) -#define TOMBSTONE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE, TombstoneClass)) -#define IS_TOMBSTONE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE)) -#define IS_TOMBSTONE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE)) -#define TOMBSTONE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE, TombstoneClass)) - -typedef struct _Tombstone Tombstone; -typedef struct _TombstoneClass TombstoneClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_TOMBSTONE_ID (tombstone_id_get_type ()) -typedef struct _TombstoneID TombstoneID; -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_DIRECTORY_MONITOR (directory_monitor_get_type ()) -#define DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitor)) -#define DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass)) -#define IS_DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECTORY_MONITOR)) -#define IS_DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECTORY_MONITOR)) -#define DIRECTORY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass)) - -typedef struct _DirectoryMonitor DirectoryMonitor; -typedef struct _DirectoryMonitorClass DirectoryMonitorClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -typedef struct _TombstoneSourceCollectionAsyncScanData TombstoneSourceCollectionAsyncScanData; - -#define TYPE_TOMBSTONED_FILE (tombstoned_file_get_type ()) -#define TOMBSTONED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONED_FILE, TombstonedFile)) -#define TOMBSTONED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONED_FILE, TombstonedFileClass)) -#define IS_TOMBSTONED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONED_FILE)) -#define IS_TOMBSTONED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONED_FILE)) -#define TOMBSTONED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONED_FILE, TombstonedFileClass)) - -typedef struct _TombstonedFile TombstonedFile; -typedef struct _TombstonedFileClass TombstonedFileClass; -typedef struct _TombstonedFilePrivate TombstonedFilePrivate; -typedef struct _ParamSpecTombstonedFile ParamSpecTombstonedFile; -typedef struct _DataObjectPrivate DataObjectPrivate; -typedef struct _DataSourcePrivate DataSourcePrivate; - -#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ()) -#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)) -#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) -#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK)) -#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK)) -#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) - -typedef struct _SourceHoldingTank SourceHoldingTank; -typedef struct _SourceHoldingTankClass SourceHoldingTankClass; - -#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ()) -#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot)) -#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) -#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT)) -#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT)) -#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) - -typedef struct _SourceSnapshot SourceSnapshot; -typedef struct _SourceSnapshotClass SourceSnapshotClass; -typedef struct _TombstonePrivate TombstonePrivate; - -#define TYPE_TOMBSTONE_ROW (tombstone_row_get_type ()) -#define TOMBSTONE_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE_ROW, TombstoneRow)) -#define TOMBSTONE_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE_ROW, TombstoneRowClass)) -#define IS_TOMBSTONE_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE_ROW)) -#define IS_TOMBSTONE_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE_ROW)) -#define TOMBSTONE_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE_ROW, TombstoneRowClass)) - -typedef struct _TombstoneRow TombstoneRow; -typedef struct _TombstoneRowClass TombstoneRowClass; -enum { - TOMBSTONE_0_PROPERTY, - TOMBSTONE_NUM_PROPERTIES -}; -static GParamSpec* tombstone_properties[TOMBSTONE_NUM_PROPERTIES]; - -#define TOMBSTONE_TYPE_REASON (tombstone_reason_get_type ()) -#define _tombstone_row_unref0(var) ((var == NULL) ? NULL : (var = (tombstone_row_unref (var), NULL))) - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; - -#define TYPE_TOMBSTONE_TABLE (tombstone_table_get_type ()) -#define TOMBSTONE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE_TABLE, TombstoneTable)) -#define TOMBSTONE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE_TABLE, TombstoneTableClass)) -#define IS_TOMBSTONE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE_TABLE)) -#define IS_TOMBSTONE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE_TABLE)) -#define TOMBSTONE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE_TABLE, TombstoneTableClass)) - -typedef struct _TombstoneTable TombstoneTable; -typedef struct _TombstoneTableClass TombstoneTableClass; -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) - -#define TYPE_BACKING_FILE_STATE (backing_file_state_get_type ()) -#define BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_FILE_STATE, BackingFileState)) -#define BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_FILE_STATE, BackingFileStateClass)) -#define IS_BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_FILE_STATE)) -#define IS_BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_FILE_STATE)) -#define BACKING_FILE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_FILE_STATE, BackingFileStateClass)) - -typedef struct _BackingFileState BackingFileState; -typedef struct _BackingFileStateClass BackingFileStateClass; -typedef struct _BackingFileStatePrivate BackingFileStatePrivate; -#define _tombstoned_file_unref0(var) ((var == NULL) ? NULL : (var = (tombstoned_file_unref (var), NULL))) -#define _backing_file_state_unref0(var) ((var == NULL) ? NULL : (var = (backing_file_state_unref (var), NULL))) -typedef struct _TombstoneRowPrivate TombstoneRowPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -struct _DataCollection { - GTypeInstance parent_instance; - volatile int ref_count; - DataCollectionPrivate * priv; -}; - -struct _DataCollectionClass { - GTypeClass parent_class; - void (*finalize) (DataCollection *self); - gchar* (*to_string) (DataCollection* self); - void (*notify_items_added) (DataCollection* self, GeeIterable* added); - void (*notify_items_removed) (DataCollection* self, GeeIterable* removed); - void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*notify_items_altered) (DataCollection* self, GeeMap* items); - void (*notify_ordering_changed) (DataCollection* self); - void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*notify_property_cleared) (DataCollection* self, const gchar* name); - gboolean (*valid_type) (DataCollection* self, DataObject* object); - void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target); - void (*reset_comparator) (DataCollection* self); - GeeCollection* (*get_all) (DataCollection* self); - gint (*get_count) (DataCollection* self); - DataObject* (*get_at) (DataCollection* self, gint index); - gint (*index_of) (DataCollection* self, DataObject* object); - gboolean (*contains) (DataCollection* self, DataObject* object); - gboolean (*add) (DataCollection* self, DataObject* object); - GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target); - void (*remove_marked) (DataCollection* self, Marker* m); - void (*clear) (DataCollection* self); - void (*close) (DataCollection* self); - void (*notify_frozen) (DataCollection* self); - void (*notify_thawed) (DataCollection* self); - void (*items_added) (DataCollection* self, GeeIterable* added); - void (*items_removed) (DataCollection* self, GeeIterable* removed); - void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*items_altered) (DataCollection* self, GeeMap* items); - void (*ordering_changed) (DataCollection* self); - void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*property_cleared) (DataCollection* self, const gchar* name); - void (*frozen) (DataCollection* self); - void (*thawed) (DataCollection* self); -}; - -struct _SourceCollection { - DataCollection parent_instance; - SourceCollectionPrivate * priv; -}; - -struct _SourceCollectionClass { - DataCollectionClass parent_class; - gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source); - void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*notify_item_destroyed) (SourceCollection* self, DataSource* source); - void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked); - void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); - gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*item_destroyed) (SourceCollection* self, DataSource* source); - void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*unlinked_destroyed) (SourceCollection* self, DataSource* source); - void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); -}; - -struct _DatabaseSourceCollection { - SourceCollection parent_instance; - DatabaseSourceCollectionPrivate * priv; -}; - -struct _DatabaseSourceCollectionClass { - SourceCollectionClass parent_class; -}; - -struct _TombstoneSourceCollection { - DatabaseSourceCollection parent_instance; - TombstoneSourceCollectionPrivate * priv; -}; - -struct _TombstoneSourceCollectionClass { - DatabaseSourceCollectionClass parent_class; -}; - -struct _TombstoneSourceCollectionPrivate { - GeeHashMap* file_map; -}; - -typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data); -struct _TombstoneID { - gint64 id; -}; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -struct _TombstoneSourceCollectionAsyncScanData { - int _state_; - GObject* _source_object_; - GAsyncResult* _res_; - GTask* _async_result; - GAsyncReadyCallback _callback_; - gboolean _task_complete_; - TombstoneSourceCollection* self; - DirectoryMonitor* monitor; - GCancellable* cancellable; - Marker* marker; - Marker* _tmp0_; - GeeIterator* _object_it; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; - DataObject* object; - GeeIterator* _tmp6_; - gpointer _tmp7_; - Tombstone* tombstone; - DataObject* _tmp8_; - Tombstone* _tmp9_; - GFile* file; - Tombstone* _tmp10_; - GFile* _tmp11_; - GFileInfo* info; - GFile* _tmp12_; - GFileInfo* _tmp13_; - GFileInfo* _tmp14_; - GFileInfo* _tmp15_; - GFile* _tmp16_; - GFileInfo* _tmp17_; - GFileInfo* _tmp18_; - GError* err; - GError* _tmp19_; - GError* _tmp20_; - GFile* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - GError* _tmp24_; - const gchar* _tmp25_; - GFileInfo* _tmp26_; - Marker* _tmp27_; - Tombstone* _tmp28_; - Marker* _tmp29_; - Marker* _tmp30_; - Marker* _tmp31_; - GError* err2; - GError* _tmp32_; - GError * _inner_error_; -}; - -struct _TombstonedFile { - GTypeInstance parent_instance; - volatile int ref_count; - TombstonedFilePrivate * priv; - GFile* file; - gint64 filesize; - gchar* md5; -}; - -struct _TombstonedFileClass { - GTypeClass parent_class; - void (*finalize) (TombstonedFile *self); -}; - -struct _ParamSpecTombstonedFile { - GParamSpec parent_instance; -}; - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataSource { - DataObject parent_instance; - DataSourcePrivate * priv; -}; - -struct _DataSourceClass { - DataObjectClass parent_class; - void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank); - void (*notify_unlinking) (DataSource* self, SourceCollection* collection); - void (*notify_unlinked) (DataSource* self); - void (*notify_relinking) (DataSource* self, SourceCollection* collection); - void (*notify_relinked) (DataSource* self); - gchar* (*get_typename) (DataSource* self); - gint64 (*get_instance_id) (DataSource* self); - gchar* (*get_source_id) (DataSource* self); - void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated); - SourceSnapshot* (*save_snapshot) (DataSource* self); - gboolean (*internal_delete_backing) (DataSource* self, GError** error); - gboolean (*equals) (DataSource* self, DataSource* source); - void (*destroy) (DataSource* self); - void (*unlinked) (DataSource* self, SourceCollection* sources); - void (*relinked) (DataSource* self, SourceCollection* sources); - void (*destroyed) (DataSource* self); -}; - -struct _Tombstone { - DataSource parent_instance; - TombstonePrivate * priv; -}; - -struct _TombstoneClass { - DataSourceClass parent_class; -}; - -struct _TombstonePrivate { - TombstoneRow* row; - GFile* file; -}; - -typedef enum { - TOMBSTONE_REASON_REMOVED_BY_USER = 0, - TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE = 1 -} TombstoneReason; - -struct _BackingFileState { - GTypeInstance parent_instance; - volatile int ref_count; - BackingFileStatePrivate * priv; - gchar* filepath; - gint64 filesize; - time_t modification_time; - gchar* md5; -}; - -struct _BackingFileStateClass { - GTypeClass parent_class; - void (*finalize) (BackingFileState *self); -}; - -struct _TombstoneRow { - GTypeInstance parent_instance; - volatile int ref_count; - TombstoneRowPrivate * priv; - TombstoneID id; - gchar* filepath; - gint64 filesize; - gchar* md5; - time_t time_created; - TombstoneReason reason; -}; - -struct _TombstoneRowClass { - GTypeClass parent_class; - void (*finalize) (TombstoneRow *self); -}; - - -static gpointer tombstone_source_collection_parent_class = NULL; -static gpointer tombstoned_file_parent_class = NULL; -static gpointer tombstone_parent_class = NULL; -extern TombstoneSourceCollection* tombstone_global; -TombstoneSourceCollection* tombstone_global = NULL; - -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -GType marker_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -gpointer source_backlink_ref (gpointer instance); -void source_backlink_unref (gpointer instance); -GParamSpec* param_spec_source_backlink (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_backlink (GValue* value, - gpointer v_object); -void value_take_source_backlink (GValue* value, - gpointer v_object); -gpointer value_get_source_backlink (const GValue* value); -GType source_backlink_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType tombstone_source_collection_get_type (void) G_GNUC_CONST; -GType tombstone_get_type (void) G_GNUC_CONST; -#define TOMBSTONE_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollectionPrivate)) -guint file_hash (GFile* file); -static guint _file_hash_gee_hash_data_func (gconstpointer v, - gpointer self); -gboolean file_equal (GFile* a, - GFile* b); -static gboolean _file_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -TombstoneSourceCollection* tombstone_source_collection_new (void); -TombstoneSourceCollection* tombstone_source_collection_construct (GType object_type); -static gint64 tombstone_source_collection_get_tombstone_id (DataSource* source); -static gint64 _tombstone_source_collection_get_tombstone_id_get_source_database_key (DataSource* source, - gpointer self); -DatabaseSourceCollection* database_source_collection_construct (GType object_type, - const gchar* name, - GetSourceDatabaseKey source_key_func, - void* source_key_func_target); -static gboolean tombstone_source_collection_real_holds_type_of_source (SourceCollection* base, - DataSource* source); -GType tombstone_id_get_type (void) G_GNUC_CONST; -TombstoneID* tombstone_id_dup (const TombstoneID* self); -void tombstone_id_free (TombstoneID* self); -void tombstone_get_tombstone_id (Tombstone* self, - TombstoneID* result); -static void tombstone_source_collection_real_notify_contents_altered (DataCollection* base, - GeeIterable* added, - GeeIterable* removed); -GFile* tombstone_get_file (Tombstone* self); -void data_collection_notify_contents_altered (DataCollection* self, - GeeIterable* added, - GeeIterable* removed); -static void tombstone_source_collection_real_notify_items_altered (DataCollection* base, - GeeMap* items); -gboolean alteration_has_subject (Alteration* self, - const gchar* subject); -GeeCollection* alteration_get_details (Alteration* self, - const gchar* subject); -Tombstone* tombstone_source_collection_locate (TombstoneSourceCollection* self, - GFile* file); -gboolean tombstone_source_collection_matches (TombstoneSourceCollection* self, - GFile* file); -void tombstone_source_collection_resurrect (TombstoneSourceCollection* self, - Tombstone* tombstone); -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -gint source_collection_destroy_marked (SourceCollection* self, - Marker* marker, - gboolean delete_backing, - ProgressMonitor monitor, - void* monitor_target, - GeeList* not_removed); -Marker* data_collection_mark (DataCollection* self, - DataObject* object); -void tombstone_source_collection_resurrect_many (TombstoneSourceCollection* self, - GeeCollection* tombstones); -Marker* data_collection_mark_many (DataCollection* self, - GeeCollection* objects); -void data_collection_freeze_notifications (DataCollection* self); -void database_table_begin_transaction (void); -GQuark database_error_quark (void); -void database_table_commit_transaction (GError** error); -void app_window_database_error (GError* err); -void data_collection_thaw_notifications (DataCollection* self); -GType directory_monitor_get_type (void) G_GNUC_CONST; -void tombstone_source_collection_launch_scan (TombstoneSourceCollection* self, - DirectoryMonitor* monitor, - GCancellable* cancellable); -static void tombstone_source_collection_async_scan (TombstoneSourceCollection* self, - DirectoryMonitor* monitor, - GCancellable* cancellable, - GAsyncReadyCallback _callback_, - gpointer _user_data_); -static void tombstone_source_collection_async_scan_finish (TombstoneSourceCollection* self, - GAsyncResult* _res_); -static void tombstone_source_collection_async_scan_data_free (gpointer _data); -static void tombstone_source_collection_async_scan_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data); -static gboolean tombstone_source_collection_async_scan_co (TombstoneSourceCollectionAsyncScanData* _data_); -Marker* data_collection_start_marking (DataCollection* self); -GeeCollection* data_collection_get_all (DataCollection* self); -GFileInfo* directory_monitor_get_file_info (DirectoryMonitor* self, - GFile* file); -static void tombstone_source_collection_async_scan_ready (GObject* source_object, - GAsyncResult* _res_, - gpointer _user_data_); -void marker_mark (Marker* self, - DataObject* object); -static gboolean _tombstone_source_collection_async_scan_co_gsource_func (gpointer self); -gint marker_get_count (Marker* self); -static void tombstone_source_collection_finalize (DataCollection * obj); -gpointer tombstoned_file_ref (gpointer instance); -void tombstoned_file_unref (gpointer instance); -GParamSpec* param_spec_tombstoned_file (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_tombstoned_file (GValue* value, - gpointer v_object); -void value_take_tombstoned_file (GValue* value, - gpointer v_object); -gpointer value_get_tombstoned_file (const GValue* value); -GType tombstoned_file_get_type (void) G_GNUC_CONST; -TombstonedFile* tombstoned_file_new (GFile* file, - gint64 filesize, - const gchar* md5); -TombstonedFile* tombstoned_file_construct (GType object_type, - GFile* file, - gint64 filesize, - const gchar* md5); -static void tombstoned_file_finalize (TombstonedFile * obj); -gpointer source_holding_tank_ref (gpointer instance); -void source_holding_tank_unref (gpointer instance); -GParamSpec* param_spec_source_holding_tank (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_holding_tank (GValue* value, - gpointer v_object); -void value_take_source_holding_tank (GValue* value, - gpointer v_object); -gpointer value_get_source_holding_tank (const GValue* value); -GType source_holding_tank_get_type (void) G_GNUC_CONST; -gpointer source_snapshot_ref (gpointer instance); -void source_snapshot_unref (gpointer instance); -GParamSpec* param_spec_source_snapshot (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_snapshot (GValue* value, - gpointer v_object); -void value_take_source_snapshot (GValue* value, - gpointer v_object); -gpointer value_get_source_snapshot (const GValue* value); -GType source_snapshot_get_type (void) G_GNUC_CONST; -gpointer tombstone_row_ref (gpointer instance); -void tombstone_row_unref (gpointer instance); -GParamSpec* param_spec_tombstone_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_tombstone_row (GValue* value, - gpointer v_object); -void value_take_tombstone_row (GValue* value, - gpointer v_object); -gpointer value_get_tombstone_row (const GValue* value); -GType tombstone_row_get_type (void) G_GNUC_CONST; -#define TOMBSTONE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TOMBSTONE, TombstonePrivate)) -GType tombstone_reason_get_type (void) G_GNUC_CONST; -gint tombstone_reason_serialize (TombstoneReason self); -TombstoneReason tombstone_reason_unserialize (gint value); -static Tombstone* tombstone_new (TombstoneRow* row); -static Tombstone* tombstone_construct (GType object_type, - TombstoneRow* row); -#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1) -DataSource* data_source_construct (GType object_type, - gint64 object_id); -void tombstone_init (void); -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType tombstone_table_get_type (void) G_GNUC_CONST; -TombstoneTable* tombstone_table_get_instance (void); -TombstoneRow** tombstone_table_fetch_all (TombstoneTable* self, - int* result_length1, - GError** error); -GeeCollection* data_collection_add_many (DataCollection* self, - GeeCollection* objects, - ProgressMonitor monitor, - void* monitor_target); -void tombstone_terminate (void); -void tombstone_entomb_many_sources (GeeCollection* sources, - TombstoneReason reason, - GError** error); -gpointer backing_file_state_ref (gpointer instance); -void backing_file_state_unref (gpointer instance); -GParamSpec* param_spec_backing_file_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_backing_file_state (GValue* value, - gpointer v_object); -void value_take_backing_file_state (GValue* value, - gpointer v_object); -gpointer value_get_backing_file_state (const GValue* value); -GType backing_file_state_get_type (void) G_GNUC_CONST; -BackingFileState** media_source_get_backing_files_state (MediaSource* self, - int* result_length1); -GFile* backing_file_state_get_file (BackingFileState* self); -void tombstone_entomb_many_files (GeeCollection* files, - TombstoneReason reason, - GError** error); -TombstoneRow* tombstone_table_add (TombstoneTable* self, - const gchar* filepath, - gint64 filesize, - const gchar* md5, - TombstoneReason reason, - GError** error); -static gchar* tombstone_real_get_typename (DataSource* base); -static gint64 tombstone_real_get_instance_id (DataSource* base); -static gchar* tombstone_real_get_name (DataObject* base); -static gchar* tombstone_real_to_string (DataObject* base); -gchar* data_object_get_name (DataObject* self); -gchar* tombstone_get_md5 (Tombstone* self); -gboolean is_string_empty (const gchar* s); -TombstoneReason tombstone_get_reason (Tombstone* self); -void tombstone_move (Tombstone* self, - GFile* file); -void tombstone_table_update_file (TombstoneTable* self, - TombstoneID* tombstone_id, - const gchar* filepath, - GError** error); -void data_object_notify_altered (DataObject* self, - Alteration* alteration); -Alteration* alteration_new (const gchar* subject, - const gchar* detail); -Alteration* alteration_construct (GType object_type, - const gchar* subject, - const gchar* detail); -gboolean tombstone_matches (Tombstone* self, - GFile* file, - gint64 filesize, - const gchar* md5); -static void tombstone_real_destroy (DataSource* base); -void tombstone_table_remove (TombstoneTable* self, - TombstoneID* tombstone_id, - GError** error); -void data_source_destroy (DataSource* self); -static void tombstone_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static guint -_file_hash_gee_hash_data_func (gconstpointer v, - gpointer self) -{ - guint result; - result = file_hash ((GFile*) v); -#line 8 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 850 "Tombstone.c" -} - - -static gboolean -_file_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gboolean result; - result = file_equal ((GFile*) a, (GFile*) b); -#line 8 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 863 "Tombstone.c" -} - - -static gint64 -_tombstone_source_collection_get_tombstone_id_get_source_database_key (DataSource* source, - gpointer self) -{ - gint64 result; - result = tombstone_source_collection_get_tombstone_id (source); -#line 12 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 875 "Tombstone.c" -} - - -TombstoneSourceCollection* -tombstone_source_collection_construct (GType object_type) -{ - TombstoneSourceCollection* self = NULL; -#line 12 "/home/jens/Source/shotwell/src/Tombstone.vala" - self = (TombstoneSourceCollection*) database_source_collection_construct (object_type, "Tombstones", _tombstone_source_collection_get_tombstone_id_get_source_database_key, NULL); -#line 11 "/home/jens/Source/shotwell/src/Tombstone.vala" - return self; -#line 887 "Tombstone.c" -} - - -TombstoneSourceCollection* -tombstone_source_collection_new (void) -{ -#line 11 "/home/jens/Source/shotwell/src/Tombstone.vala" - return tombstone_source_collection_construct (TYPE_TOMBSTONE_SOURCE_COLLECTION); -#line 896 "Tombstone.c" -} - - -static gboolean -tombstone_source_collection_real_holds_type_of_source (SourceCollection* base, - DataSource* source) -{ - TombstoneSourceCollection * self; - gboolean result = FALSE; -#line 15 "/home/jens/Source/shotwell/src/Tombstone.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollection); -#line 15 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 16 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_TOMBSTONE); -#line 16 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 914 "Tombstone.c" -} - - -static gint64 -tombstone_source_collection_get_tombstone_id (DataSource* source) -{ - gint64 result = 0LL; - TombstoneID _tmp0_ = {0}; - gint64 _tmp1_; -#line 19 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), 0LL); -#line 20 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstone_get_tombstone_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_TOMBSTONE, Tombstone), &_tmp0_); -#line 20 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = _tmp0_.id; -#line 20 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = _tmp1_; -#line 20 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 934 "Tombstone.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 27 "/home/jens/Source/shotwell/src/Tombstone.vala" - return self ? g_object_ref (self) : NULL; -#line 943 "Tombstone.c" -} - - -static void -tombstone_source_collection_real_notify_contents_altered (DataCollection* base, - GeeIterable* added, - GeeIterable* removed) -{ - TombstoneSourceCollection * self; -#line 23 "/home/jens/Source/shotwell/src/Tombstone.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollection); -#line 23 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added)); -#line 23 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed)); -#line 25 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (added != NULL) { -#line 961 "Tombstone.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = gee_iterable_iterator (added); -#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala" - _object_it = _tmp0_; -#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala" - while (TRUE) { -#line 971 "Tombstone.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - Tombstone* tombstone = NULL; - DataObject* _tmp4_; - Tombstone* _tmp5_; - GeeHashMap* _tmp6_; - Tombstone* _tmp7_; - GFile* _tmp8_; - GFile* _tmp9_; - Tombstone* _tmp10_; -#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = _object_it; -#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala" - break; -#line 990 "Tombstone.c" - } -#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp2_ = _object_it; -#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala" - object = (DataObject*) _tmp3_; -#line 27 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp4_ = object; -#line 27 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_TOMBSTONE, Tombstone)); -#line 27 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstone = _tmp5_; -#line 29 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp6_ = self->priv->file_map; -#line 29 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp7_ = tombstone; -#line 29 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp8_ = tombstone_get_file (_tmp7_); -#line 29 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp9_ = _tmp8_; -#line 29 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp10_ = tombstone; -#line 29 "/home/jens/Source/shotwell/src/Tombstone.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, _tmp10_); -#line 29 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_tmp9_); -#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (tombstone); -#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (object); -#line 1022 "Tombstone.c" - } -#line 26 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_object_it); -#line 1026 "Tombstone.c" - } - } -#line 33 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (removed != NULL) { -#line 1031 "Tombstone.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp11_; -#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp11_ = gee_iterable_iterator (removed); -#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala" - _object_it = _tmp11_; -#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala" - while (TRUE) { -#line 1041 "Tombstone.c" - GeeIterator* _tmp12_; - DataObject* object = NULL; - GeeIterator* _tmp13_; - gpointer _tmp14_; - Tombstone* tombstone = NULL; - DataObject* _tmp15_; - Tombstone* _tmp16_; - GeeHashMap* _tmp17_; - Tombstone* _tmp18_; - GFile* _tmp19_; - GFile* _tmp20_; - gboolean _tmp21_; -#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp12_ = _object_it; -#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (!gee_iterator_next (_tmp12_)) { -#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala" - break; -#line 1060 "Tombstone.c" - } -#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp13_ = _object_it; -#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp14_ = gee_iterator_get (_tmp13_); -#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala" - object = (DataObject*) _tmp14_; -#line 35 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp15_ = object; -#line 35 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp16_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_TOMBSTONE, Tombstone)); -#line 35 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstone = _tmp16_; -#line 38 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp17_ = self->priv->file_map; -#line 38 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp18_ = tombstone; -#line 38 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp19_ = tombstone_get_file (_tmp18_); -#line 38 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp20_ = _tmp19_; -#line 38 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp21_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp20_); -#line 38 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_tmp20_); -#line 38 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_tmp21_) { -#line 1088 "Tombstone.c" - gboolean is_removed = FALSE; - GeeHashMap* _tmp22_; - Tombstone* _tmp23_; - GFile* _tmp24_; - GFile* _tmp25_; - gboolean _tmp26_; - gboolean _tmp27_; - gboolean _tmp28_; -#line 40 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp22_ = self->priv->file_map; -#line 40 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp23_ = tombstone; -#line 40 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp24_ = tombstone_get_file (_tmp23_); -#line 40 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp25_ = _tmp24_; -#line 40 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp26_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp25_, NULL); -#line 40 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp27_ = _tmp26_; -#line 40 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_tmp25_); -#line 40 "/home/jens/Source/shotwell/src/Tombstone.vala" - is_removed = _tmp27_; -#line 41 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp28_ = is_removed; -#line 41 "/home/jens/Source/shotwell/src/Tombstone.vala" - _vala_assert (_tmp28_, "is_removed"); -#line 1117 "Tombstone.c" - } -#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (tombstone); -#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (object); -#line 1123 "Tombstone.c" - } -#line 34 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_object_it); -#line 1127 "Tombstone.c" - } - } -#line 49 "/home/jens/Source/shotwell/src/Tombstone.vala" - DATA_COLLECTION_CLASS (tombstone_source_collection_parent_class)->notify_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_DATA_COLLECTION, DataCollection), added, removed); -#line 1132 "Tombstone.c" -} - - -static void -tombstone_source_collection_real_notify_items_altered (DataCollection* base, - GeeMap* items) -{ - TombstoneSourceCollection * self; -#line 52 "/home/jens/Source/shotwell/src/Tombstone.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollection); -#line 52 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail (GEE_IS_MAP (items)); -#line 1145 "Tombstone.c" - { - GeeIterator* _object_it = NULL; - GeeSet* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = gee_map_get_keys (items); -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = _tmp0_; -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp2_ = _tmp1_; -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp4_ = _tmp3_; -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_tmp2_); -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - _object_it = _tmp4_; -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - while (TRUE) { -#line 1169 "Tombstone.c" - GeeIterator* _tmp5_; - DataObject* object = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - Alteration* alteration = NULL; - DataObject* _tmp8_; - gpointer _tmp9_; - Alteration* _tmp10_; - Tombstone* tombstone = NULL; - DataObject* _tmp11_; - Tombstone* _tmp12_; -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp5_ = _object_it; -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - break; -#line 1187 "Tombstone.c" - } -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp6_ = _object_it; -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - object = (DataObject*) _tmp7_; -#line 54 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp8_ = object; -#line 54 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp9_ = gee_map_get (items, _tmp8_); -#line 54 "/home/jens/Source/shotwell/src/Tombstone.vala" - alteration = (Alteration*) _tmp9_; -#line 55 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp10_ = alteration; -#line 55 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (!alteration_has_subject (_tmp10_, "file")) { -#line 56 "/home/jens/Source/shotwell/src/Tombstone.vala" - _alteration_unref0 (alteration); -#line 56 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (object); -#line 56 "/home/jens/Source/shotwell/src/Tombstone.vala" - continue; -#line 1211 "Tombstone.c" - } -#line 58 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp11_ = object; -#line 58 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_TOMBSTONE, Tombstone)); -#line 58 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstone = _tmp12_; -#line 1219 "Tombstone.c" - { - GeeIterator* _detail_it = NULL; - Alteration* _tmp13_; - GeeCollection* _tmp14_; - GeeCollection* _tmp15_; - GeeIterator* _tmp16_; - GeeIterator* _tmp17_; -#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp13_ = alteration; -#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp14_ = alteration_get_details (_tmp13_, "file"); -#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp15_ = _tmp14_; -#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp16_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp17_ = _tmp16_; -#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_tmp15_); -#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala" - _detail_it = _tmp17_; -#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala" - while (TRUE) { -#line 1243 "Tombstone.c" - GeeIterator* _tmp18_; - gchar* detail = NULL; - GeeIterator* _tmp19_; - gpointer _tmp20_; - GFile* old_file = NULL; - const gchar* _tmp21_; - GFile* _tmp22_; - gboolean removed = FALSE; - GeeHashMap* _tmp23_; - GFile* _tmp24_; - gboolean _tmp25_; - gboolean _tmp26_; - GeeHashMap* _tmp27_; - Tombstone* _tmp28_; - GFile* _tmp29_; - GFile* _tmp30_; - Tombstone* _tmp31_; -#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp18_ = _detail_it; -#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (!gee_iterator_next (_tmp18_)) { -#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala" - break; -#line 1267 "Tombstone.c" - } -#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp19_ = _detail_it; -#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp20_ = gee_iterator_get (_tmp19_); -#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala" - detail = (gchar*) _tmp20_; -#line 61 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp21_ = detail; -#line 61 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp22_ = g_file_new_for_path (_tmp21_); -#line 61 "/home/jens/Source/shotwell/src/Tombstone.vala" - old_file = _tmp22_; -#line 63 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp23_ = self->priv->file_map; -#line 63 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp24_ = old_file; -#line 63 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp25_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp24_, NULL); -#line 63 "/home/jens/Source/shotwell/src/Tombstone.vala" - removed = _tmp25_; -#line 64 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp26_ = removed; -#line 64 "/home/jens/Source/shotwell/src/Tombstone.vala" - _vala_assert (_tmp26_, "removed"); -#line 66 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp27_ = self->priv->file_map; -#line 66 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp28_ = tombstone; -#line 66 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp29_ = tombstone_get_file (_tmp28_); -#line 66 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp30_ = _tmp29_; -#line 66 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp31_ = tombstone; -#line 66 "/home/jens/Source/shotwell/src/Tombstone.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp30_, _tmp31_); -#line 66 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_tmp30_); -#line 68 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (old_file); -#line 68 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_free0 (detail); -#line 68 "/home/jens/Source/shotwell/src/Tombstone.vala" - break; -#line 1313 "Tombstone.c" - } -#line 60 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_detail_it); -#line 1317 "Tombstone.c" - } -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (tombstone); -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - _alteration_unref0 (alteration); -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (object); -#line 1325 "Tombstone.c" - } -#line 53 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_object_it); -#line 1329 "Tombstone.c" - } -} - - -Tombstone* -tombstone_source_collection_locate (TombstoneSourceCollection* self, - GFile* file) -{ - Tombstone* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 73 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_val_if_fail (IS_TOMBSTONE_SOURCE_COLLECTION (self), NULL); -#line 73 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 74 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = self->priv->file_map; -#line 74 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file); -#line 74 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = (Tombstone*) _tmp1_; -#line 74 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 1353 "Tombstone.c" -} - - -gboolean -tombstone_source_collection_matches (TombstoneSourceCollection* self, - GFile* file) -{ - gboolean result = FALSE; - GeeHashMap* _tmp0_; -#line 77 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_val_if_fail (IS_TOMBSTONE_SOURCE_COLLECTION (self), FALSE); -#line 77 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 78 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = self->priv->file_map; -#line 78 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file); -#line 78 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 1373 "Tombstone.c" -} - - -void -tombstone_source_collection_resurrect (TombstoneSourceCollection* self, - Tombstone* tombstone) -{ - Marker* _tmp0_; - Marker* _tmp1_; -#line 81 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail (IS_TOMBSTONE_SOURCE_COLLECTION (self)); -#line 81 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail (IS_TOMBSTONE (tombstone)); -#line 82 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (tombstone, TYPE_DATA_OBJECT, DataObject)); -#line 82 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = _tmp0_; -#line 82 "/home/jens/Source/shotwell/src/Tombstone.vala" - source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp1_, FALSE, NULL, NULL, NULL); -#line 82 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_tmp1_); -#line 1395 "Tombstone.c" -} - - -void -tombstone_source_collection_resurrect_many (TombstoneSourceCollection* self, - GeeCollection* tombstones) -{ - Marker* marker = NULL; - Marker* _tmp0_; - GError * _inner_error_ = NULL; -#line 85 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail (IS_TOMBSTONE_SOURCE_COLLECTION (self)); -#line 85 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail (GEE_IS_COLLECTION (tombstones)); -#line 86 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = data_collection_mark_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), tombstones); -#line 86 "/home/jens/Source/shotwell/src/Tombstone.vala" - marker = _tmp0_; -#line 88 "/home/jens/Source/shotwell/src/Tombstone.vala" - data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 89 "/home/jens/Source/shotwell/src/Tombstone.vala" - database_table_begin_transaction (); -#line 91 "/home/jens/Source/shotwell/src/Tombstone.vala" - source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), marker, FALSE, NULL, NULL, NULL); -#line 1420 "Tombstone.c" - { -#line 94 "/home/jens/Source/shotwell/src/Tombstone.vala" - database_table_commit_transaction (&_inner_error_); -#line 94 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 94 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1428 "Tombstone.c" - goto __catch557_database_error; - } -#line 94 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (marker); -#line 94 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 94 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_clear_error (&_inner_error_); -#line 94 "/home/jens/Source/shotwell/src/Tombstone.vala" - return; -#line 1439 "Tombstone.c" - } - } - goto __finally557; - __catch557_database_error: - { - GError* err = NULL; - GError* _tmp1_; -#line 93 "/home/jens/Source/shotwell/src/Tombstone.vala" - err = _inner_error_; -#line 93 "/home/jens/Source/shotwell/src/Tombstone.vala" - _inner_error_ = NULL; -#line 96 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = err; -#line 96 "/home/jens/Source/shotwell/src/Tombstone.vala" - app_window_database_error (_tmp1_); -#line 93 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_error_free0 (err); -#line 1457 "Tombstone.c" - } - __finally557: -#line 93 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 93 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (marker); -#line 93 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 93 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_clear_error (&_inner_error_); -#line 93 "/home/jens/Source/shotwell/src/Tombstone.vala" - return; -#line 1470 "Tombstone.c" - } -#line 99 "/home/jens/Source/shotwell/src/Tombstone.vala" - data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 85 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (marker); -#line 1476 "Tombstone.c" -} - - -void -tombstone_source_collection_launch_scan (TombstoneSourceCollection* self, - DirectoryMonitor* monitor, - GCancellable* cancellable) -{ -#line 108 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail (IS_TOMBSTONE_SOURCE_COLLECTION (self)); -#line 108 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail ((monitor == NULL) || IS_DIRECTORY_MONITOR (monitor)); -#line 108 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable)); -#line 109 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstone_source_collection_async_scan (self, monitor, cancellable, NULL, NULL); -#line 1493 "Tombstone.c" -} - - -static void -tombstone_source_collection_async_scan_data_free (gpointer _data) -{ - TombstoneSourceCollectionAsyncScanData* _data_; - _data_ = _data; -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->monitor); -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->cancellable); -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_collection_unref0 (_data_->self); -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_slice_free (TombstoneSourceCollectionAsyncScanData, _data_); -#line 1510 "Tombstone.c" -} - - -static void -tombstone_source_collection_async_scan_async_ready_wrapper (GObject *source_object, - GAsyncResult *res, - void *user_data) -{ - TombstoneSourceCollectionAsyncScanData* _task_data_; -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _task_data_ = g_task_get_task_data (G_TASK (res)); -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_task_data_->_callback_ != NULL) { -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _task_data_->_callback_ (source_object, res, user_data); -#line 1526 "Tombstone.c" - } -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _task_data_->_task_complete_ = TRUE; -#line 1530 "Tombstone.c" -} - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - return self ? data_collection_ref (self) : NULL; -#line 1539 "Tombstone.c" -} - - -static void -tombstone_source_collection_async_scan (TombstoneSourceCollection* self, - DirectoryMonitor* monitor, - GCancellable* cancellable, - GAsyncReadyCallback _callback_, - gpointer _user_data_) -{ - TombstoneSourceCollectionAsyncScanData* _data_; - TombstoneSourceCollection* _tmp0_; - DirectoryMonitor* _tmp1_; - GCancellable* _tmp2_; -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_ = g_slice_new0 (TombstoneSourceCollectionAsyncScanData); -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_callback_ = _callback_; -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_async_result = g_task_new (NULL, cancellable, tombstone_source_collection_async_scan_async_ready_wrapper, _user_data_); -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_callback_ == NULL) { -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_task_complete_ = TRUE; -#line 1564 "Tombstone.c" - } -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_task_set_task_data (_data_->_async_result, _data_, tombstone_source_collection_async_scan_data_free); -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = _data_collection_ref0 (self); -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->self = _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = _g_object_ref0 (monitor); -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->monitor); -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->monitor = _tmp1_; -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp2_ = _g_object_ref0 (cancellable); -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->cancellable); -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->cancellable = _tmp2_; -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstone_source_collection_async_scan_co (_data_); -#line 1586 "Tombstone.c" -} - - -static void -tombstone_source_collection_async_scan_finish (TombstoneSourceCollection* self, - GAsyncResult* _res_) -{ - TombstoneSourceCollectionAsyncScanData* _data_; -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_ = g_task_propagate_pointer (G_TASK (_res_), NULL); -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (NULL == _data_) { -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - return; -#line 1601 "Tombstone.c" - } -} - - -static void -tombstone_source_collection_async_scan_ready (GObject* source_object, - GAsyncResult* _res_, - gpointer _user_data_) -{ - TombstoneSourceCollectionAsyncScanData* _data_; -#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_ = _user_data_; -#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_source_object_ = source_object; -#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_res_ = _res_; -#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_task_complete_ = TRUE; -#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstone_source_collection_async_scan_co (_data_); -#line 1622 "Tombstone.c" -} - - -static gboolean -_tombstone_source_collection_async_scan_co_gsource_func (gpointer self) -{ - gboolean result; - result = tombstone_source_collection_async_scan_co (self); -#line 145 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 1633 "Tombstone.c" -} - - -static gboolean -tombstone_source_collection_async_scan_co (TombstoneSourceCollectionAsyncScanData* _data_) -{ -#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala" - switch (_data_->_state_) { -#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala" - case 0: -#line 1644 "Tombstone.c" - goto _state_0; -#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala" - case 1: -#line 1648 "Tombstone.c" - goto _state_1; -#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala" - case 2: -#line 1652 "Tombstone.c" - goto _state_2; - default: -#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_assert_not_reached (); -#line 1657 "Tombstone.c" - } - _state_0: -#line 114 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp0_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, TYPE_DATA_COLLECTION, DataCollection)); -#line 114 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->marker = _data_->_tmp0_; -#line 1664 "Tombstone.c" - { -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp1_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, TYPE_DATA_COLLECTION, DataCollection)); -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp2_ = _data_->_tmp1_; -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp4_ = _data_->_tmp3_; -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->_tmp2_); -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_object_it = _data_->_tmp4_; -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - while (TRUE) { -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp5_ = _data_->_object_it; -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (!gee_iterator_next (_data_->_tmp5_)) { -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - break; -#line 1686 "Tombstone.c" - } -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp6_ = _data_->_object_it; -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp7_ = gee_iterator_get (_data_->_tmp6_); -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->object = (DataObject*) _data_->_tmp7_; -#line 116 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp8_ = _data_->object; -#line 116 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp8_, TYPE_TOMBSTONE, Tombstone)); -#line 116 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->tombstone = _data_->_tmp9_; -#line 117 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp10_ = _data_->tombstone; -#line 117 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp11_ = tombstone_get_file (_data_->_tmp10_); -#line 117 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->file = _data_->_tmp11_; -#line 119 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->info = NULL; -#line 120 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_data_->monitor != NULL) { -#line 121 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp12_ = _data_->file; -#line 121 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp13_ = directory_monitor_get_file_info (_data_->monitor, _data_->_tmp12_); -#line 121 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->info); -#line 121 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->info = _data_->_tmp13_; -#line 1718 "Tombstone.c" - } -#line 125 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp14_ = _data_->info; -#line 125 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_data_->_tmp14_ == NULL) { -#line 1724 "Tombstone.c" - { -#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp16_ = _data_->file; -#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_state_ = 1; -#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_file_query_info_async (_data_->_tmp16_, G_FILE_ATTRIBUTE_STANDARD_NAME, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, G_PRIORITY_LOW, _data_->cancellable, tombstone_source_collection_async_scan_ready, _data_); -#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" - return FALSE; -#line 1734 "Tombstone.c" - _state_1: -#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp17_ = g_file_query_info_finish (_data_->_tmp16_, _data_->_res_, &_data_->_inner_error_); -#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp15_ = _data_->_tmp17_; -#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 1742 "Tombstone.c" - goto __catch558_g_error; - } -#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp18_ = _data_->_tmp15_; -#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp15_ = NULL; -#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->info); -#line 127 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->info = _data_->_tmp18_; -#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->_tmp15_); -#line 1755 "Tombstone.c" - } - goto __finally558; - __catch558_g_error: - { -#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->err = _data_->_inner_error_; -#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_inner_error_ = NULL; -#line 131 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp19_ = _data_->err; -#line 131 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (g_error_matches (_data_->_tmp19_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) { -#line 132 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_error_free0 (_data_->err); -#line 132 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->info); -#line 132 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->file); -#line 132 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->tombstone); -#line 132 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->object); -#line 132 "/home/jens/Source/shotwell/src/Tombstone.vala" - break; -#line 1780 "Tombstone.c" - } -#line 134 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp20_ = _data_->err; -#line 134 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (!g_error_matches (_data_->_tmp20_, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) { -#line 135 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp21_ = _data_->file; -#line 135 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp22_ = g_file_get_path (_data_->_tmp21_); -#line 135 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp23_ = _data_->_tmp22_; -#line 135 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp24_ = _data_->err; -#line 135 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp25_ = _data_->_tmp24_->message; -#line 135 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_warning ("Tombstone.vala:135: Unable to check for existence of tombstoned file %" \ -"s: %s", _data_->_tmp23_, _data_->_tmp25_); -#line 135 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_free0 (_data_->_tmp23_); -#line 1800 "Tombstone.c" - } -#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_error_free0 (_data_->err); -#line 1804 "Tombstone.c" - } - __finally558: -#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->info); -#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->file); -#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->tombstone); -#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->object); -#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->_object_it); -#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->marker); -#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); -#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_clear_error (&_data_->_inner_error_); -#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_object_unref (_data_->_async_result); -#line 126 "/home/jens/Source/shotwell/src/Tombstone.vala" - return FALSE; -#line 1829 "Tombstone.c" - } - } -#line 142 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp26_ = _data_->info; -#line 142 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_data_->_tmp26_ == NULL) { -#line 143 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp27_ = _data_->marker; -#line 143 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp28_ = _data_->tombstone; -#line 143 "/home/jens/Source/shotwell/src/Tombstone.vala" - marker_mark (_data_->_tmp27_, G_TYPE_CHECK_INSTANCE_CAST (_data_->_tmp28_, TYPE_DATA_OBJECT, DataObject)); -#line 1842 "Tombstone.c" - } -#line 145 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _tombstone_source_collection_async_scan_co_gsource_func, _data_, NULL); -#line 146 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_state_ = 2; -#line 146 "/home/jens/Source/shotwell/src/Tombstone.vala" - return FALSE; -#line 1850 "Tombstone.c" - _state_2: - ; -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->info); -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->file); -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->tombstone); -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->object); -#line 1861 "Tombstone.c" - } -#line 115 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->_object_it); -#line 1865 "Tombstone.c" - } -#line 149 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp29_ = _data_->marker; -#line 149 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (marker_get_count (_data_->_tmp29_) > 0) { -#line 150 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp30_ = _data_->marker; -#line 150 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_debug ("Tombstone.vala:150: Resurrecting %d tombstones with no backing file", marker_get_count (_data_->_tmp30_)); -#line 151 "/home/jens/Source/shotwell/src/Tombstone.vala" - database_table_begin_transaction (); -#line 152 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp31_ = _data_->marker; -#line 152 "/home/jens/Source/shotwell/src/Tombstone.vala" - source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, TYPE_SOURCE_COLLECTION, SourceCollection), _data_->_tmp31_, FALSE, NULL, NULL, NULL); -#line 1881 "Tombstone.c" - { -#line 154 "/home/jens/Source/shotwell/src/Tombstone.vala" - database_table_commit_transaction (&_data_->_inner_error_); -#line 154 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 154 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_data_->_inner_error_->domain == DATABASE_ERROR) { -#line 1889 "Tombstone.c" - goto __catch559_database_error; - } -#line 154 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->marker); -#line 154 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); -#line 154 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_clear_error (&_data_->_inner_error_); -#line 154 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_object_unref (_data_->_async_result); -#line 154 "/home/jens/Source/shotwell/src/Tombstone.vala" - return FALSE; -#line 1902 "Tombstone.c" - } - } - goto __finally559; - __catch559_database_error: - { -#line 153 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->err2 = _data_->_inner_error_; -#line 153 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_inner_error_ = NULL; -#line 156 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_->_tmp32_ = _data_->err2; -#line 156 "/home/jens/Source/shotwell/src/Tombstone.vala" - app_window_database_error (_data_->_tmp32_); -#line 153 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_error_free0 (_data_->err2); -#line 1918 "Tombstone.c" - } - __finally559: -#line 153 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (G_UNLIKELY (_data_->_inner_error_ != NULL)) { -#line 153 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->marker); -#line 153 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code); -#line 153 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_clear_error (&_data_->_inner_error_); -#line 153 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_object_unref (_data_->_async_result); -#line 153 "/home/jens/Source/shotwell/src/Tombstone.vala" - return FALSE; -#line 1933 "Tombstone.c" - } - } -#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_data_->marker); -#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_task_return_pointer (_data_->_async_result, _data_, NULL); -#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_data_->_state_ != 0) { -#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala" - while (_data_->_task_complete_ != TRUE) { -#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE); -#line 1946 "Tombstone.c" - } - } -#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_object_unref (_data_->_async_result); -#line 112 "/home/jens/Source/shotwell/src/Tombstone.vala" - return FALSE; -#line 1953 "Tombstone.c" -} - - -static void -tombstone_source_collection_class_init (TombstoneSourceCollectionClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstone_source_collection_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - ((DataCollectionClass *) klass)->finalize = tombstone_source_collection_finalize; -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_type_class_add_private (klass, sizeof (TombstoneSourceCollectionPrivate)); -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*) (SourceCollection *, DataSource*)) tombstone_source_collection_real_holds_type_of_source; -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - ((DataCollectionClass *) klass)->notify_contents_altered = (void (*) (DataCollection *, GeeIterable*, GeeIterable*)) tombstone_source_collection_real_notify_contents_altered; -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - ((DataCollectionClass *) klass)->notify_items_altered = (void (*) (DataCollection *, GeeMap*)) tombstone_source_collection_real_notify_items_altered; -#line 1972 "Tombstone.c" -} - - -static void -tombstone_source_collection_instance_init (TombstoneSourceCollection * self) -{ - GeeHashMap* _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - self->priv = TOMBSTONE_SOURCE_COLLECTION_GET_PRIVATE (self); -#line 8 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_TOMBSTONE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); -#line 8 "/home/jens/Source/shotwell/src/Tombstone.vala" - self->priv->file_map = _tmp0_; -#line 1986 "Tombstone.c" -} - - -static void -tombstone_source_collection_finalize (DataCollection * obj) -{ - TombstoneSourceCollection * self; -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TOMBSTONE_SOURCE_COLLECTION, TombstoneSourceCollection); -#line 8 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (self->priv->file_map); -#line 7 "/home/jens/Source/shotwell/src/Tombstone.vala" - DATA_COLLECTION_CLASS (tombstone_source_collection_parent_class)->finalize (obj); -#line 2000 "Tombstone.c" -} - - -GType -tombstone_source_collection_get_type (void) -{ - static volatile gsize tombstone_source_collection_type_id__volatile = 0; - if (g_once_init_enter (&tombstone_source_collection_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TombstoneSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tombstone_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TombstoneSourceCollection), 0, (GInstanceInitFunc) tombstone_source_collection_instance_init, NULL }; - GType tombstone_source_collection_type_id; - tombstone_source_collection_type_id = g_type_register_static (TYPE_DATABASE_SOURCE_COLLECTION, "TombstoneSourceCollection", &g_define_type_info, 0); - g_once_init_leave (&tombstone_source_collection_type_id__volatile, tombstone_source_collection_type_id); - } - return tombstone_source_collection_type_id__volatile; -} - - -TombstonedFile* -tombstoned_file_construct (GType object_type, - GFile* file, - gint64 filesize, - const gchar* md5) -{ - TombstonedFile* self = NULL; - GFile* _tmp0_; - gchar* _tmp1_; -#line 167 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 167 "/home/jens/Source/shotwell/src/Tombstone.vala" - self = (TombstonedFile*) g_type_create_instance (object_type); -#line 168 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = _g_object_ref0 (file); -#line 168 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (self->file); -#line 168 "/home/jens/Source/shotwell/src/Tombstone.vala" - self->file = _tmp0_; -#line 169 "/home/jens/Source/shotwell/src/Tombstone.vala" - self->filesize = filesize; -#line 170 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = g_strdup (md5); -#line 170 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_free0 (self->md5); -#line 170 "/home/jens/Source/shotwell/src/Tombstone.vala" - self->md5 = _tmp1_; -#line 167 "/home/jens/Source/shotwell/src/Tombstone.vala" - return self; -#line 2047 "Tombstone.c" -} - - -TombstonedFile* -tombstoned_file_new (GFile* file, - gint64 filesize, - const gchar* md5) -{ -#line 167 "/home/jens/Source/shotwell/src/Tombstone.vala" - return tombstoned_file_construct (TYPE_TOMBSTONED_FILE, file, filesize, md5); -#line 2058 "Tombstone.c" -} - - -static void -value_tombstoned_file_init (GValue* value) -{ -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - value->data[0].v_pointer = NULL; -#line 2067 "Tombstone.c" -} - - -static void -value_tombstoned_file_free_value (GValue* value) -{ -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (value->data[0].v_pointer) { -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstoned_file_unref (value->data[0].v_pointer); -#line 2078 "Tombstone.c" - } -} - - -static void -value_tombstoned_file_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (src_value->data[0].v_pointer) { -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - dest_value->data[0].v_pointer = tombstoned_file_ref (src_value->data[0].v_pointer); -#line 2091 "Tombstone.c" - } else { -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - dest_value->data[0].v_pointer = NULL; -#line 2095 "Tombstone.c" - } -} - - -static gpointer -value_tombstoned_file_peek_pointer (const GValue* value) -{ -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - return value->data[0].v_pointer; -#line 2105 "Tombstone.c" -} - - -static gchar* -value_tombstoned_file_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (collect_values[0].v_pointer) { -#line 2117 "Tombstone.c" - TombstonedFile * object; - object = collect_values[0].v_pointer; -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (object->parent_instance.g_class == NULL) { -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2124 "Tombstone.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2128 "Tombstone.c" - } -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - value->data[0].v_pointer = tombstoned_file_ref (object); -#line 2132 "Tombstone.c" - } else { -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - value->data[0].v_pointer = NULL; -#line 2136 "Tombstone.c" - } -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - return NULL; -#line 2140 "Tombstone.c" -} - - -static gchar* -value_tombstoned_file_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - TombstonedFile ** object_p; - object_p = collect_values[0].v_pointer; -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (!object_p) { -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2156 "Tombstone.c" - } -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (!value->data[0].v_pointer) { -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - *object_p = NULL; -#line 2162 "Tombstone.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - *object_p = value->data[0].v_pointer; -#line 2166 "Tombstone.c" - } else { -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - *object_p = tombstoned_file_ref (value->data[0].v_pointer); -#line 2170 "Tombstone.c" - } -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - return NULL; -#line 2174 "Tombstone.c" -} - - -GParamSpec* -param_spec_tombstoned_file (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecTombstonedFile* spec; -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_TOMBSTONED_FILE), NULL); -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - return G_PARAM_SPEC (spec); -#line 2194 "Tombstone.c" -} - - -gpointer -value_get_tombstoned_file (const GValue* value) -{ -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TOMBSTONED_FILE), NULL); -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - return value->data[0].v_pointer; -#line 2205 "Tombstone.c" -} - - -void -value_set_tombstoned_file (GValue* value, - gpointer v_object) -{ - TombstonedFile * old; -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TOMBSTONED_FILE)); -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - old = value->data[0].v_pointer; -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (v_object) { -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TOMBSTONED_FILE)); -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - value->data[0].v_pointer = v_object; -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstoned_file_ref (value->data[0].v_pointer); -#line 2228 "Tombstone.c" - } else { -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - value->data[0].v_pointer = NULL; -#line 2232 "Tombstone.c" - } -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (old) { -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstoned_file_unref (old); -#line 2238 "Tombstone.c" - } -} - - -void -value_take_tombstoned_file (GValue* value, - gpointer v_object) -{ - TombstonedFile * old; -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TOMBSTONED_FILE)); -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - old = value->data[0].v_pointer; -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (v_object) { -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TOMBSTONED_FILE)); -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - value->data[0].v_pointer = v_object; -#line 2260 "Tombstone.c" - } else { -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - value->data[0].v_pointer = NULL; -#line 2264 "Tombstone.c" - } -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (old) { -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstoned_file_unref (old); -#line 2270 "Tombstone.c" - } -} - - -static void -tombstoned_file_class_init (TombstonedFileClass * klass) -{ -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstoned_file_parent_class = g_type_class_peek_parent (klass); -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - ((TombstonedFileClass *) klass)->finalize = tombstoned_file_finalize; -#line 2282 "Tombstone.c" -} - - -static void -tombstoned_file_instance_init (TombstonedFile * self) -{ -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - self->ref_count = 1; -#line 2291 "Tombstone.c" -} - - -static void -tombstoned_file_finalize (TombstonedFile * obj) -{ - TombstonedFile * self; -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TOMBSTONED_FILE, TombstonedFile); -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_signal_handlers_destroy (self); -#line 163 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (self->file); -#line 165 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_free0 (self->md5); -#line 2307 "Tombstone.c" -} - - -GType -tombstoned_file_get_type (void) -{ - static volatile gsize tombstoned_file_type_id__volatile = 0; - if (g_once_init_enter (&tombstoned_file_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_tombstoned_file_init, value_tombstoned_file_free_value, value_tombstoned_file_copy_value, value_tombstoned_file_peek_pointer, "p", value_tombstoned_file_collect_value, "p", value_tombstoned_file_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (TombstonedFileClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tombstoned_file_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TombstonedFile), 0, (GInstanceInitFunc) tombstoned_file_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType tombstoned_file_type_id; - tombstoned_file_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TombstonedFile", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&tombstoned_file_type_id__volatile, tombstoned_file_type_id); - } - return tombstoned_file_type_id__volatile; -} - - -gpointer -tombstoned_file_ref (gpointer instance) -{ - TombstonedFile * self; - self = instance; -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_atomic_int_inc (&self->ref_count); -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - return instance; -#line 2336 "Tombstone.c" -} - - -void -tombstoned_file_unref (gpointer instance) -{ - TombstonedFile * self; - self = instance; -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - TOMBSTONED_FILE_GET_CLASS (self)->finalize (self); -#line 162 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2351 "Tombstone.c" - } -} - - -gint -tombstone_reason_serialize (TombstoneReason self) -{ - gint result = 0; -#line 181 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = (gint) self; -#line 181 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 2364 "Tombstone.c" -} - - -TombstoneReason -tombstone_reason_unserialize (gint value) -{ - TombstoneReason result = 0; -#line 185 "/home/jens/Source/shotwell/src/Tombstone.vala" - switch ((TombstoneReason) value) { -#line 185 "/home/jens/Source/shotwell/src/Tombstone.vala" - case TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE: -#line 2376 "Tombstone.c" - { -#line 187 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE; -#line 187 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 2382 "Tombstone.c" - } - default: -#line 185 "/home/jens/Source/shotwell/src/Tombstone.vala" - case TOMBSTONE_REASON_REMOVED_BY_USER: -#line 2387 "Tombstone.c" - { -#line 192 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = TOMBSTONE_REASON_REMOVED_BY_USER; -#line 192 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 2393 "Tombstone.c" - } - } -} - - -GType -tombstone_reason_get_type (void) -{ - static volatile gsize tombstone_reason_type_id__volatile = 0; - if (g_once_init_enter (&tombstone_reason_type_id__volatile)) { - static const GEnumValue values[] = {{TOMBSTONE_REASON_REMOVED_BY_USER, "TOMBSTONE_REASON_REMOVED_BY_USER", "removed-by-user"}, {TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE, "TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE", "auto-detected-duplicate"}, {0, NULL, NULL}}; - GType tombstone_reason_type_id; - tombstone_reason_type_id = g_enum_register_static ("TombstoneReason", values); - g_once_init_leave (&tombstone_reason_type_id__volatile, tombstone_reason_type_id); - } - return tombstone_reason_type_id__volatile; -} - - -static gpointer -_tombstone_row_ref0 (gpointer self) -{ -#line 203 "/home/jens/Source/shotwell/src/Tombstone.vala" - return self ? tombstone_row_ref (self) : NULL; -#line 2418 "Tombstone.c" -} - - -static Tombstone* -tombstone_construct (GType object_type, - TombstoneRow* row) -{ - Tombstone * self = NULL; - TombstoneRow* _tmp0_; -#line 202 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_val_if_fail (IS_TOMBSTONE_ROW (row), NULL); -#line 202 "/home/jens/Source/shotwell/src/Tombstone.vala" - self = (Tombstone*) data_source_construct (object_type, DATA_OBJECT_INVALID_OBJECT_ID); -#line 203 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = _tombstone_row_ref0 (row); -#line 203 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tombstone_row_unref0 (self->priv->row); -#line 203 "/home/jens/Source/shotwell/src/Tombstone.vala" - self->priv->row = _tmp0_; -#line 202 "/home/jens/Source/shotwell/src/Tombstone.vala" - return self; -#line 2440 "Tombstone.c" -} - - -static Tombstone* -tombstone_new (TombstoneRow* row) -{ -#line 202 "/home/jens/Source/shotwell/src/Tombstone.vala" - return tombstone_construct (TYPE_TOMBSTONE, row); -#line 2449 "Tombstone.c" -} - - -void -tombstone_init (void) -{ - TombstoneSourceCollection* _tmp0_; - TombstoneRow** rows = NULL; - gint rows_length1; - gint _rows_size_; - TombstoneRow** _tmp9_; - gint _tmp9__length1; - GError * _inner_error_ = NULL; -#line 207 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = tombstone_source_collection_new (); -#line 207 "/home/jens/Source/shotwell/src/Tombstone.vala" - _data_collection_unref0 (tombstone_global); -#line 207 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstone_global = _tmp0_; -#line 209 "/home/jens/Source/shotwell/src/Tombstone.vala" - rows = NULL; -#line 209 "/home/jens/Source/shotwell/src/Tombstone.vala" - rows_length1 = 0; -#line 209 "/home/jens/Source/shotwell/src/Tombstone.vala" - _rows_size_ = rows_length1; -#line 2475 "Tombstone.c" - { - TombstoneRow** _tmp1_ = NULL; - TombstoneTable* _tmp2_; - TombstoneTable* _tmp3_; - gint _tmp4_; - TombstoneRow** _tmp5_; - TombstoneRow** _tmp6_; - gint _tmp6__length1; - gint _tmp1__length1; - gint __tmp1__size_; - TombstoneRow** _tmp7_; - gint _tmp7__length1; -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp2_ = tombstone_table_get_instance (); -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp3_ = _tmp2_; -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp5_ = tombstone_table_fetch_all (_tmp3_, &_tmp4_, &_inner_error_); -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp6_ = _tmp5_; -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp6__length1 = _tmp4_; -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - _database_table_unref0 (_tmp3_); -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = _tmp6_; -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1__length1 = _tmp6__length1; -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - __tmp1__size_ = _tmp1__length1; -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 2510 "Tombstone.c" - goto __catch560_database_error; - } -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - rows = (_vala_array_free (rows, rows_length1, (GDestroyNotify) tombstone_row_unref), NULL); -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_clear_error (&_inner_error_); -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - return; -#line 2521 "Tombstone.c" - } -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp7_ = _tmp1_; -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp7__length1 = _tmp1__length1; -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = NULL; -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1__length1 = 0; -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - rows = (_vala_array_free (rows, rows_length1, (GDestroyNotify) tombstone_row_unref), NULL); -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - rows = _tmp7_; -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - rows_length1 = _tmp7__length1; -#line 211 "/home/jens/Source/shotwell/src/Tombstone.vala" - _rows_size_ = rows_length1; -#line 210 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = (_vala_array_free (_tmp1_, _tmp1__length1, (GDestroyNotify) tombstone_row_unref), NULL); -#line 2541 "Tombstone.c" - } - goto __finally560; - __catch560_database_error: - { - GError* err = NULL; - GError* _tmp8_; -#line 210 "/home/jens/Source/shotwell/src/Tombstone.vala" - err = _inner_error_; -#line 210 "/home/jens/Source/shotwell/src/Tombstone.vala" - _inner_error_ = NULL; -#line 213 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp8_ = err; -#line 213 "/home/jens/Source/shotwell/src/Tombstone.vala" - app_window_database_error (_tmp8_); -#line 210 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_error_free0 (err); -#line 2558 "Tombstone.c" - } - __finally560: -#line 210 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 210 "/home/jens/Source/shotwell/src/Tombstone.vala" - rows = (_vala_array_free (rows, rows_length1, (GDestroyNotify) tombstone_row_unref), NULL); -#line 210 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 210 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_clear_error (&_inner_error_); -#line 210 "/home/jens/Source/shotwell/src/Tombstone.vala" - return; -#line 2571 "Tombstone.c" - } -#line 216 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp9_ = rows; -#line 216 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp9__length1 = rows_length1; -#line 216 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_tmp9_ != NULL) { -#line 2579 "Tombstone.c" - GeeArrayList* tombstones = NULL; - GeeArrayList* _tmp10_; - TombstoneRow** _tmp11_; - gint _tmp11__length1; - TombstoneSourceCollection* _tmp17_; - GeeArrayList* _tmp18_; - GeeCollection* _tmp19_; - GeeCollection* _tmp20_; -#line 217 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp10_ = gee_array_list_new (TYPE_TOMBSTONE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 217 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstones = _tmp10_; -#line 218 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp11_ = rows; -#line 218 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp11__length1 = rows_length1; -#line 2596 "Tombstone.c" - { - TombstoneRow** row_collection = NULL; - gint row_collection_length1 = 0; - gint _row_collection_size_ = 0; - gint row_it = 0; -#line 218 "/home/jens/Source/shotwell/src/Tombstone.vala" - row_collection = _tmp11_; -#line 218 "/home/jens/Source/shotwell/src/Tombstone.vala" - row_collection_length1 = _tmp11__length1; -#line 218 "/home/jens/Source/shotwell/src/Tombstone.vala" - for (row_it = 0; row_it < _tmp11__length1; row_it = row_it + 1) { -#line 2608 "Tombstone.c" - TombstoneRow* _tmp12_; - TombstoneRow* row = NULL; -#line 218 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp12_ = _tombstone_row_ref0 (row_collection[row_it]); -#line 218 "/home/jens/Source/shotwell/src/Tombstone.vala" - row = _tmp12_; -#line 2615 "Tombstone.c" - { - GeeArrayList* _tmp13_; - TombstoneRow* _tmp14_; - Tombstone* _tmp15_; - Tombstone* _tmp16_; -#line 219 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp13_ = tombstones; -#line 219 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp14_ = row; -#line 219 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp15_ = tombstone_new (_tmp14_); -#line 219 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp16_ = _tmp15_; -#line 219 "/home/jens/Source/shotwell/src/Tombstone.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp16_); -#line 219 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_tmp16_); -#line 218 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tombstone_row_unref0 (row); -#line 2635 "Tombstone.c" - } - } - } -#line 221 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp17_ = tombstone_global; -#line 221 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp18_ = tombstones; -#line 221 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp19_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL); -#line 221 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp20_ = _tmp19_; -#line 221 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_tmp20_); -#line 216 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (tombstones); -#line 2651 "Tombstone.c" - } -#line 206 "/home/jens/Source/shotwell/src/Tombstone.vala" - rows = (_vala_array_free (rows, rows_length1, (GDestroyNotify) tombstone_row_unref), NULL); -#line 2655 "Tombstone.c" -} - - -void -tombstone_terminate (void) -{ -} - - -static gpointer -_backing_file_state_ref0 (gpointer self) -{ -#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala" - return self ? backing_file_state_ref (self) : NULL; -#line 2670 "Tombstone.c" -} - - -void -tombstone_entomb_many_sources (GeeCollection* sources, - TombstoneReason reason, - GError** error) -{ - GeeCollection* files = NULL; - GeeArrayList* _tmp0_; - GeeCollection* _tmp19_; - GError * _inner_error_ = NULL; -#line 228 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 230 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = gee_array_list_new (TYPE_TOMBSTONED_FILE, (GBoxedCopyFunc) tombstoned_file_ref, (GDestroyNotify) tombstoned_file_unref, NULL, NULL, NULL); -#line 230 "/home/jens/Source/shotwell/src/Tombstone.vala" - files = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 2689 "Tombstone.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp1_; -#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (sources, GEE_TYPE_ITERABLE, GeeIterable)); -#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala" - _source_it = _tmp1_; -#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala" - while (TRUE) { -#line 2699 "Tombstone.c" - GeeIterator* _tmp2_; - MediaSource* source = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - MediaSource* _tmp5_; - gint _tmp6_; - BackingFileState** _tmp7_; -#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp2_ = _source_it; -#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala" - break; -#line 2713 "Tombstone.c" - } -#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp3_ = _source_it; -#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala" - source = (MediaSource*) _tmp4_; -#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp5_ = source; -#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp7_ = media_source_get_backing_files_state (_tmp5_, &_tmp6_); -#line 2725 "Tombstone.c" - { - BackingFileState** state_collection = NULL; - gint state_collection_length1 = 0; - gint _state_collection_size_ = 0; - gint state_it = 0; -#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala" - state_collection = _tmp7_; -#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala" - state_collection_length1 = _tmp6_; -#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala" - for (state_it = 0; state_it < _tmp6_; state_it = state_it + 1) { -#line 2737 "Tombstone.c" - BackingFileState* _tmp8_; - BackingFileState* state = NULL; -#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp8_ = _backing_file_state_ref0 (state_collection[state_it]); -#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala" - state = _tmp8_; -#line 2744 "Tombstone.c" - { - GeeCollection* _tmp9_; - BackingFileState* _tmp10_; - GFile* _tmp11_; - GFile* _tmp12_; - BackingFileState* _tmp13_; - gint64 _tmp14_; - BackingFileState* _tmp15_; - const gchar* _tmp16_; - TombstonedFile* _tmp17_; - TombstonedFile* _tmp18_; -#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp9_ = files; -#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp10_ = state; -#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp11_ = backing_file_state_get_file (_tmp10_); -#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp12_ = _tmp11_; -#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp13_ = state; -#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp14_ = _tmp13_->filesize; -#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp15_ = state; -#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp16_ = _tmp15_->md5; -#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp17_ = tombstoned_file_new (_tmp12_, _tmp14_, _tmp16_); -#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp18_ = _tmp17_; -#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala" - gee_collection_add (_tmp9_, _tmp18_); -#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tombstoned_file_unref0 (_tmp18_); -#line 233 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_tmp12_); -#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala" - _backing_file_state_unref0 (state); -#line 2784 "Tombstone.c" - } - } -#line 232 "/home/jens/Source/shotwell/src/Tombstone.vala" - state_collection = (_vala_array_free (state_collection, state_collection_length1, (GDestroyNotify) backing_file_state_unref), NULL); -#line 2789 "Tombstone.c" - } -#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (source); -#line 2793 "Tombstone.c" - } -#line 231 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_source_it); -#line 2797 "Tombstone.c" - } -#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp19_ = files; -#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstone_entomb_many_files (_tmp19_, reason, &_inner_error_); -#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_propagate_error (error, _inner_error_); -#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (files); -#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala" - return; -#line 2813 "Tombstone.c" - } else { -#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (files); -#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_clear_error (&_inner_error_); -#line 236 "/home/jens/Source/shotwell/src/Tombstone.vala" - return; -#line 2823 "Tombstone.c" - } - } -#line 228 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (files); -#line 2828 "Tombstone.c" -} - - -void -tombstone_entomb_many_files (GeeCollection* files, - TombstoneReason reason, - GError** error) -{ - Marker* to_destroy = NULL; - TombstoneSourceCollection* _tmp0_; - Marker* _tmp1_; - TombstoneSourceCollection* _tmp13_; - Marker* _tmp14_; - GeeArrayList* tombstones = NULL; - GeeArrayList* _tmp15_; - TombstoneSourceCollection* _tmp36_; - GeeArrayList* _tmp37_; - GeeCollection* _tmp38_; - GeeCollection* _tmp39_; - GError * _inner_error_ = NULL; -#line 239 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail (GEE_IS_COLLECTION (files)); -#line 242 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = tombstone_global; -#line 242 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection)); -#line 242 "/home/jens/Source/shotwell/src/Tombstone.vala" - to_destroy = _tmp1_; -#line 2857 "Tombstone.c" - { - GeeIterator* _file_it = NULL; - GeeIterator* _tmp2_; -#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (files, GEE_TYPE_ITERABLE, GeeIterable)); -#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala" - _file_it = _tmp2_; -#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala" - while (TRUE) { -#line 2867 "Tombstone.c" - GeeIterator* _tmp3_; - TombstonedFile* file = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - Tombstone* tombstone = NULL; - TombstoneSourceCollection* _tmp6_; - TombstonedFile* _tmp7_; - GFile* _tmp8_; - Tombstone* _tmp9_; - Tombstone* _tmp10_; -#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp3_ = _file_it; -#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala" - break; -#line 2884 "Tombstone.c" - } -#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp4_ = _file_it; -#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala" - file = (TombstonedFile*) _tmp5_; -#line 244 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp6_ = tombstone_global; -#line 244 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp7_ = file; -#line 244 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp8_ = _tmp7_->file; -#line 244 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp9_ = tombstone_source_collection_locate (_tmp6_, _tmp8_); -#line 244 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstone = _tmp9_; -#line 245 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp10_ = tombstone; -#line 245 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_tmp10_ != NULL) { -#line 2906 "Tombstone.c" - Marker* _tmp11_; - Tombstone* _tmp12_; -#line 246 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp11_ = to_destroy; -#line 246 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp12_ = tombstone; -#line 246 "/home/jens/Source/shotwell/src/Tombstone.vala" - marker_mark (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject)); -#line 2915 "Tombstone.c" - } -#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (tombstone); -#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tombstoned_file_unref0 (file); -#line 2921 "Tombstone.c" - } -#line 243 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_file_it); -#line 2925 "Tombstone.c" - } -#line 249 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp13_ = tombstone_global; -#line 249 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp14_ = to_destroy; -#line 249 "/home/jens/Source/shotwell/src/Tombstone.vala" - source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp14_, FALSE, NULL, NULL, NULL); -#line 251 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp15_ = gee_array_list_new (TYPE_TOMBSTONE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 251 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstones = _tmp15_; -#line 2937 "Tombstone.c" - { - GeeIterator* _file_it = NULL; - GeeIterator* _tmp16_; -#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp16_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (files, GEE_TYPE_ITERABLE, GeeIterable)); -#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala" - _file_it = _tmp16_; -#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala" - while (TRUE) { -#line 2947 "Tombstone.c" - GeeIterator* _tmp17_; - TombstonedFile* file = NULL; - GeeIterator* _tmp18_; - gpointer _tmp19_; - TombstoneRow* _tmp20_ = NULL; - TombstoneTable* _tmp21_; - TombstoneTable* _tmp22_; - TombstonedFile* _tmp23_; - GFile* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - TombstonedFile* _tmp27_; - gint64 _tmp28_; - TombstonedFile* _tmp29_; - const gchar* _tmp30_; - TombstoneRow* _tmp31_; - TombstoneRow* _tmp32_; - GeeArrayList* _tmp33_; - Tombstone* _tmp34_; - Tombstone* _tmp35_; -#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp17_ = _file_it; -#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (!gee_iterator_next (_tmp17_)) { -#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala" - break; -#line 2974 "Tombstone.c" - } -#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp18_ = _file_it; -#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp19_ = gee_iterator_get (_tmp18_); -#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala" - file = (TombstonedFile*) _tmp19_; -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp21_ = tombstone_table_get_instance (); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp22_ = _tmp21_; -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp23_ = file; -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp24_ = _tmp23_->file; -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp25_ = g_file_get_path (_tmp24_); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp26_ = _tmp25_; -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp27_ = file; -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp28_ = _tmp27_->filesize; -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp29_ = file; -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp30_ = _tmp29_->md5; -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp31_ = tombstone_table_add (_tmp22_, _tmp26_, _tmp28_, _tmp30_, reason, &_inner_error_); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp32_ = _tmp31_; -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_free0 (_tmp26_); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _database_table_unref0 (_tmp22_); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp20_ = _tmp32_; -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_propagate_error (error, _inner_error_); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tombstoned_file_unref0 (file); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_file_it); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (tombstones); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (to_destroy); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - return; -#line 3028 "Tombstone.c" - } else { -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tombstoned_file_unref0 (file); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_file_it); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (tombstones); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (to_destroy); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_clear_error (&_inner_error_); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - return; -#line 3044 "Tombstone.c" - } - } -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp33_ = tombstones; -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp34_ = tombstone_new (_tmp20_); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp35_ = _tmp34_; -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp35_); -#line 253 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_tmp35_); -#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tombstone_row_unref0 (_tmp20_); -#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tombstoned_file_unref0 (file); -#line 3061 "Tombstone.c" - } -#line 252 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_file_it); -#line 3065 "Tombstone.c" - } -#line 257 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp36_ = tombstone_global; -#line 257 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp37_ = tombstones; -#line 257 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp38_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL); -#line 257 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp39_ = _tmp38_; -#line 257 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_tmp39_); -#line 239 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (tombstones); -#line 239 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (to_destroy); -#line 3081 "Tombstone.c" -} - - -static gchar* -tombstone_real_get_typename (DataSource* base) -{ - Tombstone * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 260 "/home/jens/Source/shotwell/src/Tombstone.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TOMBSTONE, Tombstone); -#line 261 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = g_strdup ("tombstone"); -#line 261 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = _tmp0_; -#line 261 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 3099 "Tombstone.c" -} - - -static gint64 -tombstone_real_get_instance_id (DataSource* base) -{ - Tombstone * self; - gint64 result = 0LL; - TombstoneID _tmp0_ = {0}; - gint64 _tmp1_; -#line 264 "/home/jens/Source/shotwell/src/Tombstone.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TOMBSTONE, Tombstone); -#line 265 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstone_get_tombstone_id (self, &_tmp0_); -#line 265 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = _tmp0_.id; -#line 265 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = _tmp1_; -#line 265 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 3120 "Tombstone.c" -} - - -static gchar* -tombstone_real_get_name (DataObject* base) -{ - Tombstone * self; - gchar* result = NULL; - TombstoneRow* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 268 "/home/jens/Source/shotwell/src/Tombstone.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TOMBSTONE, Tombstone); -#line 269 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = self->priv->row; -#line 269 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = _tmp0_->filepath; -#line 269 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 269 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = _tmp2_; -#line 269 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 3144 "Tombstone.c" -} - - -static gchar* -tombstone_real_to_string (DataObject* base) -{ - Tombstone * self; - gchar* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 272 "/home/jens/Source/shotwell/src/Tombstone.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TOMBSTONE, Tombstone); -#line 273 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 273 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = _tmp0_; -#line 273 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp2_ = g_strdup_printf ("Tombstone %s", _tmp1_); -#line 273 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp3_ = _tmp2_; -#line 273 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_free0 (_tmp1_); -#line 273 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = _tmp3_; -#line 273 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 3173 "Tombstone.c" -} - - -void -tombstone_get_tombstone_id (Tombstone* self, - TombstoneID* result) -{ - TombstoneRow* _tmp0_; - TombstoneID _tmp1_; -#line 276 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail (IS_TOMBSTONE (self)); -#line 277 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = self->priv->row; -#line 277 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = _tmp0_->id; -#line 277 "/home/jens/Source/shotwell/src/Tombstone.vala" - *result = _tmp1_; -#line 277 "/home/jens/Source/shotwell/src/Tombstone.vala" - return; -#line 3193 "Tombstone.c" -} - - -GFile* -tombstone_get_file (Tombstone* self) -{ - GFile* result = NULL; - GFile* _tmp0_; - GFile* _tmp4_; - GFile* _tmp5_; -#line 280 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_val_if_fail (IS_TOMBSTONE (self), NULL); -#line 281 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = self->priv->file; -#line 281 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_tmp0_ == NULL) { -#line 3210 "Tombstone.c" - TombstoneRow* _tmp1_; - const gchar* _tmp2_; - GFile* _tmp3_; -#line 282 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = self->priv->row; -#line 282 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp2_ = _tmp1_->filepath; -#line 282 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp3_ = g_file_new_for_path (_tmp2_); -#line 282 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (self->priv->file); -#line 282 "/home/jens/Source/shotwell/src/Tombstone.vala" - self->priv->file = _tmp3_; -#line 3224 "Tombstone.c" - } -#line 284 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp4_ = self->priv->file; -#line 284 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp5_ = _g_object_ref0 (_tmp4_); -#line 284 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = _tmp5_; -#line 284 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 3234 "Tombstone.c" -} - - -gchar* -tombstone_get_md5 (Tombstone* self) -{ - gchar* result = NULL; - const gchar* _tmp0_ = NULL; - TombstoneRow* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp5_; -#line 287 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_val_if_fail (IS_TOMBSTONE (self), NULL); -#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = self->priv->row; -#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp2_ = _tmp1_->md5; -#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (is_string_empty (_tmp2_)) { -#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = NULL; -#line 3256 "Tombstone.c" - } else { - TombstoneRow* _tmp3_; - const gchar* _tmp4_; -#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp3_ = self->priv->row; -#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp4_ = _tmp3_->md5; -#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = _tmp4_; -#line 3266 "Tombstone.c" - } -#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp5_ = g_strdup (_tmp0_); -#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = _tmp5_; -#line 288 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 3274 "Tombstone.c" -} - - -TombstoneReason -tombstone_get_reason (Tombstone* self) -{ - TombstoneReason result = 0; - TombstoneRow* _tmp0_; - TombstoneReason _tmp1_; -#line 291 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_val_if_fail (IS_TOMBSTONE (self), 0); -#line 292 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = self->priv->row; -#line 292 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = _tmp0_->reason; -#line 292 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = _tmp1_; -#line 292 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 3294 "Tombstone.c" -} - - -void -tombstone_move (Tombstone* self, - GFile* file) -{ - gchar* old_filepath = NULL; - TombstoneRow* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - TombstoneRow* _tmp10_; - gchar* _tmp11_; - GFile* _tmp12_; - Alteration* _tmp13_; - Alteration* _tmp14_; - GError * _inner_error_ = NULL; -#line 295 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail (IS_TOMBSTONE (self)); -#line 295 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 3316 "Tombstone.c" - { - TombstoneTable* _tmp0_; - TombstoneTable* _tmp1_; - TombstoneRow* _tmp2_; - TombstoneID _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = tombstone_table_get_instance (); -#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = _tmp0_; -#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp2_ = self->priv->row; -#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp3_ = _tmp2_->id; -#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp4_ = g_file_get_path (file); -#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp5_ = _tmp4_; -#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstone_table_update_file (_tmp1_, &_tmp3_, _tmp5_, &_inner_error_); -#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_free0 (_tmp5_); -#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala" - _database_table_unref0 (_tmp1_); -#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 3346 "Tombstone.c" - goto __catch561_database_error; - } -#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_clear_error (&_inner_error_); -#line 297 "/home/jens/Source/shotwell/src/Tombstone.vala" - return; -#line 3355 "Tombstone.c" - } - } - goto __finally561; - __catch561_database_error: - { - GError* err = NULL; - GError* _tmp6_; -#line 296 "/home/jens/Source/shotwell/src/Tombstone.vala" - err = _inner_error_; -#line 296 "/home/jens/Source/shotwell/src/Tombstone.vala" - _inner_error_ = NULL; -#line 299 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp6_ = err; -#line 299 "/home/jens/Source/shotwell/src/Tombstone.vala" - app_window_database_error (_tmp6_); -#line 296 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_error_free0 (err); -#line 3373 "Tombstone.c" - } - __finally561: -#line 296 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 296 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 296 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_clear_error (&_inner_error_); -#line 296 "/home/jens/Source/shotwell/src/Tombstone.vala" - return; -#line 3384 "Tombstone.c" - } -#line 302 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp7_ = self->priv->row; -#line 302 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp8_ = _tmp7_->filepath; -#line 302 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 302 "/home/jens/Source/shotwell/src/Tombstone.vala" - old_filepath = _tmp9_; -#line 303 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp10_ = self->priv->row; -#line 303 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp11_ = g_file_get_path (file); -#line 303 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_free0 (_tmp10_->filepath); -#line 303 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp10_->filepath = _tmp11_; -#line 304 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp12_ = _g_object_ref0 (file); -#line 304 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (self->priv->file); -#line 304 "/home/jens/Source/shotwell/src/Tombstone.vala" - self->priv->file = _tmp12_; -#line 306 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp13_ = alteration_new ("file", old_filepath); -#line 306 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp14_ = _tmp13_; -#line 306 "/home/jens/Source/shotwell/src/Tombstone.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp14_); -#line 306 "/home/jens/Source/shotwell/src/Tombstone.vala" - _alteration_unref0 (_tmp14_); -#line 295 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_free0 (old_filepath); -#line 3418 "Tombstone.c" -} - - -gboolean -tombstone_matches (Tombstone* self, - GFile* file, - gint64 filesize, - const gchar* md5) -{ - gboolean result = FALSE; - TombstoneRow* _tmp0_; - gint64 _tmp1_; - const gchar* _tmp2_ = NULL; - TombstoneRow* _tmp3_; - const gchar* _tmp4_; - gchar* this_md5 = NULL; - gchar* _tmp7_; - const gchar* _tmp8_ = NULL; - gchar* other_md5 = NULL; - gchar* _tmp9_; - const gchar* _tmp10_; - const gchar* _tmp11_; - GFile* _tmp12_; - GFile* _tmp13_; - gboolean _tmp14_; -#line 309 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_val_if_fail (IS_TOMBSTONE (self), FALSE); -#line 309 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 310 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = self->priv->row; -#line 310 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = _tmp0_->filesize; -#line 310 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_tmp1_ != filesize) { -#line 311 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = FALSE; -#line 311 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 3458 "Tombstone.c" - } -#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp3_ = self->priv->row; -#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp4_ = _tmp3_->md5; -#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (is_string_empty (_tmp4_)) { -#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp2_ = NULL; -#line 3468 "Tombstone.c" - } else { - TombstoneRow* _tmp5_; - const gchar* _tmp6_; -#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp5_ = self->priv->row; -#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp6_ = _tmp5_->md5; -#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp2_ = _tmp6_; -#line 3478 "Tombstone.c" - } -#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp7_ = g_strdup (_tmp2_); -#line 314 "/home/jens/Source/shotwell/src/Tombstone.vala" - this_md5 = _tmp7_; -#line 315 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (is_string_empty (md5)) { -#line 315 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp8_ = NULL; -#line 3488 "Tombstone.c" - } else { -#line 315 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp8_ = md5; -#line 3492 "Tombstone.c" - } -#line 315 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 315 "/home/jens/Source/shotwell/src/Tombstone.vala" - other_md5 = _tmp9_; -#line 317 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp10_ = this_md5; -#line 317 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp11_ = other_md5; -#line 317 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (g_strcmp0 (_tmp10_, _tmp11_) != 0) { -#line 318 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = FALSE; -#line 318 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_free0 (other_md5); -#line 318 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_free0 (this_md5); -#line 318 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 3512 "Tombstone.c" - } -#line 320 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp12_ = tombstone_get_file (self); -#line 320 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp13_ = _tmp12_; -#line 320 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp14_ = !g_file_equal (_tmp13_, file); -#line 320 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (_tmp13_); -#line 320 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_tmp14_) { -#line 321 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = FALSE; -#line 321 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_free0 (other_md5); -#line 321 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_free0 (this_md5); -#line 321 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 3532 "Tombstone.c" - } -#line 323 "/home/jens/Source/shotwell/src/Tombstone.vala" - result = TRUE; -#line 323 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_free0 (other_md5); -#line 323 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_free0 (this_md5); -#line 323 "/home/jens/Source/shotwell/src/Tombstone.vala" - return result; -#line 3542 "Tombstone.c" -} - - -static void -tombstone_real_destroy (DataSource* base) -{ - Tombstone * self; - GError * _inner_error_ = NULL; -#line 326 "/home/jens/Source/shotwell/src/Tombstone.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TOMBSTONE, Tombstone); -#line 3553 "Tombstone.c" - { - TombstoneTable* _tmp0_; - TombstoneTable* _tmp1_; - TombstoneRow* _tmp2_; - TombstoneID _tmp3_; -#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp0_ = tombstone_table_get_instance (); -#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp1_ = _tmp0_; -#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp2_ = self->priv->row; -#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp3_ = _tmp2_->id; -#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstone_table_remove (_tmp1_, &_tmp3_, &_inner_error_); -#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala" - _database_table_unref0 (_tmp1_); -#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 3575 "Tombstone.c" - goto __catch562_database_error; - } -#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_clear_error (&_inner_error_); -#line 328 "/home/jens/Source/shotwell/src/Tombstone.vala" - return; -#line 3584 "Tombstone.c" - } - } - goto __finally562; - __catch562_database_error: - { - GError* err = NULL; - GError* _tmp4_; -#line 327 "/home/jens/Source/shotwell/src/Tombstone.vala" - err = _inner_error_; -#line 327 "/home/jens/Source/shotwell/src/Tombstone.vala" - _inner_error_ = NULL; -#line 330 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tmp4_ = err; -#line 330 "/home/jens/Source/shotwell/src/Tombstone.vala" - app_window_database_error (_tmp4_); -#line 327 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_error_free0 (err); -#line 3602 "Tombstone.c" - } - __finally562: -#line 327 "/home/jens/Source/shotwell/src/Tombstone.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 327 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 327 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_clear_error (&_inner_error_); -#line 327 "/home/jens/Source/shotwell/src/Tombstone.vala" - return; -#line 3613 "Tombstone.c" - } -#line 333 "/home/jens/Source/shotwell/src/Tombstone.vala" - DATA_SOURCE_CLASS (tombstone_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource)); -#line 3617 "Tombstone.c" -} - - -static void -tombstone_class_init (TombstoneClass * klass) -{ -#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala" - tombstone_parent_class = g_type_class_peek_parent (klass); -#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala" - g_type_class_add_private (klass, sizeof (TombstonePrivate)); -#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala" - ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) tombstone_real_get_typename; -#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala" - ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) tombstone_real_get_instance_id; -#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala" - ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) tombstone_real_get_name; -#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala" - ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) tombstone_real_to_string; -#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala" - ((DataSourceClass *) klass)->destroy = (void (*) (DataSource *)) tombstone_real_destroy; -#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala" - G_OBJECT_CLASS (klass)->finalize = tombstone_finalize; -#line 3640 "Tombstone.c" -} - - -static void -tombstone_instance_init (Tombstone * self) -{ -#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala" - self->priv = TOMBSTONE_GET_PRIVATE (self); -#line 200 "/home/jens/Source/shotwell/src/Tombstone.vala" - self->priv->file = NULL; -#line 3651 "Tombstone.c" -} - - -static void -tombstone_finalize (GObject * obj) -{ - Tombstone * self; -#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TOMBSTONE, Tombstone); -#line 199 "/home/jens/Source/shotwell/src/Tombstone.vala" - _tombstone_row_unref0 (self->priv->row); -#line 200 "/home/jens/Source/shotwell/src/Tombstone.vala" - _g_object_unref0 (self->priv->file); -#line 174 "/home/jens/Source/shotwell/src/Tombstone.vala" - G_OBJECT_CLASS (tombstone_parent_class)->finalize (obj); -#line 3667 "Tombstone.c" -} - - -GType -tombstone_get_type (void) -{ - static volatile gsize tombstone_type_id__volatile = 0; - if (g_once_init_enter (&tombstone_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TombstoneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tombstone_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Tombstone), 0, (GInstanceInitFunc) tombstone_instance_init, NULL }; - GType tombstone_type_id; - tombstone_type_id = g_type_register_static (TYPE_DATA_SOURCE, "Tombstone", &g_define_type_info, 0); - g_once_init_leave (&tombstone_type_id__volatile, tombstone_type_id); - } - return tombstone_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/UnityProgressBar.c b/src/UnityProgressBar.c deleted file mode 100644 index 609947c..0000000 --- a/src/UnityProgressBar.c +++ /dev/null @@ -1,19 +0,0 @@ -/* UnityProgressBar.c generated by valac 0.40.4, the Vala compiler - * generated from UnityProgressBar.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include - - - - - - - diff --git a/src/Upgrades.c b/src/Upgrades.c deleted file mode 100644 index f8844af..0000000 --- a/src/Upgrades.c +++ /dev/null @@ -1,1755 +0,0 @@ -/* Upgrades.c generated by valac 0.40.4, the Vala compiler - * generated from Upgrades.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/* Class for aggregating one-off "upgrade" tasks that occur at startup, such as*/ -/* moving or deleting files. This occurs after the UI is shown, so it's not appropriate*/ -/* for database updates and such.*/ - - -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-graphics-processor.h" -#include - - -#define TYPE_UPGRADES (upgrades_get_type ()) -#define UPGRADES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_UPGRADES, Upgrades)) -#define UPGRADES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_UPGRADES, UpgradesClass)) -#define IS_UPGRADES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_UPGRADES)) -#define IS_UPGRADES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_UPGRADES)) -#define UPGRADES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_UPGRADES, UpgradesClass)) - -typedef struct _Upgrades Upgrades; -typedef struct _UpgradesClass UpgradesClass; -typedef struct _UpgradesPrivate UpgradesPrivate; - -#define TYPE_UPGRADE_TASK (upgrade_task_get_type ()) -#define UPGRADE_TASK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_UPGRADE_TASK, UpgradeTask)) -#define IS_UPGRADE_TASK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_UPGRADE_TASK)) -#define UPGRADE_TASK_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_UPGRADE_TASK, UpgradeTaskIface)) - -typedef struct _UpgradeTask UpgradeTask; -typedef struct _UpgradeTaskIface UpgradeTaskIface; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_MIMICS_REMOVAL_TASK (mimics_removal_task_get_type ()) -#define MIMICS_REMOVAL_TASK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MIMICS_REMOVAL_TASK, MimicsRemovalTask)) -#define MIMICS_REMOVAL_TASK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MIMICS_REMOVAL_TASK, MimicsRemovalTaskClass)) -#define IS_MIMICS_REMOVAL_TASK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MIMICS_REMOVAL_TASK)) -#define IS_MIMICS_REMOVAL_TASK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MIMICS_REMOVAL_TASK)) -#define MIMICS_REMOVAL_TASK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MIMICS_REMOVAL_TASK, MimicsRemovalTaskClass)) - -typedef struct _MimicsRemovalTask MimicsRemovalTask; -typedef struct _MimicsRemovalTaskClass MimicsRemovalTaskClass; - -#define TYPE_APPLICATION (application_get_type ()) -#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application)) -#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass)) -#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION)) -#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION)) -#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass)) - -typedef struct _Application Application; -typedef struct _ApplicationClass ApplicationClass; -#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL))) - -#define TYPE_FIXUP_RAW_THUMBNAILS_TASK (fixup_raw_thumbnails_task_get_type ()) -#define FIXUP_RAW_THUMBNAILS_TASK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FIXUP_RAW_THUMBNAILS_TASK, FixupRawThumbnailsTask)) -#define FIXUP_RAW_THUMBNAILS_TASK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FIXUP_RAW_THUMBNAILS_TASK, FixupRawThumbnailsTaskClass)) -#define IS_FIXUP_RAW_THUMBNAILS_TASK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FIXUP_RAW_THUMBNAILS_TASK)) -#define IS_FIXUP_RAW_THUMBNAILS_TASK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FIXUP_RAW_THUMBNAILS_TASK)) -#define FIXUP_RAW_THUMBNAILS_TASK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FIXUP_RAW_THUMBNAILS_TASK, FixupRawThumbnailsTaskClass)) - -typedef struct _FixupRawThumbnailsTask FixupRawThumbnailsTask; -typedef struct _FixupRawThumbnailsTaskClass FixupRawThumbnailsTaskClass; -#define _upgrades_unref0(var) ((var == NULL) ? NULL : (var = (upgrades_unref (var), NULL))) -typedef struct _ParamSpecUpgrades ParamSpecUpgrades; -typedef struct _MimicsRemovalTaskPrivate MimicsRemovalTaskPrivate; -enum { - MIMICS_REMOVAL_TASK_0_PROPERTY, - MIMICS_REMOVAL_TASK_NUM_PROPERTIES -}; -static GParamSpec* mimics_removal_task_properties[MIMICS_REMOVAL_TASK_NUM_PROPERTIES]; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -typedef struct _FixupRawThumbnailsTaskPrivate FixupRawThumbnailsTaskPrivate; -enum { - FIXUP_RAW_THUMBNAILS_TASK_0_PROPERTY, - FIXUP_RAW_THUMBNAILS_TASK_NUM_PROPERTIES -}; -static GParamSpec* fixup_raw_thumbnails_task_properties[FIXUP_RAW_THUMBNAILS_TASK_NUM_PROPERTIES]; - -#define TYPE_PHOTO_ROW (photo_row_get_type ()) -#define PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_ROW, PhotoRow)) -#define PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_ROW, PhotoRowClass)) -#define IS_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_ROW)) -#define IS_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_ROW)) -#define PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_ROW, PhotoRowClass)) - -typedef struct _PhotoRow PhotoRow; -typedef struct _PhotoRowClass PhotoRowClass; - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; - -#define TYPE_PHOTO_TABLE (photo_table_get_type ()) -#define PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TABLE, PhotoTable)) -#define PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TABLE, PhotoTableClass)) -#define IS_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TABLE)) -#define IS_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TABLE)) -#define PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TABLE, PhotoTableClass)) - -typedef struct _PhotoTable PhotoTable; -typedef struct _PhotoTableClass PhotoTableClass; -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) -typedef struct _PhotoRowPrivate PhotoRowPrivate; - -#define TYPE_PHOTO_ID (photo_id_get_type ()) -typedef struct _PhotoID PhotoID; - -#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ()) -#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow)) -#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) -#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW)) -#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW)) -#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) - -typedef struct _BackingPhotoRow BackingPhotoRow; -typedef struct _BackingPhotoRowClass BackingPhotoRowClass; - -#define TYPE_IMPORT_ID (import_id_get_type ()) -typedef struct _ImportID ImportID; - -#define TYPE_EVENT_ID (event_id_get_type ()) -typedef struct _EventID EventID; - -#define TYPE_ORIENTATION (orientation_get_type ()) - -#define TYPE_RATING (rating_get_type ()) - -#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ()) -typedef struct _BackingPhotoID BackingPhotoID; - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) -typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -#define _photo_row_unref0(var) ((var == NULL) ? NULL : (var = (photo_row_unref (var), NULL))) - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ()) -#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) - -typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; -typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _Upgrades { - GTypeInstance parent_instance; - volatile int ref_count; - UpgradesPrivate * priv; -}; - -struct _UpgradesClass { - GTypeClass parent_class; - void (*finalize) (Upgrades *self); -}; - -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _UpgradeTaskIface { - GTypeInterface parent_iface; - guint64 (*get_step_count) (UpgradeTask* self); - void (*execute) (UpgradeTask* self, ProgressMonitor monitor, void* monitor_target); -}; - -struct _UpgradesPrivate { - guint64 total_steps; - GeeLinkedList* task_list; -}; - -struct _ParamSpecUpgrades { - GParamSpec parent_instance; -}; - -struct _MimicsRemovalTask { - GObject parent_instance; - MimicsRemovalTaskPrivate * priv; -}; - -struct _MimicsRemovalTaskClass { - GObjectClass parent_class; -}; - -struct _MimicsRemovalTaskPrivate { - GFile* mimic_dir; - guint64 num_mimics; -}; - -struct _FixupRawThumbnailsTask { - GObject parent_instance; - FixupRawThumbnailsTaskPrivate * priv; -}; - -struct _FixupRawThumbnailsTaskClass { - GObjectClass parent_class; -}; - -struct _PhotoID { - gint64 id; -}; - -struct _ImportID { - gint64 id; -}; - -struct _EventID { - gint64 id; -}; - -typedef enum { - ORIENTATION_MIN = 1, - ORIENTATION_TOP_LEFT = 1, - ORIENTATION_TOP_RIGHT = 2, - ORIENTATION_BOTTOM_RIGHT = 3, - ORIENTATION_BOTTOM_LEFT = 4, - ORIENTATION_LEFT_TOP = 5, - ORIENTATION_RIGHT_TOP = 6, - ORIENTATION_RIGHT_BOTTOM = 7, - ORIENTATION_LEFT_BOTTOM = 8, - ORIENTATION_MAX = 8 -} Orientation; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -struct _BackingPhotoID { - gint64 id; -}; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _PhotoRow { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoRowPrivate * priv; - PhotoID photo_id; - BackingPhotoRow* master; - time_t exposure_time; - ImportID import_id; - EventID event_id; - Orientation orientation; - GeeHashMap* transformations; - gchar* md5; - gchar* thumbnail_md5; - gchar* exif_md5; - time_t time_created; - guint64 flags; - Rating rating; - gchar* title; - gchar* comment; - gchar* backlinks; - time_t time_reimported; - BackingPhotoID editable_id; - gboolean metadata_dirty; - RawDeveloper developer; - BackingPhotoID* development_ids; - gint development_ids_length1; -}; - -struct _PhotoRowClass { - GTypeClass parent_class; - void (*finalize) (PhotoRow *self); -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _BackingPhotoRow { - GTypeInstance parent_instance; - volatile int ref_count; - BackingPhotoRowPrivate * priv; - BackingPhotoID id; - time_t time_created; - gchar* filepath; - gint64 filesize; - time_t timestamp; - PhotoFileFormat file_format; - Dimensions dim; - Orientation original_orientation; -}; - -struct _BackingPhotoRowClass { - GTypeClass parent_class; - void (*finalize) (BackingPhotoRow *self); -}; - - -static gpointer upgrades_parent_class = NULL; -static Upgrades* upgrades_instance; -static Upgrades* upgrades_instance = NULL; -static gpointer mimics_removal_task_parent_class = NULL; -static UpgradeTaskIface * mimics_removal_task_upgrade_task_parent_iface = NULL; -static gpointer fixup_raw_thumbnails_task_parent_class = NULL; -extern LibraryPhotoSourceCollection* library_photo_global; -static UpgradeTaskIface * fixup_raw_thumbnails_task_upgrade_task_parent_iface = NULL; - -gpointer upgrades_ref (gpointer instance); -void upgrades_unref (gpointer instance); -GParamSpec* param_spec_upgrades (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_upgrades (GValue* value, - gpointer v_object); -void value_take_upgrades (GValue* value, - gpointer v_object); -gpointer value_get_upgrades (const GValue* value); -GType upgrades_get_type (void) G_GNUC_CONST; -GType upgrade_task_get_type (void) G_GNUC_CONST; -#define UPGRADES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_UPGRADES, UpgradesPrivate)) -static Upgrades* upgrades_new (void); -static Upgrades* upgrades_construct (GType object_type); -static void upgrades_add (Upgrades* self, - UpgradeTask* task); -MimicsRemovalTask* mimics_removal_task_new (void); -MimicsRemovalTask* mimics_removal_task_construct (GType object_type); -GType mimics_removal_task_get_type (void) G_GNUC_CONST; -gpointer application_ref (gpointer instance); -void application_unref (gpointer instance); -GParamSpec* param_spec_application (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_application (GValue* value, - gpointer v_object); -void value_take_application (GValue* value, - gpointer v_object); -gpointer value_get_application (const GValue* value); -GType application_get_type (void) G_GNUC_CONST; -Application* application_get_instance (void); -gboolean application_get_raw_thumbs_fix_required (Application* self); -FixupRawThumbnailsTask* fixup_raw_thumbnails_task_new (void); -FixupRawThumbnailsTask* fixup_raw_thumbnails_task_construct (GType object_type); -GType fixup_raw_thumbnails_task_get_type (void) G_GNUC_CONST; -void upgrades_init (void); -Upgrades* upgrades_get_instance (void); -guint64 upgrades_get_step_count (Upgrades* self); -void upgrades_execute (Upgrades* self, - ProgressMonitor monitor, - void* monitor_target); -void upgrade_task_execute (UpgradeTask* self, - ProgressMonitor monitor, - void* monitor_target); -guint64 upgrade_task_get_step_count (UpgradeTask* self); -static void upgrades_finalize (Upgrades * obj); -#define MIMICS_REMOVAL_TASK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MIMICS_REMOVAL_TASK, MimicsRemovalTaskPrivate)) -GFile* app_dirs_get_data_dir (void); -static guint64 mimics_removal_task_real_get_step_count (UpgradeTask* base); -guint64 count_files_in_directory (GFile* dir, - GError** error); -static void mimics_removal_task_real_execute (UpgradeTask* base, - ProgressMonitor monitor, - void* monitor_target); -void delete_all_files (GFile* dir, - GeeSet* exceptions, - ProgressMonitor monitor, - void* monitor_target, - guint64 file_count, - GCancellable* cancellable, - GError** error); -static void mimics_removal_task_finalize (GObject * obj); -static guint64 fixup_raw_thumbnails_task_real_get_step_count (UpgradeTask* base); -gpointer photo_row_ref (gpointer instance); -void photo_row_unref (gpointer instance); -GParamSpec* param_spec_photo_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_row (GValue* value, - gpointer v_object); -void value_take_photo_row (GValue* value, - gpointer v_object); -gpointer value_get_photo_row (const GValue* value); -GType photo_row_get_type (void) G_GNUC_CONST; -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType photo_table_get_type (void) G_GNUC_CONST; -PhotoTable* photo_table_get_instance (void); -GeeArrayList* photo_table_get_all (PhotoTable* self); -GType photo_id_get_type (void) G_GNUC_CONST; -PhotoID* photo_id_dup (const PhotoID* self); -void photo_id_free (PhotoID* self); -gpointer backing_photo_row_ref (gpointer instance); -void backing_photo_row_unref (gpointer instance); -GParamSpec* param_spec_backing_photo_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_backing_photo_row (GValue* value, - gpointer v_object); -void value_take_backing_photo_row (GValue* value, - gpointer v_object); -gpointer value_get_backing_photo_row (const GValue* value); -GType backing_photo_row_get_type (void) G_GNUC_CONST; -GType import_id_get_type (void) G_GNUC_CONST; -ImportID* import_id_dup (const ImportID* self); -void import_id_free (ImportID* self); -GType event_id_get_type (void) G_GNUC_CONST; -EventID* event_id_dup (const EventID* self); -void event_id_free (EventID* self); -GType orientation_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -GType backing_photo_id_get_type (void) G_GNUC_CONST; -BackingPhotoID* backing_photo_id_dup (const BackingPhotoID* self); -void backing_photo_id_free (BackingPhotoID* self); -GType raw_developer_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -static void fixup_raw_thumbnails_task_real_execute (UpgradeTask* base, - ProgressMonitor monitor, - void* monitor_target); -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -void thumbnail_cache_remove (ThumbnailSource* source); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -LibraryPhoto* library_photo_source_collection_fetch (LibraryPhotoSourceCollection* self, - PhotoID* photo_id); - - -static Upgrades* -upgrades_construct (GType object_type) -{ - Upgrades* self = NULL; - MimicsRemovalTask* _tmp0_; - MimicsRemovalTask* _tmp1_; - Application* _tmp2_; - Application* _tmp3_; - gboolean _tmp4_; -#line 15 "/home/jens/Source/shotwell/src/Upgrades.vala" - self = (Upgrades*) g_type_create_instance (object_type); -#line 17 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp0_ = mimics_removal_task_new (); -#line 17 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp1_ = _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/Upgrades.vala" - upgrades_add (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_UPGRADE_TASK, UpgradeTask)); -#line 17 "/home/jens/Source/shotwell/src/Upgrades.vala" - _g_object_unref0 (_tmp1_); -#line 19 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp2_ = application_get_instance (); -#line 19 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp3_ = _tmp2_; -#line 19 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp4_ = application_get_raw_thumbs_fix_required (_tmp3_); -#line 19 "/home/jens/Source/shotwell/src/Upgrades.vala" - _application_unref0 (_tmp3_); -#line 19 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (_tmp4_) { -#line 644 "Upgrades.c" - FixupRawThumbnailsTask* _tmp5_; - FixupRawThumbnailsTask* _tmp6_; -#line 20 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp5_ = fixup_raw_thumbnails_task_new (); -#line 20 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp6_ = _tmp5_; -#line 20 "/home/jens/Source/shotwell/src/Upgrades.vala" - upgrades_add (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_UPGRADE_TASK, UpgradeTask)); -#line 20 "/home/jens/Source/shotwell/src/Upgrades.vala" - _g_object_unref0 (_tmp6_); -#line 655 "Upgrades.c" - } -#line 15 "/home/jens/Source/shotwell/src/Upgrades.vala" - return self; -#line 659 "Upgrades.c" -} - - -static Upgrades* -upgrades_new (void) -{ -#line 15 "/home/jens/Source/shotwell/src/Upgrades.vala" - return upgrades_construct (TYPE_UPGRADES); -#line 668 "Upgrades.c" -} - - -void -upgrades_init (void) -{ - Upgrades* _tmp0_; - Upgrades* _tmp1_; -#line 25 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp0_ = upgrades_instance; -#line 25 "/home/jens/Source/shotwell/src/Upgrades.vala" - _vala_assert (_tmp0_ == NULL, "instance == null"); -#line 26 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp1_ = upgrades_new (); -#line 26 "/home/jens/Source/shotwell/src/Upgrades.vala" - _upgrades_unref0 (upgrades_instance); -#line 26 "/home/jens/Source/shotwell/src/Upgrades.vala" - upgrades_instance = _tmp1_; -#line 687 "Upgrades.c" -} - - -static gpointer -_upgrades_ref0 (gpointer self) -{ -#line 30 "/home/jens/Source/shotwell/src/Upgrades.vala" - return self ? upgrades_ref (self) : NULL; -#line 696 "Upgrades.c" -} - - -Upgrades* -upgrades_get_instance (void) -{ - Upgrades* result = NULL; - Upgrades* _tmp0_; - Upgrades* _tmp1_; -#line 30 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp0_ = upgrades_instance; -#line 30 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp1_ = _upgrades_ref0 (_tmp0_); -#line 30 "/home/jens/Source/shotwell/src/Upgrades.vala" - result = _tmp1_; -#line 30 "/home/jens/Source/shotwell/src/Upgrades.vala" - return result; -#line 714 "Upgrades.c" -} - - -guint64 -upgrades_get_step_count (Upgrades* self) -{ - guint64 result = 0ULL; - guint64 _tmp0_; -#line 34 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_return_val_if_fail (IS_UPGRADES (self), 0ULL); -#line 35 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp0_ = self->priv->total_steps; -#line 35 "/home/jens/Source/shotwell/src/Upgrades.vala" - result = _tmp0_; -#line 35 "/home/jens/Source/shotwell/src/Upgrades.vala" - return result; -#line 731 "Upgrades.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - return self ? g_object_ref (self) : NULL; -#line 740 "Upgrades.c" -} - - -void -upgrades_execute (Upgrades* self, - ProgressMonitor monitor, - void* monitor_target) -{ -#line 39 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_return_if_fail (IS_UPGRADES (self)); -#line 751 "Upgrades.c" - { - GeeLinkedList* _task_list = NULL; - GeeLinkedList* _tmp0_; - GeeLinkedList* _tmp1_; - gint _task_size = 0; - GeeLinkedList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _task_index = 0; -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp0_ = self->priv->task_list; -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - _task_list = _tmp1_; -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp2_ = _task_list; -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp4_ = _tmp3_; -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - _task_size = _tmp4_; -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - _task_index = -1; -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - while (TRUE) { -#line 779 "Upgrades.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - UpgradeTask* task = NULL; - GeeLinkedList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - UpgradeTask* _tmp11_; -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp5_ = _task_index; -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - _task_index = _tmp5_ + 1; -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp6_ = _task_index; -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp7_ = _task_size; -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - break; -#line 800 "Upgrades.c" - } -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp8_ = _task_list; -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp9_ = _task_index; -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_); -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - task = (UpgradeTask*) _tmp10_; -#line 41 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp11_ = task; -#line 41 "/home/jens/Source/shotwell/src/Upgrades.vala" - upgrade_task_execute (_tmp11_, monitor, monitor_target); -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - _g_object_unref0 (task); -#line 816 "Upgrades.c" - } -#line 40 "/home/jens/Source/shotwell/src/Upgrades.vala" - _g_object_unref0 (_task_list); -#line 820 "Upgrades.c" - } -} - - -static void -upgrades_add (Upgrades* self, - UpgradeTask* task) -{ - guint64 _tmp0_; - GeeLinkedList* _tmp1_; -#line 44 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_return_if_fail (IS_UPGRADES (self)); -#line 44 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_return_if_fail (IS_UPGRADE_TASK (task)); -#line 45 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp0_ = self->priv->total_steps; -#line 45 "/home/jens/Source/shotwell/src/Upgrades.vala" - self->priv->total_steps = _tmp0_ + upgrade_task_get_step_count (task); -#line 46 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp1_ = self->priv->task_list; -#line 46 "/home/jens/Source/shotwell/src/Upgrades.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), task); -#line 843 "Upgrades.c" -} - - -static void -value_upgrades_init (GValue* value) -{ -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - value->data[0].v_pointer = NULL; -#line 852 "Upgrades.c" -} - - -static void -value_upgrades_free_value (GValue* value) -{ -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (value->data[0].v_pointer) { -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - upgrades_unref (value->data[0].v_pointer); -#line 863 "Upgrades.c" - } -} - - -static void -value_upgrades_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (src_value->data[0].v_pointer) { -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - dest_value->data[0].v_pointer = upgrades_ref (src_value->data[0].v_pointer); -#line 876 "Upgrades.c" - } else { -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - dest_value->data[0].v_pointer = NULL; -#line 880 "Upgrades.c" - } -} - - -static gpointer -value_upgrades_peek_pointer (const GValue* value) -{ -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - return value->data[0].v_pointer; -#line 890 "Upgrades.c" -} - - -static gchar* -value_upgrades_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (collect_values[0].v_pointer) { -#line 902 "Upgrades.c" - Upgrades * object; - object = collect_values[0].v_pointer; -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (object->parent_instance.g_class == NULL) { -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 909 "Upgrades.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 913 "Upgrades.c" - } -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - value->data[0].v_pointer = upgrades_ref (object); -#line 917 "Upgrades.c" - } else { -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - value->data[0].v_pointer = NULL; -#line 921 "Upgrades.c" - } -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - return NULL; -#line 925 "Upgrades.c" -} - - -static gchar* -value_upgrades_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - Upgrades ** object_p; - object_p = collect_values[0].v_pointer; -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (!object_p) { -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 941 "Upgrades.c" - } -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (!value->data[0].v_pointer) { -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - *object_p = NULL; -#line 947 "Upgrades.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - *object_p = value->data[0].v_pointer; -#line 951 "Upgrades.c" - } else { -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - *object_p = upgrades_ref (value->data[0].v_pointer); -#line 955 "Upgrades.c" - } -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - return NULL; -#line 959 "Upgrades.c" -} - - -GParamSpec* -param_spec_upgrades (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecUpgrades* spec; -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_UPGRADES), NULL); -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - return G_PARAM_SPEC (spec); -#line 979 "Upgrades.c" -} - - -gpointer -value_get_upgrades (const GValue* value) -{ -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_UPGRADES), NULL); -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - return value->data[0].v_pointer; -#line 990 "Upgrades.c" -} - - -void -value_set_upgrades (GValue* value, - gpointer v_object) -{ - Upgrades * old; -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_UPGRADES)); -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - old = value->data[0].v_pointer; -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (v_object) { -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_UPGRADES)); -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - value->data[0].v_pointer = v_object; -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - upgrades_ref (value->data[0].v_pointer); -#line 1013 "Upgrades.c" - } else { -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - value->data[0].v_pointer = NULL; -#line 1017 "Upgrades.c" - } -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (old) { -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - upgrades_unref (old); -#line 1023 "Upgrades.c" - } -} - - -void -value_take_upgrades (GValue* value, - gpointer v_object) -{ - Upgrades * old; -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_UPGRADES)); -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - old = value->data[0].v_pointer; -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (v_object) { -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_UPGRADES)); -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - value->data[0].v_pointer = v_object; -#line 1045 "Upgrades.c" - } else { -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - value->data[0].v_pointer = NULL; -#line 1049 "Upgrades.c" - } -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (old) { -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - upgrades_unref (old); -#line 1055 "Upgrades.c" - } -} - - -static void -upgrades_class_init (UpgradesClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - upgrades_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - ((UpgradesClass *) klass)->finalize = upgrades_finalize; -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_type_class_add_private (klass, sizeof (UpgradesPrivate)); -#line 1069 "Upgrades.c" -} - - -static void -upgrades_instance_init (Upgrades * self) -{ - GeeLinkedList* _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - self->priv = UPGRADES_GET_PRIVATE (self); -#line 12 "/home/jens/Source/shotwell/src/Upgrades.vala" - self->priv->total_steps = (guint64) 0; -#line 13 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp0_ = gee_linked_list_new (TYPE_UPGRADE_TASK, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 13 "/home/jens/Source/shotwell/src/Upgrades.vala" - self->priv->task_list = _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - self->ref_count = 1; -#line 1087 "Upgrades.c" -} - - -static void -upgrades_finalize (Upgrades * obj) -{ - Upgrades * self; -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_UPGRADES, Upgrades); -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_signal_handlers_destroy (self); -#line 13 "/home/jens/Source/shotwell/src/Upgrades.vala" - _g_object_unref0 (self->priv->task_list); -#line 1101 "Upgrades.c" -} - - -GType -upgrades_get_type (void) -{ - static volatile gsize upgrades_type_id__volatile = 0; - if (g_once_init_enter (&upgrades_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_upgrades_init, value_upgrades_free_value, value_upgrades_copy_value, value_upgrades_peek_pointer, "p", value_upgrades_collect_value, "p", value_upgrades_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (UpgradesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) upgrades_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Upgrades), 0, (GInstanceInitFunc) upgrades_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType upgrades_type_id; - upgrades_type_id = g_type_register_fundamental (g_type_fundamental_next (), "Upgrades", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&upgrades_type_id__volatile, upgrades_type_id); - } - return upgrades_type_id__volatile; -} - - -gpointer -upgrades_ref (gpointer instance) -{ - Upgrades * self; - self = instance; -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_atomic_int_inc (&self->ref_count); -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - return instance; -#line 1130 "Upgrades.c" -} - - -void -upgrades_unref (gpointer instance) -{ - Upgrades * self; - self = instance; -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - UPGRADES_GET_CLASS (self)->finalize (self); -#line 10 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1145 "Upgrades.c" - } -} - - -guint64 -upgrade_task_get_step_count (UpgradeTask* self) -{ -#line 55 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_return_val_if_fail (IS_UPGRADE_TASK (self), 0ULL); -#line 55 "/home/jens/Source/shotwell/src/Upgrades.vala" - return UPGRADE_TASK_GET_INTERFACE (self)->get_step_count (self); -#line 1157 "Upgrades.c" -} - - -void -upgrade_task_execute (UpgradeTask* self, - ProgressMonitor monitor, - void* monitor_target) -{ -#line 60 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_return_if_fail (IS_UPGRADE_TASK (self)); -#line 60 "/home/jens/Source/shotwell/src/Upgrades.vala" - UPGRADE_TASK_GET_INTERFACE (self)->execute (self, monitor, monitor_target); -#line 1170 "Upgrades.c" -} - - -static void -upgrade_task_base_init (UpgradeTaskIface * iface) -{ -#line 53 "/home/jens/Source/shotwell/src/Upgrades.vala" - static gboolean initialized = FALSE; -#line 53 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (!initialized) { -#line 53 "/home/jens/Source/shotwell/src/Upgrades.vala" - initialized = TRUE; -#line 1183 "Upgrades.c" - } -} - - -GType -upgrade_task_get_type (void) -{ - static volatile gsize upgrade_task_type_id__volatile = 0; - if (g_once_init_enter (&upgrade_task_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (UpgradeTaskIface), (GBaseInitFunc) upgrade_task_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType upgrade_task_type_id; - upgrade_task_type_id = g_type_register_static (G_TYPE_INTERFACE, "UpgradeTask", &g_define_type_info, 0); - g_type_interface_add_prerequisite (upgrade_task_type_id, G_TYPE_OBJECT); - g_once_init_leave (&upgrade_task_type_id__volatile, upgrade_task_type_id); - } - return upgrade_task_type_id__volatile; -} - - -static guint64 -mimics_removal_task_real_get_step_count (UpgradeTask* base) -{ - MimicsRemovalTask * self; - guint64 result = 0ULL; - guint64 _tmp5_; - GError * _inner_error_ = NULL; -#line 71 "/home/jens/Source/shotwell/src/Upgrades.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MIMICS_REMOVAL_TASK, MimicsRemovalTask); -#line 1212 "Upgrades.c" - { - guint64 _tmp0_ = 0ULL; - GFile* _tmp1_; -#line 73 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp1_ = self->priv->mimic_dir; -#line 73 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp0_ = count_files_in_directory (_tmp1_, &_inner_error_); -#line 73 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1222 "Upgrades.c" - goto __catch604_g_error; - } -#line 73 "/home/jens/Source/shotwell/src/Upgrades.vala" - self->priv->num_mimics = _tmp0_; -#line 1227 "Upgrades.c" - } - goto __finally604; - __catch604_g_error: - { - GError* e = NULL; - GError* _tmp2_; - const gchar* _tmp3_; -#line 72 "/home/jens/Source/shotwell/src/Upgrades.vala" - e = _inner_error_; -#line 72 "/home/jens/Source/shotwell/src/Upgrades.vala" - _inner_error_ = NULL; -#line 75 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp2_ = e; -#line 75 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp3_ = _tmp2_->message; -#line 75 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_debug ("Upgrades.vala:75: Error on deleting mimics: %s", _tmp3_); -#line 72 "/home/jens/Source/shotwell/src/Upgrades.vala" - _g_error_free0 (e); -#line 1247 "Upgrades.c" - } - __finally604: -#line 72 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1252 "Upgrades.c" - guint64 _tmp4_ = 0ULL; -#line 72 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 72 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_clear_error (&_inner_error_); -#line 72 "/home/jens/Source/shotwell/src/Upgrades.vala" - return _tmp4_; -#line 1260 "Upgrades.c" - } -#line 77 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp5_ = self->priv->num_mimics; -#line 77 "/home/jens/Source/shotwell/src/Upgrades.vala" - result = _tmp5_; -#line 77 "/home/jens/Source/shotwell/src/Upgrades.vala" - return result; -#line 1268 "Upgrades.c" -} - - -static void -mimics_removal_task_real_execute (UpgradeTask* base, - ProgressMonitor monitor, - void* monitor_target) -{ - MimicsRemovalTask * self; - GError * _inner_error_ = NULL; -#line 80 "/home/jens/Source/shotwell/src/Upgrades.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MIMICS_REMOVAL_TASK, MimicsRemovalTask); -#line 1281 "Upgrades.c" - { - GFile* _tmp0_; - guint64 _tmp1_; - GFile* _tmp2_; -#line 82 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp0_ = self->priv->mimic_dir; -#line 82 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp1_ = self->priv->num_mimics; -#line 82 "/home/jens/Source/shotwell/src/Upgrades.vala" - delete_all_files (_tmp0_, NULL, monitor, monitor_target, _tmp1_, NULL, &_inner_error_); -#line 82 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1294 "Upgrades.c" - goto __catch605_g_error; - } -#line 83 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp2_ = self->priv->mimic_dir; -#line 83 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_file_delete (_tmp2_, NULL, &_inner_error_); -#line 83 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1303 "Upgrades.c" - goto __catch605_g_error; - } - } - goto __finally605; - __catch605_g_error: - { - GError* e = NULL; - GError* _tmp3_; - const gchar* _tmp4_; -#line 81 "/home/jens/Source/shotwell/src/Upgrades.vala" - e = _inner_error_; -#line 81 "/home/jens/Source/shotwell/src/Upgrades.vala" - _inner_error_ = NULL; -#line 85 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp3_ = e; -#line 85 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp4_ = _tmp3_->message; -#line 85 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_debug ("Upgrades.vala:85: Could not delete mimics: %s", _tmp4_); -#line 81 "/home/jens/Source/shotwell/src/Upgrades.vala" - _g_error_free0 (e); -#line 1325 "Upgrades.c" - } - __finally605: -#line 81 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 81 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 81 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_clear_error (&_inner_error_); -#line 81 "/home/jens/Source/shotwell/src/Upgrades.vala" - return; -#line 1336 "Upgrades.c" - } -} - - -MimicsRemovalTask* -mimics_removal_task_construct (GType object_type) -{ - MimicsRemovalTask * self = NULL; -#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala" - self = (MimicsRemovalTask*) g_object_new (object_type, NULL); -#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala" - return self; -#line 1349 "Upgrades.c" -} - - -MimicsRemovalTask* -mimics_removal_task_new (void) -{ -#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala" - return mimics_removal_task_construct (TYPE_MIMICS_REMOVAL_TASK); -#line 1358 "Upgrades.c" -} - - -static void -mimics_removal_task_class_init (MimicsRemovalTaskClass * klass) -{ -#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala" - mimics_removal_task_parent_class = g_type_class_peek_parent (klass); -#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_type_class_add_private (klass, sizeof (MimicsRemovalTaskPrivate)); -#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala" - G_OBJECT_CLASS (klass)->finalize = mimics_removal_task_finalize; -#line 1371 "Upgrades.c" -} - - -static void -mimics_removal_task_upgrade_task_interface_init (UpgradeTaskIface * iface) -{ -#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala" - mimics_removal_task_upgrade_task_parent_iface = g_type_interface_peek_parent (iface); -#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala" - iface->get_step_count = (guint64 (*) (UpgradeTask *)) mimics_removal_task_real_get_step_count; -#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala" - iface->execute = (void (*) (UpgradeTask *, ProgressMonitor, void*)) mimics_removal_task_real_execute; -#line 1384 "Upgrades.c" -} - - -static void -mimics_removal_task_instance_init (MimicsRemovalTask * self) -{ - GFile* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; -#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala" - self->priv = MIMICS_REMOVAL_TASK_GET_PRIVATE (self); -#line 68 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp0_ = app_dirs_get_data_dir (); -#line 68 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp1_ = _tmp0_; -#line 68 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp2_ = g_file_get_child (_tmp1_, "mimics"); -#line 68 "/home/jens/Source/shotwell/src/Upgrades.vala" - self->priv->mimic_dir = _tmp2_; -#line 68 "/home/jens/Source/shotwell/src/Upgrades.vala" - _g_object_unref0 (_tmp1_); -#line 69 "/home/jens/Source/shotwell/src/Upgrades.vala" - self->priv->num_mimics = (guint64) 0; -#line 1408 "Upgrades.c" -} - - -static void -mimics_removal_task_finalize (GObject * obj) -{ - MimicsRemovalTask * self; -#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MIMICS_REMOVAL_TASK, MimicsRemovalTask); -#line 68 "/home/jens/Source/shotwell/src/Upgrades.vala" - _g_object_unref0 (self->priv->mimic_dir); -#line 66 "/home/jens/Source/shotwell/src/Upgrades.vala" - G_OBJECT_CLASS (mimics_removal_task_parent_class)->finalize (obj); -#line 1422 "Upgrades.c" -} - - -GType -mimics_removal_task_get_type (void) -{ - static volatile gsize mimics_removal_task_type_id__volatile = 0; - if (g_once_init_enter (&mimics_removal_task_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MimicsRemovalTaskClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) mimics_removal_task_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MimicsRemovalTask), 0, (GInstanceInitFunc) mimics_removal_task_instance_init, NULL }; - static const GInterfaceInfo upgrade_task_info = { (GInterfaceInitFunc) mimics_removal_task_upgrade_task_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType mimics_removal_task_type_id; - mimics_removal_task_type_id = g_type_register_static (G_TYPE_OBJECT, "MimicsRemovalTask", &g_define_type_info, 0); - g_type_add_interface_static (mimics_removal_task_type_id, TYPE_UPGRADE_TASK, &upgrade_task_info); - g_once_init_leave (&mimics_removal_task_type_id__volatile, mimics_removal_task_type_id); - } - return mimics_removal_task_type_id__volatile; -} - - -static guint64 -fixup_raw_thumbnails_task_real_get_step_count (UpgradeTask* base) -{ - FixupRawThumbnailsTask * self; - guint64 result = 0ULL; - gint num_raw_files = 0; -#line 94 "/home/jens/Source/shotwell/src/Upgrades.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FIXUP_RAW_THUMBNAILS_TASK, FixupRawThumbnailsTask); -#line 95 "/home/jens/Source/shotwell/src/Upgrades.vala" - num_raw_files = 0; -#line 1452 "Upgrades.c" - { - GeeArrayList* _phr_list = NULL; - PhotoTable* _tmp0_; - PhotoTable* _tmp1_; - GeeArrayList* _tmp2_; - GeeArrayList* _tmp3_; - gint _phr_size = 0; - GeeArrayList* _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _phr_index = 0; -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp0_ = photo_table_get_instance (); -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp1_ = _tmp0_; -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp2_ = photo_table_get_all (_tmp1_); -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp3_ = _tmp2_; -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _database_table_unref0 (_tmp1_); -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _phr_list = _tmp3_; -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp4_ = _phr_list; -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp5_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp6_ = _tmp5_; -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _phr_size = _tmp6_; -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _phr_index = -1; -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - while (TRUE) { -#line 1488 "Upgrades.c" - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - PhotoRow* phr = NULL; - GeeArrayList* _tmp10_; - gint _tmp11_; - gpointer _tmp12_; - PhotoRow* _tmp13_; - BackingPhotoRow* _tmp14_; - PhotoFileFormat _tmp15_; -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp7_ = _phr_index; -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _phr_index = _tmp7_ + 1; -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp8_ = _phr_index; -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp9_ = _phr_size; -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (!(_tmp8_ < _tmp9_)) { -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - break; -#line 1511 "Upgrades.c" - } -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp10_ = _phr_list; -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp11_ = _phr_index; -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp12_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp11_); -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - phr = (PhotoRow*) _tmp12_; -#line 98 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp13_ = phr; -#line 98 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp14_ = _tmp13_->master; -#line 98 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp15_ = _tmp14_->file_format; -#line 98 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (_tmp15_ == PHOTO_FILE_FORMAT_RAW) { -#line 1529 "Upgrades.c" - gint _tmp16_; -#line 99 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp16_ = num_raw_files; -#line 99 "/home/jens/Source/shotwell/src/Upgrades.vala" - num_raw_files = _tmp16_ + 1; -#line 1535 "Upgrades.c" - } -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _photo_row_unref0 (phr); -#line 1539 "Upgrades.c" - } -#line 97 "/home/jens/Source/shotwell/src/Upgrades.vala" - _g_object_unref0 (_phr_list); -#line 1543 "Upgrades.c" - } -#line 101 "/home/jens/Source/shotwell/src/Upgrades.vala" - result = (guint64) num_raw_files; -#line 101 "/home/jens/Source/shotwell/src/Upgrades.vala" - return result; -#line 1549 "Upgrades.c" -} - - -static void -fixup_raw_thumbnails_task_real_execute (UpgradeTask* base, - ProgressMonitor monitor, - void* monitor_target) -{ - FixupRawThumbnailsTask * self; -#line 104 "/home/jens/Source/shotwell/src/Upgrades.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FIXUP_RAW_THUMBNAILS_TASK, FixupRawThumbnailsTask); -#line 105 "/home/jens/Source/shotwell/src/Upgrades.vala" - g_debug ("Upgrades.vala:105: Executing thumbnail deletion and fixup"); -#line 1563 "Upgrades.c" - { - GeeArrayList* _phr_list = NULL; - PhotoTable* _tmp0_; - PhotoTable* _tmp1_; - GeeArrayList* _tmp2_; - GeeArrayList* _tmp3_; - gint _phr_size = 0; - GeeArrayList* _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _phr_index = 0; -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp0_ = photo_table_get_instance (); -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp1_ = _tmp0_; -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp2_ = photo_table_get_all (_tmp1_); -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp3_ = _tmp2_; -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _database_table_unref0 (_tmp1_); -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _phr_list = _tmp3_; -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp4_ = _phr_list; -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp5_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp6_ = _tmp5_; -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _phr_size = _tmp6_; -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _phr_index = -1; -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - while (TRUE) { -#line 1599 "Upgrades.c" - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - PhotoRow* phr = NULL; - GeeArrayList* _tmp10_; - gint _tmp11_; - gpointer _tmp12_; - gboolean _tmp13_ = FALSE; - PhotoRow* _tmp14_; - BackingPhotoRow* _tmp15_; - PhotoFileFormat _tmp16_; -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp7_ = _phr_index; -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _phr_index = _tmp7_ + 1; -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp8_ = _phr_index; -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp9_ = _phr_size; -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (!(_tmp8_ < _tmp9_)) { -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - break; -#line 1623 "Upgrades.c" - } -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp10_ = _phr_list; -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp11_ = _phr_index; -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp12_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp11_); -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - phr = (PhotoRow*) _tmp12_; -#line 108 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp14_ = phr; -#line 108 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp15_ = _tmp14_->master; -#line 108 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp16_ = _tmp15_->file_format; -#line 108 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (_tmp16_ == PHOTO_FILE_FORMAT_RAW) { -#line 1641 "Upgrades.c" - PhotoRow* _tmp17_; - RawDeveloper _tmp18_; -#line 109 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp17_ = phr; -#line 109 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp18_ = _tmp17_->developer; -#line 109 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp13_ = _tmp18_ == RAW_DEVELOPER_CAMERA; -#line 1650 "Upgrades.c" - } else { -#line 108 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp13_ = FALSE; -#line 1654 "Upgrades.c" - } -#line 108 "/home/jens/Source/shotwell/src/Upgrades.vala" - if (_tmp13_) { -#line 1658 "Upgrades.c" - LibraryPhotoSourceCollection* _tmp19_; - PhotoRow* _tmp20_; - PhotoID _tmp21_; - LibraryPhoto* _tmp22_; - LibraryPhoto* _tmp23_; -#line 110 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp19_ = library_photo_global; -#line 110 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp20_ = phr; -#line 110 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp21_ = _tmp20_->photo_id; -#line 110 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp22_ = library_photo_source_collection_fetch (_tmp19_, &_tmp21_); -#line 110 "/home/jens/Source/shotwell/src/Upgrades.vala" - _tmp23_ = _tmp22_; -#line 110 "/home/jens/Source/shotwell/src/Upgrades.vala" - thumbnail_cache_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 110 "/home/jens/Source/shotwell/src/Upgrades.vala" - _g_object_unref0 (_tmp23_); -#line 1678 "Upgrades.c" - } -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _photo_row_unref0 (phr); -#line 1682 "Upgrades.c" - } -#line 107 "/home/jens/Source/shotwell/src/Upgrades.vala" - _g_object_unref0 (_phr_list); -#line 1686 "Upgrades.c" - } -} - - -FixupRawThumbnailsTask* -fixup_raw_thumbnails_task_construct (GType object_type) -{ - FixupRawThumbnailsTask * self = NULL; -#line 93 "/home/jens/Source/shotwell/src/Upgrades.vala" - self = (FixupRawThumbnailsTask*) g_object_new (object_type, NULL); -#line 93 "/home/jens/Source/shotwell/src/Upgrades.vala" - return self; -#line 1699 "Upgrades.c" -} - - -FixupRawThumbnailsTask* -fixup_raw_thumbnails_task_new (void) -{ -#line 93 "/home/jens/Source/shotwell/src/Upgrades.vala" - return fixup_raw_thumbnails_task_construct (TYPE_FIXUP_RAW_THUMBNAILS_TASK); -#line 1708 "Upgrades.c" -} - - -static void -fixup_raw_thumbnails_task_class_init (FixupRawThumbnailsTaskClass * klass) -{ -#line 93 "/home/jens/Source/shotwell/src/Upgrades.vala" - fixup_raw_thumbnails_task_parent_class = g_type_class_peek_parent (klass); -#line 1717 "Upgrades.c" -} - - -static void -fixup_raw_thumbnails_task_upgrade_task_interface_init (UpgradeTaskIface * iface) -{ -#line 93 "/home/jens/Source/shotwell/src/Upgrades.vala" - fixup_raw_thumbnails_task_upgrade_task_parent_iface = g_type_interface_peek_parent (iface); -#line 93 "/home/jens/Source/shotwell/src/Upgrades.vala" - iface->get_step_count = (guint64 (*) (UpgradeTask *)) fixup_raw_thumbnails_task_real_get_step_count; -#line 93 "/home/jens/Source/shotwell/src/Upgrades.vala" - iface->execute = (void (*) (UpgradeTask *, ProgressMonitor, void*)) fixup_raw_thumbnails_task_real_execute; -#line 1730 "Upgrades.c" -} - - -static void -fixup_raw_thumbnails_task_instance_init (FixupRawThumbnailsTask * self) -{ -} - - -GType -fixup_raw_thumbnails_task_get_type (void) -{ - static volatile gsize fixup_raw_thumbnails_task_type_id__volatile = 0; - if (g_once_init_enter (&fixup_raw_thumbnails_task_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FixupRawThumbnailsTaskClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fixup_raw_thumbnails_task_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FixupRawThumbnailsTask), 0, (GInstanceInitFunc) fixup_raw_thumbnails_task_instance_init, NULL }; - static const GInterfaceInfo upgrade_task_info = { (GInterfaceInitFunc) fixup_raw_thumbnails_task_upgrade_task_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType fixup_raw_thumbnails_task_type_id; - fixup_raw_thumbnails_task_type_id = g_type_register_static (G_TYPE_OBJECT, "FixupRawThumbnailsTask", &g_define_type_info, 0); - g_type_add_interface_static (fixup_raw_thumbnails_task_type_id, TYPE_UPGRADE_TASK, &upgrade_task_info); - g_once_init_leave (&fixup_raw_thumbnails_task_type_id__volatile, fixup_raw_thumbnails_task_type_id); - } - return fixup_raw_thumbnails_task_type_id__volatile; -} - - - diff --git a/src/VideoMetadata.c b/src/VideoMetadata.c deleted file mode 100644 index 0befb0a..0000000 --- a/src/VideoMetadata.c +++ /dev/null @@ -1,5651 +0,0 @@ -/* VideoMetadata.c generated by valac 0.40.4, the Vala compiler - * generated from VideoMetadata.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; -typedef struct _MediaMetadataPrivate MediaMetadataPrivate; - -#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ()) -#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime)) -#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) -#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME)) -#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME)) -#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) - -typedef struct _MetadataDateTime MetadataDateTime; -typedef struct _MetadataDateTimeClass MetadataDateTimeClass; - -#define TYPE_VIDEO_METADATA (video_metadata_get_type ()) -#define VIDEO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_METADATA, VideoMetadata)) -#define VIDEO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_METADATA, VideoMetadataClass)) -#define IS_VIDEO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_METADATA)) -#define IS_VIDEO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_METADATA)) -#define VIDEO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_METADATA, VideoMetadataClass)) - -typedef struct _VideoMetadata VideoMetadata; -typedef struct _VideoMetadataClass VideoMetadataClass; -typedef struct _VideoMetadataPrivate VideoMetadataPrivate; -#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_QUICK_TIME_METADATA_LOADER (quick_time_metadata_loader_get_type ()) -#define QUICK_TIME_METADATA_LOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_QUICK_TIME_METADATA_LOADER, QuickTimeMetadataLoader)) -#define QUICK_TIME_METADATA_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_QUICK_TIME_METADATA_LOADER, QuickTimeMetadataLoaderClass)) -#define IS_QUICK_TIME_METADATA_LOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_QUICK_TIME_METADATA_LOADER)) -#define IS_QUICK_TIME_METADATA_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_QUICK_TIME_METADATA_LOADER)) -#define QUICK_TIME_METADATA_LOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_QUICK_TIME_METADATA_LOADER, QuickTimeMetadataLoaderClass)) - -typedef struct _QuickTimeMetadataLoader QuickTimeMetadataLoader; -typedef struct _QuickTimeMetadataLoaderClass QuickTimeMetadataLoaderClass; -#define _quick_time_metadata_loader_unref0(var) ((var == NULL) ? NULL : (var = (quick_time_metadata_loader_unref (var), NULL))) - -#define TYPE_AVI_METADATA_LOADER (avi_metadata_loader_get_type ()) -#define AVI_METADATA_LOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_AVI_METADATA_LOADER, AVIMetadataLoader)) -#define AVI_METADATA_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_AVI_METADATA_LOADER, AVIMetadataLoaderClass)) -#define IS_AVI_METADATA_LOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_AVI_METADATA_LOADER)) -#define IS_AVI_METADATA_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_AVI_METADATA_LOADER)) -#define AVI_METADATA_LOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_AVI_METADATA_LOADER, AVIMetadataLoaderClass)) - -typedef struct _AVIMetadataLoader AVIMetadataLoader; -typedef struct _AVIMetadataLoaderClass AVIMetadataLoaderClass; -#define _avi_metadata_loader_unref0(var) ((var == NULL) ? NULL : (var = (avi_metadata_loader_unref (var), NULL))) -typedef struct _QuickTimeMetadataLoaderPrivate QuickTimeMetadataLoaderPrivate; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_QUICK_TIME_ATOM (quick_time_atom_get_type ()) -#define QUICK_TIME_ATOM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_QUICK_TIME_ATOM, QuickTimeAtom)) -#define QUICK_TIME_ATOM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_QUICK_TIME_ATOM, QuickTimeAtomClass)) -#define IS_QUICK_TIME_ATOM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_QUICK_TIME_ATOM)) -#define IS_QUICK_TIME_ATOM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_QUICK_TIME_ATOM)) -#define QUICK_TIME_ATOM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_QUICK_TIME_ATOM, QuickTimeAtomClass)) - -typedef struct _QuickTimeAtom QuickTimeAtom; -typedef struct _QuickTimeAtomClass QuickTimeAtomClass; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _quick_time_atom_unref0(var) ((var == NULL) ? NULL : (var = (quick_time_atom_unref (var), NULL))) -typedef struct _ParamSpecQuickTimeMetadataLoader ParamSpecQuickTimeMetadataLoader; -typedef struct _QuickTimeAtomPrivate QuickTimeAtomPrivate; -#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL))) -typedef struct _ParamSpecQuickTimeAtom ParamSpecQuickTimeAtom; -typedef struct _AVIMetadataLoaderPrivate AVIMetadataLoaderPrivate; - -#define TYPE_AVI_CHUNK (avi_chunk_get_type ()) -#define AVI_CHUNK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_AVI_CHUNK, AVIChunk)) -#define AVI_CHUNK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_AVI_CHUNK, AVIChunkClass)) -#define IS_AVI_CHUNK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_AVI_CHUNK)) -#define IS_AVI_CHUNK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_AVI_CHUNK)) -#define AVI_CHUNK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_AVI_CHUNK, AVIChunkClass)) - -typedef struct _AVIChunk AVIChunk; -typedef struct _AVIChunkClass AVIChunkClass; -#define _avi_chunk_unref0(var) ((var == NULL) ? NULL : (var = (avi_chunk_unref (var), NULL))) -typedef struct _ParamSpecAVIMetadataLoader ParamSpecAVIMetadataLoader; -typedef struct _AVIChunkPrivate AVIChunkPrivate; -typedef struct _ParamSpecAVIChunk ParamSpecAVIChunk; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _MediaMetadata { - GTypeInstance parent_instance; - volatile int ref_count; - MediaMetadataPrivate * priv; -}; - -struct _MediaMetadataClass { - GTypeClass parent_class; - void (*finalize) (MediaMetadata *self); - void (*read_from_file) (MediaMetadata* self, GFile* file, GError** error); - MetadataDateTime* (*get_creation_date_time) (MediaMetadata* self); - gchar* (*get_title) (MediaMetadata* self); - gchar* (*get_comment) (MediaMetadata* self); -}; - -struct _VideoMetadata { - MediaMetadata parent_instance; - VideoMetadataPrivate * priv; -}; - -struct _VideoMetadataClass { - MediaMetadataClass parent_class; -}; - -struct _VideoMetadataPrivate { - MetadataDateTime* timestamp; - gchar* title; - gchar* comment; -}; - -struct _QuickTimeMetadataLoader { - GTypeInstance parent_instance; - volatile int ref_count; - QuickTimeMetadataLoaderPrivate * priv; -}; - -struct _QuickTimeMetadataLoaderClass { - GTypeClass parent_class; - void (*finalize) (QuickTimeMetadataLoader *self); -}; - -struct _QuickTimeMetadataLoaderPrivate { - GFile* file; -}; - -struct _ParamSpecQuickTimeMetadataLoader { - GParamSpec parent_instance; -}; - -struct _QuickTimeAtom { - GTypeInstance parent_instance; - volatile int ref_count; - QuickTimeAtomPrivate * priv; -}; - -struct _QuickTimeAtomClass { - GTypeClass parent_class; - void (*finalize) (QuickTimeAtom *self); -}; - -struct _QuickTimeAtomPrivate { - GFile* file; - gchar* section_name; - guint64 section_size; - guint64 section_offset; - GDataInputStream* input; - QuickTimeAtom* parent; -}; - -struct _ParamSpecQuickTimeAtom { - GParamSpec parent_instance; -}; - -struct _AVIMetadataLoader { - GTypeInstance parent_instance; - volatile int ref_count; - AVIMetadataLoaderPrivate * priv; -}; - -struct _AVIMetadataLoaderClass { - GTypeClass parent_class; - void (*finalize) (AVIMetadataLoader *self); -}; - -struct _AVIMetadataLoaderPrivate { - GFile* file; -}; - -struct _ParamSpecAVIMetadataLoader { - GParamSpec parent_instance; -}; - -struct _AVIChunk { - GTypeInstance parent_instance; - volatile int ref_count; - AVIChunkPrivate * priv; -}; - -struct _AVIChunkClass { - GTypeClass parent_class; - void (*finalize) (AVIChunk *self); -}; - -struct _AVIChunkPrivate { - GFile* file; - gchar* section_name; - guint64 section_size; - guint64 section_offset; - GDataInputStream* input; - AVIChunk* parent; -}; - -struct _ParamSpecAVIChunk { - GParamSpec parent_instance; -}; - - -static gpointer video_metadata_parent_class = NULL; -static gpointer quick_time_metadata_loader_parent_class = NULL; -static gpointer quick_time_atom_parent_class = NULL; -static gpointer avi_metadata_loader_parent_class = NULL; -static gpointer avi_chunk_parent_class = NULL; - -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -gpointer metadata_date_time_ref (gpointer instance); -void metadata_date_time_unref (gpointer instance); -GParamSpec* param_spec_metadata_date_time (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_metadata_date_time (GValue* value, - gpointer v_object); -void value_take_metadata_date_time (GValue* value, - gpointer v_object); -gpointer value_get_metadata_date_time (const GValue* value); -GType metadata_date_time_get_type (void) G_GNUC_CONST; -GType video_metadata_get_type (void) G_GNUC_CONST; -#define VIDEO_METADATA_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_VIDEO_METADATA, VideoMetadataPrivate)) -VideoMetadata* video_metadata_new (void); -VideoMetadata* video_metadata_construct (GType object_type); -MediaMetadata* media_metadata_construct (GType object_type); -static void video_metadata_real_read_from_file (MediaMetadata* base, - GFile* file, - GError** error); -gpointer quick_time_metadata_loader_ref (gpointer instance); -void quick_time_metadata_loader_unref (gpointer instance); -GParamSpec* param_spec_quick_time_metadata_loader (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_quick_time_metadata_loader (GValue* value, - gpointer v_object); -void value_take_quick_time_metadata_loader (GValue* value, - gpointer v_object); -gpointer value_get_quick_time_metadata_loader (const GValue* value); -GType quick_time_metadata_loader_get_type (void) G_GNUC_CONST; -QuickTimeMetadataLoader* quick_time_metadata_loader_new (GFile* file); -QuickTimeMetadataLoader* quick_time_metadata_loader_construct (GType object_type, - GFile* file); -gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self); -MetadataDateTime* quick_time_metadata_loader_get_creation_date_time (QuickTimeMetadataLoader* self); -gchar* quick_time_metadata_loader_get_title (QuickTimeMetadataLoader* self); -gpointer avi_metadata_loader_ref (gpointer instance); -void avi_metadata_loader_unref (gpointer instance); -GParamSpec* param_spec_avi_metadata_loader (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_avi_metadata_loader (GValue* value, - gpointer v_object); -void value_take_avi_metadata_loader (GValue* value, - gpointer v_object); -gpointer value_get_avi_metadata_loader (const GValue* value); -GType avi_metadata_loader_get_type (void) G_GNUC_CONST; -AVIMetadataLoader* avi_metadata_loader_new (GFile* file); -AVIMetadataLoader* avi_metadata_loader_construct (GType object_type, - GFile* file); -gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self); -MetadataDateTime* avi_metadata_loader_get_creation_date_time (AVIMetadataLoader* self); -gchar* avi_metadata_loader_get_title (AVIMetadataLoader* self); -static MetadataDateTime* video_metadata_real_get_creation_date_time (MediaMetadata* base); -static gchar* video_metadata_real_get_title (MediaMetadata* base); -static gchar* video_metadata_real_get_comment (MediaMetadata* base); -static void video_metadata_finalize (MediaMetadata * obj); -#define QUICK_TIME_METADATA_LOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_QUICK_TIME_METADATA_LOADER, QuickTimeMetadataLoaderPrivate)) -#define QUICK_TIME_METADATA_LOADER_QUICKTIME_EPOCH_ADJUSTMENT ((time_t) 2082844800) -static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (QuickTimeMetadataLoader* self); -MetadataDateTime* metadata_date_time_new (time_t timestamp); -MetadataDateTime* metadata_date_time_construct (GType object_type, - time_t timestamp); -gpointer quick_time_atom_ref (gpointer instance); -void quick_time_atom_unref (gpointer instance); -GParamSpec* param_spec_quick_time_atom (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_quick_time_atom (GValue* value, - gpointer v_object); -void value_take_quick_time_atom (GValue* value, - gpointer v_object); -gpointer value_get_quick_time_atom (const GValue* value); -GType quick_time_atom_get_type (void) G_GNUC_CONST; -QuickTimeAtom* quick_time_atom_new (GFile* file); -QuickTimeAtom* quick_time_atom_construct (GType object_type, - GFile* file); -void quick_time_atom_open_file (QuickTimeAtom* self, - GError** error); -void quick_time_atom_read_atom (QuickTimeAtom* self, - GError** error); -gchar* quick_time_atom_get_current_atom_name (QuickTimeAtom* self); -void quick_time_atom_next_atom (QuickTimeAtom* self, - GError** error); -gboolean quick_time_atom_is_last_atom (QuickTimeAtom* self); -void quick_time_atom_close_file (QuickTimeAtom* self, - GError** error); -QuickTimeAtom* quick_time_atom_get_first_child_atom (QuickTimeAtom* self); -guint64 quick_time_atom_section_size_remaining (QuickTimeAtom* self); -guint32 quick_time_atom_read_uint32 (QuickTimeAtom* self, - GError** error); -static void quick_time_metadata_loader_finalize (QuickTimeMetadataLoader * obj); -#define QUICK_TIME_ATOM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_QUICK_TIME_ATOM, QuickTimeAtomPrivate)) -static QuickTimeAtom* quick_time_atom_new_with_input_stream (GDataInputStream* input, - QuickTimeAtom* parent); -static QuickTimeAtom* quick_time_atom_construct_with_input_stream (GType object_type, - GDataInputStream* input, - QuickTimeAtom* parent); -static void quick_time_atom_advance_section_offset (QuickTimeAtom* self, - guint64 amount); -guchar quick_time_atom_read_byte (QuickTimeAtom* self, - GError** error); -guint64 quick_time_atom_read_uint64 (QuickTimeAtom* self, - GError** error); -static void quick_time_atom_skip (QuickTimeAtom* self, - guint64 skip_amount, - GError** error); -void skip_uint64 (GInputStream* input, - guint64 skip_amount, - GError** error); -static void quick_time_atom_finalize (QuickTimeAtom * obj); -#define AVI_METADATA_LOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_AVI_METADATA_LOADER, AVIMetadataLoaderPrivate)) -#define AVI_METADATA_LOADER_NUMERICAL_DATE_LENGTH 19 -#define AVI_METADATA_LOADER_NIKON_NCTG_TIMESTAMP_MARKER ((guint16) 0x13) -#define AVI_METADATA_LOADER_MAX_STRD_LENGTH 100 -static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoader* self); -gpointer avi_chunk_ref (gpointer instance); -void avi_chunk_unref (gpointer instance); -GParamSpec* param_spec_avi_chunk (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_avi_chunk (GValue* value, - gpointer v_object); -void value_take_avi_chunk (GValue* value, - gpointer v_object); -gpointer value_get_avi_chunk (const GValue* value); -GType avi_chunk_get_type (void) G_GNUC_CONST; -AVIChunk* avi_chunk_new (GFile* file); -AVIChunk* avi_chunk_construct (GType object_type, - GFile* file); -void avi_chunk_open_file (AVIChunk* self, - GError** error); -void avi_chunk_read_chunk (AVIChunk* self, - GError** error); -gchar* avi_chunk_get_current_chunk_name (AVIChunk* self); -gchar* avi_chunk_read_name (AVIChunk* self, - GError** error); -void avi_chunk_close_file (AVIChunk* self, - GError** error); -static gchar* avi_metadata_loader_read_nikon_nctg_tag (AVIMetadataLoader* self, - AVIChunk* chunk, - GError** error); -guint64 avi_chunk_section_size_remaining (AVIChunk* self); -guint16 avi_chunk_read_uint16 (AVIChunk* self, - GError** error); -void avi_chunk_skip (AVIChunk* self, - guint64 skip_amount, - GError** error); -guchar avi_chunk_read_byte (AVIChunk* self, - GError** error); -static gchar* avi_metadata_loader_read_fuji_strd_tag (AVIMetadataLoader* self, - AVIChunk* chunk, - GError** error); -static gchar* avi_metadata_loader_read_section (AVIMetadataLoader* self, - AVIChunk* chunk, - GError** error); -gchar* avi_chunk_section_to_string (AVIChunk* self, - GError** error); -AVIChunk* avi_chunk_get_first_child_chunk (AVIChunk* self); -gboolean avi_chunk_is_last_chunk (AVIChunk* self); -void avi_chunk_next_chunk (AVIChunk* self, - GError** error); -static gulong avi_metadata_loader_parse_date (AVIMetadataLoader* self, - const gchar* sdate); -static GDateMonth avi_metadata_loader_month_from_string (AVIMetadataLoader* self, - const gchar* s); -void avi_chunk_nonsection_skip (AVIChunk* self, - guint64 skip_amount, - GError** error); -static void avi_metadata_loader_finalize (AVIMetadataLoader * obj); -#define AVI_CHUNK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_AVI_CHUNK, AVIChunkPrivate)) -#define AVI_CHUNK_MAX_STRING_TO_SECTION_LENGTH 1024 -static AVIChunk* avi_chunk_new_with_input_stream (GDataInputStream* input, - AVIChunk* parent); -static AVIChunk* avi_chunk_construct_with_input_stream (GType object_type, - GDataInputStream* input, - AVIChunk* parent); -static void avi_chunk_advance_section_offset (AVIChunk* self, - guint64 amount); -static void avi_chunk_finalize (AVIChunk * obj); - - -VideoMetadata* -video_metadata_construct (GType object_type) -{ - VideoMetadata* self = NULL; -#line 13 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self = (VideoMetadata*) media_metadata_construct (object_type); -#line 13 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return self; -#line 451 "VideoMetadata.c" -} - - -VideoMetadata* -video_metadata_new (void) -{ -#line 13 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return video_metadata_construct (TYPE_VIDEO_METADATA); -#line 460 "VideoMetadata.c" -} - - -static void -video_metadata_real_read_from_file (MediaMetadata* base, - GFile* file, - GError** error) -{ - VideoMetadata * self; - QuickTimeMetadataLoader* quicktime = NULL; - QuickTimeMetadataLoader* _tmp0_; - QuickTimeMetadataLoader* _tmp1_; - AVIMetadataLoader* avi = NULL; - AVIMetadataLoader* _tmp6_; - AVIMetadataLoader* _tmp7_; - gchar* _tmp12_; - gchar* _tmp13_; - GError* _tmp14_; - GError* _tmp15_; - GError * _inner_error_ = NULL; -#line 19 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_METADATA, VideoMetadata); -#line 19 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 20 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = quick_time_metadata_loader_new (file); -#line 20 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quicktime = _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = quicktime; -#line 21 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (quick_time_metadata_loader_is_supported (_tmp1_)) { -#line 493 "VideoMetadata.c" - QuickTimeMetadataLoader* _tmp2_; - MetadataDateTime* _tmp3_; - QuickTimeMetadataLoader* _tmp4_; - gchar* _tmp5_; -#line 22 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = quicktime; -#line 22 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = quick_time_metadata_loader_get_creation_date_time (_tmp2_); -#line 22 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _metadata_date_time_unref0 (self->priv->timestamp); -#line 22 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->timestamp = _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = quicktime; -#line 23 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp5_ = quick_time_metadata_loader_get_title (_tmp4_); -#line 23 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (self->priv->title); -#line 23 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->title = _tmp5_; -#line 25 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (self->priv->comment); -#line 25 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->comment = NULL; -#line 26 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _quick_time_metadata_loader_unref0 (quicktime); -#line 26 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 522 "VideoMetadata.c" - } -#line 28 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp6_ = avi_metadata_loader_new (file); -#line 28 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi = _tmp6_; -#line 29 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp7_ = avi; -#line 29 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (avi_metadata_loader_is_supported (_tmp7_)) { -#line 532 "VideoMetadata.c" - AVIMetadataLoader* _tmp8_; - MetadataDateTime* _tmp9_; - AVIMetadataLoader* _tmp10_; - gchar* _tmp11_; -#line 30 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp8_ = avi; -#line 30 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp9_ = avi_metadata_loader_get_creation_date_time (_tmp8_); -#line 30 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _metadata_date_time_unref0 (self->priv->timestamp); -#line 30 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->timestamp = _tmp9_; -#line 31 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp10_ = avi; -#line 31 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp11_ = avi_metadata_loader_get_title (_tmp10_); -#line 31 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (self->priv->title); -#line 31 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->title = _tmp11_; -#line 32 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (self->priv->comment); -#line 32 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->comment = NULL; -#line 33 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _avi_metadata_loader_unref0 (avi); -#line 33 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _quick_time_metadata_loader_unref0 (quicktime); -#line 33 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 563 "VideoMetadata.c" - } -#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp12_ = g_file_get_path (file); -#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp13_ = _tmp12_; -#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp14_ = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, "File %s is not a supported video format", _tmp13_); -#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp15_ = _tmp14_; -#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (_tmp13_); -#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _inner_error_ = _tmp15_; -#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _avi_metadata_loader_unref0 (avi); -#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _quick_time_metadata_loader_unref0 (quicktime); -#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 585 "VideoMetadata.c" -} - - -static gpointer -_metadata_date_time_ref0 (gpointer self) -{ -#line 40 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return self ? metadata_date_time_ref (self) : NULL; -#line 594 "VideoMetadata.c" -} - - -static MetadataDateTime* -video_metadata_real_get_creation_date_time (MediaMetadata* base) -{ - VideoMetadata * self; - MetadataDateTime* result = NULL; - MetadataDateTime* _tmp0_; - MetadataDateTime* _tmp1_; -#line 39 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_METADATA, VideoMetadata); -#line 40 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->timestamp; -#line 40 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = _metadata_date_time_ref0 (_tmp0_); -#line 40 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp1_; -#line 40 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 615 "VideoMetadata.c" -} - - -static gchar* -video_metadata_real_get_title (MediaMetadata* base) -{ - VideoMetadata * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 43 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_METADATA, VideoMetadata); -#line 44 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->title; -#line 44 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 44 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp1_; -#line 44 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 636 "VideoMetadata.c" -} - - -static gchar* -video_metadata_real_get_comment (MediaMetadata* base) -{ - VideoMetadata * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 47 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_METADATA, VideoMetadata); -#line 48 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->comment; -#line 48 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 48 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp1_; -#line 48 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 657 "VideoMetadata.c" -} - - -static void -video_metadata_class_init (VideoMetadataClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - video_metadata_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - ((MediaMetadataClass *) klass)->finalize = video_metadata_finalize; -#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_type_class_add_private (klass, sizeof (VideoMetadataPrivate)); -#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - ((MediaMetadataClass *) klass)->read_from_file = (void (*) (MediaMetadata *, GFile*, GError**)) video_metadata_real_read_from_file; -#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - ((MediaMetadataClass *) klass)->get_creation_date_time = (MetadataDateTime* (*) (MediaMetadata *)) video_metadata_real_get_creation_date_time; -#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - ((MediaMetadataClass *) klass)->get_title = (gchar* (*) (MediaMetadata *)) video_metadata_real_get_title; -#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - ((MediaMetadataClass *) klass)->get_comment = (gchar* (*) (MediaMetadata *)) video_metadata_real_get_comment; -#line 678 "VideoMetadata.c" -} - - -static void -video_metadata_instance_init (VideoMetadata * self) -{ -#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv = VIDEO_METADATA_GET_PRIVATE (self); -#line 9 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->timestamp = NULL; -#line 10 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->title = NULL; -#line 11 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->comment = NULL; -#line 693 "VideoMetadata.c" -} - - -static void -video_metadata_finalize (MediaMetadata * obj) -{ - VideoMetadata * self; -#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_METADATA, VideoMetadata); -#line 9 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _metadata_date_time_unref0 (self->priv->timestamp); -#line 10 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (self->priv->title); -#line 11 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (self->priv->comment); -#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - MEDIA_METADATA_CLASS (video_metadata_parent_class)->finalize (obj); -#line 711 "VideoMetadata.c" -} - - -GType -video_metadata_get_type (void) -{ - static volatile gsize video_metadata_type_id__volatile = 0; - if (g_once_init_enter (&video_metadata_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (VideoMetadataClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_metadata_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoMetadata), 0, (GInstanceInitFunc) video_metadata_instance_init, NULL }; - GType video_metadata_type_id; - video_metadata_type_id = g_type_register_static (TYPE_MEDIA_METADATA, "VideoMetadata", &g_define_type_info, 0); - g_once_init_leave (&video_metadata_type_id__volatile, video_metadata_type_id); - } - return video_metadata_type_id__volatile; -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 62 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return self ? g_object_ref (self) : NULL; -#line 734 "VideoMetadata.c" -} - - -QuickTimeMetadataLoader* -quick_time_metadata_loader_construct (GType object_type, - GFile* file) -{ - QuickTimeMetadataLoader* self = NULL; - GFile* _tmp0_; -#line 61 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 61 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self = (QuickTimeMetadataLoader*) g_type_create_instance (object_type); -#line 62 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = _g_object_ref0 (file); -#line 62 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (self->priv->file); -#line 62 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->file = _tmp0_; -#line 61 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return self; -#line 756 "VideoMetadata.c" -} - - -QuickTimeMetadataLoader* -quick_time_metadata_loader_new (GFile* file) -{ -#line 61 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return quick_time_metadata_loader_construct (TYPE_QUICK_TIME_METADATA_LOADER, file); -#line 765 "VideoMetadata.c" -} - - -MetadataDateTime* -quick_time_metadata_loader_get_creation_date_time (QuickTimeMetadataLoader* self) -{ - MetadataDateTime* result = NULL; - MetadataDateTime* _tmp0_; -#line 65 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_QUICK_TIME_METADATA_LOADER (self), NULL); -#line 66 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = metadata_date_time_new ((time_t) quick_time_metadata_loader_get_creation_date_time_for_quicktime (self)); -#line 66 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp0_; -#line 66 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 782 "VideoMetadata.c" -} - - -gchar* -quick_time_metadata_loader_get_title (QuickTimeMetadataLoader* self) -{ - gchar* result = NULL; -#line 69 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_QUICK_TIME_METADATA_LOADER (self), NULL); -#line 71 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = NULL; -#line 71 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 796 "VideoMetadata.c" -} - - -gboolean -quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self) -{ - gboolean result = FALSE; - QuickTimeAtom* test = NULL; - GFile* _tmp0_; - QuickTimeAtom* _tmp1_; - gboolean ret = FALSE; - GError * _inner_error_ = NULL; -#line 75 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_QUICK_TIME_METADATA_LOADER (self), FALSE); -#line 76 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->file; -#line 76 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = quick_time_atom_new (_tmp0_); -#line 76 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - test = _tmp1_; -#line 78 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - ret = FALSE; -#line 819 "VideoMetadata.c" - { - QuickTimeAtom* _tmp2_; - QuickTimeAtom* _tmp3_; - QuickTimeAtom* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gboolean _tmp7_; -#line 80 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = test; -#line 80 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_open_file (_tmp2_, &_inner_error_); -#line 80 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 833 "VideoMetadata.c" - goto __catch586_g_error; - } -#line 81 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = test; -#line 81 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_read_atom (_tmp3_, &_inner_error_); -#line 81 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 842 "VideoMetadata.c" - goto __catch586_g_error; - } -#line 84 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = test; -#line 84 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp5_ = quick_time_atom_get_current_atom_name (_tmp4_); -#line 84 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp6_ = _tmp5_; -#line 84 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp7_ = g_strcmp0 ("ftyp", _tmp6_) == 0; -#line 84 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (_tmp6_); -#line 84 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp7_) { -#line 85 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - ret = TRUE; -#line 859 "VideoMetadata.c" - } else { -#line 90 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - while (TRUE) { -#line 863 "VideoMetadata.c" - QuickTimeAtom* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gboolean _tmp11_; - QuickTimeAtom* _tmp12_; - QuickTimeAtom* _tmp13_; - QuickTimeAtom* _tmp14_; -#line 91 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp8_ = test; -#line 91 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp9_ = quick_time_atom_get_current_atom_name (_tmp8_); -#line 91 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp10_ = _tmp9_; -#line 91 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp11_ = g_strcmp0 ("moov", _tmp10_) == 0; -#line 91 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (_tmp10_); -#line 91 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp11_) { -#line 92 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - ret = TRUE; -#line 93 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - break; -#line 887 "VideoMetadata.c" - } -#line 95 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp12_ = test; -#line 95 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_next_atom (_tmp12_, &_inner_error_); -#line 95 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 895 "VideoMetadata.c" - goto __catch586_g_error; - } -#line 96 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp13_ = test; -#line 96 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_read_atom (_tmp13_, &_inner_error_); -#line 96 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 904 "VideoMetadata.c" - goto __catch586_g_error; - } -#line 97 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp14_ = test; -#line 97 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (quick_time_atom_is_last_atom (_tmp14_)) { -#line 98 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - break; -#line 913 "VideoMetadata.c" - } - } - } - } - goto __finally586; - __catch586_g_error: - { - GError* e = NULL; - GFile* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - GError* _tmp18_; - const gchar* _tmp19_; -#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - e = _inner_error_; -#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _inner_error_ = NULL; -#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp15_ = self->priv->file; -#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp16_ = g_file_get_path (_tmp15_); -#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp17_ = _tmp16_; -#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp18_ = e; -#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp19_ = _tmp18_->message; -#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_debug ("VideoMetadata.vala:103: Error while testing for QuickTime file for %s:" \ -" %s", _tmp17_, _tmp19_); -#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (_tmp17_); -#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_error_free0 (e); -#line 947 "VideoMetadata.c" - } - __finally586: -#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 952 "VideoMetadata.c" - gboolean _tmp20_ = FALSE; -#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _quick_time_atom_unref0 (test); -#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_clear_error (&_inner_error_); -#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return _tmp20_; -#line 962 "VideoMetadata.c" - } - { - QuickTimeAtom* _tmp21_; -#line 107 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp21_ = test; -#line 107 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_close_file (_tmp21_, &_inner_error_); -#line 107 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 972 "VideoMetadata.c" - goto __catch587_g_error; - } - } - goto __finally587; - __catch587_g_error: - { - GError* e = NULL; - GError* _tmp22_; - const gchar* _tmp23_; -#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - e = _inner_error_; -#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _inner_error_ = NULL; -#line 109 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp22_ = e; -#line 109 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp23_ = _tmp22_->message; -#line 109 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_debug ("VideoMetadata.vala:109: Error while closing Quicktime file: %s", _tmp23_); -#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_error_free0 (e); -#line 994 "VideoMetadata.c" - } - __finally587: -#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 999 "VideoMetadata.c" - gboolean _tmp24_ = FALSE; -#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _quick_time_atom_unref0 (test); -#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_clear_error (&_inner_error_); -#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return _tmp24_; -#line 1009 "VideoMetadata.c" - } -#line 111 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = ret; -#line 111 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _quick_time_atom_unref0 (test); -#line 111 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 1017 "VideoMetadata.c" -} - - -static gulong -quick_time_metadata_loader_get_creation_date_time_for_quicktime (QuickTimeMetadataLoader* self) -{ - gulong result = 0UL; - QuickTimeAtom* test = NULL; - GFile* _tmp0_; - QuickTimeAtom* _tmp1_; - time_t timestamp = 0; - time_t _tmp33_; - time_t _tmp35_; - GError * _inner_error_ = NULL; -#line 114 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_QUICK_TIME_METADATA_LOADER (self), 0UL); -#line 115 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->file; -#line 115 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = quick_time_atom_new (_tmp0_); -#line 115 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - test = _tmp1_; -#line 116 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - timestamp = (time_t) 0; -#line 1042 "VideoMetadata.c" - { - QuickTimeAtom* _tmp2_; - gboolean done = FALSE; -#line 119 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = test; -#line 119 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_open_file (_tmp2_, &_inner_error_); -#line 119 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1052 "VideoMetadata.c" - goto __catch588_g_error; - } -#line 120 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - done = FALSE; -#line 121 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - while (TRUE) { -#line 1059 "VideoMetadata.c" - gboolean _tmp3_; - QuickTimeAtom* _tmp4_; - QuickTimeAtom* _tmp5_; - QuickTimeAtom* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gboolean _tmp9_; - QuickTimeAtom* _tmp25_; -#line 121 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = done; -#line 121 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!(!_tmp3_)) { -#line 121 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - break; -#line 1074 "VideoMetadata.c" - } -#line 123 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = test; -#line 123 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_read_atom (_tmp4_, &_inner_error_); -#line 123 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1082 "VideoMetadata.c" - goto __catch588_g_error; - } -#line 124 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp5_ = test; -#line 124 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (quick_time_atom_is_last_atom (_tmp5_)) { -#line 124 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - break; -#line 1091 "VideoMetadata.c" - } -#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp6_ = test; -#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp7_ = quick_time_atom_get_current_atom_name (_tmp6_); -#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp8_ = _tmp7_; -#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp9_ = g_strcmp0 ("moov", _tmp8_) == 0; -#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (_tmp8_); -#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp9_) { -#line 1105 "VideoMetadata.c" - QuickTimeAtom* child = NULL; - QuickTimeAtom* _tmp10_; - QuickTimeAtom* _tmp11_; -#line 126 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp10_ = test; -#line 126 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp11_ = quick_time_atom_get_first_child_atom (_tmp10_); -#line 126 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - child = _tmp11_; -#line 127 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - while (TRUE) { -#line 1117 "VideoMetadata.c" - gboolean _tmp12_; - QuickTimeAtom* _tmp13_; - gboolean _tmp14_ = FALSE; - QuickTimeAtom* _tmp15_; - QuickTimeAtom* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - gboolean _tmp20_; - QuickTimeAtom* _tmp24_; -#line 127 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp12_ = done; -#line 127 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!(!_tmp12_)) { -#line 127 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - break; -#line 1133 "VideoMetadata.c" - } -#line 129 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp13_ = child; -#line 129 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_read_atom (_tmp13_, &_inner_error_); -#line 129 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 129 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _quick_time_atom_unref0 (child); -#line 1143 "VideoMetadata.c" - goto __catch588_g_error; - } -#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp15_ = child; -#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (quick_time_atom_is_last_atom (_tmp15_)) { -#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp14_ = TRUE; -#line 1152 "VideoMetadata.c" - } else { - QuickTimeAtom* _tmp16_; -#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp16_ = child; -#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp14_ = ((guint64) 0) == quick_time_atom_section_size_remaining (_tmp16_); -#line 1159 "VideoMetadata.c" - } -#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp14_) { -#line 131 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - done = TRUE; -#line 132 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - break; -#line 1167 "VideoMetadata.c" - } -#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp17_ = child; -#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp18_ = quick_time_atom_get_current_atom_name (_tmp17_); -#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp19_ = _tmp18_; -#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp20_ = g_strcmp0 ("mvhd", _tmp19_) == 0; -#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (_tmp19_); -#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp20_) { -#line 1181 "VideoMetadata.c" - QuickTimeAtom* _tmp21_; - guint32 _tmp22_ = 0U; - QuickTimeAtom* _tmp23_; -#line 137 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp21_ = child; -#line 137 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_read_uint32 (_tmp21_, &_inner_error_); -#line 137 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 137 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _quick_time_atom_unref0 (child); -#line 1193 "VideoMetadata.c" - goto __catch588_g_error; - } -#line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp23_ = child; -#line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp22_ = quick_time_atom_read_uint32 (_tmp23_, &_inner_error_); -#line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _quick_time_atom_unref0 (child); -#line 1204 "VideoMetadata.c" - goto __catch588_g_error; - } -#line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - timestamp = _tmp22_ - QUICK_TIME_METADATA_LOADER_QUICKTIME_EPOCH_ADJUSTMENT; -#line 140 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - done = TRUE; -#line 141 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - break; -#line 1213 "VideoMetadata.c" - } -#line 143 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp24_ = child; -#line 143 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_next_atom (_tmp24_, &_inner_error_); -#line 143 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 143 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _quick_time_atom_unref0 (child); -#line 1223 "VideoMetadata.c" - goto __catch588_g_error; - } - } -#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _quick_time_atom_unref0 (child); -#line 1229 "VideoMetadata.c" - } -#line 146 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp25_ = test; -#line 146 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_next_atom (_tmp25_, &_inner_error_); -#line 146 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1237 "VideoMetadata.c" - goto __catch588_g_error; - } - } - } - goto __finally588; - __catch588_g_error: - { - GError* e = NULL; - GError* _tmp26_; - const gchar* _tmp27_; -#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - e = _inner_error_; -#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _inner_error_ = NULL; -#line 149 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp26_ = e; -#line 149 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp27_ = _tmp26_->message; -#line 149 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_debug ("VideoMetadata.vala:149: Error while testing for QuickTime file: %s", _tmp27_); -#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_error_free0 (e); -#line 1260 "VideoMetadata.c" - } - __finally588: -#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1265 "VideoMetadata.c" - gulong _tmp28_ = 0UL; -#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _quick_time_atom_unref0 (test); -#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_clear_error (&_inner_error_); -#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return _tmp28_; -#line 1275 "VideoMetadata.c" - } - { - QuickTimeAtom* _tmp29_; -#line 153 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp29_ = test; -#line 153 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_close_file (_tmp29_, &_inner_error_); -#line 153 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1285 "VideoMetadata.c" - goto __catch589_g_error; - } - } - goto __finally589; - __catch589_g_error: - { - GError* e = NULL; - GError* _tmp30_; - const gchar* _tmp31_; -#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - e = _inner_error_; -#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _inner_error_ = NULL; -#line 155 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp30_ = e; -#line 155 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp31_ = _tmp30_->message; -#line 155 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_debug ("VideoMetadata.vala:155: Error while closing Quicktime file: %s", _tmp31_); -#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_error_free0 (e); -#line 1307 "VideoMetadata.c" - } - __finally589: -#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1312 "VideoMetadata.c" - gulong _tmp32_ = 0UL; -#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _quick_time_atom_unref0 (test); -#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_clear_error (&_inner_error_); -#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return _tmp32_; -#line 1322 "VideoMetadata.c" - } -#line 166 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp33_ = timestamp; -#line 166 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp33_ < ((time_t) 0)) { -#line 1328 "VideoMetadata.c" - time_t _tmp34_; -#line 167 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp34_ = timestamp; -#line 167 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - timestamp = _tmp34_ + QUICK_TIME_METADATA_LOADER_QUICKTIME_EPOCH_ADJUSTMENT; -#line 1334 "VideoMetadata.c" - } -#line 169 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp35_ = timestamp; -#line 169 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = (gulong) _tmp35_; -#line 169 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _quick_time_atom_unref0 (test); -#line 169 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 1344 "VideoMetadata.c" -} - - -static void -value_quick_time_metadata_loader_init (GValue* value) -{ -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 1353 "VideoMetadata.c" -} - - -static void -value_quick_time_metadata_loader_free_value (GValue* value) -{ -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (value->data[0].v_pointer) { -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_metadata_loader_unref (value->data[0].v_pointer); -#line 1364 "VideoMetadata.c" - } -} - - -static void -value_quick_time_metadata_loader_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (src_value->data[0].v_pointer) { -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - dest_value->data[0].v_pointer = quick_time_metadata_loader_ref (src_value->data[0].v_pointer); -#line 1377 "VideoMetadata.c" - } else { -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - dest_value->data[0].v_pointer = NULL; -#line 1381 "VideoMetadata.c" - } -} - - -static gpointer -value_quick_time_metadata_loader_peek_pointer (const GValue* value) -{ -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return value->data[0].v_pointer; -#line 1391 "VideoMetadata.c" -} - - -static gchar* -value_quick_time_metadata_loader_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (collect_values[0].v_pointer) { -#line 1403 "VideoMetadata.c" - QuickTimeMetadataLoader * object; - object = collect_values[0].v_pointer; -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (object->parent_instance.g_class == NULL) { -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1410 "VideoMetadata.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1414 "VideoMetadata.c" - } -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = quick_time_metadata_loader_ref (object); -#line 1418 "VideoMetadata.c" - } else { -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 1422 "VideoMetadata.c" - } -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 1426 "VideoMetadata.c" -} - - -static gchar* -value_quick_time_metadata_loader_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - QuickTimeMetadataLoader ** object_p; - object_p = collect_values[0].v_pointer; -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!object_p) { -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1442 "VideoMetadata.c" - } -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!value->data[0].v_pointer) { -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - *object_p = NULL; -#line 1448 "VideoMetadata.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - *object_p = value->data[0].v_pointer; -#line 1452 "VideoMetadata.c" - } else { -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - *object_p = quick_time_metadata_loader_ref (value->data[0].v_pointer); -#line 1456 "VideoMetadata.c" - } -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 1460 "VideoMetadata.c" -} - - -GParamSpec* -param_spec_quick_time_metadata_loader (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecQuickTimeMetadataLoader* spec; -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_QUICK_TIME_METADATA_LOADER), NULL); -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return G_PARAM_SPEC (spec); -#line 1480 "VideoMetadata.c" -} - - -gpointer -value_get_quick_time_metadata_loader (const GValue* value) -{ -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_METADATA_LOADER), NULL); -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return value->data[0].v_pointer; -#line 1491 "VideoMetadata.c" -} - - -void -value_set_quick_time_metadata_loader (GValue* value, - gpointer v_object) -{ - QuickTimeMetadataLoader * old; -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_METADATA_LOADER)); -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - old = value->data[0].v_pointer; -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (v_object) { -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_QUICK_TIME_METADATA_LOADER)); -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = v_object; -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_metadata_loader_ref (value->data[0].v_pointer); -#line 1514 "VideoMetadata.c" - } else { -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 1518 "VideoMetadata.c" - } -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (old) { -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_metadata_loader_unref (old); -#line 1524 "VideoMetadata.c" - } -} - - -void -value_take_quick_time_metadata_loader (GValue* value, - gpointer v_object) -{ - QuickTimeMetadataLoader * old; -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_METADATA_LOADER)); -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - old = value->data[0].v_pointer; -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (v_object) { -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_QUICK_TIME_METADATA_LOADER)); -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = v_object; -#line 1546 "VideoMetadata.c" - } else { -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 1550 "VideoMetadata.c" - } -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (old) { -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_metadata_loader_unref (old); -#line 1556 "VideoMetadata.c" - } -} - - -static void -quick_time_metadata_loader_class_init (QuickTimeMetadataLoaderClass * klass) -{ -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_metadata_loader_parent_class = g_type_class_peek_parent (klass); -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - ((QuickTimeMetadataLoaderClass *) klass)->finalize = quick_time_metadata_loader_finalize; -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_type_class_add_private (klass, sizeof (QuickTimeMetadataLoaderPrivate)); -#line 1570 "VideoMetadata.c" -} - - -static void -quick_time_metadata_loader_instance_init (QuickTimeMetadataLoader * self) -{ -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv = QUICK_TIME_METADATA_LOADER_GET_PRIVATE (self); -#line 59 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->file = NULL; -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->ref_count = 1; -#line 1583 "VideoMetadata.c" -} - - -static void -quick_time_metadata_loader_finalize (QuickTimeMetadataLoader * obj) -{ - QuickTimeMetadataLoader * self; -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_QUICK_TIME_METADATA_LOADER, QuickTimeMetadataLoader); -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_signal_handlers_destroy (self); -#line 59 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (self->priv->file); -#line 1597 "VideoMetadata.c" -} - - -GType -quick_time_metadata_loader_get_type (void) -{ - static volatile gsize quick_time_metadata_loader_type_id__volatile = 0; - if (g_once_init_enter (&quick_time_metadata_loader_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_quick_time_metadata_loader_init, value_quick_time_metadata_loader_free_value, value_quick_time_metadata_loader_copy_value, value_quick_time_metadata_loader_peek_pointer, "p", value_quick_time_metadata_loader_collect_value, "p", value_quick_time_metadata_loader_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (QuickTimeMetadataLoaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) quick_time_metadata_loader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (QuickTimeMetadataLoader), 0, (GInstanceInitFunc) quick_time_metadata_loader_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType quick_time_metadata_loader_type_id; - quick_time_metadata_loader_type_id = g_type_register_fundamental (g_type_fundamental_next (), "QuickTimeMetadataLoader", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&quick_time_metadata_loader_type_id__volatile, quick_time_metadata_loader_type_id); - } - return quick_time_metadata_loader_type_id__volatile; -} - - -gpointer -quick_time_metadata_loader_ref (gpointer instance) -{ - QuickTimeMetadataLoader * self; - self = instance; -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_atomic_int_inc (&self->ref_count); -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return instance; -#line 1626 "VideoMetadata.c" -} - - -void -quick_time_metadata_loader_unref (gpointer instance) -{ - QuickTimeMetadataLoader * self; - self = instance; -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - QUICK_TIME_METADATA_LOADER_GET_CLASS (self)->finalize (self); -#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1641 "VideoMetadata.c" - } -} - - -QuickTimeAtom* -quick_time_atom_construct (GType object_type, - GFile* file) -{ - QuickTimeAtom* self = NULL; - GFile* _tmp0_; -#line 181 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 181 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self = (QuickTimeAtom*) g_type_create_instance (object_type); -#line 182 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = _g_object_ref0 (file); -#line 182 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (self->priv->file); -#line 182 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->file = _tmp0_; -#line 181 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return self; -#line 1664 "VideoMetadata.c" -} - - -QuickTimeAtom* -quick_time_atom_new (GFile* file) -{ -#line 181 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return quick_time_atom_construct (TYPE_QUICK_TIME_ATOM, file); -#line 1673 "VideoMetadata.c" -} - - -static gpointer -_quick_time_atom_ref0 (gpointer self) -{ -#line 187 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return self ? quick_time_atom_ref (self) : NULL; -#line 1682 "VideoMetadata.c" -} - - -static QuickTimeAtom* -quick_time_atom_construct_with_input_stream (GType object_type, - GDataInputStream* input, - QuickTimeAtom* parent) -{ - QuickTimeAtom* self = NULL; - GDataInputStream* _tmp0_; - QuickTimeAtom* _tmp1_; -#line 185 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (G_IS_DATA_INPUT_STREAM (input), NULL); -#line 185 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_QUICK_TIME_ATOM (parent), NULL); -#line 185 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self = (QuickTimeAtom*) g_type_create_instance (object_type); -#line 186 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = _g_object_ref0 (input); -#line 186 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (self->priv->input); -#line 186 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->input = _tmp0_; -#line 187 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = _quick_time_atom_ref0 (parent); -#line 187 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _quick_time_atom_unref0 (self->priv->parent); -#line 187 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->parent = _tmp1_; -#line 185 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return self; -#line 1714 "VideoMetadata.c" -} - - -static QuickTimeAtom* -quick_time_atom_new_with_input_stream (GDataInputStream* input, - QuickTimeAtom* parent) -{ -#line 185 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return quick_time_atom_construct_with_input_stream (TYPE_QUICK_TIME_ATOM, input, parent); -#line 1724 "VideoMetadata.c" -} - - -void -quick_time_atom_open_file (QuickTimeAtom* self, - GError** error) -{ - GFileInputStream* _tmp0_ = NULL; - GFile* _tmp1_; - GFileInputStream* _tmp2_; - GDataInputStream* _tmp3_; - GDataInputStream* _tmp4_; - gchar* _tmp5_; - GError * _inner_error_ = NULL; -#line 190 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (IS_QUICK_TIME_ATOM (self)); -#line 191 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_close_file (self, &_inner_error_); -#line 191 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 191 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 191 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 1749 "VideoMetadata.c" - } -#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = self->priv->file; -#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = g_file_read (_tmp1_, NULL, &_inner_error_); -#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = _tmp2_; -#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 1763 "VideoMetadata.c" - } -#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = g_data_input_stream_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream)); -#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (self->priv->input); -#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->input = _tmp3_; -#line 193 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = self->priv->input; -#line 193 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_data_input_stream_set_byte_order (_tmp4_, G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN); -#line 194 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_size = (guint64) 0; -#line 195 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_offset = (guint64) 0; -#line 196 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp5_ = g_strdup (""); -#line 196 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (self->priv->section_name); -#line 196 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_name = _tmp5_; -#line 190 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (_tmp0_); -#line 1787 "VideoMetadata.c" -} - - -void -quick_time_atom_close_file (QuickTimeAtom* self, - GError** error) -{ - GDataInputStream* _tmp0_; - GError * _inner_error_ = NULL; -#line 199 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (IS_QUICK_TIME_ATOM (self)); -#line 200 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->input; -#line 200 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (NULL != _tmp0_) { -#line 1803 "VideoMetadata.c" - GDataInputStream* _tmp1_; -#line 201 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = self->priv->input; -#line 201 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_input_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_); -#line 201 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 201 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 201 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 1815 "VideoMetadata.c" - } -#line 202 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (self->priv->input); -#line 202 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->input = NULL; -#line 1821 "VideoMetadata.c" - } -} - - -static void -quick_time_atom_advance_section_offset (QuickTimeAtom* self, - guint64 amount) -{ - guint64 _tmp0_; - QuickTimeAtom* _tmp1_; -#line 206 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (IS_QUICK_TIME_ATOM (self)); -#line 207 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->section_offset; -#line 207 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_offset = _tmp0_ + amount; -#line 208 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = self->priv->parent; -#line 208 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (NULL != _tmp1_) { -#line 1842 "VideoMetadata.c" - QuickTimeAtom* _tmp2_; -#line 209 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = self->priv->parent; -#line 209 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_advance_section_offset (_tmp2_, amount); -#line 1848 "VideoMetadata.c" - } -} - - -QuickTimeAtom* -quick_time_atom_get_first_child_atom (QuickTimeAtom* self) -{ - QuickTimeAtom* result = NULL; - GDataInputStream* _tmp0_; - QuickTimeAtom* _tmp1_; -#line 213 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_QUICK_TIME_ATOM (self), NULL); -#line 219 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->input; -#line 219 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = quick_time_atom_new_with_input_stream (_tmp0_, self); -#line 219 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp1_; -#line 219 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 1869 "VideoMetadata.c" -} - - -guchar -quick_time_atom_read_byte (QuickTimeAtom* self, - GError** error) -{ - guchar result = '\0'; - guint8 _tmp0_ = 0U; - GDataInputStream* _tmp1_; - GError * _inner_error_ = NULL; -#line 222 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_QUICK_TIME_ATOM (self), '\0'); -#line 223 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_advance_section_offset (self, (guint64) 1); -#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = self->priv->input; -#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = g_data_input_stream_read_byte (_tmp1_, NULL, &_inner_error_); -#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1891 "VideoMetadata.c" - guchar _tmp2_ = '\0'; -#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return _tmp2_; -#line 1897 "VideoMetadata.c" - } -#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = (guchar) _tmp0_; -#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 1903 "VideoMetadata.c" -} - - -guint32 -quick_time_atom_read_uint32 (QuickTimeAtom* self, - GError** error) -{ - guint32 result = 0U; - guint32 _tmp0_ = 0U; - GDataInputStream* _tmp1_; - GError * _inner_error_ = NULL; -#line 227 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_QUICK_TIME_ATOM (self), 0U); -#line 228 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_advance_section_offset (self, (guint64) 4); -#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = self->priv->input; -#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = g_data_input_stream_read_uint32 (_tmp1_, NULL, &_inner_error_); -#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1925 "VideoMetadata.c" - guint32 _tmp2_ = 0U; -#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return _tmp2_; -#line 1931 "VideoMetadata.c" - } -#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp0_; -#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 1937 "VideoMetadata.c" -} - - -guint64 -quick_time_atom_read_uint64 (QuickTimeAtom* self, - GError** error) -{ - guint64 result = 0ULL; - guint64 _tmp0_ = 0ULL; - GDataInputStream* _tmp1_; - GError * _inner_error_ = NULL; -#line 232 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_QUICK_TIME_ATOM (self), 0ULL); -#line 233 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_advance_section_offset (self, (guint64) 8); -#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = self->priv->input; -#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = g_data_input_stream_read_uint64 (_tmp1_, NULL, &_inner_error_); -#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1959 "VideoMetadata.c" - guint64 _tmp2_ = 0ULL; -#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return _tmp2_; -#line 1965 "VideoMetadata.c" - } -#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp0_; -#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 1971 "VideoMetadata.c" -} - - -static gchar -string_get (const gchar* self, - glong index) -{ - gchar result = '\0'; - gchar _tmp0_; -#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, '\0'); -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = ((gchar*) self)[index]; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1989 "VideoMetadata.c" -} - - -void -quick_time_atom_read_atom (QuickTimeAtom* self, - GError** error) -{ - guint32 _tmp0_ = 0U; - GString* sb = NULL; - GString* _tmp1_; - guchar _tmp2_ = '\0'; - GString* _tmp3_; - guchar _tmp4_ = '\0'; - GString* _tmp5_; - guchar _tmp6_ = '\0'; - GString* _tmp7_; - guchar _tmp8_ = '\0'; - GString* _tmp9_; - GString* _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; - const gchar* _tmp13_; - gint _tmp14_; - gint _tmp15_; - guint64 _tmp34_; - GError * _inner_error_ = NULL; -#line 237 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (IS_QUICK_TIME_ATOM (self)); -#line 239 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = quick_time_atom_read_uint32 (self, &_inner_error_); -#line 239 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 239 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 239 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 2026 "VideoMetadata.c" - } -#line 239 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_size = (guint64) _tmp0_; -#line 242 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = g_string_new (""); -#line 242 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - sb = _tmp1_; -#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = quick_time_atom_read_byte (self, &_inner_error_); -#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 2044 "VideoMetadata.c" - } -#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = sb; -#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_string_append_c (_tmp3_, (gchar) _tmp2_); -#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = quick_time_atom_read_byte (self, &_inner_error_); -#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 2060 "VideoMetadata.c" - } -#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp5_ = sb; -#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_string_append_c (_tmp5_, (gchar) _tmp4_); -#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp6_ = quick_time_atom_read_byte (self, &_inner_error_); -#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 2076 "VideoMetadata.c" - } -#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp7_ = sb; -#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_string_append_c (_tmp7_, (gchar) _tmp6_); -#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp8_ = quick_time_atom_read_byte (self, &_inner_error_); -#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 2092 "VideoMetadata.c" - } -#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp9_ = sb; -#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_string_append_c (_tmp9_, (gchar) _tmp8_); -#line 247 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp10_ = sb; -#line 247 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp11_ = _tmp10_->str; -#line 247 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp12_ = g_strdup (_tmp11_); -#line 247 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (self->priv->section_name); -#line 247 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_name = _tmp12_; -#line 250 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp13_ = self->priv->section_name; -#line 250 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp14_ = strlen (_tmp13_); -#line 250 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp15_ = _tmp14_; -#line 250 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp15_ != 4) { -#line 2116 "VideoMetadata.c" - GFile* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - GError* _tmp19_; - GError* _tmp20_; -#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp16_ = self->priv->file; -#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp17_ = g_file_get_path (_tmp16_); -#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp18_ = _tmp17_; -#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp19_ = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, "QuickTime atom name length is invalid for %s", _tmp18_); -#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp20_ = _tmp19_; -#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (_tmp18_); -#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _inner_error_ = _tmp20_; -#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 2142 "VideoMetadata.c" - } - { - gint i = 0; -#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - i = 0; -#line 2148 "VideoMetadata.c" - { - gboolean _tmp21_ = FALSE; -#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp21_ = TRUE; -#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - while (TRUE) { -#line 2155 "VideoMetadata.c" - gint _tmp23_; - const gchar* _tmp24_; - gint _tmp25_; - gint _tmp26_; - const gchar* _tmp27_; - gint _tmp28_; -#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!_tmp21_) { -#line 2164 "VideoMetadata.c" - gint _tmp22_; -#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp22_ = i; -#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - i = _tmp22_ + 1; -#line 2170 "VideoMetadata.c" - } -#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp21_ = FALSE; -#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp23_ = i; -#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp24_ = self->priv->section_name; -#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp25_ = strlen (_tmp24_); -#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp26_ = _tmp25_; -#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!(_tmp23_ < _tmp26_)) { -#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - break; -#line 2186 "VideoMetadata.c" - } -#line 255 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp27_ = self->priv->section_name; -#line 255 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp28_ = i; -#line 255 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!g_ascii_isprint (string_get (_tmp27_, (glong) _tmp28_))) { -#line 2194 "VideoMetadata.c" - GFile* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - GError* _tmp32_; - GError* _tmp33_; -#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp29_ = self->priv->file; -#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp30_ = g_file_get_path (_tmp29_); -#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp31_ = _tmp30_; -#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp32_ = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, "Bad QuickTime atom in file %s", _tmp31_); -#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp33_ = _tmp32_; -#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (_tmp31_); -#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _inner_error_ = _tmp33_; -#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 2220 "VideoMetadata.c" - } - } - } - } -#line 260 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp34_ = self->priv->section_size; -#line 260 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (((guint64) 1) == _tmp34_) { -#line 2229 "VideoMetadata.c" - guint64 _tmp35_ = 0ULL; -#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp35_ = quick_time_atom_read_uint64 (self, &_inner_error_); -#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 2241 "VideoMetadata.c" - } -#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_size = _tmp35_; -#line 2245 "VideoMetadata.c" - } -#line 237 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 2249 "VideoMetadata.c" -} - - -static void -quick_time_atom_skip (QuickTimeAtom* self, - guint64 skip_amount, - GError** error) -{ - GDataInputStream* _tmp0_; - GError * _inner_error_ = NULL; -#line 267 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (IS_QUICK_TIME_ATOM (self)); -#line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->input; -#line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream), skip_amount, &_inner_error_); -#line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 2272 "VideoMetadata.c" - } -} - - -guint64 -quick_time_atom_section_size_remaining (QuickTimeAtom* self) -{ - guint64 result = 0ULL; - guint64 _tmp0_; - guint64 _tmp1_; - guint64 _tmp2_; - guint64 _tmp3_; -#line 271 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_QUICK_TIME_ATOM (self), 0ULL); -#line 272 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->section_size; -#line 272 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = self->priv->section_offset; -#line 272 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _vala_assert (_tmp0_ >= _tmp1_, "section_size >= section_offset"); -#line 273 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = self->priv->section_size; -#line 273 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = self->priv->section_offset; -#line 273 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp2_ - _tmp3_; -#line 273 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 2301 "VideoMetadata.c" -} - - -void -quick_time_atom_next_atom (QuickTimeAtom* self, - GError** error) -{ - GError * _inner_error_ = NULL; -#line 276 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (IS_QUICK_TIME_ATOM (self)); -#line 277 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_skip (self, quick_time_atom_section_size_remaining (self), &_inner_error_); -#line 277 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 277 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 277 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 2320 "VideoMetadata.c" - } -#line 278 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_size = (guint64) 0; -#line 279 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_offset = (guint64) 0; -#line 2326 "VideoMetadata.c" -} - - -gchar* -quick_time_atom_get_current_atom_name (QuickTimeAtom* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 282 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_QUICK_TIME_ATOM (self), NULL); -#line 283 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->section_name; -#line 283 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 283 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp1_; -#line 283 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 2346 "VideoMetadata.c" -} - - -gboolean -quick_time_atom_is_last_atom (QuickTimeAtom* self) -{ - gboolean result = FALSE; - guint64 _tmp0_; -#line 286 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_QUICK_TIME_ATOM (self), FALSE); -#line 287 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->section_size; -#line 287 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = ((guint64) 0) == _tmp0_; -#line 287 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 2363 "VideoMetadata.c" -} - - -static void -value_quick_time_atom_init (GValue* value) -{ -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 2372 "VideoMetadata.c" -} - - -static void -value_quick_time_atom_free_value (GValue* value) -{ -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (value->data[0].v_pointer) { -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_unref (value->data[0].v_pointer); -#line 2383 "VideoMetadata.c" - } -} - - -static void -value_quick_time_atom_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (src_value->data[0].v_pointer) { -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - dest_value->data[0].v_pointer = quick_time_atom_ref (src_value->data[0].v_pointer); -#line 2396 "VideoMetadata.c" - } else { -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - dest_value->data[0].v_pointer = NULL; -#line 2400 "VideoMetadata.c" - } -} - - -static gpointer -value_quick_time_atom_peek_pointer (const GValue* value) -{ -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return value->data[0].v_pointer; -#line 2410 "VideoMetadata.c" -} - - -static gchar* -value_quick_time_atom_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (collect_values[0].v_pointer) { -#line 2422 "VideoMetadata.c" - QuickTimeAtom * object; - object = collect_values[0].v_pointer; -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (object->parent_instance.g_class == NULL) { -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2429 "VideoMetadata.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2433 "VideoMetadata.c" - } -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = quick_time_atom_ref (object); -#line 2437 "VideoMetadata.c" - } else { -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 2441 "VideoMetadata.c" - } -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 2445 "VideoMetadata.c" -} - - -static gchar* -value_quick_time_atom_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - QuickTimeAtom ** object_p; - object_p = collect_values[0].v_pointer; -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!object_p) { -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2461 "VideoMetadata.c" - } -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!value->data[0].v_pointer) { -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - *object_p = NULL; -#line 2467 "VideoMetadata.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - *object_p = value->data[0].v_pointer; -#line 2471 "VideoMetadata.c" - } else { -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - *object_p = quick_time_atom_ref (value->data[0].v_pointer); -#line 2475 "VideoMetadata.c" - } -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 2479 "VideoMetadata.c" -} - - -GParamSpec* -param_spec_quick_time_atom (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecQuickTimeAtom* spec; -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_QUICK_TIME_ATOM), NULL); -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return G_PARAM_SPEC (spec); -#line 2499 "VideoMetadata.c" -} - - -gpointer -value_get_quick_time_atom (const GValue* value) -{ -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_ATOM), NULL); -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return value->data[0].v_pointer; -#line 2510 "VideoMetadata.c" -} - - -void -value_set_quick_time_atom (GValue* value, - gpointer v_object) -{ - QuickTimeAtom * old; -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_ATOM)); -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - old = value->data[0].v_pointer; -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (v_object) { -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_QUICK_TIME_ATOM)); -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = v_object; -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_ref (value->data[0].v_pointer); -#line 2533 "VideoMetadata.c" - } else { -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 2537 "VideoMetadata.c" - } -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (old) { -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_unref (old); -#line 2543 "VideoMetadata.c" - } -} - - -void -value_take_quick_time_atom (GValue* value, - gpointer v_object) -{ - QuickTimeAtom * old; -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_ATOM)); -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - old = value->data[0].v_pointer; -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (v_object) { -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_QUICK_TIME_ATOM)); -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = v_object; -#line 2565 "VideoMetadata.c" - } else { -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 2569 "VideoMetadata.c" - } -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (old) { -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_unref (old); -#line 2575 "VideoMetadata.c" - } -} - - -static void -quick_time_atom_class_init (QuickTimeAtomClass * klass) -{ -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - quick_time_atom_parent_class = g_type_class_peek_parent (klass); -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - ((QuickTimeAtomClass *) klass)->finalize = quick_time_atom_finalize; -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_type_class_add_private (klass, sizeof (QuickTimeAtomPrivate)); -#line 2589 "VideoMetadata.c" -} - - -static void -quick_time_atom_instance_init (QuickTimeAtom * self) -{ - gchar* _tmp0_; -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv = QUICK_TIME_ATOM_GET_PRIVATE (self); -#line 174 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->file = NULL; -#line 175 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = g_strdup (""); -#line 175 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_name = _tmp0_; -#line 176 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_size = (guint64) 0; -#line 177 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_offset = (guint64) 0; -#line 178 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->input = NULL; -#line 179 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->parent = NULL; -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->ref_count = 1; -#line 2615 "VideoMetadata.c" -} - - -static void -quick_time_atom_finalize (QuickTimeAtom * obj) -{ - QuickTimeAtom * self; -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_QUICK_TIME_ATOM, QuickTimeAtom); -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_signal_handlers_destroy (self); -#line 174 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (self->priv->file); -#line 175 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (self->priv->section_name); -#line 178 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (self->priv->input); -#line 179 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _quick_time_atom_unref0 (self->priv->parent); -#line 2635 "VideoMetadata.c" -} - - -GType -quick_time_atom_get_type (void) -{ - static volatile gsize quick_time_atom_type_id__volatile = 0; - if (g_once_init_enter (&quick_time_atom_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_quick_time_atom_init, value_quick_time_atom_free_value, value_quick_time_atom_copy_value, value_quick_time_atom_peek_pointer, "p", value_quick_time_atom_collect_value, "p", value_quick_time_atom_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (QuickTimeAtomClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) quick_time_atom_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (QuickTimeAtom), 0, (GInstanceInitFunc) quick_time_atom_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType quick_time_atom_type_id; - quick_time_atom_type_id = g_type_register_fundamental (g_type_fundamental_next (), "QuickTimeAtom", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&quick_time_atom_type_id__volatile, quick_time_atom_type_id); - } - return quick_time_atom_type_id__volatile; -} - - -gpointer -quick_time_atom_ref (gpointer instance) -{ - QuickTimeAtom * self; - self = instance; -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_atomic_int_inc (&self->ref_count); -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return instance; -#line 2664 "VideoMetadata.c" -} - - -void -quick_time_atom_unref (gpointer instance) -{ - QuickTimeAtom * self; - self = instance; -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - QUICK_TIME_ATOM_GET_CLASS (self)->finalize (self); -#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2679 "VideoMetadata.c" - } -} - - -AVIMetadataLoader* -avi_metadata_loader_construct (GType object_type, - GFile* file) -{ - AVIMetadataLoader* self = NULL; - GFile* _tmp0_; -#line 305 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 305 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self = (AVIMetadataLoader*) g_type_create_instance (object_type); -#line 306 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = _g_object_ref0 (file); -#line 306 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (self->priv->file); -#line 306 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->file = _tmp0_; -#line 305 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return self; -#line 2702 "VideoMetadata.c" -} - - -AVIMetadataLoader* -avi_metadata_loader_new (GFile* file) -{ -#line 305 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return avi_metadata_loader_construct (TYPE_AVI_METADATA_LOADER, file); -#line 2711 "VideoMetadata.c" -} - - -MetadataDateTime* -avi_metadata_loader_get_creation_date_time (AVIMetadataLoader* self) -{ - MetadataDateTime* result = NULL; - MetadataDateTime* _tmp0_; -#line 309 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), NULL); -#line 310 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = metadata_date_time_new ((time_t) avi_metadata_loader_get_creation_date_time_for_avi (self)); -#line 310 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp0_; -#line 310 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 2728 "VideoMetadata.c" -} - - -gchar* -avi_metadata_loader_get_title (AVIMetadataLoader* self) -{ - gchar* result = NULL; -#line 313 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), NULL); -#line 315 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = NULL; -#line 315 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 2742 "VideoMetadata.c" -} - - -gboolean -avi_metadata_loader_is_supported (AVIMetadataLoader* self) -{ - gboolean result = FALSE; - AVIChunk* chunk = NULL; - GFile* _tmp0_; - AVIChunk* _tmp1_; - gboolean ret = FALSE; - GError * _inner_error_ = NULL; -#line 319 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), FALSE); -#line 320 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->file; -#line 320 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = avi_chunk_new (_tmp0_); -#line 320 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - chunk = _tmp1_; -#line 321 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - ret = FALSE; -#line 2765 "VideoMetadata.c" - { - AVIChunk* _tmp2_; - AVIChunk* _tmp3_; - gboolean _tmp4_ = FALSE; - AVIChunk* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gboolean _tmp8_; -#line 323 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = chunk; -#line 323 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_open_file (_tmp2_, &_inner_error_); -#line 323 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2780 "VideoMetadata.c" - goto __catch590_g_error; - } -#line 324 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = chunk; -#line 324 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_read_chunk (_tmp3_, &_inner_error_); -#line 324 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2789 "VideoMetadata.c" - goto __catch590_g_error; - } -#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp5_ = chunk; -#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp6_ = avi_chunk_get_current_chunk_name (_tmp5_); -#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp7_ = _tmp6_; -#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp8_ = g_strcmp0 ("RIFF", _tmp7_) == 0; -#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (_tmp7_); -#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp8_) { -#line 2804 "VideoMetadata.c" - gchar* _tmp9_ = NULL; - AVIChunk* _tmp10_; - gchar* _tmp11_; -#line 327 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp10_ = chunk; -#line 327 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp11_ = avi_chunk_read_name (_tmp10_, &_inner_error_); -#line 327 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp9_ = _tmp11_; -#line 327 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2816 "VideoMetadata.c" - goto __catch590_g_error; - } -#line 327 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = g_strcmp0 ("AVI ", _tmp9_) == 0; -#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (_tmp9_); -#line 2823 "VideoMetadata.c" - } else { -#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = FALSE; -#line 2827 "VideoMetadata.c" - } -#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp4_) { -#line 328 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - ret = TRUE; -#line 2833 "VideoMetadata.c" - } - } - goto __finally590; - __catch590_g_error: - { - GError* e = NULL; - GError* _tmp12_; - const gchar* _tmp13_; -#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - e = _inner_error_; -#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _inner_error_ = NULL; -#line 331 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp12_ = e; -#line 331 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp13_ = _tmp12_->message; -#line 331 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_debug ("VideoMetadata.vala:331: Error while testing for AVI file: %s", _tmp13_); -#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_error_free0 (e); -#line 2854 "VideoMetadata.c" - } - __finally590: -#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2859 "VideoMetadata.c" - gboolean _tmp14_ = FALSE; -#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _avi_chunk_unref0 (chunk); -#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_clear_error (&_inner_error_); -#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return _tmp14_; -#line 2869 "VideoMetadata.c" - } - { - AVIChunk* _tmp15_; -#line 335 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp15_ = chunk; -#line 335 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_close_file (_tmp15_, &_inner_error_); -#line 335 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2879 "VideoMetadata.c" - goto __catch591_g_error; - } - } - goto __finally591; - __catch591_g_error: - { - GError* e = NULL; - GError* _tmp16_; - const gchar* _tmp17_; -#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - e = _inner_error_; -#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _inner_error_ = NULL; -#line 337 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp16_ = e; -#line 337 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp17_ = _tmp16_->message; -#line 337 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_debug ("VideoMetadata.vala:337: Error while closing AVI file: %s", _tmp17_); -#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_error_free0 (e); -#line 2901 "VideoMetadata.c" - } - __finally591: -#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2906 "VideoMetadata.c" - gboolean _tmp18_ = FALSE; -#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _avi_chunk_unref0 (chunk); -#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_clear_error (&_inner_error_); -#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return _tmp18_; -#line 2916 "VideoMetadata.c" - } -#line 339 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = ret; -#line 339 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _avi_chunk_unref0 (chunk); -#line 339 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 2924 "VideoMetadata.c" -} - - -static gchar* -avi_metadata_loader_read_nikon_nctg_tag (AVIMetadataLoader* self, - AVIChunk* chunk, - GError** error) -{ - gchar* result = NULL; - gboolean found_date = FALSE; - gboolean _tmp2_; - gchar* _tmp12_; - GError * _inner_error_ = NULL; -#line 343 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), NULL); -#line 343 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_CHUNK (chunk), NULL); -#line 344 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - found_date = FALSE; -#line 345 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - while (TRUE) { -#line 2946 "VideoMetadata.c" - guint16 tag = 0U; - guint16 size = 0U; - guint16 _tmp0_; - guint16 _tmp1_; -#line 345 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!(avi_chunk_section_size_remaining (chunk) > ((guint64) (sizeof (guint16) * 2)))) { -#line 345 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - break; -#line 2955 "VideoMetadata.c" - } -#line 346 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - tag = avi_chunk_read_uint16 (chunk, &_inner_error_); -#line 346 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 346 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 346 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 2965 "VideoMetadata.c" - } -#line 347 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - size = avi_chunk_read_uint16 (chunk, &_inner_error_); -#line 347 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 347 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 347 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 2975 "VideoMetadata.c" - } -#line 348 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = tag; -#line 348 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (AVI_METADATA_LOADER_NIKON_NCTG_TIMESTAMP_MARKER == _tmp0_) { -#line 349 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - found_date = TRUE; -#line 350 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - break; -#line 2985 "VideoMetadata.c" - } -#line 352 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = size; -#line 352 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_skip (chunk, (guint64) _tmp1_, &_inner_error_); -#line 352 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 352 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 352 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 2997 "VideoMetadata.c" - } - } -#line 355 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = found_date; -#line 355 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp2_) { -#line 3004 "VideoMetadata.c" - GString* sb = NULL; - GString* _tmp3_; - GString* _tmp9_; - const gchar* _tmp10_; - gchar* _tmp11_; -#line 357 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = g_string_new (""); -#line 357 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - sb = _tmp3_; -#line 3014 "VideoMetadata.c" - { - gint i = 0; -#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - i = 0; -#line 3019 "VideoMetadata.c" - { - gboolean _tmp4_ = FALSE; -#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = TRUE; -#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - while (TRUE) { -#line 3026 "VideoMetadata.c" - gint _tmp6_; - guchar _tmp7_ = '\0'; - GString* _tmp8_; -#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!_tmp4_) { -#line 3032 "VideoMetadata.c" - gint _tmp5_; -#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp5_ = i; -#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - i = _tmp5_ + 1; -#line 3038 "VideoMetadata.c" - } -#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = FALSE; -#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp6_ = i; -#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!(_tmp6_ < AVI_METADATA_LOADER_NUMERICAL_DATE_LENGTH)) { -#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - break; -#line 3048 "VideoMetadata.c" - } -#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp7_ = avi_chunk_read_byte (chunk, &_inner_error_); -#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 3060 "VideoMetadata.c" - } -#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp8_ = sb; -#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_string_append_c (_tmp8_, (gchar) _tmp7_); -#line 3066 "VideoMetadata.c" - } - } - } -#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp9_ = sb; -#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp10_ = _tmp9_->str; -#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp11_ = g_strdup (_tmp10_); -#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp11_; -#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3082 "VideoMetadata.c" - } -#line 363 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp12_ = g_strdup (""); -#line 363 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp12_; -#line 363 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3090 "VideoMetadata.c" -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3114 "VideoMetadata.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3123 "VideoMetadata.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 3144 "VideoMetadata.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 3148 "VideoMetadata.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 3154 "VideoMetadata.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 3164 "VideoMetadata.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 3168 "VideoMetadata.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 3176 "VideoMetadata.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 3183 "VideoMetadata.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 3187 "VideoMetadata.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 3193 "VideoMetadata.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3205 "VideoMetadata.c" -} - - -static gchar* -avi_metadata_loader_read_fuji_strd_tag (AVIMetadataLoader* self, - AVIChunk* chunk, - GError** error) -{ - gchar* result = NULL; - gint colons = 0; - gint post_colons = 0; - GString* sb = NULL; - GString* _tmp0_; - GString* _tmp15_; - const gchar* _tmp16_; - gint _tmp17_; - gint _tmp18_; - GString* _tmp20_; - const gchar* _tmp21_; - GString* _tmp22_; - const gchar* _tmp23_; - gint _tmp24_; - gint _tmp25_; - gchar* _tmp26_; - GError * _inner_error_ = NULL; -#line 368 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), NULL); -#line 368 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_CHUNK (chunk), NULL); -#line 369 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_skip (chunk, (guint64) 98, &_inner_error_); -#line 369 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 369 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 369 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 3243 "VideoMetadata.c" - } -#line 370 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_skip (chunk, (guint64) 8, &_inner_error_); -#line 370 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 370 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 370 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 3253 "VideoMetadata.c" - } -#line 372 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - colons = 0; -#line 373 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - post_colons = 0; -#line 374 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = g_string_new (""); -#line 374 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - sb = _tmp0_; -#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - while (TRUE) { -#line 3265 "VideoMetadata.c" - gboolean _tmp1_ = FALSE; - gint _tmp2_; - guchar _tmp4_ = '\0'; - gchar c = '\0'; - gint _tmp5_; - gchar _tmp7_; - gchar _tmp9_; - GString* _tmp12_; - gssize _tmp13_; -#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = colons; -#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp2_ <= 4) { -#line 3279 "VideoMetadata.c" - gint _tmp3_; -#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = post_colons; -#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = _tmp3_ < 2; -#line 3285 "VideoMetadata.c" - } else { -#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = FALSE; -#line 3289 "VideoMetadata.c" - } -#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!_tmp1_) { -#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - break; -#line 3295 "VideoMetadata.c" - } -#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = avi_chunk_read_byte (chunk, &_inner_error_); -#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 3307 "VideoMetadata.c" - } -#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - c = (gchar) _tmp4_; -#line 378 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp5_ = colons; -#line 378 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (4 == _tmp5_) { -#line 3315 "VideoMetadata.c" - gint _tmp6_; -#line 379 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp6_ = post_colons; -#line 379 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - post_colons = _tmp6_ + 1; -#line 3321 "VideoMetadata.c" - } -#line 381 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp7_ = c; -#line 381 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (':' == _tmp7_) { -#line 3327 "VideoMetadata.c" - gint _tmp8_; -#line 382 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp8_ = colons; -#line 382 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - colons = _tmp8_ + 1; -#line 3333 "VideoMetadata.c" - } -#line 384 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp9_ = c; -#line 384 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (g_ascii_isprint (_tmp9_)) { -#line 3339 "VideoMetadata.c" - GString* _tmp10_; - gchar _tmp11_; -#line 385 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp10_ = sb; -#line 385 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp11_ = c; -#line 385 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_string_append_c (_tmp10_, _tmp11_); -#line 3348 "VideoMetadata.c" - } -#line 387 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp12_ = sb; -#line 387 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp13_ = _tmp12_->len; -#line 387 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp13_ > ((gssize) AVI_METADATA_LOADER_MAX_STRD_LENGTH)) { -#line 3356 "VideoMetadata.c" - gchar* _tmp14_; -#line 388 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp14_ = g_strdup (""); -#line 388 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp14_; -#line 388 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 388 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3366 "VideoMetadata.c" - } - } -#line 392 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp15_ = sb; -#line 392 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp16_ = _tmp15_->str; -#line 392 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp17_ = strlen (_tmp16_); -#line 392 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp18_ = _tmp17_; -#line 392 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp18_ < AVI_METADATA_LOADER_NUMERICAL_DATE_LENGTH) { -#line 3379 "VideoMetadata.c" - gchar* _tmp19_; -#line 393 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp19_ = g_strdup (""); -#line 393 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp19_; -#line 393 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 393 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3389 "VideoMetadata.c" - } -#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp20_ = sb; -#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp21_ = _tmp20_->str; -#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp22_ = sb; -#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp23_ = _tmp22_->str; -#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp24_ = strlen (_tmp23_); -#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp25_ = _tmp24_; -#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp26_ = string_substring (_tmp21_, (glong) (_tmp25_ - AVI_METADATA_LOADER_NUMERICAL_DATE_LENGTH), (glong) -1); -#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp26_; -#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3411 "VideoMetadata.c" -} - - -static gchar* -avi_metadata_loader_read_section (AVIMetadataLoader* self, - AVIChunk* chunk, - GError** error) -{ - gchar* result = NULL; - GError * _inner_error_ = NULL; -#line 400 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), NULL); -#line 400 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_CHUNK (chunk), NULL); -#line 401 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - while (TRUE) { -#line 3428 "VideoMetadata.c" - gchar* name = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp13_; -#line 402 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_read_chunk (chunk, &_inner_error_); -#line 402 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 402 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 402 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 3441 "VideoMetadata.c" - } -#line 403 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = avi_chunk_get_current_chunk_name (chunk); -#line 403 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - name = _tmp0_; -#line 404 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = name; -#line 404 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (g_strcmp0 ("IDIT", _tmp1_) == 0) { -#line 3451 "VideoMetadata.c" - gchar* _tmp2_ = NULL; - gchar* _tmp3_; - gchar* _tmp4_; -#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = avi_chunk_section_to_string (chunk, &_inner_error_); -#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = _tmp3_; -#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (name); -#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 3467 "VideoMetadata.c" - } -#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = _tmp2_; -#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = NULL; -#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp4_; -#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (_tmp2_); -#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (name); -#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3481 "VideoMetadata.c" - } else { - const gchar* _tmp5_; -#line 406 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp5_ = name; -#line 406 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (g_strcmp0 ("nctg", _tmp5_) == 0) { -#line 3488 "VideoMetadata.c" - gchar* _tmp6_ = NULL; - gchar* _tmp7_; - gchar* _tmp8_; -#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp7_ = avi_metadata_loader_read_nikon_nctg_tag (self, chunk, &_inner_error_); -#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp6_ = _tmp7_; -#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (name); -#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 3504 "VideoMetadata.c" - } -#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp8_ = _tmp6_; -#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp6_ = NULL; -#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp8_; -#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (_tmp6_); -#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (name); -#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3518 "VideoMetadata.c" - } else { - const gchar* _tmp9_; -#line 408 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp9_ = name; -#line 408 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (g_strcmp0 ("strd", _tmp9_) == 0) { -#line 3525 "VideoMetadata.c" - gchar* _tmp10_ = NULL; - gchar* _tmp11_; - gchar* _tmp12_; -#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp11_ = avi_metadata_loader_read_fuji_strd_tag (self, chunk, &_inner_error_); -#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp10_ = _tmp11_; -#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (name); -#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 3541 "VideoMetadata.c" - } -#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp12_ = _tmp10_; -#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp10_ = NULL; -#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp12_; -#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (_tmp10_); -#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (name); -#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3555 "VideoMetadata.c" - } - } - } -#line 412 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp13_ = name; -#line 412 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (g_strcmp0 ("LIST", _tmp13_) == 0) { -#line 3563 "VideoMetadata.c" - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _result_ = NULL; - AVIChunk* _tmp16_; - AVIChunk* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - const gchar* _tmp20_; -#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp14_ = avi_chunk_read_name (chunk, &_inner_error_); -#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp15_ = _tmp14_; -#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (_tmp15_); -#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (name); -#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 3586 "VideoMetadata.c" - } -#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp16_ = avi_chunk_get_first_child_chunk (chunk); -#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp17_ = _tmp16_; -#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp18_ = avi_metadata_loader_read_section (self, _tmp17_, &_inner_error_); -#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp19_ = _tmp18_; -#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _avi_chunk_unref0 (_tmp17_); -#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _result_ = _tmp19_; -#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (name); -#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 3608 "VideoMetadata.c" - } -#line 415 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp20_ = _result_; -#line 415 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (NULL != _tmp20_) { -#line 416 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _result_; -#line 416 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (name); -#line 416 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3620 "VideoMetadata.c" - } -#line 412 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (_result_); -#line 3624 "VideoMetadata.c" - } -#line 420 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (avi_chunk_is_last_chunk (chunk)) { -#line 421 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (name); -#line 421 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - break; -#line 3632 "VideoMetadata.c" - } -#line 423 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_next_chunk (chunk, &_inner_error_); -#line 423 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 423 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 423 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (name); -#line 423 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 3644 "VideoMetadata.c" - } -#line 401 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (name); -#line 3648 "VideoMetadata.c" - } -#line 425 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = NULL; -#line 425 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3654 "VideoMetadata.c" -} - - -static gulong -avi_metadata_loader_parse_date (AVIMetadataLoader* self, - const gchar* sdate) -{ - gulong result = 0UL; - gint _tmp0_; - gint _tmp1_; - GDate date = {0}; - guint seconds = 0U; - gint year = 0; - gint month = 0; - gint day = 0; - gint hour = 0; - gint min = 0; - gint sec = 0; - gchar weekday[4] = {0}; - gchar monthstr[4] = {0}; - struct tm time = {0}; - struct tm _tmp17_ = {0}; - time_t tm = 0; - gulong _result_ = 0UL; - time_t _tmp18_; - guint _tmp19_; - gulong _tmp20_; - time_t _tmp21_; -#line 432 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), 0UL); -#line 432 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (sdate != NULL, 0UL); -#line 433 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = strlen (sdate); -#line 433 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = _tmp0_; -#line 433 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp1_ == 0) { -#line 434 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = (gulong) 0; -#line 434 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3697 "VideoMetadata.c" - } -#line 437 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - memset (&date, 0, sizeof (GDate)); -#line 438 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - seconds = (guint) 0; -#line 443 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (g_ascii_isdigit (string_get (sdate, (glong) 0))) { -#line 3705 "VideoMetadata.c" - gchar* tmp = NULL; - gchar* _tmp2_; - const gchar* _tmp3_; - gint _result_ = 0; - const gchar* _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; -#line 447 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = g_strdup (sdate); -#line 447 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - tmp = _tmp2_; -#line 448 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = tmp; -#line 448 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_strcanon (_tmp3_, "0123456789 ", ' '); -#line 449 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - sec = 0; -#line 450 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = tmp; -#line 450 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _result_ = sscanf (_tmp4_, "%d %d %d %d %d %d", &year, &month, &day, &hour, &min, &sec); -#line 451 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp5_ = _result_; -#line 451 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp5_ < 5) { -#line 452 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = (gulong) 0; -#line 452 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (tmp); -#line 452 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3742 "VideoMetadata.c" - } -#line 454 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp6_ = day; -#line 454 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp7_ = month; -#line 454 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp8_ = year; -#line 454 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_date_set_dmy (&date, (GDateDay) _tmp6_, (gint) ((GDateMonth) _tmp7_), (GDateYear) _tmp8_); -#line 455 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp9_ = sec; -#line 455 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp10_ = min; -#line 455 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp11_ = hour; -#line 455 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - seconds = (guint) ((_tmp9_ + (_tmp10_ * 60)) + (_tmp11_ * 3600)); -#line 443 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (tmp); -#line 3762 "VideoMetadata.c" - } else { - gint _tmp12_; - gint _tmp13_; - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; -#line 458 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (7 != sscanf (sdate, "%3s %3s %d %d:%d:%d %d", weekday, monthstr, &day, &hour, &min, &sec, &year)) { -#line 460 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = (gulong) 0; -#line 460 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3775 "VideoMetadata.c" - } -#line 462 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp12_ = day; -#line 462 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp13_ = year; -#line 462 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_date_set_dmy (&date, (GDateDay) _tmp12_, (gint) avi_metadata_loader_month_from_string (self, (const gchar*) monthstr), (GDateYear) _tmp13_); -#line 463 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp14_ = sec; -#line 463 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp15_ = min; -#line 463 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp16_ = hour; -#line 463 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - seconds = (guint) ((_tmp14_ + (_tmp15_ * 60)) + (_tmp16_ * 3600)); -#line 3791 "VideoMetadata.c" - } -#line 466 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - memset (&time, 0, sizeof (struct tm)); -#line 467 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_date_to_struct_tm (&date, &_tmp17_); -#line 467 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - time = _tmp17_; -#line 470 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - tm = mktime (&time); -#line 471 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp18_ = tm; -#line 471 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp19_ = seconds; -#line 471 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _result_ = (gulong) (_tmp18_ + _tmp19_); -#line 472 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp20_ = _result_; -#line 472 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp21_ = tm; -#line 472 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp20_ < ((gulong) _tmp21_)) { -#line 3813 "VideoMetadata.c" - GFile* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; -#line 473 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp22_ = self->priv->file; -#line 473 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp23_ = g_file_get_path (_tmp22_); -#line 473 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp24_ = _tmp23_; -#line 473 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_debug ("VideoMetadata.vala:473: Overflow for timestamp in video file %s", _tmp24_); -#line 473 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (_tmp24_); -#line 475 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = (gulong) 0; -#line 475 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3831 "VideoMetadata.c" - } -#line 478 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _result_; -#line 478 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3837 "VideoMetadata.c" -} - - -static GDateMonth -avi_metadata_loader_month_from_string (AVIMetadataLoader* self, - const gchar* s) -{ - GDateMonth result = 0; - gchar* _tmp0_; - gchar* _tmp1_; - GQuark _tmp3_ = 0U; -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - static GQuark _tmp2_label0 = 0; -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - static GQuark _tmp2_label1 = 0; -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - static GQuark _tmp2_label2 = 0; -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - static GQuark _tmp2_label3 = 0; -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - static GQuark _tmp2_label4 = 0; -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - static GQuark _tmp2_label5 = 0; -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - static GQuark _tmp2_label6 = 0; -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - static GQuark _tmp2_label7 = 0; -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - static GQuark _tmp2_label8 = 0; -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - static GQuark _tmp2_label9 = 0; -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - static GQuark _tmp2_label10 = 0; -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - static GQuark _tmp2_label11 = 0; -#line 481 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), 0); -#line 481 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (s != NULL, 0); -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = g_utf8_strdown (s, (gssize) -1); -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = _tmp0_; -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_); -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_free (_tmp1_); -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("jan")))) { -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - switch (0) { -#line 3889 "VideoMetadata.c" - default: - { -#line 484 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = G_DATE_JANUARY; -#line 484 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3896 "VideoMetadata.c" - } - } - } else if (_tmp3_ == ((0 != _tmp2_label1) ? _tmp2_label1 : (_tmp2_label1 = g_quark_from_static_string ("feb")))) { -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - switch (0) { -#line 3902 "VideoMetadata.c" - default: - { -#line 486 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = G_DATE_FEBRUARY; -#line 486 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3909 "VideoMetadata.c" - } - } - } else if (_tmp3_ == ((0 != _tmp2_label2) ? _tmp2_label2 : (_tmp2_label2 = g_quark_from_static_string ("mar")))) { -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - switch (0) { -#line 3915 "VideoMetadata.c" - default: - { -#line 488 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = G_DATE_MARCH; -#line 488 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3922 "VideoMetadata.c" - } - } - } else if (_tmp3_ == ((0 != _tmp2_label3) ? _tmp2_label3 : (_tmp2_label3 = g_quark_from_static_string ("apr")))) { -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - switch (0) { -#line 3928 "VideoMetadata.c" - default: - { -#line 490 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = G_DATE_APRIL; -#line 490 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3935 "VideoMetadata.c" - } - } - } else if (_tmp3_ == ((0 != _tmp2_label4) ? _tmp2_label4 : (_tmp2_label4 = g_quark_from_static_string ("may")))) { -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - switch (0) { -#line 3941 "VideoMetadata.c" - default: - { -#line 492 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = G_DATE_MAY; -#line 492 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3948 "VideoMetadata.c" - } - } - } else if (_tmp3_ == ((0 != _tmp2_label5) ? _tmp2_label5 : (_tmp2_label5 = g_quark_from_static_string ("jun")))) { -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - switch (0) { -#line 3954 "VideoMetadata.c" - default: - { -#line 494 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = G_DATE_JUNE; -#line 494 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3961 "VideoMetadata.c" - } - } - } else if (_tmp3_ == ((0 != _tmp2_label6) ? _tmp2_label6 : (_tmp2_label6 = g_quark_from_static_string ("jul")))) { -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - switch (0) { -#line 3967 "VideoMetadata.c" - default: - { -#line 496 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = G_DATE_JULY; -#line 496 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3974 "VideoMetadata.c" - } - } - } else if (_tmp3_ == ((0 != _tmp2_label7) ? _tmp2_label7 : (_tmp2_label7 = g_quark_from_static_string ("aug")))) { -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - switch (0) { -#line 3980 "VideoMetadata.c" - default: - { -#line 498 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = G_DATE_AUGUST; -#line 498 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 3987 "VideoMetadata.c" - } - } - } else if (_tmp3_ == ((0 != _tmp2_label8) ? _tmp2_label8 : (_tmp2_label8 = g_quark_from_static_string ("sep")))) { -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - switch (0) { -#line 3993 "VideoMetadata.c" - default: - { -#line 500 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = G_DATE_SEPTEMBER; -#line 500 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 4000 "VideoMetadata.c" - } - } - } else if (_tmp3_ == ((0 != _tmp2_label9) ? _tmp2_label9 : (_tmp2_label9 = g_quark_from_static_string ("oct")))) { -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - switch (0) { -#line 4006 "VideoMetadata.c" - default: - { -#line 502 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = G_DATE_OCTOBER; -#line 502 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 4013 "VideoMetadata.c" - } - } - } else if (_tmp3_ == ((0 != _tmp2_label10) ? _tmp2_label10 : (_tmp2_label10 = g_quark_from_static_string ("nov")))) { -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - switch (0) { -#line 4019 "VideoMetadata.c" - default: - { -#line 504 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = G_DATE_NOVEMBER; -#line 504 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 4026 "VideoMetadata.c" - } - } - } else if (_tmp3_ == ((0 != _tmp2_label11) ? _tmp2_label11 : (_tmp2_label11 = g_quark_from_static_string ("dec")))) { -#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - switch (0) { -#line 4032 "VideoMetadata.c" - default: - { -#line 506 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = G_DATE_DECEMBER; -#line 506 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 4039 "VideoMetadata.c" - } - } - } -#line 508 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = G_DATE_BAD_MONTH; -#line 508 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 4047 "VideoMetadata.c" -} - - -static gchar* -string_strip (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strstrip (_tmp1_); -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 4072 "VideoMetadata.c" -} - - -static gulong -avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoader* self) -{ - gulong result = 0UL; - AVIChunk* chunk = NULL; - GFile* _tmp0_; - AVIChunk* _tmp1_; - gulong timestamp = 0UL; - GError * _inner_error_ = NULL; -#line 511 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), 0UL); -#line 512 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->file; -#line 512 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = avi_chunk_new (_tmp0_); -#line 512 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - chunk = _tmp1_; -#line 513 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - timestamp = (gulong) 0; -#line 4095 "VideoMetadata.c" - { - AVIChunk* _tmp2_; - AVIChunk* _tmp3_; - gchar* sdate = NULL; - AVIChunk* _tmp4_; - gchar* _tmp5_; - const gchar* _tmp6_; -#line 515 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = chunk; -#line 515 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_open_file (_tmp2_, &_inner_error_); -#line 515 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4109 "VideoMetadata.c" - goto __catch592_g_error; - } -#line 516 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = chunk; -#line 516 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_nonsection_skip (_tmp3_, (guint64) 12, &_inner_error_); -#line 516 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4118 "VideoMetadata.c" - goto __catch592_g_error; - } -#line 517 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = chunk; -#line 517 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp5_ = avi_metadata_loader_read_section (self, _tmp4_, &_inner_error_); -#line 517 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - sdate = _tmp5_; -#line 517 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4129 "VideoMetadata.c" - goto __catch592_g_error; - } -#line 518 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp6_ = sdate; -#line 518 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (NULL != _tmp6_) { -#line 4136 "VideoMetadata.c" - const gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 519 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp7_ = sdate; -#line 519 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp8_ = string_strip (_tmp7_); -#line 519 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp9_ = _tmp8_; -#line 519 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - timestamp = avi_metadata_loader_parse_date (self, _tmp9_); -#line 519 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (_tmp9_); -#line 4150 "VideoMetadata.c" - } -#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (sdate); -#line 4154 "VideoMetadata.c" - } - goto __finally592; - __catch592_g_error: - { - GError* e = NULL; - GError* _tmp10_; - const gchar* _tmp11_; -#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - e = _inner_error_; -#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _inner_error_ = NULL; -#line 522 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp10_ = e; -#line 522 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp11_ = _tmp10_->message; -#line 522 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_debug ("VideoMetadata.vala:522: Error while reading AVI file: %s", _tmp11_); -#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_error_free0 (e); -#line 4174 "VideoMetadata.c" - } - __finally592: -#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4179 "VideoMetadata.c" - gulong _tmp12_ = 0UL; -#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _avi_chunk_unref0 (chunk); -#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_clear_error (&_inner_error_); -#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return _tmp12_; -#line 4189 "VideoMetadata.c" - } - { - AVIChunk* _tmp13_; -#line 526 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp13_ = chunk; -#line 526 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_close_file (_tmp13_, &_inner_error_); -#line 526 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4199 "VideoMetadata.c" - goto __catch593_g_error; - } - } - goto __finally593; - __catch593_g_error: - { - GError* e = NULL; - GError* _tmp14_; - const gchar* _tmp15_; -#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - e = _inner_error_; -#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _inner_error_ = NULL; -#line 528 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp14_ = e; -#line 528 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp15_ = _tmp14_->message; -#line 528 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_debug ("VideoMetadata.vala:528: Error while closing AVI file: %s", _tmp15_); -#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_error_free0 (e); -#line 4221 "VideoMetadata.c" - } - __finally593: -#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4226 "VideoMetadata.c" - gulong _tmp16_ = 0UL; -#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _avi_chunk_unref0 (chunk); -#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_clear_error (&_inner_error_); -#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return _tmp16_; -#line 4236 "VideoMetadata.c" - } -#line 530 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = timestamp; -#line 530 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _avi_chunk_unref0 (chunk); -#line 530 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 4244 "VideoMetadata.c" -} - - -static void -value_avi_metadata_loader_init (GValue* value) -{ -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 4253 "VideoMetadata.c" -} - - -static void -value_avi_metadata_loader_free_value (GValue* value) -{ -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (value->data[0].v_pointer) { -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_metadata_loader_unref (value->data[0].v_pointer); -#line 4264 "VideoMetadata.c" - } -} - - -static void -value_avi_metadata_loader_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (src_value->data[0].v_pointer) { -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - dest_value->data[0].v_pointer = avi_metadata_loader_ref (src_value->data[0].v_pointer); -#line 4277 "VideoMetadata.c" - } else { -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - dest_value->data[0].v_pointer = NULL; -#line 4281 "VideoMetadata.c" - } -} - - -static gpointer -value_avi_metadata_loader_peek_pointer (const GValue* value) -{ -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return value->data[0].v_pointer; -#line 4291 "VideoMetadata.c" -} - - -static gchar* -value_avi_metadata_loader_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (collect_values[0].v_pointer) { -#line 4303 "VideoMetadata.c" - AVIMetadataLoader * object; - object = collect_values[0].v_pointer; -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (object->parent_instance.g_class == NULL) { -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4310 "VideoMetadata.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4314 "VideoMetadata.c" - } -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = avi_metadata_loader_ref (object); -#line 4318 "VideoMetadata.c" - } else { -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 4322 "VideoMetadata.c" - } -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 4326 "VideoMetadata.c" -} - - -static gchar* -value_avi_metadata_loader_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - AVIMetadataLoader ** object_p; - object_p = collect_values[0].v_pointer; -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!object_p) { -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 4342 "VideoMetadata.c" - } -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!value->data[0].v_pointer) { -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - *object_p = NULL; -#line 4348 "VideoMetadata.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - *object_p = value->data[0].v_pointer; -#line 4352 "VideoMetadata.c" - } else { -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - *object_p = avi_metadata_loader_ref (value->data[0].v_pointer); -#line 4356 "VideoMetadata.c" - } -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 4360 "VideoMetadata.c" -} - - -GParamSpec* -param_spec_avi_metadata_loader (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecAVIMetadataLoader* spec; -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_AVI_METADATA_LOADER), NULL); -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return G_PARAM_SPEC (spec); -#line 4380 "VideoMetadata.c" -} - - -gpointer -value_get_avi_metadata_loader (const GValue* value) -{ -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_METADATA_LOADER), NULL); -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return value->data[0].v_pointer; -#line 4391 "VideoMetadata.c" -} - - -void -value_set_avi_metadata_loader (GValue* value, - gpointer v_object) -{ - AVIMetadataLoader * old; -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_METADATA_LOADER)); -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - old = value->data[0].v_pointer; -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (v_object) { -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_AVI_METADATA_LOADER)); -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = v_object; -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_metadata_loader_ref (value->data[0].v_pointer); -#line 4414 "VideoMetadata.c" - } else { -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 4418 "VideoMetadata.c" - } -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (old) { -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_metadata_loader_unref (old); -#line 4424 "VideoMetadata.c" - } -} - - -void -value_take_avi_metadata_loader (GValue* value, - gpointer v_object) -{ - AVIMetadataLoader * old; -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_METADATA_LOADER)); -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - old = value->data[0].v_pointer; -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (v_object) { -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_AVI_METADATA_LOADER)); -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = v_object; -#line 4446 "VideoMetadata.c" - } else { -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 4450 "VideoMetadata.c" - } -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (old) { -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_metadata_loader_unref (old); -#line 4456 "VideoMetadata.c" - } -} - - -static void -avi_metadata_loader_class_init (AVIMetadataLoaderClass * klass) -{ -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_metadata_loader_parent_class = g_type_class_peek_parent (klass); -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - ((AVIMetadataLoaderClass *) klass)->finalize = avi_metadata_loader_finalize; -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_type_class_add_private (klass, sizeof (AVIMetadataLoaderPrivate)); -#line 4470 "VideoMetadata.c" -} - - -static void -avi_metadata_loader_instance_init (AVIMetadataLoader * self) -{ -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv = AVI_METADATA_LOADER_GET_PRIVATE (self); -#line 294 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->file = NULL; -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->ref_count = 1; -#line 4483 "VideoMetadata.c" -} - - -static void -avi_metadata_loader_finalize (AVIMetadataLoader * obj) -{ - AVIMetadataLoader * self; -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_AVI_METADATA_LOADER, AVIMetadataLoader); -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_signal_handlers_destroy (self); -#line 294 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (self->priv->file); -#line 4497 "VideoMetadata.c" -} - - -GType -avi_metadata_loader_get_type (void) -{ - static volatile gsize avi_metadata_loader_type_id__volatile = 0; - if (g_once_init_enter (&avi_metadata_loader_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_avi_metadata_loader_init, value_avi_metadata_loader_free_value, value_avi_metadata_loader_copy_value, value_avi_metadata_loader_peek_pointer, "p", value_avi_metadata_loader_collect_value, "p", value_avi_metadata_loader_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (AVIMetadataLoaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) avi_metadata_loader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AVIMetadataLoader), 0, (GInstanceInitFunc) avi_metadata_loader_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType avi_metadata_loader_type_id; - avi_metadata_loader_type_id = g_type_register_fundamental (g_type_fundamental_next (), "AVIMetadataLoader", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&avi_metadata_loader_type_id__volatile, avi_metadata_loader_type_id); - } - return avi_metadata_loader_type_id__volatile; -} - - -gpointer -avi_metadata_loader_ref (gpointer instance) -{ - AVIMetadataLoader * self; - self = instance; -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_atomic_int_inc (&self->ref_count); -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return instance; -#line 4526 "VideoMetadata.c" -} - - -void -avi_metadata_loader_unref (gpointer instance) -{ - AVIMetadataLoader * self; - self = instance; -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - AVI_METADATA_LOADER_GET_CLASS (self)->finalize (self); -#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 4541 "VideoMetadata.c" - } -} - - -AVIChunk* -avi_chunk_construct (GType object_type, - GFile* file) -{ - AVIChunk* self = NULL; - GFile* _tmp0_; -#line 543 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 543 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self = (AVIChunk*) g_type_create_instance (object_type); -#line 544 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = _g_object_ref0 (file); -#line 544 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (self->priv->file); -#line 544 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->file = _tmp0_; -#line 543 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return self; -#line 4564 "VideoMetadata.c" -} - - -AVIChunk* -avi_chunk_new (GFile* file) -{ -#line 543 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return avi_chunk_construct (TYPE_AVI_CHUNK, file); -#line 4573 "VideoMetadata.c" -} - - -static gpointer -_avi_chunk_ref0 (gpointer self) -{ -#line 549 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return self ? avi_chunk_ref (self) : NULL; -#line 4582 "VideoMetadata.c" -} - - -static AVIChunk* -avi_chunk_construct_with_input_stream (GType object_type, - GDataInputStream* input, - AVIChunk* parent) -{ - AVIChunk* self = NULL; - GDataInputStream* _tmp0_; - AVIChunk* _tmp1_; -#line 547 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (G_IS_DATA_INPUT_STREAM (input), NULL); -#line 547 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_CHUNK (parent), NULL); -#line 547 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self = (AVIChunk*) g_type_create_instance (object_type); -#line 548 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = _g_object_ref0 (input); -#line 548 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (self->priv->input); -#line 548 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->input = _tmp0_; -#line 549 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = _avi_chunk_ref0 (parent); -#line 549 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _avi_chunk_unref0 (self->priv->parent); -#line 549 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->parent = _tmp1_; -#line 547 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return self; -#line 4614 "VideoMetadata.c" -} - - -static AVIChunk* -avi_chunk_new_with_input_stream (GDataInputStream* input, - AVIChunk* parent) -{ -#line 547 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return avi_chunk_construct_with_input_stream (TYPE_AVI_CHUNK, input, parent); -#line 4624 "VideoMetadata.c" -} - - -void -avi_chunk_open_file (AVIChunk* self, - GError** error) -{ - GFileInputStream* _tmp0_ = NULL; - GFile* _tmp1_; - GFileInputStream* _tmp2_; - GDataInputStream* _tmp3_; - GDataInputStream* _tmp4_; - gchar* _tmp5_; - GError * _inner_error_ = NULL; -#line 552 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (IS_AVI_CHUNK (self)); -#line 553 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_close_file (self, &_inner_error_); -#line 553 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 553 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 553 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 4649 "VideoMetadata.c" - } -#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = self->priv->file; -#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = g_file_read (_tmp1_, NULL, &_inner_error_); -#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = _tmp2_; -#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 4663 "VideoMetadata.c" - } -#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = g_data_input_stream_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream)); -#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (self->priv->input); -#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->input = _tmp3_; -#line 555 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = self->priv->input; -#line 555 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_data_input_stream_set_byte_order (_tmp4_, G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN); -#line 556 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_size = (guint64) 0; -#line 557 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_offset = (guint64) 0; -#line 558 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp5_ = g_strdup (""); -#line 558 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (self->priv->section_name); -#line 558 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_name = _tmp5_; -#line 552 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (_tmp0_); -#line 4687 "VideoMetadata.c" -} - - -void -avi_chunk_close_file (AVIChunk* self, - GError** error) -{ - GDataInputStream* _tmp0_; - GError * _inner_error_ = NULL; -#line 561 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (IS_AVI_CHUNK (self)); -#line 562 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->input; -#line 562 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (NULL != _tmp0_) { -#line 4703 "VideoMetadata.c" - GDataInputStream* _tmp1_; -#line 563 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = self->priv->input; -#line 563 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_input_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_); -#line 563 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 563 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 563 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 4715 "VideoMetadata.c" - } -#line 564 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (self->priv->input); -#line 564 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->input = NULL; -#line 4721 "VideoMetadata.c" - } -} - - -void -avi_chunk_nonsection_skip (AVIChunk* self, - guint64 skip_amount, - GError** error) -{ - GDataInputStream* _tmp0_; - GError * _inner_error_ = NULL; -#line 568 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (IS_AVI_CHUNK (self)); -#line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->input; -#line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream), skip_amount, &_inner_error_); -#line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 4745 "VideoMetadata.c" - } -} - - -void -avi_chunk_skip (AVIChunk* self, - guint64 skip_amount, - GError** error) -{ - GDataInputStream* _tmp0_; - GError * _inner_error_ = NULL; -#line 572 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (IS_AVI_CHUNK (self)); -#line 573 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_advance_section_offset (self, skip_amount); -#line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->input; -#line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream), skip_amount, &_inner_error_); -#line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 4771 "VideoMetadata.c" - } -} - - -AVIChunk* -avi_chunk_get_first_child_chunk (AVIChunk* self) -{ - AVIChunk* result = NULL; - GDataInputStream* _tmp0_; - AVIChunk* _tmp1_; -#line 577 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_CHUNK (self), NULL); -#line 578 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->input; -#line 578 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = avi_chunk_new_with_input_stream (_tmp0_, self); -#line 578 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp1_; -#line 578 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 4792 "VideoMetadata.c" -} - - -static void -avi_chunk_advance_section_offset (AVIChunk* self, - guint64 amount) -{ - guint64 _tmp0_; - guint64 _tmp1_; - guint64 _tmp4_; - AVIChunk* _tmp5_; -#line 581 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (IS_AVI_CHUNK (self)); -#line 582 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->section_offset; -#line 582 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = self->priv->section_size; -#line 582 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if ((_tmp0_ + amount) > _tmp1_) { -#line 4812 "VideoMetadata.c" - guint64 _tmp2_; - guint64 _tmp3_; -#line 583 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = self->priv->section_size; -#line 583 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = self->priv->section_offset; -#line 583 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - amount = _tmp2_ - _tmp3_; -#line 4821 "VideoMetadata.c" - } -#line 585 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = self->priv->section_offset; -#line 585 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_offset = _tmp4_ + amount; -#line 586 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp5_ = self->priv->parent; -#line 586 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (NULL != _tmp5_) { -#line 4831 "VideoMetadata.c" - AVIChunk* _tmp6_; -#line 587 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp6_ = self->priv->parent; -#line 587 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_advance_section_offset (_tmp6_, amount); -#line 4837 "VideoMetadata.c" - } -} - - -guchar -avi_chunk_read_byte (AVIChunk* self, - GError** error) -{ - guchar result = '\0'; - guint8 _tmp0_ = 0U; - GDataInputStream* _tmp1_; - GError * _inner_error_ = NULL; -#line 591 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_CHUNK (self), '\0'); -#line 592 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_advance_section_offset (self, (guint64) 1); -#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = self->priv->input; -#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = g_data_input_stream_read_byte (_tmp1_, NULL, &_inner_error_); -#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4860 "VideoMetadata.c" - guchar _tmp2_ = '\0'; -#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return _tmp2_; -#line 4866 "VideoMetadata.c" - } -#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = (guchar) _tmp0_; -#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 4872 "VideoMetadata.c" -} - - -guint16 -avi_chunk_read_uint16 (AVIChunk* self, - GError** error) -{ - guint16 result = 0U; - guint16 _tmp0_ = 0U; - GDataInputStream* _tmp1_; - GError * _inner_error_ = NULL; -#line 596 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_CHUNK (self), 0U); -#line 597 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_advance_section_offset (self, (guint64) 2); -#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = self->priv->input; -#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = g_data_input_stream_read_uint16 (_tmp1_, NULL, &_inner_error_); -#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4894 "VideoMetadata.c" - guint16 _tmp2_ = 0U; -#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return _tmp2_; -#line 4900 "VideoMetadata.c" - } -#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp0_; -#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 4906 "VideoMetadata.c" -} - - -void -avi_chunk_read_chunk (AVIChunk* self, - GError** error) -{ - GString* sb = NULL; - GString* _tmp0_; - guint8 _tmp1_ = 0U; - GDataInputStream* _tmp2_; - GString* _tmp3_; - guint8 _tmp4_ = 0U; - GDataInputStream* _tmp5_; - GString* _tmp6_; - guint8 _tmp7_ = 0U; - GDataInputStream* _tmp8_; - GString* _tmp9_; - guint8 _tmp10_ = 0U; - GDataInputStream* _tmp11_; - GString* _tmp12_; - GString* _tmp13_; - const gchar* _tmp14_; - gchar* _tmp15_; - guint32 _tmp16_ = 0U; - GDataInputStream* _tmp17_; - GError * _inner_error_ = NULL; -#line 601 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (IS_AVI_CHUNK (self)); -#line 604 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = g_string_new (""); -#line 604 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - sb = _tmp0_; -#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = self->priv->input; -#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = g_data_input_stream_read_byte (_tmp2_, NULL, &_inner_error_); -#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 4952 "VideoMetadata.c" - } -#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = sb; -#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_string_append_c (_tmp3_, (gchar) _tmp1_); -#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp5_ = self->priv->input; -#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = g_data_input_stream_read_byte (_tmp5_, NULL, &_inner_error_); -#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 4970 "VideoMetadata.c" - } -#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp6_ = sb; -#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_string_append_c (_tmp6_, (gchar) _tmp4_); -#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp8_ = self->priv->input; -#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp7_ = g_data_input_stream_read_byte (_tmp8_, NULL, &_inner_error_); -#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 4988 "VideoMetadata.c" - } -#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp9_ = sb; -#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_string_append_c (_tmp9_, (gchar) _tmp7_); -#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp11_ = self->priv->input; -#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp10_ = g_data_input_stream_read_byte (_tmp11_, NULL, &_inner_error_); -#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 5006 "VideoMetadata.c" - } -#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp12_ = sb; -#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_string_append_c (_tmp12_, (gchar) _tmp10_); -#line 609 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp13_ = sb; -#line 609 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp14_ = _tmp13_->str; -#line 609 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp15_ = g_strdup (_tmp14_); -#line 609 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (self->priv->section_name); -#line 609 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_name = _tmp15_; -#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp17_ = self->priv->input; -#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp16_ = g_data_input_stream_read_uint32 (_tmp17_, NULL, &_inner_error_); -#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 5034 "VideoMetadata.c" - } -#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_size = (guint64) _tmp16_; -#line 611 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_offset = (guint64) 0; -#line 601 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 5042 "VideoMetadata.c" -} - - -gchar* -avi_chunk_read_name (AVIChunk* self, - GError** error) -{ - gchar* result = NULL; - GString* sb = NULL; - GString* _tmp0_; - guchar _tmp1_ = '\0'; - GString* _tmp2_; - guchar _tmp3_ = '\0'; - GString* _tmp4_; - guchar _tmp5_ = '\0'; - GString* _tmp6_; - guchar _tmp7_ = '\0'; - GString* _tmp8_; - GString* _tmp9_; - const gchar* _tmp10_; - gchar* _tmp11_; - GError * _inner_error_ = NULL; -#line 614 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_CHUNK (self), NULL); -#line 615 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = g_string_new (""); -#line 615 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - sb = _tmp0_; -#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = avi_chunk_read_byte (self, &_inner_error_); -#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 5081 "VideoMetadata.c" - } -#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = sb; -#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_string_append_c (_tmp2_, (gchar) _tmp1_); -#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = avi_chunk_read_byte (self, &_inner_error_); -#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 5097 "VideoMetadata.c" - } -#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = sb; -#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_string_append_c (_tmp4_, (gchar) _tmp3_); -#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp5_ = avi_chunk_read_byte (self, &_inner_error_); -#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 5113 "VideoMetadata.c" - } -#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp6_ = sb; -#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_string_append_c (_tmp6_, (gchar) _tmp5_); -#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp7_ = avi_chunk_read_byte (self, &_inner_error_); -#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 5129 "VideoMetadata.c" - } -#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp8_ = sb; -#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_string_append_c (_tmp8_, (gchar) _tmp7_); -#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp9_ = sb; -#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp10_ = _tmp9_->str; -#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp11_ = g_strdup (_tmp10_); -#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp11_; -#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 5147 "VideoMetadata.c" -} - - -void -avi_chunk_next_chunk (AVIChunk* self, - GError** error) -{ - GError * _inner_error_ = NULL; -#line 623 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (IS_AVI_CHUNK (self)); -#line 624 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_skip (self, avi_chunk_section_size_remaining (self), &_inner_error_); -#line 624 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 624 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 624 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return; -#line 5166 "VideoMetadata.c" - } -#line 625 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_size = (guint64) 0; -#line 626 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_offset = (guint64) 0; -#line 5172 "VideoMetadata.c" -} - - -gchar* -avi_chunk_get_current_chunk_name (AVIChunk* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 629 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_CHUNK (self), NULL); -#line 630 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->section_name; -#line 630 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 630 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp1_; -#line 630 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 5192 "VideoMetadata.c" -} - - -gboolean -avi_chunk_is_last_chunk (AVIChunk* self) -{ - gboolean result = FALSE; - guint64 _tmp0_; -#line 633 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_CHUNK (self), FALSE); -#line 634 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->section_size; -#line 634 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp0_ == ((guint64) 0); -#line 634 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 5209 "VideoMetadata.c" -} - - -guint64 -avi_chunk_section_size_remaining (AVIChunk* self) -{ - guint64 result = 0ULL; - guint64 _tmp0_; - guint64 _tmp1_; - guint64 _tmp2_; - guint64 _tmp3_; -#line 637 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_CHUNK (self), 0ULL); -#line 638 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = self->priv->section_size; -#line 638 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = self->priv->section_offset; -#line 638 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _vala_assert (_tmp0_ >= _tmp1_, "section_size >= section_offset"); -#line 639 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = self->priv->section_size; -#line 639 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = self->priv->section_offset; -#line 639 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp2_ - _tmp3_; -#line 639 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 5237 "VideoMetadata.c" -} - - -gchar* -avi_chunk_section_to_string (AVIChunk* self, - GError** error) -{ - gchar* result = NULL; - GString* sb = NULL; - GString* _tmp0_; - GString* _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; - GError * _inner_error_ = NULL; -#line 643 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (IS_AVI_CHUNK (self), NULL); -#line 644 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = g_string_new (""); -#line 644 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - sb = _tmp0_; -#line 645 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - while (TRUE) { -#line 5260 "VideoMetadata.c" - guint64 _tmp1_; - guint64 _tmp2_; - guchar _tmp3_ = '\0'; - GString* _tmp4_; - GString* _tmp5_; - gssize _tmp6_; -#line 645 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp1_ = self->priv->section_offset; -#line 645 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp2_ = self->priv->section_size; -#line 645 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!(_tmp1_ < _tmp2_)) { -#line 645 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - break; -#line 5275 "VideoMetadata.c" - } -#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp3_ = avi_chunk_read_byte (self, &_inner_error_); -#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 5287 "VideoMetadata.c" - } -#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp4_ = sb; -#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_string_append_c (_tmp4_, (gchar) _tmp3_); -#line 647 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp5_ = sb; -#line 647 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp6_ = _tmp5_->len; -#line 647 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (_tmp6_ > ((gssize) AVI_CHUNK_MAX_STRING_TO_SECTION_LENGTH)) { -#line 5299 "VideoMetadata.c" - GString* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; -#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp7_ = sb; -#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp8_ = _tmp7_->str; -#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp9_; -#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 5315 "VideoMetadata.c" - } - } -#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp10_ = sb; -#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp11_ = _tmp10_->str; -#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp12_ = g_strdup (_tmp11_); -#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - result = _tmp12_; -#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_string_free0 (sb); -#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return result; -#line 5330 "VideoMetadata.c" -} - - -static void -value_avi_chunk_init (GValue* value) -{ -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 5339 "VideoMetadata.c" -} - - -static void -value_avi_chunk_free_value (GValue* value) -{ -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (value->data[0].v_pointer) { -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_unref (value->data[0].v_pointer); -#line 5350 "VideoMetadata.c" - } -} - - -static void -value_avi_chunk_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (src_value->data[0].v_pointer) { -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - dest_value->data[0].v_pointer = avi_chunk_ref (src_value->data[0].v_pointer); -#line 5363 "VideoMetadata.c" - } else { -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - dest_value->data[0].v_pointer = NULL; -#line 5367 "VideoMetadata.c" - } -} - - -static gpointer -value_avi_chunk_peek_pointer (const GValue* value) -{ -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return value->data[0].v_pointer; -#line 5377 "VideoMetadata.c" -} - - -static gchar* -value_avi_chunk_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (collect_values[0].v_pointer) { -#line 5389 "VideoMetadata.c" - AVIChunk * object; - object = collect_values[0].v_pointer; -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (object->parent_instance.g_class == NULL) { -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5396 "VideoMetadata.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 5400 "VideoMetadata.c" - } -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = avi_chunk_ref (object); -#line 5404 "VideoMetadata.c" - } else { -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 5408 "VideoMetadata.c" - } -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 5412 "VideoMetadata.c" -} - - -static gchar* -value_avi_chunk_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - AVIChunk ** object_p; - object_p = collect_values[0].v_pointer; -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!object_p) { -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 5428 "VideoMetadata.c" - } -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (!value->data[0].v_pointer) { -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - *object_p = NULL; -#line 5434 "VideoMetadata.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - *object_p = value->data[0].v_pointer; -#line 5438 "VideoMetadata.c" - } else { -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - *object_p = avi_chunk_ref (value->data[0].v_pointer); -#line 5442 "VideoMetadata.c" - } -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return NULL; -#line 5446 "VideoMetadata.c" -} - - -GParamSpec* -param_spec_avi_chunk (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecAVIChunk* spec; -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_AVI_CHUNK), NULL); -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return G_PARAM_SPEC (spec); -#line 5466 "VideoMetadata.c" -} - - -gpointer -value_get_avi_chunk (const GValue* value) -{ -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_CHUNK), NULL); -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return value->data[0].v_pointer; -#line 5477 "VideoMetadata.c" -} - - -void -value_set_avi_chunk (GValue* value, - gpointer v_object) -{ - AVIChunk * old; -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_CHUNK)); -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - old = value->data[0].v_pointer; -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (v_object) { -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_AVI_CHUNK)); -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = v_object; -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_ref (value->data[0].v_pointer); -#line 5500 "VideoMetadata.c" - } else { -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 5504 "VideoMetadata.c" - } -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (old) { -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_unref (old); -#line 5510 "VideoMetadata.c" - } -} - - -void -value_take_avi_chunk (GValue* value, - gpointer v_object) -{ - AVIChunk * old; -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_CHUNK)); -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - old = value->data[0].v_pointer; -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (v_object) { -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_AVI_CHUNK)); -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = v_object; -#line 5532 "VideoMetadata.c" - } else { -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 5536 "VideoMetadata.c" - } -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (old) { -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_unref (old); -#line 5542 "VideoMetadata.c" - } -} - - -static void -avi_chunk_class_init (AVIChunkClass * klass) -{ -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - avi_chunk_parent_class = g_type_class_peek_parent (klass); -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - ((AVIChunkClass *) klass)->finalize = avi_chunk_finalize; -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_type_class_add_private (klass, sizeof (AVIChunkPrivate)); -#line 5556 "VideoMetadata.c" -} - - -static void -avi_chunk_instance_init (AVIChunk * self) -{ - gchar* _tmp0_; -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv = AVI_CHUNK_GET_PRIVATE (self); -#line 535 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->file = NULL; -#line 536 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _tmp0_ = g_strdup (""); -#line 536 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_name = _tmp0_; -#line 537 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_size = (guint64) 0; -#line 538 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->section_offset = (guint64) 0; -#line 539 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->input = NULL; -#line 540 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->priv->parent = NULL; -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self->ref_count = 1; -#line 5582 "VideoMetadata.c" -} - - -static void -avi_chunk_finalize (AVIChunk * obj) -{ - AVIChunk * self; -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_AVI_CHUNK, AVIChunk); -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_signal_handlers_destroy (self); -#line 535 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (self->priv->file); -#line 536 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_free0 (self->priv->section_name); -#line 539 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _g_object_unref0 (self->priv->input); -#line 540 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - _avi_chunk_unref0 (self->priv->parent); -#line 5602 "VideoMetadata.c" -} - - -GType -avi_chunk_get_type (void) -{ - static volatile gsize avi_chunk_type_id__volatile = 0; - if (g_once_init_enter (&avi_chunk_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_avi_chunk_init, value_avi_chunk_free_value, value_avi_chunk_copy_value, value_avi_chunk_peek_pointer, "p", value_avi_chunk_collect_value, "p", value_avi_chunk_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (AVIChunkClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) avi_chunk_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AVIChunk), 0, (GInstanceInitFunc) avi_chunk_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType avi_chunk_type_id; - avi_chunk_type_id = g_type_register_fundamental (g_type_fundamental_next (), "AVIChunk", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&avi_chunk_type_id__volatile, avi_chunk_type_id); - } - return avi_chunk_type_id__volatile; -} - - -gpointer -avi_chunk_ref (gpointer instance) -{ - AVIChunk * self; - self = instance; -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_atomic_int_inc (&self->ref_count); -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - return instance; -#line 5631 "VideoMetadata.c" -} - - -void -avi_chunk_unref (gpointer instance) -{ - AVIChunk * self; - self = instance; -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - AVI_CHUNK_GET_CLASS (self)->finalize (self); -#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 5646 "VideoMetadata.c" - } -} - - - diff --git a/src/VideoMonitor.c b/src/VideoMonitor.c deleted file mode 100644 index a3f8a75..0000000 --- a/src/VideoMonitor.c +++ /dev/null @@ -1,2456 +0,0 @@ -/* VideoMonitor.c generated by valac 0.40.4, the Vala compiler - * generated from VideoMonitor.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include - - -#define TYPE_MONITORABLE_UPDATES (monitorable_updates_get_type ()) -#define MONITORABLE_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE_UPDATES, MonitorableUpdates)) -#define MONITORABLE_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MONITORABLE_UPDATES, MonitorableUpdatesClass)) -#define IS_MONITORABLE_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE_UPDATES)) -#define IS_MONITORABLE_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MONITORABLE_UPDATES)) -#define MONITORABLE_UPDATES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MONITORABLE_UPDATES, MonitorableUpdatesClass)) - -typedef struct _MonitorableUpdates MonitorableUpdates; -typedef struct _MonitorableUpdatesClass MonitorableUpdatesClass; -typedef struct _MonitorableUpdatesPrivate MonitorableUpdatesPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_MONITORABLE (monitorable_get_type ()) -#define MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE, Monitorable)) -#define IS_MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE)) -#define MONITORABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MONITORABLE, MonitorableIface)) - -typedef struct _Monitorable Monitorable; -typedef struct _MonitorableIface MonitorableIface; - -#define TYPE_VIDEO_UPDATES (video_updates_get_type ()) -#define VIDEO_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_UPDATES, VideoUpdates)) -#define VIDEO_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_UPDATES, VideoUpdatesClass)) -#define IS_VIDEO_UPDATES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_UPDATES)) -#define IS_VIDEO_UPDATES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_UPDATES)) -#define VIDEO_UPDATES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_UPDATES, VideoUpdatesClass)) - -typedef struct _VideoUpdates VideoUpdates; -typedef struct _VideoUpdatesClass VideoUpdatesClass; -typedef struct _VideoUpdatesPrivate VideoUpdatesPrivate; - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_MEDIA_MONITOR (media_monitor_get_type ()) -#define MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_MONITOR, MediaMonitor)) -#define MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_MONITOR, MediaMonitorClass)) -#define IS_MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_MONITOR)) -#define IS_MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_MONITOR)) -#define MEDIA_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_MONITOR, MediaMonitorClass)) - -typedef struct _MediaMonitor MediaMonitor; -typedef struct _MediaMonitorClass MediaMonitorClass; -typedef struct _MediaMonitorPrivate MediaMonitorPrivate; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define MEDIA_MONITOR_TYPE_DISCOVERED_FILE (media_monitor_discovered_file_get_type ()) - -#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ()) -#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController)) -#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) -#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER)) -#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER)) -#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) - -typedef struct _TransactionController TransactionController; -typedef struct _TransactionControllerClass TransactionControllerClass; - -#define TYPE_VIDEO_MONITOR (video_monitor_get_type ()) -#define VIDEO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_MONITOR, VideoMonitor)) -#define VIDEO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_MONITOR, VideoMonitorClass)) -#define IS_VIDEO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_MONITOR)) -#define IS_VIDEO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_MONITOR)) -#define VIDEO_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_MONITOR, VideoMonitorClass)) - -typedef struct _VideoMonitor VideoMonitor; -typedef struct _VideoMonitorClass VideoMonitorClass; -typedef struct _VideoMonitorPrivate VideoMonitorPrivate; - -#define TYPE_WORKERS (workers_get_type ()) -#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers)) -#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass)) -#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS)) -#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS)) -#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass)) - -typedef struct _Workers Workers; -typedef struct _WorkersClass WorkersClass; -enum { - VIDEO_MONITOR_0_PROPERTY, - VIDEO_MONITOR_NUM_PROPERTIES -}; -static GParamSpec* video_monitor_properties[VIDEO_MONITOR_NUM_PROPERTIES]; -#define _workers_unref0(var) ((var == NULL) ? NULL : (var = (workers_unref (var), NULL))) - -#define TYPE_VIDEO_SOURCE_COLLECTION (video_source_collection_get_type ()) -#define VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection)) -#define VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) -#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION)) -#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION)) -#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) - -typedef struct _VideoSourceCollection VideoSourceCollection; -typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass; - -#define VIDEO_SOURCE_COLLECTION_TYPE_STATE (video_source_collection_state_get_type ()) -#define _monitorable_updates_unref0(var) ((var == NULL) ? NULL : (var = (monitorable_updates_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_BACKGROUND_JOB (background_job_get_type ()) -#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob)) -#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass)) -#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB)) -#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB)) -#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass)) - -typedef struct _BackgroundJob BackgroundJob; -typedef struct _BackgroundJobClass BackgroundJobClass; - -#define VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB (video_monitor_video_interpretable_check_job_get_type ()) -#define VIDEO_MONITOR_VIDEO_INTERPRETABLE_CHECK_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, VideoMonitorVideoInterpretableCheckJob)) -#define VIDEO_MONITOR_VIDEO_INTERPRETABLE_CHECK_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, VideoMonitorVideoInterpretableCheckJobClass)) -#define VIDEO_MONITOR_IS_VIDEO_INTERPRETABLE_CHECK_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB)) -#define VIDEO_MONITOR_IS_VIDEO_INTERPRETABLE_CHECK_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB)) -#define VIDEO_MONITOR_VIDEO_INTERPRETABLE_CHECK_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, VideoMonitorVideoInterpretableCheckJobClass)) - -typedef struct _VideoMonitorVideoInterpretableCheckJob VideoMonitorVideoInterpretableCheckJob; -typedef struct _VideoMonitorVideoInterpretableCheckJobClass VideoMonitorVideoInterpretableCheckJobClass; -#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL))) -typedef struct _BackgroundJobPrivate BackgroundJobPrivate; - -#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ()) -typedef struct _VideoMonitorVideoInterpretableCheckJobPrivate VideoMonitorVideoInterpretableCheckJobPrivate; - -#define VIDEO_TYPE_INTERPRETABLE_RESULTS (video_interpretable_results_get_type ()) -#define VIDEO_INTERPRETABLE_RESULTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIDEO_TYPE_INTERPRETABLE_RESULTS, VideoInterpretableResults)) -#define VIDEO_INTERPRETABLE_RESULTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIDEO_TYPE_INTERPRETABLE_RESULTS, VideoInterpretableResultsClass)) -#define VIDEO_IS_INTERPRETABLE_RESULTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIDEO_TYPE_INTERPRETABLE_RESULTS)) -#define VIDEO_IS_INTERPRETABLE_RESULTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIDEO_TYPE_INTERPRETABLE_RESULTS)) -#define VIDEO_INTERPRETABLE_RESULTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIDEO_TYPE_INTERPRETABLE_RESULTS, VideoInterpretableResultsClass)) - -typedef struct _VideoInterpretableResults VideoInterpretableResults; -typedef struct _VideoInterpretableResultsClass VideoInterpretableResultsClass; -#define _video_interpretable_results_unref0(var) ((var == NULL) ? NULL : (var = (video_interpretable_results_unref (var), NULL))) - -#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ()) -#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)) -#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) -#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE)) -#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE)) -#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) - -typedef struct _AbstractSemaphore AbstractSemaphore; -typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _MonitorableIface { - GTypeInterface parent_iface; - gboolean (*is_offline) (Monitorable* self); - void (*mark_online) (Monitorable* self); - void (*mark_offline) (Monitorable* self); - void (*set_master_file) (Monitorable* self, GFile* file); - void (*set_master_timestamp) (Monitorable* self, GFileInfo* info); -}; - -struct _MonitorableUpdates { - GTypeInstance parent_instance; - volatile int ref_count; - MonitorableUpdatesPrivate * priv; - Monitorable* monitorable; -}; - -struct _MonitorableUpdatesClass { - GTypeClass parent_class; - void (*finalize) (MonitorableUpdates *self); - gboolean (*is_in_alteration) (MonitorableUpdates* self); - void (*set_master_file) (MonitorableUpdates* self, GFile* file); - void (*set_master_file_info_altered) (MonitorableUpdates* self, gboolean altered); - void (*set_master_file_info) (MonitorableUpdates* self, GFileInfo* info); - void (*set_master_in_alteration) (MonitorableUpdates* self, gboolean in_alteration); - void (*set_master_alterations_complete) (MonitorableUpdates* self, GFileInfo* info); - void (*mark_offline) (MonitorableUpdates* self); - void (*mark_online) (MonitorableUpdates* self); - void (*reset_online_offline) (MonitorableUpdates* self); - gboolean (*is_all_updated) (MonitorableUpdates* self); -}; - -struct _VideoUpdates { - MonitorableUpdates parent_instance; - VideoUpdatesPrivate * priv; - Video* video; -}; - -struct _VideoUpdatesClass { - MonitorableUpdatesClass parent_class; - void (*set_check_interpretable) (VideoUpdates* self, gboolean check); -}; - -struct _VideoUpdatesPrivate { - gboolean check_interpretable; -}; - -typedef enum { - MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED, - MEDIA_MONITOR_DISCOVERED_FILE_IGNORE, - MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN -} MediaMonitorDiscoveredFile; - -struct _MediaMonitor { - GObject parent_instance; - MediaMonitorPrivate * priv; -}; - -struct _MediaMonitorClass { - GObjectClass parent_class; - MediaSourceCollection* (*get_media_source_collection) (MediaMonitor* self); - void (*close) (MediaMonitor* self); - gchar* (*to_string) (MediaMonitor* self); - MonitorableUpdates* (*create_updates) (MediaMonitor* self, Monitorable* monitorable); - void (*on_media_source_destroyed) (MediaMonitor* self, DataSource* source); - void (*notify_discovery_started) (MediaMonitor* self); - MediaMonitorDiscoveredFile (*notify_file_discovered) (MediaMonitor* self, GFile* file, GFileInfo* info, Monitorable* * monitorable); - GeeCollection* (*candidates_for_unknown_file) (MediaMonitor* self, GFile* file, GFileInfo* info, MediaMonitorDiscoveredFile* _result_); - GFile** (*get_auxilliary_backing_files) (MediaMonitor* self, Monitorable* monitorable, int* result_length1); - void (*update_backing_file_info) (MediaMonitor* self, Monitorable* monitorable, GFile* file, GFileInfo* info); - void (*notify_discovery_completing) (MediaMonitor* self); - gboolean (*is_file_represented) (MediaMonitor* self, GFile* file); - gboolean (*notify_file_created) (MediaMonitor* self, GFile* file, GFileInfo* info); - gboolean (*notify_file_moved) (MediaMonitor* self, GFile* old_file, GFile* new_file, GFileInfo* new_file_info); - gboolean (*notify_file_altered) (MediaMonitor* self, GFile* file); - gboolean (*notify_file_attributes_altered) (MediaMonitor* self, GFile* file); - gboolean (*notify_file_alteration_completed) (MediaMonitor* self, GFile* file, GFileInfo* info); - gboolean (*notify_file_deleted) (MediaMonitor* self, GFile* file); - void (*process_updates) (MediaMonitor* self, GeeCollection* all_updates, TransactionController* controller, gint* op_count, GError** error); -}; - -struct _VideoMonitor { - MediaMonitor parent_instance; - VideoMonitorPrivate * priv; -}; - -struct _VideoMonitorClass { - MediaMonitorClass parent_class; -}; - -struct _VideoMonitorPrivate { - Workers* workers; - guint64 background_jobs; -}; - -typedef enum { - VIDEO_SOURCE_COLLECTION_STATE_UNKNOWN, - VIDEO_SOURCE_COLLECTION_STATE_ONLINE, - VIDEO_SOURCE_COLLECTION_STATE_OFFLINE, - VIDEO_SOURCE_COLLECTION_STATE_TRASH -} VideoSourceCollectionState; - -typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data); -typedef enum { - BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100, - BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75, - BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50, - BACKGROUND_JOB_JOB_PRIORITY_LOW = 25, - BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0 -} BackgroundJobJobPriority; - -struct _BackgroundJob { - GTypeInstance parent_instance; - volatile int ref_count; - BackgroundJobPrivate * priv; -}; - -struct _BackgroundJobClass { - GTypeClass parent_class; - void (*finalize) (BackgroundJob *self); - void (*execute) (BackgroundJob* self); - BackgroundJobJobPriority (*get_priority) (BackgroundJob* self); -}; - -struct _VideoMonitorVideoInterpretableCheckJob { - BackgroundJob parent_instance; - VideoMonitorVideoInterpretableCheckJobPrivate * priv; - Video* video; - VideoInterpretableResults* results; -}; - -struct _VideoMonitorVideoInterpretableCheckJobClass { - BackgroundJobClass parent_class; -}; - -typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data); - -static gpointer video_updates_parent_class = NULL; -static gpointer video_monitor_parent_class = NULL; -extern VideoSourceCollection* video_global; -static gpointer video_monitor_video_interpretable_check_job_parent_class = NULL; - -gpointer monitorable_updates_ref (gpointer instance); -void monitorable_updates_unref (gpointer instance); -GParamSpec* param_spec_monitorable_updates (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_monitorable_updates (GValue* value, - gpointer v_object); -void value_take_monitorable_updates (GValue* value, - gpointer v_object); -gpointer value_get_monitorable_updates (const GValue* value); -GType monitorable_updates_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType monitorable_get_type (void) G_GNUC_CONST; -GType video_updates_get_type (void) G_GNUC_CONST; -GType video_source_get_type (void) G_GNUC_CONST; -GType video_get_type (void) G_GNUC_CONST; -#define VIDEO_UPDATES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_VIDEO_UPDATES, VideoUpdatesPrivate)) -VideoUpdates* video_updates_new (Video* video); -VideoUpdates* video_updates_construct (GType object_type, - Video* video); -MonitorableUpdates* monitorable_updates_new (Monitorable* monitorable); -MonitorableUpdates* monitorable_updates_construct (GType object_type, - Monitorable* monitorable); -void video_updates_set_check_interpretable (VideoUpdates* self, - gboolean check); -static void video_updates_real_set_check_interpretable (VideoUpdates* self, - gboolean check); -static void video_updates_real_mark_online (MonitorableUpdates* base); -void monitorable_updates_mark_online (MonitorableUpdates* self); -gboolean video_updates_is_check_interpretable (VideoUpdates* self); -static gboolean video_updates_real_is_all_updated (MonitorableUpdates* base); -gboolean monitorable_updates_is_all_updated (MonitorableUpdates* self); -static void video_updates_finalize (MonitorableUpdates * obj); -GType media_monitor_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -GType media_monitor_discovered_file_get_type (void) G_GNUC_CONST; -gpointer transaction_controller_ref (gpointer instance); -void transaction_controller_unref (gpointer instance); -GParamSpec* param_spec_transaction_controller (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_transaction_controller (GValue* value, - gpointer v_object); -void value_take_transaction_controller (GValue* value, - gpointer v_object); -gpointer value_get_transaction_controller (const GValue* value); -GType transaction_controller_get_type (void) G_GNUC_CONST; -GType video_monitor_get_type (void) G_GNUC_CONST; -gpointer workers_ref (gpointer instance); -void workers_unref (gpointer instance); -GParamSpec* param_spec_workers (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_workers (GValue* value, - gpointer v_object); -void value_take_workers (GValue* value, - gpointer v_object); -gpointer value_get_workers (const GValue* value); -GType workers_get_type (void) G_GNUC_CONST; -#define VIDEO_MONITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_VIDEO_MONITOR, VideoMonitorPrivate)) -Workers* workers_new (guint max_threads, - gboolean exclusive); -Workers* workers_construct (GType object_type, - guint max_threads, - gboolean exclusive); -#define VIDEO_MONITOR_MAX_INTERPRETABLE_CHECKS_PER_CYCLE 5 -VideoMonitor* video_monitor_new (GCancellable* cancellable); -VideoMonitor* video_monitor_construct (GType object_type, - GCancellable* cancellable); -GType video_source_collection_get_type (void) G_GNUC_CONST; -MediaMonitor* media_monitor_construct (GType object_type, - MediaSourceCollection* sources, - GCancellable* cancellable); -GeeCollection* data_collection_get_all (DataCollection* self); -gboolean video_get_is_interpretable (Video* self); -void video_monitor_set_check_interpretable (VideoMonitor* self, - Video* video, - gboolean check); -static MonitorableUpdates* video_monitor_real_create_updates (MediaMonitor* base, - Monitorable* monitorable); -static MediaSourceCollection* video_monitor_real_get_media_source_collection (MediaMonitor* base); -static gboolean video_monitor_real_is_file_represented (MediaMonitor* base, - GFile* file); -GType video_source_collection_state_get_type (void) G_GNUC_CONST; -static Video* video_monitor_get_state (VideoMonitor* self, - GFile* file, - VideoSourceCollectionState* state); -static MediaMonitorDiscoveredFile video_monitor_real_notify_file_discovered (MediaMonitor* base, - GFile* file, - GFileInfo* info, - Monitorable* * monitorable); -static GeeCollection* video_monitor_real_candidates_for_unknown_file (MediaMonitor* base, - GFile* file, - GFileInfo* info, - MediaMonitorDiscoveredFile* _result_); -void video_source_collection_fetch_by_matching_backing (VideoSourceCollection* self, - GFileInfo* info, - GeeCollection* matching_master); -static gboolean video_monitor_real_notify_file_created (MediaMonitor* base, - GFile* file, - GFileInfo* info); -void media_monitor_update_online (MediaMonitor* self, - Monitorable* monitorable); -static gboolean video_monitor_real_notify_file_moved (MediaMonitor* base, - GFile* old_file, - GFile* new_file, - GFileInfo* new_file_info); -void media_monitor_update_master_file (MediaMonitor* self, - Monitorable* monitorable, - GFile* file); -void media_monitor_update_offline (MediaMonitor* self, - Monitorable* monitorable); -static gboolean video_monitor_real_notify_file_altered (MediaMonitor* base, - GFile* file); -static gboolean video_monitor_real_notify_file_attributes_altered (MediaMonitor* base, - GFile* file); -void media_monitor_update_master_file_info_altered (MediaMonitor* self, - Monitorable* monitorable); -void media_monitor_update_master_file_in_alteration (MediaMonitor* self, - Monitorable* monitorable, - gboolean in_alteration); -static gboolean video_monitor_real_notify_file_alteration_completed (MediaMonitor* base, - GFile* file, - GFileInfo* info); -void media_monitor_update_master_file_alterations_completed (MediaMonitor* self, - Monitorable* monitorable, - GFileInfo* info); -static gboolean video_monitor_real_notify_file_deleted (MediaMonitor* base, - GFile* file); -GeeCollection* media_monitor_get_monitorables (MediaMonitor* self); -VideoUpdates* video_monitor_get_existing_video_updates (VideoMonitor* self, - Video* video); -GFile* monitorable_updates_get_master_file (MonitorableUpdates* self); -GFile* media_source_get_master_file (MediaSource* self); -Video* video_source_collection_get_state_by_file (VideoSourceCollection* self, - GFile* file, - VideoSourceCollectionState* state); -VideoUpdates* video_monitor_fetch_video_updates (VideoMonitor* self, - Video* video); -MonitorableUpdates* media_monitor_fetch_updates (MediaMonitor* self, - Monitorable* monitorable); -MonitorableUpdates* media_monitor_get_existing_updates (MediaMonitor* self, - Monitorable* monitorable); -static void video_monitor_real_process_updates (MediaMonitor* base, - GeeCollection* all_updates, - TransactionController* controller, - gint* op_count, - GError** error); -void media_monitor_process_updates (MediaMonitor* self, - GeeCollection* all_updates, - TransactionController* controller, - gint* op_count, - GError** error); -#define MEDIA_MONITOR_MAX_OPERATIONS_PER_CYCLE 100 -void media_monitor_mdbg (const gchar* msg); -void video_notify_offline_thumbs_regenerated (void); -gpointer background_job_ref (gpointer instance); -void background_job_unref (gpointer instance); -GParamSpec* param_spec_background_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_background_job (GValue* value, - gpointer v_object); -void value_take_background_job (GValue* value, - gpointer v_object); -gpointer value_get_background_job (const GValue* value); -GType background_job_get_type (void) G_GNUC_CONST; -void workers_enqueue (Workers* self, - BackgroundJob* job); -static void video_monitor_on_interpretable_check_complete (VideoMonitor* self, - BackgroundJob* j); -static void _video_monitor_on_interpretable_check_complete_completion_callback (BackgroundJob* job, - gpointer self); -static VideoMonitorVideoInterpretableCheckJob* video_monitor_video_interpretable_check_job_new (Video* video, - CompletionCallback callback, - void* callback_target); -static VideoMonitorVideoInterpretableCheckJob* video_monitor_video_interpretable_check_job_construct (GType object_type, - Video* video, - CompletionCallback callback, - void* callback_target); -static GType video_monitor_video_interpretable_check_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -GType background_job_job_priority_get_type (void) G_GNUC_CONST; -gpointer video_interpretable_results_ref (gpointer instance); -void video_interpretable_results_unref (gpointer instance); -GParamSpec* video_param_spec_interpretable_results (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void video_value_set_interpretable_results (GValue* value, - gpointer v_object); -void video_value_take_interpretable_results (GValue* value, - gpointer v_object); -gpointer video_value_get_interpretable_results (const GValue* value); -GType video_interpretable_results_get_type (void) G_GNUC_CONST; -void video_interpretable_results_foreground_finish (VideoInterpretableResults* self); -void video_notify_normal_thumbs_regenerated (void); -gpointer abstract_semaphore_ref (gpointer instance); -void abstract_semaphore_unref (gpointer instance); -GParamSpec* param_spec_abstract_semaphore (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_abstract_semaphore (GValue* value, - gpointer v_object); -void value_take_abstract_semaphore (GValue* value, - gpointer v_object); -gpointer value_get_abstract_semaphore (const GValue* value); -GType abstract_semaphore_get_type (void) G_GNUC_CONST; -BackgroundJob* background_job_construct (GType object_type, - GObject* owner, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target, - AbstractSemaphore* completion_semaphore); -static void video_monitor_video_interpretable_check_job_real_execute (BackgroundJob* base); -VideoInterpretableResults* video_check_is_interpretable (Video* self); -static void video_monitor_video_interpretable_check_job_finalize (BackgroundJob * obj); -static void video_monitor_finalize (GObject * obj); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 15 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return self ? g_object_ref (self) : NULL; -#line 661 "VideoMonitor.c" -} - - -VideoUpdates* -video_updates_construct (GType object_type, - Video* video) -{ - VideoUpdates* self = NULL; - Video* _tmp0_; -#line 12 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (IS_VIDEO (video), NULL); -#line 13 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = (VideoUpdates*) monitorable_updates_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (video, TYPE_MONITORABLE, Monitorable)); -#line 15 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp0_ = _g_object_ref0 (video); -#line 15 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (self->video); -#line 15 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self->video = _tmp0_; -#line 12 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return self; -#line 683 "VideoMonitor.c" -} - - -VideoUpdates* -video_updates_new (Video* video) -{ -#line 12 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return video_updates_construct (TYPE_VIDEO_UPDATES, video); -#line 692 "VideoMonitor.c" -} - - -static void -video_updates_real_set_check_interpretable (VideoUpdates* self, - gboolean check) -{ -#line 19 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self->priv->check_interpretable = check; -#line 702 "VideoMonitor.c" -} - - -void -video_updates_set_check_interpretable (VideoUpdates* self, - gboolean check) -{ -#line 18 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_if_fail (IS_VIDEO_UPDATES (self)); -#line 18 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - VIDEO_UPDATES_GET_CLASS (self)->set_check_interpretable (self, check); -#line 714 "VideoMonitor.c" -} - - -static void -video_updates_real_mark_online (MonitorableUpdates* base) -{ - VideoUpdates * self; -#line 22 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_UPDATES, VideoUpdates); -#line 23 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - MONITORABLE_UPDATES_CLASS (video_updates_parent_class)->mark_online (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates)); -#line 25 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video_updates_set_check_interpretable (self, TRUE); -#line 728 "VideoMonitor.c" -} - - -gboolean -video_updates_is_check_interpretable (VideoUpdates* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 28 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (IS_VIDEO_UPDATES (self), FALSE); -#line 29 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp0_ = self->priv->check_interpretable; -#line 29 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = _tmp0_; -#line 29 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 745 "VideoMonitor.c" -} - - -static gboolean -video_updates_real_is_all_updated (MonitorableUpdates* base) -{ - VideoUpdates * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_UPDATES, VideoUpdates); -#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = self->priv->check_interpretable; -#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp1_ == FALSE) { -#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp0_ = MONITORABLE_UPDATES_CLASS (video_updates_parent_class)->is_all_updated (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates)); -#line 764 "VideoMonitor.c" - } else { -#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp0_ = FALSE; -#line 768 "VideoMonitor.c" - } -#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = _tmp0_; -#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 774 "VideoMonitor.c" -} - - -static void -video_updates_class_init (VideoUpdatesClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video_updates_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((MonitorableUpdatesClass *) klass)->finalize = video_updates_finalize; -#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_type_class_add_private (klass, sizeof (VideoUpdatesPrivate)); -#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((VideoUpdatesClass *) klass)->set_check_interpretable = (void (*) (VideoUpdates *, gboolean)) video_updates_real_set_check_interpretable; -#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((MonitorableUpdatesClass *) klass)->mark_online = (void (*) (MonitorableUpdates *)) video_updates_real_mark_online; -#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((MonitorableUpdatesClass *) klass)->is_all_updated = (gboolean (*) (MonitorableUpdates *)) video_updates_real_is_all_updated; -#line 793 "VideoMonitor.c" -} - - -static void -video_updates_instance_init (VideoUpdates * self) -{ -#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self->priv = VIDEO_UPDATES_GET_PRIVATE (self); -#line 10 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self->priv->check_interpretable = FALSE; -#line 804 "VideoMonitor.c" -} - - -static void -video_updates_finalize (MonitorableUpdates * obj) -{ - VideoUpdates * self; -#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_UPDATES, VideoUpdates); -#line 8 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (self->video); -#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - MONITORABLE_UPDATES_CLASS (video_updates_parent_class)->finalize (obj); -#line 818 "VideoMonitor.c" -} - - -GType -video_updates_get_type (void) -{ - static volatile gsize video_updates_type_id__volatile = 0; - if (g_once_init_enter (&video_updates_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (VideoUpdatesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_updates_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoUpdates), 0, (GInstanceInitFunc) video_updates_instance_init, NULL }; - GType video_updates_type_id; - video_updates_type_id = g_type_register_static (TYPE_MONITORABLE_UPDATES, "VideoUpdates", &g_define_type_info, 0); - g_once_init_leave (&video_updates_type_id__volatile, video_updates_type_id); - } - return video_updates_type_id__volatile; -} - - -VideoMonitor* -video_monitor_construct (GType object_type, - GCancellable* cancellable) -{ - VideoMonitor * self = NULL; - VideoSourceCollection* _tmp0_; -#line 65 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL); -#line 66 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp0_ = video_global; -#line 66 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = (VideoMonitor*) media_monitor_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), cancellable); -#line 848 "VideoMonitor.c" - { - GeeIterator* _obj_it = NULL; - VideoSourceCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = video_global; -#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp2_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp3_ = _tmp2_; -#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp5_ = _tmp4_; -#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (_tmp3_); -#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _obj_it = _tmp5_; -#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - while (TRUE) { -#line 872 "VideoMonitor.c" - GeeIterator* _tmp6_; - DataObject* obj = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - Video* video = NULL; - DataObject* _tmp9_; - Video* _tmp10_; - Video* _tmp11_; - Video* _tmp12_; -#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp6_ = _obj_it; -#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - break; -#line 888 "VideoMonitor.c" - } -#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp7_ = _obj_it; -#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - obj = (DataObject*) _tmp8_; -#line 69 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp9_ = obj; -#line 69 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_VIDEO) ? ((Video*) _tmp9_) : NULL); -#line 69 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video = _tmp10_; -#line 70 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp11_ = video; -#line 70 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _vala_assert (_tmp11_ != NULL, "video != null"); -#line 71 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp12_ = video; -#line 71 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (!video_get_is_interpretable (_tmp12_)) { -#line 910 "VideoMonitor.c" - Video* _tmp13_; -#line 72 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp13_ = video; -#line 72 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video_monitor_set_check_interpretable (self, _tmp13_, TRUE); -#line 916 "VideoMonitor.c" - } -#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (video); -#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (obj); -#line 922 "VideoMonitor.c" - } -#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (_obj_it); -#line 926 "VideoMonitor.c" - } -#line 65 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return self; -#line 930 "VideoMonitor.c" -} - - -VideoMonitor* -video_monitor_new (GCancellable* cancellable) -{ -#line 65 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return video_monitor_construct (TYPE_VIDEO_MONITOR, cancellable); -#line 939 "VideoMonitor.c" -} - - -static MonitorableUpdates* -video_monitor_real_create_updates (MediaMonitor* base, - Monitorable* monitorable) -{ - VideoMonitor * self; - MonitorableUpdates* result = NULL; - VideoUpdates* _tmp0_; -#line 76 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor); -#line 76 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL); -#line 77 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (monitorable, TYPE_VIDEO), "monitorable is Video"); -#line 79 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp0_ = video_updates_new (G_TYPE_CHECK_INSTANCE_CAST (monitorable, TYPE_VIDEO, Video)); -#line 79 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates); -#line 79 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 962 "VideoMonitor.c" -} - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 83 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return self ? data_collection_ref (self) : NULL; -#line 971 "VideoMonitor.c" -} - - -static MediaSourceCollection* -video_monitor_real_get_media_source_collection (MediaMonitor* base) -{ - VideoMonitor * self; - MediaSourceCollection* result = NULL; - VideoSourceCollection* _tmp0_; - MediaSourceCollection* _tmp1_; -#line 82 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor); -#line 83 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp0_ = video_global; -#line 83 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = _data_collection_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 83 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = _tmp1_; -#line 83 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 992 "VideoMonitor.c" -} - - -static gboolean -video_monitor_real_is_file_represented (MediaMonitor* base, - GFile* file) -{ - VideoMonitor * self; - gboolean result = FALSE; - VideoSourceCollectionState state = 0; - VideoSourceCollectionState _tmp0_ = 0; - Video* _tmp1_; - Video* _tmp2_; - gboolean _tmp3_; -#line 86 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor); -#line 86 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = video_monitor_get_state (self, file, &_tmp0_); -#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - state = _tmp0_; -#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp2_ = _tmp1_; -#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp3_ = _tmp2_ != NULL; -#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (_tmp2_); -#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = _tmp3_; -#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1025 "VideoMonitor.c" -} - - -static MediaMonitorDiscoveredFile -video_monitor_real_notify_file_discovered (MediaMonitor* base, - GFile* file, - GFileInfo* info, - Monitorable* * monitorable) -{ - VideoMonitor * self; - Monitorable* _vala_monitorable = NULL; - MediaMonitorDiscoveredFile result = 0; - VideoSourceCollectionState state = 0; - Video* video = NULL; - VideoSourceCollectionState _tmp0_ = 0; - Video* _tmp1_; - Video* _tmp2_; - VideoSourceCollectionState _tmp3_; -#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor); -#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), 0); -#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), 0); -#line 94 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = video_monitor_get_state (self, file, &_tmp0_); -#line 94 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - state = _tmp0_; -#line 94 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video = _tmp1_; -#line 95 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp2_ = video; -#line 95 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp2_ == NULL) { -#line 96 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (_vala_monitorable); -#line 96 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _vala_monitorable = NULL; -#line 98 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN; -#line 98 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (video); -#line 98 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (monitorable) { -#line 98 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - *monitorable = _vala_monitorable; -#line 1072 "VideoMonitor.c" - } else { -#line 98 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (_vala_monitorable); -#line 1076 "VideoMonitor.c" - } -#line 98 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1080 "VideoMonitor.c" - } -#line 101 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp3_ = state; -#line 101 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - switch (_tmp3_) { -#line 101 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - case VIDEO_SOURCE_COLLECTION_STATE_ONLINE: -#line 101 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - case VIDEO_SOURCE_COLLECTION_STATE_OFFLINE: -#line 1090 "VideoMonitor.c" - { - Video* _tmp4_; - Monitorable* _tmp5_; -#line 104 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp4_ = video; -#line 104 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MONITORABLE, Monitorable)); -#line 104 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (_vala_monitorable); -#line 104 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _vala_monitorable = _tmp5_; -#line 106 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED; -#line 106 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (video); -#line 106 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (monitorable) { -#line 106 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - *monitorable = _vala_monitorable; -#line 1110 "VideoMonitor.c" - } else { -#line 106 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (_vala_monitorable); -#line 1114 "VideoMonitor.c" - } -#line 106 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1118 "VideoMonitor.c" - } - default: -#line 101 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - case VIDEO_SOURCE_COLLECTION_STATE_TRASH: -#line 1123 "VideoMonitor.c" - { -#line 111 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (_vala_monitorable); -#line 111 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _vala_monitorable = NULL; -#line 113 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = MEDIA_MONITOR_DISCOVERED_FILE_IGNORE; -#line 113 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (video); -#line 113 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (monitorable) { -#line 113 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - *monitorable = _vala_monitorable; -#line 1137 "VideoMonitor.c" - } else { -#line 113 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (_vala_monitorable); -#line 1141 "VideoMonitor.c" - } -#line 113 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1145 "VideoMonitor.c" - } - } -#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (video); -#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (monitorable) { -#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - *monitorable = _vala_monitorable; -#line 1154 "VideoMonitor.c" - } else { -#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (_vala_monitorable); -#line 1158 "VideoMonitor.c" - } -} - - -static GeeCollection* -video_monitor_real_candidates_for_unknown_file (MediaMonitor* base, - GFile* file, - GFileInfo* info, - MediaMonitorDiscoveredFile* _result_) -{ - VideoMonitor * self; - MediaMonitorDiscoveredFile _vala_result = 0; - GeeCollection* result = NULL; - GeeCollection* matched = NULL; - GeeArrayList* _tmp0_; - VideoSourceCollection* _tmp1_; -#line 117 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor); -#line 117 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 117 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), NULL); -#line 119 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp0_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 119 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - matched = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 120 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = video_global; -#line 120 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video_source_collection_fetch_by_matching_backing (_tmp1_, info, matched); -#line 122 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _vala_result = MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN; -#line 124 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = matched; -#line 124 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_result_) { -#line 124 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - *_result_ = _vala_result; -#line 1197 "VideoMonitor.c" - } -#line 124 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1201 "VideoMonitor.c" -} - - -static gboolean -video_monitor_real_notify_file_created (MediaMonitor* base, - GFile* file, - GFileInfo* info) -{ - VideoMonitor * self; - gboolean result = FALSE; - VideoSourceCollectionState state = 0; - Video* video = NULL; - VideoSourceCollectionState _tmp0_ = 0; - Video* _tmp1_; - Video* _tmp2_; - Video* _tmp3_; -#line 127 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor); -#line 127 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 127 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE); -#line 129 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = video_monitor_get_state (self, file, &_tmp0_); -#line 129 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - state = _tmp0_; -#line 129 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video = _tmp1_; -#line 130 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp2_ = video; -#line 130 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp2_ == NULL) { -#line 131 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = FALSE; -#line 131 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (video); -#line 131 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1240 "VideoMonitor.c" - } -#line 133 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp3_ = video; -#line 133 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - media_monitor_update_online (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MONITORABLE, Monitorable)); -#line 135 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = TRUE; -#line 135 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (video); -#line 135 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1252 "VideoMonitor.c" -} - - -static gboolean -video_monitor_real_notify_file_moved (MediaMonitor* base, - GFile* old_file, - GFile* new_file, - GFileInfo* new_file_info) -{ - VideoMonitor * self; - gboolean result = FALSE; - VideoSourceCollectionState old_state = 0; - Video* old_video = NULL; - VideoSourceCollectionState _tmp0_ = 0; - Video* _tmp1_; - VideoSourceCollectionState new_state = 0; - Video* new_video = NULL; - VideoSourceCollectionState _tmp2_ = 0; - Video* _tmp3_; - gboolean _tmp4_ = FALSE; - Video* _tmp5_; -#line 138 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor); -#line 138 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (old_file), FALSE); -#line 138 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (new_file), FALSE); -#line 138 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (G_IS_FILE_INFO (new_file_info), FALSE); -#line 140 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = video_monitor_get_state (self, old_file, &_tmp0_); -#line 140 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - old_state = _tmp0_; -#line 140 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - old_video = _tmp1_; -#line 143 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp3_ = video_monitor_get_state (self, new_file, &_tmp2_); -#line 143 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - new_state = _tmp2_; -#line 143 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - new_video = _tmp3_; -#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp5_ = old_video; -#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp5_ != NULL) { -#line 1298 "VideoMonitor.c" - Video* _tmp6_; -#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp6_ = new_video; -#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp4_ = _tmp6_ == NULL; -#line 1304 "VideoMonitor.c" - } else { -#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp4_ = FALSE; -#line 1308 "VideoMonitor.c" - } -#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp4_) { -#line 1312 "VideoMonitor.c" - Video* _tmp7_; -#line 159 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp7_ = old_video; -#line 159 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - media_monitor_update_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MONITORABLE, Monitorable), new_file); -#line 1318 "VideoMonitor.c" - } else { - gboolean _tmp8_ = FALSE; - Video* _tmp9_; -#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp9_ = old_video; -#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp9_ == NULL) { -#line 1326 "VideoMonitor.c" - Video* _tmp10_; -#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp10_ = new_video; -#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp8_ = _tmp10_ != NULL; -#line 1332 "VideoMonitor.c" - } else { -#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp8_ = FALSE; -#line 1336 "VideoMonitor.c" - } -#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp8_) { -#line 1340 "VideoMonitor.c" - Video* _tmp11_; -#line 162 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp11_ = new_video; -#line 162 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video_monitor_set_check_interpretable (self, _tmp11_, TRUE); -#line 1346 "VideoMonitor.c" - } else { - gboolean _tmp12_ = FALSE; - Video* _tmp13_; -#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp13_ = old_video; -#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp13_ == NULL) { -#line 1354 "VideoMonitor.c" - Video* _tmp14_; -#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp14_ = new_video; -#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp12_ = _tmp14_ == NULL; -#line 1360 "VideoMonitor.c" - } else { -#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp12_ = FALSE; -#line 1364 "VideoMonitor.c" - } -#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp12_) { -#line 165 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = FALSE; -#line 165 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (new_video); -#line 165 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (old_video); -#line 165 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1376 "VideoMonitor.c" - } else { - gboolean _tmp15_ = FALSE; - Video* _tmp16_; - Video* _tmp18_; - Video* _tmp19_; -#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp16_ = old_video; -#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp16_ != NULL) { -#line 1386 "VideoMonitor.c" - Video* _tmp17_; -#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp17_ = new_video; -#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp15_ = _tmp17_ != NULL; -#line 1392 "VideoMonitor.c" - } else { -#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp15_ = FALSE; -#line 1396 "VideoMonitor.c" - } -#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _vala_assert (_tmp15_, "old_video != null && new_video != null"); -#line 170 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp18_ = old_video; -#line 170 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - media_monitor_update_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_MONITORABLE, Monitorable)); -#line 171 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp19_ = new_video; -#line 171 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video_monitor_set_check_interpretable (self, _tmp19_, TRUE); -#line 1408 "VideoMonitor.c" - } - } - } -#line 174 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = TRUE; -#line 174 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (new_video); -#line 174 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (old_video); -#line 174 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1420 "VideoMonitor.c" -} - - -static gboolean -video_monitor_real_notify_file_altered (MediaMonitor* base, - GFile* file) -{ - VideoMonitor * self; - gboolean result = FALSE; - VideoSourceCollectionState state = 0; - VideoSourceCollectionState _tmp0_ = 0; - Video* _tmp1_; - Video* _tmp2_; - gboolean _tmp3_; -#line 177 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor); -#line 177 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = video_monitor_get_state (self, file, &_tmp0_); -#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - state = _tmp0_; -#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp2_ = _tmp1_; -#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp3_ = _tmp2_ != NULL; -#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (_tmp2_); -#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = _tmp3_; -#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1453 "VideoMonitor.c" -} - - -static gboolean -video_monitor_real_notify_file_attributes_altered (MediaMonitor* base, - GFile* file) -{ - VideoMonitor * self; - gboolean result = FALSE; - VideoSourceCollectionState state = 0; - Video* video = NULL; - VideoSourceCollectionState _tmp0_ = 0; - Video* _tmp1_; - Video* _tmp2_; - Video* _tmp3_; - Video* _tmp4_; -#line 182 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor); -#line 182 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 184 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = video_monitor_get_state (self, file, &_tmp0_); -#line 184 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - state = _tmp0_; -#line 184 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video = _tmp1_; -#line 185 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp2_ = video; -#line 185 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp2_ == NULL) { -#line 186 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = FALSE; -#line 186 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (video); -#line 186 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1490 "VideoMonitor.c" - } -#line 188 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp3_ = video; -#line 188 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - media_monitor_update_master_file_info_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MONITORABLE, Monitorable)); -#line 189 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp4_ = video; -#line 189 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MONITORABLE, Monitorable), TRUE); -#line 191 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = TRUE; -#line 191 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (video); -#line 191 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1506 "VideoMonitor.c" -} - - -static gboolean -video_monitor_real_notify_file_alteration_completed (MediaMonitor* base, - GFile* file, - GFileInfo* info) -{ - VideoMonitor * self; - gboolean result = FALSE; - VideoSourceCollectionState state = 0; - Video* video = NULL; - VideoSourceCollectionState _tmp0_ = 0; - Video* _tmp1_; - Video* _tmp2_; - Video* _tmp3_; -#line 194 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor); -#line 194 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 194 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE); -#line 196 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = video_monitor_get_state (self, file, &_tmp0_); -#line 196 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - state = _tmp0_; -#line 196 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video = _tmp1_; -#line 197 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp2_ = video; -#line 197 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp2_ == NULL) { -#line 198 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = FALSE; -#line 198 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (video); -#line 198 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1545 "VideoMonitor.c" - } -#line 200 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp3_ = video; -#line 200 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - media_monitor_update_master_file_alterations_completed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MONITORABLE, Monitorable), info); -#line 202 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = TRUE; -#line 202 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (video); -#line 202 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1557 "VideoMonitor.c" -} - - -static gboolean -video_monitor_real_notify_file_deleted (MediaMonitor* base, - GFile* file) -{ - VideoMonitor * self; - gboolean result = FALSE; - VideoSourceCollectionState state = 0; - Video* video = NULL; - VideoSourceCollectionState _tmp0_ = 0; - Video* _tmp1_; - Video* _tmp2_; - Video* _tmp3_; - Video* _tmp4_; -#line 205 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor); -#line 205 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 207 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = video_monitor_get_state (self, file, &_tmp0_); -#line 207 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - state = _tmp0_; -#line 207 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video = _tmp1_; -#line 208 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp2_ = video; -#line 208 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp2_ == NULL) { -#line 209 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = FALSE; -#line 209 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (video); -#line 209 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1594 "VideoMonitor.c" - } -#line 211 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp3_ = video; -#line 211 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MONITORABLE, Monitorable), FALSE); -#line 212 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp4_ = video; -#line 212 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - media_monitor_update_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MONITORABLE, Monitorable)); -#line 214 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = TRUE; -#line 214 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (video); -#line 214 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1610 "VideoMonitor.c" -} - - -static Video* -video_monitor_get_state (VideoMonitor* self, - GFile* file, - VideoSourceCollectionState* state) -{ - VideoSourceCollectionState _vala_state = 0; - Video* result = NULL; - GFile* real_file = NULL; - GFile* _tmp22_ = NULL; - GFile* _tmp23_; - VideoSourceCollection* _tmp24_; - VideoSourceCollectionState _tmp25_ = 0; - Video* _tmp26_; -#line 217 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (IS_VIDEO_MONITOR (self), NULL); -#line 217 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 218 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - real_file = NULL; -#line 1633 "VideoMonitor.c" - { - GeeIterator* _monitorable_it = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp0_ = media_monitor_get_monitorables (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor)); -#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = _tmp0_; -#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp3_ = _tmp2_; -#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (_tmp1_); -#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _monitorable_it = _tmp3_; -#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - while (TRUE) { -#line 1654 "VideoMonitor.c" - GeeIterator* _tmp4_; - Monitorable* monitorable = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - Video* video = NULL; - Monitorable* _tmp7_; - Video* _tmp8_; - VideoUpdates* updates = NULL; - Video* _tmp9_; - VideoUpdates* _tmp10_; - VideoUpdates* _tmp11_; - gboolean _tmp12_ = FALSE; - VideoUpdates* _tmp13_; - GFile* _tmp14_; - GFile* _tmp15_; - gboolean _tmp16_; -#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp4_ = _monitorable_it; -#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - break; -#line 1677 "VideoMonitor.c" - } -#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp5_ = _monitorable_it; -#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - monitorable = (Monitorable*) _tmp6_; -#line 220 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp7_ = monitorable; -#line 220 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_VIDEO, Video)); -#line 220 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video = _tmp8_; -#line 222 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp9_ = video; -#line 222 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp10_ = video_monitor_get_existing_video_updates (self, _tmp9_); -#line 222 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - updates = _tmp10_; -#line 223 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp11_ = updates; -#line 223 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp11_ == NULL) { -#line 224 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 224 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (video); -#line 224 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (monitorable); -#line 224 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - continue; -#line 1709 "VideoMonitor.c" - } -#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp13_ = updates; -#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp14_ = monitorable_updates_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates)); -#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp15_ = _tmp14_; -#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp16_ = _tmp15_ != NULL; -#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (_tmp15_); -#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp16_) { -#line 1723 "VideoMonitor.c" - VideoUpdates* _tmp17_; - GFile* _tmp18_; - GFile* _tmp19_; -#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp17_ = updates; -#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp18_ = monitorable_updates_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates)); -#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp19_ = _tmp18_; -#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp12_ = g_file_equal (_tmp19_, file); -#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (_tmp19_); -#line 1737 "VideoMonitor.c" - } else { -#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp12_ = FALSE; -#line 1741 "VideoMonitor.c" - } -#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp12_) { -#line 1745 "VideoMonitor.c" - Video* _tmp20_; - GFile* _tmp21_; -#line 227 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp20_ = video; -#line 227 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp21_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 227 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (real_file); -#line 227 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - real_file = _tmp21_; -#line 229 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 229 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (video); -#line 229 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (monitorable); -#line 229 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - break; -#line 1764 "VideoMonitor.c" - } -#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (video); -#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (monitorable); -#line 1772 "VideoMonitor.c" - } -#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (_monitorable_it); -#line 1776 "VideoMonitor.c" - } -#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp23_ = real_file; -#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp22_ = _tmp23_; -#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp22_ == NULL) { -#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp22_ = file; -#line 1786 "VideoMonitor.c" - } -#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp24_ = video_global; -#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp26_ = video_source_collection_get_state_by_file (_tmp24_, _tmp22_, &_tmp25_); -#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _vala_state = _tmp25_; -#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = _tmp26_; -#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (real_file); -#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (state) { -#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - *state = _vala_state; -#line 1802 "VideoMonitor.c" - } -#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1806 "VideoMonitor.c" -} - - -VideoUpdates* -video_monitor_fetch_video_updates (VideoMonitor* self, - Video* video) -{ - VideoUpdates* result = NULL; - VideoUpdates* updates = NULL; - MonitorableUpdates* _tmp0_; - VideoUpdates* _tmp1_; -#line 236 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (IS_VIDEO_MONITOR (self), NULL); -#line 236 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (IS_VIDEO (video), NULL); -#line 237 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp0_ = media_monitor_fetch_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (video, TYPE_MONITORABLE, Monitorable)); -#line 237 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_VIDEO_UPDATES) ? ((VideoUpdates*) _tmp0_) : NULL; -#line 237 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp1_ == NULL) { -#line 237 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _monitorable_updates_unref0 (_tmp0_); -#line 1830 "VideoMonitor.c" - } -#line 237 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - updates = _tmp1_; -#line 238 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _vala_assert (updates != NULL, "updates != null"); -#line 240 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = updates; -#line 240 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1840 "VideoMonitor.c" -} - - -VideoUpdates* -video_monitor_get_existing_video_updates (VideoMonitor* self, - Video* video) -{ - VideoUpdates* result = NULL; - MonitorableUpdates* _tmp0_; - VideoUpdates* _tmp1_; -#line 243 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (IS_VIDEO_MONITOR (self), NULL); -#line 243 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (IS_VIDEO (video), NULL); -#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp0_ = media_monitor_get_existing_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (video, TYPE_MONITORABLE, Monitorable)); -#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_VIDEO_UPDATES) ? ((VideoUpdates*) _tmp0_) : NULL; -#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp1_ == NULL) { -#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _monitorable_updates_unref0 (_tmp0_); -#line 1863 "VideoMonitor.c" - } -#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - result = _tmp1_; -#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return result; -#line 1869 "VideoMonitor.c" -} - - -void -video_monitor_set_check_interpretable (VideoMonitor* self, - Video* video, - gboolean check) -{ - VideoUpdates* _tmp0_; - VideoUpdates* _tmp1_; -#line 247 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_if_fail (IS_VIDEO_MONITOR (self)); -#line 247 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_if_fail (IS_VIDEO (video)); -#line 248 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp0_ = video_monitor_fetch_video_updates (self, video); -#line 248 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = _tmp0_; -#line 248 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video_updates_set_check_interpretable (_tmp1_, check); -#line 248 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _monitorable_updates_unref0 (_tmp1_); -#line 1892 "VideoMonitor.c" -} - - -static gpointer -_monitorable_updates_ref0 (gpointer self) -{ -#line 266 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return self ? monitorable_updates_ref (self) : NULL; -#line 1901 "VideoMonitor.c" -} - - -static void -_video_monitor_on_interpretable_check_complete_completion_callback (BackgroundJob* job, - gpointer self) -{ -#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video_monitor_on_interpretable_check_complete ((VideoMonitor*) self, job); -#line 1911 "VideoMonitor.c" -} - - -static void -video_monitor_real_process_updates (MediaMonitor* base, - GeeCollection* all_updates, - TransactionController* controller, - gint* op_count, - GError** error) -{ - VideoMonitor * self; - GeeArrayList* check = NULL; - GeeArrayList* _tmp20_; - GError * _inner_error_ = NULL; -#line 251 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor); -#line 251 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_if_fail (GEE_IS_COLLECTION (all_updates)); -#line 251 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_if_fail (IS_TRANSACTION_CONTROLLER (controller)); -#line 253 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - MEDIA_MONITOR_CLASS (video_monitor_parent_class)->process_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), all_updates, controller, op_count, &_inner_error_); -#line 253 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 253 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_propagate_error (error, _inner_error_); -#line 253 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return; -#line 1940 "VideoMonitor.c" - } -#line 255 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - check = NULL; -#line 1944 "VideoMonitor.c" - { - GeeIterator* _monitorable_updates_it = NULL; - GeeIterator* _tmp0_; -#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (all_updates, GEE_TYPE_ITERABLE, GeeIterable)); -#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _monitorable_updates_it = _tmp0_; -#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - while (TRUE) { -#line 1954 "VideoMonitor.c" - GeeIterator* _tmp1_; - MonitorableUpdates* monitorable_updates = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - gboolean _tmp4_ = FALSE; - GeeArrayList* _tmp5_; - VideoUpdates* updates = NULL; - MonitorableUpdates* _tmp9_; - VideoUpdates* _tmp10_; - VideoUpdates* _tmp11_; - VideoUpdates* _tmp12_; -#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = _monitorable_updates_it; -#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - break; -#line 1972 "VideoMonitor.c" - } -#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp2_ = _monitorable_updates_it; -#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - monitorable_updates = (MonitorableUpdates*) _tmp3_; -#line 258 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if ((*op_count) >= MEDIA_MONITOR_MAX_OPERATIONS_PER_CYCLE) { -#line 259 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _monitorable_updates_unref0 (monitorable_updates); -#line 259 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - break; -#line 1986 "VideoMonitor.c" - } -#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp5_ = check; -#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp5_ != NULL) { -#line 1992 "VideoMonitor.c" - GeeArrayList* _tmp6_; - gint _tmp7_; - gint _tmp8_; -#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp6_ = check; -#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp7_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp8_ = _tmp7_; -#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp4_ = _tmp8_ >= VIDEO_MONITOR_MAX_INTERPRETABLE_CHECKS_PER_CYCLE; -#line 2004 "VideoMonitor.c" - } else { -#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp4_ = FALSE; -#line 2008 "VideoMonitor.c" - } -#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp4_) { -#line 264 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _monitorable_updates_unref0 (monitorable_updates); -#line 264 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - break; -#line 2016 "VideoMonitor.c" - } -#line 266 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp9_ = monitorable_updates; -#line 266 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp10_ = _monitorable_updates_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_VIDEO_UPDATES) ? ((VideoUpdates*) _tmp9_) : NULL); -#line 266 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - updates = _tmp10_; -#line 267 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp11_ = updates; -#line 267 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp11_ == NULL) { -#line 268 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 268 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _monitorable_updates_unref0 (monitorable_updates); -#line 268 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - continue; -#line 2034 "VideoMonitor.c" - } -#line 270 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp12_ = updates; -#line 270 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (video_updates_is_check_interpretable (_tmp12_)) { -#line 2040 "VideoMonitor.c" - GeeArrayList* _tmp13_; - GeeArrayList* _tmp15_; - VideoUpdates* _tmp16_; - Video* _tmp17_; - VideoUpdates* _tmp18_; - gint _tmp19_; -#line 271 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp13_ = check; -#line 271 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp13_ == NULL) { -#line 2051 "VideoMonitor.c" - GeeArrayList* _tmp14_; -#line 272 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp14_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 272 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (check); -#line 272 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - check = _tmp14_; -#line 2059 "VideoMonitor.c" - } -#line 274 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp15_ = check; -#line 274 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp16_ = updates; -#line 274 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp17_ = _tmp16_->video; -#line 274 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_); -#line 275 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp18_ = updates; -#line 275 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video_updates_set_check_interpretable (_tmp18_, FALSE); -#line 276 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp19_ = *op_count; -#line 276 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - *op_count = _tmp19_ + 1; -#line 2077 "VideoMonitor.c" - } -#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _monitorable_updates_unref0 (updates); -#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _monitorable_updates_unref0 (monitorable_updates); -#line 2083 "VideoMonitor.c" - } -#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (_monitorable_updates_it); -#line 2087 "VideoMonitor.c" - } -#line 280 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp20_ = check; -#line 280 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp20_ != NULL) { -#line 2093 "VideoMonitor.c" - GeeArrayList* _tmp21_; - gint _tmp22_; - gint _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - guint64 _tmp26_; - GeeArrayList* _tmp27_; - gint _tmp28_; - gint _tmp29_; -#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp21_ = check; -#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp22_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp23_ = _tmp22_; -#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp24_ = g_strdup_printf ("Checking interpretable for %d videos", _tmp23_); -#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp25_ = _tmp24_; -#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - media_monitor_mdbg (_tmp25_); -#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_free0 (_tmp25_); -#line 283 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video_notify_offline_thumbs_regenerated (); -#line 285 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp26_ = self->priv->background_jobs; -#line 285 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp27_ = check; -#line 285 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp28_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 285 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp29_ = _tmp28_; -#line 285 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self->priv->background_jobs = _tmp26_ + _tmp29_; -#line 2129 "VideoMonitor.c" - { - GeeArrayList* _video_list = NULL; - GeeArrayList* _tmp30_; - GeeArrayList* _tmp31_; - gint _video_size = 0; - GeeArrayList* _tmp32_; - gint _tmp33_; - gint _tmp34_; - gint _video_index = 0; -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp30_ = check; -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp31_ = _g_object_ref0 (_tmp30_); -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _video_list = _tmp31_; -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp32_ = _video_list; -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp33_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp34_ = _tmp33_; -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _video_size = _tmp34_; -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _video_index = -1; -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - while (TRUE) { -#line 2157 "VideoMonitor.c" - gint _tmp35_; - gint _tmp36_; - gint _tmp37_; - Video* video = NULL; - GeeArrayList* _tmp38_; - gint _tmp39_; - gpointer _tmp40_; - Workers* _tmp41_; - Video* _tmp42_; - VideoMonitorVideoInterpretableCheckJob* _tmp43_; - VideoMonitorVideoInterpretableCheckJob* _tmp44_; -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp35_ = _video_index; -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _video_index = _tmp35_ + 1; -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp36_ = _video_index; -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp37_ = _video_size; -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (!(_tmp36_ < _tmp37_)) { -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - break; -#line 2181 "VideoMonitor.c" - } -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp38_ = _video_list; -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp39_ = _video_index; -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp40_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp39_); -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video = (Video*) _tmp40_; -#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp41_ = self->priv->workers; -#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp42_ = video; -#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp43_ = video_monitor_video_interpretable_check_job_new (_tmp42_, _video_monitor_on_interpretable_check_complete_completion_callback, self); -#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp44_ = _tmp43_; -#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - workers_enqueue (_tmp41_, G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _background_job_unref0 (_tmp44_); -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (video); -#line 2205 "VideoMonitor.c" - } -#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (_video_list); -#line 2209 "VideoMonitor.c" - } - } -#line 251 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (check); -#line 2214 "VideoMonitor.c" -} - - -static gpointer -_background_job_ref0 (gpointer self) -{ -#line 292 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return self ? background_job_ref (self) : NULL; -#line 2223 "VideoMonitor.c" -} - - -static void -video_monitor_on_interpretable_check_complete (VideoMonitor* self, - BackgroundJob* j) -{ - VideoMonitorVideoInterpretableCheckJob* job = NULL; - VideoMonitorVideoInterpretableCheckJob* _tmp0_; - VideoMonitorVideoInterpretableCheckJob* _tmp1_; - VideoInterpretableResults* _tmp2_; - guint64 _tmp3_; - guint64 _tmp4_; -#line 291 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_if_fail (IS_VIDEO_MONITOR (self)); -#line 291 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_if_fail (IS_BACKGROUND_JOB (j)); -#line 292 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, VideoMonitorVideoInterpretableCheckJob)); -#line 292 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - job = _tmp0_; -#line 294 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = job; -#line 294 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp2_ = _tmp1_->results; -#line 294 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video_interpretable_results_foreground_finish (_tmp2_); -#line 296 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp3_ = self->priv->background_jobs; -#line 296 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self->priv->background_jobs = _tmp3_ - 1; -#line 297 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp4_ = self->priv->background_jobs; -#line 297 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - if (_tmp4_ <= ((guint64) 0)) { -#line 298 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video_notify_normal_thumbs_regenerated (); -#line 2261 "VideoMonitor.c" - } -#line 291 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _background_job_unref0 (job); -#line 2265 "VideoMonitor.c" -} - - -static VideoMonitorVideoInterpretableCheckJob* -video_monitor_video_interpretable_check_job_construct (GType object_type, - Video* video, - CompletionCallback callback, - void* callback_target) -{ - VideoMonitorVideoInterpretableCheckJob* self = NULL; - Video* _tmp0_; -#line 49 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_return_val_if_fail (IS_VIDEO (video), NULL); -#line 50 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = (VideoMonitorVideoInterpretableCheckJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (video, G_TYPE_OBJECT, GObject), callback, callback_target, NULL, NULL, NULL, NULL); -#line 51 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp0_ = _g_object_ref0 (video); -#line 51 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (self->video); -#line 51 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self->video = _tmp0_; -#line 49 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return self; -#line 2289 "VideoMonitor.c" -} - - -static VideoMonitorVideoInterpretableCheckJob* -video_monitor_video_interpretable_check_job_new (Video* video, - CompletionCallback callback, - void* callback_target) -{ -#line 49 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - return video_monitor_video_interpretable_check_job_construct (VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, video, callback, callback_target); -#line 2300 "VideoMonitor.c" -} - - -static void -video_monitor_video_interpretable_check_job_real_execute (BackgroundJob* base) -{ - VideoMonitorVideoInterpretableCheckJob * self; - Video* _tmp0_; - VideoInterpretableResults* _tmp1_; -#line 54 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, VideoMonitorVideoInterpretableCheckJob); -#line 55 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp0_ = self->video; -#line 55 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp1_ = video_check_is_interpretable (_tmp0_); -#line 55 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _video_interpretable_results_unref0 (self->results); -#line 55 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self->results = _tmp1_; -#line 2320 "VideoMonitor.c" -} - - -static void -video_monitor_video_interpretable_check_job_class_init (VideoMonitorVideoInterpretableCheckJobClass * klass) -{ -#line 42 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video_monitor_video_interpretable_check_job_parent_class = g_type_class_peek_parent (klass); -#line 42 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((BackgroundJobClass *) klass)->finalize = video_monitor_video_interpretable_check_job_finalize; -#line 42 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) video_monitor_video_interpretable_check_job_real_execute; -#line 2333 "VideoMonitor.c" -} - - -static void -video_monitor_video_interpretable_check_job_instance_init (VideoMonitorVideoInterpretableCheckJob * self) -{ -#line 47 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self->results = NULL; -#line 2342 "VideoMonitor.c" -} - - -static void -video_monitor_video_interpretable_check_job_finalize (BackgroundJob * obj) -{ - VideoMonitorVideoInterpretableCheckJob * self; -#line 42 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, VideoMonitorVideoInterpretableCheckJob); -#line 44 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _g_object_unref0 (self->video); -#line 47 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _video_interpretable_results_unref0 (self->results); -#line 42 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - BACKGROUND_JOB_CLASS (video_monitor_video_interpretable_check_job_parent_class)->finalize (obj); -#line 2358 "VideoMonitor.c" -} - - -static GType -video_monitor_video_interpretable_check_job_get_type (void) -{ - static volatile gsize video_monitor_video_interpretable_check_job_type_id__volatile = 0; - if (g_once_init_enter (&video_monitor_video_interpretable_check_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (VideoMonitorVideoInterpretableCheckJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_monitor_video_interpretable_check_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoMonitorVideoInterpretableCheckJob), 0, (GInstanceInitFunc) video_monitor_video_interpretable_check_job_instance_init, NULL }; - GType video_monitor_video_interpretable_check_job_type_id; - video_monitor_video_interpretable_check_job_type_id = g_type_register_static (TYPE_BACKGROUND_JOB, "VideoMonitorVideoInterpretableCheckJob", &g_define_type_info, 0); - g_once_init_leave (&video_monitor_video_interpretable_check_job_type_id__volatile, video_monitor_video_interpretable_check_job_type_id); - } - return video_monitor_video_interpretable_check_job_type_id__volatile; -} - - -static void -video_monitor_class_init (VideoMonitorClass * klass) -{ -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - video_monitor_parent_class = g_type_class_peek_parent (klass); -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - g_type_class_add_private (klass, sizeof (VideoMonitorPrivate)); -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((MediaMonitorClass *) klass)->create_updates = (MonitorableUpdates* (*) (MediaMonitor *, Monitorable*)) video_monitor_real_create_updates; -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((MediaMonitorClass *) klass)->get_media_source_collection = (MediaSourceCollection* (*) (MediaMonitor *)) video_monitor_real_get_media_source_collection; -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((MediaMonitorClass *) klass)->is_file_represented = (gboolean (*) (MediaMonitor *, GFile*)) video_monitor_real_is_file_represented; -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_discovered = (MediaMonitorDiscoveredFile (*) (MediaMonitor *, GFile*, GFileInfo*, Monitorable* *)) video_monitor_real_notify_file_discovered; -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((MediaMonitorClass *) klass)->candidates_for_unknown_file = (GeeCollection* (*) (MediaMonitor *, GFile*, GFileInfo*, MediaMonitorDiscoveredFile*)) video_monitor_real_candidates_for_unknown_file; -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_created = (gboolean (*) (MediaMonitor *, GFile*, GFileInfo*)) video_monitor_real_notify_file_created; -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_moved = (gboolean (*) (MediaMonitor *, GFile*, GFile*, GFileInfo*)) video_monitor_real_notify_file_moved; -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_altered = (gboolean (*) (MediaMonitor *, GFile*)) video_monitor_real_notify_file_altered; -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_attributes_altered = (gboolean (*) (MediaMonitor *, GFile*)) video_monitor_real_notify_file_attributes_altered; -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_alteration_completed = (gboolean (*) (MediaMonitor *, GFile*, GFileInfo*)) video_monitor_real_notify_file_alteration_completed; -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((MediaMonitorClass *) klass)->notify_file_deleted = (gboolean (*) (MediaMonitor *, GFile*)) video_monitor_real_notify_file_deleted; -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - ((MediaMonitorClass *) klass)->process_updates = (void (*) (MediaMonitor *, GeeCollection*, TransactionController*, gint*, GError**)) video_monitor_real_process_updates; -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - G_OBJECT_CLASS (klass)->finalize = video_monitor_finalize; -#line 2409 "VideoMonitor.c" -} - - -static void -video_monitor_instance_init (VideoMonitor * self) -{ - Workers* _tmp0_; -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self->priv = VIDEO_MONITOR_GET_PRIVATE (self); -#line 62 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _tmp0_ = workers_new ((guint) 1, FALSE); -#line 62 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self->priv->workers = _tmp0_; -#line 63 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self->priv->background_jobs = (guint64) 0; -#line 2425 "VideoMonitor.c" -} - - -static void -video_monitor_finalize (GObject * obj) -{ - VideoMonitor * self; -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_MONITOR, VideoMonitor); -#line 62 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - _workers_unref0 (self->priv->workers); -#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala" - G_OBJECT_CLASS (video_monitor_parent_class)->finalize (obj); -#line 2439 "VideoMonitor.c" -} - - -GType -video_monitor_get_type (void) -{ - static volatile gsize video_monitor_type_id__volatile = 0; - if (g_once_init_enter (&video_monitor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (VideoMonitorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_monitor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoMonitor), 0, (GInstanceInitFunc) video_monitor_instance_init, NULL }; - GType video_monitor_type_id; - video_monitor_type_id = g_type_register_static (TYPE_MEDIA_MONITOR, "VideoMonitor", &g_define_type_info, 0); - g_once_init_leave (&video_monitor_type_id__volatile, video_monitor_type_id); - } - return video_monitor_type_id__volatile; -} - - - diff --git a/src/VideoSupport.c b/src/VideoSupport.c deleted file mode 100644 index ddc760b..0000000 --- a/src/VideoSupport.c +++ /dev/null @@ -1,11394 +0,0 @@ -/* VideoSupport.c generated by valac 0.40.4, the Vala compiler - * generated from VideoSupport.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_VIDEO_IMPORT_PARAMS (video_import_params_get_type ()) -#define VIDEO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_IMPORT_PARAMS, VideoImportParams)) -#define VIDEO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_IMPORT_PARAMS, VideoImportParamsClass)) -#define IS_VIDEO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_IMPORT_PARAMS)) -#define IS_VIDEO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_IMPORT_PARAMS)) -#define VIDEO_IMPORT_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_IMPORT_PARAMS, VideoImportParamsClass)) - -typedef struct _VideoImportParams VideoImportParams; -typedef struct _VideoImportParamsClass VideoImportParamsClass; -typedef struct _VideoImportParamsPrivate VideoImportParamsPrivate; - -#define TYPE_IMPORT_ID (import_id_get_type ()) -typedef struct _ImportID ImportID; - -#define TYPE_THUMBNAILS (thumbnails_get_type ()) -#define THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAILS, Thumbnails)) -#define THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAILS, ThumbnailsClass)) -#define IS_THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAILS)) -#define IS_THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAILS)) -#define THUMBNAILS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAILS, ThumbnailsClass)) - -typedef struct _Thumbnails Thumbnails; -typedef struct _ThumbnailsClass ThumbnailsClass; - -#define TYPE_VIDEO_ROW (video_row_get_type ()) -#define VIDEO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_ROW, VideoRow)) -#define VIDEO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_ROW, VideoRowClass)) -#define IS_VIDEO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_ROW)) -#define IS_VIDEO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_ROW)) -#define VIDEO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_ROW, VideoRowClass)) - -typedef struct _VideoRow VideoRow; -typedef struct _VideoRowClass VideoRowClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _thumbnails_unref0(var) ((var == NULL) ? NULL : (var = (thumbnails_unref (var), NULL))) -#define _video_row_unref0(var) ((var == NULL) ? NULL : (var = (video_row_unref (var), NULL))) -typedef struct _ParamSpecVideoImportParams ParamSpecVideoImportParams; - -#define TYPE_VIDEO_READER (video_reader_get_type ()) -#define VIDEO_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_READER, VideoReader)) -#define VIDEO_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_READER, VideoReaderClass)) -#define IS_VIDEO_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_READER)) -#define IS_VIDEO_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_READER)) -#define VIDEO_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_READER, VideoReaderClass)) - -typedef struct _VideoReader VideoReader; -typedef struct _VideoReaderClass VideoReaderClass; -typedef struct _VideoReaderPrivate VideoReaderPrivate; -#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_IMPORT_RESULT (import_result_get_type ()) -#define _video_reader_unref0(var) ((var == NULL) ? NULL : (var = (video_reader_unref (var), NULL))) - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_VIDEO_METADATA (video_metadata_get_type ()) -#define VIDEO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_METADATA, VideoMetadata)) -#define VIDEO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_METADATA, VideoMetadataClass)) -#define IS_VIDEO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_METADATA)) -#define IS_VIDEO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_METADATA)) -#define VIDEO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_METADATA, VideoMetadataClass)) - -typedef struct _VideoMetadata VideoMetadata; -typedef struct _VideoMetadataClass VideoMetadataClass; - -#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ()) -#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime)) -#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) -#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME)) -#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME)) -#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) - -typedef struct _MetadataDateTime MetadataDateTime; -typedef struct _MetadataDateTimeClass MetadataDateTimeClass; -#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL))) -#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL))) -typedef struct _VideoRowPrivate VideoRowPrivate; - -#define TYPE_VIDEO_ID (video_id_get_type ()) -typedef struct _VideoID VideoID; - -#define TYPE_EVENT_ID (event_id_get_type ()) -typedef struct _EventID EventID; - -#define TYPE_RATING (rating_get_type ()) -typedef struct _ParamSpecVideoReader ParamSpecVideoReader; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; -typedef struct _DataSourcePrivate DataSourcePrivate; - -#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ()) -#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)) -#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) -#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK)) -#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK)) -#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) - -typedef struct _SourceHoldingTank SourceHoldingTank; -typedef struct _SourceHoldingTankClass SourceHoldingTankClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ()) -#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot)) -#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) -#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT)) -#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT)) -#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) - -typedef struct _SourceSnapshot SourceSnapshot; -typedef struct _SourceSnapshotClass SourceSnapshotClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; -typedef struct _ThumbnailSourcePrivate ThumbnailSourcePrivate; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_INDEXABLE (indexable_get_type ()) -#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable)) -#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE)) -#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface)) - -typedef struct _Indexable Indexable; -typedef struct _IndexableIface IndexableIface; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; -typedef struct _MediaSourcePrivate MediaSourcePrivate; - -#define TYPE_BACKING_FILE_STATE (backing_file_state_get_type ()) -#define BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_FILE_STATE, BackingFileState)) -#define BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_FILE_STATE, BackingFileStateClass)) -#define IS_BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_FILE_STATE)) -#define IS_BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_FILE_STATE)) -#define BACKING_FILE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_FILE_STATE, BackingFileStateClass)) - -typedef struct _BackingFileState BackingFileState; -typedef struct _BackingFileStateClass BackingFileStateClass; - -#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) -typedef struct _Scaling Scaling; - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; -typedef struct _VideoSourcePrivate VideoSourcePrivate; - -#define TYPE_FLAGGABLE (flaggable_get_type ()) -#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable)) -#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE)) -#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface)) - -typedef struct _Flaggable Flaggable; -typedef struct _FlaggableIface FlaggableIface; - -#define TYPE_MONITORABLE (monitorable_get_type ()) -#define MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MONITORABLE, Monitorable)) -#define IS_MONITORABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MONITORABLE)) -#define MONITORABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MONITORABLE, MonitorableIface)) - -typedef struct _Monitorable Monitorable; -typedef struct _MonitorableIface MonitorableIface; - -#define TYPE_DATEABLE (dateable_get_type ()) -#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable)) -#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE)) -#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface)) - -typedef struct _Dateable Dateable; -typedef struct _DateableIface DateableIface; - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; -typedef struct _VideoPrivate VideoPrivate; -enum { - VIDEO_0_PROPERTY, - VIDEO_NUM_PROPERTIES -}; -static GParamSpec* video_properties[VIDEO_NUM_PROPERTIES]; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_VIDEO_SOURCE_COLLECTION (video_source_collection_get_type ()) -#define VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection)) -#define VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) -#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION)) -#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION)) -#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) - -typedef struct _VideoSourceCollection VideoSourceCollection; -typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; - -#define TYPE_VIDEO_TABLE (video_table_get_type ()) -#define VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_TABLE, VideoTable)) -#define VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_TABLE, VideoTableClass)) -#define IS_VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_TABLE)) -#define IS_VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_TABLE)) -#define VIDEO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_TABLE, VideoTableClass)) - -typedef struct _VideoTable VideoTable; -typedef struct _VideoTableClass VideoTableClass; -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) -#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL))) - -#define TYPE_EXPORTER (exporter_get_type ()) -#define EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER, Exporter)) -#define EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER, ExporterClass)) -#define IS_EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER)) -#define IS_EXPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER)) -#define EXPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER, ExporterClass)) - -typedef struct _Exporter Exporter; -typedef struct _ExporterClass ExporterClass; - -#define TYPE_EXPORTER_UI (exporter_ui_get_type ()) -#define EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER_UI, ExporterUI)) -#define EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORTER_UI, ExporterUIClass)) -#define IS_EXPORTER_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORTER_UI)) -#define IS_EXPORTER_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORTER_UI)) -#define EXPORTER_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORTER_UI, ExporterUIClass)) - -typedef struct _ExporterUI ExporterUI; -typedef struct _ExporterUIClass ExporterUIClass; - -#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ()) - -#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ()) - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) -typedef struct _ExportFormatParameters ExportFormatParameters; -#define _exporter_ui_unref0(var) ((var == NULL) ? NULL : (var = (exporter_ui_unref (var), NULL))) - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; -#define _backing_file_state_unref0(var) ((var == NULL) ? NULL : (var = (backing_file_state_unref (var), NULL))) - -#define THUMBNAIL_CACHE_TYPE_SIZE (thumbnail_cache_size_get_type ()) -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) - -#define VIDEO_TYPE_INTERPRETABLE_RESULTS (video_interpretable_results_get_type ()) -#define VIDEO_INTERPRETABLE_RESULTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIDEO_TYPE_INTERPRETABLE_RESULTS, VideoInterpretableResults)) -#define VIDEO_INTERPRETABLE_RESULTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIDEO_TYPE_INTERPRETABLE_RESULTS, VideoInterpretableResultsClass)) -#define VIDEO_IS_INTERPRETABLE_RESULTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIDEO_TYPE_INTERPRETABLE_RESULTS)) -#define VIDEO_IS_INTERPRETABLE_RESULTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIDEO_TYPE_INTERPRETABLE_RESULTS)) -#define VIDEO_INTERPRETABLE_RESULTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIDEO_TYPE_INTERPRETABLE_RESULTS, VideoInterpretableResultsClass)) - -typedef struct _VideoInterpretableResults VideoInterpretableResults; -typedef struct _VideoInterpretableResultsClass VideoInterpretableResultsClass; -#define _video_interpretable_results_unref0(var) ((var == NULL) ? NULL : (var = (video_interpretable_results_unref (var), NULL))) -typedef struct _VideoInterpretableResultsPrivate VideoInterpretableResultsPrivate; -typedef struct _VideoParamSpecInterpretableResults VideoParamSpecInterpretableResults; -typedef struct _DataCollectionPrivate DataCollectionPrivate; - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; -typedef struct _SourceCollectionPrivate SourceCollectionPrivate; - -#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ()) -#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink)) -#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) -#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK)) -#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK)) -#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) - -typedef struct _SourceBacklink SourceBacklink; -typedef struct _SourceBacklinkClass SourceBacklinkClass; -typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate; -typedef struct _MediaSourceCollectionPrivate MediaSourceCollectionPrivate; - -#define TYPE_DATABASE_SOURCE_HOLDING_TANK (database_source_holding_tank_get_type ()) -#define DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank)) -#define DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass)) -#define IS_DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK)) -#define IS_DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK)) -#define DATABASE_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass)) - -typedef struct _DatabaseSourceHoldingTank DatabaseSourceHoldingTank; -typedef struct _DatabaseSourceHoldingTankClass DatabaseSourceHoldingTankClass; - -#define TYPE_MEDIA_SOURCE_HOLDING_TANK (media_source_holding_tank_get_type ()) -#define MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTank)) -#define MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass)) -#define IS_MEDIA_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK)) -#define IS_MEDIA_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_HOLDING_TANK)) -#define MEDIA_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_HOLDING_TANK, MediaSourceHoldingTankClass)) - -typedef struct _MediaSourceHoldingTank MediaSourceHoldingTank; -typedef struct _MediaSourceHoldingTankClass MediaSourceHoldingTankClass; - -#define TYPE_WORKERS (workers_get_type ()) -#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers)) -#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass)) -#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS)) -#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS)) -#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass)) - -typedef struct _Workers Workers; -typedef struct _WorkersClass WorkersClass; - -#define TYPE_MEDIA_MONITOR (media_monitor_get_type ()) -#define MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_MONITOR, MediaMonitor)) -#define MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_MONITOR, MediaMonitorClass)) -#define IS_MEDIA_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_MONITOR)) -#define IS_MEDIA_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_MONITOR)) -#define MEDIA_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_MONITOR, MediaMonitorClass)) - -typedef struct _MediaMonitor MediaMonitor; -typedef struct _MediaMonitorClass MediaMonitorClass; - -#define TYPE_TRANSACTION_CONTROLLER (transaction_controller_get_type ()) -#define TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionController)) -#define TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) -#define IS_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSACTION_CONTROLLER)) -#define IS_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSACTION_CONTROLLER)) -#define TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSACTION_CONTROLLER, TransactionControllerClass)) - -typedef struct _TransactionController TransactionController; -typedef struct _TransactionControllerClass TransactionControllerClass; -typedef struct _VideoSourceCollectionPrivate VideoSourceCollectionPrivate; - -#define VIDEO_SOURCE_COLLECTION_TYPE_STATE (video_source_collection_state_get_type ()) -#define _transaction_controller_unref0(var) ((var == NULL) ? NULL : (var = (transaction_controller_unref (var), NULL))) -#define _source_holding_tank_unref0(var) ((var == NULL) ? NULL : (var = (source_holding_tank_unref (var), NULL))) - -#define TYPE_VIDEO_MONITOR (video_monitor_get_type ()) -#define VIDEO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_MONITOR, VideoMonitor)) -#define VIDEO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_MONITOR, VideoMonitorClass)) -#define IS_VIDEO_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_MONITOR)) -#define IS_VIDEO_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_MONITOR)) -#define VIDEO_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_MONITOR, VideoMonitorClass)) - -typedef struct _VideoMonitor VideoMonitor; -typedef struct _VideoMonitorClass VideoMonitorClass; - -#define TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER (media_source_transaction_controller_get_type ()) -#define MEDIA_SOURCE_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionController)) -#define MEDIA_SOURCE_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionControllerClass)) -#define IS_MEDIA_SOURCE_TRANSACTION_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER)) -#define IS_MEDIA_SOURCE_TRANSACTION_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER)) -#define MEDIA_SOURCE_TRANSACTION_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_TRANSACTION_CONTROLLER, MediaSourceTransactionControllerClass)) - -typedef struct _MediaSourceTransactionController MediaSourceTransactionController; -typedef struct _MediaSourceTransactionControllerClass MediaSourceTransactionControllerClass; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef enum { - VIDEO_ERROR_FILE, - VIDEO_ERROR_CONTENTS -} VideoError; -#define VIDEO_ERROR video_error_quark () -struct _ImportID { - gint64 id; -}; - -struct _VideoImportParams { - GTypeInstance parent_instance; - volatile int ref_count; - VideoImportParamsPrivate * priv; - GFile* file; - ImportID import_id; - gchar* md5; - time_t exposure_time_override; - Thumbnails* thumbnails; - VideoRow* row; -}; - -struct _VideoImportParamsClass { - GTypeClass parent_class; - void (*finalize) (VideoImportParams *self); -}; - -struct _ParamSpecVideoImportParams { - GParamSpec parent_instance; -}; - -struct _VideoReader { - GTypeInstance parent_instance; - volatile int ref_count; - VideoReaderPrivate * priv; -}; - -struct _VideoReaderClass { - GTypeClass parent_class; - void (*finalize) (VideoReader *self); -}; - -struct _VideoReaderPrivate { - gdouble clip_duration; - GdkPixbuf* preview_frame; - GFile* file; - GPid thumbnailer_pid; - GDateTime* _timestamp; -}; - -typedef enum { - IMPORT_RESULT_SUCCESS, - IMPORT_RESULT_FILE_ERROR, - IMPORT_RESULT_DECODE_ERROR, - IMPORT_RESULT_DATABASE_ERROR, - IMPORT_RESULT_USER_ABORT, - IMPORT_RESULT_NOT_A_FILE, - IMPORT_RESULT_PHOTO_EXISTS, - IMPORT_RESULT_UNSUPPORTED_FORMAT, - IMPORT_RESULT_NOT_AN_IMAGE, - IMPORT_RESULT_DISK_FAILURE, - IMPORT_RESULT_DISK_FULL, - IMPORT_RESULT_CAMERA_ERROR, - IMPORT_RESULT_FILE_WRITE_ERROR, - IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE -} ImportResult; - -struct _VideoID { - gint64 id; -}; - -struct _EventID { - gint64 id; -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -struct _VideoRow { - GTypeInstance parent_instance; - volatile int ref_count; - VideoRowPrivate * priv; - VideoID video_id; - gchar* filepath; - gint64 filesize; - time_t timestamp; - gint width; - gint height; - gdouble clip_duration; - gboolean is_interpretable; - time_t exposure_time; - ImportID import_id; - EventID event_id; - gchar* md5; - time_t time_created; - Rating rating; - gchar* title; - gchar* backlinks; - time_t time_reimported; - guint64 flags; - gchar* comment; -}; - -struct _VideoRowClass { - GTypeClass parent_class; - void (*finalize) (VideoRow *self); -}; - -struct _ParamSpecVideoReader { - GParamSpec parent_instance; -}; - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataSource { - DataObject parent_instance; - DataSourcePrivate * priv; -}; - -struct _DataSourceClass { - DataObjectClass parent_class; - void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank); - void (*notify_unlinking) (DataSource* self, SourceCollection* collection); - void (*notify_unlinked) (DataSource* self); - void (*notify_relinking) (DataSource* self, SourceCollection* collection); - void (*notify_relinked) (DataSource* self); - gchar* (*get_typename) (DataSource* self); - gint64 (*get_instance_id) (DataSource* self); - gchar* (*get_source_id) (DataSource* self); - void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated); - SourceSnapshot* (*save_snapshot) (DataSource* self); - gboolean (*internal_delete_backing) (DataSource* self, GError** error); - gboolean (*equals) (DataSource* self, DataSource* source); - void (*destroy) (DataSource* self); - void (*unlinked) (DataSource* self, SourceCollection* sources); - void (*relinked) (DataSource* self, SourceCollection* sources); - void (*destroyed) (DataSource* self); -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _ThumbnailSource { - DataSource parent_instance; - ThumbnailSourcePrivate * priv; -}; - -struct _ThumbnailSourceClass { - DataSourceClass parent_class; - void (*notify_thumbnail_altered) (ThumbnailSource* self); - GdkPixbuf* (*get_thumbnail) (ThumbnailSource* self, gint scale, GError** error); - GdkPixbuf* (*create_thumbnail) (ThumbnailSource* self, gint scale, GError** error); - gchar* (*get_representative_id) (ThumbnailSource* self); - PhotoFileFormat (*get_preferred_thumbnail_format) (ThumbnailSource* self); - void (*thumbnail_altered) (ThumbnailSource* self); -}; - -struct _IndexableIface { - GTypeInterface parent_iface; - const gchar* (*get_indexable_keywords) (Indexable* self); -}; - -typedef enum { - PHOTO_EXCEPTION_NONE = 0, - PHOTO_EXCEPTION_ORIENTATION = 1 << 0, - PHOTO_EXCEPTION_CROP = 1 << 1, - PHOTO_EXCEPTION_REDEYE = 1 << 2, - PHOTO_EXCEPTION_ADJUST = 1 << 3, - PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4, - PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL -} PhotoException; - -struct _Dimensions { - gint width; - gint height; -}; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -struct _MediaSource { - ThumbnailSource parent_instance; - MediaSourcePrivate * priv; -}; - -struct _MediaSourceClass { - ThumbnailSourceClass parent_class; - void (*notify_master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file); - gboolean (*set_event_id) (MediaSource* self, EventID* id); - gchar* (*get_basename) (MediaSource* self); - GFile* (*get_file) (MediaSource* self); - GFile* (*get_master_file) (MediaSource* self); - guint64 (*get_master_filesize) (MediaSource* self); - guint64 (*get_filesize) (MediaSource* self); - time_t (*get_timestamp) (MediaSource* self); - BackingFileState** (*get_backing_files_state) (MediaSource* self, int* result_length1); - gchar* (*get_title) (MediaSource* self); - gchar* (*get_comment) (MediaSource* self); - void (*set_title) (MediaSource* self, const gchar* title); - gboolean (*set_comment) (MediaSource* self, const gchar* comment); - Rating (*get_rating) (MediaSource* self); - void (*set_rating) (MediaSource* self, Rating rating); - void (*increase_rating) (MediaSource* self); - void (*decrease_rating) (MediaSource* self); - void (*get_dimensions) (MediaSource* self, PhotoException disallowed_steps, Dimensions* result); - GdkPixbuf* (*get_preview_pixbuf) (MediaSource* self, Scaling* scaling, GError** error); - gboolean (*is_trashed) (MediaSource* self); - void (*trash) (MediaSource* self); - void (*untrash) (MediaSource* self); - gboolean (*is_offline) (MediaSource* self); - void (*mark_offline) (MediaSource* self); - void (*mark_online) (MediaSource* self); - gchar* (*get_master_md5) (MediaSource* self); - void (*get_event_id) (MediaSource* self, EventID* result); - time_t (*get_exposure_time) (MediaSource* self); - void (*get_import_id) (MediaSource* self, ImportID* result); - void (*master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file); -}; - -struct _VideoSource { - MediaSource parent_instance; - VideoSourcePrivate * priv; -}; - -struct _VideoSourceClass { - MediaSourceClass parent_class; -}; - -struct _FlaggableIface { - GTypeInterface parent_iface; - gboolean (*is_flagged) (Flaggable* self); - void (*mark_flagged) (Flaggable* self); - void (*mark_unflagged) (Flaggable* self); -}; - -struct _MonitorableIface { - GTypeInterface parent_iface; - gboolean (*is_offline) (Monitorable* self); - void (*mark_online) (Monitorable* self); - void (*mark_offline) (Monitorable* self); - void (*set_master_file) (Monitorable* self, GFile* file); - void (*set_master_timestamp) (Monitorable* self, GFileInfo* info); -}; - -struct _DateableIface { - GTypeInterface parent_iface; - void (*set_exposure_time) (Dateable* self, time_t target_time); - time_t (*get_exposure_time) (Dateable* self); -}; - -struct _Video { - VideoSource parent_instance; - VideoPrivate * priv; -}; - -struct _VideoClass { - VideoSourceClass parent_class; -}; - -struct _VideoPrivate { - VideoRow* backing_row; - GRecMutex __lock_backing_row; -}; - -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -typedef void (*ExporterCompletionCallback) (Exporter* exporter, gboolean is_cancelled, void* user_data); -typedef enum { - EXPORT_FORMAT_MODE_UNMODIFIED, - EXPORT_FORMAT_MODE_CURRENT, - EXPORT_FORMAT_MODE_SPECIFIED, - EXPORT_FORMAT_MODE_LAST -} ExportFormatMode; - -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -struct _ExportFormatParameters { - ExportFormatMode mode; - PhotoFileFormat specified_format; - JpegQuality quality; - gboolean export_metadata; -}; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -typedef enum { - THUMBNAIL_CACHE_SIZE_LARGEST = 360, - THUMBNAIL_CACHE_SIZE_BIG = 360, - THUMBNAIL_CACHE_SIZE_MEDIUM = 128, - THUMBNAIL_CACHE_SIZE_SMALLEST = 128 -} ThumbnailCacheSize; - -struct _VideoInterpretableResults { - GTypeInstance parent_instance; - volatile int ref_count; - VideoInterpretableResultsPrivate * priv; - Video* video; - gboolean update_interpretable; - gboolean is_interpretable; - GdkPixbuf* new_thumbnail; -}; - -struct _VideoInterpretableResultsClass { - GTypeClass parent_class; - void (*finalize) (VideoInterpretableResults *self); -}; - -struct _VideoParamSpecInterpretableResults { - GParamSpec parent_instance; -}; - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -struct _DataCollection { - GTypeInstance parent_instance; - volatile int ref_count; - DataCollectionPrivate * priv; -}; - -struct _DataCollectionClass { - GTypeClass parent_class; - void (*finalize) (DataCollection *self); - gchar* (*to_string) (DataCollection* self); - void (*notify_items_added) (DataCollection* self, GeeIterable* added); - void (*notify_items_removed) (DataCollection* self, GeeIterable* removed); - void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*notify_items_altered) (DataCollection* self, GeeMap* items); - void (*notify_ordering_changed) (DataCollection* self); - void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*notify_property_cleared) (DataCollection* self, const gchar* name); - gboolean (*valid_type) (DataCollection* self, DataObject* object); - void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target); - void (*reset_comparator) (DataCollection* self); - GeeCollection* (*get_all) (DataCollection* self); - gint (*get_count) (DataCollection* self); - DataObject* (*get_at) (DataCollection* self, gint index); - gint (*index_of) (DataCollection* self, DataObject* object); - gboolean (*contains) (DataCollection* self, DataObject* object); - gboolean (*add) (DataCollection* self, DataObject* object); - GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target); - void (*remove_marked) (DataCollection* self, Marker* m); - void (*clear) (DataCollection* self); - void (*close) (DataCollection* self); - void (*notify_frozen) (DataCollection* self); - void (*notify_thawed) (DataCollection* self); - void (*items_added) (DataCollection* self, GeeIterable* added); - void (*items_removed) (DataCollection* self, GeeIterable* removed); - void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*items_altered) (DataCollection* self, GeeMap* items); - void (*ordering_changed) (DataCollection* self); - void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*property_cleared) (DataCollection* self, const gchar* name); - void (*frozen) (DataCollection* self); - void (*thawed) (DataCollection* self); -}; - -struct _SourceCollection { - DataCollection parent_instance; - SourceCollectionPrivate * priv; -}; - -struct _SourceCollectionClass { - DataCollectionClass parent_class; - gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source); - void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*notify_item_destroyed) (SourceCollection* self, DataSource* source); - void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked); - void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); - gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*item_destroyed) (SourceCollection* self, DataSource* source); - void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*unlinked_destroyed) (SourceCollection* self, DataSource* source); - void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); -}; - -struct _DatabaseSourceCollection { - SourceCollection parent_instance; - DatabaseSourceCollectionPrivate * priv; -}; - -struct _DatabaseSourceCollectionClass { - SourceCollectionClass parent_class; -}; - -struct _MediaSourceCollection { - DatabaseSourceCollection parent_instance; - MediaSourceCollectionPrivate * priv; -}; - -struct _MediaSourceCollectionClass { - DatabaseSourceCollectionClass parent_class; - MediaSourceHoldingTank* (*create_trashcan) (MediaSourceCollection* self); - MediaSourceHoldingTank* (*create_offline_bin) (MediaSourceCollection* self); - MediaMonitor* (*create_media_monitor) (MediaSourceCollection* self, Workers* workers, GCancellable* cancellable); - gchar* (*get_typename) (MediaSourceCollection* self); - gboolean (*is_file_recognized) (MediaSourceCollection* self, GFile* file); - MediaSource* (*fetch_by_numeric_id) (MediaSourceCollection* self, gint64 numeric_id); - void (*notify_import_roll_altered) (MediaSourceCollection* self); - void (*notify_flagged_contents_altered) (MediaSourceCollection* self); - void (*notify_media_import_starting) (MediaSourceCollection* self, GeeCollection* media); - void (*notify_media_import_completed) (MediaSourceCollection* self, GeeCollection* media); - MediaSource* (*fetch_by_source_id) (MediaSourceCollection* self, const gchar* source_id); - GeeCollection* (*get_event_source_ids) (MediaSourceCollection* self, EventID* event_id); - void (*import_many) (MediaSourceCollection* self, GeeCollection* media); - void (*postprocess_imported_media) (MediaSourceCollection* self, GeeCollection* media); - void (*media_import_starting) (MediaSourceCollection* self, GeeCollection* media); - void (*media_import_completed) (MediaSourceCollection* self, GeeCollection* media); - void (*master_file_replaced) (MediaSourceCollection* self, MediaSource* media, GFile* old_file, GFile* new_file); - void (*trashcan_contents_altered) (MediaSourceCollection* self, GeeCollection* added, GeeCollection* removed); - void (*import_roll_altered) (MediaSourceCollection* self); - void (*offline_contents_altered) (MediaSourceCollection* self, GeeCollection* added, GeeCollection* removed); - void (*flagged_contents_altered) (MediaSourceCollection* self); - TransactionController* (*get_transaction_controller) (MediaSourceCollection* self); -}; - -struct _VideoSourceCollection { - MediaSourceCollection parent_instance; - VideoSourceCollectionPrivate * priv; -}; - -struct _VideoSourceCollectionClass { - MediaSourceCollectionClass parent_class; -}; - -struct _VideoSourceCollectionPrivate { - TransactionController* _transaction_controller; - GeeMultiMap* filesize_to_video; -}; - -typedef enum { - VIDEO_SOURCE_COLLECTION_STATE_UNKNOWN, - VIDEO_SOURCE_COLLECTION_STATE_ONLINE, - VIDEO_SOURCE_COLLECTION_STATE_OFFLINE, - VIDEO_SOURCE_COLLECTION_STATE_TRASH -} VideoSourceCollectionState; - -typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data); -typedef gboolean (*SourceHoldingTankCheckToKeep) (DataSource* source, Alteration* alteration, void* user_data); - -static gpointer video_import_params_parent_class = NULL; -static gpointer video_reader_parent_class = NULL; -static gpointer video_parent_class = NULL; -static gboolean video_interpreter_state_changed; -static gboolean video_interpreter_state_changed = FALSE; -static gint video_current_state; -static gint video_current_state = 0; -static gboolean video_normal_regen_complete; -static gboolean video_normal_regen_complete = FALSE; -static gboolean video_offline_regen_complete; -static gboolean video_offline_regen_complete = FALSE; -extern VideoSourceCollection* video_global; -VideoSourceCollection* video_global = NULL; -static gpointer video_interpretable_results_parent_class = NULL; -static FlaggableIface * video_flaggable_parent_iface = NULL; -static MonitorableIface * video_monitorable_parent_iface = NULL; -static DateableIface * video_dateable_parent_iface = NULL; -static gpointer video_source_collection_parent_class = NULL; - -GQuark video_error_quark (void); -gpointer video_import_params_ref (gpointer instance); -void video_import_params_unref (gpointer instance); -GParamSpec* param_spec_video_import_params (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_video_import_params (GValue* value, - gpointer v_object); -void value_take_video_import_params (GValue* value, - gpointer v_object); -gpointer value_get_video_import_params (const GValue* value); -GType video_import_params_get_type (void) G_GNUC_CONST; -GType import_id_get_type (void) G_GNUC_CONST; -ImportID* import_id_dup (const ImportID* self); -void import_id_free (ImportID* self); -gpointer thumbnails_ref (gpointer instance); -void thumbnails_unref (gpointer instance); -GParamSpec* param_spec_thumbnails (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_thumbnails (GValue* value, - gpointer v_object); -void value_take_thumbnails (GValue* value, - gpointer v_object); -gpointer value_get_thumbnails (const GValue* value); -GType thumbnails_get_type (void) G_GNUC_CONST; -gpointer video_row_ref (gpointer instance); -void video_row_unref (gpointer instance); -GParamSpec* param_spec_video_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_video_row (GValue* value, - gpointer v_object); -void value_take_video_row (GValue* value, - gpointer v_object); -gpointer value_get_video_row (const GValue* value); -GType video_row_get_type (void) G_GNUC_CONST; -#define IMPORT_ID_INVALID ((gint64) 0) -void import_id_init (ImportID *self, - gint64 id); -VideoRow* video_row_new (void); -VideoRow* video_row_construct (GType object_type); -VideoImportParams* video_import_params_new (GFile* file, - ImportID* import_id, - const gchar* md5, - Thumbnails* thumbnails, - time_t exposure_time_override); -VideoImportParams* video_import_params_construct (GType object_type, - GFile* file, - ImportID* import_id, - const gchar* md5, - Thumbnails* thumbnails, - time_t exposure_time_override); -static void video_import_params_finalize (VideoImportParams * obj); -gpointer video_reader_ref (gpointer instance); -void video_reader_unref (gpointer instance); -GParamSpec* param_spec_video_reader (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_video_reader (GValue* value, - gpointer v_object); -void value_take_video_reader (GValue* value, - gpointer v_object); -gpointer value_get_video_reader (const GValue* value); -GType video_reader_get_type (void) G_GNUC_CONST; -#define VIDEO_READER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_VIDEO_READER, VideoReaderPrivate)) -#define VIDEO_READER_UNKNOWN_CLIP_DURATION (-1.0) -#define VIDEO_READER_THUMBNAILER_TIMEOUT ((guint) 10000) -VideoReader* video_reader_new (GFile* file); -VideoReader* video_reader_construct (GType object_type, - GFile* file); -gboolean video_reader_is_supported_video_file (GFile* file); -gboolean video_reader_is_supported_video_filename (const gchar* filename); -void disassemble_filename (const gchar* basename, - gchar* * name, - gchar* * ext); -gint utf8_ci_compare (void* a, - void* b); -GType import_result_get_type (void) G_GNUC_CONST; -ImportResult video_reader_prepare_for_import (VideoImportParams* params); -#define UTIL_FILE_ATTRIBUTES "standard::*,time::*,id::file,id::filesystem,etag::value" -#define DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES UTIL_FILE_ATTRIBUTES -GdkPixbuf* video_reader_read_preview_frame (VideoReader* self); -gdouble video_reader_read_clip_duration (VideoReader* self, - GError** error); -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType video_metadata_get_type (void) G_GNUC_CONST; -VideoMetadata* video_reader_read_metadata (VideoReader* self, - GError** error); -gpointer metadata_date_time_ref (gpointer instance); -void metadata_date_time_unref (gpointer instance); -GParamSpec* param_spec_metadata_date_time (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_metadata_date_time (GValue* value, - gpointer v_object); -void value_take_metadata_date_time (GValue* value, - gpointer v_object); -gpointer value_get_metadata_date_time (const GValue* value); -GType metadata_date_time_get_type (void) G_GNUC_CONST; -MetadataDateTime* media_metadata_get_creation_date_time (MediaMetadata* self); -time_t metadata_date_time_get_timestamp (MetadataDateTime* self); -gchar* media_metadata_get_title (MediaMetadata* self); -gchar* media_metadata_get_comment (MediaMetadata* self); -GDateTime* video_reader_get_timestamp (VideoReader* self); -GType video_id_get_type (void) G_GNUC_CONST; -VideoID* video_id_dup (const VideoID* self); -void video_id_free (VideoID* self); -GType event_id_get_type (void) G_GNUC_CONST; -EventID* event_id_dup (const EventID* self); -void event_id_free (EventID* self); -GType rating_get_type (void) G_GNUC_CONST; -#define VIDEO_ID_INVALID ((gint64) -1) -void video_id_init (VideoID *self, - gint64 id); -#define EVENT_ID_INVALID ((gint64) -1) -void event_id_init (EventID *self, - gint64 id); -Thumbnails* thumbnails_new (void); -Thumbnails* thumbnails_construct (GType object_type); -void thumbnail_cache_generate_for_video_frame (Thumbnails* thumbnails, - GdkPixbuf* preview_frame); -static void video_reader_read_internal (VideoReader* self, - GError** error); -static gboolean video_reader_does_file_exist (VideoReader* self); -static GDate* _g_date_dup (GDate* self); -static void video_reader_set_timestamp (VideoReader* self, - GDateTime* value); -static gboolean video_reader_on_thumbnailer_timer (VideoReader* self); -static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, - const gchar* video_file); -GFile* app_dirs_get_thumbnailer_bin (void); -static gboolean _video_reader_on_thumbnailer_timer_gsource_func (gpointer self); -GdkPixbuf* resources_get_noninterpretable_badge_pixbuf (void); -VideoMetadata* video_metadata_new (void); -VideoMetadata* video_metadata_construct (GType object_type); -void media_metadata_read_from_file (MediaMetadata* self, - GFile* file, - GError** error); -static void video_reader_finalize (VideoReader * obj); -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -gpointer source_holding_tank_ref (gpointer instance); -void source_holding_tank_unref (gpointer instance); -GParamSpec* param_spec_source_holding_tank (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_holding_tank (GValue* value, - gpointer v_object); -void value_take_source_holding_tank (GValue* value, - gpointer v_object); -gpointer value_get_source_holding_tank (const GValue* value); -GType source_holding_tank_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -gpointer source_snapshot_ref (gpointer instance); -void source_snapshot_unref (gpointer instance); -GParamSpec* param_spec_source_snapshot (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_snapshot (GValue* value, - gpointer v_object); -void value_take_source_snapshot (GValue* value, - gpointer v_object); -gpointer value_get_source_snapshot (const GValue* value); -GType source_snapshot_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType indexable_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -gpointer backing_file_state_ref (gpointer instance); -void backing_file_state_unref (gpointer instance); -GParamSpec* param_spec_backing_file_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_backing_file_state (GValue* value, - gpointer v_object); -void value_take_backing_file_state (GValue* value, - gpointer v_object); -gpointer value_get_backing_file_state (const GValue* value); -GType backing_file_state_get_type (void) G_GNUC_CONST; -GType photo_exception_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -GType video_source_get_type (void) G_GNUC_CONST; -GType flaggable_get_type (void) G_GNUC_CONST; -GType monitorable_get_type (void) G_GNUC_CONST; -GType dateable_get_type (void) G_GNUC_CONST; -GType video_get_type (void) G_GNUC_CONST; -#define VIDEO_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_VIDEO, VideoPrivate)) -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -GType video_source_collection_get_type (void) G_GNUC_CONST; -#define VIDEO_TYPENAME "video" -#define VIDEO_FLAG_TRASH ((guint64) 0x0000000000000001) -#define VIDEO_FLAG_OFFLINE ((guint64) 0x0000000000000002) -#define VIDEO_FLAG_FLAGGED ((guint64) 0x0000000000000004) -Video* video_new (VideoRow* row); -Video* video_construct (GType object_type, - VideoRow* row); -VideoSource* video_source_construct (GType object_type); -gchar* media_source_prep_title (const gchar* title); -void data_source_rehydrate_backlinks (DataSource* self, - SourceCollection* unlinked_from, - const gchar* dehydrated); -void video_init (ProgressMonitor monitor, - void* monitor_target); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gint configuration_facade_get_video_interpreter_state_cookie (ConfigurationFacade* self); -#define CONFIG_FACADE_NO_VIDEO_INTERPRETER_STATE -1 -static gboolean __lambda12_ (GstPluginFeature* f); -static gboolean ___lambda12__gst_plugin_feature_filter (GstPluginFeature* feature, - gpointer self); -VideoSourceCollection* video_source_collection_new (void); -VideoSourceCollection* video_source_collection_construct (GType object_type); -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType video_table_get_type (void) G_GNUC_CONST; -VideoTable* video_table_get_instance (void); -GeeArrayList* video_table_get_all (VideoTable* self); -static void video_set_is_interpretable (Video* self, - gboolean is_interpretable); -gboolean media_source_is_trashed (MediaSource* self); -gboolean media_source_is_offline (MediaSource* self); -void media_source_collection_add_many_to_trash (MediaSourceCollection* self, - GeeCollection* sources); -void media_source_collection_add_many_to_offline (MediaSourceCollection* self, - GeeCollection* sources); -GeeCollection* data_collection_add_many (DataCollection* self, - GeeCollection* objects, - ProgressMonitor monitor, - void* monitor_target); -static void _g_object_unref0_ (gpointer var); -static inline void _g_list_free__g_object_unref0_ (GList* self); -gboolean video_has_interpreter_state_changed (void); -void video_notify_normal_thumbs_regenerated (void); -static void video_save_interpreter_state (void); -void video_notify_offline_thumbs_regenerated (void); -void configuration_facade_set_video_interpreter_state_cookie (ConfigurationFacade* self, - gint state_cookie); -void video_terminate (void); -GType exporter_get_type (void) G_GNUC_CONST; -gpointer exporter_ui_ref (gpointer instance); -void exporter_ui_unref (gpointer instance); -GParamSpec* param_spec_exporter_ui (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_exporter_ui (GValue* value, - gpointer v_object); -void value_take_exporter_ui (GValue* value, - gpointer v_object); -gpointer value_get_exporter_ui (const GValue* value); -GType exporter_ui_get_type (void) G_GNUC_CONST; -ExporterUI* video_export_many (GeeCollection* videos, - ExporterCompletionCallback done, - void* done_target, - gboolean export_in_place); -void scaling_for_original (Scaling* result); -GType export_format_parameters_get_type (void) G_GNUC_CONST; -GType export_format_mode_get_type (void) G_GNUC_CONST; -GType jpeg_quality_get_type (void) G_GNUC_CONST; -ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self); -void export_format_parameters_free (ExportFormatParameters* self); -void export_format_parameters_unmodified (ExportFormatParameters* result); -Exporter* exporter_new_for_temp_file (GeeCollection* to_export, - Scaling* scaling, - ExportFormatParameters* export_params); -Exporter* exporter_construct_for_temp_file (GType object_type, - GeeCollection* to_export, - Scaling* scaling, - ExportFormatParameters* export_params); -ExporterUI* exporter_ui_new (Exporter* exporter); -ExporterUI* exporter_ui_construct (GType object_type, - Exporter* exporter); -void exporter_ui_export (ExporterUI* self, - ExporterCompletionCallback completion_callback, - void* completion_callback_target); -GFile* export_ui_choose_file (const gchar* current_file_basename); -gchar* media_source_get_basename (MediaSource* self); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -void page_window_set_busy_cursor (PageWindow* self); -void video_export (Video* self, - GFile* dest_file, - GError** error); -void page_window_set_normal_cursor (PageWindow* self); -GtkResponseType export_error_dialog (GFile* dest, - gboolean photos_remaining); -GFile* export_ui_choose_dir (const gchar* user_title); -Exporter* exporter_new (GeeCollection* to_export, - GFile* dir, - Scaling* scaling, - ExportFormatParameters* export_params, - gboolean auto_replace_all); -Exporter* exporter_construct (GType object_type, - GeeCollection* to_export, - GFile* dir, - Scaling* scaling, - ExportFormatParameters* export_params, - gboolean auto_replace_all); -static void video_real_commit_backlinks (DataSource* base, - SourceCollection* sources, - const gchar* backlinks); -GQuark database_error_quark (void); -void video_table_update_backlinks (VideoTable* self, - VideoID* video_id, - const gchar* backlinks, - GError** error); -void video_get_video_id (Video* self, - VideoID* result); -gchar* data_object_to_string (DataObject* self); -static gboolean video_real_set_event_id (MediaSource* base, - EventID* event_id); -gboolean video_table_set_event (VideoTable* self, - VideoID* video_id, - EventID* event_id); -gboolean video_is_duplicate (GFile* file, - const gchar* full_md5); -gboolean video_table_has_duplicate (VideoTable* self, - GFile* file, - const gchar* md5); -ImportResult video_import_create (VideoImportParams* params, - Video* * video); -void video_table_add (VideoTable* self, - VideoRow* video_row, - VideoID* result, - GError** error); -gboolean video_id_is_invalid (VideoID *self); -void video_import_failed (Video* video); -void video_table_remove (VideoTable* self, - VideoID* videoID, - GError** error); -void app_window_database_error (GError* err); -static BackingFileState** video_real_get_backing_files_state (MediaSource* base, - int* result_length1); -BackingFileState* backing_file_state_new (const gchar* filepath, - gint64 filesize, - time_t modification_time, - const gchar* md5); -BackingFileState* backing_file_state_construct (GType object_type, - const gchar* filepath, - gint64 filesize, - time_t modification_time, - const gchar* md5); -static GdkPixbuf* video_real_get_thumbnail (ThumbnailSource* base, - gint scale, - GError** error); -GdkPixbuf* thumbnail_cache_fetch (ThumbnailSource* source, - gint scale, - GError** error); -static gchar* video_real_get_master_md5 (MediaSource* base); -static GdkPixbuf* video_real_get_preview_pixbuf (MediaSource* base, - Scaling* scaling, - GError** error); -GdkPixbuf* thumbnail_source_get_thumbnail (ThumbnailSource* self, - gint scale, - GError** error); -GType thumbnail_cache_size_get_type (void) G_GNUC_CONST; -GdkPixbuf* scaling_perform_on_pixbuf (Scaling *self, - GdkPixbuf* pixbuf, - GdkInterpType interp, - gboolean scale_up); -static GdkPixbuf* video_real_create_thumbnail (ThumbnailSource* base, - gint scale, - GError** error); -GFile* media_source_get_file (MediaSource* self); -static gchar* video_real_get_typename (DataSource* base); -static gint64 video_real_get_instance_id (DataSource* base); -static void video_real_get_import_id (MediaSource* base, - ImportID* result); -static PhotoFileFormat video_real_get_preferred_thumbnail_format (ThumbnailSource* base); -PhotoFileFormat photo_file_format_get_system_default_format (void); -static gchar* video_real_get_title (MediaSource* base); -static void video_real_set_title (MediaSource* base, - const gchar* title); -void video_table_set_title (VideoTable* self, - VideoID* video_id, - const gchar* new_title, - GError** error); -void data_object_notify_altered (DataObject* self, - Alteration* alteration); -Alteration* alteration_new (const gchar* subject, - const gchar* detail); -Alteration* alteration_construct (GType object_type, - const gchar* subject, - const gchar* detail); -static gchar* video_real_get_comment (MediaSource* base); -static gboolean video_real_set_comment (MediaSource* base, - const gchar* comment); -void video_table_set_comment (VideoTable* self, - VideoID* video_id, - const gchar* new_comment, - GError** error); -static Rating video_real_get_rating (MediaSource* base); -static void video_real_set_rating (MediaSource* base, - Rating rating); -gboolean rating_is_valid (Rating self); -void video_table_set_rating (VideoTable* self, - VideoID* video_id, - Rating rating, - GError** error); -static void video_real_increase_rating (MediaSource* base); -void media_source_set_rating (MediaSource* self, - Rating rating); -Rating rating_increase (Rating self); -static void video_real_decrease_rating (MediaSource* base); -Rating rating_decrease (Rating self); -static gboolean video_real_is_trashed (MediaSource* base); -gboolean video_is_flag_set (Video* self, - guint64 flag); -static gboolean video_real_is_offline (Monitorable* base); -static void video_real_mark_offline (Monitorable* base); -guint64 video_add_flags (Video* self, - guint64 flags_to_add, - Alteration* additional_alteration); -static void video_real_mark_online (Monitorable* base); -guint64 video_remove_flags (Video* self, - guint64 flags_to_remove, - Alteration* additional_alteration); -gboolean video_get_is_interpretable (Video* self); -gpointer video_interpretable_results_ref (gpointer instance); -void video_interpretable_results_unref (gpointer instance); -GParamSpec* video_param_spec_interpretable_results (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void video_value_set_interpretable_results (GValue* value, - gpointer v_object); -void video_value_take_interpretable_results (GValue* value, - gpointer v_object); -gpointer video_value_get_interpretable_results (const GValue* value); -GType video_interpretable_results_get_type (void) G_GNUC_CONST; -VideoInterpretableResults* video_check_is_interpretable (Video* self); -void video_interpretable_results_foreground_finish (VideoInterpretableResults* self); -static void video_real_trash (MediaSource* base); -static void video_real_untrash (MediaSource* base); -static gboolean video_real_is_flagged (Flaggable* base); -static void video_real_mark_flagged (Flaggable* base); -static void video_real_mark_unflagged (Flaggable* base); -static void video_real_get_event_id (MediaSource* base, - EventID* result); -static gchar* video_real_to_string (DataObject* base); -static time_t video_real_get_exposure_time (Dateable* base); -static void video_real_set_exposure_time (Dateable* base, - time_t time); -void video_table_set_exposure_time (VideoTable* self, - VideoID* video_id, - time_t time, - GError** error); -void video_get_frame_dimensions (Video* self, - Dimensions* result); -void dimensions_init (Dimensions *self, - gint width, - gint height); -static void video_real_get_dimensions (MediaSource* base, - PhotoException disallowed_steps, - Dimensions* result); -static guint64 video_real_get_filesize (MediaSource* base); -guint64 media_source_get_master_filesize (MediaSource* self); -static guint64 video_real_get_master_filesize (MediaSource* base); -static time_t video_real_get_timestamp (MediaSource* base); -static void video_real_set_master_timestamp (Monitorable* base, - GFileInfo* info); -void video_table_set_timestamp (VideoTable* self, - VideoID* video_id, - time_t timestamp, - GError** error); -gchar* video_get_filename (Video* self); -static GFile* video_real_get_file (MediaSource* base); -static GFile* video_real_get_master_file (MediaSource* base); -gdouble video_get_clip_duration (Video* self); -void video_table_update_is_interpretable (VideoTable* self, - VideoID* video_id, - gboolean is_interpretable, - GError** error); -VideoInterpretableResults* video_interpretable_results_new (Video* video); -VideoInterpretableResults* video_interpretable_results_construct (GType object_type, - Video* video); -static void video_real_destroy (DataSource* base); -void thumbnail_cache_remove (ThumbnailSource* source); -void data_source_destroy (DataSource* self); -static gboolean video_real_internal_delete_backing (DataSource* base, - GError** error); -gboolean media_source_delete_original_file (MediaSource* self); -gboolean data_source_internal_delete_backing (DataSource* self, - GError** error); -static void video_notify_flags_altered (Video* self, - Alteration* additional_alteration); -Alteration* alteration_compress (Alteration* self, - Alteration* other); -guint64 media_source_internal_add_flags (guint64 flags, - guint64 selector); -void video_table_set_flags (VideoTable* self, - VideoID* video_id, - guint64 flags, - GError** error); -guint64 media_source_internal_remove_flags (guint64 flags, - guint64 selector); -gboolean media_source_internal_is_flag_set (guint64 flags, - guint64 selector); -static void video_real_set_master_file (Monitorable* base, - GFile* file); -void video_table_set_filepath (VideoTable* self, - VideoID* video_id, - const gchar* filepath, - GError** error); -void media_source_notify_master_replaced (MediaSource* self, - GFile* old_file, - GFile* new_file); -Alteration* alteration_new_from_list (const gchar* list); -Alteration* alteration_construct_from_list (GType object_type, - const gchar* list); -VideoMetadata* video_read_metadata (Video* self, - GError** error); -void thumbnail_cache_replace (ThumbnailSource* source, - ThumbnailCacheSize size, - GdkPixbuf* replacement, - GError** error); -void thumbnail_source_notify_thumbnail_altered (ThumbnailSource* self); -static void video_interpretable_results_finalize (VideoInterpretableResults * obj); -static void video_finalize (GObject * obj); -GType marker_get_type (void) G_GNUC_CONST; -gpointer source_backlink_ref (gpointer instance); -void source_backlink_unref (gpointer instance); -GParamSpec* param_spec_source_backlink (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_backlink (GValue* value, - gpointer v_object); -void value_take_source_backlink (GValue* value, - gpointer v_object); -gpointer value_get_source_backlink (const GValue* value); -GType source_backlink_get_type (void) G_GNUC_CONST; -GType database_source_holding_tank_get_type (void) G_GNUC_CONST; -GType media_source_holding_tank_get_type (void) G_GNUC_CONST; -gpointer workers_ref (gpointer instance); -void workers_unref (gpointer instance); -GParamSpec* param_spec_workers (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_workers (GValue* value, - gpointer v_object); -void value_take_workers (GValue* value, - gpointer v_object); -gpointer value_get_workers (const GValue* value); -GType workers_get_type (void) G_GNUC_CONST; -GType media_monitor_get_type (void) G_GNUC_CONST; -gpointer transaction_controller_ref (gpointer instance); -void transaction_controller_unref (gpointer instance); -GParamSpec* param_spec_transaction_controller (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_transaction_controller (GValue* value, - gpointer v_object); -void value_take_transaction_controller (GValue* value, - gpointer v_object); -gpointer value_get_transaction_controller (const GValue* value); -GType transaction_controller_get_type (void) G_GNUC_CONST; -#define VIDEO_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionPrivate)) -GType video_source_collection_state_get_type (void) G_GNUC_CONST; -gint uint64_compare (guint64* a, - guint64* b); -static gint _uint64_compare_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -static guint64* _uint64_dup (guint64* self); -gint64 video_source_collection_get_video_key (DataSource* source); -static gint64 _video_source_collection_get_video_key_get_source_database_key (DataSource* source, - gpointer self); -MediaSourceCollection* media_source_collection_construct (GType object_type, - const gchar* name, - GetSourceDatabaseKey source_key_func, - void* source_key_func_target); -MediaSourceHoldingTank* media_source_collection_get_trashcan (MediaSourceCollection* self); -static void video_source_collection_on_trashcan_contents_altered (VideoSourceCollection* self, - GeeCollection* added, - GeeCollection* removed); -static void _video_source_collection_on_trashcan_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self); -MediaSourceHoldingTank* media_source_collection_get_offline_bin (MediaSourceCollection* self); -static void video_source_collection_on_offline_contents_altered (VideoSourceCollection* self, - GeeCollection* added, - GeeCollection* removed); -static void _video_source_collection_on_offline_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self); -static MediaSourceHoldingTank* video_source_collection_real_create_trashcan (MediaSourceCollection* base); -gboolean video_source_collection_is_video_trashed (DataSource* source); -static gboolean _video_source_collection_is_video_trashed_source_holding_tank_check_to_keep (DataSource* source, - Alteration* alteration, - gpointer self); -MediaSourceHoldingTank* media_source_holding_tank_new (MediaSourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target); -MediaSourceHoldingTank* media_source_holding_tank_construct (GType object_type, - MediaSourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target); -static MediaSourceHoldingTank* video_source_collection_real_create_offline_bin (MediaSourceCollection* base); -gboolean video_source_collection_is_video_offline (DataSource* source); -static gboolean _video_source_collection_is_video_offline_source_holding_tank_check_to_keep (DataSource* source, - Alteration* alteration, - gpointer self); -static MediaMonitor* video_source_collection_real_create_media_monitor (MediaSourceCollection* base, - Workers* workers, - GCancellable* cancellable); -VideoMonitor* video_monitor_new (GCancellable* cancellable); -VideoMonitor* video_monitor_construct (GType object_type, - GCancellable* cancellable); -GType video_monitor_get_type (void) G_GNUC_CONST; -static gboolean video_source_collection_real_holds_type_of_source (SourceCollection* base, - DataSource* source); -static gchar* video_source_collection_real_get_typename (MediaSourceCollection* base); -static gboolean video_source_collection_real_is_file_recognized (MediaSourceCollection* base, - GFile* file); -static MediaSource* video_source_collection_real_fetch_by_numeric_id (MediaSourceCollection* base, - gint64 numeric_id); -Video* video_source_collection_fetch (VideoSourceCollection* self, - VideoID* video_id); -DataSource* database_source_collection_fetch_by_key (DatabaseSourceCollection* self, - gint64 key); -static GeeCollection* video_source_collection_real_get_event_source_ids (MediaSourceCollection* base, - EventID* event_id); -GeeArrayList* video_table_get_event_source_ids (VideoTable* self, - EventID* event_id); -Video* video_source_collection_get_state_by_file (VideoSourceCollection* self, - GFile* file, - VideoSourceCollectionState* state); -MediaSource* media_source_collection_fetch_by_master_file (MediaSourceCollection* self, - GFile* file); -MediaSource* media_source_holding_tank_fetch_by_master_file (MediaSourceHoldingTank* self, - GFile* file); -static void video_source_collection_compare_backing (VideoSourceCollection* self, - Video* video, - GFileInfo* info, - GeeCollection* matching_master); -guint64 media_source_get_filesize (MediaSource* self); -time_t media_source_get_timestamp (MediaSource* self); -void video_source_collection_fetch_by_matching_backing (VideoSourceCollection* self, - GFileInfo* info, - GeeCollection* matching_master); -GeeCollection* data_collection_get_all (DataCollection* self); -GeeCollection* media_source_collection_get_offline_bin_contents (MediaSourceCollection* self); -static void video_source_collection_real_notify_contents_altered (DataCollection* base, - GeeIterable* added, - GeeIterable* removed); -void data_collection_notify_contents_altered (DataCollection* self, - GeeIterable* added, - GeeIterable* removed); -void video_source_collection_get_basename_filesize_duplicate (VideoSourceCollection* self, - const gchar* basename, - guint64 filesize, - VideoID* result); -GFile* media_source_get_master_file (MediaSource* self); -gboolean video_source_collection_has_basename_filesize_duplicate (VideoSourceCollection* self, - const gchar* basename, - guint64 filesize); -gboolean video_id_is_valid (VideoID *self); -MediaSourceTransactionController* media_source_transaction_controller_new (MediaSourceCollection* sources); -MediaSourceTransactionController* media_source_transaction_controller_construct (GType object_type, - MediaSourceCollection* sources); -GType media_source_transaction_controller_get_type (void) G_GNUC_CONST; -static void video_source_collection_finalize (DataCollection * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - -static const gchar* VIDEO_READER_METADATA_ONLY_FILE_EXTENSIONS[4] = {"bdm", "bdmv", "cpi", "mpl"}; - -GQuark -video_error_quark (void) -{ - return g_quark_from_static_string ("video_error-quark"); -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 30 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return self ? g_object_ref (self) : NULL; -#line 1840 "VideoSupport.c" -} - - -static gpointer -_thumbnails_ref0 (gpointer self) -{ -#line 33 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return self ? thumbnails_ref (self) : NULL; -#line 1849 "VideoSupport.c" -} - - -VideoImportParams* -video_import_params_construct (GType object_type, - GFile* file, - ImportID* import_id, - const gchar* md5, - Thumbnails* thumbnails, - time_t exposure_time_override) -{ - VideoImportParams* self = NULL; - GFile* _tmp0_; - ImportID _tmp1_; - gchar* _tmp2_; - Thumbnails* _tmp3_; -#line 28 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 28 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (import_id != NULL, NULL); -#line 28 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail ((thumbnails == NULL) || IS_THUMBNAILS (thumbnails), NULL); -#line 28 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = (VideoImportParams*) g_type_create_instance (object_type); -#line 30 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = _g_object_ref0 (file); -#line 30 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (self->file); -#line 30 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->file = _tmp0_; -#line 31 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = *import_id; -#line 31 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->import_id = _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = g_strdup (md5); -#line 32 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (self->md5); -#line 32 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->md5 = _tmp2_; -#line 33 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _thumbnails_ref0 (thumbnails); -#line 33 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _thumbnails_unref0 (self->thumbnails); -#line 33 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->thumbnails = _tmp3_; -#line 34 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->exposure_time_override = exposure_time_override; -#line 28 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return self; -#line 1900 "VideoSupport.c" -} - - -VideoImportParams* -video_import_params_new (GFile* file, - ImportID* import_id, - const gchar* md5, - Thumbnails* thumbnails, - time_t exposure_time_override) -{ -#line 28 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return video_import_params_construct (TYPE_VIDEO_IMPORT_PARAMS, file, import_id, md5, thumbnails, exposure_time_override); -#line 1913 "VideoSupport.c" -} - - -static void -value_video_import_params_init (GValue* value) -{ -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = NULL; -#line 1922 "VideoSupport.c" -} - - -static void -value_video_import_params_free_value (GValue* value) -{ -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (value->data[0].v_pointer) { -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_import_params_unref (value->data[0].v_pointer); -#line 1933 "VideoSupport.c" - } -} - - -static void -value_video_import_params_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (src_value->data[0].v_pointer) { -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - dest_value->data[0].v_pointer = video_import_params_ref (src_value->data[0].v_pointer); -#line 1946 "VideoSupport.c" - } else { -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - dest_value->data[0].v_pointer = NULL; -#line 1950 "VideoSupport.c" - } -} - - -static gpointer -value_video_import_params_peek_pointer (const GValue* value) -{ -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return value->data[0].v_pointer; -#line 1960 "VideoSupport.c" -} - - -static gchar* -value_video_import_params_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (collect_values[0].v_pointer) { -#line 1972 "VideoSupport.c" - VideoImportParams * object; - object = collect_values[0].v_pointer; -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (object->parent_instance.g_class == NULL) { -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1979 "VideoSupport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1983 "VideoSupport.c" - } -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = video_import_params_ref (object); -#line 1987 "VideoSupport.c" - } else { -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = NULL; -#line 1991 "VideoSupport.c" - } -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 1995 "VideoSupport.c" -} - - -static gchar* -value_video_import_params_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - VideoImportParams ** object_p; - object_p = collect_values[0].v_pointer; -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!object_p) { -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2011 "VideoSupport.c" - } -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!value->data[0].v_pointer) { -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *object_p = NULL; -#line 2017 "VideoSupport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *object_p = value->data[0].v_pointer; -#line 2021 "VideoSupport.c" - } else { -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *object_p = video_import_params_ref (value->data[0].v_pointer); -#line 2025 "VideoSupport.c" - } -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 2029 "VideoSupport.c" -} - - -GParamSpec* -param_spec_video_import_params (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecVideoImportParams* spec; -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_VIDEO_IMPORT_PARAMS), NULL); -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return G_PARAM_SPEC (spec); -#line 2049 "VideoSupport.c" -} - - -gpointer -value_get_video_import_params (const GValue* value) -{ -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_IMPORT_PARAMS), NULL); -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return value->data[0].v_pointer; -#line 2060 "VideoSupport.c" -} - - -void -value_set_video_import_params (GValue* value, - gpointer v_object) -{ - VideoImportParams * old; -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_IMPORT_PARAMS)); -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - old = value->data[0].v_pointer; -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (v_object) { -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIDEO_IMPORT_PARAMS)); -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = v_object; -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_import_params_ref (value->data[0].v_pointer); -#line 2083 "VideoSupport.c" - } else { -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = NULL; -#line 2087 "VideoSupport.c" - } -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (old) { -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_import_params_unref (old); -#line 2093 "VideoSupport.c" - } -} - - -void -value_take_video_import_params (GValue* value, - gpointer v_object) -{ - VideoImportParams * old; -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_IMPORT_PARAMS)); -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - old = value->data[0].v_pointer; -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (v_object) { -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIDEO_IMPORT_PARAMS)); -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = v_object; -#line 2115 "VideoSupport.c" - } else { -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = NULL; -#line 2119 "VideoSupport.c" - } -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (old) { -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_import_params_unref (old); -#line 2125 "VideoSupport.c" - } -} - - -static void -video_import_params_class_init (VideoImportParamsClass * klass) -{ -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_import_params_parent_class = g_type_class_peek_parent (klass); -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((VideoImportParamsClass *) klass)->finalize = video_import_params_finalize; -#line 2137 "VideoSupport.c" -} - - -static void -video_import_params_instance_init (VideoImportParams * self) -{ - VideoRow* _tmp0_; -#line 18 "/home/jens/Source/shotwell/src/VideoSupport.vala" - import_id_init (&self->import_id, IMPORT_ID_INVALID); -#line 26 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = video_row_new (); -#line 26 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->row = _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->ref_count = 1; -#line 2153 "VideoSupport.c" -} - - -static void -video_import_params_finalize (VideoImportParams * obj) -{ - VideoImportParams * self; -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_IMPORT_PARAMS, VideoImportParams); -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_signal_handlers_destroy (self); -#line 17 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (self->file); -#line 19 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (self->md5); -#line 23 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _thumbnails_unref0 (self->thumbnails); -#line 26 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_row_unref0 (self->row); -#line 2173 "VideoSupport.c" -} - - -GType -video_import_params_get_type (void) -{ - static volatile gsize video_import_params_type_id__volatile = 0; - if (g_once_init_enter (&video_import_params_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_video_import_params_init, value_video_import_params_free_value, value_video_import_params_copy_value, value_video_import_params_peek_pointer, "p", value_video_import_params_collect_value, "p", value_video_import_params_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (VideoImportParamsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_import_params_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoImportParams), 0, (GInstanceInitFunc) video_import_params_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType video_import_params_type_id; - video_import_params_type_id = g_type_register_fundamental (g_type_fundamental_next (), "VideoImportParams", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&video_import_params_type_id__volatile, video_import_params_type_id); - } - return video_import_params_type_id__volatile; -} - - -gpointer -video_import_params_ref (gpointer instance) -{ - VideoImportParams * self; - self = instance; -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_atomic_int_inc (&self->ref_count); -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return instance; -#line 2202 "VideoSupport.c" -} - - -void -video_import_params_unref (gpointer instance) -{ - VideoImportParams * self; - self = instance; -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - VIDEO_IMPORT_PARAMS_GET_CLASS (self)->finalize (self); -#line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2217 "VideoSupport.c" - } -} - - -VideoReader* -video_reader_construct (GType object_type, - GFile* file) -{ - VideoReader* self = NULL; - GFile* _tmp0_; -#line 51 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 51 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = (VideoReader*) g_type_create_instance (object_type); -#line 52 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = _g_object_ref0 (file); -#line 52 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (self->priv->file); -#line 52 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv->file = _tmp0_; -#line 51 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return self; -#line 2240 "VideoSupport.c" -} - - -VideoReader* -video_reader_new (GFile* file) -{ -#line 51 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return video_reader_construct (TYPE_VIDEO_READER, file); -#line 2249 "VideoSupport.c" -} - - -gboolean -video_reader_is_supported_video_file (GFile* file) -{ - gboolean result = FALSE; - gchar* mime_type = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - guchar* _tmp2_; - guchar* _tmp3_; - gint _tmp3__length1; - gchar* _tmp4_; - gchar* _tmp5_; - gboolean _tmp6_ = FALSE; - const gchar* _tmp7_; - gchar* _tmp18_; - gchar* _tmp19_; - gboolean _tmp20_; - GError * _inner_error_ = NULL; -#line 55 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = g_file_get_basename (file); -#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_; -#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = g_new0 (guchar, 0); -#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_; -#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3__length1 = 0; -#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = g_content_type_guess (_tmp1_, _tmp3_, (gsize) 0, NULL); -#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = _tmp4_; -#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = (g_free (_tmp3_), NULL); -#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp1_); -#line 56 "/home/jens/Source/shotwell/src/VideoSupport.vala" - mime_type = _tmp5_; -#line 58 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = mime_type; -#line 58 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (g_strcmp0 (_tmp7_, "audio/ogg") == 0) { -#line 58 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = g_file_has_uri_scheme (file, "file"); -#line 2299 "VideoSupport.c" - } else { -#line 58 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = FALSE; -#line 2303 "VideoSupport.c" - } -#line 58 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp6_) { -#line 2307 "VideoSupport.c" - { - GFileInfo* info = NULL; - GFileInfo* _tmp8_; - gchar* content_type = NULL; - GFileInfo* _tmp9_; - const gchar* _tmp10_; - gchar* _tmp11_; - gboolean _tmp12_ = FALSE; - const gchar* _tmp13_; -#line 60 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = g_file_query_info (file, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_); -#line 60 "/home/jens/Source/shotwell/src/VideoSupport.vala" - info = _tmp8_; -#line 60 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2323 "VideoSupport.c" - goto __catch503_g_error; - } -#line 62 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = info; -#line 62 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = g_file_info_get_content_type (_tmp9_); -#line 62 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = g_strdup (_tmp10_); -#line 62 "/home/jens/Source/shotwell/src/VideoSupport.vala" - content_type = _tmp11_; -#line 63 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = content_type; -#line 63 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp13_ != NULL) { -#line 2338 "VideoSupport.c" - const gchar* _tmp14_; -#line 63 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp14_ = content_type; -#line 63 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = g_str_has_prefix (_tmp14_, "video/"); -#line 2344 "VideoSupport.c" - } else { -#line 63 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = FALSE; -#line 2348 "VideoSupport.c" - } -#line 63 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp12_) { -#line 64 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = TRUE; -#line 64 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (content_type); -#line 64 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (info); -#line 64 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (mime_type); -#line 64 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 2362 "VideoSupport.c" - } -#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (content_type); -#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (info); -#line 2368 "VideoSupport.c" - } - goto __finally503; - __catch503_g_error: - { - GError* _error_ = NULL; - GError* _tmp15_; - const gchar* _tmp16_; -#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _error_ = _inner_error_; -#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 67 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = _error_; -#line 67 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp16_ = _tmp15_->message; -#line 67 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_debug ("VideoSupport.vala:67: Failed to query content type: %s", _tmp16_); -#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (_error_); -#line 2388 "VideoSupport.c" - } - __finally503: -#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2393 "VideoSupport.c" - gboolean _tmp17_ = FALSE; -#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (mime_type); -#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp17_; -#line 2403 "VideoSupport.c" - } - } -#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp18_ = g_file_get_basename (file); -#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp19_ = _tmp18_; -#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp20_ = video_reader_is_supported_video_filename (_tmp19_); -#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp19_); -#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp20_; -#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (mime_type); -#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 2420 "VideoSupport.c" -} - - -gboolean -video_reader_is_supported_video_filename (const gchar* filename) -{ - gboolean result = FALSE; - gchar* mime_type = NULL; - guchar* _tmp0_; - guchar* _tmp1_; - gint _tmp1__length1; - gchar* _tmp2_; - gboolean _tmp3_ = FALSE; - const gchar* _tmp4_; -#line 74 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (filename != NULL, FALSE); -#line 76 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = g_new0 (guchar, 0); -#line 76 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_; -#line 76 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1__length1 = 0; -#line 76 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = g_content_type_guess (filename, _tmp1_, (gsize) 0, NULL); -#line 76 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (mime_type); -#line 76 "/home/jens/Source/shotwell/src/VideoSupport.vala" - mime_type = _tmp2_; -#line 76 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = (g_free (_tmp1_), NULL); -#line 78 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = mime_type; -#line 78 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (g_str_has_prefix (_tmp4_, "video/")) { -#line 78 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = TRUE; -#line 2457 "VideoSupport.c" - } else { - const gchar* _tmp5_; -#line 78 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = mime_type; -#line 78 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = g_str_has_suffix (_tmp5_, "mp4"); -#line 2464 "VideoSupport.c" - } -#line 78 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp3_) { -#line 2468 "VideoSupport.c" - gchar* extension = NULL; - gchar* name = NULL; - gchar* _tmp6_ = NULL; - gchar* _tmp7_ = NULL; - const gchar* _tmp8_; -#line 79 "/home/jens/Source/shotwell/src/VideoSupport.vala" - extension = NULL; -#line 80 "/home/jens/Source/shotwell/src/VideoSupport.vala" - name = NULL; -#line 81 "/home/jens/Source/shotwell/src/VideoSupport.vala" - disassemble_filename (filename, &_tmp6_, &_tmp7_); -#line 81 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (name); -#line 81 "/home/jens/Source/shotwell/src/VideoSupport.vala" - name = _tmp6_; -#line 81 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (extension); -#line 81 "/home/jens/Source/shotwell/src/VideoSupport.vala" - extension = _tmp7_; -#line 83 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = extension; -#line 83 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp8_ == NULL) { -#line 84 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = TRUE; -#line 84 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (name); -#line 84 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (extension); -#line 84 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (mime_type); -#line 84 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 2502 "VideoSupport.c" - } - { - const gchar** s_collection = NULL; - gint s_collection_length1 = 0; - gint _s_collection_size_ = 0; - gint s_it = 0; -#line 86 "/home/jens/Source/shotwell/src/VideoSupport.vala" - s_collection = VIDEO_READER_METADATA_ONLY_FILE_EXTENSIONS; -#line 86 "/home/jens/Source/shotwell/src/VideoSupport.vala" - s_collection_length1 = G_N_ELEMENTS (VIDEO_READER_METADATA_ONLY_FILE_EXTENSIONS); -#line 86 "/home/jens/Source/shotwell/src/VideoSupport.vala" - for (s_it = 0; s_it < G_N_ELEMENTS (VIDEO_READER_METADATA_ONLY_FILE_EXTENSIONS); s_it = s_it + 1) { -#line 2515 "VideoSupport.c" - gchar* _tmp9_; - gchar* s = NULL; -#line 86 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = g_strdup (s_collection[s_it]); -#line 86 "/home/jens/Source/shotwell/src/VideoSupport.vala" - s = _tmp9_; -#line 2522 "VideoSupport.c" - { - const gchar* _tmp10_; - const gchar* _tmp11_; -#line 87 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = s; -#line 87 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = extension; -#line 87 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (utf8_ci_compare (_tmp10_, _tmp11_) == 0) { -#line 88 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = FALSE; -#line 88 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (s); -#line 88 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (name); -#line 88 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (extension); -#line 88 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (mime_type); -#line 88 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 2544 "VideoSupport.c" - } -#line 86 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (s); -#line 2548 "VideoSupport.c" - } - } - } -#line 91 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = TRUE; -#line 91 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (name); -#line 91 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (extension); -#line 91 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (mime_type); -#line 91 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 2562 "VideoSupport.c" - } else { - const gchar* _tmp12_; -#line 93 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = mime_type; -#line 93 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_debug ("VideoSupport.vala:93: Skipping %s, unsupported mime type %s", filename, _tmp12_); -#line 94 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = FALSE; -#line 94 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (mime_type); -#line 94 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 2575 "VideoSupport.c" - } -#line 74 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (mime_type); -#line 2579 "VideoSupport.c" -} - - -ImportResult -video_reader_prepare_for_import (VideoImportParams* params) -{ - ImportResult result = 0; - GFile* file = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - GFileInfo* info = NULL; - GFileInfo* _tmp6_; - GFile* _tmp7_; - GTimeVal timestamp = {0}; - GFileInfo* _tmp11_; - GTimeVal _tmp12_ = {0}; - const gchar* _tmp13_; - time_t exposure_time = 0; - time_t _tmp14_; - gchar* title = NULL; - gchar* _tmp15_; - gchar* comment = NULL; - gchar* _tmp16_; - VideoReader* reader = NULL; - GFile* _tmp17_; - VideoReader* _tmp18_; - gboolean is_interpretable = FALSE; - gdouble clip_duration = 0.0; - GdkPixbuf* preview_frame = NULL; - VideoReader* _tmp19_; - GdkPixbuf* _tmp20_; - time_t _tmp45_; - VideoRow* _tmp51_; - VideoRow* _tmp52_; - GFile* _tmp53_; - gchar* _tmp54_; - VideoRow* _tmp55_; - GFileInfo* _tmp56_; - VideoRow* _tmp57_; - GTimeVal _tmp58_; - glong _tmp59_; - VideoRow* _tmp60_; - GdkPixbuf* _tmp61_; - gint _tmp62_; - gint _tmp63_; - VideoRow* _tmp64_; - GdkPixbuf* _tmp65_; - gint _tmp66_; - gint _tmp67_; - VideoRow* _tmp68_; - gdouble _tmp69_; - VideoRow* _tmp70_; - gboolean _tmp71_; - VideoRow* _tmp72_; - time_t _tmp73_; - VideoRow* _tmp74_; - ImportID _tmp75_; - VideoRow* _tmp76_; - VideoRow* _tmp77_; - const gchar* _tmp78_; - gchar* _tmp79_; - VideoRow* _tmp80_; - VideoRow* _tmp81_; - const gchar* _tmp82_; - gchar* _tmp83_; - VideoRow* _tmp84_; - const gchar* _tmp85_; - gchar* _tmp86_; - VideoRow* _tmp87_; - gchar* _tmp88_; - VideoRow* _tmp89_; - VideoRow* _tmp90_; - Thumbnails* _tmp91_; - GError * _inner_error_ = NULL; -#line 98 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO_IMPORT_PARAMS (params), 0); -#line 102 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = params->file; -#line 102 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 102 "/home/jens/Source/shotwell/src/VideoSupport.vala" - file = _tmp1_; -#line 104 "/home/jens/Source/shotwell/src/VideoSupport.vala" - info = NULL; -#line 2664 "VideoSupport.c" - { - GFileInfo* _tmp2_ = NULL; - GFile* _tmp3_; - GFileInfo* _tmp4_; - GFileInfo* _tmp5_; -#line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = file; -#line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = g_file_query_info (_tmp3_, DIRECTORY_MONITOR_SUPPLIED_ATTRIBUTES, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_); -#line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp4_; -#line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2678 "VideoSupport.c" - goto __catch504_g_error; - } -#line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = _tmp2_; -#line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = NULL; -#line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (info); -#line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala" - info = _tmp5_; -#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp2_); -#line 2691 "VideoSupport.c" - } - goto __finally504; - __catch504_g_error: - { - GError* err = NULL; -#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala" - err = _inner_error_; -#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 109 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = IMPORT_RESULT_FILE_ERROR; -#line 109 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (err); -#line 109 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (info); -#line 109 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (file); -#line 109 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 2711 "VideoSupport.c" - } - __finally504: -#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (info); -#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (file); -#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return 0; -#line 2726 "VideoSupport.c" - } -#line 112 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = info; -#line 112 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (g_file_info_get_file_type (_tmp6_) != G_FILE_TYPE_REGULAR) { -#line 113 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = IMPORT_RESULT_NOT_A_FILE; -#line 113 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (info); -#line 113 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (file); -#line 113 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 2740 "VideoSupport.c" - } -#line 115 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = file; -#line 115 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!video_reader_is_supported_video_file (_tmp7_)) { -#line 2746 "VideoSupport.c" - GFile* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 116 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = file; -#line 116 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = g_file_get_path (_tmp8_); -#line 116 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = _tmp9_; -#line 116 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_message ("Not importing %s: file is marked as a video file but doesn't have a" "supported extension", _tmp10_); -#line 116 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp10_); -#line 119 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = IMPORT_RESULT_UNSUPPORTED_FORMAT; -#line 119 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (info); -#line 119 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (file); -#line 119 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 2768 "VideoSupport.c" - } -#line 122 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = info; -#line 122 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_file_info_get_modification_time (_tmp11_, &_tmp12_); -#line 122 "/home/jens/Source/shotwell/src/VideoSupport.vala" - timestamp = _tmp12_; -#line 125 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = params->md5; -#line 125 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _vala_assert (_tmp13_ != NULL, "params.md5 != null"); -#line 127 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp14_ = params->exposure_time_override; -#line 127 "/home/jens/Source/shotwell/src/VideoSupport.vala" - exposure_time = _tmp14_; -#line 128 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = g_strdup (""); -#line 128 "/home/jens/Source/shotwell/src/VideoSupport.vala" - title = _tmp15_; -#line 129 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp16_ = g_strdup (""); -#line 129 "/home/jens/Source/shotwell/src/VideoSupport.vala" - comment = _tmp16_; -#line 131 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp17_ = file; -#line 131 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp18_ = video_reader_new (_tmp17_); -#line 131 "/home/jens/Source/shotwell/src/VideoSupport.vala" - reader = _tmp18_; -#line 132 "/home/jens/Source/shotwell/src/VideoSupport.vala" - is_interpretable = TRUE; -#line 133 "/home/jens/Source/shotwell/src/VideoSupport.vala" - clip_duration = 0.0; -#line 134 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp19_ = reader; -#line 134 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp20_ = video_reader_read_preview_frame (_tmp19_); -#line 134 "/home/jens/Source/shotwell/src/VideoSupport.vala" - preview_frame = _tmp20_; -#line 2808 "VideoSupport.c" - { - gdouble _tmp21_ = 0.0; - VideoReader* _tmp22_; -#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp22_ = reader; -#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp21_ = video_reader_read_clip_duration (_tmp22_, &_inner_error_); -#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == VIDEO_ERROR) { -#line 2820 "VideoSupport.c" - goto __catch505_video_error; - } -#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (preview_frame); -#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_reader_unref0 (reader); -#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (comment); -#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (title); -#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (info); -#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (file); -#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return 0; -#line 2841 "VideoSupport.c" - } -#line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" - clip_duration = _tmp21_; -#line 2845 "VideoSupport.c" - } - goto __finally505; - __catch505_video_error: - { - GError* err = NULL; - GError* _tmp23_; -#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala" - err = _inner_error_; -#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 138 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp23_ = err; -#line 138 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (g_error_matches (_tmp23_, VIDEO_ERROR, VIDEO_ERROR_FILE)) { -#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = IMPORT_RESULT_FILE_ERROR; -#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (err); -#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (preview_frame); -#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_reader_unref0 (reader); -#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (comment); -#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (title); -#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (info); -#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (file); -#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 2878 "VideoSupport.c" - } else { - GError* _tmp24_; -#line 140 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp24_ = err; -#line 140 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (g_error_matches (_tmp24_, VIDEO_ERROR, VIDEO_ERROR_CONTENTS)) { -#line 141 "/home/jens/Source/shotwell/src/VideoSupport.vala" - is_interpretable = FALSE; -#line 142 "/home/jens/Source/shotwell/src/VideoSupport.vala" - clip_duration = 0.0; -#line 2889 "VideoSupport.c" - } else { -#line 144 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_error ("VideoSupport.vala:144: can't prepare video for import: an unknown kind" \ -" of video error occurred"); -#line 2893 "VideoSupport.c" - } - } -#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (err); -#line 2898 "VideoSupport.c" - } - __finally505: -#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (preview_frame); -#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_reader_unref0 (reader); -#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (comment); -#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (title); -#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (info); -#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (file); -#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return 0; -#line 2921 "VideoSupport.c" - } - { - VideoMetadata* metadata = NULL; - VideoReader* _tmp25_; - VideoMetadata* _tmp26_; - MetadataDateTime* creation_date_time = NULL; - VideoMetadata* _tmp27_; - MetadataDateTime* _tmp28_; - gboolean _tmp29_ = FALSE; - MetadataDateTime* _tmp30_; - gchar* video_title = NULL; - VideoMetadata* _tmp33_; - gchar* _tmp34_; - gchar* video_comment = NULL; - VideoMetadata* _tmp35_; - gchar* _tmp36_; - const gchar* _tmp37_; - const gchar* _tmp40_; -#line 149 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp25_ = reader; -#line 149 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp26_ = video_reader_read_metadata (_tmp25_, &_inner_error_); -#line 149 "/home/jens/Source/shotwell/src/VideoSupport.vala" - metadata = _tmp26_; -#line 149 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2948 "VideoSupport.c" - goto __catch506_g_error; - } -#line 150 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp27_ = metadata; -#line 150 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp28_ = media_metadata_get_creation_date_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_MEDIA_METADATA, MediaMetadata)); -#line 150 "/home/jens/Source/shotwell/src/VideoSupport.vala" - creation_date_time = _tmp28_; -#line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp30_ = creation_date_time; -#line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp30_ != NULL) { -#line 2961 "VideoSupport.c" - MetadataDateTime* _tmp31_; -#line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp31_ = creation_date_time; -#line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp29_ = metadata_date_time_get_timestamp (_tmp31_) != ((time_t) 0); -#line 2967 "VideoSupport.c" - } else { -#line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp29_ = FALSE; -#line 2971 "VideoSupport.c" - } -#line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp29_) { -#line 2975 "VideoSupport.c" - MetadataDateTime* _tmp32_; -#line 153 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp32_ = creation_date_time; -#line 153 "/home/jens/Source/shotwell/src/VideoSupport.vala" - exposure_time = metadata_date_time_get_timestamp (_tmp32_); -#line 2981 "VideoSupport.c" - } -#line 155 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp33_ = metadata; -#line 155 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp34_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_MEDIA_METADATA, MediaMetadata)); -#line 155 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_title = _tmp34_; -#line 156 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp35_ = metadata; -#line 156 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp36_ = media_metadata_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_MEDIA_METADATA, MediaMetadata)); -#line 156 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_comment = _tmp36_; -#line 157 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp37_ = video_title; -#line 157 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp37_ != NULL) { -#line 2999 "VideoSupport.c" - const gchar* _tmp38_; - gchar* _tmp39_; -#line 158 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp38_ = video_title; -#line 158 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp39_ = g_strdup (_tmp38_); -#line 158 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (title); -#line 158 "/home/jens/Source/shotwell/src/VideoSupport.vala" - title = _tmp39_; -#line 3010 "VideoSupport.c" - } -#line 159 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp40_ = video_comment; -#line 159 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp40_ != NULL) { -#line 3016 "VideoSupport.c" - const gchar* _tmp41_; - gchar* _tmp42_; -#line 160 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp41_ = video_comment; -#line 160 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp42_ = g_strdup (_tmp41_); -#line 160 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (comment); -#line 160 "/home/jens/Source/shotwell/src/VideoSupport.vala" - comment = _tmp42_; -#line 3027 "VideoSupport.c" - } -#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (video_comment); -#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (video_title); -#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _metadata_date_time_unref0 (creation_date_time); -#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _media_metadata_unref0 (metadata); -#line 3037 "VideoSupport.c" - } - goto __finally506; - __catch506_g_error: - { - GError* err = NULL; - GError* _tmp43_; - const gchar* _tmp44_; -#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - err = _inner_error_; -#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 162 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp43_ = err; -#line 162 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp44_ = _tmp43_->message; -#line 162 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_warning ("VideoSupport.vala:162: Unable to read video metadata: %s", _tmp44_); -#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (err); -#line 3057 "VideoSupport.c" - } - __finally506: -#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (preview_frame); -#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_reader_unref0 (reader); -#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (comment); -#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (title); -#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (info); -#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (file); -#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return 0; -#line 3080 "VideoSupport.c" - } -#line 165 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp45_ = exposure_time; -#line 165 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp45_ == ((time_t) 0)) { -#line 3086 "VideoSupport.c" - gint64 _tmp46_ = 0LL; - VideoReader* _tmp47_; - GDateTime* _tmp48_; -#line 167 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp47_ = reader; -#line 167 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp48_ = _tmp47_->priv->_timestamp; -#line 167 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp48_ != NULL) { -#line 3096 "VideoSupport.c" - VideoReader* _tmp49_; - GDateTime* _tmp50_; -#line 168 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp49_ = reader; -#line 168 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp50_ = _tmp49_->priv->_timestamp; -#line 168 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp46_ = g_date_time_to_unix (_tmp50_); -#line 3105 "VideoSupport.c" - } else { -#line 168 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp46_ = (gint64) 0; -#line 3109 "VideoSupport.c" - } -#line 167 "/home/jens/Source/shotwell/src/VideoSupport.vala" - exposure_time = (time_t) _tmp46_; -#line 3113 "VideoSupport.c" - } -#line 171 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp51_ = params->row; -#line 171 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_id_init (&_tmp51_->video_id, VIDEO_ID_INVALID); -#line 172 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp52_ = params->row; -#line 172 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp53_ = file; -#line 172 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp54_ = g_file_get_path (_tmp53_); -#line 172 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp52_->filepath); -#line 172 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp52_->filepath = _tmp54_; -#line 173 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp55_ = params->row; -#line 173 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp56_ = info; -#line 173 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp55_->filesize = g_file_info_get_size (_tmp56_); -#line 174 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp57_ = params->row; -#line 174 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp58_ = timestamp; -#line 174 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp59_ = _tmp58_.tv_sec; -#line 174 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp57_->timestamp = (time_t) _tmp59_; -#line 175 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp60_ = params->row; -#line 175 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp61_ = preview_frame; -#line 175 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp62_ = gdk_pixbuf_get_width (_tmp61_); -#line 175 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp63_ = _tmp62_; -#line 175 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp60_->width = _tmp63_; -#line 176 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp64_ = params->row; -#line 176 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp65_ = preview_frame; -#line 176 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp66_ = gdk_pixbuf_get_height (_tmp65_); -#line 176 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp67_ = _tmp66_; -#line 176 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp64_->height = _tmp67_; -#line 177 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp68_ = params->row; -#line 177 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp69_ = clip_duration; -#line 177 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp68_->clip_duration = _tmp69_; -#line 178 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp70_ = params->row; -#line 178 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp71_ = is_interpretable; -#line 178 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp70_->is_interpretable = _tmp71_; -#line 179 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp72_ = params->row; -#line 179 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp73_ = exposure_time; -#line 179 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp72_->exposure_time = _tmp73_; -#line 180 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp74_ = params->row; -#line 180 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp75_ = params->import_id; -#line 180 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp74_->import_id = _tmp75_; -#line 181 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp76_ = params->row; -#line 181 "/home/jens/Source/shotwell/src/VideoSupport.vala" - event_id_init (&_tmp76_->event_id, EVENT_ID_INVALID); -#line 182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp77_ = params->row; -#line 182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp78_ = params->md5; -#line 182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp79_ = g_strdup (_tmp78_); -#line 182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp77_->md5); -#line 182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp77_->md5 = _tmp79_; -#line 183 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp80_ = params->row; -#line 183 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp80_->time_created = (time_t) 0; -#line 184 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp81_ = params->row; -#line 184 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp82_ = title; -#line 184 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp83_ = g_strdup (_tmp82_); -#line 184 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp81_->title); -#line 184 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp81_->title = _tmp83_; -#line 185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp84_ = params->row; -#line 185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp85_ = comment; -#line 185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp86_ = g_strdup (_tmp85_); -#line 185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp84_->comment); -#line 185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp84_->comment = _tmp86_; -#line 186 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp87_ = params->row; -#line 186 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp88_ = g_strdup (""); -#line 186 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp87_->backlinks); -#line 186 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp87_->backlinks = _tmp88_; -#line 187 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp89_ = params->row; -#line 187 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp89_->time_reimported = (time_t) 0; -#line 188 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp90_ = params->row; -#line 188 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp90_->flags = (guint64) 0; -#line 190 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp91_ = params->thumbnails; -#line 190 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp91_ != NULL) { -#line 3245 "VideoSupport.c" - Thumbnails* _tmp92_; - Thumbnails* _tmp93_; - GdkPixbuf* _tmp94_; -#line 191 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp92_ = thumbnails_new (); -#line 191 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _thumbnails_unref0 (params->thumbnails); -#line 191 "/home/jens/Source/shotwell/src/VideoSupport.vala" - params->thumbnails = _tmp92_; -#line 192 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp93_ = params->thumbnails; -#line 192 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp94_ = preview_frame; -#line 192 "/home/jens/Source/shotwell/src/VideoSupport.vala" - thumbnail_cache_generate_for_video_frame (_tmp93_, _tmp94_); -#line 3261 "VideoSupport.c" - } -#line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = IMPORT_RESULT_SUCCESS; -#line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (preview_frame); -#line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_reader_unref0 (reader); -#line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (comment); -#line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (title); -#line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (info); -#line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (file); -#line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 3279 "VideoSupport.c" -} - - -static GDate* -_g_date_dup (GDate* self) -{ - GDate* dup; -#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - dup = g_new0 (GDate, 1); -#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - memcpy (dup, self, sizeof (GDate)); -#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return dup; -#line 3293 "VideoSupport.c" -} - - -static gpointer -__g_date_dup0 (gpointer self) -{ -#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return self ? _g_date_dup (self) : NULL; -#line 3302 "VideoSupport.c" -} - - -static void -video_reader_read_internal (VideoReader* self, - GError** error) -{ - GError * _inner_error_ = NULL; -#line 201 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (IS_VIDEO_READER (self)); -#line 202 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!video_reader_does_file_exist (self)) { -#line 3315 "VideoSupport.c" - GFile* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - GError* _tmp5_; - GError* _tmp6_; -#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->file; -#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = g_file_get_path (_tmp0_); -#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_; -#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = g_strdup_printf ("video file '%s' does not exist or is inaccessible", _tmp2_); -#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = _tmp3_; -#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = g_error_new_literal (VIDEO_ERROR, VIDEO_ERROR_FILE, _tmp4_); -#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = _tmp5_; -#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp4_); -#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp2_); -#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = _tmp6_; -#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == VIDEO_ERROR) { -#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_propagate_error (error, _inner_error_); -#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 3349 "VideoSupport.c" - } else { -#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 3357 "VideoSupport.c" - } - } - { - GstDiscoverer* d = NULL; - GstDiscoverer* _tmp7_; - GstDiscovererInfo* info = NULL; - GstDiscoverer* _tmp8_; - GFile* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - GstDiscovererInfo* _tmp12_; - GstDiscovererInfo* _tmp13_; - GstDiscovererInfo* _tmp14_; - GDate* video_date = NULL; - gboolean _tmp15_ = FALSE; - GstDiscovererInfo* _tmp16_; - GstTagList* _tmp17_; -#line 207 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = gst_discoverer_new ((GstClockTime) (GST_SECOND * 5), &_inner_error_); -#line 207 "/home/jens/Source/shotwell/src/VideoSupport.vala" - d = _tmp7_; -#line 207 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3381 "VideoSupport.c" - goto __catch507_g_error; - } -#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = d; -#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = self->priv->file; -#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = g_file_get_uri (_tmp9_); -#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = _tmp10_; -#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = gst_discoverer_discover_uri (_tmp8_, _tmp11_, &_inner_error_); -#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = _tmp12_; -#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp11_); -#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala" - info = _tmp13_; -#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (d); -#line 3404 "VideoSupport.c" - goto __catch507_g_error; - } -#line 210 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp14_ = info; -#line 210 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv->clip_duration = ((gdouble) gst_discoverer_info_get_duration (_tmp14_)) / 1000000000.0; -#line 215 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_date = NULL; -#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp16_ = info; -#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp17_ = gst_discoverer_info_get_tags (_tmp16_); -#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp17_ != NULL) { -#line 3419 "VideoSupport.c" - GstDiscovererInfo* _tmp18_; - GstTagList* _tmp19_; - GDate _tmp20_ = {0}; - gboolean _tmp21_; - GDate _tmp22_; - GDate* _tmp23_; -#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp18_ = info; -#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp19_ = gst_discoverer_info_get_tags (_tmp18_); -#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp21_ = gst_tag_list_get_date (_tmp19_, GST_TAG_DATE, &_tmp20_); -#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (video_date); -#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp22_ = _tmp20_; -#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp23_ = __g_date_dup0 (&_tmp22_); -#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_date = _tmp23_; -#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = _tmp21_; -#line 3442 "VideoSupport.c" - } else { -#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = FALSE; -#line 3446 "VideoSupport.c" - } -#line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp15_) { -#line 3450 "VideoSupport.c" - GDate* _tmp24_; -#line 218 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp24_ = video_date; -#line 218 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp24_ != NULL) { -#line 3456 "VideoSupport.c" - GDate* _tmp25_; - GDate* _tmp26_; - GDate* _tmp27_; - GDateTime* _tmp28_; - GDateTime* _tmp29_; -#line 219 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp25_ = video_date; -#line 219 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp26_ = video_date; -#line 219 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp27_ = video_date; -#line 219 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp28_ = g_date_time_new_local ((gint) g_date_get_year (_tmp25_), (gint) g_date_get_month (_tmp26_), (gint) g_date_get_day (_tmp27_), 0, 0, (gdouble) 0); -#line 219 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp29_ = _tmp28_; -#line 219 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_reader_set_timestamp (self, _tmp29_); -#line 219 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_date_time_unref0 (_tmp29_); -#line 3476 "VideoSupport.c" - } - } -#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (video_date); -#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (info); -#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (d); -#line 3485 "VideoSupport.c" - } - goto __finally507; - __catch507_g_error: - { - GError* e = NULL; - GError* _tmp30_; - const gchar* _tmp31_; - GError* _tmp32_; - const gchar* _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; - GError* _tmp36_; - GError* _tmp37_; -#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" - e = _inner_error_; -#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 224 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp30_ = e; -#line 224 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp31_ = _tmp30_->message; -#line 224 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_debug ("VideoSupport.vala:224: Video read error: %s", _tmp31_); -#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp32_ = e; -#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp33_ = _tmp32_->message; -#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp34_ = g_strdup_printf ("GStreamer couldn't extract clip information: %s", _tmp33_); -#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp35_ = _tmp34_; -#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp36_ = g_error_new_literal (VIDEO_ERROR, VIDEO_ERROR_CONTENTS, _tmp35_); -#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp37_ = _tmp36_; -#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp35_); -#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = _tmp37_; -#line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (e); -#line 3527 "VideoSupport.c" - goto __finally507; - } - __finally507: -#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == VIDEO_ERROR) { -#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_propagate_error (error, _inner_error_); -#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 3539 "VideoSupport.c" - } else { -#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 3547 "VideoSupport.c" - } - } -} - - -static gboolean -video_reader_on_thumbnailer_timer (VideoReader* self) -{ - gboolean result = FALSE; - GPid _tmp0_; -#line 231 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO_READER (self), FALSE); -#line 232 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_debug ("VideoSupport.vala:232: Thumbnailer timer called"); -#line 233 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->thumbnailer_pid; -#line 233 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp0_ != ((GPid) 0)) { -#line 3566 "VideoSupport.c" - GPid _tmp1_; - GPid _tmp2_; -#line 234 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->thumbnailer_pid; -#line 234 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_debug ("VideoSupport.vala:234: Killing thumbnailer process: %d", (gint) _tmp1_); -#line 235 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = self->priv->thumbnailer_pid; -#line 235 "/home/jens/Source/shotwell/src/VideoSupport.vala" - kill ((pid_t) _tmp2_, SIGKILL); -#line 3577 "VideoSupport.c" - } -#line 237 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = FALSE; -#line 237 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 3583 "VideoSupport.c" -} - - -static gboolean -_video_reader_on_thumbnailer_timer_gsource_func (gpointer self) -{ - gboolean result; - result = video_reader_on_thumbnailer_timer ((VideoReader*) self); -#line 260 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 3594 "VideoSupport.c" -} - - -static GdkPixbuf* -video_reader_thumbnailer (VideoReader* self, - const gchar* video_file) -{ - GdkPixbuf* result = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar** argv = NULL; - GFile* _tmp4_; - GFile* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar** _tmp8_; - gchar** _tmp9_; - gint _tmp9__length1; - gint argv_length1; - gint _argv_size_; - gint child_stdout = 0; - GdkPixbuf* buf = NULL; - gint child_status = 0; - gint ret_waitpid = 0; - GPid _tmp26_; - gint _tmp27_ = 0; - pid_t _tmp28_; - gint _tmp29_; - GPid _tmp33_; - GError * _inner_error_ = NULL; -#line 242 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO_READER (self), NULL); -#line 242 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (video_file != NULL, NULL); -#line 244 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = app_dirs_get_thumbnailer_bin (); -#line 244 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_; -#line 244 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = g_file_get_path (_tmp1_); -#line 244 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_; -#line 244 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_debug ("VideoSupport.vala:244: Launching thumbnailer process: %s", _tmp3_); -#line 244 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp3_); -#line 244 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp1_); -#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = app_dirs_get_thumbnailer_bin (); -#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = _tmp4_; -#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = g_file_get_path (_tmp5_); -#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = g_strdup (video_file); -#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = g_new0 (gchar*, 2 + 1); -#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_[0] = _tmp6_; -#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_[1] = _tmp7_; -#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = _tmp8_; -#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9__length1 = 2; -#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp5_); -#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala" - argv = _tmp9_; -#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala" - argv_length1 = _tmp9__length1; -#line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _argv_size_ = argv_length1; -#line 3671 "VideoSupport.c" - { - gchar** _tmp10_; - gint _tmp10__length1; - GPid _tmp11_ = 0; - gint _tmp12_ = 0; - GPid _tmp13_; -#line 248 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = argv; -#line 248 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10__length1 = argv_length1; -#line 248 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_spawn_async_with_pipes (NULL, _tmp10_, NULL, G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD, NULL, NULL, &_tmp11_, NULL, &_tmp12_, NULL, &_inner_error_); -#line 248 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv->thumbnailer_pid = _tmp11_; -#line 248 "/home/jens/Source/shotwell/src/VideoSupport.vala" - child_stdout = _tmp12_; -#line 248 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3690 "VideoSupport.c" - goto __catch508_g_error; - } -#line 251 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = self->priv->thumbnailer_pid; -#line 251 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_debug ("VideoSupport.vala:251: Spawned thumbnailer, child pid: %d", (gint) _tmp13_); -#line 3697 "VideoSupport.c" - } - goto __finally508; - __catch508_g_error: - { - GError* e = NULL; - GError* _tmp14_; - const gchar* _tmp15_; - GPid _tmp16_; -#line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala" - e = _inner_error_; -#line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 253 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp14_ = e; -#line 253 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = _tmp14_->message; -#line 253 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_debug ("VideoSupport.vala:253: Error spawning process: %s", _tmp15_); -#line 254 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp16_ = self->priv->thumbnailer_pid; -#line 254 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp16_ != ((GPid) 0)) { -#line 3720 "VideoSupport.c" - GPid _tmp17_; -#line 255 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp17_ = self->priv->thumbnailer_pid; -#line 255 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_spawn_close_pid (_tmp17_); -#line 3726 "VideoSupport.c" - } -#line 256 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = NULL; -#line 256 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (e); -#line 256 "/home/jens/Source/shotwell/src/VideoSupport.vala" - argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL); -#line 256 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 3736 "VideoSupport.c" - } - __finally508: -#line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala" - argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL); -#line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 3749 "VideoSupport.c" - } -#line 260 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_timeout_add_full (G_PRIORITY_DEFAULT, VIDEO_READER_THUMBNAILER_TIMEOUT, _video_reader_on_thumbnailer_timer_gsource_func, video_reader_ref (self), video_reader_unref); -#line 263 "/home/jens/Source/shotwell/src/VideoSupport.vala" - buf = NULL; -#line 3755 "VideoSupport.c" - { - GUnixInputStream* unix_input = NULL; - gint _tmp18_; - GUnixInputStream* _tmp19_; - GdkPixbuf* _tmp20_ = NULL; - GUnixInputStream* _tmp21_; - GdkPixbuf* _tmp22_; - GdkPixbuf* _tmp23_; -#line 265 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp18_ = child_stdout; -#line 265 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp19_ = (GUnixInputStream*) g_unix_input_stream_new (_tmp18_, TRUE); -#line 265 "/home/jens/Source/shotwell/src/VideoSupport.vala" - unix_input = _tmp19_; -#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp21_ = unix_input; -#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp22_ = gdk_pixbuf_new_from_stream (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_); -#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp20_ = _tmp22_; -#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (unix_input); -#line 3780 "VideoSupport.c" - goto __catch509_g_error; - } -#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp23_ = _tmp20_; -#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp20_ = NULL; -#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (buf); -#line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala" - buf = _tmp23_; -#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp20_); -#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (unix_input); -#line 3795 "VideoSupport.c" - } - goto __finally509; - __catch509_g_error: - { - GError* e = NULL; - GError* _tmp24_; - const gchar* _tmp25_; -#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala" - e = _inner_error_; -#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 268 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp24_ = e; -#line 268 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp25_ = _tmp24_->message; -#line 268 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_debug ("VideoSupport.vala:268: Error creating pixbuf: %s", _tmp25_); -#line 269 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (buf); -#line 269 "/home/jens/Source/shotwell/src/VideoSupport.vala" - buf = NULL; -#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (e); -#line 3819 "VideoSupport.c" - } - __finally509: -#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (buf); -#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala" - argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL); -#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 3834 "VideoSupport.c" - } -#line 273 "/home/jens/Source/shotwell/src/VideoSupport.vala" - child_status = 0; -#line 274 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp26_ = self->priv->thumbnailer_pid; -#line 274 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp28_ = waitpid ((pid_t) _tmp26_, &_tmp27_, 0); -#line 274 "/home/jens/Source/shotwell/src/VideoSupport.vala" - child_status = _tmp27_; -#line 274 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ret_waitpid = (gint) _tmp28_; -#line 275 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp29_ = ret_waitpid; -#line 275 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp29_ < 0) { -#line 3850 "VideoSupport.c" - gint _tmp30_; -#line 276 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp30_ = ret_waitpid; -#line 276 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_debug ("VideoSupport.vala:276: waitpid returned error code: %d", _tmp30_); -#line 277 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (buf); -#line 277 "/home/jens/Source/shotwell/src/VideoSupport.vala" - buf = NULL; -#line 3860 "VideoSupport.c" - } else { - gint _tmp31_; -#line 278 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp31_ = child_status; -#line 278 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (0 != WEXITSTATUS (_tmp31_)) { -#line 3867 "VideoSupport.c" - gint _tmp32_; -#line 279 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp32_ = child_status; -#line 279 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_debug ("VideoSupport.vala:279: Thumbnailer exited with error code: %d", WEXITSTATUS (_tmp32_)); -#line 281 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (buf); -#line 281 "/home/jens/Source/shotwell/src/VideoSupport.vala" - buf = NULL; -#line 3877 "VideoSupport.c" - } - } -#line 284 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp33_ = self->priv->thumbnailer_pid; -#line 284 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_spawn_close_pid (_tmp33_); -#line 285 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv->thumbnailer_pid = (GPid) 0; -#line 286 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = buf; -#line 286 "/home/jens/Source/shotwell/src/VideoSupport.vala" - argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL); -#line 286 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 3892 "VideoSupport.c" -} - - -static gboolean -video_reader_does_file_exist (VideoReader* self) -{ - gboolean result = FALSE; - GFile* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gboolean _tmp3_; -#line 289 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO_READER (self), FALSE); -#line 290 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->file; -#line 290 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = g_file_get_path (_tmp0_); -#line 290 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_; -#line 290 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = g_file_test (_tmp2_, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR); -#line 290 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp2_); -#line 290 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp3_; -#line 290 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 3920 "VideoSupport.c" -} - - -GdkPixbuf* -video_reader_read_preview_frame (VideoReader* self) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_; - GFile* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - GdkPixbuf* _tmp6_; - GdkPixbuf* _tmp7_; - GdkPixbuf* _tmp9_; - GdkPixbuf* _tmp10_; -#line 293 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO_READER (self), NULL); -#line 294 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->preview_frame; -#line 294 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp0_ != NULL) { -#line 3942 "VideoSupport.c" - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; -#line 295 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->preview_frame; -#line 295 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 295 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp2_; -#line 295 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 3953 "VideoSupport.c" - } -#line 297 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!video_reader_does_file_exist (self)) { -#line 298 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = NULL; -#line 298 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 3961 "VideoSupport.c" - } -#line 301 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->file; -#line 301 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = g_file_get_path (_tmp3_); -#line 301 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = _tmp4_; -#line 301 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = video_reader_thumbnailer (self, _tmp5_); -#line 301 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (self->priv->preview_frame); -#line 301 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv->preview_frame = _tmp6_; -#line 301 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp5_); -#line 302 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = self->priv->preview_frame; -#line 302 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (NULL == _tmp7_) { -#line 3981 "VideoSupport.c" - GdkPixbuf* _tmp8_; -#line 303 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = resources_get_noninterpretable_badge_pixbuf (); -#line 303 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (self->priv->preview_frame); -#line 303 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv->preview_frame = _tmp8_; -#line 3989 "VideoSupport.c" - } -#line 305 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = self->priv->preview_frame; -#line 305 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = _g_object_ref0 (_tmp9_); -#line 305 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp10_; -#line 305 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 3999 "VideoSupport.c" -} - - -gdouble -video_reader_read_clip_duration (VideoReader* self, - GError** error) -{ - gdouble result = 0.0; - gdouble _tmp0_; - gdouble _tmp3_; - GError * _inner_error_ = NULL; -#line 308 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO_READER (self), 0.0); -#line 309 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->clip_duration; -#line 309 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp0_ == VIDEO_READER_UNKNOWN_CLIP_DURATION) { -#line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_reader_read_internal (self, &_inner_error_); -#line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == VIDEO_ERROR) { -#line 4023 "VideoSupport.c" - gdouble _tmp1_ = 0.0; -#line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_propagate_error (error, _inner_error_); -#line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp1_; -#line 4029 "VideoSupport.c" - } else { - gdouble _tmp2_ = 0.0; -#line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp2_; -#line 4038 "VideoSupport.c" - } - } - } -#line 312 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->clip_duration; -#line 312 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp3_; -#line 312 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 4048 "VideoSupport.c" -} - - -VideoMetadata* -video_reader_read_metadata (VideoReader* self, - GError** error) -{ - VideoMetadata* result = NULL; - VideoMetadata* metadata = NULL; - VideoMetadata* _tmp0_; - GFile* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GFile* _tmp4_; - GFile* _tmp5_; - GError * _inner_error_ = NULL; -#line 315 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO_READER (self), NULL); -#line 316 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = video_metadata_new (); -#line 316 "/home/jens/Source/shotwell/src/VideoSupport.vala" - metadata = _tmp0_; -#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->file; -#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = g_file_get_path (_tmp1_); -#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_; -#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = g_file_new_for_path (_tmp3_); -#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = _tmp4_; -#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala" - media_metadata_read_from_file (G_TYPE_CHECK_INSTANCE_CAST (metadata, TYPE_MEDIA_METADATA, MediaMetadata), _tmp5_, &_inner_error_); -#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp5_); -#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp3_); -#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_propagate_error (error, _inner_error_); -#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _media_metadata_unref0 (metadata); -#line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 4095 "VideoSupport.c" - } -#line 319 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = metadata; -#line 319 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 4101 "VideoSupport.c" -} - - -GDateTime* -video_reader_get_timestamp (VideoReader* self) -{ - GDateTime* result; - GDateTime* _tmp0_; -#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO_READER (self), NULL); -#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->_timestamp; -#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp0_; -#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 4118 "VideoSupport.c" -} - - -static gpointer -_g_date_time_ref0 (gpointer self) -{ -#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return self ? g_date_time_ref (self) : NULL; -#line 4127 "VideoSupport.c" -} - - -static void -video_reader_set_timestamp (VideoReader* self, - GDateTime* value) -{ - GDateTime* _tmp0_; -#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (IS_VIDEO_READER (self)); -#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = _g_date_time_ref0 (value); -#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_date_time_unref0 (self->priv->_timestamp); -#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv->_timestamp = _tmp0_; -#line 4144 "VideoSupport.c" -} - - -static void -value_video_reader_init (GValue* value) -{ -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = NULL; -#line 4153 "VideoSupport.c" -} - - -static void -value_video_reader_free_value (GValue* value) -{ -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (value->data[0].v_pointer) { -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_reader_unref (value->data[0].v_pointer); -#line 4164 "VideoSupport.c" - } -} - - -static void -value_video_reader_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (src_value->data[0].v_pointer) { -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - dest_value->data[0].v_pointer = video_reader_ref (src_value->data[0].v_pointer); -#line 4177 "VideoSupport.c" - } else { -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - dest_value->data[0].v_pointer = NULL; -#line 4181 "VideoSupport.c" - } -} - - -static gpointer -value_video_reader_peek_pointer (const GValue* value) -{ -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return value->data[0].v_pointer; -#line 4191 "VideoSupport.c" -} - - -static gchar* -value_video_reader_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (collect_values[0].v_pointer) { -#line 4203 "VideoSupport.c" - VideoReader * object; - object = collect_values[0].v_pointer; -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (object->parent_instance.g_class == NULL) { -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4210 "VideoSupport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4214 "VideoSupport.c" - } -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = video_reader_ref (object); -#line 4218 "VideoSupport.c" - } else { -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = NULL; -#line 4222 "VideoSupport.c" - } -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 4226 "VideoSupport.c" -} - - -static gchar* -value_video_reader_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - VideoReader ** object_p; - object_p = collect_values[0].v_pointer; -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!object_p) { -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 4242 "VideoSupport.c" - } -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!value->data[0].v_pointer) { -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *object_p = NULL; -#line 4248 "VideoSupport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *object_p = value->data[0].v_pointer; -#line 4252 "VideoSupport.c" - } else { -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *object_p = video_reader_ref (value->data[0].v_pointer); -#line 4256 "VideoSupport.c" - } -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 4260 "VideoSupport.c" -} - - -GParamSpec* -param_spec_video_reader (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecVideoReader* spec; -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_VIDEO_READER), NULL); -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return G_PARAM_SPEC (spec); -#line 4280 "VideoSupport.c" -} - - -gpointer -value_get_video_reader (const GValue* value) -{ -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_READER), NULL); -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return value->data[0].v_pointer; -#line 4291 "VideoSupport.c" -} - - -void -value_set_video_reader (GValue* value, - gpointer v_object) -{ - VideoReader * old; -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_READER)); -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - old = value->data[0].v_pointer; -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (v_object) { -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIDEO_READER)); -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = v_object; -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_reader_ref (value->data[0].v_pointer); -#line 4314 "VideoSupport.c" - } else { -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = NULL; -#line 4318 "VideoSupport.c" - } -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (old) { -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_reader_unref (old); -#line 4324 "VideoSupport.c" - } -} - - -void -value_take_video_reader (GValue* value, - gpointer v_object) -{ - VideoReader * old; -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_READER)); -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - old = value->data[0].v_pointer; -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (v_object) { -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIDEO_READER)); -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = v_object; -#line 4346 "VideoSupport.c" - } else { -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = NULL; -#line 4350 "VideoSupport.c" - } -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (old) { -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_reader_unref (old); -#line 4356 "VideoSupport.c" - } -} - - -static void -video_reader_class_init (VideoReaderClass * klass) -{ -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_reader_parent_class = g_type_class_peek_parent (klass); -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((VideoReaderClass *) klass)->finalize = video_reader_finalize; -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_type_class_add_private (klass, sizeof (VideoReaderPrivate)); -#line 4370 "VideoSupport.c" -} - - -static void -video_reader_instance_init (VideoReader * self) -{ -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv = VIDEO_READER_GET_PRIVATE (self); -#line 45 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv->clip_duration = VIDEO_READER_UNKNOWN_CLIP_DURATION; -#line 46 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv->preview_frame = NULL; -#line 47 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv->file = NULL; -#line 48 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv->thumbnailer_pid = (GPid) 0; -#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv->_timestamp = NULL; -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->ref_count = 1; -#line 4391 "VideoSupport.c" -} - - -static void -video_reader_finalize (VideoReader * obj) -{ - VideoReader * self; -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_READER, VideoReader); -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_signal_handlers_destroy (self); -#line 46 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (self->priv->preview_frame); -#line 47 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (self->priv->file); -#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_date_time_unref0 (self->priv->_timestamp); -#line 4409 "VideoSupport.c" -} - - -GType -video_reader_get_type (void) -{ - static volatile gsize video_reader_type_id__volatile = 0; - if (g_once_init_enter (&video_reader_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_video_reader_init, value_video_reader_free_value, value_video_reader_copy_value, value_video_reader_peek_pointer, "p", value_video_reader_collect_value, "p", value_video_reader_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (VideoReaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_reader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoReader), 0, (GInstanceInitFunc) video_reader_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType video_reader_type_id; - video_reader_type_id = g_type_register_fundamental (g_type_fundamental_next (), "VideoReader", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&video_reader_type_id__volatile, video_reader_type_id); - } - return video_reader_type_id__volatile; -} - - -gpointer -video_reader_ref (gpointer instance) -{ - VideoReader * self; - self = instance; -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_atomic_int_inc (&self->ref_count); -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return instance; -#line 4438 "VideoSupport.c" -} - - -void -video_reader_unref (gpointer instance) -{ - VideoReader * self; - self = instance; -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - VIDEO_READER_GET_CLASS (self)->finalize (self); -#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 4453 "VideoSupport.c" - } -} - - -static gpointer -_video_row_ref0 (gpointer self) -{ -#line 367 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return self ? video_row_ref (self) : NULL; -#line 4463 "VideoSupport.c" -} - - -Video* -video_construct (GType object_type, - VideoRow* row) -{ - Video * self = NULL; - VideoRow* _tmp0_; - VideoRow* _tmp1_; - VideoRow* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - gboolean _tmp5_ = FALSE; - guint64 _tmp6_; -#line 366 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO_ROW (row), NULL); -#line 366 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = (Video*) video_source_construct (object_type); -#line 367 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = _video_row_ref0 (row); -#line 367 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_row_unref0 (self->priv->backing_row); -#line 367 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv->backing_row = _tmp0_; -#line 370 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 370 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = self->priv->backing_row; -#line 370 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_->title; -#line 370 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = media_source_prep_title (_tmp3_); -#line 370 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp1_->title); -#line 370 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_->title = _tmp4_; -#line 372 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = row->flags; -#line 372 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if ((_tmp6_ & VIDEO_FLAG_TRASH) != ((guint64) 0)) { -#line 372 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = TRUE; -#line 4507 "VideoSupport.c" - } else { - guint64 _tmp7_; -#line 372 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = row->flags; -#line 372 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = (_tmp7_ & VIDEO_FLAG_OFFLINE) != ((guint64) 0); -#line 4514 "VideoSupport.c" - } -#line 372 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp5_) { -#line 4518 "VideoSupport.c" - VideoSourceCollection* _tmp8_; - const gchar* _tmp9_; -#line 373 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = video_global; -#line 373 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = row->backlinks; -#line 373 "/home/jens/Source/shotwell/src/VideoSupport.vala" - data_source_rehydrate_backlinks (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp9_); -#line 4527 "VideoSupport.c" - } -#line 366 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return self; -#line 4531 "VideoSupport.c" -} - - -Video* -video_new (VideoRow* row) -{ -#line 366 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return video_construct (TYPE_VIDEO, row); -#line 4540 "VideoSupport.c" -} - - -static gboolean -__lambda12_ (GstPluginFeature* f) -{ - gboolean result = FALSE; - gchar* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_; -#line 407 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (GST_IS_PLUGIN_FEATURE (f), FALSE); -#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = gst_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (f, gst_object_get_type (), GstObject)); -#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_; -#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = g_str_has_prefix (_tmp1_, "vaapi"); -#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp1_); -#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp2_; -#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 4565 "VideoSupport.c" -} - - -static gboolean -___lambda12__gst_plugin_feature_filter (GstPluginFeature* feature, - gpointer self) -{ - gboolean result; - result = __lambda12_ (feature); -#line 407 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 4577 "VideoSupport.c" -} - - -static void -_g_object_unref0_ (gpointer var) -{ -#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala" - (var == NULL) ? NULL : (var = (g_object_unref (var), NULL)); -#line 4586 "VideoSupport.c" -} - - -static inline void -_g_list_free__g_object_unref0_ (GList* self) -{ -#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_list_free_full (self, (GDestroyNotify) _g_object_unref0_); -#line 4595 "VideoSupport.c" -} - - -void -video_init (ProgressMonitor monitor, - void* monitor_target) -{ - gchar** args = NULL; - gint args_length1; - gint _args_size_; - GstRegistry* registry = NULL; - GstRegistry* _tmp0_; - GstRegistry* _tmp1_; - gint saved_state = 0; - ConfigFacade* _tmp2_; - ConfigFacade* _tmp3_; - gint _tmp4_; - GstRegistry* _tmp5_; - gint _tmp6_; - GList* features = NULL; - GstRegistry* _tmp9_; - GList* _tmp10_; - GList* _tmp11_; - VideoSourceCollection* _tmp18_; - GeeArrayList* all = NULL; - VideoTable* _tmp19_; - VideoTable* _tmp20_; - GeeArrayList* _tmp21_; - GeeArrayList* _tmp22_; - GeeArrayList* all_videos = NULL; - GeeArrayList* _tmp23_; - GeeArrayList* trashed_videos = NULL; - GeeArrayList* _tmp24_; - GeeArrayList* offline_videos = NULL; - GeeArrayList* _tmp25_; - gint count = 0; - GeeArrayList* _tmp26_; - gint _tmp27_; - gint _tmp28_; - VideoSourceCollection* _tmp51_; - GeeArrayList* _tmp52_; - VideoSourceCollection* _tmp53_; - GeeArrayList* _tmp54_; - VideoSourceCollection* _tmp55_; - GeeArrayList* _tmp56_; - GeeCollection* _tmp57_; - GeeCollection* _tmp58_; -#line 380 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_interpreter_state_changed = FALSE; -#line 381 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_current_state = -1; -#line 382 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_normal_regen_complete = FALSE; -#line 383 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_offline_regen_complete = FALSE; -#line 387 "/home/jens/Source/shotwell/src/VideoSupport.vala" - args = NULL; -#line 387 "/home/jens/Source/shotwell/src/VideoSupport.vala" - args_length1 = 0; -#line 387 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _args_size_ = args_length1; -#line 388 "/home/jens/Source/shotwell/src/VideoSupport.vala" - gst_init (&args_length1, &args); -#line 390 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = gst_registry_get (); -#line 390 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 390 "/home/jens/Source/shotwell/src/VideoSupport.vala" - registry = _tmp1_; -#line 391 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = config_facade_get_instance (); -#line 391 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_; -#line 391 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = configuration_facade_get_video_interpreter_state_cookie (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 391 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp3_); -#line 391 "/home/jens/Source/shotwell/src/VideoSupport.vala" - saved_state = _tmp4_; -#line 392 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = registry; -#line 392 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_current_state = (gint) gst_registry_get_feature_list_cookie (_tmp5_); -#line 393 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = saved_state; -#line 393 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp6_ == CONFIG_FACADE_NO_VIDEO_INTERPRETER_STATE) { -#line 394 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_message ("VideoSupport.vala:394: interpreter state cookie not found; assuming al" \ -"l video thumbnails are out of date"); -#line 395 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_interpreter_state_changed = TRUE; -#line 4687 "VideoSupport.c" - } else { - gint _tmp7_; - gint _tmp8_; -#line 396 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = saved_state; -#line 396 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = video_current_state; -#line 396 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp7_ != _tmp8_) { -#line 397 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_message ("VideoSupport.vala:397: interpreter state has changed; video thumbnails" \ -" may be out of date"); -#line 398 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_interpreter_state_changed = TRUE; -#line 4701 "VideoSupport.c" - } - } -#line 407 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = registry; -#line 407 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = gst_registry_feature_filter (_tmp9_, ___lambda12__gst_plugin_feature_filter, FALSE, NULL); -#line 407 "/home/jens/Source/shotwell/src/VideoSupport.vala" - features = _tmp10_; -#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = features; -#line 4712 "VideoSupport.c" - { - GList* feature_collection = NULL; - GList* feature_it = NULL; -#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala" - feature_collection = _tmp11_; -#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala" - for (feature_it = feature_collection; feature_it != NULL; feature_it = feature_it->next) { -#line 4720 "VideoSupport.c" - GstPluginFeature* _tmp12_; - GstPluginFeature* feature = NULL; -#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = _g_object_ref0 ((GstPluginFeature*) feature_it->data); -#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala" - feature = _tmp12_; -#line 4727 "VideoSupport.c" - { - GstPluginFeature* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - GstRegistry* _tmp16_; - GstPluginFeature* _tmp17_; -#line 412 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = feature; -#line 412 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp14_ = gst_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gst_object_get_type (), GstObject)); -#line 412 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = _tmp14_; -#line 412 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_debug ("VideoSupport.vala:412: Removing registry feature %s", _tmp15_); -#line 412 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp15_); -#line 413 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp16_ = registry; -#line 413 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp17_ = feature; -#line 413 "/home/jens/Source/shotwell/src/VideoSupport.vala" - gst_registry_remove_feature (_tmp16_, _tmp17_); -#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (feature); -#line 4752 "VideoSupport.c" - } - } - } -#line 416 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp18_ = video_source_collection_new (); -#line 416 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _data_collection_unref0 (video_global); -#line 416 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_global = _tmp18_; -#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp19_ = video_table_get_instance (); -#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp20_ = _tmp19_; -#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp21_ = video_table_get_all (_tmp20_); -#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp22_ = _tmp21_; -#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp20_); -#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala" - all = _tmp22_; -#line 419 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp23_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 419 "/home/jens/Source/shotwell/src/VideoSupport.vala" - all_videos = _tmp23_; -#line 420 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp24_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 420 "/home/jens/Source/shotwell/src/VideoSupport.vala" - trashed_videos = _tmp24_; -#line 421 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp25_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 421 "/home/jens/Source/shotwell/src/VideoSupport.vala" - offline_videos = _tmp25_; -#line 422 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp26_ = all; -#line 422 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp27_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 422 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp28_ = _tmp27_; -#line 422 "/home/jens/Source/shotwell/src/VideoSupport.vala" - count = _tmp28_; -#line 4794 "VideoSupport.c" - { - gint ctr = 0; -#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ctr = 0; -#line 4799 "VideoSupport.c" - { - gboolean _tmp29_ = FALSE; -#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp29_ = TRUE; -#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" - while (TRUE) { -#line 4806 "VideoSupport.c" - gint _tmp31_; - gint _tmp32_; - Video* video = NULL; - GeeArrayList* _tmp33_; - gint _tmp34_; - gpointer _tmp35_; - VideoRow* _tmp36_; - Video* _tmp37_; - Video* _tmp38_; - gboolean _tmp39_; - Video* _tmp41_; -#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!_tmp29_) { -#line 4820 "VideoSupport.c" - gint _tmp30_; -#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp30_ = ctr; -#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ctr = _tmp30_ + 1; -#line 4826 "VideoSupport.c" - } -#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp29_ = FALSE; -#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp31_ = ctr; -#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp32_ = count; -#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!(_tmp31_ < _tmp32_)) { -#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" - break; -#line 4838 "VideoSupport.c" - } -#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp33_ = all; -#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp34_ = ctr; -#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp35_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp34_); -#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp36_ = (VideoRow*) _tmp35_; -#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp37_ = video_new (_tmp36_); -#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp38_ = _tmp37_; -#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_row_unref0 (_tmp36_); -#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video = _tmp38_; -#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp39_ = video_interpreter_state_changed; -#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp39_) { -#line 4860 "VideoSupport.c" - Video* _tmp40_; -#line 427 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp40_ = video; -#line 427 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_set_is_interpretable (_tmp40_, FALSE); -#line 4866 "VideoSupport.c" - } -#line 429 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp41_ = video; -#line 429 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (media_source_is_trashed (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_MEDIA_SOURCE, MediaSource))) { -#line 4872 "VideoSupport.c" - GeeArrayList* _tmp42_; - Video* _tmp43_; -#line 430 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp42_ = trashed_videos; -#line 430 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp43_ = video; -#line 430 "/home/jens/Source/shotwell/src/VideoSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp43_); -#line 4881 "VideoSupport.c" - } else { - Video* _tmp44_; -#line 431 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp44_ = video; -#line 431 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (media_source_is_offline (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_MEDIA_SOURCE, MediaSource))) { -#line 4888 "VideoSupport.c" - GeeArrayList* _tmp45_; - Video* _tmp46_; -#line 432 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp45_ = offline_videos; -#line 432 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp46_ = video; -#line 432 "/home/jens/Source/shotwell/src/VideoSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp46_); -#line 4897 "VideoSupport.c" - } else { - GeeArrayList* _tmp47_; - Video* _tmp48_; -#line 434 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp47_ = all_videos; -#line 434 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp48_ = video; -#line 434 "/home/jens/Source/shotwell/src/VideoSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp48_); -#line 4907 "VideoSupport.c" - } - } -#line 436 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (monitor != NULL) { -#line 4912 "VideoSupport.c" - gint _tmp49_; - gint _tmp50_; -#line 437 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp49_ = ctr; -#line 437 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp50_ = count; -#line 437 "/home/jens/Source/shotwell/src/VideoSupport.vala" - monitor ((guint64) _tmp49_, (guint64) _tmp50_, TRUE, monitor_target); -#line 4921 "VideoSupport.c" - } -#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (video); -#line 4925 "VideoSupport.c" - } - } - } -#line 440 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp51_ = video_global; -#line 440 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp52_ = trashed_videos; -#line 440 "/home/jens/Source/shotwell/src/VideoSupport.vala" - media_source_collection_add_many_to_trash (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 441 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp53_ = video_global; -#line 441 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp54_ = offline_videos; -#line 441 "/home/jens/Source/shotwell/src/VideoSupport.vala" - media_source_collection_add_many_to_offline (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 442 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp55_ = video_global; -#line 442 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp56_ = all_videos; -#line 442 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp57_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL); -#line 442 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp58_ = _tmp57_; -#line 442 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp58_); -#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (offline_videos); -#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (trashed_videos); -#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (all_videos); -#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (all); -#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala" - __g_list_free__g_object_unref0_0 (features); -#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (registry); -#line 4963 "VideoSupport.c" -} - - -gboolean -video_has_interpreter_state_changed (void) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 446 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = video_interpreter_state_changed; -#line 446 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp0_; -#line 446 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 4978 "VideoSupport.c" -} - - -void -video_notify_normal_thumbs_regenerated (void) -{ - gboolean _tmp0_; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_; -#line 450 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = video_normal_regen_complete; -#line 450 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp0_) { -#line 451 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 4994 "VideoSupport.c" - } -#line 453 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_message ("VideoSupport.vala:453: normal video thumbnail regeneration completed"); -#line 455 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_normal_regen_complete = TRUE; -#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = video_normal_regen_complete; -#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp2_) { -#line 5004 "VideoSupport.c" - gboolean _tmp3_; -#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = video_offline_regen_complete; -#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp3_; -#line 5010 "VideoSupport.c" - } else { -#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = FALSE; -#line 5014 "VideoSupport.c" - } -#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp1_) { -#line 457 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_save_interpreter_state (); -#line 5020 "VideoSupport.c" - } -} - - -void -video_notify_offline_thumbs_regenerated (void) -{ - gboolean _tmp0_; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_; -#line 461 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = video_offline_regen_complete; -#line 461 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp0_) { -#line 462 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 5037 "VideoSupport.c" - } -#line 464 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_message ("VideoSupport.vala:464: offline video thumbnail regeneration completed"); -#line 466 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_offline_regen_complete = TRUE; -#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = video_normal_regen_complete; -#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp2_) { -#line 5047 "VideoSupport.c" - gboolean _tmp3_; -#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = video_offline_regen_complete; -#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp3_; -#line 5053 "VideoSupport.c" - } else { -#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = FALSE; -#line 5057 "VideoSupport.c" - } -#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp1_) { -#line 468 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_save_interpreter_state (); -#line 5063 "VideoSupport.c" - } -} - - -static void -video_save_interpreter_state (void) -{ - gboolean _tmp0_; -#line 472 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = video_interpreter_state_changed; -#line 472 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp0_) { -#line 5076 "VideoSupport.c" - ConfigFacade* _tmp1_; - ConfigFacade* _tmp2_; - gint _tmp3_; -#line 473 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_message ("VideoSupport.vala:473: saving video interpreter state to configuration" \ -" system"); -#line 475 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = config_facade_get_instance (); -#line 475 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_; -#line 475 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = video_current_state; -#line 475 "/home/jens/Source/shotwell/src/VideoSupport.vala" - configuration_facade_set_video_interpreter_state_cookie (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp3_); -#line 475 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp2_); -#line 476 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_interpreter_state_changed = FALSE; -#line 5094 "VideoSupport.c" - } -} - - -void -video_terminate (void) -{ -} - - -ExporterUI* -video_export_many (GeeCollection* videos, - ExporterCompletionCallback done, - void* done_target, - gboolean export_in_place) -{ - ExporterUI* result = NULL; - gint _tmp0_; - gint _tmp1_; - gint _tmp9_; - gint _tmp10_; - GFile* export_dir = NULL; - GFile* _tmp32_; - GFile* _tmp33_; - ExporterUI* exporter = NULL; - GFile* _tmp34_; - Scaling _tmp35_ = {0}; - ExportFormatParameters _tmp36_ = {0}; - Exporter* _tmp37_; - Exporter* _tmp38_; - ExporterUI* _tmp39_; - ExporterUI* _tmp40_; - ExporterUI* _tmp41_; - GError * _inner_error_ = NULL; -#line 483 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (videos), NULL); -#line 485 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = gee_collection_get_size (videos); -#line 485 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_; -#line 485 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp1_ == 0) { -#line 486 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = NULL; -#line 486 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 5141 "VideoSupport.c" - } -#line 489 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (export_in_place) { -#line 5145 "VideoSupport.c" - ExporterUI* temp_exporter = NULL; - Scaling _tmp2_ = {0}; - ExportFormatParameters _tmp3_ = {0}; - Exporter* _tmp4_; - Exporter* _tmp5_; - ExporterUI* _tmp6_; - ExporterUI* _tmp7_; - ExporterUI* _tmp8_; -#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala" - scaling_for_original (&_tmp2_); -#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala" - export_format_parameters_unmodified (&_tmp3_); -#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = exporter_new_for_temp_file (videos, &_tmp2_, &_tmp3_); -#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = _tmp4_; -#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = exporter_ui_new (_tmp5_); -#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = _tmp6_; -#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp5_); -#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala" - temp_exporter = _tmp7_; -#line 492 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = temp_exporter; -#line 492 "/home/jens/Source/shotwell/src/VideoSupport.vala" - exporter_ui_export (_tmp8_, done, done_target); -#line 493 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = temp_exporter; -#line 493 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 5178 "VideoSupport.c" - } -#line 497 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = gee_collection_get_size (videos); -#line 497 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = _tmp9_; -#line 497 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp10_ == 1) { -#line 5186 "VideoSupport.c" - Video* video = NULL; - GFile* save_as = NULL; - Video* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - GFile* _tmp20_; - GFile* _tmp21_; - GFile* _tmp22_; -#line 498 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video = NULL; -#line 5197 "VideoSupport.c" - { - GeeIterator* _v_it = NULL; - GeeIterator* _tmp11_; -#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (videos, GEE_TYPE_ITERABLE, GeeIterable)); -#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _v_it = _tmp11_; -#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" - while (TRUE) { -#line 5207 "VideoSupport.c" - GeeIterator* _tmp12_; - Video* v = NULL; - GeeIterator* _tmp13_; - gpointer _tmp14_; - Video* _tmp15_; - Video* _tmp16_; -#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = _v_it; -#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!gee_iterator_next (_tmp12_)) { -#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" - break; -#line 5220 "VideoSupport.c" - } -#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = _v_it; -#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp14_ = gee_iterator_get (_tmp13_); -#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" - v = (Video*) _tmp14_; -#line 500 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = v; -#line 500 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp16_ = _g_object_ref0 (_tmp15_); -#line 500 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (video); -#line 500 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video = _tmp16_; -#line 501 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (v); -#line 501 "/home/jens/Source/shotwell/src/VideoSupport.vala" - break; -#line 5240 "VideoSupport.c" - } -#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_v_it); -#line 5244 "VideoSupport.c" - } -#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp17_ = video; -#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp18_ = media_source_get_basename (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp19_ = _tmp18_; -#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp20_ = export_ui_choose_file (_tmp19_); -#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp21_ = _tmp20_; -#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp19_); -#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala" - save_as = _tmp21_; -#line 505 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp22_ = save_as; -#line 505 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp22_ == NULL) { -#line 506 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = NULL; -#line 506 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (save_as); -#line 506 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (video); -#line 506 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 5272 "VideoSupport.c" - } - { - AppWindow* _tmp23_; - AppWindow* _tmp24_; - Video* _tmp25_; - GFile* _tmp26_; - AppWindow* _tmp27_; - AppWindow* _tmp28_; -#line 509 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp23_ = app_window_get_instance (); -#line 509 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp24_ = _tmp23_; -#line 509 "/home/jens/Source/shotwell/src/VideoSupport.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_PAGE_WINDOW, PageWindow)); -#line 509 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp24_); -#line 510 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp25_ = video; -#line 510 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp26_ = save_as; -#line 510 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_export (_tmp25_, _tmp26_, &_inner_error_); -#line 510 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5297 "VideoSupport.c" - goto __catch510_g_error; - } -#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp27_ = app_window_get_instance (); -#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp28_ = _tmp27_; -#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_PAGE_WINDOW, PageWindow)); -#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp28_); -#line 5308 "VideoSupport.c" - } - goto __finally510; - __catch510_g_error: - { - GError* err = NULL; - AppWindow* _tmp29_; - AppWindow* _tmp30_; - GFile* _tmp31_; -#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" - err = _inner_error_; -#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp29_ = app_window_get_instance (); -#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp30_ = _tmp29_; -#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_PAGE_WINDOW, PageWindow)); -#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp30_); -#line 514 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp31_ = save_as; -#line 514 "/home/jens/Source/shotwell/src/VideoSupport.vala" - export_error_dialog (_tmp31_, FALSE); -#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (err); -#line 5335 "VideoSupport.c" - } - __finally510: -#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (save_as); -#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (video); -#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 5350 "VideoSupport.c" - } -#line 517 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = NULL; -#line 517 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (save_as); -#line 517 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (video); -#line 517 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 5360 "VideoSupport.c" - } -#line 521 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp32_ = export_ui_choose_dir (_ ("Export Videos")); -#line 521 "/home/jens/Source/shotwell/src/VideoSupport.vala" - export_dir = _tmp32_; -#line 522 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp33_ = export_dir; -#line 522 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp33_ == NULL) { -#line 523 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = NULL; -#line 523 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (export_dir); -#line 523 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 5376 "VideoSupport.c" - } -#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp34_ = export_dir; -#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" - scaling_for_original (&_tmp35_); -#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" - export_format_parameters_unmodified (&_tmp36_); -#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp37_ = exporter_new (videos, _tmp34_, &_tmp35_, &_tmp36_, FALSE); -#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp38_ = _tmp37_; -#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp39_ = exporter_ui_new (_tmp38_); -#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp40_ = _tmp39_; -#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp38_); -#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" - exporter = _tmp40_; -#line 527 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp41_ = exporter; -#line 527 "/home/jens/Source/shotwell/src/VideoSupport.vala" - exporter_ui_export (_tmp41_, done, done_target); -#line 529 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = exporter; -#line 529 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (export_dir); -#line 529 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 5406 "VideoSupport.c" -} - - -static void -video_real_commit_backlinks (DataSource* base, - SourceCollection* sources, - const gchar* backlinks) -{ - Video * self; - GError * _inner_error_ = NULL; -#line 532 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 532 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail ((sources == NULL) || IS_SOURCE_COLLECTION (sources)); -#line 5421 "VideoSupport.c" - { - VideoTable* _tmp0_; - VideoTable* _tmp1_; - VideoID _tmp2_ = {0}; -#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = video_table_get_instance (); -#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_; -#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_get_video_id (self, &_tmp2_); -#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_table_update_backlinks (_tmp1_, &_tmp2_, backlinks, &_inner_error_); -#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp1_); -#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 5440 "VideoSupport.c" - goto __catch511_database_error; - } -#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 5449 "VideoSupport.c" - } - { - VideoRow* _tmp3_; -#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 5457 "VideoSupport.c" - { - VideoRow* _tmp4_; - gchar* _tmp5_; -#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = g_strdup (backlinks); -#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp4_->backlinks); -#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_->backlinks = _tmp5_; -#line 5469 "VideoSupport.c" - } - __finally512: - { - VideoRow* _tmp6_; -#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = self->priv->backing_row; -#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 5478 "VideoSupport.c" - } -#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 5484 "VideoSupport.c" - goto __catch511_database_error; - } -#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 5493 "VideoSupport.c" - } - } - } - goto __finally511; - __catch511_database_error: - { - GError* err = NULL; - gchar* _tmp7_; - gchar* _tmp8_; - GError* _tmp9_; - const gchar* _tmp10_; -#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala" - err = _inner_error_; -#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = _tmp7_; -#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = err; -#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = _tmp9_->message; -#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_warning ("VideoSupport.vala:539: Unable to update link state for %s: %s", _tmp8_, _tmp10_); -#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp8_); -#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (err); -#line 5523 "VideoSupport.c" - } - __finally511: -#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 5534 "VideoSupport.c" - } -} - - -static gboolean -video_real_set_event_id (MediaSource* base, - EventID* event_id) -{ - Video * self; - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 543 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 543 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (event_id != NULL, FALSE); -#line 5550 "VideoSupport.c" - { - VideoRow* _tmp0_; - gboolean _tmp12_ = FALSE; -#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 5558 "VideoSupport.c" - { - gboolean committed = FALSE; - VideoTable* _tmp1_; - VideoTable* _tmp2_; - VideoRow* _tmp3_; - VideoID _tmp4_; - EventID _tmp5_; - gboolean _tmp6_; - gboolean _tmp7_; -#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = video_table_get_instance (); -#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_; -#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = _tmp3_->video_id; -#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = *event_id; -#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = video_table_set_event (_tmp2_, &_tmp4_, &_tmp5_); -#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp2_); -#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala" - committed = _tmp6_; -#line 547 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = committed; -#line 547 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp7_) { -#line 5588 "VideoSupport.c" - VideoRow* _tmp8_; - EventID _tmp9_; -#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = self->priv->backing_row; -#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = *event_id; -#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_->event_id = _tmp9_; -#line 5597 "VideoSupport.c" - } -#line 550 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = committed; -#line 5601 "VideoSupport.c" - { - VideoRow* _tmp10_; -#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = self->priv->backing_row; -#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 5608 "VideoSupport.c" - } -#line 550 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 5612 "VideoSupport.c" - } - __finally513: - { - VideoRow* _tmp11_; -#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = self->priv->backing_row; -#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 5621 "VideoSupport.c" - } -#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp12_; -#line 5629 "VideoSupport.c" - } -} - - -gboolean -video_is_duplicate (GFile* file, - const gchar* full_md5) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - VideoTable* _tmp1_; - VideoTable* _tmp2_; - gboolean _tmp3_; -#line 554 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), FALSE); -#line 555 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (file != NULL) { -#line 555 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = TRUE; -#line 5649 "VideoSupport.c" - } else { -#line 555 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = full_md5 != NULL; -#line 5653 "VideoSupport.c" - } -#line 555 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _vala_assert (_tmp0_, "file != null || full_md5 != null"); -#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = video_table_get_instance (); -#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_; -#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = video_table_has_duplicate (_tmp2_, file, full_md5); -#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp2_); -#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp3_; -#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 5669 "VideoSupport.c" -} - - -ImportResult -video_import_create (VideoImportParams* params, - Video* * video) -{ - Video* _vala_video = NULL; - ImportResult result = 0; - VideoRow* _tmp6_; - Video* _tmp7_; - GError * _inner_error_ = NULL; -#line 563 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO_IMPORT_PARAMS (params), 0); -#line 564 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_vala_video); -#line 564 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _vala_video = NULL; -#line 5688 "VideoSupport.c" - { - VideoID _tmp0_ = {0}; - VideoTable* _tmp1_; - VideoTable* _tmp2_; - VideoRow* _tmp3_; - VideoID _tmp4_ = {0}; - VideoID _tmp5_; -#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = video_table_get_instance (); -#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_; -#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = params->row; -#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_table_add (_tmp2_, _tmp3_, &_tmp4_, &_inner_error_); -#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = _tmp4_; -#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp2_); -#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = _tmp5_; -#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 5714 "VideoSupport.c" - goto __catch514_database_error; - } -#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return 0; -#line 5723 "VideoSupport.c" - } -#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (video_id_is_invalid (&_tmp0_)) { -#line 569 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = IMPORT_RESULT_DATABASE_ERROR; -#line 569 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (video) { -#line 569 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *video = _vala_video; -#line 5733 "VideoSupport.c" - } else { -#line 569 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_vala_video); -#line 5737 "VideoSupport.c" - } -#line 569 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 5741 "VideoSupport.c" - } - } - goto __finally514; - __catch514_database_error: - { - GError* err = NULL; -#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala" - err = _inner_error_; -#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = IMPORT_RESULT_DATABASE_ERROR; -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (err); -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (video) { -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *video = _vala_video; -#line 5760 "VideoSupport.c" - } else { -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_vala_video); -#line 5764 "VideoSupport.c" - } -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 5768 "VideoSupport.c" - } - __finally514: -#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return 0; -#line 5779 "VideoSupport.c" - } -#line 575 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = params->row; -#line 575 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = video_new (_tmp6_); -#line 575 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_vala_video); -#line 575 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _vala_video = _tmp7_; -#line 577 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = IMPORT_RESULT_SUCCESS; -#line 577 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (video) { -#line 577 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *video = _vala_video; -#line 5795 "VideoSupport.c" - } else { -#line 577 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_vala_video); -#line 5799 "VideoSupport.c" - } -#line 577 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 5803 "VideoSupport.c" -} - - -void -video_import_failed (Video* video) -{ - GError * _inner_error_ = NULL; -#line 580 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (IS_VIDEO (video)); -#line 5813 "VideoSupport.c" - { - VideoTable* _tmp0_; - VideoTable* _tmp1_; - VideoID _tmp2_ = {0}; -#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = video_table_get_instance (); -#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_; -#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_get_video_id (video, &_tmp2_); -#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_table_remove (_tmp1_, &_tmp2_, &_inner_error_); -#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp1_); -#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 5832 "VideoSupport.c" - goto __catch515_database_error; - } -#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 5841 "VideoSupport.c" - } - } - goto __finally515; - __catch515_database_error: - { - GError* err = NULL; - GError* _tmp3_; -#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala" - err = _inner_error_; -#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 584 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = err; -#line 584 "/home/jens/Source/shotwell/src/VideoSupport.vala" - app_window_database_error (_tmp3_); -#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (err); -#line 5859 "VideoSupport.c" - } - __finally515: -#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 5870 "VideoSupport.c" - } -} - - -static BackingFileState** -video_real_get_backing_files_state (MediaSource* base, - int* result_length1) -{ - Video * self; - BackingFileState** result = NULL; - BackingFileState** backing = NULL; - BackingFileState** _tmp0_; - gint backing_length1; - gint _backing_size_; - BackingFileState** _tmp13_; - gint _tmp13__length1; - GError * _inner_error_ = NULL; -#line 588 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 589 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = g_new0 (BackingFileState*, 1 + 1); -#line 589 "/home/jens/Source/shotwell/src/VideoSupport.vala" - backing = _tmp0_; -#line 589 "/home/jens/Source/shotwell/src/VideoSupport.vala" - backing_length1 = 1; -#line 589 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _backing_size_ = backing_length1; -#line 5898 "VideoSupport.c" - { - VideoRow* _tmp1_; -#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 5905 "VideoSupport.c" - { - VideoRow* _tmp2_; - const gchar* _tmp3_; - VideoRow* _tmp4_; - gint64 _tmp5_; - VideoRow* _tmp6_; - time_t _tmp7_; - VideoRow* _tmp8_; - const gchar* _tmp9_; - BackingFileState* _tmp10_; - BackingFileState* _tmp11_; -#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = self->priv->backing_row; -#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_->filepath; -#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = _tmp4_->filesize; -#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = self->priv->backing_row; -#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = _tmp6_->timestamp; -#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = self->priv->backing_row; -#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = _tmp8_->md5; -#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = backing_file_state_new (_tmp3_, _tmp5_, _tmp7_, _tmp9_); -#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _backing_file_state_unref0 (backing[0]); -#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" - backing[0] = _tmp10_; -#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = backing[0]; -#line 5941 "VideoSupport.c" - } - __finally516: - { - VideoRow* _tmp12_; -#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = self->priv->backing_row; -#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 5950 "VideoSupport.c" - } -#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" - backing = (_vala_array_free (backing, backing_length1, (GDestroyNotify) backing_file_state_unref), NULL); -#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 5962 "VideoSupport.c" - } - } -#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = backing; -#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13__length1 = backing_length1; -#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (result_length1) { -#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *result_length1 = _tmp13__length1; -#line 5973 "VideoSupport.c" - } -#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp13_; -#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 5979 "VideoSupport.c" -} - - -static GdkPixbuf* -video_real_get_thumbnail (ThumbnailSource* base, - gint scale, - GError** error) -{ - Video * self; - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_ = NULL; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; - GError * _inner_error_ = NULL; -#line 598 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = thumbnail_cache_fetch (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), scale, &_inner_error_); -#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = _tmp1_; -#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_propagate_error (error, _inner_error_); -#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 6006 "VideoSupport.c" - } -#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp0_; -#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = NULL; -#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp2_; -#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp0_); -#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 6018 "VideoSupport.c" -} - - -static gchar* -video_real_get_master_md5 (MediaSource* base) -{ - Video * self; - gchar* result = NULL; - GError * _inner_error_ = NULL; -#line 602 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 6030 "VideoSupport.c" - { - VideoRow* _tmp0_; -#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 6037 "VideoSupport.c" - { - VideoRow* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; -#line 604 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 604 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->md5; -#line 604 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 604 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp3_; -#line 6050 "VideoSupport.c" - { - VideoRow* _tmp4_; -#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6057 "VideoSupport.c" - } -#line 604 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 6061 "VideoSupport.c" - } - __finally517: - { - VideoRow* _tmp5_; -#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = self->priv->backing_row; -#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6070 "VideoSupport.c" - } -#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 6078 "VideoSupport.c" - } -} - - -static GdkPixbuf* -video_real_get_preview_pixbuf (MediaSource* base, - Scaling* scaling, - GError** error) -{ - Video * self; - GdkPixbuf* result = NULL; - GdkPixbuf* pixbuf = NULL; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - GError * _inner_error_ = NULL; -#line 608 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 608 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 609 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = thumbnail_source_get_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), (gint) THUMBNAIL_CACHE_SIZE_BIG, &_inner_error_); -#line 609 "/home/jens/Source/shotwell/src/VideoSupport.vala" - pixbuf = _tmp0_; -#line 609 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 609 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_propagate_error (error, _inner_error_); -#line 609 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 6108 "VideoSupport.c" - } -#line 611 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = scaling_perform_on_pixbuf (scaling, pixbuf, GDK_INTERP_NEAREST, TRUE); -#line 611 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp1_; -#line 611 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (pixbuf); -#line 611 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 6118 "VideoSupport.c" -} - - -static GdkPixbuf* -video_real_create_thumbnail (ThumbnailSource* base, - gint scale, - GError** error) -{ - Video * self; - GdkPixbuf* result = NULL; - VideoReader* reader = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - VideoReader* _tmp2_; - VideoReader* _tmp3_; - GdkPixbuf* frame = NULL; - VideoReader* _tmp4_; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_ = NULL; - GdkPixbuf* _tmp7_; -#line 614 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_; -#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = video_reader_new (_tmp1_); -#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_; -#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp1_); -#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala" - reader = _tmp3_; -#line 616 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = reader; -#line 616 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = video_reader_read_preview_frame (_tmp4_); -#line 616 "/home/jens/Source/shotwell/src/VideoSupport.vala" - frame = _tmp5_; -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = frame; -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp7_ != NULL) { -#line 6163 "VideoSupport.c" - GdkPixbuf* _tmp8_; - GdkPixbuf* _tmp9_; -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = frame; -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = _g_object_ref0 (_tmp8_); -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp6_); -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = _tmp9_; -#line 6174 "VideoSupport.c" - } else { - GdkPixbuf* _tmp10_; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp12_; -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = resources_get_noninterpretable_badge_pixbuf (); -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = _tmp10_; -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = gdk_pixbuf_copy (_tmp11_); -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp6_); -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = _tmp12_; -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp11_); -#line 6191 "VideoSupport.c" - } -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp6_; -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (frame); -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_reader_unref0 (reader); -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 6201 "VideoSupport.c" -} - - -static gchar* -video_real_get_typename (DataSource* base) -{ - Video * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 622 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = g_strdup (VIDEO_TYPENAME); -#line 622 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp0_; -#line 622 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 6219 "VideoSupport.c" -} - - -static gint64 -video_real_get_instance_id (DataSource* base) -{ - Video * self; - gint64 result = 0LL; - VideoID _tmp0_ = {0}; - gint64 _tmp1_; -#line 625 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 626 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_get_video_id (self, &_tmp0_); -#line 626 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_.id; -#line 626 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp1_; -#line 626 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 6240 "VideoSupport.c" -} - - -static void -video_real_get_import_id (MediaSource* base, - ImportID* result) -{ - Video * self; - GError * _inner_error_ = NULL; -#line 629 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 6252 "VideoSupport.c" - { - VideoRow* _tmp0_; -#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 6259 "VideoSupport.c" - { - VideoRow* _tmp1_; - ImportID _tmp2_; -#line 631 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 631 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->import_id; -#line 631 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *result = _tmp2_; -#line 6269 "VideoSupport.c" - { - VideoRow* _tmp3_; -#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6276 "VideoSupport.c" - } -#line 631 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 6280 "VideoSupport.c" - } - __finally518: - { - VideoRow* _tmp4_; -#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6289 "VideoSupport.c" - } -#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 6297 "VideoSupport.c" - } -} - - -static PhotoFileFormat -video_real_get_preferred_thumbnail_format (ThumbnailSource* base) -{ - Video * self; - PhotoFileFormat result = 0; -#line 635 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 636 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = photo_file_format_get_system_default_format (); -#line 636 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 6313 "VideoSupport.c" -} - - -static gchar* -video_real_get_title (MediaSource* base) -{ - Video * self; - gchar* result = NULL; - GError * _inner_error_ = NULL; -#line 639 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 6325 "VideoSupport.c" - { - VideoRow* _tmp0_; -#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 6332 "VideoSupport.c" - { - VideoRow* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; -#line 641 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 641 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->title; -#line 641 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 641 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp3_; -#line 6345 "VideoSupport.c" - { - VideoRow* _tmp4_; -#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6352 "VideoSupport.c" - } -#line 641 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 6356 "VideoSupport.c" - } - __finally519: - { - VideoRow* _tmp5_; -#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = self->priv->backing_row; -#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6365 "VideoSupport.c" - } -#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 6373 "VideoSupport.c" - } -} - - -static void -video_real_set_title (MediaSource* base, - const gchar* title) -{ - Video * self; - gchar* new_title = NULL; - gchar* _tmp0_; - Alteration* _tmp19_; - Alteration* _tmp20_; - GError * _inner_error_ = NULL; -#line 645 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 646 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = media_source_prep_title (title); -#line 646 "/home/jens/Source/shotwell/src/VideoSupport.vala" - new_title = _tmp0_; -#line 6394 "VideoSupport.c" - { - VideoRow* _tmp1_; -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 6401 "VideoSupport.c" - { - VideoRow* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - VideoRow* _tmp15_; - const gchar* _tmp16_; - gchar* _tmp17_; -#line 649 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = self->priv->backing_row; -#line 649 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_->title; -#line 649 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = new_title; -#line 649 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (g_strcmp0 (_tmp3_, _tmp4_) == 0) { -#line 6417 "VideoSupport.c" - { - VideoRow* _tmp5_; -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = self->priv->backing_row; -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6424 "VideoSupport.c" - } -#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (new_title); -#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 6430 "VideoSupport.c" - } - { - VideoTable* _tmp6_; - VideoTable* _tmp7_; - VideoRow* _tmp8_; - VideoID _tmp9_; - const gchar* _tmp10_; -#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = video_table_get_instance (); -#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = _tmp6_; -#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = self->priv->backing_row; -#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = _tmp8_->video_id; -#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = new_title; -#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_table_set_title (_tmp7_, &_tmp9_, _tmp10_, &_inner_error_); -#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp7_); -#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 6456 "VideoSupport.c" - goto __catch521_database_error; - } - { - VideoRow* _tmp11_; -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = self->priv->backing_row; -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6465 "VideoSupport.c" - } -#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (new_title); -#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 6475 "VideoSupport.c" - } - } - goto __finally521; - __catch521_database_error: - { - GError* e = NULL; - GError* _tmp12_; -#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" - e = _inner_error_; -#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 655 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = e; -#line 655 "/home/jens/Source/shotwell/src/VideoSupport.vala" - app_window_database_error (_tmp12_); -#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (e); -#line 6493 "VideoSupport.c" - { - VideoRow* _tmp13_; -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = self->priv->backing_row; -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6500 "VideoSupport.c" - } -#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (new_title); -#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 6506 "VideoSupport.c" - } - __finally521: -#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6511 "VideoSupport.c" - { - VideoRow* _tmp14_; -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp14_ = self->priv->backing_row; -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6518 "VideoSupport.c" - } -#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (new_title); -#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 6528 "VideoSupport.c" - } -#line 660 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = self->priv->backing_row; -#line 660 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp16_ = new_title; -#line 660 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp17_ = g_strdup (_tmp16_); -#line 660 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp15_->title); -#line 660 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_->title = _tmp17_; -#line 6540 "VideoSupport.c" - } - __finally520: - { - VideoRow* _tmp18_; -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp18_ = self->priv->backing_row; -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6549 "VideoSupport.c" - } -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (new_title); -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 6561 "VideoSupport.c" - } - } -#line 663 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp19_ = alteration_new ("metadata", "name"); -#line 663 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp20_ = _tmp19_; -#line 663 "/home/jens/Source/shotwell/src/VideoSupport.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp20_); -#line 663 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _alteration_unref0 (_tmp20_); -#line 645 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (new_title); -#line 6574 "VideoSupport.c" -} - - -static gchar* -video_real_get_comment (MediaSource* base) -{ - Video * self; - gchar* result = NULL; - GError * _inner_error_ = NULL; -#line 666 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 6586 "VideoSupport.c" - { - VideoRow* _tmp0_; -#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 6593 "VideoSupport.c" - { - VideoRow* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; -#line 668 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 668 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->comment; -#line 668 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 668 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp3_; -#line 6606 "VideoSupport.c" - { - VideoRow* _tmp4_; -#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6613 "VideoSupport.c" - } -#line 668 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 6617 "VideoSupport.c" - } - __finally522: - { - VideoRow* _tmp5_; -#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = self->priv->backing_row; -#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6626 "VideoSupport.c" - } -#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 6634 "VideoSupport.c" - } -} - - -static gboolean -video_real_set_comment (MediaSource* base, - const gchar* comment) -{ - Video * self; - gboolean result = FALSE; - gchar* new_comment = NULL; - gchar* _tmp0_; - Alteration* _tmp22_; - Alteration* _tmp23_; - GError * _inner_error_ = NULL; -#line 672 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 673 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = media_source_prep_title (comment); -#line 673 "/home/jens/Source/shotwell/src/VideoSupport.vala" - new_comment = _tmp0_; -#line 6656 "VideoSupport.c" - { - VideoRow* _tmp1_; -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 6663 "VideoSupport.c" - { - VideoRow* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - VideoRow* _tmp17_; - const gchar* _tmp18_; - gchar* _tmp19_; -#line 676 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = self->priv->backing_row; -#line 676 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_->comment; -#line 676 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = new_comment; -#line 676 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (g_strcmp0 (_tmp3_, _tmp4_) == 0) { -#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = TRUE; -#line 6681 "VideoSupport.c" - { - VideoRow* _tmp5_; -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = self->priv->backing_row; -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6688 "VideoSupport.c" - } -#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (new_comment); -#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 6694 "VideoSupport.c" - } - { - VideoTable* _tmp6_; - VideoTable* _tmp7_; - VideoRow* _tmp8_; - VideoID _tmp9_; - const gchar* _tmp10_; -#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = video_table_get_instance (); -#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = _tmp6_; -#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = self->priv->backing_row; -#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = _tmp8_->video_id; -#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = new_comment; -#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_table_set_comment (_tmp7_, &_tmp9_, _tmp10_, &_inner_error_); -#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp7_); -#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6718 "VideoSupport.c" - gboolean _tmp12_ = FALSE; -#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 6722 "VideoSupport.c" - goto __catch524_database_error; - } - { - VideoRow* _tmp11_; -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = self->priv->backing_row; -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6731 "VideoSupport.c" - } -#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (new_comment); -#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp12_; -#line 6741 "VideoSupport.c" - } - } - goto __finally524; - __catch524_database_error: - { - GError* e = NULL; - GError* _tmp13_; -#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" - e = _inner_error_; -#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = e; -#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala" - app_window_database_error (_tmp13_); -#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = FALSE; -#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (e); -#line 6761 "VideoSupport.c" - { - VideoRow* _tmp14_; -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp14_ = self->priv->backing_row; -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6768 "VideoSupport.c" - } -#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (new_comment); -#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 6774 "VideoSupport.c" - } - __finally524: -#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6779 "VideoSupport.c" - gboolean _tmp16_ = FALSE; - { - VideoRow* _tmp15_; -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = self->priv->backing_row; -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6787 "VideoSupport.c" - } -#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (new_comment); -#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp16_; -#line 6797 "VideoSupport.c" - } -#line 687 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp17_ = self->priv->backing_row; -#line 687 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp18_ = new_comment; -#line 687 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp19_ = g_strdup (_tmp18_); -#line 687 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp17_->comment); -#line 687 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp17_->comment = _tmp19_; -#line 6809 "VideoSupport.c" - } - __finally523: - { - VideoRow* _tmp20_; -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp20_ = self->priv->backing_row; -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6818 "VideoSupport.c" - } -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6822 "VideoSupport.c" - gboolean _tmp21_ = FALSE; -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (new_comment); -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp21_; -#line 6832 "VideoSupport.c" - } - } -#line 690 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp22_ = alteration_new ("metadata", "comment"); -#line 690 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp23_ = _tmp22_; -#line 690 "/home/jens/Source/shotwell/src/VideoSupport.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp23_); -#line 690 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _alteration_unref0 (_tmp23_); -#line 692 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = TRUE; -#line 692 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (new_comment); -#line 692 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 6849 "VideoSupport.c" -} - - -static Rating -video_real_get_rating (MediaSource* base) -{ - Video * self; - Rating result = 0; - GError * _inner_error_ = NULL; -#line 696 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 6861 "VideoSupport.c" - { - VideoRow* _tmp0_; -#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 6868 "VideoSupport.c" - { - VideoRow* _tmp1_; - Rating _tmp2_; -#line 698 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 698 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->rating; -#line 698 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp2_; -#line 6878 "VideoSupport.c" - { - VideoRow* _tmp3_; -#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6885 "VideoSupport.c" - } -#line 698 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 6889 "VideoSupport.c" - } - __finally525: - { - VideoRow* _tmp4_; -#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6898 "VideoSupport.c" - } -#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return 0; -#line 6906 "VideoSupport.c" - } -} - - -static void -video_real_set_rating (MediaSource* base, - Rating rating) -{ - Video * self; - Alteration* _tmp14_; - Alteration* _tmp15_; - GError * _inner_error_ = NULL; -#line 702 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 6921 "VideoSupport.c" - { - VideoRow* _tmp0_; -#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 6928 "VideoSupport.c" - { - gboolean _tmp1_ = FALSE; - VideoRow* _tmp12_; -#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!rating_is_valid (rating)) { -#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = TRUE; -#line 6936 "VideoSupport.c" - } else { - VideoRow* _tmp2_; - Rating _tmp3_; -#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = self->priv->backing_row; -#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_->rating; -#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = rating == _tmp3_; -#line 6946 "VideoSupport.c" - } -#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp1_) { -#line 6950 "VideoSupport.c" - { - VideoRow* _tmp4_; -#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6957 "VideoSupport.c" - } -#line 705 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 6961 "VideoSupport.c" - } - { - VideoTable* _tmp5_; - VideoTable* _tmp6_; - VideoID _tmp7_ = {0}; -#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = video_table_get_instance (); -#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = _tmp5_; -#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_get_video_id (self, &_tmp7_); -#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_table_set_rating (_tmp6_, &_tmp7_, rating, &_inner_error_); -#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp6_); -#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 6981 "VideoSupport.c" - goto __catch527_database_error; - } - { - VideoRow* _tmp8_; -#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = self->priv->backing_row; -#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6990 "VideoSupport.c" - } -#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 6998 "VideoSupport.c" - } - } - goto __finally527; - __catch527_database_error: - { - GError* e = NULL; - GError* _tmp9_; -#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" - e = _inner_error_; -#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 710 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = e; -#line 710 "/home/jens/Source/shotwell/src/VideoSupport.vala" - app_window_database_error (_tmp9_); -#line 711 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (e); -#line 7016 "VideoSupport.c" - { - VideoRow* _tmp10_; -#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = self->priv->backing_row; -#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7023 "VideoSupport.c" - } -#line 711 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 7027 "VideoSupport.c" - } - __finally527: -#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7032 "VideoSupport.c" - { - VideoRow* _tmp11_; -#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = self->priv->backing_row; -#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7039 "VideoSupport.c" - } -#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 7047 "VideoSupport.c" - } -#line 715 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = self->priv->backing_row; -#line 715 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_->rating = rating; -#line 7053 "VideoSupport.c" - } - __finally526: - { - VideoRow* _tmp13_; -#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = self->priv->backing_row; -#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7062 "VideoSupport.c" - } -#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 7072 "VideoSupport.c" - } - } -#line 718 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp14_ = alteration_new ("metadata", "rating"); -#line 718 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = _tmp14_; -#line 718 "/home/jens/Source/shotwell/src/VideoSupport.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp15_); -#line 718 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _alteration_unref0 (_tmp15_); -#line 7083 "VideoSupport.c" -} - - -static void -video_real_increase_rating (MediaSource* base) -{ - Video * self; - GError * _inner_error_ = NULL; -#line 721 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 7094 "VideoSupport.c" - { - VideoRow* _tmp0_; -#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7101 "VideoSupport.c" - { - VideoRow* _tmp1_; - Rating _tmp2_; -#line 723 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 723 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->rating; -#line 723 "/home/jens/Source/shotwell/src/VideoSupport.vala" - media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), rating_increase (_tmp2_)); -#line 7111 "VideoSupport.c" - } - __finally528: - { - VideoRow* _tmp3_; -#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7120 "VideoSupport.c" - } -#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 7130 "VideoSupport.c" - } - } -} - - -static void -video_real_decrease_rating (MediaSource* base) -{ - Video * self; - GError * _inner_error_ = NULL; -#line 727 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 7143 "VideoSupport.c" - { - VideoRow* _tmp0_; -#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7150 "VideoSupport.c" - { - VideoRow* _tmp1_; - Rating _tmp2_; -#line 729 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 729 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->rating; -#line 729 "/home/jens/Source/shotwell/src/VideoSupport.vala" - media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), rating_decrease (_tmp2_)); -#line 7160 "VideoSupport.c" - } - __finally529: - { - VideoRow* _tmp3_; -#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7169 "VideoSupport.c" - } -#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 7179 "VideoSupport.c" - } - } -} - - -static gboolean -video_real_is_trashed (MediaSource* base) -{ - Video * self; - gboolean result = FALSE; -#line 733 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 734 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = video_is_flag_set (self, VIDEO_FLAG_TRASH); -#line 734 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 7196 "VideoSupport.c" -} - - -static gboolean -video_real_is_offline (Monitorable* base) -{ - Video * self; - gboolean result = FALSE; -#line 737 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 738 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = video_is_flag_set (self, VIDEO_FLAG_OFFLINE); -#line 738 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 7211 "VideoSupport.c" -} - - -static void -video_real_mark_offline (Monitorable* base) -{ - Video * self; -#line 741 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 742 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_add_flags (self, VIDEO_FLAG_OFFLINE, NULL); -#line 7223 "VideoSupport.c" -} - - -static void -video_real_mark_online (Monitorable* base) -{ - Video * self; - gboolean _tmp0_ = FALSE; -#line 745 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 746 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_remove_flags (self, VIDEO_FLAG_OFFLINE, NULL); -#line 748 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!video_get_is_interpretable (self)) { -#line 748 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = video_has_interpreter_state_changed (); -#line 7240 "VideoSupport.c" - } else { -#line 748 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = FALSE; -#line 7244 "VideoSupport.c" - } -#line 748 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp0_) { -#line 7248 "VideoSupport.c" - VideoInterpretableResults* _tmp1_; - VideoInterpretableResults* _tmp2_; -#line 749 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = video_check_is_interpretable (self); -#line 749 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_; -#line 749 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_interpretable_results_foreground_finish (_tmp2_); -#line 749 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_interpretable_results_unref0 (_tmp2_); -#line 7259 "VideoSupport.c" - } -} - - -static void -video_real_trash (MediaSource* base) -{ - Video * self; -#line 752 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 753 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_add_flags (self, VIDEO_FLAG_TRASH, NULL); -#line 7272 "VideoSupport.c" -} - - -static void -video_real_untrash (MediaSource* base) -{ - Video * self; -#line 756 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 757 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_remove_flags (self, VIDEO_FLAG_TRASH, NULL); -#line 7284 "VideoSupport.c" -} - - -static gboolean -video_real_is_flagged (Flaggable* base) -{ - Video * self; - gboolean result = FALSE; -#line 760 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 761 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = video_is_flag_set (self, VIDEO_FLAG_FLAGGED); -#line 761 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 7299 "VideoSupport.c" -} - - -static void -video_real_mark_flagged (Flaggable* base) -{ - Video * self; - Alteration* _tmp0_; - Alteration* _tmp1_; -#line 764 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 765 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = alteration_new ("metadata", "flagged"); -#line 765 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_; -#line 765 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_add_flags (self, VIDEO_FLAG_FLAGGED, _tmp1_); -#line 765 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _alteration_unref0 (_tmp1_); -#line 7319 "VideoSupport.c" -} - - -static void -video_real_mark_unflagged (Flaggable* base) -{ - Video * self; - Alteration* _tmp0_; - Alteration* _tmp1_; -#line 768 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 769 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = alteration_new ("metadata", "flagged"); -#line 769 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_; -#line 769 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_remove_flags (self, VIDEO_FLAG_FLAGGED, _tmp1_); -#line 769 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _alteration_unref0 (_tmp1_); -#line 7339 "VideoSupport.c" -} - - -static void -video_real_get_event_id (MediaSource* base, - EventID* result) -{ - Video * self; - GError * _inner_error_ = NULL; -#line 772 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 7351 "VideoSupport.c" - { - VideoRow* _tmp0_; -#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7358 "VideoSupport.c" - { - VideoRow* _tmp1_; - EventID _tmp2_; -#line 774 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 774 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->event_id; -#line 774 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *result = _tmp2_; -#line 7368 "VideoSupport.c" - { - VideoRow* _tmp3_; -#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7375 "VideoSupport.c" - } -#line 774 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 7379 "VideoSupport.c" - } - __finally530: - { - VideoRow* _tmp4_; -#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7388 "VideoSupport.c" - } -#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 7396 "VideoSupport.c" - } -} - - -static gchar* -video_real_to_string (DataObject* base) -{ - Video * self; - gchar* result = NULL; - GError * _inner_error_ = NULL; -#line 778 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 7409 "VideoSupport.c" - { - VideoRow* _tmp0_; -#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7416 "VideoSupport.c" - { - VideoRow* _tmp1_; - VideoID _tmp2_; - gint64 _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - VideoRow* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->video_id; -#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_.id; -#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp3_); -#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = _tmp4_; -#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = self->priv->backing_row; -#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = _tmp6_->filepath; -#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = g_strdup_printf ("[%s] %s", _tmp5_, _tmp7_); -#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = _tmp8_; -#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp5_); -#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp9_; -#line 7449 "VideoSupport.c" - { - VideoRow* _tmp10_; -#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = self->priv->backing_row; -#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7456 "VideoSupport.c" - } -#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 7460 "VideoSupport.c" - } - __finally531: - { - VideoRow* _tmp11_; -#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = self->priv->backing_row; -#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7469 "VideoSupport.c" - } -#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 7477 "VideoSupport.c" - } -} - - -void -video_get_video_id (Video* self, - VideoID* result) -{ - GError * _inner_error_ = NULL; -#line 784 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (IS_VIDEO (self)); -#line 7489 "VideoSupport.c" - { - VideoRow* _tmp0_; -#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7496 "VideoSupport.c" - { - VideoRow* _tmp1_; - VideoID _tmp2_; -#line 786 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 786 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->video_id; -#line 786 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *result = _tmp2_; -#line 7506 "VideoSupport.c" - { - VideoRow* _tmp3_; -#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7513 "VideoSupport.c" - } -#line 786 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 7517 "VideoSupport.c" - } - __finally532: - { - VideoRow* _tmp4_; -#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7526 "VideoSupport.c" - } -#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 7534 "VideoSupport.c" - } -} - - -static time_t -video_real_get_exposure_time (Dateable* base) -{ - Video * self; - time_t result = 0; - GError * _inner_error_ = NULL; -#line 790 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 7547 "VideoSupport.c" - { - VideoRow* _tmp0_; - time_t _tmp5_ = 0; -#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7555 "VideoSupport.c" - { - VideoRow* _tmp1_; - time_t _tmp2_; -#line 792 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 792 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->exposure_time; -#line 792 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp2_; -#line 7565 "VideoSupport.c" - { - VideoRow* _tmp3_; -#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7572 "VideoSupport.c" - } -#line 792 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 7576 "VideoSupport.c" - } - __finally533: - { - VideoRow* _tmp4_; -#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7585 "VideoSupport.c" - } -#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp5_; -#line 7593 "VideoSupport.c" - } -} - - -static void -video_real_set_exposure_time (Dateable* base, - time_t time) -{ - Video * self; - Alteration* _tmp10_; - Alteration* _tmp11_; - GError * _inner_error_ = NULL; -#line 796 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 7608 "VideoSupport.c" - { - VideoRow* _tmp0_; -#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7615 "VideoSupport.c" - { - VideoRow* _tmp8_; - { - VideoTable* _tmp1_; - VideoTable* _tmp2_; - VideoRow* _tmp3_; - VideoID _tmp4_; -#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = video_table_get_instance (); -#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_; -#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = _tmp3_->video_id; -#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_table_set_exposure_time (_tmp2_, &_tmp4_, time, &_inner_error_); -#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp2_); -#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7637 "VideoSupport.c" - goto __catch535_g_error; - } - } - goto __finally535; - __catch535_g_error: - { - GError* e = NULL; - GError* _tmp5_; - const gchar* _tmp6_; -#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala" - e = _inner_error_; -#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 801 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = e; -#line 801 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = _tmp5_->message; -#line 801 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_debug ("VideoSupport.vala:801: Warning - %s", _tmp6_); -#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (e); -#line 7659 "VideoSupport.c" - } - __finally535: -#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7664 "VideoSupport.c" - { - VideoRow* _tmp7_; -#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = self->priv->backing_row; -#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7671 "VideoSupport.c" - } -#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 7679 "VideoSupport.c" - } -#line 803 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = self->priv->backing_row; -#line 803 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_->exposure_time = time; -#line 7685 "VideoSupport.c" - } - __finally534: - { - VideoRow* _tmp9_; -#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = self->priv->backing_row; -#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7694 "VideoSupport.c" - } -#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 7704 "VideoSupport.c" - } - } -#line 806 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = alteration_new ("metadata", "exposure-time"); -#line 806 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = _tmp10_; -#line 806 "/home/jens/Source/shotwell/src/VideoSupport.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp11_); -#line 806 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _alteration_unref0 (_tmp11_); -#line 7715 "VideoSupport.c" -} - - -void -video_get_frame_dimensions (Video* self, - Dimensions* result) -{ - GError * _inner_error_ = NULL; -#line 809 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (IS_VIDEO (self)); -#line 7726 "VideoSupport.c" - { - VideoRow* _tmp0_; -#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7733 "VideoSupport.c" - { - VideoRow* _tmp1_; - gint _tmp2_; - VideoRow* _tmp3_; - gint _tmp4_; - Dimensions _tmp5_ = {0}; -#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->width; -#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = _tmp3_->height; -#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala" - dimensions_init (&_tmp5_, _tmp2_, _tmp4_); -#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *result = _tmp5_; -#line 7752 "VideoSupport.c" - { - VideoRow* _tmp6_; -#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = self->priv->backing_row; -#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7759 "VideoSupport.c" - } -#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 7763 "VideoSupport.c" - } - __finally536: - { - VideoRow* _tmp7_; -#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = self->priv->backing_row; -#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7772 "VideoSupport.c" - } -#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 7780 "VideoSupport.c" - } -} - - -static void -video_real_get_dimensions (MediaSource* base, - PhotoException disallowed_steps, - Dimensions* result) -{ - Video * self; - Dimensions _tmp0_ = {0}; -#line 815 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 816 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_get_frame_dimensions (self, &_tmp0_); -#line 816 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *result = _tmp0_; -#line 816 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 7800 "VideoSupport.c" -} - - -static guint64 -video_real_get_filesize (MediaSource* base) -{ - Video * self; - guint64 result = 0ULL; -#line 819 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 820 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = media_source_get_master_filesize (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 820 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 7815 "VideoSupport.c" -} - - -static guint64 -video_real_get_master_filesize (MediaSource* base) -{ - Video * self; - guint64 result = 0ULL; - GError * _inner_error_ = NULL; -#line 823 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 7827 "VideoSupport.c" - { - VideoRow* _tmp0_; - guint64 _tmp5_ = 0ULL; -#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7835 "VideoSupport.c" - { - VideoRow* _tmp1_; - gint64 _tmp2_; -#line 825 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 825 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->filesize; -#line 825 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = (guint64) _tmp2_; -#line 7845 "VideoSupport.c" - { - VideoRow* _tmp3_; -#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7852 "VideoSupport.c" - } -#line 825 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 7856 "VideoSupport.c" - } - __finally537: - { - VideoRow* _tmp4_; -#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7865 "VideoSupport.c" - } -#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp5_; -#line 7873 "VideoSupport.c" - } -} - - -static time_t -video_real_get_timestamp (MediaSource* base) -{ - Video * self; - time_t result = 0; - GError * _inner_error_ = NULL; -#line 829 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 7886 "VideoSupport.c" - { - VideoRow* _tmp0_; - time_t _tmp5_ = 0; -#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7894 "VideoSupport.c" - { - VideoRow* _tmp1_; - time_t _tmp2_; -#line 831 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 831 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->timestamp; -#line 831 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp2_; -#line 7904 "VideoSupport.c" - { - VideoRow* _tmp3_; -#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7911 "VideoSupport.c" - } -#line 831 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 7915 "VideoSupport.c" - } - __finally538: - { - VideoRow* _tmp4_; -#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7924 "VideoSupport.c" - } -#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp5_; -#line 7932 "VideoSupport.c" - } -} - - -static void -video_real_set_master_timestamp (Monitorable* base, - GFileInfo* info) -{ - Video * self; - GTimeVal time_val = {0}; - GTimeVal _tmp0_ = {0}; - Alteration* _tmp18_; - Alteration* _tmp19_; - GError * _inner_error_ = NULL; -#line 835 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 835 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 836 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_file_info_get_modification_time (info, &_tmp0_); -#line 836 "/home/jens/Source/shotwell/src/VideoSupport.vala" - time_val = _tmp0_; -#line 7955 "VideoSupport.c" - { - { - VideoRow* _tmp1_; -#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7963 "VideoSupport.c" - { - VideoRow* _tmp2_; - time_t _tmp3_; - GTimeVal _tmp4_; - glong _tmp5_; - VideoTable* _tmp7_; - VideoTable* _tmp8_; - VideoRow* _tmp9_; - VideoID _tmp10_; - GTimeVal _tmp11_; - glong _tmp12_; - VideoRow* _tmp13_; - GTimeVal _tmp14_; - glong _tmp15_; -#line 840 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = self->priv->backing_row; -#line 840 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_->timestamp; -#line 840 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = time_val; -#line 840 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = _tmp4_.tv_sec; -#line 840 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp3_ == ((time_t) _tmp5_)) { -#line 7988 "VideoSupport.c" - { - VideoRow* _tmp6_; -#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = self->priv->backing_row; -#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7995 "VideoSupport.c" - } -#line 841 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 7999 "VideoSupport.c" - } -#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = video_table_get_instance (); -#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = _tmp7_; -#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = self->priv->backing_row; -#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = _tmp9_->video_id; -#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = time_val; -#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = _tmp11_.tv_sec; -#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_table_set_timestamp (_tmp8_, &_tmp10_, (time_t) _tmp12_, &_inner_error_); -#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp8_); -#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8019 "VideoSupport.c" - goto __finally540; - } -#line 844 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = self->priv->backing_row; -#line 844 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp14_ = time_val; -#line 844 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = _tmp14_.tv_sec; -#line 844 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_->timestamp = (time_t) _tmp15_; -#line 8030 "VideoSupport.c" - } - __finally540: - { - VideoRow* _tmp16_; -#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp16_ = self->priv->backing_row; -#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8039 "VideoSupport.c" - } -#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 8045 "VideoSupport.c" - goto __catch539_database_error; - } -#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 8054 "VideoSupport.c" - } - } - } - goto __finally539; - __catch539_database_error: - { - GError* err = NULL; - GError* _tmp17_; -#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala" - err = _inner_error_; -#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 847 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp17_ = err; -#line 847 "/home/jens/Source/shotwell/src/VideoSupport.vala" - app_window_database_error (_tmp17_); -#line 849 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (err); -#line 849 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 8075 "VideoSupport.c" - } - __finally539: -#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 8086 "VideoSupport.c" - } -#line 852 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp18_ = alteration_new ("metadata", "master-timestamp"); -#line 852 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp19_ = _tmp18_; -#line 852 "/home/jens/Source/shotwell/src/VideoSupport.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp19_); -#line 852 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _alteration_unref0 (_tmp19_); -#line 8096 "VideoSupport.c" -} - - -gchar* -video_get_filename (Video* self) -{ - gchar* result = NULL; - GError * _inner_error_ = NULL; -#line 855 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO (self), NULL); -#line 8107 "VideoSupport.c" - { - VideoRow* _tmp0_; -#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 8114 "VideoSupport.c" - { - VideoRow* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; -#line 857 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 857 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->filepath; -#line 857 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 857 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp3_; -#line 8127 "VideoSupport.c" - { - VideoRow* _tmp4_; -#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8134 "VideoSupport.c" - } -#line 857 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 8138 "VideoSupport.c" - } - __finally541: - { - VideoRow* _tmp5_; -#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = self->priv->backing_row; -#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8147 "VideoSupport.c" - } -#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 8155 "VideoSupport.c" - } -} - - -static GFile* -video_real_get_file (MediaSource* base) -{ - Video * self; - GFile* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; -#line 861 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = video_get_filename (self); -#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_; -#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = g_file_new_for_path (_tmp1_); -#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_; -#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp1_); -#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp3_; -#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 8185 "VideoSupport.c" -} - - -static GFile* -video_real_get_master_file (MediaSource* base) -{ - Video * self; - GFile* result = NULL; - GFile* _tmp0_; -#line 865 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 866 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 866 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp0_; -#line 866 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 8203 "VideoSupport.c" -} - - -void -video_export (Video* self, - GFile* dest_file, - GError** error) -{ - GFile* source_file = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - GError * _inner_error_ = NULL; -#line 869 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (IS_VIDEO (self)); -#line 869 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (G_IS_FILE (dest_file)); -#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = video_get_filename (self); -#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_; -#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = g_file_new_for_path (_tmp1_); -#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_; -#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp1_); -#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala" - source_file = _tmp3_; -#line 871 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_file_copy (source_file, dest_file, G_FILE_COPY_OVERWRITE | G_FILE_COPY_TARGET_DEFAULT_PERMS, NULL, NULL, NULL, &_inner_error_); -#line 871 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 871 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_propagate_error (error, _inner_error_); -#line 871 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (source_file); -#line 871 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 8244 "VideoSupport.c" - } -#line 869 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (source_file); -#line 8248 "VideoSupport.c" -} - - -gdouble -video_get_clip_duration (Video* self) -{ - gdouble result = 0.0; - GError * _inner_error_ = NULL; -#line 875 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO (self), 0.0); -#line 8259 "VideoSupport.c" - { - VideoRow* _tmp0_; - gdouble _tmp5_ = 0.0; -#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 8267 "VideoSupport.c" - { - VideoRow* _tmp1_; - gdouble _tmp2_; -#line 877 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 877 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->clip_duration; -#line 877 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp2_; -#line 8277 "VideoSupport.c" - { - VideoRow* _tmp3_; -#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8284 "VideoSupport.c" - } -#line 877 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 8288 "VideoSupport.c" - } - __finally542: - { - VideoRow* _tmp4_; -#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8297 "VideoSupport.c" - } -#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp5_; -#line 8305 "VideoSupport.c" - } -} - - -gboolean -video_get_is_interpretable (Video* self) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 881 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO (self), FALSE); -#line 8317 "VideoSupport.c" - { - VideoRow* _tmp0_; - gboolean _tmp5_ = FALSE; -#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 8325 "VideoSupport.c" - { - VideoRow* _tmp1_; - gboolean _tmp2_; -#line 883 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 883 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->is_interpretable; -#line 883 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp2_; -#line 8335 "VideoSupport.c" - { - VideoRow* _tmp3_; -#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8342 "VideoSupport.c" - } -#line 883 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 8346 "VideoSupport.c" - } - __finally543: - { - VideoRow* _tmp4_; -#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8355 "VideoSupport.c" - } -#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp5_; -#line 8363 "VideoSupport.c" - } -} - - -static void -video_set_is_interpretable (Video* self, - gboolean is_interpretable) -{ - GError * _inner_error_ = NULL; -#line 887 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (IS_VIDEO (self)); -#line 8375 "VideoSupport.c" - { - VideoRow* _tmp0_; -#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 8382 "VideoSupport.c" - { - VideoRow* _tmp1_; - gboolean _tmp2_; - VideoRow* _tmp4_; -#line 889 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 889 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->is_interpretable; -#line 889 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp2_ == is_interpretable) { -#line 8393 "VideoSupport.c" - { - VideoRow* _tmp3_; -#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8400 "VideoSupport.c" - } -#line 890 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 8404 "VideoSupport.c" - } -#line 892 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 892 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_->is_interpretable = is_interpretable; -#line 8410 "VideoSupport.c" - } - __finally544: - { - VideoRow* _tmp5_; -#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = self->priv->backing_row; -#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8419 "VideoSupport.c" - } -#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 8429 "VideoSupport.c" - } - } - { - VideoTable* _tmp6_; - VideoTable* _tmp7_; - VideoID _tmp8_ = {0}; -#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = video_table_get_instance (); -#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = _tmp6_; -#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_get_video_id (self, &_tmp8_); -#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_table_update_is_interpretable (_tmp7_, &_tmp8_, is_interpretable, &_inner_error_); -#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp7_); -#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 8450 "VideoSupport.c" - goto __catch545_database_error; - } -#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 8459 "VideoSupport.c" - } - } - goto __finally545; - __catch545_database_error: - { - GError* e = NULL; - GError* _tmp9_; -#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala" - e = _inner_error_; -#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 898 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = e; -#line 898 "/home/jens/Source/shotwell/src/VideoSupport.vala" - app_window_database_error (_tmp9_); -#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (e); -#line 8477 "VideoSupport.c" - } - __finally545: -#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 8488 "VideoSupport.c" - } -} - - -VideoInterpretableResults* -video_check_is_interpretable (Video* self) -{ - VideoInterpretableResults* result = NULL; - VideoInterpretableResults* results = NULL; - VideoInterpretableResults* _tmp0_; - gdouble clip_duration = 0.0; - GdkPixbuf* preview_frame = NULL; - VideoReader* backing_file_reader = NULL; - GFile* _tmp1_; - GFile* _tmp2_; - VideoReader* _tmp3_; - VideoReader* _tmp4_; - GFile* _tmp13_; - GFile* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - VideoInterpretableResults* _tmp21_; - VideoInterpretableResults* _tmp22_; - VideoInterpretableResults* _tmp23_; - GdkPixbuf* _tmp24_; - GdkPixbuf* _tmp25_; - GError * _inner_error_ = NULL; -#line 905 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO (self), NULL); -#line 906 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = video_interpretable_results_new (self); -#line 906 "/home/jens/Source/shotwell/src/VideoSupport.vala" - results = _tmp0_; -#line 908 "/home/jens/Source/shotwell/src/VideoSupport.vala" - clip_duration = -1.0; -#line 909 "/home/jens/Source/shotwell/src/VideoSupport.vala" - preview_frame = NULL; -#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_; -#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = video_reader_new (_tmp2_); -#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = _tmp3_; -#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp2_); -#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala" - backing_file_reader = _tmp4_; -#line 8538 "VideoSupport.c" - { - gdouble _tmp5_ = 0.0; - VideoReader* _tmp6_; - VideoReader* _tmp7_; - GdkPixbuf* _tmp8_; -#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = backing_file_reader; -#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = video_reader_read_clip_duration (_tmp6_, &_inner_error_); -#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == VIDEO_ERROR) { -#line 8552 "VideoSupport.c" - goto __catch546_video_error; - } -#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_reader_unref0 (backing_file_reader); -#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (preview_frame); -#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_interpretable_results_unref0 (results); -#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 8567 "VideoSupport.c" - } -#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" - clip_duration = _tmp5_; -#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = backing_file_reader; -#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = video_reader_read_preview_frame (_tmp7_); -#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (preview_frame); -#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala" - preview_frame = _tmp8_; -#line 8579 "VideoSupport.c" - } - goto __finally546; - __catch546_video_error: - { - GError* e = NULL; - VideoInterpretableResults* _tmp9_; - VideoInterpretableResults* _tmp10_; -#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" - e = _inner_error_; -#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 918 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = results; -#line 918 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_->update_interpretable = video_get_is_interpretable (self); -#line 919 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = results; -#line 919 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_->is_interpretable = FALSE; -#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = results; -#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (e); -#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_reader_unref0 (backing_file_reader); -#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (preview_frame); -#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 8609 "VideoSupport.c" - } - __finally546: -#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_reader_unref0 (backing_file_reader); -#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (preview_frame); -#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_interpretable_results_unref0 (results); -#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 8626 "VideoSupport.c" - } -#line 925 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (video_get_is_interpretable (self)) { -#line 8630 "VideoSupport.c" - VideoInterpretableResults* _tmp11_; - VideoInterpretableResults* _tmp12_; -#line 926 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = results; -#line 926 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_->update_interpretable = FALSE; -#line 927 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = results; -#line 927 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_->is_interpretable = TRUE; -#line 929 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = results; -#line 929 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_reader_unref0 (backing_file_reader); -#line 929 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (preview_frame); -#line 929 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 8649 "VideoSupport.c" - } -#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp14_ = _tmp13_; -#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = g_file_get_basename (_tmp14_); -#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp16_ = _tmp15_; -#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_debug ("VideoSupport.vala:932: video %s has become interpretable", _tmp16_); -#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp16_); -#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp14_); -#line 8665 "VideoSupport.c" - { - VideoRow* _tmp17_; -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp17_ = self->priv->backing_row; -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 8672 "VideoSupport.c" - { - VideoRow* _tmp18_; - gdouble _tmp19_; -#line 936 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp18_ = self->priv->backing_row; -#line 936 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp19_ = clip_duration; -#line 936 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp18_->clip_duration = _tmp19_; -#line 8682 "VideoSupport.c" - } - __finally547: - { - VideoRow* _tmp20_; -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp20_ = self->priv->backing_row; -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8691 "VideoSupport.c" - } -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_reader_unref0 (backing_file_reader); -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (preview_frame); -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_interpretable_results_unref0 (results); -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 8707 "VideoSupport.c" - } - } -#line 939 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp21_ = results; -#line 939 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp21_->update_interpretable = TRUE; -#line 940 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp22_ = results; -#line 940 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp22_->is_interpretable = TRUE; -#line 941 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp23_ = results; -#line 941 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp24_ = preview_frame; -#line 941 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp25_ = _g_object_ref0 (_tmp24_); -#line 941 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp23_->new_thumbnail); -#line 941 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp23_->new_thumbnail = _tmp25_; -#line 943 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = results; -#line 943 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_reader_unref0 (backing_file_reader); -#line 943 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (preview_frame); -#line 943 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 8736 "VideoSupport.c" -} - - -static void -video_real_destroy (DataSource* base) -{ - Video * self; - VideoID video_id = {0}; - VideoID _tmp0_ = {0}; - GError * _inner_error_ = NULL; -#line 946 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 947 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_get_video_id (self, &_tmp0_); -#line 947 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_id = _tmp0_; -#line 949 "/home/jens/Source/shotwell/src/VideoSupport.vala" - thumbnail_cache_remove (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 8755 "VideoSupport.c" - { - VideoTable* _tmp1_; - VideoTable* _tmp2_; - VideoID _tmp3_; -#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = video_table_get_instance (); -#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_; -#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = video_id; -#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_table_remove (_tmp2_, &_tmp3_, &_inner_error_); -#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp2_); -#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 8774 "VideoSupport.c" - goto __catch548_database_error; - } -#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 8783 "VideoSupport.c" - } - } - goto __finally548; - __catch548_database_error: - { - GError* err = NULL; - gchar* _tmp4_; - gchar* _tmp5_; -#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala" - err = _inner_error_; -#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = _tmp4_; -#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_error ("VideoSupport.vala:954: failed to remove video %s from video table", _tmp5_); -#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp5_); -#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (err); -#line 8806 "VideoSupport.c" - } - __finally548: -#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 8817 "VideoSupport.c" - } -#line 957 "/home/jens/Source/shotwell/src/VideoSupport.vala" - DATA_SOURCE_CLASS (video_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_VIDEO_SOURCE, VideoSource), TYPE_DATA_SOURCE, DataSource)); -#line 8821 "VideoSupport.c" -} - - -static gboolean -video_real_internal_delete_backing (DataSource* base, - GError** error) -{ - Video * self; - gboolean result = FALSE; - gboolean ret = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 960 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 961 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ret = media_source_delete_original_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = DATA_SOURCE_CLASS (video_parent_class)->internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_VIDEO_SOURCE, VideoSource), TYPE_DATA_SOURCE, DataSource), &_inner_error_); -#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8843 "VideoSupport.c" - gboolean _tmp2_ = FALSE; -#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_propagate_error (error, _inner_error_); -#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp2_; -#line 8849 "VideoSupport.c" - } -#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp1_) { -#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = ret; -#line 8855 "VideoSupport.c" - } else { -#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = FALSE; -#line 8859 "VideoSupport.c" - } -#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp0_; -#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 8865 "VideoSupport.c" -} - - -static void -video_notify_flags_altered (Video* self, - Alteration* additional_alteration) -{ - Alteration* alteration = NULL; - Alteration* _tmp0_; - Alteration* _tmp3_; -#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (IS_VIDEO (self)); -#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration)); -#line 968 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = alteration_new ("metadata", "flags"); -#line 968 "/home/jens/Source/shotwell/src/VideoSupport.vala" - alteration = _tmp0_; -#line 969 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (additional_alteration != NULL) { -#line 8886 "VideoSupport.c" - Alteration* _tmp1_; - Alteration* _tmp2_; -#line 970 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = alteration; -#line 970 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = alteration_compress (_tmp1_, additional_alteration); -#line 970 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _alteration_unref0 (alteration); -#line 970 "/home/jens/Source/shotwell/src/VideoSupport.vala" - alteration = _tmp2_; -#line 8897 "VideoSupport.c" - } -#line 972 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = alteration; -#line 972 "/home/jens/Source/shotwell/src/VideoSupport.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp3_); -#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _alteration_unref0 (alteration); -#line 8905 "VideoSupport.c" -} - - -guint64 -video_add_flags (Video* self, - guint64 flags_to_add, - Alteration* additional_alteration) -{ - guint64 result = 0ULL; - guint64 new_flags = 0ULL; - GError * _inner_error_ = NULL; -#line 975 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO (self), 0ULL); -#line 975 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL); -#line 8921 "VideoSupport.c" - { - VideoRow* _tmp0_; -#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 8928 "VideoSupport.c" - { - VideoRow* _tmp1_; - guint64 _tmp2_; - VideoRow* _tmp3_; - guint64 _tmp4_; - guint64 _tmp5_; - VideoRow* _tmp21_; - guint64 _tmp22_; -#line 978 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 978 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->flags; -#line 978 "/home/jens/Source/shotwell/src/VideoSupport.vala" - new_flags = media_source_internal_add_flags (_tmp2_, flags_to_add); -#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = _tmp3_->flags; -#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = new_flags; -#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp4_ == _tmp5_) { -#line 8951 "VideoSupport.c" - VideoRow* _tmp6_; - guint64 _tmp7_; -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = self->priv->backing_row; -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = _tmp6_->flags; -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp7_; -#line 8960 "VideoSupport.c" - { - VideoRow* _tmp8_; -#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = self->priv->backing_row; -#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8967 "VideoSupport.c" - } -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 8971 "VideoSupport.c" - } - { - VideoTable* _tmp9_; - VideoTable* _tmp10_; - VideoID _tmp11_ = {0}; - guint64 _tmp12_; -#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = video_table_get_instance (); -#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = _tmp9_; -#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_get_video_id (self, &_tmp11_); -#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = new_flags; -#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_table_set_flags (_tmp10_, &_tmp11_, _tmp12_, &_inner_error_); -#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp10_); -#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8992 "VideoSupport.c" - guint64 _tmp14_ = 0ULL; -#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 8996 "VideoSupport.c" - goto __catch550_database_error; - } - { - VideoRow* _tmp13_; -#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = self->priv->backing_row; -#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 9005 "VideoSupport.c" - } -#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp14_; -#line 9013 "VideoSupport.c" - } - } - goto __finally550; - __catch550_database_error: - { - GError* e = NULL; - GError* _tmp15_; - VideoRow* _tmp16_; - guint64 _tmp17_; -#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala" - e = _inner_error_; -#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 985 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = e; -#line 985 "/home/jens/Source/shotwell/src/VideoSupport.vala" - app_window_database_error (_tmp15_); -#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp16_ = self->priv->backing_row; -#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp17_ = _tmp16_->flags; -#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp17_; -#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (e); -#line 9039 "VideoSupport.c" - { - VideoRow* _tmp18_; -#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp18_ = self->priv->backing_row; -#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 9046 "VideoSupport.c" - } -#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 9050 "VideoSupport.c" - } - __finally550: -#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9055 "VideoSupport.c" - guint64 _tmp20_ = 0ULL; - { - VideoRow* _tmp19_; -#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp19_ = self->priv->backing_row; -#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 9063 "VideoSupport.c" - } -#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp20_; -#line 9071 "VideoSupport.c" - } -#line 989 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp21_ = self->priv->backing_row; -#line 989 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp22_ = new_flags; -#line 989 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp21_->flags = _tmp22_; -#line 9079 "VideoSupport.c" - } - __finally549: - { - VideoRow* _tmp23_; -#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp23_ = self->priv->backing_row; -#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 9088 "VideoSupport.c" - } -#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9092 "VideoSupport.c" - guint64 _tmp24_ = 0ULL; -#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp24_; -#line 9100 "VideoSupport.c" - } - } -#line 992 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_notify_flags_altered (self, additional_alteration); -#line 994 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = new_flags; -#line 994 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 9109 "VideoSupport.c" -} - - -guint64 -video_remove_flags (Video* self, - guint64 flags_to_remove, - Alteration* additional_alteration) -{ - guint64 result = 0ULL; - guint64 new_flags = 0ULL; - GError * _inner_error_ = NULL; -#line 997 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO (self), 0ULL); -#line 997 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL); -#line 9125 "VideoSupport.c" - { - VideoRow* _tmp0_; -#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 9132 "VideoSupport.c" - { - VideoRow* _tmp1_; - guint64 _tmp2_; - VideoRow* _tmp3_; - guint64 _tmp4_; - guint64 _tmp5_; - VideoRow* _tmp21_; - guint64 _tmp22_; -#line 1000 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 1000 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->flags; -#line 1000 "/home/jens/Source/shotwell/src/VideoSupport.vala" - new_flags = media_source_internal_remove_flags (_tmp2_, flags_to_remove); -#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = _tmp3_->flags; -#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = new_flags; -#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp4_ == _tmp5_) { -#line 9155 "VideoSupport.c" - VideoRow* _tmp6_; - guint64 _tmp7_; -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = self->priv->backing_row; -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = _tmp6_->flags; -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp7_; -#line 9164 "VideoSupport.c" - { - VideoRow* _tmp8_; -#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = self->priv->backing_row; -#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 9171 "VideoSupport.c" - } -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 9175 "VideoSupport.c" - } - { - VideoTable* _tmp9_; - VideoTable* _tmp10_; - VideoID _tmp11_ = {0}; - guint64 _tmp12_; -#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = video_table_get_instance (); -#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = _tmp9_; -#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_get_video_id (self, &_tmp11_); -#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = new_flags; -#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_table_set_flags (_tmp10_, &_tmp11_, _tmp12_, &_inner_error_); -#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp10_); -#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9196 "VideoSupport.c" - guint64 _tmp14_ = 0ULL; -#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 9200 "VideoSupport.c" - goto __catch552_database_error; - } - { - VideoRow* _tmp13_; -#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = self->priv->backing_row; -#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 9209 "VideoSupport.c" - } -#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp14_; -#line 9217 "VideoSupport.c" - } - } - goto __finally552; - __catch552_database_error: - { - GError* e = NULL; - GError* _tmp15_; - VideoRow* _tmp16_; - guint64 _tmp17_; -#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala" - e = _inner_error_; -#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 1007 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = e; -#line 1007 "/home/jens/Source/shotwell/src/VideoSupport.vala" - app_window_database_error (_tmp15_); -#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp16_ = self->priv->backing_row; -#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp17_ = _tmp16_->flags; -#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp17_; -#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (e); -#line 9243 "VideoSupport.c" - { - VideoRow* _tmp18_; -#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp18_ = self->priv->backing_row; -#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 9250 "VideoSupport.c" - } -#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 9254 "VideoSupport.c" - } - __finally552: -#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9259 "VideoSupport.c" - guint64 _tmp20_ = 0ULL; - { - VideoRow* _tmp19_; -#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp19_ = self->priv->backing_row; -#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 9267 "VideoSupport.c" - } -#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp20_; -#line 9275 "VideoSupport.c" - } -#line 1011 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp21_ = self->priv->backing_row; -#line 1011 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp22_ = new_flags; -#line 1011 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp21_->flags = _tmp22_; -#line 9283 "VideoSupport.c" - } - __finally551: - { - VideoRow* _tmp23_; -#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp23_ = self->priv->backing_row; -#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 9292 "VideoSupport.c" - } -#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9296 "VideoSupport.c" - guint64 _tmp24_ = 0ULL; -#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp24_; -#line 9304 "VideoSupport.c" - } - } -#line 1014 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_notify_flags_altered (self, additional_alteration); -#line 1016 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = new_flags; -#line 1016 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 9313 "VideoSupport.c" -} - - -gboolean -video_is_flag_set (Video* self, - guint64 flag) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 1019 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO (self), FALSE); -#line 9325 "VideoSupport.c" - { - VideoRow* _tmp0_; - gboolean _tmp5_ = FALSE; -#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->backing_row; -#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 9333 "VideoSupport.c" - { - VideoRow* _tmp1_; - guint64 _tmp2_; -#line 1021 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 1021 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_->flags; -#line 1021 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = media_source_internal_is_flag_set (_tmp2_, flag); -#line 9343 "VideoSupport.c" - { - VideoRow* _tmp3_; -#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->priv->backing_row; -#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 9350 "VideoSupport.c" - } -#line 1021 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 9354 "VideoSupport.c" - } - __finally553: - { - VideoRow* _tmp4_; -#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->priv->backing_row; -#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 9363 "VideoSupport.c" - } -#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return _tmp5_; -#line 9371 "VideoSupport.c" - } -} - - -static void -video_real_set_master_file (Monitorable* base, - GFile* file) -{ - Video * self; - gchar* new_filepath = NULL; - gchar* _tmp0_; - gchar* old_filepath = NULL; - const gchar* _tmp19_; - const gchar* _tmp20_; - GFile* _tmp21_; - GFile* _tmp22_; - Alteration* _tmp23_; - Alteration* _tmp24_; - GError * _inner_error_ = NULL; -#line 1025 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 1025 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 1026 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = g_file_get_path (file); -#line 1026 "/home/jens/Source/shotwell/src/VideoSupport.vala" - new_filepath = _tmp0_; -#line 1027 "/home/jens/Source/shotwell/src/VideoSupport.vala" - old_filepath = NULL; -#line 9401 "VideoSupport.c" - { - { - VideoRow* _tmp1_; -#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->priv->backing_row; -#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 9409 "VideoSupport.c" - { - VideoRow* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - VideoRow* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_; - VideoTable* _tmp9_; - VideoTable* _tmp10_; - VideoRow* _tmp11_; - VideoID _tmp12_; - const gchar* _tmp13_; - VideoRow* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; -#line 1030 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = self->priv->backing_row; -#line 1030 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_->filepath; -#line 1030 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = new_filepath; -#line 1030 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (g_strcmp0 (_tmp3_, _tmp4_) == 0) { -#line 9433 "VideoSupport.c" - { - VideoRow* _tmp5_; -#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = self->priv->backing_row; -#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 9440 "VideoSupport.c" - } -#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (old_filepath); -#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (new_filepath); -#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 9448 "VideoSupport.c" - } -#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = self->priv->backing_row; -#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = _tmp6_->filepath; -#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = g_strdup (_tmp7_); -#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (old_filepath); -#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala" - old_filepath = _tmp8_; -#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = video_table_get_instance (); -#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = _tmp9_; -#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = self->priv->backing_row; -#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = _tmp11_->video_id; -#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = new_filepath; -#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_table_set_filepath (_tmp10_, &_tmp12_, _tmp13_, &_inner_error_); -#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp10_); -#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9476 "VideoSupport.c" - goto __finally555; - } -#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp14_ = self->priv->backing_row; -#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = new_filepath; -#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp16_ = g_strdup (_tmp15_); -#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp14_->filepath); -#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp14_->filepath = _tmp16_; -#line 9489 "VideoSupport.c" - } - __finally555: - { - VideoRow* _tmp17_; -#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp17_ = self->priv->backing_row; -#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 9498 "VideoSupport.c" - } -#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 9504 "VideoSupport.c" - goto __catch554_database_error; - } -#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (old_filepath); -#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (new_filepath); -#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 9517 "VideoSupport.c" - } - } - } - goto __finally554; - __catch554_database_error: - { - GError* err = NULL; - GError* _tmp18_; -#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" - err = _inner_error_; -#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 1039 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp18_ = err; -#line 1039 "/home/jens/Source/shotwell/src/VideoSupport.vala" - app_window_database_error (_tmp18_); -#line 1041 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (err); -#line 1041 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (old_filepath); -#line 1041 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (new_filepath); -#line 1041 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 9542 "VideoSupport.c" - } - __finally554: -#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (old_filepath); -#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (new_filepath); -#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 9557 "VideoSupport.c" - } -#line 1044 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp19_ = old_filepath; -#line 1044 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _vala_assert (_tmp19_ != NULL, "old_filepath != null"); -#line 1045 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp20_ = old_filepath; -#line 1045 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp21_ = g_file_new_for_path (_tmp20_); -#line 1045 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp22_ = _tmp21_; -#line 1045 "/home/jens/Source/shotwell/src/VideoSupport.vala" - media_source_notify_master_replaced (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp22_, file); -#line 1045 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp22_); -#line 1047 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp23_ = alteration_new_from_list ("backing:master,metadata:name"); -#line 1047 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp24_ = _tmp23_; -#line 1047 "/home/jens/Source/shotwell/src/VideoSupport.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp24_); -#line 1047 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _alteration_unref0 (_tmp24_); -#line 1025 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (old_filepath); -#line 1025 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (new_filepath); -#line 9585 "VideoSupport.c" -} - - -VideoMetadata* -video_read_metadata (Video* self, - GError** error) -{ - VideoMetadata* result = NULL; - VideoMetadata* _tmp0_ = NULL; - GFile* _tmp1_; - GFile* _tmp2_; - VideoReader* _tmp3_; - VideoReader* _tmp4_; - VideoMetadata* _tmp5_; - VideoMetadata* _tmp6_; - VideoMetadata* _tmp7_; - GError * _inner_error_ = NULL; -#line 1050 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO (self), NULL); -#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_; -#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = video_reader_new (_tmp2_); -#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = _tmp3_; -#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = video_reader_read_metadata (_tmp4_, &_inner_error_); -#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = _tmp5_; -#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_reader_unref0 (_tmp4_); -#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp2_); -#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = _tmp6_; -#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_propagate_error (error, _inner_error_); -#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 9629 "VideoSupport.c" - } -#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = _tmp0_; -#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = NULL; -#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp7_; -#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _media_metadata_unref0 (_tmp0_); -#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 9641 "VideoSupport.c" -} - - -VideoInterpretableResults* -video_interpretable_results_construct (GType object_type, - Video* video) -{ - VideoInterpretableResults* self = NULL; - Video* _tmp0_; -#line 336 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO (video), NULL); -#line 336 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = (VideoInterpretableResults*) g_type_create_instance (object_type); -#line 337 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = _g_object_ref0 (video); -#line 337 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (self->video); -#line 337 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->video = _tmp0_; -#line 336 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return self; -#line 9663 "VideoSupport.c" -} - - -VideoInterpretableResults* -video_interpretable_results_new (Video* video) -{ -#line 336 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return video_interpretable_results_construct (VIDEO_TYPE_INTERPRETABLE_RESULTS, video); -#line 9672 "VideoSupport.c" -} - - -void -video_interpretable_results_foreground_finish (VideoInterpretableResults* self) -{ - gboolean _tmp0_; - GdkPixbuf* _tmp3_; - GError * _inner_error_ = NULL; -#line 340 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (VIDEO_IS_INTERPRETABLE_RESULTS (self)); -#line 341 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->update_interpretable; -#line 341 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp0_) { -#line 9688 "VideoSupport.c" - Video* _tmp1_; - gboolean _tmp2_; -#line 342 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = self->video; -#line 342 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = self->is_interpretable; -#line 342 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_set_is_interpretable (_tmp1_, _tmp2_); -#line 9697 "VideoSupport.c" - } -#line 344 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = self->new_thumbnail; -#line 344 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp3_ != NULL) { -#line 9703 "VideoSupport.c" - { - Video* _tmp4_; - GdkPixbuf* _tmp5_; - Video* _tmp6_; - GdkPixbuf* _tmp7_; - Video* _tmp8_; -#line 346 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = self->video; -#line 346 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = self->new_thumbnail; -#line 346 "/home/jens/Source/shotwell/src/VideoSupport.vala" - thumbnail_cache_replace (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), THUMBNAIL_CACHE_SIZE_BIG, _tmp5_, &_inner_error_); -#line 346 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9718 "VideoSupport.c" - goto __catch556_g_error; - } -#line 347 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = self->video; -#line 347 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = self->new_thumbnail; -#line 347 "/home/jens/Source/shotwell/src/VideoSupport.vala" - thumbnail_cache_replace (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), THUMBNAIL_CACHE_SIZE_MEDIUM, _tmp7_, &_inner_error_); -#line 347 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9729 "VideoSupport.c" - goto __catch556_g_error; - } -#line 349 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = self->video; -#line 349 "/home/jens/Source/shotwell/src/VideoSupport.vala" - thumbnail_source_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 9736 "VideoSupport.c" - } - goto __finally556; - __catch556_g_error: - { - GError* err = NULL; - Video* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - GError* _tmp12_; - const gchar* _tmp13_; -#line 345 "/home/jens/Source/shotwell/src/VideoSupport.vala" - err = _inner_error_; -#line 345 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _inner_error_ = NULL; -#line 351 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = self->video; -#line 351 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_OBJECT, DataObject)); -#line 351 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = _tmp10_; -#line 351 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = err; -#line 351 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = _tmp12_->message; -#line 351 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_message ("VideoSupport.vala:351: Unable to update video thumbnails for %s: %s", _tmp11_, _tmp13_); -#line 351 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp11_); -#line 345 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_error_free0 (err); -#line 9767 "VideoSupport.c" - } - __finally556: -#line 345 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 345 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 345 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_clear_error (&_inner_error_); -#line 345 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 9778 "VideoSupport.c" - } - } -} - - -static void -video_value_interpretable_results_init (GValue* value) -{ -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = NULL; -#line 9789 "VideoSupport.c" -} - - -static void -video_value_interpretable_results_free_value (GValue* value) -{ -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (value->data[0].v_pointer) { -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_interpretable_results_unref (value->data[0].v_pointer); -#line 9800 "VideoSupport.c" - } -} - - -static void -video_value_interpretable_results_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (src_value->data[0].v_pointer) { -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - dest_value->data[0].v_pointer = video_interpretable_results_ref (src_value->data[0].v_pointer); -#line 9813 "VideoSupport.c" - } else { -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - dest_value->data[0].v_pointer = NULL; -#line 9817 "VideoSupport.c" - } -} - - -static gpointer -video_value_interpretable_results_peek_pointer (const GValue* value) -{ -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return value->data[0].v_pointer; -#line 9827 "VideoSupport.c" -} - - -static gchar* -video_value_interpretable_results_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (collect_values[0].v_pointer) { -#line 9839 "VideoSupport.c" - VideoInterpretableResults * object; - object = collect_values[0].v_pointer; -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (object->parent_instance.g_class == NULL) { -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 9846 "VideoSupport.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 9850 "VideoSupport.c" - } -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = video_interpretable_results_ref (object); -#line 9854 "VideoSupport.c" - } else { -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = NULL; -#line 9858 "VideoSupport.c" - } -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 9862 "VideoSupport.c" -} - - -static gchar* -video_value_interpretable_results_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - VideoInterpretableResults ** object_p; - object_p = collect_values[0].v_pointer; -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!object_p) { -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 9878 "VideoSupport.c" - } -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!value->data[0].v_pointer) { -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *object_p = NULL; -#line 9884 "VideoSupport.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *object_p = value->data[0].v_pointer; -#line 9888 "VideoSupport.c" - } else { -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *object_p = video_interpretable_results_ref (value->data[0].v_pointer); -#line 9892 "VideoSupport.c" - } -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return NULL; -#line 9896 "VideoSupport.c" -} - - -GParamSpec* -video_param_spec_interpretable_results (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - VideoParamSpecInterpretableResults* spec; -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (g_type_is_a (object_type, VIDEO_TYPE_INTERPRETABLE_RESULTS), NULL); -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return G_PARAM_SPEC (spec); -#line 9916 "VideoSupport.c" -} - - -gpointer -video_value_get_interpretable_results (const GValue* value) -{ -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VIDEO_TYPE_INTERPRETABLE_RESULTS), NULL); -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return value->data[0].v_pointer; -#line 9927 "VideoSupport.c" -} - - -void -video_value_set_interpretable_results (GValue* value, - gpointer v_object) -{ - VideoInterpretableResults * old; -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VIDEO_TYPE_INTERPRETABLE_RESULTS)); -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - old = value->data[0].v_pointer; -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (v_object) { -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, VIDEO_TYPE_INTERPRETABLE_RESULTS)); -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = v_object; -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_interpretable_results_ref (value->data[0].v_pointer); -#line 9950 "VideoSupport.c" - } else { -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = NULL; -#line 9954 "VideoSupport.c" - } -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (old) { -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_interpretable_results_unref (old); -#line 9960 "VideoSupport.c" - } -} - - -void -video_value_take_interpretable_results (GValue* value, - gpointer v_object) -{ - VideoInterpretableResults * old; -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VIDEO_TYPE_INTERPRETABLE_RESULTS)); -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - old = value->data[0].v_pointer; -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (v_object) { -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, VIDEO_TYPE_INTERPRETABLE_RESULTS)); -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = v_object; -#line 9982 "VideoSupport.c" - } else { -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - value->data[0].v_pointer = NULL; -#line 9986 "VideoSupport.c" - } -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (old) { -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_interpretable_results_unref (old); -#line 9992 "VideoSupport.c" - } -} - - -static void -video_interpretable_results_class_init (VideoInterpretableResultsClass * klass) -{ -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_interpretable_results_parent_class = g_type_class_peek_parent (klass); -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((VideoInterpretableResultsClass *) klass)->finalize = video_interpretable_results_finalize; -#line 10004 "VideoSupport.c" -} - - -static void -video_interpretable_results_instance_init (VideoInterpretableResults * self) -{ -#line 332 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->update_interpretable = FALSE; -#line 333 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->is_interpretable = FALSE; -#line 334 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->new_thumbnail = NULL; -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->ref_count = 1; -#line 10019 "VideoSupport.c" -} - - -static void -video_interpretable_results_finalize (VideoInterpretableResults * obj) -{ - VideoInterpretableResults * self; -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, VIDEO_TYPE_INTERPRETABLE_RESULTS, VideoInterpretableResults); -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_signal_handlers_destroy (self); -#line 331 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (self->video); -#line 334 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (self->new_thumbnail); -#line 10035 "VideoSupport.c" -} - - -GType -video_interpretable_results_get_type (void) -{ - static volatile gsize video_interpretable_results_type_id__volatile = 0; - if (g_once_init_enter (&video_interpretable_results_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { video_value_interpretable_results_init, video_value_interpretable_results_free_value, video_value_interpretable_results_copy_value, video_value_interpretable_results_peek_pointer, "p", video_value_interpretable_results_collect_value, "p", video_value_interpretable_results_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (VideoInterpretableResultsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_interpretable_results_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoInterpretableResults), 0, (GInstanceInitFunc) video_interpretable_results_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType video_interpretable_results_type_id; - video_interpretable_results_type_id = g_type_register_fundamental (g_type_fundamental_next (), "VideoInterpretableResults", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&video_interpretable_results_type_id__volatile, video_interpretable_results_type_id); - } - return video_interpretable_results_type_id__volatile; -} - - -gpointer -video_interpretable_results_ref (gpointer instance) -{ - VideoInterpretableResults * self; - self = instance; -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_atomic_int_inc (&self->ref_count); -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return instance; -#line 10064 "VideoSupport.c" -} - - -void -video_interpretable_results_unref (gpointer instance) -{ - VideoInterpretableResults * self; - self = instance; -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - VIDEO_INTERPRETABLE_RESULTS_GET_CLASS (self)->finalize (self); -#line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 10079 "VideoSupport.c" - } -} - - -static void -video_class_init (VideoClass * klass) -{ -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_parent_class = g_type_class_peek_parent (klass); -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_type_class_add_private (klass, sizeof (VideoPrivate)); -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((DataSourceClass *) klass)->commit_backlinks = (void (*) (DataSource *, SourceCollection*, const gchar*)) video_real_commit_backlinks; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->set_event_id = (gboolean (*) (MediaSource *, EventID*)) video_real_set_event_id; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->get_backing_files_state = (BackingFileState** (*) (MediaSource *, int*)) video_real_get_backing_files_state; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((ThumbnailSourceClass *) klass)->get_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) video_real_get_thumbnail; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->get_master_md5 = (gchar* (*) (MediaSource *)) video_real_get_master_md5; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->get_preview_pixbuf = (GdkPixbuf* (*) (MediaSource *, Scaling*, GError**)) video_real_get_preview_pixbuf; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((ThumbnailSourceClass *) klass)->create_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) video_real_create_thumbnail; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) video_real_get_typename; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) video_real_get_instance_id; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->get_import_id = (void (*) (MediaSource *, ImportID*)) video_real_get_import_id; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = (PhotoFileFormat (*) (ThumbnailSource *)) video_real_get_preferred_thumbnail_format; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->get_title = (gchar* (*) (MediaSource *)) video_real_get_title; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->set_title = (void (*) (MediaSource *, const gchar*)) video_real_set_title; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->get_comment = (gchar* (*) (MediaSource *)) video_real_get_comment; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->set_comment = (gboolean (*) (MediaSource *, const gchar*)) video_real_set_comment; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->get_rating = (Rating (*) (MediaSource *)) video_real_get_rating; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->set_rating = (void (*) (MediaSource *, Rating)) video_real_set_rating; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->increase_rating = (void (*) (MediaSource *)) video_real_increase_rating; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->decrease_rating = (void (*) (MediaSource *)) video_real_decrease_rating; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->is_trashed = (gboolean (*) (MediaSource *)) video_real_is_trashed; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->is_offline = (gboolean (*) (MediaSource *)) video_real_is_offline; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->mark_offline = (void (*) (MediaSource *)) video_real_mark_offline; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->mark_online = (void (*) (MediaSource *)) video_real_mark_online; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->trash = (void (*) (MediaSource *)) video_real_trash; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->untrash = (void (*) (MediaSource *)) video_real_untrash; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->get_event_id = (void (*) (MediaSource *, EventID*)) video_real_get_event_id; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) video_real_to_string; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->get_exposure_time = (time_t (*) (MediaSource *)) video_real_get_exposure_time; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->get_dimensions = (void (*) (MediaSource *, PhotoException, Dimensions*)) video_real_get_dimensions; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->get_filesize = (guint64 (*) (MediaSource *)) video_real_get_filesize; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->get_master_filesize = (guint64 (*) (MediaSource *)) video_real_get_master_filesize; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->get_timestamp = (time_t (*) (MediaSource *)) video_real_get_timestamp; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->get_file = (GFile* (*) (MediaSource *)) video_real_get_file; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceClass *) klass)->get_master_file = (GFile* (*) (MediaSource *)) video_real_get_master_file; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((DataSourceClass *) klass)->destroy = (void (*) (DataSource *)) video_real_destroy; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((DataSourceClass *) klass)->internal_delete_backing = (gboolean (*) (DataSource *, GError**)) video_real_internal_delete_backing; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - G_OBJECT_CLASS (klass)->finalize = video_finalize; -#line 10165 "VideoSupport.c" -} - - -static void -video_flaggable_interface_init (FlaggableIface * iface) -{ -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_flaggable_parent_iface = g_type_interface_peek_parent (iface); -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - iface->is_flagged = (gboolean (*) (Flaggable *)) video_real_is_flagged; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - iface->mark_flagged = (void (*) (Flaggable *)) video_real_mark_flagged; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - iface->mark_unflagged = (void (*) (Flaggable *)) video_real_mark_unflagged; -#line 10180 "VideoSupport.c" -} - - -static void -video_monitorable_interface_init (MonitorableIface * iface) -{ -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_monitorable_parent_iface = g_type_interface_peek_parent (iface); -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - iface->is_offline = (gboolean (*) (Monitorable *)) video_real_is_offline; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - iface->mark_offline = (void (*) (Monitorable *)) video_real_mark_offline; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - iface->mark_online = (void (*) (Monitorable *)) video_real_mark_online; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - iface->set_master_timestamp = (void (*) (Monitorable *, GFileInfo*)) video_real_set_master_timestamp; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - iface->set_master_file = (void (*) (Monitorable *, GFile*)) video_real_set_master_file; -#line 10199 "VideoSupport.c" -} - - -static void -video_dateable_interface_init (DateableIface * iface) -{ -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_dateable_parent_iface = g_type_interface_peek_parent (iface); -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - iface->get_exposure_time = (time_t (*) (Dateable *)) video_real_get_exposure_time; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - iface->set_exposure_time = (void (*) (Dateable *, time_t)) video_real_set_exposure_time; -#line 10212 "VideoSupport.c" -} - - -static void -video_instance_init (Video * self) -{ -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv = VIDEO_GET_PRIVATE (self); -#line 364 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_init (&self->priv->__lock_backing_row); -#line 10223 "VideoSupport.c" -} - - -static void -video_finalize (GObject * obj) -{ - Video * self; -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO, Video); -#line 364 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_rec_mutex_clear (&self->priv->__lock_backing_row); -#line 364 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_row_unref0 (self->priv->backing_row); -#line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" - G_OBJECT_CLASS (video_parent_class)->finalize (obj); -#line 10239 "VideoSupport.c" -} - - -GType -video_get_type (void) -{ - static volatile gsize video_type_id__volatile = 0; - if (g_once_init_enter (&video_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (VideoClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Video), 0, (GInstanceInitFunc) video_instance_init, NULL }; - static const GInterfaceInfo flaggable_info = { (GInterfaceInitFunc) video_flaggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo monitorable_info = { (GInterfaceInitFunc) video_monitorable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo dateable_info = { (GInterfaceInitFunc) video_dateable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType video_type_id; - video_type_id = g_type_register_static (TYPE_VIDEO_SOURCE, "Video", &g_define_type_info, 0); - g_type_add_interface_static (video_type_id, TYPE_FLAGGABLE, &flaggable_info); - g_type_add_interface_static (video_type_id, TYPE_MONITORABLE, &monitorable_info); - g_type_add_interface_static (video_type_id, TYPE_DATEABLE, &dateable_info); - g_once_init_leave (&video_type_id__volatile, video_type_id); - } - return video_type_id__volatile; -} - - -GType -video_source_collection_state_get_type (void) -{ - static volatile gsize video_source_collection_state_type_id__volatile = 0; - if (g_once_init_enter (&video_source_collection_state_type_id__volatile)) { - static const GEnumValue values[] = {{VIDEO_SOURCE_COLLECTION_STATE_UNKNOWN, "VIDEO_SOURCE_COLLECTION_STATE_UNKNOWN", "unknown"}, {VIDEO_SOURCE_COLLECTION_STATE_ONLINE, "VIDEO_SOURCE_COLLECTION_STATE_ONLINE", "online"}, {VIDEO_SOURCE_COLLECTION_STATE_OFFLINE, "VIDEO_SOURCE_COLLECTION_STATE_OFFLINE", "offline"}, {VIDEO_SOURCE_COLLECTION_STATE_TRASH, "VIDEO_SOURCE_COLLECTION_STATE_TRASH", "trash"}, {0, NULL, NULL}}; - GType video_source_collection_state_type_id; - video_source_collection_state_type_id = g_enum_register_static ("VideoSourceCollectionState", values); - g_once_init_leave (&video_source_collection_state_type_id__volatile, video_source_collection_state_type_id); - } - return video_source_collection_state_type_id__volatile; -} - - -static gint -_uint64_compare_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = uint64_compare ((guint64*) a, (guint64*) b); -#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10286 "VideoSupport.c" -} - - -static guint64* -_uint64_dup (guint64* self) -{ - guint64* dup; -#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala" - dup = g_new0 (guint64, 1); -#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala" - memcpy (dup, self, sizeof (guint64)); -#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return dup; -#line 10300 "VideoSupport.c" -} - - -static gint64 -_video_source_collection_get_video_key_get_source_database_key (DataSource* source, - gpointer self) -{ - gint64 result; - result = video_source_collection_get_video_key (source); -#line 1077 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10312 "VideoSupport.c" -} - - -static void -_video_source_collection_on_trashcan_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self) -{ -#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_source_collection_on_trashcan_contents_altered ((VideoSourceCollection*) self, added, removed); -#line 10324 "VideoSupport.c" -} - - -static void -_video_source_collection_on_offline_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self) -{ -#line 1080 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_source_collection_on_offline_contents_altered ((VideoSourceCollection*) self, added, removed); -#line 10336 "VideoSupport.c" -} - - -VideoSourceCollection* -video_source_collection_construct (GType object_type) -{ - VideoSourceCollection* self = NULL; - MediaSourceHoldingTank* _tmp0_; - MediaSourceHoldingTank* _tmp1_; - MediaSourceHoldingTank* _tmp2_; - MediaSourceHoldingTank* _tmp3_; -#line 1077 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = (VideoSourceCollection*) media_source_collection_construct (object_type, "VideoSourceCollection", _video_source_collection_get_video_key_get_source_database_key, NULL); -#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_; -#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), "contents-altered", (GCallback) _video_source_collection_on_trashcan_contents_altered_source_holding_tank_contents_altered, self); -#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _source_holding_tank_unref0 (_tmp1_); -#line 1080 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 1080 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_; -#line 1080 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), "contents-altered", (GCallback) _video_source_collection_on_offline_contents_altered_source_holding_tank_contents_altered, self); -#line 1080 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _source_holding_tank_unref0 (_tmp3_); -#line 1076 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return self; -#line 10368 "VideoSupport.c" -} - - -VideoSourceCollection* -video_source_collection_new (void) -{ -#line 1076 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return video_source_collection_construct (TYPE_VIDEO_SOURCE_COLLECTION); -#line 10377 "VideoSupport.c" -} - - -static gboolean -_video_source_collection_is_video_trashed_source_holding_tank_check_to_keep (DataSource* source, - Alteration* alteration, - gpointer self) -{ - gboolean result; - result = video_source_collection_is_video_trashed (source); -#line 1084 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10390 "VideoSupport.c" -} - - -static MediaSourceHoldingTank* -video_source_collection_real_create_trashcan (MediaSourceCollection* base) -{ - VideoSourceCollection * self; - MediaSourceHoldingTank* result = NULL; - MediaSourceHoldingTank* _tmp0_; -#line 1083 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1084 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = media_source_holding_tank_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), _video_source_collection_is_video_trashed_source_holding_tank_check_to_keep, NULL, _video_source_collection_get_video_key_get_source_database_key, NULL); -#line 1084 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp0_; -#line 1084 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10408 "VideoSupport.c" -} - - -static gboolean -_video_source_collection_is_video_offline_source_holding_tank_check_to_keep (DataSource* source, - Alteration* alteration, - gpointer self) -{ - gboolean result; - result = video_source_collection_is_video_offline (source); -#line 1088 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10421 "VideoSupport.c" -} - - -static MediaSourceHoldingTank* -video_source_collection_real_create_offline_bin (MediaSourceCollection* base) -{ - VideoSourceCollection * self; - MediaSourceHoldingTank* result = NULL; - MediaSourceHoldingTank* _tmp0_; -#line 1087 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1088 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = media_source_holding_tank_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), _video_source_collection_is_video_offline_source_holding_tank_check_to_keep, NULL, _video_source_collection_get_video_key_get_source_database_key, NULL); -#line 1088 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp0_; -#line 1088 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10439 "VideoSupport.c" -} - - -static MediaMonitor* -video_source_collection_real_create_media_monitor (MediaSourceCollection* base, - Workers* workers, - GCancellable* cancellable) -{ - VideoSourceCollection * self; - MediaMonitor* result = NULL; - VideoMonitor* _tmp0_; -#line 1091 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1091 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_WORKERS (workers), NULL); -#line 1091 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL); -#line 1092 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = video_monitor_new (cancellable); -#line 1092 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_MONITOR, MediaMonitor); -#line 1092 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10463 "VideoSupport.c" -} - - -static gboolean -video_source_collection_real_holds_type_of_source (SourceCollection* base, - DataSource* source) -{ - VideoSourceCollection * self; - gboolean result = FALSE; -#line 1095 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1095 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 1096 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_VIDEO); -#line 1096 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10481 "VideoSupport.c" -} - - -static gchar* -video_source_collection_real_get_typename (MediaSourceCollection* base) -{ - VideoSourceCollection * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 1099 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1100 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = g_strdup (VIDEO_TYPENAME); -#line 1100 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp0_; -#line 1100 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10499 "VideoSupport.c" -} - - -static gboolean -video_source_collection_real_is_file_recognized (MediaSourceCollection* base, - GFile* file) -{ - VideoSourceCollection * self; - gboolean result = FALSE; -#line 1103 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1103 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 1104 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = video_reader_is_supported_video_file (file); -#line 1104 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10517 "VideoSupport.c" -} - - -static void -video_source_collection_on_trashcan_contents_altered (VideoSourceCollection* self, - GeeCollection* added, - GeeCollection* removed) -{ -#line 1107 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (IS_VIDEO_SOURCE_COLLECTION (self)); -#line 1107 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 1107 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 1109 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "trashcan-contents-altered", G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_COLLECTION, GeeCollection)); -#line 10534 "VideoSupport.c" -} - - -static void -video_source_collection_on_offline_contents_altered (VideoSourceCollection* self, - GeeCollection* added, - GeeCollection* removed) -{ -#line 1113 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (IS_VIDEO_SOURCE_COLLECTION (self)); -#line 1113 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 1113 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 1115 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "offline-contents-altered", G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_COLLECTION, GeeCollection)); -#line 10551 "VideoSupport.c" -} - - -static MediaSource* -video_source_collection_real_fetch_by_numeric_id (MediaSourceCollection* base, - gint64 numeric_id) -{ - VideoSourceCollection * self; - MediaSource* result = NULL; - VideoID _tmp0_ = {0}; - Video* _tmp1_; -#line 1119 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1120 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_id_init (&_tmp0_, numeric_id); -#line 1120 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = video_source_collection_fetch (self, &_tmp0_); -#line 1120 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE, MediaSource); -#line 1120 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10573 "VideoSupport.c" -} - - -gint64 -video_source_collection_get_video_key (DataSource* source) -{ - gint64 result = 0LL; - Video* video = NULL; - Video* _tmp0_; - VideoID video_id = {0}; - VideoID _tmp1_ = {0}; - VideoID _tmp2_; - gint64 _tmp3_; -#line 1123 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), 0LL); -#line 1124 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_VIDEO, Video)); -#line 1124 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video = _tmp0_; -#line 1125 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_get_video_id (video, &_tmp1_); -#line 1125 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_id = _tmp1_; -#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = video_id; -#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_.id; -#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp3_; -#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (video); -#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10607 "VideoSupport.c" -} - - -gboolean -video_source_collection_is_video_trashed (DataSource* source) -{ - gboolean result = FALSE; -#line 1130 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 1131 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = media_source_is_trashed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_VIDEO, Video), TYPE_MEDIA_SOURCE, MediaSource)); -#line 1131 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10621 "VideoSupport.c" -} - - -gboolean -video_source_collection_is_video_offline (DataSource* source) -{ - gboolean result = FALSE; -#line 1134 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 1135 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = media_source_is_offline (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_VIDEO, Video), TYPE_MEDIA_SOURCE, MediaSource)); -#line 1135 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10635 "VideoSupport.c" -} - - -Video* -video_source_collection_fetch (VideoSourceCollection* self, - VideoID* video_id) -{ - Video* result = NULL; - VideoID _tmp0_; - gint64 _tmp1_; - DataSource* _tmp2_; -#line 1138 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO_SOURCE_COLLECTION (self), NULL); -#line 1138 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (video_id != NULL, NULL); -#line 1139 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = *video_id; -#line 1139 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_.id; -#line 1139 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = database_source_collection_fetch_by_key (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), _tmp1_); -#line 1139 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_VIDEO, Video); -#line 1139 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10661 "VideoSupport.c" -} - - -static GeeCollection* -video_source_collection_real_get_event_source_ids (MediaSourceCollection* base, - EventID* event_id) -{ - VideoSourceCollection * self; - GeeCollection* result = NULL; - VideoTable* _tmp0_; - VideoTable* _tmp1_; - EventID _tmp2_; - GeeArrayList* _tmp3_; - GeeCollection* _tmp4_; -#line 1142 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1142 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (event_id != NULL, NULL); -#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = video_table_get_instance (); -#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_; -#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = *event_id; -#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = video_table_get_event_source_ids (_tmp1_, &_tmp2_); -#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection); -#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp1_); -#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp4_; -#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10696 "VideoSupport.c" -} - - -Video* -video_source_collection_get_state_by_file (VideoSourceCollection* self, - GFile* file, - VideoSourceCollectionState* state) -{ - VideoSourceCollectionState _vala_state = 0; - Video* result = NULL; - Video* video = NULL; - MediaSource* _tmp0_; - Video* _tmp1_; - MediaSourceHoldingTank* _tmp2_; - MediaSourceHoldingTank* _tmp3_; - MediaSource* _tmp4_; - Video* _tmp5_; - MediaSourceHoldingTank* _tmp6_; - MediaSourceHoldingTank* _tmp7_; - MediaSource* _tmp8_; - Video* _tmp9_; -#line 1146 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO_SOURCE_COLLECTION (self), NULL); -#line 1146 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 1147 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = media_source_collection_fetch_by_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), file); -#line 1147 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIDEO, Video); -#line 1148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = video; -#line 1148 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp1_ != NULL) { -#line 1149 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _vala_state = VIDEO_SOURCE_COLLECTION_STATE_ONLINE; -#line 1151 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = video; -#line 1151 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (state) { -#line 1151 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *state = _vala_state; -#line 10738 "VideoSupport.c" - } -#line 1151 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10742 "VideoSupport.c" - } -#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_; -#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = media_source_holding_tank_fetch_by_master_file (_tmp3_, file); -#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (video); -#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_VIDEO, Video); -#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _source_holding_tank_unref0 (_tmp3_); -#line 1155 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = video; -#line 1155 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp5_ != NULL) { -#line 1156 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _vala_state = VIDEO_SOURCE_COLLECTION_STATE_TRASH; -#line 1158 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = video; -#line 1158 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (state) { -#line 1158 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *state = _vala_state; -#line 10768 "VideoSupport.c" - } -#line 1158 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10772 "VideoSupport.c" - } -#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = _tmp6_; -#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = media_source_holding_tank_fetch_by_master_file (_tmp7_, file); -#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (video); -#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_VIDEO, Video); -#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _source_holding_tank_unref0 (_tmp7_); -#line 1162 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = video; -#line 1162 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp9_ != NULL) { -#line 1163 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _vala_state = VIDEO_SOURCE_COLLECTION_STATE_OFFLINE; -#line 1165 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = video; -#line 1165 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (state) { -#line 1165 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *state = _vala_state; -#line 10798 "VideoSupport.c" - } -#line 1165 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10802 "VideoSupport.c" - } -#line 1168 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _vala_state = VIDEO_SOURCE_COLLECTION_STATE_UNKNOWN; -#line 1170 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = NULL; -#line 1170 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (video); -#line 1170 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (state) { -#line 1170 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *state = _vala_state; -#line 10814 "VideoSupport.c" - } -#line 1170 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 10818 "VideoSupport.c" -} - - -static void -video_source_collection_compare_backing (VideoSourceCollection* self, - Video* video, - GFileInfo* info, - GeeCollection* matching_master) -{ - GTimeVal _tmp0_ = {0}; - glong _tmp1_; -#line 1173 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (IS_VIDEO_SOURCE_COLLECTION (self)); -#line 1173 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (IS_VIDEO (video)); -#line 1173 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 1173 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (GEE_IS_COLLECTION (matching_master)); -#line 1174 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (media_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (video, TYPE_MEDIA_SOURCE, MediaSource)) != ((guint64) g_file_info_get_size (info))) { -#line 1175 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 10842 "VideoSupport.c" - } -#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_file_info_get_modification_time (info, &_tmp0_); -#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_.tv_sec; -#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (media_source_get_timestamp (G_TYPE_CHECK_INSTANCE_CAST (video, TYPE_MEDIA_SOURCE, MediaSource)) == ((time_t) _tmp1_)) { -#line 1178 "/home/jens/Source/shotwell/src/VideoSupport.vala" - gee_collection_add (matching_master, video); -#line 10852 "VideoSupport.c" - } -} - - -void -video_source_collection_fetch_by_matching_backing (VideoSourceCollection* self, - GFileInfo* info, - GeeCollection* matching_master) -{ -#line 1181 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (IS_VIDEO_SOURCE_COLLECTION (self)); -#line 1181 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 1181 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (GEE_IS_COLLECTION (matching_master)); -#line 10868 "VideoSupport.c" - { - GeeIterator* _object_it = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _tmp0_; -#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = _tmp2_; -#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp1_); -#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _object_it = _tmp3_; -#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - while (TRUE) { -#line 10889 "VideoSupport.c" - GeeIterator* _tmp4_; - DataObject* object = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - DataObject* _tmp7_; -#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = _object_it; -#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - break; -#line 10901 "VideoSupport.c" - } -#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = _object_it; -#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - object = (DataObject*) _tmp6_; -#line 1183 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = object; -#line 1183 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_source_collection_compare_backing (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_VIDEO, Video), info, matching_master); -#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (object); -#line 10915 "VideoSupport.c" - } -#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_object_it); -#line 10919 "VideoSupport.c" - } - { - GeeIterator* _media_it = NULL; - GeeCollection* _tmp8_; - GeeCollection* _tmp9_; - GeeIterator* _tmp10_; - GeeIterator* _tmp11_; -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = media_source_collection_get_offline_bin_contents (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = _tmp8_; -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = _tmp10_; -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp9_); -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _media_it = _tmp11_; -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - while (TRUE) { -#line 10941 "VideoSupport.c" - GeeIterator* _tmp12_; - MediaSource* media = NULL; - GeeIterator* _tmp13_; - gpointer _tmp14_; - MediaSource* _tmp15_; -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = _media_it; -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!gee_iterator_next (_tmp12_)) { -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - break; -#line 10953 "VideoSupport.c" - } -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = _media_it; -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp14_ = gee_iterator_get (_tmp13_); -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - media = (MediaSource*) _tmp14_; -#line 1186 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = media; -#line 1186 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_source_collection_compare_backing (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_VIDEO, Video), info, matching_master); -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (media); -#line 10967 "VideoSupport.c" - } -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_media_it); -#line 10971 "VideoSupport.c" - } -} - - -static void -video_source_collection_real_notify_contents_altered (DataCollection* base, - GeeIterable* added, - GeeIterable* removed) -{ - VideoSourceCollection * self; -#line 1189 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1189 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added)); -#line 1189 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed)); -#line 1191 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (added != NULL) { -#line 10990 "VideoSupport.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = gee_iterable_iterator (added); -#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _object_it = _tmp0_; -#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" - while (TRUE) { -#line 11000 "VideoSupport.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - Video* video = NULL; - DataObject* _tmp4_; - Video* _tmp5_; - GeeMultiMap* _tmp6_; - Video* _tmp7_; - guint64 _tmp8_; - Video* _tmp9_; -#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = _object_it; -#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" - break; -#line 11018 "VideoSupport.c" - } -#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _object_it; -#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" - object = (DataObject*) _tmp3_; -#line 1193 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = object; -#line 1193 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_VIDEO, Video)); -#line 1193 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video = _tmp5_; -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = self->priv->filesize_to_video; -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = video; -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = media_source_get_master_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = video; -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" - gee_multi_map_set (_tmp6_, &_tmp8_, _tmp9_); -#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (video); -#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (object); -#line 11046 "VideoSupport.c" - } -#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_object_it); -#line 11050 "VideoSupport.c" - } - } -#line 1199 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (removed != NULL) { -#line 11055 "VideoSupport.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp10_; -#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = gee_iterable_iterator (removed); -#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _object_it = _tmp10_; -#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" - while (TRUE) { -#line 11065 "VideoSupport.c" - GeeIterator* _tmp11_; - DataObject* object = NULL; - GeeIterator* _tmp12_; - gpointer _tmp13_; - Video* video = NULL; - DataObject* _tmp14_; - Video* _tmp15_; - GeeMultiMap* _tmp16_; - Video* _tmp17_; - guint64 _tmp18_; - Video* _tmp19_; -#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = _object_it; -#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!gee_iterator_next (_tmp11_)) { -#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" - break; -#line 11083 "VideoSupport.c" - } -#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = _object_it; -#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = gee_iterator_get (_tmp12_); -#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" - object = (DataObject*) _tmp13_; -#line 1201 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp14_ = object; -#line 1201 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_VIDEO, Video)); -#line 1201 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video = _tmp15_; -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp16_ = self->priv->filesize_to_video; -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp17_ = video; -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp18_ = media_source_get_master_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp19_ = video; -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" - gee_multi_map_remove (_tmp16_, &_tmp18_, _tmp19_); -#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (video); -#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (object); -#line 11111 "VideoSupport.c" - } -#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_object_it); -#line 11115 "VideoSupport.c" - } - } -#line 1207 "/home/jens/Source/shotwell/src/VideoSupport.vala" - DATA_COLLECTION_CLASS (video_source_collection_parent_class)->notify_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), TYPE_DATA_COLLECTION, DataCollection), added, removed); -#line 11120 "VideoSupport.c" -} - - -void -video_source_collection_get_basename_filesize_duplicate (VideoSourceCollection* self, - const gchar* basename, - guint64 filesize, - VideoID* result) -{ - VideoID _tmp15_ = {0}; -#line 1210 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (IS_VIDEO_SOURCE_COLLECTION (self)); -#line 1210 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_if_fail (basename != NULL); -#line 11135 "VideoSupport.c" - { - GeeIterator* _video_it = NULL; - GeeMultiMap* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->filesize_to_video; -#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = gee_multi_map_get (_tmp0_, &filesize); -#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = _tmp1_; -#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp4_ = _tmp3_; -#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp2_); -#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_it = _tmp4_; -#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" - while (TRUE) { -#line 11159 "VideoSupport.c" - GeeIterator* _tmp5_; - Video* video = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - Video* _tmp8_; - GFile* _tmp9_; - GFile* _tmp10_; - gchar* _tmp11_; - gboolean _tmp12_; -#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp5_ = _video_it; -#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" - break; -#line 11175 "VideoSupport.c" - } -#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp6_ = _video_it; -#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video = (Video*) _tmp7_; -#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp8_ = video; -#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp9_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp10_ = _tmp9_; -#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp11_ = g_file_get_basename (_tmp10_); -#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = utf8_ci_compare (_tmp11_, basename) == 0; -#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp10_); -#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp12_) { -#line 11197 "VideoSupport.c" - Video* _tmp13_; - VideoID _tmp14_ = {0}; -#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = video; -#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_get_video_id (_tmp13_, &_tmp14_); -#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *result = _tmp14_; -#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (video); -#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_video_it); -#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 11212 "VideoSupport.c" - } -#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (video); -#line 11216 "VideoSupport.c" - } -#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_video_it); -#line 11220 "VideoSupport.c" - } -#line 1216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_id_init (&_tmp15_, VIDEO_ID_INVALID); -#line 1216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - *result = _tmp15_; -#line 1216 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return; -#line 11228 "VideoSupport.c" -} - - -gboolean -video_source_collection_has_basename_filesize_duplicate (VideoSourceCollection* self, - const gchar* basename, - guint64 filesize) -{ - gboolean result = FALSE; - VideoID _tmp0_ = {0}; -#line 1220 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (IS_VIDEO_SOURCE_COLLECTION (self), FALSE); -#line 1220 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_return_val_if_fail (basename != NULL, FALSE); -#line 1221 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_source_collection_get_basename_filesize_duplicate (self, basename, filesize, &_tmp0_); -#line 1221 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = video_id_is_valid (&_tmp0_); -#line 1221 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 11249 "VideoSupport.c" -} - - -static TransactionController* -video_source_collection_real_get_transaction_controller (MediaSourceCollection* base) -{ - TransactionController* result; - VideoSourceCollection* self; - TransactionController* _tmp0_; - TransactionController* _tmp2_; -#line 1064 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1065 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = self->priv->_transaction_controller; -#line 1065 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp0_ == NULL) { -#line 11266 "VideoSupport.c" - MediaSourceTransactionController* _tmp1_; -#line 1066 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp1_ = media_source_transaction_controller_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 1066 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _transaction_controller_unref0 (self->priv->_transaction_controller); -#line 1066 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv->_transaction_controller = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_TRANSACTION_CONTROLLER, TransactionController); -#line 11274 "VideoSupport.c" - } -#line 1068 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp2_ = self->priv->_transaction_controller; -#line 1068 "/home/jens/Source/shotwell/src/VideoSupport.vala" - result = _tmp2_; -#line 1068 "/home/jens/Source/shotwell/src/VideoSupport.vala" - return result; -#line 11282 "VideoSupport.c" -} - - -static void -video_source_collection_class_init (VideoSourceCollectionClass * klass) -{ -#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_source_collection_parent_class = g_type_class_peek_parent (klass); -#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((DataCollectionClass *) klass)->finalize = video_source_collection_finalize; -#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_type_class_add_private (klass, sizeof (VideoSourceCollectionPrivate)); -#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceCollectionClass *) klass)->create_trashcan = (MediaSourceHoldingTank* (*) (MediaSourceCollection *)) video_source_collection_real_create_trashcan; -#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceCollectionClass *) klass)->create_offline_bin = (MediaSourceHoldingTank* (*) (MediaSourceCollection *)) video_source_collection_real_create_offline_bin; -#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceCollectionClass *) klass)->create_media_monitor = (MediaMonitor* (*) (MediaSourceCollection *, Workers*, GCancellable*)) video_source_collection_real_create_media_monitor; -#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*) (SourceCollection *, DataSource*)) video_source_collection_real_holds_type_of_source; -#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceCollectionClass *) klass)->get_typename = (gchar* (*) (MediaSourceCollection *)) video_source_collection_real_get_typename; -#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceCollectionClass *) klass)->is_file_recognized = (gboolean (*) (MediaSourceCollection *, GFile*)) video_source_collection_real_is_file_recognized; -#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceCollectionClass *) klass)->fetch_by_numeric_id = (MediaSource* (*) (MediaSourceCollection *, gint64)) video_source_collection_real_fetch_by_numeric_id; -#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((MediaSourceCollectionClass *) klass)->get_event_source_ids = (GeeCollection* (*) (MediaSourceCollection *, EventID*)) video_source_collection_real_get_event_source_ids; -#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ((DataCollectionClass *) klass)->notify_contents_altered = (void (*) (DataCollection *, GeeIterable*, GeeIterable*)) video_source_collection_real_notify_contents_altered; -#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" - MEDIA_SOURCE_COLLECTION_CLASS (klass)->get_transaction_controller = video_source_collection_real_get_transaction_controller; -#line 11315 "VideoSupport.c" -} - - -static void -video_source_collection_instance_init (VideoSourceCollection * self) -{ - GeeTreeMultiMap* _tmp0_; -#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv = VIDEO_SOURCE_COLLECTION_GET_PRIVATE (self); -#line 1072 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv->_transaction_controller = NULL; -#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp0_ = gee_tree_multi_map_new (G_TYPE_UINT64, (GBoxedCopyFunc) _uint64_dup, (GDestroyNotify) g_free, TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _uint64_compare_gcompare_data_func, NULL, NULL, NULL, NULL, NULL); -#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self->priv->filesize_to_video = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MULTI_MAP, GeeMultiMap); -#line 11331 "VideoSupport.c" -} - - -static void -video_source_collection_finalize (DataCollection * obj) -{ - VideoSourceCollection * self; -#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1072 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _transaction_controller_unref0 (self->priv->_transaction_controller); -#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (self->priv->filesize_to_video); -#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" - DATA_COLLECTION_CLASS (video_source_collection_parent_class)->finalize (obj); -#line 11347 "VideoSupport.c" -} - - -GType -video_source_collection_get_type (void) -{ - static volatile gsize video_source_collection_type_id__volatile = 0; - if (g_once_init_enter (&video_source_collection_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (VideoSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoSourceCollection), 0, (GInstanceInitFunc) video_source_collection_instance_init, NULL }; - GType video_source_collection_type_id; - video_source_collection_type_id = g_type_register_static (TYPE_MEDIA_SOURCE_COLLECTION, "VideoSourceCollection", &g_define_type_info, 0); - g_once_init_leave (&video_source_collection_type_id__volatile, video_source_collection_type_id); - } - return video_source_collection_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/camera/Camera.c b/src/camera/Camera.c deleted file mode 100644 index 6decca0..0000000 --- a/src/camera/Camera.c +++ /dev/null @@ -1,41 +0,0 @@ -/* Camera.c generated by valac 0.40.4, the Vala compiler - * generated from Camera.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include - - - - -void camera_init (GError** error); -void camera_branch_init (void); -void camera_terminate (void); -void camera_branch_terminate (void); - - -void -camera_init (GError** error) -{ -#line 10 "/home/jens/Source/shotwell/src/camera/Camera.vala" - camera_branch_init (); -#line 29 "Camera.c" -} - - -void -camera_terminate (void) -{ -#line 14 "/home/jens/Source/shotwell/src/camera/Camera.vala" - camera_branch_terminate (); -#line 38 "Camera.c" -} - - - diff --git a/src/camera/CameraBranch.c b/src/camera/CameraBranch.c deleted file mode 100644 index 17c9f52..0000000 --- a/src/camera/CameraBranch.c +++ /dev/null @@ -1,1283 +0,0 @@ -/* CameraBranch.c generated by valac 0.40.4, the Vala compiler - * generated from CameraBranch.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ()) -#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch)) -#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) -#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) - -typedef struct _SidebarBranch SidebarBranch; -typedef struct _SidebarBranchClass SidebarBranchClass; -typedef struct _SidebarBranchPrivate SidebarBranchPrivate; - -#define CAMERA_TYPE_BRANCH (camera_branch_get_type ()) -#define CAMERA_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CAMERA_TYPE_BRANCH, CameraBranch)) -#define CAMERA_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CAMERA_TYPE_BRANCH, CameraBranchClass)) -#define CAMERA_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CAMERA_TYPE_BRANCH)) -#define CAMERA_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CAMERA_TYPE_BRANCH)) -#define CAMERA_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CAMERA_TYPE_BRANCH, CameraBranchClass)) - -typedef struct _CameraBranch CameraBranch; -typedef struct _CameraBranchClass CameraBranchClass; -typedef struct _CameraBranchPrivate CameraBranchPrivate; - -#define TYPE_DISCOVERED_CAMERA (discovered_camera_get_type ()) -#define DISCOVERED_CAMERA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DISCOVERED_CAMERA, DiscoveredCamera)) -#define DISCOVERED_CAMERA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DISCOVERED_CAMERA, DiscoveredCameraClass)) -#define IS_DISCOVERED_CAMERA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DISCOVERED_CAMERA)) -#define IS_DISCOVERED_CAMERA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DISCOVERED_CAMERA)) -#define DISCOVERED_CAMERA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DISCOVERED_CAMERA, DiscoveredCameraClass)) - -typedef struct _DiscoveredCamera DiscoveredCamera; -typedef struct _DiscoveredCameraClass DiscoveredCameraClass; - -#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ()) -#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) - -typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry; -typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass; - -#define CAMERA_TYPE_SIDEBAR_ENTRY (camera_sidebar_entry_get_type ()) -#define CAMERA_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntry)) -#define CAMERA_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntryClass)) -#define CAMERA_IS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CAMERA_TYPE_SIDEBAR_ENTRY)) -#define CAMERA_IS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CAMERA_TYPE_SIDEBAR_ENTRY)) -#define CAMERA_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntryClass)) - -typedef struct _CameraSidebarEntry CameraSidebarEntry; -typedef struct _CameraSidebarEntryClass CameraSidebarEntryClass; -enum { - CAMERA_BRANCH_0_PROPERTY, - CAMERA_BRANCH_NUM_PROPERTIES -}; -static GParamSpec* camera_branch_properties[CAMERA_BRANCH_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define SIDEBAR_TYPE_GROUPING (sidebar_grouping_get_type ()) -#define SIDEBAR_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_GROUPING, SidebarGrouping)) -#define SIDEBAR_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass)) -#define SIDEBAR_IS_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_GROUPING)) -#define SIDEBAR_IS_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_GROUPING)) -#define SIDEBAR_GROUPING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass)) - -typedef struct _SidebarGrouping SidebarGrouping; -typedef struct _SidebarGroupingClass SidebarGroupingClass; - -#define SIDEBAR_TYPE_HEADER (sidebar_header_get_type ()) -#define SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_HEADER, SidebarHeader)) -#define SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_HEADER, SidebarHeaderClass)) -#define SIDEBAR_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_HEADER)) -#define SIDEBAR_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_HEADER)) -#define SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_HEADER, SidebarHeaderClass)) - -typedef struct _SidebarHeader SidebarHeader; -typedef struct _SidebarHeaderClass SidebarHeaderClass; - -#define CAMERA_TYPE_HEADER (camera_header_get_type ()) -#define CAMERA_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CAMERA_TYPE_HEADER, CameraHeader)) -#define CAMERA_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CAMERA_TYPE_HEADER, CameraHeaderClass)) -#define CAMERA_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CAMERA_TYPE_HEADER)) -#define CAMERA_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CAMERA_TYPE_HEADER)) -#define CAMERA_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CAMERA_TYPE_HEADER, CameraHeaderClass)) - -typedef struct _CameraHeader CameraHeader; -typedef struct _CameraHeaderClass CameraHeaderClass; - -#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ()) -#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry)) -#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY)) -#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface)) - -typedef struct _SidebarEntry SidebarEntry; -typedef struct _SidebarEntryIface SidebarEntryIface; - -#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ()) -#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree)) -#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass)) -#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass)) - -typedef struct _SidebarTree SidebarTree; -typedef struct _SidebarTreeClass SidebarTreeClass; - -#define SIDEBAR_BRANCH_TYPE_OPTIONS (sidebar_branch_options_get_type ()) - -#define TYPE_CAMERA_TABLE (camera_table_get_type ()) -#define CAMERA_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CAMERA_TABLE, CameraTable)) -#define CAMERA_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CAMERA_TABLE, CameraTableClass)) -#define IS_CAMERA_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CAMERA_TABLE)) -#define IS_CAMERA_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CAMERA_TABLE)) -#define CAMERA_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CAMERA_TABLE, CameraTableClass)) - -typedef struct _CameraTable CameraTable; -typedef struct _CameraTableClass CameraTableClass; -#define _camera_table_unref0(var) ((var == NULL) ? NULL : (var = (camera_table_unref (var), NULL))) -#define _discovered_camera_unref0(var) ((var == NULL) ? NULL : (var = (discovered_camera_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ()) -#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry)) -#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY)) -#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface)) - -typedef struct _SidebarExpandableEntry SidebarExpandableEntry; -typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface; - -#define SIDEBAR_TYPE_RENAMEABLE_ENTRY (sidebar_renameable_entry_get_type ()) -#define SIDEBAR_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry)) -#define SIDEBAR_IS_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY)) -#define SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntryIface)) - -typedef struct _SidebarRenameableEntry SidebarRenameableEntry; -typedef struct _SidebarRenameableEntryIface SidebarRenameableEntryIface; -typedef struct _SidebarGroupingPrivate SidebarGroupingPrivate; - -#define SIDEBAR_TYPE_EMPHASIZABLE_ENTRY (sidebar_emphasizable_entry_get_type ()) -#define SIDEBAR_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntry)) -#define SIDEBAR_IS_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY)) -#define SIDEBAR_EMPHASIZABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntryIface)) - -typedef struct _SidebarEmphasizableEntry SidebarEmphasizableEntry; -typedef struct _SidebarEmphasizableEntryIface SidebarEmphasizableEntryIface; -typedef struct _SidebarHeaderPrivate SidebarHeaderPrivate; -typedef struct _CameraHeaderPrivate CameraHeaderPrivate; -enum { - CAMERA_HEADER_0_PROPERTY, - CAMERA_HEADER_NUM_PROPERTIES -}; -static GParamSpec* camera_header_properties[CAMERA_HEADER_NUM_PROPERTIES]; - -#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ()) -#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry)) -#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY)) -#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface)) - -typedef struct _SidebarSelectableEntry SidebarSelectableEntry; -typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface; - -#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ()) -#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)) -#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE)) -#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface)) - -typedef struct _SidebarPageRepresentative SidebarPageRepresentative; -typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ()) -#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable)) -#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE)) -#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface)) - -typedef struct _SidebarContextable SidebarContextable; -typedef struct _SidebarContextableIface SidebarContextableIface; -typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate; -typedef struct _CameraSidebarEntryPrivate CameraSidebarEntryPrivate; -enum { - CAMERA_SIDEBAR_ENTRY_0_PROPERTY, - CAMERA_SIDEBAR_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* camera_sidebar_entry_properties[CAMERA_SIDEBAR_ENTRY_NUM_PROPERTIES]; -typedef struct _DiscoveredCameraPrivate DiscoveredCameraPrivate; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; - -#define TYPE_IMPORT_PAGE (import_page_get_type ()) -#define IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_PAGE, ImportPage)) -#define IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_PAGE, ImportPageClass)) -#define IS_IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_PAGE)) -#define IS_IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_PAGE)) -#define IMPORT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_PAGE, ImportPageClass)) - -typedef struct _ImportPage ImportPage; -typedef struct _ImportPageClass ImportPageClass; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _SidebarBranch { - GObject parent_instance; - SidebarBranchPrivate * priv; -}; - -struct _SidebarBranchClass { - GObjectClass parent_class; -}; - -struct _CameraBranch { - SidebarBranch parent_instance; - CameraBranchPrivate * priv; -}; - -struct _CameraBranchClass { - SidebarBranchClass parent_class; -}; - -struct _CameraBranchPrivate { - GeeHashMap* camera_map; -}; - -struct _SidebarEntryIface { - GTypeInterface parent_iface; - gchar* (*get_sidebar_name) (SidebarEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarEntry* self); - gchar* (*get_sidebar_icon) (SidebarEntry* self); - gchar* (*to_string) (SidebarEntry* self); - void (*grafted) (SidebarEntry* self, SidebarTree* tree); - void (*pruned) (SidebarEntry* self, SidebarTree* tree); -}; - -typedef enum { - SIDEBAR_BRANCH_OPTIONS_NONE = 0, - SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY = 1 << 0, - SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD = 1 << 1, - SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD = 1 << 2, - SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING = 1 << 3 -} SidebarBranchOptions; - -struct _SidebarExpandableEntryIface { - GTypeInterface parent_iface; - gboolean (*expand_on_select) (SidebarExpandableEntry* self); -}; - -struct _SidebarRenameableEntryIface { - GTypeInterface parent_iface; - void (*rename) (SidebarRenameableEntry* self, const gchar* new_name); - gboolean (*is_user_renameable) (SidebarRenameableEntry* self); -}; - -struct _SidebarGrouping { - GObject parent_instance; - SidebarGroupingPrivate * priv; -}; - -struct _SidebarGroupingClass { - GObjectClass parent_class; -}; - -struct _SidebarEmphasizableEntryIface { - GTypeInterface parent_iface; - gboolean (*is_emphasized) (SidebarEmphasizableEntry* self); -}; - -struct _SidebarHeader { - SidebarGrouping parent_instance; - SidebarHeaderPrivate * priv; -}; - -struct _SidebarHeaderClass { - SidebarGroupingClass parent_class; -}; - -struct _CameraHeader { - SidebarHeader parent_instance; - CameraHeaderPrivate * priv; -}; - -struct _CameraHeaderClass { - SidebarHeaderClass parent_class; -}; - -struct _SidebarSelectableEntryIface { - GTypeInterface parent_iface; -}; - -struct _SidebarPageRepresentativeIface { - GTypeInterface parent_iface; - gboolean (*has_page) (SidebarPageRepresentative* self); - Page* (*get_page) (SidebarPageRepresentative* self); -}; - -struct _SidebarContextableIface { - GTypeInterface parent_iface; - GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event); -}; - -struct _SidebarSimplePageEntry { - GObject parent_instance; - SidebarSimplePageEntryPrivate * priv; -}; - -struct _SidebarSimplePageEntryClass { - GObjectClass parent_class; - gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self); - gchar* (*to_string) (SidebarSimplePageEntry* self); - Page* (*create_page) (SidebarSimplePageEntry* self); -}; - -struct _CameraSidebarEntry { - SidebarSimplePageEntry parent_instance; - CameraSidebarEntryPrivate * priv; -}; - -struct _CameraSidebarEntryClass { - SidebarSimplePageEntryClass parent_class; -}; - -struct _CameraSidebarEntryPrivate { - DiscoveredCamera* camera; - gchar* uri; -}; - -struct _DiscoveredCamera { - GTypeInstance parent_instance; - volatile int ref_count; - DiscoveredCameraPrivate * priv; - Camera* gcamera; - gchar* uri; - gchar* display_name; - gchar* icon; -}; - -struct _DiscoveredCameraClass { - GTypeClass parent_class; - void (*finalize) (DiscoveredCamera *self); -}; - - -static gpointer camera_branch_parent_class = NULL; -extern gchar* camera_branch_cameras_icon; -gchar* camera_branch_cameras_icon = NULL; -static gpointer camera_header_parent_class = NULL; -static gpointer camera_sidebar_entry_parent_class = NULL; - -GType sidebar_branch_get_type (void) G_GNUC_CONST; -GType camera_branch_get_type (void) G_GNUC_CONST; -gpointer discovered_camera_ref (gpointer instance); -void discovered_camera_unref (gpointer instance); -GParamSpec* param_spec_discovered_camera (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_discovered_camera (GValue* value, - gpointer v_object); -void value_take_discovered_camera (GValue* value, - gpointer v_object); -gpointer value_get_discovered_camera (const GValue* value); -GType discovered_camera_get_type (void) G_GNUC_CONST; -GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST; -GType camera_sidebar_entry_get_type (void) G_GNUC_CONST; -#define CAMERA_BRANCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CAMERA_TYPE_BRANCH, CameraBranchPrivate)) -#define RESOURCES_ICON_CAMERAS "camera-photo" -CameraBranch* camera_branch_new (void); -CameraBranch* camera_branch_construct (GType object_type); -CameraHeader* camera_header_new (void); -CameraHeader* camera_header_construct (GType object_type); -GType sidebar_grouping_get_type (void) G_GNUC_CONST; -GType sidebar_header_get_type (void) G_GNUC_CONST; -GType camera_header_get_type (void) G_GNUC_CONST; -GType sidebar_tree_get_type (void) G_GNUC_CONST; -GType sidebar_entry_get_type (void) G_GNUC_CONST; -GType sidebar_branch_options_get_type (void) G_GNUC_CONST; -static gint camera_branch_camera_comparator (SidebarEntry* a, - SidebarEntry* b); -static gint _camera_branch_camera_comparator_gcompare_func (gconstpointer a, - gconstpointer b); -SidebarBranch* sidebar_branch_new (SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator); -SidebarBranch* sidebar_branch_construct (GType object_type, - SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator); -gpointer camera_table_ref (gpointer instance); -void camera_table_unref (gpointer instance); -GParamSpec* param_spec_camera_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_camera_table (GValue* value, - gpointer v_object); -void value_take_camera_table (GValue* value, - gpointer v_object); -gpointer value_get_camera_table (const GValue* value); -GType camera_table_get_type (void) G_GNUC_CONST; -CameraTable* camera_table_get_instance (void); -GeeIterable* camera_table_get_cameras (CameraTable* self); -static void camera_branch_add_camera (CameraBranch* self, - DiscoveredCamera* camera); -static void camera_branch_on_camera_added (CameraBranch* self, - DiscoveredCamera* camera); -static void _camera_branch_on_camera_added_camera_table_camera_added (CameraTable* _sender, - DiscoveredCamera* camera, - gpointer self); -static void camera_branch_on_camera_removed (CameraBranch* self, - DiscoveredCamera* camera); -static void _camera_branch_on_camera_removed_camera_table_camera_removed (CameraTable* _sender, - DiscoveredCamera* camera, - gpointer self); -void camera_branch_init (void); -void camera_branch_terminate (void); -gchar* sidebar_entry_get_sidebar_name (SidebarEntry* self); -gchar* camera_sidebar_entry_get_uri (CameraSidebarEntry* self); -CameraSidebarEntry* camera_branch_get_entry_for_camera (CameraBranch* self, - DiscoveredCamera* camera); -static void camera_branch_remove_camera (CameraBranch* self, - DiscoveredCamera* camera); -CameraSidebarEntry* camera_sidebar_entry_new (DiscoveredCamera* camera); -CameraSidebarEntry* camera_sidebar_entry_construct (GType object_type, - DiscoveredCamera* camera); -void sidebar_branch_graft (SidebarBranch* self, - SidebarEntry* parent, - SidebarEntry* entry, - GCompareFunc comparator); -SidebarEntry* sidebar_branch_get_root (SidebarBranch* self); -void sidebar_branch_prune (SidebarBranch* self, - SidebarEntry* entry); -static void camera_branch_finalize (GObject * obj); -GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST; -GType sidebar_renameable_entry_get_type (void) G_GNUC_CONST; -GType sidebar_emphasizable_entry_get_type (void) G_GNUC_CONST; -SidebarHeader* sidebar_header_new (const gchar* name, - const gchar* tooltip, - gboolean emphasized); -SidebarHeader* sidebar_header_construct (GType object_type, - const gchar* name, - const gchar* tooltip, - gboolean emphasized); -GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType sidebar_page_representative_get_type (void) G_GNUC_CONST; -GType sidebar_contextable_get_type (void) G_GNUC_CONST; -#define CAMERA_SIDEBAR_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntryPrivate)) -SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type); -static gchar* camera_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base); -static gchar* camera_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base); -static Page* camera_sidebar_entry_real_create_page (SidebarSimplePageEntry* base); -gchar* sidebar_simple_page_entry_get_sidebar_name (SidebarSimplePageEntry* self); -gchar* sidebar_simple_page_entry_get_sidebar_icon (SidebarSimplePageEntry* self); -ImportPage* import_page_new (Camera* camera, - const gchar* uri, - const gchar* display_name, - const gchar* icon); -ImportPage* import_page_construct (GType object_type, - Camera* camera, - const gchar* uri, - const gchar* display_name, - const gchar* icon); -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType import_page_get_type (void) G_GNUC_CONST; -static void camera_sidebar_entry_finalize (GObject * obj); - - -static gint -_camera_branch_camera_comparator_gcompare_func (gconstpointer a, - gconstpointer b) -{ - gint result; - result = camera_branch_camera_comparator ((SidebarEntry*) a, (SidebarEntry*) b); -#line 14 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - return result; -#line 522 "CameraBranch.c" -} - - -static void -_camera_branch_on_camera_added_camera_table_camera_added (CameraTable* _sender, - DiscoveredCamera* camera, - gpointer self) -{ -#line 21 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - camera_branch_on_camera_added ((CameraBranch*) self, camera); -#line 533 "CameraBranch.c" -} - - -static void -_camera_branch_on_camera_removed_camera_table_camera_removed (CameraTable* _sender, - DiscoveredCamera* camera, - gpointer self) -{ -#line 22 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - camera_branch_on_camera_removed ((CameraBranch*) self, camera); -#line 544 "CameraBranch.c" -} - - -CameraBranch* -camera_branch_construct (GType object_type) -{ - CameraBranch * self = NULL; - CameraHeader* _tmp0_; - CameraHeader* _tmp1_; - CameraTable* _tmp12_; - CameraTable* _tmp13_; - CameraTable* _tmp14_; - CameraTable* _tmp15_; -#line 14 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp0_ = camera_header_new (); -#line 14 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp1_ = _tmp0_; -#line 14 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - self = (CameraBranch*) sidebar_branch_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SIDEBAR_TYPE_ENTRY, SidebarEntry), SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY | SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD, _camera_branch_camera_comparator_gcompare_func, NULL); -#line 14 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _g_object_unref0 (_tmp1_); -#line 566 "CameraBranch.c" - { - GeeIterator* _camera_it = NULL; - CameraTable* _tmp2_; - CameraTable* _tmp3_; - GeeIterable* _tmp4_; - GeeIterable* _tmp5_; - GeeIterator* _tmp6_; - GeeIterator* _tmp7_; -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp2_ = camera_table_get_instance (); -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp3_ = _tmp2_; -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp4_ = camera_table_get_cameras (_tmp3_); -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp5_ = _tmp4_; -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp6_ = gee_iterable_iterator (_tmp5_); -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp7_ = _tmp6_; -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _g_object_unref0 (_tmp5_); -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _camera_table_unref0 (_tmp3_); -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _camera_it = _tmp7_; -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - while (TRUE) { -#line 595 "CameraBranch.c" - GeeIterator* _tmp8_; - DiscoveredCamera* camera = NULL; - GeeIterator* _tmp9_; - gpointer _tmp10_; - DiscoveredCamera* _tmp11_; -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp8_ = _camera_it; -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - if (!gee_iterator_next (_tmp8_)) { -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - break; -#line 607 "CameraBranch.c" - } -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp9_ = _camera_it; -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp10_ = gee_iterator_get (_tmp9_); -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - camera = (DiscoveredCamera*) _tmp10_; -#line 19 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp11_ = camera; -#line 19 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - camera_branch_add_camera (self, _tmp11_); -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _discovered_camera_unref0 (camera); -#line 621 "CameraBranch.c" - } -#line 18 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _g_object_unref0 (_camera_it); -#line 625 "CameraBranch.c" - } -#line 21 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp12_ = camera_table_get_instance (); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp13_ = _tmp12_; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_signal_connect_object (_tmp13_, "camera-added", (GCallback) _camera_branch_on_camera_added_camera_table_camera_added, self, 0); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _camera_table_unref0 (_tmp13_); -#line 22 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp14_ = camera_table_get_instance (); -#line 22 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp15_ = _tmp14_; -#line 22 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_signal_connect_object (_tmp15_, "camera-removed", (GCallback) _camera_branch_on_camera_removed_camera_table_camera_removed, self, 0); -#line 22 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _camera_table_unref0 (_tmp15_); -#line 13 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - return self; -#line 645 "CameraBranch.c" -} - - -CameraBranch* -camera_branch_new (void) -{ -#line 13 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - return camera_branch_construct (CAMERA_TYPE_BRANCH); -#line 654 "CameraBranch.c" -} - - -void -camera_branch_init (void) -{ -} - - -void -camera_branch_terminate (void) -{ -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 39 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - return self ? g_object_ref (self) : NULL; -#line 675 "CameraBranch.c" -} - - -static gint -camera_branch_camera_comparator (SidebarEntry* a, - SidebarEntry* b) -{ - gint result = 0; - gint ret = 0; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gint _tmp4_; - gint _tmp5_; -#line 31 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0); -#line 31 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0); -#line 32 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - if (a == b) { -#line 33 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - result = 0; -#line 33 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - return result; -#line 701 "CameraBranch.c" - } -#line 36 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp0_ = sidebar_entry_get_sidebar_name (a); -#line 36 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp1_ = _tmp0_; -#line 36 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp2_ = sidebar_entry_get_sidebar_name (b); -#line 36 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp3_ = _tmp2_; -#line 36 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp4_ = g_utf8_collate (_tmp1_, _tmp3_); -#line 36 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _g_free0 (_tmp3_); -#line 36 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _g_free0 (_tmp1_); -#line 36 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - ret = _tmp4_; -#line 37 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp5_ = ret; -#line 37 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - if (_tmp5_ == 0) { -#line 723 "CameraBranch.c" - CameraSidebarEntry* cam_a = NULL; - CameraSidebarEntry* _tmp6_; - CameraSidebarEntry* cam_b = NULL; - CameraSidebarEntry* _tmp7_; - gboolean _tmp8_ = FALSE; - CameraSidebarEntry* _tmp9_; - CameraSidebarEntry* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - CameraSidebarEntry* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; -#line 39 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (a, CAMERA_TYPE_SIDEBAR_ENTRY) ? ((CameraSidebarEntry*) a) : NULL); -#line 39 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - cam_a = _tmp6_; -#line 40 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (b, CAMERA_TYPE_SIDEBAR_ENTRY) ? ((CameraSidebarEntry*) b) : NULL); -#line 40 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - cam_b = _tmp7_; -#line 41 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp9_ = cam_a; -#line 41 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - if (_tmp9_ != NULL) { -#line 748 "CameraBranch.c" - CameraSidebarEntry* _tmp10_; -#line 41 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp10_ = cam_b; -#line 41 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp8_ = _tmp10_ != NULL; -#line 754 "CameraBranch.c" - } else { -#line 41 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp8_ = FALSE; -#line 758 "CameraBranch.c" - } -#line 41 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _vala_assert (_tmp8_, "cam_a != null && cam_b != null"); -#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp11_ = cam_a; -#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp12_ = camera_sidebar_entry_get_uri (_tmp11_); -#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp13_ = _tmp12_; -#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp14_ = cam_b; -#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp15_ = camera_sidebar_entry_get_uri (_tmp14_); -#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp16_ = _tmp15_; -#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - ret = g_utf8_collate (_tmp13_, _tmp16_); -#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _g_free0 (_tmp16_); -#line 42 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _g_free0 (_tmp13_); -#line 37 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _g_object_unref0 (cam_b); -#line 37 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _g_object_unref0 (cam_a); -#line 784 "CameraBranch.c" - } -#line 45 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - result = ret; -#line 45 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - return result; -#line 790 "CameraBranch.c" -} - - -CameraSidebarEntry* -camera_branch_get_entry_for_camera (CameraBranch* self, - DiscoveredCamera* camera) -{ - CameraSidebarEntry* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 48 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_return_val_if_fail (CAMERA_IS_BRANCH (self), NULL); -#line 48 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_return_val_if_fail (IS_DISCOVERED_CAMERA (camera), NULL); -#line 49 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp0_ = self->priv->camera_map; -#line 49 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), camera); -#line 49 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - result = (CameraSidebarEntry*) _tmp1_; -#line 49 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - return result; -#line 813 "CameraBranch.c" -} - - -static void -camera_branch_on_camera_added (CameraBranch* self, - DiscoveredCamera* camera) -{ -#line 52 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_return_if_fail (CAMERA_IS_BRANCH (self)); -#line 52 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_return_if_fail (IS_DISCOVERED_CAMERA (camera)); -#line 53 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - camera_branch_add_camera (self, camera); -#line 827 "CameraBranch.c" -} - - -static void -camera_branch_on_camera_removed (CameraBranch* self, - DiscoveredCamera* camera) -{ -#line 56 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_return_if_fail (CAMERA_IS_BRANCH (self)); -#line 56 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_return_if_fail (IS_DISCOVERED_CAMERA (camera)); -#line 57 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - camera_branch_remove_camera (self, camera); -#line 841 "CameraBranch.c" -} - - -static void -camera_branch_add_camera (CameraBranch* self, - DiscoveredCamera* camera) -{ - GeeHashMap* _tmp0_; - CameraSidebarEntry* entry = NULL; - CameraSidebarEntry* _tmp1_; - GeeHashMap* _tmp2_; - SidebarEntry* _tmp3_; - SidebarEntry* _tmp4_; -#line 60 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_return_if_fail (CAMERA_IS_BRANCH (self)); -#line 60 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_return_if_fail (IS_DISCOVERED_CAMERA (camera)); -#line 61 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp0_ = self->priv->camera_map; -#line 61 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), camera), "!camera_map.has_key(camera)"); -#line 63 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp1_ = camera_sidebar_entry_new (camera); -#line 63 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - entry = _tmp1_; -#line 64 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp2_ = self->priv->camera_map; -#line 64 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), camera, entry); -#line 67 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp3_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 67 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp4_ = _tmp3_; -#line 67 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp4_, G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL); -#line 67 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _g_object_unref0 (_tmp4_); -#line 60 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _g_object_unref0 (entry); -#line 881 "CameraBranch.c" -} - - -static void -camera_branch_remove_camera (CameraBranch* self, - DiscoveredCamera* camera) -{ - GeeHashMap* _tmp0_; - CameraSidebarEntry* entry = NULL; - GeeHashMap* _tmp1_; - gpointer _tmp2_; - gboolean removed = FALSE; - GeeHashMap* _tmp3_; - gboolean _tmp4_; -#line 70 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_return_if_fail (CAMERA_IS_BRANCH (self)); -#line 70 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_return_if_fail (IS_DISCOVERED_CAMERA (camera)); -#line 71 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp0_ = self->priv->camera_map; -#line 71 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), camera), "camera_map.has_key(camera)"); -#line 73 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp1_ = self->priv->camera_map; -#line 73 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), camera); -#line 73 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - entry = (CameraSidebarEntry*) _tmp2_; -#line 74 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _vala_assert (entry != NULL, "entry != null"); -#line 76 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp3_ = self->priv->camera_map; -#line 76 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp4_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), camera, NULL); -#line 76 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - removed = _tmp4_; -#line 77 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _vala_assert (removed, "removed"); -#line 79 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 70 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _g_object_unref0 (entry); -#line 924 "CameraBranch.c" -} - - -static void -camera_branch_class_init (CameraBranchClass * klass) -{ - gchar* _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - camera_branch_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_type_class_add_private (klass, sizeof (CameraBranchPrivate)); -#line 7 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - G_OBJECT_CLASS (klass)->finalize = camera_branch_finalize; -#line 8 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp0_ = g_strdup (RESOURCES_ICON_CAMERAS); -#line 8 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - camera_branch_cameras_icon = _tmp0_; -#line 942 "CameraBranch.c" -} - - -static void -camera_branch_instance_init (CameraBranch * self) -{ - GeeHashMap* _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - self->priv = CAMERA_BRANCH_GET_PRIVATE (self); -#line 10 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp0_ = gee_hash_map_new (TYPE_DISCOVERED_CAMERA, (GBoxedCopyFunc) discovered_camera_ref, (GDestroyNotify) discovered_camera_unref, CAMERA_TYPE_SIDEBAR_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 10 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - self->priv->camera_map = _tmp0_; -#line 956 "CameraBranch.c" -} - - -static void -camera_branch_finalize (GObject * obj) -{ - CameraBranch * self; -#line 7 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, CAMERA_TYPE_BRANCH, CameraBranch); -#line 10 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _g_object_unref0 (self->priv->camera_map); -#line 7 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - G_OBJECT_CLASS (camera_branch_parent_class)->finalize (obj); -#line 970 "CameraBranch.c" -} - - -GType -camera_branch_get_type (void) -{ - static volatile gsize camera_branch_type_id__volatile = 0; - if (g_once_init_enter (&camera_branch_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CameraBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) camera_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CameraBranch), 0, (GInstanceInitFunc) camera_branch_instance_init, NULL }; - GType camera_branch_type_id; - camera_branch_type_id = g_type_register_static (SIDEBAR_TYPE_BRANCH, "CameraBranch", &g_define_type_info, 0); - g_once_init_leave (&camera_branch_type_id__volatile, camera_branch_type_id); - } - return camera_branch_type_id__volatile; -} - - -CameraHeader* -camera_header_construct (GType object_type) -{ - CameraHeader * self = NULL; -#line 85 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - self = (CameraHeader*) sidebar_header_construct (object_type, _ ("Cameras"), _ ("List of all discovered camera devices"), TRUE); -#line 84 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - return self; -#line 996 "CameraBranch.c" -} - - -CameraHeader* -camera_header_new (void) -{ -#line 84 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - return camera_header_construct (CAMERA_TYPE_HEADER); -#line 1005 "CameraBranch.c" -} - - -static void -camera_header_class_init (CameraHeaderClass * klass) -{ -#line 83 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - camera_header_parent_class = g_type_class_peek_parent (klass); -#line 1014 "CameraBranch.c" -} - - -static void -camera_header_instance_init (CameraHeader * self) -{ -} - - -GType -camera_header_get_type (void) -{ - static volatile gsize camera_header_type_id__volatile = 0; - if (g_once_init_enter (&camera_header_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CameraHeaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) camera_header_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CameraHeader), 0, (GInstanceInitFunc) camera_header_instance_init, NULL }; - GType camera_header_type_id; - camera_header_type_id = g_type_register_static (SIDEBAR_TYPE_HEADER, "CameraHeader", &g_define_type_info, 0); - g_once_init_leave (&camera_header_type_id__volatile, camera_header_type_id); - } - return camera_header_type_id__volatile; -} - - -static gpointer -_discovered_camera_ref0 (gpointer self) -{ -#line 94 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - return self ? discovered_camera_ref (self) : NULL; -#line 1043 "CameraBranch.c" -} - - -CameraSidebarEntry* -camera_sidebar_entry_construct (GType object_type, - DiscoveredCamera* camera) -{ - CameraSidebarEntry * self = NULL; - DiscoveredCamera* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 93 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_return_val_if_fail (IS_DISCOVERED_CAMERA (camera), NULL); -#line 93 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - self = (CameraSidebarEntry*) sidebar_simple_page_entry_construct (object_type); -#line 94 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp0_ = _discovered_camera_ref0 (camera); -#line 94 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _discovered_camera_unref0 (self->priv->camera); -#line 94 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - self->priv->camera = _tmp0_; -#line 95 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp1_ = camera->uri; -#line 95 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 95 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _g_free0 (self->priv->uri); -#line 95 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - self->priv->uri = _tmp2_; -#line 93 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - return self; -#line 1075 "CameraBranch.c" -} - - -CameraSidebarEntry* -camera_sidebar_entry_new (DiscoveredCamera* camera) -{ -#line 93 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - return camera_sidebar_entry_construct (CAMERA_TYPE_SIDEBAR_ENTRY, camera); -#line 1084 "CameraBranch.c" -} - - -static gchar* -camera_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) -{ - CameraSidebarEntry * self; - gchar* result = NULL; - const gchar* _tmp0_ = NULL; - DiscoveredCamera* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; -#line 98 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntry); -#line 99 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp1_ = self->priv->camera; -#line 99 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp2_ = _tmp1_->display_name; -#line 99 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp0_ = _tmp2_; -#line 99 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - if (_tmp0_ == NULL) { -#line 99 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp0_ = _ ("Camera"); -#line 1109 "CameraBranch.c" - } -#line 99 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp3_ = g_strdup (_tmp0_); -#line 99 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - result = _tmp3_; -#line 99 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - return result; -#line 1117 "CameraBranch.c" -} - - -static gchar* -camera_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) -{ - CameraSidebarEntry * self; - gchar* result = NULL; - const gchar* _tmp0_ = NULL; - DiscoveredCamera* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp4_; -#line 102 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntry); -#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp1_ = self->priv->camera; -#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp2_ = _tmp1_->icon; -#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp0_ = _tmp2_; -#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - if (_tmp0_ == NULL) { -#line 1140 "CameraBranch.c" - const gchar* _tmp3_; -#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp3_ = camera_branch_cameras_icon; -#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp0_ = _tmp3_; -#line 1146 "CameraBranch.c" - } -#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp4_ = g_strdup (_tmp0_); -#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - result = _tmp4_; -#line 103 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - return result; -#line 1154 "CameraBranch.c" -} - - -static Page* -camera_sidebar_entry_real_create_page (SidebarSimplePageEntry* base) -{ - CameraSidebarEntry * self; - Page* result = NULL; - DiscoveredCamera* _tmp0_; - Camera* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - ImportPage* _tmp7_; - Page* _tmp8_; -#line 106 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntry); -#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp0_ = self->priv->camera; -#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp1_ = _tmp0_->gcamera; -#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp2_ = self->priv->uri; -#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp3_ = sidebar_simple_page_entry_get_sidebar_name (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)); -#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp4_ = _tmp3_; -#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp5_ = sidebar_simple_page_entry_get_sidebar_icon (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)); -#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp6_ = _tmp5_; -#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp7_ = import_page_new (_tmp1_, _tmp2_, _tmp4_, _tmp6_); -#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_object_ref_sink (_tmp7_); -#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PAGE, Page); -#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _g_free0 (_tmp6_); -#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _g_free0 (_tmp4_); -#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - result = _tmp8_; -#line 107 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - return result; -#line 1202 "CameraBranch.c" -} - - -gchar* -camera_sidebar_entry_get_uri (CameraSidebarEntry* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 110 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_return_val_if_fail (CAMERA_IS_SIDEBAR_ENTRY (self), NULL); -#line 111 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp0_ = self->priv->uri; -#line 111 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 111 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - result = _tmp1_; -#line 111 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - return result; -#line 1222 "CameraBranch.c" -} - - -static void -camera_sidebar_entry_class_init (CameraSidebarEntryClass * klass) -{ -#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - camera_sidebar_entry_parent_class = g_type_class_peek_parent (klass); -#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - g_type_class_add_private (klass, sizeof (CameraSidebarEntryPrivate)); -#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) camera_sidebar_entry_real_get_sidebar_name; -#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) camera_sidebar_entry_real_get_sidebar_icon; -#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) camera_sidebar_entry_real_create_page; -#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - G_OBJECT_CLASS (klass)->finalize = camera_sidebar_entry_finalize; -#line 1241 "CameraBranch.c" -} - - -static void -camera_sidebar_entry_instance_init (CameraSidebarEntry * self) -{ -#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - self->priv = CAMERA_SIDEBAR_ENTRY_GET_PRIVATE (self); -#line 1250 "CameraBranch.c" -} - - -static void -camera_sidebar_entry_finalize (GObject * obj) -{ - CameraSidebarEntry * self; -#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntry); -#line 90 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _discovered_camera_unref0 (self->priv->camera); -#line 91 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - _g_free0 (self->priv->uri); -#line 89 "/home/jens/Source/shotwell/src/camera/CameraBranch.vala" - G_OBJECT_CLASS (camera_sidebar_entry_parent_class)->finalize (obj); -#line 1266 "CameraBranch.c" -} - - -GType -camera_sidebar_entry_get_type (void) -{ - static volatile gsize camera_sidebar_entry_type_id__volatile = 0; - if (g_once_init_enter (&camera_sidebar_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CameraSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) camera_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CameraSidebarEntry), 0, (GInstanceInitFunc) camera_sidebar_entry_instance_init, NULL }; - GType camera_sidebar_entry_type_id; - camera_sidebar_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "CameraSidebarEntry", &g_define_type_info, 0); - g_once_init_leave (&camera_sidebar_entry_type_id__volatile, camera_sidebar_entry_type_id); - } - return camera_sidebar_entry_type_id__volatile; -} - - - diff --git a/src/camera/CameraTable.c b/src/camera/CameraTable.c deleted file mode 100644 index d35655d..0000000 --- a/src/camera/CameraTable.c +++ /dev/null @@ -1,4249 +0,0 @@ -/* CameraTable.c generated by valac 0.40.4, the Vala compiler - * generated from CameraTable.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_DISCOVERED_CAMERA (discovered_camera_get_type ()) -#define DISCOVERED_CAMERA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DISCOVERED_CAMERA, DiscoveredCamera)) -#define DISCOVERED_CAMERA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DISCOVERED_CAMERA, DiscoveredCameraClass)) -#define IS_DISCOVERED_CAMERA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DISCOVERED_CAMERA)) -#define IS_DISCOVERED_CAMERA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DISCOVERED_CAMERA)) -#define DISCOVERED_CAMERA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DISCOVERED_CAMERA, DiscoveredCameraClass)) - -typedef struct _DiscoveredCamera DiscoveredCamera; -typedef struct _DiscoveredCameraClass DiscoveredCameraClass; -typedef struct _DiscoveredCameraPrivate DiscoveredCameraPrivate; -#define _gp_camera_unref0(var) ((var == NULL) ? NULL : (var = (gp_camera_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _ParamSpecDiscoveredCamera ParamSpecDiscoveredCamera; - -#define TYPE_CAMERA_TABLE (camera_table_get_type ()) -#define CAMERA_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CAMERA_TABLE, CameraTable)) -#define CAMERA_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CAMERA_TABLE, CameraTableClass)) -#define IS_CAMERA_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CAMERA_TABLE)) -#define IS_CAMERA_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CAMERA_TABLE)) -#define CAMERA_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CAMERA_TABLE, CameraTableClass)) - -typedef struct _CameraTable CameraTable; -typedef struct _CameraTableClass CameraTableClass; -typedef struct _CameraTablePrivate CameraTablePrivate; - -#define TYPE_ONE_SHOT_SCHEDULER (one_shot_scheduler_get_type ()) -#define ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler)) -#define ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass)) -#define IS_ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ONE_SHOT_SCHEDULER)) -#define IS_ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ONE_SHOT_SCHEDULER)) -#define ONE_SHOT_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass)) - -typedef struct _OneShotScheduler OneShotScheduler; -typedef struct _OneShotSchedulerClass OneShotSchedulerClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _one_shot_scheduler_unref0(var) ((var == NULL) ? NULL : (var = (one_shot_scheduler_unref (var), NULL))) -#define _gp_context_unref0(var) ((var == NULL) ? NULL : (var = (gp_context_unref (var), NULL))) -#define _gp_abilities_list_free0(var) ((var == NULL) ? NULL : (var = (gp_abilities_list_free (var), NULL))) - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _camera_table_unref0(var) ((var == NULL) ? NULL : (var = (camera_table_unref (var), NULL))) -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) -#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL))) -#define _gp_port_info_list_free0(var) ((var == NULL) ? NULL : (var = (gp_port_info_list_free (var), NULL))) -#define _gp_list_unref0(var) ((var == NULL) ? NULL : (var = (gp_list_unref (var), NULL))) -#define _discovered_camera_unref0(var) ((var == NULL) ? NULL : (var = (discovered_camera_unref (var), NULL))) -typedef struct _ParamSpecCameraTable ParamSpecCameraTable; -enum { - CAMERA_TABLE_CAMERA_ADDED_SIGNAL, - CAMERA_TABLE_CAMERA_REMOVED_SIGNAL, - CAMERA_TABLE_NUM_SIGNALS -}; -static guint camera_table_signals[CAMERA_TABLE_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _DiscoveredCamera { - GTypeInstance parent_instance; - volatile int ref_count; - DiscoveredCameraPrivate * priv; - Camera* gcamera; - gchar* uri; - gchar* display_name; - gchar* icon; -}; - -struct _DiscoveredCameraClass { - GTypeClass parent_class; - void (*finalize) (DiscoveredCamera *self); -}; - -struct _ParamSpecDiscoveredCamera { - GParamSpec parent_instance; -}; - -struct _CameraTable { - GTypeInstance parent_instance; - volatile int ref_count; - CameraTablePrivate * priv; -}; - -struct _CameraTableClass { - GTypeClass parent_class; - void (*finalize) (CameraTable *self); -}; - -struct _CameraTablePrivate { - GUdevClient* client; - OneShotScheduler* camera_update_scheduler; - GPContext* null_context; - CameraAbilitiesList* abilities_list; - GVolumeMonitor* volume_monitor; - GeeHashMap* camera_map; -}; - -typedef void (*OneShotCallback) (void* user_data); -typedef enum { - GPHOTO_ERROR_LIBRARY -} GPhotoError; -#define GPHOTO_ERROR gphoto_error_quark () -struct _ParamSpecCameraTable { - GParamSpec parent_instance; -}; - - -static gpointer discovered_camera_parent_class = NULL; -static gpointer camera_table_parent_class = NULL; -static CameraTable* camera_table_instance; -static CameraTable* camera_table_instance = NULL; - -gpointer discovered_camera_ref (gpointer instance); -void discovered_camera_unref (gpointer instance); -GParamSpec* param_spec_discovered_camera (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_discovered_camera (GValue* value, - gpointer v_object); -void value_take_discovered_camera (GValue* value, - gpointer v_object); -gpointer value_get_discovered_camera (const GValue* value); -GType discovered_camera_get_type (void) G_GNUC_CONST; -DiscoveredCamera* discovered_camera_new (Camera* gcamera, - const gchar* uri, - const gchar* display_name, - const gchar* icon); -DiscoveredCamera* discovered_camera_construct (GType object_type, - Camera* gcamera, - const gchar* uri, - const gchar* display_name, - const gchar* icon); -static void discovered_camera_finalize (DiscoveredCamera * obj); -gpointer camera_table_ref (gpointer instance); -void camera_table_unref (gpointer instance); -GParamSpec* param_spec_camera_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_camera_table (GValue* value, - gpointer v_object); -void value_take_camera_table (GValue* value, - gpointer v_object); -gpointer value_get_camera_table (const GValue* value); -GType camera_table_get_type (void) G_GNUC_CONST; -gpointer one_shot_scheduler_ref (gpointer instance); -void one_shot_scheduler_unref (gpointer instance); -GParamSpec* param_spec_one_shot_scheduler (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_one_shot_scheduler (GValue* value, - gpointer v_object); -void value_take_one_shot_scheduler (GValue* value, - gpointer v_object); -gpointer value_get_one_shot_scheduler (const GValue* value); -GType one_shot_scheduler_get_type (void) G_GNUC_CONST; -#define CAMERA_TABLE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CAMERA_TABLE, CameraTablePrivate)) -#define CAMERA_TABLE_UPDATE_DELAY_MSEC 1000 -static CameraTable* camera_table_new (void); -static CameraTable* camera_table_construct (GType object_type); -static void camera_table_on_update_cameras (CameraTable* self); -static void _camera_table_on_update_cameras_one_shot_callback (gpointer self); -OneShotScheduler* one_shot_scheduler_new (const gchar* name, - OneShotCallback callback, - void* callback_target); -OneShotScheduler* one_shot_scheduler_construct (GType object_type, - const gchar* name, - OneShotCallback callback, - void* callback_target); -static void camera_table_on_udev_event (CameraTable* self, - const gchar* action, - GUdevDevice* device); -static void _camera_table_on_udev_event_g_udev_client_uevent (GUdevClient* _sender, - const gchar* action, - GUdevDevice* device, - gpointer self); -void camera_table_on_volume_changed (CameraTable* self, - GVolume* volume); -static void _camera_table_on_volume_changed_g_volume_monitor_volume_changed (GVolumeMonitor* _sender, - GVolume* volume, - gpointer self); -static void _camera_table_on_volume_changed_g_volume_monitor_volume_added (GVolumeMonitor* _sender, - GVolume* volume, - gpointer self); -static gboolean camera_table_delayed_init (CameraTable* self); -static gboolean _camera_table_delayed_init_gsource_func (gpointer self); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -GType library_window_get_type (void) G_GNUC_CONST; -void library_window_set_page_switching_enabled (LibraryWindow* self, - gboolean should_enable); -GQuark gphoto_error_quark (void); -static void camera_table_init_camera_table (CameraTable* self, - GError** error); -static void camera_table_update_camera_table (CameraTable* self, - GError** error); -CameraTable* camera_table_get_instance (void); -GeeIterable* camera_table_get_cameras (CameraTable* self); -gint camera_table_get_count (CameraTable* self); -DiscoveredCamera* camera_table_get_for_uri (CameraTable* self, - const gchar* uri); -static void camera_table_do_op (CameraTable* self, - int res, - const gchar* op, - GError** error); -gchar* camera_table_get_port_uri (const gchar* port); -gchar* camera_table_get_port_path (const gchar* port); -static gchar* camera_table_get_name_for_uuid (CameraTable* self, - const gchar* uuid); -static void _g_object_unref0_ (gpointer var); -static inline void _g_list_free__g_object_unref0_ (GList* self); -static gchar* camera_table_get_icon_for_uuid (CameraTable* self, - const gchar* uuid); -static void _vala_array_add69 (DiscoveredCamera** * array, - int* length, - int* size, - DiscoveredCamera* value); -void one_shot_scheduler_after_timeout (OneShotScheduler* self, - guint msec, - gboolean reschedule); -static void g_cclosure_user_marshal_VOID__DISCOVERED_CAMERA (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void camera_table_finalize (CameraTable * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - -static const gchar* CAMERA_TABLE_SUBSYSTEMS[3] = {"usb", "block", NULL}; - -static gpointer -_GPHOTO_REF_CAMERA0 (gpointer self) -{ -#line 14 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return self ? GPHOTO_REF_CAMERA (self) : NULL; -#line 308 "CameraTable.c" -} - - -DiscoveredCamera* -discovered_camera_construct (GType object_type, - Camera* gcamera, - const gchar* uri, - const gchar* display_name, - const gchar* icon) -{ - DiscoveredCamera* self = NULL; - Camera* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 13 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (gcamera != NULL, NULL); -#line 13 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (uri != NULL, NULL); -#line 13 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (display_name != NULL, NULL); -#line 13 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self = (DiscoveredCamera*) g_type_create_instance (object_type); -#line 14 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp0_ = _GPHOTO_REF_CAMERA0 (gcamera); -#line 14 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_camera_unref0 (self->gcamera); -#line 14 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self->gcamera = _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp1_ = g_strdup (uri); -#line 15 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (self->uri); -#line 15 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self->uri = _tmp1_; -#line 16 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp2_ = g_strdup (display_name); -#line 16 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (self->display_name); -#line 16 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self->display_name = _tmp2_; -#line 17 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp3_ = g_strdup (icon); -#line 17 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (self->icon); -#line 17 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self->icon = _tmp3_; -#line 13 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return self; -#line 358 "CameraTable.c" -} - - -DiscoveredCamera* -discovered_camera_new (Camera* gcamera, - const gchar* uri, - const gchar* display_name, - const gchar* icon) -{ -#line 13 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return discovered_camera_construct (TYPE_DISCOVERED_CAMERA, gcamera, uri, display_name, icon); -#line 370 "CameraTable.c" -} - - -static void -value_discovered_camera_init (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - value->data[0].v_pointer = NULL; -#line 379 "CameraTable.c" -} - - -static void -value_discovered_camera_free_value (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - discovered_camera_unref (value->data[0].v_pointer); -#line 390 "CameraTable.c" - } -} - - -static void -value_discovered_camera_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (src_value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - dest_value->data[0].v_pointer = discovered_camera_ref (src_value->data[0].v_pointer); -#line 403 "CameraTable.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - dest_value->data[0].v_pointer = NULL; -#line 407 "CameraTable.c" - } -} - - -static gpointer -value_discovered_camera_peek_pointer (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return value->data[0].v_pointer; -#line 417 "CameraTable.c" -} - - -static gchar* -value_discovered_camera_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (collect_values[0].v_pointer) { -#line 429 "CameraTable.c" - DiscoveredCamera * object; - object = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (object->parent_instance.g_class == NULL) { -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 436 "CameraTable.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 440 "CameraTable.c" - } -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - value->data[0].v_pointer = discovered_camera_ref (object); -#line 444 "CameraTable.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - value->data[0].v_pointer = NULL; -#line 448 "CameraTable.c" - } -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return NULL; -#line 452 "CameraTable.c" -} - - -static gchar* -value_discovered_camera_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - DiscoveredCamera ** object_p; - object_p = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (!object_p) { -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 468 "CameraTable.c" - } -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (!value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - *object_p = NULL; -#line 474 "CameraTable.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - *object_p = value->data[0].v_pointer; -#line 478 "CameraTable.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - *object_p = discovered_camera_ref (value->data[0].v_pointer); -#line 482 "CameraTable.c" - } -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return NULL; -#line 486 "CameraTable.c" -} - - -GParamSpec* -param_spec_discovered_camera (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecDiscoveredCamera* spec; -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_DISCOVERED_CAMERA), NULL); -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return G_PARAM_SPEC (spec); -#line 506 "CameraTable.c" -} - - -gpointer -value_get_discovered_camera (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DISCOVERED_CAMERA), NULL); -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return value->data[0].v_pointer; -#line 517 "CameraTable.c" -} - - -void -value_set_discovered_camera (GValue* value, - gpointer v_object) -{ - DiscoveredCamera * old; -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DISCOVERED_CAMERA)); -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DISCOVERED_CAMERA)); -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - value->data[0].v_pointer = v_object; -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - discovered_camera_ref (value->data[0].v_pointer); -#line 540 "CameraTable.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - value->data[0].v_pointer = NULL; -#line 544 "CameraTable.c" - } -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - discovered_camera_unref (old); -#line 550 "CameraTable.c" - } -} - - -void -value_take_discovered_camera (GValue* value, - gpointer v_object) -{ - DiscoveredCamera * old; -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DISCOVERED_CAMERA)); -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DISCOVERED_CAMERA)); -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - value->data[0].v_pointer = v_object; -#line 572 "CameraTable.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - value->data[0].v_pointer = NULL; -#line 576 "CameraTable.c" - } -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - discovered_camera_unref (old); -#line 582 "CameraTable.c" - } -} - - -static void -discovered_camera_class_init (DiscoveredCameraClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - discovered_camera_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - ((DiscoveredCameraClass *) klass)->finalize = discovered_camera_finalize; -#line 594 "CameraTable.c" -} - - -static void -discovered_camera_instance_init (DiscoveredCamera * self) -{ -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self->ref_count = 1; -#line 603 "CameraTable.c" -} - - -static void -discovered_camera_finalize (DiscoveredCamera * obj) -{ - DiscoveredCamera * self; -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DISCOVERED_CAMERA, DiscoveredCamera); -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_signal_handlers_destroy (self); -#line 8 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_camera_unref0 (self->gcamera); -#line 9 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (self->uri); -#line 10 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (self->display_name); -#line 11 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (self->icon); -#line 623 "CameraTable.c" -} - - -GType -discovered_camera_get_type (void) -{ - static volatile gsize discovered_camera_type_id__volatile = 0; - if (g_once_init_enter (&discovered_camera_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_discovered_camera_init, value_discovered_camera_free_value, value_discovered_camera_copy_value, value_discovered_camera_peek_pointer, "p", value_discovered_camera_collect_value, "p", value_discovered_camera_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (DiscoveredCameraClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) discovered_camera_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DiscoveredCamera), 0, (GInstanceInitFunc) discovered_camera_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType discovered_camera_type_id; - discovered_camera_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DiscoveredCamera", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&discovered_camera_type_id__volatile, discovered_camera_type_id); - } - return discovered_camera_type_id__volatile; -} - - -gpointer -discovered_camera_ref (gpointer instance) -{ - DiscoveredCamera * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_atomic_int_inc (&self->ref_count); -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return instance; -#line 652 "CameraTable.c" -} - - -void -discovered_camera_unref (gpointer instance) -{ - DiscoveredCamera * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - DISCOVERED_CAMERA_GET_CLASS (self)->finalize (self); -#line 7 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 667 "CameraTable.c" - } -} - - -static void -_camera_table_on_update_cameras_one_shot_callback (gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_on_update_cameras ((CameraTable*) self); -#line 677 "CameraTable.c" -} - - -static void -_camera_table_on_udev_event_g_udev_client_uevent (GUdevClient* _sender, - const gchar* action, - GUdevDevice* device, - gpointer self) -{ -#line 46 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_on_udev_event ((CameraTable*) self, action, device); -#line 689 "CameraTable.c" -} - - -static void -_camera_table_on_volume_changed_g_volume_monitor_volume_changed (GVolumeMonitor* _sender, - GVolume* volume, - gpointer self) -{ -#line 48 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_on_volume_changed ((CameraTable*) self, volume); -#line 700 "CameraTable.c" -} - - -static void -_camera_table_on_volume_changed_g_volume_monitor_volume_added (GVolumeMonitor* _sender, - GVolume* volume, - gpointer self) -{ -#line 49 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_on_volume_changed ((CameraTable*) self, volume); -#line 711 "CameraTable.c" -} - - -static gboolean -_camera_table_delayed_init_gsource_func (gpointer self) -{ - gboolean result; - result = camera_table_delayed_init ((CameraTable*) self); -#line 54 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return result; -#line 722 "CameraTable.c" -} - - -static CameraTable* -camera_table_construct (GType object_type) -{ - CameraTable* self = NULL; - OneShotScheduler* _tmp0_; - GUdevClient* _tmp1_; - GVolumeMonitor* _tmp2_; - GVolumeMonitor* _tmp3_; - GVolumeMonitor* _tmp4_; -#line 41 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self = (CameraTable*) g_type_create_instance (object_type); -#line 42 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp0_ = one_shot_scheduler_new ("CameraTable update scheduler", _camera_table_on_update_cameras_one_shot_callback, self); -#line 42 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _one_shot_scheduler_unref0 (self->priv->camera_update_scheduler); -#line 42 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self->priv->camera_update_scheduler = _tmp0_; -#line 46 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp1_ = self->priv->client; -#line 46 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_signal_connect (_tmp1_, "uevent", (GCallback) _camera_table_on_udev_event_g_udev_client_uevent, self); -#line 47 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp2_ = g_volume_monitor_get (); -#line 47 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (self->priv->volume_monitor); -#line 47 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self->priv->volume_monitor = _tmp2_; -#line 48 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp3_ = self->priv->volume_monitor; -#line 48 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_signal_connect (_tmp3_, "volume-changed", (GCallback) _camera_table_on_volume_changed_g_volume_monitor_volume_changed, self); -#line 49 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp4_ = self->priv->volume_monitor; -#line 49 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_signal_connect (_tmp4_, "volume-added", (GCallback) _camera_table_on_volume_changed_g_volume_monitor_volume_added, self); -#line 54 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 500, _camera_table_delayed_init_gsource_func, camera_table_ref (self), camera_table_unref); -#line 41 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return self; -#line 765 "CameraTable.c" -} - - -static CameraTable* -camera_table_new (void) -{ -#line 41 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return camera_table_construct (TYPE_CAMERA_TABLE); -#line 774 "CameraTable.c" -} - - -static gboolean -camera_table_delayed_init (CameraTable* self) -{ - gboolean result = FALSE; - AppWindow* _tmp0_; - LibraryWindow* _tmp1_; - AppWindow* _tmp10_; - LibraryWindow* _tmp11_; - GError * _inner_error_ = NULL; -#line 57 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (IS_CAMERA_TABLE (self), FALSE); -#line 60 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp0_ = app_window_get_instance (); -#line 60 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 60 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - library_window_set_page_switching_enabled (_tmp1_, FALSE); -#line 60 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_tmp1_); -#line 797 "CameraTable.c" - { -#line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_init_camera_table (self, &_inner_error_); -#line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 803 "CameraTable.c" - gboolean _tmp2_ = FALSE; -#line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 807 "CameraTable.c" - goto __catch64_gphoto_error; - } -#line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 63 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return _tmp2_; -#line 816 "CameraTable.c" - } - } - goto __finally64; - __catch64_gphoto_error: - { - GError* err = NULL; - GError* _tmp3_; - const gchar* _tmp4_; -#line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - err = _inner_error_; -#line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _inner_error_ = NULL; -#line 65 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp3_ = err; -#line 65 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp4_ = _tmp3_->message; -#line 65 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_warning ("CameraTable.vala:65: Unable to initialize camera table: %s", _tmp4_); -#line 67 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - result = FALSE; -#line 67 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_error_free0 (err); -#line 67 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return result; -#line 841 "CameraTable.c" - } - __finally64: -#line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 846 "CameraTable.c" - gboolean _tmp5_ = FALSE; -#line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 62 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return _tmp5_; -#line 854 "CameraTable.c" - } - { -#line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_update_camera_table (self, &_inner_error_); -#line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 861 "CameraTable.c" - gboolean _tmp6_ = FALSE; -#line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 865 "CameraTable.c" - goto __catch65_gphoto_error; - } -#line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 71 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return _tmp6_; -#line 874 "CameraTable.c" - } - } - goto __finally65; - __catch65_gphoto_error: - { - GError* err = NULL; - GError* _tmp7_; - const gchar* _tmp8_; -#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - err = _inner_error_; -#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _inner_error_ = NULL; -#line 73 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp7_ = err; -#line 73 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp8_ = _tmp7_->message; -#line 73 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_warning ("CameraTable.vala:73: Unable to update camera table: %s", _tmp8_); -#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_error_free0 (err); -#line 895 "CameraTable.c" - } - __finally65: -#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 900 "CameraTable.c" - gboolean _tmp9_ = FALSE; -#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 70 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return _tmp9_; -#line 908 "CameraTable.c" - } -#line 78 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp10_ = app_window_get_instance (); -#line 78 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 78 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - library_window_set_page_switching_enabled (_tmp11_, TRUE); -#line 78 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_tmp11_); -#line 79 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - result = FALSE; -#line 79 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return result; -#line 922 "CameraTable.c" -} - - -static gpointer -_camera_table_ref0 (gpointer self) -{ -#line 86 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return self ? camera_table_ref (self) : NULL; -#line 931 "CameraTable.c" -} - - -CameraTable* -camera_table_get_instance (void) -{ - CameraTable* result = NULL; - CameraTable* _tmp0_; - CameraTable* _tmp2_; - CameraTable* _tmp3_; -#line 83 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp0_ = camera_table_instance; -#line 83 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_tmp0_ == NULL) { -#line 946 "CameraTable.c" - CameraTable* _tmp1_; -#line 84 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp1_ = camera_table_new (); -#line 84 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _camera_table_unref0 (camera_table_instance); -#line 84 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_instance = _tmp1_; -#line 954 "CameraTable.c" - } -#line 86 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp2_ = camera_table_instance; -#line 86 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp3_ = _camera_table_ref0 (_tmp2_); -#line 86 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - result = _tmp3_; -#line 86 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return result; -#line 964 "CameraTable.c" -} - - -GeeIterable* -camera_table_get_cameras (CameraTable* self) -{ - GeeIterable* result = NULL; - GeeHashMap* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; -#line 89 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (IS_CAMERA_TABLE (self), NULL); -#line 90 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp0_ = self->priv->camera_map; -#line 90 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 90 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp2_ = _tmp1_; -#line 90 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable); -#line 90 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return result; -#line 987 "CameraTable.c" -} - - -gint -camera_table_get_count (CameraTable* self) -{ - gint result = 0; - GeeHashMap* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 93 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (IS_CAMERA_TABLE (self), 0); -#line 94 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp0_ = self->priv->camera_map; -#line 94 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp1_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 94 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp2_ = _tmp1_; -#line 94 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - result = _tmp2_; -#line 94 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return result; -#line 1010 "CameraTable.c" -} - - -DiscoveredCamera* -camera_table_get_for_uri (CameraTable* self, - const gchar* uri) -{ - DiscoveredCamera* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 97 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (IS_CAMERA_TABLE (self), NULL); -#line 97 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (uri != NULL, NULL); -#line 98 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp0_ = self->priv->camera_map; -#line 98 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), uri); -#line 98 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - result = (DiscoveredCamera*) _tmp1_; -#line 98 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return result; -#line 1033 "CameraTable.c" -} - - -static void -camera_table_do_op (CameraTable* self, - int res, - const gchar* op, - GError** error) -{ - GError * _inner_error_ = NULL; -#line 101 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (IS_CAMERA_TABLE (self)); -#line 101 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (op != NULL); -#line 102 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (res != GP_OK) { -#line 1050 "CameraTable.c" - const gchar* _tmp0_; - GError* _tmp1_; -#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp0_ = gp_port_result_as_string (res); -#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp1_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Unable to %s: %s", (gint) res, op, _tmp0_); -#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _inner_error_ = _tmp1_; -#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 1065 "CameraTable.c" - } else { -#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 103 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 1073 "CameraTable.c" - } - } -} - - -static void -camera_table_init_camera_table (CameraTable* self, - GError** error) -{ - CameraAbilitiesList* _tmp0_ = NULL; - int _tmp1_; - CameraAbilitiesList* _tmp2_; - GPContext* _tmp3_; - GError * _inner_error_ = NULL; -#line 106 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (IS_CAMERA_TABLE (self)); -#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp1_ = gp_abilities_list_new (&_tmp0_); -#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_abilities_list_free0 (self->priv->abilities_list); -#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self->priv->abilities_list = _tmp0_; -#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, _tmp1_, "create camera abilities list", &_inner_error_); -#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 1106 "CameraTable.c" - } else { -#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 107 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 1114 "CameraTable.c" - } - } -#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp2_ = self->priv->abilities_list; -#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp3_ = self->priv->null_context; -#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, gp_abilities_list_load (_tmp2_, _tmp3_), "load camera abilities list", &_inner_error_); -#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 1131 "CameraTable.c" - } else { -#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 108 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 1139 "CameraTable.c" - } - } -} - - -gchar* -camera_table_get_port_uri (const gchar* port) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 111 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (port != NULL, NULL); -#line 112 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp0_ = g_strdup_printf ("gphoto2://[%s]/", port); -#line 112 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - result = _tmp0_; -#line 112 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return result; -#line 1158 "CameraTable.c" -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1182 "CameraTable.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1191 "CameraTable.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 1212 "CameraTable.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 1216 "CameraTable.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 1222 "CameraTable.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 1232 "CameraTable.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 1236 "CameraTable.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 1244 "CameraTable.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 1251 "CameraTable.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 1255 "CameraTable.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 1261 "CameraTable.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1273 "CameraTable.c" -} - - -static gchar* -string_replace (const gchar* self, - const gchar* old, - const gchar* replacement) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 1296 "CameraTable.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 1300 "CameraTable.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 1306 "CameraTable.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 1310 "CameraTable.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1314 "CameraTable.c" - gchar* _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = g_strdup (self); -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1322 "CameraTable.c" - } - { - GRegex* regex = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GRegex* _tmp5_; - GRegex* _tmp6_; - gchar* _tmp7_ = NULL; - GRegex* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_regex_escape_string (old, -1); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp5_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp4_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - regex = _tmp6_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 1350 "CameraTable.c" - goto __catch66_g_regex_error; - } -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 1359 "CameraTable.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = regex; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp9_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 1373 "CameraTable.c" - goto __catch66_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 1384 "CameraTable.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = _tmp7_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = NULL; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp10_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp7_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1398 "CameraTable.c" - } - goto __finally66; - __catch66_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 1412 "CameraTable.c" - } - __finally66: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 1423 "CameraTable.c" - } -} - - -gchar* -camera_table_get_port_path (const gchar* port) -{ - gchar* result = NULL; - gchar* _tmp0_ = NULL; -#line 115 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (port != NULL, NULL); -#line 117 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (g_str_has_prefix (port, "usb:")) { -#line 1437 "CameraTable.c" - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp1_ = string_substring (port, (glong) 4, (glong) -1); -#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp2_ = _tmp1_; -#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp3_ = string_replace (_tmp2_, ",", "/"); -#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp4_ = _tmp3_; -#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp5_ = g_strdup_printf ("/dev/bus/usb/%s", _tmp4_); -#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (_tmp0_); -#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp0_ = _tmp5_; -#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (_tmp4_); -#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (_tmp2_); -#line 1461 "CameraTable.c" - } else { -#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (_tmp0_); -#line 118 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp0_ = NULL; -#line 1467 "CameraTable.c" - } -#line 117 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - result = _tmp0_; -#line 117 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return result; -#line 1473 "CameraTable.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return self ? g_object_ref (self) : NULL; -#line 1482 "CameraTable.c" -} - - -static void -_g_object_unref0_ (gpointer var) -{ -#line 124 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (var == NULL) ? NULL : (var = (g_object_unref (var), NULL)); -#line 1491 "CameraTable.c" -} - - -static inline void -_g_list_free__g_object_unref0_ (GList* self) -{ -#line 124 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_list_free_full (self, (GDestroyNotify) _g_object_unref0_); -#line 1500 "CameraTable.c" -} - - -static gchar* -camera_table_get_name_for_uuid (CameraTable* self, - const gchar* uuid) -{ - gchar* result = NULL; - GVolumeMonitor* _tmp0_; - GList* _tmp1_; -#line 121 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (IS_CAMERA_TABLE (self), NULL); -#line 121 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (uuid != NULL, NULL); -#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp0_ = self->priv->volume_monitor; -#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp1_ = g_volume_monitor_get_volumes (_tmp0_); -#line 1519 "CameraTable.c" - { - GList* volume_collection = NULL; - GList* volume_it = NULL; -#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - volume_collection = _tmp1_; -#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - for (volume_it = volume_collection; volume_it != NULL; volume_it = volume_it->next) { -#line 1527 "CameraTable.c" - GVolume* _tmp2_; - GVolume* volume = NULL; -#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp2_ = _g_object_ref0 ((GVolume*) volume_it->data); -#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - volume = _tmp2_; -#line 1534 "CameraTable.c" - { - GVolume* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gboolean _tmp6_; -#line 123 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp3_ = volume; -#line 123 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp4_ = g_volume_get_identifier (_tmp3_, G_VOLUME_IDENTIFIER_KIND_UUID); -#line 123 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp5_ = _tmp4_; -#line 123 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp6_ = g_strcmp0 (_tmp5_, uuid) == 0; -#line 123 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (_tmp5_); -#line 123 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_tmp6_) { -#line 1552 "CameraTable.c" - GVolume* _tmp7_; - gchar* _tmp8_; -#line 124 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp7_ = volume; -#line 124 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp8_ = g_volume_get_name (_tmp7_); -#line 124 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - result = _tmp8_; -#line 124 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (volume); -#line 124 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - __g_list_free__g_object_unref0_0 (volume_collection); -#line 124 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return result; -#line 1567 "CameraTable.c" - } -#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (volume); -#line 1571 "CameraTable.c" - } - } -#line 122 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - __g_list_free__g_object_unref0_0 (volume_collection); -#line 1576 "CameraTable.c" - } -#line 127 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - result = NULL; -#line 127 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return result; -#line 1582 "CameraTable.c" -} - - -static gchar* -camera_table_get_icon_for_uuid (CameraTable* self, - const gchar* uuid) -{ - gchar* result = NULL; - GVolumeMonitor* _tmp0_; - GList* _tmp1_; -#line 130 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (IS_CAMERA_TABLE (self), NULL); -#line 130 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (uuid != NULL, NULL); -#line 131 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp0_ = self->priv->volume_monitor; -#line 131 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp1_ = g_volume_monitor_get_volumes (_tmp0_); -#line 1601 "CameraTable.c" - { - GList* volume_collection = NULL; - GList* volume_it = NULL; -#line 131 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - volume_collection = _tmp1_; -#line 131 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - for (volume_it = volume_collection; volume_it != NULL; volume_it = volume_it->next) { -#line 1609 "CameraTable.c" - GVolume* _tmp2_; - GVolume* volume = NULL; -#line 131 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp2_ = _g_object_ref0 ((GVolume*) volume_it->data); -#line 131 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - volume = _tmp2_; -#line 1616 "CameraTable.c" - { - GVolume* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gboolean _tmp6_; -#line 132 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp3_ = volume; -#line 132 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp4_ = g_volume_get_identifier (_tmp3_, G_VOLUME_IDENTIFIER_KIND_UUID); -#line 132 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp5_ = _tmp4_; -#line 132 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp6_ = g_strcmp0 (_tmp5_, uuid) == 0; -#line 132 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (_tmp5_); -#line 132 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_tmp6_) { -#line 1634 "CameraTable.c" - GVolume* _tmp7_; - GIcon* _tmp8_; - GIcon* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; -#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp7_ = volume; -#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp8_ = g_volume_get_icon (_tmp7_); -#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp9_ = _tmp8_; -#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp10_ = g_icon_to_string (_tmp9_); -#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp11_ = _tmp10_; -#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_tmp9_); -#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - result = _tmp11_; -#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (volume); -#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - __g_list_free__g_object_unref0_0 (volume_collection); -#line 133 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return result; -#line 1660 "CameraTable.c" - } -#line 131 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (volume); -#line 1664 "CameraTable.c" - } - } -#line 131 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - __g_list_free__g_object_unref0_0 (volume_collection); -#line 1669 "CameraTable.c" - } -#line 136 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - result = NULL; -#line 136 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return result; -#line 1675 "CameraTable.c" -} - - -static gpointer -_discovered_camera_ref0 (gpointer self) -{ -#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return self ? discovered_camera_ref (self) : NULL; -#line 1684 "CameraTable.c" -} - - -static void -_vala_array_add69 (DiscoveredCamera** * array, - int* length, - int* size, - DiscoveredCamera* value) -{ -#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if ((*length) == (*size)) { -#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - *array = g_renew (DiscoveredCamera*, *array, (*size) + 1); -#line 1700 "CameraTable.c" - } -#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (*array)[(*length)++] = value; -#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (*array)[*length] = NULL; -#line 1706 "CameraTable.c" -} - - -static void -camera_table_update_camera_table (CameraTable* self, - GError** error) -{ - GPPortInfoList* port_info_list = NULL; - GPPortInfoList* _tmp0_ = NULL; - int _tmp1_; - GPPortInfoList* _tmp2_; - CameraList* camera_list = NULL; - CameraList* _tmp3_ = NULL; - int _tmp4_; - CameraAbilitiesList* _tmp5_; - GPPortInfoList* _tmp6_; - CameraList* _tmp7_; - GPContext* _tmp8_; - GeeHashMap* detected_map = NULL; - GeeHashMap* _tmp9_; - DiscoveredCamera** missing = NULL; - DiscoveredCamera** _tmp31_; - gint missing_length1; - gint _missing_size_; - DiscoveredCamera** _tmp62_; - gint _tmp62__length1; - GError * _inner_error_ = NULL; -#line 139 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (IS_CAMERA_TABLE (self)); -#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp1_ = gp_port_info_list_new (&_tmp0_); -#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - port_info_list = _tmp0_; -#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, _tmp1_, "create port list", &_inner_error_); -#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 1754 "CameraTable.c" - } else { -#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 142 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 1764 "CameraTable.c" - } - } -#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp2_ = port_info_list; -#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, gp_port_info_list_load (_tmp2_), "load port list", &_inner_error_); -#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 1781 "CameraTable.c" - } else { -#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 143 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 1791 "CameraTable.c" - } - } -#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp4_ = gp_list_new (&_tmp3_); -#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_list = _tmp3_; -#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, _tmp4_, "create camera list", &_inner_error_); -#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 1814 "CameraTable.c" - } else { -#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 146 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 1826 "CameraTable.c" - } - } -#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp5_ = self->priv->abilities_list; -#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp6_ = port_info_list; -#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp7_ = camera_list; -#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp8_ = self->priv->null_context; -#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, gp_abilities_list_detect (_tmp5_, _tmp6_, _tmp7_, _tmp8_), "detect cameras", &_inner_error_); -#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 1851 "CameraTable.c" - } else { -#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 147 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 1863 "CameraTable.c" - } - } -#line 149 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp9_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 149 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - detected_map = _tmp9_; -#line 1870 "CameraTable.c" - { - gint ctr = 0; -#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - ctr = 0; -#line 1875 "CameraTable.c" - { - gboolean _tmp10_ = FALSE; -#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp10_ = TRUE; -#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - while (TRUE) { -#line 1882 "CameraTable.c" - gint _tmp12_; - CameraList* _tmp13_; - gchar* name = NULL; - CameraList* _tmp14_; - gint _tmp15_; - const gchar* _tmp16_ = NULL; - int _tmp17_; - gchar* _tmp18_; - gchar* port = NULL; - CameraList* _tmp19_; - gint _tmp20_; - const gchar* _tmp21_ = NULL; - int _tmp22_; - gchar* _tmp23_; - gint _tmp24_; - CameraList* _tmp25_; - const gchar* _tmp26_; - const gchar* _tmp27_; - GeeHashMap* _tmp28_; - const gchar* _tmp29_; - const gchar* _tmp30_; -#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (!_tmp10_) { -#line 1906 "CameraTable.c" - gint _tmp11_; -#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp11_ = ctr; -#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - ctr = _tmp11_ + 1; -#line 1912 "CameraTable.c" - } -#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp10_ = FALSE; -#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp12_ = ctr; -#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp13_ = camera_list; -#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (!(_tmp12_ < gp_list_count (_tmp13_))) { -#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - break; -#line 1924 "CameraTable.c" - } -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp14_ = camera_list; -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp15_ = ctr; -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp17_ = gp_list_get_name (_tmp14_, _tmp15_, &_tmp16_); -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp18_ = g_strdup (_tmp16_); -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - name = _tmp18_; -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, _tmp17_, "get detected camera name", &_inner_error_); -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 1956 "CameraTable.c" - } else { -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 154 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 1972 "CameraTable.c" - } - } -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp19_ = camera_list; -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp20_ = ctr; -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp22_ = gp_list_get_value (_tmp19_, _tmp20_, &_tmp21_); -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp23_ = g_strdup (_tmp21_); -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - port = _tmp23_; -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, _tmp22_, "get detected camera port", &_inner_error_); -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 2007 "CameraTable.c" - } else { -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 157 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 2025 "CameraTable.c" - } - } -#line 159 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp24_ = ctr; -#line 159 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp25_ = camera_list; -#line 159 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp26_ = name; -#line 159 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp27_ = port; -#line 159 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_debug ("CameraTable.vala:159: Detected %d/%d %s @ %s", _tmp24_ + 1, gp_list_count (_tmp25_), _tmp26_, _tmp27_); -#line 162 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp28_ = detected_map; -#line 162 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp29_ = port; -#line 162 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp30_ = name; -#line 162 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp29_, _tmp30_); -#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 152 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 2050 "CameraTable.c" - } - } - } -#line 166 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp31_ = g_new0 (DiscoveredCamera*, 0 + 1); -#line 166 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = _tmp31_; -#line 166 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing_length1 = 0; -#line 166 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _missing_size_ = missing_length1; -#line 2062 "CameraTable.c" - { - GeeIterator* _camera_it = NULL; - GeeHashMap* _tmp32_; - GeeCollection* _tmp33_; - GeeCollection* _tmp34_; - GeeCollection* _tmp35_; - GeeIterator* _tmp36_; - GeeIterator* _tmp37_; -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp32_ = self->priv->camera_map; -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp33_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp34_ = _tmp33_; -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp35_ = _tmp34_; -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp36_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp37_ = _tmp36_; -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_tmp35_); -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _camera_it = _tmp37_; -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - while (TRUE) { -#line 2089 "CameraTable.c" - GeeIterator* _tmp38_; - DiscoveredCamera* camera = NULL; - GeeIterator* _tmp39_; - gpointer _tmp40_; - GPPortInfo port_info = {0}; - gchar* tmp_path = NULL; - DiscoveredCamera* _tmp41_; - Camera* _tmp42_; - GPPortInfo _tmp43_ = {0}; - int _tmp44_; - const gchar* _tmp45_ = NULL; - gchar* _tmp46_; - CameraAbilities abilities = {0}; - DiscoveredCamera* _tmp47_; - Camera* _tmp48_; - CameraAbilities _tmp49_ = {0}; - int _tmp50_; - GeeHashMap* _tmp51_; - const gchar* _tmp52_; - CameraAbilities _tmp56_; - const gchar* _tmp57_; - const gchar* _tmp58_; - DiscoveredCamera** _tmp59_; - gint _tmp59__length1; - DiscoveredCamera* _tmp60_; - DiscoveredCamera* _tmp61_; -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp38_ = _camera_it; -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (!gee_iterator_next (_tmp38_)) { -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - break; -#line 2122 "CameraTable.c" - } -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp39_ = _camera_it; -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp40_ = gee_iterator_get (_tmp39_); -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera = (DiscoveredCamera*) _tmp40_; -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp41_ = camera; -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp42_ = _tmp41_->gcamera; -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp44_ = gp_camera_get_port_info (_tmp42_, &_tmp43_); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - port_info = _tmp43_; -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, _tmp44_, "retrieve missing camera port information", &_inner_error_); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _discovered_camera_unref0 (camera); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_camera_it); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 2166 "CameraTable.c" - } else { -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _discovered_camera_unref0 (camera); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_camera_it); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 171 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 2190 "CameraTable.c" - } - } -#line 174 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - gp_port_info_get_path (port_info, &_tmp45_); -#line 174 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 174 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp46_ = g_strdup (_tmp45_); -#line 174 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - tmp_path = _tmp46_; -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp47_ = camera; -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp48_ = _tmp47_->gcamera; -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp50_ = gp_camera_get_abilities (_tmp48_, &_tmp49_); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (abilities); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - abilities = _tmp49_; -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, _tmp50_, "retrieve camera abilities", &_inner_error_); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (abilities); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _discovered_camera_unref0 (camera); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_camera_it); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 2239 "CameraTable.c" - } else { -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (abilities); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _discovered_camera_unref0 (camera); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_camera_it); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 177 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 2265 "CameraTable.c" - } - } -#line 179 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp51_ = detected_map; -#line 179 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp52_ = tmp_path; -#line 179 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp52_)) { -#line 2274 "CameraTable.c" - CameraAbilities _tmp53_; - const gchar* _tmp54_; - const gchar* _tmp55_; -#line 180 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp53_ = abilities; -#line 180 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp54_ = _tmp53_.model; -#line 180 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp55_ = tmp_path; -#line 180 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_debug ("CameraTable.vala:180: Found camera for %s @ %s in detected map", _tmp54_, _tmp55_); -#line 182 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (abilities); -#line 182 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 182 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 182 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _discovered_camera_unref0 (camera); -#line 182 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - continue; -#line 2296 "CameraTable.c" - } -#line 185 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp56_ = abilities; -#line 185 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp57_ = _tmp56_.model; -#line 185 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp58_ = tmp_path; -#line 185 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_debug ("CameraTable.vala:185: %s @ %s missing", _tmp57_, _tmp58_); -#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp59_ = missing; -#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp59__length1 = missing_length1; -#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp60_ = camera; -#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp61_ = _discovered_camera_ref0 (_tmp60_); -#line 187 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _vala_array_add69 (&missing, &missing_length1, &_missing_size_, _tmp61_); -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (abilities); -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _discovered_camera_unref0 (camera); -#line 2324 "CameraTable.c" - } -#line 167 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_camera_it); -#line 2328 "CameraTable.c" - } -#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp62_ = missing; -#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp62__length1 = missing_length1; -#line 2334 "CameraTable.c" - { - DiscoveredCamera** camera_collection = NULL; - gint camera_collection_length1 = 0; - gint _camera_collection_size_ = 0; - gint camera_it = 0; -#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_collection = _tmp62_; -#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_collection_length1 = _tmp62__length1; -#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - for (camera_it = 0; camera_it < _tmp62__length1; camera_it = camera_it + 1) { -#line 2346 "CameraTable.c" - DiscoveredCamera* _tmp63_; - DiscoveredCamera* camera = NULL; -#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp63_ = _discovered_camera_ref0 (camera_collection[camera_it]); -#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera = _tmp63_; -#line 2353 "CameraTable.c" - { - GPPortInfo port_info = {0}; - gchar* tmp_path = NULL; - DiscoveredCamera* _tmp64_; - Camera* _tmp65_; - GPPortInfo _tmp66_ = {0}; - int _tmp67_; - const gchar* _tmp68_ = NULL; - gchar* _tmp69_; - CameraAbilities abilities = {0}; - DiscoveredCamera* _tmp70_; - Camera* _tmp71_; - CameraAbilities _tmp72_ = {0}; - int _tmp73_; - CameraAbilities _tmp74_; - const gchar* _tmp75_; - const gchar* _tmp76_; - GeeHashMap* _tmp77_; - const gchar* _tmp78_; - gchar* _tmp79_; - gchar* _tmp80_; - DiscoveredCamera* _tmp81_; -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp64_ = camera; -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp65_ = _tmp64_->gcamera; -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp67_ = gp_camera_get_port_info (_tmp65_, &_tmp66_); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - port_info = _tmp66_; -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, _tmp67_, "retrieve missing camera port information", &_inner_error_); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _discovered_camera_unref0 (camera); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 2410 "CameraTable.c" - } else { -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _discovered_camera_unref0 (camera); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 195 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 2432 "CameraTable.c" - } - } -#line 197 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - gp_port_info_get_path (port_info, &_tmp68_); -#line 197 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 197 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp69_ = g_strdup (_tmp68_); -#line 197 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - tmp_path = _tmp69_; -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp70_ = camera; -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp71_ = _tmp70_->gcamera; -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp73_ = gp_camera_get_abilities (_tmp71_, &_tmp72_); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (abilities); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - abilities = _tmp72_; -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, _tmp73_, "retrieve missing camera abilities", &_inner_error_); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (abilities); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _discovered_camera_unref0 (camera); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 2479 "CameraTable.c" - } else { -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (abilities); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _discovered_camera_unref0 (camera); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 200 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 2503 "CameraTable.c" - } - } -#line 202 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp74_ = abilities; -#line 202 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp75_ = _tmp74_.model; -#line 202 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp76_ = tmp_path; -#line 202 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_debug ("CameraTable.vala:202: Removing from camera table: %s @ %s", _tmp75_, _tmp76_); -#line 204 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp77_ = self->priv->camera_map; -#line 204 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp78_ = tmp_path; -#line 204 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp79_ = camera_table_get_port_uri (_tmp78_); -#line 204 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp80_ = _tmp79_; -#line 204 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp80_, NULL); -#line 204 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (_tmp80_); -#line 206 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp81_ = camera; -#line 206 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_signal_emit (self, camera_table_signals[CAMERA_TABLE_CAMERA_REMOVED_SIGNAL], 0, _tmp81_); -#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (abilities); -#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 191 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _discovered_camera_unref0 (camera); -#line 2538 "CameraTable.c" - } - } - } - { - GeeIterator* _port_it = NULL; - GeeHashMap* _tmp82_; - GeeSet* _tmp83_; - GeeSet* _tmp84_; - GeeSet* _tmp85_; - GeeIterator* _tmp86_; - GeeIterator* _tmp87_; -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp82_ = detected_map; -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp83_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp84_ = _tmp83_; -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp85_ = _tmp84_; -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp86_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp87_ = _tmp86_; -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_tmp85_); -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _port_it = _tmp87_; -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - while (TRUE) { -#line 2568 "CameraTable.c" - GeeIterator* _tmp88_; - gchar* port = NULL; - GeeIterator* _tmp89_; - gpointer _tmp90_; - gchar* name = NULL; - GeeHashMap* _tmp91_; - const gchar* _tmp92_; - gpointer _tmp93_; - gchar* display_name = NULL; - gchar* icon = NULL; - gchar* uri = NULL; - const gchar* _tmp94_; - gchar* _tmp95_; - GeeHashMap* _tmp96_; - const gchar* _tmp97_; - gchar* path = NULL; - const gchar* _tmp100_; - gchar* _tmp101_; - const gchar* _tmp102_; - const gchar* _tmp122_; - const gchar* _tmp141_; - gint index = 0; - GPPortInfoList* _tmp144_; - const gchar* _tmp145_; - gint _tmp146_; - GPPortInfo port_info = {0}; - gchar* tmp_path = NULL; - GPPortInfoList* _tmp151_; - gint _tmp152_; - GPPortInfo _tmp153_ = {0}; - int _tmp154_; - const gchar* _tmp155_; - gchar* _tmp156_; - gchar* _tmp157_; - const gchar* _tmp158_ = NULL; - gchar* _tmp159_; - const gchar* _tmp160_; - const gchar* _tmp161_; - CameraAbilitiesList* _tmp162_; - const gchar* _tmp163_; - gint _tmp164_; - CameraAbilities camera_abilities = {0}; - CameraAbilitiesList* _tmp169_; - gint _tmp170_; - CameraAbilities _tmp171_ = {0}; - int _tmp172_; - const gchar* _tmp173_; - gchar* _tmp174_; - gchar* _tmp175_; - Camera* gcamera = NULL; - Camera* _tmp176_ = NULL; - int _tmp177_; - const gchar* _tmp178_; - gchar* _tmp179_; - gchar* _tmp180_; - Camera* _tmp181_; - CameraAbilities _tmp182_; - const gchar* _tmp183_; - gchar* _tmp184_; - gchar* _tmp185_; - Camera* _tmp186_; - GPPortInfo _tmp187_; - const gchar* _tmp188_; - const gchar* _tmp189_; - gchar* _tmp190_; - gchar* _tmp191_; - const gchar* _tmp192_; - const gchar* _tmp193_; - DiscoveredCamera* camera = NULL; - Camera* _tmp194_; - const gchar* _tmp195_; - const gchar* _tmp196_; - const gchar* _tmp197_; - DiscoveredCamera* _tmp198_; - GeeHashMap* _tmp199_; - const gchar* _tmp200_; - DiscoveredCamera* _tmp201_; - DiscoveredCamera* _tmp202_; -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp88_ = _port_it; -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (!gee_iterator_next (_tmp88_)) { -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - break; -#line 2653 "CameraTable.c" - } -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp89_ = _port_it; -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp90_ = gee_iterator_get (_tmp89_); -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - port = (gchar*) _tmp90_; -#line 211 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp91_ = detected_map; -#line 211 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp92_ = port; -#line 211 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp93_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp91_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp92_); -#line 211 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - name = (gchar*) _tmp93_; -#line 212 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - display_name = NULL; -#line 213 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - icon = NULL; -#line 214 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp94_ = port; -#line 214 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp95_ = camera_table_get_port_uri (_tmp94_); -#line 214 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - uri = _tmp95_; -#line 216 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp96_ = self->priv->camera_map; -#line 216 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp97_ = uri; -#line 216 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp96_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp97_)) { -#line 2685 "CameraTable.c" - const gchar* _tmp98_; - const gchar* _tmp99_; -#line 218 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp98_ = name; -#line 218 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp99_ = port; -#line 218 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_debug ("CameraTable.vala:218: %s @ %s already registered, skipping", _tmp98_, _tmp99_); -#line 220 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 220 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 220 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 220 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 220 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 220 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - continue; -#line 2706 "CameraTable.c" - } -#line 224 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp100_ = port; -#line 224 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp101_ = camera_table_get_port_path (_tmp100_); -#line 224 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - path = _tmp101_; -#line 225 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp102_ = path; -#line 225 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (NULL != _tmp102_) { -#line 2718 "CameraTable.c" - GUdevDevice* device = NULL; - GUdevClient* _tmp103_; - const gchar* _tmp104_; - GUdevDevice* _tmp105_; - gchar* serial = NULL; - GUdevDevice* _tmp106_; - const gchar* _tmp107_; - gchar* _tmp108_; - const gchar* _tmp109_; - const gchar* _tmp114_; - const gchar* _tmp118_; -#line 226 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp103_ = self->priv->client; -#line 226 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp104_ = path; -#line 226 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp105_ = g_udev_client_query_by_device_file (_tmp103_, _tmp104_); -#line 226 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - device = _tmp105_; -#line 227 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp106_ = device; -#line 227 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp107_ = g_udev_device_get_property (_tmp106_, "ID_SERIAL_SHORT"); -#line 227 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp108_ = g_strdup (_tmp107_); -#line 227 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - serial = _tmp108_; -#line 228 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp109_ = serial; -#line 228 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (NULL != _tmp109_) { -#line 2750 "CameraTable.c" - const gchar* _tmp110_; - gchar* _tmp111_; - const gchar* _tmp112_; - gchar* _tmp113_; -#line 230 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp110_ = serial; -#line 230 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp111_ = camera_table_get_name_for_uuid (self, _tmp110_); -#line 230 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 230 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - display_name = _tmp111_; -#line 231 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp112_ = serial; -#line 231 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp113_ = camera_table_get_icon_for_uuid (self, _tmp112_); -#line 231 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 231 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - icon = _tmp113_; -#line 2771 "CameraTable.c" - } -#line 233 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp114_ = display_name; -#line 233 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (NULL == _tmp114_) { -#line 2777 "CameraTable.c" - GUdevDevice* _tmp115_; - const gchar* _tmp116_; - gchar* _tmp117_; -#line 234 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp115_ = device; -#line 234 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp116_ = g_udev_device_get_sysfs_attr (_tmp115_, "product"); -#line 234 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp117_ = g_strdup (_tmp116_); -#line 234 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 234 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - display_name = _tmp117_; -#line 2791 "CameraTable.c" - } -#line 236 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp118_ = display_name; -#line 236 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (NULL == _tmp118_) { -#line 2797 "CameraTable.c" - GUdevDevice* _tmp119_; - const gchar* _tmp120_; - gchar* _tmp121_; -#line 237 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp119_ = device; -#line 237 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp120_ = g_udev_device_get_property (_tmp119_, "ID_MODEL"); -#line 237 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp121_ = g_strdup (_tmp120_); -#line 237 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 237 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - display_name = _tmp121_; -#line 2811 "CameraTable.c" - } -#line 225 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (serial); -#line 225 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (device); -#line 2817 "CameraTable.c" - } -#line 241 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp122_ = port; -#line 241 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (g_str_has_prefix (_tmp122_, "disk:")) { -#line 2823 "CameraTable.c" - { - GMount* mount = NULL; - const gchar* _tmp123_; - gchar* _tmp124_; - gchar* _tmp125_; - GFile* _tmp126_; - GFile* _tmp127_; - GMount* _tmp128_; - GMount* _tmp129_; - GVolume* volume = NULL; - GMount* _tmp130_; - GVolume* _tmp131_; - const gchar* _tmp132_; - GVolume* _tmp133_; - gchar* _tmp134_; - gchar* _tmp135_; - gchar* _tmp136_; - GVolume* _tmp137_; - GIcon* _tmp138_; - GIcon* _tmp139_; - gchar* _tmp140_; -#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp123_ = port; -#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp124_ = string_substring (_tmp123_, (glong) 5, (glong) -1); -#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp125_ = _tmp124_; -#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp126_ = g_file_new_for_path (_tmp125_); -#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp127_ = _tmp126_; -#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp128_ = g_file_find_enclosing_mount (_tmp127_, NULL, &_inner_error_); -#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp129_ = _tmp128_; -#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_tmp127_); -#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (_tmp125_); -#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - mount = _tmp129_; -#line 243 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2867 "CameraTable.c" - goto __catch67_g_error; - } -#line 244 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp130_ = mount; -#line 244 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp131_ = g_mount_get_volume (_tmp130_); -#line 244 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - volume = _tmp131_; -#line 246 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp132_ = name; -#line 246 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp133_ = volume; -#line 246 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp134_ = g_volume_get_name (_tmp133_); -#line 246 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp135_ = _tmp134_; -#line 246 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp136_ = g_strdup_printf (_ ("%s (%s)"), _tmp132_, _tmp135_); -#line 246 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 246 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - display_name = _tmp136_; -#line 246 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (_tmp135_); -#line 247 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp137_ = volume; -#line 247 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp138_ = g_volume_get_icon (_tmp137_); -#line 247 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp139_ = _tmp138_; -#line 247 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp140_ = g_icon_to_string (_tmp139_); -#line 247 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 247 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - icon = _tmp140_; -#line 247 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_tmp139_); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (volume); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (mount); -#line 2910 "CameraTable.c" - } - goto __finally67; - __catch67_g_error: - { - GError* e = NULL; -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - e = _inner_error_; -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _inner_error_ = NULL; -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_error_free0 (e); -#line 2922 "CameraTable.c" - } - __finally67: -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (path); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_port_it); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 2955 "CameraTable.c" - } else { -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (path); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_port_it); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 242 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 2985 "CameraTable.c" - } - } - } -#line 251 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp141_ = display_name; -#line 251 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (NULL == _tmp141_) { -#line 2993 "CameraTable.c" - const gchar* _tmp142_; - gchar* _tmp143_; -#line 253 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp142_ = name; -#line 253 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp143_ = g_strdup (_tmp142_); -#line 253 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 253 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - display_name = _tmp143_; -#line 3004 "CameraTable.c" - } -#line 255 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp144_ = port_info_list; -#line 255 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp145_ = port; -#line 255 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - index = gp_port_info_list_lookup_path (_tmp144_, _tmp145_); -#line 256 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp146_ = index; -#line 256 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_tmp146_ < 0) { -#line 3016 "CameraTable.c" - gint _tmp147_; - const gchar* _tmp148_; - gchar* _tmp149_; - gchar* _tmp150_; -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp147_ = index; -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp148_ = port; -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp149_ = g_strdup_printf ("lookup port %s", _tmp148_); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp150_ = _tmp149_; -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, (int) _tmp147_, _tmp150_, &_inner_error_); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (_tmp150_); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (path); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_port_it); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 3063 "CameraTable.c" - } else { -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (path); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_port_it); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 257 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 3093 "CameraTable.c" - } - } - } -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp151_ = port_info_list; -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp152_ = index; -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp154_ = gp_port_info_list_get_info (_tmp151_, _tmp152_, &_tmp153_); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - port_info = _tmp153_; -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp155_ = port; -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp156_ = g_strdup_printf ("get port info for %s", _tmp155_); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp157_ = _tmp156_; -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, _tmp154_, _tmp157_, &_inner_error_); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (_tmp157_); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (path); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_port_it); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 3151 "CameraTable.c" - } else { -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (path); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_port_it); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 262 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 3185 "CameraTable.c" - } - } -#line 263 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - gp_port_info_get_path (port_info, &_tmp158_); -#line 263 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 263 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp159_ = g_strdup (_tmp158_); -#line 263 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - tmp_path = _tmp159_; -#line 266 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp160_ = port; -#line 266 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp161_ = tmp_path; -#line 266 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _vala_assert (g_strcmp0 (_tmp160_, _tmp161_) == 0, "port == tmp_path"); -#line 268 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp162_ = self->priv->abilities_list; -#line 268 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp163_ = name; -#line 268 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - index = gp_abilities_list_lookup_model (_tmp162_, _tmp163_); -#line 269 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp164_ = index; -#line 269 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_tmp164_ < 0) { -#line 3212 "CameraTable.c" - gint _tmp165_; - const gchar* _tmp166_; - gchar* _tmp167_; - gchar* _tmp168_; -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp165_ = index; -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp166_ = name; -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp167_ = g_strdup_printf ("lookup camera model %s", _tmp166_); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp168_ = _tmp167_; -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, (int) _tmp165_, _tmp168_, &_inner_error_); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (_tmp168_); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (path); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_port_it); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 3263 "CameraTable.c" - } else { -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (path); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_port_it); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 270 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 3297 "CameraTable.c" - } - } - } -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp169_ = self->priv->abilities_list; -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp170_ = index; -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp172_ = gp_abilities_list_get_abilities (_tmp169_, _tmp170_, &_tmp171_); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (camera_abilities); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_abilities = _tmp171_; -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp173_ = name; -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp174_ = g_strdup_printf ("lookup camera abilities for %s", _tmp173_); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp175_ = _tmp174_; -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, _tmp172_, _tmp175_, &_inner_error_); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (_tmp175_); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (camera_abilities); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (path); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_port_it); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 3357 "CameraTable.c" - } else { -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (camera_abilities); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (path); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_port_it); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 273 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 3393 "CameraTable.c" - } - } -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp177_ = gp_camera_new (&_tmp176_); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_camera_unref0 (gcamera); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - gcamera = _tmp176_; -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp178_ = name; -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp179_ = g_strdup_printf ("create camera object for %s", _tmp178_); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp180_ = _tmp179_; -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, _tmp177_, _tmp180_, &_inner_error_); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (_tmp180_); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_camera_unref0 (gcamera); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (camera_abilities); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (path); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_port_it); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 3450 "CameraTable.c" - } else { -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_camera_unref0 (gcamera); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (camera_abilities); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (path); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_port_it); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 277 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 3488 "CameraTable.c" - } - } -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp181_ = gcamera; -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp182_ = camera_abilities; -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp183_ = name; -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp184_ = g_strdup_printf ("set camera abilities for %s", _tmp183_); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp185_ = _tmp184_; -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, gp_camera_set_abilities (_tmp181_, _tmp182_), _tmp185_, &_inner_error_); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (_tmp185_); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_camera_unref0 (gcamera); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (camera_abilities); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (path); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_port_it); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 3543 "CameraTable.c" - } else { -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_camera_unref0 (gcamera); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (camera_abilities); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (path); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_port_it); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 278 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 3581 "CameraTable.c" - } - } -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp186_ = gcamera; -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp187_ = port_info; -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp188_ = name; -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp189_ = port; -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp190_ = g_strdup_printf ("set port info for %s on %s", _tmp188_, _tmp189_); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp191_ = _tmp190_; -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_do_op (self, gp_camera_set_port_info (_tmp186_, _tmp187_), _tmp191_, &_inner_error_); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (_tmp191_); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_propagate_error (error, _inner_error_); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_camera_unref0 (gcamera); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (camera_abilities); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (path); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_port_it); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 3638 "CameraTable.c" - } else { -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_camera_unref0 (gcamera); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (camera_abilities); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (path); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_port_it); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 279 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 3676 "CameraTable.c" - } - } -#line 281 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp192_ = name; -#line 281 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp193_ = port; -#line 281 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_debug ("CameraTable.vala:281: Adding to camera table: %s @ %s", _tmp192_, _tmp193_); -#line 283 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp194_ = gcamera; -#line 283 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp195_ = uri; -#line 283 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp196_ = display_name; -#line 283 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp197_ = icon; -#line 283 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp198_ = discovered_camera_new (_tmp194_, _tmp195_, _tmp196_, _tmp197_); -#line 283 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera = _tmp198_; -#line 284 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp199_ = self->priv->camera_map; -#line 284 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp200_ = uri; -#line 284 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp201_ = camera; -#line 284 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp199_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp200_, _tmp201_); -#line 286 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp202_ = camera; -#line 286 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_signal_emit (self, camera_table_signals[CAMERA_TABLE_CAMERA_ADDED_SIGNAL], 0, _tmp202_); -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _discovered_camera_unref0 (camera); -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_camera_unref0 (gcamera); -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (camera_abilities); -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (tmp_path); -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - (port_info); -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (path); -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (uri); -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (icon); -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (display_name); -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (name); -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_free0 (port); -#line 3731 "CameraTable.c" - } -#line 210 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (_port_it); -#line 3735 "CameraTable.c" - } -#line 139 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - missing = (_vala_array_free (missing, missing_length1, (GDestroyNotify) discovered_camera_unref), NULL); -#line 139 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (detected_map); -#line 139 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_list_unref0 (camera_list); -#line 139 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_port_info_list_free0 (port_info_list); -#line 3745 "CameraTable.c" -} - - -static void -camera_table_on_udev_event (CameraTable* self, - const gchar* action, - GUdevDevice* device) -{ - const gchar* _tmp0_; - OneShotScheduler* _tmp1_; -#line 290 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (IS_CAMERA_TABLE (self)); -#line 290 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (action != NULL); -#line 290 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (G_UDEV_IS_DEVICE (device)); -#line 291 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp0_ = g_udev_device_get_name (device); -#line 291 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_debug ("CameraTable.vala:291: udev event: %s on %s", action, _tmp0_); -#line 295 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp1_ = self->priv->camera_update_scheduler; -#line 295 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - one_shot_scheduler_after_timeout (_tmp1_, (guint) CAMERA_TABLE_UPDATE_DELAY_MSEC, TRUE); -#line 3770 "CameraTable.c" -} - - -void -camera_table_on_volume_changed (CameraTable* self, - GVolume* volume) -{ - OneShotScheduler* _tmp0_; -#line 298 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (IS_CAMERA_TABLE (self)); -#line 298 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (G_IS_VOLUME (volume)); -#line 299 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp0_ = self->priv->camera_update_scheduler; -#line 299 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - one_shot_scheduler_after_timeout (_tmp0_, (guint) CAMERA_TABLE_UPDATE_DELAY_MSEC, TRUE); -#line 3787 "CameraTable.c" -} - - -static void -camera_table_on_update_cameras (CameraTable* self) -{ - GError * _inner_error_ = NULL; -#line 302 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (IS_CAMERA_TABLE (self)); -#line 3797 "CameraTable.c" - { - CameraTable* _tmp0_; - CameraTable* _tmp1_; -#line 304 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp0_ = camera_table_get_instance (); -#line 304 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp1_ = _tmp0_; -#line 304 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_update_camera_table (_tmp1_, &_inner_error_); -#line 304 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _camera_table_unref0 (_tmp1_); -#line 304 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 304 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (_inner_error_->domain == GPHOTO_ERROR) { -#line 3813 "CameraTable.c" - goto __catch68_gphoto_error; - } -#line 304 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 304 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 304 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 3822 "CameraTable.c" - } - } - goto __finally68; - __catch68_gphoto_error: - { - GError* err = NULL; - GError* _tmp2_; - const gchar* _tmp3_; -#line 303 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - err = _inner_error_; -#line 303 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _inner_error_ = NULL; -#line 306 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp2_ = err; -#line 306 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp3_ = _tmp2_->message; -#line 306 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_warning ("CameraTable.vala:306: Error updating camera table: %s", _tmp3_); -#line 303 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_error_free0 (err); -#line 3843 "CameraTable.c" - } - __finally68: -#line 303 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 303 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 303 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_clear_error (&_inner_error_); -#line 303 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return; -#line 3854 "CameraTable.c" - } -} - - -static void -g_cclosure_user_marshal_VOID__DISCOVERED_CAMERA (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__DISCOVERED_CAMERA) (gpointer data1, gpointer arg_1, gpointer data2); - register GMarshalFunc_VOID__DISCOVERED_CAMERA callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (n_param_values == 2); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - data1 = closure->data; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - data2 = param_values->data[0].v_pointer; -#line 3881 "CameraTable.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - data1 = param_values->data[0].v_pointer; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - data2 = closure->data; -#line 3887 "CameraTable.c" - } -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - callback = (GMarshalFunc_VOID__DISCOVERED_CAMERA) (marshal_data ? marshal_data : cc->callback); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - callback (data1, value_get_discovered_camera (param_values + 1), data2); -#line 3893 "CameraTable.c" -} - - -static void -value_camera_table_init (GValue* value) -{ -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - value->data[0].v_pointer = NULL; -#line 3902 "CameraTable.c" -} - - -static void -value_camera_table_free_value (GValue* value) -{ -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (value->data[0].v_pointer) { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_unref (value->data[0].v_pointer); -#line 3913 "CameraTable.c" - } -} - - -static void -value_camera_table_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (src_value->data[0].v_pointer) { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - dest_value->data[0].v_pointer = camera_table_ref (src_value->data[0].v_pointer); -#line 3926 "CameraTable.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - dest_value->data[0].v_pointer = NULL; -#line 3930 "CameraTable.c" - } -} - - -static gpointer -value_camera_table_peek_pointer (const GValue* value) -{ -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return value->data[0].v_pointer; -#line 3940 "CameraTable.c" -} - - -static gchar* -value_camera_table_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (collect_values[0].v_pointer) { -#line 3952 "CameraTable.c" - CameraTable * object; - object = collect_values[0].v_pointer; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (object->parent_instance.g_class == NULL) { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3959 "CameraTable.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3963 "CameraTable.c" - } -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - value->data[0].v_pointer = camera_table_ref (object); -#line 3967 "CameraTable.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - value->data[0].v_pointer = NULL; -#line 3971 "CameraTable.c" - } -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return NULL; -#line 3975 "CameraTable.c" -} - - -static gchar* -value_camera_table_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - CameraTable ** object_p; - object_p = collect_values[0].v_pointer; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (!object_p) { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 3991 "CameraTable.c" - } -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (!value->data[0].v_pointer) { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - *object_p = NULL; -#line 3997 "CameraTable.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - *object_p = value->data[0].v_pointer; -#line 4001 "CameraTable.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - *object_p = camera_table_ref (value->data[0].v_pointer); -#line 4005 "CameraTable.c" - } -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return NULL; -#line 4009 "CameraTable.c" -} - - -GParamSpec* -param_spec_camera_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecCameraTable* spec; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_CAMERA_TABLE), NULL); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return G_PARAM_SPEC (spec); -#line 4029 "CameraTable.c" -} - - -gpointer -value_get_camera_table (const GValue* value) -{ -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CAMERA_TABLE), NULL); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return value->data[0].v_pointer; -#line 4040 "CameraTable.c" -} - - -void -value_set_camera_table (GValue* value, - gpointer v_object) -{ - CameraTable * old; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CAMERA_TABLE)); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - old = value->data[0].v_pointer; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (v_object) { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_CAMERA_TABLE)); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - value->data[0].v_pointer = v_object; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_ref (value->data[0].v_pointer); -#line 4063 "CameraTable.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - value->data[0].v_pointer = NULL; -#line 4067 "CameraTable.c" - } -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (old) { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_unref (old); -#line 4073 "CameraTable.c" - } -} - - -void -value_take_camera_table (GValue* value, - gpointer v_object) -{ - CameraTable * old; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_CAMERA_TABLE)); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - old = value->data[0].v_pointer; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (v_object) { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_CAMERA_TABLE)); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - value->data[0].v_pointer = v_object; -#line 4095 "CameraTable.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - value->data[0].v_pointer = NULL; -#line 4099 "CameraTable.c" - } -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (old) { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_unref (old); -#line 4105 "CameraTable.c" - } -} - - -static void -camera_table_class_init (CameraTableClass * klass) -{ -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_parent_class = g_type_class_peek_parent (klass); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - ((CameraTableClass *) klass)->finalize = camera_table_finalize; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_type_class_add_private (klass, sizeof (CameraTablePrivate)); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_signals[CAMERA_TABLE_CAMERA_ADDED_SIGNAL] = g_signal_new ("camera-added", TYPE_CAMERA_TABLE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__DISCOVERED_CAMERA, G_TYPE_NONE, 1, TYPE_DISCOVERED_CAMERA); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - camera_table_signals[CAMERA_TABLE_CAMERA_REMOVED_SIGNAL] = g_signal_new ("camera-removed", TYPE_CAMERA_TABLE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__DISCOVERED_CAMERA, G_TYPE_NONE, 1, TYPE_DISCOVERED_CAMERA); -#line 4123 "CameraTable.c" -} - - -static void -camera_table_instance_init (CameraTable * self) -{ - GUdevClient* _tmp0_; - GPContext* _tmp1_; - GeeHashMap* _tmp2_; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self->priv = CAMERA_TABLE_GET_PRIVATE (self); -#line 29 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp0_ = g_udev_client_new (CAMERA_TABLE_SUBSYSTEMS); -#line 29 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self->priv->client = _tmp0_; -#line 30 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self->priv->camera_update_scheduler = NULL; -#line 31 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp1_ = gp_context_new (); -#line 31 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self->priv->null_context = _tmp1_; -#line 35 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _tmp2_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_DISCOVERED_CAMERA, (GBoxedCopyFunc) discovered_camera_ref, (GDestroyNotify) discovered_camera_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 35 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self->priv->camera_map = _tmp2_; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self->ref_count = 1; -#line 4151 "CameraTable.c" -} - - -static void -camera_table_finalize (CameraTable * obj) -{ - CameraTable * self; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CAMERA_TABLE, CameraTable); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_signal_handlers_destroy (self); -#line 29 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (self->priv->client); -#line 30 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _one_shot_scheduler_unref0 (self->priv->camera_update_scheduler); -#line 31 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_context_unref0 (self->priv->null_context); -#line 32 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _gp_abilities_list_free0 (self->priv->abilities_list); -#line 33 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (self->priv->volume_monitor); -#line 35 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - _g_object_unref0 (self->priv->camera_map); -#line 4175 "CameraTable.c" -} - - -GType -camera_table_get_type (void) -{ - static volatile gsize camera_table_type_id__volatile = 0; - if (g_once_init_enter (&camera_table_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_camera_table_init, value_camera_table_free_value, value_camera_table_copy_value, value_camera_table_peek_pointer, "p", value_camera_table_collect_value, "p", value_camera_table_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (CameraTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) camera_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CameraTable), 0, (GInstanceInitFunc) camera_table_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType camera_table_type_id; - camera_table_type_id = g_type_register_fundamental (g_type_fundamental_next (), "CameraTable", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&camera_table_type_id__volatile, camera_table_type_id); - } - return camera_table_type_id__volatile; -} - - -gpointer -camera_table_ref (gpointer instance) -{ - CameraTable * self; - self = instance; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_atomic_int_inc (&self->ref_count); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - return instance; -#line 4204 "CameraTable.c" -} - - -void -camera_table_unref (gpointer instance) -{ - CameraTable * self; - self = instance; -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - CAMERA_TABLE_GET_CLASS (self)->finalize (self); -#line 21 "/home/jens/Source/shotwell/src/camera/CameraTable.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 4219 "CameraTable.c" - } -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/camera/CameraTable.vala b/src/camera/CameraTable.vala index 3df4ad6..5f888ac 100644 --- a/src/camera/CameraTable.vala +++ b/src/camera/CameraTable.vala @@ -26,7 +26,9 @@ public class CameraTable { private static CameraTable instance = null; +#if HAVE_UDEV private GUdev.Client client = new GUdev.Client(SUBSYSTEMS); +#endif private OneShotScheduler camera_update_scheduler = null; private GPhoto.Context null_context = new GPhoto.Context(); private GPhoto.CameraAbilitiesList abilities_list; @@ -43,7 +45,12 @@ public class CameraTable { on_update_cameras); // listen for interesting events on the specified subsystems + +#if HAVE_UDEV client.uevent.connect(on_udev_event); +#else + Timeout.add_seconds(10, () => { camera_update_scheduler.after_timeout(UPDATE_DELAY_MSEC, true); return true; }); +#endif volume_monitor = VolumeMonitor.get(); volume_monitor.volume_changed.connect(on_volume_changed); volume_monitor.volume_added.connect(on_volume_changed); @@ -118,6 +125,7 @@ public class CameraTable { "/dev/bus/usb/%s".printf(port.substring(4).replace(",", "/")) : null; } +#if HAVE_UDEV private string? get_name_for_uuid(string uuid) { foreach (Volume volume in volume_monitor.get_volumes()) { if (volume.get_identifier(VolumeIdentifier.UUID) == uuid) { @@ -130,11 +138,12 @@ public class CameraTable { private string? get_icon_for_uuid(string uuid) { foreach (Volume volume in volume_monitor.get_volumes()) { if (volume.get_identifier(VolumeIdentifier.UUID) == uuid) { - return volume.get_icon().to_string(); + return volume.get_symbolic_icon().to_string(); } } return null; } +#endif private void update_camera_table() throws GPhotoError { // need to do this because virtual ports come and go in the USB world (and probably others) @@ -147,7 +156,7 @@ public class CameraTable { do_op(abilities_list.detect(port_info_list, camera_list, null_context), "detect cameras"); Gee.HashMap detected_map = new Gee.HashMap(); - + // go through the detected camera list and glean their ports for (int ctr = 0; ctr < camera_list.count(); ctr++) { string name; @@ -158,7 +167,6 @@ public class CameraTable { debug("Detected %d/%d %s @ %s", ctr + 1, camera_list.count(), name, port); - detected_map.set(port, name); } @@ -220,6 +228,7 @@ public class CameraTable { continue; } +#if HAVE_UDEV // Get display name for camera. string path = get_port_path(port); if (null != path) { @@ -237,6 +246,7 @@ public class CameraTable { display_name = device.get_property("ID_MODEL"); } } +#endif if (port.has_prefix("disk:")) { try { @@ -244,7 +254,7 @@ public class CameraTable { var volume = mount.get_volume(); // Translators: First %s is the name of camera as gotten from GPhoto, second is the GVolume name, e.g. Mass storage camera (510MB volume) display_name = _("%s (%s)").printf (name, volume.get_name ()); - icon = volume.get_icon().to_string(); + icon = volume.get_symbolic_icon().to_string(); } catch (Error e) { } } @@ -287,6 +297,7 @@ public class CameraTable { } } +#if HAVE_UDEV private void on_udev_event(string action, GUdev.Device device) { debug("udev event: %s on %s", action, device.get_name()); @@ -294,6 +305,7 @@ public class CameraTable { // update to occur when they come in all at once camera_update_scheduler.after_timeout(UPDATE_DELAY_MSEC, true); } +#endif public void on_volume_changed(Volume volume) { camera_update_scheduler.after_timeout(UPDATE_DELAY_MSEC, true); diff --git a/src/camera/GPhoto.c b/src/camera/GPhoto.c deleted file mode 100644 index 773ab4e..0000000 --- a/src/camera/GPhoto.c +++ /dev/null @@ -1,2627 +0,0 @@ -/* GPhoto.c generated by valac 0.40.4, the Vala compiler - * generated from GPhoto.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define GP_TYPE_CONTEXT_WRAPPER (gp_context_wrapper_get_type ()) -#define GP_CONTEXT_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)) -#define GP_CONTEXT_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GP_TYPE_CONTEXT_WRAPPER, GPContextWrapperClass)) -#define GP_IS_CONTEXT_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GP_TYPE_CONTEXT_WRAPPER)) -#define GP_IS_CONTEXT_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GP_TYPE_CONTEXT_WRAPPER)) -#define GP_CONTEXT_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GP_TYPE_CONTEXT_WRAPPER, GPContextWrapperClass)) - -typedef struct _GPContextWrapper GPContextWrapper; -typedef struct _GPContextWrapperClass GPContextWrapperClass; -typedef struct _GPContextWrapperPrivate GPContextWrapperPrivate; -#define _gp_context_unref0(var) ((var == NULL) ? NULL : (var = (gp_context_unref (var), NULL))) -typedef struct _GPParamSpecContextWrapper GPParamSpecContextWrapper; - -#define GP_TYPE_SPIN_IDLE_WRAPPER (gp_spin_idle_wrapper_get_type ()) -#define GP_SPIN_IDLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GP_TYPE_SPIN_IDLE_WRAPPER, GPSpinIdleWrapper)) -#define GP_SPIN_IDLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GP_TYPE_SPIN_IDLE_WRAPPER, GPSpinIdleWrapperClass)) -#define GP_IS_SPIN_IDLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GP_TYPE_SPIN_IDLE_WRAPPER)) -#define GP_IS_SPIN_IDLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GP_TYPE_SPIN_IDLE_WRAPPER)) -#define GP_SPIN_IDLE_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GP_TYPE_SPIN_IDLE_WRAPPER, GPSpinIdleWrapperClass)) - -typedef struct _GPSpinIdleWrapper GPSpinIdleWrapper; -typedef struct _GPSpinIdleWrapperClass GPSpinIdleWrapperClass; -typedef struct _GPSpinIdleWrapperPrivate GPSpinIdleWrapperPrivate; - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL))) -#define _g_bytes_unref0(var) ((var == NULL) ? NULL : (var = (g_bytes_unref (var), NULL))) - -#define TYPE_PHOTO_PREVIEW (photo_preview_get_type ()) -#define PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_PREVIEW, PhotoPreview)) -#define PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_PREVIEW, PhotoPreviewClass)) -#define IS_PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_PREVIEW)) -#define IS_PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_PREVIEW)) -#define PHOTO_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_PREVIEW, PhotoPreviewClass)) - -typedef struct _PhotoPreview PhotoPreview; -typedef struct _PhotoPreviewClass PhotoPreviewClass; -#define _photo_preview_unref0(var) ((var == NULL) ? NULL : (var = (photo_preview_unref (var), NULL))) -#define _gp_file_unref0(var) ((var == NULL) ? NULL : (var = (gp_file_unref (var), NULL))) - -typedef enum { - GPHOTO_ERROR_LIBRARY -} GPhotoError; -#define GPHOTO_ERROR gphoto_error_quark () -struct _GPContextWrapper { - GTypeInstance parent_instance; - volatile int ref_count; - GPContextWrapperPrivate * priv; - GPContext* context; -}; - -struct _GPContextWrapperClass { - GTypeClass parent_class; - void (*finalize) (GPContextWrapper *self); - void (*idle) (GPContextWrapper* self); - void (*error) (GPContextWrapper* self, const gchar* text, void* data); - void (*status) (GPContextWrapper* self, const gchar* text, void* data); - void (*message) (GPContextWrapper* self, const gchar* text, void* data); - void (*progress_start) (GPContextWrapper* self, gfloat current, const gchar* text, void* data); - void (*progress_update) (GPContextWrapper* self, gfloat current, void* data); - void (*progress_stop) (GPContextWrapper* self); -}; - -struct _GPParamSpecContextWrapper { - GParamSpec parent_instance; -}; - -struct _GPSpinIdleWrapper { - GPContextWrapper parent_instance; - GPSpinIdleWrapperPrivate * priv; -}; - -struct _GPSpinIdleWrapperClass { - GPContextWrapperClass parent_class; -}; - - -static gpointer gp_context_wrapper_parent_class = NULL; -static gpointer gp_spin_idle_wrapper_parent_class = NULL; - -GQuark gphoto_error_quark (void); -gpointer gp_context_wrapper_ref (gpointer instance); -void gp_context_wrapper_unref (gpointer instance); -GParamSpec* gp_param_spec_context_wrapper (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void gp_value_set_context_wrapper (GValue* value, - gpointer v_object); -void gp_value_take_context_wrapper (GValue* value, - gpointer v_object); -gpointer gp_value_get_context_wrapper (const GValue* value); -GType gp_context_wrapper_get_type (void) G_GNUC_CONST; -GPContextWrapper* gp_context_wrapper_new (void); -GPContextWrapper* gp_context_wrapper_construct (GType object_type); -static void gp_context_wrapper_on_idle (GPContextWrapper* self, - GPContext* context); -static void _gp_context_wrapper_on_idle_gp_context_idle_func (GPContext* context, - gpointer self); -static void gp_context_wrapper_on_error (GPContextWrapper* self, - GPContext* context, - const gchar* text); -static void _gp_context_wrapper_on_error_gp_context_error_func (GPContext* context, - const gchar* text, - gpointer self); -static void gp_context_wrapper_on_status (GPContextWrapper* self, - GPContext* context, - const gchar* text); -static void _gp_context_wrapper_on_status_gp_context_status_func (GPContext* context, - const gchar* text, - gpointer self); -static void gp_context_wrapper_on_message (GPContextWrapper* self, - GPContext* context, - const gchar* text); -static void _gp_context_wrapper_on_message_gp_context_message_func (GPContext* context, - const gchar* text, - gpointer self); -static guint gp_context_wrapper_on_progress_start (GPContextWrapper* self, - GPContext* context, - gfloat target, - const gchar* text); -static guint _gp_context_wrapper_on_progress_start_gp_context_progress_start_func (GPContext* context, - gfloat target, - const gchar* text, - gpointer self); -static void gp_context_wrapper_on_progress_update (GPContextWrapper* self, - GPContext* context, - guint id, - gfloat current); -static void _gp_context_wrapper_on_progress_update_gp_context_progress_update_func (GPContext* context, - guint id, - gfloat current, - gpointer self); -static void gp_context_wrapper_on_progress_stop (GPContextWrapper* self, - GPContext* context, - guint id); -static void _gp_context_wrapper_on_progress_stop_gp_context_progress_stop_func (GPContext* context, - guint id, - gpointer self); -void gp_context_wrapper_idle (GPContextWrapper* self); -static void gp_context_wrapper_real_idle (GPContextWrapper* self); -void gp_context_wrapper_error (GPContextWrapper* self, - const gchar* text, - void* data); -static void gp_context_wrapper_real_error (GPContextWrapper* self, - const gchar* text, - void* data); -void gp_context_wrapper_status (GPContextWrapper* self, - const gchar* text, - void* data); -static void gp_context_wrapper_real_status (GPContextWrapper* self, - const gchar* text, - void* data); -void gp_context_wrapper_message (GPContextWrapper* self, - const gchar* text, - void* data); -static void gp_context_wrapper_real_message (GPContextWrapper* self, - const gchar* text, - void* data); -void gp_context_wrapper_progress_start (GPContextWrapper* self, - gfloat current, - const gchar* text, - void* data); -static void gp_context_wrapper_real_progress_start (GPContextWrapper* self, - gfloat current, - const gchar* text, - void* data); -void gp_context_wrapper_progress_update (GPContextWrapper* self, - gfloat current, - void* data); -static void gp_context_wrapper_real_progress_update (GPContextWrapper* self, - gfloat current, - void* data); -void gp_context_wrapper_progress_stop (GPContextWrapper* self); -static void gp_context_wrapper_real_progress_stop (GPContextWrapper* self); -static void gp_context_wrapper_finalize (GPContextWrapper * obj); -GType gp_spin_idle_wrapper_get_type (void) G_GNUC_CONST; -GPSpinIdleWrapper* gp_spin_idle_wrapper_new (void); -GPSpinIdleWrapper* gp_spin_idle_wrapper_construct (GType object_type); -static void gp_spin_idle_wrapper_real_idle (GPContextWrapper* base); -void spin_event_loop (void); -static void gp_spin_idle_wrapper_real_progress_update (GPContextWrapper* base, - gfloat current, - void* data); -#define GP_MAX_FILENAME_LENGTH 63 -#define GP_MAX_BASEDIR_LENGTH 255 -gboolean gp_get_info (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - CameraFileInfo* info, - GError** error); -GBytes* gp_camera_file_to_bytes (GPContext* context, - CameraFile* file); -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -PhotoMetadata* gp_get_fallback_metadata (Camera* camera, - GPContext* context, - const gchar* folder, - const gchar* filename); -PhotoMetadata* photo_metadata_new (void); -PhotoMetadata* photo_metadata_construct (GType object_type); -void media_metadata_read_from_file (MediaMetadata* self, - GFile* file, - GError** error); -GdkPixbuf* gp_load_preview (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - gchar* * preview_md5, - GError** error); -GBytes* gp_load_file_into_buffer (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - CameraFileType filetype, - GError** error); -guint photo_metadata_get_preview_count (PhotoMetadata* self); -gpointer photo_preview_ref (gpointer instance); -void photo_preview_unref (gpointer instance); -GParamSpec* param_spec_photo_preview (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_preview (GValue* value, - gpointer v_object); -void value_take_photo_preview (GValue* value, - gpointer v_object); -gpointer value_get_photo_preview (const GValue* value); -GType photo_preview_get_type (void) G_GNUC_CONST; -PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self, - guint number); -GBytes* photo_preview_flatten (PhotoPreview* self, - GError** error); -#define IMPORT_PREVIEW_MAX_SCALE 128 -GdkPixbuf* gp_load_image (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - GError** error); -GInputStream* gp_load_file_into_stream (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - CameraFileType filetype, - GError** error); -void gp_save_image (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - GFile* dest_file, - GError** error); -PhotoMetadata* gp_load_metadata (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - GError** error); -void photo_metadata_read_from_app1_segment (PhotoMetadata* self, - GBytes* buffer, - GError** error); -GFile* app_dirs_get_temp_dir (void); - - -GQuark -gphoto_error_quark (void) -{ - return g_quark_from_static_string ("gphoto_error-quark"); -} - - -static void -_gp_context_wrapper_on_idle_gp_context_idle_func (GPContext* context, - gpointer self) -{ -#line 18 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_on_idle ((GPContextWrapper*) self, context); -#line 344 "GPhoto.c" -} - - -static void -_gp_context_wrapper_on_error_gp_context_error_func (GPContext* context, - const gchar* text, - gpointer self) -{ -#line 19 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_on_error ((GPContextWrapper*) self, context, text); -#line 355 "GPhoto.c" -} - - -static void -_gp_context_wrapper_on_status_gp_context_status_func (GPContext* context, - const gchar* text, - gpointer self) -{ -#line 20 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_on_status ((GPContextWrapper*) self, context, text); -#line 366 "GPhoto.c" -} - - -static void -_gp_context_wrapper_on_message_gp_context_message_func (GPContext* context, - const gchar* text, - gpointer self) -{ -#line 21 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_on_message ((GPContextWrapper*) self, context, text); -#line 377 "GPhoto.c" -} - - -static guint -_gp_context_wrapper_on_progress_start_gp_context_progress_start_func (GPContext* context, - gfloat target, - const gchar* text, - gpointer self) -{ - guint result; - result = gp_context_wrapper_on_progress_start ((GPContextWrapper*) self, context, target, text); -#line 22 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 391 "GPhoto.c" -} - - -static void -_gp_context_wrapper_on_progress_update_gp_context_progress_update_func (GPContext* context, - guint id, - gfloat current, - gpointer self) -{ -#line 22 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_on_progress_update ((GPContextWrapper*) self, context, id, current); -#line 403 "GPhoto.c" -} - - -static void -_gp_context_wrapper_on_progress_stop_gp_context_progress_stop_func (GPContext* context, - guint id, - gpointer self) -{ -#line 22 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_on_progress_stop ((GPContextWrapper*) self, context, id); -#line 414 "GPhoto.c" -} - - -GPContextWrapper* -gp_context_wrapper_construct (GType object_type) -{ - GPContextWrapper* self = NULL; - GPContext* _tmp0_; - GPContext* _tmp1_; - GPContext* _tmp2_; - GPContext* _tmp3_; - GPContext* _tmp4_; -#line 17 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - self = (GPContextWrapper*) g_type_create_instance (object_type); -#line 18 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp0_ = self->context; -#line 18 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_set_idle_func (_tmp0_, _gp_context_wrapper_on_idle_gp_context_idle_func, self); -#line 19 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp1_ = self->context; -#line 19 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_set_error_func (_tmp1_, _gp_context_wrapper_on_error_gp_context_error_func, self); -#line 20 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp2_ = self->context; -#line 20 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_set_status_func (_tmp2_, _gp_context_wrapper_on_status_gp_context_status_func, self); -#line 21 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp3_ = self->context; -#line 21 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_set_message_func (_tmp3_, _gp_context_wrapper_on_message_gp_context_message_func, self); -#line 22 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp4_ = self->context; -#line 22 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_set_progress_funcs (_tmp4_, _gp_context_wrapper_on_progress_start_gp_context_progress_start_func, _gp_context_wrapper_on_progress_update_gp_context_progress_update_func, _gp_context_wrapper_on_progress_stop_gp_context_progress_stop_func, self); -#line 17 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return self; -#line 451 "GPhoto.c" -} - - -GPContextWrapper* -gp_context_wrapper_new (void) -{ -#line 17 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return gp_context_wrapper_construct (GP_TYPE_CONTEXT_WRAPPER); -#line 460 "GPhoto.c" -} - - -static void -gp_context_wrapper_real_idle (GPContextWrapper* self) -{ -} - - -void -gp_context_wrapper_idle (GPContextWrapper* self) -{ -#line 25 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self)); -#line 25 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - GP_CONTEXT_WRAPPER_GET_CLASS (self)->idle (self); -#line 477 "GPhoto.c" -} - - -static void -gp_context_wrapper_real_error (GPContextWrapper* self, - const gchar* text, - void* data) -{ -#line 28 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (text != NULL); -#line 488 "GPhoto.c" -} - - -void -gp_context_wrapper_error (GPContextWrapper* self, - const gchar* text, - void* data) -{ -#line 28 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self)); -#line 28 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - GP_CONTEXT_WRAPPER_GET_CLASS (self)->error (self, text, data); -#line 501 "GPhoto.c" -} - - -static void -gp_context_wrapper_real_status (GPContextWrapper* self, - const gchar* text, - void* data) -{ -#line 31 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (text != NULL); -#line 512 "GPhoto.c" -} - - -void -gp_context_wrapper_status (GPContextWrapper* self, - const gchar* text, - void* data) -{ -#line 31 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self)); -#line 31 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - GP_CONTEXT_WRAPPER_GET_CLASS (self)->status (self, text, data); -#line 525 "GPhoto.c" -} - - -static void -gp_context_wrapper_real_message (GPContextWrapper* self, - const gchar* text, - void* data) -{ -#line 34 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (text != NULL); -#line 536 "GPhoto.c" -} - - -void -gp_context_wrapper_message (GPContextWrapper* self, - const gchar* text, - void* data) -{ -#line 34 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self)); -#line 34 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - GP_CONTEXT_WRAPPER_GET_CLASS (self)->message (self, text, data); -#line 549 "GPhoto.c" -} - - -static void -gp_context_wrapper_real_progress_start (GPContextWrapper* self, - gfloat current, - const gchar* text, - void* data) -{ -#line 37 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (text != NULL); -#line 561 "GPhoto.c" -} - - -void -gp_context_wrapper_progress_start (GPContextWrapper* self, - gfloat current, - const gchar* text, - void* data) -{ -#line 37 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self)); -#line 37 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - GP_CONTEXT_WRAPPER_GET_CLASS (self)->progress_start (self, current, text, data); -#line 575 "GPhoto.c" -} - - -static void -gp_context_wrapper_real_progress_update (GPContextWrapper* self, - gfloat current, - void* data) -{ -} - - -void -gp_context_wrapper_progress_update (GPContextWrapper* self, - gfloat current, - void* data) -{ -#line 40 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self)); -#line 40 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - GP_CONTEXT_WRAPPER_GET_CLASS (self)->progress_update (self, current, data); -#line 596 "GPhoto.c" -} - - -static void -gp_context_wrapper_real_progress_stop (GPContextWrapper* self) -{ -} - - -void -gp_context_wrapper_progress_stop (GPContextWrapper* self) -{ -#line 43 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self)); -#line 43 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - GP_CONTEXT_WRAPPER_GET_CLASS (self)->progress_stop (self); -#line 613 "GPhoto.c" -} - - -static void -gp_context_wrapper_on_idle (GPContextWrapper* self, - GPContext* context) -{ -#line 46 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self)); -#line 46 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (context != NULL); -#line 47 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_idle (self); -#line 627 "GPhoto.c" -} - - -static void -gp_context_wrapper_on_error (GPContextWrapper* self, - GPContext* context, - const gchar* text) -{ -#line 50 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self)); -#line 50 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (context != NULL); -#line 50 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (text != NULL); -#line 51 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_error (self, text, NULL); -#line 644 "GPhoto.c" -} - - -static void -gp_context_wrapper_on_status (GPContextWrapper* self, - GPContext* context, - const gchar* text) -{ -#line 54 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self)); -#line 54 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (context != NULL); -#line 54 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (text != NULL); -#line 55 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_status (self, text, NULL); -#line 661 "GPhoto.c" -} - - -static void -gp_context_wrapper_on_message (GPContextWrapper* self, - GPContext* context, - const gchar* text) -{ -#line 58 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self)); -#line 58 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (context != NULL); -#line 58 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (text != NULL); -#line 59 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_message (self, text, NULL); -#line 678 "GPhoto.c" -} - - -static guint -gp_context_wrapper_on_progress_start (GPContextWrapper* self, - GPContext* context, - gfloat target, - const gchar* text) -{ - guint result = 0U; -#line 62 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (GP_IS_CONTEXT_WRAPPER (self), 0U); -#line 62 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (context != NULL, 0U); -#line 62 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (text != NULL, 0U); -#line 63 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_progress_start (self, target, text, NULL); -#line 65 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = (guint) 0; -#line 65 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 701 "GPhoto.c" -} - - -static void -gp_context_wrapper_on_progress_update (GPContextWrapper* self, - GPContext* context, - guint id, - gfloat current) -{ -#line 68 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self)); -#line 68 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (context != NULL); -#line 69 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_progress_update (self, current, NULL); -#line 717 "GPhoto.c" -} - - -static void -gp_context_wrapper_on_progress_stop (GPContextWrapper* self, - GPContext* context, - guint id) -{ -#line 72 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (GP_IS_CONTEXT_WRAPPER (self)); -#line 72 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (context != NULL); -#line 73 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_progress_stop (self); -#line 732 "GPhoto.c" -} - - -static void -gp_value_context_wrapper_init (GValue* value) -{ -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - value->data[0].v_pointer = NULL; -#line 741 "GPhoto.c" -} - - -static void -gp_value_context_wrapper_free_value (GValue* value) -{ -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (value->data[0].v_pointer) { -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_unref (value->data[0].v_pointer); -#line 752 "GPhoto.c" - } -} - - -static void -gp_value_context_wrapper_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (src_value->data[0].v_pointer) { -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - dest_value->data[0].v_pointer = gp_context_wrapper_ref (src_value->data[0].v_pointer); -#line 765 "GPhoto.c" - } else { -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - dest_value->data[0].v_pointer = NULL; -#line 769 "GPhoto.c" - } -} - - -static gpointer -gp_value_context_wrapper_peek_pointer (const GValue* value) -{ -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return value->data[0].v_pointer; -#line 779 "GPhoto.c" -} - - -static gchar* -gp_value_context_wrapper_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (collect_values[0].v_pointer) { -#line 791 "GPhoto.c" - GPContextWrapper * object; - object = collect_values[0].v_pointer; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (object->parent_instance.g_class == NULL) { -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 798 "GPhoto.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 802 "GPhoto.c" - } -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - value->data[0].v_pointer = gp_context_wrapper_ref (object); -#line 806 "GPhoto.c" - } else { -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - value->data[0].v_pointer = NULL; -#line 810 "GPhoto.c" - } -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return NULL; -#line 814 "GPhoto.c" -} - - -static gchar* -gp_value_context_wrapper_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - GPContextWrapper ** object_p; - object_p = collect_values[0].v_pointer; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (!object_p) { -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 830 "GPhoto.c" - } -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (!value->data[0].v_pointer) { -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - *object_p = NULL; -#line 836 "GPhoto.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - *object_p = value->data[0].v_pointer; -#line 840 "GPhoto.c" - } else { -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - *object_p = gp_context_wrapper_ref (value->data[0].v_pointer); -#line 844 "GPhoto.c" - } -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return NULL; -#line 848 "GPhoto.c" -} - - -GParamSpec* -gp_param_spec_context_wrapper (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - GPParamSpecContextWrapper* spec; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (g_type_is_a (object_type, GP_TYPE_CONTEXT_WRAPPER), NULL); -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return G_PARAM_SPEC (spec); -#line 868 "GPhoto.c" -} - - -gpointer -gp_value_get_context_wrapper (const GValue* value) -{ -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GP_TYPE_CONTEXT_WRAPPER), NULL); -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return value->data[0].v_pointer; -#line 879 "GPhoto.c" -} - - -void -gp_value_set_context_wrapper (GValue* value, - gpointer v_object) -{ - GPContextWrapper * old; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GP_TYPE_CONTEXT_WRAPPER)); -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - old = value->data[0].v_pointer; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (v_object) { -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GP_TYPE_CONTEXT_WRAPPER)); -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - value->data[0].v_pointer = v_object; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_ref (value->data[0].v_pointer); -#line 902 "GPhoto.c" - } else { -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - value->data[0].v_pointer = NULL; -#line 906 "GPhoto.c" - } -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (old) { -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_unref (old); -#line 912 "GPhoto.c" - } -} - - -void -gp_value_take_context_wrapper (GValue* value, - gpointer v_object) -{ - GPContextWrapper * old; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GP_TYPE_CONTEXT_WRAPPER)); -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - old = value->data[0].v_pointer; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (v_object) { -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GP_TYPE_CONTEXT_WRAPPER)); -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - value->data[0].v_pointer = v_object; -#line 934 "GPhoto.c" - } else { -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - value->data[0].v_pointer = NULL; -#line 938 "GPhoto.c" - } -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (old) { -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_unref (old); -#line 944 "GPhoto.c" - } -} - - -static void -gp_context_wrapper_class_init (GPContextWrapperClass * klass) -{ -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_context_wrapper_parent_class = g_type_class_peek_parent (klass); -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - ((GPContextWrapperClass *) klass)->finalize = gp_context_wrapper_finalize; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - ((GPContextWrapperClass *) klass)->idle = (void (*) (GPContextWrapper *)) gp_context_wrapper_real_idle; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - ((GPContextWrapperClass *) klass)->error = (void (*) (GPContextWrapper *, const gchar*, void*)) gp_context_wrapper_real_error; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - ((GPContextWrapperClass *) klass)->status = (void (*) (GPContextWrapper *, const gchar*, void*)) gp_context_wrapper_real_status; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - ((GPContextWrapperClass *) klass)->message = (void (*) (GPContextWrapper *, const gchar*, void*)) gp_context_wrapper_real_message; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - ((GPContextWrapperClass *) klass)->progress_start = (void (*) (GPContextWrapper *, gfloat, const gchar*, void*)) gp_context_wrapper_real_progress_start; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - ((GPContextWrapperClass *) klass)->progress_update = (void (*) (GPContextWrapper *, gfloat, void*)) gp_context_wrapper_real_progress_update; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - ((GPContextWrapperClass *) klass)->progress_stop = (void (*) (GPContextWrapper *)) gp_context_wrapper_real_progress_stop; -#line 970 "GPhoto.c" -} - - -static void -gp_context_wrapper_instance_init (GPContextWrapper * self) -{ - GPContext* _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp0_ = gp_context_new (); -#line 15 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - self->context = _tmp0_; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - self->ref_count = 1; -#line 984 "GPhoto.c" -} - - -static void -gp_context_wrapper_finalize (GPContextWrapper * obj) -{ - GPContextWrapper * self; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper); -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_signal_handlers_destroy (self); -#line 15 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _gp_context_unref0 (self->context); -#line 998 "GPhoto.c" -} - - -GType -gp_context_wrapper_get_type (void) -{ - static volatile gsize gp_context_wrapper_type_id__volatile = 0; - if (g_once_init_enter (&gp_context_wrapper_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { gp_value_context_wrapper_init, gp_value_context_wrapper_free_value, gp_value_context_wrapper_copy_value, gp_value_context_wrapper_peek_pointer, "p", gp_value_context_wrapper_collect_value, "p", gp_value_context_wrapper_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (GPContextWrapperClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gp_context_wrapper_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GPContextWrapper), 0, (GInstanceInitFunc) gp_context_wrapper_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType gp_context_wrapper_type_id; - gp_context_wrapper_type_id = g_type_register_fundamental (g_type_fundamental_next (), "GPContextWrapper", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&gp_context_wrapper_type_id__volatile, gp_context_wrapper_type_id); - } - return gp_context_wrapper_type_id__volatile; -} - - -gpointer -gp_context_wrapper_ref (gpointer instance) -{ - GPContextWrapper * self; - self = instance; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_atomic_int_inc (&self->ref_count); -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return instance; -#line 1027 "GPhoto.c" -} - - -void -gp_context_wrapper_unref (gpointer instance) -{ - GPContextWrapper * self; - self = instance; -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - GP_CONTEXT_WRAPPER_GET_CLASS (self)->finalize (self); -#line 14 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1042 "GPhoto.c" - } -} - - -GPSpinIdleWrapper* -gp_spin_idle_wrapper_construct (GType object_type) -{ - GPSpinIdleWrapper* self = NULL; -#line 79 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - self = (GPSpinIdleWrapper*) gp_context_wrapper_construct (object_type); -#line 79 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return self; -#line 1055 "GPhoto.c" -} - - -GPSpinIdleWrapper* -gp_spin_idle_wrapper_new (void) -{ -#line 79 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return gp_spin_idle_wrapper_construct (GP_TYPE_SPIN_IDLE_WRAPPER); -#line 1064 "GPhoto.c" -} - - -static void -gp_spin_idle_wrapper_real_idle (GPContextWrapper* base) -{ - GPSpinIdleWrapper * self; -#line 82 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, GP_TYPE_SPIN_IDLE_WRAPPER, GPSpinIdleWrapper); -#line 83 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - GP_CONTEXT_WRAPPER_CLASS (gp_spin_idle_wrapper_parent_class)->idle (G_TYPE_CHECK_INSTANCE_CAST (self, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)); -#line 85 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - spin_event_loop (); -#line 1078 "GPhoto.c" -} - - -static void -gp_spin_idle_wrapper_real_progress_update (GPContextWrapper* base, - gfloat current, - void* data) -{ - GPSpinIdleWrapper * self; -#line 88 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, GP_TYPE_SPIN_IDLE_WRAPPER, GPSpinIdleWrapper); -#line 89 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - GP_CONTEXT_WRAPPER_CLASS (gp_spin_idle_wrapper_parent_class)->progress_update (G_TYPE_CHECK_INSTANCE_CAST (self, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper), current, data); -#line 91 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - spin_event_loop (); -#line 1094 "GPhoto.c" -} - - -static void -gp_spin_idle_wrapper_class_init (GPSpinIdleWrapperClass * klass) -{ -#line 78 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_spin_idle_wrapper_parent_class = g_type_class_peek_parent (klass); -#line 78 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - ((GPContextWrapperClass *) klass)->idle = (void (*) (GPContextWrapper *)) gp_spin_idle_wrapper_real_idle; -#line 78 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - ((GPContextWrapperClass *) klass)->progress_update = (void (*) (GPContextWrapper *, gfloat, void*)) gp_spin_idle_wrapper_real_progress_update; -#line 1107 "GPhoto.c" -} - - -static void -gp_spin_idle_wrapper_instance_init (GPSpinIdleWrapper * self) -{ -} - - -GType -gp_spin_idle_wrapper_get_type (void) -{ - static volatile gsize gp_spin_idle_wrapper_type_id__volatile = 0; - if (g_once_init_enter (&gp_spin_idle_wrapper_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (GPSpinIdleWrapperClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gp_spin_idle_wrapper_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GPSpinIdleWrapper), 0, (GInstanceInitFunc) gp_spin_idle_wrapper_instance_init, NULL }; - GType gp_spin_idle_wrapper_type_id; - gp_spin_idle_wrapper_type_id = g_type_register_static (GP_TYPE_CONTEXT_WRAPPER, "GPSpinIdleWrapper", &g_define_type_info, 0); - g_once_init_leave (&gp_spin_idle_wrapper_type_id__volatile, gp_spin_idle_wrapper_type_id); - } - return gp_spin_idle_wrapper_type_id__volatile; -} - - -gboolean -gp_get_info (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - CameraFileInfo* info, - GError** error) -{ - CameraFileInfo _vala_info = {0}; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gint _tmp1_; - gint _tmp2_; - int res = 0; - CameraFileInfo _tmp6_ = {0}; - int _tmp7_; - int _tmp8_; - GError * _inner_error_ = NULL; -#line 102 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (context != NULL, FALSE); -#line 102 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (camera != NULL, FALSE); -#line 102 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (folder != NULL, FALSE); -#line 102 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (filename != NULL, FALSE); -#line 104 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp1_ = strlen (folder); -#line 104 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp2_ = _tmp1_; -#line 104 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (_tmp2_ > GP_MAX_BASEDIR_LENGTH) { -#line 104 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp0_ = TRUE; -#line 1165 "GPhoto.c" - } else { - gint _tmp3_; - gint _tmp4_; -#line 104 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp3_ = strlen (filename); -#line 104 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp4_ = _tmp3_; -#line 104 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp0_ = _tmp4_ > GP_MAX_FILENAME_LENGTH; -#line 1175 "GPhoto.c" - } -#line 104 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (_tmp0_) { -#line 1179 "GPhoto.c" - CameraFileInfo _tmp5_ = {0}; -#line 105 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - (_vala_info); -#line 105 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _vala_info = _tmp5_; -#line 107 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = FALSE; -#line 107 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (info) { -#line 107 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - *info = _vala_info; -#line 1191 "GPhoto.c" - } else { -#line 107 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - (_vala_info); -#line 1195 "GPhoto.c" - } -#line 107 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 1199 "GPhoto.c" - } -#line 110 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp7_ = gp_camera_file_get_info (camera, folder, filename, &_tmp6_, context); -#line 110 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - (_vala_info); -#line 110 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _vala_info = _tmp6_; -#line 110 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - res = _tmp7_; -#line 111 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp8_ = res; -#line 111 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (_tmp8_ != GP_OK) { -#line 1213 "GPhoto.c" - int _tmp9_; - int _tmp10_; - const gchar* _tmp11_; - GError* _tmp12_; - gboolean _tmp13_ = FALSE; -#line 112 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp9_ = res; -#line 112 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp10_ = res; -#line 112 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp11_ = gp_port_result_as_string (_tmp10_); -#line 112 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp12_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Error retrieving file information for %s/%s: %s", (gint) _tmp9_, folder, filename, _tmp11_); -#line 112 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _inner_error_ = _tmp12_; -#line 112 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 112 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return _tmp13_; -#line 1233 "GPhoto.c" - } -#line 115 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = TRUE; -#line 115 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (info) { -#line 115 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - *info = _vala_info; -#line 1241 "GPhoto.c" - } else { -#line 115 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - (_vala_info); -#line 1245 "GPhoto.c" - } -#line 115 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 1249 "GPhoto.c" -} - - -static gpointer -_GPHOTO_REF_FILE0 (gpointer self) -{ -#line 131 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return self ? GPHOTO_REF_FILE (self) : NULL; -#line 1258 "GPhoto.c" -} - - -GBytes* -gp_camera_file_to_bytes (GPContext* context, - CameraFile* file) -{ - GBytes* result = NULL; - guint8* data = NULL; - gulong data_len = 0UL; - int res = 0; - guint8* _tmp0_ = NULL; - gulong _tmp1_ = 0UL; - int _tmp2_; - int _tmp3_; - guint8* buffer = NULL; - guint8* _tmp4_; - gint buffer_length1; - gint _buffer_size_; - gulong _tmp5_; - gint _tmp6_; - guint8* _tmp7_; - gint _tmp7__length1; - CameraFile* _tmp8_; - GBytes* _tmp9_; -#line 118 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (context != NULL, NULL); -#line 118 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (file != NULL, NULL); -#line 124 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp2_ = gp_file_get_data_and_size (file, &_tmp0_, &_tmp1_); -#line 124 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - data = _tmp0_; -#line 124 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - data_len = _tmp1_; -#line 124 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - res = _tmp2_; -#line 125 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp3_ = res; -#line 125 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (_tmp3_ != GP_OK) { -#line 126 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = NULL; -#line 126 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 1304 "GPhoto.c" - } -#line 128 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp4_ = data; -#line 128 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - buffer = (guint8*) _tmp4_; -#line 128 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - buffer_length1 = sizeof (guint8) / sizeof (guint8); -#line 128 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _buffer_size_ = buffer_length1; -#line 129 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp5_ = data_len; -#line 129 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - buffer_length1 = (gint) _tmp5_; -#line 129 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp6_ = buffer_length1; -#line 131 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp7_ = buffer; -#line 131 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp7__length1 = buffer_length1; -#line 131 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp8_ = _GPHOTO_REF_FILE0 (file); -#line 131 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp9_ = g_bytes_new_with_free_func (_tmp7_, (gsize) _tmp7__length1, gp_file_unref, _tmp8_); -#line 131 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = _tmp9_; -#line 131 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 1332 "GPhoto.c" -} - - -static gchar* -string_slice (const gchar* self, - glong start, - glong end) -{ - gchar* result = NULL; - glong string_length = 0L; - gint _tmp0_; - gint _tmp1_; - gboolean _tmp4_ = FALSE; - gboolean _tmp6_ = FALSE; - gchar* _tmp8_; -#line 1369 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp1_; -#line 1371 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (start < ((glong) 0)) { -#line 1358 "GPhoto.c" - glong _tmp2_; -#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = string_length; -#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - start = _tmp2_ + start; -#line 1364 "GPhoto.c" - } -#line 1374 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (end < ((glong) 0)) { -#line 1368 "GPhoto.c" - glong _tmp3_; -#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp3_ + end; -#line 1374 "GPhoto.c" - } -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (start >= ((glong) 0)) { -#line 1378 "GPhoto.c" - glong _tmp5_; -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = start <= _tmp5_; -#line 1384 "GPhoto.c" - } else { -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = FALSE; -#line 1388 "GPhoto.c" - } -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (_tmp4_, NULL); -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (end >= ((glong) 0)) { -#line 1394 "GPhoto.c" - glong _tmp7_; -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = string_length; -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = end <= _tmp7_; -#line 1400 "GPhoto.c" - } else { -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = FALSE; -#line 1404 "GPhoto.c" - } -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (_tmp6_, NULL); -#line 1379 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (start <= end, NULL); -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = g_strndup (((gchar*) self) + start, (gsize) (end - start)); -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp8_; -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1416 "GPhoto.c" -} - - -PhotoMetadata* -gp_get_fallback_metadata (Camera* camera, - GPContext* context, - const gchar* folder, - const gchar* filename) -{ - PhotoMetadata* result = NULL; - CameraStorageInformation* sifs = NULL; - gint count = 0; - gint _tmp0_ = 0; - GPPortInfo port_info = {0}; - GPPortInfo _tmp1_ = {0}; - gchar* path = NULL; - const gchar* _tmp2_ = NULL; - gchar* _tmp3_; - gchar* prefix = NULL; - gchar* _tmp4_; - const gchar* _tmp5_; - PhotoMetadata* metadata = NULL; - PhotoMetadata* _tmp13_; - GError * _inner_error_ = NULL; -#line 137 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (camera != NULL, NULL); -#line 137 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (context != NULL, NULL); -#line 137 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (folder != NULL, NULL); -#line 137 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (filename != NULL, NULL); -#line 138 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - sifs = NULL; -#line 139 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - count = 0; -#line 140 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_camera_get_storageinfo (camera, &sifs, &_tmp0_, context); -#line 140 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - count = _tmp0_; -#line 143 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_camera_get_port_info (camera, &_tmp1_); -#line 143 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - (port_info); -#line 143 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - port_info = _tmp1_; -#line 146 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - gp_port_info_get_path (port_info, &_tmp2_); -#line 146 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (path); -#line 146 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 146 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - path = _tmp3_; -#line 148 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp4_ = g_strdup ("disk:"); -#line 148 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - prefix = _tmp4_; -#line 149 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp5_ = path; -#line 149 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (g_str_has_prefix (_tmp5_, prefix)) { -#line 1479 "GPhoto.c" - const gchar* _tmp6_; - gint _tmp7_; - gint _tmp8_; - const gchar* _tmp9_; - gint _tmp10_; - gint _tmp11_; - gchar* _tmp12_; -#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp6_ = path; -#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp7_ = strlen (prefix); -#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp8_ = _tmp7_; -#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp9_ = path; -#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp10_ = strlen (_tmp9_); -#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp11_ = _tmp10_; -#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp12_ = string_slice (_tmp6_, (glong) _tmp8_, (glong) _tmp11_); -#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (path); -#line 150 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - path = _tmp12_; -#line 1505 "GPhoto.c" - } else { -#line 152 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = NULL; -#line 152 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (prefix); -#line 152 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (path); -#line 152 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - (port_info); -#line 152 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 1517 "GPhoto.c" - } -#line 154 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp13_ = photo_metadata_new (); -#line 154 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - metadata = _tmp13_; -#line 1523 "GPhoto.c" - { - PhotoMetadata* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - GFile* _tmp22_; - GFile* _tmp23_; -#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp14_ = metadata; -#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp15_ = path; -#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp16_ = g_strconcat (_tmp15_, folder, NULL); -#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp17_ = _tmp16_; -#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp18_ = g_strconcat (_tmp17_, "/", NULL); -#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp19_ = _tmp18_; -#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp20_ = g_strconcat (_tmp19_, filename, NULL); -#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp21_ = _tmp20_; -#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp22_ = g_file_new_for_path (_tmp21_); -#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp23_ = _tmp22_; -#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - media_metadata_read_from_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_MEDIA_METADATA, MediaMetadata), _tmp23_, &_inner_error_); -#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_object_unref0 (_tmp23_); -#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (_tmp21_); -#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (_tmp19_); -#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (_tmp17_); -#line 156 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1567 "GPhoto.c" - goto __catch69_g_error; - } - } - goto __finally69; - __catch69_g_error: - { -#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_clear_error (&_inner_error_); -#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _inner_error_ = NULL; -#line 158 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _media_metadata_unref0 (metadata); -#line 158 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - metadata = NULL; -#line 1582 "GPhoto.c" - } - __finally69: -#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _media_metadata_unref0 (metadata); -#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (prefix); -#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (path); -#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - (port_info); -#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_clear_error (&_inner_error_); -#line 155 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return NULL; -#line 1601 "GPhoto.c" - } -#line 161 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = metadata; -#line 161 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (prefix); -#line 161 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (path); -#line 161 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - (port_info); -#line 161 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 1613 "GPhoto.c" -} - - -static gpointer -_g_bytes_ref0 (gpointer self) -{ -#line 185 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return self ? g_bytes_ref (self) : NULL; -#line 1622 "GPhoto.c" -} - - -GdkPixbuf* -gp_load_preview (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - gchar* * preview_md5, - GError** error) -{ - gchar* _vala_preview_md5 = NULL; - GdkPixbuf* result = NULL; - GBytes* raw = NULL; - GBytes* out_bytes = NULL; - GBytes* _tmp15_; - GBytes* _tmp16_; - GBytes* _tmp17_; - gchar* _tmp18_; - GMemoryInputStream* mins = NULL; - GBytes* _tmp19_; - GMemoryInputStream* _tmp20_; - GdkPixbuf* _tmp21_ = NULL; - GMemoryInputStream* _tmp22_; - GdkPixbuf* _tmp23_; - GdkPixbuf* _tmp24_; - GError * _inner_error_ = NULL; -#line 164 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (context != NULL, NULL); -#line 164 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (camera != NULL, NULL); -#line 164 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (folder != NULL, NULL); -#line 164 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (filename != NULL, NULL); -#line 166 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - raw = NULL; -#line 167 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - out_bytes = NULL; -#line 168 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (_vala_preview_md5); -#line 168 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _vala_preview_md5 = NULL; -#line 1666 "GPhoto.c" - { - GBytes* _tmp0_ = NULL; - GBytes* _tmp1_; - GBytes* _tmp2_; -#line 171 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp1_ = gp_load_file_into_buffer (context, camera, folder, filename, GP_FILE_TYPE_PREVIEW, &_inner_error_); -#line 171 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp0_ = _tmp1_; -#line 171 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1677 "GPhoto.c" - goto __catch70_g_error; - } -#line 171 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp2_ = _tmp0_; -#line 171 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp0_ = NULL; -#line 171 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (raw); -#line 171 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - raw = _tmp2_; -#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (_tmp0_); -#line 1690 "GPhoto.c" - } - goto __finally70; - __catch70_g_error: - { - PhotoMetadata* metadata = NULL; - PhotoMetadata* _tmp3_; - PhotoMetadata* _tmp4_; - PhotoMetadata* _tmp5_; - PhotoPreview* preview = NULL; - PhotoMetadata* _tmp6_; - PhotoMetadata* _tmp7_; - PhotoPreview* _tmp8_; - GBytes* _tmp9_ = NULL; - PhotoPreview* _tmp10_; - GBytes* _tmp11_; - GBytes* _tmp12_; - GBytes* _tmp13_; - gchar* _tmp14_; -#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_clear_error (&_inner_error_); -#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _inner_error_ = NULL; -#line 173 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp3_ = gp_get_fallback_metadata (camera, context, folder, filename); -#line 173 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - metadata = _tmp3_; -#line 174 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp4_ = metadata; -#line 174 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (NULL == _tmp4_) { -#line 175 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = NULL; -#line 175 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _media_metadata_unref0 (metadata); -#line 175 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (out_bytes); -#line 175 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (raw); -#line 175 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (preview_md5) { -#line 175 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - *preview_md5 = _vala_preview_md5; -#line 1733 "GPhoto.c" - } else { -#line 175 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (_vala_preview_md5); -#line 1737 "GPhoto.c" - } -#line 175 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 1741 "GPhoto.c" - } -#line 176 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp5_ = metadata; -#line 176 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (((guint) 0) == photo_metadata_get_preview_count (_tmp5_)) { -#line 177 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = NULL; -#line 177 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _media_metadata_unref0 (metadata); -#line 177 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (out_bytes); -#line 177 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (raw); -#line 177 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (preview_md5) { -#line 177 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - *preview_md5 = _vala_preview_md5; -#line 1759 "GPhoto.c" - } else { -#line 177 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (_vala_preview_md5); -#line 1763 "GPhoto.c" - } -#line 177 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 1767 "GPhoto.c" - } -#line 180 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp6_ = metadata; -#line 180 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp7_ = metadata; -#line 180 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp8_ = photo_metadata_get_preview (_tmp6_, photo_metadata_get_preview_count (_tmp7_) - 1); -#line 180 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - preview = _tmp8_; -#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp10_ = preview; -#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp11_ = photo_preview_flatten (_tmp10_, &_inner_error_); -#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp9_ = _tmp11_; -#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _photo_preview_unref0 (preview); -#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _media_metadata_unref0 (metadata); -#line 1789 "GPhoto.c" - goto __finally70; - } -#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp12_ = _tmp9_; -#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp9_ = NULL; -#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (raw); -#line 181 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - raw = _tmp12_; -#line 182 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp13_ = raw; -#line 182 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp14_ = g_compute_checksum_for_bytes (G_CHECKSUM_MD5, _tmp13_); -#line 182 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (_vala_preview_md5); -#line 182 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _vala_preview_md5 = _tmp14_; -#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (_tmp9_); -#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _photo_preview_unref0 (preview); -#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _media_metadata_unref0 (metadata); -#line 1814 "GPhoto.c" - } - __finally70: -#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (out_bytes); -#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (raw); -#line 170 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return NULL; -#line 1827 "GPhoto.c" - } -#line 185 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp15_ = raw; -#line 185 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp16_ = _g_bytes_ref0 (_tmp15_); -#line 185 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (out_bytes); -#line 185 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - out_bytes = _tmp16_; -#line 186 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp17_ = out_bytes; -#line 186 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp18_ = g_compute_checksum_for_bytes (G_CHECKSUM_MD5, _tmp17_); -#line 186 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (_vala_preview_md5); -#line 186 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _vala_preview_md5 = _tmp18_; -#line 188 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp19_ = raw; -#line 188 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp20_ = (GMemoryInputStream*) g_memory_input_stream_new_from_bytes (_tmp19_); -#line 188 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - mins = _tmp20_; -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp22_ = mins; -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp23_ = gdk_pixbuf_new_from_stream_at_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, g_input_stream_get_type (), GInputStream), IMPORT_PREVIEW_MAX_SCALE, IMPORT_PREVIEW_MAX_SCALE, TRUE, NULL, &_inner_error_); -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp21_ = _tmp23_; -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_object_unref0 (mins); -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (out_bytes); -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (raw); -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return NULL; -#line 1869 "GPhoto.c" - } -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp24_ = _tmp21_; -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp21_ = NULL; -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = _tmp24_; -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_object_unref0 (_tmp21_); -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_object_unref0 (mins); -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (out_bytes); -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (raw); -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (preview_md5) { -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - *preview_md5 = _vala_preview_md5; -#line 1889 "GPhoto.c" - } else { -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (_vala_preview_md5); -#line 1893 "GPhoto.c" - } -#line 190 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 1897 "GPhoto.c" -} - - -GdkPixbuf* -gp_load_image (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - GError** error) -{ - GdkPixbuf* result = NULL; - GInputStream* ins = NULL; - GInputStream* _tmp0_; - GInputStream* _tmp1_; - GdkPixbuf* _tmp2_ = NULL; - GInputStream* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; - GError * _inner_error_ = NULL; -#line 193 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (context != NULL, NULL); -#line 193 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (camera != NULL, NULL); -#line 193 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (folder != NULL, NULL); -#line 193 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (filename != NULL, NULL); -#line 195 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp0_ = gp_load_file_into_stream (context, camera, folder, filename, GP_FILE_TYPE_NORMAL, &_inner_error_); -#line 195 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - ins = _tmp0_; -#line 195 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 195 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 195 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return NULL; -#line 1935 "GPhoto.c" - } -#line 196 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp1_ = ins; -#line 196 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (_tmp1_ == NULL) { -#line 197 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = NULL; -#line 197 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_object_unref0 (ins); -#line 197 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 1947 "GPhoto.c" - } -#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp3_ = ins; -#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp4_ = gdk_pixbuf_new_from_stream (_tmp3_, NULL, &_inner_error_); -#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp2_ = _tmp4_; -#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_object_unref0 (ins); -#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return NULL; -#line 1963 "GPhoto.c" - } -#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp5_ = _tmp2_; -#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp2_ = NULL; -#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = _tmp5_; -#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_object_unref0 (_tmp2_); -#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_object_unref0 (ins); -#line 199 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 1977 "GPhoto.c" -} - - -void -gp_save_image (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - GFile* dest_file, - GError** error) -{ - gint fd = 0; - gchar* _tmp0_; - gchar* _tmp1_; - gint _tmp2_; - gint _tmp3_; - CameraFile* camera_file = NULL; - int res = 0; - gint _tmp9_; - CameraFile* _tmp10_ = NULL; - int _tmp11_; - int _tmp12_; - CameraFile* _tmp17_; - int _tmp18_; - GError * _inner_error_ = NULL; -#line 202 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (context != NULL); -#line 202 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (camera != NULL); -#line 202 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (folder != NULL); -#line 202 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (filename != NULL); -#line 202 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_if_fail (G_IS_FILE (dest_file)); -#line 203 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp0_ = g_file_get_path (dest_file); -#line 203 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp1_ = _tmp0_; -#line 203 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp2_ = creat (_tmp1_, (mode_t) 0640); -#line 203 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (_tmp1_); -#line 203 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - fd = _tmp2_; -#line 204 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp3_ = fd; -#line 204 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (_tmp3_ < 0) { -#line 2027 "GPhoto.c" - gint _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GError* _tmp7_; - GError* _tmp8_; -#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp4_ = errno; -#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp5_ = g_file_get_path (dest_file); -#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp6_ = _tmp5_; -#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp7_ = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED, "[%d] Error creating file %s: %m", _tmp4_, _tmp6_); -#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp8_ = _tmp7_; -#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (_tmp6_); -#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _inner_error_ = _tmp8_; -#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 205 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return; -#line 2051 "GPhoto.c" - } -#line 209 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp9_ = fd; -#line 209 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp11_ = gp_file_new_from_fd (&_tmp10_, _tmp9_); -#line 209 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _gp_file_unref0 (camera_file); -#line 209 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - camera_file = _tmp10_; -#line 209 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - res = _tmp11_; -#line 210 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp12_ = res; -#line 210 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (_tmp12_ != GP_OK) { -#line 2067 "GPhoto.c" - int _tmp13_; - int _tmp14_; - const gchar* _tmp15_; - GError* _tmp16_; -#line 211 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp13_ = res; -#line 211 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp14_ = res; -#line 211 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp15_ = gp_port_result_as_string (_tmp14_); -#line 211 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp16_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Error allocating camera file: %s", (gint) _tmp13_, _tmp15_); -#line 211 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _inner_error_ = _tmp16_; -#line 211 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 211 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _gp_file_unref0 (camera_file); -#line 211 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return; -#line 2088 "GPhoto.c" - } -#line 214 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp17_ = camera_file; -#line 214 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - res = gp_camera_file_get (camera, folder, filename, GP_FILE_TYPE_NORMAL, _tmp17_, context); -#line 215 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp18_ = res; -#line 215 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (_tmp18_ != GP_OK) { -#line 2098 "GPhoto.c" - int _tmp19_; - int _tmp20_; - const gchar* _tmp21_; - GError* _tmp22_; -#line 216 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp19_ = res; -#line 216 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp20_ = res; -#line 216 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp21_ = gp_port_result_as_string (_tmp20_); -#line 216 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp22_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Error retrieving file object for %s/%s: %s", (gint) _tmp19_, folder, filename, _tmp21_); -#line 216 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _inner_error_ = _tmp22_; -#line 216 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 216 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _gp_file_unref0 (camera_file); -#line 216 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return; -#line 2119 "GPhoto.c" - } -#line 202 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _gp_file_unref0 (camera_file); -#line 2123 "GPhoto.c" -} - - -static gint -_vala_g_bytes_get_length (GBytes* self) -{ - gint result; -#line 5049 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0); -#line 5051 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gint) g_bytes_get_size (self); -#line 5051 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2137 "GPhoto.c" -} - - -PhotoMetadata* -gp_load_metadata (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - GError** error) -{ - PhotoMetadata* result = NULL; - GBytes* camera_raw = NULL; - gboolean _tmp4_ = FALSE; - GBytes* _tmp5_; - PhotoMetadata* metadata = NULL; - PhotoMetadata* _tmp9_; - PhotoMetadata* _tmp10_; - GBytes* _tmp11_; - GError * _inner_error_ = NULL; -#line 221 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (context != NULL, NULL); -#line 221 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (camera != NULL, NULL); -#line 221 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (folder != NULL, NULL); -#line 221 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (filename != NULL, NULL); -#line 223 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - camera_raw = NULL; -#line 2167 "GPhoto.c" - { - GBytes* _tmp0_ = NULL; - GBytes* _tmp1_; - GBytes* _tmp2_; -#line 225 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp1_ = gp_load_file_into_buffer (context, camera, folder, filename, GP_FILE_TYPE_EXIF, &_inner_error_); -#line 225 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp0_ = _tmp1_; -#line 225 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2178 "GPhoto.c" - goto __catch71_g_error; - } -#line 225 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp2_ = _tmp0_; -#line 225 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp0_ = NULL; -#line 225 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (camera_raw); -#line 225 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - camera_raw = _tmp2_; -#line 224 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (_tmp0_); -#line 2191 "GPhoto.c" - } - goto __finally71; - __catch71_g_error: - { - PhotoMetadata* _tmp3_; -#line 224 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_clear_error (&_inner_error_); -#line 224 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _inner_error_ = NULL; -#line 227 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp3_ = gp_get_fallback_metadata (camera, context, folder, filename); -#line 227 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = _tmp3_; -#line 227 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (camera_raw); -#line 227 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 2209 "GPhoto.c" - } - __finally71: -#line 224 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 224 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 224 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (camera_raw); -#line 224 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return NULL; -#line 2220 "GPhoto.c" - } -#line 230 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp5_ = camera_raw; -#line 230 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (_tmp5_ == NULL) { -#line 230 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp4_ = TRUE; -#line 2228 "GPhoto.c" - } else { - GBytes* _tmp6_; - gint _tmp7_; - gint _tmp8_; -#line 230 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp6_ = camera_raw; -#line 230 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp7_ = _vala_g_bytes_get_length (_tmp6_); -#line 230 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp8_ = _tmp7_; -#line 230 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp4_ = _tmp8_ == 0; -#line 2241 "GPhoto.c" - } -#line 230 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (_tmp4_) { -#line 231 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = NULL; -#line 231 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (camera_raw); -#line 231 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 2251 "GPhoto.c" - } -#line 233 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp9_ = photo_metadata_new (); -#line 233 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - metadata = _tmp9_; -#line 234 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp10_ = metadata; -#line 234 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp11_ = camera_raw; -#line 234 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - photo_metadata_read_from_app1_segment (_tmp10_, _tmp11_, &_inner_error_); -#line 234 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 234 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 234 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _media_metadata_unref0 (metadata); -#line 234 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (camera_raw); -#line 234 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return NULL; -#line 2273 "GPhoto.c" - } -#line 236 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = metadata; -#line 236 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (camera_raw); -#line 236 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 2281 "GPhoto.c" -} - - -GInputStream* -gp_load_file_into_stream (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - CameraFileType filetype, - GError** error) -{ - GInputStream* result = NULL; - CameraFile* camera_file = NULL; - int res = 0; - CameraFile* _tmp0_ = NULL; - int _tmp1_; - int _tmp2_; - int _tmp7_; - GBytes* bytes = NULL; - GBytes* _tmp12_; - GBytes* _tmp13_; - GFile* temp = NULL; - GFile* _tmp16_; - GFile* _tmp17_; - GFile* _tmp18_; - GFile* _tmp19_; - GFile* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - int _tmp23_; - GFileInputStream* _tmp32_ = NULL; - GFile* _tmp33_; - GFileInputStream* _tmp34_; - GFileInputStream* _tmp35_; - GError * _inner_error_ = NULL; -#line 241 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (context != NULL, NULL); -#line 241 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (camera != NULL, NULL); -#line 241 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (folder != NULL, NULL); -#line 241 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (filename != NULL, NULL); -#line 244 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp1_ = gp_file_new (&_tmp0_); -#line 244 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _gp_file_unref0 (camera_file); -#line 244 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - camera_file = _tmp0_; -#line 244 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - res = _tmp1_; -#line 245 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp2_ = res; -#line 245 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (_tmp2_ != GP_OK) { -#line 2337 "GPhoto.c" - int _tmp3_; - int _tmp4_; - const gchar* _tmp5_; - GError* _tmp6_; -#line 246 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp3_ = res; -#line 246 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp4_ = res; -#line 246 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp5_ = gp_port_result_as_string (_tmp4_); -#line 246 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp6_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Error allocating camera file: %s", (gint) _tmp3_, _tmp5_); -#line 246 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _inner_error_ = _tmp6_; -#line 246 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 246 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _gp_file_unref0 (camera_file); -#line 246 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return NULL; -#line 2358 "GPhoto.c" - } -#line 248 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - res = gp_camera_file_get (camera, folder, filename, filetype, camera_file, context); -#line 249 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp7_ = res; -#line 249 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (_tmp7_ != GP_OK) { -#line 2366 "GPhoto.c" - int _tmp8_; - int _tmp9_; - const gchar* _tmp10_; - GError* _tmp11_; -#line 250 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp8_ = res; -#line 250 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp9_ = res; -#line 250 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp10_ = gp_port_result_as_string (_tmp9_); -#line 250 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp11_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Error retrieving file object for %s/%s: %s", (gint) _tmp8_, folder, filename, _tmp10_); -#line 250 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _inner_error_ = _tmp11_; -#line 250 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 250 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _gp_file_unref0 (camera_file); -#line 250 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return NULL; -#line 2387 "GPhoto.c" - } -#line 256 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp12_ = gp_camera_file_to_bytes (context, camera_file); -#line 256 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - bytes = _tmp12_; -#line 257 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp13_ = bytes; -#line 257 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (_tmp13_ != NULL) { -#line 2397 "GPhoto.c" - GBytes* _tmp14_; - GMemoryInputStream* _tmp15_; -#line 258 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp14_ = bytes; -#line 258 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp15_ = (GMemoryInputStream*) g_memory_input_stream_new_from_bytes (_tmp14_); -#line 258 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, g_input_stream_get_type (), GInputStream); -#line 258 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (bytes); -#line 258 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _gp_file_unref0 (camera_file); -#line 258 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 2412 "GPhoto.c" - } -#line 262 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp16_ = app_dirs_get_temp_dir (); -#line 262 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp17_ = _tmp16_; -#line 262 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp18_ = g_file_get_child (_tmp17_, "import.tmp"); -#line 262 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp19_ = _tmp18_; -#line 262 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_object_unref0 (_tmp17_); -#line 262 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - temp = _tmp19_; -#line 263 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp20_ = temp; -#line 263 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp21_ = g_file_get_path (_tmp20_); -#line 263 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp22_ = _tmp21_; -#line 263 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - res = gp_file_save (camera_file, _tmp22_); -#line 263 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (_tmp22_); -#line 264 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp23_ = res; -#line 264 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (_tmp23_ != GP_OK) { -#line 2440 "GPhoto.c" - int _tmp24_; - GFile* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; - int _tmp28_; - const gchar* _tmp29_; - GError* _tmp30_; - GError* _tmp31_; -#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp24_ = res; -#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp25_ = temp; -#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp26_ = g_file_get_path (_tmp25_); -#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp27_ = _tmp26_; -#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp28_ = res; -#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp29_ = gp_port_result_as_string (_tmp28_); -#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp30_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Error copying file %s/%s to %s: %s", (gint) _tmp24_, folder, filename, _tmp27_, _tmp29_); -#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp31_ = _tmp30_; -#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_free0 (_tmp27_); -#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _inner_error_ = _tmp31_; -#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_object_unref0 (temp); -#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (bytes); -#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _gp_file_unref0 (camera_file); -#line 265 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return NULL; -#line 2479 "GPhoto.c" - } -#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp33_ = temp; -#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp34_ = g_file_read (_tmp33_, NULL, &_inner_error_); -#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp32_ = _tmp34_; -#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_object_unref0 (temp); -#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (bytes); -#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _gp_file_unref0 (camera_file); -#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return NULL; -#line 2499 "GPhoto.c" - } -#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp35_ = _tmp32_; -#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp32_ = NULL; -#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, g_input_stream_get_type (), GInputStream); -#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_object_unref0 (_tmp32_); -#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_object_unref0 (temp); -#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _g_bytes_unref0 (bytes); -#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _gp_file_unref0 (camera_file); -#line 268 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 2517 "GPhoto.c" -} - - -GBytes* -gp_load_file_into_buffer (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - CameraFileType filetype, - GError** error) -{ - GBytes* result = NULL; - CameraFile* camera_file = NULL; - int res = 0; - CameraFile* _tmp0_ = NULL; - int _tmp1_; - int _tmp2_; - CameraFile* _tmp7_; - int _tmp8_; - CameraFile* _tmp13_; - GBytes* _tmp14_; - GError * _inner_error_ = NULL; -#line 272 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (context != NULL, NULL); -#line 272 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (camera != NULL, NULL); -#line 272 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (folder != NULL, NULL); -#line 272 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_return_val_if_fail (filename != NULL, NULL); -#line 275 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp1_ = gp_file_new (&_tmp0_); -#line 275 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _gp_file_unref0 (camera_file); -#line 275 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - camera_file = _tmp0_; -#line 275 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - res = _tmp1_; -#line 276 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp2_ = res; -#line 276 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (_tmp2_ != GP_OK) { -#line 2560 "GPhoto.c" - int _tmp3_; - int _tmp4_; - const gchar* _tmp5_; - GError* _tmp6_; -#line 277 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp3_ = res; -#line 277 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp4_ = res; -#line 277 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp5_ = gp_port_result_as_string (_tmp4_); -#line 277 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp6_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Error allocating camera file: %s", (gint) _tmp3_, _tmp5_); -#line 277 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _inner_error_ = _tmp6_; -#line 277 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 277 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _gp_file_unref0 (camera_file); -#line 277 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return NULL; -#line 2581 "GPhoto.c" - } -#line 279 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp7_ = camera_file; -#line 279 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - res = gp_camera_file_get (camera, folder, filename, filetype, _tmp7_, context); -#line 280 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp8_ = res; -#line 280 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - if (_tmp8_ != GP_OK) { -#line 2591 "GPhoto.c" - int _tmp9_; - int _tmp10_; - const gchar* _tmp11_; - GError* _tmp12_; -#line 281 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp9_ = res; -#line 281 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp10_ = res; -#line 281 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp11_ = gp_port_result_as_string (_tmp10_); -#line 281 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp12_ = g_error_new (GPHOTO_ERROR, GPHOTO_ERROR_LIBRARY, "[%d] Error retrieving file object for %s/%s: %s", (gint) _tmp9_, folder, filename, _tmp11_); -#line 281 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _inner_error_ = _tmp12_; -#line 281 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 281 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _gp_file_unref0 (camera_file); -#line 281 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return NULL; -#line 2612 "GPhoto.c" - } -#line 284 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp13_ = camera_file; -#line 284 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _tmp14_ = gp_camera_file_to_bytes (context, _tmp13_); -#line 284 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - result = _tmp14_; -#line 284 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - _gp_file_unref0 (camera_file); -#line 284 "/home/jens/Source/shotwell/src/camera/GPhoto.vala" - return result; -#line 2624 "GPhoto.c" -} - - - diff --git a/src/camera/ImportPage.c b/src/camera/ImportPage.c deleted file mode 100644 index 7287f44..0000000 --- a/src/camera/ImportPage.c +++ /dev/null @@ -1,13894 +0,0 @@ -/* ImportPage.c generated by valac 0.40.4, the Vala compiler - * generated from ImportPage.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; -typedef struct _DataCollectionPrivate DataCollectionPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; -typedef struct _SourceCollectionPrivate SourceCollectionPrivate; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ()) -#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink)) -#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) -#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK)) -#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK)) -#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) - -typedef struct _SourceBacklink SourceBacklink; -typedef struct _SourceBacklinkClass SourceBacklinkClass; - -#define TYPE_IMPORT_SOURCE_COLLECTION (import_source_collection_get_type ()) -#define IMPORT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_SOURCE_COLLECTION, ImportSourceCollection)) -#define IMPORT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_SOURCE_COLLECTION, ImportSourceCollectionClass)) -#define IS_IMPORT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_SOURCE_COLLECTION)) -#define IS_IMPORT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_SOURCE_COLLECTION)) -#define IMPORT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_SOURCE_COLLECTION, ImportSourceCollectionClass)) - -typedef struct _ImportSourceCollection ImportSourceCollection; -typedef struct _ImportSourceCollectionClass ImportSourceCollectionClass; -typedef struct _ImportSourceCollectionPrivate ImportSourceCollectionPrivate; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_IMPORT_SOURCE (import_source_get_type ()) -#define IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_SOURCE, ImportSource)) -#define IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_SOURCE, ImportSourceClass)) -#define IS_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_SOURCE)) -#define IS_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_SOURCE)) -#define IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_SOURCE, ImportSourceClass)) - -typedef struct _ImportSource ImportSource; -typedef struct _ImportSourceClass ImportSourceClass; -typedef struct _DataObjectPrivate DataObjectPrivate; -typedef struct _DataSourcePrivate DataSourcePrivate; - -#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ()) -#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)) -#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) -#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK)) -#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK)) -#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) - -typedef struct _SourceHoldingTank SourceHoldingTank; -typedef struct _SourceHoldingTankClass SourceHoldingTankClass; - -#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ()) -#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot)) -#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) -#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT)) -#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT)) -#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) - -typedef struct _SourceSnapshot SourceSnapshot; -typedef struct _SourceSnapshotClass SourceSnapshotClass; -typedef struct _ThumbnailSourcePrivate ThumbnailSourcePrivate; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_INDEXABLE (indexable_get_type ()) -#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable)) -#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE)) -#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface)) - -typedef struct _Indexable Indexable; -typedef struct _IndexableIface IndexableIface; -typedef struct _ImportSourcePrivate ImportSourcePrivate; -enum { - IMPORT_SOURCE_0_PROPERTY, - IMPORT_SOURCE_NUM_PROPERTIES -}; -static GParamSpec* import_source_properties[IMPORT_SOURCE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _gp_camera_unref0(var) ((var == NULL) ? NULL : (var = (gp_camera_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define GP_TYPE_CONTEXT_WRAPPER (gp_context_wrapper_get_type ()) -#define GP_CONTEXT_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)) -#define GP_CONTEXT_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GP_TYPE_CONTEXT_WRAPPER, GPContextWrapperClass)) -#define GP_IS_CONTEXT_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GP_TYPE_CONTEXT_WRAPPER)) -#define GP_IS_CONTEXT_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GP_TYPE_CONTEXT_WRAPPER)) -#define GP_CONTEXT_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GP_TYPE_CONTEXT_WRAPPER, GPContextWrapperClass)) - -typedef struct _GPContextWrapper GPContextWrapper; -typedef struct _GPContextWrapperClass GPContextWrapperClass; - -#define GP_TYPE_SPIN_IDLE_WRAPPER (gp_spin_idle_wrapper_get_type ()) -#define GP_SPIN_IDLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GP_TYPE_SPIN_IDLE_WRAPPER, GPSpinIdleWrapper)) -#define GP_SPIN_IDLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GP_TYPE_SPIN_IDLE_WRAPPER, GPSpinIdleWrapperClass)) -#define GP_IS_SPIN_IDLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GP_TYPE_SPIN_IDLE_WRAPPER)) -#define GP_IS_SPIN_IDLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GP_TYPE_SPIN_IDLE_WRAPPER)) -#define GP_SPIN_IDLE_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GP_TYPE_SPIN_IDLE_WRAPPER, GPSpinIdleWrapperClass)) - -typedef struct _GPSpinIdleWrapper GPSpinIdleWrapper; -typedef struct _GPSpinIdleWrapperClass GPSpinIdleWrapperClass; -typedef struct _GPContextWrapperPrivate GPContextWrapperPrivate; - -#define TYPE_VIDEO_IMPORT_SOURCE (video_import_source_get_type ()) -#define VIDEO_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource)) -#define VIDEO_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_IMPORT_SOURCE, VideoImportSourceClass)) -#define IS_VIDEO_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_IMPORT_SOURCE)) -#define IS_VIDEO_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_IMPORT_SOURCE)) -#define VIDEO_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_IMPORT_SOURCE, VideoImportSourceClass)) - -typedef struct _VideoImportSource VideoImportSource; -typedef struct _VideoImportSourceClass VideoImportSourceClass; -typedef struct _VideoImportSourcePrivate VideoImportSourcePrivate; -enum { - VIDEO_IMPORT_SOURCE_0_PROPERTY, - VIDEO_IMPORT_SOURCE_NUM_PROPERTIES -}; -static GParamSpec* video_import_source_properties[VIDEO_IMPORT_SOURCE_NUM_PROPERTIES]; - -#define TYPE_PHOTO_IMPORT_SOURCE (photo_import_source_get_type ()) -#define PHOTO_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource)) -#define PHOTO_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSourceClass)) -#define IS_PHOTO_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_IMPORT_SOURCE)) -#define IS_PHOTO_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_IMPORT_SOURCE)) -#define PHOTO_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSourceClass)) - -typedef struct _PhotoImportSource PhotoImportSource; -typedef struct _PhotoImportSourceClass PhotoImportSourceClass; -typedef struct _PhotoImportSourcePrivate PhotoImportSourcePrivate; - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; -enum { - PHOTO_IMPORT_SOURCE_0_PROPERTY, - PHOTO_IMPORT_SOURCE_NUM_PROPERTIES -}; -static GParamSpec* photo_import_source_properties[PHOTO_IMPORT_SOURCE_NUM_PROPERTIES]; -#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL))) - -#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ()) -#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime)) -#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) -#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME)) -#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME)) -#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) - -typedef struct _MetadataDateTime MetadataDateTime; -typedef struct _MetadataDateTimeClass MetadataDateTimeClass; -#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL))) - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; -typedef struct _DataViewPrivate DataViewPrivate; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; -typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; -typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_MEDIA_SOURCE_ITEM (media_source_item_get_type ()) -#define MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem)) -#define MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) -#define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM)) -#define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM)) -#define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) - -typedef struct _MediaSourceItem MediaSourceItem; -typedef struct _MediaSourceItemClass MediaSourceItemClass; -typedef struct _MediaSourceItemPrivate MediaSourceItemPrivate; - -#define TYPE_IMPORT_PREVIEW (import_preview_get_type ()) -#define IMPORT_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_PREVIEW, ImportPreview)) -#define IMPORT_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_PREVIEW, ImportPreviewClass)) -#define IS_IMPORT_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_PREVIEW)) -#define IS_IMPORT_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_PREVIEW)) -#define IMPORT_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_PREVIEW, ImportPreviewClass)) - -typedef struct _ImportPreview ImportPreview; -typedef struct _ImportPreviewClass ImportPreviewClass; -typedef struct _ImportPreviewPrivate ImportPreviewPrivate; - -#define TYPE_DUPLICATED_FILE (duplicated_file_get_type ()) -#define DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATED_FILE, DuplicatedFile)) -#define DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATED_FILE, DuplicatedFileClass)) -#define IS_DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATED_FILE)) -#define IS_DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATED_FILE)) -#define DUPLICATED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATED_FILE, DuplicatedFileClass)) - -typedef struct _DuplicatedFile DuplicatedFile; -typedef struct _DuplicatedFileClass DuplicatedFileClass; -enum { - IMPORT_PREVIEW_0_PROPERTY, - IMPORT_PREVIEW_NUM_PROPERTIES -}; -static GParamSpec* import_preview_properties[IMPORT_PREVIEW_NUM_PROPERTIES]; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_ORIENTATION (orientation_get_type ()) - -#define TYPE_PHOTO_ID (photo_id_get_type ()) -typedef struct _PhotoID PhotoID; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ()) -#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) - -typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; -typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_VIDEO_SOURCE_COLLECTION (video_source_collection_get_type ()) -#define VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection)) -#define VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) -#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION)) -#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION)) -#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) - -typedef struct _VideoSourceCollection VideoSourceCollection; -typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass; - -#define TYPE_VIDEO_ID (video_id_get_type ()) -typedef struct _VideoID VideoID; - -#define CORE_TYPE_TRACKER (core_tracker_get_type ()) -#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) -#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) -#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) -#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) -#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) - -typedef struct _CoreTracker CoreTracker; -typedef struct _CoreTrackerClass CoreTrackerClass; -typedef struct _CoreTrackerPrivate CoreTrackerPrivate; - -#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) -#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) -#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) -#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) -#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) -#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) - -typedef struct _CoreViewTracker CoreViewTracker; -typedef struct _CoreViewTrackerClass CoreViewTrackerClass; -typedef struct _CoreViewTrackerPrivate CoreViewTrackerPrivate; - -#define TYPE_CAMERA_VIEW_TRACKER (camera_view_tracker_get_type ()) -#define CAMERA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CAMERA_VIEW_TRACKER, CameraViewTracker)) -#define CAMERA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CAMERA_VIEW_TRACKER, CameraViewTrackerClass)) -#define IS_CAMERA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CAMERA_VIEW_TRACKER)) -#define IS_CAMERA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CAMERA_VIEW_TRACKER)) -#define CAMERA_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CAMERA_VIEW_TRACKER, CameraViewTrackerClass)) - -typedef struct _CameraViewTracker CameraViewTracker; -typedef struct _CameraViewTrackerClass CameraViewTrackerClass; -typedef struct _CameraViewTrackerPrivate CameraViewTrackerPrivate; - -#define TYPE_CAMERA_ACCUMULATOR (camera_accumulator_get_type ()) -#define CAMERA_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CAMERA_ACCUMULATOR, CameraAccumulator)) -#define CAMERA_ACCUMULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CAMERA_ACCUMULATOR, CameraAccumulatorClass)) -#define IS_CAMERA_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CAMERA_ACCUMULATOR)) -#define IS_CAMERA_ACCUMULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CAMERA_ACCUMULATOR)) -#define CAMERA_ACCUMULATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CAMERA_ACCUMULATOR, CameraAccumulatorClass)) - -typedef struct _CameraAccumulator CameraAccumulator; -typedef struct _CameraAccumulatorClass CameraAccumulatorClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; - -#define CORE_TYPE_TRACKER_ACCUMULATOR (core_tracker_accumulator_get_type ()) -#define CORE_TRACKER_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator)) -#define CORE_IS_TRACKER_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER_ACCUMULATOR)) -#define CORE_TRACKER_ACCUMULATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulatorIface)) - -typedef struct _CoreTrackerAccumulator CoreTrackerAccumulator; -typedef struct _CoreTrackerAccumulatorIface CoreTrackerAccumulatorIface; -typedef struct _CameraAccumulatorPrivate CameraAccumulatorPrivate; -enum { - CAMERA_ACCUMULATOR_0_PROPERTY, - CAMERA_ACCUMULATOR_TOTAL_PROPERTY, - CAMERA_ACCUMULATOR_PHOTOS_PROPERTY, - CAMERA_ACCUMULATOR_VIDEOS_PROPERTY, - CAMERA_ACCUMULATOR_RAW_PROPERTY, - CAMERA_ACCUMULATOR_NUM_PROPERTIES -}; -static GParamSpec* camera_accumulator_properties[CAMERA_ACCUMULATOR_NUM_PROPERTIES]; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; -typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate; - -#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ()) - -#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ()) -typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ()) -#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)) -#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) -#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER)) -#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER)) -#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) - -typedef struct _SearchViewFilter SearchViewFilter; -typedef struct _SearchViewFilterClass SearchViewFilterClass; - -#define TYPE_IMPORT_PAGE (import_page_get_type ()) -#define IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_PAGE, ImportPage)) -#define IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_PAGE, ImportPageClass)) -#define IS_IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_PAGE)) -#define IS_IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_PAGE)) -#define IMPORT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_PAGE, ImportPageClass)) - -typedef struct _ImportPage ImportPage; -typedef struct _ImportPageClass ImportPageClass; -typedef struct _ImportPagePrivate ImportPagePrivate; - -#define IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER (import_page_import_page_search_view_filter_get_type ()) -#define IMPORT_PAGE_IMPORT_PAGE_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER, ImportPageImportPageSearchViewFilter)) -#define IMPORT_PAGE_IMPORT_PAGE_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER, ImportPageImportPageSearchViewFilterClass)) -#define IMPORT_PAGE_IS_IMPORT_PAGE_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER)) -#define IMPORT_PAGE_IS_IMPORT_PAGE_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER)) -#define IMPORT_PAGE_IMPORT_PAGE_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER, ImportPageImportPageSearchViewFilterClass)) - -typedef struct _ImportPageImportPageSearchViewFilter ImportPageImportPageSearchViewFilter; -typedef struct _ImportPageImportPageSearchViewFilterClass ImportPageImportPageSearchViewFilterClass; - -#define IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER (import_page_hide_imported_view_filter_get_type ()) -#define IMPORT_PAGE_HIDE_IMPORTED_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER, ImportPageHideImportedViewFilter)) -#define IMPORT_PAGE_HIDE_IMPORTED_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER, ImportPageHideImportedViewFilterClass)) -#define IMPORT_PAGE_IS_HIDE_IMPORTED_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER)) -#define IMPORT_PAGE_IS_HIDE_IMPORTED_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER)) -#define IMPORT_PAGE_HIDE_IMPORTED_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER, ImportPageHideImportedViewFilterClass)) - -typedef struct _ImportPageHideImportedViewFilter ImportPageHideImportedViewFilter; -typedef struct _ImportPageHideImportedViewFilterClass ImportPageHideImportedViewFilterClass; -enum { - IMPORT_PAGE_0_PROPERTY, - IMPORT_PAGE_NUM_PROPERTIES -}; -static GParamSpec* import_page_properties[IMPORT_PAGE_NUM_PROPERTIES]; - -#define IMPORT_PAGE_TYPE_REFRESH_RESULT (import_page_refresh_result_get_type ()) -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL))) -#define _core_tracker_unref0(var) ((var == NULL) ? NULL : (var = (core_tracker_unref (var), NULL))) -#define _gp_context_wrapper_unref0(var) ((var == NULL) ? NULL : (var = (gp_context_wrapper_unref (var), NULL))) - -#define TYPE_VIEW_MANAGER (view_manager_get_type ()) -#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager)) -#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass)) -#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER)) -#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER)) -#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass)) - -typedef struct _ViewManager ViewManager; -typedef struct _ViewManagerClass ViewManagerClass; - -#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ()) -#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor)) -#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) -#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) - -typedef struct _ViewCollectionMonitor ViewCollectionMonitor; -typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass; - -#define IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER (import_page_import_view_manager_get_type ()) -#define IMPORT_PAGE_IMPORT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER, ImportPageImportViewManager)) -#define IMPORT_PAGE_IMPORT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER, ImportPageImportViewManagerClass)) -#define IMPORT_PAGE_IS_IMPORT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER)) -#define IMPORT_PAGE_IS_IMPORT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER)) -#define IMPORT_PAGE_IMPORT_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER, ImportPageImportViewManagerClass)) - -typedef struct _ImportPageImportViewManager ImportPageImportViewManager; -typedef struct _ImportPageImportViewManagerClass ImportPageImportViewManagerClass; -#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL))) -#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL))) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; - -#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ()) -#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob)) -#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass)) -#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB)) -#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB)) -#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass)) - -typedef struct _BatchImportJob BatchImportJob; -typedef struct _BatchImportJobClass BatchImportJobClass; - -#define IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB (import_page_camera_import_job_get_type ()) -#define IMPORT_PAGE_CAMERA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob)) -#define IMPORT_PAGE_CAMERA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJobClass)) -#define IMPORT_PAGE_IS_CAMERA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB)) -#define IMPORT_PAGE_IS_CAMERA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB)) -#define IMPORT_PAGE_CAMERA_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJobClass)) - -typedef struct _ImportPageCameraImportJob ImportPageCameraImportJob; -typedef struct _ImportPageCameraImportJobClass ImportPageCameraImportJobClass; -#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; -#define _gp_list_unref0(var) ((var == NULL) ? NULL : (var = (gp_list_unref (var), NULL))) - -#define TYPE_SORTED_LIST (sorted_list_get_type ()) -#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList)) -#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass)) -#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST)) -#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST)) -#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass)) - -typedef struct _SortedList SortedList; -typedef struct _SortedListClass SortedListClass; -#define _batch_import_job_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_job_unref (var), NULL))) - -#define TYPE_BATCH_IMPORT (batch_import_get_type ()) -#define BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT, BatchImport)) -#define BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT, BatchImportClass)) -#define IS_BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT)) -#define IS_BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT)) -#define BATCH_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT, BatchImportClass)) - -typedef struct _BatchImport BatchImport; -typedef struct _BatchImportClass BatchImportClass; - -#define TYPE_IMPORT_MANIFEST (import_manifest_get_type ()) -#define IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_MANIFEST, ImportManifest)) -#define IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_MANIFEST, ImportManifestClass)) -#define IS_IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_MANIFEST)) -#define IS_IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_MANIFEST)) -#define IMPORT_MANIFEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_MANIFEST, ImportManifestClass)) - -typedef struct _ImportManifest ImportManifest; -typedef struct _ImportManifestClass ImportManifestClass; - -#define TYPE_BATCH_IMPORT_ROLL (batch_import_roll_get_type ()) -#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll)) -#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass)) -#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL)) -#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL)) -#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass)) - -typedef struct _BatchImportRoll BatchImportRoll; -typedef struct _BatchImportRollClass BatchImportRollClass; - -#define TYPE_BATCH_IMPORT_RESULT (batch_import_result_get_type ()) -#define BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResult)) -#define BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass)) -#define IS_BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_RESULT)) -#define IS_BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_RESULT)) -#define BATCH_IMPORT_RESULT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass)) - -typedef struct _BatchImportResult BatchImportResult; -typedef struct _BatchImportResultClass BatchImportResultClass; - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; -#define _import_manifest_unref0(var) ((var == NULL) ? NULL : (var = (import_manifest_unref (var), NULL))) -typedef struct _BatchImportResultPrivate BatchImportResultPrivate; - -#define TYPE_IMPORT_RESULT (import_result_get_type ()) -typedef struct _ImportManifestPrivate ImportManifestPrivate; - -#define IMPORT_UI_TYPE_QUESTION_PARAMS (import_ui_question_params_get_type ()) -#define IMPORT_UI_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParams)) -#define IMPORT_UI_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass)) -#define IMPORT_UI_IS_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS)) -#define IMPORT_UI_IS_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS)) -#define IMPORT_UI_QUESTION_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass)) - -typedef struct _ImportUIQuestionParams ImportUIQuestionParams; -typedef struct _ImportUIQuestionParamsClass ImportUIQuestionParamsClass; -#define _import_ui_question_params_unref0(var) ((var == NULL) ? NULL : (var = (import_ui_question_params_unref (var), NULL))) -#define _batch_import_result_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_result_unref (var), NULL))) - -#define TYPE_PROGRESS_DIALOG (progress_dialog_get_type ()) -#define PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROGRESS_DIALOG, ProgressDialog)) -#define PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PROGRESS_DIALOG, ProgressDialogClass)) -#define IS_PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROGRESS_DIALOG)) -#define IS_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROGRESS_DIALOG)) -#define PROGRESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROGRESS_DIALOG, ProgressDialogClass)) - -typedef struct _ProgressDialog ProgressDialog; -typedef struct _ProgressDialogClass ProgressDialogClass; -typedef struct _ViewManagerPrivate ViewManagerPrivate; -typedef struct _ImportPageImportViewManagerPrivate ImportPageImportViewManagerPrivate; -typedef struct _BatchImportJobPrivate BatchImportJobPrivate; -typedef struct _ImportPageCameraImportJobPrivate ImportPageCameraImportJobPrivate; - -#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ()) -#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow)) -#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) -#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW)) -#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW)) -#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) - -typedef struct _BackingPhotoRow BackingPhotoRow; -typedef struct _BackingPhotoRowClass BackingPhotoRowClass; -#define _backing_photo_row_unref0(var) ((var == NULL) ? NULL : (var = (backing_photo_row_unref (var), NULL))) - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) -typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate; - -#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ()) -typedef struct _BackingPhotoID BackingPhotoID; -typedef struct _ViewFilterPrivate ViewFilterPrivate; -typedef struct _SearchViewFilterPrivate SearchViewFilterPrivate; -typedef struct _ImportPageImportPageSearchViewFilterPrivate ImportPageImportPageSearchViewFilterPrivate; - -#define TYPE_SEARCH_FILTER_CRITERIA (search_filter_criteria_get_type ()) -typedef struct _ImportPageHideImportedViewFilterPrivate ImportPageHideImportedViewFilterPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -struct _DataCollection { - GTypeInstance parent_instance; - volatile int ref_count; - DataCollectionPrivate * priv; -}; - -struct _DataCollectionClass { - GTypeClass parent_class; - void (*finalize) (DataCollection *self); - gchar* (*to_string) (DataCollection* self); - void (*notify_items_added) (DataCollection* self, GeeIterable* added); - void (*notify_items_removed) (DataCollection* self, GeeIterable* removed); - void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*notify_items_altered) (DataCollection* self, GeeMap* items); - void (*notify_ordering_changed) (DataCollection* self); - void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*notify_property_cleared) (DataCollection* self, const gchar* name); - gboolean (*valid_type) (DataCollection* self, DataObject* object); - void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target); - void (*reset_comparator) (DataCollection* self); - GeeCollection* (*get_all) (DataCollection* self); - gint (*get_count) (DataCollection* self); - DataObject* (*get_at) (DataCollection* self, gint index); - gint (*index_of) (DataCollection* self, DataObject* object); - gboolean (*contains) (DataCollection* self, DataObject* object); - gboolean (*add) (DataCollection* self, DataObject* object); - GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target); - void (*remove_marked) (DataCollection* self, Marker* m); - void (*clear) (DataCollection* self); - void (*close) (DataCollection* self); - void (*notify_frozen) (DataCollection* self); - void (*notify_thawed) (DataCollection* self); - void (*items_added) (DataCollection* self, GeeIterable* added); - void (*items_removed) (DataCollection* self, GeeIterable* removed); - void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*items_altered) (DataCollection* self, GeeMap* items); - void (*ordering_changed) (DataCollection* self); - void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*property_cleared) (DataCollection* self, const gchar* name); - void (*frozen) (DataCollection* self); - void (*thawed) (DataCollection* self); -}; - -struct _SourceCollection { - DataCollection parent_instance; - SourceCollectionPrivate * priv; -}; - -struct _SourceCollectionClass { - DataCollectionClass parent_class; - gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source); - void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*notify_item_destroyed) (SourceCollection* self, DataSource* source); - void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked); - void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); - gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*item_destroyed) (SourceCollection* self, DataSource* source); - void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*unlinked_destroyed) (SourceCollection* self, DataSource* source); - void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); -}; - -struct _ImportSourceCollection { - SourceCollection parent_instance; - ImportSourceCollectionPrivate * priv; -}; - -struct _ImportSourceCollectionClass { - SourceCollectionClass parent_class; -}; - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataSource { - DataObject parent_instance; - DataSourcePrivate * priv; -}; - -struct _DataSourceClass { - DataObjectClass parent_class; - void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank); - void (*notify_unlinking) (DataSource* self, SourceCollection* collection); - void (*notify_unlinked) (DataSource* self); - void (*notify_relinking) (DataSource* self, SourceCollection* collection); - void (*notify_relinked) (DataSource* self); - gchar* (*get_typename) (DataSource* self); - gint64 (*get_instance_id) (DataSource* self); - gchar* (*get_source_id) (DataSource* self); - void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated); - SourceSnapshot* (*save_snapshot) (DataSource* self); - gboolean (*internal_delete_backing) (DataSource* self, GError** error); - gboolean (*equals) (DataSource* self, DataSource* source); - void (*destroy) (DataSource* self); - void (*unlinked) (DataSource* self, SourceCollection* sources); - void (*relinked) (DataSource* self, SourceCollection* sources); - void (*destroyed) (DataSource* self); -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _ThumbnailSource { - DataSource parent_instance; - ThumbnailSourcePrivate * priv; -}; - -struct _ThumbnailSourceClass { - DataSourceClass parent_class; - void (*notify_thumbnail_altered) (ThumbnailSource* self); - GdkPixbuf* (*get_thumbnail) (ThumbnailSource* self, gint scale, GError** error); - GdkPixbuf* (*create_thumbnail) (ThumbnailSource* self, gint scale, GError** error); - gchar* (*get_representative_id) (ThumbnailSource* self); - PhotoFileFormat (*get_preferred_thumbnail_format) (ThumbnailSource* self); - void (*thumbnail_altered) (ThumbnailSource* self); -}; - -struct _IndexableIface { - GTypeInterface parent_iface; - const gchar* (*get_indexable_keywords) (Indexable* self); -}; - -struct _ImportSource { - ThumbnailSource parent_instance; - ImportSourcePrivate * priv; -}; - -struct _ImportSourceClass { - ThumbnailSourceClass parent_class; - GdkPixbuf* (*get_preview) (ImportSource* self); - time_t (*get_exposure_time) (ImportSource* self); -}; - -struct _ImportSourcePrivate { - gchar* camera_name; - Camera* camera; - gint fsid; - gchar* folder; - gchar* filename; - gulong file_size; - time_t modification_time; - GdkPixbuf* preview; - gchar* indexable_keywords; -}; - -struct _GPContextWrapper { - GTypeInstance parent_instance; - volatile int ref_count; - GPContextWrapperPrivate * priv; - GPContext* context; -}; - -struct _GPContextWrapperClass { - GTypeClass parent_class; - void (*finalize) (GPContextWrapper *self); - void (*idle) (GPContextWrapper* self); - void (*error) (GPContextWrapper* self, const gchar* text, void* data); - void (*status) (GPContextWrapper* self, const gchar* text, void* data); - void (*message) (GPContextWrapper* self, const gchar* text, void* data); - void (*progress_start) (GPContextWrapper* self, gfloat current, const gchar* text, void* data); - void (*progress_update) (GPContextWrapper* self, gfloat current, void* data); - void (*progress_stop) (GPContextWrapper* self); -}; - -struct _VideoImportSource { - ImportSource parent_instance; - VideoImportSourcePrivate * priv; -}; - -struct _VideoImportSourceClass { - ImportSourceClass parent_class; -}; - -struct _PhotoImportSource { - ImportSource parent_instance; - PhotoImportSourcePrivate * priv; -}; - -struct _PhotoImportSourceClass { - ImportSourceClass parent_class; -}; - -struct _PhotoImportSourcePrivate { - PhotoFileFormat file_format; - gchar* preview_md5; - PhotoMetadata* metadata; - gchar* exif_md5; - PhotoImportSource* associated; -}; - -struct _DataView { - DataObject parent_instance; - DataViewPrivate * priv; -}; - -struct _DataViewClass { - DataObjectClass parent_class; - void (*notify_view_altered) (DataView* self); - void (*notify_geometry_altered) (DataView* self); - void (*notify_unsubscribed) (DataView* self, DataSource* source); - void (*state_changed) (DataView* self, gboolean selected); - void (*visibility_changed) (DataView* self, gboolean visible); - void (*view_altered) (DataView* self); - void (*geometry_altered) (DataView* self); - void (*unsubscribed) (DataView* self, DataSource* source); -}; - -struct _ThumbnailView { - DataView parent_instance; - ThumbnailViewPrivate * priv; -}; - -struct _ThumbnailViewClass { - DataViewClass parent_class; - void (*notify_thumbnail_altered) (ThumbnailView* self); - void (*thumbnail_altered) (ThumbnailView* self); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _CheckerboardItem { - ThumbnailView parent_instance; - CheckerboardItemPrivate * priv; - Dimensions requisition; - GdkRectangle allocation; -}; - -struct _CheckerboardItemClass { - ThumbnailViewClass parent_class; - void (*exposed) (CheckerboardItem* self); - void (*unexposed) (CheckerboardItem* self); - gboolean (*is_exposed) (CheckerboardItem* self); - void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha); - void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width); - void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin); - GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale); -}; - -struct _MediaSourceItem { - CheckerboardItem parent_instance; - MediaSourceItemPrivate * priv; -}; - -struct _MediaSourceItemClass { - CheckerboardItemClass parent_class; -}; - -struct _ImportPreview { - MediaSourceItem parent_instance; - ImportPreviewPrivate * priv; -}; - -struct _ImportPreviewClass { - MediaSourceItemClass parent_class; -}; - -struct _ImportPreviewPrivate { - DuplicatedFile* duplicated_file; -}; - -typedef enum { - ORIENTATION_MIN = 1, - ORIENTATION_TOP_LEFT = 1, - ORIENTATION_TOP_RIGHT = 2, - ORIENTATION_BOTTOM_RIGHT = 3, - ORIENTATION_BOTTOM_LEFT = 4, - ORIENTATION_LEFT_TOP = 5, - ORIENTATION_RIGHT_TOP = 6, - ORIENTATION_RIGHT_BOTTOM = 7, - ORIENTATION_LEFT_BOTTOM = 8, - ORIENTATION_MAX = 8 -} Orientation; - -struct _PhotoID { - gint64 id; -}; - -struct _VideoID { - gint64 id; -}; - -struct _CoreTracker { - GTypeInstance parent_instance; - volatile int ref_count; - CoreTrackerPrivate * priv; -}; - -struct _CoreTrackerClass { - GTypeClass parent_class; - void (*finalize) (CoreTracker *self); - void (*updated) (CoreTracker* self); -}; - -struct _CoreViewTracker { - CoreTracker parent_instance; - CoreViewTrackerPrivate * priv; -}; - -struct _CoreViewTrackerClass { - CoreTrackerClass parent_class; -}; - -struct _CameraViewTracker { - CoreViewTracker parent_instance; - CameraViewTrackerPrivate * priv; - CameraAccumulator* all; - CameraAccumulator* visible; - CameraAccumulator* selected; -}; - -struct _CameraViewTrackerClass { - CoreViewTrackerClass parent_class; -}; - -struct _CoreTrackerAccumulatorIface { - GTypeInterface parent_iface; - gboolean (*include) (CoreTrackerAccumulator* self, DataObject* object); - gboolean (*uninclude) (CoreTrackerAccumulator* self, DataObject* object); - gboolean (*altered) (CoreTrackerAccumulator* self, DataObject* object, Alteration* alteration); -}; - -struct _CameraAccumulator { - GObject parent_instance; - CameraAccumulatorPrivate * priv; -}; - -struct _CameraAccumulatorClass { - GObjectClass parent_class; -}; - -struct _CameraAccumulatorPrivate { - gint _total; - gint _photos; - gint _videos; - gint _raw; -}; - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -typedef enum { - CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, - CHECKERBOARD_PAGE_ACTIVATOR_MOUSE -} CheckerboardPageActivator; - -struct _CheckerboardPageKeyboardModifiers { - gboolean ctrl_pressed; - gboolean alt_pressed; - gboolean shift_pressed; - gboolean super_pressed; -}; - -struct _CheckerboardPage { - Page parent_instance; - CheckerboardPagePrivate * priv; - CheckerboardItem* anchor; - CheckerboardItem* cursor; -}; - -struct _CheckerboardPageClass { - PageClass parent_class; - GtkMenu* (*get_item_context_menu) (CheckerboardPage* self); - gchar* (*get_view_empty_message) (CheckerboardPage* self); - gchar* (*get_filter_no_match_message) (CheckerboardPage* self); - void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers); - SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self); - CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self); - gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask); - void (*set_display_titles) (CheckerboardPage* self, gboolean display); - void (*set_display_comments) (CheckerboardPage* self, gboolean display); -}; - -struct _ImportPage { - CheckerboardPage parent_instance; - ImportPagePrivate * priv; -}; - -struct _ImportPageClass { - CheckerboardPageClass parent_class; -}; - -struct _ImportPagePrivate { - SourceCollection* import_sources; - GtkLabel* camera_label; - GtkCheckButton* hide_imported; - GtkProgressBar* progress_bar; - Camera* camera; - gchar* uri; - gboolean busy; - gboolean refreshed; - int refresh_result; - gchar* refresh_error; - gchar* camera_name; - GVolumeMonitor* volume_monitor; - ImportPage* local_ref; - gchar* icon; - ImportPageImportPageSearchViewFilter* search_filter; - ImportPageHideImportedViewFilter* hide_imported_filter; - CameraViewTracker* tracker; - gint claim_timeout; -}; - -typedef enum { - IMPORT_PAGE_REFRESH_RESULT_OK, - IMPORT_PAGE_REFRESH_RESULT_BUSY, - IMPORT_PAGE_REFRESH_RESULT_LOCKED, - IMPORT_PAGE_REFRESH_RESULT_LIBRARY_ERROR -} ImportPageRefreshResult; - -typedef gboolean (*ValueEqualFunc) (GValue* a, GValue* b, void* user_data); -typedef void (*BatchImportImportReporter) (ImportManifest* manifest, BatchImportRoll* import_roll, void* user_data); -typedef enum { - IMPORT_RESULT_SUCCESS, - IMPORT_RESULT_FILE_ERROR, - IMPORT_RESULT_DECODE_ERROR, - IMPORT_RESULT_DATABASE_ERROR, - IMPORT_RESULT_USER_ABORT, - IMPORT_RESULT_NOT_A_FILE, - IMPORT_RESULT_PHOTO_EXISTS, - IMPORT_RESULT_UNSUPPORTED_FORMAT, - IMPORT_RESULT_NOT_AN_IMAGE, - IMPORT_RESULT_DISK_FAILURE, - IMPORT_RESULT_DISK_FULL, - IMPORT_RESULT_CAMERA_ERROR, - IMPORT_RESULT_FILE_WRITE_ERROR, - IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE -} ImportResult; - -struct _BatchImportResult { - GTypeInstance parent_instance; - volatile int ref_count; - BatchImportResultPrivate * priv; - BatchImportJob* job; - GFile* file; - gchar* src_identifier; - gchar* dest_identifier; - ImportResult result; - gchar* errmsg; - DuplicatedFile* duplicate_of; -}; - -struct _BatchImportResultClass { - GTypeClass parent_class; - void (*finalize) (BatchImportResult *self); -}; - -struct _ImportManifest { - GTypeInstance parent_instance; - volatile int ref_count; - ImportManifestPrivate * priv; - GeeList* imported; - GeeList* success; - GeeList* camera_failed; - GeeList* failed; - GeeList* write_failed; - GeeList* skipped_photos; - GeeList* skipped_files; - GeeList* aborted; - GeeList* already_imported; - GeeList* corrupt_files; - GeeList* all; - GTimer* timer; -}; - -struct _ImportManifestClass { - GTypeClass parent_class; - void (*finalize) (ImportManifest *self); -}; - -struct _ViewManager { - GTypeInstance parent_instance; - volatile int ref_count; - ViewManagerPrivate * priv; -}; - -struct _ViewManagerClass { - GTypeClass parent_class; - void (*finalize) (ViewManager *self); - gboolean (*include_in_view) (ViewManager* self, DataSource* source); - DataView* (*create_view) (ViewManager* self, DataSource* source); -}; - -struct _ImportPageImportViewManager { - ViewManager parent_instance; - ImportPageImportViewManagerPrivate * priv; -}; - -struct _ImportPageImportViewManagerClass { - ViewManagerClass parent_class; -}; - -struct _ImportPageImportViewManagerPrivate { - ImportPage* owner; -}; - -struct _BatchImportJob { - GTypeInstance parent_instance; - volatile int ref_count; - BatchImportJobPrivate * priv; -}; - -struct _BatchImportJobClass { - GTypeClass parent_class; - void (*finalize) (BatchImportJob *self); - gchar* (*get_dest_identifier) (BatchImportJob* self); - gchar* (*get_source_identifier) (BatchImportJob* self); - gboolean (*is_directory) (BatchImportJob* self); - gchar* (*get_basename) (BatchImportJob* self); - gchar* (*get_path) (BatchImportJob* self); - DuplicatedFile* (*get_duplicated_file) (BatchImportJob* self); - GFile* (*get_associated_file) (BatchImportJob* self); - void (*set_associated) (BatchImportJob* self, BatchImportJob* associated); - gboolean (*determine_file_size) (BatchImportJob* self, guint64* filesize, GFile* * file_or_dir); - gboolean (*prepare) (BatchImportJob* self, GFile* * file_to_import, gboolean* copy_to_library, GError** error); - gboolean (*complete) (BatchImportJob* self, MediaSource* source, BatchImportRoll* import_roll, GError** error); - time_t (*get_exposure_time_override) (BatchImportJob* self); - gboolean (*recurse) (BatchImportJob* self); -}; - -struct _ImportPageCameraImportJob { - BatchImportJob parent_instance; - ImportPageCameraImportJobPrivate * priv; -}; - -struct _ImportPageCameraImportJobClass { - BatchImportJobClass parent_class; -}; - -struct _ImportPageCameraImportJobPrivate { - GPContextWrapper* context; - ImportSource* import_file; - Camera* camera; - gchar* fulldir; - gchar* filename; - guint64 filesize; - PhotoMetadata* metadata; - time_t exposure_time; - ImportPageCameraImportJob* associated; - BackingPhotoRow* associated_file; - DuplicatedFile* duplicated_file; -}; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _BackingPhotoID { - gint64 id; -}; - -struct _BackingPhotoRow { - GTypeInstance parent_instance; - volatile int ref_count; - BackingPhotoRowPrivate * priv; - BackingPhotoID id; - time_t time_created; - gchar* filepath; - gint64 filesize; - time_t timestamp; - PhotoFileFormat file_format; - Dimensions dim; - Orientation original_orientation; -}; - -struct _BackingPhotoRowClass { - GTypeClass parent_class; - void (*finalize) (BackingPhotoRow *self); -}; - -struct _ViewFilter { - GTypeInstance parent_instance; - volatile int ref_count; - ViewFilterPrivate * priv; -}; - -struct _ViewFilterClass { - GTypeClass parent_class; - void (*finalize) (ViewFilter *self); - gboolean (*predicate) (ViewFilter* self, DataView* view); - void (*refresh) (ViewFilter* self); -}; - -struct _SearchViewFilter { - ViewFilter parent_instance; - SearchViewFilterPrivate * priv; -}; - -struct _SearchViewFilterClass { - ViewFilterClass parent_class; - guint (*get_criteria) (SearchViewFilter* self); -}; - -struct _ImportPageImportPageSearchViewFilter { - SearchViewFilter parent_instance; - ImportPageImportPageSearchViewFilterPrivate * priv; -}; - -struct _ImportPageImportPageSearchViewFilterClass { - SearchViewFilterClass parent_class; -}; - -typedef enum { - SEARCH_FILTER_CRITERIA_NONE = 0, - SEARCH_FILTER_CRITERIA_RECURSIVE = 1 << 0, - SEARCH_FILTER_CRITERIA_TEXT = 1 << 1, - SEARCH_FILTER_CRITERIA_FLAG = 1 << 2, - SEARCH_FILTER_CRITERIA_MEDIA = 1 << 3, - SEARCH_FILTER_CRITERIA_RATING = 1 << 4, - SEARCH_FILTER_CRITERIA_SAVEDSEARCH = 1 << 5, - SEARCH_FILTER_CRITERIA_ALL = 0xFFFFFFFFLL -} SearchFilterCriteria; - -struct _ImportPageHideImportedViewFilter { - ViewFilter parent_instance; - ImportPageHideImportedViewFilterPrivate * priv; -}; - -struct _ImportPageHideImportedViewFilterClass { - ViewFilterClass parent_class; -}; - - -static gpointer import_source_collection_parent_class = NULL; -static gpointer import_source_parent_class = NULL; -extern GPSpinIdleWrapper* import_page_spin_idle_context; -static IndexableIface * import_source_indexable_parent_iface = NULL; -static gpointer video_import_source_parent_class = NULL; -static gpointer photo_import_source_parent_class = NULL; -static gpointer import_preview_parent_class = NULL; -static GdkPixbuf* import_preview_placeholder_preview; -static GdkPixbuf* import_preview_placeholder_preview = NULL; -extern LibraryPhotoSourceCollection* library_photo_global; -extern VideoSourceCollection* video_global; -static gpointer camera_view_tracker_parent_class = NULL; -static gpointer camera_accumulator_parent_class = NULL; -static CoreTrackerAccumulatorIface * camera_accumulator_core_tracker_accumulator_parent_iface = NULL; -static gpointer import_page_parent_class = NULL; -extern GPContextWrapper* import_page_null_context; -GPContextWrapper* import_page_null_context = NULL; -GPSpinIdleWrapper* import_page_spin_idle_context = NULL; -static gpointer import_page_import_view_manager_parent_class = NULL; -static gpointer import_page_camera_import_job_parent_class = NULL; -static gpointer import_page_import_page_search_view_filter_parent_class = NULL; -static gpointer import_page_hide_imported_view_filter_parent_class = NULL; - -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -GType marker_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -gpointer source_backlink_ref (gpointer instance); -void source_backlink_unref (gpointer instance); -GParamSpec* param_spec_source_backlink (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_backlink (GValue* value, - gpointer v_object); -void value_take_source_backlink (GValue* value, - gpointer v_object); -gpointer value_get_source_backlink (const GValue* value); -GType source_backlink_get_type (void) G_GNUC_CONST; -GType import_source_collection_get_type (void) G_GNUC_CONST; -ImportSourceCollection* import_source_collection_new (const gchar* name); -ImportSourceCollection* import_source_collection_construct (GType object_type, - const gchar* name); -SourceCollection* source_collection_construct (GType object_type, - const gchar* name); -static gboolean import_source_collection_real_holds_type_of_source (SourceCollection* base, - DataSource* source); -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType import_source_get_type (void) G_GNUC_CONST; -gpointer source_holding_tank_ref (gpointer instance); -void source_holding_tank_unref (gpointer instance); -GParamSpec* param_spec_source_holding_tank (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_holding_tank (GValue* value, - gpointer v_object); -void value_take_source_holding_tank (GValue* value, - gpointer v_object); -gpointer value_get_source_holding_tank (const GValue* value); -GType source_holding_tank_get_type (void) G_GNUC_CONST; -gpointer source_snapshot_ref (gpointer instance); -void source_snapshot_unref (gpointer instance); -GParamSpec* param_spec_source_snapshot (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_snapshot (GValue* value, - gpointer v_object); -void value_take_source_snapshot (GValue* value, - gpointer v_object); -gpointer value_get_source_snapshot (const GValue* value); -GType source_snapshot_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType indexable_get_type (void) G_GNUC_CONST; -#define IMPORT_SOURCE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_IMPORT_SOURCE, ImportSourcePrivate)) -ImportSource* import_source_construct (GType object_type, - const gchar* camera_name, - Camera* camera, - gint fsid, - const gchar* folder, - const gchar* filename, - gulong file_size, - time_t modification_time); -#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1) -ThumbnailSource* thumbnail_source_construct (GType object_type, - gint64 object_id); -gchar* indexable_prepare_indexable_string (const gchar* str); -void import_source_set_preview (ImportSource* self, - GdkPixbuf* preview); -gchar* import_source_get_camera_name (ImportSource* self); -Camera* import_source_get_camera (ImportSource* self); -gint import_source_get_fsid (ImportSource* self); -gchar* import_source_get_folder (ImportSource* self); -gchar* import_source_get_filename (ImportSource* self); -gulong import_source_get_filesize (ImportSource* self); -time_t import_source_get_modification_time (ImportSource* self); -GdkPixbuf* import_source_get_preview (ImportSource* self); -static GdkPixbuf* import_source_real_get_preview (ImportSource* self); -time_t import_source_get_exposure_time (ImportSource* self); -static time_t import_source_real_get_exposure_time (ImportSource* self); -gchar* import_source_get_fulldir (ImportSource* self); -gchar* import_page_get_fulldir (Camera* camera, - const gchar* camera_name, - gint fsid, - const gchar* folder); -static gchar* import_source_real_to_string (DataObject* base); -static gboolean import_source_real_internal_delete_backing (DataSource* base, - GError** error); -gchar* data_object_to_string (DataObject* self); -gboolean data_source_internal_delete_backing (DataSource* self, - GError** error); -gpointer gp_context_wrapper_ref (gpointer instance); -void gp_context_wrapper_unref (gpointer instance); -GParamSpec* gp_param_spec_context_wrapper (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void gp_value_set_context_wrapper (GValue* value, - gpointer v_object); -void gp_value_take_context_wrapper (GValue* value, - gpointer v_object); -gpointer gp_value_get_context_wrapper (const GValue* value); -GType gp_context_wrapper_get_type (void) G_GNUC_CONST; -GType gp_spin_idle_wrapper_get_type (void) G_GNUC_CONST; -static const gchar* import_source_real_get_indexable_keywords (Indexable* base); -static void import_source_finalize (GObject * obj); -GType video_import_source_get_type (void) G_GNUC_CONST; -VideoImportSource* video_import_source_new (const gchar* camera_name, - Camera* camera, - gint fsid, - const gchar* folder, - const gchar* filename, - gulong file_size, - time_t modification_time); -VideoImportSource* video_import_source_construct (GType object_type, - const gchar* camera_name, - Camera* camera, - gint fsid, - const gchar* folder, - const gchar* filename, - gulong file_size, - time_t modification_time); -static GdkPixbuf* video_import_source_real_get_thumbnail (ThumbnailSource* base, - gint scale, - GError** error); -GdkPixbuf* thumbnail_source_create_thumbnail (ThumbnailSource* self, - gint scale, - GError** error); -static GdkPixbuf* video_import_source_real_create_thumbnail (ThumbnailSource* base, - gint scale, - GError** error); -GdkPixbuf* scale_pixbuf (GdkPixbuf* pixbuf, - gint scale, - GdkInterpType interp, - gboolean scale_up); -static gchar* video_import_source_real_get_typename (DataSource* base); -static gint64 video_import_source_real_get_instance_id (DataSource* base); -gint64 data_object_get_object_id (DataObject* self); -static PhotoFileFormat video_import_source_real_get_preferred_thumbnail_format (ThumbnailSource* base); -PhotoFileFormat photo_file_format_get_system_default_format (void); -static gchar* video_import_source_real_get_name (DataObject* base); -void video_import_source_update (VideoImportSource* self, - GdkPixbuf* preview); -GdkPixbuf* resources_get_noninterpretable_badge_pixbuf (void); -GType photo_import_source_get_type (void) G_GNUC_CONST; -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -#define PHOTO_IMPORT_SOURCE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSourcePrivate)) -#define PHOTO_IMPORT_SOURCE_INTERP GDK_INTERP_BILINEAR -PhotoImportSource* photo_import_source_new (const gchar* camera_name, - Camera* camera, - gint fsid, - const gchar* folder, - const gchar* filename, - gulong file_size, - time_t modification_time, - PhotoFileFormat file_format); -PhotoImportSource* photo_import_source_construct (GType object_type, - const gchar* camera_name, - Camera* camera, - gint fsid, - const gchar* folder, - const gchar* filename, - gulong file_size, - time_t modification_time, - PhotoFileFormat file_format); -static gchar* photo_import_source_real_get_name (DataObject* base); -gchar* photo_import_source_get_title (PhotoImportSource* self); -gboolean is_string_empty (const gchar* s); -static gchar* photo_import_source_real_get_typename (DataSource* base); -static gint64 photo_import_source_real_get_instance_id (DataSource* base); -static PhotoFileFormat photo_import_source_real_get_preferred_thumbnail_format (ThumbnailSource* base); -gboolean photo_file_format_can_write (PhotoFileFormat self); -static GdkPixbuf* photo_import_source_real_create_thumbnail (ThumbnailSource* base, - gint scale, - GError** error); -void photo_import_source_update (PhotoImportSource* self, - GdkPixbuf* preview, - const gchar* preview_md5, - PhotoMetadata* metadata, - const gchar* exif_md5); -static time_t photo_import_source_real_get_exposure_time (ImportSource* base); -gpointer metadata_date_time_ref (gpointer instance); -void metadata_date_time_unref (gpointer instance); -GParamSpec* param_spec_metadata_date_time (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_metadata_date_time (GValue* value, - gpointer v_object); -void value_take_metadata_date_time (GValue* value, - gpointer v_object); -gpointer value_get_metadata_date_time (const GValue* value); -GType metadata_date_time_get_type (void) G_GNUC_CONST; -MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self); -time_t metadata_date_time_get_timestamp (MetadataDateTime* self); -gchar* media_metadata_get_title (MediaMetadata* self); -PhotoMetadata* photo_import_source_get_metadata (PhotoImportSource* self); -static GdkPixbuf* photo_import_source_real_get_preview (ImportSource* base); -static GdkPixbuf* photo_import_source_real_get_thumbnail (ThumbnailSource* base, - gint scale, - GError** error); -PhotoFileFormat photo_import_source_get_file_format (PhotoImportSource* self); -gchar* photo_import_source_get_preview_md5 (PhotoImportSource* self); -void photo_import_source_set_associated (PhotoImportSource* self, - PhotoImportSource* associated); -PhotoImportSource* photo_import_source_get_associated (PhotoImportSource* self); -static gboolean photo_import_source_real_internal_delete_backing (DataSource* base, - GError** error); -static void photo_import_source_finalize (GObject * obj); -GType data_view_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType media_source_item_get_type (void) G_GNUC_CONST; -GType import_preview_get_type (void) G_GNUC_CONST; -GType duplicated_file_get_type (void) G_GNUC_CONST; -#define IMPORT_PREVIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_IMPORT_PREVIEW, ImportPreviewPrivate)) -#define IMPORT_PREVIEW_MAX_SCALE 128 -ImportPreview* import_preview_new (ImportSource* source); -ImportPreview* import_preview_construct (GType object_type, - ImportSource* source); -void dimensions_init (Dimensions *self, - gint width, - gint height); -gchar* data_object_get_name (DataObject* self); -MediaSourceItem* media_source_item_new (ThumbnailSource* source, - Dimensions* initial_pixbuf_dim, - const gchar* title, - const gchar* comment, - gboolean marked_up, - PangoAlignment alignment); -MediaSourceItem* media_source_item_construct (GType object_type, - ThumbnailSource* source, - Dimensions* initial_pixbuf_dim, - const gchar* title, - const gchar* comment, - gboolean marked_up, - PangoAlignment alignment); -void media_source_item_set_enable_sprockets (MediaSourceItem* self, - gboolean enable_sprockets); -GdkPixbuf* thumbnail_source_get_thumbnail (ThumbnailSource* self, - gint scale, - GError** error); -GdkPixbuf* get_placeholder_pixbuf (void); -GType orientation_get_type (void) G_GNUC_CONST; -Orientation photo_metadata_get_orientation (PhotoMetadata* self); -GdkPixbuf* orientation_rotate_pixbuf (Orientation self, - GdkPixbuf* pixbuf); -void checkerboard_item_set_subtitle (CheckerboardItem* self, - const gchar* text, - gboolean marked_up, - PangoAlignment alignment); -void checkerboard_item_set_image (CheckerboardItem* self, - GdkPixbuf* pixbuf); -gboolean import_preview_is_already_imported (ImportPreview* self); -ImportSource* import_preview_get_import_source (ImportPreview* self); -gboolean library_photo_has_nontrash_duplicate (GFile* file, - const gchar* thumbnail_md5, - const gchar* full_md5, - PhotoFileFormat file_format); -GType photo_id_get_type (void) G_GNUC_CONST; -PhotoID* photo_id_dup (const PhotoID* self); -void photo_id_free (PhotoID* self); -DuplicatedFile* duplicated_file_create_from_photo_id (PhotoID* photo_id); -void library_photo_get_nontrash_duplicate (GFile* file, - const gchar* thumbnail_md5, - const gchar* full_md5, - PhotoFileFormat file_format, - PhotoID* result); -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -void library_photo_source_collection_get_basename_filesize_duplicate (LibraryPhotoSourceCollection* self, - const gchar* basename, - gint64 filesize, - PhotoID* result); -gboolean photo_id_is_valid (PhotoID *self); -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -LibraryPhoto* library_photo_source_collection_fetch (LibraryPhotoSourceCollection* self, - PhotoID* photo_id); -time_t media_source_get_exposure_time (MediaSource* self); -GType video_source_collection_get_type (void) G_GNUC_CONST; -gboolean video_source_collection_has_basename_filesize_duplicate (VideoSourceCollection* self, - const gchar* basename, - guint64 filesize); -GType video_id_get_type (void) G_GNUC_CONST; -VideoID* video_id_dup (const VideoID* self); -void video_id_free (VideoID* self); -DuplicatedFile* duplicated_file_create_from_video_id (VideoID* video_id); -void video_source_collection_get_basename_filesize_duplicate (VideoSourceCollection* self, - const gchar* basename, - guint64 filesize, - VideoID* result); -DuplicatedFile* import_preview_get_duplicated_file (ImportPreview* self); -DataSource* data_view_get_source (DataView* self); -static void import_preview_finalize (GObject * obj); -gpointer core_tracker_ref (gpointer instance); -void core_tracker_unref (gpointer instance); -GParamSpec* core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void core_value_set_tracker (GValue* value, - gpointer v_object); -void core_value_take_tracker (GValue* value, - gpointer v_object); -gpointer core_value_get_tracker (const GValue* value); -GType core_tracker_get_type (void) G_GNUC_CONST; -GType core_view_tracker_get_type (void) G_GNUC_CONST; -GType camera_view_tracker_get_type (void) G_GNUC_CONST; -GType camera_accumulator_get_type (void) G_GNUC_CONST; -CameraAccumulator* camera_accumulator_new (void); -CameraAccumulator* camera_accumulator_construct (GType object_type); -GType view_collection_get_type (void) G_GNUC_CONST; -CameraViewTracker* camera_view_tracker_new (ViewCollection* collection); -CameraViewTracker* camera_view_tracker_construct (GType object_type, - ViewCollection* collection); -CoreViewTracker* core_view_tracker_new (ViewCollection* collection); -CoreViewTracker* core_view_tracker_construct (GType object_type, - ViewCollection* collection); -GType core_tracker_accumulator_get_type (void) G_GNUC_CONST; -void core_view_tracker_start (CoreViewTracker* self, - CoreTrackerAccumulator* all, - CoreTrackerAccumulator* visible, - CoreTrackerAccumulator* selected); -static void camera_view_tracker_finalize (CoreTracker * obj); -#define CAMERA_ACCUMULATOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CAMERA_ACCUMULATOR, CameraAccumulatorPrivate)) -static gboolean camera_accumulator_real_include (CoreTrackerAccumulator* base, - DataObject* object); -gint camera_accumulator_get_total (CameraAccumulator* self); -static void camera_accumulator_set_total (CameraAccumulator* self, - gint value); -gint camera_accumulator_get_photos (CameraAccumulator* self); -static void camera_accumulator_set_photos (CameraAccumulator* self, - gint value); -gint camera_accumulator_get_raw (CameraAccumulator* self); -static void camera_accumulator_set_raw (CameraAccumulator* self, - gint value); -gint camera_accumulator_get_videos (CameraAccumulator* self); -static void camera_accumulator_set_videos (CameraAccumulator* self, - gint value); -static gboolean camera_accumulator_real_uninclude (CoreTrackerAccumulator* base, - DataObject* object); -static gboolean camera_accumulator_real_altered (CoreTrackerAccumulator* base, - DataObject* object, - Alteration* alteration); -gchar* camera_accumulator_to_string (CameraAccumulator* self); -static void camera_accumulator_finalize (GObject * obj); -static void _vala_camera_accumulator_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_camera_accumulator_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -GType page_get_type (void) G_GNUC_CONST; -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType checkerboard_page_activator_get_type (void) G_GNUC_CONST; -GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST; -CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self); -void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self); -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -GType search_view_filter_get_type (void) G_GNUC_CONST; -GType import_page_get_type (void) G_GNUC_CONST; -static GType import_page_import_page_search_view_filter_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static GType import_page_hide_imported_view_filter_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define IMPORT_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_IMPORT_PAGE, ImportPagePrivate)) -static void import_page_on_media_added_removed (ImportPage* self); -static void _import_page_on_media_added_removed_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self); -GType import_page_refresh_result_get_type (void) G_GNUC_CONST; -static ImportPageImportPageSearchViewFilter* import_page_import_page_search_view_filter_new (void); -static ImportPageImportPageSearchViewFilter* import_page_import_page_search_view_filter_construct (GType object_type); -static ImportPageHideImportedViewFilter* import_page_hide_imported_view_filter_new (void); -static ImportPageHideImportedViewFilter* import_page_hide_imported_view_filter_construct (GType object_type); -#define IMPORT_PAGE_UNMOUNT_FAILED_MSG _ ("Unable to unmount camera. Try unmounting the camera from the file mana" \ -"ger.") -static void import_page_on_import_selected (ImportPage* self); -static void _import_page_on_import_selected_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void import_page_on_import_all (ImportPage* self); -static void _import_page_on_import_all_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void page_on_action_toggle (Page* self, - GAction* action, - GVariant* value); -static void _page_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void import_page_on_display_titles (ImportPage* self, - GSimpleAction* action, - GVariant* value); -static void _import_page_on_display_titles_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -ImportPage* import_page_new (Camera* camera, - const gchar* uri, - const gchar* display_name, - const gchar* icon); -ImportPage* import_page_construct (GType object_type, - Camera* camera, - const gchar* uri, - const gchar* display_name, - const gchar* icon); -CheckerboardPage* checkerboard_page_construct (GType object_type, - const gchar* page_name); -ViewCollection* page_get_view (Page* self); -void page_set_page_name (Page* self, - const gchar* page_name); -GPContextWrapper* gp_context_wrapper_new (void); -GPContextWrapper* gp_context_wrapper_construct (GType object_type); -GPSpinIdleWrapper* gp_spin_idle_wrapper_new (void); -GPSpinIdleWrapper* gp_spin_idle_wrapper_construct (GType object_type); -gpointer view_manager_ref (gpointer instance); -void view_manager_unref (gpointer instance); -GParamSpec* param_spec_view_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_manager (GValue* value, - gpointer v_object); -void value_take_view_manager (GValue* value, - gpointer v_object); -gpointer value_get_view_manager (const GValue* value); -GType view_manager_get_type (void) G_GNUC_CONST; -gpointer view_collection_monitor_ref (gpointer instance); -void view_collection_monitor_unref (gpointer instance); -GParamSpec* view_collection_param_spec_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void view_collection_value_set_monitor (GValue* value, - gpointer v_object); -void view_collection_value_take_monitor (GValue* value, - gpointer v_object); -gpointer view_collection_value_get_monitor (const GValue* value); -GType view_collection_monitor_get_type (void) G_GNUC_CONST; -ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self, - SourceCollection* sources, - ViewManager* manager, - Alteration* prereq, - GeeCollection* initial, - ProgressMonitor progress_monitor, - void* progress_monitor_target); -static ImportPageImportViewManager* import_page_import_view_manager_new (ImportPage* owner); -static ImportPageImportViewManager* import_page_import_view_manager_construct (GType object_type, - ImportPage* owner); -static GType import_page_import_view_manager_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -void data_collection_set_comparator (DataCollection* self, - Comparator comparator, - void* comparator_target, - ComparatorPredicate predicate, - void* predicate_target); -static gint64 import_page_preview_comparator (void* a, - void* b); -static gint64 _import_page_preview_comparator_comparator (void* a, - void* b, - gpointer self); -static gboolean import_page_preview_comparator_predicate (DataObject* object, - Alteration* alteration); -static gboolean _import_page_preview_comparator_predicate_comparator_predicate (DataObject* object, - Alteration* alteration, - gpointer self); -static void import_page_on_view_changed (ImportPage* self); -static void _import_page_on_view_changed_view_collection_items_state_changed (ViewCollection* _sender, - GeeIterable* changed, - gpointer self); -static void _import_page_on_view_changed_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self); -static void _import_page_on_view_changed_view_collection_items_visibility_changed (ViewCollection* _sender, - GeeCollection* changed, - gpointer self); -void data_collection_set_property (DataCollection* self, - const gchar* name, - GValue* val, - ValueEqualFunc value_equals, - void* value_equals_target); -#define CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES "show-subtitles" -void checkerboard_page_init_item_context_menu (CheckerboardPage* self, - const gchar* path); -void checkerboard_page_init_page_context_menu (CheckerboardPage* self, - const gchar* path); -static GtkToolbar* import_page_real_get_toolbar (Page* base); -GtkToolbar* page_get_toolbar (Page* self); -static void import_page_on_hide_imported (ImportPage* self); -static void _import_page_on_hide_imported_gtk_button_clicked (GtkButton* _sender, - gpointer self); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gboolean configuration_facade_get_hide_photos_already_imported (ConfigurationFacade* self); -static void import_page_update_toolbar_state (ImportPage* self); -static CoreViewTracker* import_page_real_get_view_tracker (CheckerboardPage* base); -static gchar* import_page_real_get_view_empty_message (CheckerboardPage* base); -static gchar* import_page_real_get_filter_no_match_message (CheckerboardPage* base); -gboolean alteration_has_detail (Alteration* self, - const gchar* subject, - const gchar* detail); -static gint64 import_page_import_job_comparator (ImportPage* self, - void* a, - void* b); -gpointer batch_import_job_ref (gpointer instance); -void batch_import_job_unref (gpointer instance); -GParamSpec* param_spec_batch_import_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_job (GValue* value, - gpointer v_object); -void value_take_batch_import_job (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_job (const GValue* value); -GType batch_import_job_get_type (void) G_GNUC_CONST; -static GType import_page_camera_import_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static time_t import_page_camera_import_job_get_exposure_time (ImportPageCameraImportJob* self); -static void import_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames); -void page_init_collect_ui_filenames (Page* self, - GeeList* ui_filenames); -static void import_page_real_add_actions (Page* base, - GActionMap* map); -void page_add_actions (Page* self, - GActionMap* map); -GAction* page_get_action (Page* self, - const gchar* name); -gboolean configuration_facade_get_display_photo_titles (ConfigurationFacade* self); -static GVariant* _variant_new15 (gboolean value); -static void import_page_real_remove_actions (Page* base, - GActionMap* map); -void page_remove_actions (Page* self, - GActionMap* map); -Camera* import_page_get_camera (ImportPage* self); -gchar* import_page_get_uri (ImportPage* self); -gboolean import_page_is_busy (ImportPage* self); -static void import_page_real_init_actions (Page* base, - gint selected_count, - gint count); -void page_set_action_sensitive (Page* self, - const gchar* name, - gboolean sensitive); -void page_init_actions (Page* self, - gint selected_count, - gint count); -gboolean import_page_is_refreshed (ImportPage* self); -gchar* import_page_get_refresh_message (ImportPage* self); -static void import_page_update_status (ImportPage* self, - gboolean busy, - gboolean refreshed); -gint view_collection_get_unfiltered_count (ViewCollection* self); -gint view_collection_get_selected_count (ViewCollection* self); -gint data_collection_get_count (DataCollection* self); -void checkerboard_page_set_display_titles (CheckerboardPage* self, - gboolean display); -void configuration_facade_set_display_photo_titles (ConfigurationFacade* self, - gboolean display); -static void import_page_real_switched_to (Page* base); -void page_switched_to (Page* self); -static void import_page_real_ready (Page* base); -static void import_page_try_refreshing_camera (ImportPage* self, - gboolean fail_on_locked); -static ImportPageRefreshResult import_page_refresh_camera (ImportPage* self); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -#define RESOURCES_APP_TITLE "Shotwell" -void checkerboard_page_set_page_message (CheckerboardPage* self, - const gchar* message); -gboolean import_page_unmount_camera (ImportPage* self, - GMount* mount); -static void import_page_on_unmounted (ImportPage* self, - GMount* mount); -static void _import_page_on_unmounted_g_mount_unmounted (GMount* _sender, - gpointer self); -static void import_page_on_unmount_finished (ImportPage* self, - GObject* source, - GAsyncResult* aresult); -static void _import_page_on_unmount_finished_gasync_ready_callback (GObject* source_object, - GAsyncResult* res, - gpointer self); -static void import_page_clear_all_import_sources (ImportPage* self); -Marker* data_collection_start_marking (DataCollection* self); -void marker_mark_all (Marker* self); -gint source_collection_destroy_marked (SourceCollection* self, - Marker* marker, - gboolean delete_backing, - ProgressMonitor monitor, - void* monitor_target, - GeeList* not_removed); -static gboolean import_page_check_directory_exists (ImportPage* self, - gint fsid, - const gchar* dir, - const gchar* search_target); -static gboolean ____lambda18_ (ImportPage* self); -static gboolean _____lambda18__gsource_func (gpointer self); -static gboolean import_page_enumerate_files (ImportPage* self, - gint fsid, - const gchar* dir, - GeeArrayList* import_list); -static void import_page_auto_match_raw_jpeg (ImportPage* self, - GeeArrayList* import_list); -static void import_page_load_previews_and_metadata (ImportPage* self, - GeeList* import_list); -gchar* checkerboard_page_get_view_empty_message (CheckerboardPage* self); -static gchar* import_page_chomp_ch (const gchar* str, - gchar ch); -gchar* import_page_append_path (const gchar* basepath, - const gchar* addition); -gchar* import_page_get_fs_basedir (Camera* camera, - gint fsid); -#define GP_MAX_BASEDIR_LENGTH 255 -gboolean gp_get_info (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - CameraFileInfo* info, - GError** error); -gboolean video_reader_is_supported_video_filename (const gchar* filename); -PhotoFileFormat photo_file_format_from_gphoto_type (const gchar* type); -PhotoFileFormat photo_file_format_get_by_basename_extension (const gchar* basename); -void spin_event_loop (void); -void disassemble_filename (const gchar* basename, - gchar* * name, - gchar* * ext); -PhotoMetadata* gp_load_metadata (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - GError** error); -gchar* photo_metadata_exif_hash (PhotoMetadata* self); -GdkPixbuf* gp_load_preview (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - gchar* * preview_md5, - GError** error); -gboolean data_collection_add (DataCollection* self, - DataObject* object); -void view_collection_install_view_filter (ViewCollection* self, - ViewFilter* f); -void view_collection_remove_view_filter (ViewCollection* self, - ViewFilter* f); -void configuration_facade_set_hide_photos_already_imported (ConfigurationFacade* self, - gboolean hide_imported); -static void import_page_import (ImportPage* self, - GeeIterable* items); -GeeList* view_collection_get_selected (ViewCollection* self); -GeeCollection* data_collection_get_all (DataCollection* self); -GType sorted_list_get_type (void) G_GNUC_CONST; -static gint64 _import_page_import_job_comparator_comparator (void* a, - void* b, - gpointer self); -SortedList* sorted_list_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - Comparator cmp, - void* cmp_target); -SortedList* sorted_list_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - Comparator cmp, - void* cmp_target); -static ImportPageCameraImportJob* import_page_camera_import_job_new (GPContextWrapper* context, - ImportSource* import_file, - DuplicatedFile* duplicated_file); -static ImportPageCameraImportJob* import_page_camera_import_job_construct (GType object_type, - GPContextWrapper* context, - ImportSource* import_file, - DuplicatedFile* duplicated_file); -void batch_import_job_set_associated (BatchImportJob* self, - BatchImportJob* associated); -GType batch_import_get_type (void) G_GNUC_CONST; -gpointer import_manifest_ref (gpointer instance); -void import_manifest_unref (gpointer instance); -GParamSpec* param_spec_import_manifest (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_import_manifest (GValue* value, - gpointer v_object); -void value_take_import_manifest (GValue* value, - gpointer v_object); -gpointer value_get_import_manifest (const GValue* value); -GType import_manifest_get_type (void) G_GNUC_CONST; -static void import_page_import_reporter (ImportPage* self, - ImportManifest* manifest); -gpointer batch_import_roll_ref (gpointer instance); -void batch_import_roll_unref (gpointer instance); -GParamSpec* param_spec_batch_import_roll (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_roll (GValue* value, - gpointer v_object); -void value_take_batch_import_roll (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_roll (const GValue* value); -GType batch_import_roll_get_type (void) G_GNUC_CONST; -static void _import_page_import_reporter_batch_import_import_reporter (ImportManifest* manifest, - BatchImportRoll* import_roll, - gpointer self); -BatchImport* batch_import_new (GeeIterable* jobs, - const gchar* name, - BatchImportImportReporter reporter, - void* reporter_target, - GeeArrayList* prefailed, - GeeArrayList* pre_already_imported, - GCancellable* cancellable, - BatchImportRoll* import_roll, - ImportManifest* skip_manifest); -BatchImport* batch_import_construct (GType object_type, - GeeIterable* jobs, - const gchar* name, - BatchImportImportReporter reporter, - void* reporter_target, - GeeArrayList* prefailed, - GeeArrayList* pre_already_imported, - GCancellable* cancellable, - BatchImportRoll* import_roll, - ImportManifest* skip_manifest); -gpointer batch_import_result_ref (gpointer instance); -void batch_import_result_unref (gpointer instance); -GParamSpec* param_spec_batch_import_result (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_result (GValue* value, - gpointer v_object); -void value_take_batch_import_result (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_result (const GValue* value); -GType batch_import_result_get_type (void) G_GNUC_CONST; -static void import_page_on_import_job_failed (ImportPage* self, - BatchImportResult* _result_); -static void _import_page_on_import_job_failed_batch_import_import_job_failed (BatchImport* _sender, - BatchImportResult* _result_, - gpointer self); -static void import_page_close_import (ImportPage* self); -static void _import_page_close_import_batch_import_import_complete (BatchImport* _sender, - ImportManifest* manifest, - BatchImportRoll* import_roll, - gpointer self); -GType library_window_get_type (void) G_GNUC_CONST; -LibraryWindow* library_window_get_app (void); -void library_window_enqueue_batch_import (LibraryWindow* self, - BatchImport* batch_import, - gboolean allow_user_cancel); -void library_window_switch_to_import_queue_page (LibraryWindow* self); -ImportManifest* import_manifest_new (GeeList* prefailed, - GeeList* pre_already_imported); -ImportManifest* import_manifest_construct (GType object_type, - GeeList* prefailed, - GeeList* pre_already_imported); -GType import_result_get_type (void) G_GNUC_CONST; -gchar* import_ui_get_media_specific_string (GeeCollection* import_collection, - const gchar* photos_msg, - const gchar* videos_msg, - const gchar* both_msg, - const gchar* neither_msg); -gpointer import_ui_question_params_ref (gpointer instance); -void import_ui_question_params_unref (gpointer instance); -GParamSpec* import_ui_param_spec_question_params (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void import_ui_value_set_question_params (GValue* value, - gpointer v_object); -void import_ui_value_take_question_params (GValue* value, - gpointer v_object); -gpointer import_ui_value_get_question_params (const GValue* value); -GType import_ui_question_params_get_type (void) G_GNUC_CONST; -#define RESOURCES_DELETE_LABEL _ ("_Delete") -ImportUIQuestionParams* import_ui_question_params_new (const gchar* question, - const gchar* yes_button, - const gchar* no_button); -ImportUIQuestionParams* import_ui_question_params_construct (GType object_type, - const gchar* question, - const gchar* yes_button, - const gchar* no_button); -gboolean import_ui_report_manifest (ImportManifest* manifest, - gboolean show_dest_id, - ImportUIQuestionParams* question); -void marker_mark (Marker* self, - DataObject* object); -static ImportSource* import_page_camera_import_job_get_source (ImportPageCameraImportJob* self); -GType progress_dialog_get_type (void) G_GNUC_CONST; -ProgressDialog* progress_dialog_new (GtkWindow* owner, - const gchar* text, - GCancellable* cancellable); -ProgressDialog* progress_dialog_construct (GType object_type, - GtkWindow* owner, - const gchar* text, - GCancellable* cancellable); -gboolean progress_dialog_monitor (ProgressDialog* self, - guint64 count, - guint64 total, - gboolean do_event_loop); -static gboolean _progress_dialog_monitor_progress_monitor (guint64 current, - guint64 total, - gboolean do_event_loop, - gpointer self); -void progress_dialog_close (ProgressDialog* self); -static void import_page_real_set_display_titles (CheckerboardPage* base, - gboolean display); -void page_set_action_active (Page* self, - const gchar* name, - gboolean active); -static SearchViewFilter* import_page_real_get_search_view_filter (CheckerboardPage* base); -#define IMPORT_PAGE_IMPORT_VIEW_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER, ImportPageImportViewManagerPrivate)) -ViewManager* view_manager_construct (GType object_type); -static DataView* import_page_import_view_manager_real_create_view (ViewManager* base, - DataSource* source); -static void import_page_import_view_manager_finalize (ViewManager * obj); -gpointer backing_photo_row_ref (gpointer instance); -void backing_photo_row_unref (gpointer instance); -GParamSpec* param_spec_backing_photo_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_backing_photo_row (GValue* value, - gpointer v_object); -void value_take_backing_photo_row (GValue* value, - gpointer v_object); -gpointer value_get_backing_photo_row (const GValue* value); -GType backing_photo_row_get_type (void) G_GNUC_CONST; -#define IMPORT_PAGE_CAMERA_IMPORT_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJobPrivate)) -BatchImportJob* batch_import_job_construct (GType object_type); -static DuplicatedFile* import_page_camera_import_job_real_get_duplicated_file (BatchImportJob* base); -static time_t import_page_camera_import_job_real_get_exposure_time_override (BatchImportJob* base); -static gchar* import_page_camera_import_job_real_get_dest_identifier (BatchImportJob* base); -static gchar* import_page_camera_import_job_real_get_source_identifier (BatchImportJob* base); -static gchar* import_page_camera_import_job_real_get_basename (BatchImportJob* base); -static gchar* import_page_camera_import_job_real_get_path (BatchImportJob* base); -static void import_page_camera_import_job_real_set_associated (BatchImportJob* base, - BatchImportJob* associated); -static gboolean import_page_camera_import_job_real_is_directory (BatchImportJob* base); -static gboolean import_page_camera_import_job_real_determine_file_size (BatchImportJob* base, - guint64* filesize, - GFile* * file); -static gboolean import_page_camera_import_job_real_prepare (BatchImportJob* base, - GFile* * file_to_import, - gboolean* copy_to_library, - GError** error); -GFile* library_files_generate_unique_file (const gchar* basename, - MediaMetadata* metadata, - time_t ts, - gboolean* collision, - GError** error); -void library_monitor_blacklist_file (GFile* file, - const gchar* reason); -void gp_save_image (GPContext* context, - Camera* camera, - const gchar* folder, - const gchar* filename, - GFile* dest_file, - GError** error); -void library_monitor_unblacklist_file (GFile* file); -GType raw_developer_get_type (void) G_GNUC_CONST; -BackingPhotoRow* raw_developer_create_backing_row_for_development (RawDeveloper self, - const gchar* raw_filepath, - const gchar* camera_development_filename, - GError** error); -gchar* batch_import_job_get_basename (BatchImportJob* self); -GType backing_photo_id_get_type (void) G_GNUC_CONST; -BackingPhotoID* backing_photo_id_dup (const BackingPhotoID* self); -void backing_photo_id_free (BackingPhotoID* self); -static GFile* import_page_camera_import_job_real_get_associated_file (BatchImportJob* base); -static void import_page_camera_import_job_finalize (BatchImportJob * obj); -static guint import_page_import_page_search_view_filter_real_get_criteria (SearchViewFilter* base); -GType search_filter_criteria_get_type (void) G_GNUC_CONST; -static gboolean import_page_import_page_search_view_filter_real_predicate (ViewFilter* base, - DataView* view); -guint search_view_filter_get_criteria (SearchViewFilter* self); -gboolean search_view_filter_filter_by_media_type (SearchViewFilter* self); -gboolean search_view_filter_get_show_media_video (SearchViewFilter* self); -gboolean search_view_filter_get_show_media_photos (SearchViewFilter* self); -gboolean search_view_filter_get_show_media_raw (SearchViewFilter* self); -const gchar* indexable_get_indexable_keywords (Indexable* self); -gchar** search_view_filter_get_search_filter_words (SearchViewFilter* self, - int* result_length1); -SearchViewFilter* search_view_filter_construct (GType object_type); -static gboolean import_page_hide_imported_view_filter_real_predicate (ViewFilter* base, - DataView* view); -ViewFilter* view_filter_construct (GType object_type); -static void import_page_finalize (GObject * obj); - -static const GActionEntry IMPORT_PAGE_entries[3] = {{"ImportSelected", _import_page_on_import_selected_gsimple_action_activate_callback}, {"ImportAll", _import_page_on_import_all_gsimple_action_activate_callback}, {"ViewTitle", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _import_page_on_display_titles_gsimple_action_change_state_callback}}; - -ImportSourceCollection* -import_source_collection_construct (GType object_type, - const gchar* name) -{ - ImportSourceCollection* self = NULL; -#line 8 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 9 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = (ImportSourceCollection*) source_collection_construct (object_type, name); -#line 8 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self; -#line 2559 "ImportPage.c" -} - - -ImportSourceCollection* -import_source_collection_new (const gchar* name) -{ -#line 8 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return import_source_collection_construct (TYPE_IMPORT_SOURCE_COLLECTION, name); -#line 2568 "ImportPage.c" -} - - -static gboolean -import_source_collection_real_holds_type_of_source (SourceCollection* base, - DataSource* source) -{ - ImportSourceCollection * self; - gboolean result = FALSE; -#line 12 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_SOURCE_COLLECTION, ImportSourceCollection); -#line 12 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 13 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_IMPORT_SOURCE); -#line 13 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 2586 "ImportPage.c" -} - - -static void -import_source_collection_class_init (ImportSourceCollectionClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_source_collection_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*) (SourceCollection *, DataSource*)) import_source_collection_real_holds_type_of_source; -#line 2597 "ImportPage.c" -} - - -static void -import_source_collection_instance_init (ImportSourceCollection * self) -{ -} - - -GType -import_source_collection_get_type (void) -{ - static volatile gsize import_source_collection_type_id__volatile = 0; - if (g_once_init_enter (&import_source_collection_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ImportSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportSourceCollection), 0, (GInstanceInitFunc) import_source_collection_instance_init, NULL }; - GType import_source_collection_type_id; - import_source_collection_type_id = g_type_register_static (TYPE_SOURCE_COLLECTION, "ImportSourceCollection", &g_define_type_info, 0); - g_once_init_leave (&import_source_collection_type_id__volatile, import_source_collection_type_id); - } - return import_source_collection_type_id__volatile; -} - - -static gpointer -_GPHOTO_REF_CAMERA0 (gpointer self) -{ -#line 31 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self ? GPHOTO_REF_CAMERA (self) : NULL; -#line 2626 "ImportPage.c" -} - - -ImportSource* -import_source_construct (GType object_type, - const gchar* camera_name, - Camera* camera, - gint fsid, - const gchar* folder, - const gchar* filename, - gulong file_size, - time_t modification_time) -{ - ImportSource * self = NULL; - gchar* _tmp0_; - Camera* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 28 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (camera_name != NULL, NULL); -#line 28 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (camera != NULL, NULL); -#line 28 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (folder != NULL, NULL); -#line 28 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (filename != NULL, NULL); -#line 28 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = (ImportSource*) thumbnail_source_construct (object_type, DATA_OBJECT_INVALID_OBJECT_ID); -#line 30 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = g_strdup (camera_name); -#line 30 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->camera_name); -#line 30 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->camera_name = _tmp0_; -#line 31 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _GPHOTO_REF_CAMERA0 (camera); -#line 31 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_camera_unref0 (self->priv->camera); -#line 31 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->camera = _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->fsid = fsid; -#line 33 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = g_strdup (folder); -#line 33 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->folder); -#line 33 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->folder = _tmp2_; -#line 34 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = g_strdup (filename); -#line 34 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->filename); -#line 34 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->filename = _tmp3_; -#line 35 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->file_size = file_size; -#line 36 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->modification_time = modification_time; -#line 37 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = indexable_prepare_indexable_string (filename); -#line 37 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->indexable_keywords); -#line 37 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->indexable_keywords = _tmp4_; -#line 28 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self; -#line 2694 "ImportPage.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 41 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self ? g_object_ref (self) : NULL; -#line 2703 "ImportPage.c" -} - - -void -import_source_set_preview (ImportSource* self, - GdkPixbuf* preview) -{ - GdkPixbuf* _tmp0_; -#line 40 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_SOURCE (self)); -#line 40 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail ((preview == NULL) || GDK_IS_PIXBUF (preview)); -#line 41 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = _g_object_ref0 (preview); -#line 41 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->preview); -#line 41 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->preview = _tmp0_; -#line 2722 "ImportPage.c" -} - - -gchar* -import_source_get_camera_name (ImportSource* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 44 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_SOURCE (self), NULL); -#line 45 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->camera_name; -#line 45 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 45 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 45 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 2742 "ImportPage.c" -} - - -Camera* -import_source_get_camera (ImportSource* self) -{ - Camera* result = NULL; - Camera* _tmp0_; - Camera* _tmp1_; -#line 48 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_SOURCE (self), NULL); -#line 49 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->camera; -#line 49 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _GPHOTO_REF_CAMERA0 (_tmp0_); -#line 49 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 49 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 2762 "ImportPage.c" -} - - -gint -import_source_get_fsid (ImportSource* self) -{ - gint result = 0; - gint _tmp0_; -#line 52 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_SOURCE (self), 0); -#line 53 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->fsid; -#line 53 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 53 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 2779 "ImportPage.c" -} - - -gchar* -import_source_get_folder (ImportSource* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 56 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_SOURCE (self), NULL); -#line 57 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->folder; -#line 57 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 57 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 57 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 2799 "ImportPage.c" -} - - -gchar* -import_source_get_filename (ImportSource* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 60 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_SOURCE (self), NULL); -#line 61 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->filename; -#line 61 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 61 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 61 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 2819 "ImportPage.c" -} - - -gulong -import_source_get_filesize (ImportSource* self) -{ - gulong result = 0UL; - gulong _tmp0_; -#line 64 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_SOURCE (self), 0UL); -#line 65 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->file_size; -#line 65 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 65 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 2836 "ImportPage.c" -} - - -time_t -import_source_get_modification_time (ImportSource* self) -{ - time_t result = 0; - time_t _tmp0_; -#line 68 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_SOURCE (self), 0); -#line 69 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->modification_time; -#line 69 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 69 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 2853 "ImportPage.c" -} - - -static GdkPixbuf* -import_source_real_get_preview (ImportSource* self) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; -#line 73 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->preview; -#line 73 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 73 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 73 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 2871 "ImportPage.c" -} - - -GdkPixbuf* -import_source_get_preview (ImportSource* self) -{ -#line 72 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_SOURCE (self), NULL); -#line 72 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return IMPORT_SOURCE_GET_CLASS (self)->get_preview (self); -#line 2882 "ImportPage.c" -} - - -static time_t -import_source_real_get_exposure_time (ImportSource* self) -{ - time_t result = 0; -#line 77 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = import_source_get_modification_time (self); -#line 77 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 2894 "ImportPage.c" -} - - -time_t -import_source_get_exposure_time (ImportSource* self) -{ -#line 76 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_SOURCE (self), 0); -#line 76 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return IMPORT_SOURCE_GET_CLASS (self)->get_exposure_time (self); -#line 2905 "ImportPage.c" -} - - -gchar* -import_source_get_fulldir (ImportSource* self) -{ - gchar* result = NULL; - Camera* _tmp0_; - Camera* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 80 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_SOURCE (self), NULL); -#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = import_source_get_camera (self); -#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp0_; -#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = import_source_get_camera_name (self); -#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _tmp2_; -#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = import_source_get_folder (self); -#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = _tmp4_; -#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = import_page_get_fulldir (_tmp1_, _tmp3_, import_source_get_fsid (self), _tmp5_); -#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = _tmp6_; -#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp5_); -#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp3_); -#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_camera_unref0 (_tmp1_); -#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp7_; -#line 81 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 2949 "ImportPage.c" -} - - -static gchar* -import_source_real_to_string (DataObject* base) -{ - ImportSource * self; - gchar* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 84 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_SOURCE, ImportSource); -#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = import_source_get_camera_name (self); -#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp0_; -#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = import_source_get_folder (self); -#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _tmp2_; -#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = import_source_get_filename (self); -#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = _tmp4_; -#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = g_strdup_printf ("%s %s/%s", _tmp1_, _tmp3_, _tmp5_); -#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = _tmp6_; -#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp5_); -#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp3_); -#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp1_); -#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp7_; -#line 85 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 2994 "ImportPage.c" -} - - -static gchar* -gp_result_to_full_string (int self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 482 "/home/jens/Source/shotwell/vapi/libgphoto2.vapi" - _tmp0_ = gp_port_result_as_string (self); -#line 482 "/home/jens/Source/shotwell/vapi/libgphoto2.vapi" - _tmp1_ = g_strdup_printf ("%s (%d)", _tmp0_, (gint) self); -#line 482 "/home/jens/Source/shotwell/vapi/libgphoto2.vapi" - result = _tmp1_; -#line 482 "/home/jens/Source/shotwell/vapi/libgphoto2.vapi" - return result; -#line 3012 "ImportPage.c" -} - - -static gboolean -import_source_real_internal_delete_backing (DataSource* base, - GError** error) -{ - ImportSource * self; - gboolean result = FALSE; - gchar* _tmp0_; - gchar* _tmp1_; - const gchar* _tmp2_; - gchar* fulldir = NULL; - gchar* _tmp3_; - const gchar* _tmp4_; - int _result_ = 0; - Camera* _tmp10_; - Camera* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - GPSpinIdleWrapper* _tmp15_; - GPContext* _tmp16_; - int _tmp17_; - int _tmp18_; - gboolean _tmp25_ = FALSE; - gboolean _tmp26_ = FALSE; - GError * _inner_error_ = NULL; -#line 88 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_SOURCE, ImportSource); -#line 89 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 89 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp0_; -#line 89 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = self->priv->camera_name; -#line 89 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:89: Deleting %s from %s", _tmp1_, _tmp2_); -#line 89 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp1_); -#line 91 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = import_source_get_fulldir (self); -#line 91 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - fulldir = _tmp3_; -#line 92 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = fulldir; -#line 92 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp4_ == NULL) { -#line 3061 "ImportPage.c" - gchar* _tmp5_; - gchar* _tmp6_; - const gchar* _tmp7_; - gboolean _tmp8_ = FALSE; -#line 93 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 93 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = _tmp5_; -#line 93 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = self->priv->camera_name; -#line 93 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:93: Skipping deleting %s from %s: invalid folder name", _tmp6_, _tmp7_); -#line 93 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp6_); -#line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = DATA_SOURCE_CLASS (import_source_parent_class)->internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), TYPE_DATA_SOURCE, DataSource), &_inner_error_); -#line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3080 "ImportPage.c" - gboolean _tmp9_ = FALSE; -#line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_propagate_error (error, _inner_error_); -#line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return _tmp9_; -#line 3088 "ImportPage.c" - } -#line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp8_; -#line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 95 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3096 "ImportPage.c" - } -#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = import_source_get_camera (self); -#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = _tmp10_; -#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = fulldir; -#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = import_source_get_filename (self); -#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp14_ = _tmp13_; -#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp15_ = import_page_spin_idle_context; -#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp16_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp17_ = gp_camera_file_delete (_tmp11_, _tmp12_, _tmp14_, _tmp16_); -#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp14_); -#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_camera_unref0 (_tmp11_); -#line 98 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _result_ = _tmp17_; -#line 100 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = _result_; -#line 100 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp18_ != GP_OK) { -#line 3124 "ImportPage.c" - gchar* _tmp19_; - gchar* _tmp20_; - const gchar* _tmp21_; - int _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; -#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp19_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp20_ = _tmp19_; -#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp21_ = self->priv->camera_name; -#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp22_ = _result_; -#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp23_ = gp_result_to_full_string (_tmp22_); -#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp24_ = _tmp23_; -#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:101: Error deleting %s from %s: %s", _tmp20_, _tmp21_, _tmp24_); -#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp24_); -#line 101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp20_); -#line 3149 "ImportPage.c" - } -#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp26_ = DATA_SOURCE_CLASS (import_source_parent_class)->internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), TYPE_DATA_SOURCE, DataSource), &_inner_error_); -#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3155 "ImportPage.c" - gboolean _tmp27_ = FALSE; -#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_propagate_error (error, _inner_error_); -#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return _tmp27_; -#line 3163 "ImportPage.c" - } -#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp26_) { -#line 3167 "ImportPage.c" - int _tmp28_; -#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp28_ = _result_; -#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp25_ = _tmp28_ == GP_OK; -#line 3173 "ImportPage.c" - } else { -#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp25_ = FALSE; -#line 3177 "ImportPage.c" - } -#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp25_; -#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 103 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3185 "ImportPage.c" -} - - -static const gchar* -import_source_real_get_indexable_keywords (Indexable* base) -{ - ImportSource * self; - const gchar* result = NULL; - const gchar* _tmp0_; -#line 106 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_SOURCE, ImportSource); -#line 107 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->indexable_keywords; -#line 107 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 107 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3203 "ImportPage.c" -} - - -static void -import_source_class_init (ImportSourceClass * klass) -{ -#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_source_parent_class = g_type_class_peek_parent (klass); -#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_type_class_add_private (klass, sizeof (ImportSourcePrivate)); -#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((ImportSourceClass *) klass)->get_preview = (GdkPixbuf* (*) (ImportSource *)) import_source_real_get_preview; -#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((ImportSourceClass *) klass)->get_exposure_time = (time_t (*) (ImportSource *)) import_source_real_get_exposure_time; -#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) import_source_real_to_string; -#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((DataSourceClass *) klass)->internal_delete_backing = (gboolean (*) (DataSource *, GError**)) import_source_real_internal_delete_backing; -#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - G_OBJECT_CLASS (klass)->finalize = import_source_finalize; -#line 3224 "ImportPage.c" -} - - -static void -import_source_indexable_interface_init (IndexableIface * iface) -{ -#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_source_indexable_parent_iface = g_type_interface_peek_parent (iface); -#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - iface->get_indexable_keywords = (const gchar* (*) (Indexable *)) import_source_real_get_indexable_keywords; -#line 3235 "ImportPage.c" -} - - -static void -import_source_instance_init (ImportSource * self) -{ -#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv = IMPORT_SOURCE_GET_PRIVATE (self); -#line 25 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->preview = NULL; -#line 26 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->indexable_keywords = NULL; -#line 3248 "ImportPage.c" -} - - -static void -import_source_finalize (GObject * obj) -{ - ImportSource * self; -#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_IMPORT_SOURCE, ImportSource); -#line 18 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->camera_name); -#line 19 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_camera_unref0 (self->priv->camera); -#line 21 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->folder); -#line 22 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->filename); -#line 25 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->preview); -#line 26 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->indexable_keywords); -#line 17 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - G_OBJECT_CLASS (import_source_parent_class)->finalize (obj); -#line 3272 "ImportPage.c" -} - - -GType -import_source_get_type (void) -{ - static volatile gsize import_source_type_id__volatile = 0; - if (g_once_init_enter (&import_source_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ImportSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportSource), 0, (GInstanceInitFunc) import_source_instance_init, NULL }; - static const GInterfaceInfo indexable_info = { (GInterfaceInitFunc) import_source_indexable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType import_source_type_id; - import_source_type_id = g_type_register_static (TYPE_THUMBNAIL_SOURCE, "ImportSource", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_type_add_interface_static (import_source_type_id, TYPE_INDEXABLE, &indexable_info); - g_once_init_leave (&import_source_type_id__volatile, import_source_type_id); - } - return import_source_type_id__volatile; -} - - -VideoImportSource* -video_import_source_construct (GType object_type, - const gchar* camera_name, - Camera* camera, - gint fsid, - const gchar* folder, - const gchar* filename, - gulong file_size, - time_t modification_time) -{ - VideoImportSource * self = NULL; -#line 112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (camera_name != NULL, NULL); -#line 112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (camera != NULL, NULL); -#line 112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (folder != NULL, NULL); -#line 112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (filename != NULL, NULL); -#line 114 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = (VideoImportSource*) import_source_construct (object_type, camera_name, camera, fsid, folder, filename, file_size, modification_time); -#line 112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self; -#line 3315 "ImportPage.c" -} - - -VideoImportSource* -video_import_source_new (const gchar* camera_name, - Camera* camera, - gint fsid, - const gchar* folder, - const gchar* filename, - gulong file_size, - time_t modification_time) -{ -#line 112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return video_import_source_construct (TYPE_VIDEO_IMPORT_SOURCE, camera_name, camera, fsid, folder, filename, file_size, modification_time); -#line 3330 "ImportPage.c" -} - - -static GdkPixbuf* -video_import_source_real_get_thumbnail (ThumbnailSource* base, - gint scale, - GError** error) -{ - VideoImportSource * self; - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_ = NULL; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; - GError * _inner_error_ = NULL; -#line 117 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource); -#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = thumbnail_source_create_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), scale, &_inner_error_); -#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = _tmp1_; -#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_propagate_error (error, _inner_error_); -#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return NULL; -#line 3357 "ImportPage.c" - } -#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = _tmp0_; -#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = NULL; -#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp2_; -#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp0_); -#line 118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3369 "ImportPage.c" -} - - -static GdkPixbuf* -video_import_source_real_create_thumbnail (ThumbnailSource* base, - gint scale, - GError** error) -{ - VideoImportSource * self; - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - gboolean _tmp2_; - GdkPixbuf* _tmp3_ = NULL; -#line 121 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource); -#line 122 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); -#line 122 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp0_; -#line 122 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = _tmp1_ == NULL; -#line 122 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp1_); -#line 122 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp2_) { -#line 123 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = NULL; -#line 123 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3400 "ImportPage.c" - } -#line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (scale > 0) { -#line 3404 "ImportPage.c" - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; -#line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); -#line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = _tmp4_; -#line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = scale_pixbuf (_tmp5_, scale, GDK_INTERP_BILINEAR, TRUE); -#line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp3_); -#line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _tmp6_; -#line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp5_); -#line 3420 "ImportPage.c" - } else { - GdkPixbuf* _tmp7_; -#line 128 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); -#line 128 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp3_); -#line 128 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _tmp7_; -#line 3429 "ImportPage.c" - } -#line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp3_; -#line 127 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3435 "ImportPage.c" -} - - -static gchar* -video_import_source_real_get_typename (DataSource* base) -{ - VideoImportSource * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource); -#line 132 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = g_strdup ("videoimport"); -#line 132 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 132 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3453 "ImportPage.c" -} - - -static gint64 -video_import_source_real_get_instance_id (DataSource* base) -{ - VideoImportSource * self; - gint64 result = 0LL; -#line 135 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource); -#line 136 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = data_object_get_object_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 136 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3468 "ImportPage.c" -} - - -static PhotoFileFormat -video_import_source_real_get_preferred_thumbnail_format (ThumbnailSource* base) -{ - VideoImportSource * self; - PhotoFileFormat result = 0; -#line 139 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource); -#line 140 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = photo_file_format_get_system_default_format (); -#line 140 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3483 "ImportPage.c" -} - - -static gchar* -video_import_source_real_get_name (DataObject* base) -{ - VideoImportSource * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 143 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_IMPORT_SOURCE, VideoImportSource); -#line 144 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); -#line 144 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 144 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3501 "ImportPage.c" -} - - -void -video_import_source_update (VideoImportSource* self, - GdkPixbuf* preview) -{ - GdkPixbuf* _tmp0_ = NULL; -#line 147 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_VIDEO_IMPORT_SOURCE (self)); -#line 147 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail ((preview == NULL) || GDK_IS_PIXBUF (preview)); -#line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (preview != NULL) { -#line 3516 "ImportPage.c" - GdkPixbuf* _tmp1_; -#line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _g_object_ref0 (preview); -#line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp0_); -#line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = _tmp1_; -#line 3524 "ImportPage.c" - } else { - GdkPixbuf* _tmp2_; -#line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = resources_get_noninterpretable_badge_pixbuf (); -#line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp0_); -#line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = _tmp2_; -#line 3533 "ImportPage.c" - } -#line 148 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_source_set_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource), _tmp0_); -#line 147 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp0_); -#line 3539 "ImportPage.c" -} - - -static void -video_import_source_class_init (VideoImportSourceClass * klass) -{ -#line 111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - video_import_source_parent_class = g_type_class_peek_parent (klass); -#line 111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((ThumbnailSourceClass *) klass)->get_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) video_import_source_real_get_thumbnail; -#line 111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((ThumbnailSourceClass *) klass)->create_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) video_import_source_real_create_thumbnail; -#line 111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) video_import_source_real_get_typename; -#line 111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) video_import_source_real_get_instance_id; -#line 111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = (PhotoFileFormat (*) (ThumbnailSource *)) video_import_source_real_get_preferred_thumbnail_format; -#line 111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) video_import_source_real_get_name; -#line 3560 "ImportPage.c" -} - - -static void -video_import_source_instance_init (VideoImportSource * self) -{ -} - - -GType -video_import_source_get_type (void) -{ - static volatile gsize video_import_source_type_id__volatile = 0; - if (g_once_init_enter (&video_import_source_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (VideoImportSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_import_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoImportSource), 0, (GInstanceInitFunc) video_import_source_instance_init, NULL }; - GType video_import_source_type_id; - video_import_source_type_id = g_type_register_static (TYPE_IMPORT_SOURCE, "VideoImportSource", &g_define_type_info, 0); - g_once_init_leave (&video_import_source_type_id__volatile, video_import_source_type_id); - } - return video_import_source_type_id__volatile; -} - - -PhotoImportSource* -photo_import_source_construct (GType object_type, - const gchar* camera_name, - Camera* camera, - gint fsid, - const gchar* folder, - const gchar* filename, - gulong file_size, - time_t modification_time, - PhotoFileFormat file_format) -{ - PhotoImportSource * self = NULL; -#line 161 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (camera_name != NULL, NULL); -#line 161 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (camera != NULL, NULL); -#line 161 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (folder != NULL, NULL); -#line 161 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (filename != NULL, NULL); -#line 163 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = (PhotoImportSource*) import_source_construct (object_type, camera_name, camera, fsid, folder, filename, file_size, modification_time); -#line 164 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->file_format = file_format; -#line 161 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self; -#line 3610 "ImportPage.c" -} - - -PhotoImportSource* -photo_import_source_new (const gchar* camera_name, - Camera* camera, - gint fsid, - const gchar* folder, - const gchar* filename, - gulong file_size, - time_t modification_time, - PhotoFileFormat file_format) -{ -#line 161 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return photo_import_source_construct (TYPE_PHOTO_IMPORT_SOURCE, camera_name, camera, fsid, folder, filename, file_size, modification_time, file_format); -#line 3626 "ImportPage.c" -} - - -static gchar* -photo_import_source_real_get_name (DataObject* base) -{ - PhotoImportSource * self; - gchar* result = NULL; - gchar* title = NULL; - gchar* _tmp0_; - gchar* _tmp1_ = NULL; - const gchar* _tmp2_; -#line 167 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource); -#line 168 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = photo_import_source_get_title (self); -#line 168 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - title = _tmp0_; -#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = title; -#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!is_string_empty (_tmp2_)) { -#line 3649 "ImportPage.c" - const gchar* _tmp3_; - gchar* _tmp4_; -#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = title; -#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = g_strdup (_tmp3_); -#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp1_); -#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp4_; -#line 3660 "ImportPage.c" - } else { - gchar* _tmp5_; -#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); -#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp1_); -#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp5_; -#line 3669 "ImportPage.c" - } -#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (title); -#line 170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3677 "ImportPage.c" -} - - -static gchar* -photo_import_source_real_get_typename (DataSource* base) -{ - PhotoImportSource * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 173 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource); -#line 174 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = g_strdup ("photoimport"); -#line 174 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 174 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3695 "ImportPage.c" -} - - -static gint64 -photo_import_source_real_get_instance_id (DataSource* base) -{ - PhotoImportSource * self; - gint64 result = 0LL; -#line 177 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource); -#line 178 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = data_object_get_object_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 178 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3710 "ImportPage.c" -} - - -static PhotoFileFormat -photo_import_source_real_get_preferred_thumbnail_format (ThumbnailSource* base) -{ - PhotoImportSource * self; - PhotoFileFormat result = 0; - PhotoFileFormat _tmp0_ = 0; - PhotoFileFormat _tmp1_; -#line 181 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource); -#line 182 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->file_format; -#line 182 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (photo_file_format_can_write (_tmp1_)) { -#line 3727 "ImportPage.c" - PhotoFileFormat _tmp2_; -#line 182 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = self->priv->file_format; -#line 182 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = _tmp2_; -#line 3733 "ImportPage.c" - } else { -#line 183 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = photo_file_format_get_system_default_format (); -#line 3737 "ImportPage.c" - } -#line 182 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 182 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3743 "ImportPage.c" -} - - -static GdkPixbuf* -photo_import_source_real_create_thumbnail (ThumbnailSource* base, - gint scale, - GError** error) -{ - PhotoImportSource * self; - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - gboolean _tmp2_; - GdkPixbuf* _tmp3_ = NULL; -#line 186 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource); -#line 187 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); -#line 187 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp0_; -#line 187 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = _tmp1_ == NULL; -#line 187 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp1_); -#line 187 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp2_) { -#line 188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = NULL; -#line 188 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3774 "ImportPage.c" - } -#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (scale > 0) { -#line 3778 "ImportPage.c" - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; -#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); -#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = _tmp4_; -#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = scale_pixbuf (_tmp5_, scale, PHOTO_IMPORT_SOURCE_INTERP, TRUE); -#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp3_); -#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _tmp6_; -#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp5_); -#line 3794 "ImportPage.c" - } else { - GdkPixbuf* _tmp7_; -#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); -#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp3_); -#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _tmp7_; -#line 3803 "ImportPage.c" - } -#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp3_; -#line 192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3809 "ImportPage.c" -} - - -static gpointer -_media_metadata_ref0 (gpointer self) -{ -#line 199 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self ? media_metadata_ref (self) : NULL; -#line 3818 "ImportPage.c" -} - - -void -photo_import_source_update (PhotoImportSource* self, - GdkPixbuf* preview, - const gchar* preview_md5, - PhotoMetadata* metadata, - const gchar* exif_md5) -{ - gchar* _tmp0_; - PhotoMetadata* _tmp1_; - gchar* _tmp2_; -#line 196 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_PHOTO_IMPORT_SOURCE (self)); -#line 196 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail ((preview == NULL) || GDK_IS_PIXBUF (preview)); -#line 196 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail ((metadata == NULL) || IS_PHOTO_METADATA (metadata)); -#line 197 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_source_set_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource), preview); -#line 198 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = g_strdup (preview_md5); -#line 198 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->preview_md5); -#line 198 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->preview_md5 = _tmp0_; -#line 199 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _media_metadata_ref0 (metadata); -#line 199 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _media_metadata_unref0 (self->priv->metadata); -#line 199 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->metadata = _tmp1_; -#line 200 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = g_strdup (exif_md5); -#line 200 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->exif_md5); -#line 200 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->exif_md5 = _tmp2_; -#line 3858 "ImportPage.c" -} - - -static time_t -photo_import_source_real_get_exposure_time (ImportSource* base) -{ - PhotoImportSource * self; - time_t result = 0; - PhotoMetadata* _tmp0_; - MetadataDateTime* date_time = NULL; - PhotoMetadata* _tmp1_; - MetadataDateTime* _tmp2_; - time_t _tmp3_ = 0; - MetadataDateTime* _tmp4_; -#line 203 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource); -#line 204 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->metadata; -#line 204 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp0_ == NULL) { -#line 205 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = import_source_get_modification_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); -#line 205 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3883 "ImportPage.c" - } -#line 207 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->metadata; -#line 207 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = photo_metadata_get_exposure_date_time (_tmp1_); -#line 207 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - date_time = _tmp2_; -#line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = date_time; -#line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp4_ != NULL) { -#line 3895 "ImportPage.c" - MetadataDateTime* _tmp5_; -#line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = date_time; -#line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = metadata_date_time_get_timestamp (_tmp5_); -#line 3901 "ImportPage.c" - } else { -#line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = import_source_get_modification_time (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); -#line 3905 "ImportPage.c" - } -#line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp3_; -#line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _metadata_date_time_unref0 (date_time); -#line 209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3913 "ImportPage.c" -} - - -gchar* -photo_import_source_get_title (PhotoImportSource* self) -{ - gchar* result = NULL; - gchar* _tmp0_ = NULL; - PhotoMetadata* _tmp1_; -#line 212 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_PHOTO_IMPORT_SOURCE (self), NULL); -#line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->metadata; -#line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp1_ != NULL) { -#line 3929 "ImportPage.c" - PhotoMetadata* _tmp2_; - gchar* _tmp3_; -#line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = self->priv->metadata; -#line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_METADATA, MediaMetadata)); -#line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp0_); -#line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = _tmp3_; -#line 3940 "ImportPage.c" - } else { -#line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp0_); -#line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = NULL; -#line 3946 "ImportPage.c" - } -#line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3952 "ImportPage.c" -} - - -PhotoMetadata* -photo_import_source_get_metadata (PhotoImportSource* self) -{ - PhotoMetadata* result = NULL; - PhotoImportSource* _tmp0_; - PhotoMetadata* _tmp3_; - PhotoMetadata* _tmp4_; -#line 216 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_PHOTO_IMPORT_SOURCE (self), NULL); -#line 217 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->associated; -#line 217 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp0_ != NULL) { -#line 3969 "ImportPage.c" - PhotoImportSource* _tmp1_; - PhotoMetadata* _tmp2_; -#line 218 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->associated; -#line 218 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = photo_import_source_get_metadata (_tmp1_); -#line 218 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp2_; -#line 218 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3980 "ImportPage.c" - } -#line 220 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = self->priv->metadata; -#line 220 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = _media_metadata_ref0 (_tmp3_); -#line 220 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp4_; -#line 220 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 3990 "ImportPage.c" -} - - -static GdkPixbuf* -photo_import_source_real_get_preview (ImportSource* base) -{ - PhotoImportSource * self; - GdkPixbuf* result = NULL; - PhotoImportSource* _tmp0_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - gboolean _tmp5_; -#line 223 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource); -#line 224 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->associated; -#line 224 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp0_ != NULL) { -#line 4009 "ImportPage.c" - PhotoImportSource* _tmp1_; - GdkPixbuf* _tmp2_; -#line 225 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->associated; -#line 225 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 225 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp2_; -#line 225 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 4020 "ImportPage.c" - } -#line 227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = IMPORT_SOURCE_CLASS (photo_import_source_parent_class)->get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); -#line 227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = _tmp3_; -#line 227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = _tmp4_ != NULL; -#line 227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp4_); -#line 227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp5_) { -#line 4032 "ImportPage.c" - GdkPixbuf* _tmp6_; -#line 228 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = IMPORT_SOURCE_CLASS (photo_import_source_parent_class)->get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); -#line 228 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp6_; -#line 228 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 4040 "ImportPage.c" - } -#line 230 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = NULL; -#line 230 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 4046 "ImportPage.c" -} - - -static GdkPixbuf* -photo_import_source_real_get_thumbnail (ThumbnailSource* base, - gint scale, - GError** error) -{ - PhotoImportSource * self; - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - gboolean _tmp2_; - GdkPixbuf* _tmp3_ = NULL; -#line 233 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource); -#line 234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); -#line 234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp0_; -#line 234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = _tmp1_ == NULL; -#line 234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp1_); -#line 234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp2_) { -#line 235 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = NULL; -#line 235 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 4077 "ImportPage.c" - } -#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (scale > 0) { -#line 4081 "ImportPage.c" - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; -#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); -#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = _tmp4_; -#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = scale_pixbuf (_tmp5_, scale, PHOTO_IMPORT_SOURCE_INTERP, TRUE); -#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp3_); -#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _tmp6_; -#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp5_); -#line 4097 "ImportPage.c" - } else { - GdkPixbuf* _tmp7_; -#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = import_source_get_preview (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource)); -#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp3_); -#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _tmp7_; -#line 4106 "ImportPage.c" - } -#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp3_; -#line 237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 4112 "ImportPage.c" -} - - -PhotoFileFormat -photo_import_source_get_file_format (PhotoImportSource* self) -{ - PhotoFileFormat result = 0; - PhotoFileFormat _tmp0_; -#line 240 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_PHOTO_IMPORT_SOURCE (self), 0); -#line 241 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->file_format; -#line 241 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 241 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 4129 "ImportPage.c" -} - - -gchar* -photo_import_source_get_preview_md5 (PhotoImportSource* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 244 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_PHOTO_IMPORT_SOURCE (self), NULL); -#line 245 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->preview_md5; -#line 245 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 245 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 245 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 4149 "ImportPage.c" -} - - -void -photo_import_source_set_associated (PhotoImportSource* self, - PhotoImportSource* associated) -{ - PhotoImportSource* _tmp0_; -#line 248 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_PHOTO_IMPORT_SOURCE (self)); -#line 248 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail ((associated == NULL) || IS_PHOTO_IMPORT_SOURCE (associated)); -#line 249 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = _g_object_ref0 (associated); -#line 249 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->associated); -#line 249 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->associated = _tmp0_; -#line 4168 "ImportPage.c" -} - - -PhotoImportSource* -photo_import_source_get_associated (PhotoImportSource* self) -{ - PhotoImportSource* result = NULL; - PhotoImportSource* _tmp0_; - PhotoImportSource* _tmp1_; -#line 252 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_PHOTO_IMPORT_SOURCE (self), NULL); -#line 253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->associated; -#line 253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 4188 "ImportPage.c" -} - - -static gboolean -photo_import_source_real_internal_delete_backing (DataSource* base, - GError** error) -{ - PhotoImportSource * self; - gboolean result = FALSE; - gboolean ret = FALSE; - PhotoImportSource* _tmp1_; - GError * _inner_error_ = NULL; -#line 256 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource); -#line 257 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ret = DATA_SOURCE_CLASS (photo_import_source_parent_class)->internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_IMPORT_SOURCE, ImportSource), TYPE_DATA_SOURCE, DataSource), &_inner_error_); -#line 257 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4207 "ImportPage.c" - gboolean _tmp0_ = FALSE; -#line 257 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_propagate_error (error, _inner_error_); -#line 257 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return _tmp0_; -#line 4213 "ImportPage.c" - } -#line 258 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->associated; -#line 258 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp1_ != NULL) { -#line 4219 "ImportPage.c" - gboolean _tmp2_ = FALSE; - PhotoImportSource* _tmp3_; - gboolean _tmp5_; -#line 259 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = self->priv->associated; -#line 259 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = data_source_internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_SOURCE, DataSource), &_inner_error_); -#line 259 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4229 "ImportPage.c" - gboolean _tmp4_ = FALSE; -#line 259 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_propagate_error (error, _inner_error_); -#line 259 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return _tmp4_; -#line 4235 "ImportPage.c" - } -#line 259 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = ret; -#line 259 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ret = _tmp5_ & _tmp2_; -#line 4241 "ImportPage.c" - } -#line 260 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = ret; -#line 260 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 4247 "ImportPage.c" -} - - -static void -photo_import_source_class_init (PhotoImportSourceClass * klass) -{ -#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - photo_import_source_parent_class = g_type_class_peek_parent (klass); -#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_type_class_add_private (klass, sizeof (PhotoImportSourcePrivate)); -#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) photo_import_source_real_get_name; -#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) photo_import_source_real_get_typename; -#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) photo_import_source_real_get_instance_id; -#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = (PhotoFileFormat (*) (ThumbnailSource *)) photo_import_source_real_get_preferred_thumbnail_format; -#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((ThumbnailSourceClass *) klass)->create_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) photo_import_source_real_create_thumbnail; -#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((ImportSourceClass *) klass)->get_exposure_time = (time_t (*) (ImportSource *)) photo_import_source_real_get_exposure_time; -#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((ImportSourceClass *) klass)->get_preview = (GdkPixbuf* (*) (ImportSource *)) photo_import_source_real_get_preview; -#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((ThumbnailSourceClass *) klass)->get_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) photo_import_source_real_get_thumbnail; -#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((DataSourceClass *) klass)->internal_delete_backing = (gboolean (*) (DataSource *, GError**)) photo_import_source_real_internal_delete_backing; -#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - G_OBJECT_CLASS (klass)->finalize = photo_import_source_finalize; -#line 4278 "ImportPage.c" -} - - -static void -photo_import_source_instance_init (PhotoImportSource * self) -{ -#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv = PHOTO_IMPORT_SOURCE_GET_PRIVATE (self); -#line 156 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->preview_md5 = NULL; -#line 157 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->metadata = NULL; -#line 158 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->exif_md5 = NULL; -#line 159 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->associated = NULL; -#line 4295 "ImportPage.c" -} - - -static void -photo_import_source_finalize (GObject * obj) -{ - PhotoImportSource * self; -#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource); -#line 156 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->preview_md5); -#line 157 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _media_metadata_unref0 (self->priv->metadata); -#line 158 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->exif_md5); -#line 159 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->associated); -#line 152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - G_OBJECT_CLASS (photo_import_source_parent_class)->finalize (obj); -#line 4315 "ImportPage.c" -} - - -GType -photo_import_source_get_type (void) -{ - static volatile gsize photo_import_source_type_id__volatile = 0; - if (g_once_init_enter (&photo_import_source_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoImportSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_import_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoImportSource), 0, (GInstanceInitFunc) photo_import_source_instance_init, NULL }; - GType photo_import_source_type_id; - photo_import_source_type_id = g_type_register_static (TYPE_IMPORT_SOURCE, "PhotoImportSource", &g_define_type_info, 0); - g_once_init_leave (&photo_import_source_type_id__volatile, photo_import_source_type_id); - } - return photo_import_source_type_id__volatile; -} - - -ImportPreview* -import_preview_construct (GType object_type, - ImportSource* source) -{ - ImportPreview * self = NULL; - Dimensions _tmp0_ = {0}; - gchar* _tmp1_; - gchar* _tmp2_; - GdkPixbuf* pixbuf = NULL; - gboolean using_placeholder = FALSE; - GdkPixbuf* _tmp10_; - GdkPixbuf* _tmp11_; - gboolean _tmp18_ = FALSE; - GdkPixbuf* _tmp19_; - GdkPixbuf* _tmp40_; - GError * _inner_error_ = NULL; -#line 271 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_SOURCE (source), NULL); -#line 272 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - dimensions_init (&_tmp0_, 0, 0); -#line 272 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject)); -#line 272 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = _tmp1_; -#line 272 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = (ImportPreview*) media_source_item_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), &_tmp0_, _tmp2_, NULL, FALSE, PANGO_ALIGN_LEFT); -#line 272 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp2_); -#line 274 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->duplicated_file); -#line 274 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->duplicated_file = NULL; -#line 277 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_VIDEO_IMPORT_SOURCE)) { -#line 278 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - media_source_item_set_enable_sprockets (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem), TRUE); -#line 4369 "ImportPage.c" - } -#line 281 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - pixbuf = NULL; -#line 4373 "ImportPage.c" - { - GdkPixbuf* _tmp3_ = NULL; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; -#line 283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = thumbnail_source_get_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), 0, &_inner_error_); -#line 283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _tmp4_; -#line 283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4384 "ImportPage.c" - goto __catch72_g_error; - } -#line 283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = _tmp3_; -#line 283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = NULL; -#line 283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (pixbuf); -#line 283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - pixbuf = _tmp5_; -#line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp3_); -#line 4397 "ImportPage.c" - } - goto __finally72; - __catch72_g_error: - { - GError* err = NULL; - gchar* _tmp6_; - gchar* _tmp7_; - GError* _tmp8_; - const gchar* _tmp9_; -#line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - err = _inner_error_; -#line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _inner_error_ = NULL; -#line 285 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 285 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = _tmp6_; -#line 285 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = err; -#line 285 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = _tmp8_->message; -#line 285 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:285: Unable to fetch loaded import preview for %s: %s", _tmp7_, _tmp9_); -#line 285 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp7_); -#line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_error_free0 (err); -#line 4425 "ImportPage.c" - } - __finally72: -#line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (pixbuf); -#line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_clear_error (&_inner_error_); -#line 282 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return NULL; -#line 4438 "ImportPage.c" - } -#line 289 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = pixbuf; -#line 289 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - using_placeholder = _tmp10_ == NULL; -#line 290 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = pixbuf; -#line 290 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp11_ == NULL) { -#line 4448 "ImportPage.c" - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp16_; - GdkPixbuf* _tmp17_; -#line 291 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = import_preview_placeholder_preview; -#line 291 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp12_ == NULL) { -#line 4456 "ImportPage.c" - GdkPixbuf* _tmp13_; - GdkPixbuf* _tmp14_; - GdkPixbuf* _tmp15_; -#line 292 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = get_placeholder_pixbuf (); -#line 292 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (import_preview_placeholder_preview); -#line 292 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_preview_placeholder_preview = _tmp13_; -#line 293 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp14_ = import_preview_placeholder_preview; -#line 293 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp15_ = scale_pixbuf (_tmp14_, IMPORT_PREVIEW_MAX_SCALE, GDK_INTERP_BILINEAR, TRUE); -#line 293 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (import_preview_placeholder_preview); -#line 293 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_preview_placeholder_preview = _tmp15_; -#line 4474 "ImportPage.c" - } -#line 297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp16_ = import_preview_placeholder_preview; -#line 297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp17_ = _g_object_ref0 (_tmp16_); -#line 297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (pixbuf); -#line 297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - pixbuf = _tmp17_; -#line 4484 "ImportPage.c" - } -#line 301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp19_ = pixbuf; -#line 301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (gdk_pixbuf_get_width (_tmp19_) > IMPORT_PREVIEW_MAX_SCALE) { -#line 301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = TRUE; -#line 4492 "ImportPage.c" - } else { - GdkPixbuf* _tmp20_; -#line 301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp20_ = pixbuf; -#line 301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = gdk_pixbuf_get_height (_tmp20_) > IMPORT_PREVIEW_MAX_SCALE; -#line 4499 "ImportPage.c" - } -#line 301 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp18_) { -#line 4503 "ImportPage.c" - GdkPixbuf* _tmp21_; - GdkPixbuf* _tmp22_; -#line 302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp21_ = pixbuf; -#line 302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp22_ = scale_pixbuf (_tmp21_, IMPORT_PREVIEW_MAX_SCALE, PHOTO_IMPORT_SOURCE_INTERP, FALSE); -#line 302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (pixbuf); -#line 302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - pixbuf = _tmp22_; -#line 4514 "ImportPage.c" - } -#line 304 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO_IMPORT_SOURCE)) { -#line 4518 "ImportPage.c" - PhotoImportSource* photo_import_source = NULL; - PhotoImportSource* _tmp23_; - gboolean _tmp24_ = FALSE; - gboolean _tmp25_; - PhotoImportSource* _tmp34_; - PhotoImportSource* _tmp35_; - PhotoImportSource* _tmp36_; - gboolean _tmp37_; -#line 306 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) source) : NULL); -#line 306 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - photo_import_source = _tmp23_; -#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp25_ = using_placeholder; -#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!_tmp25_) { -#line 4535 "ImportPage.c" - PhotoImportSource* _tmp26_; - PhotoMetadata* _tmp27_; - PhotoMetadata* _tmp28_; -#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp26_ = photo_import_source; -#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp27_ = photo_import_source_get_metadata (_tmp26_); -#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp28_ = _tmp27_; -#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp24_ = _tmp28_ != NULL; -#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _media_metadata_unref0 (_tmp28_); -#line 4549 "ImportPage.c" - } else { -#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp24_ = FALSE; -#line 4553 "ImportPage.c" - } -#line 307 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp24_) { -#line 4557 "ImportPage.c" - PhotoImportSource* _tmp29_; - PhotoMetadata* _tmp30_; - PhotoMetadata* _tmp31_; - GdkPixbuf* _tmp32_; - GdkPixbuf* _tmp33_; -#line 308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp29_ = photo_import_source; -#line 308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp30_ = photo_import_source_get_metadata (_tmp29_); -#line 308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp31_ = _tmp30_; -#line 308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp32_ = pixbuf; -#line 308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp33_ = orientation_rotate_pixbuf (photo_metadata_get_orientation (_tmp31_), _tmp32_); -#line 308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (pixbuf); -#line 308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - pixbuf = _tmp33_; -#line 308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _media_metadata_unref0 (_tmp31_); -#line 4579 "ImportPage.c" - } -#line 310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp34_ = photo_import_source; -#line 310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp35_ = photo_import_source_get_associated (_tmp34_); -#line 310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp36_ = _tmp35_; -#line 310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp37_ = _tmp36_ != NULL; -#line 310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp36_); -#line 310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp37_) { -#line 4593 "ImportPage.c" - gchar* _tmp38_; - gchar* _tmp39_; -#line 311 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp38_ = g_strdup_printf ("%s", _ ("RAW+JPEG")); -#line 311 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp39_ = _tmp38_; -#line 311 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - checkerboard_item_set_subtitle (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp39_, TRUE, PANGO_ALIGN_LEFT); -#line 311 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp39_); -#line 4604 "ImportPage.c" - } -#line 304 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (photo_import_source); -#line 4608 "ImportPage.c" - } -#line 315 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp40_ = pixbuf; -#line 315 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - checkerboard_item_set_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp40_); -#line 271 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (pixbuf); -#line 271 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self; -#line 4618 "ImportPage.c" -} - - -ImportPreview* -import_preview_new (ImportSource* source) -{ -#line 271 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return import_preview_construct (TYPE_IMPORT_PREVIEW, source); -#line 4627 "ImportPage.c" -} - - -gboolean -import_preview_is_already_imported (ImportPreview* self) -{ - gboolean result = FALSE; - PhotoImportSource* photo_import_source = NULL; - ImportSource* _tmp0_; - PhotoImportSource* _tmp1_; - PhotoImportSource* _tmp2_; - VideoImportSource* video_import_source = NULL; - ImportSource* _tmp42_; - VideoImportSource* _tmp43_; - VideoImportSource* _tmp44_; -#line 318 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_PREVIEW (self), FALSE); -#line 319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = import_preview_get_import_source (self); -#line 319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp0_) : NULL; -#line 319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp1_ == NULL) { -#line 319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp0_); -#line 4653 "ImportPage.c" - } -#line 319 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - photo_import_source = _tmp1_; -#line 320 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = photo_import_source; -#line 320 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp2_ != NULL) { -#line 4661 "ImportPage.c" - gchar* preview_md5 = NULL; - PhotoImportSource* _tmp3_; - gchar* _tmp4_; - PhotoFileFormat file_format = 0; - PhotoImportSource* _tmp5_; - gboolean _tmp6_ = FALSE; - const gchar* _tmp7_; - PhotoFileFormat _tmp14_; -#line 321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = photo_import_source; -#line 321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = photo_import_source_get_preview_md5 (_tmp3_); -#line 321 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - preview_md5 = _tmp4_; -#line 322 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = photo_import_source; -#line 322 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - file_format = photo_import_source_get_file_format (_tmp5_); -#line 325 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = preview_md5; -#line 325 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!is_string_empty (_tmp7_)) { -#line 4684 "ImportPage.c" - const gchar* _tmp8_; - PhotoFileFormat _tmp9_; -#line 326 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = preview_md5; -#line 326 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = file_format; -#line 326 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = library_photo_has_nontrash_duplicate (NULL, _tmp8_, NULL, _tmp9_); -#line 4693 "ImportPage.c" - } else { -#line 325 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = FALSE; -#line 4697 "ImportPage.c" - } -#line 325 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp6_) { -#line 4701 "ImportPage.c" - const gchar* _tmp10_; - PhotoFileFormat _tmp11_; - PhotoID _tmp12_ = {0}; - DuplicatedFile* _tmp13_; -#line 328 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = preview_md5; -#line 328 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = file_format; -#line 328 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - library_photo_get_nontrash_duplicate (NULL, _tmp10_, NULL, _tmp11_, &_tmp12_); -#line 328 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = duplicated_file_create_from_photo_id (&_tmp12_); -#line 328 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->duplicated_file); -#line 328 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->duplicated_file = _tmp13_; -#line 331 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = TRUE; -#line 331 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (preview_md5); -#line 331 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (photo_import_source); -#line 331 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 4726 "ImportPage.c" - } -#line 337 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp14_ = file_format; -#line 337 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp14_ == PHOTO_FILE_FORMAT_RAW) { -#line 4732 "ImportPage.c" - guint64 filesize = 0ULL; - ImportSource* _tmp15_; - ImportSource* _tmp16_; - guint64 _tmp17_; - guint64 _tmp18_; -#line 338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp15_ = import_preview_get_import_source (self); -#line 338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp16_ = _tmp15_; -#line 338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp17_ = (guint64) import_source_get_filesize (_tmp16_); -#line 338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp16_); -#line 338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - filesize = _tmp17_; -#line 340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = filesize; -#line 340 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp18_ <= ((guint64) G_MAXINT64)) { -#line 4752 "ImportPage.c" - PhotoID duplicated_photo_id = {0}; - LibraryPhotoSourceCollection* _tmp19_; - ImportSource* _tmp20_; - ImportSource* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - guint64 _tmp24_; - PhotoID _tmp25_ = {0}; - PhotoID _tmp26_; -#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp19_ = library_photo_global; -#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp20_ = import_preview_get_import_source (self); -#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp21_ = _tmp20_; -#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp22_ = import_source_get_filename (_tmp21_); -#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp23_ = _tmp22_; -#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp24_ = filesize; -#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - library_photo_source_collection_get_basename_filesize_duplicate (_tmp19_, _tmp23_, (gint64) _tmp24_, &_tmp25_); -#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp26_ = _tmp25_; -#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp23_); -#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp21_); -#line 341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - duplicated_photo_id = _tmp26_; -#line 344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (photo_id_is_valid (&duplicated_photo_id)) { -#line 4786 "ImportPage.c" - LibraryPhoto* duplicated_photo = NULL; - LibraryPhotoSourceCollection* _tmp27_; - PhotoID _tmp28_; - LibraryPhoto* _tmp29_; - time_t photo_exposure_time = 0; - PhotoImportSource* _tmp30_; - time_t duplicated_photo_exposure_time = 0; - LibraryPhoto* _tmp31_; - time_t _tmp32_; - time_t _tmp33_; -#line 346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp27_ = library_photo_global; -#line 346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp28_ = duplicated_photo_id; -#line 346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp29_ = library_photo_source_collection_fetch (_tmp27_, &_tmp28_); -#line 346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - duplicated_photo = _tmp29_; -#line 347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp30_ = photo_import_source; -#line 347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - photo_exposure_time = import_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp31_ = duplicated_photo; -#line 348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - duplicated_photo_exposure_time = media_source_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 350 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp32_ = photo_exposure_time; -#line 350 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp33_ = duplicated_photo_exposure_time; -#line 350 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp32_ == _tmp33_) { -#line 4819 "ImportPage.c" - LibraryPhotoSourceCollection* _tmp34_; - ImportSource* _tmp35_; - ImportSource* _tmp36_; - gchar* _tmp37_; - gchar* _tmp38_; - guint64 _tmp39_; - PhotoID _tmp40_ = {0}; - DuplicatedFile* _tmp41_; -#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp34_ = library_photo_global; -#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp35_ = import_preview_get_import_source (self); -#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp36_ = _tmp35_; -#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp37_ = import_source_get_filename (_tmp36_); -#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp38_ = _tmp37_; -#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp39_ = filesize; -#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - library_photo_source_collection_get_basename_filesize_duplicate (_tmp34_, _tmp38_, (gint64) _tmp39_, &_tmp40_); -#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp41_ = duplicated_file_create_from_photo_id (&_tmp40_); -#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->duplicated_file); -#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->duplicated_file = _tmp41_; -#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp38_); -#line 351 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp36_); -#line 355 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = TRUE; -#line 355 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (duplicated_photo); -#line 355 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (preview_md5); -#line 355 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (photo_import_source); -#line 355 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 4862 "ImportPage.c" - } -#line 344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (duplicated_photo); -#line 4866 "ImportPage.c" - } - } - } -#line 361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (preview_md5); -#line 361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (photo_import_source); -#line 361 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 4878 "ImportPage.c" - } -#line 364 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp42_ = import_preview_get_import_source (self); -#line 364 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp43_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp42_, TYPE_VIDEO_IMPORT_SOURCE) ? ((VideoImportSource*) _tmp42_) : NULL; -#line 364 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp43_ == NULL) { -#line 364 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp42_); -#line 4888 "ImportPage.c" - } -#line 364 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - video_import_source = _tmp43_; -#line 365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp44_ = video_import_source; -#line 365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp44_ != NULL) { -#line 4896 "ImportPage.c" - VideoSourceCollection* _tmp45_; - VideoImportSource* _tmp46_; - gchar* _tmp47_; - gchar* _tmp48_; - VideoImportSource* _tmp49_; - gboolean _tmp50_; -#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp45_ = video_global; -#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp46_ = video_import_source; -#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp47_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp48_ = _tmp47_; -#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp49_ = video_import_source; -#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp50_ = video_source_collection_has_basename_filesize_duplicate (_tmp45_, _tmp48_, (guint64) import_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, TYPE_IMPORT_SOURCE, ImportSource))); -#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp48_); -#line 370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp50_) { -#line 4919 "ImportPage.c" - VideoSourceCollection* _tmp51_; - VideoImportSource* _tmp52_; - gchar* _tmp53_; - gchar* _tmp54_; - VideoImportSource* _tmp55_; - VideoID _tmp56_ = {0}; - DuplicatedFile* _tmp57_; -#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp51_ = video_global; -#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp52_ = video_import_source; -#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp53_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp54_ = _tmp53_; -#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp55_ = video_import_source; -#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - video_source_collection_get_basename_filesize_duplicate (_tmp51_, _tmp54_, (guint64) import_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_IMPORT_SOURCE, ImportSource)), &_tmp56_); -#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp57_ = duplicated_file_create_from_video_id (&_tmp56_); -#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->duplicated_file); -#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->duplicated_file = _tmp57_; -#line 373 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp54_); -#line 378 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = TRUE; -#line 378 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (video_import_source); -#line 378 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (photo_import_source); -#line 378 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 4955 "ImportPage.c" - } -#line 381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (video_import_source); -#line 381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (photo_import_source); -#line 381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 4965 "ImportPage.c" - } -#line 384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (video_import_source); -#line 384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (photo_import_source); -#line 384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 4975 "ImportPage.c" -} - - -DuplicatedFile* -import_preview_get_duplicated_file (ImportPreview* self) -{ - DuplicatedFile* result = NULL; - DuplicatedFile* _tmp0_; - DuplicatedFile* _tmp1_; -#line 387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_PREVIEW (self), NULL); -#line 388 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!import_preview_is_already_imported (self)) { -#line 389 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = NULL; -#line 389 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 4993 "ImportPage.c" - } -#line 391 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->duplicated_file; -#line 391 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 391 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 391 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 5003 "ImportPage.c" -} - - -ImportSource* -import_preview_get_import_source (ImportPreview* self) -{ - ImportSource* result = NULL; - DataSource* _tmp0_; -#line 394 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_PREVIEW (self), NULL); -#line 395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_IMPORT_SOURCE, ImportSource); -#line 395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 5020 "ImportPage.c" -} - - -static void -import_preview_class_init (ImportPreviewClass * klass) -{ -#line 264 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_preview_parent_class = g_type_class_peek_parent (klass); -#line 264 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_type_class_add_private (klass, sizeof (ImportPreviewPrivate)); -#line 264 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - G_OBJECT_CLASS (klass)->finalize = import_preview_finalize; -#line 5033 "ImportPage.c" -} - - -static void -import_preview_instance_init (ImportPreview * self) -{ -#line 264 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv = IMPORT_PREVIEW_GET_PRIVATE (self); -#line 5042 "ImportPage.c" -} - - -static void -import_preview_finalize (GObject * obj) -{ - ImportPreview * self; -#line 264 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_IMPORT_PREVIEW, ImportPreview); -#line 269 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->duplicated_file); -#line 264 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - G_OBJECT_CLASS (import_preview_parent_class)->finalize (obj); -#line 5056 "ImportPage.c" -} - - -GType -import_preview_get_type (void) -{ - static volatile gsize import_preview_type_id__volatile = 0; - if (g_once_init_enter (&import_preview_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ImportPreviewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_preview_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportPreview), 0, (GInstanceInitFunc) import_preview_instance_init, NULL }; - GType import_preview_type_id; - import_preview_type_id = g_type_register_static (TYPE_MEDIA_SOURCE_ITEM, "ImportPreview", &g_define_type_info, 0); - g_once_init_leave (&import_preview_type_id__volatile, import_preview_type_id); - } - return import_preview_type_id__volatile; -} - - -CameraViewTracker* -camera_view_tracker_construct (GType object_type, - ViewCollection* collection) -{ - CameraViewTracker* self = NULL; - CameraAccumulator* _tmp0_; - CameraAccumulator* _tmp1_; - CameraAccumulator* _tmp2_; -#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (collection), NULL); -#line 405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = (CameraViewTracker*) core_view_tracker_construct (object_type, collection); -#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->all; -#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->visible; -#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = self->selected; -#line 407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - core_view_tracker_start (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_VIEW_TRACKER, CoreViewTracker), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator)); -#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self; -#line 5096 "ImportPage.c" -} - - -CameraViewTracker* -camera_view_tracker_new (ViewCollection* collection) -{ -#line 404 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return camera_view_tracker_construct (TYPE_CAMERA_VIEW_TRACKER, collection); -#line 5105 "ImportPage.c" -} - - -static void -camera_view_tracker_class_init (CameraViewTrackerClass * klass) -{ -#line 399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - camera_view_tracker_parent_class = g_type_class_peek_parent (klass); -#line 399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((CoreTrackerClass *) klass)->finalize = camera_view_tracker_finalize; -#line 5116 "ImportPage.c" -} - - -static void -camera_view_tracker_instance_init (CameraViewTracker * self) -{ - CameraAccumulator* _tmp0_; - CameraAccumulator* _tmp1_; - CameraAccumulator* _tmp2_; -#line 400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = camera_accumulator_new (); -#line 400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->all = _tmp0_; -#line 401 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = camera_accumulator_new (); -#line 401 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->visible = _tmp1_; -#line 402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = camera_accumulator_new (); -#line 402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->selected = _tmp2_; -#line 5138 "ImportPage.c" -} - - -static void -camera_view_tracker_finalize (CoreTracker * obj) -{ - CameraViewTracker * self; -#line 399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CAMERA_VIEW_TRACKER, CameraViewTracker); -#line 400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->all); -#line 401 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->visible); -#line 402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->selected); -#line 399 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - CORE_TRACKER_CLASS (camera_view_tracker_parent_class)->finalize (obj); -#line 5156 "ImportPage.c" -} - - -GType -camera_view_tracker_get_type (void) -{ - static volatile gsize camera_view_tracker_type_id__volatile = 0; - if (g_once_init_enter (&camera_view_tracker_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CameraViewTrackerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) camera_view_tracker_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CameraViewTracker), 0, (GInstanceInitFunc) camera_view_tracker_instance_init, NULL }; - GType camera_view_tracker_type_id; - camera_view_tracker_type_id = g_type_register_static (CORE_TYPE_VIEW_TRACKER, "CameraViewTracker", &g_define_type_info, 0); - g_once_init_leave (&camera_view_tracker_type_id__volatile, camera_view_tracker_type_id); - } - return camera_view_tracker_type_id__volatile; -} - - -static gboolean -camera_accumulator_real_include (CoreTrackerAccumulator* base, - DataObject* object) -{ - CameraAccumulator * self; - gboolean result = FALSE; - ImportSource* source = NULL; - DataSource* _tmp0_; - gint _tmp1_; - PhotoImportSource* photo = NULL; - ImportSource* _tmp2_; - PhotoImportSource* _tmp3_; - gboolean _tmp4_ = FALSE; - PhotoImportSource* _tmp5_; -#line 417 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CAMERA_ACCUMULATOR, CameraAccumulator); -#line 417 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView)); -#line 418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - source = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_IMPORT_SOURCE, ImportSource); -#line 420 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->_total; -#line 420 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - camera_accumulator_set_total (self, _tmp1_ + 1); -#line 422 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = source; -#line 422 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp2_) : NULL); -#line 422 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - photo = _tmp3_; -#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = photo; -#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp5_ != NULL) { -#line 5210 "ImportPage.c" - PhotoImportSource* _tmp6_; -#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = photo; -#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = photo_import_source_get_file_format (_tmp6_) != PHOTO_FILE_FORMAT_RAW; -#line 5216 "ImportPage.c" - } else { -#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = FALSE; -#line 5220 "ImportPage.c" - } -#line 423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp4_) { -#line 5224 "ImportPage.c" - gint _tmp7_; -#line 424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = self->priv->_photos; -#line 424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - camera_accumulator_set_photos (self, _tmp7_ + 1); -#line 5230 "ImportPage.c" - } else { - gboolean _tmp8_ = FALSE; - PhotoImportSource* _tmp9_; -#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = photo; -#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp9_ != NULL) { -#line 5238 "ImportPage.c" - PhotoImportSource* _tmp10_; -#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = photo; -#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = photo_import_source_get_file_format (_tmp10_) == PHOTO_FILE_FORMAT_RAW; -#line 5244 "ImportPage.c" - } else { -#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = FALSE; -#line 5248 "ImportPage.c" - } -#line 425 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp8_) { -#line 5252 "ImportPage.c" - gint _tmp11_; -#line 426 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = self->priv->_raw; -#line 426 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - camera_accumulator_set_raw (self, _tmp11_ + 1); -#line 5258 "ImportPage.c" - } else { - ImportSource* _tmp12_; -#line 427 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = source; -#line 427 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, TYPE_VIDEO_IMPORT_SOURCE)) { -#line 5265 "ImportPage.c" - gint _tmp13_; -#line 428 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = self->priv->_videos; -#line 428 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - camera_accumulator_set_videos (self, _tmp13_ + 1); -#line 5271 "ImportPage.c" - } - } - } -#line 431 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = TRUE; -#line 431 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (photo); -#line 431 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (source); -#line 431 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 5283 "ImportPage.c" -} - - -static gboolean -camera_accumulator_real_uninclude (CoreTrackerAccumulator* base, - DataObject* object) -{ - CameraAccumulator * self; - gboolean result = FALSE; - ImportSource* source = NULL; - DataSource* _tmp0_; - gint _tmp1_; - PhotoImportSource* photo = NULL; - ImportSource* _tmp2_; - PhotoImportSource* _tmp3_; - gboolean _tmp4_ = FALSE; - PhotoImportSource* _tmp5_; -#line 434 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CAMERA_ACCUMULATOR, CameraAccumulator); -#line 434 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView)); -#line 435 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - source = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_IMPORT_SOURCE, ImportSource); -#line 437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->_total; -#line 437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - camera_accumulator_set_total (self, _tmp1_ + 1); -#line 439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = source; -#line 439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp2_) : NULL); -#line 439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - photo = _tmp3_; -#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = photo; -#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp5_ != NULL) { -#line 5323 "ImportPage.c" - PhotoImportSource* _tmp6_; -#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = photo; -#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = photo_import_source_get_file_format (_tmp6_) != PHOTO_FILE_FORMAT_RAW; -#line 5329 "ImportPage.c" - } else { -#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = FALSE; -#line 5333 "ImportPage.c" - } -#line 440 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp4_) { -#line 5337 "ImportPage.c" - gint _tmp7_; - gint _tmp8_; -#line 441 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = self->priv->_photos; -#line 441 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _vala_assert (_tmp7_ > 0, "photos > 0"); -#line 442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = self->priv->_photos; -#line 442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - camera_accumulator_set_photos (self, _tmp8_ - 1); -#line 5348 "ImportPage.c" - } else { - gboolean _tmp9_ = FALSE; - PhotoImportSource* _tmp10_; -#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = photo; -#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp10_ != NULL) { -#line 5356 "ImportPage.c" - PhotoImportSource* _tmp11_; -#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = photo; -#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = photo_import_source_get_file_format (_tmp11_) == PHOTO_FILE_FORMAT_RAW; -#line 5362 "ImportPage.c" - } else { -#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = FALSE; -#line 5366 "ImportPage.c" - } -#line 443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp9_) { -#line 5370 "ImportPage.c" - gint _tmp12_; - gint _tmp13_; -#line 444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = self->priv->_raw; -#line 444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _vala_assert (_tmp12_ > 0, "raw > 0"); -#line 445 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = self->priv->_raw; -#line 445 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - camera_accumulator_set_raw (self, _tmp13_ - 1); -#line 5381 "ImportPage.c" - } else { - ImportSource* _tmp14_; -#line 446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp14_ = source; -#line 446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, TYPE_VIDEO_IMPORT_SOURCE)) { -#line 5388 "ImportPage.c" - gint _tmp15_; - gint _tmp16_; -#line 447 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp15_ = self->priv->_videos; -#line 447 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _vala_assert (_tmp15_ > 0, "videos > 0"); -#line 448 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp16_ = self->priv->_videos; -#line 448 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - camera_accumulator_set_videos (self, _tmp16_ - 1); -#line 5399 "ImportPage.c" - } - } - } -#line 452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = TRUE; -#line 452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (photo); -#line 452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (source); -#line 452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 5411 "ImportPage.c" -} - - -static gboolean -camera_accumulator_real_altered (CoreTrackerAccumulator* base, - DataObject* object, - Alteration* alteration) -{ - CameraAccumulator * self; - gboolean result = FALSE; -#line 455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CAMERA_ACCUMULATOR, CameraAccumulator); -#line 455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 455 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_ALTERATION (alteration), FALSE); -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 457 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 5432 "ImportPage.c" -} - - -gchar* -camera_accumulator_to_string (CameraAccumulator* self) -{ - gchar* result = NULL; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - gchar* _tmp4_; -#line 460 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_CAMERA_ACCUMULATOR (self), NULL); -#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->_total; -#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->_photos; -#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = self->priv->_videos; -#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = self->priv->_raw; -#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = g_strdup_printf ("%d total/%d photos/%d videos/%d raw", _tmp0_, _tmp1_, _tmp2_, _tmp3_); -#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp4_; -#line 461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 5461 "ImportPage.c" -} - - -CameraAccumulator* -camera_accumulator_construct (GType object_type) -{ - CameraAccumulator * self = NULL; -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = (CameraAccumulator*) g_object_new (object_type, NULL); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self; -#line 5473 "ImportPage.c" -} - - -CameraAccumulator* -camera_accumulator_new (void) -{ -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return camera_accumulator_construct (TYPE_CAMERA_ACCUMULATOR); -#line 5482 "ImportPage.c" -} - - -gint -camera_accumulator_get_total (CameraAccumulator* self) -{ - gint result; - gint _tmp0_; -#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_CAMERA_ACCUMULATOR (self), 0); -#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->_total; -#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 5499 "ImportPage.c" -} - - -static void -camera_accumulator_set_total (CameraAccumulator* self, - gint value) -{ -#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_CAMERA_ACCUMULATOR (self)); -#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (camera_accumulator_get_total (self) != value) { -#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->_total = value; -#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_notify_by_pspec ((GObject *) self, camera_accumulator_properties[CAMERA_ACCUMULATOR_TOTAL_PROPERTY]); -#line 5515 "ImportPage.c" - } -} - - -gint -camera_accumulator_get_photos (CameraAccumulator* self) -{ - gint result; - gint _tmp0_; -#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_CAMERA_ACCUMULATOR (self), 0); -#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->_photos; -#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 5533 "ImportPage.c" -} - - -static void -camera_accumulator_set_photos (CameraAccumulator* self, - gint value) -{ -#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_CAMERA_ACCUMULATOR (self)); -#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (camera_accumulator_get_photos (self) != value) { -#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->_photos = value; -#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_notify_by_pspec ((GObject *) self, camera_accumulator_properties[CAMERA_ACCUMULATOR_PHOTOS_PROPERTY]); -#line 5549 "ImportPage.c" - } -} - - -gint -camera_accumulator_get_videos (CameraAccumulator* self) -{ - gint result; - gint _tmp0_; -#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_CAMERA_ACCUMULATOR (self), 0); -#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->_videos; -#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 5567 "ImportPage.c" -} - - -static void -camera_accumulator_set_videos (CameraAccumulator* self, - gint value) -{ -#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_CAMERA_ACCUMULATOR (self)); -#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (camera_accumulator_get_videos (self) != value) { -#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->_videos = value; -#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_notify_by_pspec ((GObject *) self, camera_accumulator_properties[CAMERA_ACCUMULATOR_VIDEOS_PROPERTY]); -#line 5583 "ImportPage.c" - } -} - - -gint -camera_accumulator_get_raw (CameraAccumulator* self) -{ - gint result; - gint _tmp0_; -#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_CAMERA_ACCUMULATOR (self), 0); -#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->_raw; -#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 5601 "ImportPage.c" -} - - -static void -camera_accumulator_set_raw (CameraAccumulator* self, - gint value) -{ -#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_CAMERA_ACCUMULATOR (self)); -#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (camera_accumulator_get_raw (self) != value) { -#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->_raw = value; -#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_notify_by_pspec ((GObject *) self, camera_accumulator_properties[CAMERA_ACCUMULATOR_RAW_PROPERTY]); -#line 5617 "ImportPage.c" - } -} - - -static void -camera_accumulator_class_init (CameraAccumulatorClass * klass) -{ -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - camera_accumulator_parent_class = g_type_class_peek_parent (klass); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_type_class_add_private (klass, sizeof (CameraAccumulatorPrivate)); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_camera_accumulator_get_property; -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_camera_accumulator_set_property; -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - G_OBJECT_CLASS (klass)->finalize = camera_accumulator_finalize; -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), CAMERA_ACCUMULATOR_TOTAL_PROPERTY, camera_accumulator_properties[CAMERA_ACCUMULATOR_TOTAL_PROPERTY] = g_param_spec_int ("total", "total", "total", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), CAMERA_ACCUMULATOR_PHOTOS_PROPERTY, camera_accumulator_properties[CAMERA_ACCUMULATOR_PHOTOS_PROPERTY] = g_param_spec_int ("photos", "photos", "photos", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), CAMERA_ACCUMULATOR_VIDEOS_PROPERTY, camera_accumulator_properties[CAMERA_ACCUMULATOR_VIDEOS_PROPERTY] = g_param_spec_int ("videos", "videos", "videos", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), CAMERA_ACCUMULATOR_RAW_PROPERTY, camera_accumulator_properties[CAMERA_ACCUMULATOR_RAW_PROPERTY] = g_param_spec_int ("raw", "raw", "raw", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 5643 "ImportPage.c" -} - - -static void -camera_accumulator_core_tracker_accumulator_interface_init (CoreTrackerAccumulatorIface * iface) -{ -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - camera_accumulator_core_tracker_accumulator_parent_iface = g_type_interface_peek_parent (iface); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - iface->include = (gboolean (*) (CoreTrackerAccumulator *, DataObject*)) camera_accumulator_real_include; -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - iface->uninclude = (gboolean (*) (CoreTrackerAccumulator *, DataObject*)) camera_accumulator_real_uninclude; -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - iface->altered = (gboolean (*) (CoreTrackerAccumulator *, DataObject*, Alteration*)) camera_accumulator_real_altered; -#line 5658 "ImportPage.c" -} - - -static void -camera_accumulator_instance_init (CameraAccumulator * self) -{ -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv = CAMERA_ACCUMULATOR_GET_PRIVATE (self); -#line 412 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->_total = 0; -#line 413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->_photos = 0; -#line 414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->_videos = 0; -#line 415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->_raw = 0; -#line 5675 "ImportPage.c" -} - - -static void -camera_accumulator_finalize (GObject * obj) -{ - CameraAccumulator * self; -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CAMERA_ACCUMULATOR, CameraAccumulator); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - G_OBJECT_CLASS (camera_accumulator_parent_class)->finalize (obj); -#line 5687 "ImportPage.c" -} - - -GType -camera_accumulator_get_type (void) -{ - static volatile gsize camera_accumulator_type_id__volatile = 0; - if (g_once_init_enter (&camera_accumulator_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CameraAccumulatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) camera_accumulator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CameraAccumulator), 0, (GInstanceInitFunc) camera_accumulator_instance_init, NULL }; - static const GInterfaceInfo core_tracker_accumulator_info = { (GInterfaceInitFunc) camera_accumulator_core_tracker_accumulator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType camera_accumulator_type_id; - camera_accumulator_type_id = g_type_register_static (G_TYPE_OBJECT, "CameraAccumulator", &g_define_type_info, 0); - g_type_add_interface_static (camera_accumulator_type_id, CORE_TYPE_TRACKER_ACCUMULATOR, &core_tracker_accumulator_info); - g_once_init_leave (&camera_accumulator_type_id__volatile, camera_accumulator_type_id); - } - return camera_accumulator_type_id__volatile; -} - - -static void -_vala_camera_accumulator_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - CameraAccumulator * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_CAMERA_ACCUMULATOR, CameraAccumulator); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - switch (property_id) { -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - case CAMERA_ACCUMULATOR_TOTAL_PROPERTY: -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_value_set_int (value, camera_accumulator_get_total (self)); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - case CAMERA_ACCUMULATOR_PHOTOS_PROPERTY: -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_value_set_int (value, camera_accumulator_get_photos (self)); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - case CAMERA_ACCUMULATOR_VIDEOS_PROPERTY: -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_value_set_int (value, camera_accumulator_get_videos (self)); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - case CAMERA_ACCUMULATOR_RAW_PROPERTY: -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_value_set_int (value, camera_accumulator_get_raw (self)); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 5741 "ImportPage.c" - default: -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 5747 "ImportPage.c" - } -} - - -static void -_vala_camera_accumulator_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - CameraAccumulator * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_CAMERA_ACCUMULATOR, CameraAccumulator); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - switch (property_id) { -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - case CAMERA_ACCUMULATOR_TOTAL_PROPERTY: -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - camera_accumulator_set_total (self, g_value_get_int (value)); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - case CAMERA_ACCUMULATOR_PHOTOS_PROPERTY: -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - camera_accumulator_set_photos (self, g_value_get_int (value)); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - case CAMERA_ACCUMULATOR_VIDEOS_PROPERTY: -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - camera_accumulator_set_videos (self, g_value_get_int (value)); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - case CAMERA_ACCUMULATOR_RAW_PROPERTY: -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - camera_accumulator_set_raw (self, g_value_get_int (value)); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 5786 "ImportPage.c" - default: -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 5792 "ImportPage.c" - } -} - - -static void -_import_page_on_media_added_removed_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self) -{ -#line 767 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_on_media_added_removed ((ImportPage*) self); -#line 5805 "ImportPage.c" -} - - -GType -import_page_refresh_result_get_type (void) -{ - static volatile gsize import_page_refresh_result_type_id__volatile = 0; - if (g_once_init_enter (&import_page_refresh_result_type_id__volatile)) { - static const GEnumValue values[] = {{IMPORT_PAGE_REFRESH_RESULT_OK, "IMPORT_PAGE_REFRESH_RESULT_OK", "ok"}, {IMPORT_PAGE_REFRESH_RESULT_BUSY, "IMPORT_PAGE_REFRESH_RESULT_BUSY", "busy"}, {IMPORT_PAGE_REFRESH_RESULT_LOCKED, "IMPORT_PAGE_REFRESH_RESULT_LOCKED", "locked"}, {IMPORT_PAGE_REFRESH_RESULT_LIBRARY_ERROR, "IMPORT_PAGE_REFRESH_RESULT_LIBRARY_ERROR", "library-error"}, {0, NULL, NULL}}; - GType import_page_refresh_result_type_id; - import_page_refresh_result_type_id = g_enum_register_static ("ImportPageRefreshResult", values); - g_once_init_leave (&import_page_refresh_result_type_id__volatile, import_page_refresh_result_type_id); - } - return import_page_refresh_result_type_id__volatile; -} - - -static void -_import_page_on_import_selected_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 876 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_on_import_selected ((ImportPage*) self); -#line 5830 "ImportPage.c" -} - - -static void -_import_page_on_import_all_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 876 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_on_import_all ((ImportPage*) self); -#line 5841 "ImportPage.c" -} - - -static void -_page_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 876 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - page_on_action_toggle ((Page*) self, action, parameter); -#line 5852 "ImportPage.c" -} - - -static void -_import_page_on_display_titles_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 876 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_on_display_titles ((ImportPage*) self, action, value); -#line 5863 "ImportPage.c" -} - - -static gint64 -_import_page_preview_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = import_page_preview_comparator (a, b); -#line 748 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 5876 "ImportPage.c" -} - - -static gboolean -_import_page_preview_comparator_predicate_comparator_predicate (DataObject* object, - Alteration* alteration, - gpointer self) -{ - gboolean result; - result = import_page_preview_comparator_predicate (object, alteration); -#line 748 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 5889 "ImportPage.c" -} - - -static void -_import_page_on_view_changed_view_collection_items_state_changed (ViewCollection* _sender, - GeeIterable* changed, - gpointer self) -{ -#line 751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_on_view_changed ((ImportPage*) self); -#line 5900 "ImportPage.c" -} - - -static void -_import_page_on_view_changed_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self) -{ -#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_on_view_changed ((ImportPage*) self); -#line 5912 "ImportPage.c" -} - - -static void -_import_page_on_view_changed_view_collection_items_visibility_changed (ViewCollection* _sender, - GeeCollection* changed, - gpointer self) -{ -#line 753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_on_view_changed ((ImportPage*) self); -#line 5923 "ImportPage.c" -} - - -ImportPage* -import_page_construct (GType object_type, - Camera* camera, - const gchar* uri, - const gchar* display_name, - const gchar* icon) -{ - ImportPage * self = NULL; - Camera* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - ImportSourceCollection* _tmp4_; - gchar* _tmp5_; - ViewCollection* _tmp6_; - ViewCollection* _tmp7_; - CameraViewTracker* _tmp8_; - GtkLabel* _tmp17_; - const gchar* _tmp18_; - const gchar* _tmp19_; - GVolumeMonitor* _tmp20_; - GPContextWrapper* _tmp21_; - GPSpinIdleWrapper* _tmp23_; - ViewCollection* _tmp25_; - ViewCollection* _tmp26_; - SourceCollection* _tmp27_; - ImportPageImportViewManager* _tmp28_; - ImportPageImportViewManager* _tmp29_; - ViewCollectionMonitor* _tmp30_; - ViewCollectionMonitor* _tmp31_; - ViewCollection* _tmp32_; - ViewCollection* _tmp33_; - ViewCollection* _tmp34_; - ViewCollection* _tmp35_; - ViewCollection* _tmp36_; - ViewCollection* _tmp37_; - ViewCollection* _tmp38_; - ViewCollection* _tmp39_; - ViewCollection* _tmp40_; - ViewCollection* _tmp41_; - GValue _tmp42_ = {0}; - LibraryPhotoSourceCollection* _tmp43_; - VideoSourceCollection* _tmp44_; -#line 710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (camera != NULL, NULL); -#line 710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (uri != NULL, NULL); -#line 711 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = (ImportPage*) checkerboard_page_construct (object_type, _ ("Camera")); -#line 712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = _GPHOTO_REF_CAMERA0 (camera); -#line 712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_camera_unref0 (self->priv->camera); -#line 712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->camera = _tmp0_; -#line 713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = g_strdup (uri); -#line 713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->uri); -#line 713 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->uri = _tmp1_; -#line 714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = g_strdup_printf ("ImportSources for %s", uri); -#line 714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _tmp2_; -#line 714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = import_source_collection_new (_tmp3_); -#line 714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _data_collection_unref0 (self->priv->import_sources); -#line 714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->import_sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SOURCE_COLLECTION, SourceCollection); -#line 714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp3_); -#line 715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = g_strdup (icon); -#line 715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->icon); -#line 715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->icon = _tmp5_; -#line 717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = _tmp6_; -#line 717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = camera_view_tracker_new (_tmp7_); -#line 717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _core_tracker_unref0 (self->priv->tracker); -#line 717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->tracker = _tmp8_; -#line 717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _data_collection_unref0 (_tmp7_); -#line 720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (NULL != display_name) { -#line 6020 "ImportPage.c" - gchar* _tmp9_; -#line 721 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = g_strdup (display_name); -#line 721 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->camera_name); -#line 721 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->camera_name = _tmp9_; -#line 6028 "ImportPage.c" - } else { - CameraAbilities abilities = {0}; - int res = 0; - CameraAbilities _tmp10_ = {0}; - int _tmp11_; - int _tmp12_; -#line 724 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = gp_camera_get_abilities (camera, &_tmp10_); -#line 724 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - (abilities); -#line 724 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - abilities = _tmp10_; -#line 724 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - res = _tmp11_; -#line 725 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = res; -#line 725 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp12_ != GP_OK) { -#line 6047 "ImportPage.c" - int _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; -#line 726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = res; -#line 726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp14_ = gp_result_to_full_string (_tmp13_); -#line 726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp15_ = _tmp14_; -#line 726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:726: Unable to get camera abilities: %s", _tmp15_); -#line 726 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp15_); -#line 727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp16_ = g_strdup (_ ("Camera")); -#line 727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->camera_name); -#line 727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->camera_name = _tmp16_; -#line 6068 "ImportPage.c" - } -#line 720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - (abilities); -#line 6072 "ImportPage.c" - } -#line 730 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp17_ = self->priv->camera_label; -#line 730 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = self->priv->camera_name; -#line 730 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_label_set_text (_tmp17_, _tmp18_); -#line 731 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp19_ = self->priv->camera_name; -#line 731 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - page_set_page_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp19_); -#line 734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp20_ = g_volume_monitor_get (); -#line 734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->volume_monitor); -#line 734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->volume_monitor = _tmp20_; -#line 737 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp21_ = import_page_null_context; -#line 737 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp21_ == NULL) { -#line 6094 "ImportPage.c" - GPContextWrapper* _tmp22_; -#line 738 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp22_ = gp_context_wrapper_new (); -#line 738 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_context_wrapper_unref0 (import_page_null_context); -#line 738 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_null_context = _tmp22_; -#line 6102 "ImportPage.c" - } -#line 741 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp23_ = import_page_spin_idle_context; -#line 741 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp23_ == NULL) { -#line 6108 "ImportPage.c" - GPSpinIdleWrapper* _tmp24_; -#line 742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp24_ = gp_spin_idle_wrapper_new (); -#line 742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_context_wrapper_unref0 (import_page_spin_idle_context); -#line 742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_spin_idle_context = _tmp24_; -#line 6116 "ImportPage.c" - } -#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp25_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp26_ = _tmp25_; -#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp27_ = self->priv->import_sources; -#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp28_ = import_page_import_view_manager_new (self); -#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp29_ = _tmp28_; -#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp30_ = view_collection_monitor_source_collection (_tmp26_, _tmp27_, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_VIEW_MANAGER, ViewManager), NULL, NULL, NULL, NULL); -#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp31_ = _tmp30_; -#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _view_collection_monitor_unref0 (_tmp31_); -#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _view_manager_unref0 (_tmp29_); -#line 745 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _data_collection_unref0 (_tmp26_); -#line 748 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp32_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 748 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp33_ = _tmp32_; -#line 748 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - data_collection_set_comparator (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_DATA_COLLECTION, DataCollection), _import_page_preview_comparator_comparator, NULL, _import_page_preview_comparator_predicate_comparator_predicate, NULL); -#line 748 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _data_collection_unref0 (_tmp33_); -#line 751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp34_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp35_ = _tmp34_; -#line 751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_signal_connect_object (_tmp35_, "items-state-changed", (GCallback) _import_page_on_view_changed_view_collection_items_state_changed, self, 0); -#line 751 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _data_collection_unref0 (_tmp35_); -#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp36_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp37_ = _tmp36_; -#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _import_page_on_view_changed_data_collection_contents_altered, self, 0); -#line 752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _data_collection_unref0 (_tmp37_); -#line 753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp38_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp39_ = _tmp38_; -#line 753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_signal_connect_object (_tmp39_, "items-visibility-changed", (GCallback) _import_page_on_view_changed_view_collection_items_visibility_changed, self, 0); -#line 753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _data_collection_unref0 (_tmp39_); -#line 756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp40_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp41_ = _tmp40_; -#line 756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_value_init (&_tmp42_, G_TYPE_BOOLEAN); -#line 756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_value_set_boolean (&_tmp42_, TRUE); -#line 756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_DATA_COLLECTION, DataCollection), CHECKERBOARD_ITEM_PROP_SHOW_SUBTITLES, &_tmp42_, NULL, NULL); -#line 756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - G_IS_VALUE (&_tmp42_) ? (g_value_unset (&_tmp42_), NULL) : NULL; -#line 756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _data_collection_unref0 (_tmp41_); -#line 759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp43_ = library_photo_global; -#line 759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _import_page_on_media_added_removed_data_collection_contents_altered, self, 0); -#line 760 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp44_ = video_global; -#line 760 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _import_page_on_media_added_removed_data_collection_contents_altered, self, 0); -#line 762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - checkerboard_page_init_item_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "ImportContextMenu"); -#line 763 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - checkerboard_page_init_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "ImportContextMenu"); -#line 710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self; -#line 6198 "ImportPage.c" -} - - -ImportPage* -import_page_new (Camera* camera, - const gchar* uri, - const gchar* display_name, - const gchar* icon) -{ -#line 710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return import_page_construct (TYPE_IMPORT_PAGE, camera, uri, display_name, icon); -#line 6210 "ImportPage.c" -} - - -static void -_import_page_on_hide_imported_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 778 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_on_hide_imported ((ImportPage*) self); -#line 6220 "ImportPage.c" -} - - -static GtkToolbar* -import_page_real_get_toolbar (Page* base) -{ - ImportPage * self; - GtkToolbar* result = NULL; - GtkToolbar* _tmp0_; - GtkToolbar* _tmp54_; - GtkToolbar* _tmp55_; -#line 771 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp0_ == NULL) { -#line 6238 "ImportPage.c" - GtkToolbar* _tmp1_; - GtkToolbar* _tmp2_; - GtkCheckButton* _tmp3_; - GtkCheckButton* _tmp4_; - GtkCheckButton* _tmp5_; - GtkCheckButton* _tmp6_; - GtkCheckButton* _tmp7_; - ConfigFacade* _tmp8_; - ConfigFacade* _tmp9_; - GtkToolItem* hide_item = NULL; - GtkToolItem* _tmp10_; - GtkToolItem* _tmp11_; - GtkToolItem* _tmp12_; - GtkCheckButton* _tmp13_; - GtkToolbar* _tmp14_; - GtkToolItem* _tmp15_; - GtkSeparatorToolItem* separator = NULL; - GtkSeparatorToolItem* _tmp16_; - GtkSeparatorToolItem* _tmp17_; - GtkToolbar* _tmp18_; - GtkSeparatorToolItem* _tmp19_; - GtkProgressBar* _tmp20_; - GtkProgressBar* _tmp21_; - GtkToolItem* progress_item = NULL; - GtkToolItem* _tmp22_; - GtkToolItem* _tmp23_; - GtkToolItem* _tmp24_; - GtkProgressBar* _tmp25_; - GtkProgressBar* _tmp26_; - GtkToolbar* _tmp27_; - GtkToolItem* _tmp28_; - GtkToggleToolButton* find_button = NULL; - GtkToggleToolButton* _tmp29_; - GtkToggleToolButton* _tmp30_; - GtkToggleToolButton* _tmp31_; - GtkToolbar* _tmp32_; - GtkToggleToolButton* _tmp33_; - GtkToolbar* _tmp34_; - GtkSeparatorToolItem* _tmp35_; - GtkSeparatorToolItem* _tmp36_; - GtkToolButton* import_selected_button = NULL; - GtkToolButton* _tmp37_; - GtkToolButton* _tmp38_; - GtkToolButton* _tmp39_; - GtkToolButton* _tmp40_; - GtkToolButton* _tmp41_; - GtkToolButton* _tmp42_; - GtkToolbar* _tmp43_; - GtkToolButton* _tmp44_; - GtkToolButton* import_all_button = NULL; - GtkToolButton* _tmp45_; - GtkToolButton* _tmp46_; - GtkToolButton* _tmp47_; - GtkToolButton* _tmp48_; - GtkToolButton* _tmp49_; - GtkToolButton* _tmp50_; - GtkToolbar* _tmp51_; - GtkToolButton* _tmp52_; - GtkProgressBar* _tmp53_; -#line 773 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = PAGE_CLASS (import_page_parent_class)->get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page)); -#line 773 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = _tmp1_; -#line 773 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp2_); -#line 776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = (GtkCheckButton*) gtk_check_button_new_with_label (_ ("Hide photos already imported")); -#line 776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_ref_sink (_tmp3_); -#line 776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->hide_imported); -#line 776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->hide_imported = _tmp3_; -#line 777 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = self->priv->hide_imported; -#line 777 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), _ ("Only display photos that have not been imported")); -#line 778 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = self->priv->hide_imported; -#line 778 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_button_get_type (), GtkButton), "clicked", (GCallback) _import_page_on_hide_imported_gtk_button_clicked, self, 0); -#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = self->priv->hide_imported; -#line 779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 780 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = self->priv->hide_imported; -#line 780 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = config_facade_get_instance (); -#line 780 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = _tmp8_; -#line 780 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_toggle_button_get_type (), GtkToggleButton), configuration_facade_get_hide_photos_already_imported (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 780 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp9_); -#line 781 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = gtk_tool_item_new (); -#line 781 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_ref_sink (_tmp10_); -#line 781 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - hide_item = _tmp10_; -#line 782 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = hide_item; -#line 782 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_tool_item_set_is_important (_tmp11_, TRUE); -#line 783 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = hide_item; -#line 783 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = self->priv->hide_imported; -#line 783 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget)); -#line 785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp14_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp15_ = hide_item; -#line 785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_toolbar_insert (_tmp14_, _tmp15_, -1); -#line 788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp16_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new (); -#line 788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_ref_sink (_tmp16_); -#line 788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - separator = _tmp16_; -#line 789 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp17_ = separator; -#line 789 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_separator_tool_item_set_draw (_tmp17_, FALSE); -#line 791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp19_ = separator; -#line 791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_toolbar_insert (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 794 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp20_ = self->priv->progress_bar; -#line 794 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_orientable_set_orientation (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_orientable_get_type (), GtkOrientable), GTK_ORIENTATION_HORIZONTAL); -#line 795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp21_ = self->priv->progress_bar; -#line 795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 796 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp22_ = gtk_tool_item_new (); -#line 796 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_ref_sink (_tmp22_); -#line 796 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - progress_item = _tmp22_; -#line 797 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp23_ = progress_item; -#line 797 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_tool_item_set_expand (_tmp23_, TRUE); -#line 798 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp24_ = progress_item; -#line 798 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp25_ = self->priv->progress_bar; -#line 798 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget)); -#line 799 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp26_ = self->priv->progress_bar; -#line 799 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_show_text (_tmp26_, TRUE); -#line 801 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp27_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 801 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp28_ = progress_item; -#line 801 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_toolbar_insert (_tmp27_, _tmp28_, -1); -#line 804 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp29_ = (GtkToggleToolButton*) gtk_toggle_tool_button_new (); -#line 804 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_ref_sink (_tmp29_); -#line 804 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - find_button = _tmp29_; -#line 805 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp30_ = find_button; -#line 805 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_tool_button_set_icon_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_tool_button_get_type (), GtkToolButton), "edit-find"); -#line 806 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp31_ = find_button; -#line 806 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_actionable_get_type (), GtkActionable), "win.CommonDisplaySearchbar"); -#line 808 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp32_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 808 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp33_ = find_button; -#line 808 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_toolbar_insert (_tmp32_, G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 811 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp34_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 811 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp35_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new (); -#line 811 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_ref_sink (_tmp35_); -#line 811 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp36_ = _tmp35_; -#line 811 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_toolbar_insert (_tmp34_, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 811 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp36_); -#line 814 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp37_ = (GtkToolButton*) gtk_tool_button_new (NULL, NULL); -#line 814 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_ref_sink (_tmp37_); -#line 814 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_selected_button = _tmp37_; -#line 815 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp38_ = import_selected_button; -#line 815 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_tool_button_set_icon_name (_tmp38_, "import"); -#line 816 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp39_ = import_selected_button; -#line 816 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_tool_button_set_label (_tmp39_, _ ("Import _Selected")); -#line 817 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp40_ = import_selected_button; -#line 817 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_tool_item_get_type (), GtkToolItem), TRUE); -#line 818 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp41_ = import_selected_button; -#line 818 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_tool_button_set_use_underline (_tmp41_, TRUE); -#line 819 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp42_ = import_selected_button; -#line 819 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_actionable_get_type (), GtkActionable), "win.ImportSelected"); -#line 821 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp43_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 821 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp44_ = import_selected_button; -#line 821 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_toolbar_insert (_tmp43_, G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 824 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp45_ = (GtkToolButton*) gtk_tool_button_new (NULL, NULL); -#line 824 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_ref_sink (_tmp45_); -#line 824 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_all_button = _tmp45_; -#line 825 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp46_ = import_all_button; -#line 825 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_tool_button_set_icon_name (_tmp46_, "import-all"); -#line 826 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp47_ = import_all_button; -#line 826 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_tool_button_set_label (_tmp47_, _ ("Import _All")); -#line 827 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp48_ = import_all_button; -#line 827 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_tool_item_get_type (), GtkToolItem), TRUE); -#line 828 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp49_ = import_all_button; -#line 828 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_tool_button_set_use_underline (_tmp49_, TRUE); -#line 829 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp50_ = import_all_button; -#line 829 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_actionable_get_type (), GtkActionable), "win.ImportAll"); -#line 831 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp51_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 831 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp52_ = import_all_button; -#line 831 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_toolbar_insert (_tmp51_, G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 835 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp53_ = self->priv->progress_bar; -#line 835 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_widget_set_no_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 837 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_update_toolbar_state (self); -#line 839 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (import_all_button); -#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (import_selected_button); -#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (find_button); -#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (progress_item); -#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (separator); -#line 772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (hide_item); -#line 6522 "ImportPage.c" - } -#line 842 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp54_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->toolbar; -#line 842 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp55_ = _g_object_ref0 (_tmp54_); -#line 842 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp55_; -#line 842 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 6532 "ImportPage.c" -} - - -static gpointer -_core_tracker_ref0 (gpointer self) -{ -#line 846 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self ? core_tracker_ref (self) : NULL; -#line 6541 "ImportPage.c" -} - - -static CoreViewTracker* -import_page_real_get_view_tracker (CheckerboardPage* base) -{ - ImportPage * self; - CoreViewTracker* result = NULL; - CameraViewTracker* _tmp0_; - CoreViewTracker* _tmp1_; -#line 845 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 846 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->tracker; -#line 846 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _core_tracker_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, CORE_TYPE_VIEW_TRACKER, CoreViewTracker)); -#line 846 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 846 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 6562 "ImportPage.c" -} - - -static gchar* -import_page_real_get_view_empty_message (CheckerboardPage* base) -{ - ImportPage * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 849 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = g_strdup (_ ("The camera seems to be empty. No photos/videos found to import")); -#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 850 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 6580 "ImportPage.c" -} - - -static gchar* -import_page_real_get_filter_no_match_message (CheckerboardPage* base) -{ - ImportPage * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 853 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 854 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = g_strdup (_ ("No new photos/videos found on camera")); -#line 854 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 854 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 6598 "ImportPage.c" -} - - -static gint64 -import_page_preview_comparator (void* a, - void* b) -{ - gint64 result = 0LL; - ImportSource* _tmp0_; - ImportSource* _tmp1_; - ImportSource* _tmp2_; - ImportSource* _tmp3_; - gint64 _tmp4_; -#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = import_preview_get_import_source (G_TYPE_CHECK_INSTANCE_CAST ((ImportPreview*) a, TYPE_IMPORT_PREVIEW, ImportPreview)); -#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp0_; -#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = import_preview_get_import_source (G_TYPE_CHECK_INSTANCE_CAST ((ImportPreview*) b, TYPE_IMPORT_PREVIEW, ImportPreview)); -#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _tmp2_; -#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = (gint64) (import_source_get_exposure_time (_tmp1_) - import_source_get_exposure_time (_tmp3_)); -#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp3_); -#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp1_); -#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp4_; -#line 858 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 6630 "ImportPage.c" -} - - -static gboolean -import_page_preview_comparator_predicate (DataObject* object, - Alteration* alteration) -{ - gboolean result = FALSE; -#line 862 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 862 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_ALTERATION (alteration), FALSE); -#line 863 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = alteration_has_detail (alteration, "metadata", "exposure-time"); -#line 863 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 6647 "ImportPage.c" -} - - -static gint64 -import_page_import_job_comparator (ImportPage* self, - void* a, - void* b) -{ - gint64 result = 0LL; -#line 866 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_PAGE (self), 0LL); -#line 867 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = (gint64) (import_page_camera_import_job_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST ((ImportPageCameraImportJob*) a, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob)) - import_page_camera_import_job_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST ((ImportPageCameraImportJob*) b, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob))); -#line 867 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 6663 "ImportPage.c" -} - - -static void -import_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames) -{ - ImportPage * self; -#line 870 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 870 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 871 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - PAGE_CLASS (import_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), ui_filenames); -#line 873 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "import.ui"); -#line 6680 "ImportPage.c" -} - - -static GVariant* -_variant_new15 (gboolean value) -{ -#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 6689 "ImportPage.c" -} - - -static void -import_page_real_add_actions (Page* base, - GActionMap* map) -{ - ImportPage * self; - GAction* _tmp0_; - GAction* _tmp1_; - ConfigFacade* _tmp2_; - ConfigFacade* _tmp3_; - GVariant* _tmp4_; -#line 883 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 883 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 884 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - PAGE_CLASS (import_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), map); -#line 886 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_action_map_add_action_entries (map, IMPORT_PAGE_entries, G_N_ELEMENTS (IMPORT_PAGE_entries), self); -#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTitle"); -#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp0_; -#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = config_facade_get_instance (); -#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _tmp2_; -#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = _variant_new15 (configuration_facade_get_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_action_change_state (_tmp1_, _tmp4_); -#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_variant_unref0 (_tmp4_); -#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp3_); -#line 888 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp1_); -#line 6729 "ImportPage.c" -} - - -static void -import_page_real_remove_actions (Page* base, - GActionMap* map) -{ - ImportPage * self; -#line 891 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 891 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 892 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - PAGE_CLASS (import_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), map); -#line 6744 "ImportPage.c" - { - GActionEntry* entry_collection = NULL; - gint entry_collection_length1 = 0; - gint _entry_collection_size_ = 0; - gint entry_it = 0; -#line 893 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - entry_collection = IMPORT_PAGE_entries; -#line 893 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - entry_collection_length1 = G_N_ELEMENTS (IMPORT_PAGE_entries); -#line 893 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - for (entry_it = 0; entry_it < G_N_ELEMENTS (IMPORT_PAGE_entries); entry_it = entry_it + 1) { -#line 6756 "ImportPage.c" - GActionEntry entry = {0}; -#line 893 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - entry = entry_collection[entry_it]; -#line 6760 "ImportPage.c" - { - GActionEntry _tmp0_; - const gchar* _tmp1_; -#line 894 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = entry; -#line 894 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp0_.name; -#line 894 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_action_map_remove_action (map, _tmp1_); -#line 6770 "ImportPage.c" - } - } - } -} - - -Camera* -import_page_get_camera (ImportPage* self) -{ - Camera* result = NULL; - Camera* _tmp0_; - Camera* _tmp1_; -#line 898 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_PAGE (self), NULL); -#line 899 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->camera; -#line 899 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _GPHOTO_REF_CAMERA0 (_tmp0_); -#line 899 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 899 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 6793 "ImportPage.c" -} - - -gchar* -import_page_get_uri (ImportPage* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 902 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_PAGE (self), NULL); -#line 903 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->uri; -#line 903 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 903 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 903 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 6813 "ImportPage.c" -} - - -gboolean -import_page_is_busy (ImportPage* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 906 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_PAGE (self), FALSE); -#line 907 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->busy; -#line 907 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 907 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 6830 "ImportPage.c" -} - - -static void -import_page_real_init_actions (Page* base, - gint selected_count, - gint count) -{ - ImportPage * self; -#line 910 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 911 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_on_view_changed (self); -#line 913 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ImportSelected", TRUE); -#line 914 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ImportAll", TRUE); -#line 916 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - PAGE_CLASS (import_page_parent_class)->init_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), selected_count, count); -#line 6850 "ImportPage.c" -} - - -gboolean -import_page_is_refreshed (ImportPage* self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; -#line 919 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_PAGE (self), FALSE); -#line 920 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->refreshed; -#line 920 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp1_) { -#line 6866 "ImportPage.c" - gboolean _tmp2_; -#line 920 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = self->priv->busy; -#line 920 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = !_tmp2_; -#line 6872 "ImportPage.c" - } else { -#line 920 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = FALSE; -#line 6876 "ImportPage.c" - } -#line 920 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 920 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 6882 "ImportPage.c" -} - - -gchar* -import_page_get_refresh_message (ImportPage* self) -{ - gchar* result = NULL; - gchar* msg = NULL; - const gchar* _tmp0_; -#line 923 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_PAGE (self), NULL); -#line 924 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - msg = NULL; -#line 925 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->refresh_error; -#line 925 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp0_ != NULL) { -#line 6900 "ImportPage.c" - const gchar* _tmp1_; - gchar* _tmp2_; -#line 926 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->refresh_error; -#line 926 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 926 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (msg); -#line 926 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - msg = _tmp2_; -#line 6911 "ImportPage.c" - } else { - int _tmp3_; -#line 927 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = self->priv->refresh_result; -#line 927 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp3_ == GP_OK) { -#line 6918 "ImportPage.c" - } else { - int _tmp4_; - gchar* _tmp5_; -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = self->priv->refresh_result; -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = gp_result_to_full_string (_tmp4_); -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (msg); -#line 930 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - msg = _tmp5_; -#line 6930 "ImportPage.c" - } - } -#line 933 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = msg; -#line 933 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 6937 "ImportPage.c" -} - - -static void -import_page_update_status (ImportPage* self, - gboolean busy, - gboolean refreshed) -{ -#line 936 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 937 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->busy = busy; -#line 938 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->refreshed = refreshed; -#line 940 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_on_view_changed (self); -#line 6954 "ImportPage.c" -} - - -static void -import_page_update_toolbar_state (ImportPage* self) -{ - GtkCheckButton* _tmp0_; -#line 943 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 944 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->hide_imported; -#line 944 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp0_ != NULL) { -#line 6968 "ImportPage.c" - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - gboolean _tmp3_; - GtkCheckButton* _tmp7_; -#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = self->priv->busy; -#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!_tmp3_) { -#line 6977 "ImportPage.c" - gboolean _tmp4_; -#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = self->priv->refreshed; -#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = _tmp4_; -#line 6983 "ImportPage.c" - } else { -#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = FALSE; -#line 6987 "ImportPage.c" - } -#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp2_) { -#line 6991 "ImportPage.c" - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; -#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = _tmp5_; -#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = view_collection_get_unfiltered_count (_tmp6_) > 0; -#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _data_collection_unref0 (_tmp6_); -#line 7002 "ImportPage.c" - } else { -#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = FALSE; -#line 7006 "ImportPage.c" - } -#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = self->priv->hide_imported; -#line 945 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), _tmp1_); -#line 7012 "ImportPage.c" - } -} - - -static void -import_page_on_view_changed (ImportPage* self) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_; - gboolean _tmp6_ = FALSE; - gboolean _tmp7_ = FALSE; - gboolean _tmp8_; - gboolean _tmp12_ = FALSE; - gboolean _tmp13_; -#line 948 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = self->priv->busy; -#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!_tmp2_) { -#line 7034 "ImportPage.c" - gboolean _tmp3_; -#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = self->priv->refreshed; -#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp3_; -#line 7040 "ImportPage.c" - } else { -#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = FALSE; -#line 7044 "ImportPage.c" - } -#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp1_) { -#line 7048 "ImportPage.c" - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; -#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = _tmp4_; -#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = view_collection_get_selected_count (_tmp5_) > 0; -#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _data_collection_unref0 (_tmp5_); -#line 7059 "ImportPage.c" - } else { -#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = FALSE; -#line 7063 "ImportPage.c" - } -#line 949 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ImportSelected", _tmp0_); -#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = self->priv->busy; -#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!_tmp8_) { -#line 7071 "ImportPage.c" - gboolean _tmp9_; -#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = self->priv->refreshed; -#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = _tmp9_; -#line 7077 "ImportPage.c" - } else { -#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = FALSE; -#line 7081 "ImportPage.c" - } -#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp7_) { -#line 7085 "ImportPage.c" - ViewCollection* _tmp10_; - ViewCollection* _tmp11_; -#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = _tmp10_; -#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_COLLECTION, DataCollection)) > 0; -#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _data_collection_unref0 (_tmp11_); -#line 7096 "ImportPage.c" - } else { -#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = FALSE; -#line 7100 "ImportPage.c" - } -#line 950 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ImportAll", _tmp6_); -#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = self->priv->busy; -#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!_tmp13_) { -#line 7108 "ImportPage.c" - ViewCollection* _tmp14_; - ViewCollection* _tmp15_; -#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp14_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp15_ = _tmp14_; -#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_COLLECTION, DataCollection)) > 0; -#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _data_collection_unref0 (_tmp15_); -#line 7119 "ImportPage.c" - } else { -#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = FALSE; -#line 7123 "ImportPage.c" - } -#line 951 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonSelectAll", _tmp12_); -#line 953 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_update_toolbar_state (self); -#line 7129 "ImportPage.c" -} - - -static void -import_page_on_media_added_removed (ImportPage* self) -{ - ImportPageImportPageSearchViewFilter* _tmp0_; -#line 956 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 957 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->search_filter; -#line 957 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIEW_FILTER, ViewFilter), "refresh"); -#line 7143 "ImportPage.c" -} - - -static void -import_page_on_display_titles (ImportPage* self, - GSimpleAction* action, - GVariant* value) -{ - gboolean display = FALSE; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 960 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 960 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 961 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - display = g_variant_get_boolean (value); -#line 963 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - checkerboard_page_set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), display); -#line 965 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 965 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp0_; -#line 965 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - configuration_facade_set_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); -#line 965 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp1_); -#line 966 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_simple_action_set_state (action, value); -#line 7173 "ImportPage.c" -} - - -static void -import_page_real_switched_to (Page* base) -{ - ImportPage * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 969 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 970 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 970 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp0_; -#line 970 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - checkerboard_page_set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), configuration_facade_get_display_photo_titles (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 970 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp1_); -#line 972 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - PAGE_CLASS (import_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page)); -#line 7195 "ImportPage.c" -} - - -static void -import_page_real_ready (Page* base) -{ - ImportPage * self; - ImportPageHideImportedViewFilter* _tmp0_; -#line 975 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 976 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_try_refreshing_camera (self, FALSE); -#line 977 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->hide_imported_filter; -#line 977 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIEW_FILTER, ViewFilter), "refresh"); -#line 7212 "ImportPage.c" -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 7236 "ImportPage.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 7245 "ImportPage.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 7266 "ImportPage.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 7270 "ImportPage.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 7276 "ImportPage.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 7286 "ImportPage.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 7290 "ImportPage.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 7298 "ImportPage.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 7305 "ImportPage.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 7309 "ImportPage.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 7315 "ImportPage.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 7327 "ImportPage.c" -} - - -static void -import_page_try_refreshing_camera (ImportPage* self, - gboolean fail_on_locked) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; - ImportPageRefreshResult res = 0; - ImportPageRefreshResult _tmp3_; - GError * _inner_error_ = NULL; -#line 980 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 982 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->refreshed; -#line 982 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp1_) { -#line 982 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = TRUE; -#line 7348 "ImportPage.c" - } else { - gboolean _tmp2_; -#line 982 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = self->priv->busy; -#line 982 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = _tmp2_; -#line 7355 "ImportPage.c" - } -#line 982 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp0_) { -#line 983 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return; -#line 7361 "ImportPage.c" - } -#line 985 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - res = import_page_refresh_camera (self); -#line 986 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = res; -#line 986 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - switch (_tmp3_) { -#line 986 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - case IMPORT_PAGE_REFRESH_RESULT_OK: -#line 986 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - case IMPORT_PAGE_REFRESH_RESULT_BUSY: -#line 7373 "ImportPage.c" - { -#line 991 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 7377 "ImportPage.c" - } -#line 986 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - case IMPORT_PAGE_REFRESH_RESULT_LOCKED: -#line 7381 "ImportPage.c" - { - const gchar* _tmp4_; - GFile* uri = NULL; - const gchar* _tmp5_; - GFile* _tmp6_; - GMount* mount = NULL; - gboolean _tmp11_ = FALSE; - GMount* _tmp12_; - GMount* _tmp24_; -#line 994 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (fail_on_locked) { -#line 995 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - app_window_error_message (IMPORT_PAGE_UNMOUNT_FAILED_MSG, NULL); -#line 997 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 7397 "ImportPage.c" - } -#line 1001 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = self->priv->uri; -#line 1001 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:1001: Checking if %s is mounted…", _tmp4_); -#line 1003 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = self->priv->uri; -#line 1003 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = g_file_new_for_uri (_tmp5_); -#line 1003 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - uri = _tmp6_; -#line 1005 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - mount = NULL; -#line 7411 "ImportPage.c" - { - GMount* _tmp7_ = NULL; - GFile* _tmp8_; - GMount* _tmp9_; - GMount* _tmp10_; -#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = uri; -#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = g_file_find_enclosing_mount (_tmp8_, NULL, &_inner_error_); -#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = _tmp9_; -#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7425 "ImportPage.c" - goto __catch73_g_error; - } -#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = _tmp7_; -#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = NULL; -#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (mount); -#line 1007 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - mount = _tmp10_; -#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp7_); -#line 7438 "ImportPage.c" - } - goto __finally73; - __catch73_g_error: - { - GError* err = NULL; -#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - err = _inner_error_; -#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _inner_error_ = NULL; -#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_error_free0 (err); -#line 7450 "ImportPage.c" - } - __finally73: -#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (mount); -#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (uri); -#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_clear_error (&_inner_error_); -#line 1006 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return; -#line 7465 "ImportPage.c" - } -#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = mount; -#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp12_ == NULL) { -#line 7471 "ImportPage.c" - const gchar* _tmp13_; -#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = self->priv->uri; -#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = g_str_has_prefix (_tmp13_, "gphoto2"); -#line 7477 "ImportPage.c" - } else { -#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = FALSE; -#line 7481 "ImportPage.c" - } -#line 1014 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp11_) { -#line 7485 "ImportPage.c" - const gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - GFile* _tmp19_; -#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp14_ = self->priv->uri; -#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp15_ = string_substring (_tmp14_, (glong) 7, (glong) -1); -#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp16_ = _tmp15_; -#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp17_ = g_strconcat ("mtp", _tmp16_, NULL); -#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = _tmp17_; -#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp19_ = g_file_new_for_uri (_tmp18_); -#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (uri); -#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - uri = _tmp19_; -#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp18_); -#line 1015 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp16_); -#line 7512 "ImportPage.c" - { - GMount* _tmp20_ = NULL; - GFile* _tmp21_; - GMount* _tmp22_; - GMount* _tmp23_; -#line 1017 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp21_ = uri; -#line 1017 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp22_ = g_file_find_enclosing_mount (_tmp21_, NULL, &_inner_error_); -#line 1017 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp20_ = _tmp22_; -#line 1017 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7526 "ImportPage.c" - goto __catch74_g_error; - } -#line 1017 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp23_ = _tmp20_; -#line 1017 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp20_ = NULL; -#line 1017 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (mount); -#line 1017 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - mount = _tmp23_; -#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp20_); -#line 7539 "ImportPage.c" - } - goto __finally74; - __catch74_g_error: - { - GError* err = NULL; -#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - err = _inner_error_; -#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _inner_error_ = NULL; -#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_error_free0 (err); -#line 7551 "ImportPage.c" - } - __finally74: -#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (mount); -#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (uri); -#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_clear_error (&_inner_error_); -#line 1016 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return; -#line 7566 "ImportPage.c" - } - } -#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp24_ = mount; -#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp24_ != NULL) { -#line 7573 "ImportPage.c" - gchar* mounted_message = NULL; - gchar* _tmp25_; - GtkMessageDialog* dialog = NULL; - AppWindow* _tmp26_; - AppWindow* _tmp27_; - const gchar* _tmp28_; - GtkMessageDialog* _tmp29_; - GtkMessageDialog* _tmp30_; - GtkMessageDialog* _tmp31_; - GtkMessageDialog* _tmp32_; - gint dialog_res = 0; - GtkMessageDialog* _tmp33_; - GtkMessageDialog* _tmp34_; - gint _tmp35_; -#line 1025 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp25_ = g_strdup (_ ("Shotwell needs to unmount the camera from the filesystem in order to a" \ -"ccess it. Continue?")); -#line 1025 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - mounted_message = _tmp25_; -#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp26_ = app_window_get_instance (); -#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp27_ = _tmp26_; -#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp28_ = mounted_message; -#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp29_ = (GtkMessageDialog*) gtk_message_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_window_get_type (), GtkWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_CANCEL, "%s", _tmp28_); -#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_ref_sink (_tmp29_); -#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp30_ = _tmp29_; -#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp27_); -#line 1027 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - dialog = _tmp30_; -#line 1030 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp31_ = dialog; -#line 1030 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_window_get_type (), GtkWindow), RESOURCES_APP_TITLE); -#line 1031 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp32_ = dialog; -#line 1031 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_dialog_get_type (), GtkDialog), _ ("_Unmount"), (gint) GTK_RESPONSE_YES); -#line 1032 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp33_ = dialog; -#line 1032 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - dialog_res = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_dialog_get_type (), GtkDialog)); -#line 1033 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp34_ = dialog; -#line 1033 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_widget_get_type (), GtkWidget)); -#line 1035 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp35_ = dialog_res; -#line 1035 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp35_ != ((gint) GTK_RESPONSE_YES)) { -#line 1036 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - checkerboard_page_set_page_message (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _ ("Please unmount the camera.")); -#line 7630 "ImportPage.c" - } else { - GMount* _tmp36_; -#line 1038 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp36_ = mount; -#line 1038 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_unmount_camera (self, _tmp36_); -#line 7637 "ImportPage.c" - } -#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (dialog); -#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (mounted_message); -#line 7643 "ImportPage.c" - } else { - gchar* locked_message = NULL; - gchar* _tmp37_; - GtkMessageDialog* dialog = NULL; - AppWindow* _tmp38_; - AppWindow* _tmp39_; - const gchar* _tmp40_; - GtkMessageDialog* _tmp41_; - GtkMessageDialog* _tmp42_; - GtkMessageDialog* _tmp43_; - GtkMessageDialog* _tmp44_; - GtkMessageDialog* _tmp45_; -#line 1041 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp37_ = g_strdup (_ ("The camera is locked by another application. Shotwell can only access " \ -"the camera when it’s unlocked. Please close any other application usin" \ -"g the camera and try again.")); -#line 1041 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - locked_message = _tmp37_; -#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp38_ = app_window_get_instance (); -#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp39_ = _tmp38_; -#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp40_ = locked_message; -#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp41_ = (GtkMessageDialog*) gtk_message_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_window_get_type (), GtkWindow), GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, "%s", _tmp40_); -#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_ref_sink (_tmp41_); -#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp42_ = _tmp41_; -#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp39_); -#line 1044 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - dialog = _tmp42_; -#line 1047 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp43_ = dialog; -#line 1047 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_window_get_type (), GtkWindow), RESOURCES_APP_TITLE); -#line 1048 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp44_ = dialog; -#line 1048 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_dialog_get_type (), GtkDialog)); -#line 1049 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp45_ = dialog; -#line 1049 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_widget_get_type (), GtkWidget)); -#line 1051 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - checkerboard_page_set_page_message (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _ ("Please close any other application using the camera.")); -#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (dialog); -#line 1023 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (locked_message); -#line 7694 "ImportPage.c" - } -#line 1053 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (mount); -#line 1053 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (uri); -#line 1053 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 7702 "ImportPage.c" - } -#line 986 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - case IMPORT_PAGE_REFRESH_RESULT_LIBRARY_ERROR: -#line 7706 "ImportPage.c" - { - gchar* _tmp46_; - gchar* _tmp47_; - gchar* _tmp48_; - gchar* _tmp49_; -#line 1056 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp46_ = import_page_get_refresh_message (self); -#line 1056 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp47_ = _tmp46_; -#line 1056 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp48_ = g_strdup_printf (_ ("Unable to fetch previews from the camera:\n%s"), _tmp47_); -#line 1056 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp49_ = _tmp48_; -#line 1056 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - app_window_error_message (_tmp49_, NULL); -#line 1056 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp49_); -#line 1056 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp47_); -#line 1058 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 7728 "ImportPage.c" - } - default: - { - ImportPageRefreshResult _tmp50_; -#line 1061 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp50_ = res; -#line 1061 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_error ("ImportPage.vala:1061: Unknown result type %d", (gint) _tmp50_); -#line 7737 "ImportPage.c" - } - } -} - - -static void -_import_page_on_unmounted_g_mount_unmounted (GMount* _sender, - gpointer self) -{ -#line 1078 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_on_unmounted ((ImportPage*) self, _sender); -#line 7749 "ImportPage.c" -} - - -static void -_import_page_on_unmount_finished_gasync_ready_callback (GObject* source_object, - GAsyncResult* res, - gpointer self) -{ -#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_on_unmount_finished ((ImportPage*) self, source_object, res); -#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_unref (self); -#line 7762 "ImportPage.c" -} - - -gboolean -import_page_unmount_camera (ImportPage* self, - GMount* mount) -{ - gboolean result = FALSE; - gboolean _tmp0_; - GtkProgressBar* _tmp1_; - GtkProgressBar* _tmp2_; - GtkProgressBar* _tmp3_; - GtkProgressBar* _tmp4_; - AppWindow* _tmp5_; - AppWindow* _tmp6_; - GtkMountOperation* _tmp7_; - GtkMountOperation* _tmp8_; -#line 1065 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_PAGE (self), FALSE); -#line 1065 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (G_IS_MOUNT (mount), FALSE); -#line 1066 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->busy; -#line 1066 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp0_) { -#line 1067 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 1067 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 7792 "ImportPage.c" - } -#line 1069 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_update_status (self, TRUE, FALSE); -#line 1070 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->progress_bar; -#line 1070 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1071 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = self->priv->progress_bar; -#line 1071 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_fraction (_tmp2_, 0.0); -#line 1072 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = self->priv->progress_bar; -#line 1072 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_ellipsize (_tmp3_, PANGO_ELLIPSIZE_NONE); -#line 1073 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = self->priv->progress_bar; -#line 1073 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_text (_tmp4_, _ ("Unmounting…")); -#line 1078 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_signal_connect_object (mount, "unmounted", (GCallback) _import_page_on_unmounted_g_mount_unmounted, self, 0); -#line 1080 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:1080: Unmounting camera…"); -#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = app_window_get_instance (); -#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = _tmp5_; -#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = (GtkMountOperation*) gtk_mount_operation_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow)); -#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = _tmp7_; -#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_mount_unmount_with_operation (mount, G_MOUNT_UNMOUNT_NONE, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, g_mount_operation_get_type (), GMountOperation), NULL, _import_page_on_unmount_finished_gasync_ready_callback, g_object_ref (self)); -#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp8_); -#line 1081 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp6_); -#line 1084 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = TRUE; -#line 1084 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 7834 "ImportPage.c" -} - - -static void -import_page_on_unmount_finished (ImportPage* self, - GObject* source, - GAsyncResult* aresult) -{ - GMount* mount = NULL; - GMount* _tmp0_; - GError * _inner_error_ = NULL; -#line 1087 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1087 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail ((source == NULL) || G_IS_OBJECT (source)); -#line 1087 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (G_IS_ASYNC_RESULT (aresult)); -#line 1088 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:1088: Async unmount finished"); -#line 1090 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, g_mount_get_type (), GMount)); -#line 1090 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - mount = _tmp0_; -#line 7858 "ImportPage.c" - { -#line 1092 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_mount_unmount_with_operation_finish (mount, aresult, &_inner_error_); -#line 1092 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7864 "ImportPage.c" - goto __catch75_g_error; - } - } - goto __finally75; - __catch75_g_error: - { - GError* err = NULL; - guint _tmp1_; - gboolean _tmp2_; - GtkProgressBar* _tmp3_; - GtkProgressBar* _tmp4_; - GtkProgressBar* _tmp5_; -#line 1091 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - err = _inner_error_; -#line 1091 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _inner_error_ = NULL; -#line 1094 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - app_window_error_message (IMPORT_PAGE_UNMOUNT_FAILED_MSG, NULL); -#line 1097 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_signal_parse_name ("unmounted", g_mount_get_type (), &_tmp1_, NULL, FALSE); -#line 1097 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_signal_handlers_disconnect_matched (mount, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _import_page_on_unmounted_g_mount_unmounted, self); -#line 1099 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = self->priv->refreshed; -#line 1099 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_update_status (self, FALSE, _tmp2_); -#line 1100 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = self->priv->progress_bar; -#line 1100 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_ellipsize (_tmp3_, PANGO_ELLIPSIZE_NONE); -#line 1101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = self->priv->progress_bar; -#line 1101 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_text (_tmp4_, ""); -#line 1102 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = self->priv->progress_bar; -#line 1102 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1091 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_error_free0 (err); -#line 7905 "ImportPage.c" - } - __finally75: -#line 1091 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1091 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (mount); -#line 1091 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1091 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_clear_error (&_inner_error_); -#line 1091 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return; -#line 7918 "ImportPage.c" - } -#line 1087 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (mount); -#line 7922 "ImportPage.c" -} - - -static void -import_page_on_unmounted (ImportPage* self, - GMount* mount) -{ - gboolean _tmp0_; - GtkProgressBar* _tmp1_; - GtkProgressBar* _tmp2_; - GtkProgressBar* _tmp3_; -#line 1106 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1106 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (G_IS_MOUNT (mount)); -#line 1107 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:1107: on_unmounted"); -#line 1109 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->refreshed; -#line 1109 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_update_status (self, FALSE, _tmp0_); -#line 1110 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->progress_bar; -#line 1110 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_ellipsize (_tmp1_, PANGO_ELLIPSIZE_NONE); -#line 1111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = self->priv->progress_bar; -#line 1111 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_text (_tmp2_, ""); -#line 1112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = self->priv->progress_bar; -#line 1112 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1114 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_try_refreshing_camera (self, TRUE); -#line 7958 "ImportPage.c" -} - - -static void -import_page_clear_all_import_sources (ImportPage* self) -{ - Marker* marker = NULL; - SourceCollection* _tmp0_; - Marker* _tmp1_; - SourceCollection* _tmp2_; -#line 1117 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->import_sources; -#line 1118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1118 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - marker = _tmp1_; -#line 1119 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - marker_mark_all (marker); -#line 1120 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = self->priv->import_sources; -#line 1120 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - source_collection_destroy_marked (_tmp2_, marker, FALSE, NULL, NULL, NULL); -#line 1117 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (marker); -#line 7985 "ImportPage.c" -} - - -/** - * @brief Returns whether the current device has a given directory or not. - * - * @param fsid The file system id of the camera or other device to search. - * @param dir The path to start searching from. - * @param search_target The name of the directory to look for. - */ -static gboolean -import_page_check_directory_exists (ImportPage* self, - gint fsid, - const gchar* dir, - const gchar* search_target) -{ - gboolean result = FALSE; - gchar* fulldir = NULL; - Camera* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - int _result_ = 0; - CameraList* folders = NULL; - CameraList* _tmp3_ = NULL; - int _tmp4_; - int _tmp5_; - Camera* _tmp6_; - const gchar* _tmp7_; - CameraList* _tmp8_; - GPSpinIdleWrapper* _tmp9_; - GPContext* _tmp10_; - int _tmp11_; - gint list_len = 0; - CameraList* _tmp12_; -#line 1130 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_PAGE (self), FALSE); -#line 1130 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (dir != NULL, FALSE); -#line 1130 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (search_target != NULL, FALSE); -#line 1131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->camera; -#line 1131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->camera_name; -#line 1131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = import_page_get_fulldir (_tmp0_, _tmp1_, fsid, dir); -#line 1131 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - fulldir = _tmp2_; -#line 1135 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = gp_list_new (&_tmp3_); -#line 1135 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (folders); -#line 1135 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - folders = _tmp3_; -#line 1135 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _result_ = _tmp4_; -#line 1136 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = _result_; -#line 1136 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp5_ != GP_OK) { -#line 1138 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 1138 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (folders); -#line 1138 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1138 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 8054 "ImportPage.c" - } -#line 1141 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = self->priv->camera; -#line 1141 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = fulldir; -#line 1141 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = folders; -#line 1141 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = import_page_spin_idle_context; -#line 1141 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1141 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _result_ = gp_camera_folder_list_folders (_tmp6_, _tmp7_, _tmp8_, _tmp10_); -#line 1142 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = _result_; -#line 1142 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp11_ != GP_OK) { -#line 1144 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 1144 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (folders); -#line 1144 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1144 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 8080 "ImportPage.c" - } -#line 1147 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = folders; -#line 1147 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - list_len = gp_list_count (_tmp12_); -#line 8086 "ImportPage.c" - { - gint list_index = 0; -#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - list_index = 0; -#line 8091 "ImportPage.c" - { - gboolean _tmp13_ = FALSE; -#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = TRUE; -#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - while (TRUE) { -#line 8098 "ImportPage.c" - gint _tmp15_; - gint _tmp16_; - gchar* tmp = NULL; - CameraList* _tmp17_; - gint _tmp18_; - const gchar* _tmp19_ = NULL; - gchar* _tmp20_; - const gchar* _tmp21_; -#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!_tmp13_) { -#line 8109 "ImportPage.c" - gint _tmp14_; -#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp14_ = list_index; -#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - list_index = _tmp14_ + 1; -#line 8115 "ImportPage.c" - } -#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = FALSE; -#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp15_ = list_index; -#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp16_ = list_len; -#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!(_tmp15_ < _tmp16_)) { -#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 8127 "ImportPage.c" - } -#line 1152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp17_ = folders; -#line 1152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = list_index; -#line 1152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gp_list_get_name (_tmp17_, _tmp18_, &_tmp19_); -#line 1152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (tmp); -#line 1152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp20_ = g_strdup (_tmp19_); -#line 1152 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - tmp = _tmp20_; -#line 1153 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp21_ = tmp; -#line 1153 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (g_strcmp0 (_tmp21_, search_target) == 0) { -#line 1154 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = TRUE; -#line 1154 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (tmp); -#line 1154 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (folders); -#line 1154 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1154 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 8155 "ImportPage.c" - } -#line 1149 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (tmp); -#line 8159 "ImportPage.c" - } - } - } -#line 1157 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 1157 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (folders); -#line 1157 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1157 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 8171 "ImportPage.c" -} - - -static gboolean -____lambda18_ (ImportPage* self) -{ - gboolean result = FALSE; -#line 1180 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_refresh_camera (self); -#line 1181 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 1181 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 8185 "ImportPage.c" -} - - -static gboolean -_____lambda18__gsource_func (gpointer self) -{ - gboolean result; - result = ____lambda18_ ((ImportPage*) self); -#line 1179 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 8196 "ImportPage.c" -} - - -static ImportPageRefreshResult -import_page_refresh_camera (ImportPage* self) -{ - ImportPageRefreshResult result = 0; - gboolean _tmp0_; - gboolean _tmp1_; - Camera* _tmp2_; - GPSpinIdleWrapper* _tmp3_; - GPContext* _tmp4_; - int _tmp5_; - int _tmp9_; - gboolean _tmp15_; - GtkProgressBar* _tmp16_; - GtkProgressBar* _tmp17_; - GtkProgressBar* _tmp18_; - GtkProgressBar* _tmp19_; - GtkProgressBar* _tmp20_; - GeeArrayList* import_list = NULL; - GeeArrayList* _tmp21_; - CameraStorageInformation* sifs = NULL; - gint count = 0; - Camera* _tmp22_; - GPSpinIdleWrapper* _tmp23_; - GPContext* _tmp24_; - gint _tmp25_ = 0; - int _tmp26_; - int _tmp27_; - GeeArrayList* _tmp65_; - GeeArrayList* _tmp66_; - GtkProgressBar* _tmp67_; - GtkProgressBar* _tmp68_; - GtkProgressBar* _tmp69_; - GtkProgressBar* _tmp70_; - int res = 0; - Camera* _tmp71_; - GPSpinIdleWrapper* _tmp72_; - GPContext* _tmp73_; - int _tmp74_; - int _tmp78_; - int _tmp82_; -#line 1162 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_PAGE (self), 0); -#line 1163 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->busy; -#line 1163 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp0_) { -#line 1164 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = IMPORT_PAGE_REFRESH_RESULT_BUSY; -#line 1164 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 8250 "ImportPage.c" - } -#line 1166 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - checkerboard_page_set_page_message (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _ ("Connecting to camera, please wait…")); -#line 1167 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->busy; -#line 1167 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_update_status (self, _tmp1_, FALSE); -#line 1169 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->refresh_error); -#line 1169 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->refresh_error = NULL; -#line 1170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = self->priv->camera; -#line 1170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = import_page_spin_idle_context; -#line 1170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1170 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->refresh_result = gp_camera_init (_tmp2_, _tmp4_); -#line 1177 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = self->priv->refresh_result; -#line 1177 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp5_ == GP_ERROR_IO_USB_CLAIM) { -#line 8274 "ImportPage.c" - gint _tmp6_; -#line 1178 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = self->priv->claim_timeout; -#line 1178 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp6_ < 4000) { -#line 8280 "ImportPage.c" - gint _tmp7_; - gint _tmp8_; -#line 1179 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = self->priv->claim_timeout; -#line 1179 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) _tmp7_, _____lambda18__gsource_func, g_object_ref (self), g_object_unref); -#line 1183 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = self->priv->claim_timeout; -#line 1183 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->claim_timeout = _tmp8_ * 2; -#line 1185 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = IMPORT_PAGE_REFRESH_RESULT_LOCKED; -#line 1185 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 8295 "ImportPage.c" - } - } -#line 1190 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->claim_timeout = 500; -#line 1192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = self->priv->refresh_result; -#line 1192 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp9_ != GP_OK) { -#line 8304 "ImportPage.c" - int _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - ImportPageRefreshResult _tmp13_ = 0; - int _tmp14_; -#line 1193 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = self->priv->refresh_result; -#line 1193 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = gp_result_to_full_string (_tmp10_); -#line 1193 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = _tmp11_; -#line 1193 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1193: Unable to initialize camera: %s", _tmp12_); -#line 1193 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp12_); -#line 1195 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp14_ = self->priv->refresh_result; -#line 1195 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp14_ == GP_ERROR_IO_LOCK) { -#line 1195 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = IMPORT_PAGE_REFRESH_RESULT_LOCKED; -#line 8326 "ImportPage.c" - } else { -#line 1195 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = IMPORT_PAGE_REFRESH_RESULT_LIBRARY_ERROR; -#line 8330 "ImportPage.c" - } -#line 1195 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp13_; -#line 1195 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 8336 "ImportPage.c" - } -#line 1198 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - checkerboard_page_set_page_message (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _ ("Starting import, please wait…")); -#line 1199 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp15_ = self->priv->refreshed; -#line 1199 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_update_status (self, TRUE, _tmp15_); -#line 1201 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_on_view_changed (self); -#line 1203 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp16_ = self->priv->progress_bar; -#line 1203 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_ellipsize (_tmp16_, PANGO_ELLIPSIZE_NONE); -#line 1204 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp17_ = self->priv->progress_bar; -#line 1204 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_text (_tmp17_, _ ("Fetching photo information")); -#line 1205 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = self->priv->progress_bar; -#line 1205 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_fraction (_tmp18_, 0.0); -#line 1206 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp19_ = self->priv->progress_bar; -#line 1206 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_pulse_step (_tmp19_, 0.01); -#line 1207 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp20_ = self->priv->progress_bar; -#line 1207 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp21_ = gee_array_list_new (TYPE_IMPORT_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1209 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_list = _tmp21_; -#line 1211 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - sifs = NULL; -#line 1212 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - count = 0; -#line 1213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp22_ = self->priv->camera; -#line 1213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp23_ = import_page_spin_idle_context; -#line 1213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp24_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp26_ = gp_camera_get_storageinfo (_tmp22_, &sifs, &_tmp25_, _tmp24_); -#line 1213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - count = _tmp25_; -#line 1213 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->refresh_result = _tmp26_; -#line 1214 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp27_ = self->priv->refresh_result; -#line 1214 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp27_ == GP_OK) { -#line 8390 "ImportPage.c" - { - gint fsid = 0; -#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - fsid = 0; -#line 8395 "ImportPage.c" - { - gboolean _tmp28_ = FALSE; -#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp28_ = TRUE; -#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - while (TRUE) { -#line 8402 "ImportPage.c" - gint _tmp30_; - gint _tmp31_; - gboolean got_well_known_dir = FALSE; - gint _tmp32_; - gint _tmp35_; - gint _tmp38_; - gint _tmp41_; - gint _tmp44_; - gint _tmp47_; - gint _tmp50_; - gint _tmp53_; - gint _tmp56_; - gint _tmp59_; - gboolean _tmp62_; -#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!_tmp28_) { -#line 8419 "ImportPage.c" - gint _tmp29_; -#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp29_ = fsid; -#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - fsid = _tmp29_ + 1; -#line 8425 "ImportPage.c" - } -#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp28_ = FALSE; -#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp30_ = fsid; -#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp31_ = count; -#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!(_tmp30_ < _tmp31_)) { -#line 1215 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 8437 "ImportPage.c" - } -#line 1219 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - got_well_known_dir = FALSE; -#line 1222 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp32_ = fsid; -#line 1222 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (import_page_check_directory_exists (self, _tmp32_, "/", "DCIM")) { -#line 8445 "ImportPage.c" - gint _tmp33_; - GeeArrayList* _tmp34_; -#line 1223 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp33_ = fsid; -#line 1223 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp34_ = import_list; -#line 1223 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_enumerate_files (self, _tmp33_, "/DCIM", _tmp34_); -#line 1224 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - got_well_known_dir = TRUE; -#line 8456 "ImportPage.c" - } -#line 1226 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp35_ = fsid; -#line 1226 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (import_page_check_directory_exists (self, _tmp35_, "/", "dcim")) { -#line 8462 "ImportPage.c" - gint _tmp36_; - GeeArrayList* _tmp37_; -#line 1227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp36_ = fsid; -#line 1227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp37_ = import_list; -#line 1227 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_enumerate_files (self, _tmp36_, "/dcim", _tmp37_); -#line 1228 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - got_well_known_dir = TRUE; -#line 8473 "ImportPage.c" - } -#line 1233 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp38_ = fsid; -#line 1233 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (import_page_check_directory_exists (self, _tmp38_, "/PRIVATE/", "AVCHD")) { -#line 8479 "ImportPage.c" - gint _tmp39_; - GeeArrayList* _tmp40_; -#line 1234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp39_ = fsid; -#line 1234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp40_ = import_list; -#line 1234 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_enumerate_files (self, _tmp39_, "/PRIVATE/AVCHD", _tmp40_); -#line 1235 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - got_well_known_dir = TRUE; -#line 8490 "ImportPage.c" - } -#line 1237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp41_ = fsid; -#line 1237 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (import_page_check_directory_exists (self, _tmp41_, "/private/", "avchd")) { -#line 8496 "ImportPage.c" - gint _tmp42_; - GeeArrayList* _tmp43_; -#line 1238 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp42_ = fsid; -#line 1238 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp43_ = import_list; -#line 1238 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_enumerate_files (self, _tmp42_, "/private/avchd", _tmp43_); -#line 1239 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - got_well_known_dir = TRUE; -#line 8507 "ImportPage.c" - } -#line 1241 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp44_ = fsid; -#line 1241 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (import_page_check_directory_exists (self, _tmp44_, "/", "AVCHD")) { -#line 8513 "ImportPage.c" - gint _tmp45_; - GeeArrayList* _tmp46_; -#line 1242 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp45_ = fsid; -#line 1242 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp46_ = import_list; -#line 1242 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_enumerate_files (self, _tmp45_, "/AVCHD", _tmp46_); -#line 1243 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - got_well_known_dir = TRUE; -#line 8524 "ImportPage.c" - } -#line 1245 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp47_ = fsid; -#line 1245 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (import_page_check_directory_exists (self, _tmp47_, "/", "avchd")) { -#line 8530 "ImportPage.c" - gint _tmp48_; - GeeArrayList* _tmp49_; -#line 1246 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp48_ = fsid; -#line 1246 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp49_ = import_list; -#line 1246 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_enumerate_files (self, _tmp48_, "/avchd", _tmp49_); -#line 1247 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - got_well_known_dir = TRUE; -#line 8541 "ImportPage.c" - } -#line 1252 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp50_ = fsid; -#line 1252 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (import_page_check_directory_exists (self, _tmp50_, "/PRIVATE/", "SONY")) { -#line 8547 "ImportPage.c" - gint _tmp51_; - GeeArrayList* _tmp52_; -#line 1253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp51_ = fsid; -#line 1253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp52_ = import_list; -#line 1253 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_enumerate_files (self, _tmp51_, "/PRIVATE/SONY", _tmp52_); -#line 1254 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - got_well_known_dir = TRUE; -#line 8558 "ImportPage.c" - } -#line 1256 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp53_ = fsid; -#line 1256 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (import_page_check_directory_exists (self, _tmp53_, "/private/", "sony")) { -#line 8564 "ImportPage.c" - gint _tmp54_; - GeeArrayList* _tmp55_; -#line 1257 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp54_ = fsid; -#line 1257 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp55_ = import_list; -#line 1257 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_enumerate_files (self, _tmp54_, "/private/sony", _tmp55_); -#line 1258 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - got_well_known_dir = TRUE; -#line 8575 "ImportPage.c" - } -#line 1262 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp56_ = fsid; -#line 1262 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (import_page_check_directory_exists (self, _tmp56_, "/", "MP_ROOT")) { -#line 8581 "ImportPage.c" - gint _tmp57_; - GeeArrayList* _tmp58_; -#line 1263 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp57_ = fsid; -#line 1263 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp58_ = import_list; -#line 1263 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_enumerate_files (self, _tmp57_, "/MP_ROOT", _tmp58_); -#line 1264 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - got_well_known_dir = TRUE; -#line 8592 "ImportPage.c" - } -#line 1266 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp59_ = fsid; -#line 1266 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (import_page_check_directory_exists (self, _tmp59_, "/", "mp_root")) { -#line 8598 "ImportPage.c" - gint _tmp60_; - GeeArrayList* _tmp61_; -#line 1267 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp60_ = fsid; -#line 1267 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp61_ = import_list; -#line 1267 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_enumerate_files (self, _tmp60_, "/mp_root", _tmp61_); -#line 1268 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - got_well_known_dir = TRUE; -#line 8609 "ImportPage.c" - } -#line 1273 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp62_ = got_well_known_dir; -#line 1273 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!_tmp62_) { -#line 8615 "ImportPage.c" - gint _tmp63_; - GeeArrayList* _tmp64_; -#line 1274 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp63_ = fsid; -#line 1274 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp64_ = import_list; -#line 1274 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!import_page_enumerate_files (self, _tmp63_, "/", _tmp64_)) { -#line 1275 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 8626 "ImportPage.c" - } - } - } - } - } - } -#line 1280 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_clear_all_import_sources (self); -#line 1283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp65_ = import_list; -#line 1283 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_auto_match_raw_jpeg (self, _tmp65_); -#line 1290 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp66_ = import_list; -#line 1290 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_load_previews_and_metadata (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, GEE_TYPE_LIST, GeeList)); -#line 1297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp67_ = self->priv->progress_bar; -#line 1297 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1298 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp68_ = self->priv->progress_bar; -#line 1298 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_ellipsize (_tmp68_, PANGO_ELLIPSIZE_NONE); -#line 1299 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp69_ = self->priv->progress_bar; -#line 1299 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_text (_tmp69_, ""); -#line 1300 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp70_ = self->priv->progress_bar; -#line 1300 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_fraction (_tmp70_, 0.0); -#line 1302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp71_ = self->priv->camera; -#line 1302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp72_ = import_page_spin_idle_context; -#line 1302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp73_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1302 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - res = gp_camera_exit (_tmp71_, _tmp73_); -#line 1303 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp74_ = res; -#line 1303 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp74_ != GP_OK) { -#line 8671 "ImportPage.c" - int _tmp75_; - gchar* _tmp76_; - gchar* _tmp77_; -#line 1305 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp75_ = res; -#line 1305 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp76_ = gp_result_to_full_string (_tmp75_); -#line 1305 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp77_ = _tmp76_; -#line 1305 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1305: Unable to unlock camera: %s", _tmp77_); -#line 1305 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp77_); -#line 8685 "ImportPage.c" - } -#line 1308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp78_ = self->priv->refresh_result; -#line 1308 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp78_ == GP_OK) { -#line 8691 "ImportPage.c" - SourceCollection* _tmp79_; -#line 1309 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp79_ = self->priv->import_sources; -#line 1309 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp79_, TYPE_DATA_COLLECTION, DataCollection)) == 0) { -#line 8697 "ImportPage.c" - gchar* _tmp80_; - gchar* _tmp81_; -#line 1310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp80_ = checkerboard_page_get_view_empty_message (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 1310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp81_ = _tmp80_; -#line 1310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - checkerboard_page_set_page_message (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), _tmp81_); -#line 1310 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp81_); -#line 8708 "ImportPage.c" - } -#line 1312 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_update_status (self, FALSE, TRUE); -#line 8712 "ImportPage.c" - } else { -#line 1314 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_update_status (self, FALSE, FALSE); -#line 1317 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_clear_all_import_sources (self); -#line 8718 "ImportPage.c" - } -#line 1320 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_on_view_changed (self); -#line 1322 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp82_ = self->priv->refresh_result; -#line 1322 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - switch (_tmp82_) { -#line 1322 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - case GP_OK: -#line 8728 "ImportPage.c" - { -#line 1324 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = IMPORT_PAGE_REFRESH_RESULT_OK; -#line 1324 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (import_list); -#line 1324 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 8736 "ImportPage.c" - } -#line 1322 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - case GP_ERROR_IO_LOCK: -#line 8740 "ImportPage.c" - { -#line 1327 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = IMPORT_PAGE_REFRESH_RESULT_LOCKED; -#line 1327 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (import_list); -#line 1327 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 8748 "ImportPage.c" - } - default: - { -#line 1330 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = IMPORT_PAGE_REFRESH_RESULT_LIBRARY_ERROR; -#line 1330 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (import_list); -#line 1330 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 8758 "ImportPage.c" - } - } -#line 1162 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (import_list); -#line 8763 "ImportPage.c" -} - - -static gchar -string_get (const gchar* self, - glong index) -{ - gchar result = '\0'; - gchar _tmp0_; -#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, '\0'); -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = ((gchar*) self)[index]; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 8781 "ImportPage.c" -} - - -static gchar* -string_slice (const gchar* self, - glong start, - glong end) -{ - gchar* result = NULL; - glong string_length = 0L; - gint _tmp0_; - gint _tmp1_; - gboolean _tmp4_ = FALSE; - gboolean _tmp6_ = FALSE; - gchar* _tmp8_; -#line 1369 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp1_; -#line 1371 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (start < ((glong) 0)) { -#line 8807 "ImportPage.c" - glong _tmp2_; -#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = string_length; -#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - start = _tmp2_ + start; -#line 8813 "ImportPage.c" - } -#line 1374 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (end < ((glong) 0)) { -#line 8817 "ImportPage.c" - glong _tmp3_; -#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp3_ + end; -#line 8823 "ImportPage.c" - } -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (start >= ((glong) 0)) { -#line 8827 "ImportPage.c" - glong _tmp5_; -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = start <= _tmp5_; -#line 8833 "ImportPage.c" - } else { -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = FALSE; -#line 8837 "ImportPage.c" - } -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (_tmp4_, NULL); -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (end >= ((glong) 0)) { -#line 8843 "ImportPage.c" - glong _tmp7_; -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = string_length; -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = end <= _tmp7_; -#line 8849 "ImportPage.c" - } else { -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = FALSE; -#line 8853 "ImportPage.c" - } -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (_tmp6_, NULL); -#line 1379 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (start <= end, NULL); -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = g_strndup (((gchar*) self) + start, (gsize) (end - start)); -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp8_; -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 8865 "ImportPage.c" -} - - -static gchar* -import_page_chomp_ch (const gchar* str, - gchar ch) -{ - gchar* result = NULL; - glong offset = 0L; - gint _tmp0_; - gint _tmp1_; - gchar* _tmp7_; -#line 1334 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (str != NULL, NULL); -#line 1335 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = strlen (str); -#line 1335 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp0_; -#line 1335 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - offset = (glong) _tmp1_; -#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - while (TRUE) { -#line 8888 "ImportPage.c" - glong _tmp2_; - glong _tmp3_; - glong _tmp4_; -#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = offset; -#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - offset = _tmp2_ - 1; -#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = offset; -#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!(_tmp3_ >= ((glong) 0))) { -#line 1336 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 8902 "ImportPage.c" - } -#line 1337 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = offset; -#line 1337 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (string_get (str, _tmp4_) != ch) { -#line 8908 "ImportPage.c" - glong _tmp5_; - gchar* _tmp6_; -#line 1338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = offset; -#line 1338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = string_slice (str, (glong) 0, _tmp5_); -#line 1338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp6_; -#line 1338 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 8919 "ImportPage.c" - } - } -#line 1341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = g_strdup (""); -#line 1341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp7_; -#line 1341 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 8928 "ImportPage.c" -} - - -gchar* -import_page_append_path (const gchar* basepath, - const gchar* addition) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; -#line 1344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (basepath != NULL, NULL); -#line 1344 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (addition != NULL, NULL); -#line 1345 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!g_str_has_suffix (basepath, "/")) { -#line 1345 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = !g_str_has_prefix (addition, "/"); -#line 8946 "ImportPage.c" - } else { -#line 1345 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = FALSE; -#line 8950 "ImportPage.c" - } -#line 1345 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp0_) { -#line 8954 "ImportPage.c" - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = g_strconcat (basepath, "/", NULL); -#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = _tmp1_; -#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = g_strconcat (_tmp2_, addition, NULL); -#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = _tmp3_; -#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp2_); -#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp4_; -#line 1346 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 8973 "ImportPage.c" - } else { - gboolean _tmp5_ = FALSE; -#line 1347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (g_str_has_suffix (basepath, "/")) { -#line 1347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = g_str_has_prefix (addition, "/"); -#line 8980 "ImportPage.c" - } else { -#line 1347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = FALSE; -#line 8984 "ImportPage.c" - } -#line 1347 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp5_) { -#line 8988 "ImportPage.c" - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = import_page_chomp_ch (basepath, '/'); -#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = _tmp6_; -#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = g_strconcat (_tmp7_, addition, NULL); -#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = _tmp8_; -#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp7_); -#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp9_; -#line 1348 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9007 "ImportPage.c" - } else { - gchar* _tmp10_; -#line 1350 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = g_strconcat (basepath, addition, NULL); -#line 1350 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp10_; -#line 1350 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9016 "ImportPage.c" - } - } -} - - -gchar* -import_page_get_fs_basedir (Camera* camera, - gint fsid) -{ - gchar* result = NULL; - CameraStorageInformation* sifs = NULL; - gint count = 0; - int res = 0; - GPContextWrapper* _tmp0_; - GPContext* _tmp1_; - gint _tmp2_ = 0; - int _tmp3_; - int _tmp4_; - gint _tmp5_; - CameraStorageInformation* ifs = NULL; - CameraStorageInformation* _tmp6_; - const gchar* _tmp7_ = NULL; - CameraStorageInformation* _tmp8_; - CameraStorageInfoFields _tmp9_; - gchar* _tmp12_; -#line 1355 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (camera != NULL, NULL); -#line 1356 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - sifs = NULL; -#line 1357 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - count = 0; -#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = import_page_null_context; -#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp0_->context; -#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = gp_camera_get_storageinfo (camera, &sifs, &_tmp2_, _tmp1_); -#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - count = _tmp2_; -#line 1358 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - res = _tmp3_; -#line 1359 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = res; -#line 1359 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp4_ != GP_OK) { -#line 1360 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = NULL; -#line 1360 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9066 "ImportPage.c" - } -#line 1362 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = count; -#line 1362 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (fsid >= _tmp5_) { -#line 1363 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = NULL; -#line 1363 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9076 "ImportPage.c" - } -#line 1365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = sifs; -#line 1365 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ifs = _tmp6_ + fsid; -#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = ifs; -#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = (*_tmp8_).fields; -#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if ((_tmp9_ & GP_STORAGEINFO_BASE) != 0) { -#line 9088 "ImportPage.c" - CameraStorageInformation* _tmp10_; - const gchar* _tmp11_; -#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = ifs; -#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = (*_tmp10_).basedir; -#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = _tmp11_; -#line 9097 "ImportPage.c" - } else { -#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = "/"; -#line 9101 "ImportPage.c" - } -#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = g_strdup (_tmp7_); -#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp12_; -#line 1367 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9109 "ImportPage.c" -} - - -gchar* -import_page_get_fulldir (Camera* camera, - const gchar* camera_name, - gint fsid, - const gchar* folder) -{ - gchar* result = NULL; - gint _tmp0_; - gint _tmp1_; - gchar* basedir = NULL; - gchar* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp5_; - gchar* _tmp6_; -#line 1370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (camera != NULL, NULL); -#line 1370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (camera_name != NULL, NULL); -#line 1370 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (folder != NULL, NULL); -#line 1371 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = strlen (folder); -#line 1371 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp0_; -#line 1371 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp1_ > GP_MAX_BASEDIR_LENGTH) { -#line 1372 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = NULL; -#line 1372 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9143 "ImportPage.c" - } -#line 1374 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = import_page_get_fs_basedir (camera, fsid); -#line 1374 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - basedir = _tmp2_; -#line 1375 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = basedir; -#line 1375 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp3_ == NULL) { -#line 9153 "ImportPage.c" - gchar* _tmp4_; -#line 1376 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:1376: Unable to find base directory for %s fsid %d", camera_name, fsid); -#line 1378 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = g_strdup (folder); -#line 1378 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp4_; -#line 1378 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (basedir); -#line 1378 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9165 "ImportPage.c" - } -#line 1381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = basedir; -#line 1381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = import_page_append_path (_tmp5_, folder); -#line 1381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp6_; -#line 1381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (basedir); -#line 1381 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9177 "ImportPage.c" -} - - -static gboolean -import_page_enumerate_files (ImportPage* self, - gint fsid, - const gchar* dir, - GeeArrayList* import_list) -{ - gboolean result = FALSE; - gchar* fulldir = NULL; - Camera* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; - CameraList* files = NULL; - CameraList* _tmp4_ = NULL; - int _tmp5_; - int _tmp6_; - Camera* _tmp10_; - const gchar* _tmp11_; - CameraList* _tmp12_; - GPSpinIdleWrapper* _tmp13_; - GPContext* _tmp14_; - int _tmp15_; - CameraList* _tmp20_; - CameraList* folders = NULL; - CameraList* _tmp97_ = NULL; - int _tmp98_; - int _tmp99_; - Camera* _tmp103_; - const gchar* _tmp104_; - CameraList* _tmp105_; - GPSpinIdleWrapper* _tmp106_; - GPContext* _tmp107_; - int _tmp108_; - GError * _inner_error_ = NULL; -#line 1384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_PAGE (self), FALSE); -#line 1384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (dir != NULL, FALSE); -#line 1384 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (GEE_IS_ARRAY_LIST (import_list), FALSE); -#line 1385 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->camera; -#line 1385 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->camera_name; -#line 1385 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = import_page_get_fulldir (_tmp0_, _tmp1_, fsid, dir); -#line 1385 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - fulldir = _tmp2_; -#line 1386 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = fulldir; -#line 1386 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp3_ == NULL) { -#line 1387 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1387: Skipping enumerating %s: invalid folder name", dir); -#line 1389 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = TRUE; -#line 1389 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1389 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9241 "ImportPage.c" - } -#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = gp_list_new (&_tmp4_); -#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (files); -#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - files = _tmp4_; -#line 1393 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->refresh_result = _tmp5_; -#line 1394 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = self->priv->refresh_result; -#line 1394 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp6_ != GP_OK) { -#line 9255 "ImportPage.c" - int _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = self->priv->refresh_result; -#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = gp_result_to_full_string (_tmp7_); -#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = _tmp8_; -#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1395: Unable to create file list: %s", _tmp9_); -#line 1395 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp9_); -#line 1397 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 1397 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (files); -#line 1397 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1397 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9277 "ImportPage.c" - } -#line 1400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = self->priv->camera; -#line 1400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = fulldir; -#line 1400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = files; -#line 1400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = import_page_spin_idle_context; -#line 1400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp14_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1400 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->refresh_result = gp_camera_folder_list_files (_tmp10_, _tmp11_, _tmp12_, _tmp14_); -#line 1401 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp15_ = self->priv->refresh_result; -#line 1401 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp15_ != GP_OK) { -#line 9295 "ImportPage.c" - const gchar* _tmp16_; - int _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp16_ = fulldir; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp17_ = self->priv->refresh_result; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = gp_result_to_full_string (_tmp17_); -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp19_ = _tmp18_; -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1402: Unable to list files in %s: %s", _tmp16_, _tmp19_); -#line 1402 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp19_); -#line 1405 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->refresh_result = GP_OK; -#line 1407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = TRUE; -#line 1407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (files); -#line 1407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1407 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9322 "ImportPage.c" - } -#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp20_ = files; -#line 1409 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gp_list_sort (_tmp20_); -#line 9328 "ImportPage.c" - { - gint ctr = 0; -#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ctr = 0; -#line 9333 "ImportPage.c" - { - gboolean _tmp21_ = FALSE; -#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp21_ = TRUE; -#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - while (TRUE) { -#line 9340 "ImportPage.c" - gint _tmp23_; - CameraList* _tmp24_; - gchar* filename = NULL; - CameraList* _tmp25_; - gint _tmp26_; - const gchar* _tmp27_ = NULL; - int _tmp28_; - gchar* _tmp29_; - int _tmp30_; -#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!_tmp21_) { -#line 9352 "ImportPage.c" - gint _tmp22_; -#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp22_ = ctr; -#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ctr = _tmp22_ + 1; -#line 9358 "ImportPage.c" - } -#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp21_ = FALSE; -#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp23_ = ctr; -#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp24_ = files; -#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!(_tmp23_ < gp_list_count (_tmp24_))) { -#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 9370 "ImportPage.c" - } -#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp25_ = files; -#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp26_ = ctr; -#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp28_ = gp_list_get_name (_tmp25_, _tmp26_, &_tmp27_); -#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (filename); -#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp29_ = g_strdup (_tmp27_); -#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - filename = _tmp29_; -#line 1413 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->refresh_result = _tmp28_; -#line 1414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp30_ = self->priv->refresh_result; -#line 1414 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp30_ != GP_OK) { -#line 9390 "ImportPage.c" - gint _tmp31_; - const gchar* _tmp32_; - int _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; -#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp31_ = ctr; -#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp32_ = fulldir; -#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp33_ = self->priv->refresh_result; -#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp34_ = gp_result_to_full_string (_tmp33_); -#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp35_ = _tmp34_; -#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1415: Unable to get the name of file %d in %s: %s", _tmp31_, _tmp32_, _tmp35_); -#line 1415 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp35_); -#line 1418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 1418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (filename); -#line 1418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (files); -#line 1418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1418 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9420 "ImportPage.c" - } - { - CameraFileInfo info = {0}; - gboolean _tmp36_ = FALSE; - GPSpinIdleWrapper* _tmp37_; - GPContext* _tmp38_; - Camera* _tmp39_; - const gchar* _tmp40_; - const gchar* _tmp41_; - CameraFileInfo _tmp42_ = {0}; - gboolean _tmp43_; - CameraFileInfo _tmp46_; - CameraFileInfoFile _tmp47_; - CameraFileInfoFields _tmp48_; - const gchar* _tmp54_; - GtkProgressBar* _tmp89_; -#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp37_ = import_page_spin_idle_context; -#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp38_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp39_ = self->priv->camera; -#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp40_ = fulldir; -#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp41_ = filename; -#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp43_ = gp_get_info (_tmp38_, _tmp39_, _tmp40_, _tmp41_, &_tmp42_, &_inner_error_); -#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - (info); -#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - info = _tmp42_; -#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp36_ = _tmp43_; -#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - (info); -#line 9459 "ImportPage.c" - goto __catch76_g_error; - } -#line 1423 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!_tmp36_) { -#line 9464 "ImportPage.c" - const gchar* _tmp44_; - const gchar* _tmp45_; -#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp44_ = fulldir; -#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp45_ = filename; -#line 1424 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1424: Skipping import of %s/%s: name too long", _tmp44_, _tmp45_); -#line 1426 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - (info); -#line 1426 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (filename); -#line 1426 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - continue; -#line 9479 "ImportPage.c" - } -#line 1429 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp46_ = info; -#line 1429 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp47_ = _tmp46_.file; -#line 1429 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp48_ = _tmp47_.fields; -#line 1429 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if ((_tmp48_ & GP_FILE_INFO_TYPE) == 0) { -#line 9489 "ImportPage.c" - const gchar* _tmp49_; - const gchar* _tmp50_; - CameraFileInfo _tmp51_; - CameraFileInfoFile _tmp52_; - CameraFileInfoFields _tmp53_; -#line 1430 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp49_ = fulldir; -#line 1430 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp50_ = filename; -#line 1430 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp51_ = info; -#line 1430 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp52_ = _tmp51_.file; -#line 1430 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp53_ = _tmp52_.fields; -#line 1430 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_message ("ImportPage.vala:1430: Skipping %s/%s: No file (file=%02Xh)", _tmp49_, _tmp50_, (guint) _tmp53_); -#line 1433 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - (info); -#line 1433 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (filename); -#line 1433 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - continue; -#line 9513 "ImportPage.c" - } -#line 1436 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp54_ = filename; -#line 1436 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (video_reader_is_supported_video_filename (_tmp54_)) { -#line 9519 "ImportPage.c" - VideoImportSource* video_source = NULL; - const gchar* _tmp55_; - Camera* _tmp56_; - const gchar* _tmp57_; - CameraFileInfo _tmp58_; - CameraFileInfoFile _tmp59_; - gulong _tmp60_; - CameraFileInfo _tmp61_; - CameraFileInfoFile _tmp62_; - time_t _tmp63_; - VideoImportSource* _tmp64_; - VideoImportSource* _tmp65_; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp55_ = self->priv->camera_name; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp56_ = self->priv->camera; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp57_ = filename; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp58_ = info; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp59_ = _tmp58_.file; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp60_ = _tmp59_.size; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp61_ = info; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp62_ = _tmp61_.file; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp63_ = _tmp62_.mtime; -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp64_ = video_import_source_new (_tmp55_, _tmp56_, fsid, dir, _tmp57_, _tmp60_, _tmp63_); -#line 1437 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - video_source = _tmp64_; -#line 1439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp65_ = video_source; -#line 1439 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1436 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (video_source); -#line 9560 "ImportPage.c" - } else { - PhotoFileFormat file_format = 0; - CameraFileInfo _tmp66_; - CameraFileInfoFile _tmp67_; - const gchar* _tmp68_; - PhotoFileFormat _tmp69_; - const gchar* _tmp77_; - Camera* _tmp78_; - const gchar* _tmp79_; - CameraFileInfo _tmp80_; - CameraFileInfoFile _tmp81_; - gulong _tmp82_; - CameraFileInfo _tmp83_; - CameraFileInfoFile _tmp84_; - time_t _tmp85_; - PhotoFileFormat _tmp86_; - PhotoImportSource* _tmp87_; - PhotoImportSource* _tmp88_; -#line 1442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp66_ = info; -#line 1442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp67_ = _tmp66_.file; -#line 1442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp68_ = _tmp67_.type; -#line 1442 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - file_format = photo_file_format_from_gphoto_type (_tmp68_); -#line 1443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp69_ = file_format; -#line 1443 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp69_ == PHOTO_FILE_FORMAT_UNKNOWN) { -#line 9591 "ImportPage.c" - const gchar* _tmp70_; - PhotoFileFormat _tmp71_; -#line 1444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp70_ = filename; -#line 1444 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - file_format = photo_file_format_get_by_basename_extension (_tmp70_); -#line 1445 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp71_ = file_format; -#line 1445 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp71_ == PHOTO_FILE_FORMAT_UNKNOWN) { -#line 9602 "ImportPage.c" - const gchar* _tmp72_; - const gchar* _tmp73_; - CameraFileInfo _tmp74_; - CameraFileInfoFile _tmp75_; - const gchar* _tmp76_; -#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp72_ = fulldir; -#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp73_ = filename; -#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp74_ = info; -#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp75_ = _tmp74_.file; -#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp76_ = _tmp75_.type; -#line 1446 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_message ("ImportPage.vala:1446: Skipping %s/%s: Not a supported file extension (" \ -"%s)", _tmp72_, _tmp73_, _tmp76_); -#line 1449 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - (info); -#line 1449 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (filename); -#line 1449 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - continue; -#line 9626 "ImportPage.c" - } - } -#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp77_ = self->priv->camera_name; -#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp78_ = self->priv->camera; -#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp79_ = filename; -#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp80_ = info; -#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp81_ = _tmp80_.file; -#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp82_ = _tmp81_.size; -#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp83_ = info; -#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp84_ = _tmp83_.file; -#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp85_ = _tmp84_.mtime; -#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp86_ = file_format; -#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp87_ = photo_import_source_new (_tmp77_, _tmp78_, fsid, dir, _tmp79_, _tmp82_, _tmp85_, _tmp86_); -#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp88_ = _tmp87_; -#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1452 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp88_); -#line 9657 "ImportPage.c" - } -#line 1456 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp89_ = self->priv->progress_bar; -#line 1456 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_pulse (_tmp89_); -#line 1459 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - spin_event_loop (); -#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - (info); -#line 9667 "ImportPage.c" - } - goto __finally76; - __catch76_g_error: - { - GError* err = NULL; - const gchar* _tmp90_; - GError* _tmp91_; - const gchar* _tmp92_; - GError* _tmp93_; - const gchar* _tmp94_; - gchar* _tmp95_; -#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - err = _inner_error_; -#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _inner_error_ = NULL; -#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp90_ = fulldir; -#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp91_ = err; -#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp92_ = _tmp91_->message; -#line 1461 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1461: Error while enumerating files in %s: %s", _tmp90_, _tmp92_); -#line 1463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp93_ = err; -#line 1463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp94_ = _tmp93_->message; -#line 1463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp95_ = g_strdup (_tmp94_); -#line 1463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->refresh_error); -#line 1463 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->refresh_error = _tmp95_; -#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_error_free0 (err); -#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (filename); -#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (files); -#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9713 "ImportPage.c" - } - __finally76: -#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9718 "ImportPage.c" - gboolean _tmp96_ = FALSE; -#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (filename); -#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (files); -#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_clear_error (&_inner_error_); -#line 1421 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return _tmp96_; -#line 9732 "ImportPage.c" - } -#line 1411 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (filename); -#line 9736 "ImportPage.c" - } - } - } -#line 1470 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp98_ = gp_list_new (&_tmp97_); -#line 1470 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (folders); -#line 1470 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - folders = _tmp97_; -#line 1470 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->refresh_result = _tmp98_; -#line 1471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp99_ = self->priv->refresh_result; -#line 1471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp99_ != GP_OK) { -#line 9752 "ImportPage.c" - int _tmp100_; - gchar* _tmp101_; - gchar* _tmp102_; -#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp100_ = self->priv->refresh_result; -#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp101_ = gp_result_to_full_string (_tmp100_); -#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp102_ = _tmp101_; -#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1472: Unable to create folder list: %s", _tmp102_); -#line 1472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp102_); -#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (folders); -#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (files); -#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1474 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9776 "ImportPage.c" - } -#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp103_ = self->priv->camera; -#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp104_ = fulldir; -#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp105_ = folders; -#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp106_ = import_page_spin_idle_context; -#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp107_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp106_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1477 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->refresh_result = gp_camera_folder_list_folders (_tmp103_, _tmp104_, _tmp105_, _tmp107_); -#line 1478 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp108_ = self->priv->refresh_result; -#line 1478 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp108_ != GP_OK) { -#line 9794 "ImportPage.c" - const gchar* _tmp109_; - int _tmp110_; - gchar* _tmp111_; - gchar* _tmp112_; -#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp109_ = fulldir; -#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp110_ = self->priv->refresh_result; -#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp111_ = gp_result_to_full_string (_tmp110_); -#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp112_ = _tmp111_; -#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1479: Unable to list folders in %s: %s", _tmp109_, _tmp112_); -#line 1479 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp112_); -#line 1482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->refresh_result = GP_OK; -#line 1484 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = TRUE; -#line 1484 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (folders); -#line 1484 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (files); -#line 1484 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1484 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9823 "ImportPage.c" - } - { - gint ctr = 0; -#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ctr = 0; -#line 9829 "ImportPage.c" - { - gboolean _tmp113_ = FALSE; -#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp113_ = TRUE; -#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - while (TRUE) { -#line 9836 "ImportPage.c" - gint _tmp115_; - CameraList* _tmp116_; - gchar* subdir = NULL; - CameraList* _tmp117_; - gint _tmp118_; - const gchar* _tmp119_ = NULL; - int _tmp120_; - gchar* _tmp121_; - int _tmp122_; - const gchar* _tmp127_; - gchar* _tmp128_; - gchar* _tmp129_; - gboolean _tmp130_; -#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!_tmp113_) { -#line 9852 "ImportPage.c" - gint _tmp114_; -#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp114_ = ctr; -#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ctr = _tmp114_ + 1; -#line 9858 "ImportPage.c" - } -#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp113_ = FALSE; -#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp115_ = ctr; -#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp116_ = folders; -#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!(_tmp115_ < gp_list_count (_tmp116_))) { -#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 9870 "ImportPage.c" - } -#line 1489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp117_ = folders; -#line 1489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp118_ = ctr; -#line 1489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp120_ = gp_list_get_name (_tmp117_, _tmp118_, &_tmp119_); -#line 1489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (subdir); -#line 1489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp121_ = g_strdup (_tmp119_); -#line 1489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - subdir = _tmp121_; -#line 1489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->refresh_result = _tmp120_; -#line 1490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp122_ = self->priv->refresh_result; -#line 1490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp122_ != GP_OK) { -#line 9890 "ImportPage.c" - gint _tmp123_; - int _tmp124_; - gchar* _tmp125_; - gchar* _tmp126_; -#line 1491 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp123_ = ctr; -#line 1491 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp124_ = self->priv->refresh_result; -#line 1491 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp125_ = gp_result_to_full_string (_tmp124_); -#line 1491 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp126_ = _tmp125_; -#line 1491 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1491: Unable to get name of folder %d: %s", _tmp123_, _tmp126_); -#line 1491 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp126_); -#line 1493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 1493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (subdir); -#line 1493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (folders); -#line 1493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (files); -#line 1493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9919 "ImportPage.c" - } -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp127_ = subdir; -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp128_ = import_page_append_path (dir, _tmp127_); -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp129_ = _tmp128_; -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp130_ = !import_page_enumerate_files (self, fsid, _tmp129_, import_list); -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp129_); -#line 1496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp130_) { -#line 1497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 1497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (subdir); -#line 1497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (folders); -#line 1497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (files); -#line 1497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9945 "ImportPage.c" - } -#line 1487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (subdir); -#line 9949 "ImportPage.c" - } - } - } -#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = TRUE; -#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (folders); -#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_list_unref0 (files); -#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 9963 "ImportPage.c" -} - - -static void -import_page_auto_match_raw_jpeg (ImportPage* self, - GeeArrayList* import_list) -{ -#line 1504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (GEE_IS_ARRAY_LIST (import_list)); -#line 9975 "ImportPage.c" - { - gint i = 0; -#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - i = 0; -#line 9980 "ImportPage.c" - { - gboolean _tmp0_ = FALSE; -#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = TRUE; -#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - while (TRUE) { -#line 9987 "ImportPage.c" - gint _tmp2_; - gint _tmp3_; - gint _tmp4_; - PhotoImportSource* current = NULL; - gint _tmp5_; - gpointer _tmp6_; - ImportSource* _tmp7_; - PhotoImportSource* _tmp8_; - PhotoImportSource* _tmp9_ = NULL; - gint _tmp10_; - gint _tmp11_; - gint _tmp12_; - PhotoImportSource* next = NULL; - PhotoImportSource* _tmp17_; - PhotoImportSource* _tmp18_ = NULL; - gint _tmp19_; - PhotoImportSource* prev = NULL; - PhotoImportSource* _tmp24_; - gboolean _tmp25_ = FALSE; - PhotoImportSource* _tmp26_; -#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!_tmp0_) { -#line 10010 "ImportPage.c" - gint _tmp1_; -#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = i; -#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - i = _tmp1_ + 1; -#line 10016 "ImportPage.c" - } -#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = FALSE; -#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = i; -#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = _tmp3_; -#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!(_tmp2_ < _tmp4_)) { -#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 10030 "ImportPage.c" - } -#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = i; -#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp5_); -#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = (ImportSource*) _tmp6_; -#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp7_) : NULL; -#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp8_ == NULL) { -#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp7_); -#line 10044 "ImportPage.c" - } -#line 1506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - current = _tmp8_; -#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = i; -#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = _tmp11_; -#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if ((_tmp10_ + 1) < _tmp12_) { -#line 10056 "ImportPage.c" - gint _tmp13_; - gpointer _tmp14_; - ImportSource* _tmp15_; - PhotoImportSource* _tmp16_; -#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = i; -#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp14_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp13_ + 1); -#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp15_ = (ImportSource*) _tmp14_; -#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp16_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp15_) : NULL; -#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp16_ == NULL) { -#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp15_); -#line 10073 "ImportPage.c" - } -#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp9_); -#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = _tmp16_; -#line 10079 "ImportPage.c" - } else { -#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp9_); -#line 1508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = NULL; -#line 10085 "ImportPage.c" - } -#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp17_ = _g_object_ref0 (_tmp9_); -#line 1507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - next = _tmp17_; -#line 1509 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp19_ = i; -#line 1509 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp19_ > 0) { -#line 10095 "ImportPage.c" - gint _tmp20_; - gpointer _tmp21_; - ImportSource* _tmp22_; - PhotoImportSource* _tmp23_; -#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp20_ = i; -#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp21_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp20_ - 1); -#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp22_ = (ImportSource*) _tmp21_; -#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp23_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp22_) : NULL; -#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp23_ == NULL) { -#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp22_); -#line 10112 "ImportPage.c" - } -#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp18_); -#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = _tmp23_; -#line 10118 "ImportPage.c" - } else { -#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp18_); -#line 1510 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = NULL; -#line 10124 "ImportPage.c" - } -#line 1509 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp24_ = _g_object_ref0 (_tmp18_); -#line 1509 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - prev = _tmp24_; -#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp26_ = current; -#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp26_ != NULL) { -#line 10134 "ImportPage.c" - PhotoImportSource* _tmp27_; -#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp27_ = current; -#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp25_ = photo_import_source_get_file_format (_tmp27_) == PHOTO_FILE_FORMAT_RAW; -#line 10140 "ImportPage.c" - } else { -#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp25_ = FALSE; -#line 10144 "ImportPage.c" - } -#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp25_) { -#line 10148 "ImportPage.c" - gchar* current_name = NULL; - gchar* ext = NULL; - PhotoImportSource* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_ = NULL; - gchar* _tmp32_ = NULL; - PhotoImportSource* associated = NULL; - gboolean _tmp33_ = FALSE; - PhotoImportSource* _tmp34_; - gboolean _tmp45_ = FALSE; - PhotoImportSource* _tmp46_; - PhotoImportSource* _tmp57_; -#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp28_ = current; -#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp29_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp30_ = _tmp29_; -#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - disassemble_filename (_tmp30_, &_tmp31_, &_tmp32_); -#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (current_name); -#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - current_name = _tmp31_; -#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (ext); -#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ext = _tmp32_; -#line 1514 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp30_); -#line 1517 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - associated = NULL; -#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp34_ = next; -#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp34_ != NULL) { -#line 10186 "ImportPage.c" - PhotoImportSource* _tmp35_; -#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp35_ = next; -#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp33_ = photo_import_source_get_file_format (_tmp35_) == PHOTO_FILE_FORMAT_JFIF; -#line 10192 "ImportPage.c" - } else { -#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp33_ = FALSE; -#line 10196 "ImportPage.c" - } -#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp33_) { -#line 10200 "ImportPage.c" - gchar* next_name = NULL; - PhotoImportSource* _tmp36_; - gchar* _tmp37_; - gchar* _tmp38_; - gchar* _tmp39_ = NULL; - gchar* _tmp40_ = NULL; - const gchar* _tmp41_; - const gchar* _tmp42_; -#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp36_ = next; -#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp37_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp38_ = _tmp37_; -#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - disassemble_filename (_tmp38_, &_tmp39_, &_tmp40_); -#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (next_name); -#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - next_name = _tmp39_; -#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (ext); -#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ext = _tmp40_; -#line 1520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp38_); -#line 1521 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp41_ = next_name; -#line 1521 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp42_ = current_name; -#line 1521 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (g_strcmp0 (_tmp41_, _tmp42_) == 0) { -#line 10233 "ImportPage.c" - PhotoImportSource* _tmp43_; - PhotoImportSource* _tmp44_; -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp43_ = next; -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp44_ = _g_object_ref0 (_tmp43_); -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (associated); -#line 1522 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - associated = _tmp44_; -#line 10244 "ImportPage.c" - } -#line 1518 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (next_name); -#line 10248 "ImportPage.c" - } -#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp46_ = prev; -#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp46_ != NULL) { -#line 10254 "ImportPage.c" - PhotoImportSource* _tmp47_; -#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp47_ = prev; -#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp45_ = photo_import_source_get_file_format (_tmp47_) == PHOTO_FILE_FORMAT_JFIF; -#line 10260 "ImportPage.c" - } else { -#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp45_ = FALSE; -#line 10264 "ImportPage.c" - } -#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp45_) { -#line 10268 "ImportPage.c" - gchar* prev_name = NULL; - PhotoImportSource* _tmp48_; - gchar* _tmp49_; - gchar* _tmp50_; - gchar* _tmp51_ = NULL; - gchar* _tmp52_ = NULL; - const gchar* _tmp53_; - const gchar* _tmp54_; -#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp48_ = prev; -#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp49_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp50_ = _tmp49_; -#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - disassemble_filename (_tmp50_, &_tmp51_, &_tmp52_); -#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (prev_name); -#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - prev_name = _tmp51_; -#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (ext); -#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ext = _tmp52_; -#line 1526 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp50_); -#line 1527 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp53_ = prev_name; -#line 1527 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp54_ = current_name; -#line 1527 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (g_strcmp0 (_tmp53_, _tmp54_) == 0) { -#line 10301 "ImportPage.c" - PhotoImportSource* _tmp55_; - PhotoImportSource* _tmp56_; -#line 1528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp55_ = prev; -#line 1528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp56_ = _g_object_ref0 (_tmp55_); -#line 1528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (associated); -#line 1528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - associated = _tmp56_; -#line 10312 "ImportPage.c" - } -#line 1524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (prev_name); -#line 10316 "ImportPage.c" - } -#line 1532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp57_ = associated; -#line 1532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp57_ != NULL) { -#line 10322 "ImportPage.c" - PhotoImportSource* _tmp58_; - gchar* _tmp59_; - gchar* _tmp60_; - PhotoImportSource* _tmp61_; - gchar* _tmp62_; - gchar* _tmp63_; - PhotoImportSource* _tmp64_; - PhotoImportSource* _tmp65_; - PhotoImportSource* _tmp66_; -#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp58_ = current; -#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp59_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp60_ = _tmp59_; -#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp61_ = associated; -#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp62_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp63_ = _tmp62_; -#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:1533: Found RAW+JPEG pair: %s and %s", _tmp60_, _tmp63_); -#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp63_); -#line 1533 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp60_); -#line 1534 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp64_ = current; -#line 1534 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp65_ = associated; -#line 1534 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - photo_import_source_set_associated (_tmp64_, _tmp65_); -#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp66_ = associated; -#line 1535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, TYPE_IMPORT_SOURCE, ImportSource))) { -#line 10360 "ImportPage.c" - PhotoImportSource* _tmp67_; -#line 1536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:1536: Unable to associate files"); -#line 1537 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp67_ = current; -#line 1537 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - photo_import_source_set_associated (_tmp67_, NULL); -#line 10368 "ImportPage.c" - } - } -#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (associated); -#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (ext); -#line 1511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (current_name); -#line 10377 "ImportPage.c" - } -#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (prev); -#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp18_); -#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (next); -#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp9_); -#line 1505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (current); -#line 10389 "ImportPage.c" - } - } - } -} - - -static void -import_page_load_previews_and_metadata (ImportPage* self, - GeeList* import_list) -{ - gint loaded_photos = 0; - GError * _inner_error_ = NULL; -#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (GEE_IS_LIST (import_list)); -#line 1545 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - loaded_photos = 0; -#line 10408 "ImportPage.c" - { - GeeList* _import_source_list = NULL; - GeeList* _tmp0_; - gint _import_source_size = 0; - GeeList* _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint _import_source_index = 0; -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = _g_object_ref0 (import_list); -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _import_source_list = _tmp0_; -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _import_source_list; -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _tmp2_; -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _import_source_size = _tmp3_; -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _import_source_index = -1; -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - while (TRUE) { -#line 10433 "ImportPage.c" - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; - ImportSource* import_source = NULL; - GeeList* _tmp7_; - gint _tmp8_; - gpointer _tmp9_; - gchar* filename = NULL; - ImportSource* _tmp10_; - gchar* _tmp11_; - gchar* fulldir = NULL; - ImportSource* _tmp12_; - gchar* _tmp13_; - const gchar* _tmp14_; - PhotoImportSource* associated = NULL; - gboolean _tmp18_ = FALSE; - ImportSource* _tmp19_; - GtkProgressBar* _tmp25_; - GtkProgressBar* _tmp26_; - ImportSource* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - PhotoMetadata* metadata = NULL; - const gchar* _tmp32_; - gchar* exif_only_md5 = NULL; - PhotoMetadata* _tmp45_; - GdkPixbuf* preview = NULL; - gchar* preview_md5 = NULL; - ImportSource* _tmp71_; - ImportSource* _tmp74_; - PhotoImportSource* _tmp80_; - SourceCollection* _tmp104_; - ImportSource* _tmp105_; - GtkProgressBar* _tmp106_; - gint _tmp107_; - gint _tmp108_; - gint _tmp109_; - gint _tmp110_; -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = _import_source_index; -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _import_source_index = _tmp4_ + 1; -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = _import_source_index; -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = _import_source_size; -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!(_tmp5_ < _tmp6_)) { -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 10486 "ImportPage.c" - } -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = _import_source_list; -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = _import_source_index; -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = gee_list_get (_tmp7_, _tmp8_); -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_source = (ImportSource*) _tmp9_; -#line 1547 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = import_source; -#line 1547 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = import_source_get_filename (_tmp10_); -#line 1547 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - filename = _tmp11_; -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = import_source; -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = import_source_get_fulldir (_tmp12_); -#line 1548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - fulldir = _tmp13_; -#line 1549 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp14_ = fulldir; -#line 1549 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp14_ == NULL) { -#line 10512 "ImportPage.c" - ImportSource* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; -#line 1550 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp15_ = import_source; -#line 1550 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp16_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_OBJECT, DataObject)); -#line 1550 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp17_ = _tmp16_; -#line 1550 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1550: Skipping loading preview of %s: invalid folder n" \ -"ame", _tmp17_); -#line 1550 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp17_); -#line 1552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (filename); -#line 1552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (import_source); -#line 1552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - continue; -#line 10534 "ImportPage.c" - } -#line 1556 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - associated = NULL; -#line 1557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp19_ = import_source; -#line 1557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_PHOTO_IMPORT_SOURCE)) { -#line 10542 "ImportPage.c" - ImportSource* _tmp20_; - PhotoImportSource* _tmp21_; - PhotoImportSource* _tmp22_; -#line 1558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp20_ = import_source; -#line 1558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp21_ = photo_import_source_get_associated (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource)); -#line 1558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp22_ = _tmp21_; -#line 1558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = _tmp22_ != NULL; -#line 1558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp22_); -#line 10556 "ImportPage.c" - } else { -#line 1557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = FALSE; -#line 10560 "ImportPage.c" - } -#line 1557 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp18_) { -#line 10564 "ImportPage.c" - ImportSource* _tmp23_; - PhotoImportSource* _tmp24_; -#line 1559 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp23_ = import_source; -#line 1559 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp24_ = photo_import_source_get_associated (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource)); -#line 1559 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (associated); -#line 1559 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - associated = _tmp24_; -#line 10575 "ImportPage.c" - } -#line 1562 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp25_ = self->priv->progress_bar; -#line 1562 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_ellipsize (_tmp25_, PANGO_ELLIPSIZE_MIDDLE); -#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp26_ = self->priv->progress_bar; -#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp27_ = import_source; -#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp28_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_DATA_OBJECT, DataObject)); -#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp29_ = _tmp28_; -#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp30_ = g_strdup_printf (_ ("Fetching preview for %s"), _tmp29_); -#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp31_ = _tmp30_; -#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_text (_tmp26_, _tmp31_); -#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp31_); -#line 1563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp29_); -#line 1570 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - metadata = NULL; -#line 1571 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp32_ = filename; -#line 1571 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!video_reader_is_supported_video_filename (_tmp32_)) { -#line 10605 "ImportPage.c" - { - PhotoMetadata* _tmp33_ = NULL; - GPSpinIdleWrapper* _tmp34_; - GPContext* _tmp35_; - Camera* _tmp36_; - const gchar* _tmp37_; - const gchar* _tmp38_; - PhotoMetadata* _tmp39_; - PhotoMetadata* _tmp40_; -#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp34_ = import_page_spin_idle_context; -#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp35_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp36_ = self->priv->camera; -#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp37_ = fulldir; -#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp38_ = filename; -#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp39_ = gp_load_metadata (_tmp35_, _tmp36_, _tmp37_, _tmp38_, &_inner_error_); -#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp33_ = _tmp39_; -#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 10631 "ImportPage.c" - goto __catch77_g_error; - } -#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp40_ = _tmp33_; -#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp33_ = NULL; -#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _media_metadata_unref0 (metadata); -#line 1573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - metadata = _tmp40_; -#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _media_metadata_unref0 (_tmp33_); -#line 10644 "ImportPage.c" - } - goto __finally77; - __catch77_g_error: - { - GError* err = NULL; - const gchar* _tmp41_; - const gchar* _tmp42_; - GError* _tmp43_; - const gchar* _tmp44_; -#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - err = _inner_error_; -#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _inner_error_ = NULL; -#line 1576 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp41_ = fulldir; -#line 1576 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp42_ = filename; -#line 1576 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp43_ = err; -#line 1576 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp44_ = _tmp43_->message; -#line 1576 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1576: Unable to fetch metadata for %s/%s: %s", _tmp41_, _tmp42_, _tmp44_); -#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_error_free0 (err); -#line 10670 "ImportPage.c" - } - __finally77: -#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _media_metadata_unref0 (metadata); -#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (associated); -#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (filename); -#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (import_source); -#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_import_source_list); -#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_clear_error (&_inner_error_); -#line 1572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return; -#line 10693 "ImportPage.c" - } - } -#line 1582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - exif_only_md5 = NULL; -#line 1583 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp45_ = metadata; -#line 1583 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp45_ != NULL) { -#line 10702 "ImportPage.c" - PhotoMetadata* _tmp46_; - gchar* _tmp47_; -#line 1584 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp46_ = metadata; -#line 1584 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp47_ = photo_metadata_exif_hash (_tmp46_); -#line 1584 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (exif_only_md5); -#line 1584 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - exif_only_md5 = _tmp47_; -#line 10713 "ImportPage.c" - } -#line 1593 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - preview = NULL; -#line 1594 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - preview_md5 = NULL; -#line 10719 "ImportPage.c" - { - gchar* preview_fulldir = NULL; - const gchar* _tmp48_; - gchar* _tmp49_; - gchar* preview_filename = NULL; - const gchar* _tmp50_; - gchar* _tmp51_; - PhotoImportSource* _tmp52_; - GdkPixbuf* _tmp57_ = NULL; - GPSpinIdleWrapper* _tmp58_; - GPContext* _tmp59_; - Camera* _tmp60_; - const gchar* _tmp61_; - const gchar* _tmp62_; - gchar* _tmp63_ = NULL; - GdkPixbuf* _tmp64_; - GdkPixbuf* _tmp65_; -#line 1596 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp48_ = fulldir; -#line 1596 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp49_ = g_strdup (_tmp48_); -#line 1596 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - preview_fulldir = _tmp49_; -#line 1597 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp50_ = filename; -#line 1597 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp51_ = g_strdup (_tmp50_); -#line 1597 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - preview_filename = _tmp51_; -#line 1598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp52_ = associated; -#line 1598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp52_ != NULL) { -#line 10753 "ImportPage.c" - PhotoImportSource* _tmp53_; - gchar* _tmp54_; - PhotoImportSource* _tmp55_; - gchar* _tmp56_; -#line 1599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp53_ = associated; -#line 1599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp54_ = import_source_get_fulldir (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (preview_fulldir); -#line 1599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - preview_fulldir = _tmp54_; -#line 1600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp55_ = associated; -#line 1600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp56_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (preview_filename); -#line 1600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - preview_filename = _tmp56_; -#line 10774 "ImportPage.c" - } -#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp58_ = import_page_spin_idle_context; -#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp59_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp60_ = self->priv->camera; -#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp61_ = preview_fulldir; -#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp62_ = preview_filename; -#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp64_ = gp_load_preview (_tmp59_, _tmp60_, _tmp61_, _tmp62_, &_tmp63_, &_inner_error_); -#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (preview_md5); -#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - preview_md5 = _tmp63_; -#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp57_ = _tmp64_; -#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (preview_filename); -#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (preview_fulldir); -#line 10800 "ImportPage.c" - goto __catch78_g_error; - } -#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp65_ = _tmp57_; -#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp57_ = NULL; -#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (preview); -#line 1602 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - preview = _tmp65_; -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp57_); -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (preview_filename); -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (preview_fulldir); -#line 10817 "ImportPage.c" - } - goto __finally78; - __catch78_g_error: - { - GError* err = NULL; - const gchar* _tmp66_; -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - err = _inner_error_; -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _inner_error_ = NULL; -#line 1610 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp66_ = filename; -#line 1610 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!video_reader_is_supported_video_filename (_tmp66_)) { -#line 10832 "ImportPage.c" - const gchar* _tmp67_; - const gchar* _tmp68_; - GError* _tmp69_; - const gchar* _tmp70_; -#line 1611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp67_ = fulldir; -#line 1611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp68_ = filename; -#line 1611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp69_ = err; -#line 1611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp70_ = _tmp69_->message; -#line 1611 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1611: Unable to fetch preview for %s/%s: %s", _tmp67_, _tmp68_, _tmp70_); -#line 10847 "ImportPage.c" - } -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_error_free0 (err); -#line 10851 "ImportPage.c" - } - __finally78: -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (preview_md5); -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (preview); -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (exif_only_md5); -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _media_metadata_unref0 (metadata); -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (associated); -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (filename); -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (import_source); -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_import_source_list); -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_clear_error (&_inner_error_); -#line 1595 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return; -#line 10880 "ImportPage.c" - } -#line 1619 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp71_ = import_source; -#line 1619 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp71_, TYPE_VIDEO_IMPORT_SOURCE)) { -#line 10886 "ImportPage.c" - ImportSource* _tmp72_; - GdkPixbuf* _tmp73_; -#line 1620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp72_ = import_source; -#line 1620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp73_ = preview; -#line 1620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - video_import_source_update (G_TYPE_CHECK_INSTANCE_TYPE (_tmp72_, TYPE_VIDEO_IMPORT_SOURCE) ? ((VideoImportSource*) _tmp72_) : NULL, _tmp73_); -#line 10895 "ImportPage.c" - } -#line 1622 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp74_ = import_source; -#line 1622 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp74_, TYPE_PHOTO_IMPORT_SOURCE)) { -#line 10901 "ImportPage.c" - ImportSource* _tmp75_; - GdkPixbuf* _tmp76_; - const gchar* _tmp77_; - PhotoMetadata* _tmp78_; - const gchar* _tmp79_; -#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp75_ = import_source; -#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp76_ = preview; -#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp77_ = preview_md5; -#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp78_ = metadata; -#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp79_ = exif_only_md5; -#line 1623 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - photo_import_source_update (G_TYPE_CHECK_INSTANCE_TYPE (_tmp75_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp75_) : NULL, _tmp76_, _tmp77_, _tmp78_, _tmp79_); -#line 10919 "ImportPage.c" - } -#line 1626 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp80_ = associated; -#line 1626 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp80_ != NULL) { -#line 10925 "ImportPage.c" - { - PhotoMetadata* associated_metadata = NULL; - GPSpinIdleWrapper* _tmp81_; - GPContext* _tmp82_; - Camera* _tmp83_; - PhotoImportSource* _tmp84_; - gchar* _tmp85_; - gchar* _tmp86_; - PhotoImportSource* _tmp87_; - gchar* _tmp88_; - gchar* _tmp89_; - PhotoMetadata* _tmp90_; - PhotoMetadata* _tmp91_; - PhotoImportSource* _tmp92_; - GdkPixbuf* _tmp93_; - const gchar* _tmp94_; - PhotoMetadata* _tmp95_; -#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp81_ = import_page_spin_idle_context; -#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp82_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp81_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp83_ = self->priv->camera; -#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp84_ = associated; -#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp85_ = import_source_get_fulldir (G_TYPE_CHECK_INSTANCE_CAST (_tmp84_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp86_ = _tmp85_; -#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp87_ = associated; -#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp88_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp87_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp89_ = _tmp88_; -#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp90_ = gp_load_metadata (_tmp82_, _tmp83_, _tmp86_, _tmp89_, &_inner_error_); -#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp91_ = _tmp90_; -#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp89_); -#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp86_); -#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - associated_metadata = _tmp91_; -#line 1628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 10973 "ImportPage.c" - goto __catch79_g_error; - } -#line 1630 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp92_ = associated; -#line 1630 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp93_ = preview; -#line 1630 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp94_ = preview_md5; -#line 1630 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp95_ = associated_metadata; -#line 1630 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - photo_import_source_update (_tmp92_, _tmp93_, _tmp94_, _tmp95_, NULL); -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _media_metadata_unref0 (associated_metadata); -#line 10988 "ImportPage.c" - } - goto __finally79; - __catch79_g_error: - { - GError* err = NULL; - PhotoImportSource* _tmp96_; - gchar* _tmp97_; - gchar* _tmp98_; - PhotoImportSource* _tmp99_; - gchar* _tmp100_; - gchar* _tmp101_; - GError* _tmp102_; - const gchar* _tmp103_; -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - err = _inner_error_; -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _inner_error_ = NULL; -#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp96_ = associated; -#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp97_ = import_source_get_fulldir (G_TYPE_CHECK_INSTANCE_CAST (_tmp96_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp98_ = _tmp97_; -#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp99_ = associated; -#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp100_ = import_source_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp99_, TYPE_IMPORT_SOURCE, ImportSource)); -#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp101_ = _tmp100_; -#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp102_ = err; -#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp103_ = _tmp102_->message; -#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:1632: Unable to fetch metadata for %s/%s: %s", _tmp98_, _tmp101_, _tmp103_); -#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp101_); -#line 1632 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp98_); -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_error_free0 (err); -#line 11030 "ImportPage.c" - } - __finally79: -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (preview_md5); -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (preview); -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (exif_only_md5); -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _media_metadata_unref0 (metadata); -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (associated); -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (filename); -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (import_source); -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_import_source_list); -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_clear_error (&_inner_error_); -#line 1627 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return; -#line 11059 "ImportPage.c" - } - } -#line 1638 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp104_ = self->priv->import_sources; -#line 1638 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp105_ = import_source; -#line 1638 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp104_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp105_, TYPE_DATA_OBJECT, DataObject)); -#line 1640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp106_ = self->priv->progress_bar; -#line 1640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp107_ = loaded_photos; -#line 1640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - loaded_photos = _tmp107_ + 1; -#line 1640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp108_ = loaded_photos; -#line 1640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp109_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (import_list, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp110_ = _tmp109_; -#line 1640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_progress_bar_set_fraction (_tmp106_, ((gdouble) _tmp108_) / ((gdouble) _tmp110_)); -#line 1647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - spin_event_loop (); -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (preview_md5); -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (preview); -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (exif_only_md5); -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _media_metadata_unref0 (metadata); -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (associated); -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (fulldir); -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (filename); -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (import_source); -#line 11100 "ImportPage.c" - } -#line 1546 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_import_source_list); -#line 11104 "ImportPage.c" - } -} - - -static void -import_page_on_hide_imported (ImportPage* self) -{ - GtkCheckButton* _tmp0_; - ConfigFacade* _tmp7_; - ConfigFacade* _tmp8_; - GtkCheckButton* _tmp9_; -#line 1651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1652 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->hide_imported; -#line 1652 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton))) { -#line 11122 "ImportPage.c" - ViewCollection* _tmp1_; - ViewCollection* _tmp2_; - ImportPageHideImportedViewFilter* _tmp3_; -#line 1653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = _tmp1_; -#line 1653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = self->priv->hide_imported_filter; -#line 1653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - view_collection_install_view_filter (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_VIEW_FILTER, ViewFilter)); -#line 1653 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _data_collection_unref0 (_tmp2_); -#line 11136 "ImportPage.c" - } else { - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - ImportPageHideImportedViewFilter* _tmp6_; -#line 1655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = _tmp4_; -#line 1655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = self->priv->hide_imported_filter; -#line 1655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - view_collection_remove_view_filter (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_VIEW_FILTER, ViewFilter)); -#line 1655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _data_collection_unref0 (_tmp5_); -#line 11151 "ImportPage.c" - } -#line 1657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = config_facade_get_instance (); -#line 1657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = _tmp7_; -#line 1657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = self->priv->hide_imported; -#line 1657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - configuration_facade_set_hide_photos_already_imported (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 1657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp8_); -#line 11163 "ImportPage.c" -} - - -static void -import_page_on_import_selected (ImportPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - GeeList* _tmp2_; - GeeList* _tmp3_; -#line 1660 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp0_; -#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = view_collection_get_selected (_tmp1_); -#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _tmp2_; -#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_import (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp3_); -#line 1661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _data_collection_unref0 (_tmp1_); -#line 11190 "ImportPage.c" -} - - -static void -import_page_on_import_all (ImportPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; -#line 1664 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _tmp0_; -#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _tmp2_; -#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_import (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp3_); -#line 1665 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _data_collection_unref0 (_tmp1_); -#line 11217 "ImportPage.c" -} - - -static gint64 -_import_page_import_job_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = import_page_import_job_comparator ((ImportPage*) self, a, b); -#line 1681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 11230 "ImportPage.c" -} - - -static void -_import_page_import_reporter_batch_import_import_reporter (ImportManifest* manifest, - BatchImportRoll* import_roll, - gpointer self) -{ -#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_import_reporter ((ImportPage*) self, manifest); -#line 11241 "ImportPage.c" -} - - -static void -_import_page_on_import_job_failed_batch_import_import_job_failed (BatchImport* _sender, - BatchImportResult* _result_, - gpointer self) -{ -#line 1719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_on_import_job_failed ((ImportPage*) self, _result_); -#line 11252 "ImportPage.c" -} - - -static void -_import_page_close_import_batch_import_import_complete (BatchImport* _sender, - ImportManifest* manifest, - BatchImportRoll* import_roll, - gpointer self) -{ -#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_close_import ((ImportPage*) self); -#line 11264 "ImportPage.c" -} - - -static void -import_page_import (ImportPage* self, - GeeIterable* items) -{ - int res = 0; - Camera* _tmp0_; - GPSpinIdleWrapper* _tmp1_; - GPContext* _tmp2_; - int _tmp3_; - gboolean _tmp9_; - GtkProgressBar* _tmp10_; - SortedList* jobs = NULL; - SortedList* _tmp11_; - GeeArrayList* already_imported = NULL; - GeeArrayList* _tmp12_; - SortedList* _tmp50_; - gint _tmp51_; - gint _tmp52_; - const gchar* _tmp53_; - SortedList* _tmp54_; - gint _tmp55_; - gint _tmp56_; -#line 1668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (GEE_IS_ITERABLE (items)); -#line 1669 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->camera; -#line 1669 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = import_page_spin_idle_context; -#line 1669 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1669 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - res = gp_camera_init (_tmp0_, _tmp2_); -#line 1670 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = res; -#line 1670 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp3_ != GP_OK) { -#line 11306 "ImportPage.c" - int _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 1671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = res; -#line 1671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = gp_result_to_full_string (_tmp4_); -#line 1671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = _tmp5_; -#line 1671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = g_strdup_printf (_ ("Unable to lock camera: %s"), _tmp6_); -#line 1671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = _tmp7_; -#line 1671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - app_window_error_message (_tmp8_, NULL); -#line 1671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp8_); -#line 1671 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp6_); -#line 1673 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return; -#line 11330 "ImportPage.c" - } -#line 1676 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = self->priv->refreshed; -#line 1676 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_update_status (self, TRUE, _tmp9_); -#line 1678 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_on_view_changed (self); -#line 1679 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = self->priv->progress_bar; -#line 1679 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = sorted_list_new (IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, _import_page_import_job_comparator_comparator, self); -#line 1681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - jobs = _tmp11_; -#line 1682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = gee_array_list_new (IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL); -#line 1682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - already_imported = _tmp12_; -#line 11350 "ImportPage.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp13_; -#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = gee_iterable_iterator (items); -#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _object_it = _tmp13_; -#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - while (TRUE) { -#line 11360 "ImportPage.c" - GeeIterator* _tmp14_; - DataObject* object = NULL; - GeeIterator* _tmp15_; - gpointer _tmp16_; - ImportPreview* preview = NULL; - DataObject* _tmp17_; - ImportPreview* _tmp18_; - ImportSource* import_file = NULL; - ImportPreview* _tmp19_; - DataSource* _tmp20_; - ImportPreview* _tmp21_; - ImportPageCameraImportJob* import_job = NULL; - GPContextWrapper* _tmp33_; - ImportSource* _tmp34_; - ImportPageCameraImportJob* _tmp35_; - gboolean _tmp36_ = FALSE; - ImportSource* _tmp37_; - SortedList* _tmp48_; - ImportPageCameraImportJob* _tmp49_; -#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp14_ = _object_it; -#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!gee_iterator_next (_tmp14_)) { -#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 11386 "ImportPage.c" - } -#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp15_ = _object_it; -#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp16_ = gee_iterator_get (_tmp15_); -#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - object = (DataObject*) _tmp16_; -#line 1685 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp17_ = object; -#line 1685 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_IMPORT_PREVIEW, ImportPreview)); -#line 1685 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - preview = _tmp18_; -#line 1686 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp19_ = preview; -#line 1686 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp20_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_DATA_VIEW, DataView)); -#line 1686 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_file = G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_IMPORT_SOURCE, ImportSource); -#line 1688 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp21_ = preview; -#line 1688 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (import_preview_is_already_imported (_tmp21_)) { -#line 11410 "ImportPage.c" - ImportSource* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - GeeArrayList* _tmp25_; - GPContextWrapper* _tmp26_; - ImportSource* _tmp27_; - ImportPreview* _tmp28_; - DuplicatedFile* _tmp29_; - DuplicatedFile* _tmp30_; - ImportPageCameraImportJob* _tmp31_; - ImportPageCameraImportJob* _tmp32_; -#line 1689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp22_ = import_file; -#line 1689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp23_ = import_source_get_filename (_tmp22_); -#line 1689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp24_ = _tmp23_; -#line 1689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_message ("ImportPage.vala:1689: Skipping import of %s: checksum detected in libr" \ -"ary", _tmp24_); -#line 1689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp24_); -#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp25_ = already_imported; -#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp26_ = import_page_null_context; -#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp27_ = import_file; -#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp28_ = preview; -#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp29_ = import_preview_get_duplicated_file (_tmp28_); -#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp30_ = _tmp29_; -#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp31_ = import_page_camera_import_job_new (_tmp26_, _tmp27_, _tmp30_); -#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp32_ = _tmp31_; -#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp32_); -#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _batch_import_job_unref0 (_tmp32_); -#line 1692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp30_); -#line 1695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (import_file); -#line 1695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (preview); -#line 1695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (object); -#line 1695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - continue; -#line 11462 "ImportPage.c" - } -#line 1698 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp33_ = import_page_null_context; -#line 1698 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp34_ = import_file; -#line 1698 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp35_ = import_page_camera_import_job_new (_tmp33_, _tmp34_, NULL); -#line 1698 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_job = _tmp35_; -#line 1701 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp37_ = import_file; -#line 1701 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp37_, TYPE_PHOTO_IMPORT_SOURCE)) { -#line 11476 "ImportPage.c" - ImportSource* _tmp38_; - PhotoImportSource* _tmp39_; - PhotoImportSource* _tmp40_; -#line 1702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp38_ = import_file; -#line 1702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp39_ = photo_import_source_get_associated (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource)); -#line 1702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp40_ = _tmp39_; -#line 1702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp36_ = _tmp40_ != NULL; -#line 1702 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp40_); -#line 11490 "ImportPage.c" - } else { -#line 1701 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp36_ = FALSE; -#line 11494 "ImportPage.c" - } -#line 1701 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp36_) { -#line 11498 "ImportPage.c" - ImportPageCameraImportJob* _tmp41_; - GPContextWrapper* _tmp42_; - ImportSource* _tmp43_; - PhotoImportSource* _tmp44_; - PhotoImportSource* _tmp45_; - ImportPageCameraImportJob* _tmp46_; - ImportPageCameraImportJob* _tmp47_; -#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp41_ = import_job; -#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp42_ = import_page_null_context; -#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp43_ = import_file; -#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp44_ = photo_import_source_get_associated (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_PHOTO_IMPORT_SOURCE, PhotoImportSource)); -#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp45_ = _tmp44_; -#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp46_ = import_page_camera_import_job_new (_tmp42_, G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_IMPORT_SOURCE, ImportSource), NULL); -#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp47_ = _tmp46_; -#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - batch_import_job_set_associated (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_BATCH_IMPORT_JOB, BatchImportJob), G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_BATCH_IMPORT_JOB, BatchImportJob)); -#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _batch_import_job_unref0 (_tmp47_); -#line 1703 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp45_); -#line 11526 "ImportPage.c" - } -#line 1707 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp48_ = jobs; -#line 1707 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp49_ = import_job; -#line 1707 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, GEE_TYPE_COLLECTION, GeeCollection), _tmp49_); -#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _batch_import_job_unref0 (import_job); -#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (import_file); -#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (preview); -#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (object); -#line 11542 "ImportPage.c" - } -#line 1684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_object_it); -#line 11546 "ImportPage.c" - } -#line 1710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp50_ = jobs; -#line 1710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp51_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp52_ = _tmp51_; -#line 1710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp53_ = self->priv->camera_name; -#line 1710 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_debug ("ImportPage.vala:1710: Importing %d files from %s", _tmp52_, _tmp53_); -#line 1712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp54_ = jobs; -#line 1712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp55_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp56_ = _tmp55_; -#line 1712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp56_ > 0) { -#line 11566 "ImportPage.c" - ImportPage* _tmp57_; - ImportPage* _tmp58_; - BatchImport* batch_import = NULL; - SortedList* _tmp59_; - const gchar* _tmp60_; - GeeArrayList* _tmp61_; - BatchImport* _tmp62_; - BatchImport* _tmp63_; - BatchImport* _tmp64_; - LibraryWindow* _tmp65_; - LibraryWindow* _tmp66_; - BatchImport* _tmp67_; - LibraryWindow* _tmp68_; - LibraryWindow* _tmp69_; -#line 1714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp57_ = self->priv->local_ref; -#line 1714 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _vala_assert (_tmp57_ == NULL, "local_ref == null"); -#line 1715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp58_ = _g_object_ref0 (self); -#line 1715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->local_ref); -#line 1715 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->local_ref = _tmp58_; -#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp59_ = jobs; -#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp60_ = self->priv->camera_name; -#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp61_ = already_imported; -#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp62_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, GEE_TYPE_ITERABLE, GeeIterable), _tmp60_, _import_page_import_reporter_batch_import_import_reporter, self, NULL, _tmp61_, NULL, NULL, NULL); -#line 1717 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - batch_import = _tmp62_; -#line 1719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp63_ = batch_import; -#line 1719 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_signal_connect_object (_tmp63_, "import-job-failed", (GCallback) _import_page_on_import_job_failed_batch_import_import_job_failed, self, 0); -#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp64_ = batch_import; -#line 1720 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_signal_connect_object (_tmp64_, "import-complete", (GCallback) _import_page_close_import_batch_import_import_complete, self, 0); -#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp65_ = library_window_get_app (); -#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp66_ = _tmp65_; -#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp67_ = batch_import; -#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - library_window_enqueue_batch_import (_tmp66_, _tmp67_, TRUE); -#line 1722 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp66_); -#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp68_ = library_window_get_app (); -#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp69_ = _tmp68_; -#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - library_window_switch_to_import_queue_page (_tmp69_); -#line 1723 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp69_); -#line 1712 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (batch_import); -#line 11629 "ImportPage.c" - } else { - GeeArrayList* _tmp70_; - gint _tmp71_; - gint _tmp72_; -#line 1727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp70_ = already_imported; -#line 1727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp71_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp72_ = _tmp71_; -#line 1727 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp72_ > 0) { -#line 11642 "ImportPage.c" - GeeArrayList* _tmp73_; - ImportManifest* _tmp74_; - ImportManifest* _tmp75_; -#line 1728 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp73_ = already_imported; -#line 1728 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp74_ = import_manifest_new (NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, GEE_TYPE_LIST, GeeList)); -#line 1728 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp75_ = _tmp74_; -#line 1728 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_import_reporter (self, _tmp75_); -#line 1728 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _import_manifest_unref0 (_tmp75_); -#line 11656 "ImportPage.c" - } -#line 1730 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_close_import (self); -#line 11660 "ImportPage.c" - } -#line 1668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (already_imported); -#line 1668 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (jobs); -#line 11666 "ImportPage.c" -} - - -static void -import_page_on_import_job_failed (ImportPage* self, - BatchImportResult* _result_) -{ - gboolean _tmp0_ = FALSE; - GFile* _tmp1_; - GError * _inner_error_ = NULL; -#line 1734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1734 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_BATCH_IMPORT_RESULT (_result_)); -#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _result_->file; -#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp1_ == NULL) { -#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = TRUE; -#line 11687 "ImportPage.c" - } else { - ImportResult _tmp2_; -#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = _result_->result; -#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = _tmp2_ == IMPORT_RESULT_SUCCESS; -#line 11694 "ImportPage.c" - } -#line 1735 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp0_) { -#line 1736 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return; -#line 11700 "ImportPage.c" - } - { - GFile* _tmp3_; -#line 1740 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = _result_->file; -#line 1740 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_file_delete (_tmp3_, NULL, &_inner_error_); -#line 1740 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 11710 "ImportPage.c" - goto __catch80_g_error; - } - } - goto __finally80; - __catch80_g_error: - { - GError* err = NULL; - GFile* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GError* _tmp7_; - const gchar* _tmp8_; -#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - err = _inner_error_; -#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _inner_error_ = NULL; -#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = _result_->file; -#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = g_file_get_path (_tmp4_); -#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = _tmp5_; -#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = err; -#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = _tmp7_->message; -#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_message ("ImportPage.vala:1742: Unable to delete downloaded file %s: %s", _tmp6_, _tmp8_); -#line 1742 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp6_); -#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_error_free0 (err); -#line 11743 "ImportPage.c" - } - __finally80: -#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_clear_error (&_inner_error_); -#line 1739 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return; -#line 11754 "ImportPage.c" - } -} - - -static gpointer -_batch_import_job_ref0 (gpointer self) -{ -#line 1786 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self ? batch_import_job_ref (self) : NULL; -#line 11764 "ImportPage.c" -} - - -static gboolean -_progress_dialog_monitor_progress_monitor (guint64 current, - guint64 total, - gboolean do_event_loop, - gpointer self) -{ - gboolean result; - result = progress_dialog_monitor ((ProgressDialog*) self, current, total, do_event_loop); -#line 1793 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 11778 "ImportPage.c" -} - - -static void -import_page_import_reporter (ImportPage* self, - ImportManifest* manifest) -{ - ImportPage* local_ref = NULL; - ImportPage* _tmp0_; - ImportPage* _tmp1_; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - Marker* marker = NULL; - SourceCollection* _tmp42_; - Marker* _tmp43_; - ProgressDialog* progress = NULL; - AppWindow* _tmp62_; - AppWindow* _tmp63_; - GCancellable* _tmp64_; - GCancellable* _tmp65_; - ProgressDialog* _tmp66_; - ProgressDialog* _tmp67_; - gint error_count = 0; - SourceCollection* _tmp68_; - Marker* _tmp69_; - ProgressDialog* _tmp70_; - gint _tmp71_; - ProgressDialog* _tmp76_; -#line 1746 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1746 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_MANIFEST (manifest)); -#line 1752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->local_ref; -#line 1752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 1752 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - local_ref = _tmp1_; -#line 1753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->local_ref); -#line 1753 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->local_ref = NULL; -#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = manifest->success; -#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = _tmp3_; -#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp4_ > 0) { -#line 11830 "ImportPage.c" - gchar* photos_string = NULL; - GeeList* _tmp5_; - gint _tmp6_; - gint _tmp7_; - GeeList* _tmp8_; - gint _tmp9_; - gint _tmp10_; - gchar* _tmp11_; - gchar* videos_string = NULL; - GeeList* _tmp12_; - gint _tmp13_; - gint _tmp14_; - GeeList* _tmp15_; - gint _tmp16_; - gint _tmp17_; - gchar* _tmp18_; - gchar* both_string = NULL; - GeeList* _tmp19_; - gint _tmp20_; - gint _tmp21_; - GeeList* _tmp22_; - gint _tmp23_; - gint _tmp24_; - gchar* _tmp25_; - gchar* neither_string = NULL; - GeeList* _tmp26_; - gint _tmp27_; - gint _tmp28_; - GeeList* _tmp29_; - gint _tmp30_; - gint _tmp31_; - gchar* _tmp32_; - gchar* question_string = NULL; - GeeList* _tmp33_; - const gchar* _tmp34_; - const gchar* _tmp35_; - const gchar* _tmp36_; - const gchar* _tmp37_; - gchar* _tmp38_; - ImportUIQuestionParams* question = NULL; - const gchar* _tmp39_; - ImportUIQuestionParams* _tmp40_; - ImportUIQuestionParams* _tmp41_; -#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = manifest->success; -#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = _tmp6_; -#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = manifest->success; -#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = _tmp9_; -#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = g_strdup_printf (ngettext ("Delete this photo from camera?", "Delete these %d photos from camera?", (gulong) _tmp7_), _tmp10_); -#line 1756 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - photos_string = _tmp11_; -#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = manifest->success; -#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp14_ = _tmp13_; -#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp15_ = manifest->success; -#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp16_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp17_ = _tmp16_; -#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = g_strdup_printf (ngettext ("Delete this video from camera?", "Delete these %d videos from camera?", (gulong) _tmp14_), _tmp17_); -#line 1759 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - videos_string = _tmp18_; -#line 1762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp19_ = manifest->success; -#line 1762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp20_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp21_ = _tmp20_; -#line 1762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp22_ = manifest->success; -#line 1762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp23_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp24_ = _tmp23_; -#line 1762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp25_ = g_strdup_printf (ngettext ("Delete this photo/video from camera?", "Delete these %d photos/videos from camera?", (gulong) _tmp21_), _tmp24_); -#line 1762 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - both_string = _tmp25_; -#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp26_ = manifest->success; -#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp27_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp28_ = _tmp27_; -#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp29_ = manifest->success; -#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp30_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp31_ = _tmp30_; -#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp32_ = g_strdup_printf (ngettext ("Delete these files from camera?", "Delete these %d files from camera?", (gulong) _tmp28_), _tmp31_); -#line 1765 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - neither_string = _tmp32_; -#line 1769 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp33_ = manifest->success; -#line 1769 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp34_ = photos_string; -#line 1769 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp35_ = videos_string; -#line 1769 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp36_ = both_string; -#line 1769 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp37_ = neither_string; -#line 1769 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp38_ = import_ui_get_media_specific_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_COLLECTION, GeeCollection), _tmp34_, _tmp35_, _tmp36_, _tmp37_); -#line 1769 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - question_string = _tmp38_; -#line 1772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp39_ = question_string; -#line 1772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp40_ = import_ui_question_params_new (_tmp39_, RESOURCES_DELETE_LABEL, _ ("_Keep")); -#line 1772 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - question = _tmp40_; -#line 1775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp41_ = question; -#line 1775 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!import_ui_report_manifest (manifest, FALSE, _tmp41_)) { -#line 1776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _import_ui_question_params_unref0 (question); -#line 1776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (question_string); -#line 1776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (neither_string); -#line 1776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (both_string); -#line 1776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (videos_string); -#line 1776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (photos_string); -#line 1776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (local_ref); -#line 1776 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return; -#line 11978 "ImportPage.c" - } -#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _import_ui_question_params_unref0 (question); -#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (question_string); -#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (neither_string); -#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (both_string); -#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (videos_string); -#line 1755 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (photos_string); -#line 11992 "ImportPage.c" - } else { -#line 1778 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_ui_report_manifest (manifest, FALSE, NULL); -#line 1779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (local_ref); -#line 1779 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return; -#line 12000 "ImportPage.c" - } -#line 1784 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp42_ = self->priv->import_sources; -#line 1784 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp43_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_DATA_COLLECTION, DataCollection)); -#line 1784 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - marker = _tmp43_; -#line 12008 "ImportPage.c" - { - GeeList* _batch_result_list = NULL; - GeeList* _tmp44_; - GeeList* _tmp45_; - gint _batch_result_size = 0; - GeeList* _tmp46_; - gint _tmp47_; - gint _tmp48_; - gint _batch_result_index = 0; -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp44_ = manifest->success; -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp45_ = _g_object_ref0 (_tmp44_); -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _batch_result_list = _tmp45_; -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp46_ = _batch_result_list; -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp47_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp48_ = _tmp47_; -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _batch_result_size = _tmp48_; -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _batch_result_index = -1; -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - while (TRUE) { -#line 12036 "ImportPage.c" - gint _tmp49_; - gint _tmp50_; - gint _tmp51_; - BatchImportResult* batch_result = NULL; - GeeList* _tmp52_; - gint _tmp53_; - gpointer _tmp54_; - ImportPageCameraImportJob* job = NULL; - BatchImportResult* _tmp55_; - BatchImportJob* _tmp56_; - ImportPageCameraImportJob* _tmp57_; - Marker* _tmp58_; - ImportPageCameraImportJob* _tmp59_; - ImportSource* _tmp60_; - ImportSource* _tmp61_; -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp49_ = _batch_result_index; -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _batch_result_index = _tmp49_ + 1; -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp50_ = _batch_result_index; -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp51_ = _batch_result_size; -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!(_tmp50_ < _tmp51_)) { -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - break; -#line 12064 "ImportPage.c" - } -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp52_ = _batch_result_list; -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp53_ = _batch_result_index; -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp54_ = gee_list_get (_tmp52_, _tmp53_); -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - batch_result = (BatchImportResult*) _tmp54_; -#line 1786 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp55_ = batch_result; -#line 1786 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp56_ = _tmp55_->job; -#line 1786 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp57_ = _batch_import_job_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp56_, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB) ? ((ImportPageCameraImportJob*) _tmp56_) : NULL); -#line 1786 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - job = _tmp57_; -#line 1788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp58_ = marker; -#line 1788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp59_ = job; -#line 1788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp60_ = import_page_camera_import_job_get_source (_tmp59_); -#line 1788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp61_ = _tmp60_; -#line 1788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - marker_mark (_tmp58_, G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_DATA_OBJECT, DataObject)); -#line 1788 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp61_); -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _batch_import_job_unref0 (job); -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _batch_import_result_unref0 (batch_result); -#line 12098 "ImportPage.c" - } -#line 1785 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_batch_result_list); -#line 12102 "ImportPage.c" - } -#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp62_ = app_window_get_instance (); -#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp63_ = _tmp62_; -#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp64_ = g_cancellable_new (); -#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp65_ = _tmp64_; -#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp66_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, gtk_window_get_type (), GtkWindow), _ ("Removing photos/videos from camera"), _tmp65_); -#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_ref_sink (_tmp66_); -#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp67_ = _tmp66_; -#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp65_); -#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp63_); -#line 1791 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - progress = _tmp67_; -#line 1793 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp68_ = self->priv->import_sources; -#line 1793 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp69_ = marker; -#line 1793 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp70_ = progress; -#line 1793 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - error_count = source_collection_destroy_marked (_tmp68_, _tmp69_, TRUE, _progress_dialog_monitor_progress_monitor, _tmp70_, NULL); -#line 1794 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp71_ = error_count; -#line 1794 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp71_ > 0) { -#line 12136 "ImportPage.c" - gchar* error_string = NULL; - gint _tmp72_; - gint _tmp73_; - gchar* _tmp74_; - const gchar* _tmp75_; -#line 1795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp72_ = error_count; -#line 1795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp73_ = error_count; -#line 1795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp74_ = g_strdup_printf (ngettext ("Unable to delete %d photo/video from the camera due to errors.", "Unable to delete %d photos/videos from the camera due to errors.", (gulong) _tmp72_), _tmp73_); -#line 1795 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - error_string = _tmp74_; -#line 1799 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp75_ = error_string; -#line 1799 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - app_window_error_message (_tmp75_, NULL); -#line 1794 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (error_string); -#line 12156 "ImportPage.c" - } -#line 1802 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp76_ = progress; -#line 1802 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - progress_dialog_close (_tmp76_); -#line 1805 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (local_ref); -#line 1805 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - local_ref = NULL; -#line 1746 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (progress); -#line 1746 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (marker); -#line 1746 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (local_ref); -#line 12172 "ImportPage.c" -} - - -static void -import_page_close_import (ImportPage* self) -{ - int res = 0; - Camera* _tmp0_; - GPSpinIdleWrapper* _tmp1_; - GPContext* _tmp2_; - int _tmp3_; - gboolean _tmp7_; -#line 1808 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_IMPORT_PAGE (self)); -#line 1809 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->camera; -#line 1809 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = import_page_spin_idle_context; -#line 1809 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GP_TYPE_CONTEXT_WRAPPER, GPContextWrapper)->context; -#line 1809 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - res = gp_camera_exit (_tmp0_, _tmp2_); -#line 1810 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = res; -#line 1810 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp3_ != GP_OK) { -#line 12199 "ImportPage.c" - int _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 1812 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = res; -#line 1812 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = gp_result_to_full_string (_tmp4_); -#line 1812 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = _tmp5_; -#line 1812 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_message ("ImportPage.vala:1812: Unable to unlock camera: %s", _tmp6_); -#line 1812 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp6_); -#line 12213 "ImportPage.c" - } -#line 1815 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = self->priv->refreshed; -#line 1815 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_update_status (self, FALSE, _tmp7_); -#line 1817 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_on_view_changed (self); -#line 12221 "ImportPage.c" -} - - -static void -import_page_real_set_display_titles (CheckerboardPage* base, - gboolean display) -{ - ImportPage * self; -#line 1820 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 1821 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - CHECKERBOARD_PAGE_CLASS (import_page_parent_class)->set_display_titles (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), display); -#line 1823 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - page_set_action_active (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewTitle", display); -#line 12236 "ImportPage.c" -} - - -static gpointer -_view_filter_ref0 (gpointer self) -{ -#line 1828 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self ? view_filter_ref (self) : NULL; -#line 12245 "ImportPage.c" -} - - -static SearchViewFilter* -import_page_real_get_search_view_filter (CheckerboardPage* base) -{ - ImportPage * self; - SearchViewFilter* result = NULL; - ImportPageImportPageSearchViewFilter* _tmp0_; - SearchViewFilter* _tmp1_; -#line 1827 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_PAGE, ImportPage); -#line 1828 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->search_filter; -#line 1828 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 1828 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 1828 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 12266 "ImportPage.c" -} - - -static ImportPageImportViewManager* -import_page_import_view_manager_construct (GType object_type, - ImportPage* owner) -{ - ImportPageImportViewManager* self = NULL; - ImportPage* _tmp0_; -#line 471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_PAGE (owner), NULL); -#line 471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = (ImportPageImportViewManager*) view_manager_construct (object_type); -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = _g_object_ref0 (owner); -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->owner); -#line 472 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->owner = _tmp0_; -#line 471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self; -#line 12288 "ImportPage.c" -} - - -static ImportPageImportViewManager* -import_page_import_view_manager_new (ImportPage* owner) -{ -#line 471 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return import_page_import_view_manager_construct (IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER, owner); -#line 12297 "ImportPage.c" -} - - -static DataView* -import_page_import_view_manager_real_create_view (ViewManager* base, - DataSource* source) -{ - ImportPageImportViewManager * self; - DataView* result = NULL; - ImportPreview* _tmp0_; -#line 475 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER, ImportPageImportViewManager); -#line 475 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = import_preview_new (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_IMPORT_SOURCE, ImportSource)); -#line 476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_VIEW, DataView); -#line 476 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 12318 "ImportPage.c" -} - - -static void -import_page_import_view_manager_class_init (ImportPageImportViewManagerClass * klass) -{ -#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_import_view_manager_parent_class = g_type_class_peek_parent (klass); -#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((ViewManagerClass *) klass)->finalize = import_page_import_view_manager_finalize; -#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_type_class_add_private (klass, sizeof (ImportPageImportViewManagerPrivate)); -#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((ViewManagerClass *) klass)->create_view = (DataView* (*) (ViewManager *, DataSource*)) import_page_import_view_manager_real_create_view; -#line 12333 "ImportPage.c" -} - - -static void -import_page_import_view_manager_instance_init (ImportPageImportViewManager * self) -{ -#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv = IMPORT_PAGE_IMPORT_VIEW_MANAGER_GET_PRIVATE (self); -#line 12342 "ImportPage.c" -} - - -static void -import_page_import_view_manager_finalize (ViewManager * obj) -{ - ImportPageImportViewManager * self; -#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, IMPORT_PAGE_TYPE_IMPORT_VIEW_MANAGER, ImportPageImportViewManager); -#line 469 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->owner); -#line 468 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - VIEW_MANAGER_CLASS (import_page_import_view_manager_parent_class)->finalize (obj); -#line 12356 "ImportPage.c" -} - - -static GType -import_page_import_view_manager_get_type (void) -{ - static volatile gsize import_page_import_view_manager_type_id__volatile = 0; - if (g_once_init_enter (&import_page_import_view_manager_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ImportPageImportViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_page_import_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportPageImportViewManager), 0, (GInstanceInitFunc) import_page_import_view_manager_instance_init, NULL }; - GType import_page_import_view_manager_type_id; - import_page_import_view_manager_type_id = g_type_register_static (TYPE_VIEW_MANAGER, "ImportPageImportViewManager", &g_define_type_info, 0); - g_once_init_leave (&import_page_import_view_manager_type_id__volatile, import_page_import_view_manager_type_id); - } - return import_page_import_view_manager_type_id__volatile; -} - - -static gpointer -_gp_context_wrapper_ref0 (gpointer self) -{ -#line 495 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self ? gp_context_wrapper_ref (self) : NULL; -#line 12379 "ImportPage.c" -} - - -static ImportPageCameraImportJob* -import_page_camera_import_job_construct (GType object_type, - GPContextWrapper* context, - ImportSource* import_file, - DuplicatedFile* duplicated_file) -{ - ImportPageCameraImportJob* self = NULL; - GPContextWrapper* _tmp0_; - ImportSource* _tmp1_; - DuplicatedFile* _tmp2_; - Camera* _tmp3_; - gchar* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - PhotoMetadata* _tmp7_ = NULL; - PhotoMetadata* _tmp9_; -#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (GP_IS_CONTEXT_WRAPPER (context), NULL); -#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_IMPORT_SOURCE (import_file), NULL); -#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail ((duplicated_file == NULL) || IS_DUPLICATED_FILE (duplicated_file), NULL); -#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = (ImportPageCameraImportJob*) batch_import_job_construct (object_type); -#line 495 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = _gp_context_wrapper_ref0 (context); -#line 495 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_context_wrapper_unref0 (self->priv->context); -#line 495 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->context = _tmp0_; -#line 496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _g_object_ref0 (import_file); -#line 496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->import_file); -#line 496 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->import_file = _tmp1_; -#line 497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = _g_object_ref0 (duplicated_file); -#line 497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->duplicated_file); -#line 497 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->duplicated_file = _tmp2_; -#line 500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = import_source_get_camera (import_file); -#line 500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_camera_unref0 (self->priv->camera); -#line 500 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->camera = _tmp3_; -#line 501 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = import_source_get_fulldir (import_file); -#line 501 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->fulldir); -#line 501 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->fulldir = _tmp4_; -#line 503 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = self->priv->fulldir; -#line 503 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _vala_assert (_tmp5_ != NULL, "fulldir != null"); -#line 504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = import_source_get_filename (import_file); -#line 504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->filename); -#line 504 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->filename = _tmp6_; -#line 505 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->filesize = (guint64) import_source_get_filesize (import_file); -#line 506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (import_file, TYPE_PHOTO_IMPORT_SOURCE)) { -#line 12451 "ImportPage.c" - PhotoMetadata* _tmp8_; -#line 507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = photo_import_source_get_metadata (G_TYPE_CHECK_INSTANCE_TYPE (import_file, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) import_file) : NULL); -#line 507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _media_metadata_unref0 (_tmp7_); -#line 507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = _tmp8_; -#line 12459 "ImportPage.c" - } else { -#line 507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _media_metadata_unref0 (_tmp7_); -#line 507 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = NULL; -#line 12465 "ImportPage.c" - } -#line 506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = _media_metadata_ref0 (_tmp7_); -#line 506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _media_metadata_unref0 (self->priv->metadata); -#line 506 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->metadata = _tmp9_; -#line 508 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->exposure_time = import_source_get_exposure_time (import_file); -#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _media_metadata_unref0 (_tmp7_); -#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self; -#line 12479 "ImportPage.c" -} - - -static ImportPageCameraImportJob* -import_page_camera_import_job_new (GPContextWrapper* context, - ImportSource* import_file, - DuplicatedFile* duplicated_file) -{ -#line 493 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return import_page_camera_import_job_construct (IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, context, import_file, duplicated_file); -#line 12490 "ImportPage.c" -} - - -static time_t -import_page_camera_import_job_get_exposure_time (ImportPageCameraImportJob* self) -{ - time_t result = 0; - time_t _tmp0_; -#line 511 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IMPORT_PAGE_IS_CAMERA_IMPORT_JOB (self), 0); -#line 512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->exposure_time; -#line 512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 512 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 12507 "ImportPage.c" -} - - -static DuplicatedFile* -import_page_camera_import_job_real_get_duplicated_file (BatchImportJob* base) -{ - ImportPageCameraImportJob * self; - DuplicatedFile* result = NULL; - DuplicatedFile* _tmp0_; - DuplicatedFile* _tmp1_; -#line 515 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->duplicated_file; -#line 516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 516 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 12528 "ImportPage.c" -} - - -static time_t -import_page_camera_import_job_real_get_exposure_time_override (BatchImportJob* base) -{ - ImportPageCameraImportJob * self; - time_t result = 0; - time_t _tmp0_ = 0; - ImportSource* _tmp1_; -#line 519 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->import_file; -#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_VIDEO_IMPORT_SOURCE)) { -#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = import_page_camera_import_job_get_exposure_time (self); -#line 12547 "ImportPage.c" - } else { -#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = (time_t) 0; -#line 12551 "ImportPage.c" - } -#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp0_; -#line 520 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 12557 "ImportPage.c" -} - - -static gchar* -import_page_camera_import_job_real_get_dest_identifier (BatchImportJob* base) -{ - ImportPageCameraImportJob * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 523 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->filename; -#line 524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 524 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 12578 "ImportPage.c" -} - - -static gchar* -import_page_camera_import_job_real_get_source_identifier (BatchImportJob* base) -{ - ImportPageCameraImportJob * self; - gchar* result = NULL; - ImportSource* _tmp0_; - gchar* _tmp1_; -#line 527 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->import_file; -#line 528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = import_source_get_filename (_tmp0_); -#line 528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 528 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 12599 "ImportPage.c" -} - - -static gchar* -import_page_camera_import_job_real_get_basename (BatchImportJob* base) -{ - ImportPageCameraImportJob * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 531 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->filename; -#line 532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 532 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 12620 "ImportPage.c" -} - - -static gchar* -import_page_camera_import_job_real_get_path (BatchImportJob* base) -{ - ImportPageCameraImportJob * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 535 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->fulldir; -#line 536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 536 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 12641 "ImportPage.c" -} - - -static void -import_page_camera_import_job_real_set_associated (BatchImportJob* base, - BatchImportJob* associated) -{ - ImportPageCameraImportJob * self; - ImportPageCameraImportJob* _tmp0_; -#line 539 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 539 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_if_fail (IS_BATCH_IMPORT_JOB (associated)); -#line 540 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = _batch_import_job_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (associated, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB) ? ((ImportPageCameraImportJob*) associated) : NULL); -#line 540 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _batch_import_job_unref0 (self->priv->associated); -#line 540 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->associated = _tmp0_; -#line 12661 "ImportPage.c" -} - - -static ImportSource* -import_page_camera_import_job_get_source (ImportPageCameraImportJob* self) -{ - ImportSource* result = NULL; - ImportSource* _tmp0_; - ImportSource* _tmp1_; -#line 543 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IMPORT_PAGE_IS_CAMERA_IMPORT_JOB (self), NULL); -#line 544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->import_file; -#line 544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp1_; -#line 544 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 12681 "ImportPage.c" -} - - -static gboolean -import_page_camera_import_job_real_is_directory (BatchImportJob* base) -{ - ImportPageCameraImportJob * self; - gboolean result = FALSE; -#line 547 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 548 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 12696 "ImportPage.c" -} - - -static gboolean -import_page_camera_import_job_real_determine_file_size (BatchImportJob* base, - guint64* filesize, - GFile* * file) -{ - ImportPageCameraImportJob * self; - guint64 _vala_filesize = 0ULL; - GFile* _vala_file = NULL; - gboolean result = FALSE; - guint64 _tmp0_; -#line 551 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_vala_file); -#line 552 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _vala_file = NULL; -#line 553 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->filesize; -#line 553 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _vala_filesize = _tmp0_; -#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = TRUE; -#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (filesize) { -#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - *filesize = _vala_filesize; -#line 12726 "ImportPage.c" - } -#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (file) { -#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - *file = _vala_file; -#line 12732 "ImportPage.c" - } else { -#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_vala_file); -#line 12736 "ImportPage.c" - } -#line 555 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 12740 "ImportPage.c" -} - - -static gboolean -import_page_camera_import_job_real_prepare (BatchImportJob* base, - GFile* * file_to_import, - gboolean* copy_to_library, - GError** error) -{ - ImportPageCameraImportJob * self; - GFile* _vala_file_to_import = NULL; - gboolean _vala_copy_to_library = FALSE; - gboolean result = FALSE; - GFile* dest_file = NULL; - GFile* _tmp13_; - GFile* _tmp17_; - ImportPageCameraImportJob* _tmp26_; - GFile* _tmp59_; - GFile* _tmp60_; - GError * _inner_error_ = NULL; -#line 558 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 559 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_vala_file_to_import); -#line 559 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _vala_file_to_import = NULL; -#line 560 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _vala_copy_to_library = FALSE; -#line 562 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - dest_file = NULL; -#line 12771 "ImportPage.c" - { - gboolean collision = FALSE; - GFile* _tmp0_ = NULL; - const gchar* _tmp1_; - PhotoMetadata* _tmp2_; - time_t _tmp3_; - gboolean _tmp4_ = FALSE; - GFile* _tmp5_; - GFile* _tmp6_; -#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->filename; -#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = self->priv->metadata; -#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = self->priv->exposure_time; -#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = library_files_generate_unique_file (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_METADATA, MediaMetadata), _tmp3_, &_tmp4_, &_inner_error_); -#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - collision = _tmp4_; -#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = _tmp5_; -#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12795 "ImportPage.c" - goto __catch81_g_error; - } -#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = _tmp0_; -#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = NULL; -#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (dest_file); -#line 565 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - dest_file = _tmp6_; -#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp0_); -#line 12808 "ImportPage.c" - } - goto __finally81; - __catch81_g_error: - { - GError* err = NULL; - ImportSource* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - GError* _tmp10_; - const gchar* _tmp11_; -#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - err = _inner_error_; -#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _inner_error_ = NULL; -#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = self->priv->import_file; -#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = import_source_get_filename (_tmp7_); -#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = _tmp8_; -#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = err; -#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = _tmp10_->message; -#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:568: Unable to generate local file for %s: %s", _tmp9_, _tmp11_); -#line 568 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp9_); -#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_error_free0 (err); -#line 12839 "ImportPage.c" - } - __finally81: -#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12844 "ImportPage.c" - gboolean _tmp12_ = FALSE; -#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_propagate_error (error, _inner_error_); -#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (dest_file); -#line 563 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return _tmp12_; -#line 12852 "ImportPage.c" - } -#line 572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = dest_file; -#line 572 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp13_ == NULL) { -#line 12858 "ImportPage.c" - ImportSource* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; -#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp14_ = self->priv->import_file; -#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp15_ = import_source_get_filename (_tmp14_); -#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp16_ = _tmp15_; -#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_message ("ImportPage.vala:573: Unable to generate local file for %s", _tmp16_); -#line 573 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp16_); -#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (dest_file); -#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (file_to_import) { -#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - *file_to_import = _vala_file_to_import; -#line 12880 "ImportPage.c" - } else { -#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_vala_file_to_import); -#line 12884 "ImportPage.c" - } -#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (copy_to_library) { -#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - *copy_to_library = _vala_copy_to_library; -#line 12890 "ImportPage.c" - } -#line 575 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 12894 "ImportPage.c" - } -#line 580 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp17_ = dest_file; -#line 580 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - library_monitor_blacklist_file (_tmp17_, "CameraImportJob.prepare"); -#line 12900 "ImportPage.c" - { - GPContextWrapper* _tmp18_; - GPContext* _tmp19_; - Camera* _tmp20_; - const gchar* _tmp21_; - const gchar* _tmp22_; - GFile* _tmp23_; -#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = self->priv->context; -#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp19_ = _tmp18_->context; -#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp20_ = self->priv->camera; -#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp21_ = self->priv->fulldir; -#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp22_ = self->priv->filename; -#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp23_ = dest_file; -#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gp_save_image (_tmp19_, _tmp20_, _tmp21_, _tmp22_, _tmp23_, &_inner_error_); -#line 582 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12924 "ImportPage.c" - goto __finally82; - } - } - __finally82: - { - GFile* _tmp24_; -#line 584 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp24_ = dest_file; -#line 584 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - library_monitor_unblacklist_file (_tmp24_); -#line 12935 "ImportPage.c" - } -#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12939 "ImportPage.c" - gboolean _tmp25_ = FALSE; -#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_propagate_error (error, _inner_error_); -#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (dest_file); -#line 581 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return _tmp25_; -#line 12947 "ImportPage.c" - } -#line 588 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp26_ = self->priv->associated; -#line 588 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp26_ != NULL) { -#line 12953 "ImportPage.c" - BackingPhotoRow* _tmp42_; - GFile* assoc_dest = NULL; - BackingPhotoRow* _tmp45_; - const gchar* _tmp46_; - GFile* _tmp47_; - GFile* _tmp48_; - { - BackingPhotoRow* _tmp27_ = NULL; - GFile* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; - ImportPageCameraImportJob* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - BackingPhotoRow* _tmp34_; - BackingPhotoRow* _tmp35_; - BackingPhotoRow* _tmp36_; -#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp28_ = dest_file; -#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp29_ = g_file_get_path (_tmp28_); -#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp30_ = _tmp29_; -#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp31_ = self->priv->associated; -#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp32_ = batch_import_job_get_basename (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_BATCH_IMPORT_JOB, BatchImportJob)); -#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp33_ = _tmp32_; -#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp34_ = raw_developer_create_backing_row_for_development (RAW_DEVELOPER_CAMERA, _tmp30_, _tmp33_, &_inner_error_); -#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp35_ = _tmp34_; -#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp33_); -#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (_tmp30_); -#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp27_ = _tmp35_; -#line 591 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12995 "ImportPage.c" - goto __catch83_g_error; - } -#line 590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp36_ = _tmp27_; -#line 590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp27_ = NULL; -#line 590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _backing_photo_row_unref0 (self->priv->associated_file); -#line 590 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->associated_file = _tmp36_; -#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _backing_photo_row_unref0 (_tmp27_); -#line 13008 "ImportPage.c" - } - goto __finally83; - __catch83_g_error: - { - GError* err = NULL; - ImportPageCameraImportJob* _tmp37_; - const gchar* _tmp38_; - GError* _tmp39_; - const gchar* _tmp40_; -#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - err = _inner_error_; -#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _inner_error_ = NULL; -#line 594 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp37_ = self->priv->associated; -#line 594 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp38_ = _tmp37_->priv->filename; -#line 594 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp39_ = err; -#line 594 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp40_ = _tmp39_->message; -#line 594 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_warning ("ImportPage.vala:594: Unable to generate backing associated file for %s" \ -": %s", _tmp38_, _tmp40_); -#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_error_free0 (err); -#line 13034 "ImportPage.c" - } - __finally83: -#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 13039 "ImportPage.c" - gboolean _tmp41_ = FALSE; -#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_propagate_error (error, _inner_error_); -#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (dest_file); -#line 589 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return _tmp41_; -#line 13047 "ImportPage.c" - } -#line 598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp42_ = self->priv->associated_file; -#line 598 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp42_ == NULL) { -#line 13053 "ImportPage.c" - ImportPageCameraImportJob* _tmp43_; - const gchar* _tmp44_; -#line 599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp43_ = self->priv->associated; -#line 599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp44_ = _tmp43_->priv->filename; -#line 599 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_message ("ImportPage.vala:599: Unable to generate backing associated file for %s", _tmp44_); -#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (dest_file); -#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (file_to_import) { -#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - *file_to_import = _vala_file_to_import; -#line 13070 "ImportPage.c" - } else { -#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_vala_file_to_import); -#line 13074 "ImportPage.c" - } -#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (copy_to_library) { -#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - *copy_to_library = _vala_copy_to_library; -#line 13080 "ImportPage.c" - } -#line 600 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 13084 "ImportPage.c" - } -#line 603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp45_ = self->priv->associated_file; -#line 603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp46_ = _tmp45_->filepath; -#line 603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp47_ = g_file_new_for_path (_tmp46_); -#line 603 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - assoc_dest = _tmp47_; -#line 604 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp48_ = assoc_dest; -#line 604 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - library_monitor_blacklist_file (_tmp48_, "CameraImportJob.prepare"); -#line 13098 "ImportPage.c" - { - GPContextWrapper* _tmp49_; - GPContext* _tmp50_; - Camera* _tmp51_; - ImportPageCameraImportJob* _tmp52_; - const gchar* _tmp53_; - ImportPageCameraImportJob* _tmp54_; - const gchar* _tmp55_; - GFile* _tmp56_; -#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp49_ = self->priv->context; -#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp50_ = _tmp49_->context; -#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp51_ = self->priv->camera; -#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp52_ = self->priv->associated; -#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp53_ = _tmp52_->priv->fulldir; -#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp54_ = self->priv->associated; -#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp55_ = _tmp54_->priv->filename; -#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp56_ = assoc_dest; -#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - gp_save_image (_tmp50_, _tmp51_, _tmp53_, _tmp55_, _tmp56_, &_inner_error_); -#line 606 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 13128 "ImportPage.c" - goto __finally84; - } - } - __finally84: - { - GFile* _tmp57_; -#line 609 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp57_ = assoc_dest; -#line 609 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - library_monitor_unblacklist_file (_tmp57_); -#line 13139 "ImportPage.c" - } -#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 13143 "ImportPage.c" - gboolean _tmp58_ = FALSE; -#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_propagate_error (error, _inner_error_); -#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (assoc_dest); -#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (dest_file); -#line 605 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return _tmp58_; -#line 13153 "ImportPage.c" - } -#line 588 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (assoc_dest); -#line 13157 "ImportPage.c" - } -#line 613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp59_ = dest_file; -#line 613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp60_ = _g_object_ref0 (_tmp59_); -#line 613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_vala_file_to_import); -#line 613 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _vala_file_to_import = _tmp60_; -#line 614 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _vala_copy_to_library = FALSE; -#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = TRUE; -#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (dest_file); -#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (file_to_import) { -#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - *file_to_import = _vala_file_to_import; -#line 13177 "ImportPage.c" - } else { -#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_vala_file_to_import); -#line 13181 "ImportPage.c" - } -#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (copy_to_library) { -#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - *copy_to_library = _vala_copy_to_library; -#line 13187 "ImportPage.c" - } -#line 616 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 13191 "ImportPage.c" -} - - -static GFile* -import_page_camera_import_job_real_get_associated_file (BatchImportJob* base) -{ - ImportPageCameraImportJob * self; - GFile* result = NULL; - BackingPhotoRow* _tmp0_; - BackingPhotoRow* _tmp1_; - const gchar* _tmp2_; - GFile* _tmp3_; -#line 619 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = self->priv->associated_file; -#line 620 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp0_ == NULL) { -#line 621 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = NULL; -#line 621 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 13214 "ImportPage.c" - } -#line 624 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = self->priv->associated_file; -#line 624 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = _tmp1_->filepath; -#line 624 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = g_file_new_for_path (_tmp2_); -#line 624 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = _tmp3_; -#line 624 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 13226 "ImportPage.c" -} - - -static void -import_page_camera_import_job_class_init (ImportPageCameraImportJobClass * klass) -{ -#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_camera_import_job_parent_class = g_type_class_peek_parent (klass); -#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((BatchImportJobClass *) klass)->finalize = import_page_camera_import_job_finalize; -#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_type_class_add_private (klass, sizeof (ImportPageCameraImportJobPrivate)); -#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((BatchImportJobClass *) klass)->get_duplicated_file = (DuplicatedFile* (*) (BatchImportJob *)) import_page_camera_import_job_real_get_duplicated_file; -#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((BatchImportJobClass *) klass)->get_exposure_time_override = (time_t (*) (BatchImportJob *)) import_page_camera_import_job_real_get_exposure_time_override; -#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((BatchImportJobClass *) klass)->get_dest_identifier = (gchar* (*) (BatchImportJob *)) import_page_camera_import_job_real_get_dest_identifier; -#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((BatchImportJobClass *) klass)->get_source_identifier = (gchar* (*) (BatchImportJob *)) import_page_camera_import_job_real_get_source_identifier; -#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((BatchImportJobClass *) klass)->get_basename = (gchar* (*) (BatchImportJob *)) import_page_camera_import_job_real_get_basename; -#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((BatchImportJobClass *) klass)->get_path = (gchar* (*) (BatchImportJob *)) import_page_camera_import_job_real_get_path; -#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((BatchImportJobClass *) klass)->set_associated = (void (*) (BatchImportJob *, BatchImportJob*)) import_page_camera_import_job_real_set_associated; -#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((BatchImportJobClass *) klass)->is_directory = (gboolean (*) (BatchImportJob *)) import_page_camera_import_job_real_is_directory; -#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((BatchImportJobClass *) klass)->determine_file_size = (gboolean (*) (BatchImportJob *, guint64*, GFile* *)) import_page_camera_import_job_real_determine_file_size; -#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((BatchImportJobClass *) klass)->prepare = (gboolean (*) (BatchImportJob *, GFile* *, gboolean*, GError**)) import_page_camera_import_job_real_prepare; -#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((BatchImportJobClass *) klass)->get_associated_file = (GFile* (*) (BatchImportJob *)) import_page_camera_import_job_real_get_associated_file; -#line 13261 "ImportPage.c" -} - - -static void -import_page_camera_import_job_instance_init (ImportPageCameraImportJob * self) -{ -#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv = IMPORT_PAGE_CAMERA_IMPORT_JOB_GET_PRIVATE (self); -#line 489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->associated = NULL; -#line 490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->associated_file = NULL; -#line 13274 "ImportPage.c" -} - - -static void -import_page_camera_import_job_finalize (BatchImportJob * obj) -{ - ImportPageCameraImportJob * self; -#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, IMPORT_PAGE_TYPE_CAMERA_IMPORT_JOB, ImportPageCameraImportJob); -#line 481 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_context_wrapper_unref0 (self->priv->context); -#line 482 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->import_file); -#line 483 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_camera_unref0 (self->priv->camera); -#line 484 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->fulldir); -#line 485 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->filename); -#line 487 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _media_metadata_unref0 (self->priv->metadata); -#line 489 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _batch_import_job_unref0 (self->priv->associated); -#line 490 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _backing_photo_row_unref0 (self->priv->associated_file); -#line 491 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->duplicated_file); -#line 480 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - BATCH_IMPORT_JOB_CLASS (import_page_camera_import_job_parent_class)->finalize (obj); -#line 13304 "ImportPage.c" -} - - -static GType -import_page_camera_import_job_get_type (void) -{ - static volatile gsize import_page_camera_import_job_type_id__volatile = 0; - if (g_once_init_enter (&import_page_camera_import_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ImportPageCameraImportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_page_camera_import_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportPageCameraImportJob), 0, (GInstanceInitFunc) import_page_camera_import_job_instance_init, NULL }; - GType import_page_camera_import_job_type_id; - import_page_camera_import_job_type_id = g_type_register_static (TYPE_BATCH_IMPORT_JOB, "ImportPageCameraImportJob", &g_define_type_info, 0); - g_once_init_leave (&import_page_camera_import_job_type_id__volatile, import_page_camera_import_job_type_id); - } - return import_page_camera_import_job_type_id__volatile; -} - - -static guint -import_page_import_page_search_view_filter_real_get_criteria (SearchViewFilter* base) -{ - ImportPageImportPageSearchViewFilter * self; - guint result = 0U; -#line 629 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER, ImportPageImportPageSearchViewFilter); -#line 630 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = (guint) (SEARCH_FILTER_CRITERIA_TEXT | SEARCH_FILTER_CRITERIA_MEDIA); -#line 630 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 13333 "ImportPage.c" -} - - -static gboolean -string_contains (const gchar* self, - const gchar* needle) -{ - gboolean result = FALSE; - gchar* _tmp0_; -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, FALSE); -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, FALSE); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr ((gchar*) self, (gchar*) needle); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_ != NULL; -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 13353 "ImportPage.c" -} - - -static gboolean -import_page_import_page_search_view_filter_real_predicate (ViewFilter* base, - DataView* view) -{ - ImportPageImportPageSearchViewFilter * self; - gboolean result = FALSE; - ImportSource* source = NULL; - ImportSource* _tmp0_; - gboolean _tmp1_ = FALSE; -#line 633 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER, ImportPageImportPageSearchViewFilter); -#line 633 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_DATA_VIEW (view), FALSE); -#line 634 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = import_preview_get_import_source (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_IMPORT_PREVIEW, ImportPreview)); -#line 634 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - source = _tmp0_; -#line 637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if ((gboolean) (SEARCH_FILTER_CRITERIA_MEDIA & search_view_filter_get_criteria (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)))) { -#line 637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = search_view_filter_filter_by_media_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 13378 "ImportPage.c" - } else { -#line 637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = FALSE; -#line 13382 "ImportPage.c" - } -#line 637 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp1_) { -#line 13386 "ImportPage.c" - ImportSource* _tmp2_; -#line 638 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = source; -#line 638 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_VIDEO_IMPORT_SOURCE)) { -#line 13392 "ImportPage.c" - gboolean _tmp3_; - gboolean _tmp4_; -#line 639 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = search_view_filter_get_show_media_video (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 639 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp4_ = _tmp3_; -#line 639 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!_tmp4_) { -#line 640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (source); -#line 640 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 13407 "ImportPage.c" - } - } else { - ImportSource* _tmp5_; -#line 641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp5_ = source; -#line 641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_PHOTO_IMPORT_SOURCE)) { -#line 13415 "ImportPage.c" - PhotoImportSource* photo = NULL; - ImportSource* _tmp6_; - PhotoImportSource* _tmp7_; - PhotoImportSource* _tmp8_; -#line 642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp6_ = source; -#line 642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp7_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, TYPE_PHOTO_IMPORT_SOURCE) ? ((PhotoImportSource*) _tmp6_) : NULL); -#line 642 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - photo = _tmp7_; -#line 643 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp8_ = photo; -#line 643 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (photo_import_source_get_file_format (_tmp8_) == PHOTO_FILE_FORMAT_RAW) { -#line 13430 "ImportPage.c" - PhotoImportSource* _tmp9_; - PhotoImportSource* _tmp10_; - PhotoImportSource* _tmp11_; - gboolean _tmp12_; -#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp9_ = photo; -#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp10_ = photo_import_source_get_associated (_tmp9_); -#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp11_ = _tmp10_; -#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp12_ = _tmp11_ != NULL; -#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (_tmp11_); -#line 644 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp12_) { -#line 13447 "ImportPage.c" - gboolean _tmp13_ = FALSE; - gboolean _tmp14_; - gboolean _tmp15_; -#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp14_ = search_view_filter_get_show_media_photos (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp15_ = _tmp14_; -#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!_tmp15_) { -#line 13457 "ImportPage.c" - gboolean _tmp16_; - gboolean _tmp17_; -#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp16_ = search_view_filter_get_show_media_raw (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp17_ = _tmp16_; -#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = !_tmp17_; -#line 13466 "ImportPage.c" - } else { -#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp13_ = FALSE; -#line 13470 "ImportPage.c" - } -#line 645 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (_tmp13_) { -#line 646 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 646 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (photo); -#line 646 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (source); -#line 646 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 13482 "ImportPage.c" - } - } else { - gboolean _tmp18_; - gboolean _tmp19_; -#line 647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp18_ = search_view_filter_get_show_media_raw (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp19_ = _tmp18_; -#line 647 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!_tmp19_) { -#line 648 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 648 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (photo); -#line 648 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (source); -#line 648 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 13501 "ImportPage.c" - } - } - } else { - gboolean _tmp20_; - gboolean _tmp21_; -#line 650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp20_ = search_view_filter_get_show_media_photos (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp21_ = _tmp20_; -#line 650 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!_tmp21_) { -#line 651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (photo); -#line 651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (source); -#line 651 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 13521 "ImportPage.c" - } - } -#line 641 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (photo); -#line 13526 "ImportPage.c" - } - } - } -#line 655 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if ((gboolean) (SEARCH_FILTER_CRITERIA_TEXT & search_view_filter_get_criteria (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)))) { -#line 13532 "ImportPage.c" - const gchar* keywords = NULL; - ImportSource* _tmp22_; - const gchar* _tmp23_; - const gchar* _tmp24_; - gint _tmp25_; - gchar** _tmp26_; -#line 656 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp22_ = source; -#line 656 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp23_ = indexable_get_indexable_keywords (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_INDEXABLE, Indexable)); -#line 656 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - keywords = _tmp23_; -#line 657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp24_ = keywords; -#line 657 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (is_string_empty (_tmp24_)) { -#line 658 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 658 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (source); -#line 658 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 13555 "ImportPage.c" - } -#line 661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp26_ = search_view_filter_get_search_filter_words (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter), &_tmp25_); -#line 13559 "ImportPage.c" - { - gchar** word_collection = NULL; - gint word_collection_length1 = 0; - gint _word_collection_size_ = 0; - gint word_it = 0; -#line 661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - word_collection = _tmp26_; -#line 661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - word_collection_length1 = _tmp25_; -#line 661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - for (word_it = 0; word_it < _tmp25_; word_it = word_it + 1) { -#line 13571 "ImportPage.c" - const gchar* word = NULL; -#line 661 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - word = word_collection[word_it]; -#line 13575 "ImportPage.c" - { - const gchar* _tmp27_; - const gchar* _tmp28_; -#line 662 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp27_ = keywords; -#line 662 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp28_ = word; -#line 662 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - if (!string_contains (_tmp27_, _tmp28_)) { -#line 663 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = FALSE; -#line 663 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (source); -#line 663 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 13591 "ImportPage.c" - } - } - } - } - } -#line 667 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = TRUE; -#line 667 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (source); -#line 667 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 13603 "ImportPage.c" -} - - -static ImportPageImportPageSearchViewFilter* -import_page_import_page_search_view_filter_construct (GType object_type) -{ - ImportPageImportPageSearchViewFilter* self = NULL; -#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = (ImportPageImportPageSearchViewFilter*) search_view_filter_construct (object_type); -#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self; -#line 13615 "ImportPage.c" -} - - -static ImportPageImportPageSearchViewFilter* -import_page_import_page_search_view_filter_new (void) -{ -#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return import_page_import_page_search_view_filter_construct (IMPORT_PAGE_TYPE_IMPORT_PAGE_SEARCH_VIEW_FILTER); -#line 13624 "ImportPage.c" -} - - -static void -import_page_import_page_search_view_filter_class_init (ImportPageImportPageSearchViewFilterClass * klass) -{ -#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_import_page_search_view_filter_parent_class = g_type_class_peek_parent (klass); -#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((SearchViewFilterClass *) klass)->get_criteria = (guint (*) (SearchViewFilter *)) import_page_import_page_search_view_filter_real_get_criteria; -#line 628 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((ViewFilterClass *) klass)->predicate = (gboolean (*) (ViewFilter *, DataView*)) import_page_import_page_search_view_filter_real_predicate; -#line 13637 "ImportPage.c" -} - - -static void -import_page_import_page_search_view_filter_instance_init (ImportPageImportPageSearchViewFilter * self) -{ -} - - -static GType -import_page_import_page_search_view_filter_get_type (void) -{ - static volatile gsize import_page_import_page_search_view_filter_type_id__volatile = 0; - if (g_once_init_enter (&import_page_import_page_search_view_filter_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ImportPageImportPageSearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_page_import_page_search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportPageImportPageSearchViewFilter), 0, (GInstanceInitFunc) import_page_import_page_search_view_filter_instance_init, NULL }; - GType import_page_import_page_search_view_filter_type_id; - import_page_import_page_search_view_filter_type_id = g_type_register_static (TYPE_SEARCH_VIEW_FILTER, "ImportPageImportPageSearchViewFilter", &g_define_type_info, 0); - g_once_init_leave (&import_page_import_page_search_view_filter_type_id__volatile, import_page_import_page_search_view_filter_type_id); - } - return import_page_import_page_search_view_filter_type_id__volatile; -} - - -static gboolean -import_page_hide_imported_view_filter_real_predicate (ViewFilter* base, - DataView* view) -{ - ImportPageHideImportedViewFilter * self; - gboolean result = FALSE; -#line 673 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER, ImportPageHideImportedViewFilter); -#line 673 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_return_val_if_fail (IS_DATA_VIEW (view), FALSE); -#line 674 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - result = !import_preview_is_already_imported (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_IMPORT_PREVIEW, ImportPreview)); -#line 674 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return result; -#line 13675 "ImportPage.c" -} - - -static ImportPageHideImportedViewFilter* -import_page_hide_imported_view_filter_construct (GType object_type) -{ - ImportPageHideImportedViewFilter* self = NULL; -#line 672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = (ImportPageHideImportedViewFilter*) view_filter_construct (object_type); -#line 672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return self; -#line 13687 "ImportPage.c" -} - - -static ImportPageHideImportedViewFilter* -import_page_hide_imported_view_filter_new (void) -{ -#line 672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - return import_page_hide_imported_view_filter_construct (IMPORT_PAGE_TYPE_HIDE_IMPORTED_VIEW_FILTER); -#line 13696 "ImportPage.c" -} - - -static void -import_page_hide_imported_view_filter_class_init (ImportPageHideImportedViewFilterClass * klass) -{ -#line 672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_hide_imported_view_filter_parent_class = g_type_class_peek_parent (klass); -#line 672 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((ViewFilterClass *) klass)->predicate = (gboolean (*) (ViewFilter *, DataView*)) import_page_hide_imported_view_filter_real_predicate; -#line 13707 "ImportPage.c" -} - - -static void -import_page_hide_imported_view_filter_instance_init (ImportPageHideImportedViewFilter * self) -{ -} - - -static GType -import_page_hide_imported_view_filter_get_type (void) -{ - static volatile gsize import_page_hide_imported_view_filter_type_id__volatile = 0; - if (g_once_init_enter (&import_page_hide_imported_view_filter_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ImportPageHideImportedViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_page_hide_imported_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportPageHideImportedViewFilter), 0, (GInstanceInitFunc) import_page_hide_imported_view_filter_instance_init, NULL }; - GType import_page_hide_imported_view_filter_type_id; - import_page_hide_imported_view_filter_type_id = g_type_register_static (TYPE_VIEW_FILTER, "ImportPageHideImportedViewFilter", &g_define_type_info, 0); - g_once_init_leave (&import_page_hide_imported_view_filter_type_id__volatile, import_page_hide_imported_view_filter_type_id); - } - return import_page_hide_imported_view_filter_type_id__volatile; -} - - -static void -import_page_class_init (ImportPageClass * klass) -{ -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - import_page_parent_class = g_type_class_peek_parent (klass); -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_type_class_add_private (klass, sizeof (ImportPagePrivate)); -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((PageClass *) klass)->get_toolbar = (GtkToolbar* (*) (Page *)) import_page_real_get_toolbar; -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((CheckerboardPageClass *) klass)->get_view_tracker = (CoreViewTracker* (*) (CheckerboardPage *)) import_page_real_get_view_tracker; -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((CheckerboardPageClass *) klass)->get_view_empty_message = (gchar* (*) (CheckerboardPage *)) import_page_real_get_view_empty_message; -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((CheckerboardPageClass *) klass)->get_filter_no_match_message = (gchar* (*) (CheckerboardPage *)) import_page_real_get_filter_no_match_message; -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) import_page_real_init_collect_ui_filenames; -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) import_page_real_add_actions; -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) import_page_real_remove_actions; -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((PageClass *) klass)->init_actions = (void (*) (Page *, gint, gint)) import_page_real_init_actions; -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((PageClass *) klass)->switched_to = (void (*) (Page *)) import_page_real_switched_to; -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((PageClass *) klass)->ready = (void (*) (Page *)) import_page_real_ready; -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((CheckerboardPageClass *) klass)->set_display_titles = (void (*) (CheckerboardPage *, gboolean)) import_page_real_set_display_titles; -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - ((CheckerboardPageClass *) klass)->get_search_view_filter = (SearchViewFilter* (*) (CheckerboardPage *)) import_page_real_get_search_view_filter; -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - G_OBJECT_CLASS (klass)->finalize = import_page_finalize; -#line 13764 "ImportPage.c" -} - - -static void -import_page_instance_init (ImportPage * self) -{ - GtkLabel* _tmp0_; - GtkProgressBar* _tmp1_; - ImportPageImportPageSearchViewFilter* _tmp2_; - ImportPageHideImportedViewFilter* _tmp3_; -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv = IMPORT_PAGE_GET_PRIVATE (self); -#line 681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->import_sources = NULL; -#line 682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = (GtkLabel*) gtk_label_new (NULL); -#line 682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_ref_sink (_tmp0_); -#line 682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->camera_label = _tmp0_; -#line 684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp1_ = (GtkProgressBar*) gtk_progress_bar_new (); -#line 684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_object_ref_sink (_tmp1_); -#line 684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->progress_bar = _tmp1_; -#line 687 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->busy = FALSE; -#line 688 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->refreshed = FALSE; -#line 689 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->refresh_result = GP_OK; -#line 690 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->refresh_error = NULL; -#line 692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->volume_monitor = NULL; -#line 693 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->local_ref = NULL; -#line 695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = import_page_import_page_search_view_filter_new (); -#line 695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->search_filter = _tmp2_; -#line 696 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp3_ = import_page_hide_imported_view_filter_new (); -#line 696 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->hide_imported_filter = _tmp3_; -#line 1160 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self->priv->claim_timeout = 500; -#line 13813 "ImportPage.c" -} - - -static void -import_page_finalize (GObject * obj) -{ - ImportPage * self; - LibraryPhotoSourceCollection* _tmp0_; - guint _tmp1_; - VideoSourceCollection* _tmp2_; - guint _tmp3_; -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_IMPORT_PAGE, ImportPage); -#line 767 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp0_ = library_photo_global; -#line 767 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE); -#line 767 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _import_page_on_media_added_removed_data_collection_contents_altered, self); -#line 768 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _tmp2_ = video_global; -#line 768 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE); -#line 768 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _import_page_on_media_added_removed_data_collection_contents_altered, self); -#line 681 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _data_collection_unref0 (self->priv->import_sources); -#line 682 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->camera_label); -#line 683 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->hide_imported); -#line 684 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->progress_bar); -#line 685 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _gp_camera_unref0 (self->priv->camera); -#line 686 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->uri); -#line 690 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->refresh_error); -#line 691 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->camera_name); -#line 692 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->volume_monitor); -#line 693 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_object_unref0 (self->priv->local_ref); -#line 694 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _g_free0 (self->priv->icon); -#line 695 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _view_filter_unref0 (self->priv->search_filter); -#line 696 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _view_filter_unref0 (self->priv->hide_imported_filter); -#line 697 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - _core_tracker_unref0 (self->priv->tracker); -#line 465 "/home/jens/Source/shotwell/src/camera/ImportPage.vala" - G_OBJECT_CLASS (import_page_parent_class)->finalize (obj); -#line 13869 "ImportPage.c" -} - - -GType -import_page_get_type (void) -{ - static volatile gsize import_page_type_id__volatile = 0; - if (g_once_init_enter (&import_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ImportPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportPage), 0, (GInstanceInitFunc) import_page_instance_init, NULL }; - GType import_page_type_id; - import_page_type_id = g_type_register_static (TYPE_CHECKERBOARD_PAGE, "ImportPage", &g_define_type_info, 0); - g_once_init_leave (&import_page_type_id__volatile, import_page_type_id); - } - return import_page_type_id__volatile; -} - - - diff --git a/src/camera/ImportPage.vala b/src/camera/ImportPage.vala index f7698a6..0839590 100644 --- a/src/camera/ImportPage.vala +++ b/src/camera/ImportPage.vala @@ -272,11 +272,7 @@ class ImportPreview : MediaSourceItem { base(source, Dimensions(), source.get_name(), null); this.duplicated_file = null; - - // draw sprocket holes as visual indications on video previews - if (source is VideoImportSource) - set_enable_sprockets(true); - + // scale down pixbuf if necessary Gdk.Pixbuf pixbuf = null; try { @@ -394,6 +390,10 @@ class ImportPreview : MediaSourceItem { public ImportSource get_import_source() { return (ImportSource) get_source(); } + + protected override Gdk.Pixbuf? get_top_left_trinket(int scale) { + return (get_import_source() is VideoImportSource) ? Resources.get_video_trinket (scale) : null; + } } public class CameraViewTracker : Core.ViewTracker { @@ -802,7 +802,7 @@ public class ImportPage : CheckerboardPage { // Find button Gtk.ToggleToolButton find_button = new Gtk.ToggleToolButton(); - find_button.set_icon_name("edit-find"); + find_button.set_icon_name("edit-find-symbolic"); find_button.set_action_name ("win.CommonDisplaySearchbar"); toolbar.insert(find_button, -1); @@ -812,7 +812,7 @@ public class ImportPage : CheckerboardPage { // Import selected Gtk.ToolButton import_selected_button = new Gtk.ToolButton(null, null); - import_selected_button.set_icon_name("import"); + import_selected_button.set_icon_name(Resources.IMPORT); import_selected_button.set_label(_("Import _Selected")); import_selected_button.is_important = true; import_selected_button.use_underline = true; @@ -822,7 +822,7 @@ public class ImportPage : CheckerboardPage { // Import all Gtk.ToolButton import_all_button = new Gtk.ToolButton(null, null); - import_all_button.set_icon_name("import-all"); + import_all_button.set_icon_name(Resources.IMPORT_ALL); import_all_button.set_label(_("Import _All")); import_all_button.is_important = true; import_all_button.use_underline = true; diff --git a/src/config/Config.c b/src/config/Config.c deleted file mode 100644 index 7dd8334..0000000 --- a/src/config/Config.c +++ /dev/null @@ -1,1011 +0,0 @@ -/* Config.c generated by valac 0.40.4, the Vala compiler - * generated from Config.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/* This file is the master unit file for the Config unit. It should be edited to include - * whatever code is deemed necessary. - * - * The init() and terminate() methods are mandatory. - * - * If the unit needs to be configured prior to initialization, add the proper parameters to - * the preconfigure() method, implement it, and ensure in init() that it's been called. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; -typedef struct _ConfigurationFacadePrivate ConfigurationFacadePrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) - -#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ()) - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) - -#define TYPE_FUZZY_PROPERTY_STATE (fuzzy_property_state_get_type ()) - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -typedef struct _ConfigFacadePrivate ConfigFacadePrivate; -enum { - CONFIG_FACADE_0_PROPERTY, - CONFIG_FACADE_NUM_PROPERTIES -}; -static GParamSpec* config_facade_properties[CONFIG_FACADE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_GSETTINGS_CONFIGURATION_ENGINE (gsettings_configuration_engine_get_type ()) -#define GSETTINGS_CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine)) -#define GSETTINGS_CONFIGURATION_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngineClass)) -#define IS_GSETTINGS_CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GSETTINGS_CONFIGURATION_ENGINE)) -#define IS_GSETTINGS_CONFIGURATION_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GSETTINGS_CONFIGURATION_ENGINE)) -#define GSETTINGS_CONFIGURATION_ENGINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngineClass)) - -typedef struct _GSettingsConfigurationEngine GSettingsConfigurationEngine; -typedef struct _GSettingsConfigurationEngineClass GSettingsConfigurationEngineClass; - -#define TYPE_CONFIGURATION_ENGINE (configuration_engine_get_type ()) -#define CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_ENGINE, ConfigurationEngine)) -#define IS_CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_ENGINE)) -#define CONFIGURATION_ENGINE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONFIGURATION_ENGINE, ConfigurationEngineIface)) - -typedef struct _ConfigurationEngine ConfigurationEngine; -typedef struct _ConfigurationEngineIface ConfigurationEngineIface; - -#define TYPE_CONFIGURABLE_PROPERTY (configurable_property_get_type ()) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -enum { - CONFIG_FACADE_COLORS_CHANGED_SIGNAL, - CONFIG_FACADE_NUM_SIGNALS -}; -static guint config_facade_signals[CONFIG_FACADE_NUM_SIGNALS] = {0}; - -struct _Dimensions { - gint width; - gint height; -}; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -typedef enum { - EXPORT_FORMAT_MODE_UNMODIFIED, - EXPORT_FORMAT_MODE_CURRENT, - EXPORT_FORMAT_MODE_SPECIFIED, - EXPORT_FORMAT_MODE_LAST -} ExportFormatMode; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -typedef enum { - FUZZY_PROPERTY_STATE_ENABLED, - FUZZY_PROPERTY_STATE_DISABLED, - FUZZY_PROPERTY_STATE_UNKNOWN -} FuzzyPropertyState; - -struct _ConfigurationFacade { - GObject parent_instance; - ConfigurationFacadePrivate * priv; -}; - -struct _ConfigurationFacadeClass { - GObjectClass parent_class; - gboolean (*get_auto_import_from_library) (ConfigurationFacade* self); - void (*set_auto_import_from_library) (ConfigurationFacade* self, gboolean auto_import); - gchar* (*get_bg_color_name) (ConfigurationFacade* self); - void (*set_bg_color_name) (ConfigurationFacade* self, const gchar* color_name); - gchar* (*get_transparent_background_type) (ConfigurationFacade* self); - void (*set_transparent_background_type) (ConfigurationFacade* self, const gchar* type); - gchar* (*get_transparent_background_color) (ConfigurationFacade* self); - void (*set_transparent_background_color) (ConfigurationFacade* self, const gchar* color_name); - gboolean (*get_commit_metadata_to_masters) (ConfigurationFacade* self); - void (*set_commit_metadata_to_masters) (ConfigurationFacade* self, gboolean commit_metadata); - gchar* (*get_desktop_background) (ConfigurationFacade* self); - void (*set_desktop_background) (ConfigurationFacade* self, const gchar* filename); - gchar* (*get_screensaver) (ConfigurationFacade* self); - void (*set_screensaver) (ConfigurationFacade* self, const gchar* filename); - gchar* (*get_directory_pattern) (ConfigurationFacade* self); - void (*set_directory_pattern) (ConfigurationFacade* self, const gchar* s); - gchar* (*get_directory_pattern_custom) (ConfigurationFacade* self); - void (*set_directory_pattern_custom) (ConfigurationFacade* self, const gchar* s); - void (*get_direct_window_state) (ConfigurationFacade* self, gboolean* maximize, Dimensions* dimensions); - void (*set_direct_window_state) (ConfigurationFacade* self, gboolean maximize, Dimensions* dimensions); - gboolean (*get_display_basic_properties) (ConfigurationFacade* self); - void (*set_display_basic_properties) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_extended_properties) (ConfigurationFacade* self); - void (*set_display_extended_properties) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_sidebar) (ConfigurationFacade* self); - void (*set_display_sidebar) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_toolbar) (ConfigurationFacade* self); - void (*set_display_toolbar) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_search_bar) (ConfigurationFacade* self); - void (*set_display_search_bar) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_photo_ratings) (ConfigurationFacade* self); - void (*set_display_photo_ratings) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_photo_tags) (ConfigurationFacade* self); - void (*set_display_photo_tags) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_photo_titles) (ConfigurationFacade* self); - void (*set_display_photo_titles) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_photo_comments) (ConfigurationFacade* self); - void (*set_display_photo_comments) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_event_comments) (ConfigurationFacade* self); - void (*set_display_event_comments) (ConfigurationFacade* self, gboolean display); - void (*get_event_photos_sort) (ConfigurationFacade* self, gboolean* sort_order, gint* sort_by); - void (*set_event_photos_sort) (ConfigurationFacade* self, gboolean sort_order, gint sort_by); - gboolean (*get_events_sort_ascending) (ConfigurationFacade* self); - void (*set_events_sort_ascending) (ConfigurationFacade* self, gboolean sort); - gchar* (*get_external_photo_app) (ConfigurationFacade* self); - void (*set_external_photo_app) (ConfigurationFacade* self, const gchar* external_photo_app); - gchar* (*get_external_raw_app) (ConfigurationFacade* self); - void (*set_external_raw_app) (ConfigurationFacade* self, const gchar* external_raw_app); - ScaleConstraint (*get_export_constraint) (ConfigurationFacade* self); - void (*set_export_constraint) (ConfigurationFacade* self, ScaleConstraint constraint); - ExportFormatMode (*get_export_export_format_mode) (ConfigurationFacade* self); - void (*set_export_export_format_mode) (ConfigurationFacade* self, ExportFormatMode export_format_mode); - gboolean (*get_export_export_metadata) (ConfigurationFacade* self); - void (*set_export_export_metadata) (ConfigurationFacade* self, gboolean export_metadata); - PhotoFileFormat (*get_export_photo_file_format) (ConfigurationFacade* self); - void (*set_export_photo_file_format) (ConfigurationFacade* self, PhotoFileFormat photo_file_format); - JpegQuality (*get_export_quality) (ConfigurationFacade* self); - void (*set_export_quality) (ConfigurationFacade* self, JpegQuality quality); - gint (*get_export_scale) (ConfigurationFacade* self); - void (*set_export_scale) (ConfigurationFacade* self, gint scale); - RawDeveloper (*get_default_raw_developer) (ConfigurationFacade* self); - void (*set_default_raw_developer) (ConfigurationFacade* self, RawDeveloper d); - gboolean (*get_hide_photos_already_imported) (ConfigurationFacade* self); - void (*set_hide_photos_already_imported) (ConfigurationFacade* self, gboolean hide_imported); - gchar* (*get_import_dir) (ConfigurationFacade* self); - void (*set_import_dir) (ConfigurationFacade* self, const gchar* import_dir); - gboolean (*get_keep_relativity) (ConfigurationFacade* self); - void (*set_keep_relativity) (ConfigurationFacade* self, gboolean keep_relativity); - gboolean (*get_pin_toolbar_state) (ConfigurationFacade* self); - void (*set_pin_toolbar_state) (ConfigurationFacade* self, gboolean state); - gint (*get_last_crop_height) (ConfigurationFacade* self); - void (*set_last_crop_height) (ConfigurationFacade* self, gint choice); - gint (*get_last_crop_menu_choice) (ConfigurationFacade* self); - void (*set_last_crop_menu_choice) (ConfigurationFacade* self, gint choice); - gint (*get_last_crop_width) (ConfigurationFacade* self); - void (*set_last_crop_width) (ConfigurationFacade* self, gint choice); - gchar* (*get_last_used_service) (ConfigurationFacade* self); - void (*set_last_used_service) (ConfigurationFacade* self, const gchar* service_name); - gchar* (*get_last_used_dataimports_service) (ConfigurationFacade* self); - void (*set_last_used_dataimports_service) (ConfigurationFacade* self, const gchar* service_name); - void (*get_library_photos_sort) (ConfigurationFacade* self, gboolean* sort_order, gint* sort_by); - void (*set_library_photos_sort) (ConfigurationFacade* self, gboolean sort_order, gint sort_by); - void (*get_library_window_state) (ConfigurationFacade* self, gboolean* maximize, Dimensions* dimensions); - void (*set_library_window_state) (ConfigurationFacade* self, gboolean maximize, Dimensions* dimensions); - gboolean (*get_modify_originals) (ConfigurationFacade* self); - void (*set_modify_originals) (ConfigurationFacade* self, gboolean modify_originals); - gint (*get_photo_thumbnail_scale) (ConfigurationFacade* self); - void (*set_photo_thumbnail_scale) (ConfigurationFacade* self, gint scale); - gdouble (*get_printing_content_height) (ConfigurationFacade* self); - void (*set_printing_content_height) (ConfigurationFacade* self, gdouble content_height); - gint (*get_printing_content_layout) (ConfigurationFacade* self); - void (*set_printing_content_layout) (ConfigurationFacade* self, gint layout_code); - gint (*get_printing_content_ppi) (ConfigurationFacade* self); - void (*set_printing_content_ppi) (ConfigurationFacade* self, gint content_ppi); - gint (*get_printing_content_units) (ConfigurationFacade* self); - void (*set_printing_content_units) (ConfigurationFacade* self, gint units_code); - gdouble (*get_printing_content_width) (ConfigurationFacade* self); - void (*set_printing_content_width) (ConfigurationFacade* self, gdouble content_width); - gint (*get_printing_images_per_page) (ConfigurationFacade* self); - void (*set_printing_images_per_page) (ConfigurationFacade* self, gint images_per_page_code); - gboolean (*get_printing_match_aspect_ratio) (ConfigurationFacade* self); - void (*set_printing_match_aspect_ratio) (ConfigurationFacade* self, gboolean match_aspect_ratio); - gboolean (*get_printing_print_titles) (ConfigurationFacade* self); - void (*set_printing_print_titles) (ConfigurationFacade* self, gboolean print_titles); - gint (*get_printing_size_selection) (ConfigurationFacade* self); - void (*set_printing_size_selection) (ConfigurationFacade* self, gint size_code); - gchar* (*get_printing_titles_font) (ConfigurationFacade* self); - void (*set_printing_titles_font) (ConfigurationFacade* self, const gchar* font_name); - gboolean (*get_show_welcome_dialog) (ConfigurationFacade* self); - void (*set_show_welcome_dialog) (ConfigurationFacade* self, gboolean show); - gint (*get_sidebar_position) (ConfigurationFacade* self); - void (*set_sidebar_position) (ConfigurationFacade* self, gint position); - gdouble (*get_slideshow_delay) (ConfigurationFacade* self); - void (*set_slideshow_delay) (ConfigurationFacade* self, gdouble delay); - gdouble (*get_slideshow_transition_delay) (ConfigurationFacade* self); - void (*set_slideshow_transition_delay) (ConfigurationFacade* self, gdouble delay); - gchar* (*get_slideshow_transition_effect_id) (ConfigurationFacade* self); - void (*set_slideshow_transition_effect_id) (ConfigurationFacade* self, const gchar* id); - gboolean (*get_slideshow_show_title) (ConfigurationFacade* self); - void (*set_slideshow_show_title) (ConfigurationFacade* self, gboolean show_title); - gboolean (*get_use_24_hour_time) (ConfigurationFacade* self); - void (*set_use_24_hour_time) (ConfigurationFacade* self, gboolean use_24_hour_time); - gboolean (*get_use_lowercase_filenames) (ConfigurationFacade* self); - void (*set_use_lowercase_filenames) (ConfigurationFacade* self, gboolean b); - gint (*get_video_interpreter_state_cookie) (ConfigurationFacade* self); - void (*set_video_interpreter_state_cookie) (ConfigurationFacade* self, gint state_cookie); - gboolean (*get_plugin_bool) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gboolean def); - void (*set_plugin_bool) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gboolean val); - gdouble (*get_plugin_double) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gdouble def); - void (*set_plugin_double) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gdouble val); - gint (*get_plugin_int) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gint def); - void (*set_plugin_int) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gint val); - gchar* (*get_plugin_string) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* def); - void (*set_plugin_string) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* val); - void (*unset_plugin_key) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key); - FuzzyPropertyState (*is_plugin_enabled) (ConfigurationFacade* self, const gchar* id); - void (*set_plugin_enabled) (ConfigurationFacade* self, const gchar* id, gboolean enabled); -}; - -struct _ConfigFacade { - ConfigurationFacade parent_instance; - ConfigFacadePrivate * priv; -}; - -struct _ConfigFacadeClass { - ConfigurationFacadeClass parent_class; -}; - -struct _ConfigFacadePrivate { - gchar* bg_color; - gchar* selected_color; - gchar* unselected_color; - gchar* unfocused_selected_color; - gchar* border_color; -}; - -typedef enum { - CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY = 0, - CONFIGURABLE_PROPERTY_BG_COLOR_NAME, - CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE, - CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR, - CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS, - CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE, - CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE, - CONFIGURABLE_PROPERTY_SCREENSAVER_FILE, - CONFIGURABLE_PROPERTY_SCREENSAVER_MODE, - CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN, - CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM, - CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT, - CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE, - CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH, - CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES, - CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS, - CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES, - CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR, - CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR, - CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR, - CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS, - CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS, - CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES, - CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS, - CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING, - CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY, - CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING, - CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT, - CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE, - CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA, - CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT, - CONFIGURABLE_PROPERTY_EXPORT_QUALITY, - CONFIGURABLE_PROPERTY_EXPORT_SCALE, - CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP, - CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP, - CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED, - CONFIGURABLE_PROPERTY_IMPORT_DIR, - CONFIGURABLE_PROPERTY_KEEP_RELATIVITY, - CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT, - CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE, - CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH, - CONFIGURABLE_PROPERTY_LAST_USED_SERVICE, - CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE, - CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING, - CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY, - CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT, - CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE, - CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH, - CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS, - CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE, - CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE, - CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT, - CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT, - CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI, - CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS, - CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH, - CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE, - CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO, - CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES, - CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION, - CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT, - CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT, - CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG, - CONFIGURABLE_PROPERTY_SIDEBAR_POSITION, - CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY, - CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY, - CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID, - CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE, - CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME, - CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES, - CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE, - CONFIGURABLE_PROPERTY_NUM_PROPERTIES -} ConfigurableProperty; - -typedef enum { - CONFIGURATION_ERROR_PROPERTY_HAS_NO_VALUE, - CONFIGURATION_ERROR_ENGINE_ERROR -} ConfigurationError; -#define CONFIGURATION_ERROR configuration_error_quark () -struct _ConfigurationEngineIface { - GTypeInterface parent_iface; - gchar* (*get_name) (ConfigurationEngine* self); - gint (*get_int_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error); - void (*set_int_property) (ConfigurationEngine* self, ConfigurableProperty p, gint val, GError** error); - gint (*get_enum_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error); - void (*set_enum_property) (ConfigurationEngine* self, ConfigurableProperty p, gint val, GError** error); - gchar* (*get_string_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error); - void (*set_string_property) (ConfigurationEngine* self, ConfigurableProperty p, const gchar* val, GError** error); - gboolean (*get_bool_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error); - void (*set_bool_property) (ConfigurationEngine* self, ConfigurableProperty p, gboolean val, GError** error); - gdouble (*get_double_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error); - void (*set_double_property) (ConfigurationEngine* self, ConfigurableProperty p, gdouble val, GError** error); - gboolean (*get_plugin_bool) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gboolean def); - void (*set_plugin_bool) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gboolean val); - gdouble (*get_plugin_double) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gdouble def); - void (*set_plugin_double) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gdouble val); - gint (*get_plugin_int) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gint def); - void (*set_plugin_int) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gint val); - gchar* (*get_plugin_string) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* def); - void (*set_plugin_string) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* val); - void (*unset_plugin_key) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key); - FuzzyPropertyState (*is_plugin_enabled) (ConfigurationEngine* self, const gchar* id); - void (*set_plugin_enabled) (ConfigurationEngine* self, const gchar* id, gboolean enabled); -}; - - -static gpointer config_facade_parent_class = NULL; -static ConfigFacade* config_facade_instance; -static ConfigFacade* config_facade_instance = NULL; - -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType scale_constraint_get_type (void) G_GNUC_CONST; -GType export_format_mode_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType jpeg_quality_get_type (void) G_GNUC_CONST; -GType raw_developer_get_type (void) G_GNUC_CONST; -GType fuzzy_property_state_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -#define CONFIG_FACADE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CONFIG_TYPE_FACADE, ConfigFacadePrivate)) -#define CONFIG_FACADE_WIDTH_DEFAULT 1024 -#define CONFIG_FACADE_HEIGHT_DEFAULT 768 -#define CONFIG_FACADE_SIDEBAR_MIN_POSITION 180 -#define CONFIG_FACADE_SIDEBAR_MAX_POSITION 1000 -#define CONFIG_FACADE_DEFAULT_BG_COLOR "#444" -#define CONFIG_FACADE_NO_VIDEO_INTERPRETER_STATE -1 -#define CONFIG_FACADE_BLACK_THRESHOLD 0.61 -#define CONFIG_FACADE_DARK_SELECTED_COLOR "#0AD" -#define CONFIG_FACADE_LIGHT_SELECTED_COLOR "#2DF" -#define CONFIG_FACADE_DARK_UNSELECTED_COLOR "#000" -#define CONFIG_FACADE_LIGHT_UNSELECTED_COLOR "#FFF" -#define CONFIG_FACADE_DARK_BORDER_COLOR "#999" -#define CONFIG_FACADE_LIGHT_BORDER_COLOR "#AAA" -#define CONFIG_FACADE_DARK_UNFOCUSED_SELECTED_COLOR "#6fc4dd" -#define CONFIG_FACADE_LIGHT_UNFOCUSED_SELECTED_COLOR "#99efff" -static ConfigFacade* config_facade_new (void); -static ConfigFacade* config_facade_construct (GType object_type); -GSettingsConfigurationEngine* gsettings_configuration_engine_new (void); -GSettingsConfigurationEngine* gsettings_configuration_engine_construct (GType object_type); -GType gsettings_configuration_engine_get_type (void) G_GNUC_CONST; -GType configurable_property_get_type (void) G_GNUC_CONST; -GQuark configuration_error_quark (void); -GType configuration_engine_get_type (void) G_GNUC_CONST; -ConfigurationFacade* configuration_facade_construct (GType object_type, - ConfigurationEngine* engine); -static void config_facade_on_color_name_changed (ConfigFacade* self); -static void _config_facade_on_color_name_changed_configuration_facade_bg_color_name_changed (ConfigurationFacade* _sender, - gpointer self); -static void _config_facade_on_color_name_changed_configuration_facade_transparent_background_type_changed (ConfigurationFacade* _sender, - gpointer self); -static void _config_facade_on_color_name_changed_configuration_facade_transparent_background_color_changed (ConfigurationFacade* _sender, - gpointer self); -ConfigFacade* config_facade_get_instance (void); -static void config_facade_set_text_colors (ConfigFacade* self, - GdkRGBA* bg_color); -static void config_facade_get_colors (ConfigFacade* self); -gchar* configuration_facade_get_bg_color_name (ConfigurationFacade* self); -gboolean is_color_parsable (const gchar* spec); -void parse_color (const gchar* spec, - GdkRGBA* result); -void config_facade_get_bg_color (ConfigFacade* self, - GdkRGBA* result); -gboolean is_string_empty (const gchar* s); -void config_facade_get_selected_color (ConfigFacade* self, - gboolean in_focus, - GdkRGBA* result); -void config_facade_get_unselected_color (ConfigFacade* self, - GdkRGBA* result); -void config_facade_get_border_color (ConfigFacade* self, - GdkRGBA* result); -void config_facade_set_bg_color (ConfigFacade* self, - GdkRGBA* color); -void configuration_facade_set_bg_color_name (ConfigurationFacade* self, - const gchar* color_name); -void config_facade_commit_bg_color (ConfigFacade* self); -static void config_facade_finalize (GObject * obj); -void config_preconfigure (void); -void config_init (GError** error); -void config_terminate (void); - - -static void -_config_facade_on_color_name_changed_configuration_facade_bg_color_name_changed (ConfigurationFacade* _sender, - gpointer self) -{ -#line 49 "/home/jens/Source/shotwell/src/config/Config.vala" - config_facade_on_color_name_changed ((ConfigFacade*) self); -#line 499 "Config.c" -} - - -static void -_config_facade_on_color_name_changed_configuration_facade_transparent_background_type_changed (ConfigurationFacade* _sender, - gpointer self) -{ -#line 50 "/home/jens/Source/shotwell/src/config/Config.vala" - config_facade_on_color_name_changed ((ConfigFacade*) self); -#line 509 "Config.c" -} - - -static void -_config_facade_on_color_name_changed_configuration_facade_transparent_background_color_changed (ConfigurationFacade* _sender, - gpointer self) -{ -#line 51 "/home/jens/Source/shotwell/src/config/Config.vala" - config_facade_on_color_name_changed ((ConfigFacade*) self); -#line 519 "Config.c" -} - - -static ConfigFacade* -config_facade_construct (GType object_type) -{ - ConfigFacade * self = NULL; - GSettingsConfigurationEngine* _tmp0_; - GSettingsConfigurationEngine* _tmp1_; -#line 47 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp0_ = gsettings_configuration_engine_new (); -#line 47 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp1_ = _tmp0_; -#line 47 "/home/jens/Source/shotwell/src/config/Config.vala" - self = (ConfigFacade*) configuration_facade_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_ENGINE, ConfigurationEngine)); -#line 47 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_object_unref0 (_tmp1_); -#line 49 "/home/jens/Source/shotwell/src/config/Config.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "bg-color-name-changed", (GCallback) _config_facade_on_color_name_changed_configuration_facade_bg_color_name_changed, self, 0); -#line 50 "/home/jens/Source/shotwell/src/config/Config.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "transparent-background-type-changed", (GCallback) _config_facade_on_color_name_changed_configuration_facade_transparent_background_type_changed, self, 0); -#line 51 "/home/jens/Source/shotwell/src/config/Config.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "transparent-background-color-changed", (GCallback) _config_facade_on_color_name_changed_configuration_facade_transparent_background_color_changed, self, 0); -#line 46 "/home/jens/Source/shotwell/src/config/Config.vala" - return self; -#line 545 "Config.c" -} - - -static ConfigFacade* -config_facade_new (void) -{ -#line 46 "/home/jens/Source/shotwell/src/config/Config.vala" - return config_facade_construct (CONFIG_TYPE_FACADE); -#line 554 "Config.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 58 "/home/jens/Source/shotwell/src/config/Config.vala" - return self ? g_object_ref (self) : NULL; -#line 563 "Config.c" -} - - -ConfigFacade* -config_facade_get_instance (void) -{ - ConfigFacade* result = NULL; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp2_; - ConfigFacade* _tmp3_; -#line 55 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp0_ = config_facade_instance; -#line 55 "/home/jens/Source/shotwell/src/config/Config.vala" - if (_tmp0_ == NULL) { -#line 578 "Config.c" - ConfigFacade* _tmp1_; -#line 56 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp1_ = config_facade_new (); -#line 56 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_object_unref0 (config_facade_instance); -#line 56 "/home/jens/Source/shotwell/src/config/Config.vala" - config_facade_instance = _tmp1_; -#line 586 "Config.c" - } -#line 58 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp2_ = config_facade_instance; -#line 58 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 58 "/home/jens/Source/shotwell/src/config/Config.vala" - result = _tmp3_; -#line 58 "/home/jens/Source/shotwell/src/config/Config.vala" - return result; -#line 596 "Config.c" -} - - -static void -config_facade_on_color_name_changed (ConfigFacade* self) -{ -#line 61 "/home/jens/Source/shotwell/src/config/Config.vala" - g_return_if_fail (CONFIG_IS_FACADE (self)); -#line 62 "/home/jens/Source/shotwell/src/config/Config.vala" - g_signal_emit (self, config_facade_signals[CONFIG_FACADE_COLORS_CHANGED_SIGNAL], 0); -#line 607 "Config.c" -} - - -static void -config_facade_set_text_colors (ConfigFacade* self, - GdkRGBA* bg_color) -{ - GdkRGBA _tmp0_; - gdouble _tmp1_; -#line 65 "/home/jens/Source/shotwell/src/config/Config.vala" - g_return_if_fail (CONFIG_IS_FACADE (self)); -#line 65 "/home/jens/Source/shotwell/src/config/Config.vala" - g_return_if_fail (bg_color != NULL); -#line 69 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp0_ = *bg_color; -#line 69 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp1_ = _tmp0_.red; -#line 69 "/home/jens/Source/shotwell/src/config/Config.vala" - if (_tmp1_ > CONFIG_FACADE_BLACK_THRESHOLD) { -#line 627 "Config.c" - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 70 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp2_ = g_strdup (CONFIG_FACADE_DARK_SELECTED_COLOR); -#line 70 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_free0 (self->priv->selected_color); -#line 70 "/home/jens/Source/shotwell/src/config/Config.vala" - self->priv->selected_color = _tmp2_; -#line 71 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp3_ = g_strdup (CONFIG_FACADE_DARK_UNSELECTED_COLOR); -#line 71 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_free0 (self->priv->unselected_color); -#line 71 "/home/jens/Source/shotwell/src/config/Config.vala" - self->priv->unselected_color = _tmp3_; -#line 72 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp4_ = g_strdup (CONFIG_FACADE_DARK_UNFOCUSED_SELECTED_COLOR); -#line 72 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_free0 (self->priv->unfocused_selected_color); -#line 72 "/home/jens/Source/shotwell/src/config/Config.vala" - self->priv->unfocused_selected_color = _tmp4_; -#line 73 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp5_ = g_strdup (CONFIG_FACADE_DARK_BORDER_COLOR); -#line 73 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_free0 (self->priv->border_color); -#line 73 "/home/jens/Source/shotwell/src/config/Config.vala" - self->priv->border_color = _tmp5_; -#line 656 "Config.c" - } else { - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 75 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp6_ = g_strdup (CONFIG_FACADE_LIGHT_SELECTED_COLOR); -#line 75 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_free0 (self->priv->selected_color); -#line 75 "/home/jens/Source/shotwell/src/config/Config.vala" - self->priv->selected_color = _tmp6_; -#line 76 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp7_ = g_strdup (CONFIG_FACADE_LIGHT_UNSELECTED_COLOR); -#line 76 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_free0 (self->priv->unselected_color); -#line 76 "/home/jens/Source/shotwell/src/config/Config.vala" - self->priv->unselected_color = _tmp7_; -#line 77 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp8_ = g_strdup (CONFIG_FACADE_LIGHT_UNFOCUSED_SELECTED_COLOR); -#line 77 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_free0 (self->priv->unfocused_selected_color); -#line 77 "/home/jens/Source/shotwell/src/config/Config.vala" - self->priv->unfocused_selected_color = _tmp8_; -#line 78 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp9_ = g_strdup (CONFIG_FACADE_LIGHT_BORDER_COLOR); -#line 78 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_free0 (self->priv->border_color); -#line 78 "/home/jens/Source/shotwell/src/config/Config.vala" - self->priv->border_color = _tmp9_; -#line 686 "Config.c" - } -} - - -static void -config_facade_get_colors (ConfigFacade* self) -{ - gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp3_; - GdkRGBA _tmp4_ = {0}; -#line 82 "/home/jens/Source/shotwell/src/config/Config.vala" - g_return_if_fail (CONFIG_IS_FACADE (self)); -#line 83 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp0_ = CONFIGURATION_FACADE_CLASS (config_facade_parent_class)->get_bg_color_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 83 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_free0 (self->priv->bg_color); -#line 83 "/home/jens/Source/shotwell/src/config/Config.vala" - self->priv->bg_color = _tmp0_; -#line 85 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp1_ = self->priv->bg_color; -#line 85 "/home/jens/Source/shotwell/src/config/Config.vala" - if (!is_color_parsable (_tmp1_)) { -#line 710 "Config.c" - gchar* _tmp2_; -#line 86 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp2_ = g_strdup (CONFIG_FACADE_DEFAULT_BG_COLOR); -#line 86 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_free0 (self->priv->bg_color); -#line 86 "/home/jens/Source/shotwell/src/config/Config.vala" - self->priv->bg_color = _tmp2_; -#line 718 "Config.c" - } -#line 88 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp3_ = self->priv->bg_color; -#line 88 "/home/jens/Source/shotwell/src/config/Config.vala" - parse_color (_tmp3_, &_tmp4_); -#line 88 "/home/jens/Source/shotwell/src/config/Config.vala" - config_facade_set_text_colors (self, &_tmp4_); -#line 726 "Config.c" -} - - -void -config_facade_get_bg_color (ConfigFacade* self, - GdkRGBA* result) -{ - const gchar* _tmp0_; - const gchar* _tmp1_; - GdkRGBA _tmp2_ = {0}; -#line 91 "/home/jens/Source/shotwell/src/config/Config.vala" - g_return_if_fail (CONFIG_IS_FACADE (self)); -#line 92 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp0_ = self->priv->bg_color; -#line 92 "/home/jens/Source/shotwell/src/config/Config.vala" - if (is_string_empty (_tmp0_)) { -#line 93 "/home/jens/Source/shotwell/src/config/Config.vala" - config_facade_get_colors (self); -#line 745 "Config.c" - } -#line 95 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp1_ = self->priv->bg_color; -#line 95 "/home/jens/Source/shotwell/src/config/Config.vala" - parse_color (_tmp1_, &_tmp2_); -#line 95 "/home/jens/Source/shotwell/src/config/Config.vala" - *result = _tmp2_; -#line 95 "/home/jens/Source/shotwell/src/config/Config.vala" - return; -#line 755 "Config.c" -} - - -void -config_facade_get_selected_color (ConfigFacade* self, - gboolean in_focus, - GdkRGBA* result) -{ -#line 98 "/home/jens/Source/shotwell/src/config/Config.vala" - g_return_if_fail (CONFIG_IS_FACADE (self)); -#line 99 "/home/jens/Source/shotwell/src/config/Config.vala" - if (in_focus) { -#line 768 "Config.c" - const gchar* _tmp0_; - const gchar* _tmp1_; - GdkRGBA _tmp2_ = {0}; -#line 100 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp0_ = self->priv->selected_color; -#line 100 "/home/jens/Source/shotwell/src/config/Config.vala" - if (is_string_empty (_tmp0_)) { -#line 101 "/home/jens/Source/shotwell/src/config/Config.vala" - config_facade_get_colors (self); -#line 778 "Config.c" - } -#line 103 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp1_ = self->priv->selected_color; -#line 103 "/home/jens/Source/shotwell/src/config/Config.vala" - parse_color (_tmp1_, &_tmp2_); -#line 103 "/home/jens/Source/shotwell/src/config/Config.vala" - *result = _tmp2_; -#line 103 "/home/jens/Source/shotwell/src/config/Config.vala" - return; -#line 788 "Config.c" - } else { - const gchar* _tmp3_; - const gchar* _tmp4_; - GdkRGBA _tmp5_ = {0}; -#line 105 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp3_ = self->priv->unfocused_selected_color; -#line 105 "/home/jens/Source/shotwell/src/config/Config.vala" - if (is_string_empty (_tmp3_)) { -#line 106 "/home/jens/Source/shotwell/src/config/Config.vala" - config_facade_get_colors (self); -#line 799 "Config.c" - } -#line 108 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp4_ = self->priv->unfocused_selected_color; -#line 108 "/home/jens/Source/shotwell/src/config/Config.vala" - parse_color (_tmp4_, &_tmp5_); -#line 108 "/home/jens/Source/shotwell/src/config/Config.vala" - *result = _tmp5_; -#line 108 "/home/jens/Source/shotwell/src/config/Config.vala" - return; -#line 809 "Config.c" - } -} - - -void -config_facade_get_unselected_color (ConfigFacade* self, - GdkRGBA* result) -{ - const gchar* _tmp0_; - const gchar* _tmp1_; - GdkRGBA _tmp2_ = {0}; -#line 112 "/home/jens/Source/shotwell/src/config/Config.vala" - g_return_if_fail (CONFIG_IS_FACADE (self)); -#line 113 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp0_ = self->priv->unselected_color; -#line 113 "/home/jens/Source/shotwell/src/config/Config.vala" - if (is_string_empty (_tmp0_)) { -#line 114 "/home/jens/Source/shotwell/src/config/Config.vala" - config_facade_get_colors (self); -#line 829 "Config.c" - } -#line 116 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp1_ = self->priv->unselected_color; -#line 116 "/home/jens/Source/shotwell/src/config/Config.vala" - parse_color (_tmp1_, &_tmp2_); -#line 116 "/home/jens/Source/shotwell/src/config/Config.vala" - *result = _tmp2_; -#line 116 "/home/jens/Source/shotwell/src/config/Config.vala" - return; -#line 839 "Config.c" -} - - -void -config_facade_get_border_color (ConfigFacade* self, - GdkRGBA* result) -{ - const gchar* _tmp0_; - const gchar* _tmp1_; - GdkRGBA _tmp2_ = {0}; -#line 119 "/home/jens/Source/shotwell/src/config/Config.vala" - g_return_if_fail (CONFIG_IS_FACADE (self)); -#line 120 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp0_ = self->priv->border_color; -#line 120 "/home/jens/Source/shotwell/src/config/Config.vala" - if (is_string_empty (_tmp0_)) { -#line 121 "/home/jens/Source/shotwell/src/config/Config.vala" - config_facade_get_colors (self); -#line 858 "Config.c" - } -#line 123 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp1_ = self->priv->border_color; -#line 123 "/home/jens/Source/shotwell/src/config/Config.vala" - parse_color (_tmp1_, &_tmp2_); -#line 123 "/home/jens/Source/shotwell/src/config/Config.vala" - *result = _tmp2_; -#line 123 "/home/jens/Source/shotwell/src/config/Config.vala" - return; -#line 868 "Config.c" -} - - -void -config_facade_set_bg_color (ConfigFacade* self, - GdkRGBA* color) -{ - guint8 col_tmp = 0U; - GdkRGBA _tmp0_; - gdouble _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; - GdkRGBA _tmp4_; -#line 126 "/home/jens/Source/shotwell/src/config/Config.vala" - g_return_if_fail (CONFIG_IS_FACADE (self)); -#line 126 "/home/jens/Source/shotwell/src/config/Config.vala" - g_return_if_fail (color != NULL); -#line 127 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp0_ = *color; -#line 127 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp1_ = _tmp0_.red; -#line 127 "/home/jens/Source/shotwell/src/config/Config.vala" - col_tmp = (guint8) (_tmp1_ * 255.0); -#line 129 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp2_ = g_strdup_printf ("#%02X%02X%02X", (guint) col_tmp, (guint) col_tmp, (guint) col_tmp); -#line 129 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_free0 (self->priv->bg_color); -#line 129 "/home/jens/Source/shotwell/src/config/Config.vala" - self->priv->bg_color = _tmp2_; -#line 130 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp3_ = self->priv->bg_color; -#line 130 "/home/jens/Source/shotwell/src/config/Config.vala" - configuration_facade_set_bg_color_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp3_); -#line 132 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp4_ = *color; -#line 132 "/home/jens/Source/shotwell/src/config/Config.vala" - config_facade_set_text_colors (self, &_tmp4_); -#line 906 "Config.c" -} - - -void -config_facade_commit_bg_color (ConfigFacade* self) -{ - const gchar* _tmp0_; -#line 135 "/home/jens/Source/shotwell/src/config/Config.vala" - g_return_if_fail (CONFIG_IS_FACADE (self)); -#line 136 "/home/jens/Source/shotwell/src/config/Config.vala" - _tmp0_ = self->priv->bg_color; -#line 136 "/home/jens/Source/shotwell/src/config/Config.vala" - CONFIGURATION_FACADE_CLASS (config_facade_parent_class)->set_bg_color_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp0_); -#line 920 "Config.c" -} - - -static void -config_facade_class_init (ConfigFacadeClass * klass) -{ -#line 18 "/home/jens/Source/shotwell/src/config/Config.vala" - config_facade_parent_class = g_type_class_peek_parent (klass); -#line 18 "/home/jens/Source/shotwell/src/config/Config.vala" - g_type_class_add_private (klass, sizeof (ConfigFacadePrivate)); -#line 18 "/home/jens/Source/shotwell/src/config/Config.vala" - G_OBJECT_CLASS (klass)->finalize = config_facade_finalize; -#line 18 "/home/jens/Source/shotwell/src/config/Config.vala" - config_facade_signals[CONFIG_FACADE_COLORS_CHANGED_SIGNAL] = g_signal_new ("colors-changed", CONFIG_TYPE_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 935 "Config.c" -} - - -static void -config_facade_instance_init (ConfigFacade * self) -{ -#line 18 "/home/jens/Source/shotwell/src/config/Config.vala" - self->priv = CONFIG_FACADE_GET_PRIVATE (self); -#line 36 "/home/jens/Source/shotwell/src/config/Config.vala" - self->priv->bg_color = NULL; -#line 37 "/home/jens/Source/shotwell/src/config/Config.vala" - self->priv->selected_color = NULL; -#line 38 "/home/jens/Source/shotwell/src/config/Config.vala" - self->priv->unselected_color = NULL; -#line 39 "/home/jens/Source/shotwell/src/config/Config.vala" - self->priv->unfocused_selected_color = NULL; -#line 40 "/home/jens/Source/shotwell/src/config/Config.vala" - self->priv->border_color = NULL; -#line 954 "Config.c" -} - - -static void -config_facade_finalize (GObject * obj) -{ - ConfigFacade * self; -#line 18 "/home/jens/Source/shotwell/src/config/Config.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, CONFIG_TYPE_FACADE, ConfigFacade); -#line 36 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_free0 (self->priv->bg_color); -#line 37 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_free0 (self->priv->selected_color); -#line 38 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_free0 (self->priv->unselected_color); -#line 39 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_free0 (self->priv->unfocused_selected_color); -#line 40 "/home/jens/Source/shotwell/src/config/Config.vala" - _g_free0 (self->priv->border_color); -#line 18 "/home/jens/Source/shotwell/src/config/Config.vala" - G_OBJECT_CLASS (config_facade_parent_class)->finalize (obj); -#line 976 "Config.c" -} - - -GType -config_facade_get_type (void) -{ - static volatile gsize config_facade_type_id__volatile = 0; - if (g_once_init_enter (&config_facade_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ConfigFacadeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) config_facade_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ConfigFacade), 0, (GInstanceInitFunc) config_facade_instance_init, NULL }; - GType config_facade_type_id; - config_facade_type_id = g_type_register_static (TYPE_CONFIGURATION_FACADE, "ConfigFacade", &g_define_type_info, 0); - g_once_init_leave (&config_facade_type_id__volatile, config_facade_type_id); - } - return config_facade_type_id__volatile; -} - - -void -config_preconfigure (void) -{ -} - - -void -config_init (GError** error) -{ -} - - -void -config_terminate (void) -{ -} - - - diff --git a/src/config/Config.vala b/src/config/Config.vala index f80bfce..5675567 100644 --- a/src/config/Config.vala +++ b/src/config/Config.vala @@ -20,25 +20,9 @@ public class Facade : ConfigurationFacade { public const int HEIGHT_DEFAULT = 768; public const int SIDEBAR_MIN_POSITION = 180; public const int SIDEBAR_MAX_POSITION = 1000; - public const string DEFAULT_BG_COLOR = "#444"; public const int NO_VIDEO_INTERPRETER_STATE = -1; - private const double BLACK_THRESHOLD = 0.61; - private const string DARK_SELECTED_COLOR = "#0AD"; - private const string LIGHT_SELECTED_COLOR = "#2DF"; - private const string DARK_UNSELECTED_COLOR = "#000"; - private const string LIGHT_UNSELECTED_COLOR = "#FFF"; - private const string DARK_BORDER_COLOR = "#999"; - private const string LIGHT_BORDER_COLOR = "#AAA"; - private const string DARK_UNFOCUSED_SELECTED_COLOR = "#6fc4dd"; - private const string LIGHT_UNFOCUSED_SELECTED_COLOR = "#99efff"; - - private string bg_color = null; - private string selected_color = null; - private string unselected_color = null; - private string unfocused_selected_color = null; - private string border_color = null; - + private static Facade instance = null; public signal void colors_changed(); @@ -46,7 +30,6 @@ public class Facade : ConfigurationFacade { private Facade() { base(new GSettingsConfigurationEngine()); - bg_color_name_changed.connect(on_color_name_changed); transparent_background_type_changed.connect(on_color_name_changed); transparent_background_color_changed.connect(on_color_name_changed); } @@ -61,80 +44,6 @@ public class Facade : ConfigurationFacade { private void on_color_name_changed() { colors_changed(); } - - private void set_text_colors(Gdk.RGBA bg_color) { - // since bg color is greyscale, we only need to compare the red value to the threshold, - // which determines whether the background is dark enough to need light text and selection - // colors or vice versa - if (bg_color.red > BLACK_THRESHOLD) { - selected_color = DARK_SELECTED_COLOR; - unselected_color = DARK_UNSELECTED_COLOR; - unfocused_selected_color = DARK_UNFOCUSED_SELECTED_COLOR; - border_color = DARK_BORDER_COLOR; - } else { - selected_color = LIGHT_SELECTED_COLOR; - unselected_color = LIGHT_UNSELECTED_COLOR; - unfocused_selected_color = LIGHT_UNFOCUSED_SELECTED_COLOR; - border_color = LIGHT_BORDER_COLOR; - } - } - - private void get_colors() { - bg_color = base.get_bg_color_name(); - - if (!is_color_parsable(bg_color)) - bg_color = DEFAULT_BG_COLOR; - - set_text_colors(parse_color(bg_color)); - } - - public Gdk.RGBA get_bg_color() { - if (is_string_empty(bg_color)) - get_colors(); - - return parse_color(bg_color); - } - - public Gdk.RGBA get_selected_color(bool in_focus = true) { - if (in_focus) { - if (is_string_empty(selected_color)) - get_colors(); - - return parse_color(selected_color); - } else { - if (is_string_empty(unfocused_selected_color)) - get_colors(); - - return parse_color(unfocused_selected_color); - } - } - - public Gdk.RGBA get_unselected_color() { - if (is_string_empty(unselected_color)) - get_colors(); - - return parse_color(unselected_color); - } - - public Gdk.RGBA get_border_color() { - if (is_string_empty(border_color)) - get_colors(); - - return parse_color(border_color); - } - - public void set_bg_color(Gdk.RGBA color) { - uint8 col_tmp = (uint8) (color.red * 255.0); - - bg_color = "#%02X%02X%02X".printf(col_tmp, col_tmp, col_tmp); - set_bg_color_name(bg_color); - - set_text_colors(color); - } - - public void commit_bg_color() { - base.set_bg_color_name(bg_color); - } } // preconfigure may be deleted if not used. diff --git a/src/config/ConfigurationInterfaces.c b/src/config/ConfigurationInterfaces.c deleted file mode 100644 index 2750b10..0000000 --- a/src/config/ConfigurationInterfaces.c +++ /dev/null @@ -1,14452 +0,0 @@ -/* ConfigurationInterfaces.c generated by valac 0.40.4, the Vala compiler - * generated from ConfigurationInterfaces.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_FUZZY_PROPERTY_STATE (fuzzy_property_state_get_type ()) - -#define TYPE_CONFIGURABLE_PROPERTY (configurable_property_get_type ()) - -#define TYPE_CONFIGURATION_ENGINE (configuration_engine_get_type ()) -#define CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_ENGINE, ConfigurationEngine)) -#define IS_CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_ENGINE)) -#define CONFIGURATION_ENGINE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONFIGURATION_ENGINE, ConfigurationEngineIface)) - -typedef struct _ConfigurationEngine ConfigurationEngine; -typedef struct _ConfigurationEngineIface ConfigurationEngineIface; -enum { - CONFIGURATION_ENGINE_PROPERTY_CHANGED_SIGNAL, - CONFIGURATION_ENGINE_NUM_SIGNALS -}; -static guint configuration_engine_signals[CONFIGURATION_ENGINE_NUM_SIGNALS] = {0}; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; -typedef struct _ConfigurationFacadePrivate ConfigurationFacadePrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) - -#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ()) - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) -enum { - CONFIGURATION_FACADE_0_PROPERTY, - CONFIGURATION_FACADE_NUM_PROPERTIES -}; -static GParamSpec* configuration_facade_properties[CONFIGURATION_FACADE_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define RESOURCES_TYPE_UNIT_SYSTEM (resources_unit_system_get_type ()) -enum { - CONFIGURATION_FACADE_AUTO_IMPORT_FROM_LIBRARY_CHANGED_SIGNAL, - CONFIGURATION_FACADE_BG_COLOR_NAME_CHANGED_SIGNAL, - CONFIGURATION_FACADE_TRANSPARENT_BACKGROUND_TYPE_CHANGED_SIGNAL, - CONFIGURATION_FACADE_TRANSPARENT_BACKGROUND_COLOR_CHANGED_SIGNAL, - CONFIGURATION_FACADE_COMMIT_METADATA_TO_MASTERS_CHANGED_SIGNAL, - CONFIGURATION_FACADE_EVENTS_SORT_ASCENDING_CHANGED_SIGNAL, - CONFIGURATION_FACADE_EXTERNAL_APP_CHANGED_SIGNAL, - CONFIGURATION_FACADE_IMPORT_DIRECTORY_CHANGED_SIGNAL, - CONFIGURATION_FACADE_NUM_SIGNALS -}; -static guint configuration_facade_signals[CONFIGURATION_FACADE_NUM_SIGNALS] = {0}; - -typedef enum { - CONFIGURATION_ERROR_PROPERTY_HAS_NO_VALUE, - CONFIGURATION_ERROR_ENGINE_ERROR -} ConfigurationError; -#define CONFIGURATION_ERROR configuration_error_quark () -typedef enum { - FUZZY_PROPERTY_STATE_ENABLED, - FUZZY_PROPERTY_STATE_DISABLED, - FUZZY_PROPERTY_STATE_UNKNOWN -} FuzzyPropertyState; - -typedef enum { - CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY = 0, - CONFIGURABLE_PROPERTY_BG_COLOR_NAME, - CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE, - CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR, - CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS, - CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE, - CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE, - CONFIGURABLE_PROPERTY_SCREENSAVER_FILE, - CONFIGURABLE_PROPERTY_SCREENSAVER_MODE, - CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN, - CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM, - CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT, - CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE, - CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH, - CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES, - CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS, - CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES, - CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR, - CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR, - CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR, - CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS, - CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS, - CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES, - CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS, - CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING, - CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY, - CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING, - CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT, - CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE, - CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA, - CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT, - CONFIGURABLE_PROPERTY_EXPORT_QUALITY, - CONFIGURABLE_PROPERTY_EXPORT_SCALE, - CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP, - CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP, - CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED, - CONFIGURABLE_PROPERTY_IMPORT_DIR, - CONFIGURABLE_PROPERTY_KEEP_RELATIVITY, - CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT, - CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE, - CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH, - CONFIGURABLE_PROPERTY_LAST_USED_SERVICE, - CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE, - CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING, - CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY, - CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT, - CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE, - CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH, - CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS, - CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE, - CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE, - CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT, - CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT, - CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI, - CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS, - CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH, - CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE, - CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO, - CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES, - CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION, - CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT, - CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT, - CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG, - CONFIGURABLE_PROPERTY_SIDEBAR_POSITION, - CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY, - CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY, - CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID, - CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE, - CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME, - CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES, - CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE, - CONFIGURABLE_PROPERTY_NUM_PROPERTIES -} ConfigurableProperty; - -struct _ConfigurationEngineIface { - GTypeInterface parent_iface; - gchar* (*get_name) (ConfigurationEngine* self); - gint (*get_int_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error); - void (*set_int_property) (ConfigurationEngine* self, ConfigurableProperty p, gint val, GError** error); - gint (*get_enum_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error); - void (*set_enum_property) (ConfigurationEngine* self, ConfigurableProperty p, gint val, GError** error); - gchar* (*get_string_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error); - void (*set_string_property) (ConfigurationEngine* self, ConfigurableProperty p, const gchar* val, GError** error); - gboolean (*get_bool_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error); - void (*set_bool_property) (ConfigurationEngine* self, ConfigurableProperty p, gboolean val, GError** error); - gdouble (*get_double_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error); - void (*set_double_property) (ConfigurationEngine* self, ConfigurableProperty p, gdouble val, GError** error); - gboolean (*get_plugin_bool) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gboolean def); - void (*set_plugin_bool) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gboolean val); - gdouble (*get_plugin_double) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gdouble def); - void (*set_plugin_double) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gdouble val); - gint (*get_plugin_int) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gint def); - void (*set_plugin_int) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gint val); - gchar* (*get_plugin_string) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* def); - void (*set_plugin_string) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* val); - void (*unset_plugin_key) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key); - FuzzyPropertyState (*is_plugin_enabled) (ConfigurationEngine* self, const gchar* id); - void (*set_plugin_enabled) (ConfigurationEngine* self, const gchar* id, gboolean enabled); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -typedef enum { - EXPORT_FORMAT_MODE_UNMODIFIED, - EXPORT_FORMAT_MODE_CURRENT, - EXPORT_FORMAT_MODE_SPECIFIED, - EXPORT_FORMAT_MODE_LAST -} ExportFormatMode; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _ConfigurationFacade { - GObject parent_instance; - ConfigurationFacadePrivate * priv; -}; - -struct _ConfigurationFacadeClass { - GObjectClass parent_class; - gboolean (*get_auto_import_from_library) (ConfigurationFacade* self); - void (*set_auto_import_from_library) (ConfigurationFacade* self, gboolean auto_import); - gchar* (*get_bg_color_name) (ConfigurationFacade* self); - void (*set_bg_color_name) (ConfigurationFacade* self, const gchar* color_name); - gchar* (*get_transparent_background_type) (ConfigurationFacade* self); - void (*set_transparent_background_type) (ConfigurationFacade* self, const gchar* type); - gchar* (*get_transparent_background_color) (ConfigurationFacade* self); - void (*set_transparent_background_color) (ConfigurationFacade* self, const gchar* color_name); - gboolean (*get_commit_metadata_to_masters) (ConfigurationFacade* self); - void (*set_commit_metadata_to_masters) (ConfigurationFacade* self, gboolean commit_metadata); - gchar* (*get_desktop_background) (ConfigurationFacade* self); - void (*set_desktop_background) (ConfigurationFacade* self, const gchar* filename); - gchar* (*get_screensaver) (ConfigurationFacade* self); - void (*set_screensaver) (ConfigurationFacade* self, const gchar* filename); - gchar* (*get_directory_pattern) (ConfigurationFacade* self); - void (*set_directory_pattern) (ConfigurationFacade* self, const gchar* s); - gchar* (*get_directory_pattern_custom) (ConfigurationFacade* self); - void (*set_directory_pattern_custom) (ConfigurationFacade* self, const gchar* s); - void (*get_direct_window_state) (ConfigurationFacade* self, gboolean* maximize, Dimensions* dimensions); - void (*set_direct_window_state) (ConfigurationFacade* self, gboolean maximize, Dimensions* dimensions); - gboolean (*get_display_basic_properties) (ConfigurationFacade* self); - void (*set_display_basic_properties) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_extended_properties) (ConfigurationFacade* self); - void (*set_display_extended_properties) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_sidebar) (ConfigurationFacade* self); - void (*set_display_sidebar) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_toolbar) (ConfigurationFacade* self); - void (*set_display_toolbar) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_search_bar) (ConfigurationFacade* self); - void (*set_display_search_bar) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_photo_ratings) (ConfigurationFacade* self); - void (*set_display_photo_ratings) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_photo_tags) (ConfigurationFacade* self); - void (*set_display_photo_tags) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_photo_titles) (ConfigurationFacade* self); - void (*set_display_photo_titles) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_photo_comments) (ConfigurationFacade* self); - void (*set_display_photo_comments) (ConfigurationFacade* self, gboolean display); - gboolean (*get_display_event_comments) (ConfigurationFacade* self); - void (*set_display_event_comments) (ConfigurationFacade* self, gboolean display); - void (*get_event_photos_sort) (ConfigurationFacade* self, gboolean* sort_order, gint* sort_by); - void (*set_event_photos_sort) (ConfigurationFacade* self, gboolean sort_order, gint sort_by); - gboolean (*get_events_sort_ascending) (ConfigurationFacade* self); - void (*set_events_sort_ascending) (ConfigurationFacade* self, gboolean sort); - gchar* (*get_external_photo_app) (ConfigurationFacade* self); - void (*set_external_photo_app) (ConfigurationFacade* self, const gchar* external_photo_app); - gchar* (*get_external_raw_app) (ConfigurationFacade* self); - void (*set_external_raw_app) (ConfigurationFacade* self, const gchar* external_raw_app); - ScaleConstraint (*get_export_constraint) (ConfigurationFacade* self); - void (*set_export_constraint) (ConfigurationFacade* self, ScaleConstraint constraint); - ExportFormatMode (*get_export_export_format_mode) (ConfigurationFacade* self); - void (*set_export_export_format_mode) (ConfigurationFacade* self, ExportFormatMode export_format_mode); - gboolean (*get_export_export_metadata) (ConfigurationFacade* self); - void (*set_export_export_metadata) (ConfigurationFacade* self, gboolean export_metadata); - PhotoFileFormat (*get_export_photo_file_format) (ConfigurationFacade* self); - void (*set_export_photo_file_format) (ConfigurationFacade* self, PhotoFileFormat photo_file_format); - JpegQuality (*get_export_quality) (ConfigurationFacade* self); - void (*set_export_quality) (ConfigurationFacade* self, JpegQuality quality); - gint (*get_export_scale) (ConfigurationFacade* self); - void (*set_export_scale) (ConfigurationFacade* self, gint scale); - RawDeveloper (*get_default_raw_developer) (ConfigurationFacade* self); - void (*set_default_raw_developer) (ConfigurationFacade* self, RawDeveloper d); - gboolean (*get_hide_photos_already_imported) (ConfigurationFacade* self); - void (*set_hide_photos_already_imported) (ConfigurationFacade* self, gboolean hide_imported); - gchar* (*get_import_dir) (ConfigurationFacade* self); - void (*set_import_dir) (ConfigurationFacade* self, const gchar* import_dir); - gboolean (*get_keep_relativity) (ConfigurationFacade* self); - void (*set_keep_relativity) (ConfigurationFacade* self, gboolean keep_relativity); - gboolean (*get_pin_toolbar_state) (ConfigurationFacade* self); - void (*set_pin_toolbar_state) (ConfigurationFacade* self, gboolean state); - gint (*get_last_crop_height) (ConfigurationFacade* self); - void (*set_last_crop_height) (ConfigurationFacade* self, gint choice); - gint (*get_last_crop_menu_choice) (ConfigurationFacade* self); - void (*set_last_crop_menu_choice) (ConfigurationFacade* self, gint choice); - gint (*get_last_crop_width) (ConfigurationFacade* self); - void (*set_last_crop_width) (ConfigurationFacade* self, gint choice); - gchar* (*get_last_used_service) (ConfigurationFacade* self); - void (*set_last_used_service) (ConfigurationFacade* self, const gchar* service_name); - gchar* (*get_last_used_dataimports_service) (ConfigurationFacade* self); - void (*set_last_used_dataimports_service) (ConfigurationFacade* self, const gchar* service_name); - void (*get_library_photos_sort) (ConfigurationFacade* self, gboolean* sort_order, gint* sort_by); - void (*set_library_photos_sort) (ConfigurationFacade* self, gboolean sort_order, gint sort_by); - void (*get_library_window_state) (ConfigurationFacade* self, gboolean* maximize, Dimensions* dimensions); - void (*set_library_window_state) (ConfigurationFacade* self, gboolean maximize, Dimensions* dimensions); - gboolean (*get_modify_originals) (ConfigurationFacade* self); - void (*set_modify_originals) (ConfigurationFacade* self, gboolean modify_originals); - gint (*get_photo_thumbnail_scale) (ConfigurationFacade* self); - void (*set_photo_thumbnail_scale) (ConfigurationFacade* self, gint scale); - gdouble (*get_printing_content_height) (ConfigurationFacade* self); - void (*set_printing_content_height) (ConfigurationFacade* self, gdouble content_height); - gint (*get_printing_content_layout) (ConfigurationFacade* self); - void (*set_printing_content_layout) (ConfigurationFacade* self, gint layout_code); - gint (*get_printing_content_ppi) (ConfigurationFacade* self); - void (*set_printing_content_ppi) (ConfigurationFacade* self, gint content_ppi); - gint (*get_printing_content_units) (ConfigurationFacade* self); - void (*set_printing_content_units) (ConfigurationFacade* self, gint units_code); - gdouble (*get_printing_content_width) (ConfigurationFacade* self); - void (*set_printing_content_width) (ConfigurationFacade* self, gdouble content_width); - gint (*get_printing_images_per_page) (ConfigurationFacade* self); - void (*set_printing_images_per_page) (ConfigurationFacade* self, gint images_per_page_code); - gboolean (*get_printing_match_aspect_ratio) (ConfigurationFacade* self); - void (*set_printing_match_aspect_ratio) (ConfigurationFacade* self, gboolean match_aspect_ratio); - gboolean (*get_printing_print_titles) (ConfigurationFacade* self); - void (*set_printing_print_titles) (ConfigurationFacade* self, gboolean print_titles); - gint (*get_printing_size_selection) (ConfigurationFacade* self); - void (*set_printing_size_selection) (ConfigurationFacade* self, gint size_code); - gchar* (*get_printing_titles_font) (ConfigurationFacade* self); - void (*set_printing_titles_font) (ConfigurationFacade* self, const gchar* font_name); - gboolean (*get_show_welcome_dialog) (ConfigurationFacade* self); - void (*set_show_welcome_dialog) (ConfigurationFacade* self, gboolean show); - gint (*get_sidebar_position) (ConfigurationFacade* self); - void (*set_sidebar_position) (ConfigurationFacade* self, gint position); - gdouble (*get_slideshow_delay) (ConfigurationFacade* self); - void (*set_slideshow_delay) (ConfigurationFacade* self, gdouble delay); - gdouble (*get_slideshow_transition_delay) (ConfigurationFacade* self); - void (*set_slideshow_transition_delay) (ConfigurationFacade* self, gdouble delay); - gchar* (*get_slideshow_transition_effect_id) (ConfigurationFacade* self); - void (*set_slideshow_transition_effect_id) (ConfigurationFacade* self, const gchar* id); - gboolean (*get_slideshow_show_title) (ConfigurationFacade* self); - void (*set_slideshow_show_title) (ConfigurationFacade* self, gboolean show_title); - gboolean (*get_use_24_hour_time) (ConfigurationFacade* self); - void (*set_use_24_hour_time) (ConfigurationFacade* self, gboolean use_24_hour_time); - gboolean (*get_use_lowercase_filenames) (ConfigurationFacade* self); - void (*set_use_lowercase_filenames) (ConfigurationFacade* self, gboolean b); - gint (*get_video_interpreter_state_cookie) (ConfigurationFacade* self); - void (*set_video_interpreter_state_cookie) (ConfigurationFacade* self, gint state_cookie); - gboolean (*get_plugin_bool) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gboolean def); - void (*set_plugin_bool) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gboolean val); - gdouble (*get_plugin_double) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gdouble def); - void (*set_plugin_double) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gdouble val); - gint (*get_plugin_int) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gint def); - void (*set_plugin_int) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, gint val); - gchar* (*get_plugin_string) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* def); - void (*set_plugin_string) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* val); - void (*unset_plugin_key) (ConfigurationFacade* self, const gchar* domain, const gchar* id, const gchar* key); - FuzzyPropertyState (*is_plugin_enabled) (ConfigurationFacade* self, const gchar* id); - void (*set_plugin_enabled) (ConfigurationFacade* self, const gchar* id, gboolean enabled); -}; - -struct _ConfigurationFacadePrivate { - ConfigurationEngine* engine; -}; - -typedef enum { - RESOURCES_UNIT_SYSTEM_IMPERIAL, - RESOURCES_UNIT_SYSTEM_METRIC, - RESOURCES_UNIT_SYSTEM_UNKNOWN -} ResourcesUnitSystem; - - -static gpointer configuration_facade_parent_class = NULL; - -GQuark configuration_error_quark (void); -GType fuzzy_property_state_get_type (void) G_GNUC_CONST; -GType configurable_property_get_type (void) G_GNUC_CONST; -gchar* configurable_property_to_string (ConfigurableProperty self); -GType configuration_engine_get_type (void) G_GNUC_CONST; -gchar* configuration_engine_get_name (ConfigurationEngine* self); -gint configuration_engine_get_int_property (ConfigurationEngine* self, - ConfigurableProperty p, - GError** error); -void configuration_engine_set_int_property (ConfigurationEngine* self, - ConfigurableProperty p, - gint val, - GError** error); -gint configuration_engine_get_enum_property (ConfigurationEngine* self, - ConfigurableProperty p, - GError** error); -void configuration_engine_set_enum_property (ConfigurationEngine* self, - ConfigurableProperty p, - gint val, - GError** error); -gchar* configuration_engine_get_string_property (ConfigurationEngine* self, - ConfigurableProperty p, - GError** error); -void configuration_engine_set_string_property (ConfigurationEngine* self, - ConfigurableProperty p, - const gchar* val, - GError** error); -gboolean configuration_engine_get_bool_property (ConfigurationEngine* self, - ConfigurableProperty p, - GError** error); -void configuration_engine_set_bool_property (ConfigurationEngine* self, - ConfigurableProperty p, - gboolean val, - GError** error); -gdouble configuration_engine_get_double_property (ConfigurationEngine* self, - ConfigurableProperty p, - GError** error); -void configuration_engine_set_double_property (ConfigurationEngine* self, - ConfigurableProperty p, - gdouble val, - GError** error); -gboolean configuration_engine_get_plugin_bool (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean def); -void configuration_engine_set_plugin_bool (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean val); -gdouble configuration_engine_get_plugin_double (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble def); -void configuration_engine_set_plugin_double (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble val); -gint configuration_engine_get_plugin_int (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gint def); -void configuration_engine_set_plugin_int (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gint val); -gchar* configuration_engine_get_plugin_string (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* def); -void configuration_engine_set_plugin_string (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* val); -void configuration_engine_unset_plugin_key (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key); -FuzzyPropertyState configuration_engine_is_plugin_enabled (ConfigurationEngine* self, - const gchar* id); -void configuration_engine_set_plugin_enabled (ConfigurationEngine* self, - const gchar* id, - gboolean enabled); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType scale_constraint_get_type (void) G_GNUC_CONST; -GType export_format_mode_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType jpeg_quality_get_type (void) G_GNUC_CONST; -GType raw_developer_get_type (void) G_GNUC_CONST; -#define CONFIGURATION_FACADE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CONFIGURATION_FACADE, ConfigurationFacadePrivate)) -ConfigurationFacade* configuration_facade_construct (GType object_type, - ConfigurationEngine* engine); -static void configuration_facade_on_property_changed (ConfigurationFacade* self, - ConfigurableProperty p); -static void _configuration_facade_on_property_changed_configuration_engine_property_changed (ConfigurationEngine* _sender, - ConfigurableProperty p, - gpointer self); -ConfigurationEngine* configuration_facade_get_engine (ConfigurationFacade* self); -void configuration_facade_on_configuration_error (ConfigurationFacade* self, - GError* err); -gboolean configuration_facade_get_auto_import_from_library (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_auto_import_from_library (ConfigurationFacade* self); -void configuration_facade_set_auto_import_from_library (ConfigurationFacade* self, - gboolean auto_import); -static void configuration_facade_real_set_auto_import_from_library (ConfigurationFacade* self, - gboolean auto_import); -gchar* configuration_facade_get_bg_color_name (ConfigurationFacade* self); -static gchar* configuration_facade_real_get_bg_color_name (ConfigurationFacade* self); -void configuration_facade_set_bg_color_name (ConfigurationFacade* self, - const gchar* color_name); -static void configuration_facade_real_set_bg_color_name (ConfigurationFacade* self, - const gchar* color_name); -gchar* configuration_facade_get_transparent_background_type (ConfigurationFacade* self); -static gchar* configuration_facade_real_get_transparent_background_type (ConfigurationFacade* self); -void configuration_facade_set_transparent_background_type (ConfigurationFacade* self, - const gchar* type); -static void configuration_facade_real_set_transparent_background_type (ConfigurationFacade* self, - const gchar* type); -gchar* configuration_facade_get_transparent_background_color (ConfigurationFacade* self); -static gchar* configuration_facade_real_get_transparent_background_color (ConfigurationFacade* self); -void configuration_facade_set_transparent_background_color (ConfigurationFacade* self, - const gchar* color_name); -static void configuration_facade_real_set_transparent_background_color (ConfigurationFacade* self, - const gchar* color_name); -gboolean configuration_facade_get_commit_metadata_to_masters (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_commit_metadata_to_masters (ConfigurationFacade* self); -void configuration_facade_set_commit_metadata_to_masters (ConfigurationFacade* self, - gboolean commit_metadata); -static void configuration_facade_real_set_commit_metadata_to_masters (ConfigurationFacade* self, - gboolean commit_metadata); -gchar* configuration_facade_get_desktop_background (ConfigurationFacade* self); -static gchar* configuration_facade_real_get_desktop_background (ConfigurationFacade* self); -void configuration_facade_set_desktop_background (ConfigurationFacade* self, - const gchar* filename); -static void configuration_facade_real_set_desktop_background (ConfigurationFacade* self, - const gchar* filename); -gchar* configuration_facade_get_screensaver (ConfigurationFacade* self); -static gchar* configuration_facade_real_get_screensaver (ConfigurationFacade* self); -void configuration_facade_set_screensaver (ConfigurationFacade* self, - const gchar* filename); -static void configuration_facade_real_set_screensaver (ConfigurationFacade* self, - const gchar* filename); -gchar* configuration_facade_get_directory_pattern (ConfigurationFacade* self); -static gchar* configuration_facade_real_get_directory_pattern (ConfigurationFacade* self); -void configuration_facade_set_directory_pattern (ConfigurationFacade* self, - const gchar* s); -static void configuration_facade_real_set_directory_pattern (ConfigurationFacade* self, - const gchar* s); -gchar* configuration_facade_get_directory_pattern_custom (ConfigurationFacade* self); -static gchar* configuration_facade_real_get_directory_pattern_custom (ConfigurationFacade* self); -void configuration_facade_set_directory_pattern_custom (ConfigurationFacade* self, - const gchar* s); -static void configuration_facade_real_set_directory_pattern_custom (ConfigurationFacade* self, - const gchar* s); -void configuration_facade_get_direct_window_state (ConfigurationFacade* self, - gboolean* maximize, - Dimensions* dimensions); -static void configuration_facade_real_get_direct_window_state (ConfigurationFacade* self, - gboolean* maximize, - Dimensions* dimensions); -void dimensions_init (Dimensions *self, - gint width, - gint height); -void configuration_facade_set_direct_window_state (ConfigurationFacade* self, - gboolean maximize, - Dimensions* dimensions); -static void configuration_facade_real_set_direct_window_state (ConfigurationFacade* self, - gboolean maximize, - Dimensions* dimensions); -gboolean configuration_facade_get_display_basic_properties (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_display_basic_properties (ConfigurationFacade* self); -void configuration_facade_set_display_basic_properties (ConfigurationFacade* self, - gboolean display); -static void configuration_facade_real_set_display_basic_properties (ConfigurationFacade* self, - gboolean display); -gboolean configuration_facade_get_display_extended_properties (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_display_extended_properties (ConfigurationFacade* self); -void configuration_facade_set_display_extended_properties (ConfigurationFacade* self, - gboolean display); -static void configuration_facade_real_set_display_extended_properties (ConfigurationFacade* self, - gboolean display); -gboolean configuration_facade_get_display_sidebar (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_display_sidebar (ConfigurationFacade* self); -void configuration_facade_set_display_sidebar (ConfigurationFacade* self, - gboolean display); -static void configuration_facade_real_set_display_sidebar (ConfigurationFacade* self, - gboolean display); -gboolean configuration_facade_get_display_toolbar (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_display_toolbar (ConfigurationFacade* self); -void configuration_facade_set_display_toolbar (ConfigurationFacade* self, - gboolean display); -static void configuration_facade_real_set_display_toolbar (ConfigurationFacade* self, - gboolean display); -gboolean configuration_facade_get_display_search_bar (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_display_search_bar (ConfigurationFacade* self); -void configuration_facade_set_display_search_bar (ConfigurationFacade* self, - gboolean display); -static void configuration_facade_real_set_display_search_bar (ConfigurationFacade* self, - gboolean display); -gboolean configuration_facade_get_display_photo_ratings (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_display_photo_ratings (ConfigurationFacade* self); -void configuration_facade_set_display_photo_ratings (ConfigurationFacade* self, - gboolean display); -static void configuration_facade_real_set_display_photo_ratings (ConfigurationFacade* self, - gboolean display); -gboolean configuration_facade_get_display_photo_tags (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_display_photo_tags (ConfigurationFacade* self); -void configuration_facade_set_display_photo_tags (ConfigurationFacade* self, - gboolean display); -static void configuration_facade_real_set_display_photo_tags (ConfigurationFacade* self, - gboolean display); -gboolean configuration_facade_get_display_photo_titles (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_display_photo_titles (ConfigurationFacade* self); -void configuration_facade_set_display_photo_titles (ConfigurationFacade* self, - gboolean display); -static void configuration_facade_real_set_display_photo_titles (ConfigurationFacade* self, - gboolean display); -gboolean configuration_facade_get_display_photo_comments (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_display_photo_comments (ConfigurationFacade* self); -void configuration_facade_set_display_photo_comments (ConfigurationFacade* self, - gboolean display); -static void configuration_facade_real_set_display_photo_comments (ConfigurationFacade* self, - gboolean display); -gboolean configuration_facade_get_display_event_comments (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_display_event_comments (ConfigurationFacade* self); -void configuration_facade_set_display_event_comments (ConfigurationFacade* self, - gboolean display); -static void configuration_facade_real_set_display_event_comments (ConfigurationFacade* self, - gboolean display); -void configuration_facade_get_event_photos_sort (ConfigurationFacade* self, - gboolean* sort_order, - gint* sort_by); -static void configuration_facade_real_get_event_photos_sort (ConfigurationFacade* self, - gboolean* sort_order, - gint* sort_by); -void configuration_facade_set_event_photos_sort (ConfigurationFacade* self, - gboolean sort_order, - gint sort_by); -static void configuration_facade_real_set_event_photos_sort (ConfigurationFacade* self, - gboolean sort_order, - gint sort_by); -gboolean configuration_facade_get_events_sort_ascending (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_events_sort_ascending (ConfigurationFacade* self); -void configuration_facade_set_events_sort_ascending (ConfigurationFacade* self, - gboolean sort); -static void configuration_facade_real_set_events_sort_ascending (ConfigurationFacade* self, - gboolean sort); -gchar* configuration_facade_get_external_photo_app (ConfigurationFacade* self); -static gchar* configuration_facade_real_get_external_photo_app (ConfigurationFacade* self); -void configuration_facade_set_external_photo_app (ConfigurationFacade* self, - const gchar* external_photo_app); -static void configuration_facade_real_set_external_photo_app (ConfigurationFacade* self, - const gchar* external_photo_app); -gchar* configuration_facade_get_external_raw_app (ConfigurationFacade* self); -static gchar* configuration_facade_real_get_external_raw_app (ConfigurationFacade* self); -void configuration_facade_set_external_raw_app (ConfigurationFacade* self, - const gchar* external_raw_app); -static void configuration_facade_real_set_external_raw_app (ConfigurationFacade* self, - const gchar* external_raw_app); -ScaleConstraint configuration_facade_get_export_constraint (ConfigurationFacade* self); -static ScaleConstraint configuration_facade_real_get_export_constraint (ConfigurationFacade* self); -void configuration_facade_set_export_constraint (ConfigurationFacade* self, - ScaleConstraint constraint); -static void configuration_facade_real_set_export_constraint (ConfigurationFacade* self, - ScaleConstraint constraint); -ExportFormatMode configuration_facade_get_export_export_format_mode (ConfigurationFacade* self); -static ExportFormatMode configuration_facade_real_get_export_export_format_mode (ConfigurationFacade* self); -void configuration_facade_set_export_export_format_mode (ConfigurationFacade* self, - ExportFormatMode export_format_mode); -static void configuration_facade_real_set_export_export_format_mode (ConfigurationFacade* self, - ExportFormatMode export_format_mode); -gboolean configuration_facade_get_export_export_metadata (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_export_export_metadata (ConfigurationFacade* self); -void configuration_facade_set_export_export_metadata (ConfigurationFacade* self, - gboolean export_metadata); -static void configuration_facade_real_set_export_export_metadata (ConfigurationFacade* self, - gboolean export_metadata); -PhotoFileFormat configuration_facade_get_export_photo_file_format (ConfigurationFacade* self); -static PhotoFileFormat configuration_facade_real_get_export_photo_file_format (ConfigurationFacade* self); -PhotoFileFormat photo_file_format_unserialize (gint value); -void configuration_facade_set_export_photo_file_format (ConfigurationFacade* self, - PhotoFileFormat photo_file_format); -static void configuration_facade_real_set_export_photo_file_format (ConfigurationFacade* self, - PhotoFileFormat photo_file_format); -gint photo_file_format_serialize (PhotoFileFormat self); -JpegQuality configuration_facade_get_export_quality (ConfigurationFacade* self); -static JpegQuality configuration_facade_real_get_export_quality (ConfigurationFacade* self); -void configuration_facade_set_export_quality (ConfigurationFacade* self, - JpegQuality quality); -static void configuration_facade_real_set_export_quality (ConfigurationFacade* self, - JpegQuality quality); -gint configuration_facade_get_export_scale (ConfigurationFacade* self); -static gint configuration_facade_real_get_export_scale (ConfigurationFacade* self); -void configuration_facade_set_export_scale (ConfigurationFacade* self, - gint scale); -static void configuration_facade_real_set_export_scale (ConfigurationFacade* self, - gint scale); -RawDeveloper configuration_facade_get_default_raw_developer (ConfigurationFacade* self); -static RawDeveloper configuration_facade_real_get_default_raw_developer (ConfigurationFacade* self); -RawDeveloper raw_developer_from_string (const gchar* value); -void configuration_facade_set_default_raw_developer (ConfigurationFacade* self, - RawDeveloper d); -static void configuration_facade_real_set_default_raw_developer (ConfigurationFacade* self, - RawDeveloper d); -gchar* raw_developer_to_string (RawDeveloper self); -gboolean configuration_facade_get_hide_photos_already_imported (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_hide_photos_already_imported (ConfigurationFacade* self); -void configuration_facade_set_hide_photos_already_imported (ConfigurationFacade* self, - gboolean hide_imported); -static void configuration_facade_real_set_hide_photos_already_imported (ConfigurationFacade* self, - gboolean hide_imported); -gchar* configuration_facade_get_import_dir (ConfigurationFacade* self); -static gchar* configuration_facade_real_get_import_dir (ConfigurationFacade* self); -void configuration_facade_set_import_dir (ConfigurationFacade* self, - const gchar* import_dir); -static void configuration_facade_real_set_import_dir (ConfigurationFacade* self, - const gchar* import_dir); -gboolean configuration_facade_get_keep_relativity (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_keep_relativity (ConfigurationFacade* self); -void configuration_facade_set_keep_relativity (ConfigurationFacade* self, - gboolean keep_relativity); -static void configuration_facade_real_set_keep_relativity (ConfigurationFacade* self, - gboolean keep_relativity); -gboolean configuration_facade_get_pin_toolbar_state (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_pin_toolbar_state (ConfigurationFacade* self); -void configuration_facade_set_pin_toolbar_state (ConfigurationFacade* self, - gboolean state); -static void configuration_facade_real_set_pin_toolbar_state (ConfigurationFacade* self, - gboolean state); -gint configuration_facade_get_last_crop_height (ConfigurationFacade* self); -static gint configuration_facade_real_get_last_crop_height (ConfigurationFacade* self); -void configuration_facade_set_last_crop_height (ConfigurationFacade* self, - gint choice); -static void configuration_facade_real_set_last_crop_height (ConfigurationFacade* self, - gint choice); -gint configuration_facade_get_last_crop_menu_choice (ConfigurationFacade* self); -static gint configuration_facade_real_get_last_crop_menu_choice (ConfigurationFacade* self); -void configuration_facade_set_last_crop_menu_choice (ConfigurationFacade* self, - gint choice); -static void configuration_facade_real_set_last_crop_menu_choice (ConfigurationFacade* self, - gint choice); -gint configuration_facade_get_last_crop_width (ConfigurationFacade* self); -static gint configuration_facade_real_get_last_crop_width (ConfigurationFacade* self); -void configuration_facade_set_last_crop_width (ConfigurationFacade* self, - gint choice); -static void configuration_facade_real_set_last_crop_width (ConfigurationFacade* self, - gint choice); -gchar* configuration_facade_get_last_used_service (ConfigurationFacade* self); -static gchar* configuration_facade_real_get_last_used_service (ConfigurationFacade* self); -void configuration_facade_set_last_used_service (ConfigurationFacade* self, - const gchar* service_name); -static void configuration_facade_real_set_last_used_service (ConfigurationFacade* self, - const gchar* service_name); -gchar* configuration_facade_get_last_used_dataimports_service (ConfigurationFacade* self); -static gchar* configuration_facade_real_get_last_used_dataimports_service (ConfigurationFacade* self); -void configuration_facade_set_last_used_dataimports_service (ConfigurationFacade* self, - const gchar* service_name); -static void configuration_facade_real_set_last_used_dataimports_service (ConfigurationFacade* self, - const gchar* service_name); -void configuration_facade_get_library_photos_sort (ConfigurationFacade* self, - gboolean* sort_order, - gint* sort_by); -static void configuration_facade_real_get_library_photos_sort (ConfigurationFacade* self, - gboolean* sort_order, - gint* sort_by); -void configuration_facade_set_library_photos_sort (ConfigurationFacade* self, - gboolean sort_order, - gint sort_by); -static void configuration_facade_real_set_library_photos_sort (ConfigurationFacade* self, - gboolean sort_order, - gint sort_by); -void configuration_facade_get_library_window_state (ConfigurationFacade* self, - gboolean* maximize, - Dimensions* dimensions); -static void configuration_facade_real_get_library_window_state (ConfigurationFacade* self, - gboolean* maximize, - Dimensions* dimensions); -void configuration_facade_set_library_window_state (ConfigurationFacade* self, - gboolean maximize, - Dimensions* dimensions); -static void configuration_facade_real_set_library_window_state (ConfigurationFacade* self, - gboolean maximize, - Dimensions* dimensions); -gboolean configuration_facade_get_modify_originals (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_modify_originals (ConfigurationFacade* self); -void configuration_facade_set_modify_originals (ConfigurationFacade* self, - gboolean modify_originals); -static void configuration_facade_real_set_modify_originals (ConfigurationFacade* self, - gboolean modify_originals); -gint configuration_facade_get_photo_thumbnail_scale (ConfigurationFacade* self); -static gint configuration_facade_real_get_photo_thumbnail_scale (ConfigurationFacade* self); -gint thumbnail_get_DEFAULT_SCALE (void); -void configuration_facade_set_photo_thumbnail_scale (ConfigurationFacade* self, - gint scale); -static void configuration_facade_real_set_photo_thumbnail_scale (ConfigurationFacade* self, - gint scale); -gdouble configuration_facade_get_printing_content_height (ConfigurationFacade* self); -static gdouble configuration_facade_real_get_printing_content_height (ConfigurationFacade* self); -void configuration_facade_set_printing_content_height (ConfigurationFacade* self, - gdouble content_height); -static void configuration_facade_real_set_printing_content_height (ConfigurationFacade* self, - gdouble content_height); -gint configuration_facade_get_printing_content_layout (ConfigurationFacade* self); -static gint configuration_facade_real_get_printing_content_layout (ConfigurationFacade* self); -void configuration_facade_set_printing_content_layout (ConfigurationFacade* self, - gint layout_code); -static void configuration_facade_real_set_printing_content_layout (ConfigurationFacade* self, - gint layout_code); -gint configuration_facade_get_printing_content_ppi (ConfigurationFacade* self); -static gint configuration_facade_real_get_printing_content_ppi (ConfigurationFacade* self); -void configuration_facade_set_printing_content_ppi (ConfigurationFacade* self, - gint content_ppi); -static void configuration_facade_real_set_printing_content_ppi (ConfigurationFacade* self, - gint content_ppi); -gint configuration_facade_get_printing_content_units (ConfigurationFacade* self); -static gint configuration_facade_real_get_printing_content_units (ConfigurationFacade* self); -void configuration_facade_set_printing_content_units (ConfigurationFacade* self, - gint units_code); -static void configuration_facade_real_set_printing_content_units (ConfigurationFacade* self, - gint units_code); -gdouble configuration_facade_get_printing_content_width (ConfigurationFacade* self); -static gdouble configuration_facade_real_get_printing_content_width (ConfigurationFacade* self); -void configuration_facade_set_printing_content_width (ConfigurationFacade* self, - gdouble content_width); -static void configuration_facade_real_set_printing_content_width (ConfigurationFacade* self, - gdouble content_width); -gint configuration_facade_get_printing_images_per_page (ConfigurationFacade* self); -static gint configuration_facade_real_get_printing_images_per_page (ConfigurationFacade* self); -void configuration_facade_set_printing_images_per_page (ConfigurationFacade* self, - gint images_per_page_code); -static void configuration_facade_real_set_printing_images_per_page (ConfigurationFacade* self, - gint images_per_page_code); -gboolean configuration_facade_get_printing_match_aspect_ratio (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_printing_match_aspect_ratio (ConfigurationFacade* self); -void configuration_facade_set_printing_match_aspect_ratio (ConfigurationFacade* self, - gboolean match_aspect_ratio); -static void configuration_facade_real_set_printing_match_aspect_ratio (ConfigurationFacade* self, - gboolean match_aspect_ratio); -gboolean configuration_facade_get_printing_print_titles (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_printing_print_titles (ConfigurationFacade* self); -void configuration_facade_set_printing_print_titles (ConfigurationFacade* self, - gboolean print_titles); -static void configuration_facade_real_set_printing_print_titles (ConfigurationFacade* self, - gboolean print_titles); -gint configuration_facade_get_printing_size_selection (ConfigurationFacade* self); -static gint configuration_facade_real_get_printing_size_selection (ConfigurationFacade* self); -GType resources_unit_system_get_type (void) G_GNUC_CONST; -ResourcesUnitSystem resources_get_default_measurement_unit (void); -void configuration_facade_set_printing_size_selection (ConfigurationFacade* self, - gint size_code); -static void configuration_facade_real_set_printing_size_selection (ConfigurationFacade* self, - gint size_code); -gchar* configuration_facade_get_printing_titles_font (ConfigurationFacade* self); -static gchar* configuration_facade_real_get_printing_titles_font (ConfigurationFacade* self); -void configuration_facade_set_printing_titles_font (ConfigurationFacade* self, - const gchar* font_name); -static void configuration_facade_real_set_printing_titles_font (ConfigurationFacade* self, - const gchar* font_name); -gboolean configuration_facade_get_show_welcome_dialog (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_show_welcome_dialog (ConfigurationFacade* self); -void configuration_facade_set_show_welcome_dialog (ConfigurationFacade* self, - gboolean show); -static void configuration_facade_real_set_show_welcome_dialog (ConfigurationFacade* self, - gboolean show); -gint configuration_facade_get_sidebar_position (ConfigurationFacade* self); -static gint configuration_facade_real_get_sidebar_position (ConfigurationFacade* self); -void configuration_facade_set_sidebar_position (ConfigurationFacade* self, - gint position); -static void configuration_facade_real_set_sidebar_position (ConfigurationFacade* self, - gint position); -gdouble configuration_facade_get_slideshow_delay (ConfigurationFacade* self); -static gdouble configuration_facade_real_get_slideshow_delay (ConfigurationFacade* self); -void configuration_facade_set_slideshow_delay (ConfigurationFacade* self, - gdouble delay); -static void configuration_facade_real_set_slideshow_delay (ConfigurationFacade* self, - gdouble delay); -gdouble configuration_facade_get_slideshow_transition_delay (ConfigurationFacade* self); -static gdouble configuration_facade_real_get_slideshow_transition_delay (ConfigurationFacade* self); -void configuration_facade_set_slideshow_transition_delay (ConfigurationFacade* self, - gdouble delay); -static void configuration_facade_real_set_slideshow_transition_delay (ConfigurationFacade* self, - gdouble delay); -gchar* configuration_facade_get_slideshow_transition_effect_id (ConfigurationFacade* self); -static gchar* configuration_facade_real_get_slideshow_transition_effect_id (ConfigurationFacade* self); -#define NULL_TRANSITION_DESCRIPTOR_EFFECT_ID "org.yorba.shotwell.transitions.null" -#define TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID NULL_TRANSITION_DESCRIPTOR_EFFECT_ID -void configuration_facade_set_slideshow_transition_effect_id (ConfigurationFacade* self, - const gchar* id); -static void configuration_facade_real_set_slideshow_transition_effect_id (ConfigurationFacade* self, - const gchar* id); -gboolean configuration_facade_get_slideshow_show_title (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_slideshow_show_title (ConfigurationFacade* self); -void configuration_facade_set_slideshow_show_title (ConfigurationFacade* self, - gboolean show_title); -static void configuration_facade_real_set_slideshow_show_title (ConfigurationFacade* self, - gboolean show_title); -gboolean configuration_facade_get_use_24_hour_time (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_use_24_hour_time (ConfigurationFacade* self); -gboolean is_string_empty (const gchar* s); -void configuration_facade_set_use_24_hour_time (ConfigurationFacade* self, - gboolean use_24_hour_time); -static void configuration_facade_real_set_use_24_hour_time (ConfigurationFacade* self, - gboolean use_24_hour_time); -gboolean configuration_facade_get_use_lowercase_filenames (ConfigurationFacade* self); -static gboolean configuration_facade_real_get_use_lowercase_filenames (ConfigurationFacade* self); -void configuration_facade_set_use_lowercase_filenames (ConfigurationFacade* self, - gboolean b); -static void configuration_facade_real_set_use_lowercase_filenames (ConfigurationFacade* self, - gboolean b); -gint configuration_facade_get_video_interpreter_state_cookie (ConfigurationFacade* self); -static gint configuration_facade_real_get_video_interpreter_state_cookie (ConfigurationFacade* self); -void configuration_facade_set_video_interpreter_state_cookie (ConfigurationFacade* self, - gint state_cookie); -static void configuration_facade_real_set_video_interpreter_state_cookie (ConfigurationFacade* self, - gint state_cookie); -gboolean configuration_facade_get_plugin_bool (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean def); -static gboolean configuration_facade_real_get_plugin_bool (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean def); -void configuration_facade_set_plugin_bool (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean val); -static void configuration_facade_real_set_plugin_bool (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean val); -gdouble configuration_facade_get_plugin_double (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble def); -static gdouble configuration_facade_real_get_plugin_double (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble def); -void configuration_facade_set_plugin_double (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble val); -static void configuration_facade_real_set_plugin_double (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble val); -gint configuration_facade_get_plugin_int (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gint def); -static gint configuration_facade_real_get_plugin_int (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gint def); -void configuration_facade_set_plugin_int (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gint val); -static void configuration_facade_real_set_plugin_int (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gint val); -gchar* configuration_facade_get_plugin_string (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* def); -static gchar* configuration_facade_real_get_plugin_string (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* def); -void configuration_facade_set_plugin_string (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* val); -static void configuration_facade_real_set_plugin_string (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* val); -void configuration_facade_unset_plugin_key (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key); -static void configuration_facade_real_unset_plugin_key (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key); -FuzzyPropertyState configuration_facade_is_plugin_enabled (ConfigurationFacade* self, - const gchar* id); -static FuzzyPropertyState configuration_facade_real_is_plugin_enabled (ConfigurationFacade* self, - const gchar* id); -void configuration_facade_set_plugin_enabled (ConfigurationFacade* self, - const gchar* id, - gboolean enabled); -static void configuration_facade_real_set_plugin_enabled (ConfigurationFacade* self, - const gchar* id, - gboolean enabled); -static void configuration_facade_finalize (GObject * obj); - - -GQuark -configuration_error_quark (void) -{ - return g_quark_from_static_string ("configuration_error-quark"); -} - - -GType -fuzzy_property_state_get_type (void) -{ - static volatile gsize fuzzy_property_state_type_id__volatile = 0; - if (g_once_init_enter (&fuzzy_property_state_type_id__volatile)) { - static const GEnumValue values[] = {{FUZZY_PROPERTY_STATE_ENABLED, "FUZZY_PROPERTY_STATE_ENABLED", "enabled"}, {FUZZY_PROPERTY_STATE_DISABLED, "FUZZY_PROPERTY_STATE_DISABLED", "disabled"}, {FUZZY_PROPERTY_STATE_UNKNOWN, "FUZZY_PROPERTY_STATE_UNKNOWN", "unknown"}, {0, NULL, NULL}}; - GType fuzzy_property_state_type_id; - fuzzy_property_state_type_id = g_enum_register_static ("FuzzyPropertyState", values); - g_once_init_leave (&fuzzy_property_state_type_id__volatile, fuzzy_property_state_type_id); - } - return fuzzy_property_state_type_id__volatile; -} - - -gchar* -configurable_property_to_string (ConfigurableProperty self) -{ - gchar* result = NULL; -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - switch (self) { -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY: -#line 1052 "ConfigurationInterfaces.c" - { - gchar* _tmp0_; -#line 101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = g_strdup ("AUTO_IMPORT_FROM_LIBRARY"); -#line 101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1061 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_BG_COLOR_NAME: -#line 1065 "ConfigurationInterfaces.c" - { - gchar* _tmp1_; -#line 104 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = g_strdup ("BG_COLOR_NAME"); -#line 104 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp1_; -#line 104 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1074 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE: -#line 1078 "ConfigurationInterfaces.c" - { - gchar* _tmp2_; -#line 107 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = g_strdup ("TRANSPARENT_BACKGROUND_TYPE"); -#line 107 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp2_; -#line 107 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1087 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR: -#line 1091 "ConfigurationInterfaces.c" - { - gchar* _tmp3_; -#line 110 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = g_strdup ("TRANSPARENT_BACKGROUND_COLOR"); -#line 110 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp3_; -#line 110 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1100 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS: -#line 1104 "ConfigurationInterfaces.c" - { - gchar* _tmp4_; -#line 113 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = g_strdup ("COMMIT_METADATA_TO_MASTERS"); -#line 113 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp4_; -#line 113 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1113 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE: -#line 1117 "ConfigurationInterfaces.c" - { - gchar* _tmp5_; -#line 116 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = g_strdup ("DESKTOP_BACKGROUND_FILE"); -#line 116 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp5_; -#line 116 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1126 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE: -#line 1130 "ConfigurationInterfaces.c" - { - gchar* _tmp6_; -#line 119 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = g_strdup ("DESKTOP_BACKGROUND_MODE"); -#line 119 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp6_; -#line 119 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1139 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_SCREENSAVER_FILE: -#line 1143 "ConfigurationInterfaces.c" - { - gchar* _tmp7_; -#line 122 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = g_strdup ("SCREENSAVER_FILE"); -#line 122 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp7_; -#line 122 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1152 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_SCREENSAVER_MODE: -#line 1156 "ConfigurationInterfaces.c" - { - gchar* _tmp8_; -#line 125 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp8_ = g_strdup ("SCREENSAVER_MODE"); -#line 125 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp8_; -#line 125 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1165 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN: -#line 1169 "ConfigurationInterfaces.c" - { - gchar* _tmp9_; -#line 128 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp9_ = g_strdup ("DIRECTORY_PATTERN"); -#line 128 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp9_; -#line 128 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1178 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM: -#line 1182 "ConfigurationInterfaces.c" - { - gchar* _tmp10_; -#line 131 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp10_ = g_strdup ("DIRECTORY_PATTERN_CUSTOM"); -#line 131 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp10_; -#line 131 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1191 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT: -#line 1195 "ConfigurationInterfaces.c" - { - gchar* _tmp11_; -#line 134 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp11_ = g_strdup ("DIRECT_WINDOW_HEIGHT"); -#line 134 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp11_; -#line 134 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1204 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE: -#line 1208 "ConfigurationInterfaces.c" - { - gchar* _tmp12_; -#line 137 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp12_ = g_strdup ("DIRECT_WINDOW_MAXIMIZE"); -#line 137 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp12_; -#line 137 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1217 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH: -#line 1221 "ConfigurationInterfaces.c" - { - gchar* _tmp13_; -#line 140 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp13_ = g_strdup ("DIRECT_WINDOW_WIDTH"); -#line 140 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp13_; -#line 140 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1230 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES: -#line 1234 "ConfigurationInterfaces.c" - { - gchar* _tmp14_; -#line 143 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp14_ = g_strdup ("DISPLAY_BASIC_PROPERTIES"); -#line 143 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp14_; -#line 143 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1243 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES: -#line 1247 "ConfigurationInterfaces.c" - { - gchar* _tmp15_; -#line 146 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp15_ = g_strdup ("DISPLAY_EXTENDED_PROPERTIES"); -#line 146 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp15_; -#line 146 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1256 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR: -#line 1260 "ConfigurationInterfaces.c" - { - gchar* _tmp16_; -#line 149 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp16_ = g_strdup ("DISPLAY_SIDEBAR"); -#line 149 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp16_; -#line 149 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1269 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR: -#line 1273 "ConfigurationInterfaces.c" - { - gchar* _tmp17_; -#line 152 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp17_ = g_strdup ("DISPLAY_TOOLBAR"); -#line 152 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp17_; -#line 152 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1282 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR: -#line 1286 "ConfigurationInterfaces.c" - { - gchar* _tmp18_; -#line 155 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp18_ = g_strdup ("DISPLAY_SEARCH_BAR"); -#line 155 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp18_; -#line 155 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1295 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS: -#line 1299 "ConfigurationInterfaces.c" - { - gchar* _tmp19_; -#line 158 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp19_ = g_strdup ("DISPLAY_PHOTO_RATINGS"); -#line 158 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp19_; -#line 158 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1308 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS: -#line 1312 "ConfigurationInterfaces.c" - { - gchar* _tmp20_; -#line 161 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp20_ = g_strdup ("DISPLAY_PHOTO_TAGS"); -#line 161 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp20_; -#line 161 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1321 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES: -#line 1325 "ConfigurationInterfaces.c" - { - gchar* _tmp21_; -#line 164 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp21_ = g_strdup ("DISPLAY_PHOTO_TITLES"); -#line 164 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp21_; -#line 164 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1334 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS: -#line 1338 "ConfigurationInterfaces.c" - { - gchar* _tmp22_; -#line 167 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp22_ = g_strdup ("DISPLAY_PHOTO_COMMENTS"); -#line 167 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp22_; -#line 167 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1347 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS: -#line 1351 "ConfigurationInterfaces.c" - { - gchar* _tmp23_; -#line 170 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp23_ = g_strdup ("DISPLAY_EVENT_COMMENTS"); -#line 170 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp23_; -#line 170 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1360 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING: -#line 1364 "ConfigurationInterfaces.c" - { - gchar* _tmp24_; -#line 173 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp24_ = g_strdup ("EVENT_PHOTOS_SORT_ASCENDING"); -#line 173 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp24_; -#line 173 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1373 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY: -#line 1377 "ConfigurationInterfaces.c" - { - gchar* _tmp25_; -#line 176 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp25_ = g_strdup ("EVENT_PHOTOS_SORT_BY"); -#line 176 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp25_; -#line 176 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1386 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING: -#line 1390 "ConfigurationInterfaces.c" - { - gchar* _tmp26_; -#line 179 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp26_ = g_strdup ("EVENTS_SORT_ASCENDING"); -#line 179 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp26_; -#line 179 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1399 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT: -#line 1403 "ConfigurationInterfaces.c" - { - gchar* _tmp27_; -#line 182 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp27_ = g_strdup ("EXPORT_CONSTRAINT"); -#line 182 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp27_; -#line 182 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1412 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE: -#line 1416 "ConfigurationInterfaces.c" - { - gchar* _tmp28_; -#line 185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp28_ = g_strdup ("EXPORT_EXPORT_FORMAT_MODE"); -#line 185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp28_; -#line 185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1425 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA: -#line 1429 "ConfigurationInterfaces.c" - { - gchar* _tmp29_; -#line 188 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp29_ = g_strdup ("EXPORT_EXPORT_METADATA"); -#line 188 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp29_; -#line 188 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1438 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT: -#line 1442 "ConfigurationInterfaces.c" - { - gchar* _tmp30_; -#line 191 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp30_ = g_strdup ("EXPORT_PHOTO_FILE_FORMAT"); -#line 191 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp30_; -#line 191 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1451 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_EXPORT_QUALITY: -#line 1455 "ConfigurationInterfaces.c" - { - gchar* _tmp31_; -#line 194 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp31_ = g_strdup ("EXPORT_QUALITY"); -#line 194 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp31_; -#line 194 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1464 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_EXPORT_SCALE: -#line 1468 "ConfigurationInterfaces.c" - { - gchar* _tmp32_; -#line 197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp32_ = g_strdup ("EXPORT_SCALE"); -#line 197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp32_; -#line 197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1477 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP: -#line 1481 "ConfigurationInterfaces.c" - { - gchar* _tmp33_; -#line 200 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp33_ = g_strdup ("EXTERNAL_PHOTO_APP"); -#line 200 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp33_; -#line 200 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1490 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP: -#line 1494 "ConfigurationInterfaces.c" - { - gchar* _tmp34_; -#line 203 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp34_ = g_strdup ("EXTERNAL_RAW_APP"); -#line 203 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp34_; -#line 203 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1503 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED: -#line 1507 "ConfigurationInterfaces.c" - { - gchar* _tmp35_; -#line 206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp35_ = g_strdup ("HIDE_PHOTOS_ALREADY_IMPORTED"); -#line 206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp35_; -#line 206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1516 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_IMPORT_DIR: -#line 1520 "ConfigurationInterfaces.c" - { - gchar* _tmp36_; -#line 209 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp36_ = g_strdup ("IMPORT_DIR"); -#line 209 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp36_; -#line 209 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1529 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_KEEP_RELATIVITY: -#line 1533 "ConfigurationInterfaces.c" - { - gchar* _tmp37_; -#line 212 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp37_ = g_strdup ("KEEP_RELATIVITY"); -#line 212 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp37_; -#line 212 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1542 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT: -#line 1546 "ConfigurationInterfaces.c" - { - gchar* _tmp38_; -#line 215 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp38_ = g_strdup ("LAST_CROP_HEIGHT"); -#line 215 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp38_; -#line 215 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1555 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE: -#line 1559 "ConfigurationInterfaces.c" - { - gchar* _tmp39_; -#line 218 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp39_ = g_strdup ("LAST_CROP_MENU_CHOICE"); -#line 218 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp39_; -#line 218 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1568 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH: -#line 1572 "ConfigurationInterfaces.c" - { - gchar* _tmp40_; -#line 221 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp40_ = g_strdup ("LAST_CROP_WIDTH"); -#line 221 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp40_; -#line 221 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1581 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_LAST_USED_SERVICE: -#line 1585 "ConfigurationInterfaces.c" - { - gchar* _tmp41_; -#line 224 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp41_ = g_strdup ("LAST_USED_SERVICE"); -#line 224 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp41_; -#line 224 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1594 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE: -#line 1598 "ConfigurationInterfaces.c" - { - gchar* _tmp42_; -#line 227 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp42_ = g_strdup ("LAST_USED_DATAIMPORTS_SERVICE"); -#line 227 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp42_; -#line 227 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1607 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING: -#line 1611 "ConfigurationInterfaces.c" - { - gchar* _tmp43_; -#line 230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp43_ = g_strdup ("LIBRARY_PHOTOS_SORT_ASCENDING"); -#line 230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp43_; -#line 230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1620 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY: -#line 1624 "ConfigurationInterfaces.c" - { - gchar* _tmp44_; -#line 233 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp44_ = g_strdup ("LIBRARY_PHOTOS_SORT_BY"); -#line 233 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp44_; -#line 233 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1633 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT: -#line 1637 "ConfigurationInterfaces.c" - { - gchar* _tmp45_; -#line 236 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp45_ = g_strdup ("LIBRARY_WINDOW_HEIGHT"); -#line 236 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp45_; -#line 236 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1646 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE: -#line 1650 "ConfigurationInterfaces.c" - { - gchar* _tmp46_; -#line 239 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp46_ = g_strdup ("LIBRARY_WINDOW_MAXIMIZE"); -#line 239 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp46_; -#line 239 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1659 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH: -#line 1663 "ConfigurationInterfaces.c" - { - gchar* _tmp47_; -#line 242 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp47_ = g_strdup ("LIBRARY_WINDOW_WIDTH"); -#line 242 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp47_; -#line 242 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1672 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS: -#line 1676 "ConfigurationInterfaces.c" - { - gchar* _tmp48_; -#line 245 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp48_ = g_strdup ("MODIFY_ORIGINALS"); -#line 245 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp48_; -#line 245 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1685 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE: -#line 1689 "ConfigurationInterfaces.c" - { - gchar* _tmp49_; -#line 248 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp49_ = g_strdup ("PHOTO_THUMBNAIL_SCALE"); -#line 248 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp49_; -#line 248 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1698 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE: -#line 1702 "ConfigurationInterfaces.c" - { - gchar* _tmp50_; -#line 251 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp50_ = g_strdup ("PIN_TOOLBAR_STATE"); -#line 251 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp50_; -#line 251 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1711 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT: -#line 1715 "ConfigurationInterfaces.c" - { - gchar* _tmp51_; -#line 254 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp51_ = g_strdup ("PRINTING_CONTENT_HEIGHT"); -#line 254 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp51_; -#line 254 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1724 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT: -#line 1728 "ConfigurationInterfaces.c" - { - gchar* _tmp52_; -#line 257 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp52_ = g_strdup ("PRINTING_CONTENT_LAYOUT"); -#line 257 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp52_; -#line 257 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1737 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI: -#line 1741 "ConfigurationInterfaces.c" - { - gchar* _tmp53_; -#line 260 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp53_ = g_strdup ("PRINTING_CONTENT_PPI"); -#line 260 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp53_; -#line 260 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1750 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS: -#line 1754 "ConfigurationInterfaces.c" - { - gchar* _tmp54_; -#line 263 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp54_ = g_strdup ("PRINTING_CONTENT_UNITS"); -#line 263 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp54_; -#line 263 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1763 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH: -#line 1767 "ConfigurationInterfaces.c" - { - gchar* _tmp55_; -#line 266 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp55_ = g_strdup ("PRINTING_CONTENT_WIDTH"); -#line 266 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp55_; -#line 266 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1776 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE: -#line 1780 "ConfigurationInterfaces.c" - { - gchar* _tmp56_; -#line 269 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp56_ = g_strdup ("PRINTING_IMAGES_PER_PAGE"); -#line 269 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp56_; -#line 269 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1789 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO: -#line 1793 "ConfigurationInterfaces.c" - { - gchar* _tmp57_; -#line 272 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp57_ = g_strdup ("PRINTING_MATCH_ASPECT_RATIO"); -#line 272 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp57_; -#line 272 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1802 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES: -#line 1806 "ConfigurationInterfaces.c" - { - gchar* _tmp58_; -#line 275 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp58_ = g_strdup ("PRINTING_PRINT_TITLES"); -#line 275 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp58_; -#line 275 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1815 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION: -#line 1819 "ConfigurationInterfaces.c" - { - gchar* _tmp59_; -#line 278 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp59_ = g_strdup ("PRINTING_SIZE_SELECTION"); -#line 278 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp59_; -#line 278 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1828 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT: -#line 1832 "ConfigurationInterfaces.c" - { - gchar* _tmp60_; -#line 281 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp60_ = g_strdup ("PRINTING_TITLES_FONT"); -#line 281 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp60_; -#line 281 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1841 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT: -#line 1845 "ConfigurationInterfaces.c" - { - gchar* _tmp61_; -#line 284 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp61_ = g_strdup ("RAW_DEVELOPER_DEFAULT"); -#line 284 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp61_; -#line 284 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1854 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG: -#line 1858 "ConfigurationInterfaces.c" - { - gchar* _tmp62_; -#line 287 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp62_ = g_strdup ("SHOW_WELCOME_DIALOG"); -#line 287 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp62_; -#line 287 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1867 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_SIDEBAR_POSITION: -#line 1871 "ConfigurationInterfaces.c" - { - gchar* _tmp63_; -#line 290 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp63_ = g_strdup ("SIDEBAR_POSITION"); -#line 290 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp63_; -#line 290 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1880 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY: -#line 1884 "ConfigurationInterfaces.c" - { - gchar* _tmp64_; -#line 293 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp64_ = g_strdup ("SLIDESHOW_DELAY"); -#line 293 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp64_; -#line 293 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1893 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY: -#line 1897 "ConfigurationInterfaces.c" - { - gchar* _tmp65_; -#line 296 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp65_ = g_strdup ("SLIDESHOW_TRANSITION_DELAY"); -#line 296 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp65_; -#line 296 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1906 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID: -#line 1910 "ConfigurationInterfaces.c" - { - gchar* _tmp66_; -#line 299 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp66_ = g_strdup ("SLIDESHOW_TRANSITION_EFFECT_ID"); -#line 299 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp66_; -#line 299 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1919 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE: -#line 1923 "ConfigurationInterfaces.c" - { - gchar* _tmp67_; -#line 302 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp67_ = g_strdup ("SLIDESHOW_SHOW_TITLE"); -#line 302 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp67_; -#line 302 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1932 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME: -#line 1936 "ConfigurationInterfaces.c" - { - gchar* _tmp68_; -#line 305 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp68_ = g_strdup ("USE_24_HOUR_TIME"); -#line 305 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp68_; -#line 305 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1945 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES: -#line 1949 "ConfigurationInterfaces.c" - { - gchar* _tmp69_; -#line 308 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp69_ = g_strdup ("USE_LOWERCASE_FILENAMES"); -#line 308 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp69_; -#line 308 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1958 "ConfigurationInterfaces.c" - } -#line 99 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE: -#line 1962 "ConfigurationInterfaces.c" - { - gchar* _tmp70_; -#line 311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp70_ = g_strdup ("VIDEO_INTERPRETER_STATE_COOKIE"); -#line 311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp70_; -#line 311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 1971 "ConfigurationInterfaces.c" - } - default: - { -#line 314 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_error ("ConfigurationInterfaces.vala:314: unknown ConfigurableProperty enumera" \ -"tion value"); -#line 1977 "ConfigurationInterfaces.c" - } - } -} - - -GType -configurable_property_get_type (void) -{ - static volatile gsize configurable_property_type_id__volatile = 0; - if (g_once_init_enter (&configurable_property_type_id__volatile)) { - static const GEnumValue values[] = {{CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY, "CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY", "auto-import-from-library"}, {CONFIGURABLE_PROPERTY_BG_COLOR_NAME, "CONFIGURABLE_PROPERTY_BG_COLOR_NAME", "bg-color-name"}, {CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE, "CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE", "transparent-background-type"}, {CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR, "CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR", "transparent-background-color"}, {CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS, "CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS", "commit-metadata-to-masters"}, {CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE, "CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE", "desktop-background-file"}, {CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE, "CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE", "desktop-background-mode"}, {CONFIGURABLE_PROPERTY_SCREENSAVER_FILE, "CONFIGURABLE_PROPERTY_SCREENSAVER_FILE", "screensaver-file"}, {CONFIGURABLE_PROPERTY_SCREENSAVER_MODE, "CONFIGURABLE_PROPERTY_SCREENSAVER_MODE", "screensaver-mode"}, {CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN, "CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN", "directory-pattern"}, {CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM, "CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM", "directory-pattern-custom"}, {CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT, "CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT", "direct-window-height"}, {CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE, "CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE", "direct-window-maximize"}, {CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH, "CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH", "direct-window-width"}, {CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES, "CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES", "display-basic-properties"}, {CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS, "CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS", "display-event-comments"}, {CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES, "CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES", "display-extended-properties"}, {CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR, "CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR", "display-sidebar"}, {CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR, "CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR", "display-toolbar"}, {CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR, "CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR", "display-search-bar"}, {CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS, "CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS", "display-photo-ratings"}, {CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS, "CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS", "display-photo-tags"}, {CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES, "CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES", "display-photo-titles"}, {CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS, "CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS", "display-photo-comments"}, {CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING, "CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING", "event-photos-sort-ascending"}, {CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY, "CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY", "event-photos-sort-by"}, {CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING, "CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING", "events-sort-ascending"}, {CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT, "CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT", "export-constraint"}, {CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE, "CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE", "export-export-format-mode"}, {CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA, "CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA", "export-export-metadata"}, {CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT, "CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT", "export-photo-file-format"}, {CONFIGURABLE_PROPERTY_EXPORT_QUALITY, "CONFIGURABLE_PROPERTY_EXPORT_QUALITY", "export-quality"}, {CONFIGURABLE_PROPERTY_EXPORT_SCALE, "CONFIGURABLE_PROPERTY_EXPORT_SCALE", "export-scale"}, {CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP, "CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP", "external-photo-app"}, {CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP, "CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP", "external-raw-app"}, {CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED, "CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED", "hide-photos-already-imported"}, {CONFIGURABLE_PROPERTY_IMPORT_DIR, "CONFIGURABLE_PROPERTY_IMPORT_DIR", "import-dir"}, {CONFIGURABLE_PROPERTY_KEEP_RELATIVITY, "CONFIGURABLE_PROPERTY_KEEP_RELATIVITY", "keep-relativity"}, {CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT, "CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT", "last-crop-height"}, {CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE, "CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE", "last-crop-menu-choice"}, {CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH, "CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH", "last-crop-width"}, {CONFIGURABLE_PROPERTY_LAST_USED_SERVICE, "CONFIGURABLE_PROPERTY_LAST_USED_SERVICE", "last-used-service"}, {CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE, "CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE", "last-used-dataimports-service"}, {CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING, "CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING", "library-photos-sort-ascending"}, {CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY, "CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY", "library-photos-sort-by"}, {CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT, "CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT", "library-window-height"}, {CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE, "CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE", "library-window-maximize"}, {CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH, "CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH", "library-window-width"}, {CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS, "CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS", "modify-originals"}, {CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE, "CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE", "photo-thumbnail-scale"}, {CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE, "CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE", "pin-toolbar-state"}, {CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT, "CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT", "printing-content-height"}, {CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT, "CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT", "printing-content-layout"}, {CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI, "CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI", "printing-content-ppi"}, {CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS, "CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS", "printing-content-units"}, {CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH, "CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH", "printing-content-width"}, {CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE, "CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE", "printing-images-per-page"}, {CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO, "CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO", "printing-match-aspect-ratio"}, {CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES, "CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES", "printing-print-titles"}, {CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION, "CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION", "printing-size-selection"}, {CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT, "CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT", "printing-titles-font"}, {CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT, "CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT", "raw-developer-default"}, {CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG, "CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG", "show-welcome-dialog"}, {CONFIGURABLE_PROPERTY_SIDEBAR_POSITION, "CONFIGURABLE_PROPERTY_SIDEBAR_POSITION", "sidebar-position"}, {CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY, "CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY", "slideshow-delay"}, {CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY, "CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY", "slideshow-transition-delay"}, {CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID, "CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID", "slideshow-transition-effect-id"}, {CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE, "CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE", "slideshow-show-title"}, {CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME, "CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME", "use-24-hour-time"}, {CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES, "CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES", "use-lowercase-filenames"}, {CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE, "CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE", "video-interpreter-state-cookie"}, {CONFIGURABLE_PROPERTY_NUM_PROPERTIES, "CONFIGURABLE_PROPERTY_NUM_PROPERTIES", "num-properties"}, {0, NULL, NULL}}; - GType configurable_property_type_id; - configurable_property_type_id = g_enum_register_static ("ConfigurableProperty", values); - g_once_init_leave (&configurable_property_type_id__volatile, configurable_property_type_id); - } - return configurable_property_type_id__volatile; -} - - -gchar* -configuration_engine_get_name (ConfigurationEngine* self) -{ -#line 322 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), NULL); -#line 322 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_name (self); -#line 2004 "ConfigurationInterfaces.c" -} - - -gint -configuration_engine_get_int_property (ConfigurationEngine* self, - ConfigurableProperty p, - GError** error) -{ -#line 324 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), 0); -#line 324 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_int_property (self, p, error); -#line 2017 "ConfigurationInterfaces.c" -} - - -void -configuration_engine_set_int_property (ConfigurationEngine* self, - ConfigurableProperty p, - gint val, - GError** error) -{ -#line 325 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_ENGINE (self)); -#line 325 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_int_property (self, p, val, error); -#line 2031 "ConfigurationInterfaces.c" -} - - -gint -configuration_engine_get_enum_property (ConfigurationEngine* self, - ConfigurableProperty p, - GError** error) -{ -#line 327 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), 0); -#line 327 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_enum_property (self, p, error); -#line 2044 "ConfigurationInterfaces.c" -} - - -void -configuration_engine_set_enum_property (ConfigurationEngine* self, - ConfigurableProperty p, - gint val, - GError** error) -{ -#line 328 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_ENGINE (self)); -#line 328 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_enum_property (self, p, val, error); -#line 2058 "ConfigurationInterfaces.c" -} - - -gchar* -configuration_engine_get_string_property (ConfigurationEngine* self, - ConfigurableProperty p, - GError** error) -{ -#line 330 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), NULL); -#line 330 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_string_property (self, p, error); -#line 2071 "ConfigurationInterfaces.c" -} - - -void -configuration_engine_set_string_property (ConfigurationEngine* self, - ConfigurableProperty p, - const gchar* val, - GError** error) -{ -#line 331 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_ENGINE (self)); -#line 331 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_string_property (self, p, val, error); -#line 2085 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_engine_get_bool_property (ConfigurationEngine* self, - ConfigurableProperty p, - GError** error) -{ -#line 333 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), FALSE); -#line 333 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_bool_property (self, p, error); -#line 2098 "ConfigurationInterfaces.c" -} - - -void -configuration_engine_set_bool_property (ConfigurationEngine* self, - ConfigurableProperty p, - gboolean val, - GError** error) -{ -#line 334 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_ENGINE (self)); -#line 334 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_bool_property (self, p, val, error); -#line 2112 "ConfigurationInterfaces.c" -} - - -gdouble -configuration_engine_get_double_property (ConfigurationEngine* self, - ConfigurableProperty p, - GError** error) -{ -#line 336 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), 0.0); -#line 336 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_double_property (self, p, error); -#line 2125 "ConfigurationInterfaces.c" -} - - -void -configuration_engine_set_double_property (ConfigurationEngine* self, - ConfigurableProperty p, - gdouble val, - GError** error) -{ -#line 337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_ENGINE (self)); -#line 337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_double_property (self, p, val, error); -#line 2139 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_engine_get_plugin_bool (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean def) -{ -#line 339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), FALSE); -#line 339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_plugin_bool (self, domain, id, key, def); -#line 2154 "ConfigurationInterfaces.c" -} - - -void -configuration_engine_set_plugin_bool (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean val) -{ -#line 340 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_ENGINE (self)); -#line 340 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_plugin_bool (self, domain, id, key, val); -#line 2169 "ConfigurationInterfaces.c" -} - - -gdouble -configuration_engine_get_plugin_double (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble def) -{ -#line 341 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), 0.0); -#line 341 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_plugin_double (self, domain, id, key, def); -#line 2184 "ConfigurationInterfaces.c" -} - - -void -configuration_engine_set_plugin_double (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble val) -{ -#line 342 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_ENGINE (self)); -#line 342 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_plugin_double (self, domain, id, key, val); -#line 2199 "ConfigurationInterfaces.c" -} - - -gint -configuration_engine_get_plugin_int (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gint def) -{ -#line 343 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), 0); -#line 343 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_plugin_int (self, domain, id, key, def); -#line 2214 "ConfigurationInterfaces.c" -} - - -void -configuration_engine_set_plugin_int (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gint val) -{ -#line 344 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_ENGINE (self)); -#line 344 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_plugin_int (self, domain, id, key, val); -#line 2229 "ConfigurationInterfaces.c" -} - - -gchar* -configuration_engine_get_plugin_string (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* def) -{ -#line 345 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), NULL); -#line 345 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_ENGINE_GET_INTERFACE (self)->get_plugin_string (self, domain, id, key, def); -#line 2244 "ConfigurationInterfaces.c" -} - - -void -configuration_engine_set_plugin_string (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* val) -{ -#line 346 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_ENGINE (self)); -#line 346 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_plugin_string (self, domain, id, key, val); -#line 2259 "ConfigurationInterfaces.c" -} - - -void -configuration_engine_unset_plugin_key (ConfigurationEngine* self, - const gchar* domain, - const gchar* id, - const gchar* key) -{ -#line 347 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_ENGINE (self)); -#line 347 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_ENGINE_GET_INTERFACE (self)->unset_plugin_key (self, domain, id, key); -#line 2273 "ConfigurationInterfaces.c" -} - - -FuzzyPropertyState -configuration_engine_is_plugin_enabled (ConfigurationEngine* self, - const gchar* id) -{ -#line 349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_ENGINE (self), 0); -#line 349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_ENGINE_GET_INTERFACE (self)->is_plugin_enabled (self, id); -#line 2285 "ConfigurationInterfaces.c" -} - - -void -configuration_engine_set_plugin_enabled (ConfigurationEngine* self, - const gchar* id, - gboolean enabled) -{ -#line 350 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_ENGINE (self)); -#line 350 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_ENGINE_GET_INTERFACE (self)->set_plugin_enabled (self, id, enabled); -#line 2298 "ConfigurationInterfaces.c" -} - - -static void -configuration_engine_base_init (ConfigurationEngineIface * iface) -{ -#line 319 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - static gboolean initialized = FALSE; -#line 319 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (!initialized) { -#line 319 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - initialized = TRUE; -#line 319 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_signals[CONFIGURATION_ENGINE_PROPERTY_CHANGED_SIGNAL] = g_signal_new ("property-changed", TYPE_CONFIGURATION_ENGINE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__ENUM, G_TYPE_NONE, 1, TYPE_CONFIGURABLE_PROPERTY); -#line 2313 "ConfigurationInterfaces.c" - } -} - - -GType -configuration_engine_get_type (void) -{ - static volatile gsize configuration_engine_type_id__volatile = 0; - if (g_once_init_enter (&configuration_engine_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ConfigurationEngineIface), (GBaseInitFunc) configuration_engine_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType configuration_engine_type_id; - configuration_engine_type_id = g_type_register_static (G_TYPE_INTERFACE, "ConfigurationEngine", &g_define_type_info, 0); - g_type_interface_add_prerequisite (configuration_engine_type_id, G_TYPE_OBJECT); - g_once_init_leave (&configuration_engine_type_id__volatile, configuration_engine_type_id); - } - return configuration_engine_type_id__volatile; -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 366 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return self ? g_object_ref (self) : NULL; -#line 2338 "ConfigurationInterfaces.c" -} - - -static void -_configuration_facade_on_property_changed_configuration_engine_property_changed (ConfigurationEngine* _sender, - ConfigurableProperty p, - gpointer self) -{ -#line 368 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_property_changed ((ConfigurationFacade*) self, p); -#line 2349 "ConfigurationInterfaces.c" -} - - -ConfigurationFacade* -configuration_facade_construct (GType object_type, - ConfigurationEngine* engine) -{ - ConfigurationFacade * self = NULL; - ConfigurationEngine* _tmp0_; -#line 365 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_ENGINE (engine), NULL); -#line 365 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - self = (ConfigurationFacade*) g_object_new (object_type, NULL); -#line 366 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _g_object_ref0 (engine); -#line 366 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (self->priv->engine); -#line 366 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - self->priv->engine = _tmp0_; -#line 368 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_signal_connect_object (engine, "property-changed", (GCallback) _configuration_facade_on_property_changed_configuration_engine_property_changed, self, 0); -#line 365 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return self; -#line 2373 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_on_property_changed (ConfigurationFacade* self, - ConfigurableProperty p) -{ - gchar* _tmp0_; - gchar* _tmp1_; -#line 371 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 372 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configurable_property_to_string (p); -#line 372 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 372 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_debug ("ConfigurationInterfaces.vala:372: ConfigurationFacade: engine reports " \ -"property '%s' changed.", _tmp1_); -#line 372 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp1_); -#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - switch (p) { -#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY: -#line 2397 "ConfigurationInterfaces.c" - { -#line 376 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_signal_emit (self, configuration_facade_signals[CONFIGURATION_FACADE_AUTO_IMPORT_FROM_LIBRARY_CHANGED_SIGNAL], 0); -#line 377 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - break; -#line 2403 "ConfigurationInterfaces.c" - } -#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_BG_COLOR_NAME: -#line 2407 "ConfigurationInterfaces.c" - { -#line 380 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_signal_emit (self, configuration_facade_signals[CONFIGURATION_FACADE_BG_COLOR_NAME_CHANGED_SIGNAL], 0); -#line 381 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - break; -#line 2413 "ConfigurationInterfaces.c" - } -#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE: -#line 2417 "ConfigurationInterfaces.c" - { -#line 384 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_signal_emit (self, configuration_facade_signals[CONFIGURATION_FACADE_TRANSPARENT_BACKGROUND_TYPE_CHANGED_SIGNAL], 0); -#line 385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - break; -#line 2423 "ConfigurationInterfaces.c" - } -#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR: -#line 2427 "ConfigurationInterfaces.c" - { -#line 388 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_signal_emit (self, configuration_facade_signals[CONFIGURATION_FACADE_TRANSPARENT_BACKGROUND_COLOR_CHANGED_SIGNAL], 0); -#line 389 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - break; -#line 2433 "ConfigurationInterfaces.c" - } -#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS: -#line 2437 "ConfigurationInterfaces.c" - { -#line 392 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_signal_emit (self, configuration_facade_signals[CONFIGURATION_FACADE_COMMIT_METADATA_TO_MASTERS_CHANGED_SIGNAL], 0); -#line 393 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - break; -#line 2443 "ConfigurationInterfaces.c" - } -#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING: -#line 2447 "ConfigurationInterfaces.c" - { -#line 396 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_signal_emit (self, configuration_facade_signals[CONFIGURATION_FACADE_EVENTS_SORT_ASCENDING_CHANGED_SIGNAL], 0); -#line 397 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - break; -#line 2453 "ConfigurationInterfaces.c" - } -#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP: -#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP: -#line 2459 "ConfigurationInterfaces.c" - { -#line 401 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_signal_emit (self, configuration_facade_signals[CONFIGURATION_FACADE_EXTERNAL_APP_CHANGED_SIGNAL], 0); -#line 402 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - break; -#line 2465 "ConfigurationInterfaces.c" - } -#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - case CONFIGURABLE_PROPERTY_IMPORT_DIR: -#line 2469 "ConfigurationInterfaces.c" - { -#line 405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_signal_emit (self, configuration_facade_signals[CONFIGURATION_FACADE_IMPORT_DIRECTORY_CHANGED_SIGNAL], 0); -#line 406 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - break; -#line 2475 "ConfigurationInterfaces.c" - } - default: -#line 374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - break; -#line 2480 "ConfigurationInterfaces.c" - } -} - - -ConfigurationEngine* -configuration_facade_get_engine (ConfigurationFacade* self) -{ - ConfigurationEngine* result = NULL; - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 410 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL); -#line 411 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = self->priv->engine; -#line 411 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 411 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp1_; -#line 411 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 2501 "ConfigurationInterfaces.c" -} - - -void -configuration_facade_on_configuration_error (ConfigurationFacade* self, - GError* err) -{ -#line 414 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (g_error_matches (err, CONFIGURATION_ERROR, CONFIGURATION_ERROR_PROPERTY_HAS_NO_VALUE)) { -#line 2513 "ConfigurationInterfaces.c" - ConfigurationEngine* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; -#line 416 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = self->priv->engine; -#line 416 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_engine_get_name (_tmp0_); -#line 416 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 416 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = err->message; -#line 416 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_message ("ConfigurationInterfaces.vala:416: configuration engine '%s' reports PR" \ -"OPERTY_HAS_NO_VALUE error: %s", _tmp2_, _tmp3_); -#line 416 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp2_); -#line 2530 "ConfigurationInterfaces.c" - } else { -#line 419 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (g_error_matches (err, CONFIGURATION_ERROR, CONFIGURATION_ERROR_ENGINE_ERROR)) { -#line 2534 "ConfigurationInterfaces.c" - ConfigurationEngine* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - const gchar* _tmp7_; -#line 420 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = self->priv->engine; -#line 420 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = configuration_engine_get_name (_tmp4_); -#line 420 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = _tmp5_; -#line 420 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = err->message; -#line 420 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("ConfigurationInterfaces.vala:420: configuration engine '%s' reports EN" \ -"GINE_ERROR: %s", _tmp6_, _tmp7_); -#line 420 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp6_); -#line 2551 "ConfigurationInterfaces.c" - } else { - ConfigurationEngine* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - const gchar* _tmp11_; -#line 423 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp8_ = self->priv->engine; -#line 423 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp9_ = configuration_engine_get_name (_tmp8_); -#line 423 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp10_ = _tmp9_; -#line 423 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp11_ = err->message; -#line 423 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("ConfigurationInterfaces.vala:423: configuration engine '%s' reports un" \ -"known error: %s", _tmp10_, _tmp11_); -#line 423 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp10_); -#line 2569 "ConfigurationInterfaces.c" - } - } -} - - -static gboolean -configuration_facade_real_get_auto_import_from_library (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY, &_inner_error_); -#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2598 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 2602 "ConfigurationInterfaces.c" - goto __catch91_configuration_error; - } -#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 2611 "ConfigurationInterfaces.c" - } -#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 433 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 2617 "ConfigurationInterfaces.c" - } - goto __finally91; - __catch91_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 432 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 432 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 435 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 435 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = FALSE; -#line 437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 2638 "ConfigurationInterfaces.c" - } - __finally91: -#line 432 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 432 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 432 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 2647 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_auto_import_from_library (ConfigurationFacade* self) -{ -#line 431 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 431 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_auto_import_from_library (self); -#line 2658 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_auto_import_from_library (ConfigurationFacade* self, - gboolean auto_import) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 443 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 443 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 443 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY, auto_import, &_inner_error_); -#line 443 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 443 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 443 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 2682 "ConfigurationInterfaces.c" - goto __catch92_configuration_error; - } -#line 443 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 443 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 443 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 2691 "ConfigurationInterfaces.c" - } - } - goto __finally92; - __catch92_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 442 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 442 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 446 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 446 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 447 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 447 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 2711 "ConfigurationInterfaces.c" - } - __finally92: -#line 442 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 442 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 442 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 442 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 2722 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_auto_import_from_library (ConfigurationFacade* self, - gboolean auto_import) -{ -#line 441 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 441 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_auto_import_from_library (self, auto_import); -#line 2735 "ConfigurationInterfaces.c" -} - - -static gchar* -configuration_facade_real_get_bg_color_name (ConfigurationFacade* self) -{ - gchar* result = NULL; - GError * _inner_error_ = NULL; - { - gchar* _tmp0_ = NULL; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_BG_COLOR_NAME, &_inner_error_); -#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = _tmp3_; -#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp4_; -#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 2767 "ConfigurationInterfaces.c" - goto __catch93_configuration_error; - } -#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 2776 "ConfigurationInterfaces.c" - } -#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _tmp0_; -#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = NULL; -#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp5_; -#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp0_); -#line 456 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 2788 "ConfigurationInterfaces.c" - } - goto __finally93; - __catch93_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; - gchar* _tmp7_; -#line 455 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 455 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 458 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = err; -#line 458 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp6_); -#line 460 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = g_strdup (""); -#line 460 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp7_; -#line 460 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 460 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 2812 "ConfigurationInterfaces.c" - } - __finally93: -#line 455 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 455 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 455 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 2821 "ConfigurationInterfaces.c" -} - - -gchar* -configuration_facade_get_bg_color_name (ConfigurationFacade* self) -{ -#line 454 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL); -#line 454 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_bg_color_name (self); -#line 2832 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_bg_color_name (ConfigurationFacade* self, - const gchar* color_name) -{ - GError * _inner_error_ = NULL; -#line 464 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (color_name != NULL); -#line 2843 "ConfigurationInterfaces.c" - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 466 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 466 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 466 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_BG_COLOR_NAME, color_name, &_inner_error_); -#line 466 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 466 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 466 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 2859 "ConfigurationInterfaces.c" - goto __catch94_configuration_error; - } -#line 466 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 466 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 466 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 2868 "ConfigurationInterfaces.c" - } - } - goto __finally94; - __catch94_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 465 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 465 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 468 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 468 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 469 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 469 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 2888 "ConfigurationInterfaces.c" - } - __finally94: -#line 465 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 465 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 465 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 465 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 2899 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_bg_color_name (ConfigurationFacade* self, - const gchar* color_name) -{ -#line 464 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 464 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_bg_color_name (self, color_name); -#line 2912 "ConfigurationInterfaces.c" -} - - -static gchar* -configuration_facade_real_get_transparent_background_type (ConfigurationFacade* self) -{ - gchar* result = NULL; - GError * _inner_error_ = NULL; - { - gchar* _tmp0_ = NULL; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE, &_inner_error_); -#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = _tmp3_; -#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp4_; -#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 2944 "ConfigurationInterfaces.c" - goto __catch95_configuration_error; - } -#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 2953 "ConfigurationInterfaces.c" - } -#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _tmp0_; -#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = NULL; -#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp5_; -#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp0_); -#line 478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 2965 "ConfigurationInterfaces.c" - } - goto __finally95; - __catch95_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; - gchar* _tmp7_; -#line 477 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 477 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = err; -#line 480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp6_); -#line 482 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = g_strdup ("checkered"); -#line 482 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp7_; -#line 482 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 482 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 2989 "ConfigurationInterfaces.c" - } - __finally95: -#line 477 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 477 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 477 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 2998 "ConfigurationInterfaces.c" -} - - -gchar* -configuration_facade_get_transparent_background_type (ConfigurationFacade* self) -{ -#line 476 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL); -#line 476 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_transparent_background_type (self); -#line 3009 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_transparent_background_type (ConfigurationFacade* self, - const gchar* type) -{ - GError * _inner_error_ = NULL; -#line 486 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (type != NULL); -#line 3020 "ConfigurationInterfaces.c" - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 488 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 488 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 488 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE, type, &_inner_error_); -#line 488 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 488 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 488 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3036 "ConfigurationInterfaces.c" - goto __catch96_configuration_error; - } -#line 488 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 488 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 488 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 3045 "ConfigurationInterfaces.c" - } - } - goto __finally96; - __catch96_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 487 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 487 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 490 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 490 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 491 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 491 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 3065 "ConfigurationInterfaces.c" - } - __finally96: -#line 487 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 487 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 487 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 487 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 3076 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_transparent_background_type (ConfigurationFacade* self, - const gchar* type) -{ -#line 486 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 486 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_transparent_background_type (self, type); -#line 3089 "ConfigurationInterfaces.c" -} - - -static gchar* -configuration_facade_real_get_transparent_background_color (ConfigurationFacade* self) -{ - gchar* result = NULL; - GError * _inner_error_ = NULL; - { - gchar* _tmp0_ = NULL; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR, &_inner_error_); -#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = _tmp3_; -#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp4_; -#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3121 "ConfigurationInterfaces.c" - goto __catch97_configuration_error; - } -#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 3130 "ConfigurationInterfaces.c" - } -#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _tmp0_; -#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = NULL; -#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp5_; -#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp0_); -#line 500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 3142 "ConfigurationInterfaces.c" - } - goto __finally97; - __catch97_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; - gchar* _tmp7_; -#line 499 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 499 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = err; -#line 502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp6_); -#line 504 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = g_strdup ("#444"); -#line 504 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp7_; -#line 504 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 504 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 3166 "ConfigurationInterfaces.c" - } - __finally97: -#line 499 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 499 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 499 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 3175 "ConfigurationInterfaces.c" -} - - -gchar* -configuration_facade_get_transparent_background_color (ConfigurationFacade* self) -{ -#line 498 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL); -#line 498 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_transparent_background_color (self); -#line 3186 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_transparent_background_color (ConfigurationFacade* self, - const gchar* color_name) -{ - GError * _inner_error_ = NULL; -#line 508 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (color_name != NULL); -#line 3197 "ConfigurationInterfaces.c" - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 510 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 510 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 510 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR, color_name, &_inner_error_); -#line 510 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 510 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 510 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3213 "ConfigurationInterfaces.c" - goto __catch98_configuration_error; - } -#line 510 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 510 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 510 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 3222 "ConfigurationInterfaces.c" - } - } - goto __finally98; - __catch98_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 509 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 509 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 512 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 512 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 513 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 513 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 3242 "ConfigurationInterfaces.c" - } - __finally98: -#line 509 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 509 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 509 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 509 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 3253 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_transparent_background_color (ConfigurationFacade* self, - const gchar* color_name) -{ -#line 508 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 508 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_transparent_background_color (self, color_name); -#line 3266 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_commit_metadata_to_masters (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS, &_inner_error_); -#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3293 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3297 "ConfigurationInterfaces.c" - goto __catch99_configuration_error; - } -#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 3306 "ConfigurationInterfaces.c" - } -#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 3312 "ConfigurationInterfaces.c" - } - goto __finally99; - __catch99_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 521 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 521 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 526 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = FALSE; -#line 526 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 526 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 3333 "ConfigurationInterfaces.c" - } - __finally99: -#line 521 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 521 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 521 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 3342 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_commit_metadata_to_masters (ConfigurationFacade* self) -{ -#line 520 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 520 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_commit_metadata_to_masters (self); -#line 3353 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_commit_metadata_to_masters (ConfigurationFacade* self, - gboolean commit_metadata) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 532 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 532 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 532 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS, commit_metadata, &_inner_error_); -#line 532 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 532 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 532 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3377 "ConfigurationInterfaces.c" - goto __catch100_configuration_error; - } -#line 532 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 532 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 532 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 3386 "ConfigurationInterfaces.c" - } - } - goto __finally100; - __catch100_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 531 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 531 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 535 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 535 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 3406 "ConfigurationInterfaces.c" - } - __finally100: -#line 531 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 531 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 531 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 531 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 3417 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_commit_metadata_to_masters (ConfigurationFacade* self, - gboolean commit_metadata) -{ -#line 530 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 530 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_commit_metadata_to_masters (self, commit_metadata); -#line 3430 "ConfigurationInterfaces.c" -} - - -static gchar* -configuration_facade_real_get_desktop_background (ConfigurationFacade* self) -{ - gchar* result = NULL; - GError * _inner_error_ = NULL; - { - gchar* _tmp0_ = NULL; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE, &_inner_error_); -#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = _tmp3_; -#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp4_; -#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3462 "ConfigurationInterfaces.c" - goto __catch101_configuration_error; - } -#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 3471 "ConfigurationInterfaces.c" - } -#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _tmp0_; -#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = NULL; -#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp5_; -#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp0_); -#line 545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 3483 "ConfigurationInterfaces.c" - } - goto __finally101; - __catch101_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; - gchar* _tmp7_; -#line 544 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 544 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 547 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = err; -#line 547 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp6_); -#line 549 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = g_strdup (""); -#line 549 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp7_; -#line 549 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 549 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 3507 "ConfigurationInterfaces.c" - } - __finally101: -#line 544 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 544 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 544 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 3516 "ConfigurationInterfaces.c" -} - - -gchar* -configuration_facade_get_desktop_background (ConfigurationFacade* self) -{ -#line 543 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL); -#line 543 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_desktop_background (self); -#line 3527 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_desktop_background (ConfigurationFacade* self, - const gchar* filename) -{ - GError * _inner_error_ = NULL; -#line 553 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (filename != NULL); -#line 3538 "ConfigurationInterfaces.c" - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - ConfigurationEngine* _tmp3_; -#line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE, filename, &_inner_error_); -#line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3556 "ConfigurationInterfaces.c" - goto __catch102_configuration_error; - } -#line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 555 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 3565 "ConfigurationInterfaces.c" - } -#line 557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = configuration_facade_get_engine (self); -#line 557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = _tmp2_; -#line 557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_string_property (_tmp3_, CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE, "zoom", &_inner_error_); -#line 557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp3_); -#line 557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3579 "ConfigurationInterfaces.c" - goto __catch102_configuration_error; - } -#line 557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 3588 "ConfigurationInterfaces.c" - } - } - goto __finally102; - __catch102_configuration_error: - { - GError* err = NULL; - GError* _tmp4_; -#line 554 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 554 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 560 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = err; -#line 560 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp4_); -#line 554 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 3606 "ConfigurationInterfaces.c" - } - __finally102: -#line 554 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 554 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 554 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 554 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 3617 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_desktop_background (ConfigurationFacade* self, - const gchar* filename) -{ -#line 553 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 553 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_desktop_background (self, filename); -#line 3630 "ConfigurationInterfaces.c" -} - - -static gchar* -configuration_facade_real_get_screensaver (ConfigurationFacade* self) -{ - gchar* result = NULL; - GError * _inner_error_ = NULL; - { - gchar* _tmp0_ = NULL; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_SCREENSAVER_FILE, &_inner_error_); -#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = _tmp3_; -#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp4_; -#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3662 "ConfigurationInterfaces.c" - goto __catch103_configuration_error; - } -#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 3671 "ConfigurationInterfaces.c" - } -#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _tmp0_; -#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = NULL; -#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp5_; -#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp0_); -#line 569 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 3683 "ConfigurationInterfaces.c" - } - goto __finally103; - __catch103_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; - gchar* _tmp7_; -#line 568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 571 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = err; -#line 571 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp6_); -#line 573 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = g_strdup (""); -#line 573 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp7_; -#line 573 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 573 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 3707 "ConfigurationInterfaces.c" - } - __finally103: -#line 568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 3716 "ConfigurationInterfaces.c" -} - - -gchar* -configuration_facade_get_screensaver (ConfigurationFacade* self) -{ -#line 567 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL); -#line 567 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_screensaver (self); -#line 3727 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_screensaver (ConfigurationFacade* self, - const gchar* filename) -{ - GError * _inner_error_ = NULL; -#line 577 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (filename != NULL); -#line 3738 "ConfigurationInterfaces.c" - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - ConfigurationEngine* _tmp3_; -#line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_SCREENSAVER_FILE, filename, &_inner_error_); -#line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3756 "ConfigurationInterfaces.c" - goto __catch104_configuration_error; - } -#line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 3765 "ConfigurationInterfaces.c" - } -#line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = configuration_facade_get_engine (self); -#line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = _tmp2_; -#line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_string_property (_tmp3_, CONFIGURABLE_PROPERTY_SCREENSAVER_MODE, "zoom", &_inner_error_); -#line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp3_); -#line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3779 "ConfigurationInterfaces.c" - goto __catch104_configuration_error; - } -#line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 3788 "ConfigurationInterfaces.c" - } - } - goto __finally104; - __catch104_configuration_error: - { - GError* err = NULL; - GError* _tmp4_; -#line 578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 584 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = err; -#line 584 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp4_); -#line 578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 3806 "ConfigurationInterfaces.c" - } - __finally104: -#line 578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 3817 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_screensaver (ConfigurationFacade* self, - const gchar* filename) -{ -#line 577 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 577 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_screensaver (self, filename); -#line 3830 "ConfigurationInterfaces.c" -} - - -static gchar* -configuration_facade_real_get_directory_pattern (ConfigurationFacade* self) -{ - gchar* result = NULL; - GError * _inner_error_ = NULL; - { - gchar* s = NULL; - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_ = NULL; - gchar* _tmp5_; -#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = configuration_engine_get_string_property (_tmp1_, CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN, &_inner_error_); -#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = _tmp2_; -#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - s = _tmp3_; -#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3863 "ConfigurationInterfaces.c" - goto __catch105_configuration_error; - } -#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 3872 "ConfigurationInterfaces.c" - } -#line 594 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (g_strcmp0 (s, "") == 0) { -#line 594 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = NULL; -#line 3878 "ConfigurationInterfaces.c" - } else { -#line 594 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = s; -#line 3882 "ConfigurationInterfaces.c" - } -#line 594 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = g_strdup (_tmp4_); -#line 594 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp5_; -#line 594 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (s); -#line 594 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 3892 "ConfigurationInterfaces.c" - } - goto __finally105; - __catch105_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; - gchar* _tmp7_; -#line 592 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 592 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 596 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = err; -#line 596 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp6_); -#line 598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = g_strdup (""); -#line 598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp7_; -#line 598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 3916 "ConfigurationInterfaces.c" - } - __finally105: -#line 592 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 592 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 592 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 3925 "ConfigurationInterfaces.c" -} - - -gchar* -configuration_facade_get_directory_pattern (ConfigurationFacade* self) -{ -#line 591 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL); -#line 591 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_directory_pattern (self); -#line 3936 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_directory_pattern (ConfigurationFacade* self, - const gchar* s) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 604 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (s == NULL) { -#line 605 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - s = ""; -#line 3952 "ConfigurationInterfaces.c" - } -#line 607 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 607 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 607 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN, s, &_inner_error_); -#line 607 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 607 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 607 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3966 "ConfigurationInterfaces.c" - goto __catch106_configuration_error; - } -#line 607 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 607 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 607 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 3975 "ConfigurationInterfaces.c" - } - } - goto __finally106; - __catch106_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 603 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 603 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 609 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 609 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 603 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 3993 "ConfigurationInterfaces.c" - } - __finally106: -#line 603 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 603 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 603 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 603 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 4004 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_directory_pattern (ConfigurationFacade* self, - const gchar* s) -{ -#line 602 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 602 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_directory_pattern (self, s); -#line 4017 "ConfigurationInterfaces.c" -} - - -static gchar* -configuration_facade_real_get_directory_pattern_custom (ConfigurationFacade* self) -{ - gchar* result = NULL; - GError * _inner_error_ = NULL; - { - gchar* _tmp0_ = NULL; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM, &_inner_error_); -#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = _tmp3_; -#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp4_; -#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4049 "ConfigurationInterfaces.c" - goto __catch107_configuration_error; - } -#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 4058 "ConfigurationInterfaces.c" - } -#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _tmp0_; -#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = NULL; -#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp5_; -#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp0_); -#line 618 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 4070 "ConfigurationInterfaces.c" - } - goto __finally107; - __catch107_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; - gchar* _tmp7_; -#line 617 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 617 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 620 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = err; -#line 620 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp6_); -#line 622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = g_strdup (""); -#line 622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp7_; -#line 622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 4094 "ConfigurationInterfaces.c" - } - __finally107: -#line 617 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 617 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 617 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 4103 "ConfigurationInterfaces.c" -} - - -gchar* -configuration_facade_get_directory_pattern_custom (ConfigurationFacade* self) -{ -#line 616 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL); -#line 616 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_directory_pattern_custom (self); -#line 4114 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_directory_pattern_custom (ConfigurationFacade* self, - const gchar* s) -{ - GError * _inner_error_ = NULL; -#line 626 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (s != NULL); -#line 4125 "ConfigurationInterfaces.c" - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 628 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 628 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 628 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM, s, &_inner_error_); -#line 628 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 628 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 628 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4141 "ConfigurationInterfaces.c" - goto __catch108_configuration_error; - } -#line 628 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 628 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 628 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 4150 "ConfigurationInterfaces.c" - } - } - goto __finally108; - __catch108_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 627 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 627 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 630 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 630 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 627 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 4168 "ConfigurationInterfaces.c" - } - __finally108: -#line 627 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 627 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 627 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 627 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 4179 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_directory_pattern_custom (ConfigurationFacade* self, - const gchar* s) -{ -#line 626 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 626 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_directory_pattern_custom (self, s); -#line 4192 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_get_direct_window_state (ConfigurationFacade* self, - gboolean* maximize, - Dimensions* dimensions) -{ - gboolean _vala_maximize = FALSE; - Dimensions _vala_dimensions = {0}; - GError * _inner_error_ = NULL; -#line 638 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _vala_maximize = FALSE; -#line 639 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - dimensions_init (&_vala_dimensions, 1024, 768); -#line 4208 "ConfigurationInterfaces.c" - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; - gint w = 0; - ConfigurationEngine* _tmp4_; - ConfigurationEngine* _tmp5_; - gint _tmp6_; - gint h = 0; - ConfigurationEngine* _tmp7_; - ConfigurationEngine* _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; -#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE, &_inner_error_); -#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4238 "ConfigurationInterfaces.c" - goto __catch109_configuration_error; - } -#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 4247 "ConfigurationInterfaces.c" - } -#line 641 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _vala_maximize = _tmp0_; -#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = configuration_facade_get_engine (self); -#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _tmp4_; -#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = configuration_engine_get_int_property (_tmp5_, CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH, &_inner_error_); -#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp5_); -#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - w = _tmp6_; -#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4265 "ConfigurationInterfaces.c" - goto __catch109_configuration_error; - } -#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 4274 "ConfigurationInterfaces.c" - } -#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = configuration_facade_get_engine (self); -#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp8_ = _tmp7_; -#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp9_ = configuration_engine_get_int_property (_tmp8_, CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT, &_inner_error_); -#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp8_); -#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - h = _tmp9_; -#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4290 "ConfigurationInterfaces.c" - goto __catch109_configuration_error; - } -#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 4299 "ConfigurationInterfaces.c" - } -#line 644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp10_ = w; -#line 644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp11_ = h; -#line 644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - dimensions_init (&_vala_dimensions, _tmp10_, _tmp11_); -#line 4307 "ConfigurationInterfaces.c" - } - goto __finally109; - __catch109_configuration_error: - { - GError* err = NULL; - GError* _tmp12_; -#line 640 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 640 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 646 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp12_ = err; -#line 646 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp12_); -#line 640 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 4324 "ConfigurationInterfaces.c" - } - __finally109: -#line 640 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 640 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 640 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 640 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 4335 "ConfigurationInterfaces.c" - } -#line 637 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (maximize) { -#line 637 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - *maximize = _vala_maximize; -#line 4341 "ConfigurationInterfaces.c" - } -#line 637 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (dimensions) { -#line 637 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - *dimensions = _vala_dimensions; -#line 4347 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_get_direct_window_state (ConfigurationFacade* self, - gboolean* maximize, - Dimensions* dimensions) -{ -#line 637 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 637 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->get_direct_window_state (self, maximize, dimensions); -#line 4361 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_direct_window_state (ConfigurationFacade* self, - gboolean maximize, - Dimensions* dimensions) -{ - GError * _inner_error_ = NULL; -#line 650 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (dimensions != NULL); -#line 4373 "ConfigurationInterfaces.c" - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - ConfigurationEngine* _tmp3_; - Dimensions _tmp4_; - gint _tmp5_; - ConfigurationEngine* _tmp6_; - ConfigurationEngine* _tmp7_; - Dimensions _tmp8_; - gint _tmp9_; -#line 652 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 652 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 652 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE, maximize, &_inner_error_); -#line 652 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 652 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 652 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4397 "ConfigurationInterfaces.c" - goto __catch110_configuration_error; - } -#line 652 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 652 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 652 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 4406 "ConfigurationInterfaces.c" - } -#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = configuration_facade_get_engine (self); -#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = _tmp2_; -#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = *dimensions; -#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _tmp4_.width; -#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp3_, CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH, _tmp5_, &_inner_error_); -#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp3_); -#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4424 "ConfigurationInterfaces.c" - goto __catch110_configuration_error; - } -#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 653 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 4433 "ConfigurationInterfaces.c" - } -#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = configuration_facade_get_engine (self); -#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = _tmp6_; -#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp8_ = *dimensions; -#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp9_ = _tmp8_.height; -#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp7_, CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT, _tmp9_, &_inner_error_); -#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp7_); -#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4451 "ConfigurationInterfaces.c" - goto __catch110_configuration_error; - } -#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 4460 "ConfigurationInterfaces.c" - } - } - goto __finally110; - __catch110_configuration_error: - { - GError* err = NULL; - GError* _tmp10_; -#line 651 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 651 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 658 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp10_ = err; -#line 658 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp10_); -#line 651 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 4478 "ConfigurationInterfaces.c" - } - __finally110: -#line 651 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 651 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 651 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 651 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 4489 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_direct_window_state (ConfigurationFacade* self, - gboolean maximize, - Dimensions* dimensions) -{ -#line 650 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 650 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_direct_window_state (self, maximize, dimensions); -#line 4503 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_display_basic_properties (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES, &_inner_error_); -#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4530 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4534 "ConfigurationInterfaces.c" - goto __catch111_configuration_error; - } -#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 4543 "ConfigurationInterfaces.c" - } -#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 667 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 4549 "ConfigurationInterfaces.c" - } - goto __finally111; - __catch111_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 669 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 669 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 671 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = TRUE; -#line 671 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 671 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 4570 "ConfigurationInterfaces.c" - } - __finally111: -#line 666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 4579 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_display_basic_properties (ConfigurationFacade* self) -{ -#line 665 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 665 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_basic_properties (self); -#line 4590 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_display_basic_properties (ConfigurationFacade* self, - gboolean display) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES, display, &_inner_error_); -#line 677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4614 "ConfigurationInterfaces.c" - goto __catch112_configuration_error; - } -#line 677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 4623 "ConfigurationInterfaces.c" - } - } - goto __finally112; - __catch112_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 679 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 679 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 4641 "ConfigurationInterfaces.c" - } - __finally112: -#line 676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 4652 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_display_basic_properties (ConfigurationFacade* self, - gboolean display) -{ -#line 675 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 675 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_display_basic_properties (self, display); -#line 4665 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_display_extended_properties (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES, &_inner_error_); -#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4692 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4696 "ConfigurationInterfaces.c" - goto __catch113_configuration_error; - } -#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 4705 "ConfigurationInterfaces.c" - } -#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 688 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 4711 "ConfigurationInterfaces.c" - } - goto __finally113; - __catch113_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 690 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 690 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 692 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = FALSE; -#line 692 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 692 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 4732 "ConfigurationInterfaces.c" - } - __finally113: -#line 687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 4741 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_display_extended_properties (ConfigurationFacade* self) -{ -#line 686 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 686 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_extended_properties (self); -#line 4752 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_display_extended_properties (ConfigurationFacade* self, - gboolean display) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES, display, &_inner_error_); -#line 698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4776 "ConfigurationInterfaces.c" - goto __catch114_configuration_error; - } -#line 698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 4785 "ConfigurationInterfaces.c" - } - } - goto __finally114; - __catch114_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 701 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 701 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 4803 "ConfigurationInterfaces.c" - } - __finally114: -#line 697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 4814 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_display_extended_properties (ConfigurationFacade* self, - gboolean display) -{ -#line 696 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 696 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_display_extended_properties (self, display); -#line 4827 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_display_sidebar (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR, &_inner_error_); -#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4854 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4858 "ConfigurationInterfaces.c" - goto __catch115_configuration_error; - } -#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 4867 "ConfigurationInterfaces.c" - } -#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 710 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 4873 "ConfigurationInterfaces.c" - } - goto __finally115; - __catch115_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 712 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 712 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 714 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = FALSE; -#line 714 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 714 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 4894 "ConfigurationInterfaces.c" - } - __finally115: -#line 709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 4903 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_display_sidebar (ConfigurationFacade* self) -{ -#line 708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_sidebar (self); -#line 4914 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_display_sidebar (ConfigurationFacade* self, - gboolean display) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR, display, &_inner_error_); -#line 720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4938 "ConfigurationInterfaces.c" - goto __catch116_configuration_error; - } -#line 720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 4947 "ConfigurationInterfaces.c" - } - } - goto __finally116; - __catch116_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 722 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 722 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 4965 "ConfigurationInterfaces.c" - } - __finally116: -#line 719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 4976 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_display_sidebar (ConfigurationFacade* self, - gboolean display) -{ -#line 718 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 718 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_display_sidebar (self, display); -#line 4989 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_display_toolbar (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR, &_inner_error_); -#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5016 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5020 "ConfigurationInterfaces.c" - goto __catch117_configuration_error; - } -#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 5029 "ConfigurationInterfaces.c" - } -#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 5035 "ConfigurationInterfaces.c" - } - goto __finally117; - __catch117_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 731 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 731 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 736 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = FALSE; -#line 736 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 736 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 5056 "ConfigurationInterfaces.c" - } - __finally117: -#line 731 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 731 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 731 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 5065 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_display_toolbar (ConfigurationFacade* self) -{ -#line 730 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 730 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_toolbar (self); -#line 5076 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_display_toolbar (ConfigurationFacade* self, - gboolean display) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 742 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 742 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 742 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR, display, &_inner_error_); -#line 742 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 742 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 742 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5100 "ConfigurationInterfaces.c" - goto __catch118_configuration_error; - } -#line 742 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 742 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 742 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 5109 "ConfigurationInterfaces.c" - } - } - goto __finally118; - __catch118_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 741 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 741 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 744 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 744 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 741 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 5127 "ConfigurationInterfaces.c" - } - __finally118: -#line 741 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 741 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 741 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 741 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 5138 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_display_toolbar (ConfigurationFacade* self, - gboolean display) -{ -#line 740 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 740 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_display_toolbar (self, display); -#line 5151 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_display_search_bar (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR, &_inner_error_); -#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5178 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5182 "ConfigurationInterfaces.c" - goto __catch119_configuration_error; - } -#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 5191 "ConfigurationInterfaces.c" - } -#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 753 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 5197 "ConfigurationInterfaces.c" - } - goto __finally119; - __catch119_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 752 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 752 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 755 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 755 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 757 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = FALSE; -#line 757 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 757 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 5218 "ConfigurationInterfaces.c" - } - __finally119: -#line 752 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 752 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 752 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 5227 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_display_search_bar (ConfigurationFacade* self) -{ -#line 751 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 751 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_search_bar (self); -#line 5238 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_display_search_bar (ConfigurationFacade* self, - gboolean display) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 763 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 763 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 763 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR, display, &_inner_error_); -#line 763 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 763 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 763 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5262 "ConfigurationInterfaces.c" - goto __catch120_configuration_error; - } -#line 763 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 763 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 763 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 5271 "ConfigurationInterfaces.c" - } - } - goto __finally120; - __catch120_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 762 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 762 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 765 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 765 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 762 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 5289 "ConfigurationInterfaces.c" - } - __finally120: -#line 762 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 762 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 762 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 762 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 5300 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_display_search_bar (ConfigurationFacade* self, - gboolean display) -{ -#line 761 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 761 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_display_search_bar (self, display); -#line 5313 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_display_photo_ratings (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS, &_inner_error_); -#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5340 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5344 "ConfigurationInterfaces.c" - goto __catch121_configuration_error; - } -#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 5353 "ConfigurationInterfaces.c" - } -#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 774 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 5359 "ConfigurationInterfaces.c" - } - goto __finally121; - __catch121_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 776 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 776 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = TRUE; -#line 778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 5380 "ConfigurationInterfaces.c" - } - __finally121: -#line 773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 5389 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_display_photo_ratings (ConfigurationFacade* self) -{ -#line 772 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 772 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_photo_ratings (self); -#line 5400 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_display_photo_ratings (ConfigurationFacade* self, - gboolean display) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 784 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 784 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 784 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS, display, &_inner_error_); -#line 784 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 784 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 784 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5424 "ConfigurationInterfaces.c" - goto __catch122_configuration_error; - } -#line 784 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 784 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 784 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 5433 "ConfigurationInterfaces.c" - } - } - goto __finally122; - __catch122_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 783 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 783 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 786 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 786 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 783 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 5451 "ConfigurationInterfaces.c" - } - __finally122: -#line 783 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 783 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 783 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 783 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 5462 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_display_photo_ratings (ConfigurationFacade* self, - gboolean display) -{ -#line 782 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 782 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_display_photo_ratings (self, display); -#line 5475 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_display_photo_tags (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS, &_inner_error_); -#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5502 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5506 "ConfigurationInterfaces.c" - goto __catch123_configuration_error; - } -#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 5515 "ConfigurationInterfaces.c" - } -#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 795 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 5521 "ConfigurationInterfaces.c" - } - goto __finally123; - __catch123_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 794 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 794 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 797 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 797 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = TRUE; -#line 799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 5542 "ConfigurationInterfaces.c" - } - __finally123: -#line 794 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 794 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 794 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 5551 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_display_photo_tags (ConfigurationFacade* self) -{ -#line 793 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 793 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_photo_tags (self); -#line 5562 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_display_photo_tags (ConfigurationFacade* self, - gboolean display) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 805 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 805 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 805 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS, display, &_inner_error_); -#line 805 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 805 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 805 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5586 "ConfigurationInterfaces.c" - goto __catch124_configuration_error; - } -#line 805 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 805 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 805 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 5595 "ConfigurationInterfaces.c" - } - } - goto __finally124; - __catch124_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 804 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 804 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 807 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 807 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 804 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 5613 "ConfigurationInterfaces.c" - } - __finally124: -#line 804 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 804 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 804 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 804 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 5624 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_display_photo_tags (ConfigurationFacade* self, - gboolean display) -{ -#line 803 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 803 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_display_photo_tags (self, display); -#line 5637 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_display_photo_titles (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES, &_inner_error_); -#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5664 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5668 "ConfigurationInterfaces.c" - goto __catch125_configuration_error; - } -#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 5677 "ConfigurationInterfaces.c" - } -#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 5683 "ConfigurationInterfaces.c" - } - goto __finally125; - __catch125_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 815 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 815 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 818 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 818 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 820 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = FALSE; -#line 820 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 820 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 5704 "ConfigurationInterfaces.c" - } - __finally125: -#line 815 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 815 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 815 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 5713 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_display_photo_titles (ConfigurationFacade* self) -{ -#line 814 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 814 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_photo_titles (self); -#line 5724 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_display_photo_titles (ConfigurationFacade* self, - gboolean display) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 826 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 826 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 826 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES, display, &_inner_error_); -#line 826 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 826 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 826 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5748 "ConfigurationInterfaces.c" - goto __catch126_configuration_error; - } -#line 826 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 826 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 826 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 5757 "ConfigurationInterfaces.c" - } - } - goto __finally126; - __catch126_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 825 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 825 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 828 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 828 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 825 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 5775 "ConfigurationInterfaces.c" - } - __finally126: -#line 825 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 825 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 825 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 825 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 5786 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_display_photo_titles (ConfigurationFacade* self, - gboolean display) -{ -#line 824 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 824 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_display_photo_titles (self, display); -#line 5799 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_display_photo_comments (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS, &_inner_error_); -#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5826 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5830 "ConfigurationInterfaces.c" - goto __catch127_configuration_error; - } -#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 5839 "ConfigurationInterfaces.c" - } -#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 5845 "ConfigurationInterfaces.c" - } - goto __finally127; - __catch127_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 839 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 839 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = FALSE; -#line 841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 5866 "ConfigurationInterfaces.c" - } - __finally127: -#line 836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 5875 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_display_photo_comments (ConfigurationFacade* self) -{ -#line 835 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 835 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_photo_comments (self); -#line 5886 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_display_photo_comments (ConfigurationFacade* self, - gboolean display) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 847 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 847 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 847 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS, display, &_inner_error_); -#line 847 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 847 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 847 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5910 "ConfigurationInterfaces.c" - goto __catch128_configuration_error; - } -#line 847 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 847 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 847 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 5919 "ConfigurationInterfaces.c" - } - } - goto __finally128; - __catch128_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 846 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 846 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 849 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 849 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 846 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 5937 "ConfigurationInterfaces.c" - } - __finally128: -#line 846 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 846 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 846 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 846 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 5948 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_display_photo_comments (ConfigurationFacade* self, - gboolean display) -{ -#line 845 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 845 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_display_photo_comments (self, display); -#line 5961 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_display_event_comments (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS, &_inner_error_); -#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5988 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5992 "ConfigurationInterfaces.c" - goto __catch129_configuration_error; - } -#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 6001 "ConfigurationInterfaces.c" - } -#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 6007 "ConfigurationInterfaces.c" - } - goto __finally129; - __catch129_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 860 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 860 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 862 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = FALSE; -#line 862 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 862 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 6028 "ConfigurationInterfaces.c" - } - __finally129: -#line 857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 6037 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_display_event_comments (ConfigurationFacade* self) -{ -#line 856 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 856 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_display_event_comments (self); -#line 6048 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_display_event_comments (ConfigurationFacade* self, - gboolean display) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS, display, &_inner_error_); -#line 868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 6072 "ConfigurationInterfaces.c" - goto __catch130_configuration_error; - } -#line 868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6081 "ConfigurationInterfaces.c" - } - } - goto __finally130; - __catch130_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 867 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 867 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 870 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 870 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 867 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 6099 "ConfigurationInterfaces.c" - } - __finally130: -#line 867 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 867 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 867 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 867 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6110 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_display_event_comments (ConfigurationFacade* self, - gboolean display) -{ -#line 866 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 866 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_display_event_comments (self, display); -#line 6123 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_get_event_photos_sort (ConfigurationFacade* self, - gboolean* sort_order, - gint* sort_by) -{ - gboolean _vala_sort_order = FALSE; - gint _vala_sort_by = 0; - GError * _inner_error_ = NULL; -#line 878 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _vala_sort_order = FALSE; -#line 879 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _vala_sort_by = 2; -#line 6139 "ConfigurationInterfaces.c" - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; - gint _tmp4_ = 0; - ConfigurationEngine* _tmp5_; - ConfigurationEngine* _tmp6_; - gint _tmp7_; -#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING, &_inner_error_); -#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 6163 "ConfigurationInterfaces.c" - goto __catch131_configuration_error; - } -#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6172 "ConfigurationInterfaces.c" - } -#line 881 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _vala_sort_order = _tmp0_; -#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = configuration_facade_get_engine (self); -#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = _tmp5_; -#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = configuration_engine_get_int_property (_tmp6_, CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY, &_inner_error_); -#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp6_); -#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = _tmp7_; -#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 6190 "ConfigurationInterfaces.c" - goto __catch131_configuration_error; - } -#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6199 "ConfigurationInterfaces.c" - } -#line 883 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _vala_sort_by = _tmp4_; -#line 6203 "ConfigurationInterfaces.c" - } - goto __finally131; - __catch131_configuration_error: - { - GError* err = NULL; - GError* _tmp8_; -#line 880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 885 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp8_ = err; -#line 885 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp8_); -#line 880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 6220 "ConfigurationInterfaces.c" - } - __finally131: -#line 880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6231 "ConfigurationInterfaces.c" - } -#line 877 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (sort_order) { -#line 877 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - *sort_order = _vala_sort_order; -#line 6237 "ConfigurationInterfaces.c" - } -#line 877 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (sort_by) { -#line 877 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - *sort_by = _vala_sort_by; -#line 6243 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_get_event_photos_sort (ConfigurationFacade* self, - gboolean* sort_order, - gint* sort_by) -{ -#line 877 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 877 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->get_event_photos_sort (self, sort_order, sort_by); -#line 6257 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_event_photos_sort (ConfigurationFacade* self, - gboolean sort_order, - gint sort_by) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - ConfigurationEngine* _tmp3_; -#line 891 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 891 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 891 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING, sort_order, &_inner_error_); -#line 891 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 891 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 891 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 6284 "ConfigurationInterfaces.c" - goto __catch132_configuration_error; - } -#line 891 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 891 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 891 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6293 "ConfigurationInterfaces.c" - } -#line 893 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = configuration_facade_get_engine (self); -#line 893 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = _tmp2_; -#line 893 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp3_, CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY, sort_by, &_inner_error_); -#line 893 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp3_); -#line 893 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 893 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 6307 "ConfigurationInterfaces.c" - goto __catch132_configuration_error; - } -#line 893 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 893 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 893 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6316 "ConfigurationInterfaces.c" - } - } - goto __finally132; - __catch132_configuration_error: - { - GError* err = NULL; - GError* _tmp4_; -#line 890 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 890 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 896 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = err; -#line 896 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp4_); -#line 890 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 6334 "ConfigurationInterfaces.c" - } - __finally132: -#line 890 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 890 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 890 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 890 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6345 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_event_photos_sort (ConfigurationFacade* self, - gboolean sort_order, - gint sort_by) -{ -#line 889 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 889 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_event_photos_sort (self, sort_order, sort_by); -#line 6359 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_events_sort_ascending (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING, &_inner_error_); -#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6386 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 6390 "ConfigurationInterfaces.c" - goto __catch133_configuration_error; - } -#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 6399 "ConfigurationInterfaces.c" - } -#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 905 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 6405 "ConfigurationInterfaces.c" - } - goto __finally133; - __catch133_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 904 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 904 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 907 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 907 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 909 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = FALSE; -#line 909 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 909 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 6426 "ConfigurationInterfaces.c" - } - __finally133: -#line 904 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 904 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 904 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 6435 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_events_sort_ascending (ConfigurationFacade* self) -{ -#line 903 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 903 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_events_sort_ascending (self); -#line 6446 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_events_sort_ascending (ConfigurationFacade* self, - gboolean sort) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 915 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 915 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 915 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING, sort, &_inner_error_); -#line 915 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 915 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 915 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 6470 "ConfigurationInterfaces.c" - goto __catch134_configuration_error; - } -#line 915 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 915 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 915 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6479 "ConfigurationInterfaces.c" - } - } - goto __finally134; - __catch134_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 914 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 914 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 917 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 917 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 918 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 918 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6499 "ConfigurationInterfaces.c" - } - __finally134: -#line 914 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 914 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 914 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 914 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6510 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_events_sort_ascending (ConfigurationFacade* self, - gboolean sort) -{ -#line 913 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 913 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_events_sort_ascending (self, sort); -#line 6523 "ConfigurationInterfaces.c" -} - - -static gchar* -configuration_facade_real_get_external_photo_app (ConfigurationFacade* self) -{ - gchar* result = NULL; - GError * _inner_error_ = NULL; - { - gchar* _tmp0_ = NULL; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP, &_inner_error_); -#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = _tmp3_; -#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp4_; -#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 6555 "ConfigurationInterfaces.c" - goto __catch135_configuration_error; - } -#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 6564 "ConfigurationInterfaces.c" - } -#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _tmp0_; -#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = NULL; -#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp5_; -#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp0_); -#line 927 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 6576 "ConfigurationInterfaces.c" - } - goto __finally135; - __catch135_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; - gchar* _tmp7_; -#line 926 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 926 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 929 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = err; -#line 929 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp6_); -#line 931 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = g_strdup (""); -#line 931 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp7_; -#line 931 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 931 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 6600 "ConfigurationInterfaces.c" - } - __finally135: -#line 926 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 926 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 926 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 6609 "ConfigurationInterfaces.c" -} - - -gchar* -configuration_facade_get_external_photo_app (ConfigurationFacade* self) -{ -#line 925 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL); -#line 925 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_external_photo_app (self); -#line 6620 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_external_photo_app (ConfigurationFacade* self, - const gchar* external_photo_app) -{ - GError * _inner_error_ = NULL; -#line 935 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (external_photo_app != NULL); -#line 6631 "ConfigurationInterfaces.c" - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 937 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 937 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 937 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP, external_photo_app, &_inner_error_); -#line 937 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 937 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 937 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 6647 "ConfigurationInterfaces.c" - goto __catch136_configuration_error; - } -#line 937 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 937 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 937 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6656 "ConfigurationInterfaces.c" - } - } - goto __finally136; - __catch136_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 936 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 936 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 940 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 940 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 941 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 941 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6676 "ConfigurationInterfaces.c" - } - __finally136: -#line 936 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 936 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 936 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 936 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6687 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_external_photo_app (ConfigurationFacade* self, - const gchar* external_photo_app) -{ -#line 935 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 935 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_external_photo_app (self, external_photo_app); -#line 6700 "ConfigurationInterfaces.c" -} - - -static gchar* -configuration_facade_real_get_external_raw_app (ConfigurationFacade* self) -{ - gchar* result = NULL; - GError * _inner_error_ = NULL; - { - gchar* _tmp0_ = NULL; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP, &_inner_error_); -#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = _tmp3_; -#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp4_; -#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 6732 "ConfigurationInterfaces.c" - goto __catch137_configuration_error; - } -#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 6741 "ConfigurationInterfaces.c" - } -#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _tmp0_; -#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = NULL; -#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp5_; -#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp0_); -#line 950 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 6753 "ConfigurationInterfaces.c" - } - goto __finally137; - __catch137_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; - gchar* _tmp7_; -#line 949 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 949 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 952 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = err; -#line 952 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp6_); -#line 954 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = g_strdup (""); -#line 954 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp7_; -#line 954 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 954 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 6777 "ConfigurationInterfaces.c" - } - __finally137: -#line 949 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 949 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 949 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 6786 "ConfigurationInterfaces.c" -} - - -gchar* -configuration_facade_get_external_raw_app (ConfigurationFacade* self) -{ -#line 948 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL); -#line 948 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_external_raw_app (self); -#line 6797 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_external_raw_app (ConfigurationFacade* self, - const gchar* external_raw_app) -{ - GError * _inner_error_ = NULL; -#line 958 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (external_raw_app != NULL); -#line 6808 "ConfigurationInterfaces.c" - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 960 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 960 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 960 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP, external_raw_app, &_inner_error_); -#line 960 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 960 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 960 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 6824 "ConfigurationInterfaces.c" - goto __catch138_configuration_error; - } -#line 960 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 960 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 960 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6833 "ConfigurationInterfaces.c" - } - } - goto __finally138; - __catch138_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 959 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 959 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 963 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 963 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 964 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 964 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6853 "ConfigurationInterfaces.c" - } - __finally138: -#line 959 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 959 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 959 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 959 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6864 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_external_raw_app (ConfigurationFacade* self, - const gchar* external_raw_app) -{ -#line 958 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 958 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_external_raw_app (self, external_raw_app); -#line 6877 "ConfigurationInterfaces.c" -} - - -static ScaleConstraint -configuration_facade_real_get_export_constraint (ConfigurationFacade* self) -{ - ScaleConstraint result = 0; - GError * _inner_error_ = NULL; - { - gint _tmp0_ = 0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gint _tmp3_; -#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_enum_property (_tmp2_, CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT, &_inner_error_); -#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 6905 "ConfigurationInterfaces.c" - goto __catch139_configuration_error; - } -#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return 0; -#line 6914 "ConfigurationInterfaces.c" - } -#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = (ScaleConstraint) _tmp0_; -#line 973 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 6920 "ConfigurationInterfaces.c" - } - goto __finally139; - __catch139_configuration_error: - { - GError* err = NULL; - GError* _tmp4_; -#line 972 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 972 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 975 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = err; -#line 975 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp4_); -#line 977 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 0; -#line 977 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 977 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 6941 "ConfigurationInterfaces.c" - } - __finally139: -#line 972 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 972 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 972 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return 0; -#line 6950 "ConfigurationInterfaces.c" -} - - -ScaleConstraint -configuration_facade_get_export_constraint (ConfigurationFacade* self) -{ -#line 971 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 971 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_export_constraint (self); -#line 6961 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_export_constraint (ConfigurationFacade* self, - ScaleConstraint constraint) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 983 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 983 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 983 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_enum_property (_tmp1_, CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT, (gint) constraint, &_inner_error_); -#line 983 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 983 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 983 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 6985 "ConfigurationInterfaces.c" - goto __catch140_configuration_error; - } -#line 983 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 983 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 983 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 6994 "ConfigurationInterfaces.c" - } - } - goto __finally140; - __catch140_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 982 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 982 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 985 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 985 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 986 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 986 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7014 "ConfigurationInterfaces.c" - } - __finally140: -#line 982 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 982 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 982 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 982 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7025 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_export_constraint (ConfigurationFacade* self, - ScaleConstraint constraint) -{ -#line 981 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 981 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_export_constraint (self, constraint); -#line 7038 "ConfigurationInterfaces.c" -} - - -static ExportFormatMode -configuration_facade_real_get_export_export_format_mode (ConfigurationFacade* self) -{ - ExportFormatMode result = 0; - GError * _inner_error_ = NULL; - { - gint _tmp0_ = 0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gint _tmp3_; -#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_enum_property (_tmp2_, CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE, &_inner_error_); -#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 7066 "ConfigurationInterfaces.c" - goto __catch141_configuration_error; - } -#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return 0; -#line 7075 "ConfigurationInterfaces.c" - } -#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = (ExportFormatMode) _tmp0_; -#line 992 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 7081 "ConfigurationInterfaces.c" - } - goto __finally141; - __catch141_configuration_error: - { - GError* err = NULL; - GError* _tmp4_; -#line 991 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 991 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 994 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = err; -#line 994 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp4_); -#line 996 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 0; -#line 996 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 996 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 7102 "ConfigurationInterfaces.c" - } - __finally141: -#line 991 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 991 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 991 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return 0; -#line 7111 "ConfigurationInterfaces.c" -} - - -ExportFormatMode -configuration_facade_get_export_export_format_mode (ConfigurationFacade* self) -{ -#line 990 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 990 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_export_export_format_mode (self); -#line 7122 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_export_export_format_mode (ConfigurationFacade* self, - ExportFormatMode export_format_mode) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1002 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1002 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1002 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_enum_property (_tmp1_, CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE, (gint) export_format_mode, &_inner_error_); -#line 1002 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1002 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1002 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 7146 "ConfigurationInterfaces.c" - goto __catch142_configuration_error; - } -#line 1002 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1002 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1002 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7155 "ConfigurationInterfaces.c" - } - } - goto __finally142; - __catch142_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1001 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1001 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1004 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1004 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1005 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1005 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7175 "ConfigurationInterfaces.c" - } - __finally142: -#line 1001 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1001 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1001 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1001 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7186 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_export_export_format_mode (ConfigurationFacade* self, - ExportFormatMode export_format_mode) -{ -#line 1000 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1000 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_export_export_format_mode (self, export_format_mode); -#line 7199 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_export_export_metadata (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA, &_inner_error_); -#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7226 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 7230 "ConfigurationInterfaces.c" - goto __catch143_configuration_error; - } -#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 7239 "ConfigurationInterfaces.c" - } -#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1011 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 7245 "ConfigurationInterfaces.c" - } - goto __finally143; - __catch143_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1010 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1010 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1013 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1013 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1015 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = FALSE; -#line 1015 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1015 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 7266 "ConfigurationInterfaces.c" - } - __finally143: -#line 1010 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1010 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1010 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 7275 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_export_export_metadata (ConfigurationFacade* self) -{ -#line 1009 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 1009 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_export_export_metadata (self); -#line 7286 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_export_export_metadata (ConfigurationFacade* self, - gboolean export_metadata) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1021 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1021 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1021 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA, export_metadata, &_inner_error_); -#line 1021 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1021 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1021 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 7310 "ConfigurationInterfaces.c" - goto __catch144_configuration_error; - } -#line 1021 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1021 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1021 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7319 "ConfigurationInterfaces.c" - } - } - goto __finally144; - __catch144_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1020 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1020 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1023 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1023 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1024 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1024 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7339 "ConfigurationInterfaces.c" - } - __finally144: -#line 1020 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1020 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1020 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1020 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7350 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_export_export_metadata (ConfigurationFacade* self, - gboolean export_metadata) -{ -#line 1019 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1019 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_export_export_metadata (self, export_metadata); -#line 7363 "ConfigurationInterfaces.c" -} - - -static PhotoFileFormat -configuration_facade_real_get_export_photo_file_format (ConfigurationFacade* self) -{ - PhotoFileFormat result = 0; - GError * _inner_error_ = NULL; - { - gint _tmp0_ = 0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gint _tmp3_; -#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_enum_property (_tmp2_, CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT, &_inner_error_); -#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 7391 "ConfigurationInterfaces.c" - goto __catch145_configuration_error; - } -#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return 0; -#line 7400 "ConfigurationInterfaces.c" - } -#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = photo_file_format_unserialize (_tmp0_); -#line 1030 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 7406 "ConfigurationInterfaces.c" - } - goto __finally145; - __catch145_configuration_error: - { - GError* err = NULL; - GError* _tmp4_; -#line 1029 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1029 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1032 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = err; -#line 1032 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp4_); -#line 1034 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 0; -#line 1034 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1034 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 7427 "ConfigurationInterfaces.c" - } - __finally145: -#line 1029 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1029 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1029 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return 0; -#line 7436 "ConfigurationInterfaces.c" -} - - -PhotoFileFormat -configuration_facade_get_export_photo_file_format (ConfigurationFacade* self) -{ -#line 1028 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 1028 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_export_photo_file_format (self); -#line 7447 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_export_photo_file_format (ConfigurationFacade* self, - PhotoFileFormat photo_file_format) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1040 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1040 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1040 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_enum_property (_tmp1_, CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT, photo_file_format_serialize (photo_file_format), &_inner_error_); -#line 1040 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1040 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1040 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 7471 "ConfigurationInterfaces.c" - goto __catch146_configuration_error; - } -#line 1040 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1040 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1040 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7480 "ConfigurationInterfaces.c" - } - } - goto __finally146; - __catch146_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1039 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1039 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1042 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1042 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1043 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1043 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7500 "ConfigurationInterfaces.c" - } - __finally146: -#line 1039 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1039 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1039 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1039 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7511 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_export_photo_file_format (ConfigurationFacade* self, - PhotoFileFormat photo_file_format) -{ -#line 1038 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1038 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_export_photo_file_format (self, photo_file_format); -#line 7524 "ConfigurationInterfaces.c" -} - - -static JpegQuality -configuration_facade_real_get_export_quality (ConfigurationFacade* self) -{ - JpegQuality result = 0; - GError * _inner_error_ = NULL; - { - gint _tmp0_ = 0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gint _tmp3_; -#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_enum_property (_tmp2_, CONFIGURABLE_PROPERTY_EXPORT_QUALITY, &_inner_error_); -#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 7552 "ConfigurationInterfaces.c" - goto __catch147_configuration_error; - } -#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return 0; -#line 7561 "ConfigurationInterfaces.c" - } -#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = (JpegQuality) _tmp0_; -#line 1049 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 7567 "ConfigurationInterfaces.c" - } - goto __finally147; - __catch147_configuration_error: - { - GError* err = NULL; - GError* _tmp4_; -#line 1048 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1048 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1051 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = err; -#line 1051 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp4_); -#line 1053 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 0; -#line 1053 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1053 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 7588 "ConfigurationInterfaces.c" - } - __finally147: -#line 1048 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1048 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1048 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return 0; -#line 7597 "ConfigurationInterfaces.c" -} - - -JpegQuality -configuration_facade_get_export_quality (ConfigurationFacade* self) -{ -#line 1047 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 1047 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_export_quality (self); -#line 7608 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_export_quality (ConfigurationFacade* self, - JpegQuality quality) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1059 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1059 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1059 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_enum_property (_tmp1_, CONFIGURABLE_PROPERTY_EXPORT_QUALITY, (gint) quality, &_inner_error_); -#line 1059 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1059 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1059 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 7632 "ConfigurationInterfaces.c" - goto __catch148_configuration_error; - } -#line 1059 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1059 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1059 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7641 "ConfigurationInterfaces.c" - } - } - goto __finally148; - __catch148_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1058 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1058 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1061 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1061 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1062 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1062 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7661 "ConfigurationInterfaces.c" - } - __finally148: -#line 1058 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1058 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1058 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1058 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7672 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_export_quality (ConfigurationFacade* self, - JpegQuality quality) -{ -#line 1057 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1057 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_export_quality (self, quality); -#line 7685 "ConfigurationInterfaces.c" -} - - -static gint -configuration_facade_real_get_export_scale (ConfigurationFacade* self) -{ - gint result = 0; - gint _tmp6_ = 0; - GError * _inner_error_ = NULL; - { - gint _tmp0_ = 0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gint _tmp3_; -#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_EXPORT_SCALE, &_inner_error_); -#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7712 "ConfigurationInterfaces.c" - gint _tmp4_ = 0; -#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 7716 "ConfigurationInterfaces.c" - goto __catch149_configuration_error; - } -#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 7725 "ConfigurationInterfaces.c" - } -#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1068 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 7731 "ConfigurationInterfaces.c" - } - goto __finally149; - __catch149_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1067 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1067 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1070 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1070 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1072 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 0; -#line 1072 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1072 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 7752 "ConfigurationInterfaces.c" - } - __finally149: -#line 1067 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1067 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1067 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 7761 "ConfigurationInterfaces.c" -} - - -gint -configuration_facade_get_export_scale (ConfigurationFacade* self) -{ -#line 1066 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 1066 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_export_scale (self); -#line 7772 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_export_scale (ConfigurationFacade* self, - gint scale) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1078 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1078 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1078 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_EXPORT_SCALE, scale, &_inner_error_); -#line 1078 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1078 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1078 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 7796 "ConfigurationInterfaces.c" - goto __catch150_configuration_error; - } -#line 1078 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1078 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1078 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7805 "ConfigurationInterfaces.c" - } - } - goto __finally150; - __catch150_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1077 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1077 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1080 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1080 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1081 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1081 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7825 "ConfigurationInterfaces.c" - } - __finally150: -#line 1077 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1077 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1077 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1077 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7836 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_export_scale (ConfigurationFacade* self, - gint scale) -{ -#line 1076 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1076 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_export_scale (self, scale); -#line 7849 "ConfigurationInterfaces.c" -} - - -static RawDeveloper -configuration_facade_real_get_default_raw_developer (ConfigurationFacade* self) -{ - RawDeveloper result = 0; - GError * _inner_error_ = NULL; - { - gchar* _tmp0_ = NULL; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT, &_inner_error_); -#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = _tmp3_; -#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp4_; -#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 7880 "ConfigurationInterfaces.c" - goto __catch151_configuration_error; - } -#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return 0; -#line 7889 "ConfigurationInterfaces.c" - } -#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = raw_developer_from_string (_tmp0_); -#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp0_); -#line 1090 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 7897 "ConfigurationInterfaces.c" - } - goto __finally151; - __catch151_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1089 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1089 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1093 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1093 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1095 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = RAW_DEVELOPER_CAMERA; -#line 1095 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1095 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 7918 "ConfigurationInterfaces.c" - } - __finally151: -#line 1089 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1089 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1089 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return 0; -#line 7927 "ConfigurationInterfaces.c" -} - - -RawDeveloper -configuration_facade_get_default_raw_developer (ConfigurationFacade* self) -{ -#line 1088 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 1088 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_default_raw_developer (self); -#line 7938 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_default_raw_developer (ConfigurationFacade* self, - RawDeveloper d) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = raw_developer_to_string (d); -#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = _tmp2_; -#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT, _tmp3_, &_inner_error_); -#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp3_); -#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 7970 "ConfigurationInterfaces.c" - goto __catch152_configuration_error; - } -#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1101 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7979 "ConfigurationInterfaces.c" - } - } - goto __finally152; - __catch152_configuration_error: - { - GError* err = NULL; - GError* _tmp4_; -#line 1100 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1100 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1104 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = err; -#line 1104 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp4_); -#line 1105 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1105 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 7999 "ConfigurationInterfaces.c" - } - __finally152: -#line 1100 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1100 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1100 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1100 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 8010 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_default_raw_developer (ConfigurationFacade* self, - RawDeveloper d) -{ -#line 1099 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1099 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_default_raw_developer (self, d); -#line 8023 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_hide_photos_already_imported (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED, &_inner_error_); -#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8050 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 8054 "ConfigurationInterfaces.c" - goto __catch153_configuration_error; - } -#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 8063 "ConfigurationInterfaces.c" - } -#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1114 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 8069 "ConfigurationInterfaces.c" - } - goto __finally153; - __catch153_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1113 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1113 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1116 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1116 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1118 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = TRUE; -#line 1118 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1118 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 8090 "ConfigurationInterfaces.c" - } - __finally153: -#line 1113 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1113 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1113 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 8099 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_hide_photos_already_imported (ConfigurationFacade* self) -{ -#line 1112 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 1112 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_hide_photos_already_imported (self); -#line 8110 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_hide_photos_already_imported (ConfigurationFacade* self, - gboolean hide_imported) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED, hide_imported, &_inner_error_); -#line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 8134 "ConfigurationInterfaces.c" - goto __catch154_configuration_error; - } -#line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1124 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 8143 "ConfigurationInterfaces.c" - } - } - goto __finally154; - __catch154_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1123 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1123 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1126 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1126 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1123 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 8161 "ConfigurationInterfaces.c" - } - __finally154: -#line 1123 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1123 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1123 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1123 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 8172 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_hide_photos_already_imported (ConfigurationFacade* self, - gboolean hide_imported) -{ -#line 1122 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1122 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_hide_photos_already_imported (self, hide_imported); -#line 8185 "ConfigurationInterfaces.c" -} - - -static gchar* -configuration_facade_real_get_import_dir (ConfigurationFacade* self) -{ - gchar* result = NULL; - GError * _inner_error_ = NULL; - { - gchar* _tmp0_ = NULL; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_IMPORT_DIR, &_inner_error_); -#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = _tmp3_; -#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp4_; -#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 8217 "ConfigurationInterfaces.c" - goto __catch155_configuration_error; - } -#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 8226 "ConfigurationInterfaces.c" - } -#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _tmp0_; -#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = NULL; -#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp5_; -#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp0_); -#line 1135 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 8238 "ConfigurationInterfaces.c" - } - goto __finally155; - __catch155_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; - gchar* _tmp7_; -#line 1134 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1134 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1137 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = err; -#line 1137 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp6_); -#line 1139 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = g_strdup (""); -#line 1139 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp7_; -#line 1139 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1139 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 8262 "ConfigurationInterfaces.c" - } - __finally155: -#line 1134 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1134 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1134 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 8271 "ConfigurationInterfaces.c" -} - - -gchar* -configuration_facade_get_import_dir (ConfigurationFacade* self) -{ -#line 1133 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL); -#line 1133 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_import_dir (self); -#line 8282 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_import_dir (ConfigurationFacade* self, - const gchar* import_dir) -{ - GError * _inner_error_ = NULL; -#line 1143 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (import_dir != NULL); -#line 8293 "ConfigurationInterfaces.c" - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1145 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1145 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1145 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_IMPORT_DIR, import_dir, &_inner_error_); -#line 1145 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1145 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1145 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 8309 "ConfigurationInterfaces.c" - goto __catch156_configuration_error; - } -#line 1145 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1145 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1145 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 8318 "ConfigurationInterfaces.c" - } - } - goto __finally156; - __catch156_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1144 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1144 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1147 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1147 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1144 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 8336 "ConfigurationInterfaces.c" - } - __finally156: -#line 1144 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1144 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1144 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1144 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 8347 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_import_dir (ConfigurationFacade* self, - const gchar* import_dir) -{ -#line 1143 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1143 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_import_dir (self, import_dir); -#line 8360 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_keep_relativity (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_KEEP_RELATIVITY, &_inner_error_); -#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8387 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 8391 "ConfigurationInterfaces.c" - goto __catch157_configuration_error; - } -#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 8400 "ConfigurationInterfaces.c" - } -#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1156 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 8406 "ConfigurationInterfaces.c" - } - goto __finally157; - __catch157_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1155 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1155 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1158 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1158 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1160 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = TRUE; -#line 1160 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1160 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 8427 "ConfigurationInterfaces.c" - } - __finally157: -#line 1155 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1155 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1155 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 8436 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_keep_relativity (ConfigurationFacade* self) -{ -#line 1154 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 1154 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_keep_relativity (self); -#line 8447 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_keep_relativity (ConfigurationFacade* self, - gboolean keep_relativity) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1166 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1166 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1166 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_KEEP_RELATIVITY, keep_relativity, &_inner_error_); -#line 1166 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1166 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1166 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 8471 "ConfigurationInterfaces.c" - goto __catch158_configuration_error; - } -#line 1166 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1166 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1166 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 8480 "ConfigurationInterfaces.c" - } - } - goto __finally158; - __catch158_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1165 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1165 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1168 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1168 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1165 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 8498 "ConfigurationInterfaces.c" - } - __finally158: -#line 1165 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1165 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1165 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1165 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 8509 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_keep_relativity (ConfigurationFacade* self, - gboolean keep_relativity) -{ -#line 1164 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1164 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_keep_relativity (self, keep_relativity); -#line 8522 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_pin_toolbar_state (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE, &_inner_error_); -#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8549 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 8553 "ConfigurationInterfaces.c" - goto __catch159_configuration_error; - } -#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 8562 "ConfigurationInterfaces.c" - } -#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1177 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 8568 "ConfigurationInterfaces.c" - } - goto __finally159; - __catch159_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1176 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1176 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1179 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1179 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1180 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = FALSE; -#line 1180 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1180 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 8589 "ConfigurationInterfaces.c" - } - __finally159: -#line 1176 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1176 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1176 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 8598 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_pin_toolbar_state (ConfigurationFacade* self) -{ -#line 1175 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 1175 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_pin_toolbar_state (self); -#line 8609 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_pin_toolbar_state (ConfigurationFacade* self, - gboolean state) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1186 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1186 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1186 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE, state, &_inner_error_); -#line 1186 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1186 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1186 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 8633 "ConfigurationInterfaces.c" - goto __catch160_configuration_error; - } -#line 1186 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1186 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1186 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 8642 "ConfigurationInterfaces.c" - } - } - goto __finally160; - __catch160_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1188 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1188 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 8660 "ConfigurationInterfaces.c" - } - __finally160: -#line 1185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1185 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 8671 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_pin_toolbar_state (ConfigurationFacade* self, - gboolean state) -{ -#line 1184 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1184 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_pin_toolbar_state (self, state); -#line 8684 "ConfigurationInterfaces.c" -} - - -static gint -configuration_facade_real_get_last_crop_height (ConfigurationFacade* self) -{ - gint result = 0; - gint _tmp6_ = 0; - GError * _inner_error_ = NULL; - { - gint _tmp0_ = 0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gint _tmp3_; -#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT, &_inner_error_); -#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8711 "ConfigurationInterfaces.c" - gint _tmp4_ = 0; -#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 8715 "ConfigurationInterfaces.c" - goto __catch161_configuration_error; - } -#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 8724 "ConfigurationInterfaces.c" - } -#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1197 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 8730 "ConfigurationInterfaces.c" - } - goto __finally161; - __catch161_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1196 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1196 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1199 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1199 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1200 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 1; -#line 1200 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1200 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 8751 "ConfigurationInterfaces.c" - } - __finally161: -#line 1196 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1196 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1196 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 8760 "ConfigurationInterfaces.c" -} - - -gint -configuration_facade_get_last_crop_height (ConfigurationFacade* self) -{ -#line 1195 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 1195 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_last_crop_height (self); -#line 8771 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_last_crop_height (ConfigurationFacade* self, - gint choice) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT, choice, &_inner_error_); -#line 1206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 8795 "ConfigurationInterfaces.c" - goto __catch162_configuration_error; - } -#line 1206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1206 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 8804 "ConfigurationInterfaces.c" - } - } - goto __finally162; - __catch162_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1205 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1205 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1208 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1208 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1205 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 8822 "ConfigurationInterfaces.c" - } - __finally162: -#line 1205 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1205 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1205 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1205 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 8833 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_last_crop_height (ConfigurationFacade* self, - gint choice) -{ -#line 1204 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1204 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_last_crop_height (self, choice); -#line 8846 "ConfigurationInterfaces.c" -} - - -static gint -configuration_facade_real_get_last_crop_menu_choice (ConfigurationFacade* self) -{ - gint result = 0; - gint _tmp6_ = 0; - GError * _inner_error_ = NULL; - { - gint _tmp0_ = 0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gint _tmp3_; -#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE, &_inner_error_); -#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8873 "ConfigurationInterfaces.c" - gint _tmp4_ = 0; -#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 8877 "ConfigurationInterfaces.c" - goto __catch163_configuration_error; - } -#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 8886 "ConfigurationInterfaces.c" - } -#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1217 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 8892 "ConfigurationInterfaces.c" - } - goto __finally163; - __catch163_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1216 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1216 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1219 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1219 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1224 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 0; -#line 1224 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1224 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 8913 "ConfigurationInterfaces.c" - } - __finally163: -#line 1216 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1216 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1216 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 8922 "ConfigurationInterfaces.c" -} - - -gint -configuration_facade_get_last_crop_menu_choice (ConfigurationFacade* self) -{ -#line 1215 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 1215 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_last_crop_menu_choice (self); -#line 8933 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_last_crop_menu_choice (ConfigurationFacade* self, - gint choice) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE, choice, &_inner_error_); -#line 1230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 8957 "ConfigurationInterfaces.c" - goto __catch164_configuration_error; - } -#line 1230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1230 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 8966 "ConfigurationInterfaces.c" - } - } - goto __finally164; - __catch164_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1229 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1229 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1232 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1232 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1229 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 8984 "ConfigurationInterfaces.c" - } - __finally164: -#line 1229 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1229 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1229 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1229 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 8995 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_last_crop_menu_choice (ConfigurationFacade* self, - gint choice) -{ -#line 1228 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1228 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_last_crop_menu_choice (self, choice); -#line 9008 "ConfigurationInterfaces.c" -} - - -static gint -configuration_facade_real_get_last_crop_width (ConfigurationFacade* self) -{ - gint result = 0; - gint _tmp6_ = 0; - GError * _inner_error_ = NULL; - { - gint _tmp0_ = 0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gint _tmp3_; -#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH, &_inner_error_); -#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9035 "ConfigurationInterfaces.c" - gint _tmp4_ = 0; -#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 9039 "ConfigurationInterfaces.c" - goto __catch165_configuration_error; - } -#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 9048 "ConfigurationInterfaces.c" - } -#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1241 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 9054 "ConfigurationInterfaces.c" - } - goto __finally165; - __catch165_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1240 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1240 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1243 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1243 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1244 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 1; -#line 1244 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1244 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 9075 "ConfigurationInterfaces.c" - } - __finally165: -#line 1240 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1240 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1240 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 9084 "ConfigurationInterfaces.c" -} - - -gint -configuration_facade_get_last_crop_width (ConfigurationFacade* self) -{ -#line 1239 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 1239 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_last_crop_width (self); -#line 9095 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_last_crop_width (ConfigurationFacade* self, - gint choice) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1250 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1250 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1250 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH, choice, &_inner_error_); -#line 1250 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1250 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1250 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 9119 "ConfigurationInterfaces.c" - goto __catch166_configuration_error; - } -#line 1250 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1250 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1250 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9128 "ConfigurationInterfaces.c" - } - } - goto __finally166; - __catch166_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1249 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1249 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1252 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1252 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1249 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 9146 "ConfigurationInterfaces.c" - } - __finally166: -#line 1249 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1249 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1249 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1249 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9157 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_last_crop_width (ConfigurationFacade* self, - gint choice) -{ -#line 1248 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1248 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_last_crop_width (self, choice); -#line 9170 "ConfigurationInterfaces.c" -} - - -static gchar* -configuration_facade_real_get_last_used_service (ConfigurationFacade* self) -{ - gchar* result = NULL; - GError * _inner_error_ = NULL; - { - gchar* _tmp0_ = NULL; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_LAST_USED_SERVICE, &_inner_error_); -#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = _tmp3_; -#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp4_; -#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 9202 "ConfigurationInterfaces.c" - goto __catch167_configuration_error; - } -#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 9211 "ConfigurationInterfaces.c" - } -#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _tmp0_; -#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = NULL; -#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp5_; -#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp0_); -#line 1261 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 9223 "ConfigurationInterfaces.c" - } - goto __finally167; - __catch167_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; - gchar* _tmp7_; -#line 1260 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1260 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1263 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = err; -#line 1263 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp6_); -#line 1268 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = g_strdup (""); -#line 1268 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp7_; -#line 1268 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1268 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 9247 "ConfigurationInterfaces.c" - } - __finally167: -#line 1260 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1260 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1260 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 9256 "ConfigurationInterfaces.c" -} - - -gchar* -configuration_facade_get_last_used_service (ConfigurationFacade* self) -{ -#line 1259 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL); -#line 1259 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_last_used_service (self); -#line 9267 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_last_used_service (ConfigurationFacade* self, - const gchar* service_name) -{ - GError * _inner_error_ = NULL; -#line 1272 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (service_name != NULL); -#line 9278 "ConfigurationInterfaces.c" - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1274 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1274 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1274 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_LAST_USED_SERVICE, service_name, &_inner_error_); -#line 1274 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1274 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1274 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 9294 "ConfigurationInterfaces.c" - goto __catch168_configuration_error; - } -#line 1274 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1274 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1274 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9303 "ConfigurationInterfaces.c" - } - } - goto __finally168; - __catch168_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1273 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1273 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1276 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1276 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1273 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 9321 "ConfigurationInterfaces.c" - } - __finally168: -#line 1273 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1273 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1273 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1273 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9332 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_last_used_service (ConfigurationFacade* self, - const gchar* service_name) -{ -#line 1272 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1272 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_last_used_service (self, service_name); -#line 9345 "ConfigurationInterfaces.c" -} - - -static gchar* -configuration_facade_real_get_last_used_dataimports_service (ConfigurationFacade* self) -{ - gchar* result = NULL; - GError * _inner_error_ = NULL; - { - gchar* _tmp0_ = NULL; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE, &_inner_error_); -#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = _tmp3_; -#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp4_; -#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 9377 "ConfigurationInterfaces.c" - goto __catch169_configuration_error; - } -#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 9386 "ConfigurationInterfaces.c" - } -#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _tmp0_; -#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = NULL; -#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp5_; -#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp0_); -#line 1285 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 9398 "ConfigurationInterfaces.c" - } - goto __finally169; - __catch169_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; - gchar* _tmp7_; -#line 1284 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1284 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1287 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = err; -#line 1287 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp6_); -#line 1292 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = g_strdup (""); -#line 1292 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp7_; -#line 1292 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1292 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 9422 "ConfigurationInterfaces.c" - } - __finally169: -#line 1284 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1284 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1284 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 9431 "ConfigurationInterfaces.c" -} - - -gchar* -configuration_facade_get_last_used_dataimports_service (ConfigurationFacade* self) -{ -#line 1283 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL); -#line 1283 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_last_used_dataimports_service (self); -#line 9442 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_last_used_dataimports_service (ConfigurationFacade* self, - const gchar* service_name) -{ - GError * _inner_error_ = NULL; -#line 1296 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (service_name != NULL); -#line 9453 "ConfigurationInterfaces.c" - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1298 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1298 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1298 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE, service_name, &_inner_error_); -#line 1298 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1298 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1298 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 9469 "ConfigurationInterfaces.c" - goto __catch170_configuration_error; - } -#line 1298 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1298 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1298 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9478 "ConfigurationInterfaces.c" - } - } - goto __finally170; - __catch170_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1297 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1297 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1300 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1300 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1297 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 9496 "ConfigurationInterfaces.c" - } - __finally170: -#line 1297 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1297 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1297 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1297 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9507 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_last_used_dataimports_service (ConfigurationFacade* self, - const gchar* service_name) -{ -#line 1296 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1296 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_last_used_dataimports_service (self, service_name); -#line 9520 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_get_library_photos_sort (ConfigurationFacade* self, - gboolean* sort_order, - gint* sort_by) -{ - gboolean _vala_sort_order = FALSE; - gint _vala_sort_by = 0; - GError * _inner_error_ = NULL; -#line 1308 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _vala_sort_order = FALSE; -#line 1309 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _vala_sort_by = 2; -#line 9536 "ConfigurationInterfaces.c" - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; - gint _tmp4_ = 0; - ConfigurationEngine* _tmp5_; - ConfigurationEngine* _tmp6_; - gint _tmp7_; -#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING, &_inner_error_); -#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 9560 "ConfigurationInterfaces.c" - goto __catch171_configuration_error; - } -#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9569 "ConfigurationInterfaces.c" - } -#line 1311 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _vala_sort_order = _tmp0_; -#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = configuration_facade_get_engine (self); -#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = _tmp5_; -#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = configuration_engine_get_int_property (_tmp6_, CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY, &_inner_error_); -#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp6_); -#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = _tmp7_; -#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 9587 "ConfigurationInterfaces.c" - goto __catch171_configuration_error; - } -#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9596 "ConfigurationInterfaces.c" - } -#line 1313 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _vala_sort_by = _tmp4_; -#line 9600 "ConfigurationInterfaces.c" - } - goto __finally171; - __catch171_configuration_error: - { - GError* err = NULL; - GError* _tmp8_; -#line 1310 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1310 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1315 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp8_ = err; -#line 1315 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp8_); -#line 1310 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 9617 "ConfigurationInterfaces.c" - } - __finally171: -#line 1310 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1310 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1310 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1310 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9628 "ConfigurationInterfaces.c" - } -#line 1307 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (sort_order) { -#line 1307 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - *sort_order = _vala_sort_order; -#line 9634 "ConfigurationInterfaces.c" - } -#line 1307 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (sort_by) { -#line 1307 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - *sort_by = _vala_sort_by; -#line 9640 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_get_library_photos_sort (ConfigurationFacade* self, - gboolean* sort_order, - gint* sort_by) -{ -#line 1307 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1307 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->get_library_photos_sort (self, sort_order, sort_by); -#line 9654 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_library_photos_sort (ConfigurationFacade* self, - gboolean sort_order, - gint sort_by) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - ConfigurationEngine* _tmp3_; -#line 1321 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1321 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1321 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING, sort_order, &_inner_error_); -#line 1321 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1321 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1321 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 9681 "ConfigurationInterfaces.c" - goto __catch172_configuration_error; - } -#line 1321 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1321 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1321 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9690 "ConfigurationInterfaces.c" - } -#line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = configuration_facade_get_engine (self); -#line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = _tmp2_; -#line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp3_, CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY, sort_by, &_inner_error_); -#line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp3_); -#line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 9704 "ConfigurationInterfaces.c" - goto __catch172_configuration_error; - } -#line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1323 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9713 "ConfigurationInterfaces.c" - } - } - goto __finally172; - __catch172_configuration_error: - { - GError* err = NULL; - GError* _tmp4_; -#line 1320 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1320 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1326 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = err; -#line 1326 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp4_); -#line 1320 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 9731 "ConfigurationInterfaces.c" - } - __finally172: -#line 1320 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1320 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1320 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1320 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9742 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_library_photos_sort (ConfigurationFacade* self, - gboolean sort_order, - gint sort_by) -{ -#line 1319 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1319 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_library_photos_sort (self, sort_order, sort_by); -#line 9756 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_get_library_window_state (ConfigurationFacade* self, - gboolean* maximize, - Dimensions* dimensions) -{ - gboolean _vala_maximize = FALSE; - Dimensions _vala_dimensions = {0}; - GError * _inner_error_ = NULL; -#line 1334 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _vala_maximize = FALSE; -#line 1335 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - dimensions_init (&_vala_dimensions, 1024, 768); -#line 9772 "ConfigurationInterfaces.c" - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; - gint w = 0; - ConfigurationEngine* _tmp4_; - ConfigurationEngine* _tmp5_; - gint _tmp6_; - gint h = 0; - ConfigurationEngine* _tmp7_; - ConfigurationEngine* _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; -#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE, &_inner_error_); -#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 9802 "ConfigurationInterfaces.c" - goto __catch173_configuration_error; - } -#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9811 "ConfigurationInterfaces.c" - } -#line 1337 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _vala_maximize = _tmp0_; -#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = configuration_facade_get_engine (self); -#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _tmp4_; -#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = configuration_engine_get_int_property (_tmp5_, CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH, &_inner_error_); -#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp5_); -#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - w = _tmp6_; -#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 9829 "ConfigurationInterfaces.c" - goto __catch173_configuration_error; - } -#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1338 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9838 "ConfigurationInterfaces.c" - } -#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = configuration_facade_get_engine (self); -#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp8_ = _tmp7_; -#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp9_ = configuration_engine_get_int_property (_tmp8_, CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT, &_inner_error_); -#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp8_); -#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - h = _tmp9_; -#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 9854 "ConfigurationInterfaces.c" - goto __catch173_configuration_error; - } -#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1339 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9863 "ConfigurationInterfaces.c" - } -#line 1340 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp10_ = w; -#line 1340 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp11_ = h; -#line 1340 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - dimensions_init (&_vala_dimensions, _tmp10_, _tmp11_); -#line 9871 "ConfigurationInterfaces.c" - } - goto __finally173; - __catch173_configuration_error: - { - GError* err = NULL; - GError* _tmp12_; -#line 1336 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1336 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1342 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp12_ = err; -#line 1342 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp12_); -#line 1336 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 9888 "ConfigurationInterfaces.c" - } - __finally173: -#line 1336 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1336 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1336 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1336 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9899 "ConfigurationInterfaces.c" - } -#line 1333 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (maximize) { -#line 1333 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - *maximize = _vala_maximize; -#line 9905 "ConfigurationInterfaces.c" - } -#line 1333 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (dimensions) { -#line 1333 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - *dimensions = _vala_dimensions; -#line 9911 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_get_library_window_state (ConfigurationFacade* self, - gboolean* maximize, - Dimensions* dimensions) -{ -#line 1333 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1333 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->get_library_window_state (self, maximize, dimensions); -#line 9925 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_library_window_state (ConfigurationFacade* self, - gboolean maximize, - Dimensions* dimensions) -{ - GError * _inner_error_ = NULL; -#line 1346 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (dimensions != NULL); -#line 9937 "ConfigurationInterfaces.c" - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - ConfigurationEngine* _tmp3_; - Dimensions _tmp4_; - gint _tmp5_; - ConfigurationEngine* _tmp6_; - ConfigurationEngine* _tmp7_; - Dimensions _tmp8_; - gint _tmp9_; -#line 1348 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1348 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1348 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE, maximize, &_inner_error_); -#line 1348 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1348 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1348 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 9961 "ConfigurationInterfaces.c" - goto __catch174_configuration_error; - } -#line 1348 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1348 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1348 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9970 "ConfigurationInterfaces.c" - } -#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = configuration_facade_get_engine (self); -#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = _tmp2_; -#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = *dimensions; -#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _tmp4_.width; -#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp3_, CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH, _tmp5_, &_inner_error_); -#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp3_); -#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 9988 "ConfigurationInterfaces.c" - goto __catch174_configuration_error; - } -#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1349 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 9997 "ConfigurationInterfaces.c" - } -#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = configuration_facade_get_engine (self); -#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = _tmp6_; -#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp8_ = *dimensions; -#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp9_ = _tmp8_.height; -#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp7_, CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT, _tmp9_, &_inner_error_); -#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp7_); -#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 10015 "ConfigurationInterfaces.c" - goto __catch174_configuration_error; - } -#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1351 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 10024 "ConfigurationInterfaces.c" - } - } - goto __finally174; - __catch174_configuration_error: - { - GError* err = NULL; - GError* _tmp10_; -#line 1347 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1347 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1354 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp10_ = err; -#line 1354 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp10_); -#line 1347 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 10042 "ConfigurationInterfaces.c" - } - __finally174: -#line 1347 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1347 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1347 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1347 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 10053 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_library_window_state (ConfigurationFacade* self, - gboolean maximize, - Dimensions* dimensions) -{ -#line 1346 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1346 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_library_window_state (self, maximize, dimensions); -#line 10067 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_modify_originals (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS, &_inner_error_); -#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 10094 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 10098 "ConfigurationInterfaces.c" - goto __catch175_configuration_error; - } -#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 10107 "ConfigurationInterfaces.c" - } -#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1363 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 10113 "ConfigurationInterfaces.c" - } - goto __finally175; - __catch175_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1362 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1362 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1365 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1365 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1368 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = FALSE; -#line 1368 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1368 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 10134 "ConfigurationInterfaces.c" - } - __finally175: -#line 1362 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1362 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1362 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 10143 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_modify_originals (ConfigurationFacade* self) -{ -#line 1361 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 1361 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_modify_originals (self); -#line 10154 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_modify_originals (ConfigurationFacade* self, - gboolean modify_originals) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS, modify_originals, &_inner_error_); -#line 1374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 10178 "ConfigurationInterfaces.c" - goto __catch176_configuration_error; - } -#line 1374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1374 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 10187 "ConfigurationInterfaces.c" - } - } - goto __finally176; - __catch176_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1373 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1373 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1376 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1376 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1373 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 10205 "ConfigurationInterfaces.c" - } - __finally176: -#line 1373 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1373 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1373 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1373 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 10216 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_modify_originals (ConfigurationFacade* self, - gboolean modify_originals) -{ -#line 1372 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1372 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_modify_originals (self, modify_originals); -#line 10229 "ConfigurationInterfaces.c" -} - - -static gint -configuration_facade_real_get_photo_thumbnail_scale (ConfigurationFacade* self) -{ - gint result = 0; - gint _tmp8_ = 0; - GError * _inner_error_ = NULL; - { - gint _tmp0_ = 0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gint _tmp3_; -#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE, &_inner_error_); -#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 10256 "ConfigurationInterfaces.c" - gint _tmp4_ = 0; -#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 10260 "ConfigurationInterfaces.c" - goto __catch177_configuration_error; - } -#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 10269 "ConfigurationInterfaces.c" - } -#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1385 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 10275 "ConfigurationInterfaces.c" - } - goto __finally177; - __catch177_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; - gint _tmp6_; - gint _tmp7_; -#line 1384 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1384 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1387 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1387 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1388 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = thumbnail_get_DEFAULT_SCALE (); -#line 1388 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = _tmp6_; -#line 1388 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp7_; -#line 1388 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1388 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 10302 "ConfigurationInterfaces.c" - } - __finally177: -#line 1384 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1384 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1384 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp8_; -#line 10311 "ConfigurationInterfaces.c" -} - - -gint -configuration_facade_get_photo_thumbnail_scale (ConfigurationFacade* self) -{ -#line 1383 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 1383 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_photo_thumbnail_scale (self); -#line 10322 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_photo_thumbnail_scale (ConfigurationFacade* self, - gint scale) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1394 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1394 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1394 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE, scale, &_inner_error_); -#line 1394 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1394 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1394 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 10346 "ConfigurationInterfaces.c" - goto __catch178_configuration_error; - } -#line 1394 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1394 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1394 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 10355 "ConfigurationInterfaces.c" - } - } - goto __finally178; - __catch178_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1393 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1393 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1396 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1396 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1393 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 10373 "ConfigurationInterfaces.c" - } - __finally178: -#line 1393 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1393 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1393 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1393 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 10384 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_photo_thumbnail_scale (ConfigurationFacade* self, - gint scale) -{ -#line 1392 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1392 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_photo_thumbnail_scale (self, scale); -#line 10397 "ConfigurationInterfaces.c" -} - - -static gdouble -configuration_facade_real_get_printing_content_height (ConfigurationFacade* self) -{ - gdouble result = 0.0; - gdouble _tmp6_ = 0.0; - GError * _inner_error_ = NULL; - { - gdouble _tmp0_ = 0.0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gdouble _tmp3_; -#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_double_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT, &_inner_error_); -#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 10424 "ConfigurationInterfaces.c" - gdouble _tmp4_ = 0.0; -#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 10428 "ConfigurationInterfaces.c" - goto __catch179_configuration_error; - } -#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 10437 "ConfigurationInterfaces.c" - } -#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1405 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 10443 "ConfigurationInterfaces.c" - } - goto __finally179; - __catch179_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1404 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1404 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1407 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1407 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1409 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 5.0; -#line 1409 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1409 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 10464 "ConfigurationInterfaces.c" - } - __finally179: -#line 1404 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1404 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1404 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 10473 "ConfigurationInterfaces.c" -} - - -gdouble -configuration_facade_get_printing_content_height (ConfigurationFacade* self) -{ -#line 1403 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0.0); -#line 1403 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_content_height (self); -#line 10484 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_printing_content_height (ConfigurationFacade* self, - gdouble content_height) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_double_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT, content_height, &_inner_error_); -#line 1415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 10508 "ConfigurationInterfaces.c" - goto __catch180_configuration_error; - } -#line 1415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1415 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 10517 "ConfigurationInterfaces.c" - } - } - goto __finally180; - __catch180_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1414 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1414 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1418 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1418 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1414 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 10535 "ConfigurationInterfaces.c" - } - __finally180: -#line 1414 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1414 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1414 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1414 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 10546 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_printing_content_height (ConfigurationFacade* self, - gdouble content_height) -{ -#line 1413 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1413 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_content_height (self, content_height); -#line 10559 "ConfigurationInterfaces.c" -} - - -static gint -configuration_facade_real_get_printing_content_layout (ConfigurationFacade* self) -{ - gint result = 0; - gint _tmp6_ = 0; - GError * _inner_error_ = NULL; - { - gint _tmp0_ = 0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gint _tmp3_; -#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT, &_inner_error_); -#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 10586 "ConfigurationInterfaces.c" - gint _tmp4_ = 0; -#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 10590 "ConfigurationInterfaces.c" - goto __catch181_configuration_error; - } -#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 10599 "ConfigurationInterfaces.c" - } -#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_ - 1; -#line 1427 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 10605 "ConfigurationInterfaces.c" - } - goto __finally181; - __catch181_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1426 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1426 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1429 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1429 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1431 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 0; -#line 1431 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1431 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 10626 "ConfigurationInterfaces.c" - } - __finally181: -#line 1426 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1426 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1426 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 10635 "ConfigurationInterfaces.c" -} - - -gint -configuration_facade_get_printing_content_layout (ConfigurationFacade* self) -{ -#line 1425 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 1425 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_content_layout (self); -#line 10646 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_printing_content_layout (ConfigurationFacade* self, - gint layout_code) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT, layout_code + 1, &_inner_error_); -#line 1437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 10670 "ConfigurationInterfaces.c" - goto __catch182_configuration_error; - } -#line 1437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1437 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 10679 "ConfigurationInterfaces.c" - } - } - goto __finally182; - __catch182_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1436 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1436 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1440 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1440 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1436 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 10697 "ConfigurationInterfaces.c" - } - __finally182: -#line 1436 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1436 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1436 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1436 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 10708 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_printing_content_layout (ConfigurationFacade* self, - gint layout_code) -{ -#line 1435 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1435 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_content_layout (self, layout_code); -#line 10721 "ConfigurationInterfaces.c" -} - - -static gint -configuration_facade_real_get_printing_content_ppi (ConfigurationFacade* self) -{ - gint result = 0; - gint _tmp6_ = 0; - GError * _inner_error_ = NULL; - { - gint _tmp0_ = 0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gint _tmp3_; -#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI, &_inner_error_); -#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 10748 "ConfigurationInterfaces.c" - gint _tmp4_ = 0; -#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 10752 "ConfigurationInterfaces.c" - goto __catch183_configuration_error; - } -#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 10761 "ConfigurationInterfaces.c" - } -#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1449 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 10767 "ConfigurationInterfaces.c" - } - goto __finally183; - __catch183_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1448 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1448 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1451 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1451 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1453 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 600; -#line 1453 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1453 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 10788 "ConfigurationInterfaces.c" - } - __finally183: -#line 1448 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1448 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1448 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 10797 "ConfigurationInterfaces.c" -} - - -gint -configuration_facade_get_printing_content_ppi (ConfigurationFacade* self) -{ -#line 1447 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 1447 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_content_ppi (self); -#line 10808 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_printing_content_ppi (ConfigurationFacade* self, - gint content_ppi) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI, content_ppi, &_inner_error_); -#line 1459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 10832 "ConfigurationInterfaces.c" - goto __catch184_configuration_error; - } -#line 1459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1459 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 10841 "ConfigurationInterfaces.c" - } - } - goto __finally184; - __catch184_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1458 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1458 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1461 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1461 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1458 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 10859 "ConfigurationInterfaces.c" - } - __finally184: -#line 1458 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1458 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1458 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1458 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 10870 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_printing_content_ppi (ConfigurationFacade* self, - gint content_ppi) -{ -#line 1457 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1457 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_content_ppi (self, content_ppi); -#line 10883 "ConfigurationInterfaces.c" -} - - -static gint -configuration_facade_real_get_printing_content_units (ConfigurationFacade* self) -{ - gint result = 0; - gint _tmp6_ = 0; - GError * _inner_error_ = NULL; - { - gint _tmp0_ = 0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gint _tmp3_; -#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS, &_inner_error_); -#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 10910 "ConfigurationInterfaces.c" - gint _tmp4_ = 0; -#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 10914 "ConfigurationInterfaces.c" - goto __catch185_configuration_error; - } -#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 10923 "ConfigurationInterfaces.c" - } -#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_ - 1; -#line 1470 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 10929 "ConfigurationInterfaces.c" - } - goto __finally185; - __catch185_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1469 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1469 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1472 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1472 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1474 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 0; -#line 1474 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1474 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 10950 "ConfigurationInterfaces.c" - } - __finally185: -#line 1469 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1469 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1469 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 10959 "ConfigurationInterfaces.c" -} - - -gint -configuration_facade_get_printing_content_units (ConfigurationFacade* self) -{ -#line 1468 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 1468 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_content_units (self); -#line 10970 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_printing_content_units (ConfigurationFacade* self, - gint units_code) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS, units_code + 1, &_inner_error_); -#line 1480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 10994 "ConfigurationInterfaces.c" - goto __catch186_configuration_error; - } -#line 1480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1480 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 11003 "ConfigurationInterfaces.c" - } - } - goto __finally186; - __catch186_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1479 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1479 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1483 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1483 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1479 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 11021 "ConfigurationInterfaces.c" - } - __finally186: -#line 1479 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1479 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1479 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1479 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 11032 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_printing_content_units (ConfigurationFacade* self, - gint units_code) -{ -#line 1478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1478 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_content_units (self, units_code); -#line 11045 "ConfigurationInterfaces.c" -} - - -static gdouble -configuration_facade_real_get_printing_content_width (ConfigurationFacade* self) -{ - gdouble result = 0.0; - gdouble _tmp6_ = 0.0; - GError * _inner_error_ = NULL; - { - gdouble _tmp0_ = 0.0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gdouble _tmp3_; -#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_double_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH, &_inner_error_); -#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 11072 "ConfigurationInterfaces.c" - gdouble _tmp4_ = 0.0; -#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 11076 "ConfigurationInterfaces.c" - goto __catch187_configuration_error; - } -#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 11085 "ConfigurationInterfaces.c" - } -#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1492 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 11091 "ConfigurationInterfaces.c" - } - goto __finally187; - __catch187_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1491 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1491 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1494 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1494 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1496 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 7.0; -#line 1496 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1496 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 11112 "ConfigurationInterfaces.c" - } - __finally187: -#line 1491 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1491 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1491 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 11121 "ConfigurationInterfaces.c" -} - - -gdouble -configuration_facade_get_printing_content_width (ConfigurationFacade* self) -{ -#line 1490 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0.0); -#line 1490 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_content_width (self); -#line 11132 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_printing_content_width (ConfigurationFacade* self, - gdouble content_width) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_double_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH, content_width, &_inner_error_); -#line 1502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 11156 "ConfigurationInterfaces.c" - goto __catch188_configuration_error; - } -#line 1502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1502 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 11165 "ConfigurationInterfaces.c" - } - } - goto __finally188; - __catch188_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1501 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1501 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1505 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1505 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1501 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 11183 "ConfigurationInterfaces.c" - } - __finally188: -#line 1501 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1501 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1501 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1501 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 11194 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_printing_content_width (ConfigurationFacade* self, - gdouble content_width) -{ -#line 1500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1500 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_content_width (self, content_width); -#line 11207 "ConfigurationInterfaces.c" -} - - -static gint -configuration_facade_real_get_printing_images_per_page (ConfigurationFacade* self) -{ - gint result = 0; - gint _tmp6_ = 0; - GError * _inner_error_ = NULL; - { - gint _tmp0_ = 0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gint _tmp3_; -#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE, &_inner_error_); -#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 11234 "ConfigurationInterfaces.c" - gint _tmp4_ = 0; -#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 11238 "ConfigurationInterfaces.c" - goto __catch189_configuration_error; - } -#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 11247 "ConfigurationInterfaces.c" - } -#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_ - 1; -#line 1514 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 11253 "ConfigurationInterfaces.c" - } - goto __finally189; - __catch189_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1513 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1513 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1516 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1516 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1518 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 0; -#line 1518 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1518 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 11274 "ConfigurationInterfaces.c" - } - __finally189: -#line 1513 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1513 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1513 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 11283 "ConfigurationInterfaces.c" -} - - -gint -configuration_facade_get_printing_images_per_page (ConfigurationFacade* self) -{ -#line 1512 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 1512 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_images_per_page (self); -#line 11294 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_printing_images_per_page (ConfigurationFacade* self, - gint images_per_page_code) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE, images_per_page_code + 1, &_inner_error_); -#line 1524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 11318 "ConfigurationInterfaces.c" - goto __catch190_configuration_error; - } -#line 1524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1524 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 11327 "ConfigurationInterfaces.c" - } - } - goto __finally190; - __catch190_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1523 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1523 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1527 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1527 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1523 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 11345 "ConfigurationInterfaces.c" - } - __finally190: -#line 1523 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1523 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1523 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1523 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 11356 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_printing_images_per_page (ConfigurationFacade* self, - gint images_per_page_code) -{ -#line 1522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1522 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_images_per_page (self, images_per_page_code); -#line 11369 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_printing_match_aspect_ratio (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO, &_inner_error_); -#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 11396 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 11400 "ConfigurationInterfaces.c" - goto __catch191_configuration_error; - } -#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 11409 "ConfigurationInterfaces.c" - } -#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1536 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 11415 "ConfigurationInterfaces.c" - } - goto __finally191; - __catch191_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1535 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1535 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1538 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1538 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1540 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = TRUE; -#line 1540 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1540 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 11436 "ConfigurationInterfaces.c" - } - __finally191: -#line 1535 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1535 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1535 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 11445 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_printing_match_aspect_ratio (ConfigurationFacade* self) -{ -#line 1534 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 1534 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_match_aspect_ratio (self); -#line 11456 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_printing_match_aspect_ratio (ConfigurationFacade* self, - gboolean match_aspect_ratio) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1546 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1546 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1546 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO, match_aspect_ratio, &_inner_error_); -#line 1546 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1546 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1546 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 11480 "ConfigurationInterfaces.c" - goto __catch192_configuration_error; - } -#line 1546 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1546 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1546 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 11489 "ConfigurationInterfaces.c" - } - } - goto __finally192; - __catch192_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1549 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1549 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 11507 "ConfigurationInterfaces.c" - } - __finally192: -#line 1545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1545 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 11518 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_printing_match_aspect_ratio (ConfigurationFacade* self, - gboolean match_aspect_ratio) -{ -#line 1544 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1544 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_match_aspect_ratio (self, match_aspect_ratio); -#line 11531 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_printing_print_titles (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES, &_inner_error_); -#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 11558 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 11562 "ConfigurationInterfaces.c" - goto __catch193_configuration_error; - } -#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 11571 "ConfigurationInterfaces.c" - } -#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1558 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 11577 "ConfigurationInterfaces.c" - } - goto __finally193; - __catch193_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1560 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1560 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1562 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = FALSE; -#line 1562 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1562 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 11598 "ConfigurationInterfaces.c" - } - __finally193: -#line 1557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1557 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 11607 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_printing_print_titles (ConfigurationFacade* self) -{ -#line 1556 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 1556 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_print_titles (self); -#line 11618 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_printing_print_titles (ConfigurationFacade* self, - gboolean print_titles) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES, print_titles, &_inner_error_); -#line 1568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 11642 "ConfigurationInterfaces.c" - goto __catch194_configuration_error; - } -#line 1568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1568 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 11651 "ConfigurationInterfaces.c" - } - } - goto __finally194; - __catch194_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1567 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1567 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1571 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1571 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1567 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 11669 "ConfigurationInterfaces.c" - } - __finally194: -#line 1567 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1567 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1567 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1567 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 11680 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_printing_print_titles (ConfigurationFacade* self, - gboolean print_titles) -{ -#line 1566 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1566 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_print_titles (self, print_titles); -#line 11693 "ConfigurationInterfaces.c" -} - - -static gint -configuration_facade_real_get_printing_size_selection (ConfigurationFacade* self) -{ - gint result = 0; - gint _tmp7_ = 0; - GError * _inner_error_ = NULL; - { - gint _tmp0_ = 0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gint _tmp3_; - gint val = 0; - gint _tmp5_; -#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION, &_inner_error_); -#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 11722 "ConfigurationInterfaces.c" - gint _tmp4_ = 0; -#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 11726 "ConfigurationInterfaces.c" - goto __catch195_configuration_error; - } -#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 11735 "ConfigurationInterfaces.c" - } -#line 1580 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - val = _tmp0_ - 1; -#line 1581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = val; -#line 1581 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_tmp5_ == -2) { -#line 1582 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (resources_get_default_measurement_unit () == RESOURCES_UNIT_SYSTEM_IMPERIAL) { -#line 1583 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - val = 2; -#line 11747 "ConfigurationInterfaces.c" - } else { -#line 1585 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - val = 10; -#line 11751 "ConfigurationInterfaces.c" - } - } -#line 1589 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = val; -#line 1589 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 11758 "ConfigurationInterfaces.c" - } - goto __finally195; - __catch195_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; -#line 1579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1591 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = err; -#line 1591 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp6_); -#line 1593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 0; -#line 1593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1593 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 11779 "ConfigurationInterfaces.c" - } - __finally195: -#line 1579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1579 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp7_; -#line 11788 "ConfigurationInterfaces.c" -} - - -gint -configuration_facade_get_printing_size_selection (ConfigurationFacade* self) -{ -#line 1578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 1578 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_size_selection (self); -#line 11799 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_printing_size_selection (ConfigurationFacade* self, - gint size_code) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1599 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1599 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1599 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION, size_code + 1, &_inner_error_); -#line 1599 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1599 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1599 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 11823 "ConfigurationInterfaces.c" - goto __catch196_configuration_error; - } -#line 1599 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1599 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1599 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 11832 "ConfigurationInterfaces.c" - } - } - goto __finally196; - __catch196_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1602 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1602 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 11850 "ConfigurationInterfaces.c" - } - __finally196: -#line 1598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1598 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 11861 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_printing_size_selection (ConfigurationFacade* self, - gint size_code) -{ -#line 1597 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1597 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_size_selection (self, size_code); -#line 11874 "ConfigurationInterfaces.c" -} - - -static gchar* -configuration_facade_real_get_printing_titles_font (ConfigurationFacade* self) -{ - gchar* result = NULL; - GError * _inner_error_ = NULL; - { - gchar* _tmp0_ = NULL; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT, &_inner_error_); -#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = _tmp3_; -#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp4_; -#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 11906 "ConfigurationInterfaces.c" - goto __catch197_configuration_error; - } -#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 11915 "ConfigurationInterfaces.c" - } -#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _tmp0_; -#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = NULL; -#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp5_; -#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp0_); -#line 1611 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 11927 "ConfigurationInterfaces.c" - } - goto __finally197; - __catch197_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; - gchar* _tmp7_; -#line 1610 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1610 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1613 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = err; -#line 1613 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp6_); -#line 1617 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = g_strdup ("Sans Bold 12"); -#line 1617 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp7_; -#line 1617 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1617 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 11951 "ConfigurationInterfaces.c" - } - __finally197: -#line 1610 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1610 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1610 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 11960 "ConfigurationInterfaces.c" -} - - -gchar* -configuration_facade_get_printing_titles_font (ConfigurationFacade* self) -{ -#line 1609 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL); -#line 1609 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_printing_titles_font (self); -#line 11971 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_printing_titles_font (ConfigurationFacade* self, - const gchar* font_name) -{ - GError * _inner_error_ = NULL; -#line 1621 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (font_name != NULL); -#line 11982 "ConfigurationInterfaces.c" - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1623 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1623 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1623 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT, font_name, &_inner_error_); -#line 1623 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1623 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1623 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 11998 "ConfigurationInterfaces.c" - goto __catch198_configuration_error; - } -#line 1623 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1623 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1623 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 12007 "ConfigurationInterfaces.c" - } - } - goto __finally198; - __catch198_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1625 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1625 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 12025 "ConfigurationInterfaces.c" - } - __finally198: -#line 1622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1622 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 12036 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_printing_titles_font (ConfigurationFacade* self, - const gchar* font_name) -{ -#line 1621 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1621 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_printing_titles_font (self, font_name); -#line 12049 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_show_welcome_dialog (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG, &_inner_error_); -#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12076 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 12080 "ConfigurationInterfaces.c" - goto __catch199_configuration_error; - } -#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 12089 "ConfigurationInterfaces.c" - } -#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1634 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 12095 "ConfigurationInterfaces.c" - } - goto __finally199; - __catch199_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1633 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1633 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1636 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1636 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1638 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = TRUE; -#line 1638 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1638 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 12116 "ConfigurationInterfaces.c" - } - __finally199: -#line 1633 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1633 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1633 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 12125 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_show_welcome_dialog (ConfigurationFacade* self) -{ -#line 1632 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 1632 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_show_welcome_dialog (self); -#line 12136 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_show_welcome_dialog (ConfigurationFacade* self, - gboolean show) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG, show, &_inner_error_); -#line 1644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 12160 "ConfigurationInterfaces.c" - goto __catch200_configuration_error; - } -#line 1644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1644 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 12169 "ConfigurationInterfaces.c" - } - } - goto __finally200; - __catch200_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1647 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1647 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 12187 "ConfigurationInterfaces.c" - } - __finally200: -#line 1643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1643 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 12198 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_show_welcome_dialog (ConfigurationFacade* self, - gboolean show) -{ -#line 1642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1642 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_show_welcome_dialog (self, show); -#line 12211 "ConfigurationInterfaces.c" -} - - -static gint -configuration_facade_real_get_sidebar_position (ConfigurationFacade* self) -{ - gint result = 0; - gint _tmp6_ = 0; - GError * _inner_error_ = NULL; - { - gint _tmp0_ = 0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gint _tmp3_; -#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_SIDEBAR_POSITION, &_inner_error_); -#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12238 "ConfigurationInterfaces.c" - gint _tmp4_ = 0; -#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 12242 "ConfigurationInterfaces.c" - goto __catch201_configuration_error; - } -#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 12251 "ConfigurationInterfaces.c" - } -#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1656 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 12257 "ConfigurationInterfaces.c" - } - goto __finally201; - __catch201_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1658 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1658 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1660 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 180; -#line 1660 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1660 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 12278 "ConfigurationInterfaces.c" - } - __finally201: -#line 1655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1655 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 12287 "ConfigurationInterfaces.c" -} - - -gint -configuration_facade_get_sidebar_position (ConfigurationFacade* self) -{ -#line 1654 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 1654 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_sidebar_position (self); -#line 12298 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_sidebar_position (ConfigurationFacade* self, - gint position) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_SIDEBAR_POSITION, position, &_inner_error_); -#line 1666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 12322 "ConfigurationInterfaces.c" - goto __catch202_configuration_error; - } -#line 1666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1666 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 12331 "ConfigurationInterfaces.c" - } - } - goto __finally202; - __catch202_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1665 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1665 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1668 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1668 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1665 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 12349 "ConfigurationInterfaces.c" - } - __finally202: -#line 1665 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1665 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1665 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1665 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 12360 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_sidebar_position (ConfigurationFacade* self, - gint position) -{ -#line 1664 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1664 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_sidebar_position (self, position); -#line 12373 "ConfigurationInterfaces.c" -} - - -static gdouble -configuration_facade_real_get_slideshow_delay (ConfigurationFacade* self) -{ - gdouble result = 0.0; - gdouble _tmp6_ = 0.0; - GError * _inner_error_ = NULL; - { - gdouble _tmp0_ = 0.0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gdouble _tmp3_; -#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_double_property (_tmp2_, CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY, &_inner_error_); -#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12400 "ConfigurationInterfaces.c" - gdouble _tmp4_ = 0.0; -#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 12404 "ConfigurationInterfaces.c" - goto __catch203_configuration_error; - } -#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 12413 "ConfigurationInterfaces.c" - } -#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1677 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 12419 "ConfigurationInterfaces.c" - } - goto __finally203; - __catch203_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1679 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1679 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1681 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 3.0; -#line 1681 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1681 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 12440 "ConfigurationInterfaces.c" - } - __finally203: -#line 1676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1676 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 12449 "ConfigurationInterfaces.c" -} - - -gdouble -configuration_facade_get_slideshow_delay (ConfigurationFacade* self) -{ -#line 1675 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0.0); -#line 1675 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_slideshow_delay (self); -#line 12460 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_slideshow_delay (ConfigurationFacade* self, - gdouble delay) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_double_property (_tmp1_, CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY, delay, &_inner_error_); -#line 1687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 12484 "ConfigurationInterfaces.c" - goto __catch204_configuration_error; - } -#line 1687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1687 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 12493 "ConfigurationInterfaces.c" - } - } - goto __finally204; - __catch204_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1686 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1686 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1689 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1689 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1686 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 12511 "ConfigurationInterfaces.c" - } - __finally204: -#line 1686 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1686 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1686 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1686 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 12522 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_slideshow_delay (ConfigurationFacade* self, - gdouble delay) -{ -#line 1685 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1685 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_slideshow_delay (self, delay); -#line 12535 "ConfigurationInterfaces.c" -} - - -static gdouble -configuration_facade_real_get_slideshow_transition_delay (ConfigurationFacade* self) -{ - gdouble result = 0.0; - gdouble _tmp6_ = 0.0; - GError * _inner_error_ = NULL; - { - gdouble _tmp0_ = 0.0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gdouble _tmp3_; -#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_double_property (_tmp2_, CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY, &_inner_error_); -#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12562 "ConfigurationInterfaces.c" - gdouble _tmp4_ = 0.0; -#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 12566 "ConfigurationInterfaces.c" - goto __catch205_configuration_error; - } -#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 12575 "ConfigurationInterfaces.c" - } -#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1698 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 12581 "ConfigurationInterfaces.c" - } - goto __finally205; - __catch205_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1701 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1701 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1703 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = 0.3; -#line 1703 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1703 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 12602 "ConfigurationInterfaces.c" - } - __finally205: -#line 1697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1697 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 12611 "ConfigurationInterfaces.c" -} - - -gdouble -configuration_facade_get_slideshow_transition_delay (ConfigurationFacade* self) -{ -#line 1696 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0.0); -#line 1696 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_slideshow_transition_delay (self); -#line 12622 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_slideshow_transition_delay (ConfigurationFacade* self, - gdouble delay) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_double_property (_tmp1_, CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY, delay, &_inner_error_); -#line 1709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 12646 "ConfigurationInterfaces.c" - goto __catch206_configuration_error; - } -#line 1709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1709 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 12655 "ConfigurationInterfaces.c" - } - } - goto __finally206; - __catch206_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1712 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1712 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 12673 "ConfigurationInterfaces.c" - } - __finally206: -#line 1708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1708 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 12684 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_slideshow_transition_delay (ConfigurationFacade* self, - gdouble delay) -{ -#line 1707 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1707 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_slideshow_transition_delay (self, delay); -#line 12697 "ConfigurationInterfaces.c" -} - - -static gchar* -configuration_facade_real_get_slideshow_transition_effect_id (ConfigurationFacade* self) -{ - gchar* result = NULL; - GError * _inner_error_ = NULL; - { - gchar* _tmp0_ = NULL; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_string_property (_tmp2_, CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID, &_inner_error_); -#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = _tmp3_; -#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp4_; -#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 12729 "ConfigurationInterfaces.c" - goto __catch207_configuration_error; - } -#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 12738 "ConfigurationInterfaces.c" - } -#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _tmp0_; -#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = NULL; -#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp5_; -#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp0_); -#line 1721 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 12750 "ConfigurationInterfaces.c" - } - goto __finally207; - __catch207_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; - gchar* _tmp7_; -#line 1720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1724 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = err; -#line 1724 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp6_); -#line 1728 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = g_strdup (TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID); -#line 1728 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp7_; -#line 1728 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1728 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 12774 "ConfigurationInterfaces.c" - } - __finally207: -#line 1720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1720 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return NULL; -#line 12783 "ConfigurationInterfaces.c" -} - - -gchar* -configuration_facade_get_slideshow_transition_effect_id (ConfigurationFacade* self) -{ -#line 1719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL); -#line 1719 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_slideshow_transition_effect_id (self); -#line 12794 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_slideshow_transition_effect_id (ConfigurationFacade* self, - const gchar* id) -{ - GError * _inner_error_ = NULL; -#line 1732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (id != NULL); -#line 12805 "ConfigurationInterfaces.c" - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_string_property (_tmp1_, CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID, id, &_inner_error_); -#line 1734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 12821 "ConfigurationInterfaces.c" - goto __catch208_configuration_error; - } -#line 1734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1734 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 12830 "ConfigurationInterfaces.c" - } - } - goto __finally208; - __catch208_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1733 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1733 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1737 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1737 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1733 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 12848 "ConfigurationInterfaces.c" - } - __finally208: -#line 1733 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1733 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1733 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1733 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 12859 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_slideshow_transition_effect_id (ConfigurationFacade* self, - const gchar* id) -{ -#line 1732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1732 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_slideshow_transition_effect_id (self, id); -#line 12872 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_slideshow_show_title (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE, &_inner_error_); -#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 12899 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 12903 "ConfigurationInterfaces.c" - goto __catch209_configuration_error; - } -#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 12912 "ConfigurationInterfaces.c" - } -#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1746 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 12918 "ConfigurationInterfaces.c" - } - goto __finally209; - __catch209_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1745 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1745 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1748 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1748 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1750 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = FALSE; -#line 1750 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1750 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 12939 "ConfigurationInterfaces.c" - } - __finally209: -#line 1745 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1745 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1745 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 12948 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_slideshow_show_title (ConfigurationFacade* self) -{ -#line 1744 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 1744 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_slideshow_show_title (self); -#line 12959 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_slideshow_show_title (ConfigurationFacade* self, - gboolean show_title) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1756 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1756 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1756 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE, show_title, &_inner_error_); -#line 1756 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1756 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1756 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 12983 "ConfigurationInterfaces.c" - goto __catch210_configuration_error; - } -#line 1756 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1756 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1756 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 12992 "ConfigurationInterfaces.c" - } - } - goto __finally210; - __catch210_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1755 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1755 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1758 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1758 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1755 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 13010 "ConfigurationInterfaces.c" - } - __finally210: -#line 1755 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1755 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1755 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1755 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 13021 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_slideshow_show_title (ConfigurationFacade* self, - gboolean show_title) -{ -#line 1754 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1754 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_slideshow_show_title (self, show_title); -#line 13034 "ConfigurationInterfaces.c" -} - - -static void -g_time_local (time_t time, - struct tm* result) -{ - struct tm _result_ = {0}; - struct tm _tmp0_ = {0}; -#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - localtime_r (&time, &_tmp0_); -#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result = _result_; -#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return; -#line 13052 "ConfigurationInterfaces.c" -} - - -static gchar* -g_time_format (struct tm *self, - const gchar* format) -{ - gchar* result = NULL; - gchar* buffer = NULL; - gchar* _tmp0_; - gint buffer_length1; - gint _buffer_size_; - gchar* _tmp1_; - gint _tmp1__length1; - gchar* _tmp2_; - gint _tmp2__length1; - gchar* _tmp3_; -#line 2874 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (format != NULL, NULL); -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_new0 (gchar, 64); -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer = _tmp0_; -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer_length1 = 64; -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _buffer_size_ = buffer_length1; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = buffer; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1__length1 = buffer_length1; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - strftime (_tmp1_, _tmp1__length1, format, &(*self)); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = buffer; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2__length1 = buffer_length1; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_strdup ((const gchar*) _tmp2_); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp3_; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer = (g_free (buffer), NULL); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 13098 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_use_24_hour_time (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp10_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME, &_inner_error_); -#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 13125 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 13129 "ConfigurationInterfaces.c" - goto __catch211_configuration_error; - } -#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 13138 "ConfigurationInterfaces.c" - } -#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1767 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 13144 "ConfigurationInterfaces.c" - } - goto __finally211; - __catch211_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; - struct tm _tmp6_ = {0}; - gchar* _tmp7_; - gchar* _tmp8_; - gboolean _tmp9_; -#line 1766 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1766 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1769 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1769 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_time_local ((time_t) 0, &_tmp6_); -#line 1773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = g_time_format (&_tmp6_, "%p"); -#line 1773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp8_ = _tmp7_; -#line 1773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp9_ = is_string_empty (_tmp8_); -#line 1773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_tmp8_); -#line 1773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp9_; -#line 1773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1773 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 13179 "ConfigurationInterfaces.c" - } - __finally211: -#line 1766 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1766 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1766 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp10_; -#line 13188 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_use_24_hour_time (ConfigurationFacade* self) -{ -#line 1765 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 1765 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_use_24_hour_time (self); -#line 13199 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_use_24_hour_time (ConfigurationFacade* self, - gboolean use_24_hour_time) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1779 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1779 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1779 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME, use_24_hour_time, &_inner_error_); -#line 1779 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1779 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1779 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 13223 "ConfigurationInterfaces.c" - goto __catch212_configuration_error; - } -#line 1779 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1779 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1779 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 13232 "ConfigurationInterfaces.c" - } - } - goto __finally212; - __catch212_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1781 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1781 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 13250 "ConfigurationInterfaces.c" - } - __finally212: -#line 1778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1778 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 13261 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_use_24_hour_time (ConfigurationFacade* self, - gboolean use_24_hour_time) -{ -#line 1777 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1777 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_use_24_hour_time (self, use_24_hour_time); -#line 13274 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_use_lowercase_filenames (ConfigurationFacade* self) -{ - gboolean result = FALSE; - gboolean _tmp6_ = FALSE; - GError * _inner_error_ = NULL; - { - gboolean _tmp0_ = FALSE; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gboolean _tmp3_; -#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_bool_property (_tmp2_, CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES, &_inner_error_); -#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 13301 "ConfigurationInterfaces.c" - gboolean _tmp4_ = FALSE; -#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 13305 "ConfigurationInterfaces.c" - goto __catch213_configuration_error; - } -#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 13314 "ConfigurationInterfaces.c" - } -#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1790 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 13320 "ConfigurationInterfaces.c" - } - goto __finally213; - __catch213_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1789 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1789 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1792 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1792 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1794 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = FALSE; -#line 1794 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1794 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 13341 "ConfigurationInterfaces.c" - } - __finally213: -#line 1789 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1789 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1789 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 13350 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_use_lowercase_filenames (ConfigurationFacade* self) -{ -#line 1788 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 1788 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_use_lowercase_filenames (self); -#line 13361 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_use_lowercase_filenames (ConfigurationFacade* self, - gboolean b) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1800 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1800 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1800 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_bool_property (_tmp1_, CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES, b, &_inner_error_); -#line 1800 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1800 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1800 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 13385 "ConfigurationInterfaces.c" - goto __catch214_configuration_error; - } -#line 1800 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1800 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1800 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 13394 "ConfigurationInterfaces.c" - } - } - goto __finally214; - __catch214_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1802 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1802 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 13412 "ConfigurationInterfaces.c" - } - __finally214: -#line 1799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1799 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 13423 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_use_lowercase_filenames (ConfigurationFacade* self, - gboolean b) -{ -#line 1798 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1798 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_use_lowercase_filenames (self, b); -#line 13436 "ConfigurationInterfaces.c" -} - - -static gint -configuration_facade_real_get_video_interpreter_state_cookie (ConfigurationFacade* self) -{ - gint result = 0; - gint _tmp6_ = 0; - GError * _inner_error_ = NULL; - { - gint _tmp0_ = 0; - ConfigurationEngine* _tmp1_; - ConfigurationEngine* _tmp2_; - gint _tmp3_; -#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = configuration_facade_get_engine (self); -#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = _tmp1_; -#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = configuration_engine_get_int_property (_tmp2_, CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE, &_inner_error_); -#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp2_); -#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = _tmp3_; -#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 13463 "ConfigurationInterfaces.c" - gint _tmp4_ = 0; -#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 13467 "ConfigurationInterfaces.c" - goto __catch215_configuration_error; - } -#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp4_; -#line 13476 "ConfigurationInterfaces.c" - } -#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp0_; -#line 1811 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 13482 "ConfigurationInterfaces.c" - } - goto __finally215; - __catch215_configuration_error: - { - GError* err = NULL; - GError* _tmp5_; -#line 1810 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1810 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1814 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = err; -#line 1814 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp5_); -#line 1816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = -1; -#line 1816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 1816 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 13503 "ConfigurationInterfaces.c" - } - __finally215: -#line 1810 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1810 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1810 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return _tmp6_; -#line 13512 "ConfigurationInterfaces.c" -} - - -gint -configuration_facade_get_video_interpreter_state_cookie (ConfigurationFacade* self) -{ -#line 1809 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 1809 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_video_interpreter_state_cookie (self); -#line 13523 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_video_interpreter_state_cookie (ConfigurationFacade* self, - gint state_cookie) -{ - GError * _inner_error_ = NULL; - { - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1822 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1822 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1822 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_int_property (_tmp1_, CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE, state_cookie, &_inner_error_); -#line 1822 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1822 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1822 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 13547 "ConfigurationInterfaces.c" - goto __catch216_configuration_error; - } -#line 1822 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1822 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1822 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 13556 "ConfigurationInterfaces.c" - } - } - goto __finally216; - __catch216_configuration_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 1821 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - err = _inner_error_; -#line 1821 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _inner_error_ = NULL; -#line 1825 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = err; -#line 1825 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_on_configuration_error (self, _tmp2_); -#line 1821 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_error_free0 (err); -#line 13574 "ConfigurationInterfaces.c" - } - __finally216: -#line 1821 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1821 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1821 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_clear_error (&_inner_error_); -#line 1821 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return; -#line 13585 "ConfigurationInterfaces.c" - } -} - - -void -configuration_facade_set_video_interpreter_state_cookie (ConfigurationFacade* self, - gint state_cookie) -{ -#line 1820 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1820 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_video_interpreter_state_cookie (self, state_cookie); -#line 13598 "ConfigurationInterfaces.c" -} - - -static gboolean -configuration_facade_real_get_plugin_bool (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean def) -{ - gboolean result = FALSE; - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; - gboolean _tmp2_; -#line 1832 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (domain != NULL, FALSE); -#line 1832 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (id != NULL, FALSE); -#line 1832 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (key != NULL, FALSE); -#line 1833 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1833 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1833 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = configuration_engine_get_plugin_bool (_tmp1_, domain, id, key, def); -#line 1833 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1833 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp2_; -#line 1833 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 13631 "ConfigurationInterfaces.c" -} - - -gboolean -configuration_facade_get_plugin_bool (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean def) -{ -#line 1832 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), FALSE); -#line 1832 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_plugin_bool (self, domain, id, key, def); -#line 13646 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_plugin_bool (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean val) -{ - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (domain != NULL); -#line 1836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (id != NULL); -#line 1836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (key != NULL); -#line 1837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_plugin_bool (_tmp1_, domain, id, key, val); -#line 1837 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 13673 "ConfigurationInterfaces.c" -} - - -void -configuration_facade_set_plugin_bool (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean val) -{ -#line 1836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1836 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_plugin_bool (self, domain, id, key, val); -#line 13688 "ConfigurationInterfaces.c" -} - - -static gdouble -configuration_facade_real_get_plugin_double (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble def) -{ - gdouble result = 0.0; - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; - gdouble _tmp2_; -#line 1840 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (domain != NULL, 0.0); -#line 1840 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (id != NULL, 0.0); -#line 1840 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (key != NULL, 0.0); -#line 1841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = configuration_engine_get_plugin_double (_tmp1_, domain, id, key, def); -#line 1841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp2_; -#line 1841 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 13721 "ConfigurationInterfaces.c" -} - - -gdouble -configuration_facade_get_plugin_double (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble def) -{ -#line 1840 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0.0); -#line 1840 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_plugin_double (self, domain, id, key, def); -#line 13736 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_plugin_double (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble val) -{ - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1844 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (domain != NULL); -#line 1844 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (id != NULL); -#line 1844 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (key != NULL); -#line 1845 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1845 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1845 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_plugin_double (_tmp1_, domain, id, key, val); -#line 1845 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 13763 "ConfigurationInterfaces.c" -} - - -void -configuration_facade_set_plugin_double (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble val) -{ -#line 1844 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1844 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_plugin_double (self, domain, id, key, val); -#line 13778 "ConfigurationInterfaces.c" -} - - -static gint -configuration_facade_real_get_plugin_int (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gint def) -{ - gint result = 0; - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; - gint _tmp2_; -#line 1848 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (domain != NULL, 0); -#line 1848 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (id != NULL, 0); -#line 1848 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (key != NULL, 0); -#line 1849 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1849 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1849 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = configuration_engine_get_plugin_int (_tmp1_, domain, id, key, def); -#line 1849 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1849 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp2_; -#line 1849 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 13811 "ConfigurationInterfaces.c" -} - - -gint -configuration_facade_get_plugin_int (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gint def) -{ -#line 1848 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 1848 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_plugin_int (self, domain, id, key, def); -#line 13826 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_plugin_int (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gint val) -{ - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1852 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (domain != NULL); -#line 1852 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (id != NULL); -#line 1852 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (key != NULL); -#line 1853 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1853 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1853 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_plugin_int (_tmp1_, domain, id, key, val); -#line 1853 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 13853 "ConfigurationInterfaces.c" -} - - -void -configuration_facade_set_plugin_int (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gint val) -{ -#line 1852 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1852 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_plugin_int (self, domain, id, key, val); -#line 13868 "ConfigurationInterfaces.c" -} - - -static gchar* -configuration_facade_real_get_plugin_string (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* def) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_ = NULL; - const gchar* _tmp5_; - gchar* _tmp7_; -#line 1856 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (domain != NULL, NULL); -#line 1856 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (id != NULL, NULL); -#line 1856 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (key != NULL, NULL); -#line 1857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = configuration_engine_get_plugin_string (_tmp1_, domain, id, key, def); -#line 1857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp3_ = _tmp2_; -#line 1857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1857 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _result_ = _tmp3_; -#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp5_ = _result_; -#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (g_strcmp0 (_tmp5_, "") == 0) { -#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = NULL; -#line 13912 "ConfigurationInterfaces.c" - } else { - const gchar* _tmp6_; -#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp6_ = _result_; -#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp4_ = _tmp6_; -#line 13919 "ConfigurationInterfaces.c" - } -#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp7_ = g_strdup (_tmp4_); -#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp7_; -#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_free0 (_result_); -#line 1858 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 13929 "ConfigurationInterfaces.c" -} - - -gchar* -configuration_facade_get_plugin_string (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* def) -{ -#line 1856 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), NULL); -#line 1856 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->get_plugin_string (self, domain, id, key, def); -#line 13944 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_plugin_string (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* val) -{ - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1861 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (domain != NULL); -#line 1861 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (id != NULL); -#line 1861 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (key != NULL); -#line 1862 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - if (val == NULL) { -#line 1863 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - val = ""; -#line 13967 "ConfigurationInterfaces.c" - } -#line 1865 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1865 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1865 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_plugin_string (_tmp1_, domain, id, key, val); -#line 1865 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 13977 "ConfigurationInterfaces.c" -} - - -void -configuration_facade_set_plugin_string (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* val) -{ -#line 1861 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1861 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_plugin_string (self, domain, id, key, val); -#line 13992 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_unset_plugin_key (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key) -{ - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (domain != NULL); -#line 1868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (id != NULL); -#line 1868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (key != NULL); -#line 1869 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1869 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1869 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_unset_plugin_key (_tmp1_, domain, id, key); -#line 1869 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 14018 "ConfigurationInterfaces.c" -} - - -void -configuration_facade_unset_plugin_key (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key) -{ -#line 1868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1868 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->unset_plugin_key (self, domain, id, key); -#line 14032 "ConfigurationInterfaces.c" -} - - -static FuzzyPropertyState -configuration_facade_real_is_plugin_enabled (ConfigurationFacade* self, - const gchar* id) -{ - FuzzyPropertyState result = 0; - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; - FuzzyPropertyState _tmp2_; -#line 1875 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (id != NULL, 0); -#line 1876 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1876 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1876 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp2_ = configuration_engine_is_plugin_enabled (_tmp1_, id); -#line 1876 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 1876 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - result = _tmp2_; -#line 1876 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return result; -#line 14058 "ConfigurationInterfaces.c" -} - - -FuzzyPropertyState -configuration_facade_is_plugin_enabled (ConfigurationFacade* self, - const gchar* id) -{ -#line 1875 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_val_if_fail (IS_CONFIGURATION_FACADE (self), 0); -#line 1875 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - return CONFIGURATION_FACADE_GET_CLASS (self)->is_plugin_enabled (self, id); -#line 14070 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_real_set_plugin_enabled (ConfigurationFacade* self, - const gchar* id, - gboolean enabled) -{ - ConfigurationEngine* _tmp0_; - ConfigurationEngine* _tmp1_; -#line 1879 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (id != NULL); -#line 1880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp0_ = configuration_facade_get_engine (self); -#line 1880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _tmp1_ = _tmp0_; -#line 1880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_engine_set_plugin_enabled (_tmp1_, id, enabled); -#line 1880 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (_tmp1_); -#line 14091 "ConfigurationInterfaces.c" -} - - -void -configuration_facade_set_plugin_enabled (ConfigurationFacade* self, - const gchar* id, - gboolean enabled) -{ -#line 1879 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_return_if_fail (IS_CONFIGURATION_FACADE (self)); -#line 1879 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - CONFIGURATION_FACADE_GET_CLASS (self)->set_plugin_enabled (self, id, enabled); -#line 14104 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_class_init (ConfigurationFacadeClass * klass) -{ -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_parent_class = g_type_class_peek_parent (klass); -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - g_type_class_add_private (klass, sizeof (ConfigurationFacadePrivate)); -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_auto_import_from_library = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_auto_import_from_library; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_auto_import_from_library = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_auto_import_from_library; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_bg_color_name = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_bg_color_name; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_bg_color_name = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_bg_color_name; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_transparent_background_type = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_transparent_background_type; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_transparent_background_type = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_transparent_background_type; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_transparent_background_color = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_transparent_background_color; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_transparent_background_color = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_transparent_background_color; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_commit_metadata_to_masters = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_commit_metadata_to_masters; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_commit_metadata_to_masters = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_commit_metadata_to_masters; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_desktop_background = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_desktop_background; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_desktop_background = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_desktop_background; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_screensaver = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_screensaver; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_screensaver = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_screensaver; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_directory_pattern = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_directory_pattern; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_directory_pattern = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_directory_pattern; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_directory_pattern_custom = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_directory_pattern_custom; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_directory_pattern_custom = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_directory_pattern_custom; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_direct_window_state = (void (*) (ConfigurationFacade *, gboolean*, Dimensions*)) configuration_facade_real_get_direct_window_state; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_direct_window_state = (void (*) (ConfigurationFacade *, gboolean, Dimensions*)) configuration_facade_real_set_direct_window_state; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_display_basic_properties = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_basic_properties; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_display_basic_properties = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_basic_properties; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_display_extended_properties = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_extended_properties; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_display_extended_properties = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_extended_properties; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_display_sidebar = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_sidebar; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_display_sidebar = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_sidebar; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_display_toolbar = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_toolbar; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_display_toolbar = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_toolbar; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_display_search_bar = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_search_bar; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_display_search_bar = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_search_bar; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_display_photo_ratings = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_photo_ratings; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_display_photo_ratings = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_photo_ratings; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_display_photo_tags = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_photo_tags; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_display_photo_tags = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_photo_tags; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_display_photo_titles = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_photo_titles; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_display_photo_titles = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_photo_titles; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_display_photo_comments = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_photo_comments; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_display_photo_comments = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_photo_comments; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_display_event_comments = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_display_event_comments; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_display_event_comments = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_display_event_comments; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_event_photos_sort = (void (*) (ConfigurationFacade *, gboolean*, gint*)) configuration_facade_real_get_event_photos_sort; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_event_photos_sort = (void (*) (ConfigurationFacade *, gboolean, gint)) configuration_facade_real_set_event_photos_sort; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_events_sort_ascending = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_events_sort_ascending; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_events_sort_ascending = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_events_sort_ascending; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_external_photo_app = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_external_photo_app; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_external_photo_app = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_external_photo_app; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_external_raw_app = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_external_raw_app; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_external_raw_app = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_external_raw_app; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_export_constraint = (ScaleConstraint (*) (ConfigurationFacade *)) configuration_facade_real_get_export_constraint; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_export_constraint = (void (*) (ConfigurationFacade *, ScaleConstraint)) configuration_facade_real_set_export_constraint; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_export_export_format_mode = (ExportFormatMode (*) (ConfigurationFacade *)) configuration_facade_real_get_export_export_format_mode; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_export_export_format_mode = (void (*) (ConfigurationFacade *, ExportFormatMode)) configuration_facade_real_set_export_export_format_mode; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_export_export_metadata = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_export_export_metadata; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_export_export_metadata = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_export_export_metadata; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_export_photo_file_format = (PhotoFileFormat (*) (ConfigurationFacade *)) configuration_facade_real_get_export_photo_file_format; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_export_photo_file_format = (void (*) (ConfigurationFacade *, PhotoFileFormat)) configuration_facade_real_set_export_photo_file_format; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_export_quality = (JpegQuality (*) (ConfigurationFacade *)) configuration_facade_real_get_export_quality; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_export_quality = (void (*) (ConfigurationFacade *, JpegQuality)) configuration_facade_real_set_export_quality; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_export_scale = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_export_scale; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_export_scale = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_export_scale; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_default_raw_developer = (RawDeveloper (*) (ConfigurationFacade *)) configuration_facade_real_get_default_raw_developer; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_default_raw_developer = (void (*) (ConfigurationFacade *, RawDeveloper)) configuration_facade_real_set_default_raw_developer; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_hide_photos_already_imported = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_hide_photos_already_imported; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_hide_photos_already_imported = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_hide_photos_already_imported; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_import_dir = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_import_dir; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_import_dir = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_import_dir; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_keep_relativity = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_keep_relativity; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_keep_relativity = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_keep_relativity; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_pin_toolbar_state = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_pin_toolbar_state; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_pin_toolbar_state = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_pin_toolbar_state; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_last_crop_height = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_last_crop_height; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_last_crop_height = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_last_crop_height; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_last_crop_menu_choice = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_last_crop_menu_choice; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_last_crop_menu_choice = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_last_crop_menu_choice; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_last_crop_width = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_last_crop_width; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_last_crop_width = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_last_crop_width; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_last_used_service = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_last_used_service; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_last_used_service = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_last_used_service; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_last_used_dataimports_service = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_last_used_dataimports_service; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_last_used_dataimports_service = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_last_used_dataimports_service; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_library_photos_sort = (void (*) (ConfigurationFacade *, gboolean*, gint*)) configuration_facade_real_get_library_photos_sort; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_library_photos_sort = (void (*) (ConfigurationFacade *, gboolean, gint)) configuration_facade_real_set_library_photos_sort; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_library_window_state = (void (*) (ConfigurationFacade *, gboolean*, Dimensions*)) configuration_facade_real_get_library_window_state; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_library_window_state = (void (*) (ConfigurationFacade *, gboolean, Dimensions*)) configuration_facade_real_set_library_window_state; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_modify_originals = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_modify_originals; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_modify_originals = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_modify_originals; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_photo_thumbnail_scale = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_photo_thumbnail_scale; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_photo_thumbnail_scale = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_photo_thumbnail_scale; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_printing_content_height = (gdouble (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_content_height; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_printing_content_height = (void (*) (ConfigurationFacade *, gdouble)) configuration_facade_real_set_printing_content_height; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_printing_content_layout = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_content_layout; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_printing_content_layout = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_printing_content_layout; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_printing_content_ppi = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_content_ppi; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_printing_content_ppi = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_printing_content_ppi; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_printing_content_units = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_content_units; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_printing_content_units = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_printing_content_units; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_printing_content_width = (gdouble (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_content_width; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_printing_content_width = (void (*) (ConfigurationFacade *, gdouble)) configuration_facade_real_set_printing_content_width; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_printing_images_per_page = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_images_per_page; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_printing_images_per_page = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_printing_images_per_page; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_printing_match_aspect_ratio = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_match_aspect_ratio; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_printing_match_aspect_ratio = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_printing_match_aspect_ratio; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_printing_print_titles = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_print_titles; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_printing_print_titles = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_printing_print_titles; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_printing_size_selection = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_size_selection; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_printing_size_selection = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_printing_size_selection; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_printing_titles_font = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_printing_titles_font; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_printing_titles_font = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_printing_titles_font; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_show_welcome_dialog = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_show_welcome_dialog; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_show_welcome_dialog = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_show_welcome_dialog; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_sidebar_position = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_sidebar_position; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_sidebar_position = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_sidebar_position; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_slideshow_delay = (gdouble (*) (ConfigurationFacade *)) configuration_facade_real_get_slideshow_delay; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_slideshow_delay = (void (*) (ConfigurationFacade *, gdouble)) configuration_facade_real_set_slideshow_delay; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_slideshow_transition_delay = (gdouble (*) (ConfigurationFacade *)) configuration_facade_real_get_slideshow_transition_delay; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_slideshow_transition_delay = (void (*) (ConfigurationFacade *, gdouble)) configuration_facade_real_set_slideshow_transition_delay; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_slideshow_transition_effect_id = (gchar* (*) (ConfigurationFacade *)) configuration_facade_real_get_slideshow_transition_effect_id; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_slideshow_transition_effect_id = (void (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_set_slideshow_transition_effect_id; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_slideshow_show_title = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_slideshow_show_title; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_slideshow_show_title = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_slideshow_show_title; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_use_24_hour_time = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_use_24_hour_time; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_use_24_hour_time = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_use_24_hour_time; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_use_lowercase_filenames = (gboolean (*) (ConfigurationFacade *)) configuration_facade_real_get_use_lowercase_filenames; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_use_lowercase_filenames = (void (*) (ConfigurationFacade *, gboolean)) configuration_facade_real_set_use_lowercase_filenames; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_video_interpreter_state_cookie = (gint (*) (ConfigurationFacade *)) configuration_facade_real_get_video_interpreter_state_cookie; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_video_interpreter_state_cookie = (void (*) (ConfigurationFacade *, gint)) configuration_facade_real_set_video_interpreter_state_cookie; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_plugin_bool = (gboolean (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*, gboolean)) configuration_facade_real_get_plugin_bool; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_plugin_bool = (void (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*, gboolean)) configuration_facade_real_set_plugin_bool; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_plugin_double = (gdouble (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*, gdouble)) configuration_facade_real_get_plugin_double; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_plugin_double = (void (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*, gdouble)) configuration_facade_real_set_plugin_double; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_plugin_int = (gint (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*, gint)) configuration_facade_real_get_plugin_int; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_plugin_int = (void (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*, gint)) configuration_facade_real_set_plugin_int; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->get_plugin_string = (gchar* (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*, const gchar*)) configuration_facade_real_get_plugin_string; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_plugin_string = (void (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*, const gchar*)) configuration_facade_real_set_plugin_string; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->unset_plugin_key = (void (*) (ConfigurationFacade *, const gchar*, const gchar*, const gchar*)) configuration_facade_real_unset_plugin_key; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->is_plugin_enabled = (FuzzyPropertyState (*) (ConfigurationFacade *, const gchar*)) configuration_facade_real_is_plugin_enabled; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - ((ConfigurationFacadeClass *) klass)->set_plugin_enabled = (void (*) (ConfigurationFacade *, const gchar*, gboolean)) configuration_facade_real_set_plugin_enabled; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - G_OBJECT_CLASS (klass)->finalize = configuration_facade_finalize; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_signals[CONFIGURATION_FACADE_AUTO_IMPORT_FROM_LIBRARY_CHANGED_SIGNAL] = g_signal_new ("auto-import-from-library-changed", TYPE_CONFIGURATION_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_signals[CONFIGURATION_FACADE_BG_COLOR_NAME_CHANGED_SIGNAL] = g_signal_new ("bg-color-name-changed", TYPE_CONFIGURATION_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_signals[CONFIGURATION_FACADE_TRANSPARENT_BACKGROUND_TYPE_CHANGED_SIGNAL] = g_signal_new ("transparent-background-type-changed", TYPE_CONFIGURATION_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_signals[CONFIGURATION_FACADE_TRANSPARENT_BACKGROUND_COLOR_CHANGED_SIGNAL] = g_signal_new ("transparent-background-color-changed", TYPE_CONFIGURATION_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_signals[CONFIGURATION_FACADE_COMMIT_METADATA_TO_MASTERS_CHANGED_SIGNAL] = g_signal_new ("commit-metadata-to-masters-changed", TYPE_CONFIGURATION_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_signals[CONFIGURATION_FACADE_EVENTS_SORT_ASCENDING_CHANGED_SIGNAL] = g_signal_new ("events-sort-ascending-changed", TYPE_CONFIGURATION_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_signals[CONFIGURATION_FACADE_EXTERNAL_APP_CHANGED_SIGNAL] = g_signal_new ("external-app-changed", TYPE_CONFIGURATION_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - configuration_facade_signals[CONFIGURATION_FACADE_IMPORT_DIRECTORY_CHANGED_SIGNAL] = g_signal_new ("import-directory-changed", TYPE_CONFIGURATION_FACADE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 14407 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_instance_init (ConfigurationFacade * self) -{ -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - self->priv = CONFIGURATION_FACADE_GET_PRIVATE (self); -#line 14416 "ConfigurationInterfaces.c" -} - - -static void -configuration_facade_finalize (GObject * obj) -{ - ConfigurationFacade * self; -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CONFIGURATION_FACADE, ConfigurationFacade); -#line 354 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - _g_object_unref0 (self->priv->engine); -#line 353 "/home/jens/Source/shotwell/src/config/ConfigurationInterfaces.vala" - G_OBJECT_CLASS (configuration_facade_parent_class)->finalize (obj); -#line 14430 "ConfigurationInterfaces.c" -} - - -GType -configuration_facade_get_type (void) -{ - static volatile gsize configuration_facade_type_id__volatile = 0; - if (g_once_init_enter (&configuration_facade_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ConfigurationFacadeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) configuration_facade_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ConfigurationFacade), 0, (GInstanceInitFunc) configuration_facade_instance_init, NULL }; - GType configuration_facade_type_id; - configuration_facade_type_id = g_type_register_static (G_TYPE_OBJECT, "ConfigurationFacade", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&configuration_facade_type_id__volatile, configuration_facade_type_id); - } - return configuration_facade_type_id__volatile; -} - - - diff --git a/src/config/ConfigurationInterfaces.vala b/src/config/ConfigurationInterfaces.vala index c785144..8af5a73 100644 --- a/src/config/ConfigurationInterfaces.vala +++ b/src/config/ConfigurationInterfaces.vala @@ -21,7 +21,7 @@ public enum FuzzyPropertyState { public enum ConfigurableProperty { AUTO_IMPORT_FROM_LIBRARY = 0, - BG_COLOR_NAME, + GTK_THEME_VARIANT, TRANSPARENT_BACKGROUND_TYPE, TRANSPARENT_BACKGROUND_COLOR, COMMIT_METADATA_TO_MASTERS, @@ -100,8 +100,8 @@ public enum ConfigurableProperty { case AUTO_IMPORT_FROM_LIBRARY: return "AUTO_IMPORT_FROM_LIBRARY"; - case BG_COLOR_NAME: - return "BG_COLOR_NAME"; + case GTK_THEME_VARIANT: + return "GTK_THEME_VARIANT"; case TRANSPARENT_BACKGROUND_TYPE: return "TRANSPARENT_BACKGROUND_TYPE"; @@ -376,7 +376,7 @@ public abstract class ConfigurationFacade : Object { auto_import_from_library_changed(); break; - case ConfigurableProperty.BG_COLOR_NAME: + case ConfigurableProperty.GTK_THEME_VARIANT: bg_color_name_changed(); break; @@ -449,21 +449,21 @@ public abstract class ConfigurationFacade : Object { } // - // bg color name + // GTK theme variant // - public virtual string get_bg_color_name() { + public virtual bool get_gtk_theme_variant() { try { - return get_engine().get_string_property(ConfigurableProperty.BG_COLOR_NAME); + return get_engine().get_bool_property(ConfigurableProperty.GTK_THEME_VARIANT); } catch (ConfigurationError err) { on_configuration_error(err); - return ""; + return true; } } - public virtual void set_bg_color_name(string color_name) { + public virtual void set_gtk_theme_variant(bool dark) { try { - get_engine().set_string_property(ConfigurableProperty.BG_COLOR_NAME, color_name); + get_engine().set_bool_property(ConfigurableProperty.GTK_THEME_VARIANT, dark); } catch (ConfigurationError err) { on_configuration_error(err); return; diff --git a/src/config/GSettingsEngine.c b/src/config/GSettingsEngine.c deleted file mode 100644 index 3ddaa71..0000000 --- a/src/config/GSettingsEngine.c +++ /dev/null @@ -1,5835 +0,0 @@ -/* GSettingsEngine.c generated by valac 0.40.4, the Vala compiler - * generated from GSettingsEngine.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_CONFIGURATION_ENGINE (configuration_engine_get_type ()) -#define CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_ENGINE, ConfigurationEngine)) -#define IS_CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_ENGINE)) -#define CONFIGURATION_ENGINE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONFIGURATION_ENGINE, ConfigurationEngineIface)) - -typedef struct _ConfigurationEngine ConfigurationEngine; -typedef struct _ConfigurationEngineIface ConfigurationEngineIface; - -#define TYPE_CONFIGURABLE_PROPERTY (configurable_property_get_type ()) - -#define TYPE_FUZZY_PROPERTY_STATE (fuzzy_property_state_get_type ()) - -#define TYPE_GSETTINGS_CONFIGURATION_ENGINE (gsettings_configuration_engine_get_type ()) -#define GSETTINGS_CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine)) -#define GSETTINGS_CONFIGURATION_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngineClass)) -#define IS_GSETTINGS_CONFIGURATION_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GSETTINGS_CONFIGURATION_ENGINE)) -#define IS_GSETTINGS_CONFIGURATION_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GSETTINGS_CONFIGURATION_ENGINE)) -#define GSETTINGS_CONFIGURATION_ENGINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngineClass)) - -typedef struct _GSettingsConfigurationEngine GSettingsConfigurationEngine; -typedef struct _GSettingsConfigurationEngineClass GSettingsConfigurationEngineClass; -typedef struct _GSettingsConfigurationEnginePrivate GSettingsConfigurationEnginePrivate; -enum { - GSETTINGS_CONFIGURATION_ENGINE_0_PROPERTY, - GSETTINGS_CONFIGURATION_ENGINE_NUM_PROPERTIES -}; -static GParamSpec* gsettings_configuration_engine_properties[GSETTINGS_CONFIGURATION_ENGINE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_settings_schema_unref0(var) ((var == NULL) ? NULL : (var = (g_settings_schema_unref (var), NULL))) -#define _g_settings_schema_source_unref0(var) ((var == NULL) ? NULL : (var = (g_settings_schema_source_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -typedef enum { - CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY = 0, - CONFIGURABLE_PROPERTY_BG_COLOR_NAME, - CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE, - CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR, - CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS, - CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE, - CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE, - CONFIGURABLE_PROPERTY_SCREENSAVER_FILE, - CONFIGURABLE_PROPERTY_SCREENSAVER_MODE, - CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN, - CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM, - CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT, - CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE, - CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH, - CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES, - CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS, - CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES, - CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR, - CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR, - CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR, - CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS, - CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS, - CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES, - CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS, - CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING, - CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY, - CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING, - CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT, - CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE, - CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA, - CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT, - CONFIGURABLE_PROPERTY_EXPORT_QUALITY, - CONFIGURABLE_PROPERTY_EXPORT_SCALE, - CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP, - CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP, - CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED, - CONFIGURABLE_PROPERTY_IMPORT_DIR, - CONFIGURABLE_PROPERTY_KEEP_RELATIVITY, - CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT, - CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE, - CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH, - CONFIGURABLE_PROPERTY_LAST_USED_SERVICE, - CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE, - CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING, - CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY, - CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT, - CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE, - CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH, - CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS, - CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE, - CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE, - CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT, - CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT, - CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI, - CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS, - CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH, - CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE, - CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO, - CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES, - CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION, - CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT, - CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT, - CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG, - CONFIGURABLE_PROPERTY_SIDEBAR_POSITION, - CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY, - CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY, - CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID, - CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE, - CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME, - CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES, - CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE, - CONFIGURABLE_PROPERTY_NUM_PROPERTIES -} ConfigurableProperty; - -typedef enum { - CONFIGURATION_ERROR_PROPERTY_HAS_NO_VALUE, - CONFIGURATION_ERROR_ENGINE_ERROR -} ConfigurationError; -#define CONFIGURATION_ERROR configuration_error_quark () -typedef enum { - FUZZY_PROPERTY_STATE_ENABLED, - FUZZY_PROPERTY_STATE_DISABLED, - FUZZY_PROPERTY_STATE_UNKNOWN -} FuzzyPropertyState; - -struct _ConfigurationEngineIface { - GTypeInterface parent_iface; - gchar* (*get_name) (ConfigurationEngine* self); - gint (*get_int_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error); - void (*set_int_property) (ConfigurationEngine* self, ConfigurableProperty p, gint val, GError** error); - gint (*get_enum_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error); - void (*set_enum_property) (ConfigurationEngine* self, ConfigurableProperty p, gint val, GError** error); - gchar* (*get_string_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error); - void (*set_string_property) (ConfigurationEngine* self, ConfigurableProperty p, const gchar* val, GError** error); - gboolean (*get_bool_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error); - void (*set_bool_property) (ConfigurationEngine* self, ConfigurableProperty p, gboolean val, GError** error); - gdouble (*get_double_property) (ConfigurationEngine* self, ConfigurableProperty p, GError** error); - void (*set_double_property) (ConfigurationEngine* self, ConfigurableProperty p, gdouble val, GError** error); - gboolean (*get_plugin_bool) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gboolean def); - void (*set_plugin_bool) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gboolean val); - gdouble (*get_plugin_double) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gdouble def); - void (*set_plugin_double) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gdouble val); - gint (*get_plugin_int) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gint def); - void (*set_plugin_int) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, gint val); - gchar* (*get_plugin_string) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* def); - void (*set_plugin_string) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key, const gchar* val); - void (*unset_plugin_key) (ConfigurationEngine* self, const gchar* domain, const gchar* id, const gchar* key); - FuzzyPropertyState (*is_plugin_enabled) (ConfigurationEngine* self, const gchar* id); - void (*set_plugin_enabled) (ConfigurationEngine* self, const gchar* id, gboolean enabled); -}; - -struct _GSettingsConfigurationEngine { - GObject parent_instance; - GSettingsConfigurationEnginePrivate * priv; -}; - -struct _GSettingsConfigurationEngineClass { - GObjectClass parent_class; -}; - -struct _GSettingsConfigurationEnginePrivate { - gchar** schema_names; - gint schema_names_length1; - gint _schema_names_size_; - gchar** key_names; - gint key_names_length1; - gint _key_names_size_; -}; - - -static gpointer gsettings_configuration_engine_parent_class = NULL; -static ConfigurationEngineIface * gsettings_configuration_engine_configuration_engine_parent_iface = NULL; - -GType configurable_property_get_type (void) G_GNUC_CONST; -GQuark configuration_error_quark (void); -GType fuzzy_property_state_get_type (void) G_GNUC_CONST; -GType configuration_engine_get_type (void) G_GNUC_CONST; -GType gsettings_configuration_engine_get_type (void) G_GNUC_CONST; -#define GSETTINGS_CONFIGURATION_ENGINE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEnginePrivate)) -#define GSETTINGS_CONFIGURATION_ENGINE_ROOT_SCHEMA_NAME "org.yorba.shotwell" -#define GSETTINGS_CONFIGURATION_ENGINE_PREFS_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_ROOT_SCHEMA_NAME ".preferences" -#define GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_PREFS_SCHEMA_NAME ".ui" -#define GSETTINGS_CONFIGURATION_ENGINE_SLIDESHOW_PREFS_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_PREFS_SCHEMA_NAME ".slideshow" -#define GSETTINGS_CONFIGURATION_ENGINE_WINDOW_PREFS_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_PREFS_SCHEMA_NAME ".window" -#define GSETTINGS_CONFIGURATION_ENGINE_FILES_PREFS_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_PREFS_SCHEMA_NAME ".files" -#define GSETTINGS_CONFIGURATION_ENGINE_EDITING_PREFS_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_PREFS_SCHEMA_NAME ".editing" -#define GSETTINGS_CONFIGURATION_ENGINE_EXPORT_PREFS_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_PREFS_SCHEMA_NAME ".export" -#define GSETTINGS_CONFIGURATION_ENGINE_VIDEO_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_ROOT_SCHEMA_NAME ".video" -#define GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_ROOT_SCHEMA_NAME ".printing" -#define GSETTINGS_CONFIGURATION_ENGINE_SHARING_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_ROOT_SCHEMA_NAME ".sharing" -#define GSETTINGS_CONFIGURATION_ENGINE_IMPORTING_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_ROOT_SCHEMA_NAME ".dataimports" -#define GSETTINGS_CONFIGURATION_ENGINE_CROP_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_ROOT_SCHEMA_NAME ".crop-settings" -#define GSETTINGS_CONFIGURATION_ENGINE_SYSTEM_DESKTOP_SCHEMA_NAME "org.gnome.desktop.background" -#define GSETTINGS_CONFIGURATION_ENGINE_SYSTEM_SCREENSAVER_SCHEMA_NAME "org.gnome.desktop.screensaver" -#define GSETTINGS_CONFIGURATION_ENGINE_PLUGINS_ENABLE_DISABLE_SCHEMA_NAME GSETTINGS_CONFIGURATION_ENGINE_ROOT_SCHEMA_NAME ".plugins.enable-state" -GSettingsConfigurationEngine* gsettings_configuration_engine_new (void); -GSettingsConfigurationEngine* gsettings_configuration_engine_construct (GType object_type); -static void gsettings_configuration_engine_check_key_valid (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - GError** error); -static gboolean gsettings_configuration_engine_get_gs_bool (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - GError** error); -static void gsettings_configuration_engine_set_gs_bool (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - gboolean value, - GError** error); -static void gsettings_configuration_engine_set_gs_enum (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - gint value, - GError** error); -static gint gsettings_configuration_engine_get_gs_enum (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - GError** error); -static gint gsettings_configuration_engine_get_gs_int (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - GError** error); -static void gsettings_configuration_engine_set_gs_int (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - gint value, - GError** error); -static gdouble gsettings_configuration_engine_get_gs_double (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - GError** error); -static void gsettings_configuration_engine_set_gs_double (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - gdouble value, - GError** error); -static gchar* gsettings_configuration_engine_get_gs_string (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - GError** error); -static void gsettings_configuration_engine_set_gs_string (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - const gchar* value, - GError** error); -static void gsettings_configuration_engine_reset_gs_to_default (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - GError** error); -static gchar* gsettings_configuration_engine_clean_plugin_id (const gchar* id); -gboolean is_string_empty (const gchar* s); -static gchar* gsettings_configuration_engine_get_plugin_enable_disable_name (const gchar* id); -static gchar* gsettings_configuration_engine_make_plugin_schema_name (const gchar* domain, - const gchar* id); -static gchar* gsettings_configuration_engine_make_gsettings_key (const gchar* gconf_key); -static gchar* gsettings_configuration_engine_real_get_name (ConfigurationEngine* base); -static gint gsettings_configuration_engine_real_get_enum_property (ConfigurationEngine* base, - ConfigurableProperty p, - GError** error); -static void gsettings_configuration_engine_real_set_enum_property (ConfigurationEngine* base, - ConfigurableProperty p, - gint val, - GError** error); -static gint gsettings_configuration_engine_real_get_int_property (ConfigurationEngine* base, - ConfigurableProperty p, - GError** error); -static void gsettings_configuration_engine_real_set_int_property (ConfigurationEngine* base, - ConfigurableProperty p, - gint val, - GError** error); -static gchar* gsettings_configuration_engine_real_get_string_property (ConfigurationEngine* base, - ConfigurableProperty p, - GError** error); -static void gsettings_configuration_engine_real_set_string_property (ConfigurationEngine* base, - ConfigurableProperty p, - const gchar* val, - GError** error); -static gboolean gsettings_configuration_engine_real_get_bool_property (ConfigurationEngine* base, - ConfigurableProperty p, - GError** error); -static void gsettings_configuration_engine_real_set_bool_property (ConfigurationEngine* base, - ConfigurableProperty p, - gboolean val, - GError** error); -static gdouble gsettings_configuration_engine_real_get_double_property (ConfigurationEngine* base, - ConfigurableProperty p, - GError** error); -static void gsettings_configuration_engine_real_set_double_property (ConfigurationEngine* base, - ConfigurableProperty p, - gdouble val, - GError** error); -static gboolean gsettings_configuration_engine_real_get_plugin_bool (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean def); -static void gsettings_configuration_engine_real_set_plugin_bool (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean val); -static gdouble gsettings_configuration_engine_real_get_plugin_double (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble def); -static void gsettings_configuration_engine_real_set_plugin_double (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble val); -static gint gsettings_configuration_engine_real_get_plugin_int (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key, - gint def); -static void gsettings_configuration_engine_real_set_plugin_int (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key, - gint val); -static gchar* gsettings_configuration_engine_real_get_plugin_string (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* def); -static void gsettings_configuration_engine_real_set_plugin_string (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* val); -static void gsettings_configuration_engine_real_unset_plugin_key (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key); -static FuzzyPropertyState gsettings_configuration_engine_real_is_plugin_enabled (ConfigurationEngine* base, - const gchar* id); -static void gsettings_configuration_engine_real_set_plugin_enabled (ConfigurationEngine* base, - const gchar* id, - gboolean enabled); -void gsettings_configuration_engine_run_gsettings_migrator (void); -GFile* app_dirs_get_settings_migrator_bin (void); -static void gsettings_configuration_engine_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -GSettingsConfigurationEngine* -gsettings_configuration_engine_construct (GType object_type) -{ - GSettingsConfigurationEngine * self = NULL; - gchar** _tmp0_; - gchar** _tmp1_; - gint _tmp1__length1; - gchar* _tmp2_; - gchar* _tmp3_; - gchar** _tmp4_; - gint _tmp4__length1; - gchar* _tmp5_; - gchar* _tmp6_; - gchar** _tmp7_; - gint _tmp7__length1; - gchar* _tmp8_; - gchar* _tmp9_; - gchar** _tmp10_; - gint _tmp10__length1; - gchar* _tmp11_; - gchar* _tmp12_; - gchar** _tmp13_; - gint _tmp13__length1; - gchar* _tmp14_; - gchar* _tmp15_; - gchar** _tmp16_; - gint _tmp16__length1; - gchar* _tmp17_; - gchar* _tmp18_; - gchar** _tmp19_; - gint _tmp19__length1; - gchar* _tmp20_; - gchar* _tmp21_; - gchar** _tmp22_; - gint _tmp22__length1; - gchar* _tmp23_; - gchar* _tmp24_; - gchar** _tmp25_; - gint _tmp25__length1; - gchar* _tmp26_; - gchar* _tmp27_; - gchar** _tmp28_; - gint _tmp28__length1; - gchar* _tmp29_; - gchar* _tmp30_; - gchar** _tmp31_; - gint _tmp31__length1; - gchar* _tmp32_; - gchar* _tmp33_; - gchar** _tmp34_; - gint _tmp34__length1; - gchar* _tmp35_; - gchar* _tmp36_; - gchar** _tmp37_; - gint _tmp37__length1; - gchar* _tmp38_; - gchar* _tmp39_; - gchar** _tmp40_; - gint _tmp40__length1; - gchar* _tmp41_; - gchar* _tmp42_; - gchar** _tmp43_; - gint _tmp43__length1; - gchar* _tmp44_; - gchar* _tmp45_; - gchar** _tmp46_; - gint _tmp46__length1; - gchar* _tmp47_; - gchar* _tmp48_; - gchar** _tmp49_; - gint _tmp49__length1; - gchar* _tmp50_; - gchar* _tmp51_; - gchar** _tmp52_; - gint _tmp52__length1; - gchar* _tmp53_; - gchar* _tmp54_; - gchar** _tmp55_; - gint _tmp55__length1; - gchar* _tmp56_; - gchar* _tmp57_; - gchar** _tmp58_; - gint _tmp58__length1; - gchar* _tmp59_; - gchar* _tmp60_; - gchar** _tmp61_; - gint _tmp61__length1; - gchar* _tmp62_; - gchar* _tmp63_; - gchar** _tmp64_; - gint _tmp64__length1; - gchar* _tmp65_; - gchar* _tmp66_; - gchar** _tmp67_; - gint _tmp67__length1; - gchar* _tmp68_; - gchar* _tmp69_; - gchar** _tmp70_; - gint _tmp70__length1; - gchar* _tmp71_; - gchar* _tmp72_; - gchar** _tmp73_; - gint _tmp73__length1; - gchar* _tmp74_; - gchar* _tmp75_; - gchar** _tmp76_; - gint _tmp76__length1; - gchar* _tmp77_; - gchar* _tmp78_; - gchar** _tmp79_; - gint _tmp79__length1; - gchar* _tmp80_; - gchar* _tmp81_; - gchar** _tmp82_; - gint _tmp82__length1; - gchar* _tmp83_; - gchar* _tmp84_; - gchar** _tmp85_; - gint _tmp85__length1; - gchar* _tmp86_; - gchar* _tmp87_; - gchar** _tmp88_; - gint _tmp88__length1; - gchar* _tmp89_; - gchar* _tmp90_; - gchar** _tmp91_; - gint _tmp91__length1; - gchar* _tmp92_; - gchar* _tmp93_; - gchar** _tmp94_; - gint _tmp94__length1; - gchar* _tmp95_; - gchar* _tmp96_; - gchar** _tmp97_; - gint _tmp97__length1; - gchar* _tmp98_; - gchar* _tmp99_; - gchar** _tmp100_; - gint _tmp100__length1; - gchar* _tmp101_; - gchar* _tmp102_; - gchar** _tmp103_; - gint _tmp103__length1; - gchar* _tmp104_; - gchar* _tmp105_; - gchar** _tmp106_; - gint _tmp106__length1; - gchar* _tmp107_; - gchar* _tmp108_; - gchar** _tmp109_; - gint _tmp109__length1; - gchar* _tmp110_; - gchar* _tmp111_; - gchar** _tmp112_; - gint _tmp112__length1; - gchar* _tmp113_; - gchar* _tmp114_; - gchar** _tmp115_; - gint _tmp115__length1; - gchar* _tmp116_; - gchar* _tmp117_; - gchar** _tmp118_; - gint _tmp118__length1; - gchar* _tmp119_; - gchar* _tmp120_; - gchar** _tmp121_; - gint _tmp121__length1; - gchar* _tmp122_; - gchar* _tmp123_; - gchar** _tmp124_; - gint _tmp124__length1; - gchar* _tmp125_; - gchar* _tmp126_; - gchar** _tmp127_; - gint _tmp127__length1; - gchar* _tmp128_; - gchar* _tmp129_; - gchar** _tmp130_; - gint _tmp130__length1; - gchar* _tmp131_; - gchar* _tmp132_; - gchar** _tmp133_; - gint _tmp133__length1; - gchar* _tmp134_; - gchar* _tmp135_; - gchar** _tmp136_; - gint _tmp136__length1; - gchar* _tmp137_; - gchar* _tmp138_; - gchar** _tmp139_; - gint _tmp139__length1; - gchar* _tmp140_; - gchar* _tmp141_; - gchar** _tmp142_; - gint _tmp142__length1; - gchar* _tmp143_; - gchar* _tmp144_; - gchar** _tmp145_; - gint _tmp145__length1; - gchar* _tmp146_; - gchar* _tmp147_; - gchar** _tmp148_; - gint _tmp148__length1; - gchar* _tmp149_; - gchar* _tmp150_; - gchar** _tmp151_; - gint _tmp151__length1; - gchar* _tmp152_; - gchar* _tmp153_; - gchar** _tmp154_; - gint _tmp154__length1; - gchar* _tmp155_; - gchar* _tmp156_; - gchar** _tmp157_; - gint _tmp157__length1; - gchar* _tmp158_; - gchar* _tmp159_; - gchar** _tmp160_; - gint _tmp160__length1; - gchar* _tmp161_; - gchar* _tmp162_; - gchar** _tmp163_; - gint _tmp163__length1; - gchar* _tmp164_; - gchar* _tmp165_; - gchar** _tmp166_; - gint _tmp166__length1; - gchar* _tmp167_; - gchar* _tmp168_; - gchar** _tmp169_; - gint _tmp169__length1; - gchar* _tmp170_; - gchar* _tmp171_; - gchar** _tmp172_; - gint _tmp172__length1; - gchar* _tmp173_; - gchar* _tmp174_; - gchar** _tmp175_; - gint _tmp175__length1; - gchar* _tmp176_; - gchar* _tmp177_; - gchar** _tmp178_; - gint _tmp178__length1; - gchar* _tmp179_; - gchar* _tmp180_; - gchar** _tmp181_; - gint _tmp181__length1; - gchar* _tmp182_; - gchar* _tmp183_; - gchar** _tmp184_; - gint _tmp184__length1; - gchar* _tmp185_; - gchar* _tmp186_; - gchar** _tmp187_; - gint _tmp187__length1; - gchar* _tmp188_; - gchar* _tmp189_; - gchar** _tmp190_; - gint _tmp190__length1; - gchar* _tmp191_; - gchar* _tmp192_; - gchar** _tmp193_; - gint _tmp193__length1; - gchar* _tmp194_; - gchar* _tmp195_; - gchar** _tmp196_; - gint _tmp196__length1; - gchar* _tmp197_; - gchar* _tmp198_; - gchar** _tmp199_; - gint _tmp199__length1; - gchar* _tmp200_; - gchar* _tmp201_; - gchar** _tmp202_; - gint _tmp202__length1; - gchar* _tmp203_; - gchar* _tmp204_; - gchar** _tmp205_; - gint _tmp205__length1; - gchar* _tmp206_; - gchar* _tmp207_; - gchar** _tmp208_; - gint _tmp208__length1; - gchar* _tmp209_; - gchar* _tmp210_; - gchar** _tmp211_; - gint _tmp211__length1; - gchar* _tmp212_; - gchar* _tmp213_; - gchar** _tmp214_; - gchar** _tmp215_; - gint _tmp215__length1; - gchar* _tmp216_; - gchar* _tmp217_; - gchar** _tmp218_; - gint _tmp218__length1; - gchar* _tmp219_; - gchar* _tmp220_; - gchar** _tmp221_; - gint _tmp221__length1; - gchar* _tmp222_; - gchar* _tmp223_; - gchar** _tmp224_; - gint _tmp224__length1; - gchar* _tmp225_; - gchar* _tmp226_; - gchar** _tmp227_; - gint _tmp227__length1; - gchar* _tmp228_; - gchar* _tmp229_; - gchar** _tmp230_; - gint _tmp230__length1; - gchar* _tmp231_; - gchar* _tmp232_; - gchar** _tmp233_; - gint _tmp233__length1; - gchar* _tmp234_; - gchar* _tmp235_; - gchar** _tmp236_; - gint _tmp236__length1; - gchar* _tmp237_; - gchar* _tmp238_; - gchar** _tmp239_; - gint _tmp239__length1; - gchar* _tmp240_; - gchar* _tmp241_; - gchar** _tmp242_; - gint _tmp242__length1; - gchar* _tmp243_; - gchar* _tmp244_; - gchar** _tmp245_; - gint _tmp245__length1; - gchar* _tmp246_; - gchar* _tmp247_; - gchar** _tmp248_; - gint _tmp248__length1; - gchar* _tmp249_; - gchar* _tmp250_; - gchar** _tmp251_; - gint _tmp251__length1; - gchar* _tmp252_; - gchar* _tmp253_; - gchar** _tmp254_; - gint _tmp254__length1; - gchar* _tmp255_; - gchar* _tmp256_; - gchar** _tmp257_; - gint _tmp257__length1; - gchar* _tmp258_; - gchar* _tmp259_; - gchar** _tmp260_; - gint _tmp260__length1; - gchar* _tmp261_; - gchar* _tmp262_; - gchar** _tmp263_; - gint _tmp263__length1; - gchar* _tmp264_; - gchar* _tmp265_; - gchar** _tmp266_; - gint _tmp266__length1; - gchar* _tmp267_; - gchar* _tmp268_; - gchar** _tmp269_; - gint _tmp269__length1; - gchar* _tmp270_; - gchar* _tmp271_; - gchar** _tmp272_; - gint _tmp272__length1; - gchar* _tmp273_; - gchar* _tmp274_; - gchar** _tmp275_; - gint _tmp275__length1; - gchar* _tmp276_; - gchar* _tmp277_; - gchar** _tmp278_; - gint _tmp278__length1; - gchar* _tmp279_; - gchar* _tmp280_; - gchar** _tmp281_; - gint _tmp281__length1; - gchar* _tmp282_; - gchar* _tmp283_; - gchar** _tmp284_; - gint _tmp284__length1; - gchar* _tmp285_; - gchar* _tmp286_; - gchar** _tmp287_; - gint _tmp287__length1; - gchar* _tmp288_; - gchar* _tmp289_; - gchar** _tmp290_; - gint _tmp290__length1; - gchar* _tmp291_; - gchar* _tmp292_; - gchar** _tmp293_; - gint _tmp293__length1; - gchar* _tmp294_; - gchar* _tmp295_; - gchar** _tmp296_; - gint _tmp296__length1; - gchar* _tmp297_; - gchar* _tmp298_; - gchar** _tmp299_; - gint _tmp299__length1; - gchar* _tmp300_; - gchar* _tmp301_; - gchar** _tmp302_; - gint _tmp302__length1; - gchar* _tmp303_; - gchar* _tmp304_; - gchar** _tmp305_; - gint _tmp305__length1; - gchar* _tmp306_; - gchar* _tmp307_; - gchar** _tmp308_; - gint _tmp308__length1; - gchar* _tmp309_; - gchar* _tmp310_; - gchar** _tmp311_; - gint _tmp311__length1; - gchar* _tmp312_; - gchar* _tmp313_; - gchar** _tmp314_; - gint _tmp314__length1; - gchar* _tmp315_; - gchar* _tmp316_; - gchar** _tmp317_; - gint _tmp317__length1; - gchar* _tmp318_; - gchar* _tmp319_; - gchar** _tmp320_; - gint _tmp320__length1; - gchar* _tmp321_; - gchar* _tmp322_; - gchar** _tmp323_; - gint _tmp323__length1; - gchar* _tmp324_; - gchar* _tmp325_; - gchar** _tmp326_; - gint _tmp326__length1; - gchar* _tmp327_; - gchar* _tmp328_; - gchar** _tmp329_; - gint _tmp329__length1; - gchar* _tmp330_; - gchar* _tmp331_; - gchar** _tmp332_; - gint _tmp332__length1; - gchar* _tmp333_; - gchar* _tmp334_; - gchar** _tmp335_; - gint _tmp335__length1; - gchar* _tmp336_; - gchar* _tmp337_; - gchar** _tmp338_; - gint _tmp338__length1; - gchar* _tmp339_; - gchar* _tmp340_; - gchar** _tmp341_; - gint _tmp341__length1; - gchar* _tmp342_; - gchar* _tmp343_; - gchar** _tmp344_; - gint _tmp344__length1; - gchar* _tmp345_; - gchar* _tmp346_; - gchar** _tmp347_; - gint _tmp347__length1; - gchar* _tmp348_; - gchar* _tmp349_; - gchar** _tmp350_; - gint _tmp350__length1; - gchar* _tmp351_; - gchar* _tmp352_; - gchar** _tmp353_; - gint _tmp353__length1; - gchar* _tmp354_; - gchar* _tmp355_; - gchar** _tmp356_; - gint _tmp356__length1; - gchar* _tmp357_; - gchar* _tmp358_; - gchar** _tmp359_; - gint _tmp359__length1; - gchar* _tmp360_; - gchar* _tmp361_; - gchar** _tmp362_; - gint _tmp362__length1; - gchar* _tmp363_; - gchar* _tmp364_; - gchar** _tmp365_; - gint _tmp365__length1; - gchar* _tmp366_; - gchar* _tmp367_; - gchar** _tmp368_; - gint _tmp368__length1; - gchar* _tmp369_; - gchar* _tmp370_; - gchar** _tmp371_; - gint _tmp371__length1; - gchar* _tmp372_; - gchar* _tmp373_; - gchar** _tmp374_; - gint _tmp374__length1; - gchar* _tmp375_; - gchar* _tmp376_; - gchar** _tmp377_; - gint _tmp377__length1; - gchar* _tmp378_; - gchar* _tmp379_; - gchar** _tmp380_; - gint _tmp380__length1; - gchar* _tmp381_; - gchar* _tmp382_; - gchar** _tmp383_; - gint _tmp383__length1; - gchar* _tmp384_; - gchar* _tmp385_; - gchar** _tmp386_; - gint _tmp386__length1; - gchar* _tmp387_; - gchar* _tmp388_; - gchar** _tmp389_; - gint _tmp389__length1; - gchar* _tmp390_; - gchar* _tmp391_; - gchar** _tmp392_; - gint _tmp392__length1; - gchar* _tmp393_; - gchar* _tmp394_; - gchar** _tmp395_; - gint _tmp395__length1; - gchar* _tmp396_; - gchar* _tmp397_; - gchar** _tmp398_; - gint _tmp398__length1; - gchar* _tmp399_; - gchar* _tmp400_; - gchar** _tmp401_; - gint _tmp401__length1; - gchar* _tmp402_; - gchar* _tmp403_; - gchar** _tmp404_; - gint _tmp404__length1; - gchar* _tmp405_; - gchar* _tmp406_; - gchar** _tmp407_; - gint _tmp407__length1; - gchar* _tmp408_; - gchar* _tmp409_; - gchar** _tmp410_; - gint _tmp410__length1; - gchar* _tmp411_; - gchar* _tmp412_; - gchar** _tmp413_; - gint _tmp413__length1; - gchar* _tmp414_; - gchar* _tmp415_; - gchar** _tmp416_; - gint _tmp416__length1; - gchar* _tmp417_; - gchar* _tmp418_; - gchar** _tmp419_; - gint _tmp419__length1; - gchar* _tmp420_; - gchar* _tmp421_; - gchar** _tmp422_; - gint _tmp422__length1; - gchar* _tmp423_; - gchar* _tmp424_; - gchar** _tmp425_; - gint _tmp425__length1; - gchar* _tmp426_; - gchar* _tmp427_; -#line 29 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = (GSettingsConfigurationEngine*) g_object_new (object_type, NULL); -#line 30 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = g_new0 (gchar*, CONFIGURABLE_PROPERTY_NUM_PROPERTIES + 1); -#line 30 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self->priv->schema_names = (_vala_array_free (self->priv->schema_names, self->priv->schema_names_length1, (GDestroyNotify) g_free), NULL); -#line 30 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self->priv->schema_names = _tmp0_; -#line 30 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self->priv->schema_names_length1 = CONFIGURABLE_PROPERTY_NUM_PROPERTIES; -#line 30 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self->priv->_schema_names_size_ = self->priv->schema_names_length1; -#line 32 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = self->priv->schema_names; -#line 32 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1__length1 = self->priv->schema_names_length1; -#line 32 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_FILES_PREFS_SCHEMA_NAME); -#line 32 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp1_[CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY]); -#line 32 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_[CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY] = _tmp2_; -#line 32 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = _tmp1_[CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY]; -#line 33 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = self->priv->schema_names; -#line 33 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4__length1 = self->priv->schema_names_length1; -#line 33 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp5_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 33 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp4_[CONFIGURABLE_PROPERTY_BG_COLOR_NAME]); -#line 33 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_[CONFIGURABLE_PROPERTY_BG_COLOR_NAME] = _tmp5_; -#line 33 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp6_ = _tmp4_[CONFIGURABLE_PROPERTY_BG_COLOR_NAME]; -#line 34 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp7_ = self->priv->schema_names; -#line 34 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp7__length1 = self->priv->schema_names_length1; -#line 34 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp8_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 34 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp7_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE]); -#line 34 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp7_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE] = _tmp8_; -#line 34 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp9_ = _tmp7_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE]; -#line 35 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp10_ = self->priv->schema_names; -#line 35 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp10__length1 = self->priv->schema_names_length1; -#line 35 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp11_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 35 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp10_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR]); -#line 35 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp10_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR] = _tmp11_; -#line 35 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp12_ = _tmp10_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR]; -#line 36 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp13_ = self->priv->schema_names; -#line 36 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp13__length1 = self->priv->schema_names_length1; -#line 36 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp14_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_FILES_PREFS_SCHEMA_NAME); -#line 36 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp13_[CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS]); -#line 36 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp13_[CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS] = _tmp14_; -#line 36 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp15_ = _tmp13_[CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS]; -#line 37 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp16_ = self->priv->schema_names; -#line 37 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp16__length1 = self->priv->schema_names_length1; -#line 37 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp17_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SYSTEM_DESKTOP_SCHEMA_NAME); -#line 37 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp16_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE]); -#line 37 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp16_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE] = _tmp17_; -#line 37 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp18_ = _tmp16_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE]; -#line 38 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp19_ = self->priv->schema_names; -#line 38 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp19__length1 = self->priv->schema_names_length1; -#line 38 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp20_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SYSTEM_DESKTOP_SCHEMA_NAME); -#line 38 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp19_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE]); -#line 38 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp19_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE] = _tmp20_; -#line 38 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp21_ = _tmp19_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE]; -#line 39 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp22_ = self->priv->schema_names; -#line 39 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp22__length1 = self->priv->schema_names_length1; -#line 39 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp23_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SYSTEM_SCREENSAVER_SCHEMA_NAME); -#line 39 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp22_[CONFIGURABLE_PROPERTY_SCREENSAVER_FILE]); -#line 39 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp22_[CONFIGURABLE_PROPERTY_SCREENSAVER_FILE] = _tmp23_; -#line 39 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp24_ = _tmp22_[CONFIGURABLE_PROPERTY_SCREENSAVER_FILE]; -#line 40 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp25_ = self->priv->schema_names; -#line 40 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp25__length1 = self->priv->schema_names_length1; -#line 40 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp26_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SYSTEM_SCREENSAVER_SCHEMA_NAME); -#line 40 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp25_[CONFIGURABLE_PROPERTY_SCREENSAVER_MODE]); -#line 40 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp25_[CONFIGURABLE_PROPERTY_SCREENSAVER_MODE] = _tmp26_; -#line 40 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp27_ = _tmp25_[CONFIGURABLE_PROPERTY_SCREENSAVER_MODE]; -#line 41 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp28_ = self->priv->schema_names; -#line 41 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp28__length1 = self->priv->schema_names_length1; -#line 41 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp29_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_FILES_PREFS_SCHEMA_NAME); -#line 41 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp28_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN]); -#line 41 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp28_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN] = _tmp29_; -#line 41 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp30_ = _tmp28_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN]; -#line 42 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp31_ = self->priv->schema_names; -#line 42 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp31__length1 = self->priv->schema_names_length1; -#line 42 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp32_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_FILES_PREFS_SCHEMA_NAME); -#line 42 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp31_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM]); -#line 42 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp31_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM] = _tmp32_; -#line 42 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp33_ = _tmp31_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM]; -#line 43 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp34_ = self->priv->schema_names; -#line 43 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp34__length1 = self->priv->schema_names_length1; -#line 43 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp35_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_WINDOW_PREFS_SCHEMA_NAME); -#line 43 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp34_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT]); -#line 43 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp34_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT] = _tmp35_; -#line 43 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp36_ = _tmp34_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT]; -#line 44 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp37_ = self->priv->schema_names; -#line 44 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp37__length1 = self->priv->schema_names_length1; -#line 44 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp38_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_WINDOW_PREFS_SCHEMA_NAME); -#line 44 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp37_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE]); -#line 44 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp37_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE] = _tmp38_; -#line 44 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp39_ = _tmp37_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE]; -#line 45 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp40_ = self->priv->schema_names; -#line 45 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp40__length1 = self->priv->schema_names_length1; -#line 45 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp41_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_WINDOW_PREFS_SCHEMA_NAME); -#line 45 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp40_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH]); -#line 45 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp40_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH] = _tmp41_; -#line 45 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp42_ = _tmp40_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH]; -#line 46 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp43_ = self->priv->schema_names; -#line 46 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp43__length1 = self->priv->schema_names_length1; -#line 46 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp44_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 46 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp43_[CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES]); -#line 46 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp43_[CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES] = _tmp44_; -#line 46 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp45_ = _tmp43_[CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES]; -#line 47 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp46_ = self->priv->schema_names; -#line 47 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp46__length1 = self->priv->schema_names_length1; -#line 47 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp47_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 47 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp46_[CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES]); -#line 47 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp46_[CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES] = _tmp47_; -#line 47 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp48_ = _tmp46_[CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES]; -#line 48 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp49_ = self->priv->schema_names; -#line 48 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp49__length1 = self->priv->schema_names_length1; -#line 48 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp50_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 48 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp49_[CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR]); -#line 48 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp49_[CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR] = _tmp50_; -#line 48 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp51_ = _tmp49_[CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR]; -#line 49 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp52_ = self->priv->schema_names; -#line 49 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp52__length1 = self->priv->schema_names_length1; -#line 49 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp53_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 49 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp52_[CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR]); -#line 49 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp52_[CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR] = _tmp53_; -#line 49 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp54_ = _tmp52_[CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR]; -#line 50 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp55_ = self->priv->schema_names; -#line 50 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp55__length1 = self->priv->schema_names_length1; -#line 50 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp56_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 50 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp55_[CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR]); -#line 50 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp55_[CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR] = _tmp56_; -#line 50 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp57_ = _tmp55_[CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR]; -#line 51 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp58_ = self->priv->schema_names; -#line 51 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp58__length1 = self->priv->schema_names_length1; -#line 51 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp59_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 51 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp58_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS]); -#line 51 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp58_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS] = _tmp59_; -#line 51 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp60_ = _tmp58_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS]; -#line 52 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp61_ = self->priv->schema_names; -#line 52 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp61__length1 = self->priv->schema_names_length1; -#line 52 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp62_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 52 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp61_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS]); -#line 52 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp61_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS] = _tmp62_; -#line 52 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp63_ = _tmp61_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS]; -#line 53 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp64_ = self->priv->schema_names; -#line 53 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp64__length1 = self->priv->schema_names_length1; -#line 53 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp65_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 53 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp64_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES]); -#line 53 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp64_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES] = _tmp65_; -#line 53 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp66_ = _tmp64_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES]; -#line 54 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp67_ = self->priv->schema_names; -#line 54 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp67__length1 = self->priv->schema_names_length1; -#line 54 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp68_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 54 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp67_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS]); -#line 54 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp67_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS] = _tmp68_; -#line 54 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp69_ = _tmp67_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS]; -#line 55 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp70_ = self->priv->schema_names; -#line 55 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp70__length1 = self->priv->schema_names_length1; -#line 55 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp71_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 55 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp70_[CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS]); -#line 55 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp70_[CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS] = _tmp71_; -#line 55 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp72_ = _tmp70_[CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS]; -#line 56 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp73_ = self->priv->schema_names; -#line 56 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp73__length1 = self->priv->schema_names_length1; -#line 56 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp74_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 56 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp73_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING]); -#line 56 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp73_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING] = _tmp74_; -#line 56 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp75_ = _tmp73_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING]; -#line 57 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp76_ = self->priv->schema_names; -#line 57 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp76__length1 = self->priv->schema_names_length1; -#line 57 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp77_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 57 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp76_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY]); -#line 57 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp76_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY] = _tmp77_; -#line 57 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp78_ = _tmp76_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY]; -#line 58 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp79_ = self->priv->schema_names; -#line 58 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp79__length1 = self->priv->schema_names_length1; -#line 58 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp80_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 58 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp79_[CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING]); -#line 58 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp79_[CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING] = _tmp80_; -#line 58 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp81_ = _tmp79_[CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING]; -#line 59 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp82_ = self->priv->schema_names; -#line 59 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp82__length1 = self->priv->schema_names_length1; -#line 59 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp83_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_EXPORT_PREFS_SCHEMA_NAME); -#line 59 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp82_[CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT]); -#line 59 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp82_[CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT] = _tmp83_; -#line 59 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp84_ = _tmp82_[CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT]; -#line 60 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp85_ = self->priv->schema_names; -#line 60 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp85__length1 = self->priv->schema_names_length1; -#line 60 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp86_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_EXPORT_PREFS_SCHEMA_NAME); -#line 60 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp85_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE]); -#line 60 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp85_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE] = _tmp86_; -#line 60 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp87_ = _tmp85_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE]; -#line 61 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp88_ = self->priv->schema_names; -#line 61 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp88__length1 = self->priv->schema_names_length1; -#line 61 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp89_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_EXPORT_PREFS_SCHEMA_NAME); -#line 61 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp88_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA]); -#line 61 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp88_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA] = _tmp89_; -#line 61 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp90_ = _tmp88_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA]; -#line 62 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp91_ = self->priv->schema_names; -#line 62 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp91__length1 = self->priv->schema_names_length1; -#line 62 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp92_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_EXPORT_PREFS_SCHEMA_NAME); -#line 62 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp91_[CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT]); -#line 62 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp91_[CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT] = _tmp92_; -#line 62 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp93_ = _tmp91_[CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT]; -#line 63 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp94_ = self->priv->schema_names; -#line 63 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp94__length1 = self->priv->schema_names_length1; -#line 63 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp95_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_EXPORT_PREFS_SCHEMA_NAME); -#line 63 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp94_[CONFIGURABLE_PROPERTY_EXPORT_QUALITY]); -#line 63 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp94_[CONFIGURABLE_PROPERTY_EXPORT_QUALITY] = _tmp95_; -#line 63 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp96_ = _tmp94_[CONFIGURABLE_PROPERTY_EXPORT_QUALITY]; -#line 64 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp97_ = self->priv->schema_names; -#line 64 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp97__length1 = self->priv->schema_names_length1; -#line 64 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp98_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_EXPORT_PREFS_SCHEMA_NAME); -#line 64 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp97_[CONFIGURABLE_PROPERTY_EXPORT_SCALE]); -#line 64 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp97_[CONFIGURABLE_PROPERTY_EXPORT_SCALE] = _tmp98_; -#line 64 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp99_ = _tmp97_[CONFIGURABLE_PROPERTY_EXPORT_SCALE]; -#line 65 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp100_ = self->priv->schema_names; -#line 65 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp100__length1 = self->priv->schema_names_length1; -#line 65 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp101_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_EDITING_PREFS_SCHEMA_NAME); -#line 65 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp100_[CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP]); -#line 65 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp100_[CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP] = _tmp101_; -#line 65 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp102_ = _tmp100_[CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP]; -#line 66 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp103_ = self->priv->schema_names; -#line 66 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp103__length1 = self->priv->schema_names_length1; -#line 66 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp104_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_EDITING_PREFS_SCHEMA_NAME); -#line 66 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp103_[CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP]); -#line 66 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp103_[CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP] = _tmp104_; -#line 66 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp105_ = _tmp103_[CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP]; -#line 67 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp106_ = self->priv->schema_names; -#line 67 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp106__length1 = self->priv->schema_names_length1; -#line 67 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp107_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 67 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp106_[CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED]); -#line 67 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp106_[CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED] = _tmp107_; -#line 67 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp108_ = _tmp106_[CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED]; -#line 68 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp109_ = self->priv->schema_names; -#line 68 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp109__length1 = self->priv->schema_names_length1; -#line 68 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp110_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_FILES_PREFS_SCHEMA_NAME); -#line 68 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp109_[CONFIGURABLE_PROPERTY_IMPORT_DIR]); -#line 68 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp109_[CONFIGURABLE_PROPERTY_IMPORT_DIR] = _tmp110_; -#line 68 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp111_ = _tmp109_[CONFIGURABLE_PROPERTY_IMPORT_DIR]; -#line 69 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp112_ = self->priv->schema_names; -#line 69 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp112__length1 = self->priv->schema_names_length1; -#line 69 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp113_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 69 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp112_[CONFIGURABLE_PROPERTY_KEEP_RELATIVITY]); -#line 69 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp112_[CONFIGURABLE_PROPERTY_KEEP_RELATIVITY] = _tmp113_; -#line 69 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp114_ = _tmp112_[CONFIGURABLE_PROPERTY_KEEP_RELATIVITY]; -#line 70 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp115_ = self->priv->schema_names; -#line 70 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp115__length1 = self->priv->schema_names_length1; -#line 70 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp116_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_CROP_SCHEMA_NAME); -#line 70 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp115_[CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT]); -#line 70 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp115_[CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT] = _tmp116_; -#line 70 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp117_ = _tmp115_[CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT]; -#line 71 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp118_ = self->priv->schema_names; -#line 71 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp118__length1 = self->priv->schema_names_length1; -#line 71 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp119_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_CROP_SCHEMA_NAME); -#line 71 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp118_[CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE]); -#line 71 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp118_[CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE] = _tmp119_; -#line 71 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp120_ = _tmp118_[CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE]; -#line 72 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp121_ = self->priv->schema_names; -#line 72 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp121__length1 = self->priv->schema_names_length1; -#line 72 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp122_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_CROP_SCHEMA_NAME); -#line 72 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp121_[CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH]); -#line 72 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp121_[CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH] = _tmp122_; -#line 72 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp123_ = _tmp121_[CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH]; -#line 73 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp124_ = self->priv->schema_names; -#line 73 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp124__length1 = self->priv->schema_names_length1; -#line 73 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp125_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SHARING_SCHEMA_NAME); -#line 73 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp124_[CONFIGURABLE_PROPERTY_LAST_USED_SERVICE]); -#line 73 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp124_[CONFIGURABLE_PROPERTY_LAST_USED_SERVICE] = _tmp125_; -#line 73 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp126_ = _tmp124_[CONFIGURABLE_PROPERTY_LAST_USED_SERVICE]; -#line 74 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp127_ = self->priv->schema_names; -#line 74 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp127__length1 = self->priv->schema_names_length1; -#line 74 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp128_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_IMPORTING_SCHEMA_NAME); -#line 74 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp127_[CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE]); -#line 74 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp127_[CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE] = _tmp128_; -#line 74 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp129_ = _tmp127_[CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE]; -#line 75 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp130_ = self->priv->schema_names; -#line 75 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp130__length1 = self->priv->schema_names_length1; -#line 75 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp131_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 75 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp130_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING]); -#line 75 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp130_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING] = _tmp131_; -#line 75 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp132_ = _tmp130_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING]; -#line 76 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp133_ = self->priv->schema_names; -#line 76 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp133__length1 = self->priv->schema_names_length1; -#line 76 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp134_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 76 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp133_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY]); -#line 76 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp133_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY] = _tmp134_; -#line 76 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp135_ = _tmp133_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY]; -#line 77 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp136_ = self->priv->schema_names; -#line 77 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp136__length1 = self->priv->schema_names_length1; -#line 77 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp137_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_WINDOW_PREFS_SCHEMA_NAME); -#line 77 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp136_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT]); -#line 77 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp136_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT] = _tmp137_; -#line 77 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp138_ = _tmp136_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT]; -#line 78 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp139_ = self->priv->schema_names; -#line 78 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp139__length1 = self->priv->schema_names_length1; -#line 78 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp140_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_WINDOW_PREFS_SCHEMA_NAME); -#line 78 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp139_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE]); -#line 78 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp139_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE] = _tmp140_; -#line 78 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp141_ = _tmp139_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE]; -#line 79 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp142_ = self->priv->schema_names; -#line 79 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp142__length1 = self->priv->schema_names_length1; -#line 79 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp143_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_WINDOW_PREFS_SCHEMA_NAME); -#line 79 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp142_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH]); -#line 79 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp142_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH] = _tmp143_; -#line 79 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp144_ = _tmp142_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH]; -#line 80 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp145_ = self->priv->schema_names; -#line 80 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp145__length1 = self->priv->schema_names_length1; -#line 80 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp146_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 80 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp145_[CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS]); -#line 80 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp145_[CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS] = _tmp146_; -#line 80 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp147_ = _tmp145_[CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS]; -#line 81 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp148_ = self->priv->schema_names; -#line 81 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp148__length1 = self->priv->schema_names_length1; -#line 81 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp149_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 81 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp148_[CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE]); -#line 81 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp148_[CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE] = _tmp149_; -#line 81 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp150_ = _tmp148_[CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE]; -#line 82 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp151_ = self->priv->schema_names; -#line 82 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp151__length1 = self->priv->schema_names_length1; -#line 82 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp152_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 82 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp151_[CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE]); -#line 82 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp151_[CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE] = _tmp152_; -#line 82 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp153_ = _tmp151_[CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE]; -#line 83 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp154_ = self->priv->schema_names; -#line 83 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp154__length1 = self->priv->schema_names_length1; -#line 83 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp155_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME); -#line 83 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp154_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT]); -#line 83 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp154_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT] = _tmp155_; -#line 83 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp156_ = _tmp154_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT]; -#line 84 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp157_ = self->priv->schema_names; -#line 84 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp157__length1 = self->priv->schema_names_length1; -#line 84 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp158_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME); -#line 84 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp157_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT]); -#line 84 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp157_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT] = _tmp158_; -#line 84 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp159_ = _tmp157_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT]; -#line 85 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp160_ = self->priv->schema_names; -#line 85 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp160__length1 = self->priv->schema_names_length1; -#line 85 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp161_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME); -#line 85 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp160_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI]); -#line 85 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp160_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI] = _tmp161_; -#line 85 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp162_ = _tmp160_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI]; -#line 86 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp163_ = self->priv->schema_names; -#line 86 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp163__length1 = self->priv->schema_names_length1; -#line 86 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp164_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME); -#line 86 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp163_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS]); -#line 86 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp163_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS] = _tmp164_; -#line 86 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp165_ = _tmp163_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS]; -#line 87 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp166_ = self->priv->schema_names; -#line 87 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp166__length1 = self->priv->schema_names_length1; -#line 87 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp167_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME); -#line 87 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp166_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH]); -#line 87 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp166_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH] = _tmp167_; -#line 87 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp168_ = _tmp166_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH]; -#line 88 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp169_ = self->priv->schema_names; -#line 88 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp169__length1 = self->priv->schema_names_length1; -#line 88 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp170_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME); -#line 88 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp169_[CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE]); -#line 88 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp169_[CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE] = _tmp170_; -#line 88 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp171_ = _tmp169_[CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE]; -#line 89 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp172_ = self->priv->schema_names; -#line 89 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp172__length1 = self->priv->schema_names_length1; -#line 89 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp173_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME); -#line 89 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp172_[CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO]); -#line 89 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp172_[CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO] = _tmp173_; -#line 89 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp174_ = _tmp172_[CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO]; -#line 90 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp175_ = self->priv->schema_names; -#line 90 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp175__length1 = self->priv->schema_names_length1; -#line 90 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp176_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME); -#line 90 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp175_[CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES]); -#line 90 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp175_[CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES] = _tmp176_; -#line 90 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp177_ = _tmp175_[CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES]; -#line 91 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp178_ = self->priv->schema_names; -#line 91 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp178__length1 = self->priv->schema_names_length1; -#line 91 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp179_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME); -#line 91 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp178_[CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION]); -#line 91 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp178_[CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION] = _tmp179_; -#line 91 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp180_ = _tmp178_[CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION]; -#line 92 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp181_ = self->priv->schema_names; -#line 92 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp181__length1 = self->priv->schema_names_length1; -#line 92 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp182_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_PRINTING_SCHEMA_NAME); -#line 92 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp181_[CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT]); -#line 92 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp181_[CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT] = _tmp182_; -#line 92 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp183_ = _tmp181_[CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT]; -#line 93 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp184_ = self->priv->schema_names; -#line 93 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp184__length1 = self->priv->schema_names_length1; -#line 93 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp185_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_FILES_PREFS_SCHEMA_NAME); -#line 93 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp184_[CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT]); -#line 93 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp184_[CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT] = _tmp185_; -#line 93 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp186_ = _tmp184_[CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT]; -#line 94 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp187_ = self->priv->schema_names; -#line 94 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp187__length1 = self->priv->schema_names_length1; -#line 94 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp188_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 94 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp187_[CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG]); -#line 94 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp187_[CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG] = _tmp188_; -#line 94 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp189_ = _tmp187_[CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG]; -#line 95 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp190_ = self->priv->schema_names; -#line 95 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp190__length1 = self->priv->schema_names_length1; -#line 95 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp191_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 95 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp190_[CONFIGURABLE_PROPERTY_SIDEBAR_POSITION]); -#line 95 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp190_[CONFIGURABLE_PROPERTY_SIDEBAR_POSITION] = _tmp191_; -#line 95 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp192_ = _tmp190_[CONFIGURABLE_PROPERTY_SIDEBAR_POSITION]; -#line 96 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp193_ = self->priv->schema_names; -#line 96 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp193__length1 = self->priv->schema_names_length1; -#line 96 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp194_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SLIDESHOW_PREFS_SCHEMA_NAME); -#line 96 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp193_[CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY]); -#line 96 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp193_[CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY] = _tmp194_; -#line 96 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp195_ = _tmp193_[CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY]; -#line 97 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp196_ = self->priv->schema_names; -#line 97 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp196__length1 = self->priv->schema_names_length1; -#line 97 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp197_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SLIDESHOW_PREFS_SCHEMA_NAME); -#line 97 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp196_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY]); -#line 97 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp196_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY] = _tmp197_; -#line 97 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp198_ = _tmp196_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY]; -#line 98 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp199_ = self->priv->schema_names; -#line 98 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp199__length1 = self->priv->schema_names_length1; -#line 98 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp200_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SLIDESHOW_PREFS_SCHEMA_NAME); -#line 98 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp199_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID]); -#line 98 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp199_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID] = _tmp200_; -#line 98 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp201_ = _tmp199_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID]; -#line 99 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp202_ = self->priv->schema_names; -#line 99 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp202__length1 = self->priv->schema_names_length1; -#line 99 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp203_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_SLIDESHOW_PREFS_SCHEMA_NAME); -#line 99 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp202_[CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE]); -#line 99 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp202_[CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE] = _tmp203_; -#line 99 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp204_ = _tmp202_[CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE]; -#line 100 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp205_ = self->priv->schema_names; -#line 100 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp205__length1 = self->priv->schema_names_length1; -#line 100 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp206_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_UI_PREFS_SCHEMA_NAME); -#line 100 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp205_[CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME]); -#line 100 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp205_[CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME] = _tmp206_; -#line 100 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp207_ = _tmp205_[CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME]; -#line 101 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp208_ = self->priv->schema_names; -#line 101 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp208__length1 = self->priv->schema_names_length1; -#line 101 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp209_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_FILES_PREFS_SCHEMA_NAME); -#line 101 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp208_[CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES]); -#line 101 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp208_[CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES] = _tmp209_; -#line 101 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp210_ = _tmp208_[CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES]; -#line 102 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp211_ = self->priv->schema_names; -#line 102 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp211__length1 = self->priv->schema_names_length1; -#line 102 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp212_ = g_strdup (GSETTINGS_CONFIGURATION_ENGINE_VIDEO_SCHEMA_NAME); -#line 102 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp211_[CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE]); -#line 102 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp211_[CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE] = _tmp212_; -#line 102 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp213_ = _tmp211_[CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE]; -#line 104 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp214_ = g_new0 (gchar*, CONFIGURABLE_PROPERTY_NUM_PROPERTIES + 1); -#line 104 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self->priv->key_names = (_vala_array_free (self->priv->key_names, self->priv->key_names_length1, (GDestroyNotify) g_free), NULL); -#line 104 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self->priv->key_names = _tmp214_; -#line 104 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self->priv->key_names_length1 = CONFIGURABLE_PROPERTY_NUM_PROPERTIES; -#line 104 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self->priv->_key_names_size_ = self->priv->key_names_length1; -#line 106 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp215_ = self->priv->key_names; -#line 106 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp215__length1 = self->priv->key_names_length1; -#line 106 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp216_ = g_strdup ("auto-import"); -#line 106 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp215_[CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY]); -#line 106 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp215_[CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY] = _tmp216_; -#line 106 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp217_ = _tmp215_[CONFIGURABLE_PROPERTY_AUTO_IMPORT_FROM_LIBRARY]; -#line 107 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp218_ = self->priv->key_names; -#line 107 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp218__length1 = self->priv->key_names_length1; -#line 107 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp219_ = g_strdup ("background-color"); -#line 107 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp218_[CONFIGURABLE_PROPERTY_BG_COLOR_NAME]); -#line 107 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp218_[CONFIGURABLE_PROPERTY_BG_COLOR_NAME] = _tmp219_; -#line 107 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp220_ = _tmp218_[CONFIGURABLE_PROPERTY_BG_COLOR_NAME]; -#line 108 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp221_ = self->priv->key_names; -#line 108 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp221__length1 = self->priv->key_names_length1; -#line 108 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp222_ = g_strdup ("transparent-background-type"); -#line 108 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp221_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE]); -#line 108 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp221_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE] = _tmp222_; -#line 108 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp223_ = _tmp221_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_TYPE]; -#line 109 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp224_ = self->priv->key_names; -#line 109 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp224__length1 = self->priv->key_names_length1; -#line 109 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp225_ = g_strdup ("transparent-background-color"); -#line 109 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp224_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR]); -#line 109 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp224_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR] = _tmp225_; -#line 109 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp226_ = _tmp224_[CONFIGURABLE_PROPERTY_TRANSPARENT_BACKGROUND_COLOR]; -#line 110 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp227_ = self->priv->key_names; -#line 110 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp227__length1 = self->priv->key_names_length1; -#line 110 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp228_ = g_strdup ("commit-metadata"); -#line 110 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp227_[CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS]); -#line 110 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp227_[CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS] = _tmp228_; -#line 110 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp229_ = _tmp227_[CONFIGURABLE_PROPERTY_COMMIT_METADATA_TO_MASTERS]; -#line 111 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp230_ = self->priv->key_names; -#line 111 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp230__length1 = self->priv->key_names_length1; -#line 111 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp231_ = g_strdup ("picture-uri"); -#line 111 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp230_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE]); -#line 111 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp230_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE] = _tmp231_; -#line 111 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp232_ = _tmp230_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE]; -#line 112 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp233_ = self->priv->key_names; -#line 112 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp233__length1 = self->priv->key_names_length1; -#line 112 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp234_ = g_strdup ("picture-options"); -#line 112 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp233_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE]); -#line 112 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp233_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE] = _tmp234_; -#line 112 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp235_ = _tmp233_[CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_MODE]; -#line 113 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp236_ = self->priv->key_names; -#line 113 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp236__length1 = self->priv->key_names_length1; -#line 113 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp237_ = g_strdup ("picture-uri"); -#line 113 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp236_[CONFIGURABLE_PROPERTY_SCREENSAVER_FILE]); -#line 113 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp236_[CONFIGURABLE_PROPERTY_SCREENSAVER_FILE] = _tmp237_; -#line 113 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp238_ = _tmp236_[CONFIGURABLE_PROPERTY_SCREENSAVER_FILE]; -#line 114 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp239_ = self->priv->key_names; -#line 114 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp239__length1 = self->priv->key_names_length1; -#line 114 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp240_ = g_strdup ("picture-options"); -#line 114 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp239_[CONFIGURABLE_PROPERTY_SCREENSAVER_MODE]); -#line 114 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp239_[CONFIGURABLE_PROPERTY_SCREENSAVER_MODE] = _tmp240_; -#line 114 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp241_ = _tmp239_[CONFIGURABLE_PROPERTY_SCREENSAVER_MODE]; -#line 115 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp242_ = self->priv->key_names; -#line 115 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp242__length1 = self->priv->key_names_length1; -#line 115 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp243_ = g_strdup ("directory-pattern"); -#line 115 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp242_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN]); -#line 115 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp242_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN] = _tmp243_; -#line 115 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp244_ = _tmp242_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN]; -#line 116 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp245_ = self->priv->key_names; -#line 116 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp245__length1 = self->priv->key_names_length1; -#line 116 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp246_ = g_strdup ("directory-pattern-custom"); -#line 116 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp245_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM]); -#line 116 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp245_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM] = _tmp246_; -#line 116 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp247_ = _tmp245_[CONFIGURABLE_PROPERTY_DIRECTORY_PATTERN_CUSTOM]; -#line 117 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp248_ = self->priv->key_names; -#line 117 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp248__length1 = self->priv->key_names_length1; -#line 117 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp249_ = g_strdup ("direct-height"); -#line 117 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp248_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT]); -#line 117 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp248_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT] = _tmp249_; -#line 117 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp250_ = _tmp248_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_HEIGHT]; -#line 118 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp251_ = self->priv->key_names; -#line 118 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp251__length1 = self->priv->key_names_length1; -#line 118 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp252_ = g_strdup ("direct-maximize"); -#line 118 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp251_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE]); -#line 118 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp251_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE] = _tmp252_; -#line 118 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp253_ = _tmp251_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_MAXIMIZE]; -#line 119 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp254_ = self->priv->key_names; -#line 119 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp254__length1 = self->priv->key_names_length1; -#line 119 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp255_ = g_strdup ("direct-width"); -#line 119 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp254_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH]); -#line 119 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp254_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH] = _tmp255_; -#line 119 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp256_ = _tmp254_[CONFIGURABLE_PROPERTY_DIRECT_WINDOW_WIDTH]; -#line 120 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp257_ = self->priv->key_names; -#line 120 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp257__length1 = self->priv->key_names_length1; -#line 120 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp258_ = g_strdup ("display-basic-properties"); -#line 120 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp257_[CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES]); -#line 120 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp257_[CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES] = _tmp258_; -#line 120 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp259_ = _tmp257_[CONFIGURABLE_PROPERTY_DISPLAY_BASIC_PROPERTIES]; -#line 121 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp260_ = self->priv->key_names; -#line 121 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp260__length1 = self->priv->key_names_length1; -#line 121 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp261_ = g_strdup ("display-extended-properties"); -#line 121 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp260_[CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES]); -#line 121 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp260_[CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES] = _tmp261_; -#line 121 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp262_ = _tmp260_[CONFIGURABLE_PROPERTY_DISPLAY_EXTENDED_PROPERTIES]; -#line 122 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp263_ = self->priv->key_names; -#line 122 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp263__length1 = self->priv->key_names_length1; -#line 122 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp264_ = g_strdup ("display-sidebar"); -#line 122 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp263_[CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR]); -#line 122 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp263_[CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR] = _tmp264_; -#line 122 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp265_ = _tmp263_[CONFIGURABLE_PROPERTY_DISPLAY_SIDEBAR]; -#line 123 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp266_ = self->priv->key_names; -#line 123 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp266__length1 = self->priv->key_names_length1; -#line 123 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp267_ = g_strdup ("display-toolbar"); -#line 123 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp266_[CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR]); -#line 123 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp266_[CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR] = _tmp267_; -#line 123 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp268_ = _tmp266_[CONFIGURABLE_PROPERTY_DISPLAY_TOOLBAR]; -#line 124 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp269_ = self->priv->key_names; -#line 124 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp269__length1 = self->priv->key_names_length1; -#line 124 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp270_ = g_strdup ("display-search-bar"); -#line 124 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp269_[CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR]); -#line 124 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp269_[CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR] = _tmp270_; -#line 124 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp271_ = _tmp269_[CONFIGURABLE_PROPERTY_DISPLAY_SEARCH_BAR]; -#line 125 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp272_ = self->priv->key_names; -#line 125 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp272__length1 = self->priv->key_names_length1; -#line 125 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp273_ = g_strdup ("display-photo-ratings"); -#line 125 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp272_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS]); -#line 125 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp272_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS] = _tmp273_; -#line 125 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp274_ = _tmp272_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_RATINGS]; -#line 126 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp275_ = self->priv->key_names; -#line 126 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp275__length1 = self->priv->key_names_length1; -#line 126 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp276_ = g_strdup ("display-photo-tags"); -#line 126 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp275_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS]); -#line 126 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp275_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS] = _tmp276_; -#line 126 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp277_ = _tmp275_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TAGS]; -#line 127 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp278_ = self->priv->key_names; -#line 127 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp278__length1 = self->priv->key_names_length1; -#line 127 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp279_ = g_strdup ("display-photo-titles"); -#line 127 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp278_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES]); -#line 127 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp278_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES] = _tmp279_; -#line 127 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp280_ = _tmp278_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_TITLES]; -#line 128 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp281_ = self->priv->key_names; -#line 128 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp281__length1 = self->priv->key_names_length1; -#line 128 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp282_ = g_strdup ("display-photo-comments"); -#line 128 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp281_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS]); -#line 128 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp281_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS] = _tmp282_; -#line 128 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp283_ = _tmp281_[CONFIGURABLE_PROPERTY_DISPLAY_PHOTO_COMMENTS]; -#line 129 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp284_ = self->priv->key_names; -#line 129 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp284__length1 = self->priv->key_names_length1; -#line 129 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp285_ = g_strdup ("display-event-comments"); -#line 129 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp284_[CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS]); -#line 129 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp284_[CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS] = _tmp285_; -#line 129 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp286_ = _tmp284_[CONFIGURABLE_PROPERTY_DISPLAY_EVENT_COMMENTS]; -#line 130 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp287_ = self->priv->key_names; -#line 130 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp287__length1 = self->priv->key_names_length1; -#line 130 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp288_ = g_strdup ("event-photos-sort-ascending"); -#line 130 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp287_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING]); -#line 130 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp287_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING] = _tmp288_; -#line 130 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp289_ = _tmp287_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_ASCENDING]; -#line 131 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp290_ = self->priv->key_names; -#line 131 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp290__length1 = self->priv->key_names_length1; -#line 131 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp291_ = g_strdup ("event-photos-sort-by"); -#line 131 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp290_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY]); -#line 131 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp290_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY] = _tmp291_; -#line 131 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp292_ = _tmp290_[CONFIGURABLE_PROPERTY_EVENT_PHOTOS_SORT_BY]; -#line 132 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp293_ = self->priv->key_names; -#line 132 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp293__length1 = self->priv->key_names_length1; -#line 132 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp294_ = g_strdup ("events-sort-ascending"); -#line 132 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp293_[CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING]); -#line 132 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp293_[CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING] = _tmp294_; -#line 132 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp295_ = _tmp293_[CONFIGURABLE_PROPERTY_EVENTS_SORT_ASCENDING]; -#line 133 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp296_ = self->priv->key_names; -#line 133 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp296__length1 = self->priv->key_names_length1; -#line 133 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp297_ = g_strdup ("constraint"); -#line 133 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp296_[CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT]); -#line 133 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp296_[CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT] = _tmp297_; -#line 133 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp298_ = _tmp296_[CONFIGURABLE_PROPERTY_EXPORT_CONSTRAINT]; -#line 134 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp299_ = self->priv->key_names; -#line 134 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp299__length1 = self->priv->key_names_length1; -#line 134 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp300_ = g_strdup ("export-format-mode"); -#line 134 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp299_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE]); -#line 134 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp299_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE] = _tmp300_; -#line 134 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp301_ = _tmp299_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_FORMAT_MODE]; -#line 135 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp302_ = self->priv->key_names; -#line 135 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp302__length1 = self->priv->key_names_length1; -#line 135 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp303_ = g_strdup ("export-metadata"); -#line 135 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp302_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA]); -#line 135 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp302_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA] = _tmp303_; -#line 135 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp304_ = _tmp302_[CONFIGURABLE_PROPERTY_EXPORT_EXPORT_METADATA]; -#line 136 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp305_ = self->priv->key_names; -#line 136 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp305__length1 = self->priv->key_names_length1; -#line 136 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp306_ = g_strdup ("photo-file-format"); -#line 136 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp305_[CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT]); -#line 136 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp305_[CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT] = _tmp306_; -#line 136 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp307_ = _tmp305_[CONFIGURABLE_PROPERTY_EXPORT_PHOTO_FILE_FORMAT]; -#line 137 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp308_ = self->priv->key_names; -#line 137 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp308__length1 = self->priv->key_names_length1; -#line 137 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp309_ = g_strdup ("quality"); -#line 137 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp308_[CONFIGURABLE_PROPERTY_EXPORT_QUALITY]); -#line 137 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp308_[CONFIGURABLE_PROPERTY_EXPORT_QUALITY] = _tmp309_; -#line 137 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp310_ = _tmp308_[CONFIGURABLE_PROPERTY_EXPORT_QUALITY]; -#line 138 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp311_ = self->priv->key_names; -#line 138 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp311__length1 = self->priv->key_names_length1; -#line 138 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp312_ = g_strdup ("scale"); -#line 138 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp311_[CONFIGURABLE_PROPERTY_EXPORT_SCALE]); -#line 138 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp311_[CONFIGURABLE_PROPERTY_EXPORT_SCALE] = _tmp312_; -#line 138 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp313_ = _tmp311_[CONFIGURABLE_PROPERTY_EXPORT_SCALE]; -#line 139 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp314_ = self->priv->key_names; -#line 139 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp314__length1 = self->priv->key_names_length1; -#line 139 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp315_ = g_strdup ("external-photo-editor"); -#line 139 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp314_[CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP]); -#line 139 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp314_[CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP] = _tmp315_; -#line 139 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp316_ = _tmp314_[CONFIGURABLE_PROPERTY_EXTERNAL_PHOTO_APP]; -#line 140 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp317_ = self->priv->key_names; -#line 140 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp317__length1 = self->priv->key_names_length1; -#line 140 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp318_ = g_strdup ("external-raw-editor"); -#line 140 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp317_[CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP]); -#line 140 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp317_[CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP] = _tmp318_; -#line 140 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp319_ = _tmp317_[CONFIGURABLE_PROPERTY_EXTERNAL_RAW_APP]; -#line 141 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp320_ = self->priv->key_names; -#line 141 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp320__length1 = self->priv->key_names_length1; -#line 141 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp321_ = g_strdup ("hide-photos-already-imported"); -#line 141 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp320_[CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED]); -#line 141 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp320_[CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED] = _tmp321_; -#line 141 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp322_ = _tmp320_[CONFIGURABLE_PROPERTY_HIDE_PHOTOS_ALREADY_IMPORTED]; -#line 142 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp323_ = self->priv->key_names; -#line 142 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp323__length1 = self->priv->key_names_length1; -#line 142 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp324_ = g_strdup ("import-dir"); -#line 142 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp323_[CONFIGURABLE_PROPERTY_IMPORT_DIR]); -#line 142 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp323_[CONFIGURABLE_PROPERTY_IMPORT_DIR] = _tmp324_; -#line 142 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp325_ = _tmp323_[CONFIGURABLE_PROPERTY_IMPORT_DIR]; -#line 143 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp326_ = self->priv->key_names; -#line 143 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp326__length1 = self->priv->key_names_length1; -#line 143 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp327_ = g_strdup ("keep-relativity"); -#line 143 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp326_[CONFIGURABLE_PROPERTY_KEEP_RELATIVITY]); -#line 143 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp326_[CONFIGURABLE_PROPERTY_KEEP_RELATIVITY] = _tmp327_; -#line 143 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp328_ = _tmp326_[CONFIGURABLE_PROPERTY_KEEP_RELATIVITY]; -#line 144 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp329_ = self->priv->key_names; -#line 144 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp329__length1 = self->priv->key_names_length1; -#line 144 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp330_ = g_strdup ("last-crop-height"); -#line 144 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp329_[CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT]); -#line 144 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp329_[CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT] = _tmp330_; -#line 144 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp331_ = _tmp329_[CONFIGURABLE_PROPERTY_LAST_CROP_HEIGHT]; -#line 145 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp332_ = self->priv->key_names; -#line 145 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp332__length1 = self->priv->key_names_length1; -#line 145 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp333_ = g_strdup ("last-crop-menu-choice"); -#line 145 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp332_[CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE]); -#line 145 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp332_[CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE] = _tmp333_; -#line 145 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp334_ = _tmp332_[CONFIGURABLE_PROPERTY_LAST_CROP_MENU_CHOICE]; -#line 146 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp335_ = self->priv->key_names; -#line 146 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp335__length1 = self->priv->key_names_length1; -#line 146 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp336_ = g_strdup ("last-crop-width"); -#line 146 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp335_[CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH]); -#line 146 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp335_[CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH] = _tmp336_; -#line 146 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp337_ = _tmp335_[CONFIGURABLE_PROPERTY_LAST_CROP_WIDTH]; -#line 147 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp338_ = self->priv->key_names; -#line 147 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp338__length1 = self->priv->key_names_length1; -#line 147 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp339_ = g_strdup ("last-used-service"); -#line 147 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp338_[CONFIGURABLE_PROPERTY_LAST_USED_SERVICE]); -#line 147 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp338_[CONFIGURABLE_PROPERTY_LAST_USED_SERVICE] = _tmp339_; -#line 147 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp340_ = _tmp338_[CONFIGURABLE_PROPERTY_LAST_USED_SERVICE]; -#line 148 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp341_ = self->priv->key_names; -#line 148 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp341__length1 = self->priv->key_names_length1; -#line 148 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp342_ = g_strdup ("last-used-dataimports-service"); -#line 148 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp341_[CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE]); -#line 148 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp341_[CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE] = _tmp342_; -#line 148 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp343_ = _tmp341_[CONFIGURABLE_PROPERTY_LAST_USED_DATAIMPORTS_SERVICE]; -#line 149 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp344_ = self->priv->key_names; -#line 149 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp344__length1 = self->priv->key_names_length1; -#line 149 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp345_ = g_strdup ("library-photos-sort-ascending"); -#line 149 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp344_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING]); -#line 149 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp344_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING] = _tmp345_; -#line 149 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp346_ = _tmp344_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_ASCENDING]; -#line 150 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp347_ = self->priv->key_names; -#line 150 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp347__length1 = self->priv->key_names_length1; -#line 150 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp348_ = g_strdup ("library-photos-sort-by"); -#line 150 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp347_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY]); -#line 150 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp347_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY] = _tmp348_; -#line 150 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp349_ = _tmp347_[CONFIGURABLE_PROPERTY_LIBRARY_PHOTOS_SORT_BY]; -#line 151 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp350_ = self->priv->key_names; -#line 151 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp350__length1 = self->priv->key_names_length1; -#line 151 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp351_ = g_strdup ("library-height"); -#line 151 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp350_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT]); -#line 151 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp350_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT] = _tmp351_; -#line 151 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp352_ = _tmp350_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_HEIGHT]; -#line 152 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp353_ = self->priv->key_names; -#line 152 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp353__length1 = self->priv->key_names_length1; -#line 152 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp354_ = g_strdup ("library-maximize"); -#line 152 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp353_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE]); -#line 152 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp353_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE] = _tmp354_; -#line 152 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp355_ = _tmp353_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_MAXIMIZE]; -#line 153 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp356_ = self->priv->key_names; -#line 153 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp356__length1 = self->priv->key_names_length1; -#line 153 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp357_ = g_strdup ("library-width"); -#line 153 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp356_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH]); -#line 153 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp356_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH] = _tmp357_; -#line 153 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp358_ = _tmp356_[CONFIGURABLE_PROPERTY_LIBRARY_WINDOW_WIDTH]; -#line 154 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp359_ = self->priv->key_names; -#line 154 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp359__length1 = self->priv->key_names_length1; -#line 154 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp360_ = g_strdup ("modify-originals"); -#line 154 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp359_[CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS]); -#line 154 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp359_[CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS] = _tmp360_; -#line 154 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp361_ = _tmp359_[CONFIGURABLE_PROPERTY_MODIFY_ORIGINALS]; -#line 155 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp362_ = self->priv->key_names; -#line 155 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp362__length1 = self->priv->key_names_length1; -#line 155 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp363_ = g_strdup ("photo-thumbnail-scale"); -#line 155 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp362_[CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE]); -#line 155 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp362_[CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE] = _tmp363_; -#line 155 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp364_ = _tmp362_[CONFIGURABLE_PROPERTY_PHOTO_THUMBNAIL_SCALE]; -#line 156 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp365_ = self->priv->key_names; -#line 156 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp365__length1 = self->priv->key_names_length1; -#line 156 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp366_ = g_strdup ("pin-toolbar-state"); -#line 156 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp365_[CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE]); -#line 156 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp365_[CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE] = _tmp366_; -#line 156 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp367_ = _tmp365_[CONFIGURABLE_PROPERTY_PIN_TOOLBAR_STATE]; -#line 157 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp368_ = self->priv->key_names; -#line 157 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp368__length1 = self->priv->key_names_length1; -#line 157 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp369_ = g_strdup ("content-height"); -#line 157 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp368_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT]); -#line 157 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp368_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT] = _tmp369_; -#line 157 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp370_ = _tmp368_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_HEIGHT]; -#line 158 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp371_ = self->priv->key_names; -#line 158 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp371__length1 = self->priv->key_names_length1; -#line 158 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp372_ = g_strdup ("content-layout"); -#line 158 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp371_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT]); -#line 158 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp371_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT] = _tmp372_; -#line 158 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp373_ = _tmp371_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_LAYOUT]; -#line 159 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp374_ = self->priv->key_names; -#line 159 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp374__length1 = self->priv->key_names_length1; -#line 159 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp375_ = g_strdup ("content-ppi"); -#line 159 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp374_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI]); -#line 159 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp374_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI] = _tmp375_; -#line 159 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp376_ = _tmp374_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_PPI]; -#line 160 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp377_ = self->priv->key_names; -#line 160 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp377__length1 = self->priv->key_names_length1; -#line 160 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp378_ = g_strdup ("content-units"); -#line 160 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp377_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS]); -#line 160 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp377_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS] = _tmp378_; -#line 160 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp379_ = _tmp377_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_UNITS]; -#line 161 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp380_ = self->priv->key_names; -#line 161 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp380__length1 = self->priv->key_names_length1; -#line 161 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp381_ = g_strdup ("content-width"); -#line 161 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp380_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH]); -#line 161 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp380_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH] = _tmp381_; -#line 161 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp382_ = _tmp380_[CONFIGURABLE_PROPERTY_PRINTING_CONTENT_WIDTH]; -#line 162 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp383_ = self->priv->key_names; -#line 162 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp383__length1 = self->priv->key_names_length1; -#line 162 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp384_ = g_strdup ("images-per-page"); -#line 162 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp383_[CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE]); -#line 162 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp383_[CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE] = _tmp384_; -#line 162 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp385_ = _tmp383_[CONFIGURABLE_PROPERTY_PRINTING_IMAGES_PER_PAGE]; -#line 163 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp386_ = self->priv->key_names; -#line 163 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp386__length1 = self->priv->key_names_length1; -#line 163 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp387_ = g_strdup ("match-aspect-ratio"); -#line 163 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp386_[CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO]); -#line 163 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp386_[CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO] = _tmp387_; -#line 163 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp388_ = _tmp386_[CONFIGURABLE_PROPERTY_PRINTING_MATCH_ASPECT_RATIO]; -#line 164 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp389_ = self->priv->key_names; -#line 164 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp389__length1 = self->priv->key_names_length1; -#line 164 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp390_ = g_strdup ("print-titles"); -#line 164 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp389_[CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES]); -#line 164 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp389_[CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES] = _tmp390_; -#line 164 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp391_ = _tmp389_[CONFIGURABLE_PROPERTY_PRINTING_PRINT_TITLES]; -#line 165 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp392_ = self->priv->key_names; -#line 165 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp392__length1 = self->priv->key_names_length1; -#line 165 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp393_ = g_strdup ("size-selection"); -#line 165 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp392_[CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION]); -#line 165 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp392_[CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION] = _tmp393_; -#line 165 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp394_ = _tmp392_[CONFIGURABLE_PROPERTY_PRINTING_SIZE_SELECTION]; -#line 166 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp395_ = self->priv->key_names; -#line 166 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp395__length1 = self->priv->key_names_length1; -#line 166 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp396_ = g_strdup ("titles-font"); -#line 166 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp395_[CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT]); -#line 166 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp395_[CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT] = _tmp396_; -#line 166 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp397_ = _tmp395_[CONFIGURABLE_PROPERTY_PRINTING_TITLES_FONT]; -#line 167 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp398_ = self->priv->key_names; -#line 167 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp398__length1 = self->priv->key_names_length1; -#line 167 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp399_ = g_strdup ("raw-developer-default"); -#line 167 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp398_[CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT]); -#line 167 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp398_[CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT] = _tmp399_; -#line 167 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp400_ = _tmp398_[CONFIGURABLE_PROPERTY_RAW_DEVELOPER_DEFAULT]; -#line 168 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp401_ = self->priv->key_names; -#line 168 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp401__length1 = self->priv->key_names_length1; -#line 168 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp402_ = g_strdup ("show-welcome-dialog"); -#line 168 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp401_[CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG]); -#line 168 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp401_[CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG] = _tmp402_; -#line 168 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp403_ = _tmp401_[CONFIGURABLE_PROPERTY_SHOW_WELCOME_DIALOG]; -#line 169 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp404_ = self->priv->key_names; -#line 169 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp404__length1 = self->priv->key_names_length1; -#line 169 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp405_ = g_strdup ("sidebar-position"); -#line 169 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp404_[CONFIGURABLE_PROPERTY_SIDEBAR_POSITION]); -#line 169 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp404_[CONFIGURABLE_PROPERTY_SIDEBAR_POSITION] = _tmp405_; -#line 169 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp406_ = _tmp404_[CONFIGURABLE_PROPERTY_SIDEBAR_POSITION]; -#line 170 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp407_ = self->priv->key_names; -#line 170 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp407__length1 = self->priv->key_names_length1; -#line 170 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp408_ = g_strdup ("delay"); -#line 170 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp407_[CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY]); -#line 170 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp407_[CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY] = _tmp408_; -#line 170 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp409_ = _tmp407_[CONFIGURABLE_PROPERTY_SLIDESHOW_DELAY]; -#line 171 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp410_ = self->priv->key_names; -#line 171 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp410__length1 = self->priv->key_names_length1; -#line 171 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp411_ = g_strdup ("transition-delay"); -#line 171 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp410_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY]); -#line 171 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp410_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY] = _tmp411_; -#line 171 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp412_ = _tmp410_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_DELAY]; -#line 172 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp413_ = self->priv->key_names; -#line 172 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp413__length1 = self->priv->key_names_length1; -#line 172 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp414_ = g_strdup ("transition-effect-id"); -#line 172 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp413_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID]); -#line 172 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp413_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID] = _tmp414_; -#line 172 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp415_ = _tmp413_[CONFIGURABLE_PROPERTY_SLIDESHOW_TRANSITION_EFFECT_ID]; -#line 173 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp416_ = self->priv->key_names; -#line 173 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp416__length1 = self->priv->key_names_length1; -#line 173 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp417_ = g_strdup ("show-title"); -#line 173 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp416_[CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE]); -#line 173 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp416_[CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE] = _tmp417_; -#line 173 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp418_ = _tmp416_[CONFIGURABLE_PROPERTY_SLIDESHOW_SHOW_TITLE]; -#line 174 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp419_ = self->priv->key_names; -#line 174 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp419__length1 = self->priv->key_names_length1; -#line 174 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp420_ = g_strdup ("use-24-hour-time"); -#line 174 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp419_[CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME]); -#line 174 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp419_[CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME] = _tmp420_; -#line 174 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp421_ = _tmp419_[CONFIGURABLE_PROPERTY_USE_24_HOUR_TIME]; -#line 175 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp422_ = self->priv->key_names; -#line 175 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp422__length1 = self->priv->key_names_length1; -#line 175 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp423_ = g_strdup ("use-lowercase-filenames"); -#line 175 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp422_[CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES]); -#line 175 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp422_[CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES] = _tmp423_; -#line 175 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp424_ = _tmp422_[CONFIGURABLE_PROPERTY_USE_LOWERCASE_FILENAMES]; -#line 176 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp425_ = self->priv->key_names; -#line 176 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp425__length1 = self->priv->key_names_length1; -#line 176 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp426_ = g_strdup ("interpreter-state-cookie"); -#line 176 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp425_[CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE]); -#line 176 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp425_[CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE] = _tmp426_; -#line 176 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp427_ = _tmp425_[CONFIGURABLE_PROPERTY_VIDEO_INTERPRETER_STATE_COOKIE]; -#line 29 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return self; -#line 2670 "GSettingsEngine.c" -} - - -GSettingsConfigurationEngine* -gsettings_configuration_engine_new (void) -{ -#line 29 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return gsettings_configuration_engine_construct (TYPE_GSETTINGS_CONFIGURATION_ENGINE); -#line 2679 "GSettingsEngine.c" -} - - -static gpointer -_g_settings_schema_source_ref0 (gpointer self) -{ -#line 180 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return self ? g_settings_schema_source_ref (self) : NULL; -#line 2688 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_check_key_valid (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - GError** error) -{ - GSettingsSchemaSource* schema_source = NULL; - GSettingsSchemaSource* _tmp0_; - GSettingsSchemaSource* _tmp1_; - GSettingsSchema* settings_scheme = NULL; - GSettingsSchemaSource* _tmp2_; - GSettingsSchema* _tmp3_; - GSettingsSchema* _tmp4_; - GSettingsSchema* _tmp9_; - GError * _inner_error_ = NULL; -#line 179 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self)); -#line 179 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (schema != NULL); -#line 179 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (key != NULL); -#line 180 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = g_settings_schema_source_get_default (); -#line 180 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = _g_settings_schema_source_ref0 (_tmp0_); -#line 180 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_source = _tmp1_; -#line 181 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = schema_source; -#line 181 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = g_settings_schema_source_lookup (_tmp2_, schema, TRUE); -#line 181 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - settings_scheme = _tmp3_; -#line 182 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = settings_scheme; -#line 182 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_tmp4_ == NULL) { -#line 2729 "GSettingsEngine.c" - gchar* _tmp5_; - gchar* _tmp6_; - GError* _tmp7_; - GError* _tmp8_; -#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp5_ = g_strdup_printf ("schema '%s' is not installed", schema); -#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp6_ = _tmp5_; -#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp7_ = g_error_new_literal (CONFIGURATION_ERROR, CONFIGURATION_ERROR_ENGINE_ERROR, _tmp6_); -#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp8_ = _tmp7_; -#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp6_); -#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _inner_error_ = _tmp8_; -#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_settings_schema_unref0 (settings_scheme); -#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_settings_schema_source_unref0 (schema_source); -#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 2756 "GSettingsEngine.c" - } else { -#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_settings_schema_unref0 (settings_scheme); -#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_settings_schema_source_unref0 (schema_source); -#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 183 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 2768 "GSettingsEngine.c" - } - } -#line 186 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp9_ = settings_scheme; -#line 186 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (!g_settings_schema_has_key (_tmp9_, key)) { -#line 2775 "GSettingsEngine.c" - gchar* _tmp10_; - gchar* _tmp11_; - GError* _tmp12_; - GError* _tmp13_; -#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp10_ = g_strdup_printf ("schema '%s' does not define key '%s'", schema, key); -#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp11_ = _tmp10_; -#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp12_ = g_error_new_literal (CONFIGURATION_ERROR, CONFIGURATION_ERROR_ENGINE_ERROR, _tmp11_); -#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp13_ = _tmp12_; -#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp11_); -#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _inner_error_ = _tmp13_; -#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_settings_schema_unref0 (settings_scheme); -#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_settings_schema_source_unref0 (schema_source); -#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 2802 "GSettingsEngine.c" - } else { -#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_settings_schema_unref0 (settings_scheme); -#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_settings_schema_source_unref0 (schema_source); -#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 187 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 2814 "GSettingsEngine.c" - } - } -#line 179 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_settings_schema_unref0 (settings_scheme); -#line 179 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_settings_schema_source_unref0 (schema_source); -#line 2821 "GSettingsEngine.c" -} - - -static gboolean -gsettings_configuration_engine_get_gs_bool (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - GError** error) -{ - gboolean result = FALSE; - GSettings* schema_object = NULL; - GSettings* _tmp2_; - GSettings* _tmp3_; - GError * _inner_error_ = NULL; -#line 191 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self), FALSE); -#line 191 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (schema != NULL, FALSE); -#line 191 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (key != NULL, FALSE); -#line 192 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_); -#line 192 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 192 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 2848 "GSettingsEngine.c" - gboolean _tmp0_ = FALSE; -#line 192 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 192 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp0_; -#line 2854 "GSettingsEngine.c" - } else { - gboolean _tmp1_ = FALSE; -#line 192 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 192 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 192 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp1_; -#line 2863 "GSettingsEngine.c" - } - } -#line 194 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = g_settings_new (schema); -#line 194 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_object = _tmp2_; -#line 196 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = schema_object; -#line 196 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = g_settings_get_boolean (_tmp3_, key); -#line 196 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_object_unref0 (schema_object); -#line 196 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 2878 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_set_gs_bool (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - gboolean value, - GError** error) -{ - GSettings* schema_object = NULL; - GSettings* _tmp0_; - GSettings* _tmp1_; - GError * _inner_error_ = NULL; -#line 199 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self)); -#line 199 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (schema != NULL); -#line 199 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (key != NULL); -#line 200 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_); -#line 200 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 200 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 200 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 200 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 2909 "GSettingsEngine.c" - } else { -#line 200 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 200 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 200 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 2917 "GSettingsEngine.c" - } - } -#line 202 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = g_settings_new (schema); -#line 202 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_object = _tmp0_; -#line 204 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = schema_object; -#line 204 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_settings_set_boolean (_tmp1_, key, value); -#line 199 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_object_unref0 (schema_object); -#line 2930 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_set_gs_enum (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - gint value, - GError** error) -{ - GSettings* schema_object = NULL; - GSettings* _tmp0_; - GSettings* _tmp1_; - GError * _inner_error_ = NULL; -#line 207 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self)); -#line 207 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (schema != NULL); -#line 207 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (key != NULL); -#line 208 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_); -#line 208 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 208 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 208 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 208 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 2961 "GSettingsEngine.c" - } else { -#line 208 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 208 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 208 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 2969 "GSettingsEngine.c" - } - } -#line 210 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = g_settings_new (schema); -#line 210 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_object = _tmp0_; -#line 211 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = schema_object; -#line 211 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_settings_set_enum (_tmp1_, key, value); -#line 207 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_object_unref0 (schema_object); -#line 2982 "GSettingsEngine.c" -} - - -static gint -gsettings_configuration_engine_get_gs_enum (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - GError** error) -{ - gint result = 0; - GSettings* schema_object = NULL; - GSettings* _tmp2_; - GSettings* _tmp3_; - GError * _inner_error_ = NULL; -#line 214 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self), 0); -#line 214 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (schema != NULL, 0); -#line 214 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (key != NULL, 0); -#line 215 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_); -#line 215 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 215 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3009 "GSettingsEngine.c" - gint _tmp0_ = 0; -#line 215 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 215 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp0_; -#line 3015 "GSettingsEngine.c" - } else { - gint _tmp1_ = 0; -#line 215 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 215 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 215 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp1_; -#line 3024 "GSettingsEngine.c" - } - } -#line 217 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = g_settings_new (schema); -#line 217 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_object = _tmp2_; -#line 218 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = schema_object; -#line 218 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = g_settings_get_enum (_tmp3_, key); -#line 218 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_object_unref0 (schema_object); -#line 218 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 3039 "GSettingsEngine.c" -} - - -static gint -gsettings_configuration_engine_get_gs_int (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - GError** error) -{ - gint result = 0; - GSettings* schema_object = NULL; - GSettings* _tmp2_; - GSettings* _tmp3_; - GError * _inner_error_ = NULL; -#line 221 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self), 0); -#line 221 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (schema != NULL, 0); -#line 221 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (key != NULL, 0); -#line 222 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_); -#line 222 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 222 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3066 "GSettingsEngine.c" - gint _tmp0_ = 0; -#line 222 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 222 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp0_; -#line 3072 "GSettingsEngine.c" - } else { - gint _tmp1_ = 0; -#line 222 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 222 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 222 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp1_; -#line 3081 "GSettingsEngine.c" - } - } -#line 224 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = g_settings_new (schema); -#line 224 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_object = _tmp2_; -#line 226 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = schema_object; -#line 226 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = g_settings_get_int (_tmp3_, key); -#line 226 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_object_unref0 (schema_object); -#line 226 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 3096 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_set_gs_int (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - gint value, - GError** error) -{ - GSettings* schema_object = NULL; - GSettings* _tmp0_; - GSettings* _tmp1_; - GError * _inner_error_ = NULL; -#line 229 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self)); -#line 229 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (schema != NULL); -#line 229 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (key != NULL); -#line 230 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_); -#line 230 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 230 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 230 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 230 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 3127 "GSettingsEngine.c" - } else { -#line 230 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 230 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 230 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 3135 "GSettingsEngine.c" - } - } -#line 232 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = g_settings_new (schema); -#line 232 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_object = _tmp0_; -#line 234 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = schema_object; -#line 234 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_settings_set_int (_tmp1_, key, value); -#line 229 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_object_unref0 (schema_object); -#line 3148 "GSettingsEngine.c" -} - - -static gdouble -gsettings_configuration_engine_get_gs_double (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - GError** error) -{ - gdouble result = 0.0; - GSettings* schema_object = NULL; - GSettings* _tmp2_; - GSettings* _tmp3_; - GError * _inner_error_ = NULL; -#line 237 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self), 0.0); -#line 237 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (schema != NULL, 0.0); -#line 237 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (key != NULL, 0.0); -#line 238 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_); -#line 238 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 238 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3175 "GSettingsEngine.c" - gdouble _tmp0_ = 0.0; -#line 238 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 238 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp0_; -#line 3181 "GSettingsEngine.c" - } else { - gdouble _tmp1_ = 0.0; -#line 238 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 238 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 238 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp1_; -#line 3190 "GSettingsEngine.c" - } - } -#line 240 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = g_settings_new (schema); -#line 240 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_object = _tmp2_; -#line 242 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = schema_object; -#line 242 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = g_settings_get_double (_tmp3_, key); -#line 242 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_object_unref0 (schema_object); -#line 242 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 3205 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_set_gs_double (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - gdouble value, - GError** error) -{ - GSettings* schema_object = NULL; - GSettings* _tmp0_; - GSettings* _tmp1_; - GError * _inner_error_ = NULL; -#line 245 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self)); -#line 245 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (schema != NULL); -#line 245 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (key != NULL); -#line 246 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_); -#line 246 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 246 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 246 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 246 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 3236 "GSettingsEngine.c" - } else { -#line 246 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 246 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 246 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 3244 "GSettingsEngine.c" - } - } -#line 248 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = g_settings_new (schema); -#line 248 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_object = _tmp0_; -#line 250 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = schema_object; -#line 250 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_settings_set_double (_tmp1_, key, value); -#line 245 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_object_unref0 (schema_object); -#line 3257 "GSettingsEngine.c" -} - - -static gchar* -gsettings_configuration_engine_get_gs_string (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - GError** error) -{ - gchar* result = NULL; - GSettings* schema_object = NULL; - GSettings* _tmp0_; - GSettings* _tmp1_; - gchar* _tmp2_; - GError * _inner_error_ = NULL; -#line 253 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self), NULL); -#line 253 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (schema != NULL, NULL); -#line 253 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (key != NULL, NULL); -#line 254 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_); -#line 254 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 254 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 254 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 254 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return NULL; -#line 3289 "GSettingsEngine.c" - } else { -#line 254 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 254 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 254 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return NULL; -#line 3297 "GSettingsEngine.c" - } - } -#line 256 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = g_settings_new (schema); -#line 256 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_object = _tmp0_; -#line 258 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = schema_object; -#line 258 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = g_settings_get_string (_tmp1_, key); -#line 258 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = _tmp2_; -#line 258 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_object_unref0 (schema_object); -#line 258 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 3314 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_set_gs_string (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - const gchar* value, - GError** error) -{ - GSettings* schema_object = NULL; - GSettings* _tmp0_; - GSettings* _tmp1_; - GError * _inner_error_ = NULL; -#line 261 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self)); -#line 261 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (schema != NULL); -#line 261 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (key != NULL); -#line 261 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (value != NULL); -#line 262 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_); -#line 262 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 262 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 262 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 262 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 3347 "GSettingsEngine.c" - } else { -#line 262 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 262 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 262 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 3355 "GSettingsEngine.c" - } - } -#line 264 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = g_settings_new (schema); -#line 264 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_object = _tmp0_; -#line 266 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = schema_object; -#line 266 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_settings_set_string (_tmp1_, key, value); -#line 261 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_object_unref0 (schema_object); -#line 3368 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_reset_gs_to_default (GSettingsConfigurationEngine* self, - const gchar* schema, - const gchar* key, - GError** error) -{ - GSettings* schema_object = NULL; - GSettings* _tmp0_; - GSettings* _tmp1_; - GError * _inner_error_ = NULL; -#line 269 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (IS_GSETTINGS_CONFIGURATION_ENGINE (self)); -#line 269 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (schema != NULL); -#line 269 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (key != NULL); -#line 270 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_check_key_valid (self, schema, key, &_inner_error_); -#line 270 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 270 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 270 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 270 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 3398 "GSettingsEngine.c" - } else { -#line 270 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 270 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 270 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 3406 "GSettingsEngine.c" - } - } -#line 272 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = g_settings_new (schema); -#line 272 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_object = _tmp0_; -#line 274 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = schema_object; -#line 274 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_settings_reset (_tmp1_, key); -#line 269 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_object_unref0 (schema_object); -#line 3419 "GSettingsEngine.c" -} - - -static gchar* -string_replace (const gchar* self, - const gchar* old, - const gchar* replacement) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 3442 "GSettingsEngine.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 3446 "GSettingsEngine.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 3452 "GSettingsEngine.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 3456 "GSettingsEngine.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 3460 "GSettingsEngine.c" - gchar* _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = g_strdup (self); -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3468 "GSettingsEngine.c" - } - { - GRegex* regex = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GRegex* _tmp5_; - GRegex* _tmp6_; - gchar* _tmp7_ = NULL; - GRegex* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_regex_escape_string (old, -1); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp5_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp4_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - regex = _tmp6_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 3496 "GSettingsEngine.c" - goto __catch217_g_regex_error; - } -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 3505 "GSettingsEngine.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = regex; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp9_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 3519 "GSettingsEngine.c" - goto __catch217_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 3530 "GSettingsEngine.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = _tmp7_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = NULL; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp10_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp7_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3544 "GSettingsEngine.c" - } - goto __finally217; - __catch217_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 3558 "GSettingsEngine.c" - } - __finally217: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 3569 "GSettingsEngine.c" - } -} - - -static gchar* -string_strip (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strstrip (_tmp1_); -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3595 "GSettingsEngine.c" -} - - -static gchar* -gsettings_configuration_engine_clean_plugin_id (const gchar* id) -{ - gchar* result = NULL; - gchar* cleaned = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_ = NULL; - const gchar* _tmp4_; - gchar* _tmp6_; -#line 277 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (id != NULL, NULL); -#line 278 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = string_replace (id, "/", "-"); -#line 278 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - cleaned = _tmp0_; -#line 279 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = cleaned; -#line 279 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = string_strip (_tmp1_); -#line 279 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (cleaned); -#line 279 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - cleaned = _tmp2_; -#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = cleaned; -#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (!is_string_empty (_tmp4_)) { -#line 3628 "GSettingsEngine.c" - const gchar* _tmp5_; -#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp5_ = cleaned; -#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = _tmp5_; -#line 3634 "GSettingsEngine.c" - } else { -#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = NULL; -#line 3638 "GSettingsEngine.c" - } -#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp6_ = g_strdup (_tmp3_); -#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = _tmp6_; -#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (cleaned); -#line 281 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 3648 "GSettingsEngine.c" -} - - -static gchar* -gsettings_configuration_engine_get_plugin_enable_disable_name (const gchar* id) -{ - gchar* result = NULL; - gchar* cleaned_id = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp3_; - gchar* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; -#line 284 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (id != NULL, NULL); -#line 285 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = gsettings_configuration_engine_clean_plugin_id (id); -#line 285 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - cleaned_id = _tmp0_; -#line 286 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = cleaned_id; -#line 286 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_tmp1_ == NULL) { -#line 3673 "GSettingsEngine.c" - gchar* _tmp2_; -#line 287 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = g_strdup ("default"); -#line 287 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (cleaned_id); -#line 287 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - cleaned_id = _tmp2_; -#line 3681 "GSettingsEngine.c" - } -#line 289 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = cleaned_id; -#line 289 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = string_replace (_tmp3_, "org.yorba.shotwell.", ""); -#line 289 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (cleaned_id); -#line 289 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - cleaned_id = _tmp4_; -#line 290 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp5_ = cleaned_id; -#line 290 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp6_ = string_replace (_tmp5_, ".", "-"); -#line 290 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (cleaned_id); -#line 290 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - cleaned_id = _tmp6_; -#line 292 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = cleaned_id; -#line 292 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 3703 "GSettingsEngine.c" -} - - -static gchar* -gsettings_configuration_engine_make_plugin_schema_name (const gchar* domain, - const gchar* id) -{ - gchar* result = NULL; - gchar* cleaned_id = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp3_; - gchar* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; -#line 295 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (domain != NULL, NULL); -#line 295 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (id != NULL, NULL); -#line 296 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = gsettings_configuration_engine_clean_plugin_id (id); -#line 296 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - cleaned_id = _tmp0_; -#line 297 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = cleaned_id; -#line 297 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_tmp1_ == NULL) { -#line 3731 "GSettingsEngine.c" - gchar* _tmp2_; -#line 298 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = g_strdup ("default"); -#line 298 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (cleaned_id); -#line 298 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - cleaned_id = _tmp2_; -#line 3739 "GSettingsEngine.c" - } -#line 299 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = cleaned_id; -#line 299 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = string_replace (_tmp3_, ".", "-"); -#line 299 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (cleaned_id); -#line 299 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - cleaned_id = _tmp4_; -#line 301 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp5_ = cleaned_id; -#line 301 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp6_ = g_strdup_printf ("org.yorba.shotwell.%s.%s", domain, _tmp5_); -#line 301 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = _tmp6_; -#line 301 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (cleaned_id); -#line 301 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 3759 "GSettingsEngine.c" -} - - -static gchar* -gsettings_configuration_engine_make_gsettings_key (const gchar* gconf_key) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 304 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (gconf_key != NULL, NULL); -#line 305 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = string_replace (gconf_key, "_", "-"); -#line 305 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = _tmp0_; -#line 305 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 3776 "GSettingsEngine.c" -} - - -static gchar* -gsettings_configuration_engine_real_get_name (ConfigurationEngine* base) -{ - GSettingsConfigurationEngine * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 308 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 309 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = g_strdup ("GSettings"); -#line 309 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = _tmp0_; -#line 309 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 3794 "GSettingsEngine.c" -} - - -static gint -gsettings_configuration_engine_real_get_enum_property (ConfigurationEngine* base, - ConfigurableProperty p, - GError** error) -{ - GSettingsConfigurationEngine * self; - gint result = 0; - gint _tmp0_ = 0; - gchar** _tmp1_; - gint _tmp1__length1; - const gchar* _tmp2_; - gchar** _tmp3_; - gint _tmp3__length1; - const gchar* _tmp4_; - GError * _inner_error_ = NULL; -#line 312 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = self->priv->schema_names; -#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1__length1 = self->priv->schema_names_length1; -#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = _tmp1_[p]; -#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = self->priv->key_names; -#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3__length1 = self->priv->key_names_length1; -#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = _tmp3_[p]; -#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = gsettings_configuration_engine_get_gs_enum (self, _tmp2_, _tmp4_, &_inner_error_); -#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3833 "GSettingsEngine.c" - gint _tmp5_ = 0; -#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp5_; -#line 3839 "GSettingsEngine.c" - } else { - gint _tmp6_ = 0; -#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp6_; -#line 3848 "GSettingsEngine.c" - } - } -#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = _tmp0_; -#line 313 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 3855 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_real_set_enum_property (ConfigurationEngine* base, - ConfigurableProperty p, - gint val, - GError** error) -{ - GSettingsConfigurationEngine * self; - gchar** _tmp0_; - gint _tmp0__length1; - const gchar* _tmp1_; - gchar** _tmp2_; - gint _tmp2__length1; - const gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 316 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = self->priv->schema_names; -#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0__length1 = self->priv->schema_names_length1; -#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = _tmp0_[p]; -#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = self->priv->key_names; -#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2__length1 = self->priv->key_names_length1; -#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = _tmp2_[p]; -#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_set_gs_enum (self, _tmp1_, _tmp3_, val, &_inner_error_); -#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 3897 "GSettingsEngine.c" - } else { -#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 317 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 3905 "GSettingsEngine.c" - } - } -#line 318 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_ENGINE, ConfigurationEngine), "property-changed", p); -#line 3910 "GSettingsEngine.c" -} - - -static gint -gsettings_configuration_engine_real_get_int_property (ConfigurationEngine* base, - ConfigurableProperty p, - GError** error) -{ - GSettingsConfigurationEngine * self; - gint result = 0; - gint _tmp0_ = 0; - gchar** _tmp1_; - gint _tmp1__length1; - const gchar* _tmp2_; - gchar** _tmp3_; - gint _tmp3__length1; - const gchar* _tmp4_; - GError * _inner_error_ = NULL; -#line 321 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = self->priv->schema_names; -#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1__length1 = self->priv->schema_names_length1; -#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = _tmp1_[p]; -#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = self->priv->key_names; -#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3__length1 = self->priv->key_names_length1; -#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = _tmp3_[p]; -#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = gsettings_configuration_engine_get_gs_int (self, _tmp2_, _tmp4_, &_inner_error_); -#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 3949 "GSettingsEngine.c" - gint _tmp5_ = 0; -#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp5_; -#line 3955 "GSettingsEngine.c" - } else { - gint _tmp6_ = 0; -#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp6_; -#line 3964 "GSettingsEngine.c" - } - } -#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = _tmp0_; -#line 322 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 3971 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_real_set_int_property (ConfigurationEngine* base, - ConfigurableProperty p, - gint val, - GError** error) -{ - GSettingsConfigurationEngine * self; - gchar** _tmp0_; - gint _tmp0__length1; - const gchar* _tmp1_; - gchar** _tmp2_; - gint _tmp2__length1; - const gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 325 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = self->priv->schema_names; -#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0__length1 = self->priv->schema_names_length1; -#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = _tmp0_[p]; -#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = self->priv->key_names; -#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2__length1 = self->priv->key_names_length1; -#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = _tmp2_[p]; -#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_set_gs_int (self, _tmp1_, _tmp3_, val, &_inner_error_); -#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 4013 "GSettingsEngine.c" - } else { -#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 326 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 4021 "GSettingsEngine.c" - } - } -#line 327 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_ENGINE, ConfigurationEngine), "property-changed", p); -#line 4026 "GSettingsEngine.c" -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 4050 "GSettingsEngine.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 4059 "GSettingsEngine.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 4080 "GSettingsEngine.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 4084 "GSettingsEngine.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 4090 "GSettingsEngine.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 4100 "GSettingsEngine.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 4104 "GSettingsEngine.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 4112 "GSettingsEngine.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 4119 "GSettingsEngine.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 4123 "GSettingsEngine.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 4129 "GSettingsEngine.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 4141 "GSettingsEngine.c" -} - - -static gchar* -gsettings_configuration_engine_real_get_string_property (ConfigurationEngine* base, - ConfigurableProperty p, - GError** error) -{ - GSettingsConfigurationEngine * self; - gchar* result = NULL; - gchar* gs_result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - const gchar* _tmp1_; - gchar** _tmp2_; - gint _tmp2__length1; - const gchar* _tmp3_; - gchar* _tmp4_; - gchar* _result_ = NULL; - gchar* _tmp5_; - GError * _inner_error_ = NULL; -#line 330 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = self->priv->schema_names; -#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0__length1 = self->priv->schema_names_length1; -#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = _tmp0_[p]; -#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = self->priv->key_names; -#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2__length1 = self->priv->key_names_length1; -#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = _tmp2_[p]; -#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = gsettings_configuration_engine_get_gs_string (self, _tmp1_, _tmp3_, &_inner_error_); -#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gs_result = _tmp4_; -#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return NULL; -#line 4189 "GSettingsEngine.c" - } else { -#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 331 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return NULL; -#line 4197 "GSettingsEngine.c" - } - } -#line 335 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp5_ = g_strdup (gs_result); -#line 335 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _result_ = _tmp5_; -#line 336 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (p == CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE) { -#line 4206 "GSettingsEngine.c" - gchar* _tmp6_; -#line 337 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp6_ = string_substring (gs_result, (glong) 7, (glong) -1); -#line 337 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_result_); -#line 337 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _result_ = _tmp6_; -#line 4214 "GSettingsEngine.c" - } -#line 340 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = _result_; -#line 340 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (gs_result); -#line 340 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 4222 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_real_set_string_property (ConfigurationEngine* base, - ConfigurableProperty p, - const gchar* val, - GError** error) -{ - GSettingsConfigurationEngine * self; - gchar* converted_val = NULL; - gchar* _tmp0_; - gboolean _tmp1_ = FALSE; - gchar** _tmp3_; - gint _tmp3__length1; - const gchar* _tmp4_; - gchar** _tmp5_; - gint _tmp5__length1; - const gchar* _tmp6_; - const gchar* _tmp7_; - GError * _inner_error_ = NULL; -#line 343 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 343 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (val != NULL); -#line 345 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = g_strdup (val); -#line 345 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - converted_val = _tmp0_; -#line 346 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (p == CONFIGURABLE_PROPERTY_DESKTOP_BACKGROUND_FILE) { -#line 346 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = TRUE; -#line 4256 "GSettingsEngine.c" - } else { -#line 347 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = p == CONFIGURABLE_PROPERTY_SCREENSAVER_FILE; -#line 4260 "GSettingsEngine.c" - } -#line 346 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_tmp1_) { -#line 4264 "GSettingsEngine.c" - gchar* _tmp2_; -#line 348 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = g_strconcat ("file://", val, NULL); -#line 348 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (converted_val); -#line 348 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - converted_val = _tmp2_; -#line 4272 "GSettingsEngine.c" - } -#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = self->priv->schema_names; -#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3__length1 = self->priv->schema_names_length1; -#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = _tmp3_[p]; -#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp5_ = self->priv->key_names; -#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp5__length1 = self->priv->key_names_length1; -#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp6_ = _tmp5_[p]; -#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp7_ = converted_val; -#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_set_gs_string (self, _tmp4_, _tmp6_, _tmp7_, &_inner_error_); -#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (converted_val); -#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 4300 "GSettingsEngine.c" - } else { -#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (converted_val); -#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 351 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 4310 "GSettingsEngine.c" - } - } -#line 352 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_ENGINE, ConfigurationEngine), "property-changed", p); -#line 343 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (converted_val); -#line 4317 "GSettingsEngine.c" -} - - -static gboolean -gsettings_configuration_engine_real_get_bool_property (ConfigurationEngine* base, - ConfigurableProperty p, - GError** error) -{ - GSettingsConfigurationEngine * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gchar** _tmp1_; - gint _tmp1__length1; - const gchar* _tmp2_; - gchar** _tmp3_; - gint _tmp3__length1; - const gchar* _tmp4_; - GError * _inner_error_ = NULL; -#line 355 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = self->priv->schema_names; -#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1__length1 = self->priv->schema_names_length1; -#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = _tmp1_[p]; -#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = self->priv->key_names; -#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3__length1 = self->priv->key_names_length1; -#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = _tmp3_[p]; -#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = gsettings_configuration_engine_get_gs_bool (self, _tmp2_, _tmp4_, &_inner_error_); -#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4356 "GSettingsEngine.c" - gboolean _tmp5_ = FALSE; -#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp5_; -#line 4362 "GSettingsEngine.c" - } else { - gboolean _tmp6_ = FALSE; -#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp6_; -#line 4371 "GSettingsEngine.c" - } - } -#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = _tmp0_; -#line 356 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 4378 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_real_set_bool_property (ConfigurationEngine* base, - ConfigurableProperty p, - gboolean val, - GError** error) -{ - GSettingsConfigurationEngine * self; - gchar** _tmp0_; - gint _tmp0__length1; - const gchar* _tmp1_; - gchar** _tmp2_; - gint _tmp2__length1; - const gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 359 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = self->priv->schema_names; -#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0__length1 = self->priv->schema_names_length1; -#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = _tmp0_[p]; -#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = self->priv->key_names; -#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2__length1 = self->priv->key_names_length1; -#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = _tmp2_[p]; -#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_set_gs_bool (self, _tmp1_, _tmp3_, val, &_inner_error_); -#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 4420 "GSettingsEngine.c" - } else { -#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 360 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 4428 "GSettingsEngine.c" - } - } -#line 361 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_ENGINE, ConfigurationEngine), "property-changed", p); -#line 4433 "GSettingsEngine.c" -} - - -static gdouble -gsettings_configuration_engine_real_get_double_property (ConfigurationEngine* base, - ConfigurableProperty p, - GError** error) -{ - GSettingsConfigurationEngine * self; - gdouble result = 0.0; - gdouble _tmp0_ = 0.0; - gchar** _tmp1_; - gint _tmp1__length1; - const gchar* _tmp2_; - gchar** _tmp3_; - gint _tmp3__length1; - const gchar* _tmp4_; - GError * _inner_error_ = NULL; -#line 364 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = self->priv->schema_names; -#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1__length1 = self->priv->schema_names_length1; -#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = _tmp1_[p]; -#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = self->priv->key_names; -#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3__length1 = self->priv->key_names_length1; -#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = _tmp3_[p]; -#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = gsettings_configuration_engine_get_gs_double (self, _tmp2_, _tmp4_, &_inner_error_); -#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4472 "GSettingsEngine.c" - gdouble _tmp5_ = 0.0; -#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp5_; -#line 4478 "GSettingsEngine.c" - } else { - gdouble _tmp6_ = 0.0; -#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp6_; -#line 4487 "GSettingsEngine.c" - } - } -#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = _tmp0_; -#line 365 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 4494 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_real_set_double_property (ConfigurationEngine* base, - ConfigurableProperty p, - gdouble val, - GError** error) -{ - GSettingsConfigurationEngine * self; - gchar** _tmp0_; - gint _tmp0__length1; - const gchar* _tmp1_; - gchar** _tmp2_; - gint _tmp2__length1; - const gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 368 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = self->priv->schema_names; -#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0__length1 = self->priv->schema_names_length1; -#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = _tmp0_[p]; -#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = self->priv->key_names; -#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2__length1 = self->priv->key_names_length1; -#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = _tmp2_[p]; -#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_set_gs_double (self, _tmp1_, _tmp3_, val, &_inner_error_); -#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_propagate_error (error, _inner_error_); -#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 4536 "GSettingsEngine.c" - } else { -#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 369 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 4544 "GSettingsEngine.c" - } - } -#line 370 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CONFIGURATION_ENGINE, ConfigurationEngine), "property-changed", p); -#line 4549 "GSettingsEngine.c" -} - - -static gboolean -gsettings_configuration_engine_real_get_plugin_bool (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean def) -{ - GSettingsConfigurationEngine * self; - gboolean result = FALSE; - gchar* schema_name = NULL; - gchar* _tmp0_; - gboolean _tmp8_ = FALSE; - GError * _inner_error_ = NULL; -#line 373 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 373 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (domain != NULL, FALSE); -#line 373 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (id != NULL, FALSE); -#line 373 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (key != NULL, FALSE); -#line 374 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id); -#line 374 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_name = _tmp0_; -#line 4578 "GSettingsEngine.c" - { - gboolean _tmp1_ = FALSE; - gchar* _tmp2_; - gchar* _tmp3_; - gboolean _tmp4_; -#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = gsettings_configuration_engine_make_gsettings_key (key); -#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = _tmp2_; -#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = gsettings_configuration_engine_get_gs_bool (self, schema_name, _tmp3_, &_inner_error_); -#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp3_); -#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = _tmp4_; -#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4596 "GSettingsEngine.c" - gboolean _tmp5_ = FALSE; -#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4600 "GSettingsEngine.c" - goto __catch218_configuration_error; - } -#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp5_; -#line 4611 "GSettingsEngine.c" - } -#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = _tmp1_; -#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 377 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 4619 "GSettingsEngine.c" - } - goto __finally218; - __catch218_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; - const gchar* _tmp7_; -#line 376 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - err = _inner_error_; -#line 376 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _inner_error_ = NULL; -#line 379 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp6_ = err; -#line 379 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp7_ = _tmp6_->message; -#line 379 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("GSettingsEngine.vala:379: GSettingsConfigurationEngine: error: %s", _tmp7_); -#line 380 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = def; -#line 380 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_error_free0 (err); -#line 380 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 380 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 4645 "GSettingsEngine.c" - } - __finally218: -#line 376 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 376 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 376 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 376 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp8_; -#line 4656 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_real_set_plugin_bool (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean val) -{ - GSettingsConfigurationEngine * self; - gchar* schema_name = NULL; - gchar* _tmp0_; - GError * _inner_error_ = NULL; -#line 384 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 384 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (domain != NULL); -#line 384 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (id != NULL); -#line 384 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (key != NULL); -#line 385 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id); -#line 385 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_name = _tmp0_; -#line 4683 "GSettingsEngine.c" - { - gchar* _tmp1_; - gchar* _tmp2_; -#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = gsettings_configuration_engine_make_gsettings_key (key); -#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = _tmp1_; -#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_set_gs_bool (self, schema_name, _tmp2_, val, &_inner_error_); -#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp2_); -#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4699 "GSettingsEngine.c" - goto __catch219_configuration_error; - } -#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 388 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 4710 "GSettingsEngine.c" - } - } - goto __finally219; - __catch219_configuration_error: - { - GError* err = NULL; - GError* _tmp3_; - const gchar* _tmp4_; -#line 387 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - err = _inner_error_; -#line 387 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _inner_error_ = NULL; -#line 390 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = err; -#line 390 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = _tmp3_->message; -#line 390 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("GSettingsEngine.vala:390: GSettingsConfigurationEngine: error: %s", _tmp4_); -#line 387 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_error_free0 (err); -#line 4731 "GSettingsEngine.c" - } - __finally219: -#line 387 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 387 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 387 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 387 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 387 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 4744 "GSettingsEngine.c" - } -#line 384 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 4748 "GSettingsEngine.c" -} - - -static gdouble -gsettings_configuration_engine_real_get_plugin_double (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble def) -{ - GSettingsConfigurationEngine * self; - gdouble result = 0.0; - gchar* schema_name = NULL; - gchar* _tmp0_; - gdouble _tmp8_ = 0.0; - GError * _inner_error_ = NULL; -#line 394 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 394 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (domain != NULL, 0.0); -#line 394 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (id != NULL, 0.0); -#line 394 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (key != NULL, 0.0); -#line 395 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id); -#line 395 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_name = _tmp0_; -#line 4777 "GSettingsEngine.c" - { - gdouble _tmp1_ = 0.0; - gchar* _tmp2_; - gchar* _tmp3_; - gdouble _tmp4_; -#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = gsettings_configuration_engine_make_gsettings_key (key); -#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = _tmp2_; -#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = gsettings_configuration_engine_get_gs_double (self, schema_name, _tmp3_, &_inner_error_); -#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp3_); -#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = _tmp4_; -#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4795 "GSettingsEngine.c" - gdouble _tmp5_ = 0.0; -#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4799 "GSettingsEngine.c" - goto __catch220_configuration_error; - } -#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp5_; -#line 4810 "GSettingsEngine.c" - } -#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = _tmp1_; -#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 398 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 4818 "GSettingsEngine.c" - } - goto __finally220; - __catch220_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; - const gchar* _tmp7_; -#line 397 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - err = _inner_error_; -#line 397 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _inner_error_ = NULL; -#line 400 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp6_ = err; -#line 400 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp7_ = _tmp6_->message; -#line 400 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("GSettingsEngine.vala:400: GSettingsConfigurationEngine: error: %s", _tmp7_); -#line 401 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = def; -#line 401 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_error_free0 (err); -#line 401 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 401 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 4844 "GSettingsEngine.c" - } - __finally220: -#line 397 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 397 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 397 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 397 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp8_; -#line 4855 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_real_set_plugin_double (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble val) -{ - GSettingsConfigurationEngine * self; - gchar* schema_name = NULL; - gchar* _tmp0_; - GError * _inner_error_ = NULL; -#line 405 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 405 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (domain != NULL); -#line 405 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (id != NULL); -#line 405 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (key != NULL); -#line 406 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id); -#line 406 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_name = _tmp0_; -#line 4882 "GSettingsEngine.c" - { - gchar* _tmp1_; - gchar* _tmp2_; -#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = gsettings_configuration_engine_make_gsettings_key (key); -#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = _tmp1_; -#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_set_gs_double (self, schema_name, _tmp2_, val, &_inner_error_); -#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp2_); -#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4898 "GSettingsEngine.c" - goto __catch221_configuration_error; - } -#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 409 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 4909 "GSettingsEngine.c" - } - } - goto __finally221; - __catch221_configuration_error: - { - GError* err = NULL; - GError* _tmp3_; - const gchar* _tmp4_; -#line 408 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - err = _inner_error_; -#line 408 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _inner_error_ = NULL; -#line 411 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = err; -#line 411 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = _tmp3_->message; -#line 411 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("GSettingsEngine.vala:411: GSettingsConfigurationEngine: error: %s", _tmp4_); -#line 408 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_error_free0 (err); -#line 4930 "GSettingsEngine.c" - } - __finally221: -#line 408 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 408 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 408 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 408 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 408 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 4943 "GSettingsEngine.c" - } -#line 405 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 4947 "GSettingsEngine.c" -} - - -static gint -gsettings_configuration_engine_real_get_plugin_int (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key, - gint def) -{ - GSettingsConfigurationEngine * self; - gint result = 0; - gchar* schema_name = NULL; - gchar* _tmp0_; - gint _tmp8_ = 0; - GError * _inner_error_ = NULL; -#line 415 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 415 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (domain != NULL, 0); -#line 415 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (id != NULL, 0); -#line 415 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (key != NULL, 0); -#line 416 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id); -#line 416 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_name = _tmp0_; -#line 4976 "GSettingsEngine.c" - { - gint _tmp1_ = 0; - gchar* _tmp2_; - gchar* _tmp3_; - gint _tmp4_; -#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = gsettings_configuration_engine_make_gsettings_key (key); -#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = _tmp2_; -#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = gsettings_configuration_engine_get_gs_int (self, schema_name, _tmp3_, &_inner_error_); -#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp3_); -#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = _tmp4_; -#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4994 "GSettingsEngine.c" - gint _tmp5_ = 0; -#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 4998 "GSettingsEngine.c" - goto __catch222_configuration_error; - } -#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp5_; -#line 5009 "GSettingsEngine.c" - } -#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = _tmp1_; -#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 419 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 5017 "GSettingsEngine.c" - } - goto __finally222; - __catch222_configuration_error: - { - GError* err = NULL; - GError* _tmp6_; - const gchar* _tmp7_; -#line 418 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - err = _inner_error_; -#line 418 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _inner_error_ = NULL; -#line 421 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp6_ = err; -#line 421 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp7_ = _tmp6_->message; -#line 421 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("GSettingsEngine.vala:421: GSettingsConfigurationEngine: error: %s", _tmp7_); -#line 422 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = def; -#line 422 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_error_free0 (err); -#line 422 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 422 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 5043 "GSettingsEngine.c" - } - __finally222: -#line 418 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 418 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 418 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 418 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return _tmp8_; -#line 5054 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_real_set_plugin_int (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key, - gint val) -{ - GSettingsConfigurationEngine * self; - gchar* schema_name = NULL; - gchar* _tmp0_; - GError * _inner_error_ = NULL; -#line 426 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 426 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (domain != NULL); -#line 426 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (id != NULL); -#line 426 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (key != NULL); -#line 427 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id); -#line 427 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_name = _tmp0_; -#line 5081 "GSettingsEngine.c" - { - gchar* _tmp1_; - gchar* _tmp2_; -#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = gsettings_configuration_engine_make_gsettings_key (key); -#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = _tmp1_; -#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_set_gs_int (self, schema_name, _tmp2_, val, &_inner_error_); -#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp2_); -#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5097 "GSettingsEngine.c" - goto __catch223_configuration_error; - } -#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 430 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 5108 "GSettingsEngine.c" - } - } - goto __finally223; - __catch223_configuration_error: - { - GError* err = NULL; - GError* _tmp3_; - const gchar* _tmp4_; -#line 429 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - err = _inner_error_; -#line 429 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _inner_error_ = NULL; -#line 432 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = err; -#line 432 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = _tmp3_->message; -#line 432 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("GSettingsEngine.vala:432: GSettingsConfigurationEngine: error: %s", _tmp4_); -#line 429 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_error_free0 (err); -#line 5129 "GSettingsEngine.c" - } - __finally223: -#line 429 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 429 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 429 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 429 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 429 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 5142 "GSettingsEngine.c" - } -#line 426 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 5146 "GSettingsEngine.c" -} - - -static gchar* -gsettings_configuration_engine_real_get_plugin_string (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* def) -{ - GSettingsConfigurationEngine * self; - gchar* result = NULL; - gchar* schema_name = NULL; - gchar* _tmp0_; - GError * _inner_error_ = NULL; -#line 436 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 436 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (domain != NULL, NULL); -#line 436 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (id != NULL, NULL); -#line 436 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (key != NULL, NULL); -#line 437 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id); -#line 437 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_name = _tmp0_; -#line 5174 "GSettingsEngine.c" - { - gchar* _tmp1_ = NULL; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = gsettings_configuration_engine_make_gsettings_key (key); -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = _tmp2_; -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = gsettings_configuration_engine_get_gs_string (self, schema_name, _tmp3_, &_inner_error_); -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp5_ = _tmp4_; -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp3_); -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = _tmp5_; -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5198 "GSettingsEngine.c" - goto __catch224_configuration_error; - } -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return NULL; -#line 5209 "GSettingsEngine.c" - } -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp6_ = _tmp1_; -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = NULL; -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = _tmp6_; -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp1_); -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 440 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 5223 "GSettingsEngine.c" - } - goto __finally224; - __catch224_configuration_error: - { - GError* err = NULL; - GError* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; -#line 439 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - err = _inner_error_; -#line 439 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _inner_error_ = NULL; -#line 442 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp7_ = err; -#line 442 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp8_ = _tmp7_->message; -#line 442 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("GSettingsEngine.vala:442: GSettingsConfigurationEngine: error: %s", _tmp8_); -#line 443 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp9_ = g_strdup (def); -#line 443 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = _tmp9_; -#line 443 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_error_free0 (err); -#line 443 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 443 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 5252 "GSettingsEngine.c" - } - __finally224: -#line 439 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 439 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 439 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 439 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return NULL; -#line 5263 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_real_set_plugin_string (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* val) -{ - GSettingsConfigurationEngine * self; - gchar* schema_name = NULL; - gchar* _tmp0_; - GError * _inner_error_ = NULL; -#line 447 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 447 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (domain != NULL); -#line 447 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (id != NULL); -#line 447 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (key != NULL); -#line 448 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id); -#line 448 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_name = _tmp0_; -#line 5290 "GSettingsEngine.c" - { - gchar* _tmp1_; - gchar* _tmp2_; -#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = gsettings_configuration_engine_make_gsettings_key (key); -#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = _tmp1_; -#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_set_gs_string (self, schema_name, _tmp2_, val, &_inner_error_); -#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp2_); -#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5306 "GSettingsEngine.c" - goto __catch225_configuration_error; - } -#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 451 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 5317 "GSettingsEngine.c" - } - } - goto __finally225; - __catch225_configuration_error: - { - GError* err = NULL; - GError* _tmp3_; - const gchar* _tmp4_; -#line 450 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - err = _inner_error_; -#line 450 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _inner_error_ = NULL; -#line 453 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = err; -#line 453 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = _tmp3_->message; -#line 453 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("GSettingsEngine.vala:453: GSettingsConfigurationEngine: error: %s", _tmp4_); -#line 450 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_error_free0 (err); -#line 5338 "GSettingsEngine.c" - } - __finally225: -#line 450 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 450 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 450 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 450 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 450 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 5351 "GSettingsEngine.c" - } -#line 447 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 5355 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_real_unset_plugin_key (ConfigurationEngine* base, - const gchar* domain, - const gchar* id, - const gchar* key) -{ - GSettingsConfigurationEngine * self; - gchar* schema_name = NULL; - gchar* _tmp0_; - GError * _inner_error_ = NULL; -#line 457 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 457 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (domain != NULL); -#line 457 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (id != NULL); -#line 457 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (key != NULL); -#line 458 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = gsettings_configuration_engine_make_plugin_schema_name (domain, id); -#line 458 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - schema_name = _tmp0_; -#line 5381 "GSettingsEngine.c" - { - gchar* _tmp1_; - gchar* _tmp2_; -#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = gsettings_configuration_engine_make_gsettings_key (key); -#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = _tmp1_; -#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_reset_gs_to_default (self, schema_name, _tmp2_, &_inner_error_); -#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp2_); -#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5397 "GSettingsEngine.c" - goto __catch226_configuration_error; - } -#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 461 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 5408 "GSettingsEngine.c" - } - } - goto __finally226; - __catch226_configuration_error: - { - GError* err = NULL; - GError* _tmp3_; - const gchar* _tmp4_; -#line 460 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - err = _inner_error_; -#line 460 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _inner_error_ = NULL; -#line 463 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = err; -#line 463 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = _tmp3_->message; -#line 463 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("GSettingsEngine.vala:463: GSettingsConfigurationEngine: error: %s", _tmp4_); -#line 460 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_error_free0 (err); -#line 5429 "GSettingsEngine.c" - } - __finally226: -#line 460 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 460 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 460 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 460 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 460 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 5442 "GSettingsEngine.c" - } -#line 457 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (schema_name); -#line 5446 "GSettingsEngine.c" -} - - -static FuzzyPropertyState -gsettings_configuration_engine_real_is_plugin_enabled (ConfigurationEngine* base, - const gchar* id) -{ - GSettingsConfigurationEngine * self; - FuzzyPropertyState result = 0; - gchar* enable_disable_name = NULL; - gchar* _tmp0_; - GError * _inner_error_ = NULL; -#line 467 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 467 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_val_if_fail (id != NULL, 0); -#line 468 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = gsettings_configuration_engine_get_plugin_enable_disable_name (id); -#line 468 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - enable_disable_name = _tmp0_; -#line 5467 "GSettingsEngine.c" - { - FuzzyPropertyState _tmp1_ = 0; - gboolean _tmp2_ = FALSE; -#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = gsettings_configuration_engine_get_gs_bool (self, GSETTINGS_CONFIGURATION_ENGINE_PLUGINS_ENABLE_DISABLE_SCHEMA_NAME, enable_disable_name, &_inner_error_); -#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5477 "GSettingsEngine.c" - goto __catch227_configuration_error; - } -#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (enable_disable_name); -#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return 0; -#line 5488 "GSettingsEngine.c" - } -#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_tmp2_) { -#line 472 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = FUZZY_PROPERTY_STATE_ENABLED; -#line 5494 "GSettingsEngine.c" - } else { -#line 472 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = FUZZY_PROPERTY_STATE_DISABLED; -#line 5498 "GSettingsEngine.c" - } -#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = _tmp1_; -#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (enable_disable_name); -#line 471 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 5506 "GSettingsEngine.c" - } - goto __finally227; - __catch227_configuration_error: - { - GError* err = NULL; - GError* _tmp3_; - const gchar* _tmp4_; -#line 470 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - err = _inner_error_; -#line 470 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _inner_error_ = NULL; -#line 474 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = err; -#line 474 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = _tmp3_->message; -#line 474 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("GSettingsEngine.vala:474: GSettingsConfigurationEngine: error: %s", _tmp4_); -#line 475 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - result = FUZZY_PROPERTY_STATE_UNKNOWN; -#line 475 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_error_free0 (err); -#line 475 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (enable_disable_name); -#line 475 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return result; -#line 5532 "GSettingsEngine.c" - } - __finally227: -#line 470 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (enable_disable_name); -#line 470 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 470 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 470 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return 0; -#line 5543 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_real_set_plugin_enabled (ConfigurationEngine* base, - const gchar* id, - gboolean enabled) -{ - GSettingsConfigurationEngine * self; - gchar* enable_disable_name = NULL; - gchar* _tmp0_; - GError * _inner_error_ = NULL; -#line 479 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 479 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_return_if_fail (id != NULL); -#line 480 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = gsettings_configuration_engine_get_plugin_enable_disable_name (id); -#line 480 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - enable_disable_name = _tmp0_; -#line 5564 "GSettingsEngine.c" - { -#line 483 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_set_gs_bool (self, GSETTINGS_CONFIGURATION_ENGINE_PLUGINS_ENABLE_DISABLE_SCHEMA_NAME, enable_disable_name, enabled, &_inner_error_); -#line 483 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 483 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (_inner_error_->domain == CONFIGURATION_ERROR) { -#line 5572 "GSettingsEngine.c" - goto __catch228_configuration_error; - } -#line 483 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (enable_disable_name); -#line 483 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 483 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 483 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 5583 "GSettingsEngine.c" - } - } - goto __finally228; - __catch228_configuration_error: - { - GError* err = NULL; - GError* _tmp1_; - const gchar* _tmp2_; -#line 482 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - err = _inner_error_; -#line 482 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _inner_error_ = NULL; -#line 485 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = err; -#line 485 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = _tmp1_->message; -#line 485 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("GSettingsEngine.vala:485: GSettingsConfigurationEngine: error: %s", _tmp2_); -#line 482 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_error_free0 (err); -#line 5604 "GSettingsEngine.c" - } - __finally228: -#line 482 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 482 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (enable_disable_name); -#line 482 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 482 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 482 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 5617 "GSettingsEngine.c" - } -#line 479 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (enable_disable_name); -#line 5621 "GSettingsEngine.c" -} - - -void -gsettings_configuration_engine_run_gsettings_migrator (void) -{ - gchar* cmd_line = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - GError * _inner_error_ = NULL; -#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp0_ = app_dirs_get_settings_migrator_bin (); -#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp1_ = _tmp0_; -#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp2_ = g_file_get_path (_tmp1_); -#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp3_ = _tmp2_; -#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp4_ = g_strconcat ("sh ", _tmp3_, NULL); -#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp5_ = _tmp4_; -#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (_tmp3_); -#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_object_unref0 (_tmp1_); -#line 494 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - cmd_line = _tmp5_; -#line 5654 "GSettingsEngine.c" - { -#line 497 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_spawn_command_line_sync (cmd_line, NULL, NULL, NULL, &_inner_error_); -#line 497 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5660 "GSettingsEngine.c" - goto __catch229_g_error; - } - } - goto __finally229; - __catch229_g_error: - { - GError* err = NULL; - GError* _tmp6_; - const gchar* _tmp7_; -#line 496 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - err = _inner_error_; -#line 496 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _inner_error_ = NULL; -#line 499 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp6_ = err; -#line 499 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _tmp7_ = _tmp6_->message; -#line 499 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_message ("GSettingsEngine.vala:499: Error running shotwell-settings-migrator: %s", _tmp7_); -#line 496 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_error_free0 (err); -#line 5682 "GSettingsEngine.c" - } - __finally229: -#line 496 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 496 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (cmd_line); -#line 496 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 496 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_clear_error (&_inner_error_); -#line 496 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - return; -#line 5695 "GSettingsEngine.c" - } -#line 493 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - _g_free0 (cmd_line); -#line 5699 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_class_init (GSettingsConfigurationEngineClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - g_type_class_add_private (klass, sizeof (GSettingsConfigurationEnginePrivate)); -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - G_OBJECT_CLASS (klass)->finalize = gsettings_configuration_engine_finalize; -#line 5712 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_configuration_engine_interface_init (ConfigurationEngineIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - gsettings_configuration_engine_configuration_engine_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->get_name = (gchar* (*) (ConfigurationEngine *)) gsettings_configuration_engine_real_get_name; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->get_enum_property = (gint (*) (ConfigurationEngine *, ConfigurableProperty, GError**)) gsettings_configuration_engine_real_get_enum_property; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->set_enum_property = (void (*) (ConfigurationEngine *, ConfigurableProperty, gint, GError**)) gsettings_configuration_engine_real_set_enum_property; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->get_int_property = (gint (*) (ConfigurationEngine *, ConfigurableProperty, GError**)) gsettings_configuration_engine_real_get_int_property; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->set_int_property = (void (*) (ConfigurationEngine *, ConfigurableProperty, gint, GError**)) gsettings_configuration_engine_real_set_int_property; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->get_string_property = (gchar* (*) (ConfigurationEngine *, ConfigurableProperty, GError**)) gsettings_configuration_engine_real_get_string_property; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->set_string_property = (void (*) (ConfigurationEngine *, ConfigurableProperty, const gchar*, GError**)) gsettings_configuration_engine_real_set_string_property; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->get_bool_property = (gboolean (*) (ConfigurationEngine *, ConfigurableProperty, GError**)) gsettings_configuration_engine_real_get_bool_property; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->set_bool_property = (void (*) (ConfigurationEngine *, ConfigurableProperty, gboolean, GError**)) gsettings_configuration_engine_real_set_bool_property; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->get_double_property = (gdouble (*) (ConfigurationEngine *, ConfigurableProperty, GError**)) gsettings_configuration_engine_real_get_double_property; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->set_double_property = (void (*) (ConfigurationEngine *, ConfigurableProperty, gdouble, GError**)) gsettings_configuration_engine_real_set_double_property; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->get_plugin_bool = (gboolean (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*, gboolean)) gsettings_configuration_engine_real_get_plugin_bool; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->set_plugin_bool = (void (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*, gboolean)) gsettings_configuration_engine_real_set_plugin_bool; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->get_plugin_double = (gdouble (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*, gdouble)) gsettings_configuration_engine_real_get_plugin_double; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->set_plugin_double = (void (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*, gdouble)) gsettings_configuration_engine_real_set_plugin_double; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->get_plugin_int = (gint (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*, gint)) gsettings_configuration_engine_real_get_plugin_int; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->set_plugin_int = (void (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*, gint)) gsettings_configuration_engine_real_set_plugin_int; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->get_plugin_string = (gchar* (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*, const gchar*)) gsettings_configuration_engine_real_get_plugin_string; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->set_plugin_string = (void (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*, const gchar*)) gsettings_configuration_engine_real_set_plugin_string; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->unset_plugin_key = (void (*) (ConfigurationEngine *, const gchar*, const gchar*, const gchar*)) gsettings_configuration_engine_real_unset_plugin_key; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->is_plugin_enabled = (FuzzyPropertyState (*) (ConfigurationEngine *, const gchar*)) gsettings_configuration_engine_real_is_plugin_enabled; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - iface->set_plugin_enabled = (void (*) (ConfigurationEngine *, const gchar*, gboolean)) gsettings_configuration_engine_real_set_plugin_enabled; -#line 5765 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_instance_init (GSettingsConfigurationEngine * self) -{ -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self->priv = GSETTINGS_CONFIGURATION_ENGINE_GET_PRIVATE (self); -#line 5774 "GSettingsEngine.c" -} - - -static void -gsettings_configuration_engine_finalize (GObject * obj) -{ - GSettingsConfigurationEngine * self; -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_GSETTINGS_CONFIGURATION_ENGINE, GSettingsConfigurationEngine); -#line 26 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self->priv->schema_names = (_vala_array_free (self->priv->schema_names, self->priv->schema_names_length1, (GDestroyNotify) g_free), NULL); -#line 27 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - self->priv->key_names = (_vala_array_free (self->priv->key_names, self->priv->key_names_length1, (GDestroyNotify) g_free), NULL); -#line 7 "/home/jens/Source/shotwell/src/config/GSettingsEngine.vala" - G_OBJECT_CLASS (gsettings_configuration_engine_parent_class)->finalize (obj); -#line 5790 "GSettingsEngine.c" -} - - -GType -gsettings_configuration_engine_get_type (void) -{ - static volatile gsize gsettings_configuration_engine_type_id__volatile = 0; - if (g_once_init_enter (&gsettings_configuration_engine_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (GSettingsConfigurationEngineClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gsettings_configuration_engine_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GSettingsConfigurationEngine), 0, (GInstanceInitFunc) gsettings_configuration_engine_instance_init, NULL }; - static const GInterfaceInfo configuration_engine_info = { (GInterfaceInitFunc) gsettings_configuration_engine_configuration_engine_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType gsettings_configuration_engine_type_id; - gsettings_configuration_engine_type_id = g_type_register_static (G_TYPE_OBJECT, "GSettingsConfigurationEngine", &g_define_type_info, 0); - g_type_add_interface_static (gsettings_configuration_engine_type_id, TYPE_CONFIGURATION_ENGINE, &configuration_engine_info); - g_once_init_leave (&gsettings_configuration_engine_type_id__volatile, gsettings_configuration_engine_type_id); - } - return gsettings_configuration_engine_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/config/GSettingsEngine.vala b/src/config/GSettingsEngine.vala index 89116a7..a3d4e04 100644 --- a/src/config/GSettingsEngine.vala +++ b/src/config/GSettingsEngine.vala @@ -25,12 +25,13 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object { private string[] schema_names; private string[] key_names; + private Gee.HashMap settings_cache = new Gee.HashMap(); public GSettingsConfigurationEngine() { schema_names = new string[ConfigurableProperty.NUM_PROPERTIES]; schema_names[ConfigurableProperty.AUTO_IMPORT_FROM_LIBRARY] = FILES_PREFS_SCHEMA_NAME; - schema_names[ConfigurableProperty.BG_COLOR_NAME] = UI_PREFS_SCHEMA_NAME; + schema_names[ConfigurableProperty.GTK_THEME_VARIANT] = UI_PREFS_SCHEMA_NAME; schema_names[ConfigurableProperty.TRANSPARENT_BACKGROUND_TYPE] = UI_PREFS_SCHEMA_NAME; schema_names[ConfigurableProperty.TRANSPARENT_BACKGROUND_COLOR] = UI_PREFS_SCHEMA_NAME; schema_names[ConfigurableProperty.COMMIT_METADATA_TO_MASTERS] = FILES_PREFS_SCHEMA_NAME; @@ -104,7 +105,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object { key_names = new string[ConfigurableProperty.NUM_PROPERTIES]; key_names[ConfigurableProperty.AUTO_IMPORT_FROM_LIBRARY] = "auto-import"; - key_names[ConfigurableProperty.BG_COLOR_NAME] = "background-color"; + key_names[ConfigurableProperty.GTK_THEME_VARIANT] = "use-dark-theme"; key_names[ConfigurableProperty.TRANSPARENT_BACKGROUND_TYPE] = "transparent-background-type"; key_names[ConfigurableProperty.TRANSPARENT_BACKGROUND_COLOR] = "transparent-background-color"; key_names[ConfigurableProperty.COMMIT_METADATA_TO_MASTERS] = "commit-metadata"; @@ -176,6 +177,14 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object { key_names[ConfigurableProperty.VIDEO_INTERPRETER_STATE_COOKIE] = "interpreter-state-cookie"; } + private Settings get_settings(string schema) { + if (!this.settings_cache.has_key(schema)) { + this.settings_cache[schema] = new Settings(schema); + } + + return this.settings_cache[schema]; + } + private void check_key_valid(string schema, string key) throws ConfigurationError { var schema_source = SettingsSchemaSource.get_default (); var settings_scheme = schema_source.lookup (schema, true); @@ -191,7 +200,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object { private bool get_gs_bool(string schema, string key) throws ConfigurationError { check_key_valid(schema, key); - Settings schema_object = new Settings(schema); + Settings schema_object = get_settings(schema); return schema_object.get_boolean(key); } @@ -199,7 +208,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object { private void set_gs_bool(string schema, string key, bool value) throws ConfigurationError { check_key_valid(schema, key); - Settings schema_object = new Settings(schema); + Settings schema_object = get_settings(schema); schema_object.set_boolean(key, value); } @@ -207,21 +216,21 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object { private void set_gs_enum (string schema, string key, int value) throws ConfigurationError { check_key_valid (schema, key); - var schema_object = new Settings (schema); + var schema_object = get_settings (schema); schema_object.set_enum (key, value); } private int get_gs_enum (string schema, string key) throws ConfigurationError { check_key_valid (schema, key); - var schema_object = new Settings (schema); + var schema_object = get_settings (schema); return schema_object.get_enum (key); } private int get_gs_int(string schema, string key) throws ConfigurationError { check_key_valid(schema, key); - Settings schema_object = new Settings(schema); + Settings schema_object = get_settings(schema); return schema_object.get_int(key); } @@ -229,7 +238,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object { private void set_gs_int(string schema, string key, int value) throws ConfigurationError { check_key_valid(schema, key); - Settings schema_object = new Settings(schema); + Settings schema_object = get_settings(schema); schema_object.set_int(key, value); } @@ -237,7 +246,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object { private double get_gs_double(string schema, string key) throws ConfigurationError { check_key_valid(schema, key); - Settings schema_object = new Settings(schema); + Settings schema_object = get_settings(schema); return schema_object.get_double(key); } @@ -245,7 +254,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object { private void set_gs_double(string schema, string key, double value) throws ConfigurationError { check_key_valid(schema, key); - Settings schema_object = new Settings(schema); + Settings schema_object = get_settings(schema); schema_object.set_double(key, value); } @@ -253,7 +262,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object { private string get_gs_string(string schema, string key) throws ConfigurationError { check_key_valid(schema, key); - Settings schema_object = new Settings(schema); + Settings schema_object = get_settings(schema); return schema_object.get_string(key); } @@ -261,7 +270,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object { private void set_gs_string(string schema, string key, string value) throws ConfigurationError { check_key_valid(schema, key); - Settings schema_object = new Settings(schema); + Settings schema_object = get_settings(schema); schema_object.set_string(key, value); } @@ -269,7 +278,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object { private void reset_gs_to_default(string schema, string key) throws ConfigurationError { check_key_valid(schema, key); - Settings schema_object = new Settings(schema); + Settings schema_object = get_settings(schema); schema_object.reset(key); } diff --git a/src/core/Alteration.c b/src/core/Alteration.c deleted file mode 100644 index a6d9ad0..0000000 --- a/src/core/Alteration.c +++ /dev/null @@ -1,2817 +0,0 @@ -/* Alteration.c generated by valac 0.40.4, the Vala compiler - * generated from Alteration.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/**/ -/* Alteration represents a description of what has changed in the DataObject (reported via the*/ -/* "altered" signal). Since the descriptions can vary wildly depending on the semantics of each*/ -/* DataObject, no assumptions or requirements are placed on Alteration other than it must have*/ -/* one or more "subjects", each with a "detail". Subscribers to the "altered" signal can query*/ -/* the Alteration object to determine if the change is important to them.*/ -/**/ -/* Alteration is an immutable type. This means it's possible to store const Alterations of oft-used*/ -/* values for reuse.*/ -/**/ -/* Alterations may be compressed, merging their subjects and details into a new aggregated*/ -/* Alteration. Generally this is handled automatically by DataObject and DataCollection, when*/ -/* necessary.*/ -/**/ -/* NOTE: subjects and details should be ASCII labels (as in, plain-old ASCII, no code pages).*/ -/* They are treated as case-sensitive strings.*/ -/**/ -/* Recommended subjects include: image, thumbnail, metadata.*/ -/**/ - - -#include -#include -#include -#include -#include -#include - - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; -typedef struct _AlterationPrivate AlterationPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _ParamSpecAlteration ParamSpecAlteration; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _Alteration { - GTypeInstance parent_instance; - volatile int ref_count; - AlterationPrivate * priv; -}; - -struct _AlterationClass { - GTypeClass parent_class; - void (*finalize) (Alteration *self); -}; - -struct _AlterationPrivate { - gchar* subject; - gchar* detail; - GeeMultiMap* map; -}; - -struct _ParamSpecAlteration { - GParamSpec parent_instance; -}; - - -static gpointer alteration_parent_class = NULL; - -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -#define ALTERATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ALTERATION, AlterationPrivate)) -Alteration* alteration_new (const gchar* subject, - const gchar* detail); -Alteration* alteration_construct (GType object_type, - const gchar* subject, - const gchar* detail); -static void alteration_add_detail (Alteration* self, - const gchar* sub, - const gchar* det); -Alteration* alteration_new_from_list (const gchar* list); -Alteration* alteration_construct_from_list (GType object_type, - const gchar* list); -Alteration* alteration_new_from_array (gchar** array, - int array_length1); -Alteration* alteration_construct_from_array (GType object_type, - gchar** array, - int array_length1); -static Alteration* alteration_new_from_map (GeeMultiMap* map); -static Alteration* alteration_construct_from_map (GType object_type, - GeeMultiMap* map); -static GeeMultiMap* alteration_create_map (Alteration* self); -static guint alteration_case_hash (const gchar* a); -static guint _alteration_case_hash_gee_hash_data_func (gconstpointer v, - gpointer self); -static gboolean alteration_case_equal (const gchar* a, - const gchar* b); -static gboolean _alteration_case_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -static inline gboolean alteration_equal_values (const gchar* str1, - const gchar* str2); -static inline guint alteration_hash_value (const gchar* str); -gboolean alteration_has_subject (Alteration* self, - const gchar* subject); -gboolean alteration_has_detail (Alteration* self, - const gchar* subject, - const gchar* detail); -GeeCollection* alteration_get_details (Alteration* self, - const gchar* subject); -gchar* alteration_to_string (Alteration* self); -gboolean alteration_contains_any (Alteration* self, - Alteration* other); -gboolean alteration_equals (Alteration* self, - Alteration* other); -static void alteration_multimap_add_all (GeeMultiMap* dest, - GeeMultiMap* src); -Alteration* alteration_compress (Alteration* self, - Alteration* other); -static void alteration_finalize (Alteration * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -Alteration* -alteration_construct (GType object_type, - const gchar* subject, - const gchar* detail) -{ - Alteration* self = NULL; -#line 32 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (subject != NULL, NULL); -#line 32 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (detail != NULL, NULL); -#line 32 "/home/jens/Source/shotwell/src/core/Alteration.vala" - self = (Alteration*) g_type_create_instance (object_type); -#line 33 "/home/jens/Source/shotwell/src/core/Alteration.vala" - alteration_add_detail (self, subject, detail); -#line 32 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return self; -#line 168 "Alteration.c" -} - - -Alteration* -alteration_new (const gchar* subject, - const gchar* detail) -{ -#line 32 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return alteration_construct (TYPE_ALTERATION, subject, detail); -#line 178 "Alteration.c" -} - - -Alteration* -alteration_construct_from_list (GType object_type, - const gchar* list) -{ - Alteration* self = NULL; - gint _tmp0_; - gint _tmp1_; - gchar** pairs = NULL; - gchar** _tmp2_; - gchar** _tmp3_; - gint pairs_length1; - gint _pairs_size_; - gchar** _tmp4_; - gint _tmp4__length1; - gchar** _tmp5_; - gint _tmp5__length1; -#line 38 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (list != NULL, NULL); -#line 38 "/home/jens/Source/shotwell/src/core/Alteration.vala" - self = (Alteration*) g_type_create_instance (object_type); -#line 38 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = strlen (list); -#line 38 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp1_ = _tmp0_; -#line 38 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_return_val_if_fail (_tmp1_ > 0, "list.length > 0", NULL); -#line 39 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp3_ = _tmp2_ = g_strsplit (list, ",", 0); -#line 39 "/home/jens/Source/shotwell/src/core/Alteration.vala" - pairs = _tmp3_; -#line 39 "/home/jens/Source/shotwell/src/core/Alteration.vala" - pairs_length1 = _vala_array_length (_tmp2_); -#line 39 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _pairs_size_ = pairs_length1; -#line 40 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp4_ = pairs; -#line 40 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp4__length1 = pairs_length1; -#line 40 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_assert (_tmp4__length1 >= 1, "pairs.length >= 1"); -#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp5_ = pairs; -#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp5__length1 = pairs_length1; -#line 226 "Alteration.c" - { - gchar** pair_collection = NULL; - gint pair_collection_length1 = 0; - gint _pair_collection_size_ = 0; - gint pair_it = 0; -#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala" - pair_collection = _tmp5_; -#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala" - pair_collection_length1 = _tmp5__length1; -#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala" - for (pair_it = 0; pair_it < _tmp5__length1; pair_it = pair_it + 1) { -#line 238 "Alteration.c" - gchar* _tmp6_; - gchar* pair = NULL; -#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp6_ = g_strdup (pair_collection[pair_it]); -#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala" - pair = _tmp6_; -#line 245 "Alteration.c" - { - gchar** subject_detail = NULL; - const gchar* _tmp7_; - gchar** _tmp8_; - gchar** _tmp9_; - gint subject_detail_length1; - gint _subject_detail_size_; - gchar** _tmp10_; - gint _tmp10__length1; - gchar** _tmp11_; - gint _tmp11__length1; - const gchar* _tmp12_; - gchar** _tmp13_; - gint _tmp13__length1; - const gchar* _tmp14_; -#line 43 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp7_ = pair; -#line 43 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp9_ = _tmp8_ = g_strsplit (_tmp7_, ":", 2); -#line 43 "/home/jens/Source/shotwell/src/core/Alteration.vala" - subject_detail = _tmp9_; -#line 43 "/home/jens/Source/shotwell/src/core/Alteration.vala" - subject_detail_length1 = _vala_array_length (_tmp8_); -#line 43 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _subject_detail_size_ = subject_detail_length1; -#line 44 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp10_ = subject_detail; -#line 44 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp10__length1 = subject_detail_length1; -#line 44 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_assert (_tmp10__length1 == 2, "subject_detail.length == 2"); -#line 46 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp11_ = subject_detail; -#line 46 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp11__length1 = subject_detail_length1; -#line 46 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp12_ = _tmp11_[0]; -#line 46 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp13_ = subject_detail; -#line 46 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp13__length1 = subject_detail_length1; -#line 46 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp14_ = _tmp13_[1]; -#line 46 "/home/jens/Source/shotwell/src/core/Alteration.vala" - alteration_add_detail (self, _tmp12_, _tmp14_); -#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala" - subject_detail = (_vala_array_free (subject_detail, subject_detail_length1, (GDestroyNotify) g_free), NULL); -#line 42 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (pair); -#line 295 "Alteration.c" - } - } - } -#line 38 "/home/jens/Source/shotwell/src/core/Alteration.vala" - pairs = (_vala_array_free (pairs, pairs_length1, (GDestroyNotify) g_free), NULL); -#line 38 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return self; -#line 303 "Alteration.c" -} - - -Alteration* -alteration_new_from_list (const gchar* list) -{ -#line 38 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return alteration_construct_from_list (TYPE_ALTERATION, list); -#line 312 "Alteration.c" -} - - -Alteration* -alteration_construct_from_array (GType object_type, - gchar** array, - int array_length1) -{ - Alteration* self = NULL; -#line 52 "/home/jens/Source/shotwell/src/core/Alteration.vala" - self = (Alteration*) g_type_create_instance (object_type); -#line 52 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_return_val_if_fail (array_length1 > 0, "array.length > 0", NULL); -#line 326 "Alteration.c" - { - gchar** pair_collection = NULL; - gint pair_collection_length1 = 0; - gint _pair_collection_size_ = 0; - gint pair_it = 0; -#line 53 "/home/jens/Source/shotwell/src/core/Alteration.vala" - pair_collection = array; -#line 53 "/home/jens/Source/shotwell/src/core/Alteration.vala" - pair_collection_length1 = array_length1; -#line 53 "/home/jens/Source/shotwell/src/core/Alteration.vala" - for (pair_it = 0; pair_it < array_length1; pair_it = pair_it + 1) { -#line 338 "Alteration.c" - gchar* _tmp0_; - gchar* pair = NULL; -#line 53 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = g_strdup (pair_collection[pair_it]); -#line 53 "/home/jens/Source/shotwell/src/core/Alteration.vala" - pair = _tmp0_; -#line 345 "Alteration.c" - { - gchar** subject_detail = NULL; - const gchar* _tmp1_; - gchar** _tmp2_; - gchar** _tmp3_; - gint subject_detail_length1; - gint _subject_detail_size_; - gchar** _tmp4_; - gint _tmp4__length1; - gchar** _tmp5_; - gint _tmp5__length1; - const gchar* _tmp6_; - gchar** _tmp7_; - gint _tmp7__length1; - const gchar* _tmp8_; -#line 54 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp1_ = pair; -#line 54 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp3_ = _tmp2_ = g_strsplit (_tmp1_, ":", 2); -#line 54 "/home/jens/Source/shotwell/src/core/Alteration.vala" - subject_detail = _tmp3_; -#line 54 "/home/jens/Source/shotwell/src/core/Alteration.vala" - subject_detail_length1 = _vala_array_length (_tmp2_); -#line 54 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _subject_detail_size_ = subject_detail_length1; -#line 55 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp4_ = subject_detail; -#line 55 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp4__length1 = subject_detail_length1; -#line 55 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_assert (_tmp4__length1 == 2, "subject_detail.length == 2"); -#line 57 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp5_ = subject_detail; -#line 57 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp5__length1 = subject_detail_length1; -#line 57 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp6_ = _tmp5_[0]; -#line 57 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp7_ = subject_detail; -#line 57 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp7__length1 = subject_detail_length1; -#line 57 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp8_ = _tmp7_[1]; -#line 57 "/home/jens/Source/shotwell/src/core/Alteration.vala" - alteration_add_detail (self, _tmp6_, _tmp8_); -#line 53 "/home/jens/Source/shotwell/src/core/Alteration.vala" - subject_detail = (_vala_array_free (subject_detail, subject_detail_length1, (GDestroyNotify) g_free), NULL); -#line 53 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (pair); -#line 395 "Alteration.c" - } - } - } -#line 52 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return self; -#line 401 "Alteration.c" -} - - -Alteration* -alteration_new_from_array (gchar** array, - int array_length1) -{ -#line 52 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return alteration_construct_from_array (TYPE_ALTERATION, array, array_length1); -#line 411 "Alteration.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 63 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return self ? g_object_ref (self) : NULL; -#line 420 "Alteration.c" -} - - -static Alteration* -alteration_construct_from_map (GType object_type, - GeeMultiMap* map) -{ - Alteration* self = NULL; - GeeMultiMap* _tmp0_; -#line 62 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (GEE_IS_MULTI_MAP (map), NULL); -#line 62 "/home/jens/Source/shotwell/src/core/Alteration.vala" - self = (Alteration*) g_type_create_instance (object_type); -#line 63 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = _g_object_ref0 (map); -#line 63 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (self->priv->map); -#line 63 "/home/jens/Source/shotwell/src/core/Alteration.vala" - self->priv->map = _tmp0_; -#line 62 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return self; -#line 442 "Alteration.c" -} - - -static Alteration* -alteration_new_from_map (GeeMultiMap* map) -{ -#line 62 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return alteration_construct_from_map (TYPE_ALTERATION, map); -#line 451 "Alteration.c" -} - - -static gchar* -string_strip (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strstrip (_tmp1_); -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 476 "Alteration.c" -} - - -static void -alteration_add_detail (Alteration* self, - const gchar* sub, - const gchar* det) -{ - gchar* subject = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - gint _tmp2_; - gint _tmp3_; - gchar* detail = NULL; - gchar* _tmp4_; - const gchar* _tmp5_; - gint _tmp6_; - gint _tmp7_; - gboolean _tmp8_ = FALSE; - const gchar* _tmp9_; - GeeMultiMap* _tmp16_; - const gchar* _tmp18_; - GeeMultiMap* _tmp23_; - const gchar* _tmp24_; - const gchar* _tmp25_; -#line 66 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_if_fail (IS_ALTERATION (self)); -#line 66 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_if_fail (sub != NULL); -#line 66 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_if_fail (det != NULL); -#line 68 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = string_strip (sub); -#line 68 "/home/jens/Source/shotwell/src/core/Alteration.vala" - subject = _tmp0_; -#line 69 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp1_ = subject; -#line 69 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp2_ = strlen (_tmp1_); -#line 69 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp3_ = _tmp2_; -#line 69 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_assert (_tmp3_ > 0, "subject.length > 0"); -#line 71 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp4_ = string_strip (det); -#line 71 "/home/jens/Source/shotwell/src/core/Alteration.vala" - detail = _tmp4_; -#line 72 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp5_ = detail; -#line 72 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp6_ = strlen (_tmp5_); -#line 72 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp7_ = _tmp6_; -#line 72 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_assert (_tmp7_ > 0, "detail.length > 0"); -#line 75 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp9_ = self->priv->subject; -#line 75 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp9_ == NULL) { -#line 536 "Alteration.c" - GeeMultiMap* _tmp10_; -#line 75 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp10_ = self->priv->map; -#line 75 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp8_ = _tmp10_ == NULL; -#line 542 "Alteration.c" - } else { -#line 75 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp8_ = FALSE; -#line 546 "Alteration.c" - } -#line 75 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp8_) { -#line 550 "Alteration.c" - const gchar* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; - const gchar* _tmp14_; - gchar* _tmp15_; -#line 76 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp11_ = self->priv->detail; -#line 76 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_assert (_tmp11_ == NULL, "this.detail == null"); -#line 78 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp12_ = subject; -#line 78 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp13_ = g_strdup (_tmp12_); -#line 78 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (self->priv->subject); -#line 78 "/home/jens/Source/shotwell/src/core/Alteration.vala" - self->priv->subject = _tmp13_; -#line 79 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp14_ = detail; -#line 79 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp15_ = g_strdup (_tmp14_); -#line 79 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (self->priv->detail); -#line 79 "/home/jens/Source/shotwell/src/core/Alteration.vala" - self->priv->detail = _tmp15_; -#line 81 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (detail); -#line 81 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (subject); -#line 81 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return; -#line 582 "Alteration.c" - } -#line 85 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp16_ = self->priv->map; -#line 85 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp16_ == NULL) { -#line 588 "Alteration.c" - GeeMultiMap* _tmp17_; -#line 86 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp17_ = alteration_create_map (self); -#line 86 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (self->priv->map); -#line 86 "/home/jens/Source/shotwell/src/core/Alteration.vala" - self->priv->map = _tmp17_; -#line 596 "Alteration.c" - } -#line 89 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp18_ = self->priv->subject; -#line 89 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp18_ != NULL) { -#line 602 "Alteration.c" - const gchar* _tmp19_; - GeeMultiMap* _tmp20_; - const gchar* _tmp21_; - const gchar* _tmp22_; -#line 90 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp19_ = self->priv->detail; -#line 90 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_assert (_tmp19_ != NULL, "this.detail != null"); -#line 92 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp20_ = self->priv->map; -#line 92 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp21_ = self->priv->subject; -#line 92 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp22_ = self->priv->detail; -#line 92 "/home/jens/Source/shotwell/src/core/Alteration.vala" - gee_multi_map_set (_tmp20_, _tmp21_, _tmp22_); -#line 93 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (self->priv->subject); -#line 93 "/home/jens/Source/shotwell/src/core/Alteration.vala" - self->priv->subject = NULL; -#line 94 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (self->priv->detail); -#line 94 "/home/jens/Source/shotwell/src/core/Alteration.vala" - self->priv->detail = NULL; -#line 627 "Alteration.c" - } -#line 98 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp23_ = self->priv->map; -#line 98 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp24_ = subject; -#line 98 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp25_ = detail; -#line 98 "/home/jens/Source/shotwell/src/core/Alteration.vala" - gee_multi_map_set (_tmp23_, _tmp24_, _tmp25_); -#line 66 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (detail); -#line 66 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (subject); -#line 641 "Alteration.c" -} - - -static guint -_alteration_case_hash_gee_hash_data_func (gconstpointer v, - gpointer self) -{ - guint result; - result = alteration_case_hash ((const gchar*) v); -#line 102 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 653 "Alteration.c" -} - - -static gboolean -_alteration_case_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gboolean result; - result = alteration_case_equal ((const gchar*) a, (const gchar*) b); -#line 102 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 666 "Alteration.c" -} - - -static GeeMultiMap* -alteration_create_map (Alteration* self) -{ - GeeMultiMap* result = NULL; - GeeHashMultiMap* _tmp0_; -#line 101 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (IS_ALTERATION (self), NULL); -#line 102 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = gee_hash_multi_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, _alteration_case_hash_gee_hash_data_func, NULL, NULL, _alteration_case_equal_gee_equal_data_func, NULL, NULL, _alteration_case_hash_gee_hash_data_func, NULL, NULL, _alteration_case_equal_gee_equal_data_func, NULL, NULL); -#line 102 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MULTI_MAP, GeeMultiMap); -#line 102 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 683 "Alteration.c" -} - - -static gboolean -alteration_case_equal (const gchar* a, - const gchar* b) -{ - gboolean result = FALSE; -#line 106 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = alteration_equal_values (a, b); -#line 106 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 696 "Alteration.c" -} - - -static guint -alteration_case_hash (const gchar* a) -{ - guint result = 0U; -#line 110 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = alteration_hash_value (a); -#line 110 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 708 "Alteration.c" -} - - -static inline gboolean -alteration_equal_values (const gchar* str1, - const gchar* str2) -{ - gboolean result = FALSE; -#line 113 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (str1 != NULL, FALSE); -#line 113 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (str2 != NULL, FALSE); -#line 114 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = g_ascii_strcasecmp (str1, str2) == 0; -#line 114 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 725 "Alteration.c" -} - - -static inline guint -alteration_hash_value (const gchar* str) -{ - guint result = 0U; - GHashFunc _tmp0_; -#line 117 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (str != NULL, 0U); -#line 118 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = g_str_hash; -#line 118 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = _tmp0_ (str); -#line 118 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 742 "Alteration.c" -} - - -gboolean -alteration_has_subject (Alteration* self, - const gchar* subject) -{ - gboolean result = FALSE; - const gchar* _tmp0_; - GeeMultiMap* _tmp2_; - GeeSet* keys = NULL; - GeeMultiMap* _tmp3_; - GeeSet* _tmp4_; - GeeSet* _tmp5_; -#line 121 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (IS_ALTERATION (self), FALSE); -#line 121 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (subject != NULL, FALSE); -#line 122 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = self->priv->subject; -#line 122 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp0_ != NULL) { -#line 765 "Alteration.c" - const gchar* _tmp1_; -#line 123 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp1_ = self->priv->subject; -#line 123 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = alteration_equal_values (_tmp1_, subject); -#line 123 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 773 "Alteration.c" - } -#line 125 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp2_ = self->priv->map; -#line 125 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_assert (_tmp2_ != NULL, "map != null"); -#line 126 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp3_ = self->priv->map; -#line 126 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp4_ = gee_multi_map_get_keys (_tmp3_); -#line 126 "/home/jens/Source/shotwell/src/core/Alteration.vala" - keys = _tmp4_; -#line 127 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp5_ = keys; -#line 127 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp5_ != NULL) { -#line 789 "Alteration.c" - { - GeeIterator* _key_it = NULL; - GeeSet* _tmp6_; - GeeIterator* _tmp7_; -#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp6_ = keys; -#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _key_it = _tmp7_; -#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala" - while (TRUE) { -#line 802 "Alteration.c" - GeeIterator* _tmp8_; - gchar* key = NULL; - GeeIterator* _tmp9_; - gpointer _tmp10_; - const gchar* _tmp11_; -#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp8_ = _key_it; -#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (!gee_iterator_next (_tmp8_)) { -#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala" - break; -#line 814 "Alteration.c" - } -#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp9_ = _key_it; -#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp10_ = gee_iterator_get (_tmp9_); -#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala" - key = (gchar*) _tmp10_; -#line 129 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp11_ = key; -#line 129 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (alteration_equal_values (_tmp11_, subject)) { -#line 130 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = TRUE; -#line 130 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (key); -#line 130 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_key_it); -#line 130 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (keys); -#line 130 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 836 "Alteration.c" - } -#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (key); -#line 840 "Alteration.c" - } -#line 128 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_key_it); -#line 844 "Alteration.c" - } - } -#line 134 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = FALSE; -#line 134 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (keys); -#line 134 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 853 "Alteration.c" -} - - -gboolean -alteration_has_detail (Alteration* self, - const gchar* subject, - const gchar* detail) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - const gchar* _tmp1_; - GeeMultiMap* _tmp6_; - GeeCollection* values = NULL; - GeeMultiMap* _tmp7_; - GeeCollection* _tmp8_; - GeeCollection* _tmp9_; -#line 137 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (IS_ALTERATION (self), FALSE); -#line 137 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (subject != NULL, FALSE); -#line 137 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (detail != NULL, FALSE); -#line 138 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp1_ = self->priv->subject; -#line 138 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp1_ != NULL) { -#line 880 "Alteration.c" - const gchar* _tmp2_; -#line 138 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp2_ = self->priv->detail; -#line 138 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = _tmp2_ != NULL; -#line 886 "Alteration.c" - } else { -#line 138 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = FALSE; -#line 890 "Alteration.c" - } -#line 138 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp0_) { -#line 894 "Alteration.c" - gboolean _tmp3_ = FALSE; - const gchar* _tmp4_; -#line 139 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp4_ = self->priv->subject; -#line 139 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (alteration_equal_values (_tmp4_, subject)) { -#line 901 "Alteration.c" - const gchar* _tmp5_; -#line 139 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp5_ = self->priv->detail; -#line 139 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp3_ = alteration_equal_values (_tmp5_, detail); -#line 907 "Alteration.c" - } else { -#line 139 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp3_ = FALSE; -#line 911 "Alteration.c" - } -#line 139 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = _tmp3_; -#line 139 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 917 "Alteration.c" - } -#line 141 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp6_ = self->priv->map; -#line 141 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_assert (_tmp6_ != NULL, "map != null"); -#line 142 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp7_ = self->priv->map; -#line 142 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp8_ = gee_multi_map_get (_tmp7_, subject); -#line 142 "/home/jens/Source/shotwell/src/core/Alteration.vala" - values = _tmp8_; -#line 143 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp9_ = values; -#line 143 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp9_ != NULL) { -#line 933 "Alteration.c" - { - GeeIterator* _value_it = NULL; - GeeCollection* _tmp10_; - GeeIterator* _tmp11_; -#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp10_ = values; -#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _value_it = _tmp11_; -#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala" - while (TRUE) { -#line 946 "Alteration.c" - GeeIterator* _tmp12_; - gchar* value = NULL; - GeeIterator* _tmp13_; - gpointer _tmp14_; - const gchar* _tmp15_; -#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp12_ = _value_it; -#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (!gee_iterator_next (_tmp12_)) { -#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala" - break; -#line 958 "Alteration.c" - } -#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp13_ = _value_it; -#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp14_ = gee_iterator_get (_tmp13_); -#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala" - value = (gchar*) _tmp14_; -#line 145 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp15_ = value; -#line 145 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (alteration_equal_values (_tmp15_, detail)) { -#line 146 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = TRUE; -#line 146 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (value); -#line 146 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_value_it); -#line 146 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (values); -#line 146 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 980 "Alteration.c" - } -#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (value); -#line 984 "Alteration.c" - } -#line 144 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_value_it); -#line 988 "Alteration.c" - } - } -#line 150 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = FALSE; -#line 150 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (values); -#line 150 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 997 "Alteration.c" -} - - -GeeCollection* -alteration_get_details (Alteration* self, - const gchar* subject) -{ - GeeCollection* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - const gchar* _tmp2_; - GeeCollection* _tmp8_ = NULL; - GeeMultiMap* _tmp9_; -#line 153 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (IS_ALTERATION (self), NULL); -#line 153 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (subject != NULL, NULL); -#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp2_ = self->priv->subject; -#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp2_ != NULL) { -#line 1019 "Alteration.c" - const gchar* _tmp3_; -#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp3_ = self->priv->detail; -#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp1_ = _tmp3_ != NULL; -#line 1025 "Alteration.c" - } else { -#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp1_ = FALSE; -#line 1029 "Alteration.c" - } -#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp1_) { -#line 1033 "Alteration.c" - const gchar* _tmp4_; -#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp4_ = self->priv->subject; -#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = alteration_equal_values (_tmp4_, subject); -#line 1039 "Alteration.c" - } else { -#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = FALSE; -#line 1043 "Alteration.c" - } -#line 154 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp0_) { -#line 1047 "Alteration.c" - GeeArrayList* details = NULL; - GeeArrayList* _tmp5_; - GeeArrayList* _tmp6_; - const gchar* _tmp7_; -#line 155 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp5_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 155 "/home/jens/Source/shotwell/src/core/Alteration.vala" - details = _tmp5_; -#line 156 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp6_ = details; -#line 156 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp7_ = self->priv->detail; -#line 156 "/home/jens/Source/shotwell/src/core/Alteration.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp7_); -#line 158 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (details, GEE_TYPE_COLLECTION, GeeCollection); -#line 158 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 1066 "Alteration.c" - } -#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp9_ = self->priv->map; -#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp9_ != NULL) { -#line 1072 "Alteration.c" - GeeMultiMap* _tmp10_; - GeeCollection* _tmp11_; -#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp10_ = self->priv->map; -#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp11_ = gee_multi_map_get (_tmp10_, subject); -#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_tmp8_); -#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp8_ = _tmp11_; -#line 1083 "Alteration.c" - } else { -#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_tmp8_); -#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp8_ = NULL; -#line 1089 "Alteration.c" - } -#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = _tmp8_; -#line 161 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 1095 "Alteration.c" -} - - -gchar* -alteration_to_string (Alteration* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - GeeMultiMap* _tmp5_; - gchar* str = NULL; - gchar* _tmp6_; -#line 164 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (IS_ALTERATION (self), NULL); -#line 165 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = self->priv->subject; -#line 165 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp0_ != NULL) { -#line 1113 "Alteration.c" - const gchar* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; -#line 166 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp1_ = self->priv->detail; -#line 166 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_assert (_tmp1_ != NULL, "detail != null"); -#line 168 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp2_ = self->priv->subject; -#line 168 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp3_ = self->priv->detail; -#line 168 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp4_ = g_strdup_printf ("%s:%s", _tmp2_, _tmp3_); -#line 168 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = _tmp4_; -#line 168 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 1132 "Alteration.c" - } -#line 171 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp5_ = self->priv->map; -#line 171 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_assert (_tmp5_ != NULL, "map != null"); -#line 173 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp6_ = g_strdup (""); -#line 173 "/home/jens/Source/shotwell/src/core/Alteration.vala" - str = _tmp6_; -#line 1142 "Alteration.c" - { - GeeIterator* _key_it = NULL; - GeeMultiMap* _tmp7_; - GeeSet* _tmp8_; - GeeSet* _tmp9_; - GeeIterator* _tmp10_; - GeeIterator* _tmp11_; -#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp7_ = self->priv->map; -#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp8_ = gee_multi_map_get_keys (_tmp7_); -#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp9_ = _tmp8_; -#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp11_ = _tmp10_; -#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_tmp9_); -#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _key_it = _tmp11_; -#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala" - while (TRUE) { -#line 1166 "Alteration.c" - GeeIterator* _tmp12_; - gchar* key = NULL; - GeeIterator* _tmp13_; - gpointer _tmp14_; -#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp12_ = _key_it; -#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (!gee_iterator_next (_tmp12_)) { -#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala" - break; -#line 1177 "Alteration.c" - } -#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp13_ = _key_it; -#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp14_ = gee_iterator_get (_tmp13_); -#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala" - key = (gchar*) _tmp14_; -#line 1185 "Alteration.c" - { - GeeIterator* _value_it = NULL; - GeeMultiMap* _tmp15_; - const gchar* _tmp16_; - GeeCollection* _tmp17_; - GeeCollection* _tmp18_; - GeeIterator* _tmp19_; - GeeIterator* _tmp20_; -#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp15_ = self->priv->map; -#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp16_ = key; -#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp17_ = gee_multi_map_get (_tmp15_, _tmp16_); -#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp18_ = _tmp17_; -#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp19_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp20_ = _tmp19_; -#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_tmp18_); -#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _value_it = _tmp20_; -#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala" - while (TRUE) { -#line 1212 "Alteration.c" - GeeIterator* _tmp21_; - gchar* value = NULL; - GeeIterator* _tmp22_; - gpointer _tmp23_; - const gchar* _tmp24_; - gint _tmp25_; - gint _tmp26_; - const gchar* _tmp29_; - const gchar* _tmp30_; - const gchar* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - gchar* _tmp34_; -#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp21_ = _value_it; -#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (!gee_iterator_next (_tmp21_)) { -#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala" - break; -#line 1232 "Alteration.c" - } -#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp22_ = _value_it; -#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp23_ = gee_iterator_get (_tmp22_); -#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala" - value = (gchar*) _tmp23_; -#line 176 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp24_ = str; -#line 176 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp25_ = strlen (_tmp24_); -#line 176 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp26_ = _tmp25_; -#line 176 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp26_ != 0) { -#line 1248 "Alteration.c" - const gchar* _tmp27_; - gchar* _tmp28_; -#line 177 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp27_ = str; -#line 177 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp28_ = g_strconcat (_tmp27_, ", ", NULL); -#line 177 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (str); -#line 177 "/home/jens/Source/shotwell/src/core/Alteration.vala" - str = _tmp28_; -#line 1259 "Alteration.c" - } -#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp29_ = str; -#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp30_ = key; -#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp31_ = value; -#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp32_ = g_strdup_printf ("%s:%s", _tmp30_, _tmp31_); -#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp33_ = _tmp32_; -#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp34_ = g_strconcat (_tmp29_, _tmp33_, NULL); -#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (str); -#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala" - str = _tmp34_; -#line 179 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (_tmp33_); -#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (value); -#line 1281 "Alteration.c" - } -#line 175 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_value_it); -#line 1285 "Alteration.c" - } -#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (key); -#line 1289 "Alteration.c" - } -#line 174 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_key_it); -#line 1293 "Alteration.c" - } -#line 183 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = str; -#line 183 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 1299 "Alteration.c" -} - - -gboolean -alteration_contains_any (Alteration* self, - Alteration* other) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - const gchar* _tmp3_; - gboolean _tmp12_ = FALSE; - gboolean _tmp13_ = FALSE; - GeeMultiMap* _tmp14_; - gboolean _tmp42_ = FALSE; - GeeMultiMap* _tmp43_; -#line 187 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (IS_ALTERATION (self), FALSE); -#line 187 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (IS_ALTERATION (other), FALSE); -#line 189 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (self == other) { -#line 190 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = TRUE; -#line 190 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 1327 "Alteration.c" - } -#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp3_ = self->priv->subject; -#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp3_ != NULL) { -#line 1333 "Alteration.c" - const gchar* _tmp4_; -#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp4_ = other->priv->subject; -#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp2_ = _tmp4_ != NULL; -#line 1339 "Alteration.c" - } else { -#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp2_ = FALSE; -#line 1343 "Alteration.c" - } -#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp2_) { -#line 1347 "Alteration.c" - const gchar* _tmp5_; -#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp5_ = self->priv->detail; -#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp1_ = _tmp5_ != NULL; -#line 1353 "Alteration.c" - } else { -#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp1_ = FALSE; -#line 1357 "Alteration.c" - } -#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp1_) { -#line 1361 "Alteration.c" - const gchar* _tmp6_; -#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp6_ = other->priv->detail; -#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = _tmp6_ != NULL; -#line 1367 "Alteration.c" - } else { -#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = FALSE; -#line 1371 "Alteration.c" - } -#line 193 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp0_) { -#line 1375 "Alteration.c" - gboolean _tmp7_ = FALSE; - const gchar* _tmp8_; - const gchar* _tmp9_; -#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp8_ = self->priv->subject; -#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp9_ = other->priv->subject; -#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (alteration_equal_values (_tmp8_, _tmp9_)) { -#line 1385 "Alteration.c" - const gchar* _tmp10_; - const gchar* _tmp11_; -#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp10_ = self->priv->detail; -#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp11_ = other->priv->detail; -#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp7_ = alteration_equal_values (_tmp10_, _tmp11_); -#line 1394 "Alteration.c" - } else { -#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp7_ = FALSE; -#line 1398 "Alteration.c" - } -#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = _tmp7_; -#line 194 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 1404 "Alteration.c" - } -#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp14_ = self->priv->map; -#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp14_ != NULL) { -#line 1410 "Alteration.c" - GeeMultiMap* _tmp15_; -#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp15_ = other->priv->map; -#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp13_ = _tmp15_ == NULL; -#line 1416 "Alteration.c" - } else { -#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp13_ = FALSE; -#line 1420 "Alteration.c" - } -#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp13_) { -#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp12_ = TRUE; -#line 1426 "Alteration.c" - } else { - gboolean _tmp16_ = FALSE; - GeeMultiMap* _tmp17_; -#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp17_ = self->priv->map; -#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp17_ == NULL) { -#line 1434 "Alteration.c" - GeeMultiMap* _tmp18_; -#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp18_ = other->priv->map; -#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp16_ = _tmp18_ != NULL; -#line 1440 "Alteration.c" - } else { -#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp16_ = FALSE; -#line 1444 "Alteration.c" - } -#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp12_ = _tmp16_; -#line 1448 "Alteration.c" - } -#line 197 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp12_) { -#line 1452 "Alteration.c" - const gchar* _tmp19_ = NULL; - const gchar* _tmp20_; - gchar* single_subject = NULL; - gchar* _tmp23_; - const gchar* _tmp24_ = NULL; - const gchar* _tmp25_; - gchar* single_detail = NULL; - gchar* _tmp28_; - GeeMultiMap* _tmp29_ = NULL; - GeeMultiMap* _tmp30_; - GeeMultiMap* multimap = NULL; - GeeMultiMap* _tmp33_; - gboolean _tmp34_ = FALSE; - GeeMultiMap* _tmp35_; - const gchar* _tmp36_; -#line 198 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp20_ = self->priv->subject; -#line 198 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp20_ != NULL) { -#line 1472 "Alteration.c" - const gchar* _tmp21_; -#line 198 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp21_ = self->priv->subject; -#line 198 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp19_ = _tmp21_; -#line 1478 "Alteration.c" - } else { - const gchar* _tmp22_; -#line 198 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp22_ = other->priv->subject; -#line 198 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp19_ = _tmp22_; -#line 1485 "Alteration.c" - } -#line 198 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp23_ = g_strdup (_tmp19_); -#line 198 "/home/jens/Source/shotwell/src/core/Alteration.vala" - single_subject = _tmp23_; -#line 199 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp25_ = self->priv->detail; -#line 199 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp25_ != NULL) { -#line 1495 "Alteration.c" - const gchar* _tmp26_; -#line 199 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp26_ = self->priv->detail; -#line 199 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp24_ = _tmp26_; -#line 1501 "Alteration.c" - } else { - const gchar* _tmp27_; -#line 199 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp27_ = other->priv->detail; -#line 199 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp24_ = _tmp27_; -#line 1508 "Alteration.c" - } -#line 199 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp28_ = g_strdup (_tmp24_); -#line 199 "/home/jens/Source/shotwell/src/core/Alteration.vala" - single_detail = _tmp28_; -#line 200 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp30_ = self->priv->map; -#line 200 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp30_ != NULL) { -#line 1518 "Alteration.c" - GeeMultiMap* _tmp31_; -#line 200 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp31_ = self->priv->map; -#line 200 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp29_ = _tmp31_; -#line 1524 "Alteration.c" - } else { - GeeMultiMap* _tmp32_; -#line 200 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp32_ = other->priv->map; -#line 200 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp29_ = _tmp32_; -#line 1531 "Alteration.c" - } -#line 200 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp33_ = _g_object_ref0 (_tmp29_); -#line 200 "/home/jens/Source/shotwell/src/core/Alteration.vala" - multimap = _tmp33_; -#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp35_ = multimap; -#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp36_ = single_subject; -#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (gee_multi_map_contains (_tmp35_, _tmp36_)) { -#line 1543 "Alteration.c" - GeeMultiMap* _tmp37_; - const gchar* _tmp38_; - GeeCollection* _tmp39_; - GeeCollection* _tmp40_; - const gchar* _tmp41_; -#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp37_ = self->priv->map; -#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp38_ = single_subject; -#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp39_ = gee_multi_map_get (_tmp37_, _tmp38_); -#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp40_ = _tmp39_; -#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp41_ = single_detail; -#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp34_ = gee_collection_contains (_tmp40_, _tmp41_); -#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_tmp40_); -#line 1563 "Alteration.c" - } else { -#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp34_ = FALSE; -#line 1567 "Alteration.c" - } -#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = _tmp34_; -#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (multimap); -#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (single_detail); -#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (single_subject); -#line 202 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 1579 "Alteration.c" - } -#line 206 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp43_ = self->priv->map; -#line 206 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp43_ != NULL) { -#line 1585 "Alteration.c" - GeeMultiMap* _tmp44_; -#line 206 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp44_ = other->priv->map; -#line 206 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp42_ = _tmp44_ != NULL; -#line 1591 "Alteration.c" - } else { -#line 206 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp42_ = FALSE; -#line 1595 "Alteration.c" - } -#line 206 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp42_) { -#line 1599 "Alteration.c" - GeeSet* keys = NULL; - GeeMultiMap* _tmp45_; - GeeSet* _tmp46_; - GeeSet* _tmp47_; - GeeSet* other_keys = NULL; - GeeMultiMap* _tmp48_; - GeeSet* _tmp49_; - GeeSet* _tmp50_; -#line 207 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp45_ = self->priv->map; -#line 207 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp46_ = gee_multi_map_get_keys (_tmp45_); -#line 207 "/home/jens/Source/shotwell/src/core/Alteration.vala" - keys = _tmp46_; -#line 208 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp47_ = keys; -#line 208 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_assert (_tmp47_ != NULL, "keys != null"); -#line 209 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp48_ = other->priv->map; -#line 209 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp49_ = gee_multi_map_get_keys (_tmp48_); -#line 209 "/home/jens/Source/shotwell/src/core/Alteration.vala" - other_keys = _tmp49_; -#line 210 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp50_ = other_keys; -#line 210 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_assert (_tmp50_ != NULL, "other_keys != null"); -#line 1628 "Alteration.c" - { - GeeIterator* _subject_it = NULL; - GeeSet* _tmp51_; - GeeIterator* _tmp52_; -#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp51_ = other_keys; -#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp52_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _subject_it = _tmp52_; -#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala" - while (TRUE) { -#line 1641 "Alteration.c" - GeeIterator* _tmp53_; - gchar* subject = NULL; - GeeIterator* _tmp54_; - gpointer _tmp55_; - GeeSet* _tmp56_; - const gchar* _tmp57_; - GeeCollection* details = NULL; - GeeMultiMap* _tmp58_; - const gchar* _tmp59_; - GeeCollection* _tmp60_; - GeeCollection* other_details = NULL; - GeeMultiMap* _tmp61_; - const gchar* _tmp62_; - GeeCollection* _tmp63_; - gboolean _tmp64_ = FALSE; - GeeCollection* _tmp65_; -#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp53_ = _subject_it; -#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (!gee_iterator_next (_tmp53_)) { -#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala" - break; -#line 1664 "Alteration.c" - } -#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp54_ = _subject_it; -#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp55_ = gee_iterator_get (_tmp54_); -#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala" - subject = (gchar*) _tmp55_; -#line 213 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp56_ = keys; -#line 213 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp57_ = subject; -#line 213 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (!gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_COLLECTION, GeeCollection), _tmp57_)) { -#line 214 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (subject); -#line 214 "/home/jens/Source/shotwell/src/core/Alteration.vala" - continue; -#line 1682 "Alteration.c" - } -#line 216 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp58_ = self->priv->map; -#line 216 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp59_ = subject; -#line 216 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp60_ = gee_multi_map_get (_tmp58_, _tmp59_); -#line 216 "/home/jens/Source/shotwell/src/core/Alteration.vala" - details = _tmp60_; -#line 217 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp61_ = other->priv->map; -#line 217 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp62_ = subject; -#line 217 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp63_ = gee_multi_map_get (_tmp61_, _tmp62_); -#line 217 "/home/jens/Source/shotwell/src/core/Alteration.vala" - other_details = _tmp63_; -#line 219 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp65_ = details; -#line 219 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp65_ != NULL) { -#line 1704 "Alteration.c" - GeeCollection* _tmp66_; -#line 219 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp66_ = other_details; -#line 219 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp64_ = _tmp66_ != NULL; -#line 1710 "Alteration.c" - } else { -#line 219 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp64_ = FALSE; -#line 1714 "Alteration.c" - } -#line 219 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp64_) { -#line 1718 "Alteration.c" - { - GeeIterator* _detail_it = NULL; - GeeCollection* _tmp67_; - GeeIterator* _tmp68_; -#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp67_ = other_details; -#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp68_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _detail_it = _tmp68_; -#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala" - while (TRUE) { -#line 1731 "Alteration.c" - GeeIterator* _tmp69_; - gchar* detail = NULL; - GeeIterator* _tmp70_; - gpointer _tmp71_; - GeeCollection* _tmp72_; - const gchar* _tmp73_; -#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp69_ = _detail_it; -#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (!gee_iterator_next (_tmp69_)) { -#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala" - break; -#line 1744 "Alteration.c" - } -#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp70_ = _detail_it; -#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp71_ = gee_iterator_get (_tmp70_); -#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala" - detail = (gchar*) _tmp71_; -#line 221 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp72_ = details; -#line 221 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp73_ = detail; -#line 221 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (gee_collection_contains (_tmp72_, _tmp73_)) { -#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = TRUE; -#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (detail); -#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_detail_it); -#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (other_details); -#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (details); -#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (subject); -#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_subject_it); -#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (other_keys); -#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (keys); -#line 222 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 1778 "Alteration.c" - } -#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (detail); -#line 1782 "Alteration.c" - } -#line 220 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_detail_it); -#line 1786 "Alteration.c" - } - } -#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (other_details); -#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (details); -#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (subject); -#line 1795 "Alteration.c" - } -#line 212 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_subject_it); -#line 1799 "Alteration.c" - } -#line 206 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (other_keys); -#line 206 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (keys); -#line 1805 "Alteration.c" - } -#line 228 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = FALSE; -#line 228 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 1811 "Alteration.c" -} - - -gboolean -alteration_equals (Alteration* self, - Alteration* other) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - const gchar* _tmp3_; - gboolean _tmp12_ = FALSE; - GeeMultiMap* _tmp13_; -#line 231 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (IS_ALTERATION (self), FALSE); -#line 231 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (IS_ALTERATION (other), FALSE); -#line 233 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (self == other) { -#line 234 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = TRUE; -#line 234 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 1836 "Alteration.c" - } -#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp3_ = self->priv->subject; -#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp3_ != NULL) { -#line 1842 "Alteration.c" - const gchar* _tmp4_; -#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp4_ = other->priv->subject; -#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp2_ = _tmp4_ != NULL; -#line 1848 "Alteration.c" - } else { -#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp2_ = FALSE; -#line 1852 "Alteration.c" - } -#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp2_) { -#line 1856 "Alteration.c" - const gchar* _tmp5_; -#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp5_ = self->priv->detail; -#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp1_ = _tmp5_ != NULL; -#line 1862 "Alteration.c" - } else { -#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp1_ = FALSE; -#line 1866 "Alteration.c" - } -#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp1_) { -#line 1870 "Alteration.c" - const gchar* _tmp6_; -#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp6_ = other->priv->detail; -#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = _tmp6_ != NULL; -#line 1876 "Alteration.c" - } else { -#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = FALSE; -#line 1880 "Alteration.c" - } -#line 237 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp0_) { -#line 1884 "Alteration.c" - gboolean _tmp7_ = FALSE; - const gchar* _tmp8_; - const gchar* _tmp9_; -#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp8_ = self->priv->subject; -#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp9_ = other->priv->subject; -#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (alteration_equal_values (_tmp8_, _tmp9_)) { -#line 1894 "Alteration.c" - const gchar* _tmp10_; - const gchar* _tmp11_; -#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp10_ = self->priv->detail; -#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp11_ = other->priv->detail; -#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp7_ = alteration_equal_values (_tmp10_, _tmp11_); -#line 1903 "Alteration.c" - } else { -#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp7_ = FALSE; -#line 1907 "Alteration.c" - } -#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = _tmp7_; -#line 238 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 1913 "Alteration.c" - } -#line 241 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp13_ = self->priv->map; -#line 241 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp13_ != NULL) { -#line 1919 "Alteration.c" - GeeMultiMap* _tmp14_; -#line 241 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp14_ = other->priv->map; -#line 241 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp12_ = _tmp14_ != NULL; -#line 1925 "Alteration.c" - } else { -#line 241 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp12_ = FALSE; -#line 1929 "Alteration.c" - } -#line 241 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp12_) { -#line 1933 "Alteration.c" - GeeSet* keys = NULL; - GeeMultiMap* _tmp15_; - GeeSet* _tmp16_; - GeeSet* _tmp17_; - GeeSet* other_keys = NULL; - GeeMultiMap* _tmp18_; - GeeSet* _tmp19_; - GeeSet* _tmp20_; - GeeSet* _tmp21_; - gint _tmp22_; - gint _tmp23_; - GeeSet* _tmp24_; - gint _tmp25_; - gint _tmp26_; - GeeSet* _tmp27_; - GeeSet* _tmp28_; - GeeSet* _tmp29_; - GeeSet* _tmp30_; -#line 243 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp15_ = self->priv->map; -#line 243 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp16_ = gee_multi_map_get_keys (_tmp15_); -#line 243 "/home/jens/Source/shotwell/src/core/Alteration.vala" - keys = _tmp16_; -#line 244 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp17_ = keys; -#line 244 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_assert (_tmp17_ != NULL, "keys != null"); -#line 245 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp18_ = other->priv->map; -#line 245 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp19_ = gee_multi_map_get_keys (_tmp18_); -#line 245 "/home/jens/Source/shotwell/src/core/Alteration.vala" - other_keys = _tmp19_; -#line 246 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp20_ = other_keys; -#line 246 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_assert (_tmp20_ != NULL, "other_keys != null"); -#line 248 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp21_ = keys; -#line 248 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp22_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 248 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp23_ = _tmp22_; -#line 248 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp24_ = other_keys; -#line 248 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp25_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 248 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp26_ = _tmp25_; -#line 248 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp23_ != _tmp26_) { -#line 249 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = FALSE; -#line 249 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (other_keys); -#line 249 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (keys); -#line 249 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 1994 "Alteration.c" - } -#line 251 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp27_ = keys; -#line 251 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp28_ = other_keys; -#line 251 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (!gee_collection_contains_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection))) { -#line 252 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = FALSE; -#line 252 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (other_keys); -#line 252 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (keys); -#line 252 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 2010 "Alteration.c" - } -#line 254 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp29_ = other_keys; -#line 254 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp30_ = keys; -#line 254 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (!gee_collection_contains_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_COLLECTION, GeeCollection))) { -#line 255 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = FALSE; -#line 255 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (other_keys); -#line 255 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (keys); -#line 255 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 2026 "Alteration.c" - } - { - GeeIterator* _key_it = NULL; - GeeSet* _tmp31_; - GeeIterator* _tmp32_; -#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp31_ = keys; -#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp32_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _key_it = _tmp32_; -#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala" - while (TRUE) { -#line 2040 "Alteration.c" - GeeIterator* _tmp33_; - gchar* key = NULL; - GeeIterator* _tmp34_; - gpointer _tmp35_; - GeeCollection* values = NULL; - GeeMultiMap* _tmp36_; - const gchar* _tmp37_; - GeeCollection* _tmp38_; - GeeCollection* other_values = NULL; - GeeMultiMap* _tmp39_; - const gchar* _tmp40_; - GeeCollection* _tmp41_; - GeeCollection* _tmp42_; - gint _tmp43_; - gint _tmp44_; - GeeCollection* _tmp45_; - gint _tmp46_; - gint _tmp47_; - GeeCollection* _tmp48_; - GeeCollection* _tmp49_; - GeeCollection* _tmp50_; - GeeCollection* _tmp51_; -#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp33_ = _key_it; -#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (!gee_iterator_next (_tmp33_)) { -#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala" - break; -#line 2069 "Alteration.c" - } -#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp34_ = _key_it; -#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp35_ = gee_iterator_get (_tmp34_); -#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala" - key = (gchar*) _tmp35_; -#line 258 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp36_ = self->priv->map; -#line 258 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp37_ = key; -#line 258 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp38_ = gee_multi_map_get (_tmp36_, _tmp37_); -#line 258 "/home/jens/Source/shotwell/src/core/Alteration.vala" - values = _tmp38_; -#line 259 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp39_ = other->priv->map; -#line 259 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp40_ = key; -#line 259 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp41_ = gee_multi_map_get (_tmp39_, _tmp40_); -#line 259 "/home/jens/Source/shotwell/src/core/Alteration.vala" - other_values = _tmp41_; -#line 261 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp42_ = values; -#line 261 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp43_ = gee_collection_get_size (_tmp42_); -#line 261 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp44_ = _tmp43_; -#line 261 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp45_ = other_values; -#line 261 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp46_ = gee_collection_get_size (_tmp45_); -#line 261 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp47_ = _tmp46_; -#line 261 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp44_ != _tmp47_) { -#line 262 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = FALSE; -#line 262 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (other_values); -#line 262 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (values); -#line 262 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (key); -#line 262 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_key_it); -#line 262 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (other_keys); -#line 262 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (keys); -#line 262 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 2123 "Alteration.c" - } -#line 264 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp48_ = values; -#line 264 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp49_ = other_values; -#line 264 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (!gee_collection_contains_all (_tmp48_, _tmp49_)) { -#line 265 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = FALSE; -#line 265 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (other_values); -#line 265 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (values); -#line 265 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (key); -#line 265 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_key_it); -#line 265 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (other_keys); -#line 265 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (keys); -#line 265 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 2147 "Alteration.c" - } -#line 267 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp50_ = other_values; -#line 267 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp51_ = values; -#line 267 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (!gee_collection_contains_all (_tmp50_, _tmp51_)) { -#line 268 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = FALSE; -#line 268 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (other_values); -#line 268 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (values); -#line 268 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (key); -#line 268 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_key_it); -#line 268 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (other_keys); -#line 268 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (keys); -#line 268 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 2171 "Alteration.c" - } -#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (other_values); -#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (values); -#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (key); -#line 2179 "Alteration.c" - } -#line 257 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_key_it); -#line 2183 "Alteration.c" - } -#line 272 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = TRUE; -#line 272 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (other_keys); -#line 272 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (keys); -#line 272 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 2193 "Alteration.c" - } -#line 276 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = FALSE; -#line 276 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 2199 "Alteration.c" -} - - -static void -alteration_multimap_add_all (GeeMultiMap* dest, - GeeMultiMap* src) -{ - GeeSet* keys = NULL; - GeeSet* _tmp0_; -#line 279 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_if_fail (GEE_IS_MULTI_MAP (dest)); -#line 279 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_if_fail (GEE_IS_MULTI_MAP (src)); -#line 281 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = gee_multi_map_get_keys (src); -#line 281 "/home/jens/Source/shotwell/src/core/Alteration.vala" - keys = _tmp0_; -#line 2217 "Alteration.c" - { - GeeIterator* _key_it = NULL; - GeeSet* _tmp1_; - GeeIterator* _tmp2_; -#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp1_ = keys; -#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _key_it = _tmp2_; -#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala" - while (TRUE) { -#line 2230 "Alteration.c" - GeeIterator* _tmp3_; - gchar* key = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - GeeCollection* values = NULL; - const gchar* _tmp6_; - GeeCollection* _tmp7_; -#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp3_ = _key_it; -#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala" - break; -#line 2244 "Alteration.c" - } -#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp4_ = _key_it; -#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala" - key = (gchar*) _tmp5_; -#line 283 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp6_ = key; -#line 283 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp7_ = gee_multi_map_get (src, _tmp6_); -#line 283 "/home/jens/Source/shotwell/src/core/Alteration.vala" - values = _tmp7_; -#line 2258 "Alteration.c" - { - GeeIterator* _value_it = NULL; - GeeCollection* _tmp8_; - GeeIterator* _tmp9_; -#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp8_ = values; -#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _value_it = _tmp9_; -#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala" - while (TRUE) { -#line 2271 "Alteration.c" - GeeIterator* _tmp10_; - gchar* value = NULL; - GeeIterator* _tmp11_; - gpointer _tmp12_; - const gchar* _tmp13_; - const gchar* _tmp14_; -#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp10_ = _value_it; -#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (!gee_iterator_next (_tmp10_)) { -#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala" - break; -#line 2284 "Alteration.c" - } -#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp11_ = _value_it; -#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp12_ = gee_iterator_get (_tmp11_); -#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala" - value = (gchar*) _tmp12_; -#line 285 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp13_ = key; -#line 285 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp14_ = value; -#line 285 "/home/jens/Source/shotwell/src/core/Alteration.vala" - gee_multi_map_set (dest, _tmp13_, _tmp14_); -#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (value); -#line 2300 "Alteration.c" - } -#line 284 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_value_it); -#line 2304 "Alteration.c" - } -#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (values); -#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (key); -#line 2310 "Alteration.c" - } -#line 282 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (_key_it); -#line 2314 "Alteration.c" - } -#line 279 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (keys); -#line 2318 "Alteration.c" -} - - -static gpointer -_alteration_ref0 (gpointer self) -{ -#line 293 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return self ? alteration_ref (self) : NULL; -#line 2327 "Alteration.c" -} - - -Alteration* -alteration_compress (Alteration* self, - Alteration* other) -{ - Alteration* result = NULL; - GeeMultiMap* compressed = NULL; - GeeMultiMap* _tmp1_; - gboolean _tmp2_ = FALSE; - const gchar* _tmp3_; - gboolean _tmp11_ = FALSE; - const gchar* _tmp12_; - GeeMultiMap* _tmp20_; - Alteration* _tmp21_; -#line 291 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (IS_ALTERATION (self), NULL); -#line 291 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (IS_ALTERATION (other), NULL); -#line 292 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (alteration_equals (self, other)) { -#line 2350 "Alteration.c" - Alteration* _tmp0_; -#line 293 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp0_ = _alteration_ref0 (self); -#line 293 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = _tmp0_; -#line 293 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 2358 "Alteration.c" - } -#line 297 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp1_ = alteration_create_map (self); -#line 297 "/home/jens/Source/shotwell/src/core/Alteration.vala" - compressed = _tmp1_; -#line 299 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp3_ = self->priv->subject; -#line 299 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp3_ != NULL) { -#line 2368 "Alteration.c" - const gchar* _tmp4_; -#line 299 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp4_ = self->priv->detail; -#line 299 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp2_ = _tmp4_ != NULL; -#line 2374 "Alteration.c" - } else { -#line 299 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp2_ = FALSE; -#line 2378 "Alteration.c" - } -#line 299 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp2_) { -#line 2382 "Alteration.c" - GeeMultiMap* _tmp5_; - const gchar* _tmp6_; - const gchar* _tmp7_; -#line 300 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp5_ = compressed; -#line 300 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp6_ = self->priv->subject; -#line 300 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp7_ = self->priv->detail; -#line 300 "/home/jens/Source/shotwell/src/core/Alteration.vala" - gee_multi_map_set (_tmp5_, _tmp6_, _tmp7_); -#line 2394 "Alteration.c" - } else { - GeeMultiMap* _tmp8_; - GeeMultiMap* _tmp9_; - GeeMultiMap* _tmp10_; -#line 302 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp8_ = self->priv->map; -#line 302 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_assert (_tmp8_ != NULL, "map != null"); -#line 303 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp9_ = compressed; -#line 303 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp10_ = self->priv->map; -#line 303 "/home/jens/Source/shotwell/src/core/Alteration.vala" - alteration_multimap_add_all (_tmp9_, _tmp10_); -#line 2409 "Alteration.c" - } -#line 306 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp12_ = other->priv->subject; -#line 306 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp12_ != NULL) { -#line 2415 "Alteration.c" - const gchar* _tmp13_; -#line 306 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp13_ = other->priv->detail; -#line 306 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp11_ = _tmp13_ != NULL; -#line 2421 "Alteration.c" - } else { -#line 306 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp11_ = FALSE; -#line 2425 "Alteration.c" - } -#line 306 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (_tmp11_) { -#line 2429 "Alteration.c" - GeeMultiMap* _tmp14_; - const gchar* _tmp15_; - const gchar* _tmp16_; -#line 307 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp14_ = compressed; -#line 307 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp15_ = other->priv->subject; -#line 307 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp16_ = other->priv->detail; -#line 307 "/home/jens/Source/shotwell/src/core/Alteration.vala" - gee_multi_map_set (_tmp14_, _tmp15_, _tmp16_); -#line 2441 "Alteration.c" - } else { - GeeMultiMap* _tmp17_; - GeeMultiMap* _tmp18_; - GeeMultiMap* _tmp19_; -#line 309 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp17_ = other->priv->map; -#line 309 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _vala_assert (_tmp17_ != NULL, "other.map != null"); -#line 310 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp18_ = compressed; -#line 310 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp19_ = other->priv->map; -#line 310 "/home/jens/Source/shotwell/src/core/Alteration.vala" - alteration_multimap_add_all (_tmp18_, _tmp19_); -#line 2456 "Alteration.c" - } -#line 313 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp20_ = compressed; -#line 313 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _tmp21_ = alteration_new_from_map (_tmp20_); -#line 313 "/home/jens/Source/shotwell/src/core/Alteration.vala" - result = _tmp21_; -#line 313 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (compressed); -#line 313 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return result; -#line 2468 "Alteration.c" -} - - -static void -value_alteration_init (GValue* value) -{ -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - value->data[0].v_pointer = NULL; -#line 2477 "Alteration.c" -} - - -static void -value_alteration_free_value (GValue* value) -{ -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (value->data[0].v_pointer) { -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - alteration_unref (value->data[0].v_pointer); -#line 2488 "Alteration.c" - } -} - - -static void -value_alteration_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (src_value->data[0].v_pointer) { -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - dest_value->data[0].v_pointer = alteration_ref (src_value->data[0].v_pointer); -#line 2501 "Alteration.c" - } else { -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - dest_value->data[0].v_pointer = NULL; -#line 2505 "Alteration.c" - } -} - - -static gpointer -value_alteration_peek_pointer (const GValue* value) -{ -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return value->data[0].v_pointer; -#line 2515 "Alteration.c" -} - - -static gchar* -value_alteration_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (collect_values[0].v_pointer) { -#line 2527 "Alteration.c" - Alteration * object; - object = collect_values[0].v_pointer; -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (object->parent_instance.g_class == NULL) { -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2534 "Alteration.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2538 "Alteration.c" - } -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - value->data[0].v_pointer = alteration_ref (object); -#line 2542 "Alteration.c" - } else { -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - value->data[0].v_pointer = NULL; -#line 2546 "Alteration.c" - } -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return NULL; -#line 2550 "Alteration.c" -} - - -static gchar* -value_alteration_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - Alteration ** object_p; - object_p = collect_values[0].v_pointer; -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (!object_p) { -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2566 "Alteration.c" - } -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (!value->data[0].v_pointer) { -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - *object_p = NULL; -#line 2572 "Alteration.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - *object_p = value->data[0].v_pointer; -#line 2576 "Alteration.c" - } else { -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - *object_p = alteration_ref (value->data[0].v_pointer); -#line 2580 "Alteration.c" - } -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return NULL; -#line 2584 "Alteration.c" -} - - -GParamSpec* -param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecAlteration* spec; -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_ALTERATION), NULL); -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return G_PARAM_SPEC (spec); -#line 2604 "Alteration.c" -} - - -gpointer -value_get_alteration (const GValue* value) -{ -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ALTERATION), NULL); -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return value->data[0].v_pointer; -#line 2615 "Alteration.c" -} - - -void -value_set_alteration (GValue* value, - gpointer v_object) -{ - Alteration * old; -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ALTERATION)); -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - old = value->data[0].v_pointer; -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (v_object) { -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_ALTERATION)); -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - value->data[0].v_pointer = v_object; -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - alteration_ref (value->data[0].v_pointer); -#line 2638 "Alteration.c" - } else { -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - value->data[0].v_pointer = NULL; -#line 2642 "Alteration.c" - } -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (old) { -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - alteration_unref (old); -#line 2648 "Alteration.c" - } -} - - -void -value_take_alteration (GValue* value, - gpointer v_object) -{ - Alteration * old; -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ALTERATION)); -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - old = value->data[0].v_pointer; -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (v_object) { -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_ALTERATION)); -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - value->data[0].v_pointer = v_object; -#line 2670 "Alteration.c" - } else { -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - value->data[0].v_pointer = NULL; -#line 2674 "Alteration.c" - } -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (old) { -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - alteration_unref (old); -#line 2680 "Alteration.c" - } -} - - -static void -alteration_class_init (AlterationClass * klass) -{ -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - alteration_parent_class = g_type_class_peek_parent (klass); -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - ((AlterationClass *) klass)->finalize = alteration_finalize; -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_type_class_add_private (klass, sizeof (AlterationPrivate)); -#line 2694 "Alteration.c" -} - - -static void -alteration_instance_init (Alteration * self) -{ -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - self->priv = ALTERATION_GET_PRIVATE (self); -#line 28 "/home/jens/Source/shotwell/src/core/Alteration.vala" - self->priv->subject = NULL; -#line 29 "/home/jens/Source/shotwell/src/core/Alteration.vala" - self->priv->detail = NULL; -#line 30 "/home/jens/Source/shotwell/src/core/Alteration.vala" - self->priv->map = NULL; -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - self->ref_count = 1; -#line 2711 "Alteration.c" -} - - -static void -alteration_finalize (Alteration * obj) -{ - Alteration * self; -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ALTERATION, Alteration); -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_signal_handlers_destroy (self); -#line 28 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (self->priv->subject); -#line 29 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_free0 (self->priv->detail); -#line 30 "/home/jens/Source/shotwell/src/core/Alteration.vala" - _g_object_unref0 (self->priv->map); -#line 2729 "Alteration.c" -} - - -GType -alteration_get_type (void) -{ - static volatile gsize alteration_type_id__volatile = 0; - if (g_once_init_enter (&alteration_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_alteration_init, value_alteration_free_value, value_alteration_copy_value, value_alteration_peek_pointer, "p", value_alteration_collect_value, "p", value_alteration_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (AlterationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) alteration_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Alteration), 0, (GInstanceInitFunc) alteration_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType alteration_type_id; - alteration_type_id = g_type_register_fundamental (g_type_fundamental_next (), "Alteration", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&alteration_type_id__volatile, alteration_type_id); - } - return alteration_type_id__volatile; -} - - -gpointer -alteration_ref (gpointer instance) -{ - Alteration * self; - self = instance; -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_atomic_int_inc (&self->ref_count); -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - return instance; -#line 2758 "Alteration.c" -} - - -void -alteration_unref (gpointer instance) -{ - Alteration * self; - self = instance; -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - ALTERATION_GET_CLASS (self)->finalize (self); -#line 27 "/home/jens/Source/shotwell/src/core/Alteration.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2773 "Alteration.c" - } -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/src/core/ContainerSourceCollection.c b/src/core/ContainerSourceCollection.c deleted file mode 100644 index f9f30cb..0000000 --- a/src/core/ContainerSourceCollection.c +++ /dev/null @@ -1,2236 +0,0 @@ -/* ContainerSourceCollection.c generated by valac 0.40.4, the Vala compiler - * generated from ContainerSourceCollection.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/* A ContainerSourceCollection is for DataSources which maintain links to one or more other*/ -/* DataSources, assumed to be of a different type. ContainerSourceCollection automates the task*/ -/* of handling unlinking and relinking and maintaining backlinks. Unlinked DataSources are*/ -/* held in a holding tank, until they are either relinked or destroyed.*/ -/**/ -/* If the ContainerSourceCollection's DataSources are types that "evaporate" (i.e. they disappear*/ -/* when they hold no items), they should use the evaporate() method, which will either destroy*/ -/* the DataSource or hold it in the tank (if backlinks are outstanding).*/ - - -#include -#include -#include -#include -#include - - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; -typedef struct _DataCollectionPrivate DataCollectionPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; -typedef struct _SourceCollectionPrivate SourceCollectionPrivate; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ()) -#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink)) -#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) -#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK)) -#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK)) -#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) - -typedef struct _SourceBacklink SourceBacklink; -typedef struct _SourceBacklinkClass SourceBacklinkClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; -typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; -typedef struct _ContainerSourceCollectionPrivate ContainerSourceCollectionPrivate; - -#define TYPE_CONTAINER_SOURCE (container_source_get_type ()) -#define CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE, ContainerSource)) -#define IS_CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE)) -#define CONTAINER_SOURCE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONTAINER_SOURCE, ContainerSourceIface)) - -typedef struct _ContainerSource ContainerSource; -typedef struct _ContainerSourceIface ContainerSourceIface; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _source_backlink_unref0(var) ((var == NULL) ? NULL : (var = (source_backlink_unref (var), NULL))) - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; -enum { - CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ADDED_SIGNAL, - CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_REMOVED_SIGNAL, - CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ALTERED_SIGNAL, - CONTAINER_SOURCE_COLLECTION_BACKLINK_TO_CONTAINER_REMOVED_SIGNAL, - CONTAINER_SOURCE_COLLECTION_NUM_SIGNALS -}; -static guint container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -struct _DataCollection { - GTypeInstance parent_instance; - volatile int ref_count; - DataCollectionPrivate * priv; -}; - -struct _DataCollectionClass { - GTypeClass parent_class; - void (*finalize) (DataCollection *self); - gchar* (*to_string) (DataCollection* self); - void (*notify_items_added) (DataCollection* self, GeeIterable* added); - void (*notify_items_removed) (DataCollection* self, GeeIterable* removed); - void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*notify_items_altered) (DataCollection* self, GeeMap* items); - void (*notify_ordering_changed) (DataCollection* self); - void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*notify_property_cleared) (DataCollection* self, const gchar* name); - gboolean (*valid_type) (DataCollection* self, DataObject* object); - void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target); - void (*reset_comparator) (DataCollection* self); - GeeCollection* (*get_all) (DataCollection* self); - gint (*get_count) (DataCollection* self); - DataObject* (*get_at) (DataCollection* self, gint index); - gint (*index_of) (DataCollection* self, DataObject* object); - gboolean (*contains) (DataCollection* self, DataObject* object); - gboolean (*add) (DataCollection* self, DataObject* object); - GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target); - void (*remove_marked) (DataCollection* self, Marker* m); - void (*clear) (DataCollection* self); - void (*close) (DataCollection* self); - void (*notify_frozen) (DataCollection* self); - void (*notify_thawed) (DataCollection* self); - void (*items_added) (DataCollection* self, GeeIterable* added); - void (*items_removed) (DataCollection* self, GeeIterable* removed); - void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*items_altered) (DataCollection* self, GeeMap* items); - void (*ordering_changed) (DataCollection* self); - void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*property_cleared) (DataCollection* self, const gchar* name); - void (*frozen) (DataCollection* self); - void (*thawed) (DataCollection* self); -}; - -struct _SourceCollection { - DataCollection parent_instance; - SourceCollectionPrivate * priv; -}; - -struct _SourceCollectionClass { - DataCollectionClass parent_class; - gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source); - void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*notify_item_destroyed) (SourceCollection* self, DataSource* source); - void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked); - void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); - gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*item_destroyed) (SourceCollection* self, DataSource* source); - void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*unlinked_destroyed) (SourceCollection* self, DataSource* source); - void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); -}; - -struct _DatabaseSourceCollection { - SourceCollection parent_instance; - DatabaseSourceCollectionPrivate * priv; -}; - -struct _DatabaseSourceCollectionClass { - SourceCollectionClass parent_class; -}; - -struct _ContainerSourceIface { - GTypeInterface parent_iface; - gboolean (*has_links) (ContainerSource* self); - SourceBacklink* (*get_backlink) (ContainerSource* self); - void (*break_link) (ContainerSource* self, DataSource* source); - void (*break_link_many) (ContainerSource* self, GeeCollection* sources); - void (*establish_link) (ContainerSource* self, DataSource* source); - void (*establish_link_many) (ContainerSource* self, GeeCollection* sources); -}; - -struct _ContainerSourceCollection { - DatabaseSourceCollection parent_instance; - ContainerSourceCollectionPrivate * priv; -}; - -struct _ContainerSourceCollectionClass { - DatabaseSourceCollectionClass parent_class; - void (*notify_container_contents_added) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked); - void (*notify_container_contents_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked); - void (*notify_container_contents_altered) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked); - void (*notify_backlink_to_container_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources); - GeeCollection* (*get_containers_holding_source) (ContainerSourceCollection* self, DataSource* source); - ContainerSource* (*convert_backlink_to_container) (ContainerSourceCollection* self, SourceBacklink* backlink); - void (*container_contents_added) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked); - void (*container_contents_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* removed, gboolean unlinked); - void (*container_contents_altered) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* added, gboolean relinked, GeeCollection* removed, gboolean unlinked); - void (*backlink_to_container_removed) (ContainerSourceCollection* self, ContainerSource* container, GeeCollection* sources); -}; - -struct _ContainerSourceCollectionPrivate { - GeeHashSet* attached_collections; - gchar* backlink_name; - GeeHashSet* holding_tank; -}; - -typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data); - -static gpointer container_source_collection_parent_class = NULL; - -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -GType marker_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -gpointer source_backlink_ref (gpointer instance); -void source_backlink_unref (gpointer instance); -GParamSpec* param_spec_source_backlink (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_backlink (GValue* value, - gpointer v_object); -void value_take_source_backlink (GValue* value, - gpointer v_object); -gpointer value_get_source_backlink (const GValue* value); -GType source_backlink_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_get_type (void) G_GNUC_CONST; -#define CONTAINER_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionPrivate)) -void container_source_collection_detach_all_collections (ContainerSourceCollection* self); -ContainerSourceCollection* container_source_collection_construct (GType object_type, - const gchar* backlink_name, - const gchar* name, - GetSourceDatabaseKey source_key_func, - void* source_key_func_target); -DatabaseSourceCollection* database_source_collection_construct (GType object_type, - const gchar* name, - GetSourceDatabaseKey source_key_func, - void* source_key_func_target); -static void container_source_collection_real_notify_backlink_removed (SourceCollection* base, - SourceBacklink* backlink, - GeeCollection* sources); -void source_collection_notify_backlink_removed (SourceCollection* self, - SourceBacklink* backlink, - GeeCollection* sources); -ContainerSource* container_source_collection_convert_backlink_to_container (ContainerSourceCollection* self, - SourceBacklink* backlink); -void container_source_collection_notify_backlink_to_container_removed (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* sources); -void container_source_collection_notify_container_contents_added (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinked); -static void container_source_collection_real_notify_container_contents_added (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinked); -void source_collection_relink (SourceCollection* self, - DataSource* source); -void container_source_collection_notify_container_contents_removed (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* removed, - gboolean unlinked); -static void container_source_collection_real_notify_container_contents_removed (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* removed, - gboolean unlinked); -void container_source_collection_notify_container_contents_altered (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinked, - GeeCollection* removed, - gboolean unlinked); -static void container_source_collection_real_notify_container_contents_altered (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinked, - GeeCollection* removed, - gboolean unlinked); -static void container_source_collection_real_notify_backlink_to_container_removed (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* sources); -GeeCollection* container_source_collection_get_containers_holding_source (ContainerSourceCollection* self, - DataSource* source); -static GeeCollection* container_source_collection_real_get_containers_holding_source (ContainerSourceCollection* self, - DataSource* source); -static ContainerSource* container_source_collection_real_convert_backlink_to_container (ContainerSourceCollection* self, - SourceBacklink* backlink); -void container_source_collection_freeze_attached_notifications (ContainerSourceCollection* self); -void data_collection_freeze_notifications (DataCollection* self); -void container_source_collection_thaw_attached_notifications (ContainerSourceCollection* self); -void data_collection_thaw_notifications (DataCollection* self); -GeeCollection* container_source_collection_get_holding_tank (ContainerSourceCollection* self); -void container_source_collection_init_add_unlinked (ContainerSourceCollection* self, - ContainerSource* unlinked); -void container_source_collection_init_add_many_unlinked (ContainerSourceCollection* self, - GeeCollection* unlinked); -gboolean container_source_collection_relink_from_holding_tank (ContainerSourceCollection* self, - ContainerSource* source); -static void container_source_collection_on_contained_sources_unlinking (ContainerSourceCollection* self, - GeeCollection* unlinking); -void data_source_set_backlink (DataSource* self, - SourceBacklink* backlink); -SourceBacklink* container_source_get_backlink (ContainerSource* self); -void container_source_break_link_many (ContainerSource* self, - GeeCollection* sources); -static void container_source_collection_on_contained_sources_relinked (ContainerSourceCollection* self, - GeeCollection* relinked); -GeeList* data_source_get_backlinks (DataSource* self, - const gchar* name); -gchar* data_object_to_string (DataObject* self); -gchar* source_backlink_to_string (SourceBacklink* self); -void container_source_establish_link_many (ContainerSource* self, - GeeCollection* sources); -static void container_source_collection_on_contained_source_destroyed (ContainerSourceCollection* self, - DataSource* source); -gboolean container_source_has_links (ContainerSource* self); -GType tag_get_type (void) G_GNUC_CONST; -gboolean data_source_destroy_orphan (DataSource* self, - gboolean delete_backing); -static void container_source_collection_real_notify_item_destroyed (SourceCollection* base, - DataSource* source); -void source_collection_remove_backlink (SourceCollection* self, - SourceBacklink* backlink); -void source_collection_notify_item_destroyed (SourceCollection* self, - DataSource* source); -void container_source_collection_evaporate (ContainerSourceCollection* self, - ContainerSource* container); -gboolean source_collection_has_backlink (SourceCollection* self, - SourceBacklink* backlink); -GeeCollection* source_collection_unlink_marked (SourceCollection* self, - Marker* marker, - ProgressMonitor monitor, - void* monitor_target); -Marker* data_collection_mark (DataCollection* self, - DataObject* object); -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -gint source_collection_destroy_marked (SourceCollection* self, - Marker* marker, - gboolean delete_backing, - ProgressMonitor monitor, - void* monitor_target, - GeeList* not_removed); -void container_source_collection_attach_collection (ContainerSourceCollection* self, - SourceCollection* collection); -gchar* data_collection_to_string (DataCollection* self); -static void _container_source_collection_on_contained_sources_unlinking_source_collection_items_unlinking (SourceCollection* _sender, - GeeCollection* unlinking, - gpointer self); -static void _container_source_collection_on_contained_sources_relinked_source_collection_items_relinked (SourceCollection* _sender, - GeeCollection* relinked, - gpointer self); -static void _container_source_collection_on_contained_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self); -static void _container_source_collection_on_contained_source_destroyed_source_collection_unlinked_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self); -static void container_source_collection_real_container_contents_added (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinked); -static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void container_source_collection_real_container_contents_removed (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* removed, - gboolean unlinked); -static void container_source_collection_real_container_contents_altered (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinked, - GeeCollection* removed, - gboolean unlinked); -static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void container_source_collection_real_backlink_to_container_removed (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* sources); -static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void container_source_collection_finalize (DataCollection * obj); - - -ContainerSourceCollection* -container_source_collection_construct (GType object_type, - const gchar* backlink_name, - const gchar* name, - GetSourceDatabaseKey source_key_func, - void* source_key_func_target) -{ - ContainerSourceCollection* self = NULL; - gchar* _tmp0_; -#line 38 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_val_if_fail (backlink_name != NULL, NULL); -#line 38 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 40 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - self = (ContainerSourceCollection*) database_source_collection_construct (object_type, name, source_key_func, source_key_func_target); -#line 42 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp0_ = g_strdup (backlink_name); -#line 42 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_free0 (self->priv->backlink_name); -#line 42 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - self->priv->backlink_name = _tmp0_; -#line 38 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - return self; -#line 542 "ContainerSourceCollection.c" -} - - -static void -container_source_collection_real_notify_backlink_removed (SourceCollection* base, - SourceBacklink* backlink, - GeeCollection* sources) -{ - ContainerSourceCollection * self; - ContainerSource* container = NULL; - ContainerSource* _tmp0_; - ContainerSource* _tmp1_; -#line 49 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection); -#line 49 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_SOURCE_BACKLINK (backlink)); -#line 49 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 51 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - SOURCE_COLLECTION_CLASS (container_source_collection_parent_class)->notify_backlink_removed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_SOURCE_COLLECTION, SourceCollection), backlink, sources); -#line 53 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp0_ = container_source_collection_convert_backlink_to_container (self, backlink); -#line 53 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container = _tmp0_; -#line 54 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp1_ = container; -#line 54 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (_tmp1_ != NULL) { -#line 571 "ContainerSourceCollection.c" - ContainerSource* _tmp2_; -#line 55 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp2_ = container; -#line 55 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container_source_collection_notify_backlink_to_container_removed (self, _tmp2_, sources); -#line 577 "ContainerSourceCollection.c" - } -#line 49 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (container); -#line 581 "ContainerSourceCollection.c" -} - - -static void -container_source_collection_real_notify_container_contents_added (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinked) -{ - GeeHashSet* _tmp0_; -#line 58 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (container)); -#line 58 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (added)); -#line 61 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp0_ = self->priv->holding_tank; -#line 61 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), container)) { -#line 600 "ContainerSourceCollection.c" - gboolean removed = FALSE; - GeeHashSet* _tmp1_; - gboolean _tmp2_; -#line 62 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp1_ = self->priv->holding_tank; -#line 62 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - removed = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), container); -#line 63 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp2_ = removed; -#line 63 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _vala_assert (_tmp2_, "removed"); -#line 65 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - source_collection_relink (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (container, TYPE_DATA_SOURCE, DataSource)); -#line 614 "ContainerSourceCollection.c" - } -#line 68 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_signal_emit (self, container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ADDED_SIGNAL], 0, container, added, relinked); -#line 618 "ContainerSourceCollection.c" -} - - -void -container_source_collection_notify_container_contents_added (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinked) -{ -#line 58 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self)); -#line 58 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->notify_container_contents_added (self, container, added, relinked); -#line 632 "ContainerSourceCollection.c" -} - - -static void -container_source_collection_real_notify_container_contents_removed (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* removed, - gboolean unlinked) -{ -#line 71 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (container)); -#line 71 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (removed)); -#line 73 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_signal_emit (self, container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_REMOVED_SIGNAL], 0, container, removed, unlinked); -#line 648 "ContainerSourceCollection.c" -} - - -void -container_source_collection_notify_container_contents_removed (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* removed, - gboolean unlinked) -{ -#line 71 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self)); -#line 71 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->notify_container_contents_removed (self, container, removed, unlinked); -#line 662 "ContainerSourceCollection.c" -} - - -static void -container_source_collection_real_notify_container_contents_altered (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinked, - GeeCollection* removed, - gboolean unlinked) -{ -#line 76 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (container)); -#line 76 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 76 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 79 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_signal_emit (self, container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ALTERED_SIGNAL], 0, container, added, relinked, removed, unlinked); -#line 682 "ContainerSourceCollection.c" -} - - -void -container_source_collection_notify_container_contents_altered (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinked, - GeeCollection* removed, - gboolean unlinked) -{ -#line 76 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self)); -#line 76 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->notify_container_contents_altered (self, container, added, relinked, removed, unlinked); -#line 698 "ContainerSourceCollection.c" -} - - -static void -container_source_collection_real_notify_backlink_to_container_removed (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* sources) -{ -#line 82 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (container)); -#line 82 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 84 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_signal_emit (self, container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_BACKLINK_TO_CONTAINER_REMOVED_SIGNAL], 0, container, sources); -#line 713 "ContainerSourceCollection.c" -} - - -void -container_source_collection_notify_backlink_to_container_removed (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* sources) -{ -#line 82 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self)); -#line 82 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->notify_backlink_to_container_removed (self, container, sources); -#line 726 "ContainerSourceCollection.c" -} - - -static GeeCollection* -container_source_collection_real_get_containers_holding_source (ContainerSourceCollection* self, - DataSource* source) -{ -#line 87 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_critical ("Type `%s' does not implement abstract method `container_source_collection_get_containers_holding_source'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 87 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - return NULL; -#line 738 "ContainerSourceCollection.c" -} - - -GeeCollection* -container_source_collection_get_containers_holding_source (ContainerSourceCollection* self, - DataSource* source) -{ -#line 87 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_val_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self), NULL); -#line 87 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - return CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->get_containers_holding_source (self, source); -#line 750 "ContainerSourceCollection.c" -} - - -static ContainerSource* -container_source_collection_real_convert_backlink_to_container (ContainerSourceCollection* self, - SourceBacklink* backlink) -{ -#line 90 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_critical ("Type `%s' does not implement abstract method `container_source_collection_convert_backlink_to_container'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 90 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - return NULL; -#line 762 "ContainerSourceCollection.c" -} - - -ContainerSource* -container_source_collection_convert_backlink_to_container (ContainerSourceCollection* self, - SourceBacklink* backlink) -{ -#line 90 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_val_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self), NULL); -#line 90 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - return CONTAINER_SOURCE_COLLECTION_GET_CLASS (self)->convert_backlink_to_container (self, backlink); -#line 774 "ContainerSourceCollection.c" -} - - -void -container_source_collection_freeze_attached_notifications (ContainerSourceCollection* self) -{ -#line 92 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self)); -#line 783 "ContainerSourceCollection.c" - { - GeeIterator* _collection_it = NULL; - GeeHashSet* _tmp0_; - GeeIterator* _tmp1_; -#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp0_ = self->priv->attached_collections; -#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _collection_it = _tmp1_; -#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - while (TRUE) { -#line 796 "ContainerSourceCollection.c" - GeeIterator* _tmp2_; - SourceCollection* collection = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - SourceCollection* _tmp5_; -#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp2_ = _collection_it; -#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - break; -#line 808 "ContainerSourceCollection.c" - } -#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp3_ = _collection_it; -#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - collection = (SourceCollection*) _tmp4_; -#line 94 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp5_ = collection; -#line 94 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection)); -#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _data_collection_unref0 (collection); -#line 822 "ContainerSourceCollection.c" - } -#line 93 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_collection_it); -#line 826 "ContainerSourceCollection.c" - } -} - - -void -container_source_collection_thaw_attached_notifications (ContainerSourceCollection* self) -{ -#line 97 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self)); -#line 836 "ContainerSourceCollection.c" - { - GeeIterator* _collection_it = NULL; - GeeHashSet* _tmp0_; - GeeIterator* _tmp1_; -#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp0_ = self->priv->attached_collections; -#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _collection_it = _tmp1_; -#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - while (TRUE) { -#line 849 "ContainerSourceCollection.c" - GeeIterator* _tmp2_; - SourceCollection* collection = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - SourceCollection* _tmp5_; -#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp2_ = _collection_it; -#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - break; -#line 861 "ContainerSourceCollection.c" - } -#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp3_ = _collection_it; -#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - collection = (SourceCollection*) _tmp4_; -#line 99 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp5_ = collection; -#line 99 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection)); -#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _data_collection_unref0 (collection); -#line 875 "ContainerSourceCollection.c" - } -#line 98 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_collection_it); -#line 879 "ContainerSourceCollection.c" - } -} - - -GeeCollection* -container_source_collection_get_holding_tank (ContainerSourceCollection* self) -{ - GeeCollection* result = NULL; - GeeHashSet* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; -#line 102 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_val_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self), NULL); -#line 103 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp0_ = self->priv->holding_tank; -#line 103 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp1_ = gee_abstract_set_get_read_only_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_SET, GeeAbstractSet)); -#line 103 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp2_ = _tmp1_; -#line 103 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 103 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - return result; -#line 903 "ContainerSourceCollection.c" -} - - -void -container_source_collection_init_add_unlinked (ContainerSourceCollection* self, - ContainerSource* unlinked) -{ - GeeHashSet* _tmp0_; -#line 106 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self)); -#line 106 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (unlinked)); -#line 107 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp0_ = self->priv->holding_tank; -#line 107 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), unlinked); -#line 920 "ContainerSourceCollection.c" -} - - -void -container_source_collection_init_add_many_unlinked (ContainerSourceCollection* self, - GeeCollection* unlinked) -{ - GeeHashSet* _tmp0_; -#line 110 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self)); -#line 110 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (unlinked)); -#line 111 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp0_ = self->priv->holding_tank; -#line 111 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), unlinked); -#line 937 "ContainerSourceCollection.c" -} - - -gboolean -container_source_collection_relink_from_holding_tank (ContainerSourceCollection* self, - ContainerSource* source) -{ - gboolean result = FALSE; - GeeHashSet* _tmp0_; -#line 114 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_val_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self), FALSE); -#line 114 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_val_if_fail (IS_CONTAINER_SOURCE (source), FALSE); -#line 115 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp0_ = self->priv->holding_tank; -#line 115 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (!gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), source)) { -#line 116 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - result = FALSE; -#line 116 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - return result; -#line 959 "ContainerSourceCollection.c" - } -#line 118 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - source_collection_relink (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)); -#line 120 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - result = TRUE; -#line 120 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - return result; -#line 967 "ContainerSourceCollection.c" -} - - -static void -container_source_collection_on_contained_sources_unlinking (ContainerSourceCollection* self, - GeeCollection* unlinking) -{ - GeeHashMultiMap* map = NULL; - GeeHashMultiMap* _tmp0_; -#line 123 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self)); -#line 123 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (unlinking)); -#line 124 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container_source_collection_freeze_attached_notifications (self); -#line 126 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp0_ = gee_hash_multi_map_new (TYPE_CONTAINER_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 126 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - map = _tmp0_; -#line 987 "ContainerSourceCollection.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp1_; -#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (unlinking, GEE_TYPE_ITERABLE, GeeIterable)); -#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _source_it = _tmp1_; -#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - while (TRUE) { -#line 997 "ContainerSourceCollection.c" - GeeIterator* _tmp2_; - DataSource* source = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - GeeCollection* containers = NULL; - DataSource* _tmp5_; - GeeCollection* _tmp6_; - gboolean _tmp7_ = FALSE; - GeeCollection* _tmp8_; -#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp2_ = _source_it; -#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - break; -#line 1013 "ContainerSourceCollection.c" - } -#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp3_ = _source_it; -#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - source = (DataSource*) _tmp4_; -#line 130 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp5_ = source; -#line 130 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp6_ = container_source_collection_get_containers_holding_source (self, _tmp5_); -#line 130 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - containers = _tmp6_; -#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp8_ = containers; -#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (_tmp8_ == NULL) { -#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp7_ = TRUE; -#line 1033 "ContainerSourceCollection.c" - } else { - GeeCollection* _tmp9_; - gint _tmp10_; - gint _tmp11_; -#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp9_ = containers; -#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp10_ = gee_collection_get_size (_tmp9_); -#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp11_ = _tmp10_; -#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp7_ = _tmp11_ == 0; -#line 1046 "ContainerSourceCollection.c" - } -#line 131 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (_tmp7_) { -#line 132 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (containers); -#line 132 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (source); -#line 132 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - continue; -#line 1056 "ContainerSourceCollection.c" - } - { - GeeIterator* _container_it = NULL; - GeeCollection* _tmp12_; - GeeIterator* _tmp13_; -#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp12_ = containers; -#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _container_it = _tmp13_; -#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - while (TRUE) { -#line 1070 "ContainerSourceCollection.c" - GeeIterator* _tmp14_; - ContainerSource* container = NULL; - GeeIterator* _tmp15_; - gpointer _tmp16_; - GeeHashMultiMap* _tmp17_; - ContainerSource* _tmp18_; - DataSource* _tmp19_; - DataSource* _tmp20_; - ContainerSource* _tmp21_; - SourceBacklink* _tmp22_; - SourceBacklink* _tmp23_; -#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp14_ = _container_it; -#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (!gee_iterator_next (_tmp14_)) { -#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - break; -#line 1088 "ContainerSourceCollection.c" - } -#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp15_ = _container_it; -#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp16_ = gee_iterator_get (_tmp15_); -#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container = (ContainerSource*) _tmp16_; -#line 135 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp17_ = map; -#line 135 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp18_ = container; -#line 135 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp19_ = source; -#line 135 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp18_, _tmp19_); -#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp20_ = source; -#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp21_ = container; -#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp22_ = container_source_get_backlink (_tmp21_); -#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp23_ = _tmp22_; -#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - data_source_set_backlink (_tmp20_, _tmp23_); -#line 136 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _source_backlink_unref0 (_tmp23_); -#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (container); -#line 1118 "ContainerSourceCollection.c" - } -#line 134 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_container_it); -#line 1122 "ContainerSourceCollection.c" - } -#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (containers); -#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (source); -#line 1128 "ContainerSourceCollection.c" - } -#line 129 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_source_it); -#line 1132 "ContainerSourceCollection.c" - } - { - GeeIterator* _container_it = NULL; - GeeHashMultiMap* _tmp24_; - GeeSet* _tmp25_; - GeeSet* _tmp26_; - GeeIterator* _tmp27_; - GeeIterator* _tmp28_; -#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp24_ = map; -#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp25_ = gee_multi_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_MULTI_MAP, GeeMultiMap)); -#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp26_ = _tmp25_; -#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp27_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp28_ = _tmp27_; -#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_tmp26_); -#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _container_it = _tmp28_; -#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - while (TRUE) { -#line 1157 "ContainerSourceCollection.c" - GeeIterator* _tmp29_; - ContainerSource* container = NULL; - GeeIterator* _tmp30_; - gpointer _tmp31_; - ContainerSource* _tmp32_; - GeeHashMultiMap* _tmp33_; - ContainerSource* _tmp34_; - GeeCollection* _tmp35_; - GeeCollection* _tmp36_; -#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp29_ = _container_it; -#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (!gee_iterator_next (_tmp29_)) { -#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - break; -#line 1173 "ContainerSourceCollection.c" - } -#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp30_ = _container_it; -#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp31_ = gee_iterator_get (_tmp30_); -#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container = (ContainerSource*) _tmp31_; -#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp32_ = container; -#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp33_ = map; -#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp34_ = container; -#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp35_ = gee_multi_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp34_); -#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp36_ = _tmp35_; -#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container_source_break_link_many (_tmp32_, _tmp36_); -#line 141 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_tmp36_); -#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (container); -#line 1197 "ContainerSourceCollection.c" - } -#line 140 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_container_it); -#line 1201 "ContainerSourceCollection.c" - } -#line 143 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container_source_collection_thaw_attached_notifications (self); -#line 123 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (map); -#line 1207 "ContainerSourceCollection.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - return self ? g_object_ref (self) : NULL; -#line 1216 "ContainerSourceCollection.c" -} - - -static void -container_source_collection_on_contained_sources_relinked (ContainerSourceCollection* self, - GeeCollection* relinked) -{ - GeeHashMultiMap* map = NULL; - GeeHashMultiMap* _tmp0_; -#line 146 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self)); -#line 146 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (relinked)); -#line 147 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container_source_collection_freeze_attached_notifications (self); -#line 149 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp0_ = gee_hash_multi_map_new (TYPE_CONTAINER_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 149 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - map = _tmp0_; -#line 1236 "ContainerSourceCollection.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp1_; -#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (relinked, GEE_TYPE_ITERABLE, GeeIterable)); -#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _source_it = _tmp1_; -#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - while (TRUE) { -#line 1246 "ContainerSourceCollection.c" - GeeIterator* _tmp2_; - DataSource* source = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - GeeList* backlinks = NULL; - DataSource* _tmp5_; - const gchar* _tmp6_; - GeeList* _tmp7_; - gboolean _tmp8_ = FALSE; - GeeList* _tmp9_; -#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp2_ = _source_it; -#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - break; -#line 1263 "ContainerSourceCollection.c" - } -#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp3_ = _source_it; -#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - source = (DataSource*) _tmp4_; -#line 153 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp5_ = source; -#line 153 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp6_ = self->priv->backlink_name; -#line 153 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp7_ = data_source_get_backlinks (_tmp5_, _tmp6_); -#line 153 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - backlinks = _tmp7_; -#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp9_ = backlinks; -#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (_tmp9_ == NULL) { -#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp8_ = TRUE; -#line 1285 "ContainerSourceCollection.c" - } else { - GeeList* _tmp10_; - gint _tmp11_; - gint _tmp12_; -#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp10_ = backlinks; -#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp11_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp12_ = _tmp11_; -#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp8_ = _tmp12_ == 0; -#line 1298 "ContainerSourceCollection.c" - } -#line 154 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (_tmp8_) { -#line 155 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (backlinks); -#line 155 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (source); -#line 155 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - continue; -#line 1308 "ContainerSourceCollection.c" - } - { - GeeList* _backlink_list = NULL; - GeeList* _tmp13_; - GeeList* _tmp14_; - gint _backlink_size = 0; - GeeList* _tmp15_; - gint _tmp16_; - gint _tmp17_; - gint _backlink_index = 0; -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp13_ = backlinks; -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp14_ = _g_object_ref0 (_tmp13_); -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _backlink_list = _tmp14_; -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp15_ = _backlink_list; -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp16_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp17_ = _tmp16_; -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _backlink_size = _tmp17_; -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _backlink_index = -1; -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - while (TRUE) { -#line 1337 "ContainerSourceCollection.c" - gint _tmp18_; - gint _tmp19_; - gint _tmp20_; - SourceBacklink* backlink = NULL; - GeeList* _tmp21_; - gint _tmp22_; - gpointer _tmp23_; - ContainerSource* container = NULL; - SourceBacklink* _tmp24_; - ContainerSource* _tmp25_; - ContainerSource* _tmp26_; -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp18_ = _backlink_index; -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _backlink_index = _tmp18_ + 1; -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp19_ = _backlink_index; -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp20_ = _backlink_size; -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (!(_tmp19_ < _tmp20_)) { -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - break; -#line 1361 "ContainerSourceCollection.c" - } -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp21_ = _backlink_list; -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp22_ = _backlink_index; -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp23_ = gee_list_get (_tmp21_, _tmp22_); -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - backlink = (SourceBacklink*) _tmp23_; -#line 158 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp24_ = backlink; -#line 158 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp25_ = container_source_collection_convert_backlink_to_container (self, _tmp24_); -#line 158 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container = _tmp25_; -#line 159 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp26_ = container; -#line 159 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (_tmp26_ != NULL) { -#line 1381 "ContainerSourceCollection.c" - GeeHashMultiMap* _tmp27_; - ContainerSource* _tmp28_; - DataSource* _tmp29_; -#line 160 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp27_ = map; -#line 160 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp28_ = container; -#line 160 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp29_ = source; -#line 160 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp28_, _tmp29_); -#line 1393 "ContainerSourceCollection.c" - } else { - DataSource* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - SourceBacklink* _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; -#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp30_ = source; -#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp31_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_DATA_OBJECT, DataObject)); -#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp32_ = _tmp31_; -#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp33_ = backlink; -#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp34_ = source_backlink_to_string (_tmp33_); -#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp35_ = _tmp34_; -#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_warning ("ContainerSourceCollection.vala:162: Unable to relink %s to container b" \ -"acklink %s", _tmp32_, _tmp35_); -#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_free0 (_tmp35_); -#line 162 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_free0 (_tmp32_); -#line 1419 "ContainerSourceCollection.c" - } -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (container); -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _source_backlink_unref0 (backlink); -#line 1425 "ContainerSourceCollection.c" - } -#line 157 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_backlink_list); -#line 1429 "ContainerSourceCollection.c" - } -#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (backlinks); -#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (source); -#line 1435 "ContainerSourceCollection.c" - } -#line 152 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_source_it); -#line 1439 "ContainerSourceCollection.c" - } - { - GeeIterator* _container_it = NULL; - GeeHashMultiMap* _tmp36_; - GeeSet* _tmp37_; - GeeSet* _tmp38_; - GeeIterator* _tmp39_; - GeeIterator* _tmp40_; -#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp36_ = map; -#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp37_ = gee_multi_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_MULTI_MAP, GeeMultiMap)); -#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp38_ = _tmp37_; -#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp39_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp40_ = _tmp39_; -#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_tmp38_); -#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _container_it = _tmp40_; -#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - while (TRUE) { -#line 1464 "ContainerSourceCollection.c" - GeeIterator* _tmp41_; - ContainerSource* container = NULL; - GeeIterator* _tmp42_; - gpointer _tmp43_; - ContainerSource* _tmp44_; - GeeHashMultiMap* _tmp45_; - ContainerSource* _tmp46_; - GeeCollection* _tmp47_; - GeeCollection* _tmp48_; -#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp41_ = _container_it; -#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (!gee_iterator_next (_tmp41_)) { -#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - break; -#line 1480 "ContainerSourceCollection.c" - } -#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp42_ = _container_it; -#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp43_ = gee_iterator_get (_tmp42_); -#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container = (ContainerSource*) _tmp43_; -#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp44_ = container; -#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp45_ = map; -#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp46_ = container; -#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp47_ = gee_multi_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp46_); -#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp48_ = _tmp47_; -#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container_source_establish_link_many (_tmp44_, _tmp48_); -#line 169 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_tmp48_); -#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (container); -#line 1504 "ContainerSourceCollection.c" - } -#line 168 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_container_it); -#line 1508 "ContainerSourceCollection.c" - } -#line 171 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container_source_collection_thaw_attached_notifications (self); -#line 146 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (map); -#line 1514 "ContainerSourceCollection.c" -} - - -static void -container_source_collection_on_contained_source_destroyed (ContainerSourceCollection* self, - DataSource* source) -{ - GeeIterator* iter = NULL; - GeeHashSet* _tmp0_; - GeeIterator* _tmp1_; -#line 174 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self)); -#line 174 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 175 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp0_ = self->priv->holding_tank; -#line 175 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 175 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - iter = _tmp1_; -#line 176 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - while (TRUE) { -#line 1537 "ContainerSourceCollection.c" - GeeIterator* _tmp2_; - ContainerSource* container = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - gboolean _tmp5_ = FALSE; - ContainerSource* _tmp6_; -#line 176 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp2_ = iter; -#line 176 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 176 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - break; -#line 1550 "ContainerSourceCollection.c" - } -#line 177 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp3_ = iter; -#line 177 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 177 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container = (ContainerSource*) _tmp4_; -#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp6_ = container; -#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (!container_source_has_links (_tmp6_)) { -#line 1562 "ContainerSourceCollection.c" - ContainerSource* _tmp7_; -#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp7_ = container; -#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp5_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_TAG); -#line 1568 "ContainerSourceCollection.c" - } else { -#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp5_ = FALSE; -#line 1572 "ContainerSourceCollection.c" - } -#line 181 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (_tmp5_) { -#line 1576 "ContainerSourceCollection.c" - GeeIterator* _tmp8_; - ContainerSource* _tmp9_; -#line 182 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp8_ = iter; -#line 182 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - gee_iterator_remove (_tmp8_); -#line 183 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp9_ = container; -#line 183 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - data_source_destroy_orphan (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_SOURCE, DataSource), TRUE); -#line 1587 "ContainerSourceCollection.c" - } -#line 176 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (container); -#line 1591 "ContainerSourceCollection.c" - } -#line 174 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (iter); -#line 1595 "ContainerSourceCollection.c" -} - - -static void -container_source_collection_real_notify_item_destroyed (SourceCollection* base, - DataSource* source) -{ - ContainerSourceCollection * self; -#line 188 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection); -#line 188 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1608 "ContainerSourceCollection.c" - { - GeeIterator* _collection_it = NULL; - GeeHashSet* _tmp0_; - GeeIterator* _tmp1_; -#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp0_ = self->priv->attached_collections; -#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _collection_it = _tmp1_; -#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - while (TRUE) { -#line 1621 "ContainerSourceCollection.c" - GeeIterator* _tmp2_; - SourceCollection* collection = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - SourceCollection* _tmp5_; - SourceBacklink* _tmp6_; - SourceBacklink* _tmp7_; -#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp2_ = _collection_it; -#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - break; -#line 1635 "ContainerSourceCollection.c" - } -#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp3_ = _collection_it; -#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - collection = (SourceCollection*) _tmp4_; -#line 190 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp5_ = collection; -#line 190 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp6_ = container_source_get_backlink (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_CONTAINER_SOURCE, ContainerSource)); -#line 190 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp7_ = _tmp6_; -#line 190 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - source_collection_remove_backlink (_tmp5_, _tmp7_); -#line 190 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _source_backlink_unref0 (_tmp7_); -#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _data_collection_unref0 (collection); -#line 1655 "ContainerSourceCollection.c" - } -#line 189 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_collection_it); -#line 1659 "ContainerSourceCollection.c" - } -#line 193 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - SOURCE_COLLECTION_CLASS (container_source_collection_parent_class)->notify_item_destroyed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_SOURCE_COLLECTION, SourceCollection), source); -#line 1663 "ContainerSourceCollection.c" -} - - -void -container_source_collection_evaporate (ContainerSourceCollection* self, - ContainerSource* container) -{ - Marker* _tmp15_; - Marker* _tmp16_; -#line 200 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self)); -#line 200 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (container)); -#line 1677 "ContainerSourceCollection.c" - { - GeeIterator* _collection_it = NULL; - GeeHashSet* _tmp0_; - GeeIterator* _tmp1_; -#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp0_ = self->priv->attached_collections; -#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _collection_it = _tmp1_; -#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - while (TRUE) { -#line 1690 "ContainerSourceCollection.c" - GeeIterator* _tmp2_; - SourceCollection* collection = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - SourceCollection* _tmp5_; - SourceBacklink* _tmp6_; - SourceBacklink* _tmp7_; - gboolean _tmp8_; -#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp2_ = _collection_it; -#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - break; -#line 1705 "ContainerSourceCollection.c" - } -#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp3_ = _collection_it; -#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - collection = (SourceCollection*) _tmp4_; -#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp5_ = collection; -#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp6_ = container_source_get_backlink (container); -#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp7_ = _tmp6_; -#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp8_ = source_collection_has_backlink (_tmp5_, _tmp7_); -#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _source_backlink_unref0 (_tmp7_); -#line 202 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (_tmp8_) { -#line 1725 "ContainerSourceCollection.c" - Marker* _tmp9_; - Marker* _tmp10_; - GeeCollection* _tmp11_; - GeeCollection* _tmp12_; - gboolean added = FALSE; - GeeHashSet* _tmp13_; - gboolean _tmp14_; -#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp9_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (container, TYPE_DATA_OBJECT, DataObject)); -#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp10_ = _tmp9_; -#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp11_ = source_collection_unlink_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp10_, NULL, NULL); -#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp12_ = _tmp11_; -#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_tmp12_); -#line 203 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_tmp10_); -#line 204 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp13_ = self->priv->holding_tank; -#line 204 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - added = gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), container); -#line 205 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp14_ = added; -#line 205 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _vala_assert (_tmp14_, "added"); -#line 206 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _data_collection_unref0 (collection); -#line 206 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_collection_it); -#line 206 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - return; -#line 1759 "ContainerSourceCollection.c" - } -#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _data_collection_unref0 (collection); -#line 1763 "ContainerSourceCollection.c" - } -#line 201 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_collection_it); -#line 1767 "ContainerSourceCollection.c" - } -#line 210 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp15_ = data_collection_mark (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (container, TYPE_DATA_OBJECT, DataObject)); -#line 210 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp16_ = _tmp15_; -#line 210 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - source_collection_destroy_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp16_, TRUE, NULL, NULL, NULL); -#line 210 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_tmp16_); -#line 1777 "ContainerSourceCollection.c" -} - - -static void -_container_source_collection_on_contained_sources_unlinking_source_collection_items_unlinking (SourceCollection* _sender, - GeeCollection* unlinking, - gpointer self) -{ -#line 221 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container_source_collection_on_contained_sources_unlinking ((ContainerSourceCollection*) self, unlinking); -#line 1788 "ContainerSourceCollection.c" -} - - -static void -_container_source_collection_on_contained_sources_relinked_source_collection_items_relinked (SourceCollection* _sender, - GeeCollection* relinked, - gpointer self) -{ -#line 222 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container_source_collection_on_contained_sources_relinked ((ContainerSourceCollection*) self, relinked); -#line 1799 "ContainerSourceCollection.c" -} - - -static void -_container_source_collection_on_contained_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self) -{ -#line 223 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container_source_collection_on_contained_source_destroyed ((ContainerSourceCollection*) self, source); -#line 1810 "ContainerSourceCollection.c" -} - - -static void -_container_source_collection_on_contained_source_destroyed_source_collection_unlinked_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self) -{ -#line 224 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container_source_collection_on_contained_source_destroyed ((ContainerSourceCollection*) self, source); -#line 1821 "ContainerSourceCollection.c" -} - - -void -container_source_collection_attach_collection (ContainerSourceCollection* self, - SourceCollection* collection) -{ - GeeHashSet* _tmp0_; - GeeHashSet* _tmp5_; -#line 213 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self)); -#line 213 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (collection)); -#line 214 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp0_ = self->priv->attached_collections; -#line 214 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), collection)) { -#line 1839 "ContainerSourceCollection.c" - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp1_ = data_collection_to_string (G_TYPE_CHECK_INSTANCE_CAST (collection, TYPE_DATA_COLLECTION, DataCollection)); -#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp2_ = _tmp1_; -#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp3_ = data_collection_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp4_ = _tmp3_; -#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_warning ("ContainerSourceCollection.vala:215: attempted to multiple-attach '%s' " \ -"to '%s'", _tmp2_, _tmp4_); -#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_free0 (_tmp4_); -#line 215 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_free0 (_tmp2_); -#line 216 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - return; -#line 1860 "ContainerSourceCollection.c" - } -#line 219 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp5_ = self->priv->attached_collections; -#line 219 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), collection); -#line 221 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_signal_connect (collection, "items-unlinking", (GCallback) _container_source_collection_on_contained_sources_unlinking_source_collection_items_unlinking, self); -#line 222 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_signal_connect (collection, "items-relinked", (GCallback) _container_source_collection_on_contained_sources_relinked_source_collection_items_relinked, self); -#line 223 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_signal_connect (collection, "item-destroyed", (GCallback) _container_source_collection_on_contained_source_destroyed_source_collection_item_destroyed, self); -#line 224 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_signal_connect (collection, "unlinked-destroyed", (GCallback) _container_source_collection_on_contained_source_destroyed_source_collection_unlinked_destroyed, self); -#line 1874 "ContainerSourceCollection.c" -} - - -void -container_source_collection_detach_all_collections (ContainerSourceCollection* self) -{ - GeeHashSet* _tmp13_; -#line 227 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE_COLLECTION (self)); -#line 1884 "ContainerSourceCollection.c" - { - GeeIterator* _collection_it = NULL; - GeeHashSet* _tmp0_; - GeeIterator* _tmp1_; -#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp0_ = self->priv->attached_collections; -#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp1_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _collection_it = _tmp1_; -#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - while (TRUE) { -#line 1897 "ContainerSourceCollection.c" - GeeIterator* _tmp2_; - SourceCollection* collection = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - SourceCollection* _tmp5_; - guint _tmp6_; - SourceCollection* _tmp7_; - guint _tmp8_; - SourceCollection* _tmp9_; - guint _tmp10_; - SourceCollection* _tmp11_; - guint _tmp12_; -#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp2_ = _collection_it; -#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - break; -#line 1916 "ContainerSourceCollection.c" - } -#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp3_ = _collection_it; -#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - collection = (SourceCollection*) _tmp4_; -#line 229 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp5_ = collection; -#line 229 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_signal_parse_name ("items-unlinking", TYPE_SOURCE_COLLECTION, &_tmp6_, NULL, FALSE); -#line 229 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _container_source_collection_on_contained_sources_unlinking_source_collection_items_unlinking, self); -#line 230 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp7_ = collection; -#line 230 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_signal_parse_name ("items-relinked", TYPE_SOURCE_COLLECTION, &_tmp8_, NULL, FALSE); -#line 230 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_signal_handlers_disconnect_matched (_tmp7_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _container_source_collection_on_contained_sources_relinked_source_collection_items_relinked, self); -#line 231 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp9_ = collection; -#line 231 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp10_, NULL, FALSE); -#line 231 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _container_source_collection_on_contained_source_destroyed_source_collection_item_destroyed, self); -#line 232 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp11_ = collection; -#line 232 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_signal_parse_name ("unlinked-destroyed", TYPE_SOURCE_COLLECTION, &_tmp12_, NULL, FALSE); -#line 232 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_signal_handlers_disconnect_matched (_tmp11_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _container_source_collection_on_contained_source_destroyed_source_collection_unlinked_destroyed, self); -#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _data_collection_unref0 (collection); -#line 1950 "ContainerSourceCollection.c" - } -#line 228 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (_collection_it); -#line 1954 "ContainerSourceCollection.c" - } -#line 235 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp13_ = self->priv->attached_collections; -#line 235 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - gee_abstract_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1960 "ContainerSourceCollection.c" -} - - -static void -container_source_collection_real_container_contents_added (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinked) -{ -#line 20 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (container)); -#line 20 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (added)); -#line 1974 "ContainerSourceCollection.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_BOOLEAN) (gpointer data1, gpointer arg_1, gpointer arg_2, gboolean arg_3, gpointer data2); - register GMarshalFunc_VOID__OBJECT_OBJECT_BOOLEAN callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (n_param_values == 4); -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - data1 = closure->data; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - data2 = param_values->data[0].v_pointer; -#line 2000 "ContainerSourceCollection.c" - } else { -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - data1 = param_values->data[0].v_pointer; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - data2 = closure->data; -#line 2006 "ContainerSourceCollection.c" - } -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - callback = (GMarshalFunc_VOID__OBJECT_OBJECT_BOOLEAN) (marshal_data ? marshal_data : cc->callback); -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), g_value_get_boolean (param_values + 3), data2); -#line 2012 "ContainerSourceCollection.c" -} - - -static void -container_source_collection_real_container_contents_removed (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* removed, - gboolean unlinked) -{ -#line 24 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (container)); -#line 24 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (removed)); -#line 2026 "ContainerSourceCollection.c" -} - - -static void -container_source_collection_real_container_contents_altered (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* added, - gboolean relinked, - GeeCollection* removed, - gboolean unlinked) -{ -#line 28 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (container)); -#line 28 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 28 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 2044 "ContainerSourceCollection.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN) (gpointer data1, gpointer arg_1, gpointer arg_2, gboolean arg_3, gpointer arg_4, gboolean arg_5, gpointer data2); - register GMarshalFunc_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (n_param_values == 6); -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - data1 = closure->data; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - data2 = param_values->data[0].v_pointer; -#line 2070 "ContainerSourceCollection.c" - } else { -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - data1 = param_values->data[0].v_pointer; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - data2 = closure->data; -#line 2076 "ContainerSourceCollection.c" - } -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - callback = (GMarshalFunc_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN) (marshal_data ? marshal_data : cc->callback); -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), g_value_get_boolean (param_values + 3), g_value_get_object (param_values + 4), g_value_get_boolean (param_values + 5), data2); -#line 2082 "ContainerSourceCollection.c" -} - - -static void -container_source_collection_real_backlink_to_container_removed (ContainerSourceCollection* self, - ContainerSource* container, - GeeCollection* sources) -{ -#line 34 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (container)); -#line 34 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 2095 "ContainerSourceCollection.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2); - register GMarshalFunc_VOID__OBJECT_OBJECT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_return_if_fail (n_param_values == 3); -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - data1 = closure->data; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - data2 = param_values->data[0].v_pointer; -#line 2121 "ContainerSourceCollection.c" - } else { -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - data1 = param_values->data[0].v_pointer; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - data2 = closure->data; -#line 2127 "ContainerSourceCollection.c" - } -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback); -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2); -#line 2133 "ContainerSourceCollection.c" -} - - -static void -container_source_collection_class_init (ContainerSourceCollectionClass * klass) -{ -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container_source_collection_parent_class = g_type_class_peek_parent (klass); -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - ((DataCollectionClass *) klass)->finalize = container_source_collection_finalize; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - g_type_class_add_private (klass, sizeof (ContainerSourceCollectionPrivate)); -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - ((SourceCollectionClass *) klass)->notify_backlink_removed = (void (*) (SourceCollection *, SourceBacklink*, GeeCollection*)) container_source_collection_real_notify_backlink_removed; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - ((ContainerSourceCollectionClass *) klass)->notify_container_contents_added = (void (*) (ContainerSourceCollection *, ContainerSource*, GeeCollection*, gboolean)) container_source_collection_real_notify_container_contents_added; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - ((ContainerSourceCollectionClass *) klass)->notify_container_contents_removed = (void (*) (ContainerSourceCollection *, ContainerSource*, GeeCollection*, gboolean)) container_source_collection_real_notify_container_contents_removed; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - ((ContainerSourceCollectionClass *) klass)->notify_container_contents_altered = (void (*) (ContainerSourceCollection *, ContainerSource*, GeeCollection*, gboolean, GeeCollection*, gboolean)) container_source_collection_real_notify_container_contents_altered; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - ((ContainerSourceCollectionClass *) klass)->notify_backlink_to_container_removed = (void (*) (ContainerSourceCollection *, ContainerSource*, GeeCollection*)) container_source_collection_real_notify_backlink_to_container_removed; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - ((ContainerSourceCollectionClass *) klass)->get_containers_holding_source = (GeeCollection* (*) (ContainerSourceCollection *, DataSource*)) container_source_collection_real_get_containers_holding_source; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - ((ContainerSourceCollectionClass *) klass)->convert_backlink_to_container = (ContainerSource* (*) (ContainerSourceCollection *, SourceBacklink*)) container_source_collection_real_convert_backlink_to_container; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - ((SourceCollectionClass *) klass)->notify_item_destroyed = (void (*) (SourceCollection *, DataSource*)) container_source_collection_real_notify_item_destroyed; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - ((ContainerSourceCollectionClass *) klass)->container_contents_added = container_source_collection_real_container_contents_added; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - ((ContainerSourceCollectionClass *) klass)->container_contents_removed = container_source_collection_real_container_contents_removed; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - ((ContainerSourceCollectionClass *) klass)->container_contents_altered = container_source_collection_real_container_contents_altered; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - ((ContainerSourceCollectionClass *) klass)->backlink_to_container_removed = container_source_collection_real_backlink_to_container_removed; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ADDED_SIGNAL] = g_signal_new ("container-contents-added", TYPE_CONTAINER_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ContainerSourceCollectionClass, container_contents_added), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN, G_TYPE_NONE, 3, TYPE_CONTAINER_SOURCE, GEE_TYPE_COLLECTION, G_TYPE_BOOLEAN); -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_REMOVED_SIGNAL] = g_signal_new ("container-contents-removed", TYPE_CONTAINER_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ContainerSourceCollectionClass, container_contents_removed), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN, G_TYPE_NONE, 3, TYPE_CONTAINER_SOURCE, GEE_TYPE_COLLECTION, G_TYPE_BOOLEAN); -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_CONTAINER_CONTENTS_ALTERED_SIGNAL] = g_signal_new ("container-contents-altered", TYPE_CONTAINER_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ContainerSourceCollectionClass, container_contents_altered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOOLEAN_OBJECT_BOOLEAN, G_TYPE_NONE, 5, TYPE_CONTAINER_SOURCE, GEE_TYPE_COLLECTION, G_TYPE_BOOLEAN, GEE_TYPE_COLLECTION, G_TYPE_BOOLEAN); -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container_source_collection_signals[CONTAINER_SOURCE_COLLECTION_BACKLINK_TO_CONTAINER_REMOVED_SIGNAL] = g_signal_new ("backlink-to-container-removed", TYPE_CONTAINER_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ContainerSourceCollectionClass, backlink_to_container_removed), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, TYPE_CONTAINER_SOURCE, GEE_TYPE_COLLECTION); -#line 2178 "ContainerSourceCollection.c" -} - - -static void -container_source_collection_instance_init (ContainerSourceCollection * self) -{ - GeeHashSet* _tmp0_; - GeeHashSet* _tmp1_; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - self->priv = CONTAINER_SOURCE_COLLECTION_GET_PRIVATE (self); -#line 16 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp0_ = gee_hash_set_new (TYPE_SOURCE_COLLECTION, (GBoxedCopyFunc) data_collection_ref, (GDestroyNotify) data_collection_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 16 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - self->priv->attached_collections = _tmp0_; -#line 18 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _tmp1_ = gee_hash_set_new (TYPE_CONTAINER_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 18 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - self->priv->holding_tank = _tmp1_; -#line 2197 "ContainerSourceCollection.c" -} - - -static void -container_source_collection_finalize (DataCollection * obj) -{ - ContainerSourceCollection * self; -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection); -#line 46 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - container_source_collection_detach_all_collections (self); -#line 16 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (self->priv->attached_collections); -#line 17 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_free0 (self->priv->backlink_name); -#line 18 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - _g_object_unref0 (self->priv->holding_tank); -#line 15 "/home/jens/Source/shotwell/src/core/ContainerSourceCollection.vala" - DATA_COLLECTION_CLASS (container_source_collection_parent_class)->finalize (obj); -#line 2217 "ContainerSourceCollection.c" -} - - -GType -container_source_collection_get_type (void) -{ - static volatile gsize container_source_collection_type_id__volatile = 0; - if (g_once_init_enter (&container_source_collection_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ContainerSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) container_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ContainerSourceCollection), 0, (GInstanceInitFunc) container_source_collection_instance_init, NULL }; - GType container_source_collection_type_id; - container_source_collection_type_id = g_type_register_static (TYPE_DATABASE_SOURCE_COLLECTION, "ContainerSourceCollection", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&container_source_collection_type_id__volatile, container_source_collection_type_id); - } - return container_source_collection_type_id__volatile; -} - - - diff --git a/src/core/Core.c b/src/core/Core.c deleted file mode 100644 index df6c104..0000000 --- a/src/core/Core.c +++ /dev/null @@ -1,48 +0,0 @@ -/* Core.c generated by valac 0.40.4, the Vala compiler - * generated from Core.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/* This file is the master unit file for the Core unit. It should be edited to include - * whatever code is deemed necessary. - * - * The init() and terminate() methods are mandatory. - * - * If the unit needs to be configured prior to initialization, add the proper parameters to - * the preconfigure() method, implement it, and ensure in init() that it's been called. - */ - - -#include -#include - - - - -void core_preconfigure (void); -void core_init (GError** error); -void core_terminate (void); - - -void -core_preconfigure (void) -{ -} - - -void -core_init (GError** error) -{ -} - - -void -core_terminate (void) -{ -} - - - diff --git a/src/core/DataCollection.c b/src/core/DataCollection.c deleted file mode 100644 index f71e80c..0000000 --- a/src/core/DataCollection.c +++ /dev/null @@ -1,4077 +0,0 @@ -/* DataCollection.c generated by valac 0.40.4, the Vala compiler - * generated from DataCollection.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include - - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; -typedef struct _DataCollectionPrivate DataCollectionPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; - -#define TYPE_DATA_SET (data_set_get_type ()) -#define DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SET, DataSet)) -#define DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SET, DataSetClass)) -#define IS_DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SET)) -#define IS_DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SET)) -#define DATA_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SET, DataSetClass)) - -typedef struct _DataSet DataSet; -typedef struct _DataSetClass DataSetClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _data_set_unref0(var) ((var == NULL) ? NULL : (var = (data_set_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_SINGLETON_COLLECTION (singleton_collection_get_type ()) -#define SINGLETON_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLETON_COLLECTION, SingletonCollection)) -#define SINGLETON_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLETON_COLLECTION, SingletonCollectionClass)) -#define IS_SINGLETON_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLETON_COLLECTION)) -#define IS_SINGLETON_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLETON_COLLECTION)) -#define SINGLETON_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLETON_COLLECTION, SingletonCollectionClass)) - -typedef struct _SingletonCollection SingletonCollection; -typedef struct _SingletonCollectionClass SingletonCollectionClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define DATA_COLLECTION_TYPE_MARKER_IMPL (data_collection_marker_impl_get_type ()) -#define DATA_COLLECTION_MARKER_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl)) -#define DATA_COLLECTION_MARKER_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImplClass)) -#define DATA_COLLECTION_IS_MARKER_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_COLLECTION_TYPE_MARKER_IMPL)) -#define DATA_COLLECTION_IS_MARKER_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_COLLECTION_TYPE_MARKER_IMPL)) -#define DATA_COLLECTION_MARKER_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImplClass)) - -typedef struct _DataCollectionMarkerImpl DataCollectionMarkerImpl; -typedef struct _DataCollectionMarkerImplClass DataCollectionMarkerImplClass; -typedef struct _DataCollectionMarkerImplPrivate DataCollectionMarkerImplPrivate; -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) -#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL))) -enum { - DATA_COLLECTION_MARKER_IMPL_0_PROPERTY, - DATA_COLLECTION_MARKER_IMPL_NUM_PROPERTIES -}; -static GParamSpec* data_collection_marker_impl_properties[DATA_COLLECTION_MARKER_IMPL_NUM_PROPERTIES]; -typedef struct _ParamSpecDataCollection ParamSpecDataCollection; -enum { - DATA_COLLECTION_ITEMS_ADDED_SIGNAL, - DATA_COLLECTION_ITEMS_REMOVED_SIGNAL, - DATA_COLLECTION_CONTENTS_ALTERED_SIGNAL, - DATA_COLLECTION_ITEMS_ALTERED_SIGNAL, - DATA_COLLECTION_ORDERING_CHANGED_SIGNAL, - DATA_COLLECTION_PROPERTY_SET_SIGNAL, - DATA_COLLECTION_PROPERTY_CLEARED_SIGNAL, - DATA_COLLECTION_FROZEN_SIGNAL, - DATA_COLLECTION_THAWED_SIGNAL, - DATA_COLLECTION_NUM_SIGNALS -}; -static guint data_collection_signals[DATA_COLLECTION_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -struct _DataCollection { - GTypeInstance parent_instance; - volatile int ref_count; - DataCollectionPrivate * priv; -}; - -struct _DataCollectionClass { - GTypeClass parent_class; - void (*finalize) (DataCollection *self); - gchar* (*to_string) (DataCollection* self); - void (*notify_items_added) (DataCollection* self, GeeIterable* added); - void (*notify_items_removed) (DataCollection* self, GeeIterable* removed); - void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*notify_items_altered) (DataCollection* self, GeeMap* items); - void (*notify_ordering_changed) (DataCollection* self); - void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*notify_property_cleared) (DataCollection* self, const gchar* name); - gboolean (*valid_type) (DataCollection* self, DataObject* object); - void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target); - void (*reset_comparator) (DataCollection* self); - GeeCollection* (*get_all) (DataCollection* self); - gint (*get_count) (DataCollection* self); - DataObject* (*get_at) (DataCollection* self, gint index); - gint (*index_of) (DataCollection* self, DataObject* object); - gboolean (*contains) (DataCollection* self, DataObject* object); - gboolean (*add) (DataCollection* self, DataObject* object); - GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target); - void (*remove_marked) (DataCollection* self, Marker* m); - void (*clear) (DataCollection* self); - void (*close) (DataCollection* self); - void (*notify_frozen) (DataCollection* self); - void (*notify_thawed) (DataCollection* self); - void (*items_added) (DataCollection* self, GeeIterable* added); - void (*items_removed) (DataCollection* self, GeeIterable* removed); - void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*items_altered) (DataCollection* self, GeeMap* items); - void (*ordering_changed) (DataCollection* self); - void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*property_cleared) (DataCollection* self, const gchar* name); - void (*frozen) (DataCollection* self); - void (*thawed) (DataCollection* self); -}; - -struct _DataCollectionPrivate { - gchar* name; - DataSet* dataset; - GeeHashMap* properties; - gint64 object_ordinal_generator; - gint notifies_frozen; - GeeHashMap* frozen_items_altered; - gboolean fire_ordering_changed; -}; - -typedef gboolean (*MarkedAction) (DataObject* object, GObject* user, void* user_data); -struct _DataCollectionMarkerImpl { - GObject parent_instance; - DataCollectionMarkerImplPrivate * priv; - DataCollection* owner; - GeeHashSet* marked; - gint freeze_count; -}; - -struct _DataCollectionMarkerImplClass { - GObjectClass parent_class; -}; - -typedef gboolean (*ValueEqualFunc) (GValue* a, GValue* b, void* user_data); -struct _ParamSpecDataCollection { - GParamSpec parent_instance; -}; - - -static gpointer data_collection_parent_class = NULL; -static gpointer data_collection_marker_impl_parent_class = NULL; -static MarkerIface * data_collection_marker_impl_marker_parent_iface = NULL; - -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -GType marker_get_type (void) G_GNUC_CONST; -gpointer data_set_ref (gpointer instance); -void data_set_unref (gpointer instance); -GParamSpec* param_spec_data_set (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_set (GValue* value, - gpointer v_object); -void value_take_data_set (GValue* value, - gpointer v_object); -gpointer value_get_data_set (const GValue* value); -GType data_set_get_type (void) G_GNUC_CONST; -#define DATA_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DATA_COLLECTION, DataCollectionPrivate)) -DataSet* data_set_new (void); -DataSet* data_set_construct (GType object_type); -static GValue* _g_value_dup (GValue* self); -static void _vala_GValue_free (GValue* self); -#define DATA_COLLECTION_INVALID_OBJECT_ORDINAL ((gint64) -1) -DataCollection* data_collection_new (const gchar* name); -DataCollection* data_collection_construct (GType object_type, - const gchar* name); -gchar* data_collection_to_string (DataCollection* self); -static gchar* data_collection_real_to_string (DataCollection* self); -gint data_collection_get_count (DataCollection* self); -void data_collection_notify_items_added (DataCollection* self, - GeeIterable* added); -static void data_collection_real_notify_items_added (DataCollection* self, - GeeIterable* added); -void data_collection_notify_items_removed (DataCollection* self, - GeeIterable* removed); -static void data_collection_real_notify_items_removed (DataCollection* self, - GeeIterable* removed); -void data_collection_notify_contents_altered (DataCollection* self, - GeeIterable* added, - GeeIterable* removed); -static void data_collection_real_notify_contents_altered (DataCollection* self, - GeeIterable* added, - GeeIterable* removed); -void data_collection_notify_items_altered (DataCollection* self, - GeeMap* items); -static void data_collection_real_notify_items_altered (DataCollection* self, - GeeMap* items); -void data_collection_notify_ordering_changed (DataCollection* self); -static void data_collection_real_notify_ordering_changed (DataCollection* self); -void data_collection_notify_property_set (DataCollection* self, - const gchar* name, - GValue* old, - GValue* val); -static void data_collection_real_notify_property_set (DataCollection* self, - const gchar* name, - GValue* old, - GValue* val); -void data_collection_notify_property_cleared (DataCollection* self, - const gchar* name); -static void data_collection_real_notify_property_cleared (DataCollection* self, - const gchar* name); -GeeCollection* data_collection_get_singleton (DataObject* object); -SingletonCollection* singleton_collection_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - gconstpointer object); -SingletonCollection* singleton_collection_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - gconstpointer object); -GType singleton_collection_get_type (void) G_GNUC_CONST; -GeeMap* data_collection_get_alteration_singleton (DataObject* object, - Alteration* alteration); -gboolean data_collection_valid_type (DataCollection* self, - DataObject* object); -static gboolean data_collection_real_valid_type (DataCollection* self, - DataObject* object); -Comparator data_collection_get_comparator (DataCollection* self, - void** result_target); -Comparator data_set_get_comparator (DataSet* self, - void** result_target); -ComparatorPredicate data_collection_get_comparator_predicate (DataCollection* self, - void** result_target); -ComparatorPredicate data_set_get_comparator_predicate (DataSet* self, - void** result_target); -void data_collection_set_comparator (DataCollection* self, - Comparator comparator, - void* comparator_target, - ComparatorPredicate predicate, - void* predicate_target); -static void data_collection_real_set_comparator (DataCollection* self, - Comparator comparator, - void* comparator_target, - ComparatorPredicate predicate, - void* predicate_target); -void data_set_set_comparator (DataSet* self, - Comparator user_comparator, - void* user_comparator_target, - ComparatorPredicate comparator_predicate, - void* comparator_predicate_target); -void data_collection_reset_comparator (DataCollection* self); -static void data_collection_real_reset_comparator (DataCollection* self); -void data_set_reset_comparator (DataSet* self); -GeeCollection* data_collection_get_all (DataCollection* self); -static GeeCollection* data_collection_real_get_all (DataCollection* self); -GeeList* data_set_get_all (DataSet* self); -DataSet* data_collection_get_dataset_copy (DataCollection* self); -DataSet* data_set_copy (DataSet* self); -static gint data_collection_real_get_count (DataCollection* self); -gint data_set_get_count (DataSet* self); -DataObject* data_collection_get_at (DataCollection* self, - gint index); -static DataObject* data_collection_real_get_at (DataCollection* self, - gint index); -DataObject* data_set_get_at (DataSet* self, - gint index); -gint data_collection_index_of (DataCollection* self, - DataObject* object); -static gint data_collection_real_index_of (DataCollection* self, - DataObject* object); -gint data_set_index_of (DataSet* self, - DataObject* object); -gboolean data_collection_contains (DataCollection* self, - DataObject* object); -static gboolean data_collection_real_contains (DataCollection* self, - DataObject* object); -static gboolean data_collection_internal_contains (DataCollection* self, - DataObject* object); -gboolean data_set_contains (DataSet* self, - DataObject* object); -DataCollection* data_object_get_membership (DataObject* self); -static void data_collection_internal_add (DataCollection* self, - DataObject* object); -void data_object_internal_set_membership (DataObject* self, - DataCollection* collection, - gint64 ordinal); -gboolean data_set_add (DataSet* self, - DataObject* object); -static void data_collection_internal_add_many (DataCollection* self, - GeeList* objects, - ProgressMonitor monitor, - void* monitor_target); -gboolean data_set_add_many (DataSet* self, - GeeCollection* objects); -static void data_collection_internal_remove (DataCollection* self, - DataObject* object); -gboolean data_set_remove (DataSet* self, - DataObject* object); -void data_object_internal_clear_membership (DataObject* self); -gboolean data_collection_add (DataCollection* self, - DataObject* object); -static gboolean data_collection_real_add (DataCollection* self, - DataObject* object); -gchar* data_object_to_string (DataObject* self); -void data_object_notify_membership_changed (DataObject* self, - DataCollection* collection); -GeeCollection* data_collection_add_many (DataCollection* self, - GeeCollection* objects, - ProgressMonitor monitor, - void* monitor_target); -static GeeCollection* data_collection_real_add_many (DataCollection* self, - GeeCollection* objects, - ProgressMonitor monitor, - void* monitor_target); -Marker* data_collection_start_marking (DataCollection* self); -static DataCollectionMarkerImpl* data_collection_marker_impl_new (DataCollection* owner); -static DataCollectionMarkerImpl* data_collection_marker_impl_construct (GType object_type, - DataCollection* owner); -static GType data_collection_marker_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -Marker* data_collection_mark (DataCollection* self, - DataObject* object); -void marker_mark (Marker* self, - DataObject* object); -Marker* data_collection_mark_many (DataCollection* self, - GeeCollection* objects); -void marker_mark_many (Marker* self, - GeeCollection* list); -void data_collection_act_on_marked (DataCollection* self, - Marker* m, - MarkedAction action, - void* action_target, - ProgressMonitor monitor, - void* monitor_target, - GObject* user); -static gboolean data_collection_marker_impl_is_valid (DataCollectionMarkerImpl* self, - DataCollection* collection); -static void data_collection_marker_impl_freeze (DataCollectionMarkerImpl* self); -static void data_collection_marker_impl_finished (DataCollectionMarkerImpl* self); -void data_collection_remove_marked (DataCollection* self, - Marker* m); -static void data_collection_real_remove_marked (DataCollection* self, - Marker* m); -void data_collection_clear (DataCollection* self); -static void data_collection_real_clear (DataCollection* self); -void data_collection_close (DataCollection* self); -static void data_collection_real_close (DataCollection* self); -void data_collection_internal_notify_altered (DataCollection* self, - DataObject* object, - Alteration* alteration); -gboolean data_set_resort_object (DataSet* self, - DataObject* object, - Alteration* alteration); -gboolean data_collection_are_notifications_frozen (DataCollection* self); -Alteration* alteration_compress (Alteration* self, - Alteration* other); -GValue* data_collection_get_property (DataCollection* self, - const gchar* name); -void data_collection_set_property (DataCollection* self, - const gchar* name, - GValue* val, - ValueEqualFunc value_equals, - void* value_equals_target); -gboolean bool_value_equals (GValue* a, - GValue* b); -static gboolean _bool_value_equals_value_equal_func (GValue* a, - GValue* b, - gpointer self); -gboolean int_value_equals (GValue* a, - GValue* b); -static gboolean _int_value_equals_value_equal_func (GValue* a, - GValue* b, - gpointer self); -void data_object_notify_collection_property_set (DataObject* self, - const gchar* name, - GValue* old, - GValue* val); -void data_collection_clear_property (DataCollection* self, - const gchar* name); -void data_object_notify_collection_property_cleared (DataObject* self, - const gchar* name); -void data_collection_freeze_notifications (DataCollection* self); -void data_collection_notify_frozen (DataCollection* self); -void data_collection_thaw_notifications (DataCollection* self); -void data_collection_notify_thawed (DataCollection* self); -static void data_collection_real_notify_frozen (DataCollection* self); -static void data_collection_real_notify_thawed (DataCollection* self); -static void data_collection_real_items_added (DataCollection* self, - GeeIterable* added); -static void data_collection_real_items_removed (DataCollection* self, - GeeIterable* removed); -static void data_collection_real_contents_altered (DataCollection* self, - GeeIterable* added, - GeeIterable* removed); -static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void data_collection_real_items_altered (DataCollection* self, - GeeMap* items); -static void data_collection_real_ordering_changed (DataCollection* self); -static void data_collection_real_property_set (DataCollection* self, - const gchar* name, - GValue* old, - GValue* val); -static void g_cclosure_user_marshal_VOID__STRING_POINTER_BOXED (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void data_collection_real_property_cleared (DataCollection* self, - const gchar* name); -static void data_collection_real_frozen (DataCollection* self); -static void data_collection_real_thawed (DataCollection* self); -static void data_collection_marker_impl_on_items_removed (DataCollectionMarkerImpl* self, - GeeIterable* removed); -static void _data_collection_marker_impl_on_items_removed_data_collection_items_removed (DataCollection* _sender, - GeeIterable* removed, - gpointer self); -static void data_collection_marker_impl_real_mark (Marker* base, - DataObject* object); -static void data_collection_marker_impl_real_unmark (Marker* base, - DataObject* object); -static gboolean data_collection_marker_impl_real_toggle (Marker* base, - DataObject* object); -static void data_collection_marker_impl_real_mark_many (Marker* base, - GeeCollection* list); -static void data_collection_marker_impl_real_unmark_many (Marker* base, - GeeCollection* list); -static void data_collection_marker_impl_real_mark_all (Marker* base); -static gint data_collection_marker_impl_real_get_count (Marker* base); -static GeeCollection* data_collection_marker_impl_real_get_all (Marker* base); -static void data_collection_marker_impl_finalize (GObject * obj); -static void data_collection_finalize (DataCollection * obj); - - -static GValue* -_g_value_dup (GValue* self) -{ -#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return g_boxed_copy (G_TYPE_VALUE, self); -#line 528 "DataCollection.c" -} - - -static void -_vala_GValue_free (GValue* self) -{ -#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_value_unset (self); -#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_free (self); -#line 539 "DataCollection.c" -} - - -DataCollection* -data_collection_construct (GType object_type, - const gchar* name) -{ - DataCollection* self = NULL; - gchar* _tmp0_; -#line 157 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 157 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self = (DataCollection*) g_type_create_instance (object_type); -#line 158 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = g_strdup (name); -#line 158 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_free0 (self->priv->name); -#line 158 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->priv->name = _tmp0_; -#line 157 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return self; -#line 561 "DataCollection.c" -} - - -DataCollection* -data_collection_new (const gchar* name) -{ -#line 157 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return data_collection_construct (TYPE_DATA_COLLECTION, name); -#line 570 "DataCollection.c" -} - - -static gchar* -data_collection_real_to_string (DataCollection* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 168 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->name; -#line 168 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = g_strdup_printf ("%s (%d)", _tmp0_, data_collection_get_count (self)); -#line 168 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = _tmp1_; -#line 168 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 588 "DataCollection.c" -} - - -gchar* -data_collection_to_string (DataCollection* self) -{ -#line 167 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL); -#line 167 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return DATA_COLLECTION_GET_CLASS (self)->to_string (self); -#line 599 "DataCollection.c" -} - - -static void -data_collection_real_notify_items_added (DataCollection* self, - GeeIterable* added) -{ -#line 172 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (GEE_IS_ITERABLE (added)); -#line 173 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_signal_emit (self, data_collection_signals[DATA_COLLECTION_ITEMS_ADDED_SIGNAL], 0, added); -#line 611 "DataCollection.c" -} - - -void -data_collection_notify_items_added (DataCollection* self, - GeeIterable* added) -{ -#line 172 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 172 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - DATA_COLLECTION_GET_CLASS (self)->notify_items_added (self, added); -#line 623 "DataCollection.c" -} - - -static void -data_collection_real_notify_items_removed (DataCollection* self, - GeeIterable* removed) -{ -#line 176 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (GEE_IS_ITERABLE (removed)); -#line 177 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_signal_emit (self, data_collection_signals[DATA_COLLECTION_ITEMS_REMOVED_SIGNAL], 0, removed); -#line 635 "DataCollection.c" -} - - -void -data_collection_notify_items_removed (DataCollection* self, - GeeIterable* removed) -{ -#line 176 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 176 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - DATA_COLLECTION_GET_CLASS (self)->notify_items_removed (self, removed); -#line 647 "DataCollection.c" -} - - -static void -data_collection_real_notify_contents_altered (DataCollection* self, - GeeIterable* added, - GeeIterable* removed) -{ -#line 180 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added)); -#line 180 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed)); -#line 182 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_signal_emit (self, data_collection_signals[DATA_COLLECTION_CONTENTS_ALTERED_SIGNAL], 0, added, removed); -#line 662 "DataCollection.c" -} - - -void -data_collection_notify_contents_altered (DataCollection* self, - GeeIterable* added, - GeeIterable* removed) -{ -#line 180 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 180 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - DATA_COLLECTION_GET_CLASS (self)->notify_contents_altered (self, added, removed); -#line 675 "DataCollection.c" -} - - -static void -data_collection_real_notify_items_altered (DataCollection* self, - GeeMap* items) -{ -#line 185 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (GEE_IS_MAP (items)); -#line 186 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_signal_emit (self, data_collection_signals[DATA_COLLECTION_ITEMS_ALTERED_SIGNAL], 0, items); -#line 687 "DataCollection.c" -} - - -void -data_collection_notify_items_altered (DataCollection* self, - GeeMap* items) -{ -#line 185 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 185 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - DATA_COLLECTION_GET_CLASS (self)->notify_items_altered (self, items); -#line 699 "DataCollection.c" -} - - -static void -data_collection_real_notify_ordering_changed (DataCollection* self) -{ -#line 190 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_signal_emit (self, data_collection_signals[DATA_COLLECTION_ORDERING_CHANGED_SIGNAL], 0); -#line 708 "DataCollection.c" -} - - -void -data_collection_notify_ordering_changed (DataCollection* self) -{ -#line 189 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 189 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - DATA_COLLECTION_GET_CLASS (self)->notify_ordering_changed (self); -#line 719 "DataCollection.c" -} - - -static void -data_collection_real_notify_property_set (DataCollection* self, - const gchar* name, - GValue* old, - GValue* val) -{ - GValue _tmp0_; -#line 193 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (name != NULL); -#line 193 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (val != NULL); -#line 194 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = *val; -#line 194 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_signal_emit (self, data_collection_signals[DATA_COLLECTION_PROPERTY_SET_SIGNAL], 0, name, old, &_tmp0_); -#line 738 "DataCollection.c" -} - - -void -data_collection_notify_property_set (DataCollection* self, - const gchar* name, - GValue* old, - GValue* val) -{ -#line 193 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 193 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - DATA_COLLECTION_GET_CLASS (self)->notify_property_set (self, name, old, val); -#line 752 "DataCollection.c" -} - - -static void -data_collection_real_notify_property_cleared (DataCollection* self, - const gchar* name) -{ -#line 197 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (name != NULL); -#line 198 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_signal_emit (self, data_collection_signals[DATA_COLLECTION_PROPERTY_CLEARED_SIGNAL], 0, name); -#line 764 "DataCollection.c" -} - - -void -data_collection_notify_property_cleared (DataCollection* self, - const gchar* name) -{ -#line 197 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 197 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - DATA_COLLECTION_GET_CLASS (self)->notify_property_cleared (self, name); -#line 776 "DataCollection.c" -} - - -GeeCollection* -data_collection_get_singleton (DataObject* object) -{ - GeeCollection* result = NULL; - SingletonCollection* _tmp0_; -#line 206 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), NULL); -#line 207 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = singleton_collection_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, object); -#line 207 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 207 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 793 "DataCollection.c" -} - - -GeeMap* -data_collection_get_alteration_singleton (DataObject* object, - Alteration* alteration) -{ - GeeMap* result = NULL; - GeeMap* map = NULL; - GeeHashMap* _tmp0_; -#line 210 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), NULL); -#line 210 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_ALTERATION (alteration), NULL); -#line 212 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = gee_hash_map_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_ALTERATION, (GBoxedCopyFunc) alteration_ref, (GDestroyNotify) alteration_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 212 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - map = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MAP, GeeMap); -#line 213 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - gee_map_set (map, object, alteration); -#line 215 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = map; -#line 215 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 818 "DataCollection.c" -} - - -static gboolean -data_collection_real_valid_type (DataCollection* self, - DataObject* object) -{ - gboolean result = FALSE; -#line 218 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 219 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = TRUE; -#line 219 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 833 "DataCollection.c" -} - - -gboolean -data_collection_valid_type (DataCollection* self, - DataObject* object) -{ -#line 218 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), FALSE); -#line 218 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return DATA_COLLECTION_GET_CLASS (self)->valid_type (self, object); -#line 845 "DataCollection.c" -} - - -Comparator -data_collection_get_comparator (DataCollection* self, - void** result_target) -{ - Comparator result = NULL; - DataSet* _tmp0_; - void* _tmp1_; - Comparator _tmp2_; - Comparator _tmp3_; - void* _tmp3__target; -#line 222 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL); -#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->dataset; -#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = data_set_get_comparator (_tmp0_, &_tmp1_); -#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = _tmp2_; -#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3__target = _tmp1_; -#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - *result_target = _tmp3__target; -#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = _tmp3_; -#line 223 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 875 "DataCollection.c" -} - - -ComparatorPredicate -data_collection_get_comparator_predicate (DataCollection* self, - void** result_target) -{ - ComparatorPredicate result = NULL; - DataSet* _tmp0_; - void* _tmp1_; - ComparatorPredicate _tmp2_; - ComparatorPredicate _tmp3_; - void* _tmp3__target; -#line 226 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL); -#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->dataset; -#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = data_set_get_comparator_predicate (_tmp0_, &_tmp1_); -#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = _tmp2_; -#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3__target = _tmp1_; -#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - *result_target = _tmp3__target; -#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = _tmp3_; -#line 227 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 905 "DataCollection.c" -} - - -static void -data_collection_real_set_comparator (DataCollection* self, - Comparator comparator, - void* comparator_target, - ComparatorPredicate predicate, - void* predicate_target) -{ - DataSet* _tmp0_; -#line 231 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->dataset; -#line 231 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_set_set_comparator (_tmp0_, comparator, comparator_target, predicate, predicate_target); -#line 232 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_ordering_changed (self); -#line 923 "DataCollection.c" -} - - -void -data_collection_set_comparator (DataCollection* self, - Comparator comparator, - void* comparator_target, - ComparatorPredicate predicate, - void* predicate_target) -{ -#line 230 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 230 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - DATA_COLLECTION_GET_CLASS (self)->set_comparator (self, comparator, comparator_target, predicate, predicate_target); -#line 938 "DataCollection.c" -} - - -static void -data_collection_real_reset_comparator (DataCollection* self) -{ - DataSet* _tmp0_; -#line 237 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->dataset; -#line 237 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_set_reset_comparator (_tmp0_); -#line 238 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_ordering_changed (self); -#line 952 "DataCollection.c" -} - - -void -data_collection_reset_comparator (DataCollection* self) -{ -#line 236 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 236 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - DATA_COLLECTION_GET_CLASS (self)->reset_comparator (self); -#line 963 "DataCollection.c" -} - - -static GeeCollection* -data_collection_real_get_all (DataCollection* self) -{ - GeeCollection* result = NULL; - DataSet* _tmp0_; - GeeList* _tmp1_; -#line 242 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->dataset; -#line 242 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = data_set_get_all (_tmp0_); -#line 242 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection); -#line 242 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 981 "DataCollection.c" -} - - -GeeCollection* -data_collection_get_all (DataCollection* self) -{ -#line 241 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL); -#line 241 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return DATA_COLLECTION_GET_CLASS (self)->get_all (self); -#line 992 "DataCollection.c" -} - - -DataSet* -data_collection_get_dataset_copy (DataCollection* self) -{ - DataSet* result = NULL; - DataSet* _tmp0_; - DataSet* _tmp1_; -#line 245 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL); -#line 246 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->dataset; -#line 246 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = data_set_copy (_tmp0_); -#line 246 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = _tmp1_; -#line 246 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 1012 "DataCollection.c" -} - - -static gint -data_collection_real_get_count (DataCollection* self) -{ - gint result = 0; - DataSet* _tmp0_; -#line 250 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->dataset; -#line 250 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = data_set_get_count (_tmp0_); -#line 250 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 1027 "DataCollection.c" -} - - -gint -data_collection_get_count (DataCollection* self) -{ -#line 249 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), 0); -#line 249 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return DATA_COLLECTION_GET_CLASS (self)->get_count (self); -#line 1038 "DataCollection.c" -} - - -static DataObject* -data_collection_real_get_at (DataCollection* self, - gint index) -{ - DataObject* result = NULL; - DataSet* _tmp0_; - DataObject* _tmp1_; -#line 254 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->dataset; -#line 254 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = data_set_get_at (_tmp0_, index); -#line 254 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = _tmp1_; -#line 254 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 1057 "DataCollection.c" -} - - -DataObject* -data_collection_get_at (DataCollection* self, - gint index) -{ -#line 253 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL); -#line 253 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return DATA_COLLECTION_GET_CLASS (self)->get_at (self, index); -#line 1069 "DataCollection.c" -} - - -static gint -data_collection_real_index_of (DataCollection* self, - DataObject* object) -{ - gint result = 0; - DataSet* _tmp0_; -#line 257 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), 0); -#line 258 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->dataset; -#line 258 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = data_set_index_of (_tmp0_, object); -#line 258 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 1087 "DataCollection.c" -} - - -gint -data_collection_index_of (DataCollection* self, - DataObject* object) -{ -#line 257 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), 0); -#line 257 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return DATA_COLLECTION_GET_CLASS (self)->index_of (self, object); -#line 1099 "DataCollection.c" -} - - -static gboolean -data_collection_real_contains (DataCollection* self, - DataObject* object) -{ - gboolean result = FALSE; -#line 261 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 262 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = data_collection_internal_contains (self, object); -#line 262 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 1114 "DataCollection.c" -} - - -gboolean -data_collection_contains (DataCollection* self, - DataObject* object) -{ -#line 261 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), FALSE); -#line 261 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return DATA_COLLECTION_GET_CLASS (self)->contains (self, object); -#line 1126 "DataCollection.c" -} - - -static gboolean -data_collection_internal_contains (DataCollection* self, - DataObject* object) -{ - gboolean result = FALSE; - DataSet* _tmp0_; - DataCollection* _tmp1_; - DataCollection* _tmp2_; -#line 267 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), FALSE); -#line 267 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 268 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->dataset; -#line 268 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!data_set_contains (_tmp0_, object)) { -#line 269 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = FALSE; -#line 269 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 1150 "DataCollection.c" - } -#line 271 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = data_object_get_membership (object); -#line 271 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = _tmp1_; -#line 271 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _vala_assert (_tmp2_ == self, "object.get_membership() == this"); -#line 271 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _data_collection_unref0 (_tmp2_); -#line 273 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = TRUE; -#line 273 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 1164 "DataCollection.c" -} - - -static void -data_collection_internal_add (DataCollection* self, - DataObject* object) -{ - gint64 _tmp0_; - gboolean added = FALSE; - DataSet* _tmp1_; -#line 276 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 276 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_OBJECT (object)); -#line 277 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _vala_assert (data_collection_valid_type (self, object), "valid_type(object)"); -#line 279 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->object_ordinal_generator; -#line 279 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->priv->object_ordinal_generator = _tmp0_ + 1; -#line 279 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_object_internal_set_membership (object, self, _tmp0_); -#line 281 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = self->priv->dataset; -#line 281 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - added = data_set_add (_tmp1_, object); -#line 282 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _vala_assert (added, "added"); -#line 1193 "DataCollection.c" -} - - -static void -data_collection_internal_add_many (DataCollection* self, - GeeList* objects, - ProgressMonitor monitor, - void* monitor_target) -{ - gint count = 0; - gint _tmp0_; - gint _tmp1_; - gboolean added = FALSE; - DataSet* _tmp13_; -#line 285 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 285 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (GEE_IS_LIST (objects)); -#line 286 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (objects, GEE_TYPE_COLLECTION, GeeCollection)); -#line 286 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = _tmp0_; -#line 286 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - count = _tmp1_; -#line 1218 "DataCollection.c" - { - gint ctr = 0; -#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ctr = 0; -#line 1223 "DataCollection.c" - { - gboolean _tmp2_ = FALSE; -#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = TRUE; -#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - while (TRUE) { -#line 1230 "DataCollection.c" - gint _tmp4_; - gint _tmp5_; - DataObject* object = NULL; - gint _tmp6_; - gpointer _tmp7_; - DataObject* _tmp8_; - DataObject* _tmp9_; - gint64 _tmp10_; -#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!_tmp2_) { -#line 1241 "DataCollection.c" - gint _tmp3_; -#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = ctr; -#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ctr = _tmp3_ + 1; -#line 1247 "DataCollection.c" - } -#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = FALSE; -#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp4_ = ctr; -#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp5_ = count; -#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!(_tmp4_ < _tmp5_)) { -#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - break; -#line 1259 "DataCollection.c" - } -#line 288 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp6_ = ctr; -#line 288 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp7_ = gee_list_get (objects, _tmp6_); -#line 288 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - object = (DataObject*) _tmp7_; -#line 289 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp8_ = object; -#line 289 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _vala_assert (data_collection_valid_type (self, _tmp8_), "valid_type(object)"); -#line 291 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp9_ = object; -#line 291 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp10_ = self->priv->object_ordinal_generator; -#line 291 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->priv->object_ordinal_generator = _tmp10_ + 1; -#line 291 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_object_internal_set_membership (_tmp9_, self, _tmp10_); -#line 293 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (monitor != NULL) { -#line 1281 "DataCollection.c" - gint _tmp11_; - gint _tmp12_; -#line 294 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp11_ = ctr; -#line 294 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp12_ = count; -#line 294 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - monitor ((guint64) _tmp11_, (guint64) _tmp12_, TRUE, monitor_target); -#line 1290 "DataCollection.c" - } -#line 287 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (object); -#line 1294 "DataCollection.c" - } - } - } -#line 297 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp13_ = self->priv->dataset; -#line 297 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - added = data_set_add_many (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (objects, GEE_TYPE_COLLECTION, GeeCollection)); -#line 298 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _vala_assert (added, "added"); -#line 1304 "DataCollection.c" -} - - -static void -data_collection_internal_remove (DataCollection* self, - DataObject* object) -{ - gboolean removed = FALSE; - DataSet* _tmp0_; -#line 301 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 301 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_OBJECT (object)); -#line 302 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->dataset; -#line 302 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - removed = data_set_remove (_tmp0_, object); -#line 303 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _vala_assert (removed, "removed"); -#line 305 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_object_internal_clear_membership (object); -#line 1326 "DataCollection.c" -} - - -static gboolean -data_collection_real_add (DataCollection* self, - DataObject* object) -{ - gboolean result = FALSE; - GeeCollection* added = NULL; - GeeCollection* _tmp4_; - GeeCollection* _tmp5_; - GeeCollection* _tmp6_; -#line 309 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 310 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (data_collection_internal_contains (self, object)) { -#line 1343 "DataCollection.c" - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = data_collection_to_string (self); -#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = _tmp0_; -#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = data_object_to_string (object); -#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = _tmp2_; -#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_debug ("DataCollection.vala:311: %s cannot add %s: already present", _tmp1_, _tmp3_); -#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_free0 (_tmp3_); -#line 311 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_free0 (_tmp1_); -#line 313 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = FALSE; -#line 313 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 1366 "DataCollection.c" - } -#line 316 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_internal_add (self, object); -#line 319 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp4_ = data_collection_get_singleton (object); -#line 319 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - added = _tmp4_; -#line 320 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp5_ = added; -#line 320 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_items_added (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 321 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp6_ = added; -#line 321 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_contents_altered (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable), NULL); -#line 324 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_object_notify_membership_changed (object, self); -#line 326 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = TRUE; -#line 326 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (added); -#line 326 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 1390 "DataCollection.c" -} - - -gboolean -data_collection_add (DataCollection* self, - DataObject* object) -{ -#line 309 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), FALSE); -#line 309 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return DATA_COLLECTION_GET_CLASS (self)->add (self, object); -#line 1402 "DataCollection.c" -} - - -static GeeCollection* -data_collection_real_add_many (DataCollection* self, - GeeCollection* objects, - ProgressMonitor monitor, - void* monitor_target) -{ - GeeCollection* result = NULL; - GeeArrayList* added = NULL; - GeeArrayList* _tmp0_; - gint count = 0; - GeeArrayList* _tmp13_; - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; - GeeArrayList* _tmp17_; - GeeArrayList* _tmp18_; - GeeArrayList* _tmp19_; -#line 330 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (objects), NULL); -#line 332 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = gee_array_list_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 332 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - added = _tmp0_; -#line 1429 "DataCollection.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp1_; -#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (objects, GEE_TYPE_ITERABLE, GeeIterable)); -#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _object_it = _tmp1_; -#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - while (TRUE) { -#line 1439 "DataCollection.c" - GeeIterator* _tmp2_; - DataObject* object = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - DataObject* _tmp5_; - GeeArrayList* _tmp11_; - DataObject* _tmp12_; -#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = _object_it; -#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - break; -#line 1453 "DataCollection.c" - } -#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = _object_it; -#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - object = (DataObject*) _tmp4_; -#line 334 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp5_ = object; -#line 334 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (data_collection_internal_contains (self, _tmp5_)) { -#line 1465 "DataCollection.c" - gchar* _tmp6_; - gchar* _tmp7_; - DataObject* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp6_ = data_collection_to_string (self); -#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp7_ = _tmp6_; -#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp8_ = object; -#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp9_ = data_object_to_string (_tmp8_); -#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp10_ = _tmp9_; -#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_debug ("DataCollection.vala:335: %s cannot add %s: already present", _tmp7_, _tmp10_); -#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_free0 (_tmp10_); -#line 335 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_free0 (_tmp7_); -#line 337 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (object); -#line 337 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - continue; -#line 1491 "DataCollection.c" - } -#line 340 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp11_ = added; -#line 340 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp12_ = object; -#line 340 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp12_); -#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (object); -#line 1501 "DataCollection.c" - } -#line 333 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (_object_it); -#line 1505 "DataCollection.c" - } -#line 343 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp13_ = added; -#line 343 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp14_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 343 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp15_ = _tmp14_; -#line 343 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - count = _tmp15_; -#line 344 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp16_ = count; -#line 344 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (_tmp16_ == 0) { -#line 345 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_COLLECTION, GeeCollection); -#line 345 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 1523 "DataCollection.c" - } -#line 347 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp17_ = added; -#line 347 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_internal_add_many (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_LIST, GeeList), monitor, monitor_target); -#line 350 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp18_ = added; -#line 350 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_items_added (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 351 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp19_ = added; -#line 351 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_contents_altered (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ITERABLE, GeeIterable), NULL); -#line 1537 "DataCollection.c" - { - gint ctr = 0; -#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ctr = 0; -#line 1542 "DataCollection.c" - { - gboolean _tmp20_ = FALSE; -#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp20_ = TRUE; -#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - while (TRUE) { -#line 1549 "DataCollection.c" - gint _tmp22_; - gint _tmp23_; - GeeArrayList* _tmp24_; - gint _tmp25_; - gpointer _tmp26_; - DataObject* _tmp27_; -#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!_tmp20_) { -#line 1558 "DataCollection.c" - gint _tmp21_; -#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp21_ = ctr; -#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ctr = _tmp21_ + 1; -#line 1564 "DataCollection.c" - } -#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp20_ = FALSE; -#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp22_ = ctr; -#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp23_ = count; -#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!(_tmp22_ < _tmp23_)) { -#line 354 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - break; -#line 1576 "DataCollection.c" - } -#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp24_ = added; -#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp25_ = ctr; -#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp26_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp25_); -#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp27_ = (DataObject*) _tmp26_; -#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_object_notify_membership_changed (_tmp27_, self); -#line 355 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (_tmp27_); -#line 1590 "DataCollection.c" - } - } - } -#line 357 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_COLLECTION, GeeCollection); -#line 357 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 1598 "DataCollection.c" -} - - -GeeCollection* -data_collection_add_many (DataCollection* self, - GeeCollection* objects, - ProgressMonitor monitor, - void* monitor_target) -{ -#line 330 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL); -#line 330 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return DATA_COLLECTION_GET_CLASS (self)->add_many (self, objects, monitor, monitor_target); -#line 1612 "DataCollection.c" -} - - -Marker* -data_collection_start_marking (DataCollection* self) -{ - Marker* result = NULL; - DataCollectionMarkerImpl* _tmp0_; -#line 361 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL); -#line 362 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = data_collection_marker_impl_new (self); -#line 362 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MARKER, Marker); -#line 362 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 1629 "DataCollection.c" -} - - -Marker* -data_collection_mark (DataCollection* self, - DataObject* object) -{ - Marker* result = NULL; - Marker* marker = NULL; - DataCollectionMarkerImpl* _tmp0_; -#line 366 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL); -#line 366 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), NULL); -#line 367 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = data_collection_marker_impl_new (self); -#line 367 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - marker = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MARKER, Marker); -#line 368 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - marker_mark (marker, object); -#line 370 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = marker; -#line 370 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 1654 "DataCollection.c" -} - - -Marker* -data_collection_mark_many (DataCollection* self, - GeeCollection* objects) -{ - Marker* result = NULL; - Marker* marker = NULL; - DataCollectionMarkerImpl* _tmp0_; -#line 374 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL); -#line 374 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (objects), NULL); -#line 375 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = data_collection_marker_impl_new (self); -#line 375 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - marker = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MARKER, Marker); -#line 376 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - marker_mark_many (marker, objects); -#line 378 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = marker; -#line 378 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 1679 "DataCollection.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 385 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return self ? g_object_ref (self) : NULL; -#line 1688 "DataCollection.c" -} - - -void -data_collection_act_on_marked (DataCollection* self, - Marker* m, - MarkedAction action, - void* action_target, - ProgressMonitor monitor, - void* monitor_target, - GObject* user) -{ - DataCollectionMarkerImpl* marker = NULL; - DataCollectionMarkerImpl* _tmp0_; - DataCollectionMarkerImpl* _tmp1_; - DataCollectionMarkerImpl* _tmp2_; - guint64 count = 0ULL; - guint64 total = 0ULL; - DataCollectionMarkerImpl* _tmp3_; - GeeHashSet* _tmp4_; - gint _tmp5_; - gint _tmp6_; - DataCollectionMarkerImpl* _tmp21_; -#line 383 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 383 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_MARKER (m)); -#line 383 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail ((user == NULL) || G_IS_OBJECT (user)); -#line 385 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (m, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl)); -#line 385 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - marker = _tmp0_; -#line 387 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = marker; -#line 387 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _vala_assert (data_collection_marker_impl_is_valid (_tmp1_, self), "marker.is_valid(this)"); -#line 390 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = marker; -#line 390 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_marker_impl_freeze (_tmp2_); -#line 392 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - count = (guint64) 0; -#line 393 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = marker; -#line 393 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp4_ = _tmp3_->marked; -#line 393 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp5_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 393 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp6_ = _tmp5_; -#line 393 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - total = (guint64) _tmp6_; -#line 1742 "DataCollection.c" - { - GeeIterator* _object_it = NULL; - DataCollectionMarkerImpl* _tmp7_; - GeeHashSet* _tmp8_; - GeeIterator* _tmp9_; -#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp7_ = marker; -#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp8_ = _tmp7_->marked; -#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp9_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _object_it = _tmp9_; -#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - while (TRUE) { -#line 1758 "DataCollection.c" - GeeIterator* _tmp10_; - DataObject* object = NULL; - GeeIterator* _tmp11_; - gpointer _tmp12_; - DataObject* _tmp13_; - DataObject* _tmp17_; -#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp10_ = _object_it; -#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!gee_iterator_next (_tmp10_)) { -#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - break; -#line 1771 "DataCollection.c" - } -#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp11_ = _object_it; -#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp12_ = gee_iterator_get (_tmp11_); -#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - object = (DataObject*) _tmp12_; -#line 398 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp13_ = object; -#line 398 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!data_collection_internal_contains (self, _tmp13_)) { -#line 1783 "DataCollection.c" - DataObject* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; -#line 399 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp14_ = object; -#line 399 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp15_ = data_object_to_string (_tmp14_); -#line 399 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp16_ = _tmp15_; -#line 399 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_warning ("DataCollection.vala:399: act_on_marked: marker holding ref to unknown " \ -"%s", _tmp16_); -#line 399 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_free0 (_tmp16_); -#line 401 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (object); -#line 401 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - continue; -#line 1801 "DataCollection.c" - } -#line 404 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp17_ = object; -#line 404 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!action (_tmp17_, user, action_target)) { -#line 405 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (object); -#line 405 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - break; -#line 1811 "DataCollection.c" - } -#line 407 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (monitor != NULL) { -#line 1815 "DataCollection.c" - guint64 _tmp18_; - guint64 _tmp19_; - guint64 _tmp20_; -#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp18_ = count; -#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - count = _tmp18_ + 1; -#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp19_ = count; -#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp20_ = total; -#line 408 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!monitor (_tmp19_, _tmp20_, TRUE, monitor_target)) { -#line 409 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (object); -#line 409 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - break; -#line 1833 "DataCollection.c" - } - } -#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (object); -#line 1838 "DataCollection.c" - } -#line 396 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (_object_it); -#line 1842 "DataCollection.c" - } -#line 414 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp21_ = marker; -#line 414 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_marker_impl_finished (_tmp21_); -#line 383 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (marker); -#line 1850 "DataCollection.c" -} - - -static void -data_collection_real_remove_marked (DataCollection* self, - Marker* m) -{ - DataCollectionMarkerImpl* marker = NULL; - DataCollectionMarkerImpl* _tmp0_; - DataCollectionMarkerImpl* _tmp1_; - DataCollectionMarkerImpl* _tmp2_; - GeeArrayList* skipped = NULL; - GeeArrayList* _tmp18_; - DataCollectionMarkerImpl* _tmp22_; - GeeHashSet* _tmp23_; - gint _tmp24_; - gint _tmp25_; - DataCollectionMarkerImpl* _tmp37_; -#line 419 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_MARKER (m)); -#line 420 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (m, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl)); -#line 420 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - marker = _tmp0_; -#line 422 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = marker; -#line 422 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _vala_assert (data_collection_marker_impl_is_valid (_tmp1_, self), "marker.is_valid(this)"); -#line 425 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = marker; -#line 425 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_marker_impl_freeze (_tmp2_); -#line 428 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - skipped = NULL; -#line 1885 "DataCollection.c" - { - GeeIterator* _object_it = NULL; - DataCollectionMarkerImpl* _tmp3_; - GeeHashSet* _tmp4_; - GeeIterator* _tmp5_; -#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = marker; -#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp4_ = _tmp3_->marked; -#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp5_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _object_it = _tmp5_; -#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - while (TRUE) { -#line 1901 "DataCollection.c" - GeeIterator* _tmp6_; - DataObject* object = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - DataObject* _tmp9_; - DataObject* _tmp17_; -#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp6_ = _object_it; -#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - break; -#line 1914 "DataCollection.c" - } -#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp7_ = _object_it; -#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - object = (DataObject*) _tmp8_; -#line 431 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp9_ = object; -#line 431 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!data_collection_internal_contains (self, _tmp9_)) { -#line 1926 "DataCollection.c" - DataObject* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - GeeArrayList* _tmp13_; - GeeArrayList* _tmp15_; - DataObject* _tmp16_; -#line 432 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp10_ = object; -#line 432 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp11_ = data_object_to_string (_tmp10_); -#line 432 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp12_ = _tmp11_; -#line 432 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_warning ("DataCollection.vala:432: remove_marked: marker holding ref to unknown " \ -"%s", _tmp12_); -#line 432 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_free0 (_tmp12_); -#line 434 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp13_ = skipped; -#line 434 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (_tmp13_ == NULL) { -#line 1947 "DataCollection.c" - GeeArrayList* _tmp14_; -#line 435 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp14_ = gee_array_list_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 435 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (skipped); -#line 435 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - skipped = _tmp14_; -#line 1955 "DataCollection.c" - } -#line 437 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp15_ = skipped; -#line 437 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp16_ = object; -#line 437 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp16_); -#line 439 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (object); -#line 439 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - continue; -#line 1967 "DataCollection.c" - } -#line 442 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp17_ = object; -#line 442 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_internal_remove (self, _tmp17_); -#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (object); -#line 1975 "DataCollection.c" - } -#line 429 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (_object_it); -#line 1979 "DataCollection.c" - } -#line 445 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp18_ = skipped; -#line 445 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (_tmp18_ != NULL) { -#line 1985 "DataCollection.c" - DataCollectionMarkerImpl* _tmp19_; - GeeHashSet* _tmp20_; - GeeArrayList* _tmp21_; -#line 446 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp19_ = marker; -#line 446 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp20_ = _tmp19_->marked; -#line 446 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp21_ = skipped; -#line 446 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - gee_collection_remove_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1997 "DataCollection.c" - } -#line 449 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp22_ = marker; -#line 449 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp23_ = _tmp22_->marked; -#line 449 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp24_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 449 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp25_ = _tmp24_; -#line 449 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (_tmp25_ > 0) { -#line 2009 "DataCollection.c" - DataCollectionMarkerImpl* _tmp26_; - GeeHashSet* _tmp27_; - DataCollectionMarkerImpl* _tmp28_; - GeeHashSet* _tmp29_; -#line 450 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp26_ = marker; -#line 450 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp27_ = _tmp26_->marked; -#line 450 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_items_removed (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 451 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp28_ = marker; -#line 451 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp29_ = _tmp28_->marked; -#line 451 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_contents_altered (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2026 "DataCollection.c" - { - GeeIterator* _object_it = NULL; - DataCollectionMarkerImpl* _tmp30_; - GeeHashSet* _tmp31_; - GeeIterator* _tmp32_; -#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp30_ = marker; -#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp31_ = _tmp30_->marked; -#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp32_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _object_it = _tmp32_; -#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - while (TRUE) { -#line 2042 "DataCollection.c" - GeeIterator* _tmp33_; - DataObject* object = NULL; - GeeIterator* _tmp34_; - gpointer _tmp35_; - DataObject* _tmp36_; -#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp33_ = _object_it; -#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!gee_iterator_next (_tmp33_)) { -#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - break; -#line 2054 "DataCollection.c" - } -#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp34_ = _object_it; -#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp35_ = gee_iterator_get (_tmp34_); -#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - object = (DataObject*) _tmp35_; -#line 455 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp36_ = object; -#line 455 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_object_notify_membership_changed (_tmp36_, NULL); -#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (object); -#line 2068 "DataCollection.c" - } -#line 454 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (_object_it); -#line 2072 "DataCollection.c" - } - } -#line 459 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp37_ = marker; -#line 459 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_marker_impl_finished (_tmp37_); -#line 419 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (skipped); -#line 419 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (marker); -#line 2083 "DataCollection.c" -} - - -void -data_collection_remove_marked (DataCollection* self, - Marker* m) -{ -#line 419 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 419 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - DATA_COLLECTION_GET_CLASS (self)->remove_marked (self, m); -#line 2095 "DataCollection.c" -} - - -static void -data_collection_real_clear (DataCollection* self) -{ - DataSet* _tmp0_; - GeeArrayList* removed = NULL; - GeeArrayList* _tmp1_; - GeeArrayList* _tmp10_; - GeeArrayList* _tmp11_; -#line 463 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->dataset; -#line 463 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (data_set_get_count (_tmp0_) == 0) { -#line 464 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return; -#line 2113 "DataCollection.c" - } -#line 468 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = gee_array_list_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 468 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - removed = _tmp1_; -#line 2119 "DataCollection.c" - { - gboolean _tmp2_ = FALSE; -#line 469 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = TRUE; -#line 469 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - while (TRUE) { -#line 2126 "DataCollection.c" - DataObject* object = NULL; - DataSet* _tmp4_; - DataObject* _tmp5_; - DataObject* _tmp6_; - GeeArrayList* _tmp7_; - DataObject* _tmp8_; - DataObject* _tmp9_; -#line 469 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!_tmp2_) { -#line 2136 "DataCollection.c" - DataSet* _tmp3_; -#line 475 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = self->priv->dataset; -#line 475 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!(data_set_get_count (_tmp3_) > 0)) { -#line 475 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - break; -#line 2144 "DataCollection.c" - } - } -#line 469 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = FALSE; -#line 470 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp4_ = self->priv->dataset; -#line 470 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp5_ = data_set_get_at (_tmp4_, 0); -#line 470 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - object = _tmp5_; -#line 471 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp6_ = object; -#line 471 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _vala_assert (_tmp6_ != NULL, "object != null"); -#line 473 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp7_ = removed; -#line 473 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp8_ = object; -#line 473 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp8_); -#line 474 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp9_ = object; -#line 474 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_internal_remove (self, _tmp9_); -#line 469 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (object); -#line 2171 "DataCollection.c" - } - } -#line 478 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp10_ = removed; -#line 478 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_items_removed (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 479 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp11_ = removed; -#line 479 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_contents_altered (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 2182 "DataCollection.c" - { - GeeArrayList* _object_list = NULL; - GeeArrayList* _tmp12_; - GeeArrayList* _tmp13_; - gint _object_size = 0; - GeeArrayList* _tmp14_; - gint _tmp15_; - gint _tmp16_; - gint _object_index = 0; -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp12_ = removed; -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp13_ = _g_object_ref0 (_tmp12_); -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _object_list = _tmp13_; -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp14_ = _object_list; -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp15_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp16_ = _tmp15_; -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _object_size = _tmp16_; -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _object_index = -1; -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - while (TRUE) { -#line 2210 "DataCollection.c" - gint _tmp17_; - gint _tmp18_; - gint _tmp19_; - DataObject* object = NULL; - GeeArrayList* _tmp20_; - gint _tmp21_; - gpointer _tmp22_; - DataObject* _tmp23_; -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp17_ = _object_index; -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _object_index = _tmp17_ + 1; -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp18_ = _object_index; -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp19_ = _object_size; -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!(_tmp18_ < _tmp19_)) { -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - break; -#line 2231 "DataCollection.c" - } -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp20_ = _object_list; -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp21_ = _object_index; -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp22_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp21_); -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - object = (DataObject*) _tmp22_; -#line 483 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp23_ = object; -#line 483 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_object_notify_membership_changed (_tmp23_, NULL); -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (object); -#line 2247 "DataCollection.c" - } -#line 482 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (_object_list); -#line 2251 "DataCollection.c" - } -#line 462 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (removed); -#line 2255 "DataCollection.c" -} - - -void -data_collection_clear (DataCollection* self) -{ -#line 462 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 462 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - DATA_COLLECTION_GET_CLASS (self)->clear (self); -#line 2266 "DataCollection.c" -} - - -static void -data_collection_real_close (DataCollection* self) -{ -#line 493 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_clear (self); -#line 2275 "DataCollection.c" -} - - -void -data_collection_close (DataCollection* self) -{ -#line 492 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 492 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - DATA_COLLECTION_GET_CLASS (self)->close (self); -#line 2286 "DataCollection.c" -} - - -static gpointer -_alteration_ref0 (gpointer self) -{ -#line 513 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return self ? alteration_ref (self) : NULL; -#line 2295 "DataCollection.c" -} - - -void -data_collection_internal_notify_altered (DataCollection* self, - DataObject* object, - Alteration* alteration) -{ - gboolean resort_occurred = FALSE; - DataSet* _tmp0_; - gboolean _tmp14_; - GeeMap* _tmp15_; - GeeMap* _tmp16_; -#line 498 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 498 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_OBJECT (object)); -#line 498 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_ALTERATION (alteration)); -#line 499 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _vala_assert (data_collection_internal_contains (self, object), "internal_contains(object)"); -#line 501 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->dataset; -#line 501 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - resort_occurred = data_set_resort_object (_tmp0_, object, alteration); -#line 503 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (data_collection_are_notifications_frozen (self)) { -#line 2323 "DataCollection.c" - GeeHashMap* _tmp1_; - Alteration* current = NULL; - GeeHashMap* _tmp3_; - gpointer _tmp4_; - Alteration* _tmp5_; - GeeHashMap* _tmp9_; - Alteration* _tmp10_; - gboolean _tmp11_ = FALSE; - gboolean _tmp12_; -#line 504 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = self->priv->frozen_items_altered; -#line 504 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (_tmp1_ == NULL) { -#line 2337 "DataCollection.c" - GeeHashMap* _tmp2_; -#line 505 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = gee_hash_map_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_ALTERATION, (GBoxedCopyFunc) alteration_ref, (GDestroyNotify) alteration_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 505 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (self->priv->frozen_items_altered); -#line 505 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->priv->frozen_items_altered = _tmp2_; -#line 2345 "DataCollection.c" - } -#line 509 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = self->priv->frozen_items_altered; -#line 509 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), object); -#line 509 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - current = (Alteration*) _tmp4_; -#line 510 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp5_ = current; -#line 510 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (_tmp5_ != NULL) { -#line 2357 "DataCollection.c" - Alteration* _tmp6_; - Alteration* _tmp7_; -#line 511 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp6_ = current; -#line 511 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp7_ = alteration_compress (_tmp6_, alteration); -#line 511 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _alteration_unref0 (current); -#line 511 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - current = _tmp7_; -#line 2368 "DataCollection.c" - } else { - Alteration* _tmp8_; -#line 513 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp8_ = _alteration_ref0 (alteration); -#line 513 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _alteration_unref0 (current); -#line 513 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - current = _tmp8_; -#line 2377 "DataCollection.c" - } -#line 515 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp9_ = self->priv->frozen_items_altered; -#line 515 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp10_ = current; -#line 515 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), object, _tmp10_); -#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp12_ = self->priv->fire_ordering_changed; -#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (_tmp12_) { -#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp11_ = TRUE; -#line 2391 "DataCollection.c" - } else { - gboolean _tmp13_; -#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp13_ = resort_occurred; -#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp11_ = _tmp13_; -#line 2398 "DataCollection.c" - } -#line 517 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->priv->fire_ordering_changed = _tmp11_; -#line 519 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _alteration_unref0 (current); -#line 519 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return; -#line 2406 "DataCollection.c" - } -#line 522 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp14_ = resort_occurred; -#line 522 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (_tmp14_) { -#line 523 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_ordering_changed (self); -#line 2414 "DataCollection.c" - } -#line 525 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp15_ = data_collection_get_alteration_singleton (object, alteration); -#line 525 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp16_ = _tmp15_; -#line 525 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_items_altered (self, _tmp16_); -#line 525 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (_tmp16_); -#line 2424 "DataCollection.c" -} - - -GValue* -data_collection_get_property (DataCollection* self, - const gchar* name) -{ - GValue* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 528 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), NULL); -#line 528 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 529 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->properties; -#line 529 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name); -#line 529 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = (GValue*) _tmp1_; -#line 529 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 2447 "DataCollection.c" -} - - -static gboolean -_bool_value_equals_value_equal_func (GValue* a, - GValue* b, - gpointer self) -{ - gboolean result; - result = bool_value_equals (a, b); -#line 535 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 2460 "DataCollection.c" -} - - -static gboolean -_int_value_equals_value_equal_func (GValue* a, - GValue* b, - gpointer self) -{ - gboolean result; - result = int_value_equals (a, b); -#line 537 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 2473 "DataCollection.c" -} - - -void -data_collection_set_property (DataCollection* self, - const gchar* name, - GValue* val, - ValueEqualFunc value_equals, - void* value_equals_target) -{ - GValue* old = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - GValue* _tmp2_; - GeeHashMap* _tmp6_; - GValue _tmp7_; - GValue* _tmp8_; - GValue _tmp9_; - gint count = 0; - DataSet* _tmp10_; -#line 532 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 532 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (name != NULL); -#line 532 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (val != NULL); -#line 533 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (value_equals == NULL) { -#line 534 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (G_VALUE_HOLDS (val, G_TYPE_BOOLEAN)) { -#line 535 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - value_equals = _bool_value_equals_value_equal_func; -#line 535 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - value_equals_target = NULL; -#line 2508 "DataCollection.c" - } else { -#line 536 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (G_VALUE_HOLDS (val, G_TYPE_INT)) { -#line 537 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - value_equals = _int_value_equals_value_equal_func; -#line 537 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - value_equals_target = NULL; -#line 2516 "DataCollection.c" - } else { -#line 539 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_error ("DataCollection.vala:539: value_equals must be specified for this type"); -#line 2520 "DataCollection.c" - } - } - } -#line 542 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->properties; -#line 542 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name); -#line 542 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - old = (GValue*) _tmp1_; -#line 543 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = old; -#line 543 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (_tmp2_ != NULL) { -#line 2534 "DataCollection.c" - GValue* _tmp3_; - GValue _tmp4_; - GValue _tmp5_; -#line 544 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = old; -#line 544 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp4_ = *val; -#line 544 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp5_ = *_tmp3_; -#line 544 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (value_equals (&_tmp5_, &_tmp4_, value_equals_target)) { -#line 545 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - __vala_GValue_free0 (old); -#line 545 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return; -#line 2550 "DataCollection.c" - } - } -#line 548 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp6_ = self->priv->properties; -#line 548 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp7_ = *val; -#line 548 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name, &_tmp7_); -#line 550 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp8_ = old; -#line 550 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp9_ = *val; -#line 550 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_property_set (self, name, _tmp8_, &_tmp9_); -#line 553 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp10_ = self->priv->dataset; -#line 553 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - count = data_set_get_count (_tmp10_); -#line 2569 "DataCollection.c" - { - gint ctr = 0; -#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ctr = 0; -#line 2574 "DataCollection.c" - { - gboolean _tmp11_ = FALSE; -#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp11_ = TRUE; -#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - while (TRUE) { -#line 2581 "DataCollection.c" - gint _tmp13_; - gint _tmp14_; - DataSet* _tmp15_; - gint _tmp16_; - DataObject* _tmp17_; - DataObject* _tmp18_; - GValue* _tmp19_; - GValue _tmp20_; -#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!_tmp11_) { -#line 2592 "DataCollection.c" - gint _tmp12_; -#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp12_ = ctr; -#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ctr = _tmp12_ + 1; -#line 2598 "DataCollection.c" - } -#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp11_ = FALSE; -#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp13_ = ctr; -#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp14_ = count; -#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!(_tmp13_ < _tmp14_)) { -#line 554 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - break; -#line 2610 "DataCollection.c" - } -#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp15_ = self->priv->dataset; -#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp16_ = ctr; -#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp17_ = data_set_get_at (_tmp15_, _tmp16_); -#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp18_ = _tmp17_; -#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp19_ = old; -#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp20_ = *val; -#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_object_notify_collection_property_set (_tmp18_, name, _tmp19_, &_tmp20_); -#line 555 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (_tmp18_); -#line 2628 "DataCollection.c" - } - } - } -#line 532 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - __vala_GValue_free0 (old); -#line 2634 "DataCollection.c" -} - - -void -data_collection_clear_property (DataCollection* self, - const gchar* name) -{ - GeeHashMap* _tmp0_; - gboolean _tmp1_; - gint count = 0; - DataSet* _tmp2_; -#line 558 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 558 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (name != NULL); -#line 559 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->properties; -#line 559 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name, NULL); -#line 559 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!_tmp1_) { -#line 560 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return; -#line 2658 "DataCollection.c" - } -#line 563 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_property_cleared (self, name); -#line 566 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = self->priv->dataset; -#line 566 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - count = data_set_get_count (_tmp2_); -#line 2666 "DataCollection.c" - { - gint ctr = 0; -#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ctr = 0; -#line 2671 "DataCollection.c" - { - gboolean _tmp3_ = FALSE; -#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = TRUE; -#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - while (TRUE) { -#line 2678 "DataCollection.c" - gint _tmp5_; - gint _tmp6_; - DataSet* _tmp7_; - gint _tmp8_; - DataObject* _tmp9_; - DataObject* _tmp10_; -#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!_tmp3_) { -#line 2687 "DataCollection.c" - gint _tmp4_; -#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp4_ = ctr; -#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ctr = _tmp4_ + 1; -#line 2693 "DataCollection.c" - } -#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = FALSE; -#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp5_ = ctr; -#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp6_ = count; -#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!(_tmp5_ < _tmp6_)) { -#line 567 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - break; -#line 2705 "DataCollection.c" - } -#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp7_ = self->priv->dataset; -#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp8_ = ctr; -#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp9_ = data_set_get_at (_tmp7_, _tmp8_); -#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp10_ = _tmp9_; -#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_object_notify_collection_property_cleared (_tmp10_, name); -#line 568 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (_tmp10_); -#line 2719 "DataCollection.c" - } - } - } -} - - -void -data_collection_freeze_notifications (DataCollection* self) -{ - gint _tmp0_; -#line 581 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 582 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->notifies_frozen; -#line 582 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->priv->notifies_frozen = _tmp0_ + 1; -#line 582 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (_tmp0_ == 0) { -#line 583 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_frozen (self); -#line 2740 "DataCollection.c" - } -} - - -void -data_collection_thaw_notifications (DataCollection* self) -{ - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 586 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 587 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->notifies_frozen; -#line 587 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (_tmp0_ == 0) { -#line 588 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return; -#line 2759 "DataCollection.c" - } -#line 590 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = self->priv->notifies_frozen; -#line 590 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->priv->notifies_frozen = _tmp1_ - 1; -#line 590 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = self->priv->notifies_frozen; -#line 590 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (_tmp2_ == 0) { -#line 591 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_thawed (self); -#line 2771 "DataCollection.c" - } -} - - -gboolean -data_collection_are_notifications_frozen (DataCollection* self) -{ - gboolean result = FALSE; - gint _tmp0_; -#line 594 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (self), FALSE); -#line 595 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->notifies_frozen; -#line 595 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = _tmp0_ > 0; -#line 595 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 2789 "DataCollection.c" -} - - -static void -data_collection_real_notify_frozen (DataCollection* self) -{ -#line 601 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_signal_emit (self, data_collection_signals[DATA_COLLECTION_FROZEN_SIGNAL], 0); -#line 2798 "DataCollection.c" -} - - -void -data_collection_notify_frozen (DataCollection* self) -{ -#line 600 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 600 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - DATA_COLLECTION_GET_CLASS (self)->notify_frozen (self); -#line 2809 "DataCollection.c" -} - - -static void -data_collection_real_notify_thawed (DataCollection* self) -{ - GeeHashMap* _tmp0_; - gboolean _tmp4_; -#line 607 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->priv->frozen_items_altered; -#line 607 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (_tmp0_ != NULL) { -#line 2822 "DataCollection.c" - GeeMap* copy = NULL; - GeeHashMap* _tmp1_; - GeeMap* _tmp2_; - GeeMap* _tmp3_; -#line 609 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = self->priv->frozen_items_altered; -#line 609 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_MAP, GeeMap)); -#line 609 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - copy = _tmp2_; -#line 610 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (self->priv->frozen_items_altered); -#line 610 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->priv->frozen_items_altered = NULL; -#line 612 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = copy; -#line 612 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_items_altered (self, _tmp3_); -#line 607 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (copy); -#line 2843 "DataCollection.c" - } -#line 615 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp4_ = self->priv->fire_ordering_changed; -#line 615 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (_tmp4_) { -#line 616 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->priv->fire_ordering_changed = FALSE; -#line 617 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_notify_ordering_changed (self); -#line 2853 "DataCollection.c" - } -#line 620 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_signal_emit (self, data_collection_signals[DATA_COLLECTION_THAWED_SIGNAL], 0); -#line 2857 "DataCollection.c" -} - - -void -data_collection_notify_thawed (DataCollection* self) -{ -#line 606 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (self)); -#line 606 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - DATA_COLLECTION_GET_CLASS (self)->notify_thawed (self); -#line 2868 "DataCollection.c" -} - - -static void -data_collection_real_items_added (DataCollection* self, - GeeIterable* added) -{ -#line 116 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (GEE_IS_ITERABLE (added)); -#line 2878 "DataCollection.c" -} - - -static void -data_collection_real_items_removed (DataCollection* self, - GeeIterable* removed) -{ -#line 120 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (GEE_IS_ITERABLE (removed)); -#line 2888 "DataCollection.c" -} - - -static void -data_collection_real_contents_altered (DataCollection* self, - GeeIterable* added, - GeeIterable* removed) -{ -#line 124 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added)); -#line 124 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed)); -#line 2901 "DataCollection.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2); - register GMarshalFunc_VOID__OBJECT_OBJECT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (n_param_values == 3); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data1 = closure->data; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data2 = param_values->data[0].v_pointer; -#line 2927 "DataCollection.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data1 = param_values->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data2 = closure->data; -#line 2933 "DataCollection.c" - } -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2); -#line 2939 "DataCollection.c" -} - - -static void -data_collection_real_items_altered (DataCollection* self, - GeeMap* items) -{ -#line 130 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (GEE_IS_MAP (items)); -#line 2949 "DataCollection.c" -} - - -static void -data_collection_real_ordering_changed (DataCollection* self) -{ -} - - -static void -data_collection_real_property_set (DataCollection* self, - const gchar* name, - GValue* old, - GValue* val) -{ -#line 140 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (name != NULL); -#line 140 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (val != NULL); -#line 2969 "DataCollection.c" -} - - -static void -g_cclosure_user_marshal_VOID__STRING_POINTER_BOXED (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__STRING_POINTER_BOXED) (gpointer data1, const char* arg_1, gpointer arg_2, gpointer arg_3, gpointer data2); - register GMarshalFunc_VOID__STRING_POINTER_BOXED callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (n_param_values == 4); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data1 = closure->data; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data2 = param_values->data[0].v_pointer; -#line 2995 "DataCollection.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data1 = param_values->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data2 = closure->data; -#line 3001 "DataCollection.c" - } -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - callback = (GMarshalFunc_VOID__STRING_POINTER_BOXED) (marshal_data ? marshal_data : cc->callback); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - callback (data1, g_value_get_string (param_values + 1), g_value_get_pointer (param_values + 2), g_value_get_boxed (param_values + 3), data2); -#line 3007 "DataCollection.c" -} - - -static void -data_collection_real_property_cleared (DataCollection* self, - const gchar* name) -{ -#line 144 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (name != NULL); -#line 3017 "DataCollection.c" -} - - -static void -data_collection_real_frozen (DataCollection* self) -{ -} - - -static void -data_collection_real_thawed (DataCollection* self) -{ -} - - -static void -_data_collection_marker_impl_on_items_removed_data_collection_items_removed (DataCollection* _sender, - GeeIterable* removed, - gpointer self) -{ -#line 24 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_marker_impl_on_items_removed ((DataCollectionMarkerImpl*) self, removed); -#line 3040 "DataCollection.c" -} - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 16 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return self ? data_collection_ref (self) : NULL; -#line 3049 "DataCollection.c" -} - - -static DataCollectionMarkerImpl* -data_collection_marker_impl_construct (GType object_type, - DataCollection* owner) -{ - DataCollectionMarkerImpl * self = NULL; - DataCollection* _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (owner), NULL); -#line 15 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self = (DataCollectionMarkerImpl*) g_object_new (object_type, NULL); -#line 16 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = _data_collection_ref0 (owner); -#line 16 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _data_collection_unref0 (self->owner); -#line 16 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->owner = _tmp0_; -#line 20 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_signal_connect_object (owner, "items-removed", (GCallback) _data_collection_marker_impl_on_items_removed_data_collection_items_removed, self, 0); -#line 15 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return self; -#line 3073 "DataCollection.c" -} - - -static DataCollectionMarkerImpl* -data_collection_marker_impl_new (DataCollection* owner) -{ -#line 15 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return data_collection_marker_impl_construct (DATA_COLLECTION_TYPE_MARKER_IMPL, owner); -#line 3082 "DataCollection.c" -} - - -static void -data_collection_marker_impl_real_mark (Marker* base, - DataObject* object) -{ - DataCollectionMarkerImpl * self; - DataCollection* _tmp0_; - GeeHashSet* _tmp1_; -#line 27 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl); -#line 27 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_OBJECT (object)); -#line 28 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->owner; -#line 28 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _vala_assert (data_collection_internal_contains (_tmp0_, object), "owner.internal_contains(object)"); -#line 30 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = self->marked; -#line 30 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object); -#line 3105 "DataCollection.c" -} - - -static void -data_collection_marker_impl_real_unmark (Marker* base, - DataObject* object) -{ - DataCollectionMarkerImpl * self; - DataCollection* _tmp0_; - GeeHashSet* _tmp1_; -#line 33 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl); -#line 33 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (IS_DATA_OBJECT (object)); -#line 34 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->owner; -#line 34 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _vala_assert (data_collection_internal_contains (_tmp0_, object), "owner.internal_contains(object)"); -#line 36 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = self->marked; -#line 36 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object); -#line 3128 "DataCollection.c" -} - - -static gboolean -data_collection_marker_impl_real_toggle (Marker* base, - DataObject* object) -{ - DataCollectionMarkerImpl * self; - gboolean result = FALSE; - DataCollection* _tmp0_; - GeeHashSet* _tmp1_; - GeeHashSet* _tmp4_; -#line 39 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl); -#line 39 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 40 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->owner; -#line 40 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _vala_assert (data_collection_internal_contains (_tmp0_, object), "owner.internal_contains(object)"); -#line 42 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = self->marked; -#line 42 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object)) { -#line 3153 "DataCollection.c" - GeeHashSet* _tmp2_; -#line 43 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = self->marked; -#line 43 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object); -#line 3159 "DataCollection.c" - } else { - GeeHashSet* _tmp3_; -#line 45 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = self->marked; -#line 45 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object); -#line 3166 "DataCollection.c" - } -#line 48 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp4_ = self->marked; -#line 48 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object); -#line 48 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 3174 "DataCollection.c" -} - - -static void -data_collection_marker_impl_real_mark_many (Marker* base, - GeeCollection* list) -{ - DataCollectionMarkerImpl * self; -#line 51 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl); -#line 51 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (list)); -#line 3187 "DataCollection.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_ITERABLE, GeeIterable)); -#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _object_it = _tmp0_; -#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - while (TRUE) { -#line 3197 "DataCollection.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataCollection* _tmp4_; - DataObject* _tmp5_; - GeeHashSet* _tmp6_; - DataObject* _tmp7_; -#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = _object_it; -#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - break; -#line 3212 "DataCollection.c" - } -#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = _object_it; -#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - object = (DataObject*) _tmp3_; -#line 53 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp4_ = self->owner; -#line 53 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp5_ = object; -#line 53 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _vala_assert (data_collection_internal_contains (_tmp4_, _tmp5_), "owner.internal_contains(object)"); -#line 55 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp6_ = self->marked; -#line 55 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp7_ = object; -#line 55 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp7_); -#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (object); -#line 3234 "DataCollection.c" - } -#line 52 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (_object_it); -#line 3238 "DataCollection.c" - } -} - - -static void -data_collection_marker_impl_real_unmark_many (Marker* base, - GeeCollection* list) -{ - DataCollectionMarkerImpl * self; -#line 59 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl); -#line 59 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (list)); -#line 3252 "DataCollection.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_ITERABLE, GeeIterable)); -#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _object_it = _tmp0_; -#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - while (TRUE) { -#line 3262 "DataCollection.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataCollection* _tmp4_; - DataObject* _tmp5_; - GeeHashSet* _tmp6_; - DataObject* _tmp7_; -#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = _object_it; -#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - break; -#line 3277 "DataCollection.c" - } -#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = _object_it; -#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - object = (DataObject*) _tmp3_; -#line 61 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp4_ = self->owner; -#line 61 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp5_ = object; -#line 61 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _vala_assert (data_collection_internal_contains (_tmp4_, _tmp5_), "owner.internal_contains(object)"); -#line 63 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp6_ = self->marked; -#line 63 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp7_ = object; -#line 63 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp7_); -#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (object); -#line 3299 "DataCollection.c" - } -#line 60 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (_object_it); -#line 3303 "DataCollection.c" - } -} - - -static void -data_collection_marker_impl_real_mark_all (Marker* base) -{ - DataCollectionMarkerImpl * self; -#line 67 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl); -#line 3314 "DataCollection.c" - { - GeeIterator* _object_it = NULL; - DataCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->owner; -#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = data_collection_get_all (_tmp0_); -#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = _tmp1_; -#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp4_ = _tmp3_; -#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (_tmp2_); -#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _object_it = _tmp4_; -#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - while (TRUE) { -#line 3338 "DataCollection.c" - GeeIterator* _tmp5_; - DataObject* object = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - GeeHashSet* _tmp8_; - DataObject* _tmp9_; -#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp5_ = _object_it; -#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - break; -#line 3351 "DataCollection.c" - } -#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp6_ = _object_it; -#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - object = (DataObject*) _tmp7_; -#line 69 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp8_ = self->marked; -#line 69 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp9_ = object; -#line 69 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp9_); -#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (object); -#line 3367 "DataCollection.c" - } -#line 68 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (_object_it); -#line 3371 "DataCollection.c" - } -} - - -static gint -data_collection_marker_impl_real_get_count (Marker* base) -{ - DataCollectionMarkerImpl * self; - gint result = 0; - gint _tmp0_ = 0; - GeeHashSet* _tmp1_; -#line 72 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl); -#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = self->marked; -#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (_tmp1_ != NULL) { -#line 3389 "DataCollection.c" - GeeHashSet* _tmp2_; - gint _tmp3_; - gint _tmp4_; -#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = self->marked; -#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp4_ = _tmp3_; -#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = _tmp4_; -#line 3401 "DataCollection.c" - } else { - gint _tmp5_; -#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp5_ = self->freeze_count; -#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = _tmp5_; -#line 3408 "DataCollection.c" - } -#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = _tmp0_; -#line 73 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 3414 "DataCollection.c" -} - - -static GeeCollection* -data_collection_marker_impl_real_get_all (Marker* base) -{ - DataCollectionMarkerImpl * self; - GeeCollection* result = NULL; - GeeArrayList* copy = NULL; - GeeArrayList* _tmp0_; - GeeHashSet* _tmp1_; -#line 76 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl); -#line 77 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = gee_array_list_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 77 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - copy = _tmp0_; -#line 78 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = self->marked; -#line 78 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - gee_array_list_add_all (copy, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 80 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (copy, GEE_TYPE_COLLECTION, GeeCollection); -#line 80 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 3440 "DataCollection.c" -} - - -static void -data_collection_marker_impl_on_items_removed (DataCollectionMarkerImpl* self, - GeeIterable* removed) -{ -#line 83 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (DATA_COLLECTION_IS_MARKER_IMPL (self)); -#line 83 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (GEE_IS_ITERABLE (removed)); -#line 3452 "DataCollection.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = gee_iterable_iterator (removed); -#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _object_it = _tmp0_; -#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - while (TRUE) { -#line 3462 "DataCollection.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - GeeHashSet* _tmp4_; - DataObject* _tmp5_; -#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = _object_it; -#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - break; -#line 3475 "DataCollection.c" - } -#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = _object_it; -#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - object = (DataObject*) _tmp3_; -#line 85 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp4_ = self->marked; -#line 85 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp5_ = object; -#line 85 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp5_); -#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (object); -#line 3491 "DataCollection.c" - } -#line 84 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (_object_it); -#line 3495 "DataCollection.c" - } -} - - -static void -data_collection_marker_impl_freeze (DataCollectionMarkerImpl* self) -{ - DataCollection* _tmp0_; - guint _tmp1_; -#line 91 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (DATA_COLLECTION_IS_MARKER_IMPL (self)); -#line 92 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->owner; -#line 92 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_signal_parse_name ("items-removed", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE); -#line 92 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _data_collection_marker_impl_on_items_removed_data_collection_items_removed, self); -#line 3513 "DataCollection.c" -} - - -static void -data_collection_marker_impl_finished (DataCollectionMarkerImpl* self) -{ - GeeHashSet* _tmp0_; -#line 95 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (DATA_COLLECTION_IS_MARKER_IMPL (self)); -#line 96 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->marked; -#line 96 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (_tmp0_ != NULL) { -#line 3527 "DataCollection.c" - GeeHashSet* _tmp1_; - gint _tmp2_; - gint _tmp3_; -#line 97 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = self->marked; -#line 97 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 97 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp3_ = _tmp2_; -#line 97 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->freeze_count = _tmp3_; -#line 3539 "DataCollection.c" - } -#line 99 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (self->marked); -#line 99 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->marked = NULL; -#line 3545 "DataCollection.c" -} - - -static gboolean -data_collection_marker_impl_is_valid (DataCollectionMarkerImpl* self, - DataCollection* collection) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - DataCollection* _tmp1_; -#line 102 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (DATA_COLLECTION_IS_MARKER_IMPL (self), FALSE); -#line 102 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (collection), FALSE); -#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = self->owner; -#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (collection == _tmp1_) { -#line 3564 "DataCollection.c" - GeeHashSet* _tmp2_; -#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp2_ = self->marked; -#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = _tmp2_ != NULL; -#line 3570 "DataCollection.c" - } else { -#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = FALSE; -#line 3574 "DataCollection.c" - } -#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - result = _tmp0_; -#line 103 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return result; -#line 3580 "DataCollection.c" -} - - -static void -data_collection_marker_impl_class_init (DataCollectionMarkerImplClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_marker_impl_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - G_OBJECT_CLASS (klass)->finalize = data_collection_marker_impl_finalize; -#line 3591 "DataCollection.c" -} - - -static void -data_collection_marker_impl_marker_interface_init (MarkerIface * iface) -{ -#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_marker_impl_marker_parent_iface = g_type_interface_peek_parent (iface); -#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - iface->mark = (void (*) (Marker *, DataObject*)) data_collection_marker_impl_real_mark; -#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - iface->unmark = (void (*) (Marker *, DataObject*)) data_collection_marker_impl_real_unmark; -#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - iface->toggle = (gboolean (*) (Marker *, DataObject*)) data_collection_marker_impl_real_toggle; -#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - iface->mark_many = (void (*) (Marker *, GeeCollection*)) data_collection_marker_impl_real_mark_many; -#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - iface->unmark_many = (void (*) (Marker *, GeeCollection*)) data_collection_marker_impl_real_unmark_many; -#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - iface->mark_all = (void (*) (Marker *)) data_collection_marker_impl_real_mark_all; -#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - iface->get_count = (gint (*) (Marker *)) data_collection_marker_impl_real_get_count; -#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - iface->get_all = (GeeCollection* (*) (Marker *)) data_collection_marker_impl_real_get_all; -#line 3616 "DataCollection.c" -} - - -static void -data_collection_marker_impl_instance_init (DataCollectionMarkerImpl * self) -{ - GeeHashSet* _tmp0_; -#line 12 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = gee_hash_set_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 12 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->marked = _tmp0_; -#line 13 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->freeze_count = 0; -#line 3630 "DataCollection.c" -} - - -static void -data_collection_marker_impl_finalize (GObject * obj) -{ - DataCollectionMarkerImpl * self; - DataCollection* _tmp0_; - guint _tmp1_; -#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_COLLECTION_TYPE_MARKER_IMPL, DataCollectionMarkerImpl); -#line 24 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = self->owner; -#line 24 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_signal_parse_name ("items-removed", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE); -#line 24 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _data_collection_marker_impl_on_items_removed_data_collection_items_removed, self); -#line 11 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _data_collection_unref0 (self->owner); -#line 12 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (self->marked); -#line 10 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - G_OBJECT_CLASS (data_collection_marker_impl_parent_class)->finalize (obj); -#line 3654 "DataCollection.c" -} - - -static GType -data_collection_marker_impl_get_type (void) -{ - static volatile gsize data_collection_marker_impl_type_id__volatile = 0; - if (g_once_init_enter (&data_collection_marker_impl_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DataCollectionMarkerImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_collection_marker_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataCollectionMarkerImpl), 0, (GInstanceInitFunc) data_collection_marker_impl_instance_init, NULL }; - static const GInterfaceInfo marker_info = { (GInterfaceInitFunc) data_collection_marker_impl_marker_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType data_collection_marker_impl_type_id; - data_collection_marker_impl_type_id = g_type_register_static (G_TYPE_OBJECT, "DataCollectionMarkerImpl", &g_define_type_info, 0); - g_type_add_interface_static (data_collection_marker_impl_type_id, TYPE_MARKER, &marker_info); - g_once_init_leave (&data_collection_marker_impl_type_id__volatile, data_collection_marker_impl_type_id); - } - return data_collection_marker_impl_type_id__volatile; -} - - -static void -value_data_collection_init (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - value->data[0].v_pointer = NULL; -#line 3679 "DataCollection.c" -} - - -static void -value_data_collection_free_value (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_unref (value->data[0].v_pointer); -#line 3690 "DataCollection.c" - } -} - - -static void -value_data_collection_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (src_value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - dest_value->data[0].v_pointer = data_collection_ref (src_value->data[0].v_pointer); -#line 3703 "DataCollection.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - dest_value->data[0].v_pointer = NULL; -#line 3707 "DataCollection.c" - } -} - - -static gpointer -value_data_collection_peek_pointer (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return value->data[0].v_pointer; -#line 3717 "DataCollection.c" -} - - -static gchar* -value_data_collection_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (collect_values[0].v_pointer) { -#line 3729 "DataCollection.c" - DataCollection * object; - object = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (object->parent_instance.g_class == NULL) { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3736 "DataCollection.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3740 "DataCollection.c" - } -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - value->data[0].v_pointer = data_collection_ref (object); -#line 3744 "DataCollection.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - value->data[0].v_pointer = NULL; -#line 3748 "DataCollection.c" - } -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return NULL; -#line 3752 "DataCollection.c" -} - - -static gchar* -value_data_collection_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - DataCollection ** object_p; - object_p = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!object_p) { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 3768 "DataCollection.c" - } -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (!value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - *object_p = NULL; -#line 3774 "DataCollection.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - *object_p = value->data[0].v_pointer; -#line 3778 "DataCollection.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - *object_p = data_collection_ref (value->data[0].v_pointer); -#line 3782 "DataCollection.c" - } -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return NULL; -#line 3786 "DataCollection.c" -} - - -GParamSpec* -param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecDataCollection* spec; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_DATA_COLLECTION), NULL); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return G_PARAM_SPEC (spec); -#line 3806 "DataCollection.c" -} - - -gpointer -value_get_data_collection (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATA_COLLECTION), NULL); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return value->data[0].v_pointer; -#line 3817 "DataCollection.c" -} - - -void -value_set_data_collection (GValue* value, - gpointer v_object) -{ - DataCollection * old; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATA_COLLECTION)); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DATA_COLLECTION)); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - value->data[0].v_pointer = v_object; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_ref (value->data[0].v_pointer); -#line 3840 "DataCollection.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - value->data[0].v_pointer = NULL; -#line 3844 "DataCollection.c" - } -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_unref (old); -#line 3850 "DataCollection.c" - } -} - - -void -value_take_data_collection (GValue* value, - gpointer v_object) -{ - DataCollection * old; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATA_COLLECTION)); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DATA_COLLECTION)); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - value->data[0].v_pointer = v_object; -#line 3872 "DataCollection.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - value->data[0].v_pointer = NULL; -#line 3876 "DataCollection.c" - } -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_unref (old); -#line 3882 "DataCollection.c" - } -} - - -static void -data_collection_class_init (DataCollectionClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->finalize = data_collection_finalize; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_type_class_add_private (klass, sizeof (DataCollectionPrivate)); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->to_string = (gchar* (*) (DataCollection *)) data_collection_real_to_string; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->notify_items_added = (void (*) (DataCollection *, GeeIterable*)) data_collection_real_notify_items_added; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->notify_items_removed = (void (*) (DataCollection *, GeeIterable*)) data_collection_real_notify_items_removed; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->notify_contents_altered = (void (*) (DataCollection *, GeeIterable*, GeeIterable*)) data_collection_real_notify_contents_altered; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->notify_items_altered = (void (*) (DataCollection *, GeeMap*)) data_collection_real_notify_items_altered; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->notify_ordering_changed = (void (*) (DataCollection *)) data_collection_real_notify_ordering_changed; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->notify_property_set = (void (*) (DataCollection *, const gchar*, GValue*, GValue*)) data_collection_real_notify_property_set; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->notify_property_cleared = (void (*) (DataCollection *, const gchar*)) data_collection_real_notify_property_cleared; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->valid_type = (gboolean (*) (DataCollection *, DataObject*)) data_collection_real_valid_type; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->set_comparator = (void (*) (DataCollection *, Comparator, void*, ComparatorPredicate, void*)) data_collection_real_set_comparator; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->reset_comparator = (void (*) (DataCollection *)) data_collection_real_reset_comparator; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->get_all = (GeeCollection* (*) (DataCollection *)) data_collection_real_get_all; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->get_count = (gint (*) (DataCollection *)) data_collection_real_get_count; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->get_at = (DataObject* (*) (DataCollection *, gint)) data_collection_real_get_at; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->index_of = (gint (*) (DataCollection *, DataObject*)) data_collection_real_index_of; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->contains = (gboolean (*) (DataCollection *, DataObject*)) data_collection_real_contains; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->add = (gboolean (*) (DataCollection *, DataObject*)) data_collection_real_add; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->add_many = (GeeCollection* (*) (DataCollection *, GeeCollection*, ProgressMonitor, void*)) data_collection_real_add_many; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->remove_marked = (void (*) (DataCollection *, Marker*)) data_collection_real_remove_marked; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->clear = (void (*) (DataCollection *)) data_collection_real_clear; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->close = (void (*) (DataCollection *)) data_collection_real_close; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->notify_frozen = (void (*) (DataCollection *)) data_collection_real_notify_frozen; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->notify_thawed = (void (*) (DataCollection *)) data_collection_real_notify_thawed; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->items_added = data_collection_real_items_added; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->items_removed = data_collection_real_items_removed; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->contents_altered = data_collection_real_contents_altered; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->items_altered = data_collection_real_items_altered; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->ordering_changed = data_collection_real_ordering_changed; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->property_set = data_collection_real_property_set; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->property_cleared = data_collection_real_property_cleared; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->frozen = data_collection_real_frozen; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - ((DataCollectionClass *) klass)->thawed = data_collection_real_thawed; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_signals[DATA_COLLECTION_ITEMS_ADDED_SIGNAL] = g_signal_new ("items-added", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, items_added), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_ITERABLE); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_signals[DATA_COLLECTION_ITEMS_REMOVED_SIGNAL] = g_signal_new ("items-removed", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, items_removed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_ITERABLE); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_signals[DATA_COLLECTION_CONTENTS_ALTERED_SIGNAL] = g_signal_new ("contents-altered", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, contents_altered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, GEE_TYPE_ITERABLE, GEE_TYPE_ITERABLE); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_signals[DATA_COLLECTION_ITEMS_ALTERED_SIGNAL] = g_signal_new ("items-altered", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, items_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_MAP); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_signals[DATA_COLLECTION_ORDERING_CHANGED_SIGNAL] = g_signal_new ("ordering-changed", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, ordering_changed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_signals[DATA_COLLECTION_PROPERTY_SET_SIGNAL] = g_signal_new ("property-set", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, property_set), NULL, NULL, g_cclosure_user_marshal_VOID__STRING_POINTER_BOXED, G_TYPE_NONE, 3, G_TYPE_STRING, G_TYPE_POINTER, G_TYPE_VALUE); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_signals[DATA_COLLECTION_PROPERTY_CLEARED_SIGNAL] = g_signal_new ("property-cleared", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, property_cleared), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_signals[DATA_COLLECTION_FROZEN_SIGNAL] = g_signal_new ("frozen", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, frozen), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - data_collection_signals[DATA_COLLECTION_THAWED_SIGNAL] = g_signal_new ("thawed", TYPE_DATA_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataCollectionClass, thawed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 3978 "DataCollection.c" -} - - -static void -data_collection_instance_init (DataCollection * self) -{ - DataSet* _tmp0_; - GeeHashMap* _tmp1_; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->priv = DATA_COLLECTION_GET_PRIVATE (self); -#line 108 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp0_ = data_set_new (); -#line 108 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->priv->dataset = _tmp0_; -#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_VALUE, (GBoxedCopyFunc) _g_value_dup, (GDestroyNotify) _vala_GValue_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->priv->properties = _tmp1_; -#line 110 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->priv->object_ordinal_generator = (gint64) 0; -#line 111 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->priv->notifies_frozen = 0; -#line 112 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->priv->frozen_items_altered = NULL; -#line 113 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->priv->fire_ordering_changed = FALSE; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self->ref_count = 1; -#line 4007 "DataCollection.c" -} - - -static void -data_collection_finalize (DataCollection * obj) -{ - DataCollection * self; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DATA_COLLECTION, DataCollection); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_signal_handlers_destroy (self); -#line 107 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_free0 (self->priv->name); -#line 108 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _data_set_unref0 (self->priv->dataset); -#line 109 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (self->priv->properties); -#line 112 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - _g_object_unref0 (self->priv->frozen_items_altered); -#line 4027 "DataCollection.c" -} - - -GType -data_collection_get_type (void) -{ - static volatile gsize data_collection_type_id__volatile = 0; - if (g_once_init_enter (&data_collection_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_data_collection_init, value_data_collection_free_value, value_data_collection_copy_value, value_data_collection_peek_pointer, "p", value_data_collection_collect_value, "p", value_data_collection_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (DataCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataCollection), 0, (GInstanceInitFunc) data_collection_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType data_collection_type_id; - data_collection_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DataCollection", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&data_collection_type_id__volatile, data_collection_type_id); - } - return data_collection_type_id__volatile; -} - - -gpointer -data_collection_ref (gpointer instance) -{ - DataCollection * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_atomic_int_inc (&self->ref_count); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - return instance; -#line 4056 "DataCollection.c" -} - - -void -data_collection_unref (gpointer instance) -{ - DataCollection * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - DATA_COLLECTION_GET_CLASS (self)->finalize (self); -#line 7 "/home/jens/Source/shotwell/src/core/DataCollection.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 4071 "DataCollection.c" - } -} - - - diff --git a/src/core/DataObject.c b/src/core/DataObject.c deleted file mode 100644 index 1f966d2..0000000 --- a/src/core/DataObject.c +++ /dev/null @@ -1,733 +0,0 @@ -/* DataObject.c generated by valac 0.40.4, the Vala compiler - * generated from DataObject.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/**/ -/* DataObject*/ -/**/ -/* Object IDs are incremented for each DataObject, and therefore may be used to compare*/ -/* creation order. This behavior may be relied upon elsewhere. Object IDs may be recycled when*/ -/* DataObjects are reconstituted by a proxy.*/ -/**/ -/* Ordinal IDs are supplied by DataCollections to record the ordering of the object being added*/ -/* to the collection. This value is primarily only used by DataCollection, but may be used*/ -/* elsewhere to resolve ordering questions (including stabilizing a sort).*/ -/**/ -/* Have to inherit from Object due to ContainerSource and this bug:*/ -/* https://bugzilla.gnome.org/show_bug.cgi?id=615904*/ - - -#include -#include -#include -#include - - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; -enum { - DATA_OBJECT_0_PROPERTY, - DATA_OBJECT_NUM_PROPERTIES -}; -static GParamSpec* data_object_properties[DATA_OBJECT_NUM_PROPERTIES]; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataObjectPrivate { - gint64 object_id; - DataCollection* member_of; - gint64 ordinal; -}; - -typedef gboolean (*ValueEqualFunc) (GValue* a, GValue* b, void* user_data); - -static gpointer data_object_parent_class = NULL; -static gint64 data_object_object_id_generator; -static gint64 data_object_object_id_generator = (gint64) 0; - -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -#define DATA_OBJECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DATA_OBJECT, DataObjectPrivate)) -#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1) -#define DATA_COLLECTION_INVALID_OBJECT_ORDINAL ((gint64) -1) -DataObject* data_object_construct (GType object_type, - gint64 object_id); -void data_object_notify_altered (DataObject* self, - Alteration* alteration); -static void data_object_real_notify_altered (DataObject* self, - Alteration* alteration); -void data_collection_internal_notify_altered (DataCollection* self, - DataObject* object, - Alteration* alteration); -void data_object_notify_membership_changed (DataObject* self, - DataCollection* collection); -static void data_object_real_notify_membership_changed (DataObject* self, - DataCollection* collection); -void data_object_notify_collection_property_set (DataObject* self, - const gchar* name, - GValue* old, - GValue* val); -static void data_object_real_notify_collection_property_set (DataObject* self, - const gchar* name, - GValue* old, - GValue* val); -void data_object_notify_collection_property_cleared (DataObject* self, - const gchar* name); -static void data_object_real_notify_collection_property_cleared (DataObject* self, - const gchar* name); -gchar* data_object_get_name (DataObject* self); -static gchar* data_object_real_get_name (DataObject* self); -gchar* data_object_to_string (DataObject* self); -static gchar* data_object_real_to_string (DataObject* self); -DataCollection* data_object_get_membership (DataObject* self); -gboolean data_object_has_membership (DataObject* self); -void data_object_internal_set_membership (DataObject* self, - DataCollection* collection, - gint64 ordinal); -void data_object_internal_set_ordinal (DataObject* self, - gint64 ordinal); -void data_object_internal_clear_membership (DataObject* self); -gint64 data_object_internal_get_ordinal (DataObject* self); -gint64 data_object_get_object_id (DataObject* self); -void data_object_get_collection_property (DataObject* self, - const gchar* name, - GValue* def, - GValue* result); -GValue* data_collection_get_property (DataCollection* self, - const gchar* name); -static void _vala_GValue_free (GValue* self); -void data_object_set_collection_property (DataObject* self, - const gchar* name, - GValue* val, - ValueEqualFunc value_equals, - void* value_equals_target); -void data_collection_set_property (DataCollection* self, - const gchar* name, - GValue* val, - ValueEqualFunc value_equals, - void* value_equals_target); -void data_object_clear_collection_property (DataObject* self, - const gchar* name); -void data_collection_clear_property (DataCollection* self, - const gchar* name); -static void data_object_finalize (GObject * obj); - - -DataObject* -data_object_construct (GType object_type, - gint64 object_id) -{ - DataObject * self = NULL; - gint64 _tmp0_ = 0LL; -#line 38 "/home/jens/Source/shotwell/src/core/DataObject.vala" - self = (DataObject*) g_object_new (object_type, NULL); -#line 39 "/home/jens/Source/shotwell/src/core/DataObject.vala" - if (object_id == DATA_OBJECT_INVALID_OBJECT_ID) { -#line 203 "DataObject.c" - gint64 _tmp1_; -#line 39 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp1_ = data_object_object_id_generator; -#line 39 "/home/jens/Source/shotwell/src/core/DataObject.vala" - data_object_object_id_generator = _tmp1_ + 1; -#line 39 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp0_ = _tmp1_; -#line 211 "DataObject.c" - } else { -#line 39 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp0_ = object_id; -#line 215 "DataObject.c" - } -#line 39 "/home/jens/Source/shotwell/src/core/DataObject.vala" - self->priv->object_id = _tmp0_; -#line 38 "/home/jens/Source/shotwell/src/core/DataObject.vala" - return self; -#line 221 "DataObject.c" -} - - -static void -data_object_real_notify_altered (DataObject* self, - Alteration* alteration) -{ - DataCollection* _tmp0_; -#line 42 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (IS_ALTERATION (alteration)); -#line 43 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp0_ = self->priv->member_of; -#line 43 "/home/jens/Source/shotwell/src/core/DataObject.vala" - if (_tmp0_ != NULL) { -#line 236 "DataObject.c" - DataCollection* _tmp1_; -#line 44 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp1_ = self->priv->member_of; -#line 44 "/home/jens/Source/shotwell/src/core/DataObject.vala" - data_collection_internal_notify_altered (_tmp1_, self, alteration); -#line 242 "DataObject.c" - } -} - - -void -data_object_notify_altered (DataObject* self, - Alteration* alteration) -{ -#line 42 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (IS_DATA_OBJECT (self)); -#line 42 "/home/jens/Source/shotwell/src/core/DataObject.vala" - DATA_OBJECT_GET_CLASS (self)->notify_altered (self, alteration); -#line 255 "DataObject.c" -} - - -static void -data_object_real_notify_membership_changed (DataObject* self, - DataCollection* collection) -{ -#line 56 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail ((collection == NULL) || IS_DATA_COLLECTION (collection)); -#line 265 "DataObject.c" -} - - -void -data_object_notify_membership_changed (DataObject* self, - DataCollection* collection) -{ -#line 56 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (IS_DATA_OBJECT (self)); -#line 56 "/home/jens/Source/shotwell/src/core/DataObject.vala" - DATA_OBJECT_GET_CLASS (self)->notify_membership_changed (self, collection); -#line 277 "DataObject.c" -} - - -static void -data_object_real_notify_collection_property_set (DataObject* self, - const gchar* name, - GValue* old, - GValue* val) -{ -#line 61 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (name != NULL); -#line 61 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (val != NULL); -#line 291 "DataObject.c" -} - - -void -data_object_notify_collection_property_set (DataObject* self, - const gchar* name, - GValue* old, - GValue* val) -{ -#line 61 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (IS_DATA_OBJECT (self)); -#line 61 "/home/jens/Source/shotwell/src/core/DataObject.vala" - DATA_OBJECT_GET_CLASS (self)->notify_collection_property_set (self, name, old, val); -#line 305 "DataObject.c" -} - - -static void -data_object_real_notify_collection_property_cleared (DataObject* self, - const gchar* name) -{ -#line 66 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (name != NULL); -#line 315 "DataObject.c" -} - - -void -data_object_notify_collection_property_cleared (DataObject* self, - const gchar* name) -{ -#line 66 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (IS_DATA_OBJECT (self)); -#line 66 "/home/jens/Source/shotwell/src/core/DataObject.vala" - DATA_OBJECT_GET_CLASS (self)->notify_collection_property_cleared (self, name); -#line 327 "DataObject.c" -} - - -static gchar* -data_object_real_get_name (DataObject* self) -{ -#line 69 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_critical ("Type `%s' does not implement abstract method `data_object_get_name'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 69 "/home/jens/Source/shotwell/src/core/DataObject.vala" - return NULL; -#line 338 "DataObject.c" -} - - -gchar* -data_object_get_name (DataObject* self) -{ -#line 69 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_val_if_fail (IS_DATA_OBJECT (self), NULL); -#line 69 "/home/jens/Source/shotwell/src/core/DataObject.vala" - return DATA_OBJECT_GET_CLASS (self)->get_name (self); -#line 349 "DataObject.c" -} - - -static gchar* -data_object_real_to_string (DataObject* self) -{ -#line 71 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_critical ("Type `%s' does not implement abstract method `data_object_to_string'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 71 "/home/jens/Source/shotwell/src/core/DataObject.vala" - return NULL; -#line 360 "DataObject.c" -} - - -gchar* -data_object_to_string (DataObject* self) -{ -#line 71 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_val_if_fail (IS_DATA_OBJECT (self), NULL); -#line 71 "/home/jens/Source/shotwell/src/core/DataObject.vala" - return DATA_OBJECT_GET_CLASS (self)->to_string (self); -#line 371 "DataObject.c" -} - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 74 "/home/jens/Source/shotwell/src/core/DataObject.vala" - return self ? data_collection_ref (self) : NULL; -#line 380 "DataObject.c" -} - - -DataCollection* -data_object_get_membership (DataObject* self) -{ - DataCollection* result = NULL; - DataCollection* _tmp0_; - DataCollection* _tmp1_; -#line 73 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_val_if_fail (IS_DATA_OBJECT (self), NULL); -#line 74 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp0_ = self->priv->member_of; -#line 74 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp1_ = _data_collection_ref0 (_tmp0_); -#line 74 "/home/jens/Source/shotwell/src/core/DataObject.vala" - result = _tmp1_; -#line 74 "/home/jens/Source/shotwell/src/core/DataObject.vala" - return result; -#line 400 "DataObject.c" -} - - -gboolean -data_object_has_membership (DataObject* self) -{ - gboolean result = FALSE; - DataCollection* _tmp0_; -#line 77 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_val_if_fail (IS_DATA_OBJECT (self), FALSE); -#line 78 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp0_ = self->priv->member_of; -#line 78 "/home/jens/Source/shotwell/src/core/DataObject.vala" - result = _tmp0_ != NULL; -#line 78 "/home/jens/Source/shotwell/src/core/DataObject.vala" - return result; -#line 417 "DataObject.c" -} - - -void -data_object_internal_set_membership (DataObject* self, - DataCollection* collection, - gint64 ordinal) -{ - DataCollection* _tmp0_; - DataCollection* _tmp1_; -#line 83 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (IS_DATA_OBJECT (self)); -#line 83 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (IS_DATA_COLLECTION (collection)); -#line 84 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp0_ = self->priv->member_of; -#line 84 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _vala_assert (_tmp0_ == NULL, "member_of == null"); -#line 86 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp1_ = _data_collection_ref0 (collection); -#line 86 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _data_collection_unref0 (self->priv->member_of); -#line 86 "/home/jens/Source/shotwell/src/core/DataObject.vala" - self->priv->member_of = _tmp1_; -#line 87 "/home/jens/Source/shotwell/src/core/DataObject.vala" - self->priv->ordinal = ordinal; -#line 444 "DataObject.c" -} - - -void -data_object_internal_set_ordinal (DataObject* self, - gint64 ordinal) -{ - DataCollection* _tmp0_; -#line 96 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (IS_DATA_OBJECT (self)); -#line 97 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp0_ = self->priv->member_of; -#line 97 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _vala_assert (_tmp0_ == NULL, "member_of == null"); -#line 99 "/home/jens/Source/shotwell/src/core/DataObject.vala" - self->priv->ordinal = ordinal; -#line 461 "DataObject.c" -} - - -void -data_object_internal_clear_membership (DataObject* self) -{ -#line 104 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (IS_DATA_OBJECT (self)); -#line 105 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _data_collection_unref0 (self->priv->member_of); -#line 105 "/home/jens/Source/shotwell/src/core/DataObject.vala" - self->priv->member_of = NULL; -#line 106 "/home/jens/Source/shotwell/src/core/DataObject.vala" - self->priv->ordinal = DATA_COLLECTION_INVALID_OBJECT_ORDINAL; -#line 476 "DataObject.c" -} - - -inline gint64 -data_object_internal_get_ordinal (DataObject* self) -{ - gint64 result = 0LL; - gint64 _tmp0_; -#line 110 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_val_if_fail (IS_DATA_OBJECT (self), 0LL); -#line 111 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp0_ = self->priv->ordinal; -#line 111 "/home/jens/Source/shotwell/src/core/DataObject.vala" - result = _tmp0_; -#line 111 "/home/jens/Source/shotwell/src/core/DataObject.vala" - return result; -#line 493 "DataObject.c" -} - - -inline gint64 -data_object_get_object_id (DataObject* self) -{ - gint64 result = 0LL; - gint64 _tmp0_; -#line 114 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_val_if_fail (IS_DATA_OBJECT (self), 0LL); -#line 115 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp0_ = self->priv->object_id; -#line 115 "/home/jens/Source/shotwell/src/core/DataObject.vala" - result = _tmp0_; -#line 115 "/home/jens/Source/shotwell/src/core/DataObject.vala" - return result; -#line 510 "DataObject.c" -} - - -static void -_vala_GValue_free (GValue* self) -{ -#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_value_unset (self); -#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_free (self); -#line 521 "DataObject.c" -} - - -void -data_object_get_collection_property (DataObject* self, - const gchar* name, - GValue* def, - GValue* result) -{ - DataCollection* _tmp0_; - GValue* _result_ = NULL; - DataCollection* _tmp2_; - GValue* _tmp3_; - GValue* _tmp4_ = NULL; - GValue* _tmp5_; - GValue _tmp7_ = {0}; -#line 118 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (IS_DATA_OBJECT (self)); -#line 118 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (name != NULL); -#line 119 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp0_ = self->priv->member_of; -#line 119 "/home/jens/Source/shotwell/src/core/DataObject.vala" - if (_tmp0_ == NULL) { -#line 546 "DataObject.c" - GValue _tmp1_ = {0}; -#line 120 "/home/jens/Source/shotwell/src/core/DataObject.vala" - if (G_IS_VALUE (def)) { -#line 120 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_value_init (&_tmp1_, G_VALUE_TYPE (def)); -#line 120 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_value_copy (def, &_tmp1_); -#line 554 "DataObject.c" - } else { -#line 120 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp1_ = *def; -#line 558 "DataObject.c" - } -#line 120 "/home/jens/Source/shotwell/src/core/DataObject.vala" - *result = _tmp1_; -#line 120 "/home/jens/Source/shotwell/src/core/DataObject.vala" - return; -#line 564 "DataObject.c" - } -#line 122 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp2_ = self->priv->member_of; -#line 122 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp3_ = data_collection_get_property (_tmp2_, name); -#line 122 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _result_ = _tmp3_; -#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp5_ = _result_; -#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala" - if (_tmp5_ != NULL) { -#line 576 "DataObject.c" - GValue* _tmp6_; -#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp6_ = _result_; -#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp4_ = _tmp6_; -#line 582 "DataObject.c" - } else { -#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp4_ = def; -#line 586 "DataObject.c" - } -#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala" - if (G_IS_VALUE (_tmp4_)) { -#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_value_init (&_tmp7_, G_VALUE_TYPE (_tmp4_)); -#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_value_copy (_tmp4_, &_tmp7_); -#line 594 "DataObject.c" - } else { -#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp7_ = *_tmp4_; -#line 598 "DataObject.c" - } -#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala" - *result = _tmp7_; -#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala" - __vala_GValue_free0 (_result_); -#line 124 "/home/jens/Source/shotwell/src/core/DataObject.vala" - return; -#line 606 "DataObject.c" -} - - -void -data_object_set_collection_property (DataObject* self, - const gchar* name, - GValue* val, - ValueEqualFunc value_equals, - void* value_equals_target) -{ - DataCollection* _tmp0_; -#line 127 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (IS_DATA_OBJECT (self)); -#line 127 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (name != NULL); -#line 127 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (val != NULL); -#line 128 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp0_ = self->priv->member_of; -#line 128 "/home/jens/Source/shotwell/src/core/DataObject.vala" - if (_tmp0_ != NULL) { -#line 628 "DataObject.c" - DataCollection* _tmp1_; - GValue _tmp2_; -#line 129 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp1_ = self->priv->member_of; -#line 129 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp2_ = *val; -#line 129 "/home/jens/Source/shotwell/src/core/DataObject.vala" - data_collection_set_property (_tmp1_, name, &_tmp2_, value_equals, value_equals_target); -#line 637 "DataObject.c" - } -} - - -void -data_object_clear_collection_property (DataObject* self, - const gchar* name) -{ - DataCollection* _tmp0_; -#line 132 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (IS_DATA_OBJECT (self)); -#line 132 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_return_if_fail (name != NULL); -#line 133 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp0_ = self->priv->member_of; -#line 133 "/home/jens/Source/shotwell/src/core/DataObject.vala" - if (_tmp0_ != NULL) { -#line 655 "DataObject.c" - DataCollection* _tmp1_; -#line 134 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _tmp1_ = self->priv->member_of; -#line 134 "/home/jens/Source/shotwell/src/core/DataObject.vala" - data_collection_clear_property (_tmp1_, name); -#line 661 "DataObject.c" - } -} - - -static void -data_object_class_init (DataObjectClass * klass) -{ -#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala" - data_object_parent_class = g_type_class_peek_parent (klass); -#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala" - g_type_class_add_private (klass, sizeof (DataObjectPrivate)); -#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala" - ((DataObjectClass *) klass)->notify_altered = (void (*) (DataObject *, Alteration*)) data_object_real_notify_altered; -#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala" - ((DataObjectClass *) klass)->notify_membership_changed = (void (*) (DataObject *, DataCollection*)) data_object_real_notify_membership_changed; -#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala" - ((DataObjectClass *) klass)->notify_collection_property_set = (void (*) (DataObject *, const gchar*, GValue*, GValue*)) data_object_real_notify_collection_property_set; -#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala" - ((DataObjectClass *) klass)->notify_collection_property_cleared = (void (*) (DataObject *, const gchar*)) data_object_real_notify_collection_property_cleared; -#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala" - ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) data_object_real_get_name; -#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala" - ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) data_object_real_to_string; -#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala" - G_OBJECT_CLASS (klass)->finalize = data_object_finalize; -#line 687 "DataObject.c" -} - - -static void -data_object_instance_init (DataObject * self) -{ -#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala" - self->priv = DATA_OBJECT_GET_PRIVATE (self); -#line 32 "/home/jens/Source/shotwell/src/core/DataObject.vala" - self->priv->object_id = DATA_OBJECT_INVALID_OBJECT_ID; -#line 33 "/home/jens/Source/shotwell/src/core/DataObject.vala" - self->priv->member_of = NULL; -#line 34 "/home/jens/Source/shotwell/src/core/DataObject.vala" - self->priv->ordinal = DATA_COLLECTION_INVALID_OBJECT_ORDINAL; -#line 702 "DataObject.c" -} - - -static void -data_object_finalize (GObject * obj) -{ - DataObject * self; -#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DATA_OBJECT, DataObject); -#line 33 "/home/jens/Source/shotwell/src/core/DataObject.vala" - _data_collection_unref0 (self->priv->member_of); -#line 21 "/home/jens/Source/shotwell/src/core/DataObject.vala" - G_OBJECT_CLASS (data_object_parent_class)->finalize (obj); -#line 716 "DataObject.c" -} - - -GType -data_object_get_type (void) -{ - static volatile gsize data_object_type_id__volatile = 0; - if (g_once_init_enter (&data_object_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DataObjectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_object_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataObject), 0, (GInstanceInitFunc) data_object_instance_init, NULL }; - GType data_object_type_id; - data_object_type_id = g_type_register_static (G_TYPE_OBJECT, "DataObject", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&data_object_type_id__volatile, data_object_type_id); - } - return data_object_type_id__volatile; -} - - - diff --git a/src/core/DataSet.c b/src/core/DataSet.c deleted file mode 100644 index 367fefc..0000000 --- a/src/core/DataSet.c +++ /dev/null @@ -1,1195 +0,0 @@ -/* DataSet.c generated by valac 0.40.4, the Vala compiler - * generated from DataSet.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/**/ -/* DataSet*/ -/**/ -/* A DataSet is a collection class used for internal implementations of DataCollection*/ -/* and its children. It may be of use to other classes, however.*/ -/**/ -/* The general purpose of DataSet is to provide low-cost implementations of various collection*/ -/* operations at a cost of internally maintaining its objects in more than one simple collection.*/ -/* contains(), for example, can return a result with hash-table performance while notions of*/ -/* ordering are maintained by a SortedList. The cost is in adding and removing objects (in general,*/ -/* there are others).*/ -/**/ -/* Because this class has no signalling mechanisms and does not manipulate DataObjects in ways*/ -/* they expect to be manipulated (these features are performed by DataCollection), it's probably*/ -/* best not to use this class. Even in cases of building a list of DataObjects for some quick*/ -/* operation is probably best done by a Gee.ArrayList.*/ -/**/ -/* ComparatorPredicate is used to determine if a re-sort operation is necessary; it has no*/ -/* effect on adding a DataObject to a DataSet in sorted order.*/ - - -#include -#include -#include -#include - - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_DATA_SET (data_set_get_type ()) -#define DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SET, DataSet)) -#define DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SET, DataSetClass)) -#define IS_DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SET)) -#define IS_DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SET)) -#define DATA_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SET, DataSetClass)) - -typedef struct _DataSet DataSet; -typedef struct _DataSetClass DataSetClass; -typedef struct _DataSetPrivate DataSetPrivate; - -#define TYPE_SORTED_LIST (sorted_list_get_type ()) -#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList)) -#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass)) -#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST)) -#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST)) -#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass)) - -typedef struct _SortedList SortedList; -typedef struct _SortedListClass SortedListClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _data_set_unref0(var) ((var == NULL) ? NULL : (var = (data_set_unref (var), NULL))) -typedef struct _ParamSpecDataSet ParamSpecDataSet; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); -struct _DataSet { - GTypeInstance parent_instance; - volatile int ref_count; - DataSetPrivate * priv; -}; - -struct _DataSetClass { - GTypeClass parent_class; - void (*finalize) (DataSet *self); -}; - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -struct _DataSetPrivate { - SortedList* list; - GeeHashSet* hash_set; - Comparator user_comparator; - gpointer user_comparator_target; - ComparatorPredicate comparator_predicate; - gpointer comparator_predicate_target; -}; - -struct _ParamSpecDataSet { - GParamSpec parent_instance; -}; - - -static gpointer data_set_parent_class = NULL; - -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer data_set_ref (gpointer instance); -void data_set_unref (gpointer instance); -GParamSpec* param_spec_data_set (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_set (GValue* value, - gpointer v_object); -void value_take_data_set (GValue* value, - gpointer v_object); -gpointer value_get_data_set (const GValue* value); -GType data_set_get_type (void) G_GNUC_CONST; -GType sorted_list_get_type (void) G_GNUC_CONST; -#define DATA_SET_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DATA_SET, DataSetPrivate)) -SortedList* sorted_list_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - Comparator cmp, - void* cmp_target); -SortedList* sorted_list_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - Comparator cmp, - void* cmp_target); -DataSet* data_set_new (void); -DataSet* data_set_construct (GType object_type); -void data_set_reset_comparator (DataSet* self); -static gint64 data_set_order_added_comparator (DataSet* self, - void* a, - void* b); -gint64 data_object_internal_get_ordinal (DataObject* self); -static gboolean data_set_order_added_predicate (DataSet* self, - DataObject* object, - Alteration* alteration); -static gint64 data_set_comparator_wrapper (DataSet* self, - void* a, - void* b); -gboolean data_set_contains (DataSet* self, - DataObject* object); -gint data_set_get_count (DataSet* self); -gint sorted_list_get_count (SortedList* self); -static gboolean _data_set_order_added_predicate_comparator_predicate (DataObject* object, - Alteration* alteration, - gpointer self); -void sorted_list_resort (SortedList* self, - Comparator new_cmp, - void* new_cmp_target); -static gint64 _data_set_order_added_comparator_comparator (void* a, - void* b, - gpointer self); -Comparator data_set_get_comparator (DataSet* self, - void** result_target); -ComparatorPredicate data_set_get_comparator_predicate (DataSet* self, - void** result_target); -void data_set_set_comparator (DataSet* self, - Comparator user_comparator, - void* user_comparator_target, - ComparatorPredicate comparator_predicate, - void* comparator_predicate_target); -static gint64 _data_set_comparator_wrapper_comparator (void* a, - void* b, - gpointer self); -GeeList* data_set_get_all (DataSet* self); -GeeList* sorted_list_get_read_only_view_as_list (SortedList* self); -DataSet* data_set_copy (DataSet* self); -SortedList* sorted_list_copy (SortedList* self); -DataObject* data_set_get_at (DataSet* self, - gint index); -gpointer sorted_list_get_at (SortedList* self, - gint index); -gint data_set_index_of (DataSet* self, - DataObject* object); -gint sorted_list_locate (SortedList* self, - gconstpointer search, - gboolean altered, - GEqualFunc equal_func); -gboolean data_set_add (DataSet* self, - DataObject* object); -gboolean data_set_add_many (DataSet* self, - GeeCollection* objects); -gboolean data_set_remove (DataSet* self, - DataObject* object); -gboolean data_set_remove_many (DataSet* self, - GeeCollection* objects); -gboolean data_set_resort_object (DataSet* self, - DataObject* object, - Alteration* alteration); -gboolean sorted_list_resort_item (SortedList* self, - gconstpointer item); -static void data_set_finalize (DataSet * obj); - - -DataSet* -data_set_construct (GType object_type) -{ - DataSet* self = NULL; -#line 35 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self = (DataSet*) g_type_create_instance (object_type); -#line 36 "/home/jens/Source/shotwell/src/core/DataSet.vala" - data_set_reset_comparator (self); -#line 35 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return self; -#line 232 "DataSet.c" -} - - -DataSet* -data_set_new (void) -{ -#line 35 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return data_set_construct (TYPE_DATA_SET); -#line 241 "DataSet.c" -} - - -static gint64 -data_set_order_added_comparator (DataSet* self, - void* a, - void* b) -{ - gint64 result = 0LL; -#line 39 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_SET (self), 0LL); -#line 40 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = data_object_internal_get_ordinal (G_TYPE_CHECK_INSTANCE_CAST ((DataObject*) a, TYPE_DATA_OBJECT, DataObject)) - data_object_internal_get_ordinal (G_TYPE_CHECK_INSTANCE_CAST ((DataObject*) b, TYPE_DATA_OBJECT, DataObject)); -#line 40 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 257 "DataSet.c" -} - - -static gboolean -data_set_order_added_predicate (DataSet* self, - DataObject* object, - Alteration* alteration) -{ - gboolean result = FALSE; -#line 43 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_SET (self), FALSE); -#line 43 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 43 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_ALTERATION (alteration), FALSE); -#line 45 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = FALSE; -#line 45 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 277 "DataSet.c" -} - - -static gint64 -data_set_comparator_wrapper (DataSet* self, - void* a, - void* b) -{ - gint64 result = 0LL; - gint64 _result_ = 0LL; - Comparator _tmp0_; - void* _tmp0__target; - gint64 _tmp2_; - gint64 _tmp3_; -#line 48 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_SET (self), 0LL); -#line 49 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (a == b) { -#line 50 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = (gint64) 0; -#line 50 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 300 "DataSet.c" - } -#line 54 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _result_ = (gint64) 0; -#line 56 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = self->priv->user_comparator; -#line 56 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0__target = self->priv->user_comparator_target; -#line 56 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (_tmp0_ != NULL) { -#line 310 "DataSet.c" - Comparator _tmp1_; - void* _tmp1__target; -#line 57 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp1_ = self->priv->user_comparator; -#line 57 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp1__target = self->priv->user_comparator_target; -#line 57 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _result_ = _tmp1_ (a, b, _tmp1__target); -#line 319 "DataSet.c" - } -#line 59 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp2_ = _result_; -#line 59 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (_tmp2_ == ((gint64) 0)) { -#line 60 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _result_ = data_set_order_added_comparator (self, a, b); -#line 327 "DataSet.c" - } -#line 62 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp3_ = _result_; -#line 62 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _vala_assert (_tmp3_ != ((gint64) 0), "result != 0"); -#line 64 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = _result_; -#line 64 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 337 "DataSet.c" -} - - -gboolean -data_set_contains (DataSet* self, - DataObject* object) -{ - gboolean result = FALSE; - GeeHashSet* _tmp0_; -#line 67 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_SET (self), FALSE); -#line 67 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 68 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = self->priv->hash_set; -#line 68 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object); -#line 68 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 357 "DataSet.c" -} - - -inline gint -data_set_get_count (DataSet* self) -{ - gint result = 0; - SortedList* _tmp0_; -#line 71 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_SET (self), 0); -#line 72 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = self->priv->list; -#line 72 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = sorted_list_get_count (_tmp0_); -#line 72 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 374 "DataSet.c" -} - - -static gboolean -_data_set_order_added_predicate_comparator_predicate (DataObject* object, - Alteration* alteration, - gpointer self) -{ - gboolean result; - result = data_set_order_added_predicate ((DataSet*) self, object, alteration); -#line 77 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 387 "DataSet.c" -} - - -static gint64 -_data_set_order_added_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = data_set_order_added_comparator ((DataSet*) self, a, b); -#line 78 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 400 "DataSet.c" -} - - -void -data_set_reset_comparator (DataSet* self) -{ - SortedList* _tmp0_; -#line 75 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_if_fail (IS_DATA_SET (self)); -#line 76 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self->priv->user_comparator = NULL; -#line 76 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self->priv->user_comparator_target = NULL; -#line 77 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self->priv->comparator_predicate = _data_set_order_added_predicate_comparator_predicate; -#line 77 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self->priv->comparator_predicate_target = self; -#line 78 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = self->priv->list; -#line 78 "/home/jens/Source/shotwell/src/core/DataSet.vala" - sorted_list_resort (_tmp0_, _data_set_order_added_comparator_comparator, self); -#line 422 "DataSet.c" -} - - -Comparator -data_set_get_comparator (DataSet* self, - void** result_target) -{ - Comparator result = NULL; - Comparator _tmp0_; - void* _tmp0__target; - Comparator _tmp1_; - void* _tmp1__target; -#line 81 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_SET (self), NULL); -#line 82 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = self->priv->user_comparator; -#line 82 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0__target = self->priv->user_comparator_target; -#line 82 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp1_ = _tmp0_; -#line 82 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp1__target = _tmp0__target; -#line 82 "/home/jens/Source/shotwell/src/core/DataSet.vala" - *result_target = _tmp1__target; -#line 82 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = _tmp1_; -#line 82 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 451 "DataSet.c" -} - - -ComparatorPredicate -data_set_get_comparator_predicate (DataSet* self, - void** result_target) -{ - ComparatorPredicate result = NULL; - ComparatorPredicate _tmp0_; - void* _tmp0__target; - ComparatorPredicate _tmp1_; - void* _tmp1__target; -#line 85 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_SET (self), NULL); -#line 86 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = self->priv->comparator_predicate; -#line 86 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0__target = self->priv->comparator_predicate_target; -#line 86 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp1_ = _tmp0_; -#line 86 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp1__target = _tmp0__target; -#line 86 "/home/jens/Source/shotwell/src/core/DataSet.vala" - *result_target = _tmp1__target; -#line 86 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = _tmp1_; -#line 86 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 480 "DataSet.c" -} - - -static gint64 -_data_set_comparator_wrapper_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = data_set_comparator_wrapper ((DataSet*) self, a, b); -#line 92 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 493 "DataSet.c" -} - - -void -data_set_set_comparator (DataSet* self, - Comparator user_comparator, - void* user_comparator_target, - ComparatorPredicate comparator_predicate, - void* comparator_predicate_target) -{ - SortedList* _tmp0_; -#line 89 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_if_fail (IS_DATA_SET (self)); -#line 90 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self->priv->user_comparator = user_comparator; -#line 90 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self->priv->user_comparator_target = user_comparator_target; -#line 91 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self->priv->comparator_predicate = comparator_predicate; -#line 91 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self->priv->comparator_predicate_target = comparator_predicate_target; -#line 92 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = self->priv->list; -#line 92 "/home/jens/Source/shotwell/src/core/DataSet.vala" - sorted_list_resort (_tmp0_, _data_set_comparator_wrapper_comparator, self); -#line 519 "DataSet.c" -} - - -GeeList* -data_set_get_all (DataSet* self) -{ - GeeList* result = NULL; - SortedList* _tmp0_; - GeeList* _tmp1_; - GeeList* _tmp2_; -#line 95 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_SET (self), NULL); -#line 96 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = self->priv->list; -#line 96 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp1_ = sorted_list_get_read_only_view_as_list (_tmp0_); -#line 96 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp2_ = _tmp1_; -#line 96 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = _tmp2_; -#line 96 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 542 "DataSet.c" -} - - -DataSet* -data_set_copy (DataSet* self) -{ - DataSet* result = NULL; - DataSet* clone = NULL; - DataSet* _tmp0_; - SortedList* _tmp1_; - SortedList* _tmp2_; - GeeHashSet* _tmp3_; - GeeHashSet* _tmp4_; -#line 99 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_SET (self), NULL); -#line 100 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = data_set_new (); -#line 100 "/home/jens/Source/shotwell/src/core/DataSet.vala" - clone = _tmp0_; -#line 101 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp1_ = self->priv->list; -#line 101 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp2_ = sorted_list_copy (_tmp1_); -#line 101 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _g_object_unref0 (clone->priv->list); -#line 101 "/home/jens/Source/shotwell/src/core/DataSet.vala" - clone->priv->list = _tmp2_; -#line 102 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp3_ = clone->priv->hash_set; -#line 102 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp4_ = self->priv->hash_set; -#line 102 "/home/jens/Source/shotwell/src/core/DataSet.vala" - gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 104 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = clone; -#line 104 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 580 "DataSet.c" -} - - -DataObject* -data_set_get_at (DataSet* self, - gint index) -{ - DataObject* result = NULL; - SortedList* _tmp0_; - gpointer _tmp1_; -#line 107 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_SET (self), NULL); -#line 108 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = self->priv->list; -#line 108 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp1_ = sorted_list_get_at (_tmp0_, index); -#line 108 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = (DataObject*) _tmp1_; -#line 108 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 601 "DataSet.c" -} - - -gint -data_set_index_of (DataSet* self, - DataObject* object) -{ - gint result = 0; - SortedList* _tmp0_; - GEqualFunc _tmp1_; -#line 111 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_SET (self), 0); -#line 111 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), 0); -#line 112 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = self->priv->list; -#line 112 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp1_ = g_direct_equal; -#line 112 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = sorted_list_locate (_tmp0_, object, FALSE, _tmp1_); -#line 112 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 624 "DataSet.c" -} - - -gboolean -data_set_add (DataSet* self, - DataObject* object) -{ - gboolean result = FALSE; - SortedList* _tmp0_; - GeeHashSet* _tmp1_; -#line 116 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_SET (self), FALSE); -#line 116 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 117 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = self->priv->list; -#line 117 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (!gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), object)) { -#line 118 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = FALSE; -#line 118 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 647 "DataSet.c" - } -#line 120 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp1_ = self->priv->hash_set; -#line 120 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (!gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object)) { -#line 653 "DataSet.c" - SortedList* _tmp2_; -#line 122 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp2_ = self->priv->list; -#line 122 "/home/jens/Source/shotwell/src/core/DataSet.vala" - gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), object); -#line 124 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = FALSE; -#line 124 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 663 "DataSet.c" - } -#line 127 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = TRUE; -#line 127 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 669 "DataSet.c" -} - - -gboolean -data_set_add_many (DataSet* self, - GeeCollection* objects) -{ - gboolean result = FALSE; - gint count = 0; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - SortedList* _tmp3_; - GeeHashSet* _tmp4_; -#line 131 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_SET (self), FALSE); -#line 131 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (objects), FALSE); -#line 132 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = gee_collection_get_size (objects); -#line 132 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp1_ = _tmp0_; -#line 132 "/home/jens/Source/shotwell/src/core/DataSet.vala" - count = _tmp1_; -#line 133 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp2_ = count; -#line 133 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (_tmp2_ == 0) { -#line 134 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = TRUE; -#line 134 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 702 "DataSet.c" - } -#line 136 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp3_ = self->priv->list; -#line 136 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (!gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection), objects)) { -#line 137 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = FALSE; -#line 137 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 712 "DataSet.c" - } -#line 139 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp4_ = self->priv->hash_set; -#line 139 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (!gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection), objects)) { -#line 718 "DataSet.c" - SortedList* _tmp5_; -#line 141 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp5_ = self->priv->list; -#line 141 "/home/jens/Source/shotwell/src/core/DataSet.vala" - gee_collection_remove_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), objects); -#line 143 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = FALSE; -#line 143 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 728 "DataSet.c" - } -#line 146 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = TRUE; -#line 146 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 734 "DataSet.c" -} - - -gboolean -data_set_remove (DataSet* self, - DataObject* object) -{ - gboolean result = FALSE; - gboolean success = FALSE; - SortedList* _tmp0_; - GeeHashSet* _tmp1_; -#line 149 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_SET (self), FALSE); -#line 149 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 150 "/home/jens/Source/shotwell/src/core/DataSet.vala" - success = TRUE; -#line 152 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = self->priv->list; -#line 152 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (!gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), object)) { -#line 153 "/home/jens/Source/shotwell/src/core/DataSet.vala" - success = FALSE; -#line 758 "DataSet.c" - } -#line 155 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp1_ = self->priv->hash_set; -#line 155 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (!gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), object)) { -#line 156 "/home/jens/Source/shotwell/src/core/DataSet.vala" - success = FALSE; -#line 766 "DataSet.c" - } -#line 158 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = success; -#line 158 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 772 "DataSet.c" -} - - -gboolean -data_set_remove_many (DataSet* self, - GeeCollection* objects) -{ - gboolean result = FALSE; - gboolean success = FALSE; - SortedList* _tmp0_; - GeeHashSet* _tmp1_; -#line 161 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_SET (self), FALSE); -#line 161 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (objects), FALSE); -#line 162 "/home/jens/Source/shotwell/src/core/DataSet.vala" - success = TRUE; -#line 164 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = self->priv->list; -#line 164 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (!gee_collection_remove_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), objects)) { -#line 165 "/home/jens/Source/shotwell/src/core/DataSet.vala" - success = FALSE; -#line 796 "DataSet.c" - } -#line 167 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp1_ = self->priv->hash_set; -#line 167 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (!gee_collection_remove_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection), objects)) { -#line 168 "/home/jens/Source/shotwell/src/core/DataSet.vala" - success = FALSE; -#line 804 "DataSet.c" - } -#line 170 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = success; -#line 170 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 810 "DataSet.c" -} - - -gboolean -data_set_resort_object (DataSet* self, - DataObject* object, - Alteration* alteration) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - ComparatorPredicate _tmp2_; - void* _tmp2__target; - SortedList* _tmp4_; -#line 174 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_SET (self), FALSE); -#line 174 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 174 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail ((alteration == NULL) || IS_ALTERATION (alteration), FALSE); -#line 175 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp2_ = self->priv->comparator_predicate; -#line 175 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp2__target = self->priv->comparator_predicate_target; -#line 175 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (_tmp2_ != NULL) { -#line 175 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp1_ = alteration != NULL; -#line 839 "DataSet.c" - } else { -#line 175 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp1_ = FALSE; -#line 843 "DataSet.c" - } -#line 175 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (_tmp1_) { -#line 847 "DataSet.c" - ComparatorPredicate _tmp3_; - void* _tmp3__target; -#line 176 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp3_ = self->priv->comparator_predicate; -#line 176 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp3__target = self->priv->comparator_predicate_target; -#line 176 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = !_tmp3_ (object, alteration, _tmp3__target); -#line 856 "DataSet.c" - } else { -#line 175 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = FALSE; -#line 860 "DataSet.c" - } -#line 175 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (_tmp0_) { -#line 177 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = FALSE; -#line 177 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 868 "DataSet.c" - } -#line 180 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp4_ = self->priv->list; -#line 180 "/home/jens/Source/shotwell/src/core/DataSet.vala" - result = sorted_list_resort_item (_tmp4_, object); -#line 180 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return result; -#line 876 "DataSet.c" -} - - -static void -value_data_set_init (GValue* value) -{ -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - value->data[0].v_pointer = NULL; -#line 885 "DataSet.c" -} - - -static void -value_data_set_free_value (GValue* value) -{ -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (value->data[0].v_pointer) { -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - data_set_unref (value->data[0].v_pointer); -#line 896 "DataSet.c" - } -} - - -static void -value_data_set_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (src_value->data[0].v_pointer) { -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - dest_value->data[0].v_pointer = data_set_ref (src_value->data[0].v_pointer); -#line 909 "DataSet.c" - } else { -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - dest_value->data[0].v_pointer = NULL; -#line 913 "DataSet.c" - } -} - - -static gpointer -value_data_set_peek_pointer (const GValue* value) -{ -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return value->data[0].v_pointer; -#line 923 "DataSet.c" -} - - -static gchar* -value_data_set_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (collect_values[0].v_pointer) { -#line 935 "DataSet.c" - DataSet * object; - object = collect_values[0].v_pointer; -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (object->parent_instance.g_class == NULL) { -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 942 "DataSet.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 946 "DataSet.c" - } -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - value->data[0].v_pointer = data_set_ref (object); -#line 950 "DataSet.c" - } else { -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - value->data[0].v_pointer = NULL; -#line 954 "DataSet.c" - } -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return NULL; -#line 958 "DataSet.c" -} - - -static gchar* -value_data_set_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - DataSet ** object_p; - object_p = collect_values[0].v_pointer; -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (!object_p) { -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 974 "DataSet.c" - } -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (!value->data[0].v_pointer) { -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - *object_p = NULL; -#line 980 "DataSet.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - *object_p = value->data[0].v_pointer; -#line 984 "DataSet.c" - } else { -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - *object_p = data_set_ref (value->data[0].v_pointer); -#line 988 "DataSet.c" - } -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return NULL; -#line 992 "DataSet.c" -} - - -GParamSpec* -param_spec_data_set (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecDataSet* spec; -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_DATA_SET), NULL); -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return G_PARAM_SPEC (spec); -#line 1012 "DataSet.c" -} - - -gpointer -value_get_data_set (const GValue* value) -{ -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATA_SET), NULL); -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return value->data[0].v_pointer; -#line 1023 "DataSet.c" -} - - -void -value_set_data_set (GValue* value, - gpointer v_object) -{ - DataSet * old; -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATA_SET)); -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - old = value->data[0].v_pointer; -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (v_object) { -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DATA_SET)); -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - value->data[0].v_pointer = v_object; -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - data_set_ref (value->data[0].v_pointer); -#line 1046 "DataSet.c" - } else { -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - value->data[0].v_pointer = NULL; -#line 1050 "DataSet.c" - } -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (old) { -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - data_set_unref (old); -#line 1056 "DataSet.c" - } -} - - -void -value_take_data_set (GValue* value, - gpointer v_object) -{ - DataSet * old; -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATA_SET)); -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - old = value->data[0].v_pointer; -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (v_object) { -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DATA_SET)); -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - value->data[0].v_pointer = v_object; -#line 1078 "DataSet.c" - } else { -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - value->data[0].v_pointer = NULL; -#line 1082 "DataSet.c" - } -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (old) { -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - data_set_unref (old); -#line 1088 "DataSet.c" - } -} - - -static void -data_set_class_init (DataSetClass * klass) -{ -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - data_set_parent_class = g_type_class_peek_parent (klass); -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - ((DataSetClass *) klass)->finalize = data_set_finalize; -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_type_class_add_private (klass, sizeof (DataSetPrivate)); -#line 1102 "DataSet.c" -} - - -static void -data_set_instance_init (DataSet * self) -{ - SortedList* _tmp0_; - GeeHashSet* _tmp1_; -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self->priv = DATA_SET_GET_PRIVATE (self); -#line 30 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp0_ = sorted_list_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL); -#line 30 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self->priv->list = _tmp0_; -#line 31 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _tmp1_ = gee_hash_set_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 31 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self->priv->hash_set = _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self->priv->user_comparator = NULL; -#line 32 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self->priv->user_comparator_target = self; -#line 33 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self->priv->comparator_predicate = NULL; -#line 33 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self->priv->comparator_predicate_target = self; -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self->ref_count = 1; -#line 1131 "DataSet.c" -} - - -static void -data_set_finalize (DataSet * obj) -{ - DataSet * self; -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DATA_SET, DataSet); -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_signal_handlers_destroy (self); -#line 30 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _g_object_unref0 (self->priv->list); -#line 31 "/home/jens/Source/shotwell/src/core/DataSet.vala" - _g_object_unref0 (self->priv->hash_set); -#line 1147 "DataSet.c" -} - - -GType -data_set_get_type (void) -{ - static volatile gsize data_set_type_id__volatile = 0; - if (g_once_init_enter (&data_set_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_data_set_init, value_data_set_free_value, value_data_set_copy_value, value_data_set_peek_pointer, "p", value_data_set_collect_value, "p", value_data_set_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (DataSetClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_set_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataSet), 0, (GInstanceInitFunc) data_set_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType data_set_type_id; - data_set_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DataSet", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&data_set_type_id__volatile, data_set_type_id); - } - return data_set_type_id__volatile; -} - - -gpointer -data_set_ref (gpointer instance) -{ - DataSet * self; - self = instance; -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_atomic_int_inc (&self->ref_count); -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - return instance; -#line 1176 "DataSet.c" -} - - -void -data_set_unref (gpointer instance) -{ - DataSet * self; - self = instance; -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - DATA_SET_GET_CLASS (self)->finalize (self); -#line 29 "/home/jens/Source/shotwell/src/core/DataSet.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1191 "DataSet.c" - } -} - - - diff --git a/src/core/DataSource.c b/src/core/DataSource.c deleted file mode 100644 index 3d7ecf5..0000000 --- a/src/core/DataSource.c +++ /dev/null @@ -1,5127 +0,0 @@ -/* DataSource.c generated by valac 0.40.4, the Vala compiler - * generated from DataSource.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/**/ -/* DataSource*/ -/* */ -/* A DataSource is an object that is unique throughout the system. DataSources*/ -/* commonly have external and/or persistent representations, hence they have a notion of being*/ -/* destroyed (versus removed or freed). Several DataViews may exist that reference a single*/ -/* DataSource. Note that DataSources MUST be destroyed (rather than simply removed) from their*/ -/* SourceCollection, and that they MUST be destroyed via their SourceCollection (rather than*/ -/* calling DataSource.destroy() directly.)*/ -/**/ -/* Destroying a DataSource indicates it should remove all secondary and tertiary structures (such*/ -/* as thumbnails) and any records pointing to its backing store. SourceCollection.destroy_marked()*/ -/* has a parameter indicating if the backing should be destroyed as well; that is when*/ -/* internal_delete_backing() is called.*/ -/**/ -/* There are no provisions (currently) for a DataSource to be removed from its SourceCollection*/ -/* without destroying its backing and/or secondary and tertiary structures. DataSources are intended*/ -/* to go to the grave with their SourceCollection otherwise. If a need arises for a DataSource to*/ -/* be peaceably removed from its SourceCollection, code will need to be written. SourceSnapshots*/ -/* may be one solution to this problem.*/ -/**/ -/* Some DataSources cannot be reconstituted (for example, if its backing file is deleted). In*/ -/* that case, dehydrate() should return null. When reconstituted, it is the responsibility of the*/ -/* implementation to ensure an exact clone is produced, minus any details that are not relevant or*/ -/* exposed (such as a database ID).*/ -/**/ -/* If other DataSources refer to this DataSource, their state will *not* be */ -/* saved/restored. This must be achieved via other means. However, implementations *should**/ -/* track when changes to external state would break the proxy and call notify_broken();*/ -/**/ - - -#include -#include -#include -#include -#include -#include - - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; -typedef struct _DataSourcePrivate DataSourcePrivate; - -#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ()) -#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)) -#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) -#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK)) -#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK)) -#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) - -typedef struct _SourceHoldingTank SourceHoldingTank; -typedef struct _SourceHoldingTankClass SourceHoldingTankClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ()) -#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot)) -#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) -#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT)) -#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT)) -#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) - -typedef struct _SourceSnapshot SourceSnapshot; -typedef struct _SourceSnapshotClass SourceSnapshotClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; -enum { - DATA_SOURCE_0_PROPERTY, - DATA_SOURCE_NUM_PROPERTIES -}; -static GParamSpec* data_source_properties[DATA_SOURCE_NUM_PROPERTIES]; -#define _source_holding_tank_unref0(var) ((var == NULL) ? NULL : (var = (source_holding_tank_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ()) -#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink)) -#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) -#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK)) -#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK)) -#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) - -typedef struct _SourceBacklink SourceBacklink; -typedef struct _SourceBacklinkClass SourceBacklinkClass; -#define _source_backlink_unref0(var) ((var == NULL) ? NULL : (var = (source_backlink_unref (var), NULL))) -#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -enum { - DATA_SOURCE_UNLINKED_SIGNAL, - DATA_SOURCE_RELINKED_SIGNAL, - DATA_SOURCE_DESTROYED_SIGNAL, - DATA_SOURCE_NUM_SIGNALS -}; -static guint data_source_signals[DATA_SOURCE_NUM_SIGNALS] = {0}; -typedef struct _SourceSnapshotPrivate SourceSnapshotPrivate; -typedef struct _ParamSpecSourceSnapshot ParamSpecSourceSnapshot; -enum { - SOURCE_SNAPSHOT_BROKEN_SIGNAL, - SOURCE_SNAPSHOT_NUM_SIGNALS -}; -static guint source_snapshot_signals[SOURCE_SNAPSHOT_NUM_SIGNALS] = {0}; -typedef struct _SourceBacklinkPrivate SourceBacklinkPrivate; -typedef struct _ParamSpecSourceBacklink ParamSpecSourceBacklink; - -#define TYPE_SOURCE_PROXY (source_proxy_get_type ()) -#define SOURCE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_PROXY, SourceProxy)) -#define SOURCE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_PROXY, SourceProxyClass)) -#define IS_SOURCE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_PROXY)) -#define IS_SOURCE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_PROXY)) -#define SOURCE_PROXY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_PROXY, SourceProxyClass)) - -typedef struct _SourceProxy SourceProxy; -typedef struct _SourceProxyClass SourceProxyClass; -typedef struct _SourceProxyPrivate SourceProxyPrivate; -#define _source_snapshot_unref0(var) ((var == NULL) ? NULL : (var = (source_snapshot_unref (var), NULL))) -typedef struct _ParamSpecSourceProxy ParamSpecSourceProxy; -enum { - SOURCE_PROXY_RECONSTITUTED_SIGNAL, - SOURCE_PROXY_DEHYDRATED_SIGNAL, - SOURCE_PROXY_BROKEN_SIGNAL, - SOURCE_PROXY_NUM_SIGNALS -}; -static guint source_proxy_signals[SOURCE_PROXY_NUM_SIGNALS] = {0}; - -#define TYPE_PROXYABLE (proxyable_get_type ()) -#define PROXYABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROXYABLE, Proxyable)) -#define IS_PROXYABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROXYABLE)) -#define PROXYABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_PROXYABLE, ProxyableIface)) - -typedef struct _Proxyable Proxyable; -typedef struct _ProxyableIface ProxyableIface; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataSource { - DataObject parent_instance; - DataSourcePrivate * priv; -}; - -struct _DataSourceClass { - DataObjectClass parent_class; - void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank); - void (*notify_unlinking) (DataSource* self, SourceCollection* collection); - void (*notify_unlinked) (DataSource* self); - void (*notify_relinking) (DataSource* self, SourceCollection* collection); - void (*notify_relinked) (DataSource* self); - gchar* (*get_typename) (DataSource* self); - gint64 (*get_instance_id) (DataSource* self); - gchar* (*get_source_id) (DataSource* self); - void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated); - SourceSnapshot* (*save_snapshot) (DataSource* self); - gboolean (*internal_delete_backing) (DataSource* self, GError** error); - gboolean (*equals) (DataSource* self, DataSource* source); - void (*destroy) (DataSource* self); - void (*unlinked) (DataSource* self, SourceCollection* sources); - void (*relinked) (DataSource* self, SourceCollection* sources); - void (*destroyed) (DataSource* self); -}; - -struct _DataSourcePrivate { - DataView** subscribers; - gint subscribers_length1; - gint _subscribers_size_; - SourceHoldingTank* holding_tank; - SourceCollection* unlinked_from_collection; - GeeHashMap* backlinks; - gboolean in_contact; - gboolean marked_for_destroy; - gboolean is_destroyed; -}; - -typedef void (*DataSourceContactSubscriber) (DataView* view, void* user_data); -typedef void (*DataSourceContactSubscriberAlteration) (DataView* view, Alteration* alteration, void* user_data); -struct _SourceSnapshot { - GTypeInstance parent_instance; - volatile int ref_count; - SourceSnapshotPrivate * priv; -}; - -struct _SourceSnapshotClass { - GTypeClass parent_class; - void (*finalize) (SourceSnapshot *self); - void (*notify_broken) (SourceSnapshot* self); - void (*broken) (SourceSnapshot* self); -}; - -struct _SourceSnapshotPrivate { - gboolean snapshot_broken; -}; - -struct _ParamSpecSourceSnapshot { - GParamSpec parent_instance; -}; - -struct _SourceBacklink { - GTypeInstance parent_instance; - volatile int ref_count; - SourceBacklinkPrivate * priv; -}; - -struct _SourceBacklinkClass { - GTypeClass parent_class; - void (*finalize) (SourceBacklink *self); -}; - -struct _SourceBacklinkPrivate { - gchar* _name; - gchar* _value; -}; - -struct _ParamSpecSourceBacklink { - GParamSpec parent_instance; -}; - -struct _SourceProxy { - GTypeInstance parent_instance; - volatile int ref_count; - SourceProxyPrivate * priv; -}; - -struct _SourceProxyClass { - GTypeClass parent_class; - void (*finalize) (SourceProxy *self); - DataSource* (*reconstitute) (SourceProxy* self, gint64 object_id, SourceSnapshot* snapshot); - void (*notify_reconstituted) (SourceProxy* self, DataSource* source); - void (*notify_dehydrated) (SourceProxy* self); - void (*notify_broken) (SourceProxy* self); - void (*reconstituted) (SourceProxy* self, DataSource* source); - void (*dehydrated) (SourceProxy* self); - void (*broken) (SourceProxy* self); -}; - -struct _SourceProxyPrivate { - gint64 object_id; - gchar* source_string; - DataSource* source; - SourceSnapshot* snapshot; - SourceCollection* membership; -}; - -struct _ParamSpecSourceProxy { - GParamSpec parent_instance; -}; - -struct _ProxyableIface { - GTypeInterface parent_iface; - SourceProxy* (*get_proxy) (Proxyable* self); -}; - - -static gpointer data_source_parent_class = NULL; -static gpointer source_snapshot_parent_class = NULL; -static gpointer source_backlink_parent_class = NULL; -static gpointer source_proxy_parent_class = NULL; - -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -gpointer source_holding_tank_ref (gpointer instance); -void source_holding_tank_unref (gpointer instance); -GParamSpec* param_spec_source_holding_tank (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_holding_tank (GValue* value, - gpointer v_object); -void value_take_source_holding_tank (GValue* value, - gpointer v_object); -gpointer value_get_source_holding_tank (const GValue* value); -GType source_holding_tank_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -gpointer source_snapshot_ref (gpointer instance); -void source_snapshot_unref (gpointer instance); -GParamSpec* param_spec_source_snapshot (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_snapshot (GValue* value, - gpointer v_object); -void value_take_source_snapshot (GValue* value, - gpointer v_object); -gpointer value_get_source_snapshot (const GValue* value); -GType source_snapshot_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -#define DATA_SOURCE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DATA_SOURCE, DataSourcePrivate)) -DataSource* data_source_construct (GType object_type, - gint64 object_id); -DataObject* data_object_construct (GType object_type, - gint64 object_id); -static void data_source_real_notify_membership_changed (DataObject* base, - DataCollection* collection); -void data_source_notify_unlinked (DataSource* self); -void data_object_notify_membership_changed (DataObject* self, - DataCollection* collection); -void data_source_notify_held_in_tank (DataSource* self, - SourceHoldingTank* holding_tank); -static void data_source_real_notify_held_in_tank (DataSource* self, - SourceHoldingTank* holding_tank); -DataCollection* data_object_get_membership (DataObject* self); -static void data_source_real_notify_altered (DataObject* base, - Alteration* alteration); -void source_holding_tank_internal_notify_altered (SourceHoldingTank* self, - DataSource* source, - Alteration* alteration); -void data_source_contact_subscribers_alteration (DataSource* self, - Alteration* alteration); -void data_object_notify_altered (DataObject* self, - Alteration* alteration); -void data_source_notify_unlinking (DataSource* self, - SourceCollection* collection); -static void data_source_real_notify_unlinking (DataSource* self, - SourceCollection* collection); -static void data_source_real_notify_unlinked (DataSource* self); -void data_source_commit_backlinks (DataSource* self, - SourceCollection* sources, - const gchar* dehydrated); -static gchar* data_source_dehydrate_backlinks (DataSource* self); -void data_source_notify_relinking (DataSource* self, - SourceCollection* collection); -static void data_source_real_notify_relinking (DataSource* self, - SourceCollection* collection); -void data_source_notify_relinked (DataSource* self); -static void data_source_real_notify_relinked (DataSource* self); -gchar* data_source_get_typename (DataSource* self); -static gchar* data_source_real_get_typename (DataSource* self); -gint64 data_source_get_instance_id (DataSource* self); -static gint64 data_source_real_get_instance_id (DataSource* self); -gchar* data_source_get_source_id (DataSource* self); -static gchar* data_source_real_get_source_id (DataSource* self); -gpointer source_backlink_ref (gpointer instance); -void source_backlink_unref (gpointer instance); -GParamSpec* param_spec_source_backlink (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_backlink (GValue* value, - gpointer v_object); -void value_take_source_backlink (GValue* value, - gpointer v_object); -gpointer value_get_source_backlink (const GValue* value); -GType source_backlink_get_type (void) G_GNUC_CONST; -gboolean data_source_has_backlink (DataSource* self, - SourceBacklink* backlink); -const gchar* source_backlink_get_name (SourceBacklink* self); -const gchar* source_backlink_get_value (SourceBacklink* self); -GeeList* data_source_get_backlinks (DataSource* self, - const gchar* name); -SourceBacklink* source_backlink_new (const gchar* name, - const gchar* value); -SourceBacklink* source_backlink_construct (GType object_type, - const gchar* name, - const gchar* value); -void data_source_set_backlink (DataSource* self, - SourceBacklink* backlink); -void source_collection_internal_backlink_set (SourceCollection* self, - DataSource* source, - SourceBacklink* backlink); -gboolean data_source_remove_backlink (DataSource* self, - SourceBacklink* backlink); -void source_collection_internal_backlink_removed (SourceCollection* self, - DataSource* source, - SourceBacklink* backlink); -static void data_source_real_commit_backlinks (DataSource* self, - SourceCollection* sources, - const gchar* dehydrated); -gchar* data_object_to_string (DataObject* self); -gboolean is_string_empty (const gchar* s); -void data_source_rehydrate_backlinks (DataSource* self, - SourceCollection* unlinked_from, - const gchar* dehydrated); -SourceSnapshot* data_source_save_snapshot (DataSource* self); -static SourceSnapshot* data_source_real_save_snapshot (DataSource* self); -void data_source_internal_mark_for_destroy (DataSource* self); -gboolean data_source_internal_delete_backing (DataSource* self, - GError** error); -static gboolean data_source_real_internal_delete_backing (DataSource* self, - GError** error); -gboolean data_source_equals (DataSource* self, - DataSource* source); -static gboolean data_source_real_equals (DataSource* self, - DataSource* source); -void data_source_destroy (DataSource* self); -static void data_source_real_destroy (DataSource* self); -void data_view_notify_unsubscribed (DataView* self, - DataSource* source); -gboolean data_source_destroy_orphan (DataSource* self, - gboolean delete_backing); -void source_collection_notify_unlinked_destroyed (SourceCollection* self, - DataSource* unlinked); -void data_source_internal_subscribe (DataSource* self, - DataView* view); -static void _vala_array_add66 (DataView** * array, - int* length, - int* size, - DataView* value); -void data_source_internal_unsubscribe (DataSource* self, - DataView* view); -void data_source_contact_subscribers (DataSource* self, - DataSourceContactSubscriber contact_subscriber, - void* contact_subscriber_target); -static void data_source_real_unlinked (DataSource* self, - SourceCollection* sources); -static void g_cclosure_user_marshal_VOID__DATA_COLLECTION (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void data_source_real_relinked (DataSource* self, - SourceCollection* sources); -static void data_source_real_destroyed (DataSource* self); -static void data_source_finalize (GObject * obj); -#define SOURCE_SNAPSHOT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SOURCE_SNAPSHOT, SourceSnapshotPrivate)) -void source_snapshot_notify_broken (SourceSnapshot* self); -static void source_snapshot_real_notify_broken (SourceSnapshot* self); -gboolean source_snapshot_is_broken (SourceSnapshot* self); -SourceSnapshot* source_snapshot_construct (GType object_type); -static void source_snapshot_real_broken (SourceSnapshot* self); -static void source_snapshot_finalize (SourceSnapshot * obj); -#define SOURCE_BACKLINK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SOURCE_BACKLINK, SourceBacklinkPrivate)) -static gboolean source_backlink_validate_name_value (const gchar* name, - const gchar* value); -SourceBacklink* source_backlink_new_from_source (DataSource* source); -SourceBacklink* source_backlink_construct_from_source (GType object_type, - DataSource* source); -gchar* source_backlink_to_string (SourceBacklink* self); -guint source_backlink_hash_func (SourceBacklink* backlink); -gboolean source_backlink_equal_func (SourceBacklink* alink, - SourceBacklink* blink); -const gchar* source_backlink_get_typename (SourceBacklink* self); -gint64 source_backlink_get_instance_id (SourceBacklink* self); -static void source_backlink_finalize (SourceBacklink * obj); -gpointer source_proxy_ref (gpointer instance); -void source_proxy_unref (gpointer instance); -GParamSpec* param_spec_source_proxy (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_proxy (GValue* value, - gpointer v_object); -void value_take_source_proxy (GValue* value, - gpointer v_object); -gpointer value_get_source_proxy (const GValue* value); -GType source_proxy_get_type (void) G_GNUC_CONST; -#define SOURCE_PROXY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SOURCE_PROXY, SourceProxyPrivate)) -static void source_proxy_drop_source (SourceProxy* self); -static void source_proxy_on_source_added (SourceProxy* self, - GeeIterable* added); -static void _source_proxy_on_source_added_data_collection_items_added (DataCollection* _sender, - GeeIterable* added, - gpointer self); -SourceProxy* source_proxy_construct (GType object_type, - DataSource* source); -gint64 data_object_get_object_id (DataObject* self); -static void source_proxy_on_snapshot_broken (SourceProxy* self); -static void _source_proxy_on_snapshot_broken_source_snapshot_broken (SourceSnapshot* _sender, - gpointer self); -static void source_proxy_set_source (SourceProxy* self, - DataSource* source); -DataSource* source_proxy_reconstitute (SourceProxy* self, - gint64 object_id, - SourceSnapshot* snapshot); -static DataSource* source_proxy_real_reconstitute (SourceProxy* self, - gint64 object_id, - SourceSnapshot* snapshot); -void source_proxy_notify_reconstituted (SourceProxy* self, - DataSource* source); -static void source_proxy_real_notify_reconstituted (SourceProxy* self, - DataSource* source); -void source_proxy_notify_dehydrated (SourceProxy* self); -static void source_proxy_real_notify_dehydrated (SourceProxy* self); -void source_proxy_notify_broken (SourceProxy* self); -static void source_proxy_real_notify_broken (SourceProxy* self); -static void source_proxy_on_destroyed (SourceProxy* self); -static void _source_proxy_on_destroyed_data_source_destroyed (DataSource* _sender, - gpointer self); -DataSource* source_proxy_get_source (SourceProxy* self); -gboolean data_collection_contains (DataCollection* self, - DataObject* object); -static void source_proxy_real_reconstituted (SourceProxy* self, - DataSource* source); -static void source_proxy_real_dehydrated (SourceProxy* self); -static void source_proxy_real_broken (SourceProxy* self); -static void source_proxy_finalize (SourceProxy * obj); -GType proxyable_get_type (void) G_GNUC_CONST; -SourceProxy* proxyable_get_proxy (Proxyable* self); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -DataSource* -data_source_construct (GType object_type, - gint64 object_id) -{ - DataSource * self = NULL; -#line 64 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self = (DataSource*) data_object_construct (object_type, object_id); -#line 63 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return self; -#line 616 "DataSource.c" -} - - -static void -data_source_real_notify_membership_changed (DataObject* base, - DataCollection* collection) -{ - DataSource * self; - gboolean _tmp4_ = FALSE; -#line 73 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DATA_SOURCE, DataSource); -#line 73 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail ((collection == NULL) || IS_DATA_COLLECTION (collection)); -#line 75 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (collection == NULL) { -#line 632 "DataSource.c" - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; -#line 76 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = self->priv->is_destroyed; -#line 76 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp1_) { -#line 76 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = TRUE; -#line 641 "DataSource.c" - } else { - GeeHashMap* _tmp2_; -#line 76 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = self->priv->backlinks; -#line 76 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = _tmp2_ != NULL; -#line 648 "DataSource.c" - } -#line 76 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (_tmp0_, "is_destroyed || backlinks != null"); -#line 652 "DataSource.c" - } else { - gboolean _tmp3_; -#line 78 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = self->priv->is_destroyed; -#line 78 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (!_tmp3_, "!is_destroyed"); -#line 659 "DataSource.c" - } -#line 82 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (collection == NULL) { -#line 663 "DataSource.c" - GeeHashMap* _tmp5_; -#line 82 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = self->priv->backlinks; -#line 82 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = _tmp5_ != NULL; -#line 669 "DataSource.c" - } else { -#line 82 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = FALSE; -#line 673 "DataSource.c" - } -#line 82 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp4_) { -#line 83 "/home/jens/Source/shotwell/src/core/DataSource.vala" - data_source_notify_unlinked (self); -#line 679 "DataSource.c" - } -#line 85 "/home/jens/Source/shotwell/src/core/DataSource.vala" - DATA_OBJECT_CLASS (data_source_parent_class)->notify_membership_changed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), collection); -#line 683 "DataSource.c" -} - - -static gpointer -_source_holding_tank_ref0 (gpointer self) -{ -#line 100 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return self ? source_holding_tank_ref (self) : NULL; -#line 692 "DataSource.c" -} - - -static void -data_source_real_notify_held_in_tank (DataSource* self, - SourceHoldingTank* holding_tank) -{ - DataCollection* _tmp0_; - DataCollection* _tmp1_; - SourceHoldingTank* _tmp4_; -#line 88 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail ((holding_tank == NULL) || IS_SOURCE_HOLDING_TANK (holding_tank)); -#line 90 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 90 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = _tmp0_; -#line 90 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (_tmp1_ == NULL, "get_membership() == null"); -#line 90 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _data_collection_unref0 (_tmp1_); -#line 94 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (holding_tank != NULL) { -#line 715 "DataSource.c" - SourceHoldingTank* _tmp2_; -#line 95 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = self->priv->holding_tank; -#line 95 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (_tmp2_ == NULL, "this.holding_tank == null"); -#line 721 "DataSource.c" - } else { - SourceHoldingTank* _tmp3_; -#line 97 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = self->priv->holding_tank; -#line 97 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (_tmp3_ != NULL, "this.holding_tank != null"); -#line 728 "DataSource.c" - } -#line 100 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = _source_holding_tank_ref0 (holding_tank); -#line 100 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _source_holding_tank_unref0 (self->priv->holding_tank); -#line 100 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->holding_tank = _tmp4_; -#line 736 "DataSource.c" -} - - -void -data_source_notify_held_in_tank (DataSource* self, - SourceHoldingTank* holding_tank) -{ -#line 88 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_SOURCE (self)); -#line 88 "/home/jens/Source/shotwell/src/core/DataSource.vala" - DATA_SOURCE_GET_CLASS (self)->notify_held_in_tank (self, holding_tank); -#line 748 "DataSource.c" -} - - -static void -data_source_real_notify_altered (DataObject* base, - Alteration* alteration) -{ - DataSource * self; - SourceHoldingTank* _tmp0_; -#line 103 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DATA_SOURCE, DataSource); -#line 103 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_ALTERATION (alteration)); -#line 105 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->holding_tank; -#line 105 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp0_ != NULL) { -#line 766 "DataSource.c" - SourceHoldingTank* _tmp1_; -#line 106 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = self->priv->holding_tank; -#line 106 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_holding_tank_internal_notify_altered (_tmp1_, self, alteration); -#line 772 "DataSource.c" - } else { -#line 108 "/home/jens/Source/shotwell/src/core/DataSource.vala" - data_source_contact_subscribers_alteration (self, alteration); -#line 110 "/home/jens/Source/shotwell/src/core/DataSource.vala" - DATA_OBJECT_CLASS (data_source_parent_class)->notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), alteration); -#line 778 "DataSource.c" - } -} - - -static void -data_source_real_notify_unlinking (DataSource* self, - SourceCollection* collection) -{ - gboolean _tmp0_ = FALSE; - GeeHashMap* _tmp1_; - GeeHashMap* _tmp3_; -#line 115 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (collection)); -#line 116 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = self->priv->backlinks; -#line 116 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp1_ == NULL) { -#line 796 "DataSource.c" - SourceCollection* _tmp2_; -#line 116 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = self->priv->unlinked_from_collection; -#line 116 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = _tmp2_ == NULL; -#line 802 "DataSource.c" - } else { -#line 116 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = FALSE; -#line 806 "DataSource.c" - } -#line 116 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (_tmp0_, "backlinks == null && unlinked_from_collection == null"); -#line 118 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->unlinked_from_collection = collection; -#line 119 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_LIST, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 119 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (self->priv->backlinks); -#line 119 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->backlinks = _tmp3_; -#line 818 "DataSource.c" -} - - -void -data_source_notify_unlinking (DataSource* self, - SourceCollection* collection) -{ -#line 115 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_SOURCE (self)); -#line 115 "/home/jens/Source/shotwell/src/core/DataSource.vala" - DATA_SOURCE_GET_CLASS (self)->notify_unlinking (self, collection); -#line 830 "DataSource.c" -} - - -static void -data_source_real_notify_unlinked (DataSource* self) -{ - gboolean _tmp0_ = FALSE; - SourceCollection* _tmp1_; - SourceCollection* _tmp3_; - GeeHashMap* _tmp4_; - gint _tmp5_; - gint _tmp6_; -#line 124 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = self->priv->unlinked_from_collection; -#line 124 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp1_ != NULL) { -#line 847 "DataSource.c" - GeeHashMap* _tmp2_; -#line 124 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = self->priv->backlinks; -#line 124 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = _tmp2_ != NULL; -#line 853 "DataSource.c" - } else { -#line 124 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = FALSE; -#line 857 "DataSource.c" - } -#line 124 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (_tmp0_, "unlinked_from_collection != null && backlinks != null"); -#line 126 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = self->priv->unlinked_from_collection; -#line 126 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_signal_emit (self, data_source_signals[DATA_SOURCE_UNLINKED_SIGNAL], 0, _tmp3_); -#line 129 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = self->priv->backlinks; -#line 129 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 129 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = _tmp5_; -#line 129 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp6_ > 0) { -#line 873 "DataSource.c" - SourceCollection* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 130 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp7_ = self->priv->unlinked_from_collection; -#line 130 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8_ = data_source_dehydrate_backlinks (self); -#line 130 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp9_ = _tmp8_; -#line 130 "/home/jens/Source/shotwell/src/core/DataSource.vala" - data_source_commit_backlinks (self, _tmp7_, _tmp9_); -#line 130 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (_tmp9_); -#line 887 "DataSource.c" - } -} - - -void -data_source_notify_unlinked (DataSource* self) -{ -#line 123 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_SOURCE (self)); -#line 123 "/home/jens/Source/shotwell/src/core/DataSource.vala" - DATA_SOURCE_GET_CLASS (self)->notify_unlinked (self); -#line 899 "DataSource.c" -} - - -static void -data_source_real_notify_relinking (DataSource* self, - SourceCollection* collection) -{ - gboolean _tmp0_ = FALSE; - GeeHashMap* _tmp1_; -#line 134 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (collection)); -#line 135 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = self->priv->backlinks; -#line 135 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp1_ != NULL) { -#line 915 "DataSource.c" - SourceCollection* _tmp2_; -#line 135 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = self->priv->unlinked_from_collection; -#line 135 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = _tmp2_ == collection; -#line 921 "DataSource.c" - } else { -#line 135 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = FALSE; -#line 925 "DataSource.c" - } -#line 135 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (_tmp0_, "(backlinks != null) && (unlinked_from_collection == collection)"); -#line 929 "DataSource.c" -} - - -void -data_source_notify_relinking (DataSource* self, - SourceCollection* collection) -{ -#line 134 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_SOURCE (self)); -#line 134 "/home/jens/Source/shotwell/src/core/DataSource.vala" - DATA_SOURCE_GET_CLASS (self)->notify_relinking (self, collection); -#line 941 "DataSource.c" -} - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 142 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return self ? data_collection_ref (self) : NULL; -#line 950 "DataSource.c" -} - - -static void -data_source_real_notify_relinked (DataSource* self) -{ - gboolean _tmp0_ = FALSE; - GeeHashMap* _tmp1_; - SourceCollection* relinked_to = NULL; - SourceCollection* _tmp3_; - SourceCollection* _tmp4_; -#line 140 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = self->priv->backlinks; -#line 140 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp1_ != NULL) { -#line 966 "DataSource.c" - SourceCollection* _tmp2_; -#line 140 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = self->priv->unlinked_from_collection; -#line 140 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = _tmp2_ != NULL; -#line 972 "DataSource.c" - } else { -#line 140 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = FALSE; -#line 976 "DataSource.c" - } -#line 140 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (_tmp0_, "backlinks != null && unlinked_from_collection != null"); -#line 142 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = self->priv->unlinked_from_collection; -#line 142 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = _data_collection_ref0 (_tmp3_); -#line 142 "/home/jens/Source/shotwell/src/core/DataSource.vala" - relinked_to = _tmp4_; -#line 143 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (self->priv->backlinks); -#line 143 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->backlinks = NULL; -#line 144 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->unlinked_from_collection = NULL; -#line 145 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_signal_emit (self, data_source_signals[DATA_SOURCE_RELINKED_SIGNAL], 0, relinked_to); -#line 148 "/home/jens/Source/shotwell/src/core/DataSource.vala" - data_source_commit_backlinks (self, NULL, NULL); -#line 139 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _data_collection_unref0 (relinked_to); -#line 998 "DataSource.c" -} - - -void -data_source_notify_relinked (DataSource* self) -{ -#line 139 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_SOURCE (self)); -#line 139 "/home/jens/Source/shotwell/src/core/DataSource.vala" - DATA_SOURCE_GET_CLASS (self)->notify_relinked (self); -#line 1009 "DataSource.c" -} - - -static gchar* -data_source_real_get_typename (DataSource* self) -{ -#line 156 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_critical ("Type `%s' does not implement abstract method `data_source_get_typename'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 156 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return NULL; -#line 1020 "DataSource.c" -} - - -gchar* -data_source_get_typename (DataSource* self) -{ -#line 156 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_DATA_SOURCE (self), NULL); -#line 156 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return DATA_SOURCE_GET_CLASS (self)->get_typename (self); -#line 1031 "DataSource.c" -} - - -static gint64 -data_source_real_get_instance_id (DataSource* self) -{ - gint64 _tmp0_ = 0LL; -#line 162 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_critical ("Type `%s' does not implement abstract method `data_source_get_instance_id'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 162 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return _tmp0_; -#line 1043 "DataSource.c" -} - - -gint64 -data_source_get_instance_id (DataSource* self) -{ -#line 162 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_DATA_SOURCE (self), 0LL); -#line 162 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return DATA_SOURCE_GET_CLASS (self)->get_instance_id (self); -#line 1054 "DataSource.c" -} - - -static gchar* -data_source_real_get_source_id (DataSource* self) -{ - gchar* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 167 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = data_source_get_typename (self); -#line 167 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = _tmp0_; -#line 167 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = g_strdup_printf ("%s-%016" G_GINT64_MODIFIER "x", _tmp1_, data_source_get_instance_id (self)); -#line 167 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = _tmp2_; -#line 167 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (_tmp1_); -#line 167 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = _tmp3_; -#line 167 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 1080 "DataSource.c" -} - - -gchar* -data_source_get_source_id (DataSource* self) -{ -#line 166 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_DATA_SOURCE (self), NULL); -#line 166 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return DATA_SOURCE_GET_CLASS (self)->get_source_id (self); -#line 1091 "DataSource.c" -} - - -gboolean -data_source_has_backlink (DataSource* self, - SourceBacklink* backlink) -{ - gboolean result = FALSE; - GeeHashMap* _tmp0_; - GeeList* values = NULL; - GeeHashMap* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - gpointer _tmp4_; - gboolean _tmp5_ = FALSE; - GeeList* _tmp6_; -#line 170 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_DATA_SOURCE (self), FALSE); -#line 170 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_SOURCE_BACKLINK (backlink), FALSE); -#line 171 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->backlinks; -#line 171 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp0_ == NULL) { -#line 172 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = FALSE; -#line 172 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 1120 "DataSource.c" - } -#line 174 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = self->priv->backlinks; -#line 174 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = source_backlink_get_name (backlink); -#line 174 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = _tmp2_; -#line 174 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_); -#line 174 "/home/jens/Source/shotwell/src/core/DataSource.vala" - values = (GeeList*) _tmp4_; -#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = values; -#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp6_ != NULL) { -#line 1136 "DataSource.c" - GeeList* _tmp7_; - const gchar* _tmp8_; - const gchar* _tmp9_; -#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp7_ = values; -#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8_ = source_backlink_get_value (backlink); -#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp9_ = _tmp8_; -#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection), _tmp9_); -#line 1148 "DataSource.c" - } else { -#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = FALSE; -#line 1152 "DataSource.c" - } -#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = _tmp5_; -#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (values); -#line 176 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 1160 "DataSource.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return self ? g_object_ref (self) : NULL; -#line 1169 "DataSource.c" -} - - -GeeList* -data_source_get_backlinks (DataSource* self, - const gchar* name) -{ - GeeList* result = NULL; - GeeHashMap* _tmp0_; - GeeList* values = NULL; - GeeHashMap* _tmp1_; - gpointer _tmp2_; - gboolean _tmp3_ = FALSE; - GeeList* _tmp4_; - GeeList* backlinks = NULL; - GeeArrayList* _tmp8_; -#line 179 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_DATA_SOURCE (self), NULL); -#line 179 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 180 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->backlinks; -#line 180 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp0_ == NULL) { -#line 181 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = NULL; -#line 181 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 1198 "DataSource.c" - } -#line 183 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = self->priv->backlinks; -#line 183 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), name); -#line 183 "/home/jens/Source/shotwell/src/core/DataSource.vala" - values = (GeeList*) _tmp2_; -#line 184 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = values; -#line 184 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp4_ == NULL) { -#line 184 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = TRUE; -#line 1212 "DataSource.c" - } else { - GeeList* _tmp5_; - gint _tmp6_; - gint _tmp7_; -#line 184 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = values; -#line 184 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 184 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp7_ = _tmp6_; -#line 184 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = _tmp7_ == 0; -#line 1225 "DataSource.c" - } -#line 184 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp3_) { -#line 185 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = NULL; -#line 185 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (values); -#line 185 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 1235 "DataSource.c" - } -#line 187 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8_ = gee_array_list_new (TYPE_SOURCE_BACKLINK, (GBoxedCopyFunc) source_backlink_ref, (GDestroyNotify) source_backlink_unref, NULL, NULL, NULL); -#line 187 "/home/jens/Source/shotwell/src/core/DataSource.vala" - backlinks = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_LIST, GeeList); -#line 1241 "DataSource.c" - { - GeeList* _value_list = NULL; - GeeList* _tmp9_; - GeeList* _tmp10_; - gint _value_size = 0; - GeeList* _tmp11_; - gint _tmp12_; - gint _tmp13_; - gint _value_index = 0; -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp9_ = values; -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp10_ = _g_object_ref0 (_tmp9_); -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _value_list = _tmp10_; -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp11_ = _value_list; -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp13_ = _tmp12_; -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _value_size = _tmp13_; -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _value_index = -1; -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - while (TRUE) { -#line 1269 "DataSource.c" - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; - gchar* value = NULL; - GeeList* _tmp17_; - gint _tmp18_; - gpointer _tmp19_; - GeeList* _tmp20_; - const gchar* _tmp21_; - SourceBacklink* _tmp22_; - SourceBacklink* _tmp23_; -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp14_ = _value_index; -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _value_index = _tmp14_ + 1; -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp15_ = _value_index; -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp16_ = _value_size; -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!(_tmp15_ < _tmp16_)) { -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - break; -#line 1293 "DataSource.c" - } -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp17_ = _value_list; -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp18_ = _value_index; -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp19_ = gee_list_get (_tmp17_, _tmp18_); -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value = (gchar*) _tmp19_; -#line 189 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp20_ = backlinks; -#line 189 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp21_ = value; -#line 189 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp22_ = source_backlink_new (name, _tmp21_); -#line 189 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp23_ = _tmp22_; -#line 189 "/home/jens/Source/shotwell/src/core/DataSource.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection), _tmp23_); -#line 189 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _source_backlink_unref0 (_tmp23_); -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (value); -#line 1317 "DataSource.c" - } -#line 188 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (_value_list); -#line 1321 "DataSource.c" - } -#line 191 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = backlinks; -#line 191 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (values); -#line 191 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 1329 "DataSource.c" -} - - -void -data_source_set_backlink (DataSource* self, - SourceBacklink* backlink) -{ - GeeHashMap* _tmp0_; - GeeList* values = NULL; - GeeHashMap* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - gpointer _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp11_; - const gchar* _tmp12_; - const gchar* _tmp13_; - SourceCollection* sources = NULL; - DataCollection* _tmp14_; - SourceCollection* _tmp15_; -#line 194 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_SOURCE (self)); -#line 194 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_SOURCE_BACKLINK (backlink)); -#line 196 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->backlinks; -#line 196 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (_tmp0_ != NULL, "backlinks != null"); -#line 198 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = self->priv->backlinks; -#line 198 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = source_backlink_get_name (backlink); -#line 198 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = _tmp2_; -#line 198 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_); -#line 198 "/home/jens/Source/shotwell/src/core/DataSource.vala" - values = (GeeList*) _tmp4_; -#line 199 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = values; -#line 199 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp5_ == NULL) { -#line 1372 "DataSource.c" - GeeArrayList* _tmp6_; - GeeHashMap* _tmp7_; - const gchar* _tmp8_; - const gchar* _tmp9_; - GeeList* _tmp10_; -#line 200 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 200 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (values); -#line 200 "/home/jens/Source/shotwell/src/core/DataSource.vala" - values = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_LIST, GeeList); -#line 201 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp7_ = self->priv->backlinks; -#line 201 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8_ = source_backlink_get_name (backlink); -#line 201 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp9_ = _tmp8_; -#line 201 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp10_ = values; -#line 201 "/home/jens/Source/shotwell/src/core/DataSource.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, _tmp10_); -#line 1394 "DataSource.c" - } -#line 204 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp11_ = values; -#line 204 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp12_ = source_backlink_get_value (backlink); -#line 204 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp13_ = _tmp12_; -#line 204 "/home/jens/Source/shotwell/src/core/DataSource.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection), _tmp13_); -#line 206 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp14_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 206 "/home/jens/Source/shotwell/src/core/DataSource.vala" - sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_SOURCE_COLLECTION, SourceCollection); -#line 207 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp15_ = sources; -#line 207 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp15_ != NULL) { -#line 1412 "DataSource.c" - SourceCollection* _tmp16_; -#line 208 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp16_ = sources; -#line 208 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_collection_internal_backlink_set (_tmp16_, self, backlink); -#line 1418 "DataSource.c" - } -#line 194 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _data_collection_unref0 (sources); -#line 194 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (values); -#line 1424 "DataSource.c" -} - - -gboolean -data_source_remove_backlink (DataSource* self, - SourceBacklink* backlink) -{ - gboolean result = FALSE; - GeeHashMap* _tmp0_; - GeeList* values = NULL; - GeeHashMap* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - gpointer _tmp4_; - GeeList* _tmp5_; - gint original_size = 0; - GeeList* _tmp6_; - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - GeeIterator* iter = NULL; - GeeList* _tmp10_; - GeeIterator* _tmp11_; - GeeList* _tmp20_; - gint _tmp21_; - gint _tmp22_; - SourceCollection* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - SourceCollection* sources = NULL; - DataCollection* _tmp29_; - SourceCollection* _tmp30_; - GeeList* _tmp32_; - gint _tmp33_; - gint _tmp34_; - gint _tmp35_; -#line 211 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_DATA_SOURCE (self), FALSE); -#line 211 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_SOURCE_BACKLINK (backlink), FALSE); -#line 212 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->backlinks; -#line 212 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp0_ == NULL) { -#line 213 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = FALSE; -#line 213 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 1473 "DataSource.c" - } -#line 215 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = self->priv->backlinks; -#line 215 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = source_backlink_get_name (backlink); -#line 215 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = _tmp2_; -#line 215 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_); -#line 215 "/home/jens/Source/shotwell/src/core/DataSource.vala" - values = (GeeList*) _tmp4_; -#line 216 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = values; -#line 216 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp5_ == NULL) { -#line 217 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = FALSE; -#line 217 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (values); -#line 217 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 1495 "DataSource.c" - } -#line 219 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = values; -#line 219 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 219 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8_ = _tmp7_; -#line 219 "/home/jens/Source/shotwell/src/core/DataSource.vala" - original_size = _tmp8_; -#line 220 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp9_ = original_size; -#line 220 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (_tmp9_ > 0, "original_size > 0"); -#line 222 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp10_ = values; -#line 222 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 222 "/home/jens/Source/shotwell/src/core/DataSource.vala" - iter = _tmp11_; -#line 223 "/home/jens/Source/shotwell/src/core/DataSource.vala" - while (TRUE) { -#line 1517 "DataSource.c" - GeeIterator* _tmp12_; - GeeIterator* _tmp13_; - gpointer _tmp14_; - gchar* _tmp15_; - const gchar* _tmp16_; - const gchar* _tmp17_; - gboolean _tmp18_; -#line 223 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp12_ = iter; -#line 223 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!gee_iterator_next (_tmp12_)) { -#line 223 "/home/jens/Source/shotwell/src/core/DataSource.vala" - break; -#line 1531 "DataSource.c" - } -#line 224 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp13_ = iter; -#line 224 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp14_ = gee_iterator_get (_tmp13_); -#line 224 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp15_ = (gchar*) _tmp14_; -#line 224 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp16_ = source_backlink_get_value (backlink); -#line 224 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp17_ = _tmp16_; -#line 224 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp18_ = g_strcmp0 (_tmp15_, _tmp17_) == 0; -#line 224 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (_tmp15_); -#line 224 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp18_) { -#line 1549 "DataSource.c" - GeeIterator* _tmp19_; -#line 225 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp19_ = iter; -#line 225 "/home/jens/Source/shotwell/src/core/DataSource.vala" - gee_iterator_remove (_tmp19_); -#line 1555 "DataSource.c" - } - } -#line 228 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp20_ = values; -#line 228 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp21_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 228 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp22_ = _tmp21_; -#line 228 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp22_ == 0) { -#line 1566 "DataSource.c" - GeeHashMap* _tmp23_; - const gchar* _tmp24_; - const gchar* _tmp25_; -#line 229 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp23_ = self->priv->backlinks; -#line 229 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp24_ = source_backlink_get_name (backlink); -#line 229 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp25_ = _tmp24_; -#line 229 "/home/jens/Source/shotwell/src/core/DataSource.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp25_, NULL); -#line 1578 "DataSource.c" - } -#line 233 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp26_ = self->priv->unlinked_from_collection; -#line 233 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp27_ = data_source_dehydrate_backlinks (self); -#line 233 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp28_ = _tmp27_; -#line 233 "/home/jens/Source/shotwell/src/core/DataSource.vala" - data_source_commit_backlinks (self, _tmp26_, _tmp28_); -#line 233 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (_tmp28_); -#line 235 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp29_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 235 "/home/jens/Source/shotwell/src/core/DataSource.vala" - sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_SOURCE_COLLECTION, SourceCollection); -#line 236 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp30_ = sources; -#line 236 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp30_ != NULL) { -#line 1598 "DataSource.c" - SourceCollection* _tmp31_; -#line 237 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp31_ = sources; -#line 237 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_collection_internal_backlink_removed (_tmp31_, self, backlink); -#line 1604 "DataSource.c" - } -#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp32_ = values; -#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp33_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp34_ = _tmp33_; -#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp35_ = original_size; -#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = _tmp34_ != _tmp35_; -#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _data_collection_unref0 (sources); -#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (iter); -#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (values); -#line 239 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 1624 "DataSource.c" -} - - -static void -data_source_real_commit_backlinks (DataSource* self, - SourceCollection* sources, - const gchar* dehydrated) -{ - gboolean _tmp0_ = FALSE; -#line 248 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail ((sources == NULL) || IS_SOURCE_COLLECTION (sources)); -#line 249 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (sources != NULL) { -#line 249 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = TRUE; -#line 1640 "DataSource.c" - } else { -#line 249 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = dehydrated != NULL; -#line 1644 "DataSource.c" - } -#line 249 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp0_) { -#line 1648 "DataSource.c" - gchar* _tmp1_; - gchar* _tmp2_; -#line 250 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 250 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = _tmp1_; -#line 250 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_warning ("DataSource.vala:250: No implementation to commit link state for %s", _tmp2_); -#line 250 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (_tmp2_); -#line 1659 "DataSource.c" - } -} - - -void -data_source_commit_backlinks (DataSource* self, - SourceCollection* sources, - const gchar* dehydrated) -{ -#line 248 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_SOURCE (self)); -#line 248 "/home/jens/Source/shotwell/src/core/DataSource.vala" - DATA_SOURCE_GET_CLASS (self)->commit_backlinks (self, sources, dehydrated); -#line 1673 "DataSource.c" -} - - -static gchar* -data_source_dehydrate_backlinks (DataSource* self) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - GeeHashMap* _tmp1_; - GString* builder = NULL; - GString* _tmp5_; - const gchar* _tmp49_ = NULL; - GString* _tmp50_; - const gchar* _tmp51_; - gint _tmp52_; - gint _tmp53_; - gchar* _tmp56_; -#line 253 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_DATA_SOURCE (self), NULL); -#line 254 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = self->priv->backlinks; -#line 254 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp1_ == NULL) { -#line 254 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = TRUE; -#line 1699 "DataSource.c" - } else { - GeeHashMap* _tmp2_; - gint _tmp3_; - gint _tmp4_; -#line 254 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = self->priv->backlinks; -#line 254 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 254 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = _tmp3_; -#line 254 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = _tmp4_ == 0; -#line 1712 "DataSource.c" - } -#line 254 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp0_) { -#line 255 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = NULL; -#line 255 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 1720 "DataSource.c" - } -#line 257 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = g_string_new (""); -#line 257 "/home/jens/Source/shotwell/src/core/DataSource.vala" - builder = _tmp5_; -#line 1726 "DataSource.c" - { - GeeIterator* _name_it = NULL; - GeeHashMap* _tmp6_; - GeeSet* _tmp7_; - GeeSet* _tmp8_; - GeeSet* _tmp9_; - GeeIterator* _tmp10_; - GeeIterator* _tmp11_; -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = self->priv->backlinks; -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp7_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8_ = _tmp7_; -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp9_ = _tmp8_; -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp11_ = _tmp10_; -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (_tmp9_); -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _name_it = _tmp11_; -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - while (TRUE) { -#line 1753 "DataSource.c" - GeeIterator* _tmp12_; - gchar* name = NULL; - GeeIterator* _tmp13_; - gpointer _tmp14_; - GeeList* values = NULL; - GeeHashMap* _tmp15_; - const gchar* _tmp16_; - gpointer _tmp17_; - gboolean _tmp18_ = FALSE; - GeeList* _tmp19_; - gchar* value_field = NULL; - gchar* _tmp23_; - const gchar* _tmp41_; - gint _tmp42_; - gint _tmp43_; -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp12_ = _name_it; -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!gee_iterator_next (_tmp12_)) { -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - break; -#line 1775 "DataSource.c" - } -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp13_ = _name_it; -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp14_ = gee_iterator_get (_tmp13_); -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - name = (gchar*) _tmp14_; -#line 259 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp15_ = self->priv->backlinks; -#line 259 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp16_ = name; -#line 259 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp17_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp16_); -#line 259 "/home/jens/Source/shotwell/src/core/DataSource.vala" - values = (GeeList*) _tmp17_; -#line 260 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp19_ = values; -#line 260 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp19_ == NULL) { -#line 260 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp18_ = TRUE; -#line 1797 "DataSource.c" - } else { - GeeList* _tmp20_; - gint _tmp21_; - gint _tmp22_; -#line 260 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp20_ = values; -#line 260 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp21_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 260 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp22_ = _tmp21_; -#line 260 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp18_ = _tmp22_ == 0; -#line 1810 "DataSource.c" - } -#line 260 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp18_) { -#line 261 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (values); -#line 261 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (name); -#line 261 "/home/jens/Source/shotwell/src/core/DataSource.vala" - continue; -#line 1820 "DataSource.c" - } -#line 263 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp23_ = g_strdup (""); -#line 263 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value_field = _tmp23_; -#line 1826 "DataSource.c" - { - GeeList* _value_list = NULL; - GeeList* _tmp24_; - GeeList* _tmp25_; - gint _value_size = 0; - GeeList* _tmp26_; - gint _tmp27_; - gint _tmp28_; - gint _value_index = 0; -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp24_ = values; -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp25_ = _g_object_ref0 (_tmp24_); -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _value_list = _tmp25_; -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp26_ = _value_list; -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp27_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp28_ = _tmp27_; -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _value_size = _tmp28_; -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _value_index = -1; -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - while (TRUE) { -#line 1854 "DataSource.c" - gint _tmp29_; - gint _tmp30_; - gint _tmp31_; - gchar* value = NULL; - GeeList* _tmp32_; - gint _tmp33_; - gpointer _tmp34_; - const gchar* _tmp35_; -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp29_ = _value_index; -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _value_index = _tmp29_ + 1; -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp30_ = _value_index; -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp31_ = _value_size; -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!(_tmp30_ < _tmp31_)) { -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - break; -#line 1875 "DataSource.c" - } -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp32_ = _value_list; -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp33_ = _value_index; -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp34_ = gee_list_get (_tmp32_, _tmp33_); -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value = (gchar*) _tmp34_; -#line 265 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp35_ = value; -#line 265 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!is_string_empty (_tmp35_)) { -#line 1889 "DataSource.c" - const gchar* _tmp36_; - const gchar* _tmp37_; - gchar* _tmp38_; - gchar* _tmp39_; - gchar* _tmp40_; -#line 266 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp36_ = value_field; -#line 266 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp37_ = value; -#line 266 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp38_ = g_strconcat (_tmp37_, "|", NULL); -#line 266 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp39_ = _tmp38_; -#line 266 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp40_ = g_strconcat (_tmp36_, _tmp39_, NULL); -#line 266 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (value_field); -#line 266 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value_field = _tmp40_; -#line 266 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (_tmp39_); -#line 1911 "DataSource.c" - } -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (value); -#line 1915 "DataSource.c" - } -#line 264 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (_value_list); -#line 1919 "DataSource.c" - } -#line 269 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp41_ = value_field; -#line 269 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp42_ = strlen (_tmp41_); -#line 269 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp43_ = _tmp42_; -#line 269 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp43_ > 0) { -#line 1929 "DataSource.c" - GString* _tmp44_; - const gchar* _tmp45_; - const gchar* _tmp46_; - gchar* _tmp47_; - gchar* _tmp48_; -#line 270 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp44_ = builder; -#line 270 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp45_ = name; -#line 270 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp46_ = value_field; -#line 270 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp47_ = g_strdup_printf ("%s=%s\n", _tmp45_, _tmp46_); -#line 270 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp48_ = _tmp47_; -#line 270 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_string_append (_tmp44_, _tmp48_); -#line 270 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (_tmp48_); -#line 1949 "DataSource.c" - } -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (value_field); -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (values); -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (name); -#line 1957 "DataSource.c" - } -#line 258 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (_name_it); -#line 1961 "DataSource.c" - } -#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp50_ = builder; -#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp51_ = _tmp50_->str; -#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp52_ = strlen (_tmp51_); -#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp53_ = _tmp52_; -#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp53_ > 0) { -#line 1973 "DataSource.c" - GString* _tmp54_; - const gchar* _tmp55_; -#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp54_ = builder; -#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp55_ = _tmp54_->str; -#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp49_ = _tmp55_; -#line 1982 "DataSource.c" - } else { -#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp49_ = NULL; -#line 1986 "DataSource.c" - } -#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp56_ = g_strdup (_tmp49_); -#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = _tmp56_; -#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_string_free0 (builder); -#line 273 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 1996 "DataSource.c" -} - - -void -data_source_rehydrate_backlinks (DataSource* self, - SourceCollection* unlinked_from, - const gchar* dehydrated) -{ - GeeHashMap* _tmp0_; - gchar** lines = NULL; - gchar** _tmp1_; - gchar** _tmp2_; - gint lines_length1; - gint _lines_size_; - gchar** _tmp3_; - gint _tmp3__length1; -#line 278 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_SOURCE (self)); -#line 278 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (unlinked_from)); -#line 279 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->unlinked_from_collection = unlinked_from; -#line 280 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_LIST, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 280 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (self->priv->backlinks); -#line 280 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->backlinks = _tmp0_; -#line 282 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (dehydrated == NULL) { -#line 283 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return; -#line 2029 "DataSource.c" - } -#line 285 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = _tmp1_ = g_strsplit (dehydrated, "\n", 0); -#line 285 "/home/jens/Source/shotwell/src/core/DataSource.vala" - lines = _tmp2_; -#line 285 "/home/jens/Source/shotwell/src/core/DataSource.vala" - lines_length1 = _vala_array_length (_tmp1_); -#line 285 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _lines_size_ = lines_length1; -#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = lines; -#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3__length1 = lines_length1; -#line 2043 "DataSource.c" - { - gchar** line_collection = NULL; - gint line_collection_length1 = 0; - gint _line_collection_size_ = 0; - gint line_it = 0; -#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala" - line_collection = _tmp3_; -#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala" - line_collection_length1 = _tmp3__length1; -#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala" - for (line_it = 0; line_it < _tmp3__length1; line_it = line_it + 1) { -#line 2055 "DataSource.c" - gchar* _tmp4_; - gchar* line = NULL; -#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = g_strdup (line_collection[line_it]); -#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala" - line = _tmp4_; -#line 2062 "DataSource.c" - { - const gchar* _tmp5_; - gint _tmp6_; - gint _tmp7_; - gchar** tokens = NULL; - const gchar* _tmp8_; - gchar** _tmp9_; - gchar** _tmp10_; - gint tokens_length1; - gint _tokens_size_; - gchar** _tmp11_; - gint _tmp11__length1; - gchar** decoded_values = NULL; - gchar** _tmp15_; - gint _tmp15__length1; - const gchar* _tmp16_; - gchar** _tmp17_; - gchar** _tmp18_; - gint decoded_values_length1; - gint _decoded_values_size_; - GeeList* values = NULL; - GeeArrayList* _tmp19_; - gchar** _tmp20_; - gint _tmp20__length1; - GeeList* _tmp29_; - gint _tmp30_; - gint _tmp31_; -#line 287 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = line; -#line 287 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = strlen (_tmp5_); -#line 287 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp7_ = _tmp6_; -#line 287 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp7_ == 0) { -#line 288 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (line); -#line 288 "/home/jens/Source/shotwell/src/core/DataSource.vala" - continue; -#line 2102 "DataSource.c" - } -#line 290 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8_ = line; -#line 290 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp10_ = _tmp9_ = g_strsplit (_tmp8_, "=", 2); -#line 290 "/home/jens/Source/shotwell/src/core/DataSource.vala" - tokens = _tmp10_; -#line 290 "/home/jens/Source/shotwell/src/core/DataSource.vala" - tokens_length1 = _vala_array_length (_tmp9_); -#line 290 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tokens_size_ = tokens_length1; -#line 291 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp11_ = tokens; -#line 291 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp11__length1 = tokens_length1; -#line 291 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp11__length1 < 2) { -#line 2120 "DataSource.c" - const gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; -#line 292 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp12_ = line; -#line 292 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp13_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 292 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp14_ = _tmp13_; -#line 292 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_warning ("DataSource.vala:292: Unable to rehydrate \"%s\" for %s: name and value" \ -" not present", _tmp12_, _tmp14_); -#line 292 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (_tmp14_); -#line 295 "/home/jens/Source/shotwell/src/core/DataSource.vala" - tokens = (_vala_array_free (tokens, tokens_length1, (GDestroyNotify) g_free), NULL); -#line 295 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (line); -#line 295 "/home/jens/Source/shotwell/src/core/DataSource.vala" - continue; -#line 2140 "DataSource.c" - } -#line 298 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp15_ = tokens; -#line 298 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp15__length1 = tokens_length1; -#line 298 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp16_ = _tmp15_[1]; -#line 298 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp18_ = _tmp17_ = g_strsplit (_tmp16_, "|", 0); -#line 298 "/home/jens/Source/shotwell/src/core/DataSource.vala" - decoded_values = _tmp18_; -#line 298 "/home/jens/Source/shotwell/src/core/DataSource.vala" - decoded_values_length1 = _vala_array_length (_tmp17_); -#line 298 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _decoded_values_size_ = decoded_values_length1; -#line 299 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp19_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 299 "/home/jens/Source/shotwell/src/core/DataSource.vala" - values = G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_LIST, GeeList); -#line 300 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp20_ = decoded_values; -#line 300 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp20__length1 = decoded_values_length1; -#line 2164 "DataSource.c" - { - gchar** value_collection = NULL; - gint value_collection_length1 = 0; - gint _value_collection_size_ = 0; - gint value_it = 0; -#line 300 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value_collection = _tmp20_; -#line 300 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value_collection_length1 = _tmp20__length1; -#line 300 "/home/jens/Source/shotwell/src/core/DataSource.vala" - for (value_it = 0; value_it < _tmp20__length1; value_it = value_it + 1) { -#line 2176 "DataSource.c" - gchar* _tmp21_; - gchar* value = NULL; -#line 300 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp21_ = g_strdup (value_collection[value_it]); -#line 300 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value = _tmp21_; -#line 2183 "DataSource.c" - { - gboolean _tmp22_ = FALSE; - const gchar* _tmp23_; -#line 301 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp23_ = value; -#line 301 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp23_ != NULL) { -#line 2191 "DataSource.c" - const gchar* _tmp24_; - gint _tmp25_; - gint _tmp26_; -#line 301 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp24_ = value; -#line 301 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp25_ = strlen (_tmp24_); -#line 301 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp26_ = _tmp25_; -#line 301 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp22_ = _tmp26_ > 0; -#line 2203 "DataSource.c" - } else { -#line 301 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp22_ = FALSE; -#line 2207 "DataSource.c" - } -#line 301 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp22_) { -#line 2211 "DataSource.c" - GeeList* _tmp27_; - const gchar* _tmp28_; -#line 302 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp27_ = values; -#line 302 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp28_ = value; -#line 302 "/home/jens/Source/shotwell/src/core/DataSource.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_COLLECTION, GeeCollection), _tmp28_); -#line 2220 "DataSource.c" - } -#line 300 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (value); -#line 2224 "DataSource.c" - } - } - } -#line 305 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp29_ = values; -#line 305 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp30_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 305 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp31_ = _tmp30_; -#line 305 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp31_ > 0) { -#line 2236 "DataSource.c" - GeeHashMap* _tmp32_; - gchar** _tmp33_; - gint _tmp33__length1; - const gchar* _tmp34_; - GeeList* _tmp35_; -#line 306 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp32_ = self->priv->backlinks; -#line 306 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp33_ = tokens; -#line 306 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp33__length1 = tokens_length1; -#line 306 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp34_ = _tmp33_[0]; -#line 306 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp35_ = values; -#line 306 "/home/jens/Source/shotwell/src/core/DataSource.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp34_, _tmp35_); -#line 2254 "DataSource.c" - } -#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (values); -#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala" - decoded_values = (_vala_array_free (decoded_values, decoded_values_length1, (GDestroyNotify) g_free), NULL); -#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala" - tokens = (_vala_array_free (tokens, tokens_length1, (GDestroyNotify) g_free), NULL); -#line 286 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (line); -#line 2264 "DataSource.c" - } - } - } -#line 278 "/home/jens/Source/shotwell/src/core/DataSource.vala" - lines = (_vala_array_free (lines, lines_length1, (GDestroyNotify) g_free), NULL); -#line 2270 "DataSource.c" -} - - -static SourceSnapshot* -data_source_real_save_snapshot (DataSource* self) -{ - SourceSnapshot* result = NULL; -#line 312 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = NULL; -#line 312 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 2282 "DataSource.c" -} - - -SourceSnapshot* -data_source_save_snapshot (DataSource* self) -{ -#line 311 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_DATA_SOURCE (self), NULL); -#line 311 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return DATA_SOURCE_GET_CLASS (self)->save_snapshot (self); -#line 2293 "DataSource.c" -} - - -void -data_source_internal_mark_for_destroy (DataSource* self) -{ -#line 316 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_SOURCE (self)); -#line 317 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->marked_for_destroy = TRUE; -#line 2304 "DataSource.c" -} - - -static gboolean -data_source_real_internal_delete_backing (DataSource* self, - GError** error) -{ - gboolean result = FALSE; -#line 325 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = TRUE; -#line 325 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 2317 "DataSource.c" -} - - -gboolean -data_source_internal_delete_backing (DataSource* self, - GError** error) -{ -#line 324 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_DATA_SOURCE (self), FALSE); -#line 324 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return DATA_SOURCE_GET_CLASS (self)->internal_delete_backing (self, error); -#line 2329 "DataSource.c" -} - - -static gboolean -data_source_real_equals (DataSource* self, - DataSource* source) -{ - gboolean result = FALSE; -#line 330 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail ((source == NULL) || IS_DATA_SOURCE (source), FALSE); -#line 331 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = self == source; -#line 331 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 2344 "DataSource.c" -} - - -gboolean -data_source_equals (DataSource* self, - DataSource* source) -{ -#line 330 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_DATA_SOURCE (self), FALSE); -#line 330 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return DATA_SOURCE_GET_CLASS (self)->equals (self, source); -#line 2356 "DataSource.c" -} - - -static void -data_source_real_destroy (DataSource* self) -{ - gboolean _tmp0_; -#line 341 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->marked_for_destroy; -#line 341 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (_tmp0_, "marked_for_destroy"); -#line 344 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->is_destroyed = TRUE; -#line 2370 "DataSource.c" - { - gint ctr = 0; -#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ctr = 0; -#line 2375 "DataSource.c" - { - gboolean _tmp1_ = FALSE; -#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = TRUE; -#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala" - while (TRUE) { -#line 2382 "DataSource.c" - gint _tmp3_; - DataView** _tmp4_; - gint _tmp4__length1; - DataView** _tmp5_; - gint _tmp5__length1; - gint _tmp6_; - DataView* _tmp7_; -#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!_tmp1_) { -#line 2392 "DataSource.c" - gint _tmp2_; -#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = ctr; -#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ctr = _tmp2_ + 1; -#line 2398 "DataSource.c" - } -#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = FALSE; -#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = ctr; -#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = self->priv->subscribers; -#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4__length1 = self->priv->subscribers_length1; -#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!(_tmp3_ < _tmp4__length1)) { -#line 347 "/home/jens/Source/shotwell/src/core/DataSource.vala" - break; -#line 2412 "DataSource.c" - } -#line 348 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = self->priv->subscribers; -#line 348 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5__length1 = self->priv->subscribers_length1; -#line 348 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = ctr; -#line 348 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp7_ = _tmp5_[_tmp6_]; -#line 348 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp7_ != NULL) { -#line 2424 "DataSource.c" - DataView* view = NULL; - DataView** _tmp8_; - gint _tmp8__length1; - gint _tmp9_; - DataView* _tmp10_; - DataView* _tmp11_; - DataView** _tmp12_; - gint _tmp12__length1; - gint _tmp13_; - DataView* _tmp14_; - DataView* _tmp15_; -#line 349 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8_ = self->priv->subscribers; -#line 349 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8__length1 = self->priv->subscribers_length1; -#line 349 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp9_ = ctr; -#line 349 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp10_ = _tmp8_[_tmp9_]; -#line 349 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp11_ = _g_object_ref0 (_tmp10_); -#line 349 "/home/jens/Source/shotwell/src/core/DataSource.vala" - view = _tmp11_; -#line 350 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp12_ = self->priv->subscribers; -#line 350 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp12__length1 = self->priv->subscribers_length1; -#line 350 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp13_ = ctr; -#line 350 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (_tmp12_[_tmp13_]); -#line 350 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp12_[_tmp13_] = NULL; -#line 350 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp14_ = _tmp12_[_tmp13_]; -#line 352 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp15_ = view; -#line 352 "/home/jens/Source/shotwell/src/core/DataSource.vala" - data_view_notify_unsubscribed (_tmp15_, self); -#line 348 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (view); -#line 2466 "DataSource.c" - } - } - } - } -#line 357 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_signal_emit (self, data_source_signals[DATA_SOURCE_DESTROYED_SIGNAL], 0); -#line 2473 "DataSource.c" -} - - -void -data_source_destroy (DataSource* self) -{ -#line 340 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_SOURCE (self)); -#line 340 "/home/jens/Source/shotwell/src/core/DataSource.vala" - DATA_SOURCE_GET_CLASS (self)->destroy (self); -#line 2484 "DataSource.c" -} - - -gboolean -data_source_destroy_orphan (DataSource* self, - gboolean delete_backing) -{ - gboolean result = FALSE; - gboolean ret = FALSE; - SourceCollection* _tmp9_; - GError * _inner_error_ = NULL; -#line 366 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_DATA_SOURCE (self), FALSE); -#line 367 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ret = TRUE; -#line 368 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (delete_backing) { -#line 2502 "DataSource.c" - { - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; -#line 370 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = data_source_internal_delete_backing (self, &_inner_error_); -#line 370 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2510 "DataSource.c" - goto __catch54_g_error; - } -#line 370 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ret = _tmp0_; -#line 371 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = ret; -#line 371 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!_tmp1_) { -#line 2519 "DataSource.c" - gchar* _tmp2_; - gchar* _tmp3_; -#line 372 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 372 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = _tmp2_; -#line 372 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_warning ("DataSource.vala:372: Unable to delete backing for %s", _tmp3_); -#line 372 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (_tmp3_); -#line 2530 "DataSource.c" - } - } - goto __finally54; - __catch54_g_error: - { - GError* err = NULL; - gchar* _tmp4_; - gchar* _tmp5_; - GError* _tmp6_; - const gchar* _tmp7_; -#line 369 "/home/jens/Source/shotwell/src/core/DataSource.vala" - err = _inner_error_; -#line 369 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _inner_error_ = NULL; -#line 375 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 375 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = _tmp4_; -#line 375 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = err; -#line 375 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp7_ = _tmp6_->message; -#line 375 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_warning ("DataSource.vala:375: Unable to delete backing for %s: %s", _tmp5_, _tmp7_); -#line 375 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (_tmp5_); -#line 376 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ret = FALSE; -#line 369 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_error_free0 (err); -#line 2561 "DataSource.c" - } - __finally54: -#line 369 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2566 "DataSource.c" - gboolean _tmp8_ = FALSE; -#line 369 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 369 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_clear_error (&_inner_error_); -#line 369 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return _tmp8_; -#line 2574 "DataSource.c" - } - } -#line 380 "/home/jens/Source/shotwell/src/core/DataSource.vala" - data_source_internal_mark_for_destroy (self); -#line 381 "/home/jens/Source/shotwell/src/core/DataSource.vala" - data_source_destroy (self); -#line 383 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp9_ = self->priv->unlinked_from_collection; -#line 383 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp9_ != NULL) { -#line 2585 "DataSource.c" - SourceCollection* _tmp10_; -#line 384 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp10_ = self->priv->unlinked_from_collection; -#line 384 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_collection_notify_unlinked_destroyed (_tmp10_, self); -#line 2591 "DataSource.c" - } -#line 386 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = ret; -#line 386 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 2597 "DataSource.c" -} - - -static void -_vala_array_add66 (DataView** * array, - int* length, - int* size, - DataView* value) -{ -#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if ((*length) == (*size)) { -#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala" - *array = g_renew (DataView*, *array, (*size) + 1); -#line 2613 "DataSource.c" - } -#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala" - (*array)[(*length)++] = value; -#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala" - (*array)[*length] = NULL; -#line 2619 "DataSource.c" -} - - -void -data_source_internal_subscribe (DataSource* self, - DataView* view) -{ - gboolean _tmp0_; - DataView** _tmp12_; - gint _tmp12__length1; - DataView* _tmp13_; -#line 395 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_SOURCE (self)); -#line 395 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_VIEW (view)); -#line 396 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->in_contact; -#line 396 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (!_tmp0_, "!in_contact"); -#line 2639 "DataSource.c" - { - gint ctr = 0; -#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ctr = 0; -#line 2644 "DataSource.c" - { - gboolean _tmp1_ = FALSE; -#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = TRUE; -#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala" - while (TRUE) { -#line 2651 "DataSource.c" - gint _tmp3_; - DataView** _tmp4_; - gint _tmp4__length1; - DataView** _tmp5_; - gint _tmp5__length1; - gint _tmp6_; - DataView* _tmp7_; -#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!_tmp1_) { -#line 2661 "DataSource.c" - gint _tmp2_; -#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = ctr; -#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ctr = _tmp2_ + 1; -#line 2667 "DataSource.c" - } -#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = FALSE; -#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = ctr; -#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = self->priv->subscribers; -#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4__length1 = self->priv->subscribers_length1; -#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!(_tmp3_ < _tmp4__length1)) { -#line 398 "/home/jens/Source/shotwell/src/core/DataSource.vala" - break; -#line 2681 "DataSource.c" - } -#line 399 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = self->priv->subscribers; -#line 399 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5__length1 = self->priv->subscribers_length1; -#line 399 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = ctr; -#line 399 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp7_ = _tmp5_[_tmp6_]; -#line 399 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp7_ == NULL) { -#line 2693 "DataSource.c" - DataView** _tmp8_; - gint _tmp8__length1; - gint _tmp9_; - DataView* _tmp10_; - DataView* _tmp11_; -#line 400 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8_ = self->priv->subscribers; -#line 400 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8__length1 = self->priv->subscribers_length1; -#line 400 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp9_ = ctr; -#line 400 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp10_ = _g_object_ref0 (view); -#line 400 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (_tmp8_[_tmp9_]); -#line 400 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8_[_tmp9_] = _tmp10_; -#line 400 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp11_ = _tmp8_[_tmp9_]; -#line 402 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return; -#line 2715 "DataSource.c" - } - } - } - } -#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp12_ = self->priv->subscribers; -#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp12__length1 = self->priv->subscribers_length1; -#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp13_ = _g_object_ref0 (view); -#line 406 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_array_add66 (&self->priv->subscribers, &self->priv->subscribers_length1, &self->priv->_subscribers_size_, _tmp13_); -#line 2728 "DataSource.c" -} - - -void -data_source_internal_unsubscribe (DataSource* self, - DataView* view) -{ - gboolean _tmp0_; -#line 411 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_SOURCE (self)); -#line 411 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_VIEW (view)); -#line 412 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->in_contact; -#line 412 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (!_tmp0_, "!in_contact"); -#line 2745 "DataSource.c" - { - gint ctr = 0; -#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ctr = 0; -#line 2750 "DataSource.c" - { - gboolean _tmp1_ = FALSE; -#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = TRUE; -#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala" - while (TRUE) { -#line 2757 "DataSource.c" - gint _tmp3_; - DataView** _tmp4_; - gint _tmp4__length1; - DataView** _tmp5_; - gint _tmp5__length1; - gint _tmp6_; - DataView* _tmp7_; -#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!_tmp1_) { -#line 2767 "DataSource.c" - gint _tmp2_; -#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = ctr; -#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ctr = _tmp2_ + 1; -#line 2773 "DataSource.c" - } -#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = FALSE; -#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = ctr; -#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = self->priv->subscribers; -#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4__length1 = self->priv->subscribers_length1; -#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!(_tmp3_ < _tmp4__length1)) { -#line 414 "/home/jens/Source/shotwell/src/core/DataSource.vala" - break; -#line 2787 "DataSource.c" - } -#line 415 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = self->priv->subscribers; -#line 415 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5__length1 = self->priv->subscribers_length1; -#line 415 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = ctr; -#line 415 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp7_ = _tmp5_[_tmp6_]; -#line 415 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp7_ == view) { -#line 2799 "DataSource.c" - DataView** _tmp8_; - gint _tmp8__length1; - gint _tmp9_; - DataView* _tmp10_; -#line 416 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8_ = self->priv->subscribers; -#line 416 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8__length1 = self->priv->subscribers_length1; -#line 416 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp9_ = ctr; -#line 416 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (_tmp8_[_tmp9_]); -#line 416 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8_[_tmp9_] = NULL; -#line 416 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp10_ = _tmp8_[_tmp9_]; -#line 418 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return; -#line 2818 "DataSource.c" - } - } - } - } -} - - -void -data_source_contact_subscribers (DataSource* self, - DataSourceContactSubscriber contact_subscriber, - void* contact_subscriber_target) -{ - gboolean _tmp0_; -#line 423 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_SOURCE (self)); -#line 424 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->in_contact; -#line 424 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (!_tmp0_, "!in_contact"); -#line 426 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->in_contact = TRUE; -#line 2840 "DataSource.c" - { - gint ctr = 0; -#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ctr = 0; -#line 2845 "DataSource.c" - { - gboolean _tmp1_ = FALSE; -#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = TRUE; -#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala" - while (TRUE) { -#line 2852 "DataSource.c" - gint _tmp3_; - DataView** _tmp4_; - gint _tmp4__length1; - DataView** _tmp5_; - gint _tmp5__length1; - gint _tmp6_; - DataView* _tmp7_; -#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!_tmp1_) { -#line 2862 "DataSource.c" - gint _tmp2_; -#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = ctr; -#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ctr = _tmp2_ + 1; -#line 2868 "DataSource.c" - } -#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = FALSE; -#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = ctr; -#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = self->priv->subscribers; -#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4__length1 = self->priv->subscribers_length1; -#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!(_tmp3_ < _tmp4__length1)) { -#line 427 "/home/jens/Source/shotwell/src/core/DataSource.vala" - break; -#line 2882 "DataSource.c" - } -#line 428 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = self->priv->subscribers; -#line 428 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5__length1 = self->priv->subscribers_length1; -#line 428 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = ctr; -#line 428 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp7_ = _tmp5_[_tmp6_]; -#line 428 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp7_ != NULL) { -#line 2894 "DataSource.c" - DataView** _tmp8_; - gint _tmp8__length1; - gint _tmp9_; - DataView* _tmp10_; -#line 429 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8_ = self->priv->subscribers; -#line 429 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8__length1 = self->priv->subscribers_length1; -#line 429 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp9_ = ctr; -#line 429 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp10_ = _tmp8_[_tmp9_]; -#line 429 "/home/jens/Source/shotwell/src/core/DataSource.vala" - contact_subscriber (_tmp10_, contact_subscriber_target); -#line 2909 "DataSource.c" - } - } - } - } -#line 431 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->in_contact = FALSE; -#line 2916 "DataSource.c" -} - - -void -data_source_contact_subscribers_alteration (DataSource* self, - Alteration* alteration) -{ - gboolean _tmp0_; -#line 434 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_SOURCE (self)); -#line 434 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_ALTERATION (alteration)); -#line 435 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->in_contact; -#line 435 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (!_tmp0_, "!in_contact"); -#line 437 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->in_contact = TRUE; -#line 2935 "DataSource.c" - { - gint ctr = 0; -#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ctr = 0; -#line 2940 "DataSource.c" - { - gboolean _tmp1_ = FALSE; -#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = TRUE; -#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala" - while (TRUE) { -#line 2947 "DataSource.c" - gint _tmp3_; - DataView** _tmp4_; - gint _tmp4__length1; - DataView** _tmp5_; - gint _tmp5__length1; - gint _tmp6_; - DataView* _tmp7_; -#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!_tmp1_) { -#line 2957 "DataSource.c" - gint _tmp2_; -#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = ctr; -#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ctr = _tmp2_ + 1; -#line 2963 "DataSource.c" - } -#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = FALSE; -#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = ctr; -#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = self->priv->subscribers; -#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4__length1 = self->priv->subscribers_length1; -#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!(_tmp3_ < _tmp4__length1)) { -#line 438 "/home/jens/Source/shotwell/src/core/DataSource.vala" - break; -#line 2977 "DataSource.c" - } -#line 439 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = self->priv->subscribers; -#line 439 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5__length1 = self->priv->subscribers_length1; -#line 439 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = ctr; -#line 439 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp7_ = _tmp5_[_tmp6_]; -#line 439 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp7_ != NULL) { -#line 2989 "DataSource.c" - DataView** _tmp8_; - gint _tmp8__length1; - gint _tmp9_; - DataView* _tmp10_; -#line 440 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8_ = self->priv->subscribers; -#line 440 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8__length1 = self->priv->subscribers_length1; -#line 440 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp9_ = ctr; -#line 440 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp10_ = _tmp8_[_tmp9_]; -#line 440 "/home/jens/Source/shotwell/src/core/DataSource.vala" - data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_OBJECT, DataObject), alteration); -#line 3004 "DataSource.c" - } - } - } - } -#line 442 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->in_contact = FALSE; -#line 3011 "DataSource.c" -} - - -static void -data_source_real_unlinked (DataSource* self, - SourceCollection* sources) -{ -#line 51 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (sources)); -#line 3021 "DataSource.c" -} - - -static void -g_cclosure_user_marshal_VOID__DATA_COLLECTION (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__DATA_COLLECTION) (gpointer data1, gpointer arg_1, gpointer data2); - register GMarshalFunc_VOID__DATA_COLLECTION callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (n_param_values == 2); -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - data1 = closure->data; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - data2 = param_values->data[0].v_pointer; -#line 3047 "DataSource.c" - } else { -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - data1 = param_values->data[0].v_pointer; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - data2 = closure->data; -#line 3053 "DataSource.c" - } -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - callback = (GMarshalFunc_VOID__DATA_COLLECTION) (marshal_data ? marshal_data : cc->callback); -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - callback (data1, value_get_data_collection (param_values + 1), data2); -#line 3059 "DataSource.c" -} - - -static void -data_source_real_relinked (DataSource* self, - SourceCollection* sources) -{ -#line 55 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (sources)); -#line 3069 "DataSource.c" -} - - -static void -data_source_real_destroyed (DataSource* self) -{ -} - - -static void -data_source_class_init (DataSourceClass * klass) -{ -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - data_source_parent_class = g_type_class_peek_parent (klass); -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_type_class_add_private (klass, sizeof (DataSourcePrivate)); -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataObjectClass *) klass)->notify_membership_changed = (void (*) (DataObject *, DataCollection*)) data_source_real_notify_membership_changed; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataSourceClass *) klass)->notify_held_in_tank = (void (*) (DataSource *, SourceHoldingTank*)) data_source_real_notify_held_in_tank; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataObjectClass *) klass)->notify_altered = (void (*) (DataObject *, Alteration*)) data_source_real_notify_altered; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataSourceClass *) klass)->notify_unlinking = (void (*) (DataSource *, SourceCollection*)) data_source_real_notify_unlinking; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataSourceClass *) klass)->notify_unlinked = (void (*) (DataSource *)) data_source_real_notify_unlinked; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataSourceClass *) klass)->notify_relinking = (void (*) (DataSource *, SourceCollection*)) data_source_real_notify_relinking; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataSourceClass *) klass)->notify_relinked = (void (*) (DataSource *)) data_source_real_notify_relinked; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) data_source_real_get_typename; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) data_source_real_get_instance_id; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataSourceClass *) klass)->get_source_id = (gchar* (*) (DataSource *)) data_source_real_get_source_id; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataSourceClass *) klass)->commit_backlinks = (void (*) (DataSource *, SourceCollection*, const gchar*)) data_source_real_commit_backlinks; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataSourceClass *) klass)->save_snapshot = (SourceSnapshot* (*) (DataSource *)) data_source_real_save_snapshot; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataSourceClass *) klass)->internal_delete_backing = (gboolean (*) (DataSource *, GError**)) data_source_real_internal_delete_backing; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataSourceClass *) klass)->equals = (gboolean (*) (DataSource *, DataSource*)) data_source_real_equals; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataSourceClass *) klass)->destroy = (void (*) (DataSource *)) data_source_real_destroy; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataSourceClass *) klass)->unlinked = data_source_real_unlinked; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataSourceClass *) klass)->relinked = data_source_real_relinked; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((DataSourceClass *) klass)->destroyed = data_source_real_destroyed; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - G_OBJECT_CLASS (klass)->finalize = data_source_finalize; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - data_source_signals[DATA_SOURCE_UNLINKED_SIGNAL] = g_signal_new ("unlinked", TYPE_DATA_SOURCE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataSourceClass, unlinked), NULL, NULL, g_cclosure_user_marshal_VOID__DATA_COLLECTION, G_TYPE_NONE, 1, TYPE_SOURCE_COLLECTION); -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - data_source_signals[DATA_SOURCE_RELINKED_SIGNAL] = g_signal_new ("relinked", TYPE_DATA_SOURCE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataSourceClass, relinked), NULL, NULL, g_cclosure_user_marshal_VOID__DATA_COLLECTION, G_TYPE_NONE, 1, TYPE_SOURCE_COLLECTION); -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - data_source_signals[DATA_SOURCE_DESTROYED_SIGNAL] = g_signal_new ("destroyed", TYPE_DATA_SOURCE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataSourceClass, destroyed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 3130 "DataSource.c" -} - - -static void -data_source_instance_init (DataSource * self) -{ - DataView** _tmp0_; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv = DATA_SOURCE_GET_PRIVATE (self); -#line 42 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = g_new0 (DataView*, 4 + 1); -#line 42 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->subscribers = _tmp0_; -#line 42 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->subscribers_length1 = 4; -#line 42 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->_subscribers_size_ = self->priv->subscribers_length1; -#line 43 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->holding_tank = NULL; -#line 44 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->unlinked_from_collection = NULL; -#line 45 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->backlinks = NULL; -#line 46 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->in_contact = FALSE; -#line 47 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->marked_for_destroy = FALSE; -#line 48 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->is_destroyed = FALSE; -#line 3160 "DataSource.c" -} - - -static void -data_source_finalize (GObject * obj) -{ - DataSource * self; -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DATA_SOURCE, DataSource); -#line 42 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->subscribers = (_vala_array_free (self->priv->subscribers, self->priv->subscribers_length1, (GDestroyNotify) g_object_unref), NULL); -#line 43 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _source_holding_tank_unref0 (self->priv->holding_tank); -#line 45 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (self->priv->backlinks); -#line 38 "/home/jens/Source/shotwell/src/core/DataSource.vala" - G_OBJECT_CLASS (data_source_parent_class)->finalize (obj); -#line 3178 "DataSource.c" -} - - -GType -data_source_get_type (void) -{ - static volatile gsize data_source_type_id__volatile = 0; - if (g_once_init_enter (&data_source_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DataSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataSource), 0, (GInstanceInitFunc) data_source_instance_init, NULL }; - GType data_source_type_id; - data_source_type_id = g_type_register_static (TYPE_DATA_OBJECT, "DataSource", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&data_source_type_id__volatile, data_source_type_id); - } - return data_source_type_id__volatile; -} - - -static void -source_snapshot_real_notify_broken (SourceSnapshot* self) -{ -#line 455 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->snapshot_broken = TRUE; -#line 457 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_signal_emit (self, source_snapshot_signals[SOURCE_SNAPSHOT_BROKEN_SIGNAL], 0); -#line 3203 "DataSource.c" -} - - -void -source_snapshot_notify_broken (SourceSnapshot* self) -{ -#line 454 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_SOURCE_SNAPSHOT (self)); -#line 454 "/home/jens/Source/shotwell/src/core/DataSource.vala" - SOURCE_SNAPSHOT_GET_CLASS (self)->notify_broken (self); -#line 3214 "DataSource.c" -} - - -gboolean -source_snapshot_is_broken (SourceSnapshot* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 460 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_SOURCE_SNAPSHOT (self), FALSE); -#line 461 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->snapshot_broken; -#line 461 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = _tmp0_; -#line 461 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 3231 "DataSource.c" -} - - -SourceSnapshot* -source_snapshot_construct (GType object_type) -{ - SourceSnapshot* self = NULL; -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self = (SourceSnapshot*) g_type_create_instance (object_type); -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return self; -#line 3243 "DataSource.c" -} - - -static void -source_snapshot_real_broken (SourceSnapshot* self) -{ -} - - -static void -value_source_snapshot_init (GValue* value) -{ -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = NULL; -#line 3258 "DataSource.c" -} - - -static void -value_source_snapshot_free_value (GValue* value) -{ -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (value->data[0].v_pointer) { -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_snapshot_unref (value->data[0].v_pointer); -#line 3269 "DataSource.c" - } -} - - -static void -value_source_snapshot_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (src_value->data[0].v_pointer) { -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - dest_value->data[0].v_pointer = source_snapshot_ref (src_value->data[0].v_pointer); -#line 3282 "DataSource.c" - } else { -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - dest_value->data[0].v_pointer = NULL; -#line 3286 "DataSource.c" - } -} - - -static gpointer -value_source_snapshot_peek_pointer (const GValue* value) -{ -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return value->data[0].v_pointer; -#line 3296 "DataSource.c" -} - - -static gchar* -value_source_snapshot_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (collect_values[0].v_pointer) { -#line 3308 "DataSource.c" - SourceSnapshot * object; - object = collect_values[0].v_pointer; -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (object->parent_instance.g_class == NULL) { -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3315 "DataSource.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3319 "DataSource.c" - } -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = source_snapshot_ref (object); -#line 3323 "DataSource.c" - } else { -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = NULL; -#line 3327 "DataSource.c" - } -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return NULL; -#line 3331 "DataSource.c" -} - - -static gchar* -value_source_snapshot_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - SourceSnapshot ** object_p; - object_p = collect_values[0].v_pointer; -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!object_p) { -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 3347 "DataSource.c" - } -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!value->data[0].v_pointer) { -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - *object_p = NULL; -#line 3353 "DataSource.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - *object_p = value->data[0].v_pointer; -#line 3357 "DataSource.c" - } else { -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - *object_p = source_snapshot_ref (value->data[0].v_pointer); -#line 3361 "DataSource.c" - } -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return NULL; -#line 3365 "DataSource.c" -} - - -GParamSpec* -param_spec_source_snapshot (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecSourceSnapshot* spec; -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_SOURCE_SNAPSHOT), NULL); -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return G_PARAM_SPEC (spec); -#line 3385 "DataSource.c" -} - - -gpointer -value_get_source_snapshot (const GValue* value) -{ -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_SNAPSHOT), NULL); -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return value->data[0].v_pointer; -#line 3396 "DataSource.c" -} - - -void -value_set_source_snapshot (GValue* value, - gpointer v_object) -{ - SourceSnapshot * old; -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_SNAPSHOT)); -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - old = value->data[0].v_pointer; -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (v_object) { -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SOURCE_SNAPSHOT)); -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = v_object; -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_snapshot_ref (value->data[0].v_pointer); -#line 3419 "DataSource.c" - } else { -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = NULL; -#line 3423 "DataSource.c" - } -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (old) { -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_snapshot_unref (old); -#line 3429 "DataSource.c" - } -} - - -void -value_take_source_snapshot (GValue* value, - gpointer v_object) -{ - SourceSnapshot * old; -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_SNAPSHOT)); -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - old = value->data[0].v_pointer; -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (v_object) { -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SOURCE_SNAPSHOT)); -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = v_object; -#line 3451 "DataSource.c" - } else { -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = NULL; -#line 3455 "DataSource.c" - } -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (old) { -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_snapshot_unref (old); -#line 3461 "DataSource.c" - } -} - - -static void -source_snapshot_class_init (SourceSnapshotClass * klass) -{ -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_snapshot_parent_class = g_type_class_peek_parent (klass); -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((SourceSnapshotClass *) klass)->finalize = source_snapshot_finalize; -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_type_class_add_private (klass, sizeof (SourceSnapshotPrivate)); -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((SourceSnapshotClass *) klass)->notify_broken = (void (*) (SourceSnapshot *)) source_snapshot_real_notify_broken; -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((SourceSnapshotClass *) klass)->broken = source_snapshot_real_broken; -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_snapshot_signals[SOURCE_SNAPSHOT_BROKEN_SIGNAL] = g_signal_new ("broken", TYPE_SOURCE_SNAPSHOT, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceSnapshotClass, broken), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 3481 "DataSource.c" -} - - -static void -source_snapshot_instance_init (SourceSnapshot * self) -{ -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv = SOURCE_SNAPSHOT_GET_PRIVATE (self); -#line 447 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->snapshot_broken = FALSE; -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->ref_count = 1; -#line 3494 "DataSource.c" -} - - -static void -source_snapshot_finalize (SourceSnapshot * obj) -{ - SourceSnapshot * self; -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SOURCE_SNAPSHOT, SourceSnapshot); -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_signal_handlers_destroy (self); -#line 3506 "DataSource.c" -} - - -GType -source_snapshot_get_type (void) -{ - static volatile gsize source_snapshot_type_id__volatile = 0; - if (g_once_init_enter (&source_snapshot_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_source_snapshot_init, value_source_snapshot_free_value, value_source_snapshot_copy_value, value_source_snapshot_peek_pointer, "p", value_source_snapshot_collect_value, "p", value_source_snapshot_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (SourceSnapshotClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) source_snapshot_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SourceSnapshot), 0, (GInstanceInitFunc) source_snapshot_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType source_snapshot_type_id; - source_snapshot_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SourceSnapshot", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&source_snapshot_type_id__volatile, source_snapshot_type_id); - } - return source_snapshot_type_id__volatile; -} - - -gpointer -source_snapshot_ref (gpointer instance) -{ - SourceSnapshot * self; - self = instance; -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_atomic_int_inc (&self->ref_count); -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return instance; -#line 3535 "DataSource.c" -} - - -void -source_snapshot_unref (gpointer instance) -{ - SourceSnapshot * self; - self = instance; -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - SOURCE_SNAPSHOT_GET_CLASS (self)->finalize (self); -#line 446 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 3550 "DataSource.c" - } -} - - -static gchar* -string_strip (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strstrip (_tmp1_); -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3576 "DataSource.c" -} - - -SourceBacklink* -source_backlink_construct (GType object_type, - const gchar* name, - const gchar* value) -{ - SourceBacklink* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 498 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 498 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (value != NULL, NULL); -#line 498 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self = (SourceBacklink*) g_type_create_instance (object_type); -#line 499 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (source_backlink_validate_name_value (name, value), "validate_name_value(name, value)"); -#line 501 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = string_strip (name); -#line 501 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (self->priv->_name); -#line 501 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->_name = _tmp0_; -#line 502 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = string_strip (value); -#line 502 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (self->priv->_value); -#line 502 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->_value = _tmp1_; -#line 498 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return self; -#line 3610 "DataSource.c" -} - - -SourceBacklink* -source_backlink_new (const gchar* name, - const gchar* value) -{ -#line 498 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return source_backlink_construct (TYPE_SOURCE_BACKLINK, name, value); -#line 3620 "DataSource.c" -} - - -SourceBacklink* -source_backlink_construct_from_source (GType object_type, - DataSource* source) -{ - SourceBacklink* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - const gchar* _tmp6_; - const gchar* _tmp7_; -#line 505 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 505 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self = (SourceBacklink*) g_type_create_instance (object_type); -#line 506 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = data_source_get_typename (source); -#line 506 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = _tmp0_; -#line 506 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = string_strip (_tmp1_); -#line 506 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (self->priv->_name); -#line 506 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->_name = _tmp2_; -#line 506 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (_tmp1_); -#line 507 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = g_strdup_printf ("%" G_GINT64_FORMAT, data_source_get_instance_id (source)); -#line 507 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = _tmp3_; -#line 507 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = string_strip (_tmp4_); -#line 507 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (self->priv->_value); -#line 507 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->_value = _tmp5_; -#line 507 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (_tmp4_); -#line 509 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = self->priv->_name; -#line 509 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp7_ = self->priv->_value; -#line 509 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (source_backlink_validate_name_value (_tmp6_, _tmp7_), "validate_name_value(_name, _value)"); -#line 505 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return self; -#line 3673 "DataSource.c" -} - - -SourceBacklink* -source_backlink_new_from_source (DataSource* source) -{ -#line 505 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return source_backlink_construct_from_source (TYPE_SOURCE_BACKLINK, source); -#line 3682 "DataSource.c" -} - - -static gboolean -string_contains (const gchar* self, - const gchar* needle) -{ - gboolean result = FALSE; - gchar* _tmp0_; -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, FALSE); -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, FALSE); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr ((gchar*) self, (gchar*) needle); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_ != NULL; -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3702 "DataSource.c" -} - - -static gboolean -source_backlink_validate_name_value (const gchar* name, - const gchar* value) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; -#line 512 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (name != NULL, FALSE); -#line 512 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (value != NULL, FALSE); -#line 513 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!string_contains (name, "=")) { -#line 513 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = !string_contains (name, "|"); -#line 3721 "DataSource.c" - } else { -#line 513 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = FALSE; -#line 3725 "DataSource.c" - } -#line 513 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp1_) { -#line 513 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = !string_contains (value, "|"); -#line 3731 "DataSource.c" - } else { -#line 513 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = FALSE; -#line 3735 "DataSource.c" - } -#line 513 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = _tmp0_; -#line 513 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 3741 "DataSource.c" -} - - -gchar* -source_backlink_to_string (SourceBacklink* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; -#line 516 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_SOURCE_BACKLINK (self), NULL); -#line 517 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = source_backlink_get_name (self); -#line 517 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = _tmp0_; -#line 517 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = source_backlink_get_value (self); -#line 517 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = _tmp2_; -#line 517 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = g_strdup_printf ("Backlink %s=%s", _tmp1_, _tmp3_); -#line 517 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = _tmp4_; -#line 517 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 3770 "DataSource.c" -} - - -guint -source_backlink_hash_func (SourceBacklink* backlink) -{ - guint result = 0U; - GHashFunc _tmp0_; - const gchar* _tmp1_; - GHashFunc _tmp2_; - const gchar* _tmp3_; -#line 520 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail ((backlink == NULL) || IS_SOURCE_BACKLINK (backlink), 0U); -#line 521 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = g_str_hash; -#line 521 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = backlink->priv->_name; -#line 521 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = g_str_hash; -#line 521 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = backlink->priv->_value; -#line 521 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = _tmp0_ (_tmp1_) ^ _tmp2_ (_tmp3_); -#line 521 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 3796 "DataSource.c" -} - - -gboolean -source_backlink_equal_func (SourceBacklink* alink, - SourceBacklink* blink) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - GEqualFunc _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 524 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail ((alink == NULL) || IS_SOURCE_BACKLINK (alink), FALSE); -#line 524 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail ((blink == NULL) || IS_SOURCE_BACKLINK (blink), FALSE); -#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = g_str_equal; -#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = alink->priv->_name; -#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = blink->priv->_name; -#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp1_ (_tmp2_, _tmp3_)) { -#line 3821 "DataSource.c" - GEqualFunc _tmp4_; - const gchar* _tmp5_; - const gchar* _tmp6_; -#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = g_str_equal; -#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = alink->priv->_value; -#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = blink->priv->_value; -#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = _tmp4_ (_tmp5_, _tmp6_); -#line 3833 "DataSource.c" - } else { -#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = FALSE; -#line 3837 "DataSource.c" - } -#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = _tmp0_; -#line 525 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 3843 "DataSource.c" -} - - -const gchar* -source_backlink_get_name (SourceBacklink* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 473 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_SOURCE_BACKLINK (self), NULL); -#line 474 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->_name; -#line 474 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = _tmp0_; -#line 474 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 3860 "DataSource.c" -} - - -const gchar* -source_backlink_get_value (SourceBacklink* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 479 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_SOURCE_BACKLINK (self), NULL); -#line 480 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->_value; -#line 480 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = _tmp0_; -#line 480 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 3877 "DataSource.c" -} - - -const gchar* -source_backlink_get_typename (SourceBacklink* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 486 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_SOURCE_BACKLINK (self), NULL); -#line 487 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->_name; -#line 487 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = _tmp0_; -#line 487 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 3894 "DataSource.c" -} - - -static gint64 -int64_parse (const gchar* str) -{ - gint64 result = 0LL; - gint64 _tmp0_; -#line 687 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (str != NULL, 0LL); -#line 688 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_ascii_strtoll (str, NULL, (guint) 0); -#line 688 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 688 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3911 "DataSource.c" -} - - -gint64 -source_backlink_get_instance_id (SourceBacklink* self) -{ - gint64 result; - const gchar* _tmp0_; -#line 493 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_SOURCE_BACKLINK (self), 0LL); -#line 494 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->_value; -#line 494 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = int64_parse (_tmp0_); -#line 494 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 3928 "DataSource.c" -} - - -static void -value_source_backlink_init (GValue* value) -{ -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = NULL; -#line 3937 "DataSource.c" -} - - -static void -value_source_backlink_free_value (GValue* value) -{ -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (value->data[0].v_pointer) { -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_backlink_unref (value->data[0].v_pointer); -#line 3948 "DataSource.c" - } -} - - -static void -value_source_backlink_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (src_value->data[0].v_pointer) { -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - dest_value->data[0].v_pointer = source_backlink_ref (src_value->data[0].v_pointer); -#line 3961 "DataSource.c" - } else { -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - dest_value->data[0].v_pointer = NULL; -#line 3965 "DataSource.c" - } -} - - -static gpointer -value_source_backlink_peek_pointer (const GValue* value) -{ -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return value->data[0].v_pointer; -#line 3975 "DataSource.c" -} - - -static gchar* -value_source_backlink_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (collect_values[0].v_pointer) { -#line 3987 "DataSource.c" - SourceBacklink * object; - object = collect_values[0].v_pointer; -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (object->parent_instance.g_class == NULL) { -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3994 "DataSource.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3998 "DataSource.c" - } -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = source_backlink_ref (object); -#line 4002 "DataSource.c" - } else { -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = NULL; -#line 4006 "DataSource.c" - } -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return NULL; -#line 4010 "DataSource.c" -} - - -static gchar* -value_source_backlink_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - SourceBacklink ** object_p; - object_p = collect_values[0].v_pointer; -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!object_p) { -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 4026 "DataSource.c" - } -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!value->data[0].v_pointer) { -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - *object_p = NULL; -#line 4032 "DataSource.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - *object_p = value->data[0].v_pointer; -#line 4036 "DataSource.c" - } else { -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - *object_p = source_backlink_ref (value->data[0].v_pointer); -#line 4040 "DataSource.c" - } -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return NULL; -#line 4044 "DataSource.c" -} - - -GParamSpec* -param_spec_source_backlink (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecSourceBacklink* spec; -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_SOURCE_BACKLINK), NULL); -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return G_PARAM_SPEC (spec); -#line 4064 "DataSource.c" -} - - -gpointer -value_get_source_backlink (const GValue* value) -{ -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_BACKLINK), NULL); -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return value->data[0].v_pointer; -#line 4075 "DataSource.c" -} - - -void -value_set_source_backlink (GValue* value, - gpointer v_object) -{ - SourceBacklink * old; -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_BACKLINK)); -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - old = value->data[0].v_pointer; -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (v_object) { -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SOURCE_BACKLINK)); -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = v_object; -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_backlink_ref (value->data[0].v_pointer); -#line 4098 "DataSource.c" - } else { -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = NULL; -#line 4102 "DataSource.c" - } -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (old) { -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_backlink_unref (old); -#line 4108 "DataSource.c" - } -} - - -void -value_take_source_backlink (GValue* value, - gpointer v_object) -{ - SourceBacklink * old; -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_BACKLINK)); -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - old = value->data[0].v_pointer; -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (v_object) { -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SOURCE_BACKLINK)); -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = v_object; -#line 4130 "DataSource.c" - } else { -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = NULL; -#line 4134 "DataSource.c" - } -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (old) { -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_backlink_unref (old); -#line 4140 "DataSource.c" - } -} - - -static void -source_backlink_class_init (SourceBacklinkClass * klass) -{ -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_backlink_parent_class = g_type_class_peek_parent (klass); -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((SourceBacklinkClass *) klass)->finalize = source_backlink_finalize; -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_type_class_add_private (klass, sizeof (SourceBacklinkPrivate)); -#line 4154 "DataSource.c" -} - - -static void -source_backlink_instance_init (SourceBacklink * self) -{ -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv = SOURCE_BACKLINK_GET_PRIVATE (self); -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->ref_count = 1; -#line 4165 "DataSource.c" -} - - -static void -source_backlink_finalize (SourceBacklink * obj) -{ - SourceBacklink * self; -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SOURCE_BACKLINK, SourceBacklink); -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_signal_handlers_destroy (self); -#line 469 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (self->priv->_name); -#line 470 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (self->priv->_value); -#line 4181 "DataSource.c" -} - - -GType -source_backlink_get_type (void) -{ - static volatile gsize source_backlink_type_id__volatile = 0; - if (g_once_init_enter (&source_backlink_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_source_backlink_init, value_source_backlink_free_value, value_source_backlink_copy_value, value_source_backlink_peek_pointer, "p", value_source_backlink_collect_value, "p", value_source_backlink_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (SourceBacklinkClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) source_backlink_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SourceBacklink), 0, (GInstanceInitFunc) source_backlink_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType source_backlink_type_id; - source_backlink_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SourceBacklink", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&source_backlink_type_id__volatile, source_backlink_type_id); - } - return source_backlink_type_id__volatile; -} - - -gpointer -source_backlink_ref (gpointer instance) -{ - SourceBacklink * self; - self = instance; -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_atomic_int_inc (&self->ref_count); -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return instance; -#line 4210 "DataSource.c" -} - - -void -source_backlink_unref (gpointer instance) -{ - SourceBacklink * self; - self = instance; -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - SOURCE_BACKLINK_GET_CLASS (self)->finalize (self); -#line 468 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 4225 "DataSource.c" - } -} - - -static void -_source_proxy_on_source_added_data_collection_items_added (DataCollection* _sender, - GeeIterable* added, - gpointer self) -{ -#line 588 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_on_source_added ((SourceProxy*) self, added); -#line 4237 "DataSource.c" -} - - -static void -_source_proxy_on_snapshot_broken_source_snapshot_broken (SourceSnapshot* _sender, - gpointer self) -{ -#line 577 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_on_snapshot_broken ((SourceProxy*) self); -#line 4247 "DataSource.c" -} - - -SourceProxy* -source_proxy_construct (GType object_type, - DataSource* source) -{ - SourceProxy* self = NULL; - gchar* _tmp0_; - SourceSnapshot* _tmp1_; - SourceSnapshot* _tmp2_; - SourceSnapshot* _tmp3_; - DataCollection* _tmp4_; - SourceCollection* _tmp5_; - SourceCollection* _tmp6_; -#line 571 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 571 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self = (SourceProxy*) g_type_create_instance (object_type); -#line 572 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->object_id = data_object_get_object_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject)); -#line 573 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject)); -#line 573 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (self->priv->source_string); -#line 573 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->source_string = _tmp0_; -#line 575 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = data_source_save_snapshot (source); -#line 575 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _source_snapshot_unref0 (self->priv->snapshot); -#line 575 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->snapshot = _tmp1_; -#line 576 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = self->priv->snapshot; -#line 576 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (_tmp2_ != NULL, "snapshot != null"); -#line 577 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = self->priv->snapshot; -#line 577 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_signal_connect (_tmp3_, "broken", (GCallback) _source_proxy_on_snapshot_broken_source_snapshot_broken, self); -#line 579 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_set_source (self, source); -#line 581 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject)); -#line 581 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _data_collection_unref0 (self->priv->membership); -#line 581 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->membership = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_SOURCE_COLLECTION, SourceCollection); -#line 582 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = self->priv->membership; -#line 582 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (_tmp5_ != NULL, "membership != null"); -#line 583 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = self->priv->membership; -#line 583 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection), "items-added", (GCallback) _source_proxy_on_source_added_data_collection_items_added, self); -#line 571 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return self; -#line 4307 "DataSource.c" -} - - -static DataSource* -source_proxy_real_reconstitute (SourceProxy* self, - gint64 object_id, - SourceSnapshot* snapshot) -{ -#line 591 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_critical ("Type `%s' does not implement abstract method `source_proxy_reconstitute'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 591 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return NULL; -#line 4320 "DataSource.c" -} - - -DataSource* -source_proxy_reconstitute (SourceProxy* self, - gint64 object_id, - SourceSnapshot* snapshot) -{ -#line 591 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_SOURCE_PROXY (self), NULL); -#line 591 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return SOURCE_PROXY_GET_CLASS (self)->reconstitute (self, object_id, snapshot); -#line 4333 "DataSource.c" -} - - -static void -source_proxy_real_notify_reconstituted (SourceProxy* self, - DataSource* source) -{ -#line 593 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 594 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_signal_emit (self, source_proxy_signals[SOURCE_PROXY_RECONSTITUTED_SIGNAL], 0, source); -#line 4345 "DataSource.c" -} - - -void -source_proxy_notify_reconstituted (SourceProxy* self, - DataSource* source) -{ -#line 593 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_SOURCE_PROXY (self)); -#line 593 "/home/jens/Source/shotwell/src/core/DataSource.vala" - SOURCE_PROXY_GET_CLASS (self)->notify_reconstituted (self, source); -#line 4357 "DataSource.c" -} - - -static void -source_proxy_real_notify_dehydrated (SourceProxy* self) -{ -#line 598 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_signal_emit (self, source_proxy_signals[SOURCE_PROXY_DEHYDRATED_SIGNAL], 0); -#line 4366 "DataSource.c" -} - - -void -source_proxy_notify_dehydrated (SourceProxy* self) -{ -#line 597 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_SOURCE_PROXY (self)); -#line 597 "/home/jens/Source/shotwell/src/core/DataSource.vala" - SOURCE_PROXY_GET_CLASS (self)->notify_dehydrated (self); -#line 4377 "DataSource.c" -} - - -static void -source_proxy_real_notify_broken (SourceProxy* self) -{ -#line 602 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_signal_emit (self, source_proxy_signals[SOURCE_PROXY_BROKEN_SIGNAL], 0); -#line 4386 "DataSource.c" -} - - -void -source_proxy_notify_broken (SourceProxy* self) -{ -#line 601 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_SOURCE_PROXY (self)); -#line 601 "/home/jens/Source/shotwell/src/core/DataSource.vala" - SOURCE_PROXY_GET_CLASS (self)->notify_broken (self); -#line 4397 "DataSource.c" -} - - -static void -source_proxy_on_snapshot_broken (SourceProxy* self) -{ -#line 605 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_SOURCE_PROXY (self)); -#line 606 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_drop_source (self); -#line 608 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_notify_broken (self); -#line 4410 "DataSource.c" -} - - -static void -_source_proxy_on_destroyed_data_source_destroyed (DataSource* _sender, - gpointer self) -{ -#line 615 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_on_destroyed ((SourceProxy*) self); -#line 4420 "DataSource.c" -} - - -static void -source_proxy_set_source (SourceProxy* self, - DataSource* source) -{ - DataSource* _tmp0_; -#line 611 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_SOURCE_PROXY (self)); -#line 611 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 612 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_drop_source (self); -#line 614 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = _g_object_ref0 (source); -#line 614 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (self->priv->source); -#line 614 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->source = _tmp0_; -#line 615 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_signal_connect (source, "destroyed", (GCallback) _source_proxy_on_destroyed_data_source_destroyed, self); -#line 4443 "DataSource.c" -} - - -static void -source_proxy_drop_source (SourceProxy* self) -{ - DataSource* _tmp0_; - DataSource* _tmp1_; - guint _tmp2_; -#line 618 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_SOURCE_PROXY (self)); -#line 619 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->source; -#line 619 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp0_ == NULL) { -#line 620 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return; -#line 4461 "DataSource.c" - } -#line 622 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = self->priv->source; -#line 622 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_signal_parse_name ("destroyed", TYPE_DATA_SOURCE, &_tmp2_, NULL, FALSE); -#line 622 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _source_proxy_on_destroyed_data_source_destroyed, self); -#line 623 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (self->priv->source); -#line 623 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->source = NULL; -#line 4473 "DataSource.c" -} - - -DataSource* -source_proxy_get_source (SourceProxy* self) -{ - DataSource* result = NULL; - SourceSnapshot* _tmp0_; - DataSource* _tmp1_; - DataSource* new_source = NULL; - gint64 _tmp4_; - SourceSnapshot* _tmp5_; - DataSource* _tmp6_; - DataSource* _tmp7_; - DataSource* _tmp8_; - gint64 _tmp11_; - DataSource* _tmp12_; - DataSource* _tmp14_; - gint64 _tmp15_; - SourceCollection* _tmp16_; - DataSource* _tmp17_; - DataSource* _tmp18_; - DataSource* _tmp19_; -#line 626 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_SOURCE_PROXY (self), NULL); -#line 627 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->snapshot; -#line 627 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (source_snapshot_is_broken (_tmp0_)) { -#line 628 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = NULL; -#line 628 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 4507 "DataSource.c" - } -#line 630 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = self->priv->source; -#line 630 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp1_ != NULL) { -#line 4513 "DataSource.c" - DataSource* _tmp2_; - DataSource* _tmp3_; -#line 631 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = self->priv->source; -#line 631 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 631 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = _tmp3_; -#line 631 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 4524 "DataSource.c" - } -#line 636 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = self->priv->object_id; -#line 636 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = self->priv->snapshot; -#line 636 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = source_proxy_reconstitute (self, _tmp4_, _tmp5_); -#line 636 "/home/jens/Source/shotwell/src/core/DataSource.vala" - new_source = _tmp6_; -#line 637 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp7_ = self->priv->source; -#line 637 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8_ = new_source; -#line 637 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp7_ != _tmp8_) { -#line 4540 "DataSource.c" - DataSource* _tmp9_; - DataSource* _tmp10_; -#line 638 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp9_ = new_source; -#line 638 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp10_ = _g_object_ref0 (_tmp9_); -#line 638 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (self->priv->source); -#line 638 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->source = _tmp10_; -#line 4551 "DataSource.c" - } -#line 639 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp11_ = self->priv->object_id; -#line 639 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp12_ = self->priv->source; -#line 639 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp11_ != data_object_get_object_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject))) { -#line 4559 "DataSource.c" - DataSource* _tmp13_; -#line 640 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp13_ = new_source; -#line 640 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv->object_id = data_object_get_object_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_OBJECT, DataObject)); -#line 4565 "DataSource.c" - } -#line 641 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp14_ = self->priv->source; -#line 641 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp15_ = self->priv->object_id; -#line 641 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (data_object_get_object_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_OBJECT, DataObject)) == _tmp15_, "source.get_object_id() == object_id"); -#line 642 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp16_ = self->priv->membership; -#line 642 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp17_ = self->priv->source; -#line 642 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (data_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_OBJECT, DataObject)), "membership.contains(source)"); -#line 644 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp18_ = self->priv->source; -#line 644 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp19_ = _g_object_ref0 (_tmp18_); -#line 644 "/home/jens/Source/shotwell/src/core/DataSource.vala" - result = _tmp19_; -#line 644 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (new_source); -#line 644 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return result; -#line 4589 "DataSource.c" -} - - -static void -source_proxy_on_destroyed (SourceProxy* self) -{ - DataSource* _tmp0_; -#line 647 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_SOURCE_PROXY (self)); -#line 648 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->source; -#line 648 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _vala_assert (_tmp0_ != NULL, "source != null"); -#line 651 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_drop_source (self); -#line 653 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_notify_dehydrated (self); -#line 4607 "DataSource.c" -} - - -static void -source_proxy_on_source_added (SourceProxy* self, - GeeIterable* added) -{ - DataSource* _tmp0_; -#line 656 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_SOURCE_PROXY (self)); -#line 656 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (GEE_IS_ITERABLE (added)); -#line 658 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->source; -#line 658 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (_tmp0_ != NULL) { -#line 659 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return; -#line 4626 "DataSource.c" - } - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp1_; -#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp1_ = gee_iterable_iterator (added); -#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _object_it = _tmp1_; -#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala" - while (TRUE) { -#line 4637 "DataSource.c" - GeeIterator* _tmp2_; - DataObject* object = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - DataObject* _tmp5_; - gint64 _tmp6_; - DataObject* _tmp7_; - DataObject* _tmp8_; -#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp2_ = _object_it; -#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala" - break; -#line 4652 "DataSource.c" - } -#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp3_ = _object_it; -#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala" - object = (DataObject*) _tmp4_; -#line 663 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp5_ = object; -#line 663 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp6_ = self->priv->object_id; -#line 663 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (data_object_get_object_id (_tmp5_) != _tmp6_) { -#line 664 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (object); -#line 664 "/home/jens/Source/shotwell/src/core/DataSource.vala" - continue; -#line 4670 "DataSource.c" - } -#line 667 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp7_ = object; -#line 667 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_set_source (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_SOURCE, DataSource)); -#line 669 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp8_ = object; -#line 669 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_notify_reconstituted (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_SOURCE, DataSource)); -#line 671 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (object); -#line 671 "/home/jens/Source/shotwell/src/core/DataSource.vala" - break; -#line 4684 "DataSource.c" - } -#line 661 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (_object_it); -#line 4688 "DataSource.c" - } -} - - -static void -source_proxy_real_reconstituted (SourceProxy* self, - DataSource* source) -{ -#line 558 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 4699 "DataSource.c" -} - - -static void -source_proxy_real_dehydrated (SourceProxy* self) -{ -} - - -static void -source_proxy_real_broken (SourceProxy* self) -{ -} - - -static void -value_source_proxy_init (GValue* value) -{ -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = NULL; -#line 4720 "DataSource.c" -} - - -static void -value_source_proxy_free_value (GValue* value) -{ -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (value->data[0].v_pointer) { -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_unref (value->data[0].v_pointer); -#line 4731 "DataSource.c" - } -} - - -static void -value_source_proxy_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (src_value->data[0].v_pointer) { -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - dest_value->data[0].v_pointer = source_proxy_ref (src_value->data[0].v_pointer); -#line 4744 "DataSource.c" - } else { -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - dest_value->data[0].v_pointer = NULL; -#line 4748 "DataSource.c" - } -} - - -static gpointer -value_source_proxy_peek_pointer (const GValue* value) -{ -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return value->data[0].v_pointer; -#line 4758 "DataSource.c" -} - - -static gchar* -value_source_proxy_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (collect_values[0].v_pointer) { -#line 4770 "DataSource.c" - SourceProxy * object; - object = collect_values[0].v_pointer; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (object->parent_instance.g_class == NULL) { -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4777 "DataSource.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4781 "DataSource.c" - } -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = source_proxy_ref (object); -#line 4785 "DataSource.c" - } else { -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = NULL; -#line 4789 "DataSource.c" - } -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return NULL; -#line 4793 "DataSource.c" -} - - -static gchar* -value_source_proxy_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - SourceProxy ** object_p; - object_p = collect_values[0].v_pointer; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!object_p) { -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 4809 "DataSource.c" - } -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!value->data[0].v_pointer) { -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - *object_p = NULL; -#line 4815 "DataSource.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - *object_p = value->data[0].v_pointer; -#line 4819 "DataSource.c" - } else { -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - *object_p = source_proxy_ref (value->data[0].v_pointer); -#line 4823 "DataSource.c" - } -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return NULL; -#line 4827 "DataSource.c" -} - - -GParamSpec* -param_spec_source_proxy (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecSourceProxy* spec; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_SOURCE_PROXY), NULL); -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return G_PARAM_SPEC (spec); -#line 4847 "DataSource.c" -} - - -gpointer -value_get_source_proxy (const GValue* value) -{ -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_PROXY), NULL); -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return value->data[0].v_pointer; -#line 4858 "DataSource.c" -} - - -void -value_set_source_proxy (GValue* value, - gpointer v_object) -{ - SourceProxy * old; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_PROXY)); -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - old = value->data[0].v_pointer; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (v_object) { -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SOURCE_PROXY)); -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = v_object; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_ref (value->data[0].v_pointer); -#line 4881 "DataSource.c" - } else { -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = NULL; -#line 4885 "DataSource.c" - } -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (old) { -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_unref (old); -#line 4891 "DataSource.c" - } -} - - -void -value_take_source_proxy (GValue* value, - gpointer v_object) -{ - SourceProxy * old; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_PROXY)); -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - old = value->data[0].v_pointer; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (v_object) { -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SOURCE_PROXY)); -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = v_object; -#line 4913 "DataSource.c" - } else { -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - value->data[0].v_pointer = NULL; -#line 4917 "DataSource.c" - } -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (old) { -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_unref (old); -#line 4923 "DataSource.c" - } -} - - -static void -source_proxy_class_init (SourceProxyClass * klass) -{ -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_parent_class = g_type_class_peek_parent (klass); -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((SourceProxyClass *) klass)->finalize = source_proxy_finalize; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_type_class_add_private (klass, sizeof (SourceProxyPrivate)); -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((SourceProxyClass *) klass)->reconstitute = (DataSource* (*) (SourceProxy *, gint64, SourceSnapshot*)) source_proxy_real_reconstitute; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((SourceProxyClass *) klass)->notify_reconstituted = (void (*) (SourceProxy *, DataSource*)) source_proxy_real_notify_reconstituted; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((SourceProxyClass *) klass)->notify_dehydrated = (void (*) (SourceProxy *)) source_proxy_real_notify_dehydrated; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((SourceProxyClass *) klass)->notify_broken = (void (*) (SourceProxy *)) source_proxy_real_notify_broken; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((SourceProxyClass *) klass)->reconstituted = source_proxy_real_reconstituted; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((SourceProxyClass *) klass)->dehydrated = source_proxy_real_dehydrated; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - ((SourceProxyClass *) klass)->broken = source_proxy_real_broken; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_signals[SOURCE_PROXY_RECONSTITUTED_SIGNAL] = g_signal_new ("reconstituted", TYPE_SOURCE_PROXY, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceProxyClass, reconstituted), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_DATA_SOURCE); -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_signals[SOURCE_PROXY_DEHYDRATED_SIGNAL] = g_signal_new ("dehydrated", TYPE_SOURCE_PROXY, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceProxyClass, dehydrated), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_signals[SOURCE_PROXY_BROKEN_SIGNAL] = g_signal_new ("broken", TYPE_SOURCE_PROXY, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceProxyClass, broken), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 4957 "DataSource.c" -} - - -static void -source_proxy_instance_init (SourceProxy * self) -{ -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->priv = SOURCE_PROXY_GET_PRIVATE (self); -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self->ref_count = 1; -#line 4968 "DataSource.c" -} - - -static void -source_proxy_finalize (SourceProxy * obj) -{ - SourceProxy * self; - SourceCollection* _tmp0_; - guint _tmp1_; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SOURCE_PROXY, SourceProxy); -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_signal_handlers_destroy (self); -#line 587 "/home/jens/Source/shotwell/src/core/DataSource.vala" - source_proxy_drop_source (self); -#line 588 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _tmp0_ = self->priv->membership; -#line 588 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_signal_parse_name ("items-added", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE); -#line 588 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _source_proxy_on_source_added_data_collection_items_added, self); -#line 551 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_free0 (self->priv->source_string); -#line 552 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _g_object_unref0 (self->priv->source); -#line 553 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _source_snapshot_unref0 (self->priv->snapshot); -#line 554 "/home/jens/Source/shotwell/src/core/DataSource.vala" - _data_collection_unref0 (self->priv->membership); -#line 4998 "DataSource.c" -} - - -GType -source_proxy_get_type (void) -{ - static volatile gsize source_proxy_type_id__volatile = 0; - if (g_once_init_enter (&source_proxy_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_source_proxy_init, value_source_proxy_free_value, value_source_proxy_copy_value, value_source_proxy_peek_pointer, "p", value_source_proxy_collect_value, "p", value_source_proxy_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (SourceProxyClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) source_proxy_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SourceProxy), 0, (GInstanceInitFunc) source_proxy_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType source_proxy_type_id; - source_proxy_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SourceProxy", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&source_proxy_type_id__volatile, source_proxy_type_id); - } - return source_proxy_type_id__volatile; -} - - -gpointer -source_proxy_ref (gpointer instance) -{ - SourceProxy * self; - self = instance; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_atomic_int_inc (&self->ref_count); -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return instance; -#line 5027 "DataSource.c" -} - - -void -source_proxy_unref (gpointer instance) -{ - SourceProxy * self; - self = instance; -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - SOURCE_PROXY_GET_CLASS (self)->finalize (self); -#line 549 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 5042 "DataSource.c" - } -} - - -SourceProxy* -proxyable_get_proxy (Proxyable* self) -{ -#line 677 "/home/jens/Source/shotwell/src/core/DataSource.vala" - g_return_val_if_fail (IS_PROXYABLE (self), NULL); -#line 677 "/home/jens/Source/shotwell/src/core/DataSource.vala" - return PROXYABLE_GET_INTERFACE (self)->get_proxy (self); -#line 5054 "DataSource.c" -} - - -static void -proxyable_base_init (ProxyableIface * iface) -{ -#line 676 "/home/jens/Source/shotwell/src/core/DataSource.vala" - static gboolean initialized = FALSE; -#line 676 "/home/jens/Source/shotwell/src/core/DataSource.vala" - if (!initialized) { -#line 676 "/home/jens/Source/shotwell/src/core/DataSource.vala" - initialized = TRUE; -#line 5067 "DataSource.c" - } -} - - -GType -proxyable_get_type (void) -{ - static volatile gsize proxyable_type_id__volatile = 0; - if (g_once_init_enter (&proxyable_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ProxyableIface), (GBaseInitFunc) proxyable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType proxyable_type_id; - proxyable_type_id = g_type_register_static (G_TYPE_INTERFACE, "Proxyable", &g_define_type_info, 0); - g_type_interface_add_prerequisite (proxyable_type_id, G_TYPE_OBJECT); - g_once_init_leave (&proxyable_type_id__volatile, proxyable_type_id); - } - return proxyable_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/src/core/DataSourceTypes.c b/src/core/DataSourceTypes.c deleted file mode 100644 index 5fda46c..0000000 --- a/src/core/DataSourceTypes.c +++ /dev/null @@ -1,1336 +0,0 @@ -/* DataSourceTypes.c generated by valac 0.40.4, the Vala compiler - * generated from DataSourceTypes.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/**/ -/* Media sources*/ -/**/ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; -typedef struct _DataSourcePrivate DataSourcePrivate; - -#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ()) -#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)) -#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) -#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK)) -#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK)) -#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) - -typedef struct _SourceHoldingTank SourceHoldingTank; -typedef struct _SourceHoldingTankClass SourceHoldingTankClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ()) -#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot)) -#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) -#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT)) -#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT)) -#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) - -typedef struct _SourceSnapshot SourceSnapshot; -typedef struct _SourceSnapshotClass SourceSnapshotClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; -typedef struct _ThumbnailSourcePrivate ThumbnailSourcePrivate; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) -enum { - THUMBNAIL_SOURCE_0_PROPERTY, - THUMBNAIL_SOURCE_NUM_PROPERTIES -}; -static GParamSpec* thumbnail_source_properties[THUMBNAIL_SOURCE_NUM_PROPERTIES]; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; -enum { - THUMBNAIL_SOURCE_THUMBNAIL_ALTERED_SIGNAL, - THUMBNAIL_SOURCE_NUM_SIGNALS -}; -static guint thumbnail_source_signals[THUMBNAIL_SOURCE_NUM_SIGNALS] = {0}; - -#define TYPE_INDEXABLE (indexable_get_type ()) -#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable)) -#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE)) -#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface)) - -typedef struct _Indexable Indexable; -typedef struct _IndexableIface IndexableIface; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; -typedef struct _MediaSourcePrivate MediaSourcePrivate; - -#define TYPE_EVENT_ID (event_id_get_type ()) -typedef struct _EventID EventID; - -#define TYPE_BACKING_FILE_STATE (backing_file_state_get_type ()) -#define BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_FILE_STATE, BackingFileState)) -#define BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_FILE_STATE, BackingFileStateClass)) -#define IS_BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_FILE_STATE)) -#define IS_BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_FILE_STATE)) -#define BACKING_FILE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_FILE_STATE, BackingFileStateClass)) - -typedef struct _BackingFileState BackingFileState; -typedef struct _BackingFileStateClass BackingFileStateClass; - -#define TYPE_RATING (rating_get_type ()) - -#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) -typedef struct _Scaling Scaling; - -#define TYPE_IMPORT_ID (import_id_get_type ()) -typedef struct _ImportID ImportID; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; -typedef struct _PhotoSourcePrivate PhotoSourcePrivate; - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; -enum { - PHOTO_SOURCE_0_PROPERTY, - PHOTO_SOURCE_NUM_PROPERTIES -}; -static GParamSpec* photo_source_properties[PHOTO_SOURCE_NUM_PROPERTIES]; - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; -typedef struct _VideoSourcePrivate VideoSourcePrivate; -enum { - VIDEO_SOURCE_0_PROPERTY, - VIDEO_SOURCE_NUM_PROPERTIES -}; -static GParamSpec* video_source_properties[VIDEO_SOURCE_NUM_PROPERTIES]; - -#define TYPE_EVENT_SOURCE (event_source_get_type ()) -#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource)) -#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass)) -#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE)) -#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE)) -#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass)) - -typedef struct _EventSource EventSource; -typedef struct _EventSourceClass EventSourceClass; -typedef struct _EventSourcePrivate EventSourcePrivate; -enum { - EVENT_SOURCE_0_PROPERTY, - EVENT_SOURCE_NUM_PROPERTIES -}; -static GParamSpec* event_source_properties[EVENT_SOURCE_NUM_PROPERTIES]; - -#define TYPE_CONTAINER_SOURCE (container_source_get_type ()) -#define CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE, ContainerSource)) -#define IS_CONTAINER_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE)) -#define CONTAINER_SOURCE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_CONTAINER_SOURCE, ContainerSourceIface)) - -typedef struct _ContainerSource ContainerSource; -typedef struct _ContainerSourceIface ContainerSourceIface; - -#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ()) -#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink)) -#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) -#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK)) -#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK)) -#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) - -typedef struct _SourceBacklink SourceBacklink; -typedef struct _SourceBacklinkClass SourceBacklinkClass; - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataSource { - DataObject parent_instance; - DataSourcePrivate * priv; -}; - -struct _DataSourceClass { - DataObjectClass parent_class; - void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank); - void (*notify_unlinking) (DataSource* self, SourceCollection* collection); - void (*notify_unlinked) (DataSource* self); - void (*notify_relinking) (DataSource* self, SourceCollection* collection); - void (*notify_relinked) (DataSource* self); - gchar* (*get_typename) (DataSource* self); - gint64 (*get_instance_id) (DataSource* self); - gchar* (*get_source_id) (DataSource* self); - void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated); - SourceSnapshot* (*save_snapshot) (DataSource* self); - gboolean (*internal_delete_backing) (DataSource* self, GError** error); - gboolean (*equals) (DataSource* self, DataSource* source); - void (*destroy) (DataSource* self); - void (*unlinked) (DataSource* self, SourceCollection* sources); - void (*relinked) (DataSource* self, SourceCollection* sources); - void (*destroyed) (DataSource* self); -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _ThumbnailSource { - DataSource parent_instance; - ThumbnailSourcePrivate * priv; -}; - -struct _ThumbnailSourceClass { - DataSourceClass parent_class; - void (*notify_thumbnail_altered) (ThumbnailSource* self); - GdkPixbuf* (*get_thumbnail) (ThumbnailSource* self, gint scale, GError** error); - GdkPixbuf* (*create_thumbnail) (ThumbnailSource* self, gint scale, GError** error); - gchar* (*get_representative_id) (ThumbnailSource* self); - PhotoFileFormat (*get_preferred_thumbnail_format) (ThumbnailSource* self); - void (*thumbnail_altered) (ThumbnailSource* self); -}; - -typedef void (*DataSourceContactSubscriber) (DataView* view, void* user_data); -struct _IndexableIface { - GTypeInterface parent_iface; - const gchar* (*get_indexable_keywords) (Indexable* self); -}; - -struct _EventID { - gint64 id; -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - PHOTO_EXCEPTION_NONE = 0, - PHOTO_EXCEPTION_ORIENTATION = 1 << 0, - PHOTO_EXCEPTION_CROP = 1 << 1, - PHOTO_EXCEPTION_REDEYE = 1 << 2, - PHOTO_EXCEPTION_ADJUST = 1 << 3, - PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4, - PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL -} PhotoException; - -struct _Dimensions { - gint width; - gint height; -}; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -struct _ImportID { - gint64 id; -}; - -struct _MediaSource { - ThumbnailSource parent_instance; - MediaSourcePrivate * priv; -}; - -struct _MediaSourceClass { - ThumbnailSourceClass parent_class; - void (*notify_master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file); - gboolean (*set_event_id) (MediaSource* self, EventID* id); - gchar* (*get_basename) (MediaSource* self); - GFile* (*get_file) (MediaSource* self); - GFile* (*get_master_file) (MediaSource* self); - guint64 (*get_master_filesize) (MediaSource* self); - guint64 (*get_filesize) (MediaSource* self); - time_t (*get_timestamp) (MediaSource* self); - BackingFileState** (*get_backing_files_state) (MediaSource* self, int* result_length1); - gchar* (*get_title) (MediaSource* self); - gchar* (*get_comment) (MediaSource* self); - void (*set_title) (MediaSource* self, const gchar* title); - gboolean (*set_comment) (MediaSource* self, const gchar* comment); - Rating (*get_rating) (MediaSource* self); - void (*set_rating) (MediaSource* self, Rating rating); - void (*increase_rating) (MediaSource* self); - void (*decrease_rating) (MediaSource* self); - void (*get_dimensions) (MediaSource* self, PhotoException disallowed_steps, Dimensions* result); - GdkPixbuf* (*get_preview_pixbuf) (MediaSource* self, Scaling* scaling, GError** error); - gboolean (*is_trashed) (MediaSource* self); - void (*trash) (MediaSource* self); - void (*untrash) (MediaSource* self); - gboolean (*is_offline) (MediaSource* self); - void (*mark_offline) (MediaSource* self); - void (*mark_online) (MediaSource* self); - gchar* (*get_master_md5) (MediaSource* self); - void (*get_event_id) (MediaSource* self, EventID* result); - time_t (*get_exposure_time) (MediaSource* self); - void (*get_import_id) (MediaSource* self, ImportID* result); - void (*master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file); -}; - -struct _PhotoSource { - MediaSource parent_instance; - PhotoSourcePrivate * priv; -}; - -struct _PhotoSourceClass { - MediaSourceClass parent_class; - PhotoMetadata* (*get_metadata) (PhotoSource* self); - GdkPixbuf* (*get_pixbuf) (PhotoSource* self, Scaling* scaling, GError** error); -}; - -struct _VideoSource { - MediaSource parent_instance; - VideoSourcePrivate * priv; -}; - -struct _VideoSourceClass { - MediaSourceClass parent_class; -}; - -struct _EventSource { - ThumbnailSource parent_instance; - EventSourcePrivate * priv; -}; - -struct _EventSourceClass { - ThumbnailSourceClass parent_class; - time_t (*get_start_time) (EventSource* self); - time_t (*get_end_time) (EventSource* self); - guint64 (*get_total_filesize) (EventSource* self); - gint (*get_media_count) (EventSource* self); - GeeCollection* (*get_media) (EventSource* self); - gchar* (*get_comment) (EventSource* self); - gboolean (*set_comment) (EventSource* self, const gchar* comment); -}; - -struct _ContainerSourceIface { - GTypeInterface parent_iface; - gboolean (*has_links) (ContainerSource* self); - SourceBacklink* (*get_backlink) (ContainerSource* self); - void (*break_link) (ContainerSource* self, DataSource* source); - void (*break_link_many) (ContainerSource* self, GeeCollection* sources); - void (*establish_link) (ContainerSource* self, DataSource* source); - void (*establish_link_many) (ContainerSource* self, GeeCollection* sources); -}; - - -static gpointer thumbnail_source_parent_class = NULL; -static gpointer photo_source_parent_class = NULL; -static gpointer video_source_parent_class = NULL; -static gpointer event_source_parent_class = NULL; - -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -gpointer source_holding_tank_ref (gpointer instance); -void source_holding_tank_unref (gpointer instance); -GParamSpec* param_spec_source_holding_tank (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_holding_tank (GValue* value, - gpointer v_object); -void value_take_source_holding_tank (GValue* value, - gpointer v_object); -gpointer value_get_source_holding_tank (const GValue* value); -GType source_holding_tank_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -gpointer source_snapshot_ref (gpointer instance); -void source_snapshot_unref (gpointer instance); -GParamSpec* param_spec_source_snapshot (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_snapshot (GValue* value, - gpointer v_object); -void value_take_source_snapshot (GValue* value, - gpointer v_object); -gpointer value_get_source_snapshot (const GValue* value); -GType source_snapshot_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -ThumbnailSource* thumbnail_source_construct (GType object_type, - gint64 object_id); -DataSource* data_source_construct (GType object_type, - gint64 object_id); -void thumbnail_source_notify_thumbnail_altered (ThumbnailSource* self); -static void thumbnail_source_real_notify_thumbnail_altered (ThumbnailSource* self); -GType data_view_get_type (void) G_GNUC_CONST; -void data_source_contact_subscribers (DataSource* self, - DataSourceContactSubscriber contact_subscriber, - void* contact_subscriber_target); -static void thumbnail_source_subscriber_thumbnail_altered (ThumbnailSource* self, - DataView* view); -static void _thumbnail_source_subscriber_thumbnail_altered_data_source_contact_subscriber (DataView* view, - gpointer self); -GType thumbnail_view_get_type (void) G_GNUC_CONST; -void thumbnail_view_notify_thumbnail_altered (ThumbnailView* self); -GdkPixbuf* thumbnail_source_get_thumbnail (ThumbnailSource* self, - gint scale, - GError** error); -static GdkPixbuf* thumbnail_source_real_get_thumbnail (ThumbnailSource* self, - gint scale, - GError** error); -GdkPixbuf* thumbnail_source_create_thumbnail (ThumbnailSource* self, - gint scale, - GError** error); -static GdkPixbuf* thumbnail_source_real_create_thumbnail (ThumbnailSource* self, - gint scale, - GError** error); -gchar* thumbnail_source_get_representative_id (ThumbnailSource* self); -static gchar* thumbnail_source_real_get_representative_id (ThumbnailSource* self); -gchar* data_source_get_source_id (DataSource* self); -PhotoFileFormat thumbnail_source_get_preferred_thumbnail_format (ThumbnailSource* self); -static PhotoFileFormat thumbnail_source_real_get_preferred_thumbnail_format (ThumbnailSource* self); -static void thumbnail_source_real_thumbnail_altered (ThumbnailSource* self); -GType indexable_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType event_id_get_type (void) G_GNUC_CONST; -EventID* event_id_dup (const EventID* self); -void event_id_free (EventID* self); -gpointer backing_file_state_ref (gpointer instance); -void backing_file_state_unref (gpointer instance); -GParamSpec* param_spec_backing_file_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_backing_file_state (GValue* value, - gpointer v_object); -void value_take_backing_file_state (GValue* value, - gpointer v_object); -gpointer value_get_backing_file_state (const GValue* value); -GType backing_file_state_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -GType photo_exception_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -GType import_id_get_type (void) G_GNUC_CONST; -ImportID* import_id_dup (const ImportID* self); -void import_id_free (ImportID* self); -GType photo_source_get_type (void) G_GNUC_CONST; -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -PhotoSource* photo_source_construct (GType object_type, - gint64 object_id); -MediaSource* media_source_construct (GType object_type, - gint64 object_id); -PhotoMetadata* photo_source_get_metadata (PhotoSource* self); -static PhotoMetadata* photo_source_real_get_metadata (PhotoSource* self); -GdkPixbuf* photo_source_get_pixbuf (PhotoSource* self, - Scaling* scaling, - GError** error); -static GdkPixbuf* photo_source_real_get_pixbuf (PhotoSource* self, - Scaling* scaling, - GError** error); -GType video_source_get_type (void) G_GNUC_CONST; -VideoSource* video_source_construct (GType object_type); -#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1) -GType event_source_get_type (void) G_GNUC_CONST; -EventSource* event_source_construct (GType object_type, - gint64 object_id); -time_t event_source_get_start_time (EventSource* self); -static time_t event_source_real_get_start_time (EventSource* self); -time_t event_source_get_end_time (EventSource* self); -static time_t event_source_real_get_end_time (EventSource* self); -guint64 event_source_get_total_filesize (EventSource* self); -static guint64 event_source_real_get_total_filesize (EventSource* self); -gint event_source_get_media_count (EventSource* self); -static gint event_source_real_get_media_count (EventSource* self); -GeeCollection* event_source_get_media (EventSource* self); -static GeeCollection* event_source_real_get_media (EventSource* self); -gchar* event_source_get_comment (EventSource* self); -static gchar* event_source_real_get_comment (EventSource* self); -gboolean event_source_set_comment (EventSource* self, - const gchar* comment); -static gboolean event_source_real_set_comment (EventSource* self, - const gchar* comment); -gpointer source_backlink_ref (gpointer instance); -void source_backlink_unref (gpointer instance); -GParamSpec* param_spec_source_backlink (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_backlink (GValue* value, - gpointer v_object); -void value_take_source_backlink (GValue* value, - gpointer v_object); -gpointer value_get_source_backlink (const GValue* value); -GType source_backlink_get_type (void) G_GNUC_CONST; -GType container_source_get_type (void) G_GNUC_CONST; -gboolean container_source_has_links (ContainerSource* self); -SourceBacklink* container_source_get_backlink (ContainerSource* self); -void container_source_break_link (ContainerSource* self, - DataSource* source); -void container_source_break_link_many (ContainerSource* self, - GeeCollection* sources); -void container_source_establish_link (ContainerSource* self, - DataSource* source); -void container_source_establish_link_many (ContainerSource* self, - GeeCollection* sources); - - -ThumbnailSource* -thumbnail_source_construct (GType object_type, - gint64 object_id) -{ - ThumbnailSource * self = NULL; -#line 16 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - self = (ThumbnailSource*) data_source_construct (object_type, object_id); -#line 15 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return self; -#line 687 "DataSourceTypes.c" -} - - -static void -_thumbnail_source_subscriber_thumbnail_altered_data_source_contact_subscriber (DataView* view, - gpointer self) -{ -#line 24 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - thumbnail_source_subscriber_thumbnail_altered ((ThumbnailSource*) self, view); -#line 697 "DataSourceTypes.c" -} - - -static void -thumbnail_source_real_notify_thumbnail_altered (ThumbnailSource* self) -{ -#line 21 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_signal_emit (self, thumbnail_source_signals[THUMBNAIL_SOURCE_THUMBNAIL_ALTERED_SIGNAL], 0); -#line 24 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - data_source_contact_subscribers (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource), _thumbnail_source_subscriber_thumbnail_altered_data_source_contact_subscriber, self); -#line 708 "DataSourceTypes.c" -} - - -void -thumbnail_source_notify_thumbnail_altered (ThumbnailSource* self) -{ -#line 19 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (self)); -#line 19 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - THUMBNAIL_SOURCE_GET_CLASS (self)->notify_thumbnail_altered (self); -#line 719 "DataSourceTypes.c" -} - - -static void -thumbnail_source_subscriber_thumbnail_altered (ThumbnailSource* self, - DataView* view) -{ -#line 27 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (self)); -#line 27 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_if_fail (IS_DATA_VIEW (view)); -#line 28 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - thumbnail_view_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_THUMBNAIL_VIEW, ThumbnailView)); -#line 733 "DataSourceTypes.c" -} - - -static GdkPixbuf* -thumbnail_source_real_get_thumbnail (ThumbnailSource* self, - gint scale, - GError** error) -{ -#line 31 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_critical ("Type `%s' does not implement abstract method `thumbnail_source_get_thumbnail'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 31 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return NULL; -#line 746 "DataSourceTypes.c" -} - - -GdkPixbuf* -thumbnail_source_get_thumbnail (ThumbnailSource* self, - gint scale, - GError** error) -{ -#line 31 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_val_if_fail (IS_THUMBNAIL_SOURCE (self), NULL); -#line 31 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return THUMBNAIL_SOURCE_GET_CLASS (self)->get_thumbnail (self, scale, error); -#line 759 "DataSourceTypes.c" -} - - -static GdkPixbuf* -thumbnail_source_real_create_thumbnail (ThumbnailSource* self, - gint scale, - GError** error) -{ -#line 35 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_critical ("Type `%s' does not implement abstract method `thumbnail_source_create_thumbnail'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 35 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return NULL; -#line 772 "DataSourceTypes.c" -} - - -GdkPixbuf* -thumbnail_source_create_thumbnail (ThumbnailSource* self, - gint scale, - GError** error) -{ -#line 35 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_val_if_fail (IS_THUMBNAIL_SOURCE (self), NULL); -#line 35 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return THUMBNAIL_SOURCE_GET_CLASS (self)->create_thumbnail (self, scale, error); -#line 785 "DataSourceTypes.c" -} - - -static gchar* -thumbnail_source_real_get_representative_id (ThumbnailSource* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 47 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - _tmp0_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource)); -#line 47 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - result = _tmp0_; -#line 47 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return result; -#line 800 "DataSourceTypes.c" -} - - -gchar* -thumbnail_source_get_representative_id (ThumbnailSource* self) -{ -#line 46 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_val_if_fail (IS_THUMBNAIL_SOURCE (self), NULL); -#line 46 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return THUMBNAIL_SOURCE_GET_CLASS (self)->get_representative_id (self); -#line 811 "DataSourceTypes.c" -} - - -static PhotoFileFormat -thumbnail_source_real_get_preferred_thumbnail_format (ThumbnailSource* self) -{ -#line 50 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_critical ("Type `%s' does not implement abstract method `thumbnail_source_get_preferred_thumbnail_format'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 50 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return 0; -#line 822 "DataSourceTypes.c" -} - - -PhotoFileFormat -thumbnail_source_get_preferred_thumbnail_format (ThumbnailSource* self) -{ -#line 50 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_val_if_fail (IS_THUMBNAIL_SOURCE (self), 0); -#line 50 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return THUMBNAIL_SOURCE_GET_CLASS (self)->get_preferred_thumbnail_format (self); -#line 833 "DataSourceTypes.c" -} - - -static void -thumbnail_source_real_thumbnail_altered (ThumbnailSource* self) -{ -} - - -static void -thumbnail_source_class_init (ThumbnailSourceClass * klass) -{ -#line 11 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - thumbnail_source_parent_class = g_type_class_peek_parent (klass); -#line 11 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - ((ThumbnailSourceClass *) klass)->notify_thumbnail_altered = (void (*) (ThumbnailSource *)) thumbnail_source_real_notify_thumbnail_altered; -#line 11 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - ((ThumbnailSourceClass *) klass)->get_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) thumbnail_source_real_get_thumbnail; -#line 11 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - ((ThumbnailSourceClass *) klass)->create_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) thumbnail_source_real_create_thumbnail; -#line 11 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - ((ThumbnailSourceClass *) klass)->get_representative_id = (gchar* (*) (ThumbnailSource *)) thumbnail_source_real_get_representative_id; -#line 11 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - ((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = (PhotoFileFormat (*) (ThumbnailSource *)) thumbnail_source_real_get_preferred_thumbnail_format; -#line 11 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - ((ThumbnailSourceClass *) klass)->thumbnail_altered = thumbnail_source_real_thumbnail_altered; -#line 11 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - thumbnail_source_signals[THUMBNAIL_SOURCE_THUMBNAIL_ALTERED_SIGNAL] = g_signal_new ("thumbnail-altered", TYPE_THUMBNAIL_SOURCE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ThumbnailSourceClass, thumbnail_altered), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 862 "DataSourceTypes.c" -} - - -static void -thumbnail_source_instance_init (ThumbnailSource * self) -{ -} - - -GType -thumbnail_source_get_type (void) -{ - static volatile gsize thumbnail_source_type_id__volatile = 0; - if (g_once_init_enter (&thumbnail_source_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ThumbnailSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) thumbnail_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ThumbnailSource), 0, (GInstanceInitFunc) thumbnail_source_instance_init, NULL }; - GType thumbnail_source_type_id; - thumbnail_source_type_id = g_type_register_static (TYPE_DATA_SOURCE, "ThumbnailSource", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&thumbnail_source_type_id__volatile, thumbnail_source_type_id); - } - return thumbnail_source_type_id__volatile; -} - - -PhotoSource* -photo_source_construct (GType object_type, - gint64 object_id) -{ - PhotoSource * self = NULL; -#line 55 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - self = (PhotoSource*) media_source_construct (object_type, object_id); -#line 54 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return self; -#line 895 "DataSourceTypes.c" -} - - -static PhotoMetadata* -photo_source_real_get_metadata (PhotoSource* self) -{ -#line 58 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_critical ("Type `%s' does not implement abstract method `photo_source_get_metadata'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 58 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return NULL; -#line 906 "DataSourceTypes.c" -} - - -PhotoMetadata* -photo_source_get_metadata (PhotoSource* self) -{ -#line 58 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_val_if_fail (IS_PHOTO_SOURCE (self), NULL); -#line 58 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return PHOTO_SOURCE_GET_CLASS (self)->get_metadata (self); -#line 917 "DataSourceTypes.c" -} - - -static GdkPixbuf* -photo_source_real_get_pixbuf (PhotoSource* self, - Scaling* scaling, - GError** error) -{ -#line 60 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_critical ("Type `%s' does not implement abstract method `photo_source_get_pixbuf'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 60 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return NULL; -#line 930 "DataSourceTypes.c" -} - - -GdkPixbuf* -photo_source_get_pixbuf (PhotoSource* self, - Scaling* scaling, - GError** error) -{ -#line 60 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_val_if_fail (IS_PHOTO_SOURCE (self), NULL); -#line 60 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return PHOTO_SOURCE_GET_CLASS (self)->get_pixbuf (self, scaling, error); -#line 943 "DataSourceTypes.c" -} - - -static void -photo_source_class_init (PhotoSourceClass * klass) -{ -#line 53 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - photo_source_parent_class = g_type_class_peek_parent (klass); -#line 53 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - ((PhotoSourceClass *) klass)->get_metadata = (PhotoMetadata* (*) (PhotoSource *)) photo_source_real_get_metadata; -#line 53 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - ((PhotoSourceClass *) klass)->get_pixbuf = (GdkPixbuf* (*) (PhotoSource *, Scaling*, GError**)) photo_source_real_get_pixbuf; -#line 956 "DataSourceTypes.c" -} - - -static void -photo_source_instance_init (PhotoSource * self) -{ -} - - -GType -photo_source_get_type (void) -{ - static volatile gsize photo_source_type_id__volatile = 0; - if (g_once_init_enter (&photo_source_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoSource), 0, (GInstanceInitFunc) photo_source_instance_init, NULL }; - GType photo_source_type_id; - photo_source_type_id = g_type_register_static (TYPE_MEDIA_SOURCE, "PhotoSource", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&photo_source_type_id__volatile, photo_source_type_id); - } - return photo_source_type_id__volatile; -} - - -VideoSource* -video_source_construct (GType object_type) -{ - VideoSource * self = NULL; -#line 63 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - self = (VideoSource*) media_source_construct (object_type, DATA_OBJECT_INVALID_OBJECT_ID); -#line 63 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return self; -#line 988 "DataSourceTypes.c" -} - - -static void -video_source_class_init (VideoSourceClass * klass) -{ -#line 63 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - video_source_parent_class = g_type_class_peek_parent (klass); -#line 997 "DataSourceTypes.c" -} - - -static void -video_source_instance_init (VideoSource * self) -{ -} - - -GType -video_source_get_type (void) -{ - static volatile gsize video_source_type_id__volatile = 0; - if (g_once_init_enter (&video_source_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (VideoSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoSource), 0, (GInstanceInitFunc) video_source_instance_init, NULL }; - GType video_source_type_id; - video_source_type_id = g_type_register_static (TYPE_MEDIA_SOURCE, "VideoSource", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&video_source_type_id__volatile, video_source_type_id); - } - return video_source_type_id__volatile; -} - - -EventSource* -event_source_construct (GType object_type, - gint64 object_id) -{ - EventSource * self = NULL; -#line 72 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - self = (EventSource*) thumbnail_source_construct (object_type, object_id); -#line 71 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return self; -#line 1030 "DataSourceTypes.c" -} - - -static time_t -event_source_real_get_start_time (EventSource* self) -{ - time_t _tmp0_ = 0; -#line 75 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_critical ("Type `%s' does not implement abstract method `event_source_get_start_time'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 75 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return _tmp0_; -#line 1042 "DataSourceTypes.c" -} - - -time_t -event_source_get_start_time (EventSource* self) -{ -#line 75 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_val_if_fail (IS_EVENT_SOURCE (self), 0); -#line 75 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return EVENT_SOURCE_GET_CLASS (self)->get_start_time (self); -#line 1053 "DataSourceTypes.c" -} - - -static time_t -event_source_real_get_end_time (EventSource* self) -{ - time_t _tmp0_ = 0; -#line 77 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_critical ("Type `%s' does not implement abstract method `event_source_get_end_time'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 77 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return _tmp0_; -#line 1065 "DataSourceTypes.c" -} - - -time_t -event_source_get_end_time (EventSource* self) -{ -#line 77 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_val_if_fail (IS_EVENT_SOURCE (self), 0); -#line 77 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return EVENT_SOURCE_GET_CLASS (self)->get_end_time (self); -#line 1076 "DataSourceTypes.c" -} - - -static guint64 -event_source_real_get_total_filesize (EventSource* self) -{ - guint64 _tmp0_ = 0ULL; -#line 79 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_critical ("Type `%s' does not implement abstract method `event_source_get_total_filesize'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 79 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return _tmp0_; -#line 1088 "DataSourceTypes.c" -} - - -guint64 -event_source_get_total_filesize (EventSource* self) -{ -#line 79 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_val_if_fail (IS_EVENT_SOURCE (self), 0ULL); -#line 79 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return EVENT_SOURCE_GET_CLASS (self)->get_total_filesize (self); -#line 1099 "DataSourceTypes.c" -} - - -static gint -event_source_real_get_media_count (EventSource* self) -{ - gint _tmp0_ = 0; -#line 81 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_critical ("Type `%s' does not implement abstract method `event_source_get_media_count'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 81 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return _tmp0_; -#line 1111 "DataSourceTypes.c" -} - - -gint -event_source_get_media_count (EventSource* self) -{ -#line 81 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_val_if_fail (IS_EVENT_SOURCE (self), 0); -#line 81 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return EVENT_SOURCE_GET_CLASS (self)->get_media_count (self); -#line 1122 "DataSourceTypes.c" -} - - -static GeeCollection* -event_source_real_get_media (EventSource* self) -{ -#line 83 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_critical ("Type `%s' does not implement abstract method `event_source_get_media'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 83 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return NULL; -#line 1133 "DataSourceTypes.c" -} - - -GeeCollection* -event_source_get_media (EventSource* self) -{ -#line 83 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_val_if_fail (IS_EVENT_SOURCE (self), NULL); -#line 83 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return EVENT_SOURCE_GET_CLASS (self)->get_media (self); -#line 1144 "DataSourceTypes.c" -} - - -static gchar* -event_source_real_get_comment (EventSource* self) -{ -#line 85 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_critical ("Type `%s' does not implement abstract method `event_source_get_comment'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 85 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return NULL; -#line 1155 "DataSourceTypes.c" -} - - -gchar* -event_source_get_comment (EventSource* self) -{ -#line 85 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_val_if_fail (IS_EVENT_SOURCE (self), NULL); -#line 85 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return EVENT_SOURCE_GET_CLASS (self)->get_comment (self); -#line 1166 "DataSourceTypes.c" -} - - -static gboolean -event_source_real_set_comment (EventSource* self, - const gchar* comment) -{ - gboolean _tmp0_ = FALSE; -#line 87 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_critical ("Type `%s' does not implement abstract method `event_source_set_comment'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 87 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return _tmp0_; -#line 1179 "DataSourceTypes.c" -} - - -gboolean -event_source_set_comment (EventSource* self, - const gchar* comment) -{ -#line 87 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_val_if_fail (IS_EVENT_SOURCE (self), FALSE); -#line 87 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return EVENT_SOURCE_GET_CLASS (self)->set_comment (self, comment); -#line 1191 "DataSourceTypes.c" -} - - -static void -event_source_class_init (EventSourceClass * klass) -{ -#line 70 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - event_source_parent_class = g_type_class_peek_parent (klass); -#line 70 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - ((EventSourceClass *) klass)->get_start_time = (time_t (*) (EventSource *)) event_source_real_get_start_time; -#line 70 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - ((EventSourceClass *) klass)->get_end_time = (time_t (*) (EventSource *)) event_source_real_get_end_time; -#line 70 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - ((EventSourceClass *) klass)->get_total_filesize = (guint64 (*) (EventSource *)) event_source_real_get_total_filesize; -#line 70 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - ((EventSourceClass *) klass)->get_media_count = (gint (*) (EventSource *)) event_source_real_get_media_count; -#line 70 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - ((EventSourceClass *) klass)->get_media = (GeeCollection* (*) (EventSource *)) event_source_real_get_media; -#line 70 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - ((EventSourceClass *) klass)->get_comment = (gchar* (*) (EventSource *)) event_source_real_get_comment; -#line 70 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - ((EventSourceClass *) klass)->set_comment = (gboolean (*) (EventSource *, const gchar*)) event_source_real_set_comment; -#line 1214 "DataSourceTypes.c" -} - - -static void -event_source_instance_init (EventSource * self) -{ -} - - -GType -event_source_get_type (void) -{ - static volatile gsize event_source_type_id__volatile = 0; - if (g_once_init_enter (&event_source_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventSource), 0, (GInstanceInitFunc) event_source_instance_init, NULL }; - GType event_source_type_id; - event_source_type_id = g_type_register_static (TYPE_THUMBNAIL_SOURCE, "EventSource", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&event_source_type_id__volatile, event_source_type_id); - } - return event_source_type_id__volatile; -} - - -gboolean -container_source_has_links (ContainerSource* self) -{ -#line 95 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_val_if_fail (IS_CONTAINER_SOURCE (self), FALSE); -#line 95 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return CONTAINER_SOURCE_GET_INTERFACE (self)->has_links (self); -#line 1245 "DataSourceTypes.c" -} - - -SourceBacklink* -container_source_get_backlink (ContainerSource* self) -{ -#line 97 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_val_if_fail (IS_CONTAINER_SOURCE (self), NULL); -#line 97 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - return CONTAINER_SOURCE_GET_INTERFACE (self)->get_backlink (self); -#line 1256 "DataSourceTypes.c" -} - - -void -container_source_break_link (ContainerSource* self, - DataSource* source) -{ -#line 99 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (self)); -#line 99 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - CONTAINER_SOURCE_GET_INTERFACE (self)->break_link (self, source); -#line 1268 "DataSourceTypes.c" -} - - -void -container_source_break_link_many (ContainerSource* self, - GeeCollection* sources) -{ -#line 101 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (self)); -#line 101 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - CONTAINER_SOURCE_GET_INTERFACE (self)->break_link_many (self, sources); -#line 1280 "DataSourceTypes.c" -} - - -void -container_source_establish_link (ContainerSource* self, - DataSource* source) -{ -#line 103 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (self)); -#line 103 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - CONTAINER_SOURCE_GET_INTERFACE (self)->establish_link (self, source); -#line 1292 "DataSourceTypes.c" -} - - -void -container_source_establish_link_many (ContainerSource* self, - GeeCollection* sources) -{ -#line 105 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - g_return_if_fail (IS_CONTAINER_SOURCE (self)); -#line 105 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - CONTAINER_SOURCE_GET_INTERFACE (self)->establish_link_many (self, sources); -#line 1304 "DataSourceTypes.c" -} - - -static void -container_source_base_init (ContainerSourceIface * iface) -{ -#line 94 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - static gboolean initialized = FALSE; -#line 94 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - if (!initialized) { -#line 94 "/home/jens/Source/shotwell/src/core/DataSourceTypes.vala" - initialized = TRUE; -#line 1317 "DataSourceTypes.c" - } -} - - -GType -container_source_get_type (void) -{ - static volatile gsize container_source_type_id__volatile = 0; - if (g_once_init_enter (&container_source_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ContainerSourceIface), (GBaseInitFunc) container_source_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType container_source_type_id; - container_source_type_id = g_type_register_static (G_TYPE_INTERFACE, "ContainerSource", &g_define_type_info, 0); - g_type_interface_add_prerequisite (container_source_type_id, TYPE_DATA_SOURCE); - g_once_init_leave (&container_source_type_id__volatile, container_source_type_id); - } - return container_source_type_id__volatile; -} - - - diff --git a/src/core/DataView.c b/src/core/DataView.c deleted file mode 100644 index 7267434..0000000 --- a/src/core/DataView.c +++ /dev/null @@ -1,745 +0,0 @@ -/* DataView.c generated by valac 0.40.4, the Vala compiler - * generated from DataView.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include - - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; -typedef struct _DataViewPrivate DataViewPrivate; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; -enum { - DATA_VIEW_0_PROPERTY, - DATA_VIEW_NUM_PROPERTIES -}; -static GParamSpec* data_view_properties[DATA_VIEW_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -enum { - DATA_VIEW_STATE_CHANGED_SIGNAL, - DATA_VIEW_VISIBILITY_CHANGED_SIGNAL, - DATA_VIEW_VIEW_ALTERED_SIGNAL, - DATA_VIEW_GEOMETRY_ALTERED_SIGNAL, - DATA_VIEW_UNSUBSCRIBED_SIGNAL, - DATA_VIEW_NUM_SIGNALS -}; -static guint data_view_signals[DATA_VIEW_NUM_SIGNALS] = {0}; - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataView { - DataObject parent_instance; - DataViewPrivate * priv; -}; - -struct _DataViewClass { - DataObjectClass parent_class; - void (*notify_view_altered) (DataView* self); - void (*notify_geometry_altered) (DataView* self); - void (*notify_unsubscribed) (DataView* self, DataSource* source); - void (*state_changed) (DataView* self, gboolean selected); - void (*visibility_changed) (DataView* self, gboolean visible); - void (*view_altered) (DataView* self); - void (*geometry_altered) (DataView* self); - void (*unsubscribed) (DataView* self, DataSource* source); -}; - -struct _DataViewPrivate { - DataSource* source; - gboolean selected; - gboolean visible; -}; - - -static gpointer data_view_parent_class = NULL; - -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -#define DATA_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DATA_VIEW, DataViewPrivate)) -void data_source_internal_unsubscribe (DataSource* self, - DataView* view); -DataView* data_view_new (DataSource* source); -DataView* data_view_construct (GType object_type, - DataSource* source); -#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1) -DataObject* data_object_construct (GType object_type, - gint64 object_id); -void data_source_internal_subscribe (DataSource* self, - DataView* view); -static gchar* data_view_real_get_name (DataObject* base); -gchar* data_object_get_name (DataObject* self); -static gchar* data_view_real_to_string (DataObject* base); -gchar* data_object_to_string (DataObject* self); -DataSource* data_view_get_source (DataView* self); -gboolean data_view_is_selected (DataView* self); -void data_view_internal_set_selected (DataView* self, - gboolean selected); -gboolean data_view_internal_toggle (DataView* self); -gboolean data_view_is_visible (DataView* self); -void data_view_internal_set_visible (DataView* self, - gboolean visible); -void data_view_notify_view_altered (DataView* self); -static void data_view_real_notify_view_altered (DataView* self); -GType view_collection_get_type (void) G_GNUC_CONST; -DataCollection* data_object_get_membership (DataObject* self); -gboolean data_collection_are_notifications_frozen (DataCollection* self); -void view_collection_internal_notify_view_altered (ViewCollection* self, - DataView* view); -void data_view_notify_geometry_altered (DataView* self); -static void data_view_real_notify_geometry_altered (DataView* self); -void view_collection_internal_notify_geometry_altered (ViewCollection* self, - DataView* view); -void data_view_notify_unsubscribed (DataView* self, - DataSource* source); -static void data_view_real_notify_unsubscribed (DataView* self, - DataSource* source); -static void data_view_real_state_changed (DataView* self, - gboolean selected); -static void data_view_real_visibility_changed (DataView* self, - gboolean visible); -static void data_view_real_view_altered (DataView* self); -static void data_view_real_geometry_altered (DataView* self); -static void data_view_real_unsubscribed (DataView* self, - DataSource* source); -static void data_view_finalize (GObject * obj); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 33 "/home/jens/Source/shotwell/src/core/DataView.vala" - return self ? g_object_ref (self) : NULL; -#line 221 "DataView.c" -} - - -DataView* -data_view_construct (GType object_type, - DataSource* source) -{ - DataView * self = NULL; - DataSource* _tmp0_; -#line 32 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 32 "/home/jens/Source/shotwell/src/core/DataView.vala" - self = (DataView*) data_object_construct (object_type, DATA_OBJECT_INVALID_OBJECT_ID); -#line 33 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp0_ = _g_object_ref0 (source); -#line 33 "/home/jens/Source/shotwell/src/core/DataView.vala" - _g_object_unref0 (self->priv->source); -#line 33 "/home/jens/Source/shotwell/src/core/DataView.vala" - self->priv->source = _tmp0_; -#line 37 "/home/jens/Source/shotwell/src/core/DataView.vala" - data_source_internal_subscribe (source, self); -#line 32 "/home/jens/Source/shotwell/src/core/DataView.vala" - return self; -#line 245 "DataView.c" -} - - -DataView* -data_view_new (DataSource* source) -{ -#line 32 "/home/jens/Source/shotwell/src/core/DataView.vala" - return data_view_construct (TYPE_DATA_VIEW, source); -#line 254 "DataView.c" -} - - -static gchar* -data_view_real_get_name (DataObject* base) -{ - DataView * self; - gchar* result = NULL; - DataSource* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 47 "/home/jens/Source/shotwell/src/core/DataView.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DATA_VIEW, DataView); -#line 48 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp0_ = self->priv->source; -#line 48 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject)); -#line 48 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp2_ = _tmp1_; -#line 48 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp3_ = g_strdup_printf ("View of %s", _tmp2_); -#line 48 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp4_ = _tmp3_; -#line 48 "/home/jens/Source/shotwell/src/core/DataView.vala" - _g_free0 (_tmp2_); -#line 48 "/home/jens/Source/shotwell/src/core/DataView.vala" - result = _tmp4_; -#line 48 "/home/jens/Source/shotwell/src/core/DataView.vala" - return result; -#line 286 "DataView.c" -} - - -static gchar* -data_view_real_to_string (DataObject* base) -{ - DataView * self; - gchar* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - DataSource* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 51 "/home/jens/Source/shotwell/src/core/DataView.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DATA_VIEW, DataView); -#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp1_ = _tmp0_; -#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp2_ = self->priv->source; -#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp3_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_OBJECT, DataObject)); -#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp4_ = _tmp3_; -#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp5_ = g_strdup_printf ("DataView %s [DataSource %s]", _tmp1_, _tmp4_); -#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp6_ = _tmp5_; -#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala" - _g_free0 (_tmp4_); -#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala" - _g_free0 (_tmp1_); -#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala" - result = _tmp6_; -#line 52 "/home/jens/Source/shotwell/src/core/DataView.vala" - return result; -#line 326 "DataView.c" -} - - -DataSource* -data_view_get_source (DataView* self) -{ - DataSource* result = NULL; - DataSource* _tmp0_; - DataSource* _tmp1_; -#line 55 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_return_val_if_fail (IS_DATA_VIEW (self), NULL); -#line 56 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp0_ = self->priv->source; -#line 56 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 56 "/home/jens/Source/shotwell/src/core/DataView.vala" - result = _tmp1_; -#line 56 "/home/jens/Source/shotwell/src/core/DataView.vala" - return result; -#line 346 "DataView.c" -} - - -gboolean -data_view_is_selected (DataView* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 59 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_return_val_if_fail (IS_DATA_VIEW (self), FALSE); -#line 60 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp0_ = self->priv->selected; -#line 60 "/home/jens/Source/shotwell/src/core/DataView.vala" - result = _tmp0_; -#line 60 "/home/jens/Source/shotwell/src/core/DataView.vala" - return result; -#line 363 "DataView.c" -} - - -void -data_view_internal_set_selected (DataView* self, - gboolean selected) -{ - gboolean _tmp0_; -#line 64 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_return_if_fail (IS_DATA_VIEW (self)); -#line 65 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp0_ = self->priv->selected; -#line 65 "/home/jens/Source/shotwell/src/core/DataView.vala" - if (_tmp0_ == selected) { -#line 66 "/home/jens/Source/shotwell/src/core/DataView.vala" - return; -#line 380 "DataView.c" - } -#line 68 "/home/jens/Source/shotwell/src/core/DataView.vala" - self->priv->selected = selected; -#line 69 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_signal_emit (self, data_view_signals[DATA_VIEW_STATE_CHANGED_SIGNAL], 0, selected); -#line 386 "DataView.c" -} - - -gboolean -data_view_internal_toggle (DataView* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; - gboolean _tmp1_; - gboolean _tmp2_; -#line 73 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_return_val_if_fail (IS_DATA_VIEW (self), FALSE); -#line 74 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp0_ = self->priv->selected; -#line 74 "/home/jens/Source/shotwell/src/core/DataView.vala" - self->priv->selected = !_tmp0_; -#line 75 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp1_ = self->priv->selected; -#line 75 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_signal_emit (self, data_view_signals[DATA_VIEW_STATE_CHANGED_SIGNAL], 0, _tmp1_); -#line 77 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp2_ = self->priv->selected; -#line 77 "/home/jens/Source/shotwell/src/core/DataView.vala" - result = _tmp2_; -#line 77 "/home/jens/Source/shotwell/src/core/DataView.vala" - return result; -#line 413 "DataView.c" -} - - -gboolean -data_view_is_visible (DataView* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 80 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_return_val_if_fail (IS_DATA_VIEW (self), FALSE); -#line 81 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp0_ = self->priv->visible; -#line 81 "/home/jens/Source/shotwell/src/core/DataView.vala" - result = _tmp0_; -#line 81 "/home/jens/Source/shotwell/src/core/DataView.vala" - return result; -#line 430 "DataView.c" -} - - -void -data_view_internal_set_visible (DataView* self, - gboolean visible) -{ - gboolean _tmp0_; -#line 85 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_return_if_fail (IS_DATA_VIEW (self)); -#line 86 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp0_ = self->priv->visible; -#line 86 "/home/jens/Source/shotwell/src/core/DataView.vala" - if (_tmp0_ == visible) { -#line 87 "/home/jens/Source/shotwell/src/core/DataView.vala" - return; -#line 447 "DataView.c" - } -#line 89 "/home/jens/Source/shotwell/src/core/DataView.vala" - self->priv->visible = visible; -#line 90 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_signal_emit (self, data_view_signals[DATA_VIEW_VISIBILITY_CHANGED_SIGNAL], 0, visible); -#line 453 "DataView.c" -} - - -static void -data_view_real_notify_view_altered (DataView* self) -{ - gboolean _tmp0_; - ViewCollection* vc = NULL; - DataCollection* _tmp1_; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; -#line 95 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp0_ = self->priv->visible; -#line 95 "/home/jens/Source/shotwell/src/core/DataView.vala" - if (!_tmp0_) { -#line 96 "/home/jens/Source/shotwell/src/core/DataView.vala" - return; -#line 471 "DataView.c" - } -#line 98 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp1_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 98 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_VIEW_COLLECTION) ? ((ViewCollection*) _tmp1_) : NULL; -#line 98 "/home/jens/Source/shotwell/src/core/DataView.vala" - if (_tmp2_ == NULL) { -#line 98 "/home/jens/Source/shotwell/src/core/DataView.vala" - _data_collection_unref0 (_tmp1_); -#line 481 "DataView.c" - } -#line 98 "/home/jens/Source/shotwell/src/core/DataView.vala" - vc = _tmp2_; -#line 99 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp3_ = vc; -#line 99 "/home/jens/Source/shotwell/src/core/DataView.vala" - if (_tmp3_ != NULL) { -#line 489 "DataView.c" - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; -#line 100 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp4_ = vc; -#line 100 "/home/jens/Source/shotwell/src/core/DataView.vala" - if (!data_collection_are_notifications_frozen (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection))) { -#line 101 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_signal_emit (self, data_view_signals[DATA_VIEW_VIEW_ALTERED_SIGNAL], 0); -#line 498 "DataView.c" - } -#line 104 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp5_ = vc; -#line 104 "/home/jens/Source/shotwell/src/core/DataView.vala" - view_collection_internal_notify_view_altered (_tmp5_, self); -#line 504 "DataView.c" - } else { -#line 106 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_signal_emit (self, data_view_signals[DATA_VIEW_VIEW_ALTERED_SIGNAL], 0); -#line 508 "DataView.c" - } -#line 93 "/home/jens/Source/shotwell/src/core/DataView.vala" - _data_collection_unref0 (vc); -#line 512 "DataView.c" -} - - -void -data_view_notify_view_altered (DataView* self) -{ -#line 93 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_return_if_fail (IS_DATA_VIEW (self)); -#line 93 "/home/jens/Source/shotwell/src/core/DataView.vala" - DATA_VIEW_GET_CLASS (self)->notify_view_altered (self); -#line 523 "DataView.c" -} - - -static void -data_view_real_notify_geometry_altered (DataView* self) -{ - gboolean _tmp0_; - ViewCollection* vc = NULL; - DataCollection* _tmp1_; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; -#line 112 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp0_ = self->priv->visible; -#line 112 "/home/jens/Source/shotwell/src/core/DataView.vala" - if (!_tmp0_) { -#line 113 "/home/jens/Source/shotwell/src/core/DataView.vala" - return; -#line 541 "DataView.c" - } -#line 115 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp1_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 115 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_VIEW_COLLECTION) ? ((ViewCollection*) _tmp1_) : NULL; -#line 115 "/home/jens/Source/shotwell/src/core/DataView.vala" - if (_tmp2_ == NULL) { -#line 115 "/home/jens/Source/shotwell/src/core/DataView.vala" - _data_collection_unref0 (_tmp1_); -#line 551 "DataView.c" - } -#line 115 "/home/jens/Source/shotwell/src/core/DataView.vala" - vc = _tmp2_; -#line 116 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp3_ = vc; -#line 116 "/home/jens/Source/shotwell/src/core/DataView.vala" - if (_tmp3_ != NULL) { -#line 559 "DataView.c" - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; -#line 117 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp4_ = vc; -#line 117 "/home/jens/Source/shotwell/src/core/DataView.vala" - if (!data_collection_are_notifications_frozen (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection))) { -#line 118 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_signal_emit (self, data_view_signals[DATA_VIEW_GEOMETRY_ALTERED_SIGNAL], 0); -#line 568 "DataView.c" - } -#line 121 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp5_ = vc; -#line 121 "/home/jens/Source/shotwell/src/core/DataView.vala" - view_collection_internal_notify_geometry_altered (_tmp5_, self); -#line 574 "DataView.c" - } else { -#line 123 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_signal_emit (self, data_view_signals[DATA_VIEW_GEOMETRY_ALTERED_SIGNAL], 0); -#line 578 "DataView.c" - } -#line 110 "/home/jens/Source/shotwell/src/core/DataView.vala" - _data_collection_unref0 (vc); -#line 582 "DataView.c" -} - - -void -data_view_notify_geometry_altered (DataView* self) -{ -#line 110 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_return_if_fail (IS_DATA_VIEW (self)); -#line 110 "/home/jens/Source/shotwell/src/core/DataView.vala" - DATA_VIEW_GET_CLASS (self)->notify_geometry_altered (self); -#line 593 "DataView.c" -} - - -static void -data_view_real_notify_unsubscribed (DataView* self, - DataSource* source) -{ -#line 128 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 129 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_signal_emit (self, data_view_signals[DATA_VIEW_UNSUBSCRIBED_SIGNAL], 0, source); -#line 605 "DataView.c" -} - - -void -data_view_notify_unsubscribed (DataView* self, - DataSource* source) -{ -#line 128 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_return_if_fail (IS_DATA_VIEW (self)); -#line 128 "/home/jens/Source/shotwell/src/core/DataView.vala" - DATA_VIEW_GET_CLASS (self)->notify_unsubscribed (self, source); -#line 617 "DataView.c" -} - - -static void -data_view_real_state_changed (DataView* self, - gboolean selected) -{ -} - - -static void -data_view_real_visibility_changed (DataView* self, - gboolean visible) -{ -} - - -static void -data_view_real_view_altered (DataView* self) -{ -} - - -static void -data_view_real_geometry_altered (DataView* self) -{ -} - - -static void -data_view_real_unsubscribed (DataView* self, - DataSource* source) -{ -#line 29 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 653 "DataView.c" -} - - -static void -data_view_class_init (DataViewClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - data_view_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - g_type_class_add_private (klass, sizeof (DataViewPrivate)); -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) data_view_real_get_name; -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) data_view_real_to_string; -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - ((DataViewClass *) klass)->notify_view_altered = (void (*) (DataView *)) data_view_real_notify_view_altered; -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - ((DataViewClass *) klass)->notify_geometry_altered = (void (*) (DataView *)) data_view_real_notify_geometry_altered; -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - ((DataViewClass *) klass)->notify_unsubscribed = (void (*) (DataView *, DataSource*)) data_view_real_notify_unsubscribed; -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - ((DataViewClass *) klass)->state_changed = data_view_real_state_changed; -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - ((DataViewClass *) klass)->visibility_changed = data_view_real_visibility_changed; -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - ((DataViewClass *) klass)->view_altered = data_view_real_view_altered; -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - ((DataViewClass *) klass)->geometry_altered = data_view_real_geometry_altered; -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - ((DataViewClass *) klass)->unsubscribed = data_view_real_unsubscribed; -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - G_OBJECT_CLASS (klass)->finalize = data_view_finalize; -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - data_view_signals[DATA_VIEW_STATE_CHANGED_SIGNAL] = g_signal_new ("state-changed", TYPE_DATA_VIEW, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataViewClass, state_changed), NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - data_view_signals[DATA_VIEW_VISIBILITY_CHANGED_SIGNAL] = g_signal_new ("visibility-changed", TYPE_DATA_VIEW, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataViewClass, visibility_changed), NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - data_view_signals[DATA_VIEW_VIEW_ALTERED_SIGNAL] = g_signal_new ("view-altered", TYPE_DATA_VIEW, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataViewClass, view_altered), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - data_view_signals[DATA_VIEW_GEOMETRY_ALTERED_SIGNAL] = g_signal_new ("geometry-altered", TYPE_DATA_VIEW, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataViewClass, geometry_altered), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - data_view_signals[DATA_VIEW_UNSUBSCRIBED_SIGNAL] = g_signal_new ("unsubscribed", TYPE_DATA_VIEW, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DataViewClass, unsubscribed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_DATA_SOURCE); -#line 696 "DataView.c" -} - - -static void -data_view_instance_init (DataView * self) -{ -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - self->priv = DATA_VIEW_GET_PRIVATE (self); -#line 9 "/home/jens/Source/shotwell/src/core/DataView.vala" - self->priv->selected = FALSE; -#line 10 "/home/jens/Source/shotwell/src/core/DataView.vala" - self->priv->visible = TRUE; -#line 709 "DataView.c" -} - - -static void -data_view_finalize (GObject * obj) -{ - DataView * self; - DataSource* _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DATA_VIEW, DataView); -#line 44 "/home/jens/Source/shotwell/src/core/DataView.vala" - _tmp0_ = self->priv->source; -#line 44 "/home/jens/Source/shotwell/src/core/DataView.vala" - data_source_internal_unsubscribe (_tmp0_, self); -#line 8 "/home/jens/Source/shotwell/src/core/DataView.vala" - _g_object_unref0 (self->priv->source); -#line 7 "/home/jens/Source/shotwell/src/core/DataView.vala" - G_OBJECT_CLASS (data_view_parent_class)->finalize (obj); -#line 728 "DataView.c" -} - - -GType -data_view_get_type (void) -{ - static volatile gsize data_view_type_id__volatile = 0; - if (g_once_init_enter (&data_view_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DataViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataView), 0, (GInstanceInitFunc) data_view_instance_init, NULL }; - GType data_view_type_id; - data_view_type_id = g_type_register_static (TYPE_DATA_OBJECT, "DataView", &g_define_type_info, 0); - g_once_init_leave (&data_view_type_id__volatile, data_view_type_id); - } - return data_view_type_id__volatile; -} - - - diff --git a/src/core/DataViewTypes.c b/src/core/DataViewTypes.c deleted file mode 100644 index b70a8ff..0000000 --- a/src/core/DataViewTypes.c +++ /dev/null @@ -1,621 +0,0 @@ -/* DataViewTypes.c generated by valac 0.40.4, the Vala compiler - * generated from DataViewTypes.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include - - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; -typedef struct _DataViewPrivate DataViewPrivate; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; -typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate; -enum { - THUMBNAIL_VIEW_0_PROPERTY, - THUMBNAIL_VIEW_NUM_PROPERTIES -}; -static GParamSpec* thumbnail_view_properties[THUMBNAIL_VIEW_NUM_PROPERTIES]; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; -enum { - THUMBNAIL_VIEW_THUMBNAIL_ALTERED_SIGNAL, - THUMBNAIL_VIEW_NUM_SIGNALS -}; -static guint thumbnail_view_signals[THUMBNAIL_VIEW_NUM_SIGNALS] = {0}; - -#define TYPE_PHOTO_VIEW (photo_view_get_type ()) -#define PHOTO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_VIEW, PhotoView)) -#define PHOTO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_VIEW, PhotoViewClass)) -#define IS_PHOTO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_VIEW)) -#define IS_PHOTO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_VIEW)) -#define PHOTO_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_VIEW, PhotoViewClass)) - -typedef struct _PhotoView PhotoView; -typedef struct _PhotoViewClass PhotoViewClass; -typedef struct _PhotoViewPrivate PhotoViewPrivate; -enum { - PHOTO_VIEW_0_PROPERTY, - PHOTO_VIEW_NUM_PROPERTIES -}; -static GParamSpec* photo_view_properties[PHOTO_VIEW_NUM_PROPERTIES]; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_VIDEO_VIEW (video_view_get_type ()) -#define VIDEO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_VIEW, VideoView)) -#define VIDEO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_VIEW, VideoViewClass)) -#define IS_VIDEO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_VIEW)) -#define IS_VIDEO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_VIEW)) -#define VIDEO_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_VIEW, VideoViewClass)) - -typedef struct _VideoView VideoView; -typedef struct _VideoViewClass VideoViewClass; -typedef struct _VideoViewPrivate VideoViewPrivate; -enum { - VIDEO_VIEW_0_PROPERTY, - VIDEO_VIEW_NUM_PROPERTIES -}; -static GParamSpec* video_view_properties[VIDEO_VIEW_NUM_PROPERTIES]; - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_EVENT_VIEW (event_view_get_type ()) -#define EVENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_VIEW, EventView)) -#define EVENT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_VIEW, EventViewClass)) -#define IS_EVENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_VIEW)) -#define IS_EVENT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_VIEW)) -#define EVENT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_VIEW, EventViewClass)) - -typedef struct _EventView EventView; -typedef struct _EventViewClass EventViewClass; -typedef struct _EventViewPrivate EventViewPrivate; -enum { - EVENT_VIEW_0_PROPERTY, - EVENT_VIEW_NUM_PROPERTIES -}; -static GParamSpec* event_view_properties[EVENT_VIEW_NUM_PROPERTIES]; - -#define TYPE_EVENT_SOURCE (event_source_get_type ()) -#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource)) -#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass)) -#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE)) -#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE)) -#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass)) - -typedef struct _EventSource EventSource; -typedef struct _EventSourceClass EventSourceClass; - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataView { - DataObject parent_instance; - DataViewPrivate * priv; -}; - -struct _DataViewClass { - DataObjectClass parent_class; - void (*notify_view_altered) (DataView* self); - void (*notify_geometry_altered) (DataView* self); - void (*notify_unsubscribed) (DataView* self, DataSource* source); - void (*state_changed) (DataView* self, gboolean selected); - void (*visibility_changed) (DataView* self, gboolean visible); - void (*view_altered) (DataView* self); - void (*geometry_altered) (DataView* self); - void (*unsubscribed) (DataView* self, DataSource* source); -}; - -struct _ThumbnailView { - DataView parent_instance; - ThumbnailViewPrivate * priv; -}; - -struct _ThumbnailViewClass { - DataViewClass parent_class; - void (*notify_thumbnail_altered) (ThumbnailView* self); - void (*thumbnail_altered) (ThumbnailView* self); -}; - -struct _PhotoView { - ThumbnailView parent_instance; - PhotoViewPrivate * priv; -}; - -struct _PhotoViewClass { - ThumbnailViewClass parent_class; -}; - -struct _VideoView { - ThumbnailView parent_instance; - VideoViewPrivate * priv; -}; - -struct _VideoViewClass { - ThumbnailViewClass parent_class; -}; - -struct _EventView { - ThumbnailView parent_instance; - EventViewPrivate * priv; -}; - -struct _EventViewClass { - ThumbnailViewClass parent_class; -}; - - -static gpointer thumbnail_view_parent_class = NULL; -static gpointer photo_view_parent_class = NULL; -static gpointer video_view_parent_class = NULL; -static gpointer event_view_parent_class = NULL; - -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -ThumbnailView* thumbnail_view_new (ThumbnailSource* source); -ThumbnailView* thumbnail_view_construct (GType object_type, - ThumbnailSource* source); -DataView* data_view_new (DataSource* source); -DataView* data_view_construct (GType object_type, - DataSource* source); -void thumbnail_view_notify_thumbnail_altered (ThumbnailView* self); -static void thumbnail_view_real_notify_thumbnail_altered (ThumbnailView* self); -static void thumbnail_view_real_thumbnail_altered (ThumbnailView* self); -GType photo_view_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -PhotoView* photo_view_new (PhotoSource* source); -PhotoView* photo_view_construct (GType object_type, - PhotoSource* source); -PhotoSource* photo_view_get_photo_source (PhotoView* self); -DataSource* data_view_get_source (DataView* self); -GType video_view_get_type (void) G_GNUC_CONST; -GType video_source_get_type (void) G_GNUC_CONST; -VideoView* video_view_new (VideoSource* source); -VideoView* video_view_construct (GType object_type, - VideoSource* source); -VideoSource* video_view_get_video_source (VideoView* self); -GType event_view_get_type (void) G_GNUC_CONST; -GType event_source_get_type (void) G_GNUC_CONST; -EventView* event_view_new (EventSource* source); -EventView* event_view_construct (GType object_type, - EventSource* source); -EventSource* event_view_get_event_source (EventView* self); - - -ThumbnailView* -thumbnail_view_construct (GType object_type, - ThumbnailSource* source) -{ - ThumbnailView * self = NULL; -#line 11 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - g_return_val_if_fail (IS_THUMBNAIL_SOURCE (source), NULL); -#line 12 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - self = (ThumbnailView*) data_view_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)); -#line 11 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - return self; -#line 338 "DataViewTypes.c" -} - - -ThumbnailView* -thumbnail_view_new (ThumbnailSource* source) -{ -#line 11 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - return thumbnail_view_construct (TYPE_THUMBNAIL_VIEW, source); -#line 347 "DataViewTypes.c" -} - - -static void -thumbnail_view_real_notify_thumbnail_altered (ThumbnailView* self) -{ -#line 17 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - g_signal_emit (self, thumbnail_view_signals[THUMBNAIL_VIEW_THUMBNAIL_ALTERED_SIGNAL], 0); -#line 356 "DataViewTypes.c" -} - - -void -thumbnail_view_notify_thumbnail_altered (ThumbnailView* self) -{ -#line 15 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - g_return_if_fail (IS_THUMBNAIL_VIEW (self)); -#line 15 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - THUMBNAIL_VIEW_GET_CLASS (self)->notify_thumbnail_altered (self); -#line 367 "DataViewTypes.c" -} - - -static void -thumbnail_view_real_thumbnail_altered (ThumbnailView* self) -{ -} - - -static void -thumbnail_view_class_init (ThumbnailViewClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - thumbnail_view_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - ((ThumbnailViewClass *) klass)->notify_thumbnail_altered = (void (*) (ThumbnailView *)) thumbnail_view_real_notify_thumbnail_altered; -#line 7 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - ((ThumbnailViewClass *) klass)->thumbnail_altered = thumbnail_view_real_thumbnail_altered; -#line 7 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - thumbnail_view_signals[THUMBNAIL_VIEW_THUMBNAIL_ALTERED_SIGNAL] = g_signal_new ("thumbnail-altered", TYPE_THUMBNAIL_VIEW, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ThumbnailViewClass, thumbnail_altered), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 388 "DataViewTypes.c" -} - - -static void -thumbnail_view_instance_init (ThumbnailView * self) -{ -} - - -GType -thumbnail_view_get_type (void) -{ - static volatile gsize thumbnail_view_type_id__volatile = 0; - if (g_once_init_enter (&thumbnail_view_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ThumbnailViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) thumbnail_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ThumbnailView), 0, (GInstanceInitFunc) thumbnail_view_instance_init, NULL }; - GType thumbnail_view_type_id; - thumbnail_view_type_id = g_type_register_static (TYPE_DATA_VIEW, "ThumbnailView", &g_define_type_info, 0); - g_once_init_leave (&thumbnail_view_type_id__volatile, thumbnail_view_type_id); - } - return thumbnail_view_type_id__volatile; -} - - -PhotoView* -photo_view_construct (GType object_type, - PhotoSource* source) -{ - PhotoView * self = NULL; -#line 22 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - g_return_val_if_fail (IS_PHOTO_SOURCE (source), NULL); -#line 23 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - self = (PhotoView*) thumbnail_view_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 22 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - return self; -#line 423 "DataViewTypes.c" -} - - -PhotoView* -photo_view_new (PhotoSource* source) -{ -#line 22 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - return photo_view_construct (TYPE_PHOTO_VIEW, source); -#line 432 "DataViewTypes.c" -} - - -PhotoSource* -photo_view_get_photo_source (PhotoView* self) -{ - PhotoSource* result = NULL; - DataSource* _tmp0_; -#line 26 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - g_return_val_if_fail (IS_PHOTO_VIEW (self), NULL); -#line 27 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 27 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_SOURCE, PhotoSource); -#line 27 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - return result; -#line 449 "DataViewTypes.c" -} - - -static void -photo_view_class_init (PhotoViewClass * klass) -{ -#line 21 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - photo_view_parent_class = g_type_class_peek_parent (klass); -#line 458 "DataViewTypes.c" -} - - -static void -photo_view_instance_init (PhotoView * self) -{ -} - - -GType -photo_view_get_type (void) -{ - static volatile gsize photo_view_type_id__volatile = 0; - if (g_once_init_enter (&photo_view_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoView), 0, (GInstanceInitFunc) photo_view_instance_init, NULL }; - GType photo_view_type_id; - photo_view_type_id = g_type_register_static (TYPE_THUMBNAIL_VIEW, "PhotoView", &g_define_type_info, 0); - g_once_init_leave (&photo_view_type_id__volatile, photo_view_type_id); - } - return photo_view_type_id__volatile; -} - - -VideoView* -video_view_construct (GType object_type, - VideoSource* source) -{ - VideoView * self = NULL; -#line 32 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - g_return_val_if_fail (IS_VIDEO_SOURCE (source), NULL); -#line 33 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - self = (VideoView*) thumbnail_view_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 32 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - return self; -#line 493 "DataViewTypes.c" -} - - -VideoView* -video_view_new (VideoSource* source) -{ -#line 32 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - return video_view_construct (TYPE_VIDEO_VIEW, source); -#line 502 "DataViewTypes.c" -} - - -VideoSource* -video_view_get_video_source (VideoView* self) -{ - VideoSource* result = NULL; - DataSource* _tmp0_; -#line 36 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - g_return_val_if_fail (IS_VIDEO_VIEW (self), NULL); -#line 37 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 37 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIDEO_SOURCE, VideoSource); -#line 37 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - return result; -#line 519 "DataViewTypes.c" -} - - -static void -video_view_class_init (VideoViewClass * klass) -{ -#line 31 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - video_view_parent_class = g_type_class_peek_parent (klass); -#line 528 "DataViewTypes.c" -} - - -static void -video_view_instance_init (VideoView * self) -{ -} - - -GType -video_view_get_type (void) -{ - static volatile gsize video_view_type_id__volatile = 0; - if (g_once_init_enter (&video_view_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (VideoViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoView), 0, (GInstanceInitFunc) video_view_instance_init, NULL }; - GType video_view_type_id; - video_view_type_id = g_type_register_static (TYPE_THUMBNAIL_VIEW, "VideoView", &g_define_type_info, 0); - g_once_init_leave (&video_view_type_id__volatile, video_view_type_id); - } - return video_view_type_id__volatile; -} - - -EventView* -event_view_construct (GType object_type, - EventSource* source) -{ - EventView * self = NULL; -#line 42 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - g_return_val_if_fail (IS_EVENT_SOURCE (source), NULL); -#line 43 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - self = (EventView*) thumbnail_view_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 42 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - return self; -#line 563 "DataViewTypes.c" -} - - -EventView* -event_view_new (EventSource* source) -{ -#line 42 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - return event_view_construct (TYPE_EVENT_VIEW, source); -#line 572 "DataViewTypes.c" -} - - -EventSource* -event_view_get_event_source (EventView* self) -{ - EventSource* result = NULL; - DataSource* _tmp0_; -#line 46 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - g_return_val_if_fail (IS_EVENT_VIEW (self), NULL); -#line 47 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - _tmp0_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_VIEW, DataView)); -#line 47 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EVENT_SOURCE, EventSource); -#line 47 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - return result; -#line 589 "DataViewTypes.c" -} - - -static void -event_view_class_init (EventViewClass * klass) -{ -#line 41 "/home/jens/Source/shotwell/src/core/DataViewTypes.vala" - event_view_parent_class = g_type_class_peek_parent (klass); -#line 598 "DataViewTypes.c" -} - - -static void -event_view_instance_init (EventView * self) -{ -} - - -GType -event_view_get_type (void) -{ - static volatile gsize event_view_type_id__volatile = 0; - if (g_once_init_enter (&event_view_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventView), 0, (GInstanceInitFunc) event_view_instance_init, NULL }; - GType event_view_type_id; - event_view_type_id = g_type_register_static (TYPE_THUMBNAIL_VIEW, "EventView", &g_define_type_info, 0); - g_once_init_leave (&event_view_type_id__volatile, event_view_type_id); - } - return event_view_type_id__volatile; -} - - - diff --git a/src/core/DatabaseSourceCollection.c b/src/core/DatabaseSourceCollection.c deleted file mode 100644 index b61808a..0000000 --- a/src/core/DatabaseSourceCollection.c +++ /dev/null @@ -1,945 +0,0 @@ -/* DatabaseSourceCollection.c generated by valac 0.40.4, the Vala compiler - * generated from DatabaseSourceCollection.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include - - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; -typedef struct _DataCollectionPrivate DataCollectionPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; -typedef struct _SourceCollectionPrivate SourceCollectionPrivate; - -#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ()) -#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink)) -#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) -#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK)) -#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK)) -#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) - -typedef struct _SourceBacklink SourceBacklink; -typedef struct _SourceBacklinkClass SourceBacklinkClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; -typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ()) -#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)) -#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) -#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK)) -#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK)) -#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) - -typedef struct _SourceHoldingTank SourceHoldingTank; -typedef struct _SourceHoldingTankClass SourceHoldingTankClass; -typedef struct _SourceHoldingTankPrivate SourceHoldingTankPrivate; - -#define TYPE_DATABASE_SOURCE_HOLDING_TANK (database_source_holding_tank_get_type ()) -#define DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank)) -#define DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass)) -#define IS_DATABASE_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK)) -#define IS_DATABASE_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_HOLDING_TANK)) -#define DATABASE_SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankClass)) - -typedef struct _DatabaseSourceHoldingTank DatabaseSourceHoldingTank; -typedef struct _DatabaseSourceHoldingTankClass DatabaseSourceHoldingTankClass; -typedef struct _DatabaseSourceHoldingTankPrivate DatabaseSourceHoldingTankPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data); -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -struct _DataCollection { - GTypeInstance parent_instance; - volatile int ref_count; - DataCollectionPrivate * priv; -}; - -struct _DataCollectionClass { - GTypeClass parent_class; - void (*finalize) (DataCollection *self); - gchar* (*to_string) (DataCollection* self); - void (*notify_items_added) (DataCollection* self, GeeIterable* added); - void (*notify_items_removed) (DataCollection* self, GeeIterable* removed); - void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*notify_items_altered) (DataCollection* self, GeeMap* items); - void (*notify_ordering_changed) (DataCollection* self); - void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*notify_property_cleared) (DataCollection* self, const gchar* name); - gboolean (*valid_type) (DataCollection* self, DataObject* object); - void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target); - void (*reset_comparator) (DataCollection* self); - GeeCollection* (*get_all) (DataCollection* self); - gint (*get_count) (DataCollection* self); - DataObject* (*get_at) (DataCollection* self, gint index); - gint (*index_of) (DataCollection* self, DataObject* object); - gboolean (*contains) (DataCollection* self, DataObject* object); - gboolean (*add) (DataCollection* self, DataObject* object); - GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target); - void (*remove_marked) (DataCollection* self, Marker* m); - void (*clear) (DataCollection* self); - void (*close) (DataCollection* self); - void (*notify_frozen) (DataCollection* self); - void (*notify_thawed) (DataCollection* self); - void (*items_added) (DataCollection* self, GeeIterable* added); - void (*items_removed) (DataCollection* self, GeeIterable* removed); - void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*items_altered) (DataCollection* self, GeeMap* items); - void (*ordering_changed) (DataCollection* self); - void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*property_cleared) (DataCollection* self, const gchar* name); - void (*frozen) (DataCollection* self); - void (*thawed) (DataCollection* self); -}; - -struct _SourceCollection { - DataCollection parent_instance; - SourceCollectionPrivate * priv; -}; - -struct _SourceCollectionClass { - DataCollectionClass parent_class; - gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source); - void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*notify_item_destroyed) (SourceCollection* self, DataSource* source); - void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked); - void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); - gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*item_destroyed) (SourceCollection* self, DataSource* source); - void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*unlinked_destroyed) (SourceCollection* self, DataSource* source); - void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); -}; - -struct _DatabaseSourceCollection { - SourceCollection parent_instance; - DatabaseSourceCollectionPrivate * priv; -}; - -struct _DatabaseSourceCollectionClass { - SourceCollectionClass parent_class; -}; - -struct _DatabaseSourceCollectionPrivate { - GetSourceDatabaseKey source_key_func; - gpointer source_key_func_target; - GeeHashMap* map; -}; - -struct _SourceHoldingTank { - GTypeInstance parent_instance; - volatile int ref_count; - SourceHoldingTankPrivate * priv; -}; - -struct _SourceHoldingTankClass { - GTypeClass parent_class; - void (*finalize) (SourceHoldingTank *self); - void (*notify_contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed); - void (*contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed); -}; - -struct _DatabaseSourceHoldingTank { - SourceHoldingTank parent_instance; - DatabaseSourceHoldingTankPrivate * priv; -}; - -struct _DatabaseSourceHoldingTankClass { - SourceHoldingTankClass parent_class; -}; - -struct _DatabaseSourceHoldingTankPrivate { - GetSourceDatabaseKey get_key; - gpointer get_key_target; - GeeHashMap* map; -}; - -typedef gboolean (*SourceHoldingTankCheckToKeep) (DataSource* source, Alteration* alteration, void* user_data); - -static gpointer database_source_collection_parent_class = NULL; -static gpointer database_source_holding_tank_parent_class = NULL; - -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -GType marker_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -gpointer source_backlink_ref (gpointer instance); -void source_backlink_unref (gpointer instance); -GParamSpec* param_spec_source_backlink (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_backlink (GValue* value, - gpointer v_object); -void value_take_source_backlink (GValue* value, - gpointer v_object); -gpointer value_get_source_backlink (const GValue* value); -GType source_backlink_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -#define DATABASE_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionPrivate)) -guint int64_hash (gint64* n); -static guint _int64_hash_gee_hash_data_func (gconstpointer v, - gpointer self); -gboolean int64_equal (gint64* a, - gint64* b); -static gboolean _int64_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -static gint64* _int64_dup (gint64* self); -DatabaseSourceCollection* database_source_collection_construct (GType object_type, - const gchar* name, - GetSourceDatabaseKey source_key_func, - void* source_key_func_target); -SourceCollection* source_collection_construct (GType object_type, - const gchar* name); -static void database_source_collection_real_notify_items_added (DataCollection* base, - GeeIterable* added); -void data_collection_notify_items_added (DataCollection* self, - GeeIterable* added); -static void database_source_collection_real_notify_items_removed (DataCollection* base, - GeeIterable* removed); -void data_collection_notify_items_removed (DataCollection* self, - GeeIterable* removed); -DataSource* database_source_collection_fetch_by_key (DatabaseSourceCollection* self, - gint64 key); -static void database_source_collection_finalize (DataCollection * obj); -gpointer source_holding_tank_ref (gpointer instance); -void source_holding_tank_unref (gpointer instance); -GParamSpec* param_spec_source_holding_tank (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_holding_tank (GValue* value, - gpointer v_object); -void value_take_source_holding_tank (GValue* value, - gpointer v_object); -gpointer value_get_source_holding_tank (const GValue* value); -GType source_holding_tank_get_type (void) G_GNUC_CONST; -GType database_source_holding_tank_get_type (void) G_GNUC_CONST; -#define DATABASE_SOURCE_HOLDING_TANK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTankPrivate)) -DatabaseSourceHoldingTank* database_source_holding_tank_new (SourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target); -DatabaseSourceHoldingTank* database_source_holding_tank_construct (GType object_type, - SourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target); -SourceHoldingTank* source_holding_tank_new (SourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target); -SourceHoldingTank* source_holding_tank_construct (GType object_type, - SourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target); -DataSource* database_source_holding_tank_get_by_id (DatabaseSourceHoldingTank* self, - gint64 id); -static void database_source_holding_tank_real_notify_contents_altered (SourceHoldingTank* base, - GeeCollection* added, - GeeCollection* removed); -void source_holding_tank_notify_contents_altered (SourceHoldingTank* self, - GeeCollection* added, - GeeCollection* removed); -static void database_source_holding_tank_finalize (SourceHoldingTank * obj); - - -static guint -_int64_hash_gee_hash_data_func (gconstpointer v, - gpointer self) -{ - guint result; - result = int64_hash ((gint64*) v); -#line 17 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - return result; -#line 381 "DatabaseSourceCollection.c" -} - - -static gboolean -_int64_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gboolean result; - result = int64_equal ((gint64*) a, (gint64*) b); -#line 17 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - return result; -#line 394 "DatabaseSourceCollection.c" -} - - -static gint64* -_int64_dup (gint64* self) -{ - gint64* dup; -#line 17 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - dup = g_new0 (gint64, 1); -#line 17 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - memcpy (dup, self, sizeof (gint64)); -#line 17 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - return dup; -#line 408 "DatabaseSourceCollection.c" -} - - -DatabaseSourceCollection* -database_source_collection_construct (GType object_type, - const gchar* name, - GetSourceDatabaseKey source_key_func, - void* source_key_func_target) -{ - DatabaseSourceCollection* self = NULL; -#line 20 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 21 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - self = (DatabaseSourceCollection*) source_collection_construct (object_type, name); -#line 23 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - self->priv->source_key_func = source_key_func; -#line 23 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - self->priv->source_key_func_target = source_key_func_target; -#line 20 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - return self; -#line 429 "DatabaseSourceCollection.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 28 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - return self ? g_object_ref (self) : NULL; -#line 438 "DatabaseSourceCollection.c" -} - - -static void -database_source_collection_real_notify_items_added (DataCollection* base, - GeeIterable* added) -{ - DatabaseSourceCollection * self; -#line 26 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection); -#line 26 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - g_return_if_fail (GEE_IS_ITERABLE (added)); -#line 451 "DatabaseSourceCollection.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp0_ = gee_iterable_iterator (added); -#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _object_it = _tmp0_; -#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - while (TRUE) { -#line 461 "DatabaseSourceCollection.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataSource* source = NULL; - DataObject* _tmp4_; - DataSource* _tmp5_; - gint64 key = 0LL; - GetSourceDatabaseKey _tmp6_; - void* _tmp6__target; - DataSource* _tmp7_; - GeeHashMap* _tmp8_; - gint64 _tmp9_; - GeeHashMap* _tmp10_; - gint64 _tmp11_; - DataSource* _tmp12_; -#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp1_ = _object_it; -#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - break; -#line 484 "DatabaseSourceCollection.c" - } -#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp2_ = _object_it; -#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - object = (DataObject*) _tmp3_; -#line 28 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp4_ = object; -#line 28 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_SOURCE, DataSource)); -#line 28 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - source = _tmp5_; -#line 29 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp6_ = self->priv->source_key_func; -#line 29 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp6__target = self->priv->source_key_func_target; -#line 29 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp7_ = source; -#line 29 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - key = _tmp6_ (_tmp7_, _tmp6__target); -#line 31 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp8_ = self->priv->map; -#line 31 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp9_ = key; -#line 31 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp9_), "!map.has_key(key)"); -#line 33 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp10_ = self->priv->map; -#line 33 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp11_ = key; -#line 33 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp12_ = source; -#line 33 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp11_, _tmp12_); -#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _g_object_unref0 (source); -#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _g_object_unref0 (object); -#line 524 "DatabaseSourceCollection.c" - } -#line 27 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _g_object_unref0 (_object_it); -#line 528 "DatabaseSourceCollection.c" - } -#line 36 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - DATA_COLLECTION_CLASS (database_source_collection_parent_class)->notify_items_added (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), TYPE_DATA_COLLECTION, DataCollection), added); -#line 532 "DatabaseSourceCollection.c" -} - - -static void -database_source_collection_real_notify_items_removed (DataCollection* base, - GeeIterable* removed) -{ - DatabaseSourceCollection * self; -#line 39 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection); -#line 39 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - g_return_if_fail (GEE_IS_ITERABLE (removed)); -#line 545 "DatabaseSourceCollection.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp0_ = gee_iterable_iterator (removed); -#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _object_it = _tmp0_; -#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - while (TRUE) { -#line 555 "DatabaseSourceCollection.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - gint64 key = 0LL; - GetSourceDatabaseKey _tmp4_; - void* _tmp4__target; - DataObject* _tmp5_; - gboolean is_removed = FALSE; - GeeHashMap* _tmp6_; - gint64 _tmp7_; - gboolean _tmp8_; - gboolean _tmp9_; -#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp1_ = _object_it; -#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - break; -#line 575 "DatabaseSourceCollection.c" - } -#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp2_ = _object_it; -#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - object = (DataObject*) _tmp3_; -#line 41 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp4_ = self->priv->source_key_func; -#line 41 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp4__target = self->priv->source_key_func_target; -#line 41 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp5_ = object; -#line 41 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - key = _tmp4_ (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_SOURCE, DataSource), _tmp4__target); -#line 43 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp6_ = self->priv->map; -#line 43 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp7_ = key; -#line 43 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp8_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp7_, NULL); -#line 43 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - is_removed = _tmp8_; -#line 44 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp9_ = is_removed; -#line 44 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _vala_assert (_tmp9_, "is_removed"); -#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _g_object_unref0 (object); -#line 605 "DatabaseSourceCollection.c" - } -#line 40 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _g_object_unref0 (_object_it); -#line 609 "DatabaseSourceCollection.c" - } -#line 47 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - DATA_COLLECTION_CLASS (database_source_collection_parent_class)->notify_items_removed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_COLLECTION, SourceCollection), TYPE_DATA_COLLECTION, DataCollection), removed); -#line 613 "DatabaseSourceCollection.c" -} - - -DataSource* -database_source_collection_fetch_by_key (DatabaseSourceCollection* self, - gint64 key) -{ - DataSource* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 50 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - g_return_val_if_fail (IS_DATABASE_SOURCE_COLLECTION (self), NULL); -#line 51 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp0_ = self->priv->map; -#line 51 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &key); -#line 51 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - result = (DataSource*) _tmp1_; -#line 51 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - return result; -#line 634 "DatabaseSourceCollection.c" -} - - -static void -database_source_collection_class_init (DatabaseSourceCollectionClass * klass) -{ -#line 15 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - database_source_collection_parent_class = g_type_class_peek_parent (klass); -#line 15 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - ((DataCollectionClass *) klass)->finalize = database_source_collection_finalize; -#line 15 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - g_type_class_add_private (klass, sizeof (DatabaseSourceCollectionPrivate)); -#line 15 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - ((DataCollectionClass *) klass)->notify_items_added = (void (*) (DataCollection *, GeeIterable*)) database_source_collection_real_notify_items_added; -#line 15 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - ((DataCollectionClass *) klass)->notify_items_removed = (void (*) (DataCollection *, GeeIterable*)) database_source_collection_real_notify_items_removed; -#line 651 "DatabaseSourceCollection.c" -} - - -static void -database_source_collection_instance_init (DatabaseSourceCollection * self) -{ - GeeHashMap* _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - self->priv = DATABASE_SOURCE_COLLECTION_GET_PRIVATE (self); -#line 17 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, (GDestroyNotify) g_free, TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _int64_hash_gee_hash_data_func, NULL, NULL, _int64_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); -#line 17 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - self->priv->map = _tmp0_; -#line 665 "DatabaseSourceCollection.c" -} - - -static void -database_source_collection_finalize (DataCollection * obj) -{ - DatabaseSourceCollection * self; -#line 15 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection); -#line 17 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _g_object_unref0 (self->priv->map); -#line 15 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - DATA_COLLECTION_CLASS (database_source_collection_parent_class)->finalize (obj); -#line 679 "DatabaseSourceCollection.c" -} - - -GType -database_source_collection_get_type (void) -{ - static volatile gsize database_source_collection_type_id__volatile = 0; - if (g_once_init_enter (&database_source_collection_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DatabaseSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) database_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DatabaseSourceCollection), 0, (GInstanceInitFunc) database_source_collection_instance_init, NULL }; - GType database_source_collection_type_id; - database_source_collection_type_id = g_type_register_static (TYPE_SOURCE_COLLECTION, "DatabaseSourceCollection", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&database_source_collection_type_id__volatile, database_source_collection_type_id); - } - return database_source_collection_type_id__volatile; -} - - -DatabaseSourceHoldingTank* -database_source_holding_tank_construct (GType object_type, - SourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target) -{ - DatabaseSourceHoldingTank* self = NULL; -#line 60 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - g_return_val_if_fail (IS_SOURCE_COLLECTION (sources), NULL); -#line 62 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - self = (DatabaseSourceHoldingTank*) source_holding_tank_construct (object_type, sources, check_to_keep, check_to_keep_target); -#line 64 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - self->priv->get_key = get_key; -#line 64 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - self->priv->get_key_target = get_key_target; -#line 60 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - return self; -#line 716 "DatabaseSourceCollection.c" -} - - -DatabaseSourceHoldingTank* -database_source_holding_tank_new (SourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target, - GetSourceDatabaseKey get_key, - void* get_key_target) -{ -#line 60 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - return database_source_holding_tank_construct (TYPE_DATABASE_SOURCE_HOLDING_TANK, sources, check_to_keep, check_to_keep_target, get_key, get_key_target); -#line 729 "DatabaseSourceCollection.c" -} - - -DataSource* -database_source_holding_tank_get_by_id (DatabaseSourceHoldingTank* self, - gint64 id) -{ - DataSource* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 67 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - g_return_val_if_fail (IS_DATABASE_SOURCE_HOLDING_TANK (self), NULL); -#line 68 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp0_ = self->priv->map; -#line 68 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &id); -#line 68 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - result = (DataSource*) _tmp1_; -#line 68 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - return result; -#line 750 "DatabaseSourceCollection.c" -} - - -static void -database_source_holding_tank_real_notify_contents_altered (SourceHoldingTank* base, - GeeCollection* added, - GeeCollection* removed) -{ - DatabaseSourceHoldingTank * self; -#line 71 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank); -#line 71 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 71 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 73 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - if (added != NULL) { -#line 768 "DatabaseSourceCollection.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_ITERABLE, GeeIterable)); -#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _source_it = _tmp0_; -#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - while (TRUE) { -#line 778 "DatabaseSourceCollection.c" - GeeIterator* _tmp1_; - DataSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - GeeHashMap* _tmp4_; - GetSourceDatabaseKey _tmp5_; - void* _tmp5__target; - DataSource* _tmp6_; - gint64 _tmp7_; - DataSource* _tmp8_; -#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp1_ = _source_it; -#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - break; -#line 795 "DatabaseSourceCollection.c" - } -#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp2_ = _source_it; -#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - source = (DataSource*) _tmp3_; -#line 75 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp4_ = self->priv->map; -#line 75 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp5_ = self->priv->get_key; -#line 75 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp5__target = self->priv->get_key_target; -#line 75 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp6_ = source; -#line 75 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp7_ = _tmp5_ (_tmp6_, _tmp5__target); -#line 75 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp8_ = source; -#line 75 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp7_, _tmp8_); -#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _g_object_unref0 (source); -#line 819 "DatabaseSourceCollection.c" - } -#line 74 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _g_object_unref0 (_source_it); -#line 823 "DatabaseSourceCollection.c" - } - } -#line 78 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - if (removed != NULL) { -#line 828 "DatabaseSourceCollection.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp9_; -#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_ITERABLE, GeeIterable)); -#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _source_it = _tmp9_; -#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - while (TRUE) { -#line 838 "DatabaseSourceCollection.c" - GeeIterator* _tmp10_; - DataSource* source = NULL; - GeeIterator* _tmp11_; - gpointer _tmp12_; - GeeHashMap* _tmp13_; - GetSourceDatabaseKey _tmp14_; - void* _tmp14__target; - DataSource* _tmp15_; - gint64 _tmp16_; -#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp10_ = _source_it; -#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - if (!gee_iterator_next (_tmp10_)) { -#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - break; -#line 854 "DatabaseSourceCollection.c" - } -#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp11_ = _source_it; -#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp12_ = gee_iterator_get (_tmp11_); -#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - source = (DataSource*) _tmp12_; -#line 80 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp13_ = self->priv->map; -#line 80 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp14_ = self->priv->get_key; -#line 80 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp14__target = self->priv->get_key_target; -#line 80 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp15_ = source; -#line 80 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp16_ = _tmp14_ (_tmp15_, _tmp14__target); -#line 80 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), &_tmp16_, NULL); -#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _g_object_unref0 (source); -#line 876 "DatabaseSourceCollection.c" - } -#line 79 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _g_object_unref0 (_source_it); -#line 880 "DatabaseSourceCollection.c" - } - } -#line 83 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - SOURCE_HOLDING_TANK_CLASS (database_source_holding_tank_parent_class)->notify_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), added, removed); -#line 885 "DatabaseSourceCollection.c" -} - - -static void -database_source_holding_tank_class_init (DatabaseSourceHoldingTankClass * klass) -{ -#line 55 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - database_source_holding_tank_parent_class = g_type_class_peek_parent (klass); -#line 55 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - ((SourceHoldingTankClass *) klass)->finalize = database_source_holding_tank_finalize; -#line 55 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - g_type_class_add_private (klass, sizeof (DatabaseSourceHoldingTankPrivate)); -#line 55 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - ((SourceHoldingTankClass *) klass)->notify_contents_altered = (void (*) (SourceHoldingTank *, GeeCollection*, GeeCollection*)) database_source_holding_tank_real_notify_contents_altered; -#line 900 "DatabaseSourceCollection.c" -} - - -static void -database_source_holding_tank_instance_init (DatabaseSourceHoldingTank * self) -{ - GeeHashMap* _tmp0_; -#line 55 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - self->priv = DATABASE_SOURCE_HOLDING_TANK_GET_PRIVATE (self); -#line 57 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_INT64, (GBoxedCopyFunc) _int64_dup, (GDestroyNotify) g_free, TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _int64_hash_gee_hash_data_func, NULL, NULL, _int64_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); -#line 57 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - self->priv->map = _tmp0_; -#line 914 "DatabaseSourceCollection.c" -} - - -static void -database_source_holding_tank_finalize (SourceHoldingTank * obj) -{ - DatabaseSourceHoldingTank * self; -#line 55 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DATABASE_SOURCE_HOLDING_TANK, DatabaseSourceHoldingTank); -#line 57 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - _g_object_unref0 (self->priv->map); -#line 55 "/home/jens/Source/shotwell/src/core/DatabaseSourceCollection.vala" - SOURCE_HOLDING_TANK_CLASS (database_source_holding_tank_parent_class)->finalize (obj); -#line 928 "DatabaseSourceCollection.c" -} - - -GType -database_source_holding_tank_get_type (void) -{ - static volatile gsize database_source_holding_tank_type_id__volatile = 0; - if (g_once_init_enter (&database_source_holding_tank_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DatabaseSourceHoldingTankClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) database_source_holding_tank_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DatabaseSourceHoldingTank), 0, (GInstanceInitFunc) database_source_holding_tank_instance_init, NULL }; - GType database_source_holding_tank_type_id; - database_source_holding_tank_type_id = g_type_register_static (TYPE_SOURCE_HOLDING_TANK, "DatabaseSourceHoldingTank", &g_define_type_info, 0); - g_once_init_leave (&database_source_holding_tank_type_id__volatile, database_source_holding_tank_type_id); - } - return database_source_holding_tank_type_id__volatile; -} - - - diff --git a/src/core/SourceCollection.c b/src/core/SourceCollection.c deleted file mode 100644 index 9de9400..0000000 --- a/src/core/SourceCollection.c +++ /dev/null @@ -1,1807 +0,0 @@ -/* SourceCollection.c generated by valac 0.40.4, the Vala compiler - * generated from SourceCollection.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include - - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; -typedef struct _DataCollectionPrivate DataCollectionPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; -typedef struct _SourceCollectionPrivate SourceCollectionPrivate; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ()) -#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink)) -#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) -#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK)) -#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK)) -#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) - -typedef struct _SourceBacklink SourceBacklink; -typedef struct _SourceBacklinkClass SourceBacklinkClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define SOURCE_COLLECTION_TYPE_DESTROY_COUNTER (source_collection_destroy_counter_get_type ()) -#define SOURCE_COLLECTION_DESTROY_COUNTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOURCE_COLLECTION_TYPE_DESTROY_COUNTER, SourceCollectionDestroyCounter)) -#define SOURCE_COLLECTION_DESTROY_COUNTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SOURCE_COLLECTION_TYPE_DESTROY_COUNTER, SourceCollectionDestroyCounterClass)) -#define SOURCE_COLLECTION_IS_DESTROY_COUNTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SOURCE_COLLECTION_TYPE_DESTROY_COUNTER)) -#define SOURCE_COLLECTION_IS_DESTROY_COUNTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SOURCE_COLLECTION_TYPE_DESTROY_COUNTER)) -#define SOURCE_COLLECTION_DESTROY_COUNTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SOURCE_COLLECTION_TYPE_DESTROY_COUNTER, SourceCollectionDestroyCounterClass)) - -typedef struct _SourceCollectionDestroyCounter SourceCollectionDestroyCounter; -typedef struct _SourceCollectionDestroyCounterClass SourceCollectionDestroyCounterClass; -typedef struct _SourceCollectionDestroyCounterPrivate SourceCollectionDestroyCounterPrivate; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -enum { - SOURCE_COLLECTION_DESTROY_COUNTER_0_PROPERTY, - SOURCE_COLLECTION_DESTROY_COUNTER_NUM_PROPERTIES -}; -static GParamSpec* source_collection_destroy_counter_properties[SOURCE_COLLECTION_DESTROY_COUNTER_NUM_PROPERTIES]; -enum { - SOURCE_COLLECTION_ITEMS_UNLINKING_SIGNAL, - SOURCE_COLLECTION_ITEMS_RELINKED_SIGNAL, - SOURCE_COLLECTION_ITEM_DESTROYED_SIGNAL, - SOURCE_COLLECTION_ITEMS_DESTROYED_SIGNAL, - SOURCE_COLLECTION_UNLINKED_DESTROYED_SIGNAL, - SOURCE_COLLECTION_BACKLINK_REMOVED_SIGNAL, - SOURCE_COLLECTION_NUM_SIGNALS -}; -static guint source_collection_signals[SOURCE_COLLECTION_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -struct _DataCollection { - GTypeInstance parent_instance; - volatile int ref_count; - DataCollectionPrivate * priv; -}; - -struct _DataCollectionClass { - GTypeClass parent_class; - void (*finalize) (DataCollection *self); - gchar* (*to_string) (DataCollection* self); - void (*notify_items_added) (DataCollection* self, GeeIterable* added); - void (*notify_items_removed) (DataCollection* self, GeeIterable* removed); - void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*notify_items_altered) (DataCollection* self, GeeMap* items); - void (*notify_ordering_changed) (DataCollection* self); - void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*notify_property_cleared) (DataCollection* self, const gchar* name); - gboolean (*valid_type) (DataCollection* self, DataObject* object); - void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target); - void (*reset_comparator) (DataCollection* self); - GeeCollection* (*get_all) (DataCollection* self); - gint (*get_count) (DataCollection* self); - DataObject* (*get_at) (DataCollection* self, gint index); - gint (*index_of) (DataCollection* self, DataObject* object); - gboolean (*contains) (DataCollection* self, DataObject* object); - gboolean (*add) (DataCollection* self, DataObject* object); - GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target); - void (*remove_marked) (DataCollection* self, Marker* m); - void (*clear) (DataCollection* self); - void (*close) (DataCollection* self); - void (*notify_frozen) (DataCollection* self); - void (*notify_thawed) (DataCollection* self); - void (*items_added) (DataCollection* self, GeeIterable* added); - void (*items_removed) (DataCollection* self, GeeIterable* removed); - void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*items_altered) (DataCollection* self, GeeMap* items); - void (*ordering_changed) (DataCollection* self); - void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*property_cleared) (DataCollection* self, const gchar* name); - void (*frozen) (DataCollection* self); - void (*thawed) (DataCollection* self); -}; - -struct _SourceCollection { - DataCollection parent_instance; - SourceCollectionPrivate * priv; -}; - -struct _SourceCollectionClass { - DataCollectionClass parent_class; - gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source); - void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*notify_item_destroyed) (SourceCollection* self, DataSource* source); - void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked); - void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); - gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*item_destroyed) (SourceCollection* self, DataSource* source); - void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*unlinked_destroyed) (SourceCollection* self, DataSource* source); - void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); -}; - -struct _SourceCollectionPrivate { - GeeMultiMap* backlinks; -}; - -typedef gboolean (*MarkedAction) (DataObject* object, GObject* user, void* user_data); -struct _SourceCollectionDestroyCounter { - GObject parent_instance; - SourceCollectionDestroyCounterPrivate * priv; - Marker* remove_marker; - GeeArrayList* notify_list; - GeeArrayList* not_removed; -}; - -struct _SourceCollectionDestroyCounterClass { - GObjectClass parent_class; -}; - - -static gpointer source_collection_parent_class = NULL; -static gpointer source_collection_destroy_counter_parent_class = NULL; - -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -GType marker_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -gpointer source_backlink_ref (gpointer instance); -void source_backlink_unref (gpointer instance); -GParamSpec* param_spec_source_backlink (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_backlink (GValue* value, - gpointer v_object); -void value_take_source_backlink (GValue* value, - gpointer v_object); -gpointer value_get_source_backlink (const GValue* value); -GType source_backlink_get_type (void) G_GNUC_CONST; -#define SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SOURCE_COLLECTION, SourceCollectionPrivate)) -SourceCollection* source_collection_construct (GType object_type, - const gchar* name); -DataCollection* data_collection_new (const gchar* name); -DataCollection* data_collection_construct (GType object_type, - const gchar* name); -gboolean source_collection_holds_type_of_source (SourceCollection* self, - DataSource* source); -static gboolean source_collection_real_holds_type_of_source (SourceCollection* self, - DataSource* source); -void source_collection_notify_items_unlinking (SourceCollection* self, - GeeCollection* unlinking); -static void source_collection_real_notify_items_unlinking (SourceCollection* self, - GeeCollection* unlinking); -void source_collection_notify_items_relinked (SourceCollection* self, - GeeCollection* relinked); -static void source_collection_real_notify_items_relinked (SourceCollection* self, - GeeCollection* relinked); -void source_collection_notify_item_destroyed (SourceCollection* self, - DataSource* source); -static void source_collection_real_notify_item_destroyed (SourceCollection* self, - DataSource* source); -void source_collection_notify_items_destroyed (SourceCollection* self, - GeeCollection* destroyed); -static void source_collection_real_notify_items_destroyed (SourceCollection* self, - GeeCollection* destroyed); -void source_collection_notify_unlinked_destroyed (SourceCollection* self, - DataSource* unlinked); -static void source_collection_real_notify_unlinked_destroyed (SourceCollection* self, - DataSource* unlinked); -void source_collection_notify_backlink_removed (SourceCollection* self, - SourceBacklink* backlink, - GeeCollection* sources); -static void source_collection_real_notify_backlink_removed (SourceCollection* self, - SourceBacklink* backlink, - GeeCollection* sources); -static gboolean source_collection_real_valid_type (DataCollection* base, - DataObject* object); -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -gint source_collection_destroy_marked (SourceCollection* self, - Marker* marker, - gboolean delete_backing, - ProgressMonitor monitor, - void* monitor_target, - GeeList* not_removed); -static GType source_collection_destroy_counter_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -Marker* data_collection_start_marking (DataCollection* self); -static SourceCollectionDestroyCounter* source_collection_destroy_counter_new (Marker* remove_marker); -static SourceCollectionDestroyCounter* source_collection_destroy_counter_construct (GType object_type, - Marker* remove_marker); -void data_collection_act_on_marked (DataCollection* self, - Marker* m, - MarkedAction action, - void* action_target, - ProgressMonitor monitor, - void* monitor_target, - GObject* user); -static gboolean source_collection_destroy_and_delete_source (SourceCollection* self, - DataObject* object, - GObject* user); -static gboolean _source_collection_destroy_and_delete_source_marked_action (DataObject* object, - GObject* user, - gpointer self); -static gboolean source_collection_destroy_source (SourceCollection* self, - DataObject* object, - GObject* user); -static gboolean _source_collection_destroy_source_marked_action (DataObject* object, - GObject* user, - gpointer self); -void data_collection_remove_marked (DataCollection* self, - Marker* m); -gboolean data_source_internal_delete_backing (DataSource* self, - GError** error); -void data_source_internal_mark_for_destroy (DataSource* self); -void data_source_destroy (DataSource* self); -void marker_mark (Marker* self, - DataObject* object); -void source_collection_internal_backlink_set (SourceCollection* self, - DataSource* source, - SourceBacklink* backlink); -guint source_backlink_hash_func (SourceBacklink* backlink); -static guint _source_backlink_hash_func_gee_hash_data_func (gconstpointer v, - gpointer self); -gboolean source_backlink_equal_func (SourceBacklink* alink, - SourceBacklink* blink); -static gboolean _source_backlink_equal_func_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -void source_collection_internal_backlink_removed (SourceCollection* self, - DataSource* source, - SourceBacklink* backlink); -gboolean source_collection_has_backlink (SourceCollection* self, - SourceBacklink* backlink); -static gboolean source_collection_real_has_backlink (SourceCollection* self, - SourceBacklink* backlink); -GeeCollection* source_collection_unlink_marked (SourceCollection* self, - Marker* marker, - ProgressMonitor monitor, - void* monitor_target); -static gboolean source_collection_prepare_for_unlink (SourceCollection* self, - DataObject* object, - GObject* user); -static gboolean _source_collection_prepare_for_unlink_marked_action (DataObject* object, - GObject* user, - gpointer self); -Marker* data_collection_mark_many (DataCollection* self, - GeeCollection* objects); -void data_source_notify_unlinking (DataSource* self, - SourceCollection* collection); -void source_collection_relink (SourceCollection* self, - DataSource* source); -void data_source_notify_relinking (DataSource* self, - SourceCollection* collection); -gboolean data_collection_add (DataCollection* self, - DataObject* object); -GeeCollection* data_collection_get_singleton (DataObject* object); -void data_source_notify_relinked (DataSource* self); -void source_collection_relink_many (SourceCollection* self, - GeeCollection* relink); -GeeCollection* data_collection_add_many (DataCollection* self, - GeeCollection* objects, - ProgressMonitor monitor, - void* monitor_target); -void source_collection_remove_backlink (SourceCollection* self, - SourceBacklink* backlink); -static void source_collection_real_remove_backlink (SourceCollection* self, - SourceBacklink* backlink); -gboolean data_source_remove_backlink (DataSource* self, - SourceBacklink* backlink); -static void source_collection_real_items_unlinking (SourceCollection* self, - GeeCollection* unlinking); -static void source_collection_real_items_relinked (SourceCollection* self, - GeeCollection* relinked); -static void source_collection_real_item_destroyed (SourceCollection* self, - DataSource* source); -static void source_collection_real_items_destroyed (SourceCollection* self, - GeeCollection* destroyed); -static void source_collection_real_unlinked_destroyed (SourceCollection* self, - DataSource* source); -static void source_collection_real_backlink_removed (SourceCollection* self, - SourceBacklink* backlink, - GeeCollection* sources); -static void g_cclosure_user_marshal_VOID__SOURCE_BACKLINK_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void source_collection_destroy_counter_finalize (GObject * obj); -static void source_collection_finalize (DataCollection * obj); - - -SourceCollection* -source_collection_construct (GType object_type, - const gchar* name) -{ - SourceCollection* self = NULL; -#line 50 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 51 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - self = (SourceCollection*) data_collection_construct (object_type, name); -#line 50 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return self; -#line 451 "SourceCollection.c" -} - - -static gboolean -source_collection_real_holds_type_of_source (SourceCollection* self, - DataSource* source) -{ - gboolean _tmp0_ = FALSE; -#line 54 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_critical ("Type `%s' does not implement abstract method `source_collection_holds_type_of_source'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 54 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return _tmp0_; -#line 464 "SourceCollection.c" -} - - -gboolean -source_collection_holds_type_of_source (SourceCollection* self, - DataSource* source) -{ -#line 54 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail (IS_SOURCE_COLLECTION (self), FALSE); -#line 54 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return SOURCE_COLLECTION_GET_CLASS (self)->holds_type_of_source (self, source); -#line 476 "SourceCollection.c" -} - - -static void -source_collection_real_notify_items_unlinking (SourceCollection* self, - GeeCollection* unlinking) -{ -#line 56 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (unlinking)); -#line 57 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_signal_emit (self, source_collection_signals[SOURCE_COLLECTION_ITEMS_UNLINKING_SIGNAL], 0, unlinking); -#line 488 "SourceCollection.c" -} - - -void -source_collection_notify_items_unlinking (SourceCollection* self, - GeeCollection* unlinking) -{ -#line 56 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (self)); -#line 56 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - SOURCE_COLLECTION_GET_CLASS (self)->notify_items_unlinking (self, unlinking); -#line 500 "SourceCollection.c" -} - - -static void -source_collection_real_notify_items_relinked (SourceCollection* self, - GeeCollection* relinked) -{ -#line 60 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (relinked)); -#line 61 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_signal_emit (self, source_collection_signals[SOURCE_COLLECTION_ITEMS_RELINKED_SIGNAL], 0, relinked); -#line 512 "SourceCollection.c" -} - - -void -source_collection_notify_items_relinked (SourceCollection* self, - GeeCollection* relinked) -{ -#line 60 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (self)); -#line 60 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - SOURCE_COLLECTION_GET_CLASS (self)->notify_items_relinked (self, relinked); -#line 524 "SourceCollection.c" -} - - -static void -source_collection_real_notify_item_destroyed (SourceCollection* self, - DataSource* source) -{ -#line 64 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 65 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_signal_emit (self, source_collection_signals[SOURCE_COLLECTION_ITEM_DESTROYED_SIGNAL], 0, source); -#line 536 "SourceCollection.c" -} - - -void -source_collection_notify_item_destroyed (SourceCollection* self, - DataSource* source) -{ -#line 64 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (self)); -#line 64 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - SOURCE_COLLECTION_GET_CLASS (self)->notify_item_destroyed (self, source); -#line 548 "SourceCollection.c" -} - - -static void -source_collection_real_notify_items_destroyed (SourceCollection* self, - GeeCollection* destroyed) -{ -#line 68 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (destroyed)); -#line 69 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_signal_emit (self, source_collection_signals[SOURCE_COLLECTION_ITEMS_DESTROYED_SIGNAL], 0, destroyed); -#line 560 "SourceCollection.c" -} - - -void -source_collection_notify_items_destroyed (SourceCollection* self, - GeeCollection* destroyed) -{ -#line 68 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (self)); -#line 68 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - SOURCE_COLLECTION_GET_CLASS (self)->notify_items_destroyed (self, destroyed); -#line 572 "SourceCollection.c" -} - - -static void -source_collection_real_notify_unlinked_destroyed (SourceCollection* self, - DataSource* unlinked) -{ -#line 73 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_DATA_SOURCE (unlinked)); -#line 74 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_signal_emit (self, source_collection_signals[SOURCE_COLLECTION_UNLINKED_DESTROYED_SIGNAL], 0, unlinked); -#line 584 "SourceCollection.c" -} - - -void -source_collection_notify_unlinked_destroyed (SourceCollection* self, - DataSource* unlinked) -{ -#line 73 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (self)); -#line 73 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - SOURCE_COLLECTION_GET_CLASS (self)->notify_unlinked_destroyed (self, unlinked); -#line 596 "SourceCollection.c" -} - - -static void -source_collection_real_notify_backlink_removed (SourceCollection* self, - SourceBacklink* backlink, - GeeCollection* sources) -{ -#line 77 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_SOURCE_BACKLINK (backlink)); -#line 77 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 79 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_signal_emit (self, source_collection_signals[SOURCE_COLLECTION_BACKLINK_REMOVED_SIGNAL], 0, backlink, sources); -#line 611 "SourceCollection.c" -} - - -void -source_collection_notify_backlink_removed (SourceCollection* self, - SourceBacklink* backlink, - GeeCollection* sources) -{ -#line 77 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (self)); -#line 77 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - SOURCE_COLLECTION_GET_CLASS (self)->notify_backlink_removed (self, backlink, sources); -#line 624 "SourceCollection.c" -} - - -static gboolean -source_collection_real_valid_type (DataCollection* base, - DataObject* object) -{ - SourceCollection * self; - gboolean result = FALSE; -#line 82 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SOURCE_COLLECTION, SourceCollection); -#line 82 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 83 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - result = G_TYPE_CHECK_INSTANCE_TYPE (object, TYPE_DATA_SOURCE); -#line 83 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return result; -#line 642 "SourceCollection.c" -} - - -static gboolean -_source_collection_destroy_and_delete_source_marked_action (DataObject* object, - GObject* user, - gpointer self) -{ - gboolean result; - result = source_collection_destroy_and_delete_source ((SourceCollection*) self, object, user); -#line 93 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return result; -#line 655 "SourceCollection.c" -} - - -static gboolean -_source_collection_destroy_source_marked_action (DataObject* object, - GObject* user, - gpointer self) -{ - gboolean result; - result = source_collection_destroy_source ((SourceCollection*) self, object, user); -#line 95 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return result; -#line 668 "SourceCollection.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return self ? g_object_ref (self) : NULL; -#line 677 "SourceCollection.c" -} - - -gint -source_collection_destroy_marked (SourceCollection* self, - Marker* marker, - gboolean delete_backing, - ProgressMonitor monitor, - void* monitor_target, - GeeList* not_removed) -{ - gint result = 0; - SourceCollectionDestroyCounter* counter = NULL; - Marker* _tmp0_; - Marker* _tmp1_; - SourceCollectionDestroyCounter* _tmp2_; - SourceCollectionDestroyCounter* _tmp3_; - SourceCollectionDestroyCounter* _tmp19_; - GeeArrayList* _tmp20_; - SourceCollectionDestroyCounter* _tmp21_; - Marker* _tmp22_; - SourceCollectionDestroyCounter* _tmp25_; - GeeArrayList* _tmp26_; - gint _tmp27_; - gint _tmp28_; -#line 88 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail (IS_SOURCE_COLLECTION (self), 0); -#line 88 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail (IS_MARKER (marker), 0); -#line 88 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail ((not_removed == NULL) || GEE_IS_LIST (not_removed), 0); -#line 90 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp0_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 90 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp1_ = _tmp0_; -#line 90 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp2_ = source_collection_destroy_counter_new (_tmp1_); -#line 90 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp3_ = _tmp2_; -#line 90 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (_tmp1_); -#line 90 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - counter = _tmp3_; -#line 92 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - if (delete_backing) { -#line 723 "SourceCollection.c" - SourceCollectionDestroyCounter* _tmp4_; -#line 93 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp4_ = counter; -#line 93 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data_collection_act_on_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), marker, _source_collection_destroy_and_delete_source_marked_action, self, monitor, monitor_target, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, G_TYPE_OBJECT, GObject)); -#line 729 "SourceCollection.c" - } else { - SourceCollectionDestroyCounter* _tmp5_; -#line 95 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp5_ = counter; -#line 95 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data_collection_act_on_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), marker, _source_collection_destroy_source_marked_action, self, monitor, monitor_target, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, G_TYPE_OBJECT, GObject)); -#line 736 "SourceCollection.c" - } - { - GeeArrayList* _source_list = NULL; - SourceCollectionDestroyCounter* _tmp6_; - GeeArrayList* _tmp7_; - GeeArrayList* _tmp8_; - gint _source_size = 0; - GeeArrayList* _tmp9_; - gint _tmp10_; - gint _tmp11_; - gint _source_index = 0; -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp6_ = counter; -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp7_ = _tmp6_->notify_list; -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp8_ = _g_object_ref0 (_tmp7_); -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _source_list = _tmp8_; -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp9_ = _source_list; -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp10_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp11_ = _tmp10_; -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _source_size = _tmp11_; -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _source_index = -1; -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - while (TRUE) { -#line 768 "SourceCollection.c" - gint _tmp12_; - gint _tmp13_; - gint _tmp14_; - DataSource* source = NULL; - GeeArrayList* _tmp15_; - gint _tmp16_; - gpointer _tmp17_; - DataSource* _tmp18_; -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp12_ = _source_index; -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _source_index = _tmp12_ + 1; -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp13_ = _source_index; -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp14_ = _source_size; -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - if (!(_tmp13_ < _tmp14_)) { -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - break; -#line 789 "SourceCollection.c" - } -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp15_ = _source_list; -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp16_ = _source_index; -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp17_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp16_); -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source = (DataSource*) _tmp17_; -#line 99 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp18_ = source; -#line 99 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source_collection_notify_item_destroyed (self, _tmp18_); -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (source); -#line 805 "SourceCollection.c" - } -#line 98 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (_source_list); -#line 809 "SourceCollection.c" - } -#line 100 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp19_ = counter; -#line 100 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp20_ = _tmp19_->notify_list; -#line 100 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source_collection_notify_items_destroyed (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 103 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp21_ = counter; -#line 103 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp22_ = _tmp21_->remove_marker; -#line 103 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp22_); -#line 105 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - if (NULL != not_removed) { -#line 825 "SourceCollection.c" - SourceCollectionDestroyCounter* _tmp23_; - GeeArrayList* _tmp24_; -#line 106 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp23_ = counter; -#line 106 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp24_ = _tmp23_->not_removed; -#line 106 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (not_removed, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 834 "SourceCollection.c" - } -#line 109 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp25_ = counter; -#line 109 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp26_ = _tmp25_->not_removed; -#line 109 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp27_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 109 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp28_ = _tmp27_; -#line 109 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - result = _tmp28_; -#line 109 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (counter); -#line 109 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return result; -#line 850 "SourceCollection.c" -} - - -static gboolean -source_collection_destroy_and_delete_source (SourceCollection* self, - DataObject* object, - GObject* user) -{ - gboolean result = FALSE; - gboolean success = FALSE; - gboolean _tmp2_ = FALSE; - gboolean _tmp3_; - gboolean _tmp5_ = FALSE; - GError * _inner_error_ = NULL; -#line 112 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail (IS_SOURCE_COLLECTION (self), FALSE); -#line 112 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 112 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail ((user == NULL) || G_IS_OBJECT (user), FALSE); -#line 113 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - success = FALSE; -#line 873 "SourceCollection.c" - { - gboolean _tmp0_ = FALSE; -#line 115 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp0_ = data_source_internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_SOURCE, DataSource), &_inner_error_); -#line 115 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 880 "SourceCollection.c" - goto __catch53_g_error; - } -#line 115 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - success = _tmp0_; -#line 885 "SourceCollection.c" - } - goto __finally53; - __catch53_g_error: - { - GError* err = NULL; -#line 114 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - err = _inner_error_; -#line 114 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _inner_error_ = NULL; -#line 117 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - success = FALSE; -#line 114 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_error_free0 (err); -#line 899 "SourceCollection.c" - } - __finally53: -#line 114 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 904 "SourceCollection.c" - gboolean _tmp1_ = FALSE; -#line 114 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 114 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_clear_error (&_inner_error_); -#line 114 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return _tmp1_; -#line 912 "SourceCollection.c" - } -#line 120 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp3_ = success; -#line 120 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - if (!_tmp3_) { -#line 120 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (object, TYPE_MEDIA_SOURCE); -#line 920 "SourceCollection.c" - } else { -#line 120 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp2_ = FALSE; -#line 924 "SourceCollection.c" - } -#line 120 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - if (_tmp2_) { -#line 928 "SourceCollection.c" - GeeArrayList* _tmp4_; -#line 121 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (user, SOURCE_COLLECTION_TYPE_DESTROY_COUNTER, SourceCollectionDestroyCounter)->not_removed; -#line 121 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_MEDIA_SOURCE, MediaSource)); -#line 934 "SourceCollection.c" - } -#line 124 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - if (source_collection_destroy_source (self, object, user)) { -#line 938 "SourceCollection.c" - gboolean _tmp6_; -#line 124 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp6_ = success; -#line 124 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp5_ = _tmp6_; -#line 944 "SourceCollection.c" - } else { -#line 124 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp5_ = FALSE; -#line 948 "SourceCollection.c" - } -#line 124 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - result = _tmp5_; -#line 124 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return result; -#line 954 "SourceCollection.c" -} - - -static gboolean -source_collection_destroy_source (SourceCollection* self, - DataObject* object, - GObject* user) -{ - gboolean result = FALSE; - DataSource* source = NULL; - DataSource* _tmp0_; - Marker* _tmp1_; - GeeArrayList* _tmp2_; -#line 127 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail (IS_SOURCE_COLLECTION (self), FALSE); -#line 127 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 127 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail ((user == NULL) || G_IS_OBJECT (user), FALSE); -#line 128 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_SOURCE, DataSource)); -#line 128 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source = _tmp0_; -#line 130 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data_source_internal_mark_for_destroy (source); -#line 131 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data_source_destroy (source); -#line 133 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (user, SOURCE_COLLECTION_TYPE_DESTROY_COUNTER, SourceCollectionDestroyCounter)->remove_marker; -#line 133 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - marker_mark (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject)); -#line 134 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (user, SOURCE_COLLECTION_TYPE_DESTROY_COUNTER, SourceCollectionDestroyCounter)->notify_list; -#line 134 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), source); -#line 136 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - result = TRUE; -#line 136 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (source); -#line 136 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return result; -#line 996 "SourceCollection.c" -} - - -static guint -_source_backlink_hash_func_gee_hash_data_func (gconstpointer v, - gpointer self) -{ - guint result; - result = source_backlink_hash_func ((SourceBacklink*) v); -#line 142 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return result; -#line 1008 "SourceCollection.c" -} - - -static gboolean -_source_backlink_equal_func_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gboolean result; - result = source_backlink_equal_func ((SourceBacklink*) a, (SourceBacklink*) b); -#line 142 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return result; -#line 1021 "SourceCollection.c" -} - - -void -source_collection_internal_backlink_set (SourceCollection* self, - DataSource* source, - SourceBacklink* backlink) -{ - GeeMultiMap* _tmp0_; - GeeMultiMap* _tmp2_; -#line 140 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (self)); -#line 140 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 140 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_SOURCE_BACKLINK (backlink)); -#line 141 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp0_ = self->priv->backlinks; -#line 141 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - if (_tmp0_ == NULL) { -#line 1042 "SourceCollection.c" - GeeHashMultiMap* _tmp1_; -#line 142 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp1_ = gee_hash_multi_map_new (TYPE_SOURCE_BACKLINK, (GBoxedCopyFunc) source_backlink_ref, (GDestroyNotify) source_backlink_unref, TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _source_backlink_hash_func_gee_hash_data_func, NULL, NULL, _source_backlink_equal_func_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 142 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (self->priv->backlinks); -#line 142 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - self->priv->backlinks = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_MULTI_MAP, GeeMultiMap); -#line 1050 "SourceCollection.c" - } -#line 146 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp2_ = self->priv->backlinks; -#line 146 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - gee_multi_map_set (_tmp2_, backlink, source); -#line 1056 "SourceCollection.c" -} - - -void -source_collection_internal_backlink_removed (SourceCollection* self, - DataSource* source, - SourceBacklink* backlink) -{ - GeeMultiMap* _tmp0_; - gboolean removed = FALSE; - GeeMultiMap* _tmp1_; -#line 150 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (self)); -#line 150 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 150 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_SOURCE_BACKLINK (backlink)); -#line 151 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp0_ = self->priv->backlinks; -#line 151 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _vala_assert (_tmp0_ != NULL, "backlinks != null"); -#line 153 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp1_ = self->priv->backlinks; -#line 153 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - removed = gee_multi_map_remove (_tmp1_, backlink, source); -#line 154 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _vala_assert (removed, "removed"); -#line 1084 "SourceCollection.c" -} - - -static gboolean -source_collection_real_has_backlink (SourceCollection* self, - SourceBacklink* backlink) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - GeeMultiMap* _tmp1_; -#line 157 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail (IS_SOURCE_BACKLINK (backlink), FALSE); -#line 158 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp1_ = self->priv->backlinks; -#line 158 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - if (_tmp1_ != NULL) { -#line 1101 "SourceCollection.c" - GeeMultiMap* _tmp2_; -#line 158 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp2_ = self->priv->backlinks; -#line 158 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp0_ = gee_multi_map_contains (_tmp2_, backlink); -#line 1107 "SourceCollection.c" - } else { -#line 158 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp0_ = FALSE; -#line 1111 "SourceCollection.c" - } -#line 158 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - result = _tmp0_; -#line 158 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return result; -#line 1117 "SourceCollection.c" -} - - -gboolean -source_collection_has_backlink (SourceCollection* self, - SourceBacklink* backlink) -{ -#line 157 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail (IS_SOURCE_COLLECTION (self), FALSE); -#line 157 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return SOURCE_COLLECTION_GET_CLASS (self)->has_backlink (self, backlink); -#line 1129 "SourceCollection.c" -} - - -static gboolean -_source_collection_prepare_for_unlink_marked_action (DataObject* object, - GObject* user, - gpointer self) -{ - gboolean result; - result = source_collection_prepare_for_unlink ((SourceCollection*) self, object, user); -#line 163 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return result; -#line 1142 "SourceCollection.c" -} - - -GeeCollection* -source_collection_unlink_marked (SourceCollection* self, - Marker* marker, - ProgressMonitor monitor, - void* monitor_target) -{ - GeeCollection* result = NULL; - GeeArrayList* list = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; - GeeArrayList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - GeeArrayList* _tmp5_; - GeeArrayList* _tmp6_; - Marker* _tmp7_; - Marker* _tmp8_; -#line 161 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail (IS_SOURCE_COLLECTION (self), NULL); -#line 161 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail (IS_MARKER (marker), NULL); -#line 162 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp0_ = gee_array_list_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 162 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - list = _tmp0_; -#line 163 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp1_ = list; -#line 163 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data_collection_act_on_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), marker, _source_collection_prepare_for_unlink_marked_action, self, monitor, monitor_target, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, G_TYPE_OBJECT, GObject)); -#line 165 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp2_ = list; -#line 165 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 165 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp4_ = _tmp3_; -#line 165 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - if (_tmp4_ == 0) { -#line 166 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - result = NULL; -#line 166 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (list); -#line 166 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return result; -#line 1189 "SourceCollection.c" - } -#line 168 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp5_ = list; -#line 168 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source_collection_notify_items_unlinking (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 170 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp6_ = list; -#line 170 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp7_ = data_collection_mark_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 170 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp8_ = _tmp7_; -#line 170 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp8_); -#line 170 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (_tmp8_); -#line 172 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_COLLECTION, GeeCollection); -#line 172 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return result; -#line 1209 "SourceCollection.c" -} - - -static gboolean -source_collection_prepare_for_unlink (SourceCollection* self, - DataObject* object, - GObject* user) -{ - gboolean result = FALSE; - DataSource* source = NULL; - DataSource* _tmp0_; -#line 175 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail (IS_SOURCE_COLLECTION (self), FALSE); -#line 175 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 175 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail ((user == NULL) || G_IS_OBJECT (user), FALSE); -#line 176 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_SOURCE, DataSource)); -#line 176 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source = _tmp0_; -#line 178 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data_source_notify_unlinking (source, self); -#line 179 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (user, GEE_TYPE_LIST, GeeList), GEE_TYPE_COLLECTION, GeeCollection), source); -#line 181 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - result = TRUE; -#line 181 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (source); -#line 181 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return result; -#line 1241 "SourceCollection.c" -} - - -void -source_collection_relink (SourceCollection* self, - DataSource* source) -{ - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; -#line 184 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (self)); -#line 184 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 185 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data_source_notify_relinking (source, self); -#line 187 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject)); -#line 188 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp0_ = data_collection_get_singleton (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject)); -#line 188 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 188 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source_collection_notify_items_relinked (self, _tmp1_); -#line 188 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (_tmp1_); -#line 190 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data_source_notify_relinked (source); -#line 1269 "SourceCollection.c" -} - - -void -source_collection_relink_many (SourceCollection* self, - GeeCollection* relink) -{ - gint _tmp0_; - gint _tmp1_; - GeeCollection* _tmp7_; - GeeCollection* _tmp8_; -#line 193 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (self)); -#line 193 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (relink)); -#line 194 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp0_ = gee_collection_get_size (relink); -#line 194 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp1_ = _tmp0_; -#line 194 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - if (_tmp1_ == 0) { -#line 195 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return; -#line 1293 "SourceCollection.c" - } - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp2_; -#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (relink, GEE_TYPE_ITERABLE, GeeIterable)); -#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _source_it = _tmp2_; -#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - while (TRUE) { -#line 1304 "SourceCollection.c" - GeeIterator* _tmp3_; - DataSource* source = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - DataSource* _tmp6_; -#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp3_ = _source_it; -#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - break; -#line 1316 "SourceCollection.c" - } -#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp4_ = _source_it; -#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source = (DataSource*) _tmp5_; -#line 198 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp6_ = source; -#line 198 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data_source_notify_relinking (_tmp6_, self); -#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (source); -#line 1330 "SourceCollection.c" - } -#line 197 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (_source_it); -#line 1334 "SourceCollection.c" - } -#line 200 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp7_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), relink, NULL, NULL); -#line 200 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp8_ = _tmp7_; -#line 200 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (_tmp8_); -#line 201 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source_collection_notify_items_relinked (self, relink); -#line 1344 "SourceCollection.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp9_; -#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (relink, GEE_TYPE_ITERABLE, GeeIterable)); -#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _source_it = _tmp9_; -#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - while (TRUE) { -#line 1354 "SourceCollection.c" - GeeIterator* _tmp10_; - DataSource* source = NULL; - GeeIterator* _tmp11_; - gpointer _tmp12_; - DataSource* _tmp13_; -#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp10_ = _source_it; -#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - if (!gee_iterator_next (_tmp10_)) { -#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - break; -#line 1366 "SourceCollection.c" - } -#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp11_ = _source_it; -#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp12_ = gee_iterator_get (_tmp11_); -#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source = (DataSource*) _tmp12_; -#line 204 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp13_ = source; -#line 204 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data_source_notify_relinked (_tmp13_); -#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (source); -#line 1380 "SourceCollection.c" - } -#line 203 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (_source_it); -#line 1384 "SourceCollection.c" - } -} - - -static void -source_collection_real_remove_backlink (SourceCollection* self, - SourceBacklink* backlink) -{ - GeeMultiMap* _tmp0_; - GeeArrayList* sources = NULL; - GeeArrayList* _tmp1_; - GeeArrayList* _tmp2_; - GeeMultiMap* _tmp3_; - GeeCollection* _tmp4_; - GeeCollection* _tmp5_; - GeeArrayList* _tmp18_; -#line 207 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_SOURCE_BACKLINK (backlink)); -#line 208 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp0_ = self->priv->backlinks; -#line 208 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - if (_tmp0_ == NULL) { -#line 209 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return; -#line 1409 "SourceCollection.c" - } -#line 212 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp1_ = gee_array_list_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 212 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - sources = _tmp1_; -#line 213 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp2_ = sources; -#line 213 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp3_ = self->priv->backlinks; -#line 213 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp4_ = gee_multi_map_get (_tmp3_, backlink); -#line 213 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp5_ = _tmp4_; -#line 213 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - gee_array_list_add_all (_tmp2_, _tmp5_); -#line 213 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (_tmp5_); -#line 1427 "SourceCollection.c" - { - GeeArrayList* _source_list = NULL; - GeeArrayList* _tmp6_; - GeeArrayList* _tmp7_; - gint _source_size = 0; - GeeArrayList* _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _source_index = 0; -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp6_ = sources; -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp7_ = _g_object_ref0 (_tmp6_); -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _source_list = _tmp7_; -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp8_ = _source_list; -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp9_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp10_ = _tmp9_; -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _source_size = _tmp10_; -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _source_index = -1; -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - while (TRUE) { -#line 1455 "SourceCollection.c" - gint _tmp11_; - gint _tmp12_; - gint _tmp13_; - DataSource* source = NULL; - GeeArrayList* _tmp14_; - gint _tmp15_; - gpointer _tmp16_; - DataSource* _tmp17_; -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp11_ = _source_index; -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _source_index = _tmp11_ + 1; -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp12_ = _source_index; -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp13_ = _source_size; -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - if (!(_tmp12_ < _tmp13_)) { -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - break; -#line 1476 "SourceCollection.c" - } -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp14_ = _source_list; -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp15_ = _source_index; -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp16_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp15_); -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source = (DataSource*) _tmp16_; -#line 216 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp17_ = source; -#line 216 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data_source_remove_backlink (_tmp17_, backlink); -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (source); -#line 1492 "SourceCollection.c" - } -#line 215 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (_source_list); -#line 1496 "SourceCollection.c" - } -#line 218 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp18_ = sources; -#line 218 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source_collection_notify_backlink_removed (self, backlink, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 207 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (sources); -#line 1504 "SourceCollection.c" -} - - -void -source_collection_remove_backlink (SourceCollection* self, - SourceBacklink* backlink) -{ -#line 207 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (self)); -#line 207 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - SOURCE_COLLECTION_GET_CLASS (self)->remove_backlink (self, backlink); -#line 1516 "SourceCollection.c" -} - - -static void -source_collection_real_items_unlinking (SourceCollection* self, - GeeCollection* unlinking) -{ -#line 20 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (unlinking)); -#line 1526 "SourceCollection.c" -} - - -static void -source_collection_real_items_relinked (SourceCollection* self, - GeeCollection* relinked) -{ -#line 25 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (relinked)); -#line 1536 "SourceCollection.c" -} - - -static void -source_collection_real_item_destroyed (SourceCollection* self, - DataSource* source) -{ -#line 30 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1546 "SourceCollection.c" -} - - -static void -source_collection_real_items_destroyed (SourceCollection* self, - GeeCollection* destroyed) -{ -#line 35 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (destroyed)); -#line 1556 "SourceCollection.c" -} - - -static void -source_collection_real_unlinked_destroyed (SourceCollection* self, - DataSource* source) -{ -#line 40 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 1566 "SourceCollection.c" -} - - -static void -source_collection_real_backlink_removed (SourceCollection* self, - SourceBacklink* backlink, - GeeCollection* sources) -{ -#line 44 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (IS_SOURCE_BACKLINK (backlink)); -#line 44 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (sources)); -#line 1579 "SourceCollection.c" -} - - -static void -g_cclosure_user_marshal_VOID__SOURCE_BACKLINK_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__SOURCE_BACKLINK_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2); - register GMarshalFunc_VOID__SOURCE_BACKLINK_OBJECT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_if_fail (n_param_values == 3); -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data1 = closure->data; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data2 = param_values->data[0].v_pointer; -#line 1605 "SourceCollection.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data1 = param_values->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - data2 = closure->data; -#line 1611 "SourceCollection.c" - } -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - callback = (GMarshalFunc_VOID__SOURCE_BACKLINK_OBJECT) (marshal_data ? marshal_data : cc->callback); -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - callback (data1, value_get_source_backlink (param_values + 1), g_value_get_object (param_values + 2), data2); -#line 1617 "SourceCollection.c" -} - - -static SourceCollectionDestroyCounter* -source_collection_destroy_counter_construct (GType object_type, - Marker* remove_marker) -{ - SourceCollectionDestroyCounter * self = NULL; - Marker* _tmp0_; -#line 13 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_return_val_if_fail (IS_MARKER (remove_marker), NULL); -#line 13 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - self = (SourceCollectionDestroyCounter*) g_object_new (object_type, NULL); -#line 14 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp0_ = _g_object_ref0 (remove_marker); -#line 14 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (self->remove_marker); -#line 14 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - self->remove_marker = _tmp0_; -#line 13 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return self; -#line 1639 "SourceCollection.c" -} - - -static SourceCollectionDestroyCounter* -source_collection_destroy_counter_new (Marker* remove_marker) -{ -#line 13 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - return source_collection_destroy_counter_construct (SOURCE_COLLECTION_TYPE_DESTROY_COUNTER, remove_marker); -#line 1648 "SourceCollection.c" -} - - -static void -source_collection_destroy_counter_class_init (SourceCollectionDestroyCounterClass * klass) -{ -#line 8 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source_collection_destroy_counter_parent_class = g_type_class_peek_parent (klass); -#line 8 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - G_OBJECT_CLASS (klass)->finalize = source_collection_destroy_counter_finalize; -#line 1659 "SourceCollection.c" -} - - -static void -source_collection_destroy_counter_instance_init (SourceCollectionDestroyCounter * self) -{ - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; -#line 10 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp0_ = gee_array_list_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 10 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - self->notify_list = _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _tmp1_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 11 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - self->not_removed = _tmp1_; -#line 1676 "SourceCollection.c" -} - - -static void -source_collection_destroy_counter_finalize (GObject * obj) -{ - SourceCollectionDestroyCounter * self; -#line 8 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SOURCE_COLLECTION_TYPE_DESTROY_COUNTER, SourceCollectionDestroyCounter); -#line 9 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (self->remove_marker); -#line 10 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (self->notify_list); -#line 11 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (self->not_removed); -#line 8 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - G_OBJECT_CLASS (source_collection_destroy_counter_parent_class)->finalize (obj); -#line 1694 "SourceCollection.c" -} - - -static GType -source_collection_destroy_counter_get_type (void) -{ - static volatile gsize source_collection_destroy_counter_type_id__volatile = 0; - if (g_once_init_enter (&source_collection_destroy_counter_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SourceCollectionDestroyCounterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) source_collection_destroy_counter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SourceCollectionDestroyCounter), 0, (GInstanceInitFunc) source_collection_destroy_counter_instance_init, NULL }; - GType source_collection_destroy_counter_type_id; - source_collection_destroy_counter_type_id = g_type_register_static (G_TYPE_OBJECT, "SourceCollectionDestroyCounter", &g_define_type_info, 0); - g_once_init_leave (&source_collection_destroy_counter_type_id__volatile, source_collection_destroy_counter_type_id); - } - return source_collection_destroy_counter_type_id__volatile; -} - - -static void -source_collection_class_init (SourceCollectionClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source_collection_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - ((DataCollectionClass *) klass)->finalize = source_collection_finalize; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - g_type_class_add_private (klass, sizeof (SourceCollectionPrivate)); -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*) (SourceCollection *, DataSource*)) source_collection_real_holds_type_of_source; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - ((SourceCollectionClass *) klass)->notify_items_unlinking = (void (*) (SourceCollection *, GeeCollection*)) source_collection_real_notify_items_unlinking; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - ((SourceCollectionClass *) klass)->notify_items_relinked = (void (*) (SourceCollection *, GeeCollection*)) source_collection_real_notify_items_relinked; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - ((SourceCollectionClass *) klass)->notify_item_destroyed = (void (*) (SourceCollection *, DataSource*)) source_collection_real_notify_item_destroyed; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - ((SourceCollectionClass *) klass)->notify_items_destroyed = (void (*) (SourceCollection *, GeeCollection*)) source_collection_real_notify_items_destroyed; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - ((SourceCollectionClass *) klass)->notify_unlinked_destroyed = (void (*) (SourceCollection *, DataSource*)) source_collection_real_notify_unlinked_destroyed; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - ((SourceCollectionClass *) klass)->notify_backlink_removed = (void (*) (SourceCollection *, SourceBacklink*, GeeCollection*)) source_collection_real_notify_backlink_removed; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - ((DataCollectionClass *) klass)->valid_type = (gboolean (*) (DataCollection *, DataObject*)) source_collection_real_valid_type; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - ((SourceCollectionClass *) klass)->has_backlink = (gboolean (*) (SourceCollection *, SourceBacklink*)) source_collection_real_has_backlink; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - ((SourceCollectionClass *) klass)->remove_backlink = (void (*) (SourceCollection *, SourceBacklink*)) source_collection_real_remove_backlink; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - ((SourceCollectionClass *) klass)->items_unlinking = source_collection_real_items_unlinking; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - ((SourceCollectionClass *) klass)->items_relinked = source_collection_real_items_relinked; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - ((SourceCollectionClass *) klass)->item_destroyed = source_collection_real_item_destroyed; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - ((SourceCollectionClass *) klass)->items_destroyed = source_collection_real_items_destroyed; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - ((SourceCollectionClass *) klass)->unlinked_destroyed = source_collection_real_unlinked_destroyed; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - ((SourceCollectionClass *) klass)->backlink_removed = source_collection_real_backlink_removed; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source_collection_signals[SOURCE_COLLECTION_ITEMS_UNLINKING_SIGNAL] = g_signal_new ("items-unlinking", TYPE_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceCollectionClass, items_unlinking), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION); -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source_collection_signals[SOURCE_COLLECTION_ITEMS_RELINKED_SIGNAL] = g_signal_new ("items-relinked", TYPE_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceCollectionClass, items_relinked), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION); -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source_collection_signals[SOURCE_COLLECTION_ITEM_DESTROYED_SIGNAL] = g_signal_new ("item-destroyed", TYPE_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceCollectionClass, item_destroyed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_DATA_SOURCE); -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source_collection_signals[SOURCE_COLLECTION_ITEMS_DESTROYED_SIGNAL] = g_signal_new ("items-destroyed", TYPE_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceCollectionClass, items_destroyed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION); -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source_collection_signals[SOURCE_COLLECTION_UNLINKED_DESTROYED_SIGNAL] = g_signal_new ("unlinked-destroyed", TYPE_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceCollectionClass, unlinked_destroyed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_DATA_SOURCE); -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - source_collection_signals[SOURCE_COLLECTION_BACKLINK_REMOVED_SIGNAL] = g_signal_new ("backlink-removed", TYPE_SOURCE_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceCollectionClass, backlink_removed), NULL, NULL, g_cclosure_user_marshal_VOID__SOURCE_BACKLINK_OBJECT, G_TYPE_NONE, 2, TYPE_SOURCE_BACKLINK, GEE_TYPE_COLLECTION); -#line 1765 "SourceCollection.c" -} - - -static void -source_collection_instance_init (SourceCollection * self) -{ -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - self->priv = SOURCE_COLLECTION_GET_PRIVATE (self); -#line 48 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - self->priv->backlinks = NULL; -#line 1776 "SourceCollection.c" -} - - -static void -source_collection_finalize (DataCollection * obj) -{ - SourceCollection * self; -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SOURCE_COLLECTION, SourceCollection); -#line 48 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - _g_object_unref0 (self->priv->backlinks); -#line 7 "/home/jens/Source/shotwell/src/core/SourceCollection.vala" - DATA_COLLECTION_CLASS (source_collection_parent_class)->finalize (obj); -#line 1790 "SourceCollection.c" -} - - -GType -source_collection_get_type (void) -{ - static volatile gsize source_collection_type_id__volatile = 0; - if (g_once_init_enter (&source_collection_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SourceCollection), 0, (GInstanceInitFunc) source_collection_instance_init, NULL }; - GType source_collection_type_id; - source_collection_type_id = g_type_register_static (TYPE_DATA_COLLECTION, "SourceCollection", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&source_collection_type_id__volatile, source_collection_type_id); - } - return source_collection_type_id__volatile; -} - - - diff --git a/src/core/SourceHoldingTank.c b/src/core/SourceHoldingTank.c deleted file mode 100644 index 809af37..0000000 --- a/src/core/SourceHoldingTank.c +++ /dev/null @@ -1,1736 +0,0 @@ -/* SourceHoldingTank.c generated by valac 0.40.4, the Vala compiler - * generated from SourceHoldingTank.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/* A SourceHoldingTank is similar to the holding tank used by ContainerSourceCollection, but for*/ -/* non-ContainerSources to be held offline from their natural SourceCollection (i.e. PhotoSources*/ -/* being held in a trashcan, for example). It is *not* a DataCollection (important!), but rather*/ -/* a signalled collection that moves DataSources to and from their SourceCollection.*/ -/**/ -/* DataSources can be shuttled from their SourceCollection to the SourceHoldingTank manually*/ -/* (via unlink_and_hold) or can be automatically moved by installing a HoldingPredicate.*/ -/* Only one HoldingConditional may be installed. Because of assertions in the methods, it's unwise*/ -/* to use more than one method. add() and add_many() should ONLY be used for DataSources not*/ -/* first installed in their SourceCollection (i.e. they're born in the SourceHoldingTank).*/ -/**/ -/* NOTE: DataSources should never be in more than one SourceHoldingTank. No tests are performed*/ -/* here to verify this. This is why a filter/predicate method (which could automatically move*/ -/* them in as they're altered) is not offered; there's no easy way to keep DataSources from being*/ -/* moved into more than one holding tank, or which should have preference. The CheckToRemove*/ -/* predicate is offered only to know when to release them.*/ - - -#include -#include -#include -#include -#include -#include - - -#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ()) -#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)) -#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) -#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK)) -#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK)) -#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) - -typedef struct _SourceHoldingTank SourceHoldingTank; -typedef struct _SourceHoldingTankClass SourceHoldingTankClass; -typedef struct _SourceHoldingTankPrivate SourceHoldingTankPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_DATA_SET (data_set_get_type ()) -#define DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SET, DataSet)) -#define DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SET, DataSetClass)) -#define IS_DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SET)) -#define IS_DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SET)) -#define DATA_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SET, DataSetClass)) - -typedef struct _DataSet DataSet; -typedef struct _DataSetClass DataSetClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _data_set_unref0(var) ((var == NULL) ? NULL : (var = (data_set_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; - -#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ()) -#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink)) -#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) -#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK)) -#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK)) -#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) - -typedef struct _SourceBacklink SourceBacklink; -typedef struct _SourceBacklinkClass SourceBacklinkClass; - -#define TYPE_SINGLETON_COLLECTION (singleton_collection_get_type ()) -#define SINGLETON_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLETON_COLLECTION, SingletonCollection)) -#define SINGLETON_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLETON_COLLECTION, SingletonCollectionClass)) -#define IS_SINGLETON_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLETON_COLLECTION)) -#define IS_SINGLETON_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLETON_COLLECTION)) -#define SINGLETON_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLETON_COLLECTION, SingletonCollectionClass)) - -typedef struct _SingletonCollection SingletonCollection; -typedef struct _SingletonCollectionClass SingletonCollectionClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _ParamSpecSourceHoldingTank ParamSpecSourceHoldingTank; -enum { - SOURCE_HOLDING_TANK_CONTENTS_ALTERED_SIGNAL, - SOURCE_HOLDING_TANK_NUM_SIGNALS -}; -static guint source_holding_tank_signals[SOURCE_HOLDING_TANK_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _SourceHoldingTank { - GTypeInstance parent_instance; - volatile int ref_count; - SourceHoldingTankPrivate * priv; -}; - -struct _SourceHoldingTankClass { - GTypeClass parent_class; - void (*finalize) (SourceHoldingTank *self); - void (*notify_contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed); - void (*contents_altered) (SourceHoldingTank* self, GeeCollection* added, GeeCollection* removed); -}; - -typedef gboolean (*SourceHoldingTankCheckToKeep) (DataSource* source, Alteration* alteration, void* user_data); -struct _SourceHoldingTankPrivate { - SourceCollection* sources; - SourceHoldingTankCheckToKeep check_to_keep; - gpointer check_to_keep_target; - DataSet* tank; - GeeHashSet* relinks; - GeeHashSet* unlinking; - gint64 ordinal; -}; - -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _ParamSpecSourceHoldingTank { - GParamSpec parent_instance; -}; - - -static gpointer source_holding_tank_parent_class = NULL; - -gpointer source_holding_tank_ref (gpointer instance); -void source_holding_tank_unref (gpointer instance); -GParamSpec* param_spec_source_holding_tank (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_holding_tank (GValue* value, - gpointer v_object); -void value_take_source_holding_tank (GValue* value, - gpointer v_object); -gpointer value_get_source_holding_tank (const GValue* value); -GType source_holding_tank_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer data_set_ref (gpointer instance); -void data_set_unref (gpointer instance); -GParamSpec* param_spec_data_set (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_set (GValue* value, - gpointer v_object); -void value_take_data_set (GValue* value, - gpointer v_object); -gpointer value_get_data_set (const GValue* value); -GType data_set_get_type (void) G_GNUC_CONST; -#define SOURCE_HOLDING_TANK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankPrivate)) -static void source_holding_tank_on_source_destroyed (SourceHoldingTank* self, - DataSource* source); -static void _source_holding_tank_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self); -static void source_holding_tank_on_source_collection_thawed (SourceHoldingTank* self); -static void _source_holding_tank_on_source_collection_thawed_data_collection_thawed (DataCollection* _sender, - gpointer self); -DataSet* data_set_new (void); -DataSet* data_set_construct (GType object_type); -SourceHoldingTank* source_holding_tank_new (SourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target); -SourceHoldingTank* source_holding_tank_construct (GType object_type, - SourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target); -void source_holding_tank_notify_contents_altered (SourceHoldingTank* self, - GeeCollection* added, - GeeCollection* removed); -static void source_holding_tank_real_notify_contents_altered (SourceHoldingTank* self, - GeeCollection* added, - GeeCollection* removed); -void data_source_notify_held_in_tank (DataSource* self, - SourceHoldingTank* holding_tank); -gint source_holding_tank_get_count (SourceHoldingTank* self); -gint data_set_get_count (DataSet* self); -GeeCollection* source_holding_tank_get_all (SourceHoldingTank* self); -GeeList* data_set_get_all (DataSet* self); -gboolean source_holding_tank_contains (SourceHoldingTank* self, - DataSource* source); -gboolean data_set_contains (DataSet* self, - DataObject* object); -void source_holding_tank_add_many (SourceHoldingTank* self, - GeeCollection* many); -void data_object_internal_set_ordinal (DataObject* self, - gint64 ordinal); -gboolean data_set_add_many (DataSet* self, - GeeCollection* objects); -void source_holding_tank_unlink_and_hold (SourceHoldingTank* self, - GeeCollection* unlink); -GType marker_get_type (void) G_GNUC_CONST; -GeeCollection* source_collection_unlink_marked (SourceCollection* self, - Marker* marker, - ProgressMonitor monitor, - void* monitor_target); -Marker* data_collection_mark_many (DataCollection* self, - GeeCollection* objects); -gpointer source_backlink_ref (gpointer instance); -void source_backlink_unref (gpointer instance); -GParamSpec* param_spec_source_backlink (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_backlink (GValue* value, - gpointer v_object); -void value_take_source_backlink (GValue* value, - gpointer v_object); -gpointer value_get_source_backlink (const GValue* value); -GType source_backlink_get_type (void) G_GNUC_CONST; -gboolean source_holding_tank_has_backlink (SourceHoldingTank* self, - SourceBacklink* backlink); -DataObject* data_set_get_at (DataSet* self, - gint index); -gboolean data_source_has_backlink (DataSource* self, - SourceBacklink* backlink); -void source_holding_tank_remove_backlink (SourceHoldingTank* self, - SourceBacklink* backlink); -gboolean data_source_remove_backlink (DataSource* self, - SourceBacklink* backlink); -void source_holding_tank_destroy_orphans (SourceHoldingTank* self, - GeeList* destroy, - gboolean delete_backing, - ProgressMonitor monitor, - void* monitor_target, - GeeList* not_removed); -gboolean data_set_remove_many (DataSet* self, - GeeCollection* objects); -gboolean data_source_destroy_orphan (DataSource* self, - gboolean delete_backing); -gboolean data_set_remove (DataSet* self, - DataObject* object); -SingletonCollection* singleton_collection_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - gconstpointer object); -SingletonCollection* singleton_collection_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - gconstpointer object); -GType singleton_collection_get_type (void) G_GNUC_CONST; -void source_holding_tank_internal_notify_altered (SourceHoldingTank* self, - DataSource* source, - Alteration* alteration); -gchar* data_object_to_string (DataObject* self); -gchar* source_holding_tank_to_string (SourceHoldingTank* self); -gboolean data_collection_are_notifications_frozen (DataCollection* self); -void source_collection_relink (SourceCollection* self, - DataSource* source); -void source_collection_relink_many (SourceCollection* self, - GeeCollection* relink); -static void source_holding_tank_real_contents_altered (SourceHoldingTank* self, - GeeCollection* added, - GeeCollection* removed); -static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void source_holding_tank_finalize (SourceHoldingTank * obj); - - -static void -_source_holding_tank_on_source_destroyed_source_collection_item_destroyed (SourceCollection* _sender, - DataSource* source, - gpointer self) -{ -#line 48 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source_holding_tank_on_source_destroyed ((SourceHoldingTank*) self, source); -#line 371 "SourceHoldingTank.c" -} - - -static void -_source_holding_tank_on_source_collection_thawed_data_collection_thawed (DataCollection* _sender, - gpointer self) -{ -#line 49 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source_holding_tank_on_source_collection_thawed ((SourceHoldingTank*) self); -#line 381 "SourceHoldingTank.c" -} - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 40 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return self ? data_collection_ref (self) : NULL; -#line 390 "SourceHoldingTank.c" -} - - -SourceHoldingTank* -source_holding_tank_construct (GType object_type, - SourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target) -{ - SourceHoldingTank* self = NULL; - SourceCollection* _tmp0_; - SourceCollection* _tmp1_; - SourceCollection* _tmp2_; -#line 39 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_val_if_fail (IS_SOURCE_COLLECTION (sources), NULL); -#line 39 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - self = (SourceHoldingTank*) g_type_create_instance (object_type); -#line 40 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp0_ = _data_collection_ref0 (sources); -#line 40 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _data_collection_unref0 (self->priv->sources); -#line 40 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - self->priv->sources = _tmp0_; -#line 41 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - self->priv->check_to_keep = check_to_keep; -#line 41 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - self->priv->check_to_keep_target = check_to_keep_target; -#line 43 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp1_ = self->priv->sources; -#line 43 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_signal_connect (_tmp1_, "item-destroyed", (GCallback) _source_holding_tank_on_source_destroyed_source_collection_item_destroyed, self); -#line 44 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp2_ = self->priv->sources; -#line 44 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), "thawed", (GCallback) _source_holding_tank_on_source_collection_thawed_data_collection_thawed, self); -#line 39 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return self; -#line 428 "SourceHoldingTank.c" -} - - -SourceHoldingTank* -source_holding_tank_new (SourceCollection* sources, - SourceHoldingTankCheckToKeep check_to_keep, - void* check_to_keep_target) -{ -#line 39 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return source_holding_tank_construct (TYPE_SOURCE_HOLDING_TANK, sources, check_to_keep, check_to_keep_target); -#line 439 "SourceHoldingTank.c" -} - - -static void -source_holding_tank_real_notify_contents_altered (SourceHoldingTank* self, - GeeCollection* added, - GeeCollection* removed) -{ -#line 52 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 52 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 54 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (added != NULL) { -#line 454 "SourceHoldingTank.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_ITERABLE, GeeIterable)); -#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _source_it = _tmp0_; -#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - while (TRUE) { -#line 464 "SourceHoldingTank.c" - GeeIterator* _tmp1_; - DataSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataSource* _tmp4_; -#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp1_ = _source_it; -#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - break; -#line 476 "SourceHoldingTank.c" - } -#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp2_ = _source_it; -#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source = (DataSource*) _tmp3_; -#line 56 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp4_ = source; -#line 56 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - data_source_notify_held_in_tank (_tmp4_, self); -#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (source); -#line 490 "SourceHoldingTank.c" - } -#line 55 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (_source_it); -#line 494 "SourceHoldingTank.c" - } - } -#line 59 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (removed != NULL) { -#line 499 "SourceHoldingTank.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp5_; -#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_ITERABLE, GeeIterable)); -#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _source_it = _tmp5_; -#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - while (TRUE) { -#line 509 "SourceHoldingTank.c" - GeeIterator* _tmp6_; - DataSource* source = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - DataSource* _tmp9_; -#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp6_ = _source_it; -#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - break; -#line 521 "SourceHoldingTank.c" - } -#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp7_ = _source_it; -#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source = (DataSource*) _tmp8_; -#line 61 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp9_ = source; -#line 61 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - data_source_notify_held_in_tank (_tmp9_, NULL); -#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (source); -#line 535 "SourceHoldingTank.c" - } -#line 60 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (_source_it); -#line 539 "SourceHoldingTank.c" - } - } -#line 64 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_signal_emit (self, source_holding_tank_signals[SOURCE_HOLDING_TANK_CONTENTS_ALTERED_SIGNAL], 0, added, removed); -#line 544 "SourceHoldingTank.c" -} - - -void -source_holding_tank_notify_contents_altered (SourceHoldingTank* self, - GeeCollection* added, - GeeCollection* removed) -{ -#line 52 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (IS_SOURCE_HOLDING_TANK (self)); -#line 52 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - SOURCE_HOLDING_TANK_GET_CLASS (self)->notify_contents_altered (self, added, removed); -#line 557 "SourceHoldingTank.c" -} - - -gint -source_holding_tank_get_count (SourceHoldingTank* self) -{ - gint result = 0; - DataSet* _tmp0_; -#line 67 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_val_if_fail (IS_SOURCE_HOLDING_TANK (self), 0); -#line 68 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp0_ = self->priv->tank; -#line 68 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - result = data_set_get_count (_tmp0_); -#line 68 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return result; -#line 574 "SourceHoldingTank.c" -} - - -GeeCollection* -source_holding_tank_get_all (SourceHoldingTank* self) -{ - GeeCollection* result = NULL; - DataSet* _tmp0_; - GeeList* _tmp1_; -#line 71 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_val_if_fail (IS_SOURCE_HOLDING_TANK (self), NULL); -#line 72 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp0_ = self->priv->tank; -#line 72 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp1_ = data_set_get_all (_tmp0_); -#line 72 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection); -#line 72 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return result; -#line 594 "SourceHoldingTank.c" -} - - -gboolean -source_holding_tank_contains (SourceHoldingTank* self, - DataSource* source) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - DataSet* _tmp1_; -#line 75 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_val_if_fail (IS_SOURCE_HOLDING_TANK (self), FALSE); -#line 75 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 76 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp1_ = self->priv->tank; -#line 76 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (data_set_contains (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject))) { -#line 76 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp0_ = TRUE; -#line 615 "SourceHoldingTank.c" - } else { - GeeHashSet* _tmp2_; -#line 76 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp2_ = self->priv->unlinking; -#line 76 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp0_ = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), source); -#line 622 "SourceHoldingTank.c" - } -#line 76 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - result = _tmp0_; -#line 76 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return result; -#line 628 "SourceHoldingTank.c" -} - - -void -source_holding_tank_add_many (SourceHoldingTank* self, - GeeCollection* many) -{ - gint _tmp0_; - gint _tmp1_; - gboolean added = FALSE; - DataSet* _tmp8_; - gboolean _tmp9_; -#line 80 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (IS_SOURCE_HOLDING_TANK (self)); -#line 80 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (GEE_IS_COLLECTION (many)); -#line 81 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp0_ = gee_collection_get_size (many); -#line 81 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp1_ = _tmp0_; -#line 81 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (_tmp1_ == 0) { -#line 82 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return; -#line 653 "SourceHoldingTank.c" - } - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp2_; -#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (many, GEE_TYPE_ITERABLE, GeeIterable)); -#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _source_it = _tmp2_; -#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - while (TRUE) { -#line 664 "SourceHoldingTank.c" - GeeIterator* _tmp3_; - DataSource* source = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - DataSource* _tmp6_; - gint64 _tmp7_; -#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp3_ = _source_it; -#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - break; -#line 677 "SourceHoldingTank.c" - } -#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp4_ = _source_it; -#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source = (DataSource*) _tmp5_; -#line 85 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp6_ = source; -#line 85 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp7_ = self->priv->ordinal; -#line 85 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - self->priv->ordinal = _tmp7_ + 1; -#line 85 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - data_object_internal_set_ordinal (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_OBJECT, DataObject), _tmp7_); -#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (source); -#line 695 "SourceHoldingTank.c" - } -#line 84 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (_source_it); -#line 699 "SourceHoldingTank.c" - } -#line 87 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp8_ = self->priv->tank; -#line 87 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - added = data_set_add_many (_tmp8_, many); -#line 88 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp9_ = added; -#line 88 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _vala_assert (_tmp9_, "added"); -#line 90 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source_holding_tank_notify_contents_altered (self, many, NULL); -#line 711 "SourceHoldingTank.c" -} - - -void -source_holding_tank_unlink_and_hold (SourceHoldingTank* self, - GeeCollection* unlink) -{ - gint _tmp0_; - gint _tmp1_; - GeeHashSet* _tmp2_; - SourceCollection* _tmp3_; - SourceCollection* _tmp4_; - Marker* _tmp5_; - Marker* _tmp6_; - GeeCollection* _tmp7_; - GeeCollection* _tmp8_; - gboolean added = FALSE; - DataSet* _tmp15_; - gboolean _tmp16_; - GeeHashSet* _tmp17_; -#line 95 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (IS_SOURCE_HOLDING_TANK (self)); -#line 95 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (GEE_IS_COLLECTION (unlink)); -#line 96 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp0_ = gee_collection_get_size (unlink); -#line 96 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp1_ = _tmp0_; -#line 96 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (_tmp1_ == 0) { -#line 97 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return; -#line 744 "SourceHoldingTank.c" - } -#line 100 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp2_ = self->priv->unlinking; -#line 100 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), unlink); -#line 102 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp3_ = self->priv->sources; -#line 102 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp4_ = self->priv->sources; -#line 102 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp5_ = data_collection_mark_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_COLLECTION, DataCollection), unlink); -#line 102 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp6_ = _tmp5_; -#line 102 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp7_ = source_collection_unlink_marked (_tmp3_, _tmp6_, NULL, NULL); -#line 102 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp8_ = _tmp7_; -#line 102 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (_tmp8_); -#line 102 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (_tmp6_); -#line 766 "SourceHoldingTank.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp9_; -#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp9_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (unlink, GEE_TYPE_ITERABLE, GeeIterable)); -#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _source_it = _tmp9_; -#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - while (TRUE) { -#line 776 "SourceHoldingTank.c" - GeeIterator* _tmp10_; - DataSource* source = NULL; - GeeIterator* _tmp11_; - gpointer _tmp12_; - DataSource* _tmp13_; - gint64 _tmp14_; -#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp10_ = _source_it; -#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (!gee_iterator_next (_tmp10_)) { -#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - break; -#line 789 "SourceHoldingTank.c" - } -#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp11_ = _source_it; -#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp12_ = gee_iterator_get (_tmp11_); -#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source = (DataSource*) _tmp12_; -#line 105 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp13_ = source; -#line 105 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp14_ = self->priv->ordinal; -#line 105 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - self->priv->ordinal = _tmp14_ + 1; -#line 105 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - data_object_internal_set_ordinal (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_OBJECT, DataObject), _tmp14_); -#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (source); -#line 807 "SourceHoldingTank.c" - } -#line 104 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (_source_it); -#line 811 "SourceHoldingTank.c" - } -#line 107 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp15_ = self->priv->tank; -#line 107 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - added = data_set_add_many (_tmp15_, unlink); -#line 108 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp16_ = added; -#line 108 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _vala_assert (_tmp16_, "added"); -#line 111 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp17_ = self->priv->unlinking; -#line 111 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - gee_collection_remove_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection), unlink); -#line 113 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source_holding_tank_notify_contents_altered (self, unlink, NULL); -#line 827 "SourceHoldingTank.c" -} - - -gboolean -source_holding_tank_has_backlink (SourceHoldingTank* self, - SourceBacklink* backlink) -{ - gboolean result = FALSE; - gint count = 0; - DataSet* _tmp0_; -#line 116 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_val_if_fail (IS_SOURCE_HOLDING_TANK (self), FALSE); -#line 116 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_val_if_fail (IS_SOURCE_BACKLINK (backlink), FALSE); -#line 117 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp0_ = self->priv->tank; -#line 117 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - count = data_set_get_count (_tmp0_); -#line 846 "SourceHoldingTank.c" - { - gint ctr = 0; -#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - ctr = 0; -#line 851 "SourceHoldingTank.c" - { - gboolean _tmp1_ = FALSE; -#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp1_ = TRUE; -#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - while (TRUE) { -#line 858 "SourceHoldingTank.c" - gint _tmp3_; - gint _tmp4_; - DataSet* _tmp5_; - gint _tmp6_; - DataObject* _tmp7_; - DataSource* _tmp8_; - gboolean _tmp9_; -#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (!_tmp1_) { -#line 868 "SourceHoldingTank.c" - gint _tmp2_; -#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp2_ = ctr; -#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - ctr = _tmp2_ + 1; -#line 874 "SourceHoldingTank.c" - } -#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp1_ = FALSE; -#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp3_ = ctr; -#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp4_ = count; -#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (!(_tmp3_ < _tmp4_)) { -#line 118 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - break; -#line 886 "SourceHoldingTank.c" - } -#line 119 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp5_ = self->priv->tank; -#line 119 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp6_ = ctr; -#line 119 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp7_ = data_set_get_at (_tmp5_, _tmp6_); -#line 119 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_SOURCE, DataSource); -#line 119 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp9_ = data_source_has_backlink (_tmp8_, backlink); -#line 119 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (_tmp8_); -#line 119 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (_tmp9_) { -#line 120 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - result = TRUE; -#line 120 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return result; -#line 906 "SourceHoldingTank.c" - } - } - } - } -#line 123 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - result = FALSE; -#line 123 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return result; -#line 915 "SourceHoldingTank.c" -} - - -void -source_holding_tank_remove_backlink (SourceHoldingTank* self, - SourceBacklink* backlink) -{ - gint count = 0; - DataSet* _tmp0_; -#line 126 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (IS_SOURCE_HOLDING_TANK (self)); -#line 126 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (IS_SOURCE_BACKLINK (backlink)); -#line 127 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp0_ = self->priv->tank; -#line 127 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - count = data_set_get_count (_tmp0_); -#line 933 "SourceHoldingTank.c" - { - gint ctr = 0; -#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - ctr = 0; -#line 938 "SourceHoldingTank.c" - { - gboolean _tmp1_ = FALSE; -#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp1_ = TRUE; -#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - while (TRUE) { -#line 945 "SourceHoldingTank.c" - gint _tmp3_; - gint _tmp4_; - DataSet* _tmp5_; - gint _tmp6_; - DataObject* _tmp7_; - DataSource* _tmp8_; -#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (!_tmp1_) { -#line 954 "SourceHoldingTank.c" - gint _tmp2_; -#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp2_ = ctr; -#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - ctr = _tmp2_ + 1; -#line 960 "SourceHoldingTank.c" - } -#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp1_ = FALSE; -#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp3_ = ctr; -#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp4_ = count; -#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (!(_tmp3_ < _tmp4_)) { -#line 128 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - break; -#line 972 "SourceHoldingTank.c" - } -#line 129 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp5_ = self->priv->tank; -#line 129 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp6_ = ctr; -#line 129 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp7_ = data_set_get_at (_tmp5_, _tmp6_); -#line 129 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_SOURCE, DataSource); -#line 129 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - data_source_remove_backlink (_tmp8_, backlink); -#line 129 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (_tmp8_); -#line 986 "SourceHoldingTank.c" - } - } - } -} - - -void -source_holding_tank_destroy_orphans (SourceHoldingTank* self, - GeeList* destroy, - gboolean delete_backing, - ProgressMonitor monitor, - void* monitor_target, - GeeList* not_removed) -{ - gint _tmp0_; - gint _tmp1_; - gboolean removed = FALSE; - DataSet* _tmp2_; - gboolean _tmp3_; - gint count = 0; - gint _tmp4_; - gint _tmp5_; -#line 132 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (IS_SOURCE_HOLDING_TANK (self)); -#line 132 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (GEE_IS_LIST (destroy)); -#line 132 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail ((not_removed == NULL) || GEE_IS_LIST (not_removed)); -#line 134 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp0_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (destroy, GEE_TYPE_COLLECTION, GeeCollection)); -#line 134 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp1_ = _tmp0_; -#line 134 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (_tmp1_ == 0) { -#line 135 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return; -#line 1023 "SourceHoldingTank.c" - } -#line 137 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp2_ = self->priv->tank; -#line 137 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - removed = data_set_remove_many (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (destroy, GEE_TYPE_COLLECTION, GeeCollection)); -#line 138 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp3_ = removed; -#line 138 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _vala_assert (_tmp3_, "removed"); -#line 140 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source_holding_tank_notify_contents_altered (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (destroy, GEE_TYPE_COLLECTION, GeeCollection)); -#line 142 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (destroy, GEE_TYPE_COLLECTION, GeeCollection)); -#line 142 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp5_ = _tmp4_; -#line 142 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - count = _tmp5_; -#line 1041 "SourceHoldingTank.c" - { - gint ctr = 0; -#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - ctr = 0; -#line 1046 "SourceHoldingTank.c" - { - gboolean _tmp6_ = FALSE; -#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp6_ = TRUE; -#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - while (TRUE) { -#line 1053 "SourceHoldingTank.c" - gint _tmp8_; - gint _tmp9_; - DataSource* source = NULL; - gint _tmp10_; - gpointer _tmp11_; - DataSource* _tmp12_; -#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (!_tmp6_) { -#line 1062 "SourceHoldingTank.c" - gint _tmp7_; -#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp7_ = ctr; -#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - ctr = _tmp7_ + 1; -#line 1068 "SourceHoldingTank.c" - } -#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp6_ = FALSE; -#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp8_ = ctr; -#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp9_ = count; -#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (!(_tmp8_ < _tmp9_)) { -#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - break; -#line 1080 "SourceHoldingTank.c" - } -#line 144 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp10_ = ctr; -#line 144 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp11_ = gee_list_get (destroy, _tmp10_); -#line 144 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source = (DataSource*) _tmp11_; -#line 145 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp12_ = source; -#line 145 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (!data_source_destroy_orphan (_tmp12_, delete_backing)) { -#line 146 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (NULL != not_removed) { -#line 1094 "SourceHoldingTank.c" - DataSource* _tmp13_; -#line 147 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp13_ = source; -#line 147 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (not_removed, GEE_TYPE_COLLECTION, GeeCollection), _tmp13_); -#line 1100 "SourceHoldingTank.c" - } - } -#line 150 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (monitor != NULL) { -#line 1105 "SourceHoldingTank.c" - gint _tmp14_; - gint _tmp15_; -#line 151 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp14_ = ctr; -#line 151 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp15_ = count; -#line 151 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - monitor ((guint64) (_tmp14_ + 1), (guint64) _tmp15_, TRUE, monitor_target); -#line 1114 "SourceHoldingTank.c" - } -#line 143 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (source); -#line 1118 "SourceHoldingTank.c" - } - } - } -} - - -static void -source_holding_tank_on_source_destroyed (SourceHoldingTank* self, - DataSource* source) -{ - DataSet* _tmp0_; - gboolean removed = FALSE; - DataSet* _tmp1_; - gboolean _tmp2_; - SingletonCollection* _tmp3_; - SingletonCollection* _tmp4_; -#line 155 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (IS_SOURCE_HOLDING_TANK (self)); -#line 155 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 156 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp0_ = self->priv->tank; -#line 156 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (!data_set_contains (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject))) { -#line 157 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return; -#line 1145 "SourceHoldingTank.c" - } -#line 159 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp1_ = self->priv->tank; -#line 159 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - removed = data_set_remove (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject)); -#line 160 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp2_ = removed; -#line 160 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _vala_assert (_tmp2_, "removed"); -#line 162 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp3_ = singleton_collection_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, source); -#line 162 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp4_ = _tmp3_; -#line 162 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source_holding_tank_notify_contents_altered (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 162 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (_tmp4_); -#line 1163 "SourceHoldingTank.c" -} - - -void -source_holding_tank_internal_notify_altered (SourceHoldingTank* self, - DataSource* source, - Alteration* alteration) -{ - DataSet* _tmp0_; - SourceHoldingTankCheckToKeep _tmp5_; - void* _tmp5__target; - gboolean removed = FALSE; - DataSet* _tmp6_; - gboolean _tmp7_; - SourceCollection* _tmp8_; - SingletonCollection* _tmp10_; - SingletonCollection* _tmp11_; - SourceCollection* _tmp12_; -#line 166 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (IS_SOURCE_HOLDING_TANK (self)); -#line 166 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (IS_DATA_SOURCE (source)); -#line 166 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (IS_ALTERATION (alteration)); -#line 167 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp0_ = self->priv->tank; -#line 167 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (!data_set_contains (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject))) { -#line 1192 "SourceHoldingTank.c" - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 168 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp1_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject)); -#line 168 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp2_ = _tmp1_; -#line 168 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp3_ = source_holding_tank_to_string (self); -#line 168 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp4_ = _tmp3_; -#line 168 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_debug ("SourceHoldingTank.vala:168: SourceHoldingTank.internal_notify_altered " \ -"called for %s not stored in %s", _tmp2_, _tmp4_); -#line 168 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_free0 (_tmp4_); -#line 168 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_free0 (_tmp2_); -#line 171 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return; -#line 1213 "SourceHoldingTank.c" - } -#line 175 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp5_ = self->priv->check_to_keep; -#line 175 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp5__target = self->priv->check_to_keep_target; -#line 175 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (_tmp5_ (source, alteration, _tmp5__target)) { -#line 176 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return; -#line 1223 "SourceHoldingTank.c" - } -#line 178 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp6_ = self->priv->tank; -#line 178 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - removed = data_set_remove (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject)); -#line 179 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp7_ = removed; -#line 179 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _vala_assert (_tmp7_, "removed"); -#line 181 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp8_ = self->priv->sources; -#line 181 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (data_collection_are_notifications_frozen (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection))) { -#line 1237 "SourceHoldingTank.c" - GeeHashSet* _tmp9_; -#line 182 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp9_ = self->priv->relinks; -#line 182 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), source); -#line 184 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return; -#line 1245 "SourceHoldingTank.c" - } -#line 187 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp10_ = singleton_collection_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, source); -#line 187 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp11_ = _tmp10_; -#line 187 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source_holding_tank_notify_contents_altered (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 187 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (_tmp11_); -#line 189 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp12_ = self->priv->sources; -#line 189 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source_collection_relink (_tmp12_, source); -#line 1259 "SourceHoldingTank.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 197 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return self ? g_object_ref (self) : NULL; -#line 1268 "SourceHoldingTank.c" -} - - -static void -source_holding_tank_on_source_collection_thawed (SourceHoldingTank* self) -{ - GeeHashSet* _tmp0_; - gint _tmp1_; - gint _tmp2_; - GeeHashSet* copy = NULL; - GeeHashSet* _tmp3_; - GeeHashSet* _tmp4_; - GeeHashSet* _tmp5_; - GeeHashSet* _tmp6_; - SourceCollection* _tmp7_; - GeeHashSet* _tmp8_; -#line 192 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (IS_SOURCE_HOLDING_TANK (self)); -#line 193 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp0_ = self->priv->relinks; -#line 193 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 193 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp2_ = _tmp1_; -#line 193 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (_tmp2_ == 0) { -#line 194 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return; -#line 1297 "SourceHoldingTank.c" - } -#line 197 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp3_ = self->priv->relinks; -#line 197 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp4_ = _g_object_ref0 (_tmp3_); -#line 197 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - copy = _tmp4_; -#line 198 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp5_ = gee_hash_set_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 198 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (self->priv->relinks); -#line 198 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - self->priv->relinks = _tmp5_; -#line 200 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp6_ = copy; -#line 200 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source_holding_tank_notify_contents_altered (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 202 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp7_ = self->priv->sources; -#line 202 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp8_ = copy; -#line 202 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source_collection_relink_many (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 192 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (copy); -#line 1323 "SourceHoldingTank.c" -} - - -gchar* -source_holding_tank_to_string (SourceHoldingTank* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 205 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_val_if_fail (IS_SOURCE_HOLDING_TANK (self), NULL); -#line 206 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp0_ = g_strdup_printf ("SourceHoldingTank @ 0x%p", self); -#line 206 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - result = _tmp0_; -#line 206 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return result; -#line 1340 "SourceHoldingTank.c" -} - - -static void -source_holding_tank_real_contents_altered (SourceHoldingTank* self, - GeeCollection* added, - GeeCollection* removed) -{ -#line 35 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 35 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 1353 "SourceHoldingTank.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2); - register GMarshalFunc_VOID__OBJECT_OBJECT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (n_param_values == 3); -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - data1 = closure->data; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - data2 = param_values->data[0].v_pointer; -#line 1379 "SourceHoldingTank.c" - } else { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - data1 = param_values->data[0].v_pointer; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - data2 = closure->data; -#line 1385 "SourceHoldingTank.c" - } -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback); -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2); -#line 1391 "SourceHoldingTank.c" -} - - -static void -value_source_holding_tank_init (GValue* value) -{ -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - value->data[0].v_pointer = NULL; -#line 1400 "SourceHoldingTank.c" -} - - -static void -value_source_holding_tank_free_value (GValue* value) -{ -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (value->data[0].v_pointer) { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source_holding_tank_unref (value->data[0].v_pointer); -#line 1411 "SourceHoldingTank.c" - } -} - - -static void -value_source_holding_tank_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (src_value->data[0].v_pointer) { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - dest_value->data[0].v_pointer = source_holding_tank_ref (src_value->data[0].v_pointer); -#line 1424 "SourceHoldingTank.c" - } else { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - dest_value->data[0].v_pointer = NULL; -#line 1428 "SourceHoldingTank.c" - } -} - - -static gpointer -value_source_holding_tank_peek_pointer (const GValue* value) -{ -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return value->data[0].v_pointer; -#line 1438 "SourceHoldingTank.c" -} - - -static gchar* -value_source_holding_tank_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (collect_values[0].v_pointer) { -#line 1450 "SourceHoldingTank.c" - SourceHoldingTank * object; - object = collect_values[0].v_pointer; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (object->parent_instance.g_class == NULL) { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1457 "SourceHoldingTank.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1461 "SourceHoldingTank.c" - } -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - value->data[0].v_pointer = source_holding_tank_ref (object); -#line 1465 "SourceHoldingTank.c" - } else { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - value->data[0].v_pointer = NULL; -#line 1469 "SourceHoldingTank.c" - } -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return NULL; -#line 1473 "SourceHoldingTank.c" -} - - -static gchar* -value_source_holding_tank_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - SourceHoldingTank ** object_p; - object_p = collect_values[0].v_pointer; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (!object_p) { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1489 "SourceHoldingTank.c" - } -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (!value->data[0].v_pointer) { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - *object_p = NULL; -#line 1495 "SourceHoldingTank.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - *object_p = value->data[0].v_pointer; -#line 1499 "SourceHoldingTank.c" - } else { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - *object_p = source_holding_tank_ref (value->data[0].v_pointer); -#line 1503 "SourceHoldingTank.c" - } -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return NULL; -#line 1507 "SourceHoldingTank.c" -} - - -GParamSpec* -param_spec_source_holding_tank (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecSourceHoldingTank* spec; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_SOURCE_HOLDING_TANK), NULL); -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return G_PARAM_SPEC (spec); -#line 1527 "SourceHoldingTank.c" -} - - -gpointer -value_get_source_holding_tank (const GValue* value) -{ -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_HOLDING_TANK), NULL); -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return value->data[0].v_pointer; -#line 1538 "SourceHoldingTank.c" -} - - -void -value_set_source_holding_tank (GValue* value, - gpointer v_object) -{ - SourceHoldingTank * old; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_HOLDING_TANK)); -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - old = value->data[0].v_pointer; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (v_object) { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SOURCE_HOLDING_TANK)); -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - value->data[0].v_pointer = v_object; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source_holding_tank_ref (value->data[0].v_pointer); -#line 1561 "SourceHoldingTank.c" - } else { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - value->data[0].v_pointer = NULL; -#line 1565 "SourceHoldingTank.c" - } -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (old) { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source_holding_tank_unref (old); -#line 1571 "SourceHoldingTank.c" - } -} - - -void -value_take_source_holding_tank (GValue* value, - gpointer v_object) -{ - SourceHoldingTank * old; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SOURCE_HOLDING_TANK)); -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - old = value->data[0].v_pointer; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (v_object) { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SOURCE_HOLDING_TANK)); -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - value->data[0].v_pointer = v_object; -#line 1593 "SourceHoldingTank.c" - } else { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - value->data[0].v_pointer = NULL; -#line 1597 "SourceHoldingTank.c" - } -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (old) { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source_holding_tank_unref (old); -#line 1603 "SourceHoldingTank.c" - } -} - - -static void -source_holding_tank_class_init (SourceHoldingTankClass * klass) -{ -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source_holding_tank_parent_class = g_type_class_peek_parent (klass); -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - ((SourceHoldingTankClass *) klass)->finalize = source_holding_tank_finalize; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_type_class_add_private (klass, sizeof (SourceHoldingTankPrivate)); -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - ((SourceHoldingTankClass *) klass)->notify_contents_altered = (void (*) (SourceHoldingTank *, GeeCollection*, GeeCollection*)) source_holding_tank_real_notify_contents_altered; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - ((SourceHoldingTankClass *) klass)->contents_altered = source_holding_tank_real_contents_altered; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - source_holding_tank_signals[SOURCE_HOLDING_TANK_CONTENTS_ALTERED_SIGNAL] = g_signal_new ("contents-altered", TYPE_SOURCE_HOLDING_TANK, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SourceHoldingTankClass, contents_altered), NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, GEE_TYPE_COLLECTION, GEE_TYPE_COLLECTION); -#line 1623 "SourceHoldingTank.c" -} - - -static void -source_holding_tank_instance_init (SourceHoldingTank * self) -{ - DataSet* _tmp0_; - GeeHashSet* _tmp1_; - GeeHashSet* _tmp2_; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - self->priv = SOURCE_HOLDING_TANK_GET_PRIVATE (self); -#line 30 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp0_ = data_set_new (); -#line 30 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - self->priv->tank = _tmp0_; -#line 31 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp1_ = gee_hash_set_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 31 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - self->priv->relinks = _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp2_ = gee_hash_set_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 32 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - self->priv->unlinking = _tmp2_; -#line 33 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - self->priv->ordinal = (gint64) 0; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - self->ref_count = 1; -#line 1651 "SourceHoldingTank.c" -} - - -static void -source_holding_tank_finalize (SourceHoldingTank * obj) -{ - SourceHoldingTank * self; - SourceCollection* _tmp0_; - guint _tmp1_; - SourceCollection* _tmp2_; - guint _tmp3_; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank); -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_signal_handlers_destroy (self); -#line 48 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp0_ = self->priv->sources; -#line 48 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_signal_parse_name ("item-destroyed", TYPE_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE); -#line 48 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _source_holding_tank_on_source_destroyed_source_collection_item_destroyed, self); -#line 49 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _tmp2_ = self->priv->sources; -#line 49 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_signal_parse_name ("thawed", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE); -#line 49 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _source_holding_tank_on_source_collection_thawed_data_collection_thawed, self); -#line 28 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _data_collection_unref0 (self->priv->sources); -#line 30 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _data_set_unref0 (self->priv->tank); -#line 31 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (self->priv->relinks); -#line 32 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - _g_object_unref0 (self->priv->unlinking); -#line 1687 "SourceHoldingTank.c" -} - - -GType -source_holding_tank_get_type (void) -{ - static volatile gsize source_holding_tank_type_id__volatile = 0; - if (g_once_init_enter (&source_holding_tank_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_source_holding_tank_init, value_source_holding_tank_free_value, value_source_holding_tank_copy_value, value_source_holding_tank_peek_pointer, "p", value_source_holding_tank_collect_value, "p", value_source_holding_tank_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (SourceHoldingTankClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) source_holding_tank_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SourceHoldingTank), 0, (GInstanceInitFunc) source_holding_tank_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType source_holding_tank_type_id; - source_holding_tank_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SourceHoldingTank", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&source_holding_tank_type_id__volatile, source_holding_tank_type_id); - } - return source_holding_tank_type_id__volatile; -} - - -gpointer -source_holding_tank_ref (gpointer instance) -{ - SourceHoldingTank * self; - self = instance; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_atomic_int_inc (&self->ref_count); -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - return instance; -#line 1716 "SourceHoldingTank.c" -} - - -void -source_holding_tank_unref (gpointer instance) -{ - SourceHoldingTank * self; - self = instance; -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - SOURCE_HOLDING_TANK_GET_CLASS (self)->finalize (self); -#line 24 "/home/jens/Source/shotwell/src/core/SourceHoldingTank.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1731 "SourceHoldingTank.c" - } -} - - - diff --git a/src/core/SourceInterfaces.c b/src/core/SourceInterfaces.c deleted file mode 100644 index a68996d..0000000 --- a/src/core/SourceInterfaces.c +++ /dev/null @@ -1,290 +0,0 @@ -/* SourceInterfaces.c generated by valac 0.40.4, the Vala compiler - * generated from SourceInterfaces.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/* See the note in MediaInterfaces.vala for some thoughts on the theory of expanding Shotwell's*/ -/* features via interfaces rather than class hierarchies.*/ -/* Indexable DataSources provide raw strings that may be searched against (and, in the future,*/ -/* indexed) for free-text search queries. DataSources implementing Indexable must prepare and*/ -/* store (i.e. cache) these strings using prepare_indexable_string(s), as preparing the strings*/ -/* for each call is expensive.*/ -/**/ -/* When the indexable string has changed, the object should fire an alteration of*/ -/* "indexable:keywords". The prepare methods will not do this.*/ - - -#include -#include -#include -#include - - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_INDEXABLE (indexable_get_type ()) -#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable)) -#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE)) -#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface)) - -typedef struct _Indexable Indexable; -typedef struct _IndexableIface IndexableIface; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL))) - -struct _IndexableIface { - GTypeInterface parent_iface; - const gchar* (*get_indexable_keywords) (Indexable* self); -}; - - - -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType indexable_get_type (void) G_GNUC_CONST; -const gchar* indexable_get_indexable_keywords (Indexable* self); -gchar* indexable_prepare_indexable_string (const gchar* str); -gboolean is_string_empty (const gchar* s); -gchar* string_remove_diacritics (const gchar* istring); -gchar* indexable_prepare_indexable_strings (gchar** strs, - int strs_length1); - - -const gchar* -indexable_get_indexable_keywords (Indexable* self) -{ -#line 19 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - g_return_val_if_fail (IS_INDEXABLE (self), NULL); -#line 19 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - return INDEXABLE_GET_INTERFACE (self)->get_indexable_keywords (self); -#line 82 "SourceInterfaces.c" -} - - -gchar* -indexable_prepare_indexable_string (const gchar* str) -{ - gchar* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 22 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - if (is_string_empty (str)) { -#line 23 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - result = NULL; -#line 23 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - return result; -#line 100 "SourceInterfaces.c" - } -#line 24 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp0_ = g_utf8_strdown (str, (gssize) -1); -#line 24 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp1_ = _tmp0_; -#line 24 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp2_ = string_remove_diacritics (_tmp1_); -#line 24 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp3_ = _tmp2_; -#line 24 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _g_free0 (_tmp1_); -#line 24 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - result = _tmp3_; -#line 24 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - return result; -#line 116 "SourceInterfaces.c" -} - - -gchar* -indexable_prepare_indexable_strings (gchar** strs, - int strs_length1) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - GString* builder = NULL; - GString* _tmp1_; - gint ctr = 0; - const gchar* _tmp14_ = NULL; - GString* _tmp15_; - const gchar* _tmp16_; - gchar* _tmp19_; -#line 28 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - if (strs == NULL) { -#line 28 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp0_ = TRUE; -#line 137 "SourceInterfaces.c" - } else { -#line 28 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp0_ = strs_length1 == 0; -#line 141 "SourceInterfaces.c" - } -#line 28 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - if (_tmp0_) { -#line 29 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - result = NULL; -#line 29 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - return result; -#line 149 "SourceInterfaces.c" - } -#line 31 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp1_ = g_string_new (""); -#line 31 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - builder = _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - ctr = 0; -#line 157 "SourceInterfaces.c" - { - gboolean _tmp2_ = FALSE; -#line 33 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp2_ = TRUE; -#line 33 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - while (TRUE) { -#line 164 "SourceInterfaces.c" - gint _tmp5_; - const gchar* _tmp6_; -#line 33 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - if (!_tmp2_) { -#line 169 "SourceInterfaces.c" - gint _tmp3_; - gint _tmp4_; -#line 39 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp3_ = ctr; -#line 39 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - ctr = _tmp3_ + 1; -#line 39 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp4_ = ctr; -#line 39 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - if (!(_tmp4_ < strs_length1)) { -#line 39 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - break; -#line 182 "SourceInterfaces.c" - } - } -#line 33 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp2_ = FALSE; -#line 34 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp5_ = ctr; -#line 34 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp6_ = strs[_tmp5_]; -#line 34 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - if (!is_string_empty (_tmp6_)) { -#line 193 "SourceInterfaces.c" - GString* _tmp7_; - gint _tmp8_; - const gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gint _tmp12_; -#line 35 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp7_ = builder; -#line 35 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp8_ = ctr; -#line 35 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp9_ = strs[_tmp8_]; -#line 35 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp10_ = g_utf8_strdown (_tmp9_, (gssize) -1); -#line 35 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp11_ = _tmp10_; -#line 35 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - g_string_append (_tmp7_, _tmp11_); -#line 35 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _g_free0 (_tmp11_); -#line 36 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp12_ = ctr; -#line 36 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - if (_tmp12_ < (strs_length1 - 1)) { -#line 218 "SourceInterfaces.c" - GString* _tmp13_; -#line 37 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp13_ = builder; -#line 37 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - g_string_append_c (_tmp13_, ' '); -#line 224 "SourceInterfaces.c" - } - } - } - } -#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp15_ = builder; -#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp16_ = _tmp15_->str; -#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - if (!is_string_empty (_tmp16_)) { -#line 235 "SourceInterfaces.c" - GString* _tmp17_; - const gchar* _tmp18_; -#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp17_ = builder; -#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp18_ = _tmp17_->str; -#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp14_ = _tmp18_; -#line 244 "SourceInterfaces.c" - } else { -#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp14_ = NULL; -#line 248 "SourceInterfaces.c" - } -#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _tmp19_ = g_strdup (_tmp14_); -#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - result = _tmp19_; -#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - _g_string_free0 (builder); -#line 41 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - return result; -#line 258 "SourceInterfaces.c" -} - - -static void -indexable_base_init (IndexableIface * iface) -{ -#line 18 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - static gboolean initialized = FALSE; -#line 18 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - if (!initialized) { -#line 18 "/home/jens/Source/shotwell/src/core/SourceInterfaces.vala" - initialized = TRUE; -#line 271 "SourceInterfaces.c" - } -} - - -GType -indexable_get_type (void) -{ - static volatile gsize indexable_type_id__volatile = 0; - if (g_once_init_enter (&indexable_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (IndexableIface), (GBaseInitFunc) indexable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType indexable_type_id; - indexable_type_id = g_type_register_static (G_TYPE_INTERFACE, "Indexable", &g_define_type_info, 0); - g_type_interface_add_prerequisite (indexable_type_id, TYPE_DATA_SOURCE); - g_once_init_leave (&indexable_type_id__volatile, indexable_type_id); - } - return indexable_type_id__volatile; -} - - - diff --git a/src/core/Tracker.c b/src/core/Tracker.c deleted file mode 100644 index 3e3aee8..0000000 --- a/src/core/Tracker.c +++ /dev/null @@ -1,2135 +0,0 @@ -/* Tracker.c generated by valac 0.40.4, the Vala compiler - * generated from Tracker.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include - - -#define CORE_TYPE_TRACKER_ACCUMULATOR (core_tracker_accumulator_get_type ()) -#define CORE_TRACKER_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator)) -#define CORE_IS_TRACKER_ACCUMULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER_ACCUMULATOR)) -#define CORE_TRACKER_ACCUMULATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulatorIface)) - -typedef struct _CoreTrackerAccumulator CoreTrackerAccumulator; -typedef struct _CoreTrackerAccumulatorIface CoreTrackerAccumulatorIface; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define CORE_TYPE_TRACKER (core_tracker_get_type ()) -#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) -#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) -#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) -#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) -#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) - -typedef struct _CoreTracker CoreTracker; -typedef struct _CoreTrackerClass CoreTrackerClass; -typedef struct _CoreTrackerPrivate CoreTrackerPrivate; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) -typedef struct _CoreParamSpecTracker CoreParamSpecTracker; -enum { - CORE_TRACKER_UPDATED_SIGNAL, - CORE_TRACKER_NUM_SIGNALS -}; -static guint core_tracker_signals[CORE_TRACKER_NUM_SIGNALS] = {0}; - -#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) -#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) -#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) -#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) -#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) -#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) - -typedef struct _CoreViewTracker CoreViewTracker; -typedef struct _CoreViewTrackerClass CoreViewTrackerClass; -typedef struct _CoreViewTrackerPrivate CoreViewTrackerPrivate; - -#define CORE_VIEW_TRACKER_TYPE_MUX (core_view_tracker_mux_get_type ()) -#define CORE_VIEW_TRACKER_MUX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_VIEW_TRACKER_TYPE_MUX, CoreViewTrackerMux)) -#define CORE_VIEW_TRACKER_MUX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_VIEW_TRACKER_TYPE_MUX, CoreViewTrackerMuxClass)) -#define CORE_VIEW_TRACKER_IS_MUX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_VIEW_TRACKER_TYPE_MUX)) -#define CORE_VIEW_TRACKER_IS_MUX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_VIEW_TRACKER_TYPE_MUX)) -#define CORE_VIEW_TRACKER_MUX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_VIEW_TRACKER_TYPE_MUX, CoreViewTrackerMuxClass)) - -typedef struct _CoreViewTrackerMux CoreViewTrackerMux; -typedef struct _CoreViewTrackerMuxClass CoreViewTrackerMuxClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; -typedef struct _CoreViewTrackerMuxPrivate CoreViewTrackerMuxPrivate; -enum { - CORE_VIEW_TRACKER_MUX_0_PROPERTY, - CORE_VIEW_TRACKER_MUX_NUM_PROPERTIES -}; -static GParamSpec* core_view_tracker_mux_properties[CORE_VIEW_TRACKER_MUX_NUM_PROPERTIES]; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _CoreTrackerAccumulatorIface { - GTypeInterface parent_iface; - gboolean (*include) (CoreTrackerAccumulator* self, DataObject* object); - gboolean (*uninclude) (CoreTrackerAccumulator* self, DataObject* object); - gboolean (*altered) (CoreTrackerAccumulator* self, DataObject* object, Alteration* alteration); -}; - -struct _CoreTracker { - GTypeInstance parent_instance; - volatile int ref_count; - CoreTrackerPrivate * priv; -}; - -struct _CoreTrackerClass { - GTypeClass parent_class; - void (*finalize) (CoreTracker *self); - void (*updated) (CoreTracker* self); -}; - -struct _CoreTrackerPrivate { - DataCollection* collection; - GeeCollection* initial; - CoreTrackerAccumulator* acc; -}; - -typedef gboolean (*CoreTrackerIncludeUnincludeObject) (DataObject* object, void* user_data); -struct _CoreParamSpecTracker { - GParamSpec parent_instance; -}; - -struct _CoreViewTracker { - CoreTracker parent_instance; - CoreViewTrackerPrivate * priv; -}; - -struct _CoreViewTrackerClass { - CoreTrackerClass parent_class; -}; - -struct _CoreViewTrackerPrivate { - CoreViewTrackerMux* mux; -}; - -struct _CoreViewTrackerMux { - GObject parent_instance; - CoreViewTrackerMuxPrivate * priv; - CoreTrackerAccumulator* all; - CoreTrackerAccumulator* visible; - CoreTrackerAccumulator* selected; -}; - -struct _CoreViewTrackerMuxClass { - GObjectClass parent_class; -}; - - -static gpointer core_tracker_parent_class = NULL; -static gpointer core_view_tracker_parent_class = NULL; -static gpointer core_view_tracker_mux_parent_class = NULL; -static CoreTrackerAccumulatorIface * core_view_tracker_mux_core_tracker_accumulator_parent_iface = NULL; - -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -GType core_tracker_accumulator_get_type (void) G_GNUC_CONST; -gboolean core_tracker_accumulator_include (CoreTrackerAccumulator* self, - DataObject* object); -gboolean core_tracker_accumulator_uninclude (CoreTrackerAccumulator* self, - DataObject* object); -gboolean core_tracker_accumulator_altered (CoreTrackerAccumulator* self, - DataObject* object, - Alteration* alteration); -gpointer core_tracker_ref (gpointer instance); -void core_tracker_unref (gpointer instance); -GParamSpec* core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void core_value_set_tracker (GValue* value, - gpointer v_object); -void core_value_take_tracker (GValue* value, - gpointer v_object); -gpointer core_value_get_tracker (const GValue* value); -GType core_tracker_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -#define CORE_TRACKER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CORE_TYPE_TRACKER, CoreTrackerPrivate)) -static void core_tracker_on_items_added (CoreTracker* self, - GeeIterable* added); -static void _core_tracker_on_items_added_data_collection_items_added (DataCollection* _sender, - GeeIterable* added, - gpointer self); -static void core_tracker_on_items_removed (CoreTracker* self, - GeeIterable* removed); -static void _core_tracker_on_items_removed_data_collection_items_removed (DataCollection* _sender, - GeeIterable* removed, - gpointer self); -static void core_tracker_on_items_altered (CoreTracker* self, - GeeMap* map); -static void _core_tracker_on_items_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -CoreTracker* core_tracker_new (DataCollection* collection, - GeeCollection* initial); -CoreTracker* core_tracker_construct (GType object_type, - DataCollection* collection, - GeeCollection* initial); -void core_tracker_start (CoreTracker* self, - CoreTrackerAccumulator* acc); -GeeCollection* data_collection_get_all (DataCollection* self); -DataCollection* core_tracker_get_collection (CoreTracker* self); -void core_tracker_include_uninclude (CoreTracker* self, - GeeIterable* objects, - CoreTrackerIncludeUnincludeObject cb, - void* cb_target); -static gboolean _core_tracker_accumulator_include_core_tracker_include_uninclude_object (DataObject* object, - gpointer self); -static gboolean _core_tracker_accumulator_uninclude_core_tracker_include_uninclude_object (DataObject* object, - gpointer self); -static void core_tracker_real_updated (CoreTracker* self); -static void core_tracker_finalize (CoreTracker * obj); -GType core_view_tracker_get_type (void) G_GNUC_CONST; -static GType core_view_tracker_mux_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define CORE_VIEW_TRACKER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerPrivate)) -GType view_collection_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -static void core_view_tracker_on_items_shown (CoreViewTracker* self, - GeeCollection* shown); -static void _core_view_tracker_on_items_shown_view_collection_items_shown (ViewCollection* _sender, - GeeCollection* visible, - gpointer self); -static void core_view_tracker_on_items_hidden (CoreViewTracker* self, - GeeCollection* hidden); -static void _core_view_tracker_on_items_hidden_view_collection_items_hidden (ViewCollection* _sender, - GeeCollection* hidden, - gpointer self); -static void core_view_tracker_on_items_selected (CoreViewTracker* self, - GeeIterable* selected); -static void _core_view_tracker_on_items_selected_view_collection_items_selected (ViewCollection* _sender, - GeeIterable* selected, - gpointer self); -static void core_view_tracker_on_items_unselected (CoreViewTracker* self, - GeeIterable* unselected); -static void _core_view_tracker_on_items_unselected_view_collection_items_unselected (ViewCollection* _sender, - GeeIterable* unselected, - gpointer self); -CoreViewTracker* core_view_tracker_new (ViewCollection* collection); -CoreViewTracker* core_view_tracker_construct (GType object_type, - ViewCollection* collection); -GeeCollection* view_collection_get_all_unfiltered (ViewCollection* self); -void core_view_tracker_start (CoreViewTracker* self, - CoreTrackerAccumulator* all, - CoreTrackerAccumulator* visible, - CoreTrackerAccumulator* selected); -static CoreViewTrackerMux* core_view_tracker_mux_new (CoreTrackerAccumulator* all, - CoreTrackerAccumulator* visible, - CoreTrackerAccumulator* selected); -static CoreViewTrackerMux* core_view_tracker_mux_construct (GType object_type, - CoreTrackerAccumulator* all, - CoreTrackerAccumulator* visible, - CoreTrackerAccumulator* selected); -static gboolean core_view_tracker_mux_real_include (CoreTrackerAccumulator* base, - DataObject* object); -gboolean data_view_is_visible (DataView* self); -gboolean data_view_is_selected (DataView* self); -static gboolean core_view_tracker_mux_real_uninclude (CoreTrackerAccumulator* base, - DataObject* object); -static gboolean core_view_tracker_mux_real_altered (CoreTrackerAccumulator* base, - DataObject* object, - Alteration* alteration); -static void core_view_tracker_mux_finalize (GObject * obj); -static void core_view_tracker_finalize (CoreTracker * obj); - - -gboolean -core_tracker_accumulator_include (CoreTrackerAccumulator* self, - DataObject* object) -{ -#line 13 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_val_if_fail (CORE_IS_TRACKER_ACCUMULATOR (self), FALSE); -#line 13 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return CORE_TRACKER_ACCUMULATOR_GET_INTERFACE (self)->include (self, object); -#line 332 "Tracker.c" -} - - -gboolean -core_tracker_accumulator_uninclude (CoreTrackerAccumulator* self, - DataObject* object) -{ -#line 15 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_val_if_fail (CORE_IS_TRACKER_ACCUMULATOR (self), FALSE); -#line 15 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return CORE_TRACKER_ACCUMULATOR_GET_INTERFACE (self)->uninclude (self, object); -#line 344 "Tracker.c" -} - - -gboolean -core_tracker_accumulator_altered (CoreTrackerAccumulator* self, - DataObject* object, - Alteration* alteration) -{ -#line 17 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_val_if_fail (CORE_IS_TRACKER_ACCUMULATOR (self), FALSE); -#line 17 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return CORE_TRACKER_ACCUMULATOR_GET_INTERFACE (self)->altered (self, object, alteration); -#line 357 "Tracker.c" -} - - -static void -core_tracker_accumulator_base_init (CoreTrackerAccumulatorIface * iface) -{ -#line 12 "/home/jens/Source/shotwell/src/core/Tracker.vala" - static gboolean initialized = FALSE; -#line 12 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (!initialized) { -#line 12 "/home/jens/Source/shotwell/src/core/Tracker.vala" - initialized = TRUE; -#line 370 "Tracker.c" - } -} - - -GType -core_tracker_accumulator_get_type (void) -{ - static volatile gsize core_tracker_accumulator_type_id__volatile = 0; - if (g_once_init_enter (&core_tracker_accumulator_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CoreTrackerAccumulatorIface), (GBaseInitFunc) core_tracker_accumulator_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType core_tracker_accumulator_type_id; - core_tracker_accumulator_type_id = g_type_register_static (G_TYPE_INTERFACE, "CoreTrackerAccumulator", &g_define_type_info, 0); - g_type_interface_add_prerequisite (core_tracker_accumulator_type_id, G_TYPE_OBJECT); - g_once_init_leave (&core_tracker_accumulator_type_id__volatile, core_tracker_accumulator_type_id); - } - return core_tracker_accumulator_type_id__volatile; -} - - -static void -_core_tracker_on_items_added_data_collection_items_added (DataCollection* _sender, - GeeIterable* added, - gpointer self) -{ -#line 40 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_on_items_added ((CoreTracker*) self, added); -#line 397 "Tracker.c" -} - - -static void -_core_tracker_on_items_removed_data_collection_items_removed (DataCollection* _sender, - GeeIterable* removed, - gpointer self) -{ -#line 41 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_on_items_removed ((CoreTracker*) self, removed); -#line 408 "Tracker.c" -} - - -static void -_core_tracker_on_items_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_on_items_altered ((CoreTracker*) self, items); -#line 419 "Tracker.c" -} - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 34 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return self ? data_collection_ref (self) : NULL; -#line 428 "Tracker.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 35 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return self ? g_object_ref (self) : NULL; -#line 437 "Tracker.c" -} - - -CoreTracker* -core_tracker_construct (GType object_type, - DataCollection* collection, - GeeCollection* initial) -{ - CoreTracker* self = NULL; - DataCollection* _tmp0_; - GeeCollection* _tmp1_; -#line 33 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_val_if_fail (IS_DATA_COLLECTION (collection), NULL); -#line 33 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_val_if_fail ((initial == NULL) || GEE_IS_COLLECTION (initial), NULL); -#line 33 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self = (CoreTracker*) g_type_create_instance (object_type); -#line 34 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = _data_collection_ref0 (collection); -#line 34 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _data_collection_unref0 (self->priv->collection); -#line 34 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self->priv->collection = _tmp0_; -#line 35 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp1_ = _g_object_ref0 (initial); -#line 35 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (self->priv->initial); -#line 35 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self->priv->initial = _tmp1_; -#line 33 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return self; -#line 469 "Tracker.c" -} - - -CoreTracker* -core_tracker_new (DataCollection* collection, - GeeCollection* initial) -{ -#line 33 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return core_tracker_construct (CORE_TYPE_TRACKER, collection, initial); -#line 479 "Tracker.c" -} - - -void -core_tracker_start (CoreTracker* self, - CoreTrackerAccumulator* acc) -{ - CoreTrackerAccumulator* _tmp0_; - CoreTrackerAccumulator* _tmp1_; - DataCollection* _tmp2_; - DataCollection* _tmp3_; - DataCollection* _tmp4_; - gboolean _tmp5_ = FALSE; - GeeCollection* _tmp6_; -#line 46 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (CORE_IS_TRACKER (self)); -#line 46 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (CORE_IS_TRACKER_ACCUMULATOR (acc)); -#line 48 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = self->priv->acc; -#line 48 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _vala_assert (_tmp0_ == NULL, "this.acc == null"); -#line 50 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp1_ = _g_object_ref0 (acc); -#line 50 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (self->priv->acc); -#line 50 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self->priv->acc = _tmp1_; -#line 52 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp2_ = self->priv->collection; -#line 52 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_connect (_tmp2_, "items-added", (GCallback) _core_tracker_on_items_added_data_collection_items_added, self); -#line 53 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp3_ = self->priv->collection; -#line 53 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_connect (_tmp3_, "items-removed", (GCallback) _core_tracker_on_items_removed_data_collection_items_removed, self); -#line 54 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp4_ = self->priv->collection; -#line 54 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_connect (_tmp4_, "items-altered", (GCallback) _core_tracker_on_items_altered_data_collection_items_altered, self); -#line 56 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp6_ = self->priv->initial; -#line 56 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp6_ != NULL) { -#line 524 "Tracker.c" - GeeCollection* _tmp7_; - gint _tmp8_; - gint _tmp9_; -#line 56 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp7_ = self->priv->initial; -#line 56 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp8_ = gee_collection_get_size (_tmp7_); -#line 56 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp9_ = _tmp8_; -#line 56 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp5_ = _tmp9_ > 0; -#line 536 "Tracker.c" - } else { -#line 56 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp5_ = FALSE; -#line 540 "Tracker.c" - } -#line 56 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp5_) { -#line 544 "Tracker.c" - GeeCollection* _tmp10_; -#line 57 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp10_ = self->priv->initial; -#line 57 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_on_items_added (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 550 "Tracker.c" - } else { - GeeCollection* _tmp11_; -#line 58 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp11_ = self->priv->initial; -#line 58 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp11_ == NULL) { -#line 557 "Tracker.c" - DataCollection* _tmp12_; - GeeCollection* _tmp13_; - GeeCollection* _tmp14_; -#line 59 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp12_ = self->priv->collection; -#line 59 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp13_ = data_collection_get_all (_tmp12_); -#line 59 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp14_ = _tmp13_; -#line 59 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_on_items_added (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 59 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (_tmp14_); -#line 571 "Tracker.c" - } - } -#line 61 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (self->priv->initial); -#line 61 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self->priv->initial = NULL; -#line 578 "Tracker.c" -} - - -DataCollection* -core_tracker_get_collection (CoreTracker* self) -{ - DataCollection* result = NULL; - DataCollection* _tmp0_; - DataCollection* _tmp1_; -#line 64 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_val_if_fail (CORE_IS_TRACKER (self), NULL); -#line 65 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = self->priv->collection; -#line 65 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp1_ = _data_collection_ref0 (_tmp0_); -#line 65 "/home/jens/Source/shotwell/src/core/Tracker.vala" - result = _tmp1_; -#line 65 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return result; -#line 598 "Tracker.c" -} - - -static gboolean -_core_tracker_accumulator_include_core_tracker_include_uninclude_object (DataObject* object, - gpointer self) -{ - gboolean result; - result = core_tracker_accumulator_include ((CoreTrackerAccumulator*) self, object); -#line 69 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return result; -#line 610 "Tracker.c" -} - - -static void -core_tracker_on_items_added (CoreTracker* self, - GeeIterable* added) -{ - CoreTrackerAccumulator* _tmp0_; -#line 68 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (CORE_IS_TRACKER (self)); -#line 68 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (GEE_IS_ITERABLE (added)); -#line 69 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = self->priv->acc; -#line 69 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_include_uninclude (self, added, _core_tracker_accumulator_include_core_tracker_include_uninclude_object, _tmp0_); -#line 627 "Tracker.c" -} - - -static gboolean -_core_tracker_accumulator_uninclude_core_tracker_include_uninclude_object (DataObject* object, - gpointer self) -{ - gboolean result; - result = core_tracker_accumulator_uninclude ((CoreTrackerAccumulator*) self, object); -#line 73 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return result; -#line 639 "Tracker.c" -} - - -static void -core_tracker_on_items_removed (CoreTracker* self, - GeeIterable* removed) -{ - CoreTrackerAccumulator* _tmp0_; -#line 72 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (CORE_IS_TRACKER (self)); -#line 72 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (GEE_IS_ITERABLE (removed)); -#line 73 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = self->priv->acc; -#line 73 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_include_uninclude (self, removed, _core_tracker_accumulator_uninclude_core_tracker_include_uninclude_object, _tmp0_); -#line 656 "Tracker.c" -} - - -void -core_tracker_include_uninclude (CoreTracker* self, - GeeIterable* objects, - CoreTrackerIncludeUnincludeObject cb, - void* cb_target) -{ - gboolean fire_updated = FALSE; - gboolean _tmp7_; -#line 77 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (CORE_IS_TRACKER (self)); -#line 77 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (GEE_IS_ITERABLE (objects)); -#line 78 "/home/jens/Source/shotwell/src/core/Tracker.vala" - fire_updated = FALSE; -#line 674 "Tracker.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = gee_iterable_iterator (objects); -#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _object_it = _tmp0_; -#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala" - while (TRUE) { -#line 684 "Tracker.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - gboolean _tmp4_ = FALSE; - DataObject* _tmp5_; -#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp1_ = _object_it; -#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala" - break; -#line 697 "Tracker.c" - } -#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp2_ = _object_it; -#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala" - object = (DataObject*) _tmp3_; -#line 80 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp5_ = object; -#line 80 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (cb (_tmp5_, cb_target)) { -#line 80 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp4_ = TRUE; -#line 711 "Tracker.c" - } else { - gboolean _tmp6_; -#line 80 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp6_ = fire_updated; -#line 80 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp4_ = _tmp6_; -#line 718 "Tracker.c" - } -#line 80 "/home/jens/Source/shotwell/src/core/Tracker.vala" - fire_updated = _tmp4_; -#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (object); -#line 724 "Tracker.c" - } -#line 79 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (_object_it); -#line 728 "Tracker.c" - } -#line 82 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp7_ = fire_updated; -#line 82 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp7_) { -#line 83 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_emit (self, core_tracker_signals[CORE_TRACKER_UPDATED_SIGNAL], 0); -#line 736 "Tracker.c" - } -} - - -static void -core_tracker_on_items_altered (CoreTracker* self, - GeeMap* map) -{ - gboolean fire_updated = FALSE; - gboolean _tmp16_; -#line 86 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (CORE_IS_TRACKER (self)); -#line 86 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (GEE_IS_MAP (map)); -#line 87 "/home/jens/Source/shotwell/src/core/Tracker.vala" - fire_updated = FALSE; -#line 753 "Tracker.c" - { - GeeIterator* _object_it = NULL; - GeeSet* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = gee_map_get_keys (map); -#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp1_ = _tmp0_; -#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp2_ = _tmp1_; -#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp4_ = _tmp3_; -#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (_tmp2_); -#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _object_it = _tmp4_; -#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala" - while (TRUE) { -#line 777 "Tracker.c" - GeeIterator* _tmp5_; - DataObject* object = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - gboolean _tmp8_ = FALSE; - CoreTrackerAccumulator* _tmp9_; - DataObject* _tmp10_; - DataObject* _tmp11_; - gpointer _tmp12_; - Alteration* _tmp13_; - gboolean _tmp14_; -#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp5_ = _object_it; -#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala" - break; -#line 795 "Tracker.c" - } -#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp6_ = _object_it; -#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala" - object = (DataObject*) _tmp7_; -#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp9_ = self->priv->acc; -#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp10_ = object; -#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp11_ = object; -#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp12_ = gee_map_get (map, _tmp11_); -#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp13_ = (Alteration*) _tmp12_; -#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp14_ = core_tracker_accumulator_altered (_tmp9_, _tmp10_, _tmp13_); -#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _alteration_unref0 (_tmp13_); -#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp14_) { -#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp8_ = TRUE; -#line 821 "Tracker.c" - } else { - gboolean _tmp15_; -#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp15_ = fire_updated; -#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp8_ = _tmp15_; -#line 828 "Tracker.c" - } -#line 89 "/home/jens/Source/shotwell/src/core/Tracker.vala" - fire_updated = _tmp8_; -#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (object); -#line 834 "Tracker.c" - } -#line 88 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (_object_it); -#line 838 "Tracker.c" - } -#line 91 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp16_ = fire_updated; -#line 91 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp16_) { -#line 92 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_emit (self, core_tracker_signals[CORE_TRACKER_UPDATED_SIGNAL], 0); -#line 846 "Tracker.c" - } -} - - -static void -core_tracker_real_updated (CoreTracker* self) -{ -} - - -static void -core_value_tracker_init (GValue* value) -{ -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - value->data[0].v_pointer = NULL; -#line 862 "Tracker.c" -} - - -static void -core_value_tracker_free_value (GValue* value) -{ -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (value->data[0].v_pointer) { -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_unref (value->data[0].v_pointer); -#line 873 "Tracker.c" - } -} - - -static void -core_value_tracker_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (src_value->data[0].v_pointer) { -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - dest_value->data[0].v_pointer = core_tracker_ref (src_value->data[0].v_pointer); -#line 886 "Tracker.c" - } else { -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - dest_value->data[0].v_pointer = NULL; -#line 890 "Tracker.c" - } -} - - -static gpointer -core_value_tracker_peek_pointer (const GValue* value) -{ -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return value->data[0].v_pointer; -#line 900 "Tracker.c" -} - - -static gchar* -core_value_tracker_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (collect_values[0].v_pointer) { -#line 912 "Tracker.c" - CoreTracker * object; - object = collect_values[0].v_pointer; -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (object->parent_instance.g_class == NULL) { -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 919 "Tracker.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 923 "Tracker.c" - } -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - value->data[0].v_pointer = core_tracker_ref (object); -#line 927 "Tracker.c" - } else { -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - value->data[0].v_pointer = NULL; -#line 931 "Tracker.c" - } -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return NULL; -#line 935 "Tracker.c" -} - - -static gchar* -core_value_tracker_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - CoreTracker ** object_p; - object_p = collect_values[0].v_pointer; -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (!object_p) { -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 951 "Tracker.c" - } -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (!value->data[0].v_pointer) { -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - *object_p = NULL; -#line 957 "Tracker.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - *object_p = value->data[0].v_pointer; -#line 961 "Tracker.c" - } else { -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - *object_p = core_tracker_ref (value->data[0].v_pointer); -#line 965 "Tracker.c" - } -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return NULL; -#line 969 "Tracker.c" -} - - -GParamSpec* -core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - CoreParamSpecTracker* spec; -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_val_if_fail (g_type_is_a (object_type, CORE_TYPE_TRACKER), NULL); -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return G_PARAM_SPEC (spec); -#line 989 "Tracker.c" -} - - -gpointer -core_value_get_tracker (const GValue* value) -{ -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, CORE_TYPE_TRACKER), NULL); -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return value->data[0].v_pointer; -#line 1000 "Tracker.c" -} - - -void -core_value_set_tracker (GValue* value, - gpointer v_object) -{ - CoreTracker * old; -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, CORE_TYPE_TRACKER)); -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - old = value->data[0].v_pointer; -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (v_object) { -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, CORE_TYPE_TRACKER)); -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - value->data[0].v_pointer = v_object; -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_ref (value->data[0].v_pointer); -#line 1023 "Tracker.c" - } else { -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - value->data[0].v_pointer = NULL; -#line 1027 "Tracker.c" - } -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (old) { -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_unref (old); -#line 1033 "Tracker.c" - } -} - - -void -core_value_take_tracker (GValue* value, - gpointer v_object) -{ - CoreTracker * old; -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, CORE_TYPE_TRACKER)); -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - old = value->data[0].v_pointer; -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (v_object) { -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, CORE_TYPE_TRACKER)); -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - value->data[0].v_pointer = v_object; -#line 1055 "Tracker.c" - } else { -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - value->data[0].v_pointer = NULL; -#line 1059 "Tracker.c" - } -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (old) { -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_unref (old); -#line 1065 "Tracker.c" - } -} - - -static void -core_tracker_class_init (CoreTrackerClass * klass) -{ -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_parent_class = g_type_class_peek_parent (klass); -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - ((CoreTrackerClass *) klass)->finalize = core_tracker_finalize; -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_type_class_add_private (klass, sizeof (CoreTrackerPrivate)); -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - ((CoreTrackerClass *) klass)->updated = core_tracker_real_updated; -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_signals[CORE_TRACKER_UPDATED_SIGNAL] = g_signal_new ("updated", CORE_TYPE_TRACKER, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (CoreTrackerClass, updated), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 1083 "Tracker.c" -} - - -static void -core_tracker_instance_init (CoreTracker * self) -{ -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self->priv = CORE_TRACKER_GET_PRIVATE (self); -#line 28 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self->priv->acc = NULL; -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self->ref_count = 1; -#line 1096 "Tracker.c" -} - - -static void -core_tracker_finalize (CoreTracker * obj) -{ - CoreTracker * self; - CoreTrackerAccumulator* _tmp0_; -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, CORE_TYPE_TRACKER, CoreTracker); -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_handlers_destroy (self); -#line 39 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = self->priv->acc; -#line 39 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp0_ != NULL) { -#line 1113 "Tracker.c" - DataCollection* _tmp1_; - guint _tmp2_; - DataCollection* _tmp3_; - guint _tmp4_; - DataCollection* _tmp5_; - guint _tmp6_; -#line 40 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp1_ = self->priv->collection; -#line 40 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_parse_name ("items-added", TYPE_DATA_COLLECTION, &_tmp2_, NULL, FALSE); -#line 40 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _core_tracker_on_items_added_data_collection_items_added, self); -#line 41 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp3_ = self->priv->collection; -#line 41 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_parse_name ("items-removed", TYPE_DATA_COLLECTION, &_tmp4_, NULL, FALSE); -#line 41 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _core_tracker_on_items_removed_data_collection_items_removed, self); -#line 42 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp5_ = self->priv->collection; -#line 42 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp6_, NULL, FALSE); -#line 42 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _core_tracker_on_items_altered_data_collection_items_altered, self); -#line 1138 "Tracker.c" - } -#line 26 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _data_collection_unref0 (self->priv->collection); -#line 27 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (self->priv->initial); -#line 28 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (self->priv->acc); -#line 1146 "Tracker.c" -} - - -GType -core_tracker_get_type (void) -{ - static volatile gsize core_tracker_type_id__volatile = 0; - if (g_once_init_enter (&core_tracker_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { core_value_tracker_init, core_value_tracker_free_value, core_value_tracker_copy_value, core_value_tracker_peek_pointer, "p", core_value_tracker_collect_value, "p", core_value_tracker_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (CoreTrackerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) core_tracker_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CoreTracker), 0, (GInstanceInitFunc) core_tracker_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType core_tracker_type_id; - core_tracker_type_id = g_type_register_fundamental (g_type_fundamental_next (), "CoreTracker", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&core_tracker_type_id__volatile, core_tracker_type_id); - } - return core_tracker_type_id__volatile; -} - - -gpointer -core_tracker_ref (gpointer instance) -{ - CoreTracker * self; - self = instance; -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_atomic_int_inc (&self->ref_count); -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return instance; -#line 1175 "Tracker.c" -} - - -void -core_tracker_unref (gpointer instance) -{ - CoreTracker * self; - self = instance; -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - CORE_TRACKER_GET_CLASS (self)->finalize (self); -#line 23 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1190 "Tracker.c" - } -} - - -static void -_core_view_tracker_on_items_shown_view_collection_items_shown (ViewCollection* _sender, - GeeCollection* visible, - gpointer self) -{ -#line 173 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_view_tracker_on_items_shown ((CoreViewTracker*) self, visible); -#line 1202 "Tracker.c" -} - - -static void -_core_view_tracker_on_items_hidden_view_collection_items_hidden (ViewCollection* _sender, - GeeCollection* hidden, - gpointer self) -{ -#line 174 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_view_tracker_on_items_hidden ((CoreViewTracker*) self, hidden); -#line 1213 "Tracker.c" -} - - -static void -_core_view_tracker_on_items_selected_view_collection_items_selected (ViewCollection* _sender, - GeeIterable* selected, - gpointer self) -{ -#line 175 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_view_tracker_on_items_selected ((CoreViewTracker*) self, selected); -#line 1224 "Tracker.c" -} - - -static void -_core_view_tracker_on_items_unselected_view_collection_items_unselected (ViewCollection* _sender, - GeeIterable* unselected, - gpointer self) -{ -#line 176 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_view_tracker_on_items_unselected ((CoreViewTracker*) self, unselected); -#line 1235 "Tracker.c" -} - - -CoreViewTracker* -core_view_tracker_construct (GType object_type, - ViewCollection* collection) -{ - CoreViewTracker* self = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; -#line 165 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (collection), NULL); -#line 166 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = view_collection_get_all_unfiltered (collection); -#line 166 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp1_ = _tmp0_; -#line 166 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self = (CoreViewTracker*) core_tracker_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (collection, TYPE_DATA_COLLECTION, DataCollection), _tmp1_); -#line 166 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (_tmp1_); -#line 165 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return self; -#line 1258 "Tracker.c" -} - - -CoreViewTracker* -core_view_tracker_new (ViewCollection* collection) -{ -#line 165 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return core_view_tracker_construct (CORE_TYPE_VIEW_TRACKER, collection); -#line 1267 "Tracker.c" -} - - -void -core_view_tracker_start (CoreViewTracker* self, - CoreTrackerAccumulator* all, - CoreTrackerAccumulator* visible, - CoreTrackerAccumulator* selected) -{ - CoreViewTrackerMux* _tmp0_; - CoreViewTrackerMux* _tmp1_; - ViewCollection* collection = NULL; - DataCollection* _tmp2_; - ViewCollection* _tmp3_; - CoreViewTrackerMux* _tmp4_; -#line 180 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (CORE_IS_VIEW_TRACKER (self)); -#line 180 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail ((all == NULL) || CORE_IS_TRACKER_ACCUMULATOR (all)); -#line 180 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail ((visible == NULL) || CORE_IS_TRACKER_ACCUMULATOR (visible)); -#line 180 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail ((selected == NULL) || CORE_IS_TRACKER_ACCUMULATOR (selected)); -#line 181 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = self->priv->mux; -#line 181 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _vala_assert (_tmp0_ == NULL, "mux == null"); -#line 183 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp1_ = core_view_tracker_mux_new (all, visible, selected); -#line 183 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (self->priv->mux); -#line 183 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self->priv->mux = _tmp1_; -#line 185 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp2_ = core_tracker_get_collection (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_TRACKER, CoreTracker)); -#line 185 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_VIEW_COLLECTION) ? ((ViewCollection*) _tmp2_) : NULL; -#line 185 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp3_ == NULL) { -#line 185 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _data_collection_unref0 (_tmp2_); -#line 1309 "Tracker.c" - } -#line 185 "/home/jens/Source/shotwell/src/core/Tracker.vala" - collection = _tmp3_; -#line 186 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _vala_assert (collection != NULL, "collection != null"); -#line 187 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_connect (collection, "items-shown", (GCallback) _core_view_tracker_on_items_shown_view_collection_items_shown, self); -#line 188 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_connect (collection, "items-hidden", (GCallback) _core_view_tracker_on_items_hidden_view_collection_items_hidden, self); -#line 189 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_connect (collection, "items-selected", (GCallback) _core_view_tracker_on_items_selected_view_collection_items_selected, self); -#line 190 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_connect (collection, "items-unselected", (GCallback) _core_view_tracker_on_items_unselected_view_collection_items_unselected, self); -#line 192 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp4_ = self->priv->mux; -#line 192 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_start (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_TRACKER, CoreTracker), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, CORE_TYPE_TRACKER_ACCUMULATOR, CoreTrackerAccumulator)); -#line 180 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _data_collection_unref0 (collection); -#line 1329 "Tracker.c" -} - - -static void -core_view_tracker_on_items_shown (CoreViewTracker* self, - GeeCollection* shown) -{ - CoreViewTrackerMux* _tmp0_; - CoreTrackerAccumulator* _tmp1_; -#line 195 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (CORE_IS_VIEW_TRACKER (self)); -#line 195 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (GEE_IS_COLLECTION (shown)); -#line 196 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = self->priv->mux; -#line 196 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp1_ = _tmp0_->visible; -#line 196 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp1_ != NULL) { -#line 1349 "Tracker.c" - CoreViewTrackerMux* _tmp2_; - CoreTrackerAccumulator* _tmp3_; -#line 197 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp2_ = self->priv->mux; -#line 197 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp3_ = _tmp2_->visible; -#line 197 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_include_uninclude (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_TRACKER, CoreTracker), G_TYPE_CHECK_INSTANCE_CAST (shown, GEE_TYPE_ITERABLE, GeeIterable), _core_tracker_accumulator_include_core_tracker_include_uninclude_object, _tmp3_); -#line 1358 "Tracker.c" - } -} - - -static void -core_view_tracker_on_items_hidden (CoreViewTracker* self, - GeeCollection* hidden) -{ - CoreViewTrackerMux* _tmp0_; - CoreTrackerAccumulator* _tmp1_; -#line 200 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (CORE_IS_VIEW_TRACKER (self)); -#line 200 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (GEE_IS_COLLECTION (hidden)); -#line 201 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = self->priv->mux; -#line 201 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp1_ = _tmp0_->visible; -#line 201 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp1_ != NULL) { -#line 1379 "Tracker.c" - CoreViewTrackerMux* _tmp2_; - CoreTrackerAccumulator* _tmp3_; -#line 202 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp2_ = self->priv->mux; -#line 202 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp3_ = _tmp2_->visible; -#line 202 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_include_uninclude (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_TRACKER, CoreTracker), G_TYPE_CHECK_INSTANCE_CAST (hidden, GEE_TYPE_ITERABLE, GeeIterable), _core_tracker_accumulator_uninclude_core_tracker_include_uninclude_object, _tmp3_); -#line 1388 "Tracker.c" - } -} - - -static void -core_view_tracker_on_items_selected (CoreViewTracker* self, - GeeIterable* selected) -{ - CoreViewTrackerMux* _tmp0_; - CoreTrackerAccumulator* _tmp1_; -#line 205 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (CORE_IS_VIEW_TRACKER (self)); -#line 205 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (GEE_IS_ITERABLE (selected)); -#line 206 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = self->priv->mux; -#line 206 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp1_ = _tmp0_->selected; -#line 206 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp1_ != NULL) { -#line 1409 "Tracker.c" - CoreViewTrackerMux* _tmp2_; - CoreTrackerAccumulator* _tmp3_; -#line 207 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp2_ = self->priv->mux; -#line 207 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp3_ = _tmp2_->selected; -#line 207 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_include_uninclude (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_TRACKER, CoreTracker), selected, _core_tracker_accumulator_include_core_tracker_include_uninclude_object, _tmp3_); -#line 1418 "Tracker.c" - } -} - - -static void -core_view_tracker_on_items_unselected (CoreViewTracker* self, - GeeIterable* unselected) -{ - CoreViewTrackerMux* _tmp0_; - CoreTrackerAccumulator* _tmp1_; -#line 210 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (CORE_IS_VIEW_TRACKER (self)); -#line 210 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_if_fail (GEE_IS_ITERABLE (unselected)); -#line 211 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = self->priv->mux; -#line 211 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp1_ = _tmp0_->selected; -#line 211 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp1_ != NULL) { -#line 1439 "Tracker.c" - CoreViewTrackerMux* _tmp2_; - CoreTrackerAccumulator* _tmp3_; -#line 212 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp2_ = self->priv->mux; -#line 212 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp3_ = _tmp2_->selected; -#line 212 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_tracker_include_uninclude (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_TRACKER, CoreTracker), unselected, _core_tracker_accumulator_uninclude_core_tracker_include_uninclude_object, _tmp3_); -#line 1448 "Tracker.c" - } -} - - -static CoreViewTrackerMux* -core_view_tracker_mux_construct (GType object_type, - CoreTrackerAccumulator* all, - CoreTrackerAccumulator* visible, - CoreTrackerAccumulator* selected) -{ - CoreViewTrackerMux * self = NULL; - CoreTrackerAccumulator* _tmp0_; - CoreTrackerAccumulator* _tmp1_; - CoreTrackerAccumulator* _tmp2_; -#line 105 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_val_if_fail ((all == NULL) || CORE_IS_TRACKER_ACCUMULATOR (all), NULL); -#line 105 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_val_if_fail ((visible == NULL) || CORE_IS_TRACKER_ACCUMULATOR (visible), NULL); -#line 105 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_val_if_fail ((selected == NULL) || CORE_IS_TRACKER_ACCUMULATOR (selected), NULL); -#line 105 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self = (CoreViewTrackerMux*) g_object_new (object_type, NULL); -#line 106 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = _g_object_ref0 (all); -#line 106 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (self->all); -#line 106 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self->all = _tmp0_; -#line 107 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp1_ = _g_object_ref0 (visible); -#line 107 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (self->visible); -#line 107 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self->visible = _tmp1_; -#line 108 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp2_ = _g_object_ref0 (selected); -#line 108 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (self->selected); -#line 108 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self->selected = _tmp2_; -#line 105 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return self; -#line 1491 "Tracker.c" -} - - -static CoreViewTrackerMux* -core_view_tracker_mux_new (CoreTrackerAccumulator* all, - CoreTrackerAccumulator* visible, - CoreTrackerAccumulator* selected) -{ -#line 105 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return core_view_tracker_mux_construct (CORE_VIEW_TRACKER_TYPE_MUX, all, visible, selected); -#line 1502 "Tracker.c" -} - - -static gboolean -core_view_tracker_mux_real_include (CoreTrackerAccumulator* base, - DataObject* object) -{ - CoreViewTrackerMux * self; - gboolean result = FALSE; - DataView* view = NULL; - DataView* _tmp0_; - gboolean fire_updated = FALSE; - CoreTrackerAccumulator* _tmp1_; - gboolean _tmp6_ = FALSE; - CoreTrackerAccumulator* _tmp7_; - gboolean _tmp13_ = FALSE; - CoreTrackerAccumulator* _tmp14_; -#line 111 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, CORE_VIEW_TRACKER_TYPE_MUX, CoreViewTrackerMux); -#line 111 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 112 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView)); -#line 112 "/home/jens/Source/shotwell/src/core/Tracker.vala" - view = _tmp0_; -#line 114 "/home/jens/Source/shotwell/src/core/Tracker.vala" - fire_updated = FALSE; -#line 116 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp1_ = self->all; -#line 116 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp1_ != NULL) { -#line 1534 "Tracker.c" - gboolean _tmp2_ = FALSE; - CoreTrackerAccumulator* _tmp3_; - DataView* _tmp4_; -#line 117 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp3_ = self->all; -#line 117 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp4_ = view; -#line 117 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (core_tracker_accumulator_include (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject))) { -#line 117 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp2_ = TRUE; -#line 1546 "Tracker.c" - } else { - gboolean _tmp5_; -#line 117 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp5_ = fire_updated; -#line 117 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp2_ = _tmp5_; -#line 1553 "Tracker.c" - } -#line 117 "/home/jens/Source/shotwell/src/core/Tracker.vala" - fire_updated = _tmp2_; -#line 1557 "Tracker.c" - } -#line 119 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp7_ = self->visible; -#line 119 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp7_ != NULL) { -#line 1563 "Tracker.c" - DataView* _tmp8_; -#line 119 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp8_ = view; -#line 119 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp6_ = data_view_is_visible (_tmp8_); -#line 1569 "Tracker.c" - } else { -#line 119 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp6_ = FALSE; -#line 1573 "Tracker.c" - } -#line 119 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp6_) { -#line 1577 "Tracker.c" - gboolean _tmp9_ = FALSE; - CoreTrackerAccumulator* _tmp10_; - DataView* _tmp11_; -#line 120 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp10_ = self->visible; -#line 120 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp11_ = view; -#line 120 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (core_tracker_accumulator_include (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject))) { -#line 120 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp9_ = TRUE; -#line 1589 "Tracker.c" - } else { - gboolean _tmp12_; -#line 120 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp12_ = fire_updated; -#line 120 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp9_ = _tmp12_; -#line 1596 "Tracker.c" - } -#line 120 "/home/jens/Source/shotwell/src/core/Tracker.vala" - fire_updated = _tmp9_; -#line 1600 "Tracker.c" - } -#line 122 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp14_ = self->selected; -#line 122 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp14_ != NULL) { -#line 1606 "Tracker.c" - DataView* _tmp15_; -#line 122 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp15_ = view; -#line 122 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp13_ = data_view_is_selected (_tmp15_); -#line 1612 "Tracker.c" - } else { -#line 122 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp13_ = FALSE; -#line 1616 "Tracker.c" - } -#line 122 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp13_) { -#line 1620 "Tracker.c" - gboolean _tmp16_ = FALSE; - CoreTrackerAccumulator* _tmp17_; - DataView* _tmp18_; -#line 123 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp17_ = self->selected; -#line 123 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp18_ = view; -#line 123 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (core_tracker_accumulator_include (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_OBJECT, DataObject))) { -#line 123 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp16_ = TRUE; -#line 1632 "Tracker.c" - } else { - gboolean _tmp19_; -#line 123 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp19_ = fire_updated; -#line 123 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp16_ = _tmp19_; -#line 1639 "Tracker.c" - } -#line 123 "/home/jens/Source/shotwell/src/core/Tracker.vala" - fire_updated = _tmp16_; -#line 1643 "Tracker.c" - } -#line 125 "/home/jens/Source/shotwell/src/core/Tracker.vala" - result = fire_updated; -#line 125 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (view); -#line 125 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return result; -#line 1651 "Tracker.c" -} - - -static gboolean -core_view_tracker_mux_real_uninclude (CoreTrackerAccumulator* base, - DataObject* object) -{ - CoreViewTrackerMux * self; - gboolean result = FALSE; - DataView* view = NULL; - DataView* _tmp0_; - gboolean fire_updated = FALSE; - CoreTrackerAccumulator* _tmp1_; - gboolean _tmp6_ = FALSE; - CoreTrackerAccumulator* _tmp7_; - gboolean _tmp13_ = FALSE; - CoreTrackerAccumulator* _tmp14_; -#line 128 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, CORE_VIEW_TRACKER_TYPE_MUX, CoreViewTrackerMux); -#line 128 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 129 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView)); -#line 129 "/home/jens/Source/shotwell/src/core/Tracker.vala" - view = _tmp0_; -#line 131 "/home/jens/Source/shotwell/src/core/Tracker.vala" - fire_updated = FALSE; -#line 133 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp1_ = self->all; -#line 133 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp1_ != NULL) { -#line 1683 "Tracker.c" - gboolean _tmp2_ = FALSE; - CoreTrackerAccumulator* _tmp3_; - DataView* _tmp4_; -#line 134 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp3_ = self->all; -#line 134 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp4_ = view; -#line 134 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (core_tracker_accumulator_uninclude (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject))) { -#line 134 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp2_ = TRUE; -#line 1695 "Tracker.c" - } else { - gboolean _tmp5_; -#line 134 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp5_ = fire_updated; -#line 134 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp2_ = _tmp5_; -#line 1702 "Tracker.c" - } -#line 134 "/home/jens/Source/shotwell/src/core/Tracker.vala" - fire_updated = _tmp2_; -#line 1706 "Tracker.c" - } -#line 136 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp7_ = self->visible; -#line 136 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp7_ != NULL) { -#line 1712 "Tracker.c" - DataView* _tmp8_; -#line 136 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp8_ = view; -#line 136 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp6_ = data_view_is_visible (_tmp8_); -#line 1718 "Tracker.c" - } else { -#line 136 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp6_ = FALSE; -#line 1722 "Tracker.c" - } -#line 136 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp6_) { -#line 1726 "Tracker.c" - gboolean _tmp9_ = FALSE; - CoreTrackerAccumulator* _tmp10_; - DataView* _tmp11_; -#line 137 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp10_ = self->visible; -#line 137 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp11_ = view; -#line 137 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (core_tracker_accumulator_uninclude (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject))) { -#line 137 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp9_ = TRUE; -#line 1738 "Tracker.c" - } else { - gboolean _tmp12_; -#line 137 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp12_ = fire_updated; -#line 137 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp9_ = _tmp12_; -#line 1745 "Tracker.c" - } -#line 137 "/home/jens/Source/shotwell/src/core/Tracker.vala" - fire_updated = _tmp9_; -#line 1749 "Tracker.c" - } -#line 139 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp14_ = self->selected; -#line 139 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp14_ != NULL) { -#line 1755 "Tracker.c" - DataView* _tmp15_; -#line 139 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp15_ = view; -#line 139 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp13_ = data_view_is_selected (_tmp15_); -#line 1761 "Tracker.c" - } else { -#line 139 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp13_ = FALSE; -#line 1765 "Tracker.c" - } -#line 139 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp13_) { -#line 1769 "Tracker.c" - gboolean _tmp16_ = FALSE; - CoreTrackerAccumulator* _tmp17_; - DataView* _tmp18_; -#line 140 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp17_ = self->selected; -#line 140 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp18_ = view; -#line 140 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (core_tracker_accumulator_uninclude (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_OBJECT, DataObject))) { -#line 140 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp16_ = TRUE; -#line 1781 "Tracker.c" - } else { - gboolean _tmp19_; -#line 140 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp19_ = fire_updated; -#line 140 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp16_ = _tmp19_; -#line 1788 "Tracker.c" - } -#line 140 "/home/jens/Source/shotwell/src/core/Tracker.vala" - fire_updated = _tmp16_; -#line 1792 "Tracker.c" - } -#line 142 "/home/jens/Source/shotwell/src/core/Tracker.vala" - result = fire_updated; -#line 142 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (view); -#line 142 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return result; -#line 1800 "Tracker.c" -} - - -static gboolean -core_view_tracker_mux_real_altered (CoreTrackerAccumulator* base, - DataObject* object, - Alteration* alteration) -{ - CoreViewTrackerMux * self; - gboolean result = FALSE; - DataView* view = NULL; - DataView* _tmp0_; - gboolean fire_updated = FALSE; - CoreTrackerAccumulator* _tmp1_; - gboolean _tmp6_ = FALSE; - CoreTrackerAccumulator* _tmp7_; - gboolean _tmp13_ = FALSE; - CoreTrackerAccumulator* _tmp14_; -#line 145 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, CORE_VIEW_TRACKER_TYPE_MUX, CoreViewTrackerMux); -#line 145 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 145 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_return_val_if_fail (IS_ALTERATION (alteration), FALSE); -#line 146 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView)); -#line 146 "/home/jens/Source/shotwell/src/core/Tracker.vala" - view = _tmp0_; -#line 148 "/home/jens/Source/shotwell/src/core/Tracker.vala" - fire_updated = FALSE; -#line 150 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp1_ = self->all; -#line 150 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp1_ != NULL) { -#line 1835 "Tracker.c" - gboolean _tmp2_ = FALSE; - CoreTrackerAccumulator* _tmp3_; - DataView* _tmp4_; -#line 151 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp3_ = self->all; -#line 151 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp4_ = view; -#line 151 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (core_tracker_accumulator_altered (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject), alteration)) { -#line 151 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp2_ = TRUE; -#line 1847 "Tracker.c" - } else { - gboolean _tmp5_; -#line 151 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp5_ = fire_updated; -#line 151 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp2_ = _tmp5_; -#line 1854 "Tracker.c" - } -#line 151 "/home/jens/Source/shotwell/src/core/Tracker.vala" - fire_updated = _tmp2_; -#line 1858 "Tracker.c" - } -#line 153 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp7_ = self->visible; -#line 153 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp7_ != NULL) { -#line 1864 "Tracker.c" - DataView* _tmp8_; -#line 153 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp8_ = view; -#line 153 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp6_ = data_view_is_visible (_tmp8_); -#line 1870 "Tracker.c" - } else { -#line 153 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp6_ = FALSE; -#line 1874 "Tracker.c" - } -#line 153 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp6_) { -#line 1878 "Tracker.c" - gboolean _tmp9_ = FALSE; - CoreTrackerAccumulator* _tmp10_; - DataView* _tmp11_; -#line 154 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp10_ = self->visible; -#line 154 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp11_ = view; -#line 154 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (core_tracker_accumulator_altered (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject), alteration)) { -#line 154 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp9_ = TRUE; -#line 1890 "Tracker.c" - } else { - gboolean _tmp12_; -#line 154 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp12_ = fire_updated; -#line 154 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp9_ = _tmp12_; -#line 1897 "Tracker.c" - } -#line 154 "/home/jens/Source/shotwell/src/core/Tracker.vala" - fire_updated = _tmp9_; -#line 1901 "Tracker.c" - } -#line 156 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp14_ = self->selected; -#line 156 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp14_ != NULL) { -#line 1907 "Tracker.c" - DataView* _tmp15_; -#line 156 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp15_ = view; -#line 156 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp13_ = data_view_is_selected (_tmp15_); -#line 1913 "Tracker.c" - } else { -#line 156 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp13_ = FALSE; -#line 1917 "Tracker.c" - } -#line 156 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp13_) { -#line 1921 "Tracker.c" - gboolean _tmp16_ = FALSE; - CoreTrackerAccumulator* _tmp17_; - DataView* _tmp18_; -#line 157 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp17_ = self->selected; -#line 157 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp18_ = view; -#line 157 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (core_tracker_accumulator_altered (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_DATA_OBJECT, DataObject), alteration)) { -#line 157 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp16_ = TRUE; -#line 1933 "Tracker.c" - } else { - gboolean _tmp19_; -#line 157 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp19_ = fire_updated; -#line 157 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp16_ = _tmp19_; -#line 1940 "Tracker.c" - } -#line 157 "/home/jens/Source/shotwell/src/core/Tracker.vala" - fire_updated = _tmp16_; -#line 1944 "Tracker.c" - } -#line 159 "/home/jens/Source/shotwell/src/core/Tracker.vala" - result = fire_updated; -#line 159 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (view); -#line 159 "/home/jens/Source/shotwell/src/core/Tracker.vala" - return result; -#line 1952 "Tracker.c" -} - - -static void -core_view_tracker_mux_class_init (CoreViewTrackerMuxClass * klass) -{ -#line 100 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_view_tracker_mux_parent_class = g_type_class_peek_parent (klass); -#line 100 "/home/jens/Source/shotwell/src/core/Tracker.vala" - G_OBJECT_CLASS (klass)->finalize = core_view_tracker_mux_finalize; -#line 1963 "Tracker.c" -} - - -static void -core_view_tracker_mux_core_tracker_accumulator_interface_init (CoreTrackerAccumulatorIface * iface) -{ -#line 100 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_view_tracker_mux_core_tracker_accumulator_parent_iface = g_type_interface_peek_parent (iface); -#line 100 "/home/jens/Source/shotwell/src/core/Tracker.vala" - iface->include = (gboolean (*) (CoreTrackerAccumulator *, DataObject*)) core_view_tracker_mux_real_include; -#line 100 "/home/jens/Source/shotwell/src/core/Tracker.vala" - iface->uninclude = (gboolean (*) (CoreTrackerAccumulator *, DataObject*)) core_view_tracker_mux_real_uninclude; -#line 100 "/home/jens/Source/shotwell/src/core/Tracker.vala" - iface->altered = (gboolean (*) (CoreTrackerAccumulator *, DataObject*, Alteration*)) core_view_tracker_mux_real_altered; -#line 1978 "Tracker.c" -} - - -static void -core_view_tracker_mux_instance_init (CoreViewTrackerMux * self) -{ -} - - -static void -core_view_tracker_mux_finalize (GObject * obj) -{ - CoreViewTrackerMux * self; -#line 100 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, CORE_VIEW_TRACKER_TYPE_MUX, CoreViewTrackerMux); -#line 101 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (self->all); -#line 102 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (self->visible); -#line 103 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (self->selected); -#line 100 "/home/jens/Source/shotwell/src/core/Tracker.vala" - G_OBJECT_CLASS (core_view_tracker_mux_parent_class)->finalize (obj); -#line 2002 "Tracker.c" -} - - -static GType -core_view_tracker_mux_get_type (void) -{ - static volatile gsize core_view_tracker_mux_type_id__volatile = 0; - if (g_once_init_enter (&core_view_tracker_mux_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CoreViewTrackerMuxClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) core_view_tracker_mux_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CoreViewTrackerMux), 0, (GInstanceInitFunc) core_view_tracker_mux_instance_init, NULL }; - static const GInterfaceInfo core_tracker_accumulator_info = { (GInterfaceInitFunc) core_view_tracker_mux_core_tracker_accumulator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType core_view_tracker_mux_type_id; - core_view_tracker_mux_type_id = g_type_register_static (G_TYPE_OBJECT, "CoreViewTrackerMux", &g_define_type_info, 0); - g_type_add_interface_static (core_view_tracker_mux_type_id, CORE_TYPE_TRACKER_ACCUMULATOR, &core_tracker_accumulator_info); - g_once_init_leave (&core_view_tracker_mux_type_id__volatile, core_view_tracker_mux_type_id); - } - return core_view_tracker_mux_type_id__volatile; -} - - -static void -core_view_tracker_class_init (CoreViewTrackerClass * klass) -{ -#line 99 "/home/jens/Source/shotwell/src/core/Tracker.vala" - core_view_tracker_parent_class = g_type_class_peek_parent (klass); -#line 99 "/home/jens/Source/shotwell/src/core/Tracker.vala" - ((CoreTrackerClass *) klass)->finalize = core_view_tracker_finalize; -#line 99 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_type_class_add_private (klass, sizeof (CoreViewTrackerPrivate)); -#line 2031 "Tracker.c" -} - - -static void -core_view_tracker_instance_init (CoreViewTracker * self) -{ -#line 99 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self->priv = CORE_VIEW_TRACKER_GET_PRIVATE (self); -#line 163 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self->priv->mux = NULL; -#line 2042 "Tracker.c" -} - - -static void -core_view_tracker_finalize (CoreTracker * obj) -{ - CoreViewTracker * self; - CoreViewTrackerMux* _tmp0_; -#line 99 "/home/jens/Source/shotwell/src/core/Tracker.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, CORE_TYPE_VIEW_TRACKER, CoreViewTracker); -#line 170 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp0_ = self->priv->mux; -#line 170 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp0_ != NULL) { -#line 2057 "Tracker.c" - ViewCollection* collection = NULL; - DataCollection* _tmp1_; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - guint _tmp5_; - ViewCollection* _tmp6_; - guint _tmp7_; - ViewCollection* _tmp8_; - guint _tmp9_; - ViewCollection* _tmp10_; - guint _tmp11_; -#line 171 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp1_ = core_tracker_get_collection (G_TYPE_CHECK_INSTANCE_CAST (self, CORE_TYPE_TRACKER, CoreTracker)); -#line 171 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_VIEW_COLLECTION) ? ((ViewCollection*) _tmp1_) : NULL; -#line 171 "/home/jens/Source/shotwell/src/core/Tracker.vala" - if (_tmp2_ == NULL) { -#line 171 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _data_collection_unref0 (_tmp1_); -#line 2078 "Tracker.c" - } -#line 171 "/home/jens/Source/shotwell/src/core/Tracker.vala" - collection = _tmp2_; -#line 172 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp3_ = collection; -#line 172 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _vala_assert (_tmp3_ != NULL, "collection != null"); -#line 173 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp4_ = collection; -#line 173 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_parse_name ("items-shown", TYPE_VIEW_COLLECTION, &_tmp5_, NULL, FALSE); -#line 173 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _core_view_tracker_on_items_shown_view_collection_items_shown, self); -#line 174 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp6_ = collection; -#line 174 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_parse_name ("items-hidden", TYPE_VIEW_COLLECTION, &_tmp7_, NULL, FALSE); -#line 174 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _core_view_tracker_on_items_hidden_view_collection_items_hidden, self); -#line 175 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp8_ = collection; -#line 175 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_parse_name ("items-selected", TYPE_VIEW_COLLECTION, &_tmp9_, NULL, FALSE); -#line 175 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_handlers_disconnect_matched (_tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _core_view_tracker_on_items_selected_view_collection_items_selected, self); -#line 176 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _tmp10_ = collection; -#line 176 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_parse_name ("items-unselected", TYPE_VIEW_COLLECTION, &_tmp11_, NULL, FALSE); -#line 176 "/home/jens/Source/shotwell/src/core/Tracker.vala" - g_signal_handlers_disconnect_matched (_tmp10_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _core_view_tracker_on_items_unselected_view_collection_items_unselected, self); -#line 170 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _data_collection_unref0 (collection); -#line 2112 "Tracker.c" - } -#line 163 "/home/jens/Source/shotwell/src/core/Tracker.vala" - _g_object_unref0 (self->priv->mux); -#line 99 "/home/jens/Source/shotwell/src/core/Tracker.vala" - CORE_TRACKER_CLASS (core_view_tracker_parent_class)->finalize (obj); -#line 2118 "Tracker.c" -} - - -GType -core_view_tracker_get_type (void) -{ - static volatile gsize core_view_tracker_type_id__volatile = 0; - if (g_once_init_enter (&core_view_tracker_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CoreViewTrackerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) core_view_tracker_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CoreViewTracker), 0, (GInstanceInitFunc) core_view_tracker_instance_init, NULL }; - GType core_view_tracker_type_id; - core_view_tracker_type_id = g_type_register_static (CORE_TYPE_TRACKER, "CoreViewTracker", &g_define_type_info, 0); - g_once_init_leave (&core_view_tracker_type_id__volatile, core_view_tracker_type_id); - } - return core_view_tracker_type_id__volatile; -} - - - diff --git a/src/core/ViewCollection.c b/src/core/ViewCollection.c deleted file mode 100644 index 20c7fd1..0000000 --- a/src/core/ViewCollection.c +++ /dev/null @@ -1,9130 +0,0 @@ -/* ViewCollection.c generated by valac 0.40.4, the Vala compiler - * generated from ViewCollection.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/* A ViewCollection holds DataView objects, which are view instances wrapping DataSource objects.*/ -/* Thus, multiple views can exist of a single SourceCollection, each view displaying all or some*/ -/* of that SourceCollection. A view collection also has a notion of order*/ -/* (first/last/next/previous) that can be overridden by child classes. It also understands hidden*/ -/* objects, which are withheld entirely from the collection until they're made visible. Currently*/ -/* the only way to hide objects is with a ViewFilter.*/ -/**/ -/* A ViewCollection may also be locked. When locked, it will not (a) remove hidden items from the*/ -/* collection and (b) remove DataViews representing unlinked DataSources. This allows for the*/ -/* ViewCollection to be "frozen" while manipulating items within it. When the collection is*/ -/* unlocked, all changes are applied at once.*/ -/**/ -/* The default implementation provides a browser which orders the view in the order they're*/ -/* stored in DataCollection, which is not specified.*/ - - -#include -#include -#include -#include -#include -#include - - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; -typedef struct _DataCollectionPrivate DataCollectionPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; -typedef struct _ViewCollectionPrivate ViewCollectionPrivate; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ()) -#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor)) -#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) -#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) - -typedef struct _ViewCollectionMonitor ViewCollectionMonitor; -typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass; - -#define VIEW_COLLECTION_TYPE_MONITOR_IMPL (view_collection_monitor_impl_get_type ()) -#define VIEW_COLLECTION_MONITOR_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR_IMPL, ViewCollectionMonitorImpl)) -#define VIEW_COLLECTION_MONITOR_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR_IMPL, ViewCollectionMonitorImplClass)) -#define VIEW_COLLECTION_IS_MONITOR_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR_IMPL)) -#define VIEW_COLLECTION_IS_MONITOR_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR_IMPL)) -#define VIEW_COLLECTION_MONITOR_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR_IMPL, ViewCollectionMonitorImplClass)) - -typedef struct _ViewCollectionMonitorImpl ViewCollectionMonitorImpl; -typedef struct _ViewCollectionMonitorImplClass ViewCollectionMonitorImplClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_DATA_SET (data_set_get_type ()) -#define DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SET, DataSet)) -#define DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SET, DataSetClass)) -#define IS_DATA_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SET)) -#define IS_DATA_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SET)) -#define DATA_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SET, DataSetClass)) - -typedef struct _DataSet DataSet; -typedef struct _DataSetClass DataSetClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _data_set_unref0(var) ((var == NULL) ? NULL : (var = (data_set_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL))) - -#define TYPE_VIEW_MANAGER (view_manager_get_type ()) -#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager)) -#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass)) -#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER)) -#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER)) -#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass)) - -typedef struct _ViewManager ViewManager; -typedef struct _ViewManagerClass ViewManagerClass; -#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL))) -typedef struct _ViewCollectionMonitorPrivate ViewCollectionMonitorPrivate; -typedef struct _ViewCollectionMonitorImplPrivate ViewCollectionMonitorImplPrivate; -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_RATING (rating_get_type ()) - -#define VIEW_COLLECTION_TYPE_TOGGLE_LISTS (view_collection_toggle_lists_get_type ()) -#define VIEW_COLLECTION_TOGGLE_LISTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_TOGGLE_LISTS, ViewCollectionToggleLists)) -#define VIEW_COLLECTION_TOGGLE_LISTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_TOGGLE_LISTS, ViewCollectionToggleListsClass)) -#define VIEW_COLLECTION_IS_TOGGLE_LISTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_TOGGLE_LISTS)) -#define VIEW_COLLECTION_IS_TOGGLE_LISTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_TOGGLE_LISTS)) -#define VIEW_COLLECTION_TOGGLE_LISTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_TOGGLE_LISTS, ViewCollectionToggleListsClass)) - -typedef struct _ViewCollectionToggleLists ViewCollectionToggleLists; -typedef struct _ViewCollectionToggleListsClass ViewCollectionToggleListsClass; -typedef struct _ViewCollectionToggleListsPrivate ViewCollectionToggleListsPrivate; -typedef struct _ViewCollectionParamSpecMonitor ViewCollectionParamSpecMonitor; -#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL))) -enum { - VIEW_COLLECTION_TOGGLE_LISTS_0_PROPERTY, - VIEW_COLLECTION_TOGGLE_LISTS_NUM_PROPERTIES -}; -static GParamSpec* view_collection_toggle_lists_properties[VIEW_COLLECTION_TOGGLE_LISTS_NUM_PROPERTIES]; -enum { - VIEW_COLLECTION_ITEMS_SELECTED_SIGNAL, - VIEW_COLLECTION_ITEMS_UNSELECTED_SIGNAL, - VIEW_COLLECTION_ITEMS_STATE_CHANGED_SIGNAL, - VIEW_COLLECTION_SELECTION_GROUP_ALTERED_SIGNAL, - VIEW_COLLECTION_ITEMS_SHOWN_SIGNAL, - VIEW_COLLECTION_ITEMS_HIDDEN_SIGNAL, - VIEW_COLLECTION_ITEMS_VISIBILITY_CHANGED_SIGNAL, - VIEW_COLLECTION_ITEM_VIEW_ALTERED_SIGNAL, - VIEW_COLLECTION_ITEM_GEOMETRY_ALTERED_SIGNAL, - VIEW_COLLECTION_VIEWS_ALTERED_SIGNAL, - VIEW_COLLECTION_GEOMETRIES_ALTERED_SIGNAL, - VIEW_COLLECTION_VIEW_FILTER_INSTALLED_SIGNAL, - VIEW_COLLECTION_VIEW_FILTER_REMOVED_SIGNAL, - VIEW_COLLECTION_NUM_SIGNALS -}; -static guint view_collection_signals[VIEW_COLLECTION_NUM_SIGNALS] = {0}; -typedef struct _ViewManagerPrivate ViewManagerPrivate; -typedef struct _ParamSpecViewManager ParamSpecViewManager; -typedef struct _ViewFilterPrivate ViewFilterPrivate; -typedef struct _ParamSpecViewFilter ParamSpecViewFilter; -enum { - VIEW_FILTER_REFRESH_SIGNAL, - VIEW_FILTER_NUM_SIGNALS -}; -static guint view_filter_signals[VIEW_FILTER_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -struct _DataCollection { - GTypeInstance parent_instance; - volatile int ref_count; - DataCollectionPrivate * priv; -}; - -struct _DataCollectionClass { - GTypeClass parent_class; - void (*finalize) (DataCollection *self); - gchar* (*to_string) (DataCollection* self); - void (*notify_items_added) (DataCollection* self, GeeIterable* added); - void (*notify_items_removed) (DataCollection* self, GeeIterable* removed); - void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*notify_items_altered) (DataCollection* self, GeeMap* items); - void (*notify_ordering_changed) (DataCollection* self); - void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*notify_property_cleared) (DataCollection* self, const gchar* name); - gboolean (*valid_type) (DataCollection* self, DataObject* object); - void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target); - void (*reset_comparator) (DataCollection* self); - GeeCollection* (*get_all) (DataCollection* self); - gint (*get_count) (DataCollection* self); - DataObject* (*get_at) (DataCollection* self, gint index); - gint (*index_of) (DataCollection* self, DataObject* object); - gboolean (*contains) (DataCollection* self, DataObject* object); - gboolean (*add) (DataCollection* self, DataObject* object); - GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target); - void (*remove_marked) (DataCollection* self, Marker* m); - void (*clear) (DataCollection* self); - void (*close) (DataCollection* self); - void (*notify_frozen) (DataCollection* self); - void (*notify_thawed) (DataCollection* self); - void (*items_added) (DataCollection* self, GeeIterable* added); - void (*items_removed) (DataCollection* self, GeeIterable* removed); - void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*items_altered) (DataCollection* self, GeeMap* items); - void (*ordering_changed) (DataCollection* self); - void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*property_cleared) (DataCollection* self, const gchar* name); - void (*frozen) (DataCollection* self); - void (*thawed) (DataCollection* self); -}; - -struct _ViewCollection { - DataCollection parent_instance; - ViewCollectionPrivate * priv; -}; - -struct _ViewCollectionClass { - DataCollectionClass parent_class; - void (*notify_items_selected_unselected) (ViewCollection* self, GeeCollection* selected, GeeCollection* unselected); - void (*notify_selection_group_altered) (ViewCollection* self); - void (*notify_item_view_altered) (ViewCollection* self, DataView* view); - void (*notify_views_altered) (ViewCollection* self, GeeCollection* views); - void (*notify_item_geometry_altered) (ViewCollection* self, DataView* view); - void (*notify_geometries_altered) (ViewCollection* self, GeeCollection* views); - void (*notify_items_shown) (ViewCollection* self, GeeCollection* shown); - void (*notify_items_hidden) (ViewCollection* self, GeeCollection* hidden); - void (*notify_items_visibility_changed) (ViewCollection* self, GeeCollection* changed); - void (*notify_view_filter_installed) (ViewCollection* self, ViewFilter* filter); - void (*notify_view_filter_removed) (ViewCollection* self, ViewFilter* filter); - DataView* (*get_first) (ViewCollection* self); - DataView* (*get_first_unrejected) (ViewCollection* self); - DataView* (*get_last) (ViewCollection* self); - DataView* (*get_next) (ViewCollection* self, DataView* view); - DataView* (*get_previous) (ViewCollection* self, DataView* view); - void (*items_selected) (ViewCollection* self, GeeIterable* selected); - void (*items_unselected) (ViewCollection* self, GeeIterable* unselected); - void (*items_state_changed) (ViewCollection* self, GeeIterable* changed); - void (*selection_group_altered) (ViewCollection* self); - void (*items_shown) (ViewCollection* self, GeeCollection* visible); - void (*items_hidden) (ViewCollection* self, GeeCollection* hidden); - void (*items_visibility_changed) (ViewCollection* self, GeeCollection* changed); - void (*item_view_altered) (ViewCollection* self, DataView* view); - void (*item_geometry_altered) (ViewCollection* self, DataView* view); - void (*views_altered) (ViewCollection* self, GeeCollection* views); - void (*geometries_altered) (ViewCollection* self, GeeCollection* views); - void (*view_filter_installed) (ViewCollection* self, ViewFilter* filer); - void (*view_filter_removed) (ViewCollection* self, ViewFilter* filer); -}; - -typedef DataView* (*CreateView) (DataSource* source, void* user_data); -typedef gboolean (*CreateViewPredicate) (DataSource* source, void* user_data); -struct _ViewCollectionPrivate { - GeeHashMultiMap* monitors; - ViewCollection* mirroring; - CreateView mirroring_ctor; - gpointer mirroring_ctor_target; - CreateViewPredicate should_mirror; - gpointer should_mirror_target; - GeeSet* filters; - DataSet* selected; - DataSet* visible; - GeeHashSet* frozen_views_altered; - GeeHashSet* frozen_geometries_altered; - GeeHashMap* source_map; -}; - -struct _ViewCollectionMonitor { - GTypeInstance parent_instance; - volatile int ref_count; - ViewCollectionMonitorPrivate * priv; -}; - -struct _ViewCollectionMonitorClass { - GTypeClass parent_class; - void (*finalize) (ViewCollectionMonitor *self); -}; - -struct _ViewCollectionMonitorImpl { - ViewCollectionMonitor parent_instance; - ViewCollectionMonitorImplPrivate * priv; - ViewCollection* owner; - SourceCollection* sources; - ViewManager* manager; - Alteration* prereq; -}; - -struct _ViewCollectionMonitorImplClass { - ViewCollectionMonitorClass parent_class; -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef gboolean (*MarkedAction) (DataObject* object, GObject* user, void* user_data); -struct _ViewCollectionToggleLists { - GObject parent_instance; - ViewCollectionToggleListsPrivate * priv; - GeeArrayList* selected; - GeeArrayList* unselected; -}; - -struct _ViewCollectionToggleListsClass { - GObjectClass parent_class; -}; - -struct _ViewCollectionParamSpecMonitor { - GParamSpec parent_instance; -}; - -struct _ViewManager { - GTypeInstance parent_instance; - volatile int ref_count; - ViewManagerPrivate * priv; -}; - -struct _ViewManagerClass { - GTypeClass parent_class; - void (*finalize) (ViewManager *self); - gboolean (*include_in_view) (ViewManager* self, DataSource* source); - DataView* (*create_view) (ViewManager* self, DataSource* source); -}; - -struct _ParamSpecViewManager { - GParamSpec parent_instance; -}; - -struct _ViewFilter { - GTypeInstance parent_instance; - volatile int ref_count; - ViewFilterPrivate * priv; -}; - -struct _ViewFilterClass { - GTypeClass parent_class; - void (*finalize) (ViewFilter *self); - gboolean (*predicate) (ViewFilter* self, DataView* view); - void (*refresh) (ViewFilter* self); -}; - -struct _ParamSpecViewFilter { - GParamSpec parent_instance; -}; - - -static gpointer view_collection_parent_class = NULL; -static gpointer view_collection_monitor_parent_class = NULL; -static gpointer view_collection_monitor_impl_parent_class = NULL; -static gpointer view_collection_toggle_lists_parent_class = NULL; -static gpointer view_manager_parent_class = NULL; -static gpointer view_filter_parent_class = NULL; - -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -GType marker_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -gpointer view_collection_monitor_ref (gpointer instance); -void view_collection_monitor_unref (gpointer instance); -GParamSpec* view_collection_param_spec_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void view_collection_value_set_monitor (GValue* value, - gpointer v_object); -void view_collection_value_take_monitor (GValue* value, - gpointer v_object); -gpointer view_collection_value_get_monitor (const GValue* value); -GType view_collection_monitor_get_type (void) G_GNUC_CONST; -static GType view_collection_monitor_impl_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -GType data_source_get_type (void) G_GNUC_CONST; -gpointer data_set_ref (gpointer instance); -void data_set_unref (gpointer instance); -GParamSpec* param_spec_data_set (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_set (GValue* value, - gpointer v_object); -void value_take_data_set (GValue* value, - gpointer v_object); -gpointer value_get_data_set (const GValue* value); -GType data_set_get_type (void) G_GNUC_CONST; -#define VIEW_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_VIEW_COLLECTION, ViewCollectionPrivate)) -DataSet* data_set_new (void); -DataSet* data_set_construct (GType object_type); -ViewCollection* view_collection_new (const gchar* name); -ViewCollection* view_collection_construct (GType object_type, - const gchar* name); -DataCollection* data_collection_new (const gchar* name); -DataCollection* data_collection_construct (GType object_type, - const gchar* name); -void view_collection_notify_items_selected_unselected (ViewCollection* self, - GeeCollection* selected, - GeeCollection* unselected); -static void view_collection_real_notify_items_selected_unselected (ViewCollection* self, - GeeCollection* selected, - GeeCollection* unselected); -void view_collection_notify_selection_group_altered (ViewCollection* self); -static void view_collection_real_notify_selection_group_altered (ViewCollection* self); -void view_collection_notify_item_view_altered (ViewCollection* self, - DataView* view); -static void view_collection_real_notify_item_view_altered (ViewCollection* self, - DataView* view); -void view_collection_notify_views_altered (ViewCollection* self, - GeeCollection* views); -static void view_collection_real_notify_views_altered (ViewCollection* self, - GeeCollection* views); -void view_collection_notify_item_geometry_altered (ViewCollection* self, - DataView* view); -static void view_collection_real_notify_item_geometry_altered (ViewCollection* self, - DataView* view); -void view_collection_notify_geometries_altered (ViewCollection* self, - GeeCollection* views); -static void view_collection_real_notify_geometries_altered (ViewCollection* self, - GeeCollection* views); -void view_collection_notify_items_shown (ViewCollection* self, - GeeCollection* shown); -static void view_collection_real_notify_items_shown (ViewCollection* self, - GeeCollection* shown); -void view_collection_notify_items_hidden (ViewCollection* self, - GeeCollection* hidden); -static void view_collection_real_notify_items_hidden (ViewCollection* self, - GeeCollection* hidden); -void view_collection_notify_items_visibility_changed (ViewCollection* self, - GeeCollection* changed); -static void view_collection_real_notify_items_visibility_changed (ViewCollection* self, - GeeCollection* changed); -void view_collection_notify_view_filter_installed (ViewCollection* self, - ViewFilter* filter); -static void view_collection_real_notify_view_filter_installed (ViewCollection* self, - ViewFilter* filter); -void view_collection_notify_view_filter_removed (ViewCollection* self, - ViewFilter* filter); -static void view_collection_real_notify_view_filter_removed (ViewCollection* self, - ViewFilter* filter); -static void view_collection_real_clear (DataCollection* base); -gchar* data_collection_to_string (DataCollection* self); -void data_collection_clear (DataCollection* self); -static void view_collection_real_close (DataCollection* base); -void view_collection_halt_all_monitoring (ViewCollection* self); -void view_collection_halt_mirroring (ViewCollection* self); -static void view_collection_on_view_filter_refresh (ViewCollection* self); -static void _view_collection_on_view_filter_refresh_view_filter_refresh (ViewFilter* _sender, - gpointer self); -void data_collection_close (DataCollection* self); -gpointer view_manager_ref (gpointer instance); -void view_manager_unref (gpointer instance); -GParamSpec* param_spec_view_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_manager (GValue* value, - gpointer v_object); -void value_take_view_manager (GValue* value, - gpointer v_object); -gpointer value_get_view_manager (const GValue* value); -GType view_manager_get_type (void) G_GNUC_CONST; -ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self, - SourceCollection* sources, - ViewManager* manager, - Alteration* prereq, - GeeCollection* initial, - ProgressMonitor progress_monitor, - void* progress_monitor_target); -void data_collection_freeze_notifications (DataCollection* self); -static ViewCollectionMonitorImpl* view_collection_monitor_impl_new (ViewCollection* owner, - SourceCollection* sources, - ViewManager* manager, - Alteration* prereq); -static ViewCollectionMonitorImpl* view_collection_monitor_impl_construct (GType object_type, - ViewCollection* owner, - SourceCollection* sources, - ViewManager* manager, - Alteration* prereq); -DataView* view_manager_create_view (ViewManager* self, - DataSource* source); -GeeCollection* data_collection_add_many (DataCollection* self, - GeeCollection* objects, - ProgressMonitor monitor, - void* monitor_target); -static void view_collection_add_sources (ViewCollection* self, - SourceCollection* sources, - GeeIterable* added, - ProgressMonitor progress_monitor, - void* progress_monitor_target); -GeeCollection* data_collection_get_all (DataCollection* self); -void data_collection_thaw_notifications (DataCollection* self); -void view_collection_halt_monitoring (ViewCollection* self, - ViewCollectionMonitor* m); -void view_collection_mirror (ViewCollection* self, - ViewCollection* to_mirror, - CreateView mirroring_ctor, - void* mirroring_ctor_target, - CreateViewPredicate should_mirror, - void* should_mirror_target); -void data_collection_set_comparator (DataCollection* self, - Comparator comparator, - void* comparator_target, - ComparatorPredicate predicate, - void* predicate_target); -Comparator data_collection_get_comparator (DataCollection* self, - void** result_target); -ComparatorPredicate data_collection_get_comparator_predicate (DataCollection* self, - void** result_target); -static void view_collection_on_mirror_contents_added (ViewCollection* self, - GeeIterable* added); -static void _view_collection_on_mirror_contents_added_data_collection_items_added (DataCollection* _sender, - GeeIterable* added, - gpointer self); -static void view_collection_on_mirror_contents_removed (ViewCollection* self, - GeeIterable* removed); -static void _view_collection_on_mirror_contents_removed_data_collection_items_removed (DataCollection* _sender, - GeeIterable* removed, - gpointer self); -void view_collection_copy_into (ViewCollection* self, - ViewCollection* to_copy, - CreateView copying_ctor, - void* copying_ctor_target, - CreateViewPredicate should_copy, - void* should_copy_target); -DataSource* data_view_get_source (DataView* self); -gboolean view_collection_is_view_filter_installed (ViewCollection* self, - ViewFilter* f); -void view_collection_install_view_filter (ViewCollection* self, - ViewFilter* f); -void view_collection_remove_view_filter (ViewCollection* self, - ViewFilter* f); -static void view_collection_filter_altered_items (ViewCollection* self, - GeeCollection* views); -static gboolean view_collection_is_in_filter (ViewCollection* self, - DataView* view); -gboolean view_filter_predicate (ViewFilter* self, - DataView* view); -static gboolean view_collection_real_valid_type (DataCollection* base, - DataObject* object); -static void view_collection_on_sources_added (ViewCollection* self, - DataCollection* sources, - GeeIterable* added); -gboolean view_manager_include_in_view (ViewManager* self, - DataSource* source); -static DataView* _view_manager_create_view_create_view (DataSource* source, - gpointer self); -gboolean data_collection_add (DataCollection* self, - DataObject* object); -static gboolean view_collection_real_add (DataCollection* base, - DataObject* object); -void data_view_internal_set_visible (DataView* self, - gboolean visible); -GeeCollection* data_collection_get_singleton (DataObject* object); -static GeeCollection* view_collection_real_add_many (DataCollection* base, - GeeCollection* objects, - ProgressMonitor monitor, - void* monitor_target); -static void view_collection_on_sources_removed (ViewCollection* self, - GeeIterable* removed); -Marker* data_collection_start_marking (DataCollection* self); -void marker_mark (Marker* self, - DataObject* object); -gint marker_get_count (Marker* self); -void data_collection_remove_marked (DataCollection* self, - Marker* m); -static void view_collection_on_sources_altered (ViewCollection* self, - DataCollection* collection, - GeeMap* items); -gboolean alteration_contains_any (Alteration* self, - Alteration* other); -gboolean view_collection_has_view_for_source (ViewCollection* self, - DataSource* source); -DataView* view_collection_get_view_for_source (ViewCollection* self, - DataSource* source); -gboolean data_set_contains (DataSet* self, - DataObject* object); -gboolean data_set_resort_object (DataSet* self, - DataObject* object, - Alteration* alteration); -static gboolean view_collection_is_visible (ViewCollection* self, - DataView* view); -Marker* data_collection_mark_many (DataCollection* self, - GeeCollection* objects); -void data_collection_notify_ordering_changed (DataCollection* self); -static void view_collection_real_notify_items_added (DataCollection* base, - GeeIterable* added); -gboolean data_view_is_selected (DataView* self); -gboolean data_view_is_visible (DataView* self); -static gboolean view_collection_add_many_visible (ViewCollection* self, - GeeCollection* many); -static void view_collection_add_many_selected (ViewCollection* self, - GeeCollection* views); -void data_collection_notify_items_added (DataCollection* self, - GeeIterable* added); -static void view_collection_real_notify_items_removed (DataCollection* base, - GeeIterable* removed); -gboolean data_set_remove (DataSet* self, - DataObject* object); -static void view_collection_remove_many_selected (ViewCollection* self, - GeeCollection* views); -void data_collection_notify_items_removed (DataCollection* self, - GeeIterable* removed); -static void view_collection_show_items (ViewCollection* self, - GeeList* to_show); -static void view_collection_hide_items (ViewCollection* self, - GeeList* to_hide); -static void view_collection_real_items_altered (DataCollection* base, - GeeMap* map); -static void view_collection_real_set_comparator (DataCollection* base, - Comparator comparator, - void* comparator_target, - ComparatorPredicate predicate, - void* predicate_target); -void data_set_set_comparator (DataSet* self, - Comparator user_comparator, - void* user_comparator_target, - ComparatorPredicate comparator_predicate, - void* comparator_predicate_target); -static void view_collection_real_reset_comparator (DataCollection* base); -void data_set_reset_comparator (DataSet* self); -void data_collection_reset_comparator (DataCollection* self); -static GeeCollection* view_collection_real_get_all (DataCollection* base); -GeeList* data_set_get_all (DataSet* self); -GeeCollection* view_collection_get_all_unfiltered (ViewCollection* self); -static gint view_collection_real_get_count (DataCollection* base); -gint data_set_get_count (DataSet* self); -gint data_collection_get_count (DataCollection* self); -gint view_collection_get_unfiltered_count (ViewCollection* self); -static DataObject* view_collection_real_get_at (DataCollection* base, - gint index); -DataObject* data_set_get_at (DataSet* self, - gint index); -DataObject* data_collection_get_at (DataCollection* self, - gint index); -static gint view_collection_real_index_of (DataCollection* base, - DataObject* object); -gint data_set_index_of (DataSet* self, - DataObject* object); -gint data_collection_index_of (DataCollection* self, - DataObject* object); -static gboolean view_collection_real_contains (DataCollection* base, - DataObject* object); -gboolean data_collection_contains (DataCollection* self, - DataObject* object); -DataView* view_collection_get_first (ViewCollection* self); -static DataView* view_collection_real_get_first (ViewCollection* self); -DataView* view_collection_get_first_unrejected (ViewCollection* self); -static DataView* view_collection_real_get_first_unrejected (ViewCollection* self); -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -Rating media_source_get_rating (MediaSource* self); -DataView* view_collection_get_next (ViewCollection* self, - DataView* view); -DataView* view_collection_get_last (ViewCollection* self); -static DataView* view_collection_real_get_last (ViewCollection* self); -static DataView* view_collection_real_get_next (ViewCollection* self, - DataView* view); -DataView* view_collection_get_previous (ViewCollection* self, - DataView* view); -static DataView* view_collection_real_get_previous (ViewCollection* self, - DataView* view); -gboolean view_collection_get_immediate_neighbors (ViewCollection* self, - DataSource* home, - DataSource* * next, - DataSource* * prev, - const gchar* type_selector); -gchar* data_source_get_typename (DataSource* self); -GeeSet* view_collection_get_extended_neighbors (ViewCollection* self, - DataSource* home, - const gchar* typename); -gboolean data_set_add_many (DataSet* self, - GeeCollection* objects); -gboolean data_set_remove_many (DataSet* self, - GeeCollection* objects); -void view_collection_select_marked (ViewCollection* self, - Marker* marker); -void data_collection_act_on_marked (DataCollection* self, - Marker* m, - MarkedAction action, - void* action_target, - ProgressMonitor monitor, - void* monitor_target, - GObject* user); -static gboolean view_collection_select_item (ViewCollection* self, - DataObject* object, - GObject* user); -static gboolean _view_collection_select_item_marked_action (DataObject* object, - GObject* user, - gpointer self); -void view_collection_select_all (ViewCollection* self); -void marker_mark_all (Marker* self); -void data_view_internal_set_selected (DataView* self, - gboolean selected); -void view_collection_unselect_marked (ViewCollection* self, - Marker* marker); -static gboolean view_collection_unselect_item (ViewCollection* self, - DataObject* object, - GObject* user); -static gboolean _view_collection_unselect_item_marked_action (DataObject* object, - GObject* user, - gpointer self); -void view_collection_unselect_all (ViewCollection* self); -void marker_mark_many (Marker* self, - GeeCollection* list); -GeeList* view_collection_get_selected (ViewCollection* self); -void view_collection_unselect_all_but (ViewCollection* self, - DataView* exception); -void view_collection_unselect_and_select_marked (ViewCollection* self, - Marker* unselect, - Marker* select); -void view_collection_toggle_marked (ViewCollection* self, - Marker* marker); -static GType view_collection_toggle_lists_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static ViewCollectionToggleLists* view_collection_toggle_lists_new (void); -static ViewCollectionToggleLists* view_collection_toggle_lists_construct (GType object_type); -static gboolean view_collection_toggle_item (ViewCollection* self, - DataObject* object, - GObject* user); -static gboolean _view_collection_toggle_item_marked_action (DataObject* object, - GObject* user, - gpointer self); -gboolean data_view_internal_toggle (DataView* self); -gint view_collection_get_selected_count (ViewCollection* self); -DataView* view_collection_get_selected_at (ViewCollection* self, - gint index); -DataSet* data_collection_get_dataset_copy (DataCollection* self); -gboolean view_collection_has_view_for_source_with_filtered (ViewCollection* self, - DataSource* source); -DataView* view_collection_get_view_for_source_filtered (ViewCollection* self, - DataSource* source); -GeeCollection* view_collection_get_sources (ViewCollection* self); -gboolean view_collection_has_source_of_type (ViewCollection* self, - GType t); -gint view_collection_get_sources_of_type_count (ViewCollection* self, - GType t); -GeeList* view_collection_get_sources_of_type (ViewCollection* self, - GType t); -GeeList* view_collection_get_selected_sources (ViewCollection* self); -DataSource* view_collection_get_selected_source_at (ViewCollection* self, - gint index); -GeeList* view_collection_get_selected_sources_of_type (ViewCollection* self, - GType t); -gint view_collection_index_of_source (ViewCollection* self, - DataSource* source); -void view_collection_internal_notify_view_altered (ViewCollection* self, - DataView* view); -gboolean data_collection_are_notifications_frozen (DataCollection* self); -void view_collection_internal_notify_geometry_altered (ViewCollection* self, - DataView* view); -static void view_collection_real_notify_thawed (DataCollection* base); -void data_collection_notify_thawed (DataCollection* self); -gboolean view_collection_are_items_filtered_out (ViewCollection* self); -static void view_collection_real_items_selected (ViewCollection* self, - GeeIterable* selected); -static void view_collection_real_items_unselected (ViewCollection* self, - GeeIterable* unselected); -static void view_collection_real_items_state_changed (ViewCollection* self, - GeeIterable* changed); -static void view_collection_real_selection_group_altered (ViewCollection* self); -static void view_collection_real_items_shown (ViewCollection* self, - GeeCollection* visible); -static void view_collection_real_items_hidden (ViewCollection* self, - GeeCollection* hidden); -static void view_collection_real_items_visibility_changed (ViewCollection* self, - GeeCollection* changed); -static void view_collection_real_item_view_altered (ViewCollection* self, - DataView* view); -static void view_collection_real_item_geometry_altered (ViewCollection* self, - DataView* view); -static void view_collection_real_views_altered (ViewCollection* self, - GeeCollection* views); -static void view_collection_real_geometries_altered (ViewCollection* self, - GeeCollection* views); -static void view_collection_real_view_filter_installed (ViewCollection* self, - ViewFilter* filer); -static void g_cclosure_user_marshal_VOID__VIEW_FILTER (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void view_collection_real_view_filter_removed (ViewCollection* self, - ViewFilter* filer); -ViewCollectionMonitor* view_collection_monitor_new (void); -ViewCollectionMonitor* view_collection_monitor_construct (GType object_type); -static void view_collection_monitor_finalize (ViewCollectionMonitor * obj); -static void _view_collection_on_sources_added_data_collection_items_added (DataCollection* _sender, - GeeIterable* added, - gpointer self); -static void _view_collection_on_sources_removed_data_collection_items_removed (DataCollection* _sender, - GeeIterable* removed, - gpointer self); -static void _view_collection_on_sources_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -static void view_collection_monitor_impl_finalize (ViewCollectionMonitor * obj); -static void view_collection_toggle_lists_finalize (GObject * obj); -static void view_collection_finalize (DataCollection * obj); -static gboolean view_manager_real_include_in_view (ViewManager* self, - DataSource* source); -static DataView* view_manager_real_create_view (ViewManager* self, - DataSource* source); -ViewManager* view_manager_construct (GType object_type); -static void view_manager_finalize (ViewManager * obj); -static gboolean view_filter_real_predicate (ViewFilter* self, - DataView* view); -ViewFilter* view_filter_construct (GType object_type); -static void view_filter_real_refresh (ViewFilter* self); -static void view_filter_finalize (ViewFilter * obj); - - -ViewCollection* -view_collection_construct (GType object_type, - const gchar* name) -{ - ViewCollection* self = NULL; -#line 125 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 126 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = (ViewCollection*) data_collection_construct (object_type, name); -#line 125 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return self; -#line 958 "ViewCollection.c" -} - - -ViewCollection* -view_collection_new (const gchar* name) -{ -#line 125 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return view_collection_construct (TYPE_VIEW_COLLECTION, name); -#line 967 "ViewCollection.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return self ? g_object_ref (self) : NULL; -#line 976 "ViewCollection.c" -} - - -static void -view_collection_real_notify_items_selected_unselected (ViewCollection* self, - GeeCollection* selected, - GeeCollection* unselected) -{ - gboolean _tmp0_ = FALSE; - gboolean has_selected = FALSE; - gboolean _tmp3_ = FALSE; - gboolean has_unselected = FALSE; - gboolean _tmp6_; - gboolean _tmp7_; - GeeCollection* sum = NULL; - gboolean _tmp8_ = FALSE; - gboolean _tmp9_; - GeeCollection* _tmp22_; -#line 129 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail ((selected == NULL) || GEE_IS_COLLECTION (selected)); -#line 129 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail ((unselected == NULL) || GEE_IS_COLLECTION (unselected)); -#line 131 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (selected != NULL) { -#line 1001 "ViewCollection.c" - gint _tmp1_; - gint _tmp2_; -#line 131 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = gee_collection_get_size (selected); -#line 131 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _tmp1_; -#line 131 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = _tmp2_ > 0; -#line 1010 "ViewCollection.c" - } else { -#line 131 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = FALSE; -#line 1014 "ViewCollection.c" - } -#line 131 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - has_selected = _tmp0_; -#line 132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (unselected != NULL) { -#line 1020 "ViewCollection.c" - gint _tmp4_; - gint _tmp5_; -#line 132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = gee_collection_get_size (unselected); -#line 132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = _tmp4_; -#line 132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = _tmp5_ > 0; -#line 1029 "ViewCollection.c" - } else { -#line 132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = FALSE; -#line 1033 "ViewCollection.c" - } -#line 132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - has_unselected = _tmp3_; -#line 134 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = has_selected; -#line 134 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp6_) { -#line 135 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_ITEMS_SELECTED_SIGNAL], 0, G_TYPE_CHECK_INSTANCE_CAST (selected, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1043 "ViewCollection.c" - } -#line 137 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = has_unselected; -#line 137 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp7_) { -#line 138 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_ITEMS_UNSELECTED_SIGNAL], 0, G_TYPE_CHECK_INSTANCE_CAST (unselected, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1051 "ViewCollection.c" - } -#line 141 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = has_selected; -#line 141 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp9_) { -#line 1057 "ViewCollection.c" - gboolean _tmp10_; -#line 141 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = has_unselected; -#line 141 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = !_tmp10_; -#line 1063 "ViewCollection.c" - } else { -#line 141 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = FALSE; -#line 1067 "ViewCollection.c" - } -#line 141 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp8_) { -#line 1071 "ViewCollection.c" - GeeCollection* _tmp11_; -#line 142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = _g_object_ref0 (selected); -#line 142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (sum); -#line 142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - sum = _tmp11_; -#line 1079 "ViewCollection.c" - } else { - gboolean _tmp12_ = FALSE; - gboolean _tmp13_; -#line 143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = has_selected; -#line 143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!_tmp13_) { -#line 1087 "ViewCollection.c" - gboolean _tmp14_; -#line 143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp14_ = has_unselected; -#line 143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = _tmp14_; -#line 1093 "ViewCollection.c" - } else { -#line 143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = FALSE; -#line 1097 "ViewCollection.c" - } -#line 143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp12_) { -#line 1101 "ViewCollection.c" - GeeCollection* _tmp15_; -#line 144 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp15_ = _g_object_ref0 (unselected); -#line 144 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (sum); -#line 144 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - sum = _tmp15_; -#line 1109 "ViewCollection.c" - } else { - gboolean _tmp16_ = FALSE; - gboolean _tmp17_; -#line 145 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp17_ = has_selected; -#line 145 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!_tmp17_) { -#line 1117 "ViewCollection.c" - gboolean _tmp18_; -#line 145 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp18_ = has_unselected; -#line 145 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp16_ = !_tmp18_; -#line 1123 "ViewCollection.c" - } else { -#line 145 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp16_ = FALSE; -#line 1127 "ViewCollection.c" - } -#line 145 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp16_) { -#line 146 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (sum); -#line 146 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - sum = NULL; -#line 1135 "ViewCollection.c" - } else { - GeeHashSet* _tmp19_; - GeeCollection* _tmp20_; - GeeCollection* _tmp21_; -#line 148 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp19_ = gee_hash_set_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 148 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (sum); -#line 148 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - sum = G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection); -#line 149 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp20_ = sum; -#line 149 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_collection_add_all (_tmp20_, selected); -#line 150 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp21_ = sum; -#line 150 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_collection_add_all (_tmp21_, unselected); -#line 1154 "ViewCollection.c" - } - } - } -#line 153 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp22_ = sum; -#line 153 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp22_ != NULL) { -#line 1162 "ViewCollection.c" - GeeCollection* _tmp23_; -#line 154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp23_ = sum; -#line 154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_ITEMS_STATE_CHANGED_SIGNAL], 0, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 155 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_selection_group_altered (self); -#line 1170 "ViewCollection.c" - } -#line 129 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (sum); -#line 1174 "ViewCollection.c" -} - - -void -view_collection_notify_items_selected_unselected (ViewCollection* self, - GeeCollection* selected, - GeeCollection* unselected) -{ -#line 129 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 129 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - VIEW_COLLECTION_GET_CLASS (self)->notify_items_selected_unselected (self, selected, unselected); -#line 1187 "ViewCollection.c" -} - - -static void -view_collection_real_notify_selection_group_altered (ViewCollection* self) -{ -#line 160 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_SELECTION_GROUP_ALTERED_SIGNAL], 0); -#line 1196 "ViewCollection.c" -} - - -void -view_collection_notify_selection_group_altered (ViewCollection* self) -{ -#line 159 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 159 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - VIEW_COLLECTION_GET_CLASS (self)->notify_selection_group_altered (self); -#line 1207 "ViewCollection.c" -} - - -static void -view_collection_real_notify_item_view_altered (ViewCollection* self, - DataView* view) -{ -#line 163 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_DATA_VIEW (view)); -#line 164 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_ITEM_VIEW_ALTERED_SIGNAL], 0, view); -#line 1219 "ViewCollection.c" -} - - -void -view_collection_notify_item_view_altered (ViewCollection* self, - DataView* view) -{ -#line 163 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 163 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - VIEW_COLLECTION_GET_CLASS (self)->notify_item_view_altered (self, view); -#line 1231 "ViewCollection.c" -} - - -static void -view_collection_real_notify_views_altered (ViewCollection* self, - GeeCollection* views) -{ -#line 167 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (views)); -#line 168 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_VIEWS_ALTERED_SIGNAL], 0, views); -#line 1243 "ViewCollection.c" -} - - -void -view_collection_notify_views_altered (ViewCollection* self, - GeeCollection* views) -{ -#line 167 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 167 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - VIEW_COLLECTION_GET_CLASS (self)->notify_views_altered (self, views); -#line 1255 "ViewCollection.c" -} - - -static void -view_collection_real_notify_item_geometry_altered (ViewCollection* self, - DataView* view) -{ -#line 171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_DATA_VIEW (view)); -#line 172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_ITEM_GEOMETRY_ALTERED_SIGNAL], 0, view); -#line 1267 "ViewCollection.c" -} - - -void -view_collection_notify_item_geometry_altered (ViewCollection* self, - DataView* view) -{ -#line 171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - VIEW_COLLECTION_GET_CLASS (self)->notify_item_geometry_altered (self, view); -#line 1279 "ViewCollection.c" -} - - -static void -view_collection_real_notify_geometries_altered (ViewCollection* self, - GeeCollection* views) -{ -#line 175 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (views)); -#line 176 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_GEOMETRIES_ALTERED_SIGNAL], 0, views); -#line 1291 "ViewCollection.c" -} - - -void -view_collection_notify_geometries_altered (ViewCollection* self, - GeeCollection* views) -{ -#line 175 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 175 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - VIEW_COLLECTION_GET_CLASS (self)->notify_geometries_altered (self, views); -#line 1303 "ViewCollection.c" -} - - -static void -view_collection_real_notify_items_shown (ViewCollection* self, - GeeCollection* shown) -{ -#line 179 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (shown)); -#line 180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_ITEMS_SHOWN_SIGNAL], 0, shown); -#line 1315 "ViewCollection.c" -} - - -void -view_collection_notify_items_shown (ViewCollection* self, - GeeCollection* shown) -{ -#line 179 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 179 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - VIEW_COLLECTION_GET_CLASS (self)->notify_items_shown (self, shown); -#line 1327 "ViewCollection.c" -} - - -static void -view_collection_real_notify_items_hidden (ViewCollection* self, - GeeCollection* hidden) -{ -#line 183 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (hidden)); -#line 184 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_ITEMS_HIDDEN_SIGNAL], 0, hidden); -#line 1339 "ViewCollection.c" -} - - -void -view_collection_notify_items_hidden (ViewCollection* self, - GeeCollection* hidden) -{ -#line 183 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 183 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - VIEW_COLLECTION_GET_CLASS (self)->notify_items_hidden (self, hidden); -#line 1351 "ViewCollection.c" -} - - -static void -view_collection_real_notify_items_visibility_changed (ViewCollection* self, - GeeCollection* changed) -{ -#line 187 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (changed)); -#line 188 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_ITEMS_VISIBILITY_CHANGED_SIGNAL], 0, changed); -#line 1363 "ViewCollection.c" -} - - -void -view_collection_notify_items_visibility_changed (ViewCollection* self, - GeeCollection* changed) -{ -#line 187 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 187 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - VIEW_COLLECTION_GET_CLASS (self)->notify_items_visibility_changed (self, changed); -#line 1375 "ViewCollection.c" -} - - -static void -view_collection_real_notify_view_filter_installed (ViewCollection* self, - ViewFilter* filter) -{ -#line 191 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_FILTER (filter)); -#line 192 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_VIEW_FILTER_INSTALLED_SIGNAL], 0, filter); -#line 1387 "ViewCollection.c" -} - - -void -view_collection_notify_view_filter_installed (ViewCollection* self, - ViewFilter* filter) -{ -#line 191 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 191 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - VIEW_COLLECTION_GET_CLASS (self)->notify_view_filter_installed (self, filter); -#line 1399 "ViewCollection.c" -} - - -static void -view_collection_real_notify_view_filter_removed (ViewCollection* self, - ViewFilter* filter) -{ -#line 195 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_FILTER (filter)); -#line 196 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_emit (self, view_collection_signals[VIEW_COLLECTION_VIEW_FILTER_REMOVED_SIGNAL], 0, filter); -#line 1411 "ViewCollection.c" -} - - -void -view_collection_notify_view_filter_removed (ViewCollection* self, - ViewFilter* filter) -{ -#line 195 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 195 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - VIEW_COLLECTION_GET_CLASS (self)->notify_view_filter_removed (self, filter); -#line 1423 "ViewCollection.c" -} - - -static void -view_collection_real_clear (DataCollection* base) -{ - ViewCollection * self; - gboolean _tmp0_ = FALSE; - GeeHashMultiMap* _tmp1_; - gint _tmp2_; - gint _tmp3_; -#line 199 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection); -#line 202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = self->priv->monitors; -#line 202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = gee_multi_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_MULTI_MAP, GeeMultiMap)); -#line 202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = _tmp2_; -#line 202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp3_ > 0) { -#line 202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = TRUE; -#line 1447 "ViewCollection.c" - } else { - ViewCollection* _tmp4_; -#line 202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = self->priv->mirroring; -#line 202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = _tmp4_ != NULL; -#line 1454 "ViewCollection.c" - } -#line 202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp0_) { -#line 1458 "ViewCollection.c" - gchar* _tmp5_; - gchar* _tmp6_; -#line 203 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = data_collection_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 203 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = _tmp5_; -#line 203 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_warning ("ViewCollection.vala:203: Cannot clear %s: monitoring or mirroring in e" \ -"ffect", _tmp6_); -#line 203 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_free0 (_tmp6_); -#line 205 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return; -#line 1471 "ViewCollection.c" - } -#line 208 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - DATA_COLLECTION_CLASS (view_collection_parent_class)->clear (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 1475 "ViewCollection.c" -} - - -static void -_view_collection_on_view_filter_refresh_view_filter_refresh (ViewFilter* _sender, - gpointer self) -{ -#line 215 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_on_view_filter_refresh ((ViewCollection*) self); -#line 1485 "ViewCollection.c" -} - - -static void -view_collection_real_close (DataCollection* base) -{ - ViewCollection * self; - GeeSet* _tmp7_; -#line 211 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection); -#line 212 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_halt_all_monitoring (self); -#line 213 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_halt_mirroring (self); -#line 1500 "ViewCollection.c" - { - GeeIterator* _f_it = NULL; - GeeSet* _tmp0_; - GeeIterator* _tmp1_; -#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->filters; -#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _f_it = _tmp1_; -#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 1513 "ViewCollection.c" - GeeIterator* _tmp2_; - ViewFilter* f = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - ViewFilter* _tmp5_; - guint _tmp6_; -#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _f_it; -#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 1526 "ViewCollection.c" - } -#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = _f_it; -#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - f = (ViewFilter*) _tmp4_; -#line 215 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = f; -#line 215 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_parse_name ("refresh", TYPE_VIEW_FILTER, &_tmp6_, NULL, FALSE); -#line 215 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_handlers_disconnect_matched (_tmp5_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _view_collection_on_view_filter_refresh_view_filter_refresh, self); -#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_filter_unref0 (f); -#line 1542 "ViewCollection.c" - } -#line 214 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_f_it); -#line 1546 "ViewCollection.c" - } -#line 216 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = self->priv->filters; -#line 216 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 218 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - DATA_COLLECTION_CLASS (view_collection_parent_class)->close (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 1554 "ViewCollection.c" -} - - -ViewCollectionMonitor* -view_collection_monitor_source_collection (ViewCollection* self, - SourceCollection* sources, - ViewManager* manager, - Alteration* prereq, - GeeCollection* initial, - ProgressMonitor progress_monitor, - void* progress_monitor_target) -{ - ViewCollectionMonitor* result = NULL; - ViewCollectionMonitorImpl* monitor = NULL; - ViewCollectionMonitorImpl* _tmp0_; - GeeHashMultiMap* _tmp1_; - ViewCollectionMonitorImpl* _tmp2_; - gboolean _tmp3_ = FALSE; -#line 221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL); -#line 221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_SOURCE_COLLECTION (sources), NULL); -#line 221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_MANAGER (manager), NULL); -#line 221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail ((prereq == NULL) || IS_ALTERATION (prereq), NULL); -#line 221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail ((initial == NULL) || GEE_IS_COLLECTION (initial), NULL); -#line 225 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_halt_mirroring (self); -#line 227 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_collection_freeze_notifications (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 230 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = view_collection_monitor_impl_new (self, sources, manager, prereq); -#line 230 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - monitor = _tmp0_; -#line 231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = self->priv->monitors; -#line 231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = monitor; -#line 231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_multi_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_MULTI_MAP, GeeMultiMap), sources, _tmp2_); -#line 233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (initial != NULL) { -#line 1599 "ViewCollection.c" - gint _tmp4_; - gint _tmp5_; -#line 233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = gee_collection_get_size (initial); -#line 233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = _tmp4_; -#line 233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = _tmp5_ > 0; -#line 1608 "ViewCollection.c" - } else { -#line 233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = FALSE; -#line 1612 "ViewCollection.c" - } -#line 233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp3_) { -#line 1616 "ViewCollection.c" - GeeArrayList* created_views = NULL; - GeeArrayList* _tmp6_; - GeeArrayList* _tmp15_; - GeeCollection* _tmp16_; - GeeCollection* _tmp17_; -#line 235 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 235 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - created_views = _tmp6_; -#line 1626 "ViewCollection.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp7_; -#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (initial, GEE_TYPE_ITERABLE, GeeIterable)); -#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _source_it = _tmp7_; -#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 1636 "ViewCollection.c" - GeeIterator* _tmp8_; - DataSource* source = NULL; - GeeIterator* _tmp9_; - gpointer _tmp10_; - GeeArrayList* _tmp11_; - DataSource* _tmp12_; - DataView* _tmp13_; - DataView* _tmp14_; -#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = _source_it; -#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp8_)) { -#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 1651 "ViewCollection.c" - } -#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = _source_it; -#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = gee_iterator_get (_tmp9_); -#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - source = (DataSource*) _tmp10_; -#line 237 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = created_views; -#line 237 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = source; -#line 237 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = view_manager_create_view (manager, _tmp12_); -#line 237 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp14_ = _tmp13_; -#line 237 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_); -#line 237 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp14_); -#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (source); -#line 1673 "ViewCollection.c" - } -#line 236 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_source_it); -#line 1677 "ViewCollection.c" - } -#line 239 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp15_ = created_views; -#line 239 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp16_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection), progress_monitor, progress_monitor_target); -#line 239 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp17_ = _tmp16_; -#line 239 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp17_); -#line 233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (created_views); -#line 1689 "ViewCollection.c" - } else { - GeeCollection* _tmp18_; - GeeIterable* _tmp19_; -#line 242 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp18_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_DATA_COLLECTION, DataCollection)); -#line 242 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ITERABLE, GeeIterable); -#line 242 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_add_sources (self, sources, _tmp19_, progress_monitor, progress_monitor_target); -#line 242 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp19_); -#line 1701 "ViewCollection.c" - } -#line 245 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_collection_thaw_notifications (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 247 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (monitor, VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor); -#line 247 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 1709 "ViewCollection.c" -} - - -static gpointer -_view_collection_monitor_ref0 (gpointer self) -{ -#line 251 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return self ? view_collection_monitor_ref (self) : NULL; -#line 1718 "ViewCollection.c" -} - - -void -view_collection_halt_monitoring (ViewCollection* self, - ViewCollectionMonitor* m) -{ - ViewCollectionMonitorImpl* monitor = NULL; - ViewCollectionMonitorImpl* _tmp0_; - gboolean removed = FALSE; - GeeHashMultiMap* _tmp1_; - SourceCollection* _tmp2_; -#line 250 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 250 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (VIEW_COLLECTION_IS_MONITOR (m)); -#line 251 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = _view_collection_monitor_ref0 (G_TYPE_CHECK_INSTANCE_CAST (m, VIEW_COLLECTION_TYPE_MONITOR_IMPL, ViewCollectionMonitorImpl)); -#line 251 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - monitor = _tmp0_; -#line 253 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = self->priv->monitors; -#line 253 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = monitor->sources; -#line 253 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - removed = gee_multi_map_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_MULTI_MAP, GeeMultiMap), _tmp2_, monitor); -#line 254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (removed, "removed"); -#line 250 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_collection_monitor_unref0 (monitor); -#line 1749 "ViewCollection.c" -} - - -void -view_collection_halt_all_monitoring (ViewCollection* self) -{ - GeeHashMultiMap* _tmp0_; -#line 257 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 258 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->monitors; -#line 258 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_multi_map_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MULTI_MAP, GeeMultiMap)); -#line 1763 "ViewCollection.c" -} - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 267 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return self ? data_collection_ref (self) : NULL; -#line 1772 "ViewCollection.c" -} - - -static void -_view_collection_on_mirror_contents_added_data_collection_items_added (DataCollection* _sender, - GeeIterable* added, - gpointer self) -{ -#line 275 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_on_mirror_contents_added ((ViewCollection*) self, added); -#line 1783 "ViewCollection.c" -} - - -static void -_view_collection_on_mirror_contents_removed_data_collection_items_removed (DataCollection* _sender, - GeeIterable* removed, - gpointer self) -{ -#line 276 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_on_mirror_contents_removed ((ViewCollection*) self, removed); -#line 1794 "ViewCollection.c" -} - - -void -view_collection_mirror (ViewCollection* self, - ViewCollection* to_mirror, - CreateView mirroring_ctor, - void* mirroring_ctor_target, - CreateViewPredicate should_mirror, - void* should_mirror_target) -{ - ViewCollection* _tmp0_; - void* _tmp1_; - Comparator _tmp2_; - void* _tmp3_; - ComparatorPredicate _tmp4_; - ViewCollection* _tmp5_; - GeeCollection* _tmp6_; - GeeCollection* _tmp7_; - ViewCollection* _tmp8_; - ViewCollection* _tmp9_; -#line 261 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 261 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (to_mirror)); -#line 263 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_halt_mirroring (self); -#line 264 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_halt_all_monitoring (self); -#line 265 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 267 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = _data_collection_ref0 (to_mirror); -#line 267 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _data_collection_unref0 (self->priv->mirroring); -#line 267 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->mirroring = _tmp0_; -#line 268 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->mirroring_ctor = mirroring_ctor; -#line 268 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->mirroring_ctor_target = mirroring_ctor_target; -#line 269 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->should_mirror = should_mirror; -#line 269 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->should_mirror_target = should_mirror_target; -#line 270 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = data_collection_get_comparator (G_TYPE_CHECK_INSTANCE_CAST (to_mirror, TYPE_DATA_COLLECTION, DataCollection), &_tmp1_); -#line 270 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = data_collection_get_comparator_predicate (G_TYPE_CHECK_INSTANCE_CAST (to_mirror, TYPE_DATA_COLLECTION, DataCollection), &_tmp3_); -#line 270 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_collection_set_comparator (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp2_, _tmp1_, _tmp4_, _tmp3_); -#line 273 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = self->priv->mirroring; -#line 273 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection)); -#line 273 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = _tmp6_; -#line 273 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_on_mirror_contents_added (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 273 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp7_); -#line 275 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = self->priv->mirroring; -#line 275 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), "items-added", (GCallback) _view_collection_on_mirror_contents_added_data_collection_items_added, self); -#line 276 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = self->priv->mirroring; -#line 276 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_COLLECTION, DataCollection), "items-removed", (GCallback) _view_collection_on_mirror_contents_removed_data_collection_items_removed, self); -#line 1864 "ViewCollection.c" -} - - -void -view_collection_halt_mirroring (ViewCollection* self) -{ - ViewCollection* _tmp0_; -#line 279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 280 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->mirroring; -#line 280 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp0_ != NULL) { -#line 1878 "ViewCollection.c" - ViewCollection* _tmp1_; - guint _tmp2_; - ViewCollection* _tmp3_; - guint _tmp4_; -#line 281 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = self->priv->mirroring; -#line 281 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_parse_name ("items-added", TYPE_DATA_COLLECTION, &_tmp2_, NULL, FALSE); -#line 281 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _view_collection_on_mirror_contents_added_data_collection_items_added, self); -#line 282 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = self->priv->mirroring; -#line 282 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_parse_name ("items-removed", TYPE_DATA_COLLECTION, &_tmp4_, NULL, FALSE); -#line 282 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _view_collection_on_mirror_contents_removed_data_collection_items_removed, self); -#line 1895 "ViewCollection.c" - } -#line 285 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _data_collection_unref0 (self->priv->mirroring); -#line 285 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->mirroring = NULL; -#line 1901 "ViewCollection.c" -} - - -void -view_collection_copy_into (ViewCollection* self, - ViewCollection* to_copy, - CreateView copying_ctor, - void* copying_ctor_target, - CreateViewPredicate should_copy, - void* should_copy_target) -{ - GeeArrayList* copy_view = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* _tmp20_; - GeeCollection* _tmp21_; - GeeCollection* _tmp22_; -#line 288 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 288 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (to_copy)); -#line 291 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_array_list_new (TYPE_DATA_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 291 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - copy_view = _tmp0_; -#line 1926 "ViewCollection.c" - { - GeeIterator* _object_it = NULL; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (to_copy, TYPE_DATA_COLLECTION, DataCollection)); -#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _tmp1_; -#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = _tmp3_; -#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp2_); -#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _object_it = _tmp4_; -#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 1947 "ViewCollection.c" - GeeIterator* _tmp5_; - DataObject* object = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - DataView* view = NULL; - DataObject* _tmp8_; - DataView* _tmp9_; - DataView* _tmp10_; - DataSource* _tmp11_; - DataSource* _tmp12_; - gboolean _tmp13_; -#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = _object_it; -#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 1965 "ViewCollection.c" - } -#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = _object_it; -#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - object = (DataObject*) _tmp7_; -#line 293 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = object; -#line 293 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_VIEW, DataView)); -#line 293 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = _tmp9_; -#line 294 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = view; -#line 294 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = data_view_get_source (_tmp10_); -#line 294 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = _tmp11_; -#line 294 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = should_copy (_tmp12_, should_copy_target); -#line 294 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp12_); -#line 294 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp13_) { -#line 1991 "ViewCollection.c" - GeeArrayList* _tmp14_; - DataView* _tmp15_; - DataSource* _tmp16_; - DataSource* _tmp17_; - DataView* _tmp18_; - DataView* _tmp19_; -#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp14_ = copy_view; -#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp15_ = view; -#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp16_ = data_view_get_source (_tmp15_); -#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp17_ = _tmp16_; -#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp18_ = copying_ctor (_tmp17_, copying_ctor_target); -#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp19_ = _tmp18_; -#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_DATA_OBJECT, DataObject)); -#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp19_); -#line 295 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp17_); -#line 2016 "ViewCollection.c" - } -#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (object); -#line 2022 "ViewCollection.c" - } -#line 292 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_object_it); -#line 2026 "ViewCollection.c" - } -#line 298 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp20_ = copy_view; -#line 298 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp21_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL); -#line 298 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp22_ = _tmp21_; -#line 298 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp22_); -#line 288 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (copy_view); -#line 2038 "ViewCollection.c" -} - - -gboolean -view_collection_is_view_filter_installed (ViewCollection* self, - ViewFilter* f) -{ - gboolean result = FALSE; - GeeSet* _tmp0_; -#line 301 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE); -#line 301 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_FILTER (f), FALSE); -#line 302 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->filters; -#line 302 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), f); -#line 302 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 2058 "ViewCollection.c" -} - - -void -view_collection_install_view_filter (ViewCollection* self, - ViewFilter* f) -{ - GeeSet* _tmp0_; -#line 305 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 305 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_FILTER (f)); -#line 306 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (view_collection_is_view_filter_installed (self, f)) { -#line 307 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return; -#line 2075 "ViewCollection.c" - } -#line 309 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->filters; -#line 309 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), f); -#line 310 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_connect (f, "refresh", (GCallback) _view_collection_on_view_filter_refresh_view_filter_refresh, self); -#line 313 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_on_view_filter_refresh (self); -#line 316 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_view_filter_installed (self, f); -#line 2087 "ViewCollection.c" -} - - -void -view_collection_remove_view_filter (ViewCollection* self, - ViewFilter* f) -{ - GeeSet* _tmp0_; - guint _tmp1_; -#line 319 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 319 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_FILTER (f)); -#line 320 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!view_collection_is_view_filter_installed (self, f)) { -#line 321 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return; -#line 2105 "ViewCollection.c" - } -#line 323 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->filters; -#line 323 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), f); -#line 324 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_parse_name ("refresh", TYPE_VIEW_FILTER, &_tmp1_, NULL, FALSE); -#line 324 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_handlers_disconnect_matched (f, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _view_collection_on_view_filter_refresh_view_filter_refresh, self); -#line 327 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_on_view_filter_refresh (self); -#line 330 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_view_filter_removed (self, f); -#line 2119 "ViewCollection.c" -} - - -static void -view_collection_on_view_filter_refresh (ViewCollection* self) -{ - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; -#line 333 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 334 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = DATA_COLLECTION_CLASS (view_collection_parent_class)->get_all (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 334 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 334 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_filter_altered_items (self, _tmp1_); -#line 334 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp1_); -#line 2138 "ViewCollection.c" -} - - -static gboolean -view_collection_is_in_filter (ViewCollection* self, - DataView* view) -{ - gboolean result = FALSE; -#line 338 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE); -#line 338 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_VIEW (view), FALSE); -#line 2151 "ViewCollection.c" - { - GeeIterator* _f_it = NULL; - GeeSet* _tmp0_; - GeeIterator* _tmp1_; -#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->filters; -#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _f_it = _tmp1_; -#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 2164 "ViewCollection.c" - GeeIterator* _tmp2_; - ViewFilter* f = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - ViewFilter* _tmp5_; -#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _f_it; -#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 2176 "ViewCollection.c" - } -#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = _f_it; -#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - f = (ViewFilter*) _tmp4_; -#line 340 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = f; -#line 340 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!view_filter_predicate (_tmp5_, view)) { -#line 341 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = FALSE; -#line 341 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_filter_unref0 (f); -#line 341 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_f_it); -#line 341 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 2196 "ViewCollection.c" - } -#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_filter_unref0 (f); -#line 2200 "ViewCollection.c" - } -#line 339 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_f_it); -#line 2204 "ViewCollection.c" - } -#line 343 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = TRUE; -#line 343 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 2210 "ViewCollection.c" -} - - -static gboolean -view_collection_real_valid_type (DataCollection* base, - DataObject* object) -{ - ViewCollection * self; - gboolean result = FALSE; -#line 346 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection); -#line 346 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 347 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = G_TYPE_CHECK_INSTANCE_TYPE (object, TYPE_DATA_VIEW); -#line 347 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 2228 "ViewCollection.c" -} - - -static void -view_collection_on_sources_added (ViewCollection* self, - DataCollection* sources, - GeeIterable* added) -{ -#line 350 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 350 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (sources)); -#line 350 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_ITERABLE (added)); -#line 351 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_add_sources (self, G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_SOURCE_COLLECTION, SourceCollection), added, NULL, NULL); -#line 2245 "ViewCollection.c" -} - - -static DataView* -_view_manager_create_view_create_view (DataSource* source, - gpointer self) -{ - DataView* result; - result = view_manager_create_view ((ViewManager*) self, source); -#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 2257 "ViewCollection.c" -} - - -static void -view_collection_add_sources (ViewCollection* self, - SourceCollection* sources, - GeeIterable* added, - ProgressMonitor progress_monitor, - void* progress_monitor_target) -{ - DataView* created_view = NULL; - GeeArrayList* created_views = NULL; - DataView* _tmp32_; -#line 354 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 354 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_SOURCE_COLLECTION (sources)); -#line 354 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_ITERABLE (added)); -#line 358 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - created_view = NULL; -#line 359 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - created_views = NULL; -#line 2281 "ViewCollection.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_iterable_iterator (added); -#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _source_it = _tmp0_; -#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 2291 "ViewCollection.c" - GeeIterator* _tmp1_; - DataSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - CreateView factory = NULL; - void* factory_target; - GDestroyNotify factory_target_destroy_notify; - CreateView _tmp17_; - void* _tmp17__target; -#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = _source_it; -#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 2307 "ViewCollection.c" - } -#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _source_it; -#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - source = (DataSource*) _tmp3_; -#line 361 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - factory = NULL; -#line 361 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - factory_target = NULL; -#line 361 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - factory_target_destroy_notify = NULL; -#line 2321 "ViewCollection.c" - { - GeeIterator* _monitor_it = NULL; - GeeHashMultiMap* _tmp4_; - GeeCollection* _tmp5_; - GeeCollection* _tmp6_; - GeeIterator* _tmp7_; - GeeIterator* _tmp8_; -#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = self->priv->monitors; -#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = gee_multi_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_MULTI_MAP, GeeMultiMap), sources); -#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = _tmp5_; -#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = _tmp7_; -#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp6_); -#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _monitor_it = _tmp8_; -#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 2345 "ViewCollection.c" - GeeIterator* _tmp9_; - ViewCollectionMonitorImpl* monitor = NULL; - GeeIterator* _tmp10_; - gpointer _tmp11_; - ViewCollectionMonitorImpl* _tmp12_; - ViewManager* _tmp13_; - DataSource* _tmp14_; -#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = _monitor_it; -#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp9_)) { -#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 2359 "ViewCollection.c" - } -#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = _monitor_it; -#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = gee_iterator_get (_tmp10_); -#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - monitor = (ViewCollectionMonitorImpl*) _tmp11_; -#line 363 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = monitor; -#line 363 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = _tmp12_->manager; -#line 363 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp14_ = source; -#line 363 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (view_manager_include_in_view (_tmp13_, _tmp14_)) { -#line 2375 "ViewCollection.c" - ViewCollectionMonitorImpl* _tmp15_; - ViewManager* _tmp16_; -#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp15_ = monitor; -#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp16_ = _tmp15_->manager; -#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - (factory_target_destroy_notify == NULL) ? NULL : (factory_target_destroy_notify (factory_target), NULL); -#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - factory = NULL; -#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - factory_target = NULL; -#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - factory_target_destroy_notify = NULL; -#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - factory = _view_manager_create_view_create_view; -#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - factory_target = view_manager_ref (_tmp16_); -#line 364 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - factory_target_destroy_notify = view_manager_unref; -#line 366 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_collection_monitor_unref0 (monitor); -#line 366 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 2400 "ViewCollection.c" - } -#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_collection_monitor_unref0 (monitor); -#line 2404 "ViewCollection.c" - } -#line 362 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_monitor_it); -#line 2408 "ViewCollection.c" - } -#line 370 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp17_ = factory; -#line 370 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp17__target = factory_target; -#line 370 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp17_ != NULL) { -#line 2416 "ViewCollection.c" - DataView* new_view = NULL; - CreateView _tmp18_; - void* _tmp18__target; - DataSource* _tmp19_; - DataView* _tmp20_; - GeeArrayList* _tmp21_; -#line 371 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp18_ = factory; -#line 371 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp18__target = factory_target; -#line 371 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp19_ = source; -#line 371 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp20_ = _tmp18_ (_tmp19_, _tmp18__target); -#line 371 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - new_view = _tmp20_; -#line 375 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp21_ = created_views; -#line 375 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp21_ != NULL) { -#line 2437 "ViewCollection.c" - GeeArrayList* _tmp22_; - DataView* _tmp23_; -#line 376 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp22_ = created_views; -#line 376 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp23_ = new_view; -#line 376 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp23_); -#line 2446 "ViewCollection.c" - } else { - DataView* _tmp24_; -#line 377 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp24_ = created_view; -#line 377 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp24_ == NULL) { -#line 2453 "ViewCollection.c" - DataView* _tmp25_; - DataView* _tmp26_; -#line 378 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp25_ = new_view; -#line 378 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp26_ = _g_object_ref0 (_tmp25_); -#line 378 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (created_view); -#line 378 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - created_view = _tmp26_; -#line 2464 "ViewCollection.c" - } else { - GeeArrayList* _tmp27_; - GeeArrayList* _tmp28_; - DataView* _tmp29_; - GeeArrayList* _tmp30_; - DataView* _tmp31_; -#line 380 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp27_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 380 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (created_views); -#line 380 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - created_views = _tmp27_; -#line 381 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp28_ = created_views; -#line 381 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp29_ = created_view; -#line 381 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp29_); -#line 382 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (created_view); -#line 382 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - created_view = NULL; -#line 383 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp30_ = created_views; -#line 383 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp31_ = new_view; -#line 383 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp31_); -#line 2493 "ViewCollection.c" - } - } -#line 370 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (new_view); -#line 2498 "ViewCollection.c" - } -#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - (factory_target_destroy_notify == NULL) ? NULL : (factory_target_destroy_notify (factory_target), NULL); -#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - factory = NULL; -#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - factory_target = NULL; -#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - factory_target_destroy_notify = NULL; -#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (source); -#line 2510 "ViewCollection.c" - } -#line 360 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_source_it); -#line 2514 "ViewCollection.c" - } -#line 388 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp32_ = created_view; -#line 388 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp32_ != NULL) { -#line 2520 "ViewCollection.c" - DataView* _tmp33_; -#line 389 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp33_ = created_view; -#line 389 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_DATA_OBJECT, DataObject)); -#line 2526 "ViewCollection.c" - } else { - gboolean _tmp34_ = FALSE; - GeeArrayList* _tmp35_; -#line 390 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp35_ = created_views; -#line 390 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp35_ != NULL) { -#line 2534 "ViewCollection.c" - GeeArrayList* _tmp36_; - gint _tmp37_; - gint _tmp38_; -#line 390 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp36_ = created_views; -#line 390 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp37_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 390 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp38_ = _tmp37_; -#line 390 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp34_ = _tmp38_ > 0; -#line 2546 "ViewCollection.c" - } else { -#line 390 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp34_ = FALSE; -#line 2550 "ViewCollection.c" - } -#line 390 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp34_) { -#line 2554 "ViewCollection.c" - GeeArrayList* _tmp39_; - GeeCollection* _tmp40_; - GeeCollection* _tmp41_; -#line 391 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp39_ = created_views; -#line 391 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp40_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, GEE_TYPE_COLLECTION, GeeCollection), progress_monitor, progress_monitor_target); -#line 391 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp41_ = _tmp40_; -#line 391 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp41_); -#line 2566 "ViewCollection.c" - } - } -#line 354 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (created_views); -#line 354 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (created_view); -#line 2573 "ViewCollection.c" -} - - -static gboolean -view_collection_real_add (DataCollection* base, - DataObject* object) -{ - ViewCollection * self; - gboolean result = FALSE; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; -#line 394 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection); -#line 394 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 395 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_view_internal_set_visible (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView), TRUE); -#line 397 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!DATA_COLLECTION_CLASS (view_collection_parent_class)->add (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), object)) { -#line 398 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = FALSE; -#line 398 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 2597 "ViewCollection.c" - } -#line 400 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = data_collection_get_singleton (object); -#line 400 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 400 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_filter_altered_items (self, _tmp1_); -#line 400 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp1_); -#line 402 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = TRUE; -#line 402 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 2611 "ViewCollection.c" -} - - -static GeeCollection* -view_collection_real_add_many (DataCollection* base, - GeeCollection* objects, - ProgressMonitor monitor, - void* monitor_target) -{ - ViewCollection * self; - GeeCollection* result = NULL; - GeeCollection* return_list = NULL; - GeeCollection* _tmp5_; -#line 405 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection); -#line 405 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (objects), NULL); -#line 2629 "ViewCollection.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (objects, GEE_TYPE_ITERABLE, GeeIterable)); -#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _object_it = _tmp0_; -#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 2639 "ViewCollection.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataObject* _tmp4_; -#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = _object_it; -#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 2651 "ViewCollection.c" - } -#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _object_it; -#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - object = (DataObject*) _tmp3_; -#line 408 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = object; -#line 408 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_view_internal_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_VIEW, DataView), TRUE); -#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (object); -#line 2665 "ViewCollection.c" - } -#line 407 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_object_it); -#line 2669 "ViewCollection.c" - } -#line 410 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = DATA_COLLECTION_CLASS (view_collection_parent_class)->add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), objects, monitor, monitor_target); -#line 410 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return_list = _tmp5_; -#line 412 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_filter_altered_items (self, G_TYPE_CHECK_INSTANCE_CAST (return_list, GEE_TYPE_COLLECTION, GeeCollection)); -#line 414 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = return_list; -#line 414 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 2681 "ViewCollection.c" -} - - -static void -view_collection_on_sources_removed (ViewCollection* self, - GeeIterable* removed) -{ - Marker* marker = NULL; - gboolean _tmp12_ = FALSE; - Marker* _tmp13_; -#line 417 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 417 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_ITERABLE (removed)); -#line 419 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - marker = NULL; -#line 2698 "ViewCollection.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_iterable_iterator (removed); -#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _source_it = _tmp0_; -#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 2708 "ViewCollection.c" - GeeIterator* _tmp1_; - DataSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataView* view = NULL; - GeeHashMap* _tmp4_; - DataSource* _tmp5_; - gpointer _tmp6_; - DataView* _tmp7_; -#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = _source_it; -#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 2724 "ViewCollection.c" - } -#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _source_it; -#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - source = (DataSource*) _tmp3_; -#line 421 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = self->priv->source_map; -#line 421 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = source; -#line 421 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_); -#line 421 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = (DataView*) _tmp6_; -#line 424 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = view; -#line 424 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp7_ != NULL) { -#line 2744 "ViewCollection.c" - Marker* _tmp8_; - Marker* _tmp10_; - DataView* _tmp11_; -#line 425 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = marker; -#line 425 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp8_ == NULL) { -#line 2752 "ViewCollection.c" - Marker* _tmp9_; -#line 426 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 426 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (marker); -#line 426 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - marker = _tmp9_; -#line 2760 "ViewCollection.c" - } -#line 428 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = marker; -#line 428 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = view; -#line 428 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - marker_mark (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject)); -#line 2768 "ViewCollection.c" - } -#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (source); -#line 2774 "ViewCollection.c" - } -#line 420 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_source_it); -#line 2778 "ViewCollection.c" - } -#line 432 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = marker; -#line 432 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp13_ != NULL) { -#line 2784 "ViewCollection.c" - Marker* _tmp14_; -#line 432 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp14_ = marker; -#line 432 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = marker_get_count (_tmp14_) != 0; -#line 2790 "ViewCollection.c" - } else { -#line 432 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = FALSE; -#line 2794 "ViewCollection.c" - } -#line 432 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp12_) { -#line 2798 "ViewCollection.c" - Marker* _tmp15_; -#line 433 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp15_ = marker; -#line 433 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp15_); -#line 2804 "ViewCollection.c" - } -#line 417 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (marker); -#line 2808 "ViewCollection.c" -} - - -static void -view_collection_on_sources_altered (ViewCollection* self, - DataCollection* collection, - GeeMap* items) -{ - GeeArrayList* to_add = NULL; - GeeArrayList* to_remove = NULL; - gboolean ordering_changed = FALSE; - GeeArrayList* _tmp69_; - GeeArrayList* _tmp73_; - gboolean _tmp77_; -#line 436 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 436 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_DATA_COLLECTION (collection)); -#line 436 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_MAP (items)); -#line 439 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - to_add = NULL; -#line 440 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - to_remove = NULL; -#line 441 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ordering_changed = FALSE; -#line 2835 "ViewCollection.c" - { - GeeIterator* _object_it = NULL; - GeeSet* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_map_get_keys (items); -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = _tmp0_; -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _tmp1_; -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = _tmp3_; -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp2_); -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _object_it = _tmp4_; -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 2859 "ViewCollection.c" - GeeIterator* _tmp5_; - DataObject* object = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - Alteration* alteration = NULL; - DataObject* _tmp8_; - gpointer _tmp9_; - DataSource* source = NULL; - DataObject* _tmp10_; - DataSource* _tmp11_; - ViewCollectionMonitorImpl* monitor = NULL; - gboolean ignored = FALSE; - gboolean _tmp31_; - gboolean _tmp33_ = FALSE; - ViewCollectionMonitorImpl* _tmp34_; -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = _object_it; -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 2881 "ViewCollection.c" - } -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = _object_it; -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - object = (DataObject*) _tmp7_; -#line 443 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = object; -#line 443 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = gee_map_get (items, _tmp8_); -#line 443 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - alteration = (Alteration*) _tmp9_; -#line 444 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = object; -#line 444 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_SOURCE, DataSource)); -#line 444 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - source = _tmp11_; -#line 446 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - monitor = NULL; -#line 447 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ignored = TRUE; -#line 2905 "ViewCollection.c" - { - GeeIterator* _monitor_impl_it = NULL; - GeeHashMultiMap* _tmp12_; - GeeCollection* _tmp13_; - GeeCollection* _tmp14_; - GeeIterator* _tmp15_; - GeeIterator* _tmp16_; -#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = self->priv->monitors; -#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = gee_multi_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_MULTI_MAP, GeeMultiMap), G_TYPE_CHECK_INSTANCE_CAST (collection, TYPE_SOURCE_COLLECTION, SourceCollection)); -#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp14_ = _tmp13_; -#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp15_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp16_ = _tmp15_; -#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp14_); -#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _monitor_impl_it = _tmp16_; -#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 2929 "ViewCollection.c" - GeeIterator* _tmp17_; - ViewCollectionMonitorImpl* monitor_impl = NULL; - GeeIterator* _tmp18_; - gpointer _tmp19_; - gboolean _tmp20_ = FALSE; - ViewCollectionMonitorImpl* _tmp21_; - Alteration* _tmp22_; - ViewCollectionMonitorImpl* _tmp26_; - ViewManager* _tmp27_; - DataSource* _tmp28_; -#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp17_ = _monitor_impl_it; -#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp17_)) { -#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 2946 "ViewCollection.c" - } -#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp18_ = _monitor_impl_it; -#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp19_ = gee_iterator_get (_tmp18_); -#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - monitor_impl = (ViewCollectionMonitorImpl*) _tmp19_; -#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp21_ = monitor_impl; -#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp22_ = _tmp21_->prereq; -#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp22_ != NULL) { -#line 2960 "ViewCollection.c" - Alteration* _tmp23_; - ViewCollectionMonitorImpl* _tmp24_; - Alteration* _tmp25_; -#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp23_ = alteration; -#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp24_ = monitor_impl; -#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp25_ = _tmp24_->prereq; -#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp20_ = !alteration_contains_any (_tmp23_, _tmp25_); -#line 2972 "ViewCollection.c" - } else { -#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp20_ = FALSE; -#line 2976 "ViewCollection.c" - } -#line 449 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp20_) { -#line 450 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_collection_monitor_unref0 (monitor_impl); -#line 450 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - continue; -#line 2984 "ViewCollection.c" - } -#line 452 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ignored = FALSE; -#line 454 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp26_ = monitor_impl; -#line 454 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp27_ = _tmp26_->manager; -#line 454 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp28_ = source; -#line 454 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (view_manager_include_in_view (_tmp27_, _tmp28_)) { -#line 2996 "ViewCollection.c" - ViewCollectionMonitorImpl* _tmp29_; - ViewCollectionMonitorImpl* _tmp30_; -#line 455 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp29_ = monitor_impl; -#line 455 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp30_ = _view_collection_monitor_ref0 (_tmp29_); -#line 455 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_collection_monitor_unref0 (monitor); -#line 455 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - monitor = _tmp30_; -#line 457 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_collection_monitor_unref0 (monitor_impl); -#line 457 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 3011 "ViewCollection.c" - } -#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_collection_monitor_unref0 (monitor_impl); -#line 3015 "ViewCollection.c" - } -#line 448 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_monitor_impl_it); -#line 3019 "ViewCollection.c" - } -#line 461 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp31_ = ignored; -#line 461 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp31_) { -#line 3025 "ViewCollection.c" - ViewCollectionMonitorImpl* _tmp32_; -#line 462 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp32_ = monitor; -#line 462 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (_tmp32_ == NULL, "monitor == null"); -#line 464 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_collection_monitor_unref0 (monitor); -#line 464 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (source); -#line 464 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _alteration_unref0 (alteration); -#line 464 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (object); -#line 464 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - continue; -#line 3041 "ViewCollection.c" - } -#line 467 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp34_ = monitor; -#line 467 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp34_ != NULL) { -#line 3047 "ViewCollection.c" - DataSource* _tmp35_; -#line 467 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp35_ = source; -#line 467 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp33_ = !view_collection_has_view_for_source (self, _tmp35_); -#line 3053 "ViewCollection.c" - } else { -#line 467 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp33_ = FALSE; -#line 3057 "ViewCollection.c" - } -#line 467 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp33_) { -#line 3061 "ViewCollection.c" - GeeArrayList* _tmp36_; - GeeArrayList* _tmp38_; - ViewCollectionMonitorImpl* _tmp39_; - ViewManager* _tmp40_; - DataSource* _tmp41_; - DataView* _tmp42_; - DataView* _tmp43_; -#line 468 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp36_ = to_add; -#line 468 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp36_ == NULL) { -#line 3073 "ViewCollection.c" - GeeArrayList* _tmp37_; -#line 469 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp37_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 469 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (to_add); -#line 469 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - to_add = _tmp37_; -#line 3081 "ViewCollection.c" - } -#line 471 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp38_ = to_add; -#line 471 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp39_ = monitor; -#line 471 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp40_ = _tmp39_->manager; -#line 471 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp41_ = source; -#line 471 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp42_ = view_manager_create_view (_tmp40_, _tmp41_); -#line 471 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp43_ = _tmp42_; -#line 471 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp43_); -#line 471 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp43_); -#line 3099 "ViewCollection.c" - } else { - gboolean _tmp44_ = FALSE; - ViewCollectionMonitorImpl* _tmp45_; -#line 472 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp45_ = monitor; -#line 472 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp45_ == NULL) { -#line 3107 "ViewCollection.c" - DataSource* _tmp46_; -#line 472 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp46_ = source; -#line 472 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp44_ = view_collection_has_view_for_source (self, _tmp46_); -#line 3113 "ViewCollection.c" - } else { -#line 472 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp44_ = FALSE; -#line 3117 "ViewCollection.c" - } -#line 472 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp44_) { -#line 3121 "ViewCollection.c" - GeeArrayList* _tmp47_; - GeeArrayList* _tmp49_; - DataSource* _tmp50_; - DataView* _tmp51_; - DataView* _tmp52_; -#line 473 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp47_ = to_remove; -#line 473 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp47_ == NULL) { -#line 3131 "ViewCollection.c" - GeeArrayList* _tmp48_; -#line 474 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp48_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 474 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (to_remove); -#line 474 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - to_remove = _tmp48_; -#line 3139 "ViewCollection.c" - } -#line 476 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp49_ = to_remove; -#line 476 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp50_ = source; -#line 476 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp51_ = view_collection_get_view_for_source (self, _tmp50_); -#line 476 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp52_ = _tmp51_; -#line 476 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp52_); -#line 476 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp52_); -#line 3153 "ViewCollection.c" - } else { - gboolean _tmp53_ = FALSE; - ViewCollectionMonitorImpl* _tmp54_; -#line 477 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp54_ = monitor; -#line 477 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp54_ != NULL) { -#line 3161 "ViewCollection.c" - DataSource* _tmp55_; -#line 477 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp55_ = source; -#line 477 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp53_ = view_collection_has_view_for_source (self, _tmp55_); -#line 3167 "ViewCollection.c" - } else { -#line 477 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp53_ = FALSE; -#line 3171 "ViewCollection.c" - } -#line 477 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp53_) { -#line 3175 "ViewCollection.c" - DataView* view = NULL; - DataSource* _tmp56_; - DataView* _tmp57_; - DataSet* _tmp58_; - DataView* _tmp59_; - gboolean _tmp63_ = FALSE; - DataSet* _tmp64_; -#line 478 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp56_ = source; -#line 478 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp57_ = view_collection_get_view_for_source (self, _tmp56_); -#line 478 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = _tmp57_; -#line 480 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp58_ = self->priv->selected; -#line 480 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp59_ = view; -#line 480 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_set_contains (_tmp58_, G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, TYPE_DATA_OBJECT, DataObject))) { -#line 3195 "ViewCollection.c" - DataSet* _tmp60_; - DataView* _tmp61_; - Alteration* _tmp62_; -#line 481 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp60_ = self->priv->selected; -#line 481 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp61_ = view; -#line 481 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp62_ = alteration; -#line 481 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_set_resort_object (_tmp60_, G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_DATA_OBJECT, DataObject), _tmp62_); -#line 3207 "ViewCollection.c" - } -#line 483 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp64_ = self->priv->visible; -#line 483 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp64_ != NULL) { -#line 3213 "ViewCollection.c" - DataView* _tmp65_; -#line 483 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp65_ = view; -#line 483 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp63_ = view_collection_is_visible (self, _tmp65_); -#line 3219 "ViewCollection.c" - } else { -#line 483 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp63_ = FALSE; -#line 3223 "ViewCollection.c" - } -#line 483 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp63_) { -#line 3227 "ViewCollection.c" - DataSet* _tmp66_; - DataView* _tmp67_; - Alteration* _tmp68_; -#line 484 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp66_ = self->priv->visible; -#line 484 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp67_ = view; -#line 484 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp68_ = alteration; -#line 484 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_set_resort_object (_tmp66_, G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, TYPE_DATA_OBJECT, DataObject), _tmp68_)) { -#line 485 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ordering_changed = TRUE; -#line 3241 "ViewCollection.c" - } - } -#line 477 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 3246 "ViewCollection.c" - } - } - } -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_collection_monitor_unref0 (monitor); -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (source); -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _alteration_unref0 (alteration); -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (object); -#line 3258 "ViewCollection.c" - } -#line 442 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_object_it); -#line 3262 "ViewCollection.c" - } -#line 490 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp69_ = to_add; -#line 490 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp69_ != NULL) { -#line 3268 "ViewCollection.c" - GeeArrayList* _tmp70_; - GeeCollection* _tmp71_; - GeeCollection* _tmp72_; -#line 491 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp70_ = to_add; -#line 491 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp71_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL); -#line 491 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp72_ = _tmp71_; -#line 491 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp72_); -#line 3280 "ViewCollection.c" - } -#line 493 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp73_ = to_remove; -#line 493 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp73_ != NULL) { -#line 3286 "ViewCollection.c" - GeeArrayList* _tmp74_; - Marker* _tmp75_; - Marker* _tmp76_; -#line 494 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp74_ = to_remove; -#line 494 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp75_ = data_collection_mark_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 494 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp76_ = _tmp75_; -#line 494 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp76_); -#line 494 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp76_); -#line 3300 "ViewCollection.c" - } -#line 496 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp77_ = ordering_changed; -#line 496 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp77_) { -#line 497 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_collection_notify_ordering_changed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 3308 "ViewCollection.c" - } -#line 436 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (to_remove); -#line 436 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (to_add); -#line 3314 "ViewCollection.c" -} - - -static void -view_collection_on_mirror_contents_added (ViewCollection* self, - GeeIterable* added) -{ - GeeArrayList* to_add = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* _tmp16_; - gint _tmp17_; - gint _tmp18_; -#line 500 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 500 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_ITERABLE (added)); -#line 501 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 501 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - to_add = _tmp0_; -#line 3335 "ViewCollection.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp1_; -#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = gee_iterable_iterator (added); -#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _object_it = _tmp1_; -#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 3345 "ViewCollection.c" - GeeIterator* _tmp2_; - DataObject* object = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - DataSource* source = NULL; - DataObject* _tmp5_; - DataSource* _tmp6_; - gboolean _tmp7_ = FALSE; - CreateViewPredicate _tmp8_; - void* _tmp8__target; -#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _object_it; -#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 3362 "ViewCollection.c" - } -#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = _object_it; -#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - object = (DataObject*) _tmp4_; -#line 503 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = object; -#line 503 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_VIEW, DataView)); -#line 503 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - source = _tmp6_; -#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = self->priv->should_mirror; -#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8__target = self->priv->should_mirror_target; -#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp8_ == NULL) { -#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = TRUE; -#line 3384 "ViewCollection.c" - } else { - CreateViewPredicate _tmp9_; - void* _tmp9__target; - DataSource* _tmp10_; -#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = self->priv->should_mirror; -#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9__target = self->priv->should_mirror_target; -#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = source; -#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = _tmp9_ (_tmp10_, _tmp9__target); -#line 3397 "ViewCollection.c" - } -#line 505 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp7_) { -#line 3401 "ViewCollection.c" - GeeArrayList* _tmp11_; - CreateView _tmp12_; - void* _tmp12__target; - DataSource* _tmp13_; - DataView* _tmp14_; - DataView* _tmp15_; -#line 506 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = to_add; -#line 506 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = self->priv->mirroring_ctor; -#line 506 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12__target = self->priv->mirroring_ctor_target; -#line 506 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = source; -#line 506 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp14_ = _tmp12_ (_tmp13_, _tmp12__target); -#line 506 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp15_ = _tmp14_; -#line 506 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_); -#line 506 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp15_); -#line 3424 "ViewCollection.c" - } -#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (source); -#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (object); -#line 3430 "ViewCollection.c" - } -#line 502 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_object_it); -#line 3434 "ViewCollection.c" - } -#line 509 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp16_ = to_add; -#line 509 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp17_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 509 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp18_ = _tmp17_; -#line 509 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp18_ > 0) { -#line 3444 "ViewCollection.c" - GeeArrayList* _tmp19_; - GeeCollection* _tmp20_; - GeeCollection* _tmp21_; -#line 510 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp19_ = to_add; -#line 510 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp20_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL); -#line 510 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp21_ = _tmp20_; -#line 510 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp21_); -#line 3456 "ViewCollection.c" - } -#line 500 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (to_add); -#line 3460 "ViewCollection.c" -} - - -static void -view_collection_on_mirror_contents_removed (ViewCollection* self, - GeeIterable* removed) -{ - Marker* marker = NULL; - Marker* _tmp0_; - Marker* _tmp15_; -#line 513 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 513 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_ITERABLE (removed)); -#line 514 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 514 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - marker = _tmp0_; -#line 3479 "ViewCollection.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp1_; -#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = gee_iterable_iterator (removed); -#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _object_it = _tmp1_; -#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 3489 "ViewCollection.c" - GeeIterator* _tmp2_; - DataObject* object = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - DataView* view = NULL; - DataObject* _tmp5_; - DataView* _tmp6_; - DataView* our_view = NULL; - DataView* _tmp7_; - DataSource* _tmp8_; - DataSource* _tmp9_; - DataView* _tmp10_; - DataView* _tmp11_; - DataView* _tmp12_; - Marker* _tmp13_; - DataView* _tmp14_; -#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _object_it; -#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 3512 "ViewCollection.c" - } -#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = _object_it; -#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - object = (DataObject*) _tmp4_; -#line 516 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = object; -#line 516 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_VIEW, DataView)); -#line 516 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = _tmp6_; -#line 518 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = view; -#line 518 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = data_view_get_source (_tmp7_); -#line 518 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = _tmp8_; -#line 518 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = view_collection_get_view_for_source (self, _tmp9_); -#line 518 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = _tmp10_; -#line 518 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp9_); -#line 518 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - our_view = _tmp11_; -#line 519 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = our_view; -#line 519 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (_tmp12_ != NULL, "our_view != null"); -#line 521 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = marker; -#line 521 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp14_ = our_view; -#line 521 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - marker_mark (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_OBJECT, DataObject)); -#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (our_view); -#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (object); -#line 3556 "ViewCollection.c" - } -#line 515 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_object_it); -#line 3560 "ViewCollection.c" - } -#line 524 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp15_ = marker; -#line 524 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp15_); -#line 513 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (marker); -#line 3568 "ViewCollection.c" -} - - -static void -view_collection_real_notify_items_added (DataCollection* base, - GeeIterable* added) -{ - ViewCollection * self; - GeeArrayList* added_visible = NULL; - GeeArrayList* added_selected = NULL; - GeeArrayList* _tmp25_; - GeeArrayList* _tmp28_; -#line 528 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection); -#line 528 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_ITERABLE (added)); -#line 529 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - added_visible = NULL; -#line 530 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - added_selected = NULL; -#line 3589 "ViewCollection.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_iterable_iterator (added); -#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _object_it = _tmp0_; -#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 3599 "ViewCollection.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataView* view = NULL; - DataObject* _tmp4_; - DataView* _tmp5_; - GeeHashMap* _tmp6_; - DataView* _tmp7_; - DataSource* _tmp8_; - DataSource* _tmp9_; - DataView* _tmp10_; - gboolean _tmp11_ = FALSE; - DataView* _tmp12_; - gboolean _tmp18_ = FALSE; - DataView* _tmp19_; -#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = _object_it; -#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 3622 "ViewCollection.c" - } -#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _object_it; -#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - object = (DataObject*) _tmp3_; -#line 533 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = object; -#line 533 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_VIEW, DataView)); -#line 533 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = _tmp5_; -#line 534 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = self->priv->source_map; -#line 534 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = view; -#line 534 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = data_view_get_source (_tmp7_); -#line 534 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = _tmp8_; -#line 534 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = view; -#line 534 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, _tmp10_); -#line 534 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp9_); -#line 536 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = view; -#line 536 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_view_is_selected (_tmp12_)) { -#line 3654 "ViewCollection.c" - DataView* _tmp13_; -#line 536 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = view; -#line 536 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = data_view_is_visible (_tmp13_); -#line 3660 "ViewCollection.c" - } else { -#line 536 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = FALSE; -#line 3664 "ViewCollection.c" - } -#line 536 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp11_) { -#line 3668 "ViewCollection.c" - GeeArrayList* _tmp14_; - GeeArrayList* _tmp16_; - DataView* _tmp17_; -#line 537 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp14_ = added_selected; -#line 537 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp14_ == NULL) { -#line 3676 "ViewCollection.c" - GeeArrayList* _tmp15_; -#line 538 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp15_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 538 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (added_selected); -#line 538 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - added_selected = _tmp15_; -#line 3684 "ViewCollection.c" - } -#line 540 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp16_ = added_selected; -#line 540 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp17_ = view; -#line 540 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_); -#line 3692 "ViewCollection.c" - } -#line 544 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp19_ = view; -#line 544 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_view_is_visible (_tmp19_)) { -#line 3698 "ViewCollection.c" - DataSet* _tmp20_; -#line 544 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp20_ = self->priv->visible; -#line 544 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp18_ = _tmp20_ != NULL; -#line 3704 "ViewCollection.c" - } else { -#line 544 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp18_ = FALSE; -#line 3708 "ViewCollection.c" - } -#line 544 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp18_) { -#line 3712 "ViewCollection.c" - GeeArrayList* _tmp21_; - GeeArrayList* _tmp23_; - DataView* _tmp24_; -#line 545 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp21_ = added_visible; -#line 545 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp21_ == NULL) { -#line 3720 "ViewCollection.c" - GeeArrayList* _tmp22_; -#line 546 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp22_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 546 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (added_visible); -#line 546 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - added_visible = _tmp22_; -#line 3728 "ViewCollection.c" - } -#line 548 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp23_ = added_visible; -#line 548 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp24_ = view; -#line 548 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp24_); -#line 3736 "ViewCollection.c" - } -#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (object); -#line 3742 "ViewCollection.c" - } -#line 532 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_object_it); -#line 3746 "ViewCollection.c" - } -#line 552 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp25_ = added_visible; -#line 552 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp25_ != NULL) { -#line 3752 "ViewCollection.c" - gboolean is_added = FALSE; - GeeArrayList* _tmp26_; - gboolean _tmp27_; -#line 553 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp26_ = added_visible; -#line 553 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - is_added = view_collection_add_many_visible (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 554 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp27_ = is_added; -#line 554 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (_tmp27_, "is_added"); -#line 3764 "ViewCollection.c" - } -#line 557 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp28_ = added_selected; -#line 557 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp28_ != NULL) { -#line 3770 "ViewCollection.c" - GeeArrayList* _tmp29_; - GeeArrayList* _tmp30_; -#line 558 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp29_ = added_selected; -#line 558 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_add_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 559 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp30_ = added_selected; -#line 559 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_items_selected_unselected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_COLLECTION, GeeCollection), NULL); -#line 3781 "ViewCollection.c" - } -#line 562 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - DATA_COLLECTION_CLASS (view_collection_parent_class)->notify_items_added (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), added); -#line 528 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (added_selected); -#line 528 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (added_visible); -#line 3789 "ViewCollection.c" -} - - -static void -view_collection_real_notify_items_removed (DataCollection* base, - GeeIterable* removed) -{ - ViewCollection * self; - GeeArrayList* selected_removed = NULL; - GeeArrayList* _tmp33_; -#line 566 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection); -#line 566 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_ITERABLE (removed)); -#line 567 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - selected_removed = NULL; -#line 3806 "ViewCollection.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_iterable_iterator (removed); -#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _object_it = _tmp0_; -#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 3816 "ViewCollection.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataView* view = NULL; - DataObject* _tmp4_; - DataView* _tmp5_; - GeeHashMap* _tmp6_; - DataView* _tmp7_; - DataSource* _tmp8_; - DataSource* _tmp9_; - gboolean _tmp10_; -#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = _object_it; -#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 3835 "ViewCollection.c" - } -#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _object_it; -#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - object = (DataObject*) _tmp3_; -#line 569 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = object; -#line 569 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_VIEW, DataView)); -#line 569 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = _tmp5_; -#line 575 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = self->priv->source_map; -#line 575 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = view; -#line 575 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = data_view_get_source (_tmp7_); -#line 575 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = _tmp8_; -#line 575 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_); -#line 575 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp9_); -#line 575 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp10_) { -#line 3863 "ViewCollection.c" - gboolean is_removed = FALSE; - GeeHashMap* _tmp11_; - DataView* _tmp12_; - DataSource* _tmp13_; - DataSource* _tmp14_; - gboolean _tmp15_; - gboolean _tmp16_; - gboolean _tmp17_; - DataView* _tmp18_; - gboolean _tmp27_ = FALSE; - DataView* _tmp28_; -#line 576 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = self->priv->source_map; -#line 576 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = view; -#line 576 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = data_view_get_source (_tmp12_); -#line 576 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp14_ = _tmp13_; -#line 576 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp15_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp14_, NULL); -#line 576 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp16_ = _tmp15_; -#line 576 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp14_); -#line 576 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - is_removed = _tmp16_; -#line 577 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp17_ = is_removed; -#line 577 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (_tmp17_, "is_removed"); -#line 579 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp18_ = view; -#line 579 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_view_is_selected (_tmp18_)) { -#line 3899 "ViewCollection.c" - DataSet* _tmp19_; - DataView* _tmp20_; - DataView* _tmp21_; - DataView* _tmp22_; -#line 581 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp19_ = self->priv->selected; -#line 581 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp20_ = view; -#line 581 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp21_ = view; -#line 581 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (data_set_contains (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_OBJECT, DataObject)) == data_view_is_visible (_tmp21_), "selected.contains(view) == view.is_visible()"); -#line 583 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp22_ = view; -#line 583 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_view_is_visible (_tmp22_)) { -#line 3916 "ViewCollection.c" - GeeArrayList* _tmp23_; - GeeArrayList* _tmp25_; - DataView* _tmp26_; -#line 584 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp23_ = selected_removed; -#line 584 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp23_ == NULL) { -#line 3924 "ViewCollection.c" - GeeArrayList* _tmp24_; -#line 585 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp24_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 585 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (selected_removed); -#line 585 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - selected_removed = _tmp24_; -#line 3932 "ViewCollection.c" - } -#line 587 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp25_ = selected_removed; -#line 587 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp26_ = view; -#line 587 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp26_); -#line 3940 "ViewCollection.c" - } - } -#line 591 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp28_ = view; -#line 591 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_view_is_visible (_tmp28_)) { -#line 3947 "ViewCollection.c" - DataSet* _tmp29_; -#line 591 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp29_ = self->priv->visible; -#line 591 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp27_ = _tmp29_ != NULL; -#line 3953 "ViewCollection.c" - } else { -#line 591 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp27_ = FALSE; -#line 3957 "ViewCollection.c" - } -#line 591 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp27_) { -#line 3961 "ViewCollection.c" - DataSet* _tmp30_; - DataView* _tmp31_; - gboolean _tmp32_; -#line 592 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp30_ = self->priv->visible; -#line 592 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp31_ = view; -#line 592 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - is_removed = data_set_remove (_tmp30_, G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_DATA_OBJECT, DataObject)); -#line 593 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp32_ = is_removed; -#line 593 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (_tmp32_, "is_removed"); -#line 3975 "ViewCollection.c" - } - } -#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (object); -#line 3982 "ViewCollection.c" - } -#line 568 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_object_it); -#line 3986 "ViewCollection.c" - } -#line 598 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp33_ = selected_removed; -#line 598 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp33_ != NULL) { -#line 3992 "ViewCollection.c" - GeeArrayList* _tmp34_; -#line 599 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp34_ = selected_removed; -#line 599 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_remove_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 604 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_selection_group_altered (self); -#line 4000 "ViewCollection.c" - } -#line 607 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - DATA_COLLECTION_CLASS (view_collection_parent_class)->notify_items_removed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), removed); -#line 566 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (selected_removed); -#line 4006 "ViewCollection.c" -} - - -static void -view_collection_filter_altered_items (ViewCollection* self, - GeeCollection* views) -{ - GeeArrayList* to_show = NULL; - GeeArrayList* to_hide = NULL; - GeeArrayList* _tmp15_; - GeeArrayList* _tmp17_; -#line 610 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 610 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (views)); -#line 613 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - to_show = NULL; -#line 614 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - to_hide = NULL; -#line 4026 "ViewCollection.c" - { - GeeIterator* _view_it = NULL; - GeeIterator* _tmp0_; -#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (views, GEE_TYPE_ITERABLE, GeeIterable)); -#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_it = _tmp0_; -#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 4036 "ViewCollection.c" - GeeIterator* _tmp1_; - DataView* view = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataView* _tmp4_; -#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = _view_it; -#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 4048 "ViewCollection.c" - } -#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _view_it; -#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = (DataView*) _tmp3_; -#line 620 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = view; -#line 620 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (view_collection_is_in_filter (self, _tmp4_)) { -#line 4060 "ViewCollection.c" - DataView* _tmp5_; -#line 621 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = view; -#line 621 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!data_view_is_visible (_tmp5_)) { -#line 4066 "ViewCollection.c" - GeeArrayList* _tmp6_; - GeeArrayList* _tmp8_; - DataView* _tmp9_; -#line 622 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = to_show; -#line 622 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp6_ == NULL) { -#line 4074 "ViewCollection.c" - GeeArrayList* _tmp7_; -#line 623 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 623 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (to_show); -#line 623 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - to_show = _tmp7_; -#line 4082 "ViewCollection.c" - } -#line 625 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = to_show; -#line 625 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = view; -#line 625 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp9_); -#line 4090 "ViewCollection.c" - } - } else { - DataView* _tmp10_; -#line 628 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = view; -#line 628 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_view_is_visible (_tmp10_)) { -#line 4098 "ViewCollection.c" - GeeArrayList* _tmp11_; - GeeArrayList* _tmp13_; - DataView* _tmp14_; -#line 629 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = to_hide; -#line 629 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp11_ == NULL) { -#line 4106 "ViewCollection.c" - GeeArrayList* _tmp12_; -#line 630 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 630 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (to_hide); -#line 630 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - to_hide = _tmp12_; -#line 4114 "ViewCollection.c" - } -#line 632 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = to_hide; -#line 632 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp14_ = view; -#line 632 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_); -#line 4122 "ViewCollection.c" - } - } -#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 4127 "ViewCollection.c" - } -#line 619 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_view_it); -#line 4131 "ViewCollection.c" - } -#line 641 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp15_ = to_show; -#line 641 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp15_ != NULL) { -#line 4137 "ViewCollection.c" - GeeArrayList* _tmp16_; -#line 642 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp16_ = to_show; -#line 642 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_show_items (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_LIST, GeeList)); -#line 4143 "ViewCollection.c" - } -#line 644 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp17_ = to_hide; -#line 644 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp17_ != NULL) { -#line 4149 "ViewCollection.c" - GeeArrayList* _tmp18_; -#line 645 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp18_ = to_hide; -#line 645 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_hide_items (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_LIST, GeeList)); -#line 4155 "ViewCollection.c" - } -#line 610 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (to_hide); -#line 610 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (to_show); -#line 4161 "ViewCollection.c" -} - - -static void -view_collection_real_items_altered (DataCollection* base, - GeeMap* map) -{ - ViewCollection * self; - GeeSet* _tmp0_; - GeeSet* _tmp1_; - GeeCollection* _tmp2_; -#line 648 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection); -#line 648 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_MAP (map)); -#line 650 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_map_get_keys (map); -#line 650 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = _tmp0_; -#line 650 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection); -#line 650 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_filter_altered_items (self, _tmp2_); -#line 650 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp2_); -#line 652 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - DATA_COLLECTION_CLASS (view_collection_parent_class)->items_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), map); -#line 4189 "ViewCollection.c" -} - - -static void -view_collection_real_set_comparator (DataCollection* base, - Comparator comparator, - void* comparator_target, - ComparatorPredicate predicate, - void* predicate_target) -{ - ViewCollection * self; - DataSet* _tmp0_; - DataSet* _tmp1_; -#line 655 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection); -#line 656 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->selected; -#line 656 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_set_set_comparator (_tmp0_, comparator, comparator_target, predicate, predicate_target); -#line 657 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = self->priv->visible; -#line 657 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp1_ != NULL) { -#line 4213 "ViewCollection.c" - DataSet* _tmp2_; -#line 658 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = self->priv->visible; -#line 658 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_set_set_comparator (_tmp2_, comparator, comparator_target, predicate, predicate_target); -#line 4219 "ViewCollection.c" - } -#line 660 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - DATA_COLLECTION_CLASS (view_collection_parent_class)->set_comparator (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), comparator, comparator_target, predicate, predicate_target); -#line 4223 "ViewCollection.c" -} - - -static void -view_collection_real_reset_comparator (DataCollection* base) -{ - ViewCollection * self; - DataSet* _tmp0_; - DataSet* _tmp1_; -#line 663 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection); -#line 664 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->selected; -#line 664 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_set_reset_comparator (_tmp0_); -#line 665 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = self->priv->visible; -#line 665 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp1_ != NULL) { -#line 4243 "ViewCollection.c" - DataSet* _tmp2_; -#line 666 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = self->priv->visible; -#line 666 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_set_reset_comparator (_tmp2_); -#line 4249 "ViewCollection.c" - } -#line 668 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - DATA_COLLECTION_CLASS (view_collection_parent_class)->reset_comparator (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 4253 "ViewCollection.c" -} - - -static GeeCollection* -view_collection_real_get_all (DataCollection* base) -{ - ViewCollection * self; - GeeCollection* result = NULL; - GeeCollection* _tmp0_ = NULL; - DataSet* _tmp1_; -#line 671 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection); -#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = self->priv->visible; -#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp1_ != NULL) { -#line 4270 "ViewCollection.c" - DataSet* _tmp2_; - GeeList* _tmp3_; -#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = self->priv->visible; -#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = data_set_get_all (_tmp2_); -#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp0_); -#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection); -#line 4281 "ViewCollection.c" - } else { - GeeCollection* _tmp4_; -#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = DATA_COLLECTION_CLASS (view_collection_parent_class)->get_all (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp0_); -#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = _tmp4_; -#line 4290 "ViewCollection.c" - } -#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = _tmp0_; -#line 672 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4296 "ViewCollection.c" -} - - -GeeCollection* -view_collection_get_all_unfiltered (ViewCollection* self) -{ - GeeCollection* result = NULL; - GeeCollection* _tmp0_; -#line 675 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL); -#line 676 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = DATA_COLLECTION_CLASS (view_collection_parent_class)->get_all (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 676 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = _tmp0_; -#line 676 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4313 "ViewCollection.c" -} - - -static gint -view_collection_real_get_count (DataCollection* base) -{ - ViewCollection * self; - gint result = 0; - gint _tmp0_ = 0; - DataSet* _tmp1_; -#line 679 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection); -#line 680 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = self->priv->visible; -#line 680 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp1_ != NULL) { -#line 4330 "ViewCollection.c" - DataSet* _tmp2_; -#line 680 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = self->priv->visible; -#line 680 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = data_set_get_count (_tmp2_); -#line 4336 "ViewCollection.c" - } else { -#line 680 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = DATA_COLLECTION_CLASS (view_collection_parent_class)->get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 4340 "ViewCollection.c" - } -#line 680 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = _tmp0_; -#line 680 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4346 "ViewCollection.c" -} - - -gint -view_collection_get_unfiltered_count (ViewCollection* self) -{ - gint result = 0; -#line 683 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), 0); -#line 684 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = DATA_COLLECTION_CLASS (view_collection_parent_class)->get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 684 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4360 "ViewCollection.c" -} - - -static DataObject* -view_collection_real_get_at (DataCollection* base, - gint index) -{ - ViewCollection * self; - DataObject* result = NULL; - DataObject* _tmp0_ = NULL; - DataSet* _tmp1_; -#line 687 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection); -#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = self->priv->visible; -#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp1_ != NULL) { -#line 4378 "ViewCollection.c" - DataSet* _tmp2_; - DataObject* _tmp3_; -#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = self->priv->visible; -#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = data_set_get_at (_tmp2_, index); -#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp0_); -#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = _tmp3_; -#line 4389 "ViewCollection.c" - } else { - DataObject* _tmp4_; -#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = DATA_COLLECTION_CLASS (view_collection_parent_class)->get_at (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), index); -#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp0_); -#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = _tmp4_; -#line 4398 "ViewCollection.c" - } -#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = _tmp0_; -#line 688 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4404 "ViewCollection.c" -} - - -static gint -view_collection_real_index_of (DataCollection* base, - DataObject* object) -{ - ViewCollection * self; - gint result = 0; - gint _tmp0_ = 0; - DataSet* _tmp1_; -#line 691 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection); -#line 691 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), 0); -#line 692 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = self->priv->visible; -#line 692 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp1_ != NULL) { -#line 4424 "ViewCollection.c" - DataSet* _tmp2_; -#line 692 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = self->priv->visible; -#line 692 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = data_set_index_of (_tmp2_, object); -#line 4430 "ViewCollection.c" - } else { -#line 692 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = DATA_COLLECTION_CLASS (view_collection_parent_class)->index_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), object); -#line 4434 "ViewCollection.c" - } -#line 692 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = _tmp0_; -#line 692 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4440 "ViewCollection.c" -} - - -static gboolean -view_collection_real_contains (DataCollection* base, - DataObject* object) -{ - ViewCollection * self; - gboolean result = FALSE; -#line 695 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection); -#line 695 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 698 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!DATA_COLLECTION_CLASS (view_collection_parent_class)->contains (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), object)) { -#line 699 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = FALSE; -#line 699 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4460 "ViewCollection.c" - } -#line 702 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = view_collection_is_visible (self, G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView)); -#line 702 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4466 "ViewCollection.c" -} - - -static DataView* -view_collection_real_get_first (ViewCollection* self) -{ - DataView* result = NULL; - DataView* _tmp0_ = NULL; -#line 706 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)) > 0) { -#line 4477 "ViewCollection.c" - DataObject* _tmp1_; -#line 706 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), 0); -#line 706 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp0_); -#line 706 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_VIEW, DataView); -#line 4485 "ViewCollection.c" - } else { -#line 706 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp0_); -#line 706 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = NULL; -#line 4491 "ViewCollection.c" - } -#line 706 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = _tmp0_; -#line 706 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4497 "ViewCollection.c" -} - - -DataView* -view_collection_get_first (ViewCollection* self) -{ -#line 705 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL); -#line 705 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return VIEW_COLLECTION_GET_CLASS (self)->get_first (self); -#line 4508 "ViewCollection.c" -} - - -/** - * @brief A helper method for places in the app that need a - * non-rejected media source (namely Events, when looking to - * automatically choose a thumbnail). - * - * @note If every view in this collection is rejected, we - * return the first view; this is intentional. This prevents - * pathological events that have nothing but rejected images - * in them from breaking. - */ -static DataView* -view_collection_real_get_first_unrejected (ViewCollection* self) -{ - DataView* result = NULL; - DataView* dv = NULL; - DataView* _tmp0_; - gint num_views = 0; - DataView* _tmp13_; -#line 721 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)) < 1) { -#line 722 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = NULL; -#line 722 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4536 "ViewCollection.c" - } -#line 725 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = view_collection_get_first (self); -#line 725 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - dv = _tmp0_; -#line 726 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - num_views = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 4546 "ViewCollection.c" - gboolean _tmp1_ = FALSE; - DataView* _tmp2_; - MediaSource* tmp = NULL; - DataView* _tmp5_; - DataSource* _tmp6_; - MediaSource* _tmp7_; - gboolean _tmp8_ = FALSE; - MediaSource* _tmp9_; -#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = dv; -#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp2_ != NULL) { -#line 4559 "ViewCollection.c" - DataView* _tmp3_; - gint _tmp4_; -#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = dv; -#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = num_views; -#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = data_collection_index_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_OBJECT, DataObject)) < (_tmp4_ - 1); -#line 4568 "ViewCollection.c" - } else { -#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = FALSE; -#line 4572 "ViewCollection.c" - } -#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!_tmp1_) { -#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 4578 "ViewCollection.c" - } -#line 729 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = dv; -#line 729 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = data_view_get_source (_tmp5_); -#line 729 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, TYPE_MEDIA_SOURCE) ? ((MediaSource*) _tmp6_) : NULL; -#line 729 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp7_ == NULL) { -#line 729 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp6_); -#line 4590 "ViewCollection.c" - } -#line 729 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - tmp = _tmp7_; -#line 731 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = tmp; -#line 731 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp9_ != NULL) { -#line 4598 "ViewCollection.c" - MediaSource* _tmp10_; -#line 731 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = tmp; -#line 731 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = media_source_get_rating (_tmp10_) != RATING_REJECTED; -#line 4604 "ViewCollection.c" - } else { -#line 731 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = FALSE; -#line 4608 "ViewCollection.c" - } -#line 731 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp8_) { -#line 733 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = dv; -#line 733 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (tmp); -#line 733 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4618 "ViewCollection.c" - } else { - DataView* _tmp11_; - DataView* _tmp12_; -#line 735 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = dv; -#line 735 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = view_collection_get_next (self, _tmp11_); -#line 735 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (dv); -#line 735 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - dv = _tmp12_; -#line 4630 "ViewCollection.c" - } -#line 728 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (tmp); -#line 4634 "ViewCollection.c" - } -#line 741 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = view_collection_get_first (self); -#line 741 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = _tmp13_; -#line 741 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (dv); -#line 741 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4644 "ViewCollection.c" -} - - -DataView* -view_collection_get_first_unrejected (ViewCollection* self) -{ -#line 719 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL); -#line 719 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return VIEW_COLLECTION_GET_CLASS (self)->get_first_unrejected (self); -#line 4655 "ViewCollection.c" -} - - -static DataView* -view_collection_real_get_last (ViewCollection* self) -{ - DataView* result = NULL; - DataView* _tmp0_ = NULL; -#line 745 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)) > 0) { -#line 4666 "ViewCollection.c" - DataObject* _tmp1_; -#line 745 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)) - 1); -#line 745 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp0_); -#line 745 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_VIEW, DataView); -#line 4674 "ViewCollection.c" - } else { -#line 745 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp0_); -#line 745 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = NULL; -#line 4680 "ViewCollection.c" - } -#line 745 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = _tmp0_; -#line 745 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4686 "ViewCollection.c" -} - - -DataView* -view_collection_get_last (ViewCollection* self) -{ -#line 744 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL); -#line 744 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return VIEW_COLLECTION_GET_CLASS (self)->get_last (self); -#line 4697 "ViewCollection.c" -} - - -static DataView* -view_collection_real_get_next (ViewCollection* self, - DataView* view) -{ - DataView* result = NULL; - gint index = 0; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - DataObject* _tmp4_; -#line 748 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_VIEW (view), NULL); -#line 749 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)) == 0) { -#line 750 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = NULL; -#line 750 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4720 "ViewCollection.c" - } -#line 752 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - index = data_collection_index_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_OBJECT, DataObject)); -#line 753 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = index; -#line 753 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp0_ < 0) { -#line 754 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = NULL; -#line 754 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4732 "ViewCollection.c" - } -#line 756 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = index; -#line 756 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - index = _tmp1_ + 1; -#line 757 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = index; -#line 757 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp2_ >= data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection))) { -#line 758 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - index = 0; -#line 4744 "ViewCollection.c" - } -#line 760 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = index; -#line 760 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp3_); -#line 760 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_VIEW, DataView); -#line 760 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4754 "ViewCollection.c" -} - - -DataView* -view_collection_get_next (ViewCollection* self, - DataView* view) -{ -#line 748 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL); -#line 748 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return VIEW_COLLECTION_GET_CLASS (self)->get_next (self, view); -#line 4766 "ViewCollection.c" -} - - -static DataView* -view_collection_real_get_previous (ViewCollection* self, - DataView* view) -{ - DataView* result = NULL; - gint index = 0; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - DataObject* _tmp4_; -#line 763 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_VIEW (view), NULL); -#line 764 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)) == 0) { -#line 765 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = NULL; -#line 765 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4789 "ViewCollection.c" - } -#line 767 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - index = data_collection_index_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_OBJECT, DataObject)); -#line 768 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = index; -#line 768 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp0_ < 0) { -#line 769 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = NULL; -#line 769 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4801 "ViewCollection.c" - } -#line 771 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = index; -#line 771 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - index = _tmp1_ - 1; -#line 772 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = index; -#line 772 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp2_ < 0) { -#line 773 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - index = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)) - 1; -#line 4813 "ViewCollection.c" - } -#line 775 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = index; -#line 775 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp3_); -#line 775 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_VIEW, DataView); -#line 775 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4823 "ViewCollection.c" -} - - -DataView* -view_collection_get_previous (ViewCollection* self, - DataView* view) -{ -#line 763 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL); -#line 763 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return VIEW_COLLECTION_GET_CLASS (self)->get_previous (self, view); -#line 4835 "ViewCollection.c" -} - - -gboolean -view_collection_get_immediate_neighbors (ViewCollection* self, - DataSource* home, - DataSource* * next, - DataSource* * prev, - const gchar* type_selector) -{ - DataSource* _vala_next = NULL; - DataSource* _vala_prev = NULL; - gboolean result = FALSE; - DataView* home_view = NULL; - DataView* _tmp0_; - DataView* _tmp1_; - DataView* next_view = NULL; - DataView* _tmp2_; - DataView* _tmp3_; - DataView* prev_view = NULL; - DataView* _tmp16_; - DataView* _tmp17_; -#line 778 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE); -#line 778 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_SOURCE (home), FALSE); -#line 780 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_vala_next); -#line 780 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_next = NULL; -#line 781 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_vala_prev); -#line 781 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_prev = NULL; -#line 783 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = view_collection_get_view_for_source (self, home); -#line 783 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - home_view = _tmp0_; -#line 784 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = home_view; -#line 784 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp1_ == NULL) { -#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = FALSE; -#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (home_view); -#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (next) { -#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - *next = _vala_next; -#line 4886 "ViewCollection.c" - } else { -#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_vala_next); -#line 4890 "ViewCollection.c" - } -#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (prev) { -#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - *prev = _vala_prev; -#line 4896 "ViewCollection.c" - } else { -#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_vala_prev); -#line 4900 "ViewCollection.c" - } -#line 785 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 4904 "ViewCollection.c" - } -#line 787 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = home_view; -#line 787 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = view_collection_get_next (self, _tmp2_); -#line 787 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - next_view = _tmp3_; -#line 788 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 4914 "ViewCollection.c" - DataView* _tmp4_; - DataView* _tmp5_; - gboolean _tmp6_ = FALSE; - DataView* _tmp14_; - DataView* _tmp15_; -#line 788 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = next_view; -#line 788 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = home_view; -#line 788 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!(_tmp4_ != _tmp5_)) { -#line 788 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 4928 "ViewCollection.c" - } -#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (type_selector == NULL) { -#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = TRUE; -#line 4934 "ViewCollection.c" - } else { - DataView* _tmp7_; - DataSource* _tmp8_; - DataSource* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; -#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = next_view; -#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = data_view_get_source (_tmp7_); -#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = _tmp8_; -#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = data_source_get_typename (_tmp9_); -#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = _tmp10_; -#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = g_strcmp0 (_tmp11_, type_selector) == 0; -#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_free0 (_tmp11_); -#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp9_); -#line 4957 "ViewCollection.c" - } -#line 789 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp6_) { -#line 4961 "ViewCollection.c" - DataView* _tmp12_; - DataSource* _tmp13_; -#line 790 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = next_view; -#line 790 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = data_view_get_source (_tmp12_); -#line 790 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_vala_next); -#line 790 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_next = _tmp13_; -#line 791 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 4974 "ViewCollection.c" - } -#line 793 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp14_ = next_view; -#line 793 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp15_ = view_collection_get_next (self, _tmp14_); -#line 793 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (next_view); -#line 793 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - next_view = _tmp15_; -#line 4984 "ViewCollection.c" - } -#line 796 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp16_ = home_view; -#line 796 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp17_ = view_collection_get_previous (self, _tmp16_); -#line 796 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - prev_view = _tmp17_; -#line 797 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 4994 "ViewCollection.c" - DataView* _tmp18_; - DataView* _tmp19_; - gboolean _tmp20_ = FALSE; - DataView* _tmp28_; - DataView* _tmp29_; -#line 797 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp18_ = prev_view; -#line 797 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp19_ = home_view; -#line 797 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!(_tmp18_ != _tmp19_)) { -#line 797 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 5008 "ViewCollection.c" - } -#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (type_selector == NULL) { -#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp20_ = TRUE; -#line 5014 "ViewCollection.c" - } else { - DataView* _tmp21_; - DataSource* _tmp22_; - DataSource* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; -#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp21_ = prev_view; -#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp22_ = data_view_get_source (_tmp21_); -#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp23_ = _tmp22_; -#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp24_ = data_source_get_typename (_tmp23_); -#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp25_ = _tmp24_; -#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp20_ = g_strcmp0 (_tmp25_, type_selector) == 0; -#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_free0 (_tmp25_); -#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp23_); -#line 5037 "ViewCollection.c" - } -#line 798 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp20_) { -#line 5041 "ViewCollection.c" - DataView* _tmp26_; - DataSource* _tmp27_; -#line 799 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp26_ = prev_view; -#line 799 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp27_ = data_view_get_source (_tmp26_); -#line 799 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_vala_prev); -#line 799 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_prev = _tmp27_; -#line 800 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 5054 "ViewCollection.c" - } -#line 802 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp28_ = prev_view; -#line 802 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp29_ = view_collection_get_previous (self, _tmp28_); -#line 802 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (prev_view); -#line 802 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - prev_view = _tmp29_; -#line 5064 "ViewCollection.c" - } -#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = TRUE; -#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (prev_view); -#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (next_view); -#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (home_view); -#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (next) { -#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - *next = _vala_next; -#line 5078 "ViewCollection.c" - } else { -#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_vala_next); -#line 5082 "ViewCollection.c" - } -#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (prev) { -#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - *prev = _vala_prev; -#line 5088 "ViewCollection.c" - } else { -#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_vala_prev); -#line 5092 "ViewCollection.c" - } -#line 805 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 5096 "ViewCollection.c" -} - - -GeeSet* -view_collection_get_extended_neighbors (ViewCollection* self, - DataSource* home, - const gchar* typename) -{ - GeeSet* result = NULL; - GeeSet* neighbors = NULL; - GeeHashSet* _tmp0_; - DataSource* next = NULL; - DataSource* prev = NULL; - DataSource* _tmp1_ = NULL; - DataSource* _tmp2_ = NULL; - gboolean _tmp3_; - DataSource* _tmp4_; - DataSource* _tmp13_; - GeeSet* _tmp22_; -#line 809 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL); -#line 809 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_SOURCE (home), NULL); -#line 811 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_hash_set_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 811 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - neighbors = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SET, GeeSet); -#line 815 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = view_collection_get_immediate_neighbors (self, home, &_tmp1_, &_tmp2_, typename); -#line 815 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (next); -#line 815 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - next = _tmp1_; -#line 815 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (prev); -#line 815 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - prev = _tmp2_; -#line 815 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!_tmp3_) { -#line 816 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = neighbors; -#line 816 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (prev); -#line 816 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (next); -#line 816 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 5144 "ViewCollection.c" - } -#line 819 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = next; -#line 819 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp4_ != NULL) { -#line 5150 "ViewCollection.c" - GeeSet* _tmp5_; - DataSource* _tmp6_; - DataSource* next_next = NULL; - DataSource* next_prev = NULL; - DataSource* _tmp7_; - DataSource* _tmp8_ = NULL; - DataSource* _tmp9_ = NULL; - DataSource* _tmp10_; -#line 820 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = neighbors; -#line 820 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = next; -#line 820 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection), _tmp6_); -#line 823 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = next; -#line 823 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_get_immediate_neighbors (self, _tmp7_, &_tmp8_, &_tmp9_, typename); -#line 823 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (next_next); -#line 823 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - next_next = _tmp8_; -#line 823 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (next_prev); -#line 823 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - next_prev = _tmp9_; -#line 826 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = next_next; -#line 826 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp10_ != NULL) { -#line 5181 "ViewCollection.c" - GeeSet* _tmp11_; - DataSource* _tmp12_; -#line 827 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = neighbors; -#line 827 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = next_next; -#line 827 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection), _tmp12_); -#line 5190 "ViewCollection.c" - } -#line 819 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (next_prev); -#line 819 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (next_next); -#line 5196 "ViewCollection.c" - } -#line 831 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = prev; -#line 831 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp13_ != NULL) { -#line 5202 "ViewCollection.c" - GeeSet* _tmp14_; - DataSource* _tmp15_; - DataSource* next_prev = NULL; - DataSource* prev_prev = NULL; - DataSource* _tmp16_; - DataSource* _tmp17_ = NULL; - DataSource* _tmp18_ = NULL; - DataSource* _tmp19_; -#line 832 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp14_ = neighbors; -#line 832 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp15_ = prev; -#line 832 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection), _tmp15_); -#line 835 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp16_ = prev; -#line 835 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_get_immediate_neighbors (self, _tmp16_, &_tmp17_, &_tmp18_, typename); -#line 835 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (next_prev); -#line 835 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - next_prev = _tmp17_; -#line 835 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (prev_prev); -#line 835 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - prev_prev = _tmp18_; -#line 838 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp19_ = prev_prev; -#line 838 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp19_ != NULL) { -#line 5233 "ViewCollection.c" - GeeSet* _tmp20_; - DataSource* _tmp21_; -#line 839 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp20_ = neighbors; -#line 839 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp21_ = prev_prev; -#line 839 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection), _tmp21_); -#line 5242 "ViewCollection.c" - } -#line 831 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (prev_prev); -#line 831 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (next_prev); -#line 5248 "ViewCollection.c" - } -#line 843 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp22_ = neighbors; -#line 843 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection), home); -#line 845 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = neighbors; -#line 845 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (prev); -#line 845 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (next); -#line 845 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 5262 "ViewCollection.c" -} - - -static void -view_collection_add_many_selected (ViewCollection* self, - GeeCollection* views) -{ - gint _tmp0_; - gint _tmp1_; - gboolean added = FALSE; - DataSet* _tmp7_; - gboolean _tmp8_; -#line 850 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 850 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (views)); -#line 851 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_collection_get_size (views); -#line 851 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = _tmp0_; -#line 851 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp1_ == 0) { -#line 852 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return; -#line 5287 "ViewCollection.c" - } - { - GeeIterator* _view_it = NULL; - GeeIterator* _tmp2_; -#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (views, GEE_TYPE_ITERABLE, GeeIterable)); -#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_it = _tmp2_; -#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 5298 "ViewCollection.c" - GeeIterator* _tmp3_; - DataView* view = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - DataView* _tmp6_; -#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = _view_it; -#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 5310 "ViewCollection.c" - } -#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = _view_it; -#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = (DataView*) _tmp5_; -#line 855 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = view; -#line 855 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (data_view_is_visible (_tmp6_), "view.is_visible()"); -#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 5324 "ViewCollection.c" - } -#line 854 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_view_it); -#line 5328 "ViewCollection.c" - } -#line 857 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = self->priv->selected; -#line 857 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - added = data_set_add_many (_tmp7_, views); -#line 858 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = added; -#line 858 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (_tmp8_, "added"); -#line 5338 "ViewCollection.c" -} - - -static void -view_collection_remove_many_selected (ViewCollection* self, - GeeCollection* views) -{ - gint _tmp0_; - gint _tmp1_; - gboolean removed = FALSE; - DataSet* _tmp2_; - gboolean _tmp3_; -#line 861 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 861 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (views)); -#line 862 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_collection_get_size (views); -#line 862 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = _tmp0_; -#line 862 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp1_ == 0) { -#line 863 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return; -#line 5363 "ViewCollection.c" - } -#line 865 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = self->priv->selected; -#line 865 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - removed = data_set_remove_many (_tmp2_, views); -#line 866 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = removed; -#line 866 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (_tmp3_, "removed"); -#line 5373 "ViewCollection.c" -} - - -static gboolean -_view_collection_select_item_marked_action (DataObject* object, - GObject* user, - gpointer self) -{ - gboolean result; - result = view_collection_select_item ((ViewCollection*) self, object, user); -#line 872 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 5386 "ViewCollection.c" -} - - -void -view_collection_select_marked (ViewCollection* self, - Marker* marker) -{ - GeeArrayList* selected = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; - GeeArrayList* _tmp2_; - gint _tmp3_; - gint _tmp4_; -#line 870 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 870 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_MARKER (marker)); -#line 871 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 871 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - selected = _tmp0_; -#line 872 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = selected; -#line 872 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_collection_act_on_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), marker, _view_collection_select_item_marked_action, self, NULL, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, G_TYPE_OBJECT, GObject)); -#line 874 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = selected; -#line 874 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 874 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = _tmp3_; -#line 874 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp4_ > 0) { -#line 5420 "ViewCollection.c" - GeeArrayList* _tmp5_; - GeeArrayList* _tmp6_; -#line 875 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = selected; -#line 875 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_add_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 876 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = selected; -#line 876 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_items_selected_unselected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), NULL); -#line 5431 "ViewCollection.c" - } -#line 870 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (selected); -#line 5435 "ViewCollection.c" -} - - -void -view_collection_select_all (ViewCollection* self) -{ - Marker* marker = NULL; - Marker* _tmp0_; -#line 881 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 882 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 882 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - marker = _tmp0_; -#line 883 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - marker_mark_all (marker); -#line 884 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_select_marked (self, marker); -#line 881 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (marker); -#line 5456 "ViewCollection.c" -} - - -static gboolean -view_collection_select_item (ViewCollection* self, - DataObject* object, - GObject* user) -{ - gboolean result = FALSE; - DataView* view = NULL; - DataView* _tmp0_; - DataView* _tmp1_; - DataView* _tmp5_; - DataView* _tmp6_; -#line 887 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE); -#line 887 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 887 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail ((user == NULL) || G_IS_OBJECT (user), FALSE); -#line 888 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView)); -#line 888 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = _tmp0_; -#line 889 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = view; -#line 889 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_view_is_selected (_tmp1_)) { -#line 5485 "ViewCollection.c" - DataView* _tmp2_; -#line 890 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = view; -#line 890 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_view_is_visible (_tmp2_)) { -#line 5491 "ViewCollection.c" - DataSet* _tmp3_; - DataView* _tmp4_; -#line 891 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = self->priv->selected; -#line 891 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = view; -#line 891 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (data_set_contains (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject)), "selected.contains(view)"); -#line 5500 "ViewCollection.c" - } -#line 893 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = TRUE; -#line 893 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 893 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 5508 "ViewCollection.c" - } -#line 896 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = view; -#line 896 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_view_internal_set_selected (_tmp5_, TRUE); -#line 900 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = view; -#line 900 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_view_is_visible (_tmp6_)) { -#line 5518 "ViewCollection.c" - DataView* _tmp7_; -#line 901 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = view; -#line 901 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (user, GEE_TYPE_ARRAY_LIST, GeeArrayList), GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp7_); -#line 5524 "ViewCollection.c" - } -#line 903 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = TRUE; -#line 903 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 903 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 5532 "ViewCollection.c" -} - - -static gboolean -_view_collection_unselect_item_marked_action (DataObject* object, - GObject* user, - gpointer self) -{ - gboolean result; - result = view_collection_unselect_item ((ViewCollection*) self, object, user); -#line 909 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 5545 "ViewCollection.c" -} - - -void -view_collection_unselect_marked (ViewCollection* self, - Marker* marker) -{ - GeeArrayList* unselected = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; - GeeArrayList* _tmp2_; - gint _tmp3_; - gint _tmp4_; -#line 907 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 907 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_MARKER (marker)); -#line 908 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 908 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - unselected = _tmp0_; -#line 909 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = unselected; -#line 909 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_collection_act_on_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), marker, _view_collection_unselect_item_marked_action, self, NULL, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, G_TYPE_OBJECT, GObject)); -#line 911 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = unselected; -#line 911 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 911 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = _tmp3_; -#line 911 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp4_ > 0) { -#line 5579 "ViewCollection.c" - GeeArrayList* _tmp5_; - GeeArrayList* _tmp6_; -#line 912 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = unselected; -#line 912 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_remove_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 913 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = unselected; -#line 913 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_items_selected_unselected (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 5590 "ViewCollection.c" - } -#line 907 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (unselected); -#line 5594 "ViewCollection.c" -} - - -void -view_collection_unselect_all (ViewCollection* self) -{ - DataSet* _tmp0_; - Marker* marker = NULL; - Marker* _tmp1_; - Marker* _tmp2_; - GeeList* _tmp3_; - GeeList* _tmp4_; - Marker* _tmp5_; -#line 918 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 919 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->selected; -#line 919 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_set_get_count (_tmp0_) == 0) { -#line 920 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return; -#line 5616 "ViewCollection.c" - } -#line 922 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 922 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - marker = _tmp1_; -#line 923 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = marker; -#line 923 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = view_collection_get_selected (self); -#line 923 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = _tmp3_; -#line 923 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - marker_mark_many (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 923 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp4_); -#line 925 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = marker; -#line 925 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_unselect_marked (self, _tmp5_); -#line 918 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (marker); -#line 5638 "ViewCollection.c" -} - - -void -view_collection_unselect_all_but (ViewCollection* self, - DataView* exception) -{ - Marker* marker = NULL; - Marker* _tmp0_; - Marker* _tmp13_; -#line 929 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 929 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_DATA_VIEW (exception)); -#line 930 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 930 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - marker = _tmp0_; -#line 5657 "ViewCollection.c" - { - GeeIterator* _object_it = NULL; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _tmp1_; -#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = _tmp3_; -#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp2_); -#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _object_it = _tmp4_; -#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 5678 "ViewCollection.c" - GeeIterator* _tmp5_; - DataObject* object = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - DataView* view = NULL; - DataObject* _tmp8_; - DataView* _tmp9_; - DataView* _tmp10_; -#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = _object_it; -#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 5693 "ViewCollection.c" - } -#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = _object_it; -#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - object = (DataObject*) _tmp7_; -#line 932 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = object; -#line 932 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_VIEW, DataView)); -#line 932 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = _tmp9_; -#line 933 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = view; -#line 933 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp10_ != exception) { -#line 5711 "ViewCollection.c" - Marker* _tmp11_; - DataView* _tmp12_; -#line 934 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = marker; -#line 934 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = view; -#line 934 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - marker_mark (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject)); -#line 5720 "ViewCollection.c" - } -#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (object); -#line 5726 "ViewCollection.c" - } -#line 931 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_object_it); -#line 5730 "ViewCollection.c" - } -#line 937 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = marker; -#line 937 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_unselect_marked (self, _tmp13_); -#line 929 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (marker); -#line 5738 "ViewCollection.c" -} - - -static gboolean -view_collection_unselect_item (ViewCollection* self, - DataObject* object, - GObject* user) -{ - gboolean result = FALSE; - DataView* view = NULL; - DataView* _tmp0_; - DataView* _tmp1_; - DataView* _tmp4_; - DataView* _tmp5_; -#line 940 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE); -#line 940 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 940 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail ((user == NULL) || G_IS_OBJECT (user), FALSE); -#line 941 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView)); -#line 941 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = _tmp0_; -#line 942 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = view; -#line 942 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!data_view_is_selected (_tmp1_)) { -#line 5767 "ViewCollection.c" - DataSet* _tmp2_; - DataView* _tmp3_; -#line 943 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = self->priv->selected; -#line 943 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = view; -#line 943 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (!data_set_contains (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_OBJECT, DataObject)), "!selected.contains(view)"); -#line 945 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = TRUE; -#line 945 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 945 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 5782 "ViewCollection.c" - } -#line 948 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = view; -#line 948 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_view_internal_set_selected (_tmp4_, FALSE); -#line 949 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = view; -#line 949 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (user, GEE_TYPE_ARRAY_LIST, GeeArrayList), GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp5_); -#line 951 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = TRUE; -#line 951 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 951 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 5798 "ViewCollection.c" -} - - -void -view_collection_unselect_and_select_marked (ViewCollection* self, - Marker* unselect, - Marker* select) -{ - GeeArrayList* unselected = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* selected = NULL; - GeeArrayList* _tmp1_; -#line 955 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 955 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_MARKER (unselect)); -#line 955 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_MARKER (select)); -#line 956 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 956 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - unselected = _tmp0_; -#line 957 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_collection_act_on_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), unselect, _view_collection_unselect_item_marked_action, self, NULL, NULL, G_TYPE_CHECK_INSTANCE_CAST (unselected, G_TYPE_OBJECT, GObject)); -#line 959 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_remove_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (unselected, GEE_TYPE_COLLECTION, GeeCollection)); -#line 961 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 961 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - selected = _tmp1_; -#line 962 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_collection_act_on_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), select, _view_collection_select_item_marked_action, self, NULL, NULL, G_TYPE_CHECK_INSTANCE_CAST (selected, G_TYPE_OBJECT, GObject)); -#line 964 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_add_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (selected, GEE_TYPE_COLLECTION, GeeCollection)); -#line 966 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_items_selected_unselected (self, G_TYPE_CHECK_INSTANCE_CAST (selected, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (unselected, GEE_TYPE_COLLECTION, GeeCollection)); -#line 955 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (selected); -#line 955 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (unselected); -#line 5839 "ViewCollection.c" -} - - -static gboolean -_view_collection_toggle_item_marked_action (DataObject* object, - GObject* user, - gpointer self) -{ - gboolean result; - result = view_collection_toggle_item ((ViewCollection*) self, object, user); -#line 973 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 5852 "ViewCollection.c" -} - - -void -view_collection_toggle_marked (ViewCollection* self, - Marker* marker) -{ - ViewCollectionToggleLists* lists = NULL; - ViewCollectionToggleLists* _tmp0_; - GeeArrayList* _tmp1_; - GeeArrayList* _tmp2_; - GeeArrayList* _tmp3_; - GeeArrayList* _tmp4_; -#line 971 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 971 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_MARKER (marker)); -#line 972 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = view_collection_toggle_lists_new (); -#line 972 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - lists = _tmp0_; -#line 973 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_collection_act_on_marked (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), marker, _view_collection_toggle_item_marked_action, self, NULL, NULL, G_TYPE_CHECK_INSTANCE_CAST (lists, G_TYPE_OBJECT, GObject)); -#line 976 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = lists->selected; -#line 976 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_add_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 977 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = lists->unselected; -#line 977 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_remove_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 979 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = lists->selected; -#line 979 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = lists->unselected; -#line 979 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_items_selected_unselected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 971 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (lists); -#line 5892 "ViewCollection.c" -} - - -static gboolean -view_collection_toggle_item (ViewCollection* self, - DataObject* object, - GObject* user) -{ - gboolean result = FALSE; - DataView* view = NULL; - DataView* _tmp0_; - ViewCollectionToggleLists* lists = NULL; - ViewCollectionToggleLists* _tmp1_; - DataView* _tmp2_; -#line 982 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE); -#line 982 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 982 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail ((user == NULL) || G_IS_OBJECT (user), FALSE); -#line 983 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_DATA_VIEW, DataView)); -#line 983 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = _tmp0_; -#line 984 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (user, VIEW_COLLECTION_TYPE_TOGGLE_LISTS, ViewCollectionToggleLists)); -#line 984 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - lists = _tmp1_; -#line 990 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = view; -#line 990 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_view_internal_toggle (_tmp2_)) { -#line 5925 "ViewCollection.c" - DataView* _tmp3_; -#line 991 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = view; -#line 991 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_view_is_visible (_tmp3_)) { -#line 5931 "ViewCollection.c" - ViewCollectionToggleLists* _tmp4_; - GeeArrayList* _tmp5_; - DataView* _tmp6_; -#line 992 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = lists; -#line 992 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = _tmp4_->selected; -#line 992 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = view; -#line 992 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp6_); -#line 5943 "ViewCollection.c" - } - } else { - ViewCollectionToggleLists* _tmp7_; - GeeArrayList* _tmp8_; - DataView* _tmp9_; -#line 994 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = lists; -#line 994 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = _tmp7_->unselected; -#line 994 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = view; -#line 994 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp9_); -#line 5957 "ViewCollection.c" - } -#line 997 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = TRUE; -#line 997 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (lists); -#line 997 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 997 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 5967 "ViewCollection.c" -} - - -gint -view_collection_get_selected_count (ViewCollection* self) -{ - gint result = 0; - DataSet* _tmp0_; -#line 1000 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), 0); -#line 1001 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->selected; -#line 1001 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = data_set_get_count (_tmp0_); -#line 1001 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 5984 "ViewCollection.c" -} - - -GeeList* -view_collection_get_selected (ViewCollection* self) -{ - GeeList* result = NULL; - DataSet* _tmp0_; - GeeList* _tmp1_; -#line 1004 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL); -#line 1005 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->selected; -#line 1005 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = data_set_get_all (_tmp0_); -#line 1005 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_LIST, GeeList); -#line 1005 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 6004 "ViewCollection.c" -} - - -DataView* -view_collection_get_selected_at (ViewCollection* self, - gint index) -{ - DataView* result = NULL; - DataSet* _tmp0_; - DataObject* _tmp1_; -#line 1008 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL); -#line 1009 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->selected; -#line 1009 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = data_set_get_at (_tmp0_, index); -#line 1009 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_VIEW, DataView); -#line 1009 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 6025 "ViewCollection.c" -} - - -static gboolean -view_collection_is_visible (ViewCollection* self, - DataView* view) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - DataSet* _tmp1_; -#line 1012 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE); -#line 1012 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_VIEW (view), FALSE); -#line 1013 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = self->priv->visible; -#line 1013 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp1_ != NULL) { -#line 6044 "ViewCollection.c" - DataSet* _tmp2_; -#line 1013 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = self->priv->visible; -#line 1013 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = data_set_contains (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_OBJECT, DataObject)); -#line 6050 "ViewCollection.c" - } else { -#line 1013 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = TRUE; -#line 6054 "ViewCollection.c" - } -#line 1013 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = _tmp0_; -#line 1013 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 6060 "ViewCollection.c" -} - - -static gboolean -view_collection_add_many_visible (ViewCollection* self, - GeeCollection* many) -{ - gboolean result = FALSE; - DataSet* _tmp0_; - DataSet* _tmp1_; - DataSet* _tmp2_; -#line 1016 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE); -#line 1016 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (many), FALSE); -#line 1017 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->visible; -#line 1017 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp0_ == NULL) { -#line 1018 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = TRUE; -#line 1018 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 6084 "ViewCollection.c" - } -#line 1020 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = self->priv->visible; -#line 1020 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!data_set_add_many (_tmp1_, many)) { -#line 1021 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = FALSE; -#line 1021 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 6094 "ViewCollection.c" - } -#line 1024 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = self->priv->visible; -#line 1024 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_set_get_count (_tmp2_) == DATA_COLLECTION_CLASS (view_collection_parent_class)->get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection))) { -#line 1025 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _data_set_unref0 (self->priv->visible); -#line 1025 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->visible = NULL; -#line 6104 "ViewCollection.c" - } -#line 1027 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = TRUE; -#line 1027 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 6110 "ViewCollection.c" -} - - -static void -view_collection_hide_items (ViewCollection* self, - GeeList* to_hide) -{ - GeeArrayList* unselected = NULL; - GeeArrayList* _tmp0_; - gint count = 0; - gint _tmp1_; - gint _tmp2_; - DataSet* _tmp17_; - gboolean removed = FALSE; - DataSet* _tmp19_; - gboolean _tmp20_; - GeeArrayList* _tmp21_; - GeeArrayList* _tmp22_; - gint _tmp23_; - gint _tmp24_; - gint _tmp26_; - gint _tmp27_; -#line 1031 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 1031 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_LIST (to_hide)); -#line 1032 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1032 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - unselected = _tmp0_; -#line 1034 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (to_hide, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1034 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _tmp1_; -#line 1034 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - count = _tmp2_; -#line 6147 "ViewCollection.c" - { - gint ctr = 0; -#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ctr = 0; -#line 6152 "ViewCollection.c" - { - gboolean _tmp3_ = FALSE; -#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = TRUE; -#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 6159 "ViewCollection.c" - gint _tmp5_; - gint _tmp6_; - DataView* view = NULL; - gint _tmp7_; - gpointer _tmp8_; - DataView* _tmp9_; - DataView* _tmp10_; - DataView* _tmp16_; -#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!_tmp3_) { -#line 6170 "ViewCollection.c" - gint _tmp4_; -#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = ctr; -#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ctr = _tmp4_ + 1; -#line 6176 "ViewCollection.c" - } -#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = FALSE; -#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = ctr; -#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = count; -#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!(_tmp5_ < _tmp6_)) { -#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 6188 "ViewCollection.c" - } -#line 1036 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = ctr; -#line 1036 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = gee_list_get (to_hide, _tmp7_); -#line 1036 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = (DataView*) _tmp8_; -#line 1037 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = view; -#line 1037 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (data_view_is_visible (_tmp9_), "view.is_visible()"); -#line 1039 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = view; -#line 1039 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_view_is_selected (_tmp10_)) { -#line 6204 "ViewCollection.c" - DataView* _tmp11_; - GeeArrayList* _tmp12_; - DataView* _tmp13_; -#line 1040 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = view; -#line 1040 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_view_internal_set_selected (_tmp11_, FALSE); -#line 1041 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = unselected; -#line 1041 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = view; -#line 1041 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp13_); -#line 6218 "ViewCollection.c" - } else { - DataSet* _tmp14_; - DataView* _tmp15_; -#line 1043 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp14_ = self->priv->selected; -#line 1043 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp15_ = view; -#line 1043 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (!data_set_contains (_tmp14_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_OBJECT, DataObject)), "!selected.contains(view)"); -#line 6228 "ViewCollection.c" - } -#line 1046 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp16_ = view; -#line 1046 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_view_internal_set_visible (_tmp16_, FALSE); -#line 1035 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 6236 "ViewCollection.c" - } - } - } -#line 1049 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp17_ = self->priv->visible; -#line 1049 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp17_ == NULL) { -#line 6244 "ViewCollection.c" - DataSet* _tmp18_; -#line 1051 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp18_ = data_collection_get_dataset_copy (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 1051 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _data_set_unref0 (self->priv->visible); -#line 1051 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->visible = _tmp18_; -#line 6252 "ViewCollection.c" - } -#line 1054 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp19_ = self->priv->visible; -#line 1054 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - removed = data_set_remove_many (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (to_hide, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1055 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp20_ = removed; -#line 1055 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (_tmp20_, "removed"); -#line 1057 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp21_ = unselected; -#line 1057 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_remove_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1059 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp22_ = unselected; -#line 1059 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp23_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1059 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp24_ = _tmp23_; -#line 1059 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp24_ > 0) { -#line 6274 "ViewCollection.c" - GeeArrayList* _tmp25_; -#line 1060 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp25_ = unselected; -#line 1060 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_items_selected_unselected (self, NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 6280 "ViewCollection.c" - } -#line 1062 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp26_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (to_hide, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1062 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp27_ = _tmp26_; -#line 1062 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp27_ > 0) { -#line 1063 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_items_hidden (self, G_TYPE_CHECK_INSTANCE_CAST (to_hide, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1064 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_items_visibility_changed (self, G_TYPE_CHECK_INSTANCE_CAST (to_hide, GEE_TYPE_COLLECTION, GeeCollection)); -#line 6292 "ViewCollection.c" - } -#line 1031 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (unselected); -#line 6296 "ViewCollection.c" -} - - -static void -view_collection_show_items (ViewCollection* self, - GeeList* to_show) -{ - GeeArrayList* added_selected = NULL; - GeeArrayList* _tmp0_; - gint count = 0; - gint _tmp1_; - gint _tmp2_; - gboolean added = FALSE; - gboolean _tmp16_; - GeeArrayList* _tmp17_; - gint _tmp18_; - gint _tmp19_; -#line 1069 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 1069 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_LIST (to_show)); -#line 1070 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1070 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - added_selected = _tmp0_; -#line 1072 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (to_show, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1072 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _tmp1_; -#line 1072 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - count = _tmp2_; -#line 6328 "ViewCollection.c" - { - gint ctr = 0; -#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ctr = 0; -#line 6333 "ViewCollection.c" - { - gboolean _tmp3_ = FALSE; -#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = TRUE; -#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 6340 "ViewCollection.c" - gint _tmp5_; - gint _tmp6_; - DataView* view = NULL; - gint _tmp7_; - gpointer _tmp8_; - DataView* _tmp9_; - DataView* _tmp10_; - DataView* _tmp11_; -#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!_tmp3_) { -#line 6351 "ViewCollection.c" - gint _tmp4_; -#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = ctr; -#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ctr = _tmp4_ + 1; -#line 6357 "ViewCollection.c" - } -#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = FALSE; -#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = ctr; -#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = count; -#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!(_tmp5_ < _tmp6_)) { -#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 6369 "ViewCollection.c" - } -#line 1074 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = ctr; -#line 1074 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = gee_list_get (to_show, _tmp7_); -#line 1074 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = (DataView*) _tmp8_; -#line 1075 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = view; -#line 1075 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (!data_view_is_visible (_tmp9_), "!view.is_visible()"); -#line 1077 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = view; -#line 1077 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data_view_internal_set_visible (_tmp10_, TRUE); -#line 1080 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = view; -#line 1080 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (data_view_is_selected (_tmp11_)) { -#line 6389 "ViewCollection.c" - DataSet* _tmp12_; - DataView* _tmp13_; - GeeArrayList* _tmp14_; - DataView* _tmp15_; -#line 1081 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = self->priv->selected; -#line 1081 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = view; -#line 1081 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (!data_set_contains (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_OBJECT, DataObject)), "!selected.contains(view)"); -#line 1082 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp14_ = added_selected; -#line 1082 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp15_ = view; -#line 1082 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_); -#line 6406 "ViewCollection.c" - } -#line 1073 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 6410 "ViewCollection.c" - } - } - } -#line 1086 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - added = view_collection_add_many_visible (self, G_TYPE_CHECK_INSTANCE_CAST (to_show, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1087 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp16_ = added; -#line 1087 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (_tmp16_, "added"); -#line 1089 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp17_ = added_selected; -#line 1089 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_add_many_selected (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1091 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp18_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (to_show, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1091 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp19_ = _tmp18_; -#line 1091 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp19_ > 0) { -#line 1092 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_items_shown (self, G_TYPE_CHECK_INSTANCE_CAST (to_show, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1093 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_items_visibility_changed (self, G_TYPE_CHECK_INSTANCE_CAST (to_show, GEE_TYPE_COLLECTION, GeeCollection)); -#line 6434 "ViewCollection.c" - } -#line 1069 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (added_selected); -#line 6438 "ViewCollection.c" -} - - -gboolean -view_collection_has_view_for_source (ViewCollection* self, - DataSource* source) -{ - gboolean result = FALSE; - DataView* _tmp0_; - DataView* _tmp1_; - gboolean _tmp2_; -#line 1098 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE); -#line 1098 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 1099 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = view_collection_get_view_for_source (self, source); -#line 1099 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = _tmp0_; -#line 1099 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _tmp1_ != NULL; -#line 1099 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp1_); -#line 1099 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = _tmp2_; -#line 1099 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 6466 "ViewCollection.c" -} - - -DataView* -view_collection_get_view_for_source (ViewCollection* self, - DataSource* source) -{ - DataView* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 1103 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL); -#line 1103 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 1104 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->source_map; -#line 1104 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), source); -#line 1104 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = (DataView*) _tmp1_; -#line 1104 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 6489 "ViewCollection.c" -} - - -gboolean -view_collection_has_view_for_source_with_filtered (ViewCollection* self, - DataSource* source) -{ - gboolean result = FALSE; - DataView* _tmp0_; - DataView* _tmp1_; - gboolean _tmp2_; -#line 1108 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE); -#line 1108 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 1109 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = view_collection_get_view_for_source_filtered (self, source); -#line 1109 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = _tmp0_; -#line 1109 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _tmp1_ != NULL; -#line 1109 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp1_); -#line 1109 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = _tmp2_; -#line 1109 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 6517 "ViewCollection.c" -} - - -DataView* -view_collection_get_view_for_source_filtered (ViewCollection* self, - DataSource* source) -{ - DataView* result = NULL; - DataView* view = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - gboolean _tmp2_ = FALSE; - DataView* _tmp3_; -#line 1113 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL); -#line 1113 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 1114 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->source_map; -#line 1114 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), source); -#line 1114 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = (DataView*) _tmp1_; -#line 1116 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = view; -#line 1116 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp3_ != NULL) { -#line 6545 "ViewCollection.c" - DataView* _tmp4_; -#line 1116 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = view; -#line 1116 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = !view_collection_is_in_filter (self, _tmp4_); -#line 6551 "ViewCollection.c" - } else { -#line 1116 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = FALSE; -#line 6555 "ViewCollection.c" - } -#line 1116 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp2_) { -#line 1117 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = NULL; -#line 1117 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 1117 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 6565 "ViewCollection.c" - } -#line 1118 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = view; -#line 1118 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 6571 "ViewCollection.c" -} - - -GeeCollection* -view_collection_get_sources (ViewCollection* self) -{ - GeeCollection* result = NULL; - GeeHashMap* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeSet* _tmp3_; - GeeSet* _tmp4_; - GeeSet* _tmp5_; - GeeCollection* _tmp6_; -#line 1122 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL); -#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->source_map; -#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _tmp1_; -#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = _tmp2_; -#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = gee_set_get_read_only_view (_tmp3_); -#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = _tmp4_; -#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection); -#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp3_); -#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = _tmp6_; -#line 1123 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 6608 "ViewCollection.c" -} - - -gboolean -view_collection_has_source_of_type (ViewCollection* self, - GType t) -{ - gboolean result = FALSE; -#line 1127 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE); -#line 1128 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (g_type_is_a (t, TYPE_DATA_SOURCE), "t.is_a(typeof(DataSource))"); -#line 6621 "ViewCollection.c" - { - GeeIterator* _source_it = NULL; - GeeHashMap* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeSet* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->source_map; -#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _tmp1_; -#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = _tmp2_; -#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = _tmp4_; -#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp3_); -#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _source_it = _tmp5_; -#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 6648 "ViewCollection.c" - GeeIterator* _tmp6_; - DataSource* source = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - DataSource* _tmp9_; -#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = _source_it; -#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 6660 "ViewCollection.c" - } -#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = _source_it; -#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - source = (DataSource*) _tmp8_; -#line 1131 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = source; -#line 1131 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (g_type_is_a (G_TYPE_FROM_INSTANCE (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, G_TYPE_OBJECT, GObject)), t)) { -#line 1132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = TRUE; -#line 1132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (source); -#line 1132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_source_it); -#line 1132 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 6680 "ViewCollection.c" - } -#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (source); -#line 6684 "ViewCollection.c" - } -#line 1130 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_source_it); -#line 6688 "ViewCollection.c" - } -#line 1135 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = FALSE; -#line 1135 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 6694 "ViewCollection.c" -} - - -gint -view_collection_get_sources_of_type_count (ViewCollection* self, - GType t) -{ - gint result = 0; - gint count = 0; -#line 1138 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), 0); -#line 1139 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (g_type_is_a (t, TYPE_DATA_SOURCE), "t.is_a(typeof(DataSource))"); -#line 1141 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - count = 0; -#line 6710 "ViewCollection.c" - { - GeeIterator* _object_it = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = _tmp0_; -#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = _tmp2_; -#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp1_); -#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _object_it = _tmp3_; -#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 6731 "ViewCollection.c" - GeeIterator* _tmp4_; - DataObject* object = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - DataObject* _tmp7_; - DataSource* _tmp8_; - DataSource* _tmp9_; - gboolean _tmp10_; -#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = _object_it; -#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 6746 "ViewCollection.c" - } -#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = _object_it; -#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - object = (DataObject*) _tmp6_; -#line 1143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = object; -#line 1143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_VIEW, DataView)); -#line 1143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = _tmp8_; -#line 1143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = g_type_is_a (G_TYPE_FROM_INSTANCE (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, G_TYPE_OBJECT, GObject)), t); -#line 1143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp9_); -#line 1143 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp10_) { -#line 6766 "ViewCollection.c" - gint _tmp11_; -#line 1144 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = count; -#line 1144 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - count = _tmp11_ + 1; -#line 6772 "ViewCollection.c" - } -#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (object); -#line 6776 "ViewCollection.c" - } -#line 1142 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_object_it); -#line 6780 "ViewCollection.c" - } -#line 1147 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = count; -#line 1147 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 6786 "ViewCollection.c" -} - - -GeeList* -view_collection_get_sources_of_type (ViewCollection* self, - GType t) -{ - GeeList* result = NULL; - GeeList* sources = NULL; -#line 1150 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL); -#line 1151 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _vala_assert (g_type_is_a (t, TYPE_DATA_SOURCE), "t.is_a(typeof(DataSource))"); -#line 1153 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - sources = NULL; -#line 6802 "ViewCollection.c" - { - GeeIterator* _object_it = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = _tmp0_; -#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = _tmp2_; -#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp1_); -#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _object_it = _tmp3_; -#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 6823 "ViewCollection.c" - GeeIterator* _tmp4_; - DataObject* object = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - DataSource* source = NULL; - DataObject* _tmp7_; - DataSource* _tmp8_; - DataSource* _tmp9_; -#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = _object_it; -#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 6838 "ViewCollection.c" - } -#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = _object_it; -#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - object = (DataObject*) _tmp6_; -#line 1155 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = object; -#line 1155 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_VIEW, DataView)); -#line 1155 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - source = _tmp8_; -#line 1156 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = source; -#line 1156 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (g_type_is_a (G_TYPE_FROM_INSTANCE (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, G_TYPE_OBJECT, GObject)), t)) { -#line 6856 "ViewCollection.c" - GeeList* _tmp10_; - GeeList* _tmp12_; - DataSource* _tmp13_; -#line 1157 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = sources; -#line 1157 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp10_ == NULL) { -#line 6864 "ViewCollection.c" - GeeArrayList* _tmp11_; -#line 1158 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = gee_array_list_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1158 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (sources); -#line 1158 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_LIST, GeeList); -#line 6872 "ViewCollection.c" - } -#line 1160 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = sources; -#line 1160 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = source; -#line 1160 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), _tmp13_); -#line 6880 "ViewCollection.c" - } -#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (source); -#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (object); -#line 6886 "ViewCollection.c" - } -#line 1154 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_object_it); -#line 6890 "ViewCollection.c" - } -#line 1164 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = sources; -#line 1164 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 6896 "ViewCollection.c" -} - - -GeeList* -view_collection_get_selected_sources (ViewCollection* self) -{ - GeeList* result = NULL; - GeeList* sources = NULL; - GeeArrayList* _tmp0_; - gint count = 0; - DataSet* _tmp1_; -#line 1167 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL); -#line 1168 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_array_list_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1168 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList); -#line 1170 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = self->priv->selected; -#line 1170 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - count = data_set_get_count (_tmp1_); -#line 6918 "ViewCollection.c" - { - gint ctr = 0; -#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ctr = 0; -#line 6923 "ViewCollection.c" - { - gboolean _tmp2_ = FALSE; -#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = TRUE; -#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 6930 "ViewCollection.c" - gint _tmp4_; - gint _tmp5_; - GeeList* _tmp6_; - DataSet* _tmp7_; - gint _tmp8_; - DataObject* _tmp9_; - DataView* _tmp10_; - DataSource* _tmp11_; - DataSource* _tmp12_; -#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!_tmp2_) { -#line 6942 "ViewCollection.c" - gint _tmp3_; -#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = ctr; -#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ctr = _tmp3_ + 1; -#line 6948 "ViewCollection.c" - } -#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = FALSE; -#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = ctr; -#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = count; -#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!(_tmp4_ < _tmp5_)) { -#line 1171 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 6960 "ViewCollection.c" - } -#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = sources; -#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = self->priv->selected; -#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = ctr; -#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = data_set_get_at (_tmp7_, _tmp8_); -#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_VIEW, DataView); -#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = data_view_get_source (_tmp10_); -#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = _tmp11_; -#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection), _tmp12_); -#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp12_); -#line 1172 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp10_); -#line 6982 "ViewCollection.c" - } - } - } -#line 1174 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = sources; -#line 1174 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 6990 "ViewCollection.c" -} - - -DataSource* -view_collection_get_selected_source_at (ViewCollection* self, - gint index) -{ - DataSource* result = NULL; - DataObject* object = NULL; - DataSet* _tmp0_; - DataObject* _tmp1_; - DataSource* _tmp2_ = NULL; - DataObject* _tmp3_; -#line 1177 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL); -#line 1178 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->selected; -#line 1178 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = data_set_get_at (_tmp0_, index); -#line 1178 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - object = _tmp1_; -#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = object; -#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp3_ != NULL) { -#line 7016 "ViewCollection.c" - DataObject* _tmp4_; - DataSource* _tmp5_; -#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = object; -#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = data_view_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_VIEW, DataView)); -#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp2_); -#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _tmp5_; -#line 7027 "ViewCollection.c" - } else { -#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp2_); -#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = NULL; -#line 7033 "ViewCollection.c" - } -#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = _tmp2_; -#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (object); -#line 1180 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 7041 "ViewCollection.c" -} - - -GeeList* -view_collection_get_selected_sources_of_type (ViewCollection* self, - GType t) -{ - GeeList* result = NULL; - GeeList* sources = NULL; -#line 1183 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), NULL); -#line 1184 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - sources = NULL; -#line 7055 "ViewCollection.c" - { - GeeList* _view_list = NULL; - GeeList* _tmp0_; - gint _view_size = 0; - GeeList* _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint _view_index = 0; -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = view_collection_get_selected (self); -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_list = _tmp0_; -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = _view_list; -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = _tmp2_; -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_size = _tmp3_; -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_index = -1; -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 7080 "ViewCollection.c" - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; - DataView* view = NULL; - GeeList* _tmp7_; - gint _tmp8_; - gpointer _tmp9_; - DataSource* source = NULL; - DataView* _tmp10_; - DataSource* _tmp11_; - DataSource* _tmp12_; -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = _view_index; -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_index = _tmp4_ + 1; -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = _view_index; -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = _view_size; -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!(_tmp5_ < _tmp6_)) { -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 7104 "ViewCollection.c" - } -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = _view_list; -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = _view_index; -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = gee_list_get (_tmp7_, _tmp8_); -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = (DataView*) _tmp9_; -#line 1186 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = view; -#line 1186 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = data_view_get_source (_tmp10_); -#line 1186 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - source = _tmp11_; -#line 1187 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = source; -#line 1187 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (g_type_is_a (G_TYPE_FROM_INSTANCE (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, G_TYPE_OBJECT, GObject)), t)) { -#line 7124 "ViewCollection.c" - GeeList* _tmp13_; - GeeList* _tmp15_; - DataSource* _tmp16_; -#line 1188 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = sources; -#line 1188 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp13_ == NULL) { -#line 7132 "ViewCollection.c" - GeeArrayList* _tmp14_; -#line 1189 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp14_ = gee_array_list_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 1189 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (sources); -#line 1189 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - sources = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_LIST, GeeList); -#line 7140 "ViewCollection.c" - } -#line 1191 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp15_ = sources; -#line 1191 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp16_ = source; -#line 1191 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection), _tmp16_); -#line 7148 "ViewCollection.c" - } -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (source); -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 7154 "ViewCollection.c" - } -#line 1185 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_view_list); -#line 7158 "ViewCollection.c" - } -#line 1195 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = sources; -#line 1195 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 7164 "ViewCollection.c" -} - - -gint -view_collection_index_of_source (ViewCollection* self, - DataSource* source) -{ - gint result = 0; - DataView* view = NULL; - DataView* _tmp0_; - gint _tmp1_ = 0; - DataView* _tmp2_; -#line 1199 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), 0); -#line 1199 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), 0); -#line 1200 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = view_collection_get_view_for_source (self, source); -#line 1200 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = _tmp0_; -#line 1202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = view; -#line 1202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp2_ != NULL) { -#line 7189 "ViewCollection.c" - DataView* _tmp3_; -#line 1202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = view; -#line 1202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = data_collection_index_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_OBJECT, DataObject)); -#line 7195 "ViewCollection.c" - } else { -#line 1202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = -1; -#line 7199 "ViewCollection.c" - } -#line 1202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = _tmp1_; -#line 1202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 1202 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 7207 "ViewCollection.c" -} - - -void -view_collection_internal_notify_view_altered (ViewCollection* self, - DataView* view) -{ -#line 1206 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 1206 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_DATA_VIEW (view)); -#line 1207 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!data_collection_are_notifications_frozen (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection))) { -#line 7221 "ViewCollection.c" - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; -#line 1208 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_item_view_altered (self, view); -#line 1209 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = data_collection_get_singleton (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_OBJECT, DataObject)); -#line 1209 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 1209 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_views_altered (self, _tmp1_); -#line 1209 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp1_); -#line 7234 "ViewCollection.c" - } else { - GeeHashSet* _tmp2_; - GeeHashSet* _tmp4_; -#line 1211 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = self->priv->frozen_views_altered; -#line 1211 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp2_ == NULL) { -#line 7242 "ViewCollection.c" - GeeHashSet* _tmp3_; -#line 1212 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = gee_hash_set_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1212 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (self->priv->frozen_views_altered); -#line 1212 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->frozen_views_altered = _tmp3_; -#line 7250 "ViewCollection.c" - } -#line 1213 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = self->priv->frozen_views_altered; -#line 1213 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), view); -#line 7256 "ViewCollection.c" - } -} - - -void -view_collection_internal_notify_geometry_altered (ViewCollection* self, - DataView* view) -{ -#line 1218 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_COLLECTION (self)); -#line 1218 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_DATA_VIEW (view)); -#line 1219 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!data_collection_are_notifications_frozen (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection))) { -#line 7271 "ViewCollection.c" - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; -#line 1220 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_item_geometry_altered (self, view); -#line 1221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = data_collection_get_singleton (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_OBJECT, DataObject)); -#line 1221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 1221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_geometries_altered (self, _tmp1_); -#line 1221 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_tmp1_); -#line 7284 "ViewCollection.c" - } else { - GeeHashSet* _tmp2_; - GeeHashSet* _tmp4_; -#line 1223 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = self->priv->frozen_geometries_altered; -#line 1223 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp2_ == NULL) { -#line 7292 "ViewCollection.c" - GeeHashSet* _tmp3_; -#line 1224 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = gee_hash_set_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 1224 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (self->priv->frozen_geometries_altered); -#line 1224 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->frozen_geometries_altered = _tmp3_; -#line 7300 "ViewCollection.c" - } -#line 1225 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = self->priv->frozen_geometries_altered; -#line 1225 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), view); -#line 7306 "ViewCollection.c" - } -} - - -static void -view_collection_real_notify_thawed (DataCollection* base) -{ - ViewCollection * self; - GeeHashSet* _tmp0_; - GeeHashSet* _tmp8_; -#line 1229 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIEW_COLLECTION, ViewCollection); -#line 1230 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->priv->frozen_views_altered; -#line 1230 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp0_ != NULL) { -#line 7323 "ViewCollection.c" - GeeHashSet* _tmp7_; - { - GeeIterator* _view_it = NULL; - GeeHashSet* _tmp1_; - GeeIterator* _tmp2_; -#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = self->priv->frozen_views_altered; -#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_it = _tmp2_; -#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 7337 "ViewCollection.c" - GeeIterator* _tmp3_; - DataView* view = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - DataView* _tmp6_; -#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = _view_it; -#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 7349 "ViewCollection.c" - } -#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = _view_it; -#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = (DataView*) _tmp5_; -#line 1232 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = view; -#line 1232 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_item_view_altered (self, _tmp6_); -#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 7363 "ViewCollection.c" - } -#line 1231 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_view_it); -#line 7367 "ViewCollection.c" - } -#line 1233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = self->priv->frozen_views_altered; -#line 1233 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_views_altered (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1234 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (self->priv->frozen_views_altered); -#line 1234 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->frozen_views_altered = NULL; -#line 7377 "ViewCollection.c" - } -#line 1237 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp8_ = self->priv->frozen_geometries_altered; -#line 1237 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (_tmp8_ != NULL) { -#line 7383 "ViewCollection.c" - GeeHashSet* _tmp15_; - { - GeeIterator* _view_it = NULL; - GeeHashSet* _tmp9_; - GeeIterator* _tmp10_; -#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp9_ = self->priv->frozen_geometries_altered; -#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp10_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_it = _tmp10_; -#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - while (TRUE) { -#line 7397 "ViewCollection.c" - GeeIterator* _tmp11_; - DataView* view = NULL; - GeeIterator* _tmp12_; - gpointer _tmp13_; - DataView* _tmp14_; -#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp11_ = _view_it; -#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!gee_iterator_next (_tmp11_)) { -#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - break; -#line 7409 "ViewCollection.c" - } -#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp12_ = _view_it; -#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp13_ = gee_iterator_get (_tmp12_); -#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view = (DataView*) _tmp13_; -#line 1239 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp14_ = view; -#line 1239 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_item_geometry_altered (self, _tmp14_); -#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (view); -#line 7423 "ViewCollection.c" - } -#line 1238 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (_view_it); -#line 7427 "ViewCollection.c" - } -#line 1240 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp15_ = self->priv->frozen_geometries_altered; -#line 1240 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_notify_geometries_altered (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1241 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (self->priv->frozen_geometries_altered); -#line 1241 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->frozen_geometries_altered = NULL; -#line 7437 "ViewCollection.c" - } -#line 1244 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - DATA_COLLECTION_CLASS (view_collection_parent_class)->notify_thawed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 7441 "ViewCollection.c" -} - - -gboolean -view_collection_are_items_filtered_out (ViewCollection* self) -{ - gboolean result = FALSE; -#line 1247 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (self), FALSE); -#line 1248 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = DATA_COLLECTION_CLASS (view_collection_parent_class)->get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)) != data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 1248 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 7455 "ViewCollection.c" -} - - -static void -view_collection_real_items_selected (ViewCollection* self, - GeeIterable* selected) -{ -#line 75 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_ITERABLE (selected)); -#line 7465 "ViewCollection.c" -} - - -static void -view_collection_real_items_unselected (ViewCollection* self, - GeeIterable* unselected) -{ -#line 79 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_ITERABLE (unselected)); -#line 7475 "ViewCollection.c" -} - - -static void -view_collection_real_items_state_changed (ViewCollection* self, - GeeIterable* changed) -{ -#line 83 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_ITERABLE (changed)); -#line 7485 "ViewCollection.c" -} - - -static void -view_collection_real_selection_group_altered (ViewCollection* self) -{ -} - - -static void -view_collection_real_items_shown (ViewCollection* self, - GeeCollection* visible) -{ -#line 94 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (visible)); -#line 7501 "ViewCollection.c" -} - - -static void -view_collection_real_items_hidden (ViewCollection* self, - GeeCollection* hidden) -{ -#line 98 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (hidden)); -#line 7511 "ViewCollection.c" -} - - -static void -view_collection_real_items_visibility_changed (ViewCollection* self, - GeeCollection* changed) -{ -#line 102 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (changed)); -#line 7521 "ViewCollection.c" -} - - -static void -view_collection_real_item_view_altered (ViewCollection* self, - DataView* view) -{ -#line 106 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_DATA_VIEW (view)); -#line 7531 "ViewCollection.c" -} - - -static void -view_collection_real_item_geometry_altered (ViewCollection* self, - DataView* view) -{ -#line 110 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_DATA_VIEW (view)); -#line 7541 "ViewCollection.c" -} - - -static void -view_collection_real_views_altered (ViewCollection* self, - GeeCollection* views) -{ -#line 113 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (views)); -#line 7551 "ViewCollection.c" -} - - -static void -view_collection_real_geometries_altered (ViewCollection* self, - GeeCollection* views) -{ -#line 116 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (GEE_IS_COLLECTION (views)); -#line 7561 "ViewCollection.c" -} - - -static void -view_collection_real_view_filter_installed (ViewCollection* self, - ViewFilter* filer) -{ -#line 119 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_FILTER (filer)); -#line 7571 "ViewCollection.c" -} - - -static void -g_cclosure_user_marshal_VOID__VIEW_FILTER (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__VIEW_FILTER) (gpointer data1, gpointer arg_1, gpointer data2); - register GMarshalFunc_VOID__VIEW_FILTER callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (n_param_values == 2); -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data1 = closure->data; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data2 = param_values->data[0].v_pointer; -#line 7597 "ViewCollection.c" - } else { -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data1 = param_values->data[0].v_pointer; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - data2 = closure->data; -#line 7603 "ViewCollection.c" - } -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - callback = (GMarshalFunc_VOID__VIEW_FILTER) (marshal_data ? marshal_data : cc->callback); -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - callback (data1, value_get_view_filter (param_values + 1), data2); -#line 7609 "ViewCollection.c" -} - - -static void -view_collection_real_view_filter_removed (ViewCollection* self, - ViewFilter* filer) -{ -#line 122 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (IS_VIEW_FILTER (filer)); -#line 7619 "ViewCollection.c" -} - - -ViewCollectionMonitor* -view_collection_monitor_construct (GType object_type) -{ - ViewCollectionMonitor* self = NULL; -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = (ViewCollectionMonitor*) g_type_create_instance (object_type); -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return self; -#line 7631 "ViewCollection.c" -} - - -ViewCollectionMonitor* -view_collection_monitor_new (void) -{ -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return view_collection_monitor_construct (VIEW_COLLECTION_TYPE_MONITOR); -#line 7640 "ViewCollection.c" -} - - -static void -view_collection_value_monitor_init (GValue* value) -{ -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = NULL; -#line 7649 "ViewCollection.c" -} - - -static void -view_collection_value_monitor_free_value (GValue* value) -{ -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (value->data[0].v_pointer) { -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_monitor_unref (value->data[0].v_pointer); -#line 7660 "ViewCollection.c" - } -} - - -static void -view_collection_value_monitor_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (src_value->data[0].v_pointer) { -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - dest_value->data[0].v_pointer = view_collection_monitor_ref (src_value->data[0].v_pointer); -#line 7673 "ViewCollection.c" - } else { -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - dest_value->data[0].v_pointer = NULL; -#line 7677 "ViewCollection.c" - } -} - - -static gpointer -view_collection_value_monitor_peek_pointer (const GValue* value) -{ -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return value->data[0].v_pointer; -#line 7687 "ViewCollection.c" -} - - -static gchar* -view_collection_value_monitor_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (collect_values[0].v_pointer) { -#line 7699 "ViewCollection.c" - ViewCollectionMonitor * object; - object = collect_values[0].v_pointer; -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (object->parent_instance.g_class == NULL) { -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 7706 "ViewCollection.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 7710 "ViewCollection.c" - } -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = view_collection_monitor_ref (object); -#line 7714 "ViewCollection.c" - } else { -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = NULL; -#line 7718 "ViewCollection.c" - } -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return NULL; -#line 7722 "ViewCollection.c" -} - - -static gchar* -view_collection_value_monitor_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - ViewCollectionMonitor ** object_p; - object_p = collect_values[0].v_pointer; -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!object_p) { -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 7738 "ViewCollection.c" - } -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!value->data[0].v_pointer) { -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - *object_p = NULL; -#line 7744 "ViewCollection.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - *object_p = value->data[0].v_pointer; -#line 7748 "ViewCollection.c" - } else { -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - *object_p = view_collection_monitor_ref (value->data[0].v_pointer); -#line 7752 "ViewCollection.c" - } -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return NULL; -#line 7756 "ViewCollection.c" -} - - -GParamSpec* -view_collection_param_spec_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ViewCollectionParamSpecMonitor* spec; -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (g_type_is_a (object_type, VIEW_COLLECTION_TYPE_MONITOR), NULL); -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return G_PARAM_SPEC (spec); -#line 7776 "ViewCollection.c" -} - - -gpointer -view_collection_value_get_monitor (const GValue* value) -{ -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VIEW_COLLECTION_TYPE_MONITOR), NULL); -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return value->data[0].v_pointer; -#line 7787 "ViewCollection.c" -} - - -void -view_collection_value_set_monitor (GValue* value, - gpointer v_object) -{ - ViewCollectionMonitor * old; -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VIEW_COLLECTION_TYPE_MONITOR)); -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - old = value->data[0].v_pointer; -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (v_object) { -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, VIEW_COLLECTION_TYPE_MONITOR)); -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = v_object; -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_monitor_ref (value->data[0].v_pointer); -#line 7810 "ViewCollection.c" - } else { -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = NULL; -#line 7814 "ViewCollection.c" - } -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (old) { -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_monitor_unref (old); -#line 7820 "ViewCollection.c" - } -} - - -void -view_collection_value_take_monitor (GValue* value, - gpointer v_object) -{ - ViewCollectionMonitor * old; -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VIEW_COLLECTION_TYPE_MONITOR)); -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - old = value->data[0].v_pointer; -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (v_object) { -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, VIEW_COLLECTION_TYPE_MONITOR)); -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = v_object; -#line 7842 "ViewCollection.c" - } else { -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = NULL; -#line 7846 "ViewCollection.c" - } -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (old) { -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_monitor_unref (old); -#line 7852 "ViewCollection.c" - } -} - - -static void -view_collection_monitor_class_init (ViewCollectionMonitorClass * klass) -{ -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_monitor_parent_class = g_type_class_peek_parent (klass); -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionMonitorClass *) klass)->finalize = view_collection_monitor_finalize; -#line 7864 "ViewCollection.c" -} - - -static void -view_collection_monitor_instance_init (ViewCollectionMonitor * self) -{ -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->ref_count = 1; -#line 7873 "ViewCollection.c" -} - - -static void -view_collection_monitor_finalize (ViewCollectionMonitor * obj) -{ - ViewCollectionMonitor * self; -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor); -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_handlers_destroy (self); -#line 7885 "ViewCollection.c" -} - - -GType -view_collection_monitor_get_type (void) -{ - static volatile gsize view_collection_monitor_type_id__volatile = 0; - if (g_once_init_enter (&view_collection_monitor_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { view_collection_value_monitor_init, view_collection_value_monitor_free_value, view_collection_value_monitor_copy_value, view_collection_value_monitor_peek_pointer, "p", view_collection_value_monitor_collect_value, "p", view_collection_value_monitor_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (ViewCollectionMonitorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) view_collection_monitor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ViewCollectionMonitor), 0, (GInstanceInitFunc) view_collection_monitor_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType view_collection_monitor_type_id; - view_collection_monitor_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ViewCollectionMonitor", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&view_collection_monitor_type_id__volatile, view_collection_monitor_type_id); - } - return view_collection_monitor_type_id__volatile; -} - - -gpointer -view_collection_monitor_ref (gpointer instance) -{ - ViewCollectionMonitor * self; - self = instance; -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_atomic_int_inc (&self->ref_count); -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return instance; -#line 7914 "ViewCollection.c" -} - - -void -view_collection_monitor_unref (gpointer instance) -{ - ViewCollectionMonitor * self; - self = instance; -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - VIEW_COLLECTION_MONITOR_GET_CLASS (self)->finalize (self); -#line 22 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 7929 "ViewCollection.c" - } -} - - -static void -_view_collection_on_sources_added_data_collection_items_added (DataCollection* _sender, - GeeIterable* added, - gpointer self) -{ -#line 44 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_on_sources_added ((ViewCollection*) self, _sender, added); -#line 7941 "ViewCollection.c" -} - - -static void -_view_collection_on_sources_removed_data_collection_items_removed (DataCollection* _sender, - GeeIterable* removed, - gpointer self) -{ -#line 45 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_on_sources_removed ((ViewCollection*) self, removed); -#line 7952 "ViewCollection.c" -} - - -static void -_view_collection_on_sources_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 46 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_on_sources_altered ((ViewCollection*) self, _sender, items); -#line 7963 "ViewCollection.c" -} - - -static gpointer -_view_manager_ref0 (gpointer self) -{ -#line 35 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return self ? view_manager_ref (self) : NULL; -#line 7972 "ViewCollection.c" -} - - -static gpointer -_alteration_ref0 (gpointer self) -{ -#line 36 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return self ? alteration_ref (self) : NULL; -#line 7981 "ViewCollection.c" -} - - -static ViewCollectionMonitorImpl* -view_collection_monitor_impl_construct (GType object_type, - ViewCollection* owner, - SourceCollection* sources, - ViewManager* manager, - Alteration* prereq) -{ - ViewCollectionMonitorImpl* self = NULL; - ViewCollection* _tmp0_; - SourceCollection* _tmp1_; - ViewManager* _tmp2_; - Alteration* _tmp3_; -#line 31 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_COLLECTION (owner), NULL); -#line 31 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_SOURCE_COLLECTION (sources), NULL); -#line 31 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_MANAGER (manager), NULL); -#line 31 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail ((prereq == NULL) || IS_ALTERATION (prereq), NULL); -#line 31 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = (ViewCollectionMonitorImpl*) view_collection_monitor_construct (object_type); -#line 33 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = _data_collection_ref0 (owner); -#line 33 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _data_collection_unref0 (self->owner); -#line 33 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->owner = _tmp0_; -#line 34 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = _data_collection_ref0 (sources); -#line 34 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _data_collection_unref0 (self->sources); -#line 34 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->sources = _tmp1_; -#line 35 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = _view_manager_ref0 (manager); -#line 35 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_manager_unref0 (self->manager); -#line 35 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->manager = _tmp2_; -#line 36 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = _alteration_ref0 (prereq); -#line 36 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _alteration_unref0 (self->prereq); -#line 36 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->prereq = _tmp3_; -#line 38 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_DATA_COLLECTION, DataCollection), "items-added", (GCallback) _view_collection_on_sources_added_data_collection_items_added, owner); -#line 39 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_DATA_COLLECTION, DataCollection), "items-removed", (GCallback) _view_collection_on_sources_removed_data_collection_items_removed, owner); -#line 40 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (sources, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _view_collection_on_sources_altered_data_collection_items_altered, owner); -#line 31 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return self; -#line 8039 "ViewCollection.c" -} - - -static ViewCollectionMonitorImpl* -view_collection_monitor_impl_new (ViewCollection* owner, - SourceCollection* sources, - ViewManager* manager, - Alteration* prereq) -{ -#line 31 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return view_collection_monitor_impl_construct (VIEW_COLLECTION_TYPE_MONITOR_IMPL, owner, sources, manager, prereq); -#line 8051 "ViewCollection.c" -} - - -static void -view_collection_monitor_impl_class_init (ViewCollectionMonitorImplClass * klass) -{ -#line 25 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_monitor_impl_parent_class = g_type_class_peek_parent (klass); -#line 25 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionMonitorClass *) klass)->finalize = view_collection_monitor_impl_finalize; -#line 8062 "ViewCollection.c" -} - - -static void -view_collection_monitor_impl_instance_init (ViewCollectionMonitorImpl * self) -{ -} - - -static void -view_collection_monitor_impl_finalize (ViewCollectionMonitor * obj) -{ - ViewCollectionMonitorImpl * self; - SourceCollection* _tmp0_; - ViewCollection* _tmp1_; - guint _tmp2_; - SourceCollection* _tmp3_; - ViewCollection* _tmp4_; - guint _tmp5_; - SourceCollection* _tmp6_; - ViewCollection* _tmp7_; - guint _tmp8_; -#line 25 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, VIEW_COLLECTION_TYPE_MONITOR_IMPL, ViewCollectionMonitorImpl); -#line 44 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = self->sources; -#line 44 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = self->owner; -#line 44 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_parse_name ("items-added", TYPE_DATA_COLLECTION, &_tmp2_, NULL, FALSE); -#line 44 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _view_collection_on_sources_added_data_collection_items_added, _tmp1_); -#line 45 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = self->sources; -#line 45 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp4_ = self->owner; -#line 45 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_parse_name ("items-removed", TYPE_DATA_COLLECTION, &_tmp5_, NULL, FALSE); -#line 45 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _view_collection_on_sources_removed_data_collection_items_removed, _tmp4_); -#line 46 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp6_ = self->sources; -#line 46 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp7_ = self->owner; -#line 46 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp8_, NULL, FALSE); -#line 46 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _view_collection_on_sources_altered_data_collection_items_altered, _tmp7_); -#line 26 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _data_collection_unref0 (self->owner); -#line 27 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _data_collection_unref0 (self->sources); -#line 28 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _view_manager_unref0 (self->manager); -#line 29 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _alteration_unref0 (self->prereq); -#line 25 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - VIEW_COLLECTION_MONITOR_CLASS (view_collection_monitor_impl_parent_class)->finalize (obj); -#line 8121 "ViewCollection.c" -} - - -static GType -view_collection_monitor_impl_get_type (void) -{ - static volatile gsize view_collection_monitor_impl_type_id__volatile = 0; - if (g_once_init_enter (&view_collection_monitor_impl_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ViewCollectionMonitorImplClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) view_collection_monitor_impl_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ViewCollectionMonitorImpl), 0, (GInstanceInitFunc) view_collection_monitor_impl_instance_init, NULL }; - GType view_collection_monitor_impl_type_id; - view_collection_monitor_impl_type_id = g_type_register_static (VIEW_COLLECTION_TYPE_MONITOR, "ViewCollectionMonitorImpl", &g_define_type_info, 0); - g_once_init_leave (&view_collection_monitor_impl_type_id__volatile, view_collection_monitor_impl_type_id); - } - return view_collection_monitor_impl_type_id__volatile; -} - - -static ViewCollectionToggleLists* -view_collection_toggle_lists_construct (GType object_type) -{ - ViewCollectionToggleLists * self = NULL; -#line 50 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = (ViewCollectionToggleLists*) g_object_new (object_type, NULL); -#line 50 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return self; -#line 8147 "ViewCollection.c" -} - - -static ViewCollectionToggleLists* -view_collection_toggle_lists_new (void) -{ -#line 50 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return view_collection_toggle_lists_construct (VIEW_COLLECTION_TYPE_TOGGLE_LISTS); -#line 8156 "ViewCollection.c" -} - - -static void -view_collection_toggle_lists_class_init (ViewCollectionToggleListsClass * klass) -{ -#line 50 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_toggle_lists_parent_class = g_type_class_peek_parent (klass); -#line 50 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - G_OBJECT_CLASS (klass)->finalize = view_collection_toggle_lists_finalize; -#line 8167 "ViewCollection.c" -} - - -static void -view_collection_toggle_lists_instance_init (ViewCollectionToggleLists * self) -{ - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; -#line 51 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 51 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->selected = _tmp0_; -#line 52 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 52 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->unselected = _tmp1_; -#line 8184 "ViewCollection.c" -} - - -static void -view_collection_toggle_lists_finalize (GObject * obj) -{ - ViewCollectionToggleLists * self; -#line 50 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, VIEW_COLLECTION_TYPE_TOGGLE_LISTS, ViewCollectionToggleLists); -#line 51 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (self->selected); -#line 52 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (self->unselected); -#line 50 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - G_OBJECT_CLASS (view_collection_toggle_lists_parent_class)->finalize (obj); -#line 8200 "ViewCollection.c" -} - - -static GType -view_collection_toggle_lists_get_type (void) -{ - static volatile gsize view_collection_toggle_lists_type_id__volatile = 0; - if (g_once_init_enter (&view_collection_toggle_lists_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ViewCollectionToggleListsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) view_collection_toggle_lists_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ViewCollectionToggleLists), 0, (GInstanceInitFunc) view_collection_toggle_lists_instance_init, NULL }; - GType view_collection_toggle_lists_type_id; - view_collection_toggle_lists_type_id = g_type_register_static (G_TYPE_OBJECT, "ViewCollectionToggleLists", &g_define_type_info, 0); - g_once_init_leave (&view_collection_toggle_lists_type_id__volatile, view_collection_toggle_lists_type_id); - } - return view_collection_toggle_lists_type_id__volatile; -} - - -static void -view_collection_class_init (ViewCollectionClass * klass) -{ -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_parent_class = g_type_class_peek_parent (klass); -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((DataCollectionClass *) klass)->finalize = view_collection_finalize; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_type_class_add_private (klass, sizeof (ViewCollectionPrivate)); -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->notify_items_selected_unselected = (void (*) (ViewCollection *, GeeCollection*, GeeCollection*)) view_collection_real_notify_items_selected_unselected; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->notify_selection_group_altered = (void (*) (ViewCollection *)) view_collection_real_notify_selection_group_altered; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->notify_item_view_altered = (void (*) (ViewCollection *, DataView*)) view_collection_real_notify_item_view_altered; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->notify_views_altered = (void (*) (ViewCollection *, GeeCollection*)) view_collection_real_notify_views_altered; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->notify_item_geometry_altered = (void (*) (ViewCollection *, DataView*)) view_collection_real_notify_item_geometry_altered; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->notify_geometries_altered = (void (*) (ViewCollection *, GeeCollection*)) view_collection_real_notify_geometries_altered; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->notify_items_shown = (void (*) (ViewCollection *, GeeCollection*)) view_collection_real_notify_items_shown; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->notify_items_hidden = (void (*) (ViewCollection *, GeeCollection*)) view_collection_real_notify_items_hidden; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->notify_items_visibility_changed = (void (*) (ViewCollection *, GeeCollection*)) view_collection_real_notify_items_visibility_changed; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->notify_view_filter_installed = (void (*) (ViewCollection *, ViewFilter*)) view_collection_real_notify_view_filter_installed; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->notify_view_filter_removed = (void (*) (ViewCollection *, ViewFilter*)) view_collection_real_notify_view_filter_removed; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((DataCollectionClass *) klass)->clear = (void (*) (DataCollection *)) view_collection_real_clear; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((DataCollectionClass *) klass)->close = (void (*) (DataCollection *)) view_collection_real_close; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((DataCollectionClass *) klass)->valid_type = (gboolean (*) (DataCollection *, DataObject*)) view_collection_real_valid_type; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((DataCollectionClass *) klass)->add = (gboolean (*) (DataCollection *, DataObject*)) view_collection_real_add; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((DataCollectionClass *) klass)->add_many = (GeeCollection* (*) (DataCollection *, GeeCollection*, ProgressMonitor, void*)) view_collection_real_add_many; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((DataCollectionClass *) klass)->notify_items_added = (void (*) (DataCollection *, GeeIterable*)) view_collection_real_notify_items_added; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((DataCollectionClass *) klass)->notify_items_removed = (void (*) (DataCollection *, GeeIterable*)) view_collection_real_notify_items_removed; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((DataCollectionClass *) klass)->items_altered = (void (*) (DataCollection *, GeeMap*)) view_collection_real_items_altered; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((DataCollectionClass *) klass)->set_comparator = (void (*) (DataCollection *, Comparator, void*, ComparatorPredicate, void*)) view_collection_real_set_comparator; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((DataCollectionClass *) klass)->reset_comparator = (void (*) (DataCollection *)) view_collection_real_reset_comparator; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((DataCollectionClass *) klass)->get_all = (GeeCollection* (*) (DataCollection *)) view_collection_real_get_all; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((DataCollectionClass *) klass)->get_count = (gint (*) (DataCollection *)) view_collection_real_get_count; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((DataCollectionClass *) klass)->get_at = (DataObject* (*) (DataCollection *, gint)) view_collection_real_get_at; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((DataCollectionClass *) klass)->index_of = (gint (*) (DataCollection *, DataObject*)) view_collection_real_index_of; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((DataCollectionClass *) klass)->contains = (gboolean (*) (DataCollection *, DataObject*)) view_collection_real_contains; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->get_first = (DataView* (*) (ViewCollection *)) view_collection_real_get_first; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->get_first_unrejected = (DataView* (*) (ViewCollection *)) view_collection_real_get_first_unrejected; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->get_last = (DataView* (*) (ViewCollection *)) view_collection_real_get_last; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->get_next = (DataView* (*) (ViewCollection *, DataView*)) view_collection_real_get_next; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->get_previous = (DataView* (*) (ViewCollection *, DataView*)) view_collection_real_get_previous; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((DataCollectionClass *) klass)->notify_thawed = (void (*) (DataCollection *)) view_collection_real_notify_thawed; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->items_selected = view_collection_real_items_selected; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->items_unselected = view_collection_real_items_unselected; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->items_state_changed = view_collection_real_items_state_changed; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->selection_group_altered = view_collection_real_selection_group_altered; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->items_shown = view_collection_real_items_shown; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->items_hidden = view_collection_real_items_hidden; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->items_visibility_changed = view_collection_real_items_visibility_changed; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->item_view_altered = view_collection_real_item_view_altered; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->item_geometry_altered = view_collection_real_item_geometry_altered; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->views_altered = view_collection_real_views_altered; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->geometries_altered = view_collection_real_geometries_altered; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->view_filter_installed = view_collection_real_view_filter_installed; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewCollectionClass *) klass)->view_filter_removed = view_collection_real_view_filter_removed; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_signals[VIEW_COLLECTION_ITEMS_SELECTED_SIGNAL] = g_signal_new ("items-selected", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, items_selected), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_ITERABLE); -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_signals[VIEW_COLLECTION_ITEMS_UNSELECTED_SIGNAL] = g_signal_new ("items-unselected", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, items_unselected), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_ITERABLE); -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_signals[VIEW_COLLECTION_ITEMS_STATE_CHANGED_SIGNAL] = g_signal_new ("items-state-changed", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, items_state_changed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_ITERABLE); -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_signals[VIEW_COLLECTION_SELECTION_GROUP_ALTERED_SIGNAL] = g_signal_new ("selection-group-altered", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, selection_group_altered), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_signals[VIEW_COLLECTION_ITEMS_SHOWN_SIGNAL] = g_signal_new ("items-shown", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, items_shown), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION); -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_signals[VIEW_COLLECTION_ITEMS_HIDDEN_SIGNAL] = g_signal_new ("items-hidden", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, items_hidden), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION); -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_signals[VIEW_COLLECTION_ITEMS_VISIBILITY_CHANGED_SIGNAL] = g_signal_new ("items-visibility-changed", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, items_visibility_changed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION); -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_signals[VIEW_COLLECTION_ITEM_VIEW_ALTERED_SIGNAL] = g_signal_new ("item-view-altered", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, item_view_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_DATA_VIEW); -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_signals[VIEW_COLLECTION_ITEM_GEOMETRY_ALTERED_SIGNAL] = g_signal_new ("item-geometry-altered", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, item_geometry_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_DATA_VIEW); -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_signals[VIEW_COLLECTION_VIEWS_ALTERED_SIGNAL] = g_signal_new ("views-altered", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, views_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION); -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_signals[VIEW_COLLECTION_GEOMETRIES_ALTERED_SIGNAL] = g_signal_new ("geometries-altered", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, geometries_altered), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GEE_TYPE_COLLECTION); -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_signals[VIEW_COLLECTION_VIEW_FILTER_INSTALLED_SIGNAL] = g_signal_new ("view-filter-installed", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, view_filter_installed), NULL, NULL, g_cclosure_user_marshal_VOID__VIEW_FILTER, G_TYPE_NONE, 1, TYPE_VIEW_FILTER); -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_collection_signals[VIEW_COLLECTION_VIEW_FILTER_REMOVED_SIGNAL] = g_signal_new ("view-filter-removed", TYPE_VIEW_COLLECTION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewCollectionClass, view_filter_removed), NULL, NULL, g_cclosure_user_marshal_VOID__VIEW_FILTER, G_TYPE_NONE, 1, TYPE_VIEW_FILTER); -#line 8343 "ViewCollection.c" -} - - -static void -view_collection_instance_init (ViewCollection * self) -{ - GeeHashMultiMap* _tmp0_; - GeeHashSet* _tmp1_; - DataSet* _tmp2_; - GeeHashMap* _tmp3_; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv = VIEW_COLLECTION_GET_PRIVATE (self); -#line 59 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp0_ = gee_hash_multi_map_new (TYPE_SOURCE_COLLECTION, (GBoxedCopyFunc) data_collection_ref, (GDestroyNotify) data_collection_unref, VIEW_COLLECTION_TYPE_MONITOR_IMPL, (GBoxedCopyFunc) view_collection_monitor_ref, (GDestroyNotify) view_collection_monitor_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 59 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->monitors = _tmp0_; -#line 61 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->mirroring = NULL; -#line 62 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->mirroring_ctor = NULL; -#line 62 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->mirroring_ctor_target = self; -#line 63 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->should_mirror = NULL; -#line 63 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->should_mirror_target = self; -#line 64 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp1_ = gee_hash_set_new (TYPE_VIEW_FILTER, (GBoxedCopyFunc) view_filter_ref, (GDestroyNotify) view_filter_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 64 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->filters = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SET, GeeSet); -#line 65 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp2_ = data_set_new (); -#line 65 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->selected = _tmp2_; -#line 66 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->visible = NULL; -#line 67 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->frozen_views_altered = NULL; -#line 68 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->frozen_geometries_altered = NULL; -#line 72 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _tmp3_ = gee_hash_map_new (TYPE_DATA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 72 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->priv->source_map = _tmp3_; -#line 8388 "ViewCollection.c" -} - - -static void -view_collection_finalize (DataCollection * obj) -{ - ViewCollection * self; -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIEW_COLLECTION, ViewCollection); -#line 59 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (self->priv->monitors); -#line 61 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _data_collection_unref0 (self->priv->mirroring); -#line 64 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (self->priv->filters); -#line 65 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _data_set_unref0 (self->priv->selected); -#line 66 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _data_set_unref0 (self->priv->visible); -#line 67 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (self->priv->frozen_views_altered); -#line 68 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (self->priv->frozen_geometries_altered); -#line 72 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - _g_object_unref0 (self->priv->source_map); -#line 21 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - DATA_COLLECTION_CLASS (view_collection_parent_class)->finalize (obj); -#line 8416 "ViewCollection.c" -} - - -GType -view_collection_get_type (void) -{ - static volatile gsize view_collection_type_id__volatile = 0; - if (g_once_init_enter (&view_collection_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ViewCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) view_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ViewCollection), 0, (GInstanceInitFunc) view_collection_instance_init, NULL }; - GType view_collection_type_id; - view_collection_type_id = g_type_register_static (TYPE_DATA_COLLECTION, "ViewCollection", &g_define_type_info, 0); - g_once_init_leave (&view_collection_type_id__volatile, view_collection_type_id); - } - return view_collection_type_id__volatile; -} - - -static gboolean -view_manager_real_include_in_view (ViewManager* self, - DataSource* source) -{ - gboolean result = FALSE; -#line 1258 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 1259 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - result = TRUE; -#line 1259 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return result; -#line 8445 "ViewCollection.c" -} - - -gboolean -view_manager_include_in_view (ViewManager* self, - DataSource* source) -{ -#line 1258 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_MANAGER (self), FALSE); -#line 1258 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return VIEW_MANAGER_GET_CLASS (self)->include_in_view (self, source); -#line 8457 "ViewCollection.c" -} - - -static DataView* -view_manager_real_create_view (ViewManager* self, - DataSource* source) -{ -#line 1264 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_critical ("Type `%s' does not implement abstract method `view_manager_create_view'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 1264 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return NULL; -#line 8469 "ViewCollection.c" -} - - -DataView* -view_manager_create_view (ViewManager* self, - DataSource* source) -{ -#line 1264 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_MANAGER (self), NULL); -#line 1264 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return VIEW_MANAGER_GET_CLASS (self)->create_view (self, source); -#line 8481 "ViewCollection.c" -} - - -ViewManager* -view_manager_construct (GType object_type) -{ - ViewManager* self = NULL; -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = (ViewManager*) g_type_create_instance (object_type); -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return self; -#line 8493 "ViewCollection.c" -} - - -static void -value_view_manager_init (GValue* value) -{ -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = NULL; -#line 8502 "ViewCollection.c" -} - - -static void -value_view_manager_free_value (GValue* value) -{ -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (value->data[0].v_pointer) { -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_manager_unref (value->data[0].v_pointer); -#line 8513 "ViewCollection.c" - } -} - - -static void -value_view_manager_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (src_value->data[0].v_pointer) { -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - dest_value->data[0].v_pointer = view_manager_ref (src_value->data[0].v_pointer); -#line 8526 "ViewCollection.c" - } else { -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - dest_value->data[0].v_pointer = NULL; -#line 8530 "ViewCollection.c" - } -} - - -static gpointer -value_view_manager_peek_pointer (const GValue* value) -{ -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return value->data[0].v_pointer; -#line 8540 "ViewCollection.c" -} - - -static gchar* -value_view_manager_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (collect_values[0].v_pointer) { -#line 8552 "ViewCollection.c" - ViewManager * object; - object = collect_values[0].v_pointer; -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (object->parent_instance.g_class == NULL) { -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 8559 "ViewCollection.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 8563 "ViewCollection.c" - } -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = view_manager_ref (object); -#line 8567 "ViewCollection.c" - } else { -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = NULL; -#line 8571 "ViewCollection.c" - } -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return NULL; -#line 8575 "ViewCollection.c" -} - - -static gchar* -value_view_manager_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - ViewManager ** object_p; - object_p = collect_values[0].v_pointer; -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!object_p) { -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 8591 "ViewCollection.c" - } -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!value->data[0].v_pointer) { -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - *object_p = NULL; -#line 8597 "ViewCollection.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - *object_p = value->data[0].v_pointer; -#line 8601 "ViewCollection.c" - } else { -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - *object_p = view_manager_ref (value->data[0].v_pointer); -#line 8605 "ViewCollection.c" - } -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return NULL; -#line 8609 "ViewCollection.c" -} - - -GParamSpec* -param_spec_view_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecViewManager* spec; -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_VIEW_MANAGER), NULL); -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return G_PARAM_SPEC (spec); -#line 8629 "ViewCollection.c" -} - - -gpointer -value_get_view_manager (const GValue* value) -{ -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIEW_MANAGER), NULL); -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return value->data[0].v_pointer; -#line 8640 "ViewCollection.c" -} - - -void -value_set_view_manager (GValue* value, - gpointer v_object) -{ - ViewManager * old; -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIEW_MANAGER)); -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - old = value->data[0].v_pointer; -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (v_object) { -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIEW_MANAGER)); -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = v_object; -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_manager_ref (value->data[0].v_pointer); -#line 8663 "ViewCollection.c" - } else { -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = NULL; -#line 8667 "ViewCollection.c" - } -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (old) { -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_manager_unref (old); -#line 8673 "ViewCollection.c" - } -} - - -void -value_take_view_manager (GValue* value, - gpointer v_object) -{ - ViewManager * old; -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIEW_MANAGER)); -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - old = value->data[0].v_pointer; -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (v_object) { -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIEW_MANAGER)); -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = v_object; -#line 8695 "ViewCollection.c" - } else { -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = NULL; -#line 8699 "ViewCollection.c" - } -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (old) { -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_manager_unref (old); -#line 8705 "ViewCollection.c" - } -} - - -static void -view_manager_class_init (ViewManagerClass * klass) -{ -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_manager_parent_class = g_type_class_peek_parent (klass); -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewManagerClass *) klass)->finalize = view_manager_finalize; -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewManagerClass *) klass)->include_in_view = (gboolean (*) (ViewManager *, DataSource*)) view_manager_real_include_in_view; -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewManagerClass *) klass)->create_view = (DataView* (*) (ViewManager *, DataSource*)) view_manager_real_create_view; -#line 8721 "ViewCollection.c" -} - - -static void -view_manager_instance_init (ViewManager * self) -{ -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->ref_count = 1; -#line 8730 "ViewCollection.c" -} - - -static void -view_manager_finalize (ViewManager * obj) -{ - ViewManager * self; -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIEW_MANAGER, ViewManager); -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_handlers_destroy (self); -#line 8742 "ViewCollection.c" -} - - -GType -view_manager_get_type (void) -{ - static volatile gsize view_manager_type_id__volatile = 0; - if (g_once_init_enter (&view_manager_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_view_manager_init, value_view_manager_free_value, value_view_manager_copy_value, value_view_manager_peek_pointer, "p", value_view_manager_collect_value, "p", value_view_manager_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (ViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ViewManager), 0, (GInstanceInitFunc) view_manager_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType view_manager_type_id; - view_manager_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ViewManager", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&view_manager_type_id__volatile, view_manager_type_id); - } - return view_manager_type_id__volatile; -} - - -gpointer -view_manager_ref (gpointer instance) -{ - ViewManager * self; - self = instance; -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_atomic_int_inc (&self->ref_count); -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return instance; -#line 8771 "ViewCollection.c" -} - - -void -view_manager_unref (gpointer instance) -{ - ViewManager * self; - self = instance; -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - VIEW_MANAGER_GET_CLASS (self)->finalize (self); -#line 1254 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 8786 "ViewCollection.c" - } -} - - -static gboolean -view_filter_real_predicate (ViewFilter* self, - DataView* view) -{ - gboolean _tmp0_ = FALSE; -#line 1286 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_critical ("Type `%s' does not implement abstract method `view_filter_predicate'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 1286 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return _tmp0_; -#line 8800 "ViewCollection.c" -} - - -gboolean -view_filter_predicate (ViewFilter* self, - DataView* view) -{ -#line 1286 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (IS_VIEW_FILTER (self), FALSE); -#line 1286 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return VIEW_FILTER_GET_CLASS (self)->predicate (self, view); -#line 8812 "ViewCollection.c" -} - - -ViewFilter* -view_filter_construct (GType object_type) -{ - ViewFilter* self = NULL; -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = (ViewFilter*) g_type_create_instance (object_type); -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return self; -#line 8824 "ViewCollection.c" -} - - -static void -view_filter_real_refresh (ViewFilter* self) -{ -} - - -static void -value_view_filter_init (GValue* value) -{ -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = NULL; -#line 8839 "ViewCollection.c" -} - - -static void -value_view_filter_free_value (GValue* value) -{ -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (value->data[0].v_pointer) { -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_filter_unref (value->data[0].v_pointer); -#line 8850 "ViewCollection.c" - } -} - - -static void -value_view_filter_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (src_value->data[0].v_pointer) { -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - dest_value->data[0].v_pointer = view_filter_ref (src_value->data[0].v_pointer); -#line 8863 "ViewCollection.c" - } else { -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - dest_value->data[0].v_pointer = NULL; -#line 8867 "ViewCollection.c" - } -} - - -static gpointer -value_view_filter_peek_pointer (const GValue* value) -{ -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return value->data[0].v_pointer; -#line 8877 "ViewCollection.c" -} - - -static gchar* -value_view_filter_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (collect_values[0].v_pointer) { -#line 8889 "ViewCollection.c" - ViewFilter * object; - object = collect_values[0].v_pointer; -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (object->parent_instance.g_class == NULL) { -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 8896 "ViewCollection.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 8900 "ViewCollection.c" - } -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = view_filter_ref (object); -#line 8904 "ViewCollection.c" - } else { -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = NULL; -#line 8908 "ViewCollection.c" - } -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return NULL; -#line 8912 "ViewCollection.c" -} - - -static gchar* -value_view_filter_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - ViewFilter ** object_p; - object_p = collect_values[0].v_pointer; -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!object_p) { -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 8928 "ViewCollection.c" - } -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (!value->data[0].v_pointer) { -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - *object_p = NULL; -#line 8934 "ViewCollection.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - *object_p = value->data[0].v_pointer; -#line 8938 "ViewCollection.c" - } else { -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - *object_p = view_filter_ref (value->data[0].v_pointer); -#line 8942 "ViewCollection.c" - } -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return NULL; -#line 8946 "ViewCollection.c" -} - - -GParamSpec* -param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecViewFilter* spec; -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_VIEW_FILTER), NULL); -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return G_PARAM_SPEC (spec); -#line 8966 "ViewCollection.c" -} - - -gpointer -value_get_view_filter (const GValue* value) -{ -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIEW_FILTER), NULL); -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return value->data[0].v_pointer; -#line 8977 "ViewCollection.c" -} - - -void -value_set_view_filter (GValue* value, - gpointer v_object) -{ - ViewFilter * old; -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIEW_FILTER)); -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - old = value->data[0].v_pointer; -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (v_object) { -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIEW_FILTER)); -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = v_object; -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_filter_ref (value->data[0].v_pointer); -#line 9000 "ViewCollection.c" - } else { -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = NULL; -#line 9004 "ViewCollection.c" - } -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (old) { -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_filter_unref (old); -#line 9010 "ViewCollection.c" - } -} - - -void -value_take_view_filter (GValue* value, - gpointer v_object) -{ - ViewFilter * old; -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIEW_FILTER)); -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - old = value->data[0].v_pointer; -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (v_object) { -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIEW_FILTER)); -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = v_object; -#line 9032 "ViewCollection.c" - } else { -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - value->data[0].v_pointer = NULL; -#line 9036 "ViewCollection.c" - } -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (old) { -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_filter_unref (old); -#line 9042 "ViewCollection.c" - } -} - - -static void -view_filter_class_init (ViewFilterClass * klass) -{ -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_filter_parent_class = g_type_class_peek_parent (klass); -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewFilterClass *) klass)->finalize = view_filter_finalize; -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewFilterClass *) klass)->predicate = (gboolean (*) (ViewFilter *, DataView*)) view_filter_real_predicate; -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - ((ViewFilterClass *) klass)->refresh = view_filter_real_refresh; -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - view_filter_signals[VIEW_FILTER_REFRESH_SIGNAL] = g_signal_new ("refresh", TYPE_VIEW_FILTER, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ViewFilterClass, refresh), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 9060 "ViewCollection.c" -} - - -static void -view_filter_instance_init (ViewFilter * self) -{ -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self->ref_count = 1; -#line 9069 "ViewCollection.c" -} - - -static void -view_filter_finalize (ViewFilter * obj) -{ - ViewFilter * self; -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIEW_FILTER, ViewFilter); -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_signal_handlers_destroy (self); -#line 9081 "ViewCollection.c" -} - - -GType -view_filter_get_type (void) -{ - static volatile gsize view_filter_type_id__volatile = 0; - if (g_once_init_enter (&view_filter_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_view_filter_init, value_view_filter_free_value, value_view_filter_copy_value, value_view_filter_peek_pointer, "p", value_view_filter_collect_value, "p", value_view_filter_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (ViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ViewFilter), 0, (GInstanceInitFunc) view_filter_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType view_filter_type_id; - view_filter_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ViewFilter", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&view_filter_type_id__volatile, view_filter_type_id); - } - return view_filter_type_id__volatile; -} - - -gpointer -view_filter_ref (gpointer instance) -{ - ViewFilter * self; - self = instance; -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_atomic_int_inc (&self->ref_count); -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - return instance; -#line 9110 "ViewCollection.c" -} - - -void -view_filter_unref (gpointer instance) -{ - ViewFilter * self; - self = instance; -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - VIEW_FILTER_GET_CLASS (self)->finalize (self); -#line 1279 "/home/jens/Source/shotwell/src/core/ViewCollection.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 9125 "ViewCollection.c" - } -} - - - diff --git a/src/core/util.c b/src/core/util.c deleted file mode 100644 index 2b9ace7..0000000 --- a/src/core/util.c +++ /dev/null @@ -1,2043 +0,0 @@ -/* util.c generated by valac 0.40.4, the Vala compiler - * generated from util.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/* SingletonCollection is a read-only collection designed to hold exactly one item in it. This*/ -/* is far more efficient than creating a dummy collection (such as ArrayList) merely to pass around*/ -/* a single item, particularly for signals which require Iterables and Collections.*/ -/**/ -/* This collection cannot be used to store null.*/ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SINGLETON_COLLECTION (singleton_collection_get_type ()) -#define SINGLETON_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLETON_COLLECTION, SingletonCollection)) -#define SINGLETON_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLETON_COLLECTION, SingletonCollectionClass)) -#define IS_SINGLETON_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLETON_COLLECTION)) -#define IS_SINGLETON_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLETON_COLLECTION)) -#define SINGLETON_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLETON_COLLECTION, SingletonCollectionClass)) - -typedef struct _SingletonCollection SingletonCollection; -typedef struct _SingletonCollectionClass SingletonCollectionClass; -typedef struct _SingletonCollectionPrivate SingletonCollectionPrivate; -enum { - SINGLETON_COLLECTION_0_PROPERTY, - SINGLETON_COLLECTION_G_TYPE, - SINGLETON_COLLECTION_G_DUP_FUNC, - SINGLETON_COLLECTION_G_DESTROY_FUNC, - SINGLETON_COLLECTION_READ_ONLY_PROPERTY, - SINGLETON_COLLECTION_SIZE_PROPERTY, - SINGLETON_COLLECTION_NUM_PROPERTIES -}; -static GParamSpec* singleton_collection_properties[SINGLETON_COLLECTION_NUM_PROPERTIES]; -#define _g_destroy_func0(var) (((var == NULL) || (g_destroy_func == NULL)) ? NULL : (var = (g_destroy_func (var), NULL))) - -#define SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR (singleton_collection_singleton_iterator_get_type ()) -#define SINGLETON_COLLECTION_SINGLETON_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator)) -#define SINGLETON_COLLECTION_SINGLETON_ITERATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIteratorClass)) -#define SINGLETON_COLLECTION_IS_SINGLETON_ITERATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR)) -#define SINGLETON_COLLECTION_IS_SINGLETON_ITERATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR)) -#define SINGLETON_COLLECTION_SINGLETON_ITERATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIteratorClass)) - -typedef struct _SingletonCollectionSingletonIterator SingletonCollectionSingletonIterator; -typedef struct _SingletonCollectionSingletonIteratorClass SingletonCollectionSingletonIteratorClass; -typedef struct _SingletonCollectionSingletonIteratorPrivate SingletonCollectionSingletonIteratorPrivate; -enum { - SINGLETON_COLLECTION_SINGLETON_ITERATOR_0_PROPERTY, - SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_TYPE, - SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_DUP_FUNC, - SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_DESTROY_FUNC, - SINGLETON_COLLECTION_SINGLETON_ITERATOR_READ_ONLY_PROPERTY, - SINGLETON_COLLECTION_SINGLETON_ITERATOR_VALID_PROPERTY, - SINGLETON_COLLECTION_SINGLETON_ITERATOR_NUM_PROPERTIES -}; -static GParamSpec* singleton_collection_singleton_iterator_properties[SINGLETON_COLLECTION_SINGLETON_ITERATOR_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_UNKNOWN_TOTAL_MONITOR (unknown_total_monitor_get_type ()) -#define UNKNOWN_TOTAL_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_UNKNOWN_TOTAL_MONITOR, UnknownTotalMonitor)) -#define UNKNOWN_TOTAL_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_UNKNOWN_TOTAL_MONITOR, UnknownTotalMonitorClass)) -#define IS_UNKNOWN_TOTAL_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_UNKNOWN_TOTAL_MONITOR)) -#define IS_UNKNOWN_TOTAL_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_UNKNOWN_TOTAL_MONITOR)) -#define UNKNOWN_TOTAL_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_UNKNOWN_TOTAL_MONITOR, UnknownTotalMonitorClass)) - -typedef struct _UnknownTotalMonitor UnknownTotalMonitor; -typedef struct _UnknownTotalMonitorClass UnknownTotalMonitorClass; -typedef struct _UnknownTotalMonitorPrivate UnknownTotalMonitorPrivate; -typedef struct _ParamSpecUnknownTotalMonitor ParamSpecUnknownTotalMonitor; - -#define TYPE_AGGREGATE_PROGRESS_MONITOR (aggregate_progress_monitor_get_type ()) -#define AGGREGATE_PROGRESS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitor)) -#define AGGREGATE_PROGRESS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitorClass)) -#define IS_AGGREGATE_PROGRESS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR)) -#define IS_AGGREGATE_PROGRESS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_AGGREGATE_PROGRESS_MONITOR)) -#define AGGREGATE_PROGRESS_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitorClass)) - -typedef struct _AggregateProgressMonitor AggregateProgressMonitor; -typedef struct _AggregateProgressMonitorClass AggregateProgressMonitorClass; -typedef struct _AggregateProgressMonitorPrivate AggregateProgressMonitorPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _ParamSpecAggregateProgressMonitor ParamSpecAggregateProgressMonitor; - -struct _SingletonCollection { - GeeAbstractCollection parent_instance; - SingletonCollectionPrivate * priv; -}; - -struct _SingletonCollectionClass { - GeeAbstractCollectionClass parent_class; -}; - -struct _SingletonCollectionPrivate { - GType g_type; - GBoxedCopyFunc g_dup_func; - GDestroyNotify g_destroy_func; - gpointer object; -}; - -struct _SingletonCollectionSingletonIterator { - GObject parent_instance; - SingletonCollectionSingletonIteratorPrivate * priv; -}; - -struct _SingletonCollectionSingletonIteratorClass { - GObjectClass parent_class; -}; - -struct _SingletonCollectionSingletonIteratorPrivate { - GType g_type; - GBoxedCopyFunc g_dup_func; - GDestroyNotify g_destroy_func; - SingletonCollection* c; - gboolean done; - gpointer current; -}; - -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -typedef gboolean (*MarkedAction) (DataObject* object, GObject* user, void* user_data); -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _UnknownTotalMonitor { - GTypeInstance parent_instance; - volatile int ref_count; - UnknownTotalMonitorPrivate * priv; -}; - -struct _UnknownTotalMonitorClass { - GTypeClass parent_class; - void (*finalize) (UnknownTotalMonitor *self); -}; - -struct _UnknownTotalMonitorPrivate { - guint64 total; - ProgressMonitor wrapped_monitor; - gpointer wrapped_monitor_target; -}; - -struct _ParamSpecUnknownTotalMonitor { - GParamSpec parent_instance; -}; - -struct _AggregateProgressMonitor { - GTypeInstance parent_instance; - volatile int ref_count; - AggregateProgressMonitorPrivate * priv; -}; - -struct _AggregateProgressMonitorClass { - GTypeClass parent_class; - void (*finalize) (AggregateProgressMonitor *self); -}; - -struct _AggregateProgressMonitorPrivate { - guint64 grand_total; - ProgressMonitor wrapped_monitor; - gpointer wrapped_monitor_target; - guint64 aggregate_count; - guint64 last_count; -}; - -struct _ParamSpecAggregateProgressMonitor { - GParamSpec parent_instance; -}; - - -static gpointer singleton_collection_parent_class = NULL; -static gpointer singleton_collection_singleton_iterator_parent_class = NULL; -static GeeTraversableIface * singleton_collection_singleton_iterator_gee_traversable_parent_iface = NULL; -static GeeIteratorIface * singleton_collection_singleton_iterator_gee_iterator_parent_iface = NULL; -static gpointer unknown_total_monitor_parent_class = NULL; -static gpointer aggregate_progress_monitor_parent_class = NULL; - -GType singleton_collection_get_type (void) G_GNUC_CONST; -#define SINGLETON_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SINGLETON_COLLECTION, SingletonCollectionPrivate)) -SingletonCollection* singleton_collection_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - gconstpointer object); -SingletonCollection* singleton_collection_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - gconstpointer object); -static gboolean singleton_collection_real_add (GeeAbstractCollection* base, - gconstpointer object); -static void singleton_collection_real_clear (GeeAbstractCollection* base); -static gboolean singleton_collection_real_contains (GeeAbstractCollection* base, - gconstpointer object); -static GeeIterator* singleton_collection_real_iterator (GeeAbstractCollection* base); -static SingletonCollectionSingletonIterator* singleton_collection_singleton_iterator_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - SingletonCollection* c); -static SingletonCollectionSingletonIterator* singleton_collection_singleton_iterator_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - SingletonCollection* c); -static GType singleton_collection_singleton_iterator_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static gboolean singleton_collection_real_remove (GeeAbstractCollection* base, - gconstpointer item); -#define SINGLETON_COLLECTION_SINGLETON_ITERATOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIteratorPrivate)) -static gboolean singleton_collection_singleton_iterator_real_foreach (GeeTraversable* base, - GeeForallFunc f, - void* f_target); -static gpointer singleton_collection_singleton_iterator_real_get (GeeIterator* base); -static gboolean singleton_collection_singleton_iterator_real_has_next (GeeIterator* base); -static gboolean singleton_collection_singleton_iterator_real_next (GeeIterator* base); -static void singleton_collection_singleton_iterator_real_remove (GeeIterator* base); -static void singleton_collection_singleton_iterator_finalize (GObject * obj); -static void _vala_singleton_collection_singleton_iterator_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_singleton_collection_singleton_iterator_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -static void singleton_collection_finalize (GObject * obj); -static void _vala_singleton_collection_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_singleton_collection_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -GType data_object_get_type (void) G_GNUC_CONST; -GType marker_get_type (void) G_GNUC_CONST; -void marker_mark (Marker* self, - DataObject* object); -void marker_unmark (Marker* self, - DataObject* object); -gboolean marker_toggle (Marker* self, - DataObject* object); -void marker_mark_many (Marker* self, - GeeCollection* list); -void marker_unmark_many (Marker* self, - GeeCollection* list); -void marker_mark_all (Marker* self); -gint marker_get_count (Marker* self); -GeeCollection* marker_get_all (Marker* self); -gpointer unknown_total_monitor_ref (gpointer instance); -void unknown_total_monitor_unref (gpointer instance); -GParamSpec* param_spec_unknown_total_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_unknown_total_monitor (GValue* value, - gpointer v_object); -void value_take_unknown_total_monitor (GValue* value, - gpointer v_object); -gpointer value_get_unknown_total_monitor (const GValue* value); -GType unknown_total_monitor_get_type (void) G_GNUC_CONST; -#define UNKNOWN_TOTAL_MONITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_UNKNOWN_TOTAL_MONITOR, UnknownTotalMonitorPrivate)) -UnknownTotalMonitor* unknown_total_monitor_new (guint64 total, - ProgressMonitor wrapped_monitor, - void* wrapped_monitor_target); -UnknownTotalMonitor* unknown_total_monitor_construct (GType object_type, - guint64 total, - ProgressMonitor wrapped_monitor, - void* wrapped_monitor_target); -gboolean unknown_total_monitor_monitor (UnknownTotalMonitor* self, - guint64 count, - guint64 total); -static void unknown_total_monitor_finalize (UnknownTotalMonitor * obj); -gpointer aggregate_progress_monitor_ref (gpointer instance); -void aggregate_progress_monitor_unref (gpointer instance); -GParamSpec* param_spec_aggregate_progress_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_aggregate_progress_monitor (GValue* value, - gpointer v_object); -void value_take_aggregate_progress_monitor (GValue* value, - gpointer v_object); -gpointer value_get_aggregate_progress_monitor (const GValue* value); -GType aggregate_progress_monitor_get_type (void) G_GNUC_CONST; -#define AGGREGATE_PROGRESS_MONITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitorPrivate)) -AggregateProgressMonitor* aggregate_progress_monitor_new (guint64 grand_total, - ProgressMonitor wrapped_monitor, - void* wrapped_monitor_target); -AggregateProgressMonitor* aggregate_progress_monitor_construct (GType object_type, - guint64 grand_total, - ProgressMonitor wrapped_monitor, - void* wrapped_monitor_target); -void aggregate_progress_monitor_next_step (AggregateProgressMonitor* self, - const gchar* name); -gboolean aggregate_progress_monitor_monitor (AggregateProgressMonitor* self, - guint64 count, - guint64 total); -static void aggregate_progress_monitor_finalize (AggregateProgressMonitor * obj); -gboolean null_progress_monitor (guint64 count, - guint64 total); -gdouble degrees_to_radians (gdouble theta); - - -SingletonCollection* -singleton_collection_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - gconstpointer object) -{ - SingletonCollection * self = NULL; - gpointer _tmp0_; -#line 65 "/home/jens/Source/shotwell/src/core/util.vala" - self = (SingletonCollection*) gee_abstract_collection_construct (object_type, g_type, (GBoxedCopyFunc) g_dup_func, (GDestroyNotify) g_destroy_func); -#line 65 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->g_type = g_type; -#line 65 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->g_dup_func = g_dup_func; -#line 65 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->g_destroy_func = g_destroy_func; -#line 66 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0_ = ((object != NULL) && (g_dup_func != NULL)) ? g_dup_func ((gpointer) object) : ((gpointer) object); -#line 66 "/home/jens/Source/shotwell/src/core/util.vala" - _g_destroy_func0 (self->priv->object); -#line 66 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->object = _tmp0_; -#line 65 "/home/jens/Source/shotwell/src/core/util.vala" - return self; -#line 366 "util.c" -} - - -SingletonCollection* -singleton_collection_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - gconstpointer object) -{ -#line 65 "/home/jens/Source/shotwell/src/core/util.vala" - return singleton_collection_construct (TYPE_SINGLETON_COLLECTION, g_type, g_dup_func, g_destroy_func, object); -#line 378 "util.c" -} - - -static gboolean -singleton_collection_real_add (GeeAbstractCollection* base, - gconstpointer object) -{ - SingletonCollection * self; - gboolean result = FALSE; -#line 73 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLETON_COLLECTION, SingletonCollection); -#line 74 "/home/jens/Source/shotwell/src/core/util.vala" - g_warning ("util.vala:74: Cannot add to SingletonCollection"); -#line 76 "/home/jens/Source/shotwell/src/core/util.vala" - result = FALSE; -#line 76 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 396 "util.c" -} - - -static void -singleton_collection_real_clear (GeeAbstractCollection* base) -{ - SingletonCollection * self; -#line 79 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLETON_COLLECTION, SingletonCollection); -#line 80 "/home/jens/Source/shotwell/src/core/util.vala" - ((self->priv->object == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (self->priv->object = (self->priv->g_destroy_func (self->priv->object), NULL)); -#line 80 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->object = NULL; -#line 410 "util.c" -} - - -static gboolean -singleton_collection_real_contains (GeeAbstractCollection* base, - gconstpointer object) -{ - SingletonCollection * self; - gboolean result = FALSE; - gconstpointer _tmp0_; -#line 83 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLETON_COLLECTION, SingletonCollection); -#line 84 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0_ = self->priv->object; -#line 84 "/home/jens/Source/shotwell/src/core/util.vala" - result = _tmp0_ == object; -#line 84 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 429 "util.c" -} - - -static GeeIterator* -singleton_collection_real_iterator (GeeAbstractCollection* base) -{ - SingletonCollection * self; - GeeIterator* result = NULL; - SingletonCollectionSingletonIterator* _tmp0_; -#line 87 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLETON_COLLECTION, SingletonCollection); -#line 88 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0_ = singleton_collection_singleton_iterator_new (self->priv->g_type, (GBoxedCopyFunc) self->priv->g_dup_func, (GDestroyNotify) self->priv->g_destroy_func, self); -#line 88 "/home/jens/Source/shotwell/src/core/util.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERATOR, GeeIterator); -#line 88 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 447 "util.c" -} - - -static gboolean -singleton_collection_real_remove (GeeAbstractCollection* base, - gconstpointer item) -{ - SingletonCollection * self; - gboolean result = FALSE; - gconstpointer _tmp0_; -#line 91 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLETON_COLLECTION, SingletonCollection); -#line 92 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0_ = self->priv->object; -#line 92 "/home/jens/Source/shotwell/src/core/util.vala" - if (item == _tmp0_) { -#line 93 "/home/jens/Source/shotwell/src/core/util.vala" - ((self->priv->object == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (self->priv->object = (self->priv->g_destroy_func (self->priv->object), NULL)); -#line 93 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->object = NULL; -#line 95 "/home/jens/Source/shotwell/src/core/util.vala" - result = TRUE; -#line 95 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 472 "util.c" - } -#line 98 "/home/jens/Source/shotwell/src/core/util.vala" - result = FALSE; -#line 98 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 478 "util.c" -} - - -static gboolean -singleton_collection_real_get_read_only (GeeAbstractCollection* base) -{ - gboolean result; - SingletonCollection* self; -#line 70 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLETON_COLLECTION, SingletonCollection); -#line 70 "/home/jens/Source/shotwell/src/core/util.vala" - result = FALSE; -#line 70 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 493 "util.c" -} - - -static gint -singleton_collection_real_get_size (GeeAbstractCollection* base) -{ - gint result; - SingletonCollection* self; - gint _tmp0_ = 0; - gconstpointer _tmp1_; -#line 102 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SINGLETON_COLLECTION, SingletonCollection); -#line 103 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp1_ = self->priv->object; -#line 103 "/home/jens/Source/shotwell/src/core/util.vala" - if (_tmp1_ != NULL) { -#line 103 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0_ = 1; -#line 512 "util.c" - } else { -#line 103 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0_ = 0; -#line 516 "util.c" - } -#line 103 "/home/jens/Source/shotwell/src/core/util.vala" - result = _tmp0_; -#line 103 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 522 "util.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 20 "/home/jens/Source/shotwell/src/core/util.vala" - return self ? g_object_ref (self) : NULL; -#line 531 "util.c" -} - - -static SingletonCollectionSingletonIterator* -singleton_collection_singleton_iterator_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - SingletonCollection* c) -{ - SingletonCollectionSingletonIterator * self = NULL; - SingletonCollection* _tmp0_; -#line 19 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_val_if_fail (IS_SINGLETON_COLLECTION (c), NULL); -#line 19 "/home/jens/Source/shotwell/src/core/util.vala" - self = (SingletonCollectionSingletonIterator*) g_object_new (object_type, NULL); -#line 19 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->g_type = g_type; -#line 19 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->g_dup_func = g_dup_func; -#line 19 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->g_destroy_func = g_destroy_func; -#line 20 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0_ = _g_object_ref0 (c); -#line 20 "/home/jens/Source/shotwell/src/core/util.vala" - _g_object_unref0 (self->priv->c); -#line 20 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->c = _tmp0_; -#line 19 "/home/jens/Source/shotwell/src/core/util.vala" - return self; -#line 562 "util.c" -} - - -static SingletonCollectionSingletonIterator* -singleton_collection_singleton_iterator_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - SingletonCollection* c) -{ -#line 19 "/home/jens/Source/shotwell/src/core/util.vala" - return singleton_collection_singleton_iterator_construct (SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, g_type, g_dup_func, g_destroy_func, c); -#line 574 "util.c" -} - - -static gboolean -singleton_collection_singleton_iterator_real_foreach (GeeTraversable* base, - GeeForallFunc f, - void* f_target) -{ - SingletonCollectionSingletonIterator * self; - gboolean result = FALSE; - SingletonCollection* _tmp0_; - gconstpointer _tmp1_; - gpointer _tmp2_; -#line 31 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator); -#line 32 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0_ = self->priv->c; -#line 32 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp1_ = _tmp0_->priv->object; -#line 32 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp2_ = ((_tmp1_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp1_) : ((gpointer) _tmp1_); -#line 32 "/home/jens/Source/shotwell/src/core/util.vala" - result = f (_tmp2_, f_target); -#line 32 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 600 "util.c" -} - - -static gpointer -singleton_collection_singleton_iterator_real_get (GeeIterator* base) -{ - SingletonCollectionSingletonIterator * self; - gpointer result = NULL; - gconstpointer _tmp0_; - gpointer _tmp1_; -#line 35 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator); -#line 36 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0_ = self->priv->current; -#line 36 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp1_ = ((_tmp0_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp0_) : ((gpointer) _tmp0_); -#line 36 "/home/jens/Source/shotwell/src/core/util.vala" - result = _tmp1_; -#line 36 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 621 "util.c" -} - - -static gboolean -singleton_collection_singleton_iterator_real_has_next (GeeIterator* base) -{ - SingletonCollectionSingletonIterator * self; - gboolean result = FALSE; -#line 39 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator); -#line 40 "/home/jens/Source/shotwell/src/core/util.vala" - result = FALSE; -#line 40 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 636 "util.c" -} - - -static gboolean -singleton_collection_singleton_iterator_real_next (GeeIterator* base) -{ - SingletonCollectionSingletonIterator * self; - gboolean result = FALSE; - gboolean _tmp0_; - SingletonCollection* _tmp1_; - gconstpointer _tmp2_; - gpointer _tmp3_; -#line 43 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator); -#line 44 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0_ = self->priv->done; -#line 44 "/home/jens/Source/shotwell/src/core/util.vala" - if (_tmp0_) { -#line 45 "/home/jens/Source/shotwell/src/core/util.vala" - result = FALSE; -#line 45 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 659 "util.c" - } -#line 47 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->done = TRUE; -#line 48 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp1_ = self->priv->c; -#line 48 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp2_ = _tmp1_->priv->object; -#line 48 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp3_ = ((_tmp2_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp2_) : ((gpointer) _tmp2_); -#line 48 "/home/jens/Source/shotwell/src/core/util.vala" - ((self->priv->current == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (self->priv->current = (self->priv->g_destroy_func (self->priv->current), NULL)); -#line 48 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->current = _tmp3_; -#line 50 "/home/jens/Source/shotwell/src/core/util.vala" - result = TRUE; -#line 50 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 677 "util.c" -} - - -static void -singleton_collection_singleton_iterator_real_remove (GeeIterator* base) -{ - SingletonCollectionSingletonIterator * self; - gboolean _tmp0_; -#line 53 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator); -#line 54 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0_ = self->priv->done; -#line 54 "/home/jens/Source/shotwell/src/core/util.vala" - if (!_tmp0_) { -#line 692 "util.c" - SingletonCollection* _tmp1_; -#line 55 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp1_ = self->priv->c; -#line 55 "/home/jens/Source/shotwell/src/core/util.vala" - ((_tmp1_->priv->object == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (_tmp1_->priv->object = (self->priv->g_destroy_func (_tmp1_->priv->object), NULL)); -#line 55 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp1_->priv->object = NULL; -#line 56 "/home/jens/Source/shotwell/src/core/util.vala" - ((self->priv->current == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (self->priv->current = (self->priv->g_destroy_func (self->priv->current), NULL)); -#line 56 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->current = NULL; -#line 704 "util.c" - } -#line 59 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->done = TRUE; -#line 708 "util.c" -} - - -static gboolean -singleton_collection_singleton_iterator_real_get_read_only (GeeIterator* base) -{ - gboolean result; - SingletonCollectionSingletonIterator* self; - gboolean _tmp0_; -#line 24 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator); -#line 24 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0_ = self->priv->done; -#line 24 "/home/jens/Source/shotwell/src/core/util.vala" - result = _tmp0_; -#line 24 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 726 "util.c" -} - - -static gboolean -singleton_collection_singleton_iterator_real_get_valid (GeeIterator* base) -{ - gboolean result; - SingletonCollectionSingletonIterator* self; - gboolean _tmp0_; -#line 28 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator); -#line 28 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0_ = self->priv->done; -#line 28 "/home/jens/Source/shotwell/src/core/util.vala" - result = _tmp0_; -#line 28 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 744 "util.c" -} - - -static void -singleton_collection_singleton_iterator_class_init (SingletonCollectionSingletonIteratorClass * klass) -{ -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - singleton_collection_singleton_iterator_parent_class = g_type_class_peek_parent (klass); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - g_type_class_add_private (klass, sizeof (SingletonCollectionSingletonIteratorPrivate)); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_singleton_collection_singleton_iterator_get_property; -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_singleton_collection_singleton_iterator_set_property; -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - G_OBJECT_CLASS (klass)->finalize = singleton_collection_singleton_iterator_finalize; -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_TYPE, g_param_spec_gtype ("g-type", "type", "type", G_TYPE_NONE, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_DUP_FUNC, g_param_spec_pointer ("g-dup-func", "dup func", "dup func", G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_DESTROY_FUNC, g_param_spec_pointer ("g-destroy-func", "destroy func", "destroy func", G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_SINGLETON_ITERATOR_READ_ONLY_PROPERTY, singleton_collection_singleton_iterator_properties[SINGLETON_COLLECTION_SINGLETON_ITERATOR_READ_ONLY_PROPERTY] = g_param_spec_boolean ("read-only", "read-only", "read-only", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_SINGLETON_ITERATOR_VALID_PROPERTY, singleton_collection_singleton_iterator_properties[SINGLETON_COLLECTION_SINGLETON_ITERATOR_VALID_PROPERTY] = g_param_spec_boolean ("valid", "valid", "valid", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 771 "util.c" -} - - -static GType -singleton_collection_singleton_iterator_gee_traversable_get_g_type (SingletonCollectionSingletonIterator* self) -{ -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - return self->priv->g_type; -#line 780 "util.c" -} - - -static GBoxedCopyFunc -singleton_collection_singleton_iterator_gee_traversable_get_g_dup_func (SingletonCollectionSingletonIterator* self) -{ -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - return self->priv->g_dup_func; -#line 789 "util.c" -} - - -static GDestroyNotify -singleton_collection_singleton_iterator_gee_traversable_get_g_destroy_func (SingletonCollectionSingletonIterator* self) -{ -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - return self->priv->g_destroy_func; -#line 798 "util.c" -} - - -static void -singleton_collection_singleton_iterator_gee_traversable_interface_init (GeeTraversableIface * iface) -{ -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - singleton_collection_singleton_iterator_gee_traversable_parent_iface = g_type_interface_peek_parent (iface); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - iface->foreach = (gboolean (*) (GeeTraversable *, GeeForallFunc, void*)) singleton_collection_singleton_iterator_real_foreach; -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - iface->get_g_type = (GType (*) (GeeTraversable *)) singleton_collection_singleton_iterator_gee_traversable_get_g_type; -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - iface->get_g_dup_func = (GBoxedCopyFunc (*) (GeeTraversable *)) singleton_collection_singleton_iterator_gee_traversable_get_g_dup_func; -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - iface->get_g_destroy_func = (GDestroyNotify (*) (GeeTraversable *)) singleton_collection_singleton_iterator_gee_traversable_get_g_destroy_func; -#line 815 "util.c" -} - - -static void -singleton_collection_singleton_iterator_gee_iterator_interface_init (GeeIteratorIface * iface) -{ -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - singleton_collection_singleton_iterator_gee_iterator_parent_iface = g_type_interface_peek_parent (iface); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - iface->get = (gpointer (*) (GeeIterator *)) singleton_collection_singleton_iterator_real_get; -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - iface->has_next = (gboolean (*) (GeeIterator *)) singleton_collection_singleton_iterator_real_has_next; -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - iface->next = (gboolean (*) (GeeIterator *)) singleton_collection_singleton_iterator_real_next; -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - iface->remove = (void (*) (GeeIterator *)) singleton_collection_singleton_iterator_real_remove; -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - iface->get_read_only = singleton_collection_singleton_iterator_real_get_read_only; -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - iface->get_valid = singleton_collection_singleton_iterator_real_get_valid; -#line 836 "util.c" -} - - -static void -singleton_collection_singleton_iterator_instance_init (SingletonCollectionSingletonIterator * self) -{ -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv = SINGLETON_COLLECTION_SINGLETON_ITERATOR_GET_PRIVATE (self); -#line 16 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->done = FALSE; -#line 17 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->current = NULL; -#line 849 "util.c" -} - - -static void -singleton_collection_singleton_iterator_finalize (GObject * obj) -{ - SingletonCollectionSingletonIterator * self; -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator); -#line 15 "/home/jens/Source/shotwell/src/core/util.vala" - _g_object_unref0 (self->priv->c); -#line 17 "/home/jens/Source/shotwell/src/core/util.vala" - ((self->priv->current == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (self->priv->current = (self->priv->g_destroy_func (self->priv->current), NULL)); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - G_OBJECT_CLASS (singleton_collection_singleton_iterator_parent_class)->finalize (obj); -#line 865 "util.c" -} - - -static GType -singleton_collection_singleton_iterator_get_type (void) -{ - static volatile gsize singleton_collection_singleton_iterator_type_id__volatile = 0; - if (g_once_init_enter (&singleton_collection_singleton_iterator_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SingletonCollectionSingletonIteratorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) singleton_collection_singleton_iterator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SingletonCollectionSingletonIterator), 0, (GInstanceInitFunc) singleton_collection_singleton_iterator_instance_init, NULL }; - static const GInterfaceInfo gee_traversable_info = { (GInterfaceInitFunc) singleton_collection_singleton_iterator_gee_traversable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo gee_iterator_info = { (GInterfaceInitFunc) singleton_collection_singleton_iterator_gee_iterator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType singleton_collection_singleton_iterator_type_id; - singleton_collection_singleton_iterator_type_id = g_type_register_static (G_TYPE_OBJECT, "SingletonCollectionSingletonIterator", &g_define_type_info, 0); - g_type_add_interface_static (singleton_collection_singleton_iterator_type_id, GEE_TYPE_TRAVERSABLE, &gee_traversable_info); - g_type_add_interface_static (singleton_collection_singleton_iterator_type_id, GEE_TYPE_ITERATOR, &gee_iterator_info); - g_once_init_leave (&singleton_collection_singleton_iterator_type_id__volatile, singleton_collection_singleton_iterator_type_id); - } - return singleton_collection_singleton_iterator_type_id__volatile; -} - - -static void -_vala_singleton_collection_singleton_iterator_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - SingletonCollectionSingletonIterator * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - switch (property_id) { -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - case SINGLETON_COLLECTION_SINGLETON_ITERATOR_READ_ONLY_PROPERTY: -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - g_value_set_boolean (value, gee_iterator_get_read_only (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_ITERATOR, GeeIterator))); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - break; -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - case SINGLETON_COLLECTION_SINGLETON_ITERATOR_VALID_PROPERTY: -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - g_value_set_boolean (value, gee_iterator_get_valid (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_ITERATOR, GeeIterator))); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - break; -#line 909 "util.c" - default: -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - break; -#line 915 "util.c" - } -} - - -static void -_vala_singleton_collection_singleton_iterator_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - SingletonCollectionSingletonIterator * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SINGLETON_COLLECTION_TYPE_SINGLETON_ITERATOR, SingletonCollectionSingletonIterator); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - switch (property_id) { -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - case SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_TYPE: -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->g_type = g_value_get_gtype (value); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - break; -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - case SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_DUP_FUNC: -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->g_dup_func = g_value_get_pointer (value); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - break; -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - case SINGLETON_COLLECTION_SINGLETON_ITERATOR_G_DESTROY_FUNC: -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->g_destroy_func = g_value_get_pointer (value); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - break; -#line 948 "util.c" - default: -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 14 "/home/jens/Source/shotwell/src/core/util.vala" - break; -#line 954 "util.c" - } -} - - -static void -singleton_collection_class_init (SingletonCollectionClass * klass) -{ -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - singleton_collection_parent_class = g_type_class_peek_parent (klass); -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - g_type_class_add_private (klass, sizeof (SingletonCollectionPrivate)); -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - ((GeeAbstractCollectionClass *) klass)->add = (gboolean (*) (GeeAbstractCollection *, gconstpointer)) singleton_collection_real_add; -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - ((GeeAbstractCollectionClass *) klass)->clear = (void (*) (GeeAbstractCollection *)) singleton_collection_real_clear; -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - ((GeeAbstractCollectionClass *) klass)->contains = (gboolean (*) (GeeAbstractCollection *, gconstpointer)) singleton_collection_real_contains; -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - ((GeeAbstractCollectionClass *) klass)->iterator = (GeeIterator* (*) (GeeAbstractCollection *)) singleton_collection_real_iterator; -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - ((GeeAbstractCollectionClass *) klass)->remove = (gboolean (*) (GeeAbstractCollection *, gconstpointer)) singleton_collection_real_remove; -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - GEE_ABSTRACT_COLLECTION_CLASS (klass)->get_read_only = singleton_collection_real_get_read_only; -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - GEE_ABSTRACT_COLLECTION_CLASS (klass)->get_size = singleton_collection_real_get_size; -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_singleton_collection_get_property; -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_singleton_collection_set_property; -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - G_OBJECT_CLASS (klass)->finalize = singleton_collection_finalize; -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_G_TYPE, g_param_spec_gtype ("g-type", "type", "type", G_TYPE_NONE, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_G_DUP_FUNC, g_param_spec_pointer ("g-dup-func", "dup func", "dup func", G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_G_DESTROY_FUNC, g_param_spec_pointer ("g-destroy-func", "destroy func", "destroy func", G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_READ_ONLY_PROPERTY, singleton_collection_properties[SINGLETON_COLLECTION_READ_ONLY_PROPERTY] = g_param_spec_boolean ("read-only", "read-only", "read-only", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SINGLETON_COLLECTION_SIZE_PROPERTY, singleton_collection_properties[SINGLETON_COLLECTION_SIZE_PROPERTY] = g_param_spec_int ("size", "size", "size", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 996 "util.c" -} - - -static void -singleton_collection_instance_init (SingletonCollection * self) -{ -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv = SINGLETON_COLLECTION_GET_PRIVATE (self); -#line 1005 "util.c" -} - - -static void -singleton_collection_finalize (GObject * obj) -{ - SingletonCollection * self; -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SINGLETON_COLLECTION, SingletonCollection); -#line 63 "/home/jens/Source/shotwell/src/core/util.vala" - ((self->priv->object == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (self->priv->object = (self->priv->g_destroy_func (self->priv->object), NULL)); -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - G_OBJECT_CLASS (singleton_collection_parent_class)->finalize (obj); -#line 1019 "util.c" -} - - -GType -singleton_collection_get_type (void) -{ - static volatile gsize singleton_collection_type_id__volatile = 0; - if (g_once_init_enter (&singleton_collection_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SingletonCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) singleton_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SingletonCollection), 0, (GInstanceInitFunc) singleton_collection_instance_init, NULL }; - GType singleton_collection_type_id; - singleton_collection_type_id = g_type_register_static (GEE_TYPE_ABSTRACT_COLLECTION, "SingletonCollection", &g_define_type_info, 0); - g_once_init_leave (&singleton_collection_type_id__volatile, singleton_collection_type_id); - } - return singleton_collection_type_id__volatile; -} - - -static void -_vala_singleton_collection_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - SingletonCollection * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_SINGLETON_COLLECTION, SingletonCollection); -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - switch (property_id) { -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - case SINGLETON_COLLECTION_READ_ONLY_PROPERTY: -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - g_value_set_boolean (value, gee_abstract_collection_get_read_only (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection))); -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - break; -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - case SINGLETON_COLLECTION_SIZE_PROPERTY: -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - g_value_set_int (value, gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (self, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection))); -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - break; -#line 1059 "util.c" - default: -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - break; -#line 1065 "util.c" - } -} - - -static void -_vala_singleton_collection_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - SingletonCollection * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_SINGLETON_COLLECTION, SingletonCollection); -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - switch (property_id) { -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - case SINGLETON_COLLECTION_G_TYPE: -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->g_type = g_value_get_gtype (value); -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - break; -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - case SINGLETON_COLLECTION_G_DUP_FUNC: -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->g_dup_func = g_value_get_pointer (value); -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - break; -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - case SINGLETON_COLLECTION_G_DESTROY_FUNC: -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->g_destroy_func = g_value_get_pointer (value); -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - break; -#line 1098 "util.c" - default: -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 13 "/home/jens/Source/shotwell/src/core/util.vala" - break; -#line 1104 "util.c" - } -} - - -void -marker_mark (Marker* self, - DataObject* object) -{ -#line 113 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (IS_MARKER (self)); -#line 113 "/home/jens/Source/shotwell/src/core/util.vala" - MARKER_GET_INTERFACE (self)->mark (self, object); -#line 1117 "util.c" -} - - -void -marker_unmark (Marker* self, - DataObject* object) -{ -#line 115 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (IS_MARKER (self)); -#line 115 "/home/jens/Source/shotwell/src/core/util.vala" - MARKER_GET_INTERFACE (self)->unmark (self, object); -#line 1129 "util.c" -} - - -gboolean -marker_toggle (Marker* self, - DataObject* object) -{ -#line 117 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_val_if_fail (IS_MARKER (self), FALSE); -#line 117 "/home/jens/Source/shotwell/src/core/util.vala" - return MARKER_GET_INTERFACE (self)->toggle (self, object); -#line 1141 "util.c" -} - - -void -marker_mark_many (Marker* self, - GeeCollection* list) -{ -#line 119 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (IS_MARKER (self)); -#line 119 "/home/jens/Source/shotwell/src/core/util.vala" - MARKER_GET_INTERFACE (self)->mark_many (self, list); -#line 1153 "util.c" -} - - -void -marker_unmark_many (Marker* self, - GeeCollection* list) -{ -#line 121 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (IS_MARKER (self)); -#line 121 "/home/jens/Source/shotwell/src/core/util.vala" - MARKER_GET_INTERFACE (self)->unmark_many (self, list); -#line 1165 "util.c" -} - - -void -marker_mark_all (Marker* self) -{ -#line 123 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (IS_MARKER (self)); -#line 123 "/home/jens/Source/shotwell/src/core/util.vala" - MARKER_GET_INTERFACE (self)->mark_all (self); -#line 1176 "util.c" -} - - -gint -marker_get_count (Marker* self) -{ -#line 127 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_val_if_fail (IS_MARKER (self), 0); -#line 127 "/home/jens/Source/shotwell/src/core/util.vala" - return MARKER_GET_INTERFACE (self)->get_count (self); -#line 1187 "util.c" -} - - -GeeCollection* -marker_get_all (Marker* self) -{ -#line 130 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_val_if_fail (IS_MARKER (self), NULL); -#line 130 "/home/jens/Source/shotwell/src/core/util.vala" - return MARKER_GET_INTERFACE (self)->get_all (self); -#line 1198 "util.c" -} - - -static void -marker_base_init (MarkerIface * iface) -{ -#line 112 "/home/jens/Source/shotwell/src/core/util.vala" - static gboolean initialized = FALSE; -#line 112 "/home/jens/Source/shotwell/src/core/util.vala" - if (!initialized) { -#line 112 "/home/jens/Source/shotwell/src/core/util.vala" - initialized = TRUE; -#line 1211 "util.c" - } -} - - -GType -marker_get_type (void) -{ - static volatile gsize marker_type_id__volatile = 0; - if (g_once_init_enter (&marker_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MarkerIface), (GBaseInitFunc) marker_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType marker_type_id; - marker_type_id = g_type_register_static (G_TYPE_INTERFACE, "Marker", &g_define_type_info, 0); - g_type_interface_add_prerequisite (marker_type_id, G_TYPE_OBJECT); - g_once_init_leave (&marker_type_id__volatile, marker_type_id); - } - return marker_type_id__volatile; -} - - -UnknownTotalMonitor* -unknown_total_monitor_construct (GType object_type, - guint64 total, - ProgressMonitor wrapped_monitor, - void* wrapped_monitor_target) -{ - UnknownTotalMonitor* self = NULL; -#line 147 "/home/jens/Source/shotwell/src/core/util.vala" - self = (UnknownTotalMonitor*) g_type_create_instance (object_type); -#line 148 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->total = total; -#line 149 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->wrapped_monitor = wrapped_monitor; -#line 149 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->wrapped_monitor_target = wrapped_monitor_target; -#line 147 "/home/jens/Source/shotwell/src/core/util.vala" - return self; -#line 1248 "util.c" -} - - -UnknownTotalMonitor* -unknown_total_monitor_new (guint64 total, - ProgressMonitor wrapped_monitor, - void* wrapped_monitor_target) -{ -#line 147 "/home/jens/Source/shotwell/src/core/util.vala" - return unknown_total_monitor_construct (TYPE_UNKNOWN_TOTAL_MONITOR, total, wrapped_monitor, wrapped_monitor_target); -#line 1259 "util.c" -} - - -gboolean -unknown_total_monitor_monitor (UnknownTotalMonitor* self, - guint64 count, - guint64 total) -{ - gboolean result = FALSE; - ProgressMonitor _tmp0_; - void* _tmp0__target; - guint64 _tmp1_; -#line 152 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_val_if_fail (IS_UNKNOWN_TOTAL_MONITOR (self), FALSE); -#line 153 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0_ = self->priv->wrapped_monitor; -#line 153 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0__target = self->priv->wrapped_monitor_target; -#line 153 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp1_ = self->priv->total; -#line 153 "/home/jens/Source/shotwell/src/core/util.vala" - result = _tmp0_ (count, _tmp1_, TRUE, _tmp0__target); -#line 153 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 1284 "util.c" -} - - -static void -value_unknown_total_monitor_init (GValue* value) -{ -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - value->data[0].v_pointer = NULL; -#line 1293 "util.c" -} - - -static void -value_unknown_total_monitor_free_value (GValue* value) -{ -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - if (value->data[0].v_pointer) { -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - unknown_total_monitor_unref (value->data[0].v_pointer); -#line 1304 "util.c" - } -} - - -static void -value_unknown_total_monitor_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - if (src_value->data[0].v_pointer) { -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - dest_value->data[0].v_pointer = unknown_total_monitor_ref (src_value->data[0].v_pointer); -#line 1317 "util.c" - } else { -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - dest_value->data[0].v_pointer = NULL; -#line 1321 "util.c" - } -} - - -static gpointer -value_unknown_total_monitor_peek_pointer (const GValue* value) -{ -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - return value->data[0].v_pointer; -#line 1331 "util.c" -} - - -static gchar* -value_unknown_total_monitor_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - if (collect_values[0].v_pointer) { -#line 1343 "util.c" - UnknownTotalMonitor * object; - object = collect_values[0].v_pointer; -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - if (object->parent_instance.g_class == NULL) { -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1350 "util.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1354 "util.c" - } -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - value->data[0].v_pointer = unknown_total_monitor_ref (object); -#line 1358 "util.c" - } else { -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - value->data[0].v_pointer = NULL; -#line 1362 "util.c" - } -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - return NULL; -#line 1366 "util.c" -} - - -static gchar* -value_unknown_total_monitor_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - UnknownTotalMonitor ** object_p; - object_p = collect_values[0].v_pointer; -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - if (!object_p) { -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1382 "util.c" - } -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - if (!value->data[0].v_pointer) { -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - *object_p = NULL; -#line 1388 "util.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - *object_p = value->data[0].v_pointer; -#line 1392 "util.c" - } else { -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - *object_p = unknown_total_monitor_ref (value->data[0].v_pointer); -#line 1396 "util.c" - } -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - return NULL; -#line 1400 "util.c" -} - - -GParamSpec* -param_spec_unknown_total_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecUnknownTotalMonitor* spec; -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_UNKNOWN_TOTAL_MONITOR), NULL); -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - return G_PARAM_SPEC (spec); -#line 1420 "util.c" -} - - -gpointer -value_get_unknown_total_monitor (const GValue* value) -{ -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_UNKNOWN_TOTAL_MONITOR), NULL); -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - return value->data[0].v_pointer; -#line 1431 "util.c" -} - - -void -value_set_unknown_total_monitor (GValue* value, - gpointer v_object) -{ - UnknownTotalMonitor * old; -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_UNKNOWN_TOTAL_MONITOR)); -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - old = value->data[0].v_pointer; -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - if (v_object) { -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_UNKNOWN_TOTAL_MONITOR)); -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - value->data[0].v_pointer = v_object; -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - unknown_total_monitor_ref (value->data[0].v_pointer); -#line 1454 "util.c" - } else { -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - value->data[0].v_pointer = NULL; -#line 1458 "util.c" - } -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - if (old) { -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - unknown_total_monitor_unref (old); -#line 1464 "util.c" - } -} - - -void -value_take_unknown_total_monitor (GValue* value, - gpointer v_object) -{ - UnknownTotalMonitor * old; -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_UNKNOWN_TOTAL_MONITOR)); -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - old = value->data[0].v_pointer; -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - if (v_object) { -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_UNKNOWN_TOTAL_MONITOR)); -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - value->data[0].v_pointer = v_object; -#line 1486 "util.c" - } else { -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - value->data[0].v_pointer = NULL; -#line 1490 "util.c" - } -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - if (old) { -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - unknown_total_monitor_unref (old); -#line 1496 "util.c" - } -} - - -static void -unknown_total_monitor_class_init (UnknownTotalMonitorClass * klass) -{ -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - unknown_total_monitor_parent_class = g_type_class_peek_parent (klass); -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - ((UnknownTotalMonitorClass *) klass)->finalize = unknown_total_monitor_finalize; -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - g_type_class_add_private (klass, sizeof (UnknownTotalMonitorPrivate)); -#line 1510 "util.c" -} - - -static void -unknown_total_monitor_instance_init (UnknownTotalMonitor * self) -{ -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv = UNKNOWN_TOTAL_MONITOR_GET_PRIVATE (self); -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - self->ref_count = 1; -#line 1521 "util.c" -} - - -static void -unknown_total_monitor_finalize (UnknownTotalMonitor * obj) -{ - UnknownTotalMonitor * self; -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_UNKNOWN_TOTAL_MONITOR, UnknownTotalMonitor); -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - g_signal_handlers_destroy (self); -#line 1533 "util.c" -} - - -GType -unknown_total_monitor_get_type (void) -{ - static volatile gsize unknown_total_monitor_type_id__volatile = 0; - if (g_once_init_enter (&unknown_total_monitor_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_unknown_total_monitor_init, value_unknown_total_monitor_free_value, value_unknown_total_monitor_copy_value, value_unknown_total_monitor_peek_pointer, "p", value_unknown_total_monitor_collect_value, "p", value_unknown_total_monitor_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (UnknownTotalMonitorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unknown_total_monitor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnknownTotalMonitor), 0, (GInstanceInitFunc) unknown_total_monitor_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType unknown_total_monitor_type_id; - unknown_total_monitor_type_id = g_type_register_fundamental (g_type_fundamental_next (), "UnknownTotalMonitor", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&unknown_total_monitor_type_id__volatile, unknown_total_monitor_type_id); - } - return unknown_total_monitor_type_id__volatile; -} - - -gpointer -unknown_total_monitor_ref (gpointer instance) -{ - UnknownTotalMonitor * self; - self = instance; -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - g_atomic_int_inc (&self->ref_count); -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - return instance; -#line 1562 "util.c" -} - - -void -unknown_total_monitor_unref (gpointer instance) -{ - UnknownTotalMonitor * self; - self = instance; -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - UNKNOWN_TOTAL_MONITOR_GET_CLASS (self)->finalize (self); -#line 143 "/home/jens/Source/shotwell/src/core/util.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1577 "util.c" - } -} - - -AggregateProgressMonitor* -aggregate_progress_monitor_construct (GType object_type, - guint64 grand_total, - ProgressMonitor wrapped_monitor, - void* wrapped_monitor_target) -{ - AggregateProgressMonitor* self = NULL; -#line 165 "/home/jens/Source/shotwell/src/core/util.vala" - self = (AggregateProgressMonitor*) g_type_create_instance (object_type); -#line 166 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->grand_total = grand_total; -#line 167 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->wrapped_monitor = wrapped_monitor; -#line 167 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->wrapped_monitor_target = wrapped_monitor_target; -#line 165 "/home/jens/Source/shotwell/src/core/util.vala" - return self; -#line 1599 "util.c" -} - - -AggregateProgressMonitor* -aggregate_progress_monitor_new (guint64 grand_total, - ProgressMonitor wrapped_monitor, - void* wrapped_monitor_target) -{ -#line 165 "/home/jens/Source/shotwell/src/core/util.vala" - return aggregate_progress_monitor_construct (TYPE_AGGREGATE_PROGRESS_MONITOR, grand_total, wrapped_monitor, wrapped_monitor_target); -#line 1610 "util.c" -} - - -void -aggregate_progress_monitor_next_step (AggregateProgressMonitor* self, - const gchar* name) -{ - guint64 _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - guint64 _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 170 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (IS_AGGREGATE_PROGRESS_MONITOR (self)); -#line 170 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (name != NULL); -#line 171 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0_ = self->priv->aggregate_count; -#line 171 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp1_ = g_strdup_printf ("%" G_GUINT64_FORMAT, _tmp0_); -#line 171 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp2_ = _tmp1_; -#line 171 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp3_ = self->priv->grand_total; -#line 171 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp4_ = g_strdup_printf ("%" G_GUINT64_FORMAT, _tmp3_); -#line 171 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp5_ = _tmp4_; -#line 171 "/home/jens/Source/shotwell/src/core/util.vala" - g_debug ("util.vala:171: next step: %s (%s/%s)", name, _tmp2_, _tmp5_); -#line 171 "/home/jens/Source/shotwell/src/core/util.vala" - _g_free0 (_tmp5_); -#line 171 "/home/jens/Source/shotwell/src/core/util.vala" - _g_free0 (_tmp2_); -#line 172 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->last_count = G_MAXUINT64; -#line 1648 "util.c" -} - - -gboolean -aggregate_progress_monitor_monitor (AggregateProgressMonitor* self, - guint64 count, - guint64 total) -{ - gboolean result = FALSE; - guint64 _tmp0_ = 0ULL; - guint64 _tmp1_; - guint64 _tmp3_; - guint64 _tmp4_; - guint64 _tmp5_; - ProgressMonitor _tmp7_; - void* _tmp7__target; - guint64 _tmp8_; - guint64 _tmp9_; -#line 175 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_val_if_fail (IS_AGGREGATE_PROGRESS_MONITOR (self), FALSE); -#line 177 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp1_ = self->priv->last_count; -#line 177 "/home/jens/Source/shotwell/src/core/util.vala" - if (_tmp1_ != G_MAXUINT64) { -#line 1673 "util.c" - guint64 _tmp2_; -#line 177 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp2_ = self->priv->last_count; -#line 177 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0_ = count - _tmp2_; -#line 1679 "util.c" - } else { -#line 177 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp0_ = count; -#line 1683 "util.c" - } -#line 177 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp3_ = self->priv->aggregate_count; -#line 177 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->aggregate_count = _tmp3_ + _tmp0_; -#line 178 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp4_ = self->priv->aggregate_count; -#line 178 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp5_ = self->priv->grand_total; -#line 178 "/home/jens/Source/shotwell/src/core/util.vala" - if (_tmp4_ > _tmp5_) { -#line 1695 "util.c" - guint64 _tmp6_; -#line 179 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp6_ = self->priv->grand_total; -#line 179 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->aggregate_count = _tmp6_; -#line 1701 "util.c" - } -#line 182 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->last_count = count; -#line 184 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp7_ = self->priv->wrapped_monitor; -#line 184 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp7__target = self->priv->wrapped_monitor_target; -#line 184 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp8_ = self->priv->aggregate_count; -#line 184 "/home/jens/Source/shotwell/src/core/util.vala" - _tmp9_ = self->priv->grand_total; -#line 184 "/home/jens/Source/shotwell/src/core/util.vala" - result = _tmp7_ (_tmp8_, _tmp9_, TRUE, _tmp7__target); -#line 184 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 1717 "util.c" -} - - -static void -value_aggregate_progress_monitor_init (GValue* value) -{ -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - value->data[0].v_pointer = NULL; -#line 1726 "util.c" -} - - -static void -value_aggregate_progress_monitor_free_value (GValue* value) -{ -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - if (value->data[0].v_pointer) { -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - aggregate_progress_monitor_unref (value->data[0].v_pointer); -#line 1737 "util.c" - } -} - - -static void -value_aggregate_progress_monitor_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - if (src_value->data[0].v_pointer) { -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - dest_value->data[0].v_pointer = aggregate_progress_monitor_ref (src_value->data[0].v_pointer); -#line 1750 "util.c" - } else { -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - dest_value->data[0].v_pointer = NULL; -#line 1754 "util.c" - } -} - - -static gpointer -value_aggregate_progress_monitor_peek_pointer (const GValue* value) -{ -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - return value->data[0].v_pointer; -#line 1764 "util.c" -} - - -static gchar* -value_aggregate_progress_monitor_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - if (collect_values[0].v_pointer) { -#line 1776 "util.c" - AggregateProgressMonitor * object; - object = collect_values[0].v_pointer; -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - if (object->parent_instance.g_class == NULL) { -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1783 "util.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1787 "util.c" - } -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - value->data[0].v_pointer = aggregate_progress_monitor_ref (object); -#line 1791 "util.c" - } else { -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - value->data[0].v_pointer = NULL; -#line 1795 "util.c" - } -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - return NULL; -#line 1799 "util.c" -} - - -static gchar* -value_aggregate_progress_monitor_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - AggregateProgressMonitor ** object_p; - object_p = collect_values[0].v_pointer; -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - if (!object_p) { -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1815 "util.c" - } -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - if (!value->data[0].v_pointer) { -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - *object_p = NULL; -#line 1821 "util.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - *object_p = value->data[0].v_pointer; -#line 1825 "util.c" - } else { -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - *object_p = aggregate_progress_monitor_ref (value->data[0].v_pointer); -#line 1829 "util.c" - } -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - return NULL; -#line 1833 "util.c" -} - - -GParamSpec* -param_spec_aggregate_progress_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecAggregateProgressMonitor* spec; -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_AGGREGATE_PROGRESS_MONITOR), NULL); -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - return G_PARAM_SPEC (spec); -#line 1853 "util.c" -} - - -gpointer -value_get_aggregate_progress_monitor (const GValue* value) -{ -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AGGREGATE_PROGRESS_MONITOR), NULL); -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - return value->data[0].v_pointer; -#line 1864 "util.c" -} - - -void -value_set_aggregate_progress_monitor (GValue* value, - gpointer v_object) -{ - AggregateProgressMonitor * old; -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AGGREGATE_PROGRESS_MONITOR)); -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - old = value->data[0].v_pointer; -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - if (v_object) { -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_AGGREGATE_PROGRESS_MONITOR)); -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - value->data[0].v_pointer = v_object; -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - aggregate_progress_monitor_ref (value->data[0].v_pointer); -#line 1887 "util.c" - } else { -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - value->data[0].v_pointer = NULL; -#line 1891 "util.c" - } -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - if (old) { -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - aggregate_progress_monitor_unref (old); -#line 1897 "util.c" - } -} - - -void -value_take_aggregate_progress_monitor (GValue* value, - gpointer v_object) -{ - AggregateProgressMonitor * old; -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AGGREGATE_PROGRESS_MONITOR)); -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - old = value->data[0].v_pointer; -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - if (v_object) { -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_AGGREGATE_PROGRESS_MONITOR)); -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - value->data[0].v_pointer = v_object; -#line 1919 "util.c" - } else { -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - value->data[0].v_pointer = NULL; -#line 1923 "util.c" - } -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - if (old) { -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - aggregate_progress_monitor_unref (old); -#line 1929 "util.c" - } -} - - -static void -aggregate_progress_monitor_class_init (AggregateProgressMonitorClass * klass) -{ -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - aggregate_progress_monitor_parent_class = g_type_class_peek_parent (klass); -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - ((AggregateProgressMonitorClass *) klass)->finalize = aggregate_progress_monitor_finalize; -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - g_type_class_add_private (klass, sizeof (AggregateProgressMonitorPrivate)); -#line 1943 "util.c" -} - - -static void -aggregate_progress_monitor_instance_init (AggregateProgressMonitor * self) -{ -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv = AGGREGATE_PROGRESS_MONITOR_GET_PRIVATE (self); -#line 162 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->aggregate_count = (guint64) 0; -#line 163 "/home/jens/Source/shotwell/src/core/util.vala" - self->priv->last_count = G_MAXUINT64; -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - self->ref_count = 1; -#line 1958 "util.c" -} - - -static void -aggregate_progress_monitor_finalize (AggregateProgressMonitor * obj) -{ - AggregateProgressMonitor * self; -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitor); -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - g_signal_handlers_destroy (self); -#line 1970 "util.c" -} - - -GType -aggregate_progress_monitor_get_type (void) -{ - static volatile gsize aggregate_progress_monitor_type_id__volatile = 0; - if (g_once_init_enter (&aggregate_progress_monitor_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_aggregate_progress_monitor_init, value_aggregate_progress_monitor_free_value, value_aggregate_progress_monitor_copy_value, value_aggregate_progress_monitor_peek_pointer, "p", value_aggregate_progress_monitor_collect_value, "p", value_aggregate_progress_monitor_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (AggregateProgressMonitorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) aggregate_progress_monitor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AggregateProgressMonitor), 0, (GInstanceInitFunc) aggregate_progress_monitor_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType aggregate_progress_monitor_type_id; - aggregate_progress_monitor_type_id = g_type_register_fundamental (g_type_fundamental_next (), "AggregateProgressMonitor", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&aggregate_progress_monitor_type_id__volatile, aggregate_progress_monitor_type_id); - } - return aggregate_progress_monitor_type_id__volatile; -} - - -gpointer -aggregate_progress_monitor_ref (gpointer instance) -{ - AggregateProgressMonitor * self; - self = instance; -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - g_atomic_int_inc (&self->ref_count); -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - return instance; -#line 1999 "util.c" -} - - -void -aggregate_progress_monitor_unref (gpointer instance) -{ - AggregateProgressMonitor * self; - self = instance; -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - AGGREGATE_PROGRESS_MONITOR_GET_CLASS (self)->finalize (self); -#line 159 "/home/jens/Source/shotwell/src/core/util.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2014 "util.c" - } -} - - -gboolean -null_progress_monitor (guint64 count, - guint64 total) -{ - gboolean result = FALSE; -#line 190 "/home/jens/Source/shotwell/src/core/util.vala" - result = TRUE; -#line 190 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 2028 "util.c" -} - - -gdouble -degrees_to_radians (gdouble theta) -{ - gdouble result = 0.0; -#line 195 "/home/jens/Source/shotwell/src/core/util.vala" - result = theta * (G_PI / 180.0); -#line 195 "/home/jens/Source/shotwell/src/core/util.vala" - return result; -#line 2040 "util.c" -} - - - diff --git a/src/data_imports/DataImportJob.c b/src/data_imports/DataImportJob.c deleted file mode 100644 index edc0967..0000000 --- a/src/data_imports/DataImportJob.c +++ /dev/null @@ -1,1817 +0,0 @@ -/* DataImportJob.c generated by valac 0.40.4, the Vala compiler - * generated from DataImportJob.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include - - -#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ()) -#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob)) -#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass)) -#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB)) -#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB)) -#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass)) - -typedef struct _BatchImportJob BatchImportJob; -typedef struct _BatchImportJobClass BatchImportJobClass; -typedef struct _BatchImportJobPrivate BatchImportJobPrivate; - -#define TYPE_DUPLICATED_FILE (duplicated_file_get_type ()) -#define DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATED_FILE, DuplicatedFile)) -#define DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATED_FILE, DuplicatedFileClass)) -#define IS_DUPLICATED_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATED_FILE)) -#define IS_DUPLICATED_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATED_FILE)) -#define DUPLICATED_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATED_FILE, DuplicatedFileClass)) - -typedef struct _DuplicatedFile DuplicatedFile; -typedef struct _DuplicatedFileClass DuplicatedFileClass; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_BATCH_IMPORT_ROLL (batch_import_roll_get_type ()) -#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll)) -#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass)) -#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL)) -#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL)) -#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass)) - -typedef struct _BatchImportRoll BatchImportRoll; -typedef struct _BatchImportRollClass BatchImportRollClass; - -#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB (spit_data_imports_data_import_job_get_type ()) -#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob)) -#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobClass)) -#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB)) -#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB)) -#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobClass)) - -typedef struct _SpitDataImportsDataImportJob SpitDataImportsDataImportJob; -typedef struct _SpitDataImportsDataImportJobClass SpitDataImportsDataImportJobClass; -typedef struct _SpitDataImportsDataImportJobPrivate SpitDataImportsDataImportJobPrivate; - -#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE (spit_data_imports_data_import_source_get_type ()) -#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSource)) -#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass)) -#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE)) -#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE)) -#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass)) - -typedef struct _SpitDataImportsDataImportSource SpitDataImportsDataImportSource; -typedef struct _SpitDataImportsDataImportSourceClass SpitDataImportsDataImportSourceClass; - -#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ()) -#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex)) -#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) -#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX)) -#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX)) -#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) - -typedef struct _HierarchicalTagIndex HierarchicalTagIndex; -typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass; -#define _spit_data_imports_data_import_source_unref0(var) ((var == NULL) ? NULL : (var = (spit_data_imports_data_import_source_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _batch_import_job_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_job_unref (var), NULL))) -#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ()) -#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection)) -#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) -#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION)) -#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION)) -#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) - -typedef struct _TagSourceCollection TagSourceCollection; -typedef struct _TagSourceCollectionClass TagSourceCollectionClass; - -#define TYPE_PREPARE_INPUT_TEXT_OPTIONS (prepare_input_text_options_get_type ()) - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; -typedef struct _BatchImportRollPrivate BatchImportRollPrivate; - -#define TYPE_IMPORT_ID (import_id_get_type ()) -typedef struct _ImportID ImportID; - -#define TYPE_RATING (rating_get_type ()) - -#define TYPE_DATEABLE (dateable_get_type ()) -#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable)) -#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE)) -#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface)) - -typedef struct _Dateable Dateable; -typedef struct _DateableIface DateableIface; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _BatchImportJob { - GTypeInstance parent_instance; - volatile int ref_count; - BatchImportJobPrivate * priv; -}; - -struct _BatchImportJobClass { - GTypeClass parent_class; - void (*finalize) (BatchImportJob *self); - gchar* (*get_dest_identifier) (BatchImportJob* self); - gchar* (*get_source_identifier) (BatchImportJob* self); - gboolean (*is_directory) (BatchImportJob* self); - gchar* (*get_basename) (BatchImportJob* self); - gchar* (*get_path) (BatchImportJob* self); - DuplicatedFile* (*get_duplicated_file) (BatchImportJob* self); - GFile* (*get_associated_file) (BatchImportJob* self); - void (*set_associated) (BatchImportJob* self, BatchImportJob* associated); - gboolean (*determine_file_size) (BatchImportJob* self, guint64* filesize, GFile* * file_or_dir); - gboolean (*prepare) (BatchImportJob* self, GFile* * file_to_import, gboolean* copy_to_library, GError** error); - gboolean (*complete) (BatchImportJob* self, MediaSource* source, BatchImportRoll* import_roll, GError** error); - time_t (*get_exposure_time_override) (BatchImportJob* self); - gboolean (*recurse) (BatchImportJob* self); -}; - -struct _SpitDataImportsDataImportJob { - BatchImportJob parent_instance; - SpitDataImportsDataImportJobPrivate * priv; -}; - -struct _SpitDataImportsDataImportJobClass { - BatchImportJobClass parent_class; -}; - -struct _SpitDataImportsDataImportJobPrivate { - SpitDataImportsDataImportSource* import_source; - GFile* src_file; - guint64 filesize; - time_t exposure_time; - SpitDataImportsDataImportJob* associated; - HierarchicalTagIndex* detected_htags; -}; - -typedef enum { - PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL = 1 << 0, - PREPARE_INPUT_TEXT_OPTIONS_VALIDATE = 1 << 1, - PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL = 1 << 2, - PREPARE_INPUT_TEXT_OPTIONS_STRIP = 1 << 3, - PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF = 1 << 4, - PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE = 1 << 5, - PREPARE_INPUT_TEXT_OPTIONS_DEFAULT = ((((PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE -} PrepareInputTextOptions; - -struct _ImportID { - gint64 id; -}; - -struct _BatchImportRoll { - GTypeInstance parent_instance; - volatile int ref_count; - BatchImportRollPrivate * priv; - ImportID import_id; - ViewCollection* generated_events; -}; - -struct _BatchImportRollClass { - GTypeClass parent_class; - void (*finalize) (BatchImportRoll *self); -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -struct _DateableIface { - GTypeInterface parent_iface; - void (*set_exposure_time) (Dateable* self, time_t target_time); - time_t (*get_exposure_time) (Dateable* self); -}; - - -static gpointer spit_data_imports_data_import_job_parent_class = NULL; -extern TagSourceCollection* tag_global; - -gpointer batch_import_job_ref (gpointer instance); -void batch_import_job_unref (gpointer instance); -GParamSpec* param_spec_batch_import_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_job (GValue* value, - gpointer v_object); -void value_take_batch_import_job (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_job (const GValue* value); -GType batch_import_job_get_type (void) G_GNUC_CONST; -GType duplicated_file_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -gpointer batch_import_roll_ref (gpointer instance); -void batch_import_roll_unref (gpointer instance); -GParamSpec* param_spec_batch_import_roll (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_roll (GValue* value, - gpointer v_object); -void value_take_batch_import_roll (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_roll (const GValue* value); -GType batch_import_roll_get_type (void) G_GNUC_CONST; -GType spit_data_imports_data_import_job_get_type (void) G_GNUC_CONST; -gpointer spit_data_imports_data_import_source_ref (gpointer instance); -void spit_data_imports_data_import_source_unref (gpointer instance); -GParamSpec* spit_data_imports_param_spec_data_import_source (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void spit_data_imports_value_set_data_import_source (GValue* value, - gpointer v_object); -void spit_data_imports_value_take_data_import_source (GValue* value, - gpointer v_object); -gpointer spit_data_imports_value_get_data_import_source (const GValue* value); -GType spit_data_imports_data_import_source_get_type (void) G_GNUC_CONST; -gpointer hierarchical_tag_index_ref (gpointer instance); -void hierarchical_tag_index_unref (gpointer instance); -GParamSpec* param_spec_hierarchical_tag_index (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_hierarchical_tag_index (GValue* value, - gpointer v_object); -void value_take_hierarchical_tag_index (GValue* value, - gpointer v_object); -gpointer value_get_hierarchical_tag_index (const GValue* value); -GType hierarchical_tag_index_get_type (void) G_GNUC_CONST; -#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobPrivate)) -SpitDataImportsDataImportJob* spit_data_imports_data_import_job_new (SpitDataImportsDataImportSource* import_source); -SpitDataImportsDataImportJob* spit_data_imports_data_import_job_construct (GType object_type, - SpitDataImportsDataImportSource* import_source); -BatchImportJob* batch_import_job_construct (GType object_type); -GFile* spit_data_imports_data_import_source_get_file (SpitDataImportsDataImportSource* self); -guint64 spit_data_imports_data_import_source_get_filesize (SpitDataImportsDataImportSource* self); -time_t spit_data_imports_data_import_source_get_exposure_time (SpitDataImportsDataImportSource* self); -static HierarchicalTagIndex* spit_data_imports_data_import_job_build_exclusion_index (SpitDataImportsDataImportJob* self, - SpitDataImportsImportableTag** src_tags, - int src_tags_length1); -gchar* hierarchical_tag_utilities_join_path_components (gchar** path_components, - int path_components_length1); -gchar** tag_prep_tag_names (gchar** names, - int names_length1, - int* result_length1); -static gchar** spit_data_imports_data_import_job_build_path_components (SpitDataImportsDataImportJob* self, - SpitDataImportsImportableTag* tag, - int* result_length1); -#define TAG_PATH_SEPARATOR_STRING "/" -GeeList* hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path); -HierarchicalTagIndex* hierarchical_tag_index_from_paths (GeeCollection* client_paths); -time_t spit_data_imports_data_import_job_get_exposure_time (SpitDataImportsDataImportJob* self); -static gchar* spit_data_imports_data_import_job_real_get_dest_identifier (BatchImportJob* base); -gchar* spit_data_imports_data_import_source_get_filename (SpitDataImportsDataImportSource* self); -static gchar* spit_data_imports_data_import_job_real_get_source_identifier (BatchImportJob* base); -static gboolean spit_data_imports_data_import_job_real_is_directory (BatchImportJob* base); -static gchar* spit_data_imports_data_import_job_real_get_basename (BatchImportJob* base); -static gchar* spit_data_imports_data_import_job_real_get_path (BatchImportJob* base); -static void spit_data_imports_data_import_job_real_set_associated (BatchImportJob* base, - BatchImportJob* associated); -static gboolean spit_data_imports_data_import_job_real_determine_file_size (BatchImportJob* base, - guint64* filesize, - GFile* * file); -static gboolean spit_data_imports_data_import_job_real_prepare (BatchImportJob* base, - GFile* * file_to_import, - gboolean* copy_to_library, - GError** error); -SpitDataImportsImportableMediaItem* spit_data_imports_data_import_source_get_photo (SpitDataImportsDataImportSource* self); -static gboolean spit_data_imports_data_import_job_real_complete (BatchImportJob* base, - MediaSource* source, - BatchImportRoll* import_roll, - GError** error); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -GeeCollection* hierarchical_tag_index_get_all_paths (HierarchicalTagIndex* self); -GType tag_get_type (void) G_GNUC_CONST; -Tag* tag_for_path (const gchar* name); -GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path); -gchar* hierarchical_tag_utilities_hierarchical_to_flat (const gchar* path); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType tag_source_collection_get_type (void) G_GNUC_CONST; -gboolean tag_source_collection_exists (TagSourceCollection* self, - const gchar* name, - gboolean treat_htags_as_root); -void tag_promote (Tag* self); -void tag_attach (Tag* self, - MediaSource* source); -GType prepare_input_text_options_get_type (void) G_GNUC_CONST; -gchar* prepare_input_text (const gchar* text, - PrepareInputTextOptions options, - gint dest_length); -GType view_collection_get_type (void) G_GNUC_CONST; -void event_generate_single_event (MediaSource* media, - ViewCollection* events_so_far, - const gchar* event_name); -GType import_id_get_type (void) G_GNUC_CONST; -ImportID* import_id_dup (const ImportID* self); -void import_id_free (ImportID* self); -GType rating_get_type (void) G_GNUC_CONST; -Rating rating_unserialize (gint value); -void media_source_set_rating (MediaSource* self, - Rating rating); -void media_source_set_title (MediaSource* self, - const gchar* title); -GType dateable_get_type (void) G_GNUC_CONST; -void dateable_set_exposure_time (Dateable* self, - time_t target_time); -void photo_set_import_id (Photo* self, - ImportID* import_id); -gchar* hierarchical_tag_utilities_make_flat_tag_safe (const gchar* in_tag); -static void spit_data_imports_data_import_job_finalize (BatchImportJob * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static gpointer -_spit_data_imports_data_import_source_ref0 (gpointer self) -{ -#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - return self ? spit_data_imports_data_import_source_ref (self) : NULL; -#line 507 "DataImportJob.c" -} - - -SpitDataImportsDataImportJob* -spit_data_imports_data_import_job_construct (GType object_type, - SpitDataImportsDataImportSource* import_source) -{ - SpitDataImportsDataImportJob* self = NULL; - SpitDataImportsDataImportSource* _tmp0_; - GFile* _tmp1_; -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (import_source), NULL); -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self = (SpitDataImportsDataImportJob*) batch_import_job_construct (object_type); -#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp0_ = _spit_data_imports_data_import_source_ref0 (import_source); -#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _spit_data_imports_data_import_source_unref0 (self->priv->import_source); -#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self->priv->import_source = _tmp0_; -#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp1_ = spit_data_imports_data_import_source_get_file (import_source); -#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (self->priv->src_file); -#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self->priv->src_file = _tmp1_; -#line 25 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self->priv->filesize = spit_data_imports_data_import_source_get_filesize (import_source); -#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self->priv->exposure_time = spit_data_imports_data_import_source_get_exposure_time (import_source); -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - return self; -#line 540 "DataImportJob.c" -} - - -SpitDataImportsDataImportJob* -spit_data_imports_data_import_job_new (SpitDataImportsDataImportSource* import_source) -{ -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - return spit_data_imports_data_import_job_construct (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, import_source); -#line 549 "DataImportJob.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - return self ? g_object_ref (self) : NULL; -#line 558 "DataImportJob.c" -} - - -static HierarchicalTagIndex* -spit_data_imports_data_import_job_build_exclusion_index (SpitDataImportsDataImportJob* self, - SpitDataImportsImportableTag** src_tags, - int src_tags_length1) -{ - HierarchicalTagIndex* result = NULL; - GeeSet* detected_htags = NULL; - GeeHashSet* _tmp0_; - HierarchicalTagIndex* _tmp31_ = NULL; - GeeSet* _tmp32_; - gint _tmp33_; - gint _tmp34_; -#line 29 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB (self), NULL); -#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - detected_htags = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SET, GeeSet); -#line 580 "DataImportJob.c" - { - SpitDataImportsImportableTag** src_tag_collection = NULL; - gint src_tag_collection_length1 = 0; - gint _src_tag_collection_size_ = 0; - gint src_tag_it = 0; -#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - src_tag_collection = src_tags; -#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - src_tag_collection_length1 = src_tags_length1; -#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - for (src_tag_it = 0; src_tag_it < src_tags_length1; src_tag_it = src_tag_it + 1) { -#line 592 "DataImportJob.c" - SpitDataImportsImportableTag* _tmp1_; - SpitDataImportsImportableTag* src_tag = NULL; -#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp1_ = _g_object_ref0 (src_tag_collection[src_tag_it]); -#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - src_tag = _tmp1_; -#line 599 "DataImportJob.c" - { - gchar* prepped = NULL; - SpitDataImportsImportableTag* _tmp2_; - gint _tmp3_; - gchar** _tmp4_; - gchar** _tmp5_; - gint _tmp5__length1; - gint _tmp6_; - gchar** _tmp7_; - gchar** _tmp8_; - gint _tmp8__length1; - gchar* _tmp9_; - gchar* _tmp10_; - gboolean _tmp11_ = FALSE; - const gchar* _tmp12_; -#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp2_ = src_tag; -#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp4_ = spit_data_imports_data_import_job_build_path_components (self, _tmp2_, &_tmp3_); -#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp5_ = _tmp4_; -#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp5__length1 = _tmp3_; -#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp7_ = tag_prep_tag_names (_tmp5_, _tmp3_, &_tmp6_); -#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp8_ = _tmp7_; -#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp8__length1 = _tmp6_; -#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp9_ = hierarchical_tag_utilities_join_path_components (_tmp8_, _tmp6_); -#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp10_ = _tmp9_; -#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp8_ = (_vala_array_free (_tmp8_, _tmp8__length1, (GDestroyNotify) g_free), NULL); -#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp5_ = (_vala_array_free (_tmp5_, _tmp5__length1, (GDestroyNotify) g_free), NULL); -#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - prepped = _tmp10_; -#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp12_ = prepped; -#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (_tmp12_ != NULL) { -#line 643 "DataImportJob.c" - const gchar* _tmp13_; -#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp13_ = prepped; -#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp11_ = g_str_has_prefix (_tmp13_, TAG_PATH_SEPARATOR_STRING); -#line 649 "DataImportJob.c" - } else { -#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp11_ = FALSE; -#line 653 "DataImportJob.c" - } -#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (_tmp11_) { -#line 657 "DataImportJob.c" - GeeSet* _tmp14_; - const gchar* _tmp15_; - GeeList* parents = NULL; - const gchar* _tmp16_; - GeeList* _tmp17_; -#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp14_ = detected_htags; -#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp15_ = prepped; -#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection), _tmp15_); -#line 42 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp16_ = prepped; -#line 42 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp17_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp16_); -#line 42 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - parents = _tmp17_; -#line 675 "DataImportJob.c" - { - GeeList* _parent_list = NULL; - GeeList* _tmp18_; - GeeList* _tmp19_; - gint _parent_size = 0; - GeeList* _tmp20_; - gint _tmp21_; - gint _tmp22_; - gint _parent_index = 0; -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp18_ = parents; -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp19_ = _g_object_ref0 (_tmp18_); -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _parent_list = _tmp19_; -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp20_ = _parent_list; -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp21_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp22_ = _tmp21_; -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _parent_size = _tmp22_; -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _parent_index = -1; -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - while (TRUE) { -#line 703 "DataImportJob.c" - gint _tmp23_; - gint _tmp24_; - gint _tmp25_; - gchar* parent = NULL; - GeeList* _tmp26_; - gint _tmp27_; - gpointer _tmp28_; - GeeSet* _tmp29_; - const gchar* _tmp30_; -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp23_ = _parent_index; -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _parent_index = _tmp23_ + 1; -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp24_ = _parent_index; -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp25_ = _parent_size; -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (!(_tmp24_ < _tmp25_)) { -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - break; -#line 725 "DataImportJob.c" - } -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp26_ = _parent_list; -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp27_ = _parent_index; -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp28_ = gee_list_get (_tmp26_, _tmp27_); -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - parent = (gchar*) _tmp28_; -#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp29_ = detected_htags; -#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp30_ = parent; -#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection), _tmp30_); -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_free0 (parent); -#line 743 "DataImportJob.c" - } -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (_parent_list); -#line 747 "DataImportJob.c" - } -#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (parents); -#line 751 "DataImportJob.c" - } -#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_free0 (prepped); -#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (src_tag); -#line 757 "DataImportJob.c" - } - } - } -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp32_ = detected_htags; -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp33_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp34_ = _tmp33_; -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (_tmp34_ > 0) { -#line 769 "DataImportJob.c" - GeeSet* _tmp35_; - HierarchicalTagIndex* _tmp36_; -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp35_ = detected_htags; -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp36_ = hierarchical_tag_index_from_paths (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _hierarchical_tag_index_unref0 (_tmp31_); -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp31_ = _tmp36_; -#line 780 "DataImportJob.c" - } else { -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _hierarchical_tag_index_unref0 (_tmp31_); -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp31_ = NULL; -#line 786 "DataImportJob.c" - } -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - result = _tmp31_; -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (detected_htags); -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - return result; -#line 794 "DataImportJob.c" -} - - -time_t -spit_data_imports_data_import_job_get_exposure_time (SpitDataImportsDataImportJob* self) -{ - time_t result = 0; - time_t _tmp0_; -#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB (self), 0); -#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp0_ = self->priv->exposure_time; -#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - result = _tmp0_; -#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - return result; -#line 811 "DataImportJob.c" -} - - -static gchar* -spit_data_imports_data_import_job_real_get_dest_identifier (BatchImportJob* base) -{ - SpitDataImportsDataImportJob * self; - gchar* result = NULL; - SpitDataImportsDataImportSource* _tmp0_; - gchar* _tmp1_; -#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob); -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp0_ = self->priv->import_source; -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp1_ = spit_data_imports_data_import_source_get_filename (_tmp0_); -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - result = _tmp1_; -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - return result; -#line 832 "DataImportJob.c" -} - - -static gchar* -spit_data_imports_data_import_job_real_get_source_identifier (BatchImportJob* base) -{ - SpitDataImportsDataImportJob * self; - gchar* result = NULL; - SpitDataImportsDataImportSource* _tmp0_; - gchar* _tmp1_; -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob); -#line 60 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp0_ = self->priv->import_source; -#line 60 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp1_ = spit_data_imports_data_import_source_get_filename (_tmp0_); -#line 60 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - result = _tmp1_; -#line 60 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - return result; -#line 853 "DataImportJob.c" -} - - -static gboolean -spit_data_imports_data_import_job_real_is_directory (BatchImportJob* base) -{ - SpitDataImportsDataImportJob * self; - gboolean result = FALSE; -#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob); -#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - result = FALSE; -#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - return result; -#line 868 "DataImportJob.c" -} - - -static gchar* -spit_data_imports_data_import_job_real_get_basename (BatchImportJob* base) -{ - SpitDataImportsDataImportJob * self; - gchar* result = NULL; - GFile* _tmp0_; - gchar* _tmp1_; -#line 67 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob); -#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp0_ = self->priv->src_file; -#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp1_ = g_file_get_basename (_tmp0_); -#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - result = _tmp1_; -#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - return result; -#line 889 "DataImportJob.c" -} - - -static gchar* -spit_data_imports_data_import_job_real_get_path (BatchImportJob* base) -{ - SpitDataImportsDataImportJob * self; - gchar* result = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob); -#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp0_ = self->priv->src_file; -#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp1_ = g_file_get_parent (_tmp0_); -#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp2_ = _tmp1_; -#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp3_ = g_file_get_path (_tmp2_); -#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp4_ = _tmp3_; -#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (_tmp2_); -#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - result = _tmp4_; -#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - return result; -#line 921 "DataImportJob.c" -} - - -static gpointer -_batch_import_job_ref0 (gpointer self) -{ -#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - return self ? batch_import_job_ref (self) : NULL; -#line 930 "DataImportJob.c" -} - - -static void -spit_data_imports_data_import_job_real_set_associated (BatchImportJob* base, - BatchImportJob* associated) -{ - SpitDataImportsDataImportJob * self; - SpitDataImportsDataImportJob* _tmp0_; -#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob); -#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - g_return_if_fail (IS_BATCH_IMPORT_JOB (associated)); -#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp0_ = _batch_import_job_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (associated, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB) ? ((SpitDataImportsDataImportJob*) associated) : NULL); -#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _batch_import_job_unref0 (self->priv->associated); -#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self->priv->associated = _tmp0_; -#line 950 "DataImportJob.c" -} - - -static gboolean -spit_data_imports_data_import_job_real_determine_file_size (BatchImportJob* base, - guint64* filesize, - GFile* * file) -{ - SpitDataImportsDataImportJob * self; - guint64 _vala_filesize = 0ULL; - GFile* _vala_file = NULL; - gboolean result = FALSE; - guint64 _tmp0_; -#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob); -#line 80 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (_vala_file); -#line 80 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _vala_file = NULL; -#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp0_ = self->priv->filesize; -#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _vala_filesize = _tmp0_; -#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - result = TRUE; -#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (filesize) { -#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - *filesize = _vala_filesize; -#line 980 "DataImportJob.c" - } -#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (file) { -#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - *file = _vala_file; -#line 986 "DataImportJob.c" - } else { -#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (_vala_file); -#line 990 "DataImportJob.c" - } -#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - return result; -#line 994 "DataImportJob.c" -} - - -static gboolean -spit_data_imports_data_import_job_real_prepare (BatchImportJob* base, - GFile* * file_to_import, - gboolean* copy_to_library, - GError** error) -{ - SpitDataImportsDataImportJob * self; - GFile* _vala_file_to_import = NULL; - gboolean _vala_copy_to_library = FALSE; - gboolean result = FALSE; - GFile* _tmp0_; - GFile* _tmp1_; - SpitDataImportsDataImportSource* _tmp2_; - SpitDataImportsImportableMediaItem* _tmp3_; - SpitDataImportsImportableMediaItem* _tmp4_; - gint _tmp5_; - SpitDataImportsImportableTag** _tmp6_; - SpitDataImportsImportableTag** _tmp7_; - gint _tmp7__length1; - HierarchicalTagIndex* _tmp8_; -#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob); -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp0_ = self->priv->src_file; -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (_vala_file_to_import); -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _vala_file_to_import = _tmp1_; -#line 88 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _vala_copy_to_library = FALSE; -#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp2_ = self->priv->import_source; -#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp3_ = spit_data_imports_data_import_source_get_photo (_tmp2_); -#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp4_ = _tmp3_; -#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp6_ = spit_data_imports_importable_media_item_get_tags (_tmp4_, &_tmp5_); -#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp7_ = _tmp6_; -#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp7__length1 = _tmp5_; -#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp8_ = spit_data_imports_data_import_job_build_exclusion_index (self, _tmp7_, _tmp5_); -#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _hierarchical_tag_index_unref0 (self->priv->detected_htags); -#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self->priv->detected_htags = _tmp8_; -#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp7_ = (_vala_array_free (_tmp7_, _tmp7__length1, (GDestroyNotify) g_object_unref), NULL); -#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (_tmp4_); -#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - result = TRUE; -#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (file_to_import) { -#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - *file_to_import = _vala_file_to_import; -#line 1058 "DataImportJob.c" - } else { -#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (_vala_file_to_import); -#line 1062 "DataImportJob.c" - } -#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (copy_to_library) { -#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - *copy_to_library = _vala_copy_to_library; -#line 1068 "DataImportJob.c" - } -#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - return result; -#line 1072 "DataImportJob.c" -} - - -static gboolean -spit_data_imports_data_import_job_real_complete (BatchImportJob* base, - MediaSource* source, - BatchImportRoll* import_roll, - GError** error) -{ - SpitDataImportsDataImportJob * self; - gboolean result = FALSE; - LibraryPhoto* photo = NULL; - LibraryPhoto* _tmp0_; - LibraryPhoto* _tmp1_; - SpitDataImportsImportableMediaItem* src_photo = NULL; - SpitDataImportsDataImportSource* _tmp2_; - SpitDataImportsImportableMediaItem* _tmp3_; - HierarchicalTagIndex* _tmp4_; - SpitDataImportsImportableTag** src_tags = NULL; - SpitDataImportsImportableMediaItem* _tmp15_; - gint _tmp16_; - SpitDataImportsImportableTag** _tmp17_; - gint src_tags_length1; - gint _src_tags_size_; - SpitDataImportsImportableTag** _tmp18_; - gint _tmp18__length1; - SpitDataImportsImportableEvent* src_event = NULL; - SpitDataImportsImportableMediaItem* _tmp57_; - SpitDataImportsImportableEvent* _tmp58_; - SpitDataImportsImportableEvent* _tmp59_; - Rating dst_rating = 0; - SpitDataImportsImportableRating* src_rating = NULL; - SpitDataImportsImportableMediaItem* _tmp69_; - SpitDataImportsImportableRating* _tmp70_; - SpitDataImportsImportableRating* _tmp71_; - LibraryPhoto* _tmp74_; - Rating _tmp75_; - gchar* title = NULL; - SpitDataImportsImportableMediaItem* _tmp76_; - gchar* _tmp77_; - const gchar* _tmp78_; - time_t* date_time = NULL; - SpitDataImportsImportableMediaItem* _tmp81_; - time_t* _tmp82_; - time_t* _tmp83_; - LibraryPhoto* _tmp86_; - ImportID _tmp87_; -#line 95 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob); -#line 95 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE); -#line 95 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - g_return_val_if_fail (IS_BATCH_IMPORT_ROLL (import_roll), FALSE); -#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) source) : NULL); -#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - photo = _tmp0_; -#line 97 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp1_ = photo; -#line 97 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (_tmp1_ == NULL) { -#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - result = FALSE; -#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (photo); -#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - return result; -#line 1140 "DataImportJob.c" - } -#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp2_ = self->priv->import_source; -#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp3_ = spit_data_imports_data_import_source_get_photo (_tmp2_); -#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - src_photo = _tmp3_; -#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp4_ = self->priv->detected_htags; -#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (_tmp4_ != NULL) { -#line 1152 "DataImportJob.c" - GeeCollection* paths = NULL; - HierarchicalTagIndex* _tmp5_; - GeeCollection* _tmp6_; -#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp5_ = self->priv->detected_htags; -#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp6_ = hierarchical_tag_index_get_all_paths (_tmp5_); -#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - paths = _tmp6_; -#line 1162 "DataImportJob.c" - { - GeeIterator* _path_it = NULL; - GeeCollection* _tmp7_; - GeeIterator* _tmp8_; -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp7_ = paths; -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _path_it = _tmp8_; -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - while (TRUE) { -#line 1175 "DataImportJob.c" - GeeIterator* _tmp9_; - gchar* path = NULL; - GeeIterator* _tmp10_; - gpointer _tmp11_; - const gchar* _tmp12_; - Tag* _tmp13_; - Tag* _tmp14_; -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp9_ = _path_it; -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (!gee_iterator_next (_tmp9_)) { -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - break; -#line 1189 "DataImportJob.c" - } -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp10_ = _path_it; -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp11_ = gee_iterator_get (_tmp10_); -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - path = (gchar*) _tmp11_; -#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp12_ = path; -#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp13_ = tag_for_path (_tmp12_); -#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp14_ = _tmp13_; -#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (_tmp14_); -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_free0 (path); -#line 1207 "DataImportJob.c" - } -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (_path_it); -#line 1211 "DataImportJob.c" - } -#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (paths); -#line 1215 "DataImportJob.c" - } -#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp15_ = src_photo; -#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp17_ = spit_data_imports_importable_media_item_get_tags (_tmp15_, &_tmp16_); -#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - src_tags = _tmp17_; -#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - src_tags_length1 = _tmp16_; -#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _src_tags_size_ = src_tags_length1; -#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp18_ = src_tags; -#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp18__length1 = src_tags_length1; -#line 1231 "DataImportJob.c" - { - SpitDataImportsImportableTag** src_tag_collection = NULL; - gint src_tag_collection_length1 = 0; - gint _src_tag_collection_size_ = 0; - gint src_tag_it = 0; -#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - src_tag_collection = _tmp18_; -#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - src_tag_collection_length1 = _tmp18__length1; -#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - for (src_tag_it = 0; src_tag_it < _tmp18__length1; src_tag_it = src_tag_it + 1) { -#line 1243 "DataImportJob.c" - SpitDataImportsImportableTag* _tmp19_; - SpitDataImportsImportableTag* src_tag = NULL; -#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp19_ = _g_object_ref0 (src_tag_collection[src_tag_it]); -#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - src_tag = _tmp19_; -#line 1250 "DataImportJob.c" - { - gchar* prepped = NULL; - SpitDataImportsImportableTag* _tmp20_; - gint _tmp21_; - gchar** _tmp22_; - gchar** _tmp23_; - gint _tmp23__length1; - gint _tmp24_; - gchar** _tmp25_; - gchar** _tmp26_; - gint _tmp26__length1; - gchar* _tmp27_; - gchar* _tmp28_; - const gchar* _tmp29_; -#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp20_ = src_tag; -#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp22_ = spit_data_imports_data_import_job_build_path_components (self, _tmp20_, &_tmp21_); -#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp23_ = _tmp22_; -#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp23__length1 = _tmp21_; -#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp25_ = tag_prep_tag_names (_tmp23_, _tmp21_, &_tmp24_); -#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp26_ = _tmp25_; -#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp26__length1 = _tmp24_; -#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp27_ = hierarchical_tag_utilities_join_path_components (_tmp26_, _tmp24_); -#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp28_ = _tmp27_; -#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp26_ = (_vala_array_free (_tmp26_, _tmp26__length1, (GDestroyNotify) g_free), NULL); -#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp23_ = (_vala_array_free (_tmp23_, _tmp23__length1, (GDestroyNotify) g_free), NULL); -#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - prepped = _tmp28_; -#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp29_ = prepped; -#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (_tmp29_ != NULL) { -#line 1293 "DataImportJob.c" - const gchar* _tmp30_; - GeeList* _tmp31_; - GeeList* _tmp32_; - gint _tmp33_; - gint _tmp34_; - gboolean _tmp35_; - const gchar* _tmp53_; - Tag* _tmp54_; - Tag* _tmp55_; - LibraryPhoto* _tmp56_; -#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp30_ = prepped; -#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp31_ = hierarchical_tag_utilities_enumerate_path_components (_tmp30_); -#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp32_ = _tmp31_; -#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp33_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp34_ = _tmp33_; -#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp35_ = _tmp34_ == 1; -#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (_tmp32_); -#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (_tmp35_) { -#line 1320 "DataImportJob.c" - const gchar* _tmp36_; -#line 119 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp36_ = prepped; -#line 119 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (g_str_has_prefix (_tmp36_, TAG_PATH_SEPARATOR_STRING)) { -#line 1326 "DataImportJob.c" - const gchar* _tmp37_; - gchar* _tmp38_; -#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp37_ = prepped; -#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp38_ = hierarchical_tag_utilities_hierarchical_to_flat (_tmp37_); -#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_free0 (prepped); -#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - prepped = _tmp38_; -#line 1337 "DataImportJob.c" - } - } else { - GeeList* parents = NULL; - const gchar* _tmp39_; - GeeList* _tmp40_; - GeeList* _tmp41_; - gint _tmp42_; - gint _tmp43_; - gchar* top_level_parent = NULL; - GeeList* _tmp44_; - gpointer _tmp45_; - gchar* flat_top_level_parent = NULL; - const gchar* _tmp46_; - gchar* _tmp47_; - TagSourceCollection* _tmp48_; - const gchar* _tmp49_; -#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp39_ = prepped; -#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp40_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp39_); -#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - parents = _tmp40_; -#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp41_ = parents; -#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp42_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp43_ = _tmp42_; -#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _vala_assert (_tmp43_ > 0, "parents.size > 0"); -#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp44_ = parents; -#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp45_ = gee_list_get (_tmp44_, 0); -#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - top_level_parent = (gchar*) _tmp45_; -#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp46_ = top_level_parent; -#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp47_ = hierarchical_tag_utilities_hierarchical_to_flat (_tmp46_); -#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - flat_top_level_parent = _tmp47_; -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp48_ = tag_global; -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp49_ = flat_top_level_parent; -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (tag_source_collection_exists (_tmp48_, _tmp49_, FALSE)) { -#line 1386 "DataImportJob.c" - const gchar* _tmp50_; - Tag* _tmp51_; - Tag* _tmp52_; -#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp50_ = flat_top_level_parent; -#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp51_ = tag_for_path (_tmp50_); -#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp52_ = _tmp51_; -#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - tag_promote (_tmp52_); -#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (_tmp52_); -#line 1400 "DataImportJob.c" - } -#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_free0 (flat_top_level_parent); -#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_free0 (top_level_parent); -#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (parents); -#line 1408 "DataImportJob.c" - } -#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp53_ = prepped; -#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp54_ = tag_for_path (_tmp53_); -#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp55_ = _tmp54_; -#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp56_ = photo; -#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - tag_attach (_tmp55_, G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (_tmp55_); -#line 1422 "DataImportJob.c" - } -#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_free0 (prepped); -#line 111 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (src_tag); -#line 1428 "DataImportJob.c" - } - } - } -#line 139 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp57_ = src_photo; -#line 139 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp58_ = spit_data_imports_importable_media_item_get_event (_tmp57_); -#line 139 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - src_event = _tmp58_; -#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp59_ = src_event; -#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (_tmp59_ != NULL) { -#line 1442 "DataImportJob.c" - gchar* prepped = NULL; - SpitDataImportsImportableEvent* _tmp60_; - gchar* _tmp61_; - gchar* _tmp62_; - gchar* _tmp63_; - gchar* _tmp64_; - const gchar* _tmp65_; -#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp60_ = src_event; -#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp61_ = spit_data_imports_importable_event_get_name (_tmp60_); -#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp62_ = _tmp61_; -#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp63_ = prepare_input_text (_tmp62_, PREPARE_INPUT_TEXT_OPTIONS_DEFAULT, -1); -#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp64_ = _tmp63_; -#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_free0 (_tmp62_); -#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - prepped = _tmp64_; -#line 143 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp65_ = prepped; -#line 143 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (_tmp65_ != NULL) { -#line 1468 "DataImportJob.c" - LibraryPhoto* _tmp66_; - ViewCollection* _tmp67_; - const gchar* _tmp68_; -#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp66_ = photo; -#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp67_ = import_roll->generated_events; -#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp68_ = prepped; -#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - event_generate_single_event (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, TYPE_MEDIA_SOURCE, MediaSource), _tmp67_, _tmp68_); -#line 1480 "DataImportJob.c" - } -#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_free0 (prepped); -#line 1484 "DataImportJob.c" - } -#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp69_ = src_photo; -#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp70_ = spit_data_imports_importable_media_item_get_rating (_tmp69_); -#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - src_rating = _tmp70_; -#line 149 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp71_ = src_rating; -#line 149 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (spit_data_imports_importable_rating_is_rejected (_tmp71_)) { -#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - dst_rating = RATING_REJECTED; -#line 1498 "DataImportJob.c" - } else { - SpitDataImportsImportableRating* _tmp72_; -#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp72_ = src_rating; -#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (spit_data_imports_importable_rating_is_unrated (_tmp72_)) { -#line 152 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - dst_rating = RATING_UNRATED; -#line 1507 "DataImportJob.c" - } else { - SpitDataImportsImportableRating* _tmp73_; -#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp73_ = src_rating; -#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - dst_rating = rating_unserialize (spit_data_imports_importable_rating_get_value (_tmp73_)); -#line 1514 "DataImportJob.c" - } - } -#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp74_ = photo; -#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp75_ = dst_rating; -#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, TYPE_MEDIA_SOURCE, MediaSource), _tmp75_); -#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp76_ = src_photo; -#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp77_ = spit_data_imports_importable_media_item_get_title (_tmp76_); -#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - title = _tmp77_; -#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp78_ = title; -#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (_tmp78_ != NULL) { -#line 1533 "DataImportJob.c" - LibraryPhoto* _tmp79_; - const gchar* _tmp80_; -#line 159 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp79_ = photo; -#line 159 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp80_ = title; -#line 159 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - media_source_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp79_, TYPE_MEDIA_SOURCE, MediaSource), _tmp80_); -#line 1542 "DataImportJob.c" - } -#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp81_ = src_photo; -#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp82_ = spit_data_imports_importable_media_item_get_exposure_time (_tmp81_); -#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - date_time = _tmp82_; -#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp83_ = date_time; -#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (_tmp83_ != NULL) { -#line 1554 "DataImportJob.c" - LibraryPhoto* _tmp84_; - time_t* _tmp85_; -#line 163 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp84_ = photo; -#line 163 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp85_ = date_time; -#line 163 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - dateable_set_exposure_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp84_, TYPE_DATEABLE, Dateable), *_tmp85_); -#line 1563 "DataImportJob.c" - } -#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp86_ = photo; -#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp87_ = import_roll->import_id; -#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - photo_set_import_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp86_, TYPE_PHOTO, Photo), &_tmp87_); -#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - result = TRUE; -#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_free0 (date_time); -#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_free0 (title); -#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (src_rating); -#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (src_event); -#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - src_tags = (_vala_array_free (src_tags, src_tags_length1, (GDestroyNotify) g_object_unref), NULL); -#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (src_photo); -#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (photo); -#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - return result; -#line 1589 "DataImportJob.c" -} - - -static gchar** -spit_data_imports_data_import_job_build_path_components (SpitDataImportsDataImportJob* self, - SpitDataImportsImportableTag* tag, - int* result_length1) -{ - gchar** result = NULL; - GeeList* components = NULL; - GeeLinkedList* _tmp0_; - GeeList* _tmp12_; - gint _tmp13_; - gpointer* _tmp14_; - gchar** _tmp15_; - gint _tmp15__length1; -#line 170 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB (self), NULL); -#line 170 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_TAG (tag), NULL); -#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp0_ = gee_linked_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - components = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList); -#line 1614 "DataImportJob.c" - { - SpitDataImportsImportableTag* current_tag = NULL; - SpitDataImportsImportableTag* _tmp1_; -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp1_ = _g_object_ref0 (tag); -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - current_tag = _tmp1_; -#line 1622 "DataImportJob.c" - { - gboolean _tmp2_ = FALSE; -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp2_ = TRUE; -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - while (TRUE) { -#line 1629 "DataImportJob.c" - SpitDataImportsImportableTag* _tmp5_; - GeeList* _tmp6_; - SpitDataImportsImportableTag* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (!_tmp2_) { -#line 1639 "DataImportJob.c" - SpitDataImportsImportableTag* _tmp3_; - SpitDataImportsImportableTag* _tmp4_; -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp3_ = current_tag; -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp4_ = spit_data_imports_importable_tag_get_parent (_tmp3_); -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (current_tag); -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - current_tag = _tmp4_; -#line 1650 "DataImportJob.c" - } -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp2_ = FALSE; -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp5_ = current_tag; -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (!(_tmp5_ != NULL)) { -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - break; -#line 1660 "DataImportJob.c" - } -#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp6_ = components; -#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp7_ = current_tag; -#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp8_ = spit_data_imports_importable_tag_get_name (_tmp7_); -#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp9_ = _tmp8_; -#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp10_ = hierarchical_tag_utilities_make_flat_tag_safe (_tmp9_); -#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp11_ = _tmp10_; -#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - gee_list_insert (_tmp6_, 0, _tmp11_); -#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_free0 (_tmp11_); -#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_free0 (_tmp9_); -#line 1680 "DataImportJob.c" - } - } -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (current_tag); -#line 1685 "DataImportJob.c" - } -#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp12_ = components; -#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp14_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp13_); -#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp15_ = _tmp14_; -#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _tmp15__length1 = _tmp13_; -#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - if (result_length1) { -#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - *result_length1 = _tmp15__length1; -#line 1699 "DataImportJob.c" - } -#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - result = _tmp15_; -#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (components); -#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - return result; -#line 1707 "DataImportJob.c" -} - - -static void -spit_data_imports_data_import_job_class_init (SpitDataImportsDataImportJobClass * klass) -{ -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - spit_data_imports_data_import_job_parent_class = g_type_class_peek_parent (klass); -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - ((BatchImportJobClass *) klass)->finalize = spit_data_imports_data_import_job_finalize; -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - g_type_class_add_private (klass, sizeof (SpitDataImportsDataImportJobPrivate)); -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - ((BatchImportJobClass *) klass)->get_dest_identifier = (gchar* (*) (BatchImportJob *)) spit_data_imports_data_import_job_real_get_dest_identifier; -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - ((BatchImportJobClass *) klass)->get_source_identifier = (gchar* (*) (BatchImportJob *)) spit_data_imports_data_import_job_real_get_source_identifier; -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - ((BatchImportJobClass *) klass)->is_directory = (gboolean (*) (BatchImportJob *)) spit_data_imports_data_import_job_real_is_directory; -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - ((BatchImportJobClass *) klass)->get_basename = (gchar* (*) (BatchImportJob *)) spit_data_imports_data_import_job_real_get_basename; -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - ((BatchImportJobClass *) klass)->get_path = (gchar* (*) (BatchImportJob *)) spit_data_imports_data_import_job_real_get_path; -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - ((BatchImportJobClass *) klass)->set_associated = (void (*) (BatchImportJob *, BatchImportJob*)) spit_data_imports_data_import_job_real_set_associated; -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - ((BatchImportJobClass *) klass)->determine_file_size = (gboolean (*) (BatchImportJob *, guint64*, GFile* *)) spit_data_imports_data_import_job_real_determine_file_size; -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - ((BatchImportJobClass *) klass)->prepare = (gboolean (*) (BatchImportJob *, GFile* *, gboolean*, GError**)) spit_data_imports_data_import_job_real_prepare; -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - ((BatchImportJobClass *) klass)->complete = (gboolean (*) (BatchImportJob *, MediaSource*, BatchImportRoll*, GError**)) spit_data_imports_data_import_job_real_complete; -#line 1738 "DataImportJob.c" -} - - -static void -spit_data_imports_data_import_job_instance_init (SpitDataImportsDataImportJob * self) -{ -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self->priv = SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_GET_PRIVATE (self); -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self->priv->associated = NULL; -#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self->priv->detected_htags = NULL; -#line 1751 "DataImportJob.c" -} - - -static void -spit_data_imports_data_import_job_finalize (BatchImportJob * obj) -{ - SpitDataImportsDataImportJob * self; -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob); -#line 13 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _spit_data_imports_data_import_source_unref0 (self->priv->import_source); -#line 14 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _g_object_unref0 (self->priv->src_file); -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _batch_import_job_unref0 (self->priv->associated); -#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - _hierarchical_tag_index_unref0 (self->priv->detected_htags); -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportJob.vala" - BATCH_IMPORT_JOB_CLASS (spit_data_imports_data_import_job_parent_class)->finalize (obj); -#line 1771 "DataImportJob.c" -} - - -/** - * A specialized import job implementation for alien databases. - */ -GType -spit_data_imports_data_import_job_get_type (void) -{ - static volatile gsize spit_data_imports_data_import_job_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_data_import_job_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsDataImportJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_data_import_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsDataImportJob), 0, (GInstanceInitFunc) spit_data_imports_data_import_job_instance_init, NULL }; - GType spit_data_imports_data_import_job_type_id; - spit_data_imports_data_import_job_type_id = g_type_register_static (TYPE_BATCH_IMPORT_JOB, "SpitDataImportsDataImportJob", &g_define_type_info, 0); - g_once_init_leave (&spit_data_imports_data_import_job_type_id__volatile, spit_data_imports_data_import_job_type_id); - } - return spit_data_imports_data_import_job_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/data_imports/DataImportSource.c b/src/data_imports/DataImportSource.c deleted file mode 100644 index b4786b1..0000000 --- a/src/data_imports/DataImportSource.c +++ /dev/null @@ -1,1327 +0,0 @@ -/* DataImportSource.c generated by valac 0.40.4, the Vala compiler - * generated from DataImportSource.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include -#include - - -#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE (spit_data_imports_data_import_source_get_type ()) -#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSource)) -#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass)) -#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE)) -#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE)) -#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass)) - -typedef struct _SpitDataImportsDataImportSource SpitDataImportsDataImportSource; -typedef struct _SpitDataImportsDataImportSourceClass SpitDataImportsDataImportSourceClass; -typedef struct _SpitDataImportsDataImportSourcePrivate SpitDataImportsDataImportSourcePrivate; - -#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ()) -#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime)) -#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) -#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME)) -#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME)) -#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) - -typedef struct _MetadataDateTime MetadataDateTime; -typedef struct _MetadataDateTimeClass MetadataDateTimeClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL))) - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; -#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) -typedef struct _SpitDataImportsParamSpecDataImportSource SpitDataImportsParamSpecDataImportSource; - -struct _SpitDataImportsDataImportSource { - GTypeInstance parent_instance; - volatile int ref_count; - SpitDataImportsDataImportSourcePrivate * priv; -}; - -struct _SpitDataImportsDataImportSourceClass { - GTypeClass parent_class; - void (*finalize) (SpitDataImportsDataImportSource *self); -}; - -struct _SpitDataImportsDataImportSourcePrivate { - gboolean backing_file_found; - SpitDataImportsImportableMediaItem* db_photo; - gchar* title; - gchar* preview_md5; - guint64 file_size; - time_t modification_time; - MetadataDateTime* exposure_time; -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _SpitDataImportsParamSpecDataImportSource { - GParamSpec parent_instance; -}; - - -static gpointer spit_data_imports_data_import_source_parent_class = NULL; - -gpointer spit_data_imports_data_import_source_ref (gpointer instance); -void spit_data_imports_data_import_source_unref (gpointer instance); -GParamSpec* spit_data_imports_param_spec_data_import_source (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void spit_data_imports_value_set_data_import_source (GValue* value, - gpointer v_object); -void spit_data_imports_value_take_data_import_source (GValue* value, - gpointer v_object); -gpointer spit_data_imports_value_get_data_import_source (const GValue* value); -GType spit_data_imports_data_import_source_get_type (void) G_GNUC_CONST; -gpointer metadata_date_time_ref (gpointer instance); -void metadata_date_time_unref (gpointer instance); -GParamSpec* param_spec_metadata_date_time (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_metadata_date_time (GValue* value, - gpointer v_object); -void value_take_metadata_date_time (GValue* value, - gpointer v_object); -gpointer value_get_metadata_date_time (const GValue* value); -GType metadata_date_time_get_type (void) G_GNUC_CONST; -#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourcePrivate)) -SpitDataImportsDataImportSource* spit_data_imports_data_import_source_new (SpitDataImportsImportableMediaItem* db_photo); -SpitDataImportsDataImportSource* spit_data_imports_data_import_source_construct (GType object_type, - SpitDataImportsImportableMediaItem* db_photo); -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -PhotoMetadata* photo_metadata_new (void); -PhotoMetadata* photo_metadata_construct (GType object_type); -void media_metadata_read_from_file (MediaMetadata* self, - GFile* file, - GError** error); -gchar* spit_data_imports_data_import_source_get_filename (SpitDataImportsDataImportSource* self); -gchar* media_metadata_get_title (MediaMetadata* self); -MetadataDateTime* metadata_date_time_new (time_t timestamp); -MetadataDateTime* metadata_date_time_construct (GType object_type, - time_t timestamp); -MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self); -gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self); -guint64 query_total_file_size (GFile* file_or_dir, - GCancellable* cancellable, - GError** error); -time_t query_file_modified (GFile* file, - GError** error); -gchar* spit_data_imports_data_import_source_get_fulldir (SpitDataImportsDataImportSource* self); -GFile* spit_data_imports_data_import_source_get_file (SpitDataImportsDataImportSource* self); -gchar* spit_data_imports_data_import_source_get_name (SpitDataImportsDataImportSource* self); -gboolean is_string_empty (const gchar* s); -gchar* spit_data_imports_data_import_source_get_title (SpitDataImportsDataImportSource* self); -GType photo_file_format_get_type (void) G_GNUC_CONST; -PhotoFileFormat spit_data_imports_data_import_source_get_file_format (SpitDataImportsDataImportSource* self); -PhotoFileFormat photo_file_format_get_by_basename_extension (const gchar* basename); -gchar* spit_data_imports_data_import_source_to_string (SpitDataImportsDataImportSource* self); -time_t spit_data_imports_data_import_source_get_exposure_time (SpitDataImportsDataImportSource* self); -time_t metadata_date_time_get_timestamp (MetadataDateTime* self); -guint64 spit_data_imports_data_import_source_get_filesize (SpitDataImportsDataImportSource* self); -SpitDataImportsImportableMediaItem* spit_data_imports_data_import_source_get_photo (SpitDataImportsDataImportSource* self); -gboolean spit_data_imports_data_import_source_is_already_imported (SpitDataImportsDataImportSource* self); -gboolean library_photo_has_nontrash_duplicate (GFile* file, - const gchar* thumbnail_md5, - const gchar* full_md5, - PhotoFileFormat file_format); -gboolean spit_data_imports_data_import_source_was_backing_file_found (SpitDataImportsDataImportSource* self); -static void spit_data_imports_data_import_source_finalize (SpitDataImportsDataImportSource * obj); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 27 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return self ? g_object_ref (self) : NULL; -#line 196 "DataImportSource.c" -} - - -static gpointer -_metadata_date_time_ref0 (gpointer self) -{ -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return self ? metadata_date_time_ref (self) : NULL; -#line 205 "DataImportSource.c" -} - - -SpitDataImportsDataImportSource* -spit_data_imports_data_import_source_construct (GType object_type, - SpitDataImportsImportableMediaItem* db_photo) -{ - SpitDataImportsDataImportSource* self = NULL; - SpitDataImportsImportableMediaItem* _tmp0_; - gchar* folder_path = NULL; - gchar* _tmp1_; - gchar* filename = NULL; - gchar* _tmp2_; - GFile* photo = NULL; - gboolean _tmp3_ = FALSE; - const gchar* _tmp4_; - gboolean _tmp14_ = FALSE; - GFile* _tmp15_; - GError * _inner_error_ = NULL; -#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (db_photo), NULL); -#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - self = (SpitDataImportsDataImportSource*) g_type_create_instance (object_type); -#line 27 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp0_ = _g_object_ref0 (db_photo); -#line 27 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_object_unref0 (self->priv->db_photo); -#line 27 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - self->priv->db_photo = _tmp0_; -#line 31 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp1_ = spit_data_imports_importable_media_item_get_folder_path (db_photo); -#line 31 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - folder_path = _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp2_ = spit_data_imports_importable_media_item_get_filename (db_photo); -#line 32 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - filename = _tmp2_; -#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - photo = NULL; -#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp4_ = folder_path; -#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (_tmp4_ != NULL) { -#line 249 "DataImportSource.c" - const gchar* _tmp5_; -#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp5_ = filename; -#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp3_ = _tmp5_ != NULL; -#line 255 "DataImportSource.c" - } else { -#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp3_ = FALSE; -#line 259 "DataImportSource.c" - } -#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (_tmp3_) { -#line 263 "DataImportSource.c" - gchar* _tmp6_; - gchar* _tmp7_; - GFile* _tmp8_; - GFile* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - GFile* _tmp12_; - GFile* _tmp13_; -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp6_ = spit_data_imports_importable_media_item_get_folder_path (db_photo); -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp7_ = _tmp6_; -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp8_ = g_file_new_for_path (_tmp7_); -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp9_ = _tmp8_; -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp10_ = spit_data_imports_importable_media_item_get_filename (db_photo); -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp11_ = _tmp10_; -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp12_ = g_file_get_child (_tmp9_, _tmp11_); -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_object_unref0 (photo); -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - photo = _tmp12_; -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (_tmp11_); -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_object_unref0 (_tmp9_); -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (_tmp7_); -#line 38 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp13_ = photo; -#line 38 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - self->priv->backing_file_found = g_file_query_exists (_tmp13_, NULL); -#line 300 "DataImportSource.c" - } else { -#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - self->priv->backing_file_found = FALSE; -#line 304 "DataImportSource.c" - } -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp15_ = photo; -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (_tmp15_ != NULL) { -#line 310 "DataImportSource.c" - gboolean _tmp16_; -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp16_ = self->priv->backing_file_found; -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp14_ = _tmp16_; -#line 316 "DataImportSource.c" - } else { -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp14_ = FALSE; -#line 320 "DataImportSource.c" - } -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (_tmp14_) { -#line 324 "DataImportSource.c" - PhotoMetadata* metadata = NULL; - PhotoMetadata* _tmp17_; - gchar* _tmp24_; - const gchar* _tmp25_; - time_t* date_time = NULL; - time_t* _tmp31_; - time_t* _tmp32_; - PhotoMetadata* _tmp40_; -#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp17_ = photo_metadata_new (); -#line 44 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - metadata = _tmp17_; -#line 337 "DataImportSource.c" - { - PhotoMetadata* _tmp18_; - GFile* _tmp19_; -#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp18_ = metadata; -#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp19_ = photo; -#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - media_metadata_read_from_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_MEDIA_METADATA, MediaMetadata), _tmp19_, &_inner_error_); -#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 349 "DataImportSource.c" - goto __catch230_g_error; - } - } - goto __finally230; - __catch230_g_error: - { - GError* e = NULL; - gchar* _tmp20_; - gchar* _tmp21_; - GError* _tmp22_; - const gchar* _tmp23_; -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - e = _inner_error_; -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _inner_error_ = NULL; -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp20_ = spit_data_imports_data_import_source_get_filename (self); -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp21_ = _tmp20_; -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp22_ = e; -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp23_ = _tmp22_->message; -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_warning ("DataImportSource.vala:48: Could not get file metadata for %s: %s", _tmp21_, _tmp23_); -#line 48 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (_tmp21_); -#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _media_metadata_unref0 (metadata); -#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - metadata = NULL; -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_error_free0 (e); -#line 383 "DataImportSource.c" - } - __finally230: -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _media_metadata_unref0 (metadata); -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_object_unref0 (photo); -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (filename); -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (folder_path); -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_clear_error (&_inner_error_); -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return NULL; -#line 402 "DataImportSource.c" - } -#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp24_ = spit_data_imports_importable_media_item_get_title (db_photo); -#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (self->priv->title); -#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - self->priv->title = _tmp24_; -#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp25_ = self->priv->title; -#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (_tmp25_ == NULL) { -#line 414 "DataImportSource.c" - gchar* _tmp26_ = NULL; - PhotoMetadata* _tmp27_; - gchar* _tmp30_; -#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp27_ = metadata; -#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (_tmp27_ != NULL) { -#line 422 "DataImportSource.c" - PhotoMetadata* _tmp28_; - gchar* _tmp29_; -#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp28_ = metadata; -#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp29_ = media_metadata_get_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_MEDIA_METADATA, MediaMetadata)); -#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (_tmp26_); -#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp26_ = _tmp29_; -#line 433 "DataImportSource.c" - } else { -#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (_tmp26_); -#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp26_ = NULL; -#line 439 "DataImportSource.c" - } -#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp30_ = g_strdup (_tmp26_); -#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (self->priv->title); -#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - self->priv->title = _tmp30_; -#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (_tmp26_); -#line 449 "DataImportSource.c" - } -#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp31_ = spit_data_imports_importable_media_item_get_exposure_time (db_photo); -#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - date_time = _tmp31_; -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp32_ = date_time; -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (_tmp32_ != NULL) { -#line 459 "DataImportSource.c" - time_t* _tmp33_; - MetadataDateTime* _tmp34_; -#line 57 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp33_ = date_time; -#line 57 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp34_ = metadata_date_time_new (*_tmp33_); -#line 57 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _metadata_date_time_unref0 (self->priv->exposure_time); -#line 57 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - self->priv->exposure_time = _tmp34_; -#line 470 "DataImportSource.c" - } else { - MetadataDateTime* _tmp35_ = NULL; - PhotoMetadata* _tmp36_; - MetadataDateTime* _tmp39_; -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp36_ = metadata; -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (_tmp36_ != NULL) { -#line 479 "DataImportSource.c" - PhotoMetadata* _tmp37_; - MetadataDateTime* _tmp38_; -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp37_ = metadata; -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp38_ = photo_metadata_get_exposure_date_time (_tmp37_); -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _metadata_date_time_unref0 (_tmp35_); -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp35_ = _tmp38_; -#line 490 "DataImportSource.c" - } else { -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _metadata_date_time_unref0 (_tmp35_); -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp35_ = NULL; -#line 496 "DataImportSource.c" - } -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp39_ = _metadata_date_time_ref0 (_tmp35_); -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _metadata_date_time_unref0 (self->priv->exposure_time); -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - self->priv->exposure_time = _tmp39_; -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _metadata_date_time_unref0 (_tmp35_); -#line 506 "DataImportSource.c" - } -#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp40_ = metadata; -#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (_tmp40_ != NULL) { -#line 512 "DataImportSource.c" - PhotoMetadata* _tmp41_; - gchar* _tmp42_; -#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp41_ = metadata; -#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp42_ = photo_metadata_thumbnail_hash (_tmp41_); -#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (self->priv->preview_md5); -#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - self->priv->preview_md5 = _tmp42_; -#line 523 "DataImportSource.c" - } - { - guint64 _tmp43_ = 0ULL; - GFile* _tmp44_; -#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp44_ = photo; -#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp43_ = query_total_file_size (_tmp44_, NULL, &_inner_error_); -#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 534 "DataImportSource.c" - goto __catch231_g_error; - } -#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - self->priv->file_size = _tmp43_; -#line 539 "DataImportSource.c" - } - goto __finally231; - __catch231_g_error: - { - GError* e = NULL; - gchar* _tmp45_; - gchar* _tmp46_; - GError* _tmp47_; - const gchar* _tmp48_; -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - e = _inner_error_; -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _inner_error_ = NULL; -#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp45_ = spit_data_imports_data_import_source_get_filename (self); -#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp46_ = _tmp45_; -#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp47_ = e; -#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp48_ = _tmp47_->message; -#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_warning ("DataImportSource.vala:73: Could not get file size for %s: %s", _tmp46_, _tmp48_); -#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (_tmp46_); -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_error_free0 (e); -#line 567 "DataImportSource.c" - } - __finally231: -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (date_time); -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _media_metadata_unref0 (metadata); -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_object_unref0 (photo); -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (filename); -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (folder_path); -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_clear_error (&_inner_error_); -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return NULL; -#line 588 "DataImportSource.c" - } - { - time_t _tmp49_ = 0; - GFile* _tmp50_; -#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp50_ = photo; -#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp49_ = query_file_modified (_tmp50_, &_inner_error_); -#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 599 "DataImportSource.c" - goto __catch232_g_error; - } -#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - self->priv->modification_time = _tmp49_; -#line 604 "DataImportSource.c" - } - goto __finally232; - __catch232_g_error: - { - GError* e = NULL; - gchar* _tmp51_; - gchar* _tmp52_; - GError* _tmp53_; - const gchar* _tmp54_; -#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - e = _inner_error_; -#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _inner_error_ = NULL; -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp51_ = spit_data_imports_data_import_source_get_filename (self); -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp52_ = _tmp51_; -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp53_ = e; -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp54_ = _tmp53_->message; -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_warning ("DataImportSource.vala:78: Could not get modification time for %s: %s", _tmp52_, _tmp54_); -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (_tmp52_); -#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_error_free0 (e); -#line 632 "DataImportSource.c" - } - __finally232: -#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (date_time); -#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _media_metadata_unref0 (metadata); -#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_object_unref0 (photo); -#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (filename); -#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (folder_path); -#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_clear_error (&_inner_error_); -#line 75 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return NULL; -#line 653 "DataImportSource.c" - } -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (date_time); -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _media_metadata_unref0 (metadata); -#line 659 "DataImportSource.c" - } else { - GFile* _tmp55_; - gchar* _tmp56_; - gchar* _tmp57_; - gchar* _tmp58_; - gchar* _tmp59_; -#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp55_ = photo; -#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp56_ = g_file_get_path (_tmp55_); -#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp57_ = _tmp56_; -#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp58_ = g_strdup_printf ("Photo file %s not found", _tmp57_); -#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp59_ = _tmp58_; -#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_debug ("DataImportSource.vala:81: %s", _tmp59_); -#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (_tmp59_); -#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (_tmp57_); -#line 682 "DataImportSource.c" - } -#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_object_unref0 (photo); -#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (filename); -#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (folder_path); -#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return self; -#line 692 "DataImportSource.c" -} - - -SpitDataImportsDataImportSource* -spit_data_imports_data_import_source_new (SpitDataImportsImportableMediaItem* db_photo) -{ -#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return spit_data_imports_data_import_source_construct (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, db_photo); -#line 701 "DataImportSource.c" -} - - -gchar* -spit_data_imports_data_import_source_get_filename (SpitDataImportsDataImportSource* self) -{ - gchar* result = NULL; - SpitDataImportsImportableMediaItem* _tmp0_; - gchar* _tmp1_; -#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL); -#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp0_ = self->priv->db_photo; -#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp1_ = spit_data_imports_importable_media_item_get_filename (_tmp0_); -#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - result = _tmp1_; -#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return result; -#line 721 "DataImportSource.c" -} - - -gchar* -spit_data_imports_data_import_source_get_fulldir (SpitDataImportsDataImportSource* self) -{ - gchar* result = NULL; - SpitDataImportsImportableMediaItem* _tmp0_; - gchar* _tmp1_; -#line 89 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL); -#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp0_ = self->priv->db_photo; -#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp1_ = spit_data_imports_importable_media_item_get_folder_path (_tmp0_); -#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - result = _tmp1_; -#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return result; -#line 741 "DataImportSource.c" -} - - -GFile* -spit_data_imports_data_import_source_get_file (SpitDataImportsDataImportSource* self) -{ - GFile* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - GFile* _tmp6_; - GFile* _tmp7_; -#line 93 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL); -#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp0_ = spit_data_imports_data_import_source_get_fulldir (self); -#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp1_ = _tmp0_; -#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp2_ = g_file_new_for_path (_tmp1_); -#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp3_ = _tmp2_; -#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp4_ = spit_data_imports_data_import_source_get_filename (self); -#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp5_ = _tmp4_; -#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp6_ = g_file_get_child (_tmp3_, _tmp5_); -#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp7_ = _tmp6_; -#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (_tmp5_); -#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_object_unref0 (_tmp3_); -#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (_tmp1_); -#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - result = _tmp7_; -#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return result; -#line 785 "DataImportSource.c" -} - - -gchar* -spit_data_imports_data_import_source_get_name (SpitDataImportsDataImportSource* self) -{ - gchar* result = NULL; - gchar* _tmp0_ = NULL; - const gchar* _tmp1_; -#line 97 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL); -#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp1_ = self->priv->title; -#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (!is_string_empty (_tmp1_)) { -#line 801 "DataImportSource.c" - const gchar* _tmp2_; - gchar* _tmp3_; -#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp2_ = self->priv->title; -#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (_tmp0_); -#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp0_ = _tmp3_; -#line 812 "DataImportSource.c" - } else { - gchar* _tmp4_; -#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp4_ = spit_data_imports_data_import_source_get_filename (self); -#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (_tmp0_); -#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp0_ = _tmp4_; -#line 821 "DataImportSource.c" - } -#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - result = _tmp0_; -#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return result; -#line 827 "DataImportSource.c" -} - - -gchar* -spit_data_imports_data_import_source_get_title (SpitDataImportsDataImportSource* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL); -#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp0_ = self->priv->title; -#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - result = _tmp1_; -#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return result; -#line 847 "DataImportSource.c" -} - - -PhotoFileFormat -spit_data_imports_data_import_source_get_file_format (SpitDataImportsDataImportSource* self) -{ - PhotoFileFormat result = 0; - gchar* _tmp0_; - gchar* _tmp1_; - PhotoFileFormat _tmp2_; -#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), 0); -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp0_ = spit_data_imports_data_import_source_get_filename (self); -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp1_ = _tmp0_; -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp2_ = photo_file_format_get_by_basename_extension (_tmp1_); -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (_tmp1_); -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - result = _tmp2_; -#line 106 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return result; -#line 872 "DataImportSource.c" -} - - -gchar* -spit_data_imports_data_import_source_to_string (SpitDataImportsDataImportSource* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL); -#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp0_ = spit_data_imports_data_import_source_get_name (self); -#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - result = _tmp0_; -#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return result; -#line 889 "DataImportSource.c" -} - - -time_t -spit_data_imports_data_import_source_get_exposure_time (SpitDataImportsDataImportSource* self) -{ - time_t result = 0; - time_t _tmp0_ = 0; - MetadataDateTime* _tmp1_; -#line 113 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), 0); -#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp1_ = self->priv->exposure_time; -#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (_tmp1_ != NULL) { -#line 905 "DataImportSource.c" - MetadataDateTime* _tmp2_; -#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp2_ = self->priv->exposure_time; -#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp0_ = metadata_date_time_get_timestamp (_tmp2_); -#line 911 "DataImportSource.c" - } else { - time_t _tmp3_; -#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp3_ = self->priv->modification_time; -#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp0_ = _tmp3_; -#line 918 "DataImportSource.c" - } -#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - result = _tmp0_; -#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return result; -#line 924 "DataImportSource.c" -} - - -guint64 -spit_data_imports_data_import_source_get_filesize (SpitDataImportsDataImportSource* self) -{ - guint64 result = 0ULL; - guint64 _tmp0_; -#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), 0ULL); -#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp0_ = self->priv->file_size; -#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - result = _tmp0_; -#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return result; -#line 941 "DataImportSource.c" -} - - -SpitDataImportsImportableMediaItem* -spit_data_imports_data_import_source_get_photo (SpitDataImportsDataImportSource* self) -{ - SpitDataImportsImportableMediaItem* result = NULL; - SpitDataImportsImportableMediaItem* _tmp0_; - SpitDataImportsImportableMediaItem* _tmp1_; -#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), NULL); -#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp0_ = self->priv->db_photo; -#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - result = _tmp1_; -#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return result; -#line 961 "DataImportSource.c" -} - - -gboolean -spit_data_imports_data_import_source_is_already_imported (SpitDataImportsDataImportSource* self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - const gchar* _tmp1_; -#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), FALSE); -#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp1_ = self->priv->preview_md5; -#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (_tmp1_ != NULL) { -#line 977 "DataImportSource.c" - const gchar* _tmp2_; -#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp2_ = self->priv->preview_md5; -#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp0_ = library_photo_has_nontrash_duplicate (NULL, _tmp2_, NULL, spit_data_imports_data_import_source_get_file_format (self)); -#line 983 "DataImportSource.c" - } else { -#line 129 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp0_ = FALSE; -#line 987 "DataImportSource.c" - } -#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - result = _tmp0_; -#line 127 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return result; -#line 993 "DataImportSource.c" -} - - -gboolean -spit_data_imports_data_import_source_was_backing_file_found (SpitDataImportsDataImportSource* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE (self), FALSE); -#line 133 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _tmp0_ = self->priv->backing_file_found; -#line 133 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - result = _tmp0_; -#line 133 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return result; -#line 1010 "DataImportSource.c" -} - - -static void -spit_data_imports_value_data_import_source_init (GValue* value) -{ -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - value->data[0].v_pointer = NULL; -#line 1019 "DataImportSource.c" -} - - -static void -spit_data_imports_value_data_import_source_free_value (GValue* value) -{ -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (value->data[0].v_pointer) { -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - spit_data_imports_data_import_source_unref (value->data[0].v_pointer); -#line 1030 "DataImportSource.c" - } -} - - -static void -spit_data_imports_value_data_import_source_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (src_value->data[0].v_pointer) { -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - dest_value->data[0].v_pointer = spit_data_imports_data_import_source_ref (src_value->data[0].v_pointer); -#line 1043 "DataImportSource.c" - } else { -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - dest_value->data[0].v_pointer = NULL; -#line 1047 "DataImportSource.c" - } -} - - -static gpointer -spit_data_imports_value_data_import_source_peek_pointer (const GValue* value) -{ -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return value->data[0].v_pointer; -#line 1057 "DataImportSource.c" -} - - -static gchar* -spit_data_imports_value_data_import_source_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (collect_values[0].v_pointer) { -#line 1069 "DataImportSource.c" - SpitDataImportsDataImportSource * object; - object = collect_values[0].v_pointer; -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (object->parent_instance.g_class == NULL) { -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1076 "DataImportSource.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1080 "DataImportSource.c" - } -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - value->data[0].v_pointer = spit_data_imports_data_import_source_ref (object); -#line 1084 "DataImportSource.c" - } else { -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - value->data[0].v_pointer = NULL; -#line 1088 "DataImportSource.c" - } -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return NULL; -#line 1092 "DataImportSource.c" -} - - -static gchar* -spit_data_imports_value_data_import_source_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - SpitDataImportsDataImportSource ** object_p; - object_p = collect_values[0].v_pointer; -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (!object_p) { -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1108 "DataImportSource.c" - } -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (!value->data[0].v_pointer) { -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - *object_p = NULL; -#line 1114 "DataImportSource.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - *object_p = value->data[0].v_pointer; -#line 1118 "DataImportSource.c" - } else { -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - *object_p = spit_data_imports_data_import_source_ref (value->data[0].v_pointer); -#line 1122 "DataImportSource.c" - } -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return NULL; -#line 1126 "DataImportSource.c" -} - - -GParamSpec* -spit_data_imports_param_spec_data_import_source (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - SpitDataImportsParamSpecDataImportSource* spec; -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_val_if_fail (g_type_is_a (object_type, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE), NULL); -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return G_PARAM_SPEC (spec); -#line 1146 "DataImportSource.c" -} - - -gpointer -spit_data_imports_value_get_data_import_source (const GValue* value) -{ -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE), NULL); -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return value->data[0].v_pointer; -#line 1157 "DataImportSource.c" -} - - -void -spit_data_imports_value_set_data_import_source (GValue* value, - gpointer v_object) -{ - SpitDataImportsDataImportSource * old; -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE)); -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - old = value->data[0].v_pointer; -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (v_object) { -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE)); -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - value->data[0].v_pointer = v_object; -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - spit_data_imports_data_import_source_ref (value->data[0].v_pointer); -#line 1180 "DataImportSource.c" - } else { -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - value->data[0].v_pointer = NULL; -#line 1184 "DataImportSource.c" - } -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (old) { -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - spit_data_imports_data_import_source_unref (old); -#line 1190 "DataImportSource.c" - } -} - - -void -spit_data_imports_value_take_data_import_source (GValue* value, - gpointer v_object) -{ - SpitDataImportsDataImportSource * old; -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE)); -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - old = value->data[0].v_pointer; -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (v_object) { -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE)); -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - value->data[0].v_pointer = v_object; -#line 1212 "DataImportSource.c" - } else { -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - value->data[0].v_pointer = NULL; -#line 1216 "DataImportSource.c" - } -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (old) { -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - spit_data_imports_data_import_source_unref (old); -#line 1222 "DataImportSource.c" - } -} - - -static void -spit_data_imports_data_import_source_class_init (SpitDataImportsDataImportSourceClass * klass) -{ -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - spit_data_imports_data_import_source_parent_class = g_type_class_peek_parent (klass); -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - ((SpitDataImportsDataImportSourceClass *) klass)->finalize = spit_data_imports_data_import_source_finalize; -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_type_class_add_private (klass, sizeof (SpitDataImportsDataImportSourcePrivate)); -#line 1236 "DataImportSource.c" -} - - -static void -spit_data_imports_data_import_source_instance_init (SpitDataImportsDataImportSource * self) -{ -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - self->priv = SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_PRIVATE (self); -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - self->priv->title = NULL; -#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - self->priv->preview_md5 = NULL; -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - self->ref_count = 1; -#line 1251 "DataImportSource.c" -} - - -static void -spit_data_imports_data_import_source_finalize (SpitDataImportsDataImportSource * obj) -{ - SpitDataImportsDataImportSource * self; -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSource); -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_signal_handlers_destroy (self); -#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_object_unref0 (self->priv->db_photo); -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (self->priv->title); -#line 21 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _g_free0 (self->priv->preview_md5); -#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - _metadata_date_time_unref0 (self->priv->exposure_time); -#line 1271 "DataImportSource.c" -} - - -/** - * Photo source implementation for alien databases. This class is responsible - * for extracting meta-data out of a source photo to support the import - * process. - * - * This class does not extend PhotoSource in order to minimise the API to the - * absolute minimum required to run the import job. - */ -GType -spit_data_imports_data_import_source_get_type (void) -{ - static volatile gsize spit_data_imports_data_import_source_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_data_import_source_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { spit_data_imports_value_data_import_source_init, spit_data_imports_value_data_import_source_free_value, spit_data_imports_value_data_import_source_copy_value, spit_data_imports_value_data_import_source_peek_pointer, "p", spit_data_imports_value_data_import_source_collect_value, "p", spit_data_imports_value_data_import_source_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsDataImportSourceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_data_import_source_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsDataImportSource), 0, (GInstanceInitFunc) spit_data_imports_data_import_source_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType spit_data_imports_data_import_source_type_id; - spit_data_imports_data_import_source_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SpitDataImportsDataImportSource", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&spit_data_imports_data_import_source_type_id__volatile, spit_data_imports_data_import_source_type_id); - } - return spit_data_imports_data_import_source_type_id__volatile; -} - - -gpointer -spit_data_imports_data_import_source_ref (gpointer instance) -{ - SpitDataImportsDataImportSource * self; - self = instance; -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_atomic_int_inc (&self->ref_count); -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - return instance; -#line 1308 "DataImportSource.c" -} - - -void -spit_data_imports_data_import_source_unref (gpointer instance) -{ - SpitDataImportsDataImportSource * self; - self = instance; -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_CLASS (self)->finalize (self); -#line 17 "/home/jens/Source/shotwell/src/data_imports/DataImportSource.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1323 "DataImportSource.c" - } -} - - - diff --git a/src/data_imports/DataImports.c b/src/data_imports/DataImports.c deleted file mode 100644 index a1ebfb1..0000000 --- a/src/data_imports/DataImports.c +++ /dev/null @@ -1,143 +0,0 @@ -/* DataImports.c generated by valac 0.40.4, the Vala compiler - * generated from DataImports.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/* This file is the master unit file for the DataImports unit. It should be edited to include - * whatever code is deemed necessary. - * - * The init() and terminate() methods are mandatory. - * - * If the unit needs to be configured prior to initialization, add the proper parameters to - * the preconfigure() method, implement it, and ensure in init() that it's been called. - */ - - -#include -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include - - - - -void data_imports_init (GError** error); -static void _vala_array_add70 (gchar** * array, - int* length, - int* size, - gchar* value); -void plugins_register_extension_point (GType type, - const gchar* name, - const gchar* icon_name, - gchar** core_ids, - int core_ids_length1); -#define RESOURCES_IMPORT "import" -void data_imports_terminate (void); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static void -_vala_array_add70 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala" - if ((*length) == (*size)) { -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 62 "DataImports.c" - } -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala" - (*array)[(*length)++] = value; -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala" - (*array)[*length] = NULL; -#line 68 "DataImports.c" -} - - -void -data_imports_init (GError** error) -{ - gchar** core_ids = NULL; - gchar** _tmp0_; - gint core_ids_length1; - gint _core_ids_size_; - gchar** _tmp1_; - gint _tmp1__length1; - gchar* _tmp2_; - gchar** _tmp3_; - gint _tmp3__length1; -#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala" - _tmp0_ = g_new0 (gchar*, 0 + 1); -#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala" - core_ids = _tmp0_; -#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala" - core_ids_length1 = 0; -#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala" - _core_ids_size_ = core_ids_length1; -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala" - _tmp1_ = core_ids; -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala" - _tmp1__length1 = core_ids_length1; -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala" - _tmp2_ = g_strdup ("org.yorba.shotwell.dataimports.fspot"); -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala" - _vala_array_add70 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp2_); -#line 22 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala" - _tmp3_ = core_ids; -#line 22 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala" - _tmp3__length1 = core_ids_length1; -#line 22 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala" - plugins_register_extension_point (SPIT_DATA_IMPORTS_TYPE_SERVICE, _ ("Data Imports"), RESOURCES_IMPORT, _tmp3_, _tmp3__length1); -#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImports.vala" - core_ids = (_vala_array_free (core_ids, core_ids_length1, (GDestroyNotify) g_free), NULL); -#line 108 "DataImports.c" -} - - -void -data_imports_terminate (void) -{ -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/data_imports/DataImportsPluginHost.c b/src/data_imports/DataImportsPluginHost.c deleted file mode 100644 index 8b74806..0000000 --- a/src/data_imports/DataImportsPluginHost.c +++ /dev/null @@ -1,3658 +0,0 @@ -/* DataImportsPluginHost.c generated by valac 0.40.4, the Vala compiler - * generated from DataImportsPluginHost.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER (spit_data_imports_core_importer_get_type ()) -#define SPIT_DATA_IMPORTS_CORE_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, SpitDataImportsCoreImporter)) -#define SPIT_DATA_IMPORTS_CORE_IMPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, SpitDataImportsCoreImporterClass)) -#define SPIT_DATA_IMPORTS_IS_CORE_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER)) -#define SPIT_DATA_IMPORTS_IS_CORE_IMPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER)) -#define SPIT_DATA_IMPORTS_CORE_IMPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, SpitDataImportsCoreImporterClass)) - -typedef struct _SpitDataImportsCoreImporter SpitDataImportsCoreImporter; -typedef struct _SpitDataImportsCoreImporterClass SpitDataImportsCoreImporterClass; -typedef struct _SpitDataImportsCoreImporterPrivate SpitDataImportsCoreImporterPrivate; - -#define TYPE_BATCH_IMPORT_ROLL (batch_import_roll_get_type ()) -#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll)) -#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass)) -#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL)) -#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL)) -#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass)) - -typedef struct _BatchImportRoll BatchImportRoll; -typedef struct _BatchImportRollClass BatchImportRollClass; -#define _batch_import_roll_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_roll_unref (var), NULL))) - -#define TYPE_SORTED_LIST (sorted_list_get_type ()) -#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList)) -#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass)) -#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST)) -#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST)) -#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass)) - -typedef struct _SortedList SortedList; -typedef struct _SortedListClass SortedListClass; - -#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ()) -#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob)) -#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass)) -#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB)) -#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB)) -#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass)) - -typedef struct _BatchImportJob BatchImportJob; -typedef struct _BatchImportJobClass BatchImportJobClass; - -#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB (spit_data_imports_data_import_job_get_type ()) -#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob)) -#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobClass)) -#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB)) -#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB)) -#define SPIT_DATA_IMPORTS_DATA_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJobClass)) - -typedef struct _SpitDataImportsDataImportJob SpitDataImportsDataImportJob; -typedef struct _SpitDataImportsDataImportJobClass SpitDataImportsDataImportJobClass; - -#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE (spit_data_imports_data_import_source_get_type ()) -#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSource)) -#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass)) -#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE)) -#define SPIT_DATA_IMPORTS_IS_DATA_IMPORT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE)) -#define SPIT_DATA_IMPORTS_DATA_IMPORT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_SOURCE, SpitDataImportsDataImportSourceClass)) - -typedef struct _SpitDataImportsDataImportSource SpitDataImportsDataImportSource; -typedef struct _SpitDataImportsDataImportSourceClass SpitDataImportsDataImportSourceClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _batch_import_job_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_job_unref (var), NULL))) -#define _spit_data_imports_data_import_source_unref0(var) ((var == NULL) ? NULL : (var = (spit_data_imports_data_import_source_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_BATCH_IMPORT (batch_import_get_type ()) -#define BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT, BatchImport)) -#define BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT, BatchImportClass)) -#define IS_BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT)) -#define IS_BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT)) -#define BATCH_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT, BatchImportClass)) - -typedef struct _BatchImport BatchImport; -typedef struct _BatchImportClass BatchImportClass; - -#define TYPE_IMPORT_MANIFEST (import_manifest_get_type ()) -#define IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_MANIFEST, ImportManifest)) -#define IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_MANIFEST, ImportManifestClass)) -#define IS_IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_MANIFEST)) -#define IS_IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_MANIFEST)) -#define IMPORT_MANIFEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_MANIFEST, ImportManifestClass)) - -typedef struct _ImportManifest ImportManifest; -typedef struct _ImportManifestClass ImportManifestClass; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; -typedef struct _SpitDataImportsParamSpecCoreImporter SpitDataImportsParamSpecCoreImporter; - -#define PLUGINS_TYPE_STANDARD_HOST_INTERFACE (plugins_standard_host_interface_get_type ()) -#define PLUGINS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface)) -#define PLUGINS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass)) -#define PLUGINS_IS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE)) -#define PLUGINS_IS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE)) -#define PLUGINS_STANDARD_HOST_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass)) - -typedef struct _PluginsStandardHostInterface PluginsStandardHostInterface; -typedef struct _PluginsStandardHostInterfaceClass PluginsStandardHostInterfaceClass; -typedef struct _PluginsStandardHostInterfacePrivate PluginsStandardHostInterfacePrivate; - -#define SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST (spit_data_imports_concrete_data_imports_host_get_type ()) -#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost)) -#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHostClass)) -#define SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST)) -#define SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST)) -#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHostClass)) - -typedef struct _SpitDataImportsConcreteDataImportsHost SpitDataImportsConcreteDataImportsHost; -typedef struct _SpitDataImportsConcreteDataImportsHostClass SpitDataImportsConcreteDataImportsHostClass; -typedef struct _SpitDataImportsConcreteDataImportsHostPrivate SpitDataImportsConcreteDataImportsHostPrivate; - -#define DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG (data_imports_ui_data_imports_dialog_get_type ()) -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialog)) -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogClass)) -#define DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG)) -#define DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG)) -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogClass)) - -typedef struct _DataImportsUIDataImportsDialog DataImportsUIDataImportsDialog; -typedef struct _DataImportsUIDataImportsDialogClass DataImportsUIDataImportsDialogClass; - -#define DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE (data_imports_ui_concrete_dialog_pane_get_type ()) -#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane)) -#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPaneClass)) -#define DATA_IMPORTS_UI_IS_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE)) -#define DATA_IMPORTS_UI_IS_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE)) -#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPaneClass)) - -typedef struct _DataImportsUIConcreteDialogPane DataImportsUIConcreteDialogPane; -typedef struct _DataImportsUIConcreteDialogPaneClass DataImportsUIConcreteDialogPaneClass; - -#define DATA_IMPORTS_UI_TYPE_PROGRESS_PANE (data_imports_ui_progress_pane_get_type ()) -#define DATA_IMPORTS_UI_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPane)) -#define DATA_IMPORTS_UI_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPaneClass)) -#define DATA_IMPORTS_UI_IS_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE)) -#define DATA_IMPORTS_UI_IS_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE)) -#define DATA_IMPORTS_UI_PROGRESS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPaneClass)) - -typedef struct _DataImportsUIProgressPane DataImportsUIProgressPane; -typedef struct _DataImportsUIProgressPaneClass DataImportsUIProgressPaneClass; -enum { - SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_0_PROPERTY, - SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_NUM_PROPERTIES -}; -static GParamSpec* spit_data_imports_concrete_data_imports_host_properties[SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_NUM_PROPERTIES]; -#define _spit_data_imports_core_importer_unref0(var) ((var == NULL) ? NULL : (var = (spit_data_imports_core_importer_unref (var), NULL))) - -#define DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE (data_imports_ui_static_message_pane_get_type ()) -#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePane)) -#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePaneClass)) -#define DATA_IMPORTS_UI_IS_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE)) -#define DATA_IMPORTS_UI_IS_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE)) -#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePaneClass)) - -typedef struct _DataImportsUIStaticMessagePane DataImportsUIStaticMessagePane; -typedef struct _DataImportsUIStaticMessagePaneClass DataImportsUIStaticMessagePaneClass; - -#define DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE (data_imports_ui_library_selection_pane_get_type ()) -#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPane)) -#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPaneClass)) -#define DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE)) -#define DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE)) -#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPaneClass)) - -typedef struct _DataImportsUILibrarySelectionPane DataImportsUILibrarySelectionPane; -typedef struct _DataImportsUILibrarySelectionPaneClass DataImportsUILibrarySelectionPaneClass; - -#define SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST (spit_data_imports_welcome_data_imports_host_get_type ()) -#define SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost)) -#define SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHostClass)) -#define SPIT_DATA_IMPORTS_IS_WELCOME_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST)) -#define SPIT_DATA_IMPORTS_IS_WELCOME_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST)) -#define SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHostClass)) - -typedef struct _SpitDataImportsWelcomeDataImportsHost SpitDataImportsWelcomeDataImportsHost; -typedef struct _SpitDataImportsWelcomeDataImportsHostClass SpitDataImportsWelcomeDataImportsHostClass; -typedef struct _SpitDataImportsWelcomeDataImportsHostPrivate SpitDataImportsWelcomeDataImportsHostPrivate; - -#define SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST (spit_data_imports_welcome_import_meta_host_get_type ()) -#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHost)) -#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHostClass)) -#define SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST)) -#define SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST)) -#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHostClass)) - -typedef struct _SpitDataImportsWelcomeImportMetaHost SpitDataImportsWelcomeImportMetaHost; -typedef struct _SpitDataImportsWelcomeImportMetaHostClass SpitDataImportsWelcomeImportMetaHostClass; -enum { - SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_0_PROPERTY, - SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_NUM_PROPERTIES -}; -static GParamSpec* spit_data_imports_welcome_data_imports_host_properties[SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_NUM_PROPERTIES]; - -#define TYPE_WELCOME_SERVICE_ENTRY (welcome_service_entry_get_type ()) -#define WELCOME_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntry)) -#define IS_WELCOME_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WELCOME_SERVICE_ENTRY)) -#define WELCOME_SERVICE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntryIface)) - -typedef struct _WelcomeServiceEntry WelcomeServiceEntry; -typedef struct _WelcomeServiceEntryIface WelcomeServiceEntryIface; - -#define SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY (spit_data_imports_welcome_import_service_entry_get_type ()) -#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntry)) -#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntryClass)) -#define SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY)) -#define SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_SERVICE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY)) -#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntryClass)) - -typedef struct _SpitDataImportsWelcomeImportServiceEntry SpitDataImportsWelcomeImportServiceEntry; -typedef struct _SpitDataImportsWelcomeImportServiceEntryClass SpitDataImportsWelcomeImportServiceEntryClass; -typedef struct _SpitDataImportsWelcomeImportServiceEntryPrivate SpitDataImportsWelcomeImportServiceEntryPrivate; -enum { - SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_0_PROPERTY, - SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* spit_data_imports_welcome_import_service_entry_properties[SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_NUM_PROPERTIES]; -typedef struct _SpitDataImportsWelcomeImportMetaHostPrivate SpitDataImportsWelcomeImportMetaHostPrivate; - -#define TYPE_WELCOME_DIALOG (welcome_dialog_get_type ()) -#define WELCOME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WELCOME_DIALOG, WelcomeDialog)) -#define WELCOME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WELCOME_DIALOG, WelcomeDialogClass)) -#define IS_WELCOME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WELCOME_DIALOG)) -#define IS_WELCOME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WELCOME_DIALOG)) -#define WELCOME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WELCOME_DIALOG, WelcomeDialogClass)) - -typedef struct _WelcomeDialog WelcomeDialog; -typedef struct _WelcomeDialogClass WelcomeDialogClass; -enum { - SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_0_PROPERTY, - SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_NUM_PROPERTIES -}; -static GParamSpec* spit_data_imports_welcome_import_meta_host_properties[SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_NUM_PROPERTIES]; -typedef struct _ImportManifestPrivate ImportManifestPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_BATCH_IMPORT_RESULT (batch_import_result_get_type ()) -#define BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResult)) -#define BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass)) -#define IS_BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_RESULT)) -#define IS_BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_RESULT)) -#define BATCH_IMPORT_RESULT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass)) - -typedef struct _BatchImportResult BatchImportResult; -typedef struct _BatchImportResultClass BatchImportResultClass; -#define _import_manifest_unref0(var) ((var == NULL) ? NULL : (var = (import_manifest_unref (var), NULL))) -#define _batch_import_result_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_result_unref (var), NULL))) - -#define IMPORT_UI_TYPE_QUESTION_PARAMS (import_ui_question_params_get_type ()) -#define IMPORT_UI_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParams)) -#define IMPORT_UI_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass)) -#define IMPORT_UI_IS_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS)) -#define IMPORT_UI_IS_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS)) -#define IMPORT_UI_QUESTION_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass)) - -typedef struct _ImportUIQuestionParams ImportUIQuestionParams; -typedef struct _ImportUIQuestionParamsClass ImportUIQuestionParamsClass; - -struct _SpitDataImportsCoreImporter { - GTypeInstance parent_instance; - volatile int ref_count; - SpitDataImportsCoreImporterPrivate * priv; - gint imported_items_count; - BatchImportRoll* current_import_roll; -}; - -struct _SpitDataImportsCoreImporterClass { - GTypeClass parent_class; - void (*finalize) (SpitDataImportsCoreImporter *self); -}; - -struct _SpitDataImportsCoreImporterPrivate { - SpitDataImportsPluginHost* host; -}; - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef void (*BatchImportImportReporter) (ImportManifest* manifest, BatchImportRoll* import_roll, void* user_data); -struct _SpitDataImportsParamSpecCoreImporter { - GParamSpec parent_instance; -}; - -struct _PluginsStandardHostInterface { - GObject parent_instance; - PluginsStandardHostInterfacePrivate * priv; -}; - -struct _PluginsStandardHostInterfaceClass { - GObjectClass parent_class; -}; - -struct _SpitDataImportsConcreteDataImportsHost { - PluginsStandardHostInterface parent_instance; - SpitDataImportsConcreteDataImportsHostPrivate * priv; -}; - -struct _SpitDataImportsConcreteDataImportsHostClass { - PluginsStandardHostInterfaceClass parent_class; -}; - -struct _SpitDataImportsConcreteDataImportsHostPrivate { - SpitDataImportsDataImporter* active_importer; - DataImportsUIDataImportsDialog* dialog; - DataImportsUIProgressPane* progress_pane; - gboolean importing_halted; - SpitDataImportsCoreImporter* core_importer; -}; - -struct _SpitDataImportsWelcomeDataImportsHost { - PluginsStandardHostInterface parent_instance; - SpitDataImportsWelcomeDataImportsHostPrivate * priv; -}; - -struct _SpitDataImportsWelcomeDataImportsHostClass { - PluginsStandardHostInterfaceClass parent_class; -}; - -struct _SpitDataImportsWelcomeDataImportsHostPrivate { - SpitDataImportsWelcomeImportMetaHost* meta_host; - SpitDataImportsDataImporter* active_importer; - gboolean importing_halted; - SpitDataImportsCoreImporter* core_importer; -}; - -struct _WelcomeServiceEntryIface { - GTypeInterface parent_iface; - gchar* (*get_service_name) (WelcomeServiceEntry* self); - void (*execute) (WelcomeServiceEntry* self); -}; - -struct _SpitDataImportsWelcomeImportServiceEntry { - GObject parent_instance; - SpitDataImportsWelcomeImportServiceEntryPrivate * priv; -}; - -struct _SpitDataImportsWelcomeImportServiceEntryClass { - GObjectClass parent_class; -}; - -struct _SpitDataImportsWelcomeImportServiceEntryPrivate { - gchar* pluggable_name; - SpitDataImportsImportableLibrary** discovered_libraries; - gint discovered_libraries_length1; - gint _discovered_libraries_size_; - SpitDataImportsPluginHost* host; -}; - -struct _SpitDataImportsWelcomeImportMetaHost { - GObject parent_instance; - SpitDataImportsWelcomeImportMetaHostPrivate * priv; -}; - -struct _SpitDataImportsWelcomeImportMetaHostClass { - GObjectClass parent_class; -}; - -struct _SpitDataImportsWelcomeImportMetaHostPrivate { - WelcomeDialog* dialog; -}; - -struct _ImportManifest { - GTypeInstance parent_instance; - volatile int ref_count; - ImportManifestPrivate * priv; - GeeList* imported; - GeeList* success; - GeeList* camera_failed; - GeeList* failed; - GeeList* write_failed; - GeeList* skipped_photos; - GeeList* skipped_files; - GeeList* aborted; - GeeList* already_imported; - GeeList* corrupt_files; - GeeList* all; - GTimer* timer; -}; - -struct _ImportManifestClass { - GTypeClass parent_class; - void (*finalize) (ImportManifest *self); -}; - - -static gpointer spit_data_imports_core_importer_parent_class = NULL; -static gpointer spit_data_imports_concrete_data_imports_host_parent_class = NULL; -static SpitDataImportsPluginHostIface * spit_data_imports_concrete_data_imports_host_spit_data_imports_plugin_host_parent_iface = NULL; -static gpointer spit_data_imports_welcome_data_imports_host_parent_class = NULL; -static SpitDataImportsPluginHostIface * spit_data_imports_welcome_data_imports_host_spit_data_imports_plugin_host_parent_iface = NULL; -static gpointer spit_data_imports_welcome_import_service_entry_parent_class = NULL; -static WelcomeServiceEntryIface * spit_data_imports_welcome_import_service_entry_welcome_service_entry_parent_iface = NULL; -static gpointer spit_data_imports_welcome_import_meta_host_parent_class = NULL; -extern ImportManifest* spit_data_imports_meta_manifest; -ImportManifest* spit_data_imports_meta_manifest = NULL; - -gpointer spit_data_imports_core_importer_ref (gpointer instance); -void spit_data_imports_core_importer_unref (gpointer instance); -GParamSpec* spit_data_imports_param_spec_core_importer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void spit_data_imports_value_set_core_importer (GValue* value, - gpointer v_object); -void spit_data_imports_value_take_core_importer (GValue* value, - gpointer v_object); -gpointer spit_data_imports_value_get_core_importer (const GValue* value); -GType spit_data_imports_core_importer_get_type (void) G_GNUC_CONST; -gpointer batch_import_roll_ref (gpointer instance); -void batch_import_roll_unref (gpointer instance); -GParamSpec* param_spec_batch_import_roll (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_roll (GValue* value, - gpointer v_object); -void value_take_batch_import_roll (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_roll (const GValue* value); -GType batch_import_roll_get_type (void) G_GNUC_CONST; -#define SPIT_DATA_IMPORTS_CORE_IMPORTER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, SpitDataImportsCoreImporterPrivate)) -SpitDataImportsCoreImporter* spit_data_imports_core_importer_new (SpitDataImportsPluginHost* host); -SpitDataImportsCoreImporter* spit_data_imports_core_importer_construct (GType object_type, - SpitDataImportsPluginHost* host); -void spit_data_imports_core_importer_prepare_media_items_for_import (SpitDataImportsCoreImporter* self, - SpitDataImportsImportableMediaItem** items, - int items_length1, - gdouble progress, - gdouble host_progress_delta, - const gchar* progress_message); -GType sorted_list_get_type (void) G_GNUC_CONST; -gpointer batch_import_job_ref (gpointer instance); -void batch_import_job_unref (gpointer instance); -GParamSpec* param_spec_batch_import_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_job (GValue* value, - gpointer v_object); -void value_take_batch_import_job (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_job (const GValue* value); -GType batch_import_job_get_type (void) G_GNUC_CONST; -GType spit_data_imports_data_import_job_get_type (void) G_GNUC_CONST; -gint64 spit_data_imports_import_job_comparator (void* a, - void* b); -static gint64 _spit_data_imports_import_job_comparator_comparator (void* a, - void* b, - gpointer self); -SortedList* sorted_list_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - Comparator cmp, - void* cmp_target); -SortedList* sorted_list_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - Comparator cmp, - void* cmp_target); -gpointer spit_data_imports_data_import_source_ref (gpointer instance); -void spit_data_imports_data_import_source_unref (gpointer instance); -GParamSpec* spit_data_imports_param_spec_data_import_source (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void spit_data_imports_value_set_data_import_source (GValue* value, - gpointer v_object); -void spit_data_imports_value_take_data_import_source (GValue* value, - gpointer v_object); -gpointer spit_data_imports_value_get_data_import_source (const GValue* value); -GType spit_data_imports_data_import_source_get_type (void) G_GNUC_CONST; -SpitDataImportsDataImportSource* spit_data_imports_data_import_source_new (SpitDataImportsImportableMediaItem* db_photo); -SpitDataImportsDataImportSource* spit_data_imports_data_import_source_construct (GType object_type, - SpitDataImportsImportableMediaItem* db_photo); -gboolean spit_data_imports_data_import_source_was_backing_file_found (SpitDataImportsDataImportSource* self); -gchar* spit_data_imports_data_import_source_get_filename (SpitDataImportsDataImportSource* self); -SpitDataImportsDataImportJob* spit_data_imports_data_import_job_new (SpitDataImportsDataImportSource* import_source); -SpitDataImportsDataImportJob* spit_data_imports_data_import_job_construct (GType object_type, - SpitDataImportsDataImportSource* import_source); -gboolean spit_data_imports_data_import_source_is_already_imported (SpitDataImportsDataImportSource* self); -BatchImportRoll* batch_import_roll_new (void); -BatchImportRoll* batch_import_roll_construct (GType object_type); -GType batch_import_get_type (void) G_GNUC_CONST; -gpointer import_manifest_ref (gpointer instance); -void import_manifest_unref (gpointer instance); -GParamSpec* param_spec_import_manifest (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_import_manifest (GValue* value, - gpointer v_object); -void value_take_import_manifest (GValue* value, - gpointer v_object); -gpointer value_get_import_manifest (const GValue* value); -GType import_manifest_get_type (void) G_GNUC_CONST; -void spit_data_imports_data_import_reporter (ImportManifest* manifest, - BatchImportRoll* import_roll); -static void _spit_data_imports_data_import_reporter_batch_import_import_reporter (ImportManifest* manifest, - BatchImportRoll* import_roll, - gpointer self); -BatchImport* batch_import_new (GeeIterable* jobs, - const gchar* name, - BatchImportImportReporter reporter, - void* reporter_target, - GeeArrayList* prefailed, - GeeArrayList* pre_already_imported, - GCancellable* cancellable, - BatchImportRoll* import_roll, - ImportManifest* skip_manifest); -BatchImport* batch_import_construct (GType object_type, - GeeIterable* jobs, - const gchar* name, - BatchImportImportReporter reporter, - void* reporter_target, - GeeArrayList* prefailed, - GeeArrayList* pre_already_imported, - GCancellable* cancellable, - BatchImportRoll* import_roll, - ImportManifest* skip_manifest); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -GType library_window_get_type (void) G_GNUC_CONST; -LibraryWindow* library_window_get_app (void); -void library_window_enqueue_batch_import (LibraryWindow* self, - BatchImport* batch_import, - gboolean allow_user_cancel); -void spit_data_imports_core_importer_finalize_import (SpitDataImportsCoreImporter* self); -static void spit_data_imports_core_importer_finalize (SpitDataImportsCoreImporter * obj); -GType plugins_standard_host_interface_get_type (void) G_GNUC_CONST; -GType spit_data_imports_concrete_data_imports_host_get_type (void) G_GNUC_CONST; -GType data_imports_ui_data_imports_dialog_get_type (void) G_GNUC_CONST; -GType data_imports_ui_concrete_dialog_pane_get_type (void) G_GNUC_CONST; -GType data_imports_ui_progress_pane_get_type (void) G_GNUC_CONST; -#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHostPrivate)) -SpitDataImportsConcreteDataImportsHost* spit_data_imports_concrete_data_imports_host_new (SpitDataImportsService* service, - DataImportsUIDataImportsDialog* dialog); -SpitDataImportsConcreteDataImportsHost* spit_data_imports_concrete_data_imports_host_construct (GType object_type, - SpitDataImportsService* service, - DataImportsUIDataImportsDialog* dialog); -PluginsStandardHostInterface* plugins_standard_host_interface_new (SpitPluggable* pluggable, - const gchar* config_domain); -PluginsStandardHostInterface* plugins_standard_host_interface_construct (GType object_type, - SpitPluggable* pluggable, - const gchar* config_domain); -static SpitDataImportsDataImporter* spit_data_imports_concrete_data_imports_host_real_get_data_importer (SpitDataImportsPluginHost* base); -static void spit_data_imports_concrete_data_imports_host_real_start_importing (SpitDataImportsPluginHost* base); -static void spit_data_imports_concrete_data_imports_host_real_stop_importing (SpitDataImportsPluginHost* base); -static void spit_data_imports_concrete_data_imports_host_clean_up (SpitDataImportsConcreteDataImportsHost* self); -void spit_data_imports_concrete_data_imports_host_set_button_mode (SpitDataImportsConcreteDataImportsHost* self, - SpitDataImportsPluginHostButtonMode mode); -void data_imports_ui_data_imports_dialog_set_close_button_mode (DataImportsUIDataImportsDialog* self); -void data_imports_ui_data_imports_dialog_set_cancel_button_mode (DataImportsUIDataImportsDialog* self); -static void spit_data_imports_concrete_data_imports_host_real_post_error (SpitDataImportsPluginHost* base, - GError* err); -static void spit_data_imports_concrete_data_imports_host_real_post_error_message (SpitDataImportsPluginHost* base, - const gchar* message); -void data_imports_ui_data_imports_dialog_install_pane (DataImportsUIDataImportsDialog* self, - SpitDataImportsDialogPane* pane); -DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_new_with_pango (const gchar* msg); -DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_construct_with_pango (GType object_type, - const gchar* msg); -GType data_imports_ui_static_message_pane_get_type (void) G_GNUC_CONST; -void data_imports_ui_data_imports_dialog_unlock_service (DataImportsUIDataImportsDialog* self); -static void spit_data_imports_concrete_data_imports_host_real_install_dialog_pane (SpitDataImportsPluginHost* base, - SpitDataImportsDialogPane* pane, - SpitDataImportsPluginHostButtonMode button_mode); -static void spit_data_imports_concrete_data_imports_host_real_install_static_message_pane (SpitDataImportsPluginHost* base, - const gchar* message, - SpitDataImportsPluginHostButtonMode button_mode); -static void spit_data_imports_concrete_data_imports_host_real_install_library_selection_pane (SpitDataImportsPluginHost* base, - const gchar* welcome_message, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1, - const gchar* file_select_label); -DataImportsUILibrarySelectionPane* data_imports_ui_library_selection_pane_new (SpitDataImportsPluginHost* host, - const gchar* welcome_message, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1, - const gchar* file_select_label); -DataImportsUILibrarySelectionPane* data_imports_ui_library_selection_pane_construct (GType object_type, - SpitDataImportsPluginHost* host, - const gchar* welcome_message, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1, - const gchar* file_select_label); -GType data_imports_ui_library_selection_pane_get_type (void) G_GNUC_CONST; -static void spit_data_imports_concrete_data_imports_host_real_install_import_progress_pane (SpitDataImportsPluginHost* base, - const gchar* message); -DataImportsUIProgressPane* data_imports_ui_progress_pane_new (const gchar* message); -DataImportsUIProgressPane* data_imports_ui_progress_pane_construct (GType object_type, - const gchar* message); -static void spit_data_imports_concrete_data_imports_host_real_update_import_progress_pane (SpitDataImportsPluginHost* base, - gdouble progress, - const gchar* progress_message); -void data_imports_ui_progress_pane_update_progress (DataImportsUIProgressPane* self, - gdouble progress, - const gchar* progress_message); -static void spit_data_imports_concrete_data_imports_host_real_prepare_media_items_for_import (SpitDataImportsPluginHost* base, - SpitDataImportsImportableMediaItem** items, - int items_length1, - gdouble progress, - gdouble host_progress_delta, - const gchar* progress_message); -static void spit_data_imports_concrete_data_imports_host_real_finalize_import (SpitDataImportsPluginHost* base, - SpitDataImportsImportedItemsCountCallback report_imported_items_count, - void* report_imported_items_count_target, - const gchar* finalize_message); -void library_window_switch_to_import_queue_page (LibraryWindow* self); -static void spit_data_imports_concrete_data_imports_host_finalize (GObject * obj); -GType spit_data_imports_welcome_data_imports_host_get_type (void) G_GNUC_CONST; -GType spit_data_imports_welcome_import_meta_host_get_type (void) G_GNUC_CONST; -#define SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHostPrivate)) -SpitDataImportsWelcomeDataImportsHost* spit_data_imports_welcome_data_imports_host_new (SpitDataImportsService* service, - SpitDataImportsWelcomeImportMetaHost* meta_host); -SpitDataImportsWelcomeDataImportsHost* spit_data_imports_welcome_data_imports_host_construct (GType object_type, - SpitDataImportsService* service, - SpitDataImportsWelcomeImportMetaHost* meta_host); -static SpitDataImportsDataImporter* spit_data_imports_welcome_data_imports_host_real_get_data_importer (SpitDataImportsPluginHost* base); -static void spit_data_imports_welcome_data_imports_host_real_start_importing (SpitDataImportsPluginHost* base); -static void spit_data_imports_welcome_data_imports_host_real_stop_importing (SpitDataImportsPluginHost* base); -static void spit_data_imports_welcome_data_imports_host_clean_up (SpitDataImportsWelcomeDataImportsHost* self); -static void spit_data_imports_welcome_data_imports_host_real_post_error (SpitDataImportsPluginHost* base, - GError* err); -static void spit_data_imports_welcome_data_imports_host_real_post_error_message (SpitDataImportsPluginHost* base, - const gchar* message); -static void spit_data_imports_welcome_data_imports_host_real_install_dialog_pane (SpitDataImportsPluginHost* base, - SpitDataImportsDialogPane* pane, - SpitDataImportsPluginHostButtonMode button_mode); -static void spit_data_imports_welcome_data_imports_host_real_install_static_message_pane (SpitDataImportsPluginHost* base, - const gchar* message, - SpitDataImportsPluginHostButtonMode button_mode); -static void spit_data_imports_welcome_data_imports_host_real_install_library_selection_pane (SpitDataImportsPluginHost* base, - const gchar* welcome_message, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1, - const gchar* file_select_label); -GType welcome_service_entry_get_type (void) G_GNUC_CONST; -void spit_data_imports_welcome_import_meta_host_install_service_entry (SpitDataImportsWelcomeImportMetaHost* self, - WelcomeServiceEntry* entry); -SpitDataImportsWelcomeImportServiceEntry* spit_data_imports_welcome_import_service_entry_new (SpitDataImportsPluginHost* host, - const gchar* pluggable_name, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1); -SpitDataImportsWelcomeImportServiceEntry* spit_data_imports_welcome_import_service_entry_construct (GType object_type, - SpitDataImportsPluginHost* host, - const gchar* pluggable_name, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1); -GType spit_data_imports_welcome_import_service_entry_get_type (void) G_GNUC_CONST; -static void spit_data_imports_welcome_data_imports_host_real_install_import_progress_pane (SpitDataImportsPluginHost* base, - const gchar* message); -static void spit_data_imports_welcome_data_imports_host_real_update_import_progress_pane (SpitDataImportsPluginHost* base, - gdouble progress, - const gchar* progress_message); -static void spit_data_imports_welcome_data_imports_host_real_prepare_media_items_for_import (SpitDataImportsPluginHost* base, - SpitDataImportsImportableMediaItem** items, - int items_length1, - gdouble progress, - gdouble host_progress_delta, - const gchar* progress_message); -static void spit_data_imports_welcome_data_imports_host_real_finalize_import (SpitDataImportsPluginHost* base, - SpitDataImportsImportedItemsCountCallback report_imported_items_count, - void* report_imported_items_count_target, - const gchar* finalize_message); -void spit_data_imports_welcome_import_meta_host_finalize_import (SpitDataImportsWelcomeImportMetaHost* self, - SpitDataImportsWelcomeDataImportsHost* host); -static void spit_data_imports_welcome_data_imports_host_finalize (GObject * obj); -#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntryPrivate)) -static SpitDataImportsImportableLibrary** _vala_array_dup21 (SpitDataImportsImportableLibrary** self, - int length); -static gchar* spit_data_imports_welcome_import_service_entry_real_get_service_name (WelcomeServiceEntry* base); -static void spit_data_imports_welcome_import_service_entry_real_execute (WelcomeServiceEntry* base); -static void spit_data_imports_welcome_import_service_entry_finalize (GObject * obj); -GType welcome_dialog_get_type (void) G_GNUC_CONST; -#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHostPrivate)) -SpitDataImportsWelcomeImportMetaHost* spit_data_imports_welcome_import_meta_host_new (WelcomeDialog* dialog); -SpitDataImportsWelcomeImportMetaHost* spit_data_imports_welcome_import_meta_host_construct (GType object_type, - WelcomeDialog* dialog); -void spit_data_imports_welcome_import_meta_host_start (SpitDataImportsWelcomeImportMetaHost* self); -SpitDataImportsService** spit_data_imports_load_all_services (int* result_length1); -gchar* welcome_service_entry_get_service_name (WelcomeServiceEntry* self); -void welcome_dialog_install_service_entry (WelcomeDialog* self, - WelcomeServiceEntry* entry); -static void spit_data_imports_welcome_import_meta_host_finalize (GObject * obj); -SpitDataImportsService** spit_data_imports_load_services (gboolean load_all, - int* result_length1); -GeeCollection* plugins_get_pluggables_for_type (GType type, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify, - gboolean include_disabled); -gchar* plugins_get_pluggable_module_id (SpitPluggable* needle); -static void _vala_array_add71 (SpitDataImportsService** * array, - int* length, - int* size, - SpitDataImportsService* value); -static gint __lambda25_ (void* a, - void* b); -gint utf8_cs_compare (void* a, - void* b); -static gint ___lambda25____compar_fn_t (void* key1, - void* key2); -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -gpointer batch_import_result_ref (gpointer instance); -void batch_import_result_unref (gpointer instance); -GParamSpec* param_spec_batch_import_result (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_result (GValue* value, - gpointer v_object); -void value_take_batch_import_result (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_result (const GValue* value); -GType batch_import_result_get_type (void) G_GNUC_CONST; -ImportManifest* import_manifest_new (GeeList* prefailed, - GeeList* pre_already_imported); -ImportManifest* import_manifest_construct (GType object_type, - GeeList* prefailed, - GeeList* pre_already_imported); -void import_manifest_add_result (ImportManifest* self, - BatchImportResult* batch_result); -void data_imports_ui_data_imports_dialog_terminate_instance (void); -gpointer import_ui_question_params_ref (gpointer instance); -void import_ui_question_params_unref (gpointer instance); -GParamSpec* import_ui_param_spec_question_params (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void import_ui_value_set_question_params (GValue* value, - gpointer v_object); -void import_ui_value_take_question_params (GValue* value, - gpointer v_object); -gpointer import_ui_value_get_question_params (const GValue* value); -GType import_ui_question_params_get_type (void) G_GNUC_CONST; -gboolean import_ui_report_manifest (ImportManifest* manifest, - gboolean show_dest_id, - ImportUIQuestionParams* question); -time_t spit_data_imports_data_import_job_get_exposure_time (SpitDataImportsDataImportJob* self); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -SpitDataImportsCoreImporter* -spit_data_imports_core_importer_construct (GType object_type, - SpitDataImportsPluginHost* host) -{ - SpitDataImportsCoreImporter* self = NULL; -#line 14 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (host), NULL); -#line 14 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = (SpitDataImportsCoreImporter*) g_type_create_instance (object_type); -#line 15 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->host = host; -#line 14 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return self; -#line 862 "DataImportsPluginHost.c" -} - - -SpitDataImportsCoreImporter* -spit_data_imports_core_importer_new (SpitDataImportsPluginHost* host) -{ -#line 14 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return spit_data_imports_core_importer_construct (SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, host); -#line 871 "DataImportsPluginHost.c" -} - - -static gint64 -_spit_data_imports_import_job_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = spit_data_imports_import_job_comparator (a, b); -#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return result; -#line 884 "DataImportsPluginHost.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return self ? g_object_ref (self) : NULL; -#line 893 "DataImportsPluginHost.c" -} - - -static void -_spit_data_imports_data_import_reporter_batch_import_import_reporter (ImportManifest* manifest, - BatchImportRoll* import_roll, - gpointer self) -{ -#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_data_import_reporter (manifest, import_roll); -#line 904 "DataImportsPluginHost.c" -} - - -void -spit_data_imports_core_importer_prepare_media_items_for_import (SpitDataImportsCoreImporter* self, - SpitDataImportsImportableMediaItem** items, - int items_length1, - gdouble progress, - gdouble host_progress_delta, - const gchar* progress_message) -{ - SpitDataImportsPluginHost* _tmp0_; - SortedList* jobs = NULL; - SortedList* _tmp1_; - GeeArrayList* already_imported = NULL; - GeeArrayList* _tmp2_; - GeeArrayList* failed = NULL; - GeeArrayList* _tmp3_; - gint item_idx = 0; - gdouble item_progress_delta = 0.0; - SortedList* _tmp31_; - gint _tmp32_; - gint _tmp33_; - SpitDataImportsPluginHost* _tmp57_; -#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_CORE_IMPORTER (self)); -#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = self->priv->host; -#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_plugin_host_update_import_progress_pane (_tmp0_, progress, progress_message); -#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = sorted_list_new (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, _spit_data_imports_import_job_comparator_comparator, NULL); -#line 26 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - jobs = _tmp1_; -#line 28 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = gee_array_list_new (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL); -#line 28 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - already_imported = _tmp2_; -#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = gee_array_list_new (SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL); -#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - failed = _tmp3_; -#line 33 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - item_idx = 0; -#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - item_progress_delta = host_progress_delta / items_length1; -#line 951 "DataImportsPluginHost.c" - { - SpitDataImportsImportableMediaItem** src_item_collection = NULL; - gint src_item_collection_length1 = 0; - gint _src_item_collection_size_ = 0; - gint src_item_it = 0; -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - src_item_collection = items; -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - src_item_collection_length1 = items_length1; -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - for (src_item_it = 0; src_item_it < items_length1; src_item_it = src_item_it + 1) { -#line 963 "DataImportsPluginHost.c" - SpitDataImportsImportableMediaItem* _tmp4_; - SpitDataImportsImportableMediaItem* src_item = NULL; -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_ = _g_object_ref0 (src_item_collection[src_item_it]); -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - src_item = _tmp4_; -#line 970 "DataImportsPluginHost.c" - { - SpitDataImportsDataImportSource* import_source = NULL; - SpitDataImportsImportableMediaItem* _tmp5_; - SpitDataImportsDataImportSource* _tmp6_; - SpitDataImportsDataImportSource* _tmp7_; - SpitDataImportsDataImportSource* _tmp15_; - SortedList* _tmp23_; - SpitDataImportsDataImportSource* _tmp24_; - SpitDataImportsDataImportJob* _tmp25_; - SpitDataImportsDataImportJob* _tmp26_; - gint _tmp27_; - SpitDataImportsPluginHost* _tmp28_; - gint _tmp29_; - gdouble _tmp30_; -#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp5_ = src_item; -#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp6_ = spit_data_imports_data_import_source_new (_tmp5_); -#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - import_source = _tmp6_; -#line 38 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp7_ = import_source; -#line 38 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (!spit_data_imports_data_import_source_was_backing_file_found (_tmp7_)) { -#line 995 "DataImportsPluginHost.c" - SpitDataImportsDataImportSource* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - GeeArrayList* _tmp11_; - SpitDataImportsDataImportSource* _tmp12_; - SpitDataImportsDataImportJob* _tmp13_; - SpitDataImportsDataImportJob* _tmp14_; -#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp8_ = import_source; -#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp9_ = spit_data_imports_data_import_source_get_filename (_tmp8_); -#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp10_ = _tmp9_; -#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_message ("DataImportsPluginHost.vala:39: Skipping import of %s: backing file not" \ -" found", _tmp10_); -#line 39 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_free0 (_tmp10_); -#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp11_ = failed; -#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp12_ = import_source; -#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp13_ = spit_data_imports_data_import_job_new (_tmp12_); -#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp14_ = _tmp13_; -#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_); -#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _batch_import_job_unref0 (_tmp14_); -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _spit_data_imports_data_import_source_unref0 (import_source); -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (src_item); -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - continue; -#line 1031 "DataImportsPluginHost.c" - } -#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp15_ = import_source; -#line 46 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (spit_data_imports_data_import_source_is_already_imported (_tmp15_)) { -#line 1037 "DataImportsPluginHost.c" - SpitDataImportsDataImportSource* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - GeeArrayList* _tmp19_; - SpitDataImportsDataImportSource* _tmp20_; - SpitDataImportsDataImportJob* _tmp21_; - SpitDataImportsDataImportJob* _tmp22_; -#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp16_ = import_source; -#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp17_ = spit_data_imports_data_import_source_get_filename (_tmp16_); -#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp18_ = _tmp17_; -#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_message ("DataImportsPluginHost.vala:47: Skipping import of %s: checksum detecte" \ -"d in library", _tmp18_); -#line 47 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_free0 (_tmp18_); -#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp19_ = already_imported; -#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp20_ = import_source; -#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp21_ = spit_data_imports_data_import_job_new (_tmp20_); -#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp22_ = _tmp21_; -#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp22_); -#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _batch_import_job_unref0 (_tmp22_); -#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _spit_data_imports_data_import_source_unref0 (import_source); -#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (src_item); -#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - continue; -#line 1073 "DataImportsPluginHost.c" - } -#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp23_ = jobs; -#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp24_ = import_source; -#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp25_ = spit_data_imports_data_import_job_new (_tmp24_); -#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp26_ = _tmp25_; -#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_COLLECTION, GeeCollection), _tmp26_); -#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _batch_import_job_unref0 (_tmp26_); -#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp27_ = item_idx; -#line 55 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - item_idx = _tmp27_ + 1; -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp28_ = self->priv->host; -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp29_ = item_idx; -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp30_ = item_progress_delta; -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_plugin_host_update_import_progress_pane (_tmp28_, progress + (_tmp29_ * _tmp30_), NULL); -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _spit_data_imports_data_import_source_unref0 (import_source); -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (src_item); -#line 1103 "DataImportsPluginHost.c" - } - } - } -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp31_ = jobs; -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp32_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp33_ = _tmp32_; -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (_tmp33_ > 0) { -#line 1115 "DataImportsPluginHost.c" - BatchImportRoll* _tmp34_; - gchar* db_name = NULL; - SpitDataImportsPluginHost* _tmp36_; - SpitDataImportsDataImporter* _tmp37_; - SpitDataImportsDataImporter* _tmp38_; - SpitDataImportsService* _tmp39_; - SpitDataImportsService* _tmp40_; - const gchar* _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; - BatchImport* batch_import = NULL; - SortedList* _tmp44_; - const gchar* _tmp45_; - GeeArrayList* _tmp46_; - GeeArrayList* _tmp47_; - BatchImportRoll* _tmp48_; - BatchImport* _tmp49_; - LibraryWindow* _tmp50_; - LibraryWindow* _tmp51_; - BatchImport* _tmp52_; - gint _tmp53_; - SortedList* _tmp54_; - gint _tmp55_; - gint _tmp56_; -#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp34_ = self->current_import_roll; -#line 63 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (_tmp34_ == NULL) { -#line 1144 "DataImportsPluginHost.c" - BatchImportRoll* _tmp35_; -#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp35_ = batch_import_roll_new (); -#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _batch_import_roll_unref0 (self->current_import_roll); -#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->current_import_roll = _tmp35_; -#line 1152 "DataImportsPluginHost.c" - } -#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp36_ = self->priv->host; -#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp37_ = spit_data_imports_plugin_host_get_data_importer (_tmp36_); -#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp38_ = _tmp37_; -#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp39_ = spit_data_imports_data_importer_get_service (_tmp38_); -#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp40_ = _tmp39_; -#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp41_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp42_ = g_strdup_printf (_ ("%s Database"), _tmp41_); -#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp43_ = _tmp42_; -#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp40_); -#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp38_); -#line 65 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - db_name = _tmp43_; -#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp44_ = jobs; -#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp45_ = db_name; -#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp46_ = failed; -#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp47_ = already_imported; -#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp48_ = self->current_import_roll; -#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp49_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_ITERABLE, GeeIterable), _tmp45_, _spit_data_imports_data_import_reporter_batch_import_import_reporter, NULL, _tmp46_, _tmp47_, NULL, _tmp48_, NULL); -#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - batch_import = _tmp49_; -#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp50_ = library_window_get_app (); -#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp51_ = _tmp50_; -#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp52_ = batch_import; -#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - library_window_enqueue_batch_import (_tmp51_, _tmp52_, TRUE); -#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp51_); -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp53_ = self->imported_items_count; -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp54_ = jobs; -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp55_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp56_ = _tmp55_; -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->imported_items_count = _tmp53_ + _tmp56_; -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (batch_import); -#line 59 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_free0 (db_name); -#line 1214 "DataImportsPluginHost.c" - } -#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp57_ = self->priv->host; -#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_plugin_host_update_import_progress_pane (_tmp57_, progress + host_progress_delta, NULL); -#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (failed); -#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (already_imported); -#line 18 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (jobs); -#line 1226 "DataImportsPluginHost.c" -} - - -void -spit_data_imports_core_importer_finalize_import (SpitDataImportsCoreImporter* self) -{ - gchar* db_name = NULL; - SpitDataImportsPluginHost* _tmp0_; - SpitDataImportsDataImporter* _tmp1_; - SpitDataImportsDataImporter* _tmp2_; - SpitDataImportsService* _tmp3_; - SpitDataImportsService* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - BatchImport* batch_import = NULL; - GeeArrayList* _tmp8_; - GeeArrayList* _tmp9_; - BatchImportRoll* _tmp10_; - BatchImport* _tmp11_; - BatchImport* _tmp12_; - LibraryWindow* _tmp13_; - LibraryWindow* _tmp14_; -#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_CORE_IMPORTER (self)); -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = self->priv->host; -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = spit_data_imports_plugin_host_get_data_importer (_tmp0_); -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = _tmp1_; -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = spit_data_imports_data_importer_get_service (_tmp2_); -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_ = _tmp3_; -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp5_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp6_ = g_strdup_printf (_ ("%s Database"), _tmp5_); -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp7_ = _tmp6_; -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp4_); -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp2_); -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - db_name = _tmp7_; -#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp8_ = gee_array_list_new (TYPE_BATCH_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL); -#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp9_ = _tmp8_; -#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp10_ = self->current_import_roll; -#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp11_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable), db_name, _spit_data_imports_data_import_reporter_batch_import_import_reporter, NULL, NULL, NULL, NULL, _tmp10_, NULL); -#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp12_ = _tmp11_; -#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp9_); -#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - batch_import = _tmp12_; -#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp13_ = library_window_get_app (); -#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp14_ = _tmp13_; -#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - library_window_enqueue_batch_import (_tmp14_, batch_import, TRUE); -#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp14_); -#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _batch_import_roll_unref0 (self->current_import_roll); -#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->current_import_roll = NULL; -#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (batch_import); -#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_free0 (db_name); -#line 1304 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_value_core_importer_init (GValue* value) -{ -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - value->data[0].v_pointer = NULL; -#line 1313 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_value_core_importer_free_value (GValue* value) -{ -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (value->data[0].v_pointer) { -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_core_importer_unref (value->data[0].v_pointer); -#line 1324 "DataImportsPluginHost.c" - } -} - - -static void -spit_data_imports_value_core_importer_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (src_value->data[0].v_pointer) { -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - dest_value->data[0].v_pointer = spit_data_imports_core_importer_ref (src_value->data[0].v_pointer); -#line 1337 "DataImportsPluginHost.c" - } else { -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - dest_value->data[0].v_pointer = NULL; -#line 1341 "DataImportsPluginHost.c" - } -} - - -static gpointer -spit_data_imports_value_core_importer_peek_pointer (const GValue* value) -{ -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return value->data[0].v_pointer; -#line 1351 "DataImportsPluginHost.c" -} - - -static gchar* -spit_data_imports_value_core_importer_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (collect_values[0].v_pointer) { -#line 1363 "DataImportsPluginHost.c" - SpitDataImportsCoreImporter * object; - object = collect_values[0].v_pointer; -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (object->parent_instance.g_class == NULL) { -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1370 "DataImportsPluginHost.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1374 "DataImportsPluginHost.c" - } -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - value->data[0].v_pointer = spit_data_imports_core_importer_ref (object); -#line 1378 "DataImportsPluginHost.c" - } else { -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - value->data[0].v_pointer = NULL; -#line 1382 "DataImportsPluginHost.c" - } -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return NULL; -#line 1386 "DataImportsPluginHost.c" -} - - -static gchar* -spit_data_imports_value_core_importer_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - SpitDataImportsCoreImporter ** object_p; - object_p = collect_values[0].v_pointer; -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (!object_p) { -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1402 "DataImportsPluginHost.c" - } -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (!value->data[0].v_pointer) { -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - *object_p = NULL; -#line 1408 "DataImportsPluginHost.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - *object_p = value->data[0].v_pointer; -#line 1412 "DataImportsPluginHost.c" - } else { -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - *object_p = spit_data_imports_core_importer_ref (value->data[0].v_pointer); -#line 1416 "DataImportsPluginHost.c" - } -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return NULL; -#line 1420 "DataImportsPluginHost.c" -} - - -GParamSpec* -spit_data_imports_param_spec_core_importer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - SpitDataImportsParamSpecCoreImporter* spec; -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_val_if_fail (g_type_is_a (object_type, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER), NULL); -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return G_PARAM_SPEC (spec); -#line 1440 "DataImportsPluginHost.c" -} - - -gpointer -spit_data_imports_value_get_core_importer (const GValue* value) -{ -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER), NULL); -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return value->data[0].v_pointer; -#line 1451 "DataImportsPluginHost.c" -} - - -void -spit_data_imports_value_set_core_importer (GValue* value, - gpointer v_object) -{ - SpitDataImportsCoreImporter * old; -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER)); -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - old = value->data[0].v_pointer; -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (v_object) { -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER)); -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - value->data[0].v_pointer = v_object; -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_core_importer_ref (value->data[0].v_pointer); -#line 1474 "DataImportsPluginHost.c" - } else { -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - value->data[0].v_pointer = NULL; -#line 1478 "DataImportsPluginHost.c" - } -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (old) { -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_core_importer_unref (old); -#line 1484 "DataImportsPluginHost.c" - } -} - - -void -spit_data_imports_value_take_core_importer (GValue* value, - gpointer v_object) -{ - SpitDataImportsCoreImporter * old; -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER)); -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - old = value->data[0].v_pointer; -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (v_object) { -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER)); -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - value->data[0].v_pointer = v_object; -#line 1506 "DataImportsPluginHost.c" - } else { -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - value->data[0].v_pointer = NULL; -#line 1510 "DataImportsPluginHost.c" - } -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (old) { -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_core_importer_unref (old); -#line 1516 "DataImportsPluginHost.c" - } -} - - -static void -spit_data_imports_core_importer_class_init (SpitDataImportsCoreImporterClass * klass) -{ -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_core_importer_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - ((SpitDataImportsCoreImporterClass *) klass)->finalize = spit_data_imports_core_importer_finalize; -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_type_class_add_private (klass, sizeof (SpitDataImportsCoreImporterPrivate)); -#line 1530 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_core_importer_instance_init (SpitDataImportsCoreImporter * self) -{ -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv = SPIT_DATA_IMPORTS_CORE_IMPORTER_GET_PRIVATE (self); -#line 11 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->imported_items_count = 0; -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->current_import_roll = NULL; -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->ref_count = 1; -#line 1545 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_core_importer_finalize (SpitDataImportsCoreImporter * obj) -{ - SpitDataImportsCoreImporter * self; -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_CORE_IMPORTER, SpitDataImportsCoreImporter); -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_signal_handlers_destroy (self); -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _batch_import_roll_unref0 (self->current_import_roll); -#line 1559 "DataImportsPluginHost.c" -} - - -GType -spit_data_imports_core_importer_get_type (void) -{ - static volatile gsize spit_data_imports_core_importer_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_core_importer_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { spit_data_imports_value_core_importer_init, spit_data_imports_value_core_importer_free_value, spit_data_imports_value_core_importer_copy_value, spit_data_imports_value_core_importer_peek_pointer, "p", spit_data_imports_value_core_importer_collect_value, "p", spit_data_imports_value_core_importer_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsCoreImporterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_core_importer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsCoreImporter), 0, (GInstanceInitFunc) spit_data_imports_core_importer_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType spit_data_imports_core_importer_type_id; - spit_data_imports_core_importer_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SpitDataImportsCoreImporter", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&spit_data_imports_core_importer_type_id__volatile, spit_data_imports_core_importer_type_id); - } - return spit_data_imports_core_importer_type_id__volatile; -} - - -gpointer -spit_data_imports_core_importer_ref (gpointer instance) -{ - SpitDataImportsCoreImporter * self; - self = instance; -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_atomic_int_inc (&self->ref_count); -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return instance; -#line 1588 "DataImportsPluginHost.c" -} - - -void -spit_data_imports_core_importer_unref (gpointer instance) -{ - SpitDataImportsCoreImporter * self; - self = instance; -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - SPIT_DATA_IMPORTS_CORE_IMPORTER_GET_CLASS (self)->finalize (self); -#line 9 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1603 "DataImportsPluginHost.c" - } -} - - -SpitDataImportsConcreteDataImportsHost* -spit_data_imports_concrete_data_imports_host_construct (GType object_type, - SpitDataImportsService* service, - DataImportsUIDataImportsDialog* dialog) -{ - SpitDataImportsConcreteDataImportsHost * self = NULL; - SpitDataImportsDataImporter* _tmp0_; - SpitDataImportsCoreImporter* _tmp1_; -#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (service), NULL); -#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_val_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (dialog), NULL); -#line 97 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = (SpitDataImportsConcreteDataImportsHost*) plugins_standard_host_interface_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (service, SPIT_TYPE_PLUGGABLE, SpitPluggable), "data_imports"); -#line 98 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->dialog = dialog; -#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = spit_data_imports_service_create_data_importer (service, G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (self->priv->active_importer); -#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->active_importer = _tmp0_; -#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = spit_data_imports_core_importer_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _spit_data_imports_core_importer_unref0 (self->priv->core_importer); -#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->core_importer = _tmp1_; -#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return self; -#line 1638 "DataImportsPluginHost.c" -} - - -SpitDataImportsConcreteDataImportsHost* -spit_data_imports_concrete_data_imports_host_new (SpitDataImportsService* service, - DataImportsUIDataImportsDialog* dialog) -{ -#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return spit_data_imports_concrete_data_imports_host_construct (SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, service, dialog); -#line 1648 "DataImportsPluginHost.c" -} - - -static SpitDataImportsDataImporter* -spit_data_imports_concrete_data_imports_host_real_get_data_importer (SpitDataImportsPluginHost* base) -{ - SpitDataImportsConcreteDataImportsHost * self; - SpitDataImportsDataImporter* result = NULL; - SpitDataImportsDataImporter* _tmp0_; - SpitDataImportsDataImporter* _tmp1_; -#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost); -#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = self->priv->active_importer; -#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - result = _tmp1_; -#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return result; -#line 1669 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_concrete_data_imports_host_real_start_importing (SpitDataImportsPluginHost* base) -{ - SpitDataImportsConcreteDataImportsHost * self; - SpitDataImportsDataImporter* _tmp0_; - SpitDataImportsDataImporter* _tmp1_; - gboolean _tmp2_; - SpitDataImportsDataImporter* _tmp3_; - SpitDataImportsDataImporter* _tmp4_; -#line 108 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost); -#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = _tmp0_; -#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = spit_data_imports_data_importer_is_running (_tmp1_); -#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp1_); -#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (_tmp2_) { -#line 110 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return; -#line 1696 "DataImportsPluginHost.c" - } -#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_debug ("DataImportsPluginHost.vala:112: ConcreteDataImportsHost.start_importin" \ -"g( ): invoked."); -#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_ = _tmp3_; -#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_data_importer_start (_tmp4_); -#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp4_); -#line 1708 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_concrete_data_imports_host_real_stop_importing (SpitDataImportsPluginHost* base) -{ - SpitDataImportsConcreteDataImportsHost * self; - SpitDataImportsDataImporter* _tmp0_; - SpitDataImportsDataImporter* _tmp1_; - gboolean _tmp2_; -#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost); -#line 118 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_debug ("DataImportsPluginHost.vala:118: ConcreteDataImportsHost.stop_importing" \ -"( ): invoked."); -#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = _tmp0_; -#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = spit_data_imports_data_importer_is_running (_tmp1_); -#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp1_); -#line 120 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (_tmp2_) { -#line 1733 "DataImportsPluginHost.c" - SpitDataImportsDataImporter* _tmp3_; - SpitDataImportsDataImporter* _tmp4_; -#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_ = _tmp3_; -#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_data_importer_stop (_tmp4_); -#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp4_); -#line 1744 "DataImportsPluginHost.c" - } -#line 123 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_concrete_data_imports_host_clean_up (self); -#line 125 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->importing_halted = TRUE; -#line 1750 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_concrete_data_imports_host_clean_up (SpitDataImportsConcreteDataImportsHost* self) -{ -#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST (self)); -#line 129 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (self->priv->progress_pane); -#line 129 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->progress_pane = NULL; -#line 1763 "DataImportsPluginHost.c" -} - - -void -spit_data_imports_concrete_data_imports_host_set_button_mode (SpitDataImportsConcreteDataImportsHost* self, - SpitDataImportsPluginHostButtonMode mode) -{ -#line 132 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST (self)); -#line 133 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (mode == SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE) { -#line 1775 "DataImportsPluginHost.c" - DataImportsUIDataImportsDialog* _tmp0_; -#line 134 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = self->priv->dialog; -#line 134 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - data_imports_ui_data_imports_dialog_set_close_button_mode (_tmp0_); -#line 1781 "DataImportsPluginHost.c" - } else { -#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (mode == SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL) { -#line 1785 "DataImportsPluginHost.c" - DataImportsUIDataImportsDialog* _tmp1_; -#line 136 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = self->priv->dialog; -#line 136 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - data_imports_ui_data_imports_dialog_set_cancel_button_mode (_tmp1_); -#line 1791 "DataImportsPluginHost.c" - } else { -#line 138 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_error ("DataImportsPluginHost.vala:138: unrecognized button mode enumeration v" \ -"alue"); -#line 1795 "DataImportsPluginHost.c" - } - } -} - - -static void -spit_data_imports_concrete_data_imports_host_real_post_error (SpitDataImportsPluginHost* base, - GError* err) -{ - SpitDataImportsConcreteDataImportsHost * self; - const gchar* _tmp0_; -#line 143 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost); -#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = err->message; -#line 144 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_plugin_host_post_error_message (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), _tmp0_); -#line 1813 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_concrete_data_imports_host_real_post_error_message (SpitDataImportsPluginHost* base, - const gchar* message) -{ - SpitDataImportsConcreteDataImportsHost * self; - gchar* msg = NULL; - SpitDataImportsDataImporter* _tmp0_; - SpitDataImportsService* _tmp1_; - SpitDataImportsService* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - const gchar* _tmp10_; - gchar* _tmp11_; - DataImportsUIDataImportsDialog* _tmp12_; - const gchar* _tmp13_; - DataImportsUIStaticMessagePane* _tmp14_; - DataImportsUIStaticMessagePane* _tmp15_; - DataImportsUIDataImportsDialog* _tmp16_; - DataImportsUIDataImportsDialog* _tmp17_; - SpitDataImportsDataImporter* _tmp18_; - SpitDataImportsDataImporter* _tmp19_; -#line 147 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost); -#line 147 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (message != NULL); -#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = self->priv->active_importer; -#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = spit_data_imports_data_importer_get_service (_tmp0_); -#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = _tmp1_; -#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_ = g_strdup_printf (_ ("Importing from %s can’t continue because an error occurred:"), _tmp3_); -#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp5_ = _tmp4_; -#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp2_); -#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - msg = _tmp5_; -#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp6_ = msg; -#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp7_ = g_markup_printf_escaped ("\n\n%s\n\n", message); -#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp8_ = _tmp7_; -#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp9_ = g_strconcat (_tmp6_, _tmp8_, NULL); -#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_free0 (msg); -#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - msg = _tmp9_; -#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_free0 (_tmp8_); -#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp10_ = msg; -#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp11_ = g_strconcat (_tmp10_, _ ("To try importing from another service, select one from the above menu."), NULL); -#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_free0 (msg); -#line 151 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - msg = _tmp11_; -#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp12_ = self->priv->dialog; -#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp13_ = msg; -#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp14_ = data_imports_ui_static_message_pane_new_with_pango (_tmp13_); -#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp15_ = _tmp14_; -#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - data_imports_ui_data_imports_dialog_install_pane (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane)); -#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp15_); -#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp16_ = self->priv->dialog; -#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - data_imports_ui_data_imports_dialog_set_close_button_mode (_tmp16_); -#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp17_ = self->priv->dialog; -#line 155 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - data_imports_ui_data_imports_dialog_unlock_service (_tmp17_); -#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp18_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp19_ = _tmp18_; -#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_data_importer_stop (_tmp19_); -#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp19_); -#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_concrete_data_imports_host_clean_up (self); -#line 147 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_free0 (msg); -#line 1917 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_concrete_data_imports_host_real_install_dialog_pane (SpitDataImportsPluginHost* base, - SpitDataImportsDialogPane* pane, - SpitDataImportsPluginHostButtonMode button_mode) -{ - SpitDataImportsConcreteDataImportsHost * self; - gboolean _tmp0_ = FALSE; - SpitDataImportsDataImporter* _tmp1_; - SpitDataImportsDataImporter* _tmp2_; - gboolean _tmp3_; - DataImportsUIDataImportsDialog* _tmp6_; -#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost); -#line 165 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (pane)); -#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_debug ("DataImportsPluginHost.vala:167: DataImports.PluginHost: install_dialog" \ -"_pane( ): invoked."); -#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = _tmp1_; -#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = _tmp2_ == NULL; -#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp2_); -#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (_tmp3_) { -#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = TRUE; -#line 1950 "DataImportsPluginHost.c" - } else { - SpitDataImportsDataImporter* _tmp4_; - SpitDataImportsDataImporter* _tmp5_; -#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp5_ = _tmp4_; -#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = !spit_data_imports_data_importer_is_running (_tmp5_); -#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp5_); -#line 1962 "DataImportsPluginHost.c" - } -#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (_tmp0_) { -#line 170 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return; -#line 1968 "DataImportsPluginHost.c" - } -#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp6_ = self->priv->dialog; -#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - data_imports_ui_data_imports_dialog_install_pane (_tmp6_, pane); -#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_concrete_data_imports_host_set_button_mode (self, button_mode); -#line 1976 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_concrete_data_imports_host_real_install_static_message_pane (SpitDataImportsPluginHost* base, - const gchar* message, - SpitDataImportsPluginHostButtonMode button_mode) -{ - SpitDataImportsConcreteDataImportsHost * self; - DataImportsUIDataImportsDialog* _tmp0_; - DataImportsUIStaticMessagePane* _tmp1_; - DataImportsUIStaticMessagePane* _tmp2_; -#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost); -#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (message != NULL); -#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_concrete_data_imports_host_set_button_mode (self, button_mode); -#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = self->priv->dialog; -#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = data_imports_ui_static_message_pane_new_with_pango (message); -#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = _tmp1_; -#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - data_imports_ui_data_imports_dialog_install_pane (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane)); -#line 182 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp2_); -#line 2005 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_concrete_data_imports_host_real_install_library_selection_pane (SpitDataImportsPluginHost* base, - const gchar* welcome_message, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1, - const gchar* file_select_label) -{ - SpitDataImportsConcreteDataImportsHost * self; - gboolean _tmp0_ = FALSE; -#line 185 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost); -#line 185 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (welcome_message != NULL); -#line 190 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (discovered_libraries_length1 == 0) { -#line 190 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = file_select_label == NULL; -#line 2026 "DataImportsPluginHost.c" - } else { -#line 190 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = FALSE; -#line 2030 "DataImportsPluginHost.c" - } -#line 190 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (_tmp0_) { -#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_plugin_host_post_error_message (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), "Libraries or file option needed"); -#line 2036 "DataImportsPluginHost.c" - } else { - DataImportsUIDataImportsDialog* _tmp1_; - DataImportsUILibrarySelectionPane* _tmp2_; - DataImportsUILibrarySelectionPane* _tmp3_; -#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = self->priv->dialog; -#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = data_imports_ui_library_selection_pane_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), welcome_message, discovered_libraries, discovered_libraries_length1, file_select_label); -#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = _tmp2_; -#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - data_imports_ui_data_imports_dialog_install_pane (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane)); -#line 193 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp3_); -#line 2051 "DataImportsPluginHost.c" - } -#line 199 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_concrete_data_imports_host_set_button_mode (self, SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 2055 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_concrete_data_imports_host_real_install_import_progress_pane (SpitDataImportsPluginHost* base, - const gchar* message) -{ - SpitDataImportsConcreteDataImportsHost * self; - DataImportsUIProgressPane* _tmp0_; - DataImportsUIDataImportsDialog* _tmp1_; - DataImportsUIProgressPane* _tmp2_; - SpitDataImportsCoreImporter* _tmp3_; - SpitDataImportsCoreImporter* _tmp4_; -#line 202 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost); -#line 202 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (message != NULL); -#line 205 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = data_imports_ui_progress_pane_new (message); -#line 205 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (self->priv->progress_pane); -#line 205 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->progress_pane = _tmp0_; -#line 206 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = self->priv->dialog; -#line 206 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = self->priv->progress_pane; -#line 206 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - data_imports_ui_data_imports_dialog_install_pane (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane)); -#line 207 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_concrete_data_imports_host_set_button_mode (self, SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 209 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = self->priv->core_importer; -#line 209 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_->imported_items_count = 0; -#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_ = self->priv->core_importer; -#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _batch_import_roll_unref0 (_tmp4_->current_import_roll); -#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_->current_import_roll = NULL; -#line 2097 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_concrete_data_imports_host_real_update_import_progress_pane (SpitDataImportsPluginHost* base, - gdouble progress, - const gchar* progress_message) -{ - SpitDataImportsConcreteDataImportsHost * self; - DataImportsUIProgressPane* _tmp0_; -#line 213 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost); -#line 217 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = self->priv->progress_pane; -#line 217 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (_tmp0_ != NULL) { -#line 2114 "DataImportsPluginHost.c" - DataImportsUIProgressPane* _tmp1_; -#line 218 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = self->priv->progress_pane; -#line 218 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - data_imports_ui_progress_pane_update_progress (_tmp1_, progress, progress_message); -#line 2120 "DataImportsPluginHost.c" - } -} - - -static void -spit_data_imports_concrete_data_imports_host_real_prepare_media_items_for_import (SpitDataImportsPluginHost* base, - SpitDataImportsImportableMediaItem** items, - int items_length1, - gdouble progress, - gdouble host_progress_delta, - const gchar* progress_message) -{ - SpitDataImportsConcreteDataImportsHost * self; - SpitDataImportsCoreImporter* _tmp0_; -#line 222 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost); -#line 228 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = self->priv->core_importer; -#line 228 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_core_importer_prepare_media_items_for_import (_tmp0_, items, items_length1, progress, host_progress_delta, progress_message); -#line 2141 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_concrete_data_imports_host_real_finalize_import (SpitDataImportsPluginHost* base, - SpitDataImportsImportedItemsCountCallback report_imported_items_count, - void* report_imported_items_count_target, - const gchar* finalize_message) -{ - SpitDataImportsConcreteDataImportsHost * self; - SpitDataImportsCoreImporter* _tmp0_; - SpitDataImportsCoreImporter* _tmp1_; - gint _tmp2_; - SpitDataImportsCoreImporter* _tmp3_; - gint _tmp4_; -#line 231 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost); -#line 235 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_plugin_host_update_import_progress_pane (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), 1.0, finalize_message); -#line 236 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_concrete_data_imports_host_set_button_mode (self, SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = self->priv->core_importer; -#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_core_importer_finalize_import (_tmp0_); -#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = self->priv->core_importer; -#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = _tmp1_->imported_items_count; -#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - report_imported_items_count (_tmp2_, report_imported_items_count_target); -#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = self->priv->core_importer; -#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_ = _tmp3_->imported_items_count; -#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (_tmp4_ > 0) { -#line 2179 "DataImportsPluginHost.c" - LibraryWindow* _tmp5_; - LibraryWindow* _tmp6_; -#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp5_ = library_window_get_app (); -#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp6_ = _tmp5_; -#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - library_window_switch_to_import_queue_page (_tmp6_); -#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp6_); -#line 2190 "DataImportsPluginHost.c" - } -} - - -static void -spit_data_imports_concrete_data_imports_host_class_init (SpitDataImportsConcreteDataImportsHostClass * klass) -{ -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_concrete_data_imports_host_parent_class = g_type_class_peek_parent (klass); -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_type_class_add_private (klass, sizeof (SpitDataImportsConcreteDataImportsHostPrivate)); -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - G_OBJECT_CLASS (klass)->finalize = spit_data_imports_concrete_data_imports_host_finalize; -#line 2204 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_concrete_data_imports_host_spit_data_imports_plugin_host_interface_init (SpitDataImportsPluginHostIface * iface) -{ -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_concrete_data_imports_host_spit_data_imports_plugin_host_parent_iface = g_type_interface_peek_parent (iface); -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->get_data_importer = (SpitDataImportsDataImporter* (*) (SpitDataImportsPluginHost *)) spit_data_imports_concrete_data_imports_host_real_get_data_importer; -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->start_importing = (void (*) (SpitDataImportsPluginHost *)) spit_data_imports_concrete_data_imports_host_real_start_importing; -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->stop_importing = (void (*) (SpitDataImportsPluginHost *)) spit_data_imports_concrete_data_imports_host_real_stop_importing; -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->post_error = (void (*) (SpitDataImportsPluginHost *, GError*)) spit_data_imports_concrete_data_imports_host_real_post_error; -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->post_error_message = (void (*) (SpitDataImportsPluginHost *, const gchar*)) spit_data_imports_concrete_data_imports_host_real_post_error_message; -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->install_dialog_pane = (void (*) (SpitDataImportsPluginHost *, SpitDataImportsDialogPane*, SpitDataImportsPluginHostButtonMode)) spit_data_imports_concrete_data_imports_host_real_install_dialog_pane; -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->install_static_message_pane = (void (*) (SpitDataImportsPluginHost *, const gchar*, SpitDataImportsPluginHostButtonMode)) spit_data_imports_concrete_data_imports_host_real_install_static_message_pane; -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->install_library_selection_pane = (void (*) (SpitDataImportsPluginHost *, const gchar*, SpitDataImportsImportableLibrary**, int, const gchar*)) spit_data_imports_concrete_data_imports_host_real_install_library_selection_pane; -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->install_import_progress_pane = (void (*) (SpitDataImportsPluginHost *, const gchar*)) spit_data_imports_concrete_data_imports_host_real_install_import_progress_pane; -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->update_import_progress_pane = (void (*) (SpitDataImportsPluginHost *, gdouble, const gchar*)) spit_data_imports_concrete_data_imports_host_real_update_import_progress_pane; -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->prepare_media_items_for_import = (void (*) (SpitDataImportsPluginHost *, SpitDataImportsImportableMediaItem**, int, gdouble, gdouble, const gchar*)) spit_data_imports_concrete_data_imports_host_real_prepare_media_items_for_import; -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->finalize_import = (void (*) (SpitDataImportsPluginHost *, SpitDataImportsImportedItemsCountCallback, void*, const gchar*)) spit_data_imports_concrete_data_imports_host_real_finalize_import; -#line 2237 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_concrete_data_imports_host_instance_init (SpitDataImportsConcreteDataImportsHost * self) -{ -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv = SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_GET_PRIVATE (self); -#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->active_importer = NULL; -#line 91 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->dialog = NULL; -#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->progress_pane = NULL; -#line 93 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->importing_halted = FALSE; -#line 2254 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_concrete_data_imports_host_finalize (GObject * obj) -{ - SpitDataImportsConcreteDataImportsHost * self; -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost); -#line 90 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (self->priv->active_importer); -#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (self->priv->progress_pane); -#line 94 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _spit_data_imports_core_importer_unref0 (self->priv->core_importer); -#line 87 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - G_OBJECT_CLASS (spit_data_imports_concrete_data_imports_host_parent_class)->finalize (obj); -#line 2272 "DataImportsPluginHost.c" -} - - -GType -spit_data_imports_concrete_data_imports_host_get_type (void) -{ - static volatile gsize spit_data_imports_concrete_data_imports_host_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_concrete_data_imports_host_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsConcreteDataImportsHostClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_concrete_data_imports_host_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsConcreteDataImportsHost), 0, (GInstanceInitFunc) spit_data_imports_concrete_data_imports_host_instance_init, NULL }; - static const GInterfaceInfo spit_data_imports_plugin_host_info = { (GInterfaceInitFunc) spit_data_imports_concrete_data_imports_host_spit_data_imports_plugin_host_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType spit_data_imports_concrete_data_imports_host_type_id; - spit_data_imports_concrete_data_imports_host_type_id = g_type_register_static (PLUGINS_TYPE_STANDARD_HOST_INTERFACE, "SpitDataImportsConcreteDataImportsHost", &g_define_type_info, 0); - g_type_add_interface_static (spit_data_imports_concrete_data_imports_host_type_id, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, &spit_data_imports_plugin_host_info); - g_once_init_leave (&spit_data_imports_concrete_data_imports_host_type_id__volatile, spit_data_imports_concrete_data_imports_host_type_id); - } - return spit_data_imports_concrete_data_imports_host_type_id__volatile; -} - - -SpitDataImportsWelcomeDataImportsHost* -spit_data_imports_welcome_data_imports_host_construct (GType object_type, - SpitDataImportsService* service, - SpitDataImportsWelcomeImportMetaHost* meta_host) -{ - SpitDataImportsWelcomeDataImportsHost * self = NULL; - SpitDataImportsDataImporter* _tmp0_; - SpitDataImportsCoreImporter* _tmp1_; -#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (service), NULL); -#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST (meta_host), NULL); -#line 253 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = (SpitDataImportsWelcomeDataImportsHost*) plugins_standard_host_interface_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (service, SPIT_TYPE_PLUGGABLE, SpitPluggable), "data_imports"); -#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = spit_data_imports_service_create_data_importer (service, G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (self->priv->active_importer); -#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->active_importer = _tmp0_; -#line 256 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = spit_data_imports_core_importer_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 256 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _spit_data_imports_core_importer_unref0 (self->priv->core_importer); -#line 256 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->core_importer = _tmp1_; -#line 257 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->meta_host = meta_host; -#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return self; -#line 2322 "DataImportsPluginHost.c" -} - - -SpitDataImportsWelcomeDataImportsHost* -spit_data_imports_welcome_data_imports_host_new (SpitDataImportsService* service, - SpitDataImportsWelcomeImportMetaHost* meta_host) -{ -#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return spit_data_imports_welcome_data_imports_host_construct (SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, service, meta_host); -#line 2332 "DataImportsPluginHost.c" -} - - -static SpitDataImportsDataImporter* -spit_data_imports_welcome_data_imports_host_real_get_data_importer (SpitDataImportsPluginHost* base) -{ - SpitDataImportsWelcomeDataImportsHost * self; - SpitDataImportsDataImporter* result = NULL; - SpitDataImportsDataImporter* _tmp0_; - SpitDataImportsDataImporter* _tmp1_; -#line 260 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost); -#line 261 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = self->priv->active_importer; -#line 261 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 261 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - result = _tmp1_; -#line 261 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return result; -#line 2353 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_data_imports_host_real_start_importing (SpitDataImportsPluginHost* base) -{ - SpitDataImportsWelcomeDataImportsHost * self; - SpitDataImportsDataImporter* _tmp0_; - SpitDataImportsDataImporter* _tmp1_; - gboolean _tmp2_; - SpitDataImportsDataImporter* _tmp3_; - SpitDataImportsDataImporter* _tmp4_; -#line 264 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost); -#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = _tmp0_; -#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = spit_data_imports_data_importer_is_running (_tmp1_); -#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp1_); -#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (_tmp2_) { -#line 266 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return; -#line 2380 "DataImportsPluginHost.c" - } -#line 268 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_debug ("DataImportsPluginHost.vala:268: WelcomeDataImportsHost.start_importing" \ -"( ): invoked."); -#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_ = _tmp3_; -#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_data_importer_start (_tmp4_); -#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp4_); -#line 2392 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_data_imports_host_real_stop_importing (SpitDataImportsPluginHost* base) -{ - SpitDataImportsWelcomeDataImportsHost * self; - SpitDataImportsDataImporter* _tmp0_; - SpitDataImportsDataImporter* _tmp1_; - gboolean _tmp2_; -#line 273 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost); -#line 274 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_debug ("DataImportsPluginHost.vala:274: WelcomeDataImportsHost.stop_importing(" \ -" ): invoked."); -#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = _tmp0_; -#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = spit_data_imports_data_importer_is_running (_tmp1_); -#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp1_); -#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (_tmp2_) { -#line 2417 "DataImportsPluginHost.c" - SpitDataImportsDataImporter* _tmp3_; - SpitDataImportsDataImporter* _tmp4_; -#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_ = _tmp3_; -#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_data_importer_stop (_tmp4_); -#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp4_); -#line 2428 "DataImportsPluginHost.c" - } -#line 279 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_welcome_data_imports_host_clean_up (self); -#line 281 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->importing_halted = TRUE; -#line 2434 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_data_imports_host_clean_up (SpitDataImportsWelcomeDataImportsHost* self) -{ -#line 284 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_DATA_IMPORTS_HOST (self)); -#line 2443 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_data_imports_host_real_post_error (SpitDataImportsPluginHost* base, - GError* err) -{ - SpitDataImportsWelcomeDataImportsHost * self; - const gchar* _tmp0_; -#line 289 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost); -#line 290 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = err->message; -#line 290 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_plugin_host_post_error_message (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), _tmp0_); -#line 2459 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_data_imports_host_real_post_error_message (SpitDataImportsPluginHost* base, - const gchar* message) -{ - SpitDataImportsWelcomeDataImportsHost * self; - gchar* msg = NULL; - SpitDataImportsDataImporter* _tmp0_; - SpitDataImportsService* _tmp1_; - SpitDataImportsService* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - SpitDataImportsDataImporter* _tmp6_; - SpitDataImportsDataImporter* _tmp7_; -#line 293 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost); -#line 293 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (message != NULL); -#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = self->priv->active_importer; -#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = spit_data_imports_data_importer_get_service (_tmp0_); -#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = _tmp1_; -#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_ = g_strdup_printf (_ ("Importing from %s can’t continue because an error occurred:"), _tmp3_); -#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp5_ = _tmp4_; -#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp2_); -#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - msg = _tmp5_; -#line 297 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_debug ("DataImportsPluginHost.vala:297: %s", msg); -#line 299 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp6_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 299 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp7_ = _tmp6_; -#line 299 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_data_importer_stop (_tmp7_); -#line 299 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp7_); -#line 304 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_welcome_data_imports_host_clean_up (self); -#line 293 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_free0 (msg); -#line 2511 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_data_imports_host_real_install_dialog_pane (SpitDataImportsPluginHost* base, - SpitDataImportsDialogPane* pane, - SpitDataImportsPluginHostButtonMode button_mode) -{ - SpitDataImportsWelcomeDataImportsHost * self; -#line 307 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost); -#line 307 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (pane)); -#line 2525 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_data_imports_host_real_install_static_message_pane (SpitDataImportsPluginHost* base, - const gchar* message, - SpitDataImportsPluginHostButtonMode button_mode) -{ - SpitDataImportsWelcomeDataImportsHost * self; -#line 312 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost); -#line 312 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (message != NULL); -#line 2539 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_data_imports_host_real_install_library_selection_pane (SpitDataImportsPluginHost* base, - const gchar* welcome_message, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1, - const gchar* file_select_label) -{ - SpitDataImportsWelcomeDataImportsHost * self; - SpitDataImportsDataImporter* _tmp0_; - SpitDataImportsDataImporter* _tmp1_; - SpitDataImportsService* _tmp2_; - SpitDataImportsService* _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 317 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost); -#line 317 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (welcome_message != NULL); -#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = _tmp0_; -#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = spit_data_imports_data_importer_get_service (_tmp1_); -#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = _tmp2_; -#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp5_ = g_strdup_printf ("WelcomeDataImportsHost: Installing library selection pane for %s", _tmp4_); -#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp6_ = _tmp5_; -#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_debug ("DataImportsPluginHost.vala:322: %s", _tmp6_); -#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_free0 (_tmp6_); -#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp3_); -#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp1_); -#line 323 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (discovered_libraries_length1 > 0) { -#line 2586 "DataImportsPluginHost.c" - SpitDataImportsWelcomeImportMetaHost* _tmp7_; - SpitDataImportsDataImporter* _tmp8_; - SpitDataImportsDataImporter* _tmp9_; - SpitDataImportsService* _tmp10_; - SpitDataImportsService* _tmp11_; - const gchar* _tmp12_; - SpitDataImportsWelcomeImportServiceEntry* _tmp13_; - SpitDataImportsWelcomeImportServiceEntry* _tmp14_; -#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp7_ = self->priv->meta_host; -#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp8_ = spit_data_imports_plugin_host_get_data_importer (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp9_ = _tmp8_; -#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp10_ = spit_data_imports_data_importer_get_service (_tmp9_); -#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp11_ = _tmp10_; -#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp12_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp13_ = spit_data_imports_welcome_import_service_entry_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost), _tmp12_, discovered_libraries, discovered_libraries_length1); -#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp14_ = _tmp13_; -#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_welcome_import_meta_host_install_service_entry (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntry)); -#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp14_); -#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp11_); -#line 324 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp9_); -#line 2619 "DataImportsPluginHost.c" - } -} - - -static void -spit_data_imports_welcome_data_imports_host_real_install_import_progress_pane (SpitDataImportsPluginHost* base, - const gchar* message) -{ - SpitDataImportsWelcomeDataImportsHost * self; -#line 332 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost); -#line 332 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (message != NULL); -#line 2633 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_data_imports_host_real_update_import_progress_pane (SpitDataImportsPluginHost* base, - gdouble progress, - const gchar* progress_message) -{ - SpitDataImportsWelcomeDataImportsHost * self; -#line 338 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost); -#line 2645 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_data_imports_host_real_prepare_media_items_for_import (SpitDataImportsPluginHost* base, - SpitDataImportsImportableMediaItem** items, - int items_length1, - gdouble progress, - gdouble host_progress_delta, - const gchar* progress_message) -{ - SpitDataImportsWelcomeDataImportsHost * self; - SpitDataImportsCoreImporter* _tmp0_; -#line 345 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost); -#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = self->priv->core_importer; -#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_core_importer_prepare_media_items_for_import (_tmp0_, items, items_length1, progress, host_progress_delta, progress_message); -#line 2665 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_data_imports_host_real_finalize_import (SpitDataImportsPluginHost* base, - SpitDataImportsImportedItemsCountCallback report_imported_items_count, - void* report_imported_items_count_target, - const gchar* finalize_message) -{ - SpitDataImportsWelcomeDataImportsHost * self; - SpitDataImportsCoreImporter* _tmp0_; - SpitDataImportsCoreImporter* _tmp1_; - gint _tmp2_; - SpitDataImportsWelcomeImportMetaHost* _tmp3_; -#line 354 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost); -#line 358 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = self->priv->core_importer; -#line 358 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_core_importer_finalize_import (_tmp0_); -#line 359 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = self->priv->core_importer; -#line 359 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = _tmp1_->imported_items_count; -#line 359 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - report_imported_items_count (_tmp2_, report_imported_items_count_target); -#line 360 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = self->priv->meta_host; -#line 360 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_welcome_import_meta_host_finalize_import (_tmp3_, self); -#line 2696 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_data_imports_host_class_init (SpitDataImportsWelcomeDataImportsHostClass * klass) -{ -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_welcome_data_imports_host_parent_class = g_type_class_peek_parent (klass); -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_type_class_add_private (klass, sizeof (SpitDataImportsWelcomeDataImportsHostPrivate)); -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - G_OBJECT_CLASS (klass)->finalize = spit_data_imports_welcome_data_imports_host_finalize; -#line 2709 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_data_imports_host_spit_data_imports_plugin_host_interface_init (SpitDataImportsPluginHostIface * iface) -{ -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_welcome_data_imports_host_spit_data_imports_plugin_host_parent_iface = g_type_interface_peek_parent (iface); -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->get_data_importer = (SpitDataImportsDataImporter* (*) (SpitDataImportsPluginHost *)) spit_data_imports_welcome_data_imports_host_real_get_data_importer; -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->start_importing = (void (*) (SpitDataImportsPluginHost *)) spit_data_imports_welcome_data_imports_host_real_start_importing; -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->stop_importing = (void (*) (SpitDataImportsPluginHost *)) spit_data_imports_welcome_data_imports_host_real_stop_importing; -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->post_error = (void (*) (SpitDataImportsPluginHost *, GError*)) spit_data_imports_welcome_data_imports_host_real_post_error; -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->post_error_message = (void (*) (SpitDataImportsPluginHost *, const gchar*)) spit_data_imports_welcome_data_imports_host_real_post_error_message; -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->install_dialog_pane = (void (*) (SpitDataImportsPluginHost *, SpitDataImportsDialogPane*, SpitDataImportsPluginHostButtonMode)) spit_data_imports_welcome_data_imports_host_real_install_dialog_pane; -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->install_static_message_pane = (void (*) (SpitDataImportsPluginHost *, const gchar*, SpitDataImportsPluginHostButtonMode)) spit_data_imports_welcome_data_imports_host_real_install_static_message_pane; -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->install_library_selection_pane = (void (*) (SpitDataImportsPluginHost *, const gchar*, SpitDataImportsImportableLibrary**, int, const gchar*)) spit_data_imports_welcome_data_imports_host_real_install_library_selection_pane; -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->install_import_progress_pane = (void (*) (SpitDataImportsPluginHost *, const gchar*)) spit_data_imports_welcome_data_imports_host_real_install_import_progress_pane; -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->update_import_progress_pane = (void (*) (SpitDataImportsPluginHost *, gdouble, const gchar*)) spit_data_imports_welcome_data_imports_host_real_update_import_progress_pane; -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->prepare_media_items_for_import = (void (*) (SpitDataImportsPluginHost *, SpitDataImportsImportableMediaItem**, int, gdouble, gdouble, const gchar*)) spit_data_imports_welcome_data_imports_host_real_prepare_media_items_for_import; -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->finalize_import = (void (*) (SpitDataImportsPluginHost *, SpitDataImportsImportedItemsCountCallback, void*, const gchar*)) spit_data_imports_welcome_data_imports_host_real_finalize_import; -#line 2742 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_data_imports_host_instance_init (SpitDataImportsWelcomeDataImportsHost * self) -{ -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv = SPIT_DATA_IMPORTS_WELCOME_DATA_IMPORTS_HOST_GET_PRIVATE (self); -#line 248 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->active_importer = NULL; -#line 249 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->importing_halted = FALSE; -#line 2755 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_data_imports_host_finalize (GObject * obj) -{ - SpitDataImportsWelcomeDataImportsHost * self; -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_WELCOME_DATA_IMPORTS_HOST, SpitDataImportsWelcomeDataImportsHost); -#line 248 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (self->priv->active_importer); -#line 250 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _spit_data_imports_core_importer_unref0 (self->priv->core_importer); -#line 244 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - G_OBJECT_CLASS (spit_data_imports_welcome_data_imports_host_parent_class)->finalize (obj); -#line 2771 "DataImportsPluginHost.c" -} - - -GType -spit_data_imports_welcome_data_imports_host_get_type (void) -{ - static volatile gsize spit_data_imports_welcome_data_imports_host_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_welcome_data_imports_host_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsWelcomeDataImportsHostClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_welcome_data_imports_host_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsWelcomeDataImportsHost), 0, (GInstanceInitFunc) spit_data_imports_welcome_data_imports_host_instance_init, NULL }; - static const GInterfaceInfo spit_data_imports_plugin_host_info = { (GInterfaceInitFunc) spit_data_imports_welcome_data_imports_host_spit_data_imports_plugin_host_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType spit_data_imports_welcome_data_imports_host_type_id; - spit_data_imports_welcome_data_imports_host_type_id = g_type_register_static (PLUGINS_TYPE_STANDARD_HOST_INTERFACE, "SpitDataImportsWelcomeDataImportsHost", &g_define_type_info, 0); - g_type_add_interface_static (spit_data_imports_welcome_data_imports_host_type_id, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, &spit_data_imports_plugin_host_info); - g_once_init_leave (&spit_data_imports_welcome_data_imports_host_type_id__volatile, spit_data_imports_welcome_data_imports_host_type_id); - } - return spit_data_imports_welcome_data_imports_host_type_id__volatile; -} - - -static SpitDataImportsImportableLibrary** -_vala_array_dup21 (SpitDataImportsImportableLibrary** self, - int length) -{ - SpitDataImportsImportableLibrary** result; - int i; -#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - result = g_new0 (SpitDataImportsImportableLibrary*, length + 1); -#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - for (i = 0; i < length; i++) { -#line 2801 "DataImportsPluginHost.c" - SpitDataImportsImportableLibrary* _tmp0_; -#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - result[i] = _tmp0_; -#line 2807 "DataImportsPluginHost.c" - } -#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return result; -#line 2811 "DataImportsPluginHost.c" -} - - -SpitDataImportsWelcomeImportServiceEntry* -spit_data_imports_welcome_import_service_entry_construct (GType object_type, - SpitDataImportsPluginHost* host, - const gchar* pluggable_name, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1) -{ - SpitDataImportsWelcomeImportServiceEntry * self = NULL; - SpitDataImportsPluginHost* _tmp0_; - gchar* _tmp1_; - SpitDataImportsImportableLibrary** _tmp2_; - gint _tmp2__length1; -#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (host), NULL); -#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_val_if_fail (pluggable_name != NULL, NULL); -#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = (SpitDataImportsWelcomeImportServiceEntry*) g_object_new (object_type, NULL); -#line 376 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = _g_object_ref0 (host); -#line 376 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (self->priv->host); -#line 376 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->host = _tmp0_; -#line 377 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = g_strdup (pluggable_name); -#line 377 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_free0 (self->priv->pluggable_name); -#line 377 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->pluggable_name = _tmp1_; -#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = (discovered_libraries != NULL) ? _vala_array_dup21 (discovered_libraries, discovered_libraries_length1) : ((gpointer) discovered_libraries); -#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2__length1 = discovered_libraries_length1; -#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->discovered_libraries = (_vala_array_free (self->priv->discovered_libraries, self->priv->discovered_libraries_length1, (GDestroyNotify) g_object_unref), NULL); -#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->discovered_libraries = _tmp2_; -#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->discovered_libraries_length1 = _tmp2__length1; -#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->_discovered_libraries_size_ = self->priv->discovered_libraries_length1; -#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return self; -#line 2859 "DataImportsPluginHost.c" -} - - -SpitDataImportsWelcomeImportServiceEntry* -spit_data_imports_welcome_import_service_entry_new (SpitDataImportsPluginHost* host, - const gchar* pluggable_name, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1) -{ -#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return spit_data_imports_welcome_import_service_entry_construct (SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, host, pluggable_name, discovered_libraries, discovered_libraries_length1); -#line 2871 "DataImportsPluginHost.c" -} - - -static gchar* -spit_data_imports_welcome_import_service_entry_real_get_service_name (WelcomeServiceEntry* base) -{ - SpitDataImportsWelcomeImportServiceEntry * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 381 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntry); -#line 382 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = self->priv->pluggable_name; -#line 382 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 382 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - result = _tmp1_; -#line 382 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return result; -#line 2892 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_import_service_entry_real_execute (WelcomeServiceEntry* base) -{ - SpitDataImportsWelcomeImportServiceEntry * self; - SpitDataImportsImportableLibrary** _tmp0_; - gint _tmp0__length1; -#line 385 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntry); -#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = self->priv->discovered_libraries; -#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0__length1 = self->priv->discovered_libraries_length1; -#line 2908 "DataImportsPluginHost.c" - { - SpitDataImportsImportableLibrary** library_collection = NULL; - gint library_collection_length1 = 0; - gint _library_collection_size_ = 0; - gint library_it = 0; -#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - library_collection = _tmp0_; -#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - library_collection_length1 = _tmp0__length1; -#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - for (library_it = 0; library_it < _tmp0__length1; library_it = library_it + 1) { -#line 2920 "DataImportsPluginHost.c" - SpitDataImportsImportableLibrary* _tmp1_; - SpitDataImportsImportableLibrary* library = NULL; -#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = _g_object_ref0 (library_collection[library_it]); -#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - library = _tmp1_; -#line 2927 "DataImportsPluginHost.c" - { - SpitDataImportsPluginHost* _tmp2_; - SpitDataImportsDataImporter* _tmp3_; - SpitDataImportsDataImporter* _tmp4_; - SpitDataImportsImportableLibrary* _tmp5_; -#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = self->priv->host; -#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = spit_data_imports_plugin_host_get_data_importer (_tmp2_); -#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_ = _tmp3_; -#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp5_ = library; -#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_data_importer_on_library_selected (_tmp4_, _tmp5_); -#line 387 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_tmp4_); -#line 386 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (library); -#line 2947 "DataImportsPluginHost.c" - } - } - } -} - - -static void -spit_data_imports_welcome_import_service_entry_class_init (SpitDataImportsWelcomeImportServiceEntryClass * klass) -{ -#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_welcome_import_service_entry_parent_class = g_type_class_peek_parent (klass); -#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_type_class_add_private (klass, sizeof (SpitDataImportsWelcomeImportServiceEntryPrivate)); -#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - G_OBJECT_CLASS (klass)->finalize = spit_data_imports_welcome_import_service_entry_finalize; -#line 2963 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_import_service_entry_welcome_service_entry_interface_init (WelcomeServiceEntryIface * iface) -{ -#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_welcome_import_service_entry_welcome_service_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->get_service_name = (gchar* (*) (WelcomeServiceEntry *)) spit_data_imports_welcome_import_service_entry_real_get_service_name; -#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - iface->execute = (void (*) (WelcomeServiceEntry *)) spit_data_imports_welcome_import_service_entry_real_execute; -#line 2976 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_import_service_entry_instance_init (SpitDataImportsWelcomeImportServiceEntry * self) -{ -#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv = SPIT_DATA_IMPORTS_WELCOME_IMPORT_SERVICE_ENTRY_GET_PRIVATE (self); -#line 2985 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_import_service_entry_finalize (GObject * obj) -{ - SpitDataImportsWelcomeImportServiceEntry * self; -#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_SERVICE_ENTRY, SpitDataImportsWelcomeImportServiceEntry); -#line 368 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_free0 (self->priv->pluggable_name); -#line 369 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->discovered_libraries = (_vala_array_free (self->priv->discovered_libraries, self->priv->discovered_libraries_length1, (GDestroyNotify) g_object_unref), NULL); -#line 370 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (self->priv->host); -#line 367 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - G_OBJECT_CLASS (spit_data_imports_welcome_import_service_entry_parent_class)->finalize (obj); -#line 3003 "DataImportsPluginHost.c" -} - - -GType -spit_data_imports_welcome_import_service_entry_get_type (void) -{ - static volatile gsize spit_data_imports_welcome_import_service_entry_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_welcome_import_service_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsWelcomeImportServiceEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_welcome_import_service_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsWelcomeImportServiceEntry), 0, (GInstanceInitFunc) spit_data_imports_welcome_import_service_entry_instance_init, NULL }; - static const GInterfaceInfo welcome_service_entry_info = { (GInterfaceInitFunc) spit_data_imports_welcome_import_service_entry_welcome_service_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType spit_data_imports_welcome_import_service_entry_type_id; - spit_data_imports_welcome_import_service_entry_type_id = g_type_register_static (G_TYPE_OBJECT, "SpitDataImportsWelcomeImportServiceEntry", &g_define_type_info, 0); - g_type_add_interface_static (spit_data_imports_welcome_import_service_entry_type_id, TYPE_WELCOME_SERVICE_ENTRY, &welcome_service_entry_info); - g_once_init_leave (&spit_data_imports_welcome_import_service_entry_type_id__volatile, spit_data_imports_welcome_import_service_entry_type_id); - } - return spit_data_imports_welcome_import_service_entry_type_id__volatile; -} - - -SpitDataImportsWelcomeImportMetaHost* -spit_data_imports_welcome_import_meta_host_construct (GType object_type, - WelcomeDialog* dialog) -{ - SpitDataImportsWelcomeImportMetaHost * self = NULL; - WelcomeDialog* _tmp0_; -#line 395 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_val_if_fail (IS_WELCOME_DIALOG (dialog), NULL); -#line 395 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = (SpitDataImportsWelcomeImportMetaHost*) g_object_new (object_type, NULL); -#line 396 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = _g_object_ref0 (dialog); -#line 396 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (self->priv->dialog); -#line 396 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv->dialog = _tmp0_; -#line 395 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return self; -#line 3041 "DataImportsPluginHost.c" -} - - -SpitDataImportsWelcomeImportMetaHost* -spit_data_imports_welcome_import_meta_host_new (WelcomeDialog* dialog) -{ -#line 395 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return spit_data_imports_welcome_import_meta_host_construct (SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, dialog); -#line 3050 "DataImportsPluginHost.c" -} - - -void -spit_data_imports_welcome_import_meta_host_start (SpitDataImportsWelcomeImportMetaHost* self) -{ - SpitDataImportsService** services = NULL; - gint _tmp0_; - SpitDataImportsService** _tmp1_; - gint services_length1; - gint _services_size_; - SpitDataImportsService** _tmp2_; - gint _tmp2__length1; -#line 399 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST (self)); -#line 400 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = spit_data_imports_load_all_services (&_tmp0_); -#line 400 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - services = _tmp1_; -#line 400 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - services_length1 = _tmp0_; -#line 400 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _services_size_ = services_length1; -#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = services; -#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2__length1 = services_length1; -#line 3078 "DataImportsPluginHost.c" - { - SpitDataImportsService** service_collection = NULL; - gint service_collection_length1 = 0; - gint _service_collection_size_ = 0; - gint service_it = 0; -#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - service_collection = _tmp2_; -#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - service_collection_length1 = _tmp2__length1; -#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - for (service_it = 0; service_it < _tmp2__length1; service_it = service_it + 1) { -#line 3090 "DataImportsPluginHost.c" - SpitDataImportsService* _tmp3_; - SpitDataImportsService* service = NULL; -#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = _g_object_ref0 (service_collection[service_it]); -#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - service = _tmp3_; -#line 3097 "DataImportsPluginHost.c" - { - SpitDataImportsWelcomeDataImportsHost* host = NULL; - SpitDataImportsService* _tmp4_; - SpitDataImportsWelcomeDataImportsHost* _tmp5_; - SpitDataImportsWelcomeDataImportsHost* _tmp6_; -#line 402 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_ = service; -#line 402 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp5_ = spit_data_imports_welcome_data_imports_host_new (_tmp4_, self); -#line 402 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - host = _tmp5_; -#line 403 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp6_ = host; -#line 403 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_plugin_host_start_importing (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (host); -#line 401 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (service); -#line 3117 "DataImportsPluginHost.c" - } - } - } -#line 399 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_object_unref), NULL); -#line 3123 "DataImportsPluginHost.c" -} - - -void -spit_data_imports_welcome_import_meta_host_finalize_import (SpitDataImportsWelcomeImportMetaHost* self, - SpitDataImportsWelcomeDataImportsHost* host) -{ -#line 407 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST (self)); -#line 407 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_DATA_IMPORTS_HOST (host)); -#line 408 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_plugin_host_stop_importing (G_TYPE_CHECK_INSTANCE_CAST (host, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 3137 "DataImportsPluginHost.c" -} - - -void -spit_data_imports_welcome_import_meta_host_install_service_entry (SpitDataImportsWelcomeImportMetaHost* self, - WelcomeServiceEntry* entry) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - WelcomeDialog* _tmp4_; -#line 411 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST (self)); -#line 411 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (IS_WELCOME_SERVICE_ENTRY (entry)); -#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = welcome_service_entry_get_service_name (entry); -#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = _tmp0_; -#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = g_strdup_printf ("WelcomeImportMetaHost: Installing service entry for %s", _tmp1_); -#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = _tmp2_; -#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_debug ("DataImportsPluginHost.vala:412: %s", _tmp3_); -#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_free0 (_tmp3_); -#line 412 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_free0 (_tmp1_); -#line 413 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_ = self->priv->dialog; -#line 413 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - welcome_dialog_install_service_entry (_tmp4_, entry); -#line 3172 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_import_meta_host_class_init (SpitDataImportsWelcomeImportMetaHostClass * klass) -{ -#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_welcome_import_meta_host_parent_class = g_type_class_peek_parent (klass); -#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_type_class_add_private (klass, sizeof (SpitDataImportsWelcomeImportMetaHostPrivate)); -#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - G_OBJECT_CLASS (klass)->finalize = spit_data_imports_welcome_import_meta_host_finalize; -#line 3185 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_import_meta_host_instance_init (SpitDataImportsWelcomeImportMetaHost * self) -{ -#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self->priv = SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_GET_PRIVATE (self); -#line 3194 "DataImportsPluginHost.c" -} - - -static void -spit_data_imports_welcome_import_meta_host_finalize (GObject * obj) -{ - SpitDataImportsWelcomeImportMetaHost * self; -#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHost); -#line 393 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (self->priv->dialog); -#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - G_OBJECT_CLASS (spit_data_imports_welcome_import_meta_host_parent_class)->finalize (obj); -#line 3208 "DataImportsPluginHost.c" -} - - -GType -spit_data_imports_welcome_import_meta_host_get_type (void) -{ - static volatile gsize spit_data_imports_welcome_import_meta_host_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_welcome_import_meta_host_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsWelcomeImportMetaHostClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_data_imports_welcome_import_meta_host_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitDataImportsWelcomeImportMetaHost), 0, (GInstanceInitFunc) spit_data_imports_welcome_import_meta_host_instance_init, NULL }; - GType spit_data_imports_welcome_import_meta_host_type_id; - spit_data_imports_welcome_import_meta_host_type_id = g_type_register_static (G_TYPE_OBJECT, "SpitDataImportsWelcomeImportMetaHost", &g_define_type_info, 0); - g_once_init_leave (&spit_data_imports_welcome_import_meta_host_type_id__volatile, spit_data_imports_welcome_import_meta_host_type_id); - } - return spit_data_imports_welcome_import_meta_host_type_id__volatile; -} - - -SpitDataImportsService** -spit_data_imports_load_all_services (int* result_length1) -{ - SpitDataImportsService** result = NULL; - gint _tmp0_; - SpitDataImportsService** _tmp1_; - SpitDataImportsService** _tmp2_; - gint _tmp2__length1; -#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = spit_data_imports_load_services (TRUE, &_tmp0_); -#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = _tmp1_; -#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2__length1 = _tmp0_; -#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (result_length1) { -#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - *result_length1 = _tmp2__length1; -#line 3244 "DataImportsPluginHost.c" - } -#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - result = _tmp2_; -#line 418 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return result; -#line 3250 "DataImportsPluginHost.c" -} - - -static void -_vala_array_add71 (SpitDataImportsService** * array, - int* length, - int* size, - SpitDataImportsService* value) -{ -#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if ((*length) == (*size)) { -#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - *array = g_renew (SpitDataImportsService*, *array, (*size) + 1); -#line 3266 "DataImportsPluginHost.c" - } -#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - (*array)[(*length)++] = value; -#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - (*array)[*length] = NULL; -#line 3272 "DataImportsPluginHost.c" -} - - -static gint -__lambda25_ (void* a, - void* b) -{ - gint result = 0; - const gchar* _tmp0_; - const gchar* _tmp1_; -#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (*((SpitDataImportsService**) a), SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (*((SpitDataImportsService**) b), SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - result = utf8_cs_compare (_tmp0_, _tmp1_); -#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return result; -#line 3291 "DataImportsPluginHost.c" -} - - -static gint -___lambda25____compar_fn_t (void* key1, - void* key2) -{ - gint result; - result = __lambda25_ (key1, key2); -#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return result; -#line 3303 "DataImportsPluginHost.c" -} - - -SpitDataImportsService** -spit_data_imports_load_services (gboolean load_all, - int* result_length1) -{ - SpitDataImportsService** result = NULL; - SpitDataImportsService** loaded_services = NULL; - SpitDataImportsService** _tmp0_; - gint loaded_services_length1; - gint _loaded_services_size_; - GeeCollection* pluggables = NULL; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - gint _tmp3_; - gint _tmp4_; - SpitDataImportsService** _tmp23_; - gint _tmp23__length1; - SpitDataImportsService** _tmp24_; - gint _tmp24__length1; - SpitDataImportsService** _tmp25_; - gint _tmp25__length1; -#line 422 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = g_new0 (SpitDataImportsService*, 0 + 1); -#line 422 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - loaded_services = _tmp0_; -#line 422 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - loaded_services_length1 = 0; -#line 422 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _loaded_services_size_ = loaded_services_length1; -#line 425 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = plugins_get_pluggables_for_type (SPIT_DATA_IMPORTS_TYPE_SERVICE, NULL, NULL, NULL, load_all); -#line 425 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - pluggables = _tmp1_; -#line 429 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = pluggables; -#line 429 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = gee_collection_get_size (_tmp2_); -#line 429 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_ = _tmp3_; -#line 429 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_debug ("DataImportsPluginHost.vala:429: DataImportsDialog: discovered %d plugg" \ -"able data import services.", _tmp4_); -#line 3347 "DataImportsPluginHost.c" - { - GeeIterator* _pluggable_it = NULL; - GeeCollection* _tmp5_; - GeeIterator* _tmp6_; -#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp5_ = pluggables; -#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _pluggable_it = _tmp6_; -#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - while (TRUE) { -#line 3360 "DataImportsPluginHost.c" - GeeIterator* _tmp7_; - SpitPluggable* pluggable = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; - gint pluggable_interface = 0; - SpitPluggable* _tmp10_; - gint _tmp11_; - SpitDataImportsService* service = NULL; - SpitPluggable* _tmp16_; - SpitDataImportsService* _tmp17_; - SpitDataImportsService* _tmp18_; - const gchar* _tmp19_; - SpitDataImportsService** _tmp20_; - gint _tmp20__length1; - SpitDataImportsService* _tmp21_; - SpitDataImportsService* _tmp22_; -#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp7_ = _pluggable_it; -#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (!gee_iterator_next (_tmp7_)) { -#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - break; -#line 3383 "DataImportsPluginHost.c" - } -#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp8_ = _pluggable_it; -#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp9_ = gee_iterator_get (_tmp8_); -#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - pluggable = (SpitPluggable*) _tmp9_; -#line 432 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp10_ = pluggable; -#line 432 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - pluggable_interface = spit_pluggable_get_pluggable_interface (_tmp10_, SPIT_DATA_IMPORTS_CURRENT_INTERFACE, SPIT_DATA_IMPORTS_CURRENT_INTERFACE); -#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp11_ = pluggable_interface; -#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (_tmp11_ != SPIT_DATA_IMPORTS_CURRENT_INTERFACE) { -#line 3399 "DataImportsPluginHost.c" - SpitPluggable* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gint _tmp15_; -#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp12_ = pluggable; -#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp13_ = plugins_get_pluggable_module_id (_tmp12_); -#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp14_ = _tmp13_; -#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp15_ = pluggable_interface; -#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_warning ("DataImportsPluginHost.vala:435: Unable to load data import plugin %s: " \ -"reported interface %d.", _tmp14_, _tmp15_); -#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_free0 (_tmp14_); -#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (pluggable); -#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - continue; -#line 3420 "DataImportsPluginHost.c" - } -#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp16_ = pluggable; -#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsService)); -#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - service = _tmp17_; -#line 444 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp18_ = service; -#line 444 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp19_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 444 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_debug ("DataImportsPluginHost.vala:444: DataImportsDialog: discovered pluggabl" \ -"e data import service '%s'.", _tmp19_); -#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp20_ = loaded_services; -#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp20__length1 = loaded_services_length1; -#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp21_ = service; -#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp22_ = _g_object_ref0 (_tmp21_); -#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _vala_array_add71 (&loaded_services, &loaded_services_length1, &_loaded_services_size_, _tmp22_); -#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (service); -#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (pluggable); -#line 3448 "DataImportsPluginHost.c" - } -#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_pluggable_it); -#line 3452 "DataImportsPluginHost.c" - } -#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp23_ = loaded_services; -#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp23__length1 = loaded_services_length1; -#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp24_ = loaded_services; -#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp24__length1 = loaded_services_length1; -#line 452 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - qsort (_tmp23_, (gsize) _tmp24__length1, (gsize) sizeof (SpitDataImportsService*), ___lambda25____compar_fn_t); -#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp25_ = loaded_services; -#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp25__length1 = loaded_services_length1; -#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (result_length1) { -#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - *result_length1 = _tmp25__length1; -#line 3472 "DataImportsPluginHost.c" - } -#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - result = _tmp25_; -#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (pluggables); -#line 457 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return result; -#line 3480 "DataImportsPluginHost.c" -} - - -void -spit_data_imports_data_import_reporter (ImportManifest* manifest, - BatchImportRoll* import_roll) -{ - GeeList* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 462 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (IS_IMPORT_MANIFEST (manifest)); -#line 462 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - g_return_if_fail (IS_BATCH_IMPORT_ROLL (import_roll)); -#line 463 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp0_ = manifest->all; -#line 463 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp1_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 463 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp2_ = _tmp1_; -#line 463 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (_tmp2_ > 0) { -#line 3503 "DataImportsPluginHost.c" - ImportManifest* _tmp3_; -#line 464 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp3_ = spit_data_imports_meta_manifest; -#line 464 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (_tmp3_ == NULL) { -#line 3509 "DataImportsPluginHost.c" - ImportManifest* _tmp4_; -#line 465 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp4_ = import_manifest_new (NULL, NULL); -#line 465 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _import_manifest_unref0 (spit_data_imports_meta_manifest); -#line 465 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_meta_manifest = _tmp4_; -#line 3517 "DataImportsPluginHost.c" - } - { - GeeList* _result_list = NULL; - GeeList* _tmp5_; - GeeList* _tmp6_; - gint _result_size = 0; - GeeList* _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint _result_index = 0; -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp5_ = manifest->all; -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp6_ = _g_object_ref0 (_tmp5_); -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _result_list = _tmp6_; -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp7_ = _result_list; -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp9_ = _tmp8_; -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _result_size = _tmp9_; -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _result_index = -1; -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - while (TRUE) { -#line 3546 "DataImportsPluginHost.c" - gint _tmp10_; - gint _tmp11_; - gint _tmp12_; - BatchImportResult* _result_ = NULL; - GeeList* _tmp13_; - gint _tmp14_; - gpointer _tmp15_; - ImportManifest* _tmp16_; - BatchImportResult* _tmp17_; -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp10_ = _result_index; -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _result_index = _tmp10_ + 1; -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp11_ = _result_index; -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp12_ = _result_size; -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - if (!(_tmp11_ < _tmp12_)) { -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - break; -#line 3568 "DataImportsPluginHost.c" - } -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp13_ = _result_list; -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp14_ = _result_index; -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp15_ = gee_list_get (_tmp13_, _tmp14_); -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _result_ = (BatchImportResult*) _tmp15_; -#line 467 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp16_ = spit_data_imports_meta_manifest; -#line 467 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp17_ = _result_; -#line 467 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - import_manifest_add_result (_tmp16_, _tmp17_); -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _batch_import_result_unref0 (_result_); -#line 3586 "DataImportsPluginHost.c" - } -#line 466 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _g_object_unref0 (_result_list); -#line 3590 "DataImportsPluginHost.c" - } - } else { - ImportManifest* _tmp18_; -#line 470 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - data_imports_ui_data_imports_dialog_terminate_instance (); -#line 471 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _tmp18_ = spit_data_imports_meta_manifest; -#line 471 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - import_ui_report_manifest (_tmp18_, TRUE, NULL); -#line 472 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - _import_manifest_unref0 (spit_data_imports_meta_manifest); -#line 472 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - spit_data_imports_meta_manifest = NULL; -#line 3604 "DataImportsPluginHost.c" - } -} - - -gint64 -spit_data_imports_import_job_comparator (void* a, - void* b) -{ - gint64 result = 0LL; -#line 477 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - result = (gint64) (spit_data_imports_data_import_job_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST ((SpitDataImportsDataImportJob*) a, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob)) - spit_data_imports_data_import_job_get_exposure_time (G_TYPE_CHECK_INSTANCE_CAST ((SpitDataImportsDataImportJob*) b, SPIT_DATA_IMPORTS_TYPE_DATA_IMPORT_JOB, SpitDataImportsDataImportJob))); -#line 477 "/home/jens/Source/shotwell/src/data_imports/DataImportsPluginHost.vala" - return result; -#line 3618 "DataImportsPluginHost.c" -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/data_imports/DataImportsUI.c b/src/data_imports/DataImportsUI.c deleted file mode 100644 index 6a5ebdf..0000000 --- a/src/data_imports/DataImportsUI.c +++ /dev/null @@ -1,2814 +0,0 @@ -/* DataImportsUI.c generated by valac 0.40.4, the Vala compiler - * generated from DataImportsUI.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include -#include - - -#define DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE (data_imports_ui_concrete_dialog_pane_get_type ()) -#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane)) -#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPaneClass)) -#define DATA_IMPORTS_UI_IS_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE)) -#define DATA_IMPORTS_UI_IS_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE)) -#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPaneClass)) - -typedef struct _DataImportsUIConcreteDialogPane DataImportsUIConcreteDialogPane; -typedef struct _DataImportsUIConcreteDialogPaneClass DataImportsUIConcreteDialogPaneClass; -typedef struct _DataImportsUIConcreteDialogPanePrivate DataImportsUIConcreteDialogPanePrivate; -enum { - DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_0_PROPERTY, - DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_NUM_PROPERTIES -}; -static GParamSpec* data_imports_ui_concrete_dialog_pane_properties[DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE (data_imports_ui_static_message_pane_get_type ()) -#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePane)) -#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePaneClass)) -#define DATA_IMPORTS_UI_IS_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE)) -#define DATA_IMPORTS_UI_IS_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE)) -#define DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, DataImportsUIStaticMessagePaneClass)) - -typedef struct _DataImportsUIStaticMessagePane DataImportsUIStaticMessagePane; -typedef struct _DataImportsUIStaticMessagePaneClass DataImportsUIStaticMessagePaneClass; -typedef struct _DataImportsUIStaticMessagePanePrivate DataImportsUIStaticMessagePanePrivate; -enum { - DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_0_PROPERTY, - DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_NUM_PROPERTIES -}; -static GParamSpec* data_imports_ui_static_message_pane_properties[DATA_IMPORTS_UI_STATIC_MESSAGE_PANE_NUM_PROPERTIES]; - -#define DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE (data_imports_ui_library_selection_pane_get_type ()) -#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPane)) -#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPaneClass)) -#define DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE)) -#define DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE)) -#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPaneClass)) - -typedef struct _DataImportsUILibrarySelectionPane DataImportsUILibrarySelectionPane; -typedef struct _DataImportsUILibrarySelectionPaneClass DataImportsUILibrarySelectionPaneClass; -typedef struct _DataImportsUILibrarySelectionPanePrivate DataImportsUILibrarySelectionPanePrivate; -enum { - DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_0_PROPERTY, - DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_NUM_PROPERTIES -}; -static GParamSpec* data_imports_ui_library_selection_pane_properties[DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _Block11Data Block11Data; -typedef struct _Block12Data Block12Data; - -#define DATA_IMPORTS_UI_TYPE_PROGRESS_PANE (data_imports_ui_progress_pane_get_type ()) -#define DATA_IMPORTS_UI_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPane)) -#define DATA_IMPORTS_UI_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPaneClass)) -#define DATA_IMPORTS_UI_IS_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE)) -#define DATA_IMPORTS_UI_IS_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE)) -#define DATA_IMPORTS_UI_PROGRESS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPaneClass)) - -typedef struct _DataImportsUIProgressPane DataImportsUIProgressPane; -typedef struct _DataImportsUIProgressPaneClass DataImportsUIProgressPaneClass; -typedef struct _DataImportsUIProgressPanePrivate DataImportsUIProgressPanePrivate; -enum { - DATA_IMPORTS_UI_PROGRESS_PANE_0_PROPERTY, - DATA_IMPORTS_UI_PROGRESS_PANE_NUM_PROPERTIES -}; -static GParamSpec* data_imports_ui_progress_pane_properties[DATA_IMPORTS_UI_PROGRESS_PANE_NUM_PROPERTIES]; - -#define DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG (data_imports_ui_data_imports_dialog_get_type ()) -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialog)) -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogClass)) -#define DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG)) -#define DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG)) -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogClass)) - -typedef struct _DataImportsUIDataImportsDialog DataImportsUIDataImportsDialog; -typedef struct _DataImportsUIDataImportsDialogClass DataImportsUIDataImportsDialogClass; -typedef struct _DataImportsUIDataImportsDialogPrivate DataImportsUIDataImportsDialogPrivate; - -#define PLUGINS_TYPE_STANDARD_HOST_INTERFACE (plugins_standard_host_interface_get_type ()) -#define PLUGINS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface)) -#define PLUGINS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass)) -#define PLUGINS_IS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE)) -#define PLUGINS_IS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE)) -#define PLUGINS_STANDARD_HOST_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass)) - -typedef struct _PluginsStandardHostInterface PluginsStandardHostInterface; -typedef struct _PluginsStandardHostInterfaceClass PluginsStandardHostInterfaceClass; - -#define SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST (spit_data_imports_concrete_data_imports_host_get_type ()) -#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHost)) -#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHostClass)) -#define SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST)) -#define SPIT_DATA_IMPORTS_IS_CONCRETE_DATA_IMPORTS_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST)) -#define SPIT_DATA_IMPORTS_CONCRETE_DATA_IMPORTS_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_CONCRETE_DATA_IMPORTS_HOST, SpitDataImportsConcreteDataImportsHostClass)) - -typedef struct _SpitDataImportsConcreteDataImportsHost SpitDataImportsConcreteDataImportsHost; -typedef struct _SpitDataImportsConcreteDataImportsHostClass SpitDataImportsConcreteDataImportsHostClass; -enum { - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_0_PROPERTY, - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_NUM_PROPERTIES -}; -static GParamSpec* data_imports_ui_data_imports_dialog_properties[DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_NUM_PROPERTIES]; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _DataImportsUIConcreteDialogPane { - GObject parent_instance; - DataImportsUIConcreteDialogPanePrivate * priv; -}; - -struct _DataImportsUIConcreteDialogPaneClass { - GObjectClass parent_class; -}; - -struct _DataImportsUIConcreteDialogPanePrivate { - GtkBox* pane_widget; -}; - -struct _DataImportsUIStaticMessagePane { - DataImportsUIConcreteDialogPane parent_instance; - DataImportsUIStaticMessagePanePrivate * priv; -}; - -struct _DataImportsUIStaticMessagePaneClass { - DataImportsUIConcreteDialogPaneClass parent_class; -}; - -struct _DataImportsUILibrarySelectionPane { - DataImportsUIConcreteDialogPane parent_instance; - DataImportsUILibrarySelectionPanePrivate * priv; -}; - -struct _DataImportsUILibrarySelectionPaneClass { - DataImportsUIConcreteDialogPaneClass parent_class; -}; - -struct _DataImportsUILibrarySelectionPanePrivate { - SpitDataImportsPluginHost* host; - SpitDataImportsImportableLibrary* selected_library; - GFile* selected_file; - GtkButton* import_button; - GtkRadioButton* file_radio; -}; - -struct _Block11Data { - int _ref_count_; - DataImportsUILibrarySelectionPane* self; - GtkFileChooserButton* file_chooser; -}; - -struct _Block12Data { - int _ref_count_; - DataImportsUILibrarySelectionPane* self; - GtkRadioButton* button; - SpitDataImportsImportableLibrary* library; -}; - -struct _DataImportsUIProgressPane { - DataImportsUIConcreteDialogPane parent_instance; - DataImportsUIProgressPanePrivate * priv; -}; - -struct _DataImportsUIProgressPaneClass { - DataImportsUIConcreteDialogPaneClass parent_class; -}; - -struct _DataImportsUIProgressPanePrivate { - GtkLabel* message_label; - GtkLabel* progress_label; - GtkProgressBar* progress_bar; -}; - -struct _DataImportsUIDataImportsDialog { - GtkDialog parent_instance; - DataImportsUIDataImportsDialogPrivate * priv; -}; - -struct _DataImportsUIDataImportsDialogClass { - GtkDialogClass parent_class; -}; - -struct _DataImportsUIDataImportsDialogPrivate { - GtkComboBoxText* service_selector_box; - GtkBox* central_area_layouter; - GtkButton* close_cancel_button; - SpitDataImportsDialogPane* active_pane; - SpitDataImportsConcreteDataImportsHost* host; -}; - - -static gpointer data_imports_ui_concrete_dialog_pane_parent_class = NULL; -static SpitDataImportsDialogPaneIface * data_imports_ui_concrete_dialog_pane_spit_data_imports_dialog_pane_parent_iface = NULL; -static gpointer data_imports_ui_static_message_pane_parent_class = NULL; -static gpointer data_imports_ui_library_selection_pane_parent_class = NULL; -static gpointer data_imports_ui_progress_pane_parent_class = NULL; -static gpointer data_imports_ui_data_imports_dialog_parent_class = NULL; -static DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_instance; -static DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_instance = NULL; - -#define DATA_IMPORTS_UI_NO_PLUGINS_ENABLED_MESSAGE _ ("You do not have any data imports plugins enabled.\n" \ -"\n" \ -"In order to use the Import From Application functionality, you need to" \ -" have at least one data imports plugin enabled. Plugins can be enabled" \ -" in the Preferences dialog.") -GType data_imports_ui_concrete_dialog_pane_get_type (void) G_GNUC_CONST; -#define DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPanePrivate)) -DataImportsUIConcreteDialogPane* data_imports_ui_concrete_dialog_pane_new (void); -DataImportsUIConcreteDialogPane* data_imports_ui_concrete_dialog_pane_construct (GType object_type); -static GtkWidget* data_imports_ui_concrete_dialog_pane_real_get_widget (SpitDataImportsDialogPane* base); -static SpitDataImportsDialogPaneGeometryOptions data_imports_ui_concrete_dialog_pane_real_get_preferred_geometry (SpitDataImportsDialogPane* base); -static void data_imports_ui_concrete_dialog_pane_real_on_pane_installed (SpitDataImportsDialogPane* base); -static void data_imports_ui_concrete_dialog_pane_real_on_pane_uninstalled (SpitDataImportsDialogPane* base); -static void data_imports_ui_concrete_dialog_pane_finalize (GObject * obj); -GType data_imports_ui_static_message_pane_get_type (void) G_GNUC_CONST; -DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_new (const gchar* message_string); -DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_construct (GType object_type, - const gchar* message_string); -DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_new_with_pango (const gchar* msg); -DataImportsUIStaticMessagePane* data_imports_ui_static_message_pane_construct_with_pango (GType object_type, - const gchar* msg); -GType data_imports_ui_library_selection_pane_get_type (void) G_GNUC_CONST; -#define DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPanePrivate)) -DataImportsUILibrarySelectionPane* data_imports_ui_library_selection_pane_new (SpitDataImportsPluginHost* host, - const gchar* welcome_message, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1, - const gchar* file_select_label); -DataImportsUILibrarySelectionPane* data_imports_ui_library_selection_pane_construct (GType object_type, - SpitDataImportsPluginHost* host, - const gchar* welcome_message, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1, - const gchar* file_select_label); -static void data_imports_ui_library_selection_pane_on_file_selected (DataImportsUILibrarySelectionPane* self, - GFile* file); -static GtkRadioButton* data_imports_ui_library_selection_pane_create_radio_button (DataImportsUILibrarySelectionPane* self, - GtkBox* box, - GtkRadioButton* group, - SpitDataImportsImportableLibrary* library, - const gchar* label, - gint margin_left, - gint margin_right); -static Block11Data* block11_data_ref (Block11Data* _data11_); -static void block11_data_unref (void * _userdata_); -static void ___lambda23_ (Block11Data* _data11_); -static void data_imports_ui_library_selection_pane_set_import_button_sensitivity (DataImportsUILibrarySelectionPane* self); -static void ____lambda23__gtk_file_chooser_selection_changed (GtkFileChooser* _sender, - gpointer self); -static void __lambda24_ (DataImportsUILibrarySelectionPane* self); -static void data_imports_ui_library_selection_pane_on_library_selected (DataImportsUILibrarySelectionPane* self, - SpitDataImportsImportableLibrary* library); -static void ___lambda24__gtk_button_clicked (GtkButton* _sender, - gpointer self); -static Block12Data* block12_data_ref (Block12Data* _data12_); -static void block12_data_unref (void * _userdata_); -static void __lambda22_ (Block12Data* _data12_); -static void ___lambda22__gtk_toggle_button_toggled (GtkToggleButton* _sender, - gpointer self); -static void data_imports_ui_library_selection_pane_finalize (GObject * obj); -GType data_imports_ui_progress_pane_get_type (void) G_GNUC_CONST; -#define DATA_IMPORTS_UI_PROGRESS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPanePrivate)) -DataImportsUIProgressPane* data_imports_ui_progress_pane_new (const gchar* message); -DataImportsUIProgressPane* data_imports_ui_progress_pane_construct (GType object_type, - const gchar* message); -void data_imports_ui_progress_pane_update_progress (DataImportsUIProgressPane* self, - gdouble progress, - const gchar* progress_message); -void spin_event_loop (void); -static void data_imports_ui_progress_pane_finalize (GObject * obj); -GType data_imports_ui_data_imports_dialog_get_type (void) G_GNUC_CONST; -GType plugins_standard_host_interface_get_type (void) G_GNUC_CONST; -GType spit_data_imports_concrete_data_imports_host_get_type (void) G_GNUC_CONST; -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogPrivate)) -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_WIDTH 860 -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_HEIGHT 688 -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_WIDTH 1024 -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_HEIGHT 688 -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_WIDTH 600 -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_HEIGHT 510 -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_WIDTH 16 -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_HEIGHT 100 -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_CONTENT_LABEL_WIDTH 500 -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_ACTION_BUTTON_WIDTH 128 -DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_new (void); -DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_construct (GType object_type); -gint resources_use_header_bar (void); -static gboolean data_imports_ui_data_imports_dialog_on_window_close (DataImportsUIDataImportsDialog* self, - GdkEventAny* evt); -static gboolean _data_imports_ui_data_imports_dialog_on_window_close_gtk_widget_delete_event (GtkWidget* _sender, - GdkEventAny* event, - gpointer self); -SpitDataImportsService** spit_data_imports_load_services (gboolean load_all, - int* result_length1); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gchar* configuration_facade_get_last_used_dataimports_service (ConfigurationFacade* self); -static void data_imports_ui_data_imports_dialog_on_service_changed (DataImportsUIDataImportsDialog* self); -static void _data_imports_ui_data_imports_dialog_on_service_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void data_imports_ui_data_imports_dialog_on_close_cancel_clicked (DataImportsUIDataImportsDialog* self); -static void _data_imports_ui_data_imports_dialog_on_close_cancel_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void data_imports_ui_data_imports_dialog_set_standard_window_mode (DataImportsUIDataImportsDialog* self); -void data_imports_ui_data_imports_dialog_install_pane (DataImportsUIDataImportsDialog* self, - SpitDataImportsDialogPane* pane); -void data_imports_ui_data_imports_dialog_set_close_button_mode (DataImportsUIDataImportsDialog* self); -DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_get_or_create_instance (void); -void data_imports_ui_data_imports_dialog_terminate_instance (void); -static void data_imports_ui_data_imports_dialog_terminate (DataImportsUIDataImportsDialog* self); -SpitDataImportsService** spit_data_imports_load_all_services (int* result_length1); -void configuration_facade_set_last_used_dataimports_service (ConfigurationFacade* self, - const gchar* service_name); -SpitDataImportsConcreteDataImportsHost* spit_data_imports_concrete_data_imports_host_new (SpitDataImportsService* service, - DataImportsUIDataImportsDialog* dialog); -SpitDataImportsConcreteDataImportsHost* spit_data_imports_concrete_data_imports_host_construct (GType object_type, - SpitDataImportsService* service, - DataImportsUIDataImportsDialog* dialog); -static void data_imports_ui_data_imports_dialog_set_large_window_mode (DataImportsUIDataImportsDialog* self); -static void data_imports_ui_data_imports_dialog_set_colossal_window_mode (DataImportsUIDataImportsDialog* self); -static void data_imports_ui_data_imports_dialog_set_free_sizable_window_mode (DataImportsUIDataImportsDialog* self); -static void data_imports_ui_data_imports_dialog_clear_free_sizable_window_mode (DataImportsUIDataImportsDialog* self); -SpitDataImportsDialogPane* data_imports_ui_data_imports_dialog_get_active_pane (DataImportsUIDataImportsDialog* self); -void data_imports_ui_data_imports_dialog_set_cancel_button_mode (DataImportsUIDataImportsDialog* self); -void data_imports_ui_data_imports_dialog_lock_service (DataImportsUIDataImportsDialog* self); -void data_imports_ui_data_imports_dialog_unlock_service (DataImportsUIDataImportsDialog* self); -static void data_imports_ui_data_imports_dialog_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -DataImportsUIConcreteDialogPane* -data_imports_ui_concrete_dialog_pane_construct (GType object_type) -{ - DataImportsUIConcreteDialogPane * self = NULL; - GtkBox* _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = (DataImportsUIConcreteDialogPane*) g_object_new (object_type, NULL); -#line 16 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); -#line 16 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp0_); -#line 16 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 16 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->pane_widget = _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return self; -#line 396 "DataImportsUI.c" -} - - -DataImportsUIConcreteDialogPane* -data_imports_ui_concrete_dialog_pane_new (void) -{ -#line 15 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return data_imports_ui_concrete_dialog_pane_construct (DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE); -#line 405 "DataImportsUI.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return self ? g_object_ref (self) : NULL; -#line 414 "DataImportsUI.c" -} - - -static GtkWidget* -data_imports_ui_concrete_dialog_pane_real_get_widget (SpitDataImportsDialogPane* base) -{ - DataImportsUIConcreteDialogPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 19 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane); -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = self->priv->pane_widget; -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - result = _tmp1_; -#line 20 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return result; -#line 435 "DataImportsUI.c" -} - - -static SpitDataImportsDialogPaneGeometryOptions -data_imports_ui_concrete_dialog_pane_real_get_preferred_geometry (SpitDataImportsDialogPane* base) -{ - DataImportsUIConcreteDialogPane * self; - SpitDataImportsDialogPaneGeometryOptions result = 0; -#line 23 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane); -#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - result = SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 24 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return result; -#line 450 "DataImportsUI.c" -} - - -static void -data_imports_ui_concrete_dialog_pane_real_on_pane_installed (SpitDataImportsDialogPane* base) -{ - DataImportsUIConcreteDialogPane * self; -#line 27 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane); -#line 460 "DataImportsUI.c" -} - - -static void -data_imports_ui_concrete_dialog_pane_real_on_pane_uninstalled (SpitDataImportsDialogPane* base) -{ - DataImportsUIConcreteDialogPane * self; -#line 30 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane); -#line 470 "DataImportsUI.c" -} - - -static void -data_imports_ui_concrete_dialog_pane_class_init (DataImportsUIConcreteDialogPaneClass * klass) -{ -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_concrete_dialog_pane_parent_class = g_type_class_peek_parent (klass); -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_type_class_add_private (klass, sizeof (DataImportsUIConcreteDialogPanePrivate)); -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - G_OBJECT_CLASS (klass)->finalize = data_imports_ui_concrete_dialog_pane_finalize; -#line 483 "DataImportsUI.c" -} - - -static void -data_imports_ui_concrete_dialog_pane_spit_data_imports_dialog_pane_interface_init (SpitDataImportsDialogPaneIface * iface) -{ -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_concrete_dialog_pane_spit_data_imports_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - iface->get_widget = (GtkWidget* (*) (SpitDataImportsDialogPane *)) data_imports_ui_concrete_dialog_pane_real_get_widget; -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - iface->get_preferred_geometry = (SpitDataImportsDialogPaneGeometryOptions (*) (SpitDataImportsDialogPane *)) data_imports_ui_concrete_dialog_pane_real_get_preferred_geometry; -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - iface->on_pane_installed = (void (*) (SpitDataImportsDialogPane *)) data_imports_ui_concrete_dialog_pane_real_on_pane_installed; -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - iface->on_pane_uninstalled = (void (*) (SpitDataImportsDialogPane *)) data_imports_ui_concrete_dialog_pane_real_on_pane_uninstalled; -#line 500 "DataImportsUI.c" -} - - -static void -data_imports_ui_concrete_dialog_pane_instance_init (DataImportsUIConcreteDialogPane * self) -{ -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv = DATA_IMPORTS_UI_CONCRETE_DIALOG_PANE_GET_PRIVATE (self); -#line 509 "DataImportsUI.c" -} - - -static void -data_imports_ui_concrete_dialog_pane_finalize (GObject * obj) -{ - DataImportsUIConcreteDialogPane * self; -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, DataImportsUIConcreteDialogPane); -#line 13 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->pane_widget); -#line 12 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - G_OBJECT_CLASS (data_imports_ui_concrete_dialog_pane_parent_class)->finalize (obj); -#line 523 "DataImportsUI.c" -} - - -GType -data_imports_ui_concrete_dialog_pane_get_type (void) -{ - static volatile gsize data_imports_ui_concrete_dialog_pane_type_id__volatile = 0; - if (g_once_init_enter (&data_imports_ui_concrete_dialog_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DataImportsUIConcreteDialogPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_ui_concrete_dialog_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsUIConcreteDialogPane), 0, (GInstanceInitFunc) data_imports_ui_concrete_dialog_pane_instance_init, NULL }; - static const GInterfaceInfo spit_data_imports_dialog_pane_info = { (GInterfaceInitFunc) data_imports_ui_concrete_dialog_pane_spit_data_imports_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType data_imports_ui_concrete_dialog_pane_type_id; - data_imports_ui_concrete_dialog_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "DataImportsUIConcreteDialogPane", &g_define_type_info, 0); - g_type_add_interface_static (data_imports_ui_concrete_dialog_pane_type_id, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, &spit_data_imports_dialog_pane_info); - g_once_init_leave (&data_imports_ui_concrete_dialog_pane_type_id__volatile, data_imports_ui_concrete_dialog_pane_type_id); - } - return data_imports_ui_concrete_dialog_pane_type_id__volatile; -} - - -DataImportsUIStaticMessagePane* -data_imports_ui_static_message_pane_construct (GType object_type, - const gchar* message_string) -{ - DataImportsUIStaticMessagePane * self = NULL; - GtkLabel* message_label = NULL; - GtkLabel* _tmp0_; - GtkWidget* _tmp1_; - GtkBox* _tmp2_; - GtkBox* _tmp3_; -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_val_if_fail (message_string != NULL, NULL); -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = (DataImportsUIStaticMessagePane*) data_imports_ui_concrete_dialog_pane_construct (object_type); -#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = (GtkLabel*) gtk_label_new (message_string); -#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp0_); -#line 36 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - message_label = _tmp0_; -#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = spit_data_imports_dialog_pane_get_widget (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane)); -#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_box_get_type ()) ? ((GtkBox*) _tmp1_) : NULL; -#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp2_ == NULL) { -#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_tmp1_); -#line 571 "DataImportsUI.c" - } -#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp3_ = _tmp2_; -#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_box_pack_start (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (message_label, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 37 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_tmp3_); -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (message_label); -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return self; -#line 583 "DataImportsUI.c" -} - - -DataImportsUIStaticMessagePane* -data_imports_ui_static_message_pane_new (const gchar* message_string) -{ -#line 35 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return data_imports_ui_static_message_pane_construct (DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, message_string); -#line 592 "DataImportsUI.c" -} - - -DataImportsUIStaticMessagePane* -data_imports_ui_static_message_pane_construct_with_pango (GType object_type, - const gchar* msg) -{ - DataImportsUIStaticMessagePane * self = NULL; - GtkLabel* label = NULL; - GtkLabel* _tmp0_; - GtkWidget* _tmp1_; - GtkBox* _tmp2_; - GtkBox* _tmp3_; -#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_val_if_fail (msg != NULL, NULL); -#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = (DataImportsUIStaticMessagePane*) data_imports_ui_concrete_dialog_pane_construct (object_type); -#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = (GtkLabel*) gtk_label_new (NULL); -#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp0_); -#line 41 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - label = _tmp0_; -#line 42 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_label_set_markup (label, msg); -#line 43 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_label_set_line_wrap (label, TRUE); -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = spit_data_imports_dialog_pane_get_widget (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane)); -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_box_get_type ()) ? ((GtkBox*) _tmp1_) : NULL; -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp2_ == NULL) { -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_tmp1_); -#line 628 "DataImportsUI.c" - } -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp3_ = _tmp2_; -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_box_pack_start (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (label, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 45 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_tmp3_); -#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (label); -#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return self; -#line 640 "DataImportsUI.c" -} - - -DataImportsUIStaticMessagePane* -data_imports_ui_static_message_pane_new_with_pango (const gchar* msg) -{ -#line 40 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return data_imports_ui_static_message_pane_construct_with_pango (DATA_IMPORTS_UI_TYPE_STATIC_MESSAGE_PANE, msg); -#line 649 "DataImportsUI.c" -} - - -static void -data_imports_ui_static_message_pane_class_init (DataImportsUIStaticMessagePaneClass * klass) -{ -#line 34 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_static_message_pane_parent_class = g_type_class_peek_parent (klass); -#line 658 "DataImportsUI.c" -} - - -static void -data_imports_ui_static_message_pane_instance_init (DataImportsUIStaticMessagePane * self) -{ -} - - -GType -data_imports_ui_static_message_pane_get_type (void) -{ - static volatile gsize data_imports_ui_static_message_pane_type_id__volatile = 0; - if (g_once_init_enter (&data_imports_ui_static_message_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DataImportsUIStaticMessagePaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_ui_static_message_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsUIStaticMessagePane), 0, (GInstanceInitFunc) data_imports_ui_static_message_pane_instance_init, NULL }; - GType data_imports_ui_static_message_pane_type_id; - data_imports_ui_static_message_pane_type_id = g_type_register_static (DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, "DataImportsUIStaticMessagePane", &g_define_type_info, 0); - g_once_init_leave (&data_imports_ui_static_message_pane_type_id__volatile, data_imports_ui_static_message_pane_type_id); - } - return data_imports_ui_static_message_pane_type_id__volatile; -} - - -static Block11Data* -block11_data_ref (Block11Data* _data11_) -{ -#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_atomic_int_inc (&_data11_->_ref_count_); -#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return _data11_; -#line 689 "DataImportsUI.c" -} - - -static void -block11_data_unref (void * _userdata_) -{ - Block11Data* _data11_; - _data11_ = (Block11Data*) _userdata_; -#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (g_atomic_int_dec_and_test (&_data11_->_ref_count_)) { -#line 700 "DataImportsUI.c" - DataImportsUILibrarySelectionPane* self; -#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = _data11_->self; -#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_data11_->file_chooser); -#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self); -#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_slice_free (Block11Data, _data11_); -#line 710 "DataImportsUI.c" - } -} - - -static void -___lambda23_ (Block11Data* _data11_) -{ - DataImportsUILibrarySelectionPane* self; - GtkFileChooserButton* _tmp0_; - GFile* _tmp1_; - GtkRadioButton* _tmp2_; -#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = _data11_->self; -#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = _data11_->file_chooser; -#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = gtk_file_chooser_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_file_chooser_get_type (), GtkFileChooser)); -#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->selected_file); -#line 102 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->selected_file = _tmp1_; -#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp2_ = self->priv->file_radio; -#line 103 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp2_ != NULL) { -#line 736 "DataImportsUI.c" - GtkRadioButton* _tmp3_; -#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp3_ = self->priv->file_radio; -#line 104 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 742 "DataImportsUI.c" - } -#line 105 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_library_selection_pane_set_import_button_sensitivity (self); -#line 746 "DataImportsUI.c" -} - - -static void -____lambda23__gtk_file_chooser_selection_changed (GtkFileChooser* _sender, - gpointer self) -{ -#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - ___lambda23_ (self); -#line 756 "DataImportsUI.c" -} - - -static void -__lambda24_ (DataImportsUILibrarySelectionPane* self) -{ - SpitDataImportsImportableLibrary* _tmp0_; -#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = self->priv->selected_library; -#line 114 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp0_ != NULL) { -#line 768 "DataImportsUI.c" - SpitDataImportsImportableLibrary* _tmp1_; -#line 115 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = self->priv->selected_library; -#line 115 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_library_selection_pane_on_library_selected (self, _tmp1_); -#line 774 "DataImportsUI.c" - } else { - GFile* _tmp2_; -#line 116 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp2_ = self->priv->selected_file; -#line 116 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp2_ != NULL) { -#line 781 "DataImportsUI.c" - GFile* _tmp3_; -#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp3_ = self->priv->selected_file; -#line 117 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_library_selection_pane_on_file_selected (self, _tmp3_); -#line 787 "DataImportsUI.c" - } else { -#line 119 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_debug ("DataImportsUI.vala:119: LibrarySelectionPane: Library or file should b" \ -"e selected."); -#line 791 "DataImportsUI.c" - } - } -} - - -static void -___lambda24__gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 113 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - __lambda24_ ((DataImportsUILibrarySelectionPane*) self); -#line 803 "DataImportsUI.c" -} - - -DataImportsUILibrarySelectionPane* -data_imports_ui_library_selection_pane_construct (GType object_type, - SpitDataImportsPluginHost* host, - const gchar* welcome_message, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1, - const gchar* file_select_label) -{ - DataImportsUILibrarySelectionPane * self = NULL; - gboolean _tmp0_ = FALSE; - GtkBox* content_box = NULL; - GtkBox* _tmp1_; - GtkBox* _tmp2_; - GtkBox* _tmp3_; - GtkLabel* welcome_label = NULL; - GtkLabel* _tmp4_; - GtkLabel* _tmp5_; - GtkLabel* _tmp6_; - GtkLabel* _tmp7_; - GtkBox* _tmp8_; - GtkLabel* _tmp9_; - gint radio_margin_left = 0; - gint radio_margin_right = 0; - gint chooser_margin_left = 0; - gint _tmp10_; - gint chooser_margin_right = 0; - gint _tmp11_; - GtkRadioButton* lib_radio = NULL; - GtkButton* _tmp38_; - GtkButton* _tmp39_; - GtkButtonBox* button_box = NULL; - GtkButtonBox* _tmp40_; - GtkButton* _tmp41_; - GtkBox* _tmp42_; - GtkWidget* _tmp43_; - GtkBox* _tmp44_; - GtkBox* _tmp45_; - GtkBox* _tmp46_; -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (host), NULL); -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_val_if_fail (welcome_message != NULL, NULL); -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = (DataImportsUILibrarySelectionPane*) data_imports_ui_concrete_dialog_pane_construct (object_type); -#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (discovered_libraries_length1 > 0) { -#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = TRUE; -#line 855 "DataImportsUI.c" - } else { -#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = data_imports_ui_library_selection_pane_on_file_selected != NULL; -#line 859 "DataImportsUI.c" - } -#line 62 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _vala_assert (_tmp0_, "discovered_libraries.length > 0 || on_file_selected != null"); -#line 64 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->host = host; -#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); -#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp1_); -#line 66 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - content_box = _tmp1_; -#line 67 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp2_ = content_box; -#line 67 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), 30); -#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp3_ = content_box; -#line 68 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), 30); -#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp4_ = (GtkLabel*) gtk_label_new (NULL); -#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp4_); -#line 69 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - welcome_label = _tmp4_; -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp5_ = welcome_label; -#line 70 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_label_set_markup (_tmp5_, welcome_message); -#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp6_ = welcome_label; -#line 71 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_label_set_line_wrap (_tmp6_, TRUE); -#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp7_ = welcome_label; -#line 72 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START); -#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp8_ = content_box; -#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp9_ = welcome_label; -#line 73 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_box_pack_start (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 6); -#line 76 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - radio_margin_left = 20; -#line 77 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - radio_margin_right = 20; -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp10_ = radio_margin_left; -#line 78 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - chooser_margin_left = _tmp10_; -#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp11_ = radio_margin_right; -#line 79 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - chooser_margin_right = _tmp11_; -#line 81 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - lib_radio = NULL; -#line 82 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (discovered_libraries_length1 > 0) { -#line 919 "DataImportsUI.c" - gint _tmp12_; -#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp12_ = radio_margin_left; -#line 83 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - chooser_margin_left = _tmp12_ + 20; -#line 925 "DataImportsUI.c" - { - SpitDataImportsImportableLibrary** library_collection = NULL; - gint library_collection_length1 = 0; - gint _library_collection_size_ = 0; - gint library_it = 0; -#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - library_collection = discovered_libraries; -#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - library_collection_length1 = discovered_libraries_length1; -#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - for (library_it = 0; library_it < discovered_libraries_length1; library_it = library_it + 1) { -#line 937 "DataImportsUI.c" - SpitDataImportsImportableLibrary* _tmp13_; - SpitDataImportsImportableLibrary* library = NULL; -#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp13_ = _g_object_ref0 (library_collection[library_it]); -#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - library = _tmp13_; -#line 944 "DataImportsUI.c" - { - gchar* lib_radio_label = NULL; - SpitDataImportsImportableLibrary* _tmp14_; - gchar* _tmp15_; - GtkBox* _tmp16_; - GtkRadioButton* _tmp17_; - SpitDataImportsImportableLibrary* _tmp18_; - const gchar* _tmp19_; - gint _tmp20_; - gint _tmp21_; - GtkRadioButton* _tmp22_; -#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp14_ = library; -#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp15_ = spit_data_imports_importable_library_get_display_name (_tmp14_); -#line 85 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - lib_radio_label = _tmp15_; -#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp16_ = content_box; -#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp17_ = lib_radio; -#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp18_ = library; -#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp19_ = lib_radio_label; -#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp20_ = radio_margin_left; -#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp21_ = radio_margin_right; -#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp22_ = data_imports_ui_library_selection_pane_create_radio_button (self, _tmp16_, _tmp17_, _tmp18_, _tmp19_, _tmp20_, _tmp21_); -#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (lib_radio); -#line 86 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - lib_radio = _tmp22_; -#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_free0 (lib_radio_label); -#line 84 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (library); -#line 984 "DataImportsUI.c" - } - } - } -#line 91 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (file_select_label != NULL) { -#line 990 "DataImportsUI.c" - GtkBox* _tmp23_; - GtkRadioButton* _tmp24_; - gint _tmp25_; - gint _tmp26_; - GtkRadioButton* _tmp27_; - GtkRadioButton* _tmp28_; - GtkRadioButton* _tmp29_; -#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp23_ = content_box; -#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp24_ = lib_radio; -#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp25_ = radio_margin_left; -#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp26_ = radio_margin_right; -#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp27_ = data_imports_ui_library_selection_pane_create_radio_button (self, _tmp23_, _tmp24_, NULL, file_select_label, _tmp25_, _tmp26_); -#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (lib_radio); -#line 92 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - lib_radio = _tmp27_; -#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp28_ = lib_radio; -#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp29_ = _g_object_ref0 (_tmp28_); -#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->file_radio); -#line 96 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->file_radio = _tmp29_; -#line 1020 "DataImportsUI.c" - } - } -#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (file_select_label != NULL) { -#line 1025 "DataImportsUI.c" - Block11Data* _data11_; - GtkFileChooserButton* _tmp30_; - GtkFileChooserButton* _tmp31_; - GtkFileChooserButton* _tmp32_; - gint _tmp33_; - GtkFileChooserButton* _tmp34_; - gint _tmp35_; - GtkBox* _tmp36_; - GtkFileChooserButton* _tmp37_; -#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _data11_ = g_slice_new0 (Block11Data); -#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _data11_->_ref_count_ = 1; -#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _data11_->self = g_object_ref (self); -#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp30_ = (GtkFileChooserButton*) gtk_file_chooser_button_new (_ ("Database file:"), GTK_FILE_CHOOSER_ACTION_OPEN); -#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp30_); -#line 100 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _data11_->file_chooser = _tmp30_; -#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp31_ = _data11_->file_chooser; -#line 101 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_signal_connect_data (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_file_chooser_get_type (), GtkFileChooser), "selection-changed", (GCallback) ____lambda23__gtk_file_chooser_selection_changed, block11_data_ref (_data11_), (GClosureNotify) block11_data_unref, 0); -#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp32_ = _data11_->file_chooser; -#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp33_ = chooser_margin_left; -#line 107 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_widget_get_type (), GtkWidget), _tmp33_); -#line 108 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp34_ = _data11_->file_chooser; -#line 108 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp35_ = chooser_margin_right; -#line 108 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_widget_get_type (), GtkWidget), _tmp35_); -#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp36_ = content_box; -#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp37_ = _data11_->file_chooser; -#line 109 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_box_pack_start (_tmp36_, G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 6); -#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - block11_data_unref (_data11_); -#line 99 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _data11_ = NULL; -#line 1073 "DataImportsUI.c" - } -#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp38_ = (GtkButton*) gtk_button_new_with_mnemonic (_ ("_Import")); -#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp38_); -#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->import_button); -#line 112 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->import_button = _tmp38_; -#line 113 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp39_ = self->priv->import_button; -#line 113 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_signal_connect_object (_tmp39_, "clicked", (GCallback) ___lambda24__gtk_button_clicked, self, 0); -#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp40_ = (GtkButtonBox*) gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL); -#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp40_); -#line 121 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - button_box = _tmp40_; -#line 122 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_set (button_box, "layout-style", GTK_BUTTONBOX_CENTER, NULL); -#line 123 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp41_ = self->priv->import_button; -#line 123 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (button_box, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget)); -#line 124 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp42_ = content_box; -#line 124 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_box_pack_end (_tmp42_, G_TYPE_CHECK_INSTANCE_CAST (button_box, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 6); -#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp43_ = spit_data_imports_dialog_pane_get_widget (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane)); -#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp44_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp43_, gtk_box_get_type ()) ? ((GtkBox*) _tmp43_) : NULL; -#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp44_ == NULL) { -#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_tmp43_); -#line 1111 "DataImportsUI.c" - } -#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp45_ = _tmp44_; -#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp46_ = content_box; -#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_box_pack_start (_tmp45_, G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 126 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_tmp45_); -#line 128 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_library_selection_pane_set_import_button_sensitivity (self); -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (button_box); -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (lib_radio); -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (welcome_label); -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (content_box); -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return self; -#line 1133 "DataImportsUI.c" -} - - -DataImportsUILibrarySelectionPane* -data_imports_ui_library_selection_pane_new (SpitDataImportsPluginHost* host, - const gchar* welcome_message, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1, - const gchar* file_select_label) -{ -#line 56 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return data_imports_ui_library_selection_pane_construct (DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, host, welcome_message, discovered_libraries, discovered_libraries_length1, file_select_label); -#line 1146 "DataImportsUI.c" -} - - -static Block12Data* -block12_data_ref (Block12Data* _data12_) -{ -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_atomic_int_inc (&_data12_->_ref_count_); -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return _data12_; -#line 1157 "DataImportsUI.c" -} - - -static void -block12_data_unref (void * _userdata_) -{ - Block12Data* _data12_; - _data12_ = (Block12Data*) _userdata_; -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (g_atomic_int_dec_and_test (&_data12_->_ref_count_)) { -#line 1168 "DataImportsUI.c" - DataImportsUILibrarySelectionPane* self; -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = _data12_->self; -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_data12_->button); -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_data12_->library); -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self); -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_slice_free (Block12Data, _data12_); -#line 1180 "DataImportsUI.c" - } -} - - -static void -__lambda22_ (Block12Data* _data12_) -{ - DataImportsUILibrarySelectionPane* self; - GtkRadioButton* _tmp0_; - gboolean _tmp1_; - gboolean _tmp2_; -#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = _data12_->self; -#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = _data12_->button; -#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp2_ = _tmp1_; -#line 141 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp2_) { -#line 1202 "DataImportsUI.c" - SpitDataImportsImportableLibrary* _tmp3_; -#line 142 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp3_ = _g_object_ref0 (_data12_->library); -#line 142 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->selected_library); -#line 142 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->selected_library = _tmp3_; -#line 143 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_library_selection_pane_set_import_button_sensitivity (self); -#line 1212 "DataImportsUI.c" - } -} - - -static void -___lambda22__gtk_toggle_button_toggled (GtkToggleButton* _sender, - gpointer self) -{ -#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - __lambda22_ (self); -#line 1223 "DataImportsUI.c" -} - - -static GtkRadioButton* -data_imports_ui_library_selection_pane_create_radio_button (DataImportsUILibrarySelectionPane* self, - GtkBox* box, - GtkRadioButton* group, - SpitDataImportsImportableLibrary* library, - const gchar* label, - gint margin_left, - gint margin_right) -{ - GtkRadioButton* result = NULL; - Block12Data* _data12_; - SpitDataImportsImportableLibrary* _tmp0_; - GtkRadioButton* _tmp1_; - GtkRadioButton* _tmp4_; - GtkRadioButton* _tmp5_; - GtkRadioButton* _tmp6_; - GtkRadioButton* _tmp7_; - GtkRadioButton* _tmp8_; - GtkRadioButton* _tmp9_; -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_val_if_fail (DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE (self), NULL); -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_val_if_fail (GTK_IS_BOX (box), NULL); -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_val_if_fail ((group == NULL) || GTK_IS_RADIO_BUTTON (group), NULL); -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_val_if_fail ((library == NULL) || SPIT_DATA_IMPORTS_IS_IMPORTABLE_LIBRARY (library), NULL); -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_val_if_fail (label != NULL, NULL); -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _data12_ = g_slice_new0 (Block12Data); -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _data12_->_ref_count_ = 1; -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _data12_->self = g_object_ref (self); -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = _g_object_ref0 (library); -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_data12_->library); -#line 131 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _data12_->library = _tmp0_; -#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = (GtkRadioButton*) gtk_radio_button_new_with_label_from_widget (group, label); -#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp1_); -#line 135 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _data12_->button = _tmp1_; -#line 136 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (group == NULL) { -#line 1276 "DataImportsUI.c" - GtkRadioButton* _tmp2_; - SpitDataImportsImportableLibrary* _tmp3_; -#line 137 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp2_ = _data12_->button; -#line 137 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 138 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp3_ = _g_object_ref0 (_data12_->library); -#line 138 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->selected_library); -#line 138 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->selected_library = _tmp3_; -#line 1289 "DataImportsUI.c" - } -#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp4_ = _data12_->button; -#line 140 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_signal_connect_data (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_toggle_button_get_type (), GtkToggleButton), "toggled", (GCallback) ___lambda22__gtk_toggle_button_toggled, block12_data_ref (_data12_), (GClosureNotify) block12_data_unref, 0); -#line 147 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp5_ = _data12_->button; -#line 147 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), margin_left); -#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp6_ = _data12_->button; -#line 148 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), margin_right); -#line 149 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp7_ = _data12_->button; -#line 149 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_box_pack_start (box, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 6); -#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp8_ = _data12_->button; -#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp9_ = _g_object_ref0 (_tmp8_); -#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - result = _tmp9_; -#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - block12_data_unref (_data12_); -#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _data12_ = NULL; -#line 150 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return result; -#line 1319 "DataImportsUI.c" -} - - -static void -data_imports_ui_library_selection_pane_set_import_button_sensitivity (DataImportsUILibrarySelectionPane* self) -{ - gboolean _tmp0_ = FALSE; - SpitDataImportsImportableLibrary* _tmp1_; - GtkButton* _tmp3_; -#line 153 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE (self)); -#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = self->priv->selected_library; -#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp1_ != NULL) { -#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = TRUE; -#line 1337 "DataImportsUI.c" - } else { - GFile* _tmp2_; -#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp2_ = self->priv->selected_file; -#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = _tmp2_ != NULL; -#line 1344 "DataImportsUI.c" - } -#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp3_ = self->priv->import_button; -#line 154 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), _tmp0_); -#line 1350 "DataImportsUI.c" -} - - -static void -data_imports_ui_library_selection_pane_on_library_selected (DataImportsUILibrarySelectionPane* self, - SpitDataImportsImportableLibrary* library) -{ - SpitDataImportsPluginHost* _tmp0_; - SpitDataImportsDataImporter* _tmp1_; - SpitDataImportsDataImporter* _tmp2_; -#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE (self)); -#line 157 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_LIBRARY (library)); -#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = self->priv->host; -#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = spit_data_imports_plugin_host_get_data_importer (_tmp0_); -#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp2_ = _tmp1_; -#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - spit_data_imports_data_importer_on_library_selected (_tmp2_, library); -#line 158 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_tmp2_); -#line 1375 "DataImportsUI.c" -} - - -static void -data_imports_ui_library_selection_pane_on_file_selected (DataImportsUILibrarySelectionPane* self, - GFile* file) -{ - SpitDataImportsPluginHost* _tmp0_; - SpitDataImportsDataImporter* _tmp1_; - SpitDataImportsDataImporter* _tmp2_; -#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (DATA_IMPORTS_UI_IS_LIBRARY_SELECTION_PANE (self)); -#line 161 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = self->priv->host; -#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = spit_data_imports_plugin_host_get_data_importer (_tmp0_); -#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp2_ = _tmp1_; -#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - spit_data_imports_data_importer_on_file_selected (_tmp2_, file); -#line 162 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_tmp2_); -#line 1400 "DataImportsUI.c" -} - - -static void -data_imports_ui_library_selection_pane_class_init (DataImportsUILibrarySelectionPaneClass * klass) -{ -#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_library_selection_pane_parent_class = g_type_class_peek_parent (klass); -#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_type_class_add_private (klass, sizeof (DataImportsUILibrarySelectionPanePrivate)); -#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - G_OBJECT_CLASS (klass)->finalize = data_imports_ui_library_selection_pane_finalize; -#line 1413 "DataImportsUI.c" -} - - -static void -data_imports_ui_library_selection_pane_instance_init (DataImportsUILibrarySelectionPane * self) -{ -#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv = DATA_IMPORTS_UI_LIBRARY_SELECTION_PANE_GET_PRIVATE (self); -#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->selected_library = NULL; -#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->selected_file = NULL; -#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->file_radio = NULL; -#line 1428 "DataImportsUI.c" -} - - -static void -data_imports_ui_library_selection_pane_finalize (GObject * obj) -{ - DataImportsUILibrarySelectionPane * self; -#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_UI_TYPE_LIBRARY_SELECTION_PANE, DataImportsUILibrarySelectionPane); -#line 51 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->selected_library); -#line 52 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->selected_file); -#line 53 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->import_button); -#line 54 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->file_radio); -#line 49 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - G_OBJECT_CLASS (data_imports_ui_library_selection_pane_parent_class)->finalize (obj); -#line 1448 "DataImportsUI.c" -} - - -GType -data_imports_ui_library_selection_pane_get_type (void) -{ - static volatile gsize data_imports_ui_library_selection_pane_type_id__volatile = 0; - if (g_once_init_enter (&data_imports_ui_library_selection_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DataImportsUILibrarySelectionPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_ui_library_selection_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsUILibrarySelectionPane), 0, (GInstanceInitFunc) data_imports_ui_library_selection_pane_instance_init, NULL }; - GType data_imports_ui_library_selection_pane_type_id; - data_imports_ui_library_selection_pane_type_id = g_type_register_static (DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, "DataImportsUILibrarySelectionPane", &g_define_type_info, 0); - g_once_init_leave (&data_imports_ui_library_selection_pane_type_id__volatile, data_imports_ui_library_selection_pane_type_id); - } - return data_imports_ui_library_selection_pane_type_id__volatile; -} - - -DataImportsUIProgressPane* -data_imports_ui_progress_pane_construct (GType object_type, - const gchar* message) -{ - DataImportsUIProgressPane * self = NULL; - GtkBox* content_box = NULL; - GtkBox* _tmp0_; - GtkLabel* _tmp1_; - GtkLabel* _tmp2_; - GtkProgressBar* _tmp3_; - GtkProgressBar* _tmp4_; - GtkLabel* _tmp5_; - GtkLabel* _tmp6_; - GtkWidget* _tmp7_; - GtkContainer* _tmp8_; - GtkContainer* _tmp9_; -#line 171 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_val_if_fail (message != NULL, NULL); -#line 171 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = (DataImportsUIProgressPane*) data_imports_ui_concrete_dialog_pane_construct (object_type); -#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); -#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp0_); -#line 172 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - content_box = _tmp0_; -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = (GtkLabel*) gtk_label_new (message); -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp1_); -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->message_label); -#line 173 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->message_label = _tmp1_; -#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp2_ = self->priv->message_label; -#line 174 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_box_pack_start (content_box, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 6); -#line 175 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp3_ = (GtkProgressBar*) gtk_progress_bar_new (); -#line 175 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp3_); -#line 175 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->progress_bar); -#line 175 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->progress_bar = _tmp3_; -#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp4_ = self->priv->progress_bar; -#line 176 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_box_pack_start (content_box, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), FALSE, TRUE, (guint) 6); -#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp5_ = (GtkLabel*) gtk_label_new (""); -#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp5_); -#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->progress_label); -#line 177 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->progress_label = _tmp5_; -#line 178 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp6_ = self->priv->progress_label; -#line 178 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_box_pack_start (content_box, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), FALSE, TRUE, (guint) 6); -#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp7_ = spit_data_imports_dialog_pane_get_widget (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane)); -#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, gtk_container_get_type ()) ? ((GtkContainer*) _tmp7_) : NULL; -#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp8_ == NULL) { -#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_tmp7_); -#line 1536 "DataImportsUI.c" - } -#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp9_ = _tmp8_; -#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_container_add (_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (content_box, gtk_widget_get_type (), GtkWidget)); -#line 180 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_tmp9_); -#line 171 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (content_box); -#line 171 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return self; -#line 1548 "DataImportsUI.c" -} - - -DataImportsUIProgressPane* -data_imports_ui_progress_pane_new (const gchar* message) -{ -#line 171 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return data_imports_ui_progress_pane_construct (DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, message); -#line 1557 "DataImportsUI.c" -} - - -void -data_imports_ui_progress_pane_update_progress (DataImportsUIProgressPane* self, - gdouble progress, - const gchar* progress_message) -{ - GtkProgressBar* _tmp0_; -#line 183 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (DATA_IMPORTS_UI_IS_PROGRESS_PANE (self)); -#line 184 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = self->priv->progress_bar; -#line 184 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_progress_bar_set_fraction (_tmp0_, progress); -#line 185 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (progress_message != NULL) { -#line 1575 "DataImportsUI.c" - GtkLabel* _tmp1_; -#line 186 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = self->priv->progress_label; -#line 186 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_label_set_label (_tmp1_, progress_message); -#line 1581 "DataImportsUI.c" - } -#line 187 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - spin_event_loop (); -#line 1585 "DataImportsUI.c" -} - - -static void -data_imports_ui_progress_pane_class_init (DataImportsUIProgressPaneClass * klass) -{ -#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_progress_pane_parent_class = g_type_class_peek_parent (klass); -#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_type_class_add_private (klass, sizeof (DataImportsUIProgressPanePrivate)); -#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - G_OBJECT_CLASS (klass)->finalize = data_imports_ui_progress_pane_finalize; -#line 1598 "DataImportsUI.c" -} - - -static void -data_imports_ui_progress_pane_instance_init (DataImportsUIProgressPane * self) -{ -#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv = DATA_IMPORTS_UI_PROGRESS_PANE_GET_PRIVATE (self); -#line 1607 "DataImportsUI.c" -} - - -static void -data_imports_ui_progress_pane_finalize (GObject * obj) -{ - DataImportsUIProgressPane * self; -#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_UI_TYPE_PROGRESS_PANE, DataImportsUIProgressPane); -#line 167 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->message_label); -#line 168 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->progress_label); -#line 169 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->progress_bar); -#line 166 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - G_OBJECT_CLASS (data_imports_ui_progress_pane_parent_class)->finalize (obj); -#line 1625 "DataImportsUI.c" -} - - -GType -data_imports_ui_progress_pane_get_type (void) -{ - static volatile gsize data_imports_ui_progress_pane_type_id__volatile = 0; - if (g_once_init_enter (&data_imports_ui_progress_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DataImportsUIProgressPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_ui_progress_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsUIProgressPane), 0, (GInstanceInitFunc) data_imports_ui_progress_pane_instance_init, NULL }; - GType data_imports_ui_progress_pane_type_id; - data_imports_ui_progress_pane_type_id = g_type_register_static (DATA_IMPORTS_UI_TYPE_CONCRETE_DIALOG_PANE, "DataImportsUIProgressPane", &g_define_type_info, 0); - g_once_init_leave (&data_imports_ui_progress_pane_type_id__volatile, data_imports_ui_progress_pane_type_id); - } - return data_imports_ui_progress_pane_type_id__volatile; -} - - -static gboolean -_data_imports_ui_data_imports_dialog_on_window_close_gtk_widget_delete_event (GtkWidget* _sender, - GdkEventAny* event, - gpointer self) -{ - gboolean result; - result = data_imports_ui_data_imports_dialog_on_window_close ((DataImportsUIDataImportsDialog*) self, event); -#line 217 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return result; -#line 1652 "DataImportsUI.c" -} - - -static void -_data_imports_ui_data_imports_dialog_on_service_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 250 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_on_service_changed ((DataImportsUIDataImportsDialog*) self); -#line 1662 "DataImportsUI.c" -} - - -static void -_data_imports_ui_data_imports_dialog_on_close_cancel_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 305 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_on_close_cancel_clicked ((DataImportsUIDataImportsDialog*) self); -#line 1672 "DataImportsUI.c" -} - - -DataImportsUIDataImportsDialog* -data_imports_ui_data_imports_dialog_construct (GType object_type) -{ - DataImportsUIDataImportsDialog * self = NULL; - gboolean use_header = FALSE; - gboolean _tmp0_; - gchar* title = NULL; - gchar* _tmp2_; - gchar* label = NULL; - gchar* _tmp3_; - const gchar* _tmp4_; - SpitDataImportsService** loaded_services = NULL; - gint _tmp5_; - SpitDataImportsService** _tmp6_; - gint loaded_services_length1; - gint _loaded_services_size_; - SpitDataImportsService** _tmp7_; - gint _tmp7__length1; - GtkBox* _tmp62_; - GtkBox* _tmp63_; - GtkBox* _tmp64_; - gboolean _tmp65_; - GtkButton* _tmp75_; - SpitDataImportsService** _tmp76_; - gint _tmp76__length1; -#line 211 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - use_header = resources_use_header_bar () == 1; -#line 212 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = (DataImportsUIDataImportsDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL); -#line 213 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = use_header; -#line 213 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp0_) { -#line 1709 "DataImportsUI.c" - GtkWidget* _tmp1_; -#line 214 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = gtk_dialog_get_header_bar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 214 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_header_bar_set_show_close_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_header_bar_get_type (), GtkHeaderBar), FALSE); -#line 1715 "DataImportsUI.c" - } -#line 216 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE); -#line 217 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "delete-event", (GCallback) _data_imports_ui_data_imports_dialog_on_window_close_gtk_widget_delete_event, self, 0); -#line 219 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp2_ = g_strdup (_ ("Import From Application")); -#line 219 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - title = _tmp2_; -#line 220 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp3_ = g_strdup (_ ("Import media _from:")); -#line 220 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - label = _tmp3_; -#line 222 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp4_ = title; -#line 222 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp4_); -#line 224 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp6_ = spit_data_imports_load_services (FALSE, &_tmp5_); -#line 224 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - loaded_services = _tmp6_; -#line 224 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - loaded_services_length1 = _tmp5_; -#line 224 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _loaded_services_size_ = loaded_services_length1; -#line 226 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp7_ = loaded_services; -#line 226 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp7__length1 = loaded_services_length1; -#line 226 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp7__length1 > 0) { -#line 1747 "DataImportsUI.c" - GtkComboBoxText* _tmp8_; - GtkComboBoxText* _tmp9_; - gchar* last_used_service = NULL; - ConfigFacade* _tmp10_; - ConfigFacade* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gint ticker = 0; - gint last_used_index = 0; - SpitDataImportsService** _tmp14_; - gint _tmp14__length1; - gint _tmp28_; - GtkComboBoxText* _tmp32_; - gboolean _tmp33_; -#line 229 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp8_ = (GtkComboBoxText*) gtk_combo_box_text_new (); -#line 229 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp8_); -#line 229 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->service_selector_box); -#line 229 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->service_selector_box = _tmp8_; -#line 230 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp9_ = self->priv->service_selector_box; -#line 230 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 233 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp10_ = config_facade_get_instance (); -#line 233 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp11_ = _tmp10_; -#line 233 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp12_ = configuration_facade_get_last_used_dataimports_service (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 233 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp13_ = _tmp12_; -#line 233 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_tmp11_); -#line 233 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - last_used_service = _tmp13_; -#line 235 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - ticker = 0; -#line 236 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - last_used_index = -1; -#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp14_ = loaded_services; -#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp14__length1 = loaded_services_length1; -#line 1794 "DataImportsUI.c" - { - SpitDataImportsService** service_collection = NULL; - gint service_collection_length1 = 0; - gint _service_collection_size_ = 0; - gint service_it = 0; -#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - service_collection = _tmp14_; -#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - service_collection_length1 = _tmp14__length1; -#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - for (service_it = 0; service_it < _tmp14__length1; service_it = service_it + 1) { -#line 1806 "DataImportsUI.c" - SpitDataImportsService* _tmp15_; - SpitDataImportsService* service = NULL; -#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp15_ = _g_object_ref0 (service_collection[service_it]); -#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - service = _tmp15_; -#line 1813 "DataImportsUI.c" - { - gchar* curr_service_id = NULL; - SpitDataImportsService* _tmp16_; - const gchar* _tmp17_; - gchar* _tmp18_; - gboolean _tmp19_ = FALSE; - const gchar* _tmp20_; - GtkComboBoxText* _tmp24_; - SpitDataImportsService* _tmp25_; - const gchar* _tmp26_; - gint _tmp27_; -#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp16_ = service; -#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp17_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp18_ = g_strdup (_tmp17_); -#line 238 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - curr_service_id = _tmp18_; -#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp20_ = last_used_service; -#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp20_ != NULL) { -#line 1837 "DataImportsUI.c" - const gchar* _tmp21_; - const gchar* _tmp22_; -#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp21_ = last_used_service; -#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp22_ = curr_service_id; -#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp19_ = g_strcmp0 (_tmp21_, _tmp22_) == 0; -#line 1846 "DataImportsUI.c" - } else { -#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp19_ = FALSE; -#line 1850 "DataImportsUI.c" - } -#line 239 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp19_) { -#line 1854 "DataImportsUI.c" - gint _tmp23_; -#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp23_ = ticker; -#line 240 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - last_used_index = _tmp23_; -#line 1860 "DataImportsUI.c" - } -#line 242 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp24_ = self->priv->service_selector_box; -#line 242 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp25_ = service; -#line 242 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp26_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 242 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_combo_box_text_append_text (_tmp24_, _tmp26_); -#line 243 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp27_ = ticker; -#line 243 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - ticker = _tmp27_ + 1; -#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_free0 (curr_service_id); -#line 237 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (service); -#line 1878 "DataImportsUI.c" - } - } - } -#line 245 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp28_ = last_used_index; -#line 245 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp28_ >= 0) { -#line 1886 "DataImportsUI.c" - GtkComboBoxText* _tmp29_; - gint _tmp30_; -#line 246 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp29_ = self->priv->service_selector_box; -#line 246 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp30_ = last_used_index; -#line 246 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_combo_box_get_type (), GtkComboBox), _tmp30_); -#line 1895 "DataImportsUI.c" - } else { - GtkComboBoxText* _tmp31_; -#line 248 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp31_ = self->priv->service_selector_box; -#line 248 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 1902 "DataImportsUI.c" - } -#line 250 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp32_ = self->priv->service_selector_box; -#line 250 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _data_imports_ui_data_imports_dialog_on_service_changed_gtk_combo_box_changed, self, 0); -#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp33_ = use_header; -#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (!_tmp33_) { -#line 1912 "DataImportsUI.c" - GtkLabel* service_selector_box_label = NULL; - const gchar* _tmp34_; - GtkLabel* _tmp35_; - GtkLabel* _tmp36_; - GtkComboBoxText* _tmp37_; - GtkLabel* _tmp38_; - GtkLabel* _tmp39_; - GtkComboBoxText* _tmp40_; - GtkComboBoxText* _tmp41_; - GtkComboBoxText* _tmp42_; - GtkComboBoxText* _tmp43_; - GtkBox* service_selector_layouter = NULL; - GtkBox* _tmp44_; - GtkBox* _tmp45_; - GtkBox* _tmp46_; - GtkLabel* _tmp47_; - GtkBox* _tmp48_; - GtkComboBoxText* _tmp49_; - GtkBox* service_area_layouter = NULL; - GtkBox* _tmp50_; - GtkBox* _tmp51_; - GtkBox* _tmp52_; - GtkSeparator* service_central_separator = NULL; - GtkSeparator* _tmp53_; - GtkBox* _tmp54_; - GtkSeparator* _tmp55_; - GtkBox* _tmp56_; - GtkBox* _tmp57_; - GtkBox* _tmp58_; - GtkBox* _tmp59_; - GtkBox* _tmp60_; - GtkBox* _tmp61_; -#line 254 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp34_ = label; -#line 254 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp35_ = (GtkLabel*) gtk_label_new_with_mnemonic (_tmp34_); -#line 254 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp35_); -#line 254 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - service_selector_box_label = _tmp35_; -#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp36_ = service_selector_box_label; -#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp37_ = self->priv->service_selector_box; -#line 255 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_label_set_mnemonic_widget (_tmp36_, G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget)); -#line 256 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp38_ = service_selector_box_label; -#line 256 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START); -#line 257 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp39_ = service_selector_box_label; -#line 257 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 263 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp40_ = self->priv->service_selector_box; -#line 263 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_END); -#line 264 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp41_ = self->priv->service_selector_box; -#line 264 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp42_ = self->priv->service_selector_box; -#line 265 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 266 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp43_ = self->priv->service_selector_box; -#line 266 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 268 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp44_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); -#line 268 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp44_); -#line 268 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - service_selector_layouter = _tmp44_; -#line 269 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp45_ = service_selector_layouter; -#line 269 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_container_get_type (), GtkContainer), (guint) 12); -#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp46_ = service_selector_layouter; -#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp47_ = service_selector_box_label; -#line 270 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_widget_get_type (), GtkWidget)); -#line 271 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp48_ = service_selector_layouter; -#line 271 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp49_ = self->priv->service_selector_box; -#line 271 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_box_pack_start (_tmp48_, G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 275 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp50_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 275 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp50_); -#line 275 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - service_area_layouter = _tmp50_; -#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp51_ = service_area_layouter; -#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp52_ = service_selector_layouter; -#line 276 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_box_pack_start (_tmp51_, G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp53_ = (GtkSeparator*) gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); -#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp53_); -#line 277 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - service_central_separator = _tmp53_; -#line 278 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp54_ = service_area_layouter; -#line 278 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp55_ = service_central_separator; -#line 278 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, gtk_widget_get_type (), GtkWidget)); -#line 279 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp56_ = service_area_layouter; -#line 279 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_FILL); -#line 280 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp57_ = service_area_layouter; -#line 280 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START); -#line 281 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp58_ = service_area_layouter; -#line 281 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 282 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp59_ = service_area_layouter; -#line 282 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 284 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp60_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 284 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp61_ = service_area_layouter; -#line 284 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_box_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, gtk_box_get_type (), GtkBox), G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (service_central_separator); -#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (service_area_layouter); -#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (service_selector_layouter); -#line 252 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (service_selector_box_label); -#line 2059 "DataImportsUI.c" - } -#line 226 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_free0 (last_used_service); -#line 2063 "DataImportsUI.c" - } -#line 289 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp62_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 289 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp62_); -#line 289 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->central_area_layouter); -#line 289 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->central_area_layouter = _tmp62_; -#line 290 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp63_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 290 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp64_ = self->priv->central_area_layouter; -#line 290 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_box_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, gtk_box_get_type (), GtkBox), G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 293 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp65_ = use_header; -#line 293 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp65_) { -#line 2083 "DataImportsUI.c" - GtkButton* _tmp66_; - GtkButton* _tmp67_; - GtkWidget* _tmp68_; - GtkButton* _tmp69_; - GtkComboBoxText* _tmp70_; -#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp66_ = (GtkButton*) gtk_button_new_with_mnemonic ("_Cancel"); -#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp66_); -#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->close_cancel_button); -#line 294 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->close_cancel_button = _tmp66_; -#line 295 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp67_ = self->priv->close_cancel_button; -#line 295 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_can_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 296 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp68_ = gtk_dialog_get_header_bar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 296 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp69_ = self->priv->close_cancel_button; -#line 296 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_header_bar_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, gtk_header_bar_get_type (), GtkHeaderBar), G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, gtk_widget_get_type (), GtkWidget)); -#line 297 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp70_ = self->priv->service_selector_box; -#line 297 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp70_ != NULL) { -#line 2111 "DataImportsUI.c" - GtkWidget* _tmp71_; - GtkComboBoxText* _tmp72_; -#line 298 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp71_ = gtk_dialog_get_header_bar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 298 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp72_ = self->priv->service_selector_box; -#line 298 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_header_bar_pack_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, gtk_header_bar_get_type (), GtkHeaderBar), G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, gtk_widget_get_type (), GtkWidget)); -#line 2120 "DataImportsUI.c" - } - } else { - GtkWidget* _tmp73_; - GtkButton* _tmp74_; -#line 302 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), _ ("_Cancel"), (gint) GTK_RESPONSE_CANCEL); -#line 303 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp73_ = gtk_dialog_get_widget_for_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_CANCEL); -#line 303 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp74_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp73_, gtk_button_get_type ()) ? ((GtkButton*) _tmp73_) : NULL); -#line 303 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->close_cancel_button); -#line 303 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->close_cancel_button = _tmp74_; -#line 2135 "DataImportsUI.c" - } -#line 305 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp75_ = self->priv->close_cancel_button; -#line 305 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_signal_connect_object (_tmp75_, "clicked", (GCallback) _data_imports_ui_data_imports_dialog_on_close_cancel_clicked_gtk_button_clicked, self, 0); -#line 307 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_set_standard_window_mode (self); -#line 309 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp76_ = loaded_services; -#line 309 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp76__length1 = loaded_services_length1; -#line 309 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp76__length1 > 0) { -#line 311 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_on_service_changed (self); -#line 2151 "DataImportsUI.c" - } else { - DataImportsUIStaticMessagePane* _tmp77_; - DataImportsUIStaticMessagePane* _tmp78_; -#line 314 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp77_ = data_imports_ui_static_message_pane_new_with_pango (DATA_IMPORTS_UI_NO_PLUGINS_ENABLED_MESSAGE); -#line 314 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp78_ = _tmp77_; -#line 314 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_install_pane (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane)); -#line 314 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_tmp78_); -#line 315 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_set_close_button_mode (self); -#line 2165 "DataImportsUI.c" - } -#line 318 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - loaded_services = (_vala_array_free (loaded_services, loaded_services_length1, (GDestroyNotify) g_object_unref), NULL); -#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_free0 (label); -#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_free0 (title); -#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return self; -#line 2177 "DataImportsUI.c" -} - - -DataImportsUIDataImportsDialog* -data_imports_ui_data_imports_dialog_new (void) -{ -#line 210 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return data_imports_ui_data_imports_dialog_construct (DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG); -#line 2186 "DataImportsUI.c" -} - - -DataImportsUIDataImportsDialog* -data_imports_ui_data_imports_dialog_get_or_create_instance (void) -{ - DataImportsUIDataImportsDialog* result = NULL; - DataImportsUIDataImportsDialog* _tmp0_; - DataImportsUIDataImportsDialog* _tmp2_; - DataImportsUIDataImportsDialog* _tmp3_; -#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = data_imports_ui_data_imports_dialog_instance; -#line 322 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp0_ == NULL) { -#line 2201 "DataImportsUI.c" - DataImportsUIDataImportsDialog* _tmp1_; -#line 323 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = data_imports_ui_data_imports_dialog_new (); -#line 323 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_object_ref_sink (_tmp1_); -#line 323 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (data_imports_ui_data_imports_dialog_instance); -#line 323 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_instance = _tmp1_; -#line 2211 "DataImportsUI.c" - } -#line 325 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp2_ = data_imports_ui_data_imports_dialog_instance; -#line 325 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 325 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - result = _tmp3_; -#line 325 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return result; -#line 2221 "DataImportsUI.c" -} - - -void -data_imports_ui_data_imports_dialog_terminate_instance (void) -{ - DataImportsUIDataImportsDialog* _tmp0_; -#line 329 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = data_imports_ui_data_imports_dialog_instance; -#line 329 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp0_ != NULL) { -#line 2233 "DataImportsUI.c" - DataImportsUIDataImportsDialog* _tmp1_; -#line 330 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = data_imports_ui_data_imports_dialog_instance; -#line 330 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_terminate (_tmp1_); -#line 2239 "DataImportsUI.c" - } -#line 332 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (data_imports_ui_data_imports_dialog_instance); -#line 332 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_instance = NULL; -#line 2245 "DataImportsUI.c" -} - - -static gboolean -data_imports_ui_data_imports_dialog_on_window_close (DataImportsUIDataImportsDialog* self, - GdkEventAny* evt) -{ - gboolean result = FALSE; -#line 335 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_val_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self), FALSE); -#line 335 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_val_if_fail (evt != NULL, FALSE); -#line 336 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_debug ("DataImportsUI.vala:336: DataImportsDialog: on_window_close( ): invoked" \ -"."); -#line 337 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_terminate (self); -#line 339 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - result = TRUE; -#line 339 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return result; -#line 2266 "DataImportsUI.c" -} - - -static void -data_imports_ui_data_imports_dialog_on_service_changed (DataImportsUIDataImportsDialog* self) -{ - gchar* service_name = NULL; - GtkComboBoxText* _tmp0_; - gchar* _tmp1_; - SpitDataImportsService* selected_service = NULL; - SpitDataImportsService** services = NULL; - gint _tmp2_; - SpitDataImportsService** _tmp3_; - gint services_length1; - gint _services_size_; - SpitDataImportsService** _tmp4_; - gint _tmp4__length1; - SpitDataImportsService* _tmp11_; - ConfigFacade* _tmp12_; - ConfigFacade* _tmp13_; - SpitDataImportsService* _tmp14_; - const gchar* _tmp15_; - SpitDataImportsService* _tmp16_; - SpitDataImportsConcreteDataImportsHost* _tmp17_; - SpitDataImportsConcreteDataImportsHost* _tmp18_; -#line 342 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self)); -#line 343 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_debug ("DataImportsUI.vala:343: DataImportsDialog: on_service_changed invoked."); -#line 344 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = self->priv->service_selector_box; -#line 344 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = gtk_combo_box_text_get_active_text (_tmp0_); -#line 344 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - service_name = _tmp1_; -#line 346 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - selected_service = NULL; -#line 347 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp3_ = spit_data_imports_load_all_services (&_tmp2_); -#line 347 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - services = _tmp3_; -#line 347 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - services_length1 = _tmp2_; -#line 347 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _services_size_ = services_length1; -#line 348 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp4_ = services; -#line 348 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp4__length1 = services_length1; -#line 2316 "DataImportsUI.c" - { - SpitDataImportsService** service_collection = NULL; - gint service_collection_length1 = 0; - gint _service_collection_size_ = 0; - gint service_it = 0; -#line 348 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - service_collection = _tmp4_; -#line 348 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - service_collection_length1 = _tmp4__length1; -#line 348 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - for (service_it = 0; service_it < _tmp4__length1; service_it = service_it + 1) { -#line 2328 "DataImportsUI.c" - SpitDataImportsService* _tmp5_; - SpitDataImportsService* service = NULL; -#line 348 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp5_ = _g_object_ref0 (service_collection[service_it]); -#line 348 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - service = _tmp5_; -#line 2335 "DataImportsUI.c" - { - SpitDataImportsService* _tmp6_; - const gchar* _tmp7_; - const gchar* _tmp8_; -#line 349 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp6_ = service; -#line 349 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp7_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 349 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp8_ = service_name; -#line 349 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (g_strcmp0 (_tmp7_, _tmp8_) == 0) { -#line 2348 "DataImportsUI.c" - SpitDataImportsService* _tmp9_; - SpitDataImportsService* _tmp10_; -#line 350 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp9_ = service; -#line 350 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp10_ = _g_object_ref0 (_tmp9_); -#line 350 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (selected_service); -#line 350 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - selected_service = _tmp10_; -#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (service); -#line 351 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - break; -#line 2363 "DataImportsUI.c" - } -#line 348 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (service); -#line 2367 "DataImportsUI.c" - } - } - } -#line 354 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp11_ = selected_service; -#line 354 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _vala_assert (_tmp11_ != NULL, "selected_service != null"); -#line 356 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp12_ = config_facade_get_instance (); -#line 356 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp13_ = _tmp12_; -#line 356 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp14_ = selected_service; -#line 356 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp15_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 356 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - configuration_facade_set_last_used_dataimports_service (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp15_); -#line 356 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_tmp13_); -#line 358 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp16_ = selected_service; -#line 358 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp17_ = spit_data_imports_concrete_data_imports_host_new (_tmp16_, self); -#line 358 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->host); -#line 358 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->host = _tmp17_; -#line 359 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp18_ = self->priv->host; -#line 359 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - spit_data_imports_plugin_host_start_importing (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 342 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_object_unref), NULL); -#line 342 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (selected_service); -#line 342 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_free0 (service_name); -#line 2405 "DataImportsUI.c" -} - - -static void -data_imports_ui_data_imports_dialog_on_close_cancel_clicked (DataImportsUIDataImportsDialog* self) -{ -#line 362 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self)); -#line 363 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_debug ("DataImportsUI.vala:363: DataImportsDialog: on_close_cancel_clicked( ):" \ -" invoked."); -#line 365 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_terminate (self); -#line 2418 "DataImportsUI.c" -} - - -static void -data_imports_ui_data_imports_dialog_terminate (DataImportsUIDataImportsDialog* self) -{ - SpitDataImportsConcreteDataImportsHost* _tmp0_; -#line 368 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self)); -#line 369 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_debug ("DataImportsUI.vala:369: DataImportsDialog: terminate( ): invoked."); -#line 371 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = self->priv->host; -#line 371 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp0_ != NULL) { -#line 2434 "DataImportsUI.c" - SpitDataImportsConcreteDataImportsHost* _tmp1_; -#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = self->priv->host; -#line 372 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - spit_data_imports_plugin_host_stop_importing (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)); -#line 373 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->host); -#line 373 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->host = NULL; -#line 2444 "DataImportsUI.c" - } -#line 376 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 377 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (data_imports_ui_data_imports_dialog_instance); -#line 378 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_instance = NULL; -#line 2454 "DataImportsUI.c" -} - - -static void -data_imports_ui_data_imports_dialog_set_large_window_mode (DataImportsUIDataImportsDialog* self) -{ - GtkBox* _tmp0_; -#line 381 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self)); -#line 382 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_HEIGHT); -#line 383 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = self->priv->central_area_layouter; -#line 383 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_WIDTH - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_LARGE_WINDOW_HEIGHT - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_HEIGHT); -#line 385 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE); -#line 2472 "DataImportsUI.c" -} - - -static void -data_imports_ui_data_imports_dialog_set_colossal_window_mode (DataImportsUIDataImportsDialog* self) -{ - GtkBox* _tmp0_; -#line 388 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self)); -#line 389 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_HEIGHT); -#line 390 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = self->priv->central_area_layouter; -#line 390 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_WIDTH - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_COLOSSAL_WINDOW_HEIGHT - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_HEIGHT); -#line 392 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE); -#line 2490 "DataImportsUI.c" -} - - -static void -data_imports_ui_data_imports_dialog_set_standard_window_mode (DataImportsUIDataImportsDialog* self) -{ - GtkBox* _tmp0_; -#line 395 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self)); -#line 396 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_HEIGHT); -#line 397 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = self->priv->central_area_layouter; -#line 397 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_WIDTH - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_WIDTH, DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_STANDARD_WINDOW_HEIGHT - DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_BORDER_REGION_HEIGHT); -#line 399 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE); -#line 2508 "DataImportsUI.c" -} - - -static void -data_imports_ui_data_imports_dialog_set_free_sizable_window_mode (DataImportsUIDataImportsDialog* self) -{ -#line 402 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self)); -#line 403 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE); -#line 2519 "DataImportsUI.c" -} - - -static void -data_imports_ui_data_imports_dialog_clear_free_sizable_window_mode (DataImportsUIDataImportsDialog* self) -{ -#line 406 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self)); -#line 407 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE); -#line 2530 "DataImportsUI.c" -} - - -SpitDataImportsDialogPane* -data_imports_ui_data_imports_dialog_get_active_pane (DataImportsUIDataImportsDialog* self) -{ - SpitDataImportsDialogPane* result = NULL; - SpitDataImportsDialogPane* _tmp0_; - SpitDataImportsDialogPane* _tmp1_; -#line 410 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_val_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self), NULL); -#line 411 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = self->priv->active_pane; -#line 411 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 411 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - result = _tmp1_; -#line 411 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - return result; -#line 2550 "DataImportsUI.c" -} - - -void -data_imports_ui_data_imports_dialog_set_close_button_mode (DataImportsUIDataImportsDialog* self) -{ - GtkButton* _tmp0_; - GtkButton* _tmp1_; -#line 414 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self)); -#line 415 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = self->priv->close_cancel_button; -#line 415 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_button_set_label (_tmp0_, _ ("_Close")); -#line 416 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = self->priv->close_cancel_button; -#line 416 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_window_set_default (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 2569 "DataImportsUI.c" -} - - -void -data_imports_ui_data_imports_dialog_set_cancel_button_mode (DataImportsUIDataImportsDialog* self) -{ - GtkButton* _tmp0_; -#line 419 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self)); -#line 420 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = self->priv->close_cancel_button; -#line 420 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_button_set_label (_tmp0_, _ ("_Cancel")); -#line 2583 "DataImportsUI.c" -} - - -void -data_imports_ui_data_imports_dialog_lock_service (DataImportsUIDataImportsDialog* self) -{ - GtkComboBoxText* _tmp0_; -#line 423 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self)); -#line 424 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = self->priv->service_selector_box; -#line 424 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 2597 "DataImportsUI.c" -} - - -void -data_imports_ui_data_imports_dialog_unlock_service (DataImportsUIDataImportsDialog* self) -{ - GtkComboBoxText* _tmp0_; -#line 427 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self)); -#line 428 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = self->priv->service_selector_box; -#line 428 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 2611 "DataImportsUI.c" -} - - -void -data_imports_ui_data_imports_dialog_install_pane (DataImportsUIDataImportsDialog* self, - SpitDataImportsDialogPane* pane) -{ - SpitDataImportsDialogPane* _tmp0_; - GtkBox* _tmp6_; - GtkWidget* _tmp7_; - GtkWidget* _tmp8_; - SpitDataImportsDialogPaneGeometryOptions geometry_options = 0; - SpitDataImportsDialogPaneGeometryOptions _tmp9_; - SpitDataImportsDialogPaneGeometryOptions _tmp11_; - SpitDataImportsDialogPane* _tmp12_; -#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG (self)); -#line 431 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (pane)); -#line 432 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_debug ("DataImportsUI.vala:432: DataImportsDialog: install_pane( ): invoked."); -#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp0_ = self->priv->active_pane; -#line 434 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if (_tmp0_ != NULL) { -#line 2637 "DataImportsUI.c" - SpitDataImportsDialogPane* _tmp1_; - GtkBox* _tmp2_; - SpitDataImportsDialogPane* _tmp3_; - GtkWidget* _tmp4_; - GtkWidget* _tmp5_; -#line 435 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_debug ("DataImportsUI.vala:435: DataImportsDialog: install_pane( ): a pane is " \ -"already installed; removing it."); -#line 437 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp1_ = self->priv->active_pane; -#line 437 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - spit_data_imports_dialog_pane_on_pane_uninstalled (_tmp1_); -#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp2_ = self->priv->central_area_layouter; -#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp3_ = self->priv->active_pane; -#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp4_ = spit_data_imports_dialog_pane_get_widget (_tmp3_); -#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp5_ = _tmp4_; -#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_container_get_type (), GtkContainer), _tmp5_); -#line 438 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_tmp5_); -#line 2661 "DataImportsUI.c" - } -#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp6_ = self->priv->central_area_layouter; -#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp7_ = spit_data_imports_dialog_pane_get_widget (pane); -#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp8_ = _tmp7_; -#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_box_pack_start (_tmp6_, _tmp8_, TRUE, TRUE, (guint) 0); -#line 441 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (_tmp8_); -#line 442 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 444 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - geometry_options = spit_data_imports_dialog_pane_get_preferred_geometry (pane); -#line 446 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp9_ = geometry_options; -#line 446 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if ((_tmp9_ & SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE) != 0) { -#line 447 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_set_large_window_mode (self); -#line 2683 "DataImportsUI.c" - } else { - SpitDataImportsDialogPaneGeometryOptions _tmp10_; -#line 448 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp10_ = geometry_options; -#line 448 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if ((_tmp10_ & SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE) != 0) { -#line 449 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_set_colossal_window_mode (self); -#line 2692 "DataImportsUI.c" - } else { -#line 451 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_set_standard_window_mode (self); -#line 2696 "DataImportsUI.c" - } - } -#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp11_ = geometry_options; -#line 453 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - if ((_tmp11_ & SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE) != 0) { -#line 454 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_set_free_sizable_window_mode (self); -#line 2705 "DataImportsUI.c" - } else { -#line 456 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_clear_free_sizable_window_mode (self); -#line 2709 "DataImportsUI.c" - } -#line 458 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _tmp12_ = _g_object_ref0 (pane); -#line 458 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->active_pane); -#line 458 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv->active_pane = _tmp12_; -#line 459 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - spit_data_imports_dialog_pane_on_pane_installed (pane); -#line 2719 "DataImportsUI.c" -} - - -static void -data_imports_ui_data_imports_dialog_class_init (DataImportsUIDataImportsDialogClass * klass) -{ -#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - data_imports_ui_data_imports_dialog_parent_class = g_type_class_peek_parent (klass); -#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - g_type_class_add_private (klass, sizeof (DataImportsUIDataImportsDialogPrivate)); -#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - G_OBJECT_CLASS (klass)->finalize = data_imports_ui_data_imports_dialog_finalize; -#line 2732 "DataImportsUI.c" -} - - -static void -data_imports_ui_data_imports_dialog_instance_init (DataImportsUIDataImportsDialog * self) -{ -#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self->priv = DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_GET_PRIVATE (self); -#line 2741 "DataImportsUI.c" -} - - -static void -data_imports_ui_data_imports_dialog_finalize (GObject * obj) -{ - DataImportsUIDataImportsDialog * self; -#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialog); -#line 204 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->service_selector_box); -#line 205 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->central_area_layouter); -#line 206 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->close_cancel_button); -#line 207 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->active_pane); -#line 208 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - _g_object_unref0 (self->priv->host); -#line 191 "/home/jens/Source/shotwell/src/data_imports/DataImportsUI.vala" - G_OBJECT_CLASS (data_imports_ui_data_imports_dialog_parent_class)->finalize (obj); -#line 2763 "DataImportsUI.c" -} - - -GType -data_imports_ui_data_imports_dialog_get_type (void) -{ - static volatile gsize data_imports_ui_data_imports_dialog_type_id__volatile = 0; - if (g_once_init_enter (&data_imports_ui_data_imports_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DataImportsUIDataImportsDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) data_imports_ui_data_imports_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DataImportsUIDataImportsDialog), 0, (GInstanceInitFunc) data_imports_ui_data_imports_dialog_instance_init, NULL }; - GType data_imports_ui_data_imports_dialog_type_id; - data_imports_ui_data_imports_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "DataImportsUIDataImportsDialog", &g_define_type_info, 0); - g_once_init_leave (&data_imports_ui_data_imports_dialog_type_id__volatile, data_imports_ui_data_imports_dialog_type_id); - } - return data_imports_ui_data_imports_dialog_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/db/DatabaseTable.c b/src/db/DatabaseTable.c deleted file mode 100644 index 4c1b44e..0000000 --- a/src/db/DatabaseTable.c +++ /dev/null @@ -1,2570 +0,0 @@ -/* DatabaseTable.c generated by valac 0.40.4, the Vala compiler - * generated from DatabaseTable.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; -typedef struct _DatabaseTablePrivate DatabaseTablePrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _sqlite3_close0(var) ((var == NULL) ? NULL : (var = (sqlite3_close (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL))) -typedef struct _ParamSpecDatabaseTable ParamSpecDatabaseTable; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -struct _DatabaseTable { - GTypeInstance parent_instance; - volatile int ref_count; - DatabaseTablePrivate * priv; - gchar* table_name; -}; - -struct _DatabaseTableClass { - GTypeClass parent_class; - void (*finalize) (DatabaseTable *self); -}; - -struct _ParamSpecDatabaseTable { - GParamSpec parent_instance; -}; - - -static gpointer database_table_parent_class = NULL; -extern sqlite3* database_table_db; -sqlite3* database_table_db = NULL; -static gint database_table_in_transaction; -static gint database_table_in_transaction = 0; - -GQuark database_error_quark (void); -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -#define DATABASE_TABLE_SCHEMA_VERSION 20 -static void database_table_prepare_db (const gchar* filename); -void app_window_panic (const gchar* msg); -#define DB_IN_MEMORY_NAME ":memory:" -void database_table_on_trace (const gchar* message); -static void _database_table_on_trace_sqlite_trace_callback (gpointer self, - const gchar* message); -void database_table_init (const gchar* filename); -void database_table_warning (const gchar* op, - gint res); -void database_table_terminate (void); -void database_table_fatal (const gchar* op, - gint res); -void database_table_set_table_name (DatabaseTable* self, - const gchar* table_name); -void database_table_throw_error (const gchar* method, - gint res, - GError** error); -gboolean database_table_exists_by_id (DatabaseTable* self, - gint64 id); -gboolean database_table_select_by_id (DatabaseTable* self, - gint64 id, - const gchar* columns, - sqlite3_stmt* * stmt); -static void database_table_prepare_update_by_id (DatabaseTable* self, - gint64 id, - const gchar* column, - sqlite3_stmt* * stmt); -static gboolean database_table_execute_update_by_id (DatabaseTable* self, - sqlite3_stmt* stmt); -gboolean database_table_update_text_by_id (DatabaseTable* self, - gint64 id, - const gchar* column, - const gchar* text); -void database_table_update_text_by_id_2 (DatabaseTable* self, - gint64 id, - const gchar* column, - const gchar* text, - GError** error); -gboolean database_table_update_int_by_id (DatabaseTable* self, - gint64 id, - const gchar* column, - gint value); -void database_table_update_int_by_id_2 (DatabaseTable* self, - gint64 id, - const gchar* column, - gint value, - GError** error); -gboolean database_table_update_int64_by_id (DatabaseTable* self, - gint64 id, - const gchar* column, - gint64 value); -void database_table_update_int64_by_id_2 (DatabaseTable* self, - gint64 id, - const gchar* column, - gint64 value, - GError** error); -void database_table_delete_by_id (DatabaseTable* self, - gint64 id, - GError** error); -gboolean database_table_has_column (const gchar* table_name, - const gchar* column_name); -gboolean database_table_has_table (const gchar* table_name); -gboolean database_table_add_column (const gchar* table_name, - const gchar* column_name, - const gchar* column_constraints); -gboolean database_table_ensure_column (const gchar* table_name, - const gchar* column_name, - const gchar* column_constraints, - const gchar* upgrade_msg); -gint database_table_get_row_count (DatabaseTable* self); -void database_table_begin_transaction (void); -void database_table_commit_transaction (GError** error); -DatabaseTable* database_table_construct (GType object_type); -static void database_table_finalize (DatabaseTable * obj); - - -GQuark -database_error_quark (void) -{ - return g_quark_from_static_string ("database_error-quark"); -} - - -static void -_database_table_on_trace_sqlite_trace_callback (gpointer self, - const gchar* message) -{ -#line 57 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_on_trace (message); -#line 179 "DatabaseTable.c" -} - - -static void -database_table_prepare_db (const gchar* filename) -{ - gint res = 0; - sqlite3* _tmp0_ = NULL; - gint _tmp1_; - gint _tmp2_; - const gchar* sql_debug = NULL; - const gchar* _tmp16_; - gboolean _tmp17_ = FALSE; - const gchar* _tmp18_; - GError * _inner_error_ = NULL; -#line 32 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (filename != NULL); -#line 34 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = sqlite3_open_v2 (filename, &_tmp0_, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL); -#line 34 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_close0 (database_table_db); -#line 34 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_db = _tmp0_; -#line 34 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = _tmp1_; -#line 36 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp2_ = res; -#line 36 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp2_ != SQLITE_OK) { -#line 209 "DatabaseTable.c" - gint _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 37 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp3_ = res; -#line 37 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp4_ = g_strdup_printf (_ ("Unable to open/create photo database %s: error code %d"), filename, _tmp3_); -#line 37 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp5_ = _tmp4_; -#line 37 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - app_window_panic (_tmp5_); -#line 37 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp5_); -#line 223 "DatabaseTable.c" - } -#line 41 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (g_strcmp0 (filename, DB_IN_MEMORY_NAME) != 0) { -#line 227 "DatabaseTable.c" - { - GFile* file_db = NULL; - GFile* _tmp6_; - GFileInfo* info = NULL; - GFile* _tmp7_; - GFileInfo* _tmp8_; - GFileInfo* _tmp9_; -#line 43 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp6_ = g_file_new_for_path (filename); -#line 43 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - file_db = _tmp6_; -#line 44 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp7_ = file_db; -#line 44 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp8_ = g_file_query_info (_tmp7_, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_); -#line 44 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - info = _tmp8_; -#line 44 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 44 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_object_unref0 (file_db); -#line 249 "DatabaseTable.c" - goto __catch15_g_error; - } -#line 45 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp9_ = info; -#line 45 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (!g_file_info_get_attribute_boolean (_tmp9_, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE)) { -#line 256 "DatabaseTable.c" - gchar* _tmp10_; - gchar* _tmp11_; -#line 46 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp10_ = g_strdup_printf (_ ("Unable to write to photo database file:\n %s"), filename); -#line 46 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp11_ = _tmp10_; -#line 46 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - app_window_panic (_tmp11_); -#line 46 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp11_); -#line 267 "DatabaseTable.c" - } -#line 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_object_unref0 (info); -#line 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_object_unref0 (file_db); -#line 273 "DatabaseTable.c" - } - goto __finally15; - __catch15_g_error: - { - GError* e = NULL; - GError* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; -#line 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - e = _inner_error_; -#line 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _inner_error_ = NULL; -#line 48 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp12_ = e; -#line 48 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp13_ = _tmp12_->message; -#line 48 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp14_ = g_strdup_printf (_ ("Error accessing database file:\n %s\n\nError was: \n%s"), filename, _tmp13_); -#line 48 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp15_ = _tmp14_; -#line 48 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - app_window_panic (_tmp15_); -#line 48 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp15_); -#line 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_error_free0 (e); -#line 301 "DatabaseTable.c" - } - __finally15: -#line 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_clear_error (&_inner_error_); -#line 42 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 312 "DatabaseTable.c" - } - } -#line 53 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp16_ = g_getenv ("SHOTWELL_SQL_DEBUG"); -#line 53 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - sql_debug = _tmp16_; -#line 56 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp18_ = sql_debug; -#line 56 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp18_ != NULL) { -#line 323 "DatabaseTable.c" - const gchar* _tmp19_; -#line 56 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp19_ = sql_debug; -#line 56 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp17_ = g_strcmp0 (_tmp19_, "") != 0; -#line 329 "DatabaseTable.c" - } else { -#line 56 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp17_ = FALSE; -#line 333 "DatabaseTable.c" - } -#line 56 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp17_) { -#line 337 "DatabaseTable.c" - sqlite3* _tmp20_; -#line 57 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp20_ = database_table_db; -#line 57 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - sqlite3_trace (_tmp20_, _database_table_on_trace_sqlite_trace_callback, NULL); -#line 343 "DatabaseTable.c" - } -} - - -void -database_table_on_trace (const gchar* message) -{ -#line 61 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (message != NULL); -#line 62 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_debug ("DatabaseTable.vala:62: SQLITE: %s", message); -#line 355 "DatabaseTable.c" -} - - -static gint -_sqlite3_exec (sqlite3* self, - const gchar* sql, - sqlite3_callback callback, - void* callback_target, - gchar* * errmsg) -{ - gchar* _vala_errmsg = NULL; - gint result = 0; - const gchar* sqlite_errmsg = NULL; - gint ec = 0; - const gchar* _tmp0_ = NULL; - gint _tmp1_; - const gchar* _tmp4_; -#line 34 "/usr/share/vala-0.40/vapi/sqlite3.vapi" - g_return_val_if_fail (self != NULL, 0); -#line 34 "/usr/share/vala-0.40/vapi/sqlite3.vapi" - g_return_val_if_fail (sql != NULL, 0); -#line 36 "/usr/share/vala-0.40/vapi/sqlite3.vapi" - _tmp1_ = sqlite3_exec (self, sql, callback, callback_target, (char**) (&_tmp0_)); -#line 36 "/usr/share/vala-0.40/vapi/sqlite3.vapi" - sqlite_errmsg = _tmp0_; -#line 36 "/usr/share/vala-0.40/vapi/sqlite3.vapi" - ec = _tmp1_; -#line 37 "/usr/share/vala-0.40/vapi/sqlite3.vapi" - if ((&_vala_errmsg) != NULL) { -#line 385 "DatabaseTable.c" - const gchar* _tmp2_; - gchar* _tmp3_; -#line 38 "/usr/share/vala-0.40/vapi/sqlite3.vapi" - _tmp2_ = sqlite_errmsg; -#line 38 "/usr/share/vala-0.40/vapi/sqlite3.vapi" - _tmp3_ = g_strdup (_tmp2_); -#line 38 "/usr/share/vala-0.40/vapi/sqlite3.vapi" - _g_free0 (_vala_errmsg); -#line 38 "/usr/share/vala-0.40/vapi/sqlite3.vapi" - _vala_errmsg = _tmp3_; -#line 396 "DatabaseTable.c" - } -#line 40 "/usr/share/vala-0.40/vapi/sqlite3.vapi" - _tmp4_ = sqlite_errmsg; -#line 40 "/usr/share/vala-0.40/vapi/sqlite3.vapi" - sqlite3_free ((void*) _tmp4_); -#line 41 "/usr/share/vala-0.40/vapi/sqlite3.vapi" - result = ec; -#line 41 "/usr/share/vala-0.40/vapi/sqlite3.vapi" - if (errmsg) { -#line 41 "/usr/share/vala-0.40/vapi/sqlite3.vapi" - *errmsg = _vala_errmsg; -#line 408 "DatabaseTable.c" - } else { -#line 41 "/usr/share/vala-0.40/vapi/sqlite3.vapi" - _g_free0 (_vala_errmsg); -#line 412 "DatabaseTable.c" - } -#line 41 "/usr/share/vala-0.40/vapi/sqlite3.vapi" - return result; -#line 416 "DatabaseTable.c" -} - - -void -database_table_init (const gchar* filename) -{ - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3* _tmp14_; - gint _tmp15_; - gint _tmp16_; - GError * _inner_error_ = NULL; -#line 65 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (filename != NULL); -#line 67 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_prepare_db (filename); -#line 71 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = database_table_db; -#line 71 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS VersionTable (" "id INTEGER PRIMARY KEY, " "schema_version INTEGER, " "app_version TEXT, " "user_data TEXT NULL" ")", -1, &_tmp1_, NULL); -#line 71 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 71 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - stmt = _tmp1_; -#line 71 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = _tmp2_; -#line 79 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp3_ = res; -#line 79 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp3_ != SQLITE_OK) { -#line 451 "DatabaseTable.c" - gchar* backup_path = NULL; - gchar* _tmp4_; -#line 80 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_close0 (database_table_db); -#line 80 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_db = NULL; -#line 82 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp4_ = g_strconcat (filename, ".bak", NULL); -#line 82 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - backup_path = _tmp4_; -#line 462 "DatabaseTable.c" - { - GFile* src = NULL; - const gchar* _tmp5_; - GFile* _tmp6_; - GFile* dest = NULL; - GFile* _tmp7_; - GFile* _tmp8_; - GFile* _tmp9_; -#line 85 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp5_ = backup_path; -#line 85 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp6_ = g_file_new_for_commandline_arg (_tmp5_); -#line 85 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - src = _tmp6_; -#line 86 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp7_ = g_file_new_for_commandline_arg (filename); -#line 86 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - dest = _tmp7_; -#line 87 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp8_ = src; -#line 87 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp9_ = dest; -#line 87 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_file_copy (_tmp8_, _tmp9_, G_FILE_COPY_OVERWRITE | G_FILE_COPY_ALL_METADATA, NULL, NULL, NULL, &_inner_error_); -#line 87 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 87 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_object_unref0 (dest); -#line 87 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_object_unref0 (src); -#line 493 "DatabaseTable.c" - goto __catch16_g_error; - } -#line 90 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_prepare_db (filename); -#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_object_unref0 (dest); -#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_object_unref0 (src); -#line 502 "DatabaseTable.c" - } - goto __finally16; - __catch16_g_error: - { - GError* _error_ = NULL; - GError* _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _error_ = _inner_error_; -#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _inner_error_ = NULL; -#line 92 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp10_ = _error_; -#line 92 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp11_ = _tmp10_->message; -#line 92 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp12_ = g_strdup_printf (_ ("Unable to restore photo database %s"), _tmp11_); -#line 92 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp13_ = _tmp12_; -#line 92 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - app_window_panic (_tmp13_); -#line 92 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp13_); -#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_error_free0 (_error_); -#line 530 "DatabaseTable.c" - } - __finally16: -#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (backup_path); -#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_clear_error (&_inner_error_); -#line 84 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 545 "DatabaseTable.c" - } -#line 79 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (backup_path); -#line 549 "DatabaseTable.c" - } -#line 98 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp14_ = database_table_db; -#line 98 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp15_ = _sqlite3_exec (_tmp14_, "PRAGMA synchronous=OFF", NULL, NULL, NULL); -#line 98 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = _tmp15_; -#line 99 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp16_ = res; -#line 99 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp16_ != SQLITE_OK) { -#line 561 "DatabaseTable.c" - gint _tmp17_; -#line 100 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp17_ = res; -#line 100 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_warning ("Unable to disable synchronous mode", _tmp17_); -#line 567 "DatabaseTable.c" - } -#line 65 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 571 "DatabaseTable.c" -} - - -void -database_table_terminate (void) -{ -#line 105 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_close0 (database_table_db); -#line 105 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_db = NULL; -#line 582 "DatabaseTable.c" -} - - -void -database_table_fatal (const gchar* op, - gint res) -{ - sqlite3* _tmp0_; - const gchar* _tmp1_; -#line 109 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (op != NULL); -#line 110 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = database_table_db; -#line 110 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = sqlite3_errmsg (_tmp0_); -#line 110 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_error ("DatabaseTable.vala:110: %s: [%d] %s", op, res, _tmp1_); -#line 600 "DatabaseTable.c" -} - - -void -database_table_warning (const gchar* op, - gint res) -{ - sqlite3* _tmp0_; - const gchar* _tmp1_; -#line 114 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (op != NULL); -#line 115 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = database_table_db; -#line 115 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = sqlite3_errmsg (_tmp0_); -#line 115 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_warning ("DatabaseTable.vala:115: %s: [%d] %s", op, res, _tmp1_); -#line 618 "DatabaseTable.c" -} - - -void -database_table_set_table_name (DatabaseTable* self, - const gchar* table_name) -{ - gchar* _tmp0_; -#line 118 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (IS_DATABASE_TABLE (self)); -#line 118 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (table_name != NULL); -#line 119 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = g_strdup (table_name); -#line 119 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (self->table_name); -#line 119 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - self->table_name = _tmp0_; -#line 637 "DatabaseTable.c" -} - - -void -database_table_throw_error (const gchar* method, - gint res, - GError** error) -{ - gchar* msg = NULL; - sqlite3* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - GError * _inner_error_ = NULL; -#line 124 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (method != NULL); -#line 125 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = database_table_db; -#line 125 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = sqlite3_errmsg (_tmp0_); -#line 125 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp2_ = g_strdup_printf ("(%s) [%d] - %s", method, res, _tmp1_); -#line 125 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - msg = _tmp2_; -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - switch (res) { -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_OK: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_DONE: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_ROW: -#line 669 "DatabaseTable.c" - { -#line 131 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (msg); -#line 131 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 675 "DatabaseTable.c" - } -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_PERM: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_BUSY: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_READONLY: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_IOERR: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_CORRUPT: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_CANTOPEN: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_NOLFS: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_AUTH: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_FORMAT: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_NOTADB: -#line 697 "DatabaseTable.c" - { - const gchar* _tmp3_; - GError* _tmp4_; -#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp3_ = msg; -#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp4_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_BACKING, _tmp3_); -#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _inner_error_ = _tmp4_; -#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_propagate_error (error, _inner_error_); -#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (msg); -#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 715 "DatabaseTable.c" - } else { -#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (msg); -#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_clear_error (&_inner_error_); -#line 143 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 725 "DatabaseTable.c" - } - } -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_NOMEM: -#line 730 "DatabaseTable.c" - { - const gchar* _tmp5_; - GError* _tmp6_; -#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp5_ = msg; -#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp6_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_MEMORY, _tmp5_); -#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _inner_error_ = _tmp6_; -#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_propagate_error (error, _inner_error_); -#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (msg); -#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 748 "DatabaseTable.c" - } else { -#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (msg); -#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_clear_error (&_inner_error_); -#line 146 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 758 "DatabaseTable.c" - } - } -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_ABORT: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_LOCKED: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_INTERRUPT: -#line 767 "DatabaseTable.c" - { - const gchar* _tmp7_; - GError* _tmp8_; -#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp7_ = msg; -#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp8_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_ABORT, _tmp7_); -#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _inner_error_ = _tmp8_; -#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_propagate_error (error, _inner_error_); -#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (msg); -#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 785 "DatabaseTable.c" - } else { -#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (msg); -#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_clear_error (&_inner_error_); -#line 151 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 795 "DatabaseTable.c" - } - } -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_FULL: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_EMPTY: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_TOOBIG: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_CONSTRAINT: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_RANGE: -#line 808 "DatabaseTable.c" - { - const gchar* _tmp9_; - GError* _tmp10_; -#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp9_ = msg; -#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp10_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_LIMITS, _tmp9_); -#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _inner_error_ = _tmp10_; -#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_propagate_error (error, _inner_error_); -#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (msg); -#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 826 "DatabaseTable.c" - } else { -#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (msg); -#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_clear_error (&_inner_error_); -#line 158 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 836 "DatabaseTable.c" - } - } -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_SCHEMA: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_MISMATCH: -#line 843 "DatabaseTable.c" - { - const gchar* _tmp11_; - GError* _tmp12_; -#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp11_ = msg; -#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp12_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_TYPESPEC, _tmp11_); -#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _inner_error_ = _tmp12_; -#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_propagate_error (error, _inner_error_); -#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (msg); -#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 861 "DatabaseTable.c" - } else { -#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (msg); -#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_clear_error (&_inner_error_); -#line 162 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 871 "DatabaseTable.c" - } - } - default: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_ERROR: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_INTERNAL: -#line 127 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - case SQLITE_MISUSE: -#line 881 "DatabaseTable.c" - { - const gchar* _tmp13_; - GError* _tmp14_; -#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp13_ = msg; -#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp14_ = g_error_new_literal (DATABASE_ERROR, DATABASE_ERROR_ERROR, _tmp13_); -#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _inner_error_ = _tmp14_; -#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_propagate_error (error, _inner_error_); -#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (msg); -#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 899 "DatabaseTable.c" - } else { -#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (msg); -#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_clear_error (&_inner_error_); -#line 168 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 909 "DatabaseTable.c" - } - } - } -#line 124 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (msg); -#line 915 "DatabaseTable.c" -} - - -gboolean -database_table_exists_by_id (DatabaseTable* self, - gint64 id) -{ - gboolean result = FALSE; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - sqlite3_stmt* _tmp4_ = NULL; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - gint _tmp9_; - sqlite3_stmt* _tmp10_; - gboolean _tmp11_ = FALSE; - gint _tmp12_; - gint _tmp20_; -#line 172 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (IS_DATABASE_TABLE (self), FALSE); -#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = database_table_db; -#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = self->table_name; -#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp2_ = g_strdup_printf ("SELECT id FROM %s WHERE id=?", _tmp1_); -#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp3_ = _tmp2_; -#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp5_ = sqlite3_prepare_v2 (_tmp0_, _tmp3_, -1, &_tmp4_, NULL); -#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - stmt = _tmp4_; -#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp6_ = _tmp5_; -#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp3_); -#line 174 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = _tmp6_; -#line 175 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp7_ = res; -#line 175 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 177 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp8_ = stmt; -#line 177 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_bind_int64 (_tmp8_, 1, id); -#line 178 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp9_ = res; -#line 178 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK"); -#line 180 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp10_ = stmt; -#line 180 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_step (_tmp10_); -#line 181 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp12_ = res; -#line 181 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp12_ != SQLITE_ROW) { -#line 982 "DatabaseTable.c" - gint _tmp13_; -#line 181 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp13_ = res; -#line 181 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp11_ = _tmp13_ != SQLITE_DONE; -#line 988 "DatabaseTable.c" - } else { -#line 181 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp11_ = FALSE; -#line 992 "DatabaseTable.c" - } -#line 181 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp11_) { -#line 996 "DatabaseTable.c" - gchar* _tmp14_; - gchar* _tmp15_; - const gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - gint _tmp19_; -#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp14_ = g_strdup_printf ("%" G_GINT64_FORMAT, id); -#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp15_ = _tmp14_; -#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp16_ = self->table_name; -#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp17_ = g_strdup_printf ("exists_by_id [%s] %s", _tmp15_, _tmp16_); -#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp18_ = _tmp17_; -#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp19_ = res; -#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_fatal (_tmp18_, _tmp19_); -#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp18_); -#line 182 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp15_); -#line 1021 "DatabaseTable.c" - } -#line 184 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp20_ = res; -#line 184 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - result = _tmp20_ == SQLITE_ROW; -#line 184 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 184 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return result; -#line 1031 "DatabaseTable.c" -} - - -gboolean -database_table_select_by_id (DatabaseTable* self, - gint64 id, - const gchar* columns, - sqlite3_stmt* * stmt) -{ - sqlite3_stmt* _vala_stmt = NULL; - gboolean result = FALSE; - gchar* sql = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; - gint res = 0; - sqlite3* _tmp2_; - const gchar* _tmp3_; - sqlite3_stmt* _tmp4_ = NULL; - gint _tmp5_; - gint _tmp6_; - sqlite3_stmt* _tmp7_; - gint _tmp8_; - sqlite3_stmt* _tmp9_; - gboolean _tmp10_ = FALSE; - gint _tmp11_; - gint _tmp19_; -#line 187 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (IS_DATABASE_TABLE (self), FALSE); -#line 187 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (columns != NULL, FALSE); -#line 188 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = self->table_name; -#line 188 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = g_strdup_printf ("SELECT %s FROM %s WHERE id=?", columns, _tmp0_); -#line 188 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - sql = _tmp1_; -#line 190 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp2_ = database_table_db; -#line 190 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp3_ = sql; -#line 190 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp5_ = sqlite3_prepare_v2 (_tmp2_, _tmp3_, -1, &_tmp4_, NULL); -#line 190 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (_vala_stmt); -#line 190 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_stmt = _tmp4_; -#line 190 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = _tmp5_; -#line 191 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp6_ = res; -#line 191 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (_tmp6_ == SQLITE_OK, "res == Sqlite.OK"); -#line 193 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp7_ = _vala_stmt; -#line 193 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_bind_int64 (_tmp7_, 1, id); -#line 194 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp8_ = res; -#line 194 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK"); -#line 196 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp9_ = _vala_stmt; -#line 196 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_step (_tmp9_); -#line 197 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp11_ = res; -#line 197 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp11_ != SQLITE_ROW) { -#line 1100 "DatabaseTable.c" - gint _tmp12_; -#line 197 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp12_ = res; -#line 197 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp10_ = _tmp12_ != SQLITE_DONE; -#line 1106 "DatabaseTable.c" - } else { -#line 197 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp10_ = FALSE; -#line 1110 "DatabaseTable.c" - } -#line 197 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp10_) { -#line 1114 "DatabaseTable.c" - gchar* _tmp13_; - gchar* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gint _tmp18_; -#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp13_ = g_strdup_printf ("%" G_GINT64_FORMAT, id); -#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp14_ = _tmp13_; -#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp15_ = self->table_name; -#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp16_ = g_strdup_printf ("select_by_id [%s] %s %s", _tmp14_, _tmp15_, columns); -#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp17_ = _tmp16_; -#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp18_ = res; -#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_fatal (_tmp17_, _tmp18_); -#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp17_); -#line 198 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp14_); -#line 1139 "DatabaseTable.c" - } -#line 200 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp19_ = res; -#line 200 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - result = _tmp19_ == SQLITE_ROW; -#line 200 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (sql); -#line 200 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (stmt) { -#line 200 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - *stmt = _vala_stmt; -#line 1151 "DatabaseTable.c" - } else { -#line 200 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (_vala_stmt); -#line 1155 "DatabaseTable.c" - } -#line 200 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return result; -#line 1159 "DatabaseTable.c" -} - - -static void -database_table_prepare_update_by_id (DatabaseTable* self, - gint64 id, - const gchar* column, - sqlite3_stmt* * stmt) -{ - sqlite3_stmt* _vala_stmt = NULL; - gchar* sql = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; - gint res = 0; - sqlite3* _tmp2_; - sqlite3_stmt* _tmp3_ = NULL; - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; -#line 204 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (IS_DATABASE_TABLE (self)); -#line 204 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (column != NULL); -#line 205 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = self->table_name; -#line 205 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = g_strdup_printf ("UPDATE %s SET %s=? WHERE id=?", _tmp0_, column); -#line 205 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - sql = _tmp1_; -#line 207 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp2_ = database_table_db; -#line 207 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp4_ = sqlite3_prepare_v2 (_tmp2_, sql, -1, &_tmp3_, NULL); -#line 207 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (_vala_stmt); -#line 207 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_stmt = _tmp3_; -#line 207 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = _tmp4_; -#line 208 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp5_ = res; -#line 208 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK"); -#line 210 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_bind_int64 (_vala_stmt, 2, id); -#line 211 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp6_ = res; -#line 211 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (_tmp6_ == SQLITE_OK, "res == Sqlite.OK"); -#line 204 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (sql); -#line 204 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (stmt) { -#line 204 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - *stmt = _vala_stmt; -#line 1215 "DatabaseTable.c" - } else { -#line 204 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (_vala_stmt); -#line 1219 "DatabaseTable.c" - } -} - - -static gboolean -database_table_execute_update_by_id (DatabaseTable* self, - sqlite3_stmt* stmt) -{ - gboolean result = FALSE; - gint res = 0; - gint _tmp0_; -#line 214 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (IS_DATABASE_TABLE (self), FALSE); -#line 214 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (stmt != NULL, FALSE); -#line 215 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_step (stmt); -#line 216 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = res; -#line 216 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp0_ != SQLITE_DONE) { -#line 1241 "DatabaseTable.c" - gint _tmp1_; -#line 217 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = res; -#line 217 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_fatal ("execute_update_by_id", _tmp1_); -#line 219 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - result = FALSE; -#line 219 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return result; -#line 1251 "DatabaseTable.c" - } -#line 222 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - result = TRUE; -#line 222 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return result; -#line 1257 "DatabaseTable.c" -} - - -gboolean -database_table_update_text_by_id (DatabaseTable* self, - gint64 id, - const gchar* column, - const gchar* text) -{ - gboolean result = FALSE; - sqlite3_stmt* stmt = NULL; - sqlite3_stmt* _tmp0_ = NULL; - gint res = 0; - gchar* _tmp1_; - GDestroyNotify _tmp2_; -#line 225 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (IS_DATABASE_TABLE (self), FALSE); -#line 225 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (column != NULL, FALSE); -#line 225 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (text != NULL, FALSE); -#line 227 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_prepare_update_by_id (self, id, column, &_tmp0_); -#line 227 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 227 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - stmt = _tmp0_; -#line 229 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = g_strdup (text); -#line 229 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp2_ = g_free; -#line 229 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_bind_text (stmt, 1, _tmp1_, -1, _tmp2_); -#line 230 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (res == SQLITE_OK, "res == Sqlite.OK"); -#line 232 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - result = database_table_execute_update_by_id (self, stmt); -#line 232 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 232 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return result; -#line 1299 "DatabaseTable.c" -} - - -void -database_table_update_text_by_id_2 (DatabaseTable* self, - gint64 id, - const gchar* column, - const gchar* text, - GError** error) -{ - sqlite3_stmt* stmt = NULL; - sqlite3_stmt* _tmp0_ = NULL; - gint res = 0; - sqlite3_stmt* _tmp1_; - gchar* _tmp2_; - GDestroyNotify _tmp3_; - gint _tmp4_; - sqlite3_stmt* _tmp5_; - gint _tmp6_; - GError * _inner_error_ = NULL; -#line 235 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (IS_DATABASE_TABLE (self)); -#line 235 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (column != NULL); -#line 235 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (text != NULL); -#line 237 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_prepare_update_by_id (self, id, column, &_tmp0_); -#line 237 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 237 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - stmt = _tmp0_; -#line 239 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = stmt; -#line 239 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp2_ = g_strdup (text); -#line 239 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp3_ = g_free; -#line 239 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_bind_text (_tmp1_, 1, _tmp2_, -1, _tmp3_); -#line 240 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp4_ = res; -#line 240 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (_tmp4_ == SQLITE_OK, "res == Sqlite.OK"); -#line 242 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp5_ = stmt; -#line 242 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_step (_tmp5_); -#line 243 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp6_ = res; -#line 243 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp6_ != SQLITE_DONE) { -#line 1352 "DatabaseTable.c" - const gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gint _tmp10_; -#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp7_ = self->table_name; -#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp8_ = g_strdup_printf ("DatabaseTable.update_text_by_id_2 %s.%s", _tmp7_, column); -#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp9_ = _tmp8_; -#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp10_ = res; -#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_throw_error (_tmp9_, _tmp10_, &_inner_error_); -#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp9_); -#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_propagate_error (error, _inner_error_); -#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 1379 "DatabaseTable.c" - } else { -#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_clear_error (&_inner_error_); -#line 244 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 1389 "DatabaseTable.c" - } - } - } -#line 235 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 1395 "DatabaseTable.c" -} - - -gboolean -database_table_update_int_by_id (DatabaseTable* self, - gint64 id, - const gchar* column, - gint value) -{ - gboolean result = FALSE; - sqlite3_stmt* stmt = NULL; - sqlite3_stmt* _tmp0_ = NULL; - gint res = 0; -#line 247 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (IS_DATABASE_TABLE (self), FALSE); -#line 247 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (column != NULL, FALSE); -#line 249 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_prepare_update_by_id (self, id, column, &_tmp0_); -#line 249 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 249 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - stmt = _tmp0_; -#line 251 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_bind_int (stmt, 1, value); -#line 252 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (res == SQLITE_OK, "res == Sqlite.OK"); -#line 254 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - result = database_table_execute_update_by_id (self, stmt); -#line 254 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 254 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return result; -#line 1429 "DatabaseTable.c" -} - - -void -database_table_update_int_by_id_2 (DatabaseTable* self, - gint64 id, - const gchar* column, - gint value, - GError** error) -{ - sqlite3_stmt* stmt = NULL; - sqlite3_stmt* _tmp0_ = NULL; - gint res = 0; - sqlite3_stmt* _tmp1_; - gint _tmp2_; - sqlite3_stmt* _tmp3_; - gint _tmp4_; - GError * _inner_error_ = NULL; -#line 257 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (IS_DATABASE_TABLE (self)); -#line 257 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (column != NULL); -#line 259 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_prepare_update_by_id (self, id, column, &_tmp0_); -#line 259 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 259 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - stmt = _tmp0_; -#line 261 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = stmt; -#line 261 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_bind_int (_tmp1_, 1, value); -#line 262 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp2_ = res; -#line 262 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (_tmp2_ == SQLITE_OK, "res == Sqlite.OK"); -#line 264 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp3_ = stmt; -#line 264 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_step (_tmp3_); -#line 265 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp4_ = res; -#line 265 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp4_ != SQLITE_DONE) { -#line 1474 "DatabaseTable.c" - const gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gint _tmp8_; -#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp5_ = self->table_name; -#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp6_ = g_strdup_printf ("DatabaseTable.update_int_by_id_2 %s.%s", _tmp5_, column); -#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp7_ = _tmp6_; -#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp8_ = res; -#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_throw_error (_tmp7_, _tmp8_, &_inner_error_); -#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp7_); -#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_propagate_error (error, _inner_error_); -#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 1501 "DatabaseTable.c" - } else { -#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_clear_error (&_inner_error_); -#line 266 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 1511 "DatabaseTable.c" - } - } - } -#line 257 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 1517 "DatabaseTable.c" -} - - -gboolean -database_table_update_int64_by_id (DatabaseTable* self, - gint64 id, - const gchar* column, - gint64 value) -{ - gboolean result = FALSE; - sqlite3_stmt* stmt = NULL; - sqlite3_stmt* _tmp0_ = NULL; - gint res = 0; -#line 269 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (IS_DATABASE_TABLE (self), FALSE); -#line 269 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (column != NULL, FALSE); -#line 271 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_prepare_update_by_id (self, id, column, &_tmp0_); -#line 271 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 271 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - stmt = _tmp0_; -#line 273 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_bind_int64 (stmt, 1, value); -#line 274 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (res == SQLITE_OK, "res == Sqlite.OK"); -#line 276 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - result = database_table_execute_update_by_id (self, stmt); -#line 276 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 276 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return result; -#line 1551 "DatabaseTable.c" -} - - -void -database_table_update_int64_by_id_2 (DatabaseTable* self, - gint64 id, - const gchar* column, - gint64 value, - GError** error) -{ - sqlite3_stmt* stmt = NULL; - sqlite3_stmt* _tmp0_ = NULL; - gint res = 0; - sqlite3_stmt* _tmp1_; - gint _tmp2_; - sqlite3_stmt* _tmp3_; - gint _tmp4_; - GError * _inner_error_ = NULL; -#line 279 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (IS_DATABASE_TABLE (self)); -#line 279 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (column != NULL); -#line 281 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_prepare_update_by_id (self, id, column, &_tmp0_); -#line 281 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 281 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - stmt = _tmp0_; -#line 283 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = stmt; -#line 283 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_bind_int64 (_tmp1_, 1, value); -#line 284 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp2_ = res; -#line 284 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (_tmp2_ == SQLITE_OK, "res == Sqlite.OK"); -#line 286 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp3_ = stmt; -#line 286 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_step (_tmp3_); -#line 287 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp4_ = res; -#line 287 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp4_ != SQLITE_DONE) { -#line 1596 "DatabaseTable.c" - const gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gint _tmp8_; -#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp5_ = self->table_name; -#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp6_ = g_strdup_printf ("DatabaseTable.update_int64_by_id_2 %s.%s", _tmp5_, column); -#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp7_ = _tmp6_; -#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp8_ = res; -#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_throw_error (_tmp7_, _tmp8_, &_inner_error_); -#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp7_); -#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_propagate_error (error, _inner_error_); -#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 1623 "DatabaseTable.c" - } else { -#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_clear_error (&_inner_error_); -#line 288 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 1633 "DatabaseTable.c" - } - } - } -#line 279 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 1639 "DatabaseTable.c" -} - - -void -database_table_delete_by_id (DatabaseTable* self, - gint64 id, - GError** error) -{ - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - sqlite3_stmt* _tmp4_ = NULL; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - gint _tmp9_; - sqlite3_stmt* _tmp10_; - gint _tmp11_; - GError * _inner_error_ = NULL; -#line 291 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (IS_DATABASE_TABLE (self)); -#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = database_table_db; -#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = self->table_name; -#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp2_ = g_strdup_printf ("DELETE FROM %s WHERE id=?", _tmp1_); -#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp3_ = _tmp2_; -#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp5_ = sqlite3_prepare_v2 (_tmp0_, _tmp3_, -1, &_tmp4_, NULL); -#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - stmt = _tmp4_; -#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp6_ = _tmp5_; -#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp3_); -#line 293 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = _tmp6_; -#line 294 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp7_ = res; -#line 294 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 296 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp8_ = stmt; -#line 296 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_bind_int64 (_tmp8_, 1, id); -#line 297 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp9_ = res; -#line 297 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK"); -#line 299 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp10_ = stmt; -#line 299 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_step (_tmp10_); -#line 300 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp11_ = res; -#line 300 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp11_ != SQLITE_DONE) { -#line 1705 "DatabaseTable.c" - const gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gint _tmp15_; -#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp12_ = self->table_name; -#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp13_ = g_strdup_printf ("%s.remove", _tmp12_); -#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp14_ = _tmp13_; -#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp15_ = res; -#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_throw_error (_tmp14_, _tmp15_, &_inner_error_); -#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp14_); -#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_propagate_error (error, _inner_error_); -#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 1732 "DatabaseTable.c" - } else { -#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_clear_error (&_inner_error_); -#line 301 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 1742 "DatabaseTable.c" - } - } - } -#line 291 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 1748 "DatabaseTable.c" -} - - -gboolean -database_table_has_column (const gchar* table_name, - const gchar* column_name) -{ - gboolean result = FALSE; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - sqlite3_stmt* _tmp3_ = NULL; - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; -#line 304 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (table_name != NULL, FALSE); -#line 304 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (column_name != NULL, FALSE); -#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = database_table_db; -#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = g_strdup_printf ("PRAGMA table_info(%s)", table_name); -#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp2_ = _tmp1_; -#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp4_ = sqlite3_prepare_v2 (_tmp0_, _tmp2_, -1, &_tmp3_, NULL); -#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - stmt = _tmp3_; -#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp5_ = _tmp4_; -#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp2_); -#line 306 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = _tmp5_; -#line 307 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp6_ = res; -#line 307 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (_tmp6_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1792 "DatabaseTable.c" - { - gboolean _tmp7_ = FALSE; -#line 309 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp7_ = TRUE; -#line 309 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - while (TRUE) { -#line 1799 "DatabaseTable.c" - sqlite3_stmt* _tmp8_; - gint _tmp9_; -#line 309 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (!_tmp7_) { -#line 1804 "DatabaseTable.c" - } -#line 309 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp7_ = FALSE; -#line 310 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp8_ = stmt; -#line 310 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_step (_tmp8_); -#line 311 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp9_ = res; -#line 311 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp9_ == SQLITE_DONE) { -#line 312 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - break; -#line 1818 "DatabaseTable.c" - } else { - gint _tmp10_; -#line 313 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp10_ = res; -#line 313 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp10_ != SQLITE_ROW) { -#line 1825 "DatabaseTable.c" - gchar* _tmp11_; - gchar* _tmp12_; - gint _tmp13_; -#line 314 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp11_ = g_strdup_printf ("has_column %s", table_name); -#line 314 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp12_ = _tmp11_; -#line 314 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp13_ = res; -#line 314 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_fatal (_tmp12_, _tmp13_); -#line 314 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp12_); -#line 316 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - break; -#line 1841 "DatabaseTable.c" - } else { - gchar* column = NULL; - sqlite3_stmt* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; - gboolean _tmp17_ = FALSE; - const gchar* _tmp18_; -#line 318 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp14_ = stmt; -#line 318 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp15_ = sqlite3_column_text (_tmp14_, 1); -#line 318 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp16_ = g_strdup (_tmp15_); -#line 318 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - column = _tmp16_; -#line 319 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp18_ = column; -#line 319 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp18_ != NULL) { -#line 1861 "DatabaseTable.c" - const gchar* _tmp19_; -#line 319 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp19_ = column; -#line 319 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp17_ = g_strcmp0 (_tmp19_, column_name) == 0; -#line 1867 "DatabaseTable.c" - } else { -#line 319 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp17_ = FALSE; -#line 1871 "DatabaseTable.c" - } -#line 319 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp17_) { -#line 320 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - result = TRUE; -#line 320 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (column); -#line 320 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 320 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return result; -#line 1883 "DatabaseTable.c" - } -#line 313 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (column); -#line 1887 "DatabaseTable.c" - } - } - } - } -#line 324 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - result = FALSE; -#line 324 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 324 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return result; -#line 1898 "DatabaseTable.c" -} - - -gboolean -database_table_has_table (const gchar* table_name) -{ - gboolean result = FALSE; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - sqlite3_stmt* _tmp3_ = NULL; - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; -#line 327 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (table_name != NULL, FALSE); -#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = database_table_db; -#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = g_strdup_printf ("PRAGMA table_info(%s)", table_name); -#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp2_ = _tmp1_; -#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp4_ = sqlite3_prepare_v2 (_tmp0_, _tmp2_, -1, &_tmp3_, NULL); -#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - stmt = _tmp3_; -#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp5_ = _tmp4_; -#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp2_); -#line 329 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = _tmp5_; -#line 330 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp6_ = res; -#line 330 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (_tmp6_ == SQLITE_OK, "res == Sqlite.OK"); -#line 332 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_step (stmt); -#line 334 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp7_ = res; -#line 334 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - result = _tmp7_ != SQLITE_DONE; -#line 334 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 334 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return result; -#line 1950 "DatabaseTable.c" -} - - -gboolean -database_table_add_column (const gchar* table_name, - const gchar* column_name, - const gchar* column_constraints) -{ - gboolean result = FALSE; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - sqlite3_stmt* _tmp3_ = NULL; - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; - sqlite3_stmt* _tmp7_; - gint _tmp8_; -#line 337 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (table_name != NULL, FALSE); -#line 337 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (column_name != NULL, FALSE); -#line 337 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (column_constraints != NULL, FALSE); -#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = database_table_db; -#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = g_strdup_printf ("ALTER TABLE %s ADD COLUMN %s %s", table_name, column_name, column_constraints); -#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp2_ = _tmp1_; -#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp4_ = sqlite3_prepare_v2 (_tmp0_, _tmp2_, -1, &_tmp3_, NULL); -#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - stmt = _tmp3_; -#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp5_ = _tmp4_; -#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp2_); -#line 339 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = _tmp5_; -#line 341 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp6_ = res; -#line 341 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (_tmp6_ == SQLITE_OK, "res == Sqlite.OK"); -#line 343 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp7_ = stmt; -#line 343 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_step (_tmp7_); -#line 344 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp8_ = res; -#line 344 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp8_ != SQLITE_DONE) { -#line 2007 "DatabaseTable.c" - gint _tmp9_; - sqlite3* _tmp10_; - const gchar* _tmp11_; -#line 345 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp9_ = res; -#line 345 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp10_ = database_table_db; -#line 345 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp11_ = sqlite3_errmsg (_tmp10_); -#line 345 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_critical ("DatabaseTable.vala:345: Unable to add column %s %s %s: (%d) %s", table_name, column_name, column_constraints, _tmp9_, _tmp11_); -#line 348 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - result = FALSE; -#line 348 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 348 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return result; -#line 2025 "DatabaseTable.c" - } -#line 351 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - result = TRUE; -#line 351 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 351 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return result; -#line 2033 "DatabaseTable.c" -} - - -gboolean -database_table_ensure_column (const gchar* table_name, - const gchar* column_name, - const gchar* column_constraints, - const gchar* upgrade_msg) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; -#line 357 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (table_name != NULL, FALSE); -#line 357 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (column_name != NULL, FALSE); -#line 357 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (column_constraints != NULL, FALSE); -#line 357 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (upgrade_msg != NULL, FALSE); -#line 359 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (!database_table_has_table (table_name)) { -#line 359 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = TRUE; -#line 2057 "DatabaseTable.c" - } else { -#line 359 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = database_table_has_column (table_name, column_name); -#line 2061 "DatabaseTable.c" - } -#line 359 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp0_) { -#line 360 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - result = TRUE; -#line 360 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return result; -#line 2069 "DatabaseTable.c" - } -#line 362 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_message ("DatabaseTable.vala:362: %s", upgrade_msg); -#line 364 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - result = database_table_add_column (table_name, column_name, column_constraints); -#line 364 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return result; -#line 2077 "DatabaseTable.c" -} - - -gint -database_table_get_row_count (DatabaseTable* self) -{ - gint result = 0; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - sqlite3_stmt* _tmp4_ = NULL; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - gint _tmp9_; - sqlite3_stmt* _tmp14_; -#line 367 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (IS_DATABASE_TABLE (self), 0); -#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = database_table_db; -#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = self->table_name; -#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp2_ = g_strdup_printf ("SELECT COUNT(id) AS RowCount FROM %s", _tmp1_); -#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp3_ = _tmp2_; -#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp5_ = sqlite3_prepare_v2 (_tmp0_, _tmp3_, -1, &_tmp4_, NULL); -#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - stmt = _tmp4_; -#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp6_ = _tmp5_; -#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (_tmp3_); -#line 369 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = _tmp6_; -#line 370 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp7_ = res; -#line 370 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 372 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp8_ = stmt; -#line 372 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = sqlite3_step (_tmp8_); -#line 373 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp9_ = res; -#line 373 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp9_ != SQLITE_ROW) { -#line 2132 "DatabaseTable.c" - const gchar* _tmp10_; - gint _tmp11_; - sqlite3* _tmp12_; - const gchar* _tmp13_; -#line 374 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp10_ = self->table_name; -#line 374 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp11_ = res; -#line 374 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp12_ = database_table_db; -#line 374 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp13_ = sqlite3_errmsg (_tmp12_); -#line 374 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_critical ("DatabaseTable.vala:374: Unable to retrieve row count on %s: (%d) %s", _tmp10_, _tmp11_, _tmp13_); -#line 376 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - result = 0; -#line 376 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 376 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return result; -#line 2153 "DatabaseTable.c" - } -#line 379 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp14_ = stmt; -#line 379 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - result = sqlite3_column_int (_tmp14_, 0); -#line 379 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _sqlite3_finalize0 (stmt); -#line 379 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return result; -#line 2163 "DatabaseTable.c" -} - - -void -database_table_begin_transaction (void) -{ - gint _tmp0_; - gint res = 0; - sqlite3* _tmp1_; - gint _tmp2_; - gint _tmp3_; -#line 384 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = database_table_in_transaction; -#line 384 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_in_transaction = _tmp0_ + 1; -#line 384 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp0_ != 0) { -#line 385 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 2183 "DatabaseTable.c" - } -#line 387 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = database_table_db; -#line 387 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp2_ = _sqlite3_exec (_tmp1_, "BEGIN TRANSACTION", NULL, NULL, NULL); -#line 387 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = _tmp2_; -#line 388 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp3_ = res; -#line 388 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 2195 "DatabaseTable.c" -} - - -void -database_table_commit_transaction (GError** error) -{ - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint res = 0; - sqlite3* _tmp3_; - gint _tmp4_; - gint _tmp5_; - GError * _inner_error_ = NULL; -#line 393 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp0_ = database_table_in_transaction; -#line 393 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _vala_assert (_tmp0_ > 0, "in_transaction > 0"); -#line 394 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp1_ = database_table_in_transaction; -#line 394 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_in_transaction = _tmp1_ - 1; -#line 394 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp2_ = database_table_in_transaction; -#line 394 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp2_ != 0) { -#line 395 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 2224 "DatabaseTable.c" - } -#line 397 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp3_ = database_table_db; -#line 397 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp4_ = _sqlite3_exec (_tmp3_, "COMMIT TRANSACTION", NULL, NULL, NULL); -#line 397 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - res = _tmp4_; -#line 398 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp5_ = res; -#line 398 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_tmp5_ != SQLITE_DONE) { -#line 2236 "DatabaseTable.c" - gint _tmp6_; -#line 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _tmp6_ = res; -#line 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_throw_error ("commit_transaction", _tmp6_, &_inner_error_); -#line 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_propagate_error (error, _inner_error_); -#line 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 2250 "DatabaseTable.c" - } else { -#line 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_clear_error (&_inner_error_); -#line 399 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return; -#line 2258 "DatabaseTable.c" - } - } - } -} - - -DatabaseTable* -database_table_construct (GType object_type) -{ - DatabaseTable* self = NULL; -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - self = (DatabaseTable*) g_type_create_instance (object_type); -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return self; -#line 2273 "DatabaseTable.c" -} - - -static void -value_database_table_init (GValue* value) -{ -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - value->data[0].v_pointer = NULL; -#line 2282 "DatabaseTable.c" -} - - -static void -value_database_table_free_value (GValue* value) -{ -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (value->data[0].v_pointer) { -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_unref (value->data[0].v_pointer); -#line 2293 "DatabaseTable.c" - } -} - - -static void -value_database_table_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (src_value->data[0].v_pointer) { -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - dest_value->data[0].v_pointer = database_table_ref (src_value->data[0].v_pointer); -#line 2306 "DatabaseTable.c" - } else { -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - dest_value->data[0].v_pointer = NULL; -#line 2310 "DatabaseTable.c" - } -} - - -static gpointer -value_database_table_peek_pointer (const GValue* value) -{ -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return value->data[0].v_pointer; -#line 2320 "DatabaseTable.c" -} - - -static gchar* -value_database_table_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (collect_values[0].v_pointer) { -#line 2332 "DatabaseTable.c" - DatabaseTable * object; - object = collect_values[0].v_pointer; -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (object->parent_instance.g_class == NULL) { -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2339 "DatabaseTable.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2343 "DatabaseTable.c" - } -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - value->data[0].v_pointer = database_table_ref (object); -#line 2347 "DatabaseTable.c" - } else { -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - value->data[0].v_pointer = NULL; -#line 2351 "DatabaseTable.c" - } -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return NULL; -#line 2355 "DatabaseTable.c" -} - - -static gchar* -value_database_table_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - DatabaseTable ** object_p; - object_p = collect_values[0].v_pointer; -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (!object_p) { -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2371 "DatabaseTable.c" - } -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (!value->data[0].v_pointer) { -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - *object_p = NULL; -#line 2377 "DatabaseTable.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - *object_p = value->data[0].v_pointer; -#line 2381 "DatabaseTable.c" - } else { -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - *object_p = database_table_ref (value->data[0].v_pointer); -#line 2385 "DatabaseTable.c" - } -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return NULL; -#line 2389 "DatabaseTable.c" -} - - -GParamSpec* -param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecDatabaseTable* spec; -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_DATABASE_TABLE), NULL); -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return G_PARAM_SPEC (spec); -#line 2409 "DatabaseTable.c" -} - - -gpointer -value_get_database_table (const GValue* value) -{ -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATABASE_TABLE), NULL); -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return value->data[0].v_pointer; -#line 2420 "DatabaseTable.c" -} - - -void -value_set_database_table (GValue* value, - gpointer v_object) -{ - DatabaseTable * old; -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATABASE_TABLE)); -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - old = value->data[0].v_pointer; -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (v_object) { -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DATABASE_TABLE)); -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - value->data[0].v_pointer = v_object; -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_ref (value->data[0].v_pointer); -#line 2443 "DatabaseTable.c" - } else { -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - value->data[0].v_pointer = NULL; -#line 2447 "DatabaseTable.c" - } -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (old) { -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_unref (old); -#line 2453 "DatabaseTable.c" - } -} - - -void -value_take_database_table (GValue* value, - gpointer v_object) -{ - DatabaseTable * old; -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DATABASE_TABLE)); -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - old = value->data[0].v_pointer; -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (v_object) { -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DATABASE_TABLE)); -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - value->data[0].v_pointer = v_object; -#line 2475 "DatabaseTable.c" - } else { -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - value->data[0].v_pointer = NULL; -#line 2479 "DatabaseTable.c" - } -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (old) { -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_unref (old); -#line 2485 "DatabaseTable.c" - } -} - - -static void -database_table_class_init (DatabaseTableClass * klass) -{ -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - database_table_parent_class = g_type_class_peek_parent (klass); -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - ((DatabaseTableClass *) klass)->finalize = database_table_finalize; -#line 2497 "DatabaseTable.c" -} - - -static void -database_table_instance_init (DatabaseTable * self) -{ -#line 30 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - self->table_name = NULL; -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - self->ref_count = 1; -#line 2508 "DatabaseTable.c" -} - - -static void -database_table_finalize (DatabaseTable * obj) -{ - DatabaseTable * self; -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DATABASE_TABLE, DatabaseTable); -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_signal_handlers_destroy (self); -#line 30 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - _g_free0 (self->table_name); -#line 2522 "DatabaseTable.c" -} - - -GType -database_table_get_type (void) -{ - static volatile gsize database_table_type_id__volatile = 0; - if (g_once_init_enter (&database_table_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_database_table_init, value_database_table_free_value, value_database_table_copy_value, value_database_table_peek_pointer, "p", value_database_table_collect_value, "p", value_database_table_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (DatabaseTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) database_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DatabaseTable), 0, (GInstanceInitFunc) database_table_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType database_table_type_id; - database_table_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DatabaseTable", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&database_table_type_id__volatile, database_table_type_id); - } - return database_table_type_id__volatile; -} - - -gpointer -database_table_ref (gpointer instance) -{ - DatabaseTable * self; - self = instance; -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_atomic_int_inc (&self->ref_count); -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - return instance; -#line 2551 "DatabaseTable.c" -} - - -void -database_table_unref (gpointer instance) -{ - DatabaseTable * self; - self = instance; -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - DATABASE_TABLE_GET_CLASS (self)->finalize (self); -#line 16 "/home/jens/Source/shotwell/src/db/DatabaseTable.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2566 "DatabaseTable.c" - } -} - - - diff --git a/src/db/Db.c b/src/db/Db.c deleted file mode 100644 index cafe2e4..0000000 --- a/src/db/Db.c +++ /dev/null @@ -1,742 +0,0 @@ -/* Db.c generated by valac 0.40.4, the Vala compiler - * generated from Db.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include - -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define DB_TYPE_VERIFY_RESULT (db_verify_result_get_type ()) - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; - -#define TYPE_VERSION_TABLE (version_table_get_type ()) -#define VERSION_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VERSION_TABLE, VersionTable)) -#define VERSION_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VERSION_TABLE, VersionTableClass)) -#define IS_VERSION_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VERSION_TABLE)) -#define IS_VERSION_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VERSION_TABLE)) -#define VERSION_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VERSION_TABLE, VersionTableClass)) - -typedef struct _VersionTable VersionTable; -typedef struct _VersionTableClass VersionTableClass; -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) - -#define TYPE_APPLICATION (application_get_type ()) -#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application)) -#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass)) -#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION)) -#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION)) -#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass)) - -typedef struct _Application Application; -typedef struct _ApplicationClass ApplicationClass; -#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef enum { - DB_VERIFY_RESULT_OK, - DB_VERIFY_RESULT_FUTURE_VERSION, - DB_VERIFY_RESULT_UPGRADE_ERROR, - DB_VERIFY_RESULT_NO_UPGRADE_AVAILABLE -} DbVerifyResult; - - -extern gchar* db_filename; -gchar* db_filename = NULL; - -#define DB_IN_MEMORY_NAME ":memory:" -void db_preconfigure (GFile* db_file); -void db_init (GError** error); -void database_table_init (const gchar* filename); -void db_terminate (void); -void database_table_terminate (void); -GType db_verify_result_get_type (void) G_GNUC_CONST; -DbVerifyResult db_verify_database (gchar* * app_version, - gint* schema_version); -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType version_table_get_type (void) G_GNUC_CONST; -VersionTable* version_table_get_instance (void); -gint version_table_get_version (VersionTable* self, - gchar* * app_version); -#define DATABASE_TABLE_SCHEMA_VERSION 20 -#define RESOURCES_APP_VERSION _VERSION -void version_table_set_version (VersionTable* self, - gint version, - const gchar* app_version, - const gchar* user_data); -DbVerifyResult db_upgrade_database (gint input_version); -gboolean database_table_has_column (const gchar* table_name, - const gchar* column_name); -gboolean database_table_add_column (const gchar* table_name, - const gchar* column_name, - const gchar* column_constraints); -gboolean database_table_has_table (const gchar* table_name); -gboolean database_table_ensure_column (const gchar* table_name, - const gchar* column_name, - const gchar* column_constraints, - const gchar* upgrade_msg); -void tag_table_upgrade_for_htags (void); -void gsettings_configuration_engine_run_gsettings_migrator (void); -gpointer application_ref (gpointer instance); -void application_unref (gpointer instance); -GParamSpec* param_spec_application (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_application (GValue* value, - gpointer v_object); -void value_take_application (GValue* value, - gpointer v_object); -gpointer value_get_application (const GValue* value); -GType application_get_type (void) G_GNUC_CONST; -Application* application_get_instance (void); -void application_set_raw_thumbs_fix_required (Application* self, - gboolean should_fixup); -void version_table_update_version (VersionTable* self, - gint version, - const gchar* app_version); - - -void -db_preconfigure (GFile* db_file) -{ - gchar* _tmp0_ = NULL; - gchar* _tmp3_; -#line 14 "/home/jens/Source/shotwell/src/db/Db.vala" - g_return_if_fail ((db_file == NULL) || G_IS_FILE (db_file)); -#line 15 "/home/jens/Source/shotwell/src/db/Db.vala" - if (db_file != NULL) { -#line 144 "Db.c" - gchar* _tmp1_; -#line 15 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp1_ = g_file_get_path (db_file); -#line 15 "/home/jens/Source/shotwell/src/db/Db.vala" - _g_free0 (_tmp0_); -#line 15 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp0_ = _tmp1_; -#line 152 "Db.c" - } else { - gchar* _tmp2_; -#line 15 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp2_ = g_strdup (DB_IN_MEMORY_NAME); -#line 15 "/home/jens/Source/shotwell/src/db/Db.vala" - _g_free0 (_tmp0_); -#line 15 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp0_ = _tmp2_; -#line 161 "Db.c" - } -#line 15 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp3_ = g_strdup (_tmp0_); -#line 15 "/home/jens/Source/shotwell/src/db/Db.vala" - _g_free0 (db_filename); -#line 15 "/home/jens/Source/shotwell/src/db/Db.vala" - db_filename = _tmp3_; -#line 14 "/home/jens/Source/shotwell/src/db/Db.vala" - _g_free0 (_tmp0_); -#line 171 "Db.c" -} - - -void -db_init (GError** error) -{ - const gchar* _tmp0_; - const gchar* _tmp1_; -#line 19 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp0_ = db_filename; -#line 19 "/home/jens/Source/shotwell/src/db/Db.vala" - _vala_assert (_tmp0_ != NULL, "filename != null"); -#line 21 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp1_ = db_filename; -#line 21 "/home/jens/Source/shotwell/src/db/Db.vala" - database_table_init (_tmp1_); -#line 188 "Db.c" -} - - -void -db_terminate (void) -{ -#line 25 "/home/jens/Source/shotwell/src/db/Db.vala" - database_table_terminate (); -#line 197 "Db.c" -} - - -GType -db_verify_result_get_type (void) -{ - static volatile gsize db_verify_result_type_id__volatile = 0; - if (g_once_init_enter (&db_verify_result_type_id__volatile)) { - static const GEnumValue values[] = {{DB_VERIFY_RESULT_OK, "DB_VERIFY_RESULT_OK", "ok"}, {DB_VERIFY_RESULT_FUTURE_VERSION, "DB_VERIFY_RESULT_FUTURE_VERSION", "future-version"}, {DB_VERIFY_RESULT_UPGRADE_ERROR, "DB_VERIFY_RESULT_UPGRADE_ERROR", "upgrade-error"}, {DB_VERIFY_RESULT_NO_UPGRADE_AVAILABLE, "DB_VERIFY_RESULT_NO_UPGRADE_AVAILABLE", "no-upgrade-available"}, {0, NULL, NULL}}; - GType db_verify_result_type_id; - db_verify_result_type_id = g_enum_register_static ("DbVerifyResult", values); - g_once_init_leave (&db_verify_result_type_id__volatile, db_verify_result_type_id); - } - return db_verify_result_type_id__volatile; -} - - -DbVerifyResult -db_verify_database (gchar* * app_version, - gint* schema_version) -{ - gchar* _vala_app_version = NULL; - gint _vala_schema_version = 0; - DbVerifyResult result = 0; - VersionTable* version_table = NULL; - VersionTable* _tmp0_; - VersionTable* _tmp1_; - gchar* _tmp2_ = NULL; - gint _tmp3_; - gint _tmp4_; - gint _tmp7_; -#line 36 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp0_ = version_table_get_instance (); -#line 36 "/home/jens/Source/shotwell/src/db/Db.vala" - version_table = _tmp0_; -#line 37 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp1_ = version_table; -#line 37 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp3_ = version_table_get_version (_tmp1_, &_tmp2_); -#line 37 "/home/jens/Source/shotwell/src/db/Db.vala" - _g_free0 (_vala_app_version); -#line 37 "/home/jens/Source/shotwell/src/db/Db.vala" - _vala_app_version = _tmp2_; -#line 37 "/home/jens/Source/shotwell/src/db/Db.vala" - _vala_schema_version = _tmp3_; -#line 39 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp4_ = _vala_schema_version; -#line 39 "/home/jens/Source/shotwell/src/db/Db.vala" - if (_tmp4_ >= 0) { -#line 247 "Db.c" - gint _tmp5_; - const gchar* _tmp6_; -#line 40 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp5_ = _vala_schema_version; -#line 40 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp6_ = _vala_app_version; -#line 40 "/home/jens/Source/shotwell/src/db/Db.vala" - g_debug ("Db.vala:40: Database schema version %d created by app version %s", _tmp5_, _tmp6_); -#line 256 "Db.c" - } -#line 42 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp7_ = _vala_schema_version; -#line 42 "/home/jens/Source/shotwell/src/db/Db.vala" - if (_tmp7_ == -1) { -#line 262 "Db.c" - VersionTable* _tmp8_; - gchar* _tmp9_; -#line 44 "/home/jens/Source/shotwell/src/db/Db.vala" - g_debug ("Db.vala:44: Creating database schema version %d for app version %s", DATABASE_TABLE_SCHEMA_VERSION, RESOURCES_APP_VERSION); -#line 46 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp8_ = version_table; -#line 46 "/home/jens/Source/shotwell/src/db/Db.vala" - version_table_set_version (_tmp8_, DATABASE_TABLE_SCHEMA_VERSION, RESOURCES_APP_VERSION, NULL); -#line 47 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp9_ = g_strdup (RESOURCES_APP_VERSION); -#line 47 "/home/jens/Source/shotwell/src/db/Db.vala" - _g_free0 (_vala_app_version); -#line 47 "/home/jens/Source/shotwell/src/db/Db.vala" - _vala_app_version = _tmp9_; -#line 48 "/home/jens/Source/shotwell/src/db/Db.vala" - _vala_schema_version = DATABASE_TABLE_SCHEMA_VERSION; -#line 279 "Db.c" - } else { - gint _tmp10_; -#line 49 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp10_ = _vala_schema_version; -#line 49 "/home/jens/Source/shotwell/src/db/Db.vala" - if (_tmp10_ > DATABASE_TABLE_SCHEMA_VERSION) { -#line 51 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_FUTURE_VERSION; -#line 51 "/home/jens/Source/shotwell/src/db/Db.vala" - _database_table_unref0 (version_table); -#line 51 "/home/jens/Source/shotwell/src/db/Db.vala" - if (app_version) { -#line 51 "/home/jens/Source/shotwell/src/db/Db.vala" - *app_version = _vala_app_version; -#line 294 "Db.c" - } else { -#line 51 "/home/jens/Source/shotwell/src/db/Db.vala" - _g_free0 (_vala_app_version); -#line 298 "Db.c" - } -#line 51 "/home/jens/Source/shotwell/src/db/Db.vala" - if (schema_version) { -#line 51 "/home/jens/Source/shotwell/src/db/Db.vala" - *schema_version = _vala_schema_version; -#line 304 "Db.c" - } -#line 51 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 308 "Db.c" - } else { - gint _tmp11_; -#line 52 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp11_ = _vala_schema_version; -#line 52 "/home/jens/Source/shotwell/src/db/Db.vala" - if (_tmp11_ < DATABASE_TABLE_SCHEMA_VERSION) { -#line 315 "Db.c" - DbVerifyResult _result_ = 0; - gint _tmp12_; - DbVerifyResult _tmp13_; -#line 54 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp12_ = _vala_schema_version; -#line 54 "/home/jens/Source/shotwell/src/db/Db.vala" - _result_ = db_upgrade_database (_tmp12_); -#line 55 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp13_ = _result_; -#line 55 "/home/jens/Source/shotwell/src/db/Db.vala" - if (_tmp13_ != DB_VERIFY_RESULT_OK) { -#line 56 "/home/jens/Source/shotwell/src/db/Db.vala" - result = _result_; -#line 56 "/home/jens/Source/shotwell/src/db/Db.vala" - _database_table_unref0 (version_table); -#line 56 "/home/jens/Source/shotwell/src/db/Db.vala" - if (app_version) { -#line 56 "/home/jens/Source/shotwell/src/db/Db.vala" - *app_version = _vala_app_version; -#line 335 "Db.c" - } else { -#line 56 "/home/jens/Source/shotwell/src/db/Db.vala" - _g_free0 (_vala_app_version); -#line 339 "Db.c" - } -#line 56 "/home/jens/Source/shotwell/src/db/Db.vala" - if (schema_version) { -#line 56 "/home/jens/Source/shotwell/src/db/Db.vala" - *schema_version = _vala_schema_version; -#line 345 "Db.c" - } -#line 56 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 349 "Db.c" - } - } - } - } -#line 59 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_OK; -#line 59 "/home/jens/Source/shotwell/src/db/Db.vala" - _database_table_unref0 (version_table); -#line 59 "/home/jens/Source/shotwell/src/db/Db.vala" - if (app_version) { -#line 59 "/home/jens/Source/shotwell/src/db/Db.vala" - *app_version = _vala_app_version; -#line 362 "Db.c" - } else { -#line 59 "/home/jens/Source/shotwell/src/db/Db.vala" - _g_free0 (_vala_app_version); -#line 366 "Db.c" - } -#line 59 "/home/jens/Source/shotwell/src/db/Db.vala" - if (schema_version) { -#line 59 "/home/jens/Source/shotwell/src/db/Db.vala" - *schema_version = _vala_schema_version; -#line 372 "Db.c" - } -#line 59 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 376 "Db.c" -} - - -DbVerifyResult -db_upgrade_database (gint input_version) -{ - DbVerifyResult result = 0; - gint version = 0; - gint _tmp0_; - gint _tmp1_; - gboolean _tmp2_ = FALSE; - gint _tmp5_; - VersionTable* _tmp6_; - VersionTable* _tmp7_; - gint _tmp8_; - gint _tmp9_; -#line 63 "/home/jens/Source/shotwell/src/db/Db.vala" - _vala_assert (input_version < DATABASE_TABLE_SCHEMA_VERSION, "input_version < DatabaseTable.SCHEMA_VERSION"); -#line 65 "/home/jens/Source/shotwell/src/db/Db.vala" - version = input_version; -#line 68 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp0_ = version; -#line 68 "/home/jens/Source/shotwell/src/db/Db.vala" - if (_tmp0_ == 1) { -#line 69 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_NO_UPGRADE_AVAILABLE; -#line 69 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 405 "Db.c" - } -#line 71 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp1_ = version; -#line 71 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:71: Upgrading database from schema version %d to %d", _tmp1_, DATABASE_TABLE_SCHEMA_VERSION); -#line 83 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_has_column ("PhotoTable", "flags")) { -#line 84 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:84: upgrade_database: adding flags column to PhotoTable"); -#line 85 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_add_column ("PhotoTable", "flags", "INTEGER DEFAULT 0")) { -#line 86 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 86 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 421 "Db.c" - } - } -#line 89 "/home/jens/Source/shotwell/src/db/Db.vala" - version = 3; -#line 100 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_has_column ("PhotoTable", "file_format")) { -#line 101 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:101: upgrade_database: adding file_format column to PhotoTable"); -#line 102 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_add_column ("PhotoTable", "file_format", "INTEGER DEFAULT 0")) { -#line 103 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 103 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 436 "Db.c" - } - } -#line 106 "/home/jens/Source/shotwell/src/db/Db.vala" - version = 4; -#line 113 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_has_column ("PhotoTable", "title")) { -#line 114 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:114: upgrade_database: adding title column to PhotoTable"); -#line 115 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_add_column ("PhotoTable", "title", "TEXT")) { -#line 116 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 116 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 451 "Db.c" - } - } -#line 119 "/home/jens/Source/shotwell/src/db/Db.vala" - version = 5; -#line 126 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_has_column ("PhotoTable", "backlinks")) { -#line 127 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:127: upgrade_database: adding backlinks column to PhotoTable"); -#line 128 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_add_column ("PhotoTable", "backlinks", "TEXT")) { -#line 129 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 129 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 466 "Db.c" - } - } -#line 132 "/home/jens/Source/shotwell/src/db/Db.vala" - version = 6; -#line 146 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_has_column ("PhotoTable", "time_reimported")) { -#line 147 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:147: upgrade_database: adding time_reimported column to PhotoT" \ -"able"); -#line 148 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_add_column ("PhotoTable", "time_reimported", "INTEGER")) { -#line 149 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 149 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 481 "Db.c" - } - } -#line 152 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_has_column ("PhotoTable", "editable_id")) { -#line 153 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:153: upgrade_database: adding editable_id column to PhotoTable"); -#line 154 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_add_column ("PhotoTable", "editable_id", "INTEGER DEFAULT -1")) { -#line 155 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 155 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 494 "Db.c" - } - } -#line 158 "/home/jens/Source/shotwell/src/db/Db.vala" - version = 7; -#line 170 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_has_column ("PhotoTable", "rating")) { -#line 171 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:171: upgrade_database: adding rating column to PhotoTable"); -#line 172 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_add_column ("PhotoTable", "rating", "INTEGER DEFAULT 0")) { -#line 173 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 173 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 509 "Db.c" - } - } -#line 182 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_has_column ("PhotoTable", "metadata_dirty")) { -#line 183 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:183: upgrade_database: adding metadata_dirty column to PhotoTa" \ -"ble"); -#line 184 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_add_column ("PhotoTable", "metadata_dirty", "INTEGER DEFAULT 1")) { -#line 185 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 185 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 522 "Db.c" - } - } -#line 188 "/home/jens/Source/shotwell/src/db/Db.vala" - version = 9; -#line 195 "/home/jens/Source/shotwell/src/db/Db.vala" - if (database_table_has_table ("VideoTable")) { -#line 195 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp2_ = !database_table_has_column ("VideoTable", "flags"); -#line 531 "Db.c" - } else { -#line 195 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp2_ = FALSE; -#line 535 "Db.c" - } -#line 195 "/home/jens/Source/shotwell/src/db/Db.vala" - if (_tmp2_) { -#line 196 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:196: upgrade_database: adding flags column to VideoTable"); -#line 197 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_add_column ("VideoTable", "flags", "INTEGER DEFAULT 0")) { -#line 198 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 198 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 547 "Db.c" - } - } -#line 201 "/home/jens/Source/shotwell/src/db/Db.vala" - version = 10; -#line 208 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_has_column ("EventTable", "primary_source_id")) { -#line 209 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:209: upgrade_database: adding primary_source_id column to Even" \ -"tTable"); -#line 210 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_add_column ("EventTable", "primary_source_id", "TEXT")) { -#line 211 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 211 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 562 "Db.c" - } - } -#line 214 "/home/jens/Source/shotwell/src/db/Db.vala" - version = 11; -#line 221 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_ensure_column ("TombstoneTable", "reason", "INTEGER DEFAULT 0", "upgrade_database: adding reason column to TombstoneTable")) { -#line 223 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 223 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 573 "Db.c" - } -#line 226 "/home/jens/Source/shotwell/src/db/Db.vala" - version = 12; -#line 233 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_has_column ("PhotoTable", "developer")) { -#line 234 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:234: upgrade_database: adding developer column to PhotoTable"); -#line 235 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_add_column ("PhotoTable", "developer", "TEXT")) { -#line 236 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 236 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 587 "Db.c" - } - } -#line 239 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_has_column ("PhotoTable", "develop_shotwell_id")) { -#line 240 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:240: upgrade_database: adding develop_shotwell_id column to Ph" \ -"otoTable"); -#line 241 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_add_column ("PhotoTable", "develop_shotwell_id", "INTEGER DEFAULT -1")) { -#line 242 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 242 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 600 "Db.c" - } - } -#line 245 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_has_column ("PhotoTable", "develop_camera_id")) { -#line 246 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:246: upgrade_database: adding develop_camera_id column to Phot" \ -"oTable"); -#line 247 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_add_column ("PhotoTable", "develop_camera_id", "INTEGER DEFAULT -1")) { -#line 248 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 248 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 613 "Db.c" - } - } -#line 251 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_has_column ("PhotoTable", "develop_embedded_id")) { -#line 252 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:252: upgrade_database: adding develop_embedded_id column to Ph" \ -"otoTable"); -#line 253 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_add_column ("PhotoTable", "develop_embedded_id", "INTEGER DEFAULT -1")) { -#line 254 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 254 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 626 "Db.c" - } - } -#line 257 "/home/jens/Source/shotwell/src/db/Db.vala" - version = 13; -#line 264 "/home/jens/Source/shotwell/src/db/Db.vala" - if (input_version < 14) { -#line 265 "/home/jens/Source/shotwell/src/db/Db.vala" - tag_table_upgrade_for_htags (); -#line 635 "Db.c" - } -#line 267 "/home/jens/Source/shotwell/src/db/Db.vala" - version = 14; -#line 279 "/home/jens/Source/shotwell/src/db/Db.vala" - version = 15; -#line 289 "/home/jens/Source/shotwell/src/db/Db.vala" - if (input_version < 16) { -#line 292 "/home/jens/Source/shotwell/src/db/Db.vala" - gsettings_configuration_engine_run_gsettings_migrator (); -#line 645 "Db.c" - } -#line 295 "/home/jens/Source/shotwell/src/db/Db.vala" - version = 16; -#line 302 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_has_column ("PhotoTable", "comment")) { -#line 303 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:303: upgrade_database: adding comment column to PhotoTable"); -#line 304 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_add_column ("PhotoTable", "comment", "TEXT")) { -#line 305 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 305 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 659 "Db.c" - } - } -#line 307 "/home/jens/Source/shotwell/src/db/Db.vala" - if (database_table_has_table ("VideoTable") & (!database_table_has_column ("VideoTable", "comment"))) { -#line 308 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:308: upgrade_database: adding comment column to VideoTable"); -#line 309 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_add_column ("VideoTable", "comment", "TEXT")) { -#line 310 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 310 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 672 "Db.c" - } - } -#line 313 "/home/jens/Source/shotwell/src/db/Db.vala" - version = 17; -#line 320 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_has_column ("EventTable", "comment")) { -#line 321 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:321: upgrade_database: adding comment column to EventTable"); -#line 322 "/home/jens/Source/shotwell/src/db/Db.vala" - if (!database_table_add_column ("EventTable", "comment", "TEXT")) { -#line 323 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_UPGRADE_ERROR; -#line 323 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 687 "Db.c" - } - } -#line 326 "/home/jens/Source/shotwell/src/db/Db.vala" - version = 18; -#line 337 "/home/jens/Source/shotwell/src/db/Db.vala" - if (input_version < 19) { -#line 694 "Db.c" - Application* _tmp3_; - Application* _tmp4_; -#line 338 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp3_ = application_get_instance (); -#line 338 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp4_ = _tmp3_; -#line 338 "/home/jens/Source/shotwell/src/db/Db.vala" - application_set_raw_thumbs_fix_required (_tmp4_, TRUE); -#line 338 "/home/jens/Source/shotwell/src/db/Db.vala" - _application_unref0 (_tmp4_); -#line 705 "Db.c" - } -#line 341 "/home/jens/Source/shotwell/src/db/Db.vala" - version = 19; -#line 351 "/home/jens/Source/shotwell/src/db/Db.vala" - version = 20; -#line 357 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp5_ = version; -#line 357 "/home/jens/Source/shotwell/src/db/Db.vala" - _vala_assert (_tmp5_ == DATABASE_TABLE_SCHEMA_VERSION, "version == DatabaseTable.SCHEMA_VERSION"); -#line 358 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp6_ = version_table_get_instance (); -#line 358 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp7_ = _tmp6_; -#line 358 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp8_ = version; -#line 358 "/home/jens/Source/shotwell/src/db/Db.vala" - version_table_update_version (_tmp7_, _tmp8_, RESOURCES_APP_VERSION); -#line 358 "/home/jens/Source/shotwell/src/db/Db.vala" - _database_table_unref0 (_tmp7_); -#line 360 "/home/jens/Source/shotwell/src/db/Db.vala" - _tmp9_ = version; -#line 360 "/home/jens/Source/shotwell/src/db/Db.vala" - g_message ("Db.vala:360: Database upgrade to schema version %d successful", _tmp9_); -#line 362 "/home/jens/Source/shotwell/src/db/Db.vala" - result = DB_VERIFY_RESULT_OK; -#line 362 "/home/jens/Source/shotwell/src/db/Db.vala" - return result; -#line 733 "Db.c" -} - - - diff --git a/src/db/EventTable.c b/src/db/EventTable.c deleted file mode 100644 index ce14303..0000000 --- a/src/db/EventTable.c +++ /dev/null @@ -1,1901 +0,0 @@ -/* EventTable.c generated by valac 0.40.4, the Vala compiler - * generated from EventTable.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_EVENT_ID (event_id_get_type ()) -typedef struct _EventID EventID; - -#define TYPE_EVENT_ROW (event_row_get_type ()) -#define EVENT_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_ROW, EventRow)) -#define EVENT_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_ROW, EventRowClass)) -#define IS_EVENT_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_ROW)) -#define IS_EVENT_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_ROW)) -#define EVENT_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_ROW, EventRowClass)) - -typedef struct _EventRow EventRow; -typedef struct _EventRowClass EventRowClass; -typedef struct _EventRowPrivate EventRowPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _ParamSpecEventRow ParamSpecEventRow; - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; -typedef struct _DatabaseTablePrivate DatabaseTablePrivate; - -#define TYPE_EVENT_TABLE (event_table_get_type ()) -#define EVENT_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_TABLE, EventTable)) -#define EVENT_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_TABLE, EventTableClass)) -#define IS_EVENT_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_TABLE)) -#define IS_EVENT_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_TABLE)) -#define EVENT_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_TABLE, EventTableClass)) - -typedef struct _EventTable EventTable; -typedef struct _EventTableClass EventTableClass; -typedef struct _EventTablePrivate EventTablePrivate; -#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL))) -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) - -#define TYPE_PHOTO_ID (photo_id_get_type ()) -typedef struct _PhotoID PhotoID; -#define _event_row_unref0(var) ((var == NULL) ? NULL : (var = (event_row_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _EventID { - gint64 id; -}; - -struct _EventRow { - GTypeInstance parent_instance; - volatile int ref_count; - EventRowPrivate * priv; - EventID event_id; - gchar* name; - time_t time_created; - gchar* primary_source_id; - gchar* comment; -}; - -struct _EventRowClass { - GTypeClass parent_class; - void (*finalize) (EventRow *self); -}; - -struct _ParamSpecEventRow { - GParamSpec parent_instance; -}; - -struct _DatabaseTable { - GTypeInstance parent_instance; - volatile int ref_count; - DatabaseTablePrivate * priv; - gchar* table_name; -}; - -struct _DatabaseTableClass { - GTypeClass parent_class; - void (*finalize) (DatabaseTable *self); -}; - -struct _EventTable { - DatabaseTable parent_instance; - EventTablePrivate * priv; -}; - -struct _EventTableClass { - DatabaseTableClass parent_class; -}; - -struct _PhotoID { - gint64 id; -}; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () - -static gpointer event_row_parent_class = NULL; -static gpointer event_table_parent_class = NULL; -static EventTable* event_table_instance; -static EventTable* event_table_instance = NULL; -extern sqlite3* database_table_db; - -GType event_id_get_type (void) G_GNUC_CONST; -EventID* event_id_dup (const EventID* self); -void event_id_free (EventID* self); -#define EVENT_ID_INVALID ((gint64) -1) -void event_id_init (EventID *self, - gint64 id); -gboolean event_id_is_invalid (EventID *self); -gboolean event_id_is_valid (EventID *self); -gpointer event_row_ref (gpointer instance); -void event_row_unref (gpointer instance); -GParamSpec* param_spec_event_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_event_row (GValue* value, - gpointer v_object); -void value_take_event_row (GValue* value, - gpointer v_object); -gpointer value_get_event_row (const GValue* value); -GType event_row_get_type (void) G_GNUC_CONST; -EventRow* event_row_new (void); -EventRow* event_row_construct (GType object_type); -static void event_row_finalize (EventRow * obj); -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType event_table_get_type (void) G_GNUC_CONST; -static EventTable* event_table_new (void); -static EventTable* event_table_construct (GType object_type); -DatabaseTable* database_table_construct (GType object_type); -void database_table_fatal (const gchar* op, - gint res); -void database_table_set_table_name (DatabaseTable* self, - const gchar* table_name); -EventTable* event_table_get_instance (void); -static gchar* event_table_source_id_upgrade (EventTable* self, - gint64 primary_photo_id, - const gchar* primary_source_id); -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -gboolean media_collection_registry_is_valid_source_id (MediaCollectionRegistry* self, - const gchar* source_id); -#define PHOTO_ID_INVALID ((gint64) -1) -GType photo_id_get_type (void) G_GNUC_CONST; -PhotoID* photo_id_dup (const PhotoID* self); -void photo_id_free (PhotoID* self); -gchar* photo_id_upgrade_photo_id_to_source_id (PhotoID* photo_id); -void photo_id_init (PhotoID *self, - gint64 id); -GQuark database_error_quark (void); -EventRow* event_table_create (EventTable* self, - const gchar* primary_source_id, - const gchar* comment, - GError** error); -gulong now_sec (void); -void database_table_throw_error (const gchar* method, - gint res, - GError** error); -void event_table_create_from_row (EventTable* self, - EventRow* row, - EventID* result); -EventRow* event_table_get_row (EventTable* self, - EventID* event_id); -void event_table_remove (EventTable* self, - EventID* event_id, - GError** error); -void database_table_delete_by_id (DatabaseTable* self, - gint64 id, - GError** error); -GeeArrayList* event_table_get_events (EventTable* self); -gboolean event_table_rename (EventTable* self, - EventID* event_id, - const gchar* name); -gboolean database_table_update_text_by_id (DatabaseTable* self, - gint64 id, - const gchar* column, - const gchar* text); -gchar* event_table_get_name (EventTable* self, - EventID* event_id); -gboolean database_table_select_by_id (DatabaseTable* self, - gint64 id, - const gchar* columns, - sqlite3_stmt* * stmt); -gchar* event_table_get_primary_source_id (EventTable* self, - EventID* event_id); -gboolean event_table_set_primary_source_id (EventTable* self, - EventID* event_id, - const gchar* primary_source_id); -time_t event_table_get_time_created (EventTable* self, - EventID* event_id); -gboolean event_table_set_comment (EventTable* self, - EventID* event_id, - const gchar* new_comment); -static void event_table_finalize (DatabaseTable * obj); - - -void -event_id_init (EventID *self, - gint64 id) -{ -#line 12 "/home/jens/Source/shotwell/src/db/EventTable.vala" - memset (self, 0, sizeof (EventID)); -#line 13 "/home/jens/Source/shotwell/src/db/EventTable.vala" - (*self).id = id; -#line 274 "EventTable.c" -} - - -gboolean -event_id_is_invalid (EventID *self) -{ - gboolean result = FALSE; - gint64 _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = (*self).id; -#line 17 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = _tmp0_ == EVENT_ID_INVALID; -#line 17 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 289 "EventTable.c" -} - - -gboolean -event_id_is_valid (EventID *self) -{ - gboolean result = FALSE; - gint64 _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = (*self).id; -#line 21 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = _tmp0_ != EVENT_ID_INVALID; -#line 21 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 304 "EventTable.c" -} - - -EventID* -event_id_dup (const EventID* self) -{ - EventID* dup; -#line 7 "/home/jens/Source/shotwell/src/db/EventTable.vala" - dup = g_new0 (EventID, 1); -#line 7 "/home/jens/Source/shotwell/src/db/EventTable.vala" - memcpy (dup, self, sizeof (EventID)); -#line 7 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return dup; -#line 318 "EventTable.c" -} - - -void -event_id_free (EventID* self) -{ -#line 7 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_free (self); -#line 327 "EventTable.c" -} - - -GType -event_id_get_type (void) -{ - static volatile gsize event_id_type_id__volatile = 0; - if (g_once_init_enter (&event_id_type_id__volatile)) { - GType event_id_type_id; - event_id_type_id = g_boxed_type_register_static ("EventID", (GBoxedCopyFunc) event_id_dup, (GBoxedFreeFunc) event_id_free); - g_once_init_leave (&event_id_type_id__volatile, event_id_type_id); - } - return event_id_type_id__volatile; -} - - -EventRow* -event_row_construct (GType object_type) -{ - EventRow* self = NULL; -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - self = (EventRow*) g_type_create_instance (object_type); -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return self; -#line 352 "EventTable.c" -} - - -EventRow* -event_row_new (void) -{ -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return event_row_construct (TYPE_EVENT_ROW); -#line 361 "EventTable.c" -} - - -static void -value_event_row_init (GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - value->data[0].v_pointer = NULL; -#line 370 "EventTable.c" -} - - -static void -value_event_row_free_value (GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - event_row_unref (value->data[0].v_pointer); -#line 381 "EventTable.c" - } -} - - -static void -value_event_row_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (src_value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - dest_value->data[0].v_pointer = event_row_ref (src_value->data[0].v_pointer); -#line 394 "EventTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - dest_value->data[0].v_pointer = NULL; -#line 398 "EventTable.c" - } -} - - -static gpointer -value_event_row_peek_pointer (const GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return value->data[0].v_pointer; -#line 408 "EventTable.c" -} - - -static gchar* -value_event_row_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (collect_values[0].v_pointer) { -#line 420 "EventTable.c" - EventRow * object; - object = collect_values[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (object->parent_instance.g_class == NULL) { -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 427 "EventTable.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 431 "EventTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - value->data[0].v_pointer = event_row_ref (object); -#line 435 "EventTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - value->data[0].v_pointer = NULL; -#line 439 "EventTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return NULL; -#line 443 "EventTable.c" -} - - -static gchar* -value_event_row_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - EventRow ** object_p; - object_p = collect_values[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (!object_p) { -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 459 "EventTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (!value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - *object_p = NULL; -#line 465 "EventTable.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - *object_p = value->data[0].v_pointer; -#line 469 "EventTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - *object_p = event_row_ref (value->data[0].v_pointer); -#line 473 "EventTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return NULL; -#line 477 "EventTable.c" -} - - -GParamSpec* -param_spec_event_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecEventRow* spec; -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_EVENT_ROW), NULL); -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return G_PARAM_SPEC (spec); -#line 497 "EventTable.c" -} - - -gpointer -value_get_event_row (const GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_EVENT_ROW), NULL); -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return value->data[0].v_pointer; -#line 508 "EventTable.c" -} - - -void -value_set_event_row (GValue* value, - gpointer v_object) -{ - EventRow * old; -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_EVENT_ROW)); -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - old = value->data[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (v_object) { -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_EVENT_ROW)); -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - value->data[0].v_pointer = v_object; -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - event_row_ref (value->data[0].v_pointer); -#line 531 "EventTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - value->data[0].v_pointer = NULL; -#line 535 "EventTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (old) { -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - event_row_unref (old); -#line 541 "EventTable.c" - } -} - - -void -value_take_event_row (GValue* value, - gpointer v_object) -{ - EventRow * old; -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_EVENT_ROW)); -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - old = value->data[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (v_object) { -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_EVENT_ROW)); -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - value->data[0].v_pointer = v_object; -#line 563 "EventTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - value->data[0].v_pointer = NULL; -#line 567 "EventTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (old) { -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - event_row_unref (old); -#line 573 "EventTable.c" - } -} - - -static void -event_row_class_init (EventRowClass * klass) -{ -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - event_row_parent_class = g_type_class_peek_parent (klass); -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - ((EventRowClass *) klass)->finalize = event_row_finalize; -#line 585 "EventTable.c" -} - - -static void -event_row_instance_init (EventRow * self) -{ -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - self->ref_count = 1; -#line 594 "EventTable.c" -} - - -static void -event_row_finalize (EventRow * obj) -{ - EventRow * self; -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENT_ROW, EventRow); -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_signal_handlers_destroy (self); -#line 27 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _g_free0 (self->name); -#line 29 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _g_free0 (self->primary_source_id); -#line 30 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _g_free0 (self->comment); -#line 612 "EventTable.c" -} - - -GType -event_row_get_type (void) -{ - static volatile gsize event_row_type_id__volatile = 0; - if (g_once_init_enter (&event_row_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_event_row_init, value_event_row_free_value, value_event_row_copy_value, value_event_row_peek_pointer, "p", value_event_row_collect_value, "p", value_event_row_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (EventRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventRow), 0, (GInstanceInitFunc) event_row_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType event_row_type_id; - event_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "EventRow", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&event_row_type_id__volatile, event_row_type_id); - } - return event_row_type_id__volatile; -} - - -gpointer -event_row_ref (gpointer instance) -{ - EventRow * self; - self = instance; -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_atomic_int_inc (&self->ref_count); -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return instance; -#line 641 "EventTable.c" -} - - -void -event_row_unref (gpointer instance) -{ - EventRow * self; - self = instance; -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - EVENT_ROW_GET_CLASS (self)->finalize (self); -#line 25 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 656 "EventTable.c" - } -} - - -static EventTable* -event_table_construct (GType object_type) -{ - EventTable* self = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gint _tmp5_; -#line 36 "/home/jens/Source/shotwell/src/db/EventTable.vala" - self = (EventTable*) database_table_construct (object_type); -#line 38 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = database_table_db; -#line 38 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS EventTable (" "id INTEGER PRIMARY KEY, " "name TEXT, " "primary_photo_id INTEGER, " "time_created INTEGER," "primary_source_id TEXT," "comment TEXT" ")", -1, &_tmp1_, NULL); -#line 38 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 38 "/home/jens/Source/shotwell/src/db/EventTable.vala" - stmt = _tmp1_; -#line 38 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = _tmp2_; -#line 46 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp3_ = res; -#line 46 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 48 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp4_ = stmt; -#line 48 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = sqlite3_step (_tmp4_); -#line 49 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp5_ = res; -#line 49 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (_tmp5_ != SQLITE_DONE) { -#line 697 "EventTable.c" - gint _tmp6_; -#line 50 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp6_ = res; -#line 50 "/home/jens/Source/shotwell/src/db/EventTable.vala" - database_table_fatal ("create photo table", _tmp6_); -#line 703 "EventTable.c" - } -#line 52 "/home/jens/Source/shotwell/src/db/EventTable.vala" - database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), "EventTable"); -#line 36 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 36 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return self; -#line 711 "EventTable.c" -} - - -static EventTable* -event_table_new (void) -{ -#line 36 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return event_table_construct (TYPE_EVENT_TABLE); -#line 720 "EventTable.c" -} - - -static gpointer -_database_table_ref0 (gpointer self) -{ -#line 59 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return self ? database_table_ref (self) : NULL; -#line 729 "EventTable.c" -} - - -EventTable* -event_table_get_instance (void) -{ - EventTable* result = NULL; - EventTable* _tmp0_; - EventTable* _tmp2_; - EventTable* _tmp3_; -#line 56 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = event_table_instance; -#line 56 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (_tmp0_ == NULL) { -#line 744 "EventTable.c" - EventTable* _tmp1_; -#line 57 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp1_ = event_table_new (); -#line 57 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _database_table_unref0 (event_table_instance); -#line 57 "/home/jens/Source/shotwell/src/db/EventTable.vala" - event_table_instance = _tmp1_; -#line 752 "EventTable.c" - } -#line 59 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp2_ = event_table_instance; -#line 59 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp3_ = _database_table_ref0 (_tmp2_); -#line 59 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = _tmp3_; -#line 59 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 762 "EventTable.c" -} - - -static gchar* -event_table_source_id_upgrade (EventTable* self, - gint64 primary_photo_id, - const gchar* primary_source_id) -{ - gchar* result = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - gboolean _tmp2_; -#line 63 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (IS_EVENT_TABLE (self), NULL); -#line 64 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 64 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp1_ = _tmp0_; -#line 64 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp2_ = media_collection_registry_is_valid_source_id (_tmp1_, primary_source_id); -#line 64 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 64 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (_tmp2_) { -#line 787 "EventTable.c" - gchar* _tmp3_; -#line 65 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp3_ = g_strdup (primary_source_id); -#line 65 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = _tmp3_; -#line 65 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 795 "EventTable.c" - } -#line 67 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (primary_photo_id != PHOTO_ID_INVALID) { -#line 799 "EventTable.c" - PhotoID _tmp4_ = {0}; - gchar* _tmp5_; -#line 69 "/home/jens/Source/shotwell/src/db/EventTable.vala" - photo_id_init (&_tmp4_, primary_photo_id); -#line 69 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp5_ = photo_id_upgrade_photo_id_to_source_id (&_tmp4_); -#line 69 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = _tmp5_; -#line 69 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 810 "EventTable.c" - } -#line 71 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = NULL; -#line 71 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 816 "EventTable.c" -} - - -EventRow* -event_table_create (EventTable* self, - const gchar* primary_source_id, - const gchar* comment, - GError** error) -{ - EventRow* result = NULL; - gboolean _tmp0_ = FALSE; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp1_; - sqlite3_stmt* _tmp2_ = NULL; - gint _tmp3_; - gint _tmp4_; - time_t time_created = 0; - sqlite3_stmt* _tmp5_; - gchar* _tmp6_; - GDestroyNotify _tmp7_; - gint _tmp8_; - sqlite3_stmt* _tmp9_; - time_t _tmp10_; - gint _tmp11_; - sqlite3_stmt* _tmp12_; - gchar* _tmp13_; - GDestroyNotify _tmp14_; - gint _tmp15_; - sqlite3_stmt* _tmp16_; - gint _tmp17_; - EventRow* row = NULL; - EventRow* _tmp19_; - EventRow* _tmp20_; - sqlite3* _tmp21_; - EventRow* _tmp22_; - EventRow* _tmp23_; - gchar* _tmp24_; - EventRow* _tmp25_; - time_t _tmp26_; - EventRow* _tmp27_; - gchar* _tmp28_; - GError * _inner_error_ = NULL; -#line 74 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (IS_EVENT_TABLE (self), NULL); -#line 75 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (primary_source_id != NULL) { -#line 75 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = g_strcmp0 (primary_source_id, "") != 0; -#line 866 "EventTable.c" - } else { -#line 75 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = FALSE; -#line 870 "EventTable.c" - } -#line 75 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _vala_assert (_tmp0_, "primary_source_id != null && primary_source_id != \"\""); -#line 78 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp1_ = database_table_db; -#line 78 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp3_ = sqlite3_prepare_v2 (_tmp1_, "INSERT INTO EventTable (primary_source_id, time_created, comment) VALU" \ -"ES (?, ?, ?)", -1, &_tmp2_, NULL); -#line 78 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 78 "/home/jens/Source/shotwell/src/db/EventTable.vala" - stmt = _tmp2_; -#line 78 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = _tmp3_; -#line 81 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp4_ = res; -#line 81 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _vala_assert (_tmp4_ == SQLITE_OK, "res == Sqlite.OK"); -#line 83 "/home/jens/Source/shotwell/src/db/EventTable.vala" - time_created = (time_t) now_sec (); -#line 85 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp5_ = stmt; -#line 85 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp6_ = g_strdup (primary_source_id); -#line 85 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp7_ = g_free; -#line 85 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = sqlite3_bind_text (_tmp5_, 1, _tmp6_, -1, _tmp7_); -#line 86 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp8_ = res; -#line 86 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK"); -#line 87 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp9_ = stmt; -#line 87 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp10_ = time_created; -#line 87 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = sqlite3_bind_int64 (_tmp9_, 2, (gint64) _tmp10_); -#line 88 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp11_ = res; -#line 88 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK"); -#line 89 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp12_ = stmt; -#line 89 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp13_ = g_strdup (comment); -#line 89 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp14_ = g_free; -#line 89 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = sqlite3_bind_text (_tmp12_, 3, _tmp13_, -1, _tmp14_); -#line 90 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp15_ = res; -#line 90 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _vala_assert (_tmp15_ == SQLITE_OK, "res == Sqlite.OK"); -#line 92 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp16_ = stmt; -#line 92 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = sqlite3_step (_tmp16_); -#line 93 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp17_ = res; -#line 93 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (_tmp17_ != SQLITE_DONE) { -#line 932 "EventTable.c" - gint _tmp18_; -#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp18_ = res; -#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala" - database_table_throw_error ("EventTable.create", _tmp18_, &_inner_error_); -#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_propagate_error (error, _inner_error_); -#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return NULL; -#line 948 "EventTable.c" - } else { -#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_clear_error (&_inner_error_); -#line 94 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return NULL; -#line 958 "EventTable.c" - } - } - } -#line 96 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp19_ = event_row_new (); -#line 96 "/home/jens/Source/shotwell/src/db/EventTable.vala" - row = _tmp19_; -#line 97 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp20_ = row; -#line 97 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp21_ = database_table_db; -#line 97 "/home/jens/Source/shotwell/src/db/EventTable.vala" - event_id_init (&_tmp20_->event_id, sqlite3_last_insert_rowid (_tmp21_)); -#line 98 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp22_ = row; -#line 98 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _g_free0 (_tmp22_->name); -#line 98 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp22_->name = NULL; -#line 99 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp23_ = row; -#line 99 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp24_ = g_strdup (primary_source_id); -#line 99 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _g_free0 (_tmp23_->primary_source_id); -#line 99 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp23_->primary_source_id = _tmp24_; -#line 100 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp25_ = row; -#line 100 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp26_ = time_created; -#line 100 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp25_->time_created = _tmp26_; -#line 101 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp27_ = row; -#line 101 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp28_ = g_strdup (comment); -#line 101 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _g_free0 (_tmp27_->comment); -#line 101 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp27_->comment = _tmp28_; -#line 103 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = row; -#line 103 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 103 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 1006 "EventTable.c" -} - - -void -event_table_create_from_row (EventTable* self, - EventRow* row, - EventID* result) -{ - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - GDestroyNotify _tmp7_; - gint _tmp8_; - sqlite3_stmt* _tmp9_; - gint _tmp10_; - sqlite3_stmt* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; - GDestroyNotify _tmp14_; - gint _tmp15_; - sqlite3_stmt* _tmp16_; - time_t _tmp17_; - gint _tmp18_; - sqlite3_stmt* _tmp19_; - const gchar* _tmp20_; - gchar* _tmp21_; - GDestroyNotify _tmp22_; - gint _tmp23_; - sqlite3_stmt* _tmp24_; - gint _tmp25_; - sqlite3* _tmp28_; - EventID _tmp29_ = {0}; -#line 109 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_if_fail (IS_EVENT_TABLE (self)); -#line 109 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_if_fail (IS_EVENT_ROW (row)); -#line 111 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = database_table_db; -#line 111 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO EventTable (name, primary_photo_id, primary_source_id, tim" \ -"e_created, comment) VALUES (?, ?, ?, ?, ?)", -1, &_tmp1_, NULL); -#line 111 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 111 "/home/jens/Source/shotwell/src/db/EventTable.vala" - stmt = _tmp1_; -#line 111 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = _tmp2_; -#line 113 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp3_ = res; -#line 113 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 115 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp4_ = stmt; -#line 115 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp5_ = row->name; -#line 115 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 115 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp7_ = g_free; -#line 115 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = sqlite3_bind_text (_tmp4_, 1, _tmp6_, -1, _tmp7_); -#line 116 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp8_ = res; -#line 116 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK"); -#line 117 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp9_ = stmt; -#line 117 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = sqlite3_bind_int64 (_tmp9_, 2, PHOTO_ID_INVALID); -#line 118 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp10_ = res; -#line 118 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _vala_assert (_tmp10_ == SQLITE_OK, "res == Sqlite.OK"); -#line 119 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp11_ = stmt; -#line 119 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp12_ = row->primary_source_id; -#line 119 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp13_ = g_strdup (_tmp12_); -#line 119 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp14_ = g_free; -#line 119 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = sqlite3_bind_text (_tmp11_, 3, _tmp13_, -1, _tmp14_); -#line 120 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp15_ = res; -#line 120 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _vala_assert (_tmp15_ == SQLITE_OK, "res == Sqlite.OK"); -#line 121 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp16_ = stmt; -#line 121 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp17_ = row->time_created; -#line 121 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = sqlite3_bind_int64 (_tmp16_, 4, (gint64) _tmp17_); -#line 122 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp18_ = res; -#line 122 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _vala_assert (_tmp18_ == SQLITE_OK, "res == Sqlite.OK"); -#line 123 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp19_ = stmt; -#line 123 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp20_ = row->comment; -#line 123 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp21_ = g_strdup (_tmp20_); -#line 123 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp22_ = g_free; -#line 123 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = sqlite3_bind_text (_tmp19_, 5, _tmp21_, -1, _tmp22_); -#line 124 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp23_ = res; -#line 124 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _vala_assert (_tmp23_ == SQLITE_OK, "res == Sqlite.OK"); -#line 126 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp24_ = stmt; -#line 126 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = sqlite3_step (_tmp24_); -#line 127 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp25_ = res; -#line 127 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (_tmp25_ != SQLITE_DONE) { -#line 1131 "EventTable.c" - gint _tmp26_; - EventID _tmp27_ = {0}; -#line 128 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp26_ = res; -#line 128 "/home/jens/Source/shotwell/src/db/EventTable.vala" - database_table_fatal ("Event create_from_row", _tmp26_); -#line 130 "/home/jens/Source/shotwell/src/db/EventTable.vala" - event_id_init (&_tmp27_, EVENT_ID_INVALID); -#line 130 "/home/jens/Source/shotwell/src/db/EventTable.vala" - *result = _tmp27_; -#line 130 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 130 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return; -#line 1146 "EventTable.c" - } -#line 133 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp28_ = database_table_db; -#line 133 "/home/jens/Source/shotwell/src/db/EventTable.vala" - event_id_init (&_tmp29_, sqlite3_last_insert_rowid (_tmp28_)); -#line 133 "/home/jens/Source/shotwell/src/db/EventTable.vala" - *result = _tmp29_; -#line 133 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 133 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return; -#line 1158 "EventTable.c" -} - - -EventRow* -event_table_get_row (EventTable* self, - EventID* event_id) -{ - EventRow* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - EventID _tmp5_; - gint64 _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - EventRow* row = NULL; - EventRow* _tmp9_; - EventRow* _tmp10_; - EventID _tmp11_; - EventRow* _tmp12_; - sqlite3_stmt* _tmp13_; - const gchar* _tmp14_; - gchar* _tmp15_; - gboolean _tmp16_ = FALSE; - EventRow* _tmp17_; - const gchar* _tmp18_; - EventRow* _tmp24_; - sqlite3_stmt* _tmp25_; - sqlite3_stmt* _tmp26_; - const gchar* _tmp27_; - gchar* _tmp28_; - EventRow* _tmp29_; - sqlite3_stmt* _tmp30_; - EventRow* _tmp31_; - sqlite3_stmt* _tmp32_; - const gchar* _tmp33_; - gchar* _tmp34_; -#line 136 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (IS_EVENT_TABLE (self), NULL); -#line 136 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (event_id != NULL, NULL); -#line 138 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = database_table_db; -#line 138 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT name, primary_photo_id, primary_source_id, time_created, commen" \ -"t FROM EventTable WHERE id=?", -1, &_tmp1_, NULL); -#line 138 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 138 "/home/jens/Source/shotwell/src/db/EventTable.vala" - stmt = _tmp1_; -#line 138 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = _tmp2_; -#line 140 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp3_ = res; -#line 140 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 142 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp4_ = stmt; -#line 142 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp5_ = *event_id; -#line 142 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp6_ = _tmp5_.id; -#line 142 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_); -#line 143 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp7_ = res; -#line 143 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 145 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp8_ = stmt; -#line 145 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (sqlite3_step (_tmp8_) != SQLITE_ROW) { -#line 146 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = NULL; -#line 146 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 146 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 1240 "EventTable.c" - } -#line 148 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp9_ = event_row_new (); -#line 148 "/home/jens/Source/shotwell/src/db/EventTable.vala" - row = _tmp9_; -#line 149 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp10_ = row; -#line 149 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp11_ = *event_id; -#line 149 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp10_->event_id = _tmp11_; -#line 150 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp12_ = row; -#line 150 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp13_ = stmt; -#line 150 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp14_ = sqlite3_column_text (_tmp13_, 0); -#line 150 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp15_ = g_strdup (_tmp14_); -#line 150 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _g_free0 (_tmp12_->name); -#line 150 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp12_->name = _tmp15_; -#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp17_ = row; -#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp18_ = _tmp17_->name; -#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (_tmp18_ != NULL) { -#line 1270 "EventTable.c" - EventRow* _tmp19_; - const gchar* _tmp20_; - gint _tmp21_; - gint _tmp22_; -#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp19_ = row; -#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp20_ = _tmp19_->name; -#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp21_ = strlen (_tmp20_); -#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp22_ = _tmp21_; -#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp16_ = _tmp22_ == 0; -#line 1285 "EventTable.c" - } else { -#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp16_ = FALSE; -#line 1289 "EventTable.c" - } -#line 151 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (_tmp16_) { -#line 1293 "EventTable.c" - EventRow* _tmp23_; -#line 152 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp23_ = row; -#line 152 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _g_free0 (_tmp23_->name); -#line 152 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp23_->name = NULL; -#line 1301 "EventTable.c" - } -#line 153 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp24_ = row; -#line 153 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp25_ = stmt; -#line 153 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp26_ = stmt; -#line 153 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp27_ = sqlite3_column_text (_tmp26_, 2); -#line 153 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp28_ = event_table_source_id_upgrade (self, sqlite3_column_int64 (_tmp25_, 1), _tmp27_); -#line 153 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _g_free0 (_tmp24_->primary_source_id); -#line 153 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp24_->primary_source_id = _tmp28_; -#line 154 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp29_ = row; -#line 154 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp30_ = stmt; -#line 154 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp29_->time_created = (time_t) sqlite3_column_int64 (_tmp30_, 3); -#line 155 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp31_ = row; -#line 155 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp32_ = stmt; -#line 155 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp33_ = sqlite3_column_text (_tmp32_, 4); -#line 155 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp34_ = g_strdup (_tmp33_); -#line 155 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _g_free0 (_tmp31_->comment); -#line 155 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp31_->comment = _tmp34_; -#line 157 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = row; -#line 157 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 157 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 1341 "EventTable.c" -} - - -void -event_table_remove (EventTable* self, - EventID* event_id, - GError** error) -{ - EventID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 160 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_if_fail (IS_EVENT_TABLE (self)); -#line 160 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_if_fail (event_id != NULL); -#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = *event_id; -#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp1_ = _tmp0_.id; -#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala" - database_table_delete_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, &_inner_error_); -#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_propagate_error (error, _inner_error_); -#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return; -#line 1371 "EventTable.c" - } else { -#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_clear_error (&_inner_error_); -#line 161 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return; -#line 1379 "EventTable.c" - } - } -} - - -GeeArrayList* -event_table_get_events (EventTable* self) -{ - GeeArrayList* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - GeeArrayList* event_rows = NULL; - GeeArrayList* _tmp4_; -#line 164 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (IS_EVENT_TABLE (self), NULL); -#line 166 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = database_table_db; -#line 166 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id, name, primary_photo_id, primary_source_id, time_created, co" \ -"mment FROM EventTable", -1, &_tmp1_, NULL); -#line 166 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 166 "/home/jens/Source/shotwell/src/db/EventTable.vala" - stmt = _tmp1_; -#line 166 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = _tmp2_; -#line 168 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp3_ = res; -#line 168 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 170 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp4_ = gee_array_list_new (TYPE_EVENT_ROW, (GBoxedCopyFunc) event_row_ref, (GDestroyNotify) event_row_unref, NULL, NULL, NULL); -#line 170 "/home/jens/Source/shotwell/src/db/EventTable.vala" - event_rows = _tmp4_; -#line 1417 "EventTable.c" - { - gboolean _tmp5_ = FALSE; -#line 171 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp5_ = TRUE; -#line 171 "/home/jens/Source/shotwell/src/db/EventTable.vala" - while (TRUE) { -#line 1424 "EventTable.c" - sqlite3_stmt* _tmp6_; - gint _tmp7_; - EventRow* row = NULL; - EventRow* _tmp10_; - EventRow* _tmp11_; - sqlite3_stmt* _tmp12_; - EventRow* _tmp13_; - sqlite3_stmt* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; - EventRow* _tmp17_; - sqlite3_stmt* _tmp18_; - sqlite3_stmt* _tmp19_; - const gchar* _tmp20_; - gchar* _tmp21_; - EventRow* _tmp22_; - sqlite3_stmt* _tmp23_; - EventRow* _tmp24_; - sqlite3_stmt* _tmp25_; - const gchar* _tmp26_; - gchar* _tmp27_; - GeeArrayList* _tmp28_; - EventRow* _tmp29_; -#line 171 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (!_tmp5_) { -#line 1450 "EventTable.c" - } -#line 171 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp5_ = FALSE; -#line 172 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp6_ = stmt; -#line 172 "/home/jens/Source/shotwell/src/db/EventTable.vala" - res = sqlite3_step (_tmp6_); -#line 173 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp7_ = res; -#line 173 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (_tmp7_ == SQLITE_DONE) { -#line 174 "/home/jens/Source/shotwell/src/db/EventTable.vala" - break; -#line 1464 "EventTable.c" - } else { - gint _tmp8_; -#line 175 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp8_ = res; -#line 175 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (_tmp8_ != SQLITE_ROW) { -#line 1471 "EventTable.c" - gint _tmp9_; -#line 176 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp9_ = res; -#line 176 "/home/jens/Source/shotwell/src/db/EventTable.vala" - database_table_fatal ("get_events", _tmp9_); -#line 178 "/home/jens/Source/shotwell/src/db/EventTable.vala" - break; -#line 1479 "EventTable.c" - } - } -#line 181 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp10_ = event_row_new (); -#line 181 "/home/jens/Source/shotwell/src/db/EventTable.vala" - row = _tmp10_; -#line 183 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp11_ = row; -#line 183 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp12_ = stmt; -#line 183 "/home/jens/Source/shotwell/src/db/EventTable.vala" - event_id_init (&_tmp11_->event_id, sqlite3_column_int64 (_tmp12_, 0)); -#line 184 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp13_ = row; -#line 184 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp14_ = stmt; -#line 184 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp15_ = sqlite3_column_text (_tmp14_, 1); -#line 184 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp16_ = g_strdup (_tmp15_); -#line 184 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _g_free0 (_tmp13_->name); -#line 184 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp13_->name = _tmp16_; -#line 185 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp17_ = row; -#line 185 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp18_ = stmt; -#line 185 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp19_ = stmt; -#line 185 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp20_ = sqlite3_column_text (_tmp19_, 3); -#line 185 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp21_ = event_table_source_id_upgrade (self, sqlite3_column_int64 (_tmp18_, 2), _tmp20_); -#line 185 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _g_free0 (_tmp17_->primary_source_id); -#line 185 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp17_->primary_source_id = _tmp21_; -#line 186 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp22_ = row; -#line 186 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp23_ = stmt; -#line 186 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp22_->time_created = (time_t) sqlite3_column_int64 (_tmp23_, 4); -#line 187 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp24_ = row; -#line 187 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp25_ = stmt; -#line 187 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp26_ = sqlite3_column_text (_tmp25_, 5); -#line 187 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp27_ = g_strdup (_tmp26_); -#line 187 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _g_free0 (_tmp24_->comment); -#line 187 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp24_->comment = _tmp27_; -#line 189 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp28_ = event_rows; -#line 189 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp29_ = row; -#line 189 "/home/jens/Source/shotwell/src/db/EventTable.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp29_); -#line 171 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _event_row_unref0 (row); -#line 1544 "EventTable.c" - } - } -#line 192 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = event_rows; -#line 192 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 192 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 1553 "EventTable.c" -} - - -gboolean -event_table_rename (EventTable* self, - EventID* event_id, - const gchar* name) -{ - gboolean result = FALSE; - const gchar* _tmp0_ = NULL; - EventID _tmp1_; - gint64 _tmp2_; -#line 195 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (IS_EVENT_TABLE (self), FALSE); -#line 195 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (event_id != NULL, FALSE); -#line 196 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (name != NULL) { -#line 196 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = name; -#line 1574 "EventTable.c" - } else { -#line 196 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = ""; -#line 1578 "EventTable.c" - } -#line 196 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp1_ = *event_id; -#line 196 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp2_ = _tmp1_.id; -#line 196 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = database_table_update_text_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "name", _tmp0_); -#line 196 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 1588 "EventTable.c" -} - - -gchar* -event_table_get_name (EventTable* self, - EventID* event_id) -{ - gchar* result = NULL; - sqlite3_stmt* stmt = NULL; - EventID _tmp0_; - gint64 _tmp1_; - sqlite3_stmt* _tmp2_ = NULL; - gboolean _tmp3_; - gchar* name = NULL; - sqlite3_stmt* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - const gchar* _tmp7_ = NULL; - gboolean _tmp8_ = FALSE; - const gchar* _tmp9_; - gchar* _tmp14_; -#line 199 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (IS_EVENT_TABLE (self), NULL); -#line 199 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (event_id != NULL, NULL); -#line 201 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = *event_id; -#line 201 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp1_ = _tmp0_.id; -#line 201 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp3_ = database_table_select_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "name", &_tmp2_); -#line 201 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 201 "/home/jens/Source/shotwell/src/db/EventTable.vala" - stmt = _tmp2_; -#line 201 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (!_tmp3_) { -#line 202 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = NULL; -#line 202 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 202 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 1632 "EventTable.c" - } -#line 204 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp4_ = stmt; -#line 204 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp5_ = sqlite3_column_text (_tmp4_, 0); -#line 204 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 204 "/home/jens/Source/shotwell/src/db/EventTable.vala" - name = _tmp6_; -#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp9_ = name; -#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (_tmp9_ != NULL) { -#line 1646 "EventTable.c" - const gchar* _tmp10_; - gint _tmp11_; - gint _tmp12_; -#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp10_ = name; -#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp11_ = strlen (_tmp10_); -#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp12_ = _tmp11_; -#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp8_ = _tmp12_ > 0; -#line 1658 "EventTable.c" - } else { -#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp8_ = FALSE; -#line 1662 "EventTable.c" - } -#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (_tmp8_) { -#line 1666 "EventTable.c" - const gchar* _tmp13_; -#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp13_ = name; -#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp7_ = _tmp13_; -#line 1672 "EventTable.c" - } else { -#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp7_ = NULL; -#line 1676 "EventTable.c" - } -#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp14_ = g_strdup (_tmp7_); -#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = _tmp14_; -#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _g_free0 (name); -#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 206 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 1688 "EventTable.c" -} - - -gchar* -event_table_get_primary_source_id (EventTable* self, - EventID* event_id) -{ - gchar* result = NULL; - sqlite3_stmt* stmt = NULL; - EventID _tmp0_; - gint64 _tmp1_; - sqlite3_stmt* _tmp2_ = NULL; - gboolean _tmp3_; - sqlite3_stmt* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; -#line 209 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (IS_EVENT_TABLE (self), NULL); -#line 209 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (event_id != NULL, NULL); -#line 211 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = *event_id; -#line 211 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp1_ = _tmp0_.id; -#line 211 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp3_ = database_table_select_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "primary_source_id", &_tmp2_); -#line 211 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 211 "/home/jens/Source/shotwell/src/db/EventTable.vala" - stmt = _tmp2_; -#line 211 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (!_tmp3_) { -#line 212 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = NULL; -#line 212 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 212 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 1727 "EventTable.c" - } -#line 214 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp4_ = stmt; -#line 214 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp5_ = sqlite3_column_text (_tmp4_, 0); -#line 214 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 214 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = _tmp6_; -#line 214 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 214 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 1741 "EventTable.c" -} - - -gboolean -event_table_set_primary_source_id (EventTable* self, - EventID* event_id, - const gchar* primary_source_id) -{ - gboolean result = FALSE; - EventID _tmp0_; - gint64 _tmp1_; -#line 217 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (IS_EVENT_TABLE (self), FALSE); -#line 217 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (event_id != NULL, FALSE); -#line 217 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (primary_source_id != NULL, FALSE); -#line 218 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = *event_id; -#line 218 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp1_ = _tmp0_.id; -#line 218 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = database_table_update_text_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "primary_source_id", primary_source_id); -#line 218 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 1767 "EventTable.c" -} - - -time_t -event_table_get_time_created (EventTable* self, - EventID* event_id) -{ - time_t result = 0; - sqlite3_stmt* stmt = NULL; - EventID _tmp0_; - gint64 _tmp1_; - sqlite3_stmt* _tmp2_ = NULL; - gboolean _tmp3_; - sqlite3_stmt* _tmp4_; -#line 221 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (IS_EVENT_TABLE (self), 0); -#line 221 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (event_id != NULL, 0); -#line 223 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = *event_id; -#line 223 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp1_ = _tmp0_.id; -#line 223 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp3_ = database_table_select_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "time_created", &_tmp2_); -#line 223 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 223 "/home/jens/Source/shotwell/src/db/EventTable.vala" - stmt = _tmp2_; -#line 223 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (!_tmp3_) { -#line 224 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = (time_t) 0; -#line 224 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 224 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 1804 "EventTable.c" - } -#line 226 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp4_ = stmt; -#line 226 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = (time_t) sqlite3_column_int64 (_tmp4_, 0); -#line 226 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _sqlite3_finalize0 (stmt); -#line 226 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 1814 "EventTable.c" -} - - -gboolean -event_table_set_comment (EventTable* self, - EventID* event_id, - const gchar* new_comment) -{ - gboolean result = FALSE; - const gchar* _tmp0_ = NULL; - EventID _tmp1_; - gint64 _tmp2_; -#line 229 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (IS_EVENT_TABLE (self), FALSE); -#line 229 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (event_id != NULL, FALSE); -#line 229 "/home/jens/Source/shotwell/src/db/EventTable.vala" - g_return_val_if_fail (new_comment != NULL, FALSE); -#line 230 "/home/jens/Source/shotwell/src/db/EventTable.vala" - if (new_comment != NULL) { -#line 230 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = new_comment; -#line 1837 "EventTable.c" - } else { -#line 230 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp0_ = ""; -#line 1841 "EventTable.c" - } -#line 230 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp1_ = *event_id; -#line 230 "/home/jens/Source/shotwell/src/db/EventTable.vala" - _tmp2_ = _tmp1_.id; -#line 230 "/home/jens/Source/shotwell/src/db/EventTable.vala" - result = database_table_update_text_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "comment", _tmp0_); -#line 230 "/home/jens/Source/shotwell/src/db/EventTable.vala" - return result; -#line 1851 "EventTable.c" -} - - -static void -event_table_class_init (EventTableClass * klass) -{ -#line 33 "/home/jens/Source/shotwell/src/db/EventTable.vala" - event_table_parent_class = g_type_class_peek_parent (klass); -#line 33 "/home/jens/Source/shotwell/src/db/EventTable.vala" - ((DatabaseTableClass *) klass)->finalize = event_table_finalize; -#line 1862 "EventTable.c" -} - - -static void -event_table_instance_init (EventTable * self) -{ -} - - -static void -event_table_finalize (DatabaseTable * obj) -{ - EventTable * self; -#line 33 "/home/jens/Source/shotwell/src/db/EventTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENT_TABLE, EventTable); -#line 33 "/home/jens/Source/shotwell/src/db/EventTable.vala" - DATABASE_TABLE_CLASS (event_table_parent_class)->finalize (obj); -#line 1880 "EventTable.c" -} - - -GType -event_table_get_type (void) -{ - static volatile gsize event_table_type_id__volatile = 0; - if (g_once_init_enter (&event_table_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventTable), 0, (GInstanceInitFunc) event_table_instance_init, NULL }; - GType event_table_type_id; - event_table_type_id = g_type_register_static (TYPE_DATABASE_TABLE, "EventTable", &g_define_type_info, 0); - g_once_init_leave (&event_table_type_id__volatile, event_table_type_id); - } - return event_table_type_id__volatile; -} - - - diff --git a/src/db/FaceLocationTable.vala b/src/db/FaceLocationTable.vala new file mode 100644 index 0000000..14fef4c --- /dev/null +++ b/src/db/FaceLocationTable.vala @@ -0,0 +1,202 @@ +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + */ + +#if ENABLE_FACES + +public struct FaceLocationID { + public const int64 INVALID = -1; + + public int64 id; + + public FaceLocationID(int64 id = INVALID) { + this.id = id; + } + + public bool is_invalid() { + return (id == INVALID); + } + + public bool is_valid() { + return (id != INVALID); + } +} + +public class FaceLocationRow { + public FaceLocationID face_location_id; + public FaceID face_id; + public PhotoID photo_id; + public string geometry; +} + +public class FaceLocationTable : DatabaseTable { + private static FaceLocationTable instance = null; + + private FaceLocationTable() { + set_table_name("FaceLocationTable"); + + Sqlite.Statement stmt; + int res = db.prepare_v2("CREATE TABLE IF NOT EXISTS " + + "FaceLocationTable " + + "(" + + "id INTEGER NOT NULL PRIMARY KEY, " + + "face_id INTEGER NOT NULL, " + + "photo_id INTEGER NOT NULL, " + + "geometry TEXT" + + ")", -1, out stmt); + assert(res == Sqlite.OK); + + res = stmt.step(); + if (res != Sqlite.DONE) + fatal("create FaceLocationTable", res); + } + + public static FaceLocationTable get_instance() { + if (instance == null) + instance = new FaceLocationTable(); + + return instance; + } + + public FaceLocationRow add(FaceID face_id, PhotoID photo_id, string geometry) throws DatabaseError { + Sqlite.Statement stmt; + int res = db.prepare_v2( + "INSERT INTO FaceLocationTable (face_id, photo_id, geometry) VALUES (?, ?, ?)", + -1, out stmt); + assert(res == Sqlite.OK); + + res = stmt.bind_int64(1, face_id.id); + assert(res == Sqlite.OK); + res = stmt.bind_int64(2, photo_id.id); + assert(res == Sqlite.OK); + res = stmt.bind_text(3, geometry); + assert(res == Sqlite.OK); + + res = stmt.step(); + if (res != Sqlite.DONE) + throw_error("FaceLocationTable.add", res); + + FaceLocationRow row = new FaceLocationRow(); + row.face_location_id = FaceLocationID(db.last_insert_rowid()); + row.face_id = face_id; + row.photo_id = photo_id; + row.geometry = geometry; + + return row; + } + + public Gee.List get_all_rows() throws DatabaseError { + Sqlite.Statement stmt; + int res = db.prepare_v2( + "SELECT id, face_id, photo_id, geometry FROM FaceLocationTable", + -1, out stmt); + assert(res == Sqlite.OK); + + Gee.List rows = new Gee.ArrayList(); + + for (;;) { + res = stmt.step(); + if (res == Sqlite.DONE) + break; + else if (res != Sqlite.ROW) + throw_error("FaceLocationTable.get_all_rows", res); + + // res == Sqlite.ROW + FaceLocationRow row = new FaceLocationRow(); + row.face_location_id = FaceLocationID(stmt.column_int64(0)); + row.face_id = FaceID(stmt.column_int64(1)); + row.photo_id = PhotoID(stmt.column_int64(2)); + row.geometry = stmt.column_text(3); + + rows.add(row); + } + + return rows; + } + + public Gee.ArrayList get_face_source_ids(FaceID face_id) { + Sqlite.Statement stmt; + int res = db.prepare_v2( + "SELECT photo_id FROM FaceLocationTable WHERE face_id = ?", + -1, out stmt); + assert(res == Sqlite.OK); + + res = stmt.bind_int64(1, face_id.id); + assert(res == Sqlite.OK); + + Gee.ArrayList result = new Gee.ArrayList(); + for(;;) { + res = stmt.step(); + if (res == Sqlite.DONE) { + break; + } else if (res != Sqlite.ROW) { + fatal("get_face_source_ids", res); + + break; + } + + result.add(PhotoID.upgrade_photo_id_to_source_id(PhotoID(stmt.column_int64(0)))); + } + + return result; + } + + public string? get_face_source_serialized_geometry(Face face, MediaSource source) + throws DatabaseError { + Sqlite.Statement stmt; + int res = db.prepare_v2( + "SELECT geometry FROM FaceLocationTable WHERE face_id=? AND photo_id=?", + -1, out stmt); + assert(res == Sqlite.OK); + + res = stmt.bind_int64(1, face.get_instance_id()); + assert(res == Sqlite.OK); + res = stmt.bind_int64(2, ((Photo) source).get_instance_id()); + assert(res == Sqlite.OK); + + res = stmt.step(); + if (res == Sqlite.DONE) + return null; + else if (res != Sqlite.ROW) + throw_error("FaceLocationTable.get_face_source_serialized_geometry", res); + + return stmt.column_text(0); + } + + public void remove_face_from_source(FaceID face_id, PhotoID photo_id) throws DatabaseError { + Sqlite.Statement stmt; + int res = db.prepare_v2( + "DELETE FROM FaceLocationTable WHERE face_id=? AND photo_id=?", + -1, out stmt); + assert(res == Sqlite.OK); + + res = stmt.bind_int64(1, face_id.id); + assert(res == Sqlite.OK); + res = stmt.bind_int64(2, photo_id.id); + assert(res == Sqlite.OK); + + res = stmt.step(); + if (res != Sqlite.DONE) + throw_error("FaceLocationTable.remove_face_from_source", res); + } + + public void update_face_location_serialized_geometry(FaceLocation face_location) + throws DatabaseError { + Sqlite.Statement stmt; + int res = db.prepare_v2("UPDATE FaceLocationTable SET geometry=? WHERE id=?", -1, out stmt); + assert(res == Sqlite.OK); + + res = stmt.bind_text(1, face_location.get_serialized_geometry()); + assert(res == Sqlite.OK); + res = stmt.bind_int64(2, face_location.get_face_location_id().id); + assert(res == Sqlite.OK); + + res = stmt.step(); + if (res != Sqlite.DONE) + throw_error("FaceLocationTable.update_face_location_serialized_geometry", res); + } +} + +#endif diff --git a/src/db/FaceTable.vala b/src/db/FaceTable.vala new file mode 100644 index 0000000..a6e0bad --- /dev/null +++ b/src/db/FaceTable.vala @@ -0,0 +1,169 @@ +/* Copyright 2018 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + */ + +#if ENABLE_FACES +public struct FaceID { + public const int64 INVALID = -1; + + public int64 id; + + public FaceID(int64 id = INVALID) { + this.id = id; + } + + public bool is_invalid() { + return (id == INVALID); + } + + public bool is_valid() { + return (id != INVALID); + } +} + +public class FaceRow { + public FaceID face_id; + public string name; + public time_t time_created; +} + +public class FaceTable : DatabaseTable { + private static FaceTable instance = null; + + private FaceTable() { + set_table_name("FaceTable"); + + Sqlite.Statement stmt; + int res = db.prepare_v2("CREATE TABLE IF NOT EXISTS " + + "FaceTable " + + "(" + + "id INTEGER NOT NULL PRIMARY KEY, " + + "name TEXT NOT NULL, " + + "time_created TIMESTAMP" + + ")", -1, out stmt); + assert(res == Sqlite.OK); + + res = stmt.step(); + if (res != Sqlite.DONE) + fatal("create FaceTable", res); + } + + public static FaceTable get_instance() { + if (instance == null) + instance = new FaceTable(); + + return instance; + } + + public FaceRow add(string name) throws DatabaseError { + Sqlite.Statement stmt; + int res = db.prepare_v2("INSERT INTO FaceTable (name, time_created) VALUES (?, ?)", -1, + out stmt); + assert(res == Sqlite.OK); + + time_t time_created = (time_t) now_sec(); + + res = stmt.bind_text(1, name); + assert(res == Sqlite.OK); + res = stmt.bind_int64(2, time_created); + assert(res == Sqlite.OK); + + res = stmt.step(); + if (res != Sqlite.DONE) + throw_error("FaceTable.add", res); + + FaceRow row = new FaceRow(); + row.face_id = FaceID(db.last_insert_rowid()); + row.name = name; + row.time_created = time_created; + + return row; + } + + public FaceID create_from_row(FaceRow row) throws DatabaseError { + Sqlite.Statement stmt; + int res = db.prepare_v2("INSERT INTO FaceTable (name, time_created) VALUES (?, ?)", + -1, out stmt); + assert(res == Sqlite.OK); + + res = stmt.bind_text(1, row.name); + assert(res == Sqlite.OK); + res = stmt.bind_int64(2, row.time_created); + assert(res == Sqlite.OK); + + res = stmt.step(); + if (res != Sqlite.DONE) + throw_error("FaceTable.create_from_row", res); + + return FaceID(db.last_insert_rowid()); + } + + public void remove(FaceID face_id) throws DatabaseError { + delete_by_id(face_id.id); + } + + public string? get_name(FaceID face_id) throws DatabaseError { + Sqlite.Statement stmt; + if (!select_by_id(face_id.id, "name", out stmt)) + return null; + + return stmt.column_text(0); + } + + public FaceRow? get_row(FaceID face_id) throws DatabaseError { + Sqlite.Statement stmt; + int res = db.prepare_v2("SELECT name, time_created FROM FaceTable WHERE id=?", + -1, out stmt); + assert(res == Sqlite.OK); + + res = stmt.bind_int64(1, face_id.id); + assert(res == Sqlite.OK); + + res = stmt.step(); + if (res == Sqlite.DONE) + return null; + else if (res != Sqlite.ROW) + throw_error("FaceTable.get_row", res); + + FaceRow row = new FaceRow(); + row.face_id = face_id; + row.name = stmt.column_text(0); + row.time_created = (time_t) stmt.column_int64(1); + + return row; + } + + public Gee.List get_all_rows() throws DatabaseError { + Sqlite.Statement stmt; + int res = db.prepare_v2("SELECT id, name, time_created FROM FaceTable", -1, + out stmt); + assert(res == Sqlite.OK); + + Gee.List rows = new Gee.ArrayList(); + + for (;;) { + res = stmt.step(); + if (res == Sqlite.DONE) + break; + else if (res != Sqlite.ROW) + throw_error("FaceTable.get_all_rows", res); + + // res == Sqlite.ROW + FaceRow row = new FaceRow(); + row.face_id = FaceID(stmt.column_int64(0)); + row.name = stmt.column_text(1); + row.time_created = (time_t) stmt.column_int64(2); + + rows.add(row); + } + + return rows; + } + + public void rename(FaceID face_id, string new_name) throws DatabaseError { + update_text_by_id_2(face_id.id, "name", new_name); + } +} +#endif diff --git a/src/db/PhotoTable.c b/src/db/PhotoTable.c deleted file mode 100644 index a2832f0..0000000 --- a/src/db/PhotoTable.c +++ /dev/null @@ -1,8816 +0,0 @@ -/* PhotoTable.c generated by valac 0.40.4, the Vala compiler - * generated from PhotoTable.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include "shotwell-graphics-processor.h" -#include -#include -#include - - -#define TYPE_PHOTO_ID (photo_id_get_type ()) -typedef struct _PhotoID PhotoID; - -#define TYPE_IMPORT_ID (import_id_get_type ()) -typedef struct _ImportID ImportID; - -#define TYPE_PHOTO_ROW (photo_row_get_type ()) -#define PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_ROW, PhotoRow)) -#define PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_ROW, PhotoRowClass)) -#define IS_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_ROW)) -#define IS_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_ROW)) -#define PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_ROW, PhotoRowClass)) - -typedef struct _PhotoRow PhotoRow; -typedef struct _PhotoRowClass PhotoRowClass; -typedef struct _PhotoRowPrivate PhotoRowPrivate; - -#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ()) -#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow)) -#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) -#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW)) -#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW)) -#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) - -typedef struct _BackingPhotoRow BackingPhotoRow; -typedef struct _BackingPhotoRowClass BackingPhotoRowClass; - -#define TYPE_EVENT_ID (event_id_get_type ()) -typedef struct _EventID EventID; - -#define TYPE_ORIENTATION (orientation_get_type ()) - -#define TYPE_RATING (rating_get_type ()) - -#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ()) -typedef struct _BackingPhotoID BackingPhotoID; - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) -#define _backing_photo_row_unref0(var) ((var == NULL) ? NULL : (var = (backing_photo_row_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _ParamSpecPhotoRow ParamSpecPhotoRow; - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; -typedef struct _DatabaseTablePrivate DatabaseTablePrivate; - -#define TYPE_PHOTO_TABLE (photo_table_get_type ()) -#define PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TABLE, PhotoTable)) -#define PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TABLE, PhotoTableClass)) -#define IS_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TABLE)) -#define IS_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TABLE)) -#define PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TABLE, PhotoTableClass)) - -typedef struct _PhotoTable PhotoTable; -typedef struct _PhotoTableClass PhotoTableClass; -typedef struct _PhotoTablePrivate PhotoTablePrivate; -#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL))) -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) -typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -#define _photo_row_unref0(var) ((var == NULL) ? NULL : (var = (photo_row_unref (var), NULL))) -#define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (var), NULL))) -#define _key_value_map_unref0(var) ((var == NULL) ? NULL : (var = (key_value_map_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -typedef struct _ParamSpecBackingPhotoRow ParamSpecBackingPhotoRow; - -#define TYPE_BACKING_PHOTO_TABLE (backing_photo_table_get_type ()) -#define BACKING_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_TABLE, BackingPhotoTable)) -#define BACKING_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_TABLE, BackingPhotoTableClass)) -#define IS_BACKING_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_TABLE)) -#define IS_BACKING_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_TABLE)) -#define BACKING_PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_TABLE, BackingPhotoTableClass)) - -typedef struct _BackingPhotoTable BackingPhotoTable; -typedef struct _BackingPhotoTableClass BackingPhotoTableClass; -typedef struct _BackingPhotoTablePrivate BackingPhotoTablePrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PhotoID { - gint64 id; -}; - -struct _ImportID { - gint64 id; -}; - -struct _EventID { - gint64 id; -}; - -typedef enum { - ORIENTATION_MIN = 1, - ORIENTATION_TOP_LEFT = 1, - ORIENTATION_TOP_RIGHT = 2, - ORIENTATION_BOTTOM_RIGHT = 3, - ORIENTATION_BOTTOM_LEFT = 4, - ORIENTATION_LEFT_TOP = 5, - ORIENTATION_RIGHT_TOP = 6, - ORIENTATION_RIGHT_BOTTOM = 7, - ORIENTATION_LEFT_BOTTOM = 8, - ORIENTATION_MAX = 8 -} Orientation; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -struct _BackingPhotoID { - gint64 id; -}; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _PhotoRow { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoRowPrivate * priv; - PhotoID photo_id; - BackingPhotoRow* master; - time_t exposure_time; - ImportID import_id; - EventID event_id; - Orientation orientation; - GeeHashMap* transformations; - gchar* md5; - gchar* thumbnail_md5; - gchar* exif_md5; - time_t time_created; - guint64 flags; - Rating rating; - gchar* title; - gchar* comment; - gchar* backlinks; - time_t time_reimported; - BackingPhotoID editable_id; - gboolean metadata_dirty; - RawDeveloper developer; - BackingPhotoID* development_ids; - gint development_ids_length1; -}; - -struct _PhotoRowClass { - GTypeClass parent_class; - void (*finalize) (PhotoRow *self); -}; - -struct _ParamSpecPhotoRow { - GParamSpec parent_instance; -}; - -struct _DatabaseTable { - GTypeInstance parent_instance; - volatile int ref_count; - DatabaseTablePrivate * priv; - gchar* table_name; -}; - -struct _DatabaseTableClass { - GTypeClass parent_class; - void (*finalize) (DatabaseTable *self); -}; - -struct _PhotoTable { - DatabaseTable parent_instance; - PhotoTablePrivate * priv; -}; - -struct _PhotoTableClass { - DatabaseTableClass parent_class; -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _BackingPhotoRow { - GTypeInstance parent_instance; - volatile int ref_count; - BackingPhotoRowPrivate * priv; - BackingPhotoID id; - time_t time_created; - gchar* filepath; - gint64 filesize; - time_t timestamp; - PhotoFileFormat file_format; - Dimensions dim; - Orientation original_orientation; -}; - -struct _BackingPhotoRowClass { - GTypeClass parent_class; - void (*finalize) (BackingPhotoRow *self); -}; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -struct _ParamSpecBackingPhotoRow { - GParamSpec parent_instance; -}; - -struct _BackingPhotoTable { - DatabaseTable parent_instance; - BackingPhotoTablePrivate * priv; -}; - -struct _BackingPhotoTableClass { - DatabaseTableClass parent_class; -}; - - -static gpointer photo_row_parent_class = NULL; -static gpointer photo_table_parent_class = NULL; -static PhotoTable* photo_table_instance; -static PhotoTable* photo_table_instance = NULL; -extern sqlite3* database_table_db; -static gpointer backing_photo_row_parent_class = NULL; -static gpointer backing_photo_table_parent_class = NULL; -static BackingPhotoTable* backing_photo_table_instance; -static BackingPhotoTable* backing_photo_table_instance = NULL; - -GType photo_id_get_type (void) G_GNUC_CONST; -PhotoID* photo_id_dup (const PhotoID* self); -void photo_id_free (PhotoID* self); -#define PHOTO_ID_INVALID ((gint64) -1) -void photo_id_init (PhotoID *self, - gint64 id); -gboolean photo_id_is_invalid (PhotoID *self); -gboolean photo_id_is_valid (PhotoID *self); -guint photo_id_hash (PhotoID *self); -guint int64_hash (gint64* n); -gboolean photo_id_equal (void* a, - void* b); -gchar* photo_id_upgrade_photo_id_to_source_id (PhotoID* photo_id); -#define PHOTO_TYPENAME "thumb" -GType import_id_get_type (void) G_GNUC_CONST; -ImportID* import_id_dup (const ImportID* self); -void import_id_free (ImportID* self); -#define IMPORT_ID_INVALID ((gint64) 0) -void import_id_init (ImportID *self, - gint64 id); -void import_id_generate (ImportID* result); -gboolean import_id_is_invalid (ImportID *self); -gboolean import_id_is_valid (ImportID *self); -gint import_id_compare_func (ImportID* a, - ImportID* b); -gint64 import_id_comparator (void* a, - void* b); -gpointer photo_row_ref (gpointer instance); -void photo_row_unref (gpointer instance); -GParamSpec* param_spec_photo_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_row (GValue* value, - gpointer v_object); -void value_take_photo_row (GValue* value, - gpointer v_object); -gpointer value_get_photo_row (const GValue* value); -GType photo_row_get_type (void) G_GNUC_CONST; -gpointer backing_photo_row_ref (gpointer instance); -void backing_photo_row_unref (gpointer instance); -GParamSpec* param_spec_backing_photo_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_backing_photo_row (GValue* value, - gpointer v_object); -void value_take_backing_photo_row (GValue* value, - gpointer v_object); -gpointer value_get_backing_photo_row (const GValue* value); -GType backing_photo_row_get_type (void) G_GNUC_CONST; -GType event_id_get_type (void) G_GNUC_CONST; -EventID* event_id_dup (const EventID* self); -void event_id_free (EventID* self); -GType orientation_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -GType backing_photo_id_get_type (void) G_GNUC_CONST; -BackingPhotoID* backing_photo_id_dup (const BackingPhotoID* self); -void backing_photo_id_free (BackingPhotoID* self); -GType raw_developer_get_type (void) G_GNUC_CONST; -PhotoRow* photo_row_new (void); -PhotoRow* photo_row_construct (GType object_type); -BackingPhotoRow* backing_photo_row_new (void); -BackingPhotoRow* backing_photo_row_construct (GType object_type); -#define BACKING_PHOTO_ID_INVALID ((gint64) -1) -void backing_photo_id_init (BackingPhotoID *self, - gint64 id); -RawDeveloper* raw_developer_as_array (int* result_length1); -static void photo_row_finalize (PhotoRow * obj); -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType photo_table_get_type (void) G_GNUC_CONST; -static PhotoTable* photo_table_new (void); -static PhotoTable* photo_table_construct (GType object_type); -DatabaseTable* database_table_construct (GType object_type); -void database_table_fatal (const gchar* op, - gint res); -void database_table_warning (const gchar* op, - gint res); -void database_table_set_table_name (DatabaseTable* self, - const gchar* table_name); -PhotoTable* photo_table_get_instance (void); -void photo_table_add (PhotoTable* self, - PhotoRow* photo_row, - PhotoID* result); -gulong now_sec (void); -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -#define EVENT_ID_INVALID ((gint64) -1) -gint photo_file_format_serialize (PhotoFileFormat self); -gint rating_serialize (Rating self); -gchar* raw_developer_to_string (RawDeveloper self); -void event_id_init (EventID *self, - gint64 id); -GQuark database_error_quark (void); -void photo_table_reimport (PhotoTable* self, - PhotoRow* row, - GError** error); -void database_table_throw_error (const gchar* method, - gint res, - GError** error); -gboolean photo_table_master_exif_updated (PhotoTable* self, - PhotoID* photoID, - gint64 filesize, - glong timestamp, - const gchar* md5, - const gchar* exif_md5, - const gchar* thumbnail_md5, - PhotoRow* row); -static void photo_table_validate_orientation (PhotoTable* self, - PhotoRow* row); -gboolean photo_table_set_orientation (PhotoTable* self, - PhotoID* photo_id, - Orientation orientation); -PhotoRow* photo_table_get_row (PhotoTable* self, - PhotoID* photo_id); -void dimensions_init (Dimensions *self, - gint width, - gint height); -GeeHashMap* photo_table_marshall_all_transformations (const gchar* trans); -Rating rating_unserialize (gint value); -PhotoFileFormat photo_file_format_unserialize (gint value); -RawDeveloper raw_developer_from_string (const gchar* value); -GeeArrayList* photo_table_get_all (PhotoTable* self); -void photo_table_duplicate (PhotoTable* self, - PhotoID* photo_id, - const gchar* new_filename, - BackingPhotoID* editable_id, - BackingPhotoID* develop_shotwell, - BackingPhotoID* develop_camera_id, - BackingPhotoID* develop_embedded_id, - PhotoID* result); -gchar* photo_table_unmarshall_all_transformations (GeeHashMap* transformations); -gboolean photo_table_set_title (PhotoTable* self, - PhotoID* photo_id, - const gchar* new_title); -gboolean database_table_update_text_by_id (DatabaseTable* self, - gint64 id, - const gchar* column, - const gchar* text); -gboolean photo_table_set_comment (PhotoTable* self, - PhotoID* photo_id, - const gchar* new_comment); -void photo_table_set_filepath (PhotoTable* self, - PhotoID* photo_id, - const gchar* filepath, - GError** error); -void database_table_update_text_by_id_2 (DatabaseTable* self, - gint64 id, - const gchar* column, - const gchar* text, - GError** error); -void photo_table_update_timestamp (PhotoTable* self, - PhotoID* photo_id, - time_t timestamp, - GError** error); -void database_table_update_int64_by_id_2 (DatabaseTable* self, - gint64 id, - const gchar* column, - gint64 value, - GError** error); -gboolean photo_table_set_exposure_time (PhotoTable* self, - PhotoID* photo_id, - time_t time); -gboolean database_table_update_int64_by_id (DatabaseTable* self, - gint64 id, - const gchar* column, - gint64 value); -void photo_table_set_import_id (PhotoTable* self, - PhotoID* photo_id, - ImportID* import_id, - GError** error); -gboolean photo_table_remove_by_file (PhotoTable* self, - GFile* file); -void photo_table_remove (PhotoTable* self, - PhotoID* photo_id, - GError** error); -void database_table_delete_by_id (DatabaseTable* self, - gint64 id, - GError** error); -GeeArrayList* photo_table_get_photos (PhotoTable* self); -gboolean database_table_update_int_by_id (DatabaseTable* self, - gint64 id, - const gchar* column, - gint value); -gboolean photo_table_replace_flags (PhotoTable* self, - PhotoID* photo_id, - guint64 flags); -gboolean photo_table_set_rating (PhotoTable* self, - PhotoID* photo_id, - Rating rating); -gint photo_table_get_event_photo_count (PhotoTable* self, - EventID* event_id); -GeeArrayList* photo_table_get_event_source_ids (PhotoTable* self, - EventID* event_id); -gboolean photo_table_event_has_photos (PhotoTable* self, - EventID* event_id); -gboolean photo_table_drop_event (PhotoTable* self, - EventID* event_id); -gboolean photo_table_set_event (PhotoTable* self, - PhotoID* photo_id, - EventID* event_id); -static gchar* photo_table_get_raw_transformations (PhotoTable* self, - PhotoID* photo_id); -gboolean database_table_select_by_id (DatabaseTable* self, - gint64 id, - const gchar* columns, - sqlite3_stmt* * stmt); -static gboolean photo_table_set_raw_transformations (PhotoTable* self, - PhotoID* photo_id, - const gchar* trans); -gboolean photo_table_set_transformation_state (PhotoTable* self, - PhotoID* photo_id, - Orientation orientation, - GeeHashMap* transformations); -gboolean photo_table_set_transformation (PhotoTable* self, - PhotoID* photo_id, - KeyValueMap* map); -gboolean photo_table_remove_transformation (PhotoTable* self, - PhotoID* photo_id, - const gchar* object); -gboolean photo_table_remove_all_transformations (PhotoTable* self, - PhotoID* photo_id); -static sqlite3_stmt* photo_table_get_duplicate_stmt (PhotoTable* self, - GFile* file, - const gchar* thumbnail_md5, - const gchar* md5, - PhotoFileFormat file_format); -gboolean photo_table_has_duplicate (PhotoTable* self, - GFile* file, - const gchar* thumbnail_md5, - const gchar* md5, - PhotoFileFormat file_format); -PhotoID* photo_table_get_duplicate_ids (PhotoTable* self, - GFile* file, - const gchar* thumbnail_md5, - const gchar* md5, - PhotoFileFormat file_format, - int* result_length1); -static void _vala_array_add2 (PhotoID* * array, - int* length, - int* size, - const PhotoID* value); -void photo_table_update_backlinks (PhotoTable* self, - PhotoID* photo_id, - const gchar* backlinks, - GError** error); -void photo_table_attach_editable (PhotoTable* self, - PhotoRow* row, - BackingPhotoID* editable_id, - GError** error); -void photo_table_detach_editable (PhotoTable* self, - PhotoRow* row, - GError** error); -void photo_table_set_metadata_dirty (PhotoTable* self, - PhotoID* photo_id, - gboolean dirty, - GError** error); -void database_table_update_int_by_id_2 (DatabaseTable* self, - gint64 id, - const gchar* column, - gint value, - GError** error); -void photo_table_update_raw_development (PhotoTable* self, - PhotoRow* row, - RawDeveloper rd, - BackingPhotoID* backing_photo_id, - GError** error); -void photo_table_remove_development (PhotoTable* self, - PhotoRow* row, - RawDeveloper rd, - GError** error); -static void photo_table_finalize (DatabaseTable * obj); -gboolean backing_photo_id_is_invalid (BackingPhotoID *self); -gboolean backing_photo_id_is_valid (BackingPhotoID *self); -gboolean backing_photo_row_matches_file_info (BackingPhotoRow* self, - GFileInfo* info); -gboolean backing_photo_row_is_touched (BackingPhotoRow* self, - GFileInfo* info); -void backing_photo_row_copy_from (BackingPhotoRow* self, - BackingPhotoRow* from); -static void backing_photo_row_finalize (BackingPhotoRow * obj); -GType backing_photo_table_get_type (void) G_GNUC_CONST; -static BackingPhotoTable* backing_photo_table_new (void); -static BackingPhotoTable* backing_photo_table_construct (GType object_type); -BackingPhotoTable* backing_photo_table_get_instance (void); -void backing_photo_table_add (BackingPhotoTable* self, - BackingPhotoRow* state, - GError** error); -BackingPhotoRow* backing_photo_table_fetch (BackingPhotoTable* self, - BackingPhotoID* id, - GError** error); -void backing_photo_table_update (BackingPhotoTable* self, - BackingPhotoRow* row, - GError** error); -void backing_photo_table_update_attributes (BackingPhotoTable* self, - BackingPhotoID* id, - time_t timestamp, - gint64 filesize, - GError** error); -void backing_photo_table_remove (BackingPhotoTable* self, - BackingPhotoID* backing_id, - GError** error); -void backing_photo_table_set_filepath (BackingPhotoTable* self, - BackingPhotoID* id, - const gchar* filepath, - GError** error); -void backing_photo_table_update_timestamp (BackingPhotoTable* self, - BackingPhotoID* id, - time_t timestamp, - GError** error); -static void backing_photo_table_finalize (DatabaseTable * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -void -photo_id_init (PhotoID *self, - gint64 id) -{ -#line 12 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - memset (self, 0, sizeof (PhotoID)); -#line 13 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - (*self).id = id; -#line 629 "PhotoTable.c" -} - - -gboolean -photo_id_is_invalid (PhotoID *self) -{ - gboolean result = FALSE; - gint64 _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = (*self).id; -#line 17 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = _tmp0_ == PHOTO_ID_INVALID; -#line 17 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 644 "PhotoTable.c" -} - - -gboolean -photo_id_is_valid (PhotoID *self) -{ - gboolean result = FALSE; - gint64 _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = (*self).id; -#line 21 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = _tmp0_ != PHOTO_ID_INVALID; -#line 21 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 659 "PhotoTable.c" -} - - -guint -photo_id_hash (PhotoID *self) -{ - guint result = 0U; - gint64 _tmp0_; -#line 25 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = (*self).id; -#line 25 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = int64_hash (&_tmp0_); -#line 25 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 674 "PhotoTable.c" -} - - -gboolean -photo_id_equal (void* a, - void* b) -{ - gboolean result = FALSE; - gint64 _tmp0_; - gint64 _tmp1_; -#line 29 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = (*((PhotoID*) a)).id; -#line 29 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = (*((PhotoID*) b)).id; -#line 29 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = _tmp0_ == _tmp1_; -#line 29 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 693 "PhotoTable.c" -} - - -gchar* -photo_id_upgrade_photo_id_to_source_id (PhotoID* photo_id) -{ - gchar* result = NULL; - PhotoID _tmp0_; - gint64 _tmp1_; - gchar* _tmp2_; -#line 32 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (photo_id != NULL, NULL); -#line 33 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *photo_id; -#line 33 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.id; -#line 33 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = g_strdup_printf ("%s%016" G_GINT64_MODIFIER "x", PHOTO_TYPENAME, _tmp1_); -#line 33 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = _tmp2_; -#line 33 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 716 "PhotoTable.c" -} - - -PhotoID* -photo_id_dup (const PhotoID* self) -{ - PhotoID* dup; -#line 7 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - dup = g_new0 (PhotoID, 1); -#line 7 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - memcpy (dup, self, sizeof (PhotoID)); -#line 7 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return dup; -#line 730 "PhotoTable.c" -} - - -void -photo_id_free (PhotoID* self) -{ -#line 7 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_free (self); -#line 739 "PhotoTable.c" -} - - -GType -photo_id_get_type (void) -{ - static volatile gsize photo_id_type_id__volatile = 0; - if (g_once_init_enter (&photo_id_type_id__volatile)) { - GType photo_id_type_id; - photo_id_type_id = g_boxed_type_register_static ("PhotoID", (GBoxedCopyFunc) photo_id_dup, (GBoxedFreeFunc) photo_id_free); - g_once_init_leave (&photo_id_type_id__volatile, photo_id_type_id); - } - return photo_id_type_id__volatile; -} - - -void -import_id_init (ImportID *self, - gint64 id) -{ -#line 42 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - memset (self, 0, sizeof (ImportID)); -#line 43 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - (*self).id = id; -#line 764 "PhotoTable.c" -} - - -void -import_id_generate (ImportID* result) -{ - GTimeVal timestamp = {0}; - gint64 id = 0LL; - GTimeVal _tmp0_; - glong _tmp1_; - ImportID _tmp2_ = {0}; -#line 47 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_get_current_time (×tamp); -#line 48 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_get_current_time (×tamp); -#line 49 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = timestamp; -#line 49 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.tv_sec; -#line 49 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - id = (gint64) _tmp1_; -#line 51 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - import_id_init (&_tmp2_, id); -#line 51 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - *result = _tmp2_; -#line 51 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 792 "PhotoTable.c" -} - - -gboolean -import_id_is_invalid (ImportID *self) -{ - gboolean result = FALSE; - gint64 _tmp0_; -#line 55 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = (*self).id; -#line 55 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = _tmp0_ == IMPORT_ID_INVALID; -#line 55 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 807 "PhotoTable.c" -} - - -gboolean -import_id_is_valid (ImportID *self) -{ - gboolean result = FALSE; - gint64 _tmp0_; -#line 59 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = (*self).id; -#line 59 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = _tmp0_ != IMPORT_ID_INVALID; -#line 59 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 822 "PhotoTable.c" -} - - -gint -import_id_compare_func (ImportID* a, - ImportID* b) -{ - gint result = 0; - gboolean _tmp0_ = FALSE; - gint64 _tmp1_; - gint64 _tmp2_; -#line 63 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (a != NULL) { -#line 63 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = b != NULL; -#line 838 "PhotoTable.c" - } else { -#line 63 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = FALSE; -#line 842 "PhotoTable.c" - } -#line 63 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp0_, "a != null && b != null"); -#line 64 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = (*a).id; -#line 64 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = (*b).id; -#line 64 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = (gint) (_tmp1_ - _tmp2_); -#line 64 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 854 "PhotoTable.c" -} - - -gint64 -import_id_comparator (void* a, - void* b) -{ - gint64 result = 0LL; - gint64 _tmp0_; - gint64 _tmp1_; -#line 68 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = (*((ImportID*) a)).id; -#line 68 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = (*((ImportID*) b)).id; -#line 68 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = _tmp0_ - _tmp1_; -#line 68 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 873 "PhotoTable.c" -} - - -ImportID* -import_id_dup (const ImportID* self) -{ - ImportID* dup; -#line 37 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - dup = g_new0 (ImportID, 1); -#line 37 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - memcpy (dup, self, sizeof (ImportID)); -#line 37 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return dup; -#line 887 "PhotoTable.c" -} - - -void -import_id_free (ImportID* self) -{ -#line 37 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_free (self); -#line 896 "PhotoTable.c" -} - - -GType -import_id_get_type (void) -{ - static volatile gsize import_id_type_id__volatile = 0; - if (g_once_init_enter (&import_id_type_id__volatile)) { - GType import_id_type_id; - import_id_type_id = g_boxed_type_register_static ("ImportID", (GBoxedCopyFunc) import_id_dup, (GBoxedFreeFunc) import_id_free); - g_once_init_leave (&import_id_type_id__volatile, import_id_type_id); - } - return import_id_type_id__volatile; -} - - -PhotoRow* -photo_row_construct (GType object_type) -{ - PhotoRow* self = NULL; - BackingPhotoRow* _tmp0_; - gint _tmp1_; - RawDeveloper* _tmp2_; - RawDeveloper* _tmp3_; - gint _tmp3__length1; - BackingPhotoID* _tmp4_; - gint _tmp5_; - RawDeveloper* _tmp6_; -#line 100 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self = (PhotoRow*) g_type_create_instance (object_type); -#line 101 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = backing_photo_row_new (); -#line 101 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _backing_photo_row_unref0 (self->master); -#line 101 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->master = _tmp0_; -#line 102 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_id_init (&self->editable_id, BACKING_PHOTO_ID_INVALID); -#line 103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = raw_developer_as_array (&_tmp1_); -#line 103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = _tmp2_; -#line 103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3__length1 = _tmp1_; -#line 103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = g_new0 (BackingPhotoID, _tmp1_); -#line 103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->development_ids = (g_free (self->development_ids), NULL); -#line 103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->development_ids = _tmp4_; -#line 103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->development_ids_length1 = _tmp1_; -#line 103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = (g_free (_tmp3_), NULL); -#line 104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = raw_developer_as_array (&_tmp5_); -#line 953 "PhotoTable.c" - { - RawDeveloper* d_collection = NULL; - gint d_collection_length1 = 0; - gint _d_collection_size_ = 0; - gint d_it = 0; -#line 104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - d_collection = _tmp6_; -#line 104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - d_collection_length1 = _tmp5_; -#line 104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - for (d_it = 0; d_it < _tmp5_; d_it = d_it + 1) { -#line 965 "PhotoTable.c" - RawDeveloper d = 0; -#line 104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - d = d_collection[d_it]; -#line 969 "PhotoTable.c" - { - BackingPhotoID* _tmp7_; - gint _tmp7__length1; - RawDeveloper _tmp8_; - BackingPhotoID _tmp9_ = {0}; - BackingPhotoID _tmp10_; -#line 105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = self->development_ids; -#line 105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7__length1 = self->development_ids_length1; -#line 105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = d; -#line 105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_id_init (&_tmp9_, BACKING_PHOTO_ID_INVALID); -#line 105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_[_tmp8_] = _tmp9_; -#line 105 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = _tmp7_[_tmp8_]; -#line 988 "PhotoTable.c" - } - } -#line 104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - d_collection = (g_free (d_collection), NULL); -#line 993 "PhotoTable.c" - } -#line 100 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return self; -#line 997 "PhotoTable.c" -} - - -PhotoRow* -photo_row_new (void) -{ -#line 100 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return photo_row_construct (TYPE_PHOTO_ROW); -#line 1006 "PhotoTable.c" -} - - -static void -value_photo_row_init (GValue* value) -{ -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - value->data[0].v_pointer = NULL; -#line 1015 "PhotoTable.c" -} - - -static void -value_photo_row_free_value (GValue* value) -{ -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (value->data[0].v_pointer) { -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_row_unref (value->data[0].v_pointer); -#line 1026 "PhotoTable.c" - } -} - - -static void -value_photo_row_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (src_value->data[0].v_pointer) { -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - dest_value->data[0].v_pointer = photo_row_ref (src_value->data[0].v_pointer); -#line 1039 "PhotoTable.c" - } else { -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - dest_value->data[0].v_pointer = NULL; -#line 1043 "PhotoTable.c" - } -} - - -static gpointer -value_photo_row_peek_pointer (const GValue* value) -{ -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return value->data[0].v_pointer; -#line 1053 "PhotoTable.c" -} - - -static gchar* -value_photo_row_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (collect_values[0].v_pointer) { -#line 1065 "PhotoTable.c" - PhotoRow * object; - object = collect_values[0].v_pointer; -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (object->parent_instance.g_class == NULL) { -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1072 "PhotoTable.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1076 "PhotoTable.c" - } -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - value->data[0].v_pointer = photo_row_ref (object); -#line 1080 "PhotoTable.c" - } else { -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - value->data[0].v_pointer = NULL; -#line 1084 "PhotoTable.c" - } -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return NULL; -#line 1088 "PhotoTable.c" -} - - -static gchar* -value_photo_row_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PhotoRow ** object_p; - object_p = collect_values[0].v_pointer; -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!object_p) { -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1104 "PhotoTable.c" - } -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!value->data[0].v_pointer) { -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - *object_p = NULL; -#line 1110 "PhotoTable.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - *object_p = value->data[0].v_pointer; -#line 1114 "PhotoTable.c" - } else { -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - *object_p = photo_row_ref (value->data[0].v_pointer); -#line 1118 "PhotoTable.c" - } -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return NULL; -#line 1122 "PhotoTable.c" -} - - -GParamSpec* -param_spec_photo_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecPhotoRow* spec; -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_ROW), NULL); -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return G_PARAM_SPEC (spec); -#line 1142 "PhotoTable.c" -} - - -gpointer -value_get_photo_row (const GValue* value) -{ -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_ROW), NULL); -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return value->data[0].v_pointer; -#line 1153 "PhotoTable.c" -} - - -void -value_set_photo_row (GValue* value, - gpointer v_object) -{ - PhotoRow * old; -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_ROW)); -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - old = value->data[0].v_pointer; -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (v_object) { -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_ROW)); -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - value->data[0].v_pointer = v_object; -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_row_ref (value->data[0].v_pointer); -#line 1176 "PhotoTable.c" - } else { -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - value->data[0].v_pointer = NULL; -#line 1180 "PhotoTable.c" - } -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (old) { -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_row_unref (old); -#line 1186 "PhotoTable.c" - } -} - - -void -value_take_photo_row (GValue* value, - gpointer v_object) -{ - PhotoRow * old; -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_ROW)); -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - old = value->data[0].v_pointer; -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (v_object) { -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_ROW)); -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - value->data[0].v_pointer = v_object; -#line 1208 "PhotoTable.c" - } else { -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - value->data[0].v_pointer = NULL; -#line 1212 "PhotoTable.c" - } -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (old) { -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_row_unref (old); -#line 1218 "PhotoTable.c" - } -} - - -static void -photo_row_class_init (PhotoRowClass * klass) -{ -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_row_parent_class = g_type_class_peek_parent (klass); -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - ((PhotoRowClass *) klass)->finalize = photo_row_finalize; -#line 1230 "PhotoTable.c" -} - - -static void -photo_row_instance_init (PhotoRow * self) -{ -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->ref_count = 1; -#line 1239 "PhotoTable.c" -} - - -static void -photo_row_finalize (PhotoRow * obj) -{ - PhotoRow * self; -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_ROW, PhotoRow); -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_signal_handlers_destroy (self); -#line 74 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _backing_photo_row_unref0 (self->master); -#line 79 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_object_unref0 (self->transformations); -#line 80 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (self->md5); -#line 81 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (self->thumbnail_md5); -#line 82 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (self->exif_md5); -#line 86 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (self->title); -#line 87 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (self->comment); -#line 88 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (self->backlinks); -#line 97 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->development_ids = (g_free (self->development_ids), NULL); -#line 1269 "PhotoTable.c" -} - - -GType -photo_row_get_type (void) -{ - static volatile gsize photo_row_type_id__volatile = 0; - if (g_once_init_enter (&photo_row_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_photo_row_init, value_photo_row_free_value, value_photo_row_copy_value, value_photo_row_peek_pointer, "p", value_photo_row_collect_value, "p", value_photo_row_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PhotoRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoRow), 0, (GInstanceInitFunc) photo_row_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType photo_row_type_id; - photo_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoRow", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&photo_row_type_id__volatile, photo_row_type_id); - } - return photo_row_type_id__volatile; -} - - -gpointer -photo_row_ref (gpointer instance) -{ - PhotoRow * self; - self = instance; -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_atomic_int_inc (&self->ref_count); -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return instance; -#line 1298 "PhotoTable.c" -} - - -void -photo_row_unref (gpointer instance) -{ - PhotoRow * self; - self = instance; -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - PHOTO_ROW_GET_CLASS (self)->finalize (self); -#line 72 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1313 "PhotoTable.c" - } -} - - -static PhotoTable* -photo_table_construct (GType object_type) -{ - PhotoTable* self = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gint _tmp5_; - sqlite3_stmt* stmt2 = NULL; - gint res2 = 0; - sqlite3* _tmp7_; - sqlite3_stmt* _tmp8_ = NULL; - gint _tmp9_; - gint _tmp10_; - sqlite3_stmt* _tmp11_; - gint _tmp12_; - sqlite3* _tmp14_; - sqlite3_stmt* _tmp15_ = NULL; - gint _tmp16_; - gint _tmp17_; - sqlite3_stmt* _tmp18_; - gint _tmp19_; - sqlite3* _tmp21_; - sqlite3_stmt* _tmp22_ = NULL; - gint _tmp23_; - gint _tmp24_; - sqlite3_stmt* _tmp25_; - gint _tmp26_; - sqlite3* _tmp28_; - sqlite3_stmt* _tmp29_ = NULL; - gint _tmp30_; - gint _tmp31_; - sqlite3_stmt* _tmp32_; - gint _tmp33_; - sqlite3* _tmp35_; - sqlite3_stmt* _tmp36_ = NULL; - gint _tmp37_; - gint _tmp38_; - sqlite3_stmt* _tmp39_; - gint _tmp40_; -#line 112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self = (PhotoTable*) database_table_construct (object_type); -#line 114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS PhotoTable (" "id INTEGER PRIMARY KEY, " "filename TEXT UNIQUE NOT NULL, " "width INTEGER, " "height INTEGER, " "filesize INTEGER, " "timestamp INTEGER, " "exposure_time INTEGER, " "orientation INTEGER, " "original_orientation INTEGER, " "import_id INTEGER, " "event_id INTEGER, " "transformations TEXT, " "md5 TEXT, " "thumbnail_md5 TEXT, " "exif_md5 TEXT, " "time_created INTEGER, " "flags INTEGER DEFAULT 0, " "rating INTEGER DEFAULT 0, " "file_format INTEGER DEFAULT 0, " "title TEXT, " "backlinks TEXT, " "time_reimported INTEGER, " "editable_id INTEGER DEFAULT -1, " "metadata_dirty INTEGER DEFAULT 0, " "developer TEXT, " "develop_shotwell_id INTEGER DEFAULT -1, " "develop_camera_id INTEGER DEFAULT -1, " "develop_embedded_id INTEGER DEFAULT -1, " "comment TEXT" ")", -1, &_tmp1_, NULL); -#line 114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 145 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 145 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 147 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = stmt; -#line 147 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp4_); -#line 148 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = res; -#line 148 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp5_ != SQLITE_DONE) { -#line 1386 "PhotoTable.c" - gint _tmp6_; -#line 149 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = res; -#line 149 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_fatal ("create photo table", _tmp6_); -#line 1392 "PhotoTable.c" - } -#line 153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = database_table_db; -#line 153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = sqlite3_prepare_v2 (_tmp7_, "CREATE INDEX IF NOT EXISTS PhotoEventIDIndex ON PhotoTable (event_id)", -1, &_tmp8_, NULL); -#line 153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt2); -#line 153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt2 = _tmp8_; -#line 153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res2 = _tmp9_; -#line 155 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = res2; -#line 155 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp10_ == SQLITE_OK, "res2 == Sqlite.OK"); -#line 157 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = stmt2; -#line 157 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res2 = sqlite3_step (_tmp11_); -#line 158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = res2; -#line 158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp12_ != SQLITE_DONE) { -#line 1416 "PhotoTable.c" - gint _tmp13_; -#line 159 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = res2; -#line 159 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_fatal ("create photo table", _tmp13_); -#line 1422 "PhotoTable.c" - } -#line 165 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = database_table_db; -#line 165 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp16_ = sqlite3_prepare_v2 (_tmp14_, "DROP INDEX IF EXISTS PhotoTableMD5Format", -1, &_tmp15_, NULL); -#line 165 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 165 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp15_; -#line 165 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp16_; -#line 166 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp17_ = res; -#line 166 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp17_ == SQLITE_OK, "res == Sqlite.OK"); -#line 167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp18_ = stmt; -#line 167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp18_); -#line 168 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19_ = res; -#line 168 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp19_ != SQLITE_DONE) { -#line 1446 "PhotoTable.c" - gint _tmp20_; -#line 169 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp20_ = res; -#line 169 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_warning ("Failed to drop old PhotoTable index", _tmp20_); -#line 1452 "PhotoTable.c" - } -#line 172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp21_ = database_table_db; -#line 172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp23_ = sqlite3_prepare_v2 (_tmp21_, "CREATE INDEX IF NOT EXISTS PhotoTableMD5FormatV2 on PhotoTable(md5, fi" \ -"le_format)", -1, &_tmp22_, NULL); -#line 172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp22_; -#line 172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp23_; -#line 173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp24_ = res; -#line 173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp24_ == SQLITE_OK, "res == Sqlite.OK"); -#line 174 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp25_ = stmt; -#line 174 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp25_); -#line 175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp26_ = res; -#line 175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp26_ != SQLITE_DONE) { -#line 1476 "PhotoTable.c" - gint _tmp27_; -#line 176 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp27_ = res; -#line 176 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_warning ("Failed to create index on md5 and file_format", _tmp27_); -#line 1482 "PhotoTable.c" - } -#line 180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp28_ = database_table_db; -#line 180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp30_ = sqlite3_prepare_v2 (_tmp28_, "CREATE INDEX IF NOT EXISTS PhotoTableThumbnailMD5Format on PhotoTable(" \ -"thumbnail_md5, file_format)", -1, &_tmp29_, NULL); -#line 180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp29_; -#line 180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp30_; -#line 181 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp31_ = res; -#line 181 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp31_ == SQLITE_OK, "res == Sqlite.OK"); -#line 182 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp32_ = stmt; -#line 182 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp32_); -#line 183 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp33_ = res; -#line 183 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp33_ != SQLITE_DONE) { -#line 1506 "PhotoTable.c" - gint _tmp34_; -#line 184 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp34_ = res; -#line 184 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_warning ("Failed to create index on md5 and file_format", _tmp34_); -#line 1512 "PhotoTable.c" - } -#line 188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp35_ = database_table_db; -#line 188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp37_ = sqlite3_prepare_v2 (_tmp35_, "CREATE INDEX IF NOT EXISTS PhotoTableThumbnailMD5MD5 on PhotoTable(thu" \ -"mbnail_md5, md5)", -1, &_tmp36_, NULL); -#line 188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp36_; -#line 188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp37_; -#line 189 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp38_ = res; -#line 189 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp38_ == SQLITE_OK, "res == Sqlite.OK"); -#line 190 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp39_ = stmt; -#line 190 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp39_); -#line 191 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp40_ = res; -#line 191 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp40_ != SQLITE_DONE) { -#line 1536 "PhotoTable.c" - gint _tmp41_; -#line 192 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp41_ = res; -#line 192 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_warning ("Failed to create index on thumbnail_md5 and md5", _tmp41_); -#line 1542 "PhotoTable.c" - } -#line 195 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), "PhotoTable"); -#line 112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt2); -#line 112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return self; -#line 1552 "PhotoTable.c" -} - - -static PhotoTable* -photo_table_new (void) -{ -#line 112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return photo_table_construct (TYPE_PHOTO_TABLE); -#line 1561 "PhotoTable.c" -} - - -static gpointer -_database_table_ref0 (gpointer self) -{ -#line 202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return self ? database_table_ref (self) : NULL; -#line 1570 "PhotoTable.c" -} - - -PhotoTable* -photo_table_get_instance (void) -{ - PhotoTable* result = NULL; - PhotoTable* _tmp0_; - PhotoTable* _tmp2_; - PhotoTable* _tmp3_; -#line 199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = photo_table_instance; -#line 199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp0_ == NULL) { -#line 1585 "PhotoTable.c" - PhotoTable* _tmp1_; -#line 200 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = photo_table_new (); -#line 200 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _database_table_unref0 (photo_table_instance); -#line 200 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_table_instance = _tmp1_; -#line 1593 "PhotoTable.c" - } -#line 202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = photo_table_instance; -#line 202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = _database_table_ref0 (_tmp2_); -#line 202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = _tmp3_; -#line 202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 1603 "PhotoTable.c" -} - - -void -photo_table_add (PhotoTable* self, - PhotoRow* photo_row, - PhotoID* result) -{ - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - gulong time_created = 0UL; - sqlite3_stmt* _tmp4_; - BackingPhotoRow* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; - GDestroyNotify _tmp8_; - gint _tmp9_; - sqlite3_stmt* _tmp10_; - BackingPhotoRow* _tmp11_; - Dimensions _tmp12_; - gint _tmp13_; - gint _tmp14_; - sqlite3_stmt* _tmp15_; - BackingPhotoRow* _tmp16_; - Dimensions _tmp17_; - gint _tmp18_; - gint _tmp19_; - sqlite3_stmt* _tmp20_; - BackingPhotoRow* _tmp21_; - gint64 _tmp22_; - gint _tmp23_; - sqlite3_stmt* _tmp24_; - BackingPhotoRow* _tmp25_; - time_t _tmp26_; - gint _tmp27_; - sqlite3_stmt* _tmp28_; - time_t _tmp29_; - gint _tmp30_; - sqlite3_stmt* _tmp31_; - BackingPhotoRow* _tmp32_; - Orientation _tmp33_; - gint _tmp34_; - sqlite3_stmt* _tmp35_; - BackingPhotoRow* _tmp36_; - Orientation _tmp37_; - gint _tmp38_; - sqlite3_stmt* _tmp39_; - ImportID _tmp40_; - gint64 _tmp41_; - gint _tmp42_; - sqlite3_stmt* _tmp43_; - gint _tmp44_; - sqlite3_stmt* _tmp45_; - const gchar* _tmp46_; - gchar* _tmp47_; - GDestroyNotify _tmp48_; - gint _tmp49_; - sqlite3_stmt* _tmp50_; - const gchar* _tmp51_; - gchar* _tmp52_; - GDestroyNotify _tmp53_; - gint _tmp54_; - sqlite3_stmt* _tmp55_; - const gchar* _tmp56_; - gchar* _tmp57_; - GDestroyNotify _tmp58_; - gint _tmp59_; - sqlite3_stmt* _tmp60_; - gulong _tmp61_; - gint _tmp62_; - sqlite3_stmt* _tmp63_; - BackingPhotoRow* _tmp64_; - PhotoFileFormat _tmp65_; - gint _tmp66_; - sqlite3_stmt* _tmp67_; - const gchar* _tmp68_; - gchar* _tmp69_; - GDestroyNotify _tmp70_; - gint _tmp71_; - sqlite3_stmt* _tmp72_; - Rating _tmp73_; - gint _tmp74_; - sqlite3_stmt* _tmp75_; - gint _tmp76_; - sqlite3_stmt* _tmp77_; - RawDeveloper _tmp78_; - gchar* _tmp79_; - GDestroyNotify _tmp80_; - gint _tmp81_; - sqlite3_stmt* _tmp82_; - const gchar* _tmp83_; - gchar* _tmp84_; - GDestroyNotify _tmp85_; - gint _tmp86_; - sqlite3_stmt* _tmp87_; - gint _tmp88_; - sqlite3* _tmp92_; - BackingPhotoRow* _tmp93_; - Orientation _tmp94_; - gulong _tmp95_; - PhotoID _tmp96_; -#line 207 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 207 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_ROW (photo_row)); -#line 209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO PhotoTable (filename, width, height, filesize, timestamp, " \ -"exposure_time, " "orientation, original_orientation, import_id, event_id, md5, thumbnail" \ -"_md5, " "exif_md5, time_created, file_format, title, rating, editable_id, devel" \ -"oper, comment) " "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", -1, &_tmp1_, NULL); -#line 209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 217 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - time_created = now_sec (); -#line 219 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = stmt; -#line 219 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = photo_row->master; -#line 219 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = _tmp5_->filepath; -#line 219 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = g_strdup (_tmp6_); -#line 219 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = g_free; -#line 219 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp4_, 1, _tmp7_, -1, _tmp8_); -#line 220 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = res; -#line 220 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK"); -#line 221 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = stmt; -#line 221 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = photo_row->master; -#line 221 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = _tmp11_->dim; -#line 221 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = _tmp12_.width; -#line 221 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp10_, 2, _tmp13_); -#line 222 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = res; -#line 222 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp14_ == SQLITE_OK, "res == Sqlite.OK"); -#line 223 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_ = stmt; -#line 223 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp16_ = photo_row->master; -#line 223 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp17_ = _tmp16_->dim; -#line 223 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp18_ = _tmp17_.height; -#line 223 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp15_, 3, _tmp18_); -#line 224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19_ = res; -#line 224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp19_ == SQLITE_OK, "res == Sqlite.OK"); -#line 225 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp20_ = stmt; -#line 225 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp21_ = photo_row->master; -#line 225 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp22_ = _tmp21_->filesize; -#line 225 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp20_, 4, _tmp22_); -#line 226 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp23_ = res; -#line 226 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp23_ == SQLITE_OK, "res == Sqlite.OK"); -#line 227 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp24_ = stmt; -#line 227 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp25_ = photo_row->master; -#line 227 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp26_ = _tmp25_->timestamp; -#line 227 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp24_, 5, (gint64) _tmp26_); -#line 228 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp27_ = res; -#line 228 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp27_ == SQLITE_OK, "res == Sqlite.OK"); -#line 229 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp28_ = stmt; -#line 229 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp29_ = photo_row->exposure_time; -#line 229 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp28_, 6, (gint64) _tmp29_); -#line 230 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp30_ = res; -#line 230 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp30_ == SQLITE_OK, "res == Sqlite.OK"); -#line 231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp31_ = stmt; -#line 231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp32_ = photo_row->master; -#line 231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp33_ = _tmp32_->original_orientation; -#line 231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp31_, 7, (gint) _tmp33_); -#line 232 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp34_ = res; -#line 232 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp34_ == SQLITE_OK, "res == Sqlite.OK"); -#line 233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp35_ = stmt; -#line 233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp36_ = photo_row->master; -#line 233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp37_ = _tmp36_->original_orientation; -#line 233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp35_, 8, (gint) _tmp37_); -#line 234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp38_ = res; -#line 234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp38_ == SQLITE_OK, "res == Sqlite.OK"); -#line 235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp39_ = stmt; -#line 235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp40_ = photo_row->import_id; -#line 235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp41_ = _tmp40_.id; -#line 235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp39_, 9, _tmp41_); -#line 236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp42_ = res; -#line 236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp42_ == SQLITE_OK, "res == Sqlite.OK"); -#line 237 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp43_ = stmt; -#line 237 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp43_, 10, EVENT_ID_INVALID); -#line 238 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp44_ = res; -#line 238 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp44_ == SQLITE_OK, "res == Sqlite.OK"); -#line 239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp45_ = stmt; -#line 239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp46_ = photo_row->md5; -#line 239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp47_ = g_strdup (_tmp46_); -#line 239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp48_ = g_free; -#line 239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp45_, 11, _tmp47_, -1, _tmp48_); -#line 240 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp49_ = res; -#line 240 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp49_ == SQLITE_OK, "res == Sqlite.OK"); -#line 241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp50_ = stmt; -#line 241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp51_ = photo_row->thumbnail_md5; -#line 241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp52_ = g_strdup (_tmp51_); -#line 241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp53_ = g_free; -#line 241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp50_, 12, _tmp52_, -1, _tmp53_); -#line 242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp54_ = res; -#line 242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp54_ == SQLITE_OK, "res == Sqlite.OK"); -#line 243 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp55_ = stmt; -#line 243 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp56_ = photo_row->exif_md5; -#line 243 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp57_ = g_strdup (_tmp56_); -#line 243 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp58_ = g_free; -#line 243 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp55_, 13, _tmp57_, -1, _tmp58_); -#line 244 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp59_ = res; -#line 244 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp59_ == SQLITE_OK, "res == Sqlite.OK"); -#line 245 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp60_ = stmt; -#line 245 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp61_ = time_created; -#line 245 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp60_, 14, (gint64) _tmp61_); -#line 246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp62_ = res; -#line 246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp62_ == SQLITE_OK, "res == Sqlite.OK"); -#line 247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp63_ = stmt; -#line 247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp64_ = photo_row->master; -#line 247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp65_ = _tmp64_->file_format; -#line 247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp63_, 15, photo_file_format_serialize (_tmp65_)); -#line 248 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp66_ = res; -#line 248 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp66_ == SQLITE_OK, "res == Sqlite.OK"); -#line 249 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp67_ = stmt; -#line 249 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp68_ = photo_row->title; -#line 249 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp69_ = g_strdup (_tmp68_); -#line 249 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp70_ = g_free; -#line 249 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp67_, 16, _tmp69_, -1, _tmp70_); -#line 250 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp71_ = res; -#line 250 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp71_ == SQLITE_OK, "res == Sqlite.OK"); -#line 251 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp72_ = stmt; -#line 251 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp73_ = photo_row->rating; -#line 251 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp72_, 17, (gint64) rating_serialize (_tmp73_)); -#line 252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp74_ = res; -#line 252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp74_ == SQLITE_OK, "res == Sqlite.OK"); -#line 253 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp75_ = stmt; -#line 253 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp75_, 18, BACKING_PHOTO_ID_INVALID); -#line 254 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp76_ = res; -#line 254 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp76_ == SQLITE_OK, "res == Sqlite.OK"); -#line 255 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp77_ = stmt; -#line 255 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp78_ = photo_row->developer; -#line 255 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp79_ = raw_developer_to_string (_tmp78_); -#line 255 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp80_ = g_free; -#line 255 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp77_, 19, _tmp79_, -1, _tmp80_); -#line 256 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp81_ = res; -#line 256 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp81_ == SQLITE_OK, "res == Sqlite.OK"); -#line 257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp82_ = stmt; -#line 257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp83_ = photo_row->comment; -#line 257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp84_ = g_strdup (_tmp83_); -#line 257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp85_ = g_free; -#line 257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp82_, 20, _tmp84_, -1, _tmp85_); -#line 258 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp86_ = res; -#line 258 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp86_ == SQLITE_OK, "res == Sqlite.OK"); -#line 260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp87_ = stmt; -#line 260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp87_); -#line 261 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp88_ = res; -#line 261 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp88_ != SQLITE_DONE) { -#line 1983 "PhotoTable.c" - gint _tmp89_; - PhotoID _tmp91_ = {0}; -#line 262 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp89_ = res; -#line 262 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp89_ != SQLITE_CONSTRAINT) { -#line 1990 "PhotoTable.c" - gint _tmp90_; -#line 263 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp90_ = res; -#line 263 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_fatal ("add_photo", _tmp90_); -#line 1996 "PhotoTable.c" - } -#line 265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_id_init (&_tmp91_, PHOTO_ID_INVALID); -#line 265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - *result = _tmp91_; -#line 265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 2006 "PhotoTable.c" - } -#line 269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp92_ = database_table_db; -#line 269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_id_init (&photo_row->photo_id, sqlite3_last_insert_rowid (_tmp92_)); -#line 270 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp93_ = photo_row->master; -#line 270 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp94_ = _tmp93_->original_orientation; -#line 270 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_row->orientation = _tmp94_; -#line 271 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - event_id_init (&photo_row->event_id, EVENT_ID_INVALID); -#line 272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp95_ = time_created; -#line 272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_row->time_created = (time_t) _tmp95_; -#line 273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_row->flags = (guint64) 0; -#line 275 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp96_ = photo_row->photo_id; -#line 275 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - *result = _tmp96_; -#line 275 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 275 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 2034 "PhotoTable.c" -} - - -void -photo_table_reimport (PhotoTable* self, - PhotoRow* row, - GError** error) -{ - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - time_t time_reimported = 0; - sqlite3_stmt* _tmp4_; - BackingPhotoRow* _tmp5_; - Dimensions _tmp6_; - gint _tmp7_; - gint _tmp8_; - sqlite3_stmt* _tmp9_; - BackingPhotoRow* _tmp10_; - Dimensions _tmp11_; - gint _tmp12_; - gint _tmp13_; - sqlite3_stmt* _tmp14_; - BackingPhotoRow* _tmp15_; - gint64 _tmp16_; - gint _tmp17_; - sqlite3_stmt* _tmp18_; - BackingPhotoRow* _tmp19_; - time_t _tmp20_; - gint _tmp21_; - sqlite3_stmt* _tmp22_; - time_t _tmp23_; - gint _tmp24_; - sqlite3_stmt* _tmp25_; - BackingPhotoRow* _tmp26_; - Orientation _tmp27_; - gint _tmp28_; - sqlite3_stmt* _tmp29_; - BackingPhotoRow* _tmp30_; - Orientation _tmp31_; - gint _tmp32_; - sqlite3_stmt* _tmp33_; - const gchar* _tmp34_; - gchar* _tmp35_; - GDestroyNotify _tmp36_; - gint _tmp37_; - sqlite3_stmt* _tmp38_; - const gchar* _tmp39_; - gchar* _tmp40_; - GDestroyNotify _tmp41_; - gint _tmp42_; - sqlite3_stmt* _tmp43_; - const gchar* _tmp44_; - gchar* _tmp45_; - GDestroyNotify _tmp46_; - gint _tmp47_; - sqlite3_stmt* _tmp48_; - BackingPhotoRow* _tmp49_; - PhotoFileFormat _tmp50_; - gint _tmp51_; - sqlite3_stmt* _tmp52_; - const gchar* _tmp53_; - gchar* _tmp54_; - GDestroyNotify _tmp55_; - gint _tmp56_; - sqlite3_stmt* _tmp57_; - time_t _tmp58_; - gint _tmp59_; - sqlite3_stmt* _tmp60_; - PhotoID _tmp61_; - gint64 _tmp62_; - gint _tmp63_; - sqlite3_stmt* _tmp64_; - gint _tmp65_; - time_t _tmp67_; - BackingPhotoRow* _tmp68_; - Orientation _tmp69_; - GError * _inner_error_ = NULL; -#line 283 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 283 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_ROW (row)); -#line 285 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 285 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE PhotoTable SET width = ?, height = ?, filesize = ?, timestamp =" \ -" ?, " "exposure_time = ?, orientation = ?, original_orientation = ?, md5 = ?," \ -" " "exif_md5 = ?, thumbnail_md5 = ?, file_format = ?, title = ?, time_reim" \ -"ported = ? " "WHERE id = ?", -1, &_tmp1_, NULL); -#line 285 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 285 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 285 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 290 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 290 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 292 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - time_reimported = (time_t) now_sec (); -#line 294 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = stmt; -#line 294 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = row->master; -#line 294 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = _tmp5_->dim; -#line 294 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = _tmp6_.width; -#line 294 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp4_, 1, _tmp7_); -#line 295 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = res; -#line 295 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK"); -#line 296 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = stmt; -#line 296 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = row->master; -#line 296 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = _tmp10_->dim; -#line 296 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = _tmp11_.height; -#line 296 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp9_, 2, _tmp12_); -#line 297 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = res; -#line 297 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK"); -#line 298 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = stmt; -#line 298 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_ = row->master; -#line 298 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp16_ = _tmp15_->filesize; -#line 298 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp14_, 3, _tmp16_); -#line 299 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp17_ = res; -#line 299 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp17_ == SQLITE_OK, "res == Sqlite.OK"); -#line 300 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp18_ = stmt; -#line 300 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19_ = row->master; -#line 300 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp20_ = _tmp19_->timestamp; -#line 300 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp18_, 4, (gint64) _tmp20_); -#line 301 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp21_ = res; -#line 301 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp21_ == SQLITE_OK, "res == Sqlite.OK"); -#line 302 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp22_ = stmt; -#line 302 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp23_ = row->exposure_time; -#line 302 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp22_, 5, (gint64) _tmp23_); -#line 303 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp24_ = res; -#line 303 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp24_ == SQLITE_OK, "res == Sqlite.OK"); -#line 304 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp25_ = stmt; -#line 304 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp26_ = row->master; -#line 304 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp27_ = _tmp26_->original_orientation; -#line 304 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp25_, 6, (gint) _tmp27_); -#line 305 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp28_ = res; -#line 305 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp28_ == SQLITE_OK, "res == Sqlite.OK"); -#line 306 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp29_ = stmt; -#line 306 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp30_ = row->master; -#line 306 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp31_ = _tmp30_->original_orientation; -#line 306 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp29_, 7, (gint) _tmp31_); -#line 307 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp32_ = res; -#line 307 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp32_ == SQLITE_OK, "res == Sqlite.OK"); -#line 308 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp33_ = stmt; -#line 308 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp34_ = row->md5; -#line 308 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp35_ = g_strdup (_tmp34_); -#line 308 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp36_ = g_free; -#line 308 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp33_, 8, _tmp35_, -1, _tmp36_); -#line 309 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp37_ = res; -#line 309 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp37_ == SQLITE_OK, "res == Sqlite.OK"); -#line 310 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp38_ = stmt; -#line 310 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp39_ = row->exif_md5; -#line 310 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp40_ = g_strdup (_tmp39_); -#line 310 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp41_ = g_free; -#line 310 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp38_, 9, _tmp40_, -1, _tmp41_); -#line 311 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp42_ = res; -#line 311 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp42_ == SQLITE_OK, "res == Sqlite.OK"); -#line 312 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp43_ = stmt; -#line 312 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp44_ = row->thumbnail_md5; -#line 312 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp45_ = g_strdup (_tmp44_); -#line 312 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp46_ = g_free; -#line 312 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp43_, 10, _tmp45_, -1, _tmp46_); -#line 313 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp47_ = res; -#line 313 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp47_ == SQLITE_OK, "res == Sqlite.OK"); -#line 314 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp48_ = stmt; -#line 314 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp49_ = row->master; -#line 314 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp50_ = _tmp49_->file_format; -#line 314 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp48_, 11, photo_file_format_serialize (_tmp50_)); -#line 315 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp51_ = res; -#line 315 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp51_ == SQLITE_OK, "res == Sqlite.OK"); -#line 316 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp52_ = stmt; -#line 316 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp53_ = row->title; -#line 316 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp54_ = g_strdup (_tmp53_); -#line 316 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp55_ = g_free; -#line 316 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp52_, 12, _tmp54_, -1, _tmp55_); -#line 317 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp56_ = res; -#line 317 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp56_ == SQLITE_OK, "res == Sqlite.OK"); -#line 318 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp57_ = stmt; -#line 318 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp58_ = time_reimported; -#line 318 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp57_, 13, (gint64) _tmp58_); -#line 319 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp59_ = res; -#line 319 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp59_ == SQLITE_OK, "res == Sqlite.OK"); -#line 320 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp60_ = stmt; -#line 320 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp61_ = row->photo_id; -#line 320 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp62_ = _tmp61_.id; -#line 320 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp60_, 14, _tmp62_); -#line 321 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp63_ = res; -#line 321 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp63_ == SQLITE_OK, "res == Sqlite.OK"); -#line 323 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp64_ = stmt; -#line 323 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp64_); -#line 324 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp65_ = res; -#line 324 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp65_ != SQLITE_DONE) { -#line 2320 "PhotoTable.c" - gint _tmp66_; -#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp66_ = res; -#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_throw_error ("PhotoTable.reimport_master", _tmp66_, &_inner_error_); -#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 2336 "PhotoTable.c" - } else { -#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 325 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 2346 "PhotoTable.c" - } - } - } -#line 327 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp67_ = time_reimported; -#line 327 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - row->time_reimported = _tmp67_; -#line 328 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp68_ = row->master; -#line 328 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp69_ = _tmp68_->original_orientation; -#line 328 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - row->orientation = _tmp69_; -#line 283 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 2362 "PhotoTable.c" -} - - -gboolean -photo_table_master_exif_updated (PhotoTable* self, - PhotoID* photoID, - gint64 filesize, - glong timestamp, - const gchar* md5, - const gchar* exif_md5, - const gchar* thumbnail_md5, - PhotoRow* row) -{ - gboolean result = FALSE; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gint _tmp5_; - sqlite3_stmt* _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - gchar* _tmp9_; - GDestroyNotify _tmp10_; - gint _tmp11_; - sqlite3_stmt* _tmp12_; - gchar* _tmp13_; - GDestroyNotify _tmp14_; - gint _tmp15_; - sqlite3_stmt* _tmp16_; - gchar* _tmp17_; - GDestroyNotify _tmp18_; - gint _tmp19_; - sqlite3_stmt* _tmp20_; - PhotoID _tmp21_; - gint64 _tmp22_; - gint _tmp23_; - sqlite3_stmt* _tmp24_; - gint _tmp25_; - BackingPhotoRow* _tmp28_; - BackingPhotoRow* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; -#line 331 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 331 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (photoID != NULL, FALSE); -#line 331 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (md5 != NULL, FALSE); -#line 331 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_ROW (row), FALSE); -#line 334 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 334 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE PhotoTable SET filesize = ?, timestamp = ?, md5 = ?, exif_md5 =" \ -" ?," "thumbnail_md5 =? WHERE id = ?", -1, &_tmp1_, NULL); -#line 334 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 334 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 334 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 337 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 337 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 339 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = stmt; -#line 339 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp4_, 1, filesize); -#line 340 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = res; -#line 340 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK"); -#line 341 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = stmt; -#line 341 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp6_, 2, (gint64) timestamp); -#line 342 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = res; -#line 342 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 343 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = stmt; -#line 343 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = g_strdup (md5); -#line 343 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = g_free; -#line 343 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp8_, 3, _tmp9_, -1, _tmp10_); -#line 344 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = res; -#line 344 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK"); -#line 345 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = stmt; -#line 345 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = g_strdup (exif_md5); -#line 345 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = g_free; -#line 345 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp12_, 4, _tmp13_, -1, _tmp14_); -#line 346 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_ = res; -#line 346 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp15_ == SQLITE_OK, "res == Sqlite.OK"); -#line 347 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp16_ = stmt; -#line 347 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp17_ = g_strdup (thumbnail_md5); -#line 347 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp18_ = g_free; -#line 347 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp16_, 5, _tmp17_, -1, _tmp18_); -#line 348 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19_ = res; -#line 348 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp19_ == SQLITE_OK, "res == Sqlite.OK"); -#line 349 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp20_ = stmt; -#line 349 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp21_ = *photoID; -#line 349 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp22_ = _tmp21_.id; -#line 349 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp20_, 6, _tmp22_); -#line 350 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp23_ = res; -#line 350 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp23_ == SQLITE_OK, "res == Sqlite.OK"); -#line 352 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp24_ = stmt; -#line 352 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp24_); -#line 353 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp25_ = res; -#line 353 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp25_ != SQLITE_DONE) { -#line 2504 "PhotoTable.c" - gint _tmp26_; -#line 354 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp26_ = res; -#line 354 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp26_ != SQLITE_CONSTRAINT) { -#line 2510 "PhotoTable.c" - gint _tmp27_; -#line 355 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp27_ = res; -#line 355 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_fatal ("write_update_photo", _tmp27_); -#line 2516 "PhotoTable.c" - } -#line 357 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = FALSE; -#line 357 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 357 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 2524 "PhotoTable.c" - } -#line 360 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp28_ = row->master; -#line 360 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp28_->filesize = filesize; -#line 361 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp29_ = row->master; -#line 361 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp29_->timestamp = (time_t) timestamp; -#line 362 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp30_ = g_strdup (md5); -#line 362 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (row->md5); -#line 362 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - row->md5 = _tmp30_; -#line 363 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp31_ = g_strdup (exif_md5); -#line 363 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (row->exif_md5); -#line 363 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - row->exif_md5 = _tmp31_; -#line 364 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp32_ = g_strdup (thumbnail_md5); -#line 364 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (row->thumbnail_md5); -#line 364 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - row->thumbnail_md5 = _tmp32_; -#line 366 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = TRUE; -#line 366 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 366 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 2558 "PhotoTable.c" -} - - -static void -photo_table_validate_orientation (PhotoTable* self, - PhotoRow* row) -{ - gboolean _tmp0_ = FALSE; - Orientation _tmp1_; -#line 377 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 377 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_ROW (row)); -#line 378 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = row->orientation; -#line 378 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp1_ < ORIENTATION_MIN) { -#line 378 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = TRUE; -#line 2578 "PhotoTable.c" - } else { - Orientation _tmp2_; -#line 379 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = row->orientation; -#line 379 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = _tmp2_ > ORIENTATION_MAX; -#line 2585 "PhotoTable.c" - } -#line 378 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp0_) { -#line 2589 "PhotoTable.c" - PhotoID _tmp3_; -#line 381 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = row->photo_id; -#line 381 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_table_set_orientation (self, &_tmp3_, ORIENTATION_MIN); -#line 382 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - row->orientation = ORIENTATION_MIN; -#line 2597 "PhotoTable.c" - } -} - - -PhotoRow* -photo_table_get_row (PhotoTable* self, - PhotoID* photo_id) -{ - PhotoRow* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - PhotoID _tmp5_; - gint64 _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - PhotoRow* row = NULL; - PhotoRow* _tmp9_; - PhotoRow* _tmp10_; - PhotoID _tmp11_; - PhotoRow* _tmp12_; - BackingPhotoRow* _tmp13_; - sqlite3_stmt* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; - PhotoRow* _tmp17_; - BackingPhotoRow* _tmp18_; - sqlite3_stmt* _tmp19_; - sqlite3_stmt* _tmp20_; - PhotoRow* _tmp21_; - BackingPhotoRow* _tmp22_; - sqlite3_stmt* _tmp23_; - PhotoRow* _tmp24_; - BackingPhotoRow* _tmp25_; - sqlite3_stmt* _tmp26_; - PhotoRow* _tmp27_; - sqlite3_stmt* _tmp28_; - PhotoRow* _tmp29_; - sqlite3_stmt* _tmp30_; - PhotoRow* _tmp31_; - BackingPhotoRow* _tmp32_; - sqlite3_stmt* _tmp33_; - PhotoRow* _tmp34_; - sqlite3_stmt* _tmp35_; - PhotoRow* _tmp36_; - sqlite3_stmt* _tmp37_; - PhotoRow* _tmp38_; - sqlite3_stmt* _tmp39_; - const gchar* _tmp40_; - GeeHashMap* _tmp41_; - PhotoRow* _tmp42_; - sqlite3_stmt* _tmp43_; - const gchar* _tmp44_; - gchar* _tmp45_; - PhotoRow* _tmp46_; - sqlite3_stmt* _tmp47_; - const gchar* _tmp48_; - gchar* _tmp49_; - PhotoRow* _tmp50_; - sqlite3_stmt* _tmp51_; - const gchar* _tmp52_; - gchar* _tmp53_; - PhotoRow* _tmp54_; - sqlite3_stmt* _tmp55_; - PhotoRow* _tmp56_; - sqlite3_stmt* _tmp57_; - PhotoRow* _tmp58_; - sqlite3_stmt* _tmp59_; - PhotoRow* _tmp60_; - BackingPhotoRow* _tmp61_; - sqlite3_stmt* _tmp62_; - PhotoRow* _tmp63_; - sqlite3_stmt* _tmp64_; - const gchar* _tmp65_; - gchar* _tmp66_; - PhotoRow* _tmp67_; - sqlite3_stmt* _tmp68_; - const gchar* _tmp69_; - gchar* _tmp70_; - PhotoRow* _tmp71_; - sqlite3_stmt* _tmp72_; - PhotoRow* _tmp73_; - sqlite3_stmt* _tmp74_; - PhotoRow* _tmp75_; - sqlite3_stmt* _tmp76_; - RawDeveloper _tmp77_ = 0; - sqlite3_stmt* _tmp78_; - const gchar* _tmp79_; - PhotoRow* _tmp82_; - PhotoRow* _tmp83_; - BackingPhotoID* _tmp84_; - gint _tmp84__length1; - sqlite3_stmt* _tmp85_; - BackingPhotoID _tmp86_ = {0}; - BackingPhotoID _tmp87_; - PhotoRow* _tmp88_; - BackingPhotoID* _tmp89_; - gint _tmp89__length1; - sqlite3_stmt* _tmp90_; - BackingPhotoID _tmp91_ = {0}; - BackingPhotoID _tmp92_; - PhotoRow* _tmp93_; - BackingPhotoID* _tmp94_; - gint _tmp94__length1; - sqlite3_stmt* _tmp95_; - BackingPhotoID _tmp96_ = {0}; - BackingPhotoID _tmp97_; - PhotoRow* _tmp98_; - sqlite3_stmt* _tmp99_; - const gchar* _tmp100_; - gchar* _tmp101_; -#line 386 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), NULL); -#line 386 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (photo_id != NULL, NULL); -#line 388 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 388 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT filename, width, height, filesize, timestamp, exposure_time, or" \ -"ientation, " "original_orientation, import_id, event_id, transformations, md5, thumb" \ -"nail_md5, " "exif_md5, time_created, flags, rating, file_format, title, backlinks, " "time_reimported, editable_id, metadata_dirty, developer, develop_shotw" \ -"ell_id, " "develop_camera_id, develop_embedded_id, comment " "FROM PhotoTable WHERE id=?", -1, &_tmp1_, NULL); -#line 388 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 388 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 388 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 396 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 396 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 398 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = stmt; -#line 398 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = *photo_id; -#line 398 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = _tmp5_.id; -#line 398 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_); -#line 399 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = res; -#line 399 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 401 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = stmt; -#line 401 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (sqlite3_step (_tmp8_) != SQLITE_ROW) { -#line 402 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = NULL; -#line 402 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 402 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 2753 "PhotoTable.c" - } -#line 404 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = photo_row_new (); -#line 404 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - row = _tmp9_; -#line 405 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = row; -#line 405 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = *photo_id; -#line 405 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_->photo_id = _tmp11_; -#line 406 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = row; -#line 406 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = _tmp12_->master; -#line 406 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = stmt; -#line 406 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_ = sqlite3_column_text (_tmp14_, 0); -#line 406 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp16_ = g_strdup (_tmp15_); -#line 406 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp13_->filepath); -#line 406 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_->filepath = _tmp16_; -#line 407 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp17_ = row; -#line 407 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp18_ = _tmp17_->master; -#line 407 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19_ = stmt; -#line 407 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp20_ = stmt; -#line 407 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - dimensions_init (&_tmp18_->dim, sqlite3_column_int (_tmp19_, 1), sqlite3_column_int (_tmp20_, 2)); -#line 408 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp21_ = row; -#line 408 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp22_ = _tmp21_->master; -#line 408 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp23_ = stmt; -#line 408 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp22_->filesize = sqlite3_column_int64 (_tmp23_, 3); -#line 409 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp24_ = row; -#line 409 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp25_ = _tmp24_->master; -#line 409 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp26_ = stmt; -#line 409 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp25_->timestamp = (time_t) sqlite3_column_int64 (_tmp26_, 4); -#line 410 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp27_ = row; -#line 410 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp28_ = stmt; -#line 410 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp27_->exposure_time = (time_t) sqlite3_column_int64 (_tmp28_, 5); -#line 411 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp29_ = row; -#line 411 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp30_ = stmt; -#line 411 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp29_->orientation = (Orientation) sqlite3_column_int (_tmp30_, 6); -#line 412 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp31_ = row; -#line 412 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp32_ = _tmp31_->master; -#line 412 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp33_ = stmt; -#line 412 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp32_->original_orientation = (Orientation) sqlite3_column_int (_tmp33_, 7); -#line 413 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp34_ = row; -#line 413 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp35_ = stmt; -#line 413 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp34_->import_id.id = sqlite3_column_int64 (_tmp35_, 8); -#line 414 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp36_ = row; -#line 414 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp37_ = stmt; -#line 414 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp36_->event_id.id = sqlite3_column_int64 (_tmp37_, 9); -#line 415 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp38_ = row; -#line 415 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp39_ = stmt; -#line 415 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp40_ = sqlite3_column_text (_tmp39_, 10); -#line 415 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp41_ = photo_table_marshall_all_transformations (_tmp40_); -#line 415 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_object_unref0 (_tmp38_->transformations); -#line 415 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp38_->transformations = _tmp41_; -#line 416 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp42_ = row; -#line 416 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp43_ = stmt; -#line 416 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp44_ = sqlite3_column_text (_tmp43_, 11); -#line 416 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp45_ = g_strdup (_tmp44_); -#line 416 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp42_->md5); -#line 416 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp42_->md5 = _tmp45_; -#line 417 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp46_ = row; -#line 417 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp47_ = stmt; -#line 417 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp48_ = sqlite3_column_text (_tmp47_, 12); -#line 417 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp49_ = g_strdup (_tmp48_); -#line 417 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp46_->thumbnail_md5); -#line 417 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp46_->thumbnail_md5 = _tmp49_; -#line 418 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp50_ = row; -#line 418 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp51_ = stmt; -#line 418 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp52_ = sqlite3_column_text (_tmp51_, 13); -#line 418 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp53_ = g_strdup (_tmp52_); -#line 418 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp50_->exif_md5); -#line 418 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp50_->exif_md5 = _tmp53_; -#line 419 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp54_ = row; -#line 419 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp55_ = stmt; -#line 419 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp54_->time_created = (time_t) sqlite3_column_int64 (_tmp55_, 14); -#line 420 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp56_ = row; -#line 420 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp57_ = stmt; -#line 420 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp56_->flags = (guint64) sqlite3_column_int64 (_tmp57_, 15); -#line 421 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp58_ = row; -#line 421 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp59_ = stmt; -#line 421 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp58_->rating = rating_unserialize (sqlite3_column_int (_tmp59_, 16)); -#line 422 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp60_ = row; -#line 422 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp61_ = _tmp60_->master; -#line 422 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp62_ = stmt; -#line 422 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp61_->file_format = photo_file_format_unserialize (sqlite3_column_int (_tmp62_, 17)); -#line 423 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp63_ = row; -#line 423 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp64_ = stmt; -#line 423 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp65_ = sqlite3_column_text (_tmp64_, 18); -#line 423 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp66_ = g_strdup (_tmp65_); -#line 423 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp63_->title); -#line 423 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp63_->title = _tmp66_; -#line 424 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp67_ = row; -#line 424 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp68_ = stmt; -#line 424 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp69_ = sqlite3_column_text (_tmp68_, 19); -#line 424 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp70_ = g_strdup (_tmp69_); -#line 424 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp67_->backlinks); -#line 424 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp67_->backlinks = _tmp70_; -#line 425 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp71_ = row; -#line 425 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp72_ = stmt; -#line 425 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp71_->time_reimported = (time_t) sqlite3_column_int64 (_tmp72_, 20); -#line 426 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp73_ = row; -#line 426 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp74_ = stmt; -#line 426 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_id_init (&_tmp73_->editable_id, sqlite3_column_int64 (_tmp74_, 21)); -#line 427 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp75_ = row; -#line 427 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp76_ = stmt; -#line 427 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp75_->metadata_dirty = sqlite3_column_int (_tmp76_, 22) != 0; -#line 428 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp78_ = stmt; -#line 428 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp79_ = sqlite3_column_text (_tmp78_, 23); -#line 428 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp79_ != NULL) { -#line 2959 "PhotoTable.c" - sqlite3_stmt* _tmp80_; - const gchar* _tmp81_; -#line 428 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp80_ = stmt; -#line 428 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp81_ = sqlite3_column_text (_tmp80_, 23); -#line 428 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp77_ = raw_developer_from_string (_tmp81_); -#line 2968 "PhotoTable.c" - } else { -#line 429 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp77_ = RAW_DEVELOPER_CAMERA; -#line 2972 "PhotoTable.c" - } -#line 428 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp82_ = row; -#line 428 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp82_->developer = _tmp77_; -#line 430 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp83_ = row; -#line 430 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp84_ = _tmp83_->development_ids; -#line 430 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp84__length1 = _tmp83_->development_ids_length1; -#line 430 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp85_ = stmt; -#line 430 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_id_init (&_tmp86_, sqlite3_column_int64 (_tmp85_, 24)); -#line 430 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp84_[RAW_DEVELOPER_SHOTWELL] = _tmp86_; -#line 430 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp87_ = _tmp84_[RAW_DEVELOPER_SHOTWELL]; -#line 431 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp88_ = row; -#line 431 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp89_ = _tmp88_->development_ids; -#line 431 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp89__length1 = _tmp88_->development_ids_length1; -#line 431 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp90_ = stmt; -#line 431 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_id_init (&_tmp91_, sqlite3_column_int64 (_tmp90_, 25)); -#line 431 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp89_[RAW_DEVELOPER_CAMERA] = _tmp91_; -#line 431 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp92_ = _tmp89_[RAW_DEVELOPER_CAMERA]; -#line 432 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp93_ = row; -#line 432 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp94_ = _tmp93_->development_ids; -#line 432 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp94__length1 = _tmp93_->development_ids_length1; -#line 432 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp95_ = stmt; -#line 432 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_id_init (&_tmp96_, sqlite3_column_int64 (_tmp95_, 26)); -#line 432 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp94_[RAW_DEVELOPER_EMBEDDED] = _tmp96_; -#line 432 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp97_ = _tmp94_[RAW_DEVELOPER_EMBEDDED]; -#line 433 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp98_ = row; -#line 433 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp99_ = stmt; -#line 433 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp100_ = sqlite3_column_text (_tmp99_, 27); -#line 433 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp101_ = g_strdup (_tmp100_); -#line 433 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp98_->comment); -#line 433 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp98_->comment = _tmp101_; -#line 435 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = row; -#line 435 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 435 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 3038 "PhotoTable.c" -} - - -GeeArrayList* -photo_table_get_all (PhotoTable* self) -{ - GeeArrayList* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - GeeArrayList* all = NULL; - GeeArrayList* _tmp4_; -#line 438 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), NULL); -#line 440 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 440 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id, filename, width, height, filesize, timestamp, exposure_time" \ -", orientation, " "original_orientation, import_id, event_id, transformations, md5, thumb" \ -"nail_md5, " "exif_md5, time_created, flags, rating, file_format, title, backlinks, " \ -"time_reimported, " "editable_id, metadata_dirty, developer, develop_shotwell_id, develop_c" \ -"amera_id, " "develop_embedded_id, comment FROM PhotoTable", -1, &_tmp1_, NULL); -#line 440 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 440 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 440 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 447 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 447 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 449 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = gee_array_list_new (TYPE_PHOTO_ROW, (GBoxedCopyFunc) photo_row_ref, (GDestroyNotify) photo_row_unref, NULL, NULL, NULL); -#line 449 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - all = _tmp4_; -#line 451 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - while (TRUE) { -#line 3076 "PhotoTable.c" - sqlite3_stmt* _tmp5_; - gint _tmp6_; - PhotoRow* row = NULL; - PhotoRow* _tmp7_; - PhotoRow* _tmp8_; - sqlite3_stmt* _tmp9_; - PhotoRow* _tmp10_; - BackingPhotoRow* _tmp11_; - sqlite3_stmt* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; - PhotoRow* _tmp15_; - BackingPhotoRow* _tmp16_; - sqlite3_stmt* _tmp17_; - sqlite3_stmt* _tmp18_; - PhotoRow* _tmp19_; - BackingPhotoRow* _tmp20_; - sqlite3_stmt* _tmp21_; - PhotoRow* _tmp22_; - BackingPhotoRow* _tmp23_; - sqlite3_stmt* _tmp24_; - PhotoRow* _tmp25_; - sqlite3_stmt* _tmp26_; - PhotoRow* _tmp27_; - sqlite3_stmt* _tmp28_; - PhotoRow* _tmp29_; - BackingPhotoRow* _tmp30_; - sqlite3_stmt* _tmp31_; - PhotoRow* _tmp32_; - sqlite3_stmt* _tmp33_; - PhotoRow* _tmp34_; - sqlite3_stmt* _tmp35_; - PhotoRow* _tmp36_; - sqlite3_stmt* _tmp37_; - const gchar* _tmp38_; - GeeHashMap* _tmp39_; - PhotoRow* _tmp40_; - sqlite3_stmt* _tmp41_; - const gchar* _tmp42_; - gchar* _tmp43_; - PhotoRow* _tmp44_; - sqlite3_stmt* _tmp45_; - const gchar* _tmp46_; - gchar* _tmp47_; - PhotoRow* _tmp48_; - sqlite3_stmt* _tmp49_; - const gchar* _tmp50_; - gchar* _tmp51_; - PhotoRow* _tmp52_; - sqlite3_stmt* _tmp53_; - PhotoRow* _tmp54_; - sqlite3_stmt* _tmp55_; - PhotoRow* _tmp56_; - sqlite3_stmt* _tmp57_; - PhotoRow* _tmp58_; - BackingPhotoRow* _tmp59_; - sqlite3_stmt* _tmp60_; - PhotoRow* _tmp61_; - sqlite3_stmt* _tmp62_; - const gchar* _tmp63_; - gchar* _tmp64_; - PhotoRow* _tmp65_; - sqlite3_stmt* _tmp66_; - const gchar* _tmp67_; - gchar* _tmp68_; - PhotoRow* _tmp69_; - sqlite3_stmt* _tmp70_; - PhotoRow* _tmp71_; - sqlite3_stmt* _tmp72_; - PhotoRow* _tmp73_; - sqlite3_stmt* _tmp74_; - RawDeveloper _tmp75_ = 0; - sqlite3_stmt* _tmp76_; - const gchar* _tmp77_; - PhotoRow* _tmp80_; - PhotoRow* _tmp81_; - BackingPhotoID* _tmp82_; - gint _tmp82__length1; - sqlite3_stmt* _tmp83_; - BackingPhotoID _tmp84_ = {0}; - BackingPhotoID _tmp85_; - PhotoRow* _tmp86_; - BackingPhotoID* _tmp87_; - gint _tmp87__length1; - sqlite3_stmt* _tmp88_; - BackingPhotoID _tmp89_ = {0}; - BackingPhotoID _tmp90_; - PhotoRow* _tmp91_; - BackingPhotoID* _tmp92_; - gint _tmp92__length1; - sqlite3_stmt* _tmp93_; - BackingPhotoID _tmp94_ = {0}; - BackingPhotoID _tmp95_; - PhotoRow* _tmp96_; - sqlite3_stmt* _tmp97_; - const gchar* _tmp98_; - gchar* _tmp99_; - PhotoRow* _tmp100_; - GeeArrayList* _tmp101_; - PhotoRow* _tmp102_; -#line 451 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = stmt; -#line 451 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp5_); -#line 451 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = res; -#line 451 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!(_tmp6_ == SQLITE_ROW)) { -#line 451 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - break; -#line 3187 "PhotoTable.c" - } -#line 452 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = photo_row_new (); -#line 452 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - row = _tmp7_; -#line 453 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = row; -#line 453 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = stmt; -#line 453 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_->photo_id.id = sqlite3_column_int64 (_tmp9_, 0); -#line 454 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = row; -#line 454 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = _tmp10_->master; -#line 454 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = stmt; -#line 454 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = sqlite3_column_text (_tmp12_, 1); -#line 454 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = g_strdup (_tmp13_); -#line 454 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp11_->filepath); -#line 454 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_->filepath = _tmp14_; -#line 455 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_ = row; -#line 455 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp16_ = _tmp15_->master; -#line 455 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp17_ = stmt; -#line 455 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp18_ = stmt; -#line 455 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - dimensions_init (&_tmp16_->dim, sqlite3_column_int (_tmp17_, 2), sqlite3_column_int (_tmp18_, 3)); -#line 456 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19_ = row; -#line 456 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp20_ = _tmp19_->master; -#line 456 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp21_ = stmt; -#line 456 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp20_->filesize = sqlite3_column_int64 (_tmp21_, 4); -#line 457 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp22_ = row; -#line 457 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp23_ = _tmp22_->master; -#line 457 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp24_ = stmt; -#line 457 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp23_->timestamp = (time_t) sqlite3_column_int64 (_tmp24_, 5); -#line 458 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp25_ = row; -#line 458 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp26_ = stmt; -#line 458 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp25_->exposure_time = (time_t) sqlite3_column_int64 (_tmp26_, 6); -#line 459 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp27_ = row; -#line 459 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp28_ = stmt; -#line 459 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp27_->orientation = (Orientation) sqlite3_column_int (_tmp28_, 7); -#line 460 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp29_ = row; -#line 460 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp30_ = _tmp29_->master; -#line 460 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp31_ = stmt; -#line 460 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp30_->original_orientation = (Orientation) sqlite3_column_int (_tmp31_, 8); -#line 461 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp32_ = row; -#line 461 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp33_ = stmt; -#line 461 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp32_->import_id.id = sqlite3_column_int64 (_tmp33_, 9); -#line 462 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp34_ = row; -#line 462 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp35_ = stmt; -#line 462 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp34_->event_id.id = sqlite3_column_int64 (_tmp35_, 10); -#line 463 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp36_ = row; -#line 463 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp37_ = stmt; -#line 463 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp38_ = sqlite3_column_text (_tmp37_, 11); -#line 463 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp39_ = photo_table_marshall_all_transformations (_tmp38_); -#line 463 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_object_unref0 (_tmp36_->transformations); -#line 463 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp36_->transformations = _tmp39_; -#line 464 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp40_ = row; -#line 464 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp41_ = stmt; -#line 464 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp42_ = sqlite3_column_text (_tmp41_, 12); -#line 464 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp43_ = g_strdup (_tmp42_); -#line 464 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp40_->md5); -#line 464 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp40_->md5 = _tmp43_; -#line 465 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp44_ = row; -#line 465 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp45_ = stmt; -#line 465 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp46_ = sqlite3_column_text (_tmp45_, 13); -#line 465 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp47_ = g_strdup (_tmp46_); -#line 465 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp44_->thumbnail_md5); -#line 465 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp44_->thumbnail_md5 = _tmp47_; -#line 466 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp48_ = row; -#line 466 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp49_ = stmt; -#line 466 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp50_ = sqlite3_column_text (_tmp49_, 14); -#line 466 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp51_ = g_strdup (_tmp50_); -#line 466 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp48_->exif_md5); -#line 466 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp48_->exif_md5 = _tmp51_; -#line 467 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp52_ = row; -#line 467 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp53_ = stmt; -#line 467 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp52_->time_created = (time_t) sqlite3_column_int64 (_tmp53_, 15); -#line 468 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp54_ = row; -#line 468 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp55_ = stmt; -#line 468 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp54_->flags = (guint64) sqlite3_column_int64 (_tmp55_, 16); -#line 469 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp56_ = row; -#line 469 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp57_ = stmt; -#line 469 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp56_->rating = rating_unserialize (sqlite3_column_int (_tmp57_, 17)); -#line 470 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp58_ = row; -#line 470 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp59_ = _tmp58_->master; -#line 470 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp60_ = stmt; -#line 470 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp59_->file_format = photo_file_format_unserialize (sqlite3_column_int (_tmp60_, 18)); -#line 471 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp61_ = row; -#line 471 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp62_ = stmt; -#line 471 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp63_ = sqlite3_column_text (_tmp62_, 19); -#line 471 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp64_ = g_strdup (_tmp63_); -#line 471 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp61_->title); -#line 471 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp61_->title = _tmp64_; -#line 472 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp65_ = row; -#line 472 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp66_ = stmt; -#line 472 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp67_ = sqlite3_column_text (_tmp66_, 20); -#line 472 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp68_ = g_strdup (_tmp67_); -#line 472 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp65_->backlinks); -#line 472 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp65_->backlinks = _tmp68_; -#line 473 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp69_ = row; -#line 473 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp70_ = stmt; -#line 473 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp69_->time_reimported = (time_t) sqlite3_column_int64 (_tmp70_, 21); -#line 474 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp71_ = row; -#line 474 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp72_ = stmt; -#line 474 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_id_init (&_tmp71_->editable_id, sqlite3_column_int64 (_tmp72_, 22)); -#line 475 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp73_ = row; -#line 475 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp74_ = stmt; -#line 475 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp73_->metadata_dirty = sqlite3_column_int (_tmp74_, 23) != 0; -#line 476 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp76_ = stmt; -#line 476 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp77_ = sqlite3_column_text (_tmp76_, 24); -#line 476 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp77_ != NULL) { -#line 3393 "PhotoTable.c" - sqlite3_stmt* _tmp78_; - const gchar* _tmp79_; -#line 476 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp78_ = stmt; -#line 476 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp79_ = sqlite3_column_text (_tmp78_, 24); -#line 476 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp75_ = raw_developer_from_string (_tmp79_); -#line 3402 "PhotoTable.c" - } else { -#line 477 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp75_ = RAW_DEVELOPER_CAMERA; -#line 3406 "PhotoTable.c" - } -#line 476 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp80_ = row; -#line 476 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp80_->developer = _tmp75_; -#line 478 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp81_ = row; -#line 478 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp82_ = _tmp81_->development_ids; -#line 478 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp82__length1 = _tmp81_->development_ids_length1; -#line 478 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp83_ = stmt; -#line 478 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_id_init (&_tmp84_, sqlite3_column_int64 (_tmp83_, 25)); -#line 478 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp82_[RAW_DEVELOPER_SHOTWELL] = _tmp84_; -#line 478 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp85_ = _tmp82_[RAW_DEVELOPER_SHOTWELL]; -#line 479 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp86_ = row; -#line 479 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp87_ = _tmp86_->development_ids; -#line 479 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp87__length1 = _tmp86_->development_ids_length1; -#line 479 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp88_ = stmt; -#line 479 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_id_init (&_tmp89_, sqlite3_column_int64 (_tmp88_, 26)); -#line 479 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp87_[RAW_DEVELOPER_CAMERA] = _tmp89_; -#line 479 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp90_ = _tmp87_[RAW_DEVELOPER_CAMERA]; -#line 480 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp91_ = row; -#line 480 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp92_ = _tmp91_->development_ids; -#line 480 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp92__length1 = _tmp91_->development_ids_length1; -#line 480 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp93_ = stmt; -#line 480 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_id_init (&_tmp94_, sqlite3_column_int64 (_tmp93_, 27)); -#line 480 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp92_[RAW_DEVELOPER_EMBEDDED] = _tmp94_; -#line 480 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp95_ = _tmp92_[RAW_DEVELOPER_EMBEDDED]; -#line 481 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp96_ = row; -#line 481 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp97_ = stmt; -#line 481 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp98_ = sqlite3_column_text (_tmp97_, 28); -#line 481 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp99_ = g_strdup (_tmp98_); -#line 481 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp96_->comment); -#line 481 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp96_->comment = _tmp99_; -#line 483 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp100_ = row; -#line 483 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_table_validate_orientation (self, _tmp100_); -#line 485 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp101_ = all; -#line 485 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp102_ = row; -#line 485 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp101_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp102_); -#line 451 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _photo_row_unref0 (row); -#line 3478 "PhotoTable.c" - } -#line 488 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = all; -#line 488 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 488 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 3486 "PhotoTable.c" -} - - -void -photo_table_duplicate (PhotoTable* self, - PhotoID* photo_id, - const gchar* new_filename, - BackingPhotoID* editable_id, - BackingPhotoID* develop_shotwell, - BackingPhotoID* develop_camera_id, - BackingPhotoID* develop_embedded_id, - PhotoID* result) -{ - PhotoRow* original = NULL; - PhotoID _tmp0_; - PhotoRow* _tmp1_; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp2_; - sqlite3_stmt* _tmp3_ = NULL; - gint _tmp4_; - gint _tmp5_; - sqlite3_stmt* _tmp6_; - gchar* _tmp7_; - GDestroyNotify _tmp8_; - gint _tmp9_; - sqlite3_stmt* _tmp10_; - PhotoRow* _tmp11_; - BackingPhotoRow* _tmp12_; - Dimensions _tmp13_; - gint _tmp14_; - gint _tmp15_; - sqlite3_stmt* _tmp16_; - PhotoRow* _tmp17_; - BackingPhotoRow* _tmp18_; - Dimensions _tmp19_; - gint _tmp20_; - gint _tmp21_; - sqlite3_stmt* _tmp22_; - PhotoRow* _tmp23_; - BackingPhotoRow* _tmp24_; - gint64 _tmp25_; - gint _tmp26_; - sqlite3_stmt* _tmp27_; - PhotoRow* _tmp28_; - BackingPhotoRow* _tmp29_; - time_t _tmp30_; - gint _tmp31_; - sqlite3_stmt* _tmp32_; - PhotoRow* _tmp33_; - time_t _tmp34_; - gint _tmp35_; - sqlite3_stmt* _tmp36_; - PhotoRow* _tmp37_; - Orientation _tmp38_; - gint _tmp39_; - sqlite3_stmt* _tmp40_; - PhotoRow* _tmp41_; - BackingPhotoRow* _tmp42_; - Orientation _tmp43_; - gint _tmp44_; - sqlite3_stmt* _tmp45_; - PhotoRow* _tmp46_; - ImportID _tmp47_; - gint64 _tmp48_; - gint _tmp49_; - sqlite3_stmt* _tmp50_; - PhotoRow* _tmp51_; - EventID _tmp52_; - gint64 _tmp53_; - gint _tmp54_; - sqlite3_stmt* _tmp55_; - PhotoRow* _tmp56_; - GeeHashMap* _tmp57_; - gchar* _tmp58_; - GDestroyNotify _tmp59_; - gint _tmp60_; - sqlite3_stmt* _tmp61_; - PhotoRow* _tmp62_; - const gchar* _tmp63_; - gchar* _tmp64_; - GDestroyNotify _tmp65_; - gint _tmp66_; - sqlite3_stmt* _tmp67_; - PhotoRow* _tmp68_; - const gchar* _tmp69_; - gchar* _tmp70_; - GDestroyNotify _tmp71_; - gint _tmp72_; - sqlite3_stmt* _tmp73_; - PhotoRow* _tmp74_; - const gchar* _tmp75_; - gchar* _tmp76_; - GDestroyNotify _tmp77_; - gint _tmp78_; - sqlite3_stmt* _tmp79_; - gint _tmp80_; - sqlite3_stmt* _tmp81_; - PhotoRow* _tmp82_; - guint64 _tmp83_; - gint _tmp84_; - sqlite3_stmt* _tmp85_; - PhotoRow* _tmp86_; - Rating _tmp87_; - gint _tmp88_; - sqlite3_stmt* _tmp89_; - PhotoRow* _tmp90_; - BackingPhotoRow* _tmp91_; - PhotoFileFormat _tmp92_; - gint _tmp93_; - sqlite3_stmt* _tmp94_; - PhotoRow* _tmp95_; - const gchar* _tmp96_; - gchar* _tmp97_; - GDestroyNotify _tmp98_; - gint _tmp99_; - sqlite3_stmt* _tmp100_; - BackingPhotoID _tmp101_; - gint64 _tmp102_; - gint _tmp103_; - sqlite3_stmt* _tmp104_; - PhotoRow* _tmp105_; - RawDeveloper _tmp106_; - gchar* _tmp107_; - GDestroyNotify _tmp108_; - gint _tmp109_; - sqlite3_stmt* _tmp110_; - BackingPhotoID _tmp111_; - gint64 _tmp112_; - gint _tmp113_; - sqlite3_stmt* _tmp114_; - BackingPhotoID _tmp115_; - gint64 _tmp116_; - gint _tmp117_; - sqlite3_stmt* _tmp118_; - BackingPhotoID _tmp119_; - gint64 _tmp120_; - gint _tmp121_; - sqlite3_stmt* _tmp122_; - PhotoRow* _tmp123_; - const gchar* _tmp124_; - gchar* _tmp125_; - GDestroyNotify _tmp126_; - gint _tmp127_; - sqlite3_stmt* _tmp128_; - gint _tmp129_; - sqlite3* _tmp133_; - PhotoID _tmp134_ = {0}; -#line 493 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 493 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (photo_id != NULL); -#line 493 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (new_filename != NULL); -#line 493 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (editable_id != NULL); -#line 493 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (develop_shotwell != NULL); -#line 493 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (develop_camera_id != NULL); -#line 493 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (develop_embedded_id != NULL); -#line 497 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *photo_id; -#line 497 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = photo_table_get_row (self, &_tmp0_); -#line 497 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - original = _tmp1_; -#line 500 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = database_table_db; -#line 500 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = sqlite3_prepare_v2 (_tmp2_, "INSERT INTO PhotoTable (filename, width, height, filesize, " "timestamp, exposure_time, orientation, original_orientation, import_id" \ -", event_id, " "transformations, md5, thumbnail_md5, exif_md5, time_created, flags, ra" \ -"ting, " "file_format, title, editable_id, developer, develop_shotwell_id, devel" \ -"op_camera_id, " "develop_embedded_id, comment) " "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?," \ -" ?, ?, ?, ?)", -1, &_tmp3_, NULL); -#line 500 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 500 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp3_; -#line 500 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp4_; -#line 507 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = res; -#line 507 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK"); -#line 509 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = stmt; -#line 509 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = g_strdup (new_filename); -#line 509 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = g_free; -#line 509 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp6_, 1, _tmp7_, -1, _tmp8_); -#line 510 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = res; -#line 510 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK"); -#line 511 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = stmt; -#line 511 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = original; -#line 511 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = _tmp11_->master; -#line 511 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = _tmp12_->dim; -#line 511 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = _tmp13_.width; -#line 511 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp10_, 2, _tmp14_); -#line 512 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_ = res; -#line 512 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp15_ == SQLITE_OK, "res == Sqlite.OK"); -#line 513 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp16_ = stmt; -#line 513 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp17_ = original; -#line 513 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp18_ = _tmp17_->master; -#line 513 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19_ = _tmp18_->dim; -#line 513 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp20_ = _tmp19_.height; -#line 513 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp16_, 3, _tmp20_); -#line 514 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp21_ = res; -#line 514 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp21_ == SQLITE_OK, "res == Sqlite.OK"); -#line 515 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp22_ = stmt; -#line 515 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp23_ = original; -#line 515 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp24_ = _tmp23_->master; -#line 515 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp25_ = _tmp24_->filesize; -#line 515 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp22_, 4, _tmp25_); -#line 516 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp26_ = res; -#line 516 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp26_ == SQLITE_OK, "res == Sqlite.OK"); -#line 517 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp27_ = stmt; -#line 517 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp28_ = original; -#line 517 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp29_ = _tmp28_->master; -#line 517 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp30_ = _tmp29_->timestamp; -#line 517 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp27_, 5, (gint64) _tmp30_); -#line 518 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp31_ = res; -#line 518 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp31_ == SQLITE_OK, "res == Sqlite.OK"); -#line 519 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp32_ = stmt; -#line 519 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp33_ = original; -#line 519 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp34_ = _tmp33_->exposure_time; -#line 519 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp32_, 6, (gint64) _tmp34_); -#line 520 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp35_ = res; -#line 520 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp35_ == SQLITE_OK, "res == Sqlite.OK"); -#line 521 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp36_ = stmt; -#line 521 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp37_ = original; -#line 521 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp38_ = _tmp37_->orientation; -#line 521 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp36_, 7, (gint) _tmp38_); -#line 522 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp39_ = res; -#line 522 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp39_ == SQLITE_OK, "res == Sqlite.OK"); -#line 523 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp40_ = stmt; -#line 523 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp41_ = original; -#line 523 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp42_ = _tmp41_->master; -#line 523 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp43_ = _tmp42_->original_orientation; -#line 523 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp40_, 8, (gint) _tmp43_); -#line 524 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp44_ = res; -#line 524 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp44_ == SQLITE_OK, "res == Sqlite.OK"); -#line 525 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp45_ = stmt; -#line 525 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp46_ = original; -#line 525 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp47_ = _tmp46_->import_id; -#line 525 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp48_ = _tmp47_.id; -#line 525 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp45_, 9, _tmp48_); -#line 526 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp49_ = res; -#line 526 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp49_ == SQLITE_OK, "res == Sqlite.OK"); -#line 527 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp50_ = stmt; -#line 527 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp51_ = original; -#line 527 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp52_ = _tmp51_->event_id; -#line 527 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp53_ = _tmp52_.id; -#line 527 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp50_, 10, _tmp53_); -#line 528 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp54_ = res; -#line 528 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp54_ == SQLITE_OK, "res == Sqlite.OK"); -#line 529 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp55_ = stmt; -#line 529 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp56_ = original; -#line 529 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp57_ = _tmp56_->transformations; -#line 529 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp58_ = photo_table_unmarshall_all_transformations (_tmp57_); -#line 529 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp59_ = g_free; -#line 529 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp55_, 11, _tmp58_, -1, _tmp59_); -#line 530 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp60_ = res; -#line 530 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp60_ == SQLITE_OK, "res == Sqlite.OK"); -#line 531 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp61_ = stmt; -#line 531 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp62_ = original; -#line 531 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp63_ = _tmp62_->md5; -#line 531 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp64_ = g_strdup (_tmp63_); -#line 531 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp65_ = g_free; -#line 531 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp61_, 12, _tmp64_, -1, _tmp65_); -#line 532 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp66_ = res; -#line 532 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp66_ == SQLITE_OK, "res == Sqlite.OK"); -#line 533 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp67_ = stmt; -#line 533 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp68_ = original; -#line 533 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp69_ = _tmp68_->thumbnail_md5; -#line 533 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp70_ = g_strdup (_tmp69_); -#line 533 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp71_ = g_free; -#line 533 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp67_, 13, _tmp70_, -1, _tmp71_); -#line 534 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp72_ = res; -#line 534 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp72_ == SQLITE_OK, "res == Sqlite.OK"); -#line 535 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp73_ = stmt; -#line 535 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp74_ = original; -#line 535 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp75_ = _tmp74_->exif_md5; -#line 535 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp76_ = g_strdup (_tmp75_); -#line 535 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp77_ = g_free; -#line 535 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp73_, 14, _tmp76_, -1, _tmp77_); -#line 536 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp78_ = res; -#line 536 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp78_ == SQLITE_OK, "res == Sqlite.OK"); -#line 537 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp79_ = stmt; -#line 537 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp79_, 15, (gint64) now_sec ()); -#line 538 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp80_ = res; -#line 538 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp80_ == SQLITE_OK, "res == Sqlite.OK"); -#line 539 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp81_ = stmt; -#line 539 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp82_ = original; -#line 539 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp83_ = _tmp82_->flags; -#line 539 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp81_, 16, (gint64) _tmp83_); -#line 540 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp84_ = res; -#line 540 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp84_ == SQLITE_OK, "res == Sqlite.OK"); -#line 541 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp85_ = stmt; -#line 541 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp86_ = original; -#line 541 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp87_ = _tmp86_->rating; -#line 541 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp85_, 17, (gint64) rating_serialize (_tmp87_)); -#line 542 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp88_ = res; -#line 542 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp88_ == SQLITE_OK, "res == Sqlite.OK"); -#line 543 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp89_ = stmt; -#line 543 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp90_ = original; -#line 543 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp91_ = _tmp90_->master; -#line 543 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp92_ = _tmp91_->file_format; -#line 543 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp89_, 18, photo_file_format_serialize (_tmp92_)); -#line 544 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp93_ = res; -#line 544 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp93_ == SQLITE_OK, "res == Sqlite.OK"); -#line 545 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp94_ = stmt; -#line 545 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp95_ = original; -#line 545 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp96_ = _tmp95_->title; -#line 545 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp97_ = g_strdup (_tmp96_); -#line 545 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp98_ = g_free; -#line 545 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp94_, 19, _tmp97_, -1, _tmp98_); -#line 546 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp99_ = res; -#line 546 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp99_ == SQLITE_OK, "res == Sqlite.OK"); -#line 547 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp100_ = stmt; -#line 547 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp101_ = *editable_id; -#line 547 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp102_ = _tmp101_.id; -#line 547 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp100_, 20, _tmp102_); -#line 548 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp103_ = res; -#line 548 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp103_ == SQLITE_OK, "res == Sqlite.OK"); -#line 550 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp104_ = stmt; -#line 550 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp105_ = original; -#line 550 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp106_ = _tmp105_->developer; -#line 550 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp107_ = raw_developer_to_string (_tmp106_); -#line 550 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp108_ = g_free; -#line 550 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp104_, 21, _tmp107_, -1, _tmp108_); -#line 551 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp109_ = res; -#line 551 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp109_ == SQLITE_OK, "res == Sqlite.OK"); -#line 552 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp110_ = stmt; -#line 552 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp111_ = *develop_shotwell; -#line 552 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp112_ = _tmp111_.id; -#line 552 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp110_, 22, _tmp112_); -#line 553 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp113_ = res; -#line 553 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp113_ == SQLITE_OK, "res == Sqlite.OK"); -#line 554 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp114_ = stmt; -#line 554 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp115_ = *develop_camera_id; -#line 554 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp116_ = _tmp115_.id; -#line 554 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp114_, 23, _tmp116_); -#line 555 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp117_ = res; -#line 555 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp117_ == SQLITE_OK, "res == Sqlite.OK"); -#line 556 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp118_ = stmt; -#line 556 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp119_ = *develop_embedded_id; -#line 556 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp120_ = _tmp119_.id; -#line 556 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp118_, 24, _tmp120_); -#line 557 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp121_ = res; -#line 557 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp121_ == SQLITE_OK, "res == Sqlite.OK"); -#line 558 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp122_ = stmt; -#line 558 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp123_ = original; -#line 558 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp124_ = _tmp123_->comment; -#line 558 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp125_ = g_strdup (_tmp124_); -#line 558 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp126_ = g_free; -#line 558 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp122_, 25, _tmp125_, -1, _tmp126_); -#line 559 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp127_ = res; -#line 559 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp127_ == SQLITE_OK, "res == Sqlite.OK"); -#line 561 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp128_ = stmt; -#line 561 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp128_); -#line 562 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp129_ = res; -#line 562 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp129_ != SQLITE_DONE) { -#line 4021 "PhotoTable.c" - gint _tmp130_; - PhotoID _tmp132_ = {0}; -#line 563 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp130_ = res; -#line 563 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp130_ != SQLITE_CONSTRAINT) { -#line 4028 "PhotoTable.c" - gint _tmp131_; -#line 564 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp131_ = res; -#line 564 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_fatal ("duplicate", _tmp131_); -#line 4034 "PhotoTable.c" - } -#line 566 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_id_init (&_tmp132_, PHOTO_ID_INVALID); -#line 566 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - *result = _tmp132_; -#line 566 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 566 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _photo_row_unref0 (original); -#line 566 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 4046 "PhotoTable.c" - } -#line 569 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp133_ = database_table_db; -#line 569 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_id_init (&_tmp134_, sqlite3_last_insert_rowid (_tmp133_)); -#line 569 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - *result = _tmp134_; -#line 569 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 569 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _photo_row_unref0 (original); -#line 569 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 4060 "PhotoTable.c" -} - - -gboolean -photo_table_set_title (PhotoTable* self, - PhotoID* photo_id, - const gchar* new_title) -{ - gboolean result = FALSE; - const gchar* _tmp0_ = NULL; - PhotoID _tmp1_; - gint64 _tmp2_; -#line 572 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 572 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (photo_id != NULL, FALSE); -#line 573 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (new_title != NULL) { -#line 573 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = new_title; -#line 4081 "PhotoTable.c" - } else { -#line 573 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = ""; -#line 4085 "PhotoTable.c" - } -#line 573 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = *photo_id; -#line 573 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = _tmp1_.id; -#line 573 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = database_table_update_text_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "title", _tmp0_); -#line 573 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 4095 "PhotoTable.c" -} - - -gboolean -photo_table_set_comment (PhotoTable* self, - PhotoID* photo_id, - const gchar* new_comment) -{ - gboolean result = FALSE; - const gchar* _tmp0_ = NULL; - PhotoID _tmp1_; - gint64 _tmp2_; -#line 576 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 576 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (photo_id != NULL, FALSE); -#line 577 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (new_comment != NULL) { -#line 577 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = new_comment; -#line 4116 "PhotoTable.c" - } else { -#line 577 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = ""; -#line 4120 "PhotoTable.c" - } -#line 577 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = *photo_id; -#line 577 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = _tmp1_.id; -#line 577 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = database_table_update_text_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "comment", _tmp0_); -#line 577 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 4130 "PhotoTable.c" -} - - -void -photo_table_set_filepath (PhotoTable* self, - PhotoID* photo_id, - const gchar* filepath, - GError** error) -{ - PhotoID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 580 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 580 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (photo_id != NULL); -#line 580 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (filepath != NULL); -#line 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *photo_id; -#line 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.id; -#line 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "filename", filepath, &_inner_error_); -#line 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 4163 "PhotoTable.c" - } else { -#line 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 581 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 4171 "PhotoTable.c" - } - } -} - - -void -photo_table_update_timestamp (PhotoTable* self, - PhotoID* photo_id, - time_t timestamp, - GError** error) -{ - PhotoID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 584 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 584 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (photo_id != NULL); -#line 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *photo_id; -#line 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.id; -#line 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "timestamp", (gint64) timestamp, &_inner_error_); -#line 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 4204 "PhotoTable.c" - } else { -#line 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 585 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 4212 "PhotoTable.c" - } - } -} - - -gboolean -photo_table_set_exposure_time (PhotoTable* self, - PhotoID* photo_id, - time_t time) -{ - gboolean result = FALSE; - PhotoID _tmp0_; - gint64 _tmp1_; -#line 588 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 588 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (photo_id != NULL, FALSE); -#line 589 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *photo_id; -#line 589 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.id; -#line 589 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = database_table_update_int64_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "exposure_time", (gint64) time); -#line 589 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 4238 "PhotoTable.c" -} - - -void -photo_table_set_import_id (PhotoTable* self, - PhotoID* photo_id, - ImportID* import_id, - GError** error) -{ - PhotoID _tmp0_; - gint64 _tmp1_; - ImportID _tmp2_; - gint64 _tmp3_; - GError * _inner_error_ = NULL; -#line 592 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 592 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (photo_id != NULL); -#line 592 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (import_id != NULL); -#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *photo_id; -#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.id; -#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = *import_id; -#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = _tmp2_.id; -#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "import_id", _tmp3_, &_inner_error_); -#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 4277 "PhotoTable.c" - } else { -#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 593 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 4285 "PhotoTable.c" - } - } -} - - -gboolean -photo_table_remove_by_file (PhotoTable* self, - GFile* file) -{ - gboolean result = FALSE; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gchar* _tmp5_; - GDestroyNotify _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - gint _tmp9_; -#line 596 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 596 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 598 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 598 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "DELETE FROM PhotoTable WHERE filename=?", -1, &_tmp1_, NULL); -#line 598 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 598 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 598 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 599 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 599 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 601 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = stmt; -#line 601 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = g_file_get_path (file); -#line 601 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = g_free; -#line 601 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp4_, 1, _tmp5_, -1, _tmp6_); -#line 602 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = res; -#line 602 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 604 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = stmt; -#line 604 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp8_); -#line 605 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = res; -#line 605 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp9_ != SQLITE_DONE) { -#line 4346 "PhotoTable.c" - gint _tmp10_; -#line 606 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = res; -#line 606 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_warning ("remove", _tmp10_); -#line 608 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = FALSE; -#line 608 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 608 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 4358 "PhotoTable.c" - } -#line 611 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = TRUE; -#line 611 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 611 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 4366 "PhotoTable.c" -} - - -void -photo_table_remove (PhotoTable* self, - PhotoID* photo_id, - GError** error) -{ - PhotoID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 614 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 614 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (photo_id != NULL); -#line 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *photo_id; -#line 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.id; -#line 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_delete_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, &_inner_error_); -#line 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 4396 "PhotoTable.c" - } else { -#line 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 615 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 4404 "PhotoTable.c" - } - } -} - - -GeeArrayList* -photo_table_get_photos (PhotoTable* self) -{ - GeeArrayList* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - GeeArrayList* photo_ids = NULL; - GeeArrayList* _tmp4_; -#line 618 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), NULL); -#line 620 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 620 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id FROM PhotoTable", -1, &_tmp1_, NULL); -#line 620 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 620 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 620 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 621 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 621 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 623 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = gee_array_list_new (TYPE_PHOTO_ID, (GBoxedCopyFunc) photo_id_dup, (GDestroyNotify) photo_id_free, NULL, NULL, NULL); -#line 623 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_ids = _tmp4_; -#line 4442 "PhotoTable.c" - { - gboolean _tmp5_ = FALSE; -#line 624 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = TRUE; -#line 624 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - while (TRUE) { -#line 4449 "PhotoTable.c" - sqlite3_stmt* _tmp6_; - gint _tmp7_; - GeeArrayList* _tmp10_; - sqlite3_stmt* _tmp11_; - PhotoID _tmp12_ = {0}; -#line 624 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!_tmp5_) { -#line 4457 "PhotoTable.c" - } -#line 624 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = FALSE; -#line 625 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = stmt; -#line 625 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp6_); -#line 626 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = res; -#line 626 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp7_ == SQLITE_DONE) { -#line 627 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - break; -#line 4471 "PhotoTable.c" - } else { - gint _tmp8_; -#line 628 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = res; -#line 628 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp8_ != SQLITE_ROW) { -#line 4478 "PhotoTable.c" - gint _tmp9_; -#line 629 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = res; -#line 629 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_fatal ("get_photos", _tmp9_); -#line 631 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - break; -#line 4486 "PhotoTable.c" - } - } -#line 634 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = photo_ids; -#line 634 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = stmt; -#line 634 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_id_init (&_tmp12_, sqlite3_column_int64 (_tmp11_, 0)); -#line 634 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), &_tmp12_); -#line 4497 "PhotoTable.c" - } - } -#line 637 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = photo_ids; -#line 637 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 637 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 4506 "PhotoTable.c" -} - - -gboolean -photo_table_set_orientation (PhotoTable* self, - PhotoID* photo_id, - Orientation orientation) -{ - gboolean result = FALSE; - PhotoID _tmp0_; - gint64 _tmp1_; -#line 640 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 640 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (photo_id != NULL, FALSE); -#line 641 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *photo_id; -#line 641 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.id; -#line 641 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = database_table_update_int_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "orientation", (gint) orientation); -#line 641 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 4530 "PhotoTable.c" -} - - -gboolean -photo_table_replace_flags (PhotoTable* self, - PhotoID* photo_id, - guint64 flags) -{ - gboolean result = FALSE; - PhotoID _tmp0_; - gint64 _tmp1_; -#line 644 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 644 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (photo_id != NULL, FALSE); -#line 645 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *photo_id; -#line 645 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.id; -#line 645 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = database_table_update_int64_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "flags", (gint64) flags); -#line 645 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 4554 "PhotoTable.c" -} - - -gboolean -photo_table_set_rating (PhotoTable* self, - PhotoID* photo_id, - Rating rating) -{ - gboolean result = FALSE; - PhotoID _tmp0_; - gint64 _tmp1_; -#line 648 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 648 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (photo_id != NULL, FALSE); -#line 649 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *photo_id; -#line 649 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.id; -#line 649 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = database_table_update_int_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "rating", rating_serialize (rating)); -#line 649 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 4578 "PhotoTable.c" -} - - -gint -photo_table_get_event_photo_count (PhotoTable* self, - EventID* event_id) -{ - gint result = 0; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - EventID _tmp5_; - gint64 _tmp6_; - gint _tmp7_; - gint count = 0; -#line 652 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), 0); -#line 652 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (event_id != NULL, 0); -#line 654 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 654 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id FROM PhotoTable WHERE event_id = ?", -1, &_tmp1_, NULL); -#line 654 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 654 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 654 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 655 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 655 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 657 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = stmt; -#line 657 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = *event_id; -#line 657 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = _tmp5_.id; -#line 657 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_); -#line 658 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = res; -#line 658 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 660 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - count = 0; -#line 4630 "PhotoTable.c" - { - gboolean _tmp8_ = FALSE; -#line 661 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = TRUE; -#line 661 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - while (TRUE) { -#line 4637 "PhotoTable.c" - sqlite3_stmt* _tmp9_; - gint _tmp10_; - gint _tmp13_; -#line 661 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!_tmp8_) { -#line 4643 "PhotoTable.c" - } -#line 661 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = FALSE; -#line 662 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = stmt; -#line 662 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp9_); -#line 663 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = res; -#line 663 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp10_ == SQLITE_DONE) { -#line 664 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - break; -#line 4657 "PhotoTable.c" - } else { - gint _tmp11_; -#line 665 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = res; -#line 665 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp11_ != SQLITE_ROW) { -#line 4664 "PhotoTable.c" - gint _tmp12_; -#line 666 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = res; -#line 666 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_fatal ("get_event_photo_count", _tmp12_); -#line 668 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - break; -#line 4672 "PhotoTable.c" - } - } -#line 671 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = count; -#line 671 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - count = _tmp13_ + 1; -#line 4679 "PhotoTable.c" - } - } -#line 674 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = count; -#line 674 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 674 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 4688 "PhotoTable.c" -} - - -GeeArrayList* -photo_table_get_event_source_ids (PhotoTable* self, - EventID* event_id) -{ - GeeArrayList* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - EventID _tmp5_; - gint64 _tmp6_; - gint _tmp7_; - GeeArrayList* _result_ = NULL; - GeeArrayList* _tmp8_; -#line 677 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), NULL); -#line 677 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (event_id != NULL, NULL); -#line 679 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 679 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id FROM PhotoTable WHERE event_id = ?", -1, &_tmp1_, NULL); -#line 679 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 679 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 679 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 680 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 680 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 682 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = stmt; -#line 682 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = *event_id; -#line 682 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = _tmp5_.id; -#line 682 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_); -#line 683 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = res; -#line 683 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 685 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 685 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _result_ = _tmp8_; -#line 4743 "PhotoTable.c" - { - gboolean _tmp9_ = FALSE; -#line 686 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = TRUE; -#line 686 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - while (TRUE) { -#line 4750 "PhotoTable.c" - sqlite3_stmt* _tmp10_; - gint _tmp11_; - GeeArrayList* _tmp14_; - sqlite3_stmt* _tmp15_; - PhotoID _tmp16_ = {0}; - gchar* _tmp17_; - gchar* _tmp18_; -#line 686 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!_tmp9_) { -#line 4760 "PhotoTable.c" - } -#line 686 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = FALSE; -#line 687 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = stmt; -#line 687 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp10_); -#line 688 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = res; -#line 688 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp11_ == SQLITE_DONE) { -#line 689 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - break; -#line 4774 "PhotoTable.c" - } else { - gint _tmp12_; -#line 690 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = res; -#line 690 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp12_ != SQLITE_ROW) { -#line 4781 "PhotoTable.c" - gint _tmp13_; -#line 691 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = res; -#line 691 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_fatal ("get_event_source_ids", _tmp13_); -#line 693 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - break; -#line 4789 "PhotoTable.c" - } - } -#line 696 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = _result_; -#line 696 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_ = stmt; -#line 696 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_id_init (&_tmp16_, sqlite3_column_int64 (_tmp15_, 0)); -#line 696 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp17_ = photo_id_upgrade_photo_id_to_source_id (&_tmp16_); -#line 696 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp18_ = _tmp17_; -#line 696 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp18_); -#line 696 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp18_); -#line 4806 "PhotoTable.c" - } - } -#line 699 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = _result_; -#line 699 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 699 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 4815 "PhotoTable.c" -} - - -gboolean -photo_table_event_has_photos (PhotoTable* self, - EventID* event_id) -{ - gboolean result = FALSE; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - EventID _tmp5_; - gint64 _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - gint _tmp9_; -#line 702 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 702 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (event_id != NULL, FALSE); -#line 704 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 704 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id FROM PhotoTable WHERE event_id = ? LIMIT 1", -1, &_tmp1_, NULL); -#line 704 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 704 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 704 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 705 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 705 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 707 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = stmt; -#line 707 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = *event_id; -#line 707 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = _tmp5_.id; -#line 707 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_); -#line 708 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = res; -#line 708 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 710 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = stmt; -#line 710 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp8_); -#line 711 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = res; -#line 711 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp9_ == SQLITE_DONE) { -#line 712 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = FALSE; -#line 712 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 712 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 4880 "PhotoTable.c" - } else { - gint _tmp10_; -#line 713 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = res; -#line 713 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp10_ != SQLITE_ROW) { -#line 4887 "PhotoTable.c" - gint _tmp11_; -#line 714 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = res; -#line 714 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_fatal ("event_has_photos", _tmp11_); -#line 716 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = FALSE; -#line 716 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 716 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 4899 "PhotoTable.c" - } - } -#line 719 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = TRUE; -#line 719 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 719 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 4908 "PhotoTable.c" -} - - -gboolean -photo_table_drop_event (PhotoTable* self, - EventID* event_id) -{ - gboolean result = FALSE; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gint _tmp5_; - sqlite3_stmt* _tmp6_; - EventID _tmp7_; - gint64 _tmp8_; - gint _tmp9_; - sqlite3_stmt* _tmp10_; - gint _tmp11_; -#line 722 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 722 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (event_id != NULL, FALSE); -#line 724 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 724 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE PhotoTable SET event_id = ? WHERE event_id = ?", -1, &_tmp1_, NULL); -#line 724 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 724 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 724 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 725 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 725 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 727 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = stmt; -#line 727 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp4_, 1, EVENT_ID_INVALID); -#line 728 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = res; -#line 728 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK"); -#line 729 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = stmt; -#line 729 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = *event_id; -#line 729 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = _tmp7_.id; -#line 729 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp6_, 2, _tmp8_); -#line 730 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = res; -#line 730 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK"); -#line 732 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = stmt; -#line 732 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp10_); -#line 733 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = res; -#line 733 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp11_ != SQLITE_DONE) { -#line 4977 "PhotoTable.c" - gint _tmp12_; -#line 734 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = res; -#line 734 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_fatal ("drop_event", _tmp12_); -#line 736 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = FALSE; -#line 736 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 736 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 4989 "PhotoTable.c" - } -#line 739 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = TRUE; -#line 739 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 739 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 4997 "PhotoTable.c" -} - - -gboolean -photo_table_set_event (PhotoTable* self, - PhotoID* photo_id, - EventID* event_id) -{ - gboolean result = FALSE; - PhotoID _tmp0_; - gint64 _tmp1_; - EventID _tmp2_; - gint64 _tmp3_; -#line 742 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 742 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (photo_id != NULL, FALSE); -#line 742 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (event_id != NULL, FALSE); -#line 743 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *photo_id; -#line 743 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.id; -#line 743 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = *event_id; -#line 743 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = _tmp2_.id; -#line 743 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = database_table_update_int64_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "event_id", _tmp3_); -#line 743 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 5029 "PhotoTable.c" -} - - -static gchar* -photo_table_get_raw_transformations (PhotoTable* self, - PhotoID* photo_id) -{ - gchar* result = NULL; - sqlite3_stmt* stmt = NULL; - PhotoID _tmp0_; - gint64 _tmp1_; - sqlite3_stmt* _tmp2_ = NULL; - gboolean _tmp3_; - gchar* trans = NULL; - sqlite3_stmt* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - gboolean _tmp7_ = FALSE; - const gchar* _tmp8_; -#line 746 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), NULL); -#line 746 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (photo_id != NULL, NULL); -#line 748 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *photo_id; -#line 748 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.id; -#line 748 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = database_table_select_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "transformations", &_tmp2_); -#line 748 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 748 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp2_; -#line 748 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!_tmp3_) { -#line 749 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = NULL; -#line 749 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 749 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 5071 "PhotoTable.c" - } -#line 751 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = stmt; -#line 751 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = sqlite3_column_text (_tmp4_, 0); -#line 751 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 751 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - trans = _tmp6_; -#line 752 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = trans; -#line 752 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp8_ == NULL) { -#line 752 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = TRUE; -#line 5087 "PhotoTable.c" - } else { - const gchar* _tmp9_; - gint _tmp10_; - gint _tmp11_; -#line 752 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = trans; -#line 752 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = strlen (_tmp9_); -#line 752 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = _tmp10_; -#line 752 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = _tmp11_ == 0; -#line 5100 "PhotoTable.c" - } -#line 752 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp7_) { -#line 753 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = NULL; -#line 753 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (trans); -#line 753 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 753 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 5112 "PhotoTable.c" - } -#line 755 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = trans; -#line 755 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 755 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 5120 "PhotoTable.c" -} - - -static gboolean -photo_table_set_raw_transformations (PhotoTable* self, - PhotoID* photo_id, - const gchar* trans) -{ - gboolean result = FALSE; - PhotoID _tmp0_; - gint64 _tmp1_; -#line 758 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 758 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (photo_id != NULL, FALSE); -#line 758 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (trans != NULL, FALSE); -#line 759 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *photo_id; -#line 759 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.id; -#line 759 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = database_table_update_text_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "transformations", trans); -#line 759 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 5146 "PhotoTable.c" -} - - -gboolean -photo_table_set_transformation_state (PhotoTable* self, - PhotoID* photo_id, - Orientation orientation, - GeeHashMap* transformations) -{ - gboolean result = FALSE; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gint _tmp5_; - sqlite3_stmt* _tmp6_; - gchar* _tmp7_; - GDestroyNotify _tmp8_; - gint _tmp9_; - sqlite3_stmt* _tmp10_; - PhotoID _tmp11_; - gint64 _tmp12_; - gint _tmp13_; - sqlite3_stmt* _tmp14_; - gint _tmp15_; -#line 762 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 762 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (photo_id != NULL, FALSE); -#line 762 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail ((transformations == NULL) || GEE_IS_HASH_MAP (transformations), FALSE); -#line 765 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 765 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE PhotoTable SET orientation = ?, transformations = ? WHERE id = " \ -"?", -1, &_tmp1_, NULL); -#line 765 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 765 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 765 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 767 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 767 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 769 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = stmt; -#line 769 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp4_, 1, (gint) orientation); -#line 770 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = res; -#line 770 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK"); -#line 771 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = stmt; -#line 771 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = photo_table_unmarshall_all_transformations (transformations); -#line 771 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = g_free; -#line 771 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp6_, 2, _tmp7_, -1, _tmp8_); -#line 772 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = res; -#line 772 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK"); -#line 773 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = stmt; -#line 773 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = *photo_id; -#line 773 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = _tmp11_.id; -#line 773 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp10_, 3, _tmp12_); -#line 774 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = res; -#line 774 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK"); -#line 776 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = stmt; -#line 776 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp14_); -#line 777 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_ = res; -#line 777 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp15_ != SQLITE_DONE) { -#line 5235 "PhotoTable.c" - gint _tmp16_; -#line 778 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp16_ = res; -#line 778 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_fatal ("set_transformation_state", _tmp16_); -#line 780 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = FALSE; -#line 780 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 780 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 5247 "PhotoTable.c" - } -#line 783 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = TRUE; -#line 783 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 783 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 5255 "PhotoTable.c" -} - - -GeeHashMap* -photo_table_marshall_all_transformations (const gchar* trans) -{ - GeeHashMap* result = NULL; - gboolean _tmp0_ = FALSE; - GError * _inner_error_ = NULL; -#line 787 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (trans == NULL) { -#line 787 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = TRUE; -#line 5269 "PhotoTable.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 787 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = strlen (trans); -#line 787 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = _tmp1_; -#line 787 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = _tmp2_ == 0; -#line 5279 "PhotoTable.c" - } -#line 787 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp0_) { -#line 788 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = NULL; -#line 788 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 5287 "PhotoTable.c" - } - { - GKeyFile* keyfile = NULL; - GKeyFile* _tmp3_; - gboolean _tmp4_ = FALSE; - GKeyFile* _tmp5_; - gint _tmp6_; - gint _tmp7_; - GeeHashMap* map = NULL; - GeeHashMap* _tmp8_; - gchar** objects = NULL; - GKeyFile* _tmp9_; - gsize _tmp10_; - gchar** _tmp11_; - gint objects_length1; - gint _objects_size_; - gchar** _tmp12_; - gint _tmp12__length1; -#line 791 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = g_key_file_new (); -#line 791 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - keyfile = _tmp3_; -#line 792 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = keyfile; -#line 792 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = strlen (trans); -#line 792 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = _tmp6_; -#line 792 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = g_key_file_load_from_data (_tmp5_, trans, (gsize) _tmp7_, G_KEY_FILE_NONE, &_inner_error_); -#line 792 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 792 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_key_file_unref0 (keyfile); -#line 5322 "PhotoTable.c" - goto __catch17_g_error; - } -#line 792 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!_tmp4_) { -#line 793 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = NULL; -#line 793 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_key_file_unref0 (keyfile); -#line 793 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 5333 "PhotoTable.c" - } -#line 795 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_KEY_VALUE_MAP, (GBoxedCopyFunc) key_value_map_ref, (GDestroyNotify) key_value_map_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 795 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - map = _tmp8_; -#line 797 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = keyfile; -#line 797 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = g_key_file_get_groups (_tmp9_, &_tmp10_); -#line 797 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - objects = _tmp11_; -#line 797 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - objects_length1 = _tmp10_; -#line 797 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _objects_size_ = objects_length1; -#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = objects; -#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12__length1 = objects_length1; -#line 5353 "PhotoTable.c" - { - gchar** object_collection = NULL; - gint object_collection_length1 = 0; - gint _object_collection_size_ = 0; - gint object_it = 0; -#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - object_collection = _tmp12_; -#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - object_collection_length1 = _tmp12__length1; -#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - for (object_it = 0; object_it < _tmp12__length1; object_it = object_it + 1) { -#line 5365 "PhotoTable.c" - gchar* _tmp13_; - gchar* object = NULL; -#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = g_strdup (object_collection[object_it]); -#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - object = _tmp13_; -#line 5372 "PhotoTable.c" - { - gchar** keys = NULL; - GKeyFile* _tmp14_; - const gchar* _tmp15_; - gsize _tmp16_; - gchar** _tmp17_; - gint keys_length1; - gint _keys_size_; - gboolean _tmp18_ = FALSE; - gchar** _tmp19_; - gint _tmp19__length1; - KeyValueMap* key_map = NULL; - const gchar* _tmp21_; - KeyValueMap* _tmp22_; - GeeHashMap* _tmp38_; - const gchar* _tmp39_; - KeyValueMap* _tmp40_; -#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = keyfile; -#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_ = object; -#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp17_ = g_key_file_get_keys (_tmp14_, _tmp15_, &_tmp16_, &_inner_error_); -#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - keys = _tmp17_; -#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - keys_length1 = _tmp16_; -#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _keys_size_ = keys_length1; -#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (object); -#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - objects = (_vala_array_free (objects, objects_length1, (GDestroyNotify) g_free), NULL); -#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_object_unref0 (map); -#line 799 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_key_file_unref0 (keyfile); -#line 5412 "PhotoTable.c" - goto __catch17_g_error; - } -#line 800 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19_ = keys; -#line 800 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19__length1 = keys_length1; -#line 800 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp19_ == NULL) { -#line 800 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp18_ = TRUE; -#line 5423 "PhotoTable.c" - } else { - gchar** _tmp20_; - gint _tmp20__length1; -#line 800 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp20_ = keys; -#line 800 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp20__length1 = keys_length1; -#line 800 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp18_ = _tmp20__length1 == 0; -#line 5433 "PhotoTable.c" - } -#line 800 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp18_) { -#line 801 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL); -#line 801 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (object); -#line 801 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - continue; -#line 5443 "PhotoTable.c" - } -#line 803 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp21_ = object; -#line 803 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp22_ = key_value_map_new (_tmp21_); -#line 803 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - key_map = _tmp22_; -#line 5451 "PhotoTable.c" - { - gint ctr = 0; -#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - ctr = 0; -#line 5456 "PhotoTable.c" - { - gboolean _tmp23_ = FALSE; -#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp23_ = TRUE; -#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - while (TRUE) { -#line 5463 "PhotoTable.c" - gint _tmp25_; - gchar** _tmp26_; - gint _tmp26__length1; - gchar* _tmp27_ = NULL; - GKeyFile* _tmp28_; - const gchar* _tmp29_; - gchar** _tmp30_; - gint _tmp30__length1; - gint _tmp31_; - const gchar* _tmp32_; - gchar* _tmp33_; - KeyValueMap* _tmp34_; - gchar** _tmp35_; - gint _tmp35__length1; - gint _tmp36_; - const gchar* _tmp37_; -#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!_tmp23_) { -#line 5482 "PhotoTable.c" - gint _tmp24_; -#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp24_ = ctr; -#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - ctr = _tmp24_ + 1; -#line 5488 "PhotoTable.c" - } -#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp23_ = FALSE; -#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp25_ = ctr; -#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp26_ = keys; -#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp26__length1 = keys_length1; -#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!(_tmp25_ < _tmp26__length1)) { -#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - break; -#line 5502 "PhotoTable.c" - } -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp28_ = keyfile; -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp29_ = object; -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp30_ = keys; -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp30__length1 = keys_length1; -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp31_ = ctr; -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp32_ = _tmp30_[_tmp31_]; -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp33_ = g_key_file_get_string (_tmp28_, _tmp29_, _tmp32_, &_inner_error_); -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp27_ = _tmp33_; -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _key_value_map_unref0 (key_map); -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL); -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (object); -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - objects = (_vala_array_free (objects, objects_length1, (GDestroyNotify) g_free), NULL); -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_object_unref0 (map); -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_key_file_unref0 (keyfile); -#line 5534 "PhotoTable.c" - goto __catch17_g_error; - } -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp34_ = key_map; -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp35_ = keys; -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp35__length1 = keys_length1; -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp36_ = ctr; -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp37_ = _tmp35_[_tmp36_]; -#line 805 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - key_value_map_set_string (_tmp34_, _tmp37_, _tmp27_); -#line 804 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp27_); -#line 5551 "PhotoTable.c" - } - } - } -#line 807 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp38_ = map; -#line 807 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp39_ = object; -#line 807 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp40_ = key_map; -#line 807 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp39_, _tmp40_); -#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _key_value_map_unref0 (key_map); -#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL); -#line 798 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (object); -#line 5569 "PhotoTable.c" - } - } - } -#line 810 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = map; -#line 810 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - objects = (_vala_array_free (objects, objects_length1, (GDestroyNotify) g_free), NULL); -#line 810 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_key_file_unref0 (keyfile); -#line 810 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 5581 "PhotoTable.c" - } - goto __finally17; - __catch17_g_error: - { - GError* err = NULL; - const gchar* _tmp41_; -#line 790 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - err = _inner_error_; -#line 790 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _inner_error_ = NULL; -#line 812 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp41_ = err->message; -#line 812 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_error ("PhotoTable.vala:812: %s", _tmp41_); -#line 790 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_error_free0 (err); -#line 5598 "PhotoTable.c" - } - __finally17: -#line 790 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 790 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 790 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return NULL; -#line 5607 "PhotoTable.c" -} - - -gchar* -photo_table_unmarshall_all_transformations (GeeHashMap* transformations) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - GKeyFile* keyfile = NULL; - GKeyFile* _tmp6_; - gsize length = 0UL; - gchar* unmarshalled = NULL; - GKeyFile* _tmp33_; - gsize _tmp34_ = 0UL; - gchar* _tmp35_; - const gchar* _tmp36_; - const gchar* _tmp37_; - gint _tmp38_; - gint _tmp39_; -#line 816 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail ((transformations == NULL) || GEE_IS_HASH_MAP (transformations), NULL); -#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (transformations == NULL) { -#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = TRUE; -#line 5633 "PhotoTable.c" - } else { - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeSet* _tmp3_; - gint _tmp4_; - gint _tmp5_; -#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (transformations, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = _tmp1_; -#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = _tmp2_; -#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = _tmp4_; -#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = _tmp5_ == 0; -#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_object_unref0 (_tmp3_); -#line 5654 "PhotoTable.c" - } -#line 817 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp0_) { -#line 818 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = NULL; -#line 818 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 5662 "PhotoTable.c" - } -#line 820 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = g_key_file_new (); -#line 820 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - keyfile = _tmp6_; -#line 5668 "PhotoTable.c" - { - GeeIterator* _object_it = NULL; - GeeSet* _tmp7_; - GeeSet* _tmp8_; - GeeSet* _tmp9_; - GeeIterator* _tmp10_; - GeeIterator* _tmp11_; -#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (transformations, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = _tmp7_; -#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = _tmp8_; -#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = _tmp10_; -#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_object_unref0 (_tmp9_); -#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _object_it = _tmp11_; -#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - while (TRUE) { -#line 5692 "PhotoTable.c" - GeeIterator* _tmp12_; - gchar* object = NULL; - GeeIterator* _tmp13_; - gpointer _tmp14_; - KeyValueMap* map = NULL; - const gchar* _tmp15_; - gpointer _tmp16_; -#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = _object_it; -#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!gee_iterator_next (_tmp12_)) { -#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - break; -#line 5706 "PhotoTable.c" - } -#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = _object_it; -#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = gee_iterator_get (_tmp13_); -#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - object = (gchar*) _tmp14_; -#line 823 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_ = object; -#line 823 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp16_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (transformations, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_); -#line 823 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - map = (KeyValueMap*) _tmp16_; -#line 5720 "PhotoTable.c" - { - GeeIterator* _key_it = NULL; - KeyValueMap* _tmp17_; - GeeSet* _tmp18_; - GeeSet* _tmp19_; - GeeIterator* _tmp20_; - GeeIterator* _tmp21_; -#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp17_ = map; -#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp18_ = key_value_map_get_keys (_tmp17_); -#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19_ = _tmp18_; -#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp20_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp21_ = _tmp20_; -#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_object_unref0 (_tmp19_); -#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _key_it = _tmp21_; -#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - while (TRUE) { -#line 5744 "PhotoTable.c" - GeeIterator* _tmp22_; - gchar* key = NULL; - GeeIterator* _tmp23_; - gpointer _tmp24_; - gchar* value = NULL; - KeyValueMap* _tmp25_; - const gchar* _tmp26_; - gchar* _tmp27_; - const gchar* _tmp28_; - GKeyFile* _tmp29_; - const gchar* _tmp30_; - const gchar* _tmp31_; - const gchar* _tmp32_; -#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp22_ = _key_it; -#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!gee_iterator_next (_tmp22_)) { -#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - break; -#line 5764 "PhotoTable.c" - } -#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp23_ = _key_it; -#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp24_ = gee_iterator_get (_tmp23_); -#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - key = (gchar*) _tmp24_; -#line 826 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp25_ = map; -#line 826 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp26_ = key; -#line 826 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp27_ = key_value_map_get_string (_tmp25_, _tmp26_, NULL); -#line 826 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - value = _tmp27_; -#line 827 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp28_ = value; -#line 827 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp28_ != NULL, "value != null"); -#line 829 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp29_ = keyfile; -#line 829 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp30_ = object; -#line 829 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp31_ = key; -#line 829 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp32_ = value; -#line 829 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_key_file_set_string (_tmp29_, _tmp30_, _tmp31_, _tmp32_); -#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (value); -#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (key); -#line 5798 "PhotoTable.c" - } -#line 825 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_object_unref0 (_key_it); -#line 5802 "PhotoTable.c" - } -#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _key_value_map_unref0 (map); -#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (object); -#line 5808 "PhotoTable.c" - } -#line 822 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_object_unref0 (_object_it); -#line 5812 "PhotoTable.c" - } -#line 834 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp33_ = keyfile; -#line 834 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp35_ = g_key_file_to_data (_tmp33_, &_tmp34_, NULL); -#line 834 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - length = _tmp34_; -#line 834 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - unmarshalled = _tmp35_; -#line 835 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp36_ = unmarshalled; -#line 835 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp36_ != NULL, "unmarshalled != null"); -#line 836 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp37_ = unmarshalled; -#line 836 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp38_ = strlen (_tmp37_); -#line 836 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp39_ = _tmp38_; -#line 836 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp39_ > 0, "unmarshalled.length > 0"); -#line 838 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = unmarshalled; -#line 838 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_key_file_unref0 (keyfile); -#line 838 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 5840 "PhotoTable.c" -} - - -gboolean -photo_table_set_transformation (PhotoTable* self, - PhotoID* photo_id, - KeyValueMap* map) -{ - gboolean result = FALSE; - gchar* trans = NULL; - PhotoID _tmp0_; - gchar* _tmp1_; - PhotoID _tmp33_; - const gchar* _tmp34_; - GError * _inner_error_ = NULL; -#line 841 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 841 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (photo_id != NULL, FALSE); -#line 841 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_KEY_VALUE_MAP (map), FALSE); -#line 842 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *photo_id; -#line 842 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = photo_table_get_raw_transformations (self, &_tmp0_); -#line 842 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - trans = _tmp1_; -#line 5868 "PhotoTable.c" - { - GKeyFile* keyfile = NULL; - GKeyFile* _tmp2_; - const gchar* _tmp3_; - GeeSet* keys = NULL; - GeeSet* _tmp10_; - gsize length = 0UL; - GKeyFile* _tmp24_; - gsize _tmp25_ = 0UL; - gchar* _tmp26_; - const gchar* _tmp27_; - const gchar* _tmp28_; - gint _tmp29_; - gint _tmp30_; -#line 845 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = g_key_file_new (); -#line 845 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - keyfile = _tmp2_; -#line 846 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = trans; -#line 846 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp3_ != NULL) { -#line 5891 "PhotoTable.c" - gboolean _tmp4_ = FALSE; - GKeyFile* _tmp5_; - const gchar* _tmp6_; - const gchar* _tmp7_; - gint _tmp8_; - gint _tmp9_; -#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = keyfile; -#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = trans; -#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = trans; -#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = strlen (_tmp7_); -#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = _tmp8_; -#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = g_key_file_load_from_data (_tmp5_, _tmp6_, (gsize) _tmp9_, G_KEY_FILE_NONE, &_inner_error_); -#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_key_file_unref0 (keyfile); -#line 5914 "PhotoTable.c" - goto __catch18_g_error; - } -#line 847 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!_tmp4_) { -#line 848 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = FALSE; -#line 848 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_key_file_unref0 (keyfile); -#line 848 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (trans); -#line 848 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 5927 "PhotoTable.c" - } - } -#line 851 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = key_value_map_get_keys (map); -#line 851 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - keys = _tmp10_; -#line 5934 "PhotoTable.c" - { - GeeIterator* _key_it = NULL; - GeeSet* _tmp11_; - GeeIterator* _tmp12_; -#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = keys; -#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _key_it = _tmp12_; -#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - while (TRUE) { -#line 5947 "PhotoTable.c" - GeeIterator* _tmp13_; - gchar* key = NULL; - GeeIterator* _tmp14_; - gpointer _tmp15_; - gchar* value = NULL; - const gchar* _tmp16_; - gchar* _tmp17_; - const gchar* _tmp18_; - GKeyFile* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - const gchar* _tmp22_; - const gchar* _tmp23_; -#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = _key_it; -#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!gee_iterator_next (_tmp13_)) { -#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - break; -#line 5967 "PhotoTable.c" - } -#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = _key_it; -#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_ = gee_iterator_get (_tmp14_); -#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - key = (gchar*) _tmp15_; -#line 853 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp16_ = key; -#line 853 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp17_ = key_value_map_get_string (map, _tmp16_, NULL); -#line 853 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - value = _tmp17_; -#line 854 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp18_ = value; -#line 854 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp18_ != NULL, "value != null"); -#line 856 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19_ = keyfile; -#line 856 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp20_ = key_value_map_get_group (map); -#line 856 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp21_ = _tmp20_; -#line 856 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp22_ = key; -#line 856 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp23_ = value; -#line 856 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_key_file_set_string (_tmp19_, _tmp21_, _tmp22_, _tmp23_); -#line 856 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp21_); -#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (value); -#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (key); -#line 6003 "PhotoTable.c" - } -#line 852 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_object_unref0 (_key_it); -#line 6007 "PhotoTable.c" - } -#line 860 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp24_ = keyfile; -#line 860 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp26_ = g_key_file_to_data (_tmp24_, &_tmp25_, NULL); -#line 860 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - length = _tmp25_; -#line 860 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (trans); -#line 860 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - trans = _tmp26_; -#line 861 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp27_ = trans; -#line 861 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp27_ != NULL, "trans != null"); -#line 862 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp28_ = trans; -#line 862 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp29_ = strlen (_tmp28_); -#line 862 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp30_ = _tmp29_; -#line 862 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp30_ > 0, "trans.length > 0"); -#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_object_unref0 (keys); -#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_key_file_unref0 (keyfile); -#line 6035 "PhotoTable.c" - } - goto __finally18; - __catch18_g_error: - { - GError* err = NULL; - const gchar* _tmp31_; -#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - err = _inner_error_; -#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _inner_error_ = NULL; -#line 864 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp31_ = err->message; -#line 864 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_error ("PhotoTable.vala:864: %s", _tmp31_); -#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_error_free0 (err); -#line 6052 "PhotoTable.c" - } - __finally18: -#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6057 "PhotoTable.c" - gboolean _tmp32_ = FALSE; -#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (trans); -#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 844 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return _tmp32_; -#line 6067 "PhotoTable.c" - } -#line 867 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp33_ = *photo_id; -#line 867 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp34_ = trans; -#line 867 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = photo_table_set_raw_transformations (self, &_tmp33_, _tmp34_); -#line 867 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (trans); -#line 867 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 6079 "PhotoTable.c" -} - - -gboolean -photo_table_remove_transformation (PhotoTable* self, - PhotoID* photo_id, - const gchar* object) -{ - gboolean result = FALSE; - gchar* trans = NULL; - PhotoID _tmp0_; - gchar* _tmp1_; - const gchar* _tmp2_; - PhotoID _tmp18_; - const gchar* _tmp19_; - GError * _inner_error_ = NULL; -#line 870 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 870 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (photo_id != NULL, FALSE); -#line 870 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (object != NULL, FALSE); -#line 871 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *photo_id; -#line 871 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = photo_table_get_raw_transformations (self, &_tmp0_); -#line 871 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - trans = _tmp1_; -#line 872 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = trans; -#line 872 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp2_ == NULL) { -#line 873 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = TRUE; -#line 873 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (trans); -#line 873 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 6118 "PhotoTable.c" - } - { - GKeyFile* keyfile = NULL; - GKeyFile* _tmp3_; - gboolean _tmp4_ = FALSE; - GKeyFile* _tmp5_; - const gchar* _tmp6_; - const gchar* _tmp7_; - gint _tmp8_; - gint _tmp9_; - GKeyFile* _tmp10_; - GKeyFile* _tmp11_; - gsize length = 0UL; - GKeyFile* _tmp12_; - gsize _tmp13_ = 0UL; - gchar* _tmp14_; - const gchar* _tmp15_; -#line 876 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = g_key_file_new (); -#line 876 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - keyfile = _tmp3_; -#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = keyfile; -#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = trans; -#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = trans; -#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = strlen (_tmp7_); -#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = _tmp8_; -#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = g_key_file_load_from_data (_tmp5_, _tmp6_, (gsize) _tmp9_, G_KEY_FILE_NONE, &_inner_error_); -#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_key_file_unref0 (keyfile); -#line 6156 "PhotoTable.c" - goto __catch19_g_error; - } -#line 877 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!_tmp4_) { -#line 878 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = FALSE; -#line 878 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_key_file_unref0 (keyfile); -#line 878 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (trans); -#line 878 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 6169 "PhotoTable.c" - } -#line 880 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = keyfile; -#line 880 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!g_key_file_has_group (_tmp10_, object)) { -#line 881 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = TRUE; -#line 881 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_key_file_unref0 (keyfile); -#line 881 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (trans); -#line 881 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 6183 "PhotoTable.c" - } -#line 883 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = keyfile; -#line 883 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_key_file_remove_group (_tmp11_, object, &_inner_error_); -#line 883 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 883 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_key_file_unref0 (keyfile); -#line 6193 "PhotoTable.c" - goto __catch19_g_error; - } -#line 886 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = keyfile; -#line 886 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = g_key_file_to_data (_tmp12_, &_tmp13_, NULL); -#line 886 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - length = _tmp13_; -#line 886 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (trans); -#line 886 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - trans = _tmp14_; -#line 887 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_ = trans; -#line 887 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp15_ != NULL, "trans != null"); -#line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_key_file_unref0 (keyfile); -#line 6212 "PhotoTable.c" - } - goto __finally19; - __catch19_g_error: - { - GError* err = NULL; - const gchar* _tmp16_; -#line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - err = _inner_error_; -#line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _inner_error_ = NULL; -#line 889 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp16_ = err->message; -#line 889 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_error ("PhotoTable.vala:889: %s", _tmp16_); -#line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_error_free0 (err); -#line 6229 "PhotoTable.c" - } - __finally19: -#line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6234 "PhotoTable.c" - gboolean _tmp17_ = FALSE; -#line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (trans); -#line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 875 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return _tmp17_; -#line 6244 "PhotoTable.c" - } -#line 892 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp18_ = *photo_id; -#line 892 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19_ = trans; -#line 892 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = photo_table_set_raw_transformations (self, &_tmp18_, _tmp19_); -#line 892 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (trans); -#line 892 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 6256 "PhotoTable.c" -} - - -gboolean -photo_table_remove_all_transformations (PhotoTable* self, - PhotoID* photo_id) -{ - gboolean result = FALSE; - PhotoID _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gboolean _tmp3_; - PhotoID _tmp4_; - gint64 _tmp5_; -#line 895 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 895 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (photo_id != NULL, FALSE); -#line 896 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *photo_id; -#line 896 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = photo_table_get_raw_transformations (self, &_tmp0_); -#line 896 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = _tmp1_; -#line 896 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = _tmp2_ == NULL; -#line 896 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp2_); -#line 896 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp3_) { -#line 897 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = FALSE; -#line 897 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 6291 "PhotoTable.c" - } -#line 899 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = *photo_id; -#line 899 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = _tmp4_.id; -#line 899 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = database_table_update_text_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp5_, "transformations", ""); -#line 899 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 6301 "PhotoTable.c" -} - - -static sqlite3_stmt* -photo_table_get_duplicate_stmt (PhotoTable* self, - GFile* file, - const gchar* thumbnail_md5, - const gchar* md5, - PhotoFileFormat file_format) -{ - sqlite3_stmt* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gchar* sql = NULL; - gchar* _tmp2_; - gboolean first = FALSE; - gboolean _tmp5_ = FALSE; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp23_; - const gchar* _tmp24_; - sqlite3_stmt* _tmp25_ = NULL; - gint _tmp26_; - gint _tmp27_; - gint col = 0; - gboolean _tmp43_ = FALSE; - gboolean _tmp44_ = FALSE; -#line 904 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), NULL); -#line 904 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL); -#line 906 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (file != NULL) { -#line 906 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = TRUE; -#line 6337 "PhotoTable.c" - } else { -#line 906 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = thumbnail_md5 != NULL; -#line 6341 "PhotoTable.c" - } -#line 906 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp1_) { -#line 906 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = TRUE; -#line 6347 "PhotoTable.c" - } else { -#line 906 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = md5 != NULL; -#line 6351 "PhotoTable.c" - } -#line 906 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp0_, "file != null || thumbnail_md5 != null || md5 != null"); -#line 908 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = g_strdup ("SELECT id FROM PhotoTable WHERE"); -#line 908 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - sql = _tmp2_; -#line 909 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - first = TRUE; -#line 911 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (file != NULL) { -#line 6363 "PhotoTable.c" - const gchar* _tmp3_; - gchar* _tmp4_; -#line 912 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = sql; -#line 912 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = g_strconcat (_tmp3_, " filename=?", NULL); -#line 912 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (sql); -#line 912 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - sql = _tmp4_; -#line 913 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - first = FALSE; -#line 6376 "PhotoTable.c" - } -#line 916 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (thumbnail_md5 != NULL) { -#line 916 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = TRUE; -#line 6382 "PhotoTable.c" - } else { -#line 916 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = md5 != NULL; -#line 6386 "PhotoTable.c" - } -#line 916 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp5_) { -#line 6390 "PhotoTable.c" - gboolean _tmp6_; - const gchar* _tmp17_; - gchar* _tmp18_; - const gchar* _tmp21_; - gchar* _tmp22_; -#line 917 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = first; -#line 917 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp6_) { -#line 6400 "PhotoTable.c" - const gchar* _tmp7_; - gchar* _tmp8_; -#line 918 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = sql; -#line 918 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = g_strconcat (_tmp7_, " ((", NULL); -#line 918 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (sql); -#line 918 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - sql = _tmp8_; -#line 6411 "PhotoTable.c" - } else { - const gchar* _tmp9_; - gchar* _tmp10_; -#line 920 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = sql; -#line 920 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = g_strconcat (_tmp9_, " OR ((", NULL); -#line 920 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (sql); -#line 920 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - sql = _tmp10_; -#line 6423 "PhotoTable.c" - } -#line 921 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - first = FALSE; -#line 923 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (md5 != NULL) { -#line 6429 "PhotoTable.c" - const gchar* _tmp11_; - gchar* _tmp12_; -#line 924 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = sql; -#line 924 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = g_strconcat (_tmp11_, " md5=?", NULL); -#line 924 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (sql); -#line 924 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - sql = _tmp12_; -#line 6440 "PhotoTable.c" - } -#line 927 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (thumbnail_md5 != NULL) { -#line 928 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (md5 == NULL) { -#line 6446 "PhotoTable.c" - const gchar* _tmp13_; - gchar* _tmp14_; -#line 929 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = sql; -#line 929 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = g_strconcat (_tmp13_, " thumbnail_md5=?", NULL); -#line 929 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (sql); -#line 929 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - sql = _tmp14_; -#line 6457 "PhotoTable.c" - } else { - const gchar* _tmp15_; - gchar* _tmp16_; -#line 931 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_ = sql; -#line 931 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp16_ = g_strconcat (_tmp15_, " OR (md5 IS NULL AND thumbnail_md5=?)", NULL); -#line 931 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (sql); -#line 931 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - sql = _tmp16_; -#line 6469 "PhotoTable.c" - } - } -#line 934 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp17_ = sql; -#line 934 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp18_ = g_strconcat (_tmp17_, ")", NULL); -#line 934 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (sql); -#line 934 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - sql = _tmp18_; -#line 936 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (file_format != PHOTO_FILE_FORMAT_UNKNOWN) { -#line 6482 "PhotoTable.c" - const gchar* _tmp19_; - gchar* _tmp20_; -#line 937 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19_ = sql; -#line 937 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp20_ = g_strconcat (_tmp19_, " AND file_format=?", NULL); -#line 937 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (sql); -#line 937 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - sql = _tmp20_; -#line 6493 "PhotoTable.c" - } -#line 939 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp21_ = sql; -#line 939 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp22_ = g_strconcat (_tmp21_, ")", NULL); -#line 939 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (sql); -#line 939 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - sql = _tmp22_; -#line 6503 "PhotoTable.c" - } -#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp23_ = database_table_db; -#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp24_ = sql; -#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp26_ = sqlite3_prepare_v2 (_tmp23_, _tmp24_, -1, &_tmp25_, NULL); -#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp25_; -#line 943 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp26_; -#line 944 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp27_ = res; -#line 944 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp27_ == SQLITE_OK, "res == Sqlite.OK"); -#line 946 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - col = 1; -#line 948 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (file != NULL) { -#line 6525 "PhotoTable.c" - sqlite3_stmt* _tmp28_; - gint _tmp29_; - gchar* _tmp30_; - GDestroyNotify _tmp31_; - gint _tmp32_; -#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp28_ = stmt; -#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp29_ = col; -#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - col = _tmp29_ + 1; -#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp30_ = g_file_get_path (file); -#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp31_ = g_free; -#line 949 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp28_, _tmp29_, _tmp30_, -1, _tmp31_); -#line 950 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp32_ = res; -#line 950 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp32_ == SQLITE_OK, "res == Sqlite.OK"); -#line 6547 "PhotoTable.c" - } -#line 953 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (thumbnail_md5 != NULL) { -#line 6551 "PhotoTable.c" - sqlite3_stmt* _tmp33_; - gint _tmp34_; - gchar* _tmp35_; - GDestroyNotify _tmp36_; - gint _tmp37_; -#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp33_ = stmt; -#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp34_ = col; -#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - col = _tmp34_ + 1; -#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp35_ = g_strdup (thumbnail_md5); -#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp36_ = g_free; -#line 954 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp33_, _tmp34_, _tmp35_, -1, _tmp36_); -#line 955 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp37_ = res; -#line 955 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp37_ == SQLITE_OK, "res == Sqlite.OK"); -#line 6573 "PhotoTable.c" - } -#line 958 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (md5 != NULL) { -#line 6577 "PhotoTable.c" - sqlite3_stmt* _tmp38_; - gint _tmp39_; - gchar* _tmp40_; - GDestroyNotify _tmp41_; - gint _tmp42_; -#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp38_ = stmt; -#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp39_ = col; -#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - col = _tmp39_ + 1; -#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp40_ = g_strdup (md5); -#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp41_ = g_free; -#line 959 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp38_, _tmp39_, _tmp40_, -1, _tmp41_); -#line 960 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp42_ = res; -#line 960 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp42_ == SQLITE_OK, "res == Sqlite.OK"); -#line 6599 "PhotoTable.c" - } -#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (thumbnail_md5 != NULL) { -#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp44_ = TRUE; -#line 6605 "PhotoTable.c" - } else { -#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp44_ = md5 != NULL; -#line 6609 "PhotoTable.c" - } -#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp44_) { -#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp43_ = file_format != PHOTO_FILE_FORMAT_UNKNOWN; -#line 6615 "PhotoTable.c" - } else { -#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp43_ = FALSE; -#line 6619 "PhotoTable.c" - } -#line 963 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp43_) { -#line 6623 "PhotoTable.c" - sqlite3_stmt* _tmp45_; - gint _tmp46_; - gint _tmp47_; -#line 964 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp45_ = stmt; -#line 964 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp46_ = col; -#line 964 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - col = _tmp46_ + 1; -#line 964 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp45_, _tmp46_, photo_file_format_serialize (file_format)); -#line 965 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp47_ = res; -#line 965 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp47_ == SQLITE_OK, "res == Sqlite.OK"); -#line 6639 "PhotoTable.c" - } -#line 968 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = stmt; -#line 968 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (sql); -#line 968 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 6647 "PhotoTable.c" -} - - -gboolean -photo_table_has_duplicate (PhotoTable* self, - GFile* file, - const gchar* thumbnail_md5, - const gchar* md5, - PhotoFileFormat file_format) -{ - gboolean result = FALSE; - sqlite3_stmt* stmt = NULL; - sqlite3_stmt* _tmp0_; - gint res = 0; - sqlite3_stmt* _tmp1_; - gint _tmp2_; -#line 971 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), FALSE); -#line 971 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), FALSE); -#line 972 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = photo_table_get_duplicate_stmt (self, file, thumbnail_md5, md5, file_format); -#line 972 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp0_; -#line 973 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = stmt; -#line 973 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp1_); -#line 975 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = res; -#line 975 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp2_ == SQLITE_DONE) { -#line 977 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = FALSE; -#line 977 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 977 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 6686 "PhotoTable.c" - } else { - gint _tmp3_; -#line 978 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 978 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp3_ == SQLITE_ROW) { -#line 980 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = TRUE; -#line 980 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 980 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 6699 "PhotoTable.c" - } else { - gint _tmp4_; -#line 982 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = res; -#line 982 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_fatal ("has_duplicate", _tmp4_); -#line 984 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = FALSE; -#line 984 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 984 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 6712 "PhotoTable.c" - } - } -#line 971 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 6717 "PhotoTable.c" -} - - -static void -_vala_array_add2 (PhotoID* * array, - int* length, - int* size, - const PhotoID* value) -{ -#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if ((*length) == (*size)) { -#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - *array = g_renew (PhotoID, *array, *size); -#line 6733 "PhotoTable.c" - } -#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - (*array)[(*length)++] = *value; -#line 6737 "PhotoTable.c" -} - - -PhotoID* -photo_table_get_duplicate_ids (PhotoTable* self, - GFile* file, - const gchar* thumbnail_md5, - const gchar* md5, - PhotoFileFormat file_format, - int* result_length1) -{ - PhotoID* result = NULL; - sqlite3_stmt* stmt = NULL; - sqlite3_stmt* _tmp0_; - PhotoID* ids = NULL; - PhotoID* _tmp1_; - gint ids_length1; - gint _ids_size_; - gint res = 0; - sqlite3_stmt* _tmp2_; - PhotoID* _tmp8_; - gint _tmp8__length1; -#line 988 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_PHOTO_TABLE (self), NULL); -#line 988 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL); -#line 990 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = photo_table_get_duplicate_stmt (self, file, thumbnail_md5, md5, file_format); -#line 990 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp0_; -#line 992 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = g_new0 (PhotoID, 0); -#line 992 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - ids = _tmp1_; -#line 992 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - ids_length1 = 0; -#line 992 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _ids_size_ = ids_length1; -#line 994 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = stmt; -#line 994 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp2_); -#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - while (TRUE) { -#line 6782 "PhotoTable.c" - gint _tmp3_; - PhotoID* _tmp4_; - gint _tmp4__length1; - sqlite3_stmt* _tmp5_; - PhotoID _tmp6_ = {0}; - sqlite3_stmt* _tmp7_; -#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!(_tmp3_ == SQLITE_ROW)) { -#line 995 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - break; -#line 6795 "PhotoTable.c" - } -#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = ids; -#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4__length1 = ids_length1; -#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = stmt; -#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_id_init (&_tmp6_, sqlite3_column_int64 (_tmp5_, 0)); -#line 996 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_array_add2 (&ids, &ids_length1, &_ids_size_, &_tmp6_); -#line 997 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = stmt; -#line 997 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp7_); -#line 6811 "PhotoTable.c" - } -#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = ids; -#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8__length1 = ids_length1; -#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (result_length1) { -#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - *result_length1 = _tmp8__length1; -#line 6821 "PhotoTable.c" - } -#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = _tmp8_; -#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 1000 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 6829 "PhotoTable.c" -} - - -void -photo_table_update_backlinks (PhotoTable* self, - PhotoID* photo_id, - const gchar* backlinks, - GError** error) -{ - const gchar* _tmp0_ = NULL; - PhotoID _tmp1_; - gint64 _tmp2_; - GError * _inner_error_ = NULL; -#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 1003 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (photo_id != NULL); -#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (backlinks != NULL) { -#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = backlinks; -#line 6851 "PhotoTable.c" - } else { -#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = ""; -#line 6855 "PhotoTable.c" - } -#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = *photo_id; -#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = _tmp1_.id; -#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "backlinks", _tmp0_, &_inner_error_); -#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 6871 "PhotoTable.c" - } else { -#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 1004 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 6879 "PhotoTable.c" - } - } -} - - -void -photo_table_attach_editable (PhotoTable* self, - PhotoRow* row, - BackingPhotoID* editable_id, - GError** error) -{ - PhotoID _tmp0_; - gint64 _tmp1_; - BackingPhotoID _tmp2_; - gint64 _tmp3_; - BackingPhotoID _tmp4_; - GError * _inner_error_ = NULL; -#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_ROW (row)); -#line 1007 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (editable_id != NULL); -#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = row->photo_id; -#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.id; -#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = *editable_id; -#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = _tmp2_.id; -#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "editable_id", _tmp3_, &_inner_error_); -#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 6921 "PhotoTable.c" - } else { -#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 1008 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 6929 "PhotoTable.c" - } - } -#line 1010 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = *editable_id; -#line 1010 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - row->editable_id = _tmp4_; -#line 6936 "PhotoTable.c" -} - - -void -photo_table_detach_editable (PhotoTable* self, - PhotoRow* row, - GError** error) -{ - PhotoID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 1013 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 1013 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_ROW (row)); -#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = row->photo_id; -#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.id; -#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "editable_id", BACKING_PHOTO_ID_INVALID, &_inner_error_); -#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 6966 "PhotoTable.c" - } else { -#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 1014 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 6974 "PhotoTable.c" - } - } -#line 1016 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_id_init (&row->editable_id, BACKING_PHOTO_ID_INVALID); -#line 6979 "PhotoTable.c" -} - - -void -photo_table_set_metadata_dirty (PhotoTable* self, - PhotoID* photo_id, - gboolean dirty, - GError** error) -{ - gint _tmp0_ = 0; - PhotoID _tmp1_; - gint64 _tmp2_; - GError * _inner_error_ = NULL; -#line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 1019 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (photo_id != NULL); -#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (dirty) { -#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = 1; -#line 7001 "PhotoTable.c" - } else { -#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = 0; -#line 7005 "PhotoTable.c" - } -#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = *photo_id; -#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = _tmp1_.id; -#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_update_int_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "metadata_dirty", _tmp0_, &_inner_error_); -#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 7021 "PhotoTable.c" - } else { -#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 1020 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 7029 "PhotoTable.c" - } - } -} - - -void -photo_table_update_raw_development (PhotoTable* self, - PhotoRow* row, - RawDeveloper rd, - BackingPhotoID* backing_photo_id, - GError** error) -{ - gchar* col = NULL; - BackingPhotoID* _tmp3_; - gint _tmp3__length1; - BackingPhotoID _tmp4_; - BackingPhotoID _tmp5_; - PhotoID _tmp6_; - gint64 _tmp7_; - const gchar* _tmp8_; - BackingPhotoID _tmp9_; - gint64 _tmp10_; - BackingPhotoID _tmp11_; - gint64 _tmp12_; - GError * _inner_error_ = NULL; -#line 1023 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 1023 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_ROW (row)); -#line 1023 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (backing_photo_id != NULL); -#line 1027 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - switch (rd) { -#line 1027 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - case RAW_DEVELOPER_SHOTWELL: -#line 7065 "PhotoTable.c" - { - gchar* _tmp0_; -#line 1029 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = g_strdup ("develop_shotwell_id"); -#line 1029 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (col); -#line 1029 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - col = _tmp0_; -#line 1030 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - break; -#line 7076 "PhotoTable.c" - } -#line 1027 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - case RAW_DEVELOPER_CAMERA: -#line 7080 "PhotoTable.c" - { - gchar* _tmp1_; -#line 1033 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = g_strdup ("develop_camera_id"); -#line 1033 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (col); -#line 1033 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - col = _tmp1_; -#line 1034 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - break; -#line 7091 "PhotoTable.c" - } -#line 1027 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - case RAW_DEVELOPER_EMBEDDED: -#line 7095 "PhotoTable.c" - { - gchar* _tmp2_; -#line 1037 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = g_strdup ("develop_embedded_id"); -#line 1037 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (col); -#line 1037 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - col = _tmp2_; -#line 1038 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - break; -#line 7106 "PhotoTable.c" - } - default: - { -#line 1041 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_assert_not_reached (); -#line 7112 "PhotoTable.c" - } - } -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = row->development_ids; -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3__length1 = row->development_ids_length1; -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = *backing_photo_id; -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_[rd] = _tmp4_; -#line 1044 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = _tmp3_[rd]; -#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = row->photo_id; -#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = _tmp6_.id; -#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = col; -#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = *backing_photo_id; -#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = _tmp9_.id; -#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp7_, _tmp8_, _tmp10_, &_inner_error_); -#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (col); -#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 7147 "PhotoTable.c" - } else { -#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (col); -#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 1045 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 7157 "PhotoTable.c" - } - } -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = *backing_photo_id; -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = _tmp11_.id; -#line 1047 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp12_ != BACKING_PHOTO_ID_INVALID) { -#line 7166 "PhotoTable.c" - PhotoID _tmp13_; - gint64 _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; -#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = row->photo_id; -#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = _tmp13_.id; -#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_ = raw_developer_to_string (rd); -#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp16_ = _tmp15_; -#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp14_, "developer", _tmp16_, &_inner_error_); -#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp16_); -#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (col); -#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 7193 "PhotoTable.c" - } else { -#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (col); -#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 1048 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 7203 "PhotoTable.c" - } - } - } -#line 1023 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (col); -#line 7209 "PhotoTable.c" -} - - -void -photo_table_remove_development (PhotoTable* self, - PhotoRow* row, - RawDeveloper rd, - GError** error) -{ - BackingPhotoID _tmp0_ = {0}; - GError * _inner_error_ = NULL; -#line 1051 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_TABLE (self)); -#line 1051 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_PHOTO_ROW (row)); -#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_id_init (&_tmp0_, BACKING_PHOTO_ID_INVALID); -#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_table_update_raw_development (self, row, rd, &_tmp0_, &_inner_error_); -#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 7237 "PhotoTable.c" - } else { -#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 1052 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 7245 "PhotoTable.c" - } - } -} - - -static void -photo_table_class_init (PhotoTableClass * klass) -{ -#line 109 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - photo_table_parent_class = g_type_class_peek_parent (klass); -#line 109 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - ((DatabaseTableClass *) klass)->finalize = photo_table_finalize; -#line 7258 "PhotoTable.c" -} - - -static void -photo_table_instance_init (PhotoTable * self) -{ -} - - -static void -photo_table_finalize (DatabaseTable * obj) -{ - PhotoTable * self; -#line 109 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_TABLE, PhotoTable); -#line 109 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - DATABASE_TABLE_CLASS (photo_table_parent_class)->finalize (obj); -#line 7276 "PhotoTable.c" -} - - -GType -photo_table_get_type (void) -{ - static volatile gsize photo_table_type_id__volatile = 0; - if (g_once_init_enter (&photo_table_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoTable), 0, (GInstanceInitFunc) photo_table_instance_init, NULL }; - GType photo_table_type_id; - photo_table_type_id = g_type_register_static (TYPE_DATABASE_TABLE, "PhotoTable", &g_define_type_info, 0); - g_once_init_leave (&photo_table_type_id__volatile, photo_table_type_id); - } - return photo_table_type_id__volatile; -} - - -void -backing_photo_id_init (BackingPhotoID *self, - gint64 id) -{ -#line 1072 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - memset (self, 0, sizeof (BackingPhotoID)); -#line 1073 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - (*self).id = id; -#line 7302 "PhotoTable.c" -} - - -gboolean -backing_photo_id_is_invalid (BackingPhotoID *self) -{ - gboolean result = FALSE; - gint64 _tmp0_; -#line 1077 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = (*self).id; -#line 1077 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = _tmp0_ == BACKING_PHOTO_ID_INVALID; -#line 1077 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 7317 "PhotoTable.c" -} - - -gboolean -backing_photo_id_is_valid (BackingPhotoID *self) -{ - gboolean result = FALSE; - gint64 _tmp0_; -#line 1081 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = (*self).id; -#line 1081 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = _tmp0_ != BACKING_PHOTO_ID_INVALID; -#line 1081 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 7332 "PhotoTable.c" -} - - -BackingPhotoID* -backing_photo_id_dup (const BackingPhotoID* self) -{ - BackingPhotoID* dup; -#line 1067 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - dup = g_new0 (BackingPhotoID, 1); -#line 1067 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - memcpy (dup, self, sizeof (BackingPhotoID)); -#line 1067 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return dup; -#line 7346 "PhotoTable.c" -} - - -void -backing_photo_id_free (BackingPhotoID* self) -{ -#line 1067 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_free (self); -#line 7355 "PhotoTable.c" -} - - -GType -backing_photo_id_get_type (void) -{ - static volatile gsize backing_photo_id_type_id__volatile = 0; - if (g_once_init_enter (&backing_photo_id_type_id__volatile)) { - GType backing_photo_id_type_id; - backing_photo_id_type_id = g_boxed_type_register_static ("BackingPhotoID", (GBoxedCopyFunc) backing_photo_id_dup, (GBoxedFreeFunc) backing_photo_id_free); - g_once_init_leave (&backing_photo_id_type_id__volatile, backing_photo_id_type_id); - } - return backing_photo_id_type_id__volatile; -} - - -gboolean -backing_photo_row_matches_file_info (BackingPhotoRow* self, - GFileInfo* info) -{ - gboolean result = FALSE; - gint64 _tmp0_; - time_t _tmp1_; - GTimeVal _tmp2_ = {0}; - glong _tmp3_; -#line 1095 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_BACKING_PHOTO_ROW (self), FALSE); -#line 1095 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE); -#line 1096 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = self->filesize; -#line 1096 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp0_ != g_file_info_get_size (info)) { -#line 1097 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = FALSE; -#line 1097 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 7393 "PhotoTable.c" - } -#line 1099 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = self->timestamp; -#line 1099 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_file_info_get_modification_time (info, &_tmp2_); -#line 1099 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = _tmp2_.tv_sec; -#line 1099 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = _tmp1_ == ((time_t) _tmp3_); -#line 1099 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 7405 "PhotoTable.c" -} - - -gboolean -backing_photo_row_is_touched (BackingPhotoRow* self, - GFileInfo* info) -{ - gboolean result = FALSE; - gint64 _tmp0_; - time_t _tmp1_; - GTimeVal _tmp2_ = {0}; - glong _tmp3_; -#line 1102 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_BACKING_PHOTO_ROW (self), FALSE); -#line 1102 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE); -#line 1103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = self->filesize; -#line 1103 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp0_ != g_file_info_get_size (info)) { -#line 1104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = FALSE; -#line 1104 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 7430 "PhotoTable.c" - } -#line 1106 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = self->timestamp; -#line 1106 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_file_info_get_modification_time (info, &_tmp2_); -#line 1106 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = _tmp2_.tv_sec; -#line 1106 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = _tmp1_ != ((time_t) _tmp3_); -#line 1106 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 7442 "PhotoTable.c" -} - - -void -backing_photo_row_copy_from (BackingPhotoRow* self, - BackingPhotoRow* from) -{ - BackingPhotoID _tmp0_; - time_t _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; - gint64 _tmp4_; - time_t _tmp5_; - PhotoFileFormat _tmp6_; - Dimensions _tmp7_; - Orientation _tmp8_; -#line 1110 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_BACKING_PHOTO_ROW (self)); -#line 1110 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_BACKING_PHOTO_ROW (from)); -#line 1111 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = from->id; -#line 1111 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->id = _tmp0_; -#line 1112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = from->time_created; -#line 1112 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->time_created = _tmp1_; -#line 1113 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = from->filepath; -#line 1113 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 1113 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (self->filepath); -#line 1113 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->filepath = _tmp3_; -#line 1114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = from->filesize; -#line 1114 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->filesize = _tmp4_; -#line 1115 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = from->timestamp; -#line 1115 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->timestamp = _tmp5_; -#line 1116 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = from->file_format; -#line 1116 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->file_format = _tmp6_; -#line 1117 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = from->dim; -#line 1117 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->dim = _tmp7_; -#line 1118 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = from->original_orientation; -#line 1118 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->original_orientation = _tmp8_; -#line 7499 "PhotoTable.c" -} - - -BackingPhotoRow* -backing_photo_row_construct (GType object_type) -{ - BackingPhotoRow* self = NULL; -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self = (BackingPhotoRow*) g_type_create_instance (object_type); -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return self; -#line 7511 "PhotoTable.c" -} - - -BackingPhotoRow* -backing_photo_row_new (void) -{ -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return backing_photo_row_construct (TYPE_BACKING_PHOTO_ROW); -#line 7520 "PhotoTable.c" -} - - -static void -value_backing_photo_row_init (GValue* value) -{ -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - value->data[0].v_pointer = NULL; -#line 7529 "PhotoTable.c" -} - - -static void -value_backing_photo_row_free_value (GValue* value) -{ -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (value->data[0].v_pointer) { -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_row_unref (value->data[0].v_pointer); -#line 7540 "PhotoTable.c" - } -} - - -static void -value_backing_photo_row_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (src_value->data[0].v_pointer) { -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - dest_value->data[0].v_pointer = backing_photo_row_ref (src_value->data[0].v_pointer); -#line 7553 "PhotoTable.c" - } else { -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - dest_value->data[0].v_pointer = NULL; -#line 7557 "PhotoTable.c" - } -} - - -static gpointer -value_backing_photo_row_peek_pointer (const GValue* value) -{ -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return value->data[0].v_pointer; -#line 7567 "PhotoTable.c" -} - - -static gchar* -value_backing_photo_row_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (collect_values[0].v_pointer) { -#line 7579 "PhotoTable.c" - BackingPhotoRow * object; - object = collect_values[0].v_pointer; -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (object->parent_instance.g_class == NULL) { -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 7586 "PhotoTable.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 7590 "PhotoTable.c" - } -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - value->data[0].v_pointer = backing_photo_row_ref (object); -#line 7594 "PhotoTable.c" - } else { -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - value->data[0].v_pointer = NULL; -#line 7598 "PhotoTable.c" - } -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return NULL; -#line 7602 "PhotoTable.c" -} - - -static gchar* -value_backing_photo_row_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - BackingPhotoRow ** object_p; - object_p = collect_values[0].v_pointer; -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!object_p) { -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 7618 "PhotoTable.c" - } -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (!value->data[0].v_pointer) { -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - *object_p = NULL; -#line 7624 "PhotoTable.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - *object_p = value->data[0].v_pointer; -#line 7628 "PhotoTable.c" - } else { -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - *object_p = backing_photo_row_ref (value->data[0].v_pointer); -#line 7632 "PhotoTable.c" - } -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return NULL; -#line 7636 "PhotoTable.c" -} - - -GParamSpec* -param_spec_backing_photo_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecBackingPhotoRow* spec; -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_BACKING_PHOTO_ROW), NULL); -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return G_PARAM_SPEC (spec); -#line 7656 "PhotoTable.c" -} - - -gpointer -value_get_backing_photo_row (const GValue* value) -{ -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKING_PHOTO_ROW), NULL); -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return value->data[0].v_pointer; -#line 7667 "PhotoTable.c" -} - - -void -value_set_backing_photo_row (GValue* value, - gpointer v_object) -{ - BackingPhotoRow * old; -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKING_PHOTO_ROW)); -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - old = value->data[0].v_pointer; -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (v_object) { -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BACKING_PHOTO_ROW)); -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - value->data[0].v_pointer = v_object; -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_row_ref (value->data[0].v_pointer); -#line 7690 "PhotoTable.c" - } else { -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - value->data[0].v_pointer = NULL; -#line 7694 "PhotoTable.c" - } -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (old) { -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_row_unref (old); -#line 7700 "PhotoTable.c" - } -} - - -void -value_take_backing_photo_row (GValue* value, - gpointer v_object) -{ - BackingPhotoRow * old; -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKING_PHOTO_ROW)); -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - old = value->data[0].v_pointer; -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (v_object) { -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BACKING_PHOTO_ROW)); -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - value->data[0].v_pointer = v_object; -#line 7722 "PhotoTable.c" - } else { -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - value->data[0].v_pointer = NULL; -#line 7726 "PhotoTable.c" - } -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (old) { -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_row_unref (old); -#line 7732 "PhotoTable.c" - } -} - - -static void -backing_photo_row_class_init (BackingPhotoRowClass * klass) -{ -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_row_parent_class = g_type_class_peek_parent (klass); -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - ((BackingPhotoRowClass *) klass)->finalize = backing_photo_row_finalize; -#line 7744 "PhotoTable.c" -} - - -static void -backing_photo_row_instance_init (BackingPhotoRow * self) -{ -#line 1088 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->filepath = NULL; -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self->ref_count = 1; -#line 7755 "PhotoTable.c" -} - - -static void -backing_photo_row_finalize (BackingPhotoRow * obj) -{ - BackingPhotoRow * self; -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BACKING_PHOTO_ROW, BackingPhotoRow); -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_signal_handlers_destroy (self); -#line 1088 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (self->filepath); -#line 7769 "PhotoTable.c" -} - - -GType -backing_photo_row_get_type (void) -{ - static volatile gsize backing_photo_row_type_id__volatile = 0; - if (g_once_init_enter (&backing_photo_row_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_backing_photo_row_init, value_backing_photo_row_free_value, value_backing_photo_row_copy_value, value_backing_photo_row_peek_pointer, "p", value_backing_photo_row_collect_value, "p", value_backing_photo_row_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (BackingPhotoRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) backing_photo_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BackingPhotoRow), 0, (GInstanceInitFunc) backing_photo_row_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType backing_photo_row_type_id; - backing_photo_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "BackingPhotoRow", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&backing_photo_row_type_id__volatile, backing_photo_row_type_id); - } - return backing_photo_row_type_id__volatile; -} - - -gpointer -backing_photo_row_ref (gpointer instance) -{ - BackingPhotoRow * self; - self = instance; -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_atomic_int_inc (&self->ref_count); -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return instance; -#line 7798 "PhotoTable.c" -} - - -void -backing_photo_row_unref (gpointer instance) -{ - BackingPhotoRow * self; - self = instance; -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - BACKING_PHOTO_ROW_GET_CLASS (self)->finalize (self); -#line 1085 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 7813 "PhotoTable.c" - } -} - - -static BackingPhotoTable* -backing_photo_table_construct (GType object_type) -{ - BackingPhotoTable* self = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gint _tmp5_; -#line 1125 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self = (BackingPhotoTable*) database_table_construct (object_type); -#line 1126 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), "BackingPhotoTable"); -#line 1129 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 1129 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS " "BackingPhotoTable " "(" "id INTEGER PRIMARY KEY, " "filepath TEXT UNIQUE NOT NULL, " "timestamp INTEGER, " "filesize INTEGER, " "width INTEGER, " "height INTEGER, " "original_orientation INTEGER, " "file_format INTEGER, " "time_created INTEGER " ")", -1, &_tmp1_, NULL); -#line 1129 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 1129 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 1129 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 1142 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 1142 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1144 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = stmt; -#line 1144 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp4_); -#line 1145 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = res; -#line 1145 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp5_ != SQLITE_DONE) { -#line 7856 "PhotoTable.c" - gint _tmp6_; -#line 1146 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = res; -#line 1146 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_fatal ("create PhotoBackingTable", _tmp6_); -#line 7862 "PhotoTable.c" - } -#line 1125 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 1125 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return self; -#line 7868 "PhotoTable.c" -} - - -static BackingPhotoTable* -backing_photo_table_new (void) -{ -#line 1125 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return backing_photo_table_construct (TYPE_BACKING_PHOTO_TABLE); -#line 7877 "PhotoTable.c" -} - - -BackingPhotoTable* -backing_photo_table_get_instance (void) -{ - BackingPhotoTable* result = NULL; - BackingPhotoTable* _tmp0_; - BackingPhotoTable* _tmp2_; - BackingPhotoTable* _tmp3_; -#line 1150 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = backing_photo_table_instance; -#line 1150 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp0_ == NULL) { -#line 7892 "PhotoTable.c" - BackingPhotoTable* _tmp1_; -#line 1151 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = backing_photo_table_new (); -#line 1151 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _database_table_unref0 (backing_photo_table_instance); -#line 1151 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_table_instance = _tmp1_; -#line 7900 "PhotoTable.c" - } -#line 1153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = backing_photo_table_instance; -#line 1153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = _database_table_ref0 (_tmp2_); -#line 1153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = _tmp3_; -#line 1153 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 7910 "PhotoTable.c" -} - - -void -backing_photo_table_add (BackingPhotoTable* self, - BackingPhotoRow* state, - GError** error) -{ - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - time_t time_created = 0; - sqlite3_stmt* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - GDestroyNotify _tmp7_; - gint _tmp8_; - sqlite3_stmt* _tmp9_; - time_t _tmp10_; - gint _tmp11_; - sqlite3_stmt* _tmp12_; - gint64 _tmp13_; - gint _tmp14_; - sqlite3_stmt* _tmp15_; - Dimensions _tmp16_; - gint _tmp17_; - gint _tmp18_; - sqlite3_stmt* _tmp19_; - Dimensions _tmp20_; - gint _tmp21_; - gint _tmp22_; - sqlite3_stmt* _tmp23_; - Orientation _tmp24_; - gint _tmp25_; - sqlite3_stmt* _tmp26_; - PhotoFileFormat _tmp27_; - gint _tmp28_; - sqlite3_stmt* _tmp29_; - time_t _tmp30_; - gint _tmp31_; - sqlite3_stmt* _tmp32_; - gint _tmp33_; - sqlite3* _tmp35_; - time_t _tmp36_; - GError * _inner_error_ = NULL; -#line 1156 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_BACKING_PHOTO_TABLE (self)); -#line 1156 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_BACKING_PHOTO_ROW (state)); -#line 1158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 1158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO BackingPhotoTable " "(filepath, timestamp, filesize, width, height, original_orientation, " "file_format, time_created) " "VALUES (?, ?, ?, ?, ?, ?, ?, ?)", -1, &_tmp1_, NULL); -#line 1158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 1158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 1158 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 1163 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 1163 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1165 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - time_created = (time_t) now_sec (); -#line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = stmt; -#line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = state->filepath; -#line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = g_free; -#line 1167 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_text (_tmp4_, 1, _tmp6_, -1, _tmp7_); -#line 1168 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = res; -#line 1168 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1169 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = stmt; -#line 1169 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = state->timestamp; -#line 1169 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp9_, 2, (gint64) _tmp10_); -#line 1170 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = res; -#line 1170 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1171 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = stmt; -#line 1171 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = state->filesize; -#line 1171 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp12_, 3, _tmp13_); -#line 1172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = res; -#line 1172 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp14_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_ = stmt; -#line 1173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp16_ = state->dim; -#line 1173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp17_ = _tmp16_.width; -#line 1173 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp15_, 4, _tmp17_); -#line 1174 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp18_ = res; -#line 1174 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp18_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19_ = stmt; -#line 1175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp20_ = state->dim; -#line 1175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp21_ = _tmp20_.height; -#line 1175 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp19_, 5, _tmp21_); -#line 1176 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp22_ = res; -#line 1176 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp22_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1177 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp23_ = stmt; -#line 1177 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp24_ = state->original_orientation; -#line 1177 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp23_, 6, (gint) _tmp24_); -#line 1178 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp25_ = res; -#line 1178 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp25_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1179 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp26_ = stmt; -#line 1179 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp27_ = state->file_format; -#line 1179 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp26_, 7, photo_file_format_serialize (_tmp27_)); -#line 1180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp28_ = res; -#line 1180 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp28_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1181 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp29_ = stmt; -#line 1181 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp30_ = time_created; -#line 1181 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp29_, 8, (gint64) _tmp30_); -#line 1182 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp31_ = res; -#line 1182 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp31_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1184 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp32_ = stmt; -#line 1184 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp32_); -#line 1185 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp33_ = res; -#line 1185 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp33_ != SQLITE_DONE) { -#line 8075 "PhotoTable.c" - gint _tmp34_; -#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp34_ = res; -#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_throw_error ("PhotoBackingTable.add", _tmp34_, &_inner_error_); -#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 8091 "PhotoTable.c" - } else { -#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 1186 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 8101 "PhotoTable.c" - } - } - } -#line 1188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp35_ = database_table_db; -#line 1188 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_id_init (&state->id, sqlite3_last_insert_rowid (_tmp35_)); -#line 1189 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp36_ = time_created; -#line 1189 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - state->time_created = _tmp36_; -#line 1156 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 8115 "PhotoTable.c" -} - - -BackingPhotoRow* -backing_photo_table_fetch (BackingPhotoTable* self, - BackingPhotoID* id, - GError** error) -{ - BackingPhotoRow* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - BackingPhotoID _tmp5_; - gint64 _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - gint _tmp9_; - BackingPhotoRow* row = NULL; - BackingPhotoRow* _tmp12_; - BackingPhotoRow* _tmp13_; - BackingPhotoID _tmp14_; - BackingPhotoRow* _tmp15_; - sqlite3_stmt* _tmp16_; - const gchar* _tmp17_; - gchar* _tmp18_; - BackingPhotoRow* _tmp19_; - sqlite3_stmt* _tmp20_; - BackingPhotoRow* _tmp21_; - sqlite3_stmt* _tmp22_; - BackingPhotoRow* _tmp23_; - sqlite3_stmt* _tmp24_; - sqlite3_stmt* _tmp25_; - BackingPhotoRow* _tmp26_; - sqlite3_stmt* _tmp27_; - BackingPhotoRow* _tmp28_; - sqlite3_stmt* _tmp29_; - BackingPhotoRow* _tmp30_; - sqlite3_stmt* _tmp31_; - GError * _inner_error_ = NULL; -#line 1192 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (IS_BACKING_PHOTO_TABLE (self), NULL); -#line 1192 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_val_if_fail (id != NULL, NULL); -#line 1194 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 1194 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT filepath, timestamp, filesize, width, height, " "original_orientation, file_format, time_created FROM BackingPhotoTable" \ -" WHERE id=?", -1, &_tmp1_, NULL); -#line 1194 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 1194 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 1194 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 1197 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 1197 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = stmt; -#line 1199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = *id; -#line 1199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = _tmp5_.id; -#line 1199 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_); -#line 1200 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = res; -#line 1200 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = stmt; -#line 1202 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp8_); -#line 1203 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = res; -#line 1203 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp9_ == SQLITE_DONE) { -#line 1204 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = NULL; -#line 1204 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 1204 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 8203 "PhotoTable.c" - } else { - gint _tmp10_; -#line 1205 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = res; -#line 1205 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp10_ != SQLITE_ROW) { -#line 8210 "PhotoTable.c" - gint _tmp11_; -#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = res; -#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_throw_error ("BackingPhotoTable.fetch_for_photo", _tmp11_, &_inner_error_); -#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return NULL; -#line 8226 "PhotoTable.c" - } else { -#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 1206 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return NULL; -#line 8236 "PhotoTable.c" - } - } - } - } -#line 1208 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = backing_photo_row_new (); -#line 1208 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - row = _tmp12_; -#line 1209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = row; -#line 1209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = *id; -#line 1209 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_->id = _tmp14_; -#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_ = row; -#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp16_ = stmt; -#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp17_ = sqlite3_column_text (_tmp16_, 0); -#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp18_ = g_strdup (_tmp17_); -#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _g_free0 (_tmp15_->filepath); -#line 1210 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_->filepath = _tmp18_; -#line 1211 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19_ = row; -#line 1211 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp20_ = stmt; -#line 1211 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19_->timestamp = (time_t) sqlite3_column_int64 (_tmp20_, 1); -#line 1212 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp21_ = row; -#line 1212 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp22_ = stmt; -#line 1212 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp21_->filesize = sqlite3_column_int64 (_tmp22_, 2); -#line 1213 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp23_ = row; -#line 1213 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp24_ = stmt; -#line 1213 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp25_ = stmt; -#line 1213 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - dimensions_init (&_tmp23_->dim, sqlite3_column_int (_tmp24_, 3), sqlite3_column_int (_tmp25_, 4)); -#line 1214 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp26_ = row; -#line 1214 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp27_ = stmt; -#line 1214 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp26_->original_orientation = (Orientation) sqlite3_column_int (_tmp27_, 5); -#line 1215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp28_ = row; -#line 1215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp29_ = stmt; -#line 1215 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp28_->file_format = photo_file_format_unserialize (sqlite3_column_int (_tmp29_, 6)); -#line 1216 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp30_ = row; -#line 1216 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp31_ = stmt; -#line 1216 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp30_->time_created = (time_t) sqlite3_column_int64 (_tmp31_, 7); -#line 1218 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - result = row; -#line 1218 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 1218 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return result; -#line 8307 "PhotoTable.c" -} - - -void -backing_photo_table_update (BackingPhotoTable* self, - BackingPhotoRow* row, - GError** error) -{ - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - time_t _tmp5_; - gint _tmp6_; - sqlite3_stmt* _tmp7_; - gint64 _tmp8_; - gint _tmp9_; - sqlite3_stmt* _tmp10_; - Dimensions _tmp11_; - gint _tmp12_; - gint _tmp13_; - sqlite3_stmt* _tmp14_; - Dimensions _tmp15_; - gint _tmp16_; - gint _tmp17_; - sqlite3_stmt* _tmp18_; - Orientation _tmp19_; - gint _tmp20_; - sqlite3_stmt* _tmp21_; - PhotoFileFormat _tmp22_; - gint _tmp23_; - sqlite3_stmt* _tmp24_; - BackingPhotoID _tmp25_; - gint64 _tmp26_; - gint _tmp27_; - sqlite3_stmt* _tmp28_; - gint _tmp29_; - GError * _inner_error_ = NULL; -#line 1222 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_BACKING_PHOTO_TABLE (self)); -#line 1222 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_BACKING_PHOTO_ROW (row)); -#line 1224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 1224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE BackingPhotoTable SET timestamp=?, filesize=?, " "width=?, height=?, original_orientation=?, file_format=? " "WHERE id=?", -1, &_tmp1_, NULL); -#line 1224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 1224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 1224 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 1228 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 1228 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1230 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = stmt; -#line 1230 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = row->timestamp; -#line 1230 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp4_, 1, (gint64) _tmp5_); -#line 1231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = res; -#line 1231 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp6_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1232 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = stmt; -#line 1232 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = row->filesize; -#line 1232 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp7_, 2, _tmp8_); -#line 1233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = res; -#line 1233 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = stmt; -#line 1234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = row->dim; -#line 1234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = _tmp11_.width; -#line 1234 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp10_, 3, _tmp12_); -#line 1235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = res; -#line 1235 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = stmt; -#line 1236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp15_ = row->dim; -#line 1236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp16_ = _tmp15_.height; -#line 1236 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp14_, 4, _tmp16_); -#line 1237 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp17_ = res; -#line 1237 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp17_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1238 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp18_ = stmt; -#line 1238 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp19_ = row->original_orientation; -#line 1238 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp18_, 5, (gint) _tmp19_); -#line 1239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp20_ = res; -#line 1239 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp20_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1240 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp21_ = stmt; -#line 1240 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp22_ = row->file_format; -#line 1240 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int (_tmp21_, 6, photo_file_format_serialize (_tmp22_)); -#line 1241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp23_ = res; -#line 1241 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp23_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp24_ = stmt; -#line 1242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp25_ = row->id; -#line 1242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp26_ = _tmp25_.id; -#line 1242 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp24_, 7, _tmp26_); -#line 1243 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp27_ = res; -#line 1243 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp27_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1245 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp28_ = stmt; -#line 1245 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp28_); -#line 1246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp29_ = res; -#line 1246 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp29_ != SQLITE_DONE) { -#line 8451 "PhotoTable.c" - gint _tmp30_; -#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp30_ = res; -#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_throw_error ("BackingPhotoTable.update", _tmp30_, &_inner_error_); -#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 8467 "PhotoTable.c" - } else { -#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 1247 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 8477 "PhotoTable.c" - } - } - } -#line 1222 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 8483 "PhotoTable.c" -} - - -void -backing_photo_table_update_attributes (BackingPhotoTable* self, - BackingPhotoID* id, - time_t timestamp, - gint64 filesize, - GError** error) -{ - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gint _tmp5_; - sqlite3_stmt* _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - BackingPhotoID _tmp9_; - gint64 _tmp10_; - gint _tmp11_; - sqlite3_stmt* _tmp12_; - gint _tmp13_; - GError * _inner_error_ = NULL; -#line 1250 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_BACKING_PHOTO_TABLE (self)); -#line 1250 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (id != NULL); -#line 1252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = database_table_db; -#line 1252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE BackingPhotoTable SET timestamp=?, filesize=? WHERE id=?", -1, &_tmp1_, NULL); -#line 1252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 1252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - stmt = _tmp1_; -#line 1252 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = _tmp2_; -#line 1254 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp3_ = res; -#line 1254 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1256 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp4_ = stmt; -#line 1256 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp4_, 1, (gint64) timestamp); -#line 1257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp5_ = res; -#line 1257 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1258 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp6_ = stmt; -#line 1258 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp6_, 2, filesize); -#line 1259 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp7_ = res; -#line 1259 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp8_ = stmt; -#line 1260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp9_ = *id; -#line 1260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp10_ = _tmp9_.id; -#line 1260 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_bind_int64 (_tmp8_, 3, _tmp10_); -#line 1261 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp11_ = res; -#line 1261 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK"); -#line 1263 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp12_ = stmt; -#line 1263 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - res = sqlite3_step (_tmp12_); -#line 1264 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp13_ = res; -#line 1264 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_tmp13_ != SQLITE_DONE) { -#line 8565 "PhotoTable.c" - gint _tmp14_; -#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp14_ = res; -#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_throw_error ("BackingPhotoTable.update_attributes", _tmp14_, &_inner_error_); -#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 8581 "PhotoTable.c" - } else { -#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 1265 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 8591 "PhotoTable.c" - } - } - } -#line 1250 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _sqlite3_finalize0 (stmt); -#line 8597 "PhotoTable.c" -} - - -void -backing_photo_table_remove (BackingPhotoTable* self, - BackingPhotoID* backing_id, - GError** error) -{ - BackingPhotoID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 1268 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_BACKING_PHOTO_TABLE (self)); -#line 1268 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (backing_id != NULL); -#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *backing_id; -#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.id; -#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_delete_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, &_inner_error_); -#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 8627 "PhotoTable.c" - } else { -#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 1269 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 8635 "PhotoTable.c" - } - } -} - - -void -backing_photo_table_set_filepath (BackingPhotoTable* self, - BackingPhotoID* id, - const gchar* filepath, - GError** error) -{ - BackingPhotoID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_BACKING_PHOTO_TABLE (self)); -#line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (id != NULL); -#line 1272 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (filepath != NULL); -#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *id; -#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.id; -#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "filepath", filepath, &_inner_error_); -#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 8670 "PhotoTable.c" - } else { -#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 1273 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 8678 "PhotoTable.c" - } - } -} - - -void -backing_photo_table_update_timestamp (BackingPhotoTable* self, - BackingPhotoID* id, - time_t timestamp, - GError** error) -{ - BackingPhotoID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 1276 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (IS_BACKING_PHOTO_TABLE (self)); -#line 1276 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_return_if_fail (id != NULL); -#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp0_ = *id; -#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - _tmp1_ = _tmp0_.id; -#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "timestamp", (gint64) timestamp, &_inner_error_); -#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_propagate_error (error, _inner_error_); -#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 8711 "PhotoTable.c" - } else { -#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - g_clear_error (&_inner_error_); -#line 1277 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - return; -#line 8719 "PhotoTable.c" - } - } -} - - -static void -backing_photo_table_class_init (BackingPhotoTableClass * klass) -{ -#line 1122 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - backing_photo_table_parent_class = g_type_class_peek_parent (klass); -#line 1122 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - ((DatabaseTableClass *) klass)->finalize = backing_photo_table_finalize; -#line 8732 "PhotoTable.c" -} - - -static void -backing_photo_table_instance_init (BackingPhotoTable * self) -{ -} - - -static void -backing_photo_table_finalize (DatabaseTable * obj) -{ - BackingPhotoTable * self; -#line 1122 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BACKING_PHOTO_TABLE, BackingPhotoTable); -#line 1122 "/home/jens/Source/shotwell/src/db/PhotoTable.vala" - DATABASE_TABLE_CLASS (backing_photo_table_parent_class)->finalize (obj); -#line 8750 "PhotoTable.c" -} - - -GType -backing_photo_table_get_type (void) -{ - static volatile gsize backing_photo_table_type_id__volatile = 0; - if (g_once_init_enter (&backing_photo_table_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (BackingPhotoTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) backing_photo_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BackingPhotoTable), 0, (GInstanceInitFunc) backing_photo_table_instance_init, NULL }; - GType backing_photo_table_type_id; - backing_photo_table_type_id = g_type_register_static (TYPE_DATABASE_TABLE, "BackingPhotoTable", &g_define_type_info, 0); - g_once_init_leave (&backing_photo_table_type_id__volatile, backing_photo_table_type_id); - } - return backing_photo_table_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/db/SavedSearchDBTable.c b/src/db/SavedSearchDBTable.c deleted file mode 100644 index d2d20d2..0000000 --- a/src/db/SavedSearchDBTable.c +++ /dev/null @@ -1,4648 +0,0 @@ -/* SavedSearchDBTable.c generated by valac 0.40.4, the Vala compiler - * generated from SavedSearchDBTable.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SAVED_SEARCH_ID (saved_search_id_get_type ()) -typedef struct _SavedSearchID SavedSearchID; - -#define TYPE_SAVED_SEARCH_ROW (saved_search_row_get_type ()) -#define SAVED_SEARCH_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_ROW, SavedSearchRow)) -#define SAVED_SEARCH_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_ROW, SavedSearchRowClass)) -#define IS_SAVED_SEARCH_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_ROW)) -#define IS_SAVED_SEARCH_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_ROW)) -#define SAVED_SEARCH_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_ROW, SavedSearchRowClass)) - -typedef struct _SavedSearchRow SavedSearchRow; -typedef struct _SavedSearchRowClass SavedSearchRowClass; -typedef struct _SavedSearchRowPrivate SavedSearchRowPrivate; - -#define TYPE_SEARCH_OPERATOR (search_operator_get_type ()) - -#define TYPE_SEARCH_CONDITION (search_condition_get_type ()) -#define SEARCH_CONDITION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION, SearchCondition)) -#define SEARCH_CONDITION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION, SearchConditionClass)) -#define IS_SEARCH_CONDITION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION)) -#define IS_SEARCH_CONDITION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION)) -#define SEARCH_CONDITION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION, SearchConditionClass)) - -typedef struct _SearchCondition SearchCondition; -typedef struct _SearchConditionClass SearchConditionClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _ParamSpecSavedSearchRow ParamSpecSavedSearchRow; - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; -typedef struct _DatabaseTablePrivate DatabaseTablePrivate; - -#define TYPE_SAVED_SEARCH_DB_TABLE (saved_search_db_table_get_type ()) -#define SAVED_SEARCH_DB_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_DB_TABLE, SavedSearchDBTable)) -#define SAVED_SEARCH_DB_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_DB_TABLE, SavedSearchDBTableClass)) -#define IS_SAVED_SEARCH_DB_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_DB_TABLE)) -#define IS_SAVED_SEARCH_DB_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_DB_TABLE)) -#define SAVED_SEARCH_DB_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_DB_TABLE, SavedSearchDBTableClass)) - -typedef struct _SavedSearchDBTable SavedSearchDBTable; -typedef struct _SavedSearchDBTableClass SavedSearchDBTableClass; -typedef struct _SavedSearchDBTablePrivate SavedSearchDBTablePrivate; -#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL))) -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) -#define _search_condition_unref0(var) ((var == NULL) ? NULL : (var = (search_condition_unref (var), NULL))) -#define _saved_search_row_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_row_unref (var), NULL))) - -#define TYPE_SEARCH_CONDITION_TEXT (search_condition_text_get_type ()) -#define SEARCH_CONDITION_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_TEXT, SearchConditionText)) -#define SEARCH_CONDITION_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_TEXT, SearchConditionTextClass)) -#define IS_SEARCH_CONDITION_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_TEXT)) -#define IS_SEARCH_CONDITION_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_TEXT)) -#define SEARCH_CONDITION_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_TEXT, SearchConditionTextClass)) - -typedef struct _SearchConditionText SearchConditionText; -typedef struct _SearchConditionTextClass SearchConditionTextClass; - -#define SEARCH_CONDITION_TYPE_SEARCH_TYPE (search_condition_search_type_get_type ()) - -#define SEARCH_CONDITION_TEXT_TYPE_CONTEXT (search_condition_text_context_get_type ()) - -#define TYPE_SEARCH_CONDITION_MEDIA_TYPE (search_condition_media_type_get_type ()) -#define SEARCH_CONDITION_MEDIA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaType)) -#define SEARCH_CONDITION_MEDIA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaTypeClass)) -#define IS_SEARCH_CONDITION_MEDIA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE)) -#define IS_SEARCH_CONDITION_MEDIA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_MEDIA_TYPE)) -#define SEARCH_CONDITION_MEDIA_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaTypeClass)) - -typedef struct _SearchConditionMediaType SearchConditionMediaType; -typedef struct _SearchConditionMediaTypeClass SearchConditionMediaTypeClass; - -#define SEARCH_CONDITION_MEDIA_TYPE_TYPE_CONTEXT (search_condition_media_type_context_get_type ()) - -#define SEARCH_CONDITION_MEDIA_TYPE_TYPE_MEDIA_TYPE (search_condition_media_type_media_type_get_type ()) - -#define TYPE_SEARCH_CONDITION_FLAGGED (search_condition_flagged_get_type ()) -#define SEARCH_CONDITION_FLAGGED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlagged)) -#define SEARCH_CONDITION_FLAGGED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlaggedClass)) -#define IS_SEARCH_CONDITION_FLAGGED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_FLAGGED)) -#define IS_SEARCH_CONDITION_FLAGGED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_FLAGGED)) -#define SEARCH_CONDITION_FLAGGED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlaggedClass)) - -typedef struct _SearchConditionFlagged SearchConditionFlagged; -typedef struct _SearchConditionFlaggedClass SearchConditionFlaggedClass; - -#define SEARCH_CONDITION_FLAGGED_TYPE_STATE (search_condition_flagged_state_get_type ()) - -#define TYPE_SEARCH_CONDITION_MODIFIED (search_condition_modified_get_type ()) -#define SEARCH_CONDITION_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModified)) -#define SEARCH_CONDITION_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModifiedClass)) -#define IS_SEARCH_CONDITION_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_MODIFIED)) -#define IS_SEARCH_CONDITION_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_MODIFIED)) -#define SEARCH_CONDITION_MODIFIED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModifiedClass)) - -typedef struct _SearchConditionModified SearchConditionModified; -typedef struct _SearchConditionModifiedClass SearchConditionModifiedClass; - -#define SEARCH_CONDITION_MODIFIED_TYPE_CONTEXT (search_condition_modified_context_get_type ()) - -#define SEARCH_CONDITION_MODIFIED_TYPE_STATE (search_condition_modified_state_get_type ()) - -#define TYPE_SEARCH_CONDITION_RATING (search_condition_rating_get_type ()) -#define SEARCH_CONDITION_RATING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_RATING, SearchConditionRating)) -#define SEARCH_CONDITION_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_RATING, SearchConditionRatingClass)) -#define IS_SEARCH_CONDITION_RATING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_RATING)) -#define IS_SEARCH_CONDITION_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_RATING)) -#define SEARCH_CONDITION_RATING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_RATING, SearchConditionRatingClass)) - -typedef struct _SearchConditionRating SearchConditionRating; -typedef struct _SearchConditionRatingClass SearchConditionRatingClass; - -#define TYPE_RATING (rating_get_type ()) - -#define SEARCH_CONDITION_RATING_TYPE_CONTEXT (search_condition_rating_context_get_type ()) - -#define TYPE_SEARCH_CONDITION_DATE (search_condition_date_get_type ()) -#define SEARCH_CONDITION_DATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_DATE, SearchConditionDate)) -#define SEARCH_CONDITION_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_DATE, SearchConditionDateClass)) -#define IS_SEARCH_CONDITION_DATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_DATE)) -#define IS_SEARCH_CONDITION_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_DATE)) -#define SEARCH_CONDITION_DATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_DATE, SearchConditionDateClass)) - -typedef struct _SearchConditionDate SearchConditionDate; -typedef struct _SearchConditionDateClass SearchConditionDateClass; - -#define SEARCH_CONDITION_DATE_TYPE_CONTEXT (search_condition_date_context_get_type ()) -#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _SavedSearchID { - gint64 id; -}; - -typedef enum { - SEARCH_OPERATOR_ANY = 0, - SEARCH_OPERATOR_ALL, - SEARCH_OPERATOR_NONE -} SearchOperator; - -struct _SavedSearchRow { - GTypeInstance parent_instance; - volatile int ref_count; - SavedSearchRowPrivate * priv; - SavedSearchID search_id; - gchar* name; - SearchOperator operator; - GeeList* conditions; -}; - -struct _SavedSearchRowClass { - GTypeClass parent_class; - void (*finalize) (SavedSearchRow *self); -}; - -struct _ParamSpecSavedSearchRow { - GParamSpec parent_instance; -}; - -struct _DatabaseTable { - GTypeInstance parent_instance; - volatile int ref_count; - DatabaseTablePrivate * priv; - gchar* table_name; -}; - -struct _DatabaseTableClass { - GTypeClass parent_class; - void (*finalize) (DatabaseTable *self); -}; - -struct _SavedSearchDBTable { - DatabaseTable parent_instance; - SavedSearchDBTablePrivate * priv; -}; - -struct _SavedSearchDBTableClass { - DatabaseTableClass parent_class; -}; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -typedef enum { - SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT = 0, - SEARCH_CONDITION_SEARCH_TYPE_TITLE, - SEARCH_CONDITION_SEARCH_TYPE_TAG, - SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME, - SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME, - SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE, - SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE, - SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE, - SEARCH_CONDITION_SEARCH_TYPE_RATING, - SEARCH_CONDITION_SEARCH_TYPE_COMMENT, - SEARCH_CONDITION_SEARCH_TYPE_DATE -} SearchConditionSearchType; - -typedef enum { - SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS = 0, - SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY, - SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH, - SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH, - SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN, - SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET, - SEARCH_CONDITION_TEXT_CONTEXT_IS_SET -} SearchConditionTextContext; - -typedef enum { - SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS = 0, - SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT -} SearchConditionMediaTypeContext; - -typedef enum { - SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL = 0, - SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW, - SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO -} SearchConditionMediaTypeMediaType; - -typedef enum { - SEARCH_CONDITION_FLAGGED_STATE_FLAGGED = 0, - SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED -} SearchConditionFlaggedState; - -typedef enum { - SEARCH_CONDITION_MODIFIED_CONTEXT_HAS = 0, - SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO -} SearchConditionModifiedContext; - -typedef enum { - SEARCH_CONDITION_MODIFIED_STATE_MODIFIED = 0, - SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES, - SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES -} SearchConditionModifiedState; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER = 0, - SEARCH_CONDITION_RATING_CONTEXT_ONLY, - SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER -} SearchConditionRatingContext; - -typedef enum { - SEARCH_CONDITION_DATE_CONTEXT_EXACT = 0, - SEARCH_CONDITION_DATE_CONTEXT_AFTER, - SEARCH_CONDITION_DATE_CONTEXT_BEFORE, - SEARCH_CONDITION_DATE_CONTEXT_BETWEEN, - SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET -} SearchConditionDateContext; - - -static gpointer saved_search_row_parent_class = NULL; -static gpointer saved_search_db_table_parent_class = NULL; -static SavedSearchDBTable* saved_search_db_table_instance; -static SavedSearchDBTable* saved_search_db_table_instance = NULL; -extern sqlite3* database_table_db; - -GType saved_search_id_get_type (void) G_GNUC_CONST; -SavedSearchID* saved_search_id_dup (const SavedSearchID* self); -void saved_search_id_free (SavedSearchID* self); -#define SAVED_SEARCH_ID_INVALID ((gint64) -1) -void saved_search_id_init (SavedSearchID *self, - gint64 id); -gboolean saved_search_id_is_invalid (SavedSearchID *self); -gboolean saved_search_id_is_valid (SavedSearchID *self); -gpointer saved_search_row_ref (gpointer instance); -void saved_search_row_unref (gpointer instance); -GParamSpec* param_spec_saved_search_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_saved_search_row (GValue* value, - gpointer v_object); -void value_take_saved_search_row (GValue* value, - gpointer v_object); -gpointer value_get_saved_search_row (const GValue* value); -GType saved_search_row_get_type (void) G_GNUC_CONST; -GType search_operator_get_type (void) G_GNUC_CONST; -gpointer search_condition_ref (gpointer instance); -void search_condition_unref (gpointer instance); -GParamSpec* param_spec_search_condition (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_search_condition (GValue* value, - gpointer v_object); -void value_take_search_condition (GValue* value, - gpointer v_object); -gpointer value_get_search_condition (const GValue* value); -GType search_condition_get_type (void) G_GNUC_CONST; -SavedSearchRow* saved_search_row_new (void); -SavedSearchRow* saved_search_row_construct (GType object_type); -static void saved_search_row_finalize (SavedSearchRow * obj); -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType saved_search_db_table_get_type (void) G_GNUC_CONST; -static SavedSearchDBTable* saved_search_db_table_new (void); -static SavedSearchDBTable* saved_search_db_table_construct (GType object_type); -DatabaseTable* database_table_construct (GType object_type); -void database_table_set_table_name (DatabaseTable* self, - const gchar* table_name); -void database_table_fatal (const gchar* op, - gint res); -SavedSearchDBTable* saved_search_db_table_get_instance (void); -GQuark database_error_quark (void); -SavedSearchRow* saved_search_db_table_add (SavedSearchDBTable* self, - const gchar* name, - SearchOperator operator, - GeeArrayList* conditions, - GError** error); -gchar* search_operator_to_string (SearchOperator self); -void database_table_throw_error (const gchar* method, - gint res, - GError** error); -static void saved_search_db_table_add_condition (SavedSearchDBTable* self, - SavedSearchID* id, - SearchCondition* condition, - GError** error); -GType search_condition_text_get_type (void) G_GNUC_CONST; -GType search_condition_search_type_get_type (void) G_GNUC_CONST; -SearchConditionSearchType search_condition_get_search_type (SearchCondition* self); -gchar* search_condition_search_type_to_string (SearchConditionSearchType self); -GType search_condition_text_context_get_type (void) G_GNUC_CONST; -SearchConditionTextContext search_condition_text_get_context (SearchConditionText* self); -gchar* search_condition_text_context_to_string (SearchConditionTextContext self); -const gchar* search_condition_text_get_text (SearchConditionText* self); -GType search_condition_media_type_get_type (void) G_GNUC_CONST; -GType search_condition_media_type_context_get_type (void) G_GNUC_CONST; -SearchConditionMediaTypeContext search_condition_media_type_get_context (SearchConditionMediaType* self); -gchar* search_condition_media_type_context_to_string (SearchConditionMediaTypeContext self); -GType search_condition_media_type_media_type_get_type (void) G_GNUC_CONST; -SearchConditionMediaTypeMediaType search_condition_media_type_get_media_type (SearchConditionMediaType* self); -gchar* search_condition_media_type_media_type_to_string (SearchConditionMediaTypeMediaType self); -GType search_condition_flagged_get_type (void) G_GNUC_CONST; -GType search_condition_flagged_state_get_type (void) G_GNUC_CONST; -SearchConditionFlaggedState search_condition_flagged_get_state (SearchConditionFlagged* self); -gchar* search_condition_flagged_state_to_string (SearchConditionFlaggedState self); -GType search_condition_modified_get_type (void) G_GNUC_CONST; -GType search_condition_modified_context_get_type (void) G_GNUC_CONST; -SearchConditionModifiedContext search_condition_modified_get_context (SearchConditionModified* self); -gchar* search_condition_modified_context_to_string (SearchConditionModifiedContext self); -GType search_condition_modified_state_get_type (void) G_GNUC_CONST; -SearchConditionModifiedState search_condition_modified_get_state (SearchConditionModified* self); -gchar* search_condition_modified_state_to_string (SearchConditionModifiedState self); -GType search_condition_rating_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -Rating search_condition_rating_get_rating (SearchConditionRating* self); -gint rating_serialize (Rating self); -GType search_condition_rating_context_get_type (void) G_GNUC_CONST; -SearchConditionRatingContext search_condition_rating_get_context (SearchConditionRating* self); -gchar* search_condition_rating_context_to_string (SearchConditionRatingContext self); -GType search_condition_date_get_type (void) G_GNUC_CONST; -GType search_condition_date_context_get_type (void) G_GNUC_CONST; -SearchConditionDateContext search_condition_date_get_context (SearchConditionDate* self); -gchar* search_condition_date_context_to_string (SearchConditionDateContext self); -GDateTime* search_condition_date_get_date_one (SearchConditionDate* self); -GDateTime* search_condition_date_get_date_two (SearchConditionDate* self); -static void saved_search_db_table_remove_conditions_for_search_id (SavedSearchDBTable* self, - SavedSearchID* search_id, - GError** error); -static void saved_search_db_table_remove_conditions_for_table (SavedSearchDBTable* self, - const gchar* table_name, - SavedSearchID* search_id, - GError** error); -static GeeList* saved_search_db_table_get_conditions_for_id (SavedSearchDBTable* self, - SavedSearchID* search_id, - GError** error); -SearchConditionSearchType search_condition_search_type_from_string (const gchar* str); -SearchConditionTextContext search_condition_text_context_from_string (const gchar* str); -SearchConditionText* search_condition_text_new (SearchConditionSearchType search_type, - const gchar* text, - SearchConditionTextContext context); -SearchConditionText* search_condition_text_construct (GType object_type, - SearchConditionSearchType search_type, - const gchar* text, - SearchConditionTextContext context); -SearchConditionMediaTypeContext search_condition_media_type_context_from_string (const gchar* str); -SearchConditionMediaTypeMediaType search_condition_media_type_media_type_from_string (const gchar* str); -SearchConditionMediaType* search_condition_media_type_new (SearchConditionSearchType search_type, - SearchConditionMediaTypeContext context, - SearchConditionMediaTypeMediaType media_type); -SearchConditionMediaType* search_condition_media_type_construct (GType object_type, - SearchConditionSearchType search_type, - SearchConditionMediaTypeContext context, - SearchConditionMediaTypeMediaType media_type); -SearchConditionFlaggedState search_condition_flagged_state_from_string (const gchar* str); -SearchConditionFlagged* search_condition_flagged_new (SearchConditionSearchType search_type, - SearchConditionFlaggedState state); -SearchConditionFlagged* search_condition_flagged_construct (GType object_type, - SearchConditionSearchType search_type, - SearchConditionFlaggedState state); -SearchConditionModifiedContext search_condition_modified_context_from_string (const gchar* str); -SearchConditionModifiedState search_condition_modified_state_from_string (const gchar* str); -SearchConditionModified* search_condition_modified_new (SearchConditionSearchType search_type, - SearchConditionModifiedContext context, - SearchConditionModifiedState state); -SearchConditionModified* search_condition_modified_construct (GType object_type, - SearchConditionSearchType search_type, - SearchConditionModifiedContext context, - SearchConditionModifiedState state); -Rating rating_unserialize (gint value); -SearchConditionRatingContext search_condition_rating_context_from_string (const gchar* str); -SearchConditionRating* search_condition_rating_new (SearchConditionSearchType search_type, - Rating rating, - SearchConditionRatingContext context); -SearchConditionRating* search_condition_rating_construct (GType object_type, - SearchConditionSearchType search_type, - Rating rating, - SearchConditionRatingContext context); -SearchConditionDateContext search_condition_date_context_from_string (const gchar* str); -SearchConditionDate* search_condition_date_new (SearchConditionSearchType search_type, - SearchConditionDateContext context, - GDateTime* date_one, - GDateTime* date_two); -SearchConditionDate* search_condition_date_construct (GType object_type, - SearchConditionSearchType search_type, - SearchConditionDateContext context, - GDateTime* date_one, - GDateTime* date_two); -void saved_search_db_table_create_from_row (SavedSearchDBTable* self, - SavedSearchRow* row, - SavedSearchID* result, - GError** error); -void saved_search_db_table_remove (SavedSearchDBTable* self, - SavedSearchID* search_id, - GError** error); -void database_table_delete_by_id (DatabaseTable* self, - gint64 id, - GError** error); -SavedSearchRow* saved_search_db_table_get_row (SavedSearchDBTable* self, - SavedSearchID* search_id, - GError** error); -SearchOperator search_operator_from_string (const gchar* str); -GeeList* saved_search_db_table_get_all_rows (SavedSearchDBTable* self, - GError** error); -void saved_search_db_table_rename (SavedSearchDBTable* self, - SavedSearchID* search_id, - const gchar* new_name, - GError** error); -void database_table_update_text_by_id_2 (DatabaseTable* self, - gint64 id, - const gchar* column, - const gchar* text, - GError** error); -static void saved_search_db_table_finalize (DatabaseTable * obj); - - -void -saved_search_id_init (SavedSearchID *self, - gint64 id) -{ -#line 12 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - memset (self, 0, sizeof (SavedSearchID)); -#line 13 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - (*self).id = id; -#line 513 "SavedSearchDBTable.c" -} - - -gboolean -saved_search_id_is_invalid (SavedSearchID *self) -{ - gboolean result = FALSE; - gint64 _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp0_ = (*self).id; -#line 17 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - result = _tmp0_ == SAVED_SEARCH_ID_INVALID; -#line 17 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return result; -#line 528 "SavedSearchDBTable.c" -} - - -gboolean -saved_search_id_is_valid (SavedSearchID *self) -{ - gboolean result = FALSE; - gint64 _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp0_ = (*self).id; -#line 21 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - result = _tmp0_ != SAVED_SEARCH_ID_INVALID; -#line 21 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return result; -#line 543 "SavedSearchDBTable.c" -} - - -SavedSearchID* -saved_search_id_dup (const SavedSearchID* self) -{ - SavedSearchID* dup; -#line 7 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - dup = g_new0 (SavedSearchID, 1); -#line 7 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - memcpy (dup, self, sizeof (SavedSearchID)); -#line 7 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return dup; -#line 557 "SavedSearchDBTable.c" -} - - -void -saved_search_id_free (SavedSearchID* self) -{ -#line 7 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_free (self); -#line 566 "SavedSearchDBTable.c" -} - - -GType -saved_search_id_get_type (void) -{ - static volatile gsize saved_search_id_type_id__volatile = 0; - if (g_once_init_enter (&saved_search_id_type_id__volatile)) { - GType saved_search_id_type_id; - saved_search_id_type_id = g_boxed_type_register_static ("SavedSearchID", (GBoxedCopyFunc) saved_search_id_dup, (GBoxedFreeFunc) saved_search_id_free); - g_once_init_leave (&saved_search_id_type_id__volatile, saved_search_id_type_id); - } - return saved_search_id_type_id__volatile; -} - - -SavedSearchRow* -saved_search_row_construct (GType object_type) -{ - SavedSearchRow* self = NULL; -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - self = (SavedSearchRow*) g_type_create_instance (object_type); -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return self; -#line 591 "SavedSearchDBTable.c" -} - - -SavedSearchRow* -saved_search_row_new (void) -{ -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return saved_search_row_construct (TYPE_SAVED_SEARCH_ROW); -#line 600 "SavedSearchDBTable.c" -} - - -static void -value_saved_search_row_init (GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - value->data[0].v_pointer = NULL; -#line 609 "SavedSearchDBTable.c" -} - - -static void -value_saved_search_row_free_value (GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_row_unref (value->data[0].v_pointer); -#line 620 "SavedSearchDBTable.c" - } -} - - -static void -value_saved_search_row_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (src_value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - dest_value->data[0].v_pointer = saved_search_row_ref (src_value->data[0].v_pointer); -#line 633 "SavedSearchDBTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - dest_value->data[0].v_pointer = NULL; -#line 637 "SavedSearchDBTable.c" - } -} - - -static gpointer -value_saved_search_row_peek_pointer (const GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return value->data[0].v_pointer; -#line 647 "SavedSearchDBTable.c" -} - - -static gchar* -value_saved_search_row_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (collect_values[0].v_pointer) { -#line 659 "SavedSearchDBTable.c" - SavedSearchRow * object; - object = collect_values[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (object->parent_instance.g_class == NULL) { -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 666 "SavedSearchDBTable.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 670 "SavedSearchDBTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - value->data[0].v_pointer = saved_search_row_ref (object); -#line 674 "SavedSearchDBTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - value->data[0].v_pointer = NULL; -#line 678 "SavedSearchDBTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 682 "SavedSearchDBTable.c" -} - - -static gchar* -value_saved_search_row_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - SavedSearchRow ** object_p; - object_p = collect_values[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (!object_p) { -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 698 "SavedSearchDBTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (!value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - *object_p = NULL; -#line 704 "SavedSearchDBTable.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - *object_p = value->data[0].v_pointer; -#line 708 "SavedSearchDBTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - *object_p = saved_search_row_ref (value->data[0].v_pointer); -#line 712 "SavedSearchDBTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 716 "SavedSearchDBTable.c" -} - - -GParamSpec* -param_spec_saved_search_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecSavedSearchRow* spec; -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_SAVED_SEARCH_ROW), NULL); -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return G_PARAM_SPEC (spec); -#line 736 "SavedSearchDBTable.c" -} - - -gpointer -value_get_saved_search_row (const GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SAVED_SEARCH_ROW), NULL); -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return value->data[0].v_pointer; -#line 747 "SavedSearchDBTable.c" -} - - -void -value_set_saved_search_row (GValue* value, - gpointer v_object) -{ - SavedSearchRow * old; -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SAVED_SEARCH_ROW)); -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - old = value->data[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (v_object) { -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SAVED_SEARCH_ROW)); -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - value->data[0].v_pointer = v_object; -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_row_ref (value->data[0].v_pointer); -#line 770 "SavedSearchDBTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - value->data[0].v_pointer = NULL; -#line 774 "SavedSearchDBTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (old) { -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_row_unref (old); -#line 780 "SavedSearchDBTable.c" - } -} - - -void -value_take_saved_search_row (GValue* value, - gpointer v_object) -{ - SavedSearchRow * old; -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SAVED_SEARCH_ROW)); -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - old = value->data[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (v_object) { -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SAVED_SEARCH_ROW)); -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - value->data[0].v_pointer = v_object; -#line 802 "SavedSearchDBTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - value->data[0].v_pointer = NULL; -#line 806 "SavedSearchDBTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (old) { -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_row_unref (old); -#line 812 "SavedSearchDBTable.c" - } -} - - -static void -saved_search_row_class_init (SavedSearchRowClass * klass) -{ -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_row_parent_class = g_type_class_peek_parent (klass); -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - ((SavedSearchRowClass *) klass)->finalize = saved_search_row_finalize; -#line 824 "SavedSearchDBTable.c" -} - - -static void -saved_search_row_instance_init (SavedSearchRow * self) -{ -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - self->ref_count = 1; -#line 833 "SavedSearchDBTable.c" -} - - -static void -saved_search_row_finalize (SavedSearchRow * obj) -{ - SavedSearchRow * self; -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SAVED_SEARCH_ROW, SavedSearchRow); -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_signal_handlers_destroy (self); -#line 28 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_free0 (self->name); -#line 30 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (self->conditions); -#line 849 "SavedSearchDBTable.c" -} - - -GType -saved_search_row_get_type (void) -{ - static volatile gsize saved_search_row_type_id__volatile = 0; - if (g_once_init_enter (&saved_search_row_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_saved_search_row_init, value_saved_search_row_free_value, value_saved_search_row_copy_value, value_saved_search_row_peek_pointer, "p", value_saved_search_row_collect_value, "p", value_saved_search_row_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (SavedSearchRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchRow), 0, (GInstanceInitFunc) saved_search_row_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType saved_search_row_type_id; - saved_search_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SavedSearchRow", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&saved_search_row_type_id__volatile, saved_search_row_type_id); - } - return saved_search_row_type_id__volatile; -} - - -gpointer -saved_search_row_ref (gpointer instance) -{ - SavedSearchRow * self; - self = instance; -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_atomic_int_inc (&self->ref_count); -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return instance; -#line 878 "SavedSearchDBTable.c" -} - - -void -saved_search_row_unref (gpointer instance) -{ - SavedSearchRow * self; - self = instance; -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - SAVED_SEARCH_ROW_GET_CLASS (self)->finalize (self); -#line 25 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 893 "SavedSearchDBTable.c" - } -} - - -static SavedSearchDBTable* -saved_search_db_table_construct (GType object_type) -{ - SavedSearchDBTable* self = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gint _tmp5_; - sqlite3* _tmp7_; - sqlite3_stmt* _tmp8_ = NULL; - gint _tmp9_; - gint _tmp10_; - sqlite3_stmt* _tmp11_; - gint _tmp12_; - sqlite3* _tmp14_; - sqlite3_stmt* _tmp15_ = NULL; - gint _tmp16_; - gint _tmp17_; - sqlite3_stmt* _tmp18_; - gint _tmp19_; - sqlite3* _tmp21_; - sqlite3_stmt* _tmp22_ = NULL; - gint _tmp23_; - gint _tmp24_; - sqlite3_stmt* _tmp25_; - gint _tmp26_; - sqlite3* _tmp28_; - sqlite3_stmt* _tmp29_ = NULL; - gint _tmp30_; - gint _tmp31_; - sqlite3_stmt* _tmp32_; - gint _tmp33_; - sqlite3* _tmp35_; - sqlite3_stmt* _tmp36_ = NULL; - gint _tmp37_; - gint _tmp38_; - sqlite3_stmt* _tmp39_; - gint _tmp40_; - sqlite3* _tmp42_; - sqlite3_stmt* _tmp43_ = NULL; - gint _tmp44_; - gint _tmp45_; - sqlite3_stmt* _tmp46_; - gint _tmp47_; - sqlite3* _tmp49_; - sqlite3_stmt* _tmp50_ = NULL; - gint _tmp51_; - gint _tmp52_; - sqlite3_stmt* _tmp53_; - gint _tmp54_; - sqlite3* _tmp56_; - sqlite3_stmt* _tmp57_ = NULL; - gint _tmp58_; - gint _tmp59_; - sqlite3_stmt* _tmp60_; - gint _tmp61_; - sqlite3* _tmp63_; - sqlite3_stmt* _tmp64_ = NULL; - gint _tmp65_; - gint _tmp66_; - sqlite3_stmt* _tmp67_; - gint _tmp68_; - sqlite3* _tmp70_; - sqlite3_stmt* _tmp71_ = NULL; - gint _tmp72_; - gint _tmp73_; - sqlite3_stmt* _tmp74_; - gint _tmp75_; - sqlite3* _tmp77_; - sqlite3_stmt* _tmp78_ = NULL; - gint _tmp79_; - gint _tmp80_; - sqlite3_stmt* _tmp81_; - gint _tmp82_; - sqlite3* _tmp84_; - sqlite3_stmt* _tmp85_ = NULL; - gint _tmp86_; - gint _tmp87_; - sqlite3_stmt* _tmp88_; - gint _tmp89_; -#line 36 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - self = (SavedSearchDBTable*) database_table_construct (object_type); -#line 37 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), "SavedSearchDBTable"); -#line 41 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp0_ = database_table_db; -#line 41 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS " "SavedSearchDBTable " "(" "id INTEGER PRIMARY KEY, " "name TEXT UNIQUE NOT NULL, " "operator TEXT NOT NULL" ")", -1, &_tmp1_, NULL); -#line 41 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 41 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp1_; -#line 41 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp2_; -#line 48 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp3_ = res; -#line 48 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 50 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp4_ = stmt; -#line 50 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp4_); -#line 51 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp5_ = res; -#line 51 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp5_ != SQLITE_DONE) { -#line 1008 "SavedSearchDBTable.c" - gint _tmp6_; -#line 52 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp6_ = res; -#line 52 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_fatal ("create SavedSearchDBTable", _tmp6_); -#line 1014 "SavedSearchDBTable.c" - } -#line 55 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp7_ = database_table_db; -#line 55 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp9_ = sqlite3_prepare_v2 (_tmp7_, "CREATE TABLE IF NOT EXISTS " "SavedSearchDBTable_Text " "(" "id INTEGER PRIMARY KEY, " "search_id INTEGER NOT NULL, " "search_type TEXT NOT NULL, " "context TEXT NOT NULL, " "text TEXT" ")", -1, &_tmp8_, NULL); -#line 55 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 55 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp8_; -#line 55 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp9_; -#line 64 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp10_ = res; -#line 64 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp10_ == SQLITE_OK, "res == Sqlite.OK"); -#line 66 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp11_ = stmt; -#line 66 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp11_); -#line 67 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp12_ = res; -#line 67 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp12_ != SQLITE_DONE) { -#line 1038 "SavedSearchDBTable.c" - gint _tmp13_; -#line 68 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp13_ = res; -#line 68 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_fatal ("create SavedSearchDBTable_Text", _tmp13_); -#line 1044 "SavedSearchDBTable.c" - } -#line 71 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp14_ = database_table_db; -#line 71 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp16_ = sqlite3_prepare_v2 (_tmp14_, "CREATE TABLE IF NOT EXISTS " "SavedSearchDBTable_MediaType " "(" "id INTEGER PRIMARY KEY, " "search_id INTEGER NOT NULL, " "search_type TEXT NOT NULL, " "context TEXT NOT NULL, " "type TEXT NOT_NULL" ")", -1, &_tmp15_, NULL); -#line 71 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 71 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp15_; -#line 71 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp16_; -#line 80 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp17_ = res; -#line 80 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp17_ == SQLITE_OK, "res == Sqlite.OK"); -#line 82 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp18_ = stmt; -#line 82 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp18_); -#line 83 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp19_ = res; -#line 83 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp19_ != SQLITE_DONE) { -#line 1068 "SavedSearchDBTable.c" - gint _tmp20_; -#line 84 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp20_ = res; -#line 84 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_fatal ("create SavedSearchDBTable_MediaType", _tmp20_); -#line 1074 "SavedSearchDBTable.c" - } -#line 87 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp21_ = database_table_db; -#line 87 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp23_ = sqlite3_prepare_v2 (_tmp21_, "CREATE TABLE IF NOT EXISTS " "SavedSearchDBTable_Flagged " "(" "id INTEGER PRIMARY KEY, " "search_id INTEGER NOT NULL, " "search_type TEXT NOT NULL, " "flag_state TEXT NOT NULL" ")", -1, &_tmp22_, NULL); -#line 87 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 87 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp22_; -#line 87 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp23_; -#line 95 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp24_ = res; -#line 95 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp24_ == SQLITE_OK, "res == Sqlite.OK"); -#line 97 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp25_ = stmt; -#line 97 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp25_); -#line 98 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp26_ = res; -#line 98 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp26_ != SQLITE_DONE) { -#line 1098 "SavedSearchDBTable.c" - gint _tmp27_; -#line 99 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp27_ = res; -#line 99 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_fatal ("create SavedSearchDBTable_Flagged", _tmp27_); -#line 1104 "SavedSearchDBTable.c" - } -#line 102 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp28_ = database_table_db; -#line 102 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp30_ = sqlite3_prepare_v2 (_tmp28_, "CREATE TABLE IF NOT EXISTS " "SavedSearchDBTable_Modified " "(" "id INTEGER PRIMARY KEY, " "search_id INTEGER NOT NULL, " "search_type TEXT NOT NULL, " "context TEXT NOT NULL, " "modified_state TEXT NOT NULL" ")", -1, &_tmp29_, NULL); -#line 102 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 102 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp29_; -#line 102 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp30_; -#line 111 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp31_ = res; -#line 111 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp31_ == SQLITE_OK, "res == Sqlite.OK"); -#line 113 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp32_ = stmt; -#line 113 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp32_); -#line 114 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp33_ = res; -#line 114 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp33_ != SQLITE_DONE) { -#line 1128 "SavedSearchDBTable.c" - gint _tmp34_; -#line 115 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp34_ = res; -#line 115 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_fatal ("create SavedSearchDBTable_Modified", _tmp34_); -#line 1134 "SavedSearchDBTable.c" - } -#line 118 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp35_ = database_table_db; -#line 118 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp37_ = sqlite3_prepare_v2 (_tmp35_, "CREATE TABLE IF NOT EXISTS " "SavedSearchDBTable_Rating " "(" "id INTEGER PRIMARY KEY, " "search_id INTEGER NOT NULL, " "search_type TEXT NOT NULL, " "rating INTEGER NOT_NULL, " "context TEXT NOT NULL" ")", -1, &_tmp36_, NULL); -#line 118 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 118 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp36_; -#line 118 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp37_; -#line 127 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp38_ = res; -#line 127 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp38_ == SQLITE_OK, "res == Sqlite.OK"); -#line 129 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp39_ = stmt; -#line 129 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp39_); -#line 130 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp40_ = res; -#line 130 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp40_ != SQLITE_DONE) { -#line 1158 "SavedSearchDBTable.c" - gint _tmp41_; -#line 131 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp41_ = res; -#line 131 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_fatal ("create SavedSearchDBTable_Rating", _tmp41_); -#line 1164 "SavedSearchDBTable.c" - } -#line 134 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp42_ = database_table_db; -#line 134 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp44_ = sqlite3_prepare_v2 (_tmp42_, "CREATE TABLE IF NOT EXISTS " "SavedSearchDBTable_Date " "(" "id INTEGER PRIMARY KEY, " "search_id INTEGER NOT NULL, " "search_type TEXT NOT NULL, " "context TEXT NOT NULL, " "date_one INTEGER NOT_NULL, " "date_two INTEGER NOT_NULL" ")", -1, &_tmp43_, NULL); -#line 134 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 134 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp43_; -#line 134 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp44_; -#line 144 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp45_ = res; -#line 144 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp45_ == SQLITE_OK, "res == Sqlite.OK"); -#line 146 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp46_ = stmt; -#line 146 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp46_); -#line 147 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp47_ = res; -#line 147 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp47_ != SQLITE_DONE) { -#line 1188 "SavedSearchDBTable.c" - gint _tmp48_; -#line 148 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp48_ = res; -#line 148 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_fatal ("create SavedSearchDBTable_Rating", _tmp48_); -#line 1194 "SavedSearchDBTable.c" - } -#line 151 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp49_ = database_table_db; -#line 151 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp51_ = sqlite3_prepare_v2 (_tmp49_, "CREATE INDEX IF NOT EXISTS " "SavedSearchDBTable_Text_Index " "ON SavedSearchDBTable_Text(search_id)", -1, &_tmp50_, NULL); -#line 151 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 151 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp50_; -#line 151 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp51_; -#line 154 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp52_ = res; -#line 154 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp52_ == SQLITE_OK, "res == Sqlite.OK"); -#line 155 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp53_ = stmt; -#line 155 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp53_); -#line 156 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp54_ = res; -#line 156 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp54_ != SQLITE_DONE) { -#line 1218 "SavedSearchDBTable.c" - gint _tmp55_; -#line 157 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp55_ = res; -#line 157 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_fatal ("create SavedSearchDBTable_Text_Index", _tmp55_); -#line 1224 "SavedSearchDBTable.c" - } -#line 159 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp56_ = database_table_db; -#line 159 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp58_ = sqlite3_prepare_v2 (_tmp56_, "CREATE INDEX IF NOT EXISTS " "SavedSearchDBTable_MediaType_Index " "ON SavedSearchDBTable_MediaType(search_id)", -1, &_tmp57_, NULL); -#line 159 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 159 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp57_; -#line 159 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp58_; -#line 162 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp59_ = res; -#line 162 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp59_ == SQLITE_OK, "res == Sqlite.OK"); -#line 163 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp60_ = stmt; -#line 163 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp60_); -#line 164 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp61_ = res; -#line 164 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp61_ != SQLITE_DONE) { -#line 1248 "SavedSearchDBTable.c" - gint _tmp62_; -#line 165 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp62_ = res; -#line 165 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_fatal ("create SavedSearchDBTable_MediaType_Index", _tmp62_); -#line 1254 "SavedSearchDBTable.c" - } -#line 167 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp63_ = database_table_db; -#line 167 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp65_ = sqlite3_prepare_v2 (_tmp63_, "CREATE INDEX IF NOT EXISTS " "SavedSearchDBTable_Flagged_Index " "ON SavedSearchDBTable_Flagged(search_id)", -1, &_tmp64_, NULL); -#line 167 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 167 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp64_; -#line 167 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp65_; -#line 170 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp66_ = res; -#line 170 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp66_ == SQLITE_OK, "res == Sqlite.OK"); -#line 171 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp67_ = stmt; -#line 171 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp67_); -#line 172 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp68_ = res; -#line 172 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp68_ != SQLITE_DONE) { -#line 1278 "SavedSearchDBTable.c" - gint _tmp69_; -#line 173 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp69_ = res; -#line 173 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_fatal ("create SavedSearchDBTable_Flagged_Index", _tmp69_); -#line 1284 "SavedSearchDBTable.c" - } -#line 175 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp70_ = database_table_db; -#line 175 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp72_ = sqlite3_prepare_v2 (_tmp70_, "CREATE INDEX IF NOT EXISTS " "SavedSearchDBTable_Modified_Index " "ON SavedSearchDBTable_Modified(search_id)", -1, &_tmp71_, NULL); -#line 175 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 175 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp71_; -#line 175 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp72_; -#line 178 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp73_ = res; -#line 178 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp73_ == SQLITE_OK, "res == Sqlite.OK"); -#line 179 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp74_ = stmt; -#line 179 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp74_); -#line 180 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp75_ = res; -#line 180 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp75_ != SQLITE_DONE) { -#line 1308 "SavedSearchDBTable.c" - gint _tmp76_; -#line 181 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp76_ = res; -#line 181 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_fatal ("create SavedSearchDBTable_Modified_Index", _tmp76_); -#line 1314 "SavedSearchDBTable.c" - } -#line 183 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp77_ = database_table_db; -#line 183 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp79_ = sqlite3_prepare_v2 (_tmp77_, "CREATE INDEX IF NOT EXISTS " "SavedSearchDBTable_Rating_Index " "ON SavedSearchDBTable_Rating(search_id)", -1, &_tmp78_, NULL); -#line 183 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 183 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp78_; -#line 183 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp79_; -#line 186 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp80_ = res; -#line 186 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp80_ == SQLITE_OK, "res == Sqlite.OK"); -#line 187 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp81_ = stmt; -#line 187 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp81_); -#line 188 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp82_ = res; -#line 188 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp82_ != SQLITE_DONE) { -#line 1338 "SavedSearchDBTable.c" - gint _tmp83_; -#line 189 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp83_ = res; -#line 189 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_fatal ("create SavedSearchDBTable_Rating_Index", _tmp83_); -#line 1344 "SavedSearchDBTable.c" - } -#line 191 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp84_ = database_table_db; -#line 191 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp86_ = sqlite3_prepare_v2 (_tmp84_, "CREATE INDEX IF NOT EXISTS " "SavedSearchDBTable_Date_Index " "ON SavedSearchDBTable_Date(search_id)", -1, &_tmp85_, NULL); -#line 191 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 191 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp85_; -#line 191 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp86_; -#line 194 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp87_ = res; -#line 194 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp87_ == SQLITE_OK, "res == Sqlite.OK"); -#line 195 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp88_ = stmt; -#line 195 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp88_); -#line 196 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp89_ = res; -#line 196 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp89_ != SQLITE_DONE) { -#line 1368 "SavedSearchDBTable.c" - gint _tmp90_; -#line 197 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp90_ = res; -#line 197 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_fatal ("create SavedSearchDBTable_Date_Index", _tmp90_); -#line 1374 "SavedSearchDBTable.c" - } -#line 36 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 36 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return self; -#line 1380 "SavedSearchDBTable.c" -} - - -static SavedSearchDBTable* -saved_search_db_table_new (void) -{ -#line 36 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return saved_search_db_table_construct (TYPE_SAVED_SEARCH_DB_TABLE); -#line 1389 "SavedSearchDBTable.c" -} - - -static gpointer -_database_table_ref0 (gpointer self) -{ -#line 204 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return self ? database_table_ref (self) : NULL; -#line 1398 "SavedSearchDBTable.c" -} - - -SavedSearchDBTable* -saved_search_db_table_get_instance (void) -{ - SavedSearchDBTable* result = NULL; - SavedSearchDBTable* _tmp0_; - SavedSearchDBTable* _tmp2_; - SavedSearchDBTable* _tmp3_; -#line 201 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp0_ = saved_search_db_table_instance; -#line 201 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp0_ == NULL) { -#line 1413 "SavedSearchDBTable.c" - SavedSearchDBTable* _tmp1_; -#line 202 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp1_ = saved_search_db_table_new (); -#line 202 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _database_table_unref0 (saved_search_db_table_instance); -#line 202 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_db_table_instance = _tmp1_; -#line 1421 "SavedSearchDBTable.c" - } -#line 204 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp2_ = saved_search_db_table_instance; -#line 204 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp3_ = _database_table_ref0 (_tmp2_); -#line 204 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - result = _tmp3_; -#line 204 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return result; -#line 1431 "SavedSearchDBTable.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 227 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return self ? g_object_ref (self) : NULL; -#line 1440 "SavedSearchDBTable.c" -} - - -SavedSearchRow* -saved_search_db_table_add (SavedSearchDBTable* self, - const gchar* name, - SearchOperator operator, - GeeArrayList* conditions, - GError** error) -{ - SavedSearchRow* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gchar* _tmp5_; - GDestroyNotify _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - gchar* _tmp9_; - GDestroyNotify _tmp10_; - gint _tmp11_; - sqlite3_stmt* _tmp12_; - gint _tmp13_; - SavedSearchRow* row = NULL; - SavedSearchRow* _tmp15_; - SavedSearchRow* _tmp16_; - sqlite3* _tmp17_; - SavedSearchRow* _tmp18_; - gchar* _tmp19_; - SavedSearchRow* _tmp20_; - SavedSearchRow* _tmp21_; - GeeList* _tmp22_; - GError * _inner_error_ = NULL; -#line 207 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_val_if_fail (IS_SAVED_SEARCH_DB_TABLE (self), NULL); -#line 207 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 207 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_val_if_fail (GEE_IS_ARRAY_LIST (conditions), NULL); -#line 210 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp0_ = database_table_db; -#line 210 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO SavedSearchDBTable (name, operator) VALUES (?, ?)", -1, &_tmp1_, NULL); -#line 210 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 210 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp1_; -#line 210 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp2_; -#line 212 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp3_ = res; -#line 212 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 214 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp4_ = stmt; -#line 214 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp5_ = g_strdup (name); -#line 214 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp6_ = g_free; -#line 214 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp4_, 1, _tmp5_, -1, _tmp6_); -#line 215 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp7_ = res; -#line 215 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 216 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp8_ = stmt; -#line 216 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp9_ = search_operator_to_string (operator); -#line 216 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp10_ = g_free; -#line 216 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp8_, 2, _tmp9_, -1, _tmp10_); -#line 217 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp11_ = res; -#line 217 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK"); -#line 219 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp12_ = stmt; -#line 219 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp12_); -#line 220 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp13_ = res; -#line 220 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp13_ != SQLITE_DONE) { -#line 1530 "SavedSearchDBTable.c" - gint _tmp14_; -#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp14_ = res; -#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_throw_error ("SavedSearchDBTable.add", _tmp14_, &_inner_error_); -#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 1546 "SavedSearchDBTable.c" - } else { -#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 221 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 1556 "SavedSearchDBTable.c" - } - } - } -#line 223 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp15_ = saved_search_row_new (); -#line 223 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - row = _tmp15_; -#line 224 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp16_ = row; -#line 224 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp17_ = database_table_db; -#line 224 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_id_init (&_tmp16_->search_id, sqlite3_last_insert_rowid (_tmp17_)); -#line 225 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp18_ = row; -#line 225 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp19_ = g_strdup (name); -#line 225 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_free0 (_tmp18_->name); -#line 225 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp18_->name = _tmp19_; -#line 226 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp20_ = row; -#line 226 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp20_->operator = operator; -#line 227 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp21_ = row; -#line 227 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (conditions, GEE_TYPE_LIST, GeeList)); -#line 227 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (_tmp21_->conditions); -#line 227 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp21_->conditions = _tmp22_; -#line 1590 "SavedSearchDBTable.c" - { - GeeArrayList* _sc_list = NULL; - GeeArrayList* _tmp23_; - gint _sc_size = 0; - GeeArrayList* _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _sc_index = 0; -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp23_ = _g_object_ref0 (conditions); -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sc_list = _tmp23_; -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp24_ = _sc_list; -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp25_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp26_ = _tmp25_; -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sc_size = _tmp26_; -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sc_index = -1; -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - while (TRUE) { -#line 1615 "SavedSearchDBTable.c" - gint _tmp27_; - gint _tmp28_; - gint _tmp29_; - SearchCondition* sc = NULL; - GeeArrayList* _tmp30_; - gint _tmp31_; - gpointer _tmp32_; - SavedSearchRow* _tmp33_; - SavedSearchID _tmp34_; - SearchCondition* _tmp35_; -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp27_ = _sc_index; -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sc_index = _tmp27_ + 1; -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp28_ = _sc_index; -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp29_ = _sc_size; -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (!(_tmp28_ < _tmp29_)) { -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - break; -#line 1638 "SavedSearchDBTable.c" - } -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp30_ = _sc_list; -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp31_ = _sc_index; -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp32_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp31_); -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - sc = (SearchCondition*) _tmp32_; -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp33_ = row; -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp34_ = _tmp33_->search_id; -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp35_ = sc; -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_db_table_add_condition (self, &_tmp34_, _tmp35_, &_inner_error_); -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (sc); -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (_sc_list); -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _saved_search_row_unref0 (row); -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 1672 "SavedSearchDBTable.c" - } else { -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (sc); -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (_sc_list); -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _saved_search_row_unref0 (row); -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 230 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 1688 "SavedSearchDBTable.c" - } - } -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (sc); -#line 1693 "SavedSearchDBTable.c" - } -#line 229 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (_sc_list); -#line 1697 "SavedSearchDBTable.c" - } -#line 233 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - result = row; -#line 233 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 233 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return result; -#line 1705 "SavedSearchDBTable.c" -} - - -static gpointer -_search_condition_ref0 (gpointer self) -{ -#line 238 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return self ? search_condition_ref (self) : NULL; -#line 1714 "SavedSearchDBTable.c" -} - - -static void -saved_search_db_table_add_condition (SavedSearchDBTable* self, - SavedSearchID* id, - SearchCondition* condition, - GError** error) -{ - GError * _inner_error_ = NULL; -#line 236 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (IS_SAVED_SEARCH_DB_TABLE (self)); -#line 236 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (id != NULL); -#line 236 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (IS_SEARCH_CONDITION (condition)); -#line 237 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_TEXT)) { -#line 1733 "SavedSearchDBTable.c" - SearchConditionText* text = NULL; - SearchConditionText* _tmp0_; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp1_; - sqlite3_stmt* _tmp2_ = NULL; - gint _tmp3_; - gint _tmp4_; - sqlite3_stmt* _tmp5_; - SavedSearchID _tmp6_; - gint64 _tmp7_; - gint _tmp8_; - sqlite3_stmt* _tmp9_; - SearchConditionText* _tmp10_; - SearchConditionSearchType _tmp11_; - SearchConditionSearchType _tmp12_; - gchar* _tmp13_; - GDestroyNotify _tmp14_; - gint _tmp15_; - sqlite3_stmt* _tmp16_; - SearchConditionText* _tmp17_; - SearchConditionTextContext _tmp18_; - SearchConditionTextContext _tmp19_; - gchar* _tmp20_; - GDestroyNotify _tmp21_; - gint _tmp22_; - sqlite3_stmt* _tmp23_; - SearchConditionText* _tmp24_; - const gchar* _tmp25_; - const gchar* _tmp26_; - gchar* _tmp27_; - GDestroyNotify _tmp28_; - gint _tmp29_; - sqlite3_stmt* _tmp30_; - gint _tmp31_; -#line 238 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp0_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_TEXT) ? ((SearchConditionText*) condition) : NULL); -#line 238 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - text = _tmp0_; -#line 240 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp1_ = database_table_db; -#line 240 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp3_ = sqlite3_prepare_v2 (_tmp1_, "INSERT INTO SavedSearchDBTable_Text (search_id, search_type, context, " "text) VALUES (?, ?, ?, ?)", -1, &_tmp2_, NULL); -#line 240 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 240 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp2_; -#line 240 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp3_; -#line 243 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp4_ = res; -#line 243 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp4_ == SQLITE_OK, "res == Sqlite.OK"); -#line 245 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp5_ = stmt; -#line 245 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp6_ = *id; -#line 245 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp7_ = _tmp6_.id; -#line 245 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_int64 (_tmp5_, 1, _tmp7_); -#line 246 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp8_ = res; -#line 246 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK"); -#line 248 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp9_ = stmt; -#line 248 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp10_ = text; -#line 248 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp11_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 248 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp12_ = _tmp11_; -#line 248 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp13_ = search_condition_search_type_to_string (_tmp12_); -#line 248 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp14_ = g_free; -#line 248 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp9_, 2, _tmp13_, -1, _tmp14_); -#line 249 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp15_ = res; -#line 249 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp15_ == SQLITE_OK, "res == Sqlite.OK"); -#line 251 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp16_ = stmt; -#line 251 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp17_ = text; -#line 251 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp18_ = search_condition_text_get_context (_tmp17_); -#line 251 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp19_ = _tmp18_; -#line 251 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp20_ = search_condition_text_context_to_string (_tmp19_); -#line 251 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp21_ = g_free; -#line 251 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp16_, 3, _tmp20_, -1, _tmp21_); -#line 252 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp22_ = res; -#line 252 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp22_ == SQLITE_OK, "res == Sqlite.OK"); -#line 254 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp23_ = stmt; -#line 254 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp24_ = text; -#line 254 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp25_ = search_condition_text_get_text (_tmp24_); -#line 254 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp26_ = _tmp25_; -#line 254 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp27_ = g_strdup (_tmp26_); -#line 254 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp28_ = g_free; -#line 254 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp23_, 4, _tmp27_, -1, _tmp28_); -#line 255 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp29_ = res; -#line 255 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp29_ == SQLITE_OK, "res == Sqlite.OK"); -#line 257 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp30_ = stmt; -#line 257 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp30_); -#line 258 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp31_ = res; -#line 258 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp31_ != SQLITE_DONE) { -#line 1861 "SavedSearchDBTable.c" - gint _tmp32_; -#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp32_ = res; -#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_throw_error ("SavedSearchDBTable_Text.add", _tmp32_, &_inner_error_); -#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (text); -#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 1879 "SavedSearchDBTable.c" - } else { -#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (text); -#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 259 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 1891 "SavedSearchDBTable.c" - } - } - } -#line 237 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 237 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (text); -#line 1899 "SavedSearchDBTable.c" - } else { -#line 260 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_MEDIA_TYPE)) { -#line 1903 "SavedSearchDBTable.c" - SearchConditionMediaType* media_type = NULL; - SearchConditionMediaType* _tmp33_; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp34_; - sqlite3_stmt* _tmp35_ = NULL; - gint _tmp36_; - gint _tmp37_; - sqlite3_stmt* _tmp38_; - SavedSearchID _tmp39_; - gint64 _tmp40_; - gint _tmp41_; - sqlite3_stmt* _tmp42_; - SearchConditionMediaType* _tmp43_; - SearchConditionSearchType _tmp44_; - SearchConditionSearchType _tmp45_; - gchar* _tmp46_; - GDestroyNotify _tmp47_; - gint _tmp48_; - sqlite3_stmt* _tmp49_; - SearchConditionMediaType* _tmp50_; - SearchConditionMediaTypeContext _tmp51_; - SearchConditionMediaTypeContext _tmp52_; - gchar* _tmp53_; - GDestroyNotify _tmp54_; - gint _tmp55_; - sqlite3_stmt* _tmp56_; - SearchConditionMediaType* _tmp57_; - SearchConditionMediaTypeMediaType _tmp58_; - SearchConditionMediaTypeMediaType _tmp59_; - gchar* _tmp60_; - GDestroyNotify _tmp61_; - gint _tmp62_; - sqlite3_stmt* _tmp63_; - gint _tmp64_; -#line 261 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp33_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_MEDIA_TYPE) ? ((SearchConditionMediaType*) condition) : NULL); -#line 261 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - media_type = _tmp33_; -#line 263 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp34_ = database_table_db; -#line 263 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp36_ = sqlite3_prepare_v2 (_tmp34_, "INSERT INTO SavedSearchDBTable_MediaType (search_id, search_type, cont" \ -"ext, " "type) VALUES (?, ?, ?, ?)", -1, &_tmp35_, NULL); -#line 263 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 263 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp35_; -#line 263 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp36_; -#line 266 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp37_ = res; -#line 266 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp37_ == SQLITE_OK, "res == Sqlite.OK"); -#line 268 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp38_ = stmt; -#line 268 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp39_ = *id; -#line 268 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp40_ = _tmp39_.id; -#line 268 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_int64 (_tmp38_, 1, _tmp40_); -#line 269 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp41_ = res; -#line 269 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp41_ == SQLITE_OK, "res == Sqlite.OK"); -#line 271 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp42_ = stmt; -#line 271 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp43_ = media_type; -#line 271 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp44_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 271 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp45_ = _tmp44_; -#line 271 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp46_ = search_condition_search_type_to_string (_tmp45_); -#line 271 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp47_ = g_free; -#line 271 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp42_, 2, _tmp46_, -1, _tmp47_); -#line 272 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp48_ = res; -#line 272 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp48_ == SQLITE_OK, "res == Sqlite.OK"); -#line 274 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp49_ = stmt; -#line 274 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp50_ = media_type; -#line 274 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp51_ = search_condition_media_type_get_context (_tmp50_); -#line 274 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp52_ = _tmp51_; -#line 274 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp53_ = search_condition_media_type_context_to_string (_tmp52_); -#line 274 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp54_ = g_free; -#line 274 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp49_, 3, _tmp53_, -1, _tmp54_); -#line 275 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp55_ = res; -#line 275 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp55_ == SQLITE_OK, "res == Sqlite.OK"); -#line 277 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp56_ = stmt; -#line 277 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp57_ = media_type; -#line 277 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp58_ = search_condition_media_type_get_media_type (_tmp57_); -#line 277 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp59_ = _tmp58_; -#line 277 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp60_ = search_condition_media_type_media_type_to_string (_tmp59_); -#line 277 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp61_ = g_free; -#line 277 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp56_, 4, _tmp60_, -1, _tmp61_); -#line 278 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp62_ = res; -#line 278 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp62_ == SQLITE_OK, "res == Sqlite.OK"); -#line 280 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp63_ = stmt; -#line 280 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp63_); -#line 281 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp64_ = res; -#line 281 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp64_ != SQLITE_DONE) { -#line 2031 "SavedSearchDBTable.c" - gint _tmp65_; -#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp65_ = res; -#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_throw_error ("SavedSearchDBTable_MediaType.add", _tmp65_, &_inner_error_); -#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (media_type); -#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2049 "SavedSearchDBTable.c" - } else { -#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (media_type); -#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 282 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2061 "SavedSearchDBTable.c" - } - } - } -#line 260 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 260 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (media_type); -#line 2069 "SavedSearchDBTable.c" - } else { -#line 283 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_FLAGGED)) { -#line 2073 "SavedSearchDBTable.c" - SearchConditionFlagged* flag_state = NULL; - SearchConditionFlagged* _tmp66_; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp67_; - sqlite3_stmt* _tmp68_ = NULL; - gint _tmp69_; - gint _tmp70_; - sqlite3_stmt* _tmp71_; - SavedSearchID _tmp72_; - gint64 _tmp73_; - gint _tmp74_; - sqlite3_stmt* _tmp75_; - SearchConditionFlagged* _tmp76_; - SearchConditionSearchType _tmp77_; - SearchConditionSearchType _tmp78_; - gchar* _tmp79_; - GDestroyNotify _tmp80_; - gint _tmp81_; - sqlite3_stmt* _tmp82_; - SearchConditionFlagged* _tmp83_; - SearchConditionFlaggedState _tmp84_; - SearchConditionFlaggedState _tmp85_; - gchar* _tmp86_; - GDestroyNotify _tmp87_; - gint _tmp88_; - sqlite3_stmt* _tmp89_; - gint _tmp90_; -#line 284 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp66_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_FLAGGED) ? ((SearchConditionFlagged*) condition) : NULL); -#line 284 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - flag_state = _tmp66_; -#line 286 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp67_ = database_table_db; -#line 286 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp69_ = sqlite3_prepare_v2 (_tmp67_, "INSERT INTO SavedSearchDBTable_Flagged (search_id, search_type, " "flag_state) VALUES (?, ?, ?)", -1, &_tmp68_, NULL); -#line 286 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 286 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp68_; -#line 286 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp69_; -#line 289 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp70_ = res; -#line 289 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp70_ == SQLITE_OK, "res == Sqlite.OK"); -#line 291 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp71_ = stmt; -#line 291 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp72_ = *id; -#line 291 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp73_ = _tmp72_.id; -#line 291 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_int64 (_tmp71_, 1, _tmp73_); -#line 292 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp74_ = res; -#line 292 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp74_ == SQLITE_OK, "res == Sqlite.OK"); -#line 294 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp75_ = stmt; -#line 294 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp76_ = flag_state; -#line 294 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp77_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 294 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp78_ = _tmp77_; -#line 294 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp79_ = search_condition_search_type_to_string (_tmp78_); -#line 294 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp80_ = g_free; -#line 294 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp75_, 2, _tmp79_, -1, _tmp80_); -#line 295 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp81_ = res; -#line 295 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp81_ == SQLITE_OK, "res == Sqlite.OK"); -#line 297 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp82_ = stmt; -#line 297 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp83_ = flag_state; -#line 297 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp84_ = search_condition_flagged_get_state (_tmp83_); -#line 297 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp85_ = _tmp84_; -#line 297 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp86_ = search_condition_flagged_state_to_string (_tmp85_); -#line 297 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp87_ = g_free; -#line 297 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp82_, 3, _tmp86_, -1, _tmp87_); -#line 298 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp88_ = res; -#line 298 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp88_ == SQLITE_OK, "res == Sqlite.OK"); -#line 300 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp89_ = stmt; -#line 300 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp89_); -#line 301 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp90_ = res; -#line 301 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp90_ != SQLITE_DONE) { -#line 2176 "SavedSearchDBTable.c" - gint _tmp91_; -#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp91_ = res; -#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_throw_error ("SavedSearchDBTable_Flagged.add", _tmp91_, &_inner_error_); -#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (flag_state); -#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2194 "SavedSearchDBTable.c" - } else { -#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (flag_state); -#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 302 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2206 "SavedSearchDBTable.c" - } - } - } -#line 283 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 283 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (flag_state); -#line 2214 "SavedSearchDBTable.c" - } else { -#line 303 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_MODIFIED)) { -#line 2218 "SavedSearchDBTable.c" - SearchConditionModified* modified_state = NULL; - SearchConditionModified* _tmp92_; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp93_; - sqlite3_stmt* _tmp94_ = NULL; - gint _tmp95_; - gint _tmp96_; - sqlite3_stmt* _tmp97_; - SavedSearchID _tmp98_; - gint64 _tmp99_; - gint _tmp100_; - sqlite3_stmt* _tmp101_; - SearchConditionModified* _tmp102_; - SearchConditionSearchType _tmp103_; - SearchConditionSearchType _tmp104_; - gchar* _tmp105_; - GDestroyNotify _tmp106_; - gint _tmp107_; - sqlite3_stmt* _tmp108_; - SearchConditionModified* _tmp109_; - SearchConditionModifiedContext _tmp110_; - SearchConditionModifiedContext _tmp111_; - gchar* _tmp112_; - GDestroyNotify _tmp113_; - gint _tmp114_; - sqlite3_stmt* _tmp115_; - SearchConditionModified* _tmp116_; - SearchConditionModifiedState _tmp117_; - SearchConditionModifiedState _tmp118_; - gchar* _tmp119_; - GDestroyNotify _tmp120_; - gint _tmp121_; - sqlite3_stmt* _tmp122_; - gint _tmp123_; -#line 304 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp92_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_MODIFIED) ? ((SearchConditionModified*) condition) : NULL); -#line 304 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - modified_state = _tmp92_; -#line 306 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp93_ = database_table_db; -#line 306 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp95_ = sqlite3_prepare_v2 (_tmp93_, "INSERT INTO SavedSearchDBTable_Modified (search_id, search_type, conte" \ -"xt, " "modified_state) VALUES (?, ?, ?, ?)", -1, &_tmp94_, NULL); -#line 306 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 306 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp94_; -#line 306 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp95_; -#line 309 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp96_ = res; -#line 309 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp96_ == SQLITE_OK, "res == Sqlite.OK"); -#line 311 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp97_ = stmt; -#line 311 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp98_ = *id; -#line 311 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp99_ = _tmp98_.id; -#line 311 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_int64 (_tmp97_, 1, _tmp99_); -#line 312 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp100_ = res; -#line 312 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp100_ == SQLITE_OK, "res == Sqlite.OK"); -#line 314 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp101_ = stmt; -#line 314 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp102_ = modified_state; -#line 314 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp103_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp102_, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 314 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp104_ = _tmp103_; -#line 314 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp105_ = search_condition_search_type_to_string (_tmp104_); -#line 314 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp106_ = g_free; -#line 314 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp101_, 2, _tmp105_, -1, _tmp106_); -#line 315 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp107_ = res; -#line 315 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp107_ == SQLITE_OK, "res == Sqlite.OK"); -#line 317 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp108_ = stmt; -#line 317 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp109_ = modified_state; -#line 317 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp110_ = search_condition_modified_get_context (_tmp109_); -#line 317 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp111_ = _tmp110_; -#line 317 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp112_ = search_condition_modified_context_to_string (_tmp111_); -#line 317 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp113_ = g_free; -#line 317 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp108_, 3, _tmp112_, -1, _tmp113_); -#line 318 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp114_ = res; -#line 318 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp114_ == SQLITE_OK, "res == Sqlite.OK"); -#line 320 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp115_ = stmt; -#line 320 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp116_ = modified_state; -#line 320 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp117_ = search_condition_modified_get_state (_tmp116_); -#line 320 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp118_ = _tmp117_; -#line 320 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp119_ = search_condition_modified_state_to_string (_tmp118_); -#line 320 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp120_ = g_free; -#line 320 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp115_, 4, _tmp119_, -1, _tmp120_); -#line 321 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp121_ = res; -#line 321 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp121_ == SQLITE_OK, "res == Sqlite.OK"); -#line 323 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp122_ = stmt; -#line 323 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp122_); -#line 324 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp123_ = res; -#line 324 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp123_ != SQLITE_DONE) { -#line 2346 "SavedSearchDBTable.c" - gint _tmp124_; -#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp124_ = res; -#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_throw_error ("SavedSearchDBTable_Modified.add", _tmp124_, &_inner_error_); -#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (modified_state); -#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2364 "SavedSearchDBTable.c" - } else { -#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (modified_state); -#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 325 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2376 "SavedSearchDBTable.c" - } - } - } -#line 303 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 303 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (modified_state); -#line 2384 "SavedSearchDBTable.c" - } else { -#line 326 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_RATING)) { -#line 2388 "SavedSearchDBTable.c" - SearchConditionRating* rating = NULL; - SearchConditionRating* _tmp125_; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp126_; - sqlite3_stmt* _tmp127_ = NULL; - gint _tmp128_; - gint _tmp129_; - sqlite3_stmt* _tmp130_; - SavedSearchID _tmp131_; - gint64 _tmp132_; - gint _tmp133_; - sqlite3_stmt* _tmp134_; - SearchConditionRating* _tmp135_; - SearchConditionSearchType _tmp136_; - SearchConditionSearchType _tmp137_; - gchar* _tmp138_; - GDestroyNotify _tmp139_; - gint _tmp140_; - sqlite3_stmt* _tmp141_; - SearchConditionRating* _tmp142_; - Rating _tmp143_; - Rating _tmp144_; - gint _tmp145_; - sqlite3_stmt* _tmp146_; - SearchConditionRating* _tmp147_; - SearchConditionRatingContext _tmp148_; - SearchConditionRatingContext _tmp149_; - gchar* _tmp150_; - GDestroyNotify _tmp151_; - gint _tmp152_; - sqlite3_stmt* _tmp153_; - gint _tmp154_; -#line 327 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp125_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_RATING) ? ((SearchConditionRating*) condition) : NULL); -#line 327 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - rating = _tmp125_; -#line 329 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp126_ = database_table_db; -#line 329 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp128_ = sqlite3_prepare_v2 (_tmp126_, "INSERT INTO SavedSearchDBTable_Rating (search_id, search_type, rating," \ -" " "context) VALUES (?, ?, ?, ?)", -1, &_tmp127_, NULL); -#line 329 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 329 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp127_; -#line 329 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp128_; -#line 332 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp129_ = res; -#line 332 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp129_ == SQLITE_OK, "res == Sqlite.OK"); -#line 334 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp130_ = stmt; -#line 334 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp131_ = *id; -#line 334 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp132_ = _tmp131_.id; -#line 334 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_int64 (_tmp130_, 1, _tmp132_); -#line 335 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp133_ = res; -#line 335 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp133_ == SQLITE_OK, "res == Sqlite.OK"); -#line 337 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp134_ = stmt; -#line 337 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp135_ = rating; -#line 337 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp136_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp135_, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 337 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp137_ = _tmp136_; -#line 337 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp138_ = search_condition_search_type_to_string (_tmp137_); -#line 337 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp139_ = g_free; -#line 337 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp134_, 2, _tmp138_, -1, _tmp139_); -#line 338 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp140_ = res; -#line 338 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp140_ == SQLITE_OK, "res == Sqlite.OK"); -#line 340 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp141_ = stmt; -#line 340 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp142_ = rating; -#line 340 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp143_ = search_condition_rating_get_rating (_tmp142_); -#line 340 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp144_ = _tmp143_; -#line 340 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_int (_tmp141_, 3, rating_serialize (_tmp144_)); -#line 341 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp145_ = res; -#line 341 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp145_ == SQLITE_OK, "res == Sqlite.OK"); -#line 343 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp146_ = stmt; -#line 343 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp147_ = rating; -#line 343 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp148_ = search_condition_rating_get_context (_tmp147_); -#line 343 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp149_ = _tmp148_; -#line 343 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp150_ = search_condition_rating_context_to_string (_tmp149_); -#line 343 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp151_ = g_free; -#line 343 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp146_, 4, _tmp150_, -1, _tmp151_); -#line 344 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp152_ = res; -#line 344 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp152_ == SQLITE_OK, "res == Sqlite.OK"); -#line 346 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp153_ = stmt; -#line 346 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp153_); -#line 347 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp154_ = res; -#line 347 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp154_ != SQLITE_DONE) { -#line 2510 "SavedSearchDBTable.c" - gint _tmp155_; -#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp155_ = res; -#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_throw_error ("SavedSearchDBTable_Rating.add", _tmp155_, &_inner_error_); -#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (rating); -#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2528 "SavedSearchDBTable.c" - } else { -#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (rating); -#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 348 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2540 "SavedSearchDBTable.c" - } - } - } -#line 326 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 326 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (rating); -#line 2548 "SavedSearchDBTable.c" - } else { -#line 349 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_DATE)) { -#line 2552 "SavedSearchDBTable.c" - SearchConditionDate* date = NULL; - SearchConditionDate* _tmp156_; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp157_; - sqlite3_stmt* _tmp158_ = NULL; - gint _tmp159_; - gint _tmp160_; - sqlite3_stmt* _tmp161_; - SavedSearchID _tmp162_; - gint64 _tmp163_; - gint _tmp164_; - sqlite3_stmt* _tmp165_; - SearchConditionDate* _tmp166_; - SearchConditionSearchType _tmp167_; - SearchConditionSearchType _tmp168_; - gchar* _tmp169_; - GDestroyNotify _tmp170_; - gint _tmp171_; - sqlite3_stmt* _tmp172_; - SearchConditionDate* _tmp173_; - SearchConditionDateContext _tmp174_; - SearchConditionDateContext _tmp175_; - gchar* _tmp176_; - GDestroyNotify _tmp177_; - gint _tmp178_; - sqlite3_stmt* _tmp179_; - SearchConditionDate* _tmp180_; - GDateTime* _tmp181_; - GDateTime* _tmp182_; - gint _tmp183_; - sqlite3_stmt* _tmp184_; - SearchConditionDate* _tmp185_; - GDateTime* _tmp186_; - GDateTime* _tmp187_; - gint _tmp188_; - sqlite3_stmt* _tmp189_; - gint _tmp190_; -#line 350 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp156_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (condition, TYPE_SEARCH_CONDITION_DATE) ? ((SearchConditionDate*) condition) : NULL); -#line 350 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - date = _tmp156_; -#line 352 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp157_ = database_table_db; -#line 352 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp159_ = sqlite3_prepare_v2 (_tmp157_, "INSERT INTO SavedSearchDBTable_Date (search_id, search_type, " "context, date_one, date_two) VALUES (?, ?, ?, ?, ?)", -1, &_tmp158_, NULL); -#line 352 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 352 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp158_; -#line 352 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp159_; -#line 355 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp160_ = res; -#line 355 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp160_ == SQLITE_OK, "res == Sqlite.OK"); -#line 357 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp161_ = stmt; -#line 357 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp162_ = *id; -#line 357 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp163_ = _tmp162_.id; -#line 357 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_int64 (_tmp161_, 1, _tmp163_); -#line 358 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp164_ = res; -#line 358 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp164_ == SQLITE_OK, "res == Sqlite.OK"); -#line 360 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp165_ = stmt; -#line 360 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp166_ = date; -#line 360 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp167_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp166_, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 360 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp168_ = _tmp167_; -#line 360 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp169_ = search_condition_search_type_to_string (_tmp168_); -#line 360 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp170_ = g_free; -#line 360 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp165_, 2, _tmp169_, -1, _tmp170_); -#line 361 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp171_ = res; -#line 361 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp171_ == SQLITE_OK, "res == Sqlite.OK"); -#line 363 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp172_ = stmt; -#line 363 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp173_ = date; -#line 363 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp174_ = search_condition_date_get_context (_tmp173_); -#line 363 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp175_ = _tmp174_; -#line 363 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp176_ = search_condition_date_context_to_string (_tmp175_); -#line 363 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp177_ = g_free; -#line 363 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp172_, 3, _tmp176_, -1, _tmp177_); -#line 364 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp178_ = res; -#line 364 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp178_ == SQLITE_OK, "res == Sqlite.OK"); -#line 366 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp179_ = stmt; -#line 366 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp180_ = date; -#line 366 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp181_ = search_condition_date_get_date_one (_tmp180_); -#line 366 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp182_ = _tmp181_; -#line 366 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_int64 (_tmp179_, 4, g_date_time_to_unix (_tmp182_)); -#line 367 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp183_ = res; -#line 367 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp183_ == SQLITE_OK, "res == Sqlite.OK"); -#line 369 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp184_ = stmt; -#line 369 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp185_ = date; -#line 369 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp186_ = search_condition_date_get_date_two (_tmp185_); -#line 369 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp187_ = _tmp186_; -#line 369 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_int64 (_tmp184_, 5, g_date_time_to_unix (_tmp187_)); -#line 370 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp188_ = res; -#line 370 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp188_ == SQLITE_OK, "res == Sqlite.OK"); -#line 372 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp189_ = stmt; -#line 372 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp189_); -#line 373 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp190_ = res; -#line 373 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp190_ != SQLITE_DONE) { -#line 2693 "SavedSearchDBTable.c" - gint _tmp191_; -#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp191_ = res; -#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_throw_error ("SavedSearchDBTable_Date.add", _tmp191_, &_inner_error_); -#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (date); -#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2711 "SavedSearchDBTable.c" - } else { -#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (date); -#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 374 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2723 "SavedSearchDBTable.c" - } - } - } -#line 349 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 349 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (date); -#line 2731 "SavedSearchDBTable.c" - } else { -#line 376 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_assert_not_reached (); -#line 2735 "SavedSearchDBTable.c" - } - } - } - } - } - } -} - - -static void -saved_search_db_table_remove_conditions_for_search_id (SavedSearchDBTable* self, - SavedSearchID* search_id, - GError** error) -{ - SavedSearchID _tmp0_; - SavedSearchID _tmp1_; - SavedSearchID _tmp2_; - SavedSearchID _tmp3_; - SavedSearchID _tmp4_; - SavedSearchID _tmp5_; - GError * _inner_error_ = NULL; -#line 381 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (IS_SAVED_SEARCH_DB_TABLE (self)); -#line 381 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (search_id != NULL); -#line 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp0_ = *search_id; -#line 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_db_table_remove_conditions_for_table (self, "SavedSearchDBTable_Text", &_tmp0_, &_inner_error_); -#line 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2773 "SavedSearchDBTable.c" - } else { -#line 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 382 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2781 "SavedSearchDBTable.c" - } - } -#line 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp1_ = *search_id; -#line 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_db_table_remove_conditions_for_table (self, "SavedSearchDBTable_MediaType", &_tmp1_, &_inner_error_); -#line 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2796 "SavedSearchDBTable.c" - } else { -#line 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 383 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2804 "SavedSearchDBTable.c" - } - } -#line 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp2_ = *search_id; -#line 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_db_table_remove_conditions_for_table (self, "SavedSearchDBTable_Flagged", &_tmp2_, &_inner_error_); -#line 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2819 "SavedSearchDBTable.c" - } else { -#line 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 384 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2827 "SavedSearchDBTable.c" - } - } -#line 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp3_ = *search_id; -#line 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_db_table_remove_conditions_for_table (self, "SavedSearchDBTable_Modified", &_tmp3_, &_inner_error_); -#line 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2842 "SavedSearchDBTable.c" - } else { -#line 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 385 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2850 "SavedSearchDBTable.c" - } - } -#line 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp4_ = *search_id; -#line 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_db_table_remove_conditions_for_table (self, "SavedSearchDBTable_Rating", &_tmp4_, &_inner_error_); -#line 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2865 "SavedSearchDBTable.c" - } else { -#line 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 386 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2873 "SavedSearchDBTable.c" - } - } -#line 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp5_ = *search_id; -#line 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_db_table_remove_conditions_for_table (self, "SavedSearchDBTable_Date", &_tmp5_, &_inner_error_); -#line 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2888 "SavedSearchDBTable.c" - } else { -#line 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 387 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2896 "SavedSearchDBTable.c" - } - } -} - - -static void -saved_search_db_table_remove_conditions_for_table (SavedSearchDBTable* self, - const gchar* table_name, - SavedSearchID* search_id, - GError** error) -{ - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - sqlite3_stmt* _tmp3_ = NULL; - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; - sqlite3_stmt* _tmp7_; - SavedSearchID _tmp8_; - gint64 _tmp9_; - gint _tmp10_; - sqlite3_stmt* _tmp11_; - gint _tmp12_; - GError * _inner_error_ = NULL; -#line 390 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (IS_SAVED_SEARCH_DB_TABLE (self)); -#line 390 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (table_name != NULL); -#line 390 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (search_id != NULL); -#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp0_ = database_table_db; -#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp1_ = g_strdup_printf ("DELETE FROM %s WHERE search_id=?", table_name); -#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp2_ = _tmp1_; -#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp4_ = sqlite3_prepare_v2 (_tmp0_, _tmp2_, -1, &_tmp3_, NULL); -#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp3_; -#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp5_ = _tmp4_; -#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_free0 (_tmp2_); -#line 393 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp5_; -#line 394 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp6_ = res; -#line 394 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp6_ == SQLITE_OK, "res == Sqlite.OK"); -#line 396 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp7_ = stmt; -#line 396 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp8_ = *search_id; -#line 396 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp9_ = _tmp8_.id; -#line 396 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_int64 (_tmp7_, 1, _tmp9_); -#line 397 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp10_ = res; -#line 397 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp10_ == SQLITE_OK, "res == Sqlite.OK"); -#line 399 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp11_ = stmt; -#line 399 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp11_); -#line 400 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp12_ = res; -#line 400 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp12_ != SQLITE_DONE) { -#line 2972 "SavedSearchDBTable.c" - gchar* _tmp13_; - gchar* _tmp14_; - gint _tmp15_; -#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp13_ = g_strdup_printf ("%s.remove", table_name); -#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp14_ = _tmp13_; -#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp15_ = res; -#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_throw_error (_tmp14_, _tmp15_, &_inner_error_); -#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_free0 (_tmp14_); -#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 2996 "SavedSearchDBTable.c" - } else { -#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 401 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 3006 "SavedSearchDBTable.c" - } - } - } -#line 390 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 3012 "SavedSearchDBTable.c" -} - - -static GeeList* -saved_search_db_table_get_conditions_for_id (SavedSearchDBTable* self, - SavedSearchID* search_id, - GError** error) -{ - GeeList* result = NULL; - GeeList* list = NULL; - GeeArrayList* _tmp0_; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp1_; - sqlite3_stmt* _tmp2_ = NULL; - gint _tmp3_; - gint _tmp4_; - sqlite3_stmt* _tmp5_; - SavedSearchID _tmp6_; - gint64 _tmp7_; - gint _tmp8_; - sqlite3* _tmp23_; - sqlite3_stmt* _tmp24_ = NULL; - gint _tmp25_; - gint _tmp26_; - sqlite3_stmt* _tmp27_; - SavedSearchID _tmp28_; - gint64 _tmp29_; - gint _tmp30_; - sqlite3* _tmp45_; - sqlite3_stmt* _tmp46_ = NULL; - gint _tmp47_; - gint _tmp48_; - sqlite3_stmt* _tmp49_; - SavedSearchID _tmp50_; - gint64 _tmp51_; - gint _tmp52_; - sqlite3* _tmp65_; - sqlite3_stmt* _tmp66_ = NULL; - gint _tmp67_; - gint _tmp68_; - sqlite3_stmt* _tmp69_; - SavedSearchID _tmp70_; - gint64 _tmp71_; - gint _tmp72_; - sqlite3* _tmp87_; - sqlite3_stmt* _tmp88_ = NULL; - gint _tmp89_; - gint _tmp90_; - sqlite3_stmt* _tmp91_; - SavedSearchID _tmp92_; - gint64 _tmp93_; - gint _tmp94_; - sqlite3* _tmp108_; - sqlite3_stmt* _tmp109_ = NULL; - gint _tmp110_; - gint _tmp111_; - sqlite3_stmt* _tmp112_; - SavedSearchID _tmp113_; - gint64 _tmp114_; - gint _tmp115_; - GError * _inner_error_ = NULL; -#line 405 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_val_if_fail (IS_SAVED_SEARCH_DB_TABLE (self), NULL); -#line 405 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_val_if_fail (search_id != NULL, NULL); -#line 407 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp0_ = gee_array_list_new (TYPE_SEARCH_CONDITION, (GBoxedCopyFunc) search_condition_ref, (GDestroyNotify) search_condition_unref, NULL, NULL, NULL); -#line 407 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - list = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_LIST, GeeList); -#line 412 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp1_ = database_table_db; -#line 412 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp3_ = sqlite3_prepare_v2 (_tmp1_, "SELECT search_type, context, text FROM SavedSearchDBTable_Text " "WHERE search_id=?", -1, &_tmp2_, NULL); -#line 412 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 412 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp2_; -#line 412 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp3_; -#line 415 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp4_ = res; -#line 415 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp4_ == SQLITE_OK, "res == Sqlite.OK"); -#line 417 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp5_ = stmt; -#line 417 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp6_ = *search_id; -#line 417 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp7_ = _tmp6_.id; -#line 417 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_int64 (_tmp5_, 1, _tmp7_); -#line 418 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp8_ = res; -#line 418 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK"); -#line 3109 "SavedSearchDBTable.c" - { - gboolean _tmp9_ = FALSE; -#line 420 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp9_ = TRUE; -#line 420 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - while (TRUE) { -#line 3116 "SavedSearchDBTable.c" - sqlite3_stmt* _tmp10_; - gint _tmp11_; - SearchConditionText* condition = NULL; - sqlite3_stmt* _tmp14_; - const gchar* _tmp15_; - sqlite3_stmt* _tmp16_; - const gchar* _tmp17_; - sqlite3_stmt* _tmp18_; - const gchar* _tmp19_; - SearchConditionText* _tmp20_; - GeeList* _tmp21_; - SearchConditionText* _tmp22_; -#line 420 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (!_tmp9_) { -#line 3131 "SavedSearchDBTable.c" - } -#line 420 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp9_ = FALSE; -#line 421 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp10_ = stmt; -#line 421 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp10_); -#line 422 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp11_ = res; -#line 422 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp11_ == SQLITE_DONE) { -#line 423 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - break; -#line 3145 "SavedSearchDBTable.c" - } else { - gint _tmp12_; -#line 424 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp12_ = res; -#line 424 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp12_ != SQLITE_ROW) { -#line 3152 "SavedSearchDBTable.c" - gint _tmp13_; -#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp13_ = res; -#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_throw_error ("SavedSearchDBTable_Text.get_all_rows", _tmp13_, &_inner_error_); -#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (list); -#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 3170 "SavedSearchDBTable.c" - } else { -#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (list); -#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 425 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 3182 "SavedSearchDBTable.c" - } - } - } - } -#line 427 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp14_ = stmt; -#line 427 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp15_ = sqlite3_column_text (_tmp14_, 0); -#line 427 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp16_ = stmt; -#line 427 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp17_ = sqlite3_column_text (_tmp16_, 2); -#line 427 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp18_ = stmt; -#line 427 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp19_ = sqlite3_column_text (_tmp18_, 1); -#line 427 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp20_ = search_condition_text_new (search_condition_search_type_from_string (_tmp15_), _tmp17_, search_condition_text_context_from_string (_tmp19_)); -#line 427 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - condition = _tmp20_; -#line 432 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp21_ = list; -#line 432 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp22_ = condition; -#line 432 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 420 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (condition); -#line 3211 "SavedSearchDBTable.c" - } - } -#line 436 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp23_ = database_table_db; -#line 436 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp25_ = sqlite3_prepare_v2 (_tmp23_, "SELECT search_type, context, type FROM SavedSearchDBTable_MediaType " "WHERE search_id=?", -1, &_tmp24_, NULL); -#line 436 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 436 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp24_; -#line 436 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp25_; -#line 439 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp26_ = res; -#line 439 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp26_ == SQLITE_OK, "res == Sqlite.OK"); -#line 441 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp27_ = stmt; -#line 441 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp28_ = *search_id; -#line 441 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp29_ = _tmp28_.id; -#line 441 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_int64 (_tmp27_, 1, _tmp29_); -#line 442 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp30_ = res; -#line 442 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp30_ == SQLITE_OK, "res == Sqlite.OK"); -#line 3240 "SavedSearchDBTable.c" - { - gboolean _tmp31_ = FALSE; -#line 444 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp31_ = TRUE; -#line 444 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - while (TRUE) { -#line 3247 "SavedSearchDBTable.c" - sqlite3_stmt* _tmp32_; - gint _tmp33_; - SearchConditionMediaType* condition = NULL; - sqlite3_stmt* _tmp36_; - const gchar* _tmp37_; - sqlite3_stmt* _tmp38_; - const gchar* _tmp39_; - sqlite3_stmt* _tmp40_; - const gchar* _tmp41_; - SearchConditionMediaType* _tmp42_; - GeeList* _tmp43_; - SearchConditionMediaType* _tmp44_; -#line 444 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (!_tmp31_) { -#line 3262 "SavedSearchDBTable.c" - } -#line 444 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp31_ = FALSE; -#line 445 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp32_ = stmt; -#line 445 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp32_); -#line 446 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp33_ = res; -#line 446 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp33_ == SQLITE_DONE) { -#line 447 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - break; -#line 3276 "SavedSearchDBTable.c" - } else { - gint _tmp34_; -#line 448 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp34_ = res; -#line 448 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp34_ != SQLITE_ROW) { -#line 3283 "SavedSearchDBTable.c" - gint _tmp35_; -#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp35_ = res; -#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_throw_error ("SavedSearchDBTable_MediaType.get_all_rows", _tmp35_, &_inner_error_); -#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (list); -#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 3301 "SavedSearchDBTable.c" - } else { -#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (list); -#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 449 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 3313 "SavedSearchDBTable.c" - } - } - } - } -#line 451 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp36_ = stmt; -#line 451 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp37_ = sqlite3_column_text (_tmp36_, 0); -#line 451 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp38_ = stmt; -#line 451 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp39_ = sqlite3_column_text (_tmp38_, 1); -#line 451 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp40_ = stmt; -#line 451 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp41_ = sqlite3_column_text (_tmp40_, 2); -#line 451 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp42_ = search_condition_media_type_new (search_condition_search_type_from_string (_tmp37_), search_condition_media_type_context_from_string (_tmp39_), search_condition_media_type_media_type_from_string (_tmp41_)); -#line 451 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - condition = _tmp42_; -#line 456 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp43_ = list; -#line 456 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp44_ = condition; -#line 456 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 444 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (condition); -#line 3342 "SavedSearchDBTable.c" - } - } -#line 460 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp45_ = database_table_db; -#line 460 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp47_ = sqlite3_prepare_v2 (_tmp45_, "SELECT search_type, flag_state FROM SavedSearchDBTable_Flagged " "WHERE search_id=?", -1, &_tmp46_, NULL); -#line 460 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 460 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp46_; -#line 460 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp47_; -#line 463 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp48_ = res; -#line 463 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp48_ == SQLITE_OK, "res == Sqlite.OK"); -#line 465 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp49_ = stmt; -#line 465 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp50_ = *search_id; -#line 465 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp51_ = _tmp50_.id; -#line 465 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_int64 (_tmp49_, 1, _tmp51_); -#line 466 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp52_ = res; -#line 466 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp52_ == SQLITE_OK, "res == Sqlite.OK"); -#line 3371 "SavedSearchDBTable.c" - { - gboolean _tmp53_ = FALSE; -#line 468 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp53_ = TRUE; -#line 468 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - while (TRUE) { -#line 3378 "SavedSearchDBTable.c" - sqlite3_stmt* _tmp54_; - gint _tmp55_; - SearchConditionFlagged* condition = NULL; - sqlite3_stmt* _tmp58_; - const gchar* _tmp59_; - sqlite3_stmt* _tmp60_; - const gchar* _tmp61_; - SearchConditionFlagged* _tmp62_; - GeeList* _tmp63_; - SearchConditionFlagged* _tmp64_; -#line 468 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (!_tmp53_) { -#line 3391 "SavedSearchDBTable.c" - } -#line 468 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp53_ = FALSE; -#line 469 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp54_ = stmt; -#line 469 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp54_); -#line 470 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp55_ = res; -#line 470 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp55_ == SQLITE_DONE) { -#line 471 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - break; -#line 3405 "SavedSearchDBTable.c" - } else { - gint _tmp56_; -#line 472 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp56_ = res; -#line 472 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp56_ != SQLITE_ROW) { -#line 3412 "SavedSearchDBTable.c" - gint _tmp57_; -#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp57_ = res; -#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_throw_error ("SavedSearchDBTable_Flagged.get_all_rows", _tmp57_, &_inner_error_); -#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (list); -#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 3430 "SavedSearchDBTable.c" - } else { -#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (list); -#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 473 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 3442 "SavedSearchDBTable.c" - } - } - } - } -#line 475 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp58_ = stmt; -#line 475 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp59_ = sqlite3_column_text (_tmp58_, 0); -#line 475 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp60_ = stmt; -#line 475 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp61_ = sqlite3_column_text (_tmp60_, 1); -#line 475 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp62_ = search_condition_flagged_new (search_condition_search_type_from_string (_tmp59_), search_condition_flagged_state_from_string (_tmp61_)); -#line 475 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - condition = _tmp62_; -#line 479 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp63_ = list; -#line 479 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp64_ = condition; -#line 479 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 468 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (condition); -#line 3467 "SavedSearchDBTable.c" - } - } -#line 483 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp65_ = database_table_db; -#line 483 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp67_ = sqlite3_prepare_v2 (_tmp65_, "SELECT search_type, context, modified_state FROM SavedSearchDBTable_Mo" \ -"dified " "WHERE search_id=?", -1, &_tmp66_, NULL); -#line 483 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 483 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp66_; -#line 483 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp67_; -#line 486 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp68_ = res; -#line 486 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp68_ == SQLITE_OK, "res == Sqlite.OK"); -#line 488 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp69_ = stmt; -#line 488 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp70_ = *search_id; -#line 488 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp71_ = _tmp70_.id; -#line 488 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_int64 (_tmp69_, 1, _tmp71_); -#line 489 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp72_ = res; -#line 489 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp72_ == SQLITE_OK, "res == Sqlite.OK"); -#line 3496 "SavedSearchDBTable.c" - { - gboolean _tmp73_ = FALSE; -#line 491 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp73_ = TRUE; -#line 491 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - while (TRUE) { -#line 3503 "SavedSearchDBTable.c" - sqlite3_stmt* _tmp74_; - gint _tmp75_; - SearchConditionModified* condition = NULL; - sqlite3_stmt* _tmp78_; - const gchar* _tmp79_; - sqlite3_stmt* _tmp80_; - const gchar* _tmp81_; - sqlite3_stmt* _tmp82_; - const gchar* _tmp83_; - SearchConditionModified* _tmp84_; - GeeList* _tmp85_; - SearchConditionModified* _tmp86_; -#line 491 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (!_tmp73_) { -#line 3518 "SavedSearchDBTable.c" - } -#line 491 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp73_ = FALSE; -#line 492 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp74_ = stmt; -#line 492 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp74_); -#line 493 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp75_ = res; -#line 493 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp75_ == SQLITE_DONE) { -#line 494 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - break; -#line 3532 "SavedSearchDBTable.c" - } else { - gint _tmp76_; -#line 495 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp76_ = res; -#line 495 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp76_ != SQLITE_ROW) { -#line 3539 "SavedSearchDBTable.c" - gint _tmp77_; -#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp77_ = res; -#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_throw_error ("SavedSearchDBTable_Modified.get_all_rows", _tmp77_, &_inner_error_); -#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (list); -#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 3557 "SavedSearchDBTable.c" - } else { -#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (list); -#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 496 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 3569 "SavedSearchDBTable.c" - } - } - } - } -#line 498 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp78_ = stmt; -#line 498 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp79_ = sqlite3_column_text (_tmp78_, 0); -#line 498 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp80_ = stmt; -#line 498 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp81_ = sqlite3_column_text (_tmp80_, 1); -#line 498 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp82_ = stmt; -#line 498 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp83_ = sqlite3_column_text (_tmp82_, 2); -#line 498 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp84_ = search_condition_modified_new (search_condition_search_type_from_string (_tmp79_), search_condition_modified_context_from_string (_tmp81_), search_condition_modified_state_from_string (_tmp83_)); -#line 498 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - condition = _tmp84_; -#line 503 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp85_ = list; -#line 503 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp86_ = condition; -#line 503 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp86_, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 491 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (condition); -#line 3598 "SavedSearchDBTable.c" - } - } -#line 507 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp87_ = database_table_db; -#line 507 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp89_ = sqlite3_prepare_v2 (_tmp87_, "SELECT search_type, rating, context FROM SavedSearchDBTable_Rating " "WHERE search_id=?", -1, &_tmp88_, NULL); -#line 507 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 507 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp88_; -#line 507 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp89_; -#line 510 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp90_ = res; -#line 510 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp90_ == SQLITE_OK, "res == Sqlite.OK"); -#line 512 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp91_ = stmt; -#line 512 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp92_ = *search_id; -#line 512 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp93_ = _tmp92_.id; -#line 512 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_int64 (_tmp91_, 1, _tmp93_); -#line 513 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp94_ = res; -#line 513 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp94_ == SQLITE_OK, "res == Sqlite.OK"); -#line 3627 "SavedSearchDBTable.c" - { - gboolean _tmp95_ = FALSE; -#line 515 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp95_ = TRUE; -#line 515 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - while (TRUE) { -#line 3634 "SavedSearchDBTable.c" - sqlite3_stmt* _tmp96_; - gint _tmp97_; - SearchConditionRating* condition = NULL; - sqlite3_stmt* _tmp100_; - const gchar* _tmp101_; - sqlite3_stmt* _tmp102_; - sqlite3_stmt* _tmp103_; - const gchar* _tmp104_; - SearchConditionRating* _tmp105_; - GeeList* _tmp106_; - SearchConditionRating* _tmp107_; -#line 515 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (!_tmp95_) { -#line 3648 "SavedSearchDBTable.c" - } -#line 515 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp95_ = FALSE; -#line 516 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp96_ = stmt; -#line 516 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp96_); -#line 517 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp97_ = res; -#line 517 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp97_ == SQLITE_DONE) { -#line 518 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - break; -#line 3662 "SavedSearchDBTable.c" - } else { - gint _tmp98_; -#line 519 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp98_ = res; -#line 519 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp98_ != SQLITE_ROW) { -#line 3669 "SavedSearchDBTable.c" - gint _tmp99_; -#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp99_ = res; -#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_throw_error ("SavedSearchDBTable_Rating.get_all_rows", _tmp99_, &_inner_error_); -#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (list); -#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 3687 "SavedSearchDBTable.c" - } else { -#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (list); -#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 520 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 3699 "SavedSearchDBTable.c" - } - } - } - } -#line 522 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp100_ = stmt; -#line 522 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp101_ = sqlite3_column_text (_tmp100_, 0); -#line 522 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp102_ = stmt; -#line 522 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp103_ = stmt; -#line 522 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp104_ = sqlite3_column_text (_tmp103_, 2); -#line 522 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp105_ = search_condition_rating_new (search_condition_search_type_from_string (_tmp101_), rating_unserialize (sqlite3_column_int (_tmp102_, 1)), search_condition_rating_context_from_string (_tmp104_)); -#line 522 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - condition = _tmp105_; -#line 527 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp106_ = list; -#line 527 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp107_ = condition; -#line 527 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp106_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp107_, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 515 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (condition); -#line 3726 "SavedSearchDBTable.c" - } - } -#line 531 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp108_ = database_table_db; -#line 531 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp110_ = sqlite3_prepare_v2 (_tmp108_, "SELECT search_type, context, date_one, date_two FROM SavedSearchDBTabl" \ -"e_Date " "WHERE search_id=?", -1, &_tmp109_, NULL); -#line 531 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 531 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp109_; -#line 531 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp110_; -#line 534 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp111_ = res; -#line 534 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp111_ == SQLITE_OK, "res == Sqlite.OK"); -#line 536 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp112_ = stmt; -#line 536 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp113_ = *search_id; -#line 536 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp114_ = _tmp113_.id; -#line 536 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_int64 (_tmp112_, 1, _tmp114_); -#line 537 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp115_ = res; -#line 537 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp115_ == SQLITE_OK, "res == Sqlite.OK"); -#line 3755 "SavedSearchDBTable.c" - { - gboolean _tmp116_ = FALSE; -#line 539 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp116_ = TRUE; -#line 539 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - while (TRUE) { -#line 3762 "SavedSearchDBTable.c" - sqlite3_stmt* _tmp117_; - gint _tmp118_; - SearchConditionDate* condition = NULL; - sqlite3_stmt* _tmp121_; - const gchar* _tmp122_; - sqlite3_stmt* _tmp123_; - const gchar* _tmp124_; - sqlite3_stmt* _tmp125_; - GDateTime* _tmp126_; - GDateTime* _tmp127_; - sqlite3_stmt* _tmp128_; - GDateTime* _tmp129_; - GDateTime* _tmp130_; - SearchConditionDate* _tmp131_; - SearchConditionDate* _tmp132_; - GeeList* _tmp133_; - SearchConditionDate* _tmp134_; -#line 539 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (!_tmp116_) { -#line 3782 "SavedSearchDBTable.c" - } -#line 539 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp116_ = FALSE; -#line 540 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp117_ = stmt; -#line 540 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp117_); -#line 541 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp118_ = res; -#line 541 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp118_ == SQLITE_DONE) { -#line 542 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - break; -#line 3796 "SavedSearchDBTable.c" - } else { - gint _tmp119_; -#line 543 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp119_ = res; -#line 543 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp119_ != SQLITE_ROW) { -#line 3803 "SavedSearchDBTable.c" - gint _tmp120_; -#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp120_ = res; -#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_throw_error ("SavedSearchDBTable_Date.get_all_rows", _tmp120_, &_inner_error_); -#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (list); -#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 3821 "SavedSearchDBTable.c" - } else { -#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (list); -#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 544 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 3833 "SavedSearchDBTable.c" - } - } - } - } -#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp121_ = stmt; -#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp122_ = sqlite3_column_text (_tmp121_, 0); -#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp123_ = stmt; -#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp124_ = sqlite3_column_text (_tmp123_, 1); -#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp125_ = stmt; -#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp126_ = g_date_time_new_from_unix_local (sqlite3_column_int64 (_tmp125_, 2)); -#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp127_ = _tmp126_; -#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp128_ = stmt; -#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp129_ = g_date_time_new_from_unix_local (sqlite3_column_int64 (_tmp128_, 3)); -#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp130_ = _tmp129_; -#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp131_ = search_condition_date_new (search_condition_search_type_from_string (_tmp122_), search_condition_date_context_from_string (_tmp124_), _tmp127_, _tmp130_); -#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp132_ = _tmp131_; -#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_date_time_unref0 (_tmp130_); -#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_date_time_unref0 (_tmp127_); -#line 546 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - condition = _tmp132_; -#line 551 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp133_ = list; -#line 551 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp134_ = condition; -#line 551 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp133_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp134_, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 539 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (condition); -#line 3876 "SavedSearchDBTable.c" - } - } -#line 554 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - result = list; -#line 554 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 554 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return result; -#line 3885 "SavedSearchDBTable.c" -} - - -void -saved_search_db_table_create_from_row (SavedSearchDBTable* self, - SavedSearchRow* row, - SavedSearchID* result, - GError** error) -{ - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - GDestroyNotify _tmp7_; - gint _tmp8_; - sqlite3_stmt* _tmp9_; - SearchOperator _tmp10_; - gchar* _tmp11_; - GDestroyNotify _tmp12_; - gint _tmp13_; - sqlite3_stmt* _tmp14_; - gint _tmp15_; - SavedSearchID search_id = {0}; - sqlite3* _tmp17_; - GError * _inner_error_ = NULL; -#line 558 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (IS_SAVED_SEARCH_DB_TABLE (self)); -#line 558 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (IS_SAVED_SEARCH_ROW (row)); -#line 560 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp0_ = database_table_db; -#line 560 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO SavedSearchDBTable (name, operator) VALUES (?, ?)", -1, &_tmp1_, NULL); -#line 560 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 560 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp1_; -#line 560 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp2_; -#line 562 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp3_ = res; -#line 562 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 564 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp4_ = stmt; -#line 564 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp5_ = row->name; -#line 564 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 564 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp7_ = g_free; -#line 564 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp4_, 1, _tmp6_, -1, _tmp7_); -#line 565 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp8_ = res; -#line 565 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK"); -#line 566 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp9_ = stmt; -#line 566 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp10_ = row->operator; -#line 566 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp11_ = search_operator_to_string (_tmp10_); -#line 566 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp12_ = g_free; -#line 566 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_text (_tmp9_, 2, _tmp11_, -1, _tmp12_); -#line 567 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp13_ = res; -#line 567 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK"); -#line 569 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp14_ = stmt; -#line 569 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp14_); -#line 570 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp15_ = res; -#line 570 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp15_ != SQLITE_DONE) { -#line 3970 "SavedSearchDBTable.c" - gint _tmp16_; -#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp16_ = res; -#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_throw_error ("SavedSearchDBTable.create_from_row", _tmp16_, &_inner_error_); -#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 3986 "SavedSearchDBTable.c" - } else { -#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 571 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 3996 "SavedSearchDBTable.c" - } - } - } -#line 573 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp17_ = database_table_db; -#line 573 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_id_init (&search_id, sqlite3_last_insert_rowid (_tmp17_)); -#line 4004 "SavedSearchDBTable.c" - { - GeeList* _sc_list = NULL; - GeeList* _tmp18_; - GeeList* _tmp19_; - gint _sc_size = 0; - GeeList* _tmp20_; - gint _tmp21_; - gint _tmp22_; - gint _sc_index = 0; -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp18_ = row->conditions; -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp19_ = _g_object_ref0 (_tmp18_); -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sc_list = _tmp19_; -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp20_ = _sc_list; -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp21_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp22_ = _tmp21_; -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sc_size = _tmp22_; -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sc_index = -1; -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - while (TRUE) { -#line 4032 "SavedSearchDBTable.c" - gint _tmp23_; - gint _tmp24_; - gint _tmp25_; - SearchCondition* sc = NULL; - GeeList* _tmp26_; - gint _tmp27_; - gpointer _tmp28_; - SavedSearchID _tmp29_; - SearchCondition* _tmp30_; -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp23_ = _sc_index; -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sc_index = _tmp23_ + 1; -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp24_ = _sc_index; -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp25_ = _sc_size; -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (!(_tmp24_ < _tmp25_)) { -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - break; -#line 4054 "SavedSearchDBTable.c" - } -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp26_ = _sc_list; -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp27_ = _sc_index; -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp28_ = gee_list_get (_tmp26_, _tmp27_); -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - sc = (SearchCondition*) _tmp28_; -#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp29_ = search_id; -#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp30_ = sc; -#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_db_table_add_condition (self, &_tmp29_, _tmp30_, &_inner_error_); -#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (sc); -#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (_sc_list); -#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 4084 "SavedSearchDBTable.c" - } else { -#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (sc); -#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (_sc_list); -#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 576 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 4098 "SavedSearchDBTable.c" - } - } -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _search_condition_unref0 (sc); -#line 4103 "SavedSearchDBTable.c" - } -#line 575 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (_sc_list); -#line 4107 "SavedSearchDBTable.c" - } -#line 579 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - *result = search_id; -#line 579 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 579 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 4115 "SavedSearchDBTable.c" -} - - -void -saved_search_db_table_remove (SavedSearchDBTable* self, - SavedSearchID* search_id, - GError** error) -{ - SavedSearchID _tmp0_; - SavedSearchID _tmp1_; - gint64 _tmp2_; - GError * _inner_error_ = NULL; -#line 582 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (IS_SAVED_SEARCH_DB_TABLE (self)); -#line 582 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (search_id != NULL); -#line 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp0_ = *search_id; -#line 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_db_table_remove_conditions_for_search_id (self, &_tmp0_, &_inner_error_); -#line 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 4144 "SavedSearchDBTable.c" - } else { -#line 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 583 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 4152 "SavedSearchDBTable.c" - } - } -#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp1_ = *search_id; -#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp2_ = _tmp1_.id; -#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_delete_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, &_inner_error_); -#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 4169 "SavedSearchDBTable.c" - } else { -#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 584 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 4177 "SavedSearchDBTable.c" - } - } -} - - -SavedSearchRow* -saved_search_db_table_get_row (SavedSearchDBTable* self, - SavedSearchID* search_id, - GError** error) -{ - SavedSearchRow* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - SavedSearchID _tmp5_; - gint64 _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - gint _tmp9_; - SavedSearchRow* row = NULL; - SavedSearchRow* _tmp12_; - SavedSearchRow* _tmp13_; - SavedSearchID _tmp14_; - SavedSearchRow* _tmp15_; - sqlite3_stmt* _tmp16_; - const gchar* _tmp17_; - gchar* _tmp18_; - SavedSearchRow* _tmp19_; - sqlite3_stmt* _tmp20_; - const gchar* _tmp21_; - GError * _inner_error_ = NULL; -#line 587 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_val_if_fail (IS_SAVED_SEARCH_DB_TABLE (self), NULL); -#line 587 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_val_if_fail (search_id != NULL, NULL); -#line 589 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp0_ = database_table_db; -#line 589 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT name, operator FROM SavedSearchDBTable WHERE id=?", -1, &_tmp1_, NULL); -#line 589 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 589 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp1_; -#line 589 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp2_; -#line 591 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp3_ = res; -#line 591 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 593 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp4_ = stmt; -#line 593 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp5_ = *search_id; -#line 593 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp6_ = _tmp5_.id; -#line 593 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_); -#line 594 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp7_ = res; -#line 594 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 596 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp8_ = stmt; -#line 596 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp8_); -#line 597 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp9_ = res; -#line 597 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp9_ == SQLITE_DONE) { -#line 598 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - result = NULL; -#line 598 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 598 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return result; -#line 4257 "SavedSearchDBTable.c" - } else { - gint _tmp10_; -#line 599 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp10_ = res; -#line 599 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp10_ != SQLITE_ROW) { -#line 4264 "SavedSearchDBTable.c" - gint _tmp11_; -#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp11_ = res; -#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_throw_error ("SavedSearchDBTable.get_row", _tmp11_, &_inner_error_); -#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 4280 "SavedSearchDBTable.c" - } else { -#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 600 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 4290 "SavedSearchDBTable.c" - } - } - } - } -#line 602 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp12_ = saved_search_row_new (); -#line 602 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - row = _tmp12_; -#line 603 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp13_ = row; -#line 603 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp14_ = *search_id; -#line 603 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp13_->search_id = _tmp14_; -#line 604 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp15_ = row; -#line 604 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp16_ = stmt; -#line 604 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp17_ = sqlite3_column_text (_tmp16_, 0); -#line 604 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp18_ = g_strdup (_tmp17_); -#line 604 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_free0 (_tmp15_->name); -#line 604 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp15_->name = _tmp18_; -#line 605 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp19_ = row; -#line 605 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp20_ = stmt; -#line 605 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp21_ = sqlite3_column_text (_tmp20_, 1); -#line 605 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp19_->operator = search_operator_from_string (_tmp21_); -#line 607 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - result = row; -#line 607 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 607 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return result; -#line 4331 "SavedSearchDBTable.c" -} - - -GeeList* -saved_search_db_table_get_all_rows (SavedSearchDBTable* self, - GError** error) -{ - GeeList* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - GeeList* rows = NULL; - GeeArrayList* _tmp4_; - GError * _inner_error_ = NULL; -#line 610 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_val_if_fail (IS_SAVED_SEARCH_DB_TABLE (self), NULL); -#line 612 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp0_ = database_table_db; -#line 612 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id, name, operator FROM SavedSearchDBTable", -1, &_tmp1_, NULL); -#line 612 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 612 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - stmt = _tmp1_; -#line 612 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = _tmp2_; -#line 614 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp3_ = res; -#line 614 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 616 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp4_ = gee_array_list_new (TYPE_SAVED_SEARCH_ROW, (GBoxedCopyFunc) saved_search_row_ref, (GDestroyNotify) saved_search_row_unref, NULL, NULL, NULL); -#line 616 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - rows = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_LIST, GeeList); -#line 4369 "SavedSearchDBTable.c" - { - gboolean _tmp5_ = FALSE; -#line 618 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp5_ = TRUE; -#line 618 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - while (TRUE) { -#line 4376 "SavedSearchDBTable.c" - sqlite3_stmt* _tmp6_; - gint _tmp7_; - SavedSearchRow* row = NULL; - SavedSearchRow* _tmp10_; - SavedSearchRow* _tmp11_; - sqlite3_stmt* _tmp12_; - SavedSearchRow* _tmp13_; - sqlite3_stmt* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; - SavedSearchRow* _tmp17_; - sqlite3_stmt* _tmp18_; - const gchar* _tmp19_; - GeeList* _tmp20_ = NULL; - SavedSearchRow* _tmp21_; - SavedSearchID _tmp22_; - GeeList* _tmp23_; - SavedSearchRow* _tmp24_; - GeeList* _tmp25_; - GeeList* _tmp26_; - SavedSearchRow* _tmp27_; -#line 618 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (!_tmp5_) { -#line 4400 "SavedSearchDBTable.c" - } -#line 618 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp5_ = FALSE; -#line 619 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp6_ = stmt; -#line 619 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - res = sqlite3_step (_tmp6_); -#line 620 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp7_ = res; -#line 620 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp7_ == SQLITE_DONE) { -#line 621 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - break; -#line 4414 "SavedSearchDBTable.c" - } else { - gint _tmp8_; -#line 622 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp8_ = res; -#line 622 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_tmp8_ != SQLITE_ROW) { -#line 4421 "SavedSearchDBTable.c" - gint _tmp9_; -#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp9_ = res; -#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_throw_error ("SavedSearchDBTable.get_all_rows", _tmp9_, &_inner_error_); -#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (rows); -#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 4439 "SavedSearchDBTable.c" - } else { -#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (rows); -#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 623 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 4451 "SavedSearchDBTable.c" - } - } - } - } -#line 625 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp10_ = saved_search_row_new (); -#line 625 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - row = _tmp10_; -#line 626 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp11_ = row; -#line 626 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp12_ = stmt; -#line 626 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_id_init (&_tmp11_->search_id, sqlite3_column_int64 (_tmp12_, 0)); -#line 627 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp13_ = row; -#line 627 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp14_ = stmt; -#line 627 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp15_ = sqlite3_column_text (_tmp14_, 1); -#line 627 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp16_ = g_strdup (_tmp15_); -#line 627 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_free0 (_tmp13_->name); -#line 627 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp13_->name = _tmp16_; -#line 628 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp17_ = row; -#line 628 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp18_ = stmt; -#line 628 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp19_ = sqlite3_column_text (_tmp18_, 2); -#line 628 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp17_->operator = search_operator_from_string (_tmp19_); -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp21_ = row; -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp22_ = _tmp21_->search_id; -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp23_ = saved_search_db_table_get_conditions_for_id (self, &_tmp22_, &_inner_error_); -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp20_ = _tmp23_; -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _saved_search_row_unref0 (row); -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (rows); -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 4508 "SavedSearchDBTable.c" - } else { -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _saved_search_row_unref0 (row); -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (rows); -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return NULL; -#line 4522 "SavedSearchDBTable.c" - } - } -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp24_ = row; -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp25_ = _tmp20_; -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp20_ = NULL; -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (_tmp24_->conditions); -#line 629 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp24_->conditions = _tmp25_; -#line 631 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp26_ = rows; -#line 631 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp27_ = row; -#line 631 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection), _tmp27_); -#line 618 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _g_object_unref0 (_tmp20_); -#line 618 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _saved_search_row_unref0 (row); -#line 4545 "SavedSearchDBTable.c" - } - } -#line 634 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - result = rows; -#line 634 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _sqlite3_finalize0 (stmt); -#line 634 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return result; -#line 4554 "SavedSearchDBTable.c" -} - - -void -saved_search_db_table_rename (SavedSearchDBTable* self, - SavedSearchID* search_id, - const gchar* new_name, - GError** error) -{ - SavedSearchID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 637 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (IS_SAVED_SEARCH_DB_TABLE (self)); -#line 637 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (search_id != NULL); -#line 637 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_return_if_fail (new_name != NULL); -#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp0_ = *search_id; -#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - _tmp1_ = _tmp0_.id; -#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "name", new_name, &_inner_error_); -#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_propagate_error (error, _inner_error_); -#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 4587 "SavedSearchDBTable.c" - } else { -#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - g_clear_error (&_inner_error_); -#line 638 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - return; -#line 4595 "SavedSearchDBTable.c" - } - } -} - - -static void -saved_search_db_table_class_init (SavedSearchDBTableClass * klass) -{ -#line 33 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - saved_search_db_table_parent_class = g_type_class_peek_parent (klass); -#line 33 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - ((DatabaseTableClass *) klass)->finalize = saved_search_db_table_finalize; -#line 4608 "SavedSearchDBTable.c" -} - - -static void -saved_search_db_table_instance_init (SavedSearchDBTable * self) -{ -} - - -static void -saved_search_db_table_finalize (DatabaseTable * obj) -{ - SavedSearchDBTable * self; -#line 33 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SAVED_SEARCH_DB_TABLE, SavedSearchDBTable); -#line 33 "/home/jens/Source/shotwell/src/db/SavedSearchDBTable.vala" - DATABASE_TABLE_CLASS (saved_search_db_table_parent_class)->finalize (obj); -#line 4626 "SavedSearchDBTable.c" -} - - -GType -saved_search_db_table_get_type (void) -{ - static volatile gsize saved_search_db_table_type_id__volatile = 0; - if (g_once_init_enter (&saved_search_db_table_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDBTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_db_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDBTable), 0, (GInstanceInitFunc) saved_search_db_table_instance_init, NULL }; - GType saved_search_db_table_type_id; - saved_search_db_table_type_id = g_type_register_static (TYPE_DATABASE_TABLE, "SavedSearchDBTable", &g_define_type_info, 0); - g_once_init_leave (&saved_search_db_table_type_id__volatile, saved_search_db_table_type_id); - } - return saved_search_db_table_type_id__volatile; -} - - - diff --git a/src/db/TagTable.c b/src/db/TagTable.c deleted file mode 100644 index b1c77a4..0000000 --- a/src/db/TagTable.c +++ /dev/null @@ -1,2341 +0,0 @@ -/* TagTable.c generated by valac 0.40.4, the Vala compiler - * generated from TagTable.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_TAG_ID (tag_id_get_type ()) -typedef struct _TagID TagID; - -#define TYPE_TAG_ROW (tag_row_get_type ()) -#define TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_ROW, TagRow)) -#define TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_ROW, TagRowClass)) -#define IS_TAG_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_ROW)) -#define IS_TAG_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_ROW)) -#define TAG_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_ROW, TagRowClass)) - -typedef struct _TagRow TagRow; -typedef struct _TagRowClass TagRowClass; -typedef struct _TagRowPrivate TagRowPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _ParamSpecTagRow ParamSpecTagRow; - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; -typedef struct _DatabaseTablePrivate DatabaseTablePrivate; - -#define TYPE_TAG_TABLE (tag_table_get_type ()) -#define TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_TABLE, TagTable)) -#define TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_TABLE, TagTableClass)) -#define IS_TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_TABLE)) -#define IS_TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_TABLE)) -#define TAG_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_TABLE, TagTableClass)) - -typedef struct _TagTable TagTable; -typedef struct _TagTableClass TagTableClass; -typedef struct _TagTablePrivate TagTablePrivate; -#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL))) -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _tag_row_unref0(var) ((var == NULL) ? NULL : (var = (tag_row_unref (var), NULL))) -#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL))) - -#define TYPE_PHOTO_ID (photo_id_get_type ()) -typedef struct _PhotoID PhotoID; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _TagID { - gint64 id; -}; - -struct _TagRow { - GTypeInstance parent_instance; - volatile int ref_count; - TagRowPrivate * priv; - TagID tag_id; - gchar* name; - GeeSet* source_id_list; - time_t time_created; -}; - -struct _TagRowClass { - GTypeClass parent_class; - void (*finalize) (TagRow *self); -}; - -struct _ParamSpecTagRow { - GParamSpec parent_instance; -}; - -struct _DatabaseTable { - GTypeInstance parent_instance; - volatile int ref_count; - DatabaseTablePrivate * priv; - gchar* table_name; -}; - -struct _DatabaseTableClass { - GTypeClass parent_class; - void (*finalize) (DatabaseTable *self); -}; - -struct _TagTable { - DatabaseTable parent_instance; - TagTablePrivate * priv; -}; - -struct _TagTableClass { - DatabaseTableClass parent_class; -}; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -struct _PhotoID { - gint64 id; -}; - - -static gpointer tag_row_parent_class = NULL; -static gpointer tag_table_parent_class = NULL; -static TagTable* tag_table_instance; -static TagTable* tag_table_instance = NULL; -extern sqlite3* database_table_db; - -GType tag_id_get_type (void) G_GNUC_CONST; -TagID* tag_id_dup (const TagID* self); -void tag_id_free (TagID* self); -#define TAG_ID_INVALID ((gint64) -1) -void tag_id_init (TagID *self, - gint64 id); -gboolean tag_id_is_invalid (TagID *self); -gboolean tag_id_is_valid (TagID *self); -gpointer tag_row_ref (gpointer instance); -void tag_row_unref (gpointer instance); -GParamSpec* param_spec_tag_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_tag_row (GValue* value, - gpointer v_object); -void value_take_tag_row (GValue* value, - gpointer v_object); -gpointer value_get_tag_row (const GValue* value); -GType tag_row_get_type (void) G_GNUC_CONST; -TagRow* tag_row_new (void); -TagRow* tag_row_construct (GType object_type); -static void tag_row_finalize (TagRow * obj); -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType tag_table_get_type (void) G_GNUC_CONST; -static TagTable* tag_table_new (void); -static TagTable* tag_table_construct (GType object_type); -DatabaseTable* database_table_construct (GType object_type); -void database_table_set_table_name (DatabaseTable* self, - const gchar* table_name); -void database_table_fatal (const gchar* op, - gint res); -TagTable* tag_table_get_instance (void); -void tag_table_upgrade_for_htags (void); -GQuark database_error_quark (void); -GeeList* tag_table_get_all_rows (TagTable* self, - GError** error); -#define TAG_PATH_SEPARATOR_STRING "/" -void tag_table_rename (TagTable* self, - TagID* tag_id, - const gchar* new_name, - GError** error); -TagRow* tag_table_add (TagTable* self, - const gchar* name, - GError** error); -gulong now_sec (void); -void database_table_throw_error (const gchar* method, - gint res, - GError** error); -void tag_table_create_from_row (TagTable* self, - TagRow* row, - TagID* result, - GError** error); -static gchar* tag_table_serialize_source_ids (TagTable* self, - GeeCollection* source_ids); -void tag_table_remove (TagTable* self, - TagID* tag_id, - GError** error); -void database_table_delete_by_id (DatabaseTable* self, - gint64 id, - GError** error); -gchar* tag_table_get_name (TagTable* self, - TagID* tag_id, - GError** error); -gboolean database_table_select_by_id (DatabaseTable* self, - gint64 id, - const gchar* columns, - sqlite3_stmt* * stmt); -TagRow* tag_table_get_row (TagTable* self, - TagID* tag_id, - GError** error); -static GeeSet* tag_table_unserialize_source_ids (TagTable* self, - const gchar* text_list); -void database_table_update_text_by_id_2 (DatabaseTable* self, - gint64 id, - const gchar* column, - const gchar* text, - GError** error); -void tag_table_set_tagged_sources (TagTable* self, - TagID* tag_id, - GeeCollection* source_ids, - GError** error); -gboolean is_string_empty (const gchar* s); -GType photo_id_get_type (void) G_GNUC_CONST; -PhotoID* photo_id_dup (const PhotoID* self); -void photo_id_free (PhotoID* self); -gchar* photo_id_upgrade_photo_id_to_source_id (PhotoID* photo_id); -gint64 parse_int64 (const gchar* str, - gint num_base); -void photo_id_init (PhotoID *self, - gint64 id); -static void tag_table_finalize (DatabaseTable * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -void -tag_id_init (TagID *self, - gint64 id) -{ -#line 12 "/home/jens/Source/shotwell/src/db/TagTable.vala" - memset (self, 0, sizeof (TagID)); -#line 13 "/home/jens/Source/shotwell/src/db/TagTable.vala" - (*self).id = id; -#line 260 "TagTable.c" -} - - -gboolean -tag_id_is_invalid (TagID *self) -{ - gboolean result = FALSE; - gint64 _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp0_ = (*self).id; -#line 17 "/home/jens/Source/shotwell/src/db/TagTable.vala" - result = _tmp0_ == TAG_ID_INVALID; -#line 17 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return result; -#line 275 "TagTable.c" -} - - -gboolean -tag_id_is_valid (TagID *self) -{ - gboolean result = FALSE; - gint64 _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp0_ = (*self).id; -#line 21 "/home/jens/Source/shotwell/src/db/TagTable.vala" - result = _tmp0_ != TAG_ID_INVALID; -#line 21 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return result; -#line 290 "TagTable.c" -} - - -TagID* -tag_id_dup (const TagID* self) -{ - TagID* dup; -#line 7 "/home/jens/Source/shotwell/src/db/TagTable.vala" - dup = g_new0 (TagID, 1); -#line 7 "/home/jens/Source/shotwell/src/db/TagTable.vala" - memcpy (dup, self, sizeof (TagID)); -#line 7 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return dup; -#line 304 "TagTable.c" -} - - -void -tag_id_free (TagID* self) -{ -#line 7 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_free (self); -#line 313 "TagTable.c" -} - - -GType -tag_id_get_type (void) -{ - static volatile gsize tag_id_type_id__volatile = 0; - if (g_once_init_enter (&tag_id_type_id__volatile)) { - GType tag_id_type_id; - tag_id_type_id = g_boxed_type_register_static ("TagID", (GBoxedCopyFunc) tag_id_dup, (GBoxedFreeFunc) tag_id_free); - g_once_init_leave (&tag_id_type_id__volatile, tag_id_type_id); - } - return tag_id_type_id__volatile; -} - - -TagRow* -tag_row_construct (GType object_type) -{ - TagRow* self = NULL; -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - self = (TagRow*) g_type_create_instance (object_type); -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return self; -#line 338 "TagTable.c" -} - - -TagRow* -tag_row_new (void) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return tag_row_construct (TYPE_TAG_ROW); -#line 347 "TagTable.c" -} - - -static void -value_tag_row_init (GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - value->data[0].v_pointer = NULL; -#line 356 "TagTable.c" -} - - -static void -value_tag_row_free_value (GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - tag_row_unref (value->data[0].v_pointer); -#line 367 "TagTable.c" - } -} - - -static void -value_tag_row_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (src_value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - dest_value->data[0].v_pointer = tag_row_ref (src_value->data[0].v_pointer); -#line 380 "TagTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - dest_value->data[0].v_pointer = NULL; -#line 384 "TagTable.c" - } -} - - -static gpointer -value_tag_row_peek_pointer (const GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return value->data[0].v_pointer; -#line 394 "TagTable.c" -} - - -static gchar* -value_tag_row_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (collect_values[0].v_pointer) { -#line 406 "TagTable.c" - TagRow * object; - object = collect_values[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (object->parent_instance.g_class == NULL) { -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 413 "TagTable.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 417 "TagTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - value->data[0].v_pointer = tag_row_ref (object); -#line 421 "TagTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - value->data[0].v_pointer = NULL; -#line 425 "TagTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return NULL; -#line 429 "TagTable.c" -} - - -static gchar* -value_tag_row_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - TagRow ** object_p; - object_p = collect_values[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (!object_p) { -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 445 "TagTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (!value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - *object_p = NULL; -#line 451 "TagTable.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - *object_p = value->data[0].v_pointer; -#line 455 "TagTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - *object_p = tag_row_ref (value->data[0].v_pointer); -#line 459 "TagTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return NULL; -#line 463 "TagTable.c" -} - - -GParamSpec* -param_spec_tag_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecTagRow* spec; -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_TAG_ROW), NULL); -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return G_PARAM_SPEC (spec); -#line 483 "TagTable.c" -} - - -gpointer -value_get_tag_row (const GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TAG_ROW), NULL); -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return value->data[0].v_pointer; -#line 494 "TagTable.c" -} - - -void -value_set_tag_row (GValue* value, - gpointer v_object) -{ - TagRow * old; -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TAG_ROW)); -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - old = value->data[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (v_object) { -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TAG_ROW)); -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - value->data[0].v_pointer = v_object; -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - tag_row_ref (value->data[0].v_pointer); -#line 517 "TagTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - value->data[0].v_pointer = NULL; -#line 521 "TagTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (old) { -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - tag_row_unref (old); -#line 527 "TagTable.c" - } -} - - -void -value_take_tag_row (GValue* value, - gpointer v_object) -{ - TagRow * old; -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TAG_ROW)); -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - old = value->data[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (v_object) { -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TAG_ROW)); -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - value->data[0].v_pointer = v_object; -#line 549 "TagTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - value->data[0].v_pointer = NULL; -#line 553 "TagTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (old) { -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - tag_row_unref (old); -#line 559 "TagTable.c" - } -} - - -static void -tag_row_class_init (TagRowClass * klass) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - tag_row_parent_class = g_type_class_peek_parent (klass); -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - ((TagRowClass *) klass)->finalize = tag_row_finalize; -#line 571 "TagTable.c" -} - - -static void -tag_row_instance_init (TagRow * self) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - self->ref_count = 1; -#line 580 "TagTable.c" -} - - -static void -tag_row_finalize (TagRow * obj) -{ - TagRow * self; -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TAG_ROW, TagRow); -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_signal_handlers_destroy (self); -#line 27 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_free0 (self->name); -#line 28 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_object_unref0 (self->source_id_list); -#line 596 "TagTable.c" -} - - -GType -tag_row_get_type (void) -{ - static volatile gsize tag_row_type_id__volatile = 0; - if (g_once_init_enter (&tag_row_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_tag_row_init, value_tag_row_free_value, value_tag_row_copy_value, value_tag_row_peek_pointer, "p", value_tag_row_collect_value, "p", value_tag_row_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (TagRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagRow), 0, (GInstanceInitFunc) tag_row_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType tag_row_type_id; - tag_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TagRow", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&tag_row_type_id__volatile, tag_row_type_id); - } - return tag_row_type_id__volatile; -} - - -gpointer -tag_row_ref (gpointer instance) -{ - TagRow * self; - self = instance; -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_atomic_int_inc (&self->ref_count); -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return instance; -#line 625 "TagTable.c" -} - - -void -tag_row_unref (gpointer instance) -{ - TagRow * self; - self = instance; -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - TAG_ROW_GET_CLASS (self)->finalize (self); -#line 25 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 640 "TagTable.c" - } -} - - -static TagTable* -tag_table_construct (GType object_type) -{ - TagTable* self = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gint _tmp5_; -#line 35 "/home/jens/Source/shotwell/src/db/TagTable.vala" - self = (TagTable*) database_table_construct (object_type); -#line 36 "/home/jens/Source/shotwell/src/db/TagTable.vala" - database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), "TagTable"); -#line 39 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp0_ = database_table_db; -#line 39 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS " "TagTable " "(" "id INTEGER PRIMARY KEY, " "name TEXT UNIQUE NOT NULL, " "photo_id_list TEXT, " "time_created INTEGER" ")", -1, &_tmp1_, NULL); -#line 39 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 39 "/home/jens/Source/shotwell/src/db/TagTable.vala" - stmt = _tmp1_; -#line 39 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = _tmp2_; -#line 47 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp3_ = res; -#line 47 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 49 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp4_ = stmt; -#line 49 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = sqlite3_step (_tmp4_); -#line 50 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp5_ = res; -#line 50 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_tmp5_ != SQLITE_DONE) { -#line 683 "TagTable.c" - gint _tmp6_; -#line 51 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp6_ = res; -#line 51 "/home/jens/Source/shotwell/src/db/TagTable.vala" - database_table_fatal ("create TagTable", _tmp6_); -#line 689 "TagTable.c" - } -#line 35 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 35 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return self; -#line 695 "TagTable.c" -} - - -static TagTable* -tag_table_new (void) -{ -#line 35 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return tag_table_construct (TYPE_TAG_TABLE); -#line 704 "TagTable.c" -} - - -static gpointer -_database_table_ref0 (gpointer self) -{ -#line 58 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return self ? database_table_ref (self) : NULL; -#line 713 "TagTable.c" -} - - -TagTable* -tag_table_get_instance (void) -{ - TagTable* result = NULL; - TagTable* _tmp0_; - TagTable* _tmp2_; - TagTable* _tmp3_; -#line 55 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp0_ = tag_table_instance; -#line 55 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_tmp0_ == NULL) { -#line 728 "TagTable.c" - TagTable* _tmp1_; -#line 56 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp1_ = tag_table_new (); -#line 56 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _database_table_unref0 (tag_table_instance); -#line 56 "/home/jens/Source/shotwell/src/db/TagTable.vala" - tag_table_instance = _tmp1_; -#line 736 "TagTable.c" - } -#line 58 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp2_ = tag_table_instance; -#line 58 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp3_ = _database_table_ref0 (_tmp2_); -#line 58 "/home/jens/Source/shotwell/src/db/TagTable.vala" - result = _tmp3_; -#line 58 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return result; -#line 746 "TagTable.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return self ? g_object_ref (self) : NULL; -#line 755 "TagTable.c" -} - - -static gchar* -string_replace (const gchar* self, - const gchar* old, - const gchar* replacement) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 778 "TagTable.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 782 "TagTable.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 788 "TagTable.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 792 "TagTable.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 796 "TagTable.c" - gchar* _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = g_strdup (self); -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 804 "TagTable.c" - } - { - GRegex* regex = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GRegex* _tmp5_; - GRegex* _tmp6_; - gchar* _tmp7_ = NULL; - GRegex* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_regex_escape_string (old, -1); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp5_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp4_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - regex = _tmp6_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 832 "TagTable.c" - goto __catch21_g_regex_error; - } -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 841 "TagTable.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = regex; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp9_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 855 "TagTable.c" - goto __catch21_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 866 "TagTable.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = _tmp7_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = NULL; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp10_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp7_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 880 "TagTable.c" - } - goto __finally21; - __catch21_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 894 "TagTable.c" - } - __finally21: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 905 "TagTable.c" - } -} - - -void -tag_table_upgrade_for_htags (void) -{ - TagTable* table = NULL; - TagTable* _tmp0_; - GError * _inner_error_ = NULL; -#line 62 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp0_ = tag_table_get_instance (); -#line 62 "/home/jens/Source/shotwell/src/db/TagTable.vala" - table = _tmp0_; -#line 920 "TagTable.c" - { - GeeList* rows = NULL; - TagTable* _tmp1_; - GeeList* _tmp2_; -#line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp1_ = table; -#line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp2_ = tag_table_get_all_rows (_tmp1_, &_inner_error_); -#line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala" - rows = _tmp2_; -#line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 935 "TagTable.c" - goto __catch20_database_error; - } -#line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _database_table_unref0 (table); -#line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_clear_error (&_inner_error_); -#line 65 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return; -#line 946 "TagTable.c" - } - { - GeeList* _row_list = NULL; - GeeList* _tmp3_; - GeeList* _tmp4_; - gint _row_size = 0; - GeeList* _tmp5_; - gint _tmp6_; - gint _tmp7_; - gint _row_index = 0; -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp3_ = rows; -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp4_ = _g_object_ref0 (_tmp3_); -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _row_list = _tmp4_; -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp5_ = _row_list; -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp7_ = _tmp6_; -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _row_size = _tmp7_; -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _row_index = -1; -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - while (TRUE) { -#line 975 "TagTable.c" - gint _tmp8_; - gint _tmp9_; - gint _tmp10_; - TagRow* row = NULL; - GeeList* _tmp11_; - gint _tmp12_; - gpointer _tmp13_; - TagRow* _tmp14_; - TagRow* _tmp15_; - const gchar* _tmp16_; - gchar* _tmp17_; - TagTable* _tmp18_; - TagRow* _tmp19_; - TagID _tmp20_; - TagRow* _tmp21_; - const gchar* _tmp22_; -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp8_ = _row_index; -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _row_index = _tmp8_ + 1; -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp9_ = _row_index; -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp10_ = _row_size; -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (!(_tmp9_ < _tmp10_)) { -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - break; -#line 1004 "TagTable.c" - } -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp11_ = _row_list; -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp12_ = _row_index; -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp13_ = gee_list_get (_tmp11_, _tmp12_); -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - row = (TagRow*) _tmp13_; -#line 68 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp14_ = row; -#line 68 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp15_ = row; -#line 68 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp16_ = _tmp15_->name; -#line 68 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp17_ = string_replace (_tmp16_, TAG_PATH_SEPARATOR_STRING, "-"); -#line 68 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_free0 (_tmp14_->name); -#line 68 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp14_->name = _tmp17_; -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp18_ = table; -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp19_ = row; -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp20_ = _tmp19_->tag_id; -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp21_ = row; -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp22_ = _tmp21_->name; -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - tag_table_rename (_tmp18_, &_tmp20_, _tmp22_, &_inner_error_); -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tag_row_unref0 (row); -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_object_unref0 (_row_list); -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_object_unref0 (rows); -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 1048 "TagTable.c" - goto __catch20_database_error; - } -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tag_row_unref0 (row); -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_object_unref0 (_row_list); -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_object_unref0 (rows); -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _database_table_unref0 (table); -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_clear_error (&_inner_error_); -#line 69 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return; -#line 1065 "TagTable.c" - } -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tag_row_unref0 (row); -#line 1069 "TagTable.c" - } -#line 67 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_object_unref0 (_row_list); -#line 1073 "TagTable.c" - } -#line 64 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_object_unref0 (rows); -#line 1077 "TagTable.c" - } - goto __finally20; - __catch20_database_error: - { - GError* e = NULL; - const gchar* _tmp23_; -#line 64 "/home/jens/Source/shotwell/src/db/TagTable.vala" - e = _inner_error_; -#line 64 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _inner_error_ = NULL; -#line 72 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp23_ = e->message; -#line 72 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_error ("TagTable.vala:72: TagTable: can't upgrade tag names for hierarchical t" \ -"ag support: %s", _tmp23_); -#line 64 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_error_free0 (e); -#line 1094 "TagTable.c" - } - __finally20: -#line 64 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 64 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _database_table_unref0 (table); -#line 64 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 64 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_clear_error (&_inner_error_); -#line 64 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return; -#line 1107 "TagTable.c" - } -#line 61 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _database_table_unref0 (table); -#line 1111 "TagTable.c" -} - - -TagRow* -tag_table_add (TagTable* self, - const gchar* name, - GError** error) -{ - TagRow* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - time_t time_created = 0; - sqlite3_stmt* _tmp4_; - gchar* _tmp5_; - GDestroyNotify _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - time_t _tmp9_; - gint _tmp10_; - sqlite3_stmt* _tmp11_; - gint _tmp12_; - TagRow* row = NULL; - TagRow* _tmp14_; - TagRow* _tmp15_; - sqlite3* _tmp16_; - TagRow* _tmp17_; - gchar* _tmp18_; - TagRow* _tmp19_; - TagRow* _tmp20_; - time_t _tmp21_; - GError * _inner_error_ = NULL; -#line 76 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_val_if_fail (IS_TAG_TABLE (self), NULL); -#line 76 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 78 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp0_ = database_table_db; -#line 78 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO TagTable (name, time_created) VALUES (?, ?)", -1, &_tmp1_, NULL); -#line 78 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 78 "/home/jens/Source/shotwell/src/db/TagTable.vala" - stmt = _tmp1_; -#line 78 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = _tmp2_; -#line 80 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp3_ = res; -#line 80 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 82 "/home/jens/Source/shotwell/src/db/TagTable.vala" - time_created = (time_t) now_sec (); -#line 84 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp4_ = stmt; -#line 84 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp5_ = g_strdup (name); -#line 84 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp6_ = g_free; -#line 84 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = sqlite3_bind_text (_tmp4_, 1, _tmp5_, -1, _tmp6_); -#line 85 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp7_ = res; -#line 85 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 86 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp8_ = stmt; -#line 86 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp9_ = time_created; -#line 86 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = sqlite3_bind_int64 (_tmp8_, 2, (gint64) _tmp9_); -#line 87 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp10_ = res; -#line 87 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _vala_assert (_tmp10_ == SQLITE_OK, "res == Sqlite.OK"); -#line 89 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp11_ = stmt; -#line 89 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = sqlite3_step (_tmp11_); -#line 90 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp12_ = res; -#line 90 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_tmp12_ != SQLITE_DONE) { -#line 1197 "TagTable.c" - gint _tmp13_; -#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp13_ = res; -#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala" - database_table_throw_error ("TagTable.add", _tmp13_, &_inner_error_); -#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_propagate_error (error, _inner_error_); -#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return NULL; -#line 1213 "TagTable.c" - } else { -#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_clear_error (&_inner_error_); -#line 91 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return NULL; -#line 1223 "TagTable.c" - } - } - } -#line 93 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp14_ = tag_row_new (); -#line 93 "/home/jens/Source/shotwell/src/db/TagTable.vala" - row = _tmp14_; -#line 94 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp15_ = row; -#line 94 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp16_ = database_table_db; -#line 94 "/home/jens/Source/shotwell/src/db/TagTable.vala" - tag_id_init (&_tmp15_->tag_id, sqlite3_last_insert_rowid (_tmp16_)); -#line 95 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp17_ = row; -#line 95 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp18_ = g_strdup (name); -#line 95 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_free0 (_tmp17_->name); -#line 95 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp17_->name = _tmp18_; -#line 96 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp19_ = row; -#line 96 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_object_unref0 (_tmp19_->source_id_list); -#line 96 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp19_->source_id_list = NULL; -#line 97 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp20_ = row; -#line 97 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp21_ = time_created; -#line 97 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp20_->time_created = _tmp21_; -#line 99 "/home/jens/Source/shotwell/src/db/TagTable.vala" - result = row; -#line 99 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 99 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return result; -#line 1263 "TagTable.c" -} - - -void -tag_table_create_from_row (TagTable* self, - TagRow* row, - TagID* result, - GError** error) -{ - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - GDestroyNotify _tmp7_; - gint _tmp8_; - sqlite3_stmt* _tmp9_; - GeeSet* _tmp10_; - gchar* _tmp11_; - GDestroyNotify _tmp12_; - gint _tmp13_; - sqlite3_stmt* _tmp14_; - time_t _tmp15_; - gint _tmp16_; - sqlite3_stmt* _tmp17_; - gint _tmp18_; - sqlite3* _tmp20_; - TagID _tmp21_ = {0}; - GError * _inner_error_ = NULL; -#line 103 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_if_fail (IS_TAG_TABLE (self)); -#line 103 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_if_fail (IS_TAG_ROW (row)); -#line 105 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp0_ = database_table_db; -#line 105 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO TagTable (name, photo_id_list, time_created) VALUES (?, ?," \ -" ?)", -1, &_tmp1_, NULL); -#line 105 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 105 "/home/jens/Source/shotwell/src/db/TagTable.vala" - stmt = _tmp1_; -#line 105 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = _tmp2_; -#line 107 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp3_ = res; -#line 107 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 109 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp4_ = stmt; -#line 109 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp5_ = row->name; -#line 109 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 109 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp7_ = g_free; -#line 109 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = sqlite3_bind_text (_tmp4_, 1, _tmp6_, -1, _tmp7_); -#line 110 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp8_ = res; -#line 110 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK"); -#line 111 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp9_ = stmt; -#line 111 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp10_ = row->source_id_list; -#line 111 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp11_ = tag_table_serialize_source_ids (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 111 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp12_ = g_free; -#line 111 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = sqlite3_bind_text (_tmp9_, 2, _tmp11_, -1, _tmp12_); -#line 112 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp13_ = res; -#line 112 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK"); -#line 113 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp14_ = stmt; -#line 113 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp15_ = row->time_created; -#line 113 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = sqlite3_bind_int64 (_tmp14_, 3, (gint64) _tmp15_); -#line 114 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp16_ = res; -#line 114 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _vala_assert (_tmp16_ == SQLITE_OK, "res == Sqlite.OK"); -#line 116 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp17_ = stmt; -#line 116 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = sqlite3_step (_tmp17_); -#line 117 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp18_ = res; -#line 117 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_tmp18_ != SQLITE_DONE) { -#line 1361 "TagTable.c" - gint _tmp19_; -#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp19_ = res; -#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala" - database_table_throw_error ("TagTable.create_from_row", _tmp19_, &_inner_error_); -#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_propagate_error (error, _inner_error_); -#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return; -#line 1377 "TagTable.c" - } else { -#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_clear_error (&_inner_error_); -#line 118 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return; -#line 1387 "TagTable.c" - } - } - } -#line 120 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp20_ = database_table_db; -#line 120 "/home/jens/Source/shotwell/src/db/TagTable.vala" - tag_id_init (&_tmp21_, sqlite3_last_insert_rowid (_tmp20_)); -#line 120 "/home/jens/Source/shotwell/src/db/TagTable.vala" - *result = _tmp21_; -#line 120 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 120 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return; -#line 1401 "TagTable.c" -} - - -void -tag_table_remove (TagTable* self, - TagID* tag_id, - GError** error) -{ - TagID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 123 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_if_fail (IS_TAG_TABLE (self)); -#line 123 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_if_fail (tag_id != NULL); -#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp0_ = *tag_id; -#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp1_ = _tmp0_.id; -#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala" - database_table_delete_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, &_inner_error_); -#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_propagate_error (error, _inner_error_); -#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return; -#line 1431 "TagTable.c" - } else { -#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_clear_error (&_inner_error_); -#line 124 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return; -#line 1439 "TagTable.c" - } - } -} - - -gchar* -tag_table_get_name (TagTable* self, - TagID* tag_id, - GError** error) -{ - gchar* result = NULL; - sqlite3_stmt* stmt = NULL; - TagID _tmp0_; - gint64 _tmp1_; - sqlite3_stmt* _tmp2_ = NULL; - gboolean _tmp3_; - sqlite3_stmt* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; -#line 127 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_val_if_fail (IS_TAG_TABLE (self), NULL); -#line 127 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_val_if_fail (tag_id != NULL, NULL); -#line 129 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp0_ = *tag_id; -#line 129 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp1_ = _tmp0_.id; -#line 129 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp3_ = database_table_select_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "name", &_tmp2_); -#line 129 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 129 "/home/jens/Source/shotwell/src/db/TagTable.vala" - stmt = _tmp2_; -#line 129 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (!_tmp3_) { -#line 130 "/home/jens/Source/shotwell/src/db/TagTable.vala" - result = NULL; -#line 130 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 130 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return result; -#line 1481 "TagTable.c" - } -#line 132 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp4_ = stmt; -#line 132 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp5_ = sqlite3_column_text (_tmp4_, 0); -#line 132 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 132 "/home/jens/Source/shotwell/src/db/TagTable.vala" - result = _tmp6_; -#line 132 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 132 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return result; -#line 1495 "TagTable.c" -} - - -TagRow* -tag_table_get_row (TagTable* self, - TagID* tag_id, - GError** error) -{ - TagRow* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - TagID _tmp5_; - gint64 _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - gint _tmp9_; - TagRow* row = NULL; - TagRow* _tmp12_; - TagRow* _tmp13_; - TagID _tmp14_; - TagRow* _tmp15_; - sqlite3_stmt* _tmp16_; - const gchar* _tmp17_; - gchar* _tmp18_; - TagRow* _tmp19_; - sqlite3_stmt* _tmp20_; - const gchar* _tmp21_; - GeeSet* _tmp22_; - TagRow* _tmp23_; - sqlite3_stmt* _tmp24_; - GError * _inner_error_ = NULL; -#line 135 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_val_if_fail (IS_TAG_TABLE (self), NULL); -#line 135 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_val_if_fail (tag_id != NULL, NULL); -#line 137 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp0_ = database_table_db; -#line 137 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT name, photo_id_list, time_created FROM TagTable WHERE id=?", -1, &_tmp1_, NULL); -#line 137 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 137 "/home/jens/Source/shotwell/src/db/TagTable.vala" - stmt = _tmp1_; -#line 137 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = _tmp2_; -#line 139 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp3_ = res; -#line 139 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 141 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp4_ = stmt; -#line 141 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp5_ = *tag_id; -#line 141 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp6_ = _tmp5_.id; -#line 141 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_); -#line 142 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp7_ = res; -#line 142 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 144 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp8_ = stmt; -#line 144 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = sqlite3_step (_tmp8_); -#line 145 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp9_ = res; -#line 145 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_tmp9_ == SQLITE_DONE) { -#line 146 "/home/jens/Source/shotwell/src/db/TagTable.vala" - result = NULL; -#line 146 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 146 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return result; -#line 1576 "TagTable.c" - } else { - gint _tmp10_; -#line 147 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp10_ = res; -#line 147 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_tmp10_ != SQLITE_ROW) { -#line 1583 "TagTable.c" - gint _tmp11_; -#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp11_ = res; -#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala" - database_table_throw_error ("TagTable.get_row", _tmp11_, &_inner_error_); -#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_propagate_error (error, _inner_error_); -#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return NULL; -#line 1599 "TagTable.c" - } else { -#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_clear_error (&_inner_error_); -#line 148 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return NULL; -#line 1609 "TagTable.c" - } - } - } - } -#line 150 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp12_ = tag_row_new (); -#line 150 "/home/jens/Source/shotwell/src/db/TagTable.vala" - row = _tmp12_; -#line 151 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp13_ = row; -#line 151 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp14_ = *tag_id; -#line 151 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp13_->tag_id = _tmp14_; -#line 152 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp15_ = row; -#line 152 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp16_ = stmt; -#line 152 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp17_ = sqlite3_column_text (_tmp16_, 0); -#line 152 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp18_ = g_strdup (_tmp17_); -#line 152 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_free0 (_tmp15_->name); -#line 152 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp15_->name = _tmp18_; -#line 153 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp19_ = row; -#line 153 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp20_ = stmt; -#line 153 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp21_ = sqlite3_column_text (_tmp20_, 1); -#line 153 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp22_ = tag_table_unserialize_source_ids (self, _tmp21_); -#line 153 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_object_unref0 (_tmp19_->source_id_list); -#line 153 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp19_->source_id_list = _tmp22_; -#line 154 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp23_ = row; -#line 154 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp24_ = stmt; -#line 154 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp23_->time_created = (time_t) sqlite3_column_int64 (_tmp24_, 2); -#line 156 "/home/jens/Source/shotwell/src/db/TagTable.vala" - result = row; -#line 156 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 156 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return result; -#line 1660 "TagTable.c" -} - - -GeeList* -tag_table_get_all_rows (TagTable* self, - GError** error) -{ - GeeList* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - GeeList* rows = NULL; - GeeArrayList* _tmp4_; - GError * _inner_error_ = NULL; -#line 159 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_val_if_fail (IS_TAG_TABLE (self), NULL); -#line 161 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp0_ = database_table_db; -#line 161 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id, name, photo_id_list, time_created FROM TagTable", -1, &_tmp1_, NULL); -#line 161 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 161 "/home/jens/Source/shotwell/src/db/TagTable.vala" - stmt = _tmp1_; -#line 161 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = _tmp2_; -#line 163 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp3_ = res; -#line 163 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 165 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp4_ = gee_array_list_new (TYPE_TAG_ROW, (GBoxedCopyFunc) tag_row_ref, (GDestroyNotify) tag_row_unref, NULL, NULL, NULL); -#line 165 "/home/jens/Source/shotwell/src/db/TagTable.vala" - rows = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_LIST, GeeList); -#line 1698 "TagTable.c" - { - gboolean _tmp5_ = FALSE; -#line 167 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp5_ = TRUE; -#line 167 "/home/jens/Source/shotwell/src/db/TagTable.vala" - while (TRUE) { -#line 1705 "TagTable.c" - sqlite3_stmt* _tmp6_; - gint _tmp7_; - TagRow* row = NULL; - TagRow* _tmp10_; - TagRow* _tmp11_; - sqlite3_stmt* _tmp12_; - TagRow* _tmp13_; - sqlite3_stmt* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; - TagRow* _tmp17_; - sqlite3_stmt* _tmp18_; - const gchar* _tmp19_; - GeeSet* _tmp20_; - TagRow* _tmp21_; - sqlite3_stmt* _tmp22_; - GeeList* _tmp23_; - TagRow* _tmp24_; -#line 167 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (!_tmp5_) { -#line 1726 "TagTable.c" - } -#line 167 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp5_ = FALSE; -#line 168 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp6_ = stmt; -#line 168 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = sqlite3_step (_tmp6_); -#line 169 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp7_ = res; -#line 169 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_tmp7_ == SQLITE_DONE) { -#line 170 "/home/jens/Source/shotwell/src/db/TagTable.vala" - break; -#line 1740 "TagTable.c" - } else { - gint _tmp8_; -#line 171 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp8_ = res; -#line 171 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_tmp8_ != SQLITE_ROW) { -#line 1747 "TagTable.c" - gint _tmp9_; -#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp9_ = res; -#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala" - database_table_throw_error ("TagTable.get_all_rows", _tmp9_, &_inner_error_); -#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_propagate_error (error, _inner_error_); -#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_object_unref0 (rows); -#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return NULL; -#line 1765 "TagTable.c" - } else { -#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_object_unref0 (rows); -#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_clear_error (&_inner_error_); -#line 172 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return NULL; -#line 1777 "TagTable.c" - } - } - } - } -#line 175 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp10_ = tag_row_new (); -#line 175 "/home/jens/Source/shotwell/src/db/TagTable.vala" - row = _tmp10_; -#line 176 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp11_ = row; -#line 176 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp12_ = stmt; -#line 176 "/home/jens/Source/shotwell/src/db/TagTable.vala" - tag_id_init (&_tmp11_->tag_id, sqlite3_column_int64 (_tmp12_, 0)); -#line 177 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp13_ = row; -#line 177 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp14_ = stmt; -#line 177 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp15_ = sqlite3_column_text (_tmp14_, 1); -#line 177 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp16_ = g_strdup (_tmp15_); -#line 177 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_free0 (_tmp13_->name); -#line 177 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp13_->name = _tmp16_; -#line 178 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp17_ = row; -#line 178 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp18_ = stmt; -#line 178 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp19_ = sqlite3_column_text (_tmp18_, 2); -#line 178 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp20_ = tag_table_unserialize_source_ids (self, _tmp19_); -#line 178 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_object_unref0 (_tmp17_->source_id_list); -#line 178 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp17_->source_id_list = _tmp20_; -#line 179 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp21_ = row; -#line 179 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp22_ = stmt; -#line 179 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp21_->time_created = (time_t) sqlite3_column_int64 (_tmp22_, 3); -#line 181 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp23_ = rows; -#line 181 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp24_ = row; -#line 181 "/home/jens/Source/shotwell/src/db/TagTable.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, GEE_TYPE_COLLECTION, GeeCollection), _tmp24_); -#line 167 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tag_row_unref0 (row); -#line 1830 "TagTable.c" - } - } -#line 184 "/home/jens/Source/shotwell/src/db/TagTable.vala" - result = rows; -#line 184 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 184 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return result; -#line 1839 "TagTable.c" -} - - -void -tag_table_rename (TagTable* self, - TagID* tag_id, - const gchar* new_name, - GError** error) -{ - TagID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 187 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_if_fail (IS_TAG_TABLE (self)); -#line 187 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_if_fail (tag_id != NULL); -#line 187 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_if_fail (new_name != NULL); -#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp0_ = *tag_id; -#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp1_ = _tmp0_.id; -#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala" - database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "name", new_name, &_inner_error_); -#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_propagate_error (error, _inner_error_); -#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return; -#line 1872 "TagTable.c" - } else { -#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_clear_error (&_inner_error_); -#line 188 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return; -#line 1880 "TagTable.c" - } - } -} - - -void -tag_table_set_tagged_sources (TagTable* self, - TagID* tag_id, - GeeCollection* source_ids, - GError** error) -{ - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gchar* _tmp5_; - GDestroyNotify _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - TagID _tmp9_; - gint64 _tmp10_; - gint _tmp11_; - sqlite3_stmt* _tmp12_; - gint _tmp13_; - GError * _inner_error_ = NULL; -#line 191 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_if_fail (IS_TAG_TABLE (self)); -#line 191 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_if_fail (tag_id != NULL); -#line 191 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_if_fail (GEE_IS_COLLECTION (source_ids)); -#line 193 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp0_ = database_table_db; -#line 193 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE TagTable SET photo_id_list=? WHERE id=?", -1, &_tmp1_, NULL); -#line 193 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 193 "/home/jens/Source/shotwell/src/db/TagTable.vala" - stmt = _tmp1_; -#line 193 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = _tmp2_; -#line 194 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp3_ = res; -#line 194 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 196 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp4_ = stmt; -#line 196 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp5_ = tag_table_serialize_source_ids (self, source_ids); -#line 196 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp6_ = g_free; -#line 196 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = sqlite3_bind_text (_tmp4_, 1, _tmp5_, -1, _tmp6_); -#line 197 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp7_ = res; -#line 197 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 198 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp8_ = stmt; -#line 198 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp9_ = *tag_id; -#line 198 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp10_ = _tmp9_.id; -#line 198 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = sqlite3_bind_int64 (_tmp8_, 2, _tmp10_); -#line 199 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp11_ = res; -#line 199 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK"); -#line 201 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp12_ = stmt; -#line 201 "/home/jens/Source/shotwell/src/db/TagTable.vala" - res = sqlite3_step (_tmp12_); -#line 202 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp13_ = res; -#line 202 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_tmp13_ != SQLITE_DONE) { -#line 1961 "TagTable.c" - gint _tmp14_; -#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp14_ = res; -#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala" - database_table_throw_error ("TagTable.set_tagged_photos", _tmp14_, &_inner_error_); -#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_propagate_error (error, _inner_error_); -#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return; -#line 1977 "TagTable.c" - } else { -#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_clear_error (&_inner_error_); -#line 203 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return; -#line 1987 "TagTable.c" - } - } - } -#line 191 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _sqlite3_finalize0 (stmt); -#line 1993 "TagTable.c" -} - - -static gchar* -tag_table_serialize_source_ids (TagTable* self, - GeeCollection* source_ids) -{ - gchar* result = NULL; - GString* _result_ = NULL; - GString* _tmp0_; - const gchar* _tmp8_ = NULL; - GString* _tmp9_; - gssize _tmp10_; - gchar* _tmp13_; -#line 206 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_val_if_fail (IS_TAG_TABLE (self), NULL); -#line 206 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_val_if_fail ((source_ids == NULL) || GEE_IS_COLLECTION (source_ids), NULL); -#line 207 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (source_ids == NULL) { -#line 208 "/home/jens/Source/shotwell/src/db/TagTable.vala" - result = NULL; -#line 208 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return result; -#line 2018 "TagTable.c" - } -#line 210 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp0_ = g_string_new (""); -#line 210 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _result_ = _tmp0_; -#line 2024 "TagTable.c" - { - GeeIterator* _source_id_it = NULL; - GeeIterator* _tmp1_; -#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (source_ids, GEE_TYPE_ITERABLE, GeeIterable)); -#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _source_id_it = _tmp1_; -#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala" - while (TRUE) { -#line 2034 "TagTable.c" - GeeIterator* _tmp2_; - gchar* source_id = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - GString* _tmp5_; - const gchar* _tmp6_; - GString* _tmp7_; -#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp2_ = _source_id_it; -#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala" - break; -#line 2048 "TagTable.c" - } -#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp3_ = _source_id_it; -#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala" - source_id = (gchar*) _tmp4_; -#line 213 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp5_ = _result_; -#line 213 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp6_ = source_id; -#line 213 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_string_append (_tmp5_, _tmp6_); -#line 214 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp7_ = _result_; -#line 214 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_string_append (_tmp7_, ","); -#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_free0 (source_id); -#line 2068 "TagTable.c" - } -#line 212 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_object_unref0 (_source_id_it); -#line 2072 "TagTable.c" - } -#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp9_ = _result_; -#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp10_ = _tmp9_->len; -#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (_tmp10_ != ((gssize) 0)) { -#line 2080 "TagTable.c" - GString* _tmp11_; - const gchar* _tmp12_; -#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp11_ = _result_; -#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp12_ = _tmp11_->str; -#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp8_ = _tmp12_; -#line 2089 "TagTable.c" - } else { -#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp8_ = NULL; -#line 2093 "TagTable.c" - } -#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp13_ = g_strdup (_tmp8_); -#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala" - result = _tmp13_; -#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_string_free0 (_result_); -#line 217 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return result; -#line 2103 "TagTable.c" -} - - -static gchar -string_get (const gchar* self, - glong index) -{ - gchar result = '\0'; - gchar _tmp0_; -#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, '\0'); -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = ((gchar*) self)[index]; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2121 "TagTable.c" -} - - -static GeeSet* -tag_table_unserialize_source_ids (TagTable* self, - const gchar* text_list) -{ - GeeSet* result = NULL; - GeeSet* _result_ = NULL; - GeeHashSet* _tmp0_; - gchar** split = NULL; - gchar** _tmp1_; - gchar** _tmp2_; - gint split_length1; - gint _split_size_; - gchar** _tmp3_; - gint _tmp3__length1; -#line 220 "/home/jens/Source/shotwell/src/db/TagTable.vala" - g_return_val_if_fail (IS_TAG_TABLE (self), NULL); -#line 221 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 221 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _result_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SET, GeeSet); -#line 223 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (text_list == NULL) { -#line 224 "/home/jens/Source/shotwell/src/db/TagTable.vala" - result = _result_; -#line 224 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return result; -#line 2151 "TagTable.c" - } -#line 226 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp2_ = _tmp1_ = g_strsplit (text_list, ",", 0); -#line 226 "/home/jens/Source/shotwell/src/db/TagTable.vala" - split = _tmp2_; -#line 226 "/home/jens/Source/shotwell/src/db/TagTable.vala" - split_length1 = _vala_array_length (_tmp1_); -#line 226 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _split_size_ = split_length1; -#line 227 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp3_ = split; -#line 227 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp3__length1 = split_length1; -#line 2165 "TagTable.c" - { - gchar** token_collection = NULL; - gint token_collection_length1 = 0; - gint _token_collection_size_ = 0; - gint token_it = 0; -#line 227 "/home/jens/Source/shotwell/src/db/TagTable.vala" - token_collection = _tmp3_; -#line 227 "/home/jens/Source/shotwell/src/db/TagTable.vala" - token_collection_length1 = _tmp3__length1; -#line 227 "/home/jens/Source/shotwell/src/db/TagTable.vala" - for (token_it = 0; token_it < _tmp3__length1; token_it = token_it + 1) { -#line 2177 "TagTable.c" - gchar* _tmp4_; - gchar* token = NULL; -#line 227 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp4_ = g_strdup (token_collection[token_it]); -#line 227 "/home/jens/Source/shotwell/src/db/TagTable.vala" - token = _tmp4_; -#line 2184 "TagTable.c" - { - const gchar* _tmp5_; - const gchar* _tmp6_; -#line 228 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp5_ = token; -#line 228 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (is_string_empty (_tmp5_)) { -#line 229 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_free0 (token); -#line 229 "/home/jens/Source/shotwell/src/db/TagTable.vala" - continue; -#line 2196 "TagTable.c" - } -#line 236 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp6_ = token; -#line 236 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (g_ascii_isdigit (string_get (_tmp6_, (glong) 0))) { -#line 2202 "TagTable.c" - GeeSet* _tmp7_; - const gchar* _tmp8_; - PhotoID _tmp9_ = {0}; - gchar* _tmp10_; - gchar* _tmp11_; -#line 238 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp7_ = _result_; -#line 238 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp8_ = token; -#line 238 "/home/jens/Source/shotwell/src/db/TagTable.vala" - photo_id_init (&_tmp9_, parse_int64 (_tmp8_, 10)); -#line 238 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp10_ = photo_id_upgrade_photo_id_to_source_id (&_tmp9_); -#line 238 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp11_ = _tmp10_; -#line 238 "/home/jens/Source/shotwell/src/db/TagTable.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection), _tmp11_); -#line 238 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_free0 (_tmp11_); -#line 2222 "TagTable.c" - } else { - const gchar* _tmp12_; -#line 239 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp12_ = token; -#line 239 "/home/jens/Source/shotwell/src/db/TagTable.vala" - if (g_ascii_isalpha (string_get (_tmp12_, (glong) 0))) { -#line 2229 "TagTable.c" - GeeSet* _tmp13_; - const gchar* _tmp14_; -#line 241 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp13_ = _result_; -#line 241 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _tmp14_ = token; -#line 241 "/home/jens/Source/shotwell/src/db/TagTable.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection), _tmp14_); -#line 2238 "TagTable.c" - } - } -#line 227 "/home/jens/Source/shotwell/src/db/TagTable.vala" - _g_free0 (token); -#line 2243 "TagTable.c" - } - } - } -#line 245 "/home/jens/Source/shotwell/src/db/TagTable.vala" - result = _result_; -#line 245 "/home/jens/Source/shotwell/src/db/TagTable.vala" - split = (_vala_array_free (split, split_length1, (GDestroyNotify) g_free), NULL); -#line 245 "/home/jens/Source/shotwell/src/db/TagTable.vala" - return result; -#line 2253 "TagTable.c" -} - - -static void -tag_table_class_init (TagTableClass * klass) -{ -#line 32 "/home/jens/Source/shotwell/src/db/TagTable.vala" - tag_table_parent_class = g_type_class_peek_parent (klass); -#line 32 "/home/jens/Source/shotwell/src/db/TagTable.vala" - ((DatabaseTableClass *) klass)->finalize = tag_table_finalize; -#line 2264 "TagTable.c" -} - - -static void -tag_table_instance_init (TagTable * self) -{ -} - - -static void -tag_table_finalize (DatabaseTable * obj) -{ - TagTable * self; -#line 32 "/home/jens/Source/shotwell/src/db/TagTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TAG_TABLE, TagTable); -#line 32 "/home/jens/Source/shotwell/src/db/TagTable.vala" - DATABASE_TABLE_CLASS (tag_table_parent_class)->finalize (obj); -#line 2282 "TagTable.c" -} - - -GType -tag_table_get_type (void) -{ - static volatile gsize tag_table_type_id__volatile = 0; - if (g_once_init_enter (&tag_table_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TagTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagTable), 0, (GInstanceInitFunc) tag_table_instance_init, NULL }; - GType tag_table_type_id; - tag_table_type_id = g_type_register_static (TYPE_DATABASE_TABLE, "TagTable", &g_define_type_info, 0); - g_once_init_leave (&tag_table_type_id__volatile, tag_table_type_id); - } - return tag_table_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/src/db/TombstoneTable.c b/src/db/TombstoneTable.c deleted file mode 100644 index b7b9f58..0000000 --- a/src/db/TombstoneTable.c +++ /dev/null @@ -1,1356 +0,0 @@ -/* TombstoneTable.c generated by valac 0.40.4, the Vala compiler - * generated from TombstoneTable.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_TOMBSTONE_ID (tombstone_id_get_type ()) -typedef struct _TombstoneID TombstoneID; - -#define TYPE_TOMBSTONE_ROW (tombstone_row_get_type ()) -#define TOMBSTONE_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE_ROW, TombstoneRow)) -#define TOMBSTONE_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE_ROW, TombstoneRowClass)) -#define IS_TOMBSTONE_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE_ROW)) -#define IS_TOMBSTONE_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE_ROW)) -#define TOMBSTONE_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE_ROW, TombstoneRowClass)) - -typedef struct _TombstoneRow TombstoneRow; -typedef struct _TombstoneRowClass TombstoneRowClass; -typedef struct _TombstoneRowPrivate TombstoneRowPrivate; - -#define TOMBSTONE_TYPE_REASON (tombstone_reason_get_type ()) -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _ParamSpecTombstoneRow ParamSpecTombstoneRow; - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; -typedef struct _DatabaseTablePrivate DatabaseTablePrivate; - -#define TYPE_TOMBSTONE_TABLE (tombstone_table_get_type ()) -#define TOMBSTONE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TOMBSTONE_TABLE, TombstoneTable)) -#define TOMBSTONE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TOMBSTONE_TABLE, TombstoneTableClass)) -#define IS_TOMBSTONE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TOMBSTONE_TABLE)) -#define IS_TOMBSTONE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TOMBSTONE_TABLE)) -#define TOMBSTONE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TOMBSTONE_TABLE, TombstoneTableClass)) - -typedef struct _TombstoneTable TombstoneTable; -typedef struct _TombstoneTableClass TombstoneTableClass; -typedef struct _TombstoneTablePrivate TombstoneTablePrivate; -#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL))) -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) -#define _tombstone_row_unref0(var) ((var == NULL) ? NULL : (var = (tombstone_row_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _TombstoneID { - gint64 id; -}; - -typedef enum { - TOMBSTONE_REASON_REMOVED_BY_USER = 0, - TOMBSTONE_REASON_AUTO_DETECTED_DUPLICATE = 1 -} TombstoneReason; - -struct _TombstoneRow { - GTypeInstance parent_instance; - volatile int ref_count; - TombstoneRowPrivate * priv; - TombstoneID id; - gchar* filepath; - gint64 filesize; - gchar* md5; - time_t time_created; - TombstoneReason reason; -}; - -struct _TombstoneRowClass { - GTypeClass parent_class; - void (*finalize) (TombstoneRow *self); -}; - -struct _ParamSpecTombstoneRow { - GParamSpec parent_instance; -}; - -struct _DatabaseTable { - GTypeInstance parent_instance; - volatile int ref_count; - DatabaseTablePrivate * priv; - gchar* table_name; -}; - -struct _DatabaseTableClass { - GTypeClass parent_class; - void (*finalize) (DatabaseTable *self); -}; - -struct _TombstoneTable { - DatabaseTable parent_instance; - TombstoneTablePrivate * priv; -}; - -struct _TombstoneTableClass { - DatabaseTableClass parent_class; -}; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () - -static gpointer tombstone_row_parent_class = NULL; -static gpointer tombstone_table_parent_class = NULL; -static TombstoneTable* tombstone_table_instance; -static TombstoneTable* tombstone_table_instance = NULL; -extern sqlite3* database_table_db; - -GType tombstone_id_get_type (void) G_GNUC_CONST; -TombstoneID* tombstone_id_dup (const TombstoneID* self); -void tombstone_id_free (TombstoneID* self); -#define TOMBSTONE_ID_INVALID ((gint64) -1) -void tombstone_id_init (TombstoneID *self, - gint64 id); -gboolean tombstone_id_is_invalid (TombstoneID *self); -gboolean tombstone_id_is_valid (TombstoneID *self); -gpointer tombstone_row_ref (gpointer instance); -void tombstone_row_unref (gpointer instance); -GParamSpec* param_spec_tombstone_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_tombstone_row (GValue* value, - gpointer v_object); -void value_take_tombstone_row (GValue* value, - gpointer v_object); -gpointer value_get_tombstone_row (const GValue* value); -GType tombstone_row_get_type (void) G_GNUC_CONST; -GType tombstone_reason_get_type (void) G_GNUC_CONST; -TombstoneRow* tombstone_row_new (void); -TombstoneRow* tombstone_row_construct (GType object_type); -static void tombstone_row_finalize (TombstoneRow * obj); -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType tombstone_table_get_type (void) G_GNUC_CONST; -static TombstoneTable* tombstone_table_new (void); -static TombstoneTable* tombstone_table_construct (GType object_type); -DatabaseTable* database_table_construct (GType object_type); -void database_table_set_table_name (DatabaseTable* self, - const gchar* table_name); -void database_table_fatal (const gchar* op, - gint res); -TombstoneTable* tombstone_table_get_instance (void); -GQuark database_error_quark (void); -TombstoneRow* tombstone_table_add (TombstoneTable* self, - const gchar* filepath, - gint64 filesize, - const gchar* md5, - TombstoneReason reason, - GError** error); -gulong now_sec (void); -gint tombstone_reason_serialize (TombstoneReason self); -void database_table_throw_error (const gchar* method, - gint res, - GError** error); -TombstoneRow** tombstone_table_fetch_all (TombstoneTable* self, - int* result_length1, - GError** error); -gint database_table_get_row_count (DatabaseTable* self); -TombstoneReason tombstone_reason_unserialize (gint value); -void tombstone_table_update_file (TombstoneTable* self, - TombstoneID* tombstone_id, - const gchar* filepath, - GError** error); -void database_table_update_text_by_id_2 (DatabaseTable* self, - gint64 id, - const gchar* column, - const gchar* text, - GError** error); -void tombstone_table_remove (TombstoneTable* self, - TombstoneID* tombstone_id, - GError** error); -void database_table_delete_by_id (DatabaseTable* self, - gint64 id, - GError** error); -static void tombstone_table_finalize (DatabaseTable * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -void -tombstone_id_init (TombstoneID *self, - gint64 id) -{ -#line 12 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - memset (self, 0, sizeof (TombstoneID)); -#line 13 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - (*self).id = id; -#line 231 "TombstoneTable.c" -} - - -gboolean -tombstone_id_is_invalid (TombstoneID *self) -{ - gboolean result = FALSE; - gint64 _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp0_ = (*self).id; -#line 17 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - result = _tmp0_ == TOMBSTONE_ID_INVALID; -#line 17 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return result; -#line 246 "TombstoneTable.c" -} - - -gboolean -tombstone_id_is_valid (TombstoneID *self) -{ - gboolean result = FALSE; - gint64 _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp0_ = (*self).id; -#line 21 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - result = _tmp0_ != TOMBSTONE_ID_INVALID; -#line 21 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return result; -#line 261 "TombstoneTable.c" -} - - -TombstoneID* -tombstone_id_dup (const TombstoneID* self) -{ - TombstoneID* dup; -#line 7 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - dup = g_new0 (TombstoneID, 1); -#line 7 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - memcpy (dup, self, sizeof (TombstoneID)); -#line 7 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return dup; -#line 275 "TombstoneTable.c" -} - - -void -tombstone_id_free (TombstoneID* self) -{ -#line 7 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_free (self); -#line 284 "TombstoneTable.c" -} - - -GType -tombstone_id_get_type (void) -{ - static volatile gsize tombstone_id_type_id__volatile = 0; - if (g_once_init_enter (&tombstone_id_type_id__volatile)) { - GType tombstone_id_type_id; - tombstone_id_type_id = g_boxed_type_register_static ("TombstoneID", (GBoxedCopyFunc) tombstone_id_dup, (GBoxedFreeFunc) tombstone_id_free); - g_once_init_leave (&tombstone_id_type_id__volatile, tombstone_id_type_id); - } - return tombstone_id_type_id__volatile; -} - - -TombstoneRow* -tombstone_row_construct (GType object_type) -{ - TombstoneRow* self = NULL; -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - self = (TombstoneRow*) g_type_create_instance (object_type); -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return self; -#line 309 "TombstoneTable.c" -} - - -TombstoneRow* -tombstone_row_new (void) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return tombstone_row_construct (TYPE_TOMBSTONE_ROW); -#line 318 "TombstoneTable.c" -} - - -static void -value_tombstone_row_init (GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - value->data[0].v_pointer = NULL; -#line 327 "TombstoneTable.c" -} - - -static void -value_tombstone_row_free_value (GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - tombstone_row_unref (value->data[0].v_pointer); -#line 338 "TombstoneTable.c" - } -} - - -static void -value_tombstone_row_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (src_value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - dest_value->data[0].v_pointer = tombstone_row_ref (src_value->data[0].v_pointer); -#line 351 "TombstoneTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - dest_value->data[0].v_pointer = NULL; -#line 355 "TombstoneTable.c" - } -} - - -static gpointer -value_tombstone_row_peek_pointer (const GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return value->data[0].v_pointer; -#line 365 "TombstoneTable.c" -} - - -static gchar* -value_tombstone_row_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (collect_values[0].v_pointer) { -#line 377 "TombstoneTable.c" - TombstoneRow * object; - object = collect_values[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (object->parent_instance.g_class == NULL) { -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 384 "TombstoneTable.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 388 "TombstoneTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - value->data[0].v_pointer = tombstone_row_ref (object); -#line 392 "TombstoneTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - value->data[0].v_pointer = NULL; -#line 396 "TombstoneTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return NULL; -#line 400 "TombstoneTable.c" -} - - -static gchar* -value_tombstone_row_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - TombstoneRow ** object_p; - object_p = collect_values[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (!object_p) { -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 416 "TombstoneTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (!value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - *object_p = NULL; -#line 422 "TombstoneTable.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - *object_p = value->data[0].v_pointer; -#line 426 "TombstoneTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - *object_p = tombstone_row_ref (value->data[0].v_pointer); -#line 430 "TombstoneTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return NULL; -#line 434 "TombstoneTable.c" -} - - -GParamSpec* -param_spec_tombstone_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecTombstoneRow* spec; -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_TOMBSTONE_ROW), NULL); -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return G_PARAM_SPEC (spec); -#line 454 "TombstoneTable.c" -} - - -gpointer -value_get_tombstone_row (const GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TOMBSTONE_ROW), NULL); -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return value->data[0].v_pointer; -#line 465 "TombstoneTable.c" -} - - -void -value_set_tombstone_row (GValue* value, - gpointer v_object) -{ - TombstoneRow * old; -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TOMBSTONE_ROW)); -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - old = value->data[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (v_object) { -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TOMBSTONE_ROW)); -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - value->data[0].v_pointer = v_object; -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - tombstone_row_ref (value->data[0].v_pointer); -#line 488 "TombstoneTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - value->data[0].v_pointer = NULL; -#line 492 "TombstoneTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (old) { -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - tombstone_row_unref (old); -#line 498 "TombstoneTable.c" - } -} - - -void -value_take_tombstone_row (GValue* value, - gpointer v_object) -{ - TombstoneRow * old; -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TOMBSTONE_ROW)); -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - old = value->data[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (v_object) { -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TOMBSTONE_ROW)); -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - value->data[0].v_pointer = v_object; -#line 520 "TombstoneTable.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - value->data[0].v_pointer = NULL; -#line 524 "TombstoneTable.c" - } -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (old) { -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - tombstone_row_unref (old); -#line 530 "TombstoneTable.c" - } -} - - -static void -tombstone_row_class_init (TombstoneRowClass * klass) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - tombstone_row_parent_class = g_type_class_peek_parent (klass); -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - ((TombstoneRowClass *) klass)->finalize = tombstone_row_finalize; -#line 542 "TombstoneTable.c" -} - - -static void -tombstone_row_instance_init (TombstoneRow * self) -{ -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - self->ref_count = 1; -#line 551 "TombstoneTable.c" -} - - -static void -tombstone_row_finalize (TombstoneRow * obj) -{ - TombstoneRow * self; -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TOMBSTONE_ROW, TombstoneRow); -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_signal_handlers_destroy (self); -#line 27 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _g_free0 (self->filepath); -#line 29 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _g_free0 (self->md5); -#line 567 "TombstoneTable.c" -} - - -GType -tombstone_row_get_type (void) -{ - static volatile gsize tombstone_row_type_id__volatile = 0; - if (g_once_init_enter (&tombstone_row_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_tombstone_row_init, value_tombstone_row_free_value, value_tombstone_row_copy_value, value_tombstone_row_peek_pointer, "p", value_tombstone_row_collect_value, "p", value_tombstone_row_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (TombstoneRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tombstone_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TombstoneRow), 0, (GInstanceInitFunc) tombstone_row_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType tombstone_row_type_id; - tombstone_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TombstoneRow", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&tombstone_row_type_id__volatile, tombstone_row_type_id); - } - return tombstone_row_type_id__volatile; -} - - -gpointer -tombstone_row_ref (gpointer instance) -{ - TombstoneRow * self; - self = instance; -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_atomic_int_inc (&self->ref_count); -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return instance; -#line 596 "TombstoneTable.c" -} - - -void -tombstone_row_unref (gpointer instance) -{ - TombstoneRow * self; - self = instance; -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - TOMBSTONE_ROW_GET_CLASS (self)->finalize (self); -#line 25 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 611 "TombstoneTable.c" - } -} - - -static TombstoneTable* -tombstone_table_construct (GType object_type) -{ - TombstoneTable* self = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gint _tmp5_; -#line 37 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - self = (TombstoneTable*) database_table_construct (object_type); -#line 38 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), "TombstoneTable"); -#line 41 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp0_ = database_table_db; -#line 41 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS " "TombstoneTable " "(" "id INTEGER PRIMARY KEY, " "filepath TEXT NOT NULL, " "filesize INTEGER, " "md5 TEXT, " "time_created INTEGER, " "reason INTEGER DEFAULT 0 " ")", -1, &_tmp1_, NULL); -#line 41 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _sqlite3_finalize0 (stmt); -#line 41 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - stmt = _tmp1_; -#line 41 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - res = _tmp2_; -#line 51 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp3_ = res; -#line 51 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 53 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp4_ = stmt; -#line 53 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - res = sqlite3_step (_tmp4_); -#line 54 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp5_ = res; -#line 54 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (_tmp5_ != SQLITE_DONE) { -#line 654 "TombstoneTable.c" - gint _tmp6_; -#line 55 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp6_ = res; -#line 55 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - database_table_fatal ("create TombstoneTable", _tmp6_); -#line 660 "TombstoneTable.c" - } -#line 37 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _sqlite3_finalize0 (stmt); -#line 37 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return self; -#line 666 "TombstoneTable.c" -} - - -static TombstoneTable* -tombstone_table_new (void) -{ -#line 37 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return tombstone_table_construct (TYPE_TOMBSTONE_TABLE); -#line 675 "TombstoneTable.c" -} - - -static gpointer -_database_table_ref0 (gpointer self) -{ -#line 62 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return self ? database_table_ref (self) : NULL; -#line 684 "TombstoneTable.c" -} - - -TombstoneTable* -tombstone_table_get_instance (void) -{ - TombstoneTable* result = NULL; - TombstoneTable* _tmp0_; - TombstoneTable* _tmp2_; - TombstoneTable* _tmp3_; -#line 59 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp0_ = tombstone_table_instance; -#line 59 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (_tmp0_ == NULL) { -#line 699 "TombstoneTable.c" - TombstoneTable* _tmp1_; -#line 60 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp1_ = tombstone_table_new (); -#line 60 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _database_table_unref0 (tombstone_table_instance); -#line 60 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - tombstone_table_instance = _tmp1_; -#line 707 "TombstoneTable.c" - } -#line 62 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp2_ = tombstone_table_instance; -#line 62 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp3_ = _database_table_ref0 (_tmp2_); -#line 62 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - result = _tmp3_; -#line 62 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return result; -#line 717 "TombstoneTable.c" -} - - -TombstoneRow* -tombstone_table_add (TombstoneTable* self, - const gchar* filepath, - gint64 filesize, - const gchar* md5, - TombstoneReason reason, - GError** error) -{ - TombstoneRow* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - time_t time_created = 0; - sqlite3_stmt* _tmp4_; - gchar* _tmp5_; - GDestroyNotify _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - gint _tmp9_; - sqlite3_stmt* _tmp10_; - gchar* _tmp11_; - GDestroyNotify _tmp12_; - gint _tmp13_; - sqlite3_stmt* _tmp14_; - time_t _tmp15_; - gint _tmp16_; - sqlite3_stmt* _tmp17_; - gint _tmp18_; - sqlite3_stmt* _tmp19_; - gint _tmp20_; - TombstoneRow* row = NULL; - TombstoneRow* _tmp22_; - TombstoneRow* _tmp23_; - sqlite3* _tmp24_; - TombstoneRow* _tmp25_; - gchar* _tmp26_; - TombstoneRow* _tmp27_; - TombstoneRow* _tmp28_; - gchar* _tmp29_; - TombstoneRow* _tmp30_; - time_t _tmp31_; - TombstoneRow* _tmp32_; - GError * _inner_error_ = NULL; -#line 65 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_return_val_if_fail (IS_TOMBSTONE_TABLE (self), NULL); -#line 65 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 68 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp0_ = database_table_db; -#line 68 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO TombstoneTable " "(filepath, filesize, md5, time_created, reason) " "VALUES (?, ?, ?, ?, ?)", -1, &_tmp1_, NULL); -#line 68 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _sqlite3_finalize0 (stmt); -#line 68 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - stmt = _tmp1_; -#line 68 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - res = _tmp2_; -#line 72 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp3_ = res; -#line 72 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 74 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - time_created = (time_t) now_sec (); -#line 76 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp4_ = stmt; -#line 76 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp5_ = g_strdup (filepath); -#line 76 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp6_ = g_free; -#line 76 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - res = sqlite3_bind_text (_tmp4_, 1, _tmp5_, -1, _tmp6_); -#line 77 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp7_ = res; -#line 77 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 78 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp8_ = stmt; -#line 78 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - res = sqlite3_bind_int64 (_tmp8_, 2, filesize); -#line 79 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp9_ = res; -#line 79 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK"); -#line 80 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp10_ = stmt; -#line 80 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp11_ = g_strdup (md5); -#line 80 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp12_ = g_free; -#line 80 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - res = sqlite3_bind_text (_tmp10_, 3, _tmp11_, -1, _tmp12_); -#line 81 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp13_ = res; -#line 81 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK"); -#line 82 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp14_ = stmt; -#line 82 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp15_ = time_created; -#line 82 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - res = sqlite3_bind_int64 (_tmp14_, 4, (gint64) _tmp15_); -#line 83 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp16_ = res; -#line 83 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _vala_assert (_tmp16_ == SQLITE_OK, "res == Sqlite.OK"); -#line 84 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp17_ = stmt; -#line 84 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - res = sqlite3_bind_int (_tmp17_, 5, tombstone_reason_serialize (reason)); -#line 85 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp18_ = res; -#line 85 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _vala_assert (_tmp18_ == SQLITE_OK, "res == Sqlite.OK"); -#line 87 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp19_ = stmt; -#line 87 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - res = sqlite3_step (_tmp19_); -#line 88 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp20_ = res; -#line 88 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (_tmp20_ != SQLITE_DONE) { -#line 845 "TombstoneTable.c" - gint _tmp21_; -#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp21_ = res; -#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - database_table_throw_error ("TombstoneTable.add", _tmp21_, &_inner_error_); -#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_propagate_error (error, _inner_error_); -#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _sqlite3_finalize0 (stmt); -#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return NULL; -#line 861 "TombstoneTable.c" - } else { -#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _sqlite3_finalize0 (stmt); -#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_clear_error (&_inner_error_); -#line 89 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return NULL; -#line 871 "TombstoneTable.c" - } - } - } -#line 91 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp22_ = tombstone_row_new (); -#line 91 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - row = _tmp22_; -#line 92 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp23_ = row; -#line 92 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp24_ = database_table_db; -#line 92 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - tombstone_id_init (&_tmp23_->id, sqlite3_last_insert_rowid (_tmp24_)); -#line 93 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp25_ = row; -#line 93 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp26_ = g_strdup (filepath); -#line 93 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _g_free0 (_tmp25_->filepath); -#line 93 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp25_->filepath = _tmp26_; -#line 94 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp27_ = row; -#line 94 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp27_->filesize = filesize; -#line 95 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp28_ = row; -#line 95 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp29_ = g_strdup (md5); -#line 95 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _g_free0 (_tmp28_->md5); -#line 95 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp28_->md5 = _tmp29_; -#line 96 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp30_ = row; -#line 96 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp31_ = time_created; -#line 96 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp30_->time_created = _tmp31_; -#line 97 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp32_ = row; -#line 97 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp32_->reason = reason; -#line 99 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - result = row; -#line 99 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _sqlite3_finalize0 (stmt); -#line 99 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return result; -#line 921 "TombstoneTable.c" -} - - -static gpointer -_tombstone_row_ref0 (gpointer self) -{ -#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return self ? tombstone_row_ref (self) : NULL; -#line 930 "TombstoneTable.c" -} - - -TombstoneRow** -tombstone_table_fetch_all (TombstoneTable* self, - int* result_length1, - GError** error) -{ - TombstoneRow** result = NULL; - gint row_count = 0; - gint _tmp0_; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp2_; - sqlite3_stmt* _tmp3_ = NULL; - gint _tmp4_; - gint _tmp5_; - TombstoneRow** rows = NULL; - gint _tmp6_; - TombstoneRow** _tmp7_; - gint rows_length1; - gint _rows_size_; - gint index = 0; - gint _tmp35_; - gint _tmp36_; - TombstoneRow** _tmp37_; - gint _tmp37__length1; - GError * _inner_error_ = NULL; -#line 102 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_return_val_if_fail (IS_TOMBSTONE_TABLE (self), NULL); -#line 103 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - row_count = database_table_get_row_count (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable)); -#line 104 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp0_ = row_count; -#line 104 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (_tmp0_ == 0) { -#line 967 "TombstoneTable.c" - TombstoneRow** _tmp1_; - gint _tmp1__length1; -#line 105 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp1_ = NULL; -#line 105 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp1__length1 = 0; -#line 105 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (result_length1) { -#line 105 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - *result_length1 = _tmp1__length1; -#line 978 "TombstoneTable.c" - } -#line 105 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - result = _tmp1_; -#line 105 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return result; -#line 984 "TombstoneTable.c" - } -#line 108 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp2_ = database_table_db; -#line 108 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp4_ = sqlite3_prepare_v2 (_tmp2_, "SELECT id, filepath, filesize, md5, time_created, reason " "FROM TombstoneTable", -1, &_tmp3_, NULL); -#line 108 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _sqlite3_finalize0 (stmt); -#line 108 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - stmt = _tmp3_; -#line 108 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - res = _tmp4_; -#line 110 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp5_ = res; -#line 110 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK"); -#line 112 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp6_ = row_count; -#line 112 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp7_ = g_new0 (TombstoneRow*, _tmp6_ + 1); -#line 112 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - rows = _tmp7_; -#line 112 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - rows_length1 = _tmp6_; -#line 112 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _rows_size_ = rows_length1; -#line 114 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - index = 0; -#line 1012 "TombstoneTable.c" - { - gboolean _tmp8_ = FALSE; -#line 115 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp8_ = TRUE; -#line 115 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - while (TRUE) { -#line 1019 "TombstoneTable.c" - sqlite3_stmt* _tmp9_; - gint _tmp10_; - TombstoneRow* row = NULL; - TombstoneRow* _tmp13_; - TombstoneRow* _tmp14_; - sqlite3_stmt* _tmp15_; - TombstoneRow* _tmp16_; - sqlite3_stmt* _tmp17_; - const gchar* _tmp18_; - gchar* _tmp19_; - TombstoneRow* _tmp20_; - sqlite3_stmt* _tmp21_; - TombstoneRow* _tmp22_; - sqlite3_stmt* _tmp23_; - const gchar* _tmp24_; - gchar* _tmp25_; - TombstoneRow* _tmp26_; - sqlite3_stmt* _tmp27_; - TombstoneRow* _tmp28_; - sqlite3_stmt* _tmp29_; - TombstoneRow** _tmp30_; - gint _tmp30__length1; - gint _tmp31_; - TombstoneRow* _tmp32_; - TombstoneRow* _tmp33_; - TombstoneRow* _tmp34_; -#line 115 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (!_tmp8_) { -#line 1048 "TombstoneTable.c" - } -#line 115 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp8_ = FALSE; -#line 116 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp9_ = stmt; -#line 116 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - res = sqlite3_step (_tmp9_); -#line 117 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp10_ = res; -#line 117 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (_tmp10_ == SQLITE_DONE) { -#line 118 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - break; -#line 1062 "TombstoneTable.c" - } else { - gint _tmp11_; -#line 119 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp11_ = res; -#line 119 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (_tmp11_ != SQLITE_ROW) { -#line 1069 "TombstoneTable.c" - gint _tmp12_; -#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp12_ = res; -#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - database_table_throw_error ("TombstoneTable.fetch_all", _tmp12_, &_inner_error_); -#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_propagate_error (error, _inner_error_); -#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - rows = (_vala_array_free (rows, rows_length1, (GDestroyNotify) tombstone_row_unref), NULL); -#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _sqlite3_finalize0 (stmt); -#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return NULL; -#line 1087 "TombstoneTable.c" - } else { -#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - rows = (_vala_array_free (rows, rows_length1, (GDestroyNotify) tombstone_row_unref), NULL); -#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _sqlite3_finalize0 (stmt); -#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_clear_error (&_inner_error_); -#line 120 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return NULL; -#line 1099 "TombstoneTable.c" - } - } - } - } -#line 122 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp13_ = tombstone_row_new (); -#line 122 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - row = _tmp13_; -#line 123 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp14_ = row; -#line 123 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp15_ = stmt; -#line 123 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - tombstone_id_init (&_tmp14_->id, sqlite3_column_int64 (_tmp15_, 0)); -#line 124 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp16_ = row; -#line 124 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp17_ = stmt; -#line 124 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp18_ = sqlite3_column_text (_tmp17_, 1); -#line 124 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp19_ = g_strdup (_tmp18_); -#line 124 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _g_free0 (_tmp16_->filepath); -#line 124 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp16_->filepath = _tmp19_; -#line 125 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp20_ = row; -#line 125 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp21_ = stmt; -#line 125 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp20_->filesize = sqlite3_column_int64 (_tmp21_, 2); -#line 126 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp22_ = row; -#line 126 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp23_ = stmt; -#line 126 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp24_ = sqlite3_column_text (_tmp23_, 3); -#line 126 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp25_ = g_strdup (_tmp24_); -#line 126 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _g_free0 (_tmp22_->md5); -#line 126 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp22_->md5 = _tmp25_; -#line 127 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp26_ = row; -#line 127 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp27_ = stmt; -#line 127 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp26_->time_created = (time_t) sqlite3_column_int64 (_tmp27_, 4); -#line 128 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp28_ = row; -#line 128 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp29_ = stmt; -#line 128 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp28_->reason = tombstone_reason_unserialize (sqlite3_column_int (_tmp29_, 5)); -#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp30_ = rows; -#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp30__length1 = rows_length1; -#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp31_ = index; -#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - index = _tmp31_ + 1; -#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp32_ = row; -#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp33_ = _tombstone_row_ref0 (_tmp32_); -#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tombstone_row_unref0 (_tmp30_[_tmp31_]); -#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp30_[_tmp31_] = _tmp33_; -#line 130 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp34_ = _tmp30_[_tmp31_]; -#line 115 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tombstone_row_unref0 (row); -#line 1176 "TombstoneTable.c" - } - } -#line 133 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp35_ = index; -#line 133 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp36_ = row_count; -#line 133 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _vala_assert (_tmp35_ == _tmp36_, "index == row_count"); -#line 135 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp37_ = rows; -#line 135 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp37__length1 = rows_length1; -#line 135 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (result_length1) { -#line 135 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - *result_length1 = _tmp37__length1; -#line 1193 "TombstoneTable.c" - } -#line 135 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - result = _tmp37_; -#line 135 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _sqlite3_finalize0 (stmt); -#line 135 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return result; -#line 1201 "TombstoneTable.c" -} - - -void -tombstone_table_update_file (TombstoneTable* self, - TombstoneID* tombstone_id, - const gchar* filepath, - GError** error) -{ - TombstoneID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 138 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_return_if_fail (IS_TOMBSTONE_TABLE (self)); -#line 138 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_return_if_fail (tombstone_id != NULL); -#line 138 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_return_if_fail (filepath != NULL); -#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp0_ = *tombstone_id; -#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp1_ = _tmp0_.id; -#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "filepath", filepath, &_inner_error_); -#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_propagate_error (error, _inner_error_); -#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return; -#line 1234 "TombstoneTable.c" - } else { -#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_clear_error (&_inner_error_); -#line 139 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return; -#line 1242 "TombstoneTable.c" - } - } -} - - -void -tombstone_table_remove (TombstoneTable* self, - TombstoneID* tombstone_id, - GError** error) -{ - TombstoneID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 142 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_return_if_fail (IS_TOMBSTONE_TABLE (self)); -#line 142 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_return_if_fail (tombstone_id != NULL); -#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp0_ = *tombstone_id; -#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - _tmp1_ = _tmp0_.id; -#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - database_table_delete_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, &_inner_error_); -#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_propagate_error (error, _inner_error_); -#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return; -#line 1274 "TombstoneTable.c" - } else { -#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - g_clear_error (&_inner_error_); -#line 143 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - return; -#line 1282 "TombstoneTable.c" - } - } -} - - -static void -tombstone_table_class_init (TombstoneTableClass * klass) -{ -#line 34 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - tombstone_table_parent_class = g_type_class_peek_parent (klass); -#line 34 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - ((DatabaseTableClass *) klass)->finalize = tombstone_table_finalize; -#line 1295 "TombstoneTable.c" -} - - -static void -tombstone_table_instance_init (TombstoneTable * self) -{ -} - - -static void -tombstone_table_finalize (DatabaseTable * obj) -{ - TombstoneTable * self; -#line 34 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TOMBSTONE_TABLE, TombstoneTable); -#line 34 "/home/jens/Source/shotwell/src/db/TombstoneTable.vala" - DATABASE_TABLE_CLASS (tombstone_table_parent_class)->finalize (obj); -#line 1313 "TombstoneTable.c" -} - - -GType -tombstone_table_get_type (void) -{ - static volatile gsize tombstone_table_type_id__volatile = 0; - if (g_once_init_enter (&tombstone_table_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TombstoneTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tombstone_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TombstoneTable), 0, (GInstanceInitFunc) tombstone_table_instance_init, NULL }; - GType tombstone_table_type_id; - tombstone_table_type_id = g_type_register_static (TYPE_DATABASE_TABLE, "TombstoneTable", &g_define_type_info, 0); - g_once_init_leave (&tombstone_table_type_id__volatile, tombstone_table_type_id); - } - return tombstone_table_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/db/VersionTable.c b/src/db/VersionTable.c deleted file mode 100644 index a5847d7..0000000 --- a/src/db/VersionTable.c +++ /dev/null @@ -1,597 +0,0 @@ -/* VersionTable.c generated by valac 0.40.4, the Vala compiler - * generated from VersionTable.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include - - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; -typedef struct _DatabaseTablePrivate DatabaseTablePrivate; - -#define TYPE_VERSION_TABLE (version_table_get_type ()) -#define VERSION_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VERSION_TABLE, VersionTable)) -#define VERSION_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VERSION_TABLE, VersionTableClass)) -#define IS_VERSION_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VERSION_TABLE)) -#define IS_VERSION_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VERSION_TABLE)) -#define VERSION_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VERSION_TABLE, VersionTableClass)) - -typedef struct _VersionTable VersionTable; -typedef struct _VersionTableClass VersionTableClass; -typedef struct _VersionTablePrivate VersionTablePrivate; -#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL))) -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _DatabaseTable { - GTypeInstance parent_instance; - volatile int ref_count; - DatabaseTablePrivate * priv; - gchar* table_name; -}; - -struct _DatabaseTableClass { - GTypeClass parent_class; - void (*finalize) (DatabaseTable *self); -}; - -struct _VersionTable { - DatabaseTable parent_instance; - VersionTablePrivate * priv; -}; - -struct _VersionTableClass { - DatabaseTableClass parent_class; -}; - - -static gpointer version_table_parent_class = NULL; -static VersionTable* version_table_instance; -static VersionTable* version_table_instance = NULL; -extern sqlite3* database_table_db; - -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType version_table_get_type (void) G_GNUC_CONST; -static VersionTable* version_table_new (void); -static VersionTable* version_table_construct (GType object_type); -DatabaseTable* database_table_construct (GType object_type); -void database_table_fatal (const gchar* op, - gint res); -void database_table_set_table_name (DatabaseTable* self, - const gchar* table_name); -VersionTable* version_table_get_instance (void); -gint version_table_get_version (VersionTable* self, - gchar* * app_version); -void version_table_set_version (VersionTable* self, - gint version, - const gchar* app_version, - const gchar* user_data); -void version_table_update_version (VersionTable* self, - gint version, - const gchar* app_version); -static void version_table_finalize (DatabaseTable * obj); - - -static VersionTable* -version_table_construct (GType object_type) -{ - VersionTable* self = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gint _tmp5_; -#line 10 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - self = (VersionTable*) database_table_construct (object_type); -#line 12 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp0_ = database_table_db; -#line 12 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS VersionTable (" "id INTEGER PRIMARY KEY, " "schema_version INTEGER, " "app_version TEXT, " "user_data TEXT NULL" ")", -1, &_tmp1_, NULL); -#line 12 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _sqlite3_finalize0 (stmt); -#line 12 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - stmt = _tmp1_; -#line 12 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = _tmp2_; -#line 18 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp3_ = res; -#line 18 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 20 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp4_ = stmt; -#line 20 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = sqlite3_step (_tmp4_); -#line 21 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp5_ = res; -#line 21 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - if (_tmp5_ != SQLITE_DONE) { -#line 145 "VersionTable.c" - gint _tmp6_; -#line 22 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp6_ = res; -#line 22 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - database_table_fatal ("create version table", _tmp6_); -#line 151 "VersionTable.c" - } -#line 24 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), "VersionTable"); -#line 10 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _sqlite3_finalize0 (stmt); -#line 10 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - return self; -#line 159 "VersionTable.c" -} - - -static VersionTable* -version_table_new (void) -{ -#line 10 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - return version_table_construct (TYPE_VERSION_TABLE); -#line 168 "VersionTable.c" -} - - -static gpointer -_database_table_ref0 (gpointer self) -{ -#line 31 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - return self ? database_table_ref (self) : NULL; -#line 177 "VersionTable.c" -} - - -VersionTable* -version_table_get_instance (void) -{ - VersionTable* result = NULL; - VersionTable* _tmp0_; - VersionTable* _tmp2_; - VersionTable* _tmp3_; -#line 28 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp0_ = version_table_instance; -#line 28 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - if (_tmp0_ == NULL) { -#line 192 "VersionTable.c" - VersionTable* _tmp1_; -#line 29 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp1_ = version_table_new (); -#line 29 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _database_table_unref0 (version_table_instance); -#line 29 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - version_table_instance = _tmp1_; -#line 200 "VersionTable.c" - } -#line 31 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp2_ = version_table_instance; -#line 31 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp3_ = _database_table_ref0 (_tmp2_); -#line 31 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - result = _tmp3_; -#line 31 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - return result; -#line 210 "VersionTable.c" -} - - -gint -version_table_get_version (VersionTable* self, - gchar* * app_version) -{ - gchar* _vala_app_version = NULL; - gint result = 0; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gint _tmp5_; - sqlite3_stmt* _tmp8_; - const gchar* _tmp9_; - gchar* _tmp10_; - sqlite3_stmt* _tmp11_; -#line 34 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - g_return_val_if_fail (IS_VERSION_TABLE (self), 0); -#line 36 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp0_ = database_table_db; -#line 36 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT schema_version, app_version FROM VersionTable ORDER BY schema_v" \ -"ersion DESC LIMIT 1", -1, &_tmp1_, NULL); -#line 36 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _sqlite3_finalize0 (stmt); -#line 36 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - stmt = _tmp1_; -#line 36 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = _tmp2_; -#line 38 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp3_ = res; -#line 38 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 40 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp4_ = stmt; -#line 40 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = sqlite3_step (_tmp4_); -#line 41 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp5_ = res; -#line 41 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - if (_tmp5_ != SQLITE_ROW) { -#line 256 "VersionTable.c" - gint _tmp6_; -#line 42 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp6_ = res; -#line 42 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - if (_tmp6_ != SQLITE_DONE) { -#line 262 "VersionTable.c" - gint _tmp7_; -#line 43 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp7_ = res; -#line 43 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - database_table_fatal ("get_version", _tmp7_); -#line 268 "VersionTable.c" - } -#line 45 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _g_free0 (_vala_app_version); -#line 45 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_app_version = NULL; -#line 47 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - result = -1; -#line 47 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _sqlite3_finalize0 (stmt); -#line 47 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - if (app_version) { -#line 47 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - *app_version = _vala_app_version; -#line 282 "VersionTable.c" - } else { -#line 47 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _g_free0 (_vala_app_version); -#line 286 "VersionTable.c" - } -#line 47 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - return result; -#line 290 "VersionTable.c" - } -#line 50 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp8_ = stmt; -#line 50 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp9_ = sqlite3_column_text (_tmp8_, 1); -#line 50 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp10_ = g_strdup (_tmp9_); -#line 50 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _g_free0 (_vala_app_version); -#line 50 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_app_version = _tmp10_; -#line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp11_ = stmt; -#line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - result = sqlite3_column_int (_tmp11_, 0); -#line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _sqlite3_finalize0 (stmt); -#line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - if (app_version) { -#line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - *app_version = _vala_app_version; -#line 312 "VersionTable.c" - } else { -#line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _g_free0 (_vala_app_version); -#line 316 "VersionTable.c" - } -#line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - return result; -#line 320 "VersionTable.c" -} - - -void -version_table_set_version (VersionTable* self, - gint version, - const gchar* app_version, - const gchar* user_data) -{ - sqlite3_stmt* stmt = NULL; - gchar* bitbucket = NULL; - gchar* _tmp0_ = NULL; - gint _tmp1_; - gint res = 0; - sqlite3_stmt* _tmp10_; - gint _tmp11_; - sqlite3_stmt* _tmp12_; - gchar* _tmp13_; - GDestroyNotify _tmp14_; - gint _tmp15_; - sqlite3_stmt* _tmp16_; - gchar* _tmp17_; - GDestroyNotify _tmp18_; - gint _tmp19_; - sqlite3_stmt* _tmp20_; - gint _tmp21_; -#line 55 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - g_return_if_fail (IS_VERSION_TABLE (self)); -#line 55 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - g_return_if_fail (app_version != NULL); -#line 59 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp1_ = version_table_get_version (self, &_tmp0_); -#line 59 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _g_free0 (bitbucket); -#line 59 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - bitbucket = _tmp0_; -#line 59 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - if (_tmp1_ != -1) { -#line 359 "VersionTable.c" - gint res = 0; - sqlite3* _tmp2_; - sqlite3_stmt* _tmp3_ = NULL; - gint _tmp4_; - gint _tmp5_; -#line 61 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp2_ = database_table_db; -#line 61 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp4_ = sqlite3_prepare_v2 (_tmp2_, "UPDATE VersionTable SET schema_version=?, app_version=?, user_data=?", -1, &_tmp3_, NULL); -#line 61 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _sqlite3_finalize0 (stmt); -#line 61 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - stmt = _tmp3_; -#line 61 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = _tmp4_; -#line 63 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp5_ = res; -#line 63 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK"); -#line 379 "VersionTable.c" - } else { - gint res = 0; - sqlite3* _tmp6_; - sqlite3_stmt* _tmp7_ = NULL; - gint _tmp8_; - gint _tmp9_; -#line 66 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp6_ = database_table_db; -#line 66 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp8_ = sqlite3_prepare_v2 (_tmp6_, "INSERT INTO VersionTable (schema_version, app_version, user_data) VALU" \ -"ES (?,?, ?)", -1, &_tmp7_, NULL); -#line 66 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _sqlite3_finalize0 (stmt); -#line 66 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - stmt = _tmp7_; -#line 66 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = _tmp8_; -#line 68 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp9_ = res; -#line 68 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK"); -#line 400 "VersionTable.c" - } -#line 71 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp10_ = stmt; -#line 71 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = sqlite3_bind_int (_tmp10_, 1, version); -#line 72 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp11_ = res; -#line 72 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK"); -#line 73 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp12_ = stmt; -#line 73 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp13_ = g_strdup (app_version); -#line 73 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp14_ = g_free; -#line 73 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = sqlite3_bind_text (_tmp12_, 2, _tmp13_, -1, _tmp14_); -#line 74 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp15_ = res; -#line 74 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_assert (_tmp15_ == SQLITE_OK, "res == Sqlite.OK"); -#line 75 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp16_ = stmt; -#line 75 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp17_ = g_strdup (user_data); -#line 75 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp18_ = g_free; -#line 75 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = sqlite3_bind_text (_tmp16_, 3, _tmp17_, -1, _tmp18_); -#line 76 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp19_ = res; -#line 76 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_assert (_tmp19_ == SQLITE_OK, "res == Sqlite.OK"); -#line 78 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp20_ = stmt; -#line 78 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = sqlite3_step (_tmp20_); -#line 79 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp21_ = res; -#line 79 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - if (_tmp21_ != SQLITE_DONE) { -#line 442 "VersionTable.c" - gchar* _tmp22_; - gchar* _tmp23_; - gint _tmp24_; -#line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp22_ = g_strdup_printf ("set_version %d %s %s", version, app_version, user_data); -#line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp23_ = _tmp22_; -#line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp24_ = res; -#line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - database_table_fatal (_tmp23_, _tmp24_); -#line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _g_free0 (_tmp23_); -#line 456 "VersionTable.c" - } -#line 55 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _g_free0 (bitbucket); -#line 55 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _sqlite3_finalize0 (stmt); -#line 462 "VersionTable.c" -} - - -void -version_table_update_version (VersionTable* self, - gint version, - const gchar* app_version) -{ - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gint _tmp5_; - sqlite3_stmt* _tmp6_; - gchar* _tmp7_; - GDestroyNotify _tmp8_; - gint _tmp9_; - sqlite3_stmt* _tmp10_; - gint _tmp11_; -#line 83 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - g_return_if_fail (IS_VERSION_TABLE (self)); -#line 83 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - g_return_if_fail (app_version != NULL); -#line 85 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp0_ = database_table_db; -#line 85 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE VersionTable SET schema_version=?, app_version=?", -1, &_tmp1_, NULL); -#line 85 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _sqlite3_finalize0 (stmt); -#line 85 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - stmt = _tmp1_; -#line 85 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = _tmp2_; -#line 86 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp3_ = res; -#line 86 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 88 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp4_ = stmt; -#line 88 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = sqlite3_bind_int (_tmp4_, 1, version); -#line 89 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp5_ = res; -#line 89 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK"); -#line 90 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp6_ = stmt; -#line 90 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp7_ = g_strdup (app_version); -#line 90 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp8_ = g_free; -#line 90 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = sqlite3_bind_text (_tmp6_, 2, _tmp7_, -1, _tmp8_); -#line 91 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp9_ = res; -#line 91 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK"); -#line 93 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp10_ = stmt; -#line 93 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = sqlite3_step (_tmp10_); -#line 94 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp11_ = res; -#line 94 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - if (_tmp11_ != SQLITE_DONE) { -#line 531 "VersionTable.c" - gchar* _tmp12_; - gchar* _tmp13_; - gint _tmp14_; -#line 95 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp12_ = g_strdup_printf ("update_version %d", version); -#line 95 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp13_ = _tmp12_; -#line 95 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp14_ = res; -#line 95 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - database_table_fatal (_tmp13_, _tmp14_); -#line 95 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _g_free0 (_tmp13_); -#line 545 "VersionTable.c" - } -#line 83 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _sqlite3_finalize0 (stmt); -#line 549 "VersionTable.c" -} - - -static void -version_table_class_init (VersionTableClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - version_table_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - ((DatabaseTableClass *) klass)->finalize = version_table_finalize; -#line 560 "VersionTable.c" -} - - -static void -version_table_instance_init (VersionTable * self) -{ -} - - -static void -version_table_finalize (DatabaseTable * obj) -{ - VersionTable * self; -#line 7 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VERSION_TABLE, VersionTable); -#line 7 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - DATABASE_TABLE_CLASS (version_table_parent_class)->finalize (obj); -#line 578 "VersionTable.c" -} - - -GType -version_table_get_type (void) -{ - static volatile gsize version_table_type_id__volatile = 0; - if (g_once_init_enter (&version_table_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (VersionTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) version_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VersionTable), 0, (GInstanceInitFunc) version_table_instance_init, NULL }; - GType version_table_type_id; - version_table_type_id = g_type_register_static (TYPE_DATABASE_TABLE, "VersionTable", &g_define_type_info, 0); - g_once_init_leave (&version_table_type_id__volatile, version_table_type_id); - } - return version_table_type_id__volatile; -} - - - diff --git a/src/db/VideoTable.c b/src/db/VideoTable.c deleted file mode 100644 index 0780862..0000000 --- a/src/db/VideoTable.c +++ /dev/null @@ -1,3266 +0,0 @@ -/* VideoTable.c generated by valac 0.40.4, the Vala compiler - * generated from VideoTable.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_VIDEO_ID (video_id_get_type ()) -typedef struct _VideoID VideoID; - -#define TYPE_VIDEO_ROW (video_row_get_type ()) -#define VIDEO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_ROW, VideoRow)) -#define VIDEO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_ROW, VideoRowClass)) -#define IS_VIDEO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_ROW)) -#define IS_VIDEO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_ROW)) -#define VIDEO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_ROW, VideoRowClass)) - -typedef struct _VideoRow VideoRow; -typedef struct _VideoRowClass VideoRowClass; -typedef struct _VideoRowPrivate VideoRowPrivate; - -#define TYPE_IMPORT_ID (import_id_get_type ()) -typedef struct _ImportID ImportID; - -#define TYPE_EVENT_ID (event_id_get_type ()) -typedef struct _EventID EventID; - -#define TYPE_RATING (rating_get_type ()) -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _ParamSpecVideoRow ParamSpecVideoRow; - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; -typedef struct _DatabaseTablePrivate DatabaseTablePrivate; - -#define TYPE_VIDEO_TABLE (video_table_get_type ()) -#define VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_TABLE, VideoTable)) -#define VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_TABLE, VideoTableClass)) -#define IS_VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_TABLE)) -#define IS_VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_TABLE)) -#define VIDEO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_TABLE, VideoTableClass)) - -typedef struct _VideoTable VideoTable; -typedef struct _VideoTableClass VideoTableClass; -typedef struct _VideoTablePrivate VideoTablePrivate; -#define _sqlite3_finalize0(var) ((var == NULL) ? NULL : (var = (sqlite3_finalize (var), NULL))) -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) -#define _video_row_unref0(var) ((var == NULL) ? NULL : (var = (video_row_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _VideoID { - gint64 id; -}; - -struct _ImportID { - gint64 id; -}; - -struct _EventID { - gint64 id; -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -struct _VideoRow { - GTypeInstance parent_instance; - volatile int ref_count; - VideoRowPrivate * priv; - VideoID video_id; - gchar* filepath; - gint64 filesize; - time_t timestamp; - gint width; - gint height; - gdouble clip_duration; - gboolean is_interpretable; - time_t exposure_time; - ImportID import_id; - EventID event_id; - gchar* md5; - time_t time_created; - Rating rating; - gchar* title; - gchar* backlinks; - time_t time_reimported; - guint64 flags; - gchar* comment; -}; - -struct _VideoRowClass { - GTypeClass parent_class; - void (*finalize) (VideoRow *self); -}; - -struct _ParamSpecVideoRow { - GParamSpec parent_instance; -}; - -struct _DatabaseTable { - GTypeInstance parent_instance; - volatile int ref_count; - DatabaseTablePrivate * priv; - gchar* table_name; -}; - -struct _DatabaseTableClass { - GTypeClass parent_class; - void (*finalize) (DatabaseTable *self); -}; - -struct _VideoTable { - DatabaseTable parent_instance; - VideoTablePrivate * priv; -}; - -struct _VideoTableClass { - DatabaseTableClass parent_class; -}; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () - -static gpointer video_row_parent_class = NULL; -static gpointer video_table_parent_class = NULL; -static VideoTable* video_table_instance; -static VideoTable* video_table_instance = NULL; -extern sqlite3* database_table_db; - -GType video_id_get_type (void) G_GNUC_CONST; -VideoID* video_id_dup (const VideoID* self); -void video_id_free (VideoID* self); -#define VIDEO_ID_INVALID ((gint64) -1) -void video_id_init (VideoID *self, - gint64 id); -gboolean video_id_is_invalid (VideoID *self); -gboolean video_id_is_valid (VideoID *self); -guint video_id_hash (VideoID* a); -guint int64_hash (gint64* n); -gboolean video_id_equal (void* a, - void* b); -gchar* video_id_upgrade_video_id_to_source_id (VideoID* video_id); -#define VIDEO_TYPENAME "video" -gpointer video_row_ref (gpointer instance); -void video_row_unref (gpointer instance); -GParamSpec* param_spec_video_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_video_row (GValue* value, - gpointer v_object); -void value_take_video_row (GValue* value, - gpointer v_object); -gpointer value_get_video_row (const GValue* value); -GType video_row_get_type (void) G_GNUC_CONST; -GType import_id_get_type (void) G_GNUC_CONST; -ImportID* import_id_dup (const ImportID* self); -void import_id_free (ImportID* self); -GType event_id_get_type (void) G_GNUC_CONST; -EventID* event_id_dup (const EventID* self); -void event_id_free (EventID* self); -GType rating_get_type (void) G_GNUC_CONST; -VideoRow* video_row_new (void); -VideoRow* video_row_construct (GType object_type); -static void video_row_finalize (VideoRow * obj); -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType video_table_get_type (void) G_GNUC_CONST; -static VideoTable* video_table_new (void); -static VideoTable* video_table_construct (GType object_type); -DatabaseTable* database_table_construct (GType object_type); -void database_table_fatal (const gchar* op, - gint res); -void database_table_set_table_name (DatabaseTable* self, - const gchar* table_name); -VideoTable* video_table_get_instance (void); -GQuark database_error_quark (void); -void video_table_add (VideoTable* self, - VideoRow* video_row, - VideoID* result, - GError** error); -gulong now_sec (void); -#define EVENT_ID_INVALID ((gint64) -1) -void database_table_throw_error (const gchar* method, - gint res, - GError** error); -void event_id_init (EventID *self, - gint64 id); -gboolean video_table_drop_event (VideoTable* self, - EventID* event_id); -VideoRow* video_table_get_row (VideoTable* self, - VideoID* video_id); -Rating rating_unserialize (gint value); -GeeArrayList* video_table_get_all (VideoTable* self); -void video_table_set_filepath (VideoTable* self, - VideoID* video_id, - const gchar* filepath, - GError** error); -void database_table_update_text_by_id_2 (DatabaseTable* self, - gint64 id, - const gchar* column, - const gchar* text, - GError** error); -void video_table_set_title (VideoTable* self, - VideoID* video_id, - const gchar* new_title, - GError** error); -void video_table_set_comment (VideoTable* self, - VideoID* video_id, - const gchar* new_comment, - GError** error); -void video_table_set_exposure_time (VideoTable* self, - VideoID* video_id, - time_t time, - GError** error); -void database_table_update_int64_by_id_2 (DatabaseTable* self, - gint64 id, - const gchar* column, - gint64 value, - GError** error); -void video_table_set_rating (VideoTable* self, - VideoID* video_id, - Rating rating, - GError** error); -gint rating_serialize (Rating self); -void video_table_set_flags (VideoTable* self, - VideoID* video_id, - guint64 flags, - GError** error); -void video_table_update_backlinks (VideoTable* self, - VideoID* video_id, - const gchar* backlinks, - GError** error); -void video_table_update_is_interpretable (VideoTable* self, - VideoID* video_id, - gboolean is_interpretable, - GError** error); -void database_table_update_int_by_id_2 (DatabaseTable* self, - gint64 id, - const gchar* column, - gint value, - GError** error); -gboolean video_table_set_event (VideoTable* self, - VideoID* video_id, - EventID* event_id); -gboolean database_table_update_int64_by_id (DatabaseTable* self, - gint64 id, - const gchar* column, - gint64 value); -void video_table_remove_by_file (VideoTable* self, - GFile* file, - GError** error); -void video_table_remove (VideoTable* self, - VideoID* videoID, - GError** error); -gboolean video_table_is_video_stored (VideoTable* self, - GFile* file); -void video_table_get_id (VideoTable* self, - GFile* file, - VideoID* result); -GeeArrayList* video_table_get_videos (VideoTable* self, - GError** error); -static sqlite3_stmt* video_table_get_duplicate_stmt (VideoTable* self, - GFile* file, - const gchar* md5); -gboolean video_table_has_duplicate (VideoTable* self, - GFile* file, - const gchar* md5); -VideoID* video_table_get_duplicate_ids (VideoTable* self, - GFile* file, - const gchar* md5, - int* result_length1); -static void _vala_array_add3 (VideoID* * array, - int* length, - int* size, - const VideoID* value); -GeeArrayList* video_table_get_event_source_ids (VideoTable* self, - EventID* event_id); -void video_table_set_timestamp (VideoTable* self, - VideoID* video_id, - time_t timestamp, - GError** error); -static void video_table_finalize (DatabaseTable * obj); - - -void -video_id_init (VideoID *self, - gint64 id) -{ -#line 12 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - memset (self, 0, sizeof (VideoID)); -#line 13 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - (*self).id = id; -#line 348 "VideoTable.c" -} - - -gboolean -video_id_is_invalid (VideoID *self) -{ - gboolean result = FALSE; - gint64 _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = (*self).id; -#line 17 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = _tmp0_ == VIDEO_ID_INVALID; -#line 17 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 363 "VideoTable.c" -} - - -gboolean -video_id_is_valid (VideoID *self) -{ - gboolean result = FALSE; - gint64 _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = (*self).id; -#line 21 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = _tmp0_ != VIDEO_ID_INVALID; -#line 21 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 378 "VideoTable.c" -} - - -guint -video_id_hash (VideoID* a) -{ - guint result = 0U; - gint64 _tmp0_; -#line 25 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = (*a).id; -#line 25 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = int64_hash (&_tmp0_); -#line 25 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 393 "VideoTable.c" -} - - -gboolean -video_id_equal (void* a, - void* b) -{ - gboolean result = FALSE; - gint64 _tmp0_; - gint64 _tmp1_; -#line 29 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = (*((VideoID*) a)).id; -#line 29 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp1_ = (*((VideoID*) b)).id; -#line 29 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = _tmp0_ == _tmp1_; -#line 29 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 412 "VideoTable.c" -} - - -gchar* -video_id_upgrade_video_id_to_source_id (VideoID* video_id) -{ - gchar* result = NULL; - VideoID _tmp0_; - gint64 _tmp1_; - gchar* _tmp2_; -#line 32 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (video_id != NULL, NULL); -#line 33 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = *video_id; -#line 33 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp1_ = _tmp0_.id; -#line 33 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = g_strdup_printf ("%s-%016" G_GINT64_MODIFIER "x", VIDEO_TYPENAME, _tmp1_); -#line 33 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = _tmp2_; -#line 33 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 435 "VideoTable.c" -} - - -VideoID* -video_id_dup (const VideoID* self) -{ - VideoID* dup; -#line 7 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - dup = g_new0 (VideoID, 1); -#line 7 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - memcpy (dup, self, sizeof (VideoID)); -#line 7 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return dup; -#line 449 "VideoTable.c" -} - - -void -video_id_free (VideoID* self) -{ -#line 7 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_free (self); -#line 458 "VideoTable.c" -} - - -GType -video_id_get_type (void) -{ - static volatile gsize video_id_type_id__volatile = 0; - if (g_once_init_enter (&video_id_type_id__volatile)) { - GType video_id_type_id; - video_id_type_id = g_boxed_type_register_static ("VideoID", (GBoxedCopyFunc) video_id_dup, (GBoxedFreeFunc) video_id_free); - g_once_init_leave (&video_id_type_id__volatile, video_id_type_id); - } - return video_id_type_id__volatile; -} - - -VideoRow* -video_row_construct (GType object_type) -{ - VideoRow* self = NULL; -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - self = (VideoRow*) g_type_create_instance (object_type); -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return self; -#line 483 "VideoTable.c" -} - - -VideoRow* -video_row_new (void) -{ -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return video_row_construct (TYPE_VIDEO_ROW); -#line 492 "VideoTable.c" -} - - -static void -value_video_row_init (GValue* value) -{ -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - value->data[0].v_pointer = NULL; -#line 501 "VideoTable.c" -} - - -static void -value_video_row_free_value (GValue* value) -{ -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (value->data[0].v_pointer) { -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - video_row_unref (value->data[0].v_pointer); -#line 512 "VideoTable.c" - } -} - - -static void -value_video_row_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (src_value->data[0].v_pointer) { -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - dest_value->data[0].v_pointer = video_row_ref (src_value->data[0].v_pointer); -#line 525 "VideoTable.c" - } else { -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - dest_value->data[0].v_pointer = NULL; -#line 529 "VideoTable.c" - } -} - - -static gpointer -value_video_row_peek_pointer (const GValue* value) -{ -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return value->data[0].v_pointer; -#line 539 "VideoTable.c" -} - - -static gchar* -value_video_row_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (collect_values[0].v_pointer) { -#line 551 "VideoTable.c" - VideoRow * object; - object = collect_values[0].v_pointer; -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (object->parent_instance.g_class == NULL) { -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 558 "VideoTable.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 562 "VideoTable.c" - } -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - value->data[0].v_pointer = video_row_ref (object); -#line 566 "VideoTable.c" - } else { -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - value->data[0].v_pointer = NULL; -#line 570 "VideoTable.c" - } -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return NULL; -#line 574 "VideoTable.c" -} - - -static gchar* -value_video_row_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - VideoRow ** object_p; - object_p = collect_values[0].v_pointer; -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (!object_p) { -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 590 "VideoTable.c" - } -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (!value->data[0].v_pointer) { -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - *object_p = NULL; -#line 596 "VideoTable.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - *object_p = value->data[0].v_pointer; -#line 600 "VideoTable.c" - } else { -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - *object_p = video_row_ref (value->data[0].v_pointer); -#line 604 "VideoTable.c" - } -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return NULL; -#line 608 "VideoTable.c" -} - - -GParamSpec* -param_spec_video_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecVideoRow* spec; -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_VIDEO_ROW), NULL); -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return G_PARAM_SPEC (spec); -#line 628 "VideoTable.c" -} - - -gpointer -value_get_video_row (const GValue* value) -{ -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_ROW), NULL); -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return value->data[0].v_pointer; -#line 639 "VideoTable.c" -} - - -void -value_set_video_row (GValue* value, - gpointer v_object) -{ - VideoRow * old; -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_ROW)); -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - old = value->data[0].v_pointer; -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (v_object) { -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIDEO_ROW)); -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - value->data[0].v_pointer = v_object; -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - video_row_ref (value->data[0].v_pointer); -#line 662 "VideoTable.c" - } else { -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - value->data[0].v_pointer = NULL; -#line 666 "VideoTable.c" - } -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (old) { -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - video_row_unref (old); -#line 672 "VideoTable.c" - } -} - - -void -value_take_video_row (GValue* value, - gpointer v_object) -{ - VideoRow * old; -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_ROW)); -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - old = value->data[0].v_pointer; -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (v_object) { -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_VIDEO_ROW)); -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - value->data[0].v_pointer = v_object; -#line 694 "VideoTable.c" - } else { -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - value->data[0].v_pointer = NULL; -#line 698 "VideoTable.c" - } -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (old) { -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - video_row_unref (old); -#line 704 "VideoTable.c" - } -} - - -static void -video_row_class_init (VideoRowClass * klass) -{ -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - video_row_parent_class = g_type_class_peek_parent (klass); -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - ((VideoRowClass *) klass)->finalize = video_row_finalize; -#line 716 "VideoTable.c" -} - - -static void -video_row_instance_init (VideoRow * self) -{ -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - self->ref_count = 1; -#line 725 "VideoTable.c" -} - - -static void -video_row_finalize (VideoRow * obj) -{ - VideoRow * self; -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_ROW, VideoRow); -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_signal_handlers_destroy (self); -#line 39 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (self->filepath); -#line 49 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (self->md5); -#line 52 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (self->title); -#line 53 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (self->backlinks); -#line 56 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (self->comment); -#line 747 "VideoTable.c" -} - - -GType -video_row_get_type (void) -{ - static volatile gsize video_row_type_id__volatile = 0; - if (g_once_init_enter (&video_row_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_video_row_init, value_video_row_free_value, value_video_row_copy_value, value_video_row_peek_pointer, "p", value_video_row_collect_value, "p", value_video_row_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (VideoRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoRow), 0, (GInstanceInitFunc) video_row_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType video_row_type_id; - video_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "VideoRow", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&video_row_type_id__volatile, video_row_type_id); - } - return video_row_type_id__volatile; -} - - -gpointer -video_row_ref (gpointer instance) -{ - VideoRow * self; - self = instance; -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_atomic_int_inc (&self->ref_count); -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return instance; -#line 776 "VideoTable.c" -} - - -void -video_row_unref (gpointer instance) -{ - VideoRow * self; - self = instance; -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - VIDEO_ROW_GET_CLASS (self)->finalize (self); -#line 37 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 791 "VideoTable.c" - } -} - - -static VideoTable* -video_table_construct (GType object_type) -{ - VideoTable* self = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gint _tmp5_; - sqlite3_stmt* stmt2 = NULL; - gint res2 = 0; - sqlite3* _tmp7_; - sqlite3_stmt* _tmp8_ = NULL; - gint _tmp9_; - gint _tmp10_; - sqlite3_stmt* _tmp11_; - gint _tmp12_; -#line 62 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - self = (VideoTable*) database_table_construct (object_type); -#line 64 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = database_table_db; -#line 64 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "CREATE TABLE IF NOT EXISTS VideoTable (" "id INTEGER PRIMARY KEY, " "filename TEXT UNIQUE NOT NULL, " "width INTEGER, " "height INTEGER, " "clip_duration REAL, " "is_interpretable INTEGER, " "filesize INTEGER, " "timestamp INTEGER, " "exposure_time INTEGER, " "import_id INTEGER, " "event_id INTEGER, " "md5 TEXT, " "time_created INTEGER, " "rating INTEGER DEFAULT 0, " "title TEXT, " "backlinks TEXT, " "time_reimported INTEGER, " "flags INTEGER DEFAULT 0, " "comment TEXT " ")", -1, &_tmp1_, NULL); -#line 64 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 64 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - stmt = _tmp1_; -#line 64 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = _tmp2_; -#line 85 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp3_ = res; -#line 85 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 87 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp4_ = stmt; -#line 87 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_step (_tmp4_); -#line 88 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp5_ = res; -#line 88 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_tmp5_ != SQLITE_DONE) { -#line 840 "VideoTable.c" - gint _tmp6_; -#line 89 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp6_ = res; -#line 89 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_fatal ("VideoTable constructor", _tmp6_); -#line 846 "VideoTable.c" - } -#line 93 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp7_ = database_table_db; -#line 93 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp9_ = sqlite3_prepare_v2 (_tmp7_, "CREATE INDEX IF NOT EXISTS VideoEventIDIndex ON VideoTable (event_id)", -1, &_tmp8_, NULL); -#line 93 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt2); -#line 93 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - stmt2 = _tmp8_; -#line 93 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res2 = _tmp9_; -#line 95 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp10_ = res2; -#line 95 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp10_ == SQLITE_OK, "res2 == Sqlite.OK"); -#line 97 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp11_ = stmt2; -#line 97 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res2 = sqlite3_step (_tmp11_); -#line 98 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp12_ = res2; -#line 98 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_tmp12_ != SQLITE_DONE) { -#line 870 "VideoTable.c" - gint _tmp13_; -#line 99 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp13_ = res2; -#line 99 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_fatal ("VideoTable constructor", _tmp13_); -#line 876 "VideoTable.c" - } -#line 101 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), "VideoTable"); -#line 62 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt2); -#line 62 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 62 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return self; -#line 886 "VideoTable.c" -} - - -static VideoTable* -video_table_new (void) -{ -#line 62 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return video_table_construct (TYPE_VIDEO_TABLE); -#line 895 "VideoTable.c" -} - - -static gpointer -_database_table_ref0 (gpointer self) -{ -#line 108 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return self ? database_table_ref (self) : NULL; -#line 904 "VideoTable.c" -} - - -VideoTable* -video_table_get_instance (void) -{ - VideoTable* result = NULL; - VideoTable* _tmp0_; - VideoTable* _tmp2_; - VideoTable* _tmp3_; -#line 105 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = video_table_instance; -#line 105 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_tmp0_ == NULL) { -#line 919 "VideoTable.c" - VideoTable* _tmp1_; -#line 106 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp1_ = video_table_new (); -#line 106 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _database_table_unref0 (video_table_instance); -#line 106 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - video_table_instance = _tmp1_; -#line 927 "VideoTable.c" - } -#line 108 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = video_table_instance; -#line 108 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp3_ = _database_table_ref0 (_tmp2_); -#line 108 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = _tmp3_; -#line 108 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 937 "VideoTable.c" -} - - -void -video_table_add (VideoTable* self, - VideoRow* video_row, - VideoID* result, - GError** error) -{ - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - gulong time_created = 0UL; - sqlite3_stmt* _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; - GDestroyNotify _tmp7_; - gint _tmp8_; - sqlite3_stmt* _tmp9_; - gint _tmp10_; - gint _tmp11_; - sqlite3_stmt* _tmp12_; - gint _tmp13_; - gint _tmp14_; - sqlite3_stmt* _tmp15_; - gdouble _tmp16_; - gint _tmp17_; - gint _tmp18_ = 0; - gboolean _tmp19_; - sqlite3_stmt* _tmp20_; - gint _tmp21_; - sqlite3_stmt* _tmp22_; - gint64 _tmp23_; - gint _tmp24_; - sqlite3_stmt* _tmp25_; - time_t _tmp26_; - gint _tmp27_; - sqlite3_stmt* _tmp28_; - time_t _tmp29_; - gint _tmp30_; - sqlite3_stmt* _tmp31_; - ImportID _tmp32_; - gint64 _tmp33_; - gint _tmp34_; - sqlite3_stmt* _tmp35_; - gint _tmp36_; - sqlite3_stmt* _tmp37_; - const gchar* _tmp38_; - gchar* _tmp39_; - GDestroyNotify _tmp40_; - gint _tmp41_; - sqlite3_stmt* _tmp42_; - gulong _tmp43_; - gint _tmp44_; - sqlite3_stmt* _tmp45_; - const gchar* _tmp46_; - gchar* _tmp47_; - GDestroyNotify _tmp48_; - gint _tmp49_; - sqlite3_stmt* _tmp50_; - const gchar* _tmp51_; - gchar* _tmp52_; - GDestroyNotify _tmp53_; - gint _tmp54_; - sqlite3_stmt* _tmp55_; - gint _tmp56_; - sqlite3* _tmp59_; - gulong _tmp60_; - VideoID _tmp61_; - GError * _inner_error_ = NULL; -#line 113 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (IS_VIDEO_TABLE (self)); -#line 113 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (IS_VIDEO_ROW (video_row)); -#line 115 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = database_table_db; -#line 115 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "INSERT INTO VideoTable (filename, width, height, clip_duration, is_int" \ -"erpretable, " "filesize, timestamp, exposure_time, import_id, event_id, md5, time_cre" \ -"ated, title, comment) " "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", -1, &_tmp1_, NULL); -#line 115 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 115 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - stmt = _tmp1_; -#line 115 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = _tmp2_; -#line 120 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp3_ = res; -#line 120 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 122 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - time_created = now_sec (); -#line 124 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp4_ = stmt; -#line 124 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp5_ = video_row->filepath; -#line 124 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 124 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp7_ = g_free; -#line 124 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_text (_tmp4_, 1, _tmp6_, -1, _tmp7_); -#line 125 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp8_ = res; -#line 125 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp8_ == SQLITE_OK, "res == Sqlite.OK"); -#line 126 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp9_ = stmt; -#line 126 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp10_ = video_row->width; -#line 126 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_int (_tmp9_, 2, _tmp10_); -#line 127 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp11_ = res; -#line 127 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK"); -#line 128 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp12_ = stmt; -#line 128 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp13_ = video_row->height; -#line 128 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_int (_tmp12_, 3, _tmp13_); -#line 129 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp14_ = res; -#line 129 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp14_ == SQLITE_OK, "res == Sqlite.OK"); -#line 130 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp15_ = stmt; -#line 130 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp16_ = video_row->clip_duration; -#line 130 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_double (_tmp15_, 4, _tmp16_); -#line 131 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp17_ = res; -#line 131 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp17_ == SQLITE_OK, "res == Sqlite.OK"); -#line 132 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp19_ = video_row->is_interpretable; -#line 132 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_tmp19_) { -#line 132 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp18_ = 1; -#line 1081 "VideoTable.c" - } else { -#line 132 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp18_ = 0; -#line 1085 "VideoTable.c" - } -#line 132 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp20_ = stmt; -#line 132 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_int (_tmp20_, 5, _tmp18_); -#line 133 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp21_ = res; -#line 133 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp21_ == SQLITE_OK, "res == Sqlite.OK"); -#line 134 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp22_ = stmt; -#line 134 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp23_ = video_row->filesize; -#line 134 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_int64 (_tmp22_, 6, _tmp23_); -#line 135 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp24_ = res; -#line 135 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp24_ == SQLITE_OK, "res == Sqlite.OK"); -#line 136 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp25_ = stmt; -#line 136 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp26_ = video_row->timestamp; -#line 136 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_int64 (_tmp25_, 7, (gint64) _tmp26_); -#line 137 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp27_ = res; -#line 137 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp27_ == SQLITE_OK, "res == Sqlite.OK"); -#line 138 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp28_ = stmt; -#line 138 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp29_ = video_row->exposure_time; -#line 138 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_int64 (_tmp28_, 8, (gint64) _tmp29_); -#line 139 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp30_ = res; -#line 139 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp30_ == SQLITE_OK, "res == Sqlite.OK"); -#line 140 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp31_ = stmt; -#line 140 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp32_ = video_row->import_id; -#line 140 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp33_ = _tmp32_.id; -#line 140 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_int64 (_tmp31_, 9, _tmp33_); -#line 141 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp34_ = res; -#line 141 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp34_ == SQLITE_OK, "res == Sqlite.OK"); -#line 142 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp35_ = stmt; -#line 142 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_int64 (_tmp35_, 10, EVENT_ID_INVALID); -#line 143 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp36_ = res; -#line 143 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp36_ == SQLITE_OK, "res == Sqlite.OK"); -#line 144 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp37_ = stmt; -#line 144 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp38_ = video_row->md5; -#line 144 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp39_ = g_strdup (_tmp38_); -#line 144 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp40_ = g_free; -#line 144 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_text (_tmp37_, 11, _tmp39_, -1, _tmp40_); -#line 145 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp41_ = res; -#line 145 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp41_ == SQLITE_OK, "res == Sqlite.OK"); -#line 146 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp42_ = stmt; -#line 146 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp43_ = time_created; -#line 146 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_int64 (_tmp42_, 12, (gint64) _tmp43_); -#line 147 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp44_ = res; -#line 147 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp44_ == SQLITE_OK, "res == Sqlite.OK"); -#line 148 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp45_ = stmt; -#line 148 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp46_ = video_row->title; -#line 148 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp47_ = g_strdup (_tmp46_); -#line 148 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp48_ = g_free; -#line 148 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_text (_tmp45_, 13, _tmp47_, -1, _tmp48_); -#line 149 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp49_ = res; -#line 149 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp49_ == SQLITE_OK, "res == Sqlite.OK"); -#line 150 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp50_ = stmt; -#line 150 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp51_ = video_row->comment; -#line 150 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp52_ = g_strdup (_tmp51_); -#line 150 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp53_ = g_free; -#line 150 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_text (_tmp50_, 14, _tmp52_, -1, _tmp53_); -#line 151 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp54_ = res; -#line 151 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp54_ == SQLITE_OK, "res == Sqlite.OK"); -#line 153 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp55_ = stmt; -#line 153 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_step (_tmp55_); -#line 154 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp56_ = res; -#line 154 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_tmp56_ != SQLITE_DONE) { -#line 1205 "VideoTable.c" - gint _tmp57_; -#line 155 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp57_ = res; -#line 155 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_tmp57_ != SQLITE_CONSTRAINT) { -#line 1211 "VideoTable.c" - gint _tmp58_; -#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp58_ = res; -#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_throw_error ("VideoTable.add", _tmp58_, &_inner_error_); -#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_propagate_error (error, _inner_error_); -#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 1227 "VideoTable.c" - } else { -#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_clear_error (&_inner_error_); -#line 156 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 1237 "VideoTable.c" - } - } - } - } -#line 160 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp59_ = database_table_db; -#line 160 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - video_id_init (&video_row->video_id, sqlite3_last_insert_rowid (_tmp59_)); -#line 161 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - event_id_init (&video_row->event_id, EVENT_ID_INVALID); -#line 162 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp60_ = time_created; -#line 162 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - video_row->time_created = (time_t) _tmp60_; -#line 163 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - video_row->flags = (guint64) 0; -#line 165 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp61_ = video_row->video_id; -#line 165 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - *result = _tmp61_; -#line 165 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 165 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 1262 "VideoTable.c" -} - - -gboolean -video_table_drop_event (VideoTable* self, - EventID* event_id) -{ - gboolean result = FALSE; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gint _tmp5_; - sqlite3_stmt* _tmp6_; - EventID _tmp7_; - gint64 _tmp8_; - gint _tmp9_; - sqlite3_stmt* _tmp10_; - gint _tmp11_; -#line 168 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (IS_VIDEO_TABLE (self), FALSE); -#line 168 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (event_id != NULL, FALSE); -#line 170 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = database_table_db; -#line 170 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "UPDATE VideoTable SET event_id = ? WHERE event_id = ?", -1, &_tmp1_, NULL); -#line 170 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 170 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - stmt = _tmp1_; -#line 170 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = _tmp2_; -#line 171 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp3_ = res; -#line 171 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 173 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp4_ = stmt; -#line 173 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_int64 (_tmp4_, 1, EVENT_ID_INVALID); -#line 174 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp5_ = res; -#line 174 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK"); -#line 175 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp6_ = stmt; -#line 175 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp7_ = *event_id; -#line 175 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp8_ = _tmp7_.id; -#line 175 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_int64 (_tmp6_, 2, _tmp8_); -#line 176 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp9_ = res; -#line 176 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK"); -#line 178 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp10_ = stmt; -#line 178 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_step (_tmp10_); -#line 179 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp11_ = res; -#line 179 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_tmp11_ != SQLITE_DONE) { -#line 1331 "VideoTable.c" - gint _tmp12_; -#line 180 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp12_ = res; -#line 180 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_fatal ("VideoTable.drop_event", _tmp12_); -#line 182 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = FALSE; -#line 182 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 182 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 1343 "VideoTable.c" - } -#line 185 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = TRUE; -#line 185 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 185 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 1351 "VideoTable.c" -} - - -VideoRow* -video_table_get_row (VideoTable* self, - VideoID* video_id) -{ - VideoRow* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - VideoID _tmp5_; - gint64 _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - VideoRow* row = NULL; - VideoRow* _tmp9_; - VideoRow* _tmp10_; - VideoID _tmp11_; - VideoRow* _tmp12_; - sqlite3_stmt* _tmp13_; - const gchar* _tmp14_; - gchar* _tmp15_; - VideoRow* _tmp16_; - sqlite3_stmt* _tmp17_; - VideoRow* _tmp18_; - sqlite3_stmt* _tmp19_; - VideoRow* _tmp20_; - sqlite3_stmt* _tmp21_; - VideoRow* _tmp22_; - sqlite3_stmt* _tmp23_; - VideoRow* _tmp24_; - sqlite3_stmt* _tmp25_; - VideoRow* _tmp26_; - sqlite3_stmt* _tmp27_; - VideoRow* _tmp28_; - sqlite3_stmt* _tmp29_; - VideoRow* _tmp30_; - sqlite3_stmt* _tmp31_; - VideoRow* _tmp32_; - sqlite3_stmt* _tmp33_; - VideoRow* _tmp34_; - sqlite3_stmt* _tmp35_; - const gchar* _tmp36_; - gchar* _tmp37_; - VideoRow* _tmp38_; - sqlite3_stmt* _tmp39_; - VideoRow* _tmp40_; - sqlite3_stmt* _tmp41_; - VideoRow* _tmp42_; - sqlite3_stmt* _tmp43_; - const gchar* _tmp44_; - gchar* _tmp45_; - VideoRow* _tmp46_; - sqlite3_stmt* _tmp47_; - const gchar* _tmp48_; - gchar* _tmp49_; - VideoRow* _tmp50_; - sqlite3_stmt* _tmp51_; - VideoRow* _tmp52_; - sqlite3_stmt* _tmp53_; - VideoRow* _tmp54_; - sqlite3_stmt* _tmp55_; - const gchar* _tmp56_; - gchar* _tmp57_; -#line 188 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (IS_VIDEO_TABLE (self), NULL); -#line 188 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (video_id != NULL, NULL); -#line 190 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = database_table_db; -#line 190 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT filename, width, height, clip_duration, is_interpretable, files" \ -"ize, timestamp, " "exposure_time, import_id, event_id, md5, time_created, rating, title, " \ -"backlinks, " "time_reimported, flags, comment FROM VideoTable WHERE id=?", -1, &_tmp1_, NULL); -#line 190 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 190 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - stmt = _tmp1_; -#line 190 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = _tmp2_; -#line 195 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp3_ = res; -#line 195 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 197 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp4_ = stmt; -#line 197 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp5_ = *video_id; -#line 197 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp6_ = _tmp5_.id; -#line 197 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_); -#line 198 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp7_ = res; -#line 198 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 200 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp8_ = stmt; -#line 200 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (sqlite3_step (_tmp8_) != SQLITE_ROW) { -#line 201 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = NULL; -#line 201 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 201 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 1461 "VideoTable.c" - } -#line 203 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp9_ = video_row_new (); -#line 203 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - row = _tmp9_; -#line 204 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp10_ = row; -#line 204 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp11_ = *video_id; -#line 204 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp10_->video_id = _tmp11_; -#line 205 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp12_ = row; -#line 205 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp13_ = stmt; -#line 205 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp14_ = sqlite3_column_text (_tmp13_, 0); -#line 205 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp15_ = g_strdup (_tmp14_); -#line 205 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (_tmp12_->filepath); -#line 205 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp12_->filepath = _tmp15_; -#line 206 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp16_ = row; -#line 206 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp17_ = stmt; -#line 206 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp16_->width = sqlite3_column_int (_tmp17_, 1); -#line 207 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp18_ = row; -#line 207 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp19_ = stmt; -#line 207 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp18_->height = sqlite3_column_int (_tmp19_, 2); -#line 208 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp20_ = row; -#line 208 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp21_ = stmt; -#line 208 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp20_->clip_duration = sqlite3_column_double (_tmp21_, 3); -#line 209 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp22_ = row; -#line 209 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp23_ = stmt; -#line 209 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp22_->is_interpretable = sqlite3_column_int (_tmp23_, 4) == 1; -#line 210 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp24_ = row; -#line 210 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp25_ = stmt; -#line 210 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp24_->filesize = sqlite3_column_int64 (_tmp25_, 5); -#line 211 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp26_ = row; -#line 211 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp27_ = stmt; -#line 211 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp26_->timestamp = (time_t) sqlite3_column_int64 (_tmp27_, 6); -#line 212 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp28_ = row; -#line 212 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp29_ = stmt; -#line 212 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp28_->exposure_time = (time_t) sqlite3_column_int64 (_tmp29_, 7); -#line 213 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp30_ = row; -#line 213 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp31_ = stmt; -#line 213 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp30_->import_id.id = sqlite3_column_int64 (_tmp31_, 8); -#line 214 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp32_ = row; -#line 214 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp33_ = stmt; -#line 214 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp32_->event_id.id = sqlite3_column_int64 (_tmp33_, 9); -#line 215 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp34_ = row; -#line 215 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp35_ = stmt; -#line 215 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp36_ = sqlite3_column_text (_tmp35_, 10); -#line 215 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp37_ = g_strdup (_tmp36_); -#line 215 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (_tmp34_->md5); -#line 215 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp34_->md5 = _tmp37_; -#line 216 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp38_ = row; -#line 216 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp39_ = stmt; -#line 216 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp38_->time_created = (time_t) sqlite3_column_int64 (_tmp39_, 11); -#line 217 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp40_ = row; -#line 217 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp41_ = stmt; -#line 217 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp40_->rating = rating_unserialize (sqlite3_column_int (_tmp41_, 12)); -#line 218 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp42_ = row; -#line 218 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp43_ = stmt; -#line 218 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp44_ = sqlite3_column_text (_tmp43_, 13); -#line 218 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp45_ = g_strdup (_tmp44_); -#line 218 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (_tmp42_->title); -#line 218 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp42_->title = _tmp45_; -#line 219 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp46_ = row; -#line 219 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp47_ = stmt; -#line 219 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp48_ = sqlite3_column_text (_tmp47_, 14); -#line 219 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp49_ = g_strdup (_tmp48_); -#line 219 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (_tmp46_->backlinks); -#line 219 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp46_->backlinks = _tmp49_; -#line 220 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp50_ = row; -#line 220 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp51_ = stmt; -#line 220 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp50_->time_reimported = (time_t) sqlite3_column_int64 (_tmp51_, 15); -#line 221 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp52_ = row; -#line 221 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp53_ = stmt; -#line 221 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp52_->flags = (guint64) sqlite3_column_int64 (_tmp53_, 16); -#line 222 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp54_ = row; -#line 222 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp55_ = stmt; -#line 222 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp56_ = sqlite3_column_text (_tmp55_, 17); -#line 222 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp57_ = g_strdup (_tmp56_); -#line 222 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (_tmp54_->comment); -#line 222 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp54_->comment = _tmp57_; -#line 224 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = row; -#line 224 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 224 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 1617 "VideoTable.c" -} - - -GeeArrayList* -video_table_get_all (VideoTable* self) -{ - GeeArrayList* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - GeeArrayList* all = NULL; - GeeArrayList* _tmp4_; -#line 227 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (IS_VIDEO_TABLE (self), NULL); -#line 229 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = database_table_db; -#line 229 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id, filename, width, height, clip_duration, is_interpretable, f" \ -"ilesize, " "timestamp, exposure_time, import_id, event_id, md5, time_created, rati" \ -"ng, title, " "backlinks, time_reimported, flags, comment FROM VideoTable", -1, &_tmp1_, NULL); -#line 229 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 229 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - stmt = _tmp1_; -#line 229 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = _tmp2_; -#line 234 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp3_ = res; -#line 234 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 236 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp4_ = gee_array_list_new (TYPE_VIDEO_ROW, (GBoxedCopyFunc) video_row_ref, (GDestroyNotify) video_row_unref, NULL, NULL, NULL); -#line 236 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - all = _tmp4_; -#line 238 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - while (TRUE) { -#line 1655 "VideoTable.c" - sqlite3_stmt* _tmp5_; - gint _tmp6_; - VideoRow* row = NULL; - VideoRow* _tmp7_; - VideoRow* _tmp8_; - sqlite3_stmt* _tmp9_; - VideoRow* _tmp10_; - sqlite3_stmt* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; - VideoRow* _tmp14_; - sqlite3_stmt* _tmp15_; - VideoRow* _tmp16_; - sqlite3_stmt* _tmp17_; - VideoRow* _tmp18_; - sqlite3_stmt* _tmp19_; - VideoRow* _tmp20_; - sqlite3_stmt* _tmp21_; - VideoRow* _tmp22_; - sqlite3_stmt* _tmp23_; - VideoRow* _tmp24_; - sqlite3_stmt* _tmp25_; - VideoRow* _tmp26_; - sqlite3_stmt* _tmp27_; - VideoRow* _tmp28_; - sqlite3_stmt* _tmp29_; - VideoRow* _tmp30_; - sqlite3_stmt* _tmp31_; - VideoRow* _tmp32_; - sqlite3_stmt* _tmp33_; - const gchar* _tmp34_; - gchar* _tmp35_; - VideoRow* _tmp36_; - sqlite3_stmt* _tmp37_; - VideoRow* _tmp38_; - sqlite3_stmt* _tmp39_; - VideoRow* _tmp40_; - sqlite3_stmt* _tmp41_; - const gchar* _tmp42_; - gchar* _tmp43_; - VideoRow* _tmp44_; - sqlite3_stmt* _tmp45_; - const gchar* _tmp46_; - gchar* _tmp47_; - VideoRow* _tmp48_; - sqlite3_stmt* _tmp49_; - VideoRow* _tmp50_; - sqlite3_stmt* _tmp51_; - VideoRow* _tmp52_; - sqlite3_stmt* _tmp53_; - const gchar* _tmp54_; - gchar* _tmp55_; - GeeArrayList* _tmp56_; - VideoRow* _tmp57_; -#line 238 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp5_ = stmt; -#line 238 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_step (_tmp5_); -#line 238 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp6_ = res; -#line 238 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (!(_tmp6_ == SQLITE_ROW)) { -#line 238 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - break; -#line 1720 "VideoTable.c" - } -#line 239 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp7_ = video_row_new (); -#line 239 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - row = _tmp7_; -#line 240 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp8_ = row; -#line 240 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp9_ = stmt; -#line 240 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp8_->video_id.id = sqlite3_column_int64 (_tmp9_, 0); -#line 241 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp10_ = row; -#line 241 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp11_ = stmt; -#line 241 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp12_ = sqlite3_column_text (_tmp11_, 1); -#line 241 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp13_ = g_strdup (_tmp12_); -#line 241 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (_tmp10_->filepath); -#line 241 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp10_->filepath = _tmp13_; -#line 242 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp14_ = row; -#line 242 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp15_ = stmt; -#line 242 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp14_->width = sqlite3_column_int (_tmp15_, 2); -#line 243 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp16_ = row; -#line 243 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp17_ = stmt; -#line 243 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp16_->height = sqlite3_column_int (_tmp17_, 3); -#line 244 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp18_ = row; -#line 244 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp19_ = stmt; -#line 244 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp18_->clip_duration = sqlite3_column_double (_tmp19_, 4); -#line 245 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp20_ = row; -#line 245 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp21_ = stmt; -#line 245 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp20_->is_interpretable = sqlite3_column_int (_tmp21_, 5) == 1; -#line 246 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp22_ = row; -#line 246 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp23_ = stmt; -#line 246 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp22_->filesize = sqlite3_column_int64 (_tmp23_, 6); -#line 247 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp24_ = row; -#line 247 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp25_ = stmt; -#line 247 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp24_->timestamp = (time_t) sqlite3_column_int64 (_tmp25_, 7); -#line 248 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp26_ = row; -#line 248 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp27_ = stmt; -#line 248 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp26_->exposure_time = (time_t) sqlite3_column_int64 (_tmp27_, 8); -#line 249 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp28_ = row; -#line 249 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp29_ = stmt; -#line 249 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp28_->import_id.id = sqlite3_column_int64 (_tmp29_, 9); -#line 250 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp30_ = row; -#line 250 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp31_ = stmt; -#line 250 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp30_->event_id.id = sqlite3_column_int64 (_tmp31_, 10); -#line 251 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp32_ = row; -#line 251 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp33_ = stmt; -#line 251 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp34_ = sqlite3_column_text (_tmp33_, 11); -#line 251 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp35_ = g_strdup (_tmp34_); -#line 251 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (_tmp32_->md5); -#line 251 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp32_->md5 = _tmp35_; -#line 252 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp36_ = row; -#line 252 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp37_ = stmt; -#line 252 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp36_->time_created = (time_t) sqlite3_column_int64 (_tmp37_, 12); -#line 253 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp38_ = row; -#line 253 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp39_ = stmt; -#line 253 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp38_->rating = rating_unserialize (sqlite3_column_int (_tmp39_, 13)); -#line 254 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp40_ = row; -#line 254 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp41_ = stmt; -#line 254 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp42_ = sqlite3_column_text (_tmp41_, 14); -#line 254 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp43_ = g_strdup (_tmp42_); -#line 254 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (_tmp40_->title); -#line 254 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp40_->title = _tmp43_; -#line 255 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp44_ = row; -#line 255 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp45_ = stmt; -#line 255 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp46_ = sqlite3_column_text (_tmp45_, 15); -#line 255 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp47_ = g_strdup (_tmp46_); -#line 255 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (_tmp44_->backlinks); -#line 255 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp44_->backlinks = _tmp47_; -#line 256 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp48_ = row; -#line 256 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp49_ = stmt; -#line 256 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp48_->time_reimported = (time_t) sqlite3_column_int64 (_tmp49_, 16); -#line 257 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp50_ = row; -#line 257 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp51_ = stmt; -#line 257 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp50_->flags = (guint64) sqlite3_column_int64 (_tmp51_, 17); -#line 258 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp52_ = row; -#line 258 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp53_ = stmt; -#line 258 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp54_ = sqlite3_column_text (_tmp53_, 18); -#line 258 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp55_ = g_strdup (_tmp54_); -#line 258 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (_tmp52_->comment); -#line 258 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp52_->comment = _tmp55_; -#line 260 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp56_ = all; -#line 260 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp57_ = row; -#line 260 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp57_); -#line 238 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _video_row_unref0 (row); -#line 1878 "VideoTable.c" - } -#line 263 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = all; -#line 263 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 263 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 1886 "VideoTable.c" -} - - -void -video_table_set_filepath (VideoTable* self, - VideoID* video_id, - const gchar* filepath, - GError** error) -{ - VideoID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 266 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (IS_VIDEO_TABLE (self)); -#line 266 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (video_id != NULL); -#line 266 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (filepath != NULL); -#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = *video_id; -#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp1_ = _tmp0_.id; -#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "filename", filepath, &_inner_error_); -#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_propagate_error (error, _inner_error_); -#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 1919 "VideoTable.c" - } else { -#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_clear_error (&_inner_error_); -#line 267 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 1927 "VideoTable.c" - } - } -} - - -void -video_table_set_title (VideoTable* self, - VideoID* video_id, - const gchar* new_title, - GError** error) -{ - const gchar* _tmp0_ = NULL; - VideoID _tmp1_; - gint64 _tmp2_; - GError * _inner_error_ = NULL; -#line 270 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (IS_VIDEO_TABLE (self)); -#line 270 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (video_id != NULL); -#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (new_title != NULL) { -#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = new_title; -#line 1951 "VideoTable.c" - } else { -#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = ""; -#line 1955 "VideoTable.c" - } -#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp1_ = *video_id; -#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = _tmp1_.id; -#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "title", _tmp0_, &_inner_error_); -#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_propagate_error (error, _inner_error_); -#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 1971 "VideoTable.c" - } else { -#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_clear_error (&_inner_error_); -#line 271 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 1979 "VideoTable.c" - } - } -} - - -void -video_table_set_comment (VideoTable* self, - VideoID* video_id, - const gchar* new_comment, - GError** error) -{ - const gchar* _tmp0_ = NULL; - VideoID _tmp1_; - gint64 _tmp2_; - GError * _inner_error_ = NULL; -#line 274 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (IS_VIDEO_TABLE (self)); -#line 274 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (video_id != NULL); -#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (new_comment != NULL) { -#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = new_comment; -#line 2003 "VideoTable.c" - } else { -#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = ""; -#line 2007 "VideoTable.c" - } -#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp1_ = *video_id; -#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = _tmp1_.id; -#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "comment", _tmp0_, &_inner_error_); -#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_propagate_error (error, _inner_error_); -#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 2023 "VideoTable.c" - } else { -#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_clear_error (&_inner_error_); -#line 275 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 2031 "VideoTable.c" - } - } -} - - -void -video_table_set_exposure_time (VideoTable* self, - VideoID* video_id, - time_t time, - GError** error) -{ - VideoID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 278 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (IS_VIDEO_TABLE (self)); -#line 278 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (video_id != NULL); -#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = *video_id; -#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp1_ = _tmp0_.id; -#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "exposure_time", (gint64) time, &_inner_error_); -#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_propagate_error (error, _inner_error_); -#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 2064 "VideoTable.c" - } else { -#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_clear_error (&_inner_error_); -#line 279 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 2072 "VideoTable.c" - } - } -} - - -void -video_table_set_rating (VideoTable* self, - VideoID* video_id, - Rating rating, - GError** error) -{ - VideoID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 282 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (IS_VIDEO_TABLE (self)); -#line 282 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (video_id != NULL); -#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = *video_id; -#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp1_ = _tmp0_.id; -#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "rating", (gint64) rating_serialize (rating), &_inner_error_); -#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_propagate_error (error, _inner_error_); -#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 2105 "VideoTable.c" - } else { -#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_clear_error (&_inner_error_); -#line 283 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 2113 "VideoTable.c" - } - } -} - - -void -video_table_set_flags (VideoTable* self, - VideoID* video_id, - guint64 flags, - GError** error) -{ - VideoID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 286 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (IS_VIDEO_TABLE (self)); -#line 286 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (video_id != NULL); -#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = *video_id; -#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp1_ = _tmp0_.id; -#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "flags", (gint64) flags, &_inner_error_); -#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_propagate_error (error, _inner_error_); -#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 2146 "VideoTable.c" - } else { -#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_clear_error (&_inner_error_); -#line 287 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 2154 "VideoTable.c" - } - } -} - - -void -video_table_update_backlinks (VideoTable* self, - VideoID* video_id, - const gchar* backlinks, - GError** error) -{ - const gchar* _tmp0_ = NULL; - VideoID _tmp1_; - gint64 _tmp2_; - GError * _inner_error_ = NULL; -#line 290 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (IS_VIDEO_TABLE (self)); -#line 290 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (video_id != NULL); -#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (backlinks != NULL) { -#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = backlinks; -#line 2178 "VideoTable.c" - } else { -#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = ""; -#line 2182 "VideoTable.c" - } -#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp1_ = *video_id; -#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = _tmp1_.id; -#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_update_text_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "backlinks", _tmp0_, &_inner_error_); -#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_propagate_error (error, _inner_error_); -#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 2198 "VideoTable.c" - } else { -#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_clear_error (&_inner_error_); -#line 291 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 2206 "VideoTable.c" - } - } -} - - -void -video_table_update_is_interpretable (VideoTable* self, - VideoID* video_id, - gboolean is_interpretable, - GError** error) -{ - gint _tmp0_ = 0; - VideoID _tmp1_; - gint64 _tmp2_; - GError * _inner_error_ = NULL; -#line 294 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (IS_VIDEO_TABLE (self)); -#line 294 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (video_id != NULL); -#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (is_interpretable) { -#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = 1; -#line 2230 "VideoTable.c" - } else { -#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = 0; -#line 2234 "VideoTable.c" - } -#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp1_ = *video_id; -#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = _tmp1_.id; -#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_update_int_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp2_, "is_interpretable", _tmp0_, &_inner_error_); -#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_propagate_error (error, _inner_error_); -#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 2250 "VideoTable.c" - } else { -#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_clear_error (&_inner_error_); -#line 295 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 2258 "VideoTable.c" - } - } -} - - -gboolean -video_table_set_event (VideoTable* self, - VideoID* video_id, - EventID* event_id) -{ - gboolean result = FALSE; - VideoID _tmp0_; - gint64 _tmp1_; - EventID _tmp2_; - gint64 _tmp3_; -#line 298 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (IS_VIDEO_TABLE (self), FALSE); -#line 298 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (video_id != NULL, FALSE); -#line 298 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (event_id != NULL, FALSE); -#line 299 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = *video_id; -#line 299 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp1_ = _tmp0_.id; -#line 299 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = *event_id; -#line 299 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp3_ = _tmp2_.id; -#line 299 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = database_table_update_int64_by_id (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "event_id", _tmp3_); -#line 299 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 2292 "VideoTable.c" -} - - -void -video_table_remove_by_file (VideoTable* self, - GFile* file, - GError** error) -{ - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gchar* _tmp5_; - GDestroyNotify _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - gint _tmp9_; - GError * _inner_error_ = NULL; -#line 302 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (IS_VIDEO_TABLE (self)); -#line 302 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 304 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = database_table_db; -#line 304 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "DELETE FROM VideoTable WHERE filename=?", -1, &_tmp1_, NULL); -#line 304 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 304 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - stmt = _tmp1_; -#line 304 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = _tmp2_; -#line 305 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp3_ = res; -#line 305 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 307 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp4_ = stmt; -#line 307 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp5_ = g_file_get_path (file); -#line 307 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp6_ = g_free; -#line 307 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_text (_tmp4_, 1, _tmp5_, -1, _tmp6_); -#line 308 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp7_ = res; -#line 308 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 310 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp8_ = stmt; -#line 310 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_step (_tmp8_); -#line 311 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp9_ = res; -#line 311 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_tmp9_ != SQLITE_DONE) { -#line 2352 "VideoTable.c" - gint _tmp10_; -#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp10_ = res; -#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_throw_error ("VideoTable.remove_by_file", _tmp10_, &_inner_error_); -#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_propagate_error (error, _inner_error_); -#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 2368 "VideoTable.c" - } else { -#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_clear_error (&_inner_error_); -#line 312 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 2378 "VideoTable.c" - } - } - } -#line 302 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 2384 "VideoTable.c" -} - - -void -video_table_remove (VideoTable* self, - VideoID* videoID, - GError** error) -{ - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - VideoID _tmp5_; - gint64 _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - gint _tmp9_; - GError * _inner_error_ = NULL; -#line 315 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (IS_VIDEO_TABLE (self)); -#line 315 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (videoID != NULL); -#line 317 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = database_table_db; -#line 317 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "DELETE FROM VideoTable WHERE id=?", -1, &_tmp1_, NULL); -#line 317 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 317 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - stmt = _tmp1_; -#line 317 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = _tmp2_; -#line 318 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp3_ = res; -#line 318 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 320 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp4_ = stmt; -#line 320 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp5_ = *videoID; -#line 320 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp6_ = _tmp5_.id; -#line 320 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_); -#line 321 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp7_ = res; -#line 321 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 323 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp8_ = stmt; -#line 323 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_step (_tmp8_); -#line 324 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp9_ = res; -#line 324 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_tmp9_ != SQLITE_DONE) { -#line 2444 "VideoTable.c" - gint _tmp10_; -#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp10_ = res; -#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_throw_error ("VideoTable.remove", _tmp10_, &_inner_error_); -#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_propagate_error (error, _inner_error_); -#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 2460 "VideoTable.c" - } else { -#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_clear_error (&_inner_error_); -#line 325 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 2470 "VideoTable.c" - } - } - } -#line 315 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 2476 "VideoTable.c" -} - - -gboolean -video_table_is_video_stored (VideoTable* self, - GFile* file) -{ - gboolean result = FALSE; - VideoID _tmp0_ = {0}; -#line 328 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (IS_VIDEO_TABLE (self), FALSE); -#line 328 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 329 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - video_table_get_id (self, file, &_tmp0_); -#line 329 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = video_id_is_valid (&_tmp0_); -#line 329 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 2496 "VideoTable.c" -} - - -void -video_table_get_id (VideoTable* self, - GFile* file, - VideoID* result) -{ - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - gchar* _tmp5_; - GDestroyNotify _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - VideoID _tmp9_ = {0}; - gint _tmp10_; -#line 332 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (IS_VIDEO_TABLE (self)); -#line 332 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 334 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = database_table_db; -#line 334 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT ID FROM VideoTable WHERE filename=?", -1, &_tmp1_, NULL); -#line 334 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 334 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - stmt = _tmp1_; -#line 334 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = _tmp2_; -#line 335 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp3_ = res; -#line 335 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 337 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp4_ = stmt; -#line 337 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp5_ = g_file_get_path (file); -#line 337 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp6_ = g_free; -#line 337 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_text (_tmp4_, 1, _tmp5_, -1, _tmp6_); -#line 338 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp7_ = res; -#line 338 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 340 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp8_ = stmt; -#line 340 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_step (_tmp8_); -#line 342 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp10_ = res; -#line 342 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_tmp10_ == SQLITE_ROW) { -#line 2556 "VideoTable.c" - sqlite3_stmt* _tmp11_; -#line 342 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp11_ = stmt; -#line 342 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - video_id_init (&_tmp9_, sqlite3_column_int64 (_tmp11_, 0)); -#line 2562 "VideoTable.c" - } else { -#line 342 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - video_id_init (&_tmp9_, VIDEO_ID_INVALID); -#line 2566 "VideoTable.c" - } -#line 342 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - *result = _tmp9_; -#line 342 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 342 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 2574 "VideoTable.c" -} - - -GeeArrayList* -video_table_get_videos (VideoTable* self, - GError** error) -{ - GeeArrayList* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - GeeArrayList* video_ids = NULL; - GeeArrayList* _tmp4_; - GError * _inner_error_ = NULL; -#line 345 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (IS_VIDEO_TABLE (self), NULL); -#line 347 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = database_table_db; -#line 347 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id FROM VideoTable", -1, &_tmp1_, NULL); -#line 347 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 347 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - stmt = _tmp1_; -#line 347 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = _tmp2_; -#line 348 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp3_ = res; -#line 348 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 350 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp4_ = gee_array_list_new (TYPE_VIDEO_ID, (GBoxedCopyFunc) video_id_dup, (GDestroyNotify) video_id_free, NULL, NULL, NULL); -#line 350 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - video_ids = _tmp4_; -#line 2612 "VideoTable.c" - { - gboolean _tmp5_ = FALSE; -#line 351 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp5_ = TRUE; -#line 351 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - while (TRUE) { -#line 2619 "VideoTable.c" - sqlite3_stmt* _tmp6_; - gint _tmp7_; - GeeArrayList* _tmp10_; - sqlite3_stmt* _tmp11_; - VideoID _tmp12_ = {0}; -#line 351 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (!_tmp5_) { -#line 2627 "VideoTable.c" - } -#line 351 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp5_ = FALSE; -#line 352 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp6_ = stmt; -#line 352 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_step (_tmp6_); -#line 353 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp7_ = res; -#line 353 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_tmp7_ == SQLITE_DONE) { -#line 354 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - break; -#line 2641 "VideoTable.c" - } else { - gint _tmp8_; -#line 355 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp8_ = res; -#line 355 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_tmp8_ != SQLITE_ROW) { -#line 2648 "VideoTable.c" - gint _tmp9_; -#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp9_ = res; -#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_throw_error ("VideoTable.get_videos", _tmp9_, &_inner_error_); -#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_propagate_error (error, _inner_error_); -#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_object_unref0 (video_ids); -#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return NULL; -#line 2666 "VideoTable.c" - } else { -#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_object_unref0 (video_ids); -#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_clear_error (&_inner_error_); -#line 356 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return NULL; -#line 2678 "VideoTable.c" - } - } - } - } -#line 359 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp10_ = video_ids; -#line 359 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp11_ = stmt; -#line 359 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - video_id_init (&_tmp12_, sqlite3_column_int64 (_tmp11_, 0)); -#line 359 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), &_tmp12_); -#line 2691 "VideoTable.c" - } - } -#line 362 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = video_ids; -#line 362 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 362 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 2700 "VideoTable.c" -} - - -static sqlite3_stmt* -video_table_get_duplicate_stmt (VideoTable* self, - GFile* file, - const gchar* md5) -{ - sqlite3_stmt* result = NULL; - gboolean _tmp0_ = FALSE; - gchar* sql = NULL; - gchar* _tmp1_; - gboolean first = FALSE; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp9_; - const gchar* _tmp10_; - sqlite3_stmt* _tmp11_ = NULL; - gint _tmp12_; - gint _tmp13_; - gint col = 0; -#line 365 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (IS_VIDEO_TABLE (self), NULL); -#line 365 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL); -#line 366 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (file != NULL) { -#line 366 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = TRUE; -#line 2730 "VideoTable.c" - } else { -#line 366 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = md5 != NULL; -#line 2734 "VideoTable.c" - } -#line 366 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp0_, "file != null || md5 != null"); -#line 368 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp1_ = g_strdup ("SELECT id FROM VideoTable WHERE"); -#line 368 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - sql = _tmp1_; -#line 369 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - first = TRUE; -#line 371 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (file != NULL) { -#line 2746 "VideoTable.c" - const gchar* _tmp2_; - gchar* _tmp3_; -#line 372 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = sql; -#line 372 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp3_ = g_strconcat (_tmp2_, " filename=?", NULL); -#line 372 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (sql); -#line 372 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - sql = _tmp3_; -#line 373 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - first = FALSE; -#line 2759 "VideoTable.c" - } -#line 376 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (md5 != NULL) { -#line 2763 "VideoTable.c" - gboolean _tmp4_; - const gchar* _tmp7_; - gchar* _tmp8_; -#line 377 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp4_ = first; -#line 377 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (!_tmp4_) { -#line 2771 "VideoTable.c" - const gchar* _tmp5_; - gchar* _tmp6_; -#line 378 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp5_ = sql; -#line 378 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp6_ = g_strconcat (_tmp5_, " OR ", NULL); -#line 378 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (sql); -#line 378 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - sql = _tmp6_; -#line 2782 "VideoTable.c" - } -#line 380 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp7_ = sql; -#line 380 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp8_ = g_strconcat (_tmp7_, " md5=?", NULL); -#line 380 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (sql); -#line 380 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - sql = _tmp8_; -#line 2792 "VideoTable.c" - } -#line 384 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp9_ = database_table_db; -#line 384 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp10_ = sql; -#line 384 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp12_ = sqlite3_prepare_v2 (_tmp9_, _tmp10_, -1, &_tmp11_, NULL); -#line 384 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 384 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - stmt = _tmp11_; -#line 384 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = _tmp12_; -#line 385 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp13_ = res; -#line 385 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK"); -#line 387 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - col = 1; -#line 389 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (file != NULL) { -#line 2814 "VideoTable.c" - sqlite3_stmt* _tmp14_; - gint _tmp15_; - gchar* _tmp16_; - GDestroyNotify _tmp17_; - gint _tmp18_; -#line 390 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp14_ = stmt; -#line 390 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp15_ = col; -#line 390 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - col = _tmp15_ + 1; -#line 390 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp16_ = g_file_get_path (file); -#line 390 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp17_ = g_free; -#line 390 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_text (_tmp14_, _tmp15_, _tmp16_, -1, _tmp17_); -#line 391 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp18_ = res; -#line 391 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp18_ == SQLITE_OK, "res == Sqlite.OK"); -#line 2836 "VideoTable.c" - } -#line 394 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (md5 != NULL) { -#line 2840 "VideoTable.c" - sqlite3_stmt* _tmp19_; - gint _tmp20_; - gchar* _tmp21_; - GDestroyNotify _tmp22_; - gint _tmp23_; -#line 395 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp19_ = stmt; -#line 395 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp20_ = col; -#line 395 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - col = _tmp20_ + 1; -#line 395 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp21_ = g_strdup (md5); -#line 395 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp22_ = g_free; -#line 395 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_text (_tmp19_, _tmp20_, _tmp21_, -1, _tmp22_); -#line 396 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp23_ = res; -#line 396 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp23_ == SQLITE_OK, "res == Sqlite.OK"); -#line 2862 "VideoTable.c" - } -#line 399 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = stmt; -#line 399 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (sql); -#line 399 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 2870 "VideoTable.c" -} - - -gboolean -video_table_has_duplicate (VideoTable* self, - GFile* file, - const gchar* md5) -{ - gboolean result = FALSE; - sqlite3_stmt* stmt = NULL; - sqlite3_stmt* _tmp0_; - gint res = 0; - sqlite3_stmt* _tmp1_; - gint _tmp2_; -#line 402 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (IS_VIDEO_TABLE (self), FALSE); -#line 402 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), FALSE); -#line 403 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = video_table_get_duplicate_stmt (self, file, md5); -#line 403 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - stmt = _tmp0_; -#line 404 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp1_ = stmt; -#line 404 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_step (_tmp1_); -#line 406 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = res; -#line 406 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_tmp2_ == SQLITE_DONE) { -#line 408 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = FALSE; -#line 408 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 408 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 2907 "VideoTable.c" - } else { - gint _tmp3_; -#line 409 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp3_ = res; -#line 409 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_tmp3_ == SQLITE_ROW) { -#line 411 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = TRUE; -#line 411 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 411 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 2920 "VideoTable.c" - } else { - gint _tmp4_; -#line 413 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp4_ = res; -#line 413 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_fatal ("VideoTable.has_duplicate", _tmp4_); -#line 2927 "VideoTable.c" - } - } -#line 416 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = FALSE; -#line 416 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 416 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 2936 "VideoTable.c" -} - - -static void -_vala_array_add3 (VideoID* * array, - int* length, - int* size, - const VideoID* value) -{ -#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if ((*length) == (*size)) { -#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - *array = g_renew (VideoID, *array, *size); -#line 2952 "VideoTable.c" - } -#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - (*array)[(*length)++] = *value; -#line 2956 "VideoTable.c" -} - - -VideoID* -video_table_get_duplicate_ids (VideoTable* self, - GFile* file, - const gchar* md5, - int* result_length1) -{ - VideoID* result = NULL; - sqlite3_stmt* stmt = NULL; - sqlite3_stmt* _tmp0_; - VideoID* ids = NULL; - VideoID* _tmp1_; - gint ids_length1; - gint _ids_size_; - gint res = 0; - sqlite3_stmt* _tmp2_; - VideoID* _tmp8_; - gint _tmp8__length1; -#line 419 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (IS_VIDEO_TABLE (self), NULL); -#line 419 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), NULL); -#line 420 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = video_table_get_duplicate_stmt (self, file, md5); -#line 420 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - stmt = _tmp0_; -#line 422 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp1_ = g_new0 (VideoID, 0); -#line 422 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - ids = _tmp1_; -#line 422 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - ids_length1 = 0; -#line 422 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _ids_size_ = ids_length1; -#line 424 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = stmt; -#line 424 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_step (_tmp2_); -#line 425 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - while (TRUE) { -#line 2999 "VideoTable.c" - gint _tmp3_; - VideoID* _tmp4_; - gint _tmp4__length1; - sqlite3_stmt* _tmp5_; - VideoID _tmp6_ = {0}; - sqlite3_stmt* _tmp7_; -#line 425 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp3_ = res; -#line 425 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (!(_tmp3_ == SQLITE_ROW)) { -#line 425 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - break; -#line 3012 "VideoTable.c" - } -#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp4_ = ids; -#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp4__length1 = ids_length1; -#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp5_ = stmt; -#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - video_id_init (&_tmp6_, sqlite3_column_int64 (_tmp5_, 0)); -#line 426 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_array_add3 (&ids, &ids_length1, &_ids_size_, &_tmp6_); -#line 427 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp7_ = stmt; -#line 427 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_step (_tmp7_); -#line 3028 "VideoTable.c" - } -#line 430 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp8_ = ids; -#line 430 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp8__length1 = ids_length1; -#line 430 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (result_length1) { -#line 430 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - *result_length1 = _tmp8__length1; -#line 3038 "VideoTable.c" - } -#line 430 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = _tmp8_; -#line 430 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 430 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 3046 "VideoTable.c" -} - - -GeeArrayList* -video_table_get_event_source_ids (VideoTable* self, - EventID* event_id) -{ - GeeArrayList* result = NULL; - sqlite3_stmt* stmt = NULL; - gint res = 0; - sqlite3* _tmp0_; - sqlite3_stmt* _tmp1_ = NULL; - gint _tmp2_; - gint _tmp3_; - sqlite3_stmt* _tmp4_; - EventID _tmp5_; - gint64 _tmp6_; - gint _tmp7_; - GeeArrayList* _result_ = NULL; - GeeArrayList* _tmp8_; -#line 433 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (IS_VIDEO_TABLE (self), NULL); -#line 433 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_val_if_fail (event_id != NULL, NULL); -#line 435 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = database_table_db; -#line 435 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp2_ = sqlite3_prepare_v2 (_tmp0_, "SELECT id FROM VideoTable WHERE event_id = ?", -1, &_tmp1_, NULL); -#line 435 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 435 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - stmt = _tmp1_; -#line 435 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = _tmp2_; -#line 436 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp3_ = res; -#line 436 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp3_ == SQLITE_OK, "res == Sqlite.OK"); -#line 438 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp4_ = stmt; -#line 438 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp5_ = *event_id; -#line 438 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp6_ = _tmp5_.id; -#line 438 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_bind_int64 (_tmp4_, 1, _tmp6_); -#line 439 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp7_ = res; -#line 439 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); -#line 441 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp8_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 441 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _result_ = _tmp8_; -#line 3101 "VideoTable.c" - { - gboolean _tmp9_ = FALSE; -#line 442 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp9_ = TRUE; -#line 442 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - while (TRUE) { -#line 3108 "VideoTable.c" - sqlite3_stmt* _tmp10_; - gint _tmp11_; - GeeArrayList* _tmp14_; - sqlite3_stmt* _tmp15_; - VideoID _tmp16_ = {0}; - gchar* _tmp17_; - gchar* _tmp18_; -#line 442 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (!_tmp9_) { -#line 3118 "VideoTable.c" - } -#line 442 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp9_ = FALSE; -#line 443 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp10_ = stmt; -#line 443 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - res = sqlite3_step (_tmp10_); -#line 444 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp11_ = res; -#line 444 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_tmp11_ == SQLITE_DONE) { -#line 445 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - break; -#line 3132 "VideoTable.c" - } else { - gint _tmp12_; -#line 446 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp12_ = res; -#line 446 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_tmp12_ != SQLITE_ROW) { -#line 3139 "VideoTable.c" - gint _tmp13_; -#line 447 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp13_ = res; -#line 447 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_fatal ("get_event_source_ids", _tmp13_); -#line 449 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - break; -#line 3147 "VideoTable.c" - } - } -#line 452 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp14_ = _result_; -#line 452 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp15_ = stmt; -#line 452 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - video_id_init (&_tmp16_, sqlite3_column_int64 (_tmp15_, 0)); -#line 452 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp17_ = video_id_upgrade_video_id_to_source_id (&_tmp16_); -#line 452 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp18_ = _tmp17_; -#line 452 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp18_); -#line 452 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _g_free0 (_tmp18_); -#line 3164 "VideoTable.c" - } - } -#line 455 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - result = _result_; -#line 455 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _sqlite3_finalize0 (stmt); -#line 455 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return result; -#line 3173 "VideoTable.c" -} - - -void -video_table_set_timestamp (VideoTable* self, - VideoID* video_id, - time_t timestamp, - GError** error) -{ - VideoID _tmp0_; - gint64 _tmp1_; - GError * _inner_error_ = NULL; -#line 458 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (IS_VIDEO_TABLE (self)); -#line 458 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_return_if_fail (video_id != NULL); -#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp0_ = *video_id; -#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - _tmp1_ = _tmp0_.id; -#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - database_table_update_int64_by_id_2 (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), _tmp1_, "timestamp", (gint64) timestamp, &_inner_error_); -#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_propagate_error (error, _inner_error_); -#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 3204 "VideoTable.c" - } else { -#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - g_clear_error (&_inner_error_); -#line 459 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - return; -#line 3212 "VideoTable.c" - } - } -} - - -static void -video_table_class_init (VideoTableClass * klass) -{ -#line 59 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - video_table_parent_class = g_type_class_peek_parent (klass); -#line 59 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - ((DatabaseTableClass *) klass)->finalize = video_table_finalize; -#line 3225 "VideoTable.c" -} - - -static void -video_table_instance_init (VideoTable * self) -{ -} - - -static void -video_table_finalize (DatabaseTable * obj) -{ - VideoTable * self; -#line 59 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_TABLE, VideoTable); -#line 59 "/home/jens/Source/shotwell/src/db/VideoTable.vala" - DATABASE_TABLE_CLASS (video_table_parent_class)->finalize (obj); -#line 3243 "VideoTable.c" -} - - -GType -video_table_get_type (void) -{ - static volatile gsize video_table_type_id__volatile = 0; - if (g_once_init_enter (&video_table_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (VideoTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoTable), 0, (GInstanceInitFunc) video_table_instance_init, NULL }; - GType video_table_type_id; - video_table_type_id = g_type_register_static (TYPE_DATABASE_TABLE, "VideoTable", &g_define_type_info, 0); - g_once_init_leave (&video_table_type_id__volatile, video_table_type_id); - } - return video_table_type_id__volatile; -} - - - diff --git a/src/dialogs/AdjustDateTimeDialog.c b/src/dialogs/AdjustDateTimeDialog.c deleted file mode 100644 index fe412df..0000000 --- a/src/dialogs/AdjustDateTimeDialog.c +++ /dev/null @@ -1,2300 +0,0 @@ -/* AdjustDateTimeDialog.c generated by valac 0.40.4, the Vala compiler - * generated from AdjustDateTimeDialog.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * Copyright 2017 Jens Georg - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_ADJUST_DATE_TIME_DIALOG (adjust_date_time_dialog_get_type ()) -#define ADJUST_DATE_TIME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialog)) -#define ADJUST_DATE_TIME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialogClass)) -#define IS_ADJUST_DATE_TIME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_DATE_TIME_DIALOG)) -#define IS_ADJUST_DATE_TIME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_DATE_TIME_DIALOG)) -#define ADJUST_DATE_TIME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialogClass)) - -typedef struct _AdjustDateTimeDialog AdjustDateTimeDialog; -typedef struct _AdjustDateTimeDialogClass AdjustDateTimeDialogClass; -typedef struct _AdjustDateTimeDialogPrivate AdjustDateTimeDialogPrivate; - -#define ADJUST_DATE_TIME_DIALOG_TYPE_TIME_SYSTEM (adjust_date_time_dialog_time_system_get_type ()) -enum { - ADJUST_DATE_TIME_DIALOG_0_PROPERTY, - ADJUST_DATE_TIME_DIALOG_NUM_PROPERTIES -}; -static GParamSpec* adjust_date_time_dialog_properties[ADJUST_DATE_TIME_DIALOG_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_DATEABLE (dateable_get_type ()) -#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable)) -#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE)) -#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface)) - -typedef struct _Dateable Dateable; -typedef struct _DateableIface DateableIface; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _AdjustDateTimeDialog { - GtkDialog parent_instance; - AdjustDateTimeDialogPrivate * priv; -}; - -struct _AdjustDateTimeDialogClass { - GtkDialogClass parent_class; -}; - -typedef enum { - ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_AM, - ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_PM, - ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_24HR -} AdjustDateTimeDialogTimeSystem; - -struct _AdjustDateTimeDialogPrivate { - gboolean no_original_time; - time_t original_time; - GtkLabel* original_time_label; - GtkCalendar* calendar; - GtkSpinButton* hour; - GtkSpinButton* minute; - GtkSpinButton* second; - GtkComboBoxText* system; - GtkRadioButton* relativity_radio_button; - GtkRadioButton* batch_radio_button; - GtkCheckButton* modify_originals_check_button; - GtkLabel* notification; - AdjustDateTimeDialogTimeSystem previous_time_system; -}; - -struct _DateableIface { - GTypeInterface parent_iface; - void (*set_exposure_time) (Dateable* self, time_t target_time); - time_t (*get_exposure_time) (Dateable* self); -}; - - -static gpointer adjust_date_time_dialog_parent_class = NULL; - -GType adjust_date_time_dialog_get_type (void) G_GNUC_CONST; -static GType adjust_date_time_dialog_time_system_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define ADJUST_DATE_TIME_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialogPrivate)) -#define ADJUST_DATE_TIME_DIALOG_SECONDS_IN_DAY ((gint64) ((60 * 60) * 24)) -#define ADJUST_DATE_TIME_DIALOG_SECONDS_IN_HOUR ((gint64) (60 * 60)) -#define ADJUST_DATE_TIME_DIALOG_SECONDS_IN_MINUTE ((gint64) 60) -#define ADJUST_DATE_TIME_DIALOG_YEAR_OFFSET 1900 -#define ADJUST_DATE_TIME_DIALOG_CALENDAR_THUMBNAIL_SCALE 1 -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType dateable_get_type (void) G_GNUC_CONST; -AdjustDateTimeDialog* adjust_date_time_dialog_new (Dateable* source, - gint photo_count, - gboolean display_options, - gboolean contains_video, - gboolean only_video); -AdjustDateTimeDialog* adjust_date_time_dialog_construct (GType object_type, - Dateable* source, - gint photo_count, - gboolean display_options, - gboolean contains_video, - gboolean only_video); -gint resources_use_header_bar (void); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -#define RESOURCES_CANCEL_LABEL _ ("_Cancel") -#define RESOURCES_OK_LABEL _ ("_OK") -#define RESOURCES_ADJUST_DATE_TIME_LABEL _ ("Adjust Date and Time") -static void adjust_date_time_dialog_on_time_changed (AdjustDateTimeDialog* self); -static void _adjust_date_time_dialog_on_time_changed_gtk_calendar_day_selected (GtkCalendar* _sender, - gpointer self); -static void _adjust_date_time_dialog_on_time_changed_gtk_calendar_month_changed (GtkCalendar* _sender, - gpointer self); -static void _adjust_date_time_dialog_on_time_changed_gtk_calendar_next_year (GtkCalendar* _sender, - gpointer self); -static void _adjust_date_time_dialog_on_time_changed_gtk_calendar_prev_year (GtkCalendar* _sender, - gpointer self); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gboolean configuration_facade_get_use_24_hour_time (ConfigurationFacade* self); -static gboolean adjust_date_time_dialog_on_spin_button_output (AdjustDateTimeDialog* self, - GtkSpinButton* button); -static gboolean _adjust_date_time_dialog_on_spin_button_output_gtk_spin_button_output (GtkSpinButton* _sender, - gpointer self); -static void adjust_date_time_dialog_on_time_system_changed (AdjustDateTimeDialog* self); -static void _adjust_date_time_dialog_on_time_system_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -gboolean configuration_facade_get_keep_relativity (ConfigurationFacade* self); -static void _adjust_date_time_dialog_on_time_changed_gtk_toggle_button_toggled (GtkToggleButton* _sender, - gpointer self); -gboolean configuration_facade_get_commit_metadata_to_masters (ConfigurationFacade* self); -GdkPixbuf* thumbnail_source_get_thumbnail (ThumbnailSource* self, - gint scale, - GError** error); -gchar* data_object_to_string (DataObject* self); -time_t dateable_get_exposure_time (Dateable* self); -static void adjust_date_time_dialog_set_time (AdjustDateTimeDialog* self, - struct tm* time); -static void adjust_date_time_dialog_set_original_time_label (AdjustDateTimeDialog* self, - gboolean use_24_hr_format); -static time_t adjust_date_time_dialog_get_time (AdjustDateTimeDialog* self); -gboolean adjust_date_time_dialog_execute (AdjustDateTimeDialog* self, - gint64* time_shift, - gboolean* keep_relativity, - gboolean* modify_originals); -void configuration_facade_set_keep_relativity (ConfigurationFacade* self, - gboolean keep_relativity); -void configuration_facade_set_modify_originals (ConfigurationFacade* self, - gboolean modify_originals); -void configuration_facade_set_use_24_hour_time (ConfigurationFacade* self, - gboolean use_24_hour_time); -static void adjust_date_time_dialog_finalize (GObject * obj); - - -static GType -adjust_date_time_dialog_time_system_get_type (void) -{ - static volatile gsize adjust_date_time_dialog_time_system_type_id__volatile = 0; - if (g_once_init_enter (&adjust_date_time_dialog_time_system_type_id__volatile)) { - static const GEnumValue values[] = {{ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_AM, "ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_AM", "am"}, {ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_PM, "ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_PM", "pm"}, {ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_24HR, "ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_24HR", "24hr"}, {0, NULL, NULL}}; - GType adjust_date_time_dialog_time_system_type_id; - adjust_date_time_dialog_time_system_type_id = g_enum_register_static ("AdjustDateTimeDialogTimeSystem", values); - g_once_init_leave (&adjust_date_time_dialog_time_system_type_id__volatile, adjust_date_time_dialog_time_system_type_id); - } - return adjust_date_time_dialog_time_system_type_id__volatile; -} - - -static void -_adjust_date_time_dialog_on_time_changed_gtk_calendar_day_selected (GtkCalendar* _sender, - gpointer self) -{ -#line 53 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - adjust_date_time_dialog_on_time_changed ((AdjustDateTimeDialog*) self); -#line 276 "AdjustDateTimeDialog.c" -} - - -static void -_adjust_date_time_dialog_on_time_changed_gtk_calendar_month_changed (GtkCalendar* _sender, - gpointer self) -{ -#line 54 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - adjust_date_time_dialog_on_time_changed ((AdjustDateTimeDialog*) self); -#line 286 "AdjustDateTimeDialog.c" -} - - -static void -_adjust_date_time_dialog_on_time_changed_gtk_calendar_next_year (GtkCalendar* _sender, - gpointer self) -{ -#line 55 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - adjust_date_time_dialog_on_time_changed ((AdjustDateTimeDialog*) self); -#line 296 "AdjustDateTimeDialog.c" -} - - -static void -_adjust_date_time_dialog_on_time_changed_gtk_calendar_prev_year (GtkCalendar* _sender, - gpointer self) -{ -#line 56 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - adjust_date_time_dialog_on_time_changed ((AdjustDateTimeDialog*) self); -#line 306 "AdjustDateTimeDialog.c" -} - - -static gboolean -_adjust_date_time_dialog_on_spin_button_output_gtk_spin_button_output (GtkSpinButton* _sender, - gpointer self) -{ - gboolean result; - result = adjust_date_time_dialog_on_spin_button_output ((AdjustDateTimeDialog*) self, _sender); -#line 63 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - return result; -#line 318 "AdjustDateTimeDialog.c" -} - - -static void -_adjust_date_time_dialog_on_time_system_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 81 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - adjust_date_time_dialog_on_time_system_changed ((AdjustDateTimeDialog*) self); -#line 328 "AdjustDateTimeDialog.c" -} - - -static void -_adjust_date_time_dialog_on_time_changed_gtk_toggle_button_toggled (GtkToggleButton* _sender, - gpointer self) -{ -#line 103 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - adjust_date_time_dialog_on_time_changed ((AdjustDateTimeDialog*) self); -#line 338 "AdjustDateTimeDialog.c" -} - - -static void -g_time_gm (time_t time, - struct tm* result) -{ - struct tm _result_ = {0}; - struct tm _tmp0_ = {0}; -#line 2861 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - gmtime_r (&time, &_tmp0_); -#line 2861 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 2862 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result = _result_; -#line 2862 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return; -#line 356 "AdjustDateTimeDialog.c" -} - - -static gchar* -g_time_format (struct tm *self, - const gchar* format) -{ - gchar* result = NULL; - gchar* buffer = NULL; - gchar* _tmp0_; - gint buffer_length1; - gint _buffer_size_; - gchar* _tmp1_; - gint _tmp1__length1; - gchar* _tmp2_; - gint _tmp2__length1; - gchar* _tmp3_; -#line 2874 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (format != NULL, NULL); -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_new0 (gchar, 64); -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer = _tmp0_; -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer_length1 = 64; -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _buffer_size_ = buffer_length1; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = buffer; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1__length1 = buffer_length1; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - strftime (_tmp1_, _tmp1__length1, format, &(*self)); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = buffer; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2__length1 = buffer_length1; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_strdup ((const gchar*) _tmp2_); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp3_; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer = (g_free (buffer), NULL); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 402 "AdjustDateTimeDialog.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - return self ? g_object_ref (self) : NULL; -#line 411 "AdjustDateTimeDialog.c" -} - - -static void -g_time_local (time_t time, - struct tm* result) -{ - struct tm _result_ = {0}; - struct tm _tmp0_ = {0}; -#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - localtime_r (&time, &_tmp0_); -#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result = _result_; -#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return; -#line 429 "AdjustDateTimeDialog.c" -} - - -AdjustDateTimeDialog* -adjust_date_time_dialog_construct (GType object_type, - Dateable* source, - gint photo_count, - gboolean display_options, - gboolean contains_video, - gboolean only_video) -{ - AdjustDateTimeDialog * self = NULL; - AppWindow* _tmp0_; - AppWindow* _tmp1_; - GtkCalendar* _tmp2_; - GtkCalendar* _tmp3_; - GtkCalendar* _tmp4_; - GtkCalendar* _tmp5_; - GtkCalendar* _tmp6_; - GtkCalendar* _tmp7_; - ConfigFacade* _tmp8_; - ConfigFacade* _tmp9_; - gboolean _tmp10_; - GtkSpinButton* _tmp13_; - GtkSpinButton* _tmp14_; - GtkSpinButton* _tmp15_; - GtkSpinButton* _tmp16_; - GtkSpinButton* _tmp17_; - GtkSpinButton* _tmp18_; - GtkSpinButton* _tmp19_; - GtkSpinButton* _tmp20_; - GtkSpinButton* _tmp21_; - GtkSpinButton* _tmp22_; - GtkSpinButton* _tmp23_; - GtkComboBoxText* _tmp24_; - GtkComboBoxText* _tmp25_; - GtkComboBoxText* _tmp26_; - GtkComboBoxText* _tmp27_; - GtkComboBoxText* _tmp28_; - GtkBox* clock = NULL; - GtkBox* _tmp29_; - GtkBox* _tmp30_; - GtkSpinButton* _tmp31_; - GtkBox* _tmp32_; - GtkLabel* _tmp33_; - GtkLabel* _tmp34_; - GtkBox* _tmp35_; - GtkSpinButton* _tmp36_; - GtkBox* _tmp37_; - GtkLabel* _tmp38_; - GtkLabel* _tmp39_; - GtkBox* _tmp40_; - GtkSpinButton* _tmp41_; - GtkBox* _tmp42_; - GtkComboBoxText* _tmp43_; - GtkRadioButton* _tmp44_; - GtkRadioButton* _tmp45_; - ConfigFacade* _tmp46_; - ConfigFacade* _tmp47_; - gboolean _tmp48_ = FALSE; - GtkRadioButton* _tmp49_; - GtkRadioButton* _tmp50_; - GSList* _tmp51_; - GtkRadioButton* _tmp52_; - GtkRadioButton* _tmp53_; - ConfigFacade* _tmp54_; - ConfigFacade* _tmp55_; - gboolean _tmp56_ = FALSE; - GtkRadioButton* _tmp57_; - GtkRadioButton* _tmp58_; - gboolean _tmp65_ = FALSE; - ConfigFacade* _tmp66_; - ConfigFacade* _tmp67_; - gboolean _tmp68_; - GtkCheckButton* _tmp69_; - gboolean _tmp70_ = FALSE; - GtkCheckButton* _tmp75_; - GtkBox* time_content = NULL; - GtkBox* _tmp76_; - GtkBox* picker = NULL; - GtkBox* _tmp77_; - GtkComboBoxText* combo = NULL; - GtkComboBoxText* _tmp78_; - GtkBox* _tmp87_; - GtkComboBoxText* _tmp88_; - GtkSpinButton* spin = NULL; - GtkSpinButton* _tmp89_; - GtkBox* _tmp90_; - GtkSpinButton* _tmp91_; - GtkSpinButton* _tmp92_; - GtkCalendar* _tmp93_; - GtkComboBoxText* _tmp94_; - GtkCalendar* _tmp95_; - GtkBox* _tmp96_; - GtkBox* _tmp97_; - GtkBox* _tmp98_; - GtkCalendar* _tmp99_; - GtkBox* _tmp100_; - GtkBox* _tmp101_; - GdkPixbuf* preview = NULL; - GtkBox* image_content = NULL; - GtkBox* _tmp113_; - GtkBox* _tmp114_; - GtkBox* _tmp115_; - GtkImage* _tmp116_ = NULL; - GdkPixbuf* _tmp117_; - GtkImage* image = NULL; - GtkImage* _tmp121_; - GtkLabel* _tmp122_; - GtkBox* _tmp123_; - GtkImage* _tmp124_; - GtkBox* _tmp125_; - GtkLabel* _tmp126_; - GtkBox* hbox = NULL; - GtkBox* _tmp127_; - GtkBox* _tmp128_; - GtkBox* _tmp129_; - GtkBox* _tmp130_; - GtkBox* _tmp131_; - GtkBox* _tmp132_; - GtkBox* _tmp133_; - GtkBox* _tmp134_; - GtkBox* _tmp135_; - GtkBox* _tmp136_; - GtkBox* _tmp137_; - GtkBox* _tmp138_; - GtkLabel* _tmp139_; - GtkLabel* _tmp140_; - GtkLabel* _tmp141_; - GtkBox* _tmp142_; - GtkLabel* _tmp143_; - time_t _tmp144_; - time_t _tmp146_; - struct tm _tmp147_ = {0}; - ConfigFacade* _tmp148_; - ConfigFacade* _tmp149_; - GError * _inner_error_ = NULL; -#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_return_val_if_fail (IS_DATEABLE (source), NULL); -#line 39 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _vala_assert (source != NULL, "source != null"); -#line 41 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self = (AdjustDateTimeDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL); -#line 43 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_window_set_modal (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE); -#line 44 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE); -#line 45 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp0_ = app_window_get_instance (); -#line 45 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp1_ = _tmp0_; -#line 45 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow)); -#line 45 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (_tmp1_); -#line 47 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_dialog_add_buttons (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, RESOURCES_OK_LABEL, GTK_RESPONSE_OK, NULL); -#line 49 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), RESOURCES_ADJUST_DATE_TIME_LABEL); -#line 51 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp2_ = (GtkCalendar*) gtk_calendar_new (); -#line 51 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp2_); -#line 51 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->calendar); -#line 51 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->calendar = _tmp2_; -#line 52 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp3_ = self->priv->calendar; -#line 52 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_set (_tmp3_, "show-heading", FALSE, NULL); -#line 53 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp4_ = self->priv->calendar; -#line 53 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_signal_connect_object (_tmp4_, "day-selected", (GCallback) _adjust_date_time_dialog_on_time_changed_gtk_calendar_day_selected, self, 0); -#line 54 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp5_ = self->priv->calendar; -#line 54 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_signal_connect_object (_tmp5_, "month-changed", (GCallback) _adjust_date_time_dialog_on_time_changed_gtk_calendar_month_changed, self, 0); -#line 55 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp6_ = self->priv->calendar; -#line 55 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_signal_connect_object (_tmp6_, "next-year", (GCallback) _adjust_date_time_dialog_on_time_changed_gtk_calendar_next_year, self, 0); -#line 56 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp7_ = self->priv->calendar; -#line 56 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_signal_connect_object (_tmp7_, "prev-year", (GCallback) _adjust_date_time_dialog_on_time_changed_gtk_calendar_prev_year, self, 0); -#line 58 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp8_ = config_facade_get_instance (); -#line 58 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp9_ = _tmp8_; -#line 58 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp10_ = configuration_facade_get_use_24_hour_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 58 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (_tmp9_); -#line 58 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp10_) { -#line 627 "AdjustDateTimeDialog.c" - GtkSpinButton* _tmp11_; -#line 59 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp11_ = (GtkSpinButton*) gtk_spin_button_new_with_range ((gdouble) 0, (gdouble) 23, (gdouble) 1); -#line 59 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp11_); -#line 59 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->hour); -#line 59 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->hour = _tmp11_; -#line 637 "AdjustDateTimeDialog.c" - } else { - GtkSpinButton* _tmp12_; -#line 61 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp12_ = (GtkSpinButton*) gtk_spin_button_new_with_range ((gdouble) 1, (gdouble) 12, (gdouble) 1); -#line 61 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp12_); -#line 61 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->hour); -#line 61 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->hour = _tmp12_; -#line 648 "AdjustDateTimeDialog.c" - } -#line 63 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp13_ = self->priv->hour; -#line 63 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_signal_connect_object (_tmp13_, "output", (GCallback) _adjust_date_time_dialog_on_spin_button_output_gtk_spin_button_output, self, 0); -#line 64 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp14_ = self->priv->hour; -#line 64 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_entry_set_width_chars (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_entry_get_type (), GtkEntry), 2); -#line 65 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp15_ = self->priv->hour; -#line 65 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_entry_set_max_width_chars (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_entry_get_type (), GtkEntry), 2); -#line 67 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp16_ = (GtkSpinButton*) gtk_spin_button_new_with_range ((gdouble) 0, (gdouble) 59, (gdouble) 1); -#line 67 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp16_); -#line 67 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->minute); -#line 67 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->minute = _tmp16_; -#line 68 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp17_ = self->priv->minute; -#line 68 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_entry_set_width_chars (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_entry_get_type (), GtkEntry), 2); -#line 69 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp18_ = self->priv->minute; -#line 69 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_entry_set_max_width_chars (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_entry_get_type (), GtkEntry), 2); -#line 70 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp19_ = self->priv->minute; -#line 70 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_signal_connect_object (_tmp19_, "output", (GCallback) _adjust_date_time_dialog_on_spin_button_output_gtk_spin_button_output, self, 0); -#line 72 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp20_ = (GtkSpinButton*) gtk_spin_button_new_with_range ((gdouble) 0, (gdouble) 59, (gdouble) 1); -#line 72 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp20_); -#line 72 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->second); -#line 72 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->second = _tmp20_; -#line 73 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp21_ = self->priv->second; -#line 73 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_entry_set_width_chars (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_entry_get_type (), GtkEntry), 2); -#line 74 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp22_ = self->priv->second; -#line 74 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_entry_set_max_width_chars (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_entry_get_type (), GtkEntry), 2); -#line 75 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp23_ = self->priv->second; -#line 75 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_signal_connect_object (_tmp23_, "output", (GCallback) _adjust_date_time_dialog_on_spin_button_output_gtk_spin_button_output, self, 0); -#line 77 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp24_ = (GtkComboBoxText*) gtk_combo_box_text_new (); -#line 77 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp24_); -#line 77 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->system); -#line 77 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->system = _tmp24_; -#line 78 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp25_ = self->priv->system; -#line 78 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_combo_box_text_append_text (_tmp25_, _ ("AM")); -#line 79 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp26_ = self->priv->system; -#line 79 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_combo_box_text_append_text (_tmp26_, _ ("PM")); -#line 80 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp27_ = self->priv->system; -#line 80 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_combo_box_text_append_text (_tmp27_, _ ("24 Hr")); -#line 81 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp28_ = self->priv->system; -#line 81 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _adjust_date_time_dialog_on_time_system_changed_gtk_combo_box_changed, self, 0); -#line 83 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp29_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3); -#line 83 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp29_); -#line 83 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - clock = _tmp29_; -#line 85 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp30_ = clock; -#line 85 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp31_ = self->priv->hour; -#line 85 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (_tmp30_, G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 86 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp32_ = clock; -#line 86 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp33_ = (GtkLabel*) gtk_label_new (":"); -#line 86 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp33_); -#line 86 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp34_ = _tmp33_; -#line 86 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (_tmp32_, G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 86 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (_tmp34_); -#line 87 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp35_ = clock; -#line 87 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp36_ = self->priv->minute; -#line 87 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (_tmp35_, G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 88 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp37_ = clock; -#line 88 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp38_ = (GtkLabel*) gtk_label_new (":"); -#line 88 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp38_); -#line 88 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp39_ = _tmp38_; -#line 88 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (_tmp37_, G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 88 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (_tmp39_); -#line 89 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp40_ = clock; -#line 89 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp41_ = self->priv->second; -#line 89 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (_tmp40_, G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 90 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp42_ = clock; -#line 90 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp43_ = self->priv->system; -#line 90 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (_tmp42_, G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 92 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_dialog_set_default_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK); -#line 94 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp44_ = (GtkRadioButton*) gtk_radio_button_new_with_mnemonic (NULL, _ ("_Shift photos/videos by the same amount")); -#line 94 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp44_); -#line 94 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->relativity_radio_button); -#line 94 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->relativity_radio_button = _tmp44_; -#line 96 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp45_ = self->priv->relativity_radio_button; -#line 96 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp46_ = config_facade_get_instance (); -#line 96 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp47_ = _tmp46_; -#line 96 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_toggle_button_get_type (), GtkToggleButton), configuration_facade_get_keep_relativity (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 96 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (_tmp47_); -#line 97 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (display_options) { -#line 97 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp48_ = photo_count > 1; -#line 804 "AdjustDateTimeDialog.c" - } else { -#line 97 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp48_ = FALSE; -#line 808 "AdjustDateTimeDialog.c" - } -#line 97 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp49_ = self->priv->relativity_radio_button; -#line 97 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_widget_get_type (), GtkWidget), _tmp48_); -#line 99 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp50_ = self->priv->relativity_radio_button; -#line 99 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp51_ = gtk_radio_button_get_group (_tmp50_); -#line 99 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp52_ = (GtkRadioButton*) gtk_radio_button_new_with_mnemonic (_tmp51_, _ ("Set _all photos/videos to this time")); -#line 99 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp52_); -#line 99 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->batch_radio_button); -#line 99 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->batch_radio_button = _tmp52_; -#line 101 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp53_ = self->priv->batch_radio_button; -#line 101 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp54_ = config_facade_get_instance (); -#line 101 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp55_ = _tmp54_; -#line 101 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_toggle_button_get_type (), GtkToggleButton), !configuration_facade_get_keep_relativity (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 101 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (_tmp55_); -#line 102 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (display_options) { -#line 102 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp56_ = photo_count > 1; -#line 840 "AdjustDateTimeDialog.c" - } else { -#line 102 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp56_ = FALSE; -#line 844 "AdjustDateTimeDialog.c" - } -#line 102 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp57_ = self->priv->batch_radio_button; -#line 102 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_widget_get_type (), GtkWidget), _tmp56_); -#line 103 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp58_ = self->priv->batch_radio_button; -#line 103 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, gtk_toggle_button_get_type (), GtkToggleButton), "toggled", (GCallback) _adjust_date_time_dialog_on_time_changed_gtk_toggle_button_toggled, self, 0); -#line 105 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (contains_video) { -#line 856 "AdjustDateTimeDialog.c" - gchar* text = NULL; - gchar* _tmp59_; - const gchar* _tmp60_; - GtkCheckButton* _tmp61_; -#line 106 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp59_ = g_strdup (ngettext ("_Modify original photo file", "_Modify original photo files", (gulong) photo_count)); -#line 106 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - text = _tmp59_; -#line 108 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp60_ = text; -#line 108 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp61_ = (GtkCheckButton*) gtk_check_button_new_with_mnemonic (_tmp60_); -#line 108 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp61_); -#line 108 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->modify_originals_check_button); -#line 108 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->modify_originals_check_button = _tmp61_; -#line 105 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_free0 (text); -#line 877 "AdjustDateTimeDialog.c" - } else { - gchar* text = NULL; - gchar* _tmp62_; - const gchar* _tmp63_; - GtkCheckButton* _tmp64_; -#line 110 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp62_ = g_strdup (ngettext ("_Modify original file", "_Modify original files", (gulong) photo_count)); -#line 110 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - text = _tmp62_; -#line 111 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp63_ = text; -#line 111 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp64_ = (GtkCheckButton*) gtk_check_button_new_with_mnemonic (_tmp63_); -#line 111 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp64_); -#line 111 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->modify_originals_check_button); -#line 111 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->modify_originals_check_button = _tmp64_; -#line 105 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_free0 (text); -#line 899 "AdjustDateTimeDialog.c" - } -#line 114 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp66_ = config_facade_get_instance (); -#line 114 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp67_ = _tmp66_; -#line 114 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp68_ = configuration_facade_get_commit_metadata_to_masters (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 114 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (_tmp67_); -#line 114 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp68_) { -#line 115 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp65_ = display_options; -#line 913 "AdjustDateTimeDialog.c" - } else { -#line 114 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp65_ = FALSE; -#line 917 "AdjustDateTimeDialog.c" - } -#line 114 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp69_ = self->priv->modify_originals_check_button; -#line 114 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp65_); -#line 116 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (!only_video) { -#line 925 "AdjustDateTimeDialog.c" - gboolean _tmp71_ = FALSE; - ConfigFacade* _tmp72_; - ConfigFacade* _tmp73_; - gboolean _tmp74_; -#line 117 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp72_ = config_facade_get_instance (); -#line 117 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp73_ = _tmp72_; -#line 117 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp74_ = !configuration_facade_get_commit_metadata_to_masters (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 117 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (_tmp73_); -#line 117 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp74_) { -#line 117 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp71_ = display_options; -#line 942 "AdjustDateTimeDialog.c" - } else { -#line 117 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp71_ = FALSE; -#line 946 "AdjustDateTimeDialog.c" - } -#line 117 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp70_ = _tmp71_; -#line 950 "AdjustDateTimeDialog.c" - } else { -#line 116 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp70_ = FALSE; -#line 954 "AdjustDateTimeDialog.c" - } -#line 116 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp75_ = self->priv->modify_originals_check_button; -#line 116 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, gtk_widget_get_type (), GtkWidget), _tmp70_); -#line 119 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp76_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); -#line 119 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp76_); -#line 119 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - time_content = _tmp76_; -#line 121 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp77_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); -#line 121 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp77_); -#line 121 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - picker = _tmp77_; -#line 122 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp78_ = (GtkComboBoxText*) gtk_combo_box_text_new (); -#line 122 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp78_); -#line 122 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - combo = _tmp78_; -#line 978 "AdjustDateTimeDialog.c" - { - gint i = 0; -#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - i = 0; -#line 983 "AdjustDateTimeDialog.c" - { - gboolean _tmp79_ = FALSE; -#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp79_ = TRUE; -#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - while (TRUE) { -#line 990 "AdjustDateTimeDialog.c" - gint _tmp81_; - GtkComboBoxText* _tmp82_; - gint _tmp83_; - struct tm _tmp84_ = {0}; - gchar* _tmp85_; - gchar* _tmp86_; -#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (!_tmp79_) { -#line 999 "AdjustDateTimeDialog.c" - gint _tmp80_; -#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp80_ = i; -#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - i = _tmp80_ + 1; -#line 1005 "AdjustDateTimeDialog.c" - } -#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp79_ = FALSE; -#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp81_ = i; -#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (!(_tmp81_ < 12)) { -#line 123 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - break; -#line 1015 "AdjustDateTimeDialog.c" - } -#line 124 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp82_ = combo; -#line 124 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp83_ = i; -#line 124 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_time_gm ((time_t) (_tmp83_ * 2764800), &_tmp84_); -#line 124 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp85_ = g_time_format (&_tmp84_, "%B"); -#line 124 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp86_ = _tmp85_; -#line 124 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_combo_box_text_append_text (_tmp82_, _tmp86_); -#line 124 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_free0 (_tmp86_); -#line 1031 "AdjustDateTimeDialog.c" - } - } - } -#line 126 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp87_ = picker; -#line 126 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp88_ = combo; -#line 126 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (_tmp87_, G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 128 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp89_ = (GtkSpinButton*) gtk_spin_button_new_with_range ((gdouble) 0, (gdouble) (G_MAXINT >> 9), (gdouble) 1); -#line 128 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp89_); -#line 128 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - spin = _tmp89_; -#line 129 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp90_ = picker; -#line 129 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp91_ = spin; -#line 129 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_end (_tmp90_, G_TYPE_CHECK_INSTANCE_CAST (_tmp91_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 130 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp92_ = spin; -#line 130 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp93_ = self->priv->calendar; -#line 130 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_bind_property_with_closures (G_TYPE_CHECK_INSTANCE_CAST (_tmp92_, G_TYPE_OBJECT, GObject), "value", G_TYPE_CHECK_INSTANCE_CAST (_tmp93_, G_TYPE_OBJECT, GObject), "year", G_BINDING_BIDIRECTIONAL, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL))); -#line 131 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp94_ = combo; -#line 131 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp95_ = self->priv->calendar; -#line 131 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_bind_property_with_closures (G_TYPE_CHECK_INSTANCE_CAST (_tmp94_, G_TYPE_OBJECT, GObject), "active", G_TYPE_CHECK_INSTANCE_CAST (_tmp95_, G_TYPE_OBJECT, GObject), "month", G_BINDING_BIDIRECTIONAL, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL))); -#line 133 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp96_ = time_content; -#line 133 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp97_ = picker; -#line 133 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (_tmp96_, G_TYPE_CHECK_INSTANCE_CAST (_tmp97_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 134 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp98_ = time_content; -#line 134 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp99_ = self->priv->calendar; -#line 134 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (_tmp98_, G_TYPE_CHECK_INSTANCE_CAST (_tmp99_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0); -#line 135 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp100_ = time_content; -#line 135 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp101_ = clock; -#line 135 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (_tmp100_, G_TYPE_CHECK_INSTANCE_CAST (_tmp101_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0); -#line 137 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (display_options) { -#line 1085 "AdjustDateTimeDialog.c" - GtkBox* _tmp102_; - GtkRadioButton* _tmp103_; - GtkBox* _tmp104_; - GtkRadioButton* _tmp105_; - GtkBox* _tmp106_; - GtkCheckButton* _tmp107_; -#line 138 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp102_ = time_content; -#line 138 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp103_ = self->priv->relativity_radio_button; -#line 138 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (_tmp102_, G_TYPE_CHECK_INSTANCE_CAST (_tmp103_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0); -#line 139 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp104_ = time_content; -#line 139 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp105_ = self->priv->batch_radio_button; -#line 139 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (_tmp104_, G_TYPE_CHECK_INSTANCE_CAST (_tmp105_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0); -#line 140 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp106_ = time_content; -#line 140 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp107_ = self->priv->modify_originals_check_button; -#line 140 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (_tmp106_, G_TYPE_CHECK_INSTANCE_CAST (_tmp107_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0); -#line 1110 "AdjustDateTimeDialog.c" - } -#line 143 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - preview = NULL; -#line 1114 "AdjustDateTimeDialog.c" - { - GdkPixbuf* _tmp108_ = NULL; - GdkPixbuf* _tmp109_; - GdkPixbuf* _tmp110_; -#line 147 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp109_ = thumbnail_source_get_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), ADJUST_DATE_TIME_DIALOG_CALENDAR_THUMBNAIL_SCALE, &_inner_error_); -#line 147 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp108_ = _tmp109_; -#line 147 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1125 "AdjustDateTimeDialog.c" - goto __catch25_g_error; - } -#line 147 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp110_ = _tmp108_; -#line 147 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp108_ = NULL; -#line 147 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (preview); -#line 147 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - preview = _tmp110_; -#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (_tmp108_); -#line 1138 "AdjustDateTimeDialog.c" - } - goto __finally25; - __catch25_g_error: - { - GError* err = NULL; - gchar* _tmp111_; - gchar* _tmp112_; -#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - err = _inner_error_; -#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _inner_error_ = NULL; -#line 149 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp111_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject)); -#line 149 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp112_ = _tmp111_; -#line 149 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_warning ("AdjustDateTimeDialog.vala:149: Unable to fetch preview for %s", _tmp112_); -#line 149 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_free0 (_tmp112_); -#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_error_free0 (err); -#line 1160 "AdjustDateTimeDialog.c" - } - __finally25: -#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (preview); -#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (spin); -#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (combo); -#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (picker); -#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (time_content); -#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (clock); -#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_clear_error (&_inner_error_); -#line 144 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - return NULL; -#line 1183 "AdjustDateTimeDialog.c" - } -#line 152 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp113_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 152 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp113_); -#line 152 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - image_content = _tmp113_; -#line 153 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp114_ = image_content; -#line 153 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp114_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START); -#line 154 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp115_ = image_content; -#line 154 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_set_homogeneous (_tmp115_, TRUE); -#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp117_ = preview; -#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp117_ != NULL) { -#line 1203 "AdjustDateTimeDialog.c" - GdkPixbuf* _tmp118_; - GtkImage* _tmp119_; -#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp118_ = preview; -#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp119_ = (GtkImage*) gtk_image_new_from_pixbuf (_tmp118_); -#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp119_); -#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (_tmp116_); -#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp116_ = _tmp119_; -#line 1216 "AdjustDateTimeDialog.c" - } else { - GtkImage* _tmp120_; -#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp120_ = (GtkImage*) gtk_image_new (); -#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp120_); -#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (_tmp116_); -#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp116_ = _tmp120_; -#line 1227 "AdjustDateTimeDialog.c" - } -#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp121_ = _g_object_ref0 (_tmp116_); -#line 155 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - image = _tmp121_; -#line 156 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp122_ = (GtkLabel*) gtk_label_new (NULL); -#line 156 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp122_); -#line 156 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->original_time_label); -#line 156 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->original_time_label = _tmp122_; -#line 157 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp123_ = image_content; -#line 157 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp124_ = image; -#line 157 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (_tmp123_, G_TYPE_CHECK_INSTANCE_CAST (_tmp124_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0); -#line 158 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp125_ = image_content; -#line 158 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp126_ = self->priv->original_time_label; -#line 158 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (_tmp125_, G_TYPE_CHECK_INSTANCE_CAST (_tmp126_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0); -#line 160 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp127_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10); -#line 160 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp127_); -#line 160 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - hbox = _tmp127_; -#line 161 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp128_ = hbox; -#line 161 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp128_, gtk_container_get_type (), GtkContainer), (guint) 3); -#line 162 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp129_ = hbox; -#line 162 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp130_ = image_content; -#line 162 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (_tmp129_, G_TYPE_CHECK_INSTANCE_CAST (_tmp130_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0); -#line 163 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp131_ = hbox; -#line 163 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp132_ = time_content; -#line 163 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (_tmp131_, G_TYPE_CHECK_INSTANCE_CAST (_tmp132_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0); -#line 164 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp133_ = hbox; -#line 164 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp133_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 165 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp134_ = hbox; -#line 165 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp134_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 166 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp135_ = hbox; -#line 166 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp135_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 167 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp136_ = hbox; -#line 167 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp136_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 169 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp137_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 169 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp138_ = hbox; -#line 169 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp137_, gtk_box_get_type (), GtkBox), G_TYPE_CHECK_INSTANCE_CAST (_tmp138_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0); -#line 171 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp139_ = (GtkLabel*) gtk_label_new (""); -#line 171 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_ref_sink (_tmp139_); -#line 171 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->notification); -#line 171 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->notification = _tmp139_; -#line 172 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp140_ = self->priv->notification; -#line 172 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_label_set_line_wrap (_tmp140_, TRUE); -#line 173 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp141_ = self->priv->notification; -#line 173 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_label_set_justify (_tmp141_, GTK_JUSTIFY_CENTER); -#line 175 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp142_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 175 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp143_ = self->priv->notification; -#line 175 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_box_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp142_, gtk_box_get_type (), GtkBox), G_TYPE_CHECK_INSTANCE_CAST (_tmp143_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 177 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->original_time = dateable_get_exposure_time (source); -#line 179 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp144_ = self->priv->original_time; -#line 179 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp144_ == ((time_t) 0)) { -#line 1325 "AdjustDateTimeDialog.c" - time_t _tmp145_; -#line 180 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp145_ = time (NULL); -#line 180 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->original_time = _tmp145_; -#line 181 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->no_original_time = TRUE; -#line 1333 "AdjustDateTimeDialog.c" - } -#line 184 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp146_ = self->priv->original_time; -#line 184 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_time_local (_tmp146_, &_tmp147_); -#line 184 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - adjust_date_time_dialog_set_time (self, &_tmp147_); -#line 185 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp148_ = config_facade_get_instance (); -#line 185 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp149_ = _tmp148_; -#line 185 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - adjust_date_time_dialog_set_original_time_label (self, configuration_facade_get_use_24_hour_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp149_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 185 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (_tmp149_); -#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (hbox); -#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (image); -#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (_tmp116_); -#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (image_content); -#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (preview); -#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (spin); -#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (combo); -#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (picker); -#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (time_content); -#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (clock); -#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - return self; -#line 1371 "AdjustDateTimeDialog.c" -} - - -AdjustDateTimeDialog* -adjust_date_time_dialog_new (Dateable* source, - gint photo_count, - gboolean display_options, - gboolean contains_video, - gboolean only_video) -{ -#line 37 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - return adjust_date_time_dialog_construct (TYPE_ADJUST_DATE_TIME_DIALOG, source, photo_count, display_options, contains_video, only_video); -#line 1384 "AdjustDateTimeDialog.c" -} - - -static void -adjust_date_time_dialog_set_time (AdjustDateTimeDialog* self, - struct tm* time) -{ - GtkCalendar* _tmp0_; - struct tm _tmp1_; - gint _tmp2_; - struct tm _tmp3_; - gint _tmp4_; - GtkCalendar* _tmp5_; - struct tm _tmp6_; - gint _tmp7_; - GtkCalendar* _tmp8_; - GtkCalendar* _tmp9_; - ConfigFacade* _tmp10_; - ConfigFacade* _tmp11_; - gboolean _tmp12_; - GtkSpinButton* _tmp27_; - struct tm _tmp28_; - gint _tmp29_; - GtkSpinButton* _tmp30_; - struct tm _tmp31_; - gint _tmp32_; - GtkComboBoxText* _tmp33_; -#line 188 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_return_if_fail (IS_ADJUST_DATE_TIME_DIALOG (self)); -#line 188 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_return_if_fail (time != NULL); -#line 189 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp0_ = self->priv->calendar; -#line 189 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp1_ = *time; -#line 189 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp2_ = _tmp1_.tm_mon; -#line 189 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp3_ = *time; -#line 189 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp4_ = _tmp3_.tm_year; -#line 189 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_calendar_select_month (_tmp0_, (guint) _tmp2_, (guint) (_tmp4_ + ADJUST_DATE_TIME_DIALOG_YEAR_OFFSET)); -#line 190 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp5_ = self->priv->calendar; -#line 190 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp6_ = *time; -#line 190 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp7_ = _tmp6_.tm_mday; -#line 190 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_calendar_select_day (_tmp5_, (guint) _tmp7_); -#line 191 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp8_ = self->priv->calendar; -#line 191 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_notify (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, G_TYPE_OBJECT, GObject), "year"); -#line 192 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp9_ = self->priv->calendar; -#line 192 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_notify (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, G_TYPE_OBJECT, GObject), "month"); -#line 194 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp10_ = config_facade_get_instance (); -#line 194 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp11_ = _tmp10_; -#line 194 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp12_ = configuration_facade_get_use_24_hour_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 194 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (_tmp11_); -#line 194 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp12_) { -#line 1454 "AdjustDateTimeDialog.c" - GtkComboBoxText* _tmp13_; - GtkSpinButton* _tmp14_; - struct tm _tmp15_; - gint _tmp16_; -#line 195 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp13_ = self->priv->system; -#line 195 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_combo_box_get_type (), GtkComboBox), (gint) ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_24HR); -#line 196 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp14_ = self->priv->hour; -#line 196 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp15_ = *time; -#line 196 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp16_ = _tmp15_.tm_hour; -#line 196 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_spin_button_set_value (_tmp14_, (gdouble) _tmp16_); -#line 1471 "AdjustDateTimeDialog.c" - } else { - gint AMPM_hour = 0; - struct tm _tmp17_; - gint _tmp18_; - gint _tmp19_ = 0; - gint _tmp20_; - GtkSpinButton* _tmp22_; - AdjustDateTimeDialogTimeSystem _tmp23_ = 0; - struct tm _tmp24_; - gint _tmp25_; - GtkComboBoxText* _tmp26_; -#line 198 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp17_ = *time; -#line 198 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp18_ = _tmp17_.tm_hour; -#line 198 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - AMPM_hour = _tmp18_ % 12; -#line 199 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp20_ = AMPM_hour; -#line 199 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp20_ == 0) { -#line 199 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp19_ = 12; -#line 1495 "AdjustDateTimeDialog.c" - } else { - gint _tmp21_; -#line 199 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp21_ = AMPM_hour; -#line 199 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp19_ = _tmp21_; -#line 1502 "AdjustDateTimeDialog.c" - } -#line 199 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp22_ = self->priv->hour; -#line 199 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_spin_button_set_value (_tmp22_, (gdouble) _tmp19_); -#line 200 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp24_ = *time; -#line 200 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp25_ = _tmp24_.tm_hour; -#line 200 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp25_ >= 12) { -#line 200 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp23_ = ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_PM; -#line 1516 "AdjustDateTimeDialog.c" - } else { -#line 200 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp23_ = ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_AM; -#line 1520 "AdjustDateTimeDialog.c" - } -#line 200 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp26_ = self->priv->system; -#line 200 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp23_); -#line 1526 "AdjustDateTimeDialog.c" - } -#line 203 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp27_ = self->priv->minute; -#line 203 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp28_ = *time; -#line 203 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp29_ = _tmp28_.tm_min; -#line 203 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_spin_button_set_value (_tmp27_, (gdouble) _tmp29_); -#line 204 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp30_ = self->priv->second; -#line 204 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp31_ = *time; -#line 204 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp32_ = _tmp31_.tm_sec; -#line 204 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_spin_button_set_value (_tmp30_, (gdouble) _tmp32_); -#line 206 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp33_ = self->priv->system; -#line 206 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->previous_time_system = (AdjustDateTimeDialogTimeSystem) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_combo_box_get_type (), GtkComboBox)); -#line 1548 "AdjustDateTimeDialog.c" -} - - -static void -adjust_date_time_dialog_set_original_time_label (AdjustDateTimeDialog* self, - gboolean use_24_hr_format) -{ - gboolean _tmp0_; - const gchar* _tmp1_ = NULL; - GtkLabel* _tmp2_; - time_t _tmp3_; - struct tm _tmp4_ = {0}; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 209 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_return_if_fail (IS_ADJUST_DATE_TIME_DIALOG (self)); -#line 210 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp0_ = self->priv->no_original_time; -#line 210 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp0_) { -#line 211 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - return; -#line 1573 "AdjustDateTimeDialog.c" - } -#line 214 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (use_24_hr_format) { -#line 214 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp1_ = _ ("%m/%d/%Y, %H:%M:%S"); -#line 1579 "AdjustDateTimeDialog.c" - } else { -#line 215 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp1_ = _ ("%m/%d/%Y, %I:%M:%S %p"); -#line 1583 "AdjustDateTimeDialog.c" - } -#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp2_ = self->priv->original_time_label; -#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp3_ = self->priv->original_time; -#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_time_local (_tmp3_, &_tmp4_); -#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp5_ = g_time_format (&_tmp4_, _tmp1_); -#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp6_ = _tmp5_; -#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp7_ = g_strconcat (_ ("Original: "), _tmp6_, NULL); -#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp8_ = _tmp7_; -#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_label_set_text (_tmp2_, _tmp8_); -#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_free0 (_tmp8_); -#line 213 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_free0 (_tmp6_); -#line 1605 "AdjustDateTimeDialog.c" -} - - -static time_t -adjust_date_time_dialog_get_time (AdjustDateTimeDialog* self) -{ - time_t result = 0; - struct tm time = {0}; - GtkSpinButton* _tmp0_; - GtkSpinButton* _tmp1_; - gint hour = 0; - GtkSpinButton* _tmp2_; - gint _tmp3_ = 0; - gboolean _tmp4_ = FALSE; - gint _tmp5_; - gint _tmp8_ = 0; - GtkComboBoxText* _tmp9_; - gint _tmp10_; - guint year = 0U; - guint month = 0U; - guint day = 0U; - GtkCalendar* _tmp11_; - guint _tmp12_ = 0U; - guint _tmp13_ = 0U; - guint _tmp14_ = 0U; -#line 218 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_return_val_if_fail (IS_ADJUST_DATE_TIME_DIALOG (self), 0); -#line 219 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - memset (&time, 0, sizeof (struct tm)); -#line 221 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp0_ = self->priv->second; -#line 221 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - time.tm_sec = (gint) gtk_spin_button_get_value (_tmp0_); -#line 222 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp1_ = self->priv->minute; -#line 222 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - time.tm_min = (gint) gtk_spin_button_get_value (_tmp1_); -#line 225 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp2_ = self->priv->hour; -#line 225 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - hour = (gint) gtk_spin_button_get_value (_tmp2_); -#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp5_ = hour; -#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp5_ == 12) { -#line 1651 "AdjustDateTimeDialog.c" - GtkComboBoxText* _tmp6_; -#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp6_ = self->priv->system; -#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp4_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_combo_box_get_type (), GtkComboBox)) != ((gint) ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_24HR); -#line 1657 "AdjustDateTimeDialog.c" - } else { -#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp4_ = FALSE; -#line 1661 "AdjustDateTimeDialog.c" - } -#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp4_) { -#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp3_ = 0; -#line 1667 "AdjustDateTimeDialog.c" - } else { - gint _tmp7_; -#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp7_ = hour; -#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp3_ = _tmp7_; -#line 1674 "AdjustDateTimeDialog.c" - } -#line 226 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - time.tm_hour = _tmp3_; -#line 227 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp9_ = self->priv->system; -#line 227 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_combo_box_get_type (), GtkComboBox)) == ((gint) ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_PM)) { -#line 227 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp8_ = 12; -#line 1684 "AdjustDateTimeDialog.c" - } else { -#line 227 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp8_ = 0; -#line 1688 "AdjustDateTimeDialog.c" - } -#line 227 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp10_ = time.tm_hour; -#line 227 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - time.tm_hour = _tmp10_ + _tmp8_; -#line 230 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp11_ = self->priv->calendar; -#line 230 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_calendar_get_date (_tmp11_, &_tmp12_, &_tmp13_, &_tmp14_); -#line 230 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - year = _tmp12_; -#line 230 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - month = _tmp13_; -#line 230 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - day = _tmp14_; -#line 231 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - time.tm_year = ((gint) year) - ADJUST_DATE_TIME_DIALOG_YEAR_OFFSET; -#line 232 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - time.tm_mon = (gint) month; -#line 233 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - time.tm_mday = (gint) day; -#line 235 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - time.tm_isdst = -1; -#line 237 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - result = mktime (&time); -#line 237 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - return result; -#line 1716 "AdjustDateTimeDialog.c" -} - - -gboolean -adjust_date_time_dialog_execute (AdjustDateTimeDialog* self, - gint64* time_shift, - gboolean* keep_relativity, - gboolean* modify_originals) -{ - gint64 _vala_time_shift = 0LL; - gboolean _vala_keep_relativity = FALSE; - gboolean _vala_modify_originals = FALSE; - gboolean result = FALSE; - gboolean response = FALSE; -#line 240 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_return_val_if_fail (IS_ADJUST_DATE_TIME_DIALOG (self), FALSE); -#line 242 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 244 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - response = FALSE; -#line 246 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_OK)) { -#line 1739 "AdjustDateTimeDialog.c" - gboolean _tmp0_; - GtkRadioButton* _tmp2_; - GtkRadioButton* _tmp3_; - gboolean _tmp4_; - gboolean _tmp5_; - GtkCheckButton* _tmp9_; - GtkCheckButton* _tmp10_; - gboolean _tmp11_; - gboolean _tmp12_; -#line 247 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp0_ = self->priv->no_original_time; -#line 247 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp0_) { -#line 248 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _vala_time_shift = (gint64) adjust_date_time_dialog_get_time (self); -#line 1755 "AdjustDateTimeDialog.c" - } else { - time_t _tmp1_; -#line 250 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp1_ = self->priv->original_time; -#line 250 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _vala_time_shift = (gint64) (adjust_date_time_dialog_get_time (self) - _tmp1_); -#line 1762 "AdjustDateTimeDialog.c" - } -#line 252 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp2_ = self->priv->relativity_radio_button; -#line 252 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _vala_keep_relativity = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 254 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp3_ = self->priv->relativity_radio_button; -#line 254 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp4_ = gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget)); -#line 254 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp5_ = _tmp4_; -#line 254 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp5_) { -#line 1776 "AdjustDateTimeDialog.c" - ConfigFacade* _tmp6_; - ConfigFacade* _tmp7_; - gboolean _tmp8_; -#line 255 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp6_ = config_facade_get_instance (); -#line 255 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp7_ = _tmp6_; -#line 255 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp8_ = _vala_keep_relativity; -#line 255 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - configuration_facade_set_keep_relativity (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp8_); -#line 255 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (_tmp7_); -#line 1790 "AdjustDateTimeDialog.c" - } -#line 257 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp9_ = self->priv->modify_originals_check_button; -#line 257 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _vala_modify_originals = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 259 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp10_ = self->priv->modify_originals_check_button; -#line 259 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp11_ = gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget)); -#line 259 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp12_ = _tmp11_; -#line 259 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp12_) { -#line 1804 "AdjustDateTimeDialog.c" - ConfigFacade* _tmp13_; - ConfigFacade* _tmp14_; - gboolean _tmp15_; -#line 260 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp13_ = config_facade_get_instance (); -#line 260 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp14_ = _tmp13_; -#line 260 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp15_ = _vala_modify_originals; -#line 260 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - configuration_facade_set_modify_originals (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp15_); -#line 260 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (_tmp14_); -#line 1818 "AdjustDateTimeDialog.c" - } -#line 262 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - response = TRUE; -#line 1822 "AdjustDateTimeDialog.c" - } else { -#line 264 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _vala_time_shift = (gint64) 0; -#line 265 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _vala_keep_relativity = TRUE; -#line 266 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _vala_modify_originals = FALSE; -#line 1830 "AdjustDateTimeDialog.c" - } -#line 269 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 271 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - result = response; -#line 271 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (time_shift) { -#line 271 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - *time_shift = _vala_time_shift; -#line 1840 "AdjustDateTimeDialog.c" - } -#line 271 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (keep_relativity) { -#line 271 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - *keep_relativity = _vala_keep_relativity; -#line 1846 "AdjustDateTimeDialog.c" - } -#line 271 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (modify_originals) { -#line 271 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - *modify_originals = _vala_modify_originals; -#line 1852 "AdjustDateTimeDialog.c" - } -#line 271 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - return result; -#line 1856 "AdjustDateTimeDialog.c" -} - - -static gboolean -adjust_date_time_dialog_on_spin_button_output (AdjustDateTimeDialog* self, - GtkSpinButton* button) -{ - gboolean result = FALSE; - gchar* _tmp0_; - gchar* _tmp1_; -#line 274 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_return_val_if_fail (IS_ADJUST_DATE_TIME_DIALOG (self), FALSE); -#line 274 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_return_val_if_fail (GTK_IS_SPIN_BUTTON (button), FALSE); -#line 275 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp0_ = g_strdup_printf ("%02d", (gint) gtk_spin_button_get_value (button)); -#line 275 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp1_ = _tmp0_; -#line 275 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_entry_set_text (G_TYPE_CHECK_INSTANCE_CAST (button, gtk_entry_get_type (), GtkEntry), _tmp1_); -#line 275 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_free0 (_tmp1_); -#line 277 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - adjust_date_time_dialog_on_time_changed (self); -#line 279 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - result = TRUE; -#line 279 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - return result; -#line 1885 "AdjustDateTimeDialog.c" -} - - -static void -adjust_date_time_dialog_on_time_changed (AdjustDateTimeDialog* self) -{ - gint64 time_shift = 0LL; - time_t _tmp0_; - GtkCalendar* _tmp1_; - GtkCalendar* _tmp2_; - GtkComboBoxText* _tmp3_; - gboolean _tmp4_ = FALSE; - gboolean _tmp5_ = FALSE; - gint64 _tmp6_; -#line 282 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_return_if_fail (IS_ADJUST_DATE_TIME_DIALOG (self)); -#line 283 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp0_ = self->priv->original_time; -#line 283 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - time_shift = ((gint64) adjust_date_time_dialog_get_time (self)) - ((gint64) _tmp0_); -#line 284 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp1_ = self->priv->calendar; -#line 284 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_notify (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, G_TYPE_OBJECT, GObject), "year"); -#line 285 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp2_ = self->priv->calendar; -#line 285 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_object_notify (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, G_TYPE_OBJECT, GObject), "month"); -#line 287 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp3_ = self->priv->system; -#line 287 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->previous_time_system = (AdjustDateTimeDialogTimeSystem) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_combo_box_get_type (), GtkComboBox)); -#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp6_ = time_shift; -#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp6_ == ((gint64) 0)) { -#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp5_ = TRUE; -#line 1924 "AdjustDateTimeDialog.c" - } else { - gboolean _tmp7_; -#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp7_ = self->priv->no_original_time; -#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp5_ = _tmp7_; -#line 1931 "AdjustDateTimeDialog.c" - } -#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp5_) { -#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp4_ = TRUE; -#line 1937 "AdjustDateTimeDialog.c" - } else { - gboolean _tmp8_ = FALSE; - GtkRadioButton* _tmp9_; -#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp9_ = self->priv->batch_radio_button; -#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_toggle_button_get_type (), GtkToggleButton))) { -#line 1945 "AdjustDateTimeDialog.c" - GtkRadioButton* _tmp10_; - gboolean _tmp11_; - gboolean _tmp12_; -#line 290 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp10_ = self->priv->batch_radio_button; -#line 290 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp11_ = gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget)); -#line 290 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp12_ = _tmp11_; -#line 290 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp8_ = _tmp12_; -#line 1957 "AdjustDateTimeDialog.c" - } else { -#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp8_ = FALSE; -#line 1961 "AdjustDateTimeDialog.c" - } -#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp4_ = _tmp8_; -#line 1965 "AdjustDateTimeDialog.c" - } -#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp4_) { -#line 1969 "AdjustDateTimeDialog.c" - GtkLabel* _tmp13_; -#line 291 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp13_ = self->priv->notification; -#line 291 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget)); -#line 1975 "AdjustDateTimeDialog.c" - } else { - gboolean forward = FALSE; - gint64 _tmp14_; - gint days = 0; - gint hours = 0; - gint minutes = 0; - gint seconds = 0; - gint64 _tmp15_; - gint64 _tmp16_; - gint64 _tmp17_; - gint64 _tmp18_; - gint64 _tmp19_; - gint64 _tmp20_; - gint64 _tmp21_; - const gchar* _tmp22_ = NULL; - gboolean _tmp23_; - gchar* shift_status = NULL; - gchar* _tmp24_; - GtkLabel* _tmp25_; - const gchar* _tmp26_; - gint _tmp27_; - gint _tmp28_; - gint _tmp29_; - gint _tmp30_; - gint _tmp31_; - gint _tmp32_; - gint _tmp33_; - gint _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; - GtkLabel* _tmp37_; -#line 293 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp14_ = time_shift; -#line 293 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - forward = _tmp14_ > ((gint64) 0); -#line 296 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp15_ = time_shift; -#line 296 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - time_shift = llabs (_tmp15_); -#line 298 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp16_ = time_shift; -#line 298 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - days = (gint) (_tmp16_ / ADJUST_DATE_TIME_DIALOG_SECONDS_IN_DAY); -#line 299 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp17_ = time_shift; -#line 299 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - time_shift = _tmp17_ % ADJUST_DATE_TIME_DIALOG_SECONDS_IN_DAY; -#line 300 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp18_ = time_shift; -#line 300 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - hours = (gint) (_tmp18_ / ADJUST_DATE_TIME_DIALOG_SECONDS_IN_HOUR); -#line 301 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp19_ = time_shift; -#line 301 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - time_shift = _tmp19_ % ADJUST_DATE_TIME_DIALOG_SECONDS_IN_HOUR; -#line 302 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp20_ = time_shift; -#line 302 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - minutes = (gint) (_tmp20_ / ADJUST_DATE_TIME_DIALOG_SECONDS_IN_MINUTE); -#line 303 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp21_ = time_shift; -#line 303 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - seconds = (gint) (_tmp21_ % ADJUST_DATE_TIME_DIALOG_SECONDS_IN_MINUTE); -#line 305 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp23_ = forward; -#line 305 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp23_) { -#line 306 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp22_ = _ ("Exposure time will be shifted forward by\n" \ -"%d %s, %d %s, %d %s, and %d %s."); -#line 2045 "AdjustDateTimeDialog.c" - } else { -#line 307 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp22_ = _ ("Exposure time will be shifted backward by\n" \ -"%d %s, %d %s, %d %s, and %d %s."); -#line 2049 "AdjustDateTimeDialog.c" - } -#line 305 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp24_ = g_strdup (_tmp22_); -#line 305 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - shift_status = _tmp24_; -#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp25_ = self->priv->notification; -#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp26_ = shift_status; -#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp27_ = days; -#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp28_ = days; -#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp29_ = hours; -#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp30_ = hours; -#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp31_ = minutes; -#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp32_ = minutes; -#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp33_ = seconds; -#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp34_ = seconds; -#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp35_ = g_strdup_printf (_tmp26_, _tmp27_, ngettext ("day", "days", (gulong) _tmp28_), _tmp29_, ngettext ("hour", "hours", (gulong) _tmp30_), _tmp31_, ngettext ("minute", "minutes", (gulong) _tmp32_), _tmp33_, ngettext ("second", "seconds", (gulong) _tmp34_)); -#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp36_ = _tmp35_; -#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_label_set_text (_tmp25_, _tmp36_); -#line 309 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_free0 (_tmp36_); -#line 314 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp37_ = self->priv->notification; -#line 314 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget)); -#line 289 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_free0 (shift_status); -#line 2089 "AdjustDateTimeDialog.c" - } -} - - -static void -adjust_date_time_dialog_on_time_system_changed (AdjustDateTimeDialog* self) -{ - AdjustDateTimeDialogTimeSystem _tmp0_; - GtkComboBoxText* _tmp1_; - ConfigFacade* _tmp2_; - ConfigFacade* _tmp3_; - GtkComboBoxText* _tmp4_; - GtkComboBoxText* _tmp5_; -#line 318 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_return_if_fail (IS_ADJUST_DATE_TIME_DIALOG (self)); -#line 319 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp0_ = self->priv->previous_time_system; -#line 319 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp1_ = self->priv->system; -#line 319 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp0_ == gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))) { -#line 320 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - return; -#line 2113 "AdjustDateTimeDialog.c" - } -#line 322 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp2_ = config_facade_get_instance (); -#line 322 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp3_ = _tmp2_; -#line 322 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp4_ = self->priv->system; -#line 322 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - configuration_facade_set_use_24_hour_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_combo_box_get_type (), GtkComboBox)) == ((gint) ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_24HR)); -#line 322 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (_tmp3_); -#line 324 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp5_ = self->priv->system; -#line 324 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_combo_box_get_type (), GtkComboBox)) == ((gint) ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_24HR)) { -#line 2129 "AdjustDateTimeDialog.c" - gint _tmp6_ = 0; - GtkSpinButton* _tmp7_; - gint time = 0; - gint _tmp9_ = 0; - AdjustDateTimeDialogTimeSystem _tmp10_; - gint _tmp11_; - GtkSpinButton* _tmp12_; - GtkSpinButton* _tmp13_; - gint _tmp14_; -#line 325 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp7_ = self->priv->hour; -#line 325 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (gtk_spin_button_get_value (_tmp7_) == 12.0) { -#line 325 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp6_ = 0; -#line 2145 "AdjustDateTimeDialog.c" - } else { - GtkSpinButton* _tmp8_; -#line 325 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp8_ = self->priv->hour; -#line 325 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp6_ = (gint) gtk_spin_button_get_value (_tmp8_); -#line 2152 "AdjustDateTimeDialog.c" - } -#line 325 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - time = _tmp6_; -#line 326 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp10_ = self->priv->previous_time_system; -#line 326 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp10_ == ADJUST_DATE_TIME_DIALOG_TIME_SYSTEM_PM) { -#line 326 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp9_ = 12; -#line 2162 "AdjustDateTimeDialog.c" - } else { -#line 326 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp9_ = 0; -#line 2166 "AdjustDateTimeDialog.c" - } -#line 326 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp11_ = time; -#line 326 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - time = _tmp11_ + _tmp9_; -#line 328 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp12_ = self->priv->hour; -#line 328 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_spin_button_set_range (_tmp12_, (gdouble) 0, (gdouble) 23); -#line 329 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - adjust_date_time_dialog_set_original_time_label (self, TRUE); -#line 331 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp13_ = self->priv->hour; -#line 331 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp14_ = time; -#line 331 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_spin_button_set_value (_tmp13_, (gdouble) _tmp14_); -#line 2184 "AdjustDateTimeDialog.c" - } else { - gint AMPM_hour = 0; - GtkSpinButton* _tmp15_; - GtkSpinButton* _tmp16_; - gint _tmp17_ = 0; - gint _tmp18_; - GtkSpinButton* _tmp20_; -#line 333 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp15_ = self->priv->hour; -#line 333 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - AMPM_hour = ((gint) gtk_spin_button_get_value (_tmp15_)) % 12; -#line 335 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp16_ = self->priv->hour; -#line 335 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_spin_button_set_range (_tmp16_, (gdouble) 1, (gdouble) 12); -#line 336 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - adjust_date_time_dialog_set_original_time_label (self, FALSE); -#line 338 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp18_ = AMPM_hour; -#line 338 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - if (_tmp18_ == 0) { -#line 338 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp17_ = 12; -#line 2208 "AdjustDateTimeDialog.c" - } else { - gint _tmp19_; -#line 338 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp19_ = AMPM_hour; -#line 338 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp17_ = _tmp19_; -#line 2215 "AdjustDateTimeDialog.c" - } -#line 338 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _tmp20_ = self->priv->hour; -#line 338 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - gtk_spin_button_set_value (_tmp20_, (gdouble) _tmp17_); -#line 2221 "AdjustDateTimeDialog.c" - } -#line 341 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - adjust_date_time_dialog_on_time_changed (self); -#line 2225 "AdjustDateTimeDialog.c" -} - - -static void -adjust_date_time_dialog_class_init (AdjustDateTimeDialogClass * klass) -{ -#line 8 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - adjust_date_time_dialog_parent_class = g_type_class_peek_parent (klass); -#line 8 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - g_type_class_add_private (klass, sizeof (AdjustDateTimeDialogPrivate)); -#line 8 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - G_OBJECT_CLASS (klass)->finalize = adjust_date_time_dialog_finalize; -#line 2238 "AdjustDateTimeDialog.c" -} - - -static void -adjust_date_time_dialog_instance_init (AdjustDateTimeDialog * self) -{ -#line 8 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv = ADJUST_DATE_TIME_DIALOG_GET_PRIVATE (self); -#line 13 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self->priv->no_original_time = FALSE; -#line 2249 "AdjustDateTimeDialog.c" -} - - -static void -adjust_date_time_dialog_finalize (GObject * obj) -{ - AdjustDateTimeDialog * self; -#line 8 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADJUST_DATE_TIME_DIALOG, AdjustDateTimeDialog); -#line 18 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->original_time_label); -#line 19 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->calendar); -#line 20 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->hour); -#line 21 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->minute); -#line 22 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->second); -#line 23 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->system); -#line 24 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->relativity_radio_button); -#line 25 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->batch_radio_button); -#line 26 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->modify_originals_check_button); -#line 27 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - _g_object_unref0 (self->priv->notification); -#line 8 "/home/jens/Source/shotwell/src/dialogs/AdjustDateTimeDialog.vala" - G_OBJECT_CLASS (adjust_date_time_dialog_parent_class)->finalize (obj); -#line 2281 "AdjustDateTimeDialog.c" -} - - -GType -adjust_date_time_dialog_get_type (void) -{ - static volatile gsize adjust_date_time_dialog_type_id__volatile = 0; - if (g_once_init_enter (&adjust_date_time_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (AdjustDateTimeDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) adjust_date_time_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AdjustDateTimeDialog), 0, (GInstanceInitFunc) adjust_date_time_dialog_instance_init, NULL }; - GType adjust_date_time_dialog_type_id; - adjust_date_time_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "AdjustDateTimeDialog", &g_define_type_info, 0); - g_once_init_leave (&adjust_date_time_dialog_type_id__volatile, adjust_date_time_dialog_type_id); - } - return adjust_date_time_dialog_type_id__volatile; -} - - - diff --git a/src/dialogs/EntryMultiCompletion.c b/src/dialogs/EntryMultiCompletion.c deleted file mode 100644 index 4006725..0000000 --- a/src/dialogs/EntryMultiCompletion.c +++ /dev/null @@ -1,1073 +0,0 @@ -/* EntryMultiCompletion.c generated by valac 0.40.4, the Vala compiler - * generated from EntryMultiCompletion.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * Copyright 2017 Jens Georg - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/* Entry completion for values separated by separators (e.g. comma in the case of tags)*/ -/* Partly inspired by the class of the same name in gtkmm-utils by Marko Anastasov*/ - - -#include -#include -#include -#include -#include -#include - - -#define TYPE_ENTRY_MULTI_COMPLETION (entry_multi_completion_get_type ()) -#define ENTRY_MULTI_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletion)) -#define ENTRY_MULTI_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletionClass)) -#define IS_ENTRY_MULTI_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ENTRY_MULTI_COMPLETION)) -#define IS_ENTRY_MULTI_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ENTRY_MULTI_COMPLETION)) -#define ENTRY_MULTI_COMPLETION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletionClass)) - -typedef struct _EntryMultiCompletion EntryMultiCompletion; -typedef struct _EntryMultiCompletionClass EntryMultiCompletionClass; -typedef struct _EntryMultiCompletionPrivate EntryMultiCompletionPrivate; -enum { - ENTRY_MULTI_COMPLETION_0_PROPERTY, - ENTRY_MULTI_COMPLETION_NUM_PROPERTIES -}; -static GParamSpec* entry_multi_completion_properties[ENTRY_MULTI_COMPLETION_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _EntryMultiCompletion { - GtkEntryCompletion parent_instance; - EntryMultiCompletionPrivate * priv; -}; - -struct _EntryMultiCompletionClass { - GtkEntryCompletionClass parent_class; -}; - -struct _EntryMultiCompletionPrivate { - gchar* delimiter; -}; - - -static gpointer entry_multi_completion_parent_class = NULL; - -GType entry_multi_completion_get_type (void) G_GNUC_CONST; -#define ENTRY_MULTI_COMPLETION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletionPrivate)) -EntryMultiCompletion* entry_multi_completion_new (GeeCollection* completion_list, - const gchar* delimiter); -EntryMultiCompletion* entry_multi_completion_construct (GType object_type, - GeeCollection* completion_list, - const gchar* delimiter); -static GtkListStore* entry_multi_completion_create_completion_store (GeeCollection* completion_list); -static gboolean entry_multi_completion_match_func (EntryMultiCompletion* self, - GtkEntryCompletion* completion, - const gchar* key, - GtkTreeIter* iter); -static gboolean _entry_multi_completion_match_func_gtk_entry_completion_match_func (GtkEntryCompletion* completion, - const gchar* key, - GtkTreeIter* iter, - gpointer self); -static gchar* entry_multi_completion_get_last_part (const gchar* s, - const gchar* delimiter); -static gboolean entry_multi_completion_real_match_selected (GtkEntryCompletion* base, - GtkTreeModel* model, - GtkTreeIter* iter); -static void entry_multi_completion_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -static gboolean -_entry_multi_completion_match_func_gtk_entry_completion_match_func (GtkEntryCompletion* completion, - const gchar* key, - GtkTreeIter* iter, - gpointer self) -{ - gboolean result; - result = entry_multi_completion_match_func ((EntryMultiCompletion*) self, completion, key, iter); -#line 19 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - return result; -#line 102 "EntryMultiCompletion.c" -} - - -EntryMultiCompletion* -entry_multi_completion_construct (GType object_type, - GeeCollection* completion_list, - const gchar* delimiter) -{ - EntryMultiCompletion * self = NULL; - gboolean _tmp0_ = FALSE; - gchar* _tmp3_; - GtkListStore* _tmp4_; - GtkListStore* _tmp5_; -#line 13 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (completion_list), NULL); -#line 13 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - self = (EntryMultiCompletion*) g_object_new (object_type, NULL); -#line 14 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - if (delimiter == NULL) { -#line 14 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp0_ = TRUE; -#line 124 "EntryMultiCompletion.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 14 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp1_ = strlen (delimiter); -#line 14 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp2_ = _tmp1_; -#line 14 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp0_ = _tmp2_ == 1; -#line 134 "EntryMultiCompletion.c" - } -#line 14 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _vala_assert (_tmp0_, "delimiter == null || delimiter.length == 1"); -#line 15 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp3_ = g_strdup (delimiter); -#line 15 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (self->priv->delimiter); -#line 15 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - self->priv->delimiter = _tmp3_; -#line 17 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp4_ = entry_multi_completion_create_completion_store (completion_list); -#line 17 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp5_ = _tmp4_; -#line 17 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - gtk_entry_completion_set_model (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_entry_completion_get_type (), GtkEntryCompletion), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_tree_model_get_type (), GtkTreeModel)); -#line 17 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_object_unref0 (_tmp5_); -#line 18 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - gtk_entry_completion_set_text_column (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_entry_completion_get_type (), GtkEntryCompletion), 0); -#line 19 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - gtk_entry_completion_set_match_func (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_entry_completion_get_type (), GtkEntryCompletion), _entry_multi_completion_match_func_gtk_entry_completion_match_func, g_object_ref (self), g_object_unref); -#line 13 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - return self; -#line 158 "EntryMultiCompletion.c" -} - - -EntryMultiCompletion* -entry_multi_completion_new (GeeCollection* completion_list, - const gchar* delimiter) -{ -#line 13 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - return entry_multi_completion_construct (TYPE_ENTRY_MULTI_COMPLETION, completion_list, delimiter); -#line 168 "EntryMultiCompletion.c" -} - - -static GtkListStore* -entry_multi_completion_create_completion_store (GeeCollection* completion_list) -{ - GtkListStore* result = NULL; - GtkListStore* completion_store = NULL; - GtkListStore* _tmp0_; - GtkTreeIter store_iter = {0}; - GeeIterator* completion_iter = NULL; - GeeIterator* _tmp1_; -#line 22 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (completion_list), NULL); -#line 23 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp0_ = gtk_list_store_new (1, G_TYPE_STRING, -1); -#line 23 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - completion_store = _tmp0_; -#line 25 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (completion_list, GEE_TYPE_ITERABLE, GeeIterable)); -#line 25 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - completion_iter = _tmp1_; -#line 26 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - while (TRUE) { -#line 193 "EntryMultiCompletion.c" - GeeIterator* _tmp2_; - GtkListStore* _tmp3_; - GtkTreeIter _tmp4_ = {0}; - GtkListStore* _tmp5_; - GtkTreeIter _tmp6_; - GeeIterator* _tmp7_; - gpointer _tmp8_; - gchar* _tmp9_; -#line 26 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp2_ = completion_iter; -#line 26 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 26 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - break; -#line 208 "EntryMultiCompletion.c" - } -#line 27 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp3_ = completion_store; -#line 27 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - gtk_list_store_append (_tmp3_, &_tmp4_); -#line 27 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - store_iter = _tmp4_; -#line 28 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp5_ = completion_store; -#line 28 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp6_ = store_iter; -#line 28 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp7_ = completion_iter; -#line 28 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 28 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp9_ = (gchar*) _tmp8_; -#line 28 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - gtk_list_store_set (_tmp5_, &_tmp6_, 0, _tmp9_, -1, -1); -#line 28 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (_tmp9_); -#line 230 "EntryMultiCompletion.c" - } -#line 31 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - result = completion_store; -#line 31 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_object_unref0 (completion_iter); -#line 31 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - return result; -#line 238 "EntryMultiCompletion.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 35 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - return self ? g_object_ref (self) : NULL; -#line 247 "EntryMultiCompletion.c" -} - - -static gchar* -string_strip (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strstrip (_tmp1_); -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 272 "EntryMultiCompletion.c" -} - - -static gboolean -string_contains (const gchar* self, - const gchar* needle) -{ - gboolean result = FALSE; - gchar* _tmp0_; -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, FALSE); -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, FALSE); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr ((gchar*) self, (gchar*) needle); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_ != NULL; -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 292 "EntryMultiCompletion.c" -} - - -static gint -string_last_index_of_char (const gchar* self, - gunichar c, - gint start_index) -{ - gint result = 0; - gchar* _result_ = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1055 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0); -#line 1056 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_utf8_strrchr (((gchar*) self) + start_index, (gssize) -1, c); -#line 1056 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1058 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1058 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ != NULL) { -#line 315 "EntryMultiCompletion.c" - gchar* _tmp2_; -#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _result_; -#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gint) (_tmp2_ - ((gchar*) self)); -#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 323 "EntryMultiCompletion.c" - } else { -#line 1061 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = -1; -#line 1061 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 329 "EntryMultiCompletion.c" - } -} - - -static gchar -string_get (const gchar* self, - glong index) -{ - gchar result = '\0'; - gchar _tmp0_; -#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, '\0'); -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = ((gchar*) self)[index]; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 348 "EntryMultiCompletion.c" -} - - -static gboolean -entry_multi_completion_match_func (EntryMultiCompletion* self, - GtkEntryCompletion* completion, - const gchar* key, - GtkTreeIter* iter) -{ - gboolean result = FALSE; - GtkTreeModel* model = NULL; - GtkTreeModel* _tmp0_; - GtkTreeModel* _tmp1_; - gchar* possible_match = NULL; - GtkTreeModel* _tmp2_; - GtkTreeIter _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* normed_key = NULL; - gchar* _tmp8_; - const gchar* _tmp9_; -#line 34 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - g_return_val_if_fail (IS_ENTRY_MULTI_COMPLETION (self), FALSE); -#line 34 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - g_return_val_if_fail (GTK_IS_ENTRY_COMPLETION (completion), FALSE); -#line 34 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - g_return_val_if_fail (key != NULL, FALSE); -#line 34 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - g_return_val_if_fail (iter != NULL, FALSE); -#line 35 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp0_ = gtk_entry_completion_get_model (completion); -#line 35 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 35 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - model = _tmp1_; -#line 37 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp2_ = model; -#line 37 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp3_ = *iter; -#line 37 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - gtk_tree_model_get (_tmp2_, &_tmp3_, 0, &possible_match, -1); -#line 43 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp4_ = possible_match; -#line 43 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp5_ = g_utf8_casefold (_tmp4_, (gssize) -1); -#line 43 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp6_ = _tmp5_; -#line 43 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp7_ = g_utf8_normalize (_tmp6_, (gssize) -1, G_NORMALIZE_ALL_COMPOSE); -#line 43 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (possible_match); -#line 43 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - possible_match = _tmp7_; -#line 43 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (_tmp6_); -#line 44 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp8_ = g_utf8_normalize (key, (gssize) -1, G_NORMALIZE_ALL_COMPOSE); -#line 44 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - normed_key = _tmp8_; -#line 46 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp9_ = self->priv->delimiter; -#line 46 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - if (_tmp9_ == NULL) { -#line 414 "EntryMultiCompletion.c" - const gchar* _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gboolean _tmp14_; -#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp10_ = possible_match; -#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp11_ = normed_key; -#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp12_ = string_strip (_tmp11_); -#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp13_ = _tmp12_; -#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp14_ = g_str_has_prefix (_tmp10_, _tmp13_); -#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (_tmp13_); -#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - result = _tmp14_; -#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (normed_key); -#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (possible_match); -#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_object_unref0 (model); -#line 47 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - return result; -#line 442 "EntryMultiCompletion.c" - } else { - const gchar* _tmp15_; - const gchar* _tmp16_; - gchar* last_part = NULL; - const gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - const gchar* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - const gchar* _tmp29_; - gint _tmp30_; - gint _tmp31_; - const gchar* _tmp32_; - const gchar* _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; - gboolean _tmp36_; -#line 49 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp15_ = normed_key; -#line 49 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp16_ = self->priv->delimiter; -#line 49 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - if (string_contains (_tmp15_, _tmp16_)) { -#line 467 "EntryMultiCompletion.c" - gint offset = 0; - const gchar* _tmp17_; - const gchar* _tmp18_; - const gchar* _tmp19_; - gint position = 0; - GtkWidget* _tmp20_; - gint _tmp21_; - gint _tmp22_; -#line 51 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp17_ = normed_key; -#line 51 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp18_ = normed_key; -#line 51 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp19_ = self->priv->delimiter; -#line 51 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - offset = g_utf8_strlen (_tmp17_, (gssize) string_last_index_of_char (_tmp18_, (gunichar) string_get (_tmp19_, (glong) 0), 0)); -#line 52 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp20_ = gtk_entry_completion_get_entry (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_entry_completion_get_type (), GtkEntryCompletion)); -#line 52 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - position = gtk_editable_get_position (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_entry_get_type (), GtkEntry), gtk_editable_get_type (), GtkEditable)); -#line 53 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp21_ = position; -#line 53 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp22_ = offset; -#line 53 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - if (_tmp21_ <= _tmp22_) { -#line 54 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - result = FALSE; -#line 54 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (normed_key); -#line 54 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (possible_match); -#line 54 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_object_unref0 (model); -#line 54 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - return result; -#line 504 "EntryMultiCompletion.c" - } - } -#line 57 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp23_ = normed_key; -#line 57 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp24_ = string_strip (_tmp23_); -#line 57 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp25_ = _tmp24_; -#line 57 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp26_ = self->priv->delimiter; -#line 57 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp27_ = entry_multi_completion_get_last_part (_tmp25_, _tmp26_); -#line 57 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp28_ = _tmp27_; -#line 57 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (_tmp25_); -#line 57 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - last_part = _tmp28_; -#line 59 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp29_ = last_part; -#line 59 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp30_ = strlen (_tmp29_); -#line 59 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp31_ = _tmp30_; -#line 59 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - if (_tmp31_ == 0) { -#line 60 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - result = FALSE; -#line 60 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (last_part); -#line 60 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (normed_key); -#line 60 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (possible_match); -#line 60 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_object_unref0 (model); -#line 60 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - return result; -#line 543 "EntryMultiCompletion.c" - } -#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp32_ = possible_match; -#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp33_ = last_part; -#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp34_ = string_strip (_tmp33_); -#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp35_ = _tmp34_; -#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp36_ = g_str_has_prefix (_tmp32_, _tmp35_); -#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (_tmp35_); -#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - result = _tmp36_; -#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (last_part); -#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (normed_key); -#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (possible_match); -#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_object_unref0 (model); -#line 62 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - return result; -#line 569 "EntryMultiCompletion.c" - } -#line 34 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (normed_key); -#line 34 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (possible_match); -#line 34 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_object_unref0 (model); -#line 577 "EntryMultiCompletion.c" -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 601 "EntryMultiCompletion.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 610 "EntryMultiCompletion.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 631 "EntryMultiCompletion.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 635 "EntryMultiCompletion.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 641 "EntryMultiCompletion.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 651 "EntryMultiCompletion.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 655 "EntryMultiCompletion.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 663 "EntryMultiCompletion.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 670 "EntryMultiCompletion.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 674 "EntryMultiCompletion.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 680 "EntryMultiCompletion.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 692 "EntryMultiCompletion.c" -} - - -static gboolean -entry_multi_completion_real_match_selected (GtkEntryCompletion* base, - GtkTreeModel* model, - GtkTreeIter* iter) -{ - EntryMultiCompletion * self; - gboolean result = FALSE; - gchar* match = NULL; - GtkTreeIter _tmp0_; - GtkEntry* entry = NULL; - GtkWidget* _tmp1_; - GtkEntry* _tmp2_; - gchar* old_text = NULL; - GtkEntry* _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; - const gchar* _tmp6_; - gint _tmp7_; - gint _tmp8_; - const gchar* _tmp20_ = NULL; - const gchar* _tmp21_; - gchar* new_text = NULL; - const gchar* _tmp22_; - const gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - const gchar* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; - GtkEntry* _tmp31_; - GtkEntry* _tmp32_; - gint _tmp33_; - gint _tmp34_; -#line 66 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletion); -#line 66 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - g_return_val_if_fail (GTK_IS_TREE_MODEL (model), FALSE); -#line 66 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - g_return_val_if_fail (iter != NULL, FALSE); -#line 68 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp0_ = *iter; -#line 68 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - gtk_tree_model_get (model, &_tmp0_, 0, &match, -1); -#line 70 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp1_ = gtk_entry_completion_get_entry (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_entry_completion_get_type (), GtkEntryCompletion)); -#line 70 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_entry_get_type (), GtkEntry)); -#line 70 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - entry = _tmp2_; -#line 72 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp3_ = entry; -#line 72 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp4_ = gtk_entry_get_text (_tmp3_); -#line 72 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp5_ = g_utf8_normalize (_tmp4_, (gssize) -1, G_NORMALIZE_ALL_COMPOSE); -#line 72 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - old_text = _tmp5_; -#line 73 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp6_ = old_text; -#line 73 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp7_ = strlen (_tmp6_); -#line 73 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp8_ = _tmp7_; -#line 73 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - if (_tmp8_ > 0) { -#line 763 "EntryMultiCompletion.c" - const gchar* _tmp9_; - const gchar* _tmp10_; -#line 74 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp9_ = old_text; -#line 74 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp10_ = self->priv->delimiter; -#line 74 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - if (string_contains (_tmp9_, _tmp10_)) { -#line 772 "EntryMultiCompletion.c" - const gchar* _tmp11_ = NULL; - const gchar* _tmp12_; - const gchar* _tmp13_; - const gchar* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; -#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp12_ = self->priv->delimiter; -#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - if (g_strcmp0 (_tmp12_, " ") != 0) { -#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp11_ = " "; -#line 787 "EntryMultiCompletion.c" - } else { -#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp11_ = ""; -#line 791 "EntryMultiCompletion.c" - } -#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp13_ = old_text; -#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp14_ = old_text; -#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp15_ = self->priv->delimiter; -#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp16_ = string_substring (_tmp13_, (glong) 0, (glong) (string_last_index_of_char (_tmp14_, (gunichar) string_get (_tmp15_, (glong) 0), 0) + 1)); -#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp17_ = _tmp16_; -#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp18_ = g_strconcat (_tmp17_, _tmp11_, NULL); -#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (old_text); -#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - old_text = _tmp18_; -#line 75 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (_tmp17_); -#line 811 "EntryMultiCompletion.c" - } else { - gchar* _tmp19_; -#line 77 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp19_ = g_strdup (""); -#line 77 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (old_text); -#line 77 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - old_text = _tmp19_; -#line 820 "EntryMultiCompletion.c" - } - } -#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp21_ = self->priv->delimiter; -#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - if (g_strcmp0 (_tmp21_, " ") != 0) { -#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp20_ = " "; -#line 829 "EntryMultiCompletion.c" - } else { -#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp20_ = ""; -#line 833 "EntryMultiCompletion.c" - } -#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp22_ = old_text; -#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp23_ = match; -#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp24_ = g_strconcat (_tmp22_, _tmp23_, NULL); -#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp25_ = _tmp24_; -#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp26_ = self->priv->delimiter; -#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp27_ = g_strconcat (_tmp25_, _tmp26_, NULL); -#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp28_ = _tmp27_; -#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp29_ = g_strconcat (_tmp28_, _tmp20_, NULL); -#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp30_ = _tmp29_; -#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (_tmp28_); -#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (_tmp25_); -#line 80 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - new_text = _tmp30_; -#line 81 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp31_ = entry; -#line 81 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - gtk_entry_set_text (_tmp31_, new_text); -#line 82 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp32_ = entry; -#line 82 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp33_ = strlen (new_text); -#line 82 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp34_ = _tmp33_; -#line 82 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - gtk_editable_set_position (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_editable_get_type (), GtkEditable), (gint) _tmp34_); -#line 84 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - result = TRUE; -#line 84 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (new_text); -#line 84 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (old_text); -#line 84 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_object_unref0 (entry); -#line 84 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (match); -#line 84 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - return result; -#line 883 "EntryMultiCompletion.c" -} - - -static gchar* -entry_multi_completion_get_last_part (const gchar* s, - const gchar* delimiter) -{ - gchar* result = NULL; - gchar** split = NULL; - gchar** _tmp0_; - gchar** _tmp1_; - gint split_length1; - gint _split_size_; - gboolean _tmp2_ = FALSE; - gchar** _tmp3_; - gint _tmp3__length1; -#line 88 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - g_return_val_if_fail (s != NULL, NULL); -#line 88 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - g_return_val_if_fail (delimiter != NULL, NULL); -#line 89 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp1_ = _tmp0_ = g_strsplit (s, delimiter, 0); -#line 89 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - split = _tmp1_; -#line 89 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - split_length1 = _vala_array_length (_tmp0_); -#line 89 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _split_size_ = split_length1; -#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp3_ = split; -#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp3__length1 = split_length1; -#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - if (_tmp3_ != NULL) { -#line 918 "EntryMultiCompletion.c" - gchar** _tmp4_; - gint _tmp4__length1; - const gchar* _tmp5_; -#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp4_ = split; -#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp4__length1 = split_length1; -#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp5_ = _tmp4_[0]; -#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp2_ = _tmp5_ != NULL; -#line 930 "EntryMultiCompletion.c" - } else { -#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp2_ = FALSE; -#line 934 "EntryMultiCompletion.c" - } -#line 91 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - if (_tmp2_) { -#line 938 "EntryMultiCompletion.c" - gchar** _tmp6_; - gint _tmp6__length1; - gchar** _tmp7_; - gint _tmp7__length1; - const gchar* _tmp8_; - gchar* _tmp9_; -#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp6_ = split; -#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp6__length1 = split_length1; -#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp7_ = split; -#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp7__length1 = split_length1; -#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp8_ = _tmp6_[_tmp7__length1 - 1]; -#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - result = _tmp9_; -#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - split = (_vala_array_free (split, split_length1, (GDestroyNotify) g_free), NULL); -#line 92 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - return result; -#line 963 "EntryMultiCompletion.c" - } else { - gchar* _tmp10_; -#line 94 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _tmp10_ = g_strdup (""); -#line 94 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - result = _tmp10_; -#line 94 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - split = (_vala_array_free (split, split_length1, (GDestroyNotify) g_free), NULL); -#line 94 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - return result; -#line 974 "EntryMultiCompletion.c" - } -#line 88 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - split = (_vala_array_free (split, split_length1, (GDestroyNotify) g_free), NULL); -#line 978 "EntryMultiCompletion.c" -} - - -static void -entry_multi_completion_class_init (EntryMultiCompletionClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - entry_multi_completion_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - g_type_class_add_private (klass, sizeof (EntryMultiCompletionPrivate)); -#line 10 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - ((GtkEntryCompletionClass *) klass)->match_selected = (gboolean (*) (GtkEntryCompletion *, GtkTreeModel*, GtkTreeIter*)) entry_multi_completion_real_match_selected; -#line 10 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - G_OBJECT_CLASS (klass)->finalize = entry_multi_completion_finalize; -#line 993 "EntryMultiCompletion.c" -} - - -static void -entry_multi_completion_instance_init (EntryMultiCompletion * self) -{ -#line 10 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - self->priv = ENTRY_MULTI_COMPLETION_GET_PRIVATE (self); -#line 1002 "EntryMultiCompletion.c" -} - - -static void -entry_multi_completion_finalize (GObject * obj) -{ - EntryMultiCompletion * self; -#line 10 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletion); -#line 11 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - _g_free0 (self->priv->delimiter); -#line 10 "/home/jens/Source/shotwell/src/dialogs/EntryMultiCompletion.vala" - G_OBJECT_CLASS (entry_multi_completion_parent_class)->finalize (obj); -#line 1016 "EntryMultiCompletion.c" -} - - -GType -entry_multi_completion_get_type (void) -{ - static volatile gsize entry_multi_completion_type_id__volatile = 0; - if (g_once_init_enter (&entry_multi_completion_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EntryMultiCompletionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) entry_multi_completion_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EntryMultiCompletion), 0, (GInstanceInitFunc) entry_multi_completion_instance_init, NULL }; - GType entry_multi_completion_type_id; - entry_multi_completion_type_id = g_type_register_static (gtk_entry_completion_get_type (), "EntryMultiCompletion", &g_define_type_info, 0); - g_once_init_leave (&entry_multi_completion_type_id__volatile, entry_multi_completion_type_id); - } - return entry_multi_completion_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/src/dialogs/ExportDialog.c b/src/dialogs/ExportDialog.c deleted file mode 100644 index f20dd78..0000000 --- a/src/dialogs/ExportDialog.c +++ /dev/null @@ -1,2084 +0,0 @@ -/* ExportDialog.c generated by valac 0.40.4, the Vala compiler - * generated from ExportDialog.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * Copyright 2017 Jens Georg - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_EXPORT_DIALOG (export_dialog_get_type ()) -#define EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORT_DIALOG, ExportDialog)) -#define EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORT_DIALOG, ExportDialogClass)) -#define IS_EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORT_DIALOG)) -#define IS_EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORT_DIALOG)) -#define EXPORT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORT_DIALOG, ExportDialogClass)) - -typedef struct _ExportDialog ExportDialog; -typedef struct _ExportDialogClass ExportDialogClass; -typedef struct _ExportDialogPrivate ExportDialogPrivate; -enum { - EXPORT_DIALOG_0_PROPERTY, - EXPORT_DIALOG_NUM_PROPERTIES -}; -static GParamSpec* export_dialog_properties[EXPORT_DIALOG_NUM_PROPERTIES]; - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) - -#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ()) - -#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ()) - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) -typedef struct _ExportFormatParameters ExportFormatParameters; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ()) -#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties)) -#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) - -typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties; -typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass; -#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _ExportDialog { - GtkDialog parent_instance; - ExportDialogPrivate * priv; -}; - -struct _ExportDialogClass { - GtkDialogClass parent_class; -}; - -struct _ExportDialogPrivate { - GtkGrid* table; - GtkComboBoxText* quality_combo; - GtkComboBoxText* constraint_combo; - GtkComboBoxText* format_combo; - GtkSwitch* export_metadata; - GeeArrayList* format_options; - GtkEntry* pixels_entry; - GtkWidget* ok_button; - gboolean in_insert; -}; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -typedef enum { - EXPORT_FORMAT_MODE_UNMODIFIED, - EXPORT_FORMAT_MODE_CURRENT, - EXPORT_FORMAT_MODE_SPECIFIED, - EXPORT_FORMAT_MODE_LAST -} ExportFormatMode; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -struct _ExportFormatParameters { - ExportFormatMode mode; - PhotoFileFormat specified_format; - JpegQuality quality; - gboolean export_metadata; -}; - - -static gpointer export_dialog_parent_class = NULL; -static ScaleConstraint export_dialog_current_constraint; -static ScaleConstraint export_dialog_current_constraint = SCALE_CONSTRAINT_ORIGINAL; -static ExportFormatParameters export_dialog_current_parameters; -static ExportFormatParameters export_dialog_current_parameters = {0}; -static gint export_dialog_current_scale; -static gint export_dialog_current_scale = 0; - -GType export_dialog_get_type (void) G_GNUC_CONST; -#define EXPORT_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EXPORT_DIALOG, ExportDialogPrivate)) -GType scale_constraint_get_type (void) G_GNUC_CONST; -GType export_format_parameters_get_type (void) G_GNUC_CONST; -GType export_format_mode_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType jpeg_quality_get_type (void) G_GNUC_CONST; -ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self); -void export_format_parameters_free (ExportFormatParameters* self); -void export_format_parameters_current (ExportFormatParameters* result); -#define EXPORT_DIALOG_DEFAULT_SCALE 1200 -#define EXPORT_DIALOG_NUM_SPECIAL_FORMATS 2 -#define EXPORT_DIALOG_UNMODIFIED_FORMAT_LABEL _ ("Unmodified") -#define EXPORT_DIALOG_CURRENT_FORMAT_LABEL _ ("Current") -ExportDialog* export_dialog_new (const gchar* title); -ExportDialog* export_dialog_construct (GType object_type, - const gchar* title); -gint resources_use_header_bar (void); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -ExportFormatMode configuration_facade_get_export_export_format_mode (ConfigurationFacade* self); -PhotoFileFormat configuration_facade_get_export_photo_file_format (ConfigurationFacade* self); -JpegQuality configuration_facade_get_export_quality (ConfigurationFacade* self); -gboolean configuration_facade_get_export_export_metadata (ConfigurationFacade* self); -ScaleConstraint configuration_facade_get_export_constraint (ConfigurationFacade* self); -gint configuration_facade_get_export_scale (ConfigurationFacade* self); -gchar* jpeg_quality_to_string (JpegQuality self); -gchar* scale_constraint_to_string (ScaleConstraint self); -static void export_dialog_format_add_option (ExportDialog* self, - const gchar* format_name); -PhotoFileFormat* photo_file_format_get_writeable (int* result_length1); -gpointer photo_file_format_properties_ref (gpointer instance); -void photo_file_format_properties_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_properties (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_format_properties (GValue* value, - gpointer v_object); -void value_take_photo_file_format_properties (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_format_properties (const GValue* value); -GType photo_file_format_properties_get_type (void) G_GNUC_CONST; -PhotoFileFormatProperties* photo_file_format_get_properties (PhotoFileFormat self); -gchar* photo_file_format_properties_get_user_visible_name (PhotoFileFormatProperties* self); -static void export_dialog_on_constraint_changed (ExportDialog* self); -static void _export_dialog_on_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void export_dialog_on_format_changed (ExportDialog* self); -static void _export_dialog_on_format_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void export_dialog_on_pixels_changed (ExportDialog* self); -static void _export_dialog_on_pixels_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void export_dialog_on_pixels_insert_text (ExportDialog* self, - const gchar* text, - gint length, - gint* position); -static void _export_dialog_on_pixels_insert_text_gtk_editable_insert_text (GtkEditable* _sender, - const gchar* new_text, - gint new_text_length, - gint* position, - gpointer self); -static void export_dialog_on_activate (ExportDialog* self); -static void _export_dialog_on_activate_gtk_entry_activate (GtkEntry* _sender, - gpointer self); -static void export_dialog_add_label (ExportDialog* self, - const gchar* text, - gint x, - gint y, - GtkWidget* widget); -static void export_dialog_add_control (ExportDialog* self, - GtkWidget* widget, - gint x, - gint y); -#define RESOURCES_CANCEL_LABEL _ ("_Cancel") -#define RESOURCES_OK_LABEL _ ("_OK") -static void export_dialog_format_set_active_text (ExportDialog* self, - const gchar* text); -static PhotoFileFormat export_dialog_get_specified_format (ExportDialog* self); -static gchar* export_dialog_get_label_for_parameters (ExportDialog* self, - ExportFormatParameters* params); -gboolean export_dialog_execute (ExportDialog* self, - gint* scale, - ScaleConstraint* constraint, - ExportFormatParameters* parameters); -gboolean photo_file_format_can_write (PhotoFileFormat self); -PhotoFileFormat photo_file_format_get_system_default_format (void); -void configuration_facade_set_export_export_format_mode (ConfigurationFacade* self, - ExportFormatMode export_format_mode); -void configuration_facade_set_export_photo_file_format (ConfigurationFacade* self, - PhotoFileFormat photo_file_format); -void configuration_facade_set_export_quality (ConfigurationFacade* self, - JpegQuality quality); -void configuration_facade_set_export_export_metadata (ConfigurationFacade* self, - gboolean export_metadata); -void configuration_facade_set_export_constraint (ConfigurationFacade* self, - ScaleConstraint constraint); -void configuration_facade_set_export_scale (ConfigurationFacade* self, - gint scale); -static void export_dialog_finalize (GObject * obj); - -const ScaleConstraint EXPORT_DIALOG_CONSTRAINT_ARRAY[4] = {SCALE_CONSTRAINT_ORIGINAL, SCALE_CONSTRAINT_DIMENSIONS, SCALE_CONSTRAINT_WIDTH, SCALE_CONSTRAINT_HEIGHT}; -const JpegQuality EXPORT_DIALOG_QUALITY_ARRAY[4] = {JPEG_QUALITY_LOW, JPEG_QUALITY_MEDIUM, JPEG_QUALITY_HIGH, JPEG_QUALITY_MAXIMUM}; - -static void -_export_dialog_on_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 83 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_on_constraint_changed ((ExportDialog*) self); -#line 267 "ExportDialog.c" -} - - -static void -_export_dialog_on_format_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 84 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_on_format_changed ((ExportDialog*) self); -#line 277 "ExportDialog.c" -} - - -static void -_export_dialog_on_pixels_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 85 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_on_pixels_changed ((ExportDialog*) self); -#line 287 "ExportDialog.c" -} - - -static void -_export_dialog_on_pixels_insert_text_gtk_editable_insert_text (GtkEditable* _sender, - const gchar* new_text, - gint new_text_length, - gint* position, - gpointer self) -{ -#line 86 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_on_pixels_insert_text ((ExportDialog*) self, new_text, new_text_length, position); -#line 300 "ExportDialog.c" -} - - -static void -_export_dialog_on_activate_gtk_entry_activate (GtkEntry* _sender, - gpointer self) -{ -#line 87 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_on_activate ((ExportDialog*) self); -#line 310 "ExportDialog.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 116 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - return self ? g_object_ref (self) : NULL; -#line 319 "ExportDialog.c" -} - - -ExportDialog* -export_dialog_construct (GType object_type, - const gchar* title) -{ - ExportDialog * self = NULL; - ConfigFacade* config = NULL; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - ConfigFacade* _tmp2_; - ConfigFacade* _tmp3_; - ConfigFacade* _tmp4_; - ConfigFacade* _tmp5_; - ConfigFacade* _tmp6_; - GtkComboBoxText* _tmp7_; - gint ctr = 0; - GtkComboBoxText* _tmp18_; - GtkComboBoxText* _tmp28_; - gint _tmp29_; - PhotoFileFormat* _tmp30_; - GtkEntry* _tmp36_; - GtkEntry* _tmp37_; - GtkEntry* _tmp38_; - gint _tmp39_; - gchar* _tmp40_; - gchar* _tmp41_; - GtkComboBoxText* _tmp42_; - GtkComboBoxText* _tmp43_; - GtkEntry* _tmp44_; - GtkEntry* _tmp45_; - GtkEntry* _tmp46_; - GtkComboBoxText* _tmp47_; - GtkComboBoxText* _tmp48_; - GtkComboBoxText* _tmp49_; - GtkComboBoxText* _tmp50_; - GtkComboBoxText* _tmp51_; - GtkComboBoxText* _tmp52_; - GtkEntry* _tmp53_; - GtkEntry* _tmp54_; - GtkSwitch* _tmp55_; - GtkSwitch* _tmp56_; - GtkSwitch* _tmp57_; - GtkSwitch* _tmp58_; - GtkSwitch* _tmp59_; - GtkGrid* _tmp60_; - GtkGrid* _tmp61_; - GtkGrid* _tmp62_; - GtkBox* _tmp63_; - GtkGrid* _tmp64_; - GtkWidget* _tmp65_; - GtkWidget* _tmp66_; - GtkWidget* _tmp67_; - GtkWidget* _tmp68_; - GtkWidget* _tmp69_; - ScaleConstraint _tmp70_; - GtkWidget* _tmp73_; -#line 38 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_val_if_fail (title != NULL, NULL); -#line 39 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - self = (ExportDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL); -#line 41 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), title); -#line 42 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE); -#line 45 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp0_ = config_facade_get_instance (); -#line 45 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - config = _tmp0_; -#line 46 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp1_ = config; -#line 46 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_current_parameters.mode = configuration_facade_get_export_export_format_mode (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 47 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp2_ = config; -#line 47 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_current_parameters.specified_format = configuration_facade_get_export_photo_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 48 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp3_ = config; -#line 48 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_current_parameters.quality = configuration_facade_get_export_quality (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 49 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp4_ = config; -#line 49 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_current_parameters.export_metadata = configuration_facade_get_export_export_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 50 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp5_ = config; -#line 50 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_current_constraint = configuration_facade_get_export_constraint (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 51 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp6_ = config; -#line 51 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_current_scale = configuration_facade_get_export_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 53 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp7_ = (GtkComboBoxText*) gtk_combo_box_text_new (); -#line 53 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_object_ref_sink (_tmp7_); -#line 53 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (self->priv->quality_combo); -#line 53 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - self->priv->quality_combo = _tmp7_; -#line 54 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - ctr = 0; -#line 424 "ExportDialog.c" - { - JpegQuality* quality_collection = NULL; - gint quality_collection_length1 = 0; - gint _quality_collection_size_ = 0; - gint quality_it = 0; -#line 55 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - quality_collection = EXPORT_DIALOG_QUALITY_ARRAY; -#line 55 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - quality_collection_length1 = G_N_ELEMENTS (EXPORT_DIALOG_QUALITY_ARRAY); -#line 55 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - for (quality_it = 0; quality_it < G_N_ELEMENTS (EXPORT_DIALOG_QUALITY_ARRAY); quality_it = quality_it + 1) { -#line 436 "ExportDialog.c" - JpegQuality quality = 0; -#line 55 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - quality = quality_collection[quality_it]; -#line 440 "ExportDialog.c" - { - GtkComboBoxText* _tmp8_; - JpegQuality _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - JpegQuality _tmp12_; - ExportFormatParameters _tmp13_; - JpegQuality _tmp14_; - gint _tmp17_; -#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp8_ = self->priv->quality_combo; -#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp9_ = quality; -#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp10_ = jpeg_quality_to_string (_tmp9_); -#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp11_ = _tmp10_; -#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_combo_box_text_append_text (_tmp8_, _tmp11_); -#line 56 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_free0 (_tmp11_); -#line 57 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp12_ = quality; -#line 57 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp13_ = export_dialog_current_parameters; -#line 57 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp14_ = _tmp13_.quality; -#line 57 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp12_ == _tmp14_) { -#line 470 "ExportDialog.c" - GtkComboBoxText* _tmp15_; - gint _tmp16_; -#line 58 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp15_ = self->priv->quality_combo; -#line 58 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp16_ = ctr; -#line 58 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_combo_box_get_type (), GtkComboBox), _tmp16_); -#line 479 "ExportDialog.c" - } -#line 59 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp17_ = ctr; -#line 59 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - ctr = _tmp17_ + 1; -#line 485 "ExportDialog.c" - } - } - } -#line 62 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp18_ = (GtkComboBoxText*) gtk_combo_box_text_new (); -#line 62 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_object_ref_sink (_tmp18_); -#line 62 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (self->priv->constraint_combo); -#line 62 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - self->priv->constraint_combo = _tmp18_; -#line 63 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - ctr = 0; -#line 499 "ExportDialog.c" - { - ScaleConstraint* constraint_collection = NULL; - gint constraint_collection_length1 = 0; - gint _constraint_collection_size_ = 0; - gint constraint_it = 0; -#line 64 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - constraint_collection = EXPORT_DIALOG_CONSTRAINT_ARRAY; -#line 64 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - constraint_collection_length1 = G_N_ELEMENTS (EXPORT_DIALOG_CONSTRAINT_ARRAY); -#line 64 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - for (constraint_it = 0; constraint_it < G_N_ELEMENTS (EXPORT_DIALOG_CONSTRAINT_ARRAY); constraint_it = constraint_it + 1) { -#line 511 "ExportDialog.c" - ScaleConstraint constraint = 0; -#line 64 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - constraint = constraint_collection[constraint_it]; -#line 515 "ExportDialog.c" - { - GtkComboBoxText* _tmp19_; - ScaleConstraint _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - ScaleConstraint _tmp23_; - ScaleConstraint _tmp24_; - gint _tmp27_; -#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp19_ = self->priv->constraint_combo; -#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp20_ = constraint; -#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp21_ = scale_constraint_to_string (_tmp20_); -#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp22_ = _tmp21_; -#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_combo_box_text_append_text (_tmp19_, _tmp22_); -#line 65 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_free0 (_tmp22_); -#line 66 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp23_ = constraint; -#line 66 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp24_ = export_dialog_current_constraint; -#line 66 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp23_ == _tmp24_) { -#line 542 "ExportDialog.c" - GtkComboBoxText* _tmp25_; - gint _tmp26_; -#line 67 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp25_ = self->priv->constraint_combo; -#line 67 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp26_ = ctr; -#line 67 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_combo_box_get_type (), GtkComboBox), _tmp26_); -#line 551 "ExportDialog.c" - } -#line 68 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp27_ = ctr; -#line 68 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - ctr = _tmp27_ + 1; -#line 557 "ExportDialog.c" - } - } - } -#line 71 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp28_ = (GtkComboBoxText*) gtk_combo_box_text_new (); -#line 71 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_object_ref_sink (_tmp28_); -#line 71 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (self->priv->format_combo); -#line 71 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - self->priv->format_combo = _tmp28_; -#line 72 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_format_add_option (self, EXPORT_DIALOG_UNMODIFIED_FORMAT_LABEL); -#line 73 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_format_add_option (self, EXPORT_DIALOG_CURRENT_FORMAT_LABEL); -#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp30_ = photo_file_format_get_writeable (&_tmp29_); -#line 575 "ExportDialog.c" - { - PhotoFileFormat* format_collection = NULL; - gint format_collection_length1 = 0; - gint _format_collection_size_ = 0; - gint format_it = 0; -#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - format_collection = _tmp30_; -#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - format_collection_length1 = _tmp29_; -#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - for (format_it = 0; format_it < _tmp29_; format_it = format_it + 1) { -#line 587 "ExportDialog.c" - PhotoFileFormat format = 0; -#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - format = format_collection[format_it]; -#line 591 "ExportDialog.c" - { - PhotoFileFormat _tmp31_; - PhotoFileFormatProperties* _tmp32_; - PhotoFileFormatProperties* _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; -#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp31_ = format; -#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp32_ = photo_file_format_get_properties (_tmp31_); -#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp33_ = _tmp32_; -#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp34_ = photo_file_format_properties_get_user_visible_name (_tmp33_); -#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp35_ = _tmp34_; -#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_format_add_option (self, _tmp35_); -#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_free0 (_tmp35_); -#line 75 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _photo_file_format_properties_unref0 (_tmp33_); -#line 614 "ExportDialog.c" - } - } -#line 74 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - format_collection = (g_free (format_collection), NULL); -#line 619 "ExportDialog.c" - } -#line 78 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp36_ = (GtkEntry*) gtk_entry_new (); -#line 78 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_object_ref_sink (_tmp36_); -#line 78 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (self->priv->pixels_entry); -#line 78 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - self->priv->pixels_entry = _tmp36_; -#line 79 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp37_ = self->priv->pixels_entry; -#line 79 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_entry_set_max_length (_tmp37_, 6); -#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp38_ = self->priv->pixels_entry; -#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp39_ = export_dialog_current_scale; -#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp40_ = g_strdup_printf ("%d", _tmp39_); -#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp41_ = _tmp40_; -#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_entry_set_text (_tmp38_, _tmp41_); -#line 80 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_free0 (_tmp41_); -#line 83 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp42_ = self->priv->constraint_combo; -#line 83 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _export_dialog_on_constraint_changed_gtk_combo_box_changed, self, 0); -#line 84 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp43_ = self->priv->format_combo; -#line 84 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _export_dialog_on_format_changed_gtk_combo_box_changed, self, 0); -#line 85 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp44_ = self->priv->pixels_entry; -#line 85 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _export_dialog_on_pixels_changed_gtk_editable_changed, self, 0); -#line 86 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp45_ = self->priv->pixels_entry; -#line 86 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_editable_get_type (), GtkEditable), "insert-text", (GCallback) _export_dialog_on_pixels_insert_text_gtk_editable_insert_text, self, 0); -#line 87 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp46_ = self->priv->pixels_entry; -#line 87 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_signal_connect_object (_tmp46_, "activate", (GCallback) _export_dialog_on_activate_gtk_entry_activate, self, 0); -#line 90 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp47_ = self->priv->format_combo; -#line 90 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_add_label (self, _ ("_Format:"), 0, 0, G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_widget_get_type (), GtkWidget)); -#line 91 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp48_ = self->priv->format_combo; -#line 91 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_widget_get_type (), GtkWidget), 1, 0); -#line 93 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp49_ = self->priv->quality_combo; -#line 93 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_add_label (self, _ ("_Quality:"), 0, 1, G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_widget_get_type (), GtkWidget)); -#line 94 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp50_ = self->priv->quality_combo; -#line 94 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_widget_get_type (), GtkWidget), 1, 1); -#line 96 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp51_ = self->priv->constraint_combo; -#line 96 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_add_label (self, _ ("_Scaling constraint:"), 0, 2, G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, gtk_widget_get_type (), GtkWidget)); -#line 97 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp52_ = self->priv->constraint_combo; -#line 97 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_widget_get_type (), GtkWidget), 1, 2); -#line 99 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp53_ = self->priv->pixels_entry; -#line 99 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_add_label (self, _ ("_Pixels:"), 0, 3, G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_widget_get_type (), GtkWidget)); -#line 100 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp54_ = self->priv->pixels_entry; -#line 100 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_widget_get_type (), GtkWidget), 1, 3); -#line 102 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp55_ = (GtkSwitch*) gtk_switch_new (); -#line 102 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_object_ref_sink (_tmp55_); -#line 102 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (self->priv->export_metadata); -#line 102 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - self->priv->export_metadata = _tmp55_; -#line 103 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp56_ = self->priv->export_metadata; -#line 103 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_add_label (self, _ ("Export _metadata:"), 0, 4, G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, gtk_widget_get_type (), GtkWidget)); -#line 104 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp57_ = self->priv->export_metadata; -#line 104 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_add_control (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_widget_get_type (), GtkWidget), 1, 4); -#line 105 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp58_ = self->priv->export_metadata; -#line 105 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_switch_set_active (_tmp58_, TRUE); -#line 106 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp59_ = self->priv->export_metadata; -#line 106 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START); -#line 108 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp60_ = self->priv->table; -#line 108 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_grid_set_row_spacing (_tmp60_, (guint) 6); -#line 109 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp61_ = self->priv->table; -#line 109 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_grid_set_column_spacing (_tmp61_, (guint) 12); -#line 110 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp62_ = self->priv->table; -#line 110 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_container_get_type (), GtkContainer), (guint) 18); -#line 112 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp63_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 112 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp64_ = self->priv->table; -#line 112 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, gtk_box_get_type (), GtkBox), gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_widget_get_type (), GtkWidget)); -#line 115 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), RESOURCES_CANCEL_LABEL, (gint) GTK_RESPONSE_CANCEL); -#line 116 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp65_ = gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), RESOURCES_OK_LABEL, (gint) GTK_RESPONSE_OK); -#line 116 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp66_ = _g_object_ref0 (_tmp65_); -#line 116 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (self->priv->ok_button); -#line 116 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - self->priv->ok_button = _tmp66_; -#line 117 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_dialog_set_default_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK); -#line 119 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp67_ = self->priv->ok_button; -#line 119 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_can_default (_tmp67_, TRUE); -#line 120 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp68_ = self->priv->ok_button; -#line 120 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_object_set (_tmp68_, "has-default", TRUE, NULL); -#line 121 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp69_ = self->priv->ok_button; -#line 121 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_window_set_default (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp69_); -#line 123 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp70_ = export_dialog_current_constraint; -#line 123 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp70_ == SCALE_CONSTRAINT_ORIGINAL) { -#line 767 "ExportDialog.c" - GtkEntry* _tmp71_; - GtkComboBoxText* _tmp72_; -#line 124 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp71_ = self->priv->pixels_entry; -#line 124 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 125 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp72_ = self->priv->quality_combo; -#line 125 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 778 "ExportDialog.c" - } -#line 128 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp73_ = self->priv->ok_button; -#line 128 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_grab_focus (_tmp73_); -#line 38 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (config); -#line 38 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - return self; -#line 788 "ExportDialog.c" -} - - -ExportDialog* -export_dialog_new (const gchar* title) -{ -#line 38 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - return export_dialog_construct (TYPE_EXPORT_DIALOG, title); -#line 797 "ExportDialog.c" -} - - -static void -export_dialog_format_add_option (ExportDialog* self, - const gchar* format_name) -{ - GeeArrayList* _tmp0_; - GtkComboBoxText* _tmp1_; -#line 131 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_if_fail (IS_EXPORT_DIALOG (self)); -#line 131 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_if_fail (format_name != NULL); -#line 132 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp0_ = self->priv->format_options; -#line 132 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), format_name); -#line 133 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp1_ = self->priv->format_combo; -#line 133 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_combo_box_text_append_text (_tmp1_, format_name); -#line 819 "ExportDialog.c" -} - - -static void -export_dialog_format_set_active_text (ExportDialog* self, - const gchar* text) -{ - gint selection_ticker = 0; -#line 136 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_if_fail (IS_EXPORT_DIALOG (self)); -#line 136 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_if_fail (text != NULL); -#line 137 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - selection_ticker = 0; -#line 834 "ExportDialog.c" - { - GeeArrayList* _current_text_list = NULL; - GeeArrayList* _tmp0_; - GeeArrayList* _tmp1_; - gint _current_text_size = 0; - GeeArrayList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _current_text_index = 0; -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp0_ = self->priv->format_options; -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _current_text_list = _tmp1_; -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp2_ = _current_text_list; -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp3_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp4_ = _tmp3_; -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _current_text_size = _tmp4_; -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _current_text_index = -1; -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - while (TRUE) { -#line 862 "ExportDialog.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - gchar* current_text = NULL; - GeeArrayList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - const gchar* _tmp11_; - gint _tmp14_; -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp5_ = _current_text_index; -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _current_text_index = _tmp5_ + 1; -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp6_ = _current_text_index; -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp7_ = _current_text_size; -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - break; -#line 884 "ExportDialog.c" - } -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp8_ = _current_text_list; -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp9_ = _current_text_index; -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp10_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp9_); -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - current_text = (gchar*) _tmp10_; -#line 140 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp11_ = current_text; -#line 140 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (g_strcmp0 (_tmp11_, text) == 0) { -#line 898 "ExportDialog.c" - GtkComboBoxText* _tmp12_; - gint _tmp13_; -#line 141 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp12_ = self->priv->format_combo; -#line 141 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp13_ = selection_ticker; -#line 141 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_combo_box_get_type (), GtkComboBox), _tmp13_); -#line 142 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_free0 (current_text); -#line 142 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (_current_text_list); -#line 142 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - return; -#line 913 "ExportDialog.c" - } -#line 144 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp14_ = selection_ticker; -#line 144 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - selection_ticker = _tmp14_ + 1; -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_free0 (current_text); -#line 921 "ExportDialog.c" - } -#line 139 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (_current_text_list); -#line 925 "ExportDialog.c" - } -#line 147 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_error ("ExportDialog.vala:147: format_set_active_text: text '%s' isn't in comb" \ -"o box", text); -#line 929 "ExportDialog.c" -} - - -static PhotoFileFormat -export_dialog_get_specified_format (ExportDialog* self) -{ - PhotoFileFormat result = 0; - gint index = 0; - GtkComboBoxText* _tmp0_; - gint _tmp1_; - gint _tmp2_; - PhotoFileFormat* writeable_formats = NULL; - gint _tmp3_; - PhotoFileFormat* _tmp4_; - gint writeable_formats_length1; - gint _writeable_formats_size_; - gint _tmp5_; - PhotoFileFormat _tmp6_; -#line 150 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_val_if_fail (IS_EXPORT_DIALOG (self), 0); -#line 151 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp0_ = self->priv->format_combo; -#line 151 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - index = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox)); -#line 152 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp1_ = index; -#line 152 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp1_ < EXPORT_DIALOG_NUM_SPECIAL_FORMATS) { -#line 153 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - index = EXPORT_DIALOG_NUM_SPECIAL_FORMATS; -#line 960 "ExportDialog.c" - } -#line 155 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp2_ = index; -#line 155 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - index = _tmp2_ - EXPORT_DIALOG_NUM_SPECIAL_FORMATS; -#line 156 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp4_ = photo_file_format_get_writeable (&_tmp3_); -#line 156 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - writeable_formats = _tmp4_; -#line 156 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - writeable_formats_length1 = _tmp3_; -#line 156 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _writeable_formats_size_ = writeable_formats_length1; -#line 157 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp5_ = index; -#line 157 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp6_ = writeable_formats[_tmp5_]; -#line 157 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - result = _tmp6_; -#line 157 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - writeable_formats = (g_free (writeable_formats), NULL); -#line 157 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - return result; -#line 984 "ExportDialog.c" -} - - -static gchar* -export_dialog_get_label_for_parameters (ExportDialog* self, - ExportFormatParameters* params) -{ - gchar* result = NULL; - ExportFormatParameters _tmp0_; - ExportFormatMode _tmp1_; -#line 160 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_val_if_fail (IS_EXPORT_DIALOG (self), NULL); -#line 160 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_val_if_fail (params != NULL, NULL); -#line 161 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp0_ = *params; -#line 161 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp1_ = _tmp0_.mode; -#line 161 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - switch (_tmp1_) { -#line 161 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - case EXPORT_FORMAT_MODE_UNMODIFIED: -#line 1007 "ExportDialog.c" - { - gchar* _tmp2_; -#line 163 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp2_ = g_strdup (EXPORT_DIALOG_UNMODIFIED_FORMAT_LABEL); -#line 163 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - result = _tmp2_; -#line 163 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - return result; -#line 1016 "ExportDialog.c" - } -#line 161 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - case EXPORT_FORMAT_MODE_CURRENT: -#line 1020 "ExportDialog.c" - { - gchar* _tmp3_; -#line 166 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp3_ = g_strdup (EXPORT_DIALOG_CURRENT_FORMAT_LABEL); -#line 166 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - result = _tmp3_; -#line 166 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - return result; -#line 1029 "ExportDialog.c" - } -#line 161 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - case EXPORT_FORMAT_MODE_SPECIFIED: -#line 1033 "ExportDialog.c" - { - ExportFormatParameters _tmp4_; - PhotoFileFormat _tmp5_; - PhotoFileFormatProperties* _tmp6_; - PhotoFileFormatProperties* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp4_ = *params; -#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp5_ = _tmp4_.specified_format; -#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp6_ = photo_file_format_get_properties (_tmp5_); -#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp7_ = _tmp6_; -#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp8_ = photo_file_format_properties_get_user_visible_name (_tmp7_); -#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp9_ = _tmp8_; -#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _photo_file_format_properties_unref0 (_tmp7_); -#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - result = _tmp9_; -#line 169 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - return result; -#line 1059 "ExportDialog.c" - } - default: - { -#line 172 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_error ("ExportDialog.vala:172: get_label_for_parameters: unrecognized export f" \ -"ormat mode"); -#line 1065 "ExportDialog.c" - } - } -} - - -gboolean -export_dialog_execute (ExportDialog* self, - gint* scale, - ScaleConstraint* constraint, - ExportFormatParameters* parameters) -{ - gint _vala_scale = 0; - ScaleConstraint _vala_constraint = 0; - gboolean result = FALSE; - ExportFormatParameters _tmp0_; - ExportFormatMode _tmp1_; - ExportFormatParameters _tmp4_; - ExportFormatMode _tmp5_; - ExportFormatParameters _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gboolean ok = FALSE; - gboolean _tmp15_; -#line 179 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_val_if_fail (IS_EXPORT_DIALOG (self), FALSE); -#line 179 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_val_if_fail (parameters != NULL, FALSE); -#line 181 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 185 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp0_ = *parameters; -#line 185 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp1_ = _tmp0_.mode; -#line 185 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp1_ != EXPORT_FORMAT_MODE_LAST) { -#line 1101 "ExportDialog.c" - ScaleConstraint _tmp2_; - GtkComboBoxText* _tmp3_; -#line 186 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _vala_constraint = SCALE_CONSTRAINT_ORIGINAL; -#line 186 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp2_ = _vala_constraint; -#line 186 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_current_constraint = _tmp2_; -#line 187 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp3_ = self->priv->constraint_combo; -#line 187 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 1114 "ExportDialog.c" - } -#line 190 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp4_ = *parameters; -#line 190 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp5_ = _tmp4_.mode; -#line 190 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp5_ == EXPORT_FORMAT_MODE_LAST) { -#line 1122 "ExportDialog.c" - ExportFormatParameters _tmp6_; -#line 191 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp6_ = export_dialog_current_parameters; -#line 191 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - *parameters = _tmp6_; -#line 1128 "ExportDialog.c" - } else { - gboolean _tmp7_ = FALSE; - ExportFormatParameters _tmp8_; - ExportFormatMode _tmp9_; -#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp8_ = *parameters; -#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp9_ = _tmp8_.mode; -#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp9_ == EXPORT_FORMAT_MODE_SPECIFIED) { -#line 1139 "ExportDialog.c" - ExportFormatParameters _tmp10_; - PhotoFileFormat _tmp11_; -#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp10_ = *parameters; -#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp11_ = _tmp10_.specified_format; -#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp7_ = !photo_file_format_can_write (_tmp11_); -#line 1148 "ExportDialog.c" - } else { -#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp7_ = FALSE; -#line 1152 "ExportDialog.c" - } -#line 192 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp7_) { -#line 193 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - (*parameters).specified_format = photo_file_format_get_system_default_format (); -#line 1158 "ExportDialog.c" - } - } -#line 195 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp12_ = *parameters; -#line 195 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp13_ = export_dialog_get_label_for_parameters (self, &_tmp12_); -#line 195 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp14_ = _tmp13_; -#line 195 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_format_set_active_text (self, _tmp14_); -#line 195 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_free0 (_tmp14_); -#line 196 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_on_format_changed (self); -#line 198 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - ok = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_OK); -#line 199 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp15_ = ok; -#line 199 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp15_) { -#line 1179 "ExportDialog.c" - gint index = 0; - GtkComboBoxText* _tmp16_; - gint _tmp17_; - gint _tmp18_; - ScaleConstraint _tmp19_; - ScaleConstraint _tmp20_; - GtkEntry* _tmp21_; - const gchar* _tmp22_; - ScaleConstraint _tmp23_; - gint _tmp25_; - gboolean _tmp26_ = FALSE; - GtkSwitch* _tmp27_; - gboolean _tmp28_; - gboolean _tmp29_; - GtkComboBoxText* _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; - gboolean _tmp36_; - ConfigFacade* config = NULL; - ConfigFacade* _tmp50_; - ConfigFacade* _tmp51_; - ExportFormatParameters _tmp52_; - ExportFormatMode _tmp53_; - ConfigFacade* _tmp54_; - ExportFormatParameters _tmp55_; - PhotoFileFormat _tmp56_; - ConfigFacade* _tmp57_; - ExportFormatParameters _tmp58_; - JpegQuality _tmp59_; - ConfigFacade* _tmp60_; - ExportFormatParameters _tmp61_; - gboolean _tmp62_; - ConfigFacade* _tmp63_; - ScaleConstraint _tmp64_; - ConfigFacade* _tmp65_; - gint _tmp66_; -#line 200 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp16_ = self->priv->constraint_combo; -#line 200 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - index = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_combo_box_get_type (), GtkComboBox)); -#line 201 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp17_ = index; -#line 201 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _vala_assert (_tmp17_ >= 0, "index >= 0"); -#line 202 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp18_ = index; -#line 202 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp19_ = EXPORT_DIALOG_CONSTRAINT_ARRAY[_tmp18_]; -#line 202 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _vala_constraint = _tmp19_; -#line 203 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp20_ = _vala_constraint; -#line 203 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_current_constraint = _tmp20_; -#line 205 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp21_ = self->priv->pixels_entry; -#line 205 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp22_ = gtk_entry_get_text (_tmp21_); -#line 205 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _vala_scale = atoi (_tmp22_); -#line 206 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp23_ = _vala_constraint; -#line 206 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp23_ != SCALE_CONSTRAINT_ORIGINAL) { -#line 1244 "ExportDialog.c" - gint _tmp24_; -#line 207 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp24_ = _vala_scale; -#line 207 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _vala_assert (_tmp24_ > 0, "scale > 0"); -#line 1250 "ExportDialog.c" - } -#line 208 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp25_ = _vala_scale; -#line 208 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_current_scale = _tmp25_; -#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp27_ = self->priv->export_metadata; -#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp28_ = gtk_widget_get_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget)); -#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp29_ = _tmp28_; -#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp29_) { -#line 1264 "ExportDialog.c" - GtkSwitch* _tmp30_; - gboolean _tmp31_; - gboolean _tmp32_; -#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp30_ = self->priv->export_metadata; -#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp31_ = gtk_switch_get_active (_tmp30_); -#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp32_ = _tmp31_; -#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp26_ = _tmp32_; -#line 1276 "ExportDialog.c" - } else { -#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp26_ = FALSE; -#line 1280 "ExportDialog.c" - } -#line 210 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - (*parameters).export_metadata = _tmp26_; -#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp33_ = self->priv->format_combo; -#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp34_ = gtk_combo_box_text_get_active_text (_tmp33_); -#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp35_ = _tmp34_; -#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp36_ = g_strcmp0 (_tmp35_, EXPORT_DIALOG_UNMODIFIED_FORMAT_LABEL) == 0; -#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_free0 (_tmp35_); -#line 212 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp36_) { -#line 1296 "ExportDialog.c" - ExportFormatMode _tmp37_; -#line 213 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_current_parameters.mode = EXPORT_FORMAT_MODE_UNMODIFIED; -#line 213 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp37_ = export_dialog_current_parameters.mode; -#line 213 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - (*parameters).mode = _tmp37_; -#line 1304 "ExportDialog.c" - } else { - GtkComboBoxText* _tmp38_; - gchar* _tmp39_; - gchar* _tmp40_; - gboolean _tmp41_; -#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp38_ = self->priv->format_combo; -#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp39_ = gtk_combo_box_text_get_active_text (_tmp38_); -#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp40_ = _tmp39_; -#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp41_ = g_strcmp0 (_tmp40_, EXPORT_DIALOG_CURRENT_FORMAT_LABEL) == 0; -#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_free0 (_tmp40_); -#line 214 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp41_) { -#line 1322 "ExportDialog.c" - ExportFormatMode _tmp42_; -#line 215 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_current_parameters.mode = EXPORT_FORMAT_MODE_CURRENT; -#line 215 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp42_ = export_dialog_current_parameters.mode; -#line 215 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - (*parameters).mode = _tmp42_; -#line 1330 "ExportDialog.c" - } else { - ExportFormatMode _tmp43_; - PhotoFileFormat _tmp44_; - ExportFormatParameters _tmp45_; - PhotoFileFormat _tmp46_; -#line 217 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_current_parameters.mode = EXPORT_FORMAT_MODE_SPECIFIED; -#line 217 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp43_ = export_dialog_current_parameters.mode; -#line 217 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - (*parameters).mode = _tmp43_; -#line 218 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_current_parameters.specified_format = export_dialog_get_specified_format (self); -#line 218 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp44_ = export_dialog_current_parameters.specified_format; -#line 218 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - (*parameters).specified_format = _tmp44_; -#line 219 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp45_ = export_dialog_current_parameters; -#line 219 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp46_ = _tmp45_.specified_format; -#line 219 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp46_ == PHOTO_FILE_FORMAT_JFIF) { -#line 1354 "ExportDialog.c" - GtkComboBoxText* _tmp47_; - JpegQuality _tmp48_; - JpegQuality _tmp49_; -#line 220 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp47_ = self->priv->quality_combo; -#line 220 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp48_ = EXPORT_DIALOG_QUALITY_ARRAY[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 220 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_current_parameters.quality = _tmp48_; -#line 220 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp49_ = export_dialog_current_parameters.quality; -#line 220 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - (*parameters).quality = _tmp49_; -#line 1368 "ExportDialog.c" - } - } - } -#line 224 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp50_ = config_facade_get_instance (); -#line 224 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - config = _tmp50_; -#line 225 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp51_ = config; -#line 225 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp52_ = export_dialog_current_parameters; -#line 225 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp53_ = _tmp52_.mode; -#line 225 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - configuration_facade_set_export_export_format_mode (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp53_); -#line 226 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp54_ = config; -#line 226 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp55_ = export_dialog_current_parameters; -#line 226 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp56_ = _tmp55_.specified_format; -#line 226 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - configuration_facade_set_export_photo_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp56_); -#line 227 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp57_ = config; -#line 227 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp58_ = export_dialog_current_parameters; -#line 227 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp59_ = _tmp58_.quality; -#line 227 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - configuration_facade_set_export_quality (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp59_); -#line 228 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp60_ = config; -#line 228 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp61_ = export_dialog_current_parameters; -#line 228 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp62_ = _tmp61_.export_metadata; -#line 228 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - configuration_facade_set_export_export_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp62_); -#line 229 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp63_ = config; -#line 229 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp64_ = export_dialog_current_constraint; -#line 229 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - configuration_facade_set_export_constraint (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp64_); -#line 230 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp65_ = config; -#line 230 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp66_ = export_dialog_current_scale; -#line 230 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - configuration_facade_set_export_scale (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp66_); -#line 199 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (config); -#line 1422 "ExportDialog.c" - } else { -#line 232 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _vala_scale = 0; -#line 233 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _vala_constraint = SCALE_CONSTRAINT_ORIGINAL; -#line 1428 "ExportDialog.c" - } -#line 236 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 238 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - result = ok; -#line 238 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (scale) { -#line 238 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - *scale = _vala_scale; -#line 1438 "ExportDialog.c" - } -#line 238 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (constraint) { -#line 238 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - *constraint = _vala_constraint; -#line 1444 "ExportDialog.c" - } -#line 238 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - return result; -#line 1448 "ExportDialog.c" -} - - -static void -export_dialog_add_label (ExportDialog* self, - const gchar* text, - gint x, - gint y, - GtkWidget* widget) -{ - GtkLabel* new_label = NULL; - GtkLabel* _tmp0_; - GtkLabel* _tmp1_; - GtkLabel* _tmp2_; - GtkLabel* _tmp3_; - GtkGrid* _tmp5_; - GtkLabel* _tmp6_; -#line 241 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_if_fail (IS_EXPORT_DIALOG (self)); -#line 241 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_if_fail (text != NULL); -#line 241 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_if_fail ((widget == NULL) || GTK_IS_WIDGET (widget)); -#line 242 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp0_ = (GtkLabel*) gtk_label_new_with_mnemonic (text); -#line 242 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_object_ref_sink (_tmp0_); -#line 242 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - new_label = _tmp0_; -#line 243 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp1_ = new_label; -#line 243 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_END); -#line 244 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp2_ = new_label; -#line 244 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 245 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp3_ = new_label; -#line 245 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_label_set_use_underline (_tmp3_, TRUE); -#line 247 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (widget != NULL) { -#line 1492 "ExportDialog.c" - GtkLabel* _tmp4_; -#line 248 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp4_ = new_label; -#line 248 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_label_set_mnemonic_widget (_tmp4_, widget); -#line 1498 "ExportDialog.c" - } -#line 250 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp5_ = self->priv->table; -#line 250 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp6_ = new_label; -#line 250 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_grid_attach (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), x, y, 1, 1); -#line 241 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (new_label); -#line 1508 "ExportDialog.c" -} - - -static void -export_dialog_add_control (ExportDialog* self, - GtkWidget* widget, - gint x, - gint y) -{ - GtkGrid* _tmp0_; -#line 253 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_if_fail (IS_EXPORT_DIALOG (self)); -#line 253 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_if_fail (GTK_IS_WIDGET (widget)); -#line 254 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_halign (widget, GTK_ALIGN_FILL); -#line 255 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_valign (widget, GTK_ALIGN_CENTER); -#line 256 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_hexpand (widget, TRUE); -#line 257 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_vexpand (widget, TRUE); -#line 259 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp0_ = self->priv->table; -#line 259 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_grid_attach (_tmp0_, widget, x, y, 1, 1); -#line 1535 "ExportDialog.c" -} - - -static void -export_dialog_on_constraint_changed (ExportDialog* self) -{ - gboolean original = FALSE; - GtkComboBoxText* _tmp0_; - ScaleConstraint _tmp1_; - gboolean jpeg = FALSE; - GtkComboBoxText* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - PhotoFileFormatProperties* _tmp5_; - PhotoFileFormatProperties* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gboolean _tmp9_; - GtkEntry* _tmp10_; - gboolean _tmp11_; - gboolean _tmp12_ = FALSE; - gboolean _tmp13_; - GtkComboBoxText* _tmp15_; - gboolean _tmp16_; -#line 262 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_if_fail (IS_EXPORT_DIALOG (self)); -#line 263 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp0_ = self->priv->constraint_combo; -#line 263 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp1_ = EXPORT_DIALOG_CONSTRAINT_ARRAY[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 263 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - original = _tmp1_ == SCALE_CONSTRAINT_ORIGINAL; -#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp2_ = self->priv->format_combo; -#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp3_ = gtk_combo_box_text_get_active_text (_tmp2_); -#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp4_ = _tmp3_; -#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp5_ = photo_file_format_get_properties (PHOTO_FILE_FORMAT_JFIF); -#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp6_ = _tmp5_; -#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp7_ = photo_file_format_properties_get_user_visible_name (_tmp6_); -#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp8_ = _tmp7_; -#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp9_ = g_strcmp0 (_tmp4_, _tmp8_) == 0; -#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_free0 (_tmp8_); -#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _photo_file_format_properties_unref0 (_tmp6_); -#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_free0 (_tmp4_); -#line 264 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - jpeg = _tmp9_; -#line 266 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp10_ = self->priv->pixels_entry; -#line 266 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp11_ = original; -#line 266 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), !_tmp11_); -#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp13_ = original; -#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (!_tmp13_) { -#line 1602 "ExportDialog.c" - gboolean _tmp14_; -#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp14_ = jpeg; -#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp12_ = _tmp14_; -#line 1608 "ExportDialog.c" - } else { -#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp12_ = FALSE; -#line 1612 "ExportDialog.c" - } -#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp15_ = self->priv->quality_combo; -#line 267 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_widget_get_type (), GtkWidget), _tmp12_); -#line 268 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp16_ = original; -#line 268 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp16_) { -#line 1622 "ExportDialog.c" - GtkWidget* _tmp17_; -#line 269 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp17_ = self->priv->ok_button; -#line 269 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_sensitive (_tmp17_, TRUE); -#line 1628 "ExportDialog.c" - } else { -#line 271 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_on_pixels_changed (self); -#line 1632 "ExportDialog.c" - } -} - - -static void -export_dialog_on_format_changed (ExportDialog* self) -{ - gboolean original = FALSE; - GtkComboBoxText* _tmp0_; - ScaleConstraint _tmp1_; - GtkComboBoxText* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gboolean _tmp5_; -#line 274 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_if_fail (IS_EXPORT_DIALOG (self)); -#line 275 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp0_ = self->priv->constraint_combo; -#line 275 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp1_ = EXPORT_DIALOG_CONSTRAINT_ARRAY[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 275 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - original = _tmp1_ == SCALE_CONSTRAINT_ORIGINAL; -#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp2_ = self->priv->format_combo; -#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp3_ = gtk_combo_box_text_get_active_text (_tmp2_); -#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp4_ = _tmp3_; -#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp5_ = g_strcmp0 (_tmp4_, EXPORT_DIALOG_UNMODIFIED_FORMAT_LABEL) == 0; -#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_free0 (_tmp4_); -#line 277 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp5_) { -#line 1667 "ExportDialog.c" - GtkComboBoxText* _tmp6_; - GtkComboBoxText* _tmp7_; - GtkComboBoxText* _tmp8_; - GtkEntry* _tmp9_; - GtkSwitch* _tmp10_; - GtkSwitch* _tmp11_; -#line 282 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp6_ = self->priv->constraint_combo; -#line 282 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 283 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp7_ = self->priv->constraint_combo; -#line 283 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 284 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp8_ = self->priv->quality_combo; -#line 284 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 285 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp9_ = self->priv->pixels_entry; -#line 285 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 286 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp10_ = self->priv->export_metadata; -#line 286 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_switch_set_active (_tmp10_, FALSE); -#line 287 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp11_ = self->priv->export_metadata; -#line 287 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1698 "ExportDialog.c" - } else { - GtkComboBoxText* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gboolean _tmp15_; -#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp12_ = self->priv->format_combo; -#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp13_ = gtk_combo_box_text_get_active_text (_tmp12_); -#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp14_ = _tmp13_; -#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp15_ = g_strcmp0 (_tmp14_, EXPORT_DIALOG_CURRENT_FORMAT_LABEL) == 0; -#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_free0 (_tmp14_); -#line 288 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp15_) { -#line 1716 "ExportDialog.c" - GtkComboBoxText* _tmp16_; - GtkComboBoxText* _tmp17_; - GtkEntry* _tmp18_; - gboolean _tmp19_; - GtkSwitch* _tmp20_; -#line 295 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp16_ = self->priv->constraint_combo; -#line 295 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 296 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp17_ = self->priv->quality_combo; -#line 296 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 297 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp18_ = self->priv->pixels_entry; -#line 297 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp19_ = original; -#line 297 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), !_tmp19_); -#line 298 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp20_ = self->priv->export_metadata; -#line 298 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1740 "ExportDialog.c" - } else { - GtkComboBoxText* _tmp21_; - gboolean jpeg = FALSE; - gboolean _tmp22_ = FALSE; - gboolean _tmp23_; - GtkComboBoxText* _tmp25_; - GtkSwitch* _tmp26_; -#line 303 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp21_ = self->priv->constraint_combo; -#line 303 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 304 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - jpeg = export_dialog_get_specified_format (self) == PHOTO_FILE_FORMAT_JFIF; -#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp23_ = original; -#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (!_tmp23_) { -#line 1758 "ExportDialog.c" - gboolean _tmp24_; -#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp24_ = jpeg; -#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp22_ = _tmp24_; -#line 1764 "ExportDialog.c" - } else { -#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp22_ = FALSE; -#line 1768 "ExportDialog.c" - } -#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp25_ = self->priv->quality_combo; -#line 305 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget), _tmp22_); -#line 306 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp26_ = self->priv->export_metadata; -#line 306 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1778 "ExportDialog.c" - } - } -} - - -static void -export_dialog_on_activate (ExportDialog* self) -{ -#line 310 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_if_fail (IS_EXPORT_DIALOG (self)); -#line 311 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_dialog_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK); -#line 1791 "ExportDialog.c" -} - - -static void -export_dialog_on_pixels_changed (ExportDialog* self) -{ - gboolean _tmp0_ = FALSE; - GtkEntry* _tmp1_; - GtkWidget* _tmp4_; -#line 314 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_if_fail (IS_EXPORT_DIALOG (self)); -#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp1_ = self->priv->pixels_entry; -#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (((gint) gtk_entry_get_text_length (_tmp1_)) > 0) { -#line 1807 "ExportDialog.c" - GtkEntry* _tmp2_; - const gchar* _tmp3_; -#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp2_ = self->priv->pixels_entry; -#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp3_ = gtk_entry_get_text (_tmp2_); -#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp0_ = atoi (_tmp3_) > 0; -#line 1816 "ExportDialog.c" - } else { -#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp0_ = FALSE; -#line 1820 "ExportDialog.c" - } -#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp4_ = self->priv->ok_button; -#line 315 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - gtk_widget_set_sensitive (_tmp4_, _tmp0_); -#line 1826 "ExportDialog.c" -} - - -static gchar -string_get (const gchar* self, - glong index) -{ - gchar result = '\0'; - gchar _tmp0_; -#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, '\0'); -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = ((gchar*) self)[index]; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1844 "ExportDialog.c" -} - - -static void -export_dialog_on_pixels_insert_text (ExportDialog* self, - const gchar* text, - gint length, - gint* position) -{ - gboolean _tmp0_; - gchar* new_text = NULL; - gchar* _tmp3_; - const gchar* _tmp13_; - gint _tmp14_; - gint _tmp15_; - GtkEntry* _tmp21_; -#line 318 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_if_fail (IS_EXPORT_DIALOG (self)); -#line 318 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_return_if_fail (text != NULL); -#line 320 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp0_ = self->priv->in_insert; -#line 320 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp0_) { -#line 321 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - return; -#line 1871 "ExportDialog.c" - } -#line 323 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - self->priv->in_insert = TRUE; -#line 325 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (length == -1) { -#line 1877 "ExportDialog.c" - gint _tmp1_; - gint _tmp2_; -#line 326 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp1_ = strlen (text); -#line 326 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp2_ = _tmp1_; -#line 326 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - length = (gint) _tmp2_; -#line 1886 "ExportDialog.c" - } -#line 329 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp3_ = g_strdup (""); -#line 329 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - new_text = _tmp3_; -#line 1892 "ExportDialog.c" - { - gint ctr = 0; -#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - ctr = 0; -#line 1897 "ExportDialog.c" - { - gboolean _tmp4_ = FALSE; -#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp4_ = TRUE; -#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - while (TRUE) { -#line 1904 "ExportDialog.c" - gint _tmp6_; - gint _tmp7_; -#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (!_tmp4_) { -#line 1909 "ExportDialog.c" - gint _tmp5_; -#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp5_ = ctr; -#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - ctr = _tmp5_ + 1; -#line 1915 "ExportDialog.c" - } -#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp4_ = FALSE; -#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp6_ = ctr; -#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (!(_tmp6_ < length)) { -#line 330 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - break; -#line 1925 "ExportDialog.c" - } -#line 331 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp7_ = ctr; -#line 331 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (g_ascii_isdigit (string_get (text, (glong) _tmp7_))) { -#line 1931 "ExportDialog.c" - const gchar* _tmp8_; - gint _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; -#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp8_ = new_text; -#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp9_ = ctr; -#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp10_ = g_strdup_printf ("%c", (gchar) string_get (text, (glong) _tmp9_)); -#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp11_ = _tmp10_; -#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp12_ = g_strconcat (_tmp8_, _tmp11_, NULL); -#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_free0 (new_text); -#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - new_text = _tmp12_; -#line 332 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_free0 (_tmp11_); -#line 1953 "ExportDialog.c" - } - } - } - } -#line 336 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp13_ = new_text; -#line 336 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp14_ = strlen (_tmp13_); -#line 336 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp15_ = _tmp14_; -#line 336 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - if (_tmp15_ > 0) { -#line 1966 "ExportDialog.c" - GtkEntry* _tmp16_; - const gchar* _tmp17_; - const gchar* _tmp18_; - gint _tmp19_; - gint _tmp20_; -#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp16_ = self->priv->pixels_entry; -#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp17_ = new_text; -#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp18_ = new_text; -#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp19_ = strlen (_tmp18_); -#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp20_ = _tmp19_; -#line 337 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_editable_get_type (), GtkEditable), "insert-text", _tmp17_, (gint) _tmp20_, position); -#line 1984 "ExportDialog.c" - } -#line 339 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp21_ = self->priv->pixels_entry; -#line 339 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_signal_stop_emission_by_name (_tmp21_, "insert-text"); -#line 341 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - self->priv->in_insert = FALSE; -#line 318 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_free0 (new_text); -#line 1994 "ExportDialog.c" -} - - -static void -export_dialog_class_init (ExportDialogClass * klass) -{ - ExportFormatParameters _tmp0_ = {0}; -#line 8 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_parent_class = g_type_class_peek_parent (klass); -#line 8 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_type_class_add_private (klass, sizeof (ExportDialogPrivate)); -#line 8 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - G_OBJECT_CLASS (klass)->finalize = export_dialog_finalize; -#line 25 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_format_parameters_current (&_tmp0_); -#line 25 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_current_parameters = _tmp0_; -#line 26 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - export_dialog_current_scale = EXPORT_DIALOG_DEFAULT_SCALE; -#line 2014 "ExportDialog.c" -} - - -static void -export_dialog_instance_init (ExportDialog * self) -{ - GtkGrid* _tmp0_; - GeeArrayList* _tmp1_; -#line 8 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - self->priv = EXPORT_DIALOG_GET_PRIVATE (self); -#line 28 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp0_ = (GtkGrid*) gtk_grid_new (); -#line 28 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - g_object_ref_sink (_tmp0_); -#line 28 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - self->priv->table = _tmp0_; -#line 33 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _tmp1_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 33 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - self->priv->format_options = _tmp1_; -#line 36 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - self->priv->in_insert = FALSE; -#line 2037 "ExportDialog.c" -} - - -static void -export_dialog_finalize (GObject * obj) -{ - ExportDialog * self; -#line 8 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EXPORT_DIALOG, ExportDialog); -#line 28 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (self->priv->table); -#line 29 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (self->priv->quality_combo); -#line 30 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (self->priv->constraint_combo); -#line 31 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (self->priv->format_combo); -#line 32 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (self->priv->export_metadata); -#line 33 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (self->priv->format_options); -#line 34 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (self->priv->pixels_entry); -#line 35 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - _g_object_unref0 (self->priv->ok_button); -#line 8 "/home/jens/Source/shotwell/src/dialogs/ExportDialog.vala" - G_OBJECT_CLASS (export_dialog_parent_class)->finalize (obj); -#line 2065 "ExportDialog.c" -} - - -GType -export_dialog_get_type (void) -{ - static volatile gsize export_dialog_type_id__volatile = 0; - if (g_once_init_enter (&export_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ExportDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) export_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ExportDialog), 0, (GInstanceInitFunc) export_dialog_instance_init, NULL }; - GType export_dialog_type_id; - export_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "ExportDialog", &g_define_type_info, 0); - g_once_init_leave (&export_dialog_type_id__volatile, export_dialog_type_id); - } - return export_dialog_type_id__volatile; -} - - - diff --git a/src/dialogs/MultiTextEntryDialog.c b/src/dialogs/MultiTextEntryDialog.c deleted file mode 100644 index e33e415..0000000 --- a/src/dialogs/MultiTextEntryDialog.c +++ /dev/null @@ -1,293 +0,0 @@ -/* MultiTextEntryDialog.c generated by valac 0.40.4, the Vala compiler - * generated from MultiTextEntryDialog.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * Copyright 2017 Jens Georg - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include - - -#define TYPE_MULTI_TEXT_ENTRY_DIALOG (multi_text_entry_dialog_get_type ()) -#define MULTI_TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG, MultiTextEntryDialog)) -#define MULTI_TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG, MultiTextEntryDialogClass)) -#define IS_MULTI_TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG)) -#define IS_MULTI_TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG)) -#define MULTI_TEXT_ENTRY_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG, MultiTextEntryDialogClass)) - -typedef struct _MultiTextEntryDialog MultiTextEntryDialog; -typedef struct _MultiTextEntryDialogClass MultiTextEntryDialogClass; -typedef struct _MultiTextEntryDialogPrivate MultiTextEntryDialogPrivate; -enum { - MULTI_TEXT_ENTRY_DIALOG_0_PROPERTY, - MULTI_TEXT_ENTRY_DIALOG_NUM_PROPERTIES -}; -static GParamSpec* multi_text_entry_dialog_properties[MULTI_TEXT_ENTRY_DIALOG_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; -#define _g_free0(var) (var = (g_free (var), NULL)) - -struct _MultiTextEntryDialog { - GtkDialog parent_instance; - MultiTextEntryDialogPrivate * priv; -}; - -struct _MultiTextEntryDialogClass { - GtkDialogClass parent_class; -}; - -typedef gboolean (*MultiTextEntryDialogOnModifyValidateType) (const gchar* text, void* user_data); -struct _MultiTextEntryDialogPrivate { - MultiTextEntryDialogOnModifyValidateType on_modify_validate; - gpointer on_modify_validate_target; - GtkTextView* entry; -}; - - -static gpointer multi_text_entry_dialog_parent_class = NULL; - -GType multi_text_entry_dialog_get_type (void) G_GNUC_CONST; -#define MULTI_TEXT_ENTRY_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MULTI_TEXT_ENTRY_DIALOG, MultiTextEntryDialogPrivate)) -MultiTextEntryDialog* multi_text_entry_dialog_new (void); -MultiTextEntryDialog* multi_text_entry_dialog_construct (GType object_type); -gint resources_use_header_bar (void); -void multi_text_entry_dialog_setup (MultiTextEntryDialog* self, - MultiTextEntryDialogOnModifyValidateType modify_validate, - void* modify_validate_target, - const gchar* title, - const gchar* label, - const gchar* initial_text); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -gchar* multi_text_entry_dialog_execute (MultiTextEntryDialog* self); -static void multi_text_entry_dialog_finalize (GObject * obj); - - -MultiTextEntryDialog* -multi_text_entry_dialog_construct (GType object_type) -{ - MultiTextEntryDialog * self = NULL; -#line 17 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - self = (MultiTextEntryDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL); -#line 16 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - return self; -#line 103 "MultiTextEntryDialog.c" -} - - -MultiTextEntryDialog* -multi_text_entry_dialog_new (void) -{ -#line 16 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - return multi_text_entry_dialog_construct (TYPE_MULTI_TEXT_ENTRY_DIALOG); -#line 112 "MultiTextEntryDialog.c" -} - - -void -multi_text_entry_dialog_setup (MultiTextEntryDialog* self, - MultiTextEntryDialogOnModifyValidateType modify_validate, - void* modify_validate_target, - const gchar* title, - const gchar* label, - const gchar* initial_text) -{ - AppWindow* _tmp0_; - AppWindow* _tmp1_; - GdkWindow* _tmp2_; - AppWindow* _tmp3_; - AppWindow* _tmp4_; - const gchar* _tmp5_ = NULL; - GtkTextView* _tmp6_; - GtkTextBuffer* _tmp7_; - GtkTextBuffer* _tmp8_; - GtkTextView* _tmp9_; -#line 20 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - g_return_if_fail (IS_MULTI_TEXT_ENTRY_DIALOG (self)); -#line 20 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - g_return_if_fail (title != NULL); -#line 20 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - g_return_if_fail (label != NULL); -#line 21 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), title); -#line 22 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _tmp0_ = app_window_get_instance (); -#line 22 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _tmp1_ = _tmp0_; -#line 22 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _tmp2_ = gtk_widget_get_parent_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 22 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - gtk_widget_set_parent_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp2_); -#line 22 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _g_object_unref0 (_tmp1_); -#line 23 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _tmp3_ = app_window_get_instance (); -#line 23 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _tmp4_ = _tmp3_; -#line 23 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow)); -#line 23 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _g_object_unref0 (_tmp4_); -#line 24 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - self->priv->on_modify_validate = modify_validate; -#line 24 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - self->priv->on_modify_validate_target = modify_validate_target; -#line 26 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - if (initial_text != NULL) { -#line 26 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _tmp5_ = initial_text; -#line 168 "MultiTextEntryDialog.c" - } else { -#line 26 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _tmp5_ = ""; -#line 172 "MultiTextEntryDialog.c" - } -#line 26 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _tmp6_ = self->priv->entry; -#line 26 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _tmp7_ = gtk_text_view_get_buffer (_tmp6_); -#line 26 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _tmp8_ = _tmp7_; -#line 26 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - g_object_set (_tmp8_, "text", _tmp5_, NULL); -#line 28 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _tmp9_ = self->priv->entry; -#line 28 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget)); -#line 186 "MultiTextEntryDialog.c" -} - - -gchar* -multi_text_entry_dialog_execute (MultiTextEntryDialog* self) -{ - gchar* result = NULL; - gchar* text = NULL; -#line 31 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - g_return_val_if_fail (IS_MULTI_TEXT_ENTRY_DIALOG (self), NULL); -#line 32 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - text = NULL; -#line 34 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 36 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - if (gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_OK)) { -#line 203 "MultiTextEntryDialog.c" - GtkTextView* _tmp0_; - GtkTextBuffer* _tmp1_; - GtkTextBuffer* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 37 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _tmp0_ = self->priv->entry; -#line 37 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _tmp1_ = gtk_text_view_get_buffer (_tmp0_); -#line 37 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _tmp2_ = _tmp1_; -#line 37 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - g_object_get (_tmp2_, "text", &_tmp3_, NULL); -#line 37 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _tmp4_ = _tmp3_; -#line 37 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _g_free0 (text); -#line 37 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - text = _tmp4_; -#line 223 "MultiTextEntryDialog.c" - } -#line 39 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 41 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - result = text; -#line 41 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - return result; -#line 231 "MultiTextEntryDialog.c" -} - - -static void -multi_text_entry_dialog_class_init (MultiTextEntryDialogClass * klass) -{ - gint MultiTextEntryDialog_private_offset; -#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - multi_text_entry_dialog_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - g_type_class_add_private (klass, sizeof (MultiTextEntryDialogPrivate)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - G_OBJECT_CLASS (klass)->finalize = multi_text_entry_dialog_finalize; -#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - MultiTextEntryDialog_private_offset = g_type_class_get_instance_private_offset (klass); -#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/multitextentrydialog.ui"); -#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "entry", FALSE, MultiTextEntryDialog_private_offset + G_STRUCT_OFFSET (MultiTextEntryDialogPrivate, entry)); -#line 251 "MultiTextEntryDialog.c" -} - - -static void -multi_text_entry_dialog_instance_init (MultiTextEntryDialog * self) -{ -#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - self->priv = MULTI_TEXT_ENTRY_DIALOG_GET_PRIVATE (self); -#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - gtk_widget_init_template (GTK_WIDGET (self)); -#line 262 "MultiTextEntryDialog.c" -} - - -static void -multi_text_entry_dialog_finalize (GObject * obj) -{ - MultiTextEntryDialog * self; -#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MULTI_TEXT_ENTRY_DIALOG, MultiTextEntryDialog); -#line 14 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - _g_object_unref0 (self->priv->entry); -#line 9 "/home/jens/Source/shotwell/src/dialogs/MultiTextEntryDialog.vala" - G_OBJECT_CLASS (multi_text_entry_dialog_parent_class)->finalize (obj); -#line 276 "MultiTextEntryDialog.c" -} - - -GType -multi_text_entry_dialog_get_type (void) -{ - static volatile gsize multi_text_entry_dialog_type_id__volatile = 0; - if (g_once_init_enter (&multi_text_entry_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MultiTextEntryDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) multi_text_entry_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MultiTextEntryDialog), 0, (GInstanceInitFunc) multi_text_entry_dialog_instance_init, NULL }; - GType multi_text_entry_dialog_type_id; - multi_text_entry_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "MultiTextEntryDialog", &g_define_type_info, 0); - g_once_init_leave (&multi_text_entry_dialog_type_id__volatile, multi_text_entry_dialog_type_id); - } - return multi_text_entry_dialog_type_id__volatile; -} - - - diff --git a/src/dialogs/Preferences.c b/src/dialogs/Preferences.c deleted file mode 100644 index 7a77423..0000000 --- a/src/dialogs/Preferences.c +++ /dev/null @@ -1,3328 +0,0 @@ -/* Preferences.c generated by valac 0.40.4, the Vala compiler - * generated from Preferences.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * Copyright 2017 Jens Georg - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PREFERENCES_DIALOG (preferences_dialog_get_type ()) -#define PREFERENCES_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PREFERENCES_DIALOG, PreferencesDialog)) -#define PREFERENCES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PREFERENCES_DIALOG, PreferencesDialogClass)) -#define IS_PREFERENCES_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PREFERENCES_DIALOG)) -#define IS_PREFERENCES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PREFERENCES_DIALOG)) -#define PREFERENCES_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PREFERENCES_DIALOG, PreferencesDialogClass)) - -typedef struct _PreferencesDialog PreferencesDialog; -typedef struct _PreferencesDialogClass PreferencesDialogClass; -typedef struct _PreferencesDialogPrivate PreferencesDialogPrivate; - -#define TYPE_SORTED_LIST (sorted_list_get_type ()) -#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList)) -#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass)) -#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST)) -#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST)) -#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass)) - -typedef struct _SortedList SortedList; -typedef struct _SortedListClass SortedListClass; - -#define PREFERENCES_DIALOG_TYPE_PATH_FORMAT (preferences_dialog_path_format_get_type ()) -#define PREFERENCES_DIALOG_PATH_FORMAT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PREFERENCES_DIALOG_TYPE_PATH_FORMAT, PreferencesDialogPathFormat)) -#define PREFERENCES_DIALOG_PATH_FORMAT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PREFERENCES_DIALOG_TYPE_PATH_FORMAT, PreferencesDialogPathFormatClass)) -#define PREFERENCES_DIALOG_IS_PATH_FORMAT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PREFERENCES_DIALOG_TYPE_PATH_FORMAT)) -#define PREFERENCES_DIALOG_IS_PATH_FORMAT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PREFERENCES_DIALOG_TYPE_PATH_FORMAT)) -#define PREFERENCES_DIALOG_PATH_FORMAT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PREFERENCES_DIALOG_TYPE_PATH_FORMAT, PreferencesDialogPathFormatClass)) - -typedef struct _PreferencesDialogPathFormat PreferencesDialogPathFormat; -typedef struct _PreferencesDialogPathFormatClass PreferencesDialogPathFormatClass; - -#define PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR (plugins_manifest_widget_mediator_get_type ()) -#define PLUGINS_MANIFEST_WIDGET_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediator)) -#define PLUGINS_MANIFEST_WIDGET_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediatorClass)) -#define PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR)) -#define PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR)) -#define PLUGINS_MANIFEST_WIDGET_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediatorClass)) - -typedef struct _PluginsManifestWidgetMediator PluginsManifestWidgetMediator; -typedef struct _PluginsManifestWidgetMediatorClass PluginsManifestWidgetMediatorClass; -enum { - PREFERENCES_DIALOG_0_PROPERTY, - PREFERENCES_DIALOG_NUM_PROPERTIES -}; -static GParamSpec* preferences_dialog_properties[PREFERENCES_DIALOG_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL))) - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -typedef struct _PreferencesDialogPathFormatPrivate PreferencesDialogPathFormatPrivate; -#define _preferences_dialog_path_format_unref0(var) ((var == NULL) ? NULL : (var = (preferences_dialog_path_format_unref (var), NULL))) -typedef struct _PreferencesDialogParamSpecPathFormat PreferencesDialogParamSpecPathFormat; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PreferencesDialog { - GtkDialog parent_instance; - PreferencesDialogPrivate * priv; -}; - -struct _PreferencesDialogClass { - GtkDialogClass parent_class; -}; - -struct _PreferencesDialogPrivate { - GtkAdjustment* bg_color_adjustment; - GtkScale* bg_color_slider; - GtkComboBox* photo_editor_combo; - GtkComboBox* raw_editor_combo; - SortedList* external_raw_apps; - SortedList* external_photo_apps; - GtkFileChooserButton* library_dir_button; - GtkComboBoxText* dir_pattern_combo; - GtkEntry* dir_pattern_entry; - GtkLabel* dir_pattern_example; - gboolean allow_closing; - gchar* lib_dir; - GeeArrayList* path_formats; - GDateTime* example_date; - GtkCheckButton* lowercase; - PluginsManifestWidgetMediator* plugins_mediator; - GtkComboBoxText* default_raw_developer_combo; - GtkCheckButton* autoimport; - GtkCheckButton* write_metadata; - GtkLabel* pattern_help; - GtkNotebook* preferences_notebook; - GtkRadioButton* transparent_checker_radio; - GtkRadioButton* transparent_solid_radio; - GtkColorButton* transparent_solid_color; - GtkRadioButton* transparent_none_radio; -}; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _PreferencesDialogPathFormat { - GTypeInstance parent_instance; - volatile int ref_count; - PreferencesDialogPathFormatPrivate * priv; - gchar* name; - gchar* pattern; -}; - -struct _PreferencesDialogPathFormatClass { - GTypeClass parent_class; - void (*finalize) (PreferencesDialogPathFormat *self); -}; - -struct _PreferencesDialogParamSpecPathFormat { - GParamSpec parent_instance; -}; - - -static gpointer preferences_dialog_parent_class = NULL; -static PreferencesDialog* preferences_dialog_preferences_dialog; -static PreferencesDialog* preferences_dialog_preferences_dialog = NULL; -static gpointer preferences_dialog_path_format_parent_class = NULL; - -GType preferences_dialog_get_type (void) G_GNUC_CONST; -GType sorted_list_get_type (void) G_GNUC_CONST; -static gpointer preferences_dialog_path_format_ref (gpointer instance); -static void preferences_dialog_path_format_unref (gpointer instance); -static GParamSpec* preferences_dialog_param_spec_path_format (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void preferences_dialog_value_set_path_format (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void preferences_dialog_value_take_path_format (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer preferences_dialog_value_get_path_format (const GValue* value) G_GNUC_UNUSED; -static GType preferences_dialog_path_format_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -GType plugins_manifest_widget_mediator_get_type (void) G_GNUC_CONST; -#define PREFERENCES_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PREFERENCES_DIALOG, PreferencesDialogPrivate)) -PluginsManifestWidgetMediator* plugins_manifest_widget_mediator_new (void); -PluginsManifestWidgetMediator* plugins_manifest_widget_mediator_construct (GType object_type); -static PreferencesDialog* preferences_dialog_new (void); -static PreferencesDialog* preferences_dialog_construct (GType object_type); -gint resources_use_header_bar (void); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -static gboolean preferences_dialog_on_delete (PreferencesDialog* self); -static gboolean _preferences_dialog_on_delete_gtk_widget_delete_event (GtkWidget* _sender, - GdkEventAny* event, - gpointer self); -static void preferences_dialog_on_close (PreferencesDialog* self); -static void _preferences_dialog_on_close_gtk_dialog_response (GtkDialog* _sender, - gint response_id, - gpointer self); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -void config_facade_get_bg_color (ConfigFacade* self, - GdkRGBA* result); -static void preferences_dialog_on_value_changed (PreferencesDialog* self); -static void _preferences_dialog_on_value_changed_gtk_adjustment_value_changed (GtkAdjustment* _sender, - gpointer self); -static gboolean preferences_dialog_on_bg_color_reset (PreferencesDialog* self, - GdkEventButton* event); -static gboolean _preferences_dialog_on_bg_color_reset_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self); -static void preferences_dialog_on_radio_changed (PreferencesDialog* self); -static void _preferences_dialog_on_radio_changed_gtk_toggle_button_toggled (GtkToggleButton* _sender, - gpointer self); -gchar* configuration_facade_get_transparent_background_color (ConfigurationFacade* self); -static void preferences_dialog_on_color_changed (PreferencesDialog* self); -static void _preferences_dialog_on_color_changed_gtk_color_button_color_set (GtkColorButton* _sender, - gpointer self); -gchar* configuration_facade_get_transparent_background_type (ConfigurationFacade* self); -gchar* resources_get_help_path (void); -#define RESOURCES_DIR_PATTERN_URI_SYSWIDE "help:shotwell/other-files" -static gboolean preferences_dialog_on_local_pattern_help (PreferencesDialog* self, - const gchar* ignore); -static gboolean _preferences_dialog_on_local_pattern_help_gtk_label_activate_link (GtkLabel* _sender, - const gchar* uri, - gpointer self); -static void preferences_dialog_add_to_dir_formats (PreferencesDialog* self, - const gchar* name, - const gchar* pattern); -static void preferences_dialog_on_dir_pattern_combo_changed (PreferencesDialog* self); -static void _preferences_dialog_on_dir_pattern_combo_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void preferences_dialog_on_dir_pattern_entry_changed (PreferencesDialog* self); -static void _preferences_dialog_on_dir_pattern_entry_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static void preferences_dialog_on_lowercase_toggled (PreferencesDialog* self); -static void _preferences_dialog_on_lowercase_toggled_gtk_toggle_button_toggled (GtkToggleButton* _sender, - gpointer self); -void preferences_dialog_populate_preference_options (PreferencesDialog* self); -static void preferences_dialog_on_photo_editor_changed (PreferencesDialog* self); -static void _preferences_dialog_on_photo_editor_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void preferences_dialog_on_raw_editor_changed (PreferencesDialog* self); -static void _preferences_dialog_on_raw_editor_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -gboolean configuration_facade_get_auto_import_from_library (ConfigurationFacade* self); -gboolean configuration_facade_get_commit_metadata_to_masters (ConfigurationFacade* self); -GType raw_developer_get_type (void) G_GNUC_CONST; -gchar* raw_developer_get_label (RawDeveloper self); -static void preferences_dialog_set_raw_developer_combo (PreferencesDialog* self, - RawDeveloper d); -RawDeveloper configuration_facade_get_default_raw_developer (ConfigurationFacade* self); -static void preferences_dialog_on_default_raw_developer_changed (PreferencesDialog* self); -static void _preferences_dialog_on_default_raw_developer_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void preferences_dialog_populate_app_combo_box (PreferencesDialog* self, - GtkComboBox* combo_box, - gchar** mime_types, - int mime_types_length1, - const gchar* current_app_executable, - SortedList* * external_apps); -gchar** photo_file_format_get_editable_mime_types (int* result_length1); -gchar* configuration_facade_get_external_photo_app (ConfigurationFacade* self); -GType photo_file_format_get_type (void) G_GNUC_CONST; -gchar** photo_file_format_get_mime_types (PhotoFileFormat self, - int* result_length1); -gchar* configuration_facade_get_external_raw_app (ConfigurationFacade* self); -static void preferences_dialog_setup_dir_pattern (PreferencesDialog* self, - GtkComboBox* combo_box, - GtkEntry* entry); -gboolean configuration_facade_get_use_lowercase_filenames (ConfigurationFacade* self); -void configuration_facade_set_transparent_background_type (ConfigurationFacade* self, - const gchar* type); -void configuration_facade_set_transparent_background_color (ConfigurationFacade* self, - const gchar* color_name); -void resources_launch_help (GdkScreen* screen, - const gchar* anchor, - GError** error); -SortedList* desktop_integration_get_apps_for_mime_types (gchar** mime_types, - int mime_types_length1); -GdkPixbuf* scale_pixbuf (GdkPixbuf* pixbuf, - gint scale, - GdkInterpType interp, - gboolean scale_up); -#define RESOURCES_DEFAULT_ICON_SCALE 24 -gint sorted_list_index_of (SortedList* self, - gconstpointer search); -gchar* configuration_facade_get_directory_pattern (ConfigurationFacade* self); -gchar* configuration_facade_get_directory_pattern_custom (ConfigurationFacade* self); -gboolean is_string_empty (const gchar* s); -void preferences_dialog_show_preferences (void); -GFile* app_dirs_get_import_dir (void); -static void preferences_dialog_commit_on_close (PreferencesDialog* self); -void config_facade_commit_bg_color (ConfigFacade* self); -void configuration_facade_set_auto_import_from_library (ConfigurationFacade* self, - gboolean auto_import); -void configuration_facade_set_commit_metadata_to_masters (ConfigurationFacade* self, - gboolean commit_metadata); -void app_dirs_set_import_dir (const gchar* path); -void configuration_facade_set_directory_pattern_custom (ConfigurationFacade* self, - const gchar* s); -void configuration_facade_set_directory_pattern (ConfigurationFacade* self, - const gchar* s); -static gboolean preferences_dialog_get_allow_closing (PreferencesDialog* self); -static void preferences_dialog_set_background_color (PreferencesDialog* self, - gdouble bg_color_value); -gboolean has_only_key_modifier (GdkModifierType field, - GdkModifierType mask); -void parse_color (const gchar* spec, - GdkRGBA* result); -#define CONFIG_FACADE_DEFAULT_BG_COLOR "#444" -static void preferences_dialog_set_allow_closing (PreferencesDialog* self, - gboolean allow); -void config_facade_set_bg_color (ConfigFacade* self, - GdkRGBA* color); -static void preferences_dialog_to_grayscale (PreferencesDialog* self, - gdouble color_value, - GdkRGBA* result); -gpointer sorted_list_get_at (SortedList* self, - gint index); -void configuration_facade_set_external_photo_app (ConfigurationFacade* self, - const gchar* external_photo_app); -gchar* desktop_integration_get_app_open_command (GAppInfo* app_info); -void configuration_facade_set_external_raw_app (ConfigurationFacade* self, - const gchar* external_raw_app); -static RawDeveloper preferences_dialog_raw_developer_from_combo (PreferencesDialog* self); -void configuration_facade_set_default_raw_developer (ConfigurationFacade* self, - RawDeveloper d); -static void preferences_dialog_on_current_folder_changed (PreferencesDialog* self); -static gboolean preferences_dialog_real_map_event (GtkWidget* base, - GdkEventAny* event); -static void _preferences_dialog_on_current_folder_changed_gtk_file_chooser_current_folder_changed (GtkFileChooser* _sender, - gpointer self); -static PreferencesDialogPathFormat* preferences_dialog_path_format_new (const gchar* name, - const gchar* pattern); -static PreferencesDialogPathFormat* preferences_dialog_path_format_construct (GType object_type, - const gchar* name, - const gchar* pattern); -void configuration_facade_set_use_lowercase_filenames (ConfigurationFacade* self, - gboolean b); -static void preferences_dialog_path_format_finalize (PreferencesDialogPathFormat * obj); -static void preferences_dialog_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -static gboolean -_preferences_dialog_on_delete_gtk_widget_delete_event (GtkWidget* _sender, - GdkEventAny* event, - gpointer self) -{ - gboolean result; - result = preferences_dialog_on_delete ((PreferencesDialog*) self); -#line 72 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return result; -#line 399 "Preferences.c" -} - - -static void -_preferences_dialog_on_close_gtk_dialog_response (GtkDialog* _sender, - gint response_id, - gpointer self) -{ -#line 73 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_on_close ((PreferencesDialog*) self); -#line 410 "Preferences.c" -} - - -static void -_preferences_dialog_on_value_changed_gtk_adjustment_value_changed (GtkAdjustment* _sender, - gpointer self) -{ -#line 77 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_on_value_changed ((PreferencesDialog*) self); -#line 420 "Preferences.c" -} - - -static gboolean -_preferences_dialog_on_bg_color_reset_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self) -{ - gboolean result; - result = preferences_dialog_on_bg_color_reset ((PreferencesDialog*) self, event); -#line 79 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return result; -#line 433 "Preferences.c" -} - - -static void -_preferences_dialog_on_radio_changed_gtk_toggle_button_toggled (GtkToggleButton* _sender, - gpointer self) -{ -#line 81 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_on_radio_changed ((PreferencesDialog*) self); -#line 443 "Preferences.c" -} - - -static void -_preferences_dialog_on_color_changed_gtk_color_button_color_set (GtkColorButton* _sender, - gpointer self) -{ -#line 92 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_on_color_changed ((PreferencesDialog*) self); -#line 453 "Preferences.c" -} - - -static gboolean -_preferences_dialog_on_local_pattern_help_gtk_label_activate_link (GtkLabel* _sender, - const gchar* uri, - gpointer self) -{ - gboolean result; - result = preferences_dialog_on_local_pattern_help ((PreferencesDialog*) self, uri); -#line 120 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return result; -#line 466 "Preferences.c" -} - - -static void -_preferences_dialog_on_dir_pattern_combo_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 131 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_on_dir_pattern_combo_changed ((PreferencesDialog*) self); -#line 476 "Preferences.c" -} - - -static void -_preferences_dialog_on_dir_pattern_entry_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 132 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_on_dir_pattern_entry_changed ((PreferencesDialog*) self); -#line 486 "Preferences.c" -} - - -static void -_preferences_dialog_on_lowercase_toggled_gtk_toggle_button_toggled (GtkToggleButton* _sender, - gpointer self) -{ -#line 134 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_on_lowercase_toggled ((PreferencesDialog*) self); -#line 496 "Preferences.c" -} - - -static void -_preferences_dialog_on_photo_editor_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 140 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_on_photo_editor_changed ((PreferencesDialog*) self); -#line 506 "Preferences.c" -} - - -static void -_preferences_dialog_on_raw_editor_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 141 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_on_raw_editor_changed ((PreferencesDialog*) self); -#line 516 "Preferences.c" -} - - -static void -_preferences_dialog_on_default_raw_developer_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 150 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_on_default_raw_developer_changed ((PreferencesDialog*) self); -#line 526 "Preferences.c" -} - - -static PreferencesDialog* -preferences_dialog_construct (GType object_type) -{ - PreferencesDialog * self = NULL; - AppWindow* _tmp0_; - AppWindow* _tmp1_; - GdkWindow* _tmp2_; - AppWindow* _tmp3_; - AppWindow* _tmp4_; - GtkAdjustment* _tmp5_; - GtkAdjustment* _tmp6_; - ConfigFacade* _tmp7_; - ConfigFacade* _tmp8_; - GdkRGBA _tmp9_ = {0}; - gdouble _tmp10_; - GtkAdjustment* _tmp11_; - GtkScale* _tmp12_; - GtkRadioButton* _tmp13_; - GtkRadioButton* _tmp14_; - GtkRadioButton* _tmp15_; - GtkRadioButton* _tmp16_; - GtkColorButton* _tmp17_; - GdkRGBA color = {0}; - ConfigFacade* _tmp18_; - ConfigFacade* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - GtkColorButton* _tmp22_; - GdkRGBA _tmp23_; - GtkColorButton* _tmp24_; - ConfigFacade* _tmp25_; - ConfigFacade* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - GQuark _tmp31_ = 0U; -#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - static GQuark _tmp30_label0 = 0; -#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - static GQuark _tmp30_label1 = 0; -#line 570 "Preferences.c" - gchar* help_path = NULL; - gchar* _tmp35_; - const gchar* _tmp36_; - gchar* _tmp48_; - gchar* _tmp49_; - gchar* _tmp50_; - gchar* _tmp51_; - gchar* _tmp52_; - gchar* _tmp53_; - GtkComboBoxText* _tmp54_; - GtkEntry* _tmp55_; - GtkCheckButton* _tmp56_; - GtkNotebook* _tmp57_; - GtkWidget* _tmp58_; - PluginsManifestWidgetMediator* _tmp59_; - GtkComboBox* _tmp60_; - GtkComboBox* _tmp61_; - GtkCheckButton* _tmp62_; - ConfigFacade* _tmp63_; - ConfigFacade* _tmp64_; - GtkCheckButton* _tmp65_; - ConfigFacade* _tmp66_; - ConfigFacade* _tmp67_; - GtkComboBoxText* _tmp68_; - gchar* _tmp69_; - gchar* _tmp70_; - GtkComboBoxText* _tmp71_; - gchar* _tmp72_; - gchar* _tmp73_; - ConfigFacade* _tmp74_; - ConfigFacade* _tmp75_; - GtkComboBoxText* _tmp76_; -#line 68 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self = (PreferencesDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL); -#line 70 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = app_window_get_instance (); -#line 70 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = _tmp0_; -#line 70 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp2_ = gtk_widget_get_parent_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 70 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_set_parent_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp2_); -#line 70 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp1_); -#line 71 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp3_ = app_window_get_instance (); -#line 71 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp4_ = _tmp3_; -#line 71 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow)); -#line 71 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp4_); -#line 72 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "delete-event", (GCallback) _preferences_dialog_on_delete_gtk_widget_delete_event, self, 0); -#line 73 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), "response", (GCallback) _preferences_dialog_on_close_gtk_dialog_response, self, 0); -#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp5_ = self->priv->bg_color_adjustment; -#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp6_ = self->priv->bg_color_adjustment; -#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp7_ = config_facade_get_instance (); -#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp8_ = _tmp7_; -#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - config_facade_get_bg_color (_tmp8_, &_tmp9_); -#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp10_ = _tmp9_.red; -#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_adjustment_set_value (_tmp5_, gtk_adjustment_get_upper (_tmp6_) - (_tmp10_ * 65535.0)); -#line 75 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp8_); -#line 77 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp11_ = self->priv->bg_color_adjustment; -#line 77 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_signal_connect_object (_tmp11_, "value-changed", (GCallback) _preferences_dialog_on_value_changed_gtk_adjustment_value_changed, self, 0); -#line 79 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp12_ = self->priv->bg_color_slider; -#line 79 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _preferences_dialog_on_bg_color_reset_gtk_widget_button_press_event, self, 0); -#line 81 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp13_ = self->priv->transparent_checker_radio; -#line 81 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_toggle_button_get_type (), GtkToggleButton), "toggled", (GCallback) _preferences_dialog_on_radio_changed_gtk_toggle_button_toggled, self, 0); -#line 82 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp14_ = self->priv->transparent_solid_radio; -#line 82 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_toggle_button_get_type (), GtkToggleButton), "toggled", (GCallback) _preferences_dialog_on_radio_changed_gtk_toggle_button_toggled, self, 0); -#line 83 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp15_ = self->priv->transparent_none_radio; -#line 83 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_toggle_button_get_type (), GtkToggleButton), "toggled", (GCallback) _preferences_dialog_on_radio_changed_gtk_toggle_button_toggled, self, 0); -#line 85 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp16_ = self->priv->transparent_solid_radio; -#line 85 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp17_ = self->priv->transparent_solid_color; -#line 85 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_object_bind_property_with_closures (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, G_TYPE_OBJECT, GObject), "active", G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, G_TYPE_OBJECT, GObject), "sensitive", G_BINDING_DEFAULT, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL))); -#line 89 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - memset (&color, 0, sizeof (GdkRGBA)); -#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp18_ = config_facade_get_instance (); -#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp19_ = _tmp18_; -#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp20_ = configuration_facade_get_transparent_background_color (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp21_ = _tmp20_; -#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gdk_rgba_parse (&color, _tmp21_); -#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (_tmp21_); -#line 90 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp19_); -#line 91 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp22_ = self->priv->transparent_solid_color; -#line 91 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp23_ = color; -#line 91 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_color_chooser_set_rgba (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, gtk_color_chooser_get_type ()) ? ((GtkColorChooser*) _tmp22_) : NULL, &_tmp23_); -#line 92 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp24_ = self->priv->transparent_solid_color; -#line 92 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_signal_connect_object (_tmp24_, "color-set", (GCallback) _preferences_dialog_on_color_changed_gtk_color_button_color_set, self, 0); -#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp25_ = config_facade_get_instance (); -#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp26_ = _tmp25_; -#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp27_ = configuration_facade_get_transparent_background_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp28_ = _tmp27_; -#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp26_); -#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp29_ = _tmp28_; -#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp31_ = (NULL == _tmp29_) ? 0 : g_quark_from_string (_tmp29_); -#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_free (_tmp29_); -#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (_tmp31_ == ((0 != _tmp30_label0) ? _tmp30_label0 : (_tmp30_label0 = g_quark_from_static_string ("checkered")))) { -#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - switch (0) { -#line 715 "Preferences.c" - default: - { - GtkRadioButton* _tmp32_; -#line 96 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp32_ = self->priv->transparent_checker_radio; -#line 96 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 97 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - break; -#line 725 "Preferences.c" - } - } - } else if (_tmp31_ == ((0 != _tmp30_label1) ? _tmp30_label1 : (_tmp30_label1 = g_quark_from_static_string ("solid")))) { -#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - switch (0) { -#line 731 "Preferences.c" - default: - { - GtkRadioButton* _tmp33_; -#line 99 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp33_ = self->priv->transparent_solid_radio; -#line 99 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 100 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - break; -#line 741 "Preferences.c" - } - } - } else { -#line 94 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - switch (0) { -#line 747 "Preferences.c" - default: - { - GtkRadioButton* _tmp34_; -#line 102 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp34_ = self->priv->transparent_none_radio; -#line 102 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 103 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - break; -#line 757 "Preferences.c" - } - } - } -#line 111 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp35_ = resources_get_help_path (); -#line 111 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - help_path = _tmp35_; -#line 113 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp36_ = help_path; -#line 113 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (_tmp36_ == NULL) { -#line 769 "Preferences.c" - GtkLabel* _tmp37_; - gchar* _tmp38_; - gchar* _tmp39_; - gchar* _tmp40_; - gchar* _tmp41_; -#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp37_ = self->priv->pattern_help; -#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp38_ = g_strconcat ("", _ ("(Help)"), NULL); -#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp39_ = _tmp38_; -#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp40_ = g_strconcat (_tmp39_, "", NULL); -#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp41_ = _tmp40_; -#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_label_set_markup (_tmp37_, _tmp41_); -#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (_tmp41_); -#line 115 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (_tmp39_); -#line 791 "Preferences.c" - } else { - GtkLabel* _tmp42_; - gchar* _tmp43_; - gchar* _tmp44_; - gchar* _tmp45_; - gchar* _tmp46_; - GtkLabel* _tmp47_; -#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp42_ = self->priv->pattern_help; -#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp43_ = g_strconcat ("", _ ("(Help)"), NULL); -#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp44_ = _tmp43_; -#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp45_ = g_strconcat (_tmp44_, "", NULL); -#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp46_ = _tmp45_; -#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_label_set_markup (_tmp42_, _tmp46_); -#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (_tmp46_); -#line 119 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (_tmp44_); -#line 120 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp47_ = self->priv->pattern_help; -#line 120 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_signal_connect_object (_tmp47_, "activate-link", (GCallback) _preferences_dialog_on_local_pattern_help_gtk_label_activate_link, self, 0); -#line 819 "Preferences.c" - } -#line 123 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp48_ = g_strdup_printf (_ ("Year%sMonth%sDay"), G_DIR_SEPARATOR_S, G_DIR_SEPARATOR_S); -#line 123 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp49_ = _tmp48_; -#line 123 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_add_to_dir_formats (self, _tmp49_, "%Y" G_DIR_SEPARATOR_S "%m" G_DIR_SEPARATOR_S "%d"); -#line 123 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (_tmp49_); -#line 125 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp50_ = g_strdup_printf (_ ("Year%sMonth"), G_DIR_SEPARATOR_S); -#line 125 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp51_ = _tmp50_; -#line 125 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_add_to_dir_formats (self, _tmp51_, "%Y" G_DIR_SEPARATOR_S "%m"); -#line 125 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (_tmp51_); -#line 127 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp52_ = g_strdup_printf (_ ("Year%sMonth-Day"), G_DIR_SEPARATOR_S); -#line 127 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp53_ = _tmp52_; -#line 127 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_add_to_dir_formats (self, _tmp53_, "%Y" G_DIR_SEPARATOR_S "%m-%d"); -#line 127 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (_tmp53_); -#line 129 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_add_to_dir_formats (self, _ ("Year-Month-Day"), "%Y-%m-%d"); -#line 130 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_add_to_dir_formats (self, _ ("Custom"), NULL); -#line 131 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp54_ = self->priv->dir_pattern_combo; -#line 131 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _preferences_dialog_on_dir_pattern_combo_changed_gtk_combo_box_changed, self, 0); -#line 132 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp55_ = self->priv->dir_pattern_entry; -#line 132 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _preferences_dialog_on_dir_pattern_entry_changed_gtk_editable_changed, self, 0); -#line 134 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp56_ = self->priv->lowercase; -#line 134 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, gtk_toggle_button_get_type (), GtkToggleButton), "toggled", (GCallback) _preferences_dialog_on_lowercase_toggled_gtk_toggle_button_toggled, self, 0); -#line 136 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp57_ = self->priv->preferences_notebook; -#line 136 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp58_ = gtk_notebook_get_nth_page (_tmp57_, 2); -#line 136 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp59_ = self->priv->plugins_mediator; -#line 136 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_TYPE (_tmp58_, gtk_container_get_type ()) ? ((GtkContainer*) _tmp58_) : NULL, G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, gtk_widget_get_type (), GtkWidget)); -#line 138 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_populate_preference_options (self); -#line 140 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp60_ = self->priv->photo_editor_combo; -#line 140 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_signal_connect_object (_tmp60_, "changed", (GCallback) _preferences_dialog_on_photo_editor_changed_gtk_combo_box_changed, self, 0); -#line 141 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp61_ = self->priv->raw_editor_combo; -#line 141 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_signal_connect_object (_tmp61_, "changed", (GCallback) _preferences_dialog_on_raw_editor_changed_gtk_combo_box_changed, self, 0); -#line 143 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp62_ = self->priv->autoimport; -#line 143 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp63_ = config_facade_get_instance (); -#line 143 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp64_ = _tmp63_; -#line 143 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, gtk_toggle_button_get_type (), GtkToggleButton), configuration_facade_get_auto_import_from_library (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 143 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp64_); -#line 145 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp65_ = self->priv->write_metadata; -#line 145 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp66_ = config_facade_get_instance (); -#line 145 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp67_ = _tmp66_; -#line 145 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_toggle_button_get_type (), GtkToggleButton), configuration_facade_get_commit_metadata_to_masters (G_TYPE_CHECK_INSTANCE_CAST (_tmp67_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 145 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp67_); -#line 147 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp68_ = self->priv->default_raw_developer_combo; -#line 147 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp69_ = raw_developer_get_label (RAW_DEVELOPER_CAMERA); -#line 147 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp70_ = _tmp69_; -#line 147 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_combo_box_text_append_text (_tmp68_, _tmp70_); -#line 147 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (_tmp70_); -#line 148 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp71_ = self->priv->default_raw_developer_combo; -#line 148 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp72_ = raw_developer_get_label (RAW_DEVELOPER_SHOTWELL); -#line 148 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp73_ = _tmp72_; -#line 148 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_combo_box_text_append_text (_tmp71_, _tmp73_); -#line 148 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (_tmp73_); -#line 149 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp74_ = config_facade_get_instance (); -#line 149 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp75_ = _tmp74_; -#line 149 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_set_raw_developer_combo (self, configuration_facade_get_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 149 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp75_); -#line 150 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp76_ = self->priv->default_raw_developer_combo; -#line 150 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _preferences_dialog_on_default_raw_developer_changed_gtk_combo_box_changed, self, 0); -#line 67 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (help_path); -#line 67 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return self; -#line 935 "Preferences.c" -} - - -static PreferencesDialog* -preferences_dialog_new (void) -{ -#line 67 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return preferences_dialog_construct (TYPE_PREFERENCES_DIALOG); -#line 944 "Preferences.c" -} - - -void -preferences_dialog_populate_preference_options (PreferencesDialog* self) -{ - GtkComboBox* _tmp0_; - gint _tmp1_; - gchar** _tmp2_; - gchar** _tmp3_; - gint _tmp3__length1; - ConfigFacade* _tmp4_; - ConfigFacade* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - SortedList* _tmp8_ = NULL; - GtkComboBox* _tmp9_; - gint _tmp10_; - gchar** _tmp11_; - gchar** _tmp12_; - gint _tmp12__length1; - ConfigFacade* _tmp13_; - ConfigFacade* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - SortedList* _tmp17_ = NULL; - GtkComboBoxText* _tmp18_; - GtkEntry* _tmp19_; - GtkCheckButton* _tmp20_; - ConfigFacade* _tmp21_; - ConfigFacade* _tmp22_; -#line 153 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = self->priv->photo_editor_combo; -#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp2_ = photo_file_format_get_editable_mime_types (&_tmp1_); -#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp3_ = _tmp2_; -#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp3__length1 = _tmp1_; -#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp4_ = config_facade_get_instance (); -#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp5_ = _tmp4_; -#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp6_ = configuration_facade_get_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp7_ = _tmp6_; -#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_populate_app_combo_box (self, _tmp0_, _tmp3_, _tmp1_, _tmp7_, &_tmp8_); -#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->external_photo_apps); -#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self->priv->external_photo_apps = _tmp8_; -#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (_tmp7_); -#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp5_); -#line 154 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) g_free), NULL); -#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp9_ = self->priv->raw_editor_combo; -#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp11_ = photo_file_format_get_mime_types (PHOTO_FILE_FORMAT_RAW, &_tmp10_); -#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp12_ = _tmp11_; -#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp12__length1 = _tmp10_; -#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp13_ = config_facade_get_instance (); -#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp14_ = _tmp13_; -#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp15_ = configuration_facade_get_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp16_ = _tmp15_; -#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_populate_app_combo_box (self, _tmp9_, _tmp12_, _tmp10_, _tmp16_, &_tmp17_); -#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->external_raw_apps); -#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self->priv->external_raw_apps = _tmp17_; -#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (_tmp16_); -#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp14_); -#line 157 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp12_ = (_vala_array_free (_tmp12_, _tmp12__length1, (GDestroyNotify) g_free), NULL); -#line 160 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp18_ = self->priv->dir_pattern_combo; -#line 160 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp19_ = self->priv->dir_pattern_entry; -#line 160 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_setup_dir_pattern (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_combo_box_get_type (), GtkComboBox), _tmp19_); -#line 162 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp20_ = self->priv->lowercase; -#line 162 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp21_ = config_facade_get_instance (); -#line 162 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp22_ = _tmp21_; -#line 162 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_toggle_button_get_type (), GtkToggleButton), configuration_facade_get_use_lowercase_filenames (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 162 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp22_); -#line 1050 "Preferences.c" -} - - -static void -preferences_dialog_on_radio_changed (PreferencesDialog* self) -{ - ConfigFacade* config = NULL; - ConfigFacade* _tmp0_; - GtkRadioButton* _tmp1_; - gboolean _tmp2_; - gboolean _tmp3_; -#line 165 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 166 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = config_facade_get_instance (); -#line 166 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - config = _tmp0_; -#line 168 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = self->priv->transparent_checker_radio; -#line 168 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp2_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 168 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp3_ = _tmp2_; -#line 168 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (_tmp3_) { -#line 1076 "Preferences.c" - ConfigFacade* _tmp4_; -#line 169 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp4_ = config; -#line 169 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - configuration_facade_set_transparent_background_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "checkered"); -#line 1082 "Preferences.c" - } else { - GtkRadioButton* _tmp5_; - gboolean _tmp6_; - gboolean _tmp7_; -#line 170 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp5_ = self->priv->transparent_solid_radio; -#line 170 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp6_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 170 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp7_ = _tmp6_; -#line 170 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (_tmp7_) { -#line 1095 "Preferences.c" - ConfigFacade* _tmp8_; -#line 171 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp8_ = config; -#line 171 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - configuration_facade_set_transparent_background_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "solid"); -#line 1101 "Preferences.c" - } else { - ConfigFacade* _tmp9_; -#line 173 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp9_ = config; -#line 173 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - configuration_facade_set_transparent_background_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "none"); -#line 1108 "Preferences.c" - } - } -#line 165 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (config); -#line 1113 "Preferences.c" -} - - -static void -preferences_dialog_on_color_changed (PreferencesDialog* self) -{ - gchar* color = NULL; - GtkColorButton* _tmp0_; - GdkRGBA _tmp1_ = {0}; - GdkRGBA _tmp2_; - gchar* _tmp3_; - ConfigFacade* _tmp4_; - ConfigFacade* _tmp5_; -#line 177 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 178 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = self->priv->transparent_solid_color; -#line 178 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_color_chooser_get_rgba (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, gtk_color_chooser_get_type ()) ? ((GtkColorChooser*) _tmp0_) : NULL, &_tmp1_); -#line 178 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp2_ = _tmp1_; -#line 178 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp3_ = gdk_rgba_to_string (&_tmp2_); -#line 178 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - color = _tmp3_; -#line 179 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp4_ = config_facade_get_instance (); -#line 179 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp5_ = _tmp4_; -#line 179 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - configuration_facade_set_transparent_background_color (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), color); -#line 179 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp5_); -#line 177 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (color); -#line 1149 "Preferences.c" -} - - -static gboolean -preferences_dialog_on_local_pattern_help (PreferencesDialog* self, - const gchar* ignore) -{ - gboolean result = FALSE; - GError * _inner_error_ = NULL; -#line 184 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_val_if_fail (IS_PREFERENCES_DIALOG (self), FALSE); -#line 184 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_val_if_fail (ignore != NULL, FALSE); -#line 1163 "Preferences.c" - { - AppWindow* _tmp0_; - AppWindow* _tmp1_; - GdkScreen* _tmp2_; -#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = app_window_get_instance (); -#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = _tmp0_; -#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp2_ = gtk_window_get_screen (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow)); -#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - resources_launch_help (_tmp2_, "other-files.page", &_inner_error_); -#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp1_); -#line 186 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1180 "Preferences.c" - goto __catch22_g_error; - } - } - goto __finally22; - __catch22_g_error: - { - GError* e = NULL; - GError* _tmp3_; - const gchar* _tmp4_; -#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - e = _inner_error_; -#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _inner_error_ = NULL; -#line 188 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp3_ = e; -#line 188 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp4_ = _tmp3_->message; -#line 188 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_message ("Preferences.vala:188: Unable to launch help: %s", _tmp4_); -#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_error_free0 (e); -#line 1202 "Preferences.c" - } - __finally22: -#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1207 "Preferences.c" - gboolean _tmp5_ = FALSE; -#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_clear_error (&_inner_error_); -#line 185 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return _tmp5_; -#line 1215 "Preferences.c" - } -#line 190 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - result = TRUE; -#line 190 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return result; -#line 1221 "Preferences.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 220 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return self ? g_object_ref (self) : NULL; -#line 1230 "Preferences.c" -} - - -static void -preferences_dialog_populate_app_combo_box (PreferencesDialog* self, - GtkComboBox* combo_box, - gchar** mime_types, - int mime_types_length1, - const gchar* current_app_executable, - SortedList* * external_apps) -{ - SortedList* _vala_external_apps = NULL; - SortedList* _tmp0_; - SortedList* _tmp1_; - gint _tmp2_; - gint _tmp3_; - GtkCellRendererPixbuf* pixbuf_renderer = NULL; - GtkCellRendererPixbuf* _tmp4_; - GtkCellRendererText* text_renderer = NULL; - GtkCellRendererText* _tmp5_; - GtkCellRendererPixbuf* _tmp6_; - GtkCellRendererText* _tmp7_; - GtkCellRendererPixbuf* _tmp8_; - GtkCellRendererText* _tmp9_; - GtkListStore* combo_store = NULL; - GtkListStore* _tmp10_; - GtkTreeIter iter = {0}; - gint current_app = 0; - GtkListStore* _tmp57_; - gint _tmp58_; - GError * _inner_error_ = NULL; -#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (GTK_IS_COMBO_BOX (combo_box)); -#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (current_app_executable != NULL); -#line 196 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _vala_assert (mime_types_length1 != 0, "mime_types.length != 0"); -#line 197 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = desktop_integration_get_apps_for_mime_types (mime_types, mime_types_length1); -#line 197 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_vala_external_apps); -#line 197 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _vala_external_apps = _tmp0_; -#line 199 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = _vala_external_apps; -#line 199 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 199 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp3_ = _tmp2_; -#line 199 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (_tmp3_ == 0) { -#line 200 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (external_apps) { -#line 200 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - *external_apps = _vala_external_apps; -#line 1288 "Preferences.c" - } else { -#line 200 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_vala_external_apps); -#line 1292 "Preferences.c" - } -#line 200 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return; -#line 1296 "Preferences.c" - } -#line 203 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp4_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new (); -#line 203 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_object_ref_sink (_tmp4_); -#line 203 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - pixbuf_renderer = _tmp4_; -#line 204 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp5_ = (GtkCellRendererText*) gtk_cell_renderer_text_new (); -#line 204 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_object_ref_sink (_tmp5_); -#line 204 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - text_renderer = _tmp5_; -#line 205 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_cell_layout_clear (G_TYPE_CHECK_INSTANCE_CAST (combo_box, gtk_cell_layout_get_type (), GtkCellLayout)); -#line 206 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp6_ = pixbuf_renderer; -#line 206 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (combo_box, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_cell_renderer_get_type (), GtkCellRenderer), FALSE); -#line 207 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp7_ = text_renderer; -#line 207 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (combo_box, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_cell_renderer_get_type (), GtkCellRenderer), FALSE); -#line 208 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp8_ = pixbuf_renderer; -#line 208 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (combo_box, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_cell_renderer_get_type (), GtkCellRenderer), "pixbuf", 0); -#line 209 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp9_ = text_renderer; -#line 209 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (combo_box, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_cell_renderer_get_type (), GtkCellRenderer), "text", 1); -#line 212 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp10_ = gtk_list_store_new (2, gdk_pixbuf_get_type (), G_TYPE_STRING, -1); -#line 212 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - combo_store = _tmp10_; -#line 215 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - current_app = -1; -#line 1334 "Preferences.c" - { - GeeIterator* _app_it = NULL; - SortedList* _tmp11_; - GeeIterator* _tmp12_; -#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp11_ = _vala_external_apps; -#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _app_it = _tmp12_; -#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - while (TRUE) { -#line 1347 "Preferences.c" - GeeIterator* _tmp13_; - GAppInfo* app = NULL; - GeeIterator* _tmp14_; - gpointer _tmp15_; - GtkListStore* _tmp16_; - GtkTreeIter _tmp17_ = {0}; - GIcon* app_icon = NULL; - GAppInfo* _tmp18_; - GIcon* _tmp19_; - GIcon* _tmp20_; - GtkListStore* _tmp48_; - GtkTreeIter _tmp49_; - GAppInfo* _tmp50_; - const gchar* _tmp51_; - GValue _tmp52_ = {0}; - GAppInfo* _tmp53_; - const gchar* _tmp54_; -#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp13_ = _app_it; -#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (!gee_iterator_next (_tmp13_)) { -#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - break; -#line 1371 "Preferences.c" - } -#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp14_ = _app_it; -#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp15_ = gee_iterator_get (_tmp14_); -#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - app = (GAppInfo*) _tmp15_; -#line 218 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp16_ = combo_store; -#line 218 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_list_store_append (_tmp16_, &_tmp17_); -#line 218 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - iter = _tmp17_; -#line 220 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp18_ = app; -#line 220 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp19_ = g_app_info_get_icon (_tmp18_); -#line 220 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp20_ = _g_object_ref0 (_tmp19_); -#line 220 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - app_icon = _tmp20_; -#line 1393 "Preferences.c" - { - GIcon* _tmp21_; -#line 222 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp21_ = app_icon; -#line 222 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, g_file_icon_get_type ())) { -#line 1400 "Preferences.c" - GdkPixbuf* _tmp22_ = NULL; - GIcon* _tmp23_; - GFile* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - GdkPixbuf* _tmp27_; - GdkPixbuf* _tmp28_; - GtkListStore* _tmp29_; - GtkTreeIter _tmp30_; - GdkPixbuf* _tmp31_; - GValue _tmp32_ = {0}; -#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp23_ = app_icon; -#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp24_ = g_file_icon_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, g_file_icon_get_type (), GFileIcon)); -#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp25_ = g_file_get_path (_tmp24_); -#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp26_ = _tmp25_; -#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp27_ = gdk_pixbuf_new_from_file (_tmp26_, &_inner_error_); -#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp28_ = _tmp27_; -#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (_tmp26_); -#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp22_ = _tmp28_; -#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1430 "Preferences.c" - goto __catch23_g_error; - } -#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp29_ = combo_store; -#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp30_ = iter; -#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp31_ = scale_pixbuf (_tmp22_, RESOURCES_DEFAULT_ICON_SCALE, GDK_INTERP_BILINEAR, FALSE); -#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_value_init (&_tmp32_, gdk_pixbuf_get_type ()); -#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_value_take_object (&_tmp32_, _tmp31_); -#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_list_store_set_value (_tmp29_, &_tmp30_, 0, &_tmp32_); -#line 223 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - G_IS_VALUE (&_tmp32_) ? (g_value_unset (&_tmp32_), NULL) : NULL; -#line 222 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp22_); -#line 1449 "Preferences.c" - } else { - GIcon* _tmp33_; -#line 226 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp33_ = app_icon; -#line 226 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp33_, g_themed_icon_get_type ())) { -#line 1456 "Preferences.c" - GdkPixbuf* icon_pixbuf = NULL; - GtkIconTheme* _tmp34_; - GIcon* _tmp35_; - gchar** _tmp36_; - gchar** _tmp37_; - const gchar* _tmp38_; - GdkPixbuf* _tmp39_; - GtkListStore* _tmp40_; - GtkTreeIter _tmp41_; - GdkPixbuf* _tmp42_; - GValue _tmp43_ = {0}; -#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp34_ = gtk_icon_theme_get_default (); -#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp35_ = app_icon; -#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp37_ = _tmp36_ = g_themed_icon_get_names (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, g_themed_icon_get_type (), GThemedIcon)); -#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp38_ = _tmp37_[0]; -#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp39_ = gtk_icon_theme_load_icon (_tmp34_, _tmp38_, RESOURCES_DEFAULT_ICON_SCALE, GTK_ICON_LOOKUP_FORCE_SIZE, &_inner_error_); -#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - icon_pixbuf = _tmp39_; -#line 227 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1482 "Preferences.c" - goto __catch23_g_error; - } -#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp40_ = combo_store; -#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp41_ = iter; -#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp42_ = icon_pixbuf; -#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_value_init (&_tmp43_, gdk_pixbuf_get_type ()); -#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_value_set_object (&_tmp43_, _tmp42_); -#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_list_store_set_value (_tmp40_, &_tmp41_, 0, &_tmp43_); -#line 231 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - G_IS_VALUE (&_tmp43_) ? (g_value_unset (&_tmp43_), NULL) : NULL; -#line 226 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (icon_pixbuf); -#line 1501 "Preferences.c" - } - } - } - goto __finally23; - __catch23_g_error: - { - GError* _error_ = NULL; - GError* _tmp44_; - const gchar* _tmp45_; - gchar* _tmp46_; - gchar* _tmp47_; -#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _error_ = _inner_error_; -#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _inner_error_ = NULL; -#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp44_ = _error_; -#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp45_ = _tmp44_->message; -#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp46_ = g_strconcat ("Error loading icon pixbuf: ", _tmp45_, NULL); -#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp47_ = _tmp46_; -#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_warning ("Preferences.vala:234: %s", _tmp47_); -#line 234 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (_tmp47_); -#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_error_free0 (_error_); -#line 1531 "Preferences.c" - } - __finally23: -#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (app_icon); -#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (app); -#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_app_it); -#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (combo_store); -#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (text_renderer); -#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (pixbuf_renderer); -#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_clear_error (&_inner_error_); -#line 221 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return; -#line 1554 "Preferences.c" - } -#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp48_ = combo_store; -#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp49_ = iter; -#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp50_ = app; -#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp51_ = g_app_info_get_name (_tmp50_); -#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_value_init (&_tmp52_, G_TYPE_STRING); -#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_value_set_string (&_tmp52_, _tmp51_); -#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_list_store_set_value (_tmp48_, &_tmp49_, 1, &_tmp52_); -#line 237 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - G_IS_VALUE (&_tmp52_) ? (g_value_unset (&_tmp52_), NULL) : NULL; -#line 239 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp53_ = app; -#line 239 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp54_ = g_app_info_get_commandline (_tmp53_); -#line 239 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (g_strcmp0 (_tmp54_, current_app_executable) == 0) { -#line 1578 "Preferences.c" - SortedList* _tmp55_; - GAppInfo* _tmp56_; -#line 240 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp55_ = _vala_external_apps; -#line 240 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp56_ = app; -#line 240 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - current_app = sorted_list_index_of (_tmp55_, _tmp56_); -#line 1587 "Preferences.c" - } -#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (app_icon); -#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (app); -#line 1593 "Preferences.c" - } -#line 217 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_app_it); -#line 1597 "Preferences.c" - } -#line 245 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp57_ = combo_store; -#line 245 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_combo_box_set_model (combo_box, G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_tree_model_get_type (), GtkTreeModel)); -#line 247 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp58_ = current_app; -#line 247 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (_tmp58_ != -1) { -#line 1607 "Preferences.c" - gint _tmp59_; -#line 248 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp59_ = current_app; -#line 248 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_combo_box_set_active (combo_box, _tmp59_); -#line 1613 "Preferences.c" - } -#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (combo_store); -#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (text_renderer); -#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (pixbuf_renderer); -#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (external_apps) { -#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - *external_apps = _vala_external_apps; -#line 1625 "Preferences.c" - } else { -#line 193 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_vala_external_apps); -#line 1629 "Preferences.c" - } -} - - -static void -preferences_dialog_setup_dir_pattern (PreferencesDialog* self, - GtkComboBox* combo_box, - GtkEntry* entry) -{ - gchar* pattern = NULL; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gboolean found = FALSE; - const gchar* _tmp4_; - gboolean _tmp29_; -#line 251 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 251 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (GTK_IS_COMBO_BOX (combo_box)); -#line 251 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (GTK_IS_ENTRY (entry)); -#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = config_facade_get_instance (); -#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = _tmp0_; -#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp2_ = configuration_facade_get_directory_pattern (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp3_ = _tmp2_; -#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp1_); -#line 252 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - pattern = _tmp3_; -#line 253 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - found = FALSE; -#line 254 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp4_ = pattern; -#line 254 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (NULL != _tmp4_) { -#line 1671 "Preferences.c" - gint i = 0; -#line 256 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - i = 0; -#line 1675 "Preferences.c" - { - GeeArrayList* _pf_list = NULL; - GeeArrayList* _tmp5_; - GeeArrayList* _tmp6_; - gint _pf_size = 0; - GeeArrayList* _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint _pf_index = 0; -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp5_ = self->priv->path_formats; -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp6_ = _g_object_ref0 (_tmp5_); -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _pf_list = _tmp6_; -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp7_ = _pf_list; -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp8_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp9_ = _tmp8_; -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _pf_size = _tmp9_; -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _pf_index = -1; -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - while (TRUE) { -#line 1703 "Preferences.c" - gint _tmp10_; - gint _tmp11_; - gint _tmp12_; - PreferencesDialogPathFormat* pf = NULL; - GeeArrayList* _tmp13_; - gint _tmp14_; - gpointer _tmp15_; - PreferencesDialogPathFormat* _tmp16_; - const gchar* _tmp17_; - const gchar* _tmp18_; - gint _tmp20_; -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp10_ = _pf_index; -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _pf_index = _tmp10_ + 1; -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp11_ = _pf_index; -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp12_ = _pf_size; -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (!(_tmp11_ < _tmp12_)) { -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - break; -#line 1727 "Preferences.c" - } -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp13_ = _pf_list; -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp14_ = _pf_index; -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp15_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp14_); -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - pf = (PreferencesDialogPathFormat*) _tmp15_; -#line 258 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp16_ = pf; -#line 258 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp17_ = _tmp16_->pattern; -#line 258 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp18_ = pattern; -#line 258 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (g_strcmp0 (_tmp17_, _tmp18_) == 0) { -#line 1745 "Preferences.c" - gint _tmp19_; -#line 259 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp19_ = i; -#line 259 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_combo_box_set_active (combo_box, _tmp19_); -#line 260 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - found = TRUE; -#line 261 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _preferences_dialog_path_format_unref0 (pf); -#line 261 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - break; -#line 1757 "Preferences.c" - } -#line 263 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp20_ = i; -#line 263 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - i = _tmp20_ + 1; -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _preferences_dialog_path_format_unref0 (pf); -#line 1765 "Preferences.c" - } -#line 257 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_pf_list); -#line 1769 "Preferences.c" - } - } else { - gchar* s = NULL; - ConfigFacade* _tmp21_; - ConfigFacade* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - const gchar* _tmp25_; -#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp21_ = config_facade_get_instance (); -#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp22_ = _tmp21_; -#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp23_ = configuration_facade_get_directory_pattern_custom (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp24_ = _tmp23_; -#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp22_); -#line 267 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - s = _tmp24_; -#line 268 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp25_ = s; -#line 268 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (!is_string_empty (_tmp25_)) { -#line 1794 "Preferences.c" - GeeArrayList* _tmp26_; - gint _tmp27_; - gint _tmp28_; -#line 269 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp26_ = self->priv->path_formats; -#line 269 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp27_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 269 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp28_ = _tmp27_; -#line 269 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_combo_box_set_active (combo_box, _tmp28_ - 1); -#line 270 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - found = TRUE; -#line 1808 "Preferences.c" - } -#line 254 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (s); -#line 1812 "Preferences.c" - } -#line 274 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp29_ = found; -#line 274 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (!_tmp29_) { -#line 275 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_combo_box_set_active (combo_box, 0); -#line 1820 "Preferences.c" - } -#line 278 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_on_dir_pattern_combo_changed (self); -#line 251 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (pattern); -#line 1826 "Preferences.c" -} - - -void -preferences_dialog_show_preferences (void) -{ - PreferencesDialog* _tmp0_; - PreferencesDialog* _tmp2_; - PreferencesDialog* _tmp3_; - PreferencesDialog* _tmp4_; - GtkFileChooserButton* _tmp5_; - GFile* _tmp6_; - GFile* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - PreferencesDialog* _tmp10_; -#line 282 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = preferences_dialog_preferences_dialog; -#line 282 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (_tmp0_ == NULL) { -#line 1847 "Preferences.c" - PreferencesDialog* _tmp1_; -#line 283 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = preferences_dialog_new (); -#line 283 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_object_ref_sink (_tmp1_); -#line 283 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (preferences_dialog_preferences_dialog); -#line 283 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_preferences_dialog = _tmp1_; -#line 1857 "Preferences.c" - } -#line 285 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp2_ = preferences_dialog_preferences_dialog; -#line 285 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_populate_preference_options (_tmp2_); -#line 286 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp3_ = preferences_dialog_preferences_dialog; -#line 286 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget)); -#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp4_ = preferences_dialog_preferences_dialog; -#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp5_ = _tmp4_->priv->library_dir_button; -#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp6_ = app_dirs_get_import_dir (); -#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp7_ = _tmp6_; -#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp8_ = g_file_get_path (_tmp7_); -#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp9_ = _tmp8_; -#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_file_chooser_set_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_file_chooser_get_type (), GtkFileChooser), _tmp9_); -#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (_tmp9_); -#line 287 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp7_); -#line 291 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp10_ = preferences_dialog_preferences_dialog; -#line 291 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_window_present (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_window_get_type (), GtkWindow)); -#line 1889 "Preferences.c" -} - - -static void -preferences_dialog_commit_on_close (PreferencesDialog* self) -{ - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - ConfigFacade* _tmp2_; - ConfigFacade* _tmp3_; - GtkCheckButton* _tmp4_; - gboolean _tmp5_; - gboolean _tmp6_; - ConfigFacade* _tmp7_; - ConfigFacade* _tmp8_; - GtkCheckButton* _tmp9_; - gboolean _tmp10_; - gboolean _tmp11_; - const gchar* _tmp12_; - PreferencesDialogPathFormat* pf = NULL; - GeeArrayList* _tmp14_; - GtkComboBoxText* _tmp15_; - gpointer _tmp16_; - PreferencesDialogPathFormat* _tmp17_; - const gchar* _tmp18_; -#line 296 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 297 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = config_facade_get_instance (); -#line 297 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = _tmp0_; -#line 297 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - config_facade_commit_bg_color (_tmp1_); -#line 297 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp1_); -#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp2_ = config_facade_get_instance (); -#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp3_ = _tmp2_; -#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp4_ = self->priv->autoimport; -#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp5_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp6_ = _tmp5_; -#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - configuration_facade_set_auto_import_from_library (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp6_); -#line 298 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp3_); -#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp7_ = config_facade_get_instance (); -#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp8_ = _tmp7_; -#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp9_ = self->priv->write_metadata; -#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp10_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp11_ = _tmp10_; -#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - configuration_facade_set_commit_metadata_to_masters (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp11_); -#line 299 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp8_); -#line 301 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp12_ = self->priv->lib_dir; -#line 301 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (_tmp12_ != NULL) { -#line 1957 "Preferences.c" - const gchar* _tmp13_; -#line 302 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp13_ = self->priv->lib_dir; -#line 302 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - app_dirs_set_import_dir (_tmp13_); -#line 1963 "Preferences.c" - } -#line 304 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp14_ = self->priv->path_formats; -#line 304 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp15_ = self->priv->dir_pattern_combo; -#line 304 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp16_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_combo_box_get_type (), GtkComboBox))); -#line 304 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - pf = (PreferencesDialogPathFormat*) _tmp16_; -#line 305 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp17_ = pf; -#line 305 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp18_ = _tmp17_->pattern; -#line 305 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (NULL == _tmp18_) { -#line 1979 "Preferences.c" - ConfigFacade* _tmp19_; - ConfigFacade* _tmp20_; - GtkEntry* _tmp21_; - const gchar* _tmp22_; - const gchar* _tmp23_; - ConfigFacade* _tmp24_; - ConfigFacade* _tmp25_; -#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp19_ = config_facade_get_instance (); -#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp20_ = _tmp19_; -#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp21_ = self->priv->dir_pattern_entry; -#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp22_ = gtk_entry_get_text (_tmp21_); -#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp23_ = _tmp22_; -#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - configuration_facade_set_directory_pattern_custom (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp23_); -#line 306 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp20_); -#line 307 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp24_ = config_facade_get_instance (); -#line 307 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp25_ = _tmp24_; -#line 307 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - configuration_facade_set_directory_pattern (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), NULL); -#line 307 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp25_); -#line 2009 "Preferences.c" - } else { - ConfigFacade* _tmp26_; - ConfigFacade* _tmp27_; - PreferencesDialogPathFormat* _tmp28_; - const gchar* _tmp29_; -#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp26_ = config_facade_get_instance (); -#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp27_ = _tmp26_; -#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp28_ = pf; -#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp29_ = _tmp28_->pattern; -#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - configuration_facade_set_directory_pattern (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp29_); -#line 309 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp27_); -#line 2027 "Preferences.c" - } -#line 296 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _preferences_dialog_path_format_unref0 (pf); -#line 2031 "Preferences.c" -} - - -static gboolean -preferences_dialog_on_delete (PreferencesDialog* self) -{ - gboolean result = FALSE; -#line 313 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_val_if_fail (IS_PREFERENCES_DIALOG (self), FALSE); -#line 314 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (!preferences_dialog_get_allow_closing (self)) { -#line 315 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - result = TRUE; -#line 315 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return result; -#line 2047 "Preferences.c" - } -#line 317 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_commit_on_close (self); -#line 318 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - result = gtk_widget_hide_on_delete (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 318 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return result; -#line 2055 "Preferences.c" -} - - -static void -preferences_dialog_on_close (PreferencesDialog* self) -{ -#line 321 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 322 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (!preferences_dialog_get_allow_closing (self)) { -#line 323 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return; -#line 2068 "Preferences.c" - } -#line 325 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 326 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_commit_on_close (self); -#line 2074 "Preferences.c" -} - - -static void -preferences_dialog_on_value_changed (PreferencesDialog* self) -{ - GtkAdjustment* _tmp0_; - GtkAdjustment* _tmp1_; -#line 329 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 330 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = self->priv->bg_color_adjustment; -#line 330 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = self->priv->bg_color_adjustment; -#line 330 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_set_background_color (self, ((gdouble) (gtk_adjustment_get_upper (_tmp0_) - gtk_adjustment_get_value (_tmp1_))) / 65535.0); -#line 2091 "Preferences.c" -} - - -static gboolean -preferences_dialog_on_bg_color_reset (PreferencesDialog* self, - GdkEventButton* event) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - guint _tmp2_; -#line 334 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_val_if_fail (IS_PREFERENCES_DIALOG (self), FALSE); -#line 334 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp2_ = event->button; -#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (_tmp2_ == ((guint) 1)) { -#line 2111 "Preferences.c" - GdkEventType _tmp3_; -#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp3_ = event->type; -#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = _tmp3_ == GDK_BUTTON_PRESS; -#line 2117 "Preferences.c" - } else { -#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = FALSE; -#line 2121 "Preferences.c" - } -#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (_tmp1_) { -#line 2125 "Preferences.c" - GdkModifierType _tmp4_; -#line 336 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp4_ = event->state; -#line 336 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = has_only_key_modifier (_tmp4_, GDK_CONTROL_MASK); -#line 2131 "Preferences.c" - } else { -#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = FALSE; -#line 2135 "Preferences.c" - } -#line 335 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (_tmp0_) { -#line 2139 "Preferences.c" - GtkScale* _tmp5_; - GtkAdjustment* _tmp6_; - GdkRGBA _tmp7_ = {0}; - gdouble _tmp8_; -#line 338 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp5_ = self->priv->bg_color_slider; -#line 338 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp6_ = self->priv->bg_color_adjustment; -#line 338 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - parse_color (CONFIG_FACADE_DEFAULT_BG_COLOR, &_tmp7_); -#line 338 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp8_ = _tmp7_.red; -#line 338 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_range_get_type (), GtkRange), gtk_adjustment_get_upper (_tmp6_) - (_tmp8_ * 65536.0f)); -#line 340 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_on_value_changed (self); -#line 342 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - result = TRUE; -#line 342 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return result; -#line 2160 "Preferences.c" - } -#line 345 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - result = FALSE; -#line 345 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return result; -#line 2166 "Preferences.c" -} - - -static void -preferences_dialog_on_dir_pattern_combo_changed (PreferencesDialog* self) -{ - PreferencesDialogPathFormat* pf = NULL; - GeeArrayList* _tmp0_; - GtkComboBoxText* _tmp1_; - gpointer _tmp2_; - PreferencesDialogPathFormat* _tmp3_; - const gchar* _tmp4_; -#line 348 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 349 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = self->priv->path_formats; -#line 349 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = self->priv->dir_pattern_combo; -#line 349 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp2_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))); -#line 349 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - pf = (PreferencesDialogPathFormat*) _tmp2_; -#line 350 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp3_ = pf; -#line 350 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp4_ = _tmp3_->pattern; -#line 350 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (NULL == _tmp4_) { -#line 2195 "Preferences.c" - gchar* dir_pattern = NULL; - ConfigFacade* _tmp5_; - ConfigFacade* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - const gchar* _tmp9_; - GtkEntry* _tmp11_; - const gchar* _tmp12_; - GtkEntry* _tmp13_; - GtkEntry* _tmp14_; -#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp5_ = config_facade_get_instance (); -#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp6_ = _tmp5_; -#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp7_ = configuration_facade_get_directory_pattern_custom (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp8_ = _tmp7_; -#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp6_); -#line 352 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - dir_pattern = _tmp8_; -#line 353 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp9_ = dir_pattern; -#line 353 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (is_string_empty (_tmp9_)) { -#line 2222 "Preferences.c" - gchar* _tmp10_; -#line 354 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp10_ = g_strdup (""); -#line 354 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (dir_pattern); -#line 354 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - dir_pattern = _tmp10_; -#line 2230 "Preferences.c" - } -#line 355 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp11_ = self->priv->dir_pattern_entry; -#line 355 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp12_ = dir_pattern; -#line 355 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_entry_set_text (_tmp11_, _tmp12_); -#line 356 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp13_ = self->priv->dir_pattern_entry; -#line 356 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_object_set (_tmp13_, "editable", TRUE, NULL); -#line 357 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp14_ = self->priv->dir_pattern_entry; -#line 357 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 350 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (dir_pattern); -#line 2248 "Preferences.c" - } else { - GtkEntry* _tmp15_; - PreferencesDialogPathFormat* _tmp16_; - const gchar* _tmp17_; - GtkEntry* _tmp18_; - GtkEntry* _tmp19_; -#line 359 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp15_ = self->priv->dir_pattern_entry; -#line 359 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp16_ = pf; -#line 359 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp17_ = _tmp16_->pattern; -#line 359 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_entry_set_text (_tmp15_, _tmp17_); -#line 360 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp18_ = self->priv->dir_pattern_entry; -#line 360 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_object_set (_tmp18_, "editable", FALSE, NULL); -#line 361 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp19_ = self->priv->dir_pattern_entry; -#line 361 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 2271 "Preferences.c" - } -#line 348 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _preferences_dialog_path_format_unref0 (pf); -#line 2275 "Preferences.c" -} - - -static void -preferences_dialog_on_dir_pattern_entry_changed (PreferencesDialog* self) -{ - gchar* example = NULL; - GDateTime* _tmp0_; - GtkEntry* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - gboolean _tmp5_ = FALSE; - const gchar* _tmp6_; -#line 365 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = self->priv->example_date; -#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = self->priv->dir_pattern_entry; -#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp2_ = gtk_entry_get_text (_tmp1_); -#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp3_ = _tmp2_; -#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp4_ = g_date_time_format (_tmp0_, _tmp3_); -#line 366 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - example = _tmp4_; -#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp6_ = example; -#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (is_string_empty (_tmp6_)) { -#line 2308 "Preferences.c" - GtkEntry* _tmp7_; - const gchar* _tmp8_; - const gchar* _tmp9_; -#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp7_ = self->priv->dir_pattern_entry; -#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp8_ = gtk_entry_get_text (_tmp7_); -#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp9_ = _tmp8_; -#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp5_ = !is_string_empty (_tmp9_); -#line 2320 "Preferences.c" - } else { -#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp5_ = FALSE; -#line 2324 "Preferences.c" - } -#line 367 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (_tmp5_) { -#line 2328 "Preferences.c" - GtkLabel* _tmp10_; - GtkEntry* _tmp11_; - GtkEntry* _tmp12_; -#line 369 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp10_ = self->priv->dir_pattern_example; -#line 369 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_label_set_text (_tmp10_, _ ("Invalid pattern")); -#line 370 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp11_ = self->priv->dir_pattern_entry; -#line 370 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_entry_set_icon_from_icon_name (_tmp11_, GTK_ENTRY_ICON_SECONDARY, "dialog-error"); -#line 371 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp12_ = self->priv->dir_pattern_entry; -#line 371 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_entry_set_icon_activatable (_tmp12_, GTK_ENTRY_ICON_SECONDARY, FALSE); -#line 372 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_set_allow_closing (self, FALSE); -#line 2346 "Preferences.c" - } else { - GtkLabel* _tmp13_; - const gchar* _tmp14_; - GtkEntry* _tmp15_; -#line 375 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp13_ = self->priv->dir_pattern_example; -#line 375 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp14_ = example; -#line 375 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_label_set_text (_tmp13_, _tmp14_); -#line 376 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp15_ = self->priv->dir_pattern_entry; -#line 376 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_entry_set_icon_from_icon_name (_tmp15_, GTK_ENTRY_ICON_SECONDARY, NULL); -#line 377 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_set_allow_closing (self, TRUE); -#line 2363 "Preferences.c" - } -#line 365 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (example); -#line 2367 "Preferences.c" -} - - -static void -preferences_dialog_set_allow_closing (PreferencesDialog* self, - gboolean allow) -{ -#line 381 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 382 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_window_set_deletable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), allow); -#line 383 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self->priv->allow_closing = allow; -#line 2381 "Preferences.c" -} - - -static gboolean -preferences_dialog_get_allow_closing (PreferencesDialog* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 386 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_val_if_fail (IS_PREFERENCES_DIALOG (self), FALSE); -#line 387 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = self->priv->allow_closing; -#line 387 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - result = _tmp0_; -#line 387 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return result; -#line 2398 "Preferences.c" -} - - -static void -preferences_dialog_set_background_color (PreferencesDialog* self, - gdouble bg_color_value) -{ - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - GdkRGBA _tmp2_ = {0}; -#line 390 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 391 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = config_facade_get_instance (); -#line 391 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = _tmp0_; -#line 391 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_to_grayscale (self, bg_color_value, &_tmp2_); -#line 391 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - config_facade_set_bg_color (_tmp1_, &_tmp2_); -#line 391 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp1_); -#line 2421 "Preferences.c" -} - - -static void -preferences_dialog_to_grayscale (PreferencesDialog* self, - gdouble color_value, - GdkRGBA* result) -{ - GdkRGBA color = {0}; -#line 394 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 395 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - memset (&color, 0, sizeof (GdkRGBA)); -#line 397 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - color.red = color_value; -#line 398 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - color.green = color_value; -#line 399 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - color.blue = color_value; -#line 400 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - color.alpha = 1.0; -#line 402 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - *result = color; -#line 402 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return; -#line 2447 "Preferences.c" -} - - -static void -preferences_dialog_on_photo_editor_changed (PreferencesDialog* self) -{ - gint _tmp0_ = 0; - GtkComboBox* _tmp1_; - SortedList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint photo_app_choice_index = 0; - GAppInfo* app = NULL; - SortedList* _tmp9_; - gpointer _tmp10_; - ConfigFacade* _tmp11_; - ConfigFacade* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; -#line 405 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = self->priv->photo_editor_combo; -#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp2_ = self->priv->external_photo_apps; -#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp4_ = _tmp3_; -#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (gtk_combo_box_get_active (_tmp1_) < _tmp4_) { -#line 2481 "Preferences.c" - GtkComboBox* _tmp5_; -#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp5_ = self->priv->photo_editor_combo; -#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = gtk_combo_box_get_active (_tmp5_); -#line 2487 "Preferences.c" - } else { - SortedList* _tmp6_; - gint _tmp7_; - gint _tmp8_; -#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp6_ = self->priv->external_photo_apps; -#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp8_ = _tmp7_; -#line 407 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = _tmp8_; -#line 2500 "Preferences.c" - } -#line 406 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - photo_app_choice_index = _tmp0_; -#line 409 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp9_ = self->priv->external_photo_apps; -#line 409 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp10_ = sorted_list_get_at (_tmp9_, photo_app_choice_index); -#line 409 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - app = (GAppInfo*) _tmp10_; -#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp11_ = config_facade_get_instance (); -#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp12_ = _tmp11_; -#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp13_ = desktop_integration_get_app_open_command (app); -#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp14_ = _tmp13_; -#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - configuration_facade_set_external_photo_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp14_); -#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (_tmp14_); -#line 411 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp12_); -#line 413 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp15_ = desktop_integration_get_app_open_command (app); -#line 413 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp16_ = _tmp15_; -#line 413 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_debug ("Preferences.vala:413: setting external photo editor to: %s", _tmp16_); -#line 413 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (_tmp16_); -#line 405 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (app); -#line 2534 "Preferences.c" -} - - -static void -preferences_dialog_on_raw_editor_changed (PreferencesDialog* self) -{ - gint _tmp0_ = 0; - GtkComboBox* _tmp1_; - SortedList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint raw_app_choice_index = 0; - GAppInfo* app = NULL; - SortedList* _tmp9_; - gpointer _tmp10_; - ConfigFacade* _tmp11_; - ConfigFacade* _tmp12_; - const gchar* _tmp13_; - const gchar* _tmp14_; -#line 416 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = self->priv->raw_editor_combo; -#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp2_ = self->priv->external_raw_apps; -#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp4_ = _tmp3_; -#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (gtk_combo_box_get_active (_tmp1_) < _tmp4_) { -#line 2566 "Preferences.c" - GtkComboBox* _tmp5_; -#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp5_ = self->priv->raw_editor_combo; -#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = gtk_combo_box_get_active (_tmp5_); -#line 2572 "Preferences.c" - } else { - SortedList* _tmp6_; - gint _tmp7_; - gint _tmp8_; -#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp6_ = self->priv->external_raw_apps; -#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp8_ = _tmp7_; -#line 418 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = _tmp8_; -#line 2585 "Preferences.c" - } -#line 417 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - raw_app_choice_index = _tmp0_; -#line 420 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp9_ = self->priv->external_raw_apps; -#line 420 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp10_ = sorted_list_get_at (_tmp9_, raw_app_choice_index); -#line 420 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - app = (GAppInfo*) _tmp10_; -#line 422 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp11_ = config_facade_get_instance (); -#line 422 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp12_ = _tmp11_; -#line 422 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp13_ = g_app_info_get_commandline (app); -#line 422 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - configuration_facade_set_external_raw_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp13_); -#line 422 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp12_); -#line 424 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp14_ = g_app_info_get_commandline (app); -#line 424 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_debug ("Preferences.vala:424: setting external raw editor to: %s", _tmp14_); -#line 416 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (app); -#line 2611 "Preferences.c" -} - - -static RawDeveloper -preferences_dialog_raw_developer_from_combo (PreferencesDialog* self) -{ - RawDeveloper result = 0; - GtkComboBoxText* _tmp0_; -#line 427 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_val_if_fail (IS_PREFERENCES_DIALOG (self), 0); -#line 428 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = self->priv->default_raw_developer_combo; -#line 428 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox)) == 0) { -#line 429 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - result = RAW_DEVELOPER_CAMERA; -#line 429 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return result; -#line 2630 "Preferences.c" - } -#line 430 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - result = RAW_DEVELOPER_SHOTWELL; -#line 430 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return result; -#line 2636 "Preferences.c" -} - - -static void -preferences_dialog_set_raw_developer_combo (PreferencesDialog* self, - RawDeveloper d) -{ -#line 433 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 434 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (d == RAW_DEVELOPER_CAMERA) { -#line 2648 "Preferences.c" - GtkComboBoxText* _tmp0_; -#line 435 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = self->priv->default_raw_developer_combo; -#line 435 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 2654 "Preferences.c" - } else { - GtkComboBoxText* _tmp1_; -#line 437 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = self->priv->default_raw_developer_combo; -#line 437 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), 1); -#line 2661 "Preferences.c" - } -} - - -static void -preferences_dialog_on_default_raw_developer_changed (PreferencesDialog* self) -{ - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 440 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 441 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = config_facade_get_instance (); -#line 441 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = _tmp0_; -#line 441 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - configuration_facade_set_default_raw_developer (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), preferences_dialog_raw_developer_from_combo (self)); -#line 441 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp1_); -#line 2681 "Preferences.c" -} - - -static void -preferences_dialog_on_current_folder_changed (PreferencesDialog* self) -{ - GtkFileChooserButton* _tmp0_; - gchar* _tmp1_; -#line 444 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 445 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = self->priv->library_dir_button; -#line 445 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = gtk_file_chooser_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_file_chooser_get_type (), GtkFileChooser)); -#line 445 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (self->priv->lib_dir); -#line 445 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self->priv->lib_dir = _tmp1_; -#line 2700 "Preferences.c" -} - - -static void -_preferences_dialog_on_current_folder_changed_gtk_file_chooser_current_folder_changed (GtkFileChooser* _sender, - gpointer self) -{ -#line 454 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_on_current_folder_changed ((PreferencesDialog*) self); -#line 2710 "Preferences.c" -} - - -static gboolean -preferences_dialog_real_map_event (GtkWidget* base, - GdkEventAny* event) -{ - PreferencesDialog * self; - gboolean result = FALSE; - gboolean _result_ = FALSE; - GtkFileChooserButton* _tmp0_; -#line 448 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PREFERENCES_DIALOG, PreferencesDialog); -#line 448 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 449 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _result_ = GTK_WIDGET_CLASS (preferences_dialog_parent_class)->map_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), gtk_widget_get_type (), GtkWidget), event); -#line 454 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = self->priv->library_dir_button; -#line 454 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_file_chooser_get_type (), GtkFileChooser), "current-folder-changed", (GCallback) _preferences_dialog_on_current_folder_changed_gtk_file_chooser_current_folder_changed, self, 0); -#line 456 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - result = _result_; -#line 456 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return result; -#line 2736 "Preferences.c" -} - - -static void -preferences_dialog_add_to_dir_formats (PreferencesDialog* self, - const gchar* name, - const gchar* pattern) -{ - PreferencesDialogPathFormat* pf = NULL; - PreferencesDialogPathFormat* _tmp0_; - GeeArrayList* _tmp1_; - GtkComboBoxText* _tmp2_; -#line 459 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 459 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (name != NULL); -#line 460 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = preferences_dialog_path_format_new (name, pattern); -#line 460 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - pf = _tmp0_; -#line 461 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = self->priv->path_formats; -#line 461 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), pf); -#line 462 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp2_ = self->priv->dir_pattern_combo; -#line 462 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_combo_box_text_append_text (_tmp2_, name); -#line 459 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _preferences_dialog_path_format_unref0 (pf); -#line 2767 "Preferences.c" -} - - -static void -preferences_dialog_on_lowercase_toggled (PreferencesDialog* self) -{ - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - GtkCheckButton* _tmp2_; -#line 465 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (IS_PREFERENCES_DIALOG (self)); -#line 466 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = config_facade_get_instance (); -#line 466 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = _tmp0_; -#line 466 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp2_ = self->priv->lowercase; -#line 466 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - configuration_facade_set_use_lowercase_filenames (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_toggle_button_get_type (), GtkToggleButton))); -#line 466 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (_tmp1_); -#line 2789 "Preferences.c" -} - - -static PreferencesDialogPathFormat* -preferences_dialog_path_format_construct (GType object_type, - const gchar* name, - const gchar* pattern) -{ - PreferencesDialogPathFormat* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 11 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 11 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self = (PreferencesDialogPathFormat*) g_type_create_instance (object_type); -#line 12 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = g_strdup (name); -#line 12 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (self->name); -#line 12 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self->name = _tmp0_; -#line 13 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = g_strdup (pattern); -#line 13 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (self->pattern); -#line 13 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self->pattern = _tmp1_; -#line 11 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return self; -#line 2819 "Preferences.c" -} - - -static PreferencesDialogPathFormat* -preferences_dialog_path_format_new (const gchar* name, - const gchar* pattern) -{ -#line 11 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return preferences_dialog_path_format_construct (PREFERENCES_DIALOG_TYPE_PATH_FORMAT, name, pattern); -#line 2829 "Preferences.c" -} - - -static void -preferences_dialog_value_path_format_init (GValue* value) -{ -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - value->data[0].v_pointer = NULL; -#line 2838 "Preferences.c" -} - - -static void -preferences_dialog_value_path_format_free_value (GValue* value) -{ -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (value->data[0].v_pointer) { -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_path_format_unref (value->data[0].v_pointer); -#line 2849 "Preferences.c" - } -} - - -static void -preferences_dialog_value_path_format_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (src_value->data[0].v_pointer) { -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - dest_value->data[0].v_pointer = preferences_dialog_path_format_ref (src_value->data[0].v_pointer); -#line 2862 "Preferences.c" - } else { -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - dest_value->data[0].v_pointer = NULL; -#line 2866 "Preferences.c" - } -} - - -static gpointer -preferences_dialog_value_path_format_peek_pointer (const GValue* value) -{ -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return value->data[0].v_pointer; -#line 2876 "Preferences.c" -} - - -static gchar* -preferences_dialog_value_path_format_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (collect_values[0].v_pointer) { -#line 2888 "Preferences.c" - PreferencesDialogPathFormat * object; - object = collect_values[0].v_pointer; -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (object->parent_instance.g_class == NULL) { -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2895 "Preferences.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2899 "Preferences.c" - } -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - value->data[0].v_pointer = preferences_dialog_path_format_ref (object); -#line 2903 "Preferences.c" - } else { -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - value->data[0].v_pointer = NULL; -#line 2907 "Preferences.c" - } -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return NULL; -#line 2911 "Preferences.c" -} - - -static gchar* -preferences_dialog_value_path_format_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PreferencesDialogPathFormat ** object_p; - object_p = collect_values[0].v_pointer; -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (!object_p) { -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2927 "Preferences.c" - } -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (!value->data[0].v_pointer) { -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - *object_p = NULL; -#line 2933 "Preferences.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - *object_p = value->data[0].v_pointer; -#line 2937 "Preferences.c" - } else { -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - *object_p = preferences_dialog_path_format_ref (value->data[0].v_pointer); -#line 2941 "Preferences.c" - } -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return NULL; -#line 2945 "Preferences.c" -} - - -static GParamSpec* -preferences_dialog_param_spec_path_format (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PreferencesDialogParamSpecPathFormat* spec; -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_val_if_fail (g_type_is_a (object_type, PREFERENCES_DIALOG_TYPE_PATH_FORMAT), NULL); -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return G_PARAM_SPEC (spec); -#line 2965 "Preferences.c" -} - - -static gpointer -preferences_dialog_value_get_path_format (const GValue* value) -{ -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PREFERENCES_DIALOG_TYPE_PATH_FORMAT), NULL); -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return value->data[0].v_pointer; -#line 2976 "Preferences.c" -} - - -static void -preferences_dialog_value_set_path_format (GValue* value, - gpointer v_object) -{ - PreferencesDialogPathFormat * old; -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PREFERENCES_DIALOG_TYPE_PATH_FORMAT)); -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - old = value->data[0].v_pointer; -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (v_object) { -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PREFERENCES_DIALOG_TYPE_PATH_FORMAT)); -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - value->data[0].v_pointer = v_object; -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_path_format_ref (value->data[0].v_pointer); -#line 2999 "Preferences.c" - } else { -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - value->data[0].v_pointer = NULL; -#line 3003 "Preferences.c" - } -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (old) { -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_path_format_unref (old); -#line 3009 "Preferences.c" - } -} - - -static void -preferences_dialog_value_take_path_format (GValue* value, - gpointer v_object) -{ - PreferencesDialogPathFormat * old; -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PREFERENCES_DIALOG_TYPE_PATH_FORMAT)); -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - old = value->data[0].v_pointer; -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (v_object) { -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PREFERENCES_DIALOG_TYPE_PATH_FORMAT)); -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - value->data[0].v_pointer = v_object; -#line 3031 "Preferences.c" - } else { -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - value->data[0].v_pointer = NULL; -#line 3035 "Preferences.c" - } -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (old) { -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_path_format_unref (old); -#line 3041 "Preferences.c" - } -} - - -static void -preferences_dialog_path_format_class_init (PreferencesDialogPathFormatClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_path_format_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - ((PreferencesDialogPathFormatClass *) klass)->finalize = preferences_dialog_path_format_finalize; -#line 3053 "Preferences.c" -} - - -static void -preferences_dialog_path_format_instance_init (PreferencesDialogPathFormat * self) -{ -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self->ref_count = 1; -#line 3062 "Preferences.c" -} - - -static void -preferences_dialog_path_format_finalize (PreferencesDialogPathFormat * obj) -{ - PreferencesDialogPathFormat * self; -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PREFERENCES_DIALOG_TYPE_PATH_FORMAT, PreferencesDialogPathFormat); -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_signal_handlers_destroy (self); -#line 15 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (self->name); -#line 16 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (self->pattern); -#line 3078 "Preferences.c" -} - - -static GType -preferences_dialog_path_format_get_type (void) -{ - static volatile gsize preferences_dialog_path_format_type_id__volatile = 0; - if (g_once_init_enter (&preferences_dialog_path_format_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { preferences_dialog_value_path_format_init, preferences_dialog_value_path_format_free_value, preferences_dialog_value_path_format_copy_value, preferences_dialog_value_path_format_peek_pointer, "p", preferences_dialog_value_path_format_collect_value, "p", preferences_dialog_value_path_format_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PreferencesDialogPathFormatClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) preferences_dialog_path_format_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PreferencesDialogPathFormat), 0, (GInstanceInitFunc) preferences_dialog_path_format_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType preferences_dialog_path_format_type_id; - preferences_dialog_path_format_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PreferencesDialogPathFormat", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&preferences_dialog_path_format_type_id__volatile, preferences_dialog_path_format_type_id); - } - return preferences_dialog_path_format_type_id__volatile; -} - - -static gpointer -preferences_dialog_path_format_ref (gpointer instance) -{ - PreferencesDialogPathFormat * self; - self = instance; -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_atomic_int_inc (&self->ref_count); -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - return instance; -#line 3107 "Preferences.c" -} - - -static void -preferences_dialog_path_format_unref (gpointer instance) -{ - PreferencesDialogPathFormat * self; - self = instance; -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - PREFERENCES_DIALOG_PATH_FORMAT_GET_CLASS (self)->finalize (self); -#line 10 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 3122 "Preferences.c" - } -} - - -static void -preferences_dialog_class_init (PreferencesDialogClass * klass) -{ - gint PreferencesDialog_private_offset; -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - preferences_dialog_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_type_class_add_private (klass, sizeof (PreferencesDialogPrivate)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - ((GtkWidgetClass *) klass)->map_event = (gboolean (*) (GtkWidget *, GdkEventAny*)) preferences_dialog_real_map_event; -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - G_OBJECT_CLASS (klass)->finalize = preferences_dialog_finalize; -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - PreferencesDialog_private_offset = g_type_class_get_instance_private_offset (klass); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/preferences_dialog.ui"); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "bg_color_adjustment", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, bg_color_adjustment)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "bg_color_slider", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, bg_color_slider)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "photo_editor_combo", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, photo_editor_combo)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "raw_editor_combo", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, raw_editor_combo)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "library_dir_button", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, library_dir_button)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "dir_pattern_combo", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, dir_pattern_combo)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "dir_pattern_entry", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, dir_pattern_entry)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "dir_pattern_example", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, dir_pattern_example)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "lowercase", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, lowercase)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "default_raw_developer_combo", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, default_raw_developer_combo)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "autoimport", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, autoimport)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "write_metadata", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, write_metadata)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "pattern_help", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, pattern_help)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "preferences_notebook", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, preferences_notebook)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transparent_checker_radio", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, transparent_checker_radio)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transparent_solid_radio", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, transparent_solid_radio)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transparent_solid_color", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, transparent_solid_color)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "transparent_none_radio", FALSE, PreferencesDialog_private_offset + G_STRUCT_OFFSET (PreferencesDialogPrivate, transparent_none_radio)); -#line 3179 "Preferences.c" -} - - -static void -preferences_dialog_instance_init (PreferencesDialog * self) -{ - GeeArrayList* _tmp0_; - GDateTime* _tmp1_; - PluginsManifestWidgetMediator* _tmp2_; -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self->priv = PREFERENCES_DIALOG_GET_PRIVATE (self); -#line 39 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self->priv->allow_closing = FALSE; -#line 40 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self->priv->lib_dir = NULL; -#line 41 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp0_ = gee_array_list_new (PREFERENCES_DIALOG_TYPE_PATH_FORMAT, (GBoxedCopyFunc) preferences_dialog_path_format_ref, (GDestroyNotify) preferences_dialog_path_format_unref, NULL, NULL, NULL); -#line 41 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self->priv->path_formats = _tmp0_; -#line 42 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp1_ = g_date_time_new_local (2009, 3, 10, 18, 16, (gdouble) 11); -#line 42 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self->priv->example_date = _tmp1_; -#line 45 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _tmp2_ = plugins_manifest_widget_mediator_new (); -#line 45 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - g_object_ref_sink (_tmp2_); -#line 45 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self->priv->plugins_mediator = _tmp2_; -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - gtk_widget_init_template (GTK_WIDGET (self)); -#line 3211 "Preferences.c" -} - - -static void -preferences_dialog_finalize (GObject * obj) -{ - PreferencesDialog * self; -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PREFERENCES_DIALOG, PreferencesDialog); -#line 22 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->bg_color_adjustment); -#line 24 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->bg_color_slider); -#line 26 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->photo_editor_combo); -#line 28 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->raw_editor_combo); -#line 29 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->external_raw_apps); -#line 30 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->external_photo_apps); -#line 32 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->library_dir_button); -#line 34 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->dir_pattern_combo); -#line 36 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->dir_pattern_entry); -#line 38 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->dir_pattern_example); -#line 40 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_free0 (self->priv->lib_dir); -#line 41 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->path_formats); -#line 42 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_date_time_unref0 (self->priv->example_date); -#line 44 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->lowercase); -#line 45 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->plugins_mediator); -#line 47 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->default_raw_developer_combo); -#line 50 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->autoimport); -#line 52 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->write_metadata); -#line 54 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->pattern_help); -#line 56 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->preferences_notebook); -#line 59 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->transparent_checker_radio); -#line 61 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->transparent_solid_radio); -#line 63 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->transparent_solid_color); -#line 65 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - _g_object_unref0 (self->priv->transparent_none_radio); -#line 9 "/home/jens/Source/shotwell/src/dialogs/Preferences.vala" - G_OBJECT_CLASS (preferences_dialog_parent_class)->finalize (obj); -#line 3271 "Preferences.c" -} - - -GType -preferences_dialog_get_type (void) -{ - static volatile gsize preferences_dialog_type_id__volatile = 0; - if (g_once_init_enter (&preferences_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PreferencesDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) preferences_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PreferencesDialog), 0, (GInstanceInitFunc) preferences_dialog_instance_init, NULL }; - GType preferences_dialog_type_id; - preferences_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "PreferencesDialog", &g_define_type_info, 0); - g_once_init_leave (&preferences_dialog_type_id__volatile, preferences_dialog_type_id); - } - return preferences_dialog_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/src/dialogs/Preferences.vala b/src/dialogs/Preferences.vala index 0a18547..17b16cf 100644 --- a/src/dialogs/Preferences.vala +++ b/src/dialogs/Preferences.vala @@ -19,9 +19,8 @@ public class PreferencesDialog : Gtk.Dialog { private static PreferencesDialog preferences_dialog; [GtkChild] - private Gtk.Adjustment bg_color_adjustment; - [GtkChild] - private Gtk.Scale bg_color_slider; + private Gtk.Switch switch_dark; + [GtkChild] private Gtk.ComboBox photo_editor_combo; [GtkChild] @@ -72,12 +71,6 @@ public class PreferencesDialog : Gtk.Dialog { delete_event.connect(on_delete); response.connect(on_close); - bg_color_adjustment.set_value(bg_color_adjustment.get_upper() - - (Config.Facade.get_instance().get_bg_color().red * 65535.0)); - bg_color_adjustment.value_changed.connect(on_value_changed); - - bg_color_slider.button_press_event.connect(on_bg_color_reset); - transparent_checker_radio.toggled.connect(on_radio_changed); transparent_solid_radio.toggled.connect(on_radio_changed); transparent_none_radio.toggled.connect(on_radio_changed); @@ -148,6 +141,8 @@ public class PreferencesDialog : Gtk.Dialog { default_raw_developer_combo.append_text(RawDeveloper.SHOTWELL.get_label()); set_raw_developer_combo(Config.Facade.get_instance().get_default_raw_developer()); default_raw_developer_combo.changed.connect(on_default_raw_developer_changed); + switch_dark.active = Gtk.Settings.get_default().gtk_application_prefer_dark_theme; + switch_dark.notify["active"].connect(on_theme_variant_changed); } public void populate_preference_options() { @@ -162,6 +157,13 @@ public class PreferencesDialog : Gtk.Dialog { lowercase.set_active(Config.Facade.get_instance().get_use_lowercase_filenames()); } + private void on_theme_variant_changed(GLib.Object o, GLib.ParamSpec ps) { + var config = Config.Facade.get_instance(); + config.set_gtk_theme_variant(switch_dark.active); + + Gtk.Settings.get_default().gtk_application_prefer_dark_theme = switch_dark.active; + } + private void on_radio_changed() { var config = Config.Facade.get_instance(); @@ -183,7 +185,7 @@ public class PreferencesDialog : Gtk.Dialog { // the help viewer and specify the full path to the subsection we want... private bool on_local_pattern_help(string ignore) { try { - Resources.launch_help(AppWindow.get_instance().get_screen(), "other-files.page"); + Resources.launch_help(AppWindow.get_instance(), "other-files.page"); } catch (Error e) { message("Unable to launch help: %s", e.message); } @@ -294,7 +296,6 @@ public class PreferencesDialog : Gtk.Dialog { // For items that should only be committed when the dialog is closed, not as soon as the change // is made. private void commit_on_close() { - Config.Facade.get_instance().commit_bg_color(); Config.Facade.get_instance().set_auto_import_from_library(autoimport.active); Config.Facade.get_instance().set_commit_metadata_to_masters(write_metadata.active); @@ -326,25 +327,6 @@ public class PreferencesDialog : Gtk.Dialog { commit_on_close(); } - private void on_value_changed() { - set_background_color((double)(bg_color_adjustment.get_upper() - - bg_color_adjustment.get_value()) / 65535.0); - } - - private bool on_bg_color_reset(Gdk.EventButton event) { - if (event.button == 1 && event.type == Gdk.EventType.BUTTON_PRESS - && has_only_key_modifier(event.state, Gdk.ModifierType.CONTROL_MASK)) { - // Left Mouse Button and CTRL pressed - bg_color_slider.set_value(bg_color_adjustment.get_upper() - - (parse_color(Config.Facade.DEFAULT_BG_COLOR).red * 65536.0f)); - on_value_changed(); - - return true; - } - - return false; - } - private void on_dir_pattern_combo_changed() { PathFormat pf = path_formats.get(dir_pattern_combo.get_active()); if (null == pf.pattern) { @@ -387,21 +369,6 @@ public class PreferencesDialog : Gtk.Dialog { return allow_closing; } - private void set_background_color(double bg_color_value) { - Config.Facade.get_instance().set_bg_color(to_grayscale(bg_color_value)); - } - - private Gdk.RGBA to_grayscale(double color_value) { - Gdk.RGBA color = Gdk.RGBA(); - - color.red = color_value; - color.green = color_value; - color.blue = color_value; - color.alpha = 1.0; - - return color; - } - private void on_photo_editor_changed() { int photo_app_choice_index = (photo_editor_combo.get_active() < external_photo_apps.size) ? photo_editor_combo.get_active() : external_photo_apps.size; diff --git a/src/dialogs/ProgressDialog.c b/src/dialogs/ProgressDialog.c deleted file mode 100644 index 7098e20..0000000 --- a/src/dialogs/ProgressDialog.c +++ /dev/null @@ -1,714 +0,0 @@ -/* ProgressDialog.c generated by valac 0.40.4, the Vala compiler - * generated from ProgressDialog.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * Copyright 2017 Jens Georg - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PROGRESS_DIALOG (progress_dialog_get_type ()) -#define PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROGRESS_DIALOG, ProgressDialog)) -#define PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PROGRESS_DIALOG, ProgressDialogClass)) -#define IS_PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROGRESS_DIALOG)) -#define IS_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROGRESS_DIALOG)) -#define PROGRESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROGRESS_DIALOG, ProgressDialogClass)) - -typedef struct _ProgressDialog ProgressDialog; -typedef struct _ProgressDialogClass ProgressDialogClass; -typedef struct _ProgressDialogPrivate ProgressDialogPrivate; -enum { - PROGRESS_DIALOG_0_PROPERTY, - PROGRESS_DIALOG_NUM_PROPERTIES -}; -static GParamSpec* progress_dialog_properties[PROGRESS_DIALOG_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _ProgressDialog { - GtkWindow parent_instance; - ProgressDialogPrivate * priv; -}; - -struct _ProgressDialogClass { - GtkWindowClass parent_class; -}; - -struct _ProgressDialogPrivate { - GtkProgressBar* progress_bar; - GtkButton* cancel_button; - GCancellable* cancellable; - guint64 last_count; - gint update_every; - gint minimum_on_screen_time_msec; - gulong time_started; -}; - - -static gpointer progress_dialog_parent_class = NULL; - -GType progress_dialog_get_type (void) G_GNUC_CONST; -#define PROGRESS_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PROGRESS_DIALOG, ProgressDialogPrivate)) -ProgressDialog* progress_dialog_new (GtkWindow* owner, - const gchar* text, - GCancellable* cancellable); -ProgressDialog* progress_dialog_construct (GType object_type, - GtkWindow* owner, - const gchar* text, - GCancellable* cancellable); -#define RESOURCES_CANCEL_LABEL _ ("_Cancel") -static void progress_dialog_on_cancel (ProgressDialog* self); -static void _progress_dialog_on_cancel_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static gboolean progress_dialog_on_window_closed (ProgressDialog* self); -static gboolean _progress_dialog_on_window_closed_gtk_widget_delete_event (GtkWidget* _sender, - GdkEventAny* event, - gpointer self); -gulong now_ms (void); -static void progress_dialog_real_realize (GtkWidget* base); -void progress_dialog_update_display_every (ProgressDialog* self, - gint update_every); -void progress_dialog_set_minimum_on_screen_time_msec (ProgressDialog* self, - gint minimum_on_screen_time_msec); -void progress_dialog_set_fraction (ProgressDialog* self, - gint current, - gint total); -void progress_dialog_set_percentage (ProgressDialog* self, - gdouble pct); -static void progress_dialog_maybe_show_all (ProgressDialog* self, - gdouble pct); -void progress_dialog_set_status (ProgressDialog* self, - const gchar* text); -gboolean progress_dialog_monitor (ProgressDialog* self, - guint64 count, - guint64 total, - gboolean do_event_loop); -void spin_event_loop (void); -void progress_dialog_close (ProgressDialog* self); -static void progress_dialog_finalize (GObject * obj); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 21 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - return self ? g_object_ref (self) : NULL; -#line 115 "ProgressDialog.c" -} - - -static void -_progress_dialog_on_cancel_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 38 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - progress_dialog_on_cancel ((ProgressDialog*) self); -#line 125 "ProgressDialog.c" -} - - -static gboolean -_progress_dialog_on_window_closed_gtk_widget_delete_event (GtkWidget* _sender, - GdkEventAny* event, - gpointer self) -{ - gboolean result; - result = progress_dialog_on_window_closed ((ProgressDialog*) self); -#line 39 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - return result; -#line 138 "ProgressDialog.c" -} - - -ProgressDialog* -progress_dialog_construct (GType object_type, - GtkWindow* owner, - const gchar* text, - GCancellable* cancellable) -{ - ProgressDialog * self = NULL; - GCancellable* _tmp0_; - GtkProgressBar* _tmp1_; - GtkProgressBar* _tmp2_; - GtkBox* vbox_bar = NULL; - GtkBox* _tmp3_; - GtkBox* _tmp4_; - GtkProgressBar* _tmp5_; - GtkBox* hbox = NULL; - GtkBox* _tmp8_; - GtkBox* _tmp9_; - GtkBox* _tmp10_; - GtkButton* _tmp11_; - GtkLabel* primary_text_label = NULL; - GtkLabel* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - GtkBox* vbox = NULL; - GtkBox* _tmp17_; - GtkBox* _tmp18_; -#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_return_val_if_fail ((owner == NULL) || GTK_IS_WINDOW (owner), NULL); -#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_return_val_if_fail (text != NULL, NULL); -#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_return_val_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable), NULL); -#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - self = (ProgressDialog*) g_object_new (object_type, NULL); -#line 21 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp0_ = _g_object_ref0 (cancellable); -#line 21 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _g_object_unref0 (self->priv->cancellable); -#line 21 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - self->priv->cancellable = _tmp0_; -#line 23 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), text); -#line 24 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE); -#line 25 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - if (owner != NULL) { -#line 26 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), owner); -#line 190 "ProgressDialog.c" - } -#line 27 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_window_set_modal (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE); -#line 28 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_window_set_type_hint (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), GDK_WINDOW_TYPE_HINT_DIALOG); -#line 30 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp1_ = self->priv->progress_bar; -#line 30 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), 300, -1); -#line 31 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp2_ = self->priv->progress_bar; -#line 31 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_progress_bar_set_show_text (_tmp2_, TRUE); -#line 33 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp3_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 33 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_object_ref_sink (_tmp3_); -#line 33 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - vbox_bar = _tmp3_; -#line 34 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp4_ = vbox_bar; -#line 34 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp5_ = self->priv->progress_bar; -#line 34 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_box_pack_start (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0); -#line 36 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - if (cancellable != NULL) { -#line 218 "ProgressDialog.c" - GtkButton* _tmp6_; - GtkButton* _tmp7_; -#line 37 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp6_ = (GtkButton*) gtk_button_new_with_mnemonic (RESOURCES_CANCEL_LABEL); -#line 37 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_object_ref_sink (_tmp6_); -#line 37 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _g_object_unref0 (self->priv->cancel_button); -#line 37 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - self->priv->cancel_button = _tmp6_; -#line 38 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp7_ = self->priv->cancel_button; -#line 38 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_signal_connect_object (_tmp7_, "clicked", (GCallback) _progress_dialog_on_cancel_gtk_button_clicked, self, 0); -#line 39 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "delete-event", (GCallback) _progress_dialog_on_window_closed_gtk_widget_delete_event, self, 0); -#line 235 "ProgressDialog.c" - } -#line 42 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp8_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); -#line 42 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_object_ref_sink (_tmp8_); -#line 42 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - hbox = _tmp8_; -#line 43 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp9_ = hbox; -#line 43 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp10_ = vbox_bar; -#line 43 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_box_pack_start (_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0); -#line 44 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp11_ = self->priv->cancel_button; -#line 44 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - if (_tmp11_ != NULL) { -#line 253 "ProgressDialog.c" - GtkBox* _tmp12_; - GtkButton* _tmp13_; -#line 45 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp12_ = hbox; -#line 45 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp13_ = self->priv->cancel_button; -#line 45 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_box_pack_end (_tmp12_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 262 "ProgressDialog.c" - } -#line 47 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp14_ = (GtkLabel*) gtk_label_new (""); -#line 47 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_object_ref_sink (_tmp14_); -#line 47 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - primary_text_label = _tmp14_; -#line 48 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp15_ = g_strdup_printf ("%s", text); -#line 48 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp16_ = _tmp15_; -#line 48 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_label_set_markup (primary_text_label, _tmp16_); -#line 48 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _g_free0 (_tmp16_); -#line 49 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_label_set_xalign (primary_text_label, 0.0f); -#line 50 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_label_set_yalign (primary_text_label, 0.5f); -#line 52 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp17_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 12); -#line 52 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_object_ref_sink (_tmp17_); -#line 52 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - vbox = _tmp17_; -#line 53 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_box_pack_start (vbox, G_TYPE_CHECK_INSTANCE_CAST (primary_text_label, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 54 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp18_ = hbox; -#line 54 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_box_pack_start (vbox, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE, (guint) 0); -#line 55 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 56 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 57 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget), TRUE); -#line 58 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget), TRUE); -#line 59 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget), 12); -#line 60 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget), 12); -#line 61 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget), 12); -#line 62 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget), 12); -#line 64 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (vbox, gtk_widget_get_type (), GtkWidget)); -#line 66 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - self->priv->time_started = now_ms (); -#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _g_object_unref0 (vbox); -#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _g_object_unref0 (primary_text_label); -#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _g_object_unref0 (hbox); -#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _g_object_unref0 (vbox_bar); -#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - return self; -#line 324 "ProgressDialog.c" -} - - -ProgressDialog* -progress_dialog_new (GtkWindow* owner, - const gchar* text, - GCancellable* cancellable) -{ -#line 20 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - return progress_dialog_construct (TYPE_PROGRESS_DIALOG, owner, text, cancellable); -#line 335 "ProgressDialog.c" -} - - -static void -progress_dialog_real_realize (GtkWidget* base) -{ - ProgressDialog * self; - GCancellable* _tmp0_; -#line 69 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PROGRESS_DIALOG, ProgressDialog); -#line 70 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - GTK_WIDGET_CLASS (progress_dialog_parent_class)->realize (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), gtk_widget_get_type (), GtkWidget)); -#line 73 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp0_ = self->priv->cancellable; -#line 73 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - if (_tmp0_ == NULL) { -#line 352 "ProgressDialog.c" - GdkWindow* _tmp1_; -#line 74 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 74 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gdk_window_set_functions (_tmp1_, GDK_FUNC_MOVE); -#line 358 "ProgressDialog.c" - } -} - - -void -progress_dialog_update_display_every (ProgressDialog* self, - gint update_every) -{ -#line 77 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_return_if_fail (IS_PROGRESS_DIALOG (self)); -#line 78 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _vala_assert (update_every >= 1, "update_every >= 1"); -#line 80 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - self->priv->update_every = update_every; -#line 373 "ProgressDialog.c" -} - - -void -progress_dialog_set_minimum_on_screen_time_msec (ProgressDialog* self, - gint minimum_on_screen_time_msec) -{ -#line 83 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_return_if_fail (IS_PROGRESS_DIALOG (self)); -#line 84 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - self->priv->minimum_on_screen_time_msec = minimum_on_screen_time_msec; -#line 385 "ProgressDialog.c" -} - - -void -progress_dialog_set_fraction (ProgressDialog* self, - gint current, - gint total) -{ -#line 87 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_return_if_fail (IS_PROGRESS_DIALOG (self)); -#line 88 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - progress_dialog_set_percentage (self, ((gdouble) current) / ((gdouble) total)); -#line 398 "ProgressDialog.c" -} - - -void -progress_dialog_set_percentage (ProgressDialog* self, - gdouble pct) -{ - GtkProgressBar* _tmp0_; - GtkProgressBar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 91 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_return_if_fail (IS_PROGRESS_DIALOG (self)); -#line 92 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - pct = CLAMP (pct, 0.0, 1.0); -#line 94 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - progress_dialog_maybe_show_all (self, pct); -#line 96 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp0_ = self->priv->progress_bar; -#line 96 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_progress_bar_set_fraction (_tmp0_, pct); -#line 97 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp1_ = self->priv->progress_bar; -#line 97 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp2_ = g_strdup_printf (_ ("%d%%"), (gint) (pct * 100.0)); -#line 97 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp3_ = _tmp2_; -#line 97 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_progress_bar_set_text (_tmp1_, _tmp3_); -#line 97 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _g_free0 (_tmp3_); -#line 430 "ProgressDialog.c" -} - - -void -progress_dialog_set_status (ProgressDialog* self, - const gchar* text) -{ - GtkProgressBar* _tmp0_; -#line 105 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_return_if_fail (IS_PROGRESS_DIALOG (self)); -#line 105 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_return_if_fail (text != NULL); -#line 106 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp0_ = self->priv->progress_bar; -#line 106 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_progress_bar_set_text (_tmp0_, text); -#line 112 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 449 "ProgressDialog.c" -} - - -gboolean -progress_dialog_monitor (ProgressDialog* self, - guint64 count, - guint64 total, - gboolean do_event_loop) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - guint64 _tmp1_; - gboolean _tmp4_ = FALSE; - GCancellable* _tmp5_; - gboolean keep_going = FALSE; -#line 116 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_return_val_if_fail (IS_PROGRESS_DIALOG (self), FALSE); -#line 117 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp1_ = self->priv->last_count; -#line 117 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - if (_tmp1_ == G_MAXUINT64) { -#line 117 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp0_ = TRUE; -#line 473 "ProgressDialog.c" - } else { - guint64 _tmp2_; - gint _tmp3_; -#line 117 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp2_ = self->priv->last_count; -#line 117 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp3_ = self->priv->update_every; -#line 117 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp0_ = (count - _tmp2_) >= ((guint64) _tmp3_); -#line 483 "ProgressDialog.c" - } -#line 117 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - if (_tmp0_) { -#line 118 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - progress_dialog_set_percentage (self, ((gdouble) count) / ((gdouble) total)); -#line 119 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - self->priv->last_count = count; -#line 491 "ProgressDialog.c" - } -#line 122 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp5_ = self->priv->cancellable; -#line 122 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - if (_tmp5_ != NULL) { -#line 497 "ProgressDialog.c" - GCancellable* _tmp6_; -#line 122 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp6_ = self->priv->cancellable; -#line 122 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp4_ = !g_cancellable_is_cancelled (_tmp6_); -#line 503 "ProgressDialog.c" - } else { -#line 122 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp4_ = TRUE; -#line 507 "ProgressDialog.c" - } -#line 122 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - keep_going = _tmp4_; -#line 130 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - if (do_event_loop) { -#line 131 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - spin_event_loop (); -#line 515 "ProgressDialog.c" - } -#line 133 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - result = keep_going; -#line 133 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - return result; -#line 521 "ProgressDialog.c" -} - - -void -progress_dialog_close (ProgressDialog* self) -{ -#line 136 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_return_if_fail (IS_PROGRESS_DIALOG (self)); -#line 141 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 142 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 534 "ProgressDialog.c" -} - - -static gboolean -progress_dialog_on_window_closed (ProgressDialog* self) -{ - gboolean result = FALSE; -#line 145 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_return_val_if_fail (IS_PROGRESS_DIALOG (self), FALSE); -#line 146 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - progress_dialog_on_cancel (self); -#line 147 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - result = FALSE; -#line 147 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - return result; -#line 550 "ProgressDialog.c" -} - - -static void -progress_dialog_on_cancel (ProgressDialog* self) -{ - GCancellable* _tmp0_; - GtkButton* _tmp2_; -#line 151 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_return_if_fail (IS_PROGRESS_DIALOG (self)); -#line 152 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp0_ = self->priv->cancellable; -#line 152 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - if (_tmp0_ != NULL) { -#line 565 "ProgressDialog.c" - GCancellable* _tmp1_; -#line 153 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp1_ = self->priv->cancellable; -#line 153 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_cancellable_cancel (_tmp1_); -#line 571 "ProgressDialog.c" - } -#line 155 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp2_ = self->priv->cancel_button; -#line 155 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 577 "ProgressDialog.c" -} - - -static void -progress_dialog_maybe_show_all (ProgressDialog* self, - gdouble pct) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; - gboolean _tmp2_; -#line 158 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_return_if_fail (IS_PROGRESS_DIALOG (self)); -#line 161 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp1_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 161 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp2_ = _tmp1_; -#line 161 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - if (!_tmp2_) { -#line 596 "ProgressDialog.c" - gulong _tmp3_; - gint _tmp4_; -#line 161 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp3_ = self->priv->time_started; -#line 161 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp4_ = self->priv->minimum_on_screen_time_msec; -#line 161 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp0_ = (now_ms () - _tmp3_) > ((gulong) _tmp4_); -#line 605 "ProgressDialog.c" - } else { -#line 161 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp0_ = FALSE; -#line 609 "ProgressDialog.c" - } -#line 161 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - if (_tmp0_) { -#line 613 "ProgressDialog.c" - gdouble pps = 0.0; - gint _tmp5_; - gdouble ttc = 0.0; - gdouble _tmp6_; - gdouble _tmp7_; - gint _tmp8_; -#line 163 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp5_ = self->priv->minimum_on_screen_time_msec; -#line 163 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - pps = (pct * 100.0) / _tmp5_; -#line 165 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp6_ = pps; -#line 165 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - ttc = 100.0 / _tmp6_; -#line 168 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp7_ = ttc; -#line 168 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp8_ = self->priv->minimum_on_screen_time_msec; -#line 168 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - if (_tmp7_ > ((gdouble) _tmp8_)) { -#line 173 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 174 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - spin_event_loop (); -#line 638 "ProgressDialog.c" - } - } -} - - -static void -progress_dialog_class_init (ProgressDialogClass * klass) -{ -#line 8 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - progress_dialog_parent_class = g_type_class_peek_parent (klass); -#line 8 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_type_class_add_private (klass, sizeof (ProgressDialogPrivate)); -#line 8 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - ((GtkWidgetClass *) klass)->realize = (void (*) (GtkWidget *)) progress_dialog_real_realize; -#line 8 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - G_OBJECT_CLASS (klass)->finalize = progress_dialog_finalize; -#line 655 "ProgressDialog.c" -} - - -static void -progress_dialog_instance_init (ProgressDialog * self) -{ - GtkProgressBar* _tmp0_; -#line 8 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - self->priv = PROGRESS_DIALOG_GET_PRIVATE (self); -#line 9 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _tmp0_ = (GtkProgressBar*) gtk_progress_bar_new (); -#line 9 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - g_object_ref_sink (_tmp0_); -#line 9 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - self->priv->progress_bar = _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - self->priv->cancel_button = NULL; -#line 12 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - self->priv->last_count = G_MAXUINT64; -#line 13 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - self->priv->update_every = 1; -#line 14 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - self->priv->minimum_on_screen_time_msec = 500; -#line 679 "ProgressDialog.c" -} - - -static void -progress_dialog_finalize (GObject * obj) -{ - ProgressDialog * self; -#line 8 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PROGRESS_DIALOG, ProgressDialog); -#line 9 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _g_object_unref0 (self->priv->progress_bar); -#line 10 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _g_object_unref0 (self->priv->cancel_button); -#line 11 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - _g_object_unref0 (self->priv->cancellable); -#line 8 "/home/jens/Source/shotwell/src/dialogs/ProgressDialog.vala" - G_OBJECT_CLASS (progress_dialog_parent_class)->finalize (obj); -#line 697 "ProgressDialog.c" -} - - -GType -progress_dialog_get_type (void) -{ - static volatile gsize progress_dialog_type_id__volatile = 0; - if (g_once_init_enter (&progress_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ProgressDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) progress_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProgressDialog), 0, (GInstanceInitFunc) progress_dialog_instance_init, NULL }; - GType progress_dialog_type_id; - progress_dialog_type_id = g_type_register_static (gtk_window_get_type (), "ProgressDialog", &g_define_type_info, 0); - g_once_init_leave (&progress_dialog_type_id__volatile, progress_dialog_type_id); - } - return progress_dialog_type_id__volatile; -} - - - diff --git a/src/dialogs/SetBackground.c b/src/dialogs/SetBackground.c deleted file mode 100644 index 88577ce..0000000 --- a/src/dialogs/SetBackground.c +++ /dev/null @@ -1,295 +0,0 @@ -/* SetBackground.c generated by valac 0.40.4, the Vala compiler - * generated from SetBackground.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * Copyright 2017 Jens Georg - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include - - -#define TYPE_SET_BACKGROUND_PHOTO_DIALOG (set_background_photo_dialog_get_type ()) -#define SET_BACKGROUND_PHOTO_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialog)) -#define SET_BACKGROUND_PHOTO_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialogClass)) -#define IS_SET_BACKGROUND_PHOTO_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG)) -#define IS_SET_BACKGROUND_PHOTO_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_BACKGROUND_PHOTO_DIALOG)) -#define SET_BACKGROUND_PHOTO_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialogClass)) - -typedef struct _SetBackgroundPhotoDialog SetBackgroundPhotoDialog; -typedef struct _SetBackgroundPhotoDialogClass SetBackgroundPhotoDialogClass; -typedef struct _SetBackgroundPhotoDialogPrivate SetBackgroundPhotoDialogPrivate; -enum { - SET_BACKGROUND_PHOTO_DIALOG_0_PROPERTY, - SET_BACKGROUND_PHOTO_DIALOG_NUM_PROPERTIES -}; -static GParamSpec* set_background_photo_dialog_properties[SET_BACKGROUND_PHOTO_DIALOG_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -struct _SetBackgroundPhotoDialog { - GtkDialog parent_instance; - SetBackgroundPhotoDialogPrivate * priv; -}; - -struct _SetBackgroundPhotoDialogClass { - GtkDialogClass parent_class; -}; - -struct _SetBackgroundPhotoDialogPrivate { - GtkCheckButton* desktop_background_checkbox; - GtkCheckButton* screensaver_checkbox; -}; - - -static gpointer set_background_photo_dialog_parent_class = NULL; - -GType set_background_photo_dialog_get_type (void) G_GNUC_CONST; -#define SET_BACKGROUND_PHOTO_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialogPrivate)) -SetBackgroundPhotoDialog* set_background_photo_dialog_new (void); -SetBackgroundPhotoDialog* set_background_photo_dialog_construct (GType object_type); -gint resources_use_header_bar (void); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -static void set_background_photo_dialog_on_checkbox_clicked (SetBackgroundPhotoDialog* self); -static void _set_background_photo_dialog_on_checkbox_clicked_gtk_toggle_button_toggled (GtkToggleButton* _sender, - gpointer self); -gboolean set_background_photo_dialog_execute (SetBackgroundPhotoDialog* self, - gboolean* desktop_background, - gboolean* screensaver); -static void set_background_photo_dialog_finalize (GObject * obj); - - -SetBackgroundPhotoDialog* -set_background_photo_dialog_construct (GType object_type) -{ - SetBackgroundPhotoDialog * self = NULL; - AppWindow* _tmp0_; - AppWindow* _tmp1_; -#line 16 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - self = (SetBackgroundPhotoDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL); -#line 17 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _tmp0_ = app_window_get_instance (); -#line 17 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _tmp1_ = _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow)); -#line 17 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _g_object_unref0 (_tmp1_); -#line 15 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - return self; -#line 107 "SetBackground.c" -} - - -SetBackgroundPhotoDialog* -set_background_photo_dialog_new (void) -{ -#line 15 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - return set_background_photo_dialog_construct (TYPE_SET_BACKGROUND_PHOTO_DIALOG); -#line 116 "SetBackground.c" -} - - -static void -set_background_photo_dialog_on_checkbox_clicked (SetBackgroundPhotoDialog* self) -{ - gboolean _tmp0_ = FALSE; - GtkCheckButton* _tmp1_; - gboolean _tmp2_; - gboolean _tmp3_; -#line 21 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - g_return_if_fail (IS_SET_BACKGROUND_PHOTO_DIALOG (self)); -#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _tmp1_ = self->priv->desktop_background_checkbox; -#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _tmp2_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _tmp3_ = _tmp2_; -#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - if (_tmp3_) { -#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _tmp0_ = TRUE; -#line 139 "SetBackground.c" - } else { - GtkCheckButton* _tmp4_; - gboolean _tmp5_; - gboolean _tmp6_; -#line 24 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _tmp4_ = self->priv->screensaver_checkbox; -#line 24 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _tmp5_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 24 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _tmp6_ = _tmp5_; -#line 24 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _tmp0_ = _tmp6_; -#line 152 "SetBackground.c" - } -#line 22 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - gtk_dialog_set_response_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK, _tmp0_); -#line 156 "SetBackground.c" -} - - -static void -_set_background_photo_dialog_on_checkbox_clicked_gtk_toggle_button_toggled (GtkToggleButton* _sender, - gpointer self) -{ -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - set_background_photo_dialog_on_checkbox_clicked ((SetBackgroundPhotoDialog*) self); -#line 166 "SetBackground.c" -} - - -gboolean -set_background_photo_dialog_execute (SetBackgroundPhotoDialog* self, - gboolean* desktop_background, - gboolean* screensaver) -{ - gboolean _vala_desktop_background = FALSE; - gboolean _vala_screensaver = FALSE; - gboolean result = FALSE; - gboolean _result_ = FALSE; - GtkCheckButton* _tmp0_; - gboolean _tmp1_; - gboolean _tmp2_; - GtkCheckButton* _tmp3_; - gboolean _tmp4_; - gboolean _tmp5_; -#line 27 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - g_return_val_if_fail (IS_SET_BACKGROUND_PHOTO_DIALOG (self), FALSE); -#line 28 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 29 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _result_ = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_OK); -#line 30 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 32 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _tmp0_ = self->priv->desktop_background_checkbox; -#line 32 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _tmp1_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 32 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _tmp2_ = _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _vala_desktop_background = _tmp2_; -#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _tmp3_ = self->priv->screensaver_checkbox; -#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _tmp4_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _tmp5_ = _tmp4_; -#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _vala_screensaver = _tmp5_; -#line 35 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 36 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - result = _result_; -#line 36 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - if (desktop_background) { -#line 36 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - *desktop_background = _vala_desktop_background; -#line 217 "SetBackground.c" - } -#line 36 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - if (screensaver) { -#line 36 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - *screensaver = _vala_screensaver; -#line 223 "SetBackground.c" - } -#line 36 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - return result; -#line 227 "SetBackground.c" -} - - -static void -set_background_photo_dialog_class_init (SetBackgroundPhotoDialogClass * klass) -{ - gint SetBackgroundPhotoDialog_private_offset; -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - set_background_photo_dialog_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - g_type_class_add_private (klass, sizeof (SetBackgroundPhotoDialogPrivate)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - G_OBJECT_CLASS (klass)->finalize = set_background_photo_dialog_finalize; -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - SetBackgroundPhotoDialog_private_offset = g_type_class_get_instance_private_offset (klass); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/set_background_dialog.ui"); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "desktop_background_checkbox", FALSE, SetBackgroundPhotoDialog_private_offset + G_STRUCT_OFFSET (SetBackgroundPhotoDialogPrivate, desktop_background_checkbox)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "screensaver_checkbox", FALSE, SetBackgroundPhotoDialog_private_offset + G_STRUCT_OFFSET (SetBackgroundPhotoDialogPrivate, screensaver_checkbox)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_checkbox_clicked", G_CALLBACK(_set_background_photo_dialog_on_checkbox_clicked_gtk_toggle_button_toggled)); -#line 251 "SetBackground.c" -} - - -static void -set_background_photo_dialog_instance_init (SetBackgroundPhotoDialog * self) -{ -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - self->priv = SET_BACKGROUND_PHOTO_DIALOG_GET_PRIVATE (self); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - gtk_widget_init_template (GTK_WIDGET (self)); -#line 262 "SetBackground.c" -} - - -static void -set_background_photo_dialog_finalize (GObject * obj) -{ - SetBackgroundPhotoDialog * self; -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SET_BACKGROUND_PHOTO_DIALOG, SetBackgroundPhotoDialog); -#line 11 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _g_object_unref0 (self->priv->desktop_background_checkbox); -#line 13 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - _g_object_unref0 (self->priv->screensaver_checkbox); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackground.vala" - G_OBJECT_CLASS (set_background_photo_dialog_parent_class)->finalize (obj); -#line 278 "SetBackground.c" -} - - -GType -set_background_photo_dialog_get_type (void) -{ - static volatile gsize set_background_photo_dialog_type_id__volatile = 0; - if (g_once_init_enter (&set_background_photo_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SetBackgroundPhotoDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_background_photo_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetBackgroundPhotoDialog), 0, (GInstanceInitFunc) set_background_photo_dialog_instance_init, NULL }; - GType set_background_photo_dialog_type_id; - set_background_photo_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "SetBackgroundPhotoDialog", &g_define_type_info, 0); - g_once_init_leave (&set_background_photo_dialog_type_id__volatile, set_background_photo_dialog_type_id); - } - return set_background_photo_dialog_type_id__volatile; -} - - - diff --git a/src/dialogs/SetBackgroundSlideshow.c b/src/dialogs/SetBackgroundSlideshow.c deleted file mode 100644 index aa581d4..0000000 --- a/src/dialogs/SetBackgroundSlideshow.c +++ /dev/null @@ -1,499 +0,0 @@ -/* SetBackgroundSlideshow.c generated by valac 0.40.4, the Vala compiler - * generated from SetBackgroundSlideshow.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * Copyright 2017 Jens Georg - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG (set_background_slideshow_dialog_get_type ()) -#define SET_BACKGROUND_SLIDESHOW_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialog)) -#define SET_BACKGROUND_SLIDESHOW_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialogClass)) -#define IS_SET_BACKGROUND_SLIDESHOW_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG)) -#define IS_SET_BACKGROUND_SLIDESHOW_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG)) -#define SET_BACKGROUND_SLIDESHOW_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialogClass)) - -typedef struct _SetBackgroundSlideshowDialog SetBackgroundSlideshowDialog; -typedef struct _SetBackgroundSlideshowDialogClass SetBackgroundSlideshowDialogClass; -typedef struct _SetBackgroundSlideshowDialogPrivate SetBackgroundSlideshowDialogPrivate; -enum { - SET_BACKGROUND_SLIDESHOW_DIALOG_0_PROPERTY, - SET_BACKGROUND_SLIDESHOW_DIALOG_NUM_PROPERTIES -}; -static GParamSpec* set_background_slideshow_dialog_properties[SET_BACKGROUND_SLIDESHOW_DIALOG_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; -#define _g_free0(var) (var = (g_free (var), NULL)) - -struct _SetBackgroundSlideshowDialog { - GtkDialog parent_instance; - SetBackgroundSlideshowDialogPrivate * priv; -}; - -struct _SetBackgroundSlideshowDialogClass { - GtkDialogClass parent_class; -}; - -struct _SetBackgroundSlideshowDialogPrivate { - GtkCheckButton* desktop_background_checkbox; - GtkCheckButton* screensaver_checkbox; - GtkScale* delay_scale; - GtkLabel* delay_value_label; - gint delay_value; -}; - - -static gpointer set_background_slideshow_dialog_parent_class = NULL; - -GType set_background_slideshow_dialog_get_type (void) G_GNUC_CONST; -#define SET_BACKGROUND_SLIDESHOW_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialogPrivate)) -SetBackgroundSlideshowDialog* set_background_slideshow_dialog_new (void); -SetBackgroundSlideshowDialog* set_background_slideshow_dialog_construct (GType object_type); -gint resources_use_header_bar (void); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -static void set_background_slideshow_dialog_real_constructed (GObject* base); -static void set_background_slideshow_dialog_on_delay_scale_value_changed (SetBackgroundSlideshowDialog* self); -static void set_background_slideshow_dialog_on_checkbox_clicked (SetBackgroundSlideshowDialog* self); -static void _set_background_slideshow_dialog_on_checkbox_clicked_gtk_toggle_button_toggled (GtkToggleButton* _sender, - gpointer self); -static void _set_background_slideshow_dialog_on_delay_scale_value_changed_gtk_range_value_changed (GtkRange* _sender, - gpointer self); -gboolean set_background_slideshow_dialog_execute (SetBackgroundSlideshowDialog* self, - gint* delay_value, - gboolean* desktop_background, - gboolean* screensaver); -static void set_background_slideshow_dialog_finalize (GObject * obj); - - -SetBackgroundSlideshowDialog* -set_background_slideshow_dialog_construct (GType object_type) -{ - SetBackgroundSlideshowDialog * self = NULL; - AppWindow* _tmp0_; - AppWindow* _tmp1_; -#line 22 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - self = (SetBackgroundSlideshowDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL); -#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp0_ = app_window_get_instance (); -#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp1_ = _tmp0_; -#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow)); -#line 23 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _g_object_unref0 (_tmp1_); -#line 21 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - return self; -#line 121 "SetBackgroundSlideshow.c" -} - - -SetBackgroundSlideshowDialog* -set_background_slideshow_dialog_new (void) -{ -#line 21 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - return set_background_slideshow_dialog_construct (TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG); -#line 130 "SetBackgroundSlideshow.c" -} - - -static void -set_background_slideshow_dialog_real_constructed (GObject* base) -{ - SetBackgroundSlideshowDialog * self; -#line 26 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialog); -#line 27 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - set_background_slideshow_dialog_on_delay_scale_value_changed (self); -#line 142 "SetBackgroundSlideshow.c" -} - - -static void -set_background_slideshow_dialog_on_checkbox_clicked (SetBackgroundSlideshowDialog* self) -{ - gboolean _tmp0_ = FALSE; - GtkCheckButton* _tmp1_; - gboolean _tmp2_; - gboolean _tmp3_; -#line 31 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - g_return_if_fail (IS_SET_BACKGROUND_SLIDESHOW_DIALOG (self)); -#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp1_ = self->priv->desktop_background_checkbox; -#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp2_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp3_ = _tmp2_; -#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - if (_tmp3_) { -#line 33 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp0_ = TRUE; -#line 165 "SetBackgroundSlideshow.c" - } else { - GtkCheckButton* _tmp4_; - gboolean _tmp5_; - gboolean _tmp6_; -#line 34 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp4_ = self->priv->screensaver_checkbox; -#line 34 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp5_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 34 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp6_ = _tmp5_; -#line 34 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp0_ = _tmp6_; -#line 178 "SetBackgroundSlideshow.c" - } -#line 32 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - gtk_dialog_set_response_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK, _tmp0_); -#line 182 "SetBackgroundSlideshow.c" -} - - -static void -_set_background_slideshow_dialog_on_checkbox_clicked_gtk_toggle_button_toggled (GtkToggleButton* _sender, - gpointer self) -{ -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - set_background_slideshow_dialog_on_checkbox_clicked ((SetBackgroundSlideshowDialog*) self); -#line 192 "SetBackgroundSlideshow.c" -} - - -static void -set_background_slideshow_dialog_on_delay_scale_value_changed (SetBackgroundSlideshowDialog* self) -{ - gdouble value = 0.0; - GtkScale* _tmp0_; - GtkAdjustment* _tmp1_; - GtkAdjustment* _tmp2_; - gdouble _tmp3_; - gdouble _tmp4_; - gdouble _tmp5_; - gchar* text = NULL; - gint _tmp6_; - GtkLabel* _tmp23_; - const gchar* _tmp24_; -#line 38 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - g_return_if_fail (IS_SET_BACKGROUND_SLIDESHOW_DIALOG (self)); -#line 39 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp0_ = self->priv->delay_scale; -#line 39 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp1_ = gtk_range_get_adjustment (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange)); -#line 39 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp2_ = _tmp1_; -#line 39 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp3_ = gtk_adjustment_get_value (_tmp2_); -#line 39 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp4_ = _tmp3_; -#line 39 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - value = _tmp4_; -#line 44 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp5_ = value; -#line 44 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - self->priv->delay_value = (gint) (((((pow (_tmp5_, (gdouble) 5) / pow ((gdouble) 90, (gdouble) 5)) * 60) * 60) * 24) + 5); -#line 48 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp6_ = self->priv->delay_value; -#line 48 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - if (_tmp6_ < 60) { -#line 232 "SetBackgroundSlideshow.c" - gint _tmp7_; - gint _tmp8_; - gchar* _tmp9_; -#line 49 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp7_ = self->priv->delay_value; -#line 49 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp8_ = self->priv->delay_value; -#line 49 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp9_ = g_strdup_printf (ngettext ("%d second", "%d seconds", (gulong) _tmp7_), _tmp8_); -#line 49 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _g_free0 (text); -#line 49 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - text = _tmp9_; -#line 246 "SetBackgroundSlideshow.c" - } else { - gint _tmp10_; -#line 50 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp10_ = self->priv->delay_value; -#line 50 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - if (_tmp10_ < (60 * 60)) { -#line 253 "SetBackgroundSlideshow.c" - gint minutes = 0; - gint _tmp11_; - gint _tmp12_; - gint _tmp13_; - gchar* _tmp14_; - gint _tmp15_; -#line 51 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp11_ = self->priv->delay_value; -#line 51 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - minutes = _tmp11_ / 60; -#line 52 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp12_ = minutes; -#line 52 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp13_ = minutes; -#line 52 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp14_ = g_strdup_printf (ngettext ("%d minute", "%d minutes", (gulong) _tmp12_), _tmp13_); -#line 52 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _g_free0 (text); -#line 52 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - text = _tmp14_; -#line 53 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp15_ = minutes; -#line 53 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - self->priv->delay_value = _tmp15_ * 60; -#line 278 "SetBackgroundSlideshow.c" - } else { - gint _tmp16_; -#line 54 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp16_ = self->priv->delay_value; -#line 54 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - if (_tmp16_ < ((60 * 60) * 24)) { -#line 285 "SetBackgroundSlideshow.c" - gint hours = 0; - gint _tmp17_; - gint _tmp18_; - gint _tmp19_; - gchar* _tmp20_; - gint _tmp21_; -#line 55 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp17_ = self->priv->delay_value; -#line 55 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - hours = _tmp17_ / (60 * 60); -#line 56 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp18_ = hours; -#line 56 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp19_ = hours; -#line 56 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp20_ = g_strdup_printf (ngettext ("%d hour", "%d hours", (gulong) _tmp18_), _tmp19_); -#line 56 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _g_free0 (text); -#line 56 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - text = _tmp20_; -#line 57 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp21_ = hours; -#line 57 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - self->priv->delay_value = _tmp21_ * (60 * 60); -#line 310 "SetBackgroundSlideshow.c" - } else { - gchar* _tmp22_; -#line 59 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp22_ = g_strdup (_ ("1 day")); -#line 59 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _g_free0 (text); -#line 59 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - text = _tmp22_; -#line 60 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - self->priv->delay_value = (60 * 60) * 24; -#line 321 "SetBackgroundSlideshow.c" - } - } - } -#line 63 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp23_ = self->priv->delay_value_label; -#line 63 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp24_ = text; -#line 63 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - gtk_label_set_label (_tmp23_, _tmp24_); -#line 38 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _g_free0 (text); -#line 333 "SetBackgroundSlideshow.c" -} - - -static void -_set_background_slideshow_dialog_on_delay_scale_value_changed_gtk_range_value_changed (GtkRange* _sender, - gpointer self) -{ -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - set_background_slideshow_dialog_on_delay_scale_value_changed ((SetBackgroundSlideshowDialog*) self); -#line 343 "SetBackgroundSlideshow.c" -} - - -gboolean -set_background_slideshow_dialog_execute (SetBackgroundSlideshowDialog* self, - gint* delay_value, - gboolean* desktop_background, - gboolean* screensaver) -{ - gint _vala_delay_value = 0; - gboolean _vala_desktop_background = FALSE; - gboolean _vala_screensaver = FALSE; - gboolean result = FALSE; - gboolean _result_ = FALSE; - gint _tmp0_; - GtkCheckButton* _tmp1_; - gboolean _tmp2_; - gboolean _tmp3_; - GtkCheckButton* _tmp4_; - gboolean _tmp5_; - gboolean _tmp6_; -#line 66 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - g_return_val_if_fail (IS_SET_BACKGROUND_SLIDESHOW_DIALOG (self), FALSE); -#line 67 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 68 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _result_ = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_OK); -#line 69 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 71 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp0_ = self->priv->delay_value; -#line 71 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _vala_delay_value = _tmp0_; -#line 72 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp1_ = self->priv->desktop_background_checkbox; -#line 72 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp2_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 72 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp3_ = _tmp2_; -#line 72 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _vala_desktop_background = _tmp3_; -#line 73 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp4_ = self->priv->screensaver_checkbox; -#line 73 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp5_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 73 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _tmp6_ = _tmp5_; -#line 73 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _vala_screensaver = _tmp6_; -#line 75 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 76 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - result = _result_; -#line 76 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - if (delay_value) { -#line 76 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - *delay_value = _vala_delay_value; -#line 401 "SetBackgroundSlideshow.c" - } -#line 76 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - if (desktop_background) { -#line 76 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - *desktop_background = _vala_desktop_background; -#line 407 "SetBackgroundSlideshow.c" - } -#line 76 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - if (screensaver) { -#line 76 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - *screensaver = _vala_screensaver; -#line 413 "SetBackgroundSlideshow.c" - } -#line 76 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - return result; -#line 417 "SetBackgroundSlideshow.c" -} - - -static void -set_background_slideshow_dialog_class_init (SetBackgroundSlideshowDialogClass * klass) -{ - gint SetBackgroundSlideshowDialog_private_offset; -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - set_background_slideshow_dialog_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - g_type_class_add_private (klass, sizeof (SetBackgroundSlideshowDialogPrivate)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - ((GObjectClass *) klass)->constructed = (void (*) (GObject *)) set_background_slideshow_dialog_real_constructed; -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - G_OBJECT_CLASS (klass)->finalize = set_background_slideshow_dialog_finalize; -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - SetBackgroundSlideshowDialog_private_offset = g_type_class_get_instance_private_offset (klass); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/set_background_slideshow_dialog.ui"); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "desktop_background_checkbox", FALSE, SetBackgroundSlideshowDialog_private_offset + G_STRUCT_OFFSET (SetBackgroundSlideshowDialogPrivate, desktop_background_checkbox)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "screensaver_checkbox", FALSE, SetBackgroundSlideshowDialog_private_offset + G_STRUCT_OFFSET (SetBackgroundSlideshowDialogPrivate, screensaver_checkbox)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "delay_scale", FALSE, SetBackgroundSlideshowDialog_private_offset + G_STRUCT_OFFSET (SetBackgroundSlideshowDialogPrivate, delay_scale)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "delay_value_label", FALSE, SetBackgroundSlideshowDialog_private_offset + G_STRUCT_OFFSET (SetBackgroundSlideshowDialogPrivate, delay_value_label)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_checkbox_clicked", G_CALLBACK(_set_background_slideshow_dialog_on_checkbox_clicked_gtk_toggle_button_toggled)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - gtk_widget_class_bind_template_callback_full (GTK_WIDGET_CLASS (klass), "on_delay_scale_value_changed", G_CALLBACK(_set_background_slideshow_dialog_on_delay_scale_value_changed_gtk_range_value_changed)); -#line 449 "SetBackgroundSlideshow.c" -} - - -static void -set_background_slideshow_dialog_instance_init (SetBackgroundSlideshowDialog * self) -{ -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - self->priv = SET_BACKGROUND_SLIDESHOW_DIALOG_GET_PRIVATE (self); -#line 19 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - self->priv->delay_value = 0; -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - gtk_widget_init_template (GTK_WIDGET (self)); -#line 462 "SetBackgroundSlideshow.c" -} - - -static void -set_background_slideshow_dialog_finalize (GObject * obj) -{ - SetBackgroundSlideshowDialog * self; -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SET_BACKGROUND_SLIDESHOW_DIALOG, SetBackgroundSlideshowDialog); -#line 11 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _g_object_unref0 (self->priv->desktop_background_checkbox); -#line 13 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _g_object_unref0 (self->priv->screensaver_checkbox); -#line 15 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _g_object_unref0 (self->priv->delay_scale); -#line 17 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - _g_object_unref0 (self->priv->delay_value_label); -#line 9 "/home/jens/Source/shotwell/src/dialogs/SetBackgroundSlideshow.vala" - G_OBJECT_CLASS (set_background_slideshow_dialog_parent_class)->finalize (obj); -#line 482 "SetBackgroundSlideshow.c" -} - - -GType -set_background_slideshow_dialog_get_type (void) -{ - static volatile gsize set_background_slideshow_dialog_type_id__volatile = 0; - if (g_once_init_enter (&set_background_slideshow_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SetBackgroundSlideshowDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_background_slideshow_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetBackgroundSlideshowDialog), 0, (GInstanceInitFunc) set_background_slideshow_dialog_instance_init, NULL }; - GType set_background_slideshow_dialog_type_id; - set_background_slideshow_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "SetBackgroundSlideshowDialog", &g_define_type_info, 0); - g_once_init_leave (&set_background_slideshow_dialog_type_id__volatile, set_background_slideshow_dialog_type_id); - } - return set_background_slideshow_dialog_type_id__volatile; -} - - - diff --git a/src/dialogs/TextEntry.c b/src/dialogs/TextEntry.c deleted file mode 100644 index 97716a3..0000000 --- a/src/dialogs/TextEntry.c +++ /dev/null @@ -1,400 +0,0 @@ -/* TextEntry.c generated by valac 0.40.4, the Vala compiler - * generated from TextEntry.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * Copyright 2017 Jens Georg - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include - - -#define TYPE_TEXT_ENTRY_DIALOG (text_entry_dialog_get_type ()) -#define TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialog)) -#define TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialogClass)) -#define IS_TEXT_ENTRY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ENTRY_DIALOG)) -#define IS_TEXT_ENTRY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ENTRY_DIALOG)) -#define TEXT_ENTRY_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialogClass)) - -typedef struct _TextEntryDialog TextEntryDialog; -typedef struct _TextEntryDialogClass TextEntryDialogClass; -typedef struct _TextEntryDialogPrivate TextEntryDialogPrivate; -enum { - TEXT_ENTRY_DIALOG_0_PROPERTY, - TEXT_ENTRY_DIALOG_NUM_PROPERTIES -}; -static GParamSpec* text_entry_dialog_properties[TEXT_ENTRY_DIALOG_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_ENTRY_MULTI_COMPLETION (entry_multi_completion_get_type ()) -#define ENTRY_MULTI_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletion)) -#define ENTRY_MULTI_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletionClass)) -#define IS_ENTRY_MULTI_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ENTRY_MULTI_COMPLETION)) -#define IS_ENTRY_MULTI_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ENTRY_MULTI_COMPLETION)) -#define ENTRY_MULTI_COMPLETION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ENTRY_MULTI_COMPLETION, EntryMultiCompletionClass)) - -typedef struct _EntryMultiCompletion EntryMultiCompletion; -typedef struct _EntryMultiCompletionClass EntryMultiCompletionClass; -#define _g_free0(var) (var = (g_free (var), NULL)) - -struct _TextEntryDialog { - GtkDialog parent_instance; - TextEntryDialogPrivate * priv; -}; - -struct _TextEntryDialogClass { - GtkDialogClass parent_class; -}; - -typedef gboolean (*TextEntryDialogOnModifyValidateType) (const gchar* text, void* user_data); -struct _TextEntryDialogPrivate { - TextEntryDialogOnModifyValidateType on_modify_validate; - gpointer on_modify_validate_target; - GtkEntry* entry; - GtkLabel* label; -}; - - -static gpointer text_entry_dialog_parent_class = NULL; - -GType text_entry_dialog_get_type (void) G_GNUC_CONST; -#define TEXT_ENTRY_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TEXT_ENTRY_DIALOG, TextEntryDialogPrivate)) -TextEntryDialog* text_entry_dialog_new (void); -TextEntryDialog* text_entry_dialog_construct (GType object_type); -gint resources_use_header_bar (void); -void text_entry_dialog_setup (TextEntryDialog* self, - TextEntryDialogOnModifyValidateType modify_validate, - void* modify_validate_target, - const gchar* title, - const gchar* label, - const gchar* initial_text, - GeeCollection* completion_list, - const gchar* completion_delimiter); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -void text_entry_dialog_on_entry_changed (TextEntryDialog* self); -static void _text_entry_dialog_on_entry_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -GType entry_multi_completion_get_type (void) G_GNUC_CONST; -EntryMultiCompletion* entry_multi_completion_new (GeeCollection* completion_list, - const gchar* delimiter); -EntryMultiCompletion* entry_multi_completion_construct (GType object_type, - GeeCollection* completion_list, - const gchar* delimiter); -gchar* text_entry_dialog_execute (TextEntryDialog* self); -static void text_entry_dialog_finalize (GObject * obj); - - -TextEntryDialog* -text_entry_dialog_construct (GType object_type) -{ - TextEntryDialog * self = NULL; -#line 21 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - self = (TextEntryDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL); -#line 20 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - return self; -#line 126 "TextEntry.c" -} - - -TextEntryDialog* -text_entry_dialog_new (void) -{ -#line 20 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - return text_entry_dialog_construct (TYPE_TEXT_ENTRY_DIALOG); -#line 135 "TextEntry.c" -} - - -static void -_text_entry_dialog_on_entry_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 35 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - text_entry_dialog_on_entry_changed ((TextEntryDialog*) self); -#line 145 "TextEntry.c" -} - - -void -text_entry_dialog_setup (TextEntryDialog* self, - TextEntryDialogOnModifyValidateType modify_validate, - void* modify_validate_target, - const gchar* title, - const gchar* label, - const gchar* initial_text, - GeeCollection* completion_list, - const gchar* completion_delimiter) -{ - AppWindow* _tmp0_; - AppWindow* _tmp1_; - GdkWindow* _tmp2_; - AppWindow* _tmp3_; - AppWindow* _tmp4_; - GtkLabel* _tmp5_; - const gchar* _tmp6_ = NULL; - GtkEntry* _tmp7_; - GtkEntry* _tmp8_; - GtkEntry* _tmp9_; -#line 24 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - g_return_if_fail (IS_TEXT_ENTRY_DIALOG (self)); -#line 24 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - g_return_if_fail (title != NULL); -#line 24 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - g_return_if_fail (label != NULL); -#line 24 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - g_return_if_fail ((completion_list == NULL) || GEE_IS_COLLECTION (completion_list)); -#line 26 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), title); -#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp0_ = app_window_get_instance (); -#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp1_ = _tmp0_; -#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp2_ = gtk_widget_get_parent_window (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - gtk_widget_set_parent_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), _tmp2_); -#line 27 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _g_object_unref0 (_tmp1_); -#line 28 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp3_ = app_window_get_instance (); -#line 28 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp4_ = _tmp3_; -#line 28 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_window_get_type (), GtkWindow)); -#line 28 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _g_object_unref0 (_tmp4_); -#line 29 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - self->priv->on_modify_validate = modify_validate; -#line 29 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - self->priv->on_modify_validate_target = modify_validate_target; -#line 31 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp5_ = self->priv->label; -#line 31 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - gtk_label_set_text (_tmp5_, label); -#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - if (initial_text != NULL) { -#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp6_ = initial_text; -#line 209 "TextEntry.c" - } else { -#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp6_ = ""; -#line 213 "TextEntry.c" - } -#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp7_ = self->priv->entry; -#line 33 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - gtk_entry_set_text (_tmp7_, _tmp6_); -#line 34 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp8_ = self->priv->entry; -#line 34 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget)); -#line 35 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp9_ = self->priv->entry; -#line 35 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _text_entry_dialog_on_entry_changed_gtk_editable_changed, self, 0); -#line 37 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - if (completion_list != NULL) { -#line 229 "TextEntry.c" - EntryMultiCompletion* completion = NULL; - EntryMultiCompletion* _tmp10_; - GtkEntry* _tmp11_; - EntryMultiCompletion* _tmp12_; -#line 38 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp10_ = entry_multi_completion_new (completion_list, completion_delimiter); -#line 38 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - completion = _tmp10_; -#line 40 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp11_ = self->priv->entry; -#line 40 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp12_ = completion; -#line 40 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - gtk_entry_set_completion (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_entry_completion_get_type (), GtkEntryCompletion)); -#line 37 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _g_object_unref0 (completion); -#line 246 "TextEntry.c" - } -#line 43 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - gtk_dialog_set_default_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK); -#line 250 "TextEntry.c" -} - - -gchar* -text_entry_dialog_execute (TextEntryDialog* self) -{ - gchar* result = NULL; - gchar* text = NULL; - TextEntryDialogOnModifyValidateType _tmp0_; - void* _tmp0__target; - GtkEntry* _tmp1_; - const gchar* _tmp2_; - GtkEntry* _tmp6_; - guint _tmp7_; -#line 46 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - g_return_val_if_fail (IS_TEXT_ENTRY_DIALOG (self), NULL); -#line 47 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - text = NULL; -#line 50 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp0_ = self->priv->on_modify_validate; -#line 50 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp0__target = self->priv->on_modify_validate_target; -#line 50 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp1_ = self->priv->entry; -#line 50 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp2_ = gtk_entry_get_text (_tmp1_); -#line 50 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - gtk_dialog_set_response_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK, _tmp0_ (_tmp2_, _tmp0__target)); -#line 52 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 54 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - if (gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)) == ((gint) GTK_RESPONSE_OK)) { -#line 283 "TextEntry.c" - GtkEntry* _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; -#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp3_ = self->priv->entry; -#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp4_ = gtk_entry_get_text (_tmp3_); -#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp5_ = g_strdup (_tmp4_); -#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _g_free0 (text); -#line 55 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - text = _tmp5_; -#line 297 "TextEntry.c" - } -#line 57 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp6_ = self->priv->entry; -#line 57 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - g_signal_parse_name ("changed", gtk_editable_get_type (), &_tmp7_, NULL, FALSE); -#line 57 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_editable_get_type (), GtkEditable), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _text_entry_dialog_on_entry_changed_gtk_editable_changed, self); -#line 58 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 60 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - result = text; -#line 60 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - return result; -#line 311 "TextEntry.c" -} - - -void -text_entry_dialog_on_entry_changed (TextEntryDialog* self) -{ - TextEntryDialogOnModifyValidateType _tmp0_; - void* _tmp0__target; - GtkEntry* _tmp1_; - const gchar* _tmp2_; -#line 63 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - g_return_if_fail (IS_TEXT_ENTRY_DIALOG (self)); -#line 64 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp0_ = self->priv->on_modify_validate; -#line 64 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp0__target = self->priv->on_modify_validate_target; -#line 64 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp1_ = self->priv->entry; -#line 64 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _tmp2_ = gtk_entry_get_text (_tmp1_); -#line 64 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - gtk_dialog_set_response_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK, _tmp0_ (_tmp2_, _tmp0__target)); -#line 334 "TextEntry.c" -} - - -static void -text_entry_dialog_class_init (TextEntryDialogClass * klass) -{ - gint TextEntryDialog_private_offset; -#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - text_entry_dialog_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - g_type_class_add_private (klass, sizeof (TextEntryDialogPrivate)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - G_OBJECT_CLASS (klass)->finalize = text_entry_dialog_finalize; -#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - TextEntryDialog_private_offset = g_type_class_get_instance_private_offset (klass); -#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/textentrydialog.ui"); -#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "entry", FALSE, TextEntryDialog_private_offset + G_STRUCT_OFFSET (TextEntryDialogPrivate, entry)); -#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "label", FALSE, TextEntryDialog_private_offset + G_STRUCT_OFFSET (TextEntryDialogPrivate, label)); -#line 356 "TextEntry.c" -} - - -static void -text_entry_dialog_instance_init (TextEntryDialog * self) -{ -#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - self->priv = TEXT_ENTRY_DIALOG_GET_PRIVATE (self); -#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - gtk_widget_init_template (GTK_WIDGET (self)); -#line 367 "TextEntry.c" -} - - -static void -text_entry_dialog_finalize (GObject * obj) -{ - TextEntryDialog * self; -#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TEXT_ENTRY_DIALOG, TextEntryDialog); -#line 15 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _g_object_unref0 (self->priv->entry); -#line 18 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - _g_object_unref0 (self->priv->label); -#line 9 "/home/jens/Source/shotwell/src/dialogs/TextEntry.vala" - G_OBJECT_CLASS (text_entry_dialog_parent_class)->finalize (obj); -#line 383 "TextEntry.c" -} - - -GType -text_entry_dialog_get_type (void) -{ - static volatile gsize text_entry_dialog_type_id__volatile = 0; - if (g_once_init_enter (&text_entry_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TextEntryDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) text_entry_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TextEntryDialog), 0, (GInstanceInitFunc) text_entry_dialog_instance_init, NULL }; - GType text_entry_dialog_type_id; - text_entry_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "TextEntryDialog", &g_define_type_info, 0); - g_once_init_leave (&text_entry_dialog_type_id__volatile, text_entry_dialog_type_id); - } - return text_entry_dialog_type_id__volatile; -} - - - diff --git a/src/dialogs/WelcomeDialog.c b/src/dialogs/WelcomeDialog.c deleted file mode 100644 index 5cbd541..0000000 --- a/src/dialogs/WelcomeDialog.c +++ /dev/null @@ -1,1432 +0,0 @@ -/* WelcomeDialog.c generated by valac 0.40.4, the Vala compiler - * generated from WelcomeDialog.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * Copyright 2017 Jens Georg - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_WELCOME_SERVICE_ENTRY (welcome_service_entry_get_type ()) -#define WELCOME_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntry)) -#define IS_WELCOME_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WELCOME_SERVICE_ENTRY)) -#define WELCOME_SERVICE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntryIface)) - -typedef struct _WelcomeServiceEntry WelcomeServiceEntry; -typedef struct _WelcomeServiceEntryIface WelcomeServiceEntryIface; - -#define TYPE_WELCOME_DIALOG (welcome_dialog_get_type ()) -#define WELCOME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WELCOME_DIALOG, WelcomeDialog)) -#define WELCOME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WELCOME_DIALOG, WelcomeDialogClass)) -#define IS_WELCOME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WELCOME_DIALOG)) -#define IS_WELCOME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WELCOME_DIALOG)) -#define WELCOME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WELCOME_DIALOG, WelcomeDialogClass)) - -typedef struct _WelcomeDialog WelcomeDialog; -typedef struct _WelcomeDialogClass WelcomeDialogClass; -typedef struct _WelcomeDialogPrivate WelcomeDialogPrivate; - -#define SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST (spit_data_imports_welcome_import_meta_host_get_type ()) -#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHost)) -#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHostClass)) -#define SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST)) -#define SPIT_DATA_IMPORTS_IS_WELCOME_IMPORT_META_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST)) -#define SPIT_DATA_IMPORTS_WELCOME_IMPORT_META_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_DATA_IMPORTS_TYPE_WELCOME_IMPORT_META_HOST, SpitDataImportsWelcomeImportMetaHostClass)) - -typedef struct _SpitDataImportsWelcomeImportMetaHost SpitDataImportsWelcomeImportMetaHost; -typedef struct _SpitDataImportsWelcomeImportMetaHostClass SpitDataImportsWelcomeImportMetaHostClass; -enum { - WELCOME_DIALOG_0_PROPERTY, - WELCOME_DIALOG_NUM_PROPERTIES -}; -static GParamSpec* welcome_dialog_properties[WELCOME_DIALOG_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -struct _WelcomeServiceEntryIface { - GTypeInterface parent_iface; - gchar* (*get_service_name) (WelcomeServiceEntry* self); - void (*execute) (WelcomeServiceEntry* self); -}; - -struct _WelcomeDialog { - GtkDialog parent_instance; - WelcomeDialogPrivate * priv; -}; - -struct _WelcomeDialogClass { - GtkDialogClass parent_class; -}; - -struct _WelcomeDialogPrivate { - GtkCheckButton* hide_button; - GtkCheckButton* system_pictures_import_check; - GtkCheckButton** external_import_checks; - gint external_import_checks_length1; - gint _external_import_checks_size_; - WelcomeServiceEntry** external_import_entries; - gint external_import_entries_length1; - gint _external_import_entries_size_; - GtkLabel* secondary_text; - GtkLabel* instruction_header; - GtkBox* import_content; - GtkBox* import_action_checkbox_packer; - GtkBox* external_import_action_checkbox_packer; - SpitDataImportsWelcomeImportMetaHost* import_meta_host; - gboolean import_content_already_installed; - gboolean ok_clicked; -}; - - -static gpointer welcome_dialog_parent_class = NULL; - -GType welcome_service_entry_get_type (void) G_GNUC_CONST; -gchar* welcome_service_entry_get_service_name (WelcomeServiceEntry* self); -void welcome_service_entry_execute (WelcomeServiceEntry* self); -GType welcome_dialog_get_type (void) G_GNUC_CONST; -GType spit_data_imports_welcome_import_meta_host_get_type (void) G_GNUC_CONST; -#define WELCOME_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_WELCOME_DIALOG, WelcomeDialogPrivate)) -WelcomeDialog* welcome_dialog_new (GtkWindow* owner); -WelcomeDialog* welcome_dialog_construct (GType object_type, - GtkWindow* owner); -gint resources_use_header_bar (void); -SpitDataImportsWelcomeImportMetaHost* spit_data_imports_welcome_import_meta_host_new (WelcomeDialog* dialog); -SpitDataImportsWelcomeImportMetaHost* spit_data_imports_welcome_import_meta_host_construct (GType object_type, - WelcomeDialog* dialog); -static gboolean welcome_dialog_is_system_pictures_import_possible (void); -#define RESOURCES_OK_LABEL _ ("_OK") -gchar* get_display_pathname (GFile* file); -GFile* app_dirs_get_import_dir (void); -static void welcome_dialog_install_import_content (WelcomeDialog* self); -void spit_data_imports_welcome_import_meta_host_start (SpitDataImportsWelcomeImportMetaHost* self); -void welcome_dialog_install_service_entry (WelcomeDialog* self, - WelcomeServiceEntry* entry); -static void _vala_array_add4 (WelcomeServiceEntry** * array, - int* length, - int* size, - WelcomeServiceEntry* value); -static void _vala_array_add5 (GtkCheckButton** * array, - int* length, - int* size, - GtkCheckButton* value); -static void welcome_dialog_on_dismiss (WelcomeDialog* self, - gint resp); -gboolean welcome_dialog_execute (WelcomeDialog* self, - WelcomeServiceEntry*** selected_import_entries, - int* selected_import_entries_length1, - gboolean* do_system_pictures_import); -static void _welcome_dialog_on_dismiss_gtk_dialog_response (GtkDialog* _sender, - gint response_id, - gpointer self); -static void _vala_array_add6 (WelcomeServiceEntry** * array, - int* length, - int* size, - WelcomeServiceEntry* value); -static WelcomeServiceEntry** _vala_array_dup1 (WelcomeServiceEntry** self, - int length); -static void welcome_dialog_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -gchar* -welcome_service_entry_get_service_name (WelcomeServiceEntry* self) -{ -#line 9 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_return_val_if_fail (IS_WELCOME_SERVICE_ENTRY (self), NULL); -#line 9 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - return WELCOME_SERVICE_ENTRY_GET_INTERFACE (self)->get_service_name (self); -#line 157 "WelcomeDialog.c" -} - - -void -welcome_service_entry_execute (WelcomeServiceEntry* self) -{ -#line 11 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_return_if_fail (IS_WELCOME_SERVICE_ENTRY (self)); -#line 11 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - WELCOME_SERVICE_ENTRY_GET_INTERFACE (self)->execute (self); -#line 168 "WelcomeDialog.c" -} - - -static void -welcome_service_entry_base_init (WelcomeServiceEntryIface * iface) -{ -#line 8 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - static gboolean initialized = FALSE; -#line 8 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (!initialized) { -#line 8 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - initialized = TRUE; -#line 181 "WelcomeDialog.c" - } -} - - -GType -welcome_service_entry_get_type (void) -{ - static volatile gsize welcome_service_entry_type_id__volatile = 0; - if (g_once_init_enter (&welcome_service_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (WelcomeServiceEntryIface), (GBaseInitFunc) welcome_service_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType welcome_service_entry_type_id; - welcome_service_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "WelcomeServiceEntry", &g_define_type_info, 0); - g_type_interface_add_prerequisite (welcome_service_entry_type_id, G_TYPE_OBJECT); - g_once_init_leave (&welcome_service_entry_type_id__volatile, welcome_service_entry_type_id); - } - return welcome_service_entry_type_id__volatile; -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 32 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - return self ? g_object_ref (self) : NULL; -#line 206 "WelcomeDialog.c" -} - - -WelcomeDialog* -welcome_dialog_construct (GType object_type, - GtkWindow* owner) -{ - WelcomeDialog * self = NULL; - SpitDataImportsWelcomeImportMetaHost* _tmp0_; - gboolean show_system_pictures_import = FALSE; - GtkWidget* ok_button = NULL; - GtkWidget* _tmp1_; - GtkWidget* _tmp2_; - GtkLabel* primary_text = NULL; - GtkLabel* _tmp3_; - GtkLabel* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GtkLabel* _tmp7_; - GtkLabel* _tmp8_; - GtkLabel* _tmp9_; - GtkLabel* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - GtkLabel* _tmp13_; - GtkLabel* _tmp14_; - GtkImage* image = NULL; - GtkImage* _tmp15_; - GtkBox* header_text = NULL; - GtkBox* _tmp16_; - GtkBox* _tmp17_; - GtkLabel* _tmp18_; - GtkBox* _tmp19_; - GtkLabel* _tmp20_; - GtkBox* header_content = NULL; - GtkBox* _tmp21_; - GtkBox* _tmp22_; - GtkImage* _tmp23_; - GtkBox* _tmp24_; - GtkBox* _tmp25_; - GtkLabel* instructions = NULL; - GtkLabel* _tmp26_; - gchar* indent_prefix = NULL; - gchar* _tmp27_; - const gchar* _tmp28_ = NULL; - gchar* arrow_glyph = NULL; - gchar* _tmp29_; - GtkLabel* _tmp30_; - const gchar* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - const gchar* _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; - gchar* _tmp37_; - gchar* _tmp38_; - const gchar* _tmp39_; - gchar* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; - const gchar* _tmp44_; - gchar* _tmp45_; - gchar* _tmp46_; - gchar* _tmp47_; - gchar* _tmp48_; - GtkLabel* _tmp49_; - GtkLabel* _tmp50_; - GtkBox* _tmp51_; - GtkBox* _tmp52_; - GtkBox* _tmp53_; - GtkBox* _tmp54_; - gboolean _tmp55_; - GtkLabel* _tmp66_; - GtkLabel* _tmp67_; - GtkLabel* _tmp68_; - GtkLabel* _tmp69_; - GtkBox* content = NULL; - GtkBox* _tmp70_; - GtkBox* _tmp71_; - GtkBox* _tmp72_; - GtkBox* _tmp73_; - GtkLabel* _tmp74_; - GtkCheckButton* _tmp75_; - GtkCheckButton* _tmp76_; - GtkCheckButton* _tmp77_; - GtkBox* _tmp78_; - GtkWidget* _tmp79_; - SpitDataImportsWelcomeImportMetaHost* _tmp80_; -#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_return_val_if_fail (GTK_IS_WINDOW (owner), NULL); -#line 29 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self = (WelcomeDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL); -#line 30 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp0_ = spit_data_imports_welcome_import_meta_host_new (self); -#line 30 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (self->priv->import_meta_host); -#line 30 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->import_meta_host = _tmp0_; -#line 31 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - show_system_pictures_import = welcome_dialog_is_system_pictures_import_possible (); -#line 32 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp1_ = gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), RESOURCES_OK_LABEL, (gint) GTK_RESPONSE_CLOSE); -#line 32 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 32 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - ok_button = _tmp2_; -#line 33 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_dialog_set_default_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_CLOSE); -#line 35 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _ ("Welcome!")); -#line 36 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE); -#line 37 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_window_set_type_hint (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), GDK_WINDOW_TYPE_HINT_DIALOG); -#line 38 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), owner); -#line 40 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp3_ = (GtkLabel*) gtk_label_new (""); -#line 40 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_object_ref_sink (_tmp3_); -#line 40 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - primary_text = _tmp3_; -#line 41 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp4_ = primary_text; -#line 41 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp5_ = g_strdup_printf ("%s", _ ("Welcome to Shotwell!")); -#line 41 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp6_ = _tmp5_; -#line 41 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_label_set_markup (_tmp4_, _tmp6_); -#line 41 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_free0 (_tmp6_); -#line 43 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp7_ = primary_text; -#line 43 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_label_set_xalign (_tmp7_, 0.0f); -#line 44 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp8_ = primary_text; -#line 44 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_label_set_yalign (_tmp8_, 0.5f); -#line 45 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp9_ = (GtkLabel*) gtk_label_new (""); -#line 45 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_object_ref_sink (_tmp9_); -#line 45 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (self->priv->secondary_text); -#line 45 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->secondary_text = _tmp9_; -#line 46 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp10_ = self->priv->secondary_text; -#line 46 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp11_ = g_strdup_printf ("%s", _ ("To get started, import photos in any of these ways:")); -#line 46 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp12_ = _tmp11_; -#line 46 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_label_set_markup (_tmp10_, _tmp12_); -#line 46 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_free0 (_tmp12_); -#line 48 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp13_ = self->priv->secondary_text; -#line 48 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_label_set_xalign (_tmp13_, 0.0f); -#line 49 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp14_ = self->priv->secondary_text; -#line 49 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_label_set_yalign (_tmp14_, 0.5f); -#line 50 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp15_ = (GtkImage*) gtk_image_new_from_icon_name ("shotwell", (GtkIconSize) GTK_ICON_SIZE_DIALOG); -#line 50 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_object_ref_sink (_tmp15_); -#line 50 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - image = _tmp15_; -#line 52 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp16_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 52 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_object_ref_sink (_tmp16_); -#line 52 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - header_text = _tmp16_; -#line 53 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp17_ = header_text; -#line 53 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp18_ = primary_text; -#line 53 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_box_pack_start (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 5); -#line 54 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp19_ = header_text; -#line 54 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp20_ = self->priv->secondary_text; -#line 54 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_box_pack_start (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 56 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp21_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12); -#line 56 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_object_ref_sink (_tmp21_); -#line 56 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - header_content = _tmp21_; -#line 57 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp22_ = header_content; -#line 57 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp23_ = image; -#line 57 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_box_pack_start (_tmp22_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 58 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp24_ = header_content; -#line 58 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp25_ = header_text; -#line 58 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_box_pack_start (_tmp24_, G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 60 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp26_ = (GtkLabel*) gtk_label_new (""); -#line 60 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_object_ref_sink (_tmp26_); -#line 60 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - instructions = _tmp26_; -#line 61 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp27_ = g_strdup (" "); -#line 61 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - indent_prefix = _tmp27_; -#line 63 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (gtk_widget_get_direction (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)) == GTK_TEXT_DIR_RTL) { -#line 63 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp28_ = "◂"; -#line 430 "WelcomeDialog.c" - } else { -#line 63 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp28_ = "▸"; -#line 434 "WelcomeDialog.c" - } -#line 63 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp29_ = g_strdup (_tmp28_); -#line 63 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - arrow_glyph = _tmp29_; -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp30_ = instructions; -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp31_ = indent_prefix; -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp32_ = g_strconcat (_tmp31_, "• %s\n", NULL); -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp33_ = _tmp32_; -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp34_ = indent_prefix; -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp35_ = g_strconcat (_tmp34_, "• %s\n", NULL); -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp36_ = _tmp35_; -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp37_ = g_strconcat (_tmp33_, _tmp36_, NULL); -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp38_ = _tmp37_; -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp39_ = indent_prefix; -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp40_ = g_strconcat (_tmp39_, "• %s", NULL); -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp41_ = _tmp40_; -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp42_ = g_strconcat (_tmp38_, _tmp41_, NULL); -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp43_ = _tmp42_; -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp44_ = arrow_glyph; -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp45_ = g_strdup_printf (_ ("Choose File %s Import From Folder"), _tmp44_); -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp46_ = _tmp45_; -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp47_ = g_strdup_printf (_tmp43_, _tmp46_, _ ("Drag and drop photos onto the Shotwell window"), _ ("Connect a camera to your computer and import")); -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp48_ = _tmp47_; -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_label_set_markup (_tmp30_, _tmp48_); -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_free0 (_tmp48_); -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_free0 (_tmp46_); -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_free0 (_tmp43_); -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_free0 (_tmp41_); -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_free0 (_tmp38_); -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_free0 (_tmp36_); -#line 65 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_free0 (_tmp33_); -#line 70 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp49_ = instructions; -#line 70 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_label_set_xalign (_tmp49_, 0.0f); -#line 71 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp50_ = instructions; -#line 71 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_label_set_yalign (_tmp50_, 0.5f); -#line 73 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp51_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 2); -#line 73 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_object_ref_sink (_tmp51_); -#line 73 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (self->priv->import_action_checkbox_packer); -#line 73 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->import_action_checkbox_packer = _tmp51_; -#line 75 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp52_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 2); -#line 75 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_object_ref_sink (_tmp52_); -#line 75 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (self->priv->external_import_action_checkbox_packer); -#line 75 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->external_import_action_checkbox_packer = _tmp52_; -#line 76 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp53_ = self->priv->import_action_checkbox_packer; -#line 76 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp54_ = self->priv->external_import_action_checkbox_packer; -#line 76 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, gtk_widget_get_type (), GtkWidget)); -#line 78 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp55_ = show_system_pictures_import; -#line 78 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (_tmp55_) { -#line 528 "WelcomeDialog.c" - GFile* _tmp56_; - GFile* _tmp57_; - gchar* _tmp58_; - gchar* _tmp59_; - gchar* _tmp60_; - gchar* _tmp61_; - GtkCheckButton* _tmp62_; - GtkBox* _tmp63_; - GtkCheckButton* _tmp64_; - GtkCheckButton* _tmp65_; -#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp56_ = app_dirs_get_import_dir (); -#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp57_ = _tmp56_; -#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp58_ = get_display_pathname (_tmp57_); -#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp59_ = _tmp58_; -#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp60_ = g_strdup_printf (_ ("_Import photos from your %s folder"), _tmp59_); -#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp61_ = _tmp60_; -#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp62_ = (GtkCheckButton*) gtk_check_button_new_with_mnemonic (_tmp61_); -#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_object_ref_sink (_tmp62_); -#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (self->priv->system_pictures_import_check); -#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->system_pictures_import_check = _tmp62_; -#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_free0 (_tmp61_); -#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_free0 (_tmp59_); -#line 79 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (_tmp57_); -#line 82 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp63_ = self->priv->import_action_checkbox_packer; -#line 82 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp64_ = self->priv->system_pictures_import_check; -#line 82 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_widget_get_type (), GtkWidget)); -#line 83 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp65_ = self->priv->system_pictures_import_check; -#line 83 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 575 "WelcomeDialog.c" - } -#line 86 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp66_ = (GtkLabel*) gtk_label_new (_ ("You can also import photos in any of these ways:")); -#line 86 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_object_ref_sink (_tmp66_); -#line 86 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (self->priv->instruction_header); -#line 86 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->instruction_header = _tmp66_; -#line 88 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp67_ = self->priv->instruction_header; -#line 88 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_label_set_xalign (_tmp67_, 0.0f); -#line 89 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp68_ = self->priv->instruction_header; -#line 89 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_label_set_yalign (_tmp68_, 0.5f); -#line 90 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp69_ = self->priv->instruction_header; -#line 90 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (_tmp69_, gtk_widget_get_type (), GtkWidget), 20); -#line 92 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp70_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 16); -#line 92 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_object_ref_sink (_tmp70_); -#line 92 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - content = _tmp70_; -#line 93 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp71_ = header_content; -#line 93 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_box_pack_start (content, G_TYPE_CHECK_INSTANCE_CAST (_tmp71_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 94 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp72_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 2); -#line 94 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_object_ref_sink (_tmp72_); -#line 94 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (self->priv->import_content); -#line 94 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->import_content = _tmp72_; -#line 95 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp73_ = self->priv->import_content; -#line 95 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, gtk_widget_get_type (), GtkWidget)); -#line 96 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp74_ = instructions; -#line 96 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_box_pack_start (content, G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 98 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp75_ = (GtkCheckButton*) gtk_check_button_new_with_mnemonic (_ ("_Don’t show this message again")); -#line 98 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_object_ref_sink (_tmp75_); -#line 98 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (self->priv->hide_button); -#line 98 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->hide_button = _tmp75_; -#line 99 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp76_ = self->priv->hide_button; -#line 99 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp76_, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 100 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp77_ = self->priv->hide_button; -#line 100 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_box_pack_start (content, G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 6); -#line 101 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_FILL); -#line 102 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_FILL); -#line 103 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), FALSE); -#line 104 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), FALSE); -#line 105 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), 12); -#line 106 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), 0); -#line 107 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), 12); -#line 108 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), 12); -#line 110 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp78_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 110 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_box_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, gtk_box_get_type (), GtkBox), G_TYPE_CHECK_INSTANCE_CAST (content, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 112 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp79_ = ok_button; -#line 112 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_widget_grab_focus (_tmp79_); -#line 114 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - welcome_dialog_install_import_content (self); -#line 116 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp80_ = self->priv->import_meta_host; -#line 116 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - spit_data_imports_welcome_import_meta_host_start (_tmp80_); -#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (content); -#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_free0 (arrow_glyph); -#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_free0 (indent_prefix); -#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (instructions); -#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (header_content); -#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (header_text); -#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (image); -#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (primary_text); -#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (ok_button); -#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - return self; -#line 689 "WelcomeDialog.c" -} - - -WelcomeDialog* -welcome_dialog_new (GtkWindow* owner) -{ -#line 28 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - return welcome_dialog_construct (TYPE_WELCOME_DIALOG, owner); -#line 698 "WelcomeDialog.c" -} - - -static void -welcome_dialog_install_import_content (WelcomeDialog* self) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GtkCheckButton** _tmp2_; - gint _tmp2__length1; -#line 119 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_return_if_fail (IS_WELCOME_DIALOG (self)); -#line 121 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp2_ = self->priv->external_import_checks; -#line 121 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp2__length1 = self->priv->external_import_checks_length1; -#line 121 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (_tmp2__length1 > 0) { -#line 121 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp1_ = TRUE; -#line 719 "WelcomeDialog.c" - } else { - GtkCheckButton* _tmp3_; -#line 121 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp3_ = self->priv->system_pictures_import_check; -#line 121 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp1_ = _tmp3_ != NULL; -#line 726 "WelcomeDialog.c" - } -#line 121 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (_tmp1_) { -#line 730 "WelcomeDialog.c" - gboolean _tmp4_; -#line 122 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp4_ = self->priv->import_content_already_installed; -#line 122 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp0_ = _tmp4_ == FALSE; -#line 736 "WelcomeDialog.c" - } else { -#line 121 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp0_ = FALSE; -#line 740 "WelcomeDialog.c" - } -#line 120 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (_tmp0_) { -#line 744 "WelcomeDialog.c" - GtkLabel* _tmp5_; - GtkBox* _tmp6_; - GtkBox* _tmp7_; - GtkBox* _tmp8_; - GtkLabel* _tmp9_; -#line 124 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp5_ = self->priv->secondary_text; -#line 124 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_label_set_markup (_tmp5_, ""); -#line 125 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp6_ = self->priv->import_content; -#line 125 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp7_ = self->priv->import_action_checkbox_packer; -#line 125 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget)); -#line 126 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp8_ = self->priv->import_content; -#line 126 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp9_ = self->priv->instruction_header; -#line 126 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget)); -#line 127 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->import_content_already_installed = TRUE; -#line 768 "WelcomeDialog.c" - } -} - - -static void -_vala_array_add4 (WelcomeServiceEntry** * array, - int* length, - int* size, - WelcomeServiceEntry* value) -{ -#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if ((*length) == (*size)) { -#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - *array = g_renew (WelcomeServiceEntry*, *array, (*size) + 1); -#line 785 "WelcomeDialog.c" - } -#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - (*array)[(*length)++] = value; -#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - (*array)[*length] = NULL; -#line 791 "WelcomeDialog.c" -} - - -static void -_vala_array_add5 (GtkCheckButton** * array, - int* length, - int* size, - GtkCheckButton* value) -{ -#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if ((*length) == (*size)) { -#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - *array = g_renew (GtkCheckButton*, *array, (*size) + 1); -#line 807 "WelcomeDialog.c" - } -#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - (*array)[(*length)++] = value; -#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - (*array)[*length] = NULL; -#line 813 "WelcomeDialog.c" -} - - -void -welcome_dialog_install_service_entry (WelcomeDialog* self, - WelcomeServiceEntry* entry) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - WelcomeServiceEntry** _tmp4_; - gint _tmp4__length1; - WelcomeServiceEntry* _tmp5_; - GtkCheckButton* entry_check = NULL; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - GtkCheckButton* _tmp10_; - GtkCheckButton* _tmp11_; - GtkCheckButton** _tmp12_; - gint _tmp12__length1; - GtkCheckButton* _tmp13_; - GtkBox* _tmp14_; -#line 131 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_return_if_fail (IS_WELCOME_DIALOG (self)); -#line 131 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_return_if_fail (IS_WELCOME_SERVICE_ENTRY (entry)); -#line 132 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp0_ = welcome_service_entry_get_service_name (entry); -#line 132 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp1_ = _tmp0_; -#line 132 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp2_ = g_strdup_printf ("WelcomeDialog: Installing service entry for %s", _tmp1_); -#line 132 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp3_ = _tmp2_; -#line 132 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_debug ("WelcomeDialog.vala:132: %s", _tmp3_); -#line 132 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_free0 (_tmp3_); -#line 132 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_free0 (_tmp1_); -#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp4_ = self->priv->external_import_entries; -#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp4__length1 = self->priv->external_import_entries_length1; -#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp5_ = _g_object_ref0 (entry); -#line 133 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _vala_array_add4 (&self->priv->external_import_entries, &self->priv->external_import_entries_length1, &self->priv->_external_import_entries_size_, _tmp5_); -#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp6_ = welcome_service_entry_get_service_name (entry); -#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp7_ = _tmp6_; -#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp8_ = g_strdup_printf (_ ("Import photos from your %s library"), _tmp7_); -#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp9_ = _tmp8_; -#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp10_ = (GtkCheckButton*) gtk_check_button_new_with_label (_tmp9_); -#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_object_ref_sink (_tmp10_); -#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp11_ = _tmp10_; -#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_free0 (_tmp9_); -#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_free0 (_tmp7_); -#line 134 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - entry_check = _tmp11_; -#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp12_ = self->priv->external_import_checks; -#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp12__length1 = self->priv->external_import_checks_length1; -#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp13_ = _g_object_ref0 (entry_check); -#line 136 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _vala_array_add5 (&self->priv->external_import_checks, &self->priv->external_import_checks_length1, &self->priv->_external_import_checks_size_, _tmp13_); -#line 137 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (entry_check, gtk_toggle_button_get_type (), GtkToggleButton), TRUE); -#line 138 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp14_ = self->priv->external_import_action_checkbox_packer; -#line 138 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (entry_check, gtk_widget_get_type (), GtkWidget)); -#line 139 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - welcome_dialog_install_import_content (self); -#line 131 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (entry_check); -#line 903 "WelcomeDialog.c" -} - - -/** - * Connected to the 'response' signal. This is part of a workaround - * for the fact that run()-ning this dialog can interfere with displaying - * images from a camera; please see #4997 for details. - */ -static void -welcome_dialog_on_dismiss (WelcomeDialog* self, - gint resp) -{ -#line 147 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_return_if_fail (IS_WELCOME_DIALOG (self)); -#line 148 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (resp == ((gint) GTK_RESPONSE_CLOSE)) { -#line 149 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->ok_clicked = TRUE; -#line 922 "WelcomeDialog.c" - } -#line 151 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 152 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_main_quit (); -#line 928 "WelcomeDialog.c" -} - - -static void -_welcome_dialog_on_dismiss_gtk_dialog_response (GtkDialog* _sender, - gint response_id, - gpointer self) -{ -#line 158 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - welcome_dialog_on_dismiss ((WelcomeDialog*) self, response_id); -#line 939 "WelcomeDialog.c" -} - - -static void -_vala_array_add6 (WelcomeServiceEntry** * array, - int* length, - int* size, - WelcomeServiceEntry* value) -{ -#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if ((*length) == (*size)) { -#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - *array = g_renew (WelcomeServiceEntry*, *array, (*size) + 1); -#line 955 "WelcomeDialog.c" - } -#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - (*array)[(*length)++] = value; -#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - (*array)[*length] = NULL; -#line 961 "WelcomeDialog.c" -} - - -static WelcomeServiceEntry** -_vala_array_dup1 (WelcomeServiceEntry** self, - int length) -{ - WelcomeServiceEntry** result; - int i; -#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - result = g_new0 (WelcomeServiceEntry*, length + 1); -#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - for (i = 0; i < length; i++) { -#line 975 "WelcomeDialog.c" - WelcomeServiceEntry* _tmp0_; -#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - result[i] = _tmp0_; -#line 981 "WelcomeDialog.c" - } -#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - return result; -#line 985 "WelcomeDialog.c" -} - - -gboolean -welcome_dialog_execute (WelcomeDialog* self, - WelcomeServiceEntry*** selected_import_entries, - int* selected_import_entries_length1, - gboolean* do_system_pictures_import) -{ - WelcomeServiceEntry** _vala_selected_import_entries = NULL; - int _vala_selected_import_entries_length1 = 0; - gboolean _vala_do_system_pictures_import = FALSE; - gboolean result = FALSE; - guint _tmp0_; - gboolean ok = FALSE; - gboolean _tmp1_; - gboolean show_dialog = FALSE; - gboolean _tmp2_; - WelcomeServiceEntry** _result_ = NULL; - WelcomeServiceEntry** _tmp4_; - gint _result__length1; - gint __result__size_; - WelcomeServiceEntry** _tmp17_; - gint _tmp17__length1; - WelcomeServiceEntry** _tmp18_; - gint _tmp18__length1; - gboolean _tmp19_ = FALSE; - GtkCheckButton* _tmp20_; -#line 155 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_return_val_if_fail (IS_WELCOME_DIALOG (self), FALSE); -#line 158 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), "response", (GCallback) _welcome_dialog_on_dismiss_gtk_dialog_response, self, 0); -#line 159 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 160 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 165 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_main (); -#line 169 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_signal_parse_name ("response", gtk_dialog_get_type (), &_tmp0_, NULL, FALSE); -#line 169 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _welcome_dialog_on_dismiss_gtk_dialog_response, self); -#line 171 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp1_ = self->priv->ok_clicked; -#line 171 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - ok = _tmp1_; -#line 172 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - show_dialog = TRUE; -#line 174 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp2_ = ok; -#line 174 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (_tmp2_) { -#line 1038 "WelcomeDialog.c" - GtkCheckButton* _tmp3_; -#line 175 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp3_ = self->priv->hide_button; -#line 175 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - show_dialog = !gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 1044 "WelcomeDialog.c" - } -#line 178 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp4_ = g_new0 (WelcomeServiceEntry*, 0 + 1); -#line 178 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _result_ = _tmp4_; -#line 178 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _result__length1 = 0; -#line 178 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - __result__size_ = _result__length1; -#line 1054 "WelcomeDialog.c" - { - gint i = 0; -#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - i = 0; -#line 1059 "WelcomeDialog.c" - { - gboolean _tmp5_ = FALSE; -#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp5_ = TRUE; -#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - while (TRUE) { -#line 1066 "WelcomeDialog.c" - gint _tmp7_; - WelcomeServiceEntry** _tmp8_; - gint _tmp8__length1; - GtkCheckButton** _tmp9_; - gint _tmp9__length1; - gint _tmp10_; - GtkCheckButton* _tmp11_; -#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (!_tmp5_) { -#line 1076 "WelcomeDialog.c" - gint _tmp6_; -#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp6_ = i; -#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - i = _tmp6_ + 1; -#line 1082 "WelcomeDialog.c" - } -#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp5_ = FALSE; -#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp7_ = i; -#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp8_ = self->priv->external_import_entries; -#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp8__length1 = self->priv->external_import_entries_length1; -#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (!(_tmp7_ < _tmp8__length1)) { -#line 179 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - break; -#line 1096 "WelcomeDialog.c" - } -#line 180 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp9_ = self->priv->external_import_checks; -#line 180 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp9__length1 = self->priv->external_import_checks_length1; -#line 180 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp10_ = i; -#line 180 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp11_ = _tmp9_[_tmp10_]; -#line 180 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_toggle_button_get_type (), GtkToggleButton)) == TRUE) { -#line 1108 "WelcomeDialog.c" - WelcomeServiceEntry** _tmp12_; - gint _tmp12__length1; - WelcomeServiceEntry** _tmp13_; - gint _tmp13__length1; - gint _tmp14_; - WelcomeServiceEntry* _tmp15_; - WelcomeServiceEntry* _tmp16_; -#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp12_ = _result_; -#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp12__length1 = _result__length1; -#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp13_ = self->priv->external_import_entries; -#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp13__length1 = self->priv->external_import_entries_length1; -#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp14_ = i; -#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp15_ = _tmp13_[_tmp14_]; -#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp16_ = _g_object_ref0 (_tmp15_); -#line 181 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _vala_array_add6 (&_result_, &_result__length1, &__result__size_, _tmp16_); -#line 1132 "WelcomeDialog.c" - } - } - } - } -#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp17_ = _result_; -#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp17__length1 = _result__length1; -#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp18_ = (_tmp17_ != NULL) ? _vala_array_dup1 (_tmp17_, _tmp17__length1) : ((gpointer) _tmp17_); -#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp18__length1 = _tmp17__length1; -#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _vala_selected_import_entries = (_vala_array_free (_vala_selected_import_entries, _vala_selected_import_entries_length1, (GDestroyNotify) g_object_unref), NULL); -#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _vala_selected_import_entries = _tmp18_; -#line 183 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _vala_selected_import_entries_length1 = _tmp18__length1; -#line 185 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp20_ = self->priv->system_pictures_import_check; -#line 185 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (_tmp20_ != NULL) { -#line 1155 "WelcomeDialog.c" - GtkCheckButton* _tmp21_; -#line 185 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp21_ = self->priv->system_pictures_import_check; -#line 185 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp19_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 1161 "WelcomeDialog.c" - } else { -#line 185 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp19_ = FALSE; -#line 1165 "WelcomeDialog.c" - } -#line 184 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _vala_do_system_pictures_import = _tmp19_; -#line 187 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - result = show_dialog; -#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _result_ = (_vala_array_free (_result_, _result__length1, (GDestroyNotify) g_object_unref), NULL); -#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (selected_import_entries) { -#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - *selected_import_entries = _vala_selected_import_entries; -#line 1179 "WelcomeDialog.c" - } else { -#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _vala_selected_import_entries = (_vala_array_free (_vala_selected_import_entries, _vala_selected_import_entries_length1, (GDestroyNotify) g_object_unref), NULL); -#line 1183 "WelcomeDialog.c" - } -#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (selected_import_entries_length1) { -#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - *selected_import_entries_length1 = _vala_selected_import_entries_length1; -#line 1189 "WelcomeDialog.c" - } -#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (do_system_pictures_import) { -#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - *do_system_pictures_import = _vala_do_system_pictures_import; -#line 1195 "WelcomeDialog.c" - } -#line 189 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - return result; -#line 1199 "WelcomeDialog.c" -} - - -static gboolean -welcome_dialog_is_system_pictures_import_possible (void) -{ - gboolean result = FALSE; - GFile* system_pictures = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - gboolean _tmp8_ = FALSE; - GError * _inner_error_ = NULL; -#line 193 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp0_ = app_dirs_get_import_dir (); -#line 193 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - system_pictures = _tmp0_; -#line 194 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp1_ = system_pictures; -#line 194 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (!g_file_query_exists (_tmp1_, NULL)) { -#line 195 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - result = FALSE; -#line 195 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (system_pictures); -#line 195 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - return result; -#line 1227 "WelcomeDialog.c" - } -#line 197 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp2_ = system_pictures; -#line 197 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (!(g_file_query_file_type (_tmp2_, G_FILE_QUERY_INFO_NONE, NULL) == G_FILE_TYPE_DIRECTORY)) { -#line 198 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - result = FALSE; -#line 198 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (system_pictures); -#line 198 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - return result; -#line 1239 "WelcomeDialog.c" - } - { - GFileEnumerator* syspics_child_enum = NULL; - GFile* _tmp3_; - GFileEnumerator* _tmp4_; - GFileInfo* _tmp5_ = NULL; - GFileEnumerator* _tmp6_; - GFileInfo* _tmp7_; -#line 201 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp3_ = system_pictures; -#line 201 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp4_ = g_file_enumerate_children (_tmp3_, "standard::*", G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_); -#line 201 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - syspics_child_enum = _tmp4_; -#line 201 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1256 "WelcomeDialog.c" - goto __catch24_g_error; - } -#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp6_ = syspics_child_enum; -#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp7_ = g_file_enumerator_next_file (_tmp6_, NULL, &_inner_error_); -#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp5_ = _tmp7_; -#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (syspics_child_enum); -#line 1269 "WelcomeDialog.c" - goto __catch24_g_error; - } -#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - result = _tmp5_ != NULL; -#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (_tmp5_); -#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (syspics_child_enum); -#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (system_pictures); -#line 203 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - return result; -#line 1282 "WelcomeDialog.c" - } - goto __finally24; - __catch24_g_error: - { - GError* e = NULL; -#line 200 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - e = _inner_error_; -#line 200 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _inner_error_ = NULL; -#line 205 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - result = FALSE; -#line 205 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_error_free0 (e); -#line 205 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (system_pictures); -#line 205 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - return result; -#line 1300 "WelcomeDialog.c" - } - __finally24: -#line 200 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (system_pictures); -#line 200 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 200 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_clear_error (&_inner_error_); -#line 200 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - return _tmp8_; -#line 1311 "WelcomeDialog.c" -} - - -static void -welcome_dialog_class_init (WelcomeDialogClass * klass) -{ -#line 14 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - welcome_dialog_parent_class = g_type_class_peek_parent (klass); -#line 14 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - g_type_class_add_private (klass, sizeof (WelcomeDialogPrivate)); -#line 14 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - G_OBJECT_CLASS (klass)->finalize = welcome_dialog_finalize; -#line 1324 "WelcomeDialog.c" -} - - -static void -welcome_dialog_instance_init (WelcomeDialog * self) -{ - GtkCheckButton** _tmp0_; - WelcomeServiceEntry** _tmp1_; -#line 14 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv = WELCOME_DIALOG_GET_PRIVATE (self); -#line 16 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->system_pictures_import_check = NULL; -#line 17 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp0_ = g_new0 (GtkCheckButton*, 0 + 1); -#line 17 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->external_import_checks = _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->external_import_checks_length1 = 0; -#line 17 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->_external_import_checks_size_ = self->priv->external_import_checks_length1; -#line 18 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _tmp1_ = g_new0 (WelcomeServiceEntry*, 0 + 1); -#line 18 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->external_import_entries = _tmp1_; -#line 18 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->external_import_entries_length1 = 0; -#line 18 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->_external_import_entries_size_ = self->priv->external_import_entries_length1; -#line 25 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->import_content_already_installed = FALSE; -#line 26 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->ok_clicked = FALSE; -#line 1357 "WelcomeDialog.c" -} - - -static void -welcome_dialog_finalize (GObject * obj) -{ - WelcomeDialog * self; -#line 14 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_WELCOME_DIALOG, WelcomeDialog); -#line 15 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (self->priv->hide_button); -#line 16 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (self->priv->system_pictures_import_check); -#line 17 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->external_import_checks = (_vala_array_free (self->priv->external_import_checks, self->priv->external_import_checks_length1, (GDestroyNotify) g_object_unref), NULL); -#line 18 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - self->priv->external_import_entries = (_vala_array_free (self->priv->external_import_entries, self->priv->external_import_entries_length1, (GDestroyNotify) g_object_unref), NULL); -#line 19 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (self->priv->secondary_text); -#line 20 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (self->priv->instruction_header); -#line 21 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (self->priv->import_content); -#line 22 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (self->priv->import_action_checkbox_packer); -#line 23 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (self->priv->external_import_action_checkbox_packer); -#line 24 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - _g_object_unref0 (self->priv->import_meta_host); -#line 14 "/home/jens/Source/shotwell/src/dialogs/WelcomeDialog.vala" - G_OBJECT_CLASS (welcome_dialog_parent_class)->finalize (obj); -#line 1389 "WelcomeDialog.c" -} - - -GType -welcome_dialog_get_type (void) -{ - static volatile gsize welcome_dialog_type_id__volatile = 0; - if (g_once_init_enter (&welcome_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (WelcomeDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) welcome_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (WelcomeDialog), 0, (GInstanceInitFunc) welcome_dialog_instance_init, NULL }; - GType welcome_dialog_type_id; - welcome_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "WelcomeDialog", &g_define_type_info, 0); - g_once_init_leave (&welcome_dialog_type_id__volatile, welcome_dialog_type_id); - } - return welcome_dialog_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/direct/Direct.c b/src/direct/Direct.c deleted file mode 100644 index 48e5fab..0000000 --- a/src/direct/Direct.c +++ /dev/null @@ -1,91 +0,0 @@ -/* Direct.c generated by valac 0.40.4, the Vala compiler - * generated from Direct.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/* This file is the master unit file for the Direct unit. It should be edited to include - * whatever code is deemed necessary. - * - * The init() and terminate() methods are mandatory. - * - * If the unit needs to be configured prior to initialization, add the proper parameters to - * the preconfigure() method, implement it, and ensure in init() that it's been called. - */ - - -#include -#include -#include - -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - - -extern GFile* direct_initial_file; -GFile* direct_initial_file = NULL; - -void direct_preconfigure (GFile* initial_file); -void direct_init (GError** error); -void direct_photo_init (GFile* initial_file); -void direct_terminate (void); -void direct_photo_terminate (void); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 21 "/home/jens/Source/shotwell/src/direct/Direct.vala" - return self ? g_object_ref (self) : NULL; -#line 46 "Direct.c" -} - - -void -direct_preconfigure (GFile* initial_file) -{ - GFile* _tmp0_; -#line 20 "/home/jens/Source/shotwell/src/direct/Direct.vala" - g_return_if_fail (G_IS_FILE (initial_file)); -#line 21 "/home/jens/Source/shotwell/src/direct/Direct.vala" - _tmp0_ = _g_object_ref0 (initial_file); -#line 21 "/home/jens/Source/shotwell/src/direct/Direct.vala" - _g_object_unref0 (direct_initial_file); -#line 21 "/home/jens/Source/shotwell/src/direct/Direct.vala" - direct_initial_file = _tmp0_; -#line 62 "Direct.c" -} - - -void -direct_init (GError** error) -{ - GFile* _tmp0_; - GFile* _tmp1_; -#line 25 "/home/jens/Source/shotwell/src/direct/Direct.vala" - _tmp0_ = direct_initial_file; -#line 25 "/home/jens/Source/shotwell/src/direct/Direct.vala" - _vala_assert (_tmp0_ != NULL, "initial_file != null"); -#line 27 "/home/jens/Source/shotwell/src/direct/Direct.vala" - _tmp1_ = direct_initial_file; -#line 27 "/home/jens/Source/shotwell/src/direct/Direct.vala" - direct_photo_init (_tmp1_); -#line 79 "Direct.c" -} - - -void -direct_terminate (void) -{ -#line 31 "/home/jens/Source/shotwell/src/direct/Direct.vala" - direct_photo_terminate (); -#line 88 "Direct.c" -} - - - diff --git a/src/direct/DirectPhoto.c b/src/direct/DirectPhoto.c deleted file mode 100644 index 42b8670..0000000 --- a/src/direct/DirectPhoto.c +++ /dev/null @@ -1,2997 +0,0 @@ -/* DirectPhoto.c generated by valac 0.40.4, the Vala compiler - * generated from DirectPhoto.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-graphics-processor.h" - - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; -typedef struct _DataSourcePrivate DataSourcePrivate; - -#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ()) -#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)) -#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) -#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK)) -#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK)) -#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) - -typedef struct _SourceHoldingTank SourceHoldingTank; -typedef struct _SourceHoldingTankClass SourceHoldingTankClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ()) -#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot)) -#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) -#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT)) -#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT)) -#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) - -typedef struct _SourceSnapshot SourceSnapshot; -typedef struct _SourceSnapshotClass SourceSnapshotClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; -typedef struct _ThumbnailSourcePrivate ThumbnailSourcePrivate; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_INDEXABLE (indexable_get_type ()) -#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable)) -#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE)) -#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface)) - -typedef struct _Indexable Indexable; -typedef struct _IndexableIface IndexableIface; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; -typedef struct _MediaSourcePrivate MediaSourcePrivate; - -#define TYPE_EVENT_ID (event_id_get_type ()) -typedef struct _EventID EventID; - -#define TYPE_BACKING_FILE_STATE (backing_file_state_get_type ()) -#define BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_FILE_STATE, BackingFileState)) -#define BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_FILE_STATE, BackingFileStateClass)) -#define IS_BACKING_FILE_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_FILE_STATE)) -#define IS_BACKING_FILE_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_FILE_STATE)) -#define BACKING_FILE_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_FILE_STATE, BackingFileStateClass)) - -typedef struct _BackingFileState BackingFileState; -typedef struct _BackingFileStateClass BackingFileStateClass; - -#define TYPE_RATING (rating_get_type ()) - -#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) -typedef struct _Scaling Scaling; - -#define TYPE_IMPORT_ID (import_id_get_type ()) -typedef struct _ImportID ImportID; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; -typedef struct _PhotoSourcePrivate PhotoSourcePrivate; - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; - -#define TYPE_DATEABLE (dateable_get_type ()) -#define DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATEABLE, Dateable)) -#define IS_DATEABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATEABLE)) -#define DATEABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_DATEABLE, DateableIface)) - -typedef struct _Dateable Dateable; -typedef struct _DateableIface DateableIface; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; -typedef struct _PhotoPrivate PhotoPrivate; - -#define TYPE_ROTATION (rotation_get_type ()) - -#define TYPE_PHOTO_ROW (photo_row_get_type ()) -#define PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_ROW, PhotoRow)) -#define PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_ROW, PhotoRowClass)) -#define IS_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_ROW)) -#define IS_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_ROW)) -#define PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_ROW, PhotoRowClass)) - -typedef struct _PhotoRow PhotoRow; -typedef struct _PhotoRowClass PhotoRowClass; - -#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ()) -#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow)) -#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) -#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW)) -#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW)) -#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) - -typedef struct _BackingPhotoRow BackingPhotoRow; -typedef struct _BackingPhotoRowClass BackingPhotoRowClass; - -#define TYPE_DIRECT_PHOTO (direct_photo_get_type ()) -#define DIRECT_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO, DirectPhoto)) -#define DIRECT_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO, DirectPhotoClass)) -#define IS_DIRECT_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO)) -#define IS_DIRECT_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO)) -#define DIRECT_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO, DirectPhotoClass)) - -typedef struct _DirectPhoto DirectPhoto; -typedef struct _DirectPhotoClass DirectPhotoClass; -typedef struct _DirectPhotoPrivate DirectPhotoPrivate; -enum { - DIRECT_PHOTO_0_PROPERTY, - DIRECT_PHOTO_NUM_PROPERTIES -}; -static GParamSpec* direct_photo_properties[DIRECT_PHOTO_NUM_PROPERTIES]; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_DIRECT_PHOTO_SOURCE_COLLECTION (direct_photo_source_collection_get_type ()) -#define DIRECT_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollection)) -#define DIRECT_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollectionClass)) -#define IS_DIRECT_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION)) -#define IS_DIRECT_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION)) -#define DIRECT_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollectionClass)) - -typedef struct _DirectPhotoSourceCollection DirectPhotoSourceCollection; -typedef struct _DirectPhotoSourceCollectionClass DirectPhotoSourceCollectionClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_ORIENTATION (orientation_get_type ()) -typedef struct _PhotoRowPrivate PhotoRowPrivate; - -#define TYPE_PHOTO_ID (photo_id_get_type ()) -typedef struct _PhotoID PhotoID; - -#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ()) -typedef struct _BackingPhotoID BackingPhotoID; - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) -typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_BACKING_FETCH_MODE (backing_fetch_mode_get_type ()) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_IMPORT_RESULT (import_result_get_type ()) - -#define PHOTO_TYPE_REIMPORT_MASTER_STATE (photo_reimport_master_state_get_type ()) -#define PHOTO_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterState)) -#define PHOTO_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass)) -#define PHOTO_IS_REIMPORT_MASTER_STATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE)) -#define PHOTO_IS_REIMPORT_MASTER_STATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_TYPE_REIMPORT_MASTER_STATE)) -#define PHOTO_REIMPORT_MASTER_STATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_TYPE_REIMPORT_MASTER_STATE, PhotoReimportMasterStateClass)) - -typedef struct _PhotoReimportMasterState PhotoReimportMasterState; -typedef struct _PhotoReimportMasterStateClass PhotoReimportMasterStateClass; -#define _photo_reimport_master_state_unref0(var) ((var == NULL) ? NULL : (var = (photo_reimport_master_state_unref (var), NULL))) - -#define TYPE_PHOTO_IMPORT_PARAMS (photo_import_params_get_type ()) -#define PHOTO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParams)) -#define PHOTO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParamsClass)) -#define IS_PHOTO_IMPORT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_IMPORT_PARAMS)) -#define IS_PHOTO_IMPORT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_IMPORT_PARAMS)) -#define PHOTO_IMPORT_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_IMPORT_PARAMS, PhotoImportParamsClass)) - -typedef struct _PhotoImportParams PhotoImportParams; -typedef struct _PhotoImportParamsClass PhotoImportParamsClass; - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; - -#define TYPE_PHOTO_TABLE (photo_table_get_type ()) -#define PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TABLE, PhotoTable)) -#define PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TABLE, PhotoTableClass)) -#define IS_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TABLE)) -#define IS_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TABLE)) -#define PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TABLE, PhotoTableClass)) - -typedef struct _PhotoTable PhotoTable; -typedef struct _PhotoTableClass PhotoTableClass; -typedef struct _PhotoImportParamsPrivate PhotoImportParamsPrivate; - -#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ()) - -#define TYPE_THUMBNAILS (thumbnails_get_type ()) -#define THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAILS, Thumbnails)) -#define THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAILS, ThumbnailsClass)) -#define IS_THUMBNAILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAILS)) -#define IS_THUMBNAILS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAILS)) -#define THUMBNAILS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAILS, ThumbnailsClass)) - -typedef struct _Thumbnails Thumbnails; -typedef struct _ThumbnailsClass ThumbnailsClass; -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) -#define _photo_import_params_unref0(var) ((var == NULL) ? NULL : (var = (photo_import_params_unref (var), NULL))) - -#define TYPE_PHOTO_PREVIEW (photo_preview_get_type ()) -#define PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_PREVIEW, PhotoPreview)) -#define PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_PREVIEW, PhotoPreviewClass)) -#define IS_PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_PREVIEW)) -#define IS_PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_PREVIEW)) -#define PHOTO_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_PREVIEW, PhotoPreviewClass)) - -typedef struct _PhotoPreview PhotoPreview; -typedef struct _PhotoPreviewClass PhotoPreviewClass; -#define _photo_preview_unref0(var) ((var == NULL) ? NULL : (var = (photo_preview_unref (var), NULL))) -#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL))) -enum { - DIRECT_PHOTO_CAN_ROTATE_CHANGED_SIGNAL, - DIRECT_PHOTO_NUM_SIGNALS -}; -static guint direct_photo_signals[DIRECT_PHOTO_NUM_SIGNALS] = {0}; -typedef struct _DataCollectionPrivate DataCollectionPrivate; - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; -typedef struct _SourceCollectionPrivate SourceCollectionPrivate; - -#define TYPE_SOURCE_BACKLINK (source_backlink_get_type ()) -#define SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_BACKLINK, SourceBacklink)) -#define SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) -#define IS_SOURCE_BACKLINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_BACKLINK)) -#define IS_SOURCE_BACKLINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_BACKLINK)) -#define SOURCE_BACKLINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_BACKLINK, SourceBacklinkClass)) - -typedef struct _SourceBacklink SourceBacklink; -typedef struct _SourceBacklinkClass SourceBacklinkClass; -typedef struct _DatabaseSourceCollectionPrivate DatabaseSourceCollectionPrivate; -typedef struct _DirectPhotoSourceCollectionPrivate DirectPhotoSourceCollectionPrivate; - -#define TYPE_DIRECTORY_MONITOR (directory_monitor_get_type ()) -#define DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitor)) -#define DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass)) -#define IS_DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECTORY_MONITOR)) -#define IS_DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECTORY_MONITOR)) -#define DIRECTORY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass)) - -typedef struct _DirectoryMonitor DirectoryMonitor; -typedef struct _DirectoryMonitorClass DirectoryMonitorClass; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataSource { - DataObject parent_instance; - DataSourcePrivate * priv; -}; - -struct _DataSourceClass { - DataObjectClass parent_class; - void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank); - void (*notify_unlinking) (DataSource* self, SourceCollection* collection); - void (*notify_unlinked) (DataSource* self); - void (*notify_relinking) (DataSource* self, SourceCollection* collection); - void (*notify_relinked) (DataSource* self); - gchar* (*get_typename) (DataSource* self); - gint64 (*get_instance_id) (DataSource* self); - gchar* (*get_source_id) (DataSource* self); - void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated); - SourceSnapshot* (*save_snapshot) (DataSource* self); - gboolean (*internal_delete_backing) (DataSource* self, GError** error); - gboolean (*equals) (DataSource* self, DataSource* source); - void (*destroy) (DataSource* self); - void (*unlinked) (DataSource* self, SourceCollection* sources); - void (*relinked) (DataSource* self, SourceCollection* sources); - void (*destroyed) (DataSource* self); -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _ThumbnailSource { - DataSource parent_instance; - ThumbnailSourcePrivate * priv; -}; - -struct _ThumbnailSourceClass { - DataSourceClass parent_class; - void (*notify_thumbnail_altered) (ThumbnailSource* self); - GdkPixbuf* (*get_thumbnail) (ThumbnailSource* self, gint scale, GError** error); - GdkPixbuf* (*create_thumbnail) (ThumbnailSource* self, gint scale, GError** error); - gchar* (*get_representative_id) (ThumbnailSource* self); - PhotoFileFormat (*get_preferred_thumbnail_format) (ThumbnailSource* self); - void (*thumbnail_altered) (ThumbnailSource* self); -}; - -struct _IndexableIface { - GTypeInterface parent_iface; - const gchar* (*get_indexable_keywords) (Indexable* self); -}; - -struct _EventID { - gint64 id; -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - PHOTO_EXCEPTION_NONE = 0, - PHOTO_EXCEPTION_ORIENTATION = 1 << 0, - PHOTO_EXCEPTION_CROP = 1 << 1, - PHOTO_EXCEPTION_REDEYE = 1 << 2, - PHOTO_EXCEPTION_ADJUST = 1 << 3, - PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4, - PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL -} PhotoException; - -struct _Dimensions { - gint width; - gint height; -}; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -struct _ImportID { - gint64 id; -}; - -struct _MediaSource { - ThumbnailSource parent_instance; - MediaSourcePrivate * priv; -}; - -struct _MediaSourceClass { - ThumbnailSourceClass parent_class; - void (*notify_master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file); - gboolean (*set_event_id) (MediaSource* self, EventID* id); - gchar* (*get_basename) (MediaSource* self); - GFile* (*get_file) (MediaSource* self); - GFile* (*get_master_file) (MediaSource* self); - guint64 (*get_master_filesize) (MediaSource* self); - guint64 (*get_filesize) (MediaSource* self); - time_t (*get_timestamp) (MediaSource* self); - BackingFileState** (*get_backing_files_state) (MediaSource* self, int* result_length1); - gchar* (*get_title) (MediaSource* self); - gchar* (*get_comment) (MediaSource* self); - void (*set_title) (MediaSource* self, const gchar* title); - gboolean (*set_comment) (MediaSource* self, const gchar* comment); - Rating (*get_rating) (MediaSource* self); - void (*set_rating) (MediaSource* self, Rating rating); - void (*increase_rating) (MediaSource* self); - void (*decrease_rating) (MediaSource* self); - void (*get_dimensions) (MediaSource* self, PhotoException disallowed_steps, Dimensions* result); - GdkPixbuf* (*get_preview_pixbuf) (MediaSource* self, Scaling* scaling, GError** error); - gboolean (*is_trashed) (MediaSource* self); - void (*trash) (MediaSource* self); - void (*untrash) (MediaSource* self); - gboolean (*is_offline) (MediaSource* self); - void (*mark_offline) (MediaSource* self); - void (*mark_online) (MediaSource* self); - gchar* (*get_master_md5) (MediaSource* self); - void (*get_event_id) (MediaSource* self, EventID* result); - time_t (*get_exposure_time) (MediaSource* self); - void (*get_import_id) (MediaSource* self, ImportID* result); - void (*master_replaced) (MediaSource* self, GFile* old_file, GFile* new_file); -}; - -struct _PhotoSource { - MediaSource parent_instance; - PhotoSourcePrivate * priv; -}; - -struct _PhotoSourceClass { - MediaSourceClass parent_class; - PhotoMetadata* (*get_metadata) (PhotoSource* self); - GdkPixbuf* (*get_pixbuf) (PhotoSource* self, Scaling* scaling, GError** error); -}; - -struct _DateableIface { - GTypeInterface parent_iface; - void (*set_exposure_time) (Dateable* self, time_t target_time); - time_t (*get_exposure_time) (Dateable* self); -}; - -typedef enum { - ROTATION_CLOCKWISE, - ROTATION_COUNTERCLOCKWISE, - ROTATION_MIRROR, - ROTATION_UPSIDE_DOWN -} Rotation; - -struct _Photo { - PhotoSource parent_instance; - PhotoPrivate * priv; - PhotoRow* row; - gboolean can_rotate_now; - BackingPhotoRow* backing_photo_row; -}; - -struct _PhotoClass { - PhotoSourceClass parent_class; - void (*notify_editable_replaced) (Photo* self, GFile* old_file, GFile* new_file); - void (*notify_raw_development_modified) (Photo* self); - void (*notify_baseline_replaced) (Photo* self); - void (*notify_master_reimported) (Photo* self, PhotoMetadata* metadata); - void (*notify_editable_reimported) (Photo* self, PhotoMetadata* metadata); - void (*notify_source_reimported) (Photo* self, PhotoMetadata* metadata); - void (*notify_baseline_reimported) (Photo* self, PhotoMetadata* metadata); - void (*apply_user_metadata_for_reimport) (Photo* self, PhotoMetadata* metadata); - void (*rotate) (Photo* self, Rotation rotation); - gboolean (*has_user_generated_metadata) (Photo* self); - void (*set_user_metadata_for_export) (Photo* self, PhotoMetadata* metadata); - void (*editable_replaced) (Photo* self, GFile* old_file, GFile* new_file); - void (*raw_development_modified) (Photo* self); - void (*baseline_replaced) (Photo* self); - void (*master_reimported) (Photo* self, PhotoMetadata* metadata); - void (*editable_reimported) (Photo* self, PhotoMetadata* metadata); - void (*baseline_reimported) (Photo* self, PhotoMetadata* metadata); - void (*source_reimported) (Photo* self, PhotoMetadata* metadata); -}; - -struct _DirectPhoto { - Photo parent_instance; - DirectPhotoPrivate * priv; -}; - -struct _DirectPhotoClass { - PhotoClass parent_class; -}; - -struct _DirectPhotoPrivate { - GdkPixbuf* preview; - gboolean loaded; -}; - -typedef enum { - ORIENTATION_MIN = 1, - ORIENTATION_TOP_LEFT = 1, - ORIENTATION_TOP_RIGHT = 2, - ORIENTATION_BOTTOM_RIGHT = 3, - ORIENTATION_BOTTOM_LEFT = 4, - ORIENTATION_LEFT_TOP = 5, - ORIENTATION_RIGHT_TOP = 6, - ORIENTATION_RIGHT_BOTTOM = 7, - ORIENTATION_LEFT_BOTTOM = 8, - ORIENTATION_MAX = 8 -} Orientation; - -struct _PhotoID { - gint64 id; -}; - -struct _BackingPhotoID { - gint64 id; -}; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _PhotoRow { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoRowPrivate * priv; - PhotoID photo_id; - BackingPhotoRow* master; - time_t exposure_time; - ImportID import_id; - EventID event_id; - Orientation orientation; - GeeHashMap* transformations; - gchar* md5; - gchar* thumbnail_md5; - gchar* exif_md5; - time_t time_created; - guint64 flags; - Rating rating; - gchar* title; - gchar* comment; - gchar* backlinks; - time_t time_reimported; - BackingPhotoID editable_id; - gboolean metadata_dirty; - RawDeveloper developer; - BackingPhotoID* development_ids; - gint development_ids_length1; -}; - -struct _PhotoRowClass { - GTypeClass parent_class; - void (*finalize) (PhotoRow *self); -}; - -struct _BackingPhotoRow { - GTypeInstance parent_instance; - volatile int ref_count; - BackingPhotoRowPrivate * priv; - BackingPhotoID id; - time_t time_created; - gchar* filepath; - gint64 filesize; - time_t timestamp; - PhotoFileFormat file_format; - Dimensions dim; - Orientation original_orientation; -}; - -struct _BackingPhotoRowClass { - GTypeClass parent_class; - void (*finalize) (BackingPhotoRow *self); -}; - -typedef enum { - BACKING_FETCH_MODE_SOURCE, - BACKING_FETCH_MODE_BASELINE, - BACKING_FETCH_MODE_MASTER, - BACKING_FETCH_MODE_UNMODIFIED -} BackingFetchMode; - -typedef enum { - IMPORT_RESULT_SUCCESS, - IMPORT_RESULT_FILE_ERROR, - IMPORT_RESULT_DECODE_ERROR, - IMPORT_RESULT_DATABASE_ERROR, - IMPORT_RESULT_USER_ABORT, - IMPORT_RESULT_NOT_A_FILE, - IMPORT_RESULT_PHOTO_EXISTS, - IMPORT_RESULT_UNSUPPORTED_FORMAT, - IMPORT_RESULT_NOT_AN_IMAGE, - IMPORT_RESULT_DISK_FAILURE, - IMPORT_RESULT_DISK_FULL, - IMPORT_RESULT_CAMERA_ERROR, - IMPORT_RESULT_FILE_WRITE_ERROR, - IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE -} ImportResult; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -typedef enum { - PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000, - PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001 -} PhotoFileSnifferOptions; - -struct _PhotoImportParams { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoImportParamsPrivate * priv; - GFile* file; - GFile* final_associated_file; - ImportID import_id; - PhotoFileSnifferOptions sniffer_options; - gchar* exif_md5; - gchar* thumbnail_md5; - gchar* full_md5; - Thumbnails* thumbnails; - PhotoRow* row; - GeeCollection* keywords; -}; - -struct _PhotoImportParamsClass { - GTypeClass parent_class; - void (*finalize) (PhotoImportParams *self); -}; - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -struct _DataCollection { - GTypeInstance parent_instance; - volatile int ref_count; - DataCollectionPrivate * priv; -}; - -struct _DataCollectionClass { - GTypeClass parent_class; - void (*finalize) (DataCollection *self); - gchar* (*to_string) (DataCollection* self); - void (*notify_items_added) (DataCollection* self, GeeIterable* added); - void (*notify_items_removed) (DataCollection* self, GeeIterable* removed); - void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*notify_items_altered) (DataCollection* self, GeeMap* items); - void (*notify_ordering_changed) (DataCollection* self); - void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*notify_property_cleared) (DataCollection* self, const gchar* name); - gboolean (*valid_type) (DataCollection* self, DataObject* object); - void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target); - void (*reset_comparator) (DataCollection* self); - GeeCollection* (*get_all) (DataCollection* self); - gint (*get_count) (DataCollection* self); - DataObject* (*get_at) (DataCollection* self, gint index); - gint (*index_of) (DataCollection* self, DataObject* object); - gboolean (*contains) (DataCollection* self, DataObject* object); - gboolean (*add) (DataCollection* self, DataObject* object); - GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target); - void (*remove_marked) (DataCollection* self, Marker* m); - void (*clear) (DataCollection* self); - void (*close) (DataCollection* self); - void (*notify_frozen) (DataCollection* self); - void (*notify_thawed) (DataCollection* self); - void (*items_added) (DataCollection* self, GeeIterable* added); - void (*items_removed) (DataCollection* self, GeeIterable* removed); - void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*items_altered) (DataCollection* self, GeeMap* items); - void (*ordering_changed) (DataCollection* self); - void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*property_cleared) (DataCollection* self, const gchar* name); - void (*frozen) (DataCollection* self); - void (*thawed) (DataCollection* self); -}; - -struct _SourceCollection { - DataCollection parent_instance; - SourceCollectionPrivate * priv; -}; - -struct _SourceCollectionClass { - DataCollectionClass parent_class; - gboolean (*holds_type_of_source) (SourceCollection* self, DataSource* source); - void (*notify_items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*notify_items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*notify_item_destroyed) (SourceCollection* self, DataSource* source); - void (*notify_items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*notify_unlinked_destroyed) (SourceCollection* self, DataSource* unlinked); - void (*notify_backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); - gboolean (*has_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*remove_backlink) (SourceCollection* self, SourceBacklink* backlink); - void (*items_unlinking) (SourceCollection* self, GeeCollection* unlinking); - void (*items_relinked) (SourceCollection* self, GeeCollection* relinked); - void (*item_destroyed) (SourceCollection* self, DataSource* source); - void (*items_destroyed) (SourceCollection* self, GeeCollection* destroyed); - void (*unlinked_destroyed) (SourceCollection* self, DataSource* source); - void (*backlink_removed) (SourceCollection* self, SourceBacklink* backlink, GeeCollection* sources); -}; - -struct _DatabaseSourceCollection { - SourceCollection parent_instance; - DatabaseSourceCollectionPrivate * priv; -}; - -struct _DatabaseSourceCollectionClass { - SourceCollectionClass parent_class; -}; - -struct _DirectPhotoSourceCollection { - DatabaseSourceCollection parent_instance; - DirectPhotoSourceCollectionPrivate * priv; -}; - -struct _DirectPhotoSourceCollectionClass { - DatabaseSourceCollectionClass parent_class; -}; - -struct _DirectPhotoSourceCollectionPrivate { - GeeCollection* prepared_photos; - GeeHashMap* file_map; - DirectoryMonitor* monitor; -}; - -typedef gint64 (*GetSourceDatabaseKey) (DataSource* source, void* user_data); - -static gpointer direct_photo_parent_class = NULL; -extern DirectPhotoSourceCollection* direct_photo_global; -DirectPhotoSourceCollection* direct_photo_global = NULL; -static gpointer direct_photo_source_collection_parent_class = NULL; - -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -gpointer source_holding_tank_ref (gpointer instance); -void source_holding_tank_unref (gpointer instance); -GParamSpec* param_spec_source_holding_tank (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_holding_tank (GValue* value, - gpointer v_object); -void value_take_source_holding_tank (GValue* value, - gpointer v_object); -gpointer value_get_source_holding_tank (const GValue* value); -GType source_holding_tank_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -gpointer source_snapshot_ref (gpointer instance); -void source_snapshot_unref (gpointer instance); -GParamSpec* param_spec_source_snapshot (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_snapshot (GValue* value, - gpointer v_object); -void value_take_source_snapshot (GValue* value, - gpointer v_object); -gpointer value_get_source_snapshot (const GValue* value); -GType source_snapshot_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType indexable_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType event_id_get_type (void) G_GNUC_CONST; -EventID* event_id_dup (const EventID* self); -void event_id_free (EventID* self); -gpointer backing_file_state_ref (gpointer instance); -void backing_file_state_unref (gpointer instance); -GParamSpec* param_spec_backing_file_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_backing_file_state (GValue* value, - gpointer v_object); -void value_take_backing_file_state (GValue* value, - gpointer v_object); -gpointer value_get_backing_file_state (const GValue* value); -GType backing_file_state_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -GType photo_exception_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -GType import_id_get_type (void) G_GNUC_CONST; -ImportID* import_id_dup (const ImportID* self); -void import_id_free (ImportID* self); -GType photo_source_get_type (void) G_GNUC_CONST; -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -GType dateable_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType rotation_get_type (void) G_GNUC_CONST; -gpointer photo_row_ref (gpointer instance); -void photo_row_unref (gpointer instance); -GParamSpec* param_spec_photo_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_row (GValue* value, - gpointer v_object); -void value_take_photo_row (GValue* value, - gpointer v_object); -gpointer value_get_photo_row (const GValue* value); -GType photo_row_get_type (void) G_GNUC_CONST; -gpointer backing_photo_row_ref (gpointer instance); -void backing_photo_row_unref (gpointer instance); -GParamSpec* param_spec_backing_photo_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_backing_photo_row (GValue* value, - gpointer v_object); -void value_take_backing_photo_row (GValue* value, - gpointer v_object); -gpointer value_get_backing_photo_row (const GValue* value); -GType backing_photo_row_get_type (void) G_GNUC_CONST; -GType direct_photo_get_type (void) G_GNUC_CONST; -#define DIRECT_PHOTO_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DIRECT_PHOTO, DirectPhotoPrivate)) -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType direct_photo_source_collection_get_type (void) G_GNUC_CONST; -#define DIRECT_PHOTO_PREVIEW_BEST_FIT 360 -static DirectPhoto* direct_photo_new (PhotoRow* row); -static DirectPhoto* direct_photo_construct (GType object_type, - PhotoRow* row); -Photo* photo_construct (GType object_type, - PhotoRow* row); -GType orientation_get_type (void) G_GNUC_CONST; -void direct_photo_fixup_orientation_after_reimport (DirectPhoto* self, - Orientation dest); -GType photo_id_get_type (void) G_GNUC_CONST; -PhotoID* photo_id_dup (const PhotoID* self); -void photo_id_free (PhotoID* self); -GType backing_photo_id_get_type (void) G_GNUC_CONST; -BackingPhotoID* backing_photo_id_dup (const BackingPhotoID* self); -void backing_photo_id_free (BackingPhotoID* self); -GType raw_developer_get_type (void) G_GNUC_CONST; -void direct_photo_init (GFile* initial_file); -void photo_init_photo (void); -DirectPhotoSourceCollection* direct_photo_source_collection_new (GFile* initial_file); -DirectPhotoSourceCollection* direct_photo_source_collection_construct (GType object_type, - GFile* initial_file); -gchar* direct_photo_source_collection_fetch (DirectPhotoSourceCollection* self, - GFile* file, - DirectPhoto* * photo, - gboolean reimport); -gboolean data_collection_add (DataCollection* self, - DataObject* object); -void direct_photo_terminate (void); -void photo_terminate_photo (void); -static void direct_photo_save_dims (DirectPhoto* self); -GType backing_fetch_mode_get_type (void) G_GNUC_CONST; -GdkPixbuf* photo_get_pixbuf_with_options (Photo* self, - Scaling* scaling, - PhotoException exceptions, - BackingFetchMode fetch_mode, - GError** error); -void scaling_for_original (Scaling* result); -void dimensions_for_pixbuf (GdkPixbuf* pixbuf, - Dimensions* result); -gchar* data_object_to_string (DataObject* self); -GType import_result_get_type (void) G_GNUC_CONST; -ImportResult direct_photo_demand_load (DirectPhoto* self); -gpointer photo_reimport_master_state_ref (gpointer instance); -void photo_reimport_master_state_unref (gpointer instance); -GParamSpec* photo_param_spec_reimport_master_state (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void photo_value_set_reimport_master_state (GValue* value, - gpointer v_object); -void photo_value_take_reimport_master_state (GValue* value, - gpointer v_object); -gpointer photo_value_get_reimport_master_state (const GValue* value); -GType photo_reimport_master_state_get_type (void) G_GNUC_CONST; -gboolean photo_prepare_for_reimport_master (Photo* self, - PhotoReimportMasterState* * reimport_state, - GError** error); -GQuark database_error_quark (void); -void photo_finish_reimport_master (Photo* self, - PhotoReimportMasterState* state, - GError** error); -ImportResult direct_photo_internal_import (GFile* file, - DirectPhoto* * photo); -gpointer photo_import_params_ref (gpointer instance); -void photo_import_params_unref (gpointer instance); -GParamSpec* param_spec_photo_import_params (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_import_params (GValue* value, - gpointer v_object); -void value_take_photo_import_params (GValue* value, - gpointer v_object); -gpointer value_get_photo_import_params (const GValue* value); -GType photo_import_params_get_type (void) G_GNUC_CONST; -void import_id_generate (ImportID* result); -PhotoImportParams* photo_import_params_new_create_placeholder (GFile* file, - ImportID* import_id); -PhotoImportParams* photo_import_params_construct_create_placeholder (GType object_type, - GFile* file, - ImportID* import_id); -void photo_create_pre_import (PhotoImportParams* params); -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType photo_table_get_type (void) G_GNUC_CONST; -PhotoTable* photo_table_get_instance (void); -void photo_table_add (PhotoTable* self, - PhotoRow* photo_row, - PhotoID* result); -GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST; -gpointer thumbnails_ref (gpointer instance); -void thumbnails_unref (gpointer instance); -GParamSpec* param_spec_thumbnails (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_thumbnails (GValue* value, - gpointer v_object); -void value_take_thumbnails (GValue* value, - gpointer v_object); -gpointer value_get_thumbnails (const GValue* value); -GType thumbnails_get_type (void) G_GNUC_CONST; -static GdkPixbuf* direct_photo_real_get_preview_pixbuf (MediaSource* base, - Scaling* scaling, - GError** error); -GdkPixbuf* thumbnail_source_get_thumbnail (ThumbnailSource* self, - gint scale, - GError** error); -GdkPixbuf* photo_source_get_pixbuf (PhotoSource* self, - Scaling* scaling, - GError** error); -GdkPixbuf* scaling_perform_on_pixbuf (Scaling *self, - GdkPixbuf* pixbuf, - GdkInterpType interp, - gboolean scale_up); -static void direct_photo_real_rotate (Photo* base, - Rotation rotation); -void photo_rotate (Photo* self, - Rotation rotation); -static GdkPixbuf* direct_photo_real_get_pixbuf (PhotoSource* base, - Scaling* scaling, - GError** error); -static GdkPixbuf* direct_photo_real_get_thumbnail (ThumbnailSource* base, - gint scale, - GError** error); -PhotoMetadata* photo_source_get_metadata (PhotoSource* self); -guint photo_metadata_get_preview_count (PhotoMetadata* self); -gpointer photo_preview_ref (gpointer instance); -void photo_preview_unref (gpointer instance); -GParamSpec* param_spec_photo_preview (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_preview (GValue* value, - gpointer v_object); -void value_take_photo_preview (GValue* value, - gpointer v_object); -gpointer value_get_photo_preview (const GValue* value); -GType photo_preview_get_type (void) G_GNUC_CONST; -PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self, - guint number); -GdkPixbuf* photo_preview_get_pixbuf (PhotoPreview* self, - GError** error); -Orientation photo_get_orientation (Photo* self); -GdkPixbuf* orientation_rotate_pixbuf (Orientation self, - GdkPixbuf* pixbuf); -static void direct_photo_real_notify_altered (DataObject* base, - Alteration* alteration); -void data_object_notify_altered (DataObject* self, - Alteration* alteration); -static gboolean direct_photo_real_has_user_generated_metadata (Photo* base); -static void direct_photo_real_set_user_metadata_for_export (Photo* base, - PhotoMetadata* metadata); -static void direct_photo_real_apply_user_metadata_for_reimport (Photo* base, - PhotoMetadata* metadata); -static gboolean direct_photo_real_is_trashed (MediaSource* base); -static gboolean direct_photo_real_is_offline (MediaSource* base); -static void direct_photo_real_trash (MediaSource* base); -static void direct_photo_real_untrash (MediaSource* base); -static void direct_photo_real_mark_offline (MediaSource* base); -static void direct_photo_real_mark_online (MediaSource* base); -static void direct_photo_finalize (GObject * obj); -GType marker_get_type (void) G_GNUC_CONST; -gpointer source_backlink_ref (gpointer instance); -void source_backlink_unref (gpointer instance); -GParamSpec* param_spec_source_backlink (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_backlink (GValue* value, - gpointer v_object); -void value_take_source_backlink (GValue* value, - gpointer v_object); -gpointer value_get_source_backlink (const GValue* value); -GType source_backlink_get_type (void) G_GNUC_CONST; -GType directory_monitor_get_type (void) G_GNUC_CONST; -#define DIRECT_PHOTO_SOURCE_COLLECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollectionPrivate)) -guint file_hash (GFile* file); -static guint _file_hash_gee_hash_data_func (gconstpointer v, - gpointer self); -gboolean file_equal (GFile* a, - GFile* b); -static gboolean _file_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -#define DIRECT_PHOTO_SOURCE_COLLECTION_DISCOVERED_FILES_BATCH_ADD 500 -static gint64 direct_photo_source_collection_get_direct_key (DataSource* source); -static gint64 _direct_photo_source_collection_get_direct_key_get_source_database_key (DataSource* source, - gpointer self); -DatabaseSourceCollection* database_source_collection_construct (GType object_type, - const gchar* name, - GetSourceDatabaseKey source_key_func, - void* source_key_func_target); -DirectoryMonitor* directory_monitor_new (GFile* root, - gboolean recurse, - gboolean monitoring); -DirectoryMonitor* directory_monitor_construct (GType object_type, - GFile* root, - gboolean recurse, - gboolean monitoring); -static void direct_photo_source_collection_on_file_discovered (DirectPhotoSourceCollection* self, - GFile* file, - GFileInfo* info); -static void _direct_photo_source_collection_on_file_discovered_directory_monitor_file_discovered (DirectoryMonitor* _sender, - GFile* file, - GFileInfo* info, - gpointer self); -static void direct_photo_source_collection_on_discovery_completed (DirectPhotoSourceCollection* self); -static void _direct_photo_source_collection_on_discovery_completed_directory_monitor_discovery_completed (DirectoryMonitor* _sender, - gpointer self); -void directory_monitor_start_discovery (DirectoryMonitor* self); -static gboolean direct_photo_source_collection_real_holds_type_of_source (SourceCollection* base, - DataSource* source); -void photo_get_photo_id (Photo* self, - PhotoID* result); -static void direct_photo_source_collection_real_notify_items_added (DataCollection* base, - GeeIterable* added); -GFile* media_source_get_file (MediaSource* self); -void data_collection_notify_items_added (DataCollection* self, - GeeIterable* added); -static void direct_photo_source_collection_real_notify_items_removed (DataCollection* base, - GeeIterable* removed); -void data_collection_notify_items_removed (DataCollection* self, - GeeIterable* removed); -gboolean direct_photo_source_collection_has_source_for_file (DirectPhotoSourceCollection* self, - GFile* file); -gboolean photo_file_format_is_file_supported (GFile* file); -static void direct_photo_source_collection_flush_prepared_photos (DirectPhotoSourceCollection* self); -GeeCollection* data_collection_add_many (DataCollection* self, - GeeCollection* objects, - ProgressMonitor monitor, - void* monitor_target); -gboolean direct_photo_source_collection_has_file (DirectPhotoSourceCollection* self, - GFile* file); -void direct_photo_source_collection_reimport_photo (DirectPhotoSourceCollection* self, - DirectPhoto* photo); -void photo_discard_prefetched (Photo* self); -gboolean photo_only_metadata_changed (Photo* self); -PhotoFileFormat photo_get_file_format (Photo* self); -gchar* import_result_to_string (ImportResult self); -gboolean direct_photo_source_collection_has_file_source (DirectPhotoSourceCollection* self, - GFile* file); -DirectPhoto* direct_photo_source_collection_get_file_source (DirectPhotoSourceCollection* self, - GFile* file); -static void direct_photo_source_collection_finalize (DataCollection * obj); - - -static DirectPhoto* -direct_photo_construct (GType object_type, - PhotoRow* row) -{ - DirectPhoto * self = NULL; -#line 17 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (IS_PHOTO_ROW (row), NULL); -#line 18 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = (DirectPhoto*) photo_construct (object_type, row); -#line 17 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return self; -#line 1276 "DirectPhoto.c" -} - - -static DirectPhoto* -direct_photo_new (PhotoRow* row) -{ -#line 17 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return direct_photo_construct (TYPE_DIRECT_PHOTO, row); -#line 1285 "DirectPhoto.c" -} - - -/** - * @brief Because all transformations are discarded on reimport by design, including - * Orientation, a JFIF file that is only rotated or flipped, then saved, has the orientation - * change the user made before saving removed (recall that fetch() remembers which images it - * has seen before and will only add a file to the file map once; every time it sees it - * again after this is considered a reimport). This will set the orientation to the - * specified value, fixing up both the row and the backing row. - * - * @warning Only reimported JFIF files should need this; non-lossy image types have their - * actual pixels physically rotated in the file when they're exported. - * - * @param dest The orientation to set the photo to; usually, this should be a value - * obtained by calling get_orientation() prior to export()ing a DirectPhoto. - */ -void -direct_photo_fixup_orientation_after_reimport (DirectPhoto* self, - Orientation dest) -{ - PhotoRow* _tmp0_; - BackingPhotoRow* _tmp1_; -#line 35 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_if_fail (IS_DIRECT_PHOTO (self)); -#line 36 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo)->row; -#line 36 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_->orientation = dest; -#line 37 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo)->backing_photo_row; -#line 37 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_->original_orientation = dest; -#line 1319 "DirectPhoto.c" -} - - -void -direct_photo_init (GFile* initial_file) -{ - DirectPhotoSourceCollection* _tmp0_; - DirectPhoto* photo = NULL; - gchar* reason = NULL; - DirectPhotoSourceCollection* _tmp1_; - DirectPhoto* _tmp2_ = NULL; - gchar* _tmp3_; - const gchar* _tmp4_; - DirectPhotoSourceCollection* _tmp6_; - DirectPhoto* _tmp7_; -#line 40 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_if_fail (G_IS_FILE (initial_file)); -#line 41 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - photo_init_photo (); -#line 43 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = direct_photo_source_collection_new (initial_file); -#line 43 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _data_collection_unref0 (direct_photo_global); -#line 43 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - direct_photo_global = _tmp0_; -#line 45 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = direct_photo_global; -#line 45 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp3_ = direct_photo_source_collection_fetch (_tmp1_, initial_file, &_tmp2_, FALSE); -#line 45 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (photo); -#line 45 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - photo = _tmp2_; -#line 45 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - reason = _tmp3_; -#line 46 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp4_ = reason; -#line 46 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (_tmp4_ != NULL) { -#line 1359 "DirectPhoto.c" - const gchar* _tmp5_; -#line 47 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp5_ = reason; -#line 47 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_warning ("DirectPhoto.vala:47: fetch error: %s", _tmp5_); -#line 1365 "DirectPhoto.c" - } -#line 48 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp6_ = direct_photo_global; -#line 48 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp7_ = photo; -#line 48 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_OBJECT, DataObject)); -#line 40 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_free0 (reason); -#line 40 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (photo); -#line 1377 "DirectPhoto.c" -} - - -void -direct_photo_terminate (void) -{ -#line 52 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - photo_terminate_photo (); -#line 1386 "DirectPhoto.c" -} - - -static void -direct_photo_save_dims (DirectPhoto* self) -{ - GError * _inner_error_ = NULL; -#line 57 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_if_fail (IS_DIRECT_PHOTO (self)); -#line 1396 "DirectPhoto.c" - { - GdkPixbuf* _tmp0_ = NULL; - Scaling _tmp1_ = {0}; - GdkPixbuf* _tmp2_; - BackingPhotoRow* _tmp3_; - Dimensions _tmp4_ = {0}; -#line 59 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - scaling_for_original (&_tmp1_); -#line 59 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp2_ = photo_get_pixbuf_with_options (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), &_tmp1_, (PHOTO_EXCEPTION_CROP | PHOTO_EXCEPTION_STRAIGHTEN) | PHOTO_EXCEPTION_ORIENTATION, BACKING_FETCH_MODE_BASELINE, &_inner_error_); -#line 59 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = _tmp2_; -#line 59 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1411 "DirectPhoto.c" - goto __catch49_g_error; - } -#line 59 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo)->backing_photo_row; -#line 59 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - dimensions_for_pixbuf (_tmp0_, &_tmp4_); -#line 59 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp3_->dim = _tmp4_; -#line 58 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_tmp0_); -#line 1422 "DirectPhoto.c" - } - goto __finally49; - __catch49_g_error: - { - GError* e = NULL; - gchar* _tmp5_; - gchar* _tmp6_; -#line 58 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - e = _inner_error_; -#line 58 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _inner_error_ = NULL; -#line 62 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp5_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 62 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp6_ = _tmp5_; -#line 62 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_warning ("DirectPhoto.vala:62: Dimensions for image %s could not be gotten.", _tmp6_); -#line 62 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_free0 (_tmp6_); -#line 58 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_error_free0 (e); -#line 1444 "DirectPhoto.c" - } - __finally49: -#line 58 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 58 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 58 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_clear_error (&_inner_error_); -#line 58 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return; -#line 1455 "DirectPhoto.c" - } -} - - -ImportResult -direct_photo_demand_load (DirectPhoto* self) -{ - ImportResult result = 0; - gboolean _tmp0_; - PhotoReimportMasterState* reimport_state = NULL; - GError * _inner_error_ = NULL; -#line 67 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (IS_DIRECT_PHOTO (self), 0); -#line 68 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = self->priv->loaded; -#line 68 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (_tmp0_) { -#line 69 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - direct_photo_save_dims (self); -#line 70 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = IMPORT_RESULT_SUCCESS; -#line 70 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 1479 "DirectPhoto.c" - } - { - PhotoReimportMasterState* _tmp1_ = NULL; - PhotoReimportMasterState* _tmp2_; -#line 75 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - photo_prepare_for_reimport_master (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), &_tmp1_, &_inner_error_); -#line 75 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _photo_reimport_master_state_unref0 (reimport_state); -#line 75 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - reimport_state = _tmp1_; -#line 75 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1492 "DirectPhoto.c" - goto __catch50_g_error; - } -#line 76 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp2_ = reimport_state; -#line 76 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - photo_finish_reimport_master (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), _tmp2_, &_inner_error_); -#line 76 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1501 "DirectPhoto.c" - goto __catch50_g_error; - } - } - goto __finally50; - __catch50_g_error: - { - GError* err = NULL; - GError* _tmp3_; - const gchar* _tmp4_; -#line 74 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - err = _inner_error_; -#line 74 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _inner_error_ = NULL; -#line 78 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp3_ = err; -#line 78 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp4_ = _tmp3_->message; -#line 78 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_warning ("DirectPhoto.vala:78: Database error on re-importing image: %s", _tmp4_); -#line 79 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = IMPORT_RESULT_DATABASE_ERROR; -#line 79 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_error_free0 (err); -#line 79 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _photo_reimport_master_state_unref0 (reimport_state); -#line 79 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 1529 "DirectPhoto.c" - } - __finally50: -#line 74 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 74 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _photo_reimport_master_state_unref0 (reimport_state); -#line 74 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 74 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_clear_error (&_inner_error_); -#line 74 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return 0; -#line 1542 "DirectPhoto.c" - } -#line 82 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self->priv->loaded = TRUE; -#line 83 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - direct_photo_save_dims (self); -#line 84 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = IMPORT_RESULT_SUCCESS; -#line 84 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _photo_reimport_master_state_unref0 (reimport_state); -#line 84 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 1554 "DirectPhoto.c" -} - - -ImportResult -direct_photo_internal_import (GFile* file, - DirectPhoto* * photo) -{ - DirectPhoto* _vala_photo = NULL; - ImportResult result = 0; - PhotoImportParams* params = NULL; - ImportID _tmp0_ = {0}; - PhotoImportParams* _tmp1_; - PhotoTable* _tmp2_; - PhotoTable* _tmp3_; - PhotoRow* _tmp4_; - PhotoID _tmp5_ = {0}; - PhotoRow* _tmp6_; - DirectPhoto* _tmp7_; -#line 89 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (G_IS_FILE (file), 0); -#line 90 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - import_id_generate (&_tmp0_); -#line 90 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = photo_import_params_new_create_placeholder (file, &_tmp0_); -#line 90 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - params = _tmp1_; -#line 91 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - photo_create_pre_import (params); -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp2_ = photo_table_get_instance (); -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp3_ = _tmp2_; -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp4_ = params->row; -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - photo_table_add (_tmp3_, _tmp4_, &_tmp5_); -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _database_table_unref0 (_tmp3_); -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp6_ = params->row; -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp7_ = direct_photo_new (_tmp6_); -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_vala_photo); -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _vala_photo = _tmp7_; -#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = IMPORT_RESULT_SUCCESS; -#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _photo_import_params_unref0 (params); -#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (photo) { -#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - *photo = _vala_photo; -#line 1609 "DirectPhoto.c" - } else { -#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_vala_photo); -#line 1613 "DirectPhoto.c" - } -#line 96 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 1617 "DirectPhoto.c" -} - - -static GdkPixbuf* -direct_photo_real_get_preview_pixbuf (MediaSource* base, - Scaling* scaling, - GError** error) -{ - DirectPhoto * self; - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp9_; - GdkPixbuf* _tmp10_; - GError * _inner_error_ = NULL; -#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto); -#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = self->priv->preview; -#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (_tmp0_ == NULL) { -#line 1640 "DirectPhoto.c" - GdkPixbuf* _tmp1_ = NULL; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp2_ = thumbnail_source_get_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), DIRECT_PHOTO_PREVIEW_BEST_FIT, &_inner_error_); -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = _tmp2_; -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return NULL; -#line 1655 "DirectPhoto.c" - } -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp3_ = _tmp1_; -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = NULL; -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (self->priv->preview); -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self->priv->preview = _tmp3_; -#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp4_ = self->priv->preview; -#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (_tmp4_ == NULL) { -#line 1669 "DirectPhoto.c" - GdkPixbuf* _tmp5_ = NULL; - Scaling _tmp6_; - GdkPixbuf* _tmp7_; - GdkPixbuf* _tmp8_; -#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp6_ = *scaling; -#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp7_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp6_, &_inner_error_); -#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp5_ = _tmp7_; -#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_tmp1_); -#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return NULL; -#line 1688 "DirectPhoto.c" - } -#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp8_ = _tmp5_; -#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp5_ = NULL; -#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (self->priv->preview); -#line 104 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self->priv->preview = _tmp8_; -#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_tmp5_); -#line 1700 "DirectPhoto.c" - } -#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_tmp1_); -#line 1704 "DirectPhoto.c" - } -#line 107 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp9_ = self->priv->preview; -#line 107 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp10_ = scaling_perform_on_pixbuf (scaling, _tmp9_, GDK_INTERP_BILINEAR, TRUE); -#line 107 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = _tmp10_; -#line 107 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 1714 "DirectPhoto.c" -} - - -static void -direct_photo_real_rotate (Photo* base, - Rotation rotation) -{ - DirectPhoto * self; -#line 110 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto); -#line 111 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo)->can_rotate_now = FALSE; -#line 112 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_signal_emit (self, direct_photo_signals[DIRECT_PHOTO_CAN_ROTATE_CHANGED_SIGNAL], 0, FALSE); -#line 113 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - PHOTO_CLASS (direct_photo_parent_class)->rotate (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), rotation); -#line 1731 "DirectPhoto.c" -} - - -static GdkPixbuf* -direct_photo_real_get_pixbuf (PhotoSource* base, - Scaling* scaling, - GError** error) -{ - DirectPhoto * self; - GdkPixbuf* result = NULL; - GdkPixbuf* ret = NULL; - Scaling _tmp0_; - GdkPixbuf* _tmp1_; - GError * _inner_error_ = NULL; -#line 116 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto); -#line 116 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = *scaling; -#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = PHOTO_SOURCE_CLASS (direct_photo_parent_class)->get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), TYPE_PHOTO_SOURCE, PhotoSource), &_tmp0_, &_inner_error_); -#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ret = _tmp1_; -#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return NULL; -#line 1762 "DirectPhoto.c" - } -#line 118 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_signal_emit (self, direct_photo_signals[DIRECT_PHOTO_CAN_ROTATE_CHANGED_SIGNAL], 0, TRUE); -#line 119 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo)->can_rotate_now = TRUE; -#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = ret; -#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 1772 "DirectPhoto.c" -} - - -static GdkPixbuf* -direct_photo_real_get_thumbnail (ThumbnailSource* base, - gint scale, - GError** error) -{ - DirectPhoto * self; - GdkPixbuf* result = NULL; - PhotoMetadata* metadata = NULL; - PhotoMetadata* _tmp0_; - GdkPixbuf* _tmp1_ = NULL; - gboolean _tmp2_ = FALSE; - PhotoMetadata* _tmp3_; - GError * _inner_error_ = NULL; -#line 123 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto); -#line 124 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = photo_source_get_metadata (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_SOURCE, PhotoSource)); -#line 124 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - metadata = _tmp0_; -#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp3_ = metadata; -#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (_tmp3_ == NULL) { -#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp2_ = TRUE; -#line 1801 "DirectPhoto.c" - } else { - PhotoMetadata* _tmp4_; -#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp4_ = metadata; -#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp2_ = photo_metadata_get_preview_count (_tmp4_) == ((guint) 0); -#line 1808 "DirectPhoto.c" - } -#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (_tmp2_) { -#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_tmp1_); -#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = NULL; -#line 1816 "DirectPhoto.c" - } else { - GdkPixbuf* _tmp5_ = NULL; - PhotoMetadata* _tmp6_; - PhotoPreview* _tmp7_; - PhotoPreview* _tmp8_; - GdkPixbuf* _tmp9_; - GdkPixbuf* _tmp10_; - GdkPixbuf* _tmp11_; -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp6_ = metadata; -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp7_ = photo_metadata_get_preview (_tmp6_, (guint) 0); -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp8_ = _tmp7_; -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp9_ = photo_preview_get_pixbuf (_tmp8_, &_inner_error_); -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp10_ = _tmp9_; -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _photo_preview_unref0 (_tmp8_); -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp5_ = _tmp10_; -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_propagate_error (error, _inner_error_); -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_tmp1_); -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _media_metadata_unref0 (metadata); -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return NULL; -#line 1849 "DirectPhoto.c" - } -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp11_ = orientation_rotate_pixbuf (photo_get_orientation (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo)), _tmp5_); -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_tmp1_); -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = _tmp11_; -#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_tmp5_); -#line 1859 "DirectPhoto.c" - } -#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = _tmp1_; -#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _media_metadata_unref0 (metadata); -#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 1867 "DirectPhoto.c" -} - - -static void -direct_photo_real_notify_altered (DataObject* base, - Alteration* alteration) -{ - DirectPhoto * self; -#line 130 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto); -#line 130 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_if_fail (IS_ALTERATION (alteration)); -#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (self->priv->preview); -#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self->priv->preview = NULL; -#line 133 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - DATA_OBJECT_CLASS (direct_photo_parent_class)->notify_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO, Photo), TYPE_DATA_OBJECT, DataObject), alteration); -#line 1886 "DirectPhoto.c" -} - - -static gboolean -direct_photo_real_has_user_generated_metadata (Photo* base) -{ - DirectPhoto * self; - gboolean result = FALSE; -#line 136 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto); -#line 138 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = FALSE; -#line 138 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 1901 "DirectPhoto.c" -} - - -static void -direct_photo_real_set_user_metadata_for_export (Photo* base, - PhotoMetadata* metadata) -{ - DirectPhoto * self; -#line 141 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto); -#line 141 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_if_fail (IS_PHOTO_METADATA (metadata)); -#line 1914 "DirectPhoto.c" -} - - -static void -direct_photo_real_apply_user_metadata_for_reimport (Photo* base, - PhotoMetadata* metadata) -{ - DirectPhoto * self; -#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto); -#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_if_fail (IS_PHOTO_METADATA (metadata)); -#line 1927 "DirectPhoto.c" -} - - -static gboolean -direct_photo_real_is_trashed (MediaSource* base) -{ - DirectPhoto * self; - gboolean result = FALSE; -#line 148 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto); -#line 150 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = FALSE; -#line 150 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 1942 "DirectPhoto.c" -} - - -static gboolean -direct_photo_real_is_offline (MediaSource* base) -{ - DirectPhoto * self; - gboolean result = FALSE; -#line 153 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto); -#line 155 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = FALSE; -#line 155 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 1957 "DirectPhoto.c" -} - - -static void -direct_photo_real_trash (MediaSource* base) -{ - DirectPhoto * self; -#line 158 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto); -#line 1967 "DirectPhoto.c" -} - - -static void -direct_photo_real_untrash (MediaSource* base) -{ - DirectPhoto * self; -#line 162 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto); -#line 1977 "DirectPhoto.c" -} - - -static void -direct_photo_real_mark_offline (MediaSource* base) -{ - DirectPhoto * self; -#line 166 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto); -#line 1987 "DirectPhoto.c" -} - - -static void -direct_photo_real_mark_online (MediaSource* base) -{ - DirectPhoto * self; -#line 170 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO, DirectPhoto); -#line 1997 "DirectPhoto.c" -} - - -static void -direct_photo_class_init (DirectPhotoClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - direct_photo_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_type_class_add_private (klass, sizeof (DirectPhotoPrivate)); -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((MediaSourceClass *) klass)->get_preview_pixbuf = (GdkPixbuf* (*) (MediaSource *, Scaling*, GError**)) direct_photo_real_get_preview_pixbuf; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((PhotoClass *) klass)->rotate = (void (*) (Photo *, Rotation)) direct_photo_real_rotate; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((PhotoSourceClass *) klass)->get_pixbuf = (GdkPixbuf* (*) (PhotoSource *, Scaling*, GError**)) direct_photo_real_get_pixbuf; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((ThumbnailSourceClass *) klass)->get_thumbnail = (GdkPixbuf* (*) (ThumbnailSource *, gint, GError**)) direct_photo_real_get_thumbnail; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((DataObjectClass *) klass)->notify_altered = (void (*) (DataObject *, Alteration*)) direct_photo_real_notify_altered; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((PhotoClass *) klass)->has_user_generated_metadata = (gboolean (*) (Photo *)) direct_photo_real_has_user_generated_metadata; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((PhotoClass *) klass)->set_user_metadata_for_export = (void (*) (Photo *, PhotoMetadata*)) direct_photo_real_set_user_metadata_for_export; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((PhotoClass *) klass)->apply_user_metadata_for_reimport = (void (*) (Photo *, PhotoMetadata*)) direct_photo_real_apply_user_metadata_for_reimport; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((MediaSourceClass *) klass)->is_trashed = (gboolean (*) (MediaSource *)) direct_photo_real_is_trashed; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((MediaSourceClass *) klass)->is_offline = (gboolean (*) (MediaSource *)) direct_photo_real_is_offline; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((MediaSourceClass *) klass)->trash = (void (*) (MediaSource *)) direct_photo_real_trash; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((MediaSourceClass *) klass)->untrash = (void (*) (MediaSource *)) direct_photo_real_untrash; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((MediaSourceClass *) klass)->mark_offline = (void (*) (MediaSource *)) direct_photo_real_mark_offline; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((MediaSourceClass *) klass)->mark_online = (void (*) (MediaSource *)) direct_photo_real_mark_online; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - G_OBJECT_CLASS (klass)->finalize = direct_photo_finalize; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - direct_photo_signals[DIRECT_PHOTO_CAN_ROTATE_CHANGED_SIGNAL] = g_signal_new ("can-rotate-changed", TYPE_DIRECT_PHOTO, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); -#line 2040 "DirectPhoto.c" -} - - -static void -direct_photo_instance_init (DirectPhoto * self) -{ -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self->priv = DIRECT_PHOTO_GET_PRIVATE (self); -#line 14 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self->priv->preview = NULL; -#line 15 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self->priv->loaded = FALSE; -#line 2053 "DirectPhoto.c" -} - - -static void -direct_photo_finalize (GObject * obj) -{ - DirectPhoto * self; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DIRECT_PHOTO, DirectPhoto); -#line 14 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (self->priv->preview); -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - G_OBJECT_CLASS (direct_photo_parent_class)->finalize (obj); -#line 2067 "DirectPhoto.c" -} - - -GType -direct_photo_get_type (void) -{ - static volatile gsize direct_photo_type_id__volatile = 0; - if (g_once_init_enter (&direct_photo_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DirectPhotoClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) direct_photo_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectPhoto), 0, (GInstanceInitFunc) direct_photo_instance_init, NULL }; - GType direct_photo_type_id; - direct_photo_type_id = g_type_register_static (TYPE_PHOTO, "DirectPhoto", &g_define_type_info, 0); - g_once_init_leave (&direct_photo_type_id__volatile, direct_photo_type_id); - } - return direct_photo_type_id__volatile; -} - - -static guint -_file_hash_gee_hash_data_func (gconstpointer v, - gpointer self) -{ - guint result; - result = file_hash ((GFile*) v); -#line 178 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 2093 "DirectPhoto.c" -} - - -static gboolean -_file_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gboolean result; - result = file_equal ((GFile*) a, (GFile*) b); -#line 178 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 2106 "DirectPhoto.c" -} - - -static gint64 -_direct_photo_source_collection_get_direct_key_get_source_database_key (DataSource* source, - gpointer self) -{ - gint64 result; - result = direct_photo_source_collection_get_direct_key (source); -#line 183 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 2118 "DirectPhoto.c" -} - - -static void -_direct_photo_source_collection_on_file_discovered_directory_monitor_file_discovered (DirectoryMonitor* _sender, - GFile* file, - GFileInfo* info, - gpointer self) -{ -#line 187 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - direct_photo_source_collection_on_file_discovered ((DirectPhotoSourceCollection*) self, file, info); -#line 2130 "DirectPhoto.c" -} - - -static void -_direct_photo_source_collection_on_discovery_completed_directory_monitor_discovery_completed (DirectoryMonitor* _sender, - gpointer self) -{ -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - direct_photo_source_collection_on_discovery_completed ((DirectPhotoSourceCollection*) self); -#line 2140 "DirectPhoto.c" -} - - -DirectPhotoSourceCollection* -direct_photo_source_collection_construct (GType object_type, - GFile* initial_file) -{ - DirectPhotoSourceCollection* self = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - DirectoryMonitor* _tmp2_; - DirectoryMonitor* _tmp3_; - DirectoryMonitor* _tmp4_; - DirectoryMonitor* _tmp5_; -#line 182 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (G_IS_FILE (initial_file), NULL); -#line 183 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = (DirectPhotoSourceCollection*) database_source_collection_construct (object_type, "DirectPhotoSourceCollection", _direct_photo_source_collection_get_direct_key_get_source_database_key, NULL); -#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = g_file_get_parent (initial_file); -#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = _tmp0_; -#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp2_ = directory_monitor_new (_tmp1_, FALSE, FALSE); -#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (self->priv->monitor); -#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self->priv->monitor = _tmp2_; -#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_tmp1_); -#line 187 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp3_ = self->priv->monitor; -#line 187 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_signal_connect (_tmp3_, "file-discovered", (GCallback) _direct_photo_source_collection_on_file_discovered_directory_monitor_file_discovered, self); -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp4_ = self->priv->monitor; -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_signal_connect (_tmp4_, "discovery-completed", (GCallback) _direct_photo_source_collection_on_discovery_completed_directory_monitor_discovery_completed, self); -#line 190 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp5_ = self->priv->monitor; -#line 190 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - directory_monitor_start_discovery (_tmp5_); -#line 182 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return self; -#line 2185 "DirectPhoto.c" -} - - -DirectPhotoSourceCollection* -direct_photo_source_collection_new (GFile* initial_file) -{ -#line 182 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return direct_photo_source_collection_construct (TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, initial_file); -#line 2194 "DirectPhoto.c" -} - - -static gboolean -direct_photo_source_collection_real_holds_type_of_source (SourceCollection* base, - DataSource* source) -{ - DirectPhotoSourceCollection * self; - gboolean result = FALSE; -#line 193 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollection); -#line 193 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 194 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_DIRECT_PHOTO); -#line 194 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 2212 "DirectPhoto.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 198 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return self ? g_object_ref (self) : NULL; -#line 2221 "DirectPhoto.c" -} - - -static gint64 -direct_photo_source_collection_get_direct_key (DataSource* source) -{ - gint64 result = 0LL; - DirectPhoto* photo = NULL; - DirectPhoto* _tmp0_; - PhotoID photo_id = {0}; - PhotoID _tmp1_ = {0}; - PhotoID _tmp2_; - gint64 _tmp3_; -#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), 0LL); -#line 198 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DIRECT_PHOTO, DirectPhoto)); -#line 198 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - photo = _tmp0_; -#line 199 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - photo_get_photo_id (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo), &_tmp1_); -#line 199 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - photo_id = _tmp1_; -#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp2_ = photo_id; -#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp3_ = _tmp2_.id; -#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = _tmp3_; -#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (photo); -#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 2255 "DirectPhoto.c" -} - - -static void -direct_photo_source_collection_real_notify_items_added (DataCollection* base, - GeeIterable* added) -{ - DirectPhotoSourceCollection * self; -#line 204 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollection); -#line 204 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_if_fail (GEE_IS_ITERABLE (added)); -#line 2268 "DirectPhoto.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = gee_iterable_iterator (added); -#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _object_it = _tmp0_; -#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - while (TRUE) { -#line 2278 "DirectPhoto.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DirectPhoto* photo = NULL; - DataObject* _tmp4_; - DirectPhoto* _tmp5_; - GFile* file = NULL; - DirectPhoto* _tmp6_; - GFile* _tmp7_; - GeeHashMap* _tmp8_; - GFile* _tmp9_; - GeeHashMap* _tmp10_; - GFile* _tmp11_; - DirectPhoto* _tmp12_; -#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = _object_it; -#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - break; -#line 2300 "DirectPhoto.c" - } -#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp2_ = _object_it; -#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - object = (DataObject*) _tmp3_; -#line 206 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp4_ = object; -#line 206 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DIRECT_PHOTO, DirectPhoto)); -#line 206 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - photo = _tmp5_; -#line 207 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp6_ = photo; -#line 207 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp7_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 207 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - file = _tmp7_; -#line 209 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp8_ = self->priv->file_map; -#line 209 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp9_ = file; -#line 209 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_), "!file_map.has_key(file)"); -#line 211 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp10_ = self->priv->file_map; -#line 211 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp11_ = file; -#line 211 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp12_ = photo; -#line 211 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp11_, _tmp12_); -#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (file); -#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (photo); -#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (object); -#line 2340 "DirectPhoto.c" - } -#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_object_it); -#line 2344 "DirectPhoto.c" - } -#line 214 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - DATA_COLLECTION_CLASS (direct_photo_source_collection_parent_class)->notify_items_added (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_DATA_COLLECTION, DataCollection), added); -#line 2348 "DirectPhoto.c" -} - - -static void -direct_photo_source_collection_real_notify_items_removed (DataCollection* base, - GeeIterable* removed) -{ - DirectPhotoSourceCollection * self; -#line 217 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollection); -#line 217 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_if_fail (GEE_IS_ITERABLE (removed)); -#line 2361 "DirectPhoto.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = gee_iterable_iterator (removed); -#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _object_it = _tmp0_; -#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - while (TRUE) { -#line 2371 "DirectPhoto.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DirectPhoto* photo = NULL; - DataObject* _tmp4_; - DirectPhoto* _tmp5_; - GFile* file = NULL; - DirectPhoto* _tmp6_; - GFile* _tmp7_; - gboolean is_removed = FALSE; - GeeHashMap* _tmp8_; - GFile* _tmp9_; - gboolean _tmp10_; - gboolean _tmp11_; -#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = _object_it; -#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - break; -#line 2393 "DirectPhoto.c" - } -#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp2_ = _object_it; -#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - object = (DataObject*) _tmp3_; -#line 219 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp4_ = object; -#line 219 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DIRECT_PHOTO, DirectPhoto)); -#line 219 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - photo = _tmp5_; -#line 220 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp6_ = photo; -#line 220 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp7_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 220 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - file = _tmp7_; -#line 222 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp8_ = self->priv->file_map; -#line 222 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp9_ = file; -#line 222 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp10_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp9_, NULL); -#line 222 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - is_removed = _tmp10_; -#line 223 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp11_ = is_removed; -#line 223 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _vala_assert (_tmp11_, "is_removed"); -#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (file); -#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (photo); -#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (object); -#line 2431 "DirectPhoto.c" - } -#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_object_it); -#line 2435 "DirectPhoto.c" - } -#line 226 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - DATA_COLLECTION_CLASS (direct_photo_source_collection_parent_class)->notify_items_removed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), TYPE_DATA_COLLECTION, DataCollection), removed); -#line 2439 "DirectPhoto.c" -} - - -gboolean -direct_photo_source_collection_has_source_for_file (DirectPhotoSourceCollection* self, - GFile* file) -{ - gboolean result = FALSE; - GeeHashMap* _tmp0_; -#line 229 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self), FALSE); -#line 229 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 230 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = self->priv->file_map; -#line 230 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file); -#line 230 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 2459 "DirectPhoto.c" -} - - -static void -direct_photo_source_collection_on_file_discovered (DirectPhotoSourceCollection* self, - GFile* file, - GFileInfo* info) -{ - DirectPhoto* photo = NULL; - gchar* reason = NULL; - DirectPhoto* _tmp0_ = NULL; - gchar* _tmp1_; - const gchar* _tmp2_; - GeeCollection* _tmp4_; - DirectPhoto* _tmp5_; - GeeCollection* _tmp6_; - gint _tmp7_; - gint _tmp8_; -#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self)); -#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_if_fail (G_IS_FILE_INFO (info)); -#line 235 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (direct_photo_source_collection_has_source_for_file (self, file)) { -#line 236 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return; -#line 2488 "DirectPhoto.c" - } -#line 239 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (!photo_file_format_is_file_supported (file)) { -#line 240 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return; -#line 2494 "DirectPhoto.c" - } -#line 243 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = direct_photo_source_collection_fetch (self, file, &_tmp0_, FALSE); -#line 243 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (photo); -#line 243 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - photo = _tmp0_; -#line 243 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - reason = _tmp1_; -#line 244 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp2_ = reason; -#line 244 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (_tmp2_ != NULL) { -#line 2508 "DirectPhoto.c" - const gchar* _tmp3_; -#line 245 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp3_ = reason; -#line 245 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_warning ("DirectPhoto.vala:245: Error fetching file: %s", _tmp3_); -#line 2514 "DirectPhoto.c" - } -#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp4_ = self->priv->prepared_photos; -#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp5_ = photo; -#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - gee_collection_add (_tmp4_, _tmp5_); -#line 247 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp6_ = self->priv->prepared_photos; -#line 247 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp7_ = gee_collection_get_size (_tmp6_); -#line 247 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp8_ = _tmp7_; -#line 247 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (_tmp8_ >= DIRECT_PHOTO_SOURCE_COLLECTION_DISCOVERED_FILES_BATCH_ADD) { -#line 248 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - direct_photo_source_collection_flush_prepared_photos (self); -#line 2532 "DirectPhoto.c" - } -#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_free0 (reason); -#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (photo); -#line 2538 "DirectPhoto.c" -} - - -static void -direct_photo_source_collection_on_discovery_completed (DirectPhotoSourceCollection* self) -{ -#line 251 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self)); -#line 252 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - direct_photo_source_collection_flush_prepared_photos (self); -#line 2549 "DirectPhoto.c" -} - - -static void -direct_photo_source_collection_flush_prepared_photos (DirectPhotoSourceCollection* self) -{ - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; -#line 255 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self)); -#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = self->priv->prepared_photos; -#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _tmp0_, NULL, NULL); -#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp2_ = _tmp1_; -#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_tmp2_); -#line 257 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp3_ = self->priv->prepared_photos; -#line 257 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - gee_collection_clear (_tmp3_); -#line 2574 "DirectPhoto.c" -} - - -gboolean -direct_photo_source_collection_has_file (DirectPhotoSourceCollection* self, - GFile* file) -{ - gboolean result = FALSE; - GeeHashMap* _tmp0_; -#line 260 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self), FALSE); -#line 260 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 261 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = self->priv->file_map; -#line 261 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file); -#line 261 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 2594 "DirectPhoto.c" -} - - -void -direct_photo_source_collection_reimport_photo (DirectPhotoSourceCollection* self, - DirectPhoto* photo) -{ - DirectPhoto* reimported_photo = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - DirectPhoto* _tmp2_ = NULL; - gchar* _tmp3_; - gchar* _tmp4_; -#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self)); -#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_if_fail (IS_DIRECT_PHOTO (photo)); -#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - photo_discard_prefetched (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_PHOTO, Photo)); -#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource)); -#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = _tmp0_; -#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp3_ = direct_photo_source_collection_fetch (self, _tmp1_, &_tmp2_, TRUE); -#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (reimported_photo); -#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - reimported_photo = _tmp2_; -#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp4_ = _tmp3_; -#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_free0 (_tmp4_); -#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_tmp1_); -#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (reimported_photo); -#line 2632 "DirectPhoto.c" -} - - -gchar* -direct_photo_source_collection_fetch (DirectPhotoSourceCollection* self, - GFile* file, - DirectPhoto* * photo, - gboolean reimport) -{ - DirectPhoto* _vala_photo = NULL; - gchar* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - DirectPhoto* _tmp2_; - ImportResult _result_ = 0; - DirectPhoto* _tmp20_ = NULL; - ImportResult _tmp21_; - gchar* _tmp22_ = NULL; - ImportResult _tmp23_; - GError * _inner_error_ = NULL; -#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self), NULL); -#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 273 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = self->priv->file_map; -#line 273 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file); -#line 273 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_vala_photo); -#line 273 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _vala_photo = (DirectPhoto*) _tmp1_; -#line 274 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp2_ = _vala_photo; -#line 274 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (_tmp2_ != NULL) { -#line 2669 "DirectPhoto.c" - gchar* reason = NULL; -#line 275 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - reason = NULL; -#line 277 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (reimport) { -#line 2675 "DirectPhoto.c" - { - Orientation ori_tmp = 0; - gboolean should_restore_ori = FALSE; - gboolean _tmp3_ = FALSE; - DirectPhoto* _tmp4_; - PhotoReimportMasterState* reimport_state = NULL; - gboolean _tmp7_ = FALSE; - DirectPhoto* _tmp8_; - PhotoReimportMasterState* _tmp9_ = NULL; - gboolean _tmp10_; -#line 279 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ori_tmp = ORIENTATION_TOP_LEFT; -#line 280 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - should_restore_ori = FALSE; -#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp4_ = _vala_photo; -#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (photo_only_metadata_changed (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO, Photo))) { -#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp3_ = TRUE; -#line 2696 "DirectPhoto.c" - } else { - DirectPhoto* _tmp5_; -#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp5_ = _vala_photo; -#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp3_ = photo_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PHOTO, Photo)) == PHOTO_FILE_FORMAT_JFIF; -#line 2703 "DirectPhoto.c" - } -#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (_tmp3_) { -#line 2707 "DirectPhoto.c" - DirectPhoto* _tmp6_; -#line 284 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp6_ = _vala_photo; -#line 284 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ori_tmp = photo_get_orientation (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PHOTO, Photo)); -#line 285 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - should_restore_ori = TRUE; -#line 2715 "DirectPhoto.c" - } -#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp8_ = _vala_photo; -#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp10_ = photo_prepare_for_reimport_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PHOTO, Photo), &_tmp9_, &_inner_error_); -#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _photo_reimport_master_state_unref0 (reimport_state); -#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - reimport_state = _tmp9_; -#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp7_ = _tmp10_; -#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _photo_reimport_master_state_unref0 (reimport_state); -#line 2731 "DirectPhoto.c" - goto __catch51_g_error; - } -#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (_tmp7_) { -#line 2736 "DirectPhoto.c" - DirectPhoto* _tmp11_; - PhotoReimportMasterState* _tmp12_; - gboolean _tmp13_; -#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp11_ = _vala_photo; -#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp12_ = reimport_state; -#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - photo_finish_reimport_master (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PHOTO, Photo), _tmp12_, &_inner_error_); -#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _photo_reimport_master_state_unref0 (reimport_state); -#line 2750 "DirectPhoto.c" - goto __catch51_g_error; - } -#line 291 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp13_ = should_restore_ori; -#line 291 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (_tmp13_) { -#line 2757 "DirectPhoto.c" - DirectPhoto* _tmp14_; - Orientation _tmp15_; -#line 292 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp14_ = _vala_photo; -#line 292 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp15_ = ori_tmp; -#line 292 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - direct_photo_fixup_orientation_after_reimport (_tmp14_, _tmp15_); -#line 2766 "DirectPhoto.c" - } - } else { - gchar* _tmp16_; -#line 296 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp16_ = import_result_to_string (IMPORT_RESULT_FILE_ERROR); -#line 296 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_free0 (reason); -#line 296 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - reason = _tmp16_; -#line 2776 "DirectPhoto.c" - } -#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _photo_reimport_master_state_unref0 (reimport_state); -#line 2780 "DirectPhoto.c" - } - goto __finally51; - __catch51_g_error: - { - GError* err = NULL; - GError* _tmp17_; - const gchar* _tmp18_; - gchar* _tmp19_; -#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - err = _inner_error_; -#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _inner_error_ = NULL; -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp17_ = err; -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp18_ = _tmp17_->message; -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp19_ = g_strdup (_tmp18_); -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_free0 (reason); -#line 299 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - reason = _tmp19_; -#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_error_free0 (err); -#line 2805 "DirectPhoto.c" - } - __finally51: -#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_free0 (reason); -#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_clear_error (&_inner_error_); -#line 278 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return NULL; -#line 2818 "DirectPhoto.c" - } - } -#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = reason; -#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (photo) { -#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - *photo = _vala_photo; -#line 2827 "DirectPhoto.c" - } else { -#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_vala_photo); -#line 2831 "DirectPhoto.c" - } -#line 303 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 2835 "DirectPhoto.c" - } -#line 308 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp21_ = direct_photo_internal_import (file, &_tmp20_); -#line 308 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_vala_photo); -#line 308 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _vala_photo = _tmp20_; -#line 308 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _result_ = _tmp21_; -#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp23_ = _result_; -#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (_tmp23_ == IMPORT_RESULT_SUCCESS) { -#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_free0 (_tmp22_); -#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp22_ = NULL; -#line 2853 "DirectPhoto.c" - } else { - ImportResult _tmp24_; - gchar* _tmp25_; -#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp24_ = _result_; -#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp25_ = import_result_to_string (_tmp24_); -#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_free0 (_tmp22_); -#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp22_ = _tmp25_; -#line 2865 "DirectPhoto.c" - } -#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = _tmp22_; -#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - if (photo) { -#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - *photo = _vala_photo; -#line 2873 "DirectPhoto.c" - } else { -#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (_vala_photo); -#line 2877 "DirectPhoto.c" - } -#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 2881 "DirectPhoto.c" -} - - -gboolean -direct_photo_source_collection_has_file_source (DirectPhotoSourceCollection* self, - GFile* file) -{ - gboolean result = FALSE; - GeeHashMap* _tmp0_; -#line 313 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self), FALSE); -#line 313 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 314 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = self->priv->file_map; -#line 314 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file); -#line 314 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 2901 "DirectPhoto.c" -} - - -DirectPhoto* -direct_photo_source_collection_get_file_source (DirectPhotoSourceCollection* self, - GFile* file) -{ - DirectPhoto* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 317 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (IS_DIRECT_PHOTO_SOURCE_COLLECTION (self), NULL); -#line 317 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = self->priv->file_map; -#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), file); -#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - result = (DirectPhoto*) _tmp1_; -#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - return result; -#line 2924 "DirectPhoto.c" -} - - -static void -direct_photo_source_collection_class_init (DirectPhotoSourceCollectionClass * klass) -{ -#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - direct_photo_source_collection_parent_class = g_type_class_peek_parent (klass); -#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((DataCollectionClass *) klass)->finalize = direct_photo_source_collection_finalize; -#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - g_type_class_add_private (klass, sizeof (DirectPhotoSourceCollectionPrivate)); -#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*) (SourceCollection *, DataSource*)) direct_photo_source_collection_real_holds_type_of_source; -#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((DataCollectionClass *) klass)->notify_items_added = (void (*) (DataCollection *, GeeIterable*)) direct_photo_source_collection_real_notify_items_added; -#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - ((DataCollectionClass *) klass)->notify_items_removed = (void (*) (DataCollection *, GeeIterable*)) direct_photo_source_collection_real_notify_items_removed; -#line 2943 "DirectPhoto.c" -} - - -static void -direct_photo_source_collection_instance_init (DirectPhotoSourceCollection * self) -{ - GeeArrayList* _tmp0_; - GeeHashMap* _tmp1_; -#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self->priv = DIRECT_PHOTO_SOURCE_COLLECTION_GET_PRIVATE (self); -#line 177 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp0_ = gee_array_list_new (TYPE_DIRECT_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 177 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self->priv->prepared_photos = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 178 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _tmp1_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TYPE_DIRECT_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); -#line 178 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self->priv->file_map = _tmp1_; -#line 2962 "DirectPhoto.c" -} - - -static void -direct_photo_source_collection_finalize (DataCollection * obj) -{ - DirectPhotoSourceCollection * self; -#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollection); -#line 177 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (self->priv->prepared_photos); -#line 178 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (self->priv->file_map); -#line 180 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - _g_object_unref0 (self->priv->monitor); -#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhoto.vala" - DATA_COLLECTION_CLASS (direct_photo_source_collection_parent_class)->finalize (obj); -#line 2980 "DirectPhoto.c" -} - - -GType -direct_photo_source_collection_get_type (void) -{ - static volatile gsize direct_photo_source_collection_type_id__volatile = 0; - if (g_once_init_enter (&direct_photo_source_collection_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DirectPhotoSourceCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) direct_photo_source_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectPhotoSourceCollection), 0, (GInstanceInitFunc) direct_photo_source_collection_instance_init, NULL }; - GType direct_photo_source_collection_type_id; - direct_photo_source_collection_type_id = g_type_register_static (TYPE_DATABASE_SOURCE_COLLECTION, "DirectPhotoSourceCollection", &g_define_type_info, 0); - g_once_init_leave (&direct_photo_source_collection_type_id__volatile, direct_photo_source_collection_type_id); - } - return direct_photo_source_collection_type_id__volatile; -} - - - diff --git a/src/direct/DirectPhotoPage.c b/src/direct/DirectPhotoPage.c deleted file mode 100644 index 62620fb..0000000 --- a/src/direct/DirectPhotoPage.c +++ /dev/null @@ -1,4047 +0,0 @@ -/* DirectPhotoPage.c generated by valac 0.40.4, the Vala compiler - * generated from DirectPhotoPage.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; - -#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ()) -#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)) -#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) -#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE)) -#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE)) -#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) - -typedef struct _SinglePhotoPage SinglePhotoPage; -typedef struct _SinglePhotoPageClass SinglePhotoPageClass; -typedef struct _SinglePhotoPagePrivate SinglePhotoPagePrivate; - -#define TYPE_ZOOM_BUFFER (zoom_buffer_get_type ()) -#define ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ZOOM_BUFFER, ZoomBuffer)) -#define ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ZOOM_BUFFER, ZoomBufferClass)) -#define IS_ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ZOOM_BUFFER)) -#define IS_ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ZOOM_BUFFER)) -#define ZOOM_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ZOOM_BUFFER, ZoomBufferClass)) - -typedef struct _ZoomBuffer ZoomBuffer; -typedef struct _ZoomBufferClass ZoomBufferClass; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define SINGLE_PHOTO_PAGE_TYPE_UPDATE_REASON (single_photo_page_update_reason_get_type ()) - -#define TYPE_EDITING_HOST_PAGE (editing_host_page_get_type ()) -#define EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPage)) -#define EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDITING_HOST_PAGE, EditingHostPageClass)) -#define IS_EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDITING_HOST_PAGE)) -#define IS_EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDITING_HOST_PAGE)) -#define EDITING_HOST_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPageClass)) - -typedef struct _EditingHostPage EditingHostPage; -typedef struct _EditingHostPageClass EditingHostPageClass; -typedef struct _EditingHostPagePrivate EditingHostPagePrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_DIRECT_PHOTO_PAGE (direct_photo_page_get_type ()) -#define DIRECT_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage)) -#define DIRECT_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPageClass)) -#define IS_DIRECT_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO_PAGE)) -#define IS_DIRECT_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO_PAGE)) -#define DIRECT_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPageClass)) - -typedef struct _DirectPhotoPage DirectPhotoPage; -typedef struct _DirectPhotoPageClass DirectPhotoPageClass; -typedef struct _DirectPhotoPagePrivate DirectPhotoPagePrivate; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; - -#define TYPE_DIRECT_VIEW_COLLECTION (direct_view_collection_get_type ()) -#define DIRECT_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_VIEW_COLLECTION, DirectViewCollection)) -#define DIRECT_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_VIEW_COLLECTION, DirectViewCollectionClass)) -#define IS_DIRECT_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_VIEW_COLLECTION)) -#define IS_DIRECT_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_VIEW_COLLECTION)) -#define DIRECT_VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_VIEW_COLLECTION, DirectViewCollectionClass)) - -typedef struct _DirectViewCollection DirectViewCollection; -typedef struct _DirectViewCollectionClass DirectViewCollectionClass; -enum { - DIRECT_PHOTO_PAGE_0_PROPERTY, - DIRECT_PHOTO_PAGE_NUM_PROPERTIES -}; -static GParamSpec* direct_photo_page_properties[DIRECT_PHOTO_PAGE_NUM_PROPERTIES]; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_DIRECT_PHOTO_SOURCE_COLLECTION (direct_photo_source_collection_get_type ()) -#define DIRECT_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollection)) -#define DIRECT_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollectionClass)) -#define IS_DIRECT_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION)) -#define IS_DIRECT_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION)) -#define DIRECT_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollectionClass)) - -typedef struct _DirectPhotoSourceCollection DirectPhotoSourceCollection; -typedef struct _DirectPhotoSourceCollectionClass DirectPhotoSourceCollectionClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_APPLICATION (application_get_type ()) -#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application)) -#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass)) -#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION)) -#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION)) -#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass)) - -typedef struct _Application Application; -typedef struct _ApplicationClass ApplicationClass; -#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL))) -#define _injection_group_unref0(var) ((var == NULL) ? NULL : (var = (injection_group_unref (var), NULL))) - -#define TYPE_DIRECT_PHOTO (direct_photo_get_type ()) -#define DIRECT_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO, DirectPhoto)) -#define DIRECT_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO, DirectPhotoClass)) -#define IS_DIRECT_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO)) -#define IS_DIRECT_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO)) -#define DIRECT_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO, DirectPhotoClass)) - -typedef struct _DirectPhoto DirectPhoto; -typedef struct _DirectPhotoClass DirectPhotoClass; - -#define TYPE_IMPORT_RESULT (import_result_get_type ()) - -#define TYPE_ZOOM_STATE (zoom_state_get_type ()) -typedef struct _ZoomState ZoomState; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) -typedef struct _Scaling Scaling; - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_DIRECT_VIEW (direct_view_get_type ()) -#define DIRECT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_VIEW, DirectView)) -#define DIRECT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_VIEW, DirectViewClass)) -#define IS_DIRECT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_VIEW)) -#define IS_DIRECT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_VIEW)) -#define DIRECT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_VIEW, DirectViewClass)) - -typedef struct _DirectView DirectView; -typedef struct _DirectViewClass DirectViewClass; - -#define TYPE_EXPORT_DIALOG (export_dialog_get_type ()) -#define EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORT_DIALOG, ExportDialog)) -#define EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPORT_DIALOG, ExportDialogClass)) -#define IS_EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPORT_DIALOG)) -#define IS_EXPORT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPORT_DIALOG)) -#define EXPORT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPORT_DIALOG, ExportDialogClass)) - -typedef struct _ExportDialog ExportDialog; -typedef struct _ExportDialogClass ExportDialogClass; - -#define TYPE_EXPORT_FORMAT_PARAMETERS (export_format_parameters_get_type ()) - -#define TYPE_EXPORT_FORMAT_MODE (export_format_mode_get_type ()) -typedef struct _ExportFormatParameters ExportFormatParameters; - -#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ()) -#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties)) -#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) - -typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties; -typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass; -#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL))) - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_PRINT_MANAGER (print_manager_get_type ()) -#define PRINT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PRINT_MANAGER, PrintManager)) -#define PRINT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PRINT_MANAGER, PrintManagerClass)) -#define IS_PRINT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PRINT_MANAGER)) -#define IS_PRINT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PRINT_MANAGER)) -#define PRINT_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PRINT_MANAGER, PrintManagerClass)) - -typedef struct _PrintManager PrintManager; -typedef struct _PrintManagerClass PrintManagerClass; -#define _print_manager_unref0(var) ((var == NULL) ? NULL : (var = (print_manager_unref (var), NULL))) -typedef struct _Block7Data Block7Data; - -#define TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE (direct_fullscreen_photo_page_get_type ()) -#define DIRECT_FULLSCREEN_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, DirectFullscreenPhotoPage)) -#define DIRECT_FULLSCREEN_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, DirectFullscreenPhotoPageClass)) -#define IS_DIRECT_FULLSCREEN_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE)) -#define IS_DIRECT_FULLSCREEN_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE)) -#define DIRECT_FULLSCREEN_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, DirectFullscreenPhotoPageClass)) - -typedef struct _DirectFullscreenPhotoPage DirectFullscreenPhotoPage; -typedef struct _DirectFullscreenPhotoPageClass DirectFullscreenPhotoPageClass; -typedef struct _DirectFullscreenPhotoPagePrivate DirectFullscreenPhotoPagePrivate; -enum { - DIRECT_FULLSCREEN_PHOTO_PAGE_0_PROPERTY, - DIRECT_FULLSCREEN_PHOTO_PAGE_NUM_PROPERTIES -}; -static GParamSpec* direct_fullscreen_photo_page_properties[DIRECT_FULLSCREEN_PHOTO_PAGE_NUM_PROPERTIES]; - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -typedef enum { - SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF, - SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT, - SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS -} SinglePhotoPageUpdateReason; - -struct _SinglePhotoPage { - Page parent_instance; - SinglePhotoPagePrivate * priv; - GtkDrawingArea* canvas; - GtkViewport* viewport; -}; - -struct _SinglePhotoPageClass { - PageClass parent_class; - gboolean (*is_zoom_supported) (SinglePhotoPage* self); - void (*cancel_zoom) (SinglePhotoPage* self); - void (*save_zoom_state) (SinglePhotoPage* self); - void (*restore_zoom_state) (SinglePhotoPage* self); - ZoomBuffer* (*get_zoom_buffer) (SinglePhotoPage* self); - void (*new_surface) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim); - void (*updated_pixbuf) (SinglePhotoPage* self, GdkPixbuf* pixbuf, SinglePhotoPageUpdateReason reason, Dimensions* old_dim); - void (*paint) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim); - void (*on_previous_photo) (SinglePhotoPage* self); - void (*on_next_photo) (SinglePhotoPage* self); -}; - -struct _EditingHostPage { - SinglePhotoPage parent_instance; - EditingHostPagePrivate * priv; -}; - -struct _EditingHostPageClass { - SinglePhotoPageClass parent_class; - gboolean (*on_zoom_slider_key_press) (EditingHostPage* self, GdkEventKey* event); - void (*on_increase_size) (EditingHostPage* self); - void (*on_decrease_size) (EditingHostPage* self); - void (*photo_changing) (EditingHostPage* self, Photo* new_photo); - DataView* (*create_photo_view) (EditingHostPage* self, DataSource* source); - void (*update_ui) (EditingHostPage* self, gboolean missing); - void (*notify_photo_backing_missing) (EditingHostPage* self, Photo* photo, gboolean missing); - gboolean (*confirm_replace_photo) (EditingHostPage* self, Photo* old_photo, Photo* new_photo); - gboolean (*on_double_click) (EditingHostPage* self, GdkEventButton* event); - GdkPixbuf* (*get_bottom_left_trinket) (EditingHostPage* self, gint scale); - GdkPixbuf* (*get_top_left_trinket) (EditingHostPage* self, gint scale); - GdkPixbuf* (*get_top_right_trinket) (EditingHostPage* self, gint scale); - GdkPixbuf* (*get_bottom_right_trinket) (EditingHostPage* self, gint scale); -}; - -struct _DirectPhotoPage { - EditingHostPage parent_instance; - DirectPhotoPagePrivate * priv; -}; - -struct _DirectPhotoPageClass { - EditingHostPageClass parent_class; -}; - -struct _DirectPhotoPagePrivate { - GFile* initial_file; - DirectViewCollection* view_controller; - GFile* current_save_dir; - gboolean drop_if_dirty; - GtkMenu* context_menu; -}; - -typedef enum { - IMPORT_RESULT_SUCCESS, - IMPORT_RESULT_FILE_ERROR, - IMPORT_RESULT_DECODE_ERROR, - IMPORT_RESULT_DATABASE_ERROR, - IMPORT_RESULT_USER_ABORT, - IMPORT_RESULT_NOT_A_FILE, - IMPORT_RESULT_PHOTO_EXISTS, - IMPORT_RESULT_UNSUPPORTED_FORMAT, - IMPORT_RESULT_NOT_AN_IMAGE, - IMPORT_RESULT_DISK_FAILURE, - IMPORT_RESULT_DISK_FULL, - IMPORT_RESULT_CAMERA_ERROR, - IMPORT_RESULT_FILE_WRITE_ERROR, - IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE -} ImportResult; - -struct _ZoomState { - Dimensions content_dimensions; - Dimensions viewport_dimensions; - gdouble zoom_factor; - gdouble interpolation_factor; - gdouble min_factor; - gdouble max_factor; - GdkPoint viewport_center; -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -typedef enum { - EXPORT_FORMAT_MODE_UNMODIFIED, - EXPORT_FORMAT_MODE_CURRENT, - EXPORT_FORMAT_MODE_SPECIFIED, - EXPORT_FORMAT_MODE_LAST -} ExportFormatMode; - -struct _ExportFormatParameters { - ExportFormatMode mode; - PhotoFileFormat specified_format; - JpegQuality quality; - gboolean export_metadata; -}; - -struct _Block7Data { - int _ref_count_; - DirectPhotoPage* self; - gboolean should_allow_rotation; -}; - -struct _DirectFullscreenPhotoPage { - DirectPhotoPage parent_instance; - DirectFullscreenPhotoPagePrivate * priv; -}; - -struct _DirectFullscreenPhotoPageClass { - DirectPhotoPageClass parent_class; -}; - - -static gpointer direct_photo_page_parent_class = NULL; -extern DirectPhotoSourceCollection* direct_photo_global; -static gpointer direct_fullscreen_photo_page_parent_class = NULL; - -GType page_get_type (void) G_GNUC_CONST; -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType single_photo_page_get_type (void) G_GNUC_CONST; -GType zoom_buffer_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType single_photo_page_update_reason_get_type (void) G_GNUC_CONST; -GType editing_host_page_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType direct_photo_page_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -GType direct_view_collection_get_type (void) G_GNUC_CONST; -#define DIRECT_PHOTO_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPagePrivate)) -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType direct_photo_source_collection_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -static void direct_photo_page_on_photos_altered (DirectPhotoPage* self, - GeeMap* map); -static void _direct_photo_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -static void direct_photo_page_on_save (DirectPhotoPage* self); -static void _direct_photo_page_on_save_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void direct_photo_page_on_save_as (DirectPhotoPage* self); -static void _direct_photo_page_on_save_as_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void direct_photo_page_on_send_to (DirectPhotoPage* self); -static void _direct_photo_page_on_send_to_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void direct_photo_page_on_print (DirectPhotoPage* self); -static void _direct_photo_page_on_print_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void single_photo_page_on_previous_photo (SinglePhotoPage* self); -static void _single_photo_page_on_previous_photo_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void single_photo_page_on_next_photo (SinglePhotoPage* self); -static void _single_photo_page_on_next_photo_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void editing_host_page_on_rotate_clockwise (EditingHostPage* self); -static void _editing_host_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void editing_host_page_on_rotate_counterclockwise (EditingHostPage* self); -static void _editing_host_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void editing_host_page_on_flip_horizontally (EditingHostPage* self); -static void _editing_host_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void editing_host_page_on_flip_vertically (EditingHostPage* self); -static void _editing_host_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void editing_host_page_on_enhance (EditingHostPage* self); -static void _editing_host_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void editing_host_page_toggle_crop (EditingHostPage* self); -static void _editing_host_page_toggle_crop_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void editing_host_page_toggle_straighten (EditingHostPage* self); -static void _editing_host_page_toggle_straighten_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void editing_host_page_toggle_redeye (EditingHostPage* self); -static void _editing_host_page_toggle_redeye_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void editing_host_page_toggle_adjust (EditingHostPage* self); -static void _editing_host_page_toggle_adjust_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void editing_host_page_on_revert (EditingHostPage* self); -static void _editing_host_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void editing_host_page_on_adjust_date_time (EditingHostPage* self); -static void _editing_host_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void editing_host_page_on_set_background (EditingHostPage* self); -static void _editing_host_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void editing_host_page_on_increase_size (EditingHostPage* self); -static void _editing_host_page_on_increase_size_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void editing_host_page_on_decrease_size (EditingHostPage* self); -static void _editing_host_page_on_decrease_size_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void editing_host_page_snap_zoom_to_min (EditingHostPage* self); -static void _editing_host_page_snap_zoom_to_min_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void editing_host_page_snap_zoom_to_isomorphic (EditingHostPage* self); -static void _editing_host_page_snap_zoom_to_isomorphic_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void editing_host_page_snap_zoom_to_max (EditingHostPage* self); -static void _editing_host_page_snap_zoom_to_max_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -DirectPhotoPage* direct_photo_page_new (GFile* file); -DirectPhotoPage* direct_photo_page_construct (GType object_type, - GFile* file); -EditingHostPage* editing_host_page_construct (GType object_type, - SourceCollection* sources, - const gchar* name); -static gboolean direct_photo_page_check_editable_file (GFile* file); -gpointer application_ref (gpointer instance); -void application_unref (gpointer instance); -GParamSpec* param_spec_application (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_application (GValue* value, - gpointer v_object); -void value_take_application (GValue* value, - gpointer v_object); -gpointer value_get_application (const GValue* value); -GType application_get_type (void) G_GNUC_CONST; -Application* application_get_instance (void); -void application_panic (Application* self); -DirectViewCollection* direct_view_collection_new (void); -DirectViewCollection* direct_view_collection_construct (GType object_type); -ViewCollection* page_get_view (Page* self); -static void direct_photo_page_on_selection_group_altered (DirectPhotoPage* self); -static void _direct_photo_page_on_selection_group_altered_view_collection_selection_group_altered (ViewCollection* _sender, - gpointer self); -static void direct_photo_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames); -void page_init_collect_ui_filenames (Page* self, - GeeList* ui_filenames); -static void direct_photo_page_real_add_actions (Page* base, - GActionMap* map); -void page_add_actions (Page* self, - GActionMap* map); -static void direct_photo_page_real_remove_actions (Page* base, - GActionMap* map); -void page_remove_actions (Page* self, - GActionMap* map); -static InjectionGroup** direct_photo_page_real_init_collect_injection_groups (Page* base, - int* result_length1); -InjectionGroup** page_init_collect_injection_groups (Page* self, - int* result_length1); -InjectionGroup* injection_group_new (const gchar* path); -InjectionGroup* injection_group_construct (GType object_type, - const gchar* path); -void injection_group_add_menu_item (InjectionGroup* self, - const gchar* name, - const gchar* action, - const gchar* accellerator); -static void _vala_array_add64 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value); -static void _vala_array_add65 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -gboolean photo_file_format_is_file_supported (GFile* file); -#define RESOURCES_APP_TITLE "Shotwell" -static void direct_photo_page_real_realize (GtkWidget* base); -GType direct_photo_get_type (void) G_GNUC_CONST; -DirectPhoto* direct_photo_source_collection_get_file_source (DirectPhotoSourceCollection* self, - GFile* file); -void editing_host_page_display_mirror_of (EditingHostPage* self, - ViewCollection* controller, - Photo* starting_photo); -void app_window_panic (const gchar* msg); -static void direct_photo_page_real_photo_changing (EditingHostPage* base, - Photo* new_photo); -Photo* editing_host_page_get_photo (EditingHostPage* self); -static void direct_photo_page_on_dphoto_can_rotate_changed (DirectPhotoPage* self, - gboolean should_allow_rotation); -static void _direct_photo_page_on_dphoto_can_rotate_changed_direct_photo_can_rotate_changed (DirectPhoto* _sender, - gboolean b, - gpointer self); -GType import_result_get_type (void) G_GNUC_CONST; -ImportResult direct_photo_demand_load (DirectPhoto* self); -GFile* direct_photo_page_get_current_file (DirectPhotoPage* self); -GFile* media_source_get_file (MediaSource* self); -static gboolean direct_photo_page_real_on_context_buttonpress (Page* base, - GdkEventButton* event); -gboolean page_popup_context_menu (Page* self, - GtkMenu* context_menu, - GdkEventButton* event); -static GtkMenu* direct_photo_page_get_context_menu (DirectPhotoPage* self); -static void direct_photo_page_update_zoom_menu_item_sensitivity (DirectPhotoPage* self); -GType zoom_state_get_type (void) G_GNUC_CONST; -ZoomState* zoom_state_dup (const ZoomState* self); -void zoom_state_free (ZoomState* self); -void single_photo_page_get_zoom_state (SinglePhotoPage* self, - ZoomState* result); -gboolean zoom_state_is_max (ZoomState *self); -gboolean editing_host_page_get_photo_missing (EditingHostPage* self); -void page_set_action_sensitive (Page* self, - const gchar* name, - gboolean sensitive); -gboolean zoom_state_is_default (ZoomState *self); -static void direct_photo_page_real_on_increase_size (EditingHostPage* base); -static void direct_photo_page_real_on_decrease_size (EditingHostPage* base); -gboolean editing_host_page_has_photo (EditingHostPage* self); -GType photo_file_format_get_type (void) G_GNUC_CONST; -PhotoFileFormat photo_get_file_format (Photo* self); -gboolean photo_file_format_can_write (PhotoFileFormat self); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* page_get_command_manager (Page* self); -void command_manager_reset (CommandManager* self); -static gboolean direct_photo_page_real_on_double_click (EditingHostPage* base, - GdkEventButton* event); -GtkWindow* page_get_container (Page* self); -void fullscreen_window_close (FullscreenWindow* self); -gboolean editing_host_page_on_double_click (EditingHostPage* self, - GdkEventButton* event); -static void direct_photo_page_real_update_ui (EditingHostPage* base, - gboolean missing); -void editing_host_page_update_ui (EditingHostPage* self, - gboolean missing); -static void direct_photo_page_real_update_actions (Page* base, - gint selected_count, - gint count); -gint data_collection_get_count (DataCollection* self); -gboolean photo_has_transformations (Photo* self); -gboolean editing_host_page_is_rotate_available (EditingHostPage* self, - Photo* photo); -gboolean editing_host_page_is_enhance_available (EditingHostPage* self, - Photo* photo); -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -gboolean editing_tools_crop_tool_is_available (Photo* photo, - Scaling* scaling); -void scaling_for_original (Scaling* result); -gboolean editing_tools_redeye_tool_is_available (Photo* photo, - Scaling* scaling); -void page_update_actions (Page* self, - gint selected_count, - gint count); -static gboolean direct_photo_page_check_ok_to_close_photo (DirectPhotoPage* self, - Photo* photo); -gboolean photo_has_alterations (Photo* self); -void photo_remove_all_transformations (Photo* self); -GtkResponseType app_window_negate_affirm_cancel_question (const gchar* message, - const gchar* negative, - const gchar* affirmative, - const gchar* title, - GtkWindow* parent); -gchar* media_source_get_basename (MediaSource* self); -GType jpeg_quality_get_type (void) G_GNUC_CONST; -static void direct_photo_page_save (DirectPhotoPage* self, - GFile* dest, - gint scale, - ScaleConstraint constraint, - JpegQuality quality, - PhotoFileFormat format, - gboolean copy_unmodified, - gboolean save_metadata); -gboolean direct_photo_page_check_quit (DirectPhotoPage* self); -static gboolean direct_photo_page_real_confirm_replace_photo (EditingHostPage* base, - Photo* old_photo, - Photo* new_photo); -void scaling_for_constraint (ScaleConstraint constraint, - gint scale, - gboolean scale_up, - Scaling* result); -void photo_export (Photo* self, - GFile* dest_file, - Scaling* scaling, - JpegQuality quality, - PhotoFileFormat export_format, - gboolean direct_copy_unmodified, - gboolean export_metadata, - GError** error); -gchar* direct_photo_source_collection_fetch (DirectPhotoSourceCollection* self, - GFile* file, - DirectPhoto* * photo, - gboolean reimport); -gboolean data_source_equals (DataSource* self, - DataSource* source); -GType direct_view_get_type (void) G_GNUC_CONST; -DirectView* direct_view_new (DirectPhoto* source); -DirectView* direct_view_construct (GType object_type, - DirectPhoto* source); -gboolean data_collection_add (DataCollection* self, - DataObject* object); -void direct_photo_source_collection_reimport_photo (DirectPhotoSourceCollection* self, - DirectPhoto* photo); -GType export_dialog_get_type (void) G_GNUC_CONST; -ExportDialog* export_dialog_new (const gchar* title); -ExportDialog* export_dialog_construct (GType object_type, - const gchar* title); -GType export_format_parameters_get_type (void) G_GNUC_CONST; -GType export_format_mode_get_type (void) G_GNUC_CONST; -ExportFormatParameters* export_format_parameters_dup (const ExportFormatParameters* self); -void export_format_parameters_free (ExportFormatParameters* self); -void export_format_parameters_last (ExportFormatParameters* result); -gboolean export_dialog_execute (ExportDialog* self, - gint* scale, - ScaleConstraint* constraint, - ExportFormatParameters* parameters); -gchar* photo_get_export_basename_for_parameters (Photo* self, - ExportFormatParameters* params); -PhotoFileFormat photo_get_export_format_for_parameters (Photo* self, - ExportFormatParameters* params); -gpointer photo_file_format_properties_ref (gpointer instance); -void photo_file_format_properties_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_properties (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_format_properties (GValue* value, - gpointer v_object); -void value_take_photo_file_format_properties (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_format_properties (const GValue* value); -GType photo_file_format_properties_get_type (void) G_GNUC_CONST; -PhotoFileFormatProperties* photo_file_format_get_properties (PhotoFileFormat self); -gchar** photo_file_format_properties_get_known_extensions (PhotoFileFormatProperties* self, - int* result_length1); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -#define RESOURCES_CANCEL_LABEL _ ("_Cancel") -#define RESOURCES_OK_LABEL _ ("_OK") -void desktop_integration_send_to (GeeCollection* media); -GeeList* view_collection_get_selected_sources (ViewCollection* self); -static gboolean direct_photo_page_real_on_app_key_pressed (Page* base, - GdkEventKey* event); -void page_activate_action (Page* self, - const gchar* name); -gboolean page_on_app_key_pressed (Page* self, - GdkEventKey* event); -gint view_collection_get_selected_count (ViewCollection* self); -gpointer print_manager_ref (gpointer instance); -void print_manager_unref (gpointer instance); -GParamSpec* param_spec_print_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_print_manager (GValue* value, - gpointer v_object); -void value_take_print_manager (GValue* value, - gpointer v_object); -gpointer value_get_print_manager (const GValue* value); -GType print_manager_get_type (void) G_GNUC_CONST; -PrintManager* print_manager_get_instance (void); -void print_manager_spool_photo (PrintManager* self, - GeeCollection* to_print); -GeeList* view_collection_get_selected_sources_of_type (ViewCollection* self, - GType t); -static Block7Data* block7_data_ref (Block7Data* _data7_); -static void block7_data_unref (void * _userdata_); -static gboolean __lambda17_ (Block7Data* _data7_); -void editing_host_page_enable_rotate (EditingHostPage* self, - gboolean should_enable); -static gboolean ___lambda17__gsource_func (gpointer self); -static DataView* direct_photo_page_real_create_photo_view (EditingHostPage* base, - DataSource* source); -static void direct_photo_page_finalize (GObject * obj); -GType direct_fullscreen_photo_page_get_type (void) G_GNUC_CONST; -DirectFullscreenPhotoPage* direct_fullscreen_photo_page_new (GFile* file); -DirectFullscreenPhotoPage* direct_fullscreen_photo_page_construct (GType object_type, - GFile* file); -static void direct_fullscreen_photo_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - -static const GActionEntry DIRECT_PHOTO_PAGE_entries[23] = {{"Save", _direct_photo_page_on_save_gsimple_action_activate_callback}, {"SaveAs", _direct_photo_page_on_save_as_gsimple_action_activate_callback}, {"SendTo", _direct_photo_page_on_send_to_gsimple_action_activate_callback}, {"Print", _direct_photo_page_on_print_gsimple_action_activate_callback}, {"PrevPhoto", _single_photo_page_on_previous_photo_gsimple_action_activate_callback}, {"NextPhoto", _single_photo_page_on_next_photo_gsimple_action_activate_callback}, {"RotateClockwise", _editing_host_page_on_rotate_clockwise_gsimple_action_activate_callback}, {"RotateCounterclockwise", _editing_host_page_on_rotate_counterclockwise_gsimple_action_activate_callback}, {"FlipHorizontally", _editing_host_page_on_flip_horizontally_gsimple_action_activate_callback}, {"FlipVertically", _editing_host_page_on_flip_vertically_gsimple_action_activate_callback}, {"Enhance", _editing_host_page_on_enhance_gsimple_action_activate_callback}, {"Crop", _editing_host_page_toggle_crop_gsimple_action_activate_callback}, {"Straighten", _editing_host_page_toggle_straighten_gsimple_action_activate_callback}, {"RedEye", _editing_host_page_toggle_redeye_gsimple_action_activate_callback}, {"Adjust", _editing_host_page_toggle_adjust_gsimple_action_activate_callback}, {"Revert", _editing_host_page_on_revert_gsimple_action_activate_callback}, {"AdjustDateTime", _editing_host_page_on_adjust_date_time_gsimple_action_activate_callback}, {"SetBackground", _editing_host_page_on_set_background_gsimple_action_activate_callback}, {"IncreaseSize", _editing_host_page_on_increase_size_gsimple_action_activate_callback}, {"DecreaseSize", _editing_host_page_on_decrease_size_gsimple_action_activate_callback}, {"ZoomFit", _editing_host_page_snap_zoom_to_min_gsimple_action_activate_callback}, {"Zoom100", _editing_host_page_snap_zoom_to_isomorphic_gsimple_action_activate_callback}, {"Zoom200", _editing_host_page_snap_zoom_to_max_gsimple_action_activate_callback}}; - -static void -_direct_photo_page_on_photos_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 32 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - direct_photo_page_on_photos_altered ((DirectPhotoPage*) self, items); -#line 1069 "DirectPhotoPage.c" -} - - -static void -_direct_photo_page_on_save_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - direct_photo_page_on_save ((DirectPhotoPage*) self); -#line 1080 "DirectPhotoPage.c" -} - - -static void -_direct_photo_page_on_save_as_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - direct_photo_page_on_save_as ((DirectPhotoPage*) self); -#line 1091 "DirectPhotoPage.c" -} - - -static void -_direct_photo_page_on_send_to_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - direct_photo_page_on_send_to ((DirectPhotoPage*) self); -#line 1102 "DirectPhotoPage.c" -} - - -static void -_direct_photo_page_on_print_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - direct_photo_page_on_print ((DirectPhotoPage*) self); -#line 1113 "DirectPhotoPage.c" -} - - -static void -_single_photo_page_on_previous_photo_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - single_photo_page_on_previous_photo ((SinglePhotoPage*) self); -#line 1124 "DirectPhotoPage.c" -} - - -static void -_single_photo_page_on_next_photo_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - single_photo_page_on_next_photo ((SinglePhotoPage*) self); -#line 1135 "DirectPhotoPage.c" -} - - -static void -_editing_host_page_on_rotate_clockwise_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_on_rotate_clockwise ((EditingHostPage*) self); -#line 1146 "DirectPhotoPage.c" -} - - -static void -_editing_host_page_on_rotate_counterclockwise_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_on_rotate_counterclockwise ((EditingHostPage*) self); -#line 1157 "DirectPhotoPage.c" -} - - -static void -_editing_host_page_on_flip_horizontally_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_on_flip_horizontally ((EditingHostPage*) self); -#line 1168 "DirectPhotoPage.c" -} - - -static void -_editing_host_page_on_flip_vertically_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_on_flip_vertically ((EditingHostPage*) self); -#line 1179 "DirectPhotoPage.c" -} - - -static void -_editing_host_page_on_enhance_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_on_enhance ((EditingHostPage*) self); -#line 1190 "DirectPhotoPage.c" -} - - -static void -_editing_host_page_toggle_crop_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_toggle_crop ((EditingHostPage*) self); -#line 1201 "DirectPhotoPage.c" -} - - -static void -_editing_host_page_toggle_straighten_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_toggle_straighten ((EditingHostPage*) self); -#line 1212 "DirectPhotoPage.c" -} - - -static void -_editing_host_page_toggle_redeye_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_toggle_redeye ((EditingHostPage*) self); -#line 1223 "DirectPhotoPage.c" -} - - -static void -_editing_host_page_toggle_adjust_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_toggle_adjust ((EditingHostPage*) self); -#line 1234 "DirectPhotoPage.c" -} - - -static void -_editing_host_page_on_revert_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_on_revert ((EditingHostPage*) self); -#line 1245 "DirectPhotoPage.c" -} - - -static void -_editing_host_page_on_adjust_date_time_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_on_adjust_date_time ((EditingHostPage*) self); -#line 1256 "DirectPhotoPage.c" -} - - -static void -_editing_host_page_on_set_background_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_on_set_background ((EditingHostPage*) self); -#line 1267 "DirectPhotoPage.c" -} - - -static void -_editing_host_page_on_increase_size_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_on_increase_size ((EditingHostPage*) self); -#line 1278 "DirectPhotoPage.c" -} - - -static void -_editing_host_page_on_decrease_size_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_on_decrease_size ((EditingHostPage*) self); -#line 1289 "DirectPhotoPage.c" -} - - -static void -_editing_host_page_snap_zoom_to_min_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_snap_zoom_to_min ((EditingHostPage*) self); -#line 1300 "DirectPhotoPage.c" -} - - -static void -_editing_host_page_snap_zoom_to_isomorphic_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_snap_zoom_to_isomorphic ((EditingHostPage*) self); -#line 1311 "DirectPhotoPage.c" -} - - -static void -_editing_host_page_snap_zoom_to_max_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_snap_zoom_to_max ((EditingHostPage*) self); -#line 1322 "DirectPhotoPage.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 22 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return self ? g_object_ref (self) : NULL; -#line 1331 "DirectPhotoPage.c" -} - - -static void -_direct_photo_page_on_selection_group_altered_view_collection_selection_group_altered (ViewCollection* _sender, - gpointer self) -{ -#line 28 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - direct_photo_page_on_selection_group_altered ((DirectPhotoPage*) self); -#line 1341 "DirectPhotoPage.c" -} - - -DirectPhotoPage* -direct_photo_page_construct (GType object_type, - GFile* file) -{ - DirectPhotoPage * self = NULL; - DirectPhotoSourceCollection* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - GFile* _tmp5_; - DirectViewCollection* _tmp6_; - GFile* _tmp7_; - DirectPhotoSourceCollection* _tmp8_; - ViewCollection* _tmp9_; - ViewCollection* _tmp10_; -#line 13 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 14 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = direct_photo_global; -#line 14 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = g_file_get_basename (file); -#line 14 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = _tmp1_; -#line 14 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = (DirectPhotoPage*) editing_host_page_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp2_); -#line 14 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp2_); -#line 16 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (!direct_photo_page_check_editable_file (file)) { -#line 1373 "DirectPhotoPage.c" - Application* _tmp3_; - Application* _tmp4_; -#line 17 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3_ = application_get_instance (); -#line 17 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp4_ = _tmp3_; -#line 17 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - application_panic (_tmp4_); -#line 17 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _application_unref0 (_tmp4_); -#line 19 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return self; -#line 1386 "DirectPhotoPage.c" - } -#line 22 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp5_ = _g_object_ref0 (file); -#line 22 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (self->priv->initial_file); -#line 22 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self->priv->initial_file = _tmp5_; -#line 23 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp6_ = direct_view_collection_new (); -#line 23 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _data_collection_unref0 (self->priv->view_controller); -#line 23 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self->priv->view_controller = _tmp6_; -#line 24 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp7_ = g_file_get_parent (file); -#line 24 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (self->priv->current_save_dir); -#line 24 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self->priv->current_save_dir = _tmp7_; -#line 26 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp8_ = direct_photo_global; -#line 26 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _direct_photo_page_on_photos_altered_data_collection_items_altered, self, 0); -#line 28 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 28 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp10_ = _tmp9_; -#line 28 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_signal_connect_object (_tmp10_, "selection-group-altered", (GCallback) _direct_photo_page_on_selection_group_altered_view_collection_selection_group_altered, self, 0); -#line 28 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _data_collection_unref0 (_tmp10_); -#line 13 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return self; -#line 1420 "DirectPhotoPage.c" -} - - -DirectPhotoPage* -direct_photo_page_new (GFile* file) -{ -#line 13 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return direct_photo_page_construct (TYPE_DIRECT_PHOTO_PAGE, file); -#line 1429 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames) -{ - DirectPhotoPage * self; -#line 35 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 35 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 36 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - PAGE_CLASS (direct_photo_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), ui_filenames); -#line 38 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "direct_context.ui"); -#line 39 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "direct.ui"); -#line 1448 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_real_add_actions (Page* base, - GActionMap* map) -{ - DirectPhotoPage * self; -#line 68 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 68 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 69 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - PAGE_CLASS (direct_photo_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), map); -#line 71 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_action_map_add_action_entries (map, DIRECT_PHOTO_PAGE_entries, G_N_ELEMENTS (DIRECT_PHOTO_PAGE_entries), self); -#line 1465 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_real_remove_actions (Page* base, - GActionMap* map) -{ - DirectPhotoPage * self; -#line 74 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 74 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 75 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - PAGE_CLASS (direct_photo_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), map); -#line 1480 "DirectPhotoPage.c" - { - GActionEntry* entry_collection = NULL; - gint entry_collection_length1 = 0; - gint _entry_collection_size_ = 0; - gint entry_it = 0; -#line 76 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - entry_collection = DIRECT_PHOTO_PAGE_entries; -#line 76 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - entry_collection_length1 = G_N_ELEMENTS (DIRECT_PHOTO_PAGE_entries); -#line 76 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - for (entry_it = 0; entry_it < G_N_ELEMENTS (DIRECT_PHOTO_PAGE_entries); entry_it = entry_it + 1) { -#line 1492 "DirectPhotoPage.c" - GActionEntry entry = {0}; -#line 76 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - entry = entry_collection[entry_it]; -#line 1496 "DirectPhotoPage.c" - { - GActionEntry _tmp0_; - const gchar* _tmp1_; -#line 77 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = entry; -#line 77 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = _tmp0_.name; -#line 77 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_action_map_remove_action (map, _tmp1_); -#line 1506 "DirectPhotoPage.c" - } - } - } -} - - -static gpointer -_injection_group_ref0 (gpointer self) -{ -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return self ? injection_group_ref (self) : NULL; -#line 1518 "DirectPhotoPage.c" -} - - -static void -_vala_array_add64 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value) -{ -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if ((*length) == (*size)) { -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 1534 "DirectPhotoPage.c" - } -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - (*array)[(*length)++] = value; -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - (*array)[*length] = NULL; -#line 1540 "DirectPhotoPage.c" -} - - -static void -_vala_array_add65 (InjectionGroup** * array, - int* length, - int* size, - InjectionGroup* value) -{ -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if ((*length) == (*size)) { -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - *array = g_renew (InjectionGroup*, *array, (*size) + 1); -#line 1556 "DirectPhotoPage.c" - } -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - (*array)[(*length)++] = value; -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - (*array)[*length] = NULL; -#line 1562 "DirectPhotoPage.c" -} - - -static InjectionGroup** -direct_photo_page_real_init_collect_injection_groups (Page* base, - int* result_length1) -{ - DirectPhotoPage * self; - InjectionGroup** result = NULL; - InjectionGroup** groups = NULL; - gint _tmp0_; - InjectionGroup** _tmp1_; - gint groups_length1; - gint _groups_size_; - InjectionGroup* print_group = NULL; - InjectionGroup* _tmp2_; - InjectionGroup** _tmp3_; - gint _tmp3__length1; - InjectionGroup* _tmp4_; - InjectionGroup* bg_group = NULL; - InjectionGroup* _tmp5_; - InjectionGroup** _tmp6_; - gint _tmp6__length1; - InjectionGroup* _tmp7_; - InjectionGroup** _tmp8_; - gint _tmp8__length1; -#line 81 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 82 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = PAGE_CLASS (direct_photo_page_parent_class)->init_collect_injection_groups (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), &_tmp0_); -#line 82 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - groups = _tmp1_; -#line 82 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - groups_length1 = _tmp0_; -#line 82 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _groups_size_ = groups_length1; -#line 84 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = injection_group_new ("PrintPlaceholder"); -#line 84 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - print_group = _tmp2_; -#line 85 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - injection_group_add_menu_item (print_group, _ ("_Print"), "Print", "p"); -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3_ = groups; -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3__length1 = groups_length1; -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp4_ = _injection_group_ref0 (print_group); -#line 87 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _vala_array_add64 (&groups, &groups_length1, &_groups_size_, _tmp4_); -#line 89 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp5_ = injection_group_new ("SetBackgroundPlaceholder"); -#line 89 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - bg_group = _tmp5_; -#line 90 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - injection_group_add_menu_item (bg_group, _ ("Set as _Desktop Background"), "SetBackground", "b"); -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp6_ = groups; -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp6__length1 = groups_length1; -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp7_ = _injection_group_ref0 (bg_group); -#line 92 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _vala_array_add65 (&groups, &groups_length1, &_groups_size_, _tmp7_); -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp8_ = groups; -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp8__length1 = groups_length1; -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (result_length1) { -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - *result_length1 = _tmp8__length1; -#line 1635 "DirectPhotoPage.c" - } -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = _tmp8_; -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _injection_group_unref0 (bg_group); -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _injection_group_unref0 (print_group); -#line 94 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 1645 "DirectPhotoPage.c" -} - - -static gboolean -direct_photo_page_check_editable_file (GFile* file) -{ - gboolean result = FALSE; - gchar* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_; -#line 97 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = g_file_get_path (file); -#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = _tmp0_; -#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = !g_file_test (_tmp1_, G_FILE_TEST_EXISTS); -#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp1_); -#line 98 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp2_) { -#line 1668 "DirectPhotoPage.c" - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3_ = g_file_get_path (file); -#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp4_ = _tmp3_; -#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp5_ = g_strdup_printf (_ ("%s does not exist."), _tmp4_); -#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp6_ = _tmp5_; -#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - app_window_error_message (_tmp6_, NULL); -#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp6_); -#line 99 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp4_); -#line 1687 "DirectPhotoPage.c" - } else { - gchar* _tmp7_; - gchar* _tmp8_; - gboolean _tmp9_; -#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp7_ = g_file_get_path (file); -#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp8_ = _tmp7_; -#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp9_ = !g_file_test (_tmp8_, G_FILE_TEST_IS_REGULAR); -#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp8_); -#line 100 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp9_) { -#line 1702 "DirectPhotoPage.c" - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp10_ = g_file_get_path (file); -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp11_ = _tmp10_; -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp12_ = g_strdup_printf (_ ("%s is not a file."), _tmp11_); -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp13_ = _tmp12_; -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - app_window_error_message (_tmp13_, NULL); -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp13_); -#line 101 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp11_); -#line 1721 "DirectPhotoPage.c" - } else { -#line 102 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (!photo_file_format_is_file_supported (file)) { -#line 1725 "DirectPhotoPage.c" - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; -#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp14_ = g_file_get_path (file); -#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp15_ = _tmp14_; -#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp16_ = g_strdup_printf (_ ("%s does not support the file format of\n%s."), RESOURCES_APP_TITLE, _tmp15_); -#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp17_ = _tmp16_; -#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - app_window_error_message (_tmp17_, NULL); -#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp17_); -#line 103 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp15_); -#line 1744 "DirectPhotoPage.c" - } else { -#line 106 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = TRUE; -#line 106 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 1750 "DirectPhotoPage.c" - } - } - } -#line 108 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = FALSE; -#line 108 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 1758 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_real_realize (GtkWidget* base) -{ - DirectPhotoPage * self; - DirectPhoto* photo = NULL; - DirectPhotoSourceCollection* _tmp0_; - GFile* _tmp1_; - DirectPhoto* _tmp2_; - DirectPhoto* _tmp3_; -#line 111 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 112 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (GTK_WIDGET_CLASS (direct_photo_page_parent_class)->realize != NULL) { -#line 113 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - GTK_WIDGET_CLASS (direct_photo_page_parent_class)->realize (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), gtk_widget_get_type (), GtkWidget)); -#line 1777 "DirectPhotoPage.c" - } -#line 115 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = direct_photo_global; -#line 115 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = self->priv->initial_file; -#line 115 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = direct_photo_source_collection_get_file_source (_tmp0_, _tmp1_); -#line 115 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - photo = _tmp2_; -#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3_ = photo; -#line 117 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp3_ != NULL) { -#line 1791 "DirectPhotoPage.c" - DirectViewCollection* _tmp4_; - DirectPhoto* _tmp5_; -#line 118 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp4_ = self->priv->view_controller; -#line 118 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp5_ = photo; -#line 118 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_display_mirror_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_VIEW_COLLECTION, ViewCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PHOTO, Photo)); -#line 1800 "DirectPhotoPage.c" - } else { - GFile* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp6_ = self->priv->initial_file; -#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp7_ = g_file_get_path (_tmp6_); -#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp8_ = _tmp7_; -#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp9_ = g_strdup_printf (_ ("Unable open photo %s. Sorry."), _tmp8_); -#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp10_ = _tmp9_; -#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - app_window_panic (_tmp10_); -#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp10_); -#line 120 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp8_); -#line 1823 "DirectPhotoPage.c" - } -#line 123 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (self->priv->initial_file); -#line 123 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self->priv->initial_file = NULL; -#line 111 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (photo); -#line 1831 "DirectPhotoPage.c" -} - - -static void -_direct_photo_page_on_dphoto_can_rotate_changed_direct_photo_can_rotate_changed (DirectPhoto* _sender, - gboolean b, - gpointer self) -{ -#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - direct_photo_page_on_dphoto_can_rotate_changed ((DirectPhotoPage*) self, b); -#line 1842 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_real_photo_changing (EditingHostPage* base, - Photo* new_photo) -{ - DirectPhotoPage * self; - Photo* _tmp0_; - Photo* _tmp1_; - gboolean _tmp2_; - DirectPhoto* tmp = NULL; - DirectPhoto* _tmp8_; - DirectPhoto* _tmp9_; -#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_if_fail (IS_PHOTO (new_photo)); -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = _tmp0_; -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = _tmp1_ != NULL; -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp2_) { -#line 1871 "DirectPhotoPage.c" - DirectPhoto* tmp = NULL; - Photo* _tmp3_; - DirectPhoto* _tmp4_; - DirectPhoto* _tmp5_; -#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TYPE_DIRECT_PHOTO) ? ((DirectPhoto*) _tmp3_) : NULL; -#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp4_ == NULL) { -#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 1884 "DirectPhotoPage.c" - } -#line 128 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - tmp = _tmp4_; -#line 130 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp5_ = tmp; -#line 130 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp5_ != NULL) { -#line 1892 "DirectPhotoPage.c" - DirectPhoto* _tmp6_; - guint _tmp7_; -#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp6_ = tmp; -#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_signal_parse_name ("can-rotate-changed", TYPE_DIRECT_PHOTO, &_tmp7_, NULL, FALSE); -#line 131 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _direct_photo_page_on_dphoto_can_rotate_changed_direct_photo_can_rotate_changed, self); -#line 1901 "DirectPhotoPage.c" - } -#line 127 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (tmp); -#line 1905 "DirectPhotoPage.c" - } -#line 135 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - direct_photo_demand_load (G_TYPE_CHECK_INSTANCE_CAST (new_photo, TYPE_DIRECT_PHOTO, DirectPhoto)); -#line 137 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (new_photo, TYPE_DIRECT_PHOTO) ? ((DirectPhoto*) new_photo) : NULL); -#line 137 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - tmp = _tmp8_; -#line 139 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp9_ = tmp; -#line 139 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp9_ != NULL) { -#line 1917 "DirectPhotoPage.c" - DirectPhoto* _tmp10_; -#line 140 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp10_ = tmp; -#line 140 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_signal_connect_object (_tmp10_, "can-rotate-changed", (GCallback) _direct_photo_page_on_dphoto_can_rotate_changed_direct_photo_can_rotate_changed, self, 0); -#line 1923 "DirectPhotoPage.c" - } -#line 126 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (tmp); -#line 1927 "DirectPhotoPage.c" -} - - -GFile* -direct_photo_page_get_current_file (DirectPhotoPage* self) -{ - GFile* result = NULL; - Photo* _tmp0_; - Photo* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; -#line 144 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_val_if_fail (IS_DIRECT_PHOTO_PAGE (self), NULL); -#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = _tmp0_; -#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3_ = _tmp2_; -#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = _tmp3_; -#line 145 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 1955 "DirectPhotoPage.c" -} - - -static gboolean -direct_photo_page_real_on_context_buttonpress (Page* base, - GdkEventButton* event) -{ - DirectPhotoPage * self; - gboolean result = FALSE; - GtkMenu* _tmp0_; - GtkMenu* _tmp1_; -#line 148 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 148 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 149 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = direct_photo_page_get_context_menu (self); -#line 149 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = _tmp0_; -#line 149 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_popup_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp1_, event); -#line 149 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 151 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = TRUE; -#line 151 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 1983 "DirectPhotoPage.c" -} - - -static GtkMenu* -direct_photo_page_get_context_menu (DirectPhotoPage* self) -{ - GtkMenu* result = NULL; - GtkMenu* _tmp0_; - GtkMenu* _tmp7_; - GtkMenu* _tmp8_; -#line 156 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_val_if_fail (IS_DIRECT_PHOTO_PAGE (self), NULL); -#line 157 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = self->priv->context_menu; -#line 157 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp0_ == NULL) { -#line 2000 "DirectPhotoPage.c" - GMenuModel* model = NULL; - GtkBuilder* _tmp1_; - GObject* _tmp2_; - GMenuModel* _tmp3_; - GMenuModel* _tmp4_; - GtkMenu* _tmp5_; - GtkMenu* _tmp6_; -#line 158 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)->builder; -#line 158 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = gtk_builder_get_object (_tmp1_, "DirectContextMenu"); -#line 158 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp2_) : NULL); -#line 158 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - model = _tmp3_; -#line 160 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp4_ = model; -#line 160 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp5_ = (GtkMenu*) gtk_menu_new_from_model (_tmp4_); -#line 160 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_object_ref_sink (_tmp5_); -#line 160 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (self->priv->context_menu); -#line 160 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self->priv->context_menu = _tmp5_; -#line 161 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp6_ = self->priv->context_menu; -#line 161 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - gtk_menu_attach_to_widget (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), NULL); -#line 157 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (model); -#line 2032 "DirectPhotoPage.c" - } -#line 164 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp7_ = self->priv->context_menu; -#line 164 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp8_ = _g_object_ref0 (_tmp7_); -#line 164 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = _tmp8_; -#line 164 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 2042 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_update_zoom_menu_item_sensitivity (DirectPhotoPage* self) -{ - gboolean _tmp0_ = FALSE; - ZoomState _tmp1_ = {0}; - gboolean _tmp2_ = FALSE; - ZoomState _tmp3_ = {0}; -#line 167 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); -#line 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp1_); -#line 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (!zoom_state_is_max (&_tmp1_)) { -#line 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = !editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2061 "DirectPhotoPage.c" - } else { -#line 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = FALSE; -#line 2065 "DirectPhotoPage.c" - } -#line 168 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", _tmp0_); -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - single_photo_page_get_zoom_state (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), &_tmp3_); -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (!zoom_state_is_default (&_tmp3_)) { -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = !editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2075 "DirectPhotoPage.c" - } else { -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = FALSE; -#line 2079 "DirectPhotoPage.c" - } -#line 169 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", _tmp2_); -#line 2083 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_real_on_increase_size (EditingHostPage* base) -{ - DirectPhotoPage * self; -#line 172 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 173 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - EDITING_HOST_PAGE_CLASS (direct_photo_page_parent_class)->on_increase_size (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 175 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - direct_photo_page_update_zoom_menu_item_sensitivity (self); -#line 2097 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_real_on_decrease_size (EditingHostPage* base) -{ - DirectPhotoPage * self; -#line 178 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 179 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - EDITING_HOST_PAGE_CLASS (direct_photo_page_parent_class)->on_decrease_size (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 181 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - direct_photo_page_update_zoom_menu_item_sensitivity (self); -#line 2111 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_on_photos_altered (DirectPhotoPage* self, - GeeMap* map) -{ - gboolean contains = FALSE; - gboolean _tmp11_ = FALSE; - gboolean sensitive = FALSE; - gboolean _tmp12_; - gboolean _tmp14_ = FALSE; - gboolean _tmp15_; - gboolean _tmp18_; -#line 184 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); -#line 184 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_if_fail (GEE_IS_MAP (map)); -#line 185 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - contains = FALSE; -#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 2134 "DirectPhotoPage.c" - Photo* photo = NULL; - Photo* _tmp0_; -#line 187 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 187 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - photo = _tmp0_; -#line 2141 "DirectPhotoPage.c" - { - GeeIterator* _object_it = NULL; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeSet* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = gee_map_get_keys (map); -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = _tmp1_; -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3_ = _tmp2_; -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp5_ = _tmp4_; -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _object_it = _tmp5_; -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - while (TRUE) { -#line 2165 "DirectPhotoPage.c" - GeeIterator* _tmp6_; - DataObject* object = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - DataObject* _tmp9_; - Photo* _tmp10_; -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp6_ = _object_it; -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - break; -#line 2178 "DirectPhotoPage.c" - } -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp7_ = _object_it; -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - object = (DataObject*) _tmp8_; -#line 189 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp9_ = object; -#line 189 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp10_ = photo; -#line 189 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO, Photo) == _tmp10_) { -#line 190 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - contains = TRUE; -#line 192 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (object); -#line 192 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - break; -#line 2198 "DirectPhotoPage.c" - } -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (object); -#line 2202 "DirectPhotoPage.c" - } -#line 188 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_object_it); -#line 2206 "DirectPhotoPage.c" - } -#line 186 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (photo); -#line 2210 "DirectPhotoPage.c" - } -#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp11_ = !editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2216 "DirectPhotoPage.c" - } else { -#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp11_ = FALSE; -#line 2220 "DirectPhotoPage.c" - } -#line 197 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - sensitive = _tmp11_; -#line 198 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp12_ = sensitive; -#line 198 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp12_) { -#line 2228 "DirectPhotoPage.c" - gboolean _tmp13_; -#line 199 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp13_ = contains; -#line 199 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - sensitive = _tmp13_; -#line 2234 "DirectPhotoPage.c" - } -#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp15_ = sensitive; -#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp15_) { -#line 2240 "DirectPhotoPage.c" - Photo* _tmp16_; - Photo* _tmp17_; -#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp16_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp17_ = _tmp16_; -#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp14_ = photo_file_format_can_write (photo_get_file_format (_tmp17_)); -#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp17_); -#line 2251 "DirectPhotoPage.c" - } else { -#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp14_ = FALSE; -#line 2255 "DirectPhotoPage.c" - } -#line 201 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Save", _tmp14_); -#line 202 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp18_ = sensitive; -#line 202 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp18_); -#line 2263 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_on_selection_group_altered (DirectPhotoPage* self) -{ - CommandManager* _tmp0_; - CommandManager* _tmp1_; -#line 205 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); -#line 212 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 212 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = _tmp0_; -#line 212 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - command_manager_reset (_tmp1_); -#line 212 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _command_manager_unref0 (_tmp1_); -#line 2282 "DirectPhotoPage.c" -} - - -static gboolean -direct_photo_page_real_on_double_click (EditingHostPage* base, - GdkEventButton* event) -{ - DirectPhotoPage * self; - gboolean result = FALSE; - FullscreenWindow* fs = NULL; - GtkWindow* _tmp0_; - FullscreenWindow* _tmp1_; - FullscreenWindow* _tmp2_; -#line 215 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 215 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 216 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = page_get_container (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 216 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_FULLSCREEN_WINDOW) ? ((FullscreenWindow*) _tmp0_) : NULL; -#line 216 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp1_ == NULL) { -#line 216 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp0_); -#line 2308 "DirectPhotoPage.c" - } -#line 216 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - fs = _tmp1_; -#line 217 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = fs; -#line 217 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp2_ != NULL) { -#line 2316 "DirectPhotoPage.c" - FullscreenWindow* _tmp3_; -#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3_ = fs; -#line 218 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - fullscreen_window_close (_tmp3_); -#line 220 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = TRUE; -#line 220 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (fs); -#line 220 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 2328 "DirectPhotoPage.c" - } -#line 223 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = EDITING_HOST_PAGE_CLASS (direct_photo_page_parent_class)->on_double_click (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), event); -#line 223 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (fs); -#line 223 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 2336 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_real_update_ui (EditingHostPage* base, - gboolean missing) -{ - DirectPhotoPage * self; - gboolean sensitivity = FALSE; - gboolean _tmp0_; - gboolean _tmp1_; - gboolean _tmp2_; - gboolean _tmp3_; - gboolean _tmp4_; - gboolean _tmp5_; - gboolean _tmp6_; - gboolean _tmp7_; - gboolean _tmp8_; - gboolean _tmp9_; - gboolean _tmp10_; - gboolean _tmp11_; - gboolean _tmp12_; - gboolean _tmp13_; - gboolean _tmp14_; - gboolean _tmp15_; - gboolean _tmp16_; - gboolean _tmp17_; - gboolean _tmp18_; - gboolean _tmp19_; - gboolean _tmp20_; - gboolean _tmp21_; - gboolean _tmp22_; - gboolean _tmp23_; - gboolean _tmp24_; - gboolean _tmp25_ = FALSE; -#line 226 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 227 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - sensitivity = !missing; -#line 229 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = sensitivity; -#line 229 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Save", _tmp0_); -#line 230 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = sensitivity; -#line 230 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SaveAs", _tmp1_); -#line 231 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = sensitivity; -#line 231 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SendTo", _tmp2_); -#line 232 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3_ = sensitivity; -#line 232 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Publish", _tmp3_); -#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp4_ = sensitivity; -#line 233 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Print", _tmp4_); -#line 234 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp5_ = sensitivity; -#line 234 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonJumpToFile", _tmp5_); -#line 236 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp6_ = sensitivity; -#line 236 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonUndo", _tmp6_); -#line 237 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp7_ = sensitivity; -#line 237 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonRedo", _tmp7_); -#line 239 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp8_ = sensitivity; -#line 239 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "IncreaseSize", _tmp8_); -#line 240 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp9_ = sensitivity; -#line 240 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DecreaseSize", _tmp9_); -#line 241 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp10_ = sensitivity; -#line 241 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ZoomFit", _tmp10_); -#line 242 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp11_ = sensitivity; -#line 242 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Zoom100", _tmp11_); -#line 243 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp12_ = sensitivity; -#line 243 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Zoom200", _tmp12_); -#line 245 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp13_ = sensitivity; -#line 245 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", _tmp13_); -#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp14_ = sensitivity; -#line 246 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", _tmp14_); -#line 247 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp15_ = sensitivity; -#line 247 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", _tmp15_); -#line 248 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp16_ = sensitivity; -#line 248 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", _tmp16_); -#line 249 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp17_ = sensitivity; -#line 249 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", _tmp17_); -#line 250 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp18_ = sensitivity; -#line 250 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Crop", _tmp18_); -#line 251 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp19_ = sensitivity; -#line 251 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Straighten", _tmp19_); -#line 252 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp20_ = sensitivity; -#line 252 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RedEye", _tmp20_); -#line 253 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp21_ = sensitivity; -#line 253 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Adjust", _tmp21_); -#line 254 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp22_ = sensitivity; -#line 254 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp22_); -#line 255 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp23_ = sensitivity; -#line 255 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", _tmp23_); -#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp24_ = sensitivity; -#line 256 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Fullscreen", _tmp24_); -#line 258 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 258 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp25_ = !editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2480 "DirectPhotoPage.c" - } else { -#line 258 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp25_ = FALSE; -#line 2484 "DirectPhotoPage.c" - } -#line 258 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", _tmp25_); -#line 260 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - EDITING_HOST_PAGE_CLASS (direct_photo_page_parent_class)->update_ui (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), missing); -#line 2490 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_real_update_actions (Page* base, - gint selected_count, - gint count) -{ - DirectPhotoPage * self; - gboolean multiple = FALSE; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - gboolean _tmp3_ = FALSE; - gboolean revert_possible = FALSE; - gboolean _tmp8_ = FALSE; - gboolean rotate_possible = FALSE; - gboolean _tmp11_ = FALSE; - gboolean enhance_possible = FALSE; - gboolean _tmp14_; - gboolean _tmp15_; - gboolean _tmp16_; - gboolean _tmp17_; - gboolean _tmp18_; - gboolean _tmp19_; - gboolean _tmp20_; - gboolean _tmp21_; - Photo* _tmp28_; - Photo* _tmp29_; - gboolean _tmp30_; -#line 263 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = _tmp0_; -#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection)) > 1; -#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _data_collection_unref0 (_tmp1_); -#line 264 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - multiple = _tmp2_; -#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 2535 "DirectPhotoPage.c" - gboolean _tmp4_ = FALSE; - Photo* _tmp5_; - Photo* _tmp6_; - gboolean _tmp7_; -#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp5_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp6_ = _tmp5_; -#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp7_ = photo_has_transformations (_tmp6_); -#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp6_); -#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp7_) { -#line 266 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp4_ = !editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 2552 "DirectPhotoPage.c" - } else { -#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp4_ = FALSE; -#line 2556 "DirectPhotoPage.c" - } -#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3_ = _tmp4_; -#line 2560 "DirectPhotoPage.c" - } else { -#line 266 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3_ = FALSE; -#line 2564 "DirectPhotoPage.c" - } -#line 265 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - revert_possible = _tmp3_; -#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 2570 "DirectPhotoPage.c" - Photo* _tmp9_; - Photo* _tmp10_; -#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp9_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp10_ = _tmp9_; -#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp8_ = editing_host_page_is_rotate_available (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp10_); -#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp10_); -#line 2581 "DirectPhotoPage.c" - } else { -#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp8_ = FALSE; -#line 2585 "DirectPhotoPage.c" - } -#line 267 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - rotate_possible = _tmp8_; -#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 2591 "DirectPhotoPage.c" - Photo* _tmp12_; - Photo* _tmp13_; -#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp12_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp13_ = _tmp12_; -#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp11_ = editing_host_page_is_enhance_available (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _tmp13_); -#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp13_); -#line 2602 "DirectPhotoPage.c" - } else { -#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp11_ = FALSE; -#line 2606 "DirectPhotoPage.c" - } -#line 268 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - enhance_possible = _tmp11_; -#line 270 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp14_ = multiple; -#line 270 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "PrevPhoto", _tmp14_); -#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp15_ = multiple; -#line 271 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "NextPhoto", _tmp15_); -#line 272 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp16_ = rotate_possible; -#line 272 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise", _tmp16_); -#line 273 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp17_ = rotate_possible; -#line 273 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateCounterclockwise", _tmp17_); -#line 274 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp18_ = rotate_possible; -#line 274 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipHorizontally", _tmp18_); -#line 275 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp19_ = rotate_possible; -#line 275 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "FlipVertically", _tmp19_); -#line 276 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp20_ = revert_possible; -#line 276 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Revert", _tmp20_); -#line 277 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp21_ = enhance_possible; -#line 277 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Enhance", _tmp21_); -#line 279 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "SetBackground", editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))); -#line 281 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 2646 "DirectPhotoPage.c" - Photo* _tmp22_; - Photo* _tmp23_; - Scaling _tmp24_ = {0}; - Photo* _tmp25_; - Photo* _tmp26_; - Scaling _tmp27_ = {0}; -#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp22_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp23_ = _tmp22_; -#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - scaling_for_original (&_tmp24_); -#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Crop", editing_tools_crop_tool_is_available (_tmp23_, &_tmp24_)); -#line 282 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp23_); -#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp25_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp26_ = _tmp25_; -#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - scaling_for_original (&_tmp27_); -#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RedEye", editing_tools_redeye_tool_is_available (_tmp26_, &_tmp27_)); -#line 283 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp26_); -#line 2673 "DirectPhotoPage.c" - } -#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp28_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp29_ = _tmp28_; -#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp30_ = _tmp29_ != NULL; -#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp29_); -#line 289 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp30_) { -#line 2685 "DirectPhotoPage.c" - Photo* _tmp31_; - Photo* _tmp32_; -#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp31_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp32_ = _tmp31_; -#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", photo_get_file_format (_tmp32_) != PHOTO_FILE_FORMAT_RAW); -#line 290 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp32_); -#line 2696 "DirectPhotoPage.c" - } else { -#line 292 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "AdjustDateTime", FALSE); -#line 2700 "DirectPhotoPage.c" - } -#line 295 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - PAGE_CLASS (direct_photo_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), selected_count, count); -#line 2704 "DirectPhotoPage.c" -} - - -static gboolean -direct_photo_page_check_ok_to_close_photo (DirectPhotoPage* self, - Photo* photo) -{ - gboolean result = FALSE; - gboolean _tmp0_; - gboolean is_writeable = FALSE; - Photo* _tmp1_; - Photo* _tmp2_; - gboolean _tmp3_; - const gchar* _tmp4_ = NULL; - gboolean _tmp5_; - gchar* save_option = NULL; - gchar* _tmp6_; - GtkResponseType response = 0; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - const gchar* _tmp11_; - GtkResponseType _tmp12_; - GtkResponseType _tmp13_; -#line 298 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_val_if_fail (IS_DIRECT_PHOTO_PAGE (self), FALSE); -#line 298 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_val_if_fail ((photo == NULL) || IS_PHOTO (photo), FALSE); -#line 301 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (photo == NULL) { -#line 302 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = TRUE; -#line 302 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 2740 "DirectPhotoPage.c" - } -#line 304 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (!photo_has_alterations (photo)) { -#line 305 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = TRUE; -#line 305 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 2748 "DirectPhotoPage.c" - } -#line 307 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = self->priv->drop_if_dirty; -#line 307 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp0_) { -#line 310 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - photo_remove_all_transformations (photo); -#line 312 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = TRUE; -#line 312 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 2760 "DirectPhotoPage.c" - } -#line 315 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 315 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = _tmp1_; -#line 315 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3_ = photo_file_format_can_write (photo_get_file_format (_tmp2_)); -#line 315 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 315 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - is_writeable = _tmp3_; -#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp5_ = is_writeable; -#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp5_) { -#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp4_ = _ ("_Save"); -#line 2778 "DirectPhotoPage.c" - } else { -#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp4_ = _ ("_Save a Copy"); -#line 2782 "DirectPhotoPage.c" - } -#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp6_ = g_strdup (_tmp4_); -#line 316 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - save_option = _tmp6_; -#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp7_ = media_source_get_basename (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource)); -#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp8_ = _tmp7_; -#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp9_ = g_strdup_printf (_ ("Lose changes to %s?"), _tmp8_); -#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp10_ = _tmp9_; -#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp11_ = save_option; -#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp12_ = app_window_negate_affirm_cancel_question (_tmp10_, _tmp11_, _ ("Close _without Saving"), NULL, NULL); -#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp10_); -#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp8_); -#line 318 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - response = _tmp12_; -#line 322 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp13_ = response; -#line 322 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp13_ == GTK_RESPONSE_YES) { -#line 323 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - photo_remove_all_transformations (photo); -#line 2812 "DirectPhotoPage.c" - } else { - GtkResponseType _tmp14_; -#line 324 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp14_ = response; -#line 324 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp14_ == GTK_RESPONSE_NO) { -#line 2819 "DirectPhotoPage.c" - gboolean _tmp15_; -#line 325 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp15_ = is_writeable; -#line 325 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp15_) { -#line 2825 "DirectPhotoPage.c" - GFile* _tmp16_; - GFile* _tmp17_; - Photo* _tmp18_; - Photo* _tmp19_; -#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp16_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource)); -#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp17_ = _tmp16_; -#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp18_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp19_ = _tmp18_; -#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - direct_photo_page_save (self, _tmp17_, 0, SCALE_CONSTRAINT_ORIGINAL, JPEG_QUALITY_HIGH, photo_get_file_format (_tmp19_), FALSE, TRUE); -#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp19_); -#line 326 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp17_); -#line 2844 "DirectPhotoPage.c" - } else { -#line 329 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - direct_photo_page_on_save_as (self); -#line 2848 "DirectPhotoPage.c" - } - } else { - gboolean _tmp20_ = FALSE; - gboolean _tmp21_ = FALSE; - GtkResponseType _tmp22_; -#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp22_ = response; -#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp22_ == GTK_RESPONSE_CANCEL) { -#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp21_ = TRUE; -#line 2860 "DirectPhotoPage.c" - } else { - GtkResponseType _tmp23_; -#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp23_ = response; -#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp21_ = _tmp23_ == GTK_RESPONSE_DELETE_EVENT; -#line 2867 "DirectPhotoPage.c" - } -#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp21_) { -#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp20_ = TRUE; -#line 2873 "DirectPhotoPage.c" - } else { - GtkResponseType _tmp24_; -#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp24_ = response; -#line 331 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp20_ = _tmp24_ == GTK_RESPONSE_CLOSE; -#line 2880 "DirectPhotoPage.c" - } -#line 330 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp20_) { -#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = FALSE; -#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (save_option); -#line 332 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 2890 "DirectPhotoPage.c" - } - } - } -#line 335 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = TRUE; -#line 335 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (save_option); -#line 335 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 2900 "DirectPhotoPage.c" -} - - -gboolean -direct_photo_page_check_quit (DirectPhotoPage* self) -{ - gboolean result = FALSE; - Photo* _tmp0_; - Photo* _tmp1_; - gboolean _tmp2_; -#line 338 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_val_if_fail (IS_DIRECT_PHOTO_PAGE (self), FALSE); -#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = _tmp0_; -#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = direct_photo_page_check_ok_to_close_photo (self, _tmp1_); -#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp1_); -#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = _tmp2_; -#line 339 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 2925 "DirectPhotoPage.c" -} - - -static gboolean -direct_photo_page_real_confirm_replace_photo (EditingHostPage* base, - Photo* old_photo, - Photo* new_photo) -{ - DirectPhotoPage * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; -#line 342 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 342 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_val_if_fail ((old_photo == NULL) || IS_PHOTO (old_photo), FALSE); -#line 342 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_val_if_fail (IS_PHOTO (new_photo), FALSE); -#line 343 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (old_photo != NULL) { -#line 343 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = direct_photo_page_check_ok_to_close_photo (self, old_photo); -#line 2947 "DirectPhotoPage.c" - } else { -#line 343 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = TRUE; -#line 2951 "DirectPhotoPage.c" - } -#line 343 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = _tmp0_; -#line 343 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 2957 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_save (DirectPhotoPage* self, - GFile* dest, - gint scale, - ScaleConstraint constraint, - JpegQuality quality, - PhotoFileFormat format, - gboolean copy_unmodified, - gboolean save_metadata) -{ - Scaling scaling = {0}; - Scaling _tmp0_ = {0}; - DirectPhoto* photo = NULL; - DirectPhotoSourceCollection* _tmp10_; - DirectPhoto* _tmp11_ = NULL; - gchar* _tmp12_; - gchar* _tmp13_; - Photo* _tmp14_; - Photo* _tmp15_; - DirectPhoto* _tmp16_; - gboolean _tmp17_; - DirectPhotoSourceCollection* _tmp22_; - DirectPhoto* _tmp23_; - DirectViewCollection* _tmp24_; - DirectPhoto* _tmp25_; - GError * _inner_error_ = NULL; -#line 346 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); -#line 346 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_if_fail (G_IS_FILE (dest)); -#line 348 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - scaling_for_constraint (constraint, scale, FALSE, &_tmp0_); -#line 348 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - scaling = _tmp0_; -#line 2995 "DirectPhotoPage.c" - { - Photo* _tmp1_; - Photo* _tmp2_; - Scaling _tmp3_; -#line 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = _tmp1_; -#line 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3_ = scaling; -#line 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - photo_export (_tmp2_, dest, &_tmp3_, quality, format, copy_unmodified, save_metadata, &_inner_error_); -#line 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp2_); -#line 351 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3012 "DirectPhotoPage.c" - goto __catch52_g_error; - } - } - goto __finally52; - __catch52_g_error: - { - GError* err = NULL; - gchar* _tmp4_; - gchar* _tmp5_; - GError* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 350 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - err = _inner_error_; -#line 350 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _inner_error_ = NULL; -#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp4_ = g_file_get_path (dest); -#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp5_ = _tmp4_; -#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp6_ = err; -#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp7_ = _tmp6_->message; -#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp8_ = g_strdup_printf (_ ("Error while saving to %s: %s"), _tmp5_, _tmp7_); -#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp9_ = _tmp8_; -#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - app_window_error_message (_tmp9_, NULL); -#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp9_); -#line 353 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp5_); -#line 356 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_error_free0 (err); -#line 356 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return; -#line 3052 "DirectPhotoPage.c" - } - __finally52: -#line 350 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 350 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 350 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_clear_error (&_inner_error_); -#line 350 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return; -#line 3063 "DirectPhotoPage.c" - } -#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp10_ = direct_photo_global; -#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp12_ = direct_photo_source_collection_fetch (_tmp10_, dest, &_tmp11_, TRUE); -#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (photo); -#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - photo = _tmp11_; -#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp13_ = _tmp12_; -#line 361 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp13_); -#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp14_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp15_ = _tmp14_; -#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp16_ = photo; -#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp17_ = !data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_SOURCE, DataSource)); -#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp15_); -#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp17_) { -#line 3089 "DirectPhotoPage.c" - DirectView* tmp_view = NULL; - DirectPhoto* _tmp18_; - DirectView* _tmp19_; - DirectViewCollection* _tmp20_; - DirectView* _tmp21_; -#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp18_ = photo; -#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp19_ = direct_view_new (_tmp18_); -#line 364 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - tmp_view = _tmp19_; -#line 365 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp20_ = self->priv->view_controller; -#line 365 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp21_ = tmp_view; -#line 365 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_DATA_OBJECT, DataObject)); -#line 363 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (tmp_view); -#line 3109 "DirectPhotoPage.c" - } -#line 368 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp22_ = direct_photo_global; -#line 368 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp23_ = photo; -#line 368 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - direct_photo_source_collection_reimport_photo (_tmp22_, _tmp23_); -#line 369 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp24_ = self->priv->view_controller; -#line 369 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp25_ = photo; -#line 369 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_display_mirror_of (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_VIEW_COLLECTION, ViewCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_PHOTO, Photo)); -#line 346 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (photo); -#line 3125 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_on_save (DirectPhotoPage* self) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - Photo* _tmp2_; - Photo* _tmp3_; - gboolean _tmp4_; - Photo* _tmp7_; - Photo* _tmp8_; - GFile* _tmp9_; - GFile* _tmp10_; - Photo* _tmp11_; - Photo* _tmp12_; -#line 372 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); -#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3_ = _tmp2_; -#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp4_ = !photo_has_alterations (_tmp3_); -#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp4_) { -#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = TRUE; -#line 3157 "DirectPhotoPage.c" - } else { - Photo* _tmp5_; - Photo* _tmp6_; -#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp5_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp6_ = _tmp5_; -#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = !photo_file_format_can_write (photo_get_file_format (_tmp6_)); -#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp6_); -#line 3169 "DirectPhotoPage.c" - } -#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp1_) { -#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = TRUE; -#line 3175 "DirectPhotoPage.c" - } else { -#line 374 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = editing_host_page_get_photo_missing (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 3179 "DirectPhotoPage.c" - } -#line 373 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp0_) { -#line 375 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return; -#line 3185 "DirectPhotoPage.c" - } -#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp7_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp8_ = _tmp7_; -#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp9_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp10_ = _tmp9_; -#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp11_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp12_ = _tmp11_; -#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - direct_photo_page_save (self, _tmp10_, 0, SCALE_CONSTRAINT_ORIGINAL, JPEG_QUALITY_HIGH, photo_get_file_format (_tmp12_), FALSE, TRUE); -#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp12_); -#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp10_); -#line 378 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp8_); -#line 3207 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_on_save_as (DirectPhotoPage* self) -{ - ExportDialog* export_dialog = NULL; - ExportDialog* _tmp0_; - gint scale = 0; - ScaleConstraint constraint = 0; - ExportFormatParameters export_params = {0}; - ExportFormatParameters _tmp1_ = {0}; - ExportDialog* _tmp2_; - gint _tmp3_ = 0; - ScaleConstraint _tmp4_ = 0; - gboolean _tmp5_; - gchar* filename = NULL; - Photo* _tmp6_; - Photo* _tmp7_; - ExportFormatParameters _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - PhotoFileFormat effective_export_format = 0; - Photo* _tmp11_; - Photo* _tmp12_; - ExportFormatParameters _tmp13_; - PhotoFileFormat _tmp14_; - gchar** output_format_extensions = NULL; - PhotoFileFormat _tmp15_; - PhotoFileFormatProperties* _tmp16_; - PhotoFileFormatProperties* _tmp17_; - gint _tmp18_; - gchar** _tmp19_; - gchar** _tmp20_; - gint _tmp20__length1; - gint output_format_extensions_length1; - gint _output_format_extensions_size_; - GtkFileFilter* output_format_filter = NULL; - GtkFileFilter* _tmp21_; - gchar** _tmp22_; - gint _tmp22__length1; - GtkFileChooserDialog* save_as_dialog = NULL; - AppWindow* _tmp34_; - AppWindow* _tmp35_; - GtkFileChooserDialog* _tmp36_; - GtkFileChooserDialog* _tmp37_; - GtkFileChooserDialog* _tmp38_; - GtkFileChooserDialog* _tmp39_; - const gchar* _tmp40_; - GtkFileChooserDialog* _tmp41_; - GFile* _tmp42_; - gchar* _tmp43_; - gchar* _tmp44_; - GtkFileChooserDialog* _tmp45_; - GtkFileFilter* _tmp46_; - GtkFileFilter* _tmp47_; - GtkFileChooserDialog* _tmp48_; - GtkFileChooserDialog* _tmp49_; - gint response = 0; - GtkFileChooserDialog* _tmp50_; - gint _tmp51_; - GtkFileChooserDialog* _tmp70_; -#line 382 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); -#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = export_dialog_new (_ ("Save As")); -#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_object_ref_sink (_tmp0_); -#line 383 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - export_dialog = _tmp0_; -#line 387 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - export_format_parameters_last (&_tmp1_); -#line 387 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - export_params = _tmp1_; -#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = export_dialog; -#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp5_ = export_dialog_execute (_tmp2_, &_tmp3_, &_tmp4_, &export_params); -#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - scale = _tmp3_; -#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - constraint = _tmp4_; -#line 388 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (!_tmp5_) { -#line 389 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (export_dialog); -#line 389 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return; -#line 3296 "DirectPhotoPage.c" - } -#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp6_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp7_ = _tmp6_; -#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp8_ = export_params; -#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp9_ = photo_get_export_basename_for_parameters (_tmp7_, &_tmp8_); -#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp10_ = _tmp9_; -#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp7_); -#line 391 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - filename = _tmp10_; -#line 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp11_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp12_ = _tmp11_; -#line 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp13_ = export_params; -#line 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp14_ = photo_get_export_format_for_parameters (_tmp12_, &_tmp13_); -#line 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp12_); -#line 392 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - effective_export_format = _tmp14_; -#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp15_ = effective_export_format; -#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp16_ = photo_file_format_get_properties (_tmp15_); -#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp17_ = _tmp16_; -#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp19_ = photo_file_format_properties_get_known_extensions (_tmp17_, &_tmp18_); -#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp20_ = _tmp19_; -#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp20__length1 = _tmp18_; -#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _photo_file_format_properties_unref0 (_tmp17_); -#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - output_format_extensions = _tmp20_; -#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - output_format_extensions_length1 = _tmp20__length1; -#line 395 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _output_format_extensions_size_ = output_format_extensions_length1; -#line 397 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp21_ = gtk_file_filter_new (); -#line 397 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_object_ref_sink (_tmp21_); -#line 397 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - output_format_filter = _tmp21_; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp22_ = output_format_extensions; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp22__length1 = output_format_extensions_length1; -#line 3354 "DirectPhotoPage.c" - { - gchar** extension_collection = NULL; - gint extension_collection_length1 = 0; - gint _extension_collection_size_ = 0; - gint extension_it = 0; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - extension_collection = _tmp22_; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - extension_collection_length1 = _tmp22__length1; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - for (extension_it = 0; extension_it < _tmp22__length1; extension_it = extension_it + 1) { -#line 3366 "DirectPhotoPage.c" - gchar* _tmp23_; - gchar* extension = NULL; -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp23_ = g_strdup (extension_collection[extension_it]); -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - extension = _tmp23_; -#line 3373 "DirectPhotoPage.c" - { - gchar* uppercase_extension = NULL; - const gchar* _tmp24_; - gchar* _tmp25_; - GtkFileFilter* _tmp26_; - const gchar* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - GtkFileFilter* _tmp30_; - const gchar* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; -#line 399 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp24_ = extension; -#line 399 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp25_ = g_utf8_strup (_tmp24_, (gssize) -1); -#line 399 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - uppercase_extension = _tmp25_; -#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp26_ = output_format_filter; -#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp27_ = extension; -#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp28_ = g_strconcat ("*.", _tmp27_, NULL); -#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp29_ = _tmp28_; -#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - gtk_file_filter_add_pattern (_tmp26_, _tmp29_); -#line 400 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp29_); -#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp30_ = output_format_filter; -#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp31_ = uppercase_extension; -#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp32_ = g_strconcat ("*.", _tmp31_, NULL); -#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp33_ = _tmp32_; -#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - gtk_file_filter_add_pattern (_tmp30_, _tmp33_); -#line 401 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp33_); -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (uppercase_extension); -#line 398 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (extension); -#line 3420 "DirectPhotoPage.c" - } - } - } -#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp34_ = app_window_get_instance (); -#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp35_ = _tmp34_; -#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp36_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (_ ("Save As"), G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_window_get_type (), GtkWindow), GTK_FILE_CHOOSER_ACTION_SAVE, RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, RESOURCES_OK_LABEL, GTK_RESPONSE_OK, NULL); -#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_object_ref_sink (_tmp36_); -#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp37_ = _tmp36_; -#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp35_); -#line 404 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - save_as_dialog = _tmp37_; -#line 407 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp38_ = save_as_dialog; -#line 407 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - gtk_file_chooser_set_select_multiple (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_file_chooser_get_type (), GtkFileChooser), FALSE); -#line 408 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp39_ = save_as_dialog; -#line 408 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp40_ = filename; -#line 408 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - gtk_file_chooser_set_current_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_file_chooser_get_type (), GtkFileChooser), _tmp40_); -#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp41_ = save_as_dialog; -#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp42_ = self->priv->current_save_dir; -#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp43_ = g_file_get_path (_tmp42_); -#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp44_ = _tmp43_; -#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - gtk_file_chooser_set_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_file_chooser_get_type (), GtkFileChooser), _tmp44_); -#line 409 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp44_); -#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp45_ = save_as_dialog; -#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp46_ = output_format_filter; -#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp47_ = _g_object_ref0 (_tmp46_); -#line 410 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - gtk_file_chooser_add_filter (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_file_chooser_get_type (), GtkFileChooser), _tmp47_); -#line 411 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp48_ = save_as_dialog; -#line 411 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - gtk_file_chooser_set_do_overwrite_confirmation (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, gtk_file_chooser_get_type (), GtkFileChooser), TRUE); -#line 412 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp49_ = save_as_dialog; -#line 412 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - gtk_file_chooser_set_local_only (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_file_chooser_get_type (), GtkFileChooser), FALSE); -#line 414 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp50_ = save_as_dialog; -#line 414 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_dialog_get_type (), GtkDialog)); -#line 415 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp51_ = response; -#line 415 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp51_ == ((gint) GTK_RESPONSE_OK)) { -#line 3484 "DirectPhotoPage.c" - GtkFileChooserDialog* _tmp52_; - gchar* _tmp53_; - gchar* _tmp54_; - GFile* _tmp55_; - GFile* _tmp56_; - gint _tmp57_; - ScaleConstraint _tmp58_; - ExportFormatParameters _tmp59_; - JpegQuality _tmp60_; - PhotoFileFormat _tmp61_; - ExportFormatParameters _tmp62_; - ExportFormatMode _tmp63_; - ExportFormatParameters _tmp64_; - gboolean _tmp65_; - GtkFileChooserDialog* _tmp66_; - gchar* _tmp67_; - gchar* _tmp68_; - GFile* _tmp69_; -#line 418 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self->priv->drop_if_dirty = TRUE; -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp52_ = save_as_dialog; -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp53_ = gtk_file_chooser_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_file_chooser_get_type (), GtkFileChooser)); -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp54_ = _tmp53_; -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp55_ = g_file_new_for_uri (_tmp54_); -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp56_ = _tmp55_; -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp57_ = scale; -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp58_ = constraint; -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp59_ = export_params; -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp60_ = _tmp59_.quality; -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp61_ = effective_export_format; -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp62_ = export_params; -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp63_ = _tmp62_.mode; -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp64_ = export_params; -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp65_ = _tmp64_.export_metadata; -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - direct_photo_page_save (self, _tmp56_, _tmp57_, _tmp58_, _tmp60_, _tmp61_, _tmp63_ == EXPORT_FORMAT_MODE_UNMODIFIED, _tmp65_); -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp56_); -#line 419 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp54_); -#line 422 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self->priv->drop_if_dirty = FALSE; -#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp66_ = save_as_dialog; -#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp67_ = gtk_file_chooser_get_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp66_, gtk_file_chooser_get_type (), GtkFileChooser)); -#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp68_ = _tmp67_; -#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp69_ = g_file_new_for_path (_tmp68_); -#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (self->priv->current_save_dir); -#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self->priv->current_save_dir = _tmp69_; -#line 424 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (_tmp68_); -#line 3555 "DirectPhotoPage.c" - } -#line 427 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp70_ = save_as_dialog; -#line 427 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, gtk_widget_get_type (), GtkWidget)); -#line 382 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (save_as_dialog); -#line 382 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (output_format_filter); -#line 382 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - output_format_extensions = (_vala_array_free (output_format_extensions, output_format_extensions_length1, (GDestroyNotify) g_free), NULL); -#line 382 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_free0 (filename); -#line 382 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (export_dialog); -#line 3571 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_on_send_to (DirectPhotoPage* self) -{ -#line 430 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); -#line 431 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 3582 "DirectPhotoPage.c" - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - GeeList* _tmp2_; - GeeCollection* _tmp3_; -#line 432 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 432 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = _tmp0_; -#line 432 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = view_collection_get_selected_sources (_tmp1_); -#line 432 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 432 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - desktop_integration_send_to (_tmp3_); -#line 432 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp3_); -#line 432 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _data_collection_unref0 (_tmp1_); -#line 3601 "DirectPhotoPage.c" - } -} - - -static gboolean -direct_photo_page_real_on_app_key_pressed (Page* base, - GdkEventKey* event) -{ - DirectPhotoPage * self; - gboolean result = FALSE; - gboolean handled = FALSE; - guint _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - GQuark _tmp4_ = 0U; -#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - static GQuark _tmp3_label0 = 0; -#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - static GQuark _tmp3_label1 = 0; -#line 3621 "DirectPhotoPage.c" - gboolean _tmp5_ = FALSE; - gboolean _tmp6_; -#line 435 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 435 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 436 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - handled = TRUE; -#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = event->keyval; -#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = gdk_keyval_name (_tmp0_); -#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = _tmp1_; -#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_); -#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("bracketright")))) { -#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - switch (0) { -#line 3642 "DirectPhotoPage.c" - default: - { -#line 440 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise"); -#line 441 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - break; -#line 3649 "DirectPhotoPage.c" - } - } - } else if (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("bracketleft")))) { -#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - switch (0) { -#line 3655 "DirectPhotoPage.c" - default: - { -#line 444 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - page_activate_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RotateClockwise"); -#line 445 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - break; -#line 3662 "DirectPhotoPage.c" - } - } - } else { -#line 438 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - switch (0) { -#line 3668 "DirectPhotoPage.c" - default: - { -#line 448 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - handled = FALSE; -#line 449 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - break; -#line 3675 "DirectPhotoPage.c" - } - } - } -#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp6_ = handled; -#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp6_) { -#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp5_ = TRUE; -#line 3685 "DirectPhotoPage.c" - } else { -#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp5_ = PAGE_CLASS (direct_photo_page_parent_class)->on_app_key_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), TYPE_PAGE, Page), event); -#line 3689 "DirectPhotoPage.c" - } -#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = _tmp5_; -#line 452 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 3695 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_on_print (DirectPhotoPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; -#line 455 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); -#line 456 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 456 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp1_ = _tmp0_; -#line 456 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) > 0; -#line 456 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _data_collection_unref0 (_tmp1_); -#line 456 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (_tmp2_) { -#line 3717 "DirectPhotoPage.c" - PrintManager* _tmp3_; - PrintManager* _tmp4_; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; - GeeList* _tmp7_; - GeeCollection* _tmp8_; -#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp3_ = print_manager_get_instance (); -#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp4_ = _tmp3_; -#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp6_ = _tmp5_; -#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp7_ = view_collection_get_selected_sources_of_type (_tmp6_, TYPE_PHOTO); -#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection); -#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - print_manager_spool_photo (_tmp4_, _tmp8_); -#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (_tmp8_); -#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _data_collection_unref0 (_tmp6_); -#line 457 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _print_manager_unref0 (_tmp4_); -#line 3744 "DirectPhotoPage.c" - } -} - - -static Block7Data* -block7_data_ref (Block7Data* _data7_) -{ -#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_atomic_int_inc (&_data7_->_ref_count_); -#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return _data7_; -#line 3756 "DirectPhotoPage.c" -} - - -static void -block7_data_unref (void * _userdata_) -{ - Block7Data* _data7_; - _data7_ = (Block7Data*) _userdata_; -#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - if (g_atomic_int_dec_and_test (&_data7_->_ref_count_)) { -#line 3767 "DirectPhotoPage.c" - DirectPhotoPage* self; -#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = _data7_->self; -#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (self); -#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_slice_free (Block7Data, _data7_); -#line 3775 "DirectPhotoPage.c" - } -} - - -static gboolean -__lambda17_ (Block7Data* _data7_) -{ - DirectPhotoPage* self; - gboolean result = FALSE; -#line 466 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = _data7_->self; -#line 467 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - editing_host_page_enable_rotate (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EDITING_HOST_PAGE, EditingHostPage), _data7_->should_allow_rotation); -#line 469 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = FALSE; -#line 469 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 3793 "DirectPhotoPage.c" -} - - -static gboolean -___lambda17__gsource_func (gpointer self) -{ - gboolean result; - result = __lambda17_ (self); -#line 466 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 3804 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_on_dphoto_can_rotate_changed (DirectPhotoPage* self, - gboolean should_allow_rotation) -{ - Block7Data* _data7_; -#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_if_fail (IS_DIRECT_PHOTO_PAGE (self)); -#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _data7_ = g_slice_new0 (Block7Data); -#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _data7_->_ref_count_ = 1; -#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _data7_->self = g_object_ref (self); -#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _data7_->should_allow_rotation = should_allow_rotation; -#line 466 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda17__gsource_func, block7_data_ref (_data7_), block7_data_unref); -#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - block7_data_unref (_data7_); -#line 462 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _data7_ = NULL; -#line 3829 "DirectPhotoPage.c" -} - - -static DataView* -direct_photo_page_real_create_photo_view (EditingHostPage* base, - DataSource* source) -{ - DirectPhotoPage * self; - DataView* result = NULL; - DirectView* _tmp0_; -#line 473 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 473 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 474 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = direct_view_new (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DIRECT_PHOTO, DirectPhoto)); -#line 474 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_VIEW, DataView); -#line 474 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return result; -#line 3850 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_class_init (DirectPhotoPageClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - direct_photo_page_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_type_class_add_private (klass, sizeof (DirectPhotoPagePrivate)); -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) direct_photo_page_real_init_collect_ui_filenames; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) direct_photo_page_real_add_actions; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) direct_photo_page_real_remove_actions; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - ((PageClass *) klass)->init_collect_injection_groups = (InjectionGroup** (*) (Page *, int*)) direct_photo_page_real_init_collect_injection_groups; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - ((GtkWidgetClass *) klass)->realize = (void (*) (GtkWidget *)) direct_photo_page_real_realize; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - ((EditingHostPageClass *) klass)->photo_changing = (void (*) (EditingHostPage *, Photo*)) direct_photo_page_real_photo_changing; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - ((PageClass *) klass)->on_context_buttonpress = (gboolean (*) (Page *, GdkEventButton*)) direct_photo_page_real_on_context_buttonpress; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - ((EditingHostPageClass *) klass)->on_increase_size = (void (*) (EditingHostPage *)) direct_photo_page_real_on_increase_size; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - ((EditingHostPageClass *) klass)->on_decrease_size = (void (*) (EditingHostPage *)) direct_photo_page_real_on_decrease_size; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - ((EditingHostPageClass *) klass)->on_double_click = (gboolean (*) (EditingHostPage *, GdkEventButton*)) direct_photo_page_real_on_double_click; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - ((EditingHostPageClass *) klass)->update_ui = (void (*) (EditingHostPage *, gboolean)) direct_photo_page_real_update_ui; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) direct_photo_page_real_update_actions; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - ((EditingHostPageClass *) klass)->confirm_replace_photo = (gboolean (*) (EditingHostPage *, Photo*, Photo*)) direct_photo_page_real_confirm_replace_photo; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - ((PageClass *) klass)->on_app_key_pressed = (gboolean (*) (Page *, GdkEventKey*)) direct_photo_page_real_on_app_key_pressed; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - ((EditingHostPageClass *) klass)->create_photo_view = (DataView* (*) (EditingHostPage *, DataSource*)) direct_photo_page_real_create_photo_view; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - G_OBJECT_CLASS (klass)->finalize = direct_photo_page_finalize; -#line 3893 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_instance_init (DirectPhotoPage * self) -{ -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self->priv = DIRECT_PHOTO_PAGE_GET_PRIVATE (self); -#line 9 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self->priv->view_controller = NULL; -#line 11 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self->priv->drop_if_dirty = FALSE; -#line 3906 "DirectPhotoPage.c" -} - - -static void -direct_photo_page_finalize (GObject * obj) -{ - DirectPhotoPage * self; - DirectPhotoSourceCollection* _tmp0_; - guint _tmp1_; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 32 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _tmp0_ = direct_photo_global; -#line 32 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE); -#line 32 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _direct_photo_page_on_photos_altered_data_collection_items_altered, self); -#line 8 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (self->priv->initial_file); -#line 9 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _data_collection_unref0 (self->priv->view_controller); -#line 10 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (self->priv->current_save_dir); -#line 154 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - _g_object_unref0 (self->priv->context_menu); -#line 7 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - G_OBJECT_CLASS (direct_photo_page_parent_class)->finalize (obj); -#line 3934 "DirectPhotoPage.c" -} - - -GType -direct_photo_page_get_type (void) -{ - static volatile gsize direct_photo_page_type_id__volatile = 0; - if (g_once_init_enter (&direct_photo_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DirectPhotoPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) direct_photo_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectPhotoPage), 0, (GInstanceInitFunc) direct_photo_page_instance_init, NULL }; - GType direct_photo_page_type_id; - direct_photo_page_type_id = g_type_register_static (TYPE_EDITING_HOST_PAGE, "DirectPhotoPage", &g_define_type_info, 0); - g_once_init_leave (&direct_photo_page_type_id__volatile, direct_photo_page_type_id); - } - return direct_photo_page_type_id__volatile; -} - - -DirectFullscreenPhotoPage* -direct_fullscreen_photo_page_construct (GType object_type, - GFile* file) -{ - DirectFullscreenPhotoPage * self = NULL; -#line 479 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 480 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = (DirectFullscreenPhotoPage*) direct_photo_page_construct (object_type, file); -#line 479 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return self; -#line 3963 "DirectPhotoPage.c" -} - - -DirectFullscreenPhotoPage* -direct_fullscreen_photo_page_new (GFile* file) -{ -#line 479 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - return direct_fullscreen_photo_page_construct (TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, file); -#line 3972 "DirectPhotoPage.c" -} - - -static void -direct_fullscreen_photo_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames) -{ - DirectFullscreenPhotoPage * self; -#line 483 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, DirectFullscreenPhotoPage); -#line 483 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 486 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "direct_context.ui"); -#line 3987 "DirectPhotoPage.c" -} - - -static void -direct_fullscreen_photo_page_class_init (DirectFullscreenPhotoPageClass * klass) -{ -#line 478 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - direct_fullscreen_photo_page_parent_class = g_type_class_peek_parent (klass); -#line 478 "/home/jens/Source/shotwell/src/direct/DirectPhotoPage.vala" - ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) direct_fullscreen_photo_page_real_init_collect_ui_filenames; -#line 3998 "DirectPhotoPage.c" -} - - -static void -direct_fullscreen_photo_page_instance_init (DirectFullscreenPhotoPage * self) -{ -} - - -GType -direct_fullscreen_photo_page_get_type (void) -{ - static volatile gsize direct_fullscreen_photo_page_type_id__volatile = 0; - if (g_once_init_enter (&direct_fullscreen_photo_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DirectFullscreenPhotoPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) direct_fullscreen_photo_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectFullscreenPhotoPage), 0, (GInstanceInitFunc) direct_fullscreen_photo_page_instance_init, NULL }; - GType direct_fullscreen_photo_page_type_id; - direct_fullscreen_photo_page_type_id = g_type_register_static (TYPE_DIRECT_PHOTO_PAGE, "DirectFullscreenPhotoPage", &g_define_type_info, 0); - g_once_init_leave (&direct_fullscreen_photo_page_type_id__volatile, direct_fullscreen_photo_page_type_id); - } - return direct_fullscreen_photo_page_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/direct/DirectView.c b/src/direct/DirectView.c deleted file mode 100644 index 407d555..0000000 --- a/src/direct/DirectView.c +++ /dev/null @@ -1,902 +0,0 @@ -/* DirectView.c generated by valac 0.40.4, the Vala compiler - * generated from DirectView.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include - - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; -typedef struct _DataViewPrivate DataViewPrivate; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_DIRECT_VIEW (direct_view_get_type ()) -#define DIRECT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_VIEW, DirectView)) -#define DIRECT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_VIEW, DirectViewClass)) -#define IS_DIRECT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_VIEW)) -#define IS_DIRECT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_VIEW)) -#define DIRECT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_VIEW, DirectViewClass)) - -typedef struct _DirectView DirectView; -typedef struct _DirectViewClass DirectViewClass; -typedef struct _DirectViewPrivate DirectViewPrivate; -enum { - DIRECT_VIEW_0_PROPERTY, - DIRECT_VIEW_NUM_PROPERTIES -}; -static GParamSpec* direct_view_properties[DIRECT_VIEW_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_DIRECT_PHOTO (direct_photo_get_type ()) -#define DIRECT_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO, DirectPhoto)) -#define DIRECT_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO, DirectPhotoClass)) -#define IS_DIRECT_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO)) -#define IS_DIRECT_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO)) -#define DIRECT_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO, DirectPhotoClass)) - -typedef struct _DirectPhoto DirectPhoto; -typedef struct _DirectPhotoClass DirectPhotoClass; -typedef struct _DataCollectionPrivate DataCollectionPrivate; - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; -typedef struct _ViewCollectionPrivate ViewCollectionPrivate; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define TYPE_DIRECT_VIEW_COLLECTION (direct_view_collection_get_type ()) -#define DIRECT_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_VIEW_COLLECTION, DirectViewCollection)) -#define DIRECT_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_VIEW_COLLECTION, DirectViewCollectionClass)) -#define IS_DIRECT_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_VIEW_COLLECTION)) -#define IS_DIRECT_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_VIEW_COLLECTION)) -#define DIRECT_VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_VIEW_COLLECTION, DirectViewCollectionClass)) - -typedef struct _DirectViewCollection DirectViewCollection; -typedef struct _DirectViewCollectionClass DirectViewCollectionClass; -typedef struct _DirectViewCollectionPrivate DirectViewCollectionPrivate; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_VIEW_MANAGER (view_manager_get_type ()) -#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager)) -#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass)) -#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER)) -#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER)) -#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass)) - -typedef struct _ViewManager ViewManager; -typedef struct _ViewManagerClass ViewManagerClass; - -#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ()) -#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor)) -#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) -#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) - -typedef struct _ViewCollectionMonitor ViewCollectionMonitor; -typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_DIRECT_PHOTO_SOURCE_COLLECTION (direct_photo_source_collection_get_type ()) -#define DIRECT_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollection)) -#define DIRECT_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollectionClass)) -#define IS_DIRECT_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION)) -#define IS_DIRECT_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION)) -#define DIRECT_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO_SOURCE_COLLECTION, DirectPhotoSourceCollectionClass)) - -typedef struct _DirectPhotoSourceCollection DirectPhotoSourceCollection; -typedef struct _DirectPhotoSourceCollectionClass DirectPhotoSourceCollectionClass; - -#define DIRECT_VIEW_COLLECTION_TYPE_DIRECT_VIEW_MANAGER (direct_view_collection_direct_view_manager_get_type ()) -#define DIRECT_VIEW_COLLECTION_DIRECT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIRECT_VIEW_COLLECTION_TYPE_DIRECT_VIEW_MANAGER, DirectViewCollectionDirectViewManager)) -#define DIRECT_VIEW_COLLECTION_DIRECT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIRECT_VIEW_COLLECTION_TYPE_DIRECT_VIEW_MANAGER, DirectViewCollectionDirectViewManagerClass)) -#define DIRECT_VIEW_COLLECTION_IS_DIRECT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIRECT_VIEW_COLLECTION_TYPE_DIRECT_VIEW_MANAGER)) -#define DIRECT_VIEW_COLLECTION_IS_DIRECT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIRECT_VIEW_COLLECTION_TYPE_DIRECT_VIEW_MANAGER)) -#define DIRECT_VIEW_COLLECTION_DIRECT_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIRECT_VIEW_COLLECTION_TYPE_DIRECT_VIEW_MANAGER, DirectViewCollectionDirectViewManagerClass)) - -typedef struct _DirectViewCollectionDirectViewManager DirectViewCollectionDirectViewManager; -typedef struct _DirectViewCollectionDirectViewManagerClass DirectViewCollectionDirectViewManagerClass; -#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL))) -#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL))) -typedef struct _ViewManagerPrivate ViewManagerPrivate; -typedef struct _DirectViewCollectionDirectViewManagerPrivate DirectViewCollectionDirectViewManagerPrivate; - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataView { - DataObject parent_instance; - DataViewPrivate * priv; -}; - -struct _DataViewClass { - DataObjectClass parent_class; - void (*notify_view_altered) (DataView* self); - void (*notify_geometry_altered) (DataView* self); - void (*notify_unsubscribed) (DataView* self, DataSource* source); - void (*state_changed) (DataView* self, gboolean selected); - void (*visibility_changed) (DataView* self, gboolean visible); - void (*view_altered) (DataView* self); - void (*geometry_altered) (DataView* self); - void (*unsubscribed) (DataView* self, DataSource* source); -}; - -struct _DirectView { - DataView parent_instance; - DirectViewPrivate * priv; -}; - -struct _DirectViewClass { - DataViewClass parent_class; -}; - -struct _DirectViewPrivate { - GFile* file; - gchar* collate_key; -}; - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -struct _DataCollection { - GTypeInstance parent_instance; - volatile int ref_count; - DataCollectionPrivate * priv; -}; - -struct _DataCollectionClass { - GTypeClass parent_class; - void (*finalize) (DataCollection *self); - gchar* (*to_string) (DataCollection* self); - void (*notify_items_added) (DataCollection* self, GeeIterable* added); - void (*notify_items_removed) (DataCollection* self, GeeIterable* removed); - void (*notify_contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*notify_items_altered) (DataCollection* self, GeeMap* items); - void (*notify_ordering_changed) (DataCollection* self); - void (*notify_property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*notify_property_cleared) (DataCollection* self, const gchar* name); - gboolean (*valid_type) (DataCollection* self, DataObject* object); - void (*set_comparator) (DataCollection* self, Comparator comparator, void* comparator_target, ComparatorPredicate predicate, void* predicate_target); - void (*reset_comparator) (DataCollection* self); - GeeCollection* (*get_all) (DataCollection* self); - gint (*get_count) (DataCollection* self); - DataObject* (*get_at) (DataCollection* self, gint index); - gint (*index_of) (DataCollection* self, DataObject* object); - gboolean (*contains) (DataCollection* self, DataObject* object); - gboolean (*add) (DataCollection* self, DataObject* object); - GeeCollection* (*add_many) (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target); - void (*remove_marked) (DataCollection* self, Marker* m); - void (*clear) (DataCollection* self); - void (*close) (DataCollection* self); - void (*notify_frozen) (DataCollection* self); - void (*notify_thawed) (DataCollection* self); - void (*items_added) (DataCollection* self, GeeIterable* added); - void (*items_removed) (DataCollection* self, GeeIterable* removed); - void (*contents_altered) (DataCollection* self, GeeIterable* added, GeeIterable* removed); - void (*items_altered) (DataCollection* self, GeeMap* items); - void (*ordering_changed) (DataCollection* self); - void (*property_set) (DataCollection* self, const gchar* name, GValue* old, GValue* val); - void (*property_cleared) (DataCollection* self, const gchar* name); - void (*frozen) (DataCollection* self); - void (*thawed) (DataCollection* self); -}; - -struct _ViewCollection { - DataCollection parent_instance; - ViewCollectionPrivate * priv; -}; - -struct _ViewCollectionClass { - DataCollectionClass parent_class; - void (*notify_items_selected_unselected) (ViewCollection* self, GeeCollection* selected, GeeCollection* unselected); - void (*notify_selection_group_altered) (ViewCollection* self); - void (*notify_item_view_altered) (ViewCollection* self, DataView* view); - void (*notify_views_altered) (ViewCollection* self, GeeCollection* views); - void (*notify_item_geometry_altered) (ViewCollection* self, DataView* view); - void (*notify_geometries_altered) (ViewCollection* self, GeeCollection* views); - void (*notify_items_shown) (ViewCollection* self, GeeCollection* shown); - void (*notify_items_hidden) (ViewCollection* self, GeeCollection* hidden); - void (*notify_items_visibility_changed) (ViewCollection* self, GeeCollection* changed); - void (*notify_view_filter_installed) (ViewCollection* self, ViewFilter* filter); - void (*notify_view_filter_removed) (ViewCollection* self, ViewFilter* filter); - DataView* (*get_first) (ViewCollection* self); - DataView* (*get_first_unrejected) (ViewCollection* self); - DataView* (*get_last) (ViewCollection* self); - DataView* (*get_next) (ViewCollection* self, DataView* view); - DataView* (*get_previous) (ViewCollection* self, DataView* view); - void (*items_selected) (ViewCollection* self, GeeIterable* selected); - void (*items_unselected) (ViewCollection* self, GeeIterable* unselected); - void (*items_state_changed) (ViewCollection* self, GeeIterable* changed); - void (*selection_group_altered) (ViewCollection* self); - void (*items_shown) (ViewCollection* self, GeeCollection* visible); - void (*items_hidden) (ViewCollection* self, GeeCollection* hidden); - void (*items_visibility_changed) (ViewCollection* self, GeeCollection* changed); - void (*item_view_altered) (ViewCollection* self, DataView* view); - void (*item_geometry_altered) (ViewCollection* self, DataView* view); - void (*views_altered) (ViewCollection* self, GeeCollection* views); - void (*geometries_altered) (ViewCollection* self, GeeCollection* views); - void (*view_filter_installed) (ViewCollection* self, ViewFilter* filer); - void (*view_filter_removed) (ViewCollection* self, ViewFilter* filer); -}; - -struct _DirectViewCollection { - ViewCollection parent_instance; - DirectViewCollectionPrivate * priv; -}; - -struct _DirectViewCollectionClass { - ViewCollectionClass parent_class; -}; - -struct _ViewManager { - GTypeInstance parent_instance; - volatile int ref_count; - ViewManagerPrivate * priv; -}; - -struct _ViewManagerClass { - GTypeClass parent_class; - void (*finalize) (ViewManager *self); - gboolean (*include_in_view) (ViewManager* self, DataSource* source); - DataView* (*create_view) (ViewManager* self, DataSource* source); -}; - -struct _DirectViewCollectionDirectViewManager { - ViewManager parent_instance; - DirectViewCollectionDirectViewManagerPrivate * priv; -}; - -struct _DirectViewCollectionDirectViewManagerClass { - ViewManagerClass parent_class; -}; - - -static gpointer direct_view_parent_class = NULL; -static gpointer direct_view_collection_parent_class = NULL; -extern DirectPhotoSourceCollection* direct_photo_global; -static gpointer direct_view_collection_direct_view_manager_parent_class = NULL; - -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType direct_view_get_type (void) G_GNUC_CONST; -#define DIRECT_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DIRECT_VIEW, DirectViewPrivate)) -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType direct_photo_get_type (void) G_GNUC_CONST; -DirectView* direct_view_new (DirectPhoto* source); -DirectView* direct_view_construct (GType object_type, - DirectPhoto* source); -DataView* data_view_new (DataSource* source); -DataView* data_view_construct (GType object_type, - DataSource* source); -GFile* media_source_get_file (MediaSource* self); -GFile* direct_view_get_file (DirectView* self); -gchar* direct_view_get_collate_key (DirectView* self); -static void direct_view_finalize (GObject * obj); -GType marker_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -GType direct_view_collection_get_type (void) G_GNUC_CONST; -DirectViewCollection* direct_view_collection_new (void); -DirectViewCollection* direct_view_collection_construct (GType object_type); -ViewCollection* view_collection_new (const gchar* name); -ViewCollection* view_collection_construct (GType object_type, - const gchar* name); -void data_collection_set_comparator (DataCollection* self, - Comparator comparator, - void* comparator_target, - ComparatorPredicate predicate, - void* predicate_target); -static gint64 direct_view_collection_filename_comparator (void* a, - void* b); -static gint64 _direct_view_collection_filename_comparator_comparator (void* a, - void* b, - gpointer self); -GType source_collection_get_type (void) G_GNUC_CONST; -gpointer view_manager_ref (gpointer instance); -void view_manager_unref (gpointer instance); -GParamSpec* param_spec_view_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_manager (GValue* value, - gpointer v_object); -void value_take_view_manager (GValue* value, - gpointer v_object); -gpointer value_get_view_manager (const GValue* value); -GType view_manager_get_type (void) G_GNUC_CONST; -gpointer view_collection_monitor_ref (gpointer instance); -void view_collection_monitor_unref (gpointer instance); -GParamSpec* view_collection_param_spec_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void view_collection_value_set_monitor (GValue* value, - gpointer v_object); -void view_collection_value_take_monitor (GValue* value, - gpointer v_object); -gpointer view_collection_value_get_monitor (const GValue* value); -GType view_collection_monitor_get_type (void) G_GNUC_CONST; -ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self, - SourceCollection* sources, - ViewManager* manager, - Alteration* prereq, - GeeCollection* initial, - ProgressMonitor progress_monitor, - void* progress_monitor_target); -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType direct_photo_source_collection_get_type (void) G_GNUC_CONST; -static DirectViewCollectionDirectViewManager* direct_view_collection_direct_view_manager_new (void); -static DirectViewCollectionDirectViewManager* direct_view_collection_direct_view_manager_construct (GType object_type); -static GType direct_view_collection_direct_view_manager_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static DataView* direct_view_collection_direct_view_manager_real_create_view (ViewManager* base, - DataSource* source); -ViewManager* view_manager_construct (GType object_type); - - -DirectView* -direct_view_construct (GType object_type, - DirectPhoto* source) -{ - DirectView * self = NULL; - GFile* _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - g_return_val_if_fail (IS_DIRECT_PHOTO (source), NULL); -#line 12 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - self = (DirectView*) data_view_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_SOURCE, DataSource)); -#line 14 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp0_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo), TYPE_MEDIA_SOURCE, MediaSource)); -#line 14 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _g_object_unref0 (self->priv->file); -#line 14 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - self->priv->file = _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - return self; -#line 563 "DirectView.c" -} - - -DirectView* -direct_view_new (DirectPhoto* source) -{ -#line 11 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - return direct_view_construct (TYPE_DIRECT_VIEW, source); -#line 572 "DirectView.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 18 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - return self ? g_object_ref (self) : NULL; -#line 581 "DirectView.c" -} - - -GFile* -direct_view_get_file (DirectView* self) -{ - GFile* result = NULL; - GFile* _tmp0_; - GFile* _tmp1_; -#line 17 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - g_return_val_if_fail (IS_DIRECT_VIEW (self), NULL); -#line 18 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp0_ = self->priv->file; -#line 18 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 18 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - result = _tmp1_; -#line 18 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - return result; -#line 601 "DirectView.c" -} - - -gchar* -direct_view_get_collate_key (DirectView* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - const gchar* _tmp5_; - gchar* _tmp6_; -#line 21 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - g_return_val_if_fail (IS_DIRECT_VIEW (self), NULL); -#line 22 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp0_ = self->priv->collate_key; -#line 22 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - if (_tmp0_ == NULL) { -#line 618 "DirectView.c" - GFile* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 23 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp1_ = self->priv->file; -#line 23 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp2_ = g_file_get_basename (_tmp1_); -#line 23 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp3_ = _tmp2_; -#line 23 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp4_ = g_utf8_collate_key_for_filename (_tmp3_, (gssize) -1); -#line 23 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _g_free0 (self->priv->collate_key); -#line 23 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - self->priv->collate_key = _tmp4_; -#line 23 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _g_free0 (_tmp3_); -#line 637 "DirectView.c" - } -#line 25 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp5_ = self->priv->collate_key; -#line 25 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 25 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - result = _tmp6_; -#line 25 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - return result; -#line 647 "DirectView.c" -} - - -static void -direct_view_class_init (DirectViewClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - direct_view_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - g_type_class_add_private (klass, sizeof (DirectViewPrivate)); -#line 7 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - G_OBJECT_CLASS (klass)->finalize = direct_view_finalize; -#line 660 "DirectView.c" -} - - -static void -direct_view_instance_init (DirectView * self) -{ -#line 7 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - self->priv = DIRECT_VIEW_GET_PRIVATE (self); -#line 9 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - self->priv->collate_key = NULL; -#line 671 "DirectView.c" -} - - -static void -direct_view_finalize (GObject * obj) -{ - DirectView * self; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DIRECT_VIEW, DirectView); -#line 8 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _g_object_unref0 (self->priv->file); -#line 9 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _g_free0 (self->priv->collate_key); -#line 7 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - G_OBJECT_CLASS (direct_view_parent_class)->finalize (obj); -#line 687 "DirectView.c" -} - - -GType -direct_view_get_type (void) -{ - static volatile gsize direct_view_type_id__volatile = 0; - if (g_once_init_enter (&direct_view_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DirectViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) direct_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectView), 0, (GInstanceInitFunc) direct_view_instance_init, NULL }; - GType direct_view_type_id; - direct_view_type_id = g_type_register_static (TYPE_DATA_VIEW, "DirectView", &g_define_type_info, 0); - g_once_init_leave (&direct_view_type_id__volatile, direct_view_type_id); - } - return direct_view_type_id__volatile; -} - - -static gint64 -_direct_view_collection_filename_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = direct_view_collection_filename_comparator (a, b); -#line 39 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - return result; -#line 714 "DirectView.c" -} - - -DirectViewCollection* -direct_view_collection_construct (GType object_type) -{ - DirectViewCollection* self = NULL; - DirectPhotoSourceCollection* _tmp0_; - DirectViewCollectionDirectViewManager* _tmp1_; - DirectViewCollectionDirectViewManager* _tmp2_; - ViewCollectionMonitor* _tmp3_; - ViewCollectionMonitor* _tmp4_; -#line 37 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - self = (DirectViewCollection*) view_collection_construct (object_type, "DirectViewCollection"); -#line 39 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - data_collection_set_comparator (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection), _direct_view_collection_filename_comparator_comparator, NULL, NULL, NULL); -#line 40 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp0_ = direct_photo_global; -#line 40 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp1_ = direct_view_collection_direct_view_manager_new (); -#line 40 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp2_ = _tmp1_; -#line 40 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp3_ = view_collection_monitor_source_collection (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_VIEW_COLLECTION, ViewCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_VIEW_MANAGER, ViewManager), NULL, NULL, NULL, NULL); -#line 40 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp4_ = _tmp3_; -#line 40 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _view_collection_monitor_unref0 (_tmp4_); -#line 40 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _view_manager_unref0 (_tmp2_); -#line 36 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - return self; -#line 747 "DirectView.c" -} - - -DirectViewCollection* -direct_view_collection_new (void) -{ -#line 36 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - return direct_view_collection_construct (TYPE_DIRECT_VIEW_COLLECTION); -#line 756 "DirectView.c" -} - - -static gint64 -direct_view_collection_filename_comparator (void* a, - void* b) -{ - gint64 result = 0LL; - DirectView* aview = NULL; - DirectView* bview = NULL; - GCompareFunc _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gint64 _tmp5_; -#line 44 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - aview = (DirectView*) a; -#line 45 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - bview = (DirectView*) b; -#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp0_ = g_strcmp0; -#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp1_ = direct_view_get_collate_key (G_TYPE_CHECK_INSTANCE_CAST (aview, TYPE_DIRECT_VIEW, DirectView)); -#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp2_ = _tmp1_; -#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp3_ = direct_view_get_collate_key (G_TYPE_CHECK_INSTANCE_CAST (bview, TYPE_DIRECT_VIEW, DirectView)); -#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp4_ = _tmp3_; -#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp5_ = (gint64) _tmp0_ (_tmp2_, _tmp4_); -#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _g_free0 (_tmp4_); -#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _g_free0 (_tmp2_); -#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - result = _tmp5_; -#line 47 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - return result; -#line 797 "DirectView.c" -} - - -static DataView* -direct_view_collection_direct_view_manager_real_create_view (ViewManager* base, - DataSource* source) -{ - DirectViewCollectionDirectViewManager * self; - DataView* result = NULL; - DirectView* _tmp0_; -#line 31 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, DIRECT_VIEW_COLLECTION_TYPE_DIRECT_VIEW_MANAGER, DirectViewCollectionDirectViewManager); -#line 31 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 32 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - _tmp0_ = direct_view_new (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DIRECT_PHOTO, DirectPhoto)); -#line 32 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_VIEW, DataView); -#line 32 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - return result; -#line 818 "DirectView.c" -} - - -static DirectViewCollectionDirectViewManager* -direct_view_collection_direct_view_manager_construct (GType object_type) -{ - DirectViewCollectionDirectViewManager* self = NULL; -#line 30 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - self = (DirectViewCollectionDirectViewManager*) view_manager_construct (object_type); -#line 30 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - return self; -#line 830 "DirectView.c" -} - - -static DirectViewCollectionDirectViewManager* -direct_view_collection_direct_view_manager_new (void) -{ -#line 30 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - return direct_view_collection_direct_view_manager_construct (DIRECT_VIEW_COLLECTION_TYPE_DIRECT_VIEW_MANAGER); -#line 839 "DirectView.c" -} - - -static void -direct_view_collection_direct_view_manager_class_init (DirectViewCollectionDirectViewManagerClass * klass) -{ -#line 30 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - direct_view_collection_direct_view_manager_parent_class = g_type_class_peek_parent (klass); -#line 30 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - ((ViewManagerClass *) klass)->create_view = (DataView* (*) (ViewManager *, DataSource*)) direct_view_collection_direct_view_manager_real_create_view; -#line 850 "DirectView.c" -} - - -static void -direct_view_collection_direct_view_manager_instance_init (DirectViewCollectionDirectViewManager * self) -{ -} - - -static GType -direct_view_collection_direct_view_manager_get_type (void) -{ - static volatile gsize direct_view_collection_direct_view_manager_type_id__volatile = 0; - if (g_once_init_enter (&direct_view_collection_direct_view_manager_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DirectViewCollectionDirectViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) direct_view_collection_direct_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectViewCollectionDirectViewManager), 0, (GInstanceInitFunc) direct_view_collection_direct_view_manager_instance_init, NULL }; - GType direct_view_collection_direct_view_manager_type_id; - direct_view_collection_direct_view_manager_type_id = g_type_register_static (TYPE_VIEW_MANAGER, "DirectViewCollectionDirectViewManager", &g_define_type_info, 0); - g_once_init_leave (&direct_view_collection_direct_view_manager_type_id__volatile, direct_view_collection_direct_view_manager_type_id); - } - return direct_view_collection_direct_view_manager_type_id__volatile; -} - - -static void -direct_view_collection_class_init (DirectViewCollectionClass * klass) -{ -#line 29 "/home/jens/Source/shotwell/src/direct/DirectView.vala" - direct_view_collection_parent_class = g_type_class_peek_parent (klass); -#line 879 "DirectView.c" -} - - -static void -direct_view_collection_instance_init (DirectViewCollection * self) -{ -} - - -GType -direct_view_collection_get_type (void) -{ - static volatile gsize direct_view_collection_type_id__volatile = 0; - if (g_once_init_enter (&direct_view_collection_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DirectViewCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) direct_view_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectViewCollection), 0, (GInstanceInitFunc) direct_view_collection_instance_init, NULL }; - GType direct_view_collection_type_id; - direct_view_collection_type_id = g_type_register_static (TYPE_VIEW_COLLECTION, "DirectViewCollection", &g_define_type_info, 0); - g_once_init_leave (&direct_view_collection_type_id__volatile, direct_view_collection_type_id); - } - return direct_view_collection_type_id__volatile; -} - - - diff --git a/src/direct/DirectWindow.c b/src/direct/DirectWindow.c deleted file mode 100644 index 74d510c..0000000 --- a/src/direct/DirectWindow.c +++ /dev/null @@ -1,967 +0,0 @@ -/* DirectWindow.c generated by valac 0.40.4, the Vala compiler - * generated from DirectWindow.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; -typedef struct _PageWindowPrivate PageWindowPrivate; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; -typedef struct _AppWindowPrivate AppWindowPrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_DIRECT_WINDOW (direct_window_get_type ()) -#define DIRECT_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_WINDOW, DirectWindow)) -#define DIRECT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_WINDOW, DirectWindowClass)) -#define IS_DIRECT_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_WINDOW)) -#define IS_DIRECT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_WINDOW)) -#define DIRECT_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_WINDOW, DirectWindowClass)) - -typedef struct _DirectWindow DirectWindow; -typedef struct _DirectWindowClass DirectWindowClass; -typedef struct _DirectWindowPrivate DirectWindowPrivate; - -#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ()) -#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)) -#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) -#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE)) -#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE)) -#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) - -typedef struct _SinglePhotoPage SinglePhotoPage; -typedef struct _SinglePhotoPageClass SinglePhotoPageClass; - -#define TYPE_EDITING_HOST_PAGE (editing_host_page_get_type ()) -#define EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPage)) -#define EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDITING_HOST_PAGE, EditingHostPageClass)) -#define IS_EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDITING_HOST_PAGE)) -#define IS_EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDITING_HOST_PAGE)) -#define EDITING_HOST_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPageClass)) - -typedef struct _EditingHostPage EditingHostPage; -typedef struct _EditingHostPageClass EditingHostPageClass; - -#define TYPE_DIRECT_PHOTO_PAGE (direct_photo_page_get_type ()) -#define DIRECT_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage)) -#define DIRECT_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPageClass)) -#define IS_DIRECT_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_PHOTO_PAGE)) -#define IS_DIRECT_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_PHOTO_PAGE)) -#define DIRECT_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPageClass)) - -typedef struct _DirectPhotoPage DirectPhotoPage; -typedef struct _DirectPhotoPageClass DirectPhotoPageClass; -enum { - DIRECT_WINDOW_0_PROPERTY, - DIRECT_WINDOW_NUM_PROPERTIES -}; -static GParamSpec* direct_window_properties[DIRECT_WINDOW_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE (direct_fullscreen_photo_page_get_type ()) -#define DIRECT_FULLSCREEN_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, DirectFullscreenPhotoPage)) -#define DIRECT_FULLSCREEN_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, DirectFullscreenPhotoPageClass)) -#define IS_DIRECT_FULLSCREEN_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE)) -#define IS_DIRECT_FULLSCREEN_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE)) -#define DIRECT_FULLSCREEN_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_FULLSCREEN_PHOTO_PAGE, DirectFullscreenPhotoPageClass)) - -typedef struct _DirectFullscreenPhotoPage DirectFullscreenPhotoPage; -typedef struct _DirectFullscreenPhotoPageClass DirectFullscreenPhotoPageClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; - -struct _PageWindow { - GtkApplicationWindow parent_instance; - PageWindowPrivate * priv; -}; - -struct _PageWindowClass { - GtkApplicationWindowClass parent_class; - void (*switched_pages) (PageWindow* self, Page* old_page, Page* new_page); - void (*set_current_page) (PageWindow* self, Page* page); - void (*clear_current_page) (PageWindow* self); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _AppWindow { - PageWindow parent_instance; - AppWindowPrivate * priv; - gboolean maximized; - Dimensions dimensions; - gint pos_x; - gint pos_y; -}; - -struct _AppWindowClass { - PageWindowClass parent_class; - void (*on_fullscreen) (AppWindow* self); - gchar* (*get_app_role) (AppWindow* self); - void (*on_quit) (AppWindow* self); - void (*add_actions) (AppWindow* self); - void (*update_common_action_availability) (AppWindow* self, Page* old_page, Page* new_page); - void (*update_common_actions) (AppWindow* self, Page* page, gint selected_count, gint count); -}; - -struct _DirectWindow { - AppWindow parent_instance; - DirectWindowPrivate * priv; -}; - -struct _DirectWindowClass { - AppWindowClass parent_class; -}; - -struct _DirectWindowPrivate { - DirectPhotoPage* direct_photo_page; -}; - - -static gpointer direct_window_parent_class = NULL; -extern AppWindow* app_window_instance; - -GType page_window_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType direct_window_get_type (void) G_GNUC_CONST; -GType single_photo_page_get_type (void) G_GNUC_CONST; -GType editing_host_page_get_type (void) G_GNUC_CONST; -GType direct_photo_page_get_type (void) G_GNUC_CONST; -#define DIRECT_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DIRECT_WINDOW, DirectWindowPrivate)) -DirectWindow* direct_window_new (GFile* file); -DirectWindow* direct_window_construct (GType object_type, - GFile* file); -AppWindow* app_window_construct (GType object_type); -DirectPhotoPage* direct_photo_page_new (GFile* file); -DirectPhotoPage* direct_photo_page_construct (GType object_type, - GFile* file); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -static void direct_window_on_photo_changed (DirectWindow* self); -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -static void _direct_window_on_photo_changed_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -GType data_view_get_type (void) G_GNUC_CONST; -static void _direct_window_on_photo_changed_view_collection_items_state_changed (ViewCollection* _sender, - GeeIterable* changed, - gpointer self); -void page_window_set_current_page (PageWindow* self, - Page* page); -void direct_window_update_title (DirectWindow* self, - GFile* file, - gboolean modified); -void page_switched_to (Page* self); -GtkToolbar* page_get_toolbar (Page* self); -void application_set_menubar (GMenuModel* model); -GMenuModel* page_get_menubar (Page* self); -DirectWindow* direct_window_get_app (void); -DirectPhotoPage* direct_window_get_direct_page (DirectWindow* self); -Page* page_window_get_current_page (PageWindow* self); -gchar* get_display_pathname (GFile* file); -#define RESOURCES_APP_TITLE "Shotwell" -static void direct_window_real_on_fullscreen (AppWindow* base); -GFile* direct_photo_page_get_current_file (DirectPhotoPage* self); -void app_window_go_fullscreen (AppWindow* self, - Page* page); -DirectFullscreenPhotoPage* direct_fullscreen_photo_page_new (GFile* file); -DirectFullscreenPhotoPage* direct_fullscreen_photo_page_construct (GType object_type, - GFile* file); -GType direct_fullscreen_photo_page_get_type (void) G_GNUC_CONST; -static gchar* direct_window_real_get_app_role (AppWindow* base); -#define RESOURCES_APP_DIRECT_ROLE _ ("Photo Viewer") -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -Photo* editing_host_page_get_photo (EditingHostPage* self); -GFile* media_source_get_file (MediaSource* self); -gboolean photo_has_alterations (Photo* self); -static void direct_window_real_on_quit (AppWindow* base); -gboolean direct_photo_page_check_quit (DirectPhotoPage* self); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -void configuration_facade_set_direct_window_state (ConfigurationFacade* self, - gboolean maximize, - Dimensions* dimensions); -void app_window_on_quit (AppWindow* self); -static gboolean direct_window_real_delete_event (GtkWidget* base, - GdkEventAny* event); -static gboolean direct_window_real_button_press_event (GtkWidget* base, - GdkEventButton* event); -void app_window_on_fullscreen (AppWindow* self); -static gboolean direct_window_real_key_press_event (GtkWidget* base, - GdkEventKey* event); -static void direct_window_finalize (GObject * obj); - - -static void -_direct_window_on_photo_changed_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 12 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - direct_window_on_photo_changed ((DirectWindow*) self); -#line 403 "DirectWindow.c" -} - - -static void -_direct_window_on_photo_changed_view_collection_items_state_changed (ViewCollection* _sender, - GeeIterable* changed, - gpointer self) -{ -#line 13 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - direct_window_on_photo_changed ((DirectWindow*) self); -#line 414 "DirectWindow.c" -} - - -DirectWindow* -direct_window_construct (GType object_type, - GFile* file) -{ - DirectWindow * self = NULL; - DirectPhotoPage* _tmp0_; - DirectPhotoPage* _tmp1_; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; - DirectPhotoPage* _tmp4_; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; - DirectPhotoPage* _tmp7_; - DirectPhotoPage* _tmp8_; - GtkBox* layout = NULL; - GtkBox* _tmp9_; - DirectPhotoPage* _tmp10_; - DirectPhotoPage* _tmp11_; - GtkToolbar* _tmp12_; - GtkToolbar* _tmp13_; - DirectPhotoPage* _tmp14_; - GMenuModel* _tmp15_; - GMenuModel* _tmp16_; -#line 10 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 10 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - self = (DirectWindow*) app_window_construct (object_type); -#line 11 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp0_ = direct_photo_page_new (file); -#line 11 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - g_object_ref_sink (_tmp0_); -#line 11 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_object_unref0 (self->priv->direct_photo_page); -#line 11 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - self->priv->direct_photo_page = _tmp0_; -#line 12 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp1_ = self->priv->direct_photo_page; -#line 12 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page)); -#line 12 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp3_ = _tmp2_; -#line 12 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _direct_window_on_photo_changed_data_collection_items_altered, self, 0); -#line 12 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _data_collection_unref0 (_tmp3_); -#line 13 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp4_ = self->priv->direct_photo_page; -#line 13 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PAGE, Page)); -#line 13 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp6_ = _tmp5_; -#line 13 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - g_signal_connect_object (_tmp6_, "items-state-changed", (GCallback) _direct_window_on_photo_changed_view_collection_items_state_changed, self, 0); -#line 13 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _data_collection_unref0 (_tmp6_); -#line 15 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp7_ = self->priv->direct_photo_page; -#line 15 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - page_window_set_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PAGE, Page)); -#line 17 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - direct_window_update_title (self, file, FALSE); -#line 19 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp8_ = self->priv->direct_photo_page; -#line 19 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - page_switched_to (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PAGE, Page)); -#line 23 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp9_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 23 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - g_object_ref_sink (_tmp9_); -#line 23 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - layout = _tmp9_; -#line 24 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp10_ = self->priv->direct_photo_page; -#line 24 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - gtk_box_pack_start (layout, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 25 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp11_ = self->priv->direct_photo_page; -#line 25 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp12_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PAGE, Page)); -#line 25 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp13_ = _tmp12_; -#line 25 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - gtk_box_pack_end (layout, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 25 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_object_unref0 (_tmp13_); -#line 27 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp14_ = self->priv->direct_photo_page; -#line 27 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp15_ = page_get_menubar (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PAGE, Page)); -#line 27 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp16_ = _tmp15_; -#line 27 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - application_set_menubar (_tmp16_); -#line 27 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_object_unref0 (_tmp16_); -#line 29 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (layout, gtk_widget_get_type (), GtkWidget)); -#line 10 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_object_unref0 (layout); -#line 10 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - return self; -#line 519 "DirectWindow.c" -} - - -DirectWindow* -direct_window_new (GFile* file) -{ -#line 10 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - return direct_window_construct (TYPE_DIRECT_WINDOW, file); -#line 528 "DirectWindow.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 33 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - return self ? g_object_ref (self) : NULL; -#line 537 "DirectWindow.c" -} - - -DirectWindow* -direct_window_get_app (void) -{ - DirectWindow* result = NULL; - AppWindow* _tmp0_; - DirectWindow* _tmp1_; -#line 33 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp0_ = app_window_instance; -#line 33 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DIRECT_WINDOW, DirectWindow)); -#line 33 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - result = _tmp1_; -#line 33 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - return result; -#line 555 "DirectWindow.c" -} - - -DirectPhotoPage* -direct_window_get_direct_page (DirectWindow* self) -{ - DirectPhotoPage* result = NULL; - Page* _tmp0_; -#line 36 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - g_return_val_if_fail (IS_DIRECT_WINDOW (self), NULL); -#line 37 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 37 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DIRECT_PHOTO_PAGE, DirectPhotoPage); -#line 37 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - return result; -#line 572 "DirectWindow.c" -} - - -void -direct_window_update_title (DirectWindow* self, - GFile* file, - gboolean modified) -{ - const gchar* _tmp0_ = NULL; - gchar* _tmp1_; - gchar* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 40 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - g_return_if_fail (IS_DIRECT_WINDOW (self)); -#line 40 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - if (modified) { -#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp0_ = "*"; -#line 598 "DirectWindow.c" - } else { -#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp0_ = ""; -#line 602 "DirectWindow.c" - } -#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp1_ = g_file_get_basename (file); -#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp2_ = _tmp1_; -#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp3_ = g_file_get_parent (file); -#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp4_ = _tmp3_; -#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp5_ = get_display_pathname (_tmp4_); -#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp6_ = _tmp5_; -#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp7_ = g_strdup_printf ("%s%s (%s) - %s", _tmp0_, _tmp2_, _tmp6_, RESOURCES_APP_TITLE); -#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp8_ = _tmp7_; -#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp8_); -#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_free0 (_tmp8_); -#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_free0 (_tmp6_); -#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_object_unref0 (_tmp4_); -#line 41 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_free0 (_tmp2_); -#line 630 "DirectWindow.c" -} - - -static void -direct_window_real_on_fullscreen (AppWindow* base) -{ - DirectWindow * self; - GFile* file = NULL; - DirectPhotoPage* _tmp0_; - DirectPhotoPage* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - DirectFullscreenPhotoPage* _tmp4_; - DirectFullscreenPhotoPage* _tmp5_; -#line 45 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow); -#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp0_ = direct_window_get_direct_page (self); -#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp1_ = _tmp0_; -#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp2_ = direct_photo_page_get_current_file (_tmp1_); -#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp3_ = _tmp2_; -#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_object_unref0 (_tmp1_); -#line 46 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - file = _tmp3_; -#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp4_ = direct_fullscreen_photo_page_new (file); -#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - g_object_ref_sink (_tmp4_); -#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp5_ = _tmp4_; -#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - app_window_go_fullscreen (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_PAGE, Page)); -#line 48 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_object_unref0 (_tmp5_); -#line 45 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_object_unref0 (file); -#line 671 "DirectWindow.c" -} - - -static gchar* -direct_window_real_get_app_role (AppWindow* base) -{ - DirectWindow * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 51 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow); -#line 52 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp0_ = g_strdup (RESOURCES_APP_DIRECT_ROLE); -#line 52 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - result = _tmp0_; -#line 52 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - return result; -#line 689 "DirectWindow.c" -} - - -static void -direct_window_on_photo_changed (DirectWindow* self) -{ - Photo* photo = NULL; - DirectPhotoPage* _tmp0_; - Photo* _tmp1_; - Photo* _tmp2_; -#line 55 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - g_return_if_fail (IS_DIRECT_WINDOW (self)); -#line 56 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp0_ = self->priv->direct_photo_page; -#line 56 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp1_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 56 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - photo = _tmp1_; -#line 57 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp2_ = photo; -#line 57 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - if (_tmp2_ != NULL) { -#line 712 "DirectWindow.c" - Photo* _tmp3_; - GFile* _tmp4_; - GFile* _tmp5_; - Photo* _tmp6_; -#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp3_ = photo; -#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp4_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp5_ = _tmp4_; -#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp6_ = photo; -#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - direct_window_update_title (self, _tmp5_, photo_has_alterations (_tmp6_)); -#line 58 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_object_unref0 (_tmp5_); -#line 729 "DirectWindow.c" - } -#line 55 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_object_unref0 (photo); -#line 733 "DirectWindow.c" -} - - -static void -direct_window_real_on_quit (AppWindow* base) -{ - DirectWindow * self; - DirectPhotoPage* _tmp0_; - DirectPhotoPage* _tmp1_; - gboolean _tmp2_; - ConfigFacade* _tmp3_; - ConfigFacade* _tmp4_; - gboolean _tmp5_; - Dimensions _tmp6_; -#line 61 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow); -#line 62 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp0_ = direct_window_get_direct_page (self); -#line 62 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp1_ = _tmp0_; -#line 62 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp2_ = !direct_photo_page_check_quit (_tmp1_); -#line 62 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_object_unref0 (_tmp1_); -#line 62 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - if (_tmp2_) { -#line 63 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - return; -#line 762 "DirectWindow.c" - } -#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp3_ = config_facade_get_instance (); -#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp4_ = _tmp3_; -#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)->maximized; -#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)->dimensions; -#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - configuration_facade_set_direct_window_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp5_, &_tmp6_); -#line 65 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_object_unref0 (_tmp4_); -#line 67 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - APP_WINDOW_CLASS (direct_window_parent_class)->on_quit (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)); -#line 778 "DirectWindow.c" -} - - -static gboolean -direct_window_real_delete_event (GtkWidget* base, - GdkEventAny* event) -{ - DirectWindow * self; - gboolean result = FALSE; - DirectPhotoPage* _tmp0_; - DirectPhotoPage* _tmp1_; - gboolean _tmp2_; - gboolean _tmp3_ = FALSE; -#line 70 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow); -#line 70 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 71 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp0_ = direct_window_get_direct_page (self); -#line 71 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp1_ = _tmp0_; -#line 71 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp2_ = !direct_photo_page_check_quit (_tmp1_); -#line 71 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_object_unref0 (_tmp1_); -#line 71 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - if (_tmp2_) { -#line 72 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - result = TRUE; -#line 72 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - return result; -#line 810 "DirectWindow.c" - } -#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - if (GTK_WIDGET_CLASS (direct_window_parent_class)->delete_event != NULL) { -#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp3_ = GTK_WIDGET_CLASS (direct_window_parent_class)->delete_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), gtk_widget_get_type (), GtkWidget), event); -#line 816 "DirectWindow.c" - } else { -#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp3_ = FALSE; -#line 820 "DirectWindow.c" - } -#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - result = _tmp3_; -#line 74 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - return result; -#line 826 "DirectWindow.c" -} - - -static gboolean -direct_window_real_button_press_event (GtkWidget* base, - GdkEventButton* event) -{ - DirectWindow * self; - gboolean result = FALSE; - GdkEventType _tmp0_; -#line 77 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow); -#line 77 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 78 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp0_ = event->type; -#line 78 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - if (_tmp0_ == GDK_2BUTTON_PRESS) { -#line 79 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - app_window_on_fullscreen (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)); -#line 81 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - result = TRUE; -#line 81 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - return result; -#line 851 "DirectWindow.c" - } -#line 84 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - result = FALSE; -#line 84 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - return result; -#line 857 "DirectWindow.c" -} - - -static gboolean -direct_window_real_key_press_event (GtkWidget* base, - GdkEventKey* event) -{ - DirectWindow * self; - gboolean result = FALSE; - guint _tmp0_; - const gchar* _tmp1_; - gboolean _tmp2_ = FALSE; -#line 87 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_DIRECT_WINDOW, DirectWindow); -#line 87 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 89 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp0_ = event->keyval; -#line 89 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp1_ = gdk_keyval_name (_tmp0_); -#line 89 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - if (g_strcmp0 (_tmp1_, "Escape") == 0) { -#line 90 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - app_window_on_quit (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)); -#line 92 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - result = TRUE; -#line 92 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - return result; -#line 886 "DirectWindow.c" - } -#line 96 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - if (GTK_WIDGET_CLASS (direct_window_parent_class)->key_press_event != NULL) { -#line 96 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp2_ = GTK_WIDGET_CLASS (direct_window_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), gtk_widget_get_type (), GtkWidget), event); -#line 892 "DirectWindow.c" - } else { -#line 96 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _tmp2_ = FALSE; -#line 896 "DirectWindow.c" - } -#line 96 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - result = _tmp2_; -#line 96 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - return result; -#line 902 "DirectWindow.c" -} - - -static void -direct_window_class_init (DirectWindowClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - direct_window_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - g_type_class_add_private (klass, sizeof (DirectWindowPrivate)); -#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - ((AppWindowClass *) klass)->on_fullscreen = (void (*) (AppWindow *)) direct_window_real_on_fullscreen; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - ((AppWindowClass *) klass)->get_app_role = (gchar* (*) (AppWindow *)) direct_window_real_get_app_role; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - ((AppWindowClass *) klass)->on_quit = (void (*) (AppWindow *)) direct_window_real_on_quit; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - ((GtkWidgetClass *) klass)->delete_event = (gboolean (*) (GtkWidget *, GdkEventAny*)) direct_window_real_delete_event; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - ((GtkWidgetClass *) klass)->button_press_event = (gboolean (*) (GtkWidget *, GdkEventButton*)) direct_window_real_button_press_event; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) direct_window_real_key_press_event; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - G_OBJECT_CLASS (klass)->finalize = direct_window_finalize; -#line 927 "DirectWindow.c" -} - - -static void -direct_window_instance_init (DirectWindow * self) -{ -#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - self->priv = DIRECT_WINDOW_GET_PRIVATE (self); -#line 936 "DirectWindow.c" -} - - -static void -direct_window_finalize (GObject * obj) -{ - DirectWindow * self; -#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DIRECT_WINDOW, DirectWindow); -#line 8 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - _g_object_unref0 (self->priv->direct_photo_page); -#line 7 "/home/jens/Source/shotwell/src/direct/DirectWindow.vala" - G_OBJECT_CLASS (direct_window_parent_class)->finalize (obj); -#line 950 "DirectWindow.c" -} - - -GType -direct_window_get_type (void) -{ - static volatile gsize direct_window_type_id__volatile = 0; - if (g_once_init_enter (&direct_window_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (DirectWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) direct_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DirectWindow), 0, (GInstanceInitFunc) direct_window_instance_init, NULL }; - GType direct_window_type_id; - direct_window_type_id = g_type_register_static (TYPE_APP_WINDOW, "DirectWindow", &g_define_type_info, 0); - g_once_init_leave (&direct_window_type_id__volatile, direct_window_type_id); - } - return direct_window_type_id__volatile; -} - - - diff --git a/src/editing_tools/EditingTools.c b/src/editing_tools/EditingTools.c deleted file mode 100644 index 629c926..0000000 --- a/src/editing_tools/EditingTools.c +++ /dev/null @@ -1,19536 +0,0 @@ -/* EditingTools.c generated by valac 0.40.4, the Vala compiler - * generated from EditingTools.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/* This file is the master unit file for the EditingTools unit. It should be edited to include - * whatever code is deemed necessary. - * - * The init() and terminate() methods are mandatory. - * - * If the unit needs to be configured prior to initialization, add the proper parameters to - * the preconfigure() method, implement it, and ensure in init() that it's been called. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "shotwell-graphics-processor.h" -#include - - -#define EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW (editing_tools_editing_tool_window_get_type ()) -#define EDITING_TOOLS_EDITING_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow)) -#define EDITING_TOOLS_EDITING_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindowClass)) -#define EDITING_TOOLS_IS_EDITING_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW)) -#define EDITING_TOOLS_IS_EDITING_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW)) -#define EDITING_TOOLS_EDITING_TOOL_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindowClass)) - -typedef struct _EditingToolsEditingToolWindow EditingToolsEditingToolWindow; -typedef struct _EditingToolsEditingToolWindowClass EditingToolsEditingToolWindowClass; -typedef struct _EditingToolsEditingToolWindowPrivate EditingToolsEditingToolWindowPrivate; -enum { - EDITING_TOOLS_EDITING_TOOL_WINDOW_0_PROPERTY, - EDITING_TOOLS_EDITING_TOOL_WINDOW_NUM_PROPERTIES -}; -static GParamSpec* editing_tools_editing_tool_window_properties[EDITING_TOOLS_EDITING_TOOL_WINDOW_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define EDITING_TOOLS_TYPE_PHOTO_CANVAS (editing_tools_photo_canvas_get_type ()) -#define EDITING_TOOLS_PHOTO_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvas)) -#define EDITING_TOOLS_PHOTO_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvasClass)) -#define EDITING_TOOLS_IS_PHOTO_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS)) -#define EDITING_TOOLS_IS_PHOTO_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_PHOTO_CANVAS)) -#define EDITING_TOOLS_PHOTO_CANVAS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvasClass)) - -typedef struct _EditingToolsPhotoCanvas EditingToolsPhotoCanvas; -typedef struct _EditingToolsPhotoCanvasClass EditingToolsPhotoCanvasClass; -typedef struct _EditingToolsPhotoCanvasPrivate EditingToolsPhotoCanvasPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL))) -#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL))) - -#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ()) - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) -typedef struct _Scaling Scaling; - -#define TYPE_BOX (box_get_type ()) -typedef struct _Box Box; -typedef struct _EditingToolsParamSpecPhotoCanvas EditingToolsParamSpecPhotoCanvas; -enum { - EDITING_TOOLS_PHOTO_CANVAS_NEW_SURFACE_SIGNAL, - EDITING_TOOLS_PHOTO_CANVAS_RESIZED_SCALED_PIXBUF_SIGNAL, - EDITING_TOOLS_PHOTO_CANVAS_NUM_SIGNALS -}; -static guint editing_tools_photo_canvas_signals[EDITING_TOOLS_PHOTO_CANVAS_NUM_SIGNALS] = {0}; - -#define EDITING_TOOLS_TYPE_EDITING_TOOL (editing_tools_editing_tool_get_type ()) -#define EDITING_TOOLS_EDITING_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)) -#define EDITING_TOOLS_EDITING_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingToolClass)) -#define EDITING_TOOLS_IS_EDITING_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL)) -#define EDITING_TOOLS_IS_EDITING_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL)) -#define EDITING_TOOLS_EDITING_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingToolClass)) - -typedef struct _EditingToolsEditingTool EditingToolsEditingTool; -typedef struct _EditingToolsEditingToolClass EditingToolsEditingToolClass; -typedef struct _EditingToolsEditingToolPrivate EditingToolsEditingToolPrivate; -#define _editing_tools_photo_canvas_unref0(var) ((var == NULL) ? NULL : (var = (editing_tools_photo_canvas_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; -typedef struct _EditingToolsParamSpecEditingTool EditingToolsParamSpecEditingTool; -enum { - EDITING_TOOLS_EDITING_TOOL_ACTIVATED_SIGNAL, - EDITING_TOOLS_EDITING_TOOL_DEACTIVATED_SIGNAL, - EDITING_TOOLS_EDITING_TOOL_APPLIED_SIGNAL, - EDITING_TOOLS_EDITING_TOOL_CANCELLED_SIGNAL, - EDITING_TOOLS_EDITING_TOOL_ABORTED_SIGNAL, - EDITING_TOOLS_EDITING_TOOL_NUM_SIGNALS -}; -static guint editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_NUM_SIGNALS] = {0}; - -#define EDITING_TOOLS_TYPE_CROP_TOOL (editing_tools_crop_tool_get_type ()) -#define EDITING_TOOLS_CROP_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool)) -#define EDITING_TOOLS_CROP_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropToolClass)) -#define EDITING_TOOLS_IS_CROP_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_CROP_TOOL)) -#define EDITING_TOOLS_IS_CROP_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_CROP_TOOL)) -#define EDITING_TOOLS_CROP_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropToolClass)) - -typedef struct _EditingToolsCropTool EditingToolsCropTool; -typedef struct _EditingToolsCropToolClass EditingToolsCropToolClass; -typedef struct _EditingToolsCropToolPrivate EditingToolsCropToolPrivate; - -#define EDITING_TOOLS_CROP_TOOL_TYPE_CROP_TOOL_WINDOW (editing_tools_crop_tool_crop_tool_window_get_type ()) -#define EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_CROP_TOOL_TYPE_CROP_TOOL_WINDOW, EditingToolsCropToolCropToolWindow)) -#define EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_CROP_TOOL_TYPE_CROP_TOOL_WINDOW, EditingToolsCropToolCropToolWindowClass)) -#define EDITING_TOOLS_CROP_TOOL_IS_CROP_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_CROP_TOOL_TYPE_CROP_TOOL_WINDOW)) -#define EDITING_TOOLS_CROP_TOOL_IS_CROP_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_CROP_TOOL_TYPE_CROP_TOOL_WINDOW)) -#define EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_CROP_TOOL_TYPE_CROP_TOOL_WINDOW, EditingToolsCropToolCropToolWindowClass)) - -typedef struct _EditingToolsCropToolCropToolWindow EditingToolsCropToolCropToolWindow; -typedef struct _EditingToolsCropToolCropToolWindowClass EditingToolsCropToolCropToolWindowClass; - -#define TYPE_BOX_LOCATION (box_location_get_type ()) - -#define EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION (editing_tools_crop_tool_constraint_description_get_type ()) -#define EDITING_TOOLS_CROP_TOOL_CONSTRAINT_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION, EditingToolsCropToolConstraintDescription)) -#define EDITING_TOOLS_CROP_TOOL_CONSTRAINT_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION, EditingToolsCropToolConstraintDescriptionClass)) -#define EDITING_TOOLS_CROP_TOOL_IS_CONSTRAINT_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION)) -#define EDITING_TOOLS_CROP_TOOL_IS_CONSTRAINT_DESCRIPTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION)) -#define EDITING_TOOLS_CROP_TOOL_CONSTRAINT_DESCRIPTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION, EditingToolsCropToolConstraintDescriptionClass)) - -typedef struct _EditingToolsCropToolConstraintDescription EditingToolsCropToolConstraintDescription; -typedef struct _EditingToolsCropToolConstraintDescriptionClass EditingToolsCropToolConstraintDescriptionClass; - -#define EDITING_TOOLS_CROP_TOOL_TYPE_RETICLE_ORIENTATION (editing_tools_crop_tool_reticle_orientation_get_type ()) - -#define EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_MODE (editing_tools_crop_tool_constraint_mode_get_type ()) -typedef struct _EditingToolsCropToolConstraintDescriptionPrivate EditingToolsCropToolConstraintDescriptionPrivate; -#define _editing_tools_crop_tool_constraint_description_unref0(var) ((var == NULL) ? NULL : (var = (editing_tools_crop_tool_constraint_description_unref (var), NULL))) -typedef struct _EditingToolsCropToolCropToolWindowPrivate EditingToolsCropToolCropToolWindowPrivate; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; - -#define TYPE_BACKING_FETCH_MODE (backing_fetch_mode_get_type ()) - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; - -#define TYPE_SINGLE_DATA_SOURCE_COMMAND (single_data_source_command_get_type ()) -#define SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)) -#define SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) -#define IS_SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND)) -#define IS_SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND)) -#define SINGLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) - -typedef struct _SingleDataSourceCommand SingleDataSourceCommand; -typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass; - -#define TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND (generic_photo_transformation_command_get_type ()) -#define GENERIC_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand)) -#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandClass)) -#define IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND)) -#define IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND)) -#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandClass)) - -typedef struct _GenericPhotoTransformationCommand GenericPhotoTransformationCommand; -typedef struct _GenericPhotoTransformationCommandClass GenericPhotoTransformationCommandClass; - -#define TYPE_CROP_COMMAND (crop_command_get_type ()) -#define CROP_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CROP_COMMAND, CropCommand)) -#define CROP_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CROP_COMMAND, CropCommandClass)) -#define IS_CROP_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CROP_COMMAND)) -#define IS_CROP_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CROP_COMMAND)) -#define CROP_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CROP_COMMAND, CropCommandClass)) - -typedef struct _CropCommand CropCommand; -typedef struct _CropCommandClass CropCommandClass; - -#define TYPE_BOX_COMPLEMENTS (box_complements_get_type ()) -typedef struct _EditingToolsCropToolParamSpecConstraintDescription EditingToolsCropToolParamSpecConstraintDescription; -enum { - EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW_0_PROPERTY, - EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW_NUM_PROPERTIES -}; -static GParamSpec* editing_tools_crop_tool_crop_tool_window_properties[EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW_NUM_PROPERTIES]; - -#define EDITING_TOOLS_TYPE_REDEYE_INSTANCE (editing_tools_redeye_instance_get_type ()) -typedef struct _EditingToolsRedeyeInstance EditingToolsRedeyeInstance; - -#define EDITING_TOOLS_TYPE_REDEYE_TOOL (editing_tools_redeye_tool_get_type ()) -#define EDITING_TOOLS_REDEYE_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool)) -#define EDITING_TOOLS_REDEYE_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeToolClass)) -#define EDITING_TOOLS_IS_REDEYE_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_REDEYE_TOOL)) -#define EDITING_TOOLS_IS_REDEYE_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_REDEYE_TOOL)) -#define EDITING_TOOLS_REDEYE_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeToolClass)) - -typedef struct _EditingToolsRedeyeTool EditingToolsRedeyeTool; -typedef struct _EditingToolsRedeyeToolClass EditingToolsRedeyeToolClass; -typedef struct _EditingToolsRedeyeToolPrivate EditingToolsRedeyeToolPrivate; - -#define EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW (editing_tools_redeye_tool_redeye_tool_window_get_type ()) -#define EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW, EditingToolsRedeyeToolRedeyeToolWindow)) -#define EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW, EditingToolsRedeyeToolRedeyeToolWindowClass)) -#define EDITING_TOOLS_REDEYE_TOOL_IS_REDEYE_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW)) -#define EDITING_TOOLS_REDEYE_TOOL_IS_REDEYE_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW)) -#define EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW, EditingToolsRedeyeToolRedeyeToolWindowClass)) - -typedef struct _EditingToolsRedeyeToolRedeyeToolWindow EditingToolsRedeyeToolRedeyeToolWindow; -typedef struct _EditingToolsRedeyeToolRedeyeToolWindowClass EditingToolsRedeyeToolRedeyeToolWindowClass; -typedef struct _EditingToolsRedeyeToolRedeyeToolWindowPrivate EditingToolsRedeyeToolRedeyeToolWindowPrivate; - -#define TYPE_REDEYE_COMMAND (redeye_command_get_type ()) -#define REDEYE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REDEYE_COMMAND, RedeyeCommand)) -#define REDEYE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REDEYE_COMMAND, RedeyeCommandClass)) -#define IS_REDEYE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REDEYE_COMMAND)) -#define IS_REDEYE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REDEYE_COMMAND)) -#define REDEYE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REDEYE_COMMAND, RedeyeCommandClass)) - -typedef struct _RedeyeCommand RedeyeCommand; -typedef struct _RedeyeCommandClass RedeyeCommandClass; - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -enum { - EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_0_PROPERTY, - EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_NUM_PROPERTIES -}; -static GParamSpec* editing_tools_redeye_tool_redeye_tool_window_properties[EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_NUM_PROPERTIES]; - -#define EDITING_TOOLS_TYPE_ADJUST_TOOL (editing_tools_adjust_tool_get_type ()) -#define EDITING_TOOLS_ADJUST_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool)) -#define EDITING_TOOLS_ADJUST_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustToolClass)) -#define EDITING_TOOLS_IS_ADJUST_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_ADJUST_TOOL)) -#define EDITING_TOOLS_IS_ADJUST_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_ADJUST_TOOL)) -#define EDITING_TOOLS_ADJUST_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustToolClass)) - -typedef struct _EditingToolsAdjustTool EditingToolsAdjustTool; -typedef struct _EditingToolsAdjustToolClass EditingToolsAdjustToolClass; -typedef struct _EditingToolsAdjustToolPrivate EditingToolsAdjustToolPrivate; - -#define EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_WINDOW (editing_tools_adjust_tool_adjust_tool_window_get_type ()) -#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_WINDOW, EditingToolsAdjustToolAdjustToolWindow)) -#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_WINDOW, EditingToolsAdjustToolAdjustToolWindowClass)) -#define EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_WINDOW)) -#define EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_WINDOW)) -#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_WINDOW, EditingToolsAdjustToolAdjustToolWindowClass)) - -typedef struct _EditingToolsAdjustToolAdjustToolWindow EditingToolsAdjustToolAdjustToolWindow; -typedef struct _EditingToolsAdjustToolAdjustToolWindowClass EditingToolsAdjustToolAdjustToolWindowClass; - -#define TYPE_ONE_SHOT_SCHEDULER (one_shot_scheduler_get_type ()) -#define ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler)) -#define ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass)) -#define IS_ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ONE_SHOT_SCHEDULER)) -#define IS_ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ONE_SHOT_SCHEDULER)) -#define ONE_SHOT_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass)) - -typedef struct _OneShotScheduler OneShotScheduler; -typedef struct _OneShotSchedulerClass OneShotSchedulerClass; -#define _pixel_transformer_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformer_unref (var), NULL))) -#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL))) -#define _one_shot_scheduler_unref0(var) ((var == NULL) ? NULL : (var = (one_shot_scheduler_unref (var), NULL))) -typedef struct _EditingToolsAdjustToolAdjustToolWindowPrivate EditingToolsAdjustToolAdjustToolWindowPrivate; - -#define TYPE_RGB_HISTOGRAM_MANIPULATOR (rgb_histogram_manipulator_get_type ()) -#define RGB_HISTOGRAM_MANIPULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulator)) -#define RGB_HISTOGRAM_MANIPULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulatorClass)) -#define IS_RGB_HISTOGRAM_MANIPULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RGB_HISTOGRAM_MANIPULATOR)) -#define IS_RGB_HISTOGRAM_MANIPULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RGB_HISTOGRAM_MANIPULATOR)) -#define RGB_HISTOGRAM_MANIPULATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulatorClass)) - -typedef struct _RGBHistogramManipulator RGBHistogramManipulator; -typedef struct _RGBHistogramManipulatorClass RGBHistogramManipulatorClass; -#define _pixel_transformation_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_unref (var), NULL))) - -#define EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND (editing_tools_adjust_tool_adjust_tool_command_get_type ()) -#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)) -#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommandClass)) -#define EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_TOOL_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND)) -#define EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_TOOL_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND)) -#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommandClass)) - -typedef struct _EditingToolsAdjustToolAdjustToolCommand EditingToolsAdjustToolAdjustToolCommand; -typedef struct _EditingToolsAdjustToolAdjustToolCommandClass EditingToolsAdjustToolAdjustToolCommandClass; - -#define EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND (editing_tools_adjust_tool_adjust_reset_command_get_type ()) -#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_RESET_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, EditingToolsAdjustToolAdjustResetCommand)) -#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_RESET_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, EditingToolsAdjustToolAdjustResetCommandClass)) -#define EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_RESET_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND)) -#define EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_RESET_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND)) -#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_RESET_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, EditingToolsAdjustToolAdjustResetCommandClass)) - -typedef struct _EditingToolsAdjustToolAdjustResetCommand EditingToolsAdjustToolAdjustResetCommand; -typedef struct _EditingToolsAdjustToolAdjustResetCommandClass EditingToolsAdjustToolAdjustResetCommandClass; - -#define TYPE_ADJUST_COLORS_SINGLE_COMMAND (adjust_colors_single_command_get_type ()) -#define ADJUST_COLORS_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommand)) -#define ADJUST_COLORS_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommandClass)) -#define IS_ADJUST_COLORS_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND)) -#define IS_ADJUST_COLORS_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADJUST_COLORS_SINGLE_COMMAND)) -#define ADJUST_COLORS_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADJUST_COLORS_SINGLE_COMMAND, AdjustColorsSingleCommandClass)) - -typedef struct _AdjustColorsSingleCommand AdjustColorsSingleCommand; -typedef struct _AdjustColorsSingleCommandClass AdjustColorsSingleCommandClass; - -#define EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND (editing_tools_adjust_tool_slider_adjustment_command_get_type ()) -#define EDITING_TOOLS_ADJUST_TOOL_SLIDER_ADJUSTMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommand)) -#define EDITING_TOOLS_ADJUST_TOOL_SLIDER_ADJUSTMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommandClass)) -#define EDITING_TOOLS_ADJUST_TOOL_IS_SLIDER_ADJUSTMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND)) -#define EDITING_TOOLS_ADJUST_TOOL_IS_SLIDER_ADJUSTMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND)) -#define EDITING_TOOLS_ADJUST_TOOL_SLIDER_ADJUSTMENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommandClass)) - -typedef struct _EditingToolsAdjustToolSliderAdjustmentCommand EditingToolsAdjustToolSliderAdjustmentCommand; -typedef struct _EditingToolsAdjustToolSliderAdjustmentCommandClass EditingToolsAdjustToolSliderAdjustmentCommandClass; - -#define EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND (editing_tools_adjust_tool_adjust_enhance_command_get_type ()) -#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_ENHANCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, EditingToolsAdjustToolAdjustEnhanceCommand)) -#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_ENHANCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, EditingToolsAdjustToolAdjustEnhanceCommandClass)) -#define EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_ENHANCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND)) -#define EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_ENHANCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND)) -#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_ENHANCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, EditingToolsAdjustToolAdjustEnhanceCommandClass)) - -typedef struct _EditingToolsAdjustToolAdjustEnhanceCommand EditingToolsAdjustToolAdjustEnhanceCommand; -typedef struct _EditingToolsAdjustToolAdjustEnhanceCommandClass EditingToolsAdjustToolAdjustEnhanceCommandClass; -enum { - EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_WINDOW_0_PROPERTY, - EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_WINDOW_NUM_PROPERTIES -}; -static GParamSpec* editing_tools_adjust_tool_adjust_tool_window_properties[EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_WINDOW_NUM_PROPERTIES]; - -#define TYPE_COMMAND_DESCRIPTION (command_description_get_type ()) -#define COMMAND_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_DESCRIPTION, CommandDescription)) -#define IS_COMMAND_DESCRIPTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_DESCRIPTION)) -#define COMMAND_DESCRIPTION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_COMMAND_DESCRIPTION, CommandDescriptionIface)) - -typedef struct _CommandDescription CommandDescription; -typedef struct _CommandDescriptionIface CommandDescriptionIface; -typedef struct _CommandPrivate CommandPrivate; -typedef struct _EditingToolsAdjustToolAdjustToolCommandPrivate EditingToolsAdjustToolAdjustToolCommandPrivate; -enum { - EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_COMMAND_0_PROPERTY, - EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* editing_tools_adjust_tool_adjust_tool_command_properties[EDITING_TOOLS_ADJUST_TOOL_ADJUST_TOOL_COMMAND_NUM_PROPERTIES]; -typedef struct _EditingToolsAdjustToolAdjustResetCommandPrivate EditingToolsAdjustToolAdjustResetCommandPrivate; -enum { - EDITING_TOOLS_ADJUST_TOOL_ADJUST_RESET_COMMAND_0_PROPERTY, - EDITING_TOOLS_ADJUST_TOOL_ADJUST_RESET_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* editing_tools_adjust_tool_adjust_reset_command_properties[EDITING_TOOLS_ADJUST_TOOL_ADJUST_RESET_COMMAND_NUM_PROPERTIES]; -typedef struct _EditingToolsAdjustToolSliderAdjustmentCommandPrivate EditingToolsAdjustToolSliderAdjustmentCommandPrivate; -enum { - EDITING_TOOLS_ADJUST_TOOL_SLIDER_ADJUSTMENT_COMMAND_0_PROPERTY, - EDITING_TOOLS_ADJUST_TOOL_SLIDER_ADJUSTMENT_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* editing_tools_adjust_tool_slider_adjustment_command_properties[EDITING_TOOLS_ADJUST_TOOL_SLIDER_ADJUSTMENT_COMMAND_NUM_PROPERTIES]; -typedef struct _EditingToolsAdjustToolAdjustEnhanceCommandPrivate EditingToolsAdjustToolAdjustEnhanceCommandPrivate; -enum { - EDITING_TOOLS_ADJUST_TOOL_ADJUST_ENHANCE_COMMAND_0_PROPERTY, - EDITING_TOOLS_ADJUST_TOOL_ADJUST_ENHANCE_COMMAND_NUM_PROPERTIES -}; -static GParamSpec* editing_tools_adjust_tool_adjust_enhance_command_properties[EDITING_TOOLS_ADJUST_TOOL_ADJUST_ENHANCE_COMMAND_NUM_PROPERTIES]; - -#define TYPE_ENHANCE_SINGLE_COMMAND (enhance_single_command_get_type ()) -#define ENHANCE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommand)) -#define ENHANCE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommandClass)) -#define IS_ENHANCE_SINGLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ENHANCE_SINGLE_COMMAND)) -#define IS_ENHANCE_SINGLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ENHANCE_SINGLE_COMMAND)) -#define ENHANCE_SINGLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ENHANCE_SINGLE_COMMAND, EnhanceSingleCommandClass)) - -typedef struct _EnhanceSingleCommand EnhanceSingleCommand; -typedef struct _EnhanceSingleCommandClass EnhanceSingleCommandClass; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _EditingToolsEditingToolWindow { - GtkWindow parent_instance; - EditingToolsEditingToolWindowPrivate * priv; -}; - -struct _EditingToolsEditingToolWindowClass { - GtkWindowClass parent_class; -}; - -struct _EditingToolsEditingToolWindowPrivate { - GtkFrame* layout_frame; - gboolean user_moved; -}; - -struct _EditingToolsPhotoCanvas { - GTypeInstance parent_instance; - volatile int ref_count; - EditingToolsPhotoCanvasPrivate * priv; -}; - -struct _EditingToolsPhotoCanvasClass { - GTypeClass parent_class; - void (*finalize) (EditingToolsPhotoCanvas *self); - void (*repaint) (EditingToolsPhotoCanvas* self); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _EditingToolsPhotoCanvasPrivate { - GtkWindow* container; - GdkWindow* drawing_window; - Photo* photo; - cairo_t* default_ctx; - Dimensions surface_dim; - cairo_surface_t* scaled; - GdkPixbuf* scaled_pixbuf; - GdkRectangle scaled_position; -}; - -typedef enum { - PHOTO_EXCEPTION_NONE = 0, - PHOTO_EXCEPTION_ORIENTATION = 1 << 0, - PHOTO_EXCEPTION_CROP = 1 << 1, - PHOTO_EXCEPTION_REDEYE = 1 << 2, - PHOTO_EXCEPTION_ADJUST = 1 << 3, - PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4, - PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL -} PhotoException; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -struct _Box { - gint left; - gint top; - gint right; - gint bottom; -}; - -struct _EditingToolsParamSpecPhotoCanvas { - GParamSpec parent_instance; -}; - -struct _EditingToolsEditingTool { - GTypeInstance parent_instance; - volatile int ref_count; - EditingToolsEditingToolPrivate * priv; - EditingToolsPhotoCanvas* canvas; - cairo_surface_t* surface; - gchar* name; -}; - -struct _EditingToolsEditingToolClass { - GTypeClass parent_class; - void (*finalize) (EditingToolsEditingTool *self); - void (*activate) (EditingToolsEditingTool* self, EditingToolsPhotoCanvas* canvas); - void (*deactivate) (EditingToolsEditingTool* self); - EditingToolsEditingToolWindow* (*get_tool_window) (EditingToolsEditingTool* self); - GdkPixbuf* (*get_display_pixbuf) (EditingToolsEditingTool* self, Scaling* scaling, Photo* photo, Dimensions* max_dim, GError** error); - void (*on_left_click) (EditingToolsEditingTool* self, gint x, gint y); - void (*on_left_released) (EditingToolsEditingTool* self, gint x, gint y); - void (*on_motion) (EditingToolsEditingTool* self, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (EditingToolsEditingTool* self); - gboolean (*on_keypress) (EditingToolsEditingTool* self, GdkEventKey* event); - void (*paint) (EditingToolsEditingTool* self, cairo_t* ctx); -}; - -struct _EditingToolsEditingToolPrivate { - EditingToolsEditingToolWindow* tool_window; -}; - -typedef EditingToolsEditingTool* (*EditingToolsEditingToolFactory) (); -struct _EditingToolsParamSpecEditingTool { - GParamSpec parent_instance; -}; - -struct _EditingToolsCropTool { - EditingToolsEditingTool parent_instance; - EditingToolsCropToolPrivate * priv; -}; - -struct _EditingToolsCropToolClass { - EditingToolsEditingToolClass parent_class; -}; - -typedef enum { - BOX_LOCATION_OUTSIDE, - BOX_LOCATION_INSIDE, - BOX_LOCATION_TOP_SIDE, - BOX_LOCATION_LEFT_SIDE, - BOX_LOCATION_RIGHT_SIDE, - BOX_LOCATION_BOTTOM_SIDE, - BOX_LOCATION_TOP_LEFT, - BOX_LOCATION_BOTTOM_LEFT, - BOX_LOCATION_TOP_RIGHT, - BOX_LOCATION_BOTTOM_RIGHT -} BoxLocation; - -typedef enum { - EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE, - EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_PORTRAIT -} EditingToolsCropToolReticleOrientation; - -typedef enum { - EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_NORMAL, - EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_CUSTOM -} EditingToolsCropToolConstraintMode; - -struct _EditingToolsCropToolPrivate { - EditingToolsCropToolCropToolWindow* crop_tool_window; - GdkCursorType current_cursor_type; - BoxLocation in_manipulation; - cairo_t* wide_black_ctx; - cairo_t* wide_white_ctx; - cairo_t* thin_white_ctx; - cairo_t* text_ctx; - cairo_surface_t* crop_surface; - Box scaled_crop; - gint last_grab_x; - gint last_grab_y; - EditingToolsCropToolConstraintDescription** constraints; - gint constraints_length1; - gint _constraints_size_; - GtkListStore* constraint_list; - EditingToolsCropToolReticleOrientation reticle_orientation; - EditingToolsCropToolConstraintMode constraint_mode; - gboolean entry_insert_in_progress; - gfloat custom_aspect_ratio; - gint custom_width; - gint custom_height; - gint custom_init_width; - gint custom_init_height; - gfloat pre_aspect_ratio; -}; - -struct _EditingToolsCropToolConstraintDescription { - GTypeInstance parent_instance; - volatile int ref_count; - EditingToolsCropToolConstraintDescriptionPrivate * priv; - gchar* name; - gint basis_width; - gint basis_height; - gboolean is_pivotable; - gfloat aspect_ratio; -}; - -struct _EditingToolsCropToolConstraintDescriptionClass { - GTypeClass parent_class; - void (*finalize) (EditingToolsCropToolConstraintDescription *self); -}; - -struct _EditingToolsCropToolCropToolWindow { - EditingToolsEditingToolWindow parent_instance; - EditingToolsCropToolCropToolWindowPrivate * priv; - GtkButton* ok_button; - GtkButton* cancel_button; - GtkComboBox* constraint_combo; - GtkButton* pivot_reticle_button; - GtkEntry* custom_width_entry; - GtkEntry* custom_height_entry; - GtkLabel* custom_mulsign_label; - GtkEntry* most_recently_edited; - GtkBox* response_layout; - GtkBox* layout; - gint normal_width; - gint normal_height; -}; - -struct _EditingToolsCropToolCropToolWindowClass { - EditingToolsEditingToolWindowClass parent_class; -}; - -typedef enum { - BACKING_FETCH_MODE_SOURCE, - BACKING_FETCH_MODE_BASELINE, - BACKING_FETCH_MODE_MASTER, - BACKING_FETCH_MODE_UNMODIFIED -} BackingFetchMode; - -typedef enum { - BOX_COMPLEMENTS_NONE, - BOX_COMPLEMENTS_VERTICAL, - BOX_COMPLEMENTS_HORIZONTAL, - BOX_COMPLEMENTS_BOTH -} BoxComplements; - -struct _EditingToolsCropToolParamSpecConstraintDescription { - GParamSpec parent_instance; -}; - -struct _EditingToolsRedeyeInstance { - GdkPoint center; - gint radius; -}; - -struct _EditingToolsRedeyeTool { - EditingToolsEditingTool parent_instance; - EditingToolsRedeyeToolPrivate * priv; -}; - -struct _EditingToolsRedeyeToolClass { - EditingToolsEditingToolClass parent_class; -}; - -struct _EditingToolsRedeyeToolPrivate { - cairo_t* thin_white_ctx; - cairo_t* wider_gray_ctx; - EditingToolsRedeyeToolRedeyeToolWindow* redeye_tool_window; - EditingToolsRedeyeInstance user_interaction_instance; - gboolean is_reticle_move_in_progress; - GdkPoint reticle_move_mouse_start_point; - GdkPoint reticle_move_anchor; - GdkCursor* cached_arrow_cursor; - GdkCursor* cached_grab_cursor; - GdkRectangle old_scaled_pixbuf_position; - GdkPixbuf* current_pixbuf; -}; - -struct _EditingToolsRedeyeToolRedeyeToolWindow { - EditingToolsEditingToolWindow parent_instance; - EditingToolsRedeyeToolRedeyeToolWindowPrivate * priv; - GtkButton* apply_button; - GtkButton* close_button; - GtkScale* slider; -}; - -struct _EditingToolsRedeyeToolRedeyeToolWindowClass { - EditingToolsEditingToolWindowClass parent_class; -}; - -struct _EditingToolsRedeyeToolRedeyeToolWindowPrivate { - GtkLabel* slider_label; -}; - -struct _EditingToolsAdjustTool { - EditingToolsEditingTool parent_instance; - EditingToolsAdjustToolPrivate * priv; -}; - -struct _EditingToolsAdjustToolClass { - EditingToolsEditingToolClass parent_class; -}; - -struct _EditingToolsAdjustToolPrivate { - EditingToolsAdjustToolAdjustToolWindow* adjust_tool_window; - gboolean suppress_effect_redraw; - GdkPixbuf* draw_to_pixbuf; - GdkPixbuf* histogram_pixbuf; - GdkPixbuf* virgin_histogram_pixbuf; - PixelTransformer* transformer; - PixelTransformer* histogram_transformer; - PixelTransformationBundle* transformations; - gfloat* fp_pixel_cache; - gint fp_pixel_cache_length1; - gint _fp_pixel_cache_size_; - gboolean disable_histogram_refresh; - OneShotScheduler* temperature_scheduler; - OneShotScheduler* tint_scheduler; - OneShotScheduler* contrast_scheduler; - OneShotScheduler* saturation_scheduler; - OneShotScheduler* exposure_scheduler; - OneShotScheduler* shadows_scheduler; - OneShotScheduler* highlights_scheduler; -}; - -struct _EditingToolsAdjustToolAdjustToolWindow { - EditingToolsEditingToolWindow parent_instance; - EditingToolsAdjustToolAdjustToolWindowPrivate * priv; - GtkScale* exposure_slider; - GtkScale* contrast_slider; - GtkScale* saturation_slider; - GtkScale* tint_slider; - GtkScale* temperature_slider; - GtkScale* shadows_slider; - GtkScale* highlights_slider; - GtkButton* ok_button; - GtkButton* reset_button; - GtkButton* cancel_button; - RGBHistogramManipulator* histogram_manipulator; -}; - -struct _EditingToolsAdjustToolAdjustToolWindowClass { - EditingToolsEditingToolWindowClass parent_class; -}; - -typedef void (*OneShotCallback) (void* user_data); -struct _CommandDescriptionIface { - GTypeInterface parent_iface; - gchar* (*get_name) (CommandDescription* self); - gchar* (*get_explanation) (CommandDescription* self); -}; - -struct _Command { - GObject parent_instance; - CommandPrivate * priv; -}; - -struct _CommandClass { - GObjectClass parent_class; - void (*prepare) (Command* self); - void (*execute) (Command* self); - void (*undo) (Command* self); - void (*redo) (Command* self); - gboolean (*compress) (Command* self, Command* command); - gchar* (*get_name) (Command* self); - gchar* (*get_explanation) (Command* self); -}; - -struct _EditingToolsAdjustToolAdjustToolCommand { - Command parent_instance; - EditingToolsAdjustToolAdjustToolCommandPrivate * priv; - EditingToolsAdjustTool* owner; -}; - -struct _EditingToolsAdjustToolAdjustToolCommandClass { - CommandClass parent_class; -}; - -struct _EditingToolsAdjustToolAdjustResetCommand { - EditingToolsAdjustToolAdjustToolCommand parent_instance; - EditingToolsAdjustToolAdjustResetCommandPrivate * priv; -}; - -struct _EditingToolsAdjustToolAdjustResetCommandClass { - EditingToolsAdjustToolAdjustToolCommandClass parent_class; -}; - -struct _EditingToolsAdjustToolAdjustResetCommandPrivate { - PixelTransformationBundle* original; - PixelTransformationBundle* reset; -}; - -struct _EditingToolsAdjustToolSliderAdjustmentCommand { - EditingToolsAdjustToolAdjustToolCommand parent_instance; - EditingToolsAdjustToolSliderAdjustmentCommandPrivate * priv; -}; - -struct _EditingToolsAdjustToolSliderAdjustmentCommandClass { - EditingToolsAdjustToolAdjustToolCommandClass parent_class; -}; - -struct _EditingToolsAdjustToolSliderAdjustmentCommandPrivate { - PixelTransformationType transformation_type; - PixelTransformation* new_transformation; - PixelTransformation* old_transformation; -}; - -struct _EditingToolsAdjustToolAdjustEnhanceCommand { - EditingToolsAdjustToolAdjustToolCommand parent_instance; - EditingToolsAdjustToolAdjustEnhanceCommandPrivate * priv; -}; - -struct _EditingToolsAdjustToolAdjustEnhanceCommandClass { - EditingToolsAdjustToolAdjustToolCommandClass parent_class; -}; - -struct _EditingToolsAdjustToolAdjustEnhanceCommandPrivate { - Photo* photo; - PixelTransformationBundle* original; - PixelTransformationBundle* enhanced; -}; - - -static gpointer editing_tools_editing_tool_window_parent_class = NULL; -static gpointer editing_tools_photo_canvas_parent_class = NULL; -static gpointer editing_tools_editing_tool_parent_class = NULL; -static gpointer editing_tools_crop_tool_parent_class = NULL; -static gpointer editing_tools_crop_tool_constraint_description_parent_class = NULL; -static gpointer editing_tools_crop_tool_crop_tool_window_parent_class = NULL; -static gpointer editing_tools_redeye_tool_parent_class = NULL; -static gpointer editing_tools_redeye_tool_redeye_tool_window_parent_class = NULL; -static gpointer editing_tools_adjust_tool_parent_class = NULL; -static gpointer editing_tools_adjust_tool_adjust_tool_window_parent_class = NULL; -static gpointer editing_tools_adjust_tool_adjust_tool_command_parent_class = NULL; -static gpointer editing_tools_adjust_tool_adjust_reset_command_parent_class = NULL; -static gpointer editing_tools_adjust_tool_slider_adjustment_command_parent_class = NULL; -static gpointer editing_tools_adjust_tool_adjust_enhance_command_parent_class = NULL; - -void editing_tools_preconfigure (void); -void editing_tools_init (GError** error); -void editing_tools_terminate (void); -GType editing_tools_editing_tool_window_get_type (void) G_GNUC_CONST; -#define EDITING_TOOLS_EDITING_TOOL_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindowPrivate)) -#define EDITING_TOOLS_EDITING_TOOL_WINDOW_FRAME_BORDER 6 -EditingToolsEditingToolWindow* editing_tools_editing_tool_window_construct (GType object_type, - GtkWindow* container); -static void editing_tools_editing_tool_window_suppress_warnings (EditingToolsEditingToolWindow* self, - const gchar* log_domain, - GLogLevelFlags log_levels, - const gchar* message); -static void _editing_tools_editing_tool_window_suppress_warnings_glog_func (const gchar* log_domain, - GLogLevelFlags log_levels, - const gchar* message, - gpointer self); -static void editing_tools_editing_tool_window_real_add (GtkContainer* base, - GtkWidget* widget); -gboolean editing_tools_editing_tool_window_has_user_moved (EditingToolsEditingToolWindow* self); -static gboolean editing_tools_editing_tool_window_real_key_press_event (GtkWidget* base, - GdkEventKey* event); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -static gboolean editing_tools_editing_tool_window_real_button_press_event (GtkWidget* base, - GdkEventButton* event); -static void editing_tools_editing_tool_window_real_realize (GtkWidget* base); -#define RESOURCES_TRANSIENT_WINDOW_OPACITY 0.90 -static void editing_tools_editing_tool_window_finalize (GObject * obj); -gpointer editing_tools_photo_canvas_ref (gpointer instance); -void editing_tools_photo_canvas_unref (gpointer instance); -GParamSpec* editing_tools_param_spec_photo_canvas (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void editing_tools_value_set_photo_canvas (GValue* value, - gpointer v_object); -void editing_tools_value_take_photo_canvas (GValue* value, - gpointer v_object); -gpointer editing_tools_value_get_photo_canvas (const GValue* value); -GType editing_tools_photo_canvas_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -#define EDITING_TOOLS_PHOTO_CANVAS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvasPrivate)) -EditingToolsPhotoCanvas* editing_tools_photo_canvas_construct (GType object_type, - GtkWindow* container, - GdkWindow* drawing_window, - Photo* photo, - cairo_t* default_ctx, - Dimensions* surface_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position); -static cairo_surface_t* editing_tools_photo_canvas_pixbuf_to_surface (EditingToolsPhotoCanvas* self, - cairo_t* default_ctx, - GdkPixbuf* pixbuf, - GdkRectangle* pos); -void editing_tools_photo_canvas_unscaled_to_raw_rect (EditingToolsPhotoCanvas* self, - GdkRectangle* rectangle, - GdkRectangle* result); -void photo_unscaled_to_raw_rect (Photo* self, - GdkRectangle* unscaled_rect, - GdkRectangle* result); -void editing_tools_photo_canvas_active_to_unscaled_point (EditingToolsPhotoCanvas* self, - GdkPoint* active_point, - GdkPoint* result); -void editing_tools_photo_canvas_get_scaled_pixbuf_position (EditingToolsPhotoCanvas* self, - GdkRectangle* result); -GType photo_exception_get_type (void) G_GNUC_CONST; -void media_source_get_dimensions (MediaSource* self, - PhotoException disallowed_steps, - Dimensions* result); -void editing_tools_photo_canvas_active_to_unscaled_rect (EditingToolsPhotoCanvas* self, - GdkRectangle* active_rect, - GdkRectangle* result); -void editing_tools_photo_canvas_user_to_active_point (EditingToolsPhotoCanvas* self, - GdkPoint* user_point, - GdkPoint* result); -void editing_tools_photo_canvas_user_to_active_rect (EditingToolsPhotoCanvas* self, - GdkRectangle* user_rect, - GdkRectangle* result); -Photo* editing_tools_photo_canvas_get_photo (EditingToolsPhotoCanvas* self); -GtkWindow* editing_tools_photo_canvas_get_container (EditingToolsPhotoCanvas* self); -GdkWindow* editing_tools_photo_canvas_get_drawing_window (EditingToolsPhotoCanvas* self); -cairo_t* editing_tools_photo_canvas_get_default_ctx (EditingToolsPhotoCanvas* self); -void editing_tools_photo_canvas_get_surface_dim (EditingToolsPhotoCanvas* self, - Dimensions* result); -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -void editing_tools_photo_canvas_get_scaling (EditingToolsPhotoCanvas* self, - Scaling* result); -void scaling_for_viewport (Dimensions* viewport, - gboolean scale_up, - Scaling* result); -void editing_tools_photo_canvas_set_surface (EditingToolsPhotoCanvas* self, - cairo_t* default_ctx, - Dimensions* surface_dim); -cairo_surface_t* editing_tools_photo_canvas_get_scaled_surface (EditingToolsPhotoCanvas* self); -GdkPixbuf* editing_tools_photo_canvas_get_scaled_pixbuf (EditingToolsPhotoCanvas* self); -void editing_tools_photo_canvas_resized_pixbuf (EditingToolsPhotoCanvas* self, - Dimensions* old_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position); -void editing_tools_photo_canvas_repaint (EditingToolsPhotoCanvas* self); -static void editing_tools_photo_canvas_real_repaint (EditingToolsPhotoCanvas* self); -void editing_tools_photo_canvas_paint_pixbuf (EditingToolsPhotoCanvas* self, - GdkPixbuf* pixbuf); -void set_source_color_from_string (cairo_t* ctx, - const gchar* spec); -void paint_pixmap_with_background (cairo_t* ctx, - GdkPixbuf* pixbuf, - gint x, - gint y); -void editing_tools_photo_canvas_paint_surface (EditingToolsPhotoCanvas* self, - cairo_surface_t* surface, - gboolean over); -GType box_get_type (void) G_GNUC_CONST; -Box* box_dup (const Box* self); -void box_free (Box* self); -void editing_tools_photo_canvas_paint_surface_area (EditingToolsPhotoCanvas* self, - cairo_surface_t* surface, - Box* source_area, - gboolean over); -gint box_get_width (Box *self); -gint box_get_height (Box *self); -void editing_tools_photo_canvas_draw_box (EditingToolsPhotoCanvas* self, - cairo_t* ctx, - Box* box); -void box_get_rectangle (Box *self, - GdkRectangle* result); -void editing_tools_photo_canvas_draw_text (EditingToolsPhotoCanvas* self, - cairo_t* ctx, - const gchar* text, - gint x, - gint y, - gboolean use_scaled_pos); -#define RESOURCES_ONIMAGE_FONT_BACKGROUND "rgba(255,255,255,0.5)" -#define RESOURCES_ONIMAGE_FONT_COLOR "#000000" -void editing_tools_photo_canvas_draw_horizontal_line (EditingToolsPhotoCanvas* self, - cairo_t* ctx, - gint x, - gint y, - gint width, - gboolean use_scaled_pos); -void editing_tools_photo_canvas_draw_vertical_line (EditingToolsPhotoCanvas* self, - cairo_t* ctx, - gint x, - gint y, - gint height, - gboolean use_scaled_pos); -void editing_tools_photo_canvas_erase_horizontal_line (EditingToolsPhotoCanvas* self, - gint x, - gint y, - gint width); -void editing_tools_photo_canvas_draw_circle (EditingToolsPhotoCanvas* self, - cairo_t* ctx, - gint active_center_x, - gint active_center_y, - gint radius); -void editing_tools_photo_canvas_erase_vertical_line (EditingToolsPhotoCanvas* self, - gint x, - gint y, - gint height); -void editing_tools_photo_canvas_erase_box (EditingToolsPhotoCanvas* self, - Box* box); -void editing_tools_photo_canvas_invalidate_area (EditingToolsPhotoCanvas* self, - Box* area); -static void g_cclosure_user_marshal_VOID__POINTER_BOXED (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void g_cclosure_user_marshal_VOID__BOXED_OBJECT_BOXED (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void editing_tools_photo_canvas_finalize (EditingToolsPhotoCanvas * obj); -gpointer editing_tools_editing_tool_ref (gpointer instance); -void editing_tools_editing_tool_unref (gpointer instance); -GParamSpec* editing_tools_param_spec_editing_tool (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void editing_tools_value_set_editing_tool (GValue* value, - gpointer v_object); -void editing_tools_value_take_editing_tool (GValue* value, - gpointer v_object); -gpointer editing_tools_value_get_editing_tool (const GValue* value); -GType editing_tools_editing_tool_get_type (void) G_GNUC_CONST; -#define EDITING_TOOLS_EDITING_TOOL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingToolPrivate)) -EditingToolsEditingTool* editing_tools_editing_tool_construct (GType object_type, - const gchar* name); -void editing_tools_editing_tool_activate (EditingToolsEditingTool* self, - EditingToolsPhotoCanvas* canvas); -static void editing_tools_editing_tool_real_activate (EditingToolsEditingTool* self, - EditingToolsPhotoCanvas* canvas); -EditingToolsEditingToolWindow* editing_tools_editing_tool_get_tool_window (EditingToolsEditingTool* self); -gboolean editing_tools_editing_tool_on_keypress (EditingToolsEditingTool* self, - GdkEventKey* event); -static gboolean _editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event (GtkWidget* _sender, - GdkEventKey* event, - gpointer self); -void editing_tools_editing_tool_deactivate (EditingToolsEditingTool* self); -static void editing_tools_editing_tool_real_deactivate (EditingToolsEditingTool* self); -gboolean editing_tools_editing_tool_is_activated (EditingToolsEditingTool* self); -static EditingToolsEditingToolWindow* editing_tools_editing_tool_real_get_tool_window (EditingToolsEditingTool* self); -GdkPixbuf* editing_tools_editing_tool_get_display_pixbuf (EditingToolsEditingTool* self, - Scaling* scaling, - Photo* photo, - Dimensions* max_dim, - GError** error); -static GdkPixbuf* editing_tools_editing_tool_real_get_display_pixbuf (EditingToolsEditingTool* self, - Scaling* scaling, - Photo* photo, - Dimensions* max_dim, - GError** error); -void dimensions_init (Dimensions *self, - gint width, - gint height); -void editing_tools_editing_tool_on_left_click (EditingToolsEditingTool* self, - gint x, - gint y); -static void editing_tools_editing_tool_real_on_left_click (EditingToolsEditingTool* self, - gint x, - gint y); -void editing_tools_editing_tool_on_left_released (EditingToolsEditingTool* self, - gint x, - gint y); -static void editing_tools_editing_tool_real_on_left_released (EditingToolsEditingTool* self, - gint x, - gint y); -void editing_tools_editing_tool_on_motion (EditingToolsEditingTool* self, - gint x, - gint y, - GdkModifierType mask); -static void editing_tools_editing_tool_real_on_motion (EditingToolsEditingTool* self, - gint x, - gint y, - GdkModifierType mask); -gboolean editing_tools_editing_tool_on_leave_notify_event (EditingToolsEditingTool* self); -static gboolean editing_tools_editing_tool_real_on_leave_notify_event (EditingToolsEditingTool* self); -static gboolean editing_tools_editing_tool_real_on_keypress (EditingToolsEditingTool* self, - GdkEventKey* event); -void editing_tools_editing_tool_notify_cancel (EditingToolsEditingTool* self); -void editing_tools_editing_tool_paint (EditingToolsEditingTool* self, - cairo_t* ctx); -static void editing_tools_editing_tool_real_paint (EditingToolsEditingTool* self, - cairo_t* ctx); -GType command_get_type (void) G_GNUC_CONST; -static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOXED_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void editing_tools_editing_tool_finalize (EditingToolsEditingTool * obj); -GType editing_tools_crop_tool_get_type (void) G_GNUC_CONST; -static GType editing_tools_crop_tool_crop_tool_window_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -GType box_location_get_type (void) G_GNUC_CONST; -static gpointer editing_tools_crop_tool_constraint_description_ref (gpointer instance); -static void editing_tools_crop_tool_constraint_description_unref (gpointer instance); -static GParamSpec* editing_tools_crop_tool_param_spec_constraint_description (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void editing_tools_crop_tool_value_set_constraint_description (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void editing_tools_crop_tool_value_take_constraint_description (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer editing_tools_crop_tool_value_get_constraint_description (const GValue* value) G_GNUC_UNUSED; -static GType editing_tools_crop_tool_constraint_description_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static GType editing_tools_crop_tool_reticle_orientation_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static GType editing_tools_crop_tool_constraint_mode_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define EDITING_TOOLS_CROP_TOOL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropToolPrivate)) -static EditingToolsCropToolReticleOrientation editing_tools_crop_tool_reticle_orientation_toggle (EditingToolsCropToolReticleOrientation self); -static EditingToolsCropToolConstraintDescription** editing_tools_crop_tool_create_constraints (int* result_length1); -static GtkListStore* editing_tools_crop_tool_create_constraint_list (EditingToolsCropToolConstraintDescription** constraint_data, - int constraint_data_length1); -#define EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO (-1.0f) -#define EDITING_TOOLS_CROP_TOOL_CROP_INIT_X_PCT 0.15 -#define EDITING_TOOLS_CROP_TOOL_CROP_INIT_Y_PCT 0.15 -#define EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE 8 -#define EDITING_TOOLS_CROP_TOOL_CROP_EXTERIOR_SATURATION 0.00f -#define EDITING_TOOLS_CROP_TOOL_CROP_EXTERIOR_RED_SHIFT -32 -#define EDITING_TOOLS_CROP_TOOL_CROP_EXTERIOR_GREEN_SHIFT -32 -#define EDITING_TOOLS_CROP_TOOL_CROP_EXTERIOR_BLUE_SHIFT -32 -#define EDITING_TOOLS_CROP_TOOL_CROP_EXTERIOR_ALPHA_SHIFT 0 -#define EDITING_TOOLS_CROP_TOOL_SCREEN_ASPECT_RATIO (-2.0f) -#define EDITING_TOOLS_CROP_TOOL_ORIGINAL_ASPECT_RATIO (-3.0f) -#define EDITING_TOOLS_CROP_TOOL_CUSTOM_ASPECT_RATIO (-4.0f) -#define EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS (-5.0f) -#define EDITING_TOOLS_CROP_TOOL_SEPARATOR (-6.0f) -#define EDITING_TOOLS_CROP_TOOL_MIN_ASPECT_RATIO (1.0f / 64.0f) -#define EDITING_TOOLS_CROP_TOOL_MAX_ASPECT_RATIO 64.0f -static EditingToolsCropTool* editing_tools_crop_tool_new (void); -static EditingToolsCropTool* editing_tools_crop_tool_construct (GType object_type); -EditingToolsCropTool* editing_tools_crop_tool_factory (void); -gboolean editing_tools_crop_tool_is_available (Photo* photo, - Scaling* scaling); -void scaling_get_scaled_dimensions (Scaling *self, - Dimensions* original, - Dimensions* result); -void photo_get_original_dimensions (Photo* self, - Dimensions* result); -static EditingToolsCropToolConstraintDescription* editing_tools_crop_tool_constraint_description_new (const gchar* new_name, - gint new_basis_width, - gint new_basis_height, - gboolean new_pivotable, - gfloat new_aspect_ratio); -static EditingToolsCropToolConstraintDescription* editing_tools_crop_tool_constraint_description_construct (GType object_type, - const gchar* new_name, - gint new_basis_width, - gint new_basis_height, - gboolean new_pivotable, - gfloat new_aspect_ratio); -static void _vala_array_add7 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add8 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add9 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add10 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add11 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add12 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add13 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add14 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add15 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add16 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add17 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add18 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add19 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add20 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add21 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add22 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add23 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add24 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add25 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add26 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add27 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add28 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add29 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add30 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add31 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add32 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add33 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add34 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void _vala_array_add35 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value); -static void editing_tools_crop_tool_update_pivot_button_state (EditingToolsCropTool* self); -static EditingToolsCropToolConstraintDescription* editing_tools_crop_tool_get_selected_constraint (EditingToolsCropTool* self); -static gboolean editing_tools_crop_tool_on_width_entry_focus_out (EditingToolsCropTool* self, - GdkEventFocus* event); -static gboolean editing_tools_crop_tool_on_custom_entry_focus_out (EditingToolsCropTool* self, - GdkEventFocus* event); -static gboolean editing_tools_crop_tool_on_height_entry_focus_out (EditingToolsCropTool* self, - GdkEventFocus* event); -static void editing_tools_crop_tool_constrain_crop (EditingToolsCropTool* self, - Box* crop, - Box* result); -static void editing_tools_crop_tool_crop_resized (EditingToolsCropTool* self, - Box* new_crop); -static void editing_tools_crop_tool_on_width_insert_text (EditingToolsCropTool* self, - const gchar* text, - gint length, - gint* position); -static void editing_tools_crop_tool_on_entry_insert_text (EditingToolsCropTool* self, - GtkEntry* sender, - const gchar* text, - gint length, - gint* position); -static void editing_tools_crop_tool_on_height_insert_text (EditingToolsCropTool* self, - const gchar* text, - gint length, - gint* position); -static gfloat editing_tools_crop_tool_get_constraint_aspect_ratio (EditingToolsCropTool* self); -static gfloat editing_tools_crop_tool_get_constraint_aspect_ratio_for_constraint (EditingToolsCropTool* self, - EditingToolsCropToolConstraintDescription* constraint, - Photo* photo); -static void editing_tools_crop_tool_constraint_changed (EditingToolsCropTool* self); -static void editing_tools_crop_tool_set_custom_constraint_mode (EditingToolsCropTool* self); -static void editing_tools_crop_tool_set_normal_constraint_mode (EditingToolsCropTool* self); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gint configuration_facade_get_last_crop_width (ConfigurationFacade* self); -gint configuration_facade_get_last_crop_height (ConfigurationFacade* self); -void box_adjust_height (Box *self, - gint height); -void box_adjust_width (Box *self, - gint width); -static void editing_tools_crop_tool_get_photo_dimensions (EditingToolsCropTool* self, - Dimensions* result); -gboolean photo_get_straighten (Photo* self, - gdouble* theta); -void clamp_inside_rotated_image (Box* src, - gint img_w, - gint img_h, - gdouble angle_deg, - gboolean preserve_geom, - Box* result); -static EditingToolsCropToolConstraintDescription* editing_tools_crop_tool_get_last_constraint (EditingToolsCropTool* self, - gint* index); -gint configuration_facade_get_last_crop_menu_choice (ConfigurationFacade* self); -static void editing_tools_crop_tool_real_activate (EditingToolsEditingTool* base, - EditingToolsPhotoCanvas* canvas); -static void editing_tools_crop_tool_bind_canvas_handlers (EditingToolsCropTool* self, - EditingToolsPhotoCanvas* canvas); -static void editing_tools_crop_tool_prepare_ctx (EditingToolsCropTool* self, - cairo_t* ctx, - Dimensions* dim); -static EditingToolsCropToolCropToolWindow* editing_tools_crop_tool_crop_tool_window_new (GtkWindow* container); -static EditingToolsCropToolCropToolWindow* editing_tools_crop_tool_crop_tool_window_construct (GType object_type, - GtkWindow* container); -gboolean photo_has_crop (Photo* self); -static gboolean editing_tools_crop_tool_constraint_description_is_separator (EditingToolsCropToolConstraintDescription* self); -static void editing_tools_crop_tool_bind_window_handlers (EditingToolsCropTool* self); -gboolean photo_get_crop (Photo* self, - Box* crop, - PhotoException exceptions); -void box_init (Box *self, - gint left, - gint top, - gint right, - gint bottom); -void box_get_scaled_similar (Box *self, - Dimensions* original, - Dimensions* scaled, - Box* result); -void dimensions_for_rectangle (GdkRectangle* rect, - Dimensions* result); -static void _editing_tools_crop_tool_prepare_ctx_editing_tools_photo_canvas_new_surface (EditingToolsPhotoCanvas* _sender, - cairo_t* ctx, - Dimensions* dim, - gpointer self); -static void editing_tools_crop_tool_on_resized_pixbuf (EditingToolsCropTool* self, - Dimensions* old_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position); -static void _editing_tools_crop_tool_on_resized_pixbuf_editing_tools_photo_canvas_resized_scaled_pixbuf (EditingToolsPhotoCanvas* _sender, - Dimensions* old_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position, - gpointer self); -static void editing_tools_crop_tool_unbind_canvas_handlers (EditingToolsCropTool* self, - EditingToolsPhotoCanvas* canvas); -static void editing_tools_crop_tool_on_crop_ok (EditingToolsCropTool* self); -static void _editing_tools_crop_tool_on_crop_ok_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void _editing_tools_editing_tool_notify_cancel_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void _editing_tools_crop_tool_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void editing_tools_crop_tool_on_pivot_button_clicked (EditingToolsCropTool* self); -static void _editing_tools_crop_tool_on_pivot_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static gboolean _editing_tools_crop_tool_on_width_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender, - GdkEventFocus* event, - gpointer self); -static gboolean _editing_tools_crop_tool_on_height_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender, - GdkEventFocus* event, - gpointer self); -static void _editing_tools_crop_tool_on_width_insert_text_gtk_editable_insert_text (GtkEditable* _sender, - const gchar* new_text, - gint new_text_length, - gint* position, - gpointer self); -static void _editing_tools_crop_tool_on_height_insert_text_gtk_editable_insert_text (GtkEditable* _sender, - const gchar* new_text, - gint new_text_length, - gint* position, - gpointer self); -static void editing_tools_crop_tool_unbind_window_handlers (EditingToolsCropTool* self); -static gboolean editing_tools_crop_tool_real_on_keypress (EditingToolsEditingTool* base, - GdkEventKey* event); -static void editing_tools_crop_tool_real_deactivate (EditingToolsEditingTool* base); -static EditingToolsEditingToolWindow* editing_tools_crop_tool_real_get_tool_window (EditingToolsEditingTool* base); -static GdkPixbuf* editing_tools_crop_tool_real_get_display_pixbuf (EditingToolsEditingTool* base, - Scaling* scaling, - Photo* photo, - Dimensions* max_dim, - GError** error); -GType backing_fetch_mode_get_type (void) G_GNUC_CONST; -GdkPixbuf* photo_get_pixbuf_with_options (Photo* self, - Scaling* scaling, - PhotoException exceptions, - BackingFetchMode fetch_mode, - GError** error); -void dimensions_for_pixbuf (GdkPixbuf* pixbuf, - Dimensions* result); -static void editing_tools_crop_tool_real_on_left_click (EditingToolsEditingTool* base, - gint x, - gint y); -void box_get_offset (Box *self, - gint xofs, - gint yofs, - Box* result); -BoxLocation box_approx_location (Box *self, - gint x, - gint y); -static void editing_tools_crop_tool_real_on_left_released (EditingToolsEditingTool* base, - gint x, - gint y); -static void editing_tools_crop_tool_update_cursor (EditingToolsCropTool* self, - gint x, - gint y); -static void editing_tools_crop_tool_real_on_motion (EditingToolsEditingTool* base, - gint x, - gint y, - GdkModifierType mask); -static gboolean editing_tools_crop_tool_on_canvas_manipulation (EditingToolsCropTool* self, - gint x, - gint y); -static void editing_tools_crop_tool_real_paint (EditingToolsEditingTool* base, - cairo_t* default_ctx); -static void editing_tools_crop_tool_paint_crop_tool (EditingToolsCropTool* self, - Box* crop); -void configuration_facade_set_last_crop_menu_choice (ConfigurationFacade* self, - gint choice); -void configuration_facade_set_last_crop_width (ConfigurationFacade* self, - gint choice); -void configuration_facade_set_last_crop_height (ConfigurationFacade* self, - gint choice); -#define RESOURCES_CROP_LABEL _ ("Crop") -#define RESOURCES_CROP_TOOLTIP _ ("Crop the photo’s size") -CropCommand* crop_command_new (Photo* photo, - Box* crop, - const gchar* name, - const gchar* explanation); -CropCommand* crop_command_construct (GType object_type, - Photo* photo, - Box* crop, - const gchar* name, - const gchar* explanation); -GType page_command_get_type (void) G_GNUC_CONST; -GType single_data_source_command_get_type (void) G_GNUC_CONST; -GType generic_photo_transformation_command_get_type (void) G_GNUC_CONST; -GType crop_command_get_type (void) G_GNUC_CONST; -void box_get_dimensions (Box *self, - Dimensions* result); -static gint editing_tools_crop_tool_eval_radial_line (EditingToolsCropTool* self, - gdouble center_x, - gdouble center_y, - gdouble bounds_x, - gdouble bounds_y, - gdouble user_x); -static gboolean _box_equal (const Box * s1, - const Box * s2); -static void editing_tools_crop_tool_crop_moved (EditingToolsCropTool* self, - Box* new_crop); -gboolean box_equals (Box *self, - Box* box); -GType box_complements_get_type (void) G_GNUC_CONST; -BoxComplements box_resized_complements (Box *self, - Box* resized, - Box* horizontal, - gboolean* horizontal_enlarged, - Box* vertical, - gboolean* vertical_enlarged); -static void editing_tools_crop_tool_set_area_alpha (EditingToolsCropTool* self, - Box* area, - gdouble alpha); -void box_get_reduced (Box *self, - gint amount, - Box* result); -static void editing_tools_crop_tool_constraint_description_finalize (EditingToolsCropToolConstraintDescription * obj); -#define RESOURCES_CANCEL_LABEL _ ("_Cancel") -#define EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW_CONTROL_SPACING 8 -static gboolean editing_tools_crop_tool_crop_tool_window_constraint_combo_separator_func (GtkTreeModel* model, - GtkTreeIter* iter); -static gboolean _editing_tools_crop_tool_crop_tool_window_constraint_combo_separator_func_gtk_tree_view_row_separator_func (GtkTreeModel* model, - GtkTreeIter* iter, - gpointer self); -static void editing_tools_crop_tool_crop_tool_window_finalize (GObject * obj); -static void editing_tools_crop_tool_finalize (EditingToolsEditingTool * obj); -GType editing_tools_redeye_instance_get_type (void) G_GNUC_CONST; -EditingToolsRedeyeInstance* editing_tools_redeye_instance_dup (const EditingToolsRedeyeInstance* self); -void editing_tools_redeye_instance_free (EditingToolsRedeyeInstance* self); -#define EDITING_TOOLS_REDEYE_INSTANCE_MIN_RADIUS 4 -#define EDITING_TOOLS_REDEYE_INSTANCE_MAX_RADIUS 32 -#define EDITING_TOOLS_REDEYE_INSTANCE_DEFAULT_RADIUS 10 -static void editing_tools_redeye_instance_init (EditingToolsRedeyeInstance *self); -void editing_tools_redeye_instance_to_bounds_rect (EditingToolsRedeyeInstance* inst, - GdkRectangle* result); -void editing_tools_redeye_instance_from_bounds_rect (GdkRectangle* rect, - EditingToolsRedeyeInstance* result); -GType editing_tools_redeye_tool_get_type (void) G_GNUC_CONST; -static GType editing_tools_redeye_tool_redeye_tool_window_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define EDITING_TOOLS_REDEYE_TOOL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeToolPrivate)) -static EditingToolsRedeyeTool* editing_tools_redeye_tool_new (void); -static EditingToolsRedeyeTool* editing_tools_redeye_tool_construct (GType object_type); -EditingToolsRedeyeTool* editing_tools_redeye_tool_factory (void); -gboolean editing_tools_redeye_tool_is_available (Photo* photo, - Scaling* scaling); -static void editing_tools_redeye_tool_new_interaction_instance (EditingToolsRedeyeTool* self, - EditingToolsPhotoCanvas* canvas, - EditingToolsRedeyeInstance* result); -static void editing_tools_redeye_tool_prepare_ctx (EditingToolsRedeyeTool* self, - cairo_t* ctx, - Dimensions* dim); -static void editing_tools_redeye_tool_draw_redeye_instance (EditingToolsRedeyeTool* self, - EditingToolsRedeyeInstance* inst); -static gboolean editing_tools_redeye_tool_on_size_slider_adjust (EditingToolsRedeyeTool* self, - GtkScrollType type); -static void editing_tools_redeye_tool_on_apply (EditingToolsRedeyeTool* self); -void derotate_point_arb (GdkPoint* source_point, - gint img_w, - gint img_h, - gdouble angle, - GdkPoint* result); -GType redeye_command_get_type (void) G_GNUC_CONST; -#define RESOURCES_RED_EYE_LABEL _ ("Red-eye") -#define RESOURCES_RED_EYE_TOOLTIP _ ("Reduce or eliminate any red-eye effects in the photo") -RedeyeCommand* redeye_command_new (Photo* photo, - EditingToolsRedeyeInstance* redeye_instance, - const gchar* name, - const gchar* explanation); -RedeyeCommand* redeye_command_construct (GType object_type, - Photo* photo, - EditingToolsRedeyeInstance* redeye_instance, - const gchar* name, - const gchar* explanation); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* app_window_get_command_manager (void); -void command_manager_execute (CommandManager* self, - Command* command); -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -static void editing_tools_redeye_tool_on_photos_altered (EditingToolsRedeyeTool* self, - GeeMap* map); -GdkPixbuf* photo_source_get_pixbuf (PhotoSource* self, - Scaling* scaling, - GError** error); -static void editing_tools_redeye_tool_on_close (EditingToolsRedeyeTool* self); -static void editing_tools_redeye_tool_on_canvas_resize (EditingToolsRedeyeTool* self); -static void editing_tools_redeye_tool_real_activate (EditingToolsEditingTool* base, - EditingToolsPhotoCanvas* canvas); -static void editing_tools_redeye_tool_bind_canvas_handlers (EditingToolsRedeyeTool* self, - EditingToolsPhotoCanvas* canvas); -static EditingToolsRedeyeToolRedeyeToolWindow* editing_tools_redeye_tool_redeye_tool_window_new (GtkWindow* container); -static EditingToolsRedeyeToolRedeyeToolWindow* editing_tools_redeye_tool_redeye_tool_window_construct (GType object_type, - GtkWindow* container); -static void editing_tools_redeye_tool_bind_window_handlers (EditingToolsRedeyeTool* self); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -DataCollection* data_object_get_membership (DataObject* self); -static void _editing_tools_redeye_tool_on_photos_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -static void editing_tools_redeye_tool_real_deactivate (EditingToolsEditingTool* base); -static void editing_tools_redeye_tool_unbind_canvas_handlers (EditingToolsRedeyeTool* self, - EditingToolsPhotoCanvas* canvas); -static void editing_tools_redeye_tool_unbind_window_handlers (EditingToolsRedeyeTool* self); -static void _editing_tools_redeye_tool_prepare_ctx_editing_tools_photo_canvas_new_surface (EditingToolsPhotoCanvas* _sender, - cairo_t* ctx, - Dimensions* dim, - gpointer self); -static void _editing_tools_redeye_tool_on_canvas_resize_editing_tools_photo_canvas_resized_scaled_pixbuf (EditingToolsPhotoCanvas* _sender, - Dimensions* old_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position, - gpointer self); -static void _editing_tools_redeye_tool_on_apply_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void _editing_tools_redeye_tool_on_close_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static gboolean _editing_tools_redeye_tool_on_size_slider_adjust_gtk_range_change_value (GtkRange* _sender, - GtkScrollType scroll, - gdouble new_value, - gpointer self); -static EditingToolsEditingToolWindow* editing_tools_redeye_tool_real_get_tool_window (EditingToolsEditingTool* base); -static void editing_tools_redeye_tool_real_paint (EditingToolsEditingTool* base, - cairo_t* ctx); -static void editing_tools_redeye_tool_real_on_left_click (EditingToolsEditingTool* base, - gint x, - gint y); -gboolean coord_in_rectangle (gint x, - gint y, - GdkRectangle* rect); -static void editing_tools_redeye_tool_real_on_left_released (EditingToolsEditingTool* base, - gint x, - gint y); -static void editing_tools_redeye_tool_real_on_motion (EditingToolsEditingTool* base, - gint x, - gint y, - GdkModifierType mask); -static gboolean editing_tools_redeye_tool_real_on_keypress (EditingToolsEditingTool* base, - GdkEventKey* event); -#define EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW, EditingToolsRedeyeToolRedeyeToolWindowPrivate)) -#define RESOURCES_APPLY_LABEL _ ("_Apply") -#define EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_CONTROL_SPACING 8 -static void editing_tools_redeye_tool_redeye_tool_window_finalize (GObject * obj); -static void editing_tools_redeye_tool_finalize (EditingToolsEditingTool * obj); -GType editing_tools_adjust_tool_get_type (void) G_GNUC_CONST; -static GType editing_tools_adjust_tool_adjust_tool_window_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -gpointer one_shot_scheduler_ref (gpointer instance); -void one_shot_scheduler_unref (gpointer instance); -GParamSpec* param_spec_one_shot_scheduler (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_one_shot_scheduler (GValue* value, - gpointer v_object); -void value_take_one_shot_scheduler (GValue* value, - gpointer v_object); -gpointer value_get_one_shot_scheduler (const GValue* value); -GType one_shot_scheduler_get_type (void) G_GNUC_CONST; -#define EDITING_TOOLS_ADJUST_TOOL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustToolPrivate)) -#define EDITING_TOOLS_ADJUST_TOOL_SLIDER_WIDTH 200 -#define EDITING_TOOLS_ADJUST_TOOL_SLIDER_DELAY_MSEC ((guint) 100) -static EditingToolsAdjustTool* editing_tools_adjust_tool_new (void); -static EditingToolsAdjustTool* editing_tools_adjust_tool_construct (GType object_type); -EditingToolsAdjustTool* editing_tools_adjust_tool_factory (void); -gboolean editing_tools_adjust_tool_is_available (Photo* photo, - Scaling* scaling); -static void editing_tools_adjust_tool_real_activate (EditingToolsEditingTool* base, - EditingToolsPhotoCanvas* canvas); -static EditingToolsAdjustToolAdjustToolWindow* editing_tools_adjust_tool_adjust_tool_window_new (GtkWindow* container); -static EditingToolsAdjustToolAdjustToolWindow* editing_tools_adjust_tool_adjust_tool_window_construct (GType object_type, - GtkWindow* container); -PixelTransformationBundle* photo_get_color_adjustments (Photo* self); -GType rgb_histogram_manipulator_get_type (void) G_GNUC_CONST; -void rgb_histogram_manipulator_set_left_nub_position (RGBHistogramManipulator* self, - gint user_nub_pos); -void rgb_histogram_manipulator_set_right_nub_position (RGBHistogramManipulator* self, - gint user_nub_pos); -static void editing_tools_adjust_tool_bind_canvas_handlers (EditingToolsAdjustTool* self, - EditingToolsPhotoCanvas* canvas); -static void editing_tools_adjust_tool_bind_window_handlers (EditingToolsAdjustTool* self); -static void editing_tools_adjust_tool_init_fp_pixel_cache (EditingToolsAdjustTool* self, - GdkPixbuf* source); -static void editing_tools_adjust_tool_on_photos_altered (EditingToolsAdjustTool* self, - GeeMap* map); -static void _editing_tools_adjust_tool_on_photos_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -static EditingToolsEditingToolWindow* editing_tools_adjust_tool_real_get_tool_window (EditingToolsEditingTool* base); -static void editing_tools_adjust_tool_real_deactivate (EditingToolsEditingTool* base); -static void editing_tools_adjust_tool_unbind_canvas_handlers (EditingToolsAdjustTool* self, - EditingToolsPhotoCanvas* canvas); -static void editing_tools_adjust_tool_unbind_window_handlers (EditingToolsAdjustTool* self); -static void editing_tools_adjust_tool_real_paint (EditingToolsEditingTool* base, - cairo_t* ctx); -void rgb_histogram_manipulator_update_histogram (RGBHistogramManipulator* self, - GdkPixbuf* source_pixbuf); -static GdkPixbuf* editing_tools_adjust_tool_real_get_display_pixbuf (EditingToolsEditingTool* base, - Scaling* scaling, - Photo* photo, - Dimensions* max_dim, - GError** error); -gboolean photo_has_color_adjustments (Photo* self); -static void editing_tools_adjust_tool_on_reset (EditingToolsAdjustTool* self); -static GType editing_tools_adjust_tool_adjust_tool_command_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static GType editing_tools_adjust_tool_adjust_reset_command_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static EditingToolsAdjustToolAdjustResetCommand* editing_tools_adjust_tool_adjust_reset_command_new (EditingToolsAdjustTool* owner, - PixelTransformationBundle* current); -static EditingToolsAdjustToolAdjustResetCommand* editing_tools_adjust_tool_adjust_reset_command_construct (GType object_type, - EditingToolsAdjustTool* owner, - PixelTransformationBundle* current); -static void editing_tools_adjust_tool_on_ok (EditingToolsAdjustTool* self); -#define RESOURCES_ADJUST_LABEL _ ("Adjust") -#define RESOURCES_ADJUST_TOOLTIP _ ("Adjust the photo’s color and tone") -AdjustColorsSingleCommand* adjust_colors_single_command_new (Photo* photo, - PixelTransformationBundle* transformations, - const gchar* name, - const gchar* explanation); -AdjustColorsSingleCommand* adjust_colors_single_command_construct (GType object_type, - Photo* photo, - PixelTransformationBundle* transformations, - const gchar* name, - const gchar* explanation); -GType adjust_colors_single_command_get_type (void) G_GNUC_CONST; -static void editing_tools_adjust_tool_update_transformations (EditingToolsAdjustTool* self, - PixelTransformationBundle* new_transformations); -static void editing_tools_adjust_tool_update_transformation (EditingToolsAdjustTool* self, - PixelTransformation* new_transformation); -static void editing_tools_adjust_tool_slider_updated (EditingToolsAdjustTool* self, - PixelTransformation* new_transformation, - const gchar* name); -static GType editing_tools_adjust_tool_slider_adjustment_command_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static EditingToolsAdjustToolSliderAdjustmentCommand* editing_tools_adjust_tool_slider_adjustment_command_new (EditingToolsAdjustTool* owner, - PixelTransformation* old_transformation, - PixelTransformation* new_transformation, - const gchar* name); -static EditingToolsAdjustToolSliderAdjustmentCommand* editing_tools_adjust_tool_slider_adjustment_command_construct (GType object_type, - EditingToolsAdjustTool* owner, - PixelTransformation* old_transformation, - PixelTransformation* new_transformation, - const gchar* name); -static void editing_tools_adjust_tool_on_temperature_adjustment (EditingToolsAdjustTool* self); -static void editing_tools_adjust_tool_on_delayed_temperature_adjustment (EditingToolsAdjustTool* self); -static void _editing_tools_adjust_tool_on_delayed_temperature_adjustment_one_shot_callback (gpointer self); -OneShotScheduler* one_shot_scheduler_new (const gchar* name, - OneShotCallback callback, - void* callback_target); -OneShotScheduler* one_shot_scheduler_construct (GType object_type, - const gchar* name, - OneShotCallback callback, - void* callback_target); -void one_shot_scheduler_after_timeout (OneShotScheduler* self, - guint msec, - gboolean reschedule); -static void editing_tools_adjust_tool_on_tint_adjustment (EditingToolsAdjustTool* self); -static void editing_tools_adjust_tool_on_delayed_tint_adjustment (EditingToolsAdjustTool* self); -static void _editing_tools_adjust_tool_on_delayed_tint_adjustment_one_shot_callback (gpointer self); -static void editing_tools_adjust_tool_on_contrast_adjustment (EditingToolsAdjustTool* self); -static void editing_tools_adjust_tool_on_delayed_contrast_adjustment (EditingToolsAdjustTool* self); -static void _editing_tools_adjust_tool_on_delayed_contrast_adjustment_one_shot_callback (gpointer self); -static void editing_tools_adjust_tool_on_saturation_adjustment (EditingToolsAdjustTool* self); -static void editing_tools_adjust_tool_on_delayed_saturation_adjustment (EditingToolsAdjustTool* self); -static void _editing_tools_adjust_tool_on_delayed_saturation_adjustment_one_shot_callback (gpointer self); -static void editing_tools_adjust_tool_on_exposure_adjustment (EditingToolsAdjustTool* self); -static void editing_tools_adjust_tool_on_delayed_exposure_adjustment (EditingToolsAdjustTool* self); -static void _editing_tools_adjust_tool_on_delayed_exposure_adjustment_one_shot_callback (gpointer self); -static void editing_tools_adjust_tool_on_shadows_adjustment (EditingToolsAdjustTool* self); -static void editing_tools_adjust_tool_on_delayed_shadows_adjustment (EditingToolsAdjustTool* self); -static void _editing_tools_adjust_tool_on_delayed_shadows_adjustment_one_shot_callback (gpointer self); -static void editing_tools_adjust_tool_on_highlights_adjustment (EditingToolsAdjustTool* self); -static void editing_tools_adjust_tool_on_delayed_highlights_adjustment (EditingToolsAdjustTool* self); -static void _editing_tools_adjust_tool_on_delayed_highlights_adjustment_one_shot_callback (gpointer self); -static void editing_tools_adjust_tool_on_histogram_constraint (EditingToolsAdjustTool* self); -gint rgb_histogram_manipulator_get_left_nub_position (RGBHistogramManipulator* self); -gint rgb_histogram_manipulator_get_right_nub_position (RGBHistogramManipulator* self); -static void editing_tools_adjust_tool_on_canvas_resize (EditingToolsAdjustTool* self); -static gboolean editing_tools_adjust_tool_on_hscale_reset (EditingToolsAdjustTool* self, - GtkWidget* widget, - GdkEventButton* event); -gboolean has_only_key_modifier (GdkModifierType field, - GdkModifierType mask); -static void _editing_tools_adjust_tool_on_canvas_resize_editing_tools_photo_canvas_resized_scaled_pixbuf (EditingToolsPhotoCanvas* _sender, - Dimensions* old_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position, - gpointer self); -static void _editing_tools_adjust_tool_on_ok_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void _editing_tools_adjust_tool_on_reset_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void _editing_tools_adjust_tool_on_exposure_adjustment_gtk_range_value_changed (GtkRange* _sender, - gpointer self); -static void _editing_tools_adjust_tool_on_contrast_adjustment_gtk_range_value_changed (GtkRange* _sender, - gpointer self); -static void _editing_tools_adjust_tool_on_saturation_adjustment_gtk_range_value_changed (GtkRange* _sender, - gpointer self); -static void _editing_tools_adjust_tool_on_tint_adjustment_gtk_range_value_changed (GtkRange* _sender, - gpointer self); -static void _editing_tools_adjust_tool_on_temperature_adjustment_gtk_range_value_changed (GtkRange* _sender, - gpointer self); -static void _editing_tools_adjust_tool_on_shadows_adjustment_gtk_range_value_changed (GtkRange* _sender, - gpointer self); -static void _editing_tools_adjust_tool_on_highlights_adjustment_gtk_range_value_changed (GtkRange* _sender, - gpointer self); -static void _editing_tools_adjust_tool_on_histogram_constraint_rgb_histogram_manipulator_nub_position_changed (RGBHistogramManipulator* _sender, - gpointer self); -static gboolean _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self); -gboolean editing_tools_adjust_tool_enhance (EditingToolsAdjustTool* self); -static GType editing_tools_adjust_tool_adjust_enhance_command_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static EditingToolsAdjustToolAdjustEnhanceCommand* editing_tools_adjust_tool_adjust_enhance_command_new (EditingToolsAdjustTool* owner, - Photo* photo); -static EditingToolsAdjustToolAdjustEnhanceCommand* editing_tools_adjust_tool_adjust_enhance_command_construct (GType object_type, - EditingToolsAdjustTool* owner, - Photo* photo); -static void editing_tools_adjust_tool_set_adjustments (EditingToolsAdjustTool* self, - PixelTransformationBundle* new_adjustments); -static void editing_tools_adjust_tool_update_slider (EditingToolsAdjustTool* self, - PixelTransformation* transformation); -static gboolean editing_tools_adjust_tool_real_on_keypress (EditingToolsEditingTool* base, - GdkEventKey* event); -#define RESOURCES_OK_LABEL _ ("_OK") -RGBHistogramManipulator* rgb_histogram_manipulator_new (void); -RGBHistogramManipulator* rgb_histogram_manipulator_construct (GType object_type); -static void editing_tools_adjust_tool_adjust_tool_window_finalize (GObject * obj); -GType command_description_get_type (void) G_GNUC_CONST; -static void editing_tools_adjust_tool_adjust_tool_command_on_owner_deactivated (EditingToolsAdjustToolAdjustToolCommand* self); -static void _editing_tools_adjust_tool_adjust_tool_command_on_owner_deactivated_editing_tools_editing_tool_deactivated (EditingToolsEditingTool* _sender, - gpointer self); -static EditingToolsAdjustToolAdjustToolCommand* editing_tools_adjust_tool_adjust_tool_command_construct (GType object_type, - EditingToolsAdjustTool* owner, - const gchar* name, - const gchar* explanation); -Command* command_construct (GType object_type, - const gchar* name, - const gchar* explanation); -void command_manager_reset (CommandManager* self); -static void editing_tools_adjust_tool_adjust_tool_command_finalize (GObject * obj); -#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_RESET_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, EditingToolsAdjustToolAdjustResetCommandPrivate)) -static void editing_tools_adjust_tool_adjust_reset_command_real_execute (Command* base); -static void editing_tools_adjust_tool_adjust_reset_command_real_undo (Command* base); -static gboolean editing_tools_adjust_tool_adjust_reset_command_real_compress (Command* base, - Command* command); -static void editing_tools_adjust_tool_adjust_reset_command_finalize (GObject * obj); -#define EDITING_TOOLS_ADJUST_TOOL_SLIDER_ADJUSTMENT_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommandPrivate)) -static void editing_tools_adjust_tool_slider_adjustment_command_real_execute (Command* base); -static void editing_tools_adjust_tool_slider_adjustment_command_real_undo (Command* base); -static void editing_tools_adjust_tool_slider_adjustment_command_real_redo (Command* base); -static gboolean editing_tools_adjust_tool_slider_adjustment_command_real_compress (Command* base, - Command* command); -void command_execute (Command* self); -static void editing_tools_adjust_tool_slider_adjustment_command_finalize (GObject * obj); -#define EDITING_TOOLS_ADJUST_TOOL_ADJUST_ENHANCE_COMMAND_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, EditingToolsAdjustToolAdjustEnhanceCommandPrivate)) -#define RESOURCES_ENHANCE_LABEL _ ("Enhance") -#define RESOURCES_ENHANCE_TOOLTIP _ ("Automatically improve the photo’s appearance") -static void editing_tools_adjust_tool_adjust_enhance_command_real_execute (Command* base); -PixelTransformationBundle* photo_get_enhance_transformations (Photo* self); -static void editing_tools_adjust_tool_adjust_enhance_command_real_undo (Command* base); -static gboolean editing_tools_adjust_tool_adjust_enhance_command_real_compress (Command* base, - Command* command); -GType enhance_single_command_get_type (void) G_GNUC_CONST; -DataSource* single_data_source_command_get_source (SingleDataSourceCommand* self); -gboolean data_source_equals (DataSource* self, - DataSource* source); -static void editing_tools_adjust_tool_adjust_enhance_command_finalize (GObject * obj); -static void editing_tools_adjust_tool_finalize (EditingToolsEditingTool * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -void -editing_tools_preconfigure (void) -{ -} - - -void -editing_tools_init (GError** error) -{ -} - - -void -editing_tools_terminate (void) -{ -} - - -static void -_editing_tools_editing_tool_window_suppress_warnings_glog_func (const gchar* log_domain, - GLogLevelFlags log_levels, - const gchar* message, - gpointer self) -{ -#line 56 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_editing_tool_window_suppress_warnings ((EditingToolsEditingToolWindow*) self, log_domain, log_levels, message); -#line 2023 "EditingTools.c" -} - - -EditingToolsEditingToolWindow* -editing_tools_editing_tool_window_construct (GType object_type, - GtkWindow* container) -{ - EditingToolsEditingToolWindow * self = NULL; - GtkFrame* outer_frame = NULL; - GtkFrame* _tmp0_; - GtkFrame* _tmp1_; - GtkFrame* _tmp2_; - GtkFrame* _tmp3_; -#line 34 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (GTK_IS_WINDOW (container), NULL); -#line 34 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = (EditingToolsEditingToolWindow*) g_object_new (object_type, NULL); -#line 35 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_window_set_decorated (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE); -#line 36 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), container); -#line 38 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = (GtkFrame*) gtk_frame_new (NULL); -#line 38 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp0_); -#line 38 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - outer_frame = _tmp0_; -#line 39 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (outer_frame, gtk_container_get_type (), GtkContainer), (guint) 0); -#line 40 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_frame_set_shadow_type (outer_frame, GTK_SHADOW_OUT); -#line 42 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->layout_frame; -#line 42 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_container_get_type (), GtkContainer), (guint) EDITING_TOOLS_EDITING_TOOL_WINDOW_FRAME_BORDER); -#line 43 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->layout_frame; -#line 43 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_frame_set_shadow_type (_tmp2_, GTK_SHADOW_NONE); -#line 45 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->layout_frame; -#line 45 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (outer_frame, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget)); -#line 46 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - GTK_CONTAINER_CLASS (editing_tools_editing_tool_window_parent_class)->add (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (outer_frame, gtk_widget_get_type (), GtkWidget)); -#line 48 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) (GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK)); -#line 49 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_window_set_focus_on_map (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE); -#line 50 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_window_set_accept_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE); -#line 51 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_can_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), TRUE); -#line 56 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_log_set_handler ("Gdk", G_LOG_LEVEL_WARNING, _editing_tools_editing_tool_window_suppress_warnings_glog_func, self); -#line 34 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (outer_frame); -#line 34 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self; -#line 2083 "EditingTools.c" -} - - -static void -editing_tools_editing_tool_window_real_add (GtkContainer* base, - GtkWidget* widget) -{ - EditingToolsEditingToolWindow * self; - GtkFrame* _tmp0_; -#line 63 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow); -#line 63 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (GTK_IS_WIDGET (widget)); -#line 64 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->layout_frame; -#line 64 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_container_get_type (), GtkContainer), widget); -#line 2101 "EditingTools.c" -} - - -gboolean -editing_tools_editing_tool_window_has_user_moved (EditingToolsEditingToolWindow* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 67 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_EDITING_TOOL_WINDOW (self), FALSE); -#line 68 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->user_moved; -#line 68 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp0_; -#line 68 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 2118 "EditingTools.c" -} - - -static gboolean -editing_tools_editing_tool_window_real_key_press_event (GtkWidget* base, - GdkEventKey* event) -{ - EditingToolsEditingToolWindow * self; - gboolean result = FALSE; - AppWindow* _tmp0_; - AppWindow* _tmp1_; - gboolean _tmp2_ = FALSE; - gboolean _tmp3_; -#line 71 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow); -#line 71 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 72 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (GTK_WIDGET_CLASS (editing_tools_editing_tool_window_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), gtk_widget_get_type (), GtkWidget), event)) { -#line 73 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = TRUE; -#line 73 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 2142 "EditingTools.c" - } -#line 75 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = app_window_get_instance (); -#line 75 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_; -#line 75 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), "key-press-event", event, &_tmp2_); -#line 75 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_; -#line 75 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp1_); -#line 75 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp3_; -#line 75 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 2158 "EditingTools.c" -} - - -static gboolean -editing_tools_editing_tool_window_real_button_press_event (GtkWidget* base, - GdkEventButton* event) -{ - EditingToolsEditingToolWindow * self; - gboolean result = FALSE; - guint _tmp0_; - guint _tmp2_; - gdouble _tmp3_; - gdouble _tmp4_; - guint32 _tmp5_; -#line 78 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow); -#line 78 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 80 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = event->button; -#line 80 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ != ((guint) 1)) { -#line 2181 "EditingTools.c" - gboolean _tmp1_ = FALSE; -#line 81 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (GTK_WIDGET_CLASS (editing_tools_editing_tool_window_parent_class)->button_press_event != NULL) { -#line 81 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = GTK_WIDGET_CLASS (editing_tools_editing_tool_window_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), gtk_widget_get_type (), GtkWidget), event); -#line 2187 "EditingTools.c" - } else { -#line 81 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = TRUE; -#line 2191 "EditingTools.c" - } -#line 81 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp1_; -#line 81 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 2197 "EditingTools.c" - } -#line 83 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = event->button; -#line 83 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = event->x_root; -#line 83 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = event->y_root; -#line 83 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = event->time; -#line 83 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_window_begin_move_drag (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), (gint) _tmp2_, (gint) _tmp3_, (gint) _tmp4_, _tmp5_); -#line 84 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->user_moved = TRUE; -#line 86 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = TRUE; -#line 86 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 2215 "EditingTools.c" -} - - -static void -editing_tools_editing_tool_window_real_realize (GtkWidget* base) -{ - EditingToolsEditingToolWindow * self; -#line 89 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow); -#line 90 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_opacity (G_TYPE_CHECK_INSTANCE_TYPE (self, gtk_widget_get_type ()) ? ((GtkWidget*) self) : NULL, RESOURCES_TRANSIENT_WINDOW_OPACITY); -#line 92 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - GTK_WIDGET_CLASS (editing_tools_editing_tool_window_parent_class)->realize (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), gtk_widget_get_type (), GtkWidget)); -#line 2229 "EditingTools.c" -} - - -static void -editing_tools_editing_tool_window_suppress_warnings (EditingToolsEditingToolWindow* self, - const gchar* log_domain, - GLogLevelFlags log_levels, - const gchar* message) -{ -#line 95 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL_WINDOW (self)); -#line 95 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (message != NULL); -#line 2243 "EditingTools.c" -} - - -static void -editing_tools_editing_tool_window_class_init (EditingToolsEditingToolWindowClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_editing_tool_window_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_type_class_add_private (klass, sizeof (EditingToolsEditingToolWindowPrivate)); -#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((GtkContainerClass *) klass)->add = (void (*) (GtkContainer *, GtkWidget*)) editing_tools_editing_tool_window_real_add; -#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) editing_tools_editing_tool_window_real_key_press_event; -#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((GtkWidgetClass *) klass)->button_press_event = (gboolean (*) (GtkWidget *, GdkEventButton*)) editing_tools_editing_tool_window_real_button_press_event; -#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((GtkWidgetClass *) klass)->realize = (void (*) (GtkWidget *)) editing_tools_editing_tool_window_real_realize; -#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_OBJECT_CLASS (klass)->finalize = editing_tools_editing_tool_window_finalize; -#line 2264 "EditingTools.c" -} - - -static void -editing_tools_editing_tool_window_instance_init (EditingToolsEditingToolWindow * self) -{ - GtkFrame* _tmp0_; -#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv = EDITING_TOOLS_EDITING_TOOL_WINDOW_GET_PRIVATE (self); -#line 31 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = (GtkFrame*) gtk_frame_new (NULL); -#line 31 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp0_); -#line 31 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->layout_frame = _tmp0_; -#line 32 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->user_moved = FALSE; -#line 2282 "EditingTools.c" -} - - -static void -editing_tools_editing_tool_window_finalize (GObject * obj) -{ - EditingToolsEditingToolWindow * self; - GLogFunc _tmp0_; - void* _tmp0__target; -#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow); -#line 60 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = g_log_default_handler; -#line 60 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0__target = NULL; -#line 60 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_log_set_handler ("Gdk", G_LOG_LEVEL_WARNING, _tmp0_, _tmp0__target); -#line 31 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->layout_frame); -#line 28 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_OBJECT_CLASS (editing_tools_editing_tool_window_parent_class)->finalize (obj); -#line 2304 "EditingTools.c" -} - - -GType -editing_tools_editing_tool_window_get_type (void) -{ - static volatile gsize editing_tools_editing_tool_window_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_editing_tool_window_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditingToolsEditingToolWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_editing_tool_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsEditingToolWindow), 0, (GInstanceInitFunc) editing_tools_editing_tool_window_instance_init, NULL }; - GType editing_tools_editing_tool_window_type_id; - editing_tools_editing_tool_window_type_id = g_type_register_static (gtk_window_get_type (), "EditingToolsEditingToolWindow", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&editing_tools_editing_tool_window_type_id__volatile, editing_tools_editing_tool_window_type_id); - } - return editing_tools_editing_tool_window_type_id__volatile; -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self ? g_object_ref (self) : NULL; -#line 2327 "EditingTools.c" -} - - -static gpointer -_cairo_reference0 (gpointer self) -{ -#line 118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self ? cairo_reference (self) : NULL; -#line 2336 "EditingTools.c" -} - - -EditingToolsPhotoCanvas* -editing_tools_photo_canvas_construct (GType object_type, - GtkWindow* container, - GdkWindow* drawing_window, - Photo* photo, - cairo_t* default_ctx, - Dimensions* surface_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position) -{ - EditingToolsPhotoCanvas* self = NULL; - GtkWindow* _tmp0_; - GdkWindow* _tmp1_; - Photo* _tmp2_; - cairo_t* _tmp3_; - Dimensions _tmp4_; - GdkRectangle _tmp5_; - GdkPixbuf* _tmp6_; - GdkRectangle _tmp7_; - cairo_surface_t* _tmp8_; -#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (GTK_IS_WINDOW (container), NULL); -#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (GDK_IS_WINDOW (drawing_window), NULL); -#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (default_ctx != NULL, NULL); -#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (surface_dim != NULL, NULL); -#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (GDK_IS_PIXBUF (scaled), NULL); -#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (scaled_position != NULL, NULL); -#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = (EditingToolsPhotoCanvas*) g_type_create_instance (object_type); -#line 115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = _g_object_ref0 (container); -#line 115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->container); -#line 115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->container = _tmp0_; -#line 116 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _g_object_ref0 (drawing_window); -#line 116 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->drawing_window); -#line 116 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->drawing_window = _tmp1_; -#line 117 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _g_object_ref0 (photo); -#line 117 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->photo); -#line 117 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->photo = _tmp2_; -#line 118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _cairo_reference0 (default_ctx); -#line 118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (self->priv->default_ctx); -#line 118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->default_ctx = _tmp3_; -#line 119 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = *surface_dim; -#line 119 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->surface_dim = _tmp4_; -#line 120 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = *scaled_position; -#line 120 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->scaled_position = _tmp5_; -#line 121 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _g_object_ref0 (scaled); -#line 121 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->scaled_pixbuf); -#line 121 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->scaled_pixbuf = _tmp6_; -#line 122 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = *scaled_position; -#line 122 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = editing_tools_photo_canvas_pixbuf_to_surface (self, default_ctx, scaled, &_tmp7_); -#line 122 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_surface_destroy0 (self->priv->scaled); -#line 122 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->scaled = _tmp8_; -#line 113 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self; -#line 2424 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_unscaled_to_raw_rect (EditingToolsPhotoCanvas* self, - GdkRectangle* rectangle, - GdkRectangle* result) -{ - Photo* _tmp0_; - GdkRectangle _tmp1_; - GdkRectangle _tmp2_ = {0}; -#line 130 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 130 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (rectangle != NULL); -#line 131 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->photo; -#line 131 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = *rectangle; -#line 131 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - photo_unscaled_to_raw_rect (_tmp0_, &_tmp1_, &_tmp2_); -#line 131 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *result = _tmp2_; -#line 131 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 2450 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_active_to_unscaled_point (EditingToolsPhotoCanvas* self, - GdkPoint* active_point, - GdkPoint* result) -{ - GdkRectangle scaled_position = {0}; - GdkRectangle _tmp0_ = {0}; - Dimensions unscaled_dims = {0}; - Photo* _tmp1_; - Dimensions _tmp2_ = {0}; - gdouble scale_factor_x = 0.0; - Dimensions _tmp3_; - gint _tmp4_; - GdkRectangle _tmp5_; - gint _tmp6_; - gdouble scale_factor_y = 0.0; - Dimensions _tmp7_; - gint _tmp8_; - GdkRectangle _tmp9_; - gint _tmp10_; - GdkPoint _result_ = {0}; - GdkPoint _tmp11_ = {0}; - GdkPoint _tmp12_; - gint _tmp13_; - GdkPoint _tmp14_; - gint _tmp15_; -#line 134 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 134 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (active_point != NULL); -#line 135 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (self, &_tmp0_); -#line 135 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - scaled_position = _tmp0_; -#line 136 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->photo; -#line 136 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp2_); -#line 136 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - unscaled_dims = _tmp2_; -#line 138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = unscaled_dims; -#line 138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_.width; -#line 138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = scaled_position; -#line 138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_.width; -#line 138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - scale_factor_x = ((gdouble) _tmp4_) / ((gdouble) _tmp6_); -#line 140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = unscaled_dims; -#line 140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = _tmp7_.height; -#line 140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = scaled_position; -#line 140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_.height; -#line 140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - scale_factor_y = ((gdouble) _tmp8_) / ((gdouble) _tmp10_); -#line 143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_.x = 0; -#line 143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_ = _tmp11_; -#line 144 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = *active_point; -#line 144 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_.x; -#line 144 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_.x = (gint) ((((gdouble) _tmp13_) * scale_factor_x) + 0.5); -#line 145 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = *active_point; -#line 145 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = _tmp14_.y; -#line 145 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_.y = (gint) ((((gdouble) _tmp15_) * scale_factor_y) + 0.5); -#line 147 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *result = _result_; -#line 147 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 2534 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_active_to_unscaled_rect (EditingToolsPhotoCanvas* self, - GdkRectangle* active_rect, - GdkRectangle* result) -{ - GdkPoint upper_left = {0}; - GdkPoint _tmp0_ = {0}; - GdkPoint lower_right = {0}; - GdkPoint _tmp1_ = {0}; - GdkRectangle _tmp2_; - gint _tmp3_; - GdkRectangle _tmp4_; - gint _tmp5_; - GdkPoint _tmp6_; - gint _tmp7_; - GdkRectangle _tmp8_; - gint _tmp9_; - GdkPoint _tmp10_; - gint _tmp11_; - GdkRectangle _tmp12_; - gint _tmp13_; - GdkPoint _tmp14_; - GdkPoint _tmp15_ = {0}; - GdkPoint _tmp16_; - GdkPoint _tmp17_ = {0}; - GdkRectangle unscaled_rect = {0}; - GdkPoint _tmp18_; - gint _tmp19_; - GdkPoint _tmp20_; - gint _tmp21_; - GdkPoint _tmp22_; - gint _tmp23_; - GdkPoint _tmp24_; - gint _tmp25_; - GdkPoint _tmp26_; - gint _tmp27_; - GdkPoint _tmp28_; - gint _tmp29_; -#line 150 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 150 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (active_rect != NULL); -#line 151 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_.x = 0; -#line 151 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - upper_left = _tmp0_; -#line 152 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_.x = 0; -#line 152 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - lower_right = _tmp1_; -#line 153 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = *active_rect; -#line 153 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_.x; -#line 153 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - upper_left.x = _tmp3_; -#line 154 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = *active_rect; -#line 154 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_.y; -#line 154 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - upper_left.y = _tmp5_; -#line 155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = upper_left; -#line 155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_.x; -#line 155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = *active_rect; -#line 155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = _tmp8_.width; -#line 155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - lower_right.x = _tmp7_ + _tmp9_; -#line 156 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = upper_left; -#line 156 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _tmp10_.y; -#line 156 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = *active_rect; -#line 156 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_.height; -#line 156 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - lower_right.y = _tmp11_ + _tmp13_; -#line 158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = upper_left; -#line 158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_active_to_unscaled_point (self, &_tmp14_, &_tmp15_); -#line 158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - upper_left = _tmp15_; -#line 159 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = lower_right; -#line 159 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_active_to_unscaled_point (self, &_tmp16_, &_tmp17_); -#line 159 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - lower_right = _tmp17_; -#line 161 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - memset (&unscaled_rect, 0, sizeof (GdkRectangle)); -#line 162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = upper_left; -#line 162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = _tmp18_.x; -#line 162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - unscaled_rect.x = _tmp19_; -#line 163 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = upper_left; -#line 163 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = _tmp20_.y; -#line 163 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - unscaled_rect.y = _tmp21_; -#line 164 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = lower_right; -#line 164 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = _tmp22_.x; -#line 164 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = upper_left; -#line 164 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = _tmp24_.x; -#line 164 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - unscaled_rect.width = _tmp23_ - _tmp25_; -#line 165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = lower_right; -#line 165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = _tmp26_.y; -#line 165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = upper_left; -#line 165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29_ = _tmp28_.y; -#line 165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - unscaled_rect.height = _tmp27_ - _tmp29_; -#line 167 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *result = unscaled_rect; -#line 167 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 2670 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_user_to_active_point (EditingToolsPhotoCanvas* self, - GdkPoint* user_point, - GdkPoint* result) -{ - GdkRectangle active_offsets = {0}; - GdkRectangle _tmp0_ = {0}; - GdkPoint _result_ = {0}; - GdkPoint _tmp1_ = {0}; - GdkPoint _tmp2_; - gint _tmp3_; - GdkRectangle _tmp4_; - gint _tmp5_; - GdkPoint _tmp6_; - gint _tmp7_; - GdkRectangle _tmp8_; - gint _tmp9_; -#line 170 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 170 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (user_point != NULL); -#line 171 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (self, &_tmp0_); -#line 171 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - active_offsets = _tmp0_; -#line 173 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_.x = 0; -#line 173 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_ = _tmp1_; -#line 174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = *user_point; -#line 174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_.x; -#line 174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = active_offsets; -#line 174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_.x; -#line 174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_.x = _tmp3_ - _tmp5_; -#line 175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = *user_point; -#line 175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_.y; -#line 175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = active_offsets; -#line 175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = _tmp8_.y; -#line 175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_.y = _tmp7_ - _tmp9_; -#line 177 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *result = _result_; -#line 177 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 2727 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_user_to_active_rect (EditingToolsPhotoCanvas* self, - GdkRectangle* user_rect, - GdkRectangle* result) -{ - GdkPoint upper_left = {0}; - GdkPoint _tmp0_ = {0}; - GdkPoint lower_right = {0}; - GdkPoint _tmp1_ = {0}; - GdkRectangle _tmp2_; - gint _tmp3_; - GdkRectangle _tmp4_; - gint _tmp5_; - GdkPoint _tmp6_; - gint _tmp7_; - GdkRectangle _tmp8_; - gint _tmp9_; - GdkPoint _tmp10_; - gint _tmp11_; - GdkRectangle _tmp12_; - gint _tmp13_; - GdkPoint _tmp14_; - GdkPoint _tmp15_ = {0}; - GdkPoint _tmp16_; - GdkPoint _tmp17_ = {0}; - GdkRectangle active_rect = {0}; - GdkPoint _tmp18_; - gint _tmp19_; - GdkPoint _tmp20_; - gint _tmp21_; - GdkPoint _tmp22_; - gint _tmp23_; - GdkPoint _tmp24_; - gint _tmp25_; - GdkPoint _tmp26_; - gint _tmp27_; - GdkPoint _tmp28_; - gint _tmp29_; -#line 180 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 180 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (user_rect != NULL); -#line 181 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_.x = 0; -#line 181 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - upper_left = _tmp0_; -#line 182 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_.x = 0; -#line 182 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - lower_right = _tmp1_; -#line 183 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = *user_rect; -#line 183 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_.x; -#line 183 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - upper_left.x = _tmp3_; -#line 184 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = *user_rect; -#line 184 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_.y; -#line 184 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - upper_left.y = _tmp5_; -#line 185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = upper_left; -#line 185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_.x; -#line 185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = *user_rect; -#line 185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = _tmp8_.width; -#line 185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - lower_right.x = _tmp7_ + _tmp9_; -#line 186 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = upper_left; -#line 186 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _tmp10_.y; -#line 186 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = *user_rect; -#line 186 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_.height; -#line 186 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - lower_right.y = _tmp11_ + _tmp13_; -#line 188 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = upper_left; -#line 188 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_user_to_active_point (self, &_tmp14_, &_tmp15_); -#line 188 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - upper_left = _tmp15_; -#line 189 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = lower_right; -#line 189 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_user_to_active_point (self, &_tmp16_, &_tmp17_); -#line 189 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - lower_right = _tmp17_; -#line 191 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - memset (&active_rect, 0, sizeof (GdkRectangle)); -#line 192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = upper_left; -#line 192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = _tmp18_.x; -#line 192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - active_rect.x = _tmp19_; -#line 193 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = upper_left; -#line 193 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = _tmp20_.y; -#line 193 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - active_rect.y = _tmp21_; -#line 194 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = lower_right; -#line 194 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = _tmp22_.x; -#line 194 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = upper_left; -#line 194 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = _tmp24_.x; -#line 194 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - active_rect.width = _tmp23_ - _tmp25_; -#line 195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = lower_right; -#line 195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = _tmp26_.y; -#line 195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = upper_left; -#line 195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29_ = _tmp28_.y; -#line 195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - active_rect.height = _tmp27_ - _tmp29_; -#line 197 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *result = active_rect; -#line 197 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 2863 "EditingTools.c" -} - - -Photo* -editing_tools_photo_canvas_get_photo (EditingToolsPhotoCanvas* self) -{ - Photo* result = NULL; - Photo* _tmp0_; - Photo* _tmp1_; -#line 200 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self), NULL); -#line 201 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->photo; -#line 201 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 201 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp1_; -#line 201 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 2883 "EditingTools.c" -} - - -GtkWindow* -editing_tools_photo_canvas_get_container (EditingToolsPhotoCanvas* self) -{ - GtkWindow* result = NULL; - GtkWindow* _tmp0_; - GtkWindow* _tmp1_; -#line 204 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self), NULL); -#line 205 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->container; -#line 205 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 205 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp1_; -#line 205 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 2903 "EditingTools.c" -} - - -GdkWindow* -editing_tools_photo_canvas_get_drawing_window (EditingToolsPhotoCanvas* self) -{ - GdkWindow* result = NULL; - GdkWindow* _tmp0_; - GdkWindow* _tmp1_; -#line 208 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self), NULL); -#line 209 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->drawing_window; -#line 209 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 209 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp1_; -#line 209 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 2923 "EditingTools.c" -} - - -cairo_t* -editing_tools_photo_canvas_get_default_ctx (EditingToolsPhotoCanvas* self) -{ - cairo_t* result = NULL; - cairo_t* _tmp0_; - cairo_t* _tmp1_; -#line 212 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self), NULL); -#line 213 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->default_ctx; -#line 213 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _cairo_reference0 (_tmp0_); -#line 213 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp1_; -#line 213 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 2943 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_get_surface_dim (EditingToolsPhotoCanvas* self, - Dimensions* result) -{ - Dimensions _tmp0_; -#line 216 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->surface_dim; -#line 217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *result = _tmp0_; -#line 217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 2960 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_get_scaling (EditingToolsPhotoCanvas* self, - Scaling* result) -{ - Dimensions _tmp0_; - Scaling _tmp1_ = {0}; -#line 220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 221 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->surface_dim; -#line 221 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - scaling_for_viewport (&_tmp0_, FALSE, &_tmp1_); -#line 221 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *result = _tmp1_; -#line 221 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 2980 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_set_surface (EditingToolsPhotoCanvas* self, - cairo_t* default_ctx, - Dimensions* surface_dim) -{ - cairo_t* _tmp0_; - Dimensions _tmp1_; - Dimensions _tmp2_; -#line 224 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 224 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (default_ctx != NULL); -#line 224 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (surface_dim != NULL); -#line 225 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = _cairo_reference0 (default_ctx); -#line 225 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (self->priv->default_ctx); -#line 225 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->default_ctx = _tmp0_; -#line 226 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = *surface_dim; -#line 226 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->surface_dim = _tmp1_; -#line 228 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = *surface_dim; -#line 228 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_emit (self, editing_tools_photo_canvas_signals[EDITING_TOOLS_PHOTO_CANVAS_NEW_SURFACE_SIGNAL], 0, default_ctx, &_tmp2_); -#line 3012 "EditingTools.c" -} - - -static gpointer -_cairo_surface_reference0 (gpointer self) -{ -#line 232 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self ? cairo_surface_reference (self) : NULL; -#line 3021 "EditingTools.c" -} - - -cairo_surface_t* -editing_tools_photo_canvas_get_scaled_surface (EditingToolsPhotoCanvas* self) -{ - cairo_surface_t* result = NULL; - cairo_surface_t* _tmp0_; - cairo_surface_t* _tmp1_; -#line 231 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self), NULL); -#line 232 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->scaled; -#line 232 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _cairo_surface_reference0 (_tmp0_); -#line 232 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp1_; -#line 232 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 3041 "EditingTools.c" -} - - -GdkPixbuf* -editing_tools_photo_canvas_get_scaled_pixbuf (EditingToolsPhotoCanvas* self) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; -#line 235 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self), NULL); -#line 236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->scaled_pixbuf; -#line 236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp1_; -#line 236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 3061 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_get_scaled_pixbuf_position (EditingToolsPhotoCanvas* self, - GdkRectangle* result) -{ - GdkRectangle _tmp0_; -#line 239 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 240 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->scaled_position; -#line 240 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *result = _tmp0_; -#line 240 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 3078 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_resized_pixbuf (EditingToolsPhotoCanvas* self, - Dimensions* old_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position) -{ - cairo_t* _tmp0_; - GdkRectangle _tmp1_; - cairo_surface_t* _tmp2_; - GdkPixbuf* _tmp3_; - GdkRectangle _tmp4_; - Dimensions _tmp5_; - GdkRectangle _tmp6_; -#line 243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (old_dim != NULL); -#line 243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (GDK_IS_PIXBUF (scaled)); -#line 243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (scaled_position != NULL); -#line 244 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->default_ctx; -#line 244 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = *scaled_position; -#line 244 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = editing_tools_photo_canvas_pixbuf_to_surface (self, _tmp0_, scaled, &_tmp1_); -#line 244 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_surface_destroy0 (self->priv->scaled); -#line 244 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->scaled = _tmp2_; -#line 245 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _g_object_ref0 (scaled); -#line 245 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->scaled_pixbuf); -#line 245 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->scaled_pixbuf = _tmp3_; -#line 246 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = *scaled_position; -#line 246 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->scaled_position = _tmp4_; -#line 248 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = *old_dim; -#line 248 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = *scaled_position; -#line 248 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_emit (self, editing_tools_photo_canvas_signals[EDITING_TOOLS_PHOTO_CANVAS_RESIZED_SCALED_PIXBUF_SIGNAL], 0, &_tmp5_, scaled, &_tmp6_); -#line 3129 "EditingTools.c" -} - - -static void -editing_tools_photo_canvas_real_repaint (EditingToolsPhotoCanvas* self) -{ -#line 251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_critical ("Type `%s' does not implement abstract method `editing_tools_photo_canvas_repaint'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 3140 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_repaint (EditingToolsPhotoCanvas* self) -{ -#line 251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_PHOTO_CANVAS_GET_CLASS (self)->repaint (self); -#line 3151 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_paint_pixbuf (EditingToolsPhotoCanvas* self, - GdkPixbuf* pixbuf) -{ - cairo_t* _tmp0_; - cairo_t* _tmp1_; - cairo_t* _tmp2_; - Dimensions _tmp3_; - gint _tmp4_; - Dimensions _tmp5_; - gint _tmp6_; - cairo_t* _tmp7_; - cairo_t* _tmp8_; - GdkRectangle _tmp9_; - gint _tmp10_; - GdkRectangle _tmp11_; - gint _tmp12_; - cairo_t* _tmp13_; -#line 259 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 259 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 260 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->default_ctx; -#line 260 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_save (_tmp0_); -#line 263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->default_ctx; -#line 263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - set_source_color_from_string (_tmp1_, "#000"); -#line 264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->default_ctx; -#line 264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->surface_dim; -#line 264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_.width; -#line 264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = self->priv->surface_dim; -#line 264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_.height; -#line 264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_rectangle (_tmp2_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp4_, (gdouble) _tmp6_); -#line 265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = self->priv->default_ctx; -#line 265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_fill (_tmp7_); -#line 268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = self->priv->default_ctx; -#line 268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->scaled_position; -#line 268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_.x; -#line 268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = self->priv->scaled_position; -#line 268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _tmp11_.y; -#line 268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - paint_pixmap_with_background (_tmp8_, pixbuf, _tmp10_, _tmp12_); -#line 269 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = self->priv->default_ctx; -#line 269 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_restore (_tmp13_); -#line 3217 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_paint_surface (EditingToolsPhotoCanvas* self, - cairo_surface_t* surface, - gboolean over) -{ - cairo_t* _tmp0_; - cairo_t* _tmp3_; - cairo_surface_t* _tmp4_; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_; - gint _tmp8_; - cairo_t* _tmp9_; - cairo_t* _tmp10_; - GdkRectangle _tmp11_; - gint _tmp12_; - GdkRectangle _tmp13_; - gint _tmp14_; - cairo_t* _tmp15_; - cairo_t* _tmp16_; -#line 273 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 273 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (surface != NULL); -#line 274 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->default_ctx; -#line 274 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_save (_tmp0_); -#line 275 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (over == FALSE) { -#line 3251 "EditingTools.c" - cairo_t* _tmp1_; -#line 276 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->default_ctx; -#line 276 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_operator (_tmp1_, CAIRO_OPERATOR_SOURCE); -#line 3257 "EditingTools.c" - } else { - cairo_t* _tmp2_; -#line 278 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->default_ctx; -#line 278 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_operator (_tmp2_, CAIRO_OPERATOR_OVER); -#line 3264 "EditingTools.c" - } -#line 280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->default_ctx; -#line 280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->scaled; -#line 280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = self->priv->scaled_position; -#line 280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_.x; -#line 280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = self->priv->scaled_position; -#line 280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = _tmp7_.y; -#line 280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_source_surface (_tmp3_, _tmp4_, (gdouble) _tmp6_, (gdouble) _tmp8_); -#line 281 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->default_ctx; -#line 281 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_paint (_tmp9_); -#line 282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = self->priv->default_ctx; -#line 282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = self->priv->scaled_position; -#line 282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _tmp11_.x; -#line 282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = self->priv->scaled_position; -#line 282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = _tmp13_.y; -#line 282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_source_surface (_tmp10_, surface, (gdouble) _tmp12_, (gdouble) _tmp14_); -#line 283 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = self->priv->default_ctx; -#line 283 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_paint (_tmp15_); -#line 284 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = self->priv->default_ctx; -#line 284 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_restore (_tmp16_); -#line 3304 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_paint_surface_area (EditingToolsPhotoCanvas* self, - cairo_surface_t* surface, - Box* source_area, - gboolean over) -{ - cairo_t* _tmp0_; - cairo_t* _tmp3_; - cairo_surface_t* _tmp4_; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_; - gint _tmp8_; - cairo_t* _tmp9_; - GdkRectangle _tmp10_; - gint _tmp11_; - Box _tmp12_; - gint _tmp13_; - GdkRectangle _tmp14_; - gint _tmp15_; - Box _tmp16_; - gint _tmp17_; - cairo_t* _tmp18_; - cairo_t* _tmp19_; - GdkRectangle _tmp20_; - gint _tmp21_; - GdkRectangle _tmp22_; - gint _tmp23_; - cairo_t* _tmp24_; - GdkRectangle _tmp25_; - gint _tmp26_; - Box _tmp27_; - gint _tmp28_; - GdkRectangle _tmp29_; - gint _tmp30_; - Box _tmp31_; - gint _tmp32_; - cairo_t* _tmp33_; - cairo_t* _tmp34_; -#line 287 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 287 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (surface != NULL); -#line 287 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (source_area != NULL); -#line 288 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->default_ctx; -#line 288 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_save (_tmp0_); -#line 289 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (over == FALSE) { -#line 3359 "EditingTools.c" - cairo_t* _tmp1_; -#line 290 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->default_ctx; -#line 290 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_operator (_tmp1_, CAIRO_OPERATOR_SOURCE); -#line 3365 "EditingTools.c" - } else { - cairo_t* _tmp2_; -#line 292 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->default_ctx; -#line 292 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_operator (_tmp2_, CAIRO_OPERATOR_OVER); -#line 3372 "EditingTools.c" - } -#line 294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->default_ctx; -#line 294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->scaled; -#line 294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = self->priv->scaled_position; -#line 294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_.x; -#line 294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = self->priv->scaled_position; -#line 294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = _tmp7_.y; -#line 294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_source_surface (_tmp3_, _tmp4_, (gdouble) _tmp6_, (gdouble) _tmp8_); -#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->default_ctx; -#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = self->priv->scaled_position; -#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _tmp10_.x; -#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = *source_area; -#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_.left; -#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = self->priv->scaled_position; -#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = _tmp14_.y; -#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = *source_area; -#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = _tmp16_.top; -#line 295 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_rectangle (_tmp9_, (gdouble) (_tmp11_ + _tmp13_), (gdouble) (_tmp15_ + _tmp17_), (gdouble) box_get_width (source_area), (gdouble) box_get_height (source_area)); -#line 298 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = self->priv->default_ctx; -#line 298 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_fill (_tmp18_); -#line 300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = self->priv->default_ctx; -#line 300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = self->priv->scaled_position; -#line 300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = _tmp20_.x; -#line 300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = self->priv->scaled_position; -#line 300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = _tmp22_.y; -#line 300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_source_surface (_tmp19_, surface, (gdouble) _tmp21_, (gdouble) _tmp23_); -#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = self->priv->default_ctx; -#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = self->priv->scaled_position; -#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = _tmp25_.x; -#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = *source_area; -#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = _tmp27_.left; -#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29_ = self->priv->scaled_position; -#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp30_ = _tmp29_.y; -#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp31_ = *source_area; -#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp32_ = _tmp31_.top; -#line 301 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_rectangle (_tmp24_, (gdouble) (_tmp26_ + _tmp28_), (gdouble) (_tmp30_ + _tmp32_), (gdouble) box_get_width (source_area), (gdouble) box_get_height (source_area)); -#line 304 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33_ = self->priv->default_ctx; -#line 304 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_fill (_tmp33_); -#line 305 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp34_ = self->priv->default_ctx; -#line 305 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_restore (_tmp34_); -#line 3452 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_draw_box (EditingToolsPhotoCanvas* self, - cairo_t* ctx, - Box* box) -{ - GdkRectangle rect = {0}; - GdkRectangle _tmp0_ = {0}; - gint _tmp1_; - GdkRectangle _tmp2_; - gint _tmp3_; - gint _tmp4_; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_; - gint _tmp8_; - GdkRectangle _tmp9_; - gint _tmp10_; - GdkRectangle _tmp11_; - gint _tmp12_; - GdkRectangle _tmp13_; - gint _tmp14_; -#line 308 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 308 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (ctx != NULL); -#line 308 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (box != NULL); -#line 309 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_get_rectangle (box, &_tmp0_); -#line 309 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - rect = _tmp0_; -#line 310 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = rect.x; -#line 310 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->scaled_position; -#line 310 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_.x; -#line 310 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - rect.x = _tmp1_ + _tmp3_; -#line 311 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = rect.y; -#line 311 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = self->priv->scaled_position; -#line 311 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_.y; -#line 311 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - rect.y = _tmp4_ + _tmp6_; -#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = rect; -#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = _tmp7_.x; -#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = rect; -#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_.y; -#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = rect; -#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _tmp11_.width; -#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = rect; -#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = _tmp13_.height; -#line 313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_rectangle (ctx, _tmp8_ + 0.5, _tmp10_ + 0.5, (gdouble) (_tmp12_ - 1), (gdouble) (_tmp14_ - 1)); -#line 314 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_stroke (ctx); -#line 3523 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_draw_text (EditingToolsPhotoCanvas* self, - cairo_t* ctx, - const gchar* text, - gint x, - gint y, - gboolean use_scaled_pos) -{ - cairo_text_extents_t extents = {0}; - cairo_text_extents_t _tmp4_ = {0}; - cairo_text_extents_t _tmp5_; - gdouble _tmp6_; - gint pane_border = 0; - cairo_text_extents_t _tmp7_; - gdouble _tmp8_; - cairo_text_extents_t _tmp9_; - gdouble _tmp10_; - cairo_text_extents_t _tmp11_; - gdouble _tmp12_; -#line 317 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 317 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (ctx != NULL); -#line 317 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (text != NULL); -#line 318 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (use_scaled_pos) { -#line 3554 "EditingTools.c" - GdkRectangle _tmp0_; - gint _tmp1_; - GdkRectangle _tmp2_; - gint _tmp3_; -#line 319 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->scaled_position; -#line 319 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_.x; -#line 319 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - x = x + _tmp1_; -#line 320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->scaled_position; -#line 320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_.y; -#line 320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - y = y + _tmp3_; -#line 3571 "EditingTools.c" - } -#line 323 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_text_extents (ctx, text, &_tmp4_); -#line 323 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - extents = _tmp4_; -#line 324 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = extents; -#line 324 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_.width; -#line 324 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - x = x - (((gint) _tmp6_) / 2); -#line 326 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - set_source_color_from_string (ctx, RESOURCES_ONIMAGE_FONT_BACKGROUND); -#line 328 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - pane_border = 5; -#line 329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = extents; -#line 329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = _tmp7_.height; -#line 329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = extents; -#line 329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_.width; -#line 329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = extents; -#line 329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _tmp11_.height; -#line 329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_rectangle (ctx, (gdouble) (x - pane_border), (y - pane_border) - _tmp8_, _tmp10_ + (2 * pane_border), _tmp12_ + (2 * pane_border)); -#line 332 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_fill (ctx); -#line 334 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_move_to (ctx, (gdouble) x, (gdouble) y); -#line 335 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - set_source_color_from_string (ctx, RESOURCES_ONIMAGE_FONT_COLOR); -#line 336 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_show_text (ctx, text); -#line 3609 "EditingTools.c" -} - - -/** - * Draw a horizontal line into the specified Cairo context at the specified position, taking - * into account the scaled position of the image unless directed otherwise. - * - * @param ctx The drawing context of the surface we're drawing to. - * @param x The horizontal position to place the line at. - * @param y The vertical position to place the line at. - * @param width The length of the line. - * @param use_scaled_pos Whether to use absolute window positioning or take into account the - * position of the scaled image. - */ -void -editing_tools_photo_canvas_draw_horizontal_line (EditingToolsPhotoCanvas* self, - cairo_t* ctx, - gint x, - gint y, - gint width, - gboolean use_scaled_pos) -{ -#line 350 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 350 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (ctx != NULL); -#line 351 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (use_scaled_pos) { -#line 3638 "EditingTools.c" - GdkRectangle _tmp0_; - gint _tmp1_; - GdkRectangle _tmp2_; - gint _tmp3_; -#line 352 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->scaled_position; -#line 352 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_.x; -#line 352 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - x = x + _tmp1_; -#line 353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->scaled_position; -#line 353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_.y; -#line 353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - y = y + _tmp3_; -#line 3655 "EditingTools.c" - } -#line 356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_move_to (ctx, x + 0.5, y + 0.5); -#line 357 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_line_to (ctx, (gdouble) ((x + width) - 1), y + 0.5); -#line 358 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_stroke (ctx); -#line 3663 "EditingTools.c" -} - - -/** - * Draw a vertical line into the specified Cairo context at the specified position, taking - * into account the scaled position of the image unless directed otherwise. - * - * @param ctx The drawing context of the surface we're drawing to. - * @param x The horizontal position to place the line at. - * @param y The vertical position to place the line at. - * @param width The length of the line. - * @param use_scaled_pos Whether to use absolute window positioning or take into account the - * position of the scaled image. - */ -void -editing_tools_photo_canvas_draw_vertical_line (EditingToolsPhotoCanvas* self, - cairo_t* ctx, - gint x, - gint y, - gint height, - gboolean use_scaled_pos) -{ -#line 372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (ctx != NULL); -#line 373 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (use_scaled_pos) { -#line 3692 "EditingTools.c" - GdkRectangle _tmp0_; - gint _tmp1_; - GdkRectangle _tmp2_; - gint _tmp3_; -#line 374 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->scaled_position; -#line 374 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_.x; -#line 374 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - x = x + _tmp1_; -#line 375 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->scaled_position; -#line 375 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_.y; -#line 375 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - y = y + _tmp3_; -#line 3709 "EditingTools.c" - } -#line 378 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_move_to (ctx, x + 0.5, y + 0.5); -#line 379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_line_to (ctx, x + 0.5, (gdouble) ((y + height) - 1)); -#line 380 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_stroke (ctx); -#line 3717 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_erase_horizontal_line (EditingToolsPhotoCanvas* self, - gint x, - gint y, - gint width) -{ - cairo_t* _tmp0_; - cairo_t* _tmp1_; - cairo_t* _tmp2_; - cairo_surface_t* _tmp3_; - GdkRectangle _tmp4_; - gint _tmp5_; - GdkRectangle _tmp6_; - gint _tmp7_; - cairo_t* _tmp8_; - GdkRectangle _tmp9_; - gint _tmp10_; - GdkRectangle _tmp11_; - gint _tmp12_; - cairo_t* _tmp13_; - cairo_t* _tmp14_; -#line 383 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 384 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->default_ctx; -#line 384 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_save (_tmp0_); -#line 386 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->default_ctx; -#line 386 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_operator (_tmp1_, CAIRO_OPERATOR_SOURCE); -#line 387 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->default_ctx; -#line 387 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->scaled; -#line 387 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->scaled_position; -#line 387 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_.x; -#line 387 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = self->priv->scaled_position; -#line 387 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_.y; -#line 387 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_source_surface (_tmp2_, _tmp3_, (gdouble) _tmp5_, (gdouble) _tmp7_); -#line 388 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = self->priv->default_ctx; -#line 388 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->scaled_position; -#line 388 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_.x; -#line 388 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = self->priv->scaled_position; -#line 388 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _tmp11_.y; -#line 388 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_rectangle (_tmp8_, (gdouble) (_tmp10_ + x), (gdouble) (_tmp12_ + y), (gdouble) (width - 1), (gdouble) 1); -#line 390 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = self->priv->default_ctx; -#line 390 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_fill (_tmp13_); -#line 392 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = self->priv->default_ctx; -#line 392 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_restore (_tmp14_); -#line 3786 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_draw_circle (EditingToolsPhotoCanvas* self, - cairo_t* ctx, - gint active_center_x, - gint active_center_y, - gint radius) -{ - gint center_x = 0; - GdkRectangle _tmp0_; - gint _tmp1_; - gint center_y = 0; - GdkRectangle _tmp2_; - gint _tmp3_; -#line 395 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 395 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (ctx != NULL); -#line 397 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->scaled_position; -#line 397 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_.x; -#line 397 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - center_x = active_center_x + _tmp1_; -#line 398 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->scaled_position; -#line 398 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_.y; -#line 398 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - center_y = active_center_y + _tmp3_; -#line 400 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_arc (ctx, (gdouble) center_x, (gdouble) center_y, (gdouble) radius, (gdouble) 0, 2 * G_PI); -#line 401 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_stroke (ctx); -#line 3823 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_erase_vertical_line (EditingToolsPhotoCanvas* self, - gint x, - gint y, - gint height) -{ - cairo_t* _tmp0_; - cairo_t* _tmp1_; - cairo_t* _tmp2_; - cairo_surface_t* _tmp3_; - GdkRectangle _tmp4_; - gint _tmp5_; - GdkRectangle _tmp6_; - gint _tmp7_; - cairo_t* _tmp8_; - GdkRectangle _tmp9_; - gint _tmp10_; - GdkRectangle _tmp11_; - gint _tmp12_; - cairo_t* _tmp13_; - cairo_t* _tmp14_; -#line 404 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 405 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->default_ctx; -#line 405 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_save (_tmp0_); -#line 411 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->default_ctx; -#line 411 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_operator (_tmp1_, CAIRO_OPERATOR_SOURCE); -#line 412 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->default_ctx; -#line 412 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->scaled; -#line 412 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->scaled_position; -#line 412 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_.x; -#line 412 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = self->priv->scaled_position; -#line 412 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_.y; -#line 412 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_source_surface (_tmp2_, _tmp3_, (gdouble) _tmp5_, (gdouble) _tmp7_); -#line 413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = self->priv->default_ctx; -#line 413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->scaled_position; -#line 413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_.x; -#line 413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = self->priv->scaled_position; -#line 413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _tmp11_.y; -#line 413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_rectangle (_tmp8_, (gdouble) (_tmp10_ + x), (gdouble) (_tmp12_ + y), (gdouble) 1, (gdouble) height); -#line 415 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = self->priv->default_ctx; -#line 415 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_fill (_tmp13_); -#line 417 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = self->priv->default_ctx; -#line 417 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_restore (_tmp14_); -#line 3892 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_erase_box (EditingToolsPhotoCanvas* self, - Box* box) -{ - Box _tmp0_; - gint _tmp1_; - Box _tmp2_; - gint _tmp3_; - Box _tmp4_; - gint _tmp5_; - Box _tmp6_; - gint _tmp7_; - Box _tmp8_; - gint _tmp9_; - Box _tmp10_; - gint _tmp11_; - Box _tmp12_; - gint _tmp13_; - Box _tmp14_; - gint _tmp15_; -#line 420 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 420 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (box != NULL); -#line 421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = *box; -#line 421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_.left; -#line 421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = *box; -#line 421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_.top; -#line 421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_erase_horizontal_line (self, _tmp1_, _tmp3_, box_get_width (box)); -#line 422 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = *box; -#line 422 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_.left; -#line 422 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = *box; -#line 422 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_.bottom; -#line 422 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_erase_horizontal_line (self, _tmp5_, _tmp7_, box_get_width (box)); -#line 424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = *box; -#line 424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = _tmp8_.left; -#line 424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = *box; -#line 424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _tmp10_.top; -#line 424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_erase_vertical_line (self, _tmp9_, _tmp11_, box_get_height (box)); -#line 425 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = *box; -#line 425 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_.right; -#line 425 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = *box; -#line 425 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = _tmp14_.top; -#line 425 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_erase_vertical_line (self, _tmp13_, _tmp15_, box_get_height (box)); -#line 3960 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_invalidate_area (EditingToolsPhotoCanvas* self, - Box* area) -{ - GdkRectangle rect = {0}; - GdkRectangle _tmp0_ = {0}; - gint _tmp1_; - GdkRectangle _tmp2_; - gint _tmp3_; - gint _tmp4_; - GdkRectangle _tmp5_; - gint _tmp6_; - GdkWindow* _tmp7_; - GdkRectangle _tmp8_; -#line 428 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self)); -#line 428 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (area != NULL); -#line 429 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_get_rectangle (area, &_tmp0_); -#line 429 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - rect = _tmp0_; -#line 430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = rect.x; -#line 430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->scaled_position; -#line 430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_.x; -#line 430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - rect.x = _tmp1_ + _tmp3_; -#line 431 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = rect.y; -#line 431 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = self->priv->scaled_position; -#line 431 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_.y; -#line 431 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - rect.y = _tmp4_ + _tmp6_; -#line 433 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = self->priv->drawing_window; -#line 433 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = rect; -#line 433 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gdk_window_invalidate_rect (_tmp7_, &_tmp8_, FALSE); -#line 4008 "EditingTools.c" -} - - -static cairo_surface_t* -editing_tools_photo_canvas_pixbuf_to_surface (EditingToolsPhotoCanvas* self, - cairo_t* default_ctx, - GdkPixbuf* pixbuf, - GdkRectangle* pos) -{ - cairo_surface_t* result = NULL; - cairo_surface_t* surface = NULL; - cairo_surface_t* _tmp0_; - GdkRectangle _tmp1_; - gint _tmp2_; - GdkRectangle _tmp3_; - gint _tmp4_; - cairo_surface_t* _tmp5_; - cairo_t* ctx = NULL; - cairo_t* _tmp6_; -#line 436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (self), NULL); -#line 436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (default_ctx != NULL, NULL); -#line 436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL); -#line 436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (pos != NULL, NULL); -#line 438 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = cairo_get_target (default_ctx); -#line 438 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = *pos; -#line 438 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_.width; -#line 438 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = *pos; -#line 438 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_.height; -#line 438 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = cairo_surface_create_similar (_tmp0_, CAIRO_CONTENT_COLOR_ALPHA, _tmp2_, _tmp4_); -#line 438 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - surface = _tmp5_; -#line 440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = cairo_create (surface); -#line 440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ctx = _tmp6_; -#line 441 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - paint_pixmap_with_background (ctx, pixbuf, 0, 0); -#line 442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_paint (ctx); -#line 443 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = surface; -#line 443 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (ctx); -#line 443 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 4064 "EditingTools.c" -} - - -static void -g_cclosure_user_marshal_VOID__POINTER_BOXED (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__POINTER_BOXED) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2); - register GMarshalFunc_VOID__POINTER_BOXED callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (n_param_values == 3); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - data1 = closure->data; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - data2 = param_values->data[0].v_pointer; -#line 4090 "EditingTools.c" - } else { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - data1 = param_values->data[0].v_pointer; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - data2 = closure->data; -#line 4096 "EditingTools.c" - } -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - callback = (GMarshalFunc_VOID__POINTER_BOXED) (marshal_data ? marshal_data : cc->callback); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - callback (data1, g_value_get_pointer (param_values + 1), g_value_get_boxed (param_values + 2), data2); -#line 4102 "EditingTools.c" -} - - -static void -g_cclosure_user_marshal_VOID__BOXED_OBJECT_BOXED (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__BOXED_OBJECT_BOXED) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer arg_3, gpointer data2); - register GMarshalFunc_VOID__BOXED_OBJECT_BOXED callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (n_param_values == 4); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - data1 = closure->data; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - data2 = param_values->data[0].v_pointer; -#line 4128 "EditingTools.c" - } else { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - data1 = param_values->data[0].v_pointer; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - data2 = closure->data; -#line 4134 "EditingTools.c" - } -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - callback = (GMarshalFunc_VOID__BOXED_OBJECT_BOXED) (marshal_data ? marshal_data : cc->callback); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - callback (data1, g_value_get_boxed (param_values + 1), g_value_get_object (param_values + 2), g_value_get_boxed (param_values + 3), data2); -#line 4140 "EditingTools.c" -} - - -static void -editing_tools_value_photo_canvas_init (GValue* value) -{ -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = NULL; -#line 4149 "EditingTools.c" -} - - -static void -editing_tools_value_photo_canvas_free_value (GValue* value) -{ -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (value->data[0].v_pointer) { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_unref (value->data[0].v_pointer); -#line 4160 "EditingTools.c" - } -} - - -static void -editing_tools_value_photo_canvas_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (src_value->data[0].v_pointer) { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - dest_value->data[0].v_pointer = editing_tools_photo_canvas_ref (src_value->data[0].v_pointer); -#line 4173 "EditingTools.c" - } else { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - dest_value->data[0].v_pointer = NULL; -#line 4177 "EditingTools.c" - } -} - - -static gpointer -editing_tools_value_photo_canvas_peek_pointer (const GValue* value) -{ -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return value->data[0].v_pointer; -#line 4187 "EditingTools.c" -} - - -static gchar* -editing_tools_value_photo_canvas_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (collect_values[0].v_pointer) { -#line 4199 "EditingTools.c" - EditingToolsPhotoCanvas * object; - object = collect_values[0].v_pointer; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (object->parent_instance.g_class == NULL) { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4206 "EditingTools.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4210 "EditingTools.c" - } -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = editing_tools_photo_canvas_ref (object); -#line 4214 "EditingTools.c" - } else { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = NULL; -#line 4218 "EditingTools.c" - } -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return NULL; -#line 4222 "EditingTools.c" -} - - -static gchar* -editing_tools_value_photo_canvas_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - EditingToolsPhotoCanvas ** object_p; - object_p = collect_values[0].v_pointer; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!object_p) { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 4238 "EditingTools.c" - } -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!value->data[0].v_pointer) { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *object_p = NULL; -#line 4244 "EditingTools.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *object_p = value->data[0].v_pointer; -#line 4248 "EditingTools.c" - } else { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *object_p = editing_tools_photo_canvas_ref (value->data[0].v_pointer); -#line 4252 "EditingTools.c" - } -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return NULL; -#line 4256 "EditingTools.c" -} - - -GParamSpec* -editing_tools_param_spec_photo_canvas (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - EditingToolsParamSpecPhotoCanvas* spec; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (g_type_is_a (object_type, EDITING_TOOLS_TYPE_PHOTO_CANVAS), NULL); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return G_PARAM_SPEC (spec); -#line 4276 "EditingTools.c" -} - - -gpointer -editing_tools_value_get_photo_canvas (const GValue* value) -{ -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_TYPE_PHOTO_CANVAS), NULL); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return value->data[0].v_pointer; -#line 4287 "EditingTools.c" -} - - -void -editing_tools_value_set_photo_canvas (GValue* value, - gpointer v_object) -{ - EditingToolsPhotoCanvas * old; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_TYPE_PHOTO_CANVAS)); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - old = value->data[0].v_pointer; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (v_object) { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EDITING_TOOLS_TYPE_PHOTO_CANVAS)); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = v_object; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_ref (value->data[0].v_pointer); -#line 4310 "EditingTools.c" - } else { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = NULL; -#line 4314 "EditingTools.c" - } -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (old) { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_unref (old); -#line 4320 "EditingTools.c" - } -} - - -void -editing_tools_value_take_photo_canvas (GValue* value, - gpointer v_object) -{ - EditingToolsPhotoCanvas * old; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_TYPE_PHOTO_CANVAS)); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - old = value->data[0].v_pointer; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (v_object) { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EDITING_TOOLS_TYPE_PHOTO_CANVAS)); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = v_object; -#line 4342 "EditingTools.c" - } else { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = NULL; -#line 4346 "EditingTools.c" - } -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (old) { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_unref (old); -#line 4352 "EditingTools.c" - } -} - - -static void -editing_tools_photo_canvas_class_init (EditingToolsPhotoCanvasClass * klass) -{ -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_parent_class = g_type_class_peek_parent (klass); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsPhotoCanvasClass *) klass)->finalize = editing_tools_photo_canvas_finalize; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_type_class_add_private (klass, sizeof (EditingToolsPhotoCanvasPrivate)); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsPhotoCanvasClass *) klass)->repaint = (void (*) (EditingToolsPhotoCanvas *)) editing_tools_photo_canvas_real_repaint; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_signals[EDITING_TOOLS_PHOTO_CANVAS_NEW_SURFACE_SIGNAL] = g_signal_new ("new-surface", EDITING_TOOLS_TYPE_PHOTO_CANVAS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__POINTER_BOXED, G_TYPE_NONE, 2, G_TYPE_POINTER, TYPE_DIMENSIONS); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_signals[EDITING_TOOLS_PHOTO_CANVAS_RESIZED_SCALED_PIXBUF_SIGNAL] = g_signal_new ("resized-scaled-pixbuf", EDITING_TOOLS_TYPE_PHOTO_CANVAS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__BOXED_OBJECT_BOXED, G_TYPE_NONE, 3, TYPE_DIMENSIONS, gdk_pixbuf_get_type (), gdk_rectangle_get_type ()); -#line 4372 "EditingTools.c" -} - - -static void -editing_tools_photo_canvas_instance_init (EditingToolsPhotoCanvas * self) -{ -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv = EDITING_TOOLS_PHOTO_CANVAS_GET_PRIVATE (self); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->ref_count = 1; -#line 4383 "EditingTools.c" -} - - -static void -editing_tools_photo_canvas_finalize (EditingToolsPhotoCanvas * obj) -{ - EditingToolsPhotoCanvas * self; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvas); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_destroy (self); -#line 104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->container); -#line 105 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->drawing_window); -#line 106 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->photo); -#line 107 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (self->priv->default_ctx); -#line 109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_surface_destroy0 (self->priv->scaled); -#line 110 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->scaled_pixbuf); -#line 4407 "EditingTools.c" -} - - -GType -editing_tools_photo_canvas_get_type (void) -{ - static volatile gsize editing_tools_photo_canvas_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_photo_canvas_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { editing_tools_value_photo_canvas_init, editing_tools_value_photo_canvas_free_value, editing_tools_value_photo_canvas_copy_value, editing_tools_value_photo_canvas_peek_pointer, "p", editing_tools_value_photo_canvas_collect_value, "p", editing_tools_value_photo_canvas_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (EditingToolsPhotoCanvasClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_photo_canvas_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsPhotoCanvas), 0, (GInstanceInitFunc) editing_tools_photo_canvas_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType editing_tools_photo_canvas_type_id; - editing_tools_photo_canvas_type_id = g_type_register_fundamental (g_type_fundamental_next (), "EditingToolsPhotoCanvas", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&editing_tools_photo_canvas_type_id__volatile, editing_tools_photo_canvas_type_id); - } - return editing_tools_photo_canvas_type_id__volatile; -} - - -gpointer -editing_tools_photo_canvas_ref (gpointer instance) -{ - EditingToolsPhotoCanvas * self; - self = instance; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_atomic_int_inc (&self->ref_count); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return instance; -#line 4436 "EditingTools.c" -} - - -void -editing_tools_photo_canvas_unref (gpointer instance) -{ - EditingToolsPhotoCanvas * self; - self = instance; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_PHOTO_CANVAS_GET_CLASS (self)->finalize (self); -#line 103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 4451 "EditingTools.c" - } -} - - -EditingToolsEditingTool* -editing_tools_editing_tool_construct (GType object_type, - const gchar* name) -{ - EditingToolsEditingTool* self = NULL; - gchar* _tmp0_; -#line 468 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 468 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = (EditingToolsEditingTool*) g_type_create_instance (object_type); -#line 469 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = g_strdup (name); -#line 469 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (self->name); -#line 469 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->name = _tmp0_; -#line 468 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self; -#line 4474 "EditingTools.c" -} - - -static gpointer -_editing_tools_photo_canvas_ref0 (gpointer self) -{ -#line 481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self ? editing_tools_photo_canvas_ref (self) : NULL; -#line 4483 "EditingTools.c" -} - - -static gboolean -_editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event (GtkWidget* _sender, - GdkEventKey* event, - gpointer self) -{ - gboolean result; - result = editing_tools_editing_tool_on_keypress ((EditingToolsEditingTool*) self, event); -#line 485 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 4496 "EditingTools.c" -} - - -static void -editing_tools_editing_tool_real_activate (EditingToolsEditingTool* self, - EditingToolsPhotoCanvas* canvas) -{ - EditingToolsPhotoCanvas* _tmp0_; - EditingToolsEditingToolWindow* _tmp1_; - EditingToolsPhotoCanvas* _tmp2_; - EditingToolsEditingToolWindow* _tmp3_; - EditingToolsEditingToolWindow* _tmp4_; -#line 476 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas)); -#line 478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->canvas; -#line 478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_assert (_tmp0_ == NULL, "this.canvas == null"); -#line 479 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->tool_window; -#line 479 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_assert (_tmp1_ == NULL, "tool_window == null"); -#line 481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _editing_tools_photo_canvas_ref0 (canvas); -#line 481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _editing_tools_photo_canvas_unref0 (self->canvas); -#line 481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->canvas = _tmp2_; -#line 483 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = editing_tools_editing_tool_get_tool_window (self); -#line 483 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->tool_window); -#line 483 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->tool_window = _tmp3_; -#line 484 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->tool_window; -#line 484 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp4_ != NULL) { -#line 4535 "EditingTools.c" - EditingToolsEditingToolWindow* _tmp5_; -#line 485 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = self->priv->tool_window; -#line 485 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), "key-press-event", (GCallback) _editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event, self); -#line 4541 "EditingTools.c" - } -#line 487 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_emit (self, editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_ACTIVATED_SIGNAL], 0); -#line 4545 "EditingTools.c" -} - - -void -editing_tools_editing_tool_activate (EditingToolsEditingTool* self, - EditingToolsPhotoCanvas* canvas) -{ -#line 476 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self)); -#line 476 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->activate (self, canvas); -#line 4557 "EditingTools.c" -} - - -static void -editing_tools_editing_tool_real_deactivate (EditingToolsEditingTool* self) -{ - gboolean _tmp0_ = FALSE; - EditingToolsPhotoCanvas* _tmp1_; - EditingToolsEditingToolWindow* _tmp3_; -#line 493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->canvas; -#line 493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp1_ == NULL) { -#line 4571 "EditingTools.c" - EditingToolsEditingToolWindow* _tmp2_; -#line 493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->tool_window; -#line 493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = _tmp2_ == NULL; -#line 4577 "EditingTools.c" - } else { -#line 493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = FALSE; -#line 4581 "EditingTools.c" - } -#line 493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_) { -#line 494 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 4587 "EditingTools.c" - } -#line 496 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _editing_tools_photo_canvas_unref0 (self->canvas); -#line 496 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->canvas = NULL; -#line 498 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->tool_window; -#line 498 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp3_ != NULL) { -#line 4597 "EditingTools.c" - EditingToolsEditingToolWindow* _tmp4_; - guint _tmp5_; -#line 499 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->tool_window; -#line 499 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("key-press-event", gtk_widget_get_type (), &_tmp5_, NULL, FALSE); -#line 499 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event, self); -#line 500 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->tool_window); -#line 500 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->tool_window = NULL; -#line 4610 "EditingTools.c" - } -#line 503 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_emit (self, editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_DEACTIVATED_SIGNAL], 0); -#line 4614 "EditingTools.c" -} - - -void -editing_tools_editing_tool_deactivate (EditingToolsEditingTool* self) -{ -#line 491 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self)); -#line 491 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->deactivate (self); -#line 4625 "EditingTools.c" -} - - -gboolean -editing_tools_editing_tool_is_activated (EditingToolsEditingTool* self) -{ - gboolean result = FALSE; - EditingToolsPhotoCanvas* _tmp0_; -#line 506 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self), FALSE); -#line 507 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->canvas; -#line 507 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp0_ != NULL; -#line 507 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 4642 "EditingTools.c" -} - - -static EditingToolsEditingToolWindow* -editing_tools_editing_tool_real_get_tool_window (EditingToolsEditingTool* self) -{ - EditingToolsEditingToolWindow* result = NULL; -#line 511 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = NULL; -#line 511 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 4654 "EditingTools.c" -} - - -EditingToolsEditingToolWindow* -editing_tools_editing_tool_get_tool_window (EditingToolsEditingTool* self) -{ -#line 510 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self), NULL); -#line 510 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->get_tool_window (self); -#line 4665 "EditingTools.c" -} - - -static GdkPixbuf* -editing_tools_editing_tool_real_get_display_pixbuf (EditingToolsEditingTool* self, - Scaling* scaling, - Photo* photo, - Dimensions* max_dim, - GError** error) -{ - Dimensions _vala_max_dim = {0}; - GdkPixbuf* result = NULL; -#line 525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 527 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - dimensions_init (&_vala_max_dim, 0, 0); -#line 529 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = NULL; -#line 529 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (max_dim) { -#line 529 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *max_dim = _vala_max_dim; -#line 4690 "EditingTools.c" - } -#line 529 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 4694 "EditingTools.c" -} - - -GdkPixbuf* -editing_tools_editing_tool_get_display_pixbuf (EditingToolsEditingTool* self, - Scaling* scaling, - Photo* photo, - Dimensions* max_dim, - GError** error) -{ -#line 525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self), NULL); -#line 525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->get_display_pixbuf (self, scaling, photo, max_dim, error); -#line 4709 "EditingTools.c" -} - - -static void -editing_tools_editing_tool_real_on_left_click (EditingToolsEditingTool* self, - gint x, - gint y) -{ -} - - -void -editing_tools_editing_tool_on_left_click (EditingToolsEditingTool* self, - gint x, - gint y) -{ -#line 532 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self)); -#line 532 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->on_left_click (self, x, y); -#line 4730 "EditingTools.c" -} - - -static void -editing_tools_editing_tool_real_on_left_released (EditingToolsEditingTool* self, - gint x, - gint y) -{ -} - - -void -editing_tools_editing_tool_on_left_released (EditingToolsEditingTool* self, - gint x, - gint y) -{ -#line 535 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self)); -#line 535 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->on_left_released (self, x, y); -#line 4751 "EditingTools.c" -} - - -static void -editing_tools_editing_tool_real_on_motion (EditingToolsEditingTool* self, - gint x, - gint y, - GdkModifierType mask) -{ -} - - -void -editing_tools_editing_tool_on_motion (EditingToolsEditingTool* self, - gint x, - gint y, - GdkModifierType mask) -{ -#line 538 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self)); -#line 538 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->on_motion (self, x, y, mask); -#line 4774 "EditingTools.c" -} - - -static gboolean -editing_tools_editing_tool_real_on_leave_notify_event (EditingToolsEditingTool* self) -{ - gboolean result = FALSE; -#line 542 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = FALSE; -#line 542 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 4786 "EditingTools.c" -} - - -gboolean -editing_tools_editing_tool_on_leave_notify_event (EditingToolsEditingTool* self) -{ -#line 541 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self), FALSE); -#line 541 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->on_leave_notify_event (self); -#line 4797 "EditingTools.c" -} - - -static gboolean -editing_tools_editing_tool_real_on_keypress (EditingToolsEditingTool* self, - GdkEventKey* event) -{ - gboolean result = FALSE; - guint _tmp0_; - const gchar* _tmp1_; -#line 545 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 547 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = event->keyval; -#line 547 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = gdk_keyval_name (_tmp0_); -#line 547 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (g_strcmp0 (_tmp1_, "Escape") == 0) { -#line 548 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_editing_tool_notify_cancel (self); -#line 550 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = TRUE; -#line 550 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 4822 "EditingTools.c" - } -#line 553 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = FALSE; -#line 553 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 4828 "EditingTools.c" -} - - -gboolean -editing_tools_editing_tool_on_keypress (EditingToolsEditingTool* self, - GdkEventKey* event) -{ -#line 545 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self), FALSE); -#line 545 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->on_keypress (self, event); -#line 4840 "EditingTools.c" -} - - -static void -editing_tools_editing_tool_real_paint (EditingToolsEditingTool* self, - cairo_t* ctx) -{ -#line 556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (ctx != NULL); -#line 4850 "EditingTools.c" -} - - -void -editing_tools_editing_tool_paint (EditingToolsEditingTool* self, - cairo_t* ctx) -{ -#line 556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self)); -#line 556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->paint (self, ctx); -#line 4862 "EditingTools.c" -} - - -void -editing_tools_editing_tool_notify_cancel (EditingToolsEditingTool* self) -{ -#line 560 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_EDITING_TOOL (self)); -#line 561 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_emit (self, editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_CANCELLED_SIGNAL], 0); -#line 4873 "EditingTools.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOXED_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT_BOXED_BOOLEAN) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer arg_3, gboolean arg_4, gpointer data2); - register GMarshalFunc_VOID__OBJECT_OBJECT_BOXED_BOOLEAN callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (n_param_values == 5); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - data1 = closure->data; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - data2 = param_values->data[0].v_pointer; -#line 4899 "EditingTools.c" - } else { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - data1 = param_values->data[0].v_pointer; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - data2 = closure->data; -#line 4905 "EditingTools.c" - } -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - callback = (GMarshalFunc_VOID__OBJECT_OBJECT_BOXED_BOOLEAN) (marshal_data ? marshal_data : cc->callback); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), g_value_get_boxed (param_values + 3), g_value_get_boolean (param_values + 4), data2); -#line 4911 "EditingTools.c" -} - - -static void -editing_tools_value_editing_tool_init (GValue* value) -{ -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = NULL; -#line 4920 "EditingTools.c" -} - - -static void -editing_tools_value_editing_tool_free_value (GValue* value) -{ -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (value->data[0].v_pointer) { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_editing_tool_unref (value->data[0].v_pointer); -#line 4931 "EditingTools.c" - } -} - - -static void -editing_tools_value_editing_tool_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (src_value->data[0].v_pointer) { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - dest_value->data[0].v_pointer = editing_tools_editing_tool_ref (src_value->data[0].v_pointer); -#line 4944 "EditingTools.c" - } else { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - dest_value->data[0].v_pointer = NULL; -#line 4948 "EditingTools.c" - } -} - - -static gpointer -editing_tools_value_editing_tool_peek_pointer (const GValue* value) -{ -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return value->data[0].v_pointer; -#line 4958 "EditingTools.c" -} - - -static gchar* -editing_tools_value_editing_tool_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (collect_values[0].v_pointer) { -#line 4970 "EditingTools.c" - EditingToolsEditingTool * object; - object = collect_values[0].v_pointer; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (object->parent_instance.g_class == NULL) { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4977 "EditingTools.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 4981 "EditingTools.c" - } -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = editing_tools_editing_tool_ref (object); -#line 4985 "EditingTools.c" - } else { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = NULL; -#line 4989 "EditingTools.c" - } -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return NULL; -#line 4993 "EditingTools.c" -} - - -static gchar* -editing_tools_value_editing_tool_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - EditingToolsEditingTool ** object_p; - object_p = collect_values[0].v_pointer; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!object_p) { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 5009 "EditingTools.c" - } -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!value->data[0].v_pointer) { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *object_p = NULL; -#line 5015 "EditingTools.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *object_p = value->data[0].v_pointer; -#line 5019 "EditingTools.c" - } else { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *object_p = editing_tools_editing_tool_ref (value->data[0].v_pointer); -#line 5023 "EditingTools.c" - } -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return NULL; -#line 5027 "EditingTools.c" -} - - -GParamSpec* -editing_tools_param_spec_editing_tool (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - EditingToolsParamSpecEditingTool* spec; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (g_type_is_a (object_type, EDITING_TOOLS_TYPE_EDITING_TOOL), NULL); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return G_PARAM_SPEC (spec); -#line 5047 "EditingTools.c" -} - - -gpointer -editing_tools_value_get_editing_tool (const GValue* value) -{ -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_TYPE_EDITING_TOOL), NULL); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return value->data[0].v_pointer; -#line 5058 "EditingTools.c" -} - - -void -editing_tools_value_set_editing_tool (GValue* value, - gpointer v_object) -{ - EditingToolsEditingTool * old; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_TYPE_EDITING_TOOL)); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - old = value->data[0].v_pointer; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (v_object) { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EDITING_TOOLS_TYPE_EDITING_TOOL)); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = v_object; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_editing_tool_ref (value->data[0].v_pointer); -#line 5081 "EditingTools.c" - } else { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = NULL; -#line 5085 "EditingTools.c" - } -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (old) { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_editing_tool_unref (old); -#line 5091 "EditingTools.c" - } -} - - -void -editing_tools_value_take_editing_tool (GValue* value, - gpointer v_object) -{ - EditingToolsEditingTool * old; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_TYPE_EDITING_TOOL)); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - old = value->data[0].v_pointer; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (v_object) { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EDITING_TOOLS_TYPE_EDITING_TOOL)); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = v_object; -#line 5113 "EditingTools.c" - } else { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = NULL; -#line 5117 "EditingTools.c" - } -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (old) { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_editing_tool_unref (old); -#line 5123 "EditingTools.c" - } -} - - -static void -editing_tools_editing_tool_class_init (EditingToolsEditingToolClass * klass) -{ -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_editing_tool_parent_class = g_type_class_peek_parent (klass); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->finalize = editing_tools_editing_tool_finalize; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_type_class_add_private (klass, sizeof (EditingToolsEditingToolPrivate)); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->activate = (void (*) (EditingToolsEditingTool *, EditingToolsPhotoCanvas*)) editing_tools_editing_tool_real_activate; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->deactivate = (void (*) (EditingToolsEditingTool *)) editing_tools_editing_tool_real_deactivate; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->get_tool_window = (EditingToolsEditingToolWindow* (*) (EditingToolsEditingTool *)) editing_tools_editing_tool_real_get_tool_window; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->get_display_pixbuf = (GdkPixbuf* (*) (EditingToolsEditingTool *, Scaling*, Photo*, Dimensions*, GError**)) editing_tools_editing_tool_real_get_display_pixbuf; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->on_left_click = (void (*) (EditingToolsEditingTool *, gint, gint)) editing_tools_editing_tool_real_on_left_click; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->on_left_released = (void (*) (EditingToolsEditingTool *, gint, gint)) editing_tools_editing_tool_real_on_left_released; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->on_motion = (void (*) (EditingToolsEditingTool *, gint, gint, GdkModifierType)) editing_tools_editing_tool_real_on_motion; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->on_leave_notify_event = (gboolean (*) (EditingToolsEditingTool *)) editing_tools_editing_tool_real_on_leave_notify_event; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->on_keypress = (gboolean (*) (EditingToolsEditingTool *, GdkEventKey*)) editing_tools_editing_tool_real_on_keypress; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->paint = (void (*) (EditingToolsEditingTool *, cairo_t*)) editing_tools_editing_tool_real_paint; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_ACTIVATED_SIGNAL] = g_signal_new ("activated", EDITING_TOOLS_TYPE_EDITING_TOOL, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_DEACTIVATED_SIGNAL] = g_signal_new ("deactivated", EDITING_TOOLS_TYPE_EDITING_TOOL, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_APPLIED_SIGNAL] = g_signal_new ("applied", EDITING_TOOLS_TYPE_EDITING_TOOL, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT_BOXED_BOOLEAN, G_TYPE_NONE, 4, TYPE_COMMAND, gdk_pixbuf_get_type (), TYPE_DIMENSIONS, G_TYPE_BOOLEAN); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_CANCELLED_SIGNAL] = g_signal_new ("cancelled", EDITING_TOOLS_TYPE_EDITING_TOOL, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_ABORTED_SIGNAL] = g_signal_new ("aborted", EDITING_TOOLS_TYPE_EDITING_TOOL, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 5167 "EditingTools.c" -} - - -static void -editing_tools_editing_tool_instance_init (EditingToolsEditingTool * self) -{ -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv = EDITING_TOOLS_EDITING_TOOL_GET_PRIVATE (self); -#line 448 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->canvas = NULL; -#line 450 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->tool_window = NULL; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->ref_count = 1; -#line 5182 "EditingTools.c" -} - - -static void -editing_tools_editing_tool_finalize (EditingToolsEditingTool * obj) -{ - EditingToolsEditingTool * self; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_destroy (self); -#line 448 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _editing_tools_photo_canvas_unref0 (self->canvas); -#line 450 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->tool_window); -#line 451 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_surface_destroy0 (self->surface); -#line 452 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (self->name); -#line 5202 "EditingTools.c" -} - - -GType -editing_tools_editing_tool_get_type (void) -{ - static volatile gsize editing_tools_editing_tool_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_editing_tool_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { editing_tools_value_editing_tool_init, editing_tools_value_editing_tool_free_value, editing_tools_value_editing_tool_copy_value, editing_tools_value_editing_tool_peek_pointer, "p", editing_tools_value_editing_tool_collect_value, "p", editing_tools_value_editing_tool_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (EditingToolsEditingToolClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_editing_tool_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsEditingTool), 0, (GInstanceInitFunc) editing_tools_editing_tool_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType editing_tools_editing_tool_type_id; - editing_tools_editing_tool_type_id = g_type_register_fundamental (g_type_fundamental_next (), "EditingToolsEditingTool", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&editing_tools_editing_tool_type_id__volatile, editing_tools_editing_tool_type_id); - } - return editing_tools_editing_tool_type_id__volatile; -} - - -gpointer -editing_tools_editing_tool_ref (gpointer instance) -{ - EditingToolsEditingTool * self; - self = instance; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_atomic_int_inc (&self->ref_count); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return instance; -#line 5231 "EditingTools.c" -} - - -void -editing_tools_editing_tool_unref (gpointer instance) -{ - EditingToolsEditingTool * self; - self = instance; -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_EDITING_TOOL_GET_CLASS (self)->finalize (self); -#line 447 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 5246 "EditingTools.c" - } -} - - -static EditingToolsCropToolReticleOrientation -editing_tools_crop_tool_reticle_orientation_toggle (EditingToolsCropToolReticleOrientation self) -{ - EditingToolsCropToolReticleOrientation result = 0; - EditingToolsCropToolReticleOrientation _tmp0_ = 0; -#line 615 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (self == EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE) { -#line 615 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_PORTRAIT; -#line 5260 "EditingTools.c" - } else { -#line 616 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE; -#line 5264 "EditingTools.c" - } -#line 615 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp0_; -#line 615 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 5270 "EditingTools.c" -} - - -static GType -editing_tools_crop_tool_reticle_orientation_get_type (void) -{ - static volatile gsize editing_tools_crop_tool_reticle_orientation_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_crop_tool_reticle_orientation_type_id__volatile)) { - static const GEnumValue values[] = {{EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE, "EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE", "landscape"}, {EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_PORTRAIT, "EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_PORTRAIT", "portrait"}, {0, NULL, NULL}}; - GType editing_tools_crop_tool_reticle_orientation_type_id; - editing_tools_crop_tool_reticle_orientation_type_id = g_enum_register_static ("EditingToolsCropToolReticleOrientation", values); - g_once_init_leave (&editing_tools_crop_tool_reticle_orientation_type_id__volatile, editing_tools_crop_tool_reticle_orientation_type_id); - } - return editing_tools_crop_tool_reticle_orientation_type_id__volatile; -} - - -static GType -editing_tools_crop_tool_constraint_mode_get_type (void) -{ - static volatile gsize editing_tools_crop_tool_constraint_mode_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_crop_tool_constraint_mode_type_id__volatile)) { - static const GEnumValue values[] = {{EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_NORMAL, "EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_NORMAL", "normal"}, {EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_CUSTOM, "EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_CUSTOM", "custom"}, {0, NULL, NULL}}; - GType editing_tools_crop_tool_constraint_mode_type_id; - editing_tools_crop_tool_constraint_mode_type_id = g_enum_register_static ("EditingToolsCropToolConstraintMode", values); - g_once_init_leave (&editing_tools_crop_tool_constraint_mode_type_id__volatile, editing_tools_crop_tool_constraint_mode_type_id); - } - return editing_tools_crop_tool_constraint_mode_type_id__volatile; -} - - -static EditingToolsCropTool* -editing_tools_crop_tool_construct (GType object_type) -{ - EditingToolsCropTool* self = NULL; -#line 716 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = (EditingToolsCropTool*) editing_tools_editing_tool_construct (object_type, "CropTool"); -#line 715 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self; -#line 5310 "EditingTools.c" -} - - -static EditingToolsCropTool* -editing_tools_crop_tool_new (void) -{ -#line 715 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return editing_tools_crop_tool_construct (EDITING_TOOLS_TYPE_CROP_TOOL); -#line 5319 "EditingTools.c" -} - - -EditingToolsCropTool* -editing_tools_crop_tool_factory (void) -{ - EditingToolsCropTool* result = NULL; - EditingToolsCropTool* _tmp0_; -#line 720 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = editing_tools_crop_tool_new (); -#line 720 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp0_; -#line 720 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 5334 "EditingTools.c" -} - - -gboolean -editing_tools_crop_tool_is_available (Photo* photo, - Scaling* scaling) -{ - gboolean result = FALSE; - Dimensions dim = {0}; - Dimensions _tmp0_ = {0}; - Dimensions _tmp1_ = {0}; - gboolean _tmp2_ = FALSE; - Dimensions _tmp3_; - gint _tmp4_; -#line 723 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (IS_PHOTO (photo), FALSE); -#line 723 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (scaling != NULL, FALSE); -#line 724 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - photo_get_original_dimensions (photo, &_tmp0_); -#line 724 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - scaling_get_scaled_dimensions (scaling, &_tmp0_, &_tmp1_); -#line 724 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - dim = _tmp1_; -#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = dim; -#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_.width; -#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp4_ > EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE) { -#line 5365 "EditingTools.c" - Dimensions _tmp5_; - gint _tmp6_; -#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = dim; -#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_.height; -#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp6_ > EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE; -#line 5374 "EditingTools.c" - } else { -#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = FALSE; -#line 5378 "EditingTools.c" - } -#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp2_; -#line 726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 5384 "EditingTools.c" -} - - -static void -_vala_array_add7 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5400 "EditingTools.c" - } -#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5406 "EditingTools.c" -} - - -static void -_vala_array_add8 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5422 "EditingTools.c" - } -#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5428 "EditingTools.c" -} - - -static void -_vala_array_add9 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5444 "EditingTools.c" - } -#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5450 "EditingTools.c" -} - - -static void -_vala_array_add10 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5466 "EditingTools.c" - } -#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5472 "EditingTools.c" -} - - -static void -_vala_array_add11 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5488 "EditingTools.c" - } -#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5494 "EditingTools.c" -} - - -static void -_vala_array_add12 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5510 "EditingTools.c" - } -#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5516 "EditingTools.c" -} - - -static void -_vala_array_add13 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5532 "EditingTools.c" - } -#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5538 "EditingTools.c" -} - - -static void -_vala_array_add14 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5554 "EditingTools.c" - } -#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5560 "EditingTools.c" -} - - -static void -_vala_array_add15 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5576 "EditingTools.c" - } -#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5582 "EditingTools.c" -} - - -static void -_vala_array_add16 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5598 "EditingTools.c" - } -#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5604 "EditingTools.c" -} - - -static void -_vala_array_add17 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5620 "EditingTools.c" - } -#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5626 "EditingTools.c" -} - - -static void -_vala_array_add18 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5642 "EditingTools.c" - } -#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5648 "EditingTools.c" -} - - -static void -_vala_array_add19 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5664 "EditingTools.c" - } -#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5670 "EditingTools.c" -} - - -static void -_vala_array_add20 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5686 "EditingTools.c" - } -#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5692 "EditingTools.c" -} - - -static void -_vala_array_add21 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5708 "EditingTools.c" - } -#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5714 "EditingTools.c" -} - - -static void -_vala_array_add22 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5730 "EditingTools.c" - } -#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5736 "EditingTools.c" -} - - -static void -_vala_array_add23 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5752 "EditingTools.c" - } -#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5758 "EditingTools.c" -} - - -static void -_vala_array_add24 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5774 "EditingTools.c" - } -#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5780 "EditingTools.c" -} - - -static void -_vala_array_add25 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5796 "EditingTools.c" - } -#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5802 "EditingTools.c" -} - - -static void -_vala_array_add26 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5818 "EditingTools.c" - } -#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5824 "EditingTools.c" -} - - -static void -_vala_array_add27 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5840 "EditingTools.c" - } -#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5846 "EditingTools.c" -} - - -static void -_vala_array_add28 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5862 "EditingTools.c" - } -#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5868 "EditingTools.c" -} - - -static void -_vala_array_add29 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5884 "EditingTools.c" - } -#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5890 "EditingTools.c" -} - - -static void -_vala_array_add30 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5906 "EditingTools.c" - } -#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5912 "EditingTools.c" -} - - -static void -_vala_array_add31 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5928 "EditingTools.c" - } -#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5934 "EditingTools.c" -} - - -static void -_vala_array_add32 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5950 "EditingTools.c" - } -#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5956 "EditingTools.c" -} - - -static void -_vala_array_add33 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5972 "EditingTools.c" - } -#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 5978 "EditingTools.c" -} - - -static void -_vala_array_add34 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 5994 "EditingTools.c" - } -#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 6000 "EditingTools.c" -} - - -static void -_vala_array_add35 (EditingToolsCropToolConstraintDescription** * array, - int* length, - int* size, - EditingToolsCropToolConstraintDescription* value) -{ -#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((*length) == (*size)) { -#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *array = g_renew (EditingToolsCropToolConstraintDescription*, *array, (*size) + 1); -#line 6016 "EditingTools.c" - } -#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[(*length)++] = value; -#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*array)[*length] = NULL; -#line 6022 "EditingTools.c" -} - - -static EditingToolsCropToolConstraintDescription** -editing_tools_crop_tool_create_constraints (int* result_length1) -{ - EditingToolsCropToolConstraintDescription** result = NULL; - EditingToolsCropToolConstraintDescription** _result_ = NULL; - EditingToolsCropToolConstraintDescription** _tmp0_; - gint _result__length1; - gint __result__size_; - EditingToolsCropToolConstraintDescription** _tmp1_; - gint _tmp1__length1; - EditingToolsCropToolConstraintDescription* _tmp2_; - EditingToolsCropToolConstraintDescription** _tmp3_; - gint _tmp3__length1; - EditingToolsCropToolConstraintDescription* _tmp4_; - EditingToolsCropToolConstraintDescription** _tmp5_; - gint _tmp5__length1; - EditingToolsCropToolConstraintDescription* _tmp6_; - EditingToolsCropToolConstraintDescription** _tmp7_; - gint _tmp7__length1; - EditingToolsCropToolConstraintDescription* _tmp8_; - EditingToolsCropToolConstraintDescription** _tmp9_; - gint _tmp9__length1; - EditingToolsCropToolConstraintDescription* _tmp10_; - EditingToolsCropToolConstraintDescription** _tmp11_; - gint _tmp11__length1; - EditingToolsCropToolConstraintDescription* _tmp12_; - EditingToolsCropToolConstraintDescription** _tmp13_; - gint _tmp13__length1; - EditingToolsCropToolConstraintDescription* _tmp14_; - EditingToolsCropToolConstraintDescription** _tmp15_; - gint _tmp15__length1; - EditingToolsCropToolConstraintDescription* _tmp16_; - EditingToolsCropToolConstraintDescription** _tmp17_; - gint _tmp17__length1; - EditingToolsCropToolConstraintDescription* _tmp18_; - EditingToolsCropToolConstraintDescription** _tmp19_; - gint _tmp19__length1; - EditingToolsCropToolConstraintDescription* _tmp20_; - EditingToolsCropToolConstraintDescription** _tmp21_; - gint _tmp21__length1; - EditingToolsCropToolConstraintDescription* _tmp22_; - EditingToolsCropToolConstraintDescription** _tmp23_; - gint _tmp23__length1; - EditingToolsCropToolConstraintDescription* _tmp24_; - EditingToolsCropToolConstraintDescription** _tmp25_; - gint _tmp25__length1; - EditingToolsCropToolConstraintDescription* _tmp26_; - EditingToolsCropToolConstraintDescription** _tmp27_; - gint _tmp27__length1; - EditingToolsCropToolConstraintDescription* _tmp28_; - EditingToolsCropToolConstraintDescription** _tmp29_; - gint _tmp29__length1; - EditingToolsCropToolConstraintDescription* _tmp30_; - EditingToolsCropToolConstraintDescription** _tmp31_; - gint _tmp31__length1; - EditingToolsCropToolConstraintDescription* _tmp32_; - EditingToolsCropToolConstraintDescription** _tmp33_; - gint _tmp33__length1; - EditingToolsCropToolConstraintDescription* _tmp34_; - EditingToolsCropToolConstraintDescription** _tmp35_; - gint _tmp35__length1; - EditingToolsCropToolConstraintDescription* _tmp36_; - EditingToolsCropToolConstraintDescription** _tmp37_; - gint _tmp37__length1; - EditingToolsCropToolConstraintDescription* _tmp38_; - EditingToolsCropToolConstraintDescription** _tmp39_; - gint _tmp39__length1; - EditingToolsCropToolConstraintDescription* _tmp40_; - EditingToolsCropToolConstraintDescription** _tmp41_; - gint _tmp41__length1; - EditingToolsCropToolConstraintDescription* _tmp42_; - EditingToolsCropToolConstraintDescription** _tmp43_; - gint _tmp43__length1; - EditingToolsCropToolConstraintDescription* _tmp44_; - EditingToolsCropToolConstraintDescription** _tmp45_; - gint _tmp45__length1; - EditingToolsCropToolConstraintDescription* _tmp46_; - EditingToolsCropToolConstraintDescription** _tmp47_; - gint _tmp47__length1; - EditingToolsCropToolConstraintDescription* _tmp48_; - EditingToolsCropToolConstraintDescription** _tmp49_; - gint _tmp49__length1; - EditingToolsCropToolConstraintDescription* _tmp50_; - EditingToolsCropToolConstraintDescription** _tmp51_; - gint _tmp51__length1; - EditingToolsCropToolConstraintDescription* _tmp52_; - EditingToolsCropToolConstraintDescription** _tmp53_; - gint _tmp53__length1; - EditingToolsCropToolConstraintDescription* _tmp54_; - EditingToolsCropToolConstraintDescription** _tmp55_; - gint _tmp55__length1; - EditingToolsCropToolConstraintDescription* _tmp56_; - EditingToolsCropToolConstraintDescription** _tmp57_; - gint _tmp57__length1; - EditingToolsCropToolConstraintDescription* _tmp58_; - EditingToolsCropToolConstraintDescription** _tmp59_; - gint _tmp59__length1; -#line 730 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = g_new0 (EditingToolsCropToolConstraintDescription*, 0 + 1); -#line 730 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_ = _tmp0_; -#line 730 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result__length1 = 0; -#line 730 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - __result__size_ = _result__length1; -#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _result_; -#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1__length1 = _result__length1; -#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = editing_tools_crop_tool_constraint_description_new (_ ("Unconstrained"), 0, 0, FALSE, EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO); -#line 732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add7 (&_result_, &_result__length1, &__result__size_, _tmp2_); -#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _result_; -#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3__length1 = _result__length1; -#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = editing_tools_crop_tool_constraint_description_new (_ ("Square"), 1, 1, FALSE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add8 (&_result_, &_result__length1, &__result__size_, _tmp4_); -#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _result_; -#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5__length1 = _result__length1; -#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = editing_tools_crop_tool_constraint_description_new (_ ("Screen"), 0, 0, TRUE, EDITING_TOOLS_CROP_TOOL_SCREEN_ASPECT_RATIO); -#line 734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add9 (&_result_, &_result__length1, &__result__size_, _tmp6_); -#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _result_; -#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7__length1 = _result__length1; -#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = editing_tools_crop_tool_constraint_description_new (_ ("Original Size"), 0, 0, TRUE, EDITING_TOOLS_CROP_TOOL_ORIGINAL_ASPECT_RATIO); -#line 735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add10 (&_result_, &_result__length1, &__result__size_, _tmp8_); -#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = _result_; -#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9__length1 = _result__length1; -#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = editing_tools_crop_tool_constraint_description_new (_ ("-"), 0, 0, FALSE, EDITING_TOOLS_CROP_TOOL_SEPARATOR); -#line 736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add11 (&_result_, &_result__length1, &__result__size_, _tmp10_); -#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _result_; -#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11__length1 = _result__length1; -#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = editing_tools_crop_tool_constraint_description_new (_ ("SD Video (4 ∶ 3)"), 4, 3, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 737 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add12 (&_result_, &_result__length1, &__result__size_, _tmp12_); -#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _result_; -#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13__length1 = _result__length1; -#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = editing_tools_crop_tool_constraint_description_new (_ ("HD Video (16 ∶ 9)"), 16, 9, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add13 (&_result_, &_result__length1, &__result__size_, _tmp14_); -#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = _result_; -#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15__length1 = _result__length1; -#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = editing_tools_crop_tool_constraint_description_new (_ ("-"), 0, 0, FALSE, EDITING_TOOLS_CROP_TOOL_SEPARATOR); -#line 739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add14 (&_result_, &_result__length1, &__result__size_, _tmp16_); -#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = _result_; -#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17__length1 = _result__length1; -#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = editing_tools_crop_tool_constraint_description_new (_ ("Wallet (2 × 3 in.)"), 3, 2, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 740 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add15 (&_result_, &_result__length1, &__result__size_, _tmp18_); -#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = _result_; -#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19__length1 = _result__length1; -#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = editing_tools_crop_tool_constraint_description_new (_ ("Notecard (3 × 5 in.)"), 5, 3, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add16 (&_result_, &_result__length1, &__result__size_, _tmp20_); -#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = _result_; -#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21__length1 = _result__length1; -#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = editing_tools_crop_tool_constraint_description_new (_ ("4 × 6 in."), 6, 4, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 742 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add17 (&_result_, &_result__length1, &__result__size_, _tmp22_); -#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = _result_; -#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23__length1 = _result__length1; -#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = editing_tools_crop_tool_constraint_description_new (_ ("5 × 7 in."), 7, 5, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 743 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add18 (&_result_, &_result__length1, &__result__size_, _tmp24_); -#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = _result_; -#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25__length1 = _result__length1; -#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = editing_tools_crop_tool_constraint_description_new (_ ("8 × 10 in."), 10, 8, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add19 (&_result_, &_result__length1, &__result__size_, _tmp26_); -#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = _result_; -#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27__length1 = _result__length1; -#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = editing_tools_crop_tool_constraint_description_new (_ ("Letter (8.5 × 11 in.)"), 85, 110, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add20 (&_result_, &_result__length1, &__result__size_, _tmp28_); -#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29_ = _result_; -#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29__length1 = _result__length1; -#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp30_ = editing_tools_crop_tool_constraint_description_new (_ ("11 × 14 in."), 14, 11, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add21 (&_result_, &_result__length1, &__result__size_, _tmp30_); -#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp31_ = _result_; -#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp31__length1 = _result__length1; -#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp32_ = editing_tools_crop_tool_constraint_description_new (_ ("Tabloid (11 × 17 in.)"), 17, 11, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 747 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add22 (&_result_, &_result__length1, &__result__size_, _tmp32_); -#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33_ = _result_; -#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33__length1 = _result__length1; -#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp34_ = editing_tools_crop_tool_constraint_description_new (_ ("16 × 20 in."), 20, 16, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add23 (&_result_, &_result__length1, &__result__size_, _tmp34_); -#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp35_ = _result_; -#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp35__length1 = _result__length1; -#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp36_ = editing_tools_crop_tool_constraint_description_new (_ ("-"), 0, 0, FALSE, EDITING_TOOLS_CROP_TOOL_SEPARATOR); -#line 749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add24 (&_result_, &_result__length1, &__result__size_, _tmp36_); -#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp37_ = _result_; -#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp37__length1 = _result__length1; -#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp38_ = editing_tools_crop_tool_constraint_description_new (_ ("Metric Wallet (9 × 13 cm)"), 13, 9, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 750 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add25 (&_result_, &_result__length1, &__result__size_, _tmp38_); -#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp39_ = _result_; -#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp39__length1 = _result__length1; -#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp40_ = editing_tools_crop_tool_constraint_description_new (_ ("Postcard (10 × 15 cm)"), 15, 10, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add26 (&_result_, &_result__length1, &__result__size_, _tmp40_); -#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp41_ = _result_; -#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp41__length1 = _result__length1; -#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp42_ = editing_tools_crop_tool_constraint_description_new (_ ("13 × 18 cm"), 18, 13, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add27 (&_result_, &_result__length1, &__result__size_, _tmp42_); -#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp43_ = _result_; -#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp43__length1 = _result__length1; -#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp44_ = editing_tools_crop_tool_constraint_description_new (_ ("18 × 24 cm"), 24, 18, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 753 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add28 (&_result_, &_result__length1, &__result__size_, _tmp44_); -#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp45_ = _result_; -#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp45__length1 = _result__length1; -#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp46_ = editing_tools_crop_tool_constraint_description_new (_ ("A4 (210 × 297 mm)"), 210, 297, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add29 (&_result_, &_result__length1, &__result__size_, _tmp46_); -#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp47_ = _result_; -#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp47__length1 = _result__length1; -#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp48_ = editing_tools_crop_tool_constraint_description_new (_ ("20 × 30 cm"), 30, 20, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add30 (&_result_, &_result__length1, &__result__size_, _tmp48_); -#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp49_ = _result_; -#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp49__length1 = _result__length1; -#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp50_ = editing_tools_crop_tool_constraint_description_new (_ ("24 × 40 cm"), 40, 24, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 756 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add31 (&_result_, &_result__length1, &__result__size_, _tmp50_); -#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp51_ = _result_; -#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp51__length1 = _result__length1; -#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp52_ = editing_tools_crop_tool_constraint_description_new (_ ("30 × 40 cm"), 40, 30, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add32 (&_result_, &_result__length1, &__result__size_, _tmp52_); -#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp53_ = _result_; -#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp53__length1 = _result__length1; -#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp54_ = editing_tools_crop_tool_constraint_description_new (_ ("A3 (297 × 420 mm)"), 420, 297, TRUE, EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS); -#line 758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add33 (&_result_, &_result__length1, &__result__size_, _tmp54_); -#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp55_ = _result_; -#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp55__length1 = _result__length1; -#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp56_ = editing_tools_crop_tool_constraint_description_new (_ ("-"), 0, 0, FALSE, EDITING_TOOLS_CROP_TOOL_SEPARATOR); -#line 759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add34 (&_result_, &_result__length1, &__result__size_, _tmp56_); -#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp57_ = _result_; -#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp57__length1 = _result__length1; -#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp58_ = editing_tools_crop_tool_constraint_description_new (_ ("Custom"), 0, 0, TRUE, EDITING_TOOLS_CROP_TOOL_CUSTOM_ASPECT_RATIO); -#line 760 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_array_add35 (&_result_, &_result__length1, &__result__size_, _tmp58_); -#line 762 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp59_ = _result_; -#line 762 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp59__length1 = _result__length1; -#line 762 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (result_length1) { -#line 762 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *result_length1 = _tmp59__length1; -#line 6371 "EditingTools.c" - } -#line 762 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp59_; -#line 762 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 6377 "EditingTools.c" -} - - -static gpointer -_editing_tools_crop_tool_constraint_description_ref0 (gpointer self) -{ -#line 769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self ? editing_tools_crop_tool_constraint_description_ref (self) : NULL; -#line 6386 "EditingTools.c" -} - - -static GtkListStore* -editing_tools_crop_tool_create_constraint_list (EditingToolsCropToolConstraintDescription** constraint_data, - int constraint_data_length1) -{ - GtkListStore* result = NULL; - GtkListStore* _result_ = NULL; - GtkListStore* _tmp0_; - GtkTreeIter iter = {0}; -#line 766 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = gtk_list_store_new (1, G_TYPE_STRING, G_TYPE_STRING, -1); -#line 766 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_ = _tmp0_; -#line 6402 "EditingTools.c" - { - EditingToolsCropToolConstraintDescription** constraint_collection = NULL; - gint constraint_collection_length1 = 0; - gint _constraint_collection_size_ = 0; - gint constraint_it = 0; -#line 769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - constraint_collection = constraint_data; -#line 769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - constraint_collection_length1 = constraint_data_length1; -#line 769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - for (constraint_it = 0; constraint_it < constraint_data_length1; constraint_it = constraint_it + 1) { -#line 6414 "EditingTools.c" - EditingToolsCropToolConstraintDescription* _tmp1_; - EditingToolsCropToolConstraintDescription* constraint = NULL; -#line 769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _editing_tools_crop_tool_constraint_description_ref0 (constraint_collection[constraint_it]); -#line 769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - constraint = _tmp1_; -#line 6421 "EditingTools.c" - { - GtkListStore* _tmp2_; - GtkTreeIter _tmp3_ = {0}; - GtkListStore* _tmp4_; - GtkTreeIter _tmp5_; - EditingToolsCropToolConstraintDescription* _tmp6_; - const gchar* _tmp7_; - GValue _tmp8_ = {0}; -#line 770 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _result_; -#line 770 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_list_store_append (_tmp2_, &_tmp3_); -#line 770 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - iter = _tmp3_; -#line 771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _result_; -#line 771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = iter; -#line 771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = constraint; -#line 771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_->name; -#line 771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_value_init (&_tmp8_, G_TYPE_STRING); -#line 771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_value_set_string (&_tmp8_, _tmp7_); -#line 771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_list_store_set_value (_tmp4_, &_tmp5_, 0, &_tmp8_); -#line 771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_IS_VALUE (&_tmp8_) ? (g_value_unset (&_tmp8_), NULL) : NULL; -#line 769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _editing_tools_crop_tool_constraint_description_unref0 (constraint); -#line 6454 "EditingTools.c" - } - } - } -#line 774 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _result_; -#line 774 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 6462 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_update_pivot_button_state (EditingToolsCropTool* self) -{ - EditingToolsCropToolCropToolWindow* _tmp0_; - GtkButton* _tmp1_; - EditingToolsCropToolConstraintDescription* _tmp2_; - EditingToolsCropToolConstraintDescription* _tmp3_; - gboolean _tmp4_; -#line 777 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->crop_tool_window; -#line 778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_->pivot_reticle_button; -#line 778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = editing_tools_crop_tool_get_selected_constraint (self); -#line 778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_; -#line 778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_->is_pivotable; -#line 778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), _tmp4_); -#line 778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _editing_tools_crop_tool_constraint_description_unref0 (_tmp3_); -#line 6490 "EditingTools.c" -} - - -static EditingToolsCropToolConstraintDescription* -editing_tools_crop_tool_get_selected_constraint (EditingToolsCropTool* self) -{ - EditingToolsCropToolConstraintDescription* result = NULL; - EditingToolsCropToolConstraintDescription* _result_ = NULL; - EditingToolsCropToolConstraintDescription** _tmp0_; - gint _tmp0__length1; - EditingToolsCropToolCropToolWindow* _tmp1_; - GtkComboBox* _tmp2_; - EditingToolsCropToolConstraintDescription* _tmp3_; - EditingToolsCropToolConstraintDescription* _tmp4_; - EditingToolsCropToolConstraintDescription* _tmp5_; - gfloat _tmp6_; -#line 782 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), NULL); -#line 783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->constraints; -#line 783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0__length1 = self->priv->constraints_length1; -#line 783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->crop_tool_window; -#line 783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_->constraint_combo; -#line 783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp0_[gtk_combo_box_get_active (_tmp2_)]; -#line 783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _editing_tools_crop_tool_constraint_description_ref0 (_tmp3_); -#line 783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_ = _tmp4_; -#line 785 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _result_; -#line 785 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_->aspect_ratio; -#line 785 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp6_ == EDITING_TOOLS_CROP_TOOL_ORIGINAL_ASPECT_RATIO) { -#line 6529 "EditingTools.c" - EditingToolsCropToolConstraintDescription* _tmp7_; - EditingToolsPhotoCanvas* _tmp8_; - GdkRectangle _tmp9_ = {0}; - gint _tmp10_; - EditingToolsCropToolConstraintDescription* _tmp11_; - EditingToolsPhotoCanvas* _tmp12_; - GdkRectangle _tmp13_ = {0}; - gint _tmp14_; -#line 786 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _result_; -#line 786 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 786 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp8_, &_tmp9_); -#line 786 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_.width; -#line 786 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_->basis_width = _tmp10_; -#line 787 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _result_; -#line 787 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 787 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp12_, &_tmp13_); -#line 787 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = _tmp13_.height; -#line 787 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_->basis_height = _tmp14_; -#line 6558 "EditingTools.c" - } else { - EditingToolsCropToolConstraintDescription* _tmp15_; - gfloat _tmp16_; -#line 788 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = _result_; -#line 788 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = _tmp15_->aspect_ratio; -#line 788 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp16_ == EDITING_TOOLS_CROP_TOOL_SCREEN_ASPECT_RATIO) { -#line 6568 "EditingTools.c" - GdkScreen* screen = NULL; - GdkScreen* _tmp17_; - GdkScreen* _tmp18_; - EditingToolsCropToolConstraintDescription* _tmp19_; - GdkScreen* _tmp20_; - EditingToolsCropToolConstraintDescription* _tmp21_; - GdkScreen* _tmp22_; -#line 789 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = gdk_screen_get_default (); -#line 789 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = _g_object_ref0 (_tmp17_); -#line 789 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - screen = _tmp18_; -#line 790 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = _result_; -#line 790 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = screen; -#line 790 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_->basis_width = gdk_screen_get_width (_tmp20_); -#line 791 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = _result_; -#line 791 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = screen; -#line 791 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_->basis_height = gdk_screen_get_height (_tmp22_); -#line 788 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (screen); -#line 6596 "EditingTools.c" - } - } -#line 794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _result_; -#line 794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 6603 "EditingTools.c" -} - - -static gboolean -editing_tools_crop_tool_on_width_entry_focus_out (EditingToolsCropTool* self, - GdkEventFocus* event) -{ - gboolean result = FALSE; - EditingToolsCropToolCropToolWindow* _tmp0_; - EditingToolsCropToolCropToolWindow* _tmp1_; - GtkEntry* _tmp2_; - GtkEntry* _tmp3_; -#line 797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), FALSE); -#line 797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->crop_tool_window; -#line 798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->crop_tool_window; -#line 798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_->custom_width_entry; -#line 798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp0_->most_recently_edited); -#line 798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_->most_recently_edited = _tmp3_; -#line 799 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = editing_tools_crop_tool_on_custom_entry_focus_out (self, event); -#line 799 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 6636 "EditingTools.c" -} - - -static gboolean -editing_tools_crop_tool_on_height_entry_focus_out (EditingToolsCropTool* self, - GdkEventFocus* event) -{ - gboolean result = FALSE; - EditingToolsCropToolCropToolWindow* _tmp0_; - EditingToolsCropToolCropToolWindow* _tmp1_; - GtkEntry* _tmp2_; - GtkEntry* _tmp3_; -#line 802 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), FALSE); -#line 802 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 803 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->crop_tool_window; -#line 803 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->crop_tool_window; -#line 803 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_->custom_height_entry; -#line 803 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 803 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp0_->most_recently_edited); -#line 803 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_->most_recently_edited = _tmp3_; -#line 804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = editing_tools_crop_tool_on_custom_entry_focus_out (self, event); -#line 804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 6669 "EditingTools.c" -} - - -static gboolean -editing_tools_crop_tool_on_custom_entry_focus_out (EditingToolsCropTool* self, - GdkEventFocus* event) -{ - gboolean result = FALSE; - gint width = 0; - EditingToolsCropToolCropToolWindow* _tmp0_; - GtkEntry* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - gint height = 0; - EditingToolsCropToolCropToolWindow* _tmp4_; - GtkEntry* _tmp5_; - const gchar* _tmp6_; - const gchar* _tmp7_; - gint _tmp8_; - gint _tmp14_; - gboolean _tmp20_ = FALSE; - gint _tmp21_; - gint _tmp22_; - gint _tmp25_; - gint _tmp26_; - gfloat _tmp27_; - gint _tmp61_; - gint _tmp62_; - Box new_crop = {0}; - Box _tmp63_; - Box _tmp64_ = {0}; - Box _tmp65_; - Box _tmp66_; - EditingToolsPhotoCanvas* _tmp67_; - Box _tmp68_; - EditingToolsPhotoCanvas* _tmp69_; - gint _tmp70_; - gint _tmp71_; -#line 807 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), FALSE); -#line 807 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 808 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->crop_tool_window; -#line 808 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_->custom_width_entry; -#line 808 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = gtk_entry_get_text (_tmp1_); -#line 808 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_; -#line 808 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - width = atoi (_tmp3_); -#line 809 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->crop_tool_window; -#line 809 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_->custom_height_entry; -#line 809 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = gtk_entry_get_text (_tmp5_); -#line 809 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_; -#line 809 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - height = atoi (_tmp7_); -#line 811 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = width; -#line 811 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp8_ < 1) { -#line 6736 "EditingTools.c" - EditingToolsCropToolCropToolWindow* _tmp9_; - GtkEntry* _tmp10_; - gint _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 812 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - width = 1; -#line 813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->crop_tool_window; -#line 813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_->custom_width_entry; -#line 813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = width; -#line 813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = g_strdup_printf ("%d", _tmp11_); -#line 813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_; -#line 813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_entry_set_text (_tmp10_, _tmp13_); -#line 813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (_tmp13_); -#line 6758 "EditingTools.c" - } -#line 816 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = height; -#line 816 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp14_ < 1) { -#line 6764 "EditingTools.c" - EditingToolsCropToolCropToolWindow* _tmp15_; - GtkEntry* _tmp16_; - gint _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; -#line 817 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - height = 1; -#line 818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = self->priv->crop_tool_window; -#line 818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = _tmp15_->custom_height_entry; -#line 818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = height; -#line 818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = g_strdup_printf ("%d", _tmp17_); -#line 818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = _tmp18_; -#line 818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_entry_set_text (_tmp16_, _tmp19_); -#line 818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (_tmp19_); -#line 6786 "EditingTools.c" - } -#line 821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = width; -#line 821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = self->priv->custom_width; -#line 821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp21_ == _tmp22_) { -#line 6794 "EditingTools.c" - gint _tmp23_; - gint _tmp24_; -#line 821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = height; -#line 821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = self->priv->custom_height; -#line 821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = _tmp23_ == _tmp24_; -#line 6803 "EditingTools.c" - } else { -#line 821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = FALSE; -#line 6807 "EditingTools.c" - } -#line 821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp20_) { -#line 822 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = FALSE; -#line 822 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 6815 "EditingTools.c" - } -#line 824 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = width; -#line 824 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = height; -#line 824 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_aspect_ratio = ((gfloat) _tmp25_) / ((gfloat) _tmp26_); -#line 826 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = self->priv->custom_aspect_ratio; -#line 826 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp27_ < EDITING_TOOLS_CROP_TOOL_MIN_ASPECT_RATIO) { -#line 6827 "EditingTools.c" - EditingToolsCropToolCropToolWindow* _tmp28_; - GtkEntry* _tmp29_; - EditingToolsCropToolCropToolWindow* _tmp30_; - GtkEntry* _tmp31_; -#line 827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = self->priv->crop_tool_window; -#line 827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29_ = _tmp28_->most_recently_edited; -#line 827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp30_ = self->priv->crop_tool_window; -#line 827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp31_ = _tmp30_->custom_height_entry; -#line 827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp29_ == _tmp31_) { -#line 6842 "EditingTools.c" - gint _tmp32_; - EditingToolsCropToolCropToolWindow* _tmp33_; - GtkEntry* _tmp34_; - gint _tmp35_; - gchar* _tmp36_; - gchar* _tmp37_; -#line 828 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp32_ = width; -#line 828 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - height = (gint) (_tmp32_ / EDITING_TOOLS_CROP_TOOL_MIN_ASPECT_RATIO); -#line 829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33_ = self->priv->crop_tool_window; -#line 829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp34_ = _tmp33_->custom_height_entry; -#line 829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp35_ = height; -#line 829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp36_ = g_strdup_printf ("%d", _tmp35_); -#line 829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp37_ = _tmp36_; -#line 829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_entry_set_text (_tmp34_, _tmp37_); -#line 829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (_tmp37_); -#line 6867 "EditingTools.c" - } else { - gint _tmp38_; - EditingToolsCropToolCropToolWindow* _tmp39_; - GtkEntry* _tmp40_; - gint _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; -#line 831 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp38_ = height; -#line 831 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - width = (gint) (_tmp38_ * EDITING_TOOLS_CROP_TOOL_MIN_ASPECT_RATIO); -#line 832 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp39_ = self->priv->crop_tool_window; -#line 832 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp40_ = _tmp39_->custom_width_entry; -#line 832 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp41_ = width; -#line 832 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp42_ = g_strdup_printf ("%d", _tmp41_); -#line 832 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp43_ = _tmp42_; -#line 832 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_entry_set_text (_tmp40_, _tmp43_); -#line 832 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (_tmp43_); -#line 6893 "EditingTools.c" - } - } else { - gfloat _tmp44_; -#line 834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp44_ = self->priv->custom_aspect_ratio; -#line 834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp44_ > EDITING_TOOLS_CROP_TOOL_MAX_ASPECT_RATIO) { -#line 6901 "EditingTools.c" - EditingToolsCropToolCropToolWindow* _tmp45_; - GtkEntry* _tmp46_; - EditingToolsCropToolCropToolWindow* _tmp47_; - GtkEntry* _tmp48_; -#line 835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp45_ = self->priv->crop_tool_window; -#line 835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp46_ = _tmp45_->most_recently_edited; -#line 835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp47_ = self->priv->crop_tool_window; -#line 835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp48_ = _tmp47_->custom_height_entry; -#line 835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp46_ == _tmp48_) { -#line 6916 "EditingTools.c" - gint _tmp49_; - EditingToolsCropToolCropToolWindow* _tmp50_; - GtkEntry* _tmp51_; - gint _tmp52_; - gchar* _tmp53_; - gchar* _tmp54_; -#line 836 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp49_ = width; -#line 836 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - height = (gint) (_tmp49_ / EDITING_TOOLS_CROP_TOOL_MAX_ASPECT_RATIO); -#line 837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp50_ = self->priv->crop_tool_window; -#line 837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp51_ = _tmp50_->custom_height_entry; -#line 837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp52_ = height; -#line 837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp53_ = g_strdup_printf ("%d", _tmp52_); -#line 837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp54_ = _tmp53_; -#line 837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_entry_set_text (_tmp51_, _tmp54_); -#line 837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (_tmp54_); -#line 6941 "EditingTools.c" - } else { - gint _tmp55_; - EditingToolsCropToolCropToolWindow* _tmp56_; - GtkEntry* _tmp57_; - gint _tmp58_; - gchar* _tmp59_; - gchar* _tmp60_; -#line 839 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp55_ = height; -#line 839 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - width = (gint) (_tmp55_ * EDITING_TOOLS_CROP_TOOL_MAX_ASPECT_RATIO); -#line 840 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp56_ = self->priv->crop_tool_window; -#line 840 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp57_ = _tmp56_->custom_width_entry; -#line 840 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp58_ = width; -#line 840 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp59_ = g_strdup_printf ("%d", _tmp58_); -#line 840 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp60_ = _tmp59_; -#line 840 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_entry_set_text (_tmp57_, _tmp60_); -#line 840 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (_tmp60_); -#line 6967 "EditingTools.c" - } - } - } -#line 844 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp61_ = width; -#line 844 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp62_ = height; -#line 844 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_aspect_ratio = ((gfloat) _tmp61_) / ((gfloat) _tmp62_); -#line 846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp63_ = self->priv->scaled_crop; -#line 846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_constrain_crop (self, &_tmp63_, &_tmp64_); -#line 846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_crop = _tmp64_; -#line 848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp65_ = new_crop; -#line 848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_crop_resized (self, &_tmp65_); -#line 849 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp66_ = new_crop; -#line 849 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->scaled_crop = _tmp66_; -#line 850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp67_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp68_ = new_crop; -#line 850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_invalidate_area (_tmp67_, &_tmp68_); -#line 851 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp69_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 851 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_repaint (_tmp69_); -#line 853 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp70_ = width; -#line 853 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_width = _tmp70_; -#line 854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp71_ = height; -#line 854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_height = _tmp71_; -#line 856 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = FALSE; -#line 856 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 7013 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_on_width_insert_text (EditingToolsCropTool* self, - const gchar* text, - gint length, - gint* position) -{ - EditingToolsCropToolCropToolWindow* _tmp0_; - GtkEntry* _tmp1_; -#line 859 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 859 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (text != NULL); -#line 860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->crop_tool_window; -#line 860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_->custom_width_entry; -#line 860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_on_entry_insert_text (self, _tmp1_, text, length, position); -#line 7035 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_on_height_insert_text (EditingToolsCropTool* self, - const gchar* text, - gint length, - gint* position) -{ - EditingToolsCropToolCropToolWindow* _tmp0_; - GtkEntry* _tmp1_; -#line 863 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 863 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (text != NULL); -#line 864 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->crop_tool_window; -#line 864 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_->custom_height_entry; -#line 864 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_on_entry_insert_text (self, _tmp1_, text, length, position); -#line 7057 "EditingTools.c" -} - - -static gchar -string_get (const gchar* self, - glong index) -{ - gchar result = '\0'; - gchar _tmp0_; -#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, '\0'); -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = ((gchar*) self)[index]; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 7075 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_on_entry_insert_text (EditingToolsCropTool* self, - GtkEntry* sender, - const gchar* text, - gint length, - gint* position) -{ - gboolean _tmp0_; - gchar* new_text = NULL; - gchar* _tmp3_; - const gchar* _tmp13_; - gint _tmp14_; - gint _tmp15_; -#line 867 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 867 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (GTK_IS_ENTRY (sender)); -#line 867 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (text != NULL); -#line 868 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->entry_insert_in_progress; -#line 868 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_) { -#line 869 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 7104 "EditingTools.c" - } -#line 871 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->entry_insert_in_progress = TRUE; -#line 873 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (length == -1) { -#line 7110 "EditingTools.c" - gint _tmp1_; - gint _tmp2_; -#line 874 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = strlen (text); -#line 874 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_; -#line 874 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - length = (gint) _tmp2_; -#line 7119 "EditingTools.c" - } -#line 877 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = g_strdup (""); -#line 877 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_text = _tmp3_; -#line 7125 "EditingTools.c" - { - gint ctr = 0; -#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ctr = 0; -#line 7130 "EditingTools.c" - { - gboolean _tmp4_ = FALSE; -#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = TRUE; -#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - while (TRUE) { -#line 7137 "EditingTools.c" - gint _tmp6_; - gint _tmp7_; -#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!_tmp4_) { -#line 7142 "EditingTools.c" - gint _tmp5_; -#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = ctr; -#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ctr = _tmp5_ + 1; -#line 7148 "EditingTools.c" - } -#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = FALSE; -#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = ctr; -#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!(_tmp6_ < length)) { -#line 878 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 7158 "EditingTools.c" - } -#line 879 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = ctr; -#line 879 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (g_ascii_isdigit (string_get (text, (glong) _tmp7_))) { -#line 7164 "EditingTools.c" - const gchar* _tmp8_; - gint _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; -#line 880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = new_text; -#line 880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = ctr; -#line 880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = g_strdup_printf ("%c", (gchar) string_get (text, (glong) _tmp9_)); -#line 880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _tmp10_; -#line 880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = g_strconcat (_tmp8_, _tmp11_, NULL); -#line 880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (new_text); -#line 880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_text = _tmp12_; -#line 880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (_tmp11_); -#line 7186 "EditingTools.c" - } - } - } - } -#line 884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = new_text; -#line 884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = strlen (_tmp13_); -#line 884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = _tmp14_; -#line 884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp15_ > 0) { -#line 7199 "EditingTools.c" - const gchar* _tmp16_; - const gchar* _tmp17_; - gint _tmp18_; - gint _tmp19_; -#line 885 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = new_text; -#line 885 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = new_text; -#line 885 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = strlen (_tmp17_); -#line 885 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = _tmp18_; -#line 885 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (sender, gtk_editable_get_type (), GtkEditable), "insert-text", _tmp16_, (gint) _tmp19_, position); -#line 7214 "EditingTools.c" - } -#line 887 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_stop_emission_by_name (sender, "insert-text"); -#line 889 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->entry_insert_in_progress = FALSE; -#line 867 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (new_text); -#line 7222 "EditingTools.c" -} - - -static gfloat -editing_tools_crop_tool_get_constraint_aspect_ratio (EditingToolsCropTool* self) -{ - gfloat result = 0.0F; - gfloat _result_ = 0.0F; - EditingToolsCropToolConstraintDescription* _tmp0_; - EditingToolsCropToolConstraintDescription* _tmp1_; - gfloat _tmp2_; - gfloat _tmp3_; - gfloat _tmp4_; - EditingToolsCropToolReticleOrientation _tmp18_; -#line 892 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), 0.0F); -#line 893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = editing_tools_crop_tool_get_selected_constraint (self); -#line 893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_; -#line 893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_->aspect_ratio; -#line 893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_; -#line 893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _editing_tools_crop_tool_constraint_description_unref0 (_tmp1_); -#line 893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_ = _tmp3_; -#line 895 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _result_; -#line 895 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp4_ == EDITING_TOOLS_CROP_TOOL_ORIGINAL_ASPECT_RATIO) { -#line 7255 "EditingTools.c" - EditingToolsPhotoCanvas* _tmp5_; - GdkRectangle _tmp6_ = {0}; - gint _tmp7_; - EditingToolsPhotoCanvas* _tmp8_; - GdkRectangle _tmp9_ = {0}; - gint _tmp10_; -#line 896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp5_, &_tmp6_); -#line 896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_.width; -#line 896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp8_, &_tmp9_); -#line 896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_.height; -#line 896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_ = ((gfloat) _tmp7_) / ((gfloat) _tmp10_); -#line 7276 "EditingTools.c" - } else { - gfloat _tmp11_; -#line 898 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _result_; -#line 898 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp11_ == EDITING_TOOLS_CROP_TOOL_SCREEN_ASPECT_RATIO) { -#line 7283 "EditingTools.c" - GdkScreen* screen = NULL; - GdkScreen* _tmp12_; - GdkScreen* _tmp13_; - GdkScreen* _tmp14_; - GdkScreen* _tmp15_; -#line 899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = gdk_screen_get_default (); -#line 899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _g_object_ref0 (_tmp12_); -#line 899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - screen = _tmp13_; -#line 900 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = screen; -#line 900 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = screen; -#line 900 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_ = ((gfloat) gdk_screen_get_width (_tmp14_)) / ((gfloat) gdk_screen_get_height (_tmp15_)); -#line 898 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (screen); -#line 7303 "EditingTools.c" - } else { - gfloat _tmp16_; -#line 901 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = _result_; -#line 901 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp16_ == EDITING_TOOLS_CROP_TOOL_CUSTOM_ASPECT_RATIO) { -#line 7310 "EditingTools.c" - gfloat _tmp17_; -#line 902 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = self->priv->custom_aspect_ratio; -#line 902 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_ = _tmp17_; -#line 7316 "EditingTools.c" - } - } - } -#line 904 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = self->priv->reticle_orientation; -#line 904 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp18_ == EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_PORTRAIT) { -#line 7324 "EditingTools.c" - gfloat _tmp19_; -#line 905 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = _result_; -#line 905 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_ = 1.0f / _tmp19_; -#line 7330 "EditingTools.c" - } -#line 907 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _result_; -#line 907 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 7336 "EditingTools.c" -} - - -static gfloat -editing_tools_crop_tool_get_constraint_aspect_ratio_for_constraint (EditingToolsCropTool* self, - EditingToolsCropToolConstraintDescription* constraint, - Photo* photo) -{ - gfloat result = 0.0F; - gfloat _result_ = 0.0F; - gfloat _tmp0_; - gfloat _tmp1_; - EditingToolsCropToolReticleOrientation _tmp14_; -#line 910 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), 0.0F); -#line 910 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_CROP_TOOL_IS_CONSTRAINT_DESCRIPTION (constraint), 0.0F); -#line 910 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (IS_PHOTO (photo), 0.0F); -#line 911 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = constraint->aspect_ratio; -#line 911 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_ = _tmp0_; -#line 913 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _result_; -#line 913 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp1_ == EDITING_TOOLS_CROP_TOOL_ORIGINAL_ASPECT_RATIO) { -#line 7364 "EditingTools.c" - Dimensions orig_dim = {0}; - Dimensions _tmp2_ = {0}; - Dimensions _tmp3_; - gint _tmp4_; - Dimensions _tmp5_; - gint _tmp6_; -#line 914 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - photo_get_original_dimensions (photo, &_tmp2_); -#line 914 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - orig_dim = _tmp2_; -#line 915 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = orig_dim; -#line 915 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_.width; -#line 915 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = orig_dim; -#line 915 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_.height; -#line 915 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_ = ((gfloat) _tmp4_) / ((gfloat) _tmp6_); -#line 7385 "EditingTools.c" - } else { - gfloat _tmp7_; -#line 916 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _result_; -#line 916 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp7_ == EDITING_TOOLS_CROP_TOOL_SCREEN_ASPECT_RATIO) { -#line 7392 "EditingTools.c" - GdkScreen* screen = NULL; - GdkScreen* _tmp8_; - GdkScreen* _tmp9_; - GdkScreen* _tmp10_; - GdkScreen* _tmp11_; -#line 917 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = gdk_screen_get_default (); -#line 917 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = _g_object_ref0 (_tmp8_); -#line 917 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - screen = _tmp9_; -#line 918 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = screen; -#line 918 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = screen; -#line 918 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_ = ((gfloat) gdk_screen_get_width (_tmp10_)) / ((gfloat) gdk_screen_get_height (_tmp11_)); -#line 916 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (screen); -#line 7412 "EditingTools.c" - } else { - gfloat _tmp12_; -#line 919 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _result_; -#line 919 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp12_ == EDITING_TOOLS_CROP_TOOL_CUSTOM_ASPECT_RATIO) { -#line 7419 "EditingTools.c" - gfloat _tmp13_; -#line 920 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = self->priv->custom_aspect_ratio; -#line 920 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_ = _tmp13_; -#line 7425 "EditingTools.c" - } - } - } -#line 922 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = self->priv->reticle_orientation; -#line 922 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp14_ == EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_PORTRAIT) { -#line 7433 "EditingTools.c" - gfloat _tmp15_; -#line 923 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = _result_; -#line 923 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_ = 1.0f / _tmp15_; -#line 7439 "EditingTools.c" - } -#line 925 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _result_; -#line 925 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 7445 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_constraint_changed (EditingToolsCropTool* self) -{ - EditingToolsCropToolConstraintDescription* selected_constraint = NULL; - EditingToolsCropToolConstraintDescription* _tmp0_; - EditingToolsCropToolConstraintDescription* _tmp1_; - gfloat _tmp2_; - EditingToolsCropToolConstraintDescription* _tmp11_; - EditingToolsCropToolConstraintDescription* _tmp12_; - gboolean _tmp13_; - gboolean _tmp14_; - gfloat _tmp15_; -#line 929 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 930 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = editing_tools_crop_tool_get_selected_constraint (self); -#line 930 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - selected_constraint = _tmp0_; -#line 931 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = selected_constraint; -#line 931 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_->aspect_ratio; -#line 931 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp2_ == EDITING_TOOLS_CROP_TOOL_CUSTOM_ASPECT_RATIO) { -#line 932 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_set_custom_constraint_mode (self); -#line 7475 "EditingTools.c" - } else { - EditingToolsCropToolConstraintDescription* _tmp3_; - gfloat _tmp4_; -#line 934 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_set_normal_constraint_mode (self); -#line 936 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = selected_constraint; -#line 936 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_->aspect_ratio; -#line 936 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp4_ != EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) { -#line 7487 "EditingTools.c" - ConfigFacade* _tmp5_; - ConfigFacade* _tmp6_; - ConfigFacade* _tmp7_; - ConfigFacade* _tmp8_; - gint _tmp9_; - gint _tmp10_; -#line 940 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = config_facade_get_instance (); -#line 940 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_; -#line 940 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_init_width = configuration_facade_get_last_crop_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 940 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp6_); -#line 941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = config_facade_get_instance (); -#line 941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = _tmp7_; -#line 941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_init_height = configuration_facade_get_last_crop_height (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp8_); -#line 942 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->custom_init_width; -#line 942 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = self->priv->custom_init_height; -#line 942 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_aspect_ratio = ((gfloat) _tmp9_) / ((gfloat) _tmp10_); -#line 7516 "EditingTools.c" - } - } -#line 946 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_update_pivot_button_state (self); -#line 948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = editing_tools_crop_tool_get_selected_constraint (self); -#line 948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _tmp11_; -#line 948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_->is_pivotable; -#line 948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = !_tmp13_; -#line 948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _editing_tools_crop_tool_constraint_description_unref0 (_tmp12_); -#line 948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp14_) { -#line 949 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->reticle_orientation = EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE; -#line 7535 "EditingTools.c" - } -#line 951 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = self->priv->pre_aspect_ratio; -#line 951 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) != _tmp15_) { -#line 7541 "EditingTools.c" - Box new_crop = {0}; - Box _tmp16_; - Box _tmp17_ = {0}; - Box _tmp18_; - Box _tmp19_; - EditingToolsPhotoCanvas* _tmp20_; - Box _tmp21_; - EditingToolsPhotoCanvas* _tmp22_; -#line 952 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = self->priv->scaled_crop; -#line 952 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_constrain_crop (self, &_tmp16_, &_tmp17_); -#line 952 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_crop = _tmp17_; -#line 954 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = new_crop; -#line 954 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_crop_resized (self, &_tmp18_); -#line 955 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = new_crop; -#line 955 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->scaled_crop = _tmp19_; -#line 956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = new_crop; -#line 956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_invalidate_area (_tmp20_, &_tmp21_); -#line 957 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 957 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_repaint (_tmp22_); -#line 959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->pre_aspect_ratio = editing_tools_crop_tool_get_constraint_aspect_ratio (self); -#line 7576 "EditingTools.c" - } -#line 929 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _editing_tools_crop_tool_constraint_description_unref0 (selected_constraint); -#line 7580 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_set_custom_constraint_mode (EditingToolsCropTool* self) -{ - EditingToolsCropToolConstraintMode _tmp0_; - gboolean _tmp1_ = FALSE; - EditingToolsCropToolCropToolWindow* _tmp2_; - gint _tmp3_; - EditingToolsCropToolCropToolWindow* _tmp11_; - GtkBox* _tmp12_; - EditingToolsCropToolCropToolWindow* _tmp13_; - GtkComboBox* _tmp14_; - EditingToolsCropToolCropToolWindow* _tmp15_; - GtkBox* _tmp16_; - EditingToolsCropToolCropToolWindow* _tmp17_; - GtkButton* _tmp18_; - EditingToolsCropToolCropToolWindow* _tmp19_; - GtkBox* _tmp20_; - EditingToolsCropToolCropToolWindow* _tmp21_; - GtkBox* _tmp22_; - EditingToolsCropToolCropToolWindow* _tmp23_; - GtkBox* _tmp24_; - EditingToolsCropToolCropToolWindow* _tmp25_; - GtkComboBox* _tmp26_; - EditingToolsCropToolCropToolWindow* _tmp27_; - GtkBox* _tmp28_; - EditingToolsCropToolCropToolWindow* _tmp29_; - GtkEntry* _tmp30_; - EditingToolsCropToolCropToolWindow* _tmp31_; - GtkBox* _tmp32_; - EditingToolsCropToolCropToolWindow* _tmp33_; - GtkLabel* _tmp34_; - EditingToolsCropToolCropToolWindow* _tmp35_; - GtkBox* _tmp36_; - EditingToolsCropToolCropToolWindow* _tmp37_; - GtkEntry* _tmp38_; - EditingToolsCropToolCropToolWindow* _tmp39_; - GtkBox* _tmp40_; - EditingToolsCropToolCropToolWindow* _tmp41_; - GtkButton* _tmp42_; - EditingToolsCropToolCropToolWindow* _tmp43_; - GtkBox* _tmp44_; - EditingToolsCropToolCropToolWindow* _tmp45_; - GtkBox* _tmp46_; - EditingToolsCropToolReticleOrientation _tmp47_; - gint _tmp68_; - gint _tmp69_; - EditingToolsCropToolCropToolWindow* _tmp70_; -#line 963 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 964 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->constraint_mode; -#line 964 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ == EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_CUSTOM) { -#line 965 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 7639 "EditingTools.c" - } -#line 967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->crop_tool_window; -#line 967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_->normal_width; -#line 967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp3_ == -1) { -#line 967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = TRUE; -#line 7649 "EditingTools.c" - } else { - EditingToolsCropToolCropToolWindow* _tmp4_; - gint _tmp5_; -#line 967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->crop_tool_window; -#line 967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_->normal_height; -#line 967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp5_ == -1; -#line 7659 "EditingTools.c" - } -#line 967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp1_) { -#line 7663 "EditingTools.c" - EditingToolsCropToolCropToolWindow* _tmp6_; - EditingToolsCropToolCropToolWindow* _tmp7_; - EditingToolsCropToolCropToolWindow* _tmp8_; - gint _tmp9_ = 0; - gint _tmp10_ = 0; -#line 968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = self->priv->crop_tool_window; -#line 968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = self->priv->crop_tool_window; -#line 968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = self->priv->crop_tool_window; -#line 968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_window_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow), &_tmp9_, &_tmp10_); -#line 968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_->normal_width = _tmp9_; -#line 968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_->normal_height = _tmp10_; -#line 7681 "EditingTools.c" - } -#line 971 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = self->priv->crop_tool_window; -#line 971 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _tmp11_->layout; -#line 971 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = self->priv->crop_tool_window; -#line 971 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = _tmp13_->constraint_combo; -#line 971 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget)); -#line 972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = self->priv->crop_tool_window; -#line 972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = _tmp15_->layout; -#line 972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = self->priv->crop_tool_window; -#line 972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = _tmp17_->pivot_reticle_button; -#line 972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget)); -#line 973 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = self->priv->crop_tool_window; -#line 973 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = _tmp19_->layout; -#line 973 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = self->priv->crop_tool_window; -#line 973 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = _tmp21_->response_layout; -#line 973 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget)); -#line 975 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = self->priv->crop_tool_window; -#line 975 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = _tmp23_->layout; -#line 975 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = self->priv->crop_tool_window; -#line 975 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = _tmp25_->constraint_combo; -#line 975 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_widget_get_type (), GtkWidget)); -#line 976 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = self->priv->crop_tool_window; -#line 976 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = _tmp27_->layout; -#line 976 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29_ = self->priv->crop_tool_window; -#line 976 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp30_ = _tmp29_->custom_width_entry; -#line 976 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_widget_get_type (), GtkWidget)); -#line 977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp31_ = self->priv->crop_tool_window; -#line 977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp32_ = _tmp31_->layout; -#line 977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33_ = self->priv->crop_tool_window; -#line 977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp34_ = _tmp33_->custom_mulsign_label; -#line 977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_widget_get_type (), GtkWidget)); -#line 978 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp35_ = self->priv->crop_tool_window; -#line 978 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp36_ = _tmp35_->layout; -#line 978 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp37_ = self->priv->crop_tool_window; -#line 978 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp38_ = _tmp37_->custom_height_entry; -#line 978 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_widget_get_type (), GtkWidget)); -#line 979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp39_ = self->priv->crop_tool_window; -#line 979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp40_ = _tmp39_->layout; -#line 979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp41_ = self->priv->crop_tool_window; -#line 979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp42_ = _tmp41_->pivot_reticle_button; -#line 979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_widget_get_type (), GtkWidget)); -#line 980 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp43_ = self->priv->crop_tool_window; -#line 980 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp44_ = _tmp43_->layout; -#line 980 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp45_ = self->priv->crop_tool_window; -#line 980 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp46_ = _tmp45_->response_layout; -#line 980 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_widget_get_type (), GtkWidget)); -#line 982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp47_ = self->priv->reticle_orientation; -#line 982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp47_ == EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE) { -#line 7777 "EditingTools.c" - EditingToolsCropToolCropToolWindow* _tmp48_; - GtkEntry* _tmp49_; - gint _tmp50_; - gchar* _tmp51_; - gchar* _tmp52_; - EditingToolsCropToolCropToolWindow* _tmp53_; - GtkEntry* _tmp54_; - gint _tmp55_; - gchar* _tmp56_; - gchar* _tmp57_; -#line 983 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp48_ = self->priv->crop_tool_window; -#line 983 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp49_ = _tmp48_->custom_width_entry; -#line 983 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp50_ = self->priv->custom_init_width; -#line 983 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp51_ = g_strdup_printf ("%d", _tmp50_); -#line 983 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp52_ = _tmp51_; -#line 983 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_entry_set_text (_tmp49_, _tmp52_); -#line 983 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (_tmp52_); -#line 984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp53_ = self->priv->crop_tool_window; -#line 984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp54_ = _tmp53_->custom_height_entry; -#line 984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp55_ = self->priv->custom_init_height; -#line 984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp56_ = g_strdup_printf ("%d", _tmp55_); -#line 984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp57_ = _tmp56_; -#line 984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_entry_set_text (_tmp54_, _tmp57_); -#line 984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (_tmp57_); -#line 7816 "EditingTools.c" - } else { - EditingToolsCropToolCropToolWindow* _tmp58_; - GtkEntry* _tmp59_; - gint _tmp60_; - gchar* _tmp61_; - gchar* _tmp62_; - EditingToolsCropToolCropToolWindow* _tmp63_; - GtkEntry* _tmp64_; - gint _tmp65_; - gchar* _tmp66_; - gchar* _tmp67_; -#line 986 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp58_ = self->priv->crop_tool_window; -#line 986 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp59_ = _tmp58_->custom_width_entry; -#line 986 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp60_ = self->priv->custom_init_height; -#line 986 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp61_ = g_strdup_printf ("%d", _tmp60_); -#line 986 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp62_ = _tmp61_; -#line 986 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_entry_set_text (_tmp59_, _tmp62_); -#line 986 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (_tmp62_); -#line 987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp63_ = self->priv->crop_tool_window; -#line 987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp64_ = _tmp63_->custom_height_entry; -#line 987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp65_ = self->priv->custom_init_width; -#line 987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp66_ = g_strdup_printf ("%d", _tmp65_); -#line 987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp67_ = _tmp66_; -#line 987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_entry_set_text (_tmp64_, _tmp67_); -#line 987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (_tmp67_); -#line 7856 "EditingTools.c" - } -#line 989 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp68_ = self->priv->custom_init_width; -#line 989 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp69_ = self->priv->custom_init_height; -#line 989 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_aspect_ratio = ((gfloat) _tmp68_) / ((gfloat) _tmp69_); -#line 991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp70_ = self->priv->crop_tool_window; -#line 991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, gtk_widget_get_type (), GtkWidget)); -#line 993 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->constraint_mode = EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_CUSTOM; -#line 7870 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_set_normal_constraint_mode (EditingToolsCropTool* self) -{ - EditingToolsCropToolConstraintMode _tmp0_; - EditingToolsCropToolCropToolWindow* _tmp1_; - GtkBox* _tmp2_; - EditingToolsCropToolCropToolWindow* _tmp3_; - GtkComboBox* _tmp4_; - EditingToolsCropToolCropToolWindow* _tmp5_; - GtkBox* _tmp6_; - EditingToolsCropToolCropToolWindow* _tmp7_; - GtkEntry* _tmp8_; - EditingToolsCropToolCropToolWindow* _tmp9_; - GtkBox* _tmp10_; - EditingToolsCropToolCropToolWindow* _tmp11_; - GtkLabel* _tmp12_; - EditingToolsCropToolCropToolWindow* _tmp13_; - GtkBox* _tmp14_; - EditingToolsCropToolCropToolWindow* _tmp15_; - GtkEntry* _tmp16_; - EditingToolsCropToolCropToolWindow* _tmp17_; - GtkBox* _tmp18_; - EditingToolsCropToolCropToolWindow* _tmp19_; - GtkButton* _tmp20_; - EditingToolsCropToolCropToolWindow* _tmp21_; - GtkBox* _tmp22_; - EditingToolsCropToolCropToolWindow* _tmp23_; - GtkBox* _tmp24_; - EditingToolsCropToolCropToolWindow* _tmp25_; - GtkBox* _tmp26_; - EditingToolsCropToolCropToolWindow* _tmp27_; - GtkComboBox* _tmp28_; - EditingToolsCropToolCropToolWindow* _tmp29_; - GtkBox* _tmp30_; - EditingToolsCropToolCropToolWindow* _tmp31_; - GtkButton* _tmp32_; - EditingToolsCropToolCropToolWindow* _tmp33_; - GtkBox* _tmp34_; - EditingToolsCropToolCropToolWindow* _tmp35_; - GtkBox* _tmp36_; - EditingToolsCropToolCropToolWindow* _tmp37_; - EditingToolsCropToolCropToolWindow* _tmp38_; - gint _tmp39_; - EditingToolsCropToolCropToolWindow* _tmp40_; - gint _tmp41_; - EditingToolsCropToolCropToolWindow* _tmp42_; -#line 996 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 997 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->constraint_mode; -#line 997 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ == EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_NORMAL) { -#line 998 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 7928 "EditingTools.c" - } -#line 1000 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->crop_tool_window; -#line 1000 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_->layout; -#line 1000 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->crop_tool_window; -#line 1000 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_->constraint_combo; -#line 1000 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget)); -#line 1001 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = self->priv->crop_tool_window; -#line 1001 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_->layout; -#line 1001 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = self->priv->crop_tool_window; -#line 1001 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = _tmp7_->custom_width_entry; -#line 1001 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget)); -#line 1002 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->crop_tool_window; -#line 1002 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_->layout; -#line 1002 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = self->priv->crop_tool_window; -#line 1002 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _tmp11_->custom_mulsign_label; -#line 1002 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget)); -#line 1003 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = self->priv->crop_tool_window; -#line 1003 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = _tmp13_->layout; -#line 1003 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = self->priv->crop_tool_window; -#line 1003 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = _tmp15_->custom_height_entry; -#line 1003 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget)); -#line 1004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = self->priv->crop_tool_window; -#line 1004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = _tmp17_->layout; -#line 1004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = self->priv->crop_tool_window; -#line 1004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = _tmp19_->pivot_reticle_button; -#line 1004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget)); -#line 1005 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = self->priv->crop_tool_window; -#line 1005 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = _tmp21_->layout; -#line 1005 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = self->priv->crop_tool_window; -#line 1005 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = _tmp23_->response_layout; -#line 1005 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_widget_get_type (), GtkWidget)); -#line 1007 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = self->priv->crop_tool_window; -#line 1007 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = _tmp25_->layout; -#line 1007 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = self->priv->crop_tool_window; -#line 1007 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = _tmp27_->constraint_combo; -#line 1007 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_widget_get_type (), GtkWidget)); -#line 1008 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29_ = self->priv->crop_tool_window; -#line 1008 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp30_ = _tmp29_->layout; -#line 1008 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp31_ = self->priv->crop_tool_window; -#line 1008 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp32_ = _tmp31_->pivot_reticle_button; -#line 1008 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_widget_get_type (), GtkWidget)); -#line 1009 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33_ = self->priv->crop_tool_window; -#line 1009 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp34_ = _tmp33_->layout; -#line 1009 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp35_ = self->priv->crop_tool_window; -#line 1009 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp36_ = _tmp35_->response_layout; -#line 1009 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_widget_get_type (), GtkWidget)); -#line 1011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp37_ = self->priv->crop_tool_window; -#line 1011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp38_ = self->priv->crop_tool_window; -#line 1011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp39_ = _tmp38_->normal_width; -#line 1011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp40_ = self->priv->crop_tool_window; -#line 1011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp41_ = _tmp40_->normal_height; -#line 1011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_window_resize (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_window_get_type (), GtkWindow), _tmp39_, _tmp41_); -#line 1014 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp42_ = self->priv->crop_tool_window; -#line 1014 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_widget_get_type (), GtkWidget)); -#line 1016 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->constraint_mode = EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_NORMAL; -#line 8038 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_constrain_crop (EditingToolsCropTool* self, - Box* crop, - Box* result) -{ - gfloat user_aspect_ratio = 0.0F; - gfloat _tmp0_; - gfloat old_area = 0.0F; - gfloat _tmp2_; - gfloat _tmp3_; - gfloat _tmp4_; - gfloat _tmp5_; - Dimensions image_size = {0}; - Dimensions _tmp6_ = {0}; - gdouble angle = 0.0; - EditingToolsPhotoCanvas* _tmp7_; - Photo* _tmp8_; - Photo* _tmp9_; - gdouble _tmp10_ = 0.0; - Box _tmp11_; - Dimensions _tmp12_; - gint _tmp13_; - Dimensions _tmp14_; - gint _tmp15_; - gdouble _tmp16_; - Box _tmp17_ = {0}; - gfloat _tmp18_; - Box _tmp21_; -#line 1019 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 1019 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (crop != NULL); -#line 1020 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - user_aspect_ratio = editing_tools_crop_tool_get_constraint_aspect_ratio (self); -#line 1021 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = user_aspect_ratio; -#line 1021 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ == EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) { -#line 8080 "EditingTools.c" - Box _tmp1_; -#line 1022 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = *crop; -#line 1022 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *result = _tmp1_; -#line 1022 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 8088 "EditingTools.c" - } -#line 1025 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - old_area = (gfloat) (box_get_width (crop) * box_get_height (crop)); -#line 1026 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = old_area; -#line 1026 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = user_aspect_ratio; -#line 1026 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_adjust_height (crop, (gint) sqrt ((gdouble) (_tmp2_ / _tmp3_))); -#line 1027 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = old_area; -#line 1027 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = user_aspect_ratio; -#line 1027 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_adjust_width (crop, (gint) sqrt ((gdouble) (_tmp4_ * _tmp5_))); -#line 1030 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_get_photo_dimensions (self, &_tmp6_); -#line 1030 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - image_size = _tmp6_; -#line 1032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = editing_tools_photo_canvas_get_photo (_tmp7_); -#line 1032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = _tmp8_; -#line 1032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - photo_get_straighten (_tmp9_, &_tmp10_); -#line 1032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - angle = _tmp10_; -#line 1032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp9_); -#line 1033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = *crop; -#line 1033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = image_size; -#line 1033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_.width; -#line 1033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = image_size; -#line 1033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = _tmp14_.height; -#line 1033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = angle; -#line 1033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - clamp_inside_rotated_image (&_tmp11_, _tmp13_, _tmp15_, _tmp16_, FALSE, &_tmp17_); -#line 1033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *crop = _tmp17_; -#line 1036 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = user_aspect_ratio; -#line 1036 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (((gfloat) box_get_width (crop)) >= (box_get_height (crop) * _tmp18_)) { -#line 8140 "EditingTools.c" - gfloat _tmp19_; -#line 1037 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = user_aspect_ratio; -#line 1037 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_adjust_width (crop, (gint) (box_get_height (crop) * _tmp19_)); -#line 8146 "EditingTools.c" - } else { - gfloat _tmp20_; -#line 1039 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = user_aspect_ratio; -#line 1039 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_adjust_height (crop, (gint) (box_get_width (crop) / _tmp20_)); -#line 8153 "EditingTools.c" - } -#line 1041 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = *crop; -#line 1041 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *result = _tmp21_; -#line 1041 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 8161 "EditingTools.c" -} - - -static EditingToolsCropToolConstraintDescription* -editing_tools_crop_tool_get_last_constraint (EditingToolsCropTool* self, - gint* index) -{ - gint _vala_index = 0; - EditingToolsCropToolConstraintDescription* result = NULL; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - EditingToolsCropToolConstraintDescription* _tmp2_ = NULL; - gint _tmp3_; - EditingToolsCropToolConstraintDescription** _tmp4_; - gint _tmp4__length1; - EditingToolsCropToolConstraintDescription* _tmp8_; -#line 1044 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), NULL); -#line 1045 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = config_facade_get_instance (); -#line 1045 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_; -#line 1045 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_index = configuration_facade_get_last_crop_menu_choice (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 1045 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp1_); -#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _vala_index; -#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->constraints; -#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4__length1 = self->priv->constraints_length1; -#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp3_ < _tmp4__length1) { -#line 8196 "EditingTools.c" - EditingToolsCropToolConstraintDescription** _tmp5_; - gint _tmp5__length1; - gint _tmp6_; - EditingToolsCropToolConstraintDescription* _tmp7_; -#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = self->priv->constraints; -#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5__length1 = self->priv->constraints_length1; -#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _vala_index; -#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp5_[_tmp6_]; -#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp7_; -#line 8211 "EditingTools.c" - } else { -#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = NULL; -#line 8215 "EditingTools.c" - } -#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = _editing_tools_crop_tool_constraint_description_ref0 (_tmp2_); -#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp8_; -#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (index) { -#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *index = _vala_index; -#line 8225 "EditingTools.c" - } -#line 1047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 8229 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_real_activate (EditingToolsEditingTool* base, - EditingToolsPhotoCanvas* canvas) -{ - EditingToolsCropTool * self; - cairo_t* _tmp0_; - cairo_t* _tmp1_; - Dimensions _tmp2_ = {0}; - cairo_surface_t* _tmp3_; - GdkRectangle _tmp4_ = {0}; - gint _tmp5_; - GdkRectangle _tmp6_ = {0}; - gint _tmp7_; - cairo_surface_t* _tmp8_; - cairo_t* ctx = NULL; - cairo_surface_t* _tmp9_; - cairo_t* _tmp10_; - cairo_t* _tmp11_; - cairo_t* _tmp12_; - GtkWindow* _tmp13_; - GtkWindow* _tmp14_; - EditingToolsCropToolCropToolWindow* _tmp15_; - EditingToolsCropToolCropToolWindow* _tmp16_; - GtkComboBox* _tmp17_; - GtkListStore* _tmp18_; - Photo* _tmp19_; - Photo* _tmp20_; - gboolean _tmp21_; - Dimensions uncropped_dim = {0}; - Photo* _tmp49_; - Photo* _tmp50_; - Dimensions _tmp51_ = {0}; - Dimensions _tmp52_; - Box crop = {0}; - Photo* _tmp53_; - Photo* _tmp54_; - Box _tmp55_ = {0}; - gboolean _tmp56_; - gboolean _tmp57_; - Dimensions _tmp70_; - GdkRectangle _tmp71_ = {0}; - Dimensions _tmp72_ = {0}; - Box _tmp73_ = {0}; - ConfigFacade* _tmp74_; - ConfigFacade* _tmp75_; - ConfigFacade* _tmp76_; - ConfigFacade* _tmp77_; - gint _tmp78_; - gint _tmp79_; - gint _tmp80_; - gint _tmp81_; - EditingToolsCropToolCropToolWindow* _tmp82_; - Photo* _tmp83_; - Photo* _tmp84_; - gboolean _tmp85_; - Box new_crop = {0}; - Box _tmp93_; - Box _tmp94_ = {0}; - Box _tmp95_; - Box _tmp96_; - Box _tmp97_; -#line 1050 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool); -#line 1050 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas)); -#line 1051 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_bind_canvas_handlers (self, canvas); -#line 1053 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = editing_tools_photo_canvas_get_default_ctx (canvas); -#line 1053 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_; -#line 1053 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_surface_dim (canvas, &_tmp2_); -#line 1053 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_prepare_ctx (self, _tmp1_, &_tmp2_); -#line 1053 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (_tmp1_); -#line 1055 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->crop_surface; -#line 1055 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp3_ != NULL) { -#line 1056 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_surface_destroy0 (self->priv->crop_surface); -#line 1056 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->crop_surface = NULL; -#line 8318 "EditingTools.c" - } -#line 1058 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (canvas, &_tmp4_); -#line 1058 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_.width; -#line 1058 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (canvas, &_tmp6_); -#line 1058 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_.height; -#line 1058 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, _tmp5_, _tmp7_); -#line 1058 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_surface_destroy0 (self->priv->crop_surface); -#line 1058 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->crop_surface = _tmp8_; -#line 1062 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->crop_surface; -#line 1062 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = cairo_create (_tmp9_); -#line 1062 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ctx = _tmp10_; -#line 1063 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = ctx; -#line 1063 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_source_rgba (_tmp11_, 0.0, 0.0, 0.0, 1.0); -#line 1064 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = ctx; -#line 1064 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_paint (_tmp12_); -#line 1067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = editing_tools_photo_canvas_get_container (canvas); -#line 1067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = _tmp13_; -#line 1067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = editing_tools_crop_tool_crop_tool_window_new (_tmp14_); -#line 1067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp15_); -#line 1067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->crop_tool_window); -#line 1067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->crop_tool_window = _tmp15_; -#line 1067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp14_); -#line 1070 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = self->priv->crop_tool_window; -#line 1070 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = _tmp16_->constraint_combo; -#line 1070 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = self->priv->constraint_list; -#line 1070 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_combo_box_set_model (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_tree_model_get_type (), GtkTreeModel)); -#line 1071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = editing_tools_photo_canvas_get_photo (canvas); -#line 1071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = _tmp19_; -#line 1071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = !photo_has_crop (_tmp20_); -#line 1071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp20_); -#line 1071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp21_) { -#line 8380 "EditingTools.c" - gint index = 0; - EditingToolsCropToolConstraintDescription* desc = NULL; - gint _tmp22_ = 0; - EditingToolsCropToolConstraintDescription* _tmp23_; - gboolean _tmp24_ = FALSE; - EditingToolsCropToolConstraintDescription* _tmp25_; -#line 1073 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = editing_tools_crop_tool_get_last_constraint (self, &_tmp22_); -#line 1073 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - index = _tmp22_; -#line 1073 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - desc = _tmp23_; -#line 1074 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = desc; -#line 1074 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp25_ != NULL) { -#line 8397 "EditingTools.c" - EditingToolsCropToolConstraintDescription* _tmp26_; -#line 1074 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = desc; -#line 1074 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = !editing_tools_crop_tool_constraint_description_is_separator (_tmp26_); -#line 8403 "EditingTools.c" - } else { -#line 1074 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = FALSE; -#line 8407 "EditingTools.c" - } -#line 1074 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp24_) { -#line 8411 "EditingTools.c" - EditingToolsCropToolCropToolWindow* _tmp27_; - GtkComboBox* _tmp28_; - gint _tmp29_; -#line 1075 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = self->priv->crop_tool_window; -#line 1075 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = _tmp27_->constraint_combo; -#line 1075 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29_ = index; -#line 1075 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_combo_box_set_active (_tmp28_, _tmp29_); -#line 8423 "EditingTools.c" - } -#line 1071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _editing_tools_crop_tool_constraint_description_unref0 (desc); -#line 8427 "EditingTools.c" - } else { - Photo* photo = NULL; - Photo* _tmp30_; - Dimensions cropped_dim = {0}; - Photo* _tmp31_; - Dimensions _tmp32_ = {0}; - gfloat ratio = 0.0F; - Dimensions _tmp33_; - gint _tmp34_; - Dimensions _tmp35_; - gint _tmp36_; -#line 1079 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp30_ = editing_tools_photo_canvas_get_photo (canvas); -#line 1079 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - photo = _tmp30_; -#line 1080 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp31_ = photo; -#line 1080 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp32_); -#line 1080 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cropped_dim = _tmp32_; -#line 1081 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33_ = cropped_dim; -#line 1081 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp34_ = _tmp33_.width; -#line 1081 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp35_ = cropped_dim; -#line 1081 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp36_ = _tmp35_.height; -#line 1081 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ratio = ((gfloat) _tmp34_) / ((gfloat) _tmp36_); -#line 8459 "EditingTools.c" - { - gint index = 0; -#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - index = 1; -#line 8464 "EditingTools.c" - { - gboolean _tmp37_ = FALSE; -#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp37_ = TRUE; -#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - while (TRUE) { -#line 8471 "EditingTools.c" - gint _tmp39_; - EditingToolsCropToolConstraintDescription** _tmp40_; - gint _tmp40__length1; - gfloat _tmp41_; - EditingToolsCropToolConstraintDescription** _tmp42_; - gint _tmp42__length1; - gint _tmp43_; - EditingToolsCropToolConstraintDescription* _tmp44_; - Photo* _tmp45_; -#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!_tmp37_) { -#line 8483 "EditingTools.c" - gint _tmp38_; -#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp38_ = index; -#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - index = _tmp38_ + 1; -#line 8489 "EditingTools.c" - } -#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp37_ = FALSE; -#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp39_ = index; -#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp40_ = self->priv->constraints; -#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp40__length1 = self->priv->constraints_length1; -#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!(_tmp39_ < _tmp40__length1)) { -#line 1082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 8503 "EditingTools.c" - } -#line 1083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp41_ = ratio; -#line 1083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp42_ = self->priv->constraints; -#line 1083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp42__length1 = self->priv->constraints_length1; -#line 1083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp43_ = index; -#line 1083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp44_ = _tmp42_[_tmp43_]; -#line 1083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp45_ = photo; -#line 1083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (fabs ((gdouble) (_tmp41_ - editing_tools_crop_tool_get_constraint_aspect_ratio_for_constraint (self, _tmp44_, _tmp45_))) < 0.005) { -#line 8519 "EditingTools.c" - EditingToolsCropToolCropToolWindow* _tmp46_; - GtkComboBox* _tmp47_; - gint _tmp48_; -#line 1084 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp46_ = self->priv->crop_tool_window; -#line 1084 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp47_ = _tmp46_->constraint_combo; -#line 1084 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp48_ = index; -#line 1084 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_combo_box_set_active (_tmp47_, _tmp48_); -#line 8531 "EditingTools.c" - } - } - } - } -#line 1071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (photo); -#line 8538 "EditingTools.c" - } -#line 1089 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_update_pivot_button_state (self); -#line 1090 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->reticle_orientation = EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE; -#line 1092 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_bind_window_handlers (self); -#line 1095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp49_ = editing_tools_photo_canvas_get_photo (canvas); -#line 1095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp50_ = _tmp49_; -#line 1095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP, &_tmp51_); -#line 1095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp52_ = _tmp51_; -#line 1095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp50_); -#line 1095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - uncropped_dim = _tmp52_; -#line 1098 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp53_ = editing_tools_photo_canvas_get_photo (canvas); -#line 1098 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp54_ = _tmp53_; -#line 1098 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp56_ = photo_get_crop (_tmp54_, &_tmp55_, PHOTO_EXCEPTION_NONE); -#line 1098 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - crop = _tmp55_; -#line 1098 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp57_ = !_tmp56_; -#line 1098 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp54_); -#line 1098 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp57_) { -#line 8572 "EditingTools.c" - gint xofs = 0; - Dimensions _tmp58_; - gint _tmp59_; - gint yofs = 0; - Dimensions _tmp60_; - gint _tmp61_; - gint _tmp62_; - gint _tmp63_; - Dimensions _tmp64_; - gint _tmp65_; - gint _tmp66_; - Dimensions _tmp67_; - gint _tmp68_; - gint _tmp69_; -#line 1099 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp58_ = uncropped_dim; -#line 1099 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp59_ = _tmp58_.width; -#line 1099 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - xofs = (gint) (_tmp59_ * EDITING_TOOLS_CROP_TOOL_CROP_INIT_X_PCT); -#line 1100 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp60_ = uncropped_dim; -#line 1100 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp61_ = _tmp60_.height; -#line 1100 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - yofs = (gint) (_tmp61_ * EDITING_TOOLS_CROP_TOOL_CROP_INIT_Y_PCT); -#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp62_ = xofs; -#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp63_ = yofs; -#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp64_ = uncropped_dim; -#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp65_ = _tmp64_.width; -#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp66_ = xofs; -#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp67_ = uncropped_dim; -#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp68_ = _tmp67_.height; -#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp69_ = yofs; -#line 1104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_init (&crop, _tmp62_, _tmp63_, _tmp65_ - _tmp66_, _tmp68_ - _tmp69_); -#line 8617 "EditingTools.c" - } -#line 1109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp70_ = uncropped_dim; -#line 1109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (canvas, &_tmp71_); -#line 1109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - dimensions_for_rectangle (&_tmp71_, &_tmp72_); -#line 1109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_get_scaled_similar (&crop, &_tmp70_, &_tmp72_, &_tmp73_); -#line 1109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->scaled_crop = _tmp73_; -#line 1114 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp74_ = config_facade_get_instance (); -#line 1114 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp75_ = _tmp74_; -#line 1114 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_width = configuration_facade_get_last_crop_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp75_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 1114 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp75_); -#line 1115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp76_ = config_facade_get_instance (); -#line 1115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp77_ = _tmp76_; -#line 1115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_height = configuration_facade_get_last_crop_height (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 1115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp77_); -#line 1116 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp78_ = self->priv->custom_width; -#line 1116 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_init_width = _tmp78_; -#line 1117 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp79_ = self->priv->custom_height; -#line 1117 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_init_height = _tmp79_; -#line 1118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp80_ = self->priv->custom_init_width; -#line 1118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp81_ = self->priv->custom_init_height; -#line 1118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->pre_aspect_ratio = ((gfloat) _tmp80_) / ((gfloat) _tmp81_); -#line 1120 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->constraint_mode = EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_NORMAL; -#line 1122 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_crop_tool_parent_class)->activate (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), canvas); -#line 1124 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp82_ = self->priv->crop_tool_window; -#line 1124 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, gtk_widget_get_type (), GtkWidget)); -#line 1127 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp83_ = editing_tools_photo_canvas_get_photo (canvas); -#line 1127 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp84_ = _tmp83_; -#line 1127 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp85_ = !photo_has_crop (_tmp84_); -#line 1127 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp84_); -#line 1127 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp85_) { -#line 8677 "EditingTools.c" - EditingToolsCropToolConstraintDescription* desc = NULL; - EditingToolsCropToolConstraintDescription* _tmp86_; - gboolean _tmp87_ = FALSE; - gboolean _tmp88_ = FALSE; - EditingToolsCropToolConstraintDescription* _tmp89_; -#line 1128 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp86_ = editing_tools_crop_tool_get_last_constraint (self, NULL); -#line 1128 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - desc = _tmp86_; -#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp89_ = desc; -#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp89_ != NULL) { -#line 8691 "EditingTools.c" - EditingToolsCropToolConstraintDescription* _tmp90_; -#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp90_ = desc; -#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp88_ = !editing_tools_crop_tool_constraint_description_is_separator (_tmp90_); -#line 8697 "EditingTools.c" - } else { -#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp88_ = FALSE; -#line 8701 "EditingTools.c" - } -#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp88_) { -#line 8705 "EditingTools.c" - EditingToolsCropToolConstraintDescription* _tmp91_; - gfloat _tmp92_; -#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp91_ = desc; -#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp92_ = _tmp91_->aspect_ratio; -#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp87_ = _tmp92_ == EDITING_TOOLS_CROP_TOOL_CUSTOM_ASPECT_RATIO; -#line 8714 "EditingTools.c" - } else { -#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp87_ = FALSE; -#line 8718 "EditingTools.c" - } -#line 1129 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp87_) { -#line 1130 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_set_custom_constraint_mode (self); -#line 8724 "EditingTools.c" - } -#line 1127 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _editing_tools_crop_tool_constraint_description_unref0 (desc); -#line 8728 "EditingTools.c" - } -#line 1137 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp93_ = self->priv->scaled_crop; -#line 1137 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_constrain_crop (self, &_tmp93_, &_tmp94_); -#line 1137 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_crop = _tmp94_; -#line 1139 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp95_ = new_crop; -#line 1139 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_crop_resized (self, &_tmp95_); -#line 1140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp96_ = new_crop; -#line 1140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->scaled_crop = _tmp96_; -#line 1141 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp97_ = new_crop; -#line 1141 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_invalidate_area (canvas, &_tmp97_); -#line 1142 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_repaint (canvas); -#line 1144 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->pre_aspect_ratio = editing_tools_crop_tool_get_constraint_aspect_ratio (self); -#line 1050 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (ctx); -#line 8754 "EditingTools.c" -} - - -static void -_editing_tools_crop_tool_prepare_ctx_editing_tools_photo_canvas_new_surface (EditingToolsPhotoCanvas* _sender, - cairo_t* ctx, - Dimensions* dim, - gpointer self) -{ -#line 1148 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_prepare_ctx ((EditingToolsCropTool*) self, ctx, dim); -#line 8766 "EditingTools.c" -} - - -static void -_editing_tools_crop_tool_on_resized_pixbuf_editing_tools_photo_canvas_resized_scaled_pixbuf (EditingToolsPhotoCanvas* _sender, - Dimensions* old_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position, - gpointer self) -{ -#line 1149 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_on_resized_pixbuf ((EditingToolsCropTool*) self, old_dim, scaled, scaled_position); -#line 8779 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_bind_canvas_handlers (EditingToolsCropTool* self, - EditingToolsPhotoCanvas* canvas) -{ -#line 1147 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 1147 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas)); -#line 1148 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (canvas, "new-surface", (GCallback) _editing_tools_crop_tool_prepare_ctx_editing_tools_photo_canvas_new_surface, self); -#line 1149 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (canvas, "resized-scaled-pixbuf", (GCallback) _editing_tools_crop_tool_on_resized_pixbuf_editing_tools_photo_canvas_resized_scaled_pixbuf, self); -#line 8795 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_unbind_canvas_handlers (EditingToolsCropTool* self, - EditingToolsPhotoCanvas* canvas) -{ - guint _tmp0_; - guint _tmp1_; -#line 1152 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 1152 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas)); -#line 1153 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("new-surface", EDITING_TOOLS_TYPE_PHOTO_CANVAS, &_tmp0_, NULL, FALSE); -#line 1153 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (canvas, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _editing_tools_crop_tool_prepare_ctx_editing_tools_photo_canvas_new_surface, self); -#line 1154 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("resized-scaled-pixbuf", EDITING_TOOLS_TYPE_PHOTO_CANVAS, &_tmp1_, NULL, FALSE); -#line 1154 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (canvas, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _editing_tools_crop_tool_on_resized_pixbuf_editing_tools_photo_canvas_resized_scaled_pixbuf, self); -#line 8817 "EditingTools.c" -} - - -static void -_editing_tools_crop_tool_on_crop_ok_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1159 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_on_crop_ok ((EditingToolsCropTool*) self); -#line 8827 "EditingTools.c" -} - - -static void -_editing_tools_editing_tool_notify_cancel_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1160 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_editing_tool_notify_cancel ((EditingToolsEditingTool*) self); -#line 8837 "EditingTools.c" -} - - -static void -_editing_tools_crop_tool_constraint_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 1161 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_constraint_changed ((EditingToolsCropTool*) self); -#line 8847 "EditingTools.c" -} - - -static void -_editing_tools_crop_tool_on_pivot_button_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 1162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_on_pivot_button_clicked ((EditingToolsCropTool*) self); -#line 8857 "EditingTools.c" -} - - -static gboolean -_editing_tools_crop_tool_on_width_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender, - GdkEventFocus* event, - gpointer self) -{ - gboolean result; - result = editing_tools_crop_tool_on_width_entry_focus_out ((EditingToolsCropTool*) self, event); -#line 1165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 8870 "EditingTools.c" -} - - -static gboolean -_editing_tools_crop_tool_on_height_entry_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender, - GdkEventFocus* event, - gpointer self) -{ - gboolean result; - result = editing_tools_crop_tool_on_height_entry_focus_out ((EditingToolsCropTool*) self, event); -#line 1166 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 8883 "EditingTools.c" -} - - -static void -_editing_tools_crop_tool_on_width_insert_text_gtk_editable_insert_text (GtkEditable* _sender, - const gchar* new_text, - gint new_text_length, - gint* position, - gpointer self) -{ -#line 1167 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_on_width_insert_text ((EditingToolsCropTool*) self, new_text, new_text_length, position); -#line 8896 "EditingTools.c" -} - - -static void -_editing_tools_crop_tool_on_height_insert_text_gtk_editable_insert_text (GtkEditable* _sender, - const gchar* new_text, - gint new_text_length, - gint* position, - gpointer self) -{ -#line 1168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_on_height_insert_text ((EditingToolsCropTool*) self, new_text, new_text_length, position); -#line 8909 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_bind_window_handlers (EditingToolsCropTool* self) -{ - EditingToolsCropToolCropToolWindow* _tmp0_; - EditingToolsCropToolCropToolWindow* _tmp1_; - GtkButton* _tmp2_; - EditingToolsCropToolCropToolWindow* _tmp3_; - GtkButton* _tmp4_; - EditingToolsCropToolCropToolWindow* _tmp5_; - GtkComboBox* _tmp6_; - EditingToolsCropToolCropToolWindow* _tmp7_; - GtkButton* _tmp8_; - EditingToolsCropToolCropToolWindow* _tmp9_; - GtkEntry* _tmp10_; - EditingToolsCropToolCropToolWindow* _tmp11_; - GtkEntry* _tmp12_; - EditingToolsCropToolCropToolWindow* _tmp13_; - GtkEntry* _tmp14_; - EditingToolsCropToolCropToolWindow* _tmp15_; - GtkEntry* _tmp16_; -#line 1157 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 1158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->crop_tool_window; -#line 1158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), "key-press-event", (GCallback) _editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)); -#line 1159 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->crop_tool_window; -#line 1159 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_->ok_button; -#line 1159 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (_tmp2_, "clicked", (GCallback) _editing_tools_crop_tool_on_crop_ok_gtk_button_clicked, self); -#line 1160 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->crop_tool_window; -#line 1160 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_->cancel_button; -#line 1160 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (_tmp4_, "clicked", (GCallback) _editing_tools_editing_tool_notify_cancel_gtk_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)); -#line 1161 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = self->priv->crop_tool_window; -#line 1161 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_->constraint_combo; -#line 1161 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (_tmp6_, "changed", (GCallback) _editing_tools_crop_tool_constraint_changed_gtk_combo_box_changed, self); -#line 1162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = self->priv->crop_tool_window; -#line 1162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = _tmp7_->pivot_reticle_button; -#line 1162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (_tmp8_, "clicked", (GCallback) _editing_tools_crop_tool_on_pivot_button_clicked_gtk_button_clicked, self); -#line 1165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->crop_tool_window; -#line 1165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_->custom_width_entry; -#line 1165 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), "focus-out-event", (GCallback) _editing_tools_crop_tool_on_width_entry_focus_out_gtk_widget_focus_out_event, self); -#line 1166 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = self->priv->crop_tool_window; -#line 1166 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _tmp11_->custom_height_entry; -#line 1166 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), "focus-out-event", (GCallback) _editing_tools_crop_tool_on_height_entry_focus_out_gtk_widget_focus_out_event, self); -#line 1167 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = self->priv->crop_tool_window; -#line 1167 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = _tmp13_->custom_width_entry; -#line 1167 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_editable_get_type (), GtkEditable), "insert-text", (GCallback) _editing_tools_crop_tool_on_width_insert_text_gtk_editable_insert_text, self); -#line 1168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = self->priv->crop_tool_window; -#line 1168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = _tmp15_->custom_height_entry; -#line 1168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_editable_get_type (), GtkEditable), "insert-text", (GCallback) _editing_tools_crop_tool_on_height_insert_text_gtk_editable_insert_text, self); -#line 8987 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_unbind_window_handlers (EditingToolsCropTool* self) -{ - EditingToolsCropToolCropToolWindow* _tmp0_; - guint _tmp1_; - EditingToolsCropToolCropToolWindow* _tmp2_; - GtkButton* _tmp3_; - guint _tmp4_; - EditingToolsCropToolCropToolWindow* _tmp5_; - GtkButton* _tmp6_; - guint _tmp7_; - EditingToolsCropToolCropToolWindow* _tmp8_; - GtkComboBox* _tmp9_; - guint _tmp10_; - EditingToolsCropToolCropToolWindow* _tmp11_; - GtkButton* _tmp12_; - guint _tmp13_; - EditingToolsCropToolCropToolWindow* _tmp14_; - GtkEntry* _tmp15_; - guint _tmp16_; - EditingToolsCropToolCropToolWindow* _tmp17_; - GtkEntry* _tmp18_; - guint _tmp19_; - EditingToolsCropToolCropToolWindow* _tmp20_; - GtkEntry* _tmp21_; - guint _tmp22_; -#line 1171 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 1172 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->crop_tool_window; -#line 1172 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("key-press-event", gtk_widget_get_type (), &_tmp1_, NULL, FALSE); -#line 1172 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)); -#line 1173 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->crop_tool_window; -#line 1173 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_->ok_button; -#line 1173 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp4_, NULL, FALSE); -#line 1173 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _editing_tools_crop_tool_on_crop_ok_gtk_button_clicked, self); -#line 1174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = self->priv->crop_tool_window; -#line 1174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_->cancel_button; -#line 1174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp7_, NULL, FALSE); -#line 1174 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _editing_tools_editing_tool_notify_cancel_gtk_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)); -#line 1175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = self->priv->crop_tool_window; -#line 1175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = _tmp8_->constraint_combo; -#line 1175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp10_, NULL, FALSE); -#line 1175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _editing_tools_crop_tool_constraint_changed_gtk_combo_box_changed, self); -#line 1176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = self->priv->crop_tool_window; -#line 1176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _tmp11_->pivot_reticle_button; -#line 1176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp13_, NULL, FALSE); -#line 1176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (_tmp12_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _editing_tools_crop_tool_on_pivot_button_clicked_gtk_button_clicked, self); -#line 1179 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = self->priv->crop_tool_window; -#line 1179 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = _tmp14_->custom_width_entry; -#line 1179 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("focus-out-event", gtk_widget_get_type (), &_tmp16_, NULL, FALSE); -#line 1179 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp16_, 0, NULL, (GCallback) _editing_tools_crop_tool_on_width_entry_focus_out_gtk_widget_focus_out_event, self); -#line 1180 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = self->priv->crop_tool_window; -#line 1180 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = _tmp17_->custom_height_entry; -#line 1180 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("focus-out-event", gtk_widget_get_type (), &_tmp19_, NULL, FALSE); -#line 1180 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp19_, 0, NULL, (GCallback) _editing_tools_crop_tool_on_height_entry_focus_out_gtk_widget_focus_out_event, self); -#line 1181 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = self->priv->crop_tool_window; -#line 1181 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = _tmp20_->custom_width_entry; -#line 1181 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("insert-text", gtk_editable_get_type (), &_tmp22_, NULL, FALSE); -#line 1181 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_editable_get_type (), GtkEditable), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp22_, 0, NULL, (GCallback) _editing_tools_crop_tool_on_width_insert_text_gtk_editable_insert_text, self); -#line 9081 "EditingTools.c" -} - - -static gboolean -editing_tools_crop_tool_real_on_keypress (EditingToolsEditingTool* base, - GdkEventKey* event) -{ - EditingToolsCropTool * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - guint _tmp2_; - const gchar* _tmp3_; -#line 1184 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool); -#line 1184 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = event->keyval; -#line 1185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = gdk_keyval_name (_tmp2_); -#line 1185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (g_strcmp0 (_tmp3_, "KP_Enter") == 0) { -#line 1185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = TRUE; -#line 9107 "EditingTools.c" - } else { - guint _tmp4_; - const gchar* _tmp5_; -#line 1186 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = event->keyval; -#line 1186 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = gdk_keyval_name (_tmp4_); -#line 1186 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = g_strcmp0 (_tmp5_, "Enter") == 0; -#line 9117 "EditingTools.c" - } -#line 1185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp1_) { -#line 1185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = TRUE; -#line 9123 "EditingTools.c" - } else { - guint _tmp6_; - const gchar* _tmp7_; -#line 1187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = event->keyval; -#line 1187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = gdk_keyval_name (_tmp6_); -#line 1187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = g_strcmp0 (_tmp7_, "Return") == 0; -#line 9133 "EditingTools.c" - } -#line 1185 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_) { -#line 1188 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_on_crop_ok (self); -#line 1189 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = TRUE; -#line 1189 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 9143 "EditingTools.c" - } -#line 1192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_crop_tool_parent_class)->on_keypress (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), event); -#line 1192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 9149 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_on_pivot_button_clicked (EditingToolsCropTool* self) -{ - EditingToolsCropToolConstraintDescription* _tmp0_; - EditingToolsCropToolConstraintDescription* _tmp1_; - gfloat _tmp2_; - gboolean _tmp3_; - EditingToolsCropToolReticleOrientation _tmp21_; -#line 1195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 1196 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = editing_tools_crop_tool_get_selected_constraint (self); -#line 1196 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_; -#line 1196 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_->aspect_ratio; -#line 1196 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_ == EDITING_TOOLS_CROP_TOOL_CUSTOM_ASPECT_RATIO; -#line 1196 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _editing_tools_crop_tool_constraint_description_unref0 (_tmp1_); -#line 1196 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp3_) { -#line 9175 "EditingTools.c" - gchar* width_text = NULL; - EditingToolsCropToolCropToolWindow* _tmp4_; - GtkEntry* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; - gchar* height_text = NULL; - EditingToolsCropToolCropToolWindow* _tmp8_; - GtkEntry* _tmp9_; - const gchar* _tmp10_; - gchar* _tmp11_; - EditingToolsCropToolCropToolWindow* _tmp12_; - GtkEntry* _tmp13_; - const gchar* _tmp14_; - EditingToolsCropToolCropToolWindow* _tmp15_; - GtkEntry* _tmp16_; - const gchar* _tmp17_; - gint temp = 0; - gint _tmp18_; - gint _tmp19_; - gint _tmp20_; -#line 1197 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->crop_tool_window; -#line 1197 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_->custom_width_entry; -#line 1197 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = gtk_entry_get_text (_tmp5_); -#line 1197 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = g_strdup (_tmp6_); -#line 1197 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - width_text = _tmp7_; -#line 1198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = self->priv->crop_tool_window; -#line 1198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = _tmp8_->custom_height_entry; -#line 1198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = gtk_entry_get_text (_tmp9_); -#line 1198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = g_strdup (_tmp10_); -#line 1198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - height_text = _tmp11_; -#line 1199 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = self->priv->crop_tool_window; -#line 1199 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_->custom_width_entry; -#line 1199 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = height_text; -#line 1199 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_entry_set_text (_tmp13_, _tmp14_); -#line 1200 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = self->priv->crop_tool_window; -#line 1200 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = _tmp15_->custom_height_entry; -#line 1200 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = width_text; -#line 1200 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_entry_set_text (_tmp16_, _tmp17_); -#line 1202 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = self->priv->custom_width; -#line 1202 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - temp = _tmp18_; -#line 1203 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = self->priv->custom_height; -#line 1203 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_width = _tmp19_; -#line 1204 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = temp; -#line 1204 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_height = _tmp20_; -#line 1196 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (height_text); -#line 1196 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (width_text); -#line 9248 "EditingTools.c" - } -#line 1206 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = self->priv->reticle_orientation; -#line 1206 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->reticle_orientation = editing_tools_crop_tool_reticle_orientation_toggle (_tmp21_); -#line 1207 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_constraint_changed (self); -#line 9256 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_real_deactivate (EditingToolsEditingTool* base) -{ - EditingToolsCropTool * self; - EditingToolsPhotoCanvas* _tmp0_; - EditingToolsCropToolCropToolWindow* _tmp2_; - EditingToolsPhotoCanvas* _tmp5_; -#line 1210 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool); -#line 1211 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1211 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ != NULL) { -#line 9273 "EditingTools.c" - EditingToolsPhotoCanvas* _tmp1_; -#line 1212 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1212 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_unbind_canvas_handlers (self, _tmp1_); -#line 9279 "EditingTools.c" - } -#line 1214 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->crop_tool_window; -#line 1214 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp2_ != NULL) { -#line 9285 "EditingTools.c" - EditingToolsCropToolCropToolWindow* _tmp3_; - EditingToolsCropToolCropToolWindow* _tmp4_; -#line 1215 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_unbind_window_handlers (self); -#line 1216 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->crop_tool_window; -#line 1216 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget)); -#line 1217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->crop_tool_window; -#line 1217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget)); -#line 1218 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->crop_tool_window); -#line 1218 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->crop_tool_window = NULL; -#line 9302 "EditingTools.c" - } -#line 1222 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1222 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp5_ != NULL) { -#line 9308 "EditingTools.c" - GdkWindow* drawing_window = NULL; - EditingToolsPhotoCanvas* _tmp6_; - GdkWindow* _tmp7_; - GdkDisplay* display = NULL; - GdkWindow* _tmp8_; - GdkDisplay* _tmp9_; - GdkDisplay* _tmp10_; - GdkCursor* cursor = NULL; - GdkDisplay* _tmp11_; - GdkCursor* _tmp12_; - GdkWindow* _tmp13_; - GdkCursor* _tmp14_; -#line 1223 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1223 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = editing_tools_photo_canvas_get_drawing_window (_tmp6_); -#line 1223 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - drawing_window = _tmp7_; -#line 1224 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = drawing_window; -#line 1224 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = gdk_window_get_display (_tmp8_); -#line 1224 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _g_object_ref0 (_tmp9_); -#line 1224 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - display = _tmp10_; -#line 1225 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = display; -#line 1225 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = gdk_cursor_new_for_display (_tmp11_, GDK_LEFT_PTR); -#line 1225 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cursor = _tmp12_; -#line 1227 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = drawing_window; -#line 1227 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = cursor; -#line 1227 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gdk_window_set_cursor (_tmp13_, _tmp14_); -#line 1222 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (cursor); -#line 1222 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (display); -#line 1222 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (drawing_window); -#line 9353 "EditingTools.c" - } -#line 1230 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_surface_destroy0 (self->priv->crop_surface); -#line 1230 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->crop_surface = NULL; -#line 1232 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_crop_tool_parent_class)->deactivate (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)); -#line 9361 "EditingTools.c" -} - - -static EditingToolsEditingToolWindow* -editing_tools_crop_tool_real_get_tool_window (EditingToolsEditingTool* base) -{ - EditingToolsCropTool * self; - EditingToolsEditingToolWindow* result = NULL; - EditingToolsCropToolCropToolWindow* _tmp0_; - EditingToolsEditingToolWindow* _tmp1_; -#line 1235 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool); -#line 1236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->crop_tool_window; -#line 1236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow)); -#line 1236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp1_; -#line 1236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 9382 "EditingTools.c" -} - - -static GdkPixbuf* -editing_tools_crop_tool_real_get_display_pixbuf (EditingToolsEditingTool* base, - Scaling* scaling, - Photo* photo, - Dimensions* max_dim, - GError** error) -{ - EditingToolsCropTool * self; - Dimensions _vala_max_dim = {0}; - GdkPixbuf* result = NULL; - Dimensions _tmp0_ = {0}; - GdkPixbuf* _tmp1_ = NULL; - Scaling _tmp2_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GError * _inner_error_ = NULL; -#line 1239 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool); -#line 1239 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 1239 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 1241 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP, &_tmp0_); -#line 1241 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_max_dim = _tmp0_; -#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = *scaling; -#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = photo_get_pixbuf_with_options (photo, &_tmp2_, PHOTO_EXCEPTION_CROP, BACKING_FETCH_MODE_BASELINE, &_inner_error_); -#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp3_; -#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_propagate_error (error, _inner_error_); -#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return NULL; -#line 9424 "EditingTools.c" - } -#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp1_; -#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = NULL; -#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp4_; -#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp1_); -#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (max_dim) { -#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *max_dim = _vala_max_dim; -#line 9438 "EditingTools.c" - } -#line 1243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 9442 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_prepare_ctx (EditingToolsCropTool* self, - cairo_t* ctx, - Dimensions* dim) -{ - cairo_surface_t* _tmp0_; - cairo_t* _tmp1_; - cairo_t* _tmp2_; - cairo_t* _tmp3_; - cairo_surface_t* _tmp4_; - cairo_t* _tmp5_; - cairo_t* _tmp6_; - cairo_t* _tmp7_; - cairo_surface_t* _tmp8_; - cairo_t* _tmp9_; - cairo_t* _tmp10_; - cairo_t* _tmp11_; - cairo_surface_t* _tmp12_; - cairo_t* _tmp13_; - cairo_t* _tmp14_; -#line 1246 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 1246 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (ctx != NULL); -#line 1246 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (dim != NULL); -#line 1247 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = cairo_get_target (ctx); -#line 1247 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = cairo_create (_tmp0_); -#line 1247 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (self->priv->wide_black_ctx); -#line 1247 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->wide_black_ctx = _tmp1_; -#line 1248 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->wide_black_ctx; -#line 1248 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - set_source_color_from_string (_tmp2_, "#000"); -#line 1249 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->wide_black_ctx; -#line 1249 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_line_width (_tmp3_, (gdouble) 1); -#line 1251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = cairo_get_target (ctx); -#line 1251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = cairo_create (_tmp4_); -#line 1251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (self->priv->wide_white_ctx); -#line 1251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->wide_white_ctx = _tmp5_; -#line 1252 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = self->priv->wide_white_ctx; -#line 1252 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - set_source_color_from_string (_tmp6_, "#FFF"); -#line 1253 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = self->priv->wide_white_ctx; -#line 1253 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_line_width (_tmp7_, (gdouble) 1); -#line 1255 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = cairo_get_target (ctx); -#line 1255 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = cairo_create (_tmp8_); -#line 1255 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (self->priv->thin_white_ctx); -#line 1255 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->thin_white_ctx = _tmp9_; -#line 1256 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = self->priv->thin_white_ctx; -#line 1256 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - set_source_color_from_string (_tmp10_, "#FFF"); -#line 1257 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = self->priv->thin_white_ctx; -#line 1257 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_line_width (_tmp11_, 0.5); -#line 1259 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = cairo_get_target (ctx); -#line 1259 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = cairo_create (_tmp12_); -#line 1259 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (self->priv->text_ctx); -#line 1259 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->text_ctx = _tmp13_; -#line 1260 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = self->priv->text_ctx; -#line 1260 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_select_font_face (_tmp14_, "Sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL); -#line 9532 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_on_resized_pixbuf (EditingToolsCropTool* self, - Dimensions* old_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position) -{ - Dimensions new_dim = {0}; - Dimensions _tmp0_ = {0}; - Dimensions uncropped_dim = {0}; - EditingToolsPhotoCanvas* _tmp1_; - Photo* _tmp2_; - Photo* _tmp3_; - Dimensions _tmp4_ = {0}; - Dimensions _tmp5_; - Box crop = {0}; - Dimensions _tmp6_; - Dimensions _tmp7_; - Box _tmp8_ = {0}; - Dimensions _tmp9_; - Dimensions _tmp10_; - Box _tmp11_ = {0}; - cairo_surface_t* _tmp12_; - gint _tmp13_; - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; - cairo_surface_t* _tmp17_; - cairo_t* ctx = NULL; - cairo_surface_t* _tmp18_; - cairo_t* _tmp19_; -#line 1263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 1263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (old_dim != NULL); -#line 1263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (GDK_IS_PIXBUF (scaled)); -#line 1263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (scaled_position != NULL); -#line 1264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - dimensions_for_pixbuf (scaled, &_tmp0_); -#line 1264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_dim = _tmp0_; -#line 1265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = editing_tools_photo_canvas_get_photo (_tmp1_); -#line 1265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_; -#line 1265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP, &_tmp4_); -#line 1265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_; -#line 1265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp3_); -#line 1265 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - uncropped_dim = _tmp5_; -#line 1268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = *old_dim; -#line 1268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = uncropped_dim; -#line 1268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_get_scaled_similar (&self->priv->scaled_crop, &_tmp6_, &_tmp7_, &_tmp8_); -#line 1268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - crop = _tmp8_; -#line 1271 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = uncropped_dim; -#line 1271 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = new_dim; -#line 1271 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_get_scaled_similar (&crop, &_tmp9_, &_tmp10_, &_tmp11_); -#line 1271 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->scaled_crop = _tmp11_; -#line 1272 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = self->priv->crop_surface; -#line 1272 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp12_ != NULL) { -#line 1273 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_surface_destroy0 (self->priv->crop_surface); -#line 1273 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->crop_surface = NULL; -#line 9616 "EditingTools.c" - } -#line 1275 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = gdk_pixbuf_get_width (scaled); -#line 1275 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = _tmp13_; -#line 1275 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = gdk_pixbuf_get_height (scaled); -#line 1275 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = _tmp15_; -#line 1275 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, _tmp14_, _tmp16_); -#line 1275 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_surface_destroy0 (self->priv->crop_surface); -#line 1275 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->crop_surface = _tmp17_; -#line 1276 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = self->priv->crop_surface; -#line 1276 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = cairo_create (_tmp18_); -#line 1276 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ctx = _tmp19_; -#line 1277 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_source_rgba (ctx, 0.0, 0.0, 0.0, 1.0); -#line 1278 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_paint (ctx); -#line 1263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (ctx); -#line 9644 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_real_on_left_click (EditingToolsEditingTool* base, - gint x, - gint y) -{ - EditingToolsCropTool * self; - GdkRectangle scaled_pixbuf_pos = {0}; - EditingToolsPhotoCanvas* _tmp0_; - GdkRectangle _tmp1_ = {0}; - Box offset_scaled_crop = {0}; - GdkRectangle _tmp2_; - gint _tmp3_; - GdkRectangle _tmp4_; - gint _tmp5_; - Box _tmp6_ = {0}; - GdkRectangle _tmp7_; - gint _tmp8_; - GdkRectangle _tmp9_; - gint _tmp10_; - EditingToolsPhotoCanvas* _tmp11_; -#line 1282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool); -#line 1283 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1283 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp0_, &_tmp1_); -#line 1283 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - scaled_pixbuf_pos = _tmp1_; -#line 1286 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = scaled_pixbuf_pos; -#line 1286 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_.x; -#line 1286 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = scaled_pixbuf_pos; -#line 1286 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_.y; -#line 1286 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_get_offset (&self->priv->scaled_crop, _tmp3_, _tmp5_, &_tmp6_); -#line 1286 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - offset_scaled_crop = _tmp6_; -#line 1289 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->in_manipulation = box_approx_location (&offset_scaled_crop, x, y); -#line 1290 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = scaled_pixbuf_pos; -#line 1290 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = _tmp7_.x; -#line 1290 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - x = x - _tmp8_; -#line 1290 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->last_grab_x = x; -#line 1291 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = scaled_pixbuf_pos; -#line 1291 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_.y; -#line 1291 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - y = y - _tmp10_; -#line 1291 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->last_grab_y = y; -#line 1294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_repaint (_tmp11_); -#line 9710 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_real_on_left_released (EditingToolsEditingTool* base, - gint x, - gint y) -{ - EditingToolsCropTool * self; - BoxLocation _tmp0_; - EditingToolsPhotoCanvas* _tmp1_; -#line 1297 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool); -#line 1299 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->in_manipulation; -#line 1299 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ == BOX_LOCATION_OUTSIDE) { -#line 1300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 9730 "EditingTools.c" - } -#line 1303 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->in_manipulation = BOX_LOCATION_OUTSIDE; -#line 1304 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->last_grab_x = -1; -#line 1305 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->last_grab_y = -1; -#line 1307 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_update_cursor (self, x, y); -#line 1310 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1310 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_repaint (_tmp1_); -#line 9744 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_real_on_motion (EditingToolsEditingTool* base, - gint x, - gint y, - GdkModifierType mask) -{ - EditingToolsCropTool * self; - BoxLocation _tmp0_; - EditingToolsPhotoCanvas* _tmp1_; -#line 1313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool); -#line 1316 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->in_manipulation; -#line 1316 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ != BOX_LOCATION_OUTSIDE) { -#line 1317 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_on_canvas_manipulation (self, x, y); -#line 9765 "EditingTools.c" - } -#line 1319 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_update_cursor (self, x, y); -#line 1320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_repaint (_tmp1_); -#line 9773 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_real_paint (EditingToolsEditingTool* base, - cairo_t* default_ctx) -{ - EditingToolsCropTool * self; - gint w = 0; - EditingToolsPhotoCanvas* _tmp0_; - GdkWindow* _tmp1_; - GdkWindow* _tmp2_; - gint _tmp3_; - gint h = 0; - EditingToolsPhotoCanvas* _tmp4_; - GdkWindow* _tmp5_; - GdkWindow* _tmp6_; - gint _tmp7_; - cairo_t* ctx = NULL; - cairo_surface_t* _tmp8_; - cairo_t* _tmp9_; - Box _tmp10_; - gint _tmp11_; - Box _tmp12_; - gint _tmp13_; - EditingToolsPhotoCanvas* _tmp14_; - cairo_surface_t* _tmp15_; - Box _tmp16_; -#line 1323 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool); -#line 1323 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (default_ctx != NULL); -#line 1325 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1325 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = editing_tools_photo_canvas_get_drawing_window (_tmp0_); -#line 1325 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_; -#line 1325 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = gdk_window_get_width (_tmp2_); -#line 1325 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp2_); -#line 1325 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - w = _tmp3_; -#line 1326 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1326 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = editing_tools_photo_canvas_get_drawing_window (_tmp4_); -#line 1326 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_; -#line 1326 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = gdk_window_get_height (_tmp6_); -#line 1326 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp6_); -#line 1326 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - h = _tmp7_; -#line 1328 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_source_rgba (default_ctx, 0.0, 0.0, 0.0, 1.0); -#line 1329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_rectangle (default_ctx, (gdouble) 0, (gdouble) 0, (gdouble) w, (gdouble) h); -#line 1330 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_fill (default_ctx); -#line 1331 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_paint (default_ctx); -#line 1333 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = self->priv->crop_surface; -#line 1333 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = cairo_create (_tmp8_); -#line 1333 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ctx = _tmp9_; -#line 1334 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_operator (ctx, CAIRO_OPERATOR_SOURCE); -#line 1335 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_source_rgba (ctx, 0.0, 0.0, 0.0, 0.5); -#line 1336 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_paint (ctx); -#line 1339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_source_rgba (ctx, 0.0, 0.0, 0.0, 0.0); -#line 1340 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = self->priv->scaled_crop; -#line 1340 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _tmp10_.left; -#line 1340 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = self->priv->scaled_crop; -#line 1340 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_.top; -#line 1340 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_rectangle (ctx, (gdouble) _tmp11_, (gdouble) _tmp13_, (gdouble) box_get_width (&self->priv->scaled_crop), (gdouble) box_get_height (&self->priv->scaled_crop)); -#line 1342 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_fill (ctx); -#line 1343 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1343 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = self->priv->crop_surface; -#line 1343 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_paint_surface (_tmp14_, _tmp15_, TRUE); -#line 1346 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = self->priv->scaled_crop; -#line 1346 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_paint_crop_tool (self, &_tmp16_); -#line 1323 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (ctx); -#line 9876 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_on_crop_ok (EditingToolsCropTool* self) -{ - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - EditingToolsCropToolCropToolWindow* _tmp2_; - GtkComboBox* _tmp3_; - ConfigFacade* _tmp4_; - ConfigFacade* _tmp5_; - gint _tmp6_; - ConfigFacade* _tmp7_; - ConfigFacade* _tmp8_; - gint _tmp9_; - Box crop = {0}; - EditingToolsPhotoCanvas* _tmp10_; - GdkRectangle _tmp11_ = {0}; - Dimensions _tmp12_ = {0}; - EditingToolsPhotoCanvas* _tmp13_; - Photo* _tmp14_; - Photo* _tmp15_; - Dimensions _tmp16_ = {0}; - Box _tmp17_ = {0}; - Box _tmp18_; - GdkPixbuf* cropped = NULL; - EditingToolsPhotoCanvas* _tmp19_; - GdkPixbuf* _tmp20_; - GdkPixbuf* _tmp21_; - Box _tmp22_; - gint _tmp23_; - Box _tmp24_; - gint _tmp25_; - GdkPixbuf* _tmp26_; - GdkPixbuf* _tmp27_; - EditingToolsPhotoCanvas* _tmp28_; - Photo* _tmp29_; - Photo* _tmp30_; - Box _tmp31_; - CropCommand* _tmp32_; - CropCommand* _tmp33_; - Dimensions _tmp34_ = {0}; -#line 1349 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 1353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = config_facade_get_instance (); -#line 1353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_; -#line 1353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->crop_tool_window; -#line 1353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_->constraint_combo; -#line 1353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - configuration_facade_set_last_crop_menu_choice (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), gtk_combo_box_get_active (_tmp3_)); -#line 1353 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp1_); -#line 1355 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = config_facade_get_instance (); -#line 1355 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_; -#line 1355 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = self->priv->custom_width; -#line 1355 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - configuration_facade_set_last_crop_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp6_); -#line 1355 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp5_); -#line 1356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = config_facade_get_instance (); -#line 1356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = _tmp7_; -#line 1356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->custom_height; -#line 1356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - configuration_facade_set_last_crop_height (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp9_); -#line 1356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp8_); -#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp10_, &_tmp11_); -#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - dimensions_for_rectangle (&_tmp11_, &_tmp12_); -#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = editing_tools_photo_canvas_get_photo (_tmp13_); -#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = _tmp14_; -#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP, &_tmp16_); -#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_get_scaled_similar (&self->priv->scaled_crop, &_tmp12_, &_tmp16_, &_tmp17_); -#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = _tmp17_; -#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp15_); -#line 1359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - crop = _tmp18_; -#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = editing_tools_photo_canvas_get_scaled_pixbuf (_tmp19_); -#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = _tmp20_; -#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = self->priv->scaled_crop; -#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = _tmp22_.left; -#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = self->priv->scaled_crop; -#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = _tmp24_.top; -#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = gdk_pixbuf_new_subpixbuf (_tmp21_, _tmp23_, _tmp25_, box_get_width (&self->priv->scaled_crop), box_get_height (&self->priv->scaled_crop)); -#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = _tmp26_; -#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp21_); -#line 1364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cropped = _tmp27_; -#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29_ = editing_tools_photo_canvas_get_photo (_tmp28_); -#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp30_ = _tmp29_; -#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp31_ = crop; -#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp32_ = crop_command_new (_tmp30_, &_tmp31_, RESOURCES_CROP_LABEL, RESOURCES_CROP_TOOLTIP); -#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33_ = _tmp32_; -#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_get_dimensions (&crop, &_tmp34_); -#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_APPLIED_SIGNAL], 0, G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_COMMAND, Command), cropped, &_tmp34_, TRUE); -#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp33_); -#line 1369 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp30_); -#line 1349 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (cropped); -#line 10020 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_update_cursor (EditingToolsCropTool* self, - gint x, - gint y) -{ - GdkRectangle scaled_pos = {0}; - EditingToolsPhotoCanvas* _tmp0_; - GdkRectangle _tmp1_ = {0}; - Box offset_scaled_crop = {0}; - GdkRectangle _tmp2_; - gint _tmp3_; - GdkRectangle _tmp4_; - gint _tmp5_; - Box _tmp6_ = {0}; - GdkCursorType cursor_type = 0; - GdkCursorType _tmp7_; - GdkCursorType _tmp8_; -#line 1373 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 1375 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1375 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp0_, &_tmp1_); -#line 1375 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - scaled_pos = _tmp1_; -#line 1376 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = scaled_pos; -#line 1376 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_.x; -#line 1376 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = scaled_pos; -#line 1376 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_.y; -#line 1376 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_get_offset (&self->priv->scaled_crop, _tmp3_, _tmp5_, &_tmp6_); -#line 1376 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - offset_scaled_crop = _tmp6_; -#line 1378 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cursor_type = GDK_LEFT_PTR; -#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - switch (box_approx_location (&offset_scaled_crop, x, y)) { -#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_LEFT_SIDE: -#line 10067 "EditingTools.c" - { -#line 1381 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cursor_type = GDK_LEFT_SIDE; -#line 1382 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10073 "EditingTools.c" - } -#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_TOP_SIDE: -#line 10077 "EditingTools.c" - { -#line 1385 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cursor_type = GDK_TOP_SIDE; -#line 1386 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10083 "EditingTools.c" - } -#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_RIGHT_SIDE: -#line 10087 "EditingTools.c" - { -#line 1389 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cursor_type = GDK_RIGHT_SIDE; -#line 1390 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10093 "EditingTools.c" - } -#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_BOTTOM_SIDE: -#line 10097 "EditingTools.c" - { -#line 1393 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cursor_type = GDK_BOTTOM_SIDE; -#line 1394 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10103 "EditingTools.c" - } -#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_TOP_LEFT: -#line 10107 "EditingTools.c" - { -#line 1397 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cursor_type = GDK_TOP_LEFT_CORNER; -#line 1398 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10113 "EditingTools.c" - } -#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_BOTTOM_LEFT: -#line 10117 "EditingTools.c" - { -#line 1401 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cursor_type = GDK_BOTTOM_LEFT_CORNER; -#line 1402 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10123 "EditingTools.c" - } -#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_TOP_RIGHT: -#line 10127 "EditingTools.c" - { -#line 1405 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cursor_type = GDK_TOP_RIGHT_CORNER; -#line 1406 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10133 "EditingTools.c" - } -#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_BOTTOM_RIGHT: -#line 10137 "EditingTools.c" - { -#line 1409 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cursor_type = GDK_BOTTOM_RIGHT_CORNER; -#line 1410 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10143 "EditingTools.c" - } -#line 1379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_INSIDE: -#line 10147 "EditingTools.c" - { -#line 1413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cursor_type = GDK_FLEUR; -#line 1414 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10153 "EditingTools.c" - } - default: - { -#line 1418 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10159 "EditingTools.c" - } - } -#line 1421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = cursor_type; -#line 1421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = self->priv->current_cursor_type; -#line 1421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp7_ != _tmp8_) { -#line 10168 "EditingTools.c" - GdkWindow* drawing_window = NULL; - EditingToolsPhotoCanvas* _tmp9_; - GdkWindow* _tmp10_; - GdkDisplay* display = NULL; - GdkWindow* _tmp11_; - GdkDisplay* _tmp12_; - GdkDisplay* _tmp13_; - GdkCursor* cursor = NULL; - GdkDisplay* _tmp14_; - GdkCursorType _tmp15_; - GdkCursor* _tmp16_; - GdkWindow* _tmp17_; - GdkCursor* _tmp18_; - GdkCursorType _tmp19_; -#line 1422 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1422 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = editing_tools_photo_canvas_get_drawing_window (_tmp9_); -#line 1422 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - drawing_window = _tmp10_; -#line 1423 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = drawing_window; -#line 1423 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = gdk_window_get_display (_tmp11_); -#line 1423 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _g_object_ref0 (_tmp12_); -#line 1423 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - display = _tmp13_; -#line 1424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = display; -#line 1424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = cursor_type; -#line 1424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = gdk_cursor_new_for_display (_tmp14_, _tmp15_); -#line 1424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cursor = _tmp16_; -#line 1425 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = drawing_window; -#line 1425 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = cursor; -#line 1425 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gdk_window_set_cursor (_tmp17_, _tmp18_); -#line 1426 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = cursor_type; -#line 1426 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->current_cursor_type = _tmp19_; -#line 1421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (cursor); -#line 1421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (display); -#line 1421 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (drawing_window); -#line 10221 "EditingTools.c" - } -} - - -static gint -editing_tools_crop_tool_eval_radial_line (EditingToolsCropTool* self, - gdouble center_x, - gdouble center_y, - gdouble bounds_x, - gdouble bounds_y, - gdouble user_x) -{ - gint result = 0; - gdouble decision_slope = 0.0; - gdouble decision_intercept = 0.0; -#line 1430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), 0); -#line 1432 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - decision_slope = (bounds_y - center_y) / (bounds_x - center_x); -#line 1433 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - decision_intercept = bounds_y - (decision_slope * bounds_x); -#line 1435 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = (gint) ((decision_slope * user_x) + decision_intercept); -#line 1435 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 10247 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_get_photo_dimensions (EditingToolsCropTool* self, - Dimensions* result) -{ - Dimensions photo_dims = {0}; - EditingToolsPhotoCanvas* _tmp0_; - Photo* _tmp1_; - Photo* _tmp2_; - Dimensions _tmp3_ = {0}; - Dimensions _tmp4_; - Dimensions surface_dims = {0}; - EditingToolsPhotoCanvas* _tmp5_; - Dimensions _tmp6_ = {0}; - gdouble scale_factor = 0.0; - Dimensions _tmp7_; - gint _tmp8_; - Dimensions _tmp9_; - gint _tmp10_; - Dimensions _tmp11_; - gint _tmp12_; - Dimensions _tmp13_; - gint _tmp14_; - gdouble _tmp15_; - EditingToolsPhotoCanvas* _tmp16_; - Photo* _tmp17_; - Photo* _tmp18_; - Dimensions _tmp19_ = {0}; - Dimensions _tmp20_; - gint _tmp21_; - gdouble _tmp22_; - Dimensions _tmp23_; - gint _tmp24_; - gdouble _tmp25_; - Dimensions _tmp26_ = {0}; -#line 1439 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 1440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = editing_tools_photo_canvas_get_photo (_tmp0_); -#line 1440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_; -#line 1440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP, &_tmp3_); -#line 1440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_; -#line 1440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp2_); -#line 1440 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - photo_dims = _tmp4_; -#line 1441 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1441 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_surface_dim (_tmp5_, &_tmp6_); -#line 1441 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - surface_dims = _tmp6_; -#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = surface_dims; -#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = _tmp7_.width; -#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = photo_dims; -#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_.width; -#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = surface_dims; -#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _tmp11_.height; -#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = photo_dims; -#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = _tmp13_.height; -#line 1442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - scale_factor = MIN (((gdouble) _tmp8_) / _tmp10_, ((gdouble) _tmp12_) / _tmp14_); -#line 1444 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = scale_factor; -#line 1444 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - scale_factor = MIN (_tmp15_, 1.0); -#line 1446 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1446 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = editing_tools_photo_canvas_get_photo (_tmp16_); -#line 1446 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = _tmp17_; -#line 1446 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP | PHOTO_EXCEPTION_STRAIGHTEN, &_tmp19_); -#line 1446 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - photo_dims = _tmp19_; -#line 1446 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp18_); -#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = photo_dims; -#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = _tmp20_.width; -#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = scale_factor; -#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = photo_dims; -#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = _tmp23_.height; -#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = scale_factor; -#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_.width = (gint) (_tmp21_ * _tmp22_); -#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_.height = (gint) (_tmp24_ * _tmp25_); -#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *result = _tmp26_; -#line 1449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 10361 "EditingTools.c" -} - - -static gboolean -_box_equal (const Box * s1, - const Box * s2) -{ -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (s1 == s2) { -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return TRUE; -#line 10373 "EditingTools.c" - } -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (s1 == NULL) { -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return FALSE; -#line 10379 "EditingTools.c" - } -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (s2 == NULL) { -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return FALSE; -#line 10385 "EditingTools.c" - } -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (s1->left != s2->left) { -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return FALSE; -#line 10391 "EditingTools.c" - } -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (s1->top != s2->top) { -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return FALSE; -#line 10397 "EditingTools.c" - } -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (s1->right != s2->right) { -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return FALSE; -#line 10403 "EditingTools.c" - } -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (s1->bottom != s2->bottom) { -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return FALSE; -#line 10409 "EditingTools.c" - } -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return TRUE; -#line 10413 "EditingTools.c" -} - - -static gboolean -editing_tools_crop_tool_on_canvas_manipulation (EditingToolsCropTool* self, - gint x, - gint y) -{ - gboolean result = FALSE; - GdkRectangle scaled_pos = {0}; - EditingToolsPhotoCanvas* _tmp0_; - GdkRectangle _tmp1_ = {0}; - GdkRectangle _tmp2_; - gint _tmp3_; - GdkRectangle _tmp8_; - gint _tmp9_; - gint left = 0; - Box _tmp14_; - gint _tmp15_; - gint top = 0; - Box _tmp16_; - gint _tmp17_; - gint right = 0; - Box _tmp18_; - gint _tmp19_; - gint bottom = 0; - Box _tmp20_; - gint _tmp21_; - gint center_x = 0; - gint _tmp22_; - gint _tmp23_; - gint center_y = 0; - gint _tmp24_; - gint _tmp25_; - BoxLocation _tmp26_; - gint width = 0; - gint _tmp137_; - gint _tmp138_; - gint height = 0; - gint _tmp139_; - gint _tmp140_; - Dimensions photo_dims = {0}; - Dimensions _tmp141_ = {0}; - gdouble angle = 0.0; - EditingToolsPhotoCanvas* _tmp142_; - Photo* _tmp143_; - Photo* _tmp144_; - gdouble _tmp145_ = 0.0; - Box new_crop = {0}; - BoxLocation _tmp191_; - Box _tmp194_; -#line 1453 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self), FALSE); -#line 1454 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1454 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp0_, &_tmp1_); -#line 1454 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - scaled_pos = _tmp1_; -#line 1458 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = scaled_pos; -#line 1458 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_.x; -#line 1458 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - x = x - _tmp3_; -#line 1459 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (x < 0) { -#line 1460 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - x = 0; -#line 10483 "EditingTools.c" - } else { - GdkRectangle _tmp4_; - gint _tmp5_; -#line 1461 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = scaled_pos; -#line 1461 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_.width; -#line 1461 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (x >= _tmp5_) { -#line 10493 "EditingTools.c" - GdkRectangle _tmp6_; - gint _tmp7_; -#line 1462 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = scaled_pos; -#line 1462 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_.width; -#line 1462 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - x = _tmp7_ - 1; -#line 10502 "EditingTools.c" - } - } -#line 1464 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = scaled_pos; -#line 1464 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = _tmp8_.y; -#line 1464 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - y = y - _tmp9_; -#line 1465 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (y < 0) { -#line 1466 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - y = 0; -#line 10515 "EditingTools.c" - } else { - GdkRectangle _tmp10_; - gint _tmp11_; -#line 1467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = scaled_pos; -#line 1467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _tmp10_.height; -#line 1467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (y >= _tmp11_) { -#line 10525 "EditingTools.c" - GdkRectangle _tmp12_; - gint _tmp13_; -#line 1468 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = scaled_pos; -#line 1468 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_.height; -#line 1468 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - y = _tmp13_ - 1; -#line 10534 "EditingTools.c" - } - } -#line 1472 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = self->priv->scaled_crop; -#line 1472 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = _tmp14_.left; -#line 1472 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - left = _tmp15_; -#line 1473 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = self->priv->scaled_crop; -#line 1473 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = _tmp16_.top; -#line 1473 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - top = _tmp17_; -#line 1474 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = self->priv->scaled_crop; -#line 1474 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = _tmp18_.right; -#line 1474 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - right = _tmp19_; -#line 1475 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = self->priv->scaled_crop; -#line 1475 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = _tmp20_.bottom; -#line 1475 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bottom = _tmp21_; -#line 1478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = left; -#line 1478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = right; -#line 1478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - center_x = (_tmp22_ + _tmp23_) / 2; -#line 1479 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = top; -#line 1479 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = bottom; -#line 1479 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - center_y = (_tmp24_ + _tmp25_) / 2; -#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = self->priv->in_manipulation; -#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - switch (_tmp26_) { -#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_LEFT_SIDE: -#line 10579 "EditingTools.c" - { -#line 1483 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - left = x; -#line 1484 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) != EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) { -#line 10585 "EditingTools.c" - gfloat new_height = 0.0F; - gint _tmp27_; - gint _tmp28_; - gint _tmp29_; - gfloat _tmp30_; -#line 1485 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = right; -#line 1485 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = left; -#line 1485 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_height = ((gfloat) (_tmp27_ - _tmp28_)) / editing_tools_crop_tool_get_constraint_aspect_ratio (self); -#line 1486 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29_ = top; -#line 1486 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp30_ = new_height; -#line 1486 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bottom = _tmp29_ + ((gint) _tmp30_); -#line 10603 "EditingTools.c" - } -#line 1488 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10607 "EditingTools.c" - } -#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_TOP_SIDE: -#line 10611 "EditingTools.c" - { -#line 1491 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - top = y; -#line 1492 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) != EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) { -#line 10617 "EditingTools.c" - gfloat new_width = 0.0F; - gint _tmp31_; - gint _tmp32_; - gint _tmp33_; - gfloat _tmp34_; -#line 1493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp31_ = bottom; -#line 1493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp32_ = top; -#line 1493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_width = ((gfloat) (_tmp31_ - _tmp32_)) * editing_tools_crop_tool_get_constraint_aspect_ratio (self); -#line 1494 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33_ = left; -#line 1494 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp34_ = new_width; -#line 1494 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - right = _tmp33_ + ((gint) _tmp34_); -#line 10635 "EditingTools.c" - } -#line 1496 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10639 "EditingTools.c" - } -#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_RIGHT_SIDE: -#line 10643 "EditingTools.c" - { -#line 1499 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - right = x; -#line 1500 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) != EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) { -#line 10649 "EditingTools.c" - gfloat new_height = 0.0F; - gint _tmp35_; - gint _tmp36_; - gint _tmp37_; - gfloat _tmp38_; -#line 1501 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp35_ = right; -#line 1501 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp36_ = left; -#line 1501 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_height = ((gfloat) (_tmp35_ - _tmp36_)) / editing_tools_crop_tool_get_constraint_aspect_ratio (self); -#line 1502 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp37_ = top; -#line 1502 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp38_ = new_height; -#line 1502 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bottom = _tmp37_ + ((gint) _tmp38_); -#line 10667 "EditingTools.c" - } -#line 1504 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10671 "EditingTools.c" - } -#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_BOTTOM_SIDE: -#line 10675 "EditingTools.c" - { -#line 1507 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bottom = y; -#line 1508 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) != EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) { -#line 10681 "EditingTools.c" - gfloat new_width = 0.0F; - gint _tmp39_; - gint _tmp40_; - gint _tmp41_; - gfloat _tmp42_; -#line 1509 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp39_ = bottom; -#line 1509 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp40_ = top; -#line 1509 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_width = ((gfloat) (_tmp39_ - _tmp40_)) * editing_tools_crop_tool_get_constraint_aspect_ratio (self); -#line 1510 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp41_ = left; -#line 1510 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp42_ = new_width; -#line 1510 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - right = _tmp41_ + ((gint) _tmp42_); -#line 10699 "EditingTools.c" - } -#line 1512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10703 "EditingTools.c" - } -#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_TOP_LEFT: -#line 10707 "EditingTools.c" - { -#line 1515 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) == EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) { -#line 1516 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - top = y; -#line 1517 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - left = x; -#line 10715 "EditingTools.c" - } else { - gint _tmp43_; - gint _tmp44_; - gint _tmp45_; - gint _tmp46_; -#line 1519 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp43_ = center_x; -#line 1519 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp44_ = center_y; -#line 1519 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp45_ = left; -#line 1519 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp46_ = top; -#line 1519 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (y < editing_tools_crop_tool_eval_radial_line (self, (gdouble) _tmp43_, (gdouble) _tmp44_, (gdouble) _tmp45_, (gdouble) _tmp46_, (gdouble) x)) { -#line 10731 "EditingTools.c" - gfloat new_width = 0.0F; - gint _tmp47_; - gint _tmp48_; - gint _tmp49_; - gfloat _tmp50_; -#line 1520 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - top = y; -#line 1521 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp47_ = bottom; -#line 1521 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp48_ = top; -#line 1521 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_width = ((gfloat) (_tmp47_ - _tmp48_)) * editing_tools_crop_tool_get_constraint_aspect_ratio (self); -#line 1522 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp49_ = right; -#line 1522 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp50_ = new_width; -#line 1522 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - left = _tmp49_ - ((gint) _tmp50_); -#line 10751 "EditingTools.c" - } else { - gfloat new_height = 0.0F; - gint _tmp51_; - gint _tmp52_; - gint _tmp53_; - gfloat _tmp54_; -#line 1524 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - left = x; -#line 1525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp51_ = right; -#line 1525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp52_ = left; -#line 1525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_height = ((gfloat) (_tmp51_ - _tmp52_)) / editing_tools_crop_tool_get_constraint_aspect_ratio (self); -#line 1526 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp53_ = bottom; -#line 1526 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp54_ = new_height; -#line 1526 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - top = _tmp53_ - ((gint) _tmp54_); -#line 10772 "EditingTools.c" - } - } -#line 1529 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10777 "EditingTools.c" - } -#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_BOTTOM_LEFT: -#line 10781 "EditingTools.c" - { -#line 1532 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) == EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) { -#line 1533 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bottom = y; -#line 1534 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - left = x; -#line 10789 "EditingTools.c" - } else { - gint _tmp55_; - gint _tmp56_; - gint _tmp57_; - gint _tmp58_; -#line 1536 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp55_ = center_x; -#line 1536 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp56_ = center_y; -#line 1536 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp57_ = left; -#line 1536 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp58_ = bottom; -#line 1536 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (y < editing_tools_crop_tool_eval_radial_line (self, (gdouble) _tmp55_, (gdouble) _tmp56_, (gdouble) _tmp57_, (gdouble) _tmp58_, (gdouble) x)) { -#line 10805 "EditingTools.c" - gfloat new_height = 0.0F; - gint _tmp59_; - gint _tmp60_; - gint _tmp61_; - gfloat _tmp62_; -#line 1537 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - left = x; -#line 1538 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp59_ = right; -#line 1538 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp60_ = left; -#line 1538 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_height = ((gfloat) (_tmp59_ - _tmp60_)) / editing_tools_crop_tool_get_constraint_aspect_ratio (self); -#line 1539 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp61_ = top; -#line 1539 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp62_ = new_height; -#line 1539 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bottom = _tmp61_ + ((gint) _tmp62_); -#line 10825 "EditingTools.c" - } else { - gfloat new_width = 0.0F; - gint _tmp63_; - gint _tmp64_; - gint _tmp65_; - gfloat _tmp66_; -#line 1541 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bottom = y; -#line 1542 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp63_ = bottom; -#line 1542 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp64_ = top; -#line 1542 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_width = ((gfloat) (_tmp63_ - _tmp64_)) * editing_tools_crop_tool_get_constraint_aspect_ratio (self); -#line 1543 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp65_ = right; -#line 1543 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp66_ = new_width; -#line 1543 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - left = _tmp65_ - ((gint) _tmp66_); -#line 10846 "EditingTools.c" - } - } -#line 1546 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10851 "EditingTools.c" - } -#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_TOP_RIGHT: -#line 10855 "EditingTools.c" - { -#line 1549 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) == EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) { -#line 1550 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - top = y; -#line 1551 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - right = x; -#line 10863 "EditingTools.c" - } else { - gint _tmp67_; - gint _tmp68_; - gint _tmp69_; - gint _tmp70_; -#line 1553 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp67_ = center_x; -#line 1553 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp68_ = center_y; -#line 1553 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp69_ = right; -#line 1553 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp70_ = top; -#line 1553 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (y < editing_tools_crop_tool_eval_radial_line (self, (gdouble) _tmp67_, (gdouble) _tmp68_, (gdouble) _tmp69_, (gdouble) _tmp70_, (gdouble) x)) { -#line 10879 "EditingTools.c" - gfloat new_width = 0.0F; - gint _tmp71_; - gint _tmp72_; - gint _tmp73_; - gfloat _tmp74_; -#line 1554 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - top = y; -#line 1555 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp71_ = bottom; -#line 1555 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp72_ = top; -#line 1555 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_width = ((gfloat) (_tmp71_ - _tmp72_)) * editing_tools_crop_tool_get_constraint_aspect_ratio (self); -#line 1556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp73_ = left; -#line 1556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp74_ = new_width; -#line 1556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - right = _tmp73_ + ((gint) _tmp74_); -#line 10899 "EditingTools.c" - } else { - gfloat new_height = 0.0F; - gint _tmp75_; - gint _tmp76_; - gint _tmp77_; - gfloat _tmp78_; -#line 1558 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - right = x; -#line 1559 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp75_ = right; -#line 1559 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp76_ = left; -#line 1559 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_height = ((gfloat) (_tmp75_ - _tmp76_)) / editing_tools_crop_tool_get_constraint_aspect_ratio (self); -#line 1560 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp77_ = bottom; -#line 1560 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp78_ = new_height; -#line 1560 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - top = _tmp77_ - ((gint) _tmp78_); -#line 10920 "EditingTools.c" - } - } -#line 1563 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10925 "EditingTools.c" - } -#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_BOTTOM_RIGHT: -#line 10929 "EditingTools.c" - { -#line 1566 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) == EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) { -#line 1567 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bottom = y; -#line 1568 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - right = x; -#line 10937 "EditingTools.c" - } else { - gint _tmp79_; - gint _tmp80_; - gint _tmp81_; - gint _tmp82_; -#line 1570 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp79_ = center_x; -#line 1570 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp80_ = center_y; -#line 1570 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp81_ = right; -#line 1570 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp82_ = bottom; -#line 1570 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (y < editing_tools_crop_tool_eval_radial_line (self, (gdouble) _tmp79_, (gdouble) _tmp80_, (gdouble) _tmp81_, (gdouble) _tmp82_, (gdouble) x)) { -#line 10953 "EditingTools.c" - gfloat new_height = 0.0F; - gint _tmp83_; - gint _tmp84_; - gint _tmp85_; - gfloat _tmp86_; -#line 1571 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - right = x; -#line 1572 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp83_ = right; -#line 1572 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp84_ = left; -#line 1572 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_height = ((gfloat) (_tmp83_ - _tmp84_)) / editing_tools_crop_tool_get_constraint_aspect_ratio (self); -#line 1573 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp85_ = top; -#line 1573 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp86_ = new_height; -#line 1573 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bottom = _tmp85_ + ((gint) _tmp86_); -#line 10973 "EditingTools.c" - } else { - gfloat new_width = 0.0F; - gint _tmp87_; - gint _tmp88_; - gint _tmp89_; - gfloat _tmp90_; -#line 1575 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bottom = y; -#line 1576 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp87_ = bottom; -#line 1576 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp88_ = top; -#line 1576 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_width = ((gfloat) (_tmp87_ - _tmp88_)) * editing_tools_crop_tool_get_constraint_aspect_ratio (self); -#line 1577 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp89_ = left; -#line 1577 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp90_ = new_width; -#line 1577 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - right = _tmp89_ + ((gint) _tmp90_); -#line 10994 "EditingTools.c" - } - } -#line 1580 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 10999 "EditingTools.c" - } -#line 1481 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_INSIDE: -#line 11003 "EditingTools.c" - { - gint _tmp91_; - gint _tmp92_; - gint delta_x = 0; - gint _tmp93_; - gint delta_y = 0; - gint _tmp94_; - gint width = 0; - gint _tmp95_; - gint _tmp96_; - gint height = 0; - gint _tmp97_; - gint _tmp98_; - gint _tmp99_; - gint _tmp100_; - gint _tmp101_; - gint _tmp102_; - gint _tmp103_; - gint _tmp104_; - gint _tmp105_; - gint _tmp106_; - gint _tmp107_; - gint _tmp108_; - gint _tmp109_; - GdkRectangle _tmp110_; - gint _tmp111_; - gint _tmp114_; - GdkRectangle _tmp115_; - gint _tmp116_; - gint adj_width = 0; - gint _tmp119_; - gint _tmp120_; - gint adj_height = 0; - gint _tmp121_; - gint _tmp122_; - gint _tmp123_; - gint _tmp124_; - gint _tmp130_; - gint _tmp131_; -#line 1583 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp91_ = self->priv->last_grab_x; -#line 1583 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_assert (_tmp91_ >= 0, "last_grab_x >= 0"); -#line 1584 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp92_ = self->priv->last_grab_y; -#line 1584 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_assert (_tmp92_ >= 0, "last_grab_y >= 0"); -#line 1586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp93_ = self->priv->last_grab_x; -#line 1586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - delta_x = x - _tmp93_; -#line 1587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp94_ = self->priv->last_grab_y; -#line 1587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - delta_y = y - _tmp94_; -#line 1589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->last_grab_x = x; -#line 1590 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->last_grab_y = y; -#line 1592 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp95_ = right; -#line 1592 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp96_ = left; -#line 1592 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - width = (_tmp95_ - _tmp96_) + 1; -#line 1593 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp97_ = bottom; -#line 1593 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp98_ = top; -#line 1593 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - height = (_tmp97_ - _tmp98_) + 1; -#line 1595 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp99_ = left; -#line 1595 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp100_ = delta_x; -#line 1595 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - left = _tmp99_ + _tmp100_; -#line 1596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp101_ = top; -#line 1596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp102_ = delta_y; -#line 1596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - top = _tmp101_ + _tmp102_; -#line 1597 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp103_ = right; -#line 1597 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp104_ = delta_x; -#line 1597 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - right = _tmp103_ + _tmp104_; -#line 1598 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp105_ = bottom; -#line 1598 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp106_ = delta_y; -#line 1598 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bottom = _tmp105_ + _tmp106_; -#line 1601 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp107_ = left; -#line 1601 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp107_ < 0) { -#line 1602 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - left = 0; -#line 11105 "EditingTools.c" - } -#line 1604 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp108_ = top; -#line 1604 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp108_ < 0) { -#line 1605 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - top = 0; -#line 11113 "EditingTools.c" - } -#line 1607 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp109_ = right; -#line 1607 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp110_ = scaled_pos; -#line 1607 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp111_ = _tmp110_.width; -#line 1607 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp109_ >= _tmp111_) { -#line 11123 "EditingTools.c" - GdkRectangle _tmp112_; - gint _tmp113_; -#line 1608 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp112_ = scaled_pos; -#line 1608 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp113_ = _tmp112_.width; -#line 1608 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - right = _tmp113_ - 1; -#line 11132 "EditingTools.c" - } -#line 1610 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp114_ = bottom; -#line 1610 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp115_ = scaled_pos; -#line 1610 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp116_ = _tmp115_.height; -#line 1610 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp114_ >= _tmp116_) { -#line 11142 "EditingTools.c" - GdkRectangle _tmp117_; - gint _tmp118_; -#line 1611 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp117_ = scaled_pos; -#line 1611 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp118_ = _tmp117_.height; -#line 1611 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bottom = _tmp118_ - 1; -#line 11151 "EditingTools.c" - } -#line 1613 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp119_ = right; -#line 1613 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp120_ = left; -#line 1613 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - adj_width = (_tmp119_ - _tmp120_) + 1; -#line 1614 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp121_ = bottom; -#line 1614 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp122_ = top; -#line 1614 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - adj_height = (_tmp121_ - _tmp122_) + 1; -#line 1617 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp123_ = adj_width; -#line 1617 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp124_ = width; -#line 1617 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp123_ != _tmp124_) { -#line 11171 "EditingTools.c" - gint _tmp125_; -#line 1618 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp125_ = delta_x; -#line 1618 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp125_ < 0) { -#line 11177 "EditingTools.c" - gint _tmp126_; - gint _tmp127_; -#line 1619 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp126_ = left; -#line 1619 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp127_ = width; -#line 1619 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - right = (_tmp126_ + _tmp127_) - 1; -#line 11186 "EditingTools.c" - } else { - gint _tmp128_; - gint _tmp129_; -#line 1621 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp128_ = right; -#line 1621 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp129_ = width; -#line 1621 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - left = (_tmp128_ - _tmp129_) + 1; -#line 11196 "EditingTools.c" - } - } -#line 1624 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp130_ = adj_height; -#line 1624 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp131_ = height; -#line 1624 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp130_ != _tmp131_) { -#line 11205 "EditingTools.c" - gint _tmp132_; -#line 1625 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp132_ = delta_y; -#line 1625 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp132_ < 0) { -#line 11211 "EditingTools.c" - gint _tmp133_; - gint _tmp134_; -#line 1626 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp133_ = top; -#line 1626 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp134_ = height; -#line 1626 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bottom = (_tmp133_ + _tmp134_) - 1; -#line 11220 "EditingTools.c" - } else { - gint _tmp135_; - gint _tmp136_; -#line 1628 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp135_ = bottom; -#line 1628 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp136_ = height; -#line 1628 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - top = (_tmp135_ - _tmp136_) + 1; -#line 11230 "EditingTools.c" - } - } -#line 1630 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 11235 "EditingTools.c" - } - default: - { -#line 1634 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = FALSE; -#line 1634 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 11243 "EditingTools.c" - } - } -#line 1644 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp137_ = right; -#line 1644 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp138_ = left; -#line 1644 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - width = (_tmp137_ - _tmp138_) + 1; -#line 1645 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp139_ = bottom; -#line 1645 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp140_ = top; -#line 1645 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - height = (_tmp139_ - _tmp140_) + 1; -#line 1647 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_get_photo_dimensions (self, &_tmp141_); -#line 1647 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - photo_dims = _tmp141_; -#line 1649 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp142_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1649 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp143_ = editing_tools_photo_canvas_get_photo (_tmp142_); -#line 1649 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp144_ = _tmp143_; -#line 1649 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - photo_get_straighten (_tmp144_, &_tmp145_); -#line 1649 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - angle = _tmp145_; -#line 1649 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp144_); -#line 1652 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) == EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) { -#line 11276 "EditingTools.c" - gint _tmp146_; - gint _tmp147_; - gint _tmp148_; - gint _tmp149_; - BoxLocation _tmp150_; - BoxLocation _tmp155_; - gint _tmp160_; - gint _tmp161_; - gint _tmp162_; - gint _tmp163_; - Box _tmp164_ = {0}; - Dimensions _tmp165_; - gint _tmp166_; - Dimensions _tmp167_; - gint _tmp168_; - gdouble _tmp169_; - BoxLocation _tmp170_; - Box _tmp171_ = {0}; -#line 1653 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp146_ = right; -#line 1653 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp147_ = left; -#line 1653 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - width = (_tmp146_ - _tmp147_) + 1; -#line 1654 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp148_ = bottom; -#line 1654 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp149_ = top; -#line 1654 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - height = (_tmp148_ - _tmp149_) + 1; -#line 1656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp150_ = self->priv->in_manipulation; -#line 1656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - switch (_tmp150_) { -#line 1656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_LEFT_SIDE: -#line 1656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_TOP_LEFT: -#line 1656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_BOTTOM_LEFT: -#line 11317 "EditingTools.c" - { - gint _tmp151_; -#line 1660 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp151_ = width; -#line 1660 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp151_ < EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE) { -#line 11324 "EditingTools.c" - gint _tmp152_; -#line 1661 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp152_ = right; -#line 1661 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - left = _tmp152_ - EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE; -#line 11330 "EditingTools.c" - } -#line 1662 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 11334 "EditingTools.c" - } -#line 1656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_RIGHT_SIDE: -#line 1656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_TOP_RIGHT: -#line 1656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_BOTTOM_RIGHT: -#line 11342 "EditingTools.c" - { - gint _tmp153_; -#line 1667 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp153_ = width; -#line 1667 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp153_ < EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE) { -#line 11349 "EditingTools.c" - gint _tmp154_; -#line 1668 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp154_ = left; -#line 1668 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - right = _tmp154_ + EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE; -#line 11355 "EditingTools.c" - } -#line 1669 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 11359 "EditingTools.c" - } - default: - { -#line 1672 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 11365 "EditingTools.c" - } - } -#line 1675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp155_ = self->priv->in_manipulation; -#line 1675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - switch (_tmp155_) { -#line 1675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_TOP_SIDE: -#line 1675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_TOP_LEFT: -#line 1675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_TOP_RIGHT: -#line 11378 "EditingTools.c" - { - gint _tmp156_; -#line 1679 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp156_ = height; -#line 1679 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp156_ < EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE) { -#line 11385 "EditingTools.c" - gint _tmp157_; -#line 1680 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp157_ = bottom; -#line 1680 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - top = _tmp157_ - EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE; -#line 11391 "EditingTools.c" - } -#line 1681 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 11395 "EditingTools.c" - } -#line 1675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_BOTTOM_SIDE: -#line 1675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_BOTTOM_LEFT: -#line 1675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case BOX_LOCATION_BOTTOM_RIGHT: -#line 11403 "EditingTools.c" - { - gint _tmp158_; -#line 1686 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp158_ = height; -#line 1686 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp158_ < EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE) { -#line 11410 "EditingTools.c" - gint _tmp159_; -#line 1687 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp159_ = top; -#line 1687 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bottom = _tmp159_ + EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE; -#line 11416 "EditingTools.c" - } -#line 1688 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 11420 "EditingTools.c" - } - default: - { -#line 1691 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 11426 "EditingTools.c" - } - } -#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp160_ = left; -#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp161_ = top; -#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp162_ = right; -#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp163_ = bottom; -#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_init (&_tmp164_, _tmp160_, _tmp161_, _tmp162_, _tmp163_); -#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp165_ = photo_dims; -#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp166_ = _tmp165_.width; -#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp167_ = photo_dims; -#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp168_ = _tmp167_.height; -#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp169_ = angle; -#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp170_ = self->priv->in_manipulation; -#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - clamp_inside_rotated_image (&_tmp164_, _tmp166_, _tmp168_, _tmp169_, _tmp170_ == BOX_LOCATION_INSIDE, &_tmp171_); -#line 1697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_crop = _tmp171_; -#line 11455 "EditingTools.c" - } else { - gint _tmp172_; - gint _tmp173_; - gint _tmp174_; - gint _tmp175_; - Box adjusted = {0}; - Box _tmp176_; - Dimensions _tmp177_; - gint _tmp178_; - Dimensions _tmp179_; - gint _tmp180_; - gdouble _tmp181_; - BoxLocation _tmp182_; - Box _tmp183_ = {0}; - gboolean _tmp184_ = FALSE; - gboolean _tmp185_ = FALSE; - Box _tmp186_; - Box _tmp187_; -#line 1706 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp172_ = left; -#line 1706 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp173_ = top; -#line 1706 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp174_ = right; -#line 1706 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp175_ = bottom; -#line 1706 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_init (&new_crop, _tmp172_, _tmp173_, _tmp174_, _tmp175_); -#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp176_ = new_crop; -#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp177_ = photo_dims; -#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp178_ = _tmp177_.width; -#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp179_ = photo_dims; -#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp180_ = _tmp179_.height; -#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp181_ = angle; -#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp182_ = self->priv->in_manipulation; -#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - clamp_inside_rotated_image (&_tmp176_, _tmp178_, _tmp180_, _tmp181_, _tmp182_ == BOX_LOCATION_INSIDE, &_tmp183_); -#line 1707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - adjusted = _tmp183_; -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp186_ = adjusted; -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp187_ = new_crop; -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_box_equal (&_tmp186_, &_tmp187_) != TRUE) { -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp185_ = TRUE; -#line 11510 "EditingTools.c" - } else { - gint _tmp188_; -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp188_ = width; -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp185_ = _tmp188_ < EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE; -#line 11517 "EditingTools.c" - } -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp185_) { -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp184_ = TRUE; -#line 11523 "EditingTools.c" - } else { - gint _tmp189_; -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp189_ = height; -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp184_ = _tmp189_ < EDITING_TOOLS_CROP_TOOL_CROP_MIN_SIZE; -#line 11530 "EditingTools.c" - } -#line 1711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp184_) { -#line 11534 "EditingTools.c" - Box _tmp190_; -#line 1712 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp190_ = self->priv->scaled_crop; -#line 1712 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_crop = _tmp190_; -#line 11540 "EditingTools.c" - } - } -#line 1716 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp191_ = self->priv->in_manipulation; -#line 1716 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp191_ != BOX_LOCATION_INSIDE) { -#line 11547 "EditingTools.c" - Box _tmp192_; -#line 1717 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp192_ = new_crop; -#line 1717 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_crop_resized (self, &_tmp192_); -#line 11553 "EditingTools.c" - } else { - Box _tmp193_; -#line 1719 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp193_ = new_crop; -#line 1719 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_crop_moved (self, &_tmp193_); -#line 11560 "EditingTools.c" - } -#line 1722 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp194_ = new_crop; -#line 1722 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->scaled_crop = _tmp194_; -#line 1724 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (editing_tools_crop_tool_get_constraint_aspect_ratio (self) == EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO) { -#line 11568 "EditingTools.c" - gint _tmp195_; - gint _tmp196_; -#line 1725 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_init_width = box_get_width (&self->priv->scaled_crop); -#line 1726 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_init_height = box_get_height (&self->priv->scaled_crop); -#line 1727 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp195_ = self->priv->custom_init_width; -#line 1727 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp196_ = self->priv->custom_init_height; -#line 1727 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_aspect_ratio = ((gfloat) _tmp195_) / ((gfloat) _tmp196_); -#line 11581 "EditingTools.c" - } -#line 1730 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = FALSE; -#line 1730 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 11587 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_crop_resized (EditingToolsCropTool* self, - Box* new_crop) -{ - Box _tmp0_; - EditingToolsPhotoCanvas* _tmp1_; - Box _tmp2_; - Box horizontal = {0}; - gboolean horizontal_enlarged = FALSE; - Box vertical = {0}; - gboolean vertical_enlarged = FALSE; - BoxComplements complements = 0; - Box _tmp3_; - Box _tmp4_ = {0}; - gboolean _tmp5_ = FALSE; - Box _tmp6_ = {0}; - gboolean _tmp7_ = FALSE; - BoxComplements _tmp8_; - BoxComplements _tmp9_; - gboolean _tmp10_ = FALSE; - BoxComplements _tmp11_; - gboolean _tmp16_ = FALSE; - BoxComplements _tmp17_; - Box _tmp22_; - EditingToolsPhotoCanvas* _tmp23_; - Box _tmp24_; -#line 1733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 1733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (new_crop != NULL); -#line 1734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = *new_crop; -#line 1734 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (box_equals (&self->priv->scaled_crop, &_tmp0_)) { -#line 1736 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 11627 "EditingTools.c" - } -#line 1739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->scaled_crop; -#line 1739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_invalidate_area (_tmp1_, &_tmp2_); -#line 1745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = *new_crop; -#line 1745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = box_resized_complements (&self->priv->scaled_crop, &_tmp3_, &_tmp4_, &_tmp5_, &_tmp6_, &_tmp7_); -#line 1745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - horizontal = _tmp4_; -#line 1745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - horizontal_enlarged = _tmp5_; -#line 1745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - vertical = _tmp6_; -#line 1745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - vertical_enlarged = _tmp7_; -#line 1745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - complements = _tmp8_; -#line 1749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = complements; -#line 1749 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_assert (_tmp9_ != BOX_COMPLEMENTS_NONE, "complements != BoxComplements.NONE"); -#line 1751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = complements; -#line 1751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp11_ == BOX_COMPLEMENTS_HORIZONTAL) { -#line 1751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = TRUE; -#line 11659 "EditingTools.c" - } else { - BoxComplements _tmp12_; -#line 1751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = complements; -#line 1751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp12_ == BOX_COMPLEMENTS_BOTH; -#line 11666 "EditingTools.c" - } -#line 1751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp10_) { -#line 11670 "EditingTools.c" - gdouble _tmp13_ = 0.0; - gboolean _tmp14_; - Box _tmp15_; -#line 1752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = horizontal_enlarged; -#line 1752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp14_) { -#line 1752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = 0.0; -#line 11680 "EditingTools.c" - } else { -#line 1752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = 0.5; -#line 11684 "EditingTools.c" - } -#line 1752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = horizontal; -#line 1752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_set_area_alpha (self, &_tmp15_, _tmp13_); -#line 11690 "EditingTools.c" - } -#line 1754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = complements; -#line 1754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp17_ == BOX_COMPLEMENTS_VERTICAL) { -#line 1754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = TRUE; -#line 11698 "EditingTools.c" - } else { - BoxComplements _tmp18_; -#line 1754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = complements; -#line 1754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = _tmp18_ == BOX_COMPLEMENTS_BOTH; -#line 11705 "EditingTools.c" - } -#line 1754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp16_) { -#line 11709 "EditingTools.c" - gdouble _tmp19_ = 0.0; - gboolean _tmp20_; - Box _tmp21_; -#line 1755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = vertical_enlarged; -#line 1755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp20_) { -#line 1755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = 0.0; -#line 11719 "EditingTools.c" - } else { -#line 1755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = 0.5; -#line 11723 "EditingTools.c" - } -#line 1755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = vertical; -#line 1755 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_set_area_alpha (self, &_tmp21_, _tmp19_); -#line 11729 "EditingTools.c" - } -#line 1757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = *new_crop; -#line 1757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_paint_crop_tool (self, &_tmp22_); -#line 1758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = *new_crop; -#line 1758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_invalidate_area (_tmp23_, &_tmp24_); -#line 11741 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_crop_moved (EditingToolsCropTool* self, - Box* new_crop) -{ - Box _tmp0_; - EditingToolsPhotoCanvas* _tmp1_; - Box _tmp2_; - Box _tmp3_; - Box _tmp4_; - Box _tmp5_; - EditingToolsPhotoCanvas* _tmp6_; - Box _tmp7_; -#line 1761 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 1761 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (new_crop != NULL); -#line 1762 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = *new_crop; -#line 1762 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (box_equals (&self->priv->scaled_crop, &_tmp0_)) { -#line 1764 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 11767 "EditingTools.c" - } -#line 1767 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1767 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->scaled_crop; -#line 1767 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_invalidate_area (_tmp1_, &_tmp2_); -#line 1769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->scaled_crop; -#line 1769 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_set_area_alpha (self, &_tmp3_, 0.5); -#line 1770 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = *new_crop; -#line 1770 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_set_area_alpha (self, &_tmp4_, 0.0); -#line 1774 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = *new_crop; -#line 1774 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_paint_crop_tool (self, &_tmp5_); -#line 1775 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1775 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = *new_crop; -#line 1775 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_invalidate_area (_tmp6_, &_tmp7_); -#line 11793 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_set_area_alpha (EditingToolsCropTool* self, - Box* area, - gdouble alpha) -{ - cairo_t* ctx = NULL; - cairo_surface_t* _tmp0_; - cairo_t* _tmp1_; - Box _tmp2_; - gint _tmp3_; - Box _tmp4_; - gint _tmp5_; - EditingToolsPhotoCanvas* _tmp6_; - cairo_surface_t* _tmp7_; - Box _tmp8_; -#line 1778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 1778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (area != NULL); -#line 1779 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->crop_surface; -#line 1779 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = cairo_create (_tmp0_); -#line 1779 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ctx = _tmp1_; -#line 1780 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_operator (ctx, CAIRO_OPERATOR_SOURCE); -#line 1781 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_source_rgba (ctx, 0.0, 0.0, 0.0, alpha); -#line 1782 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = *area; -#line 1782 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_.left; -#line 1782 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = *area; -#line 1782 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_.top; -#line 1782 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_rectangle (ctx, (gdouble) _tmp3_, (gdouble) _tmp5_, (gdouble) box_get_width (area), (gdouble) box_get_height (area)); -#line 1783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_fill (ctx); -#line 1784 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1784 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = self->priv->crop_surface; -#line 1784 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = *area; -#line 1784 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_paint_surface_area (_tmp6_, _tmp7_, &_tmp8_, TRUE); -#line 1778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (ctx); -#line 11848 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_paint_crop_tool (EditingToolsCropTool* self, - Box* crop) -{ - BoxLocation _tmp0_; - EditingToolsPhotoCanvas* _tmp55_; - cairo_t* _tmp56_; - Box _tmp57_; - EditingToolsPhotoCanvas* _tmp58_; - cairo_t* _tmp59_; - Box _tmp60_ = {0}; - EditingToolsPhotoCanvas* _tmp61_; - cairo_t* _tmp62_; - Box _tmp63_ = {0}; -#line 1787 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_CROP_TOOL (self)); -#line 1787 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (crop != NULL); -#line 1789 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->in_manipulation; -#line 1789 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ != BOX_LOCATION_OUTSIDE) { -#line 11874 "EditingTools.c" - gint one_third_x = 0; - gint one_third_y = 0; - EditingToolsPhotoCanvas* _tmp1_; - cairo_t* _tmp2_; - Box _tmp3_; - gint _tmp4_; - Box _tmp5_; - gint _tmp6_; - gint _tmp7_; - EditingToolsPhotoCanvas* _tmp8_; - cairo_t* _tmp9_; - Box _tmp10_; - gint _tmp11_; - Box _tmp12_; - gint _tmp13_; - gint _tmp14_; - EditingToolsPhotoCanvas* _tmp15_; - cairo_t* _tmp16_; - Box _tmp17_; - gint _tmp18_; - gint _tmp19_; - Box _tmp20_; - gint _tmp21_; - EditingToolsPhotoCanvas* _tmp22_; - cairo_t* _tmp23_; - Box _tmp24_; - gint _tmp25_; - gint _tmp26_; - Box _tmp27_; - gint _tmp28_; - Box adj_crop = {0}; - EditingToolsPhotoCanvas* _tmp29_; - GdkRectangle _tmp30_ = {0}; - Dimensions _tmp31_ = {0}; - EditingToolsPhotoCanvas* _tmp32_; - Photo* _tmp33_; - Photo* _tmp34_; - Dimensions _tmp35_ = {0}; - Box _tmp36_ = {0}; - Box _tmp37_; - gchar* text = NULL; - gchar* _tmp38_; - gchar* _tmp39_; - gchar* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; - gchar* _tmp44_; - gchar* _tmp45_; - gint x = 0; - Box _tmp46_; - gint _tmp47_; - gint y = 0; - Box _tmp48_; - gint _tmp49_; - EditingToolsPhotoCanvas* _tmp50_; - cairo_t* _tmp51_; - const gchar* _tmp52_; - gint _tmp53_; - gint _tmp54_; -#line 1790 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - one_third_x = box_get_width (crop) / 3; -#line 1791 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - one_third_y = box_get_height (crop) / 3; -#line 1793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->thin_white_ctx; -#line 1793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = *crop; -#line 1793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_.left; -#line 1793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = *crop; -#line 1793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_.top; -#line 1793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = one_third_y; -#line 1793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_draw_horizontal_line (_tmp1_, _tmp2_, _tmp4_, _tmp6_ + _tmp7_, box_get_width (crop), TRUE); -#line 1794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->thin_white_ctx; -#line 1794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = *crop; -#line 1794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _tmp10_.left; -#line 1794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = *crop; -#line 1794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_.top; -#line 1794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = one_third_y; -#line 1794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_draw_horizontal_line (_tmp8_, _tmp9_, _tmp11_, _tmp13_ + (_tmp14_ * 2), box_get_width (crop), TRUE); -#line 1796 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1796 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = self->priv->thin_white_ctx; -#line 1796 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = *crop; -#line 1796 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = _tmp17_.left; -#line 1796 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = one_third_x; -#line 1796 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = *crop; -#line 1796 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = _tmp20_.top; -#line 1796 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_draw_vertical_line (_tmp15_, _tmp16_, _tmp18_ + _tmp19_, _tmp21_, box_get_height (crop), TRUE); -#line 1797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = self->priv->thin_white_ctx; -#line 1797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = *crop; -#line 1797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = _tmp24_.left; -#line 1797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = one_third_x; -#line 1797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = *crop; -#line 1797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = _tmp27_.top; -#line 1797 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_draw_vertical_line (_tmp22_, _tmp23_, _tmp25_ + (_tmp26_ * 2), _tmp28_, box_get_height (crop), TRUE); -#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp29_, &_tmp30_); -#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - dimensions_for_rectangle (&_tmp30_, &_tmp31_); -#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp32_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33_ = editing_tools_photo_canvas_get_photo (_tmp32_); -#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp34_ = _tmp33_; -#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_CROP, &_tmp35_); -#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_get_scaled_similar (&self->priv->scaled_crop, &_tmp31_, &_tmp35_, &_tmp36_); -#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp37_ = _tmp36_; -#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp34_); -#line 1801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - adj_crop = _tmp37_; -#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp38_ = g_strdup_printf ("%i", box_get_width (&adj_crop)); -#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp39_ = _tmp38_; -#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp40_ = g_strconcat (_tmp39_, "x", NULL); -#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp41_ = _tmp40_; -#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp42_ = g_strdup_printf ("%i", box_get_height (&adj_crop)); -#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp43_ = _tmp42_; -#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp44_ = g_strconcat (_tmp41_, _tmp43_, NULL); -#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp45_ = _tmp44_; -#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (_tmp43_); -#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (_tmp41_); -#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (_tmp39_); -#line 1804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - text = _tmp45_; -#line 1805 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp46_ = *crop; -#line 1805 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp47_ = _tmp46_.left; -#line 1805 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - x = _tmp47_ + (box_get_width (crop) / 2); -#line 1806 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp48_ = *crop; -#line 1806 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp49_ = _tmp48_.top; -#line 1806 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - y = _tmp49_ + (box_get_height (crop) / 2); -#line 1807 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp50_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1807 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp51_ = self->priv->text_ctx; -#line 1807 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp52_ = text; -#line 1807 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp53_ = x; -#line 1807 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp54_ = y; -#line 1807 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_draw_text (_tmp50_, _tmp51_, _tmp52_, _tmp53_, _tmp54_, TRUE); -#line 1789 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (text); -#line 12075 "EditingTools.c" - } -#line 1811 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp55_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1811 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp56_ = self->priv->wide_black_ctx; -#line 1811 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp57_ = *crop; -#line 1811 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_draw_box (_tmp55_, _tmp56_, &_tmp57_); -#line 1812 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp58_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1812 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp59_ = self->priv->wide_white_ctx; -#line 1812 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_get_reduced (crop, 1, &_tmp60_); -#line 1812 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_draw_box (_tmp58_, _tmp59_, &_tmp60_); -#line 1813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp61_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp62_ = self->priv->wide_white_ctx; -#line 1813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - box_get_reduced (crop, 2, &_tmp63_); -#line 1813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_draw_box (_tmp61_, _tmp62_, &_tmp63_); -#line 12101 "EditingTools.c" -} - - -static EditingToolsCropToolConstraintDescription* -editing_tools_crop_tool_constraint_description_construct (GType object_type, - const gchar* new_name, - gint new_basis_width, - gint new_basis_height, - gboolean new_pivotable, - gfloat new_aspect_ratio) -{ - EditingToolsCropToolConstraintDescription* self = NULL; - gchar* _tmp0_; -#line 593 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (new_name != NULL, NULL); -#line 593 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = (EditingToolsCropToolConstraintDescription*) g_type_create_instance (object_type); -#line 595 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = g_strdup (new_name); -#line 595 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (self->name); -#line 595 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->name = _tmp0_; -#line 596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->basis_width = new_basis_width; -#line 597 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->basis_height = new_basis_height; -#line 598 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (new_aspect_ratio == EDITING_TOOLS_CROP_TOOL_COMPUTE_FROM_BASIS) { -#line 12131 "EditingTools.c" - gint _tmp1_; - gint _tmp2_; -#line 599 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->basis_width; -#line 599 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->basis_height; -#line 599 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->aspect_ratio = ((gfloat) _tmp1_) / ((gfloat) _tmp2_); -#line 12140 "EditingTools.c" - } else { -#line 601 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->aspect_ratio = new_aspect_ratio; -#line 12144 "EditingTools.c" - } -#line 602 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->is_pivotable = new_pivotable; -#line 593 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self; -#line 12150 "EditingTools.c" -} - - -static EditingToolsCropToolConstraintDescription* -editing_tools_crop_tool_constraint_description_new (const gchar* new_name, - gint new_basis_width, - gint new_basis_height, - gboolean new_pivotable, - gfloat new_aspect_ratio) -{ -#line 593 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return editing_tools_crop_tool_constraint_description_construct (EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION, new_name, new_basis_width, new_basis_height, new_pivotable, new_aspect_ratio); -#line 12163 "EditingTools.c" -} - - -static gboolean -editing_tools_crop_tool_constraint_description_is_separator (EditingToolsCropToolConstraintDescription* self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; -#line 605 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_CROP_TOOL_IS_CONSTRAINT_DESCRIPTION (self), FALSE); -#line 606 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->is_pivotable; -#line 606 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!_tmp1_) { -#line 12179 "EditingTools.c" - gfloat _tmp2_; -#line 606 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->aspect_ratio; -#line 606 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = _tmp2_ == EDITING_TOOLS_CROP_TOOL_SEPARATOR; -#line 12185 "EditingTools.c" - } else { -#line 606 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = FALSE; -#line 12189 "EditingTools.c" - } -#line 606 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp0_; -#line 606 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 12195 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_value_constraint_description_init (GValue* value) -{ -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = NULL; -#line 12204 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_value_constraint_description_free_value (GValue* value) -{ -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (value->data[0].v_pointer) { -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_constraint_description_unref (value->data[0].v_pointer); -#line 12215 "EditingTools.c" - } -} - - -static void -editing_tools_crop_tool_value_constraint_description_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (src_value->data[0].v_pointer) { -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - dest_value->data[0].v_pointer = editing_tools_crop_tool_constraint_description_ref (src_value->data[0].v_pointer); -#line 12228 "EditingTools.c" - } else { -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - dest_value->data[0].v_pointer = NULL; -#line 12232 "EditingTools.c" - } -} - - -static gpointer -editing_tools_crop_tool_value_constraint_description_peek_pointer (const GValue* value) -{ -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return value->data[0].v_pointer; -#line 12242 "EditingTools.c" -} - - -static gchar* -editing_tools_crop_tool_value_constraint_description_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (collect_values[0].v_pointer) { -#line 12254 "EditingTools.c" - EditingToolsCropToolConstraintDescription * object; - object = collect_values[0].v_pointer; -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (object->parent_instance.g_class == NULL) { -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 12261 "EditingTools.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 12265 "EditingTools.c" - } -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = editing_tools_crop_tool_constraint_description_ref (object); -#line 12269 "EditingTools.c" - } else { -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = NULL; -#line 12273 "EditingTools.c" - } -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return NULL; -#line 12277 "EditingTools.c" -} - - -static gchar* -editing_tools_crop_tool_value_constraint_description_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - EditingToolsCropToolConstraintDescription ** object_p; - object_p = collect_values[0].v_pointer; -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!object_p) { -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 12293 "EditingTools.c" - } -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!value->data[0].v_pointer) { -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *object_p = NULL; -#line 12299 "EditingTools.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *object_p = value->data[0].v_pointer; -#line 12303 "EditingTools.c" - } else { -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *object_p = editing_tools_crop_tool_constraint_description_ref (value->data[0].v_pointer); -#line 12307 "EditingTools.c" - } -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return NULL; -#line 12311 "EditingTools.c" -} - - -static GParamSpec* -editing_tools_crop_tool_param_spec_constraint_description (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - EditingToolsCropToolParamSpecConstraintDescription* spec; -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (g_type_is_a (object_type, EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION), NULL); -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return G_PARAM_SPEC (spec); -#line 12331 "EditingTools.c" -} - - -static gpointer -editing_tools_crop_tool_value_get_constraint_description (const GValue* value) -{ -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION), NULL); -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return value->data[0].v_pointer; -#line 12342 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_value_set_constraint_description (GValue* value, - gpointer v_object) -{ - EditingToolsCropToolConstraintDescription * old; -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION)); -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - old = value->data[0].v_pointer; -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (v_object) { -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION)); -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = v_object; -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_constraint_description_ref (value->data[0].v_pointer); -#line 12365 "EditingTools.c" - } else { -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = NULL; -#line 12369 "EditingTools.c" - } -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (old) { -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_constraint_description_unref (old); -#line 12375 "EditingTools.c" - } -} - - -static void -editing_tools_crop_tool_value_take_constraint_description (GValue* value, - gpointer v_object) -{ - EditingToolsCropToolConstraintDescription * old; -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION)); -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - old = value->data[0].v_pointer; -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (v_object) { -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION)); -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = v_object; -#line 12397 "EditingTools.c" - } else { -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - value->data[0].v_pointer = NULL; -#line 12401 "EditingTools.c" - } -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (old) { -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_constraint_description_unref (old); -#line 12407 "EditingTools.c" - } -} - - -static void -editing_tools_crop_tool_constraint_description_class_init (EditingToolsCropToolConstraintDescriptionClass * klass) -{ -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_constraint_description_parent_class = g_type_class_peek_parent (klass); -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsCropToolConstraintDescriptionClass *) klass)->finalize = editing_tools_crop_tool_constraint_description_finalize; -#line 12419 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_constraint_description_instance_init (EditingToolsCropToolConstraintDescription * self) -{ -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->ref_count = 1; -#line 12428 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_constraint_description_finalize (EditingToolsCropToolConstraintDescription * obj) -{ - EditingToolsCropToolConstraintDescription * self; -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_CROP_TOOL_TYPE_CONSTRAINT_DESCRIPTION, EditingToolsCropToolConstraintDescription); -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_destroy (self); -#line 587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (self->name); -#line 12442 "EditingTools.c" -} - - -static GType -editing_tools_crop_tool_constraint_description_get_type (void) -{ - static volatile gsize editing_tools_crop_tool_constraint_description_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_crop_tool_constraint_description_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { editing_tools_crop_tool_value_constraint_description_init, editing_tools_crop_tool_value_constraint_description_free_value, editing_tools_crop_tool_value_constraint_description_copy_value, editing_tools_crop_tool_value_constraint_description_peek_pointer, "p", editing_tools_crop_tool_value_constraint_description_collect_value, "p", editing_tools_crop_tool_value_constraint_description_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (EditingToolsCropToolConstraintDescriptionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_crop_tool_constraint_description_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsCropToolConstraintDescription), 0, (GInstanceInitFunc) editing_tools_crop_tool_constraint_description_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType editing_tools_crop_tool_constraint_description_type_id; - editing_tools_crop_tool_constraint_description_type_id = g_type_register_fundamental (g_type_fundamental_next (), "EditingToolsCropToolConstraintDescription", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&editing_tools_crop_tool_constraint_description_type_id__volatile, editing_tools_crop_tool_constraint_description_type_id); - } - return editing_tools_crop_tool_constraint_description_type_id__volatile; -} - - -static gpointer -editing_tools_crop_tool_constraint_description_ref (gpointer instance) -{ - EditingToolsCropToolConstraintDescription * self; - self = instance; -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_atomic_int_inc (&self->ref_count); -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return instance; -#line 12471 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_constraint_description_unref (gpointer instance) -{ - EditingToolsCropToolConstraintDescription * self; - self = instance; -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_CROP_TOOL_CONSTRAINT_DESCRIPTION_GET_CLASS (self)->finalize (self); -#line 586 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 12486 "EditingTools.c" - } -} - - -static gboolean -_editing_tools_crop_tool_crop_tool_window_constraint_combo_separator_func_gtk_tree_view_row_separator_func (GtkTreeModel* model, - GtkTreeIter* iter, - gpointer self) -{ - gboolean result; - result = editing_tools_crop_tool_crop_tool_window_constraint_combo_separator_func (model, iter); -#line 654 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 12500 "EditingTools.c" -} - - -static EditingToolsCropToolCropToolWindow* -editing_tools_crop_tool_crop_tool_window_construct (GType object_type, - GtkWindow* container) -{ - EditingToolsCropToolCropToolWindow * self = NULL; - GtkButton* _tmp0_; - GtkButton* _tmp1_; - GtkButton* _tmp2_; - GtkButton* _tmp3_; - GtkComboBox* _tmp4_; - GtkCellRendererText* combo_text_renderer = NULL; - GtkCellRendererText* _tmp5_; - GtkComboBox* _tmp6_; - GtkComboBox* _tmp7_; - GtkComboBox* _tmp8_; - GtkComboBox* _tmp9_; - GtkImage* image = NULL; - GtkImage* _tmp10_; - GtkButton* _tmp11_; - GtkButton* _tmp12_; - GtkEntry* _tmp13_; - GtkEntry* _tmp14_; - GtkEntry* _tmp15_; - GtkEntry* _tmp16_; - GtkBox* _tmp17_; - GtkBox* _tmp18_; - GtkBox* _tmp19_; - GtkButton* _tmp20_; - GtkBox* _tmp21_; - GtkButton* _tmp22_; - GtkBox* _tmp23_; - GtkBox* _tmp24_; - GtkComboBox* _tmp25_; - GtkBox* _tmp26_; - GtkButton* _tmp27_; - GtkBox* _tmp28_; - GtkBox* _tmp29_; - GtkBox* _tmp30_; -#line 641 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (GTK_IS_WINDOW (container), NULL); -#line 642 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = (EditingToolsCropToolCropToolWindow*) editing_tools_editing_tool_window_construct (object_type, container); -#line 644 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->cancel_button; -#line 644 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), _ ("Return to current photo dimensions")); -#line 645 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->cancel_button; -#line 645 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_button_set_image_position (_tmp1_, GTK_POS_LEFT); -#line 647 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->ok_button; -#line 647 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), _ ("Set the crop for this photo")); -#line 648 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->ok_button; -#line 648 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_button_set_image_position (_tmp3_, GTK_POS_LEFT); -#line 650 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = (GtkComboBox*) gtk_combo_box_new (); -#line 650 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp4_); -#line 650 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->constraint_combo); -#line 650 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->constraint_combo = _tmp4_; -#line 651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = (GtkCellRendererText*) gtk_cell_renderer_text_new (); -#line 651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp5_); -#line 651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - combo_text_renderer = _tmp5_; -#line 652 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = self->constraint_combo; -#line 652 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (combo_text_renderer, gtk_cell_renderer_get_type (), GtkCellRenderer), TRUE); -#line 653 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = self->constraint_combo; -#line 653 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (combo_text_renderer, gtk_cell_renderer_get_type (), GtkCellRenderer), "text", 0); -#line 654 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = self->constraint_combo; -#line 654 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_combo_box_set_row_separator_func (_tmp8_, _editing_tools_crop_tool_crop_tool_window_constraint_combo_separator_func_gtk_tree_view_row_separator_func, NULL, NULL); -#line 655 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->constraint_combo; -#line 655 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_combo_box_set_active (_tmp9_, 0); -#line 657 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = (GtkImage*) gtk_image_new_from_icon_name ("crop-pivot-reticle", (GtkIconSize) GTK_ICON_SIZE_LARGE_TOOLBAR); -#line 657 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp10_); -#line 657 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - image = _tmp10_; -#line 658 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = self->pivot_reticle_button; -#line 658 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_button_set_image (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (image, gtk_widget_get_type (), GtkWidget)); -#line 659 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = self->pivot_reticle_button; -#line 659 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), _ ("Pivot the crop rectangle between portrait and landscape orientations")); -#line 661 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = self->custom_width_entry; -#line 661 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_entry_set_width_chars (_tmp13_, 4); -#line 662 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = self->custom_width_entry; -#line 662 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_set (_tmp14_, "editable", TRUE, NULL); -#line 663 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = self->custom_height_entry; -#line 663 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_entry_set_width_chars (_tmp15_, 4); -#line 664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = self->custom_height_entry; -#line 664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_set (_tmp16_, "editable", TRUE, NULL); -#line 666 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW_CONTROL_SPACING); -#line 666 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp17_); -#line 666 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->response_layout); -#line 666 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->response_layout = _tmp17_; -#line 667 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = self->response_layout; -#line 667 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_box_set_homogeneous (_tmp18_, TRUE); -#line 668 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = self->response_layout; -#line 668 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = self->cancel_button; -#line 668 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget)); -#line 669 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = self->response_layout; -#line 669 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = self->ok_button; -#line 669 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget)); -#line 671 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, EDITING_TOOLS_CROP_TOOL_CROP_TOOL_WINDOW_CONTROL_SPACING); -#line 671 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp23_); -#line 671 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->layout); -#line 671 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->layout = _tmp23_; -#line 672 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = self->layout; -#line 672 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = self->constraint_combo; -#line 672 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget)); -#line 673 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = self->layout; -#line 673 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = self->pivot_reticle_button; -#line 673 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget)); -#line 674 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = self->layout; -#line 674 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29_ = self->response_layout; -#line 674 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget)); -#line 676 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp30_ = self->layout; -#line 676 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_widget_get_type (), GtkWidget)); -#line 641 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (image); -#line 641 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (combo_text_renderer); -#line 641 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self; -#line 12682 "EditingTools.c" -} - - -static EditingToolsCropToolCropToolWindow* -editing_tools_crop_tool_crop_tool_window_new (GtkWindow* container) -{ -#line 641 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return editing_tools_crop_tool_crop_tool_window_construct (EDITING_TOOLS_CROP_TOOL_TYPE_CROP_TOOL_WINDOW, container); -#line 12691 "EditingTools.c" -} - - -static gboolean -editing_tools_crop_tool_crop_tool_window_constraint_combo_separator_func (GtkTreeModel* model, - GtkTreeIter* iter) -{ - gboolean result = FALSE; - GValue val = {0}; - GtkTreeIter _tmp0_; - GValue _tmp1_ = {0}; - gchar* _tmp2_; - gchar* _tmp3_; - gboolean _tmp4_; -#line 679 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (GTK_IS_TREE_MODEL (model), FALSE); -#line 679 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (iter != NULL, FALSE); -#line 681 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = *iter; -#line 681 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_tree_model_get_value (model, &_tmp0_, 0, &_tmp1_); -#line 681 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL; -#line 681 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - val = _tmp1_; -#line 683 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = g_value_dup_string (&val); -#line 683 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_; -#line 683 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = g_strcmp0 (_tmp3_, "-") == 0; -#line 683 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_free0 (_tmp3_); -#line 683 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp4_; -#line 683 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL; -#line 683 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 12732 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_crop_tool_window_class_init (EditingToolsCropToolCropToolWindowClass * klass) -{ -#line 625 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_crop_tool_window_parent_class = g_type_class_peek_parent (klass); -#line 625 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_OBJECT_CLASS (klass)->finalize = editing_tools_crop_tool_crop_tool_window_finalize; -#line 12743 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_crop_tool_window_instance_init (EditingToolsCropToolCropToolWindow * self) -{ - GtkButton* _tmp0_; - GtkButton* _tmp1_; - GtkButton* _tmp2_; - GtkEntry* _tmp3_; - GtkEntry* _tmp4_; - GtkLabel* _tmp5_; -#line 628 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = (GtkButton*) gtk_button_new_with_label (RESOURCES_CROP_LABEL); -#line 628 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp0_); -#line 628 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->ok_button = _tmp0_; -#line 629 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = (GtkButton*) gtk_button_new_with_mnemonic (RESOURCES_CANCEL_LABEL); -#line 629 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp1_); -#line 629 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->cancel_button = _tmp1_; -#line 631 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = (GtkButton*) gtk_button_new (); -#line 631 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp2_); -#line 631 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->pivot_reticle_button = _tmp2_; -#line 632 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = (GtkEntry*) gtk_entry_new (); -#line 632 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp3_); -#line 632 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->custom_width_entry = _tmp3_; -#line 633 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = (GtkEntry*) gtk_entry_new (); -#line 633 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp4_); -#line 633 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->custom_height_entry = _tmp4_; -#line 634 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = (GtkLabel*) gtk_label_new_with_mnemonic ("x"); -#line 634 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp5_); -#line 634 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->custom_mulsign_label = _tmp5_; -#line 635 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->most_recently_edited = NULL; -#line 636 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->response_layout = NULL; -#line 637 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->layout = NULL; -#line 638 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->normal_width = -1; -#line 639 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->normal_height = -1; -#line 12802 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_crop_tool_window_finalize (GObject * obj) -{ - EditingToolsCropToolCropToolWindow * self; -#line 625 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_CROP_TOOL_TYPE_CROP_TOOL_WINDOW, EditingToolsCropToolCropToolWindow); -#line 628 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->ok_button); -#line 629 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->cancel_button); -#line 630 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->constraint_combo); -#line 631 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->pivot_reticle_button); -#line 632 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->custom_width_entry); -#line 633 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->custom_height_entry); -#line 634 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->custom_mulsign_label); -#line 635 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->most_recently_edited); -#line 636 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->response_layout); -#line 637 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->layout); -#line 625 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_OBJECT_CLASS (editing_tools_crop_tool_crop_tool_window_parent_class)->finalize (obj); -#line 12834 "EditingTools.c" -} - - -static GType -editing_tools_crop_tool_crop_tool_window_get_type (void) -{ - static volatile gsize editing_tools_crop_tool_crop_tool_window_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_crop_tool_crop_tool_window_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditingToolsCropToolCropToolWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_crop_tool_crop_tool_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsCropToolCropToolWindow), 0, (GInstanceInitFunc) editing_tools_crop_tool_crop_tool_window_instance_init, NULL }; - GType editing_tools_crop_tool_crop_tool_window_type_id; - editing_tools_crop_tool_crop_tool_window_type_id = g_type_register_static (EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, "EditingToolsCropToolCropToolWindow", &g_define_type_info, 0); - g_once_init_leave (&editing_tools_crop_tool_crop_tool_window_type_id__volatile, editing_tools_crop_tool_crop_tool_window_type_id); - } - return editing_tools_crop_tool_crop_tool_window_type_id__volatile; -} - - -static void -editing_tools_crop_tool_class_init (EditingToolsCropToolClass * klass) -{ -#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_crop_tool_parent_class = g_type_class_peek_parent (klass); -#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->finalize = editing_tools_crop_tool_finalize; -#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_type_class_add_private (klass, sizeof (EditingToolsCropToolPrivate)); -#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->activate = (void (*) (EditingToolsEditingTool *, EditingToolsPhotoCanvas*)) editing_tools_crop_tool_real_activate; -#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->on_keypress = (gboolean (*) (EditingToolsEditingTool *, GdkEventKey*)) editing_tools_crop_tool_real_on_keypress; -#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->deactivate = (void (*) (EditingToolsEditingTool *)) editing_tools_crop_tool_real_deactivate; -#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->get_tool_window = (EditingToolsEditingToolWindow* (*) (EditingToolsEditingTool *)) editing_tools_crop_tool_real_get_tool_window; -#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->get_display_pixbuf = (GdkPixbuf* (*) (EditingToolsEditingTool *, Scaling*, Photo*, Dimensions*, GError**)) editing_tools_crop_tool_real_get_display_pixbuf; -#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->on_left_click = (void (*) (EditingToolsEditingTool *, gint, gint)) editing_tools_crop_tool_real_on_left_click; -#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->on_left_released = (void (*) (EditingToolsEditingTool *, gint, gint)) editing_tools_crop_tool_real_on_left_released; -#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->on_motion = (void (*) (EditingToolsEditingTool *, gint, gint, GdkModifierType)) editing_tools_crop_tool_real_on_motion; -#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->paint = (void (*) (EditingToolsEditingTool *, cairo_t*)) editing_tools_crop_tool_real_paint; -#line 12879 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_instance_init (EditingToolsCropTool * self) -{ - gint _tmp0_; - EditingToolsCropToolConstraintDescription** _tmp1_; - gint _tmp2_; - EditingToolsCropToolConstraintDescription** _tmp3_; - EditingToolsCropToolConstraintDescription** _tmp4_; - gint _tmp4__length1; - GtkListStore* _tmp5_; -#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv = EDITING_TOOLS_CROP_TOOL_GET_PRIVATE (self); -#line 687 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->crop_tool_window = NULL; -#line 688 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->current_cursor_type = GDK_LEFT_PTR; -#line 689 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->in_manipulation = BOX_LOCATION_OUTSIDE; -#line 690 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->wide_black_ctx = NULL; -#line 691 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->wide_white_ctx = NULL; -#line 692 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->thin_white_ctx = NULL; -#line 693 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->text_ctx = NULL; -#line 696 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->crop_surface = NULL; -#line 700 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->last_grab_x = -1; -#line 701 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->last_grab_y = -1; -#line 703 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = editing_tools_crop_tool_create_constraints (&_tmp0_); -#line 703 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->constraints = _tmp1_; -#line 703 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->constraints_length1 = _tmp0_; -#line 703 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->_constraints_size_ = self->priv->constraints_length1; -#line 704 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = editing_tools_crop_tool_create_constraints (&_tmp2_); -#line 704 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_; -#line 704 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4__length1 = _tmp2_; -#line 704 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = editing_tools_crop_tool_create_constraint_list (_tmp4_, _tmp2_); -#line 704 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->constraint_list = _tmp5_; -#line 704 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = (_vala_array_free (_tmp4_, _tmp4__length1, (GDestroyNotify) editing_tools_crop_tool_constraint_description_unref), NULL); -#line 705 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->reticle_orientation = EDITING_TOOLS_CROP_TOOL_RETICLE_ORIENTATION_LANDSCAPE; -#line 706 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->constraint_mode = EDITING_TOOLS_CROP_TOOL_CONSTRAINT_MODE_NORMAL; -#line 707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->entry_insert_in_progress = FALSE; -#line 708 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_aspect_ratio = 1.0f; -#line 709 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_width = -1; -#line 710 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_height = -1; -#line 711 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_init_width = -1; -#line 712 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->custom_init_height = -1; -#line 713 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->pre_aspect_ratio = EDITING_TOOLS_CROP_TOOL_ANY_ASPECT_RATIO; -#line 12953 "EditingTools.c" -} - - -static void -editing_tools_crop_tool_finalize (EditingToolsEditingTool * obj) -{ - EditingToolsCropTool * self; -#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_TYPE_CROP_TOOL, EditingToolsCropTool); -#line 687 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->crop_tool_window); -#line 690 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (self->priv->wide_black_ctx); -#line 691 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (self->priv->wide_white_ctx); -#line 692 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (self->priv->thin_white_ctx); -#line 693 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (self->priv->text_ctx); -#line 696 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_surface_destroy0 (self->priv->crop_surface); -#line 703 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->constraints = (_vala_array_free (self->priv->constraints, self->priv->constraints_length1, (GDestroyNotify) editing_tools_crop_tool_constraint_description_unref), NULL); -#line 704 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->constraint_list); -#line 565 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_crop_tool_parent_class)->finalize (obj); -#line 12981 "EditingTools.c" -} - - -GType -editing_tools_crop_tool_get_type (void) -{ - static volatile gsize editing_tools_crop_tool_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_crop_tool_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditingToolsCropToolClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_crop_tool_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsCropTool), 0, (GInstanceInitFunc) editing_tools_crop_tool_instance_init, NULL }; - GType editing_tools_crop_tool_type_id; - editing_tools_crop_tool_type_id = g_type_register_static (EDITING_TOOLS_TYPE_EDITING_TOOL, "EditingToolsCropTool", &g_define_type_info, 0); - g_once_init_leave (&editing_tools_crop_tool_type_id__volatile, editing_tools_crop_tool_type_id); - } - return editing_tools_crop_tool_type_id__volatile; -} - - -static void -editing_tools_redeye_instance_init (EditingToolsRedeyeInstance *self) -{ - GdkPoint default_center = {0}; - GdkPoint _tmp0_; -#line 1826 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - memset (self, 0, sizeof (EditingToolsRedeyeInstance)); -#line 1827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - memset (&default_center, 0, sizeof (GdkPoint)); -#line 1828 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = default_center; -#line 1828 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*self).center = _tmp0_; -#line 1829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - (*self).radius = EDITING_TOOLS_REDEYE_INSTANCE_DEFAULT_RADIUS; -#line 13014 "EditingTools.c" -} - - -void -editing_tools_redeye_instance_to_bounds_rect (EditingToolsRedeyeInstance* inst, - GdkRectangle* result) -{ - GdkRectangle _result_ = {0}; - EditingToolsRedeyeInstance _tmp0_; - GdkPoint _tmp1_; - gint _tmp2_; - EditingToolsRedeyeInstance _tmp3_; - gint _tmp4_; - EditingToolsRedeyeInstance _tmp5_; - GdkPoint _tmp6_; - gint _tmp7_; - EditingToolsRedeyeInstance _tmp8_; - gint _tmp9_; - EditingToolsRedeyeInstance _tmp10_; - gint _tmp11_; - GdkRectangle _tmp12_; - gint _tmp13_; -#line 1832 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (inst != NULL); -#line 1833 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - memset (&_result_, 0, sizeof (GdkRectangle)); -#line 1834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = *inst; -#line 1834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_.center; -#line 1834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_.x; -#line 1834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = *inst; -#line 1834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_.radius; -#line 1834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_.x = _tmp2_ - _tmp4_; -#line 1835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = *inst; -#line 1835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_.center; -#line 1835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_.y; -#line 1835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = *inst; -#line 1835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = _tmp8_.radius; -#line 1835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_.y = _tmp7_ - _tmp9_; -#line 1836 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = *inst; -#line 1836 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _tmp10_.radius; -#line 1836 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_.width = 2 * _tmp11_; -#line 1837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _result_; -#line 1837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_.width; -#line 1837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_.height = _tmp13_; -#line 1839 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *result = _result_; -#line 1839 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 13081 "EditingTools.c" -} - - -void -editing_tools_redeye_instance_from_bounds_rect (GdkRectangle* rect, - EditingToolsRedeyeInstance* result) -{ - GdkRectangle in_rect = {0}; - GdkRectangle _tmp0_; - EditingToolsRedeyeInstance _result_ = {0}; - GdkRectangle _tmp1_; - gint _tmp2_; - GdkRectangle _tmp3_; - gint _tmp4_; - GdkRectangle _tmp5_; - gint _tmp6_; - EditingToolsRedeyeInstance _tmp7_; - gint _tmp8_; - GdkRectangle _tmp9_; - gint _tmp10_; - EditingToolsRedeyeInstance _tmp11_; - gint _tmp12_; -#line 1842 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (rect != NULL); -#line 1843 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = *rect; -#line 1843 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - in_rect = _tmp0_; -#line 1845 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_instance_init (&_result_); -#line 1846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = in_rect; -#line 1846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_.width; -#line 1846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = in_rect; -#line 1846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_.height; -#line 1846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_.radius = (_tmp2_ + _tmp4_) / 4; -#line 1847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = in_rect; -#line 1847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_.x; -#line 1847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _result_; -#line 1847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = _tmp7_.radius; -#line 1847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_.center.x = _tmp6_ + _tmp8_; -#line 1848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = in_rect; -#line 1848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_.y; -#line 1848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _result_; -#line 1848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _tmp11_.radius; -#line 1848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_.center.y = _tmp10_ + _tmp12_; -#line 1850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *result = _result_; -#line 1850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 13146 "EditingTools.c" -} - - -EditingToolsRedeyeInstance* -editing_tools_redeye_instance_dup (const EditingToolsRedeyeInstance* self) -{ - EditingToolsRedeyeInstance* dup; -#line 1818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - dup = g_new0 (EditingToolsRedeyeInstance, 1); -#line 1818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - memcpy (dup, self, sizeof (EditingToolsRedeyeInstance)); -#line 1818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return dup; -#line 13160 "EditingTools.c" -} - - -void -editing_tools_redeye_instance_free (EditingToolsRedeyeInstance* self) -{ -#line 1818 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_free (self); -#line 13169 "EditingTools.c" -} - - -GType -editing_tools_redeye_instance_get_type (void) -{ - static volatile gsize editing_tools_redeye_instance_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_redeye_instance_type_id__volatile)) { - GType editing_tools_redeye_instance_type_id; - editing_tools_redeye_instance_type_id = g_boxed_type_register_static ("EditingToolsRedeyeInstance", (GBoxedCopyFunc) editing_tools_redeye_instance_dup, (GBoxedFreeFunc) editing_tools_redeye_instance_free); - g_once_init_leave (&editing_tools_redeye_instance_type_id__volatile, editing_tools_redeye_instance_type_id); - } - return editing_tools_redeye_instance_type_id__volatile; -} - - -static EditingToolsRedeyeTool* -editing_tools_redeye_tool_construct (GType object_type) -{ - EditingToolsRedeyeTool* self = NULL; -#line 1902 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = (EditingToolsRedeyeTool*) editing_tools_editing_tool_construct (object_type, "RedeyeTool"); -#line 1901 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self; -#line 13194 "EditingTools.c" -} - - -static EditingToolsRedeyeTool* -editing_tools_redeye_tool_new (void) -{ -#line 1901 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return editing_tools_redeye_tool_construct (EDITING_TOOLS_TYPE_REDEYE_TOOL); -#line 13203 "EditingTools.c" -} - - -EditingToolsRedeyeTool* -editing_tools_redeye_tool_factory (void) -{ - EditingToolsRedeyeTool* result = NULL; - EditingToolsRedeyeTool* _tmp0_; -#line 1906 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = editing_tools_redeye_tool_new (); -#line 1906 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp0_; -#line 1906 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 13218 "EditingTools.c" -} - - -gboolean -editing_tools_redeye_tool_is_available (Photo* photo, - Scaling* scaling) -{ - gboolean result = FALSE; - Dimensions dim = {0}; - Dimensions _tmp0_ = {0}; - Dimensions _tmp1_ = {0}; - gboolean _tmp2_ = FALSE; - Dimensions _tmp3_; - gint _tmp4_; -#line 1909 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (IS_PHOTO (photo), FALSE); -#line 1909 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (scaling != NULL, FALSE); -#line 1910 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp0_); -#line 1910 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - scaling_get_scaled_dimensions (scaling, &_tmp0_, &_tmp1_); -#line 1910 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - dim = _tmp1_; -#line 1912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = dim; -#line 1912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_.width; -#line 1912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp4_ >= (EDITING_TOOLS_REDEYE_INSTANCE_MAX_RADIUS * 2)) { -#line 13249 "EditingTools.c" - Dimensions _tmp5_; - gint _tmp6_; -#line 1913 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = dim; -#line 1913 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_.height; -#line 1913 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp6_ >= (EDITING_TOOLS_REDEYE_INSTANCE_MAX_RADIUS * 2); -#line 13258 "EditingTools.c" - } else { -#line 1912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = FALSE; -#line 13262 "EditingTools.c" - } -#line 1912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp2_; -#line 1912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 13268 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_new_interaction_instance (EditingToolsRedeyeTool* self, - EditingToolsPhotoCanvas* canvas, - EditingToolsRedeyeInstance* result) -{ - GdkRectangle photo_bounds = {0}; - GdkRectangle _tmp0_ = {0}; - GdkPoint photo_center = {0}; - GdkPoint _tmp1_ = {0}; - GdkRectangle _tmp2_; - gint _tmp3_; - GdkRectangle _tmp4_; - gint _tmp5_; - GdkRectangle _tmp6_; - gint _tmp7_; - GdkRectangle _tmp8_; - gint _tmp9_; - EditingToolsRedeyeInstance _result_ = {0}; - GdkPoint _tmp10_; - gint _tmp11_; - GdkPoint _tmp12_; - gint _tmp13_; -#line 1916 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self)); -#line 1916 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas)); -#line 1917 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (canvas, &_tmp0_); -#line 1917 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - photo_bounds = _tmp0_; -#line 1918 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_.x = 0; -#line 1918 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - photo_center = _tmp1_; -#line 1919 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = photo_bounds; -#line 1919 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_.x; -#line 1919 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = photo_bounds; -#line 1919 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_.width; -#line 1919 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - photo_center.x = _tmp3_ + (_tmp5_ / 2); -#line 1920 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = photo_bounds; -#line 1920 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_.y; -#line 1920 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = photo_bounds; -#line 1920 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = _tmp8_.height; -#line 1920 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - photo_center.y = _tmp7_ + (_tmp9_ / 2); -#line 1922 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_instance_init (&_result_); -#line 1923 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = photo_center; -#line 1923 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _tmp10_.x; -#line 1923 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_.center.x = _tmp11_; -#line 1924 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = photo_center; -#line 1924 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_.y; -#line 1924 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_.center.y = _tmp13_; -#line 1925 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _result_.radius = EDITING_TOOLS_REDEYE_INSTANCE_DEFAULT_RADIUS; -#line 1927 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *result = _result_; -#line 1927 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 13346 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_prepare_ctx (EditingToolsRedeyeTool* self, - cairo_t* ctx, - Dimensions* dim) -{ - cairo_surface_t* _tmp0_; - cairo_t* _tmp1_; - cairo_t* _tmp2_; - cairo_t* _tmp3_; - cairo_surface_t* _tmp4_; - cairo_t* _tmp5_; - cairo_t* _tmp6_; - cairo_t* _tmp7_; -#line 1930 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self)); -#line 1930 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (ctx != NULL); -#line 1930 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (dim != NULL); -#line 1931 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = cairo_get_target (ctx); -#line 1931 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = cairo_create (_tmp0_); -#line 1931 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (self->priv->wider_gray_ctx); -#line 1931 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->wider_gray_ctx = _tmp1_; -#line 1932 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->wider_gray_ctx; -#line 1932 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - set_source_color_from_string (_tmp2_, "#111"); -#line 1933 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->wider_gray_ctx; -#line 1933 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_line_width (_tmp3_, (gdouble) 3); -#line 1935 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = cairo_get_target (ctx); -#line 1935 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = cairo_create (_tmp4_); -#line 1935 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (self->priv->thin_white_ctx); -#line 1935 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->thin_white_ctx = _tmp5_; -#line 1936 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = self->priv->thin_white_ctx; -#line 1936 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - set_source_color_from_string (_tmp6_, "#FFF"); -#line 1937 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = self->priv->thin_white_ctx; -#line 1937 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cairo_set_line_width (_tmp7_, (gdouble) 1); -#line 13401 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_draw_redeye_instance (EditingToolsRedeyeTool* self, - EditingToolsRedeyeInstance* inst) -{ - EditingToolsPhotoCanvas* _tmp0_; - cairo_t* _tmp1_; - EditingToolsRedeyeInstance _tmp2_; - GdkPoint _tmp3_; - gint _tmp4_; - EditingToolsRedeyeInstance _tmp5_; - GdkPoint _tmp6_; - gint _tmp7_; - EditingToolsRedeyeInstance _tmp8_; - gint _tmp9_; - EditingToolsPhotoCanvas* _tmp10_; - cairo_t* _tmp11_; - EditingToolsRedeyeInstance _tmp12_; - GdkPoint _tmp13_; - gint _tmp14_; - EditingToolsRedeyeInstance _tmp15_; - GdkPoint _tmp16_; - gint _tmp17_; - EditingToolsRedeyeInstance _tmp18_; - gint _tmp19_; -#line 1940 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self)); -#line 1940 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (inst != NULL); -#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->wider_gray_ctx; -#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = *inst; -#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_.center; -#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_.x; -#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = *inst; -#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_.center; -#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_.y; -#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = *inst; -#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = _tmp8_.radius; -#line 1941 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_draw_circle (_tmp0_, _tmp1_, _tmp4_, _tmp7_, _tmp9_); -#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = self->priv->thin_white_ctx; -#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = *inst; -#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_.center; -#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = _tmp13_.x; -#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = *inst; -#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = _tmp15_.center; -#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = _tmp16_.y; -#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = *inst; -#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = _tmp18_.radius; -#line 1943 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_draw_circle (_tmp10_, _tmp11_, _tmp14_, _tmp17_, _tmp19_); -#line 13477 "EditingTools.c" -} - - -static gboolean -editing_tools_redeye_tool_on_size_slider_adjust (EditingToolsRedeyeTool* self, - GtkScrollType type) -{ - gboolean result = FALSE; - EditingToolsRedeyeToolRedeyeToolWindow* _tmp0_; - GtkScale* _tmp1_; - EditingToolsPhotoCanvas* _tmp2_; -#line 1947 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self), FALSE); -#line 1948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->redeye_tool_window; -#line 1948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_->slider; -#line 1948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->user_interaction_instance.radius = (gint) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange)); -#line 1951 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1951 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_repaint (_tmp2_); -#line 1953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = FALSE; -#line 1953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 13505 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_on_apply (EditingToolsRedeyeTool* self) -{ - GdkRectangle bounds_rect_user = {0}; - EditingToolsRedeyeInstance _tmp0_; - GdkRectangle _tmp1_ = {0}; - GdkRectangle bounds_rect_active = {0}; - EditingToolsPhotoCanvas* _tmp2_; - GdkRectangle _tmp3_; - GdkRectangle _tmp4_ = {0}; - GdkRectangle bounds_rect_unscaled = {0}; - EditingToolsPhotoCanvas* _tmp5_; - GdkRectangle _tmp6_; - GdkRectangle _tmp7_ = {0}; - GdkRectangle bounds_rect_raw = {0}; - EditingToolsPhotoCanvas* _tmp8_; - GdkRectangle _tmp9_; - GdkRectangle _tmp10_ = {0}; - EditingToolsRedeyeInstance instance_raw = {0}; - GdkRectangle _tmp11_; - EditingToolsRedeyeInstance _tmp12_ = {0}; - Dimensions dimensions = {0}; - EditingToolsPhotoCanvas* _tmp13_; - Photo* _tmp14_; - Photo* _tmp15_; - Dimensions _tmp16_ = {0}; - Dimensions _tmp17_; - gdouble theta = 0.0; - EditingToolsPhotoCanvas* _tmp18_; - Photo* _tmp19_; - Photo* _tmp20_; - gdouble _tmp21_ = 0.0; - EditingToolsRedeyeInstance _tmp22_; - GdkPoint _tmp23_; - Dimensions _tmp24_; - gint _tmp25_; - Dimensions _tmp26_; - gint _tmp27_; - gdouble _tmp28_; - GdkPoint _tmp29_ = {0}; - RedeyeCommand* command = NULL; - EditingToolsPhotoCanvas* _tmp30_; - Photo* _tmp31_; - Photo* _tmp32_; - EditingToolsRedeyeInstance _tmp33_; - RedeyeCommand* _tmp34_; - RedeyeCommand* _tmp35_; - CommandManager* _tmp36_; - CommandManager* _tmp37_; -#line 1956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self)); -#line 1957 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->user_interaction_instance; -#line 1957 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_instance_to_bounds_rect (&_tmp0_, &_tmp1_); -#line 1957 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bounds_rect_user = _tmp1_; -#line 1960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = bounds_rect_user; -#line 1960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_user_to_active_rect (_tmp2_, &_tmp3_, &_tmp4_); -#line 1960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bounds_rect_active = _tmp4_; -#line 1962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = bounds_rect_active; -#line 1962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_active_to_unscaled_rect (_tmp5_, &_tmp6_, &_tmp7_); -#line 1962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bounds_rect_unscaled = _tmp7_; -#line 1964 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1964 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = bounds_rect_unscaled; -#line 1964 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_unscaled_to_raw_rect (_tmp8_, &_tmp9_, &_tmp10_); -#line 1964 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bounds_rect_raw = _tmp10_; -#line 1967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = bounds_rect_raw; -#line 1967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_instance_from_bounds_rect (&_tmp11_, &_tmp12_); -#line 1967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - instance_raw = _tmp12_; -#line 1972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = editing_tools_photo_canvas_get_photo (_tmp13_); -#line 1972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = _tmp14_; -#line 1972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_STRAIGHTEN | PHOTO_EXCEPTION_CROP, &_tmp16_); -#line 1972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = _tmp16_; -#line 1972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp15_); -#line 1972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - dimensions = _tmp17_; -#line 1975 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - theta = 0.0; -#line 1977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = editing_tools_photo_canvas_get_photo (_tmp18_); -#line 1977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = _tmp19_; -#line 1977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - photo_get_straighten (_tmp20_, &_tmp21_); -#line 1977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - theta = _tmp21_; -#line 1977 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp20_); -#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = instance_raw; -#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = _tmp22_.center; -#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = dimensions; -#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = _tmp24_.width; -#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = dimensions; -#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = _tmp26_.height; -#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = theta; -#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - derotate_point_arb (&_tmp23_, _tmp25_, _tmp27_, _tmp28_, &_tmp29_); -#line 1979 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - instance_raw.center = _tmp29_; -#line 1982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp30_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp31_ = editing_tools_photo_canvas_get_photo (_tmp30_); -#line 1982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp32_ = _tmp31_; -#line 1982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33_ = instance_raw; -#line 1982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp34_ = redeye_command_new (_tmp32_, &_tmp33_, RESOURCES_RED_EYE_LABEL, RESOURCES_RED_EYE_TOOLTIP); -#line 1982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp35_ = _tmp34_; -#line 1982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp32_); -#line 1982 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - command = _tmp35_; -#line 1984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp36_ = app_window_get_command_manager (); -#line 1984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp37_ = _tmp36_; -#line 1984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - command_manager_execute (_tmp37_, G_TYPE_CHECK_INSTANCE_CAST (command, TYPE_COMMAND, Command)); -#line 1984 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _command_manager_unref0 (_tmp37_); -#line 1956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (command); -#line 13668 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_on_photos_altered (EditingToolsRedeyeTool* self, - GeeMap* map) -{ - EditingToolsPhotoCanvas* _tmp0_; - Photo* _tmp1_; - Photo* _tmp2_; - gboolean _tmp3_; - EditingToolsPhotoCanvas* _tmp15_; - GError * _inner_error_ = NULL; -#line 1987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self)); -#line 1987 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (GEE_IS_MAP (map)); -#line 1988 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1988 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = editing_tools_photo_canvas_get_photo (_tmp0_); -#line 1988 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_; -#line 1988 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = !gee_map_has_key (map, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_OBJECT, DataObject)); -#line 1988 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp2_); -#line 1988 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp3_) { -#line 1989 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 13700 "EditingTools.c" - } - { - GdkPixbuf* _tmp4_ = NULL; - EditingToolsPhotoCanvas* _tmp5_; - Photo* _tmp6_; - Photo* _tmp7_; - EditingToolsPhotoCanvas* _tmp8_; - Scaling _tmp9_ = {0}; - GdkPixbuf* _tmp10_; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp12_; -#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = editing_tools_photo_canvas_get_photo (_tmp5_); -#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_; -#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaling (_tmp8_, &_tmp9_); -#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp9_, &_inner_error_); -#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _tmp10_; -#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp7_); -#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp11_; -#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 13732 "EditingTools.c" - goto __catch26_g_error; - } -#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _tmp4_; -#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = NULL; -#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->current_pixbuf); -#line 1992 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->current_pixbuf = _tmp12_; -#line 1991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp4_); -#line 13745 "EditingTools.c" - } - goto __finally26; - __catch26_g_error: - { - GError* err = NULL; - GError* _tmp13_; - const gchar* _tmp14_; -#line 1991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - err = _inner_error_; -#line 1991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _inner_error_ = NULL; -#line 1994 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = err; -#line 1994 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = _tmp13_->message; -#line 1994 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_warning ("EditingTools.vala:1994: %s", _tmp14_); -#line 1995 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_ABORTED_SIGNAL], 0); -#line 1997 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_error_free0 (err); -#line 1997 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 13769 "EditingTools.c" - } - __finally26: -#line 1991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_clear_error (&_inner_error_); -#line 1991 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 13780 "EditingTools.c" - } -#line 2000 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2000 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_repaint (_tmp15_); -#line 13786 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_on_close (EditingToolsRedeyeTool* self) -{ - GdkPixbuf* _tmp0_; - EditingToolsPhotoCanvas* _tmp1_; - Photo* _tmp2_; - Photo* _tmp3_; - Dimensions _tmp4_ = {0}; -#line 2003 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self)); -#line 2004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->current_pixbuf; -#line 2004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = editing_tools_photo_canvas_get_photo (_tmp1_); -#line 2004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_; -#line 2004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp4_); -#line 2004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_APPLIED_SIGNAL], 0, NULL, _tmp0_, &_tmp4_, FALSE); -#line 2004 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp3_); -#line 13814 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_on_canvas_resize (EditingToolsRedeyeTool* self) -{ - GdkRectangle scaled_pixbuf_position = {0}; - EditingToolsPhotoCanvas* _tmp0_; - GdkRectangle _tmp1_ = {0}; - gint _tmp2_; - GdkRectangle _tmp3_; - gint _tmp4_; - gint _tmp5_; - GdkRectangle _tmp6_; - gint _tmp7_; - gdouble scale_factor = 0.0; - GdkRectangle _tmp8_; - gint _tmp9_; - GdkRectangle _tmp10_; - gint _tmp11_; - EditingToolsRedeyeInstance _tmp12_; - GdkPoint _tmp13_; - gint _tmp14_; - EditingToolsRedeyeInstance _tmp15_; - GdkPoint _tmp16_; - gint _tmp17_; - gint _tmp18_; - GdkRectangle _tmp19_; - gint _tmp20_; - gint _tmp21_; - GdkRectangle _tmp22_; - gint _tmp23_; - GdkRectangle _tmp24_; -#line 2007 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self)); -#line 2008 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2008 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp0_, &_tmp1_); -#line 2008 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - scaled_pixbuf_position = _tmp1_; -#line 2011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->user_interaction_instance.center.x; -#line 2011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->old_scaled_pixbuf_position; -#line 2011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_.x; -#line 2011 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->user_interaction_instance.center.x = _tmp2_ - _tmp4_; -#line 2012 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = self->priv->user_interaction_instance.center.y; -#line 2012 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = self->priv->old_scaled_pixbuf_position; -#line 2012 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_.y; -#line 2012 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->user_interaction_instance.center.y = _tmp5_ - _tmp7_; -#line 2014 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = scaled_pixbuf_position; -#line 2014 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = _tmp8_.width; -#line 2014 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = self->priv->old_scaled_pixbuf_position; -#line 2014 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _tmp10_.width; -#line 2014 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - scale_factor = ((gdouble) _tmp9_) / ((gdouble) _tmp11_); -#line 2017 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = self->priv->user_interaction_instance; -#line 2017 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_.center; -#line 2017 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = _tmp13_.x; -#line 2017 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->user_interaction_instance.center.x = (gint) ((((gdouble) _tmp14_) * scale_factor) + 0.5); -#line 2020 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = self->priv->user_interaction_instance; -#line 2020 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = _tmp15_.center; -#line 2020 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = _tmp16_.y; -#line 2020 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->user_interaction_instance.center.y = (gint) ((((gdouble) _tmp17_) * scale_factor) + 0.5); -#line 2024 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = self->priv->user_interaction_instance.center.x; -#line 2024 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = scaled_pixbuf_position; -#line 2024 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = _tmp19_.x; -#line 2024 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->user_interaction_instance.center.x = _tmp18_ + _tmp20_; -#line 2025 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = self->priv->user_interaction_instance.center.y; -#line 2025 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = scaled_pixbuf_position; -#line 2025 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = _tmp22_.y; -#line 2025 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->user_interaction_instance.center.y = _tmp21_ + _tmp23_; -#line 2027 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = scaled_pixbuf_position; -#line 2027 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->old_scaled_pixbuf_position = _tmp24_; -#line 2029 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->current_pixbuf); -#line 2029 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->current_pixbuf = NULL; -#line 13922 "EditingTools.c" -} - - -static void -_editing_tools_redeye_tool_on_photos_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 2053 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_tool_on_photos_altered ((EditingToolsRedeyeTool*) self, items); -#line 13933 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_real_activate (EditingToolsEditingTool* base, - EditingToolsPhotoCanvas* canvas) -{ - EditingToolsRedeyeTool * self; - EditingToolsRedeyeInstance _tmp0_ = {0}; - cairo_t* _tmp1_; - cairo_t* _tmp2_; - Dimensions _tmp3_ = {0}; - GdkRectangle _tmp4_ = {0}; - GdkPixbuf* _tmp5_; - GtkWindow* _tmp6_; - GtkWindow* _tmp7_; - EditingToolsRedeyeToolRedeyeToolWindow* _tmp8_; - EditingToolsRedeyeToolRedeyeToolWindow* _tmp9_; - GtkScale* _tmp10_; - EditingToolsRedeyeInstance _tmp11_; - gint _tmp12_; - GdkDisplay* display = NULL; - GdkWindow* _tmp13_; - GdkWindow* _tmp14_; - GdkDisplay* _tmp15_; - GdkDisplay* _tmp16_; - GdkDisplay* _tmp17_; - GdkDisplay* _tmp18_; - GdkCursor* _tmp19_; - GdkDisplay* _tmp20_; - GdkCursor* _tmp21_; - DataCollection* owner = NULL; - Photo* _tmp22_; - Photo* _tmp23_; - DataCollection* _tmp24_; - DataCollection* _tmp25_; - DataCollection* _tmp26_; -#line 2032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool); -#line 2032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas)); -#line 2033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_tool_new_interaction_instance (self, canvas, &_tmp0_); -#line 2033 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->user_interaction_instance = _tmp0_; -#line 2035 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = editing_tools_photo_canvas_get_default_ctx (canvas); -#line 2035 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_; -#line 2035 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_surface_dim (canvas, &_tmp3_); -#line 2035 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_tool_prepare_ctx (self, _tmp2_, &_tmp3_); -#line 2035 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (_tmp2_); -#line 2037 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_tool_bind_canvas_handlers (self, canvas); -#line 2039 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (canvas, &_tmp4_); -#line 2039 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->old_scaled_pixbuf_position = _tmp4_; -#line 2040 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = editing_tools_photo_canvas_get_scaled_pixbuf (canvas); -#line 2040 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->current_pixbuf); -#line 2040 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->current_pixbuf = _tmp5_; -#line 2042 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = editing_tools_photo_canvas_get_container (canvas); -#line 2042 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_; -#line 2042 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = editing_tools_redeye_tool_redeye_tool_window_new (_tmp7_); -#line 2042 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp8_); -#line 2042 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->redeye_tool_window); -#line 2042 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->redeye_tool_window = _tmp8_; -#line 2042 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp7_); -#line 2043 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->redeye_tool_window; -#line 2043 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_->slider; -#line 2043 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = self->priv->user_interaction_instance; -#line 2043 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _tmp11_.radius; -#line 2043 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_range_get_type (), GtkRange), (gdouble) _tmp12_); -#line 2045 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_tool_bind_window_handlers (self); -#line 2047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = editing_tools_photo_canvas_get_drawing_window (canvas); -#line 2047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = _tmp13_; -#line 2047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = gdk_window_get_display (_tmp14_); -#line 2047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = _g_object_ref0 (_tmp15_); -#line 2047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = _tmp16_; -#line 2047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp14_); -#line 2047 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - display = _tmp17_; -#line 2048 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = display; -#line 2048 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = gdk_cursor_new_for_display (_tmp18_, GDK_LEFT_PTR); -#line 2048 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->cached_arrow_cursor); -#line 2048 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->cached_arrow_cursor = _tmp19_; -#line 2049 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = display; -#line 2049 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = gdk_cursor_new_for_display (_tmp20_, GDK_FLEUR); -#line 2049 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->cached_grab_cursor); -#line 2049 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->cached_grab_cursor = _tmp21_; -#line 2051 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = editing_tools_photo_canvas_get_photo (canvas); -#line 2051 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = _tmp22_; -#line 2051 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_DATA_OBJECT, DataObject)); -#line 2051 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = _tmp24_; -#line 2051 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp23_); -#line 2051 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - owner = _tmp25_; -#line 2052 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = owner; -#line 2052 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp26_ != NULL) { -#line 14073 "EditingTools.c" - DataCollection* _tmp27_; -#line 2053 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = owner; -#line 2053 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (_tmp27_, "items-altered", (GCallback) _editing_tools_redeye_tool_on_photos_altered_data_collection_items_altered, self); -#line 14079 "EditingTools.c" - } -#line 2055 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_redeye_tool_parent_class)->activate (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), canvas); -#line 2032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _data_collection_unref0 (owner); -#line 2032 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (display); -#line 14087 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_real_deactivate (EditingToolsEditingTool* base) -{ - EditingToolsRedeyeTool * self; - EditingToolsPhotoCanvas* _tmp0_; - EditingToolsRedeyeToolRedeyeToolWindow* _tmp10_; -#line 2058 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool); -#line 2059 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2059 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ != NULL) { -#line 14103 "EditingTools.c" - DataCollection* owner = NULL; - EditingToolsPhotoCanvas* _tmp1_; - Photo* _tmp2_; - Photo* _tmp3_; - DataCollection* _tmp4_; - DataCollection* _tmp5_; - DataCollection* _tmp6_; - EditingToolsPhotoCanvas* _tmp9_; -#line 2060 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2060 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = editing_tools_photo_canvas_get_photo (_tmp1_); -#line 2060 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_; -#line 2060 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_OBJECT, DataObject)); -#line 2060 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_; -#line 2060 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp3_); -#line 2060 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - owner = _tmp5_; -#line 2061 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = owner; -#line 2061 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp6_ != NULL) { -#line 14130 "EditingTools.c" - DataCollection* _tmp7_; - guint _tmp8_; -#line 2062 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = owner; -#line 2062 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp8_, NULL, FALSE); -#line 2062 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (_tmp7_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _editing_tools_redeye_tool_on_photos_altered_data_collection_items_altered, self); -#line 14139 "EditingTools.c" - } -#line 2064 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2064 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_tool_unbind_canvas_handlers (self, _tmp9_); -#line 2059 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _data_collection_unref0 (owner); -#line 14147 "EditingTools.c" - } -#line 2067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = self->priv->redeye_tool_window; -#line 2067 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp10_ != NULL) { -#line 14153 "EditingTools.c" - EditingToolsRedeyeToolRedeyeToolWindow* _tmp11_; - EditingToolsRedeyeToolRedeyeToolWindow* _tmp12_; -#line 2068 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_tool_unbind_window_handlers (self); -#line 2069 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = self->priv->redeye_tool_window; -#line 2069 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget)); -#line 2070 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = self->priv->redeye_tool_window; -#line 2070 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget)); -#line 2071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->redeye_tool_window); -#line 2071 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->redeye_tool_window = NULL; -#line 14170 "EditingTools.c" - } -#line 2074 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_redeye_tool_parent_class)->deactivate (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)); -#line 14174 "EditingTools.c" -} - - -static void -_editing_tools_redeye_tool_prepare_ctx_editing_tools_photo_canvas_new_surface (EditingToolsPhotoCanvas* _sender, - cairo_t* ctx, - Dimensions* dim, - gpointer self) -{ -#line 2078 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_tool_prepare_ctx ((EditingToolsRedeyeTool*) self, ctx, dim); -#line 14186 "EditingTools.c" -} - - -static void -_editing_tools_redeye_tool_on_canvas_resize_editing_tools_photo_canvas_resized_scaled_pixbuf (EditingToolsPhotoCanvas* _sender, - Dimensions* old_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position, - gpointer self) -{ -#line 2079 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_tool_on_canvas_resize ((EditingToolsRedeyeTool*) self); -#line 14199 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_bind_canvas_handlers (EditingToolsRedeyeTool* self, - EditingToolsPhotoCanvas* canvas) -{ -#line 2077 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self)); -#line 2077 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas)); -#line 2078 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (canvas, "new-surface", (GCallback) _editing_tools_redeye_tool_prepare_ctx_editing_tools_photo_canvas_new_surface, self); -#line 2079 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (canvas, "resized-scaled-pixbuf", (GCallback) _editing_tools_redeye_tool_on_canvas_resize_editing_tools_photo_canvas_resized_scaled_pixbuf, self); -#line 14215 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_unbind_canvas_handlers (EditingToolsRedeyeTool* self, - EditingToolsPhotoCanvas* canvas) -{ - guint _tmp0_; - guint _tmp1_; -#line 2082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self)); -#line 2082 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas)); -#line 2083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("new-surface", EDITING_TOOLS_TYPE_PHOTO_CANVAS, &_tmp0_, NULL, FALSE); -#line 2083 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (canvas, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _editing_tools_redeye_tool_prepare_ctx_editing_tools_photo_canvas_new_surface, self); -#line 2084 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("resized-scaled-pixbuf", EDITING_TOOLS_TYPE_PHOTO_CANVAS, &_tmp1_, NULL, FALSE); -#line 2084 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (canvas, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _editing_tools_redeye_tool_on_canvas_resize_editing_tools_photo_canvas_resized_scaled_pixbuf, self); -#line 14237 "EditingTools.c" -} - - -static void -_editing_tools_redeye_tool_on_apply_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 2088 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_tool_on_apply ((EditingToolsRedeyeTool*) self); -#line 14247 "EditingTools.c" -} - - -static void -_editing_tools_redeye_tool_on_close_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 2089 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_tool_on_close ((EditingToolsRedeyeTool*) self); -#line 14257 "EditingTools.c" -} - - -static gboolean -_editing_tools_redeye_tool_on_size_slider_adjust_gtk_range_change_value (GtkRange* _sender, - GtkScrollType scroll, - gdouble new_value, - gpointer self) -{ - gboolean result; - result = editing_tools_redeye_tool_on_size_slider_adjust ((EditingToolsRedeyeTool*) self, scroll); -#line 2090 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 14271 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_bind_window_handlers (EditingToolsRedeyeTool* self) -{ - EditingToolsRedeyeToolRedeyeToolWindow* _tmp0_; - GtkButton* _tmp1_; - EditingToolsRedeyeToolRedeyeToolWindow* _tmp2_; - GtkButton* _tmp3_; - EditingToolsRedeyeToolRedeyeToolWindow* _tmp4_; - GtkScale* _tmp5_; -#line 2087 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self)); -#line 2088 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->redeye_tool_window; -#line 2088 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_->apply_button; -#line 2088 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (_tmp1_, "clicked", (GCallback) _editing_tools_redeye_tool_on_apply_gtk_button_clicked, self); -#line 2089 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->redeye_tool_window; -#line 2089 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_->close_button; -#line 2089 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (_tmp3_, "clicked", (GCallback) _editing_tools_redeye_tool_on_close_gtk_button_clicked, self); -#line 2090 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->redeye_tool_window; -#line 2090 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_->slider; -#line 2090 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_range_get_type (), GtkRange), "change-value", (GCallback) _editing_tools_redeye_tool_on_size_slider_adjust_gtk_range_change_value, self); -#line 14304 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_unbind_window_handlers (EditingToolsRedeyeTool* self) -{ - EditingToolsRedeyeToolRedeyeToolWindow* _tmp0_; - GtkButton* _tmp1_; - guint _tmp2_; - EditingToolsRedeyeToolRedeyeToolWindow* _tmp3_; - GtkButton* _tmp4_; - guint _tmp5_; - EditingToolsRedeyeToolRedeyeToolWindow* _tmp6_; - GtkScale* _tmp7_; - guint _tmp8_; -#line 2093 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_REDEYE_TOOL (self)); -#line 2094 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->redeye_tool_window; -#line 2094 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_->apply_button; -#line 2094 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp2_, NULL, FALSE); -#line 2094 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _editing_tools_redeye_tool_on_apply_gtk_button_clicked, self); -#line 2095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->redeye_tool_window; -#line 2095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_->close_button; -#line 2095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp5_, NULL, FALSE); -#line 2095 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _editing_tools_redeye_tool_on_close_gtk_button_clicked, self); -#line 2096 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = self->priv->redeye_tool_window; -#line 2096 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_->slider; -#line 2096 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("change-value", gtk_range_get_type (), &_tmp8_, NULL, FALSE); -#line 2096 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _editing_tools_redeye_tool_on_size_slider_adjust_gtk_range_change_value, self); -#line 14346 "EditingTools.c" -} - - -static EditingToolsEditingToolWindow* -editing_tools_redeye_tool_real_get_tool_window (EditingToolsEditingTool* base) -{ - EditingToolsRedeyeTool * self; - EditingToolsEditingToolWindow* result = NULL; - EditingToolsRedeyeToolRedeyeToolWindow* _tmp0_; - EditingToolsEditingToolWindow* _tmp1_; -#line 2099 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool); -#line 2100 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->redeye_tool_window; -#line 2100 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow)); -#line 2100 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp1_; -#line 2100 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 14367 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_real_paint (EditingToolsEditingTool* base, - cairo_t* ctx) -{ - EditingToolsRedeyeTool * self; - GdkPixbuf* _tmp0_ = NULL; - GdkPixbuf* _tmp1_; - EditingToolsPhotoCanvas* _tmp6_; - EditingToolsRedeyeInstance active_inst = {0}; - EditingToolsRedeyeInstance _tmp7_; - EditingToolsPhotoCanvas* _tmp8_; - EditingToolsRedeyeInstance _tmp9_; - GdkPoint _tmp10_; - GdkPoint _tmp11_ = {0}; - EditingToolsRedeyeInstance _tmp12_; -#line 2103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool); -#line 2103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (ctx != NULL); -#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->current_pixbuf; -#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp1_ != NULL) { -#line 14394 "EditingTools.c" - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; -#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->current_pixbuf; -#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp0_); -#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = _tmp3_; -#line 14405 "EditingTools.c" - } else { - EditingToolsPhotoCanvas* _tmp4_; - GdkPixbuf* _tmp5_; -#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = editing_tools_photo_canvas_get_scaled_pixbuf (_tmp4_); -#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp0_); -#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = _tmp5_; -#line 14417 "EditingTools.c" - } -#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2104 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_paint_pixbuf (_tmp6_, _tmp0_); -#line 2108 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = self->priv->user_interaction_instance; -#line 2108 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - active_inst = _tmp7_; -#line 2109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->user_interaction_instance; -#line 2109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_.center; -#line 2109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_user_to_active_point (_tmp8_, &_tmp10_, &_tmp11_); -#line 2109 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - active_inst.center = _tmp11_; -#line 2111 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = active_inst; -#line 2111 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_tool_draw_redeye_instance (self, &_tmp12_); -#line 2103 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp0_); -#line 14443 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_real_on_left_click (EditingToolsEditingTool* base, - gint x, - gint y) -{ - EditingToolsRedeyeTool * self; - GdkRectangle bounds_rect = {0}; - EditingToolsRedeyeInstance _tmp0_; - GdkRectangle _tmp1_ = {0}; - GdkRectangle _tmp2_; -#line 2114 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool); -#line 2115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->user_interaction_instance; -#line 2115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_instance_to_bounds_rect (&_tmp0_, &_tmp1_); -#line 2115 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bounds_rect = _tmp1_; -#line 2118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = bounds_rect; -#line 2118 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (coord_in_rectangle (x, y, &_tmp2_)) { -#line 14469 "EditingTools.c" - EditingToolsRedeyeInstance _tmp3_; - GdkPoint _tmp4_; -#line 2119 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->is_reticle_move_in_progress = TRUE; -#line 2120 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->reticle_move_mouse_start_point.x = x; -#line 2121 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->reticle_move_mouse_start_point.y = y; -#line 2122 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->user_interaction_instance; -#line 2122 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_.center; -#line 2122 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->reticle_move_anchor = _tmp4_; -#line 14484 "EditingTools.c" - } -} - - -static void -editing_tools_redeye_tool_real_on_left_released (EditingToolsEditingTool* base, - gint x, - gint y) -{ - EditingToolsRedeyeTool * self; -#line 2126 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool); -#line 2127 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->is_reticle_move_in_progress = FALSE; -#line 14499 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_real_on_motion (EditingToolsEditingTool* base, - gint x, - gint y, - GdkModifierType mask) -{ - EditingToolsRedeyeTool * self; - gboolean _tmp0_; -#line 2130 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool); -#line 2131 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->is_reticle_move_in_progress; -#line 2131 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_) { -#line 14517 "EditingTools.c" - GdkRectangle active_region_rect = {0}; - EditingToolsPhotoCanvas* _tmp1_; - GdkRectangle _tmp2_ = {0}; - gint x_clamp_low = 0; - GdkRectangle _tmp3_; - gint _tmp4_; - EditingToolsRedeyeInstance _tmp5_; - gint _tmp6_; - gint y_clamp_low = 0; - GdkRectangle _tmp7_; - gint _tmp8_; - EditingToolsRedeyeInstance _tmp9_; - gint _tmp10_; - gint x_clamp_high = 0; - GdkRectangle _tmp11_; - gint _tmp12_; - GdkRectangle _tmp13_; - gint _tmp14_; - EditingToolsRedeyeInstance _tmp15_; - gint _tmp16_; - gint y_clamp_high = 0; - GdkRectangle _tmp17_; - gint _tmp18_; - GdkRectangle _tmp19_; - gint _tmp20_; - EditingToolsRedeyeInstance _tmp21_; - gint _tmp22_; - gint delta_x = 0; - GdkPoint _tmp23_; - gint _tmp24_; - gint delta_y = 0; - GdkPoint _tmp25_; - gint _tmp26_; - GdkPoint _tmp27_; - gint _tmp28_; - gint _tmp29_; - GdkPoint _tmp30_; - gint _tmp31_; - gint _tmp32_; - GdkPoint _tmp33_; - gint _tmp34_; - gint _tmp35_; - gint _tmp36_; - gint _tmp37_; - GdkPoint _tmp38_; - gint _tmp39_; - gint _tmp40_; - gint _tmp41_; - gint _tmp42_; - EditingToolsPhotoCanvas* _tmp43_; -#line 2133 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2133 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_get_scaled_pixbuf_position (_tmp1_, &_tmp2_); -#line 2133 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - active_region_rect = _tmp2_; -#line 2136 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = active_region_rect; -#line 2136 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_.x; -#line 2136 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = self->priv->user_interaction_instance; -#line 2136 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_.radius; -#line 2136 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - x_clamp_low = (_tmp4_ + _tmp6_) + 1; -#line 2138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = active_region_rect; -#line 2138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = _tmp7_.y; -#line 2138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->user_interaction_instance; -#line 2138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_.radius; -#line 2138 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - y_clamp_low = (_tmp8_ + _tmp10_) + 1; -#line 2140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = active_region_rect; -#line 2140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _tmp11_.x; -#line 2140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = active_region_rect; -#line 2140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = _tmp13_.width; -#line 2140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = self->priv->user_interaction_instance; -#line 2140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = _tmp15_.radius; -#line 2140 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - x_clamp_high = ((_tmp12_ + _tmp14_) - _tmp16_) - 1; -#line 2143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = active_region_rect; -#line 2143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = _tmp17_.y; -#line 2143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = active_region_rect; -#line 2143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = _tmp19_.height; -#line 2143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = self->priv->user_interaction_instance; -#line 2143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = _tmp21_.radius; -#line 2143 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - y_clamp_high = ((_tmp18_ + _tmp20_) - _tmp22_) - 1; -#line 2147 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = self->priv->reticle_move_mouse_start_point; -#line 2147 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = _tmp23_.x; -#line 2147 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - delta_x = x - _tmp24_; -#line 2148 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = self->priv->reticle_move_mouse_start_point; -#line 2148 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = _tmp25_.y; -#line 2148 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - delta_y = y - _tmp26_; -#line 2150 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = self->priv->reticle_move_anchor; -#line 2150 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = _tmp27_.x; -#line 2150 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29_ = delta_x; -#line 2150 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->user_interaction_instance.center.x = _tmp28_ + _tmp29_; -#line 2152 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp30_ = self->priv->reticle_move_anchor; -#line 2152 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp31_ = _tmp30_.y; -#line 2152 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp32_ = delta_y; -#line 2152 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->user_interaction_instance.center.y = _tmp31_ + _tmp32_; -#line 2155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33_ = self->priv->reticle_move_anchor; -#line 2155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp34_ = _tmp33_.x; -#line 2155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp35_ = delta_x; -#line 2155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp36_ = x_clamp_low; -#line 2155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp37_ = x_clamp_high; -#line 2155 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->user_interaction_instance.center.x = CLAMP (_tmp34_ + _tmp35_, _tmp36_, _tmp37_); -#line 2158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp38_ = self->priv->reticle_move_anchor; -#line 2158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp39_ = _tmp38_.y; -#line 2158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp40_ = delta_y; -#line 2158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp41_ = y_clamp_low; -#line 2158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp42_ = y_clamp_high; -#line 2158 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->user_interaction_instance.center.y = CLAMP (_tmp39_ + _tmp40_, _tmp41_, _tmp42_); -#line 2162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp43_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2162 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_repaint (_tmp43_); -#line 14678 "EditingTools.c" - } else { - GdkRectangle bounds = {0}; - EditingToolsRedeyeInstance _tmp44_; - GdkRectangle _tmp45_ = {0}; - GdkRectangle _tmp46_; -#line 2164 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp44_ = self->priv->user_interaction_instance; -#line 2164 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_instance_to_bounds_rect (&_tmp44_, &_tmp45_); -#line 2164 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - bounds = _tmp45_; -#line 2167 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp46_ = bounds; -#line 2167 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (coord_in_rectangle (x, y, &_tmp46_)) { -#line 14694 "EditingTools.c" - EditingToolsPhotoCanvas* _tmp47_; - GdkWindow* _tmp48_; - GdkWindow* _tmp49_; - GdkCursor* _tmp50_; -#line 2168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp47_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp48_ = editing_tools_photo_canvas_get_drawing_window (_tmp47_); -#line 2168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp49_ = _tmp48_; -#line 2168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp50_ = self->priv->cached_grab_cursor; -#line 2168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gdk_window_set_cursor (_tmp49_, _tmp50_); -#line 2168 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp49_); -#line 14711 "EditingTools.c" - } else { - EditingToolsPhotoCanvas* _tmp51_; - GdkWindow* _tmp52_; - GdkWindow* _tmp53_; - GdkCursor* _tmp54_; -#line 2170 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp51_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2170 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp52_ = editing_tools_photo_canvas_get_drawing_window (_tmp51_); -#line 2170 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp53_ = _tmp52_; -#line 2170 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp54_ = self->priv->cached_arrow_cursor; -#line 2170 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gdk_window_set_cursor (_tmp53_, _tmp54_); -#line 2170 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp53_); -#line 14729 "EditingTools.c" - } - } -} - - -static gboolean -editing_tools_redeye_tool_real_on_keypress (EditingToolsEditingTool* base, - GdkEventKey* event) -{ - EditingToolsRedeyeTool * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - guint _tmp2_; - const gchar* _tmp3_; -#line 2175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool); -#line 2175 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 2176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = event->keyval; -#line 2176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = gdk_keyval_name (_tmp2_); -#line 2176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (g_strcmp0 (_tmp3_, "KP_Enter") == 0) { -#line 2176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = TRUE; -#line 14757 "EditingTools.c" - } else { - guint _tmp4_; - const gchar* _tmp5_; -#line 2177 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = event->keyval; -#line 2177 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = gdk_keyval_name (_tmp4_); -#line 2177 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = g_strcmp0 (_tmp5_, "Enter") == 0; -#line 14767 "EditingTools.c" - } -#line 2176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp1_) { -#line 2176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = TRUE; -#line 14773 "EditingTools.c" - } else { - guint _tmp6_; - const gchar* _tmp7_; -#line 2178 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = event->keyval; -#line 2178 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = gdk_keyval_name (_tmp6_); -#line 2178 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = g_strcmp0 (_tmp7_, "Return") == 0; -#line 14783 "EditingTools.c" - } -#line 2176 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_) { -#line 2179 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_tool_on_close (self); -#line 2180 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = TRUE; -#line 2180 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 14793 "EditingTools.c" - } -#line 2183 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_redeye_tool_parent_class)->on_keypress (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), event); -#line 2183 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 14799 "EditingTools.c" -} - - -static EditingToolsRedeyeToolRedeyeToolWindow* -editing_tools_redeye_tool_redeye_tool_window_construct (GType object_type, - GtkWindow* container) -{ - EditingToolsRedeyeToolRedeyeToolWindow * self = NULL; - GtkScale* _tmp0_; - GtkScale* _tmp1_; - GtkButton* _tmp2_; - GtkButton* _tmp3_; - GtkButton* _tmp4_; - GtkButton* _tmp5_; - GtkBox* layout = NULL; - GtkBox* _tmp6_; - GtkLabel* _tmp7_; - GtkScale* _tmp8_; - GtkButton* _tmp9_; - GtkButton* _tmp10_; -#line 1867 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (GTK_IS_WINDOW (container), NULL); -#line 1868 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = (EditingToolsRedeyeToolRedeyeToolWindow*) editing_tools_editing_tool_window_construct (object_type, container); -#line 1870 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->slider; -#line 1870 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), 80, -1); -#line 1871 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->slider; -#line 1871 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_scale_set_draw_value (_tmp1_, FALSE); -#line 1873 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->close_button; -#line 1873 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), _ ("Close the red-eye tool")); -#line 1874 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->close_button; -#line 1874 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_button_set_image_position (_tmp3_, GTK_POS_LEFT); -#line 1876 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->apply_button; -#line 1876 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), _ ("Remove any red-eye effects in the selected region")); -#line 1877 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = self->apply_button; -#line 1877 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_button_set_image_position (_tmp5_, GTK_POS_LEFT); -#line 1879 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_CONTROL_SPACING); -#line 1879 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp6_); -#line 1879 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - layout = _tmp6_; -#line 1880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = self->priv->slider_label; -#line 1880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (layout, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget)); -#line 1881 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = self->slider; -#line 1881 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (layout, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget)); -#line 1882 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->close_button; -#line 1882 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (layout, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget)); -#line 1883 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = self->apply_button; -#line 1883 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (layout, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget)); -#line 1885 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (layout, gtk_widget_get_type (), GtkWidget)); -#line 1867 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (layout); -#line 1867 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self; -#line 14876 "EditingTools.c" -} - - -static EditingToolsRedeyeToolRedeyeToolWindow* -editing_tools_redeye_tool_redeye_tool_window_new (GtkWindow* container) -{ -#line 1867 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return editing_tools_redeye_tool_redeye_tool_window_construct (EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW, container); -#line 14885 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_redeye_tool_window_class_init (EditingToolsRedeyeToolRedeyeToolWindowClass * klass) -{ -#line 1855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_tool_redeye_tool_window_parent_class = g_type_class_peek_parent (klass); -#line 1855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_type_class_add_private (klass, sizeof (EditingToolsRedeyeToolRedeyeToolWindowPrivate)); -#line 1855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_OBJECT_CLASS (klass)->finalize = editing_tools_redeye_tool_redeye_tool_window_finalize; -#line 14898 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_redeye_tool_window_instance_init (EditingToolsRedeyeToolRedeyeToolWindow * self) -{ - GtkLabel* _tmp0_; - GtkButton* _tmp1_; - GtkButton* _tmp2_; - GtkScale* _tmp3_; -#line 1855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv = EDITING_TOOLS_REDEYE_TOOL_REDEYE_TOOL_WINDOW_GET_PRIVATE (self); -#line 1858 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = (GtkLabel*) gtk_label_new_with_mnemonic (_ ("Size:")); -#line 1858 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp0_); -#line 1858 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->slider_label = _tmp0_; -#line 1860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = (GtkButton*) gtk_button_new_with_mnemonic (RESOURCES_APPLY_LABEL); -#line 1860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp1_); -#line 1860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->apply_button = _tmp1_; -#line 1862 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = (GtkButton*) gtk_button_new_with_mnemonic (RESOURCES_CANCEL_LABEL); -#line 1862 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp2_); -#line 1862 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->close_button = _tmp2_; -#line 1864 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) EDITING_TOOLS_REDEYE_INSTANCE_MIN_RADIUS, (gdouble) EDITING_TOOLS_REDEYE_INSTANCE_MAX_RADIUS, 1.0); -#line 1864 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp3_); -#line 1864 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->slider = _tmp3_; -#line 14935 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_redeye_tool_window_finalize (GObject * obj) -{ - EditingToolsRedeyeToolRedeyeToolWindow * self; -#line 1855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_REDEYE_TOOL_TYPE_REDEYE_TOOL_WINDOW, EditingToolsRedeyeToolRedeyeToolWindow); -#line 1858 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->slider_label); -#line 1860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->apply_button); -#line 1862 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->close_button); -#line 1864 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->slider); -#line 1855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_OBJECT_CLASS (editing_tools_redeye_tool_redeye_tool_window_parent_class)->finalize (obj); -#line 14955 "EditingTools.c" -} - - -static GType -editing_tools_redeye_tool_redeye_tool_window_get_type (void) -{ - static volatile gsize editing_tools_redeye_tool_redeye_tool_window_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_redeye_tool_redeye_tool_window_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditingToolsRedeyeToolRedeyeToolWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_redeye_tool_redeye_tool_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsRedeyeToolRedeyeToolWindow), 0, (GInstanceInitFunc) editing_tools_redeye_tool_redeye_tool_window_instance_init, NULL }; - GType editing_tools_redeye_tool_redeye_tool_window_type_id; - editing_tools_redeye_tool_redeye_tool_window_type_id = g_type_register_static (EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, "EditingToolsRedeyeToolRedeyeToolWindow", &g_define_type_info, 0); - g_once_init_leave (&editing_tools_redeye_tool_redeye_tool_window_type_id__volatile, editing_tools_redeye_tool_redeye_tool_window_type_id); - } - return editing_tools_redeye_tool_redeye_tool_window_type_id__volatile; -} - - -static void -editing_tools_redeye_tool_class_init (EditingToolsRedeyeToolClass * klass) -{ -#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_redeye_tool_parent_class = g_type_class_peek_parent (klass); -#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->finalize = editing_tools_redeye_tool_finalize; -#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_type_class_add_private (klass, sizeof (EditingToolsRedeyeToolPrivate)); -#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->activate = (void (*) (EditingToolsEditingTool *, EditingToolsPhotoCanvas*)) editing_tools_redeye_tool_real_activate; -#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->deactivate = (void (*) (EditingToolsEditingTool *)) editing_tools_redeye_tool_real_deactivate; -#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->get_tool_window = (EditingToolsEditingToolWindow* (*) (EditingToolsEditingTool *)) editing_tools_redeye_tool_real_get_tool_window; -#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->paint = (void (*) (EditingToolsEditingTool *, cairo_t*)) editing_tools_redeye_tool_real_paint; -#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->on_left_click = (void (*) (EditingToolsEditingTool *, gint, gint)) editing_tools_redeye_tool_real_on_left_click; -#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->on_left_released = (void (*) (EditingToolsEditingTool *, gint, gint)) editing_tools_redeye_tool_real_on_left_released; -#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->on_motion = (void (*) (EditingToolsEditingTool *, gint, gint, GdkModifierType)) editing_tools_redeye_tool_real_on_motion; -#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->on_keypress = (gboolean (*) (EditingToolsEditingTool *, GdkEventKey*)) editing_tools_redeye_tool_real_on_keypress; -#line 14998 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_instance_init (EditingToolsRedeyeTool * self) -{ -#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv = EDITING_TOOLS_REDEYE_TOOL_GET_PRIVATE (self); -#line 1889 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->thin_white_ctx = NULL; -#line 1890 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->wider_gray_ctx = NULL; -#line 1891 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->redeye_tool_window = NULL; -#line 1893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->is_reticle_move_in_progress = FALSE; -#line 1899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->current_pixbuf = NULL; -#line 15017 "EditingTools.c" -} - - -static void -editing_tools_redeye_tool_finalize (EditingToolsEditingTool * obj) -{ - EditingToolsRedeyeTool * self; -#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_TYPE_REDEYE_TOOL, EditingToolsRedeyeTool); -#line 1889 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (self->priv->thin_white_ctx); -#line 1890 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _cairo_destroy0 (self->priv->wider_gray_ctx); -#line 1891 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->redeye_tool_window); -#line 1896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->cached_arrow_cursor); -#line 1897 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->cached_grab_cursor); -#line 1899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->current_pixbuf); -#line 1854 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_redeye_tool_parent_class)->finalize (obj); -#line 15041 "EditingTools.c" -} - - -GType -editing_tools_redeye_tool_get_type (void) -{ - static volatile gsize editing_tools_redeye_tool_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_redeye_tool_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditingToolsRedeyeToolClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_redeye_tool_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsRedeyeTool), 0, (GInstanceInitFunc) editing_tools_redeye_tool_instance_init, NULL }; - GType editing_tools_redeye_tool_type_id; - editing_tools_redeye_tool_type_id = g_type_register_static (EDITING_TOOLS_TYPE_EDITING_TOOL, "EditingToolsRedeyeTool", &g_define_type_info, 0); - g_once_init_leave (&editing_tools_redeye_tool_type_id__volatile, editing_tools_redeye_tool_type_id); - } - return editing_tools_redeye_tool_type_id__volatile; -} - - -static EditingToolsAdjustTool* -editing_tools_adjust_tool_construct (GType object_type) -{ - EditingToolsAdjustTool* self = NULL; -#line 2501 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = (EditingToolsAdjustTool*) editing_tools_editing_tool_construct (object_type, "AdjustTool"); -#line 2500 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self; -#line 15067 "EditingTools.c" -} - - -static EditingToolsAdjustTool* -editing_tools_adjust_tool_new (void) -{ -#line 2500 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return editing_tools_adjust_tool_construct (EDITING_TOOLS_TYPE_ADJUST_TOOL); -#line 15076 "EditingTools.c" -} - - -EditingToolsAdjustTool* -editing_tools_adjust_tool_factory (void) -{ - EditingToolsAdjustTool* result = NULL; - EditingToolsAdjustTool* _tmp0_; -#line 2505 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = editing_tools_adjust_tool_new (); -#line 2505 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp0_; -#line 2505 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 15091 "EditingTools.c" -} - - -gboolean -editing_tools_adjust_tool_is_available (Photo* photo, - Scaling* scaling) -{ - gboolean result = FALSE; -#line 2508 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (IS_PHOTO (photo), FALSE); -#line 2508 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (scaling != NULL, FALSE); -#line 2509 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = TRUE; -#line 2509 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 15108 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_photos_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 2598 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_photos_altered ((EditingToolsAdjustTool*) self, items); -#line 15119 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_real_activate (EditingToolsEditingTool* base, - EditingToolsPhotoCanvas* canvas) -{ - EditingToolsAdjustTool * self; - GtkWindow* _tmp0_; - GtkWindow* _tmp1_; - EditingToolsAdjustToolAdjustToolWindow* _tmp2_; - Photo* photo = NULL; - Photo* _tmp3_; - Photo* _tmp4_; - PixelTransformationBundle* _tmp5_; - PixelTransformationBundle* _tmp6_; - PixelTransformer* _tmp7_; - PixelTransformer* _tmp8_; - ExpansionTransformation* expansion_trans = NULL; - PixelTransformationBundle* _tmp9_; - PixelTransformation* _tmp10_; - EditingToolsAdjustToolAdjustToolWindow* _tmp11_; - RGBHistogramManipulator* _tmp12_; - ExpansionTransformation* _tmp13_; - EditingToolsAdjustToolAdjustToolWindow* _tmp14_; - RGBHistogramManipulator* _tmp15_; - ExpansionTransformation* _tmp16_; - ShadowDetailTransformation* shadows_trans = NULL; - PixelTransformationBundle* _tmp17_; - PixelTransformation* _tmp18_; - PixelTransformer* _tmp19_; - ShadowDetailTransformation* _tmp20_; - EditingToolsAdjustToolAdjustToolWindow* _tmp21_; - GtkScale* _tmp22_; - ShadowDetailTransformation* _tmp23_; - HighlightDetailTransformation* highlights_trans = NULL; - PixelTransformationBundle* _tmp24_; - PixelTransformation* _tmp25_; - PixelTransformer* _tmp26_; - HighlightDetailTransformation* _tmp27_; - EditingToolsAdjustToolAdjustToolWindow* _tmp28_; - GtkScale* _tmp29_; - HighlightDetailTransformation* _tmp30_; - TemperatureTransformation* temp_trans = NULL; - PixelTransformationBundle* _tmp31_; - PixelTransformation* _tmp32_; - PixelTransformer* _tmp33_; - TemperatureTransformation* _tmp34_; - EditingToolsAdjustToolAdjustToolWindow* _tmp35_; - GtkScale* _tmp36_; - TemperatureTransformation* _tmp37_; - TintTransformation* tint_trans = NULL; - PixelTransformationBundle* _tmp38_; - PixelTransformation* _tmp39_; - PixelTransformer* _tmp40_; - TintTransformation* _tmp41_; - EditingToolsAdjustToolAdjustToolWindow* _tmp42_; - GtkScale* _tmp43_; - TintTransformation* _tmp44_; - SaturationTransformation* sat_trans = NULL; - PixelTransformationBundle* _tmp45_; - PixelTransformation* _tmp46_; - PixelTransformer* _tmp47_; - SaturationTransformation* _tmp48_; - EditingToolsAdjustToolAdjustToolWindow* _tmp49_; - GtkScale* _tmp50_; - SaturationTransformation* _tmp51_; - ExposureTransformation* exposure_trans = NULL; - PixelTransformationBundle* _tmp52_; - PixelTransformation* _tmp53_; - PixelTransformer* _tmp54_; - ExposureTransformation* _tmp55_; - EditingToolsAdjustToolAdjustToolWindow* _tmp56_; - GtkScale* _tmp57_; - ExposureTransformation* _tmp58_; - ContrastTransformation* contrast_trans = NULL; - PixelTransformationBundle* _tmp59_; - PixelTransformation* _tmp60_; - PixelTransformer* _tmp61_; - ContrastTransformation* _tmp62_; - EditingToolsAdjustToolAdjustToolWindow* _tmp63_; - GtkScale* _tmp64_; - ContrastTransformation* _tmp65_; - GdkPixbuf* _tmp66_; - GdkPixbuf* _tmp67_; - GdkPixbuf* _tmp68_; - GdkPixbuf* _tmp69_; - GdkPixbuf* _tmp70_; - gboolean _tmp71_ = FALSE; - GdkPixbuf* _tmp72_; - gint _tmp73_; - gint _tmp74_; - gboolean _tmp78_ = FALSE; - gboolean _tmp79_ = FALSE; - GdkPixbuf* _tmp80_; - gint _tmp81_; - gint _tmp82_; - GdkPixbuf* _tmp83_; - gint _tmp84_; - gint _tmp85_; - GdkPixbuf* _tmp102_; - GdkPixbuf* _tmp103_; - DataCollection* owner = NULL; - Photo* _tmp104_; - Photo* _tmp105_; - DataCollection* _tmp106_; - DataCollection* _tmp107_; - DataCollection* _tmp108_; -#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool); -#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas)); -#line 2513 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = editing_tools_photo_canvas_get_container (canvas); -#line 2513 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_; -#line 2513 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = editing_tools_adjust_tool_adjust_tool_window_new (_tmp1_); -#line 2513 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp2_); -#line 2513 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->adjust_tool_window); -#line 2513 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->adjust_tool_window = _tmp2_; -#line 2513 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp1_); -#line 2515 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = editing_tools_photo_canvas_get_photo (canvas); -#line 2515 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - photo = _tmp3_; -#line 2516 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = photo; -#line 2516 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = photo_get_color_adjustments (_tmp4_); -#line 2516 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_bundle_unref0 (self->priv->transformations); -#line 2516 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->transformations = _tmp5_; -#line 2517 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = self->priv->transformations; -#line 2517 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = pixel_transformation_bundle_generate_transformer (_tmp6_); -#line 2517 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformer_unref0 (self->priv->transformer); -#line 2517 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->transformer = _tmp7_; -#line 2520 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = pixel_transformer_new (); -#line 2520 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformer_unref0 (self->priv->histogram_transformer); -#line 2520 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->histogram_transformer = _tmp8_; -#line 2523 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->transformations; -#line 2523 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = pixel_transformation_bundle_get_transformation (_tmp9_, PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION); -#line 2523 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - expansion_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation); -#line 2525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = self->priv->adjust_tool_window; -#line 2525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = _tmp11_->histogram_manipulator; -#line 2525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = expansion_trans; -#line 2525 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - rgb_histogram_manipulator_set_left_nub_position (_tmp12_, expansion_transformation_get_black_point (_tmp13_)); -#line 2527 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = self->priv->adjust_tool_window; -#line 2527 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = _tmp14_->histogram_manipulator; -#line 2527 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = expansion_trans; -#line 2527 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - rgb_histogram_manipulator_set_right_nub_position (_tmp15_, expansion_transformation_get_white_point (_tmp16_)); -#line 2531 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = self->priv->transformations; -#line 2531 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = pixel_transformation_bundle_get_transformation (_tmp17_, PIXEL_TRANSFORMATION_TYPE_SHADOWS); -#line 2531 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - shadows_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformation); -#line 2533 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = self->priv->histogram_transformer; -#line 2533 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = shadows_trans; -#line 2533 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - pixel_transformer_attach_transformation (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 2534 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = self->priv->adjust_tool_window; -#line 2534 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = _tmp21_->shadows_slider; -#line 2534 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = shadows_trans; -#line 2534 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_range_get_type (), GtkRange), (gdouble) shadow_detail_transformation_get_parameter (_tmp23_)); -#line 2537 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = self->priv->transformations; -#line 2537 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = pixel_transformation_bundle_get_transformation (_tmp24_, PIXEL_TRANSFORMATION_TYPE_HIGHLIGHTS); -#line 2537 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - highlights_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformation); -#line 2539 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = self->priv->histogram_transformer; -#line 2539 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = highlights_trans; -#line 2539 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - pixel_transformer_attach_transformation (_tmp26_, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 2540 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = self->priv->adjust_tool_window; -#line 2540 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29_ = _tmp28_->highlights_slider; -#line 2540 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp30_ = highlights_trans; -#line 2540 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_range_get_type (), GtkRange), (gdouble) highlight_detail_transformation_get_parameter (_tmp30_)); -#line 2543 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp31_ = self->priv->transformations; -#line 2543 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp32_ = pixel_transformation_bundle_get_transformation (_tmp31_, PIXEL_TRANSFORMATION_TYPE_TEMPERATURE); -#line 2543 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - temp_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformation); -#line 2545 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33_ = self->priv->histogram_transformer; -#line 2545 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp34_ = temp_trans; -#line 2545 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - pixel_transformer_attach_transformation (_tmp33_, G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 2546 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp35_ = self->priv->adjust_tool_window; -#line 2546 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp36_ = _tmp35_->temperature_slider; -#line 2546 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp37_ = temp_trans; -#line 2546 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_range_get_type (), GtkRange), (gdouble) temperature_transformation_get_parameter (_tmp37_)); -#line 2548 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp38_ = self->priv->transformations; -#line 2548 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp39_ = pixel_transformation_bundle_get_transformation (_tmp38_, PIXEL_TRANSFORMATION_TYPE_TINT); -#line 2548 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - tint_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_TINT_TRANSFORMATION, TintTransformation); -#line 2550 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp40_ = self->priv->histogram_transformer; -#line 2550 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp41_ = tint_trans; -#line 2550 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - pixel_transformer_attach_transformation (_tmp40_, G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 2551 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp42_ = self->priv->adjust_tool_window; -#line 2551 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp43_ = _tmp42_->tint_slider; -#line 2551 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp44_ = tint_trans; -#line 2551 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_range_get_type (), GtkRange), (gdouble) tint_transformation_get_parameter (_tmp44_)); -#line 2554 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp45_ = self->priv->transformations; -#line 2554 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp46_ = pixel_transformation_bundle_get_transformation (_tmp45_, PIXEL_TRANSFORMATION_TYPE_SATURATION); -#line 2554 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - sat_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, TYPE_SATURATION_TRANSFORMATION, SaturationTransformation); -#line 2556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp47_ = self->priv->histogram_transformer; -#line 2556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp48_ = sat_trans; -#line 2556 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - pixel_transformer_attach_transformation (_tmp47_, G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 2557 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp49_ = self->priv->adjust_tool_window; -#line 2557 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp50_ = _tmp49_->saturation_slider; -#line 2557 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp51_ = sat_trans; -#line 2557 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, gtk_range_get_type (), GtkRange), (gdouble) saturation_transformation_get_parameter (_tmp51_)); -#line 2560 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp52_ = self->priv->transformations; -#line 2560 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp53_ = pixel_transformation_bundle_get_transformation (_tmp52_, PIXEL_TRANSFORMATION_TYPE_EXPOSURE); -#line 2560 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - exposure_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformation); -#line 2562 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp54_ = self->priv->histogram_transformer; -#line 2562 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp55_ = exposure_trans; -#line 2562 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - pixel_transformer_attach_transformation (_tmp54_, G_TYPE_CHECK_INSTANCE_CAST (_tmp55_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 2563 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp56_ = self->priv->adjust_tool_window; -#line 2563 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp57_ = _tmp56_->exposure_slider; -#line 2563 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp58_ = exposure_trans; -#line 2563 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, gtk_range_get_type (), GtkRange), (gdouble) exposure_transformation_get_parameter (_tmp58_)); -#line 2566 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp59_ = self->priv->transformations; -#line 2566 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp60_ = pixel_transformation_bundle_get_transformation (_tmp59_, PIXEL_TRANSFORMATION_TYPE_CONTRAST); -#line 2566 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - contrast_trans = G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_CONTRAST_TRANSFORMATION, ContrastTransformation); -#line 2568 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp61_ = self->priv->histogram_transformer; -#line 2568 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp62_ = contrast_trans; -#line 2568 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - pixel_transformer_attach_transformation (_tmp61_, G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, TYPE_PIXEL_TRANSFORMATION, PixelTransformation)); -#line 2569 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp63_ = self->priv->adjust_tool_window; -#line 2569 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp64_ = _tmp63_->contrast_slider; -#line 2569 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp65_ = contrast_trans; -#line 2569 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, gtk_range_get_type (), GtkRange), (gdouble) contrast_transformation_get_parameter (_tmp65_)); -#line 2571 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_bind_canvas_handlers (self, canvas); -#line 2572 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_bind_window_handlers (self); -#line 2574 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp66_ = editing_tools_photo_canvas_get_scaled_pixbuf (canvas); -#line 2574 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp67_ = _tmp66_; -#line 2574 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp68_ = gdk_pixbuf_copy (_tmp67_); -#line 2574 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->draw_to_pixbuf); -#line 2574 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->draw_to_pixbuf = _tmp68_; -#line 2574 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp67_); -#line 2575 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp69_ = editing_tools_photo_canvas_get_scaled_pixbuf (canvas); -#line 2575 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp70_ = _tmp69_; -#line 2575 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_init_fp_pixel_cache (self, _tmp70_); -#line 2575 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp70_); -#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp72_ = self->priv->draw_to_pixbuf; -#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp73_ = gdk_pixbuf_get_width (_tmp72_); -#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp74_ = _tmp73_; -#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp74_ == 1) { -#line 15466 "EditingTools.c" - GdkPixbuf* _tmp75_; - gint _tmp76_; - gint _tmp77_; -#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp75_ = self->priv->draw_to_pixbuf; -#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp76_ = gdk_pixbuf_get_height (_tmp75_); -#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp77_ = _tmp76_; -#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp71_ = _tmp77_ == 1; -#line 15478 "EditingTools.c" - } else { -#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp71_ = FALSE; -#line 15482 "EditingTools.c" - } -#line 2581 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp71_) { -#line 2582 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->disable_histogram_refresh = TRUE; -#line 15488 "EditingTools.c" - } -#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp80_ = self->priv->draw_to_pixbuf; -#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp81_ = gdk_pixbuf_get_width (_tmp80_); -#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp82_ = _tmp81_; -#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp83_ = self->priv->draw_to_pixbuf; -#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp84_ = gdk_pixbuf_get_height (_tmp83_); -#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp85_ = _tmp84_; -#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if ((_tmp82_ * _tmp85_) > 8192) { -#line 15504 "EditingTools.c" - GdkPixbuf* _tmp86_; - gint _tmp87_; - gint _tmp88_; -#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp86_ = self->priv->draw_to_pixbuf; -#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp87_ = gdk_pixbuf_get_width (_tmp86_); -#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp88_ = _tmp87_; -#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp79_ = _tmp88_ > 1; -#line 15516 "EditingTools.c" - } else { -#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp79_ = FALSE; -#line 15520 "EditingTools.c" - } -#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp79_) { -#line 15524 "EditingTools.c" - GdkPixbuf* _tmp89_; - gint _tmp90_; - gint _tmp91_; -#line 2588 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp89_ = self->priv->draw_to_pixbuf; -#line 2588 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp90_ = gdk_pixbuf_get_height (_tmp89_); -#line 2588 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp91_ = _tmp90_; -#line 2588 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp78_ = _tmp91_ > 1; -#line 15536 "EditingTools.c" - } else { -#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp78_ = FALSE; -#line 15540 "EditingTools.c" - } -#line 2587 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp78_) { -#line 15544 "EditingTools.c" - GdkPixbuf* _tmp92_; - GdkPixbuf* _tmp93_; - gint _tmp94_; - gint _tmp95_; - GdkPixbuf* _tmp96_; - gint _tmp97_; - gint _tmp98_; - GdkPixbuf* _tmp99_; -#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp92_ = self->priv->draw_to_pixbuf; -#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp93_ = self->priv->draw_to_pixbuf; -#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp94_ = gdk_pixbuf_get_width (_tmp93_); -#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp95_ = _tmp94_; -#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp96_ = self->priv->draw_to_pixbuf; -#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp97_ = gdk_pixbuf_get_height (_tmp96_); -#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp98_ = _tmp97_; -#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp99_ = gdk_pixbuf_scale_simple (_tmp92_, _tmp95_ / 2, _tmp98_ / 2, GDK_INTERP_HYPER); -#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->histogram_pixbuf); -#line 2589 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->histogram_pixbuf = _tmp99_; -#line 15573 "EditingTools.c" - } else { - GdkPixbuf* _tmp100_; - GdkPixbuf* _tmp101_; -#line 2592 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp100_ = self->priv->draw_to_pixbuf; -#line 2592 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp101_ = gdk_pixbuf_copy (_tmp100_); -#line 2592 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->histogram_pixbuf); -#line 2592 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->histogram_pixbuf = _tmp101_; -#line 15585 "EditingTools.c" - } -#line 2594 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp102_ = self->priv->histogram_pixbuf; -#line 2594 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp103_ = gdk_pixbuf_copy (_tmp102_); -#line 2594 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->virgin_histogram_pixbuf); -#line 2594 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->virgin_histogram_pixbuf = _tmp103_; -#line 2596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp104_ = editing_tools_photo_canvas_get_photo (canvas); -#line 2596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp105_ = _tmp104_; -#line 2596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp106_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (_tmp105_, TYPE_DATA_OBJECT, DataObject)); -#line 2596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp107_ = _tmp106_; -#line 2596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp105_); -#line 2596 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - owner = _tmp107_; -#line 2597 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp108_ = owner; -#line 2597 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp108_ != NULL) { -#line 15611 "EditingTools.c" - DataCollection* _tmp109_; -#line 2598 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp109_ = owner; -#line 2598 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (_tmp109_, "items-altered", (GCallback) _editing_tools_adjust_tool_on_photos_altered_data_collection_items_altered, self); -#line 15617 "EditingTools.c" - } -#line 2600 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_adjust_tool_parent_class)->activate (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), canvas); -#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _data_collection_unref0 (owner); -#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (contrast_trans); -#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (exposure_trans); -#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (sat_trans); -#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (tint_trans); -#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (temp_trans); -#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (highlights_trans); -#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (shadows_trans); -#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (expansion_trans); -#line 2512 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (photo); -#line 15641 "EditingTools.c" -} - - -static EditingToolsEditingToolWindow* -editing_tools_adjust_tool_real_get_tool_window (EditingToolsEditingTool* base) -{ - EditingToolsAdjustTool * self; - EditingToolsEditingToolWindow* result = NULL; - EditingToolsAdjustToolAdjustToolWindow* _tmp0_; - EditingToolsEditingToolWindow* _tmp1_; -#line 2603 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool); -#line 2604 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->adjust_tool_window; -#line 2604 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow)); -#line 2604 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp1_; -#line 2604 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 15662 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_real_deactivate (EditingToolsEditingTool* base) -{ - EditingToolsAdjustTool * self; - EditingToolsPhotoCanvas* _tmp0_; - EditingToolsAdjustToolAdjustToolWindow* _tmp10_; -#line 2607 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool); -#line 2608 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2608 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ != NULL) { -#line 15678 "EditingTools.c" - DataCollection* owner = NULL; - EditingToolsPhotoCanvas* _tmp1_; - Photo* _tmp2_; - Photo* _tmp3_; - DataCollection* _tmp4_; - DataCollection* _tmp5_; - DataCollection* _tmp6_; - EditingToolsPhotoCanvas* _tmp9_; -#line 2609 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2609 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = editing_tools_photo_canvas_get_photo (_tmp1_); -#line 2609 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_; -#line 2609 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = data_object_get_membership (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_OBJECT, DataObject)); -#line 2609 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_; -#line 2609 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp3_); -#line 2609 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - owner = _tmp5_; -#line 2610 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = owner; -#line 2610 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp6_ != NULL) { -#line 15705 "EditingTools.c" - DataCollection* _tmp7_; - guint _tmp8_; -#line 2611 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = owner; -#line 2611 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp8_, NULL, FALSE); -#line 2611 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (_tmp7_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_photos_altered_data_collection_items_altered, self); -#line 15714 "EditingTools.c" - } -#line 2613 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2613 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_unbind_canvas_handlers (self, _tmp9_); -#line 2608 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _data_collection_unref0 (owner); -#line 15722 "EditingTools.c" - } -#line 2616 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = self->priv->adjust_tool_window; -#line 2616 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp10_ != NULL) { -#line 15728 "EditingTools.c" - EditingToolsAdjustToolAdjustToolWindow* _tmp11_; - EditingToolsAdjustToolAdjustToolWindow* _tmp12_; -#line 2617 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_unbind_window_handlers (self); -#line 2618 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = self->priv->adjust_tool_window; -#line 2618 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget)); -#line 2619 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = self->priv->adjust_tool_window; -#line 2619 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget)); -#line 2620 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->adjust_tool_window); -#line 2620 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->adjust_tool_window = NULL; -#line 15745 "EditingTools.c" - } -#line 2623 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->draw_to_pixbuf); -#line 2623 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->draw_to_pixbuf = NULL; -#line 2624 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->fp_pixel_cache = (g_free (self->priv->fp_pixel_cache), NULL); -#line 2624 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->fp_pixel_cache = NULL; -#line 2624 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->fp_pixel_cache_length1 = 0; -#line 2624 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->_fp_pixel_cache_size_ = self->priv->fp_pixel_cache_length1; -#line 2626 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_adjust_tool_parent_class)->deactivate (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)); -#line 15761 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_real_paint (EditingToolsEditingTool* base, - cairo_t* ctx) -{ - EditingToolsAdjustTool * self; - gboolean _tmp0_; - EditingToolsPhotoCanvas* _tmp10_; - GdkPixbuf* _tmp11_; -#line 2629 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool); -#line 2629 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (ctx != NULL); -#line 2630 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->suppress_effect_redraw; -#line 2630 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!_tmp0_) { -#line 15781 "EditingTools.c" - PixelTransformer* _tmp1_; - GdkPixbuf* _tmp2_; - PixelTransformer* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; - gboolean _tmp6_; -#line 2631 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->transformer; -#line 2631 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->draw_to_pixbuf; -#line 2631 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - pixel_transformer_transform_from_fp (_tmp1_, &self->priv->fp_pixel_cache, &self->priv->fp_pixel_cache_length1, _tmp2_); -#line 2632 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->histogram_transformer; -#line 2632 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->virgin_histogram_pixbuf; -#line 2632 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = self->priv->histogram_pixbuf; -#line 2632 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - pixel_transformer_transform_to_other_pixbuf (_tmp3_, _tmp4_, _tmp5_, NULL, -1); -#line 2634 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = self->priv->disable_histogram_refresh; -#line 2634 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!_tmp6_) { -#line 15806 "EditingTools.c" - EditingToolsAdjustToolAdjustToolWindow* _tmp7_; - RGBHistogramManipulator* _tmp8_; - GdkPixbuf* _tmp9_; -#line 2635 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = self->priv->adjust_tool_window; -#line 2635 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = _tmp7_->histogram_manipulator; -#line 2635 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->histogram_pixbuf; -#line 2635 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - rgb_histogram_manipulator_update_histogram (_tmp8_, _tmp9_); -#line 15818 "EditingTools.c" - } - } -#line 2638 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2638 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = self->priv->draw_to_pixbuf; -#line 2638 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_paint_pixbuf (_tmp10_, _tmp11_); -#line 15827 "EditingTools.c" -} - - -static GdkPixbuf* -editing_tools_adjust_tool_real_get_display_pixbuf (EditingToolsEditingTool* base, - Scaling* scaling, - Photo* photo, - Dimensions* max_dim, - GError** error) -{ - EditingToolsAdjustTool * self; - Dimensions _vala_max_dim = {0}; - GdkPixbuf* result = NULL; - Dimensions _tmp0_ = {0}; - GdkPixbuf* _tmp1_ = NULL; - Scaling _tmp2_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GError * _inner_error_ = NULL; -#line 2641 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool); -#line 2641 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (scaling != NULL, NULL); -#line 2641 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 2643 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!photo_has_color_adjustments (photo)) { -#line 2644 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - dimensions_init (&_vala_max_dim, 0, 0); -#line 2646 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = NULL; -#line 2646 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (max_dim) { -#line 2646 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *max_dim = _vala_max_dim; -#line 15863 "EditingTools.c" - } -#line 2646 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 15867 "EditingTools.c" - } -#line 2649 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (photo, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp0_); -#line 2649 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_max_dim = _tmp0_; -#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = *scaling; -#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = photo_get_pixbuf_with_options (photo, &_tmp2_, PHOTO_EXCEPTION_ADJUST, BACKING_FETCH_MODE_BASELINE, &_inner_error_); -#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp3_; -#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_propagate_error (error, _inner_error_); -#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return NULL; -#line 15885 "EditingTools.c" - } -#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp1_; -#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = NULL; -#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp4_; -#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp1_); -#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (max_dim) { -#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - *max_dim = _vala_max_dim; -#line 15899 "EditingTools.c" - } -#line 2651 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 15903 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_reset (EditingToolsAdjustTool* self) -{ - EditingToolsAdjustToolAdjustResetCommand* command = NULL; - PixelTransformationBundle* _tmp0_; - EditingToolsAdjustToolAdjustResetCommand* _tmp1_; - CommandManager* _tmp2_; - CommandManager* _tmp3_; -#line 2654 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2655 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->transformations; -#line 2655 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = editing_tools_adjust_tool_adjust_reset_command_new (self, _tmp0_); -#line 2655 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - command = _tmp1_; -#line 2656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = app_window_get_command_manager (); -#line 2656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_; -#line 2656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - command_manager_execute (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (command, TYPE_COMMAND, Command)); -#line 2656 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _command_manager_unref0 (_tmp3_); -#line 2654 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (command); -#line 15933 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_ok (EditingToolsAdjustTool* self) -{ - EditingToolsEditingToolWindow* _tmp0_; - EditingToolsEditingToolWindow* _tmp1_; - EditingToolsPhotoCanvas* _tmp2_; - Photo* _tmp3_; - Photo* _tmp4_; - PixelTransformationBundle* _tmp5_; - AdjustColorsSingleCommand* _tmp6_; - AdjustColorsSingleCommand* _tmp7_; - GdkPixbuf* _tmp8_; - EditingToolsPhotoCanvas* _tmp9_; - Photo* _tmp10_; - Photo* _tmp11_; - Dimensions _tmp12_ = {0}; -#line 2659 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2660 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->suppress_effect_redraw = TRUE; -#line 2662 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = editing_tools_editing_tool_get_tool_window (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)); -#line 2662 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_; -#line 2662 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 2662 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp1_); -#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = editing_tools_photo_canvas_get_photo (_tmp2_); -#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_; -#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = self->priv->transformations; -#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = adjust_colors_single_command_new (_tmp4_, _tmp5_, RESOURCES_ADJUST_LABEL, RESOURCES_ADJUST_TOOLTIP); -#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_; -#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = self->priv->draw_to_pixbuf; -#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = editing_tools_photo_canvas_get_photo (_tmp9_); -#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _tmp10_; -#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_NONE, &_tmp12_); -#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_emit (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), editing_tools_editing_tool_signals[EDITING_TOOLS_EDITING_TOOL_APPLIED_SIGNAL], 0, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_COMMAND, Command), _tmp8_, &_tmp12_, FALSE); -#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp11_); -#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp7_); -#line 2664 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp4_); -#line 15995 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_update_transformations (EditingToolsAdjustTool* self, - PixelTransformationBundle* new_transformations) -{ -#line 2669 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2669 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (IS_PIXEL_TRANSFORMATION_BUNDLE (new_transformations)); -#line 16007 "EditingTools.c" - { - GeeIterator* _transformation_it = NULL; - GeeIterable* _tmp0_; - GeeIterable* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = pixel_transformation_bundle_get_transformations (new_transformations); -#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_; -#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = gee_iterable_iterator (_tmp1_); -#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_; -#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp1_); -#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _transformation_it = _tmp3_; -#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - while (TRUE) { -#line 16028 "EditingTools.c" - GeeIterator* _tmp4_; - PixelTransformation* transformation = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - PixelTransformation* _tmp7_; -#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _transformation_it; -#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 16040 "EditingTools.c" - } -#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _transformation_it; -#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - transformation = (PixelTransformation*) _tmp6_; -#line 2671 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = transformation; -#line 2671 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_update_transformation (self, _tmp7_); -#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (transformation); -#line 16054 "EditingTools.c" - } -#line 2670 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_transformation_it); -#line 16058 "EditingTools.c" - } -} - - -static void -editing_tools_adjust_tool_update_transformation (EditingToolsAdjustTool* self, - PixelTransformation* new_transformation) -{ - PixelTransformation* old_transformation = NULL; - PixelTransformationBundle* _tmp0_; - PixelTransformation* _tmp1_; - PixelTransformer* _tmp2_; - PixelTransformation* _tmp3_; - PixelTransformationBundle* _tmp6_; -#line 2674 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2674 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (IS_PIXEL_TRANSFORMATION (new_transformation)); -#line 2675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->transformations; -#line 2675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = pixel_transformation_bundle_get_transformation (_tmp0_, pixel_transformation_get_transformation_type (new_transformation)); -#line 2675 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - old_transformation = _tmp1_; -#line 2678 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->transformer; -#line 2678 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = old_transformation; -#line 2678 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - pixel_transformer_replace_transformation (_tmp2_, _tmp3_, new_transformation); -#line 2679 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (pixel_transformation_get_transformation_type (new_transformation) != PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION) { -#line 16091 "EditingTools.c" - PixelTransformer* _tmp4_; - PixelTransformation* _tmp5_; -#line 2680 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->histogram_transformer; -#line 2680 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = old_transformation; -#line 2680 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - pixel_transformer_replace_transformation (_tmp4_, _tmp5_, new_transformation); -#line 16100 "EditingTools.c" - } -#line 2682 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = self->priv->transformations; -#line 2682 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - pixel_transformation_bundle_set (_tmp6_, new_transformation); -#line 2674 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (old_transformation); -#line 16108 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_slider_updated (EditingToolsAdjustTool* self, - PixelTransformation* new_transformation, - const gchar* name) -{ - PixelTransformation* old_transformation = NULL; - PixelTransformationBundle* _tmp0_; - PixelTransformation* _tmp1_; - EditingToolsAdjustToolSliderAdjustmentCommand* command = NULL; - EditingToolsAdjustToolSliderAdjustmentCommand* _tmp2_; - CommandManager* _tmp3_; - CommandManager* _tmp4_; -#line 2685 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2685 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (IS_PIXEL_TRANSFORMATION (new_transformation)); -#line 2685 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (name != NULL); -#line 2686 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->transformations; -#line 2686 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = pixel_transformation_bundle_get_transformation (_tmp0_, pixel_transformation_get_transformation_type (new_transformation)); -#line 2686 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - old_transformation = _tmp1_; -#line 2688 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = editing_tools_adjust_tool_slider_adjustment_command_new (self, old_transformation, new_transformation, name); -#line 2688 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - command = _tmp2_; -#line 2690 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = app_window_get_command_manager (); -#line 2690 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_; -#line 2690 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - command_manager_execute (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (command, TYPE_COMMAND, Command)); -#line 2690 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _command_manager_unref0 (_tmp4_); -#line 2685 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (command); -#line 2685 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (old_transformation); -#line 16152 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_delayed_temperature_adjustment_one_shot_callback (gpointer self) -{ -#line 2695 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_delayed_temperature_adjustment ((EditingToolsAdjustTool*) self); -#line 16161 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_temperature_adjustment (EditingToolsAdjustTool* self) -{ - OneShotScheduler* _tmp0_; - OneShotScheduler* _tmp2_; -#line 2693 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2694 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->temperature_scheduler; -#line 2694 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ == NULL) { -#line 16176 "EditingTools.c" - OneShotScheduler* _tmp1_; -#line 2695 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = one_shot_scheduler_new ("temperature", _editing_tools_adjust_tool_on_delayed_temperature_adjustment_one_shot_callback, self); -#line 2695 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _one_shot_scheduler_unref0 (self->priv->temperature_scheduler); -#line 2695 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->temperature_scheduler = _tmp1_; -#line 16184 "EditingTools.c" - } -#line 2697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->temperature_scheduler; -#line 2697 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - one_shot_scheduler_after_timeout (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_SLIDER_DELAY_MSEC, TRUE); -#line 16190 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_delayed_temperature_adjustment (EditingToolsAdjustTool* self) -{ - TemperatureTransformation* new_temp_trans = NULL; - EditingToolsAdjustToolAdjustToolWindow* _tmp0_; - GtkScale* _tmp1_; - TemperatureTransformation* _tmp2_; -#line 2700 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2701 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->adjust_tool_window; -#line 2701 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_->temperature_slider; -#line 2701 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = temperature_transformation_new ((gfloat) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange))); -#line 2701 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_temp_trans = _tmp2_; -#line 2703 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_slider_updated (self, G_TYPE_CHECK_INSTANCE_CAST (new_temp_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), _ ("Temperature")); -#line 2700 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (new_temp_trans); -#line 16215 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_delayed_tint_adjustment_one_shot_callback (gpointer self) -{ -#line 2708 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_delayed_tint_adjustment ((EditingToolsAdjustTool*) self); -#line 16224 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_tint_adjustment (EditingToolsAdjustTool* self) -{ - OneShotScheduler* _tmp0_; - OneShotScheduler* _tmp2_; -#line 2706 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->tint_scheduler; -#line 2707 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ == NULL) { -#line 16239 "EditingTools.c" - OneShotScheduler* _tmp1_; -#line 2708 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = one_shot_scheduler_new ("tint", _editing_tools_adjust_tool_on_delayed_tint_adjustment_one_shot_callback, self); -#line 2708 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _one_shot_scheduler_unref0 (self->priv->tint_scheduler); -#line 2708 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->tint_scheduler = _tmp1_; -#line 16247 "EditingTools.c" - } -#line 2709 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->tint_scheduler; -#line 2709 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - one_shot_scheduler_after_timeout (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_SLIDER_DELAY_MSEC, TRUE); -#line 16253 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_delayed_tint_adjustment (EditingToolsAdjustTool* self) -{ - TintTransformation* new_tint_trans = NULL; - EditingToolsAdjustToolAdjustToolWindow* _tmp0_; - GtkScale* _tmp1_; - TintTransformation* _tmp2_; -#line 2712 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2713 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->adjust_tool_window; -#line 2713 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_->tint_slider; -#line 2713 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = tint_transformation_new ((gfloat) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange))); -#line 2713 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_tint_trans = _tmp2_; -#line 2715 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_slider_updated (self, G_TYPE_CHECK_INSTANCE_CAST (new_tint_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), _ ("Tint")); -#line 2712 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (new_tint_trans); -#line 16278 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_delayed_contrast_adjustment_one_shot_callback (gpointer self) -{ -#line 2720 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_delayed_contrast_adjustment ((EditingToolsAdjustTool*) self); -#line 16287 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_contrast_adjustment (EditingToolsAdjustTool* self) -{ - OneShotScheduler* _tmp0_; - OneShotScheduler* _tmp2_; -#line 2718 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2719 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->contrast_scheduler; -#line 2719 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ == NULL) { -#line 16302 "EditingTools.c" - OneShotScheduler* _tmp1_; -#line 2720 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = one_shot_scheduler_new ("contrast", _editing_tools_adjust_tool_on_delayed_contrast_adjustment_one_shot_callback, self); -#line 2720 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _one_shot_scheduler_unref0 (self->priv->contrast_scheduler); -#line 2720 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->contrast_scheduler = _tmp1_; -#line 16310 "EditingTools.c" - } -#line 2721 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->contrast_scheduler; -#line 2721 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - one_shot_scheduler_after_timeout (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_SLIDER_DELAY_MSEC, TRUE); -#line 16316 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_delayed_contrast_adjustment (EditingToolsAdjustTool* self) -{ - ContrastTransformation* new_exp_trans = NULL; - EditingToolsAdjustToolAdjustToolWindow* _tmp0_; - GtkScale* _tmp1_; - ContrastTransformation* _tmp2_; -#line 2724 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2725 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->adjust_tool_window; -#line 2725 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_->contrast_slider; -#line 2725 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = contrast_transformation_new ((gfloat) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange))); -#line 2725 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_exp_trans = _tmp2_; -#line 2727 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_slider_updated (self, G_TYPE_CHECK_INSTANCE_CAST (new_exp_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), _ ("Contrast")); -#line 2724 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (new_exp_trans); -#line 16341 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_delayed_saturation_adjustment_one_shot_callback (gpointer self) -{ -#line 2733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_delayed_saturation_adjustment ((EditingToolsAdjustTool*) self); -#line 16350 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_saturation_adjustment (EditingToolsAdjustTool* self) -{ - OneShotScheduler* _tmp0_; - OneShotScheduler* _tmp2_; -#line 2731 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->saturation_scheduler; -#line 2732 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ == NULL) { -#line 16365 "EditingTools.c" - OneShotScheduler* _tmp1_; -#line 2733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = one_shot_scheduler_new ("saturation", _editing_tools_adjust_tool_on_delayed_saturation_adjustment_one_shot_callback, self); -#line 2733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _one_shot_scheduler_unref0 (self->priv->saturation_scheduler); -#line 2733 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->saturation_scheduler = _tmp1_; -#line 16373 "EditingTools.c" - } -#line 2735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->saturation_scheduler; -#line 2735 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - one_shot_scheduler_after_timeout (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_SLIDER_DELAY_MSEC, TRUE); -#line 16379 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_delayed_saturation_adjustment (EditingToolsAdjustTool* self) -{ - SaturationTransformation* new_sat_trans = NULL; - EditingToolsAdjustToolAdjustToolWindow* _tmp0_; - GtkScale* _tmp1_; - SaturationTransformation* _tmp2_; -#line 2738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->adjust_tool_window; -#line 2739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_->saturation_slider; -#line 2739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = saturation_transformation_new ((gfloat) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange))); -#line 2739 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_sat_trans = _tmp2_; -#line 2741 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_slider_updated (self, G_TYPE_CHECK_INSTANCE_CAST (new_sat_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), _ ("Saturation")); -#line 2738 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (new_sat_trans); -#line 16404 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_delayed_exposure_adjustment_one_shot_callback (gpointer self) -{ -#line 2746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_delayed_exposure_adjustment ((EditingToolsAdjustTool*) self); -#line 16413 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_exposure_adjustment (EditingToolsAdjustTool* self) -{ - OneShotScheduler* _tmp0_; - OneShotScheduler* _tmp2_; -#line 2744 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->exposure_scheduler; -#line 2745 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ == NULL) { -#line 16428 "EditingTools.c" - OneShotScheduler* _tmp1_; -#line 2746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = one_shot_scheduler_new ("exposure", _editing_tools_adjust_tool_on_delayed_exposure_adjustment_one_shot_callback, self); -#line 2746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _one_shot_scheduler_unref0 (self->priv->exposure_scheduler); -#line 2746 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->exposure_scheduler = _tmp1_; -#line 16436 "EditingTools.c" - } -#line 2748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->exposure_scheduler; -#line 2748 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - one_shot_scheduler_after_timeout (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_SLIDER_DELAY_MSEC, TRUE); -#line 16442 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_delayed_exposure_adjustment (EditingToolsAdjustTool* self) -{ - ExposureTransformation* new_exp_trans = NULL; - EditingToolsAdjustToolAdjustToolWindow* _tmp0_; - GtkScale* _tmp1_; - ExposureTransformation* _tmp2_; -#line 2751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->adjust_tool_window; -#line 2752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_->exposure_slider; -#line 2752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = exposure_transformation_new ((gfloat) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange))); -#line 2752 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_exp_trans = _tmp2_; -#line 2754 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_slider_updated (self, G_TYPE_CHECK_INSTANCE_CAST (new_exp_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), _ ("Exposure")); -#line 2751 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (new_exp_trans); -#line 16467 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_delayed_shadows_adjustment_one_shot_callback (gpointer self) -{ -#line 2759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_delayed_shadows_adjustment ((EditingToolsAdjustTool*) self); -#line 16476 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_shadows_adjustment (EditingToolsAdjustTool* self) -{ - OneShotScheduler* _tmp0_; - OneShotScheduler* _tmp2_; -#line 2757 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->shadows_scheduler; -#line 2758 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ == NULL) { -#line 16491 "EditingTools.c" - OneShotScheduler* _tmp1_; -#line 2759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = one_shot_scheduler_new ("shadows", _editing_tools_adjust_tool_on_delayed_shadows_adjustment_one_shot_callback, self); -#line 2759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _one_shot_scheduler_unref0 (self->priv->shadows_scheduler); -#line 2759 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->shadows_scheduler = _tmp1_; -#line 16499 "EditingTools.c" - } -#line 2761 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->shadows_scheduler; -#line 2761 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - one_shot_scheduler_after_timeout (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_SLIDER_DELAY_MSEC, TRUE); -#line 16505 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_delayed_shadows_adjustment (EditingToolsAdjustTool* self) -{ - ShadowDetailTransformation* new_shadows_trans = NULL; - EditingToolsAdjustToolAdjustToolWindow* _tmp0_; - GtkScale* _tmp1_; - ShadowDetailTransformation* _tmp2_; -#line 2764 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2765 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->adjust_tool_window; -#line 2765 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_->shadows_slider; -#line 2765 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = shadow_detail_transformation_new ((gfloat) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange))); -#line 2765 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_shadows_trans = _tmp2_; -#line 2767 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_slider_updated (self, G_TYPE_CHECK_INSTANCE_CAST (new_shadows_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), _ ("Shadows")); -#line 2764 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (new_shadows_trans); -#line 16530 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_delayed_highlights_adjustment_one_shot_callback (gpointer self) -{ -#line 2772 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_delayed_highlights_adjustment ((EditingToolsAdjustTool*) self); -#line 16539 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_highlights_adjustment (EditingToolsAdjustTool* self) -{ - OneShotScheduler* _tmp0_; - OneShotScheduler* _tmp2_; -#line 2770 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->highlights_scheduler; -#line 2771 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ == NULL) { -#line 16554 "EditingTools.c" - OneShotScheduler* _tmp1_; -#line 2772 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = one_shot_scheduler_new ("highlights", _editing_tools_adjust_tool_on_delayed_highlights_adjustment_one_shot_callback, self); -#line 2772 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _one_shot_scheduler_unref0 (self->priv->highlights_scheduler); -#line 2772 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->highlights_scheduler = _tmp1_; -#line 16562 "EditingTools.c" - } -#line 2774 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->highlights_scheduler; -#line 2774 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - one_shot_scheduler_after_timeout (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_SLIDER_DELAY_MSEC, TRUE); -#line 16568 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_delayed_highlights_adjustment (EditingToolsAdjustTool* self) -{ - HighlightDetailTransformation* new_highlights_trans = NULL; - EditingToolsAdjustToolAdjustToolWindow* _tmp0_; - GtkScale* _tmp1_; - HighlightDetailTransformation* _tmp2_; -#line 2777 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->adjust_tool_window; -#line 2778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_->highlights_slider; -#line 2778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = highlight_detail_transformation_new ((gfloat) gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange))); -#line 2778 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_highlights_trans = _tmp2_; -#line 2780 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_slider_updated (self, G_TYPE_CHECK_INSTANCE_CAST (new_highlights_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), _ ("Highlights")); -#line 2777 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (new_highlights_trans); -#line 16593 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_histogram_constraint (EditingToolsAdjustTool* self) -{ - gint expansion_black_point = 0; - EditingToolsAdjustToolAdjustToolWindow* _tmp0_; - RGBHistogramManipulator* _tmp1_; - gint expansion_white_point = 0; - EditingToolsAdjustToolAdjustToolWindow* _tmp2_; - RGBHistogramManipulator* _tmp3_; - ExpansionTransformation* new_exp_trans = NULL; - ExpansionTransformation* _tmp4_; -#line 2783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2784 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->adjust_tool_window; -#line 2784 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_->histogram_manipulator; -#line 2784 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - expansion_black_point = rgb_histogram_manipulator_get_left_nub_position (_tmp1_); -#line 2786 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->adjust_tool_window; -#line 2786 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_->histogram_manipulator; -#line 2786 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - expansion_white_point = rgb_histogram_manipulator_get_right_nub_position (_tmp3_); -#line 2788 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = expansion_transformation_new_from_extrema (expansion_black_point, expansion_white_point); -#line 2788 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - new_exp_trans = _tmp4_; -#line 2790 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_slider_updated (self, G_TYPE_CHECK_INSTANCE_CAST (new_exp_trans, TYPE_PIXEL_TRANSFORMATION, PixelTransformation), _ ("Contrast Expansion")); -#line 2783 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (new_exp_trans); -#line 16630 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_canvas_resize (EditingToolsAdjustTool* self) -{ - EditingToolsPhotoCanvas* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - EditingToolsPhotoCanvas* _tmp4_; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; -#line 2793 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = editing_tools_photo_canvas_get_scaled_pixbuf (_tmp0_); -#line 2794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_; -#line 2794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = gdk_pixbuf_copy (_tmp2_); -#line 2794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->draw_to_pixbuf); -#line 2794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->draw_to_pixbuf = _tmp3_; -#line 2794 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp2_); -#line 2795 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2795 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = editing_tools_photo_canvas_get_scaled_pixbuf (_tmp4_); -#line 2795 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_; -#line 2795 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_init_fp_pixel_cache (self, _tmp6_); -#line 2795 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp6_); -#line 16670 "EditingTools.c" -} - - -static gboolean -editing_tools_adjust_tool_on_hscale_reset (EditingToolsAdjustTool* self, - GtkWidget* widget, - GdkEventButton* event) -{ - gboolean result = FALSE; - GtkScale* source = NULL; - GtkScale* _tmp0_; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - guint _tmp3_; -#line 2798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self), FALSE); -#line 2798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE); -#line 2798 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 2799 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (widget, gtk_scale_get_type (), GtkScale)); -#line 2799 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - source = _tmp0_; -#line 2801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = event->button; -#line 2801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp3_ == ((guint) 1)) { -#line 16699 "EditingTools.c" - GdkEventType _tmp4_; -#line 2801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = event->type; -#line 2801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp4_ == GDK_BUTTON_PRESS; -#line 16705 "EditingTools.c" - } else { -#line 2801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = FALSE; -#line 16709 "EditingTools.c" - } -#line 2801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp2_) { -#line 16713 "EditingTools.c" - GdkModifierType _tmp5_; -#line 2802 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = event->state; -#line 2802 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = has_only_key_modifier (_tmp5_, GDK_CONTROL_MASK); -#line 16719 "EditingTools.c" - } else { -#line 2801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = FALSE; -#line 16723 "EditingTools.c" - } -#line 2801 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp1_) { -#line 16727 "EditingTools.c" - GtkScale* _tmp6_; -#line 2804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = source; -#line 2804 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_range_get_type (), GtkRange), (gdouble) 0); -#line 2806 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = TRUE; -#line 2806 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (source); -#line 2806 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 16739 "EditingTools.c" - } -#line 2809 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = FALSE; -#line 2809 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (source); -#line 2809 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 16747 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_canvas_resize_editing_tools_photo_canvas_resized_scaled_pixbuf (EditingToolsPhotoCanvas* _sender, - Dimensions* old_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position, - gpointer self) -{ -#line 2813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_canvas_resize ((EditingToolsAdjustTool*) self); -#line 16760 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_bind_canvas_handlers (EditingToolsAdjustTool* self, - EditingToolsPhotoCanvas* canvas) -{ -#line 2812 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2812 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas)); -#line 2813 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (canvas, "resized-scaled-pixbuf", (GCallback) _editing_tools_adjust_tool_on_canvas_resize_editing_tools_photo_canvas_resized_scaled_pixbuf, self); -#line 16774 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_unbind_canvas_handlers (EditingToolsAdjustTool* self, - EditingToolsPhotoCanvas* canvas) -{ - guint _tmp0_; -#line 2816 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2816 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas)); -#line 2817 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("resized-scaled-pixbuf", EDITING_TOOLS_TYPE_PHOTO_CANVAS, &_tmp0_, NULL, FALSE); -#line 2817 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (canvas, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_canvas_resize_editing_tools_photo_canvas_resized_scaled_pixbuf, self); -#line 16791 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_ok_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 2821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_ok ((EditingToolsAdjustTool*) self); -#line 16801 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_reset_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 2822 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_reset ((EditingToolsAdjustTool*) self); -#line 16811 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_exposure_adjustment_gtk_range_value_changed (GtkRange* _sender, - gpointer self) -{ -#line 2824 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_exposure_adjustment ((EditingToolsAdjustTool*) self); -#line 16821 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_contrast_adjustment_gtk_range_value_changed (GtkRange* _sender, - gpointer self) -{ -#line 2825 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_contrast_adjustment ((EditingToolsAdjustTool*) self); -#line 16831 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_saturation_adjustment_gtk_range_value_changed (GtkRange* _sender, - gpointer self) -{ -#line 2826 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_saturation_adjustment ((EditingToolsAdjustTool*) self); -#line 16841 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_tint_adjustment_gtk_range_value_changed (GtkRange* _sender, - gpointer self) -{ -#line 2827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_tint_adjustment ((EditingToolsAdjustTool*) self); -#line 16851 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_temperature_adjustment_gtk_range_value_changed (GtkRange* _sender, - gpointer self) -{ -#line 2828 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_temperature_adjustment ((EditingToolsAdjustTool*) self); -#line 16861 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_shadows_adjustment_gtk_range_value_changed (GtkRange* _sender, - gpointer self) -{ -#line 2829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_shadows_adjustment ((EditingToolsAdjustTool*) self); -#line 16871 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_highlights_adjustment_gtk_range_value_changed (GtkRange* _sender, - gpointer self) -{ -#line 2830 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_highlights_adjustment ((EditingToolsAdjustTool*) self); -#line 16881 "EditingTools.c" -} - - -static void -_editing_tools_adjust_tool_on_histogram_constraint_rgb_histogram_manipulator_nub_position_changed (RGBHistogramManipulator* _sender, - gpointer self) -{ -#line 2831 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_histogram_constraint ((EditingToolsAdjustTool*) self); -#line 16891 "EditingTools.c" -} - - -static gboolean -_editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self) -{ - gboolean result; - result = editing_tools_adjust_tool_on_hscale_reset ((EditingToolsAdjustTool*) self, _sender, event); -#line 2833 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 16904 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_bind_window_handlers (EditingToolsAdjustTool* self) -{ - EditingToolsAdjustToolAdjustToolWindow* _tmp0_; - GtkButton* _tmp1_; - EditingToolsAdjustToolAdjustToolWindow* _tmp2_; - GtkButton* _tmp3_; - EditingToolsAdjustToolAdjustToolWindow* _tmp4_; - GtkButton* _tmp5_; - EditingToolsAdjustToolAdjustToolWindow* _tmp6_; - GtkScale* _tmp7_; - EditingToolsAdjustToolAdjustToolWindow* _tmp8_; - GtkScale* _tmp9_; - EditingToolsAdjustToolAdjustToolWindow* _tmp10_; - GtkScale* _tmp11_; - EditingToolsAdjustToolAdjustToolWindow* _tmp12_; - GtkScale* _tmp13_; - EditingToolsAdjustToolAdjustToolWindow* _tmp14_; - GtkScale* _tmp15_; - EditingToolsAdjustToolAdjustToolWindow* _tmp16_; - GtkScale* _tmp17_; - EditingToolsAdjustToolAdjustToolWindow* _tmp18_; - GtkScale* _tmp19_; - EditingToolsAdjustToolAdjustToolWindow* _tmp20_; - RGBHistogramManipulator* _tmp21_; - EditingToolsAdjustToolAdjustToolWindow* _tmp22_; - GtkScale* _tmp23_; - EditingToolsAdjustToolAdjustToolWindow* _tmp24_; - GtkScale* _tmp25_; - EditingToolsAdjustToolAdjustToolWindow* _tmp26_; - GtkScale* _tmp27_; - EditingToolsAdjustToolAdjustToolWindow* _tmp28_; - GtkScale* _tmp29_; - EditingToolsAdjustToolAdjustToolWindow* _tmp30_; - GtkScale* _tmp31_; - EditingToolsAdjustToolAdjustToolWindow* _tmp32_; - GtkScale* _tmp33_; - EditingToolsAdjustToolAdjustToolWindow* _tmp34_; - GtkScale* _tmp35_; -#line 2820 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->adjust_tool_window; -#line 2821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_->ok_button; -#line 2821 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (_tmp1_, "clicked", (GCallback) _editing_tools_adjust_tool_on_ok_gtk_button_clicked, self); -#line 2822 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->adjust_tool_window; -#line 2822 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_->reset_button; -#line 2822 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (_tmp3_, "clicked", (GCallback) _editing_tools_adjust_tool_on_reset_gtk_button_clicked, self); -#line 2823 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->adjust_tool_window; -#line 2823 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _tmp4_->cancel_button; -#line 2823 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (_tmp5_, "clicked", (GCallback) _editing_tools_editing_tool_notify_cancel_gtk_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)); -#line 2824 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = self->priv->adjust_tool_window; -#line 2824 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_->exposure_slider; -#line 2824 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_tools_adjust_tool_on_exposure_adjustment_gtk_range_value_changed, self); -#line 2825 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = self->priv->adjust_tool_window; -#line 2825 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = _tmp8_->contrast_slider; -#line 2825 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_tools_adjust_tool_on_contrast_adjustment_gtk_range_value_changed, self); -#line 2826 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = self->priv->adjust_tool_window; -#line 2826 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _tmp10_->saturation_slider; -#line 2826 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_tools_adjust_tool_on_saturation_adjustment_gtk_range_value_changed, self); -#line 2827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = self->priv->adjust_tool_window; -#line 2827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_->tint_slider; -#line 2827 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_tools_adjust_tool_on_tint_adjustment_gtk_range_value_changed, self); -#line 2828 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = self->priv->adjust_tool_window; -#line 2828 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = _tmp14_->temperature_slider; -#line 2828 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_tools_adjust_tool_on_temperature_adjustment_gtk_range_value_changed, self); -#line 2829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = self->priv->adjust_tool_window; -#line 2829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = _tmp16_->shadows_slider; -#line 2829 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_tools_adjust_tool_on_shadows_adjustment_gtk_range_value_changed, self); -#line 2830 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = self->priv->adjust_tool_window; -#line 2830 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = _tmp18_->highlights_slider; -#line 2830 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_tools_adjust_tool_on_highlights_adjustment_gtk_range_value_changed, self); -#line 2831 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = self->priv->adjust_tool_window; -#line 2831 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = _tmp20_->histogram_manipulator; -#line 2831 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (_tmp21_, "nub-position-changed", (GCallback) _editing_tools_adjust_tool_on_histogram_constraint_rgb_histogram_manipulator_nub_position_changed, self); -#line 2833 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = self->priv->adjust_tool_window; -#line 2833 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = _tmp22_->saturation_slider; -#line 2833 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self); -#line 2834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = self->priv->adjust_tool_window; -#line 2834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = _tmp24_->exposure_slider; -#line 2834 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self); -#line 2835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = self->priv->adjust_tool_window; -#line 2835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = _tmp26_->contrast_slider; -#line 2835 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self); -#line 2836 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = self->priv->adjust_tool_window; -#line 2836 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29_ = _tmp28_->tint_slider; -#line 2836 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self); -#line 2837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp30_ = self->priv->adjust_tool_window; -#line 2837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp31_ = _tmp30_->temperature_slider; -#line 2837 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self); -#line 2838 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp32_ = self->priv->adjust_tool_window; -#line 2838 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33_ = _tmp32_->shadows_slider; -#line 2838 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self); -#line 2839 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp34_ = self->priv->adjust_tool_window; -#line 2839 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp35_ = _tmp34_->highlights_slider; -#line 2839 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self); -#line 17057 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_unbind_window_handlers (EditingToolsAdjustTool* self) -{ - EditingToolsAdjustToolAdjustToolWindow* _tmp0_; - GtkButton* _tmp1_; - guint _tmp2_; - EditingToolsAdjustToolAdjustToolWindow* _tmp3_; - GtkButton* _tmp4_; - guint _tmp5_; - EditingToolsAdjustToolAdjustToolWindow* _tmp6_; - GtkButton* _tmp7_; - guint _tmp8_; - EditingToolsAdjustToolAdjustToolWindow* _tmp9_; - GtkScale* _tmp10_; - guint _tmp11_; - EditingToolsAdjustToolAdjustToolWindow* _tmp12_; - GtkScale* _tmp13_; - guint _tmp14_; - EditingToolsAdjustToolAdjustToolWindow* _tmp15_; - GtkScale* _tmp16_; - guint _tmp17_; - EditingToolsAdjustToolAdjustToolWindow* _tmp18_; - GtkScale* _tmp19_; - guint _tmp20_; - EditingToolsAdjustToolAdjustToolWindow* _tmp21_; - GtkScale* _tmp22_; - guint _tmp23_; - EditingToolsAdjustToolAdjustToolWindow* _tmp24_; - GtkScale* _tmp25_; - guint _tmp26_; - EditingToolsAdjustToolAdjustToolWindow* _tmp27_; - GtkScale* _tmp28_; - guint _tmp29_; - EditingToolsAdjustToolAdjustToolWindow* _tmp30_; - RGBHistogramManipulator* _tmp31_; - guint _tmp32_; - EditingToolsAdjustToolAdjustToolWindow* _tmp33_; - GtkScale* _tmp34_; - guint _tmp35_; - EditingToolsAdjustToolAdjustToolWindow* _tmp36_; - GtkScale* _tmp37_; - guint _tmp38_; - EditingToolsAdjustToolAdjustToolWindow* _tmp39_; - GtkScale* _tmp40_; - guint _tmp41_; - EditingToolsAdjustToolAdjustToolWindow* _tmp42_; - GtkScale* _tmp43_; - guint _tmp44_; - EditingToolsAdjustToolAdjustToolWindow* _tmp45_; - GtkScale* _tmp46_; - guint _tmp47_; - EditingToolsAdjustToolAdjustToolWindow* _tmp48_; - GtkScale* _tmp49_; - guint _tmp50_; - EditingToolsAdjustToolAdjustToolWindow* _tmp51_; - GtkScale* _tmp52_; - guint _tmp53_; -#line 2842 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2843 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->adjust_tool_window; -#line 2843 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_->ok_button; -#line 2843 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp2_, NULL, FALSE); -#line 2843 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_ok_gtk_button_clicked, self); -#line 2844 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->priv->adjust_tool_window; -#line 2844 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_->reset_button; -#line 2844 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp5_, NULL, FALSE); -#line 2844 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_reset_gtk_button_clicked, self); -#line 2845 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = self->priv->adjust_tool_window; -#line 2845 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = _tmp6_->cancel_button; -#line 2845 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp8_, NULL, FALSE); -#line 2845 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (_tmp7_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _editing_tools_editing_tool_notify_cancel_gtk_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)); -#line 2846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->priv->adjust_tool_window; -#line 2846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_->exposure_slider; -#line 2846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp11_, NULL, FALSE); -#line 2846 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_exposure_adjustment_gtk_range_value_changed, self); -#line 2847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = self->priv->adjust_tool_window; -#line 2847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_->contrast_slider; -#line 2847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp14_, NULL, FALSE); -#line 2847 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_contrast_adjustment_gtk_range_value_changed, self); -#line 2848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = self->priv->adjust_tool_window; -#line 2848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = _tmp15_->saturation_slider; -#line 2848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp17_, NULL, FALSE); -#line 2848 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp17_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_saturation_adjustment_gtk_range_value_changed, self); -#line 2849 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = self->priv->adjust_tool_window; -#line 2849 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = _tmp18_->tint_slider; -#line 2849 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp20_, NULL, FALSE); -#line 2849 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp20_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_tint_adjustment_gtk_range_value_changed, self); -#line 2850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = self->priv->adjust_tool_window; -#line 2850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = _tmp21_->temperature_slider; -#line 2850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp23_, NULL, FALSE); -#line 2850 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp23_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_temperature_adjustment_gtk_range_value_changed, self); -#line 2851 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = self->priv->adjust_tool_window; -#line 2851 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = _tmp24_->shadows_slider; -#line 2851 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp26_, NULL, FALSE); -#line 2851 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp26_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_shadows_adjustment_gtk_range_value_changed, self); -#line 2852 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = self->priv->adjust_tool_window; -#line 2852 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = _tmp27_->highlights_slider; -#line 2852 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp29_, NULL, FALSE); -#line 2852 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp29_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_highlights_adjustment_gtk_range_value_changed, self); -#line 2853 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp30_ = self->priv->adjust_tool_window; -#line 2853 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp31_ = _tmp30_->histogram_manipulator; -#line 2853 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("nub-position-changed", TYPE_RGB_HISTOGRAM_MANIPULATOR, &_tmp32_, NULL, FALSE); -#line 2853 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (_tmp31_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp32_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_histogram_constraint_rgb_histogram_manipulator_nub_position_changed, self); -#line 2855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33_ = self->priv->adjust_tool_window; -#line 2855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp34_ = _tmp33_->saturation_slider; -#line 2855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp35_, NULL, FALSE); -#line 2855 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp35_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self); -#line 2856 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp36_ = self->priv->adjust_tool_window; -#line 2856 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp37_ = _tmp36_->exposure_slider; -#line 2856 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp38_, NULL, FALSE); -#line 2856 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp38_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self); -#line 2857 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp39_ = self->priv->adjust_tool_window; -#line 2857 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp40_ = _tmp39_->contrast_slider; -#line 2857 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp41_, NULL, FALSE); -#line 2857 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp41_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self); -#line 2858 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp42_ = self->priv->adjust_tool_window; -#line 2858 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp43_ = _tmp42_->tint_slider; -#line 2858 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp44_, NULL, FALSE); -#line 2858 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp44_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self); -#line 2859 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp45_ = self->priv->adjust_tool_window; -#line 2859 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp46_ = _tmp45_->temperature_slider; -#line 2859 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp47_, NULL, FALSE); -#line 2859 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp47_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self); -#line 2860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp48_ = self->priv->adjust_tool_window; -#line 2860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp49_ = _tmp48_->shadows_slider; -#line 2860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp50_, NULL, FALSE); -#line 2860 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp50_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self); -#line 2861 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp51_ = self->priv->adjust_tool_window; -#line 2861 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp52_ = _tmp51_->highlights_slider; -#line 2861 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("button-press-event", gtk_widget_get_type (), &_tmp53_, NULL, FALSE); -#line 2861 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp53_, 0, NULL, (GCallback) _editing_tools_adjust_tool_on_hscale_reset_gtk_widget_button_press_event, self); -#line 17264 "EditingTools.c" -} - - -gboolean -editing_tools_adjust_tool_enhance (EditingToolsAdjustTool* self) -{ - gboolean result = FALSE; - EditingToolsAdjustToolAdjustEnhanceCommand* command = NULL; - EditingToolsPhotoCanvas* _tmp0_; - Photo* _tmp1_; - Photo* _tmp2_; - EditingToolsAdjustToolAdjustEnhanceCommand* _tmp3_; - EditingToolsAdjustToolAdjustEnhanceCommand* _tmp4_; - CommandManager* _tmp5_; - CommandManager* _tmp6_; -#line 2864 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self), FALSE); -#line 2865 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2865 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = editing_tools_photo_canvas_get_photo (_tmp0_); -#line 2865 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_; -#line 2865 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = editing_tools_adjust_tool_adjust_enhance_command_new (self, _tmp2_); -#line 2865 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _tmp3_; -#line 2865 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp2_); -#line 2865 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - command = _tmp4_; -#line 2866 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = app_window_get_command_manager (); -#line 2866 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_; -#line 2866 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - command_manager_execute (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (command, TYPE_COMMAND, Command)); -#line 2866 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _command_manager_unref0 (_tmp6_); -#line 2868 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = TRUE; -#line 2868 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (command); -#line 2868 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 17310 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_on_photos_altered (EditingToolsAdjustTool* self, - GeeMap* map) -{ - EditingToolsPhotoCanvas* _tmp0_; - Photo* _tmp1_; - Photo* _tmp2_; - gboolean _tmp3_; - PixelTransformationBundle* adjustments = NULL; - EditingToolsPhotoCanvas* _tmp4_; - Photo* _tmp5_; - Photo* _tmp6_; - PixelTransformationBundle* _tmp7_; - PixelTransformationBundle* _tmp8_; - PixelTransformationBundle* _tmp9_; -#line 2871 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2871 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (GEE_IS_MAP (map)); -#line 2872 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2872 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = editing_tools_photo_canvas_get_photo (_tmp0_); -#line 2872 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = _tmp1_; -#line 2872 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = !gee_map_has_key (map, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_OBJECT, DataObject)); -#line 2872 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp2_); -#line 2872 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp3_) { -#line 2873 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return; -#line 17347 "EditingTools.c" - } -#line 2875 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2875 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = editing_tools_photo_canvas_get_photo (_tmp4_); -#line 2875 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_; -#line 2875 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = photo_get_color_adjustments (_tmp6_); -#line 2875 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = _tmp7_; -#line 2875 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp6_); -#line 2875 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - adjustments = _tmp8_; -#line 2876 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = adjustments; -#line 2876 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_set_adjustments (self, _tmp9_); -#line 2871 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_bundle_unref0 (adjustments); -#line 17369 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_set_adjustments (EditingToolsAdjustTool* self, - PixelTransformationBundle* new_adjustments) -{ - EditingToolsPhotoCanvas* _tmp8_; -#line 2879 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2879 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (IS_PIXEL_TRANSFORMATION_BUNDLE (new_adjustments)); -#line 2880 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_unbind_window_handlers (self); -#line 2882 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_update_transformations (self, new_adjustments); -#line 17386 "EditingTools.c" - { - GeeIterator* _adjustment_it = NULL; - GeeIterable* _tmp0_; - GeeIterable* _tmp1_; - GeeIterator* _tmp2_; - GeeIterator* _tmp3_; -#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = pixel_transformation_bundle_get_transformations (new_adjustments); -#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_; -#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = gee_iterable_iterator (_tmp1_); -#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_; -#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp1_); -#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _adjustment_it = _tmp3_; -#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - while (TRUE) { -#line 17407 "EditingTools.c" - GeeIterator* _tmp4_; - PixelTransformation* adjustment = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - PixelTransformation* _tmp7_; -#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = _adjustment_it; -#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 17419 "EditingTools.c" - } -#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = _adjustment_it; -#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - adjustment = (PixelTransformation*) _tmp6_; -#line 2885 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = adjustment; -#line 2885 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_update_slider (self, _tmp7_); -#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (adjustment); -#line 17433 "EditingTools.c" - } -#line 2884 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_adjustment_it); -#line 17437 "EditingTools.c" - } -#line 2887 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_bind_window_handlers (self); -#line 2888 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2888 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_repaint (_tmp8_); -#line 17445 "EditingTools.c" -} - - -static gpointer -_pixel_transformation_ref0 (gpointer self) -{ -#line 2896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self ? pixel_transformation_ref (self) : NULL; -#line 17454 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_update_slider (EditingToolsAdjustTool* self, - PixelTransformation* transformation) -{ -#line 2893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2893 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (IS_PIXEL_TRANSFORMATION (transformation)); -#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - switch (pixel_transformation_get_transformation_type (transformation)) { -#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION: -#line 17470 "EditingTools.c" - { - ExpansionTransformation* expansion = NULL; - ExpansionTransformation* _tmp0_; - gboolean _tmp1_; -#line 2896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = _pixel_transformation_ref0 (G_TYPE_CHECK_INSTANCE_CAST (transformation, TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation)); -#line 2896 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - expansion = _tmp0_; -#line 2898 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->disable_histogram_refresh; -#line 2898 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!_tmp1_) { -#line 17483 "EditingTools.c" - EditingToolsAdjustToolAdjustToolWindow* _tmp2_; - RGBHistogramManipulator* _tmp3_; - ExpansionTransformation* _tmp4_; - EditingToolsAdjustToolAdjustToolWindow* _tmp5_; - RGBHistogramManipulator* _tmp6_; - ExpansionTransformation* _tmp7_; -#line 2899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->adjust_tool_window; -#line 2899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = _tmp2_->histogram_manipulator; -#line 2899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = expansion; -#line 2899 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - rgb_histogram_manipulator_set_left_nub_position (_tmp3_, expansion_transformation_get_black_point (_tmp4_)); -#line 2901 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = self->priv->adjust_tool_window; -#line 2901 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_->histogram_manipulator; -#line 2901 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = expansion; -#line 2901 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - rgb_histogram_manipulator_set_right_nub_position (_tmp6_, expansion_transformation_get_white_point (_tmp7_)); -#line 17506 "EditingTools.c" - } -#line 2904 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (expansion); -#line 2904 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 17512 "EditingTools.c" - } -#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case PIXEL_TRANSFORMATION_TYPE_SHADOWS: -#line 17516 "EditingTools.c" - { - EditingToolsAdjustToolAdjustToolWindow* _tmp8_; - GtkScale* _tmp9_; -#line 2907 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = self->priv->adjust_tool_window; -#line 2907 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = _tmp8_->shadows_slider; -#line 2907 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_range_get_type (), GtkRange), (gdouble) shadow_detail_transformation_get_parameter (G_TYPE_CHECK_INSTANCE_CAST (transformation, TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformation))); -#line 2909 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 17528 "EditingTools.c" - } -#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case PIXEL_TRANSFORMATION_TYPE_CONTRAST: -#line 17532 "EditingTools.c" - { - EditingToolsAdjustToolAdjustToolWindow* _tmp10_; - GtkScale* _tmp11_; -#line 2912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = self->priv->adjust_tool_window; -#line 2912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _tmp10_->contrast_slider; -#line 2912 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_range_get_type (), GtkRange), (gdouble) contrast_transformation_get_parameter (G_TYPE_CHECK_INSTANCE_CAST (transformation, TYPE_CONTRAST_TRANSFORMATION, ContrastTransformation))); -#line 2914 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 17544 "EditingTools.c" - } -#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case PIXEL_TRANSFORMATION_TYPE_HIGHLIGHTS: -#line 17548 "EditingTools.c" - { - EditingToolsAdjustToolAdjustToolWindow* _tmp12_; - GtkScale* _tmp13_; -#line 2917 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = self->priv->adjust_tool_window; -#line 2917 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = _tmp12_->highlights_slider; -#line 2917 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_range_get_type (), GtkRange), (gdouble) highlight_detail_transformation_get_parameter (G_TYPE_CHECK_INSTANCE_CAST (transformation, TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformation))); -#line 2919 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 17560 "EditingTools.c" - } -#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case PIXEL_TRANSFORMATION_TYPE_EXPOSURE: -#line 17564 "EditingTools.c" - { - EditingToolsAdjustToolAdjustToolWindow* _tmp14_; - GtkScale* _tmp15_; -#line 2922 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = self->priv->adjust_tool_window; -#line 2922 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = _tmp14_->exposure_slider; -#line 2922 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_range_get_type (), GtkRange), (gdouble) exposure_transformation_get_parameter (G_TYPE_CHECK_INSTANCE_CAST (transformation, TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformation))); -#line 2924 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 17576 "EditingTools.c" - } -#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case PIXEL_TRANSFORMATION_TYPE_SATURATION: -#line 17580 "EditingTools.c" - { - EditingToolsAdjustToolAdjustToolWindow* _tmp16_; - GtkScale* _tmp17_; -#line 2927 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = self->priv->adjust_tool_window; -#line 2927 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = _tmp16_->saturation_slider; -#line 2927 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_range_get_type (), GtkRange), (gdouble) saturation_transformation_get_parameter (G_TYPE_CHECK_INSTANCE_CAST (transformation, TYPE_SATURATION_TRANSFORMATION, SaturationTransformation))); -#line 2929 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 17592 "EditingTools.c" - } -#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case PIXEL_TRANSFORMATION_TYPE_TINT: -#line 17596 "EditingTools.c" - { - EditingToolsAdjustToolAdjustToolWindow* _tmp18_; - GtkScale* _tmp19_; -#line 2932 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = self->priv->adjust_tool_window; -#line 2932 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = _tmp18_->tint_slider; -#line 2932 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_range_get_type (), GtkRange), (gdouble) tint_transformation_get_parameter (G_TYPE_CHECK_INSTANCE_CAST (transformation, TYPE_TINT_TRANSFORMATION, TintTransformation))); -#line 2934 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 17608 "EditingTools.c" - } -#line 2894 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - case PIXEL_TRANSFORMATION_TYPE_TEMPERATURE: -#line 17612 "EditingTools.c" - { - EditingToolsAdjustToolAdjustToolWindow* _tmp20_; - GtkScale* _tmp21_; -#line 2937 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = self->priv->adjust_tool_window; -#line 2937 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = _tmp20_->temperature_slider; -#line 2937 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_range_get_type (), GtkRange), (gdouble) temperature_transformation_get_parameter (G_TYPE_CHECK_INSTANCE_CAST (transformation, TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformation))); -#line 2939 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 17624 "EditingTools.c" - } - default: - { -#line 2942 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_error ("EditingTools.vala:2942: Unknown adjustment: %d", (gint) pixel_transformation_get_transformation_type (transformation)); -#line 17630 "EditingTools.c" - } - } -} - - -static void -editing_tools_adjust_tool_init_fp_pixel_cache (EditingToolsAdjustTool* self, - GdkPixbuf* source) -{ - gint source_width = 0; - gint source_height = 0; - gint source_num_channels = 0; - gint source_rowstride = 0; - guchar* source_pixels = NULL; - guint8* _tmp0_; - gint source_pixels_length1; - gint _source_pixels_size_; - gint _tmp1_; - gint _tmp2_; - gfloat* _tmp3_; - gint cache_pixel_index = 0; -#line 2946 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (self)); -#line 2946 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (GDK_IS_PIXBUF (source)); -#line 2947 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - source_width = gdk_pixbuf_get_width (source); -#line 2948 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - source_height = gdk_pixbuf_get_height (source); -#line 2949 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - source_num_channels = gdk_pixbuf_get_n_channels (source); -#line 2950 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - source_rowstride = gdk_pixbuf_get_rowstride (source); -#line 2951 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = gdk_pixbuf_get_pixels (source); -#line 2951 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - source_pixels = _tmp0_; -#line 2951 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - source_pixels_length1 = -1; -#line 2951 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _source_pixels_size_ = source_pixels_length1; -#line 2953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = source_width; -#line 2953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = source_height; -#line 2953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = g_new0 (gfloat, (3 * _tmp1_) * _tmp2_); -#line 2953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->fp_pixel_cache = (g_free (self->priv->fp_pixel_cache), NULL); -#line 2953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->fp_pixel_cache = _tmp3_; -#line 2953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->fp_pixel_cache_length1 = (3 * _tmp1_) * _tmp2_; -#line 2953 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->_fp_pixel_cache_size_ = self->priv->fp_pixel_cache_length1; -#line 2954 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cache_pixel_index = 0; -#line 17688 "EditingTools.c" - { - gint j = 0; -#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - j = 0; -#line 17693 "EditingTools.c" - { - gboolean _tmp4_ = FALSE; -#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = TRUE; -#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - while (TRUE) { -#line 17700 "EditingTools.c" - gint _tmp6_; - gint _tmp7_; - gint row_start_index = 0; - gint _tmp8_; - gint _tmp9_; - gint row_end_index = 0; - gint _tmp10_; - gint _tmp11_; - gint _tmp12_; -#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!_tmp4_) { -#line 17712 "EditingTools.c" - gint _tmp5_; -#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = j; -#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - j = _tmp5_ + 1; -#line 17718 "EditingTools.c" - } -#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = FALSE; -#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = j; -#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = source_height; -#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 2956 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 17730 "EditingTools.c" - } -#line 2957 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = j; -#line 2957 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = source_rowstride; -#line 2957 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - row_start_index = _tmp8_ * _tmp9_; -#line 2958 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = row_start_index; -#line 2958 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = source_width; -#line 2958 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = source_num_channels; -#line 2958 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - row_end_index = _tmp10_ + (_tmp11_ * _tmp12_); -#line 17746 "EditingTools.c" - { - gint i = 0; - gint _tmp13_; -#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = row_start_index; -#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - i = _tmp13_; -#line 17754 "EditingTools.c" - { - gboolean _tmp14_ = FALSE; -#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = TRUE; -#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - while (TRUE) { -#line 17761 "EditingTools.c" - gint _tmp17_; - gint _tmp18_; - gfloat* _tmp19_; - gint _tmp19__length1; - gint _tmp20_; - guchar* _tmp21_; - gint _tmp21__length1; - gint _tmp22_; - guchar _tmp23_; - gfloat _tmp24_; - gfloat _tmp25_; - gfloat* _tmp26_; - gint _tmp26__length1; - gint _tmp27_; - guchar* _tmp28_; - gint _tmp28__length1; - gint _tmp29_; - guchar _tmp30_; - gfloat _tmp31_; - gfloat _tmp32_; - gfloat* _tmp33_; - gint _tmp33__length1; - gint _tmp34_; - guchar* _tmp35_; - gint _tmp35__length1; - gint _tmp36_; - guchar _tmp37_; - gfloat _tmp38_; - gfloat _tmp39_; -#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!_tmp14_) { -#line 17793 "EditingTools.c" - gint _tmp15_; - gint _tmp16_; -#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = i; -#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = source_num_channels; -#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - i = _tmp15_ + _tmp16_; -#line 17802 "EditingTools.c" - } -#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = FALSE; -#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = i; -#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = row_end_index; -#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (!(_tmp17_ < _tmp18_)) { -#line 2959 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - break; -#line 17814 "EditingTools.c" - } -#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = self->priv->fp_pixel_cache; -#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19__length1 = self->priv->fp_pixel_cache_length1; -#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = cache_pixel_index; -#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cache_pixel_index = _tmp20_ + 1; -#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = source_pixels; -#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21__length1 = source_pixels_length1; -#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = i; -#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = _tmp21_[_tmp22_]; -#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = rgb_lookup_table[_tmp23_]; -#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_[_tmp20_] = _tmp24_; -#line 2960 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = _tmp19_[_tmp20_]; -#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = self->priv->fp_pixel_cache; -#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26__length1 = self->priv->fp_pixel_cache_length1; -#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = cache_pixel_index; -#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cache_pixel_index = _tmp27_ + 1; -#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = source_pixels; -#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28__length1 = source_pixels_length1; -#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29_ = i; -#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp30_ = _tmp28_[_tmp29_ + 1]; -#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp31_ = rgb_lookup_table[_tmp30_]; -#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_[_tmp27_] = _tmp31_; -#line 2961 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp32_ = _tmp26_[_tmp27_]; -#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33_ = self->priv->fp_pixel_cache; -#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33__length1 = self->priv->fp_pixel_cache_length1; -#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp34_ = cache_pixel_index; -#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - cache_pixel_index = _tmp34_ + 1; -#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp35_ = source_pixels; -#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp35__length1 = source_pixels_length1; -#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp36_ = i; -#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp37_ = _tmp35_[_tmp36_ + 2]; -#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp38_ = rgb_lookup_table[_tmp37_]; -#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33_[_tmp34_] = _tmp38_; -#line 2962 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp39_ = _tmp33_[_tmp34_]; -#line 17882 "EditingTools.c" - } - } - } - } - } - } -} - - -static gboolean -editing_tools_adjust_tool_real_on_keypress (EditingToolsEditingTool* base, - GdkEventKey* event) -{ - EditingToolsAdjustTool * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - guint _tmp2_; - const gchar* _tmp3_; -#line 2967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool); -#line 2967 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 2968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = event->keyval; -#line 2968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = gdk_keyval_name (_tmp2_); -#line 2968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (g_strcmp0 (_tmp3_, "KP_Enter") == 0) { -#line 2968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = TRUE; -#line 17914 "EditingTools.c" - } else { - guint _tmp4_; - const gchar* _tmp5_; -#line 2969 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = event->keyval; -#line 2969 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = gdk_keyval_name (_tmp4_); -#line 2969 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = g_strcmp0 (_tmp5_, "Enter") == 0; -#line 17924 "EditingTools.c" - } -#line 2968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp1_) { -#line 2968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = TRUE; -#line 17930 "EditingTools.c" - } else { - guint _tmp6_; - const gchar* _tmp7_; -#line 2970 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = event->keyval; -#line 2970 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = gdk_keyval_name (_tmp6_); -#line 2970 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = g_strcmp0 (_tmp7_, "Return") == 0; -#line 17940 "EditingTools.c" - } -#line 2968 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_) { -#line 2971 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_on_ok (self); -#line 2972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = TRUE; -#line 2972 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 17950 "EditingTools.c" - } -#line 2975 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_adjust_tool_parent_class)->on_keypress (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), event); -#line 2975 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 17956 "EditingTools.c" -} - - -static EditingToolsAdjustToolAdjustToolWindow* -editing_tools_adjust_tool_adjust_tool_window_construct (GType object_type, - GtkWindow* container) -{ - EditingToolsAdjustToolAdjustToolWindow * self = NULL; - GtkGrid* slider_organizer = NULL; - GtkGrid* _tmp0_; - GtkLabel* exposure_label = NULL; - GtkLabel* _tmp1_; - GtkScale* _tmp2_; - GtkScale* _tmp3_; - GtkScale* _tmp4_; - GtkScale* _tmp5_; - GtkLabel* contrast_label = NULL; - GtkLabel* _tmp6_; - GtkScale* _tmp7_; - GtkScale* _tmp8_; - GtkScale* _tmp9_; - GtkScale* _tmp10_; - GtkLabel* saturation_label = NULL; - GtkLabel* _tmp11_; - GtkScale* _tmp12_; - GtkScale* _tmp13_; - GtkScale* _tmp14_; - GtkScale* _tmp15_; - GtkLabel* tint_label = NULL; - GtkLabel* _tmp16_; - GtkScale* _tmp17_; - GtkScale* _tmp18_; - GtkScale* _tmp19_; - GtkScale* _tmp20_; - GtkLabel* temperature_label = NULL; - GtkLabel* _tmp21_; - GtkScale* _tmp22_; - GtkScale* _tmp23_; - GtkScale* _tmp24_; - GtkScale* _tmp25_; - GtkLabel* shadows_label = NULL; - GtkLabel* _tmp26_; - GtkScale* _tmp27_; - GtkScale* _tmp28_; - GtkScale* _tmp29_; - GtkScale* _tmp30_; - GtkLabel* highlights_label = NULL; - GtkLabel* _tmp31_; - GtkScale* _tmp32_; - GtkScale* _tmp33_; - GtkScale* _tmp34_; - GtkScale* _tmp35_; - GtkBox* button_layouter = NULL; - GtkBox* _tmp36_; - GtkButton* _tmp37_; - GtkButton* _tmp38_; - GtkButton* _tmp39_; - RGBHistogramManipulator* _tmp40_; - RGBHistogramManipulator* _tmp41_; - RGBHistogramManipulator* _tmp42_; - RGBHistogramManipulator* _tmp43_; - GtkBox* pane_layouter = NULL; - GtkBox* _tmp44_; - RGBHistogramManipulator* _tmp45_; - RGBHistogramManipulator* _tmp46_; -#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (GTK_IS_WINDOW (container), NULL); -#line 2221 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = (EditingToolsAdjustToolAdjustToolWindow*) editing_tools_editing_tool_window_construct (object_type, container); -#line 2223 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = (GtkGrid*) gtk_grid_new (); -#line 2223 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp0_); -#line 2223 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - slider_organizer = _tmp0_; -#line 2224 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_grid_set_column_homogeneous (slider_organizer, FALSE); -#line 2225 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_grid_set_row_spacing (slider_organizer, (guint) 12); -#line 2226 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_grid_set_column_spacing (slider_organizer, (guint) 12); -#line 2227 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (slider_organizer, gtk_widget_get_type (), GtkWidget), 12); -#line 2228 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (slider_organizer, gtk_widget_get_type (), GtkWidget), 12); -#line 2230 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = (GtkLabel*) gtk_label_new_with_mnemonic (_ ("Exposure:")); -#line 2230 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp1_); -#line 2230 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - exposure_label = _tmp1_; -#line 2231 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (exposure_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START); -#line 2232 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (exposure_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 2233 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (exposure_label, gtk_widget_get_type (), GtkWidget), 0, 0, 1, 1); -#line 2234 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->exposure_slider; -#line 2234 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), 1, 0, 1, 1); -#line 2235 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = self->exposure_slider; -#line 2235 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_ADJUST_TOOL_SLIDER_WIDTH, -1); -#line 2236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->exposure_slider; -#line 2236 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_scale_set_value_pos (_tmp4_, GTK_POS_RIGHT); -#line 2237 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = self->exposure_slider; -#line 2237 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), 0); -#line 2239 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = (GtkLabel*) gtk_label_new_with_mnemonic (_ ("Contrast:")); -#line 2239 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp6_); -#line 2239 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - contrast_label = _tmp6_; -#line 2240 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (contrast_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START); -#line 2241 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (contrast_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 2242 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (contrast_label, gtk_widget_get_type (), GtkWidget), 0, 1, 1, 1); -#line 2243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = self->contrast_slider; -#line 2243 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), 1, 1, 1, 1); -#line 2244 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = self->contrast_slider; -#line 2244 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_ADJUST_TOOL_SLIDER_WIDTH, -1); -#line 2245 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = self->contrast_slider; -#line 2245 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_scale_set_value_pos (_tmp9_, GTK_POS_RIGHT); -#line 2246 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = self->contrast_slider; -#line 2246 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), 0); -#line 2248 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = (GtkLabel*) gtk_label_new_with_mnemonic (_ ("Saturation:")); -#line 2248 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp11_); -#line 2248 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - saturation_label = _tmp11_; -#line 2249 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (saturation_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START); -#line 2250 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (saturation_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 2251 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (saturation_label, gtk_widget_get_type (), GtkWidget), 0, 2, 1, 1); -#line 2252 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = self->saturation_slider; -#line 2252 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), 1, 2, 1, 1); -#line 2253 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = self->saturation_slider; -#line 2253 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_ADJUST_TOOL_SLIDER_WIDTH, -1); -#line 2254 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = self->saturation_slider; -#line 2254 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_scale_set_value_pos (_tmp14_, GTK_POS_RIGHT); -#line 2255 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp15_ = self->saturation_slider; -#line 2255 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_widget_get_type (), GtkWidget), 0); -#line 2257 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp16_ = (GtkLabel*) gtk_label_new_with_mnemonic (_ ("Tint:")); -#line 2257 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp16_); -#line 2257 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - tint_label = _tmp16_; -#line 2258 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (tint_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START); -#line 2259 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (tint_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 2260 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (tint_label, gtk_widget_get_type (), GtkWidget), 0, 3, 1, 1); -#line 2261 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp17_ = self->tint_slider; -#line 2261 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), 1, 3, 1, 1); -#line 2262 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp18_ = self->tint_slider; -#line 2262 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_ADJUST_TOOL_SLIDER_WIDTH, -1); -#line 2263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp19_ = self->tint_slider; -#line 2263 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_scale_set_value_pos (_tmp19_, GTK_POS_RIGHT); -#line 2264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp20_ = self->tint_slider; -#line 2264 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), 0); -#line 2266 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp21_ = (GtkLabel*) gtk_label_new_with_mnemonic (_ ("Temperature:")); -#line 2266 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp21_); -#line 2266 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - temperature_label = _tmp21_; -#line 2268 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (temperature_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START); -#line 2269 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (temperature_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 2270 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (temperature_label, gtk_widget_get_type (), GtkWidget), 0, 4, 1, 1); -#line 2271 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp22_ = self->temperature_slider; -#line 2271 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget), 1, 4, 1, 1); -#line 2272 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp23_ = self->temperature_slider; -#line 2272 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_ADJUST_TOOL_SLIDER_WIDTH, -1); -#line 2273 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp24_ = self->temperature_slider; -#line 2273 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_scale_set_value_pos (_tmp24_, GTK_POS_RIGHT); -#line 2274 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp25_ = self->temperature_slider; -#line 2274 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget), 0); -#line 2276 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp26_ = (GtkLabel*) gtk_label_new_with_mnemonic (_ ("Shadows:")); -#line 2276 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp26_); -#line 2276 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - shadows_label = _tmp26_; -#line 2277 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (shadows_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START); -#line 2278 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (shadows_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 2279 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (shadows_label, gtk_widget_get_type (), GtkWidget), 0, 5, 1, 1); -#line 2280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp27_ = self->shadows_slider; -#line 2280 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), 1, 5, 1, 1); -#line 2281 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp28_ = self->shadows_slider; -#line 2281 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_ADJUST_TOOL_SLIDER_WIDTH, -1); -#line 2282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp29_ = self->shadows_slider; -#line 2282 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_scale_set_value_pos (_tmp29_, GTK_POS_RIGHT); -#line 2285 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp30_ = self->shadows_slider; -#line 2285 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_widget_get_type (), GtkWidget), 5); -#line 2287 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp31_ = (GtkLabel*) gtk_label_new_with_mnemonic (_ ("Highlights:")); -#line 2287 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp31_); -#line 2287 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - highlights_label = _tmp31_; -#line 2288 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (highlights_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START); -#line 2289 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (highlights_label, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 2290 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (highlights_label, gtk_widget_get_type (), GtkWidget), 0, 6, 1, 1); -#line 2291 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp32_ = self->highlights_slider; -#line 2291 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_grid_attach (slider_organizer, G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_widget_get_type (), GtkWidget), 1, 6, 1, 1); -#line 2292 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp33_ = self->highlights_slider; -#line 2292 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_ADJUST_TOOL_SLIDER_WIDTH, -1); -#line 2293 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp34_ = self->highlights_slider; -#line 2293 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_scale_set_value_pos (_tmp34_, GTK_POS_RIGHT); -#line 2294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp35_ = self->highlights_slider; -#line 2294 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_widget_get_type (), GtkWidget), 0); -#line 2296 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp36_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); -#line 2296 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp36_); -#line 2296 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - button_layouter = _tmp36_; -#line 2297 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_box_set_homogeneous (button_layouter, TRUE); -#line 2298 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp37_ = self->cancel_button; -#line 2298 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_box_pack_start (button_layouter, G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 1); -#line 2299 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp38_ = self->reset_button; -#line 2299 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_box_pack_start (button_layouter, G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 1); -#line 2300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp39_ = self->ok_button; -#line 2300 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_box_pack_start (button_layouter, G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 1); -#line 2302 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp40_ = self->histogram_manipulator; -#line 2302 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, gtk_widget_get_type (), GtkWidget), 12); -#line 2303 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp41_ = self->histogram_manipulator; -#line 2303 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget), 12); -#line 2304 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp42_ = self->histogram_manipulator; -#line 2304 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_widget_get_type (), GtkWidget), 12); -#line 2305 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp43_ = self->histogram_manipulator; -#line 2305 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_widget_get_type (), GtkWidget), 8); -#line 2307 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp44_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); -#line 2307 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp44_); -#line 2307 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - pane_layouter = _tmp44_; -#line 2308 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp45_ = self->histogram_manipulator; -#line 2308 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (pane_layouter, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_widget_get_type (), GtkWidget)); -#line 2309 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (pane_layouter, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (slider_organizer, gtk_widget_get_type (), GtkWidget)); -#line 2310 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (pane_layouter, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (button_layouter, gtk_widget_get_type (), GtkWidget)); -#line 2311 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp46_ = self->histogram_manipulator; -#line 2311 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_box_set_child_packing (pane_layouter, G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_widget_get_type (), GtkWidget), FALSE, TRUE, (guint) 0, GTK_PACK_START); -#line 2313 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (pane_layouter, gtk_widget_get_type (), GtkWidget)); -#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (pane_layouter); -#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (button_layouter); -#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (highlights_label); -#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (shadows_label); -#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (temperature_label); -#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (tint_label); -#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (saturation_label); -#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (contrast_label); -#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (exposure_label); -#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (slider_organizer); -#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self; -#line 18316 "EditingTools.c" -} - - -static EditingToolsAdjustToolAdjustToolWindow* -editing_tools_adjust_tool_adjust_tool_window_new (GtkWindow* container) -{ -#line 2220 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return editing_tools_adjust_tool_adjust_tool_window_construct (EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_WINDOW, container); -#line 18325 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_adjust_tool_window_class_init (EditingToolsAdjustToolAdjustToolWindowClass * klass) -{ -#line 2191 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_adjust_tool_window_parent_class = g_type_class_peek_parent (klass); -#line 2191 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_OBJECT_CLASS (klass)->finalize = editing_tools_adjust_tool_adjust_tool_window_finalize; -#line 18336 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_adjust_tool_window_instance_init (EditingToolsAdjustToolAdjustToolWindow * self) -{ - GtkScale* _tmp0_; - GtkScale* _tmp1_; - GtkScale* _tmp2_; - GtkScale* _tmp3_; - GtkScale* _tmp4_; - GtkScale* _tmp5_; - GtkScale* _tmp6_; - GtkButton* _tmp7_; - GtkButton* _tmp8_; - GtkButton* _tmp9_; - RGBHistogramManipulator* _tmp10_; -#line 2192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) EXPOSURE_TRANSFORMATION_MIN_PARAMETER, (gdouble) EXPOSURE_TRANSFORMATION_MAX_PARAMETER, 1.0); -#line 2192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp0_); -#line 2192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->exposure_slider = _tmp0_; -#line 2195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) CONTRAST_TRANSFORMATION_MIN_PARAMETER, (gdouble) CONTRAST_TRANSFORMATION_MAX_PARAMETER, 1.0); -#line 2195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp1_); -#line 2195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->contrast_slider = _tmp1_; -#line 2198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) SATURATION_TRANSFORMATION_MIN_PARAMETER, (gdouble) SATURATION_TRANSFORMATION_MAX_PARAMETER, 1.0); -#line 2198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp2_); -#line 2198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->saturation_slider = _tmp2_; -#line 2201 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) TINT_TRANSFORMATION_MIN_PARAMETER, (gdouble) TINT_TRANSFORMATION_MAX_PARAMETER, 1.0); -#line 2201 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp3_); -#line 2201 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->tint_slider = _tmp3_; -#line 2203 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) TEMPERATURE_TRANSFORMATION_MIN_PARAMETER, (gdouble) TEMPERATURE_TRANSFORMATION_MAX_PARAMETER, 1.0); -#line 2203 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp4_); -#line 2203 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->temperature_slider = _tmp4_; -#line 2207 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) SHADOW_DETAIL_TRANSFORMATION_MIN_PARAMETER, (gdouble) SHADOW_DETAIL_TRANSFORMATION_MAX_PARAMETER, 1.0); -#line 2207 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp5_); -#line 2207 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->shadows_slider = _tmp5_; -#line 2211 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, (gdouble) HIGHLIGHT_DETAIL_TRANSFORMATION_MIN_PARAMETER, (gdouble) HIGHLIGHT_DETAIL_TRANSFORMATION_MAX_PARAMETER, 1.0); -#line 2211 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp6_); -#line 2211 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->highlights_slider = _tmp6_; -#line 2215 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = (GtkButton*) gtk_button_new_with_mnemonic (RESOURCES_OK_LABEL); -#line 2215 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp7_); -#line 2215 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->ok_button = _tmp7_; -#line 2216 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = (GtkButton*) gtk_button_new_with_mnemonic (_ ("_Reset")); -#line 2216 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp8_); -#line 2216 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->reset_button = _tmp8_; -#line 2217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = (GtkButton*) gtk_button_new_with_mnemonic (RESOURCES_CANCEL_LABEL); -#line 2217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp9_); -#line 2217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->cancel_button = _tmp9_; -#line 2218 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = rgb_histogram_manipulator_new (); -#line 2218 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_object_ref_sink (_tmp10_); -#line 2218 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->histogram_manipulator = _tmp10_; -#line 18420 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_adjust_tool_window_finalize (GObject * obj) -{ - EditingToolsAdjustToolAdjustToolWindow * self; -#line 2191 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_WINDOW, EditingToolsAdjustToolAdjustToolWindow); -#line 2192 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->exposure_slider); -#line 2195 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->contrast_slider); -#line 2198 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->saturation_slider); -#line 2201 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->tint_slider); -#line 2203 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->temperature_slider); -#line 2207 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->shadows_slider); -#line 2211 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->highlights_slider); -#line 2215 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->ok_button); -#line 2216 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->reset_button); -#line 2217 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->cancel_button); -#line 2218 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->histogram_manipulator); -#line 2191 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_OBJECT_CLASS (editing_tools_adjust_tool_adjust_tool_window_parent_class)->finalize (obj); -#line 18454 "EditingTools.c" -} - - -static GType -editing_tools_adjust_tool_adjust_tool_window_get_type (void) -{ - static volatile gsize editing_tools_adjust_tool_adjust_tool_window_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_adjust_tool_adjust_tool_window_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditingToolsAdjustToolAdjustToolWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_adjust_tool_adjust_tool_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsAdjustToolAdjustToolWindow), 0, (GInstanceInitFunc) editing_tools_adjust_tool_adjust_tool_window_instance_init, NULL }; - GType editing_tools_adjust_tool_adjust_tool_window_type_id; - editing_tools_adjust_tool_adjust_tool_window_type_id = g_type_register_static (EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, "EditingToolsAdjustToolAdjustToolWindow", &g_define_type_info, 0); - g_once_init_leave (&editing_tools_adjust_tool_adjust_tool_window_type_id__volatile, editing_tools_adjust_tool_adjust_tool_window_type_id); - } - return editing_tools_adjust_tool_adjust_tool_window_type_id__volatile; -} - - -static void -_editing_tools_adjust_tool_adjust_tool_command_on_owner_deactivated_editing_tools_editing_tool_deactivated (EditingToolsEditingTool* _sender, - gpointer self) -{ -#line 2329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_adjust_tool_command_on_owner_deactivated ((EditingToolsAdjustToolAdjustToolCommand*) self); -#line 18478 "EditingTools.c" -} - - -static EditingToolsAdjustToolAdjustToolCommand* -editing_tools_adjust_tool_adjust_tool_command_construct (GType object_type, - EditingToolsAdjustTool* owner, - const gchar* name, - const gchar* explanation) -{ - EditingToolsAdjustToolAdjustToolCommand * self = NULL; -#line 2320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (owner), NULL); -#line 2320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 2320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (explanation != NULL, NULL); -#line 2321 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = (EditingToolsAdjustToolAdjustToolCommand*) command_construct (object_type, name, explanation); -#line 2323 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->owner = owner; -#line 2324 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (owner, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), "deactivated", (GCallback) _editing_tools_adjust_tool_adjust_tool_command_on_owner_deactivated_editing_tools_editing_tool_deactivated, self, 0); -#line 2320 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self; -#line 18503 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_adjust_tool_command_on_owner_deactivated (EditingToolsAdjustToolAdjustToolCommand* self) -{ - CommandManager* _tmp0_; - CommandManager* _tmp1_; -#line 2332 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_if_fail (EDITING_TOOLS_ADJUST_TOOL_IS_ADJUST_TOOL_COMMAND (self)); -#line 2335 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = app_window_get_command_manager (); -#line 2335 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _tmp0_; -#line 2335 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - command_manager_reset (_tmp1_); -#line 2335 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _command_manager_unref0 (_tmp1_); -#line 18522 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_adjust_tool_command_class_init (EditingToolsAdjustToolAdjustToolCommandClass * klass) -{ -#line 2317 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_adjust_tool_command_parent_class = g_type_class_peek_parent (klass); -#line 2317 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_OBJECT_CLASS (klass)->finalize = editing_tools_adjust_tool_adjust_tool_command_finalize; -#line 18533 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_adjust_tool_command_instance_init (EditingToolsAdjustToolAdjustToolCommand * self) -{ -} - - -static void -editing_tools_adjust_tool_adjust_tool_command_finalize (GObject * obj) -{ - EditingToolsAdjustToolAdjustToolCommand * self; - EditingToolsAdjustTool* _tmp0_; -#line 2317 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand); -#line 2328 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->owner; -#line 2328 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ != NULL) { -#line 18554 "EditingTools.c" - EditingToolsAdjustTool* _tmp1_; - guint _tmp2_; -#line 2329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->owner; -#line 2329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_parse_name ("deactivated", EDITING_TOOLS_TYPE_EDITING_TOOL, &_tmp2_, NULL, FALSE); -#line 2329 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _editing_tools_adjust_tool_adjust_tool_command_on_owner_deactivated_editing_tools_editing_tool_deactivated, self); -#line 18563 "EditingTools.c" - } -#line 2317 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_OBJECT_CLASS (editing_tools_adjust_tool_adjust_tool_command_parent_class)->finalize (obj); -#line 18567 "EditingTools.c" -} - - -static GType -editing_tools_adjust_tool_adjust_tool_command_get_type (void) -{ - static volatile gsize editing_tools_adjust_tool_adjust_tool_command_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_adjust_tool_adjust_tool_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditingToolsAdjustToolAdjustToolCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_adjust_tool_adjust_tool_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsAdjustToolAdjustToolCommand), 0, (GInstanceInitFunc) editing_tools_adjust_tool_adjust_tool_command_instance_init, NULL }; - GType editing_tools_adjust_tool_adjust_tool_command_type_id; - editing_tools_adjust_tool_adjust_tool_command_type_id = g_type_register_static (TYPE_COMMAND, "EditingToolsAdjustToolAdjustToolCommand", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&editing_tools_adjust_tool_adjust_tool_command_type_id__volatile, editing_tools_adjust_tool_adjust_tool_command_type_id); - } - return editing_tools_adjust_tool_adjust_tool_command_type_id__volatile; -} - - -static EditingToolsAdjustToolAdjustResetCommand* -editing_tools_adjust_tool_adjust_reset_command_construct (GType object_type, - EditingToolsAdjustTool* owner, - PixelTransformationBundle* current) -{ - EditingToolsAdjustToolAdjustResetCommand * self = NULL; - PixelTransformationBundle* _tmp0_; - PixelTransformationBundle* _tmp1_; - PixelTransformationBundle* _tmp2_; -#line 2343 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (owner), NULL); -#line 2343 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (IS_PIXEL_TRANSFORMATION_BUNDLE (current), NULL); -#line 2344 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = (EditingToolsAdjustToolAdjustResetCommand*) editing_tools_adjust_tool_adjust_tool_command_construct (object_type, owner, _ ("Reset Colors"), _ ("Reset all color adjustments to original")); -#line 2346 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = pixel_transformation_bundle_copy (current); -#line 2346 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_bundle_unref0 (self->priv->original); -#line 2346 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->original = _tmp0_; -#line 2347 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = pixel_transformation_bundle_new (); -#line 2347 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_bundle_unref0 (self->priv->reset); -#line 2347 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->reset = _tmp1_; -#line 2348 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->reset; -#line 2348 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - pixel_transformation_bundle_set_to_identity (_tmp2_); -#line 2343 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self; -#line 18618 "EditingTools.c" -} - - -static EditingToolsAdjustToolAdjustResetCommand* -editing_tools_adjust_tool_adjust_reset_command_new (EditingToolsAdjustTool* owner, - PixelTransformationBundle* current) -{ -#line 2343 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return editing_tools_adjust_tool_adjust_reset_command_construct (EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, owner, current); -#line 18628 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_adjust_reset_command_real_execute (Command* base) -{ - EditingToolsAdjustToolAdjustResetCommand * self; - EditingToolsAdjustTool* _tmp0_; - PixelTransformationBundle* _tmp1_; -#line 2351 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, EditingToolsAdjustToolAdjustResetCommand); -#line 2352 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2352 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->reset; -#line 2352 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_set_adjustments (_tmp0_, _tmp1_); -#line 18646 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_adjust_reset_command_real_undo (Command* base) -{ - EditingToolsAdjustToolAdjustResetCommand * self; - EditingToolsAdjustTool* _tmp0_; - PixelTransformationBundle* _tmp1_; -#line 2355 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, EditingToolsAdjustToolAdjustResetCommand); -#line 2356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->original; -#line 2356 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_set_adjustments (_tmp0_, _tmp1_); -#line 18664 "EditingTools.c" -} - - -static gboolean -editing_tools_adjust_tool_adjust_reset_command_real_compress (Command* base, - Command* command) -{ - EditingToolsAdjustToolAdjustResetCommand * self; - gboolean result = FALSE; - EditingToolsAdjustToolAdjustResetCommand* reset_command = NULL; - EditingToolsAdjustToolAdjustResetCommand* _tmp0_; - EditingToolsAdjustToolAdjustResetCommand* _tmp1_; - EditingToolsAdjustToolAdjustResetCommand* _tmp2_; - EditingToolsAdjustTool* _tmp3_; - EditingToolsAdjustTool* _tmp4_; -#line 2359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, EditingToolsAdjustToolAdjustResetCommand); -#line 2359 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (IS_COMMAND (command), FALSE); -#line 2360 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (command, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND) ? ((EditingToolsAdjustToolAdjustResetCommand*) command) : NULL); -#line 2360 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - reset_command = _tmp0_; -#line 2361 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = reset_command; -#line 2361 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp1_ == NULL) { -#line 2362 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = FALSE; -#line 2362 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (reset_command); -#line 2362 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 18698 "EditingTools.c" - } -#line 2364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = reset_command; -#line 2364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2364 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp3_ != _tmp4_) { -#line 2365 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = FALSE; -#line 2365 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (reset_command); -#line 2365 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 18714 "EditingTools.c" - } -#line 2368 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = TRUE; -#line 2368 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (reset_command); -#line 2368 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 18722 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_adjust_reset_command_class_init (EditingToolsAdjustToolAdjustResetCommandClass * klass) -{ -#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_adjust_reset_command_parent_class = g_type_class_peek_parent (klass); -#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_type_class_add_private (klass, sizeof (EditingToolsAdjustToolAdjustResetCommandPrivate)); -#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) editing_tools_adjust_tool_adjust_reset_command_real_execute; -#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) editing_tools_adjust_tool_adjust_reset_command_real_undo; -#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((CommandClass *) klass)->compress = (gboolean (*) (Command *, Command*)) editing_tools_adjust_tool_adjust_reset_command_real_compress; -#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_OBJECT_CLASS (klass)->finalize = editing_tools_adjust_tool_adjust_reset_command_finalize; -#line 18741 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_adjust_reset_command_instance_init (EditingToolsAdjustToolAdjustResetCommand * self) -{ -#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv = EDITING_TOOLS_ADJUST_TOOL_ADJUST_RESET_COMMAND_GET_PRIVATE (self); -#line 18750 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_adjust_reset_command_finalize (GObject * obj) -{ - EditingToolsAdjustToolAdjustResetCommand * self; -#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_RESET_COMMAND, EditingToolsAdjustToolAdjustResetCommand); -#line 2340 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_bundle_unref0 (self->priv->original); -#line 2341 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_bundle_unref0 (self->priv->reset); -#line 2339 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_OBJECT_CLASS (editing_tools_adjust_tool_adjust_reset_command_parent_class)->finalize (obj); -#line 18766 "EditingTools.c" -} - - -static GType -editing_tools_adjust_tool_adjust_reset_command_get_type (void) -{ - static volatile gsize editing_tools_adjust_tool_adjust_reset_command_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_adjust_tool_adjust_reset_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditingToolsAdjustToolAdjustResetCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_adjust_tool_adjust_reset_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsAdjustToolAdjustResetCommand), 0, (GInstanceInitFunc) editing_tools_adjust_tool_adjust_reset_command_instance_init, NULL }; - GType editing_tools_adjust_tool_adjust_reset_command_type_id; - editing_tools_adjust_tool_adjust_reset_command_type_id = g_type_register_static (EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, "EditingToolsAdjustToolAdjustResetCommand", &g_define_type_info, 0); - g_once_init_leave (&editing_tools_adjust_tool_adjust_reset_command_type_id__volatile, editing_tools_adjust_tool_adjust_reset_command_type_id); - } - return editing_tools_adjust_tool_adjust_reset_command_type_id__volatile; -} - - -static EditingToolsAdjustToolSliderAdjustmentCommand* -editing_tools_adjust_tool_slider_adjustment_command_construct (GType object_type, - EditingToolsAdjustTool* owner, - PixelTransformation* old_transformation, - PixelTransformation* new_transformation, - const gchar* name) -{ - EditingToolsAdjustToolSliderAdjustmentCommand * self = NULL; - PixelTransformation* _tmp0_; - PixelTransformation* _tmp1_; - PixelTransformationType _tmp2_; -#line 2377 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (owner), NULL); -#line 2377 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (IS_PIXEL_TRANSFORMATION (old_transformation), NULL); -#line 2377 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (IS_PIXEL_TRANSFORMATION (new_transformation), NULL); -#line 2377 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 2379 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = (EditingToolsAdjustToolSliderAdjustmentCommand*) editing_tools_adjust_tool_adjust_tool_command_construct (object_type, owner, name, name); -#line 2381 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = _pixel_transformation_ref0 (old_transformation); -#line 2381 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (self->priv->old_transformation); -#line 2381 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->old_transformation = _tmp0_; -#line 2382 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = _pixel_transformation_ref0 (new_transformation); -#line 2382 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (self->priv->new_transformation); -#line 2382 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->new_transformation = _tmp1_; -#line 2383 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->transformation_type = pixel_transformation_get_transformation_type (old_transformation); -#line 2384 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = self->priv->transformation_type; -#line 2384 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _vala_assert (pixel_transformation_get_transformation_type (new_transformation) == _tmp2_, "new_transformation.get_transformation_type() == transformation_type"); -#line 2377 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self; -#line 18825 "EditingTools.c" -} - - -static EditingToolsAdjustToolSliderAdjustmentCommand* -editing_tools_adjust_tool_slider_adjustment_command_new (EditingToolsAdjustTool* owner, - PixelTransformation* old_transformation, - PixelTransformation* new_transformation, - const gchar* name) -{ -#line 2377 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return editing_tools_adjust_tool_slider_adjustment_command_construct (EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, owner, old_transformation, new_transformation, name); -#line 18837 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_slider_adjustment_command_real_execute (Command* base) -{ - EditingToolsAdjustToolSliderAdjustmentCommand * self; - EditingToolsAdjustTool* _tmp0_; - PixelTransformation* _tmp1_; - EditingToolsAdjustTool* _tmp2_; - EditingToolsPhotoCanvas* _tmp3_; -#line 2387 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommand); -#line 2389 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2389 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->new_transformation; -#line 2389 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_update_transformation (_tmp0_, _tmp1_); -#line 2390 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2390 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2390 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_repaint (_tmp3_); -#line 18863 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_slider_adjustment_command_real_undo (Command* base) -{ - EditingToolsAdjustToolSliderAdjustmentCommand * self; - EditingToolsAdjustTool* _tmp0_; - PixelTransformation* _tmp1_; - EditingToolsAdjustTool* _tmp2_; - EditingToolsAdjustTool* _tmp3_; - PixelTransformation* _tmp4_; - EditingToolsAdjustTool* _tmp5_; - EditingToolsAdjustTool* _tmp6_; - EditingToolsPhotoCanvas* _tmp7_; -#line 2393 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommand); -#line 2394 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2394 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->old_transformation; -#line 2394 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_update_transformation (_tmp0_, _tmp1_); -#line 2396 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2396 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_unbind_window_handlers (_tmp2_); -#line 2397 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2397 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->old_transformation; -#line 2397 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_update_slider (_tmp3_, _tmp4_); -#line 2398 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2398 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_bind_window_handlers (_tmp5_); -#line 2400 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2400 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2400 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_repaint (_tmp7_); -#line 18907 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_slider_adjustment_command_real_redo (Command* base) -{ - EditingToolsAdjustToolSliderAdjustmentCommand * self; - EditingToolsAdjustTool* _tmp0_; - PixelTransformation* _tmp1_; - EditingToolsAdjustTool* _tmp2_; - EditingToolsAdjustTool* _tmp3_; - PixelTransformation* _tmp4_; - EditingToolsAdjustTool* _tmp5_; - EditingToolsAdjustTool* _tmp6_; - EditingToolsPhotoCanvas* _tmp7_; -#line 2403 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommand); -#line 2404 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2404 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->new_transformation; -#line 2404 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_update_transformation (_tmp0_, _tmp1_); -#line 2406 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2406 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_unbind_window_handlers (_tmp2_); -#line 2407 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2407 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->new_transformation; -#line 2407 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_update_slider (_tmp3_, _tmp4_); -#line 2408 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2408 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_bind_window_handlers (_tmp5_); -#line 2410 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2410 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2410 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_photo_canvas_repaint (_tmp7_); -#line 18951 "EditingTools.c" -} - - -static gboolean -editing_tools_adjust_tool_slider_adjustment_command_real_compress (Command* base, - Command* command) -{ - EditingToolsAdjustToolSliderAdjustmentCommand * self; - gboolean result = FALSE; - EditingToolsAdjustToolSliderAdjustmentCommand* slider_adjustment = NULL; - EditingToolsAdjustToolSliderAdjustmentCommand* _tmp0_; - EditingToolsAdjustToolSliderAdjustmentCommand* _tmp1_; - EditingToolsAdjustToolSliderAdjustmentCommand* _tmp2_; - EditingToolsAdjustTool* _tmp3_; - EditingToolsAdjustTool* _tmp4_; - EditingToolsAdjustToolSliderAdjustmentCommand* _tmp5_; - PixelTransformationType _tmp6_; - PixelTransformationType _tmp7_; - EditingToolsAdjustToolSliderAdjustmentCommand* _tmp8_; - EditingToolsAdjustToolSliderAdjustmentCommand* _tmp9_; - PixelTransformation* _tmp10_; - PixelTransformation* _tmp11_; -#line 2413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommand); -#line 2413 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (IS_COMMAND (command), FALSE); -#line 2414 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (command, EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND) ? ((EditingToolsAdjustToolSliderAdjustmentCommand*) command) : NULL); -#line 2414 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - slider_adjustment = _tmp0_; -#line 2415 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = slider_adjustment; -#line 2415 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp1_ == NULL) { -#line 2416 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = FALSE; -#line 2416 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (slider_adjustment); -#line 2416 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 18992 "EditingTools.c" - } -#line 2419 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = slider_adjustment; -#line 2419 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2419 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2419 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp3_ != _tmp4_) { -#line 2420 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = FALSE; -#line 2420 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (slider_adjustment); -#line 2420 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 19008 "EditingTools.c" - } -#line 2423 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = slider_adjustment; -#line 2423 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = _tmp5_->priv->transformation_type; -#line 2423 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = self->priv->transformation_type; -#line 2423 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp6_ != _tmp7_) { -#line 2424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = FALSE; -#line 2424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (slider_adjustment); -#line 2424 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 19024 "EditingTools.c" - } -#line 2427 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = slider_adjustment; -#line 2427 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - command_execute (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_COMMAND, Command)); -#line 2430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = slider_adjustment; -#line 2430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _tmp9_->priv->new_transformation; -#line 2430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = _pixel_transformation_ref0 (_tmp10_); -#line 2430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (self->priv->new_transformation); -#line 2430 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->new_transformation = _tmp11_; -#line 2432 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = TRUE; -#line 2432 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (slider_adjustment); -#line 2432 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 19046 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_slider_adjustment_command_class_init (EditingToolsAdjustToolSliderAdjustmentCommandClass * klass) -{ -#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_slider_adjustment_command_parent_class = g_type_class_peek_parent (klass); -#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_type_class_add_private (klass, sizeof (EditingToolsAdjustToolSliderAdjustmentCommandPrivate)); -#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) editing_tools_adjust_tool_slider_adjustment_command_real_execute; -#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) editing_tools_adjust_tool_slider_adjustment_command_real_undo; -#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((CommandClass *) klass)->redo = (void (*) (Command *)) editing_tools_adjust_tool_slider_adjustment_command_real_redo; -#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((CommandClass *) klass)->compress = (gboolean (*) (Command *, Command*)) editing_tools_adjust_tool_slider_adjustment_command_real_compress; -#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_OBJECT_CLASS (klass)->finalize = editing_tools_adjust_tool_slider_adjustment_command_finalize; -#line 19067 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_slider_adjustment_command_instance_init (EditingToolsAdjustToolSliderAdjustmentCommand * self) -{ -#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv = EDITING_TOOLS_ADJUST_TOOL_SLIDER_ADJUSTMENT_COMMAND_GET_PRIVATE (self); -#line 19076 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_slider_adjustment_command_finalize (GObject * obj) -{ - EditingToolsAdjustToolSliderAdjustmentCommand * self; -#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_ADJUST_TOOL_TYPE_SLIDER_ADJUSTMENT_COMMAND, EditingToolsAdjustToolSliderAdjustmentCommand); -#line 2374 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (self->priv->new_transformation); -#line 2375 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_unref0 (self->priv->old_transformation); -#line 2372 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_OBJECT_CLASS (editing_tools_adjust_tool_slider_adjustment_command_parent_class)->finalize (obj); -#line 19092 "EditingTools.c" -} - - -static GType -editing_tools_adjust_tool_slider_adjustment_command_get_type (void) -{ - static volatile gsize editing_tools_adjust_tool_slider_adjustment_command_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_adjust_tool_slider_adjustment_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditingToolsAdjustToolSliderAdjustmentCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_adjust_tool_slider_adjustment_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsAdjustToolSliderAdjustmentCommand), 0, (GInstanceInitFunc) editing_tools_adjust_tool_slider_adjustment_command_instance_init, NULL }; - GType editing_tools_adjust_tool_slider_adjustment_command_type_id; - editing_tools_adjust_tool_slider_adjustment_command_type_id = g_type_register_static (EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, "EditingToolsAdjustToolSliderAdjustmentCommand", &g_define_type_info, 0); - g_once_init_leave (&editing_tools_adjust_tool_slider_adjustment_command_type_id__volatile, editing_tools_adjust_tool_slider_adjustment_command_type_id); - } - return editing_tools_adjust_tool_slider_adjustment_command_type_id__volatile; -} - - -static EditingToolsAdjustToolAdjustEnhanceCommand* -editing_tools_adjust_tool_adjust_enhance_command_construct (GType object_type, - EditingToolsAdjustTool* owner, - Photo* photo) -{ - EditingToolsAdjustToolAdjustEnhanceCommand * self = NULL; - Photo* _tmp0_; - PixelTransformationBundle* _tmp1_; -#line 2441 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (EDITING_TOOLS_IS_ADJUST_TOOL (owner), NULL); -#line 2441 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (IS_PHOTO (photo), NULL); -#line 2442 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = (EditingToolsAdjustToolAdjustEnhanceCommand*) editing_tools_adjust_tool_adjust_tool_command_construct (object_type, owner, RESOURCES_ENHANCE_LABEL, RESOURCES_ENHANCE_TOOLTIP); -#line 2444 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = _g_object_ref0 (photo); -#line 2444 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->photo); -#line 2444 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->photo = _tmp0_; -#line 2445 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = photo_get_color_adjustments (photo); -#line 2445 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_bundle_unref0 (self->priv->original); -#line 2445 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->original = _tmp1_; -#line 2441 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return self; -#line 19138 "EditingTools.c" -} - - -static EditingToolsAdjustToolAdjustEnhanceCommand* -editing_tools_adjust_tool_adjust_enhance_command_new (EditingToolsAdjustTool* owner, - Photo* photo) -{ -#line 2441 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return editing_tools_adjust_tool_adjust_enhance_command_construct (EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, owner, photo); -#line 19148 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_adjust_enhance_command_real_execute (Command* base) -{ - EditingToolsAdjustToolAdjustEnhanceCommand * self; - PixelTransformationBundle* _tmp0_; - EditingToolsAdjustTool* _tmp3_; - PixelTransformationBundle* _tmp4_; -#line 2448 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, EditingToolsAdjustToolAdjustEnhanceCommand); -#line 2449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = self->priv->enhanced; -#line 2449 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp0_ == NULL) { -#line 19165 "EditingTools.c" - Photo* _tmp1_; - PixelTransformationBundle* _tmp2_; -#line 2450 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->photo; -#line 2450 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = photo_get_enhance_transformations (_tmp1_); -#line 2450 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_bundle_unref0 (self->priv->enhanced); -#line 2450 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->enhanced = _tmp2_; -#line 19176 "EditingTools.c" - } -#line 2452 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2452 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = self->priv->enhanced; -#line 2452 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_set_adjustments (_tmp3_, _tmp4_); -#line 19184 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_adjust_enhance_command_real_undo (Command* base) -{ - EditingToolsAdjustToolAdjustEnhanceCommand * self; - EditingToolsAdjustTool* _tmp0_; - PixelTransformationBundle* _tmp1_; -#line 2455 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, EditingToolsAdjustToolAdjustEnhanceCommand); -#line 2456 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2456 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = self->priv->original; -#line 2456 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_set_adjustments (_tmp0_, _tmp1_); -#line 19202 "EditingTools.c" -} - - -static gboolean -editing_tools_adjust_tool_adjust_enhance_command_real_compress (Command* base, - Command* command) -{ - EditingToolsAdjustToolAdjustEnhanceCommand * self; - gboolean result = FALSE; - EnhanceSingleCommand* enhance_single = NULL; - EnhanceSingleCommand* _tmp0_; - EnhanceSingleCommand* _tmp1_; - EditingToolsAdjustToolAdjustEnhanceCommand* enhance_command = NULL; - EditingToolsAdjustToolAdjustEnhanceCommand* _tmp10_; - EditingToolsAdjustToolAdjustEnhanceCommand* _tmp11_; - EditingToolsAdjustToolAdjustEnhanceCommand* _tmp12_; - EditingToolsAdjustTool* _tmp13_; - EditingToolsAdjustTool* _tmp14_; -#line 2459 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, EditingToolsAdjustToolAdjustEnhanceCommand); -#line 2459 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_return_val_if_fail (IS_COMMAND (command), FALSE); -#line 2461 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (command, TYPE_ENHANCE_SINGLE_COMMAND) ? ((EnhanceSingleCommand*) command) : NULL); -#line 2461 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - enhance_single = _tmp0_; -#line 2462 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp1_ = enhance_single; -#line 2462 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp1_ != NULL) { -#line 19233 "EditingTools.c" - Photo* photo = NULL; - EnhanceSingleCommand* _tmp2_; - DataSource* _tmp3_; - Photo* _tmp4_; - EditingToolsAdjustTool* _tmp5_; - EditingToolsPhotoCanvas* _tmp6_; - Photo* _tmp7_; - Photo* _tmp8_; - gboolean _tmp9_; -#line 2463 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp2_ = enhance_single; -#line 2463 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp3_ = single_data_source_command_get_source (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)); -#line 2463 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - photo = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PHOTO, Photo); -#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp4_ = photo; -#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp7_ = editing_tools_photo_canvas_get_photo (_tmp6_); -#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp8_ = _tmp7_; -#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp9_ = data_source_equals (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_SOURCE, DataSource)); -#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (_tmp8_); -#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = _tmp9_; -#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (photo); -#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (enhance_single); -#line 2467 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 19271 "EditingTools.c" - } -#line 2470 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (command, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND) ? ((EditingToolsAdjustToolAdjustEnhanceCommand*) command) : NULL); -#line 2470 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - enhance_command = _tmp10_; -#line 2471 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp11_ = enhance_command; -#line 2471 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp11_ == NULL) { -#line 2472 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = FALSE; -#line 2472 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (enhance_command); -#line 2472 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (enhance_single); -#line 2472 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 19289 "EditingTools.c" - } -#line 2474 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp12_ = enhance_command; -#line 2474 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2474 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _tmp14_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, EditingToolsAdjustToolAdjustToolCommand)->owner; -#line 2474 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - if (_tmp13_ != _tmp14_) { -#line 2475 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = FALSE; -#line 2475 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (enhance_command); -#line 2475 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (enhance_single); -#line 2475 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 19307 "EditingTools.c" - } -#line 2478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - result = TRUE; -#line 2478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (enhance_command); -#line 2478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (enhance_single); -#line 2478 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - return result; -#line 19317 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_adjust_enhance_command_class_init (EditingToolsAdjustToolAdjustEnhanceCommandClass * klass) -{ -#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_adjust_enhance_command_parent_class = g_type_class_peek_parent (klass); -#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_type_class_add_private (klass, sizeof (EditingToolsAdjustToolAdjustEnhanceCommandPrivate)); -#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((CommandClass *) klass)->execute = (void (*) (Command *)) editing_tools_adjust_tool_adjust_enhance_command_real_execute; -#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((CommandClass *) klass)->undo = (void (*) (Command *)) editing_tools_adjust_tool_adjust_enhance_command_real_undo; -#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((CommandClass *) klass)->compress = (gboolean (*) (Command *, Command*)) editing_tools_adjust_tool_adjust_enhance_command_real_compress; -#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_OBJECT_CLASS (klass)->finalize = editing_tools_adjust_tool_adjust_enhance_command_finalize; -#line 19336 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_adjust_enhance_command_instance_init (EditingToolsAdjustToolAdjustEnhanceCommand * self) -{ -#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv = EDITING_TOOLS_ADJUST_TOOL_ADJUST_ENHANCE_COMMAND_GET_PRIVATE (self); -#line 2439 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->enhanced = NULL; -#line 19347 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_adjust_enhance_command_finalize (GObject * obj) -{ - EditingToolsAdjustToolAdjustEnhanceCommand * self; -#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_ENHANCE_COMMAND, EditingToolsAdjustToolAdjustEnhanceCommand); -#line 2437 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->photo); -#line 2438 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_bundle_unref0 (self->priv->original); -#line 2439 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_bundle_unref0 (self->priv->enhanced); -#line 2436 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - G_OBJECT_CLASS (editing_tools_adjust_tool_adjust_enhance_command_parent_class)->finalize (obj); -#line 19365 "EditingTools.c" -} - - -static GType -editing_tools_adjust_tool_adjust_enhance_command_get_type (void) -{ - static volatile gsize editing_tools_adjust_tool_adjust_enhance_command_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_adjust_tool_adjust_enhance_command_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditingToolsAdjustToolAdjustEnhanceCommandClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_adjust_tool_adjust_enhance_command_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsAdjustToolAdjustEnhanceCommand), 0, (GInstanceInitFunc) editing_tools_adjust_tool_adjust_enhance_command_instance_init, NULL }; - GType editing_tools_adjust_tool_adjust_enhance_command_type_id; - editing_tools_adjust_tool_adjust_enhance_command_type_id = g_type_register_static (EDITING_TOOLS_ADJUST_TOOL_TYPE_ADJUST_TOOL_COMMAND, "EditingToolsAdjustToolAdjustEnhanceCommand", &g_define_type_info, 0); - g_once_init_leave (&editing_tools_adjust_tool_adjust_enhance_command_type_id__volatile, editing_tools_adjust_tool_adjust_enhance_command_type_id); - } - return editing_tools_adjust_tool_adjust_enhance_command_type_id__volatile; -} - - -static void -editing_tools_adjust_tool_class_init (EditingToolsAdjustToolClass * klass) -{ -#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - editing_tools_adjust_tool_parent_class = g_type_class_peek_parent (klass); -#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->finalize = editing_tools_adjust_tool_finalize; -#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - g_type_class_add_private (klass, sizeof (EditingToolsAdjustToolPrivate)); -#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->activate = (void (*) (EditingToolsEditingTool *, EditingToolsPhotoCanvas*)) editing_tools_adjust_tool_real_activate; -#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->get_tool_window = (EditingToolsEditingToolWindow* (*) (EditingToolsEditingTool *)) editing_tools_adjust_tool_real_get_tool_window; -#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->deactivate = (void (*) (EditingToolsEditingTool *)) editing_tools_adjust_tool_real_deactivate; -#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->paint = (void (*) (EditingToolsEditingTool *, cairo_t*)) editing_tools_adjust_tool_real_paint; -#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->get_display_pixbuf = (GdkPixbuf* (*) (EditingToolsEditingTool *, Scaling*, Photo*, Dimensions*, GError**)) editing_tools_adjust_tool_real_get_display_pixbuf; -#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - ((EditingToolsEditingToolClass *) klass)->on_keypress = (gboolean (*) (EditingToolsEditingTool *, GdkEventKey*)) editing_tools_adjust_tool_real_on_keypress; -#line 19404 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_instance_init (EditingToolsAdjustTool * self) -{ -#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv = EDITING_TOOLS_ADJUST_TOOL_GET_PRIVATE (self); -#line 2482 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->adjust_tool_window = NULL; -#line 2483 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->suppress_effect_redraw = FALSE; -#line 2484 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->draw_to_pixbuf = NULL; -#line 2485 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->histogram_pixbuf = NULL; -#line 2486 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->virgin_histogram_pixbuf = NULL; -#line 2487 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->transformer = NULL; -#line 2488 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->histogram_transformer = NULL; -#line 2489 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->transformations = NULL; -#line 2490 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->fp_pixel_cache = NULL; -#line 2490 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->fp_pixel_cache_length1 = 0; -#line 2490 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->_fp_pixel_cache_size_ = self->priv->fp_pixel_cache_length1; -#line 2491 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->disable_histogram_refresh = FALSE; -#line 2492 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->temperature_scheduler = NULL; -#line 2493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->tint_scheduler = NULL; -#line 2494 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->contrast_scheduler = NULL; -#line 2495 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->saturation_scheduler = NULL; -#line 2496 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->exposure_scheduler = NULL; -#line 2497 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->shadows_scheduler = NULL; -#line 2498 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->highlights_scheduler = NULL; -#line 19451 "EditingTools.c" -} - - -static void -editing_tools_adjust_tool_finalize (EditingToolsEditingTool * obj) -{ - EditingToolsAdjustTool * self; -#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_TYPE_ADJUST_TOOL, EditingToolsAdjustTool); -#line 2482 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->adjust_tool_window); -#line 2484 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->draw_to_pixbuf); -#line 2485 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->histogram_pixbuf); -#line 2486 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _g_object_unref0 (self->priv->virgin_histogram_pixbuf); -#line 2487 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformer_unref0 (self->priv->transformer); -#line 2488 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformer_unref0 (self->priv->histogram_transformer); -#line 2489 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _pixel_transformation_bundle_unref0 (self->priv->transformations); -#line 2490 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - self->priv->fp_pixel_cache = (g_free (self->priv->fp_pixel_cache), NULL); -#line 2492 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _one_shot_scheduler_unref0 (self->priv->temperature_scheduler); -#line 2493 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _one_shot_scheduler_unref0 (self->priv->tint_scheduler); -#line 2494 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _one_shot_scheduler_unref0 (self->priv->contrast_scheduler); -#line 2495 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _one_shot_scheduler_unref0 (self->priv->saturation_scheduler); -#line 2496 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _one_shot_scheduler_unref0 (self->priv->exposure_scheduler); -#line 2497 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _one_shot_scheduler_unref0 (self->priv->shadows_scheduler); -#line 2498 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - _one_shot_scheduler_unref0 (self->priv->highlights_scheduler); -#line 2187 "/home/jens/Source/shotwell/src/editing_tools/EditingTools.vala" - EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_adjust_tool_parent_class)->finalize (obj); -#line 19493 "EditingTools.c" -} - - -GType -editing_tools_adjust_tool_get_type (void) -{ - static volatile gsize editing_tools_adjust_tool_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_adjust_tool_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditingToolsAdjustToolClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_adjust_tool_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsAdjustTool), 0, (GInstanceInitFunc) editing_tools_adjust_tool_instance_init, NULL }; - GType editing_tools_adjust_tool_type_id; - editing_tools_adjust_tool_type_id = g_type_register_static (EDITING_TOOLS_TYPE_EDITING_TOOL, "EditingToolsAdjustTool", &g_define_type_info, 0); - g_once_init_leave (&editing_tools_adjust_tool_type_id__volatile, editing_tools_adjust_tool_type_id); - } - return editing_tools_adjust_tool_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/editing_tools/EditingTools.vala b/src/editing_tools/EditingTools.vala index ee08f84..f92b4a2 100644 --- a/src/editing_tools/EditingTools.vala +++ b/src/editing_tools/EditingTools.vala @@ -654,7 +654,7 @@ public class CropTool : EditingTool { constraint_combo.set_row_separator_func(constraint_combo_separator_func); constraint_combo.set_active(0); - var image = new Gtk.Image.from_icon_name("crop-pivot-reticle", Gtk.IconSize.LARGE_TOOLBAR); + var image = new Gtk.Image.from_icon_name("crop-pivot-reticle-symbolic", Gtk.IconSize.LARGE_TOOLBAR); pivot_reticle_button.set_image (image); pivot_reticle_button.set_tooltip_text(_("Pivot the crop rectangle between portrait and landscape orientations")); @@ -786,9 +786,9 @@ public class CropTool : EditingTool { result.basis_width = canvas.get_scaled_pixbuf_position().width; result.basis_height = canvas.get_scaled_pixbuf_position().height; } else if (result.aspect_ratio == SCREEN_ASPECT_RATIO) { - Gdk.Screen screen = Gdk.Screen.get_default(); - result.basis_width = screen.get_width(); - result.basis_height = screen.get_height(); + var dim = Scaling.get_screen_dimensions(AppWindow.get_instance()); + result.basis_width = dim.width; + result.basis_height = dim.height; } return result; @@ -890,14 +890,14 @@ public class CropTool : EditingTool { } private float get_constraint_aspect_ratio() { - float result = get_selected_constraint().aspect_ratio; + var result = get_selected_constraint().aspect_ratio; if (result == ORIGINAL_ASPECT_RATIO) { result = ((float) canvas.get_scaled_pixbuf_position().width) / ((float) canvas.get_scaled_pixbuf_position().height); } else if (result == SCREEN_ASPECT_RATIO) { - Gdk.Screen screen = Gdk.Screen.get_default(); - result = ((float) screen.get_width()) / ((float) screen.get_height()); + var dim = Scaling.get_screen_dimensions(AppWindow.get_instance()); + result = ((float) dim.width) / ((float) dim.height); } else if (result == CUSTOM_ASPECT_RATIO) { result = custom_aspect_ratio; } @@ -914,8 +914,8 @@ public class CropTool : EditingTool { Dimensions orig_dim = photo.get_original_dimensions(); result = ((float) orig_dim.width) / ((float) orig_dim.height); } else if (result == SCREEN_ASPECT_RATIO) { - Gdk.Screen screen = Gdk.Screen.get_default(); - result = ((float) screen.get_width()) / ((float) screen.get_height()); + var dim = Scaling.get_screen_dimensions(AppWindow.get_instance()); + result = ((float) dim.width) / ((float) dim.height); } else if (result == CUSTOM_ASPECT_RATIO) { result = custom_aspect_ratio; } @@ -2251,7 +2251,7 @@ public class AdjustTool : EditingTool { slider_organizer.attach(saturation_label, 0, 2, 1, 1); slider_organizer.attach(saturation_slider, 1, 2, 1, 1); saturation_slider.set_size_request(SLIDER_WIDTH, -1); - saturation_slider.set_value_pos(Gtk.PositionType.RIGHT); + saturation_slider.set_draw_value(false); saturation_slider.set_margin_end(0); Gtk.Label tint_label = new Gtk.Label.with_mnemonic(_("Tint:")); diff --git a/src/editing_tools/RGBHistogramManipulator.c b/src/editing_tools/RGBHistogramManipulator.c deleted file mode 100644 index bb9a9b0..0000000 --- a/src/editing_tools/RGBHistogramManipulator.c +++ /dev/null @@ -1,1484 +0,0 @@ -/* RGBHistogramManipulator.c generated by valac 0.40.4, the Vala compiler - * generated from RGBHistogramManipulator.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include "shotwell-graphics-processor.h" -#include -#include -#include -#include -#include -#include - - -#define TYPE_RGB_HISTOGRAM_MANIPULATOR (rgb_histogram_manipulator_get_type ()) -#define RGB_HISTOGRAM_MANIPULATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulator)) -#define RGB_HISTOGRAM_MANIPULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulatorClass)) -#define IS_RGB_HISTOGRAM_MANIPULATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RGB_HISTOGRAM_MANIPULATOR)) -#define IS_RGB_HISTOGRAM_MANIPULATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RGB_HISTOGRAM_MANIPULATOR)) -#define RGB_HISTOGRAM_MANIPULATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulatorClass)) - -typedef struct _RGBHistogramManipulator RGBHistogramManipulator; -typedef struct _RGBHistogramManipulatorClass RGBHistogramManipulatorClass; -typedef struct _RGBHistogramManipulatorPrivate RGBHistogramManipulatorPrivate; -enum { - RGB_HISTOGRAM_MANIPULATOR_0_PROPERTY, - RGB_HISTOGRAM_MANIPULATOR_NUM_PROPERTIES -}; -static GParamSpec* rgb_histogram_manipulator_properties[RGB_HISTOGRAM_MANIPULATOR_NUM_PROPERTIES]; - -#define RGB_HISTOGRAM_MANIPULATOR_TYPE_LOCATION_CODE (rgb_histogram_manipulator_location_code_get_type ()) -#define _rgb_histogram_unref0(var) ((var == NULL) ? NULL : (var = (rgb_histogram_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -enum { - RGB_HISTOGRAM_MANIPULATOR_NUB_POSITION_CHANGED_SIGNAL, - RGB_HISTOGRAM_MANIPULATOR_NUM_SIGNALS -}; -static guint rgb_histogram_manipulator_signals[RGB_HISTOGRAM_MANIPULATOR_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _RGBHistogramManipulator { - GtkDrawingArea parent_instance; - RGBHistogramManipulatorPrivate * priv; -}; - -struct _RGBHistogramManipulatorClass { - GtkDrawingAreaClass parent_class; -}; - -struct _RGBHistogramManipulatorPrivate { - gint left_nub_max; - gint right_nub_min; - RGBHistogram* histogram; - gint left_nub_position; - gint right_nub_position; - gboolean is_left_nub_tracking; - gboolean is_right_nub_tracking; - gint track_start_x; - gint track_nub_start_position; - gint offset; -}; - -typedef enum { - RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_NUB, - RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_NUB, - RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_TROUGH, - RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_TROUGH, - RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_INSENSITIVE_AREA -} RGBHistogramManipulatorLocationCode; - - -static gpointer rgb_histogram_manipulator_parent_class = NULL; -static GtkWidgetPath* rgb_histogram_manipulator_slider_draw_path; -static GtkWidgetPath* rgb_histogram_manipulator_slider_draw_path = NULL; -static GtkWidgetPath* rgb_histogram_manipulator_frame_draw_path; -static GtkWidgetPath* rgb_histogram_manipulator_frame_draw_path = NULL; -static gboolean rgb_histogram_manipulator_paths_setup; -static gboolean rgb_histogram_manipulator_paths_setup = FALSE; - -GType rgb_histogram_manipulator_get_type (void) G_GNUC_CONST; -#define RGB_HISTOGRAM_MANIPULATOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulatorPrivate)) -static GType rgb_histogram_manipulator_location_code_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE 13 -#define RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH (RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE / 2) -#define RGB_HISTOGRAM_MANIPULATOR_NUB_V_NUDGE 4 -#define RGB_HISTOGRAM_MANIPULATOR_TROUGH_WIDTH (256 + (2 * RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH)) -#define RGB_HISTOGRAM_MANIPULATOR_TROUGH_HEIGHT 4 -#define RGB_HISTOGRAM_MANIPULATOR_TROUGH_BOTTOM_OFFSET 1 -#define RGB_HISTOGRAM_MANIPULATOR_CONTROL_WIDTH (RGB_HISTOGRAM_MANIPULATOR_TROUGH_WIDTH + 2) -#define RGB_HISTOGRAM_MANIPULATOR_CONTROL_HEIGHT 118 -#define RGB_HISTOGRAM_MANIPULATOR_NUB_V_POSITION (((((RGB_HISTOGRAM_MANIPULATOR_CONTROL_HEIGHT - RGB_HISTOGRAM_MANIPULATOR_TROUGH_HEIGHT) - RGB_HISTOGRAM_MANIPULATOR_TROUGH_BOTTOM_OFFSET) - ((RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE - RGB_HISTOGRAM_MANIPULATOR_TROUGH_HEIGHT) / 2)) - RGB_HISTOGRAM_MANIPULATOR_NUB_V_NUDGE) - 2) -RGBHistogramManipulator* rgb_histogram_manipulator_new (void); -RGBHistogramManipulator* rgb_histogram_manipulator_construct (GType object_type); -static gboolean rgb_histogram_manipulator_on_button_press (RGBHistogramManipulator* self, - GdkEventButton* event_record); -static gboolean _rgb_histogram_manipulator_on_button_press_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self); -static gboolean rgb_histogram_manipulator_on_button_release (RGBHistogramManipulator* self, - GdkEventButton* event_record); -static gboolean _rgb_histogram_manipulator_on_button_release_gtk_widget_button_release_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self); -static gboolean rgb_histogram_manipulator_on_button_motion (RGBHistogramManipulator* self, - GdkEventMotion* event_record); -static gboolean _rgb_histogram_manipulator_on_button_motion_gtk_widget_motion_notify_event (GtkWidget* _sender, - GdkEventMotion* event, - gpointer self); -static void rgb_histogram_manipulator_on_size_allocate (RGBHistogramManipulator* self, - GtkAllocation* region); -static void _rgb_histogram_manipulator_on_size_allocate_gtk_widget_size_allocate (GtkWidget* _sender, - GtkAllocation* allocation, - gpointer self); -static RGBHistogramManipulatorLocationCode rgb_histogram_manipulator_hit_test_point (RGBHistogramManipulator* self, - gint x, - gint y); -static void rgb_histogram_manipulator_force_update (RGBHistogramManipulator* self); -static void rgb_histogram_manipulator_update_nub_extrema (RGBHistogramManipulator* self); -static gboolean rgb_histogram_manipulator_real_focus_out_event (GtkWidget* base, - GdkEventFocus* event); -static gboolean rgb_histogram_manipulator_real_key_press_event (GtkWidget* base, - GdkEventKey* event); -static gboolean rgb_histogram_manipulator_real_draw (GtkWidget* base, - cairo_t* ctx); -static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* self, - cairo_t* ctx, - GdkRectangle* area); -static void rgb_histogram_manipulator_draw_nub (RGBHistogramManipulator* self, - cairo_t* ctx, - GdkRectangle* area, - gint position); -void rgb_histogram_manipulator_update_histogram (RGBHistogramManipulator* self, - GdkPixbuf* source_pixbuf); -gint rgb_histogram_manipulator_get_left_nub_position (RGBHistogramManipulator* self); -gint rgb_histogram_manipulator_get_right_nub_position (RGBHistogramManipulator* self); -void rgb_histogram_manipulator_set_left_nub_position (RGBHistogramManipulator* self, - gint user_nub_pos); -void rgb_histogram_manipulator_set_right_nub_position (RGBHistogramManipulator* self, - gint user_nub_pos); -static void rgb_histogram_manipulator_finalize (GObject * obj); - - -static GType -rgb_histogram_manipulator_location_code_get_type (void) -{ - static volatile gsize rgb_histogram_manipulator_location_code_type_id__volatile = 0; - if (g_once_init_enter (&rgb_histogram_manipulator_location_code_type_id__volatile)) { - static const GEnumValue values[] = {{RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_NUB, "RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_NUB", "left-nub"}, {RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_NUB, "RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_NUB", "right-nub"}, {RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_TROUGH, "RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_TROUGH", "left-trough"}, {RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_TROUGH, "RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_TROUGH", "right-trough"}, {RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_INSENSITIVE_AREA, "RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_INSENSITIVE_AREA", "insensitive-area"}, {0, NULL, NULL}}; - GType rgb_histogram_manipulator_location_code_type_id; - rgb_histogram_manipulator_location_code_type_id = g_enum_register_static ("RGBHistogramManipulatorLocationCode", values); - g_once_init_leave (&rgb_histogram_manipulator_location_code_type_id__volatile, rgb_histogram_manipulator_location_code_type_id); - } - return rgb_histogram_manipulator_location_code_type_id__volatile; -} - - -static gboolean -_rgb_histogram_manipulator_on_button_press_gtk_widget_button_press_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self) -{ - gboolean result; - result = rgb_histogram_manipulator_on_button_press ((RGBHistogramManipulator*) self, event); -#line 57 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 178 "RGBHistogramManipulator.c" -} - - -static gboolean -_rgb_histogram_manipulator_on_button_release_gtk_widget_button_release_event (GtkWidget* _sender, - GdkEventButton* event, - gpointer self) -{ - gboolean result; - result = rgb_histogram_manipulator_on_button_release ((RGBHistogramManipulator*) self, event); -#line 58 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 191 "RGBHistogramManipulator.c" -} - - -static gboolean -_rgb_histogram_manipulator_on_button_motion_gtk_widget_motion_notify_event (GtkWidget* _sender, - GdkEventMotion* event, - gpointer self) -{ - gboolean result; - result = rgb_histogram_manipulator_on_button_motion ((RGBHistogramManipulator*) self, event); -#line 59 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 204 "RGBHistogramManipulator.c" -} - - -static void -_rgb_histogram_manipulator_on_size_allocate_gtk_widget_size_allocate (GtkWidget* _sender, - GtkAllocation* allocation, - gpointer self) -{ -#line 61 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_on_size_allocate ((RGBHistogramManipulator*) self, allocation); -#line 215 "RGBHistogramManipulator.c" -} - - -RGBHistogramManipulator* -rgb_histogram_manipulator_construct (GType object_type) -{ - RGBHistogramManipulator * self = NULL; - gboolean _tmp0_; -#line 36 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self = (RGBHistogramManipulator*) g_object_new (object_type, NULL); -#line 37 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), RGB_HISTOGRAM_MANIPULATOR_CONTROL_WIDTH, RGB_HISTOGRAM_MANIPULATOR_CONTROL_HEIGHT); -#line 38 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - gtk_widget_set_can_focus (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), TRUE); -#line 40 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = rgb_histogram_manipulator_paths_setup; -#line 40 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (!_tmp0_) { -#line 234 "RGBHistogramManipulator.c" - GtkWidgetPath* _tmp1_; - GtkWidgetPath* _tmp2_; - GtkWidgetPath* _tmp3_; - GtkWidgetPath* _tmp4_; - GtkWidgetPath* _tmp5_; -#line 41 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp1_ = rgb_histogram_manipulator_slider_draw_path; -#line 41 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - gtk_widget_path_append_type (_tmp1_, gtk_scale_get_type ()); -#line 42 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp2_ = rgb_histogram_manipulator_slider_draw_path; -#line 42 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - gtk_widget_path_iter_add_class (_tmp2_, 0, "scale"); -#line 43 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp3_ = rgb_histogram_manipulator_slider_draw_path; -#line 43 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - gtk_widget_path_iter_add_class (_tmp3_, 0, "range"); -#line 45 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp4_ = rgb_histogram_manipulator_frame_draw_path; -#line 45 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - gtk_widget_path_append_type (_tmp4_, gtk_frame_get_type ()); -#line 46 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp5_ = rgb_histogram_manipulator_frame_draw_path; -#line 46 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - gtk_widget_path_iter_add_class (_tmp5_, 0, "default"); -#line 48 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_paths_setup = TRUE; -#line 262 "RGBHistogramManipulator.c" - } -#line 51 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) GDK_BUTTON_PRESS_MASK); -#line 52 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) GDK_BUTTON_RELEASE_MASK); -#line 53 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) GDK_BUTTON_MOTION_MASK); -#line 54 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) GDK_FOCUS_CHANGE_MASK); -#line 55 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) GDK_KEY_PRESS_MASK); -#line 57 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "button-press-event", (GCallback) _rgb_histogram_manipulator_on_button_press_gtk_widget_button_press_event, self, 0); -#line 58 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "button-release-event", (GCallback) _rgb_histogram_manipulator_on_button_release_gtk_widget_button_release_event, self, 0); -#line 59 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "motion-notify-event", (GCallback) _rgb_histogram_manipulator_on_button_motion_gtk_widget_motion_notify_event, self, 0); -#line 61 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "size-allocate", (GCallback) _rgb_histogram_manipulator_on_size_allocate_gtk_widget_size_allocate, self, 0); -#line 36 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return self; -#line 284 "RGBHistogramManipulator.c" -} - - -RGBHistogramManipulator* -rgb_histogram_manipulator_new (void) -{ -#line 36 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return rgb_histogram_manipulator_construct (TYPE_RGB_HISTOGRAM_MANIPULATOR); -#line 293 "RGBHistogramManipulator.c" -} - - -static void -rgb_histogram_manipulator_on_size_allocate (RGBHistogramManipulator* self, - GtkAllocation* region) -{ - GtkAllocation _tmp0_; - gint _tmp1_; -#line 64 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self)); -#line 64 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_if_fail (region != NULL); -#line 65 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = *region; -#line 65 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp1_ = _tmp0_.width; -#line 65 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->offset = ((_tmp1_ - RGB_HISTOGRAM_GRAPHIC_WIDTH) - RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE) / 2; -#line 313 "RGBHistogramManipulator.c" -} - - -static RGBHistogramManipulatorLocationCode -rgb_histogram_manipulator_hit_test_point (RGBHistogramManipulator* self, - gint x, - gint y) -{ - RGBHistogramManipulatorLocationCode result = 0; - gboolean _tmp0_ = FALSE; - gint _tmp1_; - gboolean _tmp3_ = FALSE; - gint _tmp4_; - gint _tmp6_; - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; -#line 68 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), 0); -#line 69 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (y < RGB_HISTOGRAM_MANIPULATOR_NUB_V_POSITION) { -#line 70 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_INSENSITIVE_AREA; -#line 70 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 339 "RGBHistogramManipulator.c" - } -#line 72 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp1_ = self->priv->left_nub_position; -#line 72 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (x > _tmp1_) { -#line 345 "RGBHistogramManipulator.c" - gint _tmp2_; -#line 72 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp2_ = self->priv->left_nub_position; -#line 72 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = x < (_tmp2_ + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE); -#line 351 "RGBHistogramManipulator.c" - } else { -#line 72 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = FALSE; -#line 355 "RGBHistogramManipulator.c" - } -#line 72 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (_tmp0_) { -#line 73 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_NUB; -#line 73 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 363 "RGBHistogramManipulator.c" - } -#line 75 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp4_ = self->priv->right_nub_position; -#line 75 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (x > _tmp4_) { -#line 369 "RGBHistogramManipulator.c" - gint _tmp5_; -#line 75 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp5_ = self->priv->right_nub_position; -#line 75 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp3_ = x < (_tmp5_ + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE); -#line 375 "RGBHistogramManipulator.c" - } else { -#line 75 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp3_ = FALSE; -#line 379 "RGBHistogramManipulator.c" - } -#line 75 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (_tmp3_) { -#line 76 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_NUB; -#line 76 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 387 "RGBHistogramManipulator.c" - } -#line 78 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (y < ((RGB_HISTOGRAM_MANIPULATOR_NUB_V_POSITION + RGB_HISTOGRAM_MANIPULATOR_NUB_V_NUDGE) + 1)) { -#line 79 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_INSENSITIVE_AREA; -#line 79 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 395 "RGBHistogramManipulator.c" - } -#line 81 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp6_ = self->priv->left_nub_position; -#line 81 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp7_ = self->priv->left_nub_position; -#line 81 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp8_ = self->priv->right_nub_position; -#line 81 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp9_ = self->priv->right_nub_position; -#line 81 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (((x - _tmp6_) * (x - _tmp7_)) < ((x - _tmp8_) * (x - _tmp9_))) { -#line 83 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_TROUGH; -#line 83 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 411 "RGBHistogramManipulator.c" - } else { -#line 85 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_TROUGH; -#line 85 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 417 "RGBHistogramManipulator.c" - } -} - - -static gboolean -rgb_histogram_manipulator_on_button_press (RGBHistogramManipulator* self, - GdkEventButton* event_record) -{ - gboolean result = FALSE; - gdouble _tmp0_; - gint _tmp1_; - RGBHistogramManipulatorLocationCode loc = 0; - gdouble _tmp2_; - gdouble _tmp3_; - gboolean retval = FALSE; - RGBHistogramManipulatorLocationCode _tmp4_; - gdouble _tmp15_; - gint _tmp16_; -#line 88 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), FALSE); -#line 88 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_val_if_fail (event_record != NULL, FALSE); -#line 91 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = event_record->x; -#line 91 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp1_ = self->priv->offset; -#line 91 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - event_record->x = _tmp0_ - _tmp1_; -#line 92 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp2_ = event_record->x; -#line 92 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp3_ = event_record->y; -#line 92 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - loc = rgb_histogram_manipulator_hit_test_point (self, (gint) _tmp2_, (gint) _tmp3_); -#line 93 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - retval = TRUE; -#line 95 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp4_ = loc; -#line 95 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - switch (_tmp4_) { -#line 95 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - case RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_NUB: -#line 460 "RGBHistogramManipulator.c" - { - gdouble _tmp5_; - gint _tmp6_; -#line 97 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp5_ = event_record->x; -#line 97 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->track_start_x = (gint) _tmp5_; -#line 98 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp6_ = self->priv->left_nub_position; -#line 98 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->track_nub_start_position = _tmp6_; -#line 99 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->is_left_nub_tracking = TRUE; -#line 100 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - break; -#line 476 "RGBHistogramManipulator.c" - } -#line 95 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - case RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_NUB: -#line 480 "RGBHistogramManipulator.c" - { - gdouble _tmp7_; - gint _tmp8_; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp7_ = event_record->x; -#line 103 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->track_start_x = (gint) _tmp7_; -#line 104 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp8_ = self->priv->right_nub_position; -#line 104 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->track_nub_start_position = _tmp8_; -#line 105 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->is_right_nub_tracking = TRUE; -#line 106 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - break; -#line 496 "RGBHistogramManipulator.c" - } -#line 95 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - case RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_TROUGH: -#line 500 "RGBHistogramManipulator.c" - { - gdouble _tmp9_; - gint _tmp10_; - gint _tmp11_; -#line 109 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp9_ = event_record->x; -#line 109 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->left_nub_position = ((gint) _tmp9_) - RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH; -#line 110 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp10_ = self->priv->left_nub_position; -#line 110 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp11_ = self->priv->left_nub_max; -#line 110 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->left_nub_position = CLAMP (_tmp10_, 0, _tmp11_); -#line 111 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_force_update (self); -#line 112 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_signal_emit (self, rgb_histogram_manipulator_signals[RGB_HISTOGRAM_MANIPULATOR_NUB_POSITION_CHANGED_SIGNAL], 0); -#line 113 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_update_nub_extrema (self); -#line 114 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - break; -#line 523 "RGBHistogramManipulator.c" - } -#line 95 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - case RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_TROUGH: -#line 527 "RGBHistogramManipulator.c" - { - gdouble _tmp12_; - gint _tmp13_; - gint _tmp14_; -#line 117 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp12_ = event_record->x; -#line 117 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->right_nub_position = ((gint) _tmp12_) - RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH; -#line 118 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp13_ = self->priv->right_nub_position; -#line 118 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp14_ = self->priv->right_nub_min; -#line 118 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->right_nub_position = CLAMP (_tmp13_, _tmp14_, 255); -#line 119 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_force_update (self); -#line 120 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_signal_emit (self, rgb_histogram_manipulator_signals[RGB_HISTOGRAM_MANIPULATOR_NUB_POSITION_CHANGED_SIGNAL], 0); -#line 121 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_update_nub_extrema (self); -#line 122 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - break; -#line 550 "RGBHistogramManipulator.c" - } - default: - { -#line 125 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - retval = FALSE; -#line 126 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - break; -#line 558 "RGBHistogramManipulator.c" - } - } -#line 130 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp15_ = event_record->x; -#line 130 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp16_ = self->priv->offset; -#line 130 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - event_record->x = _tmp15_ + _tmp16_; -#line 132 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = retval; -#line 132 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 571 "RGBHistogramManipulator.c" -} - - -static gboolean -rgb_histogram_manipulator_on_button_release (RGBHistogramManipulator* self, - GdkEventButton* event_record) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; -#line 135 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), FALSE); -#line 135 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_val_if_fail (event_record != NULL, FALSE); -#line 136 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp1_ = self->priv->is_left_nub_tracking; -#line 136 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (_tmp1_) { -#line 136 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = TRUE; -#line 592 "RGBHistogramManipulator.c" - } else { - gboolean _tmp2_; -#line 136 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp2_ = self->priv->is_right_nub_tracking; -#line 136 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = _tmp2_; -#line 599 "RGBHistogramManipulator.c" - } -#line 136 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (_tmp0_) { -#line 137 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_signal_emit (self, rgb_histogram_manipulator_signals[RGB_HISTOGRAM_MANIPULATOR_NUB_POSITION_CHANGED_SIGNAL], 0); -#line 138 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_update_nub_extrema (self); -#line 607 "RGBHistogramManipulator.c" - } -#line 141 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->is_left_nub_tracking = FALSE; -#line 142 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->is_right_nub_tracking = FALSE; -#line 144 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = FALSE; -#line 144 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 617 "RGBHistogramManipulator.c" -} - - -static gboolean -rgb_histogram_manipulator_on_button_motion (RGBHistogramManipulator* self, - GdkEventMotion* event_record) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; - gdouble _tmp3_; - gint _tmp4_; - gboolean _tmp5_; - gdouble _tmp18_; - gint _tmp19_; -#line 147 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), FALSE); -#line 147 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_val_if_fail (event_record != NULL, FALSE); -#line 148 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp1_ = self->priv->is_left_nub_tracking; -#line 148 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (!_tmp1_) { -#line 641 "RGBHistogramManipulator.c" - gboolean _tmp2_; -#line 148 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp2_ = self->priv->is_right_nub_tracking; -#line 148 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = !_tmp2_; -#line 647 "RGBHistogramManipulator.c" - } else { -#line 148 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = FALSE; -#line 651 "RGBHistogramManipulator.c" - } -#line 148 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (_tmp0_) { -#line 149 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = FALSE; -#line 149 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 659 "RGBHistogramManipulator.c" - } -#line 151 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp3_ = event_record->x; -#line 151 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp4_ = self->priv->offset; -#line 151 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - event_record->x = _tmp3_ - _tmp4_; -#line 152 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp5_ = self->priv->is_left_nub_tracking; -#line 152 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (_tmp5_) { -#line 671 "RGBHistogramManipulator.c" - gint track_x_delta = 0; - gdouble _tmp6_; - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; -#line 153 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp6_ = event_record->x; -#line 153 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp7_ = self->priv->track_start_x; -#line 153 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - track_x_delta = ((gint) _tmp6_) - _tmp7_; -#line 154 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp8_ = self->priv->track_nub_start_position; -#line 154 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp9_ = track_x_delta; -#line 154 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->left_nub_position = _tmp8_ + _tmp9_; -#line 155 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp10_ = self->priv->left_nub_position; -#line 155 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp11_ = self->priv->left_nub_max; -#line 155 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->left_nub_position = CLAMP (_tmp10_, 0, _tmp11_); -#line 697 "RGBHistogramManipulator.c" - } else { - gint track_x_delta = 0; - gdouble _tmp12_; - gint _tmp13_; - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; - gint _tmp17_; -#line 157 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp12_ = event_record->x; -#line 157 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp13_ = self->priv->track_start_x; -#line 157 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - track_x_delta = ((gint) _tmp12_) - _tmp13_; -#line 158 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp14_ = self->priv->track_nub_start_position; -#line 158 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp15_ = track_x_delta; -#line 158 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->right_nub_position = _tmp14_ + _tmp15_; -#line 159 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp16_ = self->priv->right_nub_position; -#line 159 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp17_ = self->priv->right_nub_min; -#line 159 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->right_nub_position = CLAMP (_tmp16_, _tmp17_, 255); -#line 724 "RGBHistogramManipulator.c" - } -#line 162 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_force_update (self); -#line 163 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp18_ = event_record->x; -#line 163 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp19_ = self->priv->offset; -#line 163 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - event_record->x = _tmp18_ + _tmp19_; -#line 165 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = TRUE; -#line 165 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 738 "RGBHistogramManipulator.c" -} - - -static gboolean -rgb_histogram_manipulator_real_focus_out_event (GtkWidget* base, - GdkEventFocus* event) -{ - RGBHistogramManipulator * self; - gboolean result = FALSE; -#line 168 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulator); -#line 168 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 169 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (GTK_WIDGET_CLASS (rgb_histogram_manipulator_parent_class)->focus_out_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_drawing_area_get_type (), GtkDrawingArea), gtk_widget_get_type (), GtkWidget), event)) { -#line 170 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = TRUE; -#line 170 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 758 "RGBHistogramManipulator.c" - } -#line 173 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - gtk_widget_queue_draw (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 175 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = FALSE; -#line 175 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 766 "RGBHistogramManipulator.c" -} - - -static gboolean -rgb_histogram_manipulator_real_key_press_event (GtkWidget* base, - GdkEventKey* event) -{ - RGBHistogramManipulator * self; - gboolean result = FALSE; - gint delta = 0; - gboolean _tmp0_ = FALSE; - guint _tmp1_; - gboolean _tmp3_ = FALSE; - guint _tmp4_; - GdkModifierType _tmp6_; - gint _tmp8_; - GdkModifierType _tmp9_; -#line 178 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulator); -#line 178 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 179 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (GTK_WIDGET_CLASS (rgb_histogram_manipulator_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_drawing_area_get_type (), GtkDrawingArea), gtk_widget_get_type (), GtkWidget), event)) { -#line 180 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = TRUE; -#line 180 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 794 "RGBHistogramManipulator.c" - } -#line 183 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - delta = 0; -#line 185 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp1_ = event->keyval; -#line 185 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (_tmp1_ == ((guint) GDK_KEY_Left)) { -#line 185 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = TRUE; -#line 804 "RGBHistogramManipulator.c" - } else { - guint _tmp2_; -#line 185 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp2_ = event->keyval; -#line 185 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = _tmp2_ == ((guint) GDK_KEY_Up); -#line 811 "RGBHistogramManipulator.c" - } -#line 185 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (_tmp0_) { -#line 186 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - delta = -1; -#line 817 "RGBHistogramManipulator.c" - } -#line 189 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp4_ = event->keyval; -#line 189 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (_tmp4_ == ((guint) GDK_KEY_Right)) { -#line 189 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp3_ = TRUE; -#line 825 "RGBHistogramManipulator.c" - } else { - guint _tmp5_; -#line 189 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp5_ = event->keyval; -#line 189 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp3_ = _tmp5_ == ((guint) GDK_KEY_Down); -#line 832 "RGBHistogramManipulator.c" - } -#line 189 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (_tmp3_) { -#line 190 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - delta = 1; -#line 838 "RGBHistogramManipulator.c" - } -#line 193 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp6_ = event->state; -#line 193 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (!((_tmp6_ & GDK_CONTROL_MASK) == GDK_CONTROL_MASK)) { -#line 844 "RGBHistogramManipulator.c" - gint _tmp7_; -#line 194 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp7_ = delta; -#line 194 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - delta = _tmp7_ * 5; -#line 850 "RGBHistogramManipulator.c" - } -#line 197 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp8_ = delta; -#line 197 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (_tmp8_ == 0) { -#line 198 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = FALSE; -#line 198 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 860 "RGBHistogramManipulator.c" - } -#line 201 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp9_ = event->state; -#line 201 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if ((_tmp9_ & GDK_SHIFT_MASK) == GDK_SHIFT_MASK) { -#line 866 "RGBHistogramManipulator.c" - gint _tmp10_; - gint _tmp11_; - gint _tmp12_; - gint _tmp13_; -#line 202 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp10_ = self->priv->right_nub_position; -#line 202 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp11_ = delta; -#line 202 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->right_nub_position = _tmp10_ + _tmp11_; -#line 203 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp12_ = self->priv->right_nub_position; -#line 203 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp13_ = self->priv->right_nub_min; -#line 203 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->right_nub_position = CLAMP (_tmp12_, _tmp13_, 255); -#line 883 "RGBHistogramManipulator.c" - } else { - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; - gint _tmp17_; -#line 205 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp14_ = self->priv->left_nub_position; -#line 205 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp15_ = delta; -#line 205 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->left_nub_position = _tmp14_ + _tmp15_; -#line 206 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp16_ = self->priv->left_nub_position; -#line 206 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp17_ = self->priv->left_nub_max; -#line 206 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->left_nub_position = CLAMP (_tmp16_, 0, _tmp17_); -#line 901 "RGBHistogramManipulator.c" - } -#line 210 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_signal_emit (self, rgb_histogram_manipulator_signals[RGB_HISTOGRAM_MANIPULATOR_NUB_POSITION_CHANGED_SIGNAL], 0); -#line 211 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_update_nub_extrema (self); -#line 212 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_force_update (self); -#line 214 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = TRUE; -#line 214 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 913 "RGBHistogramManipulator.c" -} - - -static gboolean -rgb_histogram_manipulator_real_draw (GtkWidget* base, - cairo_t* ctx) -{ - RGBHistogramManipulator * self; - gboolean result = FALSE; - GtkBorder padding = {0}; - GtkStyleContext* _tmp0_; - GtkBorder _tmp1_ = {0}; - GdkRectangle area = {0}; - GtkBorder _tmp2_; - gint16 _tmp3_; - gint _tmp4_; - GtkBorder _tmp5_; - gint16 _tmp6_; - GtkBorder _tmp7_; - gint16 _tmp8_; - GtkBorder _tmp9_; - gint16 _tmp10_; - gboolean _tmp11_; - gboolean _tmp12_; - GdkRectangle _tmp22_; - GdkRectangle _tmp23_; - gint _tmp24_; - GdkRectangle _tmp25_; - gint _tmp26_; -#line 217 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulator); -#line 217 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_val_if_fail (ctx != NULL, FALSE); -#line 218 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = gtk_widget_get_style_context (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 218 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - gtk_style_context_get_padding (_tmp0_, GTK_STATE_FLAG_NORMAL, &_tmp1_); -#line 218 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - padding = _tmp1_; -#line 220 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - memset (&area, 0, sizeof (GdkRectangle)); -#line 221 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp2_ = padding; -#line 221 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp3_ = _tmp2_.left; -#line 221 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp4_ = self->priv->offset; -#line 221 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - area.x = _tmp3_ + _tmp4_; -#line 222 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp5_ = padding; -#line 222 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp6_ = _tmp5_.top; -#line 222 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - area.y = (gint) _tmp6_; -#line 223 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp7_ = padding; -#line 223 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp8_ = _tmp7_.right; -#line 223 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - area.width = RGB_HISTOGRAM_GRAPHIC_WIDTH + _tmp8_; -#line 224 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp9_ = padding; -#line 224 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp10_ = _tmp9_.bottom; -#line 224 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - area.height = RGB_HISTOGRAM_GRAPHIC_HEIGHT + _tmp10_; -#line 226 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_object_get (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "has-focus", &_tmp11_, NULL); -#line 226 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp12_ = _tmp11_; -#line 226 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (_tmp12_) { -#line 987 "RGBHistogramManipulator.c" - GtkStyleContext* _tmp13_; - GdkRectangle _tmp14_; - gint _tmp15_; - GdkRectangle _tmp16_; - gint _tmp17_; - GdkRectangle _tmp18_; - gint _tmp19_; - GdkRectangle _tmp20_; - gint _tmp21_; -#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp13_ = gtk_widget_get_style_context (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp14_ = area; -#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp15_ = _tmp14_.x; -#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp16_ = area; -#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp17_ = _tmp16_.y; -#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp18_ = area; -#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp19_ = _tmp18_.width; -#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp20_ = area; -#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp21_ = _tmp20_.height; -#line 227 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - gtk_render_focus (_tmp13_, ctx, (gdouble) _tmp15_, (gdouble) _tmp17_, (gdouble) (_tmp19_ + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE), (gdouble) ((_tmp21_ + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE) + RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH)); -#line 1017 "RGBHistogramManipulator.c" - } -#line 232 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp22_ = area; -#line 232 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_draw_histogram (self, ctx, &_tmp22_); -#line 233 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp23_ = area; -#line 233 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp24_ = self->priv->left_nub_position; -#line 233 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_draw_nub (self, ctx, &_tmp23_, _tmp24_); -#line 234 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp25_ = area; -#line 234 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp26_ = self->priv->right_nub_position; -#line 234 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_draw_nub (self, ctx, &_tmp25_, _tmp26_); -#line 236 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = TRUE; -#line 236 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 1039 "RGBHistogramManipulator.c" -} - - -static void -rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* self, - cairo_t* ctx, - GdkRectangle* area) -{ - RGBHistogram* _tmp0_; - GdkPixbuf* histogram_graphic = NULL; - RGBHistogram* _tmp1_; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; - GdkRectangle _tmp4_; - gint _tmp5_; - GdkRectangle _tmp6_; - gint _tmp7_; - gint _tmp8_; - gint _tmp17_; -#line 239 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self)); -#line 239 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_if_fail (ctx != NULL); -#line 239 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_if_fail (area != NULL); -#line 240 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = self->priv->histogram; -#line 240 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (_tmp0_ == NULL) { -#line 241 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return; -#line 1071 "RGBHistogramManipulator.c" - } -#line 243 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp1_ = self->priv->histogram; -#line 243 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp2_ = rgb_histogram_get_graphic (_tmp1_); -#line 243 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - histogram_graphic = _tmp2_; -#line 245 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp3_ = histogram_graphic; -#line 245 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp4_ = *area; -#line 245 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp5_ = _tmp4_.x; -#line 245 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp6_ = *area; -#line 245 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp7_ = _tmp6_.y; -#line 245 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - gdk_cairo_set_source_pixbuf (ctx, _tmp3_, (gdouble) (_tmp5_ + RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH), (gdouble) (_tmp7_ + 2)); -#line 246 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - cairo_paint (ctx); -#line 248 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp8_ = self->priv->left_nub_position; -#line 248 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (_tmp8_ > 0) { -#line 1097 "RGBHistogramManipulator.c" - GdkRectangle _tmp9_; - gint _tmp10_; - GdkRectangle _tmp11_; - gint _tmp12_; - gint _tmp13_; - GdkPixbuf* _tmp14_; - gint _tmp15_; - gint _tmp16_; -#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp9_ = *area; -#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp10_ = _tmp9_.x; -#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp11_ = *area; -#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp12_ = _tmp11_.y; -#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp13_ = self->priv->left_nub_position; -#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp14_ = histogram_graphic; -#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp15_ = gdk_pixbuf_get_height (_tmp14_); -#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp16_ = _tmp15_; -#line 249 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - cairo_rectangle (ctx, (gdouble) (_tmp10_ + RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH), (gdouble) (_tmp12_ + 2), (gdouble) _tmp13_, (gdouble) _tmp16_); -#line 252 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - cairo_set_source_rgba (ctx, 0.0, 0.0, 0.0, 0.45); -#line 253 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - cairo_fill (ctx); -#line 1128 "RGBHistogramManipulator.c" - } -#line 256 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp17_ = self->priv->right_nub_position; -#line 256 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (_tmp17_ < 255) { -#line 1134 "RGBHistogramManipulator.c" - GdkRectangle _tmp18_; - gint _tmp19_; - gint _tmp20_; - GdkRectangle _tmp21_; - gint _tmp22_; - GdkPixbuf* _tmp23_; - gint _tmp24_; - gint _tmp25_; - gint _tmp26_; - GdkPixbuf* _tmp27_; - gint _tmp28_; - gint _tmp29_; -#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp18_ = *area; -#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp19_ = _tmp18_.x; -#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp20_ = self->priv->right_nub_position; -#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp21_ = *area; -#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp22_ = _tmp21_.y; -#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp23_ = histogram_graphic; -#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp24_ = gdk_pixbuf_get_width (_tmp23_); -#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp25_ = _tmp24_; -#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp26_ = self->priv->right_nub_position; -#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp27_ = histogram_graphic; -#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp28_ = gdk_pixbuf_get_height (_tmp27_); -#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp29_ = _tmp28_; -#line 257 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - cairo_rectangle (ctx, (gdouble) ((_tmp19_ + _tmp20_) + RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH), (gdouble) (_tmp22_ + 2), (gdouble) (_tmp25_ - _tmp26_), (gdouble) _tmp29_); -#line 261 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - cairo_set_source_rgba (ctx, 1.0, 1.0, 1.0, 0.45); -#line 262 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - cairo_fill (ctx); -#line 1177 "RGBHistogramManipulator.c" - } -#line 239 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _g_object_unref0 (histogram_graphic); -#line 1181 "RGBHistogramManipulator.c" -} - - -static void -rgb_histogram_manipulator_draw_nub (RGBHistogramManipulator* self, - cairo_t* ctx, - GdkRectangle* area, - gint position) -{ - GdkRectangle _tmp0_; - gint _tmp1_; - GdkRectangle _tmp2_; - gint _tmp3_; - GdkRectangle _tmp4_; - gint _tmp5_; - GdkRectangle _tmp6_; - gint _tmp7_; - GdkRectangle _tmp8_; - gint _tmp9_; - GdkRectangle _tmp10_; - gint _tmp11_; -#line 266 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self)); -#line 266 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_if_fail (ctx != NULL); -#line 266 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_if_fail (area != NULL); -#line 267 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = *area; -#line 267 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp1_ = _tmp0_.x; -#line 267 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp2_ = *area; -#line 267 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp3_ = _tmp2_.y; -#line 267 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - cairo_move_to (ctx, (gdouble) (_tmp1_ + position), (gdouble) ((_tmp3_ + RGB_HISTOGRAM_MANIPULATOR_NUB_V_POSITION) + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE)); -#line 268 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp4_ = *area; -#line 268 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp5_ = _tmp4_.x; -#line 268 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp6_ = *area; -#line 268 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp7_ = _tmp6_.y; -#line 268 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - cairo_line_to (ctx, (gdouble) ((_tmp5_ + position) + RGB_HISTOGRAM_MANIPULATOR_NUB_HALF_WIDTH), (gdouble) (_tmp7_ + RGB_HISTOGRAM_MANIPULATOR_NUB_V_POSITION)); -#line 269 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp8_ = *area; -#line 269 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp9_ = _tmp8_.x; -#line 269 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp10_ = *area; -#line 269 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp11_ = _tmp10_.y; -#line 269 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - cairo_line_to (ctx, (gdouble) ((_tmp9_ + position) + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE), (gdouble) ((_tmp11_ + RGB_HISTOGRAM_MANIPULATOR_NUB_V_POSITION) + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE)); -#line 270 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - cairo_close_path (ctx); -#line 271 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - cairo_set_source_rgb (ctx, 0.333, 0.333, 0.333); -#line 272 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - cairo_fill (ctx); -#line 1245 "RGBHistogramManipulator.c" -} - - -static void -rgb_histogram_manipulator_force_update (RGBHistogramManipulator* self) -{ - GdkWindow* _tmp0_; -#line 275 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self)); -#line 276 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 276 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - gdk_window_invalidate_rect (_tmp0_, NULL, TRUE); -#line 1259 "RGBHistogramManipulator.c" -} - - -static void -rgb_histogram_manipulator_update_nub_extrema (RGBHistogramManipulator* self) -{ - gint _tmp0_; - gint _tmp1_; -#line 279 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self)); -#line 280 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = self->priv->left_nub_position; -#line 280 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->right_nub_min = (_tmp0_ + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE) + 1; -#line 281 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp1_ = self->priv->right_nub_position; -#line 281 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->left_nub_max = (_tmp1_ - RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE) - 1; -#line 1278 "RGBHistogramManipulator.c" -} - - -void -rgb_histogram_manipulator_update_histogram (RGBHistogramManipulator* self, - GdkPixbuf* source_pixbuf) -{ - RGBHistogram* _tmp0_; -#line 286 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self)); -#line 286 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_if_fail (GDK_IS_PIXBUF (source_pixbuf)); -#line 287 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = rgb_histogram_new (source_pixbuf); -#line 287 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _rgb_histogram_unref0 (self->priv->histogram); -#line 287 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->histogram = _tmp0_; -#line 288 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_force_update (self); -#line 1299 "RGBHistogramManipulator.c" -} - - -gint -rgb_histogram_manipulator_get_left_nub_position (RGBHistogramManipulator* self) -{ - gint result = 0; - gint _tmp0_; -#line 291 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), 0); -#line 292 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = self->priv->left_nub_position; -#line 292 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = _tmp0_; -#line 292 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 1316 "RGBHistogramManipulator.c" -} - - -gint -rgb_histogram_manipulator_get_right_nub_position (RGBHistogramManipulator* self) -{ - gint result = 0; - gint _tmp0_; -#line 295 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), 0); -#line 296 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = self->priv->right_nub_position; -#line 296 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - result = _tmp0_; -#line 296 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - return result; -#line 1333 "RGBHistogramManipulator.c" -} - - -void -rgb_histogram_manipulator_set_left_nub_position (RGBHistogramManipulator* self, - gint user_nub_pos) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 299 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self)); -#line 300 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (user_nub_pos >= 0) { -#line 300 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = user_nub_pos <= 255; -#line 1349 "RGBHistogramManipulator.c" - } else { -#line 300 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = FALSE; -#line 1353 "RGBHistogramManipulator.c" - } -#line 300 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _vala_assert (_tmp0_, "(user_nub_pos >= 0) && (user_nub_pos <= 255)"); -#line 301 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp1_ = self->priv->left_nub_max; -#line 301 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->left_nub_position = CLAMP (user_nub_pos, 0, _tmp1_); -#line 302 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_update_nub_extrema (self); -#line 1363 "RGBHistogramManipulator.c" -} - - -void -rgb_histogram_manipulator_set_right_nub_position (RGBHistogramManipulator* self, - gint user_nub_pos) -{ - gboolean _tmp0_ = FALSE; - gint _tmp1_; -#line 305 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self)); -#line 306 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - if (user_nub_pos >= 0) { -#line 306 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = user_nub_pos <= 255; -#line 1379 "RGBHistogramManipulator.c" - } else { -#line 306 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = FALSE; -#line 1383 "RGBHistogramManipulator.c" - } -#line 306 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _vala_assert (_tmp0_, "(user_nub_pos >= 0) && (user_nub_pos <= 255)"); -#line 307 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp1_ = self->priv->right_nub_min; -#line 307 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->right_nub_position = CLAMP (user_nub_pos, _tmp1_, 255); -#line 308 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_update_nub_extrema (self); -#line 1393 "RGBHistogramManipulator.c" -} - - -static void -rgb_histogram_manipulator_class_init (RGBHistogramManipulatorClass * klass) -{ - GtkWidgetPath* _tmp0_; - GtkWidgetPath* _tmp1_; -#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - g_type_class_add_private (klass, sizeof (RGBHistogramManipulatorPrivate)); -#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - ((GtkWidgetClass *) klass)->focus_out_event = (gboolean (*) (GtkWidget *, GdkEventFocus*)) rgb_histogram_manipulator_real_focus_out_event; -#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) rgb_histogram_manipulator_real_key_press_event; -#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - ((GtkWidgetClass *) klass)->draw = (gboolean (*) (GtkWidget *, cairo_t*)) rgb_histogram_manipulator_real_draw; -#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - G_OBJECT_CLASS (klass)->finalize = rgb_histogram_manipulator_finalize; -#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_signals[RGB_HISTOGRAM_MANIPULATOR_NUB_POSITION_CHANGED_SIGNAL] = g_signal_new ("nub-position-changed", TYPE_RGB_HISTOGRAM_MANIPULATOR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 23 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp0_ = gtk_widget_path_new (); -#line 23 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_slider_draw_path = _tmp0_; -#line 24 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _tmp1_ = gtk_widget_path_new (); -#line 24 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - rgb_histogram_manipulator_frame_draw_path = _tmp1_; -#line 1424 "RGBHistogramManipulator.c" -} - - -static void -rgb_histogram_manipulator_instance_init (RGBHistogramManipulator * self) -{ -#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv = RGB_HISTOGRAM_MANIPULATOR_GET_PRIVATE (self); -#line 20 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->left_nub_max = (255 - RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE) - 1; -#line 21 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->right_nub_min = RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE + 1; -#line 27 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->histogram = NULL; -#line 28 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->left_nub_position = 0; -#line 29 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->right_nub_position = 255; -#line 30 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->is_left_nub_tracking = FALSE; -#line 31 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->is_right_nub_tracking = FALSE; -#line 32 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->track_start_x = 0; -#line 33 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->track_nub_start_position = 0; -#line 34 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self->priv->offset = 0; -#line 1453 "RGBHistogramManipulator.c" -} - - -static void -rgb_histogram_manipulator_finalize (GObject * obj) -{ - RGBHistogramManipulator * self; -#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulator); -#line 27 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - _rgb_histogram_unref0 (self->priv->histogram); -#line 7 "/home/jens/Source/shotwell/src/editing_tools/RGBHistogramManipulator.vala" - G_OBJECT_CLASS (rgb_histogram_manipulator_parent_class)->finalize (obj); -#line 1467 "RGBHistogramManipulator.c" -} - - -GType -rgb_histogram_manipulator_get_type (void) -{ - static volatile gsize rgb_histogram_manipulator_type_id__volatile = 0; - if (g_once_init_enter (&rgb_histogram_manipulator_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (RGBHistogramManipulatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rgb_histogram_manipulator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RGBHistogramManipulator), 0, (GInstanceInitFunc) rgb_histogram_manipulator_instance_init, NULL }; - GType rgb_histogram_manipulator_type_id; - rgb_histogram_manipulator_type_id = g_type_register_static (gtk_drawing_area_get_type (), "RGBHistogramManipulator", &g_define_type_info, 0); - g_once_init_leave (&rgb_histogram_manipulator_type_id__volatile, rgb_histogram_manipulator_type_id); - } - return rgb_histogram_manipulator_type_id__volatile; -} - - - diff --git a/src/editing_tools/StraightenTool.c b/src/editing_tools/StraightenTool.c deleted file mode 100644 index 9d00c58..0000000 --- a/src/editing_tools/StraightenTool.c +++ /dev/null @@ -1,3568 +0,0 @@ -/* StraightenTool.c generated by valac 0.40.4, the Vala compiler - * generated from StraightenTool.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define EDITING_TOOLS_TYPE_EDITING_TOOL (editing_tools_editing_tool_get_type ()) -#define EDITING_TOOLS_EDITING_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)) -#define EDITING_TOOLS_EDITING_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingToolClass)) -#define EDITING_TOOLS_IS_EDITING_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL)) -#define EDITING_TOOLS_IS_EDITING_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL)) -#define EDITING_TOOLS_EDITING_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingToolClass)) - -typedef struct _EditingToolsEditingTool EditingToolsEditingTool; -typedef struct _EditingToolsEditingToolClass EditingToolsEditingToolClass; -typedef struct _EditingToolsEditingToolPrivate EditingToolsEditingToolPrivate; - -#define EDITING_TOOLS_TYPE_PHOTO_CANVAS (editing_tools_photo_canvas_get_type ()) -#define EDITING_TOOLS_PHOTO_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvas)) -#define EDITING_TOOLS_PHOTO_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvasClass)) -#define EDITING_TOOLS_IS_PHOTO_CANVAS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS)) -#define EDITING_TOOLS_IS_PHOTO_CANVAS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_PHOTO_CANVAS)) -#define EDITING_TOOLS_PHOTO_CANVAS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_PHOTO_CANVAS, EditingToolsPhotoCanvasClass)) - -typedef struct _EditingToolsPhotoCanvas EditingToolsPhotoCanvas; -typedef struct _EditingToolsPhotoCanvasClass EditingToolsPhotoCanvasClass; - -#define EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW (editing_tools_editing_tool_window_get_type ()) -#define EDITING_TOOLS_EDITING_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow)) -#define EDITING_TOOLS_EDITING_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindowClass)) -#define EDITING_TOOLS_IS_EDITING_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW)) -#define EDITING_TOOLS_IS_EDITING_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW)) -#define EDITING_TOOLS_EDITING_TOOL_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindowClass)) - -typedef struct _EditingToolsEditingToolWindow EditingToolsEditingToolWindow; -typedef struct _EditingToolsEditingToolWindowClass EditingToolsEditingToolWindowClass; - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -typedef struct _Scaling Scaling; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL (editing_tools_straighten_tool_get_type ()) -#define EDITING_TOOLS_STRAIGHTEN_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool)) -#define EDITING_TOOLS_STRAIGHTEN_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenToolClass)) -#define EDITING_TOOLS_IS_STRAIGHTEN_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL)) -#define EDITING_TOOLS_IS_STRAIGHTEN_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL)) -#define EDITING_TOOLS_STRAIGHTEN_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenToolClass)) - -typedef struct _EditingToolsStraightenTool EditingToolsStraightenTool; -typedef struct _EditingToolsStraightenToolClass EditingToolsStraightenToolClass; -typedef struct _EditingToolsStraightenToolPrivate EditingToolsStraightenToolPrivate; - -#define EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_TOOL_WINDOW (editing_tools_straighten_tool_straighten_tool_window_get_type ()) -#define EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_TOOL_WINDOW, EditingToolsStraightenToolStraightenToolWindow)) -#define EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_TOOL_WINDOW, EditingToolsStraightenToolStraightenToolWindowClass)) -#define EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_TOOL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_TOOL_WINDOW)) -#define EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_TOOL_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_TOOL_WINDOW)) -#define EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_TOOL_WINDOW, EditingToolsStraightenToolStraightenToolWindowClass)) - -typedef struct _EditingToolsStraightenToolStraightenToolWindow EditingToolsStraightenToolStraightenToolWindow; -typedef struct _EditingToolsStraightenToolStraightenToolWindowClass EditingToolsStraightenToolStraightenToolWindowClass; - -#define TYPE_ONE_SHOT_SCHEDULER (one_shot_scheduler_get_type ()) -#define ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler)) -#define ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass)) -#define IS_ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ONE_SHOT_SCHEDULER)) -#define IS_ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ONE_SHOT_SCHEDULER)) -#define ONE_SHOT_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass)) - -typedef struct _OneShotScheduler OneShotScheduler; -typedef struct _OneShotSchedulerClass OneShotSchedulerClass; - -#define EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE (editing_tools_straighten_tool_straighten_guide_get_type ()) -#define EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_GUIDE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE, EditingToolsStraightenToolStraightenGuide)) -#define EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_GUIDE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE, EditingToolsStraightenToolStraightenGuideClass)) -#define EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_GUIDE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE)) -#define EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_GUIDE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE)) -#define EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_GUIDE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE, EditingToolsStraightenToolStraightenGuideClass)) - -typedef struct _EditingToolsStraightenToolStraightenGuide EditingToolsStraightenToolStraightenGuide; -typedef struct _EditingToolsStraightenToolStraightenGuideClass EditingToolsStraightenToolStraightenGuideClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL))) -#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL))) -#define _one_shot_scheduler_unref0(var) ((var == NULL) ? NULL : (var = (one_shot_scheduler_unref (var), NULL))) -#define _editing_tools_straighten_tool_straighten_guide_unref0(var) ((var == NULL) ? NULL : (var = (editing_tools_straighten_tool_straighten_guide_unref (var), NULL))) -typedef struct _EditingToolsEditingToolWindowPrivate EditingToolsEditingToolWindowPrivate; -typedef struct _EditingToolsStraightenToolStraightenToolWindowPrivate EditingToolsStraightenToolStraightenToolWindowPrivate; - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; - -#define TYPE_SINGLE_DATA_SOURCE_COMMAND (single_data_source_command_get_type ()) -#define SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)) -#define SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) -#define IS_SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND)) -#define IS_SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND)) -#define SINGLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) - -typedef struct _SingleDataSourceCommand SingleDataSourceCommand; -typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass; - -#define TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND (generic_photo_transformation_command_get_type ()) -#define GENERIC_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommand)) -#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandClass)) -#define IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND)) -#define IS_GENERIC_PHOTO_TRANSFORMATION_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND)) -#define GENERIC_PHOTO_TRANSFORMATION_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GENERIC_PHOTO_TRANSFORMATION_COMMAND, GenericPhotoTransformationCommandClass)) - -typedef struct _GenericPhotoTransformationCommand GenericPhotoTransformationCommand; -typedef struct _GenericPhotoTransformationCommandClass GenericPhotoTransformationCommandClass; - -#define TYPE_STRAIGHTEN_COMMAND (straighten_command_get_type ()) -#define STRAIGHTEN_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STRAIGHTEN_COMMAND, StraightenCommand)) -#define STRAIGHTEN_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STRAIGHTEN_COMMAND, StraightenCommandClass)) -#define IS_STRAIGHTEN_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STRAIGHTEN_COMMAND)) -#define IS_STRAIGHTEN_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STRAIGHTEN_COMMAND)) -#define STRAIGHTEN_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STRAIGHTEN_COMMAND, StraightenCommandClass)) - -typedef struct _StraightenCommand StraightenCommand; -typedef struct _StraightenCommandClass StraightenCommandClass; - -#define TYPE_BOX (box_get_type ()) -typedef struct _Box Box; -#define _g_free0(var) ((var == NULL) ? NULL : (var = (g_free (var), NULL))) - -#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ()) - -#define TYPE_BACKING_FETCH_MODE (backing_fetch_mode_get_type ()) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _editing_tools_photo_canvas_unref0(var) ((var == NULL) ? NULL : (var = (editing_tools_photo_canvas_unref (var), NULL))) -typedef struct _EditingToolsStraightenToolStraightenGuidePrivate EditingToolsStraightenToolStraightenGuidePrivate; -typedef struct _EditingToolsStraightenToolParamSpecStraightenGuide EditingToolsStraightenToolParamSpecStraightenGuide; -enum { - EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_0_PROPERTY, - EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_NUM_PROPERTIES -}; -static GParamSpec* editing_tools_straighten_tool_straighten_tool_window_properties[EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_NUM_PROPERTIES]; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -struct _EditingToolsEditingTool { - GTypeInstance parent_instance; - volatile int ref_count; - EditingToolsEditingToolPrivate * priv; - EditingToolsPhotoCanvas* canvas; - cairo_surface_t* surface; - gchar* name; -}; - -struct _EditingToolsEditingToolClass { - GTypeClass parent_class; - void (*finalize) (EditingToolsEditingTool *self); - void (*activate) (EditingToolsEditingTool* self, EditingToolsPhotoCanvas* canvas); - void (*deactivate) (EditingToolsEditingTool* self); - EditingToolsEditingToolWindow* (*get_tool_window) (EditingToolsEditingTool* self); - GdkPixbuf* (*get_display_pixbuf) (EditingToolsEditingTool* self, Scaling* scaling, Photo* photo, Dimensions* max_dim, GError** error); - void (*on_left_click) (EditingToolsEditingTool* self, gint x, gint y); - void (*on_left_released) (EditingToolsEditingTool* self, gint x, gint y); - void (*on_motion) (EditingToolsEditingTool* self, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (EditingToolsEditingTool* self); - gboolean (*on_keypress) (EditingToolsEditingTool* self, GdkEventKey* event); - void (*paint) (EditingToolsEditingTool* self, cairo_t* ctx); -}; - -struct _EditingToolsStraightenTool { - EditingToolsEditingTool parent_instance; - EditingToolsStraightenToolPrivate * priv; -}; - -struct _EditingToolsStraightenToolClass { - EditingToolsEditingToolClass parent_class; -}; - -struct _EditingToolsStraightenToolPrivate { - EditingToolsStraightenToolStraightenToolWindow* window; - cairo_surface_t* photo_surf; - Dimensions image_dims; - cairo_surface_t* rotate_surf; - cairo_t* rotate_ctx; - Dimensions last_viewport; - gint view_width; - gint view_height; - gdouble photo_angle; - gboolean use_high_qual; - OneShotScheduler* slider_sched; - GdkPoint crop_center; - gint crop_width; - gint crop_height; - EditingToolsStraightenToolStraightenGuide* guide; - GdkPoint rotated_center; - gdouble rotate_scale; - gdouble preview_scale; -}; - -struct _EditingToolsEditingToolWindow { - GtkWindow parent_instance; - EditingToolsEditingToolWindowPrivate * priv; -}; - -struct _EditingToolsEditingToolWindowClass { - GtkWindowClass parent_class; -}; - -struct _EditingToolsStraightenToolStraightenToolWindow { - EditingToolsEditingToolWindow parent_instance; - EditingToolsStraightenToolStraightenToolWindowPrivate * priv; - GtkScale* angle_slider; - GtkLabel* angle_label; - GtkLabel* description_label; - GtkButton* ok_button; - GtkButton* cancel_button; - GtkButton* reset_button; -}; - -struct _EditingToolsStraightenToolStraightenToolWindowClass { - EditingToolsEditingToolWindowClass parent_class; -}; - -struct _Box { - gint left; - gint top; - gint right; - gint bottom; -}; - -typedef enum { - PHOTO_EXCEPTION_NONE = 0, - PHOTO_EXCEPTION_ORIENTATION = 1 << 0, - PHOTO_EXCEPTION_CROP = 1 << 1, - PHOTO_EXCEPTION_REDEYE = 1 << 2, - PHOTO_EXCEPTION_ADJUST = 1 << 3, - PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4, - PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL -} PhotoException; - -typedef enum { - BACKING_FETCH_MODE_SOURCE, - BACKING_FETCH_MODE_BASELINE, - BACKING_FETCH_MODE_MASTER, - BACKING_FETCH_MODE_UNMODIFIED -} BackingFetchMode; - -typedef void (*OneShotCallback) (void* user_data); -struct _EditingToolsStraightenToolStraightenGuide { - GTypeInstance parent_instance; - volatile int ref_count; - EditingToolsStraightenToolStraightenGuidePrivate * priv; -}; - -struct _EditingToolsStraightenToolStraightenGuideClass { - GTypeClass parent_class; - void (*finalize) (EditingToolsStraightenToolStraightenGuide *self); -}; - -struct _EditingToolsStraightenToolStraightenGuidePrivate { - gboolean is_active; - gint x[2]; - gint y[2]; - gdouble angle0; -}; - -struct _EditingToolsStraightenToolParamSpecStraightenGuide { - GParamSpec parent_instance; -}; - - -static gpointer editing_tools_straighten_tool_parent_class = NULL; -static gpointer editing_tools_straighten_tool_straighten_guide_parent_class = NULL; -static gpointer editing_tools_straighten_tool_straighten_tool_window_parent_class = NULL; - -gpointer editing_tools_editing_tool_ref (gpointer instance); -void editing_tools_editing_tool_unref (gpointer instance); -GParamSpec* editing_tools_param_spec_editing_tool (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void editing_tools_value_set_editing_tool (GValue* value, - gpointer v_object); -void editing_tools_value_take_editing_tool (GValue* value, - gpointer v_object); -gpointer editing_tools_value_get_editing_tool (const GValue* value); -GType editing_tools_editing_tool_get_type (void) G_GNUC_CONST; -gpointer editing_tools_photo_canvas_ref (gpointer instance); -void editing_tools_photo_canvas_unref (gpointer instance); -GParamSpec* editing_tools_param_spec_photo_canvas (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void editing_tools_value_set_photo_canvas (GValue* value, - gpointer v_object); -void editing_tools_value_take_photo_canvas (GValue* value, - gpointer v_object); -gpointer editing_tools_value_get_photo_canvas (const GValue* value); -GType editing_tools_photo_canvas_get_type (void) G_GNUC_CONST; -GType editing_tools_editing_tool_window_get_type (void) G_GNUC_CONST; -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType editing_tools_straighten_tool_get_type (void) G_GNUC_CONST; -static GType editing_tools_straighten_tool_straighten_tool_window_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -gpointer one_shot_scheduler_ref (gpointer instance); -void one_shot_scheduler_unref (gpointer instance); -GParamSpec* param_spec_one_shot_scheduler (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_one_shot_scheduler (GValue* value, - gpointer v_object); -void value_take_one_shot_scheduler (GValue* value, - gpointer v_object); -gpointer value_get_one_shot_scheduler (const GValue* value); -GType one_shot_scheduler_get_type (void) G_GNUC_CONST; -static gpointer editing_tools_straighten_tool_straighten_guide_ref (gpointer instance); -static void editing_tools_straighten_tool_straighten_guide_unref (gpointer instance); -static GParamSpec* editing_tools_straighten_tool_param_spec_straighten_guide (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void editing_tools_straighten_tool_value_set_straighten_guide (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void editing_tools_straighten_tool_value_take_straighten_guide (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer editing_tools_straighten_tool_value_get_straighten_guide (const GValue* value) G_GNUC_UNUSED; -static GType editing_tools_straighten_tool_straighten_guide_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define EDITING_TOOLS_STRAIGHTEN_TOOL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenToolPrivate)) -static EditingToolsStraightenToolStraightenGuide* editing_tools_straighten_tool_straighten_guide_new (void); -static EditingToolsStraightenToolStraightenGuide* editing_tools_straighten_tool_straighten_guide_construct (GType object_type); -#define EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_ANGLE (-15.0) -#define EDITING_TOOLS_STRAIGHTEN_TOOL_MAX_ANGLE 15.0 -#define EDITING_TOOLS_STRAIGHTEN_TOOL_INCREMENT 0.1 -#define EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_SLIDER_SIZE 160 -#define EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_LABEL_SIZE 100 -#define EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_BUTTON_SIZE 84 -#define EDITING_TOOLS_STRAIGHTEN_TOOL_TEMP_PIXBUF_SIZE 768 -#define EDITING_TOOLS_STRAIGHTEN_TOOL_REPAINT_ON_STOP_DELAY_MSEC 100 -static EditingToolsStraightenTool* editing_tools_straighten_tool_new (void); -static EditingToolsStraightenTool* editing_tools_straighten_tool_construct (GType object_type); -EditingToolsEditingTool* editing_tools_editing_tool_construct (GType object_type, - const gchar* name); -EditingToolsStraightenTool* editing_tools_straighten_tool_factory (void); -gboolean editing_tools_straighten_tool_is_available (Photo* photo, - Scaling* scaling); -static void editing_tools_straighten_tool_on_ok_clicked (EditingToolsStraightenTool* self); -Photo* editing_tools_photo_canvas_get_photo (EditingToolsPhotoCanvas* self); -void rotate_point_arb (GdkPoint* source_point, - gint img_w, - gint img_h, - gdouble angle, - gboolean invert, - GdkPoint* result); -GType command_get_type (void) G_GNUC_CONST; -GType page_command_get_type (void) G_GNUC_CONST; -GType single_data_source_command_get_type (void) G_GNUC_CONST; -GType generic_photo_transformation_command_get_type (void) G_GNUC_CONST; -GType straighten_command_get_type (void) G_GNUC_CONST; -GType box_get_type (void) G_GNUC_CONST; -Box* box_dup (const Box* self); -void box_free (Box* self); -void box_from_center (GdkPoint* center, - gint width, - gint height, - Box* result); -#define RESOURCES_STRAIGHTEN_LABEL _ ("Straighten") -#define RESOURCES_STRAIGHTEN_TOOLTIP _ ("Straighten the photo") -StraightenCommand* straighten_command_new (Photo* photo, - gdouble theta, - Box* crop, - const gchar* name, - const gchar* explanation); -StraightenCommand* straighten_command_construct (GType object_type, - Photo* photo, - gdouble theta, - Box* crop, - const gchar* name, - const gchar* explanation); -static void editing_tools_straighten_tool_high_qual_repaint (EditingToolsStraightenTool* self); -static void editing_tools_straighten_tool_update_rotated_surface (EditingToolsStraightenTool* self); -void editing_tools_photo_canvas_repaint (EditingToolsPhotoCanvas* self); -static void editing_tools_straighten_tool_on_slider_stopped_delayed (EditingToolsStraightenTool* self); -static void editing_tools_straighten_tool_real_on_left_click (EditingToolsEditingTool* base, - gint x, - gint y); -static void editing_tools_straighten_tool_straighten_guide_reset (EditingToolsStraightenToolStraightenGuide* self, - gint x, - gint y, - gdouble angle); -static void editing_tools_straighten_tool_real_on_left_released (EditingToolsEditingTool* base, - gint x, - gint y); -static gboolean editing_tools_straighten_tool_straighten_guide_update (EditingToolsStraightenToolStraightenGuide* self, - gint x, - gint y); -static gdouble* editing_tools_straighten_tool_straighten_guide_get_angle (EditingToolsStraightenToolStraightenGuide* self); -static void editing_tools_straighten_tool_straighten_guide_clear (EditingToolsStraightenToolStraightenGuide* self); -static void editing_tools_straighten_tool_real_on_motion (EditingToolsEditingTool* base, - gint x, - gint y, - GdkModifierType mask); -static gboolean editing_tools_straighten_tool_real_on_keypress (EditingToolsEditingTool* base, - GdkEventKey* event); -void editing_tools_editing_tool_notify_cancel (EditingToolsEditingTool* self); -gboolean editing_tools_editing_tool_on_keypress (EditingToolsEditingTool* self, - GdkEventKey* event); -static void editing_tools_straighten_tool_prepare_image (EditingToolsStraightenTool* self); -void editing_tools_photo_canvas_get_surface_dim (EditingToolsPhotoCanvas* self, - Dimensions* result); -void dimensions_with_max (Dimensions *self, - gint max_width, - gint max_height, - Dimensions* result); -static gboolean _dimensions_equal (const Dimensions * s1, - const Dimensions * s2); -GType photo_exception_get_type (void) G_GNUC_CONST; -GType backing_fetch_mode_get_type (void) G_GNUC_CONST; -GdkPixbuf* photo_get_pixbuf_with_options (Photo* self, - Scaling* scaling, - PhotoException exceptions, - BackingFetchMode fetch_mode, - GError** error); -void scaling_for_viewport (Dimensions* viewport, - gboolean scale_up, - Scaling* result); -gchar* data_object_to_string (DataObject* self); -void paint_pixmap_with_background (cairo_t* ctx, - GdkPixbuf* pixbuf, - gint x, - gint y); -static void editing_tools_straighten_tool_adjust_for_rotation (EditingToolsStraightenTool* self); -void compute_arb_rotated_size (gdouble src_width, - gdouble src_height, - gdouble angle, - gdouble* dest_width, - gdouble* dest_height); -static void editing_tools_straighten_tool_real_activate (EditingToolsEditingTool* base, - EditingToolsPhotoCanvas* canvas); -void editing_tools_editing_tool_activate (EditingToolsEditingTool* self, - EditingToolsPhotoCanvas* canvas); -static void editing_tools_straighten_tool_bind_canvas_handlers (EditingToolsStraightenTool* self, - EditingToolsPhotoCanvas* canvas); -void media_source_get_dimensions (MediaSource* self, - PhotoException disallowed_steps, - Dimensions* result); -gboolean photo_get_crop (Photo* self, - Box* crop, - PhotoException exceptions); -gboolean photo_get_straighten (Photo* self, - gdouble* theta); -void derotate_point_arb (GdkPoint* source_point, - gint img_w, - gint img_h, - gdouble angle, - GdkPoint* result); -void box_get_center (Box *self, - GdkPoint* result); -gint box_get_width (Box *self); -gint box_get_height (Box *self); -GdkWindow* editing_tools_photo_canvas_get_drawing_window (EditingToolsPhotoCanvas* self); -GtkWindow* editing_tools_photo_canvas_get_container (EditingToolsPhotoCanvas* self); -static EditingToolsStraightenToolStraightenToolWindow* editing_tools_straighten_tool_straighten_tool_window_new (GtkWindow* container); -static EditingToolsStraightenToolStraightenToolWindow* editing_tools_straighten_tool_straighten_tool_window_construct (GType object_type, - GtkWindow* container); -static void editing_tools_straighten_tool_bind_window_handlers (EditingToolsStraightenTool* self); -static void editing_tools_straighten_tool_real_deactivate (EditingToolsEditingTool* base); -static void editing_tools_straighten_tool_unbind_window_handlers (EditingToolsStraightenTool* self); -static void editing_tools_straighten_tool_unbind_canvas_handlers (EditingToolsStraightenTool* self, - EditingToolsPhotoCanvas* canvas); -void editing_tools_editing_tool_deactivate (EditingToolsEditingTool* self); -static void editing_tools_straighten_tool_on_resized_pixbuf (EditingToolsStraightenTool* self, - Dimensions* old_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position); -static void _editing_tools_straighten_tool_on_resized_pixbuf_editing_tools_photo_canvas_resized_scaled_pixbuf (EditingToolsPhotoCanvas* _sender, - Dimensions* old_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position, - gpointer self); -static gboolean _editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event (GtkWidget* _sender, - GdkEventKey* event, - gpointer self); -static void _editing_tools_straighten_tool_on_ok_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void _editing_tools_editing_tool_notify_cancel_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void editing_tools_straighten_tool_on_angle_changed (EditingToolsStraightenTool* self); -static void _editing_tools_straighten_tool_on_angle_changed_gtk_range_value_changed (GtkRange* _sender, - gpointer self); -static void _editing_tools_straighten_tool_on_slider_stopped_delayed_one_shot_callback (gpointer self); -OneShotScheduler* one_shot_scheduler_new (const gchar* name, - OneShotCallback callback, - void* callback_target); -OneShotScheduler* one_shot_scheduler_construct (GType object_type, - const gchar* name, - OneShotCallback callback, - void* callback_target); -void one_shot_scheduler_after_timeout (OneShotScheduler* self, - guint msec, - gboolean reschedule); -static EditingToolsEditingToolWindow* editing_tools_straighten_tool_real_get_tool_window (EditingToolsEditingTool* base); -static void editing_tools_straighten_tool_draw_rotated_source (EditingToolsStraightenTool* self, - cairo_surface_t* src_surf, - cairo_t* dest_ctx, - gint src_width, - gint src_height, - gdouble angle); -static void editing_tools_straighten_tool_draw_superimposed_grid (EditingToolsStraightenTool* self, - cairo_t* dest_ctx, - gint width, - gint height); -static void editing_tools_straighten_tool_real_paint (EditingToolsEditingTool* base, - cairo_t* ctx); -cairo_t* editing_tools_photo_canvas_get_default_ctx (EditingToolsPhotoCanvas* self); -static void editing_tools_straighten_tool_straighten_guide_draw (EditingToolsStraightenToolStraightenGuide* self, - cairo_t* ctx); -gdouble degrees_to_radians (gdouble theta); -void editing_tools_photo_canvas_draw_horizontal_line (EditingToolsPhotoCanvas* self, - cairo_t* ctx, - gint x, - gint y, - gint width, - gboolean use_scaled_pos); -void editing_tools_photo_canvas_draw_vertical_line (EditingToolsPhotoCanvas* self, - cairo_t* ctx, - gint x, - gint y, - gint height, - gboolean use_scaled_pos); -#define EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_GUIDE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE, EditingToolsStraightenToolStraightenGuidePrivate)) -static gdouble* _double_dup (gdouble* self); -static void editing_tools_straighten_tool_straighten_guide_finalize (EditingToolsStraightenToolStraightenGuide * obj); -#define RESOURCES_CANCEL_LABEL _ ("_Cancel") -#define EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_CONTROL_SPACING 8 -EditingToolsEditingToolWindow* editing_tools_editing_tool_window_construct (GType object_type, - GtkWindow* container); -static void editing_tools_straighten_tool_straighten_tool_window_on_reset_clicked (EditingToolsStraightenToolStraightenToolWindow* self); -static void _editing_tools_straighten_tool_straighten_tool_window_on_reset_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void editing_tools_straighten_tool_straighten_tool_window_finalize (GObject * obj); -static void editing_tools_straighten_tool_finalize (EditingToolsEditingTool * obj); - -static const gdouble EDITING_TOOLS_STRAIGHTEN_TOOL_GUIDE_DASH[2] = {(gdouble) 10, (gdouble) 10}; - -static EditingToolsStraightenTool* -editing_tools_straighten_tool_construct (GType object_type) -{ - EditingToolsStraightenTool* self = NULL; -#line 190 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self = (EditingToolsStraightenTool*) editing_tools_editing_tool_construct (object_type, "StraightenTool"); -#line 189 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return self; -#line 687 "StraightenTool.c" -} - - -static EditingToolsStraightenTool* -editing_tools_straighten_tool_new (void) -{ -#line 189 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return editing_tools_straighten_tool_construct (EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL); -#line 696 "StraightenTool.c" -} - - -EditingToolsStraightenTool* -editing_tools_straighten_tool_factory (void) -{ - EditingToolsStraightenTool* result = NULL; - EditingToolsStraightenTool* _tmp0_; -#line 194 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = editing_tools_straighten_tool_new (); -#line 194 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - result = _tmp0_; -#line 194 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return result; -#line 711 "StraightenTool.c" -} - - -gboolean -editing_tools_straighten_tool_is_available (Photo* photo, - Scaling* scaling) -{ - gboolean result = FALSE; -#line 197 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_val_if_fail (IS_PHOTO (photo), FALSE); -#line 197 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_val_if_fail (scaling != NULL, FALSE); -#line 198 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - result = TRUE; -#line 198 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return result; -#line 728 "StraightenTool.c" -} - - -/** - * @brief Signal handler for when the 'OK' button has been clicked. Computes where a previously- - * set crop region should have rotated to (to match the Photo's straightening angle). - * - * @note After this has been called against a Photo, it will always have a crop region; in the - * case of a previously-uncropped Photo, the crop region will be set to the original dimensions - * of the photo and centered at the Photo's center. - */ -static void -editing_tools_straighten_tool_on_ok_clicked (EditingToolsStraightenTool* self) -{ - EditingToolsPhotoCanvas* _tmp0_; - Photo* _tmp1_; - Photo* _tmp2_; - gdouble slider_val = 0.0; - EditingToolsStraightenToolStraightenToolWindow* _tmp3_; - GtkScale* _tmp4_; - GdkPoint new_crop_center = {0}; - GdkPoint _tmp5_; - Dimensions _tmp6_; - gint _tmp7_; - Dimensions _tmp8_; - gint _tmp9_; - GdkPoint _tmp10_ = {0}; - StraightenCommand* command = NULL; - EditingToolsPhotoCanvas* _tmp11_; - Photo* _tmp12_; - Photo* _tmp13_; - GdkPoint _tmp14_; - gdouble _tmp15_; - gint _tmp16_; - gdouble _tmp17_; - gint _tmp18_; - Box _tmp19_ = {0}; - StraightenCommand* _tmp20_; - StraightenCommand* _tmp21_; - Dimensions _tmp22_; -#line 209 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self)); -#line 210 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 210 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = editing_tools_photo_canvas_get_photo (_tmp0_); -#line 210 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = _tmp1_; -#line 210 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _vala_assert (_tmp2_ != NULL, "canvas.get_photo() != null"); -#line 210 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (_tmp2_); -#line 214 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp3_ = self->priv->window; -#line 214 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp4_ = _tmp3_->angle_slider; -#line 214 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - slider_val = gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_range_get_type (), GtkRange)); -#line 216 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = self->priv->rotated_center; -#line 216 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = self->priv->image_dims; -#line 216 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp7_ = _tmp6_.width; -#line 216 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp8_ = self->priv->image_dims; -#line 216 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp9_ = _tmp8_.height; -#line 216 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - rotate_point_arb (&_tmp5_, _tmp7_, _tmp9_, slider_val, FALSE, &_tmp10_); -#line 216 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - new_crop_center = _tmp10_; -#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp12_ = editing_tools_photo_canvas_get_photo (_tmp11_); -#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp13_ = _tmp12_; -#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp14_ = new_crop_center; -#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp15_ = self->priv->rotate_scale; -#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp16_ = self->priv->crop_width; -#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp17_ = self->priv->rotate_scale; -#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp18_ = self->priv->crop_height; -#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - box_from_center (&_tmp14_, (gint) (_tmp15_ * _tmp16_), (gint) (_tmp17_ * _tmp18_), &_tmp19_); -#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp20_ = straighten_command_new (_tmp13_, slider_val, &_tmp19_, RESOURCES_STRAIGHTEN_LABEL, RESOURCES_STRAIGHTEN_TOOLTIP); -#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp21_ = _tmp20_; -#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (_tmp13_); -#line 219 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - command = _tmp21_; -#line 224 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp22_ = self->priv->image_dims; -#line 224 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), "applied", G_TYPE_CHECK_INSTANCE_CAST (command, TYPE_COMMAND, Command), NULL, &_tmp22_, TRUE); -#line 209 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (command); -#line 833 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_high_qual_repaint (EditingToolsStraightenTool* self) -{ - EditingToolsPhotoCanvas* _tmp0_; -#line 227 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self)); -#line 228 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->use_high_qual = TRUE; -#line 229 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_update_rotated_surface (self); -#line 230 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 230 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_photo_canvas_repaint (_tmp0_); -#line 851 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_on_slider_stopped_delayed (EditingToolsStraightenTool* self) -{ -#line 233 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self)); -#line 234 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_high_qual_repaint (self); -#line 862 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_real_on_left_click (EditingToolsEditingTool* base, - gint x, - gint y) -{ - EditingToolsStraightenTool * self; - EditingToolsStraightenToolStraightenGuide* _tmp0_; - gdouble _tmp1_; -#line 237 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool); -#line 238 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = self->priv->guide; -#line 238 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = self->priv->photo_angle; -#line 238 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_straighten_guide_reset (_tmp0_, x, y, _tmp1_); -#line 882 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_real_on_left_released (EditingToolsEditingTool* base, - gint x, - gint y) -{ - EditingToolsStraightenTool * self; - EditingToolsStraightenToolStraightenGuide* _tmp0_; - gdouble* a = NULL; - EditingToolsStraightenToolStraightenGuide* _tmp1_; - gdouble* _tmp2_; - EditingToolsStraightenToolStraightenGuide* _tmp3_; - gdouble* _tmp4_; -#line 241 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool); -#line 242 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = self->priv->guide; -#line 242 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_straighten_guide_update (_tmp0_, x, y); -#line 243 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = self->priv->guide; -#line 243 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = editing_tools_straighten_tool_straighten_guide_get_angle (_tmp1_); -#line 243 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - a = _tmp2_; -#line 244 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp3_ = self->priv->guide; -#line 244 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_straighten_guide_clear (_tmp3_); -#line 245 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp4_ = a; -#line 245 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (_tmp4_ != NULL) { -#line 918 "StraightenTool.c" - EditingToolsStraightenToolStraightenToolWindow* _tmp5_; - GtkScale* _tmp6_; - gdouble* _tmp7_; -#line 246 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = self->priv->window; -#line 246 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = _tmp5_->angle_slider; -#line 246 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp7_ = a; -#line 246 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_range_get_type (), GtkRange), *_tmp7_); -#line 247 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_high_qual_repaint (self); -#line 932 "StraightenTool.c" - } -#line 241 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_free0 (a); -#line 936 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_real_on_motion (EditingToolsEditingTool* base, - gint x, - gint y, - GdkModifierType mask) -{ - EditingToolsStraightenTool * self; - EditingToolsStraightenToolStraightenGuide* _tmp0_; -#line 251 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool); -#line 252 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = self->priv->guide; -#line 252 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (editing_tools_straighten_tool_straighten_guide_update (_tmp0_, x, y)) { -#line 954 "StraightenTool.c" - EditingToolsPhotoCanvas* _tmp1_; -#line 253 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 253 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_photo_canvas_repaint (_tmp1_); -#line 960 "StraightenTool.c" - } -} - - -static gboolean -editing_tools_straighten_tool_real_on_keypress (EditingToolsEditingTool* base, - GdkEventKey* event) -{ - EditingToolsStraightenTool * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - guint _tmp2_; - const gchar* _tmp3_; - guint _tmp8_; - const gchar* _tmp9_; -#line 256 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool); -#line 256 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 257 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = event->keyval; -#line 257 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp3_ = gdk_keyval_name (_tmp2_); -#line 257 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (g_strcmp0 (_tmp3_, "KP_Enter") == 0) { -#line 257 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = TRUE; -#line 989 "StraightenTool.c" - } else { - guint _tmp4_; - const gchar* _tmp5_; -#line 258 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp4_ = event->keyval; -#line 258 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = gdk_keyval_name (_tmp4_); -#line 258 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = g_strcmp0 (_tmp5_, "Enter") == 0; -#line 999 "StraightenTool.c" - } -#line 257 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (_tmp1_) { -#line 257 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = TRUE; -#line 1005 "StraightenTool.c" - } else { - guint _tmp6_; - const gchar* _tmp7_; -#line 259 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = event->keyval; -#line 259 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp7_ = gdk_keyval_name (_tmp6_); -#line 259 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = g_strcmp0 (_tmp7_, "Return") == 0; -#line 1015 "StraightenTool.c" - } -#line 257 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (_tmp0_) { -#line 260 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_on_ok_clicked (self); -#line 261 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - result = TRUE; -#line 261 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return result; -#line 1025 "StraightenTool.c" - } -#line 264 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp8_ = event->keyval; -#line 264 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp9_ = gdk_keyval_name (_tmp8_); -#line 264 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (g_strcmp0 (_tmp9_, "Escape") == 0) { -#line 265 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_editing_tool_notify_cancel (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)); -#line 266 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - result = TRUE; -#line 266 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return result; -#line 1039 "StraightenTool.c" - } -#line 269 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - result = EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_straighten_tool_parent_class)->on_keypress (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), event); -#line 269 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return result; -#line 1045 "StraightenTool.c" -} - - -static gboolean -_dimensions_equal (const Dimensions * s1, - const Dimensions * s2) -{ -#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (s1 == s2) { -#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return TRUE; -#line 1057 "StraightenTool.c" - } -#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (s1 == NULL) { -#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return FALSE; -#line 1063 "StraightenTool.c" - } -#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (s2 == NULL) { -#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return FALSE; -#line 1069 "StraightenTool.c" - } -#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (s1->width != s2->width) { -#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return FALSE; -#line 1075 "StraightenTool.c" - } -#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (s1->height != s2->height) { -#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return FALSE; -#line 1081 "StraightenTool.c" - } -#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return TRUE; -#line 1085 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_prepare_image (EditingToolsStraightenTool* self) -{ - Dimensions canvas_dims = {0}; - EditingToolsPhotoCanvas* _tmp0_; - Dimensions _tmp1_ = {0}; - Dimensions viewport = {0}; - Dimensions _tmp2_ = {0}; - Dimensions _tmp3_; - Dimensions _tmp4_; - Dimensions _tmp5_; - GdkPixbuf* low_res_tmp = NULL; - GdkPixbuf* _tmp21_; - gint _tmp22_; - gint _tmp23_; - Dimensions _tmp24_; - gint _tmp25_; - GdkPixbuf* _tmp26_; - gint _tmp27_; - gint _tmp28_; - GdkPixbuf* _tmp29_; - gint _tmp30_; - gint _tmp31_; - cairo_surface_t* _tmp32_; - cairo_t* ctx = NULL; - cairo_surface_t* _tmp33_; - cairo_t* _tmp34_; - cairo_t* _tmp35_; - GdkPixbuf* _tmp36_; - gint _tmp37_; - gdouble _tmp38_; - gint _tmp39_; - gdouble _tmp40_; - gint _tmp41_; - gint _tmp42_; - cairo_surface_t* _tmp43_; - cairo_surface_t* _tmp44_; - cairo_t* _tmp45_; - GError * _inner_error_ = NULL; -#line 272 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self)); -#line 273 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 273 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_photo_canvas_get_surface_dim (_tmp0_, &_tmp1_); -#line 273 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - canvas_dims = _tmp1_; -#line 274 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - dimensions_with_max (&canvas_dims, EDITING_TOOLS_STRAIGHTEN_TOOL_TEMP_PIXBUF_SIZE, EDITING_TOOLS_STRAIGHTEN_TOOL_TEMP_PIXBUF_SIZE, &_tmp2_); -#line 274 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - viewport = _tmp2_; -#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp3_ = viewport; -#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp4_ = self->priv->last_viewport; -#line 275 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (_dimensions_equal (&_tmp3_, &_tmp4_) == TRUE) { -#line 276 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return; -#line 1148 "StraightenTool.c" - } -#line 278 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = viewport; -#line 278 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->last_viewport = _tmp5_; -#line 280 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - low_res_tmp = NULL; -#line 1156 "StraightenTool.c" - { - GdkPixbuf* _tmp6_ = NULL; - EditingToolsPhotoCanvas* _tmp7_; - Photo* _tmp8_; - Photo* _tmp9_; - Dimensions _tmp10_; - Scaling _tmp11_ = {0}; - GdkPixbuf* _tmp12_; - GdkPixbuf* _tmp13_; - GdkPixbuf* _tmp14_; -#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp8_ = editing_tools_photo_canvas_get_photo (_tmp7_); -#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp9_ = _tmp8_; -#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp10_ = viewport; -#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - scaling_for_viewport (&_tmp10_, FALSE, &_tmp11_); -#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp12_ = photo_get_pixbuf_with_options (_tmp9_, &_tmp11_, PHOTO_EXCEPTION_STRAIGHTEN | PHOTO_EXCEPTION_CROP, BACKING_FETCH_MODE_BASELINE, &_inner_error_); -#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp13_ = _tmp12_; -#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (_tmp9_); -#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = _tmp13_; -#line 283 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1187 "StraightenTool.c" - goto __catch27_g_error; - } -#line 282 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp14_ = _tmp6_; -#line 282 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = NULL; -#line 282 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (low_res_tmp); -#line 282 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - low_res_tmp = _tmp14_; -#line 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (_tmp6_); -#line 1200 "StraightenTool.c" - } - goto __finally27; - __catch27_g_error: - { - GError* e = NULL; - EditingToolsPhotoCanvas* _tmp15_; - Photo* _tmp16_; - Photo* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - GdkPixbuf* _tmp20_; -#line 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - e = _inner_error_; -#line 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _inner_error_ = NULL; -#line 286 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 286 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp16_ = editing_tools_photo_canvas_get_photo (_tmp15_); -#line 286 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp17_ = _tmp16_; -#line 286 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp18_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_OBJECT, DataObject)); -#line 286 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp19_ = _tmp18_; -#line 286 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_warning ("StraightenTool.vala:286: A pixbuf for %s couldn't be fetched.", _tmp19_); -#line 286 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_free0 (_tmp19_); -#line 286 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (_tmp17_); -#line 287 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp20_ = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, 1, 1); -#line 287 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (low_res_tmp); -#line 287 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - low_res_tmp = _tmp20_; -#line 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_error_free0 (e); -#line 1240 "StraightenTool.c" - } - __finally27: -#line 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (low_res_tmp); -#line 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_clear_error (&_inner_error_); -#line 281 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return; -#line 1253 "StraightenTool.c" - } -#line 290 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp21_ = low_res_tmp; -#line 290 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp22_ = gdk_pixbuf_get_width (_tmp21_); -#line 290 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp23_ = _tmp22_; -#line 290 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp24_ = self->priv->image_dims; -#line 290 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp25_ = _tmp24_.width; -#line 290 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->preview_scale = _tmp23_ / ((gdouble) _tmp25_); -#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp26_ = low_res_tmp; -#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp27_ = gdk_pixbuf_get_width (_tmp26_); -#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp28_ = _tmp27_; -#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp29_ = low_res_tmp; -#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp30_ = gdk_pixbuf_get_height (_tmp29_); -#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp31_ = _tmp30_; -#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp32_ = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, _tmp28_, _tmp31_); -#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_surface_destroy0 (self->priv->photo_surf); -#line 293 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->photo_surf = _tmp32_; -#line 294 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp33_ = self->priv->photo_surf; -#line 294 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp34_ = cairo_create (_tmp33_); -#line 294 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - ctx = _tmp34_; -#line 295 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp35_ = ctx; -#line 295 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp36_ = low_res_tmp; -#line 295 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - paint_pixmap_with_background (_tmp35_, _tmp36_, 0, 0); -#line 299 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp37_ = self->priv->crop_width; -#line 299 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp38_ = self->priv->preview_scale; -#line 299 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->view_width = (gint) (_tmp37_ * _tmp38_); -#line 300 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp39_ = self->priv->crop_height; -#line 300 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp40_ = self->priv->preview_scale; -#line 300 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->view_height = (gint) (_tmp39_ * _tmp40_); -#line 301 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp41_ = self->priv->view_width; -#line 301 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp42_ = self->priv->view_height; -#line 301 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp43_ = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, _tmp41_, _tmp42_); -#line 301 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_surface_destroy0 (self->priv->rotate_surf); -#line 301 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->rotate_surf = _tmp43_; -#line 302 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp44_ = self->priv->rotate_surf; -#line 302 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp45_ = cairo_create (_tmp44_); -#line 302 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_destroy0 (self->priv->rotate_ctx); -#line 302 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->rotate_ctx = _tmp45_; -#line 272 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_destroy0 (ctx); -#line 272 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (low_res_tmp); -#line 1331 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_adjust_for_rotation (EditingToolsStraightenTool* self) -{ - gdouble width = 0.0; - gdouble height = 0.0; - gint _tmp0_; - gint _tmp1_; - gdouble _tmp2_; - gdouble _tmp3_ = 0.0; - gdouble _tmp4_ = 0.0; - Dimensions _tmp5_; - gint _tmp6_; - Dimensions _tmp7_; - gint _tmp8_; - gdouble _tmp9_; - GdkPoint _tmp10_; - gint radius_x = 0; - gdouble _tmp11_; - gint radius_y = 0; - gdouble _tmp12_; - GdkPoint _tmp13_; - gint _tmp14_; - Dimensions _tmp15_; - gint _tmp16_; - GdkPoint _tmp17_; - gint _tmp18_; - Dimensions _tmp19_; - gint _tmp20_; -#line 306 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self)); -#line 308 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = self->priv->crop_width; -#line 308 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = self->priv->crop_height; -#line 308 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = self->priv->photo_angle; -#line 308 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - compute_arb_rotated_size ((gdouble) _tmp0_, (gdouble) _tmp1_, _tmp2_, &_tmp3_, &_tmp4_); -#line 308 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - width = _tmp3_; -#line 308 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - height = _tmp4_; -#line 311 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = self->priv->image_dims; -#line 311 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = _tmp5_.width; -#line 311 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp7_ = self->priv->image_dims; -#line 311 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp8_ = _tmp7_.height; -#line 311 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->rotate_scale = MIN (_tmp6_ / width, _tmp8_ / height); -#line 312 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp9_ = self->priv->rotate_scale; -#line 312 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->rotate_scale = MIN (_tmp9_, 1.0); -#line 315 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp10_ = self->priv->crop_center; -#line 315 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->rotated_center = _tmp10_; -#line 316 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp11_ = self->priv->rotate_scale; -#line 316 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - radius_x = (gint) ((_tmp11_ * width) / 2); -#line 317 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp12_ = self->priv->rotate_scale; -#line 317 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - radius_y = (gint) ((_tmp12_ * height) / 2); -#line 318 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp13_ = self->priv->rotated_center; -#line 318 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp14_ = _tmp13_.x; -#line 318 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp15_ = self->priv->image_dims; -#line 318 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp16_ = _tmp15_.width; -#line 318 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->rotated_center.x = CLAMP (_tmp14_, radius_x, _tmp16_ - radius_x); -#line 319 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp17_ = self->priv->rotated_center; -#line 319 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp18_ = _tmp17_.y; -#line 319 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp19_ = self->priv->image_dims; -#line 319 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp20_ = _tmp19_.height; -#line 319 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->rotated_center.y = CLAMP (_tmp18_, radius_y, _tmp20_ - radius_y); -#line 1423 "StraightenTool.c" -} - - -/** - * @brief Spawn the tool window, set up the scratch surfaces and prepare the straightening - * tool for use. If a valid pixbuf of the incoming Photo can't be loaded for any - * reason, the tool will use a 1x1 temporary image instead to avoid crashing. - * - * @param canvas The PhotoCanvas the tool's output should be painted to. - */ -static gpointer -_editing_tools_photo_canvas_ref0 (gpointer self) -{ -#line 331 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return self ? editing_tools_photo_canvas_ref (self) : NULL; -#line 1439 "StraightenTool.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 363 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return self ? g_object_ref (self) : NULL; -#line 1448 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_real_activate (EditingToolsEditingTool* base, - EditingToolsPhotoCanvas* canvas) -{ - EditingToolsStraightenTool * self; - EditingToolsPhotoCanvas* _tmp0_; - EditingToolsPhotoCanvas* _tmp1_; - Photo* _tmp2_; - Photo* _tmp3_; - Dimensions _tmp4_ = {0}; - Box crop_region = {0}; - Photo* _tmp5_; - Photo* _tmp6_; - Box _tmp7_ = {0}; - gboolean _tmp8_; - gboolean _tmp9_; - gdouble incoming_angle = 0.0; - Photo* _tmp14_; - Photo* _tmp15_; - gdouble _tmp16_ = 0.0; - GdkPoint _tmp17_ = {0}; - Dimensions _tmp18_; - gint _tmp19_; - Dimensions _tmp20_; - gint _tmp21_; - gdouble _tmp22_; - GdkPoint _tmp23_ = {0}; - GdkWindow* drawing_window = NULL; - GdkWindow* _tmp24_; - GdkDisplay* display = NULL; - GdkDisplay* _tmp25_; - GdkDisplay* _tmp26_; - GdkCursor* cursor = NULL; - GdkCursor* _tmp27_; - GtkWindow* _tmp28_; - GtkWindow* _tmp29_; - EditingToolsStraightenToolStraightenToolWindow* _tmp30_; - EditingToolsStraightenToolStraightenToolWindow* _tmp31_; - GtkScale* _tmp32_; - gdouble _tmp33_; - gdouble _tmp34_; - gchar* tmp = NULL; - gdouble _tmp35_; - gchar* _tmp36_; - EditingToolsStraightenToolStraightenToolWindow* _tmp37_; - GtkLabel* _tmp38_; - EditingToolsStraightenToolStraightenToolWindow* _tmp39_; -#line 329 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool); -#line 329 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas)); -#line 330 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_straighten_tool_parent_class)->activate (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool), canvas); -#line 331 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = _editing_tools_photo_canvas_ref0 (canvas); -#line 331 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _editing_tools_photo_canvas_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas); -#line 331 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas = _tmp0_; -#line 332 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 332 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_bind_canvas_handlers (self, _tmp1_); -#line 334 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = editing_tools_photo_canvas_get_photo (canvas); -#line 334 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp3_ = _tmp2_; -#line 334 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - media_source_get_dimensions (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE, MediaSource), PHOTO_EXCEPTION_STRAIGHTEN | PHOTO_EXCEPTION_CROP, &_tmp4_); -#line 334 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->image_dims = _tmp4_; -#line 334 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (_tmp3_); -#line 338 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = editing_tools_photo_canvas_get_photo (canvas); -#line 338 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = _tmp5_; -#line 338 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp8_ = photo_get_crop (_tmp6_, &_tmp7_, PHOTO_EXCEPTION_NONE); -#line 338 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - crop_region = _tmp7_; -#line 338 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp9_ = !_tmp8_; -#line 338 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (_tmp6_); -#line 338 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (_tmp9_) { -#line 1539 "StraightenTool.c" - Dimensions _tmp10_; - gint _tmp11_; - Dimensions _tmp12_; - gint _tmp13_; -#line 339 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - crop_region.left = 0; -#line 340 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp10_ = self->priv->image_dims; -#line 340 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp11_ = _tmp10_.width; -#line 340 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - crop_region.right = _tmp11_; -#line 342 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - crop_region.top = 0; -#line 343 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp12_ = self->priv->image_dims; -#line 343 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp13_ = _tmp12_.height; -#line 343 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - crop_region.bottom = _tmp13_; -#line 1560 "StraightenTool.c" - } -#line 348 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - incoming_angle = 0.0; -#line 349 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp14_ = editing_tools_photo_canvas_get_photo (canvas); -#line 349 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp15_ = _tmp14_; -#line 349 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - photo_get_straighten (_tmp15_, &_tmp16_); -#line 349 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - incoming_angle = _tmp16_; -#line 349 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (_tmp15_); -#line 352 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - box_get_center (&crop_region, &_tmp17_); -#line 352 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp18_ = self->priv->image_dims; -#line 352 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp19_ = _tmp18_.width; -#line 352 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp20_ = self->priv->image_dims; -#line 352 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp21_ = _tmp20_.height; -#line 352 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp22_ = incoming_angle; -#line 352 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - derotate_point_arb (&_tmp17_, _tmp19_, _tmp21_, _tmp22_, &_tmp23_); -#line 352 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->crop_center = _tmp23_; -#line 354 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->crop_width = box_get_width (&crop_region); -#line 355 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->crop_height = box_get_height (&crop_region); -#line 357 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_adjust_for_rotation (self); -#line 359 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_prepare_image (self); -#line 362 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp24_ = editing_tools_photo_canvas_get_drawing_window (canvas); -#line 362 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - drawing_window = _tmp24_; -#line 363 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp25_ = gdk_window_get_display (drawing_window); -#line 363 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp26_ = _g_object_ref0 (_tmp25_); -#line 363 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - display = _tmp26_; -#line 364 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp27_ = gdk_cursor_new_for_display (display, GDK_CROSSHAIR); -#line 364 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cursor = _tmp27_; -#line 366 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gdk_window_set_cursor (drawing_window, cursor); -#line 368 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp28_ = editing_tools_photo_canvas_get_container (canvas); -#line 368 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp29_ = _tmp28_; -#line 368 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp30_ = editing_tools_straighten_tool_straighten_tool_window_new (_tmp29_); -#line 368 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_object_ref_sink (_tmp30_); -#line 368 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (self->priv->window); -#line 368 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->window = _tmp30_; -#line 368 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (_tmp29_); -#line 369 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_bind_window_handlers (self); -#line 372 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp31_ = self->priv->window; -#line 372 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp32_ = _tmp31_->angle_slider; -#line 372 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp33_ = incoming_angle; -#line 372 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_range_get_type (), GtkRange), _tmp33_); -#line 373 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp34_ = incoming_angle; -#line 373 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->photo_angle = _tmp34_; -#line 375 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp35_ = incoming_angle; -#line 375 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp36_ = g_strdup_printf ("%2.1f°", _tmp35_); -#line 375 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - tmp = _tmp36_; -#line 376 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp37_ = self->priv->window; -#line 376 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp38_ = _tmp37_->angle_label; -#line 376 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_label_set_text (_tmp38_, tmp); -#line 378 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_high_qual_repaint (self); -#line 379 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp39_ = self->priv->window; -#line 379 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_widget_get_type (), GtkWidget)); -#line 329 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_free0 (tmp); -#line 329 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (cursor); -#line 329 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (display); -#line 329 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (drawing_window); -#line 1668 "StraightenTool.c" -} - - -/** - * Tears down the tool window and frees resources. - */ -static void -editing_tools_straighten_tool_real_deactivate (EditingToolsEditingTool* base) -{ - EditingToolsStraightenTool * self; - EditingToolsStraightenToolStraightenToolWindow* _tmp0_; - EditingToolsPhotoCanvas* _tmp2_; -#line 385 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool); -#line 386 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = self->priv->window; -#line 386 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (_tmp0_ != NULL) { -#line 1687 "StraightenTool.c" - EditingToolsStraightenToolStraightenToolWindow* _tmp1_; -#line 388 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_unbind_window_handlers (self); -#line 390 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = self->priv->window; -#line 390 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 391 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (self->priv->window); -#line 391 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->window = NULL; -#line 1699 "StraightenTool.c" - } -#line 394 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 394 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (_tmp2_ != NULL) { -#line 1705 "StraightenTool.c" - EditingToolsPhotoCanvas* _tmp3_; - EditingToolsPhotoCanvas* _tmp4_; - GdkWindow* _tmp5_; - GdkWindow* _tmp6_; -#line 395 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 395 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_unbind_canvas_handlers (self, _tmp3_); -#line 396 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 396 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = editing_tools_photo_canvas_get_drawing_window (_tmp4_); -#line 396 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = _tmp5_; -#line 396 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gdk_window_set_cursor (_tmp6_, NULL); -#line 396 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (_tmp6_); -#line 1724 "StraightenTool.c" - } -#line 399 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_straighten_tool_parent_class)->deactivate (G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)); -#line 1728 "StraightenTool.c" -} - - -static void -_editing_tools_straighten_tool_on_resized_pixbuf_editing_tools_photo_canvas_resized_scaled_pixbuf (EditingToolsPhotoCanvas* _sender, - Dimensions* old_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position, - gpointer self) -{ -#line 403 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_on_resized_pixbuf ((EditingToolsStraightenTool*) self, old_dim, scaled, scaled_position); -#line 1741 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_bind_canvas_handlers (EditingToolsStraightenTool* self, - EditingToolsPhotoCanvas* canvas) -{ -#line 402 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self)); -#line 402 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas)); -#line 403 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_connect (canvas, "resized-scaled-pixbuf", (GCallback) _editing_tools_straighten_tool_on_resized_pixbuf_editing_tools_photo_canvas_resized_scaled_pixbuf, self); -#line 1755 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_unbind_canvas_handlers (EditingToolsStraightenTool* self, - EditingToolsPhotoCanvas* canvas) -{ - guint _tmp0_; -#line 406 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self)); -#line 406 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_IS_PHOTO_CANVAS (canvas)); -#line 407 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_parse_name ("resized-scaled-pixbuf", EDITING_TOOLS_TYPE_PHOTO_CANVAS, &_tmp0_, NULL, FALSE); -#line 407 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_handlers_disconnect_matched (canvas, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _editing_tools_straighten_tool_on_resized_pixbuf_editing_tools_photo_canvas_resized_scaled_pixbuf, self); -#line 1772 "StraightenTool.c" -} - - -static gboolean -_editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event (GtkWidget* _sender, - GdkEventKey* event, - gpointer self) -{ - gboolean result; - result = editing_tools_editing_tool_on_keypress ((EditingToolsEditingTool*) self, event); -#line 411 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return result; -#line 1785 "StraightenTool.c" -} - - -static void -_editing_tools_straighten_tool_on_ok_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 412 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_on_ok_clicked ((EditingToolsStraightenTool*) self); -#line 1795 "StraightenTool.c" -} - - -static void -_editing_tools_editing_tool_notify_cancel_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 413 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_editing_tool_notify_cancel ((EditingToolsEditingTool*) self); -#line 1805 "StraightenTool.c" -} - - -static void -_editing_tools_straighten_tool_on_angle_changed_gtk_range_value_changed (GtkRange* _sender, - gpointer self) -{ -#line 414 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_on_angle_changed ((EditingToolsStraightenTool*) self); -#line 1815 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_bind_window_handlers (EditingToolsStraightenTool* self) -{ - EditingToolsStraightenToolStraightenToolWindow* _tmp0_; - EditingToolsStraightenToolStraightenToolWindow* _tmp1_; - GtkButton* _tmp2_; - EditingToolsStraightenToolStraightenToolWindow* _tmp3_; - GtkButton* _tmp4_; - EditingToolsStraightenToolStraightenToolWindow* _tmp5_; - GtkScale* _tmp6_; -#line 410 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self)); -#line 411 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = self->priv->window; -#line 411 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), "key-press-event", (GCallback) _editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)); -#line 412 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = self->priv->window; -#line 412 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = _tmp1_->ok_button; -#line 412 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_connect (_tmp2_, "clicked", (GCallback) _editing_tools_straighten_tool_on_ok_clicked_gtk_button_clicked, self); -#line 413 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp3_ = self->priv->window; -#line 413 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp4_ = _tmp3_->cancel_button; -#line 413 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_connect (_tmp4_, "clicked", (GCallback) _editing_tools_editing_tool_notify_cancel_gtk_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)); -#line 414 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = self->priv->window; -#line 414 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = _tmp5_->angle_slider; -#line 414 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_range_get_type (), GtkRange), "value-changed", (GCallback) _editing_tools_straighten_tool_on_angle_changed_gtk_range_value_changed, self); -#line 1853 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_unbind_window_handlers (EditingToolsStraightenTool* self) -{ - EditingToolsStraightenToolStraightenToolWindow* _tmp0_; - guint _tmp1_; - EditingToolsStraightenToolStraightenToolWindow* _tmp2_; - GtkButton* _tmp3_; - guint _tmp4_; - EditingToolsStraightenToolStraightenToolWindow* _tmp5_; - GtkButton* _tmp6_; - guint _tmp7_; - EditingToolsStraightenToolStraightenToolWindow* _tmp8_; - GtkScale* _tmp9_; - guint _tmp10_; -#line 417 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self)); -#line 418 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = self->priv->window; -#line 418 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_parse_name ("key-press-event", gtk_widget_get_type (), &_tmp1_, NULL, FALSE); -#line 418 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _editing_tools_editing_tool_on_keypress_gtk_widget_key_press_event, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)); -#line 419 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = self->priv->window; -#line 419 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp3_ = _tmp2_->ok_button; -#line 419 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp4_, NULL, FALSE); -#line 419 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _editing_tools_straighten_tool_on_ok_clicked_gtk_button_clicked, self); -#line 420 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = self->priv->window; -#line 420 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = _tmp5_->cancel_button; -#line 420 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_parse_name ("clicked", gtk_button_get_type (), &_tmp7_, NULL, FALSE); -#line 420 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _editing_tools_editing_tool_notify_cancel_gtk_button_clicked, G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)); -#line 421 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp8_ = self->priv->window; -#line 421 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp9_ = _tmp8_->angle_slider; -#line 421 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_parse_name ("value-changed", gtk_range_get_type (), &_tmp10_, NULL, FALSE); -#line 421 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_range_get_type (), GtkRange), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _editing_tools_straighten_tool_on_angle_changed_gtk_range_value_changed, self); -#line 1903 "StraightenTool.c" -} - - -static void -_editing_tools_straighten_tool_on_slider_stopped_delayed_one_shot_callback (gpointer self) -{ -#line 430 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_on_slider_stopped_delayed ((EditingToolsStraightenTool*) self); -#line 1912 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_on_angle_changed (EditingToolsStraightenTool* self) -{ - EditingToolsStraightenToolStraightenToolWindow* _tmp0_; - GtkScale* _tmp1_; - gchar* tmp = NULL; - EditingToolsStraightenToolStraightenToolWindow* _tmp2_; - GtkScale* _tmp3_; - gchar* _tmp4_; - EditingToolsStraightenToolStraightenToolWindow* _tmp5_; - GtkLabel* _tmp6_; - const gchar* _tmp7_; - OneShotScheduler* _tmp8_; - OneShotScheduler* _tmp10_; - EditingToolsPhotoCanvas* _tmp11_; -#line 424 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self)); -#line 425 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = self->priv->window; -#line 425 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = _tmp0_->angle_slider; -#line 425 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->photo_angle = gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_range_get_type (), GtkRange)); -#line 426 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = self->priv->window; -#line 426 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp3_ = _tmp2_->angle_slider; -#line 426 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp4_ = g_strdup_printf ("%2.1f°", gtk_range_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_range_get_type (), GtkRange))); -#line 426 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - tmp = _tmp4_; -#line 427 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = self->priv->window; -#line 427 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = _tmp5_->angle_label; -#line 427 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp7_ = tmp; -#line 427 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_label_set_text (_tmp6_, _tmp7_); -#line 429 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp8_ = self->priv->slider_sched; -#line 429 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (_tmp8_ == NULL) { -#line 1959 "StraightenTool.c" - OneShotScheduler* _tmp9_; -#line 430 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp9_ = one_shot_scheduler_new ("straighten", _editing_tools_straighten_tool_on_slider_stopped_delayed_one_shot_callback, self); -#line 430 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _one_shot_scheduler_unref0 (self->priv->slider_sched); -#line 430 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->slider_sched = _tmp9_; -#line 1967 "StraightenTool.c" - } -#line 431 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp10_ = self->priv->slider_sched; -#line 431 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - one_shot_scheduler_after_timeout (_tmp10_, (guint) EDITING_TOOLS_STRAIGHTEN_TOOL_REPAINT_ON_STOP_DELAY_MSEC, TRUE); -#line 433 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->use_high_qual = FALSE; -#line 435 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_adjust_for_rotation (self); -#line 436 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_update_rotated_surface (self); -#line 437 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 437 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_photo_canvas_repaint (_tmp11_); -#line 424 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_free0 (tmp); -#line 1985 "StraightenTool.c" -} - - -/** - * @brief Called by the EditingHostPage when a resize event occurs. - */ -static void -editing_tools_straighten_tool_on_resized_pixbuf (EditingToolsStraightenTool* self, - Dimensions* old_dim, - GdkPixbuf* scaled, - GdkRectangle* scaled_position) -{ -#line 443 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self)); -#line 443 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (old_dim != NULL); -#line 443 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (GDK_IS_PIXBUF (scaled)); -#line 443 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (scaled_position != NULL); -#line 444 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_prepare_image (self); -#line 2008 "StraightenTool.c" -} - - -/** - * Returns a reference to the current StraightenTool instance's tool window; - * the PhotoPage uses this to control the tool window's positioning, etc. - */ -static EditingToolsEditingToolWindow* -editing_tools_straighten_tool_real_get_tool_window (EditingToolsEditingTool* base) -{ - EditingToolsStraightenTool * self; - EditingToolsEditingToolWindow* result = NULL; - EditingToolsStraightenToolStraightenToolWindow* _tmp0_; - EditingToolsEditingToolWindow* _tmp1_; -#line 451 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool); -#line 452 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = self->priv->window; -#line 452 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, EditingToolsEditingToolWindow)); -#line 452 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - result = _tmp1_; -#line 452 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return result; -#line 2033 "StraightenTool.c" -} - - -/** - * Draw the rotated photo and grid. - */ -static void -editing_tools_straighten_tool_update_rotated_surface (EditingToolsStraightenTool* self) -{ - cairo_surface_t* _tmp0_; - cairo_t* _tmp1_; - gint _tmp2_; - gint _tmp3_; - gdouble _tmp4_; - cairo_t* _tmp5_; - cairo_t* _tmp6_; - gint _tmp7_; - gint _tmp8_; -#line 458 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self)); -#line 459 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = self->priv->photo_surf; -#line 459 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = self->priv->rotate_ctx; -#line 459 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = self->priv->view_width; -#line 459 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp3_ = self->priv->view_height; -#line 459 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp4_ = self->priv->photo_angle; -#line 459 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_draw_rotated_source (self, _tmp0_, _tmp1_, _tmp2_, _tmp3_, _tmp4_); -#line 460 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = self->priv->rotate_ctx; -#line 460 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_set_line_width (_tmp5_, 1.0); -#line 461 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = self->priv->rotate_ctx; -#line 461 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp7_ = self->priv->view_width; -#line 461 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp8_ = self->priv->view_height; -#line 461 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_draw_superimposed_grid (self, _tmp6_, _tmp7_, _tmp8_); -#line 2078 "StraightenTool.c" -} - - -/** - * Render a smaller, rotated version of the image, with a grid superimposed over it. - * - * @param ctx The rendering context of a 'scratch' Cairo surface. The tool makes its own - * surfaces and contexts so it can have things set up exactly like it wants them, so - * it's not used. - */ -static void -editing_tools_straighten_tool_real_paint (EditingToolsEditingTool* base, - cairo_t* ctx) -{ - EditingToolsStraightenTool * self; - gint w = 0; - EditingToolsPhotoCanvas* _tmp0_; - GdkWindow* _tmp1_; - GdkWindow* _tmp2_; - gint _tmp3_; - gint h = 0; - EditingToolsPhotoCanvas* _tmp4_; - GdkWindow* _tmp5_; - GdkWindow* _tmp6_; - gint _tmp7_; - EditingToolsPhotoCanvas* _tmp8_; - cairo_t* _tmp9_; - cairo_t* _tmp10_; - EditingToolsPhotoCanvas* _tmp11_; - cairo_t* _tmp12_; - cairo_t* _tmp13_; - EditingToolsPhotoCanvas* _tmp14_; - cairo_t* _tmp15_; - cairo_t* _tmp16_; - EditingToolsPhotoCanvas* _tmp17_; - cairo_t* _tmp18_; - cairo_t* _tmp19_; - EditingToolsPhotoCanvas* _tmp20_; - cairo_t* _tmp21_; - cairo_t* _tmp22_; - gint _tmp23_; - gint _tmp24_; - EditingToolsPhotoCanvas* _tmp25_; - cairo_t* _tmp26_; - cairo_t* _tmp27_; - cairo_surface_t* _tmp28_; - EditingToolsPhotoCanvas* _tmp29_; - cairo_t* _tmp30_; - cairo_t* _tmp31_; - gint _tmp32_; - gint _tmp33_; - EditingToolsPhotoCanvas* _tmp34_; - cairo_t* _tmp35_; - cairo_t* _tmp36_; - EditingToolsPhotoCanvas* _tmp37_; - cairo_t* _tmp38_; - cairo_t* _tmp39_; - EditingToolsPhotoCanvas* _tmp40_; - cairo_t* _tmp41_; - cairo_t* _tmp42_; - EditingToolsStraightenToolStraightenGuide* _tmp43_; - EditingToolsPhotoCanvas* _tmp44_; - cairo_t* _tmp45_; - cairo_t* _tmp46_; -#line 471 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool); -#line 471 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (ctx != NULL); -#line 472 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 472 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = editing_tools_photo_canvas_get_drawing_window (_tmp0_); -#line 472 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = _tmp1_; -#line 472 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp3_ = gdk_window_get_width (_tmp2_); -#line 472 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (_tmp2_); -#line 472 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - w = _tmp3_; -#line 473 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 473 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = editing_tools_photo_canvas_get_drawing_window (_tmp4_); -#line 473 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = _tmp5_; -#line 473 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp7_ = gdk_window_get_height (_tmp6_); -#line 473 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (_tmp6_); -#line 473 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - h = _tmp7_; -#line 476 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 476 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp9_ = editing_tools_photo_canvas_get_default_ctx (_tmp8_); -#line 476 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp10_ = _tmp9_; -#line 476 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_identity_matrix (_tmp10_); -#line 476 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_destroy0 (_tmp10_); -#line 477 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 477 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp12_ = editing_tools_photo_canvas_get_default_ctx (_tmp11_); -#line 477 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp13_ = _tmp12_; -#line 477 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_set_source_rgba (_tmp13_, 0.0, 0.0, 0.0, 1.0); -#line 477 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_destroy0 (_tmp13_); -#line 478 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp14_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 478 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp15_ = editing_tools_photo_canvas_get_default_ctx (_tmp14_); -#line 478 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp16_ = _tmp15_; -#line 478 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_rectangle (_tmp16_, (gdouble) 0, (gdouble) 0, (gdouble) w, (gdouble) h); -#line 478 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_destroy0 (_tmp16_); -#line 479 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp17_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 479 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp18_ = editing_tools_photo_canvas_get_default_ctx (_tmp17_); -#line 479 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp19_ = _tmp18_; -#line 479 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_fill (_tmp19_); -#line 479 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_destroy0 (_tmp19_); -#line 482 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp20_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 482 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp21_ = editing_tools_photo_canvas_get_default_ctx (_tmp20_); -#line 482 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp22_ = _tmp21_; -#line 482 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp23_ = self->priv->view_width; -#line 482 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp24_ = self->priv->view_height; -#line 482 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_translate (_tmp22_, (w - _tmp23_) / 2.0, (h - _tmp24_) / 2.0); -#line 482 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_destroy0 (_tmp22_); -#line 483 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp25_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 483 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp26_ = editing_tools_photo_canvas_get_default_ctx (_tmp25_); -#line 483 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp27_ = _tmp26_; -#line 483 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp28_ = self->priv->rotate_surf; -#line 483 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_set_source_surface (_tmp27_, _tmp28_, (gdouble) 0, (gdouble) 0); -#line 483 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_destroy0 (_tmp27_); -#line 484 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp29_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 484 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp30_ = editing_tools_photo_canvas_get_default_ctx (_tmp29_); -#line 484 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp31_ = _tmp30_; -#line 484 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp32_ = self->priv->view_width; -#line 484 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp33_ = self->priv->view_height; -#line 484 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_rectangle (_tmp31_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp32_, (gdouble) _tmp33_); -#line 484 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_destroy0 (_tmp31_); -#line 485 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp34_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 485 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp35_ = editing_tools_photo_canvas_get_default_ctx (_tmp34_); -#line 485 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp36_ = _tmp35_; -#line 485 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_fill (_tmp36_); -#line 485 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_destroy0 (_tmp36_); -#line 486 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp37_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 486 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp38_ = editing_tools_photo_canvas_get_default_ctx (_tmp37_); -#line 486 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp39_ = _tmp38_; -#line 486 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_paint (_tmp39_); -#line 486 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_destroy0 (_tmp39_); -#line 490 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp40_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 490 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp41_ = editing_tools_photo_canvas_get_default_ctx (_tmp40_); -#line 490 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp42_ = _tmp41_; -#line 490 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_identity_matrix (_tmp42_); -#line 490 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_destroy0 (_tmp42_); -#line 492 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp43_ = self->priv->guide; -#line 492 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp44_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 492 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp45_ = editing_tools_photo_canvas_get_default_ctx (_tmp44_); -#line 492 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp46_ = _tmp45_; -#line 492 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_straighten_guide_draw (_tmp43_, _tmp46_); -#line 492 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_destroy0 (_tmp46_); -#line 2293 "StraightenTool.c" -} - - -/** - * Copy a rotated version of the source image onto the destination - * context. - * - * @param src_surf A Cairo surface containing the source image. - * @param dest_ctx The rendering context of the destination image. - * @param src_width The width of the image data in src_surf in pixels. - * @param src_height The height of the image data in src_surf in pixels. - * @param angle The angle the source image should be rotated by, in degrees. - */ -static void -editing_tools_straighten_tool_draw_rotated_source (EditingToolsStraightenTool* self, - cairo_surface_t* src_surf, - cairo_t* dest_ctx, - gint src_width, - gint src_height, - gdouble angle) -{ - gdouble angle_internal = 0.0; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - gdouble _tmp4_; - gdouble _tmp5_; - gdouble _tmp6_; - GdkPoint _tmp7_; - gint _tmp8_; - gdouble _tmp9_; - GdkPoint _tmp10_; - gint _tmp11_; - gdouble _tmp12_; - cairo_filter_t _tmp13_ = 0; - gboolean _tmp14_; - cairo_pattern_t* _tmp15_; -#line 505 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self)); -#line 505 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (src_surf != NULL); -#line 505 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (dest_ctx != NULL); -#line 507 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - angle_internal = degrees_to_radians (angle); -#line 511 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_identity_matrix (dest_ctx); -#line 512 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_set_source_rgba (dest_ctx, 0.0, 0.0, 0.0, 1.0); -#line 513 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = self->priv->view_width; -#line 513 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = self->priv->view_height; -#line 513 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_rectangle (dest_ctx, (gdouble) 0, (gdouble) 0, (gdouble) _tmp0_, (gdouble) _tmp1_); -#line 514 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_fill (dest_ctx); -#line 519 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_identity_matrix (dest_ctx); -#line 521 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = self->priv->view_width; -#line 521 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp3_ = self->priv->view_height; -#line 521 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_translate (dest_ctx, (gdouble) (_tmp2_ / 2), (gdouble) (_tmp3_ / 2)); -#line 522 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp4_ = self->priv->rotate_scale; -#line 522 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = self->priv->rotate_scale; -#line 522 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_scale (dest_ctx, 1.0 / _tmp4_, 1.0 / _tmp5_); -#line 523 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = angle_internal; -#line 523 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_rotate (dest_ctx, _tmp6_); -#line 524 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp7_ = self->priv->rotated_center; -#line 524 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp8_ = _tmp7_.x; -#line 524 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp9_ = self->priv->preview_scale; -#line 524 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp10_ = self->priv->rotated_center; -#line 524 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp11_ = _tmp10_.y; -#line 524 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp12_ = self->priv->preview_scale; -#line 524 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_translate (dest_ctx, (-_tmp8_) * _tmp9_, (-_tmp11_) * _tmp12_); -#line 526 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_set_source_surface (dest_ctx, src_surf, (gdouble) 0, (gdouble) 0); -#line 527 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp14_ = self->priv->use_high_qual; -#line 527 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (_tmp14_) { -#line 527 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp13_ = CAIRO_FILTER_BEST; -#line 2392 "StraightenTool.c" - } else { -#line 527 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp13_ = CAIRO_FILTER_NEAREST; -#line 2396 "StraightenTool.c" - } -#line 527 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp15_ = cairo_get_source (dest_ctx); -#line 527 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_pattern_set_filter (_tmp15_, _tmp13_); -#line 528 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_rectangle (dest_ctx, (gdouble) 0, (gdouble) 0, (gdouble) src_width, (gdouble) src_height); -#line 529 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_fill (dest_ctx); -#line 530 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_paint (dest_ctx); -#line 2408 "StraightenTool.c" -} - - -/** - * Superimpose a faint grid over the supplied image. - * - * @param width The total width the grid should be drawn to. - * @param height The total height the grid should be drawn to. - * @param dest_ctx The rendering context of the destination image. - */ -static void -editing_tools_straighten_tool_draw_superimposed_grid (EditingToolsStraightenTool* self, - cairo_t* dest_ctx, - gint width, - gint height) -{ - gint half_width = 0; - gint quarter_width = 0; - gint half_height = 0; - gint quarter_height = 0; - EditingToolsPhotoCanvas* _tmp0_; - EditingToolsPhotoCanvas* _tmp1_; - EditingToolsPhotoCanvas* _tmp2_; - gint _tmp3_; - EditingToolsPhotoCanvas* _tmp4_; - EditingToolsPhotoCanvas* _tmp5_; - EditingToolsPhotoCanvas* _tmp6_; - EditingToolsPhotoCanvas* _tmp7_; - EditingToolsPhotoCanvas* _tmp8_; - EditingToolsPhotoCanvas* _tmp9_; - EditingToolsPhotoCanvas* _tmp10_; -#line 540 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_IS_STRAIGHTEN_TOOL (self)); -#line 540 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (dest_ctx != NULL); -#line 541 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - half_width = width / 2; -#line 542 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - quarter_width = width / 4; -#line 544 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - half_height = height / 2; -#line 545 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - quarter_height = height / 4; -#line 547 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_identity_matrix (dest_ctx); -#line 548 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_set_source_rgba (dest_ctx, 1.0, 1.0, 1.0, 1.0); -#line 550 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 550 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_photo_canvas_draw_horizontal_line (_tmp0_, dest_ctx, 0, 0, width, FALSE); -#line 551 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 551 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_photo_canvas_draw_horizontal_line (_tmp1_, dest_ctx, 0, half_height, width, FALSE); -#line 552 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 552 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp3_ = self->priv->view_height; -#line 552 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_photo_canvas_draw_horizontal_line (_tmp2_, dest_ctx, 0, _tmp3_ - 1, width, FALSE); -#line 554 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 554 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_photo_canvas_draw_vertical_line (_tmp4_, dest_ctx, 0, 0, height + 1, FALSE); -#line 555 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 555 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_photo_canvas_draw_vertical_line (_tmp5_, dest_ctx, half_width, 0, height + 1, FALSE); -#line 556 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 556 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_photo_canvas_draw_vertical_line (_tmp6_, dest_ctx, width - 1, 0, height + 1, FALSE); -#line 558 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_set_source_rgba (dest_ctx, 1.0, 1.0, 1.0, 0.33); -#line 560 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 560 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_photo_canvas_draw_horizontal_line (_tmp7_, dest_ctx, 0, quarter_height, width, FALSE); -#line 561 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 561 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_photo_canvas_draw_horizontal_line (_tmp8_, dest_ctx, 0, half_height + quarter_height, width, FALSE); -#line 562 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 562 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_photo_canvas_draw_vertical_line (_tmp9_, dest_ctx, quarter_width, 0, height, FALSE); -#line 563 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (self, EDITING_TOOLS_TYPE_EDITING_TOOL, EditingToolsEditingTool)->canvas; -#line 563 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_photo_canvas_draw_vertical_line (_tmp10_, dest_ctx, half_width + quarter_width, 0, height, FALSE); -#line 2500 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_straighten_guide_reset (EditingToolsStraightenToolStraightenGuide* self, - gint x, - gint y, - gdouble angle) -{ - gint _tmp0_[2] = {0}; - gint _tmp1_[2] = {0}; -#line 31 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_GUIDE (self)); -#line 32 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_[0] = x; -#line 32 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_[1] = x; -#line 32 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - memcpy (self->priv->x, _tmp0_, 2 * sizeof (gint)); -#line 33 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_[0] = y; -#line 33 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_[1] = y; -#line 33 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - memcpy (self->priv->y, _tmp1_, 2 * sizeof (gint)); -#line 34 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->is_active = TRUE; -#line 35 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->angle0 = angle; -#line 2530 "StraightenTool.c" -} - - -static gboolean -editing_tools_straighten_tool_straighten_guide_update (EditingToolsStraightenToolStraightenGuide* self, - gint x, - gint y) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 38 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_val_if_fail (EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_GUIDE (self), FALSE); -#line 39 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = self->priv->is_active; -#line 39 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (_tmp0_) { -#line 2547 "StraightenTool.c" - gint _tmp1_; - gint _tmp2_; -#line 40 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->x[1] = x; -#line 40 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = self->priv->x[1]; -#line 41 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->y[1] = y; -#line 41 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = self->priv->y[1]; -#line 42 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - result = TRUE; -#line 42 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return result; -#line 2562 "StraightenTool.c" - } -#line 45 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - result = FALSE; -#line 45 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return result; -#line 2568 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_straighten_guide_clear (EditingToolsStraightenToolStraightenGuide* self) -{ -#line 48 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_GUIDE (self)); -#line 49 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->is_active = FALSE; -#line 2579 "StraightenTool.c" -} - - -static gdouble* -_double_dup (gdouble* self) -{ - gdouble* dup; -#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - dup = g_new0 (gdouble, 1); -#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - memcpy (dup, self, sizeof (gdouble)); -#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return dup; -#line 2593 "StraightenTool.c" -} - - -static gpointer -__double_dup0 (gpointer self) -{ -#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return self ? _double_dup (self) : NULL; -#line 2602 "StraightenTool.c" -} - - -static gdouble* -editing_tools_straighten_tool_straighten_guide_get_angle (EditingToolsStraightenToolStraightenGuide* self) -{ - gdouble* result = NULL; - gdouble dx = 0.0; - gint _tmp0_; - gint _tmp1_; - gdouble dy = 0.0; - gint _tmp2_; - gint _tmp3_; - gdouble _tmp4_; - gdouble _tmp5_; - gdouble _tmp6_; - gdouble _tmp7_; - gdouble _tmp8_; - gdouble _tmp9_; -#line 52 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_val_if_fail (EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_GUIDE (self), NULL); -#line 53 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = self->priv->x[1]; -#line 53 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = self->priv->x[0]; -#line 53 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - dx = (gdouble) (_tmp0_ - _tmp1_); -#line 54 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = self->priv->y[1]; -#line 54 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp3_ = self->priv->y[0]; -#line 54 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - dy = (gdouble) (_tmp2_ - _tmp3_); -#line 57 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp4_ = dy; -#line 57 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = dy; -#line 57 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = dx; -#line 57 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp7_ = dx; -#line 57 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (((_tmp4_ * _tmp5_) + (_tmp6_ * _tmp7_)) < ((gdouble) 40)) { -#line 58 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - result = NULL; -#line 58 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return result; -#line 2650 "StraightenTool.c" - } -#line 61 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp8_ = dy; -#line 61 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp9_ = dx; -#line 61 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (fabs (_tmp8_) > fabs (_tmp9_)) { -#line 2658 "StraightenTool.c" - gdouble _tmp10_; - gdouble _tmp11_; - gdouble _tmp12_; - gdouble _tmp13_; - gdouble* _tmp14_; -#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp10_ = self->priv->angle0; -#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp11_ = dx; -#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp12_ = dy; -#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp13_ = _tmp10_ + ((atan (_tmp11_ / _tmp12_) / G_PI) * 180); -#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp14_ = __double_dup0 (&_tmp13_); -#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - result = _tmp14_; -#line 62 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return result; -#line 2678 "StraightenTool.c" - } else { - gdouble _tmp15_; - gdouble _tmp16_; - gdouble _tmp17_; - gdouble _tmp18_; - gdouble* _tmp19_; -#line 64 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp15_ = self->priv->angle0; -#line 64 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp16_ = dy; -#line 64 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp17_ = dx; -#line 64 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp18_ = _tmp15_ - ((atan (_tmp16_ / _tmp17_) / G_PI) * 180); -#line 64 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp19_ = __double_dup0 (&_tmp18_); -#line 64 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - result = _tmp19_; -#line 64 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return result; -#line 2699 "StraightenTool.c" - } -} - - -static void -editing_tools_straighten_tool_straighten_guide_draw (EditingToolsStraightenToolStraightenGuide* self, - cairo_t* ctx) -{ - gboolean _tmp0_; - gdouble* _tmp1_ = NULL; - gdouble* _tmp2_; - gdouble angle = 0.0; - gdouble* _tmp5_; - gdouble* _tmp6_; - gdouble _tmp7_; - gdouble _tmp8_; - gdouble alpha = 0.0; - gboolean _tmp9_ = FALSE; - gdouble _tmp10_; - gdouble _tmp12_; - gdouble _tmp13_; - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; - gint _tmp17_; - gdouble _tmp18_; - gdouble _tmp19_; - gint _tmp20_; - gint _tmp21_; - gint _tmp22_; - gint _tmp23_; -#line 67 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_GUIDE (self)); -#line 67 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (ctx != NULL); -#line 68 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = self->priv->is_active; -#line 68 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (!_tmp0_) { -#line 69 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return; -#line 2741 "StraightenTool.c" - } -#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = editing_tools_straighten_tool_straighten_guide_get_angle (self); -#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = _tmp2_; -#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (_tmp1_ == NULL) { -#line 2749 "StraightenTool.c" - gdouble _tmp3_; - gdouble* _tmp4_; -#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp3_ = 0.0; -#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp4_ = __double_dup0 (&_tmp3_); -#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_free0 (_tmp1_); -#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = _tmp4_; -#line 2760 "StraightenTool.c" - } -#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = _tmp1_; -#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = NULL; -#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = _tmp5_; -#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp7_ = *_tmp6_; -#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_free0 (_tmp6_); -#line 71 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - angle = _tmp7_; -#line 72 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp8_ = angle; -#line 72 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (_tmp8_ == 0.0) { -#line 73 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_free0 (_tmp1_); -#line 73 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return; -#line 2782 "StraightenTool.c" - } -#line 75 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - alpha = 1.0; -#line 76 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp10_ = angle; -#line 76 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (_tmp10_ < EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_ANGLE) { -#line 76 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp9_ = TRUE; -#line 2792 "StraightenTool.c" - } else { - gdouble _tmp11_; -#line 76 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp11_ = angle; -#line 76 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp9_ = _tmp11_ > EDITING_TOOLS_STRAIGHTEN_TOOL_MAX_ANGLE; -#line 2799 "StraightenTool.c" - } -#line 76 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (_tmp9_) { -#line 77 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - alpha = 0.35; -#line 2805 "StraightenTool.c" - } -#line 81 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp12_ = alpha; -#line 81 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_set_source_rgba (ctx, 0.0, 0.0, 0.0, _tmp12_); -#line 82 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp13_ = EDITING_TOOLS_STRAIGHTEN_TOOL_GUIDE_DASH[0]; -#line 82 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_set_dash (ctx, EDITING_TOOLS_STRAIGHTEN_TOOL_GUIDE_DASH, G_N_ELEMENTS (EDITING_TOOLS_STRAIGHTEN_TOOL_GUIDE_DASH), _tmp13_ / 2); -#line 83 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp14_ = self->priv->x[0]; -#line 83 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp15_ = self->priv->y[0]; -#line 83 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_move_to (ctx, _tmp14_ + 0.5, _tmp15_ + 0.5); -#line 84 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp16_ = self->priv->x[1]; -#line 84 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp17_ = self->priv->y[1]; -#line 84 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_line_to (ctx, _tmp16_ + 0.5, _tmp17_ + 0.5); -#line 85 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_stroke (ctx); -#line 86 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp18_ = EDITING_TOOLS_STRAIGHTEN_TOOL_GUIDE_DASH[0]; -#line 86 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_set_dash (ctx, EDITING_TOOLS_STRAIGHTEN_TOOL_GUIDE_DASH, G_N_ELEMENTS (EDITING_TOOLS_STRAIGHTEN_TOOL_GUIDE_DASH), (-_tmp18_) / 2); -#line 87 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp19_ = alpha; -#line 87 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_set_source_rgba (ctx, 1.0, 1.0, 1.0, _tmp19_); -#line 88 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp20_ = self->priv->x[0]; -#line 88 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp21_ = self->priv->y[0]; -#line 88 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_move_to (ctx, _tmp20_ + 0.5, _tmp21_ + 0.5); -#line 89 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp22_ = self->priv->x[1]; -#line 89 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp23_ = self->priv->y[1]; -#line 89 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_line_to (ctx, _tmp22_ + 0.5, _tmp23_ + 0.5); -#line 90 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - cairo_stroke (ctx); -#line 67 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_free0 (_tmp1_); -#line 2853 "StraightenTool.c" -} - - -static EditingToolsStraightenToolStraightenGuide* -editing_tools_straighten_tool_straighten_guide_construct (GType object_type) -{ - EditingToolsStraightenToolStraightenGuide* self = NULL; -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self = (EditingToolsStraightenToolStraightenGuide*) g_type_create_instance (object_type); -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return self; -#line 2865 "StraightenTool.c" -} - - -static EditingToolsStraightenToolStraightenGuide* -editing_tools_straighten_tool_straighten_guide_new (void) -{ -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return editing_tools_straighten_tool_straighten_guide_construct (EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE); -#line 2874 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_value_straighten_guide_init (GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - value->data[0].v_pointer = NULL; -#line 2883 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_value_straighten_guide_free_value (GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_straighten_guide_unref (value->data[0].v_pointer); -#line 2894 "StraightenTool.c" - } -} - - -static void -editing_tools_straighten_tool_value_straighten_guide_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (src_value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - dest_value->data[0].v_pointer = editing_tools_straighten_tool_straighten_guide_ref (src_value->data[0].v_pointer); -#line 2907 "StraightenTool.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - dest_value->data[0].v_pointer = NULL; -#line 2911 "StraightenTool.c" - } -} - - -static gpointer -editing_tools_straighten_tool_value_straighten_guide_peek_pointer (const GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return value->data[0].v_pointer; -#line 2921 "StraightenTool.c" -} - - -static gchar* -editing_tools_straighten_tool_value_straighten_guide_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (collect_values[0].v_pointer) { -#line 2933 "StraightenTool.c" - EditingToolsStraightenToolStraightenGuide * object; - object = collect_values[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (object->parent_instance.g_class == NULL) { -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2940 "StraightenTool.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2944 "StraightenTool.c" - } -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - value->data[0].v_pointer = editing_tools_straighten_tool_straighten_guide_ref (object); -#line 2948 "StraightenTool.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - value->data[0].v_pointer = NULL; -#line 2952 "StraightenTool.c" - } -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return NULL; -#line 2956 "StraightenTool.c" -} - - -static gchar* -editing_tools_straighten_tool_value_straighten_guide_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - EditingToolsStraightenToolStraightenGuide ** object_p; - object_p = collect_values[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (!object_p) { -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2972 "StraightenTool.c" - } -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (!value->data[0].v_pointer) { -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - *object_p = NULL; -#line 2978 "StraightenTool.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - *object_p = value->data[0].v_pointer; -#line 2982 "StraightenTool.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - *object_p = editing_tools_straighten_tool_straighten_guide_ref (value->data[0].v_pointer); -#line 2986 "StraightenTool.c" - } -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return NULL; -#line 2990 "StraightenTool.c" -} - - -static GParamSpec* -editing_tools_straighten_tool_param_spec_straighten_guide (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - EditingToolsStraightenToolParamSpecStraightenGuide* spec; -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_val_if_fail (g_type_is_a (object_type, EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE), NULL); -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return G_PARAM_SPEC (spec); -#line 3010 "StraightenTool.c" -} - - -static gpointer -editing_tools_straighten_tool_value_get_straighten_guide (const GValue* value) -{ -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE), NULL); -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return value->data[0].v_pointer; -#line 3021 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_value_set_straighten_guide (GValue* value, - gpointer v_object) -{ - EditingToolsStraightenToolStraightenGuide * old; -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE)); -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - old = value->data[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (v_object) { -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE)); -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - value->data[0].v_pointer = v_object; -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_straighten_guide_ref (value->data[0].v_pointer); -#line 3044 "StraightenTool.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - value->data[0].v_pointer = NULL; -#line 3048 "StraightenTool.c" - } -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (old) { -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_straighten_guide_unref (old); -#line 3054 "StraightenTool.c" - } -} - - -static void -editing_tools_straighten_tool_value_take_straighten_guide (GValue* value, - gpointer v_object) -{ - EditingToolsStraightenToolStraightenGuide * old; -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE)); -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - old = value->data[0].v_pointer; -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (v_object) { -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE)); -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - value->data[0].v_pointer = v_object; -#line 3076 "StraightenTool.c" - } else { -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - value->data[0].v_pointer = NULL; -#line 3080 "StraightenTool.c" - } -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (old) { -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_straighten_guide_unref (old); -#line 3086 "StraightenTool.c" - } -} - - -static void -editing_tools_straighten_tool_straighten_guide_class_init (EditingToolsStraightenToolStraightenGuideClass * klass) -{ -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_straighten_guide_parent_class = g_type_class_peek_parent (klass); -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - ((EditingToolsStraightenToolStraightenGuideClass *) klass)->finalize = editing_tools_straighten_tool_straighten_guide_finalize; -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_type_class_add_private (klass, sizeof (EditingToolsStraightenToolStraightenGuidePrivate)); -#line 3100 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_straighten_guide_instance_init (EditingToolsStraightenToolStraightenGuide * self) -{ -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv = EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_GUIDE_GET_PRIVATE (self); -#line 26 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->is_active = FALSE; -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->ref_count = 1; -#line 3113 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_straighten_guide_finalize (EditingToolsStraightenToolStraightenGuide * obj) -{ - EditingToolsStraightenToolStraightenGuide * self; -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_GUIDE, EditingToolsStraightenToolStraightenGuide); -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_handlers_destroy (self); -#line 3125 "StraightenTool.c" -} - - -static GType -editing_tools_straighten_tool_straighten_guide_get_type (void) -{ - static volatile gsize editing_tools_straighten_tool_straighten_guide_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_straighten_tool_straighten_guide_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { editing_tools_straighten_tool_value_straighten_guide_init, editing_tools_straighten_tool_value_straighten_guide_free_value, editing_tools_straighten_tool_value_straighten_guide_copy_value, editing_tools_straighten_tool_value_straighten_guide_peek_pointer, "p", editing_tools_straighten_tool_value_straighten_guide_collect_value, "p", editing_tools_straighten_tool_value_straighten_guide_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (EditingToolsStraightenToolStraightenGuideClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_straighten_tool_straighten_guide_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsStraightenToolStraightenGuide), 0, (GInstanceInitFunc) editing_tools_straighten_tool_straighten_guide_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType editing_tools_straighten_tool_straighten_guide_type_id; - editing_tools_straighten_tool_straighten_guide_type_id = g_type_register_fundamental (g_type_fundamental_next (), "EditingToolsStraightenToolStraightenGuide", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&editing_tools_straighten_tool_straighten_guide_type_id__volatile, editing_tools_straighten_tool_straighten_guide_type_id); - } - return editing_tools_straighten_tool_straighten_guide_type_id__volatile; -} - - -static gpointer -editing_tools_straighten_tool_straighten_guide_ref (gpointer instance) -{ - EditingToolsStraightenToolStraightenGuide * self; - self = instance; -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_atomic_int_inc (&self->ref_count); -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return instance; -#line 3154 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_straighten_guide_unref (gpointer instance) -{ - EditingToolsStraightenToolStraightenGuide * self; - self = instance; -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_GUIDE_GET_CLASS (self)->finalize (self); -#line 25 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 3169 "StraightenTool.c" - } -} - - -/** - * Prepare straighten tool's window for use and initialize all its controls. - * - * @param container The application's main window. - */ -static void -_editing_tools_straighten_tool_straighten_tool_window_on_reset_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 147 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_straighten_tool_window_on_reset_clicked ((EditingToolsStraightenToolStraightenToolWindow*) self); -#line 3185 "StraightenTool.c" -} - - -static EditingToolsStraightenToolStraightenToolWindow* -editing_tools_straighten_tool_straighten_tool_window_construct (GType object_type, - GtkWindow* container) -{ - EditingToolsStraightenToolStraightenToolWindow * self = NULL; - GtkScale* _tmp0_; - GtkScale* _tmp1_; - GtkScale* _tmp2_; - GtkScale* _tmp3_; - GtkLabel* _tmp4_; - GtkLabel* _tmp5_; - GtkLabel* _tmp6_; - GtkLabel* _tmp7_; - GtkLabel* _tmp8_; - GtkLabel* _tmp9_; - GtkLabel* _tmp10_; - GtkLabel* _tmp11_; - GtkLabel* _tmp12_; - GtkBox* slider_layout = NULL; - GtkBox* _tmp13_; - GtkScale* _tmp14_; - GtkBox* button_layout = NULL; - GtkBox* _tmp15_; - GtkButton* _tmp16_; - GtkButton* _tmp17_; - GtkButton* _tmp18_; - GtkButton* _tmp19_; - GtkButton* _tmp20_; - GtkButton* _tmp21_; - GtkBox* main_layout = NULL; - GtkBox* _tmp22_; - GtkLabel* _tmp23_; - GtkLabel* _tmp24_; - GtkButton* _tmp25_; -#line 109 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_val_if_fail (GTK_IS_WINDOW (container), NULL); -#line 110 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self = (EditingToolsStraightenToolStraightenToolWindow*) editing_tools_editing_tool_window_construct (object_type, container); -#line 112 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = self->angle_slider; -#line 112 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_range_set_min_slider_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_SLIDER_SIZE); -#line 113 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = self->angle_slider; -#line 113 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_SLIDER_SIZE, -1); -#line 114 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = self->angle_slider; -#line 114 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_range_get_type (), GtkRange), 0.0); -#line 115 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp3_ = self->angle_slider; -#line 115 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_scale_set_draw_value (_tmp3_, FALSE); -#line 117 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp4_ = self->description_label; -#line 117 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_CONTROL_SPACING); -#line 118 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = self->description_label; -#line 118 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_CONTROL_SPACING); -#line 119 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp6_ = self->description_label; -#line 119 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), 0); -#line 120 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp7_ = self->description_label; -#line 120 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), 0); -#line 122 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp8_ = self->angle_label; -#line 122 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), 0); -#line 123 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp9_ = self->angle_label; -#line 123 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), 0); -#line 124 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp10_ = self->angle_label; -#line 124 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), 0); -#line 125 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp11_ = self->angle_label; -#line 125 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), 0); -#line 126 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp12_ = self->angle_label; -#line 126 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_LABEL_SIZE, -1); -#line 128 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp13_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_CONTROL_SPACING); -#line 128 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_object_ref_sink (_tmp13_); -#line 128 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - slider_layout = _tmp13_; -#line 129 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp14_ = self->angle_slider; -#line 129 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_box_pack_start (slider_layout, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 131 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp15_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, EDITING_TOOLS_STRAIGHTEN_TOOL_STRAIGHTEN_TOOL_WINDOW_CONTROL_SPACING); -#line 131 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_object_ref_sink (_tmp15_); -#line 131 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - button_layout = _tmp15_; -#line 132 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp16_ = self->cancel_button; -#line 132 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_BUTTON_SIZE, -1); -#line 133 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp17_ = self->reset_button; -#line 133 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_BUTTON_SIZE, -1); -#line 134 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp18_ = self->ok_button; -#line 134 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_BUTTON_SIZE, -1); -#line 135 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp19_ = self->cancel_button; -#line 135 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_box_pack_start (button_layout, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 136 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp20_ = self->reset_button; -#line 136 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_box_pack_start (button_layout, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 137 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp21_ = self->ok_button; -#line 137 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_box_pack_start (button_layout, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 139 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp22_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); -#line 139 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_object_ref_sink (_tmp22_); -#line 139 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - main_layout = _tmp22_; -#line 140 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp23_ = self->description_label; -#line 140 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_box_pack_start (main_layout, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 141 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_box_pack_start (main_layout, G_TYPE_CHECK_INSTANCE_CAST (slider_layout, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 142 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp24_ = self->angle_label; -#line 142 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_box_pack_start (main_layout, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 143 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_box_pack_start (main_layout, G_TYPE_CHECK_INSTANCE_CAST (button_layout, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 145 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (main_layout, gtk_widget_get_type (), GtkWidget)); -#line 147 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp25_ = self->reset_button; -#line 147 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_signal_connect_object (_tmp25_, "clicked", (GCallback) _editing_tools_straighten_tool_straighten_tool_window_on_reset_clicked_gtk_button_clicked, self, 0); -#line 149 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_window_set_position (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), GTK_WIN_POS_CENTER_ON_PARENT); -#line 109 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (main_layout); -#line 109 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (button_layout); -#line 109 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (slider_layout); -#line 109 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return self; -#line 3353 "StraightenTool.c" -} - - -static EditingToolsStraightenToolStraightenToolWindow* -editing_tools_straighten_tool_straighten_tool_window_new (GtkWindow* container) -{ -#line 109 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - return editing_tools_straighten_tool_straighten_tool_window_construct (EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_TOOL_WINDOW, container); -#line 3362 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_straighten_tool_window_on_reset_clicked (EditingToolsStraightenToolStraightenToolWindow* self) -{ - GtkScale* _tmp0_; -#line 152 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_return_if_fail (EDITING_TOOLS_STRAIGHTEN_TOOL_IS_STRAIGHTEN_TOOL_WINDOW (self)); -#line 153 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = self->angle_slider; -#line 153 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - gtk_range_set_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_range_get_type (), GtkRange), 0.0); -#line 3376 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_straighten_tool_window_class_init (EditingToolsStraightenToolStraightenToolWindowClass * klass) -{ -#line 94 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_straighten_tool_window_parent_class = g_type_class_peek_parent (klass); -#line 94 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - G_OBJECT_CLASS (klass)->finalize = editing_tools_straighten_tool_straighten_tool_window_finalize; -#line 3387 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_straighten_tool_window_instance_init (EditingToolsStraightenToolStraightenToolWindow * self) -{ - GtkScale* _tmp0_; - GtkLabel* _tmp1_; - GtkLabel* _tmp2_; - GtkButton* _tmp3_; - GtkButton* _tmp4_; - GtkButton* _tmp5_; -#line 97 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = (GtkScale*) gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, EDITING_TOOLS_STRAIGHTEN_TOOL_MIN_ANGLE, EDITING_TOOLS_STRAIGHTEN_TOOL_MAX_ANGLE, EDITING_TOOLS_STRAIGHTEN_TOOL_INCREMENT); -#line 97 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_object_ref_sink (_tmp0_); -#line 97 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->angle_slider = _tmp0_; -#line 98 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp1_ = (GtkLabel*) gtk_label_new (""); -#line 98 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_object_ref_sink (_tmp1_); -#line 98 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->angle_label = _tmp1_; -#line 99 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp2_ = (GtkLabel*) gtk_label_new (_ ("Angle:")); -#line 99 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_object_ref_sink (_tmp2_); -#line 99 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->description_label = _tmp2_; -#line 100 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp3_ = (GtkButton*) gtk_button_new_with_mnemonic (_ ("_Straighten")); -#line 100 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_object_ref_sink (_tmp3_); -#line 100 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->ok_button = _tmp3_; -#line 101 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp4_ = (GtkButton*) gtk_button_new_with_mnemonic (RESOURCES_CANCEL_LABEL); -#line 101 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_object_ref_sink (_tmp4_); -#line 101 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->cancel_button = _tmp4_; -#line 102 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp5_ = (GtkButton*) gtk_button_new_with_mnemonic (_ ("_Reset")); -#line 102 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_object_ref_sink (_tmp5_); -#line 102 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->reset_button = _tmp5_; -#line 3436 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_straighten_tool_window_finalize (GObject * obj) -{ - EditingToolsStraightenToolStraightenToolWindow * self; -#line 94 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_STRAIGHTEN_TOOL_TYPE_STRAIGHTEN_TOOL_WINDOW, EditingToolsStraightenToolStraightenToolWindow); -#line 97 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (self->angle_slider); -#line 98 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (self->angle_label); -#line 99 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (self->description_label); -#line 100 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (self->ok_button); -#line 101 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (self->cancel_button); -#line 102 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (self->reset_button); -#line 94 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - G_OBJECT_CLASS (editing_tools_straighten_tool_straighten_tool_window_parent_class)->finalize (obj); -#line 3460 "StraightenTool.c" -} - - -static GType -editing_tools_straighten_tool_straighten_tool_window_get_type (void) -{ - static volatile gsize editing_tools_straighten_tool_straighten_tool_window_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_straighten_tool_straighten_tool_window_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditingToolsStraightenToolStraightenToolWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_straighten_tool_straighten_tool_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsStraightenToolStraightenToolWindow), 0, (GInstanceInitFunc) editing_tools_straighten_tool_straighten_tool_window_instance_init, NULL }; - GType editing_tools_straighten_tool_straighten_tool_window_type_id; - editing_tools_straighten_tool_straighten_tool_window_type_id = g_type_register_static (EDITING_TOOLS_TYPE_EDITING_TOOL_WINDOW, "EditingToolsStraightenToolStraightenToolWindow", &g_define_type_info, 0); - g_once_init_leave (&editing_tools_straighten_tool_straighten_tool_window_type_id__volatile, editing_tools_straighten_tool_straighten_tool_window_type_id); - } - return editing_tools_straighten_tool_straighten_tool_window_type_id__volatile; -} - - -static void -editing_tools_straighten_tool_class_init (EditingToolsStraightenToolClass * klass) -{ -#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - editing_tools_straighten_tool_parent_class = g_type_class_peek_parent (klass); -#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - ((EditingToolsEditingToolClass *) klass)->finalize = editing_tools_straighten_tool_finalize; -#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - g_type_class_add_private (klass, sizeof (EditingToolsStraightenToolPrivate)); -#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - ((EditingToolsEditingToolClass *) klass)->on_left_click = (void (*) (EditingToolsEditingTool *, gint, gint)) editing_tools_straighten_tool_real_on_left_click; -#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - ((EditingToolsEditingToolClass *) klass)->on_left_released = (void (*) (EditingToolsEditingTool *, gint, gint)) editing_tools_straighten_tool_real_on_left_released; -#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - ((EditingToolsEditingToolClass *) klass)->on_motion = (void (*) (EditingToolsEditingTool *, gint, gint, GdkModifierType)) editing_tools_straighten_tool_real_on_motion; -#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - ((EditingToolsEditingToolClass *) klass)->on_keypress = (gboolean (*) (EditingToolsEditingTool *, GdkEventKey*)) editing_tools_straighten_tool_real_on_keypress; -#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - ((EditingToolsEditingToolClass *) klass)->activate = (void (*) (EditingToolsEditingTool *, EditingToolsPhotoCanvas*)) editing_tools_straighten_tool_real_activate; -#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - ((EditingToolsEditingToolClass *) klass)->deactivate = (void (*) (EditingToolsEditingTool *)) editing_tools_straighten_tool_real_deactivate; -#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - ((EditingToolsEditingToolClass *) klass)->get_tool_window = (EditingToolsEditingToolWindow* (*) (EditingToolsEditingTool *)) editing_tools_straighten_tool_real_get_tool_window; -#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - ((EditingToolsEditingToolClass *) klass)->paint = (void (*) (EditingToolsEditingTool *, cairo_t*)) editing_tools_straighten_tool_real_paint; -#line 3503 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_instance_init (EditingToolsStraightenTool * self) -{ - EditingToolsStraightenToolStraightenGuide* _tmp0_; -#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv = EDITING_TOOLS_STRAIGHTEN_TOOL_GET_PRIVATE (self); -#line 170 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->photo_angle = 0.0; -#line 174 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->use_high_qual = TRUE; -#line 175 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->slider_sched = NULL; -#line 181 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _tmp0_ = editing_tools_straighten_tool_straighten_guide_new (); -#line 181 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self->priv->guide = _tmp0_; -#line 3523 "StraightenTool.c" -} - - -static void -editing_tools_straighten_tool_finalize (EditingToolsEditingTool * obj) -{ - EditingToolsStraightenTool * self; -#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EDITING_TOOLS_TYPE_STRAIGHTEN_TOOL, EditingToolsStraightenTool); -#line 157 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _g_object_unref0 (self->priv->window); -#line 160 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_surface_destroy0 (self->priv->photo_surf); -#line 164 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_surface_destroy0 (self->priv->rotate_surf); -#line 165 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _cairo_destroy0 (self->priv->rotate_ctx); -#line 175 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _one_shot_scheduler_unref0 (self->priv->slider_sched); -#line 181 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - _editing_tools_straighten_tool_straighten_guide_unref0 (self->priv->guide); -#line 14 "/home/jens/Source/shotwell/src/editing_tools/StraightenTool.vala" - EDITING_TOOLS_EDITING_TOOL_CLASS (editing_tools_straighten_tool_parent_class)->finalize (obj); -#line 3547 "StraightenTool.c" -} - - -/** - * An editing tool that allows one to introduce or remove a Dutch angle from - * a photograph. - */ -GType -editing_tools_straighten_tool_get_type (void) -{ - static volatile gsize editing_tools_straighten_tool_type_id__volatile = 0; - if (g_once_init_enter (&editing_tools_straighten_tool_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EditingToolsStraightenToolClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) editing_tools_straighten_tool_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EditingToolsStraightenTool), 0, (GInstanceInitFunc) editing_tools_straighten_tool_instance_init, NULL }; - GType editing_tools_straighten_tool_type_id; - editing_tools_straighten_tool_type_id = g_type_register_static (EDITING_TOOLS_TYPE_EDITING_TOOL, "EditingToolsStraightenTool", &g_define_type_info, 0); - g_once_init_leave (&editing_tools_straighten_tool_type_id__volatile, editing_tools_straighten_tool_type_id); - } - return editing_tools_straighten_tool_type_id__volatile; -} - - - diff --git a/src/editing_tools/StraightenTool.vala b/src/editing_tools/StraightenTool.vala index 023b636..f427b99 100644 --- a/src/editing_tools/StraightenTool.vala +++ b/src/editing_tools/StraightenTool.vala @@ -109,7 +109,6 @@ public class StraightenTool : EditingTool { public StraightenToolWindow(Gtk.Window container) { base(container); - angle_slider.set_min_slider_size(MIN_SLIDER_SIZE); angle_slider.set_size_request(MIN_SLIDER_SIZE, -1); angle_slider.set_value(0.0); angle_slider.set_draw_value(false); diff --git a/src/events/EventDirectoryItem.c b/src/events/EventDirectoryItem.c deleted file mode 100644 index 9862c4b..0000000 --- a/src/events/EventDirectoryItem.c +++ /dev/null @@ -1,1897 +0,0 @@ -/* EventDirectoryItem.c generated by valac 0.40.4, the Vala compiler - * generated from EventDirectoryItem.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; -typedef struct _DataViewPrivate DataViewPrivate; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; -typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; -typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_EVENT_DIRECTORY_ITEM (event_directory_item_get_type ()) -#define EVENT_DIRECTORY_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem)) -#define EVENT_DIRECTORY_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItemClass)) -#define IS_EVENT_DIRECTORY_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_DIRECTORY_ITEM)) -#define IS_EVENT_DIRECTORY_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_DIRECTORY_ITEM)) -#define EVENT_DIRECTORY_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItemClass)) - -typedef struct _EventDirectoryItem EventDirectoryItem; -typedef struct _EventDirectoryItemClass EventDirectoryItemClass; -typedef struct _EventDirectoryItemPrivate EventDirectoryItemPrivate; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_EVENT_SOURCE (event_source_get_type ()) -#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource)) -#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass)) -#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE)) -#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE)) -#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass)) - -typedef struct _EventSource EventSource; -typedef struct _EventSourceClass EventSourceClass; - -#define TYPE_EVENT (event_get_type ()) -#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event)) -#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass)) -#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT)) -#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT)) -#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass)) - -typedef struct _Event Event; -typedef struct _EventClass EventClass; -enum { - EVENT_DIRECTORY_ITEM_0_PROPERTY, - EVENT_DIRECTORY_ITEM_NUM_PROPERTIES -}; -static GParamSpec* event_directory_item_properties[EVENT_DIRECTORY_ITEM_NUM_PROPERTIES]; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_EVENT_SOURCE_COLLECTION (event_source_collection_get_type ()) -#define EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection)) -#define EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass)) -#define IS_EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE_COLLECTION)) -#define IS_EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE_COLLECTION)) -#define EVENT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass)) - -typedef struct _EventSourceCollection EventSourceCollection; -typedef struct _EventSourceCollectionClass EventSourceCollectionClass; - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) -typedef struct _Scaling Scaling; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define PHOTO_TYPE_EXCEPTION (photo_exception_get_type ()) - -#define THUMBNAIL_CACHE_TYPE_SIZE (thumbnail_cache_size_get_type ()) - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataView { - DataObject parent_instance; - DataViewPrivate * priv; -}; - -struct _DataViewClass { - DataObjectClass parent_class; - void (*notify_view_altered) (DataView* self); - void (*notify_geometry_altered) (DataView* self); - void (*notify_unsubscribed) (DataView* self, DataSource* source); - void (*state_changed) (DataView* self, gboolean selected); - void (*visibility_changed) (DataView* self, gboolean visible); - void (*view_altered) (DataView* self); - void (*geometry_altered) (DataView* self); - void (*unsubscribed) (DataView* self, DataSource* source); -}; - -struct _ThumbnailView { - DataView parent_instance; - ThumbnailViewPrivate * priv; -}; - -struct _ThumbnailViewClass { - DataViewClass parent_class; - void (*notify_thumbnail_altered) (ThumbnailView* self); - void (*thumbnail_altered) (ThumbnailView* self); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _CheckerboardItem { - ThumbnailView parent_instance; - CheckerboardItemPrivate * priv; - Dimensions requisition; - GdkRectangle allocation; -}; - -struct _CheckerboardItemClass { - ThumbnailViewClass parent_class; - void (*exposed) (CheckerboardItem* self); - void (*unexposed) (CheckerboardItem* self); - gboolean (*is_exposed) (CheckerboardItem* self); - void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha); - void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width); - void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin); - GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale); -}; - -struct _EventDirectoryItem { - CheckerboardItem parent_instance; - EventDirectoryItemPrivate * priv; - Event* event; -}; - -struct _EventDirectoryItemClass { - CheckerboardItemClass parent_class; -}; - -struct _EventDirectoryItemPrivate { - GdkRectangle paul_lynde; -}; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -typedef enum { - PHOTO_EXCEPTION_NONE = 0, - PHOTO_EXCEPTION_ORIENTATION = 1 << 0, - PHOTO_EXCEPTION_CROP = 1 << 1, - PHOTO_EXCEPTION_REDEYE = 1 << 2, - PHOTO_EXCEPTION_ADJUST = 1 << 3, - PHOTO_EXCEPTION_STRAIGHTEN = 1 << 4, - PHOTO_EXCEPTION_ALL = 0xFFFFFFFFLL -} PhotoException; - -typedef void (*ThumbnailCacheAsyncFetchCallback) (GdkPixbuf* pixbuf, GdkPixbuf* unscaled, Dimensions* dim, GdkInterpType interp, GError* err, void* user_data); -typedef enum { - THUMBNAIL_CACHE_SIZE_LARGEST = 360, - THUMBNAIL_CACHE_SIZE_BIG = 360, - THUMBNAIL_CACHE_SIZE_MEDIUM = 128, - THUMBNAIL_CACHE_SIZE_SMALLEST = 128 -} ThumbnailCacheSize; - - -static gpointer event_directory_item_parent_class = NULL; -extern EventSourceCollection* event_global; -extern Scaling event_directory_item_squared_scaling; -Scaling event_directory_item_squared_scaling = {0}; - -GType data_object_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType event_directory_item_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType event_source_get_type (void) G_GNUC_CONST; -GType event_get_type (void) G_GNUC_CONST; -#define EVENT_DIRECTORY_ITEM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItemPrivate)) -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType event_source_collection_get_type (void) G_GNUC_CONST; -static void event_directory_item_on_events_altered (EventDirectoryItem* self, - GeeMap* map); -static void _event_directory_item_on_events_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -void scaling_to_fill_viewport (Dimensions* viewport, - Scaling* result); -static gint event_directory_item_get_CROPPED_SCALE (void); -void dimensions_init (Dimensions *self, - gint width, - gint height); -EventDirectoryItem* event_directory_item_new (Event* event); -EventDirectoryItem* event_directory_item_construct (GType object_type, - Event* event); -static gchar* event_directory_item_get_formatted_title (Event* event); -gchar* event_source_get_comment (EventSource* self); -CheckerboardItem* checkerboard_item_construct (GType object_type, - ThumbnailSource* source, - Dimensions* initial_pixbuf_dim, - const gchar* title, - const gchar* comment, - gboolean marked_up, - PangoAlignment alignment); -GType media_source_get_type (void) G_GNUC_CONST; -static void event_directory_item_get_paul_lynde_rect (MediaSource* source, - GdkRectangle* result); -MediaSource* event_get_primary_source (Event* self); -void checkerboard_item_clear_image (CheckerboardItem* self, - Dimensions* dim); -void dimensions_for_rectangle (GdkRectangle* rect, - Dimensions* result); -void scaling_get_scaled_dimensions (Scaling *self, - Dimensions* original, - Dimensions* result); -GType photo_exception_get_type (void) G_GNUC_CONST; -void media_source_get_dimensions (MediaSource* self, - PhotoException disallowed_steps, - Dimensions* result); -static GdkPixbuf* event_directory_item_get_paul_lynde (MediaSource* media, - GdkRectangle* paul_lynde, - GError** error); -GdkPixbuf* media_source_get_preview_pixbuf (MediaSource* self, - Scaling* scaling, - GError** error); -void thumbnail_cache_fetch_async_scaled (ThumbnailSource* source, - gint scale, - Dimensions* dim, - GdkInterpType interp, - ThumbnailCacheAsyncFetchCallback callback, - void* callback_target, - GCancellable* cancellable); -GType thumbnail_cache_size_get_type (void) G_GNUC_CONST; -#define THUMBNAIL_CACHE_DEFAULT_INTERP GDK_INTERP_HYPER -static void ___lambda19_ (void); -static void ____lambda19__thumbnail_cache_async_fetch_callback (GdkPixbuf* pixbuf, - GdkPixbuf* unscaled, - Dimensions* dim, - GdkInterpType interp, - GError* err, - gpointer self); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -GdkPixbuf* photo_source_get_pixbuf (PhotoSource* self, - Scaling* scaling, - GError** error); -void dimensions_for_pixbuf (GdkPixbuf* pixbuf, - Dimensions* result); -void clamp_rectangle (GdkRectangle* original, - Dimensions* max, - GdkRectangle* result); -gboolean media_source_collection_has_photo (GeeCollection* media); -GeeCollection* event_source_get_media (EventSource* self); -gboolean media_source_collection_has_video (GeeCollection* media); -gint event_source_get_media_count (EventSource* self); -gchar* event_get_formatted_daterange (Event* self); -gchar* data_object_get_name (DataObject* self); -gchar* guarded_markup_escape_text (const gchar* plain); -static void event_directory_item_real_exposed (CheckerboardItem* base); -gboolean checkerboard_item_is_exposed (CheckerboardItem* self); -void checkerboard_item_set_image (CheckerboardItem* self, - GdkPixbuf* pixbuf); -gchar* data_object_to_string (DataObject* self); -static void event_directory_item_update_comment (EventDirectoryItem* self, - gboolean init); -void checkerboard_item_exposed (CheckerboardItem* self); -static void event_directory_item_real_unexposed (CheckerboardItem* base); -void checkerboard_item_unexposed (CheckerboardItem* self); -void checkerboard_item_set_title (CheckerboardItem* self, - const gchar* text, - gboolean marked_up, - PangoAlignment alignment); -static void event_directory_item_real_thumbnail_altered (ThumbnailView* base); -static void event_directory_item_real_paint_shadow (CheckerboardItem* base, - cairo_t* ctx, - Dimensions* dimensions, - GdkPoint* origin, - gint radius, - gfloat initial_alpha); -void checkerboard_item_paint_shadow (CheckerboardItem* self, - cairo_t* ctx, - Dimensions* dimensions, - GdkPoint* origin, - gint radius, - gfloat initial_alpha); -static void event_directory_item_real_paint_border (CheckerboardItem* base, - cairo_t* ctx, - Dimensions* object_dimensions, - GdkPoint* object_origin, - gint border_width); -void checkerboard_item_get_border_dimensions (Dimensions* object_dim, - gint border_width, - Dimensions* result); -void checkerboard_item_get_border_origin (GdkPoint* object_origin, - gint border_width, - GdkPoint* result); -void draw_rounded_corners_filled (cairo_t* ctx, - Dimensions* dim, - GdkPoint* origin, - gdouble radius_proportion); -static void event_directory_item_real_paint_image (CheckerboardItem* base, - cairo_t* ctx, - GdkPixbuf* pixbuf, - GdkPoint* origin); -void context_rounded_corners (cairo_t* cx, - Dimensions* dim, - GdkPoint* origin, - gdouble radius_proportion); -gboolean is_string_empty (const gchar* s); -void checkerboard_item_clear_comment (CheckerboardItem* self); -void checkerboard_item_set_comment (CheckerboardItem* self, - const gchar* text, - gboolean marked_up, - PangoAlignment alignment); -gint thumbnail_cache_size_get_scale (ThumbnailCacheSize self); -static void event_directory_item_finalize (GObject * obj); -static void _vala_event_directory_item_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); - - -static void -_event_directory_item_on_events_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 39 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - event_directory_item_on_events_altered ((EventDirectoryItem*) self, items); -#line 560 "EventDirectoryItem.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 26 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - return self ? g_object_ref (self) : NULL; -#line 569 "EventDirectoryItem.c" -} - - -EventDirectoryItem* -event_directory_item_construct (GType object_type, - Event* event) -{ - EventDirectoryItem * self = NULL; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - Dimensions _tmp4_ = {0}; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - Event* _tmp9_; - MediaSource* _tmp10_; - MediaSource* _tmp11_; - GdkRectangle _tmp12_ = {0}; - GdkRectangle _tmp13_; - Dimensions _tmp14_ = {0}; - EventSourceCollection* _tmp15_; -#line 22 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_return_val_if_fail (IS_EVENT (event), NULL); -#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp0_ = event_directory_item_get_CROPPED_SCALE (); -#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp1_ = _tmp0_; -#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp2_ = event_directory_item_get_CROPPED_SCALE (); -#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp3_ = _tmp2_; -#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - dimensions_init (&_tmp4_, _tmp1_, _tmp3_); -#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp5_ = event_directory_item_get_formatted_title (event); -#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp6_ = _tmp5_; -#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp7_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_EVENT_SOURCE, EventSource)); -#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp8_ = _tmp7_; -#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - self = (EventDirectoryItem*) checkerboard_item_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), &_tmp4_, _tmp6_, _tmp8_, TRUE, PANGO_ALIGN_CENTER); -#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (_tmp8_); -#line 23 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (_tmp6_); -#line 26 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp9_ = _g_object_ref0 (event); -#line 26 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (self->event); -#line 26 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - self->event = _tmp9_; -#line 29 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp10_ = event_get_primary_source (event); -#line 29 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp11_ = _tmp10_; -#line 29 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - event_directory_item_get_paul_lynde_rect (_tmp11_, &_tmp12_); -#line 29 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - self->priv->paul_lynde = _tmp12_; -#line 29 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (_tmp11_); -#line 32 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp13_ = self->priv->paul_lynde; -#line 32 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - dimensions_for_rectangle (&_tmp13_, &_tmp14_); -#line 32 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - checkerboard_item_clear_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), &_tmp14_); -#line 35 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp15_ = event_global; -#line 35 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _event_directory_item_on_events_altered_data_collection_items_altered, self, 0); -#line 22 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - return self; -#line 648 "EventDirectoryItem.c" -} - - -EventDirectoryItem* -event_directory_item_new (Event* event) -{ -#line 22 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - return event_directory_item_construct (TYPE_EVENT_DIRECTORY_ITEM, event); -#line 657 "EventDirectoryItem.c" -} - - -static void -event_directory_item_get_paul_lynde_rect (MediaSource* source, - GdkRectangle* result) -{ - Dimensions scaled = {0}; - Dimensions _tmp0_ = {0}; - Dimensions _tmp1_ = {0}; - GdkRectangle paul_lynde = {0}; - Dimensions _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _tmp5_; - Dimensions _tmp6_; - gint _tmp7_; - Dimensions _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; - Dimensions _tmp12_; - gint _tmp13_; - gint _tmp14_; - gint _tmp15_; - gint _tmp16_; - gint _tmp17_; -#line 43 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_return_if_fail (IS_MEDIA_SOURCE (source)); -#line 44 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - media_source_get_dimensions (source, PHOTO_EXCEPTION_NONE, &_tmp0_); -#line 44 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - scaling_get_scaled_dimensions (&event_directory_item_squared_scaling, &_tmp0_, &_tmp1_); -#line 44 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - scaled = _tmp1_; -#line 46 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - memset (&paul_lynde, 0, sizeof (GdkRectangle)); -#line 47 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp2_ = scaled; -#line 47 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp3_ = _tmp2_.width; -#line 47 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp4_ = event_directory_item_get_CROPPED_SCALE (); -#line 47 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp5_ = _tmp4_; -#line 47 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp6_ = scaled; -#line 47 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp7_ = _tmp6_.width; -#line 47 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - paul_lynde.x = CLAMP (_tmp3_ - _tmp5_, 0, _tmp7_) / 2; -#line 48 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp8_ = scaled; -#line 48 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp9_ = _tmp8_.height; -#line 48 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp10_ = event_directory_item_get_CROPPED_SCALE (); -#line 48 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp11_ = _tmp10_; -#line 48 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp12_ = scaled; -#line 48 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp13_ = _tmp12_.height; -#line 48 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - paul_lynde.y = CLAMP (_tmp9_ - _tmp11_, 0, _tmp13_) / 2; -#line 49 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp14_ = event_directory_item_get_CROPPED_SCALE (); -#line 49 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp15_ = _tmp14_; -#line 49 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - paul_lynde.width = _tmp15_; -#line 50 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp16_ = event_directory_item_get_CROPPED_SCALE (); -#line 50 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp17_ = _tmp16_; -#line 50 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - paul_lynde.height = _tmp17_; -#line 52 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - *result = paul_lynde; -#line 52 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - return; -#line 739 "EventDirectoryItem.c" -} - - -static void -___lambda19_ (void) -{ -} - - -static void -____lambda19__thumbnail_cache_async_fetch_callback (GdkPixbuf* pixbuf, - GdkPixbuf* unscaled, - Dimensions* dim, - GdkInterpType interp, - GError* err, - gpointer self) -{ -#line 62 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - ___lambda19_ (); -#line 759 "EventDirectoryItem.c" -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 69 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - return self ? g_error_copy (self) : NULL; -#line 768 "EventDirectoryItem.c" -} - - -static GdkPixbuf* -event_directory_item_get_paul_lynde (MediaSource* media, - GdkRectangle* paul_lynde, - GError** error) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* pixbuf = NULL; - Dimensions thumbnail_dimensions = {0}; - GdkPixbuf* _tmp13_; - Dimensions _tmp14_ = {0}; - gboolean _tmp15_ = FALSE; - Dimensions _tmp16_; - gint _tmp17_; - GdkRectangle _tmp18_; - gint _tmp19_; - GdkRectangle _tmp32_; - Dimensions _tmp33_; - GdkRectangle _tmp34_ = {0}; - GdkPixbuf* _tmp35_; - GdkRectangle _tmp36_; - gint _tmp37_; - GdkRectangle _tmp38_; - gint _tmp39_; - GdkRectangle _tmp40_; - gint _tmp41_; - GdkRectangle _tmp42_; - gint _tmp43_; - GdkPixbuf* _tmp44_; - GError * _inner_error_ = NULL; -#line 56 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (media), NULL); -#line 56 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_return_val_if_fail (paul_lynde != NULL, NULL); -#line 805 "EventDirectoryItem.c" - { - GdkPixbuf* _tmp0_ = NULL; - Scaling _tmp1_; - GdkPixbuf* _tmp2_; - GdkPixbuf* _tmp3_; -#line 60 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp1_ = event_directory_item_squared_scaling; -#line 60 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp2_ = media_source_get_preview_pixbuf (media, &_tmp1_, &_inner_error_); -#line 60 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp0_ = _tmp2_; -#line 60 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 819 "EventDirectoryItem.c" - goto __catch58_g_error; - } -#line 60 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp3_ = _tmp0_; -#line 60 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp0_ = NULL; -#line 60 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (pixbuf); -#line 60 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - pixbuf = _tmp3_; -#line 59 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (_tmp0_); -#line 832 "EventDirectoryItem.c" - } - goto __finally58; - __catch58_g_error: - { - GError* _error_ = NULL; - Dimensions _tmp4_ = {0}; -#line 59 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _error_ = _inner_error_; -#line 59 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _inner_error_ = NULL; -#line 62 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - dimensions_init (&_tmp4_, (gint) THUMBNAIL_CACHE_SIZE_BIG, (gint) THUMBNAIL_CACHE_SIZE_BIG); -#line 62 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - thumbnail_cache_fetch_async_scaled (G_TYPE_CHECK_INSTANCE_CAST (media, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), (gint) THUMBNAIL_CACHE_SIZE_BIG, &_tmp4_, THUMBNAIL_CACHE_DEFAULT_INTERP, ____lambda19__thumbnail_cache_async_fetch_callback, NULL, NULL); -#line 65 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (media, TYPE_LIBRARY_PHOTO)) { -#line 849 "EventDirectoryItem.c" - LibraryPhoto* photo = NULL; - LibraryPhoto* _tmp5_; - GdkPixbuf* _tmp6_ = NULL; - LibraryPhoto* _tmp7_; - Scaling _tmp8_; - GdkPixbuf* _tmp9_; - GdkPixbuf* _tmp10_; -#line 66 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (media, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 66 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - photo = _tmp5_; -#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp7_ = photo; -#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp8_ = event_directory_item_squared_scaling; -#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp9_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp8_, &_inner_error_); -#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp6_ = _tmp9_; -#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (photo); -#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_error_free0 (_error_); -#line 875 "EventDirectoryItem.c" - goto __finally58; - } -#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp10_ = _tmp6_; -#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp6_ = NULL; -#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (pixbuf); -#line 67 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - pixbuf = _tmp10_; -#line 65 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (_tmp6_); -#line 65 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (photo); -#line 890 "EventDirectoryItem.c" - } else { - GError* _tmp11_; - GError* _tmp12_; -#line 69 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp11_ = _error_; -#line 69 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp12_ = _g_error_copy0 (_tmp11_); -#line 69 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _inner_error_ = _tmp12_; -#line 69 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_error_free0 (_error_); -#line 902 "EventDirectoryItem.c" - goto __finally58; - } -#line 59 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_error_free0 (_error_); -#line 907 "EventDirectoryItem.c" - } - __finally58: -#line 59 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 59 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_propagate_error (error, _inner_error_); -#line 59 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (pixbuf); -#line 59 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - return NULL; -#line 918 "EventDirectoryItem.c" - } -#line 73 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp13_ = pixbuf; -#line 73 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - dimensions_for_pixbuf (_tmp13_, &_tmp14_); -#line 73 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - thumbnail_dimensions = _tmp14_; -#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp16_ = thumbnail_dimensions; -#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp17_ = _tmp16_.width; -#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp18_ = *paul_lynde; -#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp19_ = _tmp18_.width; -#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (_tmp17_ > (2 * _tmp19_)) { -#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp15_ = TRUE; -#line 938 "EventDirectoryItem.c" - } else { - Dimensions _tmp20_; - gint _tmp21_; - GdkRectangle _tmp22_; - gint _tmp23_; -#line 76 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp20_ = thumbnail_dimensions; -#line 76 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp21_ = _tmp20_.height; -#line 76 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp22_ = *paul_lynde; -#line 76 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp23_ = _tmp22_.height; -#line 76 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp15_ = _tmp21_ > (_tmp23_ * 2); -#line 954 "EventDirectoryItem.c" - } -#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (_tmp15_) { -#line 958 "EventDirectoryItem.c" - LibraryPhoto* photo = NULL; - LibraryPhoto* _tmp24_; - GdkPixbuf* _tmp25_ = NULL; - LibraryPhoto* _tmp26_; - Scaling _tmp27_; - GdkPixbuf* _tmp28_; - GdkPixbuf* _tmp29_; - GdkPixbuf* _tmp30_; - Dimensions _tmp31_ = {0}; -#line 77 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (media, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 77 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - photo = _tmp24_; -#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp26_ = photo; -#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp27_ = event_directory_item_squared_scaling; -#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp28_ = photo_source_get_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_PHOTO_SOURCE, PhotoSource), &_tmp27_, &_inner_error_); -#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp25_ = _tmp28_; -#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_propagate_error (error, _inner_error_); -#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (photo); -#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (pixbuf); -#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - return NULL; -#line 990 "EventDirectoryItem.c" - } -#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp29_ = _tmp25_; -#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp25_ = NULL; -#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (pixbuf); -#line 78 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - pixbuf = _tmp29_; -#line 79 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp30_ = pixbuf; -#line 79 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - dimensions_for_pixbuf (_tmp30_, &_tmp31_); -#line 79 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - thumbnail_dimensions = _tmp31_; -#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (_tmp25_); -#line 75 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (photo); -#line 1010 "EventDirectoryItem.c" - } -#line 83 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp32_ = *paul_lynde; -#line 83 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp33_ = thumbnail_dimensions; -#line 83 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - clamp_rectangle (&_tmp32_, &_tmp33_, &_tmp34_); -#line 83 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - *paul_lynde = _tmp34_; -#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp35_ = pixbuf; -#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp36_ = *paul_lynde; -#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp37_ = _tmp36_.x; -#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp38_ = *paul_lynde; -#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp39_ = _tmp38_.y; -#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp40_ = *paul_lynde; -#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp41_ = _tmp40_.width; -#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp42_ = *paul_lynde; -#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp43_ = _tmp42_.height; -#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp44_ = gdk_pixbuf_new_subpixbuf (_tmp35_, _tmp37_, _tmp39_, _tmp41_, _tmp43_); -#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - result = _tmp44_; -#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (pixbuf); -#line 86 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - return result; -#line 1046 "EventDirectoryItem.c" -} - - -static gchar* -event_directory_item_get_formatted_title (Event* event) -{ - gchar* result = NULL; - gboolean has_photos = FALSE; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - gboolean _tmp2_; - gboolean has_videos = FALSE; - GeeCollection* _tmp3_; - GeeCollection* _tmp4_; - gboolean _tmp5_; - gint count = 0; - gchar* count_text = NULL; - gchar* _tmp6_; - gboolean _tmp7_ = FALSE; - gboolean _tmp8_; - gchar* daterange = NULL; - gchar* _tmp20_; - gchar* name = NULL; - gchar* _tmp21_; - gboolean _tmp22_ = FALSE; - const gchar* _tmp23_; -#line 90 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_return_val_if_fail (IS_EVENT (event), NULL); -#line 91 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp0_ = event_source_get_media (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_EVENT_SOURCE, EventSource)); -#line 91 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp1_ = _tmp0_; -#line 91 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp2_ = media_source_collection_has_photo (_tmp1_); -#line 91 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (_tmp1_); -#line 91 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - has_photos = _tmp2_; -#line 92 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp3_ = event_source_get_media (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_EVENT_SOURCE, EventSource)); -#line 92 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp4_ = _tmp3_; -#line 92 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp5_ = media_source_collection_has_video (_tmp4_); -#line 92 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (_tmp4_); -#line 92 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - has_videos = _tmp5_; -#line 94 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - count = event_source_get_media_count (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_EVENT_SOURCE, EventSource)); -#line 95 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp6_ = g_strdup (""); -#line 95 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - count_text = _tmp6_; -#line 96 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp8_ = has_photos; -#line 96 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (_tmp8_) { -#line 1105 "EventDirectoryItem.c" - gboolean _tmp9_; -#line 96 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp9_ = has_videos; -#line 96 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp7_ = _tmp9_; -#line 1111 "EventDirectoryItem.c" - } else { -#line 96 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp7_ = FALSE; -#line 1115 "EventDirectoryItem.c" - } -#line 96 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (_tmp7_) { -#line 1119 "EventDirectoryItem.c" - gint _tmp10_; - gint _tmp11_; - gchar* _tmp12_; -#line 97 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp10_ = count; -#line 97 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp11_ = count; -#line 97 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp12_ = g_strdup_printf (ngettext ("%d Photo/Video", "%d Photos/Videos", (gulong) _tmp10_), _tmp11_); -#line 97 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (count_text); -#line 97 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - count_text = _tmp12_; -#line 1133 "EventDirectoryItem.c" - } else { - gboolean _tmp13_; -#line 98 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp13_ = has_videos; -#line 98 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (_tmp13_) { -#line 1140 "EventDirectoryItem.c" - gint _tmp14_; - gint _tmp15_; - gchar* _tmp16_; -#line 99 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp14_ = count; -#line 99 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp15_ = count; -#line 99 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp16_ = g_strdup_printf (ngettext ("%d Video", "%d Videos", (gulong) _tmp14_), _tmp15_); -#line 99 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (count_text); -#line 99 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - count_text = _tmp16_; -#line 1154 "EventDirectoryItem.c" - } else { - gint _tmp17_; - gint _tmp18_; - gchar* _tmp19_; -#line 101 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp17_ = count; -#line 101 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp18_ = count; -#line 101 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp19_ = g_strdup_printf (ngettext ("%d Photo", "%d Photos", (gulong) _tmp17_), _tmp18_); -#line 101 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (count_text); -#line 101 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - count_text = _tmp19_; -#line 1169 "EventDirectoryItem.c" - } - } -#line 103 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp20_ = event_get_formatted_daterange (event); -#line 103 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - daterange = _tmp20_; -#line 104 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp21_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_DATA_OBJECT, DataObject)); -#line 104 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - name = _tmp21_; -#line 108 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp23_ = daterange; -#line 108 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (_tmp23_ == NULL) { -#line 108 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp22_ = TRUE; -#line 1186 "EventDirectoryItem.c" - } else { - const gchar* _tmp24_; - const gchar* _tmp25_; -#line 108 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp24_ = daterange; -#line 108 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp25_ = name; -#line 108 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp22_ = g_strcmp0 (_tmp24_, _tmp25_) == 0; -#line 1196 "EventDirectoryItem.c" - } -#line 108 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (_tmp22_) { -#line 1200 "EventDirectoryItem.c" - const gchar* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - const gchar* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; -#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp26_ = name; -#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp27_ = guarded_markup_escape_text (_tmp26_); -#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp28_ = _tmp27_; -#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp29_ = count_text; -#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp30_ = guarded_markup_escape_text (_tmp29_); -#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp31_ = _tmp30_; -#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp32_ = g_strdup_printf ("%s\n%s", _tmp28_, _tmp31_); -#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp33_ = _tmp32_; -#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (_tmp31_); -#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (_tmp28_); -#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - result = _tmp33_; -#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (name); -#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (daterange); -#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (count_text); -#line 109 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - return result; -#line 1239 "EventDirectoryItem.c" - } else { - const gchar* _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; - const gchar* _tmp37_; - gchar* _tmp38_; - gchar* _tmp39_; - const gchar* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; - gchar* _tmp44_; -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp34_ = name; -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp35_ = guarded_markup_escape_text (_tmp34_); -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp36_ = _tmp35_; -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp37_ = count_text; -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp38_ = guarded_markup_escape_text (_tmp37_); -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp39_ = _tmp38_; -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp40_ = daterange; -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp41_ = guarded_markup_escape_text (_tmp40_); -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp42_ = _tmp41_; -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp43_ = g_strdup_printf ("%s\n%s\n%s", _tmp36_, _tmp39_, _tmp42_); -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp44_ = _tmp43_; -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (_tmp42_); -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (_tmp39_); -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (_tmp36_); -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - result = _tmp44_; -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (name); -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (daterange); -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (count_text); -#line 112 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - return result; -#line 1290 "EventDirectoryItem.c" - } -#line 90 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (name); -#line 90 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (daterange); -#line 90 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (count_text); -#line 1298 "EventDirectoryItem.c" -} - - -static void -event_directory_item_real_exposed (CheckerboardItem* base) -{ - EventDirectoryItem * self; - GError * _inner_error_ = NULL; -#line 116 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem); -#line 117 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (checkerboard_item_is_exposed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem))) { -#line 118 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - return; -#line 1313 "EventDirectoryItem.c" - } - { - GdkPixbuf* _tmp0_ = NULL; - Event* _tmp1_; - MediaSource* _tmp2_; - MediaSource* _tmp3_; - GdkRectangle _tmp4_; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; -#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp1_ = self->event; -#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp2_ = event_get_primary_source (_tmp1_); -#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp3_ = _tmp2_; -#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp4_ = self->priv->paul_lynde; -#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp5_ = event_directory_item_get_paul_lynde (_tmp3_, &_tmp4_, &_inner_error_); -#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp6_ = _tmp5_; -#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (_tmp3_); -#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp0_ = _tmp6_; -#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1341 "EventDirectoryItem.c" - goto __catch59_g_error; - } -#line 121 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - checkerboard_item_set_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp0_); -#line 120 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (_tmp0_); -#line 1348 "EventDirectoryItem.c" - } - goto __finally59; - __catch59_g_error: - { - GError* err = NULL; - Event* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - GError* _tmp10_; - const gchar* _tmp11_; -#line 120 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - err = _inner_error_; -#line 120 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _inner_error_ = NULL; -#line 123 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp7_ = self->event; -#line 123 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp8_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_OBJECT, DataObject)); -#line 123 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp9_ = _tmp8_; -#line 123 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp10_ = err; -#line 123 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp11_ = _tmp10_->message; -#line 123 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_critical ("EventDirectoryItem.vala:123: Unable to fetch preview for %s: %s", _tmp9_, _tmp11_); -#line 123 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (_tmp9_); -#line 120 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_error_free0 (err); -#line 1379 "EventDirectoryItem.c" - } - __finally59: -#line 120 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 120 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 120 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_clear_error (&_inner_error_); -#line 120 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - return; -#line 1390 "EventDirectoryItem.c" - } -#line 126 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - event_directory_item_update_comment (self, FALSE); -#line 128 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - CHECKERBOARD_ITEM_CLASS (event_directory_item_parent_class)->exposed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 1396 "EventDirectoryItem.c" -} - - -static void -event_directory_item_real_unexposed (CheckerboardItem* base) -{ - EventDirectoryItem * self; - GdkRectangle _tmp0_; - Dimensions _tmp1_ = {0}; -#line 131 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem); -#line 132 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (!checkerboard_item_is_exposed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem))) { -#line 133 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - return; -#line 1412 "EventDirectoryItem.c" - } -#line 135 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp0_ = self->priv->paul_lynde; -#line 135 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - dimensions_for_rectangle (&_tmp0_, &_tmp1_); -#line 135 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - checkerboard_item_clear_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), &_tmp1_); -#line 137 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - CHECKERBOARD_ITEM_CLASS (event_directory_item_parent_class)->unexposed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 1422 "EventDirectoryItem.c" -} - - -static void -event_directory_item_on_events_altered (EventDirectoryItem* self, - GeeMap* map) -{ - Event* _tmp0_; -#line 140 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_return_if_fail (IS_EVENT_DIRECTORY_ITEM (self)); -#line 140 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_return_if_fail (GEE_IS_MAP (map)); -#line 141 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - event_directory_item_update_comment (self, FALSE); -#line 142 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp0_ = self->event; -#line 142 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (gee_map_has_key (map, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject))) { -#line 1441 "EventDirectoryItem.c" - Event* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 143 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp1_ = self->event; -#line 143 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp2_ = event_directory_item_get_formatted_title (_tmp1_); -#line 143 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp3_ = _tmp2_; -#line 143 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - checkerboard_item_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp3_, TRUE, PANGO_ALIGN_CENTER); -#line 143 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (_tmp3_); -#line 1455 "EventDirectoryItem.c" - } -} - - -static void -event_directory_item_real_thumbnail_altered (ThumbnailView* base) -{ - EventDirectoryItem * self; - MediaSource* media = NULL; - Event* _tmp0_; - MediaSource* _tmp1_; - MediaSource* _tmp2_; - GdkRectangle _tmp3_ = {0}; - GError * _inner_error_ = NULL; -#line 146 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem); -#line 147 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp0_ = self->event; -#line 147 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp1_ = event_get_primary_source (_tmp0_); -#line 147 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - media = _tmp1_; -#line 150 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp2_ = media; -#line 150 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - event_directory_item_get_paul_lynde_rect (_tmp2_, &_tmp3_); -#line 150 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - self->priv->paul_lynde = _tmp3_; -#line 152 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (checkerboard_item_is_exposed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem))) { -#line 1486 "EventDirectoryItem.c" - { - GdkPixbuf* _tmp4_ = NULL; - MediaSource* _tmp5_; - GdkRectangle _tmp6_; - GdkPixbuf* _tmp7_; -#line 154 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp5_ = media; -#line 154 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp6_ = self->priv->paul_lynde; -#line 154 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp7_ = event_directory_item_get_paul_lynde (_tmp5_, &_tmp6_, &_inner_error_); -#line 154 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp4_ = _tmp7_; -#line 154 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1502 "EventDirectoryItem.c" - goto __catch60_g_error; - } -#line 154 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - checkerboard_item_set_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp4_); -#line 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (_tmp4_); -#line 1509 "EventDirectoryItem.c" - } - goto __finally60; - __catch60_g_error: - { - GError* err = NULL; - Event* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - GError* _tmp11_; - const gchar* _tmp12_; -#line 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - err = _inner_error_; -#line 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _inner_error_ = NULL; -#line 156 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp8_ = self->event; -#line 156 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp9_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject)); -#line 156 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp10_ = _tmp9_; -#line 156 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp11_ = err; -#line 156 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp12_ = _tmp11_->message; -#line 156 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_critical ("EventDirectoryItem.vala:156: Unable to fetch preview for %s: %s", _tmp10_, _tmp12_); -#line 156 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (_tmp10_); -#line 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_error_free0 (err); -#line 1540 "EventDirectoryItem.c" - } - __finally60: -#line 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (media); -#line 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_clear_error (&_inner_error_); -#line 153 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - return; -#line 1553 "EventDirectoryItem.c" - } - } else { - GdkRectangle _tmp13_; - Dimensions _tmp14_ = {0}; -#line 159 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp13_ = self->priv->paul_lynde; -#line 159 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - dimensions_for_rectangle (&_tmp13_, &_tmp14_); -#line 159 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - checkerboard_item_clear_image (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), &_tmp14_); -#line 1564 "EventDirectoryItem.c" - } -#line 162 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - THUMBNAIL_VIEW_CLASS (event_directory_item_parent_class)->thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), TYPE_THUMBNAIL_VIEW, ThumbnailView)); -#line 146 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (media); -#line 1570 "EventDirectoryItem.c" -} - - -static void -event_directory_item_real_paint_shadow (CheckerboardItem* base, - cairo_t* ctx, - Dimensions* dimensions, - GdkPoint* origin, - gint radius, - gfloat initial_alpha) -{ - EventDirectoryItem * self; - Dimensions altered = {0}; - Dimensions _tmp0_; - gint _tmp1_; - Dimensions _tmp2_; - gint _tmp3_; - Dimensions _tmp4_; - GdkPoint _tmp5_; -#line 165 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem); -#line 165 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_return_if_fail (ctx != NULL); -#line 165 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_return_if_fail (dimensions != NULL); -#line 165 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_return_if_fail (origin != NULL); -#line 167 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp0_ = *dimensions; -#line 167 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp1_ = _tmp0_.width; -#line 167 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp2_ = *dimensions; -#line 167 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp3_ = _tmp2_.height; -#line 167 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - dimensions_init (&altered, _tmp1_ - 25, _tmp3_ - 25); -#line 168 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp4_ = altered; -#line 168 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp5_ = *origin; -#line 168 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - CHECKERBOARD_ITEM_CLASS (event_directory_item_parent_class)->paint_shadow (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), ctx, &_tmp4_, &_tmp5_, 36, initial_alpha); -#line 1614 "EventDirectoryItem.c" -} - - -static void -event_directory_item_real_paint_border (CheckerboardItem* base, - cairo_t* ctx, - Dimensions* object_dimensions, - GdkPoint* object_origin, - gint border_width) -{ - EventDirectoryItem * self; - Dimensions dimensions = {0}; - Dimensions _tmp0_; - Dimensions _tmp1_ = {0}; - GdkPoint origin = {0}; - GdkPoint _tmp2_; - GdkPoint _tmp3_ = {0}; - Dimensions _tmp4_; - GdkPoint _tmp5_; -#line 171 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem); -#line 171 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_return_if_fail (ctx != NULL); -#line 171 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_return_if_fail (object_dimensions != NULL); -#line 171 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_return_if_fail (object_origin != NULL); -#line 173 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp0_ = *object_dimensions; -#line 173 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - checkerboard_item_get_border_dimensions (&_tmp0_, border_width, &_tmp1_); -#line 173 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - dimensions = _tmp1_; -#line 174 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp2_ = *object_origin; -#line 174 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - checkerboard_item_get_border_origin (&_tmp2_, border_width, &_tmp3_); -#line 174 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - origin = _tmp3_; -#line 176 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp4_ = dimensions; -#line 176 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp5_ = origin; -#line 176 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - draw_rounded_corners_filled (ctx, &_tmp4_, &_tmp5_, 6.0); -#line 1660 "EventDirectoryItem.c" -} - - -static void -event_directory_item_real_paint_image (CheckerboardItem* base, - cairo_t* ctx, - GdkPixbuf* pixbuf, - GdkPoint* origin) -{ - EventDirectoryItem * self; - Dimensions dimensions = {0}; - Dimensions _tmp0_ = {0}; - Dimensions _tmp3_; - GdkPoint _tmp4_; - GdkPoint _tmp5_; - gint _tmp6_; - GdkPoint _tmp7_; - gint _tmp8_; -#line 179 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem); -#line 179 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_return_if_fail (ctx != NULL); -#line 179 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 179 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_return_if_fail (origin != NULL); -#line 181 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - dimensions_for_pixbuf (pixbuf, &_tmp0_); -#line 181 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - dimensions = _tmp0_; -#line 183 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (gdk_pixbuf_get_has_alpha (pixbuf)) { -#line 1693 "EventDirectoryItem.c" - Dimensions _tmp1_; - GdkPoint _tmp2_; -#line 184 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp1_ = dimensions; -#line 184 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp2_ = *origin; -#line 184 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - draw_rounded_corners_filled (ctx, &_tmp1_, &_tmp2_, 6.0); -#line 1702 "EventDirectoryItem.c" - } -#line 187 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp3_ = dimensions; -#line 187 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp4_ = *origin; -#line 187 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - context_rounded_corners (ctx, &_tmp3_, &_tmp4_, 6.0); -#line 188 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp5_ = *origin; -#line 188 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp6_ = _tmp5_.x; -#line 188 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp7_ = *origin; -#line 188 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp8_ = _tmp7_.y; -#line 188 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - gdk_cairo_set_source_pixbuf (ctx, pixbuf, (gdouble) _tmp6_, (gdouble) _tmp8_); -#line 189 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - cairo_paint (ctx); -#line 1722 "EventDirectoryItem.c" -} - - -static void -event_directory_item_update_comment (EventDirectoryItem* self, - gboolean init) -{ - gchar* comment = NULL; - Event* _tmp0_; - gchar* _tmp1_; - const gchar* _tmp2_; -#line 192 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_return_if_fail (IS_EVENT_DIRECTORY_ITEM (self)); -#line 193 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp0_ = self->event; -#line 193 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp1_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EVENT_SOURCE, EventSource)); -#line 193 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - comment = _tmp1_; -#line 194 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp2_ = comment; -#line 194 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (is_string_empty (_tmp2_)) { -#line 195 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - checkerboard_item_clear_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem)); -#line 1748 "EventDirectoryItem.c" - } else { -#line 196 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - if (!init) { -#line 1752 "EventDirectoryItem.c" - const gchar* _tmp3_; -#line 197 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp3_ = comment; -#line 197 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - checkerboard_item_set_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), _tmp3_, FALSE, PANGO_ALIGN_LEFT); -#line 1758 "EventDirectoryItem.c" - } else { -#line 199 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - checkerboard_item_set_comment (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_ITEM, CheckerboardItem), "", FALSE, PANGO_ALIGN_LEFT); -#line 1762 "EventDirectoryItem.c" - } - } -#line 192 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_free0 (comment); -#line 1767 "EventDirectoryItem.c" -} - - -static gint -event_directory_item_get_CROPPED_SCALE (void) -{ - gint result; -#line 10 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - result = thumbnail_cache_size_get_scale (THUMBNAIL_CACHE_SIZE_MEDIUM) + ((thumbnail_cache_size_get_scale (THUMBNAIL_CACHE_SIZE_BIG) - thumbnail_cache_size_get_scale (THUMBNAIL_CACHE_SIZE_MEDIUM)) / 2); -#line 10 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - return result; -#line 1779 "EventDirectoryItem.c" -} - - -static void -event_directory_item_class_init (EventDirectoryItemClass * klass) -{ - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - Dimensions _tmp4_ = {0}; - Scaling _tmp5_ = {0}; -#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - event_directory_item_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_type_class_add_private (klass, sizeof (EventDirectoryItemPrivate)); -#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - ((CheckerboardItemClass *) klass)->exposed = (void (*) (CheckerboardItem *)) event_directory_item_real_exposed; -#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - ((CheckerboardItemClass *) klass)->unexposed = (void (*) (CheckerboardItem *)) event_directory_item_real_unexposed; -#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - ((ThumbnailViewClass *) klass)->thumbnail_altered = (void (*) (ThumbnailView *)) event_directory_item_real_thumbnail_altered; -#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - ((CheckerboardItemClass *) klass)->paint_shadow = (void (*) (CheckerboardItem *, cairo_t*, Dimensions*, GdkPoint*, gint, gfloat)) event_directory_item_real_paint_shadow; -#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - ((CheckerboardItemClass *) klass)->paint_border = (void (*) (CheckerboardItem *, cairo_t*, Dimensions*, GdkPoint*, gint)) event_directory_item_real_paint_border; -#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - ((CheckerboardItemClass *) klass)->paint_image = (void (*) (CheckerboardItem *, cairo_t*, GdkPixbuf*, GdkPoint*)) event_directory_item_real_paint_image; -#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_event_directory_item_get_property; -#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - G_OBJECT_CLASS (klass)->finalize = event_directory_item_finalize; -#line 15 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp0_ = event_directory_item_get_CROPPED_SCALE (); -#line 15 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp1_ = _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp2_ = event_directory_item_get_CROPPED_SCALE (); -#line 15 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp3_ = _tmp2_; -#line 15 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - dimensions_init (&_tmp4_, _tmp1_, _tmp3_); -#line 15 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - scaling_to_fill_viewport (&_tmp4_, &_tmp5_); -#line 15 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - event_directory_item_squared_scaling = _tmp5_; -#line 1826 "EventDirectoryItem.c" -} - - -static void -event_directory_item_instance_init (EventDirectoryItem * self) -{ -#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - self->priv = EVENT_DIRECTORY_ITEM_GET_PRIVATE (self); -#line 20 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - memset (&self->priv->paul_lynde, 0, sizeof (GdkRectangle)); -#line 1837 "EventDirectoryItem.c" -} - - -static void -event_directory_item_finalize (GObject * obj) -{ - EventDirectoryItem * self; - EventSourceCollection* _tmp0_; - guint _tmp1_; -#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem); -#line 39 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _tmp0_ = event_global; -#line 39 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE); -#line 39 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _event_directory_item_on_events_altered_data_collection_items_altered, self); -#line 18 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - _g_object_unref0 (self->event); -#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - G_OBJECT_CLASS (event_directory_item_parent_class)->finalize (obj); -#line 1859 "EventDirectoryItem.c" -} - - -GType -event_directory_item_get_type (void) -{ - static volatile gsize event_directory_item_type_id__volatile = 0; - if (g_once_init_enter (&event_directory_item_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventDirectoryItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_directory_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventDirectoryItem), 0, (GInstanceInitFunc) event_directory_item_instance_init, NULL }; - GType event_directory_item_type_id; - event_directory_item_type_id = g_type_register_static (TYPE_CHECKERBOARD_ITEM, "EventDirectoryItem", &g_define_type_info, 0); - g_once_init_leave (&event_directory_item_type_id__volatile, event_directory_item_type_id); - } - return event_directory_item_type_id__volatile; -} - - -static void -_vala_event_directory_item_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - EventDirectoryItem * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem); -#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - switch (property_id) { -#line 1887 "EventDirectoryItem.c" - default: -#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 7 "/home/jens/Source/shotwell/src/events/EventDirectoryItem.vala" - break; -#line 1893 "EventDirectoryItem.c" - } -} - - - diff --git a/src/events/EventDirectoryItem.vala b/src/events/EventDirectoryItem.vala index f75a8e0..5b177fb 100644 --- a/src/events/EventDirectoryItem.vala +++ b/src/events/EventDirectoryItem.vala @@ -146,6 +146,10 @@ class EventDirectoryItem : CheckerboardItem { protected override void thumbnail_altered() { MediaSource media = event.get_primary_source(); + set_paul_lynde(media); + } + + private void set_paul_lynde(MediaSource media) { // get new center square paul_lynde = get_paul_lynde_rect(media); @@ -158,11 +162,23 @@ class EventDirectoryItem : CheckerboardItem { } else { clear_image(Dimensions.for_rectangle(paul_lynde)); } - + base.thumbnail_altered(); } - protected override void paint_shadow(Cairo.Context ctx, Dimensions dimensions, Gdk.Point origin, + public override void handle_mouse_leave() { + base.handle_mouse_leave(); + set_paul_lynde(event.get_primary_source()); + } + + public override void handle_mouse_motion(int x, int y, int height, int width) { + int steppedX = x - (x % 15); + int element_index = (int) Math.round( (double) steppedX / width * (event.get_media_count() - 1) ); + unowned MediaSource media = event.get_media().to_array()[element_index]; + set_paul_lynde(media); + } + + protected override void paint_shadow(Cairo.Context ctx, Dimensions dimensions, Gdk.Point origin, int radius, float initial_alpha) { Dimensions altered = Dimensions(dimensions.width - 25, dimensions.height - 25); base.paint_shadow(ctx, altered, origin, 36, initial_alpha); diff --git a/src/events/EventPage.c b/src/events/EventPage.c deleted file mode 100644 index d7da2f4..0000000 --- a/src/events/EventPage.c +++ /dev/null @@ -1,2003 +0,0 @@ -/* EventPage.c generated by valac 0.40.4, the Vala compiler - * generated from EventPage.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; -typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; - -#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ()) - -#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ()) -typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ()) -#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)) -#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) -#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER)) -#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER)) -#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) - -typedef struct _SearchViewFilter SearchViewFilter; -typedef struct _SearchViewFilterClass SearchViewFilterClass; - -#define CORE_TYPE_TRACKER (core_tracker_get_type ()) -#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) -#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) -#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) -#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) -#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) - -typedef struct _CoreTracker CoreTracker; -typedef struct _CoreTrackerClass CoreTrackerClass; - -#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) -#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) -#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) -#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) -#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) -#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) - -typedef struct _CoreViewTracker CoreViewTracker; -typedef struct _CoreViewTrackerClass CoreViewTrackerClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; -typedef struct _MediaPagePrivate MediaPagePrivate; - -#define TYPE_RATING (rating_get_type ()) - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; -typedef struct _CollectionPagePrivate CollectionPagePrivate; - -#define TYPE_EVENT_PAGE (event_page_get_type ()) -#define EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_PAGE, EventPage)) -#define EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_PAGE, EventPageClass)) -#define IS_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_PAGE)) -#define IS_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_PAGE)) -#define EVENT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_PAGE, EventPageClass)) - -typedef struct _EventPage EventPage; -typedef struct _EventPageClass EventPageClass; -typedef struct _EventPagePrivate EventPagePrivate; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_EVENT_SOURCE (event_source_get_type ()) -#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource)) -#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass)) -#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE)) -#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE)) -#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass)) - -typedef struct _EventSource EventSource; -typedef struct _EventSourceClass EventSourceClass; - -#define TYPE_EVENT (event_get_type ()) -#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event)) -#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass)) -#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT)) -#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT)) -#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass)) - -typedef struct _Event Event; -typedef struct _EventClass EventClass; -enum { - EVENT_PAGE_0_PROPERTY, - EVENT_PAGE_NUM_PROPERTIES -}; -static GParamSpec* event_page_properties[EVENT_PAGE_NUM_PROPERTIES]; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_EVENT_SOURCE_COLLECTION (event_source_collection_get_type ()) -#define EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection)) -#define EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass)) -#define IS_EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE_COLLECTION)) -#define IS_EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE_COLLECTION)) -#define EVENT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass)) - -typedef struct _EventSourceCollection EventSourceCollection; -typedef struct _EventSourceCollectionClass EventSourceCollectionClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; - -#define TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR (multi_text_entry_dialog_mediator_get_type ()) -#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediator)) -#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass)) -#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass)) - -typedef struct _MultiTextEntryDialogMediator MultiTextEntryDialogMediator; -typedef struct _MultiTextEntryDialogMediatorClass MultiTextEntryDialogMediatorClass; - -#define TYPE_EDIT_COMMENT_DIALOG (edit_comment_dialog_get_type ()) -#define EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialog)) -#define EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass)) -#define IS_EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_COMMENT_DIALOG)) -#define IS_EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_COMMENT_DIALOG)) -#define EDIT_COMMENT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass)) - -typedef struct _EditCommentDialog EditCommentDialog; -typedef struct _EditCommentDialogClass EditCommentDialogClass; -#define _multi_text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (multi_text_entry_dialog_mediator_unref (var), NULL))) - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; - -#define TYPE_SIMPLE_PROXYABLE_COMMAND (simple_proxyable_command_get_type ()) -#define SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand)) -#define SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass)) -#define IS_SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND)) -#define IS_SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND)) -#define SIMPLE_PROXYABLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass)) - -typedef struct _SimpleProxyableCommand SimpleProxyableCommand; -typedef struct _SimpleProxyableCommandClass SimpleProxyableCommandClass; - -#define TYPE_EDIT_EVENT_COMMENT_COMMAND (edit_event_comment_command_get_type ()) -#define EDIT_EVENT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommand)) -#define EDIT_EVENT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommandClass)) -#define IS_EDIT_EVENT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND)) -#define IS_EDIT_EVENT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_EVENT_COMMENT_COMMAND)) -#define EDIT_EVENT_COMMENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommandClass)) - -typedef struct _EditEventCommentCommand EditEventCommentCommand; -typedef struct _EditEventCommentCommandClass EditEventCommentCommandClass; - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; - -#define TYPE_NO_EVENT_PAGE (no_event_page_get_type ()) -#define NO_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NO_EVENT_PAGE, NoEventPage)) -#define NO_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NO_EVENT_PAGE, NoEventPageClass)) -#define IS_NO_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NO_EVENT_PAGE)) -#define IS_NO_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NO_EVENT_PAGE)) -#define NO_EVENT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NO_EVENT_PAGE, NoEventPageClass)) - -typedef struct _NoEventPage NoEventPage; -typedef struct _NoEventPageClass NoEventPageClass; -typedef struct _NoEventPagePrivate NoEventPagePrivate; -enum { - NO_EVENT_PAGE_0_PROPERTY, - NO_EVENT_PAGE_NUM_PROPERTIES -}; -static GParamSpec* no_event_page_properties[NO_EVENT_PAGE_NUM_PROPERTIES]; - -#define TYPE_VIEW_MANAGER (view_manager_get_type ()) -#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager)) -#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass)) -#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER)) -#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER)) -#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass)) - -typedef struct _ViewManager ViewManager; -typedef struct _ViewManagerClass ViewManagerClass; - -#define TYPE_COLLECTION_VIEW_MANAGER (collection_view_manager_get_type ()) -#define COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager)) -#define COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass)) -#define IS_COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_VIEW_MANAGER)) -#define IS_COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_VIEW_MANAGER)) -#define COLLECTION_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass)) - -typedef struct _CollectionViewManager CollectionViewManager; -typedef struct _CollectionViewManagerClass CollectionViewManagerClass; - -#define NO_EVENT_PAGE_TYPE_NO_EVENT_VIEW_MANAGER (no_event_page_no_event_view_manager_get_type ()) -#define NO_EVENT_PAGE_NO_EVENT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NO_EVENT_PAGE_TYPE_NO_EVENT_VIEW_MANAGER, NoEventPageNoEventViewManager)) -#define NO_EVENT_PAGE_NO_EVENT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NO_EVENT_PAGE_TYPE_NO_EVENT_VIEW_MANAGER, NoEventPageNoEventViewManagerClass)) -#define NO_EVENT_PAGE_IS_NO_EVENT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NO_EVENT_PAGE_TYPE_NO_EVENT_VIEW_MANAGER)) -#define NO_EVENT_PAGE_IS_NO_EVENT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NO_EVENT_PAGE_TYPE_NO_EVENT_VIEW_MANAGER)) -#define NO_EVENT_PAGE_NO_EVENT_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NO_EVENT_PAGE_TYPE_NO_EVENT_VIEW_MANAGER, NoEventPageNoEventViewManagerClass)) - -typedef struct _NoEventPageNoEventViewManager NoEventPageNoEventViewManager; -typedef struct _NoEventPageNoEventViewManagerClass NoEventPageNoEventViewManagerClass; - -#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ()) -#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor)) -#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) -#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) - -typedef struct _ViewCollectionMonitor ViewCollectionMonitor; -typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ()) -#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) - -typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; -typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; -#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL))) - -#define TYPE_VIDEO_SOURCE_COLLECTION (video_source_collection_get_type ()) -#define VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection)) -#define VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) -#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION)) -#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION)) -#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) - -typedef struct _VideoSourceCollection VideoSourceCollection; -typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass; -#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL))) -typedef struct _ViewManagerPrivate ViewManagerPrivate; -typedef struct _CollectionViewManagerPrivate CollectionViewManagerPrivate; -typedef struct _NoEventPageNoEventViewManagerPrivate NoEventPageNoEventViewManagerPrivate; - -#define TYPE_EVENT_ID (event_id_get_type ()) -typedef struct _EventID EventID; - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -typedef enum { - CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, - CHECKERBOARD_PAGE_ACTIVATOR_MOUSE -} CheckerboardPageActivator; - -struct _CheckerboardPageKeyboardModifiers { - gboolean ctrl_pressed; - gboolean alt_pressed; - gboolean shift_pressed; - gboolean super_pressed; -}; - -struct _CheckerboardPage { - Page parent_instance; - CheckerboardPagePrivate * priv; - CheckerboardItem* anchor; - CheckerboardItem* cursor; -}; - -struct _CheckerboardPageClass { - PageClass parent_class; - GtkMenu* (*get_item_context_menu) (CheckerboardPage* self); - gchar* (*get_view_empty_message) (CheckerboardPage* self); - gchar* (*get_filter_no_match_message) (CheckerboardPage* self); - void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers); - SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self); - CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self); - gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask); - void (*set_display_titles) (CheckerboardPage* self, gboolean display); - void (*set_display_comments) (CheckerboardPage* self, gboolean display); -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _MediaPage { - CheckerboardPage parent_instance; - MediaPagePrivate * priv; -}; - -struct _MediaPageClass { - CheckerboardPageClass parent_class; - void (*on_zoom_changed) (MediaPage* self); - void (*on_export) (MediaPage* self); - void (*on_increase_size) (MediaPage* self); - void (*on_decrease_size) (MediaPage* self); - void (*on_increase_rating) (MediaPage* self); - void (*on_decrease_rating) (MediaPage* self); - void (*on_set_rating) (MediaPage* self, Rating rating); - void (*on_rate_rejected) (MediaPage* self); - void (*on_rate_unrated) (MediaPage* self); - void (*on_rate_one) (MediaPage* self); - void (*on_rate_two) (MediaPage* self); - void (*on_rate_three) (MediaPage* self); - void (*on_rate_four) (MediaPage* self); - void (*on_rate_five) (MediaPage* self); - void (*on_move_to_trash) (MediaPage* self); - void (*on_edit_title) (MediaPage* self); - void (*on_edit_comment) (MediaPage* self); - void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by); - void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by); - void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*developer_changed) (MediaPage* self, RawDeveloper rd); - DataView* (*create_thumbnail) (MediaPage* self, DataSource* source); -}; - -struct _CollectionPage { - MediaPage parent_instance; - CollectionPagePrivate * priv; -}; - -struct _CollectionPageClass { - MediaPageClass parent_class; -}; - -struct _EventPage { - CollectionPage parent_instance; - EventPagePrivate * priv; -}; - -struct _EventPageClass { - CollectionPageClass parent_class; -}; - -struct _EventPagePrivate { - Event* page_event; -}; - -typedef DataView* (*CreateView) (DataSource* source, void* user_data); -struct _NoEventPage { - CollectionPage parent_instance; - NoEventPagePrivate * priv; -}; - -struct _NoEventPageClass { - CollectionPageClass parent_class; -}; - -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _ViewManager { - GTypeInstance parent_instance; - volatile int ref_count; - ViewManagerPrivate * priv; -}; - -struct _ViewManagerClass { - GTypeClass parent_class; - void (*finalize) (ViewManager *self); - gboolean (*include_in_view) (ViewManager* self, DataSource* source); - DataView* (*create_view) (ViewManager* self, DataSource* source); -}; - -struct _CollectionViewManager { - ViewManager parent_instance; - CollectionViewManagerPrivate * priv; -}; - -struct _CollectionViewManagerClass { - ViewManagerClass parent_class; -}; - -struct _NoEventPageNoEventViewManager { - CollectionViewManager parent_instance; - NoEventPageNoEventViewManagerPrivate * priv; -}; - -struct _NoEventPageNoEventViewManagerClass { - CollectionViewManagerClass parent_class; -}; - -struct _EventID { - gint64 id; -}; - - -static gpointer event_page_parent_class = NULL; -extern EventSourceCollection* event_global; -static gpointer no_event_page_parent_class = NULL; -static Alteration* no_event_page_no_event_page_alteration; -static Alteration* no_event_page_no_event_page_alteration = NULL; -extern LibraryPhotoSourceCollection* library_photo_global; -extern VideoSourceCollection* video_global; -static gpointer no_event_page_no_event_view_manager_parent_class = NULL; - -GType page_get_type (void) G_GNUC_CONST; -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType checkerboard_page_activator_get_type (void) G_GNUC_CONST; -GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST; -CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self); -void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self); -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -GType search_view_filter_get_type (void) G_GNUC_CONST; -gpointer core_tracker_ref (gpointer instance); -void core_tracker_unref (gpointer instance); -GParamSpec* core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void core_value_set_tracker (GValue* value, - gpointer v_object); -void core_value_take_tracker (GValue* value, - gpointer v_object); -gpointer core_value_get_tracker (const GValue* value); -GType core_tracker_get_type (void) G_GNUC_CONST; -GType core_view_tracker_get_type (void) G_GNUC_CONST; -GType media_page_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -GType raw_developer_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -GType event_page_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType event_source_get_type (void) G_GNUC_CONST; -GType event_get_type (void) G_GNUC_CONST; -#define EVENT_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EVENT_PAGE, EventPagePrivate)) -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType event_source_collection_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -static void event_page_on_events_altered (EventPage* self, - GeeMap* map); -static void _event_page_on_events_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -void view_collection_halt_mirroring (ViewCollection* self); -static void event_page_on_make_primary (EventPage* self); -static void _event_page_on_make_primary_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void event_page_on_rename (EventPage* self); -static void _event_page_on_rename_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void media_page_on_edit_comment (MediaPage* self); -static void _media_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -EventPage* event_page_new (Event* page_event); -EventPage* event_page_construct (GType object_type, - Event* page_event); -gchar* data_object_get_name (DataObject* self); -CollectionPage* collection_page_construct (GType object_type, - const gchar* page_name); -void event_mirror_photos (Event* self, - ViewCollection* view, - CreateView mirroring_ctor, - void* mirroring_ctor_target); -DataView* media_page_create_thumbnail (MediaPage* self, - DataSource* source); -static DataView* _media_page_create_thumbnail_create_view (DataSource* source, - gpointer self); -void checkerboard_page_init_page_context_menu (CheckerboardPage* self, - const gchar* path); -Event* event_page_get_event (EventPage* self); -static gboolean event_page_real_on_app_key_pressed (Page* base, - GdkEventKey* event); -gint view_collection_get_selected_count (ViewCollection* self); -gboolean page_on_app_key_pressed (Page* self, - GdkEventKey* event); -static void event_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames); -void page_init_collect_ui_filenames (Page* self, - GeeList* ui_filenames); -static void event_page_real_add_actions (Page* base, - GActionMap* map); -void page_add_actions (Page* self, - GActionMap* map); -static void event_page_real_remove_actions (Page* base, - GActionMap* map); -void page_remove_actions (Page* self, - GActionMap* map); -static void event_page_real_init_actions (Page* base, - gint selected_count, - gint count); -void page_init_actions (Page* self, - gint selected_count, - gint count); -static void event_page_real_update_actions (Page* base, - gint selected_count, - gint count); -void page_set_action_sensitive (Page* self, - const gchar* name, - gboolean sensitive); -void page_update_actions (Page* self, - gint selected_count, - gint count); -static void event_page_real_get_config_photos_sort (MediaPage* base, - gboolean* sort_order, - gint* sort_by); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -void configuration_facade_get_event_photos_sort (ConfigurationFacade* self, - gboolean* sort_order, - gint* sort_by); -static void event_page_real_set_config_photos_sort (MediaPage* base, - gboolean sort_order, - gint sort_by); -void configuration_facade_set_event_photos_sort (ConfigurationFacade* self, - gboolean sort_order, - gint sort_by); -void page_set_page_name (Page* self, - const gchar* page_name); -static void event_page_real_on_edit_comment (MediaPage* base); -gpointer multi_text_entry_dialog_mediator_ref (gpointer instance); -void multi_text_entry_dialog_mediator_unref (gpointer instance); -GParamSpec* param_spec_multi_text_entry_dialog_mediator (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_multi_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -void value_take_multi_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -gpointer value_get_multi_text_entry_dialog_mediator (const GValue* value); -GType multi_text_entry_dialog_mediator_get_type (void) G_GNUC_CONST; -GType edit_comment_dialog_get_type (void) G_GNUC_CONST; -gchar* event_source_get_comment (EventSource* self); -EditCommentDialog* edit_comment_dialog_new (const gchar* comment, - gboolean is_event); -EditCommentDialog* edit_comment_dialog_construct (GType object_type, - const gchar* comment, - gboolean is_event); -gchar* edit_comment_dialog_execute (EditCommentDialog* self); -GType command_get_type (void) G_GNUC_CONST; -GType page_command_get_type (void) G_GNUC_CONST; -GType simple_proxyable_command_get_type (void) G_GNUC_CONST; -GType edit_event_comment_command_get_type (void) G_GNUC_CONST; -EditEventCommentCommand* edit_event_comment_command_new (Event* event, - const gchar* new_comment); -EditEventCommentCommand* edit_event_comment_command_construct (GType object_type, - Event* event, - const gchar* new_comment); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* page_get_command_manager (Page* self); -void command_manager_execute (CommandManager* self, - Command* command); -GType media_source_get_type (void) G_GNUC_CONST; -gboolean event_set_primary_source (Event* self, - MediaSource* source); -DataView* view_collection_get_selected_at (ViewCollection* self, - gint index); -DataSource* data_view_get_source (DataView* self); -GType app_window_get_type (void) G_GNUC_CONST; -GType library_window_get_type (void) G_GNUC_CONST; -LibraryWindow* library_window_get_app (void); -void library_window_rename_event_in_sidebar (LibraryWindow* self, - Event* event); -static void event_page_finalize (GObject * obj); -GType no_event_page_get_type (void) G_GNUC_CONST; -Alteration* alteration_new (const gchar* subject, - const gchar* detail); -Alteration* alteration_construct (GType object_type, - const gchar* subject, - const gchar* detail); -#define NO_EVENT_PAGE_NAME _ ("No Event") -NoEventPage* no_event_page_new (void); -NoEventPage* no_event_page_construct (GType object_type); -gpointer view_manager_ref (gpointer instance); -void view_manager_unref (gpointer instance); -GParamSpec* param_spec_view_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_manager (GValue* value, - gpointer v_object); -void value_take_view_manager (GValue* value, - gpointer v_object); -gpointer value_get_view_manager (const GValue* value); -GType view_manager_get_type (void) G_GNUC_CONST; -static NoEventPageNoEventViewManager* no_event_page_no_event_view_manager_new (NoEventPage* page); -static NoEventPageNoEventViewManager* no_event_page_no_event_view_manager_construct (GType object_type, - NoEventPage* page); -GType collection_view_manager_get_type (void) G_GNUC_CONST; -static GType no_event_page_no_event_view_manager_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -gpointer view_collection_monitor_ref (gpointer instance); -void view_collection_monitor_unref (gpointer instance); -GParamSpec* view_collection_param_spec_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void view_collection_value_set_monitor (GValue* value, - gpointer v_object); -void view_collection_value_take_monitor (GValue* value, - gpointer v_object); -gpointer view_collection_value_get_monitor (const GValue* value); -GType view_collection_monitor_get_type (void) G_GNUC_CONST; -ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self, - SourceCollection* sources, - ViewManager* manager, - Alteration* prereq, - GeeCollection* initial, - ProgressMonitor progress_monitor, - void* progress_monitor_target); -GType media_source_collection_get_type (void) G_GNUC_CONST; -GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -GType video_source_collection_get_type (void) G_GNUC_CONST; -static void no_event_page_real_get_config_photos_sort (MediaPage* base, - gboolean* sort_order, - gint* sort_by); -static void no_event_page_real_set_config_photos_sort (MediaPage* base, - gboolean sort_order, - gint sort_by); -CollectionViewManager* collection_view_manager_new (CollectionPage* page); -CollectionViewManager* collection_view_manager_construct (GType object_type, - CollectionPage* page); -static gboolean no_event_page_no_event_view_manager_real_include_in_view (ViewManager* base, - DataSource* source); -GType event_id_get_type (void) G_GNUC_CONST; -EventID* event_id_dup (const EventID* self); -void event_id_free (EventID* self); -void media_source_get_event_id (MediaSource* self, - EventID* result); -#define EVENT_ID_INVALID ((gint64) -1) -gboolean view_manager_include_in_view (ViewManager* self, - DataSource* source); -static void no_event_page_finalize (GObject * obj); - -static const GActionEntry EVENT_PAGE_entries[3] = {{"MakePrimary", _event_page_on_make_primary_gsimple_action_activate_callback}, {"Rename", _event_page_on_rename_gsimple_action_activate_callback}, {"EditEventComment", _media_page_on_edit_comment_gsimple_action_activate_callback}}; - -static void -_event_page_on_events_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 40 "/home/jens/Source/shotwell/src/events/EventPage.vala" - event_page_on_events_altered ((EventPage*) self, items); -#line 1072 "EventPage.c" -} - - -static void -_event_page_on_make_primary_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 50 "/home/jens/Source/shotwell/src/events/EventPage.vala" - event_page_on_make_primary ((EventPage*) self); -#line 1083 "EventPage.c" -} - - -static void -_event_page_on_rename_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 50 "/home/jens/Source/shotwell/src/events/EventPage.vala" - event_page_on_rename ((EventPage*) self); -#line 1094 "EventPage.c" -} - - -static void -_media_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 50 "/home/jens/Source/shotwell/src/events/EventPage.vala" - media_page_on_edit_comment ((MediaPage*) self); -#line 1105 "EventPage.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 13 "/home/jens/Source/shotwell/src/events/EventPage.vala" - return self ? g_object_ref (self) : NULL; -#line 1114 "EventPage.c" -} - - -static DataView* -_media_page_create_thumbnail_create_view (DataSource* source, - gpointer self) -{ - DataView* result; - result = media_page_create_thumbnail ((MediaPage*) self, source); -#line 14 "/home/jens/Source/shotwell/src/events/EventPage.vala" - return result; -#line 1126 "EventPage.c" -} - - -EventPage* -event_page_construct (GType object_type, - Event* page_event) -{ - EventPage * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - Event* _tmp2_; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - EventSourceCollection* _tmp5_; -#line 10 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_return_val_if_fail (IS_EVENT (page_event), NULL); -#line 11 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (page_event, TYPE_DATA_OBJECT, DataObject)); -#line 11 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp1_ = _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self = (EventPage*) collection_page_construct (object_type, _tmp1_); -#line 11 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _g_free0 (_tmp1_); -#line 13 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp2_ = _g_object_ref0 (page_event); -#line 13 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _g_object_unref0 (self->priv->page_event); -#line 13 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self->priv->page_event = _tmp2_; -#line 14 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 14 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp4_ = _tmp3_; -#line 14 "/home/jens/Source/shotwell/src/events/EventPage.vala" - event_mirror_photos (page_event, _tmp4_, _media_page_create_thumbnail_create_view, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage)); -#line 14 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _data_collection_unref0 (_tmp4_); -#line 16 "/home/jens/Source/shotwell/src/events/EventPage.vala" - checkerboard_page_init_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "EventContextMenu"); -#line 18 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp5_ = event_global; -#line 18 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _event_page_on_events_altered_data_collection_items_altered, self, 0); -#line 10 "/home/jens/Source/shotwell/src/events/EventPage.vala" - return self; -#line 1173 "EventPage.c" -} - - -EventPage* -event_page_new (Event* page_event) -{ -#line 10 "/home/jens/Source/shotwell/src/events/EventPage.vala" - return event_page_construct (TYPE_EVENT_PAGE, page_event); -#line 1182 "EventPage.c" -} - - -Event* -event_page_get_event (EventPage* self) -{ - Event* result = NULL; - Event* _tmp0_; - Event* _tmp1_; -#line 21 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_return_val_if_fail (IS_EVENT_PAGE (self), NULL); -#line 22 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = self->priv->page_event; -#line 22 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 22 "/home/jens/Source/shotwell/src/events/EventPage.vala" - result = _tmp1_; -#line 22 "/home/jens/Source/shotwell/src/events/EventPage.vala" - return result; -#line 1202 "EventPage.c" -} - - -static gboolean -event_page_real_on_app_key_pressed (Page* base, - GdkEventKey* event) -{ - EventPage * self; - gboolean result = FALSE; - guint _tmp0_; - const gchar* _tmp1_; -#line 25 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage); -#line 25 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 30 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = event->keyval; -#line 30 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp1_ = gdk_keyval_name (_tmp0_); -#line 30 "/home/jens/Source/shotwell/src/events/EventPage.vala" - if (g_strcmp0 (_tmp1_, "F2") == 0) { -#line 1224 "EventPage.c" - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; - gboolean _tmp4_; -#line 31 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 31 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp3_ = _tmp2_; -#line 31 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp4_ = view_collection_get_selected_count (_tmp3_) != 1; -#line 31 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _data_collection_unref0 (_tmp3_); -#line 31 "/home/jens/Source/shotwell/src/events/EventPage.vala" - if (_tmp4_) { -#line 32 "/home/jens/Source/shotwell/src/events/EventPage.vala" - result = TRUE; -#line 32 "/home/jens/Source/shotwell/src/events/EventPage.vala" - return result; -#line 1242 "EventPage.c" - } - } -#line 36 "/home/jens/Source/shotwell/src/events/EventPage.vala" - result = PAGE_CLASS (event_page_parent_class)->on_app_key_pressed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), event); -#line 36 "/home/jens/Source/shotwell/src/events/EventPage.vala" - return result; -#line 1249 "EventPage.c" -} - - -static void -event_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames) -{ - EventPage * self; -#line 44 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage); -#line 44 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 45 "/home/jens/Source/shotwell/src/events/EventPage.vala" - PAGE_CLASS (event_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), ui_filenames); -#line 47 "/home/jens/Source/shotwell/src/events/EventPage.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "event.ui"); -#line 1266 "EventPage.c" -} - - -static void -event_page_real_add_actions (Page* base, - GActionMap* map) -{ - EventPage * self; -#line 56 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage); -#line 56 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 57 "/home/jens/Source/shotwell/src/events/EventPage.vala" - PAGE_CLASS (event_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), map); -#line 59 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_action_map_add_action_entries (map, EVENT_PAGE_entries, G_N_ELEMENTS (EVENT_PAGE_entries), self); -#line 1283 "EventPage.c" -} - - -static void -event_page_real_remove_actions (Page* base, - GActionMap* map) -{ - EventPage * self; -#line 62 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage); -#line 62 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 63 "/home/jens/Source/shotwell/src/events/EventPage.vala" - PAGE_CLASS (event_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), map); -#line 1298 "EventPage.c" - { - GActionEntry* entry_collection = NULL; - gint entry_collection_length1 = 0; - gint _entry_collection_size_ = 0; - gint entry_it = 0; -#line 64 "/home/jens/Source/shotwell/src/events/EventPage.vala" - entry_collection = EVENT_PAGE_entries; -#line 64 "/home/jens/Source/shotwell/src/events/EventPage.vala" - entry_collection_length1 = G_N_ELEMENTS (EVENT_PAGE_entries); -#line 64 "/home/jens/Source/shotwell/src/events/EventPage.vala" - for (entry_it = 0; entry_it < G_N_ELEMENTS (EVENT_PAGE_entries); entry_it = entry_it + 1) { -#line 1310 "EventPage.c" - GActionEntry entry = {0}; -#line 64 "/home/jens/Source/shotwell/src/events/EventPage.vala" - entry = entry_collection[entry_it]; -#line 1314 "EventPage.c" - { - GActionEntry _tmp0_; - const gchar* _tmp1_; -#line 65 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = entry; -#line 65 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp1_ = _tmp0_.name; -#line 65 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_action_map_remove_action (map, _tmp1_); -#line 1324 "EventPage.c" - } - } - } -} - - -static void -event_page_real_init_actions (Page* base, - gint selected_count, - gint count) -{ - EventPage * self; -#line 69 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage); -#line 70 "/home/jens/Source/shotwell/src/events/EventPage.vala" - PAGE_CLASS (event_page_parent_class)->init_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), selected_count, count); -#line 1341 "EventPage.c" -} - - -static void -event_page_real_update_actions (Page* base, - gint selected_count, - gint count) -{ - EventPage * self; -#line 73 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage); -#line 74 "/home/jens/Source/shotwell/src/events/EventPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "MakePrimary", selected_count == 1); -#line 77 "/home/jens/Source/shotwell/src/events/EventPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonJumpToEvent", FALSE); -#line 79 "/home/jens/Source/shotwell/src/events/EventPage.vala" - PAGE_CLASS (event_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), selected_count, count); -#line 83 "/home/jens/Source/shotwell/src/events/EventPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditEventComment", TRUE); -#line 1361 "EventPage.c" -} - - -static void -event_page_real_get_config_photos_sort (MediaPage* base, - gboolean* sort_order, - gint* sort_by) -{ - EventPage * self; - gboolean _vala_sort_order = FALSE; - gint _vala_sort_by = 0; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gboolean _tmp2_ = FALSE; - gint _tmp3_ = 0; -#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage); -#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp1_ = _tmp0_; -#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala" - configuration_facade_get_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp2_, &_tmp3_); -#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _vala_sort_order = _tmp2_; -#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _vala_sort_by = _tmp3_; -#line 87 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _g_object_unref0 (_tmp1_); -#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala" - if (sort_order) { -#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala" - *sort_order = _vala_sort_order; -#line 1395 "EventPage.c" - } -#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala" - if (sort_by) { -#line 86 "/home/jens/Source/shotwell/src/events/EventPage.vala" - *sort_by = _vala_sort_by; -#line 1401 "EventPage.c" - } -} - - -static void -event_page_real_set_config_photos_sort (MediaPage* base, - gboolean sort_order, - gint sort_by) -{ - EventPage * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 90 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage); -#line 91 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 91 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp1_ = _tmp0_; -#line 91 "/home/jens/Source/shotwell/src/events/EventPage.vala" - configuration_facade_set_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), sort_order, sort_by); -#line 91 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _g_object_unref0 (_tmp1_); -#line 1424 "EventPage.c" -} - - -static void -event_page_on_events_altered (EventPage* self, - GeeMap* map) -{ - Event* _tmp0_; -#line 94 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_return_if_fail (IS_EVENT_PAGE (self)); -#line 94 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_return_if_fail (GEE_IS_MAP (map)); -#line 95 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = self->priv->page_event; -#line 95 "/home/jens/Source/shotwell/src/events/EventPage.vala" - if (gee_map_has_key (map, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject))) { -#line 1441 "EventPage.c" - Event* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp1_ = self->priv->page_event; -#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp2_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject)); -#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp3_ = _tmp2_; -#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala" - page_set_page_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp3_); -#line 96 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _g_free0 (_tmp3_); -#line 1455 "EventPage.c" - } -} - - -static void -event_page_real_on_edit_comment (MediaPage* base) -{ - EventPage * self; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; -#line 99 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_PAGE, EventPage); -#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp1_ = _tmp0_; -#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _data_collection_unref0 (_tmp1_); -#line 100 "/home/jens/Source/shotwell/src/events/EventPage.vala" - if (_tmp2_) { -#line 1479 "EventPage.c" - EditCommentDialog* edit_comment_dialog = NULL; - Event* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - EditCommentDialog* _tmp6_; - EditCommentDialog* _tmp7_; - gchar* new_comment = NULL; - EditCommentDialog* _tmp8_; - gchar* _tmp9_; - const gchar* _tmp10_; - EditEventCommentCommand* command = NULL; - Event* _tmp11_; - const gchar* _tmp12_; - EditEventCommentCommand* _tmp13_; - CommandManager* _tmp14_; - CommandManager* _tmp15_; - EditEventCommentCommand* _tmp16_; -#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp3_ = self->priv->page_event; -#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp4_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_EVENT_SOURCE, EventSource)); -#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp5_ = _tmp4_; -#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp6_ = edit_comment_dialog_new (_tmp5_, TRUE); -#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp7_ = _tmp6_; -#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _g_free0 (_tmp5_); -#line 101 "/home/jens/Source/shotwell/src/events/EventPage.vala" - edit_comment_dialog = _tmp7_; -#line 103 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp8_ = edit_comment_dialog; -#line 103 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp9_ = edit_comment_dialog_execute (_tmp8_); -#line 103 "/home/jens/Source/shotwell/src/events/EventPage.vala" - new_comment = _tmp9_; -#line 104 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp10_ = new_comment; -#line 104 "/home/jens/Source/shotwell/src/events/EventPage.vala" - if (_tmp10_ == NULL) { -#line 105 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _g_free0 (new_comment); -#line 105 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog); -#line 105 "/home/jens/Source/shotwell/src/events/EventPage.vala" - return; -#line 1527 "EventPage.c" - } -#line 107 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp11_ = self->priv->page_event; -#line 107 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp12_ = new_comment; -#line 107 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp13_ = edit_event_comment_command_new (_tmp11_, _tmp12_); -#line 107 "/home/jens/Source/shotwell/src/events/EventPage.vala" - command = _tmp13_; -#line 108 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp14_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 108 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp15_ = _tmp14_; -#line 108 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp16_ = command; -#line 108 "/home/jens/Source/shotwell/src/events/EventPage.vala" - command_manager_execute (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_COMMAND, Command)); -#line 108 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _command_manager_unref0 (_tmp15_); -#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _g_object_unref0 (command); -#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _g_free0 (new_comment); -#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog); -#line 109 "/home/jens/Source/shotwell/src/events/EventPage.vala" - return; -#line 1555 "EventPage.c" - } -#line 112 "/home/jens/Source/shotwell/src/events/EventPage.vala" - MEDIA_PAGE_CLASS (event_page_parent_class)->on_edit_comment (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_MEDIA_PAGE, MediaPage)); -#line 1559 "EventPage.c" -} - - -static void -event_page_on_make_primary (EventPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - Event* _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - DataView* _tmp6_; - DataView* _tmp7_; - DataSource* _tmp8_; - MediaSource* _tmp9_; -#line 115 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_return_if_fail (IS_EVENT_PAGE (self)); -#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp1_ = _tmp0_; -#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1; -#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _data_collection_unref0 (_tmp1_); -#line 116 "/home/jens/Source/shotwell/src/events/EventPage.vala" - if (_tmp2_) { -#line 117 "/home/jens/Source/shotwell/src/events/EventPage.vala" - return; -#line 1590 "EventPage.c" - } -#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp3_ = self->priv->page_event; -#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp5_ = _tmp4_; -#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp6_ = view_collection_get_selected_at (_tmp5_, 0); -#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp7_ = _tmp6_; -#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp8_ = data_view_get_source (_tmp7_); -#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE, MediaSource); -#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" - event_set_primary_source (_tmp3_, _tmp9_); -#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _g_object_unref0 (_tmp9_); -#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _g_object_unref0 (_tmp7_); -#line 119 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _data_collection_unref0 (_tmp5_); -#line 1614 "EventPage.c" -} - - -static void -event_page_on_rename (EventPage* self) -{ - LibraryWindow* _tmp0_; - LibraryWindow* _tmp1_; - Event* _tmp2_; -#line 122 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_return_if_fail (IS_EVENT_PAGE (self)); -#line 123 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = library_window_get_app (); -#line 123 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp1_ = _tmp0_; -#line 123 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp2_ = self->priv->page_event; -#line 123 "/home/jens/Source/shotwell/src/events/EventPage.vala" - library_window_rename_event_in_sidebar (_tmp1_, _tmp2_); -#line 123 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _g_object_unref0 (_tmp1_); -#line 1636 "EventPage.c" -} - - -static void -event_page_class_init (EventPageClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" - event_page_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_type_class_add_private (klass, sizeof (EventPagePrivate)); -#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" - ((PageClass *) klass)->on_app_key_pressed = (gboolean (*) (Page *, GdkEventKey*)) event_page_real_on_app_key_pressed; -#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" - ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) event_page_real_init_collect_ui_filenames; -#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" - ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) event_page_real_add_actions; -#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" - ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) event_page_real_remove_actions; -#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" - ((PageClass *) klass)->init_actions = (void (*) (Page *, gint, gint)) event_page_real_init_actions; -#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" - ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) event_page_real_update_actions; -#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" - ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) event_page_real_get_config_photos_sort; -#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" - ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) event_page_real_set_config_photos_sort; -#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" - ((MediaPageClass *) klass)->on_edit_comment = (void (*) (MediaPage *)) event_page_real_on_edit_comment; -#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" - G_OBJECT_CLASS (klass)->finalize = event_page_finalize; -#line 1667 "EventPage.c" -} - - -static void -event_page_instance_init (EventPage * self) -{ -#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self->priv = EVENT_PAGE_GET_PRIVATE (self); -#line 1676 "EventPage.c" -} - - -static void -event_page_finalize (GObject * obj) -{ - EventPage * self; - EventSourceCollection* _tmp0_; - guint _tmp1_; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; -#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENT_PAGE, EventPage); -#line 40 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = event_global; -#line 40 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE); -#line 40 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _event_page_on_events_altered_data_collection_items_altered, self); -#line 41 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 41 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp3_ = _tmp2_; -#line 41 "/home/jens/Source/shotwell/src/events/EventPage.vala" - view_collection_halt_mirroring (_tmp3_); -#line 41 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _data_collection_unref0 (_tmp3_); -#line 8 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _g_object_unref0 (self->priv->page_event); -#line 7 "/home/jens/Source/shotwell/src/events/EventPage.vala" - G_OBJECT_CLASS (event_page_parent_class)->finalize (obj); -#line 1708 "EventPage.c" -} - - -GType -event_page_get_type (void) -{ - static volatile gsize event_page_type_id__volatile = 0; - if (g_once_init_enter (&event_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventPage), 0, (GInstanceInitFunc) event_page_instance_init, NULL }; - GType event_page_type_id; - event_page_type_id = g_type_register_static (TYPE_COLLECTION_PAGE, "EventPage", &g_define_type_info, 0); - g_once_init_leave (&event_page_type_id__volatile, event_page_type_id); - } - return event_page_type_id__volatile; -} - - -NoEventPage* -no_event_page_construct (GType object_type) -{ - NoEventPage * self = NULL; - ViewManager* filter = NULL; - NoEventPageNoEventViewManager* _tmp0_; - ViewCollection* _tmp1_; - ViewCollection* _tmp2_; - LibraryPhotoSourceCollection* _tmp3_; - Alteration* _tmp4_; - ViewCollectionMonitor* _tmp5_; - ViewCollectionMonitor* _tmp6_; - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; - VideoSourceCollection* _tmp9_; - Alteration* _tmp10_; - ViewCollectionMonitor* _tmp11_; - ViewCollectionMonitor* _tmp12_; -#line 146 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self = (NoEventPage*) collection_page_construct (object_type, NO_EVENT_PAGE_NAME); -#line 148 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = no_event_page_no_event_view_manager_new (self); -#line 148 "/home/jens/Source/shotwell/src/events/EventPage.vala" - filter = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIEW_MANAGER, ViewManager); -#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp2_ = _tmp1_; -#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp3_ = library_photo_global; -#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp4_ = no_event_page_no_event_page_alteration; -#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp5_ = view_collection_monitor_source_collection (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_COLLECTION, SourceCollection), filter, _tmp4_, NULL, NULL, NULL); -#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp6_ = _tmp5_; -#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _view_collection_monitor_unref0 (_tmp6_); -#line 149 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _data_collection_unref0 (_tmp2_); -#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp8_ = _tmp7_; -#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp9_ = video_global; -#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp10_ = no_event_page_no_event_page_alteration; -#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp11_ = view_collection_monitor_source_collection (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_SOURCE_COLLECTION, SourceCollection), filter, _tmp10_, NULL, NULL, NULL); -#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp12_ = _tmp11_; -#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _view_collection_monitor_unref0 (_tmp12_); -#line 150 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _data_collection_unref0 (_tmp8_); -#line 145 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _view_manager_unref0 (filter); -#line 145 "/home/jens/Source/shotwell/src/events/EventPage.vala" - return self; -#line 1786 "EventPage.c" -} - - -NoEventPage* -no_event_page_new (void) -{ -#line 145 "/home/jens/Source/shotwell/src/events/EventPage.vala" - return no_event_page_construct (TYPE_NO_EVENT_PAGE); -#line 1795 "EventPage.c" -} - - -static void -no_event_page_real_get_config_photos_sort (MediaPage* base, - gboolean* sort_order, - gint* sort_by) -{ - NoEventPage * self; - gboolean _vala_sort_order = FALSE; - gint _vala_sort_by = 0; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gboolean _tmp2_ = FALSE; - gint _tmp3_ = 0; -#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NO_EVENT_PAGE, NoEventPage); -#line 154 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 154 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp1_ = _tmp0_; -#line 154 "/home/jens/Source/shotwell/src/events/EventPage.vala" - configuration_facade_get_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp2_, &_tmp3_); -#line 154 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _vala_sort_order = _tmp2_; -#line 154 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _vala_sort_by = _tmp3_; -#line 154 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _g_object_unref0 (_tmp1_); -#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala" - if (sort_order) { -#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala" - *sort_order = _vala_sort_order; -#line 1829 "EventPage.c" - } -#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala" - if (sort_by) { -#line 153 "/home/jens/Source/shotwell/src/events/EventPage.vala" - *sort_by = _vala_sort_by; -#line 1835 "EventPage.c" - } -} - - -static void -no_event_page_real_set_config_photos_sort (MediaPage* base, - gboolean sort_order, - gint sort_by) -{ - NoEventPage * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 157 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NO_EVENT_PAGE, NoEventPage); -#line 158 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 158 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp1_ = _tmp0_; -#line 158 "/home/jens/Source/shotwell/src/events/EventPage.vala" - configuration_facade_set_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), sort_order, sort_by); -#line 158 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _g_object_unref0 (_tmp1_); -#line 1858 "EventPage.c" -} - - -static NoEventPageNoEventViewManager* -no_event_page_no_event_view_manager_construct (GType object_type, - NoEventPage* page) -{ - NoEventPageNoEventViewManager* self = NULL; -#line 132 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_return_val_if_fail (IS_NO_EVENT_PAGE (page), NULL); -#line 133 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self = (NoEventPageNoEventViewManager*) collection_view_manager_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_COLLECTION_PAGE, CollectionPage)); -#line 132 "/home/jens/Source/shotwell/src/events/EventPage.vala" - return self; -#line 1873 "EventPage.c" -} - - -static NoEventPageNoEventViewManager* -no_event_page_no_event_view_manager_new (NoEventPage* page) -{ -#line 132 "/home/jens/Source/shotwell/src/events/EventPage.vala" - return no_event_page_no_event_view_manager_construct (NO_EVENT_PAGE_TYPE_NO_EVENT_VIEW_MANAGER, page); -#line 1882 "EventPage.c" -} - - -static gboolean -no_event_page_no_event_view_manager_real_include_in_view (ViewManager* base, - DataSource* source) -{ - NoEventPageNoEventViewManager * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - EventID _tmp1_ = {0}; - gint64 _tmp2_; -#line 137 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, NO_EVENT_PAGE_TYPE_NO_EVENT_VIEW_MANAGER, NoEventPageNoEventViewManager); -#line 137 "/home/jens/Source/shotwell/src/events/EventPage.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala" - media_source_get_event_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), &_tmp1_); -#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp2_ = _tmp1_.id; -#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala" - if (_tmp2_ != EVENT_ID_INVALID) { -#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = FALSE; -#line 1907 "EventPage.c" - } else { -#line 139 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = VIEW_MANAGER_CLASS (no_event_page_no_event_view_manager_parent_class)->include_in_view (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager), TYPE_VIEW_MANAGER, ViewManager), source); -#line 1911 "EventPage.c" - } -#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala" - result = _tmp0_; -#line 138 "/home/jens/Source/shotwell/src/events/EventPage.vala" - return result; -#line 1917 "EventPage.c" -} - - -static void -no_event_page_no_event_view_manager_class_init (NoEventPageNoEventViewManagerClass * klass) -{ -#line 131 "/home/jens/Source/shotwell/src/events/EventPage.vala" - no_event_page_no_event_view_manager_parent_class = g_type_class_peek_parent (klass); -#line 131 "/home/jens/Source/shotwell/src/events/EventPage.vala" - ((ViewManagerClass *) klass)->include_in_view = (gboolean (*) (ViewManager *, DataSource*)) no_event_page_no_event_view_manager_real_include_in_view; -#line 1928 "EventPage.c" -} - - -static void -no_event_page_no_event_view_manager_instance_init (NoEventPageNoEventViewManager * self) -{ -} - - -static GType -no_event_page_no_event_view_manager_get_type (void) -{ - static volatile gsize no_event_page_no_event_view_manager_type_id__volatile = 0; - if (g_once_init_enter (&no_event_page_no_event_view_manager_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (NoEventPageNoEventViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) no_event_page_no_event_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NoEventPageNoEventViewManager), 0, (GInstanceInitFunc) no_event_page_no_event_view_manager_instance_init, NULL }; - GType no_event_page_no_event_view_manager_type_id; - no_event_page_no_event_view_manager_type_id = g_type_register_static (TYPE_COLLECTION_VIEW_MANAGER, "NoEventPageNoEventViewManager", &g_define_type_info, 0); - g_once_init_leave (&no_event_page_no_event_view_manager_type_id__volatile, no_event_page_no_event_view_manager_type_id); - } - return no_event_page_no_event_view_manager_type_id__volatile; -} - - -static void -no_event_page_class_init (NoEventPageClass * klass) -{ - Alteration* _tmp0_; -#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala" - no_event_page_parent_class = g_type_class_peek_parent (klass); -#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala" - ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) no_event_page_real_get_config_photos_sort; -#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala" - ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) no_event_page_real_set_config_photos_sort; -#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala" - G_OBJECT_CLASS (klass)->finalize = no_event_page_finalize; -#line 143 "/home/jens/Source/shotwell/src/events/EventPage.vala" - _tmp0_ = alteration_new ("metadata", "event"); -#line 143 "/home/jens/Source/shotwell/src/events/EventPage.vala" - no_event_page_no_event_page_alteration = _tmp0_; -#line 1968 "EventPage.c" -} - - -static void -no_event_page_instance_init (NoEventPage * self) -{ -} - - -static void -no_event_page_finalize (GObject * obj) -{ - NoEventPage * self; -#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NO_EVENT_PAGE, NoEventPage); -#line 127 "/home/jens/Source/shotwell/src/events/EventPage.vala" - G_OBJECT_CLASS (no_event_page_parent_class)->finalize (obj); -#line 1986 "EventPage.c" -} - - -GType -no_event_page_get_type (void) -{ - static volatile gsize no_event_page_type_id__volatile = 0; - if (g_once_init_enter (&no_event_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (NoEventPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) no_event_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NoEventPage), 0, (GInstanceInitFunc) no_event_page_instance_init, NULL }; - GType no_event_page_type_id; - no_event_page_type_id = g_type_register_static (TYPE_COLLECTION_PAGE, "NoEventPage", &g_define_type_info, 0); - g_once_init_leave (&no_event_page_type_id__volatile, no_event_page_type_id); - } - return no_event_page_type_id__volatile; -} - - - diff --git a/src/events/Events.c b/src/events/Events.c deleted file mode 100644 index 055b112..0000000 --- a/src/events/Events.c +++ /dev/null @@ -1,41 +0,0 @@ -/* Events.c generated by valac 0.40.4, the Vala compiler - * generated from Events.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include - - - - -void events_init (GError** error); -void events_branch_init (void); -void events_terminate (void); -void events_branch_terminate (void); - - -void -events_init (GError** error) -{ -#line 10 "/home/jens/Source/shotwell/src/events/Events.vala" - events_branch_init (); -#line 29 "Events.c" -} - - -void -events_terminate (void) -{ -#line 14 "/home/jens/Source/shotwell/src/events/Events.vala" - events_branch_terminate (); -#line 38 "Events.c" -} - - - diff --git a/src/events/EventsBranch.c b/src/events/EventsBranch.c deleted file mode 100644 index e50da5b..0000000 --- a/src/events/EventsBranch.c +++ /dev/null @@ -1,4533 +0,0 @@ -/* EventsBranch.c generated by valac 0.40.4, the Vala compiler - * generated from EventsBranch.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ()) -#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch)) -#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) -#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) - -typedef struct _SidebarBranch SidebarBranch; -typedef struct _SidebarBranchClass SidebarBranchClass; -typedef struct _SidebarBranchPrivate SidebarBranchPrivate; - -#define EVENTS_TYPE_BRANCH (events_branch_get_type ()) -#define EVENTS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_BRANCH, EventsBranch)) -#define EVENTS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_BRANCH, EventsBranchClass)) -#define EVENTS_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_BRANCH)) -#define EVENTS_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_BRANCH)) -#define EVENTS_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_BRANCH, EventsBranchClass)) - -typedef struct _EventsBranch EventsBranch; -typedef struct _EventsBranchClass EventsBranchClass; -typedef struct _EventsBranchPrivate EventsBranchPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_EVENT_SOURCE (event_source_get_type ()) -#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource)) -#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass)) -#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE)) -#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE)) -#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass)) - -typedef struct _EventSource EventSource; -typedef struct _EventSourceClass EventSourceClass; - -#define TYPE_EVENT (event_get_type ()) -#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event)) -#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass)) -#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT)) -#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT)) -#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass)) - -typedef struct _Event Event; -typedef struct _EventClass EventClass; - -#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ()) -#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) - -typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry; -typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass; - -#define EVENTS_TYPE_EVENT_ENTRY (events_event_entry_get_type ()) -#define EVENTS_EVENT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry)) -#define EVENTS_EVENT_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_EVENT_ENTRY, EventsEventEntryClass)) -#define EVENTS_IS_EVENT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_EVENT_ENTRY)) -#define EVENTS_IS_EVENT_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_EVENT_ENTRY)) -#define EVENTS_EVENT_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_EVENT_ENTRY, EventsEventEntryClass)) - -typedef struct _EventsEventEntry EventsEventEntry; -typedef struct _EventsEventEntryClass EventsEventEntryClass; - -#define EVENTS_TYPE_DIRECTORY_ENTRY (events_directory_entry_get_type ()) -#define EVENTS_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_DIRECTORY_ENTRY, EventsDirectoryEntry)) -#define EVENTS_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_DIRECTORY_ENTRY, EventsDirectoryEntryClass)) -#define EVENTS_IS_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_DIRECTORY_ENTRY)) -#define EVENTS_IS_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_DIRECTORY_ENTRY)) -#define EVENTS_DIRECTORY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_DIRECTORY_ENTRY, EventsDirectoryEntryClass)) - -typedef struct _EventsDirectoryEntry EventsDirectoryEntry; -typedef struct _EventsDirectoryEntryClass EventsDirectoryEntryClass; - -#define EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY (events_undated_directory_entry_get_type ()) -#define EVENTS_UNDATED_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY, EventsUndatedDirectoryEntry)) -#define EVENTS_UNDATED_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY, EventsUndatedDirectoryEntryClass)) -#define EVENTS_IS_UNDATED_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY)) -#define EVENTS_IS_UNDATED_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY)) -#define EVENTS_UNDATED_DIRECTORY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY, EventsUndatedDirectoryEntryClass)) - -typedef struct _EventsUndatedDirectoryEntry EventsUndatedDirectoryEntry; -typedef struct _EventsUndatedDirectoryEntryClass EventsUndatedDirectoryEntryClass; - -#define EVENTS_TYPE_NO_EVENT_ENTRY (events_no_event_entry_get_type ()) -#define EVENTS_NO_EVENT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_NO_EVENT_ENTRY, EventsNoEventEntry)) -#define EVENTS_NO_EVENT_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_NO_EVENT_ENTRY, EventsNoEventEntryClass)) -#define EVENTS_IS_NO_EVENT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_NO_EVENT_ENTRY)) -#define EVENTS_IS_NO_EVENT_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_NO_EVENT_ENTRY)) -#define EVENTS_NO_EVENT_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_NO_EVENT_ENTRY, EventsNoEventEntryClass)) - -typedef struct _EventsNoEventEntry EventsNoEventEntry; -typedef struct _EventsNoEventEntryClass EventsNoEventEntryClass; - -#define EVENTS_TYPE_MASTER_DIRECTORY_ENTRY (events_master_directory_entry_get_type ()) -#define EVENTS_MASTER_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntry)) -#define EVENTS_MASTER_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntryClass)) -#define EVENTS_IS_MASTER_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY)) -#define EVENTS_IS_MASTER_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY)) -#define EVENTS_MASTER_DIRECTORY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntryClass)) - -typedef struct _EventsMasterDirectoryEntry EventsMasterDirectoryEntry; -typedef struct _EventsMasterDirectoryEntryClass EventsMasterDirectoryEntryClass; -enum { - EVENTS_BRANCH_0_PROPERTY, - EVENTS_BRANCH_NUM_PROPERTIES -}; -static GParamSpec* events_branch_properties[EVENTS_BRANCH_NUM_PROPERTIES]; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_EVENT_SOURCE_COLLECTION (event_source_collection_get_type ()) -#define EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection)) -#define EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass)) -#define IS_EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE_COLLECTION)) -#define IS_EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE_COLLECTION)) -#define EVENT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass)) - -typedef struct _EventSourceCollection EventSourceCollection; -typedef struct _EventSourceCollectionClass EventSourceCollectionClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define SIDEBAR_TYPE_GROUPING (sidebar_grouping_get_type ()) -#define SIDEBAR_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_GROUPING, SidebarGrouping)) -#define SIDEBAR_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass)) -#define SIDEBAR_IS_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_GROUPING)) -#define SIDEBAR_IS_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_GROUPING)) -#define SIDEBAR_GROUPING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass)) - -typedef struct _SidebarGrouping SidebarGrouping; -typedef struct _SidebarGroupingClass SidebarGroupingClass; - -#define SIDEBAR_TYPE_HEADER (sidebar_header_get_type ()) -#define SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_HEADER, SidebarHeader)) -#define SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_HEADER, SidebarHeaderClass)) -#define SIDEBAR_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_HEADER)) -#define SIDEBAR_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_HEADER)) -#define SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_HEADER, SidebarHeaderClass)) - -typedef struct _SidebarHeader SidebarHeader; -typedef struct _SidebarHeaderClass SidebarHeaderClass; - -#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ()) -#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry)) -#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY)) -#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface)) - -typedef struct _SidebarEntry SidebarEntry; -typedef struct _SidebarEntryIface SidebarEntryIface; - -#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ()) -#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree)) -#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass)) -#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass)) - -typedef struct _SidebarTree SidebarTree; -typedef struct _SidebarTreeClass SidebarTreeClass; - -#define SIDEBAR_BRANCH_TYPE_OPTIONS (sidebar_branch_options_get_type ()) - -#define EVENTS_TYPE_YEAR_DIRECTORY_ENTRY (events_year_directory_entry_get_type ()) -#define EVENTS_YEAR_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntry)) -#define EVENTS_YEAR_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntryClass)) -#define EVENTS_IS_YEAR_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_YEAR_DIRECTORY_ENTRY)) -#define EVENTS_IS_YEAR_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_YEAR_DIRECTORY_ENTRY)) -#define EVENTS_YEAR_DIRECTORY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntryClass)) - -typedef struct _EventsYearDirectoryEntry EventsYearDirectoryEntry; -typedef struct _EventsYearDirectoryEntryClass EventsYearDirectoryEntryClass; - -#define EVENTS_TYPE_MONTH_DIRECTORY_ENTRY (events_month_directory_entry_get_type ()) -#define EVENTS_MONTH_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntry)) -#define EVENTS_MONTH_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntryClass)) -#define EVENTS_IS_MONTH_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_MONTH_DIRECTORY_ENTRY)) -#define EVENTS_IS_MONTH_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_MONTH_DIRECTORY_ENTRY)) -#define EVENTS_MONTH_DIRECTORY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntryClass)) - -typedef struct _EventsMonthDirectoryEntry EventsMonthDirectoryEntry; -typedef struct _EventsMonthDirectoryEntryClass EventsMonthDirectoryEntryClass; - -#define TYPE_EVENT_ID (event_id_get_type ()) -typedef struct _EventID EventID; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define SIDEBAR_TYPE_RENAMEABLE_ENTRY (sidebar_renameable_entry_get_type ()) -#define SIDEBAR_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry)) -#define SIDEBAR_IS_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY)) -#define SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntryIface)) - -typedef struct _SidebarRenameableEntry SidebarRenameableEntry; -typedef struct _SidebarRenameableEntryIface SidebarRenameableEntryIface; -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) -typedef struct _Block8Data Block8Data; -typedef struct _Block9Data Block9Data; - -#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ()) -#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry)) -#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY)) -#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface)) - -typedef struct _SidebarSelectableEntry SidebarSelectableEntry; -typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface; - -#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ()) -#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)) -#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE)) -#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface)) - -typedef struct _SidebarPageRepresentative SidebarPageRepresentative; -typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ()) -#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable)) -#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE)) -#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface)) - -typedef struct _SidebarContextable SidebarContextable; -typedef struct _SidebarContextableIface SidebarContextableIface; -typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate; - -#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ()) -#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry)) -#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY)) -#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface)) - -typedef struct _SidebarExpandableEntry SidebarExpandableEntry; -typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface; -typedef struct _EventsDirectoryEntryPrivate EventsDirectoryEntryPrivate; -enum { - EVENTS_DIRECTORY_ENTRY_0_PROPERTY, - EVENTS_DIRECTORY_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* events_directory_entry_properties[EVENTS_DIRECTORY_ENTRY_NUM_PROPERTIES]; -typedef struct _EventsMasterDirectoryEntryPrivate EventsMasterDirectoryEntryPrivate; -enum { - EVENTS_MASTER_DIRECTORY_ENTRY_0_PROPERTY, - EVENTS_MASTER_DIRECTORY_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* events_master_directory_entry_properties[EVENTS_MASTER_DIRECTORY_ENTRY_NUM_PROPERTIES]; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; - -#define TYPE_EVENTS_DIRECTORY_PAGE (events_directory_page_get_type ()) -#define EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage)) -#define EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPageClass)) -#define IS_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENTS_DIRECTORY_PAGE)) -#define IS_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENTS_DIRECTORY_PAGE)) -#define EVENTS_DIRECTORY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPageClass)) - -typedef struct _EventsDirectoryPage EventsDirectoryPage; -typedef struct _EventsDirectoryPageClass EventsDirectoryPageClass; - -#define TYPE_MASTER_EVENTS_DIRECTORY_PAGE (master_events_directory_page_get_type ()) -#define MASTER_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MASTER_EVENTS_DIRECTORY_PAGE, MasterEventsDirectoryPage)) -#define MASTER_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MASTER_EVENTS_DIRECTORY_PAGE, MasterEventsDirectoryPageClass)) -#define IS_MASTER_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MASTER_EVENTS_DIRECTORY_PAGE)) -#define IS_MASTER_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MASTER_EVENTS_DIRECTORY_PAGE)) -#define MASTER_EVENTS_DIRECTORY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MASTER_EVENTS_DIRECTORY_PAGE, MasterEventsDirectoryPageClass)) - -typedef struct _MasterEventsDirectoryPage MasterEventsDirectoryPage; -typedef struct _MasterEventsDirectoryPageClass MasterEventsDirectoryPageClass; -typedef struct _EventsYearDirectoryEntryPrivate EventsYearDirectoryEntryPrivate; -enum { - EVENTS_YEAR_DIRECTORY_ENTRY_0_PROPERTY, - EVENTS_YEAR_DIRECTORY_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* events_year_directory_entry_properties[EVENTS_YEAR_DIRECTORY_ENTRY_NUM_PROPERTIES]; - -#define SUB_EVENTS_DIRECTORY_PAGE_TYPE_DIRECTORY_TYPE (sub_events_directory_page_directory_type_get_type ()) - -#define TYPE_SUB_EVENTS_DIRECTORY_PAGE (sub_events_directory_page_get_type ()) -#define SUB_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SUB_EVENTS_DIRECTORY_PAGE, SubEventsDirectoryPage)) -#define SUB_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SUB_EVENTS_DIRECTORY_PAGE, SubEventsDirectoryPageClass)) -#define IS_SUB_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SUB_EVENTS_DIRECTORY_PAGE)) -#define IS_SUB_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SUB_EVENTS_DIRECTORY_PAGE)) -#define SUB_EVENTS_DIRECTORY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SUB_EVENTS_DIRECTORY_PAGE, SubEventsDirectoryPageClass)) - -typedef struct _SubEventsDirectoryPage SubEventsDirectoryPage; -typedef struct _SubEventsDirectoryPageClass SubEventsDirectoryPageClass; -typedef struct _EventsMonthDirectoryEntryPrivate EventsMonthDirectoryEntryPrivate; -enum { - EVENTS_MONTH_DIRECTORY_ENTRY_0_PROPERTY, - EVENTS_MONTH_DIRECTORY_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* events_month_directory_entry_properties[EVENTS_MONTH_DIRECTORY_ENTRY_NUM_PROPERTIES]; -typedef struct _EventsUndatedDirectoryEntryPrivate EventsUndatedDirectoryEntryPrivate; -enum { - EVENTS_UNDATED_DIRECTORY_ENTRY_0_PROPERTY, - EVENTS_UNDATED_DIRECTORY_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* events_undated_directory_entry_properties[EVENTS_UNDATED_DIRECTORY_ENTRY_NUM_PROPERTIES]; - -#define SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY (sidebar_internal_drop_target_entry_get_type ()) -#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntry)) -#define SIDEBAR_IS_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY)) -#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntryIface)) - -typedef struct _SidebarInternalDropTargetEntry SidebarInternalDropTargetEntry; -typedef struct _SidebarInternalDropTargetEntryIface SidebarInternalDropTargetEntryIface; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; -typedef struct _EventsEventEntryPrivate EventsEventEntryPrivate; -enum { - EVENTS_EVENT_ENTRY_0_PROPERTY, - EVENTS_EVENT_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* events_event_entry_properties[EVENTS_EVENT_ENTRY_NUM_PROPERTIES]; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; - -#define TYPE_EVENT_PAGE (event_page_get_type ()) -#define EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_PAGE, EventPage)) -#define EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_PAGE, EventPageClass)) -#define IS_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_PAGE)) -#define IS_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_PAGE)) -#define EVENT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_PAGE, EventPageClass)) - -typedef struct _EventPage EventPage; -typedef struct _EventPageClass EventPageClass; - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; - -#define TYPE_SIMPLE_PROXYABLE_COMMAND (simple_proxyable_command_get_type ()) -#define SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand)) -#define SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass)) -#define IS_SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND)) -#define IS_SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND)) -#define SIMPLE_PROXYABLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass)) - -typedef struct _SimpleProxyableCommand SimpleProxyableCommand; -typedef struct _SimpleProxyableCommandClass SimpleProxyableCommandClass; - -#define TYPE_RENAME_EVENT_COMMAND (rename_event_command_get_type ()) -#define RENAME_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RENAME_EVENT_COMMAND, RenameEventCommand)) -#define RENAME_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RENAME_EVENT_COMMAND, RenameEventCommandClass)) -#define IS_RENAME_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RENAME_EVENT_COMMAND)) -#define IS_RENAME_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RENAME_EVENT_COMMAND)) -#define RENAME_EVENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RENAME_EVENT_COMMAND, RenameEventCommandClass)) - -typedef struct _RenameEventCommand RenameEventCommand; -typedef struct _RenameEventCommandClass RenameEventCommandClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_MOVE_PHOTOS_COMMAND (move_photos_command_get_type ()) -#define MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)) -#define MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass)) -#define IS_MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MOVE_PHOTOS_COMMAND)) -#define IS_MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MOVE_PHOTOS_COMMAND)) -#define MOVE_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass)) - -typedef struct _MovePhotosCommand MovePhotosCommand; -typedef struct _MovePhotosCommandClass MovePhotosCommandClass; - -#define TYPE_SET_EVENT_COMMAND (set_event_command_get_type ()) -#define SET_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_EVENT_COMMAND, SetEventCommand)) -#define SET_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_EVENT_COMMAND, SetEventCommandClass)) -#define IS_SET_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_EVENT_COMMAND)) -#define IS_SET_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_EVENT_COMMAND)) -#define SET_EVENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_EVENT_COMMAND, SetEventCommandClass)) - -typedef struct _SetEventCommand SetEventCommand; -typedef struct _SetEventCommandClass SetEventCommandClass; -typedef struct _EventsNoEventEntryPrivate EventsNoEventEntryPrivate; -enum { - EVENTS_NO_EVENT_ENTRY_0_PROPERTY, - EVENTS_NO_EVENT_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* events_no_event_entry_properties[EVENTS_NO_EVENT_ENTRY_NUM_PROPERTIES]; - -#define TYPE_NO_EVENT_PAGE (no_event_page_get_type ()) -#define NO_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NO_EVENT_PAGE, NoEventPage)) -#define NO_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NO_EVENT_PAGE, NoEventPageClass)) -#define IS_NO_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NO_EVENT_PAGE)) -#define IS_NO_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NO_EVENT_PAGE)) -#define NO_EVENT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NO_EVENT_PAGE, NoEventPageClass)) - -typedef struct _NoEventPage NoEventPage; -typedef struct _NoEventPageClass NoEventPageClass; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _SidebarBranch { - GObject parent_instance; - SidebarBranchPrivate * priv; -}; - -struct _SidebarBranchClass { - GObjectClass parent_class; -}; - -struct _EventsBranch { - SidebarBranch parent_instance; - EventsBranchPrivate * priv; -}; - -struct _EventsBranchClass { - SidebarBranchClass parent_class; -}; - -struct _EventsBranchPrivate { - GeeHashMap* entry_map; - EventsUndatedDirectoryEntry* undated_entry; - EventsNoEventEntry* no_event_entry; - EventsMasterDirectoryEntry* all_events_entry; -}; - -struct _SidebarEntryIface { - GTypeInterface parent_iface; - gchar* (*get_sidebar_name) (SidebarEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarEntry* self); - gchar* (*get_sidebar_icon) (SidebarEntry* self); - gchar* (*to_string) (SidebarEntry* self); - void (*grafted) (SidebarEntry* self, SidebarTree* tree); - void (*pruned) (SidebarEntry* self, SidebarTree* tree); -}; - -typedef enum { - SIDEBAR_BRANCH_OPTIONS_NONE = 0, - SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY = 1 << 0, - SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD = 1 << 1, - SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD = 1 << 2, - SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING = 1 << 3 -} SidebarBranchOptions; - -struct _EventID { - gint64 id; -}; - -struct _SidebarRenameableEntryIface { - GTypeInterface parent_iface; - void (*rename) (SidebarRenameableEntry* self, const gchar* new_name); - gboolean (*is_user_renameable) (SidebarRenameableEntry* self); -}; - -struct _Block8Data { - int _ref_count_; - EventsBranch* self; - gint event_month; -}; - -typedef gboolean (*Locator) (gconstpointer item, void* user_data); -struct _Block9Data { - int _ref_count_; - EventsBranch* self; - gint event_year; -}; - -struct _SidebarSelectableEntryIface { - GTypeInterface parent_iface; -}; - -struct _SidebarPageRepresentativeIface { - GTypeInterface parent_iface; - gboolean (*has_page) (SidebarPageRepresentative* self); - Page* (*get_page) (SidebarPageRepresentative* self); -}; - -struct _SidebarContextableIface { - GTypeInterface parent_iface; - GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event); -}; - -struct _SidebarSimplePageEntry { - GObject parent_instance; - SidebarSimplePageEntryPrivate * priv; -}; - -struct _SidebarSimplePageEntryClass { - GObjectClass parent_class; - gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self); - gchar* (*to_string) (SidebarSimplePageEntry* self); - Page* (*create_page) (SidebarSimplePageEntry* self); -}; - -struct _SidebarExpandableEntryIface { - GTypeInterface parent_iface; - gboolean (*expand_on_select) (SidebarExpandableEntry* self); -}; - -struct _EventsDirectoryEntry { - SidebarSimplePageEntry parent_instance; - EventsDirectoryEntryPrivate * priv; -}; - -struct _EventsDirectoryEntryClass { - SidebarSimplePageEntryClass parent_class; -}; - -struct _EventsMasterDirectoryEntry { - EventsDirectoryEntry parent_instance; - EventsMasterDirectoryEntryPrivate * priv; -}; - -struct _EventsMasterDirectoryEntryClass { - EventsDirectoryEntryClass parent_class; -}; - -struct _EventsYearDirectoryEntry { - EventsDirectoryEntry parent_instance; - EventsYearDirectoryEntryPrivate * priv; -}; - -struct _EventsYearDirectoryEntryClass { - EventsDirectoryEntryClass parent_class; -}; - -struct _EventsYearDirectoryEntryPrivate { - gchar* name; - struct tm tm; -}; - -typedef enum { - SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_YEAR, - SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_MONTH, - SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_UNDATED -} SubEventsDirectoryPageDirectoryType; - -struct _EventsMonthDirectoryEntry { - EventsDirectoryEntry parent_instance; - EventsMonthDirectoryEntryPrivate * priv; -}; - -struct _EventsMonthDirectoryEntryClass { - EventsDirectoryEntryClass parent_class; -}; - -struct _EventsMonthDirectoryEntryPrivate { - gchar* name; - struct tm tm; -}; - -struct _EventsUndatedDirectoryEntry { - EventsDirectoryEntry parent_instance; - EventsUndatedDirectoryEntryPrivate * priv; -}; - -struct _EventsUndatedDirectoryEntryClass { - EventsDirectoryEntryClass parent_class; -}; - -struct _SidebarInternalDropTargetEntryIface { - GTypeInterface parent_iface; - gboolean (*internal_drop_received) (SidebarInternalDropTargetEntry* self, GeeList* sources); - gboolean (*internal_drop_received_arbitrary) (SidebarInternalDropTargetEntry* self, GtkSelectionData* data); -}; - -struct _EventsEventEntry { - SidebarSimplePageEntry parent_instance; - EventsEventEntryPrivate * priv; -}; - -struct _EventsEventEntryClass { - SidebarSimplePageEntryClass parent_class; -}; - -struct _EventsEventEntryPrivate { - Event* event; -}; - -struct _EventsNoEventEntry { - SidebarSimplePageEntry parent_instance; - EventsNoEventEntryPrivate * priv; -}; - -struct _EventsNoEventEntryClass { - SidebarSimplePageEntryClass parent_class; -}; - - -static gpointer events_branch_parent_class = NULL; -extern EventSourceCollection* event_global; -extern gchar* events_branch_icon; -gchar* events_branch_icon = NULL; -extern gchar* events_branch_events_icon; -gchar* events_branch_events_icon = NULL; -extern gchar* events_branch_single_event_icon; -gchar* events_branch_single_event_icon = NULL; -extern gchar* events_branch_no_event_icon; -gchar* events_branch_no_event_icon = NULL; -static gboolean events_branch_sort_ascending; -static gboolean events_branch_sort_ascending = FALSE; -static gpointer events_directory_entry_parent_class = NULL; -static SidebarExpandableEntryIface * events_directory_entry_sidebar_expandable_entry_parent_iface = NULL; -static gpointer events_master_directory_entry_parent_class = NULL; -static gpointer events_year_directory_entry_parent_class = NULL; -static gpointer events_month_directory_entry_parent_class = NULL; -static gpointer events_undated_directory_entry_parent_class = NULL; -static gpointer events_event_entry_parent_class = NULL; -static SidebarRenameableEntryIface * events_event_entry_sidebar_renameable_entry_parent_iface = NULL; -static SidebarInternalDropTargetEntryIface * events_event_entry_sidebar_internal_drop_target_entry_parent_iface = NULL; -static gpointer events_no_event_entry_parent_class = NULL; - -GType sidebar_branch_get_type (void) G_GNUC_CONST; -GType events_branch_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType event_source_get_type (void) G_GNUC_CONST; -GType event_get_type (void) G_GNUC_CONST; -GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST; -GType events_event_entry_get_type (void) G_GNUC_CONST; -GType events_directory_entry_get_type (void) G_GNUC_CONST; -GType events_undated_directory_entry_get_type (void) G_GNUC_CONST; -GType events_no_event_entry_get_type (void) G_GNUC_CONST; -GType events_master_directory_entry_get_type (void) G_GNUC_CONST; -#define EVENTS_BRANCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EVENTS_TYPE_BRANCH, EventsBranchPrivate)) -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType event_source_collection_get_type (void) G_GNUC_CONST; -static void events_branch_on_events_added_removed (EventsBranch* self, - GeeIterable* added, - GeeIterable* removed); -static void _events_branch_on_events_added_removed_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self); -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -static void events_branch_on_events_altered (EventsBranch* self, - GeeMap* altered); -static void _events_branch_on_events_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -static void events_branch_on_no_event_collection_altered (EventsBranch* self); -static void _events_branch_on_no_event_collection_altered_event_source_collection_no_event_collection_altered (EventSourceCollection* _sender, - gpointer self); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -static void events_branch_on_config_changed (EventsBranch* self); -static void _events_branch_on_config_changed_configuration_facade_events_sort_ascending_changed (ConfigurationFacade* _sender, - gpointer self); -#define RESOURCES_ICON_FOLDER "folder" -#define RESOURCES_ICON_EVENTS "multiple-events" -#define RESOURCES_ICON_ONE_EVENT "one-event" -#define RESOURCES_ICON_NO_EVENT "no-event" -EventsUndatedDirectoryEntry* events_undated_directory_entry_new (void); -EventsUndatedDirectoryEntry* events_undated_directory_entry_construct (GType object_type); -EventsNoEventEntry* events_no_event_entry_new (void); -EventsNoEventEntry* events_no_event_entry_construct (GType object_type); -EventsMasterDirectoryEntry* events_master_directory_entry_new (void); -EventsMasterDirectoryEntry* events_master_directory_entry_construct (GType object_type); -EventsBranch* events_branch_new (void); -EventsBranch* events_branch_construct (GType object_type); -SidebarHeader* sidebar_header_new (const gchar* name, - const gchar* tooltip, - gboolean emphasized); -SidebarHeader* sidebar_header_construct (GType object_type, - const gchar* name, - const gchar* tooltip, - gboolean emphasized); -GType sidebar_grouping_get_type (void) G_GNUC_CONST; -GType sidebar_header_get_type (void) G_GNUC_CONST; -GType sidebar_tree_get_type (void) G_GNUC_CONST; -GType sidebar_entry_get_type (void) G_GNUC_CONST; -GType sidebar_branch_options_get_type (void) G_GNUC_CONST; -static gint events_branch_event_year_comparator (SidebarEntry* a, - SidebarEntry* b); -static gint _events_branch_event_year_comparator_gcompare_func (gconstpointer a, - gconstpointer b); -SidebarBranch* sidebar_branch_new (SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator); -SidebarBranch* sidebar_branch_construct (GType object_type, - SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator); -void sidebar_branch_graft (SidebarBranch* self, - SidebarEntry* parent, - SidebarEntry* entry, - GCompareFunc comparator); -SidebarEntry* sidebar_branch_get_root (SidebarBranch* self); -GeeCollection* data_collection_get_all (DataCollection* self); -static void events_branch_add_event (EventsBranch* self, - Event* event); -static void events_branch_show_no_events (EventsBranch* self, - gboolean show); -GeeCollection* event_source_collection_get_no_event_objects (EventSourceCollection* self); -void events_branch_init (void); -gboolean configuration_facade_get_events_sort_ascending (ConfigurationFacade* self); -void events_branch_terminate (void); -gboolean events_branch_is_user_renameable (EventsBranch* self); -EventsMasterDirectoryEntry* events_branch_get_master_entry (EventsBranch* self); -GType events_year_directory_entry_get_type (void) G_GNUC_CONST; -gint events_year_directory_entry_get_year (EventsYearDirectoryEntry* self); -static gint events_branch_event_month_comparator (SidebarEntry* a, - SidebarEntry* b); -GType events_month_directory_entry_get_type (void) G_GNUC_CONST; -gint events_month_directory_entry_get_month (EventsMonthDirectoryEntry* self); -static gint events_branch_event_comparator (SidebarEntry* a, - SidebarEntry* b); -Event* events_event_entry_get_event (EventsEventEntry* self); -time_t event_source_get_start_time (EventSource* self); -GType event_id_get_type (void) G_GNUC_CONST; -EventID* event_id_dup (const EventID* self); -void event_id_free (EventID* self); -void event_get_event_id (Event* self, - EventID* result); -static gint events_branch_undated_event_comparator (SidebarEntry* a, - SidebarEntry* b); -gchar* data_object_get_name (DataObject* self); -gint64 data_source_get_instance_id (DataSource* self); -EventsEventEntry* events_branch_get_entry_for_event (EventsBranch* self, - Event* event); -void sidebar_branch_reorder_all (SidebarBranch* self); -static void events_branch_remove_event (EventsBranch* self, - Event* event); -gboolean alteration_has_detail (Alteration* self, - const gchar* subject, - const gchar* detail); -static void events_branch_move_event (EventsBranch* self, - Event* event); -GType sidebar_renameable_entry_get_type (void) G_GNUC_CONST; -static void events_branch_add_undated_event (EventsBranch* self, - Event* event); -static SidebarEntry* events_branch_find_event_month (EventsBranch* self, - Event* event, - struct tm* event_tm, - SidebarEntry* * found_year); -static void events_branch_graft_event (EventsBranch* self, - SidebarEntry* parent, - Event* event, - GCompareFunc comparator); -static gint _events_branch_event_comparator_gcompare_func (gconstpointer a, - gconstpointer b); -#define SUB_EVENTS_DIRECTORY_PAGE_YEAR_FORMAT _ ("%Y") -EventsYearDirectoryEntry* events_year_directory_entry_new (const gchar* name, - struct tm* tm); -EventsYearDirectoryEntry* events_year_directory_entry_construct (GType object_type, - const gchar* name, - struct tm* tm); -static gint _events_branch_event_month_comparator_gcompare_func (gconstpointer a, - gconstpointer b); -#define SUB_EVENTS_DIRECTORY_PAGE_MONTH_FORMAT _ ("%B") -EventsMonthDirectoryEntry* events_month_directory_entry_new (const gchar* name, - struct tm* tm); -EventsMonthDirectoryEntry* events_month_directory_entry_construct (GType object_type, - const gchar* name, - struct tm* tm); -static void events_branch_move_to_undated_event (EventsBranch* self, - Event* event); -static void events_branch_reparent_event (EventsBranch* self, - Event* event, - SidebarEntry* new_parent); -SidebarEntry* sidebar_branch_get_parent (SidebarBranch* self, - SidebarEntry* entry); -void sidebar_branch_prune (SidebarBranch* self, - SidebarEntry* entry); -gint sidebar_branch_get_child_count (SidebarBranch* self, - SidebarEntry* parent); -static Block8Data* block8_data_ref (Block8Data* _data8_); -static void block8_data_unref (void * _userdata_); -static SidebarEntry* events_branch_find_event_year (EventsBranch* self, - Event* event, - struct tm* event_tm); -SidebarEntry* sidebar_branch_find_first_child (SidebarBranch* self, - SidebarEntry* parent, - Locator locator, - void* locator_target); -static gboolean __lambda21_ (Block8Data* _data8_, - SidebarEntry* entry); -static gboolean ___lambda21__locator (gconstpointer item, - gpointer self); -static Block9Data* block9_data_ref (Block9Data* _data9_); -static void block9_data_unref (void * _userdata_); -static gboolean __lambda20_ (Block9Data* _data9_, - SidebarEntry* entry); -static gboolean ___lambda20__locator (gconstpointer item, - gpointer self); -gboolean sidebar_branch_has_entry (SidebarBranch* self, - SidebarEntry* entry); -static gint _events_branch_undated_event_comparator_gcompare_func (gconstpointer a, - gconstpointer b); -EventsEventEntry* events_event_entry_new (Event* event); -EventsEventEntry* events_event_entry_construct (GType object_type, - Event* event); -void sidebar_branch_reparent (SidebarBranch* self, - SidebarEntry* new_parent, - SidebarEntry* entry); -static void events_branch_finalize (GObject * obj); -GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType sidebar_page_representative_get_type (void) G_GNUC_CONST; -GType sidebar_contextable_get_type (void) G_GNUC_CONST; -GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST; -EventsDirectoryEntry* events_directory_entry_construct (GType object_type); -SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type); -static gchar* events_directory_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base); -static gboolean events_directory_entry_real_expand_on_select (SidebarExpandableEntry* base); -static gchar* events_master_directory_entry_real_get_sidebar_name (SidebarSimplePageEntry* base); -#define MASTER_EVENTS_DIRECTORY_PAGE_NAME _ ("All Events") -static gchar* events_master_directory_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base); -static Page* events_master_directory_entry_real_create_page (SidebarSimplePageEntry* base); -MasterEventsDirectoryPage* master_events_directory_page_new (void); -MasterEventsDirectoryPage* master_events_directory_page_construct (GType object_type); -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType events_directory_page_get_type (void) G_GNUC_CONST; -GType master_events_directory_page_get_type (void) G_GNUC_CONST; -#define EVENTS_YEAR_DIRECTORY_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntryPrivate)) -static gchar* events_year_directory_entry_real_get_sidebar_name (SidebarSimplePageEntry* base); -static Page* events_year_directory_entry_real_create_page (SidebarSimplePageEntry* base); -GType sub_events_directory_page_directory_type_get_type (void) G_GNUC_CONST; -SubEventsDirectoryPage* sub_events_directory_page_new (SubEventsDirectoryPageDirectoryType type, - struct tm* time); -SubEventsDirectoryPage* sub_events_directory_page_construct (GType object_type, - SubEventsDirectoryPageDirectoryType type, - struct tm* time); -GType sub_events_directory_page_get_type (void) G_GNUC_CONST; -static void events_year_directory_entry_finalize (GObject * obj); -#define EVENTS_MONTH_DIRECTORY_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntryPrivate)) -static gchar* events_month_directory_entry_real_get_sidebar_name (SidebarSimplePageEntry* base); -gint events_month_directory_entry_get_year (EventsMonthDirectoryEntry* self); -static Page* events_month_directory_entry_real_create_page (SidebarSimplePageEntry* base); -static void events_month_directory_entry_finalize (GObject * obj); -static gchar* events_undated_directory_entry_real_get_sidebar_name (SidebarSimplePageEntry* base); -#define SUB_EVENTS_DIRECTORY_PAGE_UNDATED_PAGE_NAME _ ("Undated") -static Page* events_undated_directory_entry_real_create_page (SidebarSimplePageEntry* base); -GType media_source_get_type (void) G_GNUC_CONST; -GType sidebar_internal_drop_target_entry_get_type (void) G_GNUC_CONST; -#define EVENTS_EVENT_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EVENTS_TYPE_EVENT_ENTRY, EventsEventEntryPrivate)) -static gchar* events_event_entry_real_get_sidebar_name (SidebarSimplePageEntry* base); -static gchar* events_event_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base); -static Page* events_event_entry_real_create_page (SidebarSimplePageEntry* base); -EventPage* event_page_new (Event* page_event); -EventPage* event_page_construct (GType object_type, - Event* page_event); -GType media_page_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -GType event_page_get_type (void) G_GNUC_CONST; -static gboolean events_event_entry_real_is_user_renameable (SidebarRenameableEntry* base); -static void events_event_entry_real_rename (SidebarRenameableEntry* base, - const gchar* new_name); -gchar* event_prep_event_name (const gchar* name); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* app_window_get_command_manager (void); -GType command_get_type (void) G_GNUC_CONST; -void command_manager_execute (CommandManager* self, - Command* command); -RenameEventCommand* rename_event_command_new (Event* event, - const gchar* new_name); -RenameEventCommand* rename_event_command_construct (GType object_type, - Event* event, - const gchar* new_name); -GType page_command_get_type (void) G_GNUC_CONST; -GType simple_proxyable_command_get_type (void) G_GNUC_CONST; -GType rename_event_command_get_type (void) G_GNUC_CONST; -static gboolean events_event_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base, - GeeList* media); -GType data_view_get_type (void) G_GNUC_CONST; -DataView* data_view_new (DataSource* source); -DataView* data_view_construct (GType object_type, - DataSource* source); -SetEventCommand* set_event_command_new (GeeIterable* iter, - Event* new_event); -SetEventCommand* set_event_command_construct (GType object_type, - GeeIterable* iter, - Event* new_event); -GType move_photos_command_get_type (void) G_GNUC_CONST; -GType set_event_command_get_type (void) G_GNUC_CONST; -static gboolean events_event_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, - GtkSelectionData* data); -static void events_event_entry_finalize (GObject * obj); -static gchar* events_no_event_entry_real_get_sidebar_name (SidebarSimplePageEntry* base); -#define NO_EVENT_PAGE_NAME _ ("No Event") -static gchar* events_no_event_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base); -static Page* events_no_event_entry_real_create_page (SidebarSimplePageEntry* base); -NoEventPage* no_event_page_new (void); -NoEventPage* no_event_page_construct (GType object_type); -GType no_event_page_get_type (void) G_GNUC_CONST; - - -static void -_events_branch_on_events_added_removed_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self) -{ -#line 47 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_on_events_added_removed ((EventsBranch*) self, added, removed); -#line 1125 "EventsBranch.c" -} - - -static void -_events_branch_on_events_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 48 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_on_events_altered ((EventsBranch*) self, items); -#line 1136 "EventsBranch.c" -} - - -static void -_events_branch_on_no_event_collection_altered_event_source_collection_no_event_collection_altered (EventSourceCollection* _sender, - gpointer self) -{ -#line 49 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_on_no_event_collection_altered ((EventsBranch*) self); -#line 1146 "EventsBranch.c" -} - - -static void -_events_branch_on_config_changed_configuration_facade_events_sort_ascending_changed (ConfigurationFacade* _sender, - gpointer self) -{ -#line 51 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_on_config_changed ((EventsBranch*) self); -#line 1156 "EventsBranch.c" -} - - -static gint -_events_branch_event_year_comparator_gcompare_func (gconstpointer a, - gconstpointer b) -{ - gint result; - result = events_branch_event_year_comparator ((SidebarEntry*) a, (SidebarEntry*) b); -#line 25 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1168 "EventsBranch.c" -} - - -EventsBranch* -events_branch_construct (GType object_type) -{ - EventsBranch * self = NULL; - SidebarHeader* _tmp0_; - SidebarHeader* _tmp1_; - SidebarEntry* _tmp2_; - SidebarEntry* _tmp3_; - EventsMasterDirectoryEntry* _tmp4_; - EventSourceCollection* _tmp14_; - GeeCollection* _tmp15_; - GeeCollection* _tmp16_; - gint _tmp17_; - gint _tmp18_; - EventSourceCollection* _tmp19_; - EventSourceCollection* _tmp20_; - EventSourceCollection* _tmp21_; - ConfigFacade* _tmp22_; - ConfigFacade* _tmp23_; -#line 25 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = sidebar_header_new (_ ("Events"), _ ("Browse through your events"), TRUE); -#line 25 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = _tmp0_; -#line 25 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = (EventsBranch*) sidebar_branch_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SIDEBAR_TYPE_ENTRY, SidebarEntry), SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD, _events_branch_event_year_comparator_gcompare_func, NULL); -#line 25 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp1_); -#line 29 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 29 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = _tmp2_; -#line 29 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp4_ = self->priv->all_events_entry; -#line 29 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL); -#line 29 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp3_); -#line 1209 "EventsBranch.c" - { - GeeIterator* _object_it = NULL; - EventSourceCollection* _tmp5_; - GeeCollection* _tmp6_; - GeeCollection* _tmp7_; - GeeIterator* _tmp8_; - GeeIterator* _tmp9_; -#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp5_ = event_global; -#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp6_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection)); -#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp7_ = _tmp6_; -#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp9_ = _tmp8_; -#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp7_); -#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _object_it = _tmp9_; -#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - while (TRUE) { -#line 1233 "EventsBranch.c" - GeeIterator* _tmp10_; - DataObject* object = NULL; - GeeIterator* _tmp11_; - gpointer _tmp12_; - DataObject* _tmp13_; -#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp10_ = _object_it; -#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (!gee_iterator_next (_tmp10_)) { -#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - break; -#line 1245 "EventsBranch.c" - } -#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp11_ = _object_it; -#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp12_ = gee_iterator_get (_tmp11_); -#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - object = (DataObject*) _tmp12_; -#line 33 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp13_ = object; -#line 33 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_add_event (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_EVENT, Event)); -#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (object); -#line 1259 "EventsBranch.c" - } -#line 32 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_object_it); -#line 1263 "EventsBranch.c" - } -#line 35 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp14_ = event_global; -#line 35 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp15_ = event_source_collection_get_no_event_objects (_tmp14_); -#line 35 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp16_ = _tmp15_; -#line 35 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp17_ = gee_collection_get_size (_tmp16_); -#line 35 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp18_ = _tmp17_; -#line 35 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_show_no_events (self, _tmp18_ > 0); -#line 35 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp16_); -#line 38 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp19_ = event_global; -#line 38 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _events_branch_on_events_added_removed_data_collection_contents_altered, self, 0); -#line 39 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp20_ = event_global; -#line 39 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _events_branch_on_events_altered_data_collection_items_altered, self, 0); -#line 40 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp21_ = event_global; -#line 40 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_signal_connect_object (_tmp21_, "no-event-collection-altered", (GCallback) _events_branch_on_no_event_collection_altered_event_source_collection_no_event_collection_altered, self, 0); -#line 43 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp22_ = config_facade_get_instance (); -#line 43 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp23_ = _tmp22_; -#line 43 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), "events-sort-ascending-changed", (GCallback) _events_branch_on_config_changed_configuration_facade_events_sort_ascending_changed, self, 0); -#line 43 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp23_); -#line 24 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return self; -#line 1301 "EventsBranch.c" -} - - -EventsBranch* -events_branch_new (void) -{ -#line 24 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return events_branch_construct (EVENTS_TYPE_BRANCH); -#line 1310 "EventsBranch.c" -} - - -void -events_branch_init (void) -{ - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 55 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = config_facade_get_instance (); -#line 55 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = _tmp0_; -#line 55 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_sort_ascending = configuration_facade_get_events_sort_ascending (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 55 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp1_); -#line 1327 "EventsBranch.c" -} - - -void -events_branch_terminate (void) -{ -} - - -gboolean -events_branch_is_user_renameable (EventsBranch* self) -{ - gboolean result = FALSE; -#line 61 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (EVENTS_IS_BRANCH (self), FALSE); -#line 62 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = TRUE; -#line 62 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1347 "EventsBranch.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 66 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return self ? g_object_ref (self) : NULL; -#line 1356 "EventsBranch.c" -} - - -EventsMasterDirectoryEntry* -events_branch_get_master_entry (EventsBranch* self) -{ - EventsMasterDirectoryEntry* result = NULL; - EventsMasterDirectoryEntry* _tmp0_; - EventsMasterDirectoryEntry* _tmp1_; -#line 65 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (EVENTS_IS_BRANCH (self), NULL); -#line 66 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = self->priv->all_events_entry; -#line 66 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 66 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp1_; -#line 66 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1376 "EventsBranch.c" -} - - -static gint -events_branch_event_year_comparator (SidebarEntry* a, - SidebarEntry* b) -{ - gint result = 0; - gboolean _tmp0_; - gint _result_ = 0; - gint _tmp3_; -#line 69 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0); -#line 69 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0); -#line 70 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (a == b) { -#line 71 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = 0; -#line 71 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1398 "EventsBranch.c" - } -#line 75 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (a, EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY)) { -#line 76 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (b, EVENTS_TYPE_NO_EVENT_ENTRY)) { -#line 77 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = -1; -#line 77 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1408 "EventsBranch.c" - } -#line 78 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = 1; -#line 78 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1414 "EventsBranch.c" - } else { -#line 79 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (b, EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY)) { -#line 80 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (a, EVENTS_TYPE_NO_EVENT_ENTRY)) { -#line 81 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = 1; -#line 81 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1424 "EventsBranch.c" - } -#line 82 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = -1; -#line 82 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1430 "EventsBranch.c" - } - } -#line 85 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (a, EVENTS_TYPE_NO_EVENT_ENTRY)) { -#line 86 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = 1; -#line 86 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1439 "EventsBranch.c" - } else { -#line 87 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (b, EVENTS_TYPE_NO_EVENT_ENTRY)) { -#line 88 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = -1; -#line 88 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1447 "EventsBranch.c" - } - } -#line 91 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (a, EVENTS_TYPE_MASTER_DIRECTORY_ENTRY)) { -#line 92 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = -1; -#line 92 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1456 "EventsBranch.c" - } else { -#line 93 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (b, EVENTS_TYPE_MASTER_DIRECTORY_ENTRY)) { -#line 94 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = 1; -#line 94 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1464 "EventsBranch.c" - } - } -#line 96 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = events_branch_sort_ascending; -#line 96 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (!_tmp0_) { -#line 1471 "EventsBranch.c" - SidebarEntry* swap = NULL; - SidebarEntry* _tmp1_; - SidebarEntry* _tmp2_; -#line 97 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = _g_object_ref0 (a); -#line 97 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - swap = _tmp1_; -#line 98 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - a = b; -#line 99 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = swap; -#line 99 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - b = _tmp2_; -#line 96 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (swap); -#line 1487 "EventsBranch.c" - } -#line 102 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _result_ = events_year_directory_entry_get_year (G_TYPE_CHECK_INSTANCE_CAST (a, EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntry)) - events_year_directory_entry_get_year (G_TYPE_CHECK_INSTANCE_CAST (b, EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntry)); -#line 104 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = _result_; -#line 104 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _vala_assert (_tmp3_ != 0, "result != 0"); -#line 106 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _result_; -#line 106 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1499 "EventsBranch.c" -} - - -static gint -events_branch_event_month_comparator (SidebarEntry* a, - SidebarEntry* b) -{ - gint result = 0; - gboolean _tmp0_; - gint _result_ = 0; - gint _tmp3_; -#line 109 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0); -#line 109 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0); -#line 110 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (a == b) { -#line 111 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = 0; -#line 111 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1521 "EventsBranch.c" - } -#line 113 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = events_branch_sort_ascending; -#line 113 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (!_tmp0_) { -#line 1527 "EventsBranch.c" - SidebarEntry* swap = NULL; - SidebarEntry* _tmp1_; - SidebarEntry* _tmp2_; -#line 114 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = _g_object_ref0 (a); -#line 114 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - swap = _tmp1_; -#line 115 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - a = b; -#line 116 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = swap; -#line 116 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - b = _tmp2_; -#line 113 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (swap); -#line 1543 "EventsBranch.c" - } -#line 119 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _result_ = events_month_directory_entry_get_month (G_TYPE_CHECK_INSTANCE_CAST (a, EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntry)) - events_month_directory_entry_get_month (G_TYPE_CHECK_INSTANCE_CAST (b, EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntry)); -#line 121 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = _result_; -#line 121 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _vala_assert (_tmp3_ != 0, "result != 0"); -#line 123 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _result_; -#line 123 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1555 "EventsBranch.c" -} - - -static gint -events_branch_event_comparator (SidebarEntry* a, - SidebarEntry* b) -{ - gint result = 0; - gboolean _tmp0_; - gint64 _result_ = 0LL; - Event* _tmp3_; - Event* _tmp4_; - Event* _tmp5_; - Event* _tmp6_; - gint64 _tmp7_; - gint64 _tmp8_; - gint64 _tmp17_; - gint _tmp18_ = 0; - gint64 _tmp19_; -#line 126 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0); -#line 126 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0); -#line 127 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (a == b) { -#line 128 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = 0; -#line 128 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1585 "EventsBranch.c" - } -#line 130 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = events_branch_sort_ascending; -#line 130 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (!_tmp0_) { -#line 1591 "EventsBranch.c" - SidebarEntry* swap = NULL; - SidebarEntry* _tmp1_; - SidebarEntry* _tmp2_; -#line 131 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = _g_object_ref0 (a); -#line 131 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - swap = _tmp1_; -#line 132 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - a = b; -#line 133 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = swap; -#line 133 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - b = _tmp2_; -#line 130 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (swap); -#line 1607 "EventsBranch.c" - } -#line 136 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = events_event_entry_get_event (G_TYPE_CHECK_INSTANCE_CAST (a, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry)); -#line 136 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp4_ = _tmp3_; -#line 136 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp5_ = events_event_entry_get_event (G_TYPE_CHECK_INSTANCE_CAST (b, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry)); -#line 136 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp6_ = _tmp5_; -#line 136 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp7_ = (gint64) (event_source_get_start_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_EVENT_SOURCE, EventSource)) - event_source_get_start_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_EVENT_SOURCE, EventSource))); -#line 136 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp6_); -#line 136 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp4_); -#line 136 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _result_ = _tmp7_; -#line 140 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp8_ = _result_; -#line 140 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (_tmp8_ == ((gint64) 0)) { -#line 1629 "EventsBranch.c" - Event* _tmp9_; - Event* _tmp10_; - EventID _tmp11_ = {0}; - gint64 _tmp12_; - Event* _tmp13_; - Event* _tmp14_; - EventID _tmp15_ = {0}; - gint64 _tmp16_; -#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp9_ = events_event_entry_get_event (G_TYPE_CHECK_INSTANCE_CAST (a, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry)); -#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp10_ = _tmp9_; -#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - event_get_event_id (_tmp10_, &_tmp11_); -#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp12_ = _tmp11_.id; -#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp13_ = events_event_entry_get_event (G_TYPE_CHECK_INSTANCE_CAST (b, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry)); -#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp14_ = _tmp13_; -#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - event_get_event_id (_tmp14_, &_tmp15_); -#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp16_ = _tmp15_.id; -#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _result_ = _tmp12_ - _tmp16_; -#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp14_); -#line 141 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp10_); -#line 1660 "EventsBranch.c" - } -#line 145 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp17_ = _result_; -#line 145 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _vala_assert (_tmp17_ != ((gint64) 0), "result != 0"); -#line 147 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp19_ = _result_; -#line 147 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (_tmp19_ < ((gint64) 0)) { -#line 147 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp18_ = -1; -#line 1672 "EventsBranch.c" - } else { -#line 147 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp18_ = 1; -#line 1676 "EventsBranch.c" - } -#line 147 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp18_; -#line 147 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1682 "EventsBranch.c" -} - - -static gint -events_branch_undated_event_comparator (SidebarEntry* a, - SidebarEntry* b) -{ - gint result = 0; - gboolean _tmp0_; - gint ret = 0; - Event* _tmp3_; - Event* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - Event* _tmp7_; - Event* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gint _tmp11_; - gint _tmp12_; -#line 150 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0); -#line 150 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0); -#line 151 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (a == b) { -#line 152 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = 0; -#line 152 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1713 "EventsBranch.c" - } -#line 154 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = events_branch_sort_ascending; -#line 154 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (!_tmp0_) { -#line 1719 "EventsBranch.c" - SidebarEntry* swap = NULL; - SidebarEntry* _tmp1_; - SidebarEntry* _tmp2_; -#line 155 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = _g_object_ref0 (a); -#line 155 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - swap = _tmp1_; -#line 156 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - a = b; -#line 157 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = swap; -#line 157 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - b = _tmp2_; -#line 154 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (swap); -#line 1735 "EventsBranch.c" - } -#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = events_event_entry_get_event (G_TYPE_CHECK_INSTANCE_CAST (a, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry)); -#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp4_ = _tmp3_; -#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp5_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject)); -#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp6_ = _tmp5_; -#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp7_ = events_event_entry_get_event (G_TYPE_CHECK_INSTANCE_CAST (b, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry)); -#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp8_ = _tmp7_; -#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp9_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject)); -#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp10_ = _tmp9_; -#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp11_ = g_utf8_collate (_tmp6_, _tmp10_); -#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_free0 (_tmp10_); -#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp8_); -#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_free0 (_tmp6_); -#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp4_); -#line 160 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ret = _tmp11_; -#line 163 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp12_ = ret; -#line 163 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (_tmp12_ == 0) { -#line 1769 "EventsBranch.c" - Event* _tmp13_; - Event* _tmp14_; - Event* _tmp15_; - Event* _tmp16_; -#line 164 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp13_ = events_event_entry_get_event (G_TYPE_CHECK_INSTANCE_CAST (b, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry)); -#line 164 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp14_ = _tmp13_; -#line 164 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp15_ = events_event_entry_get_event (G_TYPE_CHECK_INSTANCE_CAST (a, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry)); -#line 164 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp16_ = _tmp15_; -#line 164 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ret = (gint) (data_source_get_instance_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_SOURCE, DataSource)) - data_source_get_instance_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_SOURCE, DataSource))); -#line 164 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp16_); -#line 164 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp14_); -#line 1788 "EventsBranch.c" - } -#line 167 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = ret; -#line 167 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1794 "EventsBranch.c" -} - - -EventsEventEntry* -events_branch_get_entry_for_event (EventsBranch* self, - Event* event) -{ - EventsEventEntry* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 170 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (EVENTS_IS_BRANCH (self), NULL); -#line 170 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (IS_EVENT (event), NULL); -#line 171 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = self->priv->entry_map; -#line 171 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), event); -#line 171 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = (EventsEventEntry*) _tmp1_; -#line 171 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 1817 "EventsBranch.c" -} - - -static void -events_branch_on_config_changed (EventsBranch* self) -{ - gboolean value = FALSE; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gboolean _tmp2_; -#line 174 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (EVENTS_IS_BRANCH (self)); -#line 175 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = config_facade_get_instance (); -#line 175 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = _tmp0_; -#line 175 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = configuration_facade_get_events_sort_ascending (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 175 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp1_); -#line 175 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - value = _tmp2_; -#line 177 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_sort_ascending = value; -#line 178 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - sidebar_branch_reorder_all (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 1844 "EventsBranch.c" -} - - -static void -events_branch_on_events_added_removed (EventsBranch* self, - GeeIterable* added, - GeeIterable* removed) -{ -#line 181 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (EVENTS_IS_BRANCH (self)); -#line 181 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added)); -#line 181 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed)); -#line 183 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (added != NULL) { -#line 1861 "EventsBranch.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = gee_iterable_iterator (added); -#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _object_it = _tmp0_; -#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - while (TRUE) { -#line 1871 "EventsBranch.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataObject* _tmp4_; -#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = _object_it; -#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - break; -#line 1883 "EventsBranch.c" - } -#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = _object_it; -#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - object = (DataObject*) _tmp3_; -#line 185 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp4_ = object; -#line 185 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_add_event (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_EVENT, Event)); -#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (object); -#line 1897 "EventsBranch.c" - } -#line 184 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_object_it); -#line 1901 "EventsBranch.c" - } - } -#line 188 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (removed != NULL) { -#line 1906 "EventsBranch.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp5_; -#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp5_ = gee_iterable_iterator (removed); -#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _object_it = _tmp5_; -#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - while (TRUE) { -#line 1916 "EventsBranch.c" - GeeIterator* _tmp6_; - DataObject* object = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - DataObject* _tmp9_; -#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp6_ = _object_it; -#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - break; -#line 1928 "EventsBranch.c" - } -#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp7_ = _object_it; -#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - object = (DataObject*) _tmp8_; -#line 190 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp9_ = object; -#line 190 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_remove_event (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_EVENT, Event)); -#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (object); -#line 1942 "EventsBranch.c" - } -#line 189 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_object_it); -#line 1946 "EventsBranch.c" - } - } -} - - -static void -events_branch_on_events_altered (EventsBranch* self, - GeeMap* altered) -{ -#line 194 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (EVENTS_IS_BRANCH (self)); -#line 194 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (GEE_IS_MAP (altered)); -#line 1960 "EventsBranch.c" - { - GeeIterator* _object_it = NULL; - GeeSet* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = gee_map_get_keys (altered); -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = _tmp0_; -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = _tmp1_; -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp4_ = _tmp3_; -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp2_); -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _object_it = _tmp4_; -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - while (TRUE) { -#line 1984 "EventsBranch.c" - GeeIterator* _tmp5_; - DataObject* object = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - Event* event = NULL; - DataObject* _tmp8_; - Event* _tmp9_; - Alteration* alteration = NULL; - DataObject* _tmp10_; - gpointer _tmp11_; - Alteration* _tmp12_; -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp5_ = _object_it; -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - break; -#line 2002 "EventsBranch.c" - } -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp6_ = _object_it; -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - object = (DataObject*) _tmp7_; -#line 196 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp8_ = object; -#line 196 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_EVENT, Event)); -#line 196 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - event = _tmp9_; -#line 197 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp10_ = object; -#line 197 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp11_ = gee_map_get (altered, _tmp10_); -#line 197 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - alteration = (Alteration*) _tmp11_; -#line 199 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp12_ = alteration; -#line 199 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (alteration_has_detail (_tmp12_, "metadata", "time")) { -#line 2026 "EventsBranch.c" - Event* _tmp13_; -#line 202 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp13_ = event; -#line 202 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_move_event (self, _tmp13_); -#line 2032 "EventsBranch.c" - } else { - Alteration* _tmp14_; -#line 203 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp14_ = alteration; -#line 203 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (alteration_has_detail (_tmp14_, "metadata", "name")) { -#line 2039 "EventsBranch.c" - EventsEventEntry* entry = NULL; - GeeHashMap* _tmp15_; - Event* _tmp16_; - gpointer _tmp17_; - EventsEventEntry* _tmp18_; - EventsEventEntry* _tmp19_; - Event* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - EventsEventEntry* _tmp23_; - Event* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; -#line 204 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp15_ = self->priv->entry_map; -#line 204 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp16_ = event; -#line 204 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp17_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp16_); -#line 204 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - entry = (EventsEventEntry*) _tmp17_; -#line 205 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp18_ = entry; -#line 205 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _vala_assert (_tmp18_ != NULL, "entry != null"); -#line 207 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp19_ = entry; -#line 207 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp20_ = event; -#line 207 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp21_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_OBJECT, DataObject)); -#line 207 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp22_ = _tmp21_; -#line 207 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry), "sidebar-name-changed", _tmp22_); -#line 207 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_free0 (_tmp22_); -#line 208 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp23_ = entry; -#line 208 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp24_ = event; -#line 208 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp25_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_OBJECT, DataObject)); -#line 208 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp26_ = _tmp25_; -#line 208 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, SIDEBAR_TYPE_ENTRY, SidebarEntry), "sidebar-tooltip-changed", _tmp26_); -#line 208 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_free0 (_tmp26_); -#line 203 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (entry); -#line 2091 "EventsBranch.c" - } - } -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _alteration_unref0 (alteration); -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (event); -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (object); -#line 2100 "EventsBranch.c" - } -#line 195 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_object_it); -#line 2104 "EventsBranch.c" - } -} - - -static void -events_branch_on_no_event_collection_altered (EventsBranch* self) -{ - EventSourceCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - gint _tmp3_; - gint _tmp4_; -#line 213 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (EVENTS_IS_BRANCH (self)); -#line 214 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = event_global; -#line 214 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = event_source_collection_get_no_event_objects (_tmp0_); -#line 214 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = _tmp1_; -#line 214 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = gee_collection_get_size (_tmp2_); -#line 214 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp4_ = _tmp3_; -#line 214 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_show_no_events (self, _tmp4_ > 0); -#line 214 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp2_); -#line 2133 "EventsBranch.c" -} - - -static void -g_time_local (time_t time, - struct tm* result) -{ - struct tm _result_ = {0}; - struct tm _tmp0_ = {0}; -#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - localtime_r (&time, &_tmp0_); -#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result = _result_; -#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return; -#line 2151 "EventsBranch.c" -} - - -static gint -_events_branch_event_comparator_gcompare_func (gconstpointer a, - gconstpointer b) -{ - gint result; - result = events_branch_event_comparator ((SidebarEntry*) a, (SidebarEntry*) b); -#line 230 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 2163 "EventsBranch.c" -} - - -static gchar* -g_time_format (struct tm *self, - const gchar* format) -{ - gchar* result = NULL; - gchar* buffer = NULL; - gchar* _tmp0_; - gint buffer_length1; - gint _buffer_size_; - gchar* _tmp1_; - gint _tmp1__length1; - gchar* _tmp2_; - gint _tmp2__length1; - gchar* _tmp3_; -#line 2874 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (format != NULL, NULL); -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_new0 (gchar, 64); -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer = _tmp0_; -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer_length1 = 64; -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _buffer_size_ = buffer_length1; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = buffer; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1__length1 = buffer_length1; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - strftime (_tmp1_, _tmp1__length1, format, &(*self)); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = buffer; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2__length1 = buffer_length1; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_strdup ((const gchar*) _tmp2_); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp3_; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer = (g_free (buffer), NULL); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2209 "EventsBranch.c" -} - - -static gint -_events_branch_event_month_comparator_gcompare_func (gconstpointer a, - gconstpointer b) -{ - gint result; - result = events_branch_event_month_comparator ((SidebarEntry*) a, (SidebarEntry*) b); -#line 238 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 2221 "EventsBranch.c" -} - - -static void -events_branch_add_event (EventsBranch* self, - Event* event) -{ - time_t event_time = 0; - time_t _tmp0_; - struct tm event_tm = {0}; - time_t _tmp1_; - struct tm _tmp2_ = {0}; - SidebarEntry* year = NULL; - SidebarEntry* month = NULL; - struct tm _tmp3_; - SidebarEntry* _tmp4_ = NULL; - SidebarEntry* _tmp5_; - SidebarEntry* _tmp6_; - SidebarEntry* _tmp8_; - gchar* _tmp16_; - gchar* _tmp17_; - struct tm _tmp18_; - EventsMonthDirectoryEntry* _tmp19_; - SidebarEntry* _tmp20_; - SidebarEntry* _tmp21_; - SidebarEntry* _tmp22_; -#line 217 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (EVENTS_IS_BRANCH (self)); -#line 217 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (IS_EVENT (event)); -#line 218 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - event_time = event_source_get_start_time (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_EVENT_SOURCE, EventSource)); -#line 219 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = event_time; -#line 219 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (_tmp0_ == ((time_t) 0)) { -#line 220 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_add_undated_event (self, event); -#line 222 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return; -#line 2262 "EventsBranch.c" - } -#line 225 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = event_time; -#line 225 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_time_local (_tmp1_, &_tmp2_); -#line 225 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - event_tm = _tmp2_; -#line 228 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = event_tm; -#line 228 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp5_ = events_branch_find_event_month (self, event, &_tmp3_, &_tmp4_); -#line 228 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (year); -#line 228 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - year = _tmp4_; -#line 228 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - month = _tmp5_; -#line 229 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp6_ = month; -#line 229 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (_tmp6_ != NULL) { -#line 2284 "EventsBranch.c" - SidebarEntry* _tmp7_; -#line 230 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp7_ = month; -#line 230 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_graft_event (self, _tmp7_, event, _events_branch_event_comparator_gcompare_func); -#line 232 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (month); -#line 232 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (year); -#line 232 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return; -#line 2296 "EventsBranch.c" - } -#line 235 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp8_ = year; -#line 235 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (_tmp8_ == NULL) { -#line 2302 "EventsBranch.c" - gchar* _tmp9_; - gchar* _tmp10_; - struct tm _tmp11_; - EventsYearDirectoryEntry* _tmp12_; - SidebarEntry* _tmp13_; - SidebarEntry* _tmp14_; - SidebarEntry* _tmp15_; -#line 236 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp9_ = g_time_format (&event_tm, SUB_EVENTS_DIRECTORY_PAGE_YEAR_FORMAT); -#line 236 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp10_ = _tmp9_; -#line 236 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp11_ = event_tm; -#line 236 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp12_ = events_year_directory_entry_new (_tmp10_, &_tmp11_); -#line 236 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (year); -#line 236 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - year = G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, SIDEBAR_TYPE_ENTRY, SidebarEntry); -#line 236 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_free0 (_tmp10_); -#line 238 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp13_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 238 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp14_ = _tmp13_; -#line 238 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp15_ = year; -#line 238 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp14_, _tmp15_, _events_branch_event_month_comparator_gcompare_func); -#line 238 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp14_); -#line 2334 "EventsBranch.c" - } -#line 241 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp16_ = g_time_format (&event_tm, SUB_EVENTS_DIRECTORY_PAGE_MONTH_FORMAT); -#line 241 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp17_ = _tmp16_; -#line 241 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp18_ = event_tm; -#line 241 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp19_ = events_month_directory_entry_new (_tmp17_, &_tmp18_); -#line 241 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (month); -#line 241 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - month = G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, SIDEBAR_TYPE_ENTRY, SidebarEntry); -#line 241 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_free0 (_tmp17_); -#line 243 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp20_ = year; -#line 243 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp21_ = month; -#line 243 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp20_, _tmp21_, _events_branch_event_comparator_gcompare_func); -#line 245 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp22_ = month; -#line 245 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_graft_event (self, _tmp22_, event, _events_branch_event_comparator_gcompare_func); -#line 217 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (month); -#line 217 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (year); -#line 2364 "EventsBranch.c" -} - - -static void -events_branch_move_event (EventsBranch* self, - Event* event) -{ - time_t event_time = 0; - time_t _tmp0_; - struct tm event_tm = {0}; - time_t _tmp1_; - struct tm _tmp2_ = {0}; - SidebarEntry* year = NULL; - SidebarEntry* month = NULL; - struct tm _tmp3_; - SidebarEntry* _tmp4_ = NULL; - SidebarEntry* _tmp5_; - SidebarEntry* _tmp6_; - SidebarEntry* _tmp14_; - SidebarEntry* _tmp21_; -#line 248 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (EVENTS_IS_BRANCH (self)); -#line 248 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (IS_EVENT (event)); -#line 249 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - event_time = event_source_get_start_time (G_TYPE_CHECK_INSTANCE_CAST (event, TYPE_EVENT_SOURCE, EventSource)); -#line 250 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = event_time; -#line 250 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (_tmp0_ == ((time_t) 0)) { -#line 251 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_move_to_undated_event (self, event); -#line 253 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return; -#line 2399 "EventsBranch.c" - } -#line 256 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = event_time; -#line 256 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_time_local (_tmp1_, &_tmp2_); -#line 256 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - event_tm = _tmp2_; -#line 259 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = event_tm; -#line 259 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp5_ = events_branch_find_event_month (self, event, &_tmp3_, &_tmp4_); -#line 259 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (year); -#line 259 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - year = _tmp4_; -#line 259 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - month = _tmp5_; -#line 261 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp6_ = year; -#line 261 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (_tmp6_ == NULL) { -#line 2421 "EventsBranch.c" - gchar* _tmp7_; - gchar* _tmp8_; - struct tm _tmp9_; - EventsYearDirectoryEntry* _tmp10_; - SidebarEntry* _tmp11_; - SidebarEntry* _tmp12_; - SidebarEntry* _tmp13_; -#line 262 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp7_ = g_time_format (&event_tm, SUB_EVENTS_DIRECTORY_PAGE_YEAR_FORMAT); -#line 262 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp8_ = _tmp7_; -#line 262 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp9_ = event_tm; -#line 262 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp10_ = events_year_directory_entry_new (_tmp8_, &_tmp9_); -#line 262 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (year); -#line 262 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - year = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, SIDEBAR_TYPE_ENTRY, SidebarEntry); -#line 262 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_free0 (_tmp8_); -#line 264 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp11_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 264 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp12_ = _tmp11_; -#line 264 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp13_ = year; -#line 264 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp12_, _tmp13_, _events_branch_event_month_comparator_gcompare_func); -#line 264 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp12_); -#line 2453 "EventsBranch.c" - } -#line 267 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp14_ = month; -#line 267 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (_tmp14_ == NULL) { -#line 2459 "EventsBranch.c" - gchar* _tmp15_; - gchar* _tmp16_; - struct tm _tmp17_; - EventsMonthDirectoryEntry* _tmp18_; - SidebarEntry* _tmp19_; - SidebarEntry* _tmp20_; -#line 268 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp15_ = g_time_format (&event_tm, SUB_EVENTS_DIRECTORY_PAGE_MONTH_FORMAT); -#line 268 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp16_ = _tmp15_; -#line 268 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp17_ = event_tm; -#line 268 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp18_ = events_month_directory_entry_new (_tmp16_, &_tmp17_); -#line 268 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (month); -#line 268 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - month = G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SIDEBAR_TYPE_ENTRY, SidebarEntry); -#line 268 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_free0 (_tmp16_); -#line 270 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp19_ = year; -#line 270 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp20_ = month; -#line 270 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp19_, _tmp20_, _events_branch_event_comparator_gcompare_func); -#line 2486 "EventsBranch.c" - } -#line 273 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp21_ = month; -#line 273 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_reparent_event (self, event, _tmp21_); -#line 248 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (month); -#line 248 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (year); -#line 2496 "EventsBranch.c" -} - - -static void -events_branch_remove_event (EventsBranch* self, - Event* event) -{ - SidebarEntry* entry = NULL; - gboolean removed = FALSE; - GeeHashMap* _tmp0_; - gpointer _tmp1_ = NULL; - gboolean _tmp2_; - gboolean _tmp3_; - SidebarEntry* parent = NULL; - SidebarEntry* _tmp4_; - SidebarEntry* _tmp5_; - SidebarEntry* _tmp6_; - SidebarEntry* _tmp7_; -#line 276 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (EVENTS_IS_BRANCH (self)); -#line 276 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (IS_EVENT (event)); -#line 280 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = self->priv->entry_map; -#line 280 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), event, &_tmp1_); -#line 280 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (entry); -#line 280 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - entry = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SIDEBAR_TYPE_ENTRY, SidebarEntry); -#line 280 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - removed = _tmp2_; -#line 281 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = removed; -#line 281 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _vala_assert (_tmp3_, "removed"); -#line 283 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp4_ = entry; -#line 283 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp5_ = sidebar_branch_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp4_); -#line 283 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - parent = _tmp5_; -#line 284 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp6_ = parent; -#line 284 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _vala_assert (_tmp6_ != NULL, "parent != null"); -#line 286 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp7_ = entry; -#line 286 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp7_); -#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - while (TRUE) { -#line 2549 "EventsBranch.c" - gboolean _tmp8_ = FALSE; - SidebarEntry* _tmp9_; - SidebarEntry* grandparent = NULL; - SidebarEntry* _tmp13_; - SidebarEntry* _tmp14_; - SidebarEntry* _tmp15_; - SidebarEntry* _tmp16_; - SidebarEntry* _tmp17_; - SidebarEntry* _tmp18_; -#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp9_ = parent; -#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (sidebar_branch_get_child_count (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp9_) == 0) { -#line 2563 "EventsBranch.c" - SidebarEntry* _tmp10_; - SidebarEntry* _tmp11_; - SidebarEntry* _tmp12_; -#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp10_ = parent; -#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp11_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp12_ = _tmp11_; -#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp8_ = _tmp10_ != _tmp12_; -#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp12_); -#line 2577 "EventsBranch.c" - } else { -#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp8_ = FALSE; -#line 2581 "EventsBranch.c" - } -#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (!_tmp8_) { -#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - break; -#line 2587 "EventsBranch.c" - } -#line 290 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp13_ = parent; -#line 290 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp14_ = sidebar_branch_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp13_); -#line 290 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - grandparent = _tmp14_; -#line 291 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp15_ = grandparent; -#line 291 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _vala_assert (_tmp15_ != NULL, "grandparent != null"); -#line 293 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp16_ = parent; -#line 293 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp16_); -#line 295 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp17_ = grandparent; -#line 295 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp18_ = _g_object_ref0 (_tmp17_); -#line 295 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (parent); -#line 295 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - parent = _tmp18_; -#line 289 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (grandparent); -#line 2613 "EventsBranch.c" - } -#line 276 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (parent); -#line 276 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (entry); -#line 2619 "EventsBranch.c" -} - - -static Block8Data* -block8_data_ref (Block8Data* _data8_) -{ -#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_atomic_int_inc (&_data8_->_ref_count_); -#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return _data8_; -#line 2630 "EventsBranch.c" -} - - -static void -block8_data_unref (void * _userdata_) -{ - Block8Data* _data8_; - _data8_ = (Block8Data*) _userdata_; -#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (g_atomic_int_dec_and_test (&_data8_->_ref_count_)) { -#line 2641 "EventsBranch.c" - EventsBranch* self; -#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = _data8_->self; -#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (self); -#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_slice_free (Block8Data, _data8_); -#line 2649 "EventsBranch.c" - } -} - - -static gboolean -__lambda21_ (Block8Data* _data8_, - SidebarEntry* entry) -{ - EventsBranch* self; - gboolean result = FALSE; - gint _tmp0_; -#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = _data8_->self; -#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE); -#line 309 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = _data8_->event_month; -#line 309 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = events_month_directory_entry_get_month (G_TYPE_CHECK_INSTANCE_CAST (entry, EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntry)) == _tmp0_; -#line 309 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 2671 "EventsBranch.c" -} - - -static gboolean -___lambda21__locator (gconstpointer item, - gpointer self) -{ - gboolean result; - result = __lambda21_ (self, (SidebarEntry*) item); -#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 2683 "EventsBranch.c" -} - - -static SidebarEntry* -events_branch_find_event_month (EventsBranch* self, - Event* event, - struct tm* event_tm, - SidebarEntry* * found_year) -{ - SidebarEntry* _vala_found_year = NULL; - SidebarEntry* result = NULL; - Block8Data* _data8_; - struct tm _tmp0_; - SidebarEntry* _tmp1_; - SidebarEntry* _tmp2_; - struct tm _tmp3_; - gint _tmp4_; - SidebarEntry* _tmp5_; - SidebarEntry* _tmp6_; -#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (EVENTS_IS_BRANCH (self), NULL); -#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (IS_EVENT (event), NULL); -#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (event_tm != NULL, NULL); -#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _data8_ = g_slice_new0 (Block8Data); -#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _data8_->_ref_count_ = 1; -#line 299 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _data8_->self = g_object_ref (self); -#line 301 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = *event_tm; -#line 301 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = events_branch_find_event_year (self, event, &_tmp0_); -#line 301 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_vala_found_year); -#line 301 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _vala_found_year = _tmp1_; -#line 302 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = _vala_found_year; -#line 302 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (_tmp2_ == NULL) { -#line 303 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = NULL; -#line 303 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - block8_data_unref (_data8_); -#line 303 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _data8_ = NULL; -#line 303 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (found_year) { -#line 303 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - *found_year = _vala_found_year; -#line 2737 "EventsBranch.c" - } else { -#line 303 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_vala_found_year); -#line 2741 "EventsBranch.c" - } -#line 303 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 2745 "EventsBranch.c" - } -#line 305 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = *event_tm; -#line 305 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp4_ = _tmp3_.tm_mon; -#line 305 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _data8_->event_month = _tmp4_ + 1; -#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp5_ = _vala_found_year; -#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp6_ = sidebar_branch_find_first_child (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp5_, ___lambda21__locator, _data8_); -#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp6_; -#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - block8_data_unref (_data8_); -#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _data8_ = NULL; -#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (found_year) { -#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - *found_year = _vala_found_year; -#line 2767 "EventsBranch.c" - } else { -#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_vala_found_year); -#line 2771 "EventsBranch.c" - } -#line 308 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 2775 "EventsBranch.c" -} - - -static Block9Data* -block9_data_ref (Block9Data* _data9_) -{ -#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_atomic_int_inc (&_data9_->_ref_count_); -#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return _data9_; -#line 2786 "EventsBranch.c" -} - - -static void -block9_data_unref (void * _userdata_) -{ - Block9Data* _data9_; - _data9_ = (Block9Data*) _userdata_; -#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (g_atomic_int_dec_and_test (&_data9_->_ref_count_)) { -#line 2797 "EventsBranch.c" - EventsBranch* self; -#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = _data9_->self; -#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (self); -#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_slice_free (Block9Data, _data9_); -#line 2805 "EventsBranch.c" - } -} - - -static gboolean -__lambda20_ (Block9Data* _data9_, - SidebarEntry* entry) -{ - EventsBranch* self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; -#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = _data9_->self; -#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE); -#line 317 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (entry, EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY)) { -#line 317 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = TRUE; -#line 2826 "EventsBranch.c" - } else { -#line 317 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (entry, EVENTS_TYPE_NO_EVENT_ENTRY); -#line 2830 "EventsBranch.c" - } -#line 317 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (_tmp1_) { -#line 317 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = TRUE; -#line 2836 "EventsBranch.c" - } else { -#line 318 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_TYPE (entry, EVENTS_TYPE_MASTER_DIRECTORY_ENTRY); -#line 2840 "EventsBranch.c" - } -#line 317 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (_tmp0_) { -#line 319 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = FALSE; -#line 319 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 2848 "EventsBranch.c" - } else { -#line 321 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = events_year_directory_entry_get_year (G_TYPE_CHECK_INSTANCE_CAST (entry, EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntry)) == _data9_->event_year; -#line 321 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 2854 "EventsBranch.c" - } -} - - -static gboolean -___lambda20__locator (gconstpointer item, - gpointer self) -{ - gboolean result; - result = __lambda20_ (self, (SidebarEntry*) item); -#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 2867 "EventsBranch.c" -} - - -static SidebarEntry* -events_branch_find_event_year (EventsBranch* self, - Event* event, - struct tm* event_tm) -{ - SidebarEntry* result = NULL; - Block9Data* _data9_; - struct tm _tmp0_; - gint _tmp1_; - SidebarEntry* _tmp2_; - SidebarEntry* _tmp3_; - SidebarEntry* _tmp4_; - SidebarEntry* _tmp5_; -#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (EVENTS_IS_BRANCH (self), NULL); -#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (IS_EVENT (event), NULL); -#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (event_tm != NULL, NULL); -#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _data9_ = g_slice_new0 (Block9Data); -#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _data9_->_ref_count_ = 1; -#line 313 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _data9_->self = g_object_ref (self); -#line 314 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = *event_tm; -#line 314 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = _tmp0_.tm_year; -#line 314 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _data9_->event_year = _tmp1_ + 1900; -#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = _tmp2_; -#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp4_ = sidebar_branch_find_first_child (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp3_, ___lambda20__locator, _data9_); -#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp5_ = _tmp4_; -#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp3_); -#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp5_; -#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - block9_data_unref (_data9_); -#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _data9_ = NULL; -#line 316 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 2920 "EventsBranch.c" -} - - -static gint -_events_branch_undated_event_comparator_gcompare_func (gconstpointer a, - gconstpointer b) -{ - gint result; - result = events_branch_undated_event_comparator ((SidebarEntry*) a, (SidebarEntry*) b); -#line 327 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 2932 "EventsBranch.c" -} - - -static void -events_branch_add_undated_event (EventsBranch* self, - Event* event) -{ - EventsUndatedDirectoryEntry* _tmp0_; - EventsUndatedDirectoryEntry* _tmp4_; -#line 325 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (EVENTS_IS_BRANCH (self)); -#line 325 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (IS_EVENT (event)); -#line 326 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = self->priv->undated_entry; -#line 326 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (!sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SIDEBAR_TYPE_ENTRY, SidebarEntry))) { -#line 2950 "EventsBranch.c" - SidebarEntry* _tmp1_; - SidebarEntry* _tmp2_; - EventsUndatedDirectoryEntry* _tmp3_; -#line 327 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 327 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = _tmp1_; -#line 327 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = self->priv->undated_entry; -#line 327 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SIDEBAR_TYPE_ENTRY, SidebarEntry), _events_branch_undated_event_comparator_gcompare_func); -#line 327 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp2_); -#line 2964 "EventsBranch.c" - } -#line 329 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp4_ = self->priv->undated_entry; -#line 329 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_graft_event (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_ENTRY, SidebarEntry), event, NULL); -#line 2970 "EventsBranch.c" -} - - -static void -events_branch_move_to_undated_event (EventsBranch* self, - Event* event) -{ - EventsUndatedDirectoryEntry* _tmp0_; - EventsUndatedDirectoryEntry* _tmp4_; -#line 332 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (EVENTS_IS_BRANCH (self)); -#line 332 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (IS_EVENT (event)); -#line 333 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = self->priv->undated_entry; -#line 333 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (!sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SIDEBAR_TYPE_ENTRY, SidebarEntry))) { -#line 2988 "EventsBranch.c" - SidebarEntry* _tmp1_; - SidebarEntry* _tmp2_; - EventsUndatedDirectoryEntry* _tmp3_; -#line 334 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 334 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = _tmp1_; -#line 334 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = self->priv->undated_entry; -#line 334 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL); -#line 334 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp2_); -#line 3002 "EventsBranch.c" - } -#line 336 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp4_ = self->priv->undated_entry; -#line 336 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_reparent_event (self, event, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 3008 "EventsBranch.c" -} - - -static void -events_branch_graft_event (EventsBranch* self, - SidebarEntry* parent, - Event* event, - GCompareFunc comparator) -{ - EventsEventEntry* entry = NULL; - EventsEventEntry* _tmp0_; - GeeHashMap* _tmp1_; -#line 339 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (EVENTS_IS_BRANCH (self)); -#line 339 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (parent)); -#line 339 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (IS_EVENT (event)); -#line 341 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = events_event_entry_new (event); -#line 341 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - entry = _tmp0_; -#line 342 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = self->priv->entry_map; -#line 342 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), event, entry); -#line 344 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), parent, G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry), comparator); -#line 339 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (entry); -#line 3039 "EventsBranch.c" -} - - -static void -events_branch_reparent_event (EventsBranch* self, - Event* event, - SidebarEntry* new_parent) -{ - EventsEventEntry* entry = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - EventsEventEntry* _tmp2_; - SidebarEntry* old_parent = NULL; - EventsEventEntry* _tmp3_; - SidebarEntry* _tmp4_; - SidebarEntry* _tmp5_; - EventsEventEntry* _tmp6_; -#line 347 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (EVENTS_IS_BRANCH (self)); -#line 347 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (IS_EVENT (event)); -#line 347 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (new_parent)); -#line 348 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = self->priv->entry_map; -#line 348 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), event); -#line 348 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - entry = (EventsEventEntry*) _tmp1_; -#line 349 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = entry; -#line 349 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _vala_assert (_tmp2_ != NULL, "entry != null"); -#line 351 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = entry; -#line 351 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp4_ = sidebar_branch_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 351 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - old_parent = _tmp4_; -#line 352 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp5_ = old_parent; -#line 352 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _vala_assert (_tmp5_ != NULL, "old_parent != null"); -#line 354 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp6_ = entry; -#line 354 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - sidebar_branch_reparent (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), new_parent, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - while (TRUE) { -#line 3089 "EventsBranch.c" - gboolean _tmp7_ = FALSE; - SidebarEntry* _tmp8_; - SidebarEntry* grandparent = NULL; - SidebarEntry* _tmp12_; - SidebarEntry* _tmp13_; - SidebarEntry* _tmp14_; - SidebarEntry* _tmp15_; - SidebarEntry* _tmp16_; - SidebarEntry* _tmp17_; -#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp8_ = old_parent; -#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (sidebar_branch_get_child_count (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp8_) == 0) { -#line 3103 "EventsBranch.c" - SidebarEntry* _tmp9_; - SidebarEntry* _tmp10_; - SidebarEntry* _tmp11_; -#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp9_ = old_parent; -#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp10_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp11_ = _tmp10_; -#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp7_ = _tmp9_ != _tmp11_; -#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp11_); -#line 3117 "EventsBranch.c" - } else { -#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp7_ = FALSE; -#line 3121 "EventsBranch.c" - } -#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (!_tmp7_) { -#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - break; -#line 3127 "EventsBranch.c" - } -#line 357 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp12_ = old_parent; -#line 357 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp13_ = sidebar_branch_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp12_); -#line 357 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - grandparent = _tmp13_; -#line 358 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp14_ = grandparent; -#line 358 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _vala_assert (_tmp14_ != NULL, "grandparent != null"); -#line 360 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp15_ = old_parent; -#line 360 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp15_); -#line 362 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp16_ = grandparent; -#line 362 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp17_ = _g_object_ref0 (_tmp16_); -#line 362 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (old_parent); -#line 362 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - old_parent = _tmp17_; -#line 356 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (grandparent); -#line 3153 "EventsBranch.c" - } -#line 347 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (old_parent); -#line 347 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (entry); -#line 3159 "EventsBranch.c" -} - - -static void -events_branch_show_no_events (EventsBranch* self, - gboolean show) -{ - gboolean _tmp0_ = FALSE; -#line 366 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (EVENTS_IS_BRANCH (self)); -#line 367 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (show) { -#line 3172 "EventsBranch.c" - EventsNoEventEntry* _tmp1_; -#line 367 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = self->priv->no_event_entry; -#line 367 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = !sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 3178 "EventsBranch.c" - } else { -#line 367 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = FALSE; -#line 3182 "EventsBranch.c" - } -#line 367 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (_tmp0_) { -#line 3186 "EventsBranch.c" - SidebarEntry* _tmp2_; - SidebarEntry* _tmp3_; - EventsNoEventEntry* _tmp4_; -#line 368 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 368 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = _tmp2_; -#line 368 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp4_ = self->priv->no_event_entry; -#line 368 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL); -#line 368 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp3_); -#line 3200 "EventsBranch.c" - } else { - gboolean _tmp5_ = FALSE; -#line 369 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (!show) { -#line 3205 "EventsBranch.c" - EventsNoEventEntry* _tmp6_; -#line 369 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp6_ = self->priv->no_event_entry; -#line 369 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp5_ = sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 3211 "EventsBranch.c" - } else { -#line 369 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp5_ = FALSE; -#line 3215 "EventsBranch.c" - } -#line 369 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (_tmp5_) { -#line 3219 "EventsBranch.c" - EventsNoEventEntry* _tmp7_; -#line 370 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp7_ = self->priv->no_event_entry; -#line 370 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 3225 "EventsBranch.c" - } - } -} - - -static void -events_branch_class_init (EventsBranchClass * klass) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 7 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_type_class_add_private (klass, sizeof (EventsBranchPrivate)); -#line 7 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - G_OBJECT_CLASS (klass)->finalize = events_branch_finalize; -#line 8 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = g_strdup (RESOURCES_ICON_FOLDER); -#line 8 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_icon = _tmp0_; -#line 9 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = g_strdup (RESOURCES_ICON_EVENTS); -#line 9 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_events_icon = _tmp1_; -#line 10 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = g_strdup (RESOURCES_ICON_ONE_EVENT); -#line 10 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_single_event_icon = _tmp2_; -#line 11 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = g_strdup (RESOURCES_ICON_NO_EVENT); -#line 11 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_branch_no_event_icon = _tmp3_; -#line 3260 "EventsBranch.c" -} - - -static void -events_branch_instance_init (EventsBranch * self) -{ - GeeHashMap* _tmp0_; - EventsUndatedDirectoryEntry* _tmp1_; - EventsNoEventEntry* _tmp2_; - EventsMasterDirectoryEntry* _tmp3_; -#line 7 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self->priv = EVENTS_BRANCH_GET_PRIVATE (self); -#line 18 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = gee_hash_map_new (TYPE_EVENT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, EVENTS_TYPE_EVENT_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 18 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self->priv->entry_map = _tmp0_; -#line 20 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = events_undated_directory_entry_new (); -#line 20 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self->priv->undated_entry = _tmp1_; -#line 21 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = events_no_event_entry_new (); -#line 21 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self->priv->no_event_entry = _tmp2_; -#line 22 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = events_master_directory_entry_new (); -#line 22 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self->priv->all_events_entry = _tmp3_; -#line 3289 "EventsBranch.c" -} - - -static void -events_branch_finalize (GObject * obj) -{ - EventsBranch * self; - EventSourceCollection* _tmp0_; - guint _tmp1_; - EventSourceCollection* _tmp2_; - guint _tmp3_; - EventSourceCollection* _tmp4_; - guint _tmp5_; - ConfigFacade* _tmp6_; - ConfigFacade* _tmp7_; - guint _tmp8_; -#line 7 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EVENTS_TYPE_BRANCH, EventsBranch); -#line 47 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = event_global; -#line 47 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE); -#line 47 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _events_branch_on_events_added_removed_data_collection_contents_altered, self); -#line 48 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = event_global; -#line 48 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE); -#line 48 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _events_branch_on_events_altered_data_collection_items_altered, self); -#line 49 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp4_ = event_global; -#line 49 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_signal_parse_name ("no-event-collection-altered", TYPE_EVENT_SOURCE_COLLECTION, &_tmp5_, NULL, FALSE); -#line 49 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _events_branch_on_no_event_collection_altered_event_source_collection_no_event_collection_altered, self); -#line 51 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp6_ = config_facade_get_instance (); -#line 51 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp7_ = _tmp6_; -#line 51 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_signal_parse_name ("events-sort-ascending-changed", TYPE_CONFIGURATION_FACADE, &_tmp8_, NULL, FALSE); -#line 51 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _events_branch_on_config_changed_configuration_facade_events_sort_ascending_changed, self); -#line 51 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp7_); -#line 18 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (self->priv->entry_map); -#line 20 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (self->priv->undated_entry); -#line 21 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (self->priv->no_event_entry); -#line 22 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (self->priv->all_events_entry); -#line 7 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - G_OBJECT_CLASS (events_branch_parent_class)->finalize (obj); -#line 3346 "EventsBranch.c" -} - - -GType -events_branch_get_type (void) -{ - static volatile gsize events_branch_type_id__volatile = 0; - if (g_once_init_enter (&events_branch_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventsBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsBranch), 0, (GInstanceInitFunc) events_branch_instance_init, NULL }; - GType events_branch_type_id; - events_branch_type_id = g_type_register_static (SIDEBAR_TYPE_BRANCH, "EventsBranch", &g_define_type_info, 0); - g_once_init_leave (&events_branch_type_id__volatile, events_branch_type_id); - } - return events_branch_type_id__volatile; -} - - -EventsDirectoryEntry* -events_directory_entry_construct (GType object_type) -{ - EventsDirectoryEntry * self = NULL; -#line 375 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = (EventsDirectoryEntry*) sidebar_simple_page_entry_construct (object_type); -#line 375 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return self; -#line 3372 "EventsBranch.c" -} - - -static gchar* -events_directory_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) -{ - EventsDirectoryEntry * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 378 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_DIRECTORY_ENTRY, EventsDirectoryEntry); -#line 379 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = events_branch_icon; -#line 379 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 379 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp1_; -#line 379 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 3393 "EventsBranch.c" -} - - -static gboolean -events_directory_entry_real_expand_on_select (SidebarExpandableEntry* base) -{ - EventsDirectoryEntry * self; - gboolean result = FALSE; -#line 382 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_DIRECTORY_ENTRY, EventsDirectoryEntry); -#line 383 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = TRUE; -#line 383 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 3408 "EventsBranch.c" -} - - -static void -events_directory_entry_class_init (EventsDirectoryEntryClass * klass) -{ -#line 374 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_directory_entry_parent_class = g_type_class_peek_parent (klass); -#line 374 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) events_directory_entry_real_get_sidebar_icon; -#line 3419 "EventsBranch.c" -} - - -static void -events_directory_entry_sidebar_expandable_entry_interface_init (SidebarExpandableEntryIface * iface) -{ -#line 374 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_directory_entry_sidebar_expandable_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 374 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - iface->expand_on_select = (gboolean (*) (SidebarExpandableEntry *)) events_directory_entry_real_expand_on_select; -#line 3430 "EventsBranch.c" -} - - -static void -events_directory_entry_instance_init (EventsDirectoryEntry * self) -{ -} - - -GType -events_directory_entry_get_type (void) -{ - static volatile gsize events_directory_entry_type_id__volatile = 0; - if (g_once_init_enter (&events_directory_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventsDirectoryEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_directory_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsDirectoryEntry), 0, (GInstanceInitFunc) events_directory_entry_instance_init, NULL }; - static const GInterfaceInfo sidebar_expandable_entry_info = { (GInterfaceInitFunc) events_directory_entry_sidebar_expandable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType events_directory_entry_type_id; - events_directory_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "EventsDirectoryEntry", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_type_add_interface_static (events_directory_entry_type_id, SIDEBAR_TYPE_EXPANDABLE_ENTRY, &sidebar_expandable_entry_info); - g_once_init_leave (&events_directory_entry_type_id__volatile, events_directory_entry_type_id); - } - return events_directory_entry_type_id__volatile; -} - - -EventsMasterDirectoryEntry* -events_master_directory_entry_construct (GType object_type) -{ - EventsMasterDirectoryEntry * self = NULL; -#line 388 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = (EventsMasterDirectoryEntry*) events_directory_entry_construct (object_type); -#line 388 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return self; -#line 3464 "EventsBranch.c" -} - - -EventsMasterDirectoryEntry* -events_master_directory_entry_new (void) -{ -#line 388 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return events_master_directory_entry_construct (EVENTS_TYPE_MASTER_DIRECTORY_ENTRY); -#line 3473 "EventsBranch.c" -} - - -static gchar* -events_master_directory_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) -{ - EventsMasterDirectoryEntry * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 391 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntry); -#line 392 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = g_strdup (MASTER_EVENTS_DIRECTORY_PAGE_NAME); -#line 392 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp0_; -#line 392 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 3491 "EventsBranch.c" -} - - -static gchar* -events_master_directory_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) -{ - EventsMasterDirectoryEntry * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 395 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntry); -#line 396 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = events_branch_events_icon; -#line 396 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 396 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp1_; -#line 396 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 3512 "EventsBranch.c" -} - - -static Page* -events_master_directory_entry_real_create_page (SidebarSimplePageEntry* base) -{ - EventsMasterDirectoryEntry * self; - Page* result = NULL; - MasterEventsDirectoryPage* _tmp0_; -#line 399 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntry); -#line 400 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = master_events_directory_page_new (); -#line 400 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_object_ref_sink (_tmp0_); -#line 400 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page); -#line 400 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 3532 "EventsBranch.c" -} - - -static void -events_master_directory_entry_class_init (EventsMasterDirectoryEntryClass * klass) -{ -#line 387 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_master_directory_entry_parent_class = g_type_class_peek_parent (klass); -#line 387 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) events_master_directory_entry_real_get_sidebar_name; -#line 387 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) events_master_directory_entry_real_get_sidebar_icon; -#line 387 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) events_master_directory_entry_real_create_page; -#line 3547 "EventsBranch.c" -} - - -static void -events_master_directory_entry_instance_init (EventsMasterDirectoryEntry * self) -{ -} - - -GType -events_master_directory_entry_get_type (void) -{ - static volatile gsize events_master_directory_entry_type_id__volatile = 0; - if (g_once_init_enter (&events_master_directory_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventsMasterDirectoryEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_master_directory_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsMasterDirectoryEntry), 0, (GInstanceInitFunc) events_master_directory_entry_instance_init, NULL }; - GType events_master_directory_entry_type_id; - events_master_directory_entry_type_id = g_type_register_static (EVENTS_TYPE_DIRECTORY_ENTRY, "EventsMasterDirectoryEntry", &g_define_type_info, 0); - g_once_init_leave (&events_master_directory_entry_type_id__volatile, events_master_directory_entry_type_id); - } - return events_master_directory_entry_type_id__volatile; -} - - -EventsYearDirectoryEntry* -events_year_directory_entry_construct (GType object_type, - const gchar* name, - struct tm* tm) -{ - EventsYearDirectoryEntry * self = NULL; - gchar* _tmp0_; - struct tm _tmp1_; -#line 408 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 408 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (tm != NULL, NULL); -#line 408 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = (EventsYearDirectoryEntry*) events_directory_entry_construct (object_type); -#line 409 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = g_strdup (name); -#line 409 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_free0 (self->priv->name); -#line 409 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self->priv->name = _tmp0_; -#line 410 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = *tm; -#line 410 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self->priv->tm = _tmp1_; -#line 408 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return self; -#line 3597 "EventsBranch.c" -} - - -EventsYearDirectoryEntry* -events_year_directory_entry_new (const gchar* name, - struct tm* tm) -{ -#line 408 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return events_year_directory_entry_construct (EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, name, tm); -#line 3607 "EventsBranch.c" -} - - -static gchar* -events_year_directory_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) -{ - EventsYearDirectoryEntry * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 413 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntry); -#line 414 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = self->priv->name; -#line 414 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 414 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp1_; -#line 414 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 3628 "EventsBranch.c" -} - - -gint -events_year_directory_entry_get_year (EventsYearDirectoryEntry* self) -{ - gint result = 0; - struct tm _tmp0_; - gint _tmp1_; -#line 417 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (EVENTS_IS_YEAR_DIRECTORY_ENTRY (self), 0); -#line 418 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = self->priv->tm; -#line 418 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = _tmp0_.tm_year; -#line 418 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp1_ + 1900; -#line 418 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 3648 "EventsBranch.c" -} - - -static Page* -events_year_directory_entry_real_create_page (SidebarSimplePageEntry* base) -{ - EventsYearDirectoryEntry * self; - Page* result = NULL; - struct tm _tmp0_; - SubEventsDirectoryPage* _tmp1_; -#line 421 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntry); -#line 422 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = self->priv->tm; -#line 422 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = sub_events_directory_page_new (SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_YEAR, &_tmp0_); -#line 422 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_object_ref_sink (_tmp1_); -#line 422 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page); -#line 422 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 3671 "EventsBranch.c" -} - - -static void -events_year_directory_entry_class_init (EventsYearDirectoryEntryClass * klass) -{ -#line 404 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_year_directory_entry_parent_class = g_type_class_peek_parent (klass); -#line 404 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_type_class_add_private (klass, sizeof (EventsYearDirectoryEntryPrivate)); -#line 404 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) events_year_directory_entry_real_get_sidebar_name; -#line 404 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) events_year_directory_entry_real_create_page; -#line 404 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - G_OBJECT_CLASS (klass)->finalize = events_year_directory_entry_finalize; -#line 3688 "EventsBranch.c" -} - - -static void -events_year_directory_entry_instance_init (EventsYearDirectoryEntry * self) -{ -#line 404 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self->priv = EVENTS_YEAR_DIRECTORY_ENTRY_GET_PRIVATE (self); -#line 3697 "EventsBranch.c" -} - - -static void -events_year_directory_entry_finalize (GObject * obj) -{ - EventsYearDirectoryEntry * self; -#line 404 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EVENTS_TYPE_YEAR_DIRECTORY_ENTRY, EventsYearDirectoryEntry); -#line 405 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_free0 (self->priv->name); -#line 404 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - G_OBJECT_CLASS (events_year_directory_entry_parent_class)->finalize (obj); -#line 3711 "EventsBranch.c" -} - - -GType -events_year_directory_entry_get_type (void) -{ - static volatile gsize events_year_directory_entry_type_id__volatile = 0; - if (g_once_init_enter (&events_year_directory_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventsYearDirectoryEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_year_directory_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsYearDirectoryEntry), 0, (GInstanceInitFunc) events_year_directory_entry_instance_init, NULL }; - GType events_year_directory_entry_type_id; - events_year_directory_entry_type_id = g_type_register_static (EVENTS_TYPE_DIRECTORY_ENTRY, "EventsYearDirectoryEntry", &g_define_type_info, 0); - g_once_init_leave (&events_year_directory_entry_type_id__volatile, events_year_directory_entry_type_id); - } - return events_year_directory_entry_type_id__volatile; -} - - -EventsMonthDirectoryEntry* -events_month_directory_entry_construct (GType object_type, - const gchar* name, - struct tm* tm) -{ - EventsMonthDirectoryEntry * self = NULL; - gchar* _tmp0_; - struct tm _tmp1_; -#line 430 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 430 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (tm != NULL, NULL); -#line 430 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = (EventsMonthDirectoryEntry*) events_directory_entry_construct (object_type); -#line 431 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = g_strdup (name); -#line 431 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_free0 (self->priv->name); -#line 431 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self->priv->name = _tmp0_; -#line 432 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = *tm; -#line 432 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self->priv->tm = _tmp1_; -#line 430 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return self; -#line 3755 "EventsBranch.c" -} - - -EventsMonthDirectoryEntry* -events_month_directory_entry_new (const gchar* name, - struct tm* tm) -{ -#line 430 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return events_month_directory_entry_construct (EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, name, tm); -#line 3765 "EventsBranch.c" -} - - -static gchar* -events_month_directory_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) -{ - EventsMonthDirectoryEntry * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 435 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntry); -#line 436 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = self->priv->name; -#line 436 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 436 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp1_; -#line 436 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 3786 "EventsBranch.c" -} - - -gint -events_month_directory_entry_get_year (EventsMonthDirectoryEntry* self) -{ - gint result = 0; - struct tm _tmp0_; - gint _tmp1_; -#line 439 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (EVENTS_IS_MONTH_DIRECTORY_ENTRY (self), 0); -#line 440 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = self->priv->tm; -#line 440 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = _tmp0_.tm_year; -#line 440 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp1_ + 1900; -#line 440 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 3806 "EventsBranch.c" -} - - -gint -events_month_directory_entry_get_month (EventsMonthDirectoryEntry* self) -{ - gint result = 0; - struct tm _tmp0_; - gint _tmp1_; -#line 443 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (EVENTS_IS_MONTH_DIRECTORY_ENTRY (self), 0); -#line 444 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = self->priv->tm; -#line 444 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = _tmp0_.tm_mon; -#line 444 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp1_ + 1; -#line 444 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 3826 "EventsBranch.c" -} - - -static Page* -events_month_directory_entry_real_create_page (SidebarSimplePageEntry* base) -{ - EventsMonthDirectoryEntry * self; - Page* result = NULL; - struct tm _tmp0_; - SubEventsDirectoryPage* _tmp1_; -#line 447 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntry); -#line 448 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = self->priv->tm; -#line 448 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = sub_events_directory_page_new (SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_MONTH, &_tmp0_); -#line 448 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_object_ref_sink (_tmp1_); -#line 448 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page); -#line 448 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 3849 "EventsBranch.c" -} - - -static void -events_month_directory_entry_class_init (EventsMonthDirectoryEntryClass * klass) -{ -#line 426 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_month_directory_entry_parent_class = g_type_class_peek_parent (klass); -#line 426 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_type_class_add_private (klass, sizeof (EventsMonthDirectoryEntryPrivate)); -#line 426 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) events_month_directory_entry_real_get_sidebar_name; -#line 426 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) events_month_directory_entry_real_create_page; -#line 426 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - G_OBJECT_CLASS (klass)->finalize = events_month_directory_entry_finalize; -#line 3866 "EventsBranch.c" -} - - -static void -events_month_directory_entry_instance_init (EventsMonthDirectoryEntry * self) -{ -#line 426 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self->priv = EVENTS_MONTH_DIRECTORY_ENTRY_GET_PRIVATE (self); -#line 3875 "EventsBranch.c" -} - - -static void -events_month_directory_entry_finalize (GObject * obj) -{ - EventsMonthDirectoryEntry * self; -#line 426 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EVENTS_TYPE_MONTH_DIRECTORY_ENTRY, EventsMonthDirectoryEntry); -#line 427 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_free0 (self->priv->name); -#line 426 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - G_OBJECT_CLASS (events_month_directory_entry_parent_class)->finalize (obj); -#line 3889 "EventsBranch.c" -} - - -GType -events_month_directory_entry_get_type (void) -{ - static volatile gsize events_month_directory_entry_type_id__volatile = 0; - if (g_once_init_enter (&events_month_directory_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventsMonthDirectoryEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_month_directory_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsMonthDirectoryEntry), 0, (GInstanceInitFunc) events_month_directory_entry_instance_init, NULL }; - GType events_month_directory_entry_type_id; - events_month_directory_entry_type_id = g_type_register_static (EVENTS_TYPE_DIRECTORY_ENTRY, "EventsMonthDirectoryEntry", &g_define_type_info, 0); - g_once_init_leave (&events_month_directory_entry_type_id__volatile, events_month_directory_entry_type_id); - } - return events_month_directory_entry_type_id__volatile; -} - - -EventsUndatedDirectoryEntry* -events_undated_directory_entry_construct (GType object_type) -{ - EventsUndatedDirectoryEntry * self = NULL; -#line 453 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = (EventsUndatedDirectoryEntry*) events_directory_entry_construct (object_type); -#line 453 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return self; -#line 3915 "EventsBranch.c" -} - - -EventsUndatedDirectoryEntry* -events_undated_directory_entry_new (void) -{ -#line 453 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return events_undated_directory_entry_construct (EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY); -#line 3924 "EventsBranch.c" -} - - -static gchar* -events_undated_directory_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) -{ - EventsUndatedDirectoryEntry * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 456 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY, EventsUndatedDirectoryEntry); -#line 457 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = g_strdup (SUB_EVENTS_DIRECTORY_PAGE_UNDATED_PAGE_NAME); -#line 457 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp0_; -#line 457 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 3942 "EventsBranch.c" -} - - -static Page* -events_undated_directory_entry_real_create_page (SidebarSimplePageEntry* base) -{ - EventsUndatedDirectoryEntry * self; - Page* result = NULL; - struct tm _tmp0_ = {0}; - SubEventsDirectoryPage* _tmp1_; -#line 460 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_UNDATED_DIRECTORY_ENTRY, EventsUndatedDirectoryEntry); -#line 461 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_time_local ((time_t) 0, &_tmp0_); -#line 461 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = sub_events_directory_page_new (SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_UNDATED, &_tmp0_); -#line 461 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_object_ref_sink (_tmp1_); -#line 461 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page); -#line 461 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 3965 "EventsBranch.c" -} - - -static void -events_undated_directory_entry_class_init (EventsUndatedDirectoryEntryClass * klass) -{ -#line 452 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_undated_directory_entry_parent_class = g_type_class_peek_parent (klass); -#line 452 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) events_undated_directory_entry_real_get_sidebar_name; -#line 452 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) events_undated_directory_entry_real_create_page; -#line 3978 "EventsBranch.c" -} - - -static void -events_undated_directory_entry_instance_init (EventsUndatedDirectoryEntry * self) -{ -} - - -GType -events_undated_directory_entry_get_type (void) -{ - static volatile gsize events_undated_directory_entry_type_id__volatile = 0; - if (g_once_init_enter (&events_undated_directory_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventsUndatedDirectoryEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_undated_directory_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsUndatedDirectoryEntry), 0, (GInstanceInitFunc) events_undated_directory_entry_instance_init, NULL }; - GType events_undated_directory_entry_type_id; - events_undated_directory_entry_type_id = g_type_register_static (EVENTS_TYPE_DIRECTORY_ENTRY, "EventsUndatedDirectoryEntry", &g_define_type_info, 0); - g_once_init_leave (&events_undated_directory_entry_type_id__volatile, events_undated_directory_entry_type_id); - } - return events_undated_directory_entry_type_id__volatile; -} - - -EventsEventEntry* -events_event_entry_construct (GType object_type, - Event* event) -{ - EventsEventEntry * self = NULL; - Event* _tmp0_; -#line 470 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (IS_EVENT (event), NULL); -#line 470 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = (EventsEventEntry*) sidebar_simple_page_entry_construct (object_type); -#line 471 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = _g_object_ref0 (event); -#line 471 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (self->priv->event); -#line 471 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self->priv->event = _tmp0_; -#line 470 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return self; -#line 4020 "EventsBranch.c" -} - - -EventsEventEntry* -events_event_entry_new (Event* event) -{ -#line 470 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return events_event_entry_construct (EVENTS_TYPE_EVENT_ENTRY, event); -#line 4029 "EventsBranch.c" -} - - -Event* -events_event_entry_get_event (EventsEventEntry* self) -{ - Event* result = NULL; - Event* _tmp0_; - Event* _tmp1_; -#line 474 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (EVENTS_IS_EVENT_ENTRY (self), NULL); -#line 475 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = self->priv->event; -#line 475 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 475 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp1_; -#line 475 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 4049 "EventsBranch.c" -} - - -static gchar* -events_event_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) -{ - EventsEventEntry * self; - gchar* result = NULL; - Event* _tmp0_; - gchar* _tmp1_; -#line 478 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry); -#line 479 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = self->priv->event; -#line 479 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject)); -#line 479 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp1_; -#line 479 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 4070 "EventsBranch.c" -} - - -static gchar* -events_event_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) -{ - EventsEventEntry * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 482 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry); -#line 483 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = events_branch_single_event_icon; -#line 483 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 483 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp1_; -#line 483 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 4091 "EventsBranch.c" -} - - -static Page* -events_event_entry_real_create_page (SidebarSimplePageEntry* base) -{ - EventsEventEntry * self; - Page* result = NULL; - Event* _tmp0_; - EventPage* _tmp1_; -#line 486 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry); -#line 487 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = self->priv->event; -#line 487 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = event_page_new (_tmp0_); -#line 487 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_object_ref_sink (_tmp1_); -#line 487 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page); -#line 487 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 4114 "EventsBranch.c" -} - - -static gboolean -events_event_entry_real_is_user_renameable (SidebarRenameableEntry* base) -{ - EventsEventEntry * self; - gboolean result = FALSE; -#line 490 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry); -#line 491 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = TRUE; -#line 491 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 4129 "EventsBranch.c" -} - - -static void -events_event_entry_real_rename (SidebarRenameableEntry* base, - const gchar* new_name) -{ - EventsEventEntry * self; - gchar* prepped = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 494 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry); -#line 494 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_if_fail (new_name != NULL); -#line 495 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = event_prep_event_name (new_name); -#line 495 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - prepped = _tmp0_; -#line 496 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = prepped; -#line 496 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (_tmp1_ != NULL) { -#line 4153 "EventsBranch.c" - CommandManager* _tmp2_; - CommandManager* _tmp3_; - Event* _tmp4_; - const gchar* _tmp5_; - RenameEventCommand* _tmp6_; - RenameEventCommand* _tmp7_; -#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = app_window_get_command_manager (); -#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = _tmp2_; -#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp4_ = self->priv->event; -#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp5_ = prepped; -#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp6_ = rename_event_command_new (_tmp4_, _tmp5_); -#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp7_ = _tmp6_; -#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - command_manager_execute (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_COMMAND, Command)); -#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp7_); -#line 497 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _command_manager_unref0 (_tmp3_); -#line 4178 "EventsBranch.c" - } -#line 494 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_free0 (prepped); -#line 4182 "EventsBranch.c" -} - - -static gboolean -events_event_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base, - GeeList* media) -{ - EventsEventEntry * self; - gboolean result = FALSE; - GeeArrayList* views = NULL; - GeeArrayList* _tmp0_; - CommandManager* _tmp15_; - CommandManager* _tmp16_; - GeeArrayList* _tmp17_; - Event* _tmp18_; - SetEventCommand* _tmp19_; - SetEventCommand* _tmp20_; -#line 500 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry); -#line 500 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (GEE_IS_LIST (media), FALSE); -#line 503 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = gee_array_list_new (TYPE_DATA_VIEW, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 503 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - views = _tmp0_; -#line 4208 "EventsBranch.c" - { - GeeList* _media_source_list = NULL; - GeeList* _tmp1_; - gint _media_source_size = 0; - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _media_source_index = 0; -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = _g_object_ref0 (media); -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _media_source_list = _tmp1_; -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp2_ = _media_source_list; -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp4_ = _tmp3_; -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _media_source_size = _tmp4_; -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _media_source_index = -1; -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - while (TRUE) { -#line 4233 "EventsBranch.c" - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - MediaSource* media_source = NULL; - GeeList* _tmp8_; - gint _tmp9_; - gpointer _tmp10_; - GeeArrayList* _tmp11_; - MediaSource* _tmp12_; - DataView* _tmp13_; - DataView* _tmp14_; -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp5_ = _media_source_index; -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _media_source_index = _tmp5_ + 1; -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp6_ = _media_source_index; -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp7_ = _media_source_size; -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - if (!(_tmp6_ < _tmp7_)) { -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - break; -#line 4257 "EventsBranch.c" - } -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp8_ = _media_source_list; -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp9_ = _media_source_index; -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp10_ = gee_list_get (_tmp8_, _tmp9_); -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - media_source = (MediaSource*) _tmp10_; -#line 505 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp11_ = views; -#line 505 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp12_ = media_source; -#line 505 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp13_ = data_view_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_SOURCE, DataSource)); -#line 505 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp14_ = _tmp13_; -#line 505 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp14_); -#line 505 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp14_); -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (media_source); -#line 4281 "EventsBranch.c" - } -#line 504 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_media_source_list); -#line 4285 "EventsBranch.c" - } -#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp15_ = app_window_get_command_manager (); -#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp16_ = _tmp15_; -#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp17_ = views; -#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp18_ = self->priv->event; -#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp19_ = set_event_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ITERABLE, GeeIterable), _tmp18_); -#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp20_ = _tmp19_; -#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - command_manager_execute (_tmp16_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_COMMAND, Command)); -#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (_tmp20_); -#line 507 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _command_manager_unref0 (_tmp16_); -#line 509 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = TRUE; -#line 509 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (views); -#line 509 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 4311 "EventsBranch.c" -} - - -static gboolean -events_event_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, - GtkSelectionData* data) -{ - EventsEventEntry * self; - gboolean result = FALSE; -#line 512 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry); -#line 512 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_return_val_if_fail (data != NULL, FALSE); -#line 513 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = FALSE; -#line 513 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 4329 "EventsBranch.c" -} - - -static void -events_event_entry_class_init (EventsEventEntryClass * klass) -{ -#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_event_entry_parent_class = g_type_class_peek_parent (klass); -#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_type_class_add_private (klass, sizeof (EventsEventEntryPrivate)); -#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) events_event_entry_real_get_sidebar_name; -#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) events_event_entry_real_get_sidebar_icon; -#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) events_event_entry_real_create_page; -#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - G_OBJECT_CLASS (klass)->finalize = events_event_entry_finalize; -#line 4348 "EventsBranch.c" -} - - -static void -events_event_entry_sidebar_renameable_entry_interface_init (SidebarRenameableEntryIface * iface) -{ -#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_event_entry_sidebar_renameable_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - iface->is_user_renameable = (gboolean (*) (SidebarRenameableEntry *)) events_event_entry_real_is_user_renameable; -#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - iface->rename = (void (*) (SidebarRenameableEntry *, const gchar*)) events_event_entry_real_rename; -#line 4361 "EventsBranch.c" -} - - -static void -events_event_entry_sidebar_internal_drop_target_entry_interface_init (SidebarInternalDropTargetEntryIface * iface) -{ -#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_event_entry_sidebar_internal_drop_target_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - iface->internal_drop_received = (gboolean (*) (SidebarInternalDropTargetEntry *, GeeList*)) events_event_entry_real_internal_drop_received; -#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - iface->internal_drop_received_arbitrary = (gboolean (*) (SidebarInternalDropTargetEntry *, GtkSelectionData*)) events_event_entry_real_internal_drop_received_arbitrary; -#line 4374 "EventsBranch.c" -} - - -static void -events_event_entry_instance_init (EventsEventEntry * self) -{ -#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self->priv = EVENTS_EVENT_ENTRY_GET_PRIVATE (self); -#line 4383 "EventsBranch.c" -} - - -static void -events_event_entry_finalize (GObject * obj) -{ - EventsEventEntry * self; -#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry); -#line 468 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _g_object_unref0 (self->priv->event); -#line 466 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - G_OBJECT_CLASS (events_event_entry_parent_class)->finalize (obj); -#line 4397 "EventsBranch.c" -} - - -GType -events_event_entry_get_type (void) -{ - static volatile gsize events_event_entry_type_id__volatile = 0; - if (g_once_init_enter (&events_event_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventsEventEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_event_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsEventEntry), 0, (GInstanceInitFunc) events_event_entry_instance_init, NULL }; - static const GInterfaceInfo sidebar_renameable_entry_info = { (GInterfaceInitFunc) events_event_entry_sidebar_renameable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo sidebar_internal_drop_target_entry_info = { (GInterfaceInitFunc) events_event_entry_sidebar_internal_drop_target_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType events_event_entry_type_id; - events_event_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "EventsEventEntry", &g_define_type_info, 0); - g_type_add_interface_static (events_event_entry_type_id, SIDEBAR_TYPE_RENAMEABLE_ENTRY, &sidebar_renameable_entry_info); - g_type_add_interface_static (events_event_entry_type_id, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, &sidebar_internal_drop_target_entry_info); - g_once_init_leave (&events_event_entry_type_id__volatile, events_event_entry_type_id); - } - return events_event_entry_type_id__volatile; -} - - -EventsNoEventEntry* -events_no_event_entry_construct (GType object_type) -{ - EventsNoEventEntry * self = NULL; -#line 519 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = (EventsNoEventEntry*) sidebar_simple_page_entry_construct (object_type); -#line 519 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return self; -#line 4427 "EventsBranch.c" -} - - -EventsNoEventEntry* -events_no_event_entry_new (void) -{ -#line 519 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return events_no_event_entry_construct (EVENTS_TYPE_NO_EVENT_ENTRY); -#line 4436 "EventsBranch.c" -} - - -static gchar* -events_no_event_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) -{ - EventsNoEventEntry * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 522 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_NO_EVENT_ENTRY, EventsNoEventEntry); -#line 523 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = g_strdup (NO_EVENT_PAGE_NAME); -#line 523 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp0_; -#line 523 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 4454 "EventsBranch.c" -} - - -static gchar* -events_no_event_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) -{ - EventsNoEventEntry * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 526 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_NO_EVENT_ENTRY, EventsNoEventEntry); -#line 527 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = events_branch_no_event_icon; -#line 527 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 527 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = _tmp1_; -#line 527 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 4475 "EventsBranch.c" -} - - -static Page* -events_no_event_entry_real_create_page (SidebarSimplePageEntry* base) -{ - EventsNoEventEntry * self; - Page* result = NULL; - NoEventPage* _tmp0_; -#line 530 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_TYPE_NO_EVENT_ENTRY, EventsNoEventEntry); -#line 531 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - _tmp0_ = no_event_page_new (); -#line 531 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - g_object_ref_sink (_tmp0_); -#line 531 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page); -#line 531 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - return result; -#line 4495 "EventsBranch.c" -} - - -static void -events_no_event_entry_class_init (EventsNoEventEntryClass * klass) -{ -#line 518 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - events_no_event_entry_parent_class = g_type_class_peek_parent (klass); -#line 518 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) events_no_event_entry_real_get_sidebar_name; -#line 518 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) events_no_event_entry_real_get_sidebar_icon; -#line 518 "/home/jens/Source/shotwell/src/events/EventsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) events_no_event_entry_real_create_page; -#line 4510 "EventsBranch.c" -} - - -static void -events_no_event_entry_instance_init (EventsNoEventEntry * self) -{ -} - - -GType -events_no_event_entry_get_type (void) -{ - static volatile gsize events_no_event_entry_type_id__volatile = 0; - if (g_once_init_enter (&events_no_event_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventsNoEventEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_no_event_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsNoEventEntry), 0, (GInstanceInitFunc) events_no_event_entry_instance_init, NULL }; - GType events_no_event_entry_type_id; - events_no_event_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "EventsNoEventEntry", &g_define_type_info, 0); - g_once_init_leave (&events_no_event_entry_type_id__volatile, events_no_event_entry_type_id); - } - return events_no_event_entry_type_id__volatile; -} - - - diff --git a/src/events/EventsDirectoryPage.c b/src/events/EventsDirectoryPage.c deleted file mode 100644 index 0eb6a88..0000000 --- a/src/events/EventsDirectoryPage.c +++ /dev/null @@ -1,3249 +0,0 @@ -/* EventsDirectoryPage.c generated by valac 0.40.4, the Vala compiler - * generated from EventsDirectoryPage.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; -typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; - -#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ()) - -#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ()) -typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ()) -#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)) -#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) -#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER)) -#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER)) -#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) - -typedef struct _SearchViewFilter SearchViewFilter; -typedef struct _SearchViewFilterClass SearchViewFilterClass; - -#define CORE_TYPE_TRACKER (core_tracker_get_type ()) -#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) -#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) -#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) -#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) -#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) - -typedef struct _CoreTracker CoreTracker; -typedef struct _CoreTrackerClass CoreTrackerClass; - -#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) -#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) -#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) -#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) -#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) -#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) - -typedef struct _CoreViewTracker CoreViewTracker; -typedef struct _CoreViewTrackerClass CoreViewTrackerClass; - -#define TYPE_EVENTS_DIRECTORY_PAGE (events_directory_page_get_type ()) -#define EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage)) -#define EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPageClass)) -#define IS_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENTS_DIRECTORY_PAGE)) -#define IS_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENTS_DIRECTORY_PAGE)) -#define EVENTS_DIRECTORY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPageClass)) - -typedef struct _EventsDirectoryPage EventsDirectoryPage; -typedef struct _EventsDirectoryPageClass EventsDirectoryPageClass; -typedef struct _EventsDirectoryPagePrivate EventsDirectoryPagePrivate; - -#define TYPE_VIEW_MANAGER (view_manager_get_type ()) -#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager)) -#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass)) -#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER)) -#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER)) -#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass)) - -typedef struct _ViewManager ViewManager; -typedef struct _ViewManagerClass ViewManagerClass; - -#define EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER (events_directory_page_events_directory_search_view_filter_get_type ()) -#define EVENTS_DIRECTORY_PAGE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER, EventsDirectoryPageEventsDirectorySearchViewFilter)) -#define EVENTS_DIRECTORY_PAGE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER, EventsDirectoryPageEventsDirectorySearchViewFilterClass)) -#define EVENTS_DIRECTORY_PAGE_IS_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER)) -#define EVENTS_DIRECTORY_PAGE_IS_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER)) -#define EVENTS_DIRECTORY_PAGE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER, EventsDirectoryPageEventsDirectorySearchViewFilterClass)) - -typedef struct _EventsDirectoryPageEventsDirectorySearchViewFilter EventsDirectoryPageEventsDirectorySearchViewFilter; -typedef struct _EventsDirectoryPageEventsDirectorySearchViewFilterClass EventsDirectoryPageEventsDirectorySearchViewFilterClass; -enum { - EVENTS_DIRECTORY_PAGE_0_PROPERTY, - EVENTS_DIRECTORY_PAGE_NUM_PROPERTIES -}; -static GParamSpec* events_directory_page_properties[EVENTS_DIRECTORY_PAGE_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL))) -#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL))) - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_EVENT_SOURCE (event_source_get_type ()) -#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource)) -#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass)) -#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE)) -#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE)) -#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass)) - -typedef struct _EventSource EventSource; -typedef struct _EventSourceClass EventSourceClass; - -#define TYPE_EVENT (event_get_type ()) -#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event)) -#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass)) -#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT)) -#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT)) -#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass)) - -typedef struct _Event Event; -typedef struct _EventClass EventClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ()) -#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor)) -#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) -#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) - -typedef struct _ViewCollectionMonitor ViewCollectionMonitor; -typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_EVENT_SOURCE_COLLECTION (event_source_collection_get_type ()) -#define EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollection)) -#define EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass)) -#define IS_EVENT_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE_COLLECTION)) -#define IS_EVENT_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE_COLLECTION)) -#define EVENT_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE_COLLECTION, EventSourceCollectionClass)) - -typedef struct _EventSourceCollection EventSourceCollection; -typedef struct _EventSourceCollectionClass EventSourceCollectionClass; -#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL))) - -#define TYPE_EVENT_DIRECTORY_ITEM (event_directory_item_get_type ()) -#define EVENT_DIRECTORY_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem)) -#define EVENT_DIRECTORY_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItemClass)) -#define IS_EVENT_DIRECTORY_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_DIRECTORY_ITEM)) -#define IS_EVENT_DIRECTORY_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_DIRECTORY_ITEM)) -#define EVENT_DIRECTORY_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItemClass)) - -typedef struct _EventDirectoryItem EventDirectoryItem; -typedef struct _EventDirectoryItemClass EventDirectoryItemClass; -typedef struct _DataObjectPrivate DataObjectPrivate; -typedef struct _DataViewPrivate DataViewPrivate; -typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate; -typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -typedef struct _EventDirectoryItemPrivate EventDirectoryItemPrivate; -#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; - -#define TYPE_TEXT_ENTRY_DIALOG_MEDIATOR (text_entry_dialog_mediator_get_type ()) -#define TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator)) -#define TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass)) -#define IS_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define IS_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass)) - -typedef struct _TextEntryDialogMediator TextEntryDialogMediator; -typedef struct _TextEntryDialogMediatorClass TextEntryDialogMediatorClass; - -#define TYPE_EVENT_RENAME_DIALOG (event_rename_dialog_get_type ()) -#define EVENT_RENAME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_RENAME_DIALOG, EventRenameDialog)) -#define EVENT_RENAME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_RENAME_DIALOG, EventRenameDialogClass)) -#define IS_EVENT_RENAME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_RENAME_DIALOG)) -#define IS_EVENT_RENAME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_RENAME_DIALOG)) -#define EVENT_RENAME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_RENAME_DIALOG, EventRenameDialogClass)) - -typedef struct _EventRenameDialog EventRenameDialog; -typedef struct _EventRenameDialogClass EventRenameDialogClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (text_entry_dialog_mediator_unref (var), NULL))) - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; - -#define TYPE_SIMPLE_PROXYABLE_COMMAND (simple_proxyable_command_get_type ()) -#define SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand)) -#define SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass)) -#define IS_SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND)) -#define IS_SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND)) -#define SIMPLE_PROXYABLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass)) - -typedef struct _SimpleProxyableCommand SimpleProxyableCommand; -typedef struct _SimpleProxyableCommandClass SimpleProxyableCommandClass; - -#define TYPE_RENAME_EVENT_COMMAND (rename_event_command_get_type ()) -#define RENAME_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RENAME_EVENT_COMMAND, RenameEventCommand)) -#define RENAME_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RENAME_EVENT_COMMAND, RenameEventCommandClass)) -#define IS_RENAME_EVENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RENAME_EVENT_COMMAND)) -#define IS_RENAME_EVENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RENAME_EVENT_COMMAND)) -#define RENAME_EVENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RENAME_EVENT_COMMAND, RenameEventCommandClass)) - -typedef struct _RenameEventCommand RenameEventCommand; -typedef struct _RenameEventCommandClass RenameEventCommandClass; - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) - -#define TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR (multi_text_entry_dialog_mediator_get_type ()) -#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediator)) -#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass)) -#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define IS_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define MULTI_TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTI_TEXT_ENTRY_DIALOG_MEDIATOR, MultiTextEntryDialogMediatorClass)) - -typedef struct _MultiTextEntryDialogMediator MultiTextEntryDialogMediator; -typedef struct _MultiTextEntryDialogMediatorClass MultiTextEntryDialogMediatorClass; - -#define TYPE_EDIT_COMMENT_DIALOG (edit_comment_dialog_get_type ()) -#define EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialog)) -#define EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass)) -#define IS_EDIT_COMMENT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_COMMENT_DIALOG)) -#define IS_EDIT_COMMENT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_COMMENT_DIALOG)) -#define EDIT_COMMENT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_COMMENT_DIALOG, EditCommentDialogClass)) - -typedef struct _EditCommentDialog EditCommentDialog; -typedef struct _EditCommentDialogClass EditCommentDialogClass; -#define _multi_text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (multi_text_entry_dialog_mediator_unref (var), NULL))) - -#define TYPE_EDIT_EVENT_COMMENT_COMMAND (edit_event_comment_command_get_type ()) -#define EDIT_EVENT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommand)) -#define EDIT_EVENT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommandClass)) -#define IS_EDIT_EVENT_COMMENT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND)) -#define IS_EDIT_EVENT_COMMENT_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDIT_EVENT_COMMENT_COMMAND)) -#define EDIT_EVENT_COMMENT_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDIT_EVENT_COMMENT_COMMAND, EditEventCommentCommandClass)) - -typedef struct _EditEventCommentCommand EditEventCommentCommand; -typedef struct _EditEventCommentCommandClass EditEventCommentCommandClass; - -#define TYPE_MOVE_PHOTOS_COMMAND (move_photos_command_get_type ()) -#define MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommand)) -#define MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass)) -#define IS_MOVE_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MOVE_PHOTOS_COMMAND)) -#define IS_MOVE_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MOVE_PHOTOS_COMMAND)) -#define MOVE_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MOVE_PHOTOS_COMMAND, MovePhotosCommandClass)) - -typedef struct _MovePhotosCommand MovePhotosCommand; -typedef struct _MovePhotosCommandClass MovePhotosCommandClass; - -#define TYPE_MERGE_EVENTS_COMMAND (merge_events_command_get_type ()) -#define MERGE_EVENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MERGE_EVENTS_COMMAND, MergeEventsCommand)) -#define MERGE_EVENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MERGE_EVENTS_COMMAND, MergeEventsCommandClass)) -#define IS_MERGE_EVENTS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MERGE_EVENTS_COMMAND)) -#define IS_MERGE_EVENTS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MERGE_EVENTS_COMMAND)) -#define MERGE_EVENTS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MERGE_EVENTS_COMMAND, MergeEventsCommandClass)) - -typedef struct _MergeEventsCommand MergeEventsCommand; -typedef struct _MergeEventsCommandClass MergeEventsCommandClass; -typedef struct _ViewManagerPrivate ViewManagerPrivate; - -#define EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER (events_directory_page_event_directory_manager_get_type ()) -#define EVENTS_DIRECTORY_PAGE_EVENT_DIRECTORY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER, EventsDirectoryPageEventDirectoryManager)) -#define EVENTS_DIRECTORY_PAGE_EVENT_DIRECTORY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER, EventsDirectoryPageEventDirectoryManagerClass)) -#define EVENTS_DIRECTORY_PAGE_IS_EVENT_DIRECTORY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER)) -#define EVENTS_DIRECTORY_PAGE_IS_EVENT_DIRECTORY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER)) -#define EVENTS_DIRECTORY_PAGE_EVENT_DIRECTORY_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER, EventsDirectoryPageEventDirectoryManagerClass)) - -typedef struct _EventsDirectoryPageEventDirectoryManager EventsDirectoryPageEventDirectoryManager; -typedef struct _EventsDirectoryPageEventDirectoryManagerClass EventsDirectoryPageEventDirectoryManagerClass; -typedef struct _EventsDirectoryPageEventDirectoryManagerPrivate EventsDirectoryPageEventDirectoryManagerPrivate; -typedef struct _ViewFilterPrivate ViewFilterPrivate; -typedef struct _SearchViewFilterPrivate SearchViewFilterPrivate; -typedef struct _EventsDirectoryPageEventsDirectorySearchViewFilterPrivate EventsDirectoryPageEventsDirectorySearchViewFilterPrivate; - -#define TYPE_SEARCH_FILTER_CRITERIA (search_filter_criteria_get_type ()) - -#define TYPE_INDEXABLE (indexable_get_type ()) -#define INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDEXABLE, Indexable)) -#define IS_INDEXABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDEXABLE)) -#define INDEXABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_INDEXABLE, IndexableIface)) - -typedef struct _Indexable Indexable; -typedef struct _IndexableIface IndexableIface; - -#define TYPE_MASTER_EVENTS_DIRECTORY_PAGE (master_events_directory_page_get_type ()) -#define MASTER_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MASTER_EVENTS_DIRECTORY_PAGE, MasterEventsDirectoryPage)) -#define MASTER_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MASTER_EVENTS_DIRECTORY_PAGE, MasterEventsDirectoryPageClass)) -#define IS_MASTER_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MASTER_EVENTS_DIRECTORY_PAGE)) -#define IS_MASTER_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MASTER_EVENTS_DIRECTORY_PAGE)) -#define MASTER_EVENTS_DIRECTORY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MASTER_EVENTS_DIRECTORY_PAGE, MasterEventsDirectoryPageClass)) - -typedef struct _MasterEventsDirectoryPage MasterEventsDirectoryPage; -typedef struct _MasterEventsDirectoryPageClass MasterEventsDirectoryPageClass; -typedef struct _MasterEventsDirectoryPagePrivate MasterEventsDirectoryPagePrivate; -enum { - MASTER_EVENTS_DIRECTORY_PAGE_0_PROPERTY, - MASTER_EVENTS_DIRECTORY_PAGE_NUM_PROPERTIES -}; -static GParamSpec* master_events_directory_page_properties[MASTER_EVENTS_DIRECTORY_PAGE_NUM_PROPERTIES]; - -#define TYPE_SUB_EVENTS_DIRECTORY_PAGE (sub_events_directory_page_get_type ()) -#define SUB_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SUB_EVENTS_DIRECTORY_PAGE, SubEventsDirectoryPage)) -#define SUB_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SUB_EVENTS_DIRECTORY_PAGE, SubEventsDirectoryPageClass)) -#define IS_SUB_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SUB_EVENTS_DIRECTORY_PAGE)) -#define IS_SUB_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SUB_EVENTS_DIRECTORY_PAGE)) -#define SUB_EVENTS_DIRECTORY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SUB_EVENTS_DIRECTORY_PAGE, SubEventsDirectoryPageClass)) - -typedef struct _SubEventsDirectoryPage SubEventsDirectoryPage; -typedef struct _SubEventsDirectoryPageClass SubEventsDirectoryPageClass; -typedef struct _SubEventsDirectoryPagePrivate SubEventsDirectoryPagePrivate; -enum { - SUB_EVENTS_DIRECTORY_PAGE_0_PROPERTY, - SUB_EVENTS_DIRECTORY_PAGE_NUM_PROPERTIES -}; -static GParamSpec* sub_events_directory_page_properties[SUB_EVENTS_DIRECTORY_PAGE_NUM_PROPERTIES]; - -#define SUB_EVENTS_DIRECTORY_PAGE_TYPE_DIRECTORY_TYPE (sub_events_directory_page_directory_type_get_type ()) - -#define SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER (sub_events_directory_page_sub_event_directory_manager_get_type ()) -#define SUB_EVENTS_DIRECTORY_PAGE_SUB_EVENT_DIRECTORY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManager)) -#define SUB_EVENTS_DIRECTORY_PAGE_SUB_EVENT_DIRECTORY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManagerClass)) -#define SUB_EVENTS_DIRECTORY_PAGE_IS_SUB_EVENT_DIRECTORY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER)) -#define SUB_EVENTS_DIRECTORY_PAGE_IS_SUB_EVENT_DIRECTORY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER)) -#define SUB_EVENTS_DIRECTORY_PAGE_SUB_EVENT_DIRECTORY_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManagerClass)) - -typedef struct _SubEventsDirectoryPageSubEventDirectoryManager SubEventsDirectoryPageSubEventDirectoryManager; -typedef struct _SubEventsDirectoryPageSubEventDirectoryManagerClass SubEventsDirectoryPageSubEventDirectoryManagerClass; -typedef struct _SubEventsDirectoryPageSubEventDirectoryManagerPrivate SubEventsDirectoryPageSubEventDirectoryManagerPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -typedef enum { - CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, - CHECKERBOARD_PAGE_ACTIVATOR_MOUSE -} CheckerboardPageActivator; - -struct _CheckerboardPageKeyboardModifiers { - gboolean ctrl_pressed; - gboolean alt_pressed; - gboolean shift_pressed; - gboolean super_pressed; -}; - -struct _CheckerboardPage { - Page parent_instance; - CheckerboardPagePrivate * priv; - CheckerboardItem* anchor; - CheckerboardItem* cursor; -}; - -struct _CheckerboardPageClass { - PageClass parent_class; - GtkMenu* (*get_item_context_menu) (CheckerboardPage* self); - gchar* (*get_view_empty_message) (CheckerboardPage* self); - gchar* (*get_filter_no_match_message) (CheckerboardPage* self); - void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers); - SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self); - CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self); - gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask); - void (*set_display_titles) (CheckerboardPage* self, gboolean display); - void (*set_display_comments) (CheckerboardPage* self, gboolean display); -}; - -struct _EventsDirectoryPage { - CheckerboardPage parent_instance; - EventsDirectoryPagePrivate * priv; - ViewManager* view_manager; -}; - -struct _EventsDirectoryPageClass { - CheckerboardPageClass parent_class; -}; - -struct _EventsDirectoryPagePrivate { - EventsDirectoryPageEventsDirectorySearchViewFilter* search_filter; -}; - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -typedef gboolean (*ComparatorPredicate) (DataObject* object, Alteration* alteration, void* user_data); -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -typedef gboolean (*ValueEqualFunc) (GValue* a, GValue* b, void* user_data); -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataView { - DataObject parent_instance; - DataViewPrivate * priv; -}; - -struct _DataViewClass { - DataObjectClass parent_class; - void (*notify_view_altered) (DataView* self); - void (*notify_geometry_altered) (DataView* self); - void (*notify_unsubscribed) (DataView* self, DataSource* source); - void (*state_changed) (DataView* self, gboolean selected); - void (*visibility_changed) (DataView* self, gboolean visible); - void (*view_altered) (DataView* self); - void (*geometry_altered) (DataView* self); - void (*unsubscribed) (DataView* self, DataSource* source); -}; - -struct _ThumbnailView { - DataView parent_instance; - ThumbnailViewPrivate * priv; -}; - -struct _ThumbnailViewClass { - DataViewClass parent_class; - void (*notify_thumbnail_altered) (ThumbnailView* self); - void (*thumbnail_altered) (ThumbnailView* self); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _CheckerboardItem { - ThumbnailView parent_instance; - CheckerboardItemPrivate * priv; - Dimensions requisition; - GdkRectangle allocation; -}; - -struct _CheckerboardItemClass { - ThumbnailViewClass parent_class; - void (*exposed) (CheckerboardItem* self); - void (*unexposed) (CheckerboardItem* self); - gboolean (*is_exposed) (CheckerboardItem* self); - void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha); - void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width); - void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin); - GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale); -}; - -struct _EventDirectoryItem { - CheckerboardItem parent_instance; - EventDirectoryItemPrivate * priv; - Event* event; -}; - -struct _EventDirectoryItemClass { - CheckerboardItemClass parent_class; -}; - -struct _ViewManager { - GTypeInstance parent_instance; - volatile int ref_count; - ViewManagerPrivate * priv; -}; - -struct _ViewManagerClass { - GTypeClass parent_class; - void (*finalize) (ViewManager *self); - gboolean (*include_in_view) (ViewManager* self, DataSource* source); - DataView* (*create_view) (ViewManager* self, DataSource* source); -}; - -struct _EventsDirectoryPageEventDirectoryManager { - ViewManager parent_instance; - EventsDirectoryPageEventDirectoryManagerPrivate * priv; -}; - -struct _EventsDirectoryPageEventDirectoryManagerClass { - ViewManagerClass parent_class; -}; - -struct _ViewFilter { - GTypeInstance parent_instance; - volatile int ref_count; - ViewFilterPrivate * priv; -}; - -struct _ViewFilterClass { - GTypeClass parent_class; - void (*finalize) (ViewFilter *self); - gboolean (*predicate) (ViewFilter* self, DataView* view); - void (*refresh) (ViewFilter* self); -}; - -struct _SearchViewFilter { - ViewFilter parent_instance; - SearchViewFilterPrivate * priv; -}; - -struct _SearchViewFilterClass { - ViewFilterClass parent_class; - guint (*get_criteria) (SearchViewFilter* self); -}; - -struct _EventsDirectoryPageEventsDirectorySearchViewFilter { - SearchViewFilter parent_instance; - EventsDirectoryPageEventsDirectorySearchViewFilterPrivate * priv; -}; - -struct _EventsDirectoryPageEventsDirectorySearchViewFilterClass { - SearchViewFilterClass parent_class; -}; - -typedef enum { - SEARCH_FILTER_CRITERIA_NONE = 0, - SEARCH_FILTER_CRITERIA_RECURSIVE = 1 << 0, - SEARCH_FILTER_CRITERIA_TEXT = 1 << 1, - SEARCH_FILTER_CRITERIA_FLAG = 1 << 2, - SEARCH_FILTER_CRITERIA_MEDIA = 1 << 3, - SEARCH_FILTER_CRITERIA_RATING = 1 << 4, - SEARCH_FILTER_CRITERIA_SAVEDSEARCH = 1 << 5, - SEARCH_FILTER_CRITERIA_ALL = 0xFFFFFFFFLL -} SearchFilterCriteria; - -struct _IndexableIface { - GTypeInterface parent_iface; - const gchar* (*get_indexable_keywords) (Indexable* self); -}; - -struct _MasterEventsDirectoryPage { - EventsDirectoryPage parent_instance; - MasterEventsDirectoryPagePrivate * priv; -}; - -struct _MasterEventsDirectoryPageClass { - EventsDirectoryPageClass parent_class; -}; - -struct _SubEventsDirectoryPage { - EventsDirectoryPage parent_instance; - SubEventsDirectoryPagePrivate * priv; -}; - -struct _SubEventsDirectoryPageClass { - EventsDirectoryPageClass parent_class; -}; - -typedef enum { - SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_YEAR, - SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_MONTH, - SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_UNDATED -} SubEventsDirectoryPageDirectoryType; - -struct _SubEventsDirectoryPageSubEventDirectoryManager { - EventsDirectoryPageEventDirectoryManager parent_instance; - SubEventsDirectoryPageSubEventDirectoryManagerPrivate * priv; -}; - -struct _SubEventsDirectoryPageSubEventDirectoryManagerClass { - EventsDirectoryPageEventDirectoryManagerClass parent_class; -}; - -struct _SubEventsDirectoryPageSubEventDirectoryManagerPrivate { - gint month; - gint year; - SubEventsDirectoryPageDirectoryType type; -}; - - -static gpointer events_directory_page_parent_class = NULL; -extern EventSourceCollection* event_global; -static gpointer events_directory_page_event_directory_manager_parent_class = NULL; -static gpointer events_directory_page_events_directory_search_view_filter_parent_class = NULL; -static gpointer master_events_directory_page_parent_class = NULL; -static gpointer sub_events_directory_page_parent_class = NULL; -static gpointer sub_events_directory_page_sub_event_directory_manager_parent_class = NULL; - -GType page_get_type (void) G_GNUC_CONST; -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType checkerboard_page_activator_get_type (void) G_GNUC_CONST; -GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST; -CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self); -void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self); -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -GType search_view_filter_get_type (void) G_GNUC_CONST; -gpointer core_tracker_ref (gpointer instance); -void core_tracker_unref (gpointer instance); -GParamSpec* core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void core_value_set_tracker (GValue* value, - gpointer v_object); -void core_value_take_tracker (GValue* value, - gpointer v_object); -gpointer core_value_get_tracker (const GValue* value); -GType core_tracker_get_type (void) G_GNUC_CONST; -GType core_view_tracker_get_type (void) G_GNUC_CONST; -GType events_directory_page_get_type (void) G_GNUC_CONST; -gpointer view_manager_ref (gpointer instance); -void view_manager_unref (gpointer instance); -GParamSpec* param_spec_view_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_manager (GValue* value, - gpointer v_object); -void value_take_view_manager (GValue* value, - gpointer v_object); -gpointer value_get_view_manager (const GValue* value); -GType view_manager_get_type (void) G_GNUC_CONST; -static GType events_directory_page_events_directory_search_view_filter_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define EVENTS_DIRECTORY_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPagePrivate)) -GAction* page_get_action (Page* self, - const gchar* name); -static void events_directory_page_on_sort_changed (EventsDirectoryPage* self, - GSimpleAction* action, - GVariant* value); -static void _events_directory_page_on_sort_changed_g_simple_action_change_state (GSimpleAction* _sender, - GVariant* value, - gpointer self); -static EventsDirectoryPageEventsDirectorySearchViewFilter* events_directory_page_events_directory_search_view_filter_new (void); -static EventsDirectoryPageEventsDirectorySearchViewFilter* events_directory_page_events_directory_search_view_filter_construct (GType object_type); -#define EVENTS_DIRECTORY_PAGE_MIN_PHOTOS_FOR_PROGRESS_WINDOW 50 -static void events_directory_page_on_rename (EventsDirectoryPage* self); -static void _events_directory_page_on_rename_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void events_directory_page_on_merge (EventsDirectoryPage* self); -static void _events_directory_page_on_merge_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void events_directory_page_on_edit_comment (EventsDirectoryPage* self); -static void _events_directory_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -void page_on_action_toggle (Page* self, - GAction* action, - GVariant* value); -static void _page_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void events_directory_page_on_display_comments (EventsDirectoryPage* self, - GSimpleAction* action, - GVariant* value); -static void _events_directory_page_on_display_comments_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType event_source_get_type (void) G_GNUC_CONST; -GType event_get_type (void) G_GNUC_CONST; -EventsDirectoryPage* events_directory_page_construct (GType object_type, - const gchar* page_name, - ViewManager* view_manager, - GeeCollection* initial_events); -CheckerboardPage* checkerboard_page_construct (GType object_type, - const gchar* page_name); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -void data_collection_set_comparator (DataCollection* self, - Comparator comparator, - void* comparator_target, - ComparatorPredicate predicate, - void* predicate_target); -static Comparator events_directory_page_get_event_comparator (gboolean ascending, - void** result_target, - GDestroyNotify* result_target_destroy_notify); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gboolean configuration_facade_get_events_sort_ascending (ConfigurationFacade* self); -gboolean events_directory_page_event_comparator_predicate (DataObject* object, - Alteration* alteration); -static gboolean _events_directory_page_event_comparator_predicate_comparator_predicate (DataObject* object, - Alteration* alteration, - gpointer self); -GType source_collection_get_type (void) G_GNUC_CONST; -gpointer view_collection_monitor_ref (gpointer instance); -void view_collection_monitor_unref (gpointer instance); -GParamSpec* view_collection_param_spec_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void view_collection_value_set_monitor (GValue* value, - gpointer v_object); -void view_collection_value_take_monitor (GValue* value, - gpointer v_object); -gpointer view_collection_value_get_monitor (const GValue* value); -GType view_collection_monitor_get_type (void) G_GNUC_CONST; -ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self, - SourceCollection* sources, - ViewManager* manager, - Alteration* prereq, - GeeCollection* initial, - ProgressMonitor progress_monitor, - void* progress_monitor_target); -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType event_source_collection_get_type (void) G_GNUC_CONST; -void data_collection_set_property (DataCollection* self, - const gchar* name, - GValue* val, - ValueEqualFunc value_equals, - void* value_equals_target); -#define EVENT_PROP_SHOW_COMMENTS "show-comments" -gboolean configuration_facade_get_display_event_comments (ConfigurationFacade* self); -void checkerboard_page_init_item_context_menu (CheckerboardPage* self, - const gchar* path); -GtkToolbar* page_get_toolbar (Page* self); -#define RESOURCES_MERGE_LABEL _ ("Merge") -#define RESOURCES_MERGE_TOOLTIP _ ("Combine events into a single event") -static void events_directory_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames); -void page_init_collect_ui_filenames (Page* self, - GeeList* ui_filenames); -gboolean alteration_has_detail (Alteration* self, - const gchar* subject, - const gchar* detail); -static gint64 events_directory_page_event_ascending_comparator (void* a, - void* b); -GType event_directory_item_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -time_t event_source_get_start_time (EventSource* self); -static gint64 events_directory_page_event_descending_comparator (void* a, - void* b); -static gint64 _events_directory_page_event_ascending_comparator_comparator (void* a, - void* b, - gpointer self); -static gint64 _events_directory_page_event_descending_comparator_comparator (void* a, - void* b, - gpointer self); -static void events_directory_page_real_add_actions (Page* base, - GActionMap* map); -void page_add_actions (Page* self, - GActionMap* map); -static GVariant* _variant_new14 (gboolean value); -static void events_directory_page_real_remove_actions (Page* base, - GActionMap* map); -void page_remove_actions (Page* self, - GActionMap* map); -static void events_directory_page_real_init_actions (Page* base, - gint selected_count, - gint count); -void page_init_actions (Page* self, - gint selected_count, - gint count); -static void events_directory_page_real_update_actions (Page* base, - gint selected_count, - gint count); -void page_set_action_sensitive (Page* self, - const gchar* name, - gboolean sensitive); -void page_update_actions (Page* self, - gint selected_count, - gint count); -static gchar* events_directory_page_real_get_view_empty_message (CheckerboardPage* base); -static gchar* events_directory_page_real_get_filter_no_match_message (CheckerboardPage* base); -static void events_directory_page_real_on_item_activated (CheckerboardPage* base, - CheckerboardItem* item, - CheckerboardPageActivator activator, - CheckerboardPageKeyboardModifiers* modifiers); -GType app_window_get_type (void) G_GNUC_CONST; -GType library_window_get_type (void) G_GNUC_CONST; -LibraryWindow* library_window_get_app (void); -void library_window_switch_to_event (LibraryWindow* self, - Event* event); -#define LIBRARY_WINDOW_SORT_EVENTS_ORDER_ASCENDING "ascending" -gint view_collection_get_selected_count (ViewCollection* self); -DataView* view_collection_get_selected_at (ViewCollection* self, - gint index); -gpointer text_entry_dialog_mediator_ref (gpointer instance); -void text_entry_dialog_mediator_unref (gpointer instance); -GParamSpec* param_spec_text_entry_dialog_mediator (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -void value_take_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -gpointer value_get_text_entry_dialog_mediator (const GValue* value); -GType text_entry_dialog_mediator_get_type (void) G_GNUC_CONST; -GType event_rename_dialog_get_type (void) G_GNUC_CONST; -gchar* event_get_raw_name (Event* self); -EventRenameDialog* event_rename_dialog_new (const gchar* event_name); -EventRenameDialog* event_rename_dialog_construct (GType object_type, - const gchar* event_name); -gchar* event_rename_dialog_execute (EventRenameDialog* self); -GType command_get_type (void) G_GNUC_CONST; -GType page_command_get_type (void) G_GNUC_CONST; -GType simple_proxyable_command_get_type (void) G_GNUC_CONST; -GType rename_event_command_get_type (void) G_GNUC_CONST; -RenameEventCommand* rename_event_command_new (Event* event, - const gchar* new_name); -RenameEventCommand* rename_event_command_construct (GType object_type, - Event* event, - const gchar* new_name); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* page_get_command_manager (Page* self); -void command_manager_execute (CommandManager* self, - Command* command); -gpointer multi_text_entry_dialog_mediator_ref (gpointer instance); -void multi_text_entry_dialog_mediator_unref (gpointer instance); -GParamSpec* param_spec_multi_text_entry_dialog_mediator (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_multi_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -void value_take_multi_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -gpointer value_get_multi_text_entry_dialog_mediator (const GValue* value); -GType multi_text_entry_dialog_mediator_get_type (void) G_GNUC_CONST; -GType edit_comment_dialog_get_type (void) G_GNUC_CONST; -gchar* event_source_get_comment (EventSource* self); -EditCommentDialog* edit_comment_dialog_new (const gchar* comment, - gboolean is_event); -EditCommentDialog* edit_comment_dialog_construct (GType object_type, - const gchar* comment, - gboolean is_event); -gchar* edit_comment_dialog_execute (EditCommentDialog* self); -GType edit_event_comment_command_get_type (void) G_GNUC_CONST; -EditEventCommentCommand* edit_event_comment_command_new (Event* event, - const gchar* new_comment); -EditEventCommentCommand* edit_event_comment_command_construct (GType object_type, - Event* event, - const gchar* new_comment); -GType move_photos_command_get_type (void) G_GNUC_CONST; -GType merge_events_command_get_type (void) G_GNUC_CONST; -GeeList* view_collection_get_selected (ViewCollection* self); -MergeEventsCommand* merge_events_command_new (GeeIterable* iter); -MergeEventsCommand* merge_events_command_construct (GType object_type, - GeeIterable* iter); -void checkerboard_page_set_display_comments (CheckerboardPage* self, - gboolean display); -void configuration_facade_set_display_event_comments (ConfigurationFacade* self, - gboolean display); -static SearchViewFilter* events_directory_page_real_get_search_view_filter (CheckerboardPage* base); -GType events_directory_page_event_directory_manager_get_type (void) G_GNUC_CONST; -static DataView* events_directory_page_event_directory_manager_real_create_view (ViewManager* base, - DataSource* source); -EventDirectoryItem* event_directory_item_new (Event* event); -EventDirectoryItem* event_directory_item_construct (GType object_type, - Event* event); -EventsDirectoryPageEventDirectoryManager* events_directory_page_event_directory_manager_new (void); -EventsDirectoryPageEventDirectoryManager* events_directory_page_event_directory_manager_construct (GType object_type); -ViewManager* view_manager_construct (GType object_type); -static guint events_directory_page_events_directory_search_view_filter_real_get_criteria (SearchViewFilter* base); -GType search_filter_criteria_get_type (void) G_GNUC_CONST; -static gboolean events_directory_page_events_directory_search_view_filter_real_predicate (ViewFilter* base, - DataView* view); -DataSource* data_view_get_source (DataView* self); -gboolean is_string_empty (const gchar* s); -const gchar* search_view_filter_get_search_filter (SearchViewFilter* self); -GType indexable_get_type (void) G_GNUC_CONST; -const gchar* indexable_get_indexable_keywords (Indexable* self); -gchar** search_view_filter_get_search_filter_words (SearchViewFilter* self, - int* result_length1); -SearchViewFilter* search_view_filter_construct (GType object_type); -static void events_directory_page_finalize (GObject * obj); -GType master_events_directory_page_get_type (void) G_GNUC_CONST; -#define MASTER_EVENTS_DIRECTORY_PAGE_NAME _ ("All Events") -MasterEventsDirectoryPage* master_events_directory_page_new (void); -MasterEventsDirectoryPage* master_events_directory_page_construct (GType object_type); -GeeCollection* data_collection_get_all (DataCollection* self); -GType sub_events_directory_page_get_type (void) G_GNUC_CONST; -GType sub_events_directory_page_directory_type_get_type (void) G_GNUC_CONST; -#define SUB_EVENTS_DIRECTORY_PAGE_UNDATED_PAGE_NAME _ ("Undated") -#define SUB_EVENTS_DIRECTORY_PAGE_YEAR_FORMAT _ ("%Y") -#define SUB_EVENTS_DIRECTORY_PAGE_MONTH_FORMAT _ ("%B") -SubEventsDirectoryPage* sub_events_directory_page_new (SubEventsDirectoryPageDirectoryType type, - struct tm* time); -SubEventsDirectoryPage* sub_events_directory_page_construct (GType object_type, - SubEventsDirectoryPageDirectoryType type, - struct tm* time); -static SubEventsDirectoryPageSubEventDirectoryManager* sub_events_directory_page_sub_event_directory_manager_new (SubEventsDirectoryPageDirectoryType type, - struct tm* time); -static SubEventsDirectoryPageSubEventDirectoryManager* sub_events_directory_page_sub_event_directory_manager_construct (GType object_type, - SubEventsDirectoryPageDirectoryType type, - struct tm* time); -static GType sub_events_directory_page_sub_event_directory_manager_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -gint sub_events_directory_page_get_month (SubEventsDirectoryPage* self); -static gint sub_events_directory_page_sub_event_directory_manager_get_month (SubEventsDirectoryPageSubEventDirectoryManager* self); -gint sub_events_directory_page_get_year (SubEventsDirectoryPage* self); -static gint sub_events_directory_page_sub_event_directory_manager_get_year (SubEventsDirectoryPageSubEventDirectoryManager* self); -SubEventsDirectoryPageDirectoryType sub_events_directory_page_get_event_directory_type (SubEventsDirectoryPage* self); -static SubEventsDirectoryPageDirectoryType sub_events_directory_page_sub_event_directory_manager_get_event_directory_type (SubEventsDirectoryPageSubEventDirectoryManager* self); -#define SUB_EVENTS_DIRECTORY_PAGE_SUB_EVENT_DIRECTORY_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManagerPrivate)) -static gboolean sub_events_directory_page_sub_event_directory_manager_real_include_in_view (ViewManager* base, - DataSource* source); -gboolean view_manager_include_in_view (ViewManager* self, - DataSource* source); -static void sub_events_directory_page_sub_event_directory_manager_finalize (ViewManager * obj); - -static const GActionEntry EVENTS_DIRECTORY_PAGE_entries[4] = {{"Rename", _events_directory_page_on_rename_gsimple_action_activate_callback}, {"Merge", _events_directory_page_on_merge_gsimple_action_activate_callback}, {"EditComment", _events_directory_page_on_edit_comment_gsimple_action_activate_callback}, {"ViewComment", _page_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _events_directory_page_on_display_comments_gsimple_action_change_state_callback}}; - -static void -_events_directory_page_on_sort_changed_g_simple_action_change_state (GSimpleAction* _sender, - GVariant* value, - gpointer self) -{ -#line 77 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - events_directory_page_on_sort_changed ((EventsDirectoryPage*) self, _sender, value); -#line 1295 "EventsDirectoryPage.c" -} - - -static void -_events_directory_page_on_rename_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 108 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - events_directory_page_on_rename ((EventsDirectoryPage*) self); -#line 1306 "EventsDirectoryPage.c" -} - - -static void -_events_directory_page_on_merge_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 108 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - events_directory_page_on_merge ((EventsDirectoryPage*) self); -#line 1317 "EventsDirectoryPage.c" -} - - -static void -_events_directory_page_on_edit_comment_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 108 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - events_directory_page_on_edit_comment ((EventsDirectoryPage*) self); -#line 1328 "EventsDirectoryPage.c" -} - - -static void -_page_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 108 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - page_on_action_toggle ((Page*) self, action, parameter); -#line 1339 "EventsDirectoryPage.c" -} - - -static void -_events_directory_page_on_display_comments_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 108 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - events_directory_page_on_display_comments ((EventsDirectoryPage*) self, action, value); -#line 1350 "EventsDirectoryPage.c" -} - - -static gboolean -_events_directory_page_event_comparator_predicate_comparator_predicate (DataObject* object, - Alteration* alteration, - gpointer self) -{ - gboolean result; - result = events_directory_page_event_comparator_predicate (object, alteration); -#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 1363 "EventsDirectoryPage.c" -} - - -static gpointer -_view_manager_ref0 (gpointer self) -{ -#line 59 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return self ? view_manager_ref (self) : NULL; -#line 1372 "EventsDirectoryPage.c" -} - - -EventsDirectoryPage* -events_directory_page_construct (GType object_type, - const gchar* page_name, - ViewManager* view_manager, - GeeCollection* initial_events) -{ - EventsDirectoryPage * self = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - ConfigFacade* _tmp2_; - ConfigFacade* _tmp3_; - void* _tmp4_; - GDestroyNotify _tmp5_; - Comparator _tmp6_; - Comparator _tmp7_; - void* _tmp7__target; - GDestroyNotify _tmp7__target_destroy_notify; - ViewCollection* _tmp8_; - ViewCollection* _tmp9_; - EventSourceCollection* _tmp10_; - ViewCollectionMonitor* _tmp11_; - ViewCollectionMonitor* _tmp12_; - ViewCollection* _tmp13_; - ViewCollection* _tmp14_; - ConfigFacade* _tmp15_; - ConfigFacade* _tmp16_; - GValue _tmp17_ = {0}; - ViewManager* _tmp18_; - GtkToolbar* toolbar = NULL; - GtkToolbar* _tmp19_; - GtkToolButton* merge_button = NULL; - GtkToolButton* _tmp20_; -#line 45 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_val_if_fail (page_name != NULL, NULL); -#line 45 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_val_if_fail (IS_VIEW_MANAGER (view_manager), NULL); -#line 45 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_val_if_fail ((initial_events == NULL) || GEE_IS_COLLECTION (initial_events), NULL); -#line 47 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = (EventsDirectoryPage*) checkerboard_page_construct (object_type, page_name); -#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = _tmp0_; -#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp2_ = config_facade_get_instance (); -#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp3_ = _tmp2_; -#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp6_ = events_directory_page_get_event_comparator (configuration_facade_get_events_sort_ascending (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)), &_tmp4_, &_tmp5_); -#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp7_ = _tmp6_; -#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp7__target = _tmp4_; -#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp7__target_destroy_notify = _tmp5_; -#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - data_collection_set_comparator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), _tmp7_, _tmp4_, _events_directory_page_event_comparator_predicate_comparator_predicate, NULL); -#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - (_tmp7__target_destroy_notify == NULL) ? NULL : (_tmp7__target_destroy_notify (_tmp7__target), NULL); -#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp7_ = NULL; -#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp7__target = NULL; -#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp7__target_destroy_notify = NULL; -#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (_tmp3_); -#line 50 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _data_collection_unref0 (_tmp1_); -#line 52 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp8_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 52 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp9_ = _tmp8_; -#line 52 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp10_ = event_global; -#line 52 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp11_ = view_collection_monitor_source_collection (_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_SOURCE_COLLECTION, SourceCollection), view_manager, NULL, initial_events, NULL, NULL); -#line 52 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp12_ = _tmp11_; -#line 52 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _view_collection_monitor_unref0 (_tmp12_); -#line 52 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _data_collection_unref0 (_tmp9_); -#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp13_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp14_ = _tmp13_; -#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp15_ = config_facade_get_instance (); -#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp16_ = _tmp15_; -#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_value_init (&_tmp17_, G_TYPE_BOOLEAN); -#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_value_set_boolean (&_tmp17_, configuration_facade_get_display_event_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - data_collection_set_property (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_DATA_COLLECTION, DataCollection), EVENT_PROP_SHOW_COMMENTS, &_tmp17_, NULL, NULL); -#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - G_IS_VALUE (&_tmp17_) ? (g_value_unset (&_tmp17_), NULL) : NULL; -#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (_tmp16_); -#line 54 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _data_collection_unref0 (_tmp14_); -#line 57 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - checkerboard_page_init_item_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "EventsDirectoryContextMenu"); -#line 59 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp18_ = _view_manager_ref0 (view_manager); -#line 59 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _view_manager_unref0 (self->view_manager); -#line 59 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self->view_manager = _tmp18_; -#line 62 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp19_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 62 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - toolbar = _tmp19_; -#line 65 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp20_ = (GtkToolButton*) gtk_tool_button_new (NULL, RESOURCES_MERGE_LABEL); -#line 65 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_object_ref_sink (_tmp20_); -#line 65 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - merge_button = _tmp20_; -#line 66 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (merge_button, gtk_actionable_get_type (), GtkActionable), "win.Merge"); -#line 67 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - gtk_tool_item_set_is_important (G_TYPE_CHECK_INSTANCE_CAST (merge_button, gtk_tool_item_get_type (), GtkToolItem), TRUE); -#line 68 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - gtk_tool_item_set_tooltip_text (G_TYPE_CHECK_INSTANCE_CAST (merge_button, gtk_tool_item_get_type (), GtkToolItem), RESOURCES_MERGE_TOOLTIP); -#line 69 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - gtk_tool_button_set_icon_name (merge_button, "merge"); -#line 71 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (merge_button, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 45 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (merge_button); -#line 45 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (toolbar); -#line 45 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return self; -#line 1514 "EventsDirectoryPage.c" -} - - -static void -events_directory_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames) -{ - EventsDirectoryPage * self; -#line 80 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); -#line 80 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 81 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "events_directory.ui"); -#line 83 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - PAGE_CLASS (events_directory_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), ui_filenames); -#line 1531 "EventsDirectoryPage.c" -} - - -gboolean -events_directory_page_event_comparator_predicate (DataObject* object, - Alteration* alteration) -{ - gboolean result = FALSE; -#line 86 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_val_if_fail (IS_DATA_OBJECT (object), FALSE); -#line 86 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_val_if_fail (IS_ALTERATION (alteration), FALSE); -#line 87 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = alteration_has_detail (alteration, "metadata", "time"); -#line 87 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 1548 "EventsDirectoryPage.c" -} - - -static gint64 -events_directory_page_event_ascending_comparator (void* a, - void* b) -{ - gint64 result = 0LL; - time_t start_a = 0; - Event* _tmp0_; - time_t start_b = 0; - Event* _tmp1_; -#line 91 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST ((EventDirectoryItem*) a, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem)->event; -#line 91 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - start_a = event_source_get_start_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_EVENT_SOURCE, EventSource)); -#line 92 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST ((EventDirectoryItem*) b, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem)->event; -#line 92 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - start_b = event_source_get_start_time (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_EVENT_SOURCE, EventSource)); -#line 94 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = (gint64) (start_a - start_b); -#line 94 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 1573 "EventsDirectoryPage.c" -} - - -static gint64 -events_directory_page_event_descending_comparator (void* a, - void* b) -{ - gint64 result = 0LL; -#line 98 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = events_directory_page_event_ascending_comparator (b, a); -#line 98 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 1586 "EventsDirectoryPage.c" -} - - -static gint64 -_events_directory_page_event_ascending_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = events_directory_page_event_ascending_comparator (a, b); -#line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 1599 "EventsDirectoryPage.c" -} - - -static gint64 -_events_directory_page_event_descending_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = events_directory_page_event_descending_comparator (a, b); -#line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 1612 "EventsDirectoryPage.c" -} - - -static Comparator -events_directory_page_get_event_comparator (gboolean ascending, - void** result_target, - GDestroyNotify* result_target_destroy_notify) -{ - Comparator result = NULL; -#line 102 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - if (ascending) { -#line 1624 "EventsDirectoryPage.c" - Comparator _tmp0_; - void* _tmp0__target; - GDestroyNotify _tmp0__target_destroy_notify; -#line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = _events_directory_page_event_ascending_comparator_comparator; -#line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0__target = NULL; -#line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0__target_destroy_notify = NULL; -#line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - *result_target = _tmp0__target; -#line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - *result_target_destroy_notify = _tmp0__target_destroy_notify; -#line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = _tmp0_; -#line 103 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 1642 "EventsDirectoryPage.c" - } else { - Comparator _tmp1_; - void* _tmp1__target; - GDestroyNotify _tmp1__target_destroy_notify; -#line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = _events_directory_page_event_descending_comparator_comparator; -#line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1__target = NULL; -#line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1__target_destroy_notify = NULL; -#line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - *result_target = _tmp1__target; -#line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - *result_target_destroy_notify = _tmp1__target_destroy_notify; -#line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = _tmp1_; -#line 105 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 1661 "EventsDirectoryPage.c" - } -} - - -static GVariant* -_variant_new14 (gboolean value) -{ -#line 122 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 1671 "EventsDirectoryPage.c" -} - - -static void -events_directory_page_real_add_actions (Page* base, - GActionMap* map) -{ - EventsDirectoryPage * self; - gboolean display_comments = FALSE; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gboolean _tmp2_; - GAction* _tmp3_; - GAction* _tmp4_; - GVariant* _tmp5_; -#line 117 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); -#line 117 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 118 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - PAGE_CLASS (events_directory_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), map); -#line 119 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_action_map_add_action_entries (map, EVENTS_DIRECTORY_PAGE_entries, G_N_ELEMENTS (EVENTS_DIRECTORY_PAGE_entries), self); -#line 121 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 121 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = _tmp0_; -#line 121 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp2_ = configuration_facade_get_display_event_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 121 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (_tmp1_); -#line 121 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - display_comments = _tmp2_; -#line 122 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp3_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "ViewComment"); -#line 122 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp4_ = _tmp3_; -#line 122 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp5_ = _variant_new14 (display_comments); -#line 122 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_action_change_state (_tmp4_, _tmp5_); -#line 122 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_variant_unref0 (_tmp5_); -#line 122 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (_tmp4_); -#line 1717 "EventsDirectoryPage.c" -} - - -static void -events_directory_page_real_remove_actions (Page* base, - GActionMap* map) -{ - EventsDirectoryPage * self; -#line 125 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); -#line 125 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 126 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - PAGE_CLASS (events_directory_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), map); -#line 1732 "EventsDirectoryPage.c" - { - GActionEntry* entry_collection = NULL; - gint entry_collection_length1 = 0; - gint _entry_collection_size_ = 0; - gint entry_it = 0; -#line 127 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - entry_collection = EVENTS_DIRECTORY_PAGE_entries; -#line 127 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - entry_collection_length1 = G_N_ELEMENTS (EVENTS_DIRECTORY_PAGE_entries); -#line 127 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - for (entry_it = 0; entry_it < G_N_ELEMENTS (EVENTS_DIRECTORY_PAGE_entries); entry_it = entry_it + 1) { -#line 1744 "EventsDirectoryPage.c" - GActionEntry entry = {0}; -#line 127 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - entry = entry_collection[entry_it]; -#line 1748 "EventsDirectoryPage.c" - { - GActionEntry _tmp0_; - const gchar* _tmp1_; -#line 128 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = entry; -#line 128 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = _tmp0_.name; -#line 128 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_action_map_remove_action (map, _tmp1_); -#line 1758 "EventsDirectoryPage.c" - } - } - } -} - - -static void -events_directory_page_real_init_actions (Page* base, - gint selected_count, - gint count) -{ - EventsDirectoryPage * self; - GSimpleAction* action = NULL; - GAction* _tmp0_; - GSimpleAction* _tmp1_; -#line 132 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); -#line 133 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - PAGE_CLASS (events_directory_page_parent_class)->init_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), selected_count, count); -#line 135 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonSortEvents"); -#line 135 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL; -#line 135 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - if (_tmp1_ == NULL) { -#line 135 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (_tmp0_); -#line 1786 "EventsDirectoryPage.c" - } -#line 135 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - action = _tmp1_; -#line 136 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _vala_assert (action != NULL, "action != null"); -#line 137 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_signal_connect_object (action, "change-state", (GCallback) _events_directory_page_on_sort_changed_g_simple_action_change_state, self, 0); -#line 132 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (action); -#line 1796 "EventsDirectoryPage.c" -} - - -static void -events_directory_page_real_update_actions (Page* base, - gint selected_count, - gint count) -{ - EventsDirectoryPage * self; -#line 140 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); -#line 141 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Merge", selected_count > 1); -#line 142 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Rename", selected_count == 1); -#line 143 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditComment", selected_count == 1); -#line 145 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - PAGE_CLASS (events_directory_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), selected_count, count); -#line 1816 "EventsDirectoryPage.c" -} - - -static gchar* -events_directory_page_real_get_view_empty_message (CheckerboardPage* base) -{ - EventsDirectoryPage * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 148 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); -#line 149 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = g_strdup (_ ("No events")); -#line 149 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = _tmp0_; -#line 149 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 1834 "EventsDirectoryPage.c" -} - - -static gchar* -events_directory_page_real_get_filter_no_match_message (CheckerboardPage* base) -{ - EventsDirectoryPage * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 152 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); -#line 153 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = g_strdup (_ ("No events found")); -#line 153 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = _tmp0_; -#line 153 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 1852 "EventsDirectoryPage.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 158 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return self ? g_object_ref (self) : NULL; -#line 1861 "EventsDirectoryPage.c" -} - - -static void -events_directory_page_real_on_item_activated (CheckerboardPage* base, - CheckerboardItem* item, - CheckerboardPageActivator activator, - CheckerboardPageKeyboardModifiers* modifiers) -{ - EventsDirectoryPage * self; - EventDirectoryItem* event = NULL; - EventDirectoryItem* _tmp0_; - LibraryWindow* _tmp1_; - LibraryWindow* _tmp2_; - Event* _tmp3_; -#line 156 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); -#line 156 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_if_fail (IS_CHECKERBOARD_ITEM (item)); -#line 156 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_if_fail (modifiers != NULL); -#line 158 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (item, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem)); -#line 158 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - event = _tmp0_; -#line 159 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = library_window_get_app (); -#line 159 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp2_ = _tmp1_; -#line 159 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp3_ = event->event; -#line 159 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - library_window_switch_to_event (_tmp2_, _tmp3_); -#line 159 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (_tmp2_); -#line 156 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (event); -#line 1899 "EventsDirectoryPage.c" -} - - -static void -events_directory_page_on_sort_changed (EventsDirectoryPage* self, - GSimpleAction* action, - GVariant* value) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - const gchar* _tmp2_; - void* _tmp3_; - GDestroyNotify _tmp4_; - Comparator _tmp5_; - Comparator _tmp6_; - void* _tmp6__target; - GDestroyNotify _tmp6__target_destroy_notify; -#line 162 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_if_fail (IS_EVENTS_DIRECTORY_PAGE (self)); -#line 162 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = _tmp0_; -#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp2_ = g_variant_get_string (value, NULL); -#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp5_ = events_directory_page_get_event_comparator (g_strcmp0 (_tmp2_, LIBRARY_WINDOW_SORT_EVENTS_ORDER_ASCENDING) == 0, &_tmp3_, &_tmp4_); -#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp6_ = _tmp5_; -#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp6__target = _tmp3_; -#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp6__target_destroy_notify = _tmp4_; -#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - data_collection_set_comparator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection), _tmp6_, _tmp3_, _events_directory_page_event_comparator_predicate_comparator_predicate, NULL); -#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - (_tmp6__target_destroy_notify == NULL) ? NULL : (_tmp6__target_destroy_notify (_tmp6__target), NULL); -#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp6_ = NULL; -#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp6__target = NULL; -#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp6__target_destroy_notify = NULL; -#line 163 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _data_collection_unref0 (_tmp1_); -#line 167 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_simple_action_set_state (action, value); -#line 1949 "EventsDirectoryPage.c" -} - - -static void -events_directory_page_on_rename (EventsDirectoryPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - EventDirectoryItem* item = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - DataView* _tmp5_; - EventDirectoryItem* _tmp6_; - EventRenameDialog* rename_dialog = NULL; - EventDirectoryItem* _tmp7_; - Event* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - EventRenameDialog* _tmp11_; - EventRenameDialog* _tmp12_; - gchar* new_name = NULL; - EventRenameDialog* _tmp13_; - gchar* _tmp14_; - const gchar* _tmp15_; - RenameEventCommand* command = NULL; - EventDirectoryItem* _tmp16_; - Event* _tmp17_; - const gchar* _tmp18_; - RenameEventCommand* _tmp19_; - CommandManager* _tmp20_; - CommandManager* _tmp21_; - RenameEventCommand* _tmp22_; -#line 170 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_if_fail (IS_EVENTS_DIRECTORY_PAGE (self)); -#line 172 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 172 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = _tmp0_; -#line 172 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1; -#line 172 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _data_collection_unref0 (_tmp1_); -#line 172 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - if (_tmp2_) { -#line 173 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return; -#line 1997 "EventsDirectoryPage.c" - } -#line 175 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 175 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp4_ = _tmp3_; -#line 175 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp5_ = view_collection_get_selected_at (_tmp4_, 0); -#line 175 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem); -#line 175 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _data_collection_unref0 (_tmp4_); -#line 175 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - item = _tmp6_; -#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp7_ = item; -#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp8_ = _tmp7_->event; -#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp9_ = event_get_raw_name (_tmp8_); -#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp10_ = _tmp9_; -#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp11_ = event_rename_dialog_new (_tmp10_); -#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp12_ = _tmp11_; -#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_free0 (_tmp10_); -#line 177 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - rename_dialog = _tmp12_; -#line 178 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp13_ = rename_dialog; -#line 178 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp14_ = event_rename_dialog_execute (_tmp13_); -#line 178 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - new_name = _tmp14_; -#line 179 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp15_ = new_name; -#line 179 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - if (_tmp15_ == NULL) { -#line 180 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_free0 (new_name); -#line 180 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _text_entry_dialog_mediator_unref0 (rename_dialog); -#line 180 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (item); -#line 180 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return; -#line 2045 "EventsDirectoryPage.c" - } -#line 182 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp16_ = item; -#line 182 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp17_ = _tmp16_->event; -#line 182 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp18_ = new_name; -#line 182 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp19_ = rename_event_command_new (_tmp17_, _tmp18_); -#line 182 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - command = _tmp19_; -#line 183 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp20_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 183 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp21_ = _tmp20_; -#line 183 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp22_ = command; -#line 183 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - command_manager_execute (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_COMMAND, Command)); -#line 183 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _command_manager_unref0 (_tmp21_); -#line 170 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (command); -#line 170 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_free0 (new_name); -#line 170 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _text_entry_dialog_mediator_unref0 (rename_dialog); -#line 170 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (item); -#line 2075 "EventsDirectoryPage.c" -} - - -void -events_directory_page_on_edit_comment (EventsDirectoryPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - EventDirectoryItem* item = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - DataView* _tmp5_; - EventDirectoryItem* _tmp6_; - EditCommentDialog* edit_comment_dialog = NULL; - EventDirectoryItem* _tmp7_; - Event* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - EditCommentDialog* _tmp11_; - EditCommentDialog* _tmp12_; - gchar* new_comment = NULL; - EditCommentDialog* _tmp13_; - gchar* _tmp14_; - const gchar* _tmp15_; - EditEventCommentCommand* command = NULL; - EventDirectoryItem* _tmp16_; - Event* _tmp17_; - const gchar* _tmp18_; - EditEventCommentCommand* _tmp19_; - CommandManager* _tmp20_; - CommandManager* _tmp21_; - EditEventCommentCommand* _tmp22_; -#line 186 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_if_fail (IS_EVENTS_DIRECTORY_PAGE (self)); -#line 188 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 188 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = _tmp0_; -#line 188 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) != 1; -#line 188 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _data_collection_unref0 (_tmp1_); -#line 188 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - if (_tmp2_) { -#line 189 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return; -#line 2123 "EventsDirectoryPage.c" - } -#line 191 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 191 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp4_ = _tmp3_; -#line 191 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp5_ = view_collection_get_selected_at (_tmp4_, 0); -#line 191 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_EVENT_DIRECTORY_ITEM, EventDirectoryItem); -#line 191 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _data_collection_unref0 (_tmp4_); -#line 191 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - item = _tmp6_; -#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp7_ = item; -#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp8_ = _tmp7_->event; -#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp9_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_EVENT_SOURCE, EventSource)); -#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp10_ = _tmp9_; -#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp11_ = edit_comment_dialog_new (_tmp10_, FALSE); -#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp12_ = _tmp11_; -#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_free0 (_tmp10_); -#line 193 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - edit_comment_dialog = _tmp12_; -#line 194 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp13_ = edit_comment_dialog; -#line 194 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp14_ = edit_comment_dialog_execute (_tmp13_); -#line 194 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - new_comment = _tmp14_; -#line 195 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp15_ = new_comment; -#line 195 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - if (_tmp15_ == NULL) { -#line 196 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_free0 (new_comment); -#line 196 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog); -#line 196 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (item); -#line 196 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return; -#line 2171 "EventsDirectoryPage.c" - } -#line 198 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp16_ = item; -#line 198 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp17_ = _tmp16_->event; -#line 198 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp18_ = new_comment; -#line 198 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp19_ = edit_event_comment_command_new (_tmp17_, _tmp18_); -#line 198 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - command = _tmp19_; -#line 199 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp20_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 199 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp21_ = _tmp20_; -#line 199 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp22_ = command; -#line 199 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - command_manager_execute (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_COMMAND, Command)); -#line 199 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _command_manager_unref0 (_tmp21_); -#line 186 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (command); -#line 186 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_free0 (new_comment); -#line 186 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _multi_text_entry_dialog_mediator_unref0 (edit_comment_dialog); -#line 186 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (item); -#line 2201 "EventsDirectoryPage.c" -} - - -static void -events_directory_page_on_merge (EventsDirectoryPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - MergeEventsCommand* command = NULL; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - GeeList* _tmp5_; - GeeList* _tmp6_; - MergeEventsCommand* _tmp7_; - MergeEventsCommand* _tmp8_; - CommandManager* _tmp9_; - CommandManager* _tmp10_; - MergeEventsCommand* _tmp11_; -#line 202 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_if_fail (IS_EVENTS_DIRECTORY_PAGE (self)); -#line 203 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 203 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = _tmp0_; -#line 203 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) <= 1; -#line 203 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _data_collection_unref0 (_tmp1_); -#line 203 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - if (_tmp2_) { -#line 204 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return; -#line 2235 "EventsDirectoryPage.c" - } -#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp4_ = _tmp3_; -#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp5_ = view_collection_get_selected (_tmp4_); -#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp6_ = _tmp5_; -#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp7_ = merge_events_command_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp8_ = _tmp7_; -#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (_tmp6_); -#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _data_collection_unref0 (_tmp4_); -#line 206 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - command = _tmp8_; -#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp9_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp10_ = _tmp9_; -#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp11_ = command; -#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - command_manager_execute (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command)); -#line 207 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _command_manager_unref0 (_tmp10_); -#line 202 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (command); -#line 2267 "EventsDirectoryPage.c" -} - - -static void -events_directory_page_on_display_comments (EventsDirectoryPage* self, - GSimpleAction* action, - GVariant* value) -{ - gboolean display = FALSE; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 210 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_if_fail (IS_EVENTS_DIRECTORY_PAGE (self)); -#line 210 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 211 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - display = g_variant_get_boolean (value); -#line 213 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - checkerboard_page_set_display_comments (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), display); -#line 215 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 215 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = _tmp0_; -#line 215 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - configuration_facade_set_display_event_comments (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), display); -#line 215 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (_tmp1_); -#line 217 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_simple_action_set_state (action, value); -#line 2297 "EventsDirectoryPage.c" -} - - -static gpointer -_view_filter_ref0 (gpointer self) -{ -#line 221 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return self ? view_filter_ref (self) : NULL; -#line 2306 "EventsDirectoryPage.c" -} - - -static SearchViewFilter* -events_directory_page_real_get_search_view_filter (CheckerboardPage* base) -{ - EventsDirectoryPage * self; - SearchViewFilter* result = NULL; - EventsDirectoryPageEventsDirectorySearchViewFilter* _tmp0_; - SearchViewFilter* _tmp1_; -#line 220 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); -#line 221 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = self->priv->search_filter; -#line 221 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 221 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = _tmp1_; -#line 221 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 2327 "EventsDirectoryPage.c" -} - - -static DataView* -events_directory_page_event_directory_manager_real_create_view (ViewManager* base, - DataSource* source) -{ - EventsDirectoryPageEventDirectoryManager * self; - DataView* result = NULL; - EventDirectoryItem* _tmp0_; -#line 9 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER, EventsDirectoryPageEventDirectoryManager); -#line 9 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), NULL); -#line 10 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = event_directory_item_new (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT, Event)); -#line 10 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_VIEW, DataView); -#line 10 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 2348 "EventsDirectoryPage.c" -} - - -EventsDirectoryPageEventDirectoryManager* -events_directory_page_event_directory_manager_construct (GType object_type) -{ - EventsDirectoryPageEventDirectoryManager* self = NULL; -#line 8 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = (EventsDirectoryPageEventDirectoryManager*) view_manager_construct (object_type); -#line 8 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return self; -#line 2360 "EventsDirectoryPage.c" -} - - -EventsDirectoryPageEventDirectoryManager* -events_directory_page_event_directory_manager_new (void) -{ -#line 8 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return events_directory_page_event_directory_manager_construct (EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER); -#line 2369 "EventsDirectoryPage.c" -} - - -static void -events_directory_page_event_directory_manager_class_init (EventsDirectoryPageEventDirectoryManagerClass * klass) -{ -#line 8 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - events_directory_page_event_directory_manager_parent_class = g_type_class_peek_parent (klass); -#line 8 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - ((ViewManagerClass *) klass)->create_view = (DataView* (*) (ViewManager *, DataSource*)) events_directory_page_event_directory_manager_real_create_view; -#line 2380 "EventsDirectoryPage.c" -} - - -static void -events_directory_page_event_directory_manager_instance_init (EventsDirectoryPageEventDirectoryManager * self) -{ -} - - -GType -events_directory_page_event_directory_manager_get_type (void) -{ - static volatile gsize events_directory_page_event_directory_manager_type_id__volatile = 0; - if (g_once_init_enter (&events_directory_page_event_directory_manager_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventsDirectoryPageEventDirectoryManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_directory_page_event_directory_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsDirectoryPageEventDirectoryManager), 0, (GInstanceInitFunc) events_directory_page_event_directory_manager_instance_init, NULL }; - GType events_directory_page_event_directory_manager_type_id; - events_directory_page_event_directory_manager_type_id = g_type_register_static (TYPE_VIEW_MANAGER, "EventsDirectoryPageEventDirectoryManager", &g_define_type_info, 0); - g_once_init_leave (&events_directory_page_event_directory_manager_type_id__volatile, events_directory_page_event_directory_manager_type_id); - } - return events_directory_page_event_directory_manager_type_id__volatile; -} - - -static guint -events_directory_page_events_directory_search_view_filter_real_get_criteria (SearchViewFilter* base) -{ - EventsDirectoryPageEventsDirectorySearchViewFilter * self; - guint result = 0U; -#line 15 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER, EventsDirectoryPageEventsDirectorySearchViewFilter); -#line 16 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = (guint) SEARCH_FILTER_CRITERIA_TEXT; -#line 16 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 2415 "EventsDirectoryPage.c" -} - - -static gboolean -string_contains (const gchar* self, - const gchar* needle) -{ - gboolean result = FALSE; - gchar* _tmp0_; -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, FALSE); -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, FALSE); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr ((gchar*) self, (gchar*) needle); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_ != NULL; -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2435 "EventsDirectoryPage.c" -} - - -static gboolean -events_directory_page_events_directory_search_view_filter_real_predicate (ViewFilter* base, - DataView* view) -{ - EventsDirectoryPageEventsDirectorySearchViewFilter * self; - gboolean result = FALSE; - DataSource* _tmp0_; - DataSource* _tmp1_; - const gchar* _tmp2_; - Event* source = NULL; - DataSource* _tmp3_; - const gchar* event_keywords = NULL; - Event* _tmp4_; - const gchar* _tmp5_; - const gchar* _tmp6_; - gint _tmp7_; - gchar** _tmp8_; -#line 19 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER, EventsDirectoryPageEventsDirectorySearchViewFilter); -#line 19 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_val_if_fail (IS_DATA_VIEW (view), FALSE); -#line 20 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = data_view_get_source (view); -#line 20 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = _tmp0_; -#line 20 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_EVENT), "view.get_source() is Event"); -#line 20 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (_tmp1_); -#line 21 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp2_ = search_view_filter_get_search_filter (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 21 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - if (is_string_empty (_tmp2_)) { -#line 22 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = TRUE; -#line 22 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 2476 "EventsDirectoryPage.c" - } -#line 24 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp3_ = data_view_get_source (view); -#line 24 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - source = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_EVENT, Event); -#line 25 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp4_ = source; -#line 25 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp5_ = indexable_get_indexable_keywords (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_INDEXABLE, Indexable)); -#line 25 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - event_keywords = _tmp5_; -#line 26 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp6_ = event_keywords; -#line 26 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - if (is_string_empty (_tmp6_)) { -#line 27 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = FALSE; -#line 27 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (source); -#line 27 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 2498 "EventsDirectoryPage.c" - } -#line 30 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp8_ = search_view_filter_get_search_filter_words (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter), &_tmp7_); -#line 2502 "EventsDirectoryPage.c" - { - gchar** word_collection = NULL; - gint word_collection_length1 = 0; - gint _word_collection_size_ = 0; - gint word_it = 0; -#line 30 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - word_collection = _tmp8_; -#line 30 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - word_collection_length1 = _tmp7_; -#line 30 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - for (word_it = 0; word_it < _tmp7_; word_it = word_it + 1) { -#line 2514 "EventsDirectoryPage.c" - const gchar* word = NULL; -#line 30 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - word = word_collection[word_it]; -#line 2518 "EventsDirectoryPage.c" - { - const gchar* _tmp9_; - const gchar* _tmp10_; -#line 31 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp9_ = event_keywords; -#line 31 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp10_ = word; -#line 31 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - if (!string_contains (_tmp9_, _tmp10_)) { -#line 32 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = FALSE; -#line 32 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (source); -#line 32 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 2534 "EventsDirectoryPage.c" - } - } - } - } -#line 35 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = TRUE; -#line 35 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (source); -#line 35 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 2545 "EventsDirectoryPage.c" -} - - -static EventsDirectoryPageEventsDirectorySearchViewFilter* -events_directory_page_events_directory_search_view_filter_construct (GType object_type) -{ - EventsDirectoryPageEventsDirectorySearchViewFilter* self = NULL; -#line 14 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = (EventsDirectoryPageEventsDirectorySearchViewFilter*) search_view_filter_construct (object_type); -#line 14 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return self; -#line 2557 "EventsDirectoryPage.c" -} - - -static EventsDirectoryPageEventsDirectorySearchViewFilter* -events_directory_page_events_directory_search_view_filter_new (void) -{ -#line 14 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return events_directory_page_events_directory_search_view_filter_construct (EVENTS_DIRECTORY_PAGE_TYPE_EVENTS_DIRECTORY_SEARCH_VIEW_FILTER); -#line 2566 "EventsDirectoryPage.c" -} - - -static void -events_directory_page_events_directory_search_view_filter_class_init (EventsDirectoryPageEventsDirectorySearchViewFilterClass * klass) -{ -#line 14 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - events_directory_page_events_directory_search_view_filter_parent_class = g_type_class_peek_parent (klass); -#line 14 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - ((SearchViewFilterClass *) klass)->get_criteria = (guint (*) (SearchViewFilter *)) events_directory_page_events_directory_search_view_filter_real_get_criteria; -#line 14 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - ((ViewFilterClass *) klass)->predicate = (gboolean (*) (ViewFilter *, DataView*)) events_directory_page_events_directory_search_view_filter_real_predicate; -#line 2579 "EventsDirectoryPage.c" -} - - -static void -events_directory_page_events_directory_search_view_filter_instance_init (EventsDirectoryPageEventsDirectorySearchViewFilter * self) -{ -} - - -static GType -events_directory_page_events_directory_search_view_filter_get_type (void) -{ - static volatile gsize events_directory_page_events_directory_search_view_filter_type_id__volatile = 0; - if (g_once_init_enter (&events_directory_page_events_directory_search_view_filter_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventsDirectoryPageEventsDirectorySearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_directory_page_events_directory_search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsDirectoryPageEventsDirectorySearchViewFilter), 0, (GInstanceInitFunc) events_directory_page_events_directory_search_view_filter_instance_init, NULL }; - GType events_directory_page_events_directory_search_view_filter_type_id; - events_directory_page_events_directory_search_view_filter_type_id = g_type_register_static (TYPE_SEARCH_VIEW_FILTER, "EventsDirectoryPageEventsDirectorySearchViewFilter", &g_define_type_info, 0); - g_once_init_leave (&events_directory_page_events_directory_search_view_filter_type_id__volatile, events_directory_page_events_directory_search_view_filter_type_id); - } - return events_directory_page_events_directory_search_view_filter_type_id__volatile; -} - - -static void -events_directory_page_class_init (EventsDirectoryPageClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - events_directory_page_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_type_class_add_private (klass, sizeof (EventsDirectoryPagePrivate)); -#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) events_directory_page_real_init_collect_ui_filenames; -#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) events_directory_page_real_add_actions; -#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) events_directory_page_real_remove_actions; -#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - ((PageClass *) klass)->init_actions = (void (*) (Page *, gint, gint)) events_directory_page_real_init_actions; -#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) events_directory_page_real_update_actions; -#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - ((CheckerboardPageClass *) klass)->get_view_empty_message = (gchar* (*) (CheckerboardPage *)) events_directory_page_real_get_view_empty_message; -#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - ((CheckerboardPageClass *) klass)->get_filter_no_match_message = (gchar* (*) (CheckerboardPage *)) events_directory_page_real_get_filter_no_match_message; -#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - ((CheckerboardPageClass *) klass)->on_item_activated = (void (*) (CheckerboardPage *, CheckerboardItem*, CheckerboardPageActivator, CheckerboardPageKeyboardModifiers*)) events_directory_page_real_on_item_activated; -#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - ((CheckerboardPageClass *) klass)->get_search_view_filter = (SearchViewFilter* (*) (CheckerboardPage *)) events_directory_page_real_get_search_view_filter; -#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - G_OBJECT_CLASS (klass)->finalize = events_directory_page_finalize; -#line 2630 "EventsDirectoryPage.c" -} - - -static void -events_directory_page_instance_init (EventsDirectoryPage * self) -{ - EventsDirectoryPageEventsDirectorySearchViewFilter* _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self->priv = EVENTS_DIRECTORY_PAGE_GET_PRIVATE (self); -#line 43 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = events_directory_page_events_directory_search_view_filter_new (); -#line 43 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self->priv->search_filter = _tmp0_; -#line 2644 "EventsDirectoryPage.c" -} - - -static void -events_directory_page_finalize (GObject * obj) -{ - EventsDirectoryPage * self; - GSimpleAction* action = NULL; - GAction* _tmp0_; - GSimpleAction* _tmp1_; - GSimpleAction* _tmp2_; - GSimpleAction* _tmp3_; - guint _tmp4_; -#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage); -#line 75 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = page_get_action (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonSortEvents"); -#line 75 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL; -#line 75 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - if (_tmp1_ == NULL) { -#line 75 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (_tmp0_); -#line 2668 "EventsDirectoryPage.c" - } -#line 75 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - action = _tmp1_; -#line 76 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp2_ = action; -#line 76 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _vala_assert (_tmp2_ != NULL, "action != null"); -#line 77 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp3_ = action; -#line 77 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_signal_parse_name ("change-state", g_simple_action_get_type (), &_tmp4_, NULL, FALSE); -#line 77 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_signal_handlers_disconnect_matched (_tmp3_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _events_directory_page_on_sort_changed_g_simple_action_change_state, self); -#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (action); -#line 41 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _view_manager_unref0 (self->view_manager); -#line 43 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _view_filter_unref0 (self->priv->search_filter); -#line 7 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - G_OBJECT_CLASS (events_directory_page_parent_class)->finalize (obj); -#line 2690 "EventsDirectoryPage.c" -} - - -GType -events_directory_page_get_type (void) -{ - static volatile gsize events_directory_page_type_id__volatile = 0; - if (g_once_init_enter (&events_directory_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventsDirectoryPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) events_directory_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventsDirectoryPage), 0, (GInstanceInitFunc) events_directory_page_instance_init, NULL }; - GType events_directory_page_type_id; - events_directory_page_type_id = g_type_register_static (TYPE_CHECKERBOARD_PAGE, "EventsDirectoryPage", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&events_directory_page_type_id__volatile, events_directory_page_type_id); - } - return events_directory_page_type_id__volatile; -} - - -MasterEventsDirectoryPage* -master_events_directory_page_construct (GType object_type) -{ - MasterEventsDirectoryPage * self = NULL; - EventsDirectoryPageEventDirectoryManager* _tmp0_; - EventsDirectoryPageEventDirectoryManager* _tmp1_; - EventSourceCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeCollection* _tmp4_; -#line 229 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = events_directory_page_event_directory_manager_new (); -#line 229 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = _tmp0_; -#line 229 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp2_ = event_global; -#line 229 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp3_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection)); -#line 229 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection); -#line 229 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = (MasterEventsDirectoryPage*) events_directory_page_construct (object_type, MASTER_EVENTS_DIRECTORY_PAGE_NAME, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_VIEW_MANAGER, ViewManager), _tmp4_); -#line 229 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (_tmp4_); -#line 229 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _view_manager_unref0 (_tmp1_); -#line 228 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return self; -#line 2735 "EventsDirectoryPage.c" -} - - -MasterEventsDirectoryPage* -master_events_directory_page_new (void) -{ -#line 228 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return master_events_directory_page_construct (TYPE_MASTER_EVENTS_DIRECTORY_PAGE); -#line 2744 "EventsDirectoryPage.c" -} - - -static void -master_events_directory_page_class_init (MasterEventsDirectoryPageClass * klass) -{ -#line 225 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - master_events_directory_page_parent_class = g_type_class_peek_parent (klass); -#line 2753 "EventsDirectoryPage.c" -} - - -static void -master_events_directory_page_instance_init (MasterEventsDirectoryPage * self) -{ -} - - -GType -master_events_directory_page_get_type (void) -{ - static volatile gsize master_events_directory_page_type_id__volatile = 0; - if (g_once_init_enter (&master_events_directory_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (MasterEventsDirectoryPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) master_events_directory_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MasterEventsDirectoryPage), 0, (GInstanceInitFunc) master_events_directory_page_instance_init, NULL }; - GType master_events_directory_page_type_id; - master_events_directory_page_type_id = g_type_register_static (TYPE_EVENTS_DIRECTORY_PAGE, "MasterEventsDirectoryPage", &g_define_type_info, 0); - g_once_init_leave (&master_events_directory_page_type_id__volatile, master_events_directory_page_type_id); - } - return master_events_directory_page_type_id__volatile; -} - - -GType -sub_events_directory_page_directory_type_get_type (void) -{ - static volatile gsize sub_events_directory_page_directory_type_type_id__volatile = 0; - if (g_once_init_enter (&sub_events_directory_page_directory_type_type_id__volatile)) { - static const GEnumValue values[] = {{SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_YEAR, "SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_YEAR", "year"}, {SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_MONTH, "SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_MONTH", "month"}, {SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_UNDATED, "SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_UNDATED", "undated"}, {0, NULL, NULL}}; - GType sub_events_directory_page_directory_type_type_id; - sub_events_directory_page_directory_type_type_id = g_enum_register_static ("SubEventsDirectoryPageDirectoryType", values); - g_once_init_leave (&sub_events_directory_page_directory_type_type_id__volatile, sub_events_directory_page_directory_type_type_id); - } - return sub_events_directory_page_directory_type_type_id__volatile; -} - - -static gchar* -g_time_format (struct tm *self, - const gchar* format) -{ - gchar* result = NULL; - gchar* buffer = NULL; - gchar* _tmp0_; - gint buffer_length1; - gint _buffer_size_; - gchar* _tmp1_; - gint _tmp1__length1; - gchar* _tmp2_; - gint _tmp2__length1; - gchar* _tmp3_; -#line 2874 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (format != NULL, NULL); -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_new0 (gchar, 64); -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer = _tmp0_; -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer_length1 = 64; -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _buffer_size_ = buffer_length1; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = buffer; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1__length1 = buffer_length1; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - strftime (_tmp1_, _tmp1__length1, format, &(*self)); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = buffer; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2__length1 = buffer_length1; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_strdup ((const gchar*) _tmp2_); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp3_; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer = (g_free (buffer), NULL); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2833 "EventsDirectoryPage.c" -} - - -SubEventsDirectoryPage* -sub_events_directory_page_construct (GType object_type, - SubEventsDirectoryPageDirectoryType type, - struct tm* time) -{ - SubEventsDirectoryPage * self = NULL; - gchar* page_name = NULL; - const gchar* _tmp3_; - struct tm _tmp4_; - SubEventsDirectoryPageSubEventDirectoryManager* _tmp5_; - SubEventsDirectoryPageSubEventDirectoryManager* _tmp6_; -#line 286 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_val_if_fail (time != NULL, NULL); -#line 288 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - if (type == SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_UNDATED) { -#line 2852 "EventsDirectoryPage.c" - gchar* _tmp0_; -#line 289 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = g_strdup (SUB_EVENTS_DIRECTORY_PAGE_UNDATED_PAGE_NAME); -#line 289 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_free0 (page_name); -#line 289 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - page_name = _tmp0_; -#line 2860 "EventsDirectoryPage.c" - } else { - const gchar* _tmp1_ = NULL; - gchar* _tmp2_; -#line 291 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - if (type == SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_YEAR) { -#line 291 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = SUB_EVENTS_DIRECTORY_PAGE_YEAR_FORMAT; -#line 2868 "EventsDirectoryPage.c" - } else { -#line 291 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = SUB_EVENTS_DIRECTORY_PAGE_MONTH_FORMAT; -#line 2872 "EventsDirectoryPage.c" - } -#line 291 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp2_ = g_time_format (time, _tmp1_); -#line 291 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_free0 (page_name); -#line 291 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - page_name = _tmp2_; -#line 2880 "EventsDirectoryPage.c" - } -#line 294 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp3_ = page_name; -#line 294 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp4_ = *time; -#line 294 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp5_ = sub_events_directory_page_sub_event_directory_manager_new (type, &_tmp4_); -#line 294 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp6_ = _tmp5_; -#line 294 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = (SubEventsDirectoryPage*) events_directory_page_construct (object_type, _tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_VIEW_MANAGER, ViewManager), NULL); -#line 294 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _view_manager_unref0 (_tmp6_); -#line 286 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_free0 (page_name); -#line 286 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return self; -#line 2898 "EventsDirectoryPage.c" -} - - -SubEventsDirectoryPage* -sub_events_directory_page_new (SubEventsDirectoryPageDirectoryType type, - struct tm* time) -{ -#line 286 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return sub_events_directory_page_construct (TYPE_SUB_EVENTS_DIRECTORY_PAGE, type, time); -#line 2908 "EventsDirectoryPage.c" -} - - -gint -sub_events_directory_page_get_month (SubEventsDirectoryPage* self) -{ - gint result = 0; - ViewManager* _tmp0_; -#line 297 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_val_if_fail (IS_SUB_EVENTS_DIRECTORY_PAGE (self), 0); -#line 298 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage)->view_manager; -#line 298 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = sub_events_directory_page_sub_event_directory_manager_get_month (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManager)); -#line 298 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 2925 "EventsDirectoryPage.c" -} - - -gint -sub_events_directory_page_get_year (SubEventsDirectoryPage* self) -{ - gint result = 0; - ViewManager* _tmp0_; -#line 301 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_val_if_fail (IS_SUB_EVENTS_DIRECTORY_PAGE (self), 0); -#line 302 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage)->view_manager; -#line 302 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = sub_events_directory_page_sub_event_directory_manager_get_year (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManager)); -#line 302 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 2942 "EventsDirectoryPage.c" -} - - -SubEventsDirectoryPageDirectoryType -sub_events_directory_page_get_event_directory_type (SubEventsDirectoryPage* self) -{ - SubEventsDirectoryPageDirectoryType result = 0; - ViewManager* _tmp0_; -#line 305 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_val_if_fail (IS_SUB_EVENTS_DIRECTORY_PAGE (self), 0); -#line 306 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage)->view_manager; -#line 306 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = sub_events_directory_page_sub_event_directory_manager_get_event_directory_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManager)); -#line 306 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 2959 "EventsDirectoryPage.c" -} - - -static SubEventsDirectoryPageSubEventDirectoryManager* -sub_events_directory_page_sub_event_directory_manager_construct (GType object_type, - SubEventsDirectoryPageDirectoryType type, - struct tm* time) -{ - SubEventsDirectoryPageSubEventDirectoryManager* self = NULL; - struct tm _tmp2_; - gint _tmp3_; -#line 249 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_val_if_fail (time != NULL, NULL); -#line 250 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = (SubEventsDirectoryPageSubEventDirectoryManager*) events_directory_page_event_directory_manager_construct (object_type); -#line 252 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - if (type == SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_MONTH) { -#line 2977 "EventsDirectoryPage.c" - struct tm _tmp0_; - gint _tmp1_; -#line 253 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = *time; -#line 253 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = _tmp0_.tm_mon; -#line 253 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self->priv->month = _tmp1_; -#line 2986 "EventsDirectoryPage.c" - } -#line 254 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self->priv->type = type; -#line 255 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp2_ = *time; -#line 255 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp3_ = _tmp2_.tm_year; -#line 255 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self->priv->year = _tmp3_; -#line 249 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return self; -#line 2998 "EventsDirectoryPage.c" -} - - -static SubEventsDirectoryPageSubEventDirectoryManager* -sub_events_directory_page_sub_event_directory_manager_new (SubEventsDirectoryPageDirectoryType type, - struct tm* time) -{ -#line 249 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return sub_events_directory_page_sub_event_directory_manager_construct (SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, type, time); -#line 3008 "EventsDirectoryPage.c" -} - - -static void -g_time_local (time_t time, - struct tm* result) -{ - struct tm _result_ = {0}; - struct tm _tmp0_ = {0}; -#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - localtime_r (&time, &_tmp0_); -#line 2866 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result = _result_; -#line 2867 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return; -#line 3026 "EventsDirectoryPage.c" -} - - -static gboolean -sub_events_directory_page_sub_event_directory_manager_real_include_in_view (ViewManager* base, - DataSource* source) -{ - SubEventsDirectoryPageSubEventDirectoryManager * self; - gboolean result = FALSE; - EventSource* event = NULL; - EventSource* _tmp0_; - struct tm event_time = {0}; - EventSource* _tmp1_; - struct tm _tmp2_ = {0}; - struct tm _tmp3_; - gint _tmp4_; - gint _tmp5_; -#line 258 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManager); -#line 258 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 259 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - if (!VIEW_MANAGER_CLASS (sub_events_directory_page_sub_event_directory_manager_parent_class)->include_in_view (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER, EventsDirectoryPageEventDirectoryManager), TYPE_VIEW_MANAGER, ViewManager), source)) { -#line 260 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = FALSE; -#line 260 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 3054 "EventsDirectoryPage.c" - } -#line 262 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_EVENT_SOURCE, EventSource)); -#line 262 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - event = _tmp0_; -#line 263 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp1_ = event; -#line 263 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_time_local (event_source_get_start_time (_tmp1_), &_tmp2_); -#line 263 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - event_time = _tmp2_; -#line 264 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp3_ = event_time; -#line 264 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp4_ = _tmp3_.tm_year; -#line 264 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp5_ = self->priv->year; -#line 264 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - if (_tmp4_ == _tmp5_) { -#line 3074 "EventsDirectoryPage.c" - SubEventsDirectoryPageDirectoryType _tmp6_; -#line 265 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp6_ = self->priv->type; -#line 265 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - if (_tmp6_ == SUB_EVENTS_DIRECTORY_PAGE_DIRECTORY_TYPE_MONTH) { -#line 3080 "EventsDirectoryPage.c" - struct tm _tmp7_; - gint _tmp8_; - gint _tmp9_; -#line 266 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp7_ = event_time; -#line 266 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp8_ = _tmp7_.tm_mon; -#line 266 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp9_ = self->priv->month; -#line 266 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = _tmp8_ == _tmp9_; -#line 266 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (event); -#line 266 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 3096 "EventsDirectoryPage.c" - } -#line 268 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = TRUE; -#line 268 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (event); -#line 268 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 3104 "EventsDirectoryPage.c" - } -#line 270 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = FALSE; -#line 270 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _g_object_unref0 (event); -#line 270 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 3112 "EventsDirectoryPage.c" -} - - -static gint -sub_events_directory_page_sub_event_directory_manager_get_month (SubEventsDirectoryPageSubEventDirectoryManager* self) -{ - gint result = 0; - gint _tmp0_; -#line 273 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_val_if_fail (SUB_EVENTS_DIRECTORY_PAGE_IS_SUB_EVENT_DIRECTORY_MANAGER (self), 0); -#line 274 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = self->priv->month; -#line 274 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = _tmp0_; -#line 274 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 3129 "EventsDirectoryPage.c" -} - - -static gint -sub_events_directory_page_sub_event_directory_manager_get_year (SubEventsDirectoryPageSubEventDirectoryManager* self) -{ - gint result = 0; - gint _tmp0_; -#line 277 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_val_if_fail (SUB_EVENTS_DIRECTORY_PAGE_IS_SUB_EVENT_DIRECTORY_MANAGER (self), 0); -#line 278 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = self->priv->year; -#line 278 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = _tmp0_; -#line 278 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 3146 "EventsDirectoryPage.c" -} - - -static SubEventsDirectoryPageDirectoryType -sub_events_directory_page_sub_event_directory_manager_get_event_directory_type (SubEventsDirectoryPageSubEventDirectoryManager* self) -{ - SubEventsDirectoryPageDirectoryType result = 0; - SubEventsDirectoryPageDirectoryType _tmp0_; -#line 281 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_return_val_if_fail (SUB_EVENTS_DIRECTORY_PAGE_IS_SUB_EVENT_DIRECTORY_MANAGER (self), 0); -#line 282 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - _tmp0_ = self->priv->type; -#line 282 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - result = _tmp0_; -#line 282 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - return result; -#line 3163 "EventsDirectoryPage.c" -} - - -static void -sub_events_directory_page_sub_event_directory_manager_class_init (SubEventsDirectoryPageSubEventDirectoryManagerClass * klass) -{ -#line 244 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - sub_events_directory_page_sub_event_directory_manager_parent_class = g_type_class_peek_parent (klass); -#line 244 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - ((ViewManagerClass *) klass)->finalize = sub_events_directory_page_sub_event_directory_manager_finalize; -#line 244 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - g_type_class_add_private (klass, sizeof (SubEventsDirectoryPageSubEventDirectoryManagerPrivate)); -#line 244 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - ((ViewManagerClass *) klass)->include_in_view = (gboolean (*) (ViewManager *, DataSource*)) sub_events_directory_page_sub_event_directory_manager_real_include_in_view; -#line 3178 "EventsDirectoryPage.c" -} - - -static void -sub_events_directory_page_sub_event_directory_manager_instance_init (SubEventsDirectoryPageSubEventDirectoryManager * self) -{ -#line 244 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self->priv = SUB_EVENTS_DIRECTORY_PAGE_SUB_EVENT_DIRECTORY_MANAGER_GET_PRIVATE (self); -#line 245 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self->priv->month = 0; -#line 246 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self->priv->year = 0; -#line 3191 "EventsDirectoryPage.c" -} - - -static void -sub_events_directory_page_sub_event_directory_manager_finalize (ViewManager * obj) -{ - SubEventsDirectoryPageSubEventDirectoryManager * self; -#line 244 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SUB_EVENTS_DIRECTORY_PAGE_TYPE_SUB_EVENT_DIRECTORY_MANAGER, SubEventsDirectoryPageSubEventDirectoryManager); -#line 244 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - VIEW_MANAGER_CLASS (sub_events_directory_page_sub_event_directory_manager_parent_class)->finalize (obj); -#line 3203 "EventsDirectoryPage.c" -} - - -static GType -sub_events_directory_page_sub_event_directory_manager_get_type (void) -{ - static volatile gsize sub_events_directory_page_sub_event_directory_manager_type_id__volatile = 0; - if (g_once_init_enter (&sub_events_directory_page_sub_event_directory_manager_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SubEventsDirectoryPageSubEventDirectoryManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sub_events_directory_page_sub_event_directory_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SubEventsDirectoryPageSubEventDirectoryManager), 0, (GInstanceInitFunc) sub_events_directory_page_sub_event_directory_manager_instance_init, NULL }; - GType sub_events_directory_page_sub_event_directory_manager_type_id; - sub_events_directory_page_sub_event_directory_manager_type_id = g_type_register_static (EVENTS_DIRECTORY_PAGE_TYPE_EVENT_DIRECTORY_MANAGER, "SubEventsDirectoryPageSubEventDirectoryManager", &g_define_type_info, 0); - g_once_init_leave (&sub_events_directory_page_sub_event_directory_manager_type_id__volatile, sub_events_directory_page_sub_event_directory_manager_type_id); - } - return sub_events_directory_page_sub_event_directory_manager_type_id__volatile; -} - - -static void -sub_events_directory_page_class_init (SubEventsDirectoryPageClass * klass) -{ -#line 233 "/home/jens/Source/shotwell/src/events/EventsDirectoryPage.vala" - sub_events_directory_page_parent_class = g_type_class_peek_parent (klass); -#line 3226 "EventsDirectoryPage.c" -} - - -static void -sub_events_directory_page_instance_init (SubEventsDirectoryPage * self) -{ -} - - -GType -sub_events_directory_page_get_type (void) -{ - static volatile gsize sub_events_directory_page_type_id__volatile = 0; - if (g_once_init_enter (&sub_events_directory_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SubEventsDirectoryPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sub_events_directory_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SubEventsDirectoryPage), 0, (GInstanceInitFunc) sub_events_directory_page_instance_init, NULL }; - GType sub_events_directory_page_type_id; - sub_events_directory_page_type_id = g_type_register_static (TYPE_EVENTS_DIRECTORY_PAGE, "SubEventsDirectoryPage", &g_define_type_info, 0); - g_once_init_leave (&sub_events_directory_page_type_id__volatile, sub_events_directory_page_type_id); - } - return sub_events_directory_page_type_id__volatile; -} - - - diff --git a/src/events/EventsDirectoryPage.vala b/src/events/EventsDirectoryPage.vala index 241abfe..2384a2b 100644 --- a/src/events/EventsDirectoryPage.vala +++ b/src/events/EventsDirectoryPage.vala @@ -66,7 +66,7 @@ public abstract class EventsDirectoryPage : CheckerboardPage { merge_button.set_action_name("win.Merge"); merge_button.is_important = true; merge_button.set_tooltip_text (Resources.MERGE_TOOLTIP); - merge_button.set_icon_name ("merge"); + merge_button.set_icon_name ("events-merge-symbolic"); toolbar.insert(merge_button, -1); } diff --git a/src/faces/Face.vala b/src/faces/Face.vala new file mode 100644 index 0000000..9be33c9 --- /dev/null +++ b/src/faces/Face.vala @@ -0,0 +1,681 @@ +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + */ + +#if ENABLE_FACES +public class FaceSourceCollection : ContainerSourceCollection { + private Gee.HashMap name_map = new Gee.HashMap + ((Gee.HashDataFunc)Face.hash_name_string, (Gee.EqualDataFunc)Face.equal_name_strings); + private Gee.HashMap> source_map = + new Gee.HashMap>(); + + public FaceSourceCollection() { + base (Face.TYPENAME, "FaceSourceCollection", get_face_key); + + attach_collection(LibraryPhoto.global); + } + + public override bool holds_type_of_source(DataSource source) { + return source is Face; + } + + private static int64 get_face_key(DataSource source) { + return ((Face) source).get_instance_id(); + } + + protected override Gee.Collection? get_containers_holding_source(DataSource source) { + return fetch_for_source((MediaSource) source); + } + + public override ContainerSource? convert_backlink_to_container(SourceBacklink backlink) { + FaceID face_id = FaceID(backlink.instance_id); + + Face? face = fetch(face_id); + if (face != null) + return face; + + foreach (ContainerSource container in get_holding_tank()) { + face = (Face) container; + if (face.get_face_id().id == face_id.id) + return face; + } + + return null; + } + + public Face? fetch(FaceID face_id) { + return (Face) fetch_by_key(face_id.id); + } + + public bool exists(string name) { + return name_map.has_key(name); + } + + public Gee.Collection get_all_names() { + return name_map.keys; + } + + // Returns a list of all Faces associated with the media source in no particular order. + // + // NOTE: As a search optimization, this returns the list that is maintained by Faces.global. + // Do NOT modify this list. + public Gee.List? fetch_for_source(MediaSource source) { + return source_map.get(source); + } + + // Returns null if not Face with name exists. + public Face? fetch_by_name(string name) { + return name_map.get(name); + } + + public Face? restore_face_from_holding_tank(string name) { + Face? found = null; + foreach (ContainerSource container in get_holding_tank()) { + Face face = (Face) container; + if (face.get_name() == name) { + found = face; + + break; + } + } + + if (found != null) { + bool relinked = relink_from_holding_tank(found); + assert(relinked); + } + + return found; + } + + protected override void notify_items_added(Gee.Iterable added) { + foreach (DataObject object in added) { + Face face = (Face) object; + + assert(!name_map.has_key(face.get_name())); + name_map.set(face.get_name(), face); + } + + base.notify_items_added(added); + } + + protected override void notify_items_removed(Gee.Iterable removed) { + foreach (DataObject object in removed) { + Face face = (Face) object; + + bool unset = name_map.unset(face.get_name()); + assert(unset); + } + + base.notify_items_removed(removed); + } + + protected override void notify_items_altered(Gee.Map map) { + foreach (DataObject object in map.keys) { + Face face = (Face) object; + + string? old_name = null; + + // look for this face being renamed + Gee.MapIterator iter = name_map.map_iterator(); + while (iter.next()) { + if (!iter.get_value().equals(face)) + continue; + + old_name = iter.get_key(); + + break; + } + + assert(old_name != null); + + if (face.get_name() != old_name) { + name_map.unset(old_name); + name_map.set(face.get_name(), face); + } + } + + base.notify_items_altered(map); + } + + protected override void notify_container_contents_added(ContainerSource container, + Gee.Collection added, bool relinking) { + Face face = (Face) container; + Gee.Collection sources = (Gee.Collection) added; + + foreach (MediaSource source in sources) { + Gee.List? faces = source_map.get(source); + if (faces == null) { + faces = new Gee.ArrayList(); + source_map.set(source, faces); + } + + bool is_added = faces.add(face); + assert(is_added); + } + + base.notify_container_contents_added(container, added, relinking); + } + + protected override void notify_container_contents_removed(ContainerSource container, + Gee.Collection removed, bool unlinking) { + Face face = (Face) container; + Gee.Collection sources = (Gee.Collection) removed; + + foreach (MediaSource source in sources) { + Gee.List? faces = source_map.get(source); + assert(faces != null); + + bool is_removed = faces.remove(face); + assert(is_removed); + + if (faces.size == 0) + source_map.unset(source); + } + + base.notify_container_contents_removed(container, removed, unlinking); + } +} + +public class Face : DataSource, ContainerSource, Proxyable, Indexable { + public const string TYPENAME = "face"; + + private class FaceSnapshot : SourceSnapshot { + private FaceRow row; + private Gee.HashSet sources = new Gee.HashSet(); + + public FaceSnapshot(Face face) { + // stash current state of Face + row = face.row; + + // stash photos attached to this face ... if any are destroyed, the face + // cannot be reconstituted + foreach (MediaSource source in face.get_sources()) + sources.add(source); + + LibraryPhoto.global.item_destroyed.connect(on_source_destroyed); + } + + ~FaceSnapshot() { + LibraryPhoto.global.item_destroyed.disconnect(on_source_destroyed); + } + + public FaceRow get_row() { + return row; + } + + public override void notify_broken() { + row = new FaceRow(); + sources.clear(); + + base.notify_broken(); + } + + private void on_source_destroyed(DataSource source) { + if (sources.contains((MediaSource) source)) + notify_broken(); + } + } + + private class FaceProxy : SourceProxy { + public FaceProxy(Face face) { + base (face); + } + + public override DataSource reconstitute(int64 object_id, SourceSnapshot snapshot) { + return Face.reconstitute(object_id, ((FaceSnapshot) snapshot).get_row()); + } + } + + public static FaceSourceCollection global = null; + + private FaceRow row; + private ViewCollection media_views; + private string? name_collation_key = null; + private bool unlinking = false; + private bool relinking = false; + private string? indexable_keywords = null; + + private Face(FaceRow row, int64 object_id = INVALID_OBJECT_ID) { + base (object_id); + + this.row = row; + + // normalize user text + this.row.name = prep_face_name(this.row.name); + + Gee.Set photo_id_list = FaceLocation.get_photo_ids_by_face(this); + Gee.ArrayList photo_list = new Gee.ArrayList(); + Gee.ArrayList thumbnail_views = new Gee.ArrayList(); + if (photo_id_list != null) { + foreach (PhotoID photo_id in photo_id_list) { + MediaSource? current_source = + LibraryPhoto.global.fetch_by_source_id(PhotoID.upgrade_photo_id_to_source_id(photo_id)); + if (current_source == null) + continue; + + photo_list.add((Photo) current_source); + thumbnail_views.add(new ThumbnailView(current_source)); + } + } + + // add to internal ViewCollection, which maintains media sources associated with this face + media_views = new ViewCollection("ViewCollection for face %s".printf(row.face_id.id.to_string())); + media_views.add_many(thumbnail_views); + + // need to do this manually here because only want to monitor photo_contents_altered + // after add_many() here; but need to keep the FaceSourceCollection apprised + if (photo_list.size > 0) { + global.notify_container_contents_added(this, photo_list, false); + global.notify_container_contents_altered(this, photo_list, false, null, false); + } + + // monitor ViewCollection to (a) keep the in-memory list of source ids up-to-date, and + // (b) update the database whenever there's a change; + media_views.contents_altered.connect(on_media_views_contents_altered); + + // monitor the global collections to trap when photos are destroyed, then + // automatically remove from the face + LibraryPhoto.global.items_destroyed.connect(on_sources_destroyed); + + update_indexable_keywords(); + } + + ~Face() { + media_views.contents_altered.disconnect(on_media_views_contents_altered); + LibraryPhoto.global.items_destroyed.disconnect(on_sources_destroyed); + } + + public static void init(ProgressMonitor? monitor) { + global = new FaceSourceCollection(); + + // scoop up all the rows at once + Gee.List rows = null; + try { + rows = FaceTable.get_instance().get_all_rows(); + } catch (DatabaseError err) { + AppWindow.database_error(err); + } + + // turn them into Face objects + Gee.ArrayList faces = new Gee.ArrayList(); + Gee.ArrayList unlinked = new Gee.ArrayList(); + int count = rows.size; + for (int ctr = 0; ctr < count; ctr++) { + FaceRow row = rows.get(ctr); + + // make sure the face name is valid + string? name = prep_face_name(row.name); + if (name == null) { + // TODO: More graceful handling of this situation would be to rename the face or + // alert the user. + warning("Invalid face name \"%s\": removing from database", row.name); + try { + FaceTable.get_instance().remove(row.face_id); + } catch (DatabaseError err) { + warning("Unable to delete face \"%s\": %s", row.name, err.message); + } + + continue; + } + + row.name = name; + + Face face = new Face(row); + if (monitor != null) + monitor(ctr, count); + + if (face.get_sources_count() != 0) { + faces.add(face); + + continue; + } + + if (face.has_links()) { + face.rehydrate_backlinks(global, null); + unlinked.add(face); + + continue; + } + + warning("Empty face %s found with no backlinks, destroying", face.to_string()); + face.destroy_orphan(true); + } + + // add them all at once to the SourceCollection + global.add_many(faces); + global.init_add_many_unlinked(unlinked); + } + + public static void terminate() { + } + + public static int compare_names(void *a, void *b) { + Face *aface = (Face *) a; + Face *bface = (Face *) b; + + return String.precollated_compare(aface->get_name(), aface->get_name_collation_key(), + bface->get_name(), bface->get_name_collation_key()); + } + + public static uint hash_name_string(void *a) { + return String.collated_hash(a); + } + + public static bool equal_name_strings(void *a, void *b) { + return String.collated_equals(a, b); + } + + // Returns a Face for the name, creating a new empty one if it does not already exist. + // name should have already been prepared by prep_face_name. + public static Face for_name(string name) { + Face? face = global.fetch_by_name(name); + if (face == null) + face = global.restore_face_from_holding_tank(name); + + if (face != null) + return face; + + // create a new Face for this name + try { + face = new Face(FaceTable.get_instance().add(name)); + } catch (DatabaseError err) { + AppWindow.database_error(err); + } + + global.add(face); + + return face; + } + + // Utility function to cleanup a face name that comes from user input and prepare it for use + // in the system and storage in the database. Returns null if the name is unacceptable. + public static string? prep_face_name(string name) { + return prepare_input_text(name, PrepareInputTextOptions.DEFAULT, DEFAULT_USER_TEXT_INPUT_LENGTH); + } + + public override string get_typename() { + return TYPENAME; + } + + public override int64 get_instance_id() { + return get_face_id().id; + } + + public override string get_name() { + return row.name; + } + + public string get_name_collation_key() { + if (name_collation_key == null) + name_collation_key = row.name.collate_key(); + + return name_collation_key; + } + + public override string to_string() { + return "Face %s (%d sources)".printf(row.name, media_views.get_count()); + } + + public override bool equals(DataSource? source) { + // Validate uniqueness of primary key + Face? face = source as Face; + if (face != null) { + if (face != this) { + assert(face.row.face_id.id != row.face_id.id); + } + } + + return base.equals(source); + } + + public FaceID get_face_id() { + return row.face_id; + } + + public override SourceSnapshot? save_snapshot() { + return new FaceSnapshot(this); + } + + public SourceProxy get_proxy() { + return new FaceProxy(this); + } + + private static Face reconstitute(int64 object_id, FaceRow row) { + // fill in the row with the new FaceID for this reconstituted face + try { + row.face_id = FaceTable.get_instance().create_from_row(row); + } catch (DatabaseError err) { + AppWindow.database_error(err); + } + + Face face = new Face(row, object_id); + global.add(face); + + debug("Reconstituted %s", face.to_string()); + + return face; + } + + public bool has_links() { + return LibraryPhoto.global.has_backlink(get_backlink()); + } + + public SourceBacklink get_backlink() { + return new SourceBacklink.from_source(this); + } + + public void break_link(DataSource source) { + unlinking = true; + + detach((LibraryPhoto) source); + + unlinking = false; + } + + public void break_link_many(Gee.Collection sources) { + unlinking = true; + + detach_many((Gee.Collection) sources); + + unlinking = false; + } + + public void establish_link(DataSource source) { + relinking = true; + + attach((LibraryPhoto) source); + + relinking = false; + } + + public void establish_link_many(Gee.Collection sources) { + relinking = true; + + attach_many((Gee.Collection) sources); + + relinking = false; + } + + private void update_indexable_keywords() { + indexable_keywords = prepare_indexable_string(get_name()); + } + + public unowned string? get_indexable_keywords() { + return indexable_keywords; + } + + public void attach(MediaSource source) { + if (!media_views.has_view_for_source(source)) + media_views.add(new ThumbnailView(source)); + } + + public void attach_many(Gee.Collection sources) { + Gee.ArrayList view_list = new Gee.ArrayList(); + foreach (MediaSource source in sources) { + if (!media_views.has_view_for_source(source)) + view_list.add(new ThumbnailView(source)); + } + + if (view_list.size > 0) + media_views.add_many(view_list); + } + + public bool detach(MediaSource source) { + DataView? view = media_views.get_view_for_source(source); + if (view == null) + return false; + + media_views.remove_marked(media_views.mark(view)); + + return true; + } + + public int detach_many(Gee.Collection sources) { + int count = 0; + + Marker marker = media_views.start_marking(); + foreach (MediaSource source in sources) { + DataView? view = media_views.get_view_for_source(source); + if (view == null) + continue; + + marker.mark(view); + count++; + } + + media_views.remove_marked(marker); + + return count; + } + + // Returns false if the name already exists or a bad name. + public bool rename(string name) { + string? new_name = prep_face_name(name); + if (new_name == null) + return false; + + if (Face.global.exists(new_name)) + return false; + + try { + FaceTable.get_instance().rename(row.face_id, new_name); + } catch (DatabaseError err) { + AppWindow.database_error(err); + return false; + } + + row.name = new_name; + name_collation_key = null; + + update_indexable_keywords(); + + notify_altered(new Alteration.from_list("metadata:name, indexable:keywords")); + + return true; + } + + public bool contains(MediaSource source) { + return media_views.has_view_for_source(source); + } + + public int get_sources_count() { + return media_views.get_count(); + } + + public Gee.Collection get_sources() { + return (Gee.Collection) media_views.get_sources(); + } + + public void mirror_sources(ViewCollection view, CreateView mirroring_ctor) { + view.mirror(media_views, mirroring_ctor, null); + } + + private void on_media_views_contents_altered(Gee.Iterable? added, + Gee.Iterable? removed) { + Gee.Set? photo_id_list = FaceLocation.get_photo_ids_by_face(this); + + Gee.Collection added_photos = null; + if (added != null) { + added_photos = new Gee.ArrayList(); + foreach (DataView view in added) { + Photo photo = (Photo) view.get_source(); + + if (photo_id_list != null) + assert(!photo_id_list.contains(photo.get_photo_id())); + + bool is_added = added_photos.add(photo); + assert(is_added); + } + } + + Gee.Collection removed_photos = null; + if (removed != null) { + assert(photo_id_list != null); + + removed_photos = new Gee.ArrayList(); + foreach (DataView view in removed) { + Photo photo = (Photo) view.get_source(); + + assert(photo_id_list.contains(photo.get_photo_id())); + + bool is_added = removed_photos.add(photo); + assert(is_added); + } + } + + if (removed_photos != null) + foreach (Photo photo in removed_photos) + FaceLocation.destroy(get_face_id(), photo.get_photo_id()); + + // notify of changes to this face + if (added_photos != null) + global.notify_container_contents_added(this, added_photos, relinking); + + if (removed_photos != null) + global.notify_container_contents_removed(this, removed_photos, unlinking); + + if (added_photos != null || removed_photos != null) { + global.notify_container_contents_altered(this, added_photos, relinking, removed_photos, + unlinking); + } + + // if no more sources, face evaporates; do not touch "this" afterwards + if (media_views.get_count() == 0) + global.evaporate(this); + } + + private void on_sources_destroyed(Gee.Collection sources) { + detach_many((Gee.Collection) sources); + } + + public override void destroy() { + // detach all remaining sources from the face, so observers are informed ... need to detach + // the contents_altered handler because it will destroy this object when sources is empty, + // which is bad reentrancy mojo (but hook it back up for the dtor's sake) + if (media_views.get_count() > 0) { + media_views.contents_altered.disconnect(on_media_views_contents_altered); + + Gee.ArrayList removed = new Gee.ArrayList(); + removed.add_all((Gee.Collection) media_views.get_sources()); + + media_views.clear(); + + global.notify_container_contents_removed(this, removed, false); + global.notify_container_contents_altered(this, null, false, removed, false); + + media_views.contents_altered.connect(on_media_views_contents_altered); + } + + try { + FaceTable.get_instance().remove(row.face_id); + } catch (DatabaseError err) { + AppWindow.database_error(err); + } + + base.destroy(); + } +} + +#endif diff --git a/src/faces/FaceLocation.vala b/src/faces/FaceLocation.vala new file mode 100644 index 0000000..cc5c4cf --- /dev/null +++ b/src/faces/FaceLocation.vala @@ -0,0 +1,209 @@ +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + */ + +#if ENABLE_FACES + +public class FaceLocation : Object { + + private static Gee.Map> face_photos_map; + private static Gee.Map> photo_faces_map; + + private FaceLocationID face_location_id; + private FaceID face_id; + private PhotoID photo_id; + private string geometry; + + private FaceLocation(FaceLocationID face_location_id, FaceID face_id, PhotoID photo_id, + string geometry) { + this.face_location_id = face_location_id; + this.face_id = face_id; + this.photo_id = photo_id; + this.geometry = geometry; + } + + public static FaceLocation create(FaceID face_id, PhotoID photo_id, string geometry) { + FaceLocation face_location = null; + + // Test if that FaceLocation already exists (that face in that photo) ... + Gee.Map photos_map = face_photos_map.get(face_id); + Gee.Map faces_map = photo_faces_map.get(photo_id); + + if (photos_map != null && faces_map != null && faces_map.has_key(face_id)) { + + face_location = faces_map.get(face_id); + + if (face_location.get_serialized_geometry() != geometry) { + face_location.set_serialized_geometry(geometry); + + try { + FaceLocationTable.get_instance().update_face_location_serialized_geometry( + face_location); + } catch (DatabaseError err) { + AppWindow.database_error(err); + } + } + + return face_location; + } + + // ... or create a new FaceLocation. + try { + face_location = + FaceLocation.add_from_row( + FaceLocationTable.get_instance().add(face_id, photo_id, geometry)); + } catch (DatabaseError err) { + AppWindow.database_error(err); + } + + return face_location; + } + + public static void destroy(FaceID face_id, PhotoID photo_id) { + Gee.Map photos_map = face_photos_map.get(face_id); + Gee.Map faces_map = photo_faces_map.get(photo_id); + + assert(photos_map != null); + assert(faces_map != null); + + faces_map.unset(face_id); + if (faces_map.size == 0) + photo_faces_map.unset(photo_id); + + photos_map.unset(photo_id); + if (photos_map.size == 0) + face_photos_map.unset(face_id); + + try { + FaceLocationTable.get_instance().remove_face_from_source(face_id, photo_id); + } catch (DatabaseError err) { + AppWindow.database_error(err); + } + } + + public static FaceLocation add_from_row(FaceLocationRow row) { + + FaceLocation face_location = + new FaceLocation(row.face_location_id, row.face_id, row.photo_id, row.geometry); + + Gee.Map photos_map = face_photos_map.get(row.face_id); + if (photos_map == null) {photos_map = new Gee.HashMap + ((Gee.HashDataFunc)FaceLocation.photo_id_hash, (Gee.EqualDataFunc)FaceLocation.photo_ids_equal); + face_photos_map.set(row.face_id, photos_map); + } + photos_map.set(row.photo_id, face_location); + + Gee.Map faces_map = photo_faces_map.get(row.photo_id); + if (faces_map == null) {faces_map = new Gee.HashMap + ((Gee.HashDataFunc)FaceLocation.face_id_hash, (Gee.EqualDataFunc)FaceLocation.face_ids_equal); + + photo_faces_map.set(row.photo_id, faces_map); + } + faces_map.set(row.face_id, face_location); + + return face_location; + } + + public static Gee.Map? get_locations_by_photo(Photo photo) { + return photo_faces_map.get(photo.get_photo_id()); + } + + public static Gee.Map? get_locations_by_face(Face face) { + return face_photos_map.get(face.get_face_id()); + } + + public static Gee.Set? get_photo_ids_by_face(Face face) { + Gee.Map? photos_map = face_photos_map.get(face.get_face_id()); + if (photos_map == null) + return null; + + return photos_map.keys; + } + + public static FaceLocation? get_face_location(FaceID face_id, PhotoID photo_id) { + Gee.Map? faces_map = photo_faces_map.get(photo_id); + if (faces_map == null) + return null; + + return faces_map.get(face_id); + } + + public static bool photo_ids_equal(void *a, void *b) { + PhotoID *aid = (PhotoID *) a; + PhotoID *bid = (PhotoID *) b; + + return aid->id == bid->id; + } + + public static bool face_ids_equal(void *a, void *b) { + FaceID *aid = (FaceID *) a; + FaceID *bid = (FaceID *) b; + + return aid->id == bid->id; + } + + public static uint photo_id_hash(void *p) { + // Rotating XOR hash + uint8 u8 = (uint8) ((PhotoID *) p)->id; + uint hash = 0; + for (int ctr = 0; ctr < (sizeof(int64) / sizeof(uint8)); ctr++) { + hash = (hash << 4) ^ (hash >> 28) ^ (u8++); + } + + return hash; + } + + public static uint face_id_hash(void *p) { + // Rotating XOR hash + uint8 u8 = (uint8) ((FaceID *) p)->id; + uint hash = 0; + for (int ctr = 0; ctr < (sizeof(int64) / sizeof(uint8)); ctr++) { + hash = (hash << 4) ^ (hash >> 28) ^ (u8++); + } + + return hash; + } + + public static void init(ProgressMonitor? monitor) { + face_photos_map = new Gee.HashMap> + ((Gee.HashDataFunc)face_id_hash, (Gee.EqualDataFunc)face_ids_equal); + photo_faces_map = new Gee.HashMap> + ((Gee.HashDataFunc)photo_id_hash, (Gee.EqualDataFunc)photo_ids_equal); + + // scoop up all the rows at once + Gee.List rows = null; + try { + rows = FaceLocationTable.get_instance().get_all_rows(); + } catch (DatabaseError err) { + AppWindow.database_error(err); + } + + // turn them into FaceLocation objects + int count = rows.size; + for (int ctr = 0; ctr < count; ctr++) { + FaceLocation.add_from_row(rows.get(ctr)); + + if (monitor != null) + monitor(ctr, count); + } + } + + public static void terminate() { + } + + public FaceLocationID get_face_location_id() { + return face_location_id; + } + + public string get_serialized_geometry() { + return geometry; + } + + private void set_serialized_geometry(string geometry) { + this.geometry = geometry; + } +} + +#endif diff --git a/src/faces/FacePage.vala b/src/faces/FacePage.vala new file mode 100644 index 0000000..41d1cef --- /dev/null +++ b/src/faces/FacePage.vala @@ -0,0 +1,127 @@ +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + */ + +#if ENABLE_FACES + +public class FacePage : CollectionPage { + private Face face; + + public FacePage(Face face) { + base (face.get_name()); + + this.face = face; + + Face.global.items_altered.connect(on_faces_altered); + face.mirror_sources(get_view(), create_thumbnail); + + init_page_context_menu("FacesContextMenu"); + } + + ~FacePage() { + get_view().halt_mirroring(); + Face.global.items_altered.disconnect(on_faces_altered); + } + + protected override void init_collect_ui_filenames(Gee.List ui_filenames) { + base.init_collect_ui_filenames(ui_filenames); + ui_filenames.add("faces.ui"); + } + + public Face get_face() { + return face; + } + + protected override void get_config_photos_sort(out bool sort_order, out int sort_by) { + Config.Facade.get_instance().get_event_photos_sort(out sort_order, out sort_by); + } + + protected override void set_config_photos_sort(bool sort_order, int sort_by) { + Config.Facade.get_instance().set_event_photos_sort(sort_order, sort_by); + } + + private const GLib.ActionEntry[] entries = { + { "DeleteFace", on_delete_face }, + { "RenameFace", on_rename_face }, + { "RemoveFaceFromPhotos", on_remove_face_from_photos }, + { "DeleteFaceSidebar", on_delete_face }, + { "RenameFaceSidebar", on_rename_face } + }; + + protected override void init_actions(int selected_count, int count) { + base.init_actions(selected_count, count); + + set_action_sensitive("DeleteFace", true); + set_action_sensitive("RenameFace", true); + set_action_sensitive("RemoveFaceFromPhotos", true); + } + + + protected override void add_actions (GLib.ActionMap map) { + base.add_actions (map); + + map.add_action_entries (entries, this); + } + + protected override InjectionGroup[] init_collect_injection_groups() { + InjectionGroup[] groups = base.init_collect_injection_groups(); + groups += create_faces_menu_injectables(); + return groups; + } + + private InjectionGroup create_faces_menu_injectables(){ + InjectionGroup menuFaces = new InjectionGroup("FacesMenuPlaceholder"); + + menuFaces.add_menu_item(Resources.remove_face_from_photos_menu(this.face.get_name(), get_view().get_count()), "RemoveFaceFromPhotos", "r"); + menuFaces.add_menu_item(Resources.rename_face_menu(this.face.get_name()), "RenameFace", "e"); + menuFaces.add_menu_item(Resources.delete_face_menu(this.face.get_name()), "DeleteFace", "t"); + + return menuFaces; + } + + private void on_faces_altered(Gee.Map map) { + if (map.has_key(face)) { + set_page_name(face.get_name()); + update_actions(get_view().get_selected_count(), get_view().get_count()); + } + } + + protected override void update_actions(int selected_count, int count) { + set_action_details("DeleteFace", + Resources.delete_face_menu(face.get_name()), + null, + true); + + set_action_details("RenameFace", + Resources.rename_face_menu(face.get_name()), + null, + true); + + set_action_details("RemoveFaceFromPhotos", + Resources.remove_face_from_photos_menu(face.get_name(), get_view().get_count()), + null, + selected_count > 0); + + base.update_actions(selected_count, count); + } + + private void on_rename_face() { + LibraryWindow.get_app().rename_face_in_sidebar(face); + } + + private void on_delete_face() { + if (Dialogs.confirm_delete_face(face)) + AppWindow.get_command_manager().execute(new DeleteFaceCommand(face)); + } + + private void on_remove_face_from_photos() { + if (get_view().get_selected_count() > 0) { + get_command_manager().execute(new RemoveFacesFromPhotosCommand(face, + (Gee.Collection) get_view().get_selected_sources())); + } + } +} + +#endif diff --git a/src/faces/FaceShape.vala b/src/faces/FaceShape.vala new file mode 100644 index 0000000..c14b43b --- /dev/null +++ b/src/faces/FaceShape.vala @@ -0,0 +1,783 @@ +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + */ + +#if ENABLE_FACES + +public abstract class FaceShape : Object { + public const string SHAPE_TYPE = null; + + protected const int FACE_WINDOW_MARGIN = 5; + protected const int LABEL_MARGIN = 12; + protected const int LABEL_PADDING = 9; + + public signal void add_me_requested(FaceShape face_shape); + public signal void delete_me_requested(); + + protected FacesTool.EditingFaceToolWindow face_window; + protected Gdk.CursorType current_cursor_type = Gdk.CursorType.BOTTOM_RIGHT_CORNER; + protected EditingTools.PhotoCanvas canvas; + protected string serialized = null; + + private bool editable = true; + private bool visible = true; + private bool known = true; + + private weak FacesTool.FaceWidget face_widget = null; + + public FaceShape(EditingTools.PhotoCanvas canvas) { + this.canvas = canvas; + this.canvas.new_surface.connect(prepare_ctx); + + prepare_ctx(this.canvas.get_default_ctx(), this.canvas.get_surface_dim()); + + face_window = new FacesTool.EditingFaceToolWindow(this.canvas.get_container()); + face_window.key_pressed.connect(key_press_event); + + face_window.show_all(); + face_window.hide(); + + this.canvas.get_drawing_window().set_cursor(new Gdk.Cursor(current_cursor_type)); + } + + ~FaceShape() { + if (visible) + erase(); + + face_window.destroy(); + + canvas.new_surface.disconnect(prepare_ctx); + + // make sure the cursor isn't set to a modify indicator + canvas.get_drawing_window().set_cursor(new Gdk.Cursor(Gdk.CursorType.LEFT_PTR)); + } + + public static FaceShape from_serialized(EditingTools.PhotoCanvas canvas, string serialized) + throws FaceShapeError { + FaceShape face_shape; + + string[] args = serialized.split(";"); + switch (args[0]) { + case "Rectangle": + face_shape = FaceRectangle.from_serialized(canvas, args); + + break; + default: + assert_not_reached(); + } + + face_shape.serialized = serialized; + + return face_shape; + } + + public void set_name(string face_name) { + face_window.entry.set_text(face_name); + } + + public string? get_name() { + string face_name = face_window.entry.get_text(); + + return face_name == "" ? null : face_name; + } + + public void set_known(bool known) { + this.known = known; + } + + public bool get_known() { + return known; + } + + public void set_widget(FacesTool.FaceWidget face_widget) { + this.face_widget = face_widget; + } + + public FacesTool.FaceWidget get_widget() { + assert(face_widget != null); + + return face_widget; + } + + public void hide() { + visible = false; + erase(); + + if (editable) + face_window.hide(); + + // make sure the cursor isn't set to a modify indicator + canvas.get_drawing_window().set_cursor(new Gdk.Cursor(Gdk.CursorType.LEFT_PTR)); + } + + public void show() { + visible = true; + paint(); + + if (editable) { + update_face_window_position(); + face_window.show(); + face_window.present(); + + if (!known) + face_window.entry.select_region(0, -1); + } + } + + public bool is_visible() { + return visible; + } + + public bool is_editable() { + return editable; + } + + public void set_editable(bool editable) { + if (visible && editable != is_editable()) { + hide(); + this.editable = editable; + show(); + + return; + } + + this.editable = editable; + } + + public bool key_press_event(Gdk.EventKey event) { + switch (Gdk.keyval_name(event.keyval)) { + case "Escape": + delete_me_requested(); + break; + case "Return": + case "KP_Enter": + add_me_requested(this); + break; + default: + return false; + } + + return true; + } + + public abstract string serialize(); + public abstract void update_face_window_position(); + public abstract void prepare_ctx(Cairo.Context ctx, Dimensions dim); + public abstract void on_resized_pixbuf(Dimensions old_dim, Gdk.Pixbuf scaled); + public abstract void on_motion(int x, int y, Gdk.ModifierType mask); + public abstract void on_left_released(int x, int y); + public abstract bool on_left_click(int x, int y); + public abstract bool cursor_is_over(int x, int y); + public abstract bool equals(FaceShape face_shape); + public abstract double get_distance(int x, int y); + + protected abstract void paint(); + protected abstract void erase(); +} + +public class FaceRectangle : FaceShape { + public new const string SHAPE_TYPE = "Rectangle"; + + private const int FACE_MIN_SIZE = 8; + public const int NULL_SIZE = 0; + + private Box box; + private Box? label_box; + private BoxLocation in_manipulation = BoxLocation.OUTSIDE; + private Cairo.Context wide_black_ctx = null; + private Cairo.Context wide_white_ctx = null; + private Cairo.Context thin_white_ctx = null; + private int last_grab_x = -1; + private int last_grab_y = -1; + + public FaceRectangle(EditingTools.PhotoCanvas canvas, int x, int y, + int half_width = NULL_SIZE, int half_height = NULL_SIZE) { + base(canvas); + + Gdk.Rectangle scaled_pixbuf_pos = canvas.get_scaled_pixbuf_position(); + x -= scaled_pixbuf_pos.x; + y -= scaled_pixbuf_pos.y; + + // If half_width is NULL_SIZE we are creating a new FaceShape, + // otherwise we are only showing a previously created one. + if (half_width == NULL_SIZE) { + box = Box(x, y, x, y); + + in_manipulation = BoxLocation.BOTTOM_RIGHT; + last_grab_x = x; + last_grab_y = y; + } else { + Dimensions pixbuf_dimensions = Dimensions.for_pixbuf(canvas.get_scaled_pixbuf()); + int right = (x + half_width).clamp(x, pixbuf_dimensions.width); + int bottom = (y + half_height).clamp(y, pixbuf_dimensions.height); + + box = Box(x - half_width, y - half_height, right, bottom); + } + } + + ~FaceRectangle() { + if (!is_editable()) + erase_label(); + } + + public static new FaceRectangle from_serialized(EditingTools.PhotoCanvas canvas, string[] args) + throws FaceShapeError { + assert(args[0] == SHAPE_TYPE); + + Photo photo = canvas.get_photo(); + Dimensions raw_dim = photo.get_raw_dimensions(); + + int x = (int) (raw_dim.width * double.parse(args[1])); + int y = (int) (raw_dim.height * double.parse(args[2])); + int half_width = (int) (raw_dim.width * double.parse(args[3])); + int half_height = (int) (raw_dim.height * double.parse(args[4])); + + Box box = Box(x - half_width, y - half_height, x + half_width, y + half_height); + + Dimensions current_dim = Dimensions.for_pixbuf(canvas.get_scaled_pixbuf()); + Box raw_cropped; + + if (photo.get_raw_crop(out raw_cropped)) { + box.left = box.left.clamp(raw_cropped.left, box.left) - raw_cropped.left; + box.right = box.right.clamp(box.right, raw_cropped.right) - raw_cropped.left; + box.top = box.top.clamp(raw_cropped.top, box.top) - raw_cropped.top; + box.bottom = box.bottom.clamp(box.bottom, raw_cropped.bottom) - raw_cropped.top; + + box = photo.get_orientation().rotate_box(raw_cropped.get_dimensions(), box); + + Box cropped; + photo.get_crop(out cropped); + box = box.get_scaled_similar(cropped.get_dimensions(), current_dim); + } else { + box = photo.get_orientation().rotate_box(raw_dim, box); + + box = box.get_scaled_similar(photo.get_dimensions(), current_dim); + } + + Gdk.Rectangle scaled_pixbuf_pos = canvas.get_scaled_pixbuf_position(); + box.left += scaled_pixbuf_pos.x; + box.right += scaled_pixbuf_pos.x; + box.top += scaled_pixbuf_pos.y; + box.bottom += scaled_pixbuf_pos.y; + + half_width = box.get_width() / 2; + half_height = box.get_height() / 2; + + if (half_width < FACE_MIN_SIZE || half_height < FACE_MIN_SIZE) + throw new FaceShapeError.CANT_CREATE("FaceShape is out of cropped photo area"); + + return new FaceRectangle(canvas, box.left + half_width, box.top + half_height, + half_width, half_height); + } + + public override void update_face_window_position() { + AppWindow appWindow = AppWindow.get_instance(); + Gtk.Allocation face_window_alloc; + Gdk.Rectangle scaled_pixbuf_pos = canvas.get_scaled_pixbuf_position(); + int x = 0; + int y = 0; + + if (canvas.get_container() == appWindow) { + appWindow.get_current_page().get_window().get_origin(out x, out y); + } else assert(canvas.get_container() is FullscreenWindow); + + face_window.get_allocation(out face_window_alloc); + + x += scaled_pixbuf_pos.x + box.left + ((box.get_width() - face_window_alloc.width) >> 1); + y += scaled_pixbuf_pos.y + box.bottom + FACE_WINDOW_MARGIN; + + face_window.move(x, y); + } + + protected override void paint() { + canvas.draw_box(wide_black_ctx, box); + canvas.draw_box(wide_white_ctx, box.get_reduced(1)); + canvas.draw_box(wide_white_ctx, box.get_reduced(2)); + + canvas.invalidate_area(box); + + if (!is_editable()) + paint_label(); + } + + protected override void erase() { + canvas.erase_box(box); + canvas.erase_box(box.get_reduced(1)); + canvas.erase_box(box.get_reduced(2)); + + canvas.invalidate_area(box); + + if (!is_editable()) + erase_label(); + } + + private void paint_label() { + Cairo.Context ctx = canvas.get_default_ctx(); + Gdk.Rectangle scaled_pixbuf_pos = canvas.get_scaled_pixbuf_position(); + + ctx.save(); + + Cairo.TextExtents text_extents = Cairo.TextExtents(); + ctx.text_extents(get_name(), out text_extents); + + int width = (int) text_extents.width + LABEL_PADDING; + int height = (int) text_extents.height; + int x = box.left + (box.get_width() - width) / 2; + int y = box.bottom + LABEL_MARGIN; + + label_box = Box(x, y, x + width, y + height + LABEL_PADDING); + + x += scaled_pixbuf_pos.x; + y += scaled_pixbuf_pos.y; + + ctx.rectangle(x, y, width, height + LABEL_PADDING); + ctx.set_source_rgba(0, 0, 0, 0.6); + ctx.fill(); + + ctx.set_source_rgb(1, 1, 1); + ctx.move_to(x + LABEL_PADDING / 2, y + height + LABEL_PADDING / 2); + ctx.show_text(get_name()); + + ctx.restore(); + } + + private void erase_label() { + if (label_box == null) + return; + + Gdk.Rectangle scaled_pixbuf_pos = canvas.get_scaled_pixbuf_position(); + int x = scaled_pixbuf_pos.x + label_box.left; + int y = scaled_pixbuf_pos.y + label_box.top; + + Cairo.Context ctx = canvas.get_default_ctx(); + ctx.save(); + + ctx.set_operator(Cairo.Operator.OVER); + ctx.rectangle(x, y, label_box.get_width(), label_box.get_height()); + + ctx.set_source_rgb(0.0, 0.0, 0.0); + ctx.fill_preserve(); + + ctx.set_source_surface(canvas.get_scaled_surface(), + scaled_pixbuf_pos.x, scaled_pixbuf_pos.y); + ctx.fill(); + + canvas.invalidate_area(label_box); + label_box = null; + + ctx.restore(); + } + + public override string serialize() { + if (serialized != null) + return serialized; + + double x; + double y; + double half_width; + double half_height; + + get_geometry(out x, out y, out half_width, out half_height); + + serialized = "%s;%s;%s;%s;%s".printf(SHAPE_TYPE, x.to_string(), + y.to_string(), half_width.to_string(), half_height.to_string()); + + return serialized; + } + + public void get_geometry(out double x, out double y, + out double half_width, out double half_height) { + Photo photo = canvas.get_photo(); + Dimensions raw_dim = photo.get_raw_dimensions(); + + Box temp_box = box; + + Dimensions current_dim = Dimensions.for_pixbuf(canvas.get_scaled_pixbuf()); + Box cropped; + + if (photo.get_crop(out cropped)) { + temp_box = temp_box.get_scaled_similar(current_dim, cropped.get_dimensions()); + + Box raw_cropped; + photo.get_raw_crop(out raw_cropped); + + temp_box = + photo.get_orientation().derotate_box(raw_cropped.get_dimensions(), temp_box); + + temp_box.left += raw_cropped.left; + temp_box.right += raw_cropped.left; + temp_box.top += raw_cropped.top; + temp_box.bottom += raw_cropped.top; + } else { + temp_box = temp_box.get_scaled_similar(current_dim, photo.get_dimensions()); + + temp_box = photo.get_orientation().derotate_box(raw_dim, temp_box); + } + + x = (temp_box.left + (temp_box.get_width() / 2)) / (double) raw_dim.width; + y = (temp_box.top + (temp_box.get_height() / 2)) / (double) raw_dim.height; + + double width_left_end = temp_box.left / (double) raw_dim.width; + double width_right_end = temp_box.right / (double) raw_dim.width; + double height_top_end = temp_box.top / (double) raw_dim.height; + double height_bottom_end = temp_box.bottom / (double) raw_dim.height; + + half_width = (width_right_end - width_left_end) / 2; + half_height = (height_bottom_end - height_top_end) / 2; + } + + public override bool equals(FaceShape face_shape) { + return serialize() == face_shape.serialize(); + } + + public override void prepare_ctx(Cairo.Context ctx, Dimensions dim) { + wide_black_ctx = new Cairo.Context(ctx.get_target()); + set_source_color_from_string(wide_black_ctx, "#000"); + wide_black_ctx.set_line_width(1); + + wide_white_ctx = new Cairo.Context(ctx.get_target()); + set_source_color_from_string(wide_black_ctx, "#FFF"); + wide_white_ctx.set_line_width(1); + + thin_white_ctx = new Cairo.Context(ctx.get_target()); + set_source_color_from_string(wide_black_ctx, "#FFF"); + thin_white_ctx.set_line_width(0.5); + } + + private bool on_canvas_manipulation(int x, int y) { + Gdk.Rectangle scaled_pos = canvas.get_scaled_pixbuf_position(); + + // box is maintained in coordinates non-relative to photo's position on canvas ... + // but bound tool to photo itself + x -= scaled_pos.x; + if (x < 0) + x = 0; + else if (x >= scaled_pos.width) + x = scaled_pos.width - 1; + + y -= scaled_pos.y; + if (y < 0) + y = 0; + else if (y >= scaled_pos.height) + y = scaled_pos.height - 1; + + // need to make manipulations outside of box structure, because its methods do sanity + // checking + int left = box.left; + int top = box.top; + int right = box.right; + int bottom = box.bottom; + + // get extra geometric information needed to enforce constraints + int photo_right_edge = canvas.get_scaled_pixbuf().width - 1; + int photo_bottom_edge = canvas.get_scaled_pixbuf().height - 1; + + switch (in_manipulation) { + case BoxLocation.LEFT_SIDE: + left = x; + break; + + case BoxLocation.TOP_SIDE: + top = y; + break; + + case BoxLocation.RIGHT_SIDE: + right = x; + break; + + case BoxLocation.BOTTOM_SIDE: + bottom = y; + break; + + case BoxLocation.TOP_LEFT: + top = y; + left = x; + break; + + case BoxLocation.BOTTOM_LEFT: + bottom = y; + left = x; + break; + + case BoxLocation.TOP_RIGHT: + top = y; + right = x; + break; + + case BoxLocation.BOTTOM_RIGHT: + bottom = y; + right = x; + break; + + case BoxLocation.INSIDE: + assert(last_grab_x >= 0); + assert(last_grab_y >= 0); + + int delta_x = (x - last_grab_x); + int delta_y = (y - last_grab_y); + + last_grab_x = x; + last_grab_y = y; + + int width = right - left + 1; + int height = bottom - top + 1; + + left += delta_x; + top += delta_y; + right += delta_x; + bottom += delta_y; + + // bound box inside of photo + if (left < 0) + left = 0; + + if (top < 0) + top = 0; + + if (right >= scaled_pos.width) + right = scaled_pos.width - 1; + + if (bottom >= scaled_pos.height) + bottom = scaled_pos.height - 1; + + int adj_width = right - left + 1; + int adj_height = bottom - top + 1; + + // don't let adjustments affect the size of the box + if (adj_width != width) { + if (delta_x < 0) + right = left + width - 1; + else left = right - width + 1; + } + + if (adj_height != height) { + if (delta_y < 0) + bottom = top + height - 1; + else top = bottom - height + 1; + } + break; + + default: + // do nothing, not even a repaint + return false; + } + + // Check if the mouse has gone out of bounds, and if it has, make sure that the + // face shape edges stay within the photo bounds. + int width = right - left + 1; + int height = bottom - top + 1; + + if (left < 0) + left = 0; + if (top < 0) + top = 0; + if (right > photo_right_edge) + right = photo_right_edge; + if (bottom > photo_bottom_edge) + bottom = photo_bottom_edge; + + width = right - left + 1; + height = bottom - top + 1; + + switch (in_manipulation) { + case BoxLocation.LEFT_SIDE: + case BoxLocation.TOP_LEFT: + case BoxLocation.BOTTOM_LEFT: + if (width < FACE_MIN_SIZE) + left = right - FACE_MIN_SIZE; + break; + + case BoxLocation.RIGHT_SIDE: + case BoxLocation.TOP_RIGHT: + case BoxLocation.BOTTOM_RIGHT: + if (width < FACE_MIN_SIZE) + right = left + FACE_MIN_SIZE; + break; + + default: + break; + } + + switch (in_manipulation) { + case BoxLocation.TOP_SIDE: + case BoxLocation.TOP_LEFT: + case BoxLocation.TOP_RIGHT: + if (height < FACE_MIN_SIZE) + top = bottom - FACE_MIN_SIZE; + break; + + case BoxLocation.BOTTOM_SIDE: + case BoxLocation.BOTTOM_LEFT: + case BoxLocation.BOTTOM_RIGHT: + if (height < FACE_MIN_SIZE) + bottom = top + FACE_MIN_SIZE; + break; + + default: + break; + } + + Box new_box = Box(left, top, right, bottom); + + if (!box.equals(new_box)) { + erase(); + + if (in_manipulation != BoxLocation.INSIDE) + check_resized_box(new_box); + + box = new_box; + paint(); + } + + if (is_editable()) + update_face_window_position(); + + serialized = null; + + return false; + } + + private void check_resized_box(Box new_box) { + Box horizontal; + bool horizontal_enlarged; + Box vertical; + bool vertical_enlarged; + BoxComplements complements = box.resized_complements(new_box, out horizontal, + out horizontal_enlarged, out vertical, out vertical_enlarged); + + // this should never happen ... this means that the operation wasn't a resize + assert(complements != BoxComplements.NONE); + } + + private void update_cursor(int x, int y) { + // box is not maintained relative to photo's position on canvas + Gdk.Rectangle scaled_pos = canvas.get_scaled_pixbuf_position(); + Box offset_scaled_box = box.get_offset(scaled_pos.x, scaled_pos.y); + + Gdk.CursorType cursor_type = Gdk.CursorType.LEFT_PTR; + switch (offset_scaled_box.approx_location(x, y)) { + case BoxLocation.LEFT_SIDE: + cursor_type = Gdk.CursorType.LEFT_SIDE; + break; + + case BoxLocation.TOP_SIDE: + cursor_type = Gdk.CursorType.TOP_SIDE; + break; + + case BoxLocation.RIGHT_SIDE: + cursor_type = Gdk.CursorType.RIGHT_SIDE; + break; + + case BoxLocation.BOTTOM_SIDE: + cursor_type = Gdk.CursorType.BOTTOM_SIDE; + break; + + case BoxLocation.TOP_LEFT: + cursor_type = Gdk.CursorType.TOP_LEFT_CORNER; + break; + + case BoxLocation.BOTTOM_LEFT: + cursor_type = Gdk.CursorType.BOTTOM_LEFT_CORNER; + break; + + case BoxLocation.TOP_RIGHT: + cursor_type = Gdk.CursorType.TOP_RIGHT_CORNER; + break; + + case BoxLocation.BOTTOM_RIGHT: + cursor_type = Gdk.CursorType.BOTTOM_RIGHT_CORNER; + break; + + case BoxLocation.INSIDE: + cursor_type = Gdk.CursorType.FLEUR; + break; + + default: + // use Gdk.CursorType.LEFT_PTR + break; + } + + if (cursor_type != current_cursor_type) { + Gdk.Cursor cursor = new Gdk.Cursor(cursor_type); + canvas.get_drawing_window().set_cursor(cursor); + current_cursor_type = cursor_type; + } + } + + public override void on_motion(int x, int y, Gdk.ModifierType mask) { + // only deal with manipulating the box when click-and-dragging one of the edges + // or the interior + if (in_manipulation != BoxLocation.OUTSIDE) + on_canvas_manipulation(x, y); + + update_cursor(x, y); + } + + public override bool on_left_click(int x, int y) { + Gdk.Rectangle scaled_pixbuf_pos = canvas.get_scaled_pixbuf_position(); + + // box is not maintained relative to photo's position on canvas + Box offset_scaled_box = box.get_offset(scaled_pixbuf_pos.x, scaled_pixbuf_pos.y); + + // determine where the mouse down landed and store for future events + in_manipulation = offset_scaled_box.approx_location(x, y); + last_grab_x = x -= scaled_pixbuf_pos.x; + last_grab_y = y -= scaled_pixbuf_pos.y; + + return box.approx_location(x, y) != BoxLocation.OUTSIDE; + } + + public override void on_left_released(int x, int y) { + if (box.get_width() < FACE_MIN_SIZE) { + delete_me_requested(); + + return; + } + + if (is_editable()) { + face_window.show(); + face_window.present(); + } + + // nothing to do if released outside of the face box + if (in_manipulation == BoxLocation.OUTSIDE) + return; + + // end manipulation + in_manipulation = BoxLocation.OUTSIDE; + last_grab_x = -1; + last_grab_y = -1; + + update_cursor(x, y); + } + + public override void on_resized_pixbuf(Dimensions old_dim, Gdk.Pixbuf scaled) { + Dimensions new_dim = Dimensions.for_pixbuf(scaled); + Dimensions uncropped_dim = canvas.get_photo().get_original_dimensions(); + + Box new_box = box.get_scaled_similar(old_dim, uncropped_dim); + + // rescale back to new size + box = new_box.get_scaled_similar(uncropped_dim, new_dim); + update_face_window_position(); + } + + public override bool cursor_is_over(int x, int y) { + // box is not maintained relative to photo's position on canvas + Gdk.Rectangle scaled_pos = canvas.get_scaled_pixbuf_position(); + Box offset_scaled_box = box.get_offset(scaled_pos.x, scaled_pos.y); + + return offset_scaled_box.approx_location(x, y) != BoxLocation.OUTSIDE; + } + + public override double get_distance(int x, int y) { + double center_x = box.left + box.get_width() / 2.0; + double center_y = box.top + box.get_height() / 2.0; + + return Math.sqrt((center_x - x) * (center_x - x) + (center_y - y) * (center_y - y)); + } +} + +#endif diff --git a/src/faces/Faces.vala b/src/faces/Faces.vala new file mode 100644 index 0000000..3f0623a --- /dev/null +++ b/src/faces/Faces.vala @@ -0,0 +1,37 @@ +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + */ + +#if ENABLE_FACES + +namespace Faces { + +public void init() throws Error { + Faces.SidebarEntry.init(); +} + +public void terminate() { + Faces.SidebarEntry.terminate(); +} + +} + +#else + +namespace Faces { + +public void init() throws Error { + // do nothing; this method is here only + // to make the unitizing mechanism happy +} + +public void terminate() { + // do nothing; this method is here only + // to make the unitizing mechanism happy +} + +} + +#endif diff --git a/src/faces/FacesBranch.vala b/src/faces/FacesBranch.vala new file mode 100644 index 0000000..1eb25cf --- /dev/null +++ b/src/faces/FacesBranch.vala @@ -0,0 +1,146 @@ +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + */ + +#if ENABLE_FACES + +public class Faces.Branch : Sidebar.Branch { + private Gee.HashMap entry_map = new Gee.HashMap(); + + public Branch() { + base (new Faces.Grouping(), + Sidebar.Branch.Options.HIDE_IF_EMPTY + | Sidebar.Branch.Options.AUTO_OPEN_ON_NEW_CHILD + | Sidebar.Branch.Options.STARTUP_EXPAND_TO_FIRST_CHILD, + comparator); + + // seed the branch with existing faces + on_faces_added_removed(Face.global.get_all(), null); + + // monitor collection for future events + Face.global.contents_altered.connect(on_faces_added_removed); + Face.global.items_altered.connect(on_faces_altered); + } + + ~Branch() { + Face.global.contents_altered.disconnect(on_faces_added_removed); + Face.global.items_altered.disconnect(on_faces_altered); + } + + public Faces.SidebarEntry? get_entry_for_face(Face face) { + return entry_map.get(face); + } + + private static int comparator(Sidebar.Entry a, Sidebar.Entry b) { + if (a == b) + return 0; + + return Face.compare_names(((Faces.SidebarEntry) a).for_face(), + ((Faces.SidebarEntry) b).for_face()); + } + + private void on_faces_added_removed(Gee.Iterable? added, Gee.Iterable? removed) { + if (added != null) { + foreach (DataObject object in added) { + Face face = (Face) object; + + Faces.SidebarEntry entry = new Faces.SidebarEntry(face); + entry_map.set(face, entry); + + graft(get_root(), entry); + } + } + + if (removed != null) { + foreach (DataObject object in removed) { + Face face = (Face) object; + + Faces.SidebarEntry? entry = entry_map.get(face); + assert(entry != null); + + bool is_removed = entry_map.unset(face); + assert(is_removed); + + prune(entry); + } + } + } + + private void on_faces_altered(Gee.Map altered) { + foreach (DataObject object in altered.keys) { + if (!altered.get(object).has_detail("metadata", "name")) + continue; + + Face face = (Face) object; + Faces.SidebarEntry? entry = entry_map.get(face); + assert(entry != null); + + entry.sidebar_name_changed(face.get_name()); + entry.sidebar_tooltip_changed(face.get_name()); + reorder(entry); + } + } +} + +public class Faces.Grouping : Sidebar.Header { + public Grouping() { + base (_("Faces")); + } +} + +public class Faces.SidebarEntry : Sidebar.SimplePageEntry, Sidebar.RenameableEntry, + Sidebar.DestroyableEntry { + private static string single_face_icon = Resources.ICON_ONE_FACE; + + private Face face; + + public SidebarEntry(Face face) { + this.face = face; + } + + internal static void init() { + } + + internal static void terminate() { + } + + public Face for_face() { + return face; + } + + public bool is_user_renameable() { + return true; + } + + public override string get_sidebar_name() { + return face.get_name(); + } + + public override string? get_sidebar_icon() { + return single_face_icon; + } + + protected override Page create_page() { + return new FacePage(face); + } + + public void rename(string new_name) { + string? prepped = Face.prep_face_name(new_name); + if (prepped == null) + return; + + if (!Face.global.exists(prepped)) + AppWindow.get_command_manager().execute(new RenameFaceCommand(face, prepped)); + else if (prepped != face.get_name()) + AppWindow.error_message(Resources.rename_face_exists_message(prepped)); + } + + public void destroy_source() { + if (Dialogs.confirm_delete_face(face)) + AppWindow.get_command_manager().execute(new DeleteFaceCommand(face)); + } +} + +#endif diff --git a/src/faces/FacesTool.vala b/src/faces/FacesTool.vala new file mode 100644 index 0000000..cf53736 --- /dev/null +++ b/src/faces/FacesTool.vala @@ -0,0 +1,977 @@ +/* Copyright 2018 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + */ + +#if ENABLE_FACES +public errordomain FaceShapeError { + CANT_CREATE +} + +public class FacesTool : EditingTools.EditingTool { + protected const int CONTROL_SPACING = 8; + protected const int FACE_LABEL_MAX_CHARS = 15; + + private enum EditingPhase { + CLICK_TO_EDIT, + NOT_EDITING, + CREATING_DRAGGING, + CREATING_EDITING, + EDITING, + DETECTING_FACES, + DETECTING_FACES_FINISHED + } + + public class FaceWidget : Gtk.Box { + private static Pango.AttrList attrs_bold; + private static Pango.AttrList attrs_normal; + + public signal void face_hidden(); + + public Gtk.Button edit_button; + public Gtk.Button delete_button; + public Gtk.Label label; + + public weak FaceShape face_shape; + + static construct { + attrs_bold = new Pango.AttrList(); + attrs_bold.insert(Pango.attr_weight_new(Pango.Weight.BOLD)); + attrs_normal = new Pango.AttrList(); + attrs_normal.insert(Pango.attr_weight_new(Pango.Weight.NORMAL)); + } + + public FaceWidget (FaceShape face_shape) { + spacing = CONTROL_SPACING; + + edit_button = new Gtk.Button.with_label(Resources.EDIT_LABEL); + edit_button.set_use_underline(true); + delete_button = new Gtk.Button.with_label(Resources.DELETE_LABEL); + delete_button.set_use_underline(true); + + label = new Gtk.Label(face_shape.get_name()); + label.halign = Gtk.Align.START; + label.valign = Gtk.Align.CENTER; + label.ellipsize = Pango.EllipsizeMode.END; + label.width_chars = FACE_LABEL_MAX_CHARS; + + pack_start(label, true); + pack_start(edit_button, false); + pack_start(delete_button, false); + + this.face_shape = face_shape; + face_shape.set_widget(this); + } + + public bool on_enter_notify_event() { + activate_label(); + + if (face_shape.is_editable()) + return false; + + // This check is necessary to avoid painting the face twice --see + // note in on_leave_notify_event. + if (!face_shape.is_visible()) + face_shape.show(); + + return true; + } + + public bool on_leave_notify_event() { + // This check is necessary because GTK+ will throw enter/leave_notify + // events when the pointer passes though windows, even if one window + // belongs to a widget that is a child of the widget that throws this + // signal. So, this check is necessary to avoid "deactivation" of + // the label if the pointer enters one of the buttons in this FaceWidget. + if (!is_pointer_over(get_window())) { + deactivate_label(); + + if (face_shape.is_editable()) + return false; + + face_shape.hide(); + face_hidden(); + } + + return true; + } + + public void activate_label() { + label.set_attributes(attrs_bold); + } + + public void deactivate_label() { + label.set_attributes(attrs_normal); + } + } + + private class FacesToolWindow : EditingTools.EditingToolWindow { + public signal void face_hidden(); + public signal void face_edit_requested(string face_name); + public signal void face_delete_requested(string face_name); + public signal void detection_canceled(); + + public Gtk.Button detection_button = new Gtk.Button.with_label(_("Detect faces…")); + public Gtk.Button ok_button; + public Gtk.Button cancel_button; + public Gtk.Button cancel_detection_button; + + private EditingPhase editing_phase = EditingPhase.NOT_EDITING; + private Gtk.Box help_layout = null; + private Gtk.Box response_layout = null; + private Gtk.HSeparator buttons_text_separator = null; + private Gtk.Label help_text = null; + private Gtk.Box face_widgets_layout = null; + private Gtk.Box layout = null; + + public FacesToolWindow(Gtk.Window container) { + base(container); + + ok_button = new Gtk.Button.with_label(Resources.OK_LABEL); + ok_button.set_use_underline(true); + + cancel_button = new Gtk.Button.with_label(Resources.CANCEL_LABEL); + cancel_button.set_use_underline(true); + + cancel_detection_button = new Gtk.Button.with_label(Resources.CANCEL_LABEL); + cancel_detection_button.set_use_underline(true); + + detection_button.set_tooltip_text(_("Detect faces on this photo")); + + cancel_detection_button.set_tooltip_text(_("Cancel face detection")); + cancel_detection_button.set_image_position(Gtk.PositionType.LEFT); + cancel_detection_button.clicked.connect(on_cancel_detection); + + cancel_button.set_tooltip_text(_("Close the Faces tool without saving changes")); + cancel_button.set_image_position(Gtk.PositionType.LEFT); + + ok_button.set_image_position(Gtk.PositionType.LEFT); + + face_widgets_layout = new Gtk.Box(Gtk.Orientation.VERTICAL, CONTROL_SPACING); + + help_text = new Gtk.Label(_("Click and drag to tag a face")); + help_layout = new Gtk.Box(Gtk.Orientation.HORIZONTAL, CONTROL_SPACING); + help_layout.pack_start(help_text, true); + + response_layout = new Gtk.Box(Gtk.Orientation.HORIZONTAL, CONTROL_SPACING); + response_layout.add(detection_button); + response_layout.add(cancel_button); + response_layout.add(ok_button); + + layout = new Gtk.Box(Gtk.Orientation.VERTICAL, CONTROL_SPACING); + layout.pack_start(face_widgets_layout, false); + layout.pack_start(help_layout, false); + layout.pack_start(new Gtk.HSeparator(), false); + layout.pack_start(response_layout, false); + + add(layout); + } + + public void set_editing_phase(EditingPhase phase, FaceShape? face_shape = null) { + if (editing_phase == EditingPhase.DETECTING_FACES && + phase != EditingPhase.DETECTING_FACES_FINISHED) + return; + + switch (phase) { + case EditingPhase.CLICK_TO_EDIT: + assert(face_shape != null); + + help_text.set_markup(Markup.printf_escaped(_("Click to edit face %s"), + face_shape.get_name())); + + break; + case EditingPhase.NOT_EDITING: + help_text.set_text(_("Click and drag to tag a face")); + + break; + case EditingPhase.CREATING_DRAGGING: + help_text.set_text(_("Stop dragging to add your face and name it.")); + + break; + case EditingPhase.CREATING_EDITING: + help_text.set_text(_("Type a name for this face, then press Enter")); + + break; + case EditingPhase.EDITING: + help_text.set_text(_("Move or modify the face shape or name and press Enter")); + + break; + case EditingPhase.DETECTING_FACES: + help_text.set_text(_("Detecting faces")); + + if (cancel_detection_button.get_parent() == null) + help_layout.pack_start(cancel_detection_button, false); + + detection_button.set_sensitive(false); + cancel_detection_button.set_sensitive(true); + cancel_detection_button.show(); + + break; + case EditingPhase.DETECTING_FACES_FINISHED: + help_text.set_text(_("If you don’t set the name of unknown faces they won’t be saved.")); + + break; + default: + assert_not_reached(); + } + + if (editing_phase == EditingPhase.DETECTING_FACES && editing_phase != phase) { + cancel_detection_button.hide(); + detection_button.set_sensitive(true); + } + + editing_phase = phase; + } + + public EditingPhase get_editing_phase() { + return editing_phase; + } + + public void ok_button_set_sensitive(bool sensitive) { + if (sensitive) + ok_button.set_tooltip_text(_("Save changes and close the Faces tool")); + else + ok_button.set_tooltip_text(_("No changes to save")); + + ok_button.set_sensitive(sensitive); + } + + public void add_face(FaceShape face_shape) { + FaceWidget face_widget = new FaceWidget(face_shape); + + face_widget.face_hidden.connect(on_face_hidden); + face_widget.edit_button.clicked.connect(edit_face); + face_widget.delete_button.clicked.connect(delete_face); + + Gtk.EventBox event_box = new Gtk.EventBox(); + event_box.add(face_widget); + event_box.add_events(Gdk.EventMask.ENTER_NOTIFY_MASK | Gdk.EventMask.LEAVE_NOTIFY_MASK); + event_box.enter_notify_event.connect(face_widget.on_enter_notify_event); + event_box.leave_notify_event.connect(face_widget.on_leave_notify_event); + + face_widgets_layout.pack_start(event_box, false); + + if (buttons_text_separator == null) { + buttons_text_separator = new Gtk.HSeparator(); + face_widgets_layout.pack_end(buttons_text_separator, false); + } + + face_widgets_layout.show_all(); + } + + private void edit_face(Gtk.Button button) { + FaceWidget widget = (FaceWidget) button.get_parent(); + + face_edit_requested(widget.label.get_text()); + } + + private void delete_face(Gtk.Button button) { + FaceWidget widget = (FaceWidget) button.get_parent(); + + face_delete_requested(widget.label.get_text()); + + widget.get_parent().destroy(); + + if (face_widgets_layout.get_children().length() == 1) { + buttons_text_separator.destroy(); + buttons_text_separator = null; + } + } + + private void on_face_hidden() { + face_hidden(); + } + + private void on_cancel_detection() { + detection_canceled(); + } + } + + public class EditingFaceToolWindow : EditingTools.EditingToolWindow { + public signal bool key_pressed(Gdk.EventKey event); + + public Gtk.Entry entry; + + private Gtk.Box layout = null; + + public EditingFaceToolWindow(Gtk.Window container) { + base(container); + + entry = new Gtk.Entry(); + + layout = new Gtk.Box(Gtk.Orientation.HORIZONTAL, CONTROL_SPACING); + layout.add(entry); + + add(layout); + } + + public override bool key_press_event(Gdk.EventKey event) { + return key_pressed(event) || base.key_press_event(event); + } + } + + private class FaceDetectionJob : BackgroundJob { + private Gee.Queue faces = null; + private string image_path; + private string output; + public SpawnError? spawnError; + + public FaceDetectionJob(FacesToolWindow owner, string image_path, + CompletionCallback completion_callback, Cancellable cancellable, + CancellationCallback cancellation_callback) { + base(owner, completion_callback, cancellable, cancellation_callback); + + this.image_path = image_path; + } + + public override void execute() { + try { + string[] argv = { + AppDirs.get_facedetect_bin().get_path(), + "--cascade=" + AppDirs.get_haarcascade_file().get_path(), + "--scale=1.2", + image_path + }; + Process.spawn_sync(null, argv, null, SpawnFlags.STDERR_TO_DEV_NULL, null, out output); + + } catch (SpawnError e) { + spawnError = e; + critical(e.message); + + return; + } + + faces = new Gee.PriorityQueue(); + string[] lines = output.split("\n"); + foreach (string line in lines) { + if (line.length == 0) + continue; + + string[] type_and_serialized = line.split(";"); + if (type_and_serialized.length != 2) { + critical("Wrong serialized line in face detection program output."); + assert_not_reached(); + } + + switch (type_and_serialized[0]) { + case "face": + StringBuilder serialized_geometry = new StringBuilder(); + serialized_geometry.append(FaceRectangle.SHAPE_TYPE); + serialized_geometry.append(";"); + serialized_geometry.append(parse_serialized_geometry(type_and_serialized[1])); + + faces.add(serialized_geometry.str); + break; + + case "warning": + warning("%s\n", type_and_serialized[1]); + break; + + case "error": + critical("%s\n", type_and_serialized[1]); + assert_not_reached(); + + default: + assert_not_reached(); + } + } + } + + private string parse_serialized_geometry(string serialized_geometry) { + string[] serialized_geometry_pieces = serialized_geometry.split("&"); + if (serialized_geometry_pieces.length != 4) { + critical("Wrong serialized line in face detection program output."); + assert_not_reached(); + } + + double x = 0; + double y = 0; + double width = 0; + double height = 0; + foreach (string piece in serialized_geometry_pieces) { + + string[] name_and_value = piece.split("="); + if (name_and_value.length != 2) { + critical("Wrong serialized line in face detection program output."); + assert_not_reached(); + } + + switch (name_and_value[0]) { + case "x": + x = name_and_value[1].to_double(); + break; + + case "y": + y = name_and_value[1].to_double(); + break; + + case "width": + width = name_and_value[1].to_double(); + break; + + case "height": + height = name_and_value[1].to_double(); + break; + + default: + critical("Wrong serialized line in face detection program output."); + assert_not_reached(); + } + } + + double half_width = width / 2; + double half_height = height / 2; + + return "%s;%s;%s;%s".printf((x + half_width).to_string(), (y + half_height).to_string(), + half_width.to_string(), half_height.to_string()); + } + + public string? get_next() { + if (faces == null) + return null; + + return faces.poll(); + } + + public void reset() { + faces = null; + } + } + + private Cairo.Surface image_surface = null; + private Gee.HashMap face_shapes; + private Gee.HashMap original_face_locations; + private Cancellable face_detection_cancellable; + private FaceDetectionJob face_detection; + private Workers workers; + private FaceShape editing_face_shape = null; + private FacesToolWindow faces_tool_window = null; + + private FacesTool() { + base("FacesTool"); + } + + public static FacesTool factory() { + return new FacesTool(); + } + + public override void activate(EditingTools.PhotoCanvas canvas) { + face_shapes = new Gee.HashMap(); + original_face_locations = new Gee.HashMap(); + + bind_canvas_handlers(canvas); + + if (image_surface != null) + image_surface = null; + + Gdk.Rectangle scaled_pixbuf_position = canvas.get_scaled_pixbuf_position(); + image_surface = new Cairo.ImageSurface(Cairo.Format.ARGB32, + scaled_pixbuf_position.width, + scaled_pixbuf_position.height); + + faces_tool_window = new FacesToolWindow(canvas.get_container()); + + Gee.Map? face_locations = + FaceLocation.get_locations_by_photo(canvas.get_photo()); + if (face_locations != null) + foreach (Gee.Map.Entry entry in face_locations.entries) { + FaceShape new_face_shape; + string serialized_geometry = entry.value.get_serialized_geometry(); + try { + new_face_shape = FaceShape.from_serialized(canvas, serialized_geometry); + } catch (FaceShapeError e) { + if (e is FaceShapeError.CANT_CREATE) + continue; + + assert_not_reached(); + } + Face? face = Face.global.fetch(entry.key); + assert(face != null); + string face_name = face.get_name(); + new_face_shape.set_name(face_name); + + add_face(new_face_shape); + original_face_locations.set(face_name, serialized_geometry); + } + + set_ok_button_sensitivity(); + + face_detection_cancellable = new Cancellable(); + workers = new Workers(1, false); + face_detection = new FaceDetectionJob(faces_tool_window, + canvas.get_photo().get_file().get_path(), on_faces_detected, + face_detection_cancellable, on_detection_cancelled); + + bind_window_handlers(); + + base.activate(canvas); + } + + public override void deactivate() { + if (canvas != null) + unbind_canvas_handlers(canvas); + + if (faces_tool_window != null) { + unbind_window_handlers(); + faces_tool_window.hide(); + faces_tool_window.destroy(); + faces_tool_window = null; + } + + base.deactivate(); + } + + private void bind_canvas_handlers(EditingTools.PhotoCanvas canvas) { + canvas.new_surface.connect(prepare_ctx); + canvas.resized_scaled_pixbuf.connect(on_resized_pixbuf); + } + + private void unbind_canvas_handlers(EditingTools.PhotoCanvas canvas) { + canvas.new_surface.disconnect(prepare_ctx); + canvas.resized_scaled_pixbuf.disconnect(on_resized_pixbuf); + } + + private void bind_window_handlers() { + faces_tool_window.key_press_event.connect(on_keypress); + faces_tool_window.ok_button.clicked.connect(on_faces_ok); + faces_tool_window.cancel_button.clicked.connect(notify_cancel); + faces_tool_window.detection_button.clicked.connect(detect_faces); + faces_tool_window.face_hidden.connect(on_face_hidden); + faces_tool_window.face_edit_requested.connect(edit_face); + faces_tool_window.face_delete_requested.connect(delete_face); + faces_tool_window.detection_canceled.connect(cancel_face_detection); + } + + private void unbind_window_handlers() { + faces_tool_window.key_press_event.disconnect(on_keypress); + faces_tool_window.ok_button.clicked.disconnect(on_faces_ok); + faces_tool_window.cancel_button.clicked.disconnect(notify_cancel); + faces_tool_window.detection_button.clicked.disconnect(detect_faces); + faces_tool_window.face_hidden.disconnect(on_face_hidden); + faces_tool_window.face_edit_requested.disconnect(edit_face); + faces_tool_window.face_delete_requested.disconnect(delete_face); + faces_tool_window.detection_canceled.disconnect(cancel_face_detection); + } + + private void prepare_ctx(Cairo.Context ctx, Dimensions dim) { + if (editing_face_shape != null) + editing_face_shape.prepare_ctx(ctx, dim); + } + + private void on_resized_pixbuf(Dimensions old_dim, Gdk.Pixbuf scaled, Gdk.Rectangle scaled_position) { + if (image_surface != null) + image_surface = null; + + image_surface = new Cairo.ImageSurface(Cairo.Format.ARGB32, scaled.width, scaled.height); + Cairo.Context ctx = new Cairo.Context(image_surface); + ctx.set_source_rgba(255.0, 255.0, 255.0, 0.0); + ctx.paint(); + + if (editing_face_shape != null) + editing_face_shape.on_resized_pixbuf(old_dim, scaled); + + if (face_shapes != null) + foreach (FaceShape face_shape in face_shapes.values) + face_shape.on_resized_pixbuf(old_dim, scaled); + } + + public override bool on_keypress(Gdk.EventKey event) { + string event_keyval = Gdk.keyval_name(event.keyval); + + if (event_keyval == "Return" || event_keyval == "KP_Enter") { + on_faces_ok(); + return true; + } + + return base.on_keypress(event); + } + + public override void on_left_click(int x, int y) { + if (editing_face_shape != null && editing_face_shape.on_left_click(x, y)) + return; + + foreach (FaceShape face_shape in face_shapes.values) { + if (face_shape.is_visible() && face_shape.cursor_is_over(x, y)) { + edit_face_shape(face_shape); + face_shape.set_editable(true); + + return; + } + } + + new_face_shape(x, y); + } + + public override void on_left_released(int x, int y) { + if (editing_face_shape != null) { + editing_face_shape.on_left_released(x, y); + + if (faces_tool_window.get_editing_phase() == EditingPhase.CREATING_DRAGGING) + faces_tool_window.set_editing_phase(EditingPhase.CREATING_EDITING); + } + } + + public override void on_motion(int x, int y, Gdk.ModifierType mask) { + if (editing_face_shape == null) { + FaceShape to_show = null; + double distance = 0; + double new_distance; + + foreach (FaceShape face_shape in face_shapes.values) { + bool cursor_is_over = face_shape.cursor_is_over(x, y); + + // The FaceShape that will be shown needs to be repainted + // even if it is already visible, since it could be erased by + // another hiding FaceShape -and for the same + // reason it needs to be painted after all + // hiding faces are already erased. + // Also, we paint the FaceShape whose center is closer + // to the pointer. + if (cursor_is_over) { + face_shape.hide(); + face_shape.get_widget().deactivate_label(); + + if (to_show == null) { + to_show = face_shape; + distance = face_shape.get_distance(x, y); + } else { + new_distance = face_shape.get_distance(x, y); + + if (new_distance < distance) { + to_show = face_shape; + distance = new_distance; + } + } + } else if (!cursor_is_over && face_shape.is_visible()) { + face_shape.hide(); + face_shape.get_widget().deactivate_label(); + } + } + + if (to_show == null) { + faces_tool_window.set_editing_phase(EditingPhase.NOT_EDITING); + } else { + faces_tool_window.set_editing_phase(EditingPhase.CLICK_TO_EDIT, to_show); + + to_show.show(); + to_show.get_widget().activate_label(); + } + } else editing_face_shape.on_motion(x, y, mask); + } + + public override bool on_leave_notify_event() { + // This check is a workaround for bug #3896. + if (is_pointer_over(canvas.get_drawing_window()) && + !is_pointer_over(faces_tool_window.get_window())) + return false; + + if (editing_face_shape != null) + return base.on_leave_notify_event(); + + foreach (FaceShape face_shape in face_shapes.values) { + if (face_shape.is_editable()) + return base.on_leave_notify_event(); + + if (face_shape.is_visible()) { + face_shape.hide(); + face_shape.get_widget().deactivate_label(); + + break; + } + } + + faces_tool_window.set_editing_phase(EditingPhase.NOT_EDITING); + + return base.on_leave_notify_event(); + } + + public override EditingTools.EditingToolWindow? get_tool_window() { + return faces_tool_window; + } + + public override void paint(Cairo.Context default_ctx) { + // fill region behind the image surface with neutral color + int w = canvas.get_drawing_window().get_width(); + int h = canvas.get_drawing_window().get_height(); + + default_ctx.set_source_rgba(0.0, 0.0, 0.0, 1.0); + default_ctx.rectangle(0, 0, w, h); + default_ctx.fill(); + default_ctx.paint(); + + Cairo.Context ctx = new Cairo.Context(image_surface); + ctx.set_operator(Cairo.Operator.SOURCE); + ctx.set_source_rgba(0.0, 0.0, 0.0, 0.0); + ctx.paint(); + + canvas.paint_surface(image_surface, true); + + // paint face shape last + if (editing_face_shape != null) + editing_face_shape.show(); + } + + private void new_face_shape(int x, int y) { + edit_face_shape(new FaceRectangle(canvas, x, y), true); + } + + private void edit_face_shape(FaceShape face_shape, bool creating = false) { + hide_visible_face(); + + if (editing_face_shape != null) { + // We need to do this because it could be one of the already + // created faces being edited, and if that is the case it + // will not be destroyed. + editing_face_shape.hide(); + editing_face_shape.set_editable(false); + + // This is to allow the user to edit a FaceShape's shape + // without pressing the Enter button. + if (face_shapes.values.contains(editing_face_shape)) + set_ok_button_sensitivity(); + + editing_face_shape = null; + } + + if (creating) { + faces_tool_window.set_editing_phase(EditingPhase.CREATING_DRAGGING); + } else { + face_shape.show(); + + faces_tool_window.set_editing_phase(EditingPhase.EDITING); + } + + editing_face_shape = face_shape; + editing_face_shape.add_me_requested.connect(add_face); + editing_face_shape.delete_me_requested.connect(release_face_shape); + } + + private void release_face_shape() { + if (editing_face_shape == null) + return; + + // We need to do this because it could be one of the already + // created faces being edited, and if that is the case it + // will not be destroyed. + if (editing_face_shape in face_shapes.values) { + editing_face_shape.hide(); + editing_face_shape.set_editable(false); + + editing_face_shape.get_widget().deactivate_label(); + } + + editing_face_shape = null; + + faces_tool_window.set_editing_phase(EditingPhase.NOT_EDITING); + faces_tool_window.present(); + } + + private void hide_visible_face() { + foreach (FaceShape face_shape in face_shapes.values) { + if (face_shape.is_visible()) { + face_shape.hide(); + + break; + } + } + } + + private void on_faces_ok() { + if (face_shapes == null) + return; + + Gee.Map new_faces = new Gee.HashMap(); + foreach (FaceShape face_shape in face_shapes.values) { + if (!face_shape.get_known()) + continue; + + Face new_face = Face.for_name(face_shape.get_name()); + + new_faces.set(new_face, face_shape.serialize()); + } + + ModifyFacesCommand command = new ModifyFacesCommand(canvas.get_photo(), new_faces); + applied(command, null, canvas.get_photo().get_dimensions(), false); + } + + private void on_face_hidden() { + if (editing_face_shape != null) + editing_face_shape.show(); + } + + private void add_face(FaceShape face_shape) { + string? prepared_face_name = Face.prep_face_name(face_shape.get_name()); + + if (prepared_face_name != null) { + face_shape.set_name(prepared_face_name); + + if (face_shapes.values.contains(face_shape)) { + foreach (Gee.Map.Entry entry in face_shapes.entries) { + if (entry.value == face_shape) { + if (entry.key == prepared_face_name) + break; + + face_shapes.unset(entry.key); + face_shapes.set(prepared_face_name, face_shape); + + face_shape.set_known(true); + face_shape.get_widget().label.set_text(face_shape.get_name()); + + break; + } + } + } else if (!face_shapes.has_key(prepared_face_name)) { + faces_tool_window.add_face(face_shape); + face_shapes.set(prepared_face_name, face_shape); + } else return; + + face_shape.hide(); + face_shape.set_editable(false); + + set_ok_button_sensitivity(); + release_face_shape(); + } + } + + private void edit_face(string face_name) { + FaceShape face_shape = face_shapes.get(face_name); + assert(face_shape != null); + + face_shape.set_editable(true); + edit_face_shape(face_shape); + } + + private void delete_face(string face_name) { + face_shapes.unset(face_name); + + // It is posible to have two visible faces at the same time, this happens + // if you are editing one face and you move the pointer around the + // FaceWidgets area in FacesToolWindow. And you can delete one of that + // faces, so the other visible face must be repainted. + foreach (FaceShape face_shape in face_shapes.values) { + if (face_shape.is_visible()) { + face_shape.hide(); + face_shape.show(); + + break; + } + } + + set_ok_button_sensitivity(); + } + + private void set_ok_button_sensitivity() { + Gee.Map known_face_shapes = new Gee.HashMap(); + foreach (Gee.Map.Entry face_shape in face_shapes.entries) { + if (face_shape.value.get_known()) { + known_face_shapes.set(face_shape.key, face_shape.value); + } + } + + if (original_face_locations.size != known_face_shapes.size) { + faces_tool_window.ok_button_set_sensitive(true); + + return; + } + + foreach (Gee.Map.Entry face_shape in known_face_shapes.entries) { + bool found = false; + + foreach (Gee.Map.Entry face_location in original_face_locations.entries) { + if (face_location.key == face_shape.key) { + if (face_location.value == face_shape.value.serialize()) { + found = true; + + break; + } else { + faces_tool_window.ok_button_set_sensitive(true); + + return; + } + } + } + + if (!found) { + faces_tool_window.ok_button_set_sensitive(true); + + return; + } + } + + faces_tool_window.ok_button_set_sensitive(false); + } + + private void detect_faces() { + faces_tool_window.detection_button.set_sensitive(false); + faces_tool_window.set_editing_phase(EditingPhase.DETECTING_FACES); + + workers.enqueue(face_detection); + } + + private void pick_faces_from_autodetected() { + int c = 0; + while (true) { + string? serialized_geometry = face_detection.get_next(); + if (serialized_geometry == null) { + faces_tool_window.set_editing_phase(EditingPhase.DETECTING_FACES_FINISHED); + + return; + } + + FaceShape face_shape; + try { + face_shape = FaceShape.from_serialized(canvas, serialized_geometry); + } catch (FaceShapeError e) { + if (e is FaceShapeError.CANT_CREATE) + continue; + + assert_not_reached(); + } + + bool found = false; + foreach (FaceShape existing_face_shape in face_shapes.values) { + if (existing_face_shape.equals(face_shape)) { + found = true; + + break; + } + } + + if (found) + continue; + + c++; + + face_shape.set_name("Unknown face #%d".printf(c)); + face_shape.set_known(false); + add_face(face_shape); + } + } + + private void on_faces_detected() { + face_detection_cancellable.reset(); + + if (face_detection.spawnError != null){ + string spawnErrorMessage = _("Error trying to spawn face detection program:\n"); + AppWindow.error_message(spawnErrorMessage + face_detection.spawnError.message + "\n"); + faces_tool_window.set_editing_phase(EditingPhase.DETECTING_FACES_FINISHED); + } else + pick_faces_from_autodetected(); + } + + private void on_detection_cancelled(BackgroundJob job) { + ((FaceDetectionJob) job).reset(); + face_detection_cancellable.reset(); + + faces_tool_window.set_editing_phase(EditingPhase.DETECTING_FACES_FINISHED); + } + + private void cancel_face_detection() { + faces_tool_window.cancel_detection_button.set_sensitive(false); + + face_detection.cancel(); + } +} + +#endif diff --git a/src/folders/Folders.c b/src/folders/Folders.c deleted file mode 100644 index 3ff8458..0000000 --- a/src/folders/Folders.c +++ /dev/null @@ -1,74 +0,0 @@ -/* Folders.c generated by valac 0.40.4, the Vala compiler - * generated from Folders.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/* This file is the master unit file for the Folders unit. It should be edited to include - * whatever code is deemed necessary. - * - * The init() and terminate() methods are mandatory. - * - * If the unit needs to be configured prior to initialization, add the proper parameters to - * the preconfigure() method, implement it, and ensure in init() that it's been called. - */ - - -#include -#include -#include -#include - -#define _g_free0(var) (var = (g_free (var), NULL)) - - -extern gchar* folders_icon; -gchar* folders_icon = NULL; -extern gchar* folders_have_photos_icon; -gchar* folders_have_photos_icon = NULL; - -void folders_init (GError** error); -#define RESOURCES_ICON_FOLDER "folder" -#define RESOURCES_ICON_FOLDER_DOCUMENTS "folder-documents" -void folders_terminate (void); - - -void -folders_init (GError** error) -{ - gchar* _tmp0_; - gchar* _tmp1_; -#line 22 "/home/jens/Source/shotwell/src/folders/Folders.vala" - _tmp0_ = g_strdup (RESOURCES_ICON_FOLDER); -#line 22 "/home/jens/Source/shotwell/src/folders/Folders.vala" - _g_free0 (folders_icon); -#line 22 "/home/jens/Source/shotwell/src/folders/Folders.vala" - folders_icon = _tmp0_; -#line 23 "/home/jens/Source/shotwell/src/folders/Folders.vala" - _tmp1_ = g_strdup (RESOURCES_ICON_FOLDER_DOCUMENTS); -#line 23 "/home/jens/Source/shotwell/src/folders/Folders.vala" - _g_free0 (folders_have_photos_icon); -#line 23 "/home/jens/Source/shotwell/src/folders/Folders.vala" - folders_have_photos_icon = _tmp1_; -#line 56 "Folders.c" -} - - -void -folders_terminate (void) -{ -#line 27 "/home/jens/Source/shotwell/src/folders/Folders.vala" - _g_free0 (folders_icon); -#line 27 "/home/jens/Source/shotwell/src/folders/Folders.vala" - folders_icon = NULL; -#line 28 "/home/jens/Source/shotwell/src/folders/Folders.vala" - _g_free0 (folders_have_photos_icon); -#line 28 "/home/jens/Source/shotwell/src/folders/Folders.vala" - folders_have_photos_icon = NULL; -#line 71 "Folders.c" -} - - - diff --git a/src/folders/FoldersBranch.c b/src/folders/FoldersBranch.c deleted file mode 100644 index 9b2f84f..0000000 --- a/src/folders/FoldersBranch.c +++ /dev/null @@ -1,2230 +0,0 @@ -/* FoldersBranch.c generated by valac 0.40.4, the Vala compiler - * generated from FoldersBranch.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ()) -#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch)) -#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) -#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) - -typedef struct _SidebarBranch SidebarBranch; -typedef struct _SidebarBranchClass SidebarBranchClass; -typedef struct _SidebarBranchPrivate SidebarBranchPrivate; - -#define FOLDERS_TYPE_BRANCH (folders_branch_get_type ()) -#define FOLDERS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLDERS_TYPE_BRANCH, FoldersBranch)) -#define FOLDERS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLDERS_TYPE_BRANCH, FoldersBranchClass)) -#define FOLDERS_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLDERS_TYPE_BRANCH)) -#define FOLDERS_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLDERS_TYPE_BRANCH)) -#define FOLDERS_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLDERS_TYPE_BRANCH, FoldersBranchClass)) - -typedef struct _FoldersBranch FoldersBranch; -typedef struct _FoldersBranchClass FoldersBranchClass; -typedef struct _FoldersBranchPrivate FoldersBranchPrivate; - -#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ()) -#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) - -typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry; -typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass; - -#define FOLDERS_TYPE_SIDEBAR_ENTRY (folders_sidebar_entry_get_type ()) -#define FOLDERS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry)) -#define FOLDERS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntryClass)) -#define FOLDERS_IS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLDERS_TYPE_SIDEBAR_ENTRY)) -#define FOLDERS_IS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLDERS_TYPE_SIDEBAR_ENTRY)) -#define FOLDERS_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntryClass)) - -typedef struct _FoldersSidebarEntry FoldersSidebarEntry; -typedef struct _FoldersSidebarEntryClass FoldersSidebarEntryClass; -enum { - FOLDERS_BRANCH_0_PROPERTY, - FOLDERS_BRANCH_NUM_PROPERTIES -}; -static GParamSpec* folders_branch_properties[FOLDERS_BRANCH_NUM_PROPERTIES]; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define SIDEBAR_TYPE_GROUPING (sidebar_grouping_get_type ()) -#define SIDEBAR_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_GROUPING, SidebarGrouping)) -#define SIDEBAR_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass)) -#define SIDEBAR_IS_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_GROUPING)) -#define SIDEBAR_IS_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_GROUPING)) -#define SIDEBAR_GROUPING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass)) - -typedef struct _SidebarGrouping SidebarGrouping; -typedef struct _SidebarGroupingClass SidebarGroupingClass; - -#define SIDEBAR_TYPE_HEADER (sidebar_header_get_type ()) -#define SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_HEADER, SidebarHeader)) -#define SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_HEADER, SidebarHeaderClass)) -#define SIDEBAR_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_HEADER)) -#define SIDEBAR_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_HEADER)) -#define SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_HEADER, SidebarHeaderClass)) - -typedef struct _SidebarHeader SidebarHeader; -typedef struct _SidebarHeaderClass SidebarHeaderClass; - -#define FOLDERS_TYPE_ROOT (folders_root_get_type ()) -#define FOLDERS_ROOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLDERS_TYPE_ROOT, FoldersRoot)) -#define FOLDERS_ROOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLDERS_TYPE_ROOT, FoldersRootClass)) -#define FOLDERS_IS_ROOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLDERS_TYPE_ROOT)) -#define FOLDERS_IS_ROOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLDERS_TYPE_ROOT)) -#define FOLDERS_ROOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLDERS_TYPE_ROOT, FoldersRootClass)) - -typedef struct _FoldersRoot FoldersRoot; -typedef struct _FoldersRootClass FoldersRootClass; - -#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ()) -#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry)) -#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY)) -#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface)) - -typedef struct _SidebarEntry SidebarEntry; -typedef struct _SidebarEntryIface SidebarEntryIface; - -#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ()) -#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree)) -#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass)) -#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass)) - -typedef struct _SidebarTree SidebarTree; -typedef struct _SidebarTreeClass SidebarTreeClass; - -#define SIDEBAR_BRANCH_TYPE_OPTIONS (sidebar_branch_options_get_type ()) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ()) -#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry)) -#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY)) -#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface)) - -typedef struct _SidebarExpandableEntry SidebarExpandableEntry; -typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface; - -#define SIDEBAR_TYPE_RENAMEABLE_ENTRY (sidebar_renameable_entry_get_type ()) -#define SIDEBAR_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry)) -#define SIDEBAR_IS_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY)) -#define SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntryIface)) - -typedef struct _SidebarRenameableEntry SidebarRenameableEntry; -typedef struct _SidebarRenameableEntryIface SidebarRenameableEntryIface; -typedef struct _SidebarGroupingPrivate SidebarGroupingPrivate; - -#define SIDEBAR_TYPE_EMPHASIZABLE_ENTRY (sidebar_emphasizable_entry_get_type ()) -#define SIDEBAR_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntry)) -#define SIDEBAR_IS_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY)) -#define SIDEBAR_EMPHASIZABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntryIface)) - -typedef struct _SidebarEmphasizableEntry SidebarEmphasizableEntry; -typedef struct _SidebarEmphasizableEntryIface SidebarEmphasizableEntryIface; -typedef struct _SidebarHeaderPrivate SidebarHeaderPrivate; -typedef struct _FoldersRootPrivate FoldersRootPrivate; -enum { - FOLDERS_ROOT_0_PROPERTY, - FOLDERS_ROOT_NUM_PROPERTIES -}; -static GParamSpec* folders_root_properties[FOLDERS_ROOT_NUM_PROPERTIES]; - -#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ()) -#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry)) -#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY)) -#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface)) - -typedef struct _SidebarSelectableEntry SidebarSelectableEntry; -typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface; - -#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ()) -#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)) -#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE)) -#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface)) - -typedef struct _SidebarPageRepresentative SidebarPageRepresentative; -typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ()) -#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable)) -#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE)) -#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface)) - -typedef struct _SidebarContextable SidebarContextable; -typedef struct _SidebarContextableIface SidebarContextableIface; -typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate; -typedef struct _FoldersSidebarEntryPrivate FoldersSidebarEntryPrivate; -enum { - FOLDERS_SIDEBAR_ENTRY_0_PROPERTY, - FOLDERS_SIDEBAR_ENTRY_DIR_PROPERTY, - FOLDERS_SIDEBAR_ENTRY_COLLATION_PROPERTY, - FOLDERS_SIDEBAR_ENTRY_COUNT_PROPERTY, - FOLDERS_SIDEBAR_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* folders_sidebar_entry_properties[FOLDERS_SIDEBAR_ENTRY_NUM_PROPERTIES]; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; - -#define FOLDERS_TYPE_PAGE (folders_page_get_type ()) -#define FOLDERS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLDERS_TYPE_PAGE, FoldersPage)) -#define FOLDERS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLDERS_TYPE_PAGE, FoldersPageClass)) -#define FOLDERS_IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLDERS_TYPE_PAGE)) -#define FOLDERS_IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLDERS_TYPE_PAGE)) -#define FOLDERS_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLDERS_TYPE_PAGE, FoldersPageClass)) - -typedef struct _FoldersPage FoldersPage; -typedef struct _FoldersPageClass FoldersPageClass; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _SidebarBranch { - GObject parent_instance; - SidebarBranchPrivate * priv; -}; - -struct _SidebarBranchClass { - GObjectClass parent_class; -}; - -struct _FoldersBranch { - SidebarBranch parent_instance; - FoldersBranchPrivate * priv; -}; - -struct _FoldersBranchClass { - SidebarBranchClass parent_class; -}; - -struct _FoldersBranchPrivate { - GeeHashMap* entries; - GFile* home_dir; -}; - -struct _SidebarEntryIface { - GTypeInterface parent_iface; - gchar* (*get_sidebar_name) (SidebarEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarEntry* self); - gchar* (*get_sidebar_icon) (SidebarEntry* self); - gchar* (*to_string) (SidebarEntry* self); - void (*grafted) (SidebarEntry* self, SidebarTree* tree); - void (*pruned) (SidebarEntry* self, SidebarTree* tree); -}; - -typedef enum { - SIDEBAR_BRANCH_OPTIONS_NONE = 0, - SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY = 1 << 0, - SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD = 1 << 1, - SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD = 1 << 2, - SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING = 1 << 3 -} SidebarBranchOptions; - -struct _SidebarExpandableEntryIface { - GTypeInterface parent_iface; - gboolean (*expand_on_select) (SidebarExpandableEntry* self); -}; - -struct _SidebarRenameableEntryIface { - GTypeInterface parent_iface; - void (*rename) (SidebarRenameableEntry* self, const gchar* new_name); - gboolean (*is_user_renameable) (SidebarRenameableEntry* self); -}; - -struct _SidebarGrouping { - GObject parent_instance; - SidebarGroupingPrivate * priv; -}; - -struct _SidebarGroupingClass { - GObjectClass parent_class; -}; - -struct _SidebarEmphasizableEntryIface { - GTypeInterface parent_iface; - gboolean (*is_emphasized) (SidebarEmphasizableEntry* self); -}; - -struct _SidebarHeader { - SidebarGrouping parent_instance; - SidebarHeaderPrivate * priv; -}; - -struct _SidebarHeaderClass { - SidebarGroupingClass parent_class; -}; - -struct _FoldersRoot { - SidebarHeader parent_instance; - FoldersRootPrivate * priv; -}; - -struct _FoldersRootClass { - SidebarHeaderClass parent_class; -}; - -struct _SidebarSelectableEntryIface { - GTypeInterface parent_iface; -}; - -struct _SidebarPageRepresentativeIface { - GTypeInterface parent_iface; - gboolean (*has_page) (SidebarPageRepresentative* self); - Page* (*get_page) (SidebarPageRepresentative* self); -}; - -struct _SidebarContextableIface { - GTypeInterface parent_iface; - GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event); -}; - -struct _SidebarSimplePageEntry { - GObject parent_instance; - SidebarSimplePageEntryPrivate * priv; -}; - -struct _SidebarSimplePageEntryClass { - GObjectClass parent_class; - gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self); - gchar* (*to_string) (SidebarSimplePageEntry* self); - Page* (*create_page) (SidebarSimplePageEntry* self); -}; - -struct _FoldersSidebarEntry { - SidebarSimplePageEntry parent_instance; - FoldersSidebarEntryPrivate * priv; -}; - -struct _FoldersSidebarEntryClass { - SidebarSimplePageEntryClass parent_class; -}; - -struct _FoldersSidebarEntryPrivate { - GFile* _dir; - gchar* _collation; - gint _count; -}; - - -static gpointer folders_branch_parent_class = NULL; -static gpointer folders_root_parent_class = NULL; -static gpointer folders_sidebar_entry_parent_class = NULL; -extern gchar* folders_icon; -extern gchar* folders_have_photos_icon; -static SidebarExpandableEntryIface * folders_sidebar_entry_sidebar_expandable_entry_parent_iface = NULL; - -GType sidebar_branch_get_type (void) G_GNUC_CONST; -GType folders_branch_get_type (void) G_GNUC_CONST; -GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST; -GType folders_sidebar_entry_get_type (void) G_GNUC_CONST; -#define FOLDERS_BRANCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), FOLDERS_TYPE_BRANCH, FoldersBranchPrivate)) -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self); -GType data_object_get_type (void) G_GNUC_CONST; -static void folders_branch_on_media_contents_altered (FoldersBranch* self, - GeeIterable* added, - GeeIterable* removed); -static void _folders_branch_on_media_contents_altered_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self); -guint file_hash (GFile* file); -static guint _file_hash_gee_hash_data_func (gconstpointer v, - gpointer self); -gboolean file_equal (GFile* a, - GFile* b); -static gboolean _file_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -FoldersBranch* folders_branch_new (void); -FoldersBranch* folders_branch_construct (GType object_type); -FoldersRoot* folders_root_new (void); -FoldersRoot* folders_root_construct (GType object_type); -GType sidebar_grouping_get_type (void) G_GNUC_CONST; -GType sidebar_header_get_type (void) G_GNUC_CONST; -GType folders_root_get_type (void) G_GNUC_CONST; -GType sidebar_tree_get_type (void) G_GNUC_CONST; -GType sidebar_entry_get_type (void) G_GNUC_CONST; -GType sidebar_branch_options_get_type (void) G_GNUC_CONST; -static gint folders_branch_comparator (SidebarEntry* a, - SidebarEntry* b); -static gint _folders_branch_comparator_gcompare_func (gconstpointer a, - gconstpointer b); -SidebarBranch* sidebar_branch_new (SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator); -SidebarBranch* sidebar_branch_construct (GType object_type, - SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator); -GeeCollection* data_collection_get_all (DataCollection* self); -const gchar* folders_sidebar_entry_get_collation (FoldersSidebarEntry* self); -gchar* sidebar_simple_page_entry_get_sidebar_name (SidebarSimplePageEntry* self); -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -static void folders_branch_on_master_source_replaced (FoldersBranch* self, - MediaSource* media_source, - GFile* old_file, - GFile* new_file); -static void folders_branch_remove_entry (FoldersBranch* self, - GFile* file); -static void folders_branch_add_entry (FoldersBranch* self, - MediaSource* media); -static void _folders_branch_on_master_source_replaced_media_source_master_replaced (MediaSource* _sender, - GFile* old_file, - GFile* new_file, - gpointer self); -GFile* media_source_get_file (MediaSource* self); -FoldersSidebarEntry* folders_sidebar_entry_new (GFile* dir); -FoldersSidebarEntry* folders_sidebar_entry_construct (GType object_type, - GFile* dir); -SidebarEntry* sidebar_branch_get_root (SidebarBranch* self); -void sidebar_branch_graft (SidebarBranch* self, - SidebarEntry* parent, - SidebarEntry* entry, - GCompareFunc comparator); -gint folders_sidebar_entry_get_count (FoldersSidebarEntry* self); -void folders_sidebar_entry_set_count (FoldersSidebarEntry* self, - gint value); -gint sidebar_branch_get_child_count (SidebarBranch* self, - SidebarEntry* parent); -GFile* folders_sidebar_entry_get_dir (FoldersSidebarEntry* self); -SidebarEntry* sidebar_branch_get_parent (SidebarBranch* self, - SidebarEntry* entry); -void sidebar_branch_prune (SidebarBranch* self, - SidebarEntry* entry); -static void folders_branch_finalize (GObject * obj); -GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST; -GType sidebar_renameable_entry_get_type (void) G_GNUC_CONST; -GType sidebar_emphasizable_entry_get_type (void) G_GNUC_CONST; -SidebarHeader* sidebar_header_new (const gchar* name, - const gchar* tooltip, - gboolean emphasized); -SidebarHeader* sidebar_header_construct (GType object_type, - const gchar* name, - const gchar* tooltip, - gboolean emphasized); -GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType sidebar_page_representative_get_type (void) G_GNUC_CONST; -GType sidebar_contextable_get_type (void) G_GNUC_CONST; -#define FOLDERS_SIDEBAR_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntryPrivate)) -SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type); -static void folders_sidebar_entry_set_dir (FoldersSidebarEntry* self, - GFile* value); -static void folders_sidebar_entry_set_collation (FoldersSidebarEntry* self, - const gchar* value); -static gchar* folders_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base); -static gchar* folders_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base); -static gchar* folders_sidebar_entry_real_to_string (SidebarSimplePageEntry* base); -static gboolean folders_sidebar_entry_real_expand_on_select (SidebarExpandableEntry* base); -static Page* folders_sidebar_entry_real_create_page (SidebarSimplePageEntry* base); -FoldersPage* folders_page_new (GFile* dir); -FoldersPage* folders_page_construct (GType object_type, - GFile* dir); -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType media_page_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -GType folders_page_get_type (void) G_GNUC_CONST; -gchar* sidebar_simple_page_entry_get_sidebar_icon (SidebarSimplePageEntry* self); -static void folders_sidebar_entry_finalize (GObject * obj); -static void _vala_folders_sidebar_entry_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_folders_sidebar_entry_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); - - -static void -_folders_branch_on_media_contents_altered_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self) -{ -#line 31 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_branch_on_media_contents_altered ((FoldersBranch*) self, added, removed); -#line 635 "FoldersBranch.c" -} - - -static guint -_file_hash_gee_hash_data_func (gconstpointer v, - gpointer self) -{ - guint result; - result = file_hash ((GFile*) v); -#line 8 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return result; -#line 647 "FoldersBranch.c" -} - - -static gboolean -_file_equal_gee_equal_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gboolean result; - result = file_equal ((GFile*) a, (GFile*) b); -#line 8 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return result; -#line 660 "FoldersBranch.c" -} - - -static gint -_folders_branch_comparator_gcompare_func (gconstpointer a, - gconstpointer b) -{ - gint result; - result = folders_branch_comparator ((SidebarEntry*) a, (SidebarEntry*) b); -#line 13 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return result; -#line 672 "FoldersBranch.c" -} - - -FoldersBranch* -folders_branch_construct (GType object_type) -{ - FoldersBranch * self = NULL; - FoldersRoot* _tmp0_; - FoldersRoot* _tmp1_; - const gchar* _tmp2_; - GFile* _tmp3_; -#line 13 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = folders_root_new (); -#line 13 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp1_ = _tmp0_; -#line 13 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self = (FoldersBranch*) sidebar_branch_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SIDEBAR_TYPE_ENTRY, SidebarEntry), SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING | SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY, _folders_branch_comparator_gcompare_func, NULL); -#line 13 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (_tmp1_); -#line 18 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp2_ = g_get_home_dir (); -#line 18 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp3_ = g_file_new_for_path (_tmp2_); -#line 18 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (self->priv->home_dir); -#line 18 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self->priv->home_dir = _tmp3_; -#line 700 "FoldersBranch.c" - { - GeeIterator* _sources_it = NULL; - MediaCollectionRegistry* _tmp4_; - MediaCollectionRegistry* _tmp5_; - GeeCollection* _tmp6_; - GeeCollection* _tmp7_; - GeeIterator* _tmp8_; - GeeIterator* _tmp9_; -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp4_ = media_collection_registry_get_instance (); -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp5_ = _tmp4_; -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp6_ = media_collection_registry_get_all (_tmp5_); -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp7_ = _tmp6_; -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp9_ = _tmp8_; -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (_tmp7_); -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _media_collection_registry_unref0 (_tmp5_); -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _sources_it = _tmp9_; -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - while (TRUE) { -#line 729 "FoldersBranch.c" - GeeIterator* _tmp10_; - MediaSourceCollection* sources = NULL; - GeeIterator* _tmp11_; - gpointer _tmp12_; - MediaSourceCollection* _tmp13_; - GeeCollection* _tmp14_; - GeeCollection* _tmp15_; - MediaSourceCollection* _tmp16_; -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp10_ = _sources_it; -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (!gee_iterator_next (_tmp10_)) { -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - break; -#line 744 "FoldersBranch.c" - } -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp11_ = _sources_it; -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp12_ = gee_iterator_get (_tmp11_); -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - sources = (MediaSourceCollection*) _tmp12_; -#line 22 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp13_ = sources; -#line 22 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp14_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_DATA_COLLECTION, DataCollection)); -#line 22 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp15_ = _tmp14_; -#line 22 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_branch_on_media_contents_altered (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ITERABLE, GeeIterable), NULL); -#line 22 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (_tmp15_); -#line 25 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp16_ = sources; -#line 25 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _folders_branch_on_media_contents_altered_data_collection_contents_altered, self, 0); -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _data_collection_unref0 (sources); -#line 768 "FoldersBranch.c" - } -#line 20 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (_sources_it); -#line 772 "FoldersBranch.c" - } -#line 12 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return self; -#line 776 "FoldersBranch.c" -} - - -FoldersBranch* -folders_branch_new (void) -{ -#line 12 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return folders_branch_construct (FOLDERS_TYPE_BRANCH); -#line 785 "FoldersBranch.c" -} - - -static gint -folders_branch_comparator (SidebarEntry* a, - SidebarEntry* b) -{ - gint result = 0; - gint coll_key_equality = 0; - GCompareFunc _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - gint _tmp5_; -#line 34 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0); -#line 34 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0); -#line 35 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (a == b) { -#line 36 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - result = 0; -#line 36 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return result; -#line 811 "FoldersBranch.c" - } -#line 38 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = g_strcmp0; -#line 38 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp1_ = folders_sidebar_entry_get_collation (G_TYPE_CHECK_INSTANCE_CAST (a, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry)); -#line 38 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp2_ = _tmp1_; -#line 38 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp3_ = folders_sidebar_entry_get_collation (G_TYPE_CHECK_INSTANCE_CAST (b, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry)); -#line 38 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp4_ = _tmp3_; -#line 38 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - coll_key_equality = _tmp0_ (_tmp2_, _tmp4_); -#line 41 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp5_ = coll_key_equality; -#line 41 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (_tmp5_ == 0) { -#line 829 "FoldersBranch.c" - GCompareFunc _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gint _tmp11_; -#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp6_ = g_strcmp0; -#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp7_ = sidebar_simple_page_entry_get_sidebar_name (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (a, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)); -#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp8_ = _tmp7_; -#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp9_ = sidebar_simple_page_entry_get_sidebar_name (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (b, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)); -#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp10_ = _tmp9_; -#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp11_ = _tmp6_ (_tmp8_, _tmp10_); -#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_free0 (_tmp10_); -#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_free0 (_tmp8_); -#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - result = _tmp11_; -#line 44 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return result; -#line 856 "FoldersBranch.c" - } -#line 48 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - result = coll_key_equality; -#line 48 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return result; -#line 862 "FoldersBranch.c" -} - - -static void -folders_branch_on_master_source_replaced (FoldersBranch* self, - MediaSource* media_source, - GFile* old_file, - GFile* new_file) -{ -#line 51 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_if_fail (FOLDERS_IS_BRANCH (self)); -#line 51 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_if_fail (IS_MEDIA_SOURCE (media_source)); -#line 51 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_if_fail (G_IS_FILE (old_file)); -#line 51 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_if_fail (G_IS_FILE (new_file)); -#line 52 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_branch_remove_entry (self, old_file); -#line 53 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_branch_add_entry (self, media_source); -#line 884 "FoldersBranch.c" -} - - -static void -_folders_branch_on_master_source_replaced_media_source_master_replaced (MediaSource* _sender, - GFile* old_file, - GFile* new_file, - gpointer self) -{ -#line 60 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_branch_on_master_source_replaced ((FoldersBranch*) self, _sender, old_file, new_file); -#line 896 "FoldersBranch.c" -} - - -static void -folders_branch_on_media_contents_altered (FoldersBranch* self, - GeeIterable* added, - GeeIterable* removed) -{ -#line 56 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_if_fail (FOLDERS_IS_BRANCH (self)); -#line 56 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added)); -#line 56 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed)); -#line 57 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (added != NULL) { -#line 913 "FoldersBranch.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp0_; -#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = gee_iterable_iterator (added); -#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _object_it = _tmp0_; -#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - while (TRUE) { -#line 923 "FoldersBranch.c" - GeeIterator* _tmp1_; - DataObject* object = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - DataObject* _tmp4_; - DataObject* _tmp5_; -#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp1_ = _object_it; -#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - break; -#line 936 "FoldersBranch.c" - } -#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp2_ = _object_it; -#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - object = (DataObject*) _tmp3_; -#line 59 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp4_ = object; -#line 59 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_branch_add_entry (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 60 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp5_ = object; -#line 60 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE, MediaSource), "master-replaced", (GCallback) _folders_branch_on_master_source_replaced_media_source_master_replaced, self, 0); -#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (object); -#line 954 "FoldersBranch.c" - } -#line 58 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (_object_it); -#line 958 "FoldersBranch.c" - } - } -#line 64 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (removed != NULL) { -#line 963 "FoldersBranch.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp6_; -#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp6_ = gee_iterable_iterator (removed); -#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _object_it = _tmp6_; -#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - while (TRUE) { -#line 973 "FoldersBranch.c" - GeeIterator* _tmp7_; - DataObject* object = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; - DataObject* _tmp10_; - GFile* _tmp11_; - GFile* _tmp12_; - DataObject* _tmp13_; - guint _tmp14_; -#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp7_ = _object_it; -#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (!gee_iterator_next (_tmp7_)) { -#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - break; -#line 989 "FoldersBranch.c" - } -#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp8_ = _object_it; -#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp9_ = gee_iterator_get (_tmp8_); -#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - object = (DataObject*) _tmp9_; -#line 66 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp10_ = object; -#line 66 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp11_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 66 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp12_ = _tmp11_; -#line 66 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_branch_remove_entry (self, _tmp12_); -#line 66 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (_tmp12_); -#line 67 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp13_ = object; -#line 67 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_signal_parse_name ("master-replaced", TYPE_MEDIA_SOURCE, &_tmp14_, NULL, FALSE); -#line 67 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MEDIA_SOURCE, MediaSource), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _folders_branch_on_master_source_replaced_media_source_master_replaced, self); -#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (object); -#line 1015 "FoldersBranch.c" - } -#line 65 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (_object_it); -#line 1019 "FoldersBranch.c" - } - } -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 96 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return self ? g_object_ref (self) : NULL; -#line 1030 "FoldersBranch.c" -} - - -static void -folders_branch_add_entry (FoldersBranch* self, - MediaSource* media) -{ - GFile* file = NULL; - GFile* _tmp0_; - GeeArrayList* elements = NULL; - GeeArrayList* _tmp1_; - GFile* parent = NULL; - GFile* _tmp2_; - GFile* _tmp3_; - FoldersSidebarEntry* parent_entry = NULL; -#line 72 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_if_fail (FOLDERS_IS_BRANCH (self)); -#line 72 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_if_fail (IS_MEDIA_SOURCE (media)); -#line 73 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = media_source_get_file (media); -#line 73 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - file = _tmp0_; -#line 75 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp1_ = gee_array_list_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 75 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - elements = _tmp1_; -#line 78 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp2_ = file; -#line 78 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp3_ = g_file_get_parent (_tmp2_); -#line 78 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - parent = _tmp3_; -#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - while (TRUE) { -#line 1066 "FoldersBranch.c" - gboolean _tmp4_ = FALSE; - GFile* _tmp5_; - GFile* _tmp9_; - GFile* _tmp10_; - GFile* _tmp11_; - GFile* _tmp12_; - gboolean _tmp13_; - GeeArrayList* _tmp14_; - GFile* _tmp15_; - GFile* _tmp16_; - GFile* _tmp17_; -#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp5_ = parent; -#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (_tmp5_ != NULL) { -#line 1082 "FoldersBranch.c" - GFile* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp6_ = parent; -#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp7_ = g_file_get_path (_tmp6_); -#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp8_ = _tmp7_; -#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp4_ = _tmp8_ != NULL; -#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_free0 (_tmp8_); -#line 1096 "FoldersBranch.c" - } else { -#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp4_ = FALSE; -#line 1100 "FoldersBranch.c" - } -#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (!_tmp4_) { -#line 79 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - break; -#line 1106 "FoldersBranch.c" - } -#line 81 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp9_ = parent; -#line 81 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp10_ = self->priv->home_dir; -#line 81 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp11_ = g_file_get_parent (_tmp10_); -#line 81 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp12_ = _tmp11_; -#line 81 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp13_ = g_file_equal (_tmp9_, _tmp12_); -#line 81 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (_tmp12_); -#line 81 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (_tmp13_) { -#line 82 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - break; -#line 1124 "FoldersBranch.c" - } -#line 84 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp14_ = elements; -#line 84 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp15_ = parent; -#line 84 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_); -#line 86 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp16_ = parent; -#line 86 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp17_ = g_file_get_parent (_tmp16_); -#line 86 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (parent); -#line 86 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - parent = _tmp17_; -#line 1140 "FoldersBranch.c" - } -#line 91 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - parent_entry = NULL; -#line 1144 "FoldersBranch.c" - { - gint ctr = 0; - GeeArrayList* _tmp18_; - gint _tmp19_; - gint _tmp20_; -#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp18_ = elements; -#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp19_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp20_ = _tmp19_; -#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - ctr = _tmp20_ - 1; -#line 1158 "FoldersBranch.c" - { - gboolean _tmp21_ = FALSE; -#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp21_ = TRUE; -#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - while (TRUE) { -#line 1165 "FoldersBranch.c" - gint _tmp23_; - GFile* parent_dir = NULL; - GeeArrayList* _tmp24_; - gint _tmp25_; - gpointer _tmp26_; - FoldersSidebarEntry* old_parent_entry = NULL; - FoldersSidebarEntry* _tmp27_; - FoldersSidebarEntry* _tmp28_; - GeeHashMap* _tmp29_; - GFile* _tmp30_; - gpointer _tmp31_; - FoldersSidebarEntry* _tmp32_; - gint _tmp44_; -#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (!_tmp21_) { -#line 1181 "FoldersBranch.c" - gint _tmp22_; -#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp22_ = ctr; -#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - ctr = _tmp22_ - 1; -#line 1187 "FoldersBranch.c" - } -#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp21_ = FALSE; -#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp23_ = ctr; -#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (!(_tmp23_ >= 0)) { -#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - break; -#line 1197 "FoldersBranch.c" - } -#line 93 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp24_ = elements; -#line 93 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp25_ = ctr; -#line 93 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp26_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp25_); -#line 93 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - parent_dir = (GFile*) _tmp26_; -#line 96 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp27_ = parent_entry; -#line 96 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp28_ = _g_object_ref0 (_tmp27_); -#line 96 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - old_parent_entry = _tmp28_; -#line 98 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp29_ = self->priv->entries; -#line 98 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp30_ = parent_dir; -#line 98 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp31_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp30_); -#line 98 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (parent_entry); -#line 98 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - parent_entry = (FoldersSidebarEntry*) _tmp31_; -#line 99 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp32_ = parent_entry; -#line 99 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (_tmp32_ == NULL) { -#line 1227 "FoldersBranch.c" - GFile* _tmp33_; - FoldersSidebarEntry* _tmp34_; - GeeHashMap* _tmp35_; - GFile* _tmp36_; - FoldersSidebarEntry* _tmp37_; - SidebarEntry* _tmp38_ = NULL; - FoldersSidebarEntry* _tmp39_; - FoldersSidebarEntry* _tmp43_; -#line 100 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp33_ = parent_dir; -#line 100 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp34_ = folders_sidebar_entry_new (_tmp33_); -#line 100 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (parent_entry); -#line 100 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - parent_entry = _tmp34_; -#line 101 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp35_ = self->priv->entries; -#line 101 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp36_ = parent_dir; -#line 101 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp37_ = parent_entry; -#line 101 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp36_, _tmp37_); -#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp39_ = old_parent_entry; -#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (_tmp39_ == NULL) { -#line 1256 "FoldersBranch.c" - SidebarEntry* _tmp40_; -#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp40_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (_tmp38_); -#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp38_ = _tmp40_; -#line 1264 "FoldersBranch.c" - } else { - FoldersSidebarEntry* _tmp41_; - SidebarEntry* _tmp42_; -#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp41_ = old_parent_entry; -#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp42_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (_tmp38_); -#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp38_ = _tmp42_; -#line 1276 "FoldersBranch.c" - } -#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp43_ = parent_entry; -#line 103 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp38_, G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL); -#line 99 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (_tmp38_); -#line 1284 "FoldersBranch.c" - } -#line 107 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp44_ = ctr; -#line 107 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (_tmp44_ == 0) { -#line 1290 "FoldersBranch.c" - FoldersSidebarEntry* _tmp45_; - gint _tmp46_; - gint _tmp47_; -#line 108 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp45_ = parent_entry; -#line 108 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp46_ = folders_sidebar_entry_get_count (_tmp45_); -#line 108 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp47_ = _tmp46_; -#line 108 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_sidebar_entry_set_count (_tmp45_, _tmp47_ + 1); -#line 1302 "FoldersBranch.c" - } -#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (old_parent_entry); -#line 92 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (parent_dir); -#line 1308 "FoldersBranch.c" - } - } - } -#line 72 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (parent_entry); -#line 72 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (parent); -#line 72 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (elements); -#line 72 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (file); -#line 1320 "FoldersBranch.c" -} - - -static void -folders_branch_remove_entry (FoldersBranch* self, - GFile* file) -{ - FoldersSidebarEntry* folder_entry = NULL; - GeeHashMap* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - gpointer _tmp3_; - FoldersSidebarEntry* _tmp4_; - FoldersSidebarEntry* _tmp5_; - FoldersSidebarEntry* _tmp6_; - gint _tmp7_; - gint _tmp8_; - gboolean _tmp9_ = FALSE; - FoldersSidebarEntry* _tmp10_; - FoldersSidebarEntry* _tmp11_; - gint _tmp12_; - gint _tmp13_; - FoldersSidebarEntry* prune_point = NULL; - FoldersSidebarEntry* _tmp15_; - FoldersSidebarEntry* _tmp16_; - FoldersSidebarEntry* _tmp17_; - FoldersSidebarEntry* _tmp37_; -#line 112 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_if_fail (FOLDERS_IS_BRANCH (self)); -#line 112 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 113 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = self->priv->entries; -#line 113 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp1_ = g_file_get_parent (file); -#line 113 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp2_ = _tmp1_; -#line 113 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp2_); -#line 113 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp4_ = (FoldersSidebarEntry*) _tmp3_; -#line 113 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (_tmp2_); -#line 113 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folder_entry = _tmp4_; -#line 114 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp5_ = folder_entry; -#line 114 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (_tmp5_ == NULL) { -#line 115 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (folder_entry); -#line 115 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return; -#line 1374 "FoldersBranch.c" - } -#line 117 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp6_ = folder_entry; -#line 117 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp7_ = folders_sidebar_entry_get_count (_tmp6_); -#line 117 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp8_ = _tmp7_; -#line 117 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _vala_assert (_tmp8_ > 0, "folder_entry.count > 0"); -#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp10_ = folder_entry; -#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp11_ = folder_entry; -#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp12_ = folders_sidebar_entry_get_count (_tmp11_); -#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp13_ = _tmp12_; -#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_sidebar_entry_set_count (_tmp11_, _tmp13_ - 1); -#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if ((_tmp13_ - 1) > 0) { -#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp9_ = TRUE; -#line 1398 "FoldersBranch.c" - } else { - FoldersSidebarEntry* _tmp14_; -#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp14_ = folder_entry; -#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp9_ = sidebar_branch_get_child_count (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, SIDEBAR_TYPE_ENTRY, SidebarEntry)) > 0; -#line 1405 "FoldersBranch.c" - } -#line 120 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (_tmp9_) { -#line 121 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (folder_entry); -#line 121 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return; -#line 1413 "FoldersBranch.c" - } -#line 124 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp15_ = folder_entry; -#line 124 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp16_ = _g_object_ref0 (_tmp15_); -#line 124 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - prune_point = _tmp16_; -#line 125 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp17_ = prune_point; -#line 125 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _vala_assert (_tmp17_ != NULL, "prune_point != null"); -#line 1425 "FoldersBranch.c" - { - gboolean _tmp18_ = FALSE; -#line 127 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp18_ = TRUE; -#line 127 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - while (TRUE) { -#line 1432 "FoldersBranch.c" - gboolean removed = FALSE; - GeeHashMap* _tmp19_; - FoldersSidebarEntry* _tmp20_; - GFile* _tmp21_; - GFile* _tmp22_; - gboolean _tmp23_; - gboolean _tmp24_; - FoldersSidebarEntry* parent = NULL; - FoldersSidebarEntry* _tmp25_; - SidebarEntry* _tmp26_; - FoldersSidebarEntry* _tmp27_; - gboolean _tmp28_ = FALSE; - gboolean _tmp29_ = FALSE; - FoldersSidebarEntry* _tmp30_; - FoldersSidebarEntry* _tmp35_; - FoldersSidebarEntry* _tmp36_; -#line 127 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (!_tmp18_) { -#line 1451 "FoldersBranch.c" - } -#line 127 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp18_ = FALSE; -#line 128 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp19_ = self->priv->entries; -#line 128 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp20_ = prune_point; -#line 128 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp21_ = folders_sidebar_entry_get_dir (_tmp20_); -#line 128 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp22_ = _tmp21_; -#line 128 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp23_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp22_, NULL); -#line 128 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - removed = _tmp23_; -#line 129 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp24_ = removed; -#line 129 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _vala_assert (_tmp24_, "removed"); -#line 131 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp25_ = prune_point; -#line 131 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp26_ = sidebar_branch_get_parent (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 131 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp27_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp26_, FOLDERS_TYPE_SIDEBAR_ENTRY) ? ((FoldersSidebarEntry*) _tmp26_) : NULL; -#line 131 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (_tmp27_ == NULL) { -#line 131 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (_tmp26_); -#line 1481 "FoldersBranch.c" - } -#line 131 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - parent = _tmp27_; -#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp30_ = parent; -#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (_tmp30_ == NULL) { -#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp29_ = TRUE; -#line 1491 "FoldersBranch.c" - } else { - FoldersSidebarEntry* _tmp31_; - gint _tmp32_; - gint _tmp33_; -#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp31_ = parent; -#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp32_ = folders_sidebar_entry_get_count (_tmp31_); -#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp33_ = _tmp32_; -#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp29_ = _tmp33_ != 0; -#line 1504 "FoldersBranch.c" - } -#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (_tmp29_) { -#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp28_ = TRUE; -#line 1510 "FoldersBranch.c" - } else { - FoldersSidebarEntry* _tmp34_; -#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp34_ = parent; -#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp28_ = sidebar_branch_get_child_count (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, SIDEBAR_TYPE_ENTRY, SidebarEntry)) > 1; -#line 1517 "FoldersBranch.c" - } -#line 132 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (_tmp28_) { -#line 133 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (parent); -#line 133 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - break; -#line 1525 "FoldersBranch.c" - } -#line 135 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp35_ = parent; -#line 135 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp36_ = _g_object_ref0 (_tmp35_); -#line 135 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (prune_point); -#line 135 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - prune_point = _tmp36_; -#line 127 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (parent); -#line 1537 "FoldersBranch.c" - } - } -#line 138 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp37_ = prune_point; -#line 138 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 112 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (prune_point); -#line 112 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (folder_entry); -#line 1548 "FoldersBranch.c" -} - - -static void -folders_branch_class_init (FoldersBranchClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_branch_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_type_class_add_private (klass, sizeof (FoldersBranchPrivate)); -#line 7 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - G_OBJECT_CLASS (klass)->finalize = folders_branch_finalize; -#line 1561 "FoldersBranch.c" -} - - -static void -folders_branch_instance_init (FoldersBranch * self) -{ - GeeHashMap* _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self->priv = FOLDERS_BRANCH_GET_PRIVATE (self); -#line 8 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = gee_hash_map_new (g_file_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, FOLDERS_TYPE_SIDEBAR_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _file_hash_gee_hash_data_func, NULL, NULL, _file_equal_gee_equal_data_func, NULL, NULL, NULL, NULL, NULL); -#line 8 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self->priv->entries = _tmp0_; -#line 1575 "FoldersBranch.c" -} - - -static void -folders_branch_finalize (GObject * obj) -{ - FoldersBranch * self; -#line 7 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, FOLDERS_TYPE_BRANCH, FoldersBranch); -#line 1585 "FoldersBranch.c" - { - GeeIterator* _sources_it = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp1_ = _tmp0_; -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp2_ = media_collection_registry_get_all (_tmp1_); -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp3_ = _tmp2_; -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp5_ = _tmp4_; -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (_tmp3_); -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _sources_it = _tmp5_; -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - while (TRUE) { -#line 1614 "FoldersBranch.c" - GeeIterator* _tmp6_; - MediaSourceCollection* sources = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - MediaSourceCollection* _tmp9_; - guint _tmp10_; -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp6_ = _sources_it; -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - break; -#line 1627 "FoldersBranch.c" - } -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp7_ = _sources_it; -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - sources = (MediaSourceCollection*) _tmp8_; -#line 31 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp9_ = sources; -#line 31 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp10_, NULL, FALSE); -#line 31 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _folders_branch_on_media_contents_altered_data_collection_contents_altered, self); -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _data_collection_unref0 (sources); -#line 1643 "FoldersBranch.c" - } -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (_sources_it); -#line 1647 "FoldersBranch.c" - } -#line 8 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (self->priv->entries); -#line 10 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (self->priv->home_dir); -#line 7 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - G_OBJECT_CLASS (folders_branch_parent_class)->finalize (obj); -#line 1655 "FoldersBranch.c" -} - - -GType -folders_branch_get_type (void) -{ - static volatile gsize folders_branch_type_id__volatile = 0; - if (g_once_init_enter (&folders_branch_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FoldersBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) folders_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FoldersBranch), 0, (GInstanceInitFunc) folders_branch_instance_init, NULL }; - GType folders_branch_type_id; - folders_branch_type_id = g_type_register_static (SIDEBAR_TYPE_BRANCH, "FoldersBranch", &g_define_type_info, 0); - g_once_init_leave (&folders_branch_type_id__volatile, folders_branch_type_id); - } - return folders_branch_type_id__volatile; -} - - -FoldersRoot* -folders_root_construct (GType object_type) -{ - FoldersRoot * self = NULL; -#line 144 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self = (FoldersRoot*) sidebar_header_construct (object_type, _ ("Folders"), _ ("Browse the library’s folder structure"), TRUE); -#line 143 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return self; -#line 1681 "FoldersBranch.c" -} - - -FoldersRoot* -folders_root_new (void) -{ -#line 143 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return folders_root_construct (FOLDERS_TYPE_ROOT); -#line 1690 "FoldersBranch.c" -} - - -static void -folders_root_class_init (FoldersRootClass * klass) -{ -#line 142 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_root_parent_class = g_type_class_peek_parent (klass); -#line 1699 "FoldersBranch.c" -} - - -static void -folders_root_instance_init (FoldersRoot * self) -{ -} - - -GType -folders_root_get_type (void) -{ - static volatile gsize folders_root_type_id__volatile = 0; - if (g_once_init_enter (&folders_root_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FoldersRootClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) folders_root_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FoldersRoot), 0, (GInstanceInitFunc) folders_root_instance_init, NULL }; - GType folders_root_type_id; - folders_root_type_id = g_type_register_static (SIDEBAR_TYPE_HEADER, "FoldersRoot", &g_define_type_info, 0); - g_once_init_leave (&folders_root_type_id__volatile, folders_root_type_id); - } - return folders_root_type_id__volatile; -} - - -FoldersSidebarEntry* -folders_sidebar_entry_construct (GType object_type, - GFile* dir) -{ - FoldersSidebarEntry * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 169 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_val_if_fail (G_IS_FILE (dir), NULL); -#line 169 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self = (FoldersSidebarEntry*) sidebar_simple_page_entry_construct (object_type); -#line 170 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_sidebar_entry_set_dir (self, dir); -#line 171 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = g_file_get_path (dir); -#line 171 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp1_ = _tmp0_; -#line 171 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp2_ = g_utf8_collate_key_for_filename (_tmp1_, (gssize) -1); -#line 171 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp3_ = _tmp2_; -#line 171 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_sidebar_entry_set_collation (self, _tmp3_); -#line 171 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_free0 (_tmp3_); -#line 171 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_free0 (_tmp1_); -#line 169 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return self; -#line 1754 "FoldersBranch.c" -} - - -FoldersSidebarEntry* -folders_sidebar_entry_new (GFile* dir) -{ -#line 169 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return folders_sidebar_entry_construct (FOLDERS_TYPE_SIDEBAR_ENTRY, dir); -#line 1763 "FoldersBranch.c" -} - - -static gchar* -folders_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) -{ - FoldersSidebarEntry * self; - gchar* result = NULL; - GFile* _tmp0_; - gchar* _tmp1_; -#line 174 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry); -#line 175 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = self->priv->_dir; -#line 175 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp1_ = g_file_get_basename (_tmp0_); -#line 175 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - result = _tmp1_; -#line 175 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return result; -#line 1784 "FoldersBranch.c" -} - - -static gchar* -folders_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) -{ - FoldersSidebarEntry * self; - gchar* result = NULL; - const gchar* _tmp0_ = NULL; - gint _tmp1_; - gint _tmp2_; - gchar* _tmp5_; -#line 178 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry); -#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp1_ = folders_sidebar_entry_get_count (self); -#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp2_ = _tmp1_; -#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (_tmp2_ == 0) { -#line 1805 "FoldersBranch.c" - const gchar* _tmp3_; -#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp3_ = folders_icon; -#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = _tmp3_; -#line 1811 "FoldersBranch.c" - } else { - const gchar* _tmp4_; -#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp4_ = folders_have_photos_icon; -#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = _tmp4_; -#line 1818 "FoldersBranch.c" - } -#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp5_ = g_strdup (_tmp0_); -#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - result = _tmp5_; -#line 179 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return result; -#line 1826 "FoldersBranch.c" -} - - -static gchar* -folders_sidebar_entry_real_to_string (SidebarSimplePageEntry* base) -{ - FoldersSidebarEntry * self; - gchar* result = NULL; - GFile* _tmp0_; - gchar* _tmp1_; -#line 182 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry); -#line 183 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = self->priv->_dir; -#line 183 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp1_ = g_file_get_path (_tmp0_); -#line 183 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - result = _tmp1_; -#line 183 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return result; -#line 1847 "FoldersBranch.c" -} - - -static gboolean -folders_sidebar_entry_real_expand_on_select (SidebarExpandableEntry* base) -{ - FoldersSidebarEntry * self; - gboolean result = FALSE; -#line 186 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry); -#line 187 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - result = TRUE; -#line 187 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return result; -#line 1862 "FoldersBranch.c" -} - - -static Page* -folders_sidebar_entry_real_create_page (SidebarSimplePageEntry* base) -{ - FoldersSidebarEntry * self; - Page* result = NULL; - GFile* _tmp0_; - FoldersPage* _tmp1_; -#line 190 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry); -#line 191 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = self->priv->_dir; -#line 191 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp1_ = folders_page_new (_tmp0_); -#line 191 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_object_ref_sink (_tmp1_); -#line 191 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page); -#line 191 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return result; -#line 1885 "FoldersBranch.c" -} - - -GFile* -folders_sidebar_entry_get_dir (FoldersSidebarEntry* self) -{ - GFile* result; - GFile* _tmp0_; -#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_val_if_fail (FOLDERS_IS_SIDEBAR_ENTRY (self), NULL); -#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = self->priv->_dir; -#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - result = _tmp0_; -#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return result; -#line 1902 "FoldersBranch.c" -} - - -static void -folders_sidebar_entry_set_dir (FoldersSidebarEntry* self, - GFile* value) -{ -#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_if_fail (FOLDERS_IS_SIDEBAR_ENTRY (self)); -#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (folders_sidebar_entry_get_dir (self) != value) { -#line 1914 "FoldersBranch.c" - GFile* _tmp0_; -#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = _g_object_ref0 (value); -#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (self->priv->_dir); -#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self->priv->_dir = _tmp0_; -#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_object_notify_by_pspec ((GObject *) self, folders_sidebar_entry_properties[FOLDERS_SIDEBAR_ENTRY_DIR_PROPERTY]); -#line 1924 "FoldersBranch.c" - } -} - - -const gchar* -folders_sidebar_entry_get_collation (FoldersSidebarEntry* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_val_if_fail (FOLDERS_IS_SIDEBAR_ENTRY (self), NULL); -#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = self->priv->_collation; -#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - result = _tmp0_; -#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return result; -#line 1942 "FoldersBranch.c" -} - - -static void -folders_sidebar_entry_set_collation (FoldersSidebarEntry* self, - const gchar* value) -{ -#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_if_fail (FOLDERS_IS_SIDEBAR_ENTRY (self)); -#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (g_strcmp0 (value, folders_sidebar_entry_get_collation (self)) != 0) { -#line 1954 "FoldersBranch.c" - gchar* _tmp0_; -#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = g_strdup (value); -#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_free0 (self->priv->_collation); -#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self->priv->_collation = _tmp0_; -#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_object_notify_by_pspec ((GObject *) self, folders_sidebar_entry_properties[FOLDERS_SIDEBAR_ENTRY_COLLATION_PROPERTY]); -#line 1964 "FoldersBranch.c" - } -} - - -gint -folders_sidebar_entry_get_count (FoldersSidebarEntry* self) -{ - gint result; - gint _tmp0_; -#line 154 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_val_if_fail (FOLDERS_IS_SIDEBAR_ENTRY (self), 0); -#line 155 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = self->priv->_count; -#line 155 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - result = _tmp0_; -#line 155 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - return result; -#line 1982 "FoldersBranch.c" -} - - -void -folders_sidebar_entry_set_count (FoldersSidebarEntry* self, - gint value) -{ - gint prev_count = 0; - gint _tmp0_; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - gint _tmp3_; -#line 158 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_return_if_fail (FOLDERS_IS_SIDEBAR_ENTRY (self)); -#line 159 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp0_ = self->priv->_count; -#line 159 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - prev_count = _tmp0_; -#line 160 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self->priv->_count = value; -#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp3_ = prev_count; -#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (_tmp3_ == 0) { -#line 2007 "FoldersBranch.c" - gint _tmp4_; -#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp4_ = self->priv->_count; -#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp2_ = _tmp4_ == 1; -#line 2013 "FoldersBranch.c" - } else { -#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp2_ = FALSE; -#line 2017 "FoldersBranch.c" - } -#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (_tmp2_) { -#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp1_ = TRUE; -#line 2023 "FoldersBranch.c" - } else { - gboolean _tmp5_ = FALSE; - gint _tmp6_; -#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp6_ = prev_count; -#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (_tmp6_ == 1) { -#line 2031 "FoldersBranch.c" - gint _tmp7_; -#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp7_ = self->priv->_count; -#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp5_ = _tmp7_ == 0; -#line 2037 "FoldersBranch.c" - } else { -#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp5_ = FALSE; -#line 2041 "FoldersBranch.c" - } -#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp1_ = _tmp5_; -#line 2045 "FoldersBranch.c" - } -#line 163 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - if (_tmp1_) { -#line 2049 "FoldersBranch.c" - gchar* _tmp8_; - gchar* _tmp9_; -#line 164 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp8_ = sidebar_simple_page_entry_get_sidebar_icon (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)); -#line 164 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _tmp9_ = _tmp8_; -#line 164 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_ENTRY, SidebarEntry), "sidebar-icon-changed", _tmp9_); -#line 164 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_free0 (_tmp9_); -#line 2060 "FoldersBranch.c" - } -#line 158 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_object_notify_by_pspec ((GObject *) self, folders_sidebar_entry_properties[FOLDERS_SIDEBAR_ENTRY_COUNT_PROPERTY]); -#line 2064 "FoldersBranch.c" -} - - -static void -folders_sidebar_entry_class_init (FoldersSidebarEntryClass * klass) -{ -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_sidebar_entry_parent_class = g_type_class_peek_parent (klass); -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_type_class_add_private (klass, sizeof (FoldersSidebarEntryPrivate)); -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) folders_sidebar_entry_real_get_sidebar_name; -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) folders_sidebar_entry_real_get_sidebar_icon; -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->to_string = (gchar* (*) (SidebarSimplePageEntry *)) folders_sidebar_entry_real_to_string; -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) folders_sidebar_entry_real_create_page; -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_folders_sidebar_entry_get_property; -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_folders_sidebar_entry_set_property; -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - G_OBJECT_CLASS (klass)->finalize = folders_sidebar_entry_finalize; -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), FOLDERS_SIDEBAR_ENTRY_DIR_PROPERTY, folders_sidebar_entry_properties[FOLDERS_SIDEBAR_ENTRY_DIR_PROPERTY] = g_param_spec_object ("dir", "dir", "dir", g_file_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), FOLDERS_SIDEBAR_ENTRY_COLLATION_PROPERTY, folders_sidebar_entry_properties[FOLDERS_SIDEBAR_ENTRY_COLLATION_PROPERTY] = g_param_spec_string ("collation", "collation", "collation", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), FOLDERS_SIDEBAR_ENTRY_COUNT_PROPERTY, folders_sidebar_entry_properties[FOLDERS_SIDEBAR_ENTRY_COUNT_PROPERTY] = g_param_spec_int ("count", "count", "count", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE)); -#line 2095 "FoldersBranch.c" -} - - -static void -folders_sidebar_entry_sidebar_expandable_entry_interface_init (SidebarExpandableEntryIface * iface) -{ -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_sidebar_entry_sidebar_expandable_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - iface->expand_on_select = (gboolean (*) (SidebarExpandableEntry *)) folders_sidebar_entry_real_expand_on_select; -#line 2106 "FoldersBranch.c" -} - - -static void -folders_sidebar_entry_instance_init (FoldersSidebarEntry * self) -{ -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self->priv = FOLDERS_SIDEBAR_ENTRY_GET_PRIVATE (self); -#line 152 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self->priv->_count = 0; -#line 2117 "FoldersBranch.c" -} - - -static void -folders_sidebar_entry_finalize (GObject * obj) -{ - FoldersSidebarEntry * self; -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry); -#line 149 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_object_unref0 (self->priv->_dir); -#line 150 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - _g_free0 (self->priv->_collation); -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - G_OBJECT_CLASS (folders_sidebar_entry_parent_class)->finalize (obj); -#line 2133 "FoldersBranch.c" -} - - -GType -folders_sidebar_entry_get_type (void) -{ - static volatile gsize folders_sidebar_entry_type_id__volatile = 0; - if (g_once_init_enter (&folders_sidebar_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FoldersSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) folders_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FoldersSidebarEntry), 0, (GInstanceInitFunc) folders_sidebar_entry_instance_init, NULL }; - static const GInterfaceInfo sidebar_expandable_entry_info = { (GInterfaceInitFunc) folders_sidebar_entry_sidebar_expandable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType folders_sidebar_entry_type_id; - folders_sidebar_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "FoldersSidebarEntry", &g_define_type_info, 0); - g_type_add_interface_static (folders_sidebar_entry_type_id, SIDEBAR_TYPE_EXPANDABLE_ENTRY, &sidebar_expandable_entry_info); - g_once_init_leave (&folders_sidebar_entry_type_id__volatile, folders_sidebar_entry_type_id); - } - return folders_sidebar_entry_type_id__volatile; -} - - -static void -_vala_folders_sidebar_entry_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - FoldersSidebarEntry * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry); -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - switch (property_id) { -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - case FOLDERS_SIDEBAR_ENTRY_DIR_PROPERTY: -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_value_set_object (value, folders_sidebar_entry_get_dir (self)); -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - break; -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - case FOLDERS_SIDEBAR_ENTRY_COLLATION_PROPERTY: -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_value_set_string (value, folders_sidebar_entry_get_collation (self)); -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - break; -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - case FOLDERS_SIDEBAR_ENTRY_COUNT_PROPERTY: -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - g_value_set_int (value, folders_sidebar_entry_get_count (self)); -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - break; -#line 2181 "FoldersBranch.c" - default: -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - break; -#line 2187 "FoldersBranch.c" - } -} - - -static void -_vala_folders_sidebar_entry_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - FoldersSidebarEntry * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, FOLDERS_TYPE_SIDEBAR_ENTRY, FoldersSidebarEntry); -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - switch (property_id) { -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - case FOLDERS_SIDEBAR_ENTRY_DIR_PROPERTY: -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_sidebar_entry_set_dir (self, g_value_get_object (value)); -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - break; -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - case FOLDERS_SIDEBAR_ENTRY_COLLATION_PROPERTY: -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_sidebar_entry_set_collation (self, g_value_get_string (value)); -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - break; -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - case FOLDERS_SIDEBAR_ENTRY_COUNT_PROPERTY: -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - folders_sidebar_entry_set_count (self, g_value_get_int (value)); -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - break; -#line 2220 "FoldersBranch.c" - default: -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 148 "/home/jens/Source/shotwell/src/folders/FoldersBranch.vala" - break; -#line 2226 "FoldersBranch.c" - } -} - - - diff --git a/src/folders/FoldersPage.c b/src/folders/FoldersPage.c deleted file mode 100644 index 095b114..0000000 --- a/src/folders/FoldersPage.c +++ /dev/null @@ -1,1108 +0,0 @@ -/* FoldersPage.c generated by valac 0.40.4, the Vala compiler - * generated from FoldersPage.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; -typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; - -#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ()) - -#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ()) -typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ()) -#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)) -#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) -#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER)) -#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER)) -#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) - -typedef struct _SearchViewFilter SearchViewFilter; -typedef struct _SearchViewFilterClass SearchViewFilterClass; - -#define CORE_TYPE_TRACKER (core_tracker_get_type ()) -#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) -#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) -#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) -#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) -#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) - -typedef struct _CoreTracker CoreTracker; -typedef struct _CoreTrackerClass CoreTrackerClass; - -#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) -#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) -#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) -#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) -#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) -#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) - -typedef struct _CoreViewTracker CoreViewTracker; -typedef struct _CoreViewTrackerClass CoreViewTrackerClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; -typedef struct _MediaPagePrivate MediaPagePrivate; - -#define TYPE_RATING (rating_get_type ()) - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; -typedef struct _CollectionPagePrivate CollectionPagePrivate; - -#define FOLDERS_TYPE_PAGE (folders_page_get_type ()) -#define FOLDERS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLDERS_TYPE_PAGE, FoldersPage)) -#define FOLDERS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLDERS_TYPE_PAGE, FoldersPageClass)) -#define FOLDERS_IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLDERS_TYPE_PAGE)) -#define FOLDERS_IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLDERS_TYPE_PAGE)) -#define FOLDERS_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLDERS_TYPE_PAGE, FoldersPageClass)) - -typedef struct _FoldersPage FoldersPage; -typedef struct _FoldersPageClass FoldersPageClass; -typedef struct _FoldersPagePrivate FoldersPagePrivate; - -#define TYPE_VIEW_MANAGER (view_manager_get_type ()) -#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager)) -#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass)) -#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER)) -#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER)) -#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass)) - -typedef struct _ViewManager ViewManager; -typedef struct _ViewManagerClass ViewManagerClass; - -#define TYPE_COLLECTION_VIEW_MANAGER (collection_view_manager_get_type ()) -#define COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager)) -#define COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass)) -#define IS_COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_VIEW_MANAGER)) -#define IS_COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_VIEW_MANAGER)) -#define COLLECTION_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass)) - -typedef struct _CollectionViewManager CollectionViewManager; -typedef struct _CollectionViewManagerClass CollectionViewManagerClass; - -#define FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER (folders_page_folder_view_manager_get_type ()) -#define FOLDERS_PAGE_FOLDER_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER, FoldersPageFolderViewManager)) -#define FOLDERS_PAGE_FOLDER_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER, FoldersPageFolderViewManagerClass)) -#define FOLDERS_PAGE_IS_FOLDER_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER)) -#define FOLDERS_PAGE_IS_FOLDER_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER)) -#define FOLDERS_PAGE_FOLDER_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER, FoldersPageFolderViewManagerClass)) - -typedef struct _FoldersPageFolderViewManager FoldersPageFolderViewManager; -typedef struct _FoldersPageFolderViewManagerClass FoldersPageFolderViewManagerClass; -enum { - FOLDERS_PAGE_0_PROPERTY, - FOLDERS_PAGE_NUM_PROPERTIES -}; -static GParamSpec* folders_page_properties[FOLDERS_PAGE_NUM_PROPERTIES]; -#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ()) -#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor)) -#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) -#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) - -typedef struct _ViewCollectionMonitor ViewCollectionMonitor; -typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass; -#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL))) -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -typedef struct _ViewManagerPrivate ViewManagerPrivate; -typedef struct _CollectionViewManagerPrivate CollectionViewManagerPrivate; -typedef struct _FoldersPageFolderViewManagerPrivate FoldersPageFolderViewManagerPrivate; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -typedef enum { - CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, - CHECKERBOARD_PAGE_ACTIVATOR_MOUSE -} CheckerboardPageActivator; - -struct _CheckerboardPageKeyboardModifiers { - gboolean ctrl_pressed; - gboolean alt_pressed; - gboolean shift_pressed; - gboolean super_pressed; -}; - -struct _CheckerboardPage { - Page parent_instance; - CheckerboardPagePrivate * priv; - CheckerboardItem* anchor; - CheckerboardItem* cursor; -}; - -struct _CheckerboardPageClass { - PageClass parent_class; - GtkMenu* (*get_item_context_menu) (CheckerboardPage* self); - gchar* (*get_view_empty_message) (CheckerboardPage* self); - gchar* (*get_filter_no_match_message) (CheckerboardPage* self); - void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers); - SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self); - CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self); - gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask); - void (*set_display_titles) (CheckerboardPage* self, gboolean display); - void (*set_display_comments) (CheckerboardPage* self, gboolean display); -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _MediaPage { - CheckerboardPage parent_instance; - MediaPagePrivate * priv; -}; - -struct _MediaPageClass { - CheckerboardPageClass parent_class; - void (*on_zoom_changed) (MediaPage* self); - void (*on_export) (MediaPage* self); - void (*on_increase_size) (MediaPage* self); - void (*on_decrease_size) (MediaPage* self); - void (*on_increase_rating) (MediaPage* self); - void (*on_decrease_rating) (MediaPage* self); - void (*on_set_rating) (MediaPage* self, Rating rating); - void (*on_rate_rejected) (MediaPage* self); - void (*on_rate_unrated) (MediaPage* self); - void (*on_rate_one) (MediaPage* self); - void (*on_rate_two) (MediaPage* self); - void (*on_rate_three) (MediaPage* self); - void (*on_rate_four) (MediaPage* self); - void (*on_rate_five) (MediaPage* self); - void (*on_move_to_trash) (MediaPage* self); - void (*on_edit_title) (MediaPage* self); - void (*on_edit_comment) (MediaPage* self); - void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by); - void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by); - void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*developer_changed) (MediaPage* self, RawDeveloper rd); - DataView* (*create_thumbnail) (MediaPage* self, DataSource* source); -}; - -struct _CollectionPage { - MediaPage parent_instance; - CollectionPagePrivate * priv; -}; - -struct _CollectionPageClass { - MediaPageClass parent_class; -}; - -struct _FoldersPage { - CollectionPage parent_instance; - FoldersPagePrivate * priv; -}; - -struct _FoldersPageClass { - CollectionPageClass parent_class; -}; - -struct _FoldersPagePrivate { - FoldersPageFolderViewManager* view_manager; -}; - -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _ViewManager { - GTypeInstance parent_instance; - volatile int ref_count; - ViewManagerPrivate * priv; -}; - -struct _ViewManagerClass { - GTypeClass parent_class; - void (*finalize) (ViewManager *self); - gboolean (*include_in_view) (ViewManager* self, DataSource* source); - DataView* (*create_view) (ViewManager* self, DataSource* source); -}; - -struct _CollectionViewManager { - ViewManager parent_instance; - CollectionViewManagerPrivate * priv; -}; - -struct _CollectionViewManagerClass { - ViewManagerClass parent_class; -}; - -struct _FoldersPageFolderViewManager { - CollectionViewManager parent_instance; - FoldersPageFolderViewManagerPrivate * priv; - GFile* dir; -}; - -struct _FoldersPageFolderViewManagerClass { - CollectionViewManagerClass parent_class; -}; - - -static gpointer folders_page_parent_class = NULL; -static gpointer folders_page_folder_view_manager_parent_class = NULL; - -GType page_get_type (void) G_GNUC_CONST; -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType checkerboard_page_activator_get_type (void) G_GNUC_CONST; -GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST; -CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self); -void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self); -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -GType search_view_filter_get_type (void) G_GNUC_CONST; -gpointer core_tracker_ref (gpointer instance); -void core_tracker_unref (gpointer instance); -GParamSpec* core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void core_value_set_tracker (GValue* value, - gpointer v_object); -void core_value_take_tracker (GValue* value, - gpointer v_object); -gpointer core_value_get_tracker (const GValue* value); -GType core_tracker_get_type (void) G_GNUC_CONST; -GType core_view_tracker_get_type (void) G_GNUC_CONST; -GType media_page_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -GType raw_developer_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -GType folders_page_get_type (void) G_GNUC_CONST; -gpointer view_manager_ref (gpointer instance); -void view_manager_unref (gpointer instance); -GParamSpec* param_spec_view_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_manager (GValue* value, - gpointer v_object); -void value_take_view_manager (GValue* value, - gpointer v_object); -gpointer value_get_view_manager (const GValue* value); -GType view_manager_get_type (void) G_GNUC_CONST; -GType collection_view_manager_get_type (void) G_GNUC_CONST; -static GType folders_page_folder_view_manager_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define FOLDERS_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), FOLDERS_TYPE_PAGE, FoldersPagePrivate)) -FoldersPage* folders_page_new (GFile* dir); -FoldersPage* folders_page_construct (GType object_type, - GFile* dir); -CollectionPage* collection_page_construct (GType object_type, - const gchar* page_name); -static FoldersPageFolderViewManager* folders_page_folder_view_manager_new (FoldersPage* owner, - GFile* dir); -static FoldersPageFolderViewManager* folders_page_folder_view_manager_construct (GType object_type, - FoldersPage* owner, - GFile* dir); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self); -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer view_collection_monitor_ref (gpointer instance); -void view_collection_monitor_unref (gpointer instance); -GParamSpec* view_collection_param_spec_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void view_collection_value_set_monitor (GValue* value, - gpointer v_object); -void view_collection_value_take_monitor (GValue* value, - gpointer v_object); -gpointer view_collection_value_get_monitor (const GValue* value); -GType view_collection_monitor_get_type (void) G_GNUC_CONST; -ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self, - SourceCollection* sources, - ViewManager* manager, - Alteration* prereq, - GeeCollection* initial, - ProgressMonitor progress_monitor, - void* progress_monitor_target); -static void folders_page_real_get_config_photos_sort (MediaPage* base, - gboolean* sort_order, - gint* sort_by); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -void configuration_facade_get_library_photos_sort (ConfigurationFacade* self, - gboolean* sort_order, - gint* sort_by); -static void folders_page_real_set_config_photos_sort (MediaPage* base, - gboolean sort_order, - gint sort_by); -void configuration_facade_set_library_photos_sort (ConfigurationFacade* self, - gboolean sort_order, - gint sort_by); -CollectionViewManager* collection_view_manager_new (CollectionPage* page); -CollectionViewManager* collection_view_manager_construct (GType object_type, - CollectionPage* page); -static gboolean folders_page_folder_view_manager_real_include_in_view (ViewManager* base, - DataSource* source); -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GFile* media_source_get_file (MediaSource* self); -static void folders_page_folder_view_manager_finalize (ViewManager * obj); -static void folders_page_finalize (GObject * obj); - - -FoldersPage* -folders_page_construct (GType object_type, - GFile* dir) -{ - FoldersPage * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - FoldersPageFolderViewManager* _tmp2_; -#line 24 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - g_return_val_if_fail (G_IS_FILE (dir), NULL); -#line 25 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp0_ = g_file_get_path (dir); -#line 25 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp1_ = _tmp0_; -#line 25 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - self = (FoldersPage*) collection_page_construct (object_type, _tmp1_); -#line 25 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _g_free0 (_tmp1_); -#line 27 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp2_ = folders_page_folder_view_manager_new (self, dir); -#line 27 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _view_manager_unref0 (self->priv->view_manager); -#line 27 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - self->priv->view_manager = _tmp2_; -#line 776 "FoldersPage.c" - { - GeeIterator* _sources_it = NULL; - MediaCollectionRegistry* _tmp3_; - MediaCollectionRegistry* _tmp4_; - GeeCollection* _tmp5_; - GeeCollection* _tmp6_; - GeeIterator* _tmp7_; - GeeIterator* _tmp8_; -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp3_ = media_collection_registry_get_instance (); -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp4_ = _tmp3_; -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp5_ = media_collection_registry_get_all (_tmp4_); -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp6_ = _tmp5_; -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp8_ = _tmp7_; -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _g_object_unref0 (_tmp6_); -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _media_collection_registry_unref0 (_tmp4_); -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _sources_it = _tmp8_; -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - while (TRUE) { -#line 805 "FoldersPage.c" - GeeIterator* _tmp9_; - MediaSourceCollection* sources = NULL; - GeeIterator* _tmp10_; - gpointer _tmp11_; - ViewCollection* _tmp12_; - ViewCollection* _tmp13_; - MediaSourceCollection* _tmp14_; - FoldersPageFolderViewManager* _tmp15_; - ViewCollectionMonitor* _tmp16_; - ViewCollectionMonitor* _tmp17_; -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp9_ = _sources_it; -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - if (!gee_iterator_next (_tmp9_)) { -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - break; -#line 822 "FoldersPage.c" - } -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp10_ = _sources_it; -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp11_ = gee_iterator_get (_tmp10_); -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - sources = (MediaSourceCollection*) _tmp11_; -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp13_ = _tmp12_; -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp14_ = sources; -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp15_ = self->priv->view_manager; -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp16_ = view_collection_monitor_source_collection (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_VIEW_MANAGER, ViewManager), NULL, NULL, NULL, NULL); -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp17_ = _tmp16_; -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _view_collection_monitor_unref0 (_tmp17_); -#line 30 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _data_collection_unref0 (_tmp13_); -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _data_collection_unref0 (sources); -#line 848 "FoldersPage.c" - } -#line 29 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _g_object_unref0 (_sources_it); -#line 852 "FoldersPage.c" - } -#line 24 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - return self; -#line 856 "FoldersPage.c" -} - - -FoldersPage* -folders_page_new (GFile* dir) -{ -#line 24 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - return folders_page_construct (FOLDERS_TYPE_PAGE, dir); -#line 865 "FoldersPage.c" -} - - -static void -folders_page_real_get_config_photos_sort (MediaPage* base, - gboolean* sort_order, - gint* sort_by) -{ - FoldersPage * self; - gboolean _vala_sort_order = FALSE; - gint _vala_sort_by = 0; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gboolean _tmp2_ = FALSE; - gint _tmp3_ = 0; -#line 33 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, FOLDERS_TYPE_PAGE, FoldersPage); -#line 34 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 34 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp1_ = _tmp0_; -#line 34 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - configuration_facade_get_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp2_, &_tmp3_); -#line 34 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _vala_sort_order = _tmp2_; -#line 34 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _vala_sort_by = _tmp3_; -#line 34 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _g_object_unref0 (_tmp1_); -#line 33 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - if (sort_order) { -#line 33 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - *sort_order = _vala_sort_order; -#line 899 "FoldersPage.c" - } -#line 33 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - if (sort_by) { -#line 33 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - *sort_by = _vala_sort_by; -#line 905 "FoldersPage.c" - } -} - - -static void -folders_page_real_set_config_photos_sort (MediaPage* base, - gboolean sort_order, - gint sort_by) -{ - FoldersPage * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 37 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, FOLDERS_TYPE_PAGE, FoldersPage); -#line 38 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 38 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp1_ = _tmp0_; -#line 38 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - configuration_facade_set_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), sort_order, sort_by); -#line 38 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _g_object_unref0 (_tmp1_); -#line 928 "FoldersPage.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 14 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - return self ? g_object_ref (self) : NULL; -#line 937 "FoldersPage.c" -} - - -static FoldersPageFolderViewManager* -folders_page_folder_view_manager_construct (GType object_type, - FoldersPage* owner, - GFile* dir) -{ - FoldersPageFolderViewManager* self = NULL; - GFile* _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - g_return_val_if_fail (FOLDERS_IS_PAGE (owner), NULL); -#line 11 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - g_return_val_if_fail (G_IS_FILE (dir), NULL); -#line 12 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - self = (FoldersPageFolderViewManager*) collection_view_manager_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, TYPE_COLLECTION_PAGE, CollectionPage)); -#line 14 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp0_ = _g_object_ref0 (dir); -#line 14 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _g_object_unref0 (self->dir); -#line 14 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - self->dir = _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - return self; -#line 962 "FoldersPage.c" -} - - -static FoldersPageFolderViewManager* -folders_page_folder_view_manager_new (FoldersPage* owner, - GFile* dir) -{ -#line 11 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - return folders_page_folder_view_manager_construct (FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER, owner, dir); -#line 972 "FoldersPage.c" -} - - -static gboolean -folders_page_folder_view_manager_real_include_in_view (ViewManager* base, - DataSource* source) -{ - FoldersPageFolderViewManager * self; - gboolean result = FALSE; - GFile* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - gboolean _tmp3_; -#line 17 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER, FoldersPageFolderViewManager); -#line 17 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 18 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp0_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource)); -#line 18 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp1_ = _tmp0_; -#line 18 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp2_ = self->dir; -#line 18 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _tmp3_ = g_file_has_prefix (_tmp1_, _tmp2_); -#line 18 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _g_object_unref0 (_tmp1_); -#line 18 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - result = _tmp3_; -#line 18 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - return result; -#line 1004 "FoldersPage.c" -} - - -static void -folders_page_folder_view_manager_class_init (FoldersPageFolderViewManagerClass * klass) -{ -#line 8 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - folders_page_folder_view_manager_parent_class = g_type_class_peek_parent (klass); -#line 8 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - ((ViewManagerClass *) klass)->finalize = folders_page_folder_view_manager_finalize; -#line 8 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - ((ViewManagerClass *) klass)->include_in_view = (gboolean (*) (ViewManager *, DataSource*)) folders_page_folder_view_manager_real_include_in_view; -#line 1017 "FoldersPage.c" -} - - -static void -folders_page_folder_view_manager_instance_init (FoldersPageFolderViewManager * self) -{ -} - - -static void -folders_page_folder_view_manager_finalize (ViewManager * obj) -{ - FoldersPageFolderViewManager * self; -#line 8 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, FOLDERS_PAGE_TYPE_FOLDER_VIEW_MANAGER, FoldersPageFolderViewManager); -#line 9 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _g_object_unref0 (self->dir); -#line 8 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - VIEW_MANAGER_CLASS (folders_page_folder_view_manager_parent_class)->finalize (obj); -#line 1037 "FoldersPage.c" -} - - -static GType -folders_page_folder_view_manager_get_type (void) -{ - static volatile gsize folders_page_folder_view_manager_type_id__volatile = 0; - if (g_once_init_enter (&folders_page_folder_view_manager_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FoldersPageFolderViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) folders_page_folder_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FoldersPageFolderViewManager), 0, (GInstanceInitFunc) folders_page_folder_view_manager_instance_init, NULL }; - GType folders_page_folder_view_manager_type_id; - folders_page_folder_view_manager_type_id = g_type_register_static (TYPE_COLLECTION_VIEW_MANAGER, "FoldersPageFolderViewManager", &g_define_type_info, 0); - g_once_init_leave (&folders_page_folder_view_manager_type_id__volatile, folders_page_folder_view_manager_type_id); - } - return folders_page_folder_view_manager_type_id__volatile; -} - - -static void -folders_page_class_init (FoldersPageClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - folders_page_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - g_type_class_add_private (klass, sizeof (FoldersPagePrivate)); -#line 7 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) folders_page_real_get_config_photos_sort; -#line 7 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) folders_page_real_set_config_photos_sort; -#line 7 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - G_OBJECT_CLASS (klass)->finalize = folders_page_finalize; -#line 1068 "FoldersPage.c" -} - - -static void -folders_page_instance_init (FoldersPage * self) -{ -#line 7 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - self->priv = FOLDERS_PAGE_GET_PRIVATE (self); -#line 1077 "FoldersPage.c" -} - - -static void -folders_page_finalize (GObject * obj) -{ - FoldersPage * self; -#line 7 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, FOLDERS_TYPE_PAGE, FoldersPage); -#line 22 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - _view_manager_unref0 (self->priv->view_manager); -#line 7 "/home/jens/Source/shotwell/src/folders/FoldersPage.vala" - G_OBJECT_CLASS (folders_page_parent_class)->finalize (obj); -#line 1091 "FoldersPage.c" -} - - -GType -folders_page_get_type (void) -{ - static volatile gsize folders_page_type_id__volatile = 0; - if (g_once_init_enter (&folders_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FoldersPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) folders_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FoldersPage), 0, (GInstanceInitFunc) folders_page_instance_init, NULL }; - GType folders_page_type_id; - folders_page_type_id = g_type_register_static (TYPE_COLLECTION_PAGE, "FoldersPage", &g_define_type_info, 0); - g_once_init_leave (&folders_page_type_id__volatile, folders_page_type_id); - } - return folders_page_type_id__volatile; -} - - - diff --git a/src/graphics-processor.c b/src/graphics-processor.c deleted file mode 100644 index da3b2d1..0000000 --- a/src/graphics-processor.c +++ /dev/null @@ -1,1180 +0,0 @@ -/* graphics-processor.c generated by valac 0.40.4, the Vala compiler - * generated from graphics-processor.vala, do not modify */ - - - -#include -#include -#include -#include -#include -#include "shotwell-graphics-processor.h" -#include -#include -#include -#include - -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _key_value_map_unref0(var) ((var == NULL) ? NULL : (var = (key_value_map_unref (var), NULL))) -#define _g_option_context_free0(var) ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL))) -#define _pixel_transformation_bundle_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformation_bundle_unref (var), NULL))) -#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL))) -#define _pixel_transformer_unref0(var) ((var == NULL) ? NULL : (var = (pixel_transformer_unref (var), NULL))) - - -extern gchar* input_file; -gchar* input_file = NULL; -extern gchar* output_file; -gchar* output_file = NULL; -extern gchar* pipeline; -gchar* pipeline = NULL; -extern gboolean auto_enhance; -gboolean auto_enhance = FALSE; -extern gchar* format; -gchar* format = NULL; -extern gint jobs; -gint jobs = -1; - -GeeHashMap* marshall_all_transformations (const gchar* filename); -gint _vala_main (gchar** args, - int args_length1); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - -const GOptionEntry options[7] = {{"input", 'i', 0, G_OPTION_ARG_FILENAME, &input_file, "FILE to process", "FILE"}, {"output", 'o', 0, G_OPTION_ARG_FILENAME, &output_file, "destination FILE", "FILE"}, {"pipeline", 'p', 0, G_OPTION_ARG_FILENAME, &pipeline, "graphics PIPELINE to run", "PIPELINE"}, {"auto-enance", 'a', 0, G_OPTION_ARG_NONE, &auto_enhance, "run auto-enhance on input file", NULL}, {"format", 'f', 0, G_OPTION_ARG_STRING, &format, "Save output file in specific format [png, jpeg (default)]", NULL}, {"jobs", 'j', 0, G_OPTION_ARG_INT, &jobs, "Number of parallel jobs to run on an image", NULL}, {NULL, (gchar) 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL}}; - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 75 "graphics-processor.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 84 "graphics-processor.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 105 "graphics-processor.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 109 "graphics-processor.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 115 "graphics-processor.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 125 "graphics-processor.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 129 "graphics-processor.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 137 "graphics-processor.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 144 "graphics-processor.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 148 "graphics-processor.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 154 "graphics-processor.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 166 "graphics-processor.c" -} - - -static gchar* -string_replace (const gchar* self, - const gchar* old, - const gchar* replacement) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 189 "graphics-processor.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 193 "graphics-processor.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 199 "graphics-processor.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 203 "graphics-processor.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 207 "graphics-processor.c" - gchar* _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = g_strdup (self); -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 215 "graphics-processor.c" - } - { - GRegex* regex = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GRegex* _tmp5_; - GRegex* _tmp6_; - gchar* _tmp7_ = NULL; - GRegex* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_regex_escape_string (old, -1); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp5_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp4_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - regex = _tmp6_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 243 "graphics-processor.c" - goto __catch1_g_regex_error; - } -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 252 "graphics-processor.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = regex; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp9_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 266 "graphics-processor.c" - goto __catch1_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 277 "graphics-processor.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = _tmp7_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = NULL; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp10_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp7_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 291 "graphics-processor.c" - } - goto __finally1; - __catch1_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 305 "graphics-processor.c" - } - __finally1: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 316 "graphics-processor.c" - } -} - - -GeeHashMap* -marshall_all_transformations (const gchar* filename) -{ - GeeHashMap* result = NULL; - GError * _inner_error_ = NULL; -#line 18 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_return_val_if_fail (filename != NULL, NULL); -#line 328 "graphics-processor.c" - { - GKeyFile* keyfile = NULL; - GKeyFile* _tmp0_; - GeeHashMap* map = NULL; - GeeHashMap* _tmp13_; - gchar** objects = NULL; - GKeyFile* _tmp14_; - gsize _tmp15_; - gchar** _tmp16_; - gint objects_length1; - gint _objects_size_; - gchar** _tmp17_; - gint _tmp17__length1; -#line 20 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp0_ = g_key_file_new (); -#line 20 "/home/jens/Source/shotwell/src/graphics-processor.vala" - keyfile = _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (g_str_has_prefix (filename, "string:")) { -#line 348 "graphics-processor.c" - gchar* data = NULL; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GKeyFile* _tmp7_; - const gchar* _tmp8_; - const gchar* _tmp9_; - gint _tmp10_; - gint _tmp11_; -#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp1_ = string_substring (filename, (glong) 7, (glong) -1); -#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp2_ = _tmp1_; -#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp3_ = string_replace (_tmp2_, "&", "\n"); -#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp4_ = _tmp3_; -#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp5_ = g_strconcat ("[adjustments]\n", _tmp4_, NULL); -#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp6_ = _tmp5_; -#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_free0 (_tmp4_); -#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_free0 (_tmp2_); -#line 22 "/home/jens/Source/shotwell/src/graphics-processor.vala" - data = _tmp6_; -#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp7_ = keyfile; -#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp8_ = data; -#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp9_ = data; -#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp10_ = strlen (_tmp9_); -#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp11_ = _tmp10_; -#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_key_file_load_from_data (_tmp7_, _tmp8_, (gsize) _tmp11_, G_KEY_FILE_NONE, &_inner_error_); -#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_free0 (data); -#line 23 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_key_file_unref0 (keyfile); -#line 397 "graphics-processor.c" - goto __catch0_g_error; - } -#line 21 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_free0 (data); -#line 402 "graphics-processor.c" - } else { - GKeyFile* _tmp12_; -#line 25 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp12_ = keyfile; -#line 25 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_key_file_load_from_file (_tmp12_, filename, G_KEY_FILE_NONE, &_inner_error_); -#line 25 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 25 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_key_file_unref0 (keyfile); -#line 413 "graphics-processor.c" - goto __catch0_g_error; - } - } -#line 28 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp13_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_KEY_VALUE_MAP, (GBoxedCopyFunc) key_value_map_ref, (GDestroyNotify) key_value_map_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 28 "/home/jens/Source/shotwell/src/graphics-processor.vala" - map = _tmp13_; -#line 30 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp14_ = keyfile; -#line 30 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp16_ = g_key_file_get_groups (_tmp14_, &_tmp15_); -#line 30 "/home/jens/Source/shotwell/src/graphics-processor.vala" - objects = _tmp16_; -#line 30 "/home/jens/Source/shotwell/src/graphics-processor.vala" - objects_length1 = _tmp15_; -#line 30 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _objects_size_ = objects_length1; -#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp17_ = objects; -#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp17__length1 = objects_length1; -#line 435 "graphics-processor.c" - { - gchar** object_collection = NULL; - gint object_collection_length1 = 0; - gint _object_collection_size_ = 0; - gint object_it = 0; -#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala" - object_collection = _tmp17_; -#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala" - object_collection_length1 = _tmp17__length1; -#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala" - for (object_it = 0; object_it < _tmp17__length1; object_it = object_it + 1) { -#line 447 "graphics-processor.c" - gchar* _tmp18_; - gchar* object = NULL; -#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp18_ = g_strdup (object_collection[object_it]); -#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala" - object = _tmp18_; -#line 454 "graphics-processor.c" - { - gchar** keys = NULL; - GKeyFile* _tmp19_; - const gchar* _tmp20_; - gsize _tmp21_; - gchar** _tmp22_; - gint keys_length1; - gint _keys_size_; - gboolean _tmp23_ = FALSE; - gchar** _tmp24_; - gint _tmp24__length1; - KeyValueMap* key_map = NULL; - const gchar* _tmp26_; - KeyValueMap* _tmp27_; - gchar** _tmp28_; - gint _tmp28__length1; - GeeHashMap* _tmp37_; - const gchar* _tmp38_; - KeyValueMap* _tmp39_; -#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp19_ = keyfile; -#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp20_ = object; -#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp22_ = g_key_file_get_keys (_tmp19_, _tmp20_, &_tmp21_, &_inner_error_); -#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala" - keys = _tmp22_; -#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala" - keys_length1 = _tmp21_; -#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _keys_size_ = keys_length1; -#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_free0 (object); -#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala" - objects = (_vala_array_free (objects, objects_length1, (GDestroyNotify) g_free), NULL); -#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_object_unref0 (map); -#line 32 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_key_file_unref0 (keyfile); -#line 496 "graphics-processor.c" - goto __catch0_g_error; - } -#line 33 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp24_ = keys; -#line 33 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp24__length1 = keys_length1; -#line 33 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (_tmp24_ == NULL) { -#line 33 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp23_ = TRUE; -#line 507 "graphics-processor.c" - } else { - gchar** _tmp25_; - gint _tmp25__length1; -#line 33 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp25_ = keys; -#line 33 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp25__length1 = keys_length1; -#line 33 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp23_ = _tmp25__length1 == 0; -#line 517 "graphics-processor.c" - } -#line 33 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (_tmp23_) { -#line 34 "/home/jens/Source/shotwell/src/graphics-processor.vala" - keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL); -#line 34 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_free0 (object); -#line 34 "/home/jens/Source/shotwell/src/graphics-processor.vala" - continue; -#line 527 "graphics-processor.c" - } -#line 37 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp26_ = object; -#line 37 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp27_ = key_value_map_new (_tmp26_); -#line 37 "/home/jens/Source/shotwell/src/graphics-processor.vala" - key_map = _tmp27_; -#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp28_ = keys; -#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp28__length1 = keys_length1; -#line 539 "graphics-processor.c" - { - gchar** key_collection = NULL; - gint key_collection_length1 = 0; - gint _key_collection_size_ = 0; - gint key_it = 0; -#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala" - key_collection = _tmp28_; -#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala" - key_collection_length1 = _tmp28__length1; -#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala" - for (key_it = 0; key_it < _tmp28__length1; key_it = key_it + 1) { -#line 551 "graphics-processor.c" - gchar* _tmp29_; - gchar* key = NULL; -#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp29_ = g_strdup (key_collection[key_it]); -#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala" - key = _tmp29_; -#line 558 "graphics-processor.c" - { - gchar* _tmp30_ = NULL; - GKeyFile* _tmp31_; - const gchar* _tmp32_; - const gchar* _tmp33_; - gchar* _tmp34_; - KeyValueMap* _tmp35_; - const gchar* _tmp36_; -#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp31_ = keyfile; -#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp32_ = object; -#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp33_ = key; -#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp34_ = g_key_file_get_string (_tmp31_, _tmp32_, _tmp33_, &_inner_error_); -#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp30_ = _tmp34_; -#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_free0 (key); -#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _key_value_map_unref0 (key_map); -#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala" - keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL); -#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_free0 (object); -#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala" - objects = (_vala_array_free (objects, objects_length1, (GDestroyNotify) g_free), NULL); -#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_object_unref0 (map); -#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_key_file_unref0 (keyfile); -#line 593 "graphics-processor.c" - goto __catch0_g_error; - } -#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp35_ = key_map; -#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp36_ = key; -#line 39 "/home/jens/Source/shotwell/src/graphics-processor.vala" - key_value_map_set_string (_tmp35_, _tmp36_, _tmp30_); -#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_free0 (_tmp30_); -#line 38 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_free0 (key); -#line 606 "graphics-processor.c" - } - } - } -#line 41 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp37_ = map; -#line 41 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp38_ = object; -#line 41 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp39_ = key_map; -#line 41 "/home/jens/Source/shotwell/src/graphics-processor.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp38_, _tmp39_); -#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _key_value_map_unref0 (key_map); -#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala" - keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL); -#line 31 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_free0 (object); -#line 624 "graphics-processor.c" - } - } - } -#line 44 "/home/jens/Source/shotwell/src/graphics-processor.vala" - result = map; -#line 44 "/home/jens/Source/shotwell/src/graphics-processor.vala" - objects = (_vala_array_free (objects, objects_length1, (GDestroyNotify) g_free), NULL); -#line 44 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_key_file_unref0 (keyfile); -#line 44 "/home/jens/Source/shotwell/src/graphics-processor.vala" - return result; -#line 636 "graphics-processor.c" - } - goto __finally0; - __catch0_g_error: - { - GError* err = NULL; - const gchar* _tmp40_; -#line 19 "/home/jens/Source/shotwell/src/graphics-processor.vala" - err = _inner_error_; -#line 19 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _inner_error_ = NULL; -#line 46 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp40_ = err->message; -#line 46 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_error ("graphics-processor.vala:46: %s", _tmp40_); -#line 19 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_error_free0 (err); -#line 653 "graphics-processor.c" - } - __finally0: -#line 19 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 19 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_clear_error (&_inner_error_); -#line 19 "/home/jens/Source/shotwell/src/graphics-processor.vala" - return NULL; -#line 662 "graphics-processor.c" -} - - -gint -_vala_main (gchar** args, - int args_length1) -{ - gint result = 0; - GOptionContext* ctx = NULL; - GOptionContext* _tmp0_; - GOptionContext* _tmp1_; - GOptionContext* _tmp2_; - GOptionContext* _tmp3_; - gboolean _tmp9_ = FALSE; - const gchar* _tmp10_; - gboolean _tmp15_ = FALSE; - gboolean _tmp16_; - GdkPixbuf* src = NULL; - GdkPixbuf* output = NULL; - GdkPixbuf* _tmp24_; - GdkPixbuf* _tmp25_; - PixelTransformationBundle* adjustments = NULL; - const gchar* _tmp26_; - gboolean _tmp36_; - PixelTransformer* transformer = NULL; - PixelTransformationBundle* _tmp39_; - PixelTransformer* _tmp40_; - GTimer* timer = NULL; - GTimer* _tmp41_; - PixelTransformer* _tmp42_; - GdkPixbuf* _tmp43_; - GdkPixbuf* _tmp44_; - gint _tmp45_; - gdouble elapsed = 0.0; - GTimer* _tmp46_; - gdouble _tmp47_; - gdouble _tmp48_; - const gchar* _tmp49_; - GError * _inner_error_ = NULL; -#line 51 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp0_ = g_option_context_new ("- Apply shotwell transformations on commandline"); -#line 51 "/home/jens/Source/shotwell/src/graphics-processor.vala" - ctx = _tmp0_; -#line 52 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp1_ = ctx; -#line 52 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_option_context_set_help_enabled (_tmp1_, TRUE); -#line 53 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp2_ = ctx; -#line 53 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_option_context_set_ignore_unknown_options (_tmp2_, TRUE); -#line 54 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp3_ = ctx; -#line 54 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_option_context_add_main_entries (_tmp3_, options, NULL); -#line 718 "graphics-processor.c" - { - GOptionContext* _tmp4_; -#line 57 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp4_ = ctx; -#line 57 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_option_context_parse (_tmp4_, &args_length1, &args, &_inner_error_); -#line 57 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 727 "graphics-processor.c" - goto __catch2_g_error; - } - } - goto __finally2; - __catch2_g_error: - { - GError* _error_ = NULL; - GOptionContext* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 56 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _error_ = _inner_error_; -#line 56 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _inner_error_ = NULL; -#line 59 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp5_ = ctx; -#line 59 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp6_ = g_option_context_get_help (_tmp5_, TRUE, NULL); -#line 59 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp7_ = _tmp6_; -#line 59 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_print ("%s", _tmp7_); -#line 59 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_free0 (_tmp7_); -#line 61 "/home/jens/Source/shotwell/src/graphics-processor.vala" - result = 1; -#line 61 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_error_free0 (_error_); -#line 61 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_option_context_free0 (ctx); -#line 61 "/home/jens/Source/shotwell/src/graphics-processor.vala" - return result; -#line 760 "graphics-processor.c" - } - __finally2: -#line 56 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 765 "graphics-processor.c" - gint _tmp8_ = 0; -#line 56 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_option_context_free0 (ctx); -#line 56 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 56 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_clear_error (&_inner_error_); -#line 56 "/home/jens/Source/shotwell/src/graphics-processor.vala" - return _tmp8_; -#line 775 "graphics-processor.c" - } -#line 64 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp10_ = input_file; -#line 64 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (_tmp10_ == NULL) { -#line 64 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp9_ = TRUE; -#line 783 "graphics-processor.c" - } else { - const gchar* _tmp11_; -#line 64 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp11_ = output_file; -#line 64 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp9_ = _tmp11_ == NULL; -#line 790 "graphics-processor.c" - } -#line 64 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (_tmp9_) { -#line 794 "graphics-processor.c" - GOptionContext* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; -#line 65 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_print ("You need to provide and input and output file\n"); -#line 66 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp12_ = ctx; -#line 66 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp13_ = g_option_context_get_help (_tmp12_, TRUE, NULL); -#line 66 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp14_ = _tmp13_; -#line 66 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_print ("%s", _tmp14_); -#line 66 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_free0 (_tmp14_); -#line 68 "/home/jens/Source/shotwell/src/graphics-processor.vala" - result = 1; -#line 68 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_option_context_free0 (ctx); -#line 68 "/home/jens/Source/shotwell/src/graphics-processor.vala" - return result; -#line 816 "graphics-processor.c" - } -#line 71 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp16_ = auto_enhance; -#line 71 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (_tmp16_ == FALSE) { -#line 822 "graphics-processor.c" - const gchar* _tmp17_; -#line 71 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp17_ = pipeline; -#line 71 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp15_ = _tmp17_ == NULL; -#line 828 "graphics-processor.c" - } else { -#line 71 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp15_ = FALSE; -#line 832 "graphics-processor.c" - } -#line 71 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (_tmp15_) { -#line 72 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_print ("No operation provided. Nothing to do.\n"); -#line 74 "/home/jens/Source/shotwell/src/graphics-processor.vala" - result = 0; -#line 74 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_option_context_free0 (ctx); -#line 74 "/home/jens/Source/shotwell/src/graphics-processor.vala" - return result; -#line 844 "graphics-processor.c" - } -#line 77 "/home/jens/Source/shotwell/src/graphics-processor.vala" - src = NULL; -#line 848 "graphics-processor.c" - { - GdkPixbuf* _tmp18_ = NULL; - const gchar* _tmp19_; - GdkPixbuf* _tmp20_; - GdkPixbuf* _tmp21_; -#line 79 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp19_ = input_file; -#line 79 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp20_ = gdk_pixbuf_new_from_file (_tmp19_, &_inner_error_); -#line 79 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp18_ = _tmp20_; -#line 79 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 862 "graphics-processor.c" - goto __catch3_g_error; - } -#line 79 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp21_ = _tmp18_; -#line 79 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp18_ = NULL; -#line 79 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_object_unref0 (src); -#line 79 "/home/jens/Source/shotwell/src/graphics-processor.vala" - src = _tmp21_; -#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_object_unref0 (_tmp18_); -#line 875 "graphics-processor.c" - } - goto __finally3; - __catch3_g_error: - { - GError* err = NULL; - const gchar* _tmp22_; -#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala" - err = _inner_error_; -#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _inner_error_ = NULL; -#line 81 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp22_ = err->message; -#line 81 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_error ("graphics-processor.vala:81: %s", _tmp22_); -#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_error_free0 (err); -#line 892 "graphics-processor.c" - } - __finally3: -#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 897 "graphics-processor.c" - gint _tmp23_ = 0; -#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_object_unref0 (src); -#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_option_context_free0 (ctx); -#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_clear_error (&_inner_error_); -#line 78 "/home/jens/Source/shotwell/src/graphics-processor.vala" - return _tmp23_; -#line 909 "graphics-processor.c" - } -#line 84 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp24_ = src; -#line 84 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp25_ = gdk_pixbuf_copy (_tmp24_); -#line 84 "/home/jens/Source/shotwell/src/graphics-processor.vala" - output = _tmp25_; -#line 85 "/home/jens/Source/shotwell/src/graphics-processor.vala" - adjustments = NULL; -#line 87 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp26_ = pipeline; -#line 87 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (_tmp26_ != NULL) { -#line 923 "graphics-processor.c" - GeeHashMap* transformations = NULL; - const gchar* _tmp27_; - GeeHashMap* _tmp28_; - PixelTransformationBundle* _tmp29_; - KeyValueMap* map = NULL; - GeeHashMap* _tmp30_; - gpointer _tmp31_; - KeyValueMap* _tmp32_; -#line 88 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp27_ = pipeline; -#line 88 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp28_ = marshall_all_transformations (_tmp27_); -#line 88 "/home/jens/Source/shotwell/src/graphics-processor.vala" - transformations = _tmp28_; -#line 90 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp29_ = pixel_transformation_bundle_new (); -#line 90 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _pixel_transformation_bundle_unref0 (adjustments); -#line 90 "/home/jens/Source/shotwell/src/graphics-processor.vala" - adjustments = _tmp29_; -#line 91 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp30_ = transformations; -#line 91 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp31_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), "adjustments"); -#line 91 "/home/jens/Source/shotwell/src/graphics-processor.vala" - map = (KeyValueMap*) _tmp31_; -#line 92 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp32_ = map; -#line 92 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (_tmp32_ == NULL) { -#line 954 "graphics-processor.c" - PixelTransformationBundle* _tmp33_; -#line 93 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp33_ = adjustments; -#line 93 "/home/jens/Source/shotwell/src/graphics-processor.vala" - pixel_transformation_bundle_set_to_identity (_tmp33_); -#line 960 "graphics-processor.c" - } else { - PixelTransformationBundle* _tmp34_; - KeyValueMap* _tmp35_; -#line 95 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp34_ = adjustments; -#line 95 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp35_ = map; -#line 95 "/home/jens/Source/shotwell/src/graphics-processor.vala" - pixel_transformation_bundle_load (_tmp34_, _tmp35_); -#line 970 "graphics-processor.c" - } -#line 87 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _key_value_map_unref0 (map); -#line 87 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_object_unref0 (transformations); -#line 976 "graphics-processor.c" - } -#line 99 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp36_ = auto_enhance; -#line 99 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (_tmp36_) { -#line 982 "graphics-processor.c" - GdkPixbuf* _tmp37_; - PixelTransformationBundle* _tmp38_; -#line 100 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp37_ = src; -#line 100 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp38_ = auto_enhance_create_auto_enhance_adjustments (_tmp37_); -#line 100 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _pixel_transformation_bundle_unref0 (adjustments); -#line 100 "/home/jens/Source/shotwell/src/graphics-processor.vala" - adjustments = _tmp38_; -#line 993 "graphics-processor.c" - } -#line 103 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp39_ = adjustments; -#line 103 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp40_ = pixel_transformation_bundle_generate_transformer (_tmp39_); -#line 103 "/home/jens/Source/shotwell/src/graphics-processor.vala" - transformer = _tmp40_; -#line 104 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp41_ = g_timer_new (); -#line 104 "/home/jens/Source/shotwell/src/graphics-processor.vala" - timer = _tmp41_; -#line 105 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp42_ = transformer; -#line 105 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp43_ = src; -#line 105 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp44_ = output; -#line 105 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp45_ = jobs; -#line 105 "/home/jens/Source/shotwell/src/graphics-processor.vala" - pixel_transformer_transform_to_other_pixbuf (_tmp42_, _tmp43_, _tmp44_, NULL, _tmp45_); -#line 106 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp46_ = timer; -#line 106 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp47_ = g_timer_elapsed (_tmp46_, NULL); -#line 106 "/home/jens/Source/shotwell/src/graphics-processor.vala" - elapsed = _tmp47_; -#line 108 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp48_ = elapsed; -#line 108 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_print ("Transformation took %f\n", _tmp48_); -#line 111 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp49_ = format; -#line 111 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (_tmp49_ == NULL) { -#line 1029 "graphics-processor.c" - gchar* content_type = NULL; - const gchar* _tmp50_; - gchar* _tmp51_; - const gchar* _tmp52_; - gchar* _tmp54_; -#line 112 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp50_ = output_file; -#line 112 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp51_ = g_content_type_guess (_tmp50_, NULL, (gsize) 0, NULL); -#line 112 "/home/jens/Source/shotwell/src/graphics-processor.vala" - content_type = _tmp51_; -#line 113 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp52_ = content_type; -#line 113 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (g_strcmp0 (_tmp52_, "image/png") == 0) { -#line 1045 "graphics-processor.c" - gchar* _tmp53_; -#line 114 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp53_ = g_strdup ("png"); -#line 114 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_free0 (format); -#line 114 "/home/jens/Source/shotwell/src/graphics-processor.vala" - format = _tmp53_; -#line 1053 "graphics-processor.c" - } -#line 117 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp54_ = g_strdup ("jpeg"); -#line 117 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_free0 (format); -#line 117 "/home/jens/Source/shotwell/src/graphics-processor.vala" - format = _tmp54_; -#line 111 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_free0 (content_type); -#line 1063 "graphics-processor.c" - } - { - GdkPixbuf* _tmp55_; - const gchar* _tmp56_; - const gchar* _tmp57_; -#line 121 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp55_ = output; -#line 121 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp56_ = output_file; -#line 121 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp57_ = format; -#line 121 "/home/jens/Source/shotwell/src/graphics-processor.vala" - gdk_pixbuf_save (_tmp55_, _tmp56_, _tmp57_, &_inner_error_, NULL, NULL); -#line 121 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1079 "graphics-processor.c" - goto __catch4_g_error; - } - } - goto __finally4; - __catch4_g_error: - { - GError* err = NULL; - const gchar* _tmp58_; -#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala" - err = _inner_error_; -#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _inner_error_ = NULL; -#line 123 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _tmp58_ = err->message; -#line 123 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_error ("graphics-processor.vala:123: %s", _tmp58_); -#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_error_free0 (err); -#line 1098 "graphics-processor.c" - } - __finally4: -#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1103 "graphics-processor.c" - gint _tmp59_ = 0; -#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_timer_destroy0 (timer); -#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _pixel_transformer_unref0 (transformer); -#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _pixel_transformation_bundle_unref0 (adjustments); -#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_object_unref0 (output); -#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_object_unref0 (src); -#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_option_context_free0 (ctx); -#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala" - g_clear_error (&_inner_error_); -#line 120 "/home/jens/Source/shotwell/src/graphics-processor.vala" - return _tmp59_; -#line 1123 "graphics-processor.c" - } -#line 126 "/home/jens/Source/shotwell/src/graphics-processor.vala" - result = 0; -#line 126 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_timer_destroy0 (timer); -#line 126 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _pixel_transformer_unref0 (transformer); -#line 126 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _pixel_transformation_bundle_unref0 (adjustments); -#line 126 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_object_unref0 (output); -#line 126 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_object_unref0 (src); -#line 126 "/home/jens/Source/shotwell/src/graphics-processor.vala" - _g_option_context_free0 (ctx); -#line 126 "/home/jens/Source/shotwell/src/graphics-processor.vala" - return result; -#line 1141 "graphics-processor.c" -} - - -int -main (int argc, - char ** argv) -{ -#line 50 "/home/jens/Source/shotwell/src/graphics-processor.vala" - return _vala_main (argv, argc); -#line 1151 "graphics-processor.c" -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/import-roll/ImportRollBranch.vala b/src/import-roll/ImportRollBranch.vala new file mode 100644 index 0000000..32337cc --- /dev/null +++ b/src/import-roll/ImportRollBranch.vala @@ -0,0 +1,45 @@ +public class ImportRoll.Branch : Sidebar.Branch { + private Gee.HashMap entries; + + public class Branch() { + base (new ImportRoll.Root(), + Sidebar.Branch.Options.HIDE_IF_EMPTY, + ImportRoll.Branch.comparator); + + this.entries = new Gee.HashMap((Gee.HashDataFunc)GLib.int64_hash, + (Gee.EqualDataFunc)GLib.int64_equal); + + foreach (var source in MediaCollectionRegistry.get_instance().get_all()) { + on_import_rolls_altered(source); + source.import_roll_altered.connect(on_import_rolls_altered); + } + + } + + private static int comparator(Sidebar.Entry a, Sidebar.Entry b) { + if (a == b) + return 0; + + var entry_a = (ImportRoll.SidebarEntry) a; + var entry_b = (ImportRoll.SidebarEntry) b; + + return -ImportID.compare_func(entry_a.get_id(), entry_b.get_id()); + } + + private void on_import_rolls_altered(MediaSourceCollection source) { + var ids = source.get_import_roll_ids(); + foreach (var id in ids) { + if (!this.entries.has_key (id.id)) { + var entry = new ImportRoll.SidebarEntry(id); + entries.set(id.id, entry); + graft(get_root(), entry); + } + } + } +} + +private class ImportRoll.Root : Sidebar.Header { + public Root() { + base (_("Imports"), _("Browse the library’s import history")); + } +} diff --git a/src/import-roll/ImportRollEntry.vala b/src/import-roll/ImportRollEntry.vala new file mode 100644 index 0000000..cbc56ae --- /dev/null +++ b/src/import-roll/ImportRollEntry.vala @@ -0,0 +1,34 @@ +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + */ + +public class ImportRoll.SidebarEntry : Library.HideablePageEntry { + private ImportID id; + private string name; + + public SidebarEntry(ImportID id) { + base(); + + this.id = id; + this.name = new DateTime.from_unix_local(id.id).format("%c"); + } + + public ImportID get_id() { + return id; + } + + public override string get_sidebar_name() { + return this.name; + } + + public override string? get_sidebar_icon() { + return Resources.ICON_LAST_IMPORT; + } + + protected override Page create_page() { + return new LastImportPage.for_id(this.id); + } +} + diff --git a/src/library/FlaggedPage.c b/src/library/FlaggedPage.c deleted file mode 100644 index 199e911..0000000 --- a/src/library/FlaggedPage.c +++ /dev/null @@ -1,1328 +0,0 @@ -/* FlaggedPage.c generated by valac 0.40.4, the Vala compiler - * generated from FlaggedPage.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; -typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; - -#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ()) - -#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ()) -typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ()) -#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)) -#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) -#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER)) -#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER)) -#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) - -typedef struct _SearchViewFilter SearchViewFilter; -typedef struct _SearchViewFilterClass SearchViewFilterClass; - -#define CORE_TYPE_TRACKER (core_tracker_get_type ()) -#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) -#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) -#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) -#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) -#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) - -typedef struct _CoreTracker CoreTracker; -typedef struct _CoreTrackerClass CoreTrackerClass; - -#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) -#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) -#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) -#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) -#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) -#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) - -typedef struct _CoreViewTracker CoreViewTracker; -typedef struct _CoreViewTrackerClass CoreViewTrackerClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; -typedef struct _MediaPagePrivate MediaPagePrivate; - -#define TYPE_RATING (rating_get_type ()) - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; -typedef struct _CollectionPagePrivate CollectionPagePrivate; - -#define TYPE_FLAGGED_PAGE (flagged_page_get_type ()) -#define FLAGGED_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGED_PAGE, FlaggedPage)) -#define FLAGGED_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLAGGED_PAGE, FlaggedPageClass)) -#define IS_FLAGGED_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGED_PAGE)) -#define IS_FLAGGED_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLAGGED_PAGE)) -#define FLAGGED_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLAGGED_PAGE, FlaggedPageClass)) - -typedef struct _FlaggedPage FlaggedPage; -typedef struct _FlaggedPageClass FlaggedPageClass; -typedef struct _FlaggedPagePrivate FlaggedPagePrivate; - -#define TYPE_VIEW_MANAGER (view_manager_get_type ()) -#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager)) -#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass)) -#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER)) -#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER)) -#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass)) - -typedef struct _ViewManager ViewManager; -typedef struct _ViewManagerClass ViewManagerClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define TYPE_DEFAULT_SEARCH_VIEW_FILTER (default_search_view_filter_get_type ()) -#define DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilter)) -#define DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass)) -#define IS_DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER)) -#define IS_DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER)) -#define DEFAULT_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass)) - -typedef struct _DefaultSearchViewFilter DefaultSearchViewFilter; -typedef struct _DefaultSearchViewFilterClass DefaultSearchViewFilterClass; - -#define COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER (collection_page_collection_search_view_filter_get_type ()) -#define COLLECTION_PAGE_COLLECTION_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilter)) -#define COLLECTION_PAGE_COLLECTION_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilterClass)) -#define COLLECTION_PAGE_IS_COLLECTION_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER)) -#define COLLECTION_PAGE_IS_COLLECTION_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER)) -#define COLLECTION_PAGE_COLLECTION_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, CollectionPageCollectionSearchViewFilterClass)) - -typedef struct _CollectionPageCollectionSearchViewFilter CollectionPageCollectionSearchViewFilter; -typedef struct _CollectionPageCollectionSearchViewFilterClass CollectionPageCollectionSearchViewFilterClass; - -#define FLAGGED_PAGE_TYPE_FLAGGED_SEARCH_VIEW_FILTER (flagged_page_flagged_search_view_filter_get_type ()) -#define FLAGGED_PAGE_FLAGGED_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FLAGGED_PAGE_TYPE_FLAGGED_SEARCH_VIEW_FILTER, FlaggedPageFlaggedSearchViewFilter)) -#define FLAGGED_PAGE_FLAGGED_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FLAGGED_PAGE_TYPE_FLAGGED_SEARCH_VIEW_FILTER, FlaggedPageFlaggedSearchViewFilterClass)) -#define FLAGGED_PAGE_IS_FLAGGED_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FLAGGED_PAGE_TYPE_FLAGGED_SEARCH_VIEW_FILTER)) -#define FLAGGED_PAGE_IS_FLAGGED_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FLAGGED_PAGE_TYPE_FLAGGED_SEARCH_VIEW_FILTER)) -#define FLAGGED_PAGE_FLAGGED_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FLAGGED_PAGE_TYPE_FLAGGED_SEARCH_VIEW_FILTER, FlaggedPageFlaggedSearchViewFilterClass)) - -typedef struct _FlaggedPageFlaggedSearchViewFilter FlaggedPageFlaggedSearchViewFilter; -typedef struct _FlaggedPageFlaggedSearchViewFilterClass FlaggedPageFlaggedSearchViewFilterClass; -enum { - FLAGGED_PAGE_0_PROPERTY, - FLAGGED_PAGE_NUM_PROPERTIES -}; -static GParamSpec* flagged_page_properties[FLAGGED_PAGE_NUM_PROPERTIES]; -#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL))) -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) -#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL))) - -#define TYPE_COLLECTION_VIEW_MANAGER (collection_view_manager_get_type ()) -#define COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager)) -#define COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass)) -#define IS_COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_VIEW_MANAGER)) -#define IS_COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_VIEW_MANAGER)) -#define COLLECTION_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass)) - -typedef struct _CollectionViewManager CollectionViewManager; -typedef struct _CollectionViewManagerClass CollectionViewManagerClass; - -#define FLAGGED_PAGE_TYPE_FLAGGED_VIEW_MANAGER (flagged_page_flagged_view_manager_get_type ()) -#define FLAGGED_PAGE_FLAGGED_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FLAGGED_PAGE_TYPE_FLAGGED_VIEW_MANAGER, FlaggedPageFlaggedViewManager)) -#define FLAGGED_PAGE_FLAGGED_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FLAGGED_PAGE_TYPE_FLAGGED_VIEW_MANAGER, FlaggedPageFlaggedViewManagerClass)) -#define FLAGGED_PAGE_IS_FLAGGED_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FLAGGED_PAGE_TYPE_FLAGGED_VIEW_MANAGER)) -#define FLAGGED_PAGE_IS_FLAGGED_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FLAGGED_PAGE_TYPE_FLAGGED_VIEW_MANAGER)) -#define FLAGGED_PAGE_FLAGGED_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FLAGGED_PAGE_TYPE_FLAGGED_VIEW_MANAGER, FlaggedPageFlaggedViewManagerClass)) - -typedef struct _FlaggedPageFlaggedViewManager FlaggedPageFlaggedViewManager; -typedef struct _FlaggedPageFlaggedViewManagerClass FlaggedPageFlaggedViewManagerClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; - -#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ()) -#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor)) -#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) -#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) - -typedef struct _ViewCollectionMonitor ViewCollectionMonitor; -typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass; -#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL))) -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -typedef struct _ViewManagerPrivate ViewManagerPrivate; -typedef struct _CollectionViewManagerPrivate CollectionViewManagerPrivate; -typedef struct _FlaggedPageFlaggedViewManagerPrivate FlaggedPageFlaggedViewManagerPrivate; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_FLAGGABLE (flaggable_get_type ()) -#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable)) -#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE)) -#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface)) - -typedef struct _Flaggable Flaggable; -typedef struct _FlaggableIface FlaggableIface; -typedef struct _ViewFilterPrivate ViewFilterPrivate; -typedef struct _SearchViewFilterPrivate SearchViewFilterPrivate; -typedef struct _DefaultSearchViewFilterPrivate DefaultSearchViewFilterPrivate; -typedef struct _CollectionPageCollectionSearchViewFilterPrivate CollectionPageCollectionSearchViewFilterPrivate; -typedef struct _FlaggedPageFlaggedSearchViewFilterPrivate FlaggedPageFlaggedSearchViewFilterPrivate; - -#define TYPE_SEARCH_FILTER_CRITERIA (search_filter_criteria_get_type ()) - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -typedef enum { - CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, - CHECKERBOARD_PAGE_ACTIVATOR_MOUSE -} CheckerboardPageActivator; - -struct _CheckerboardPageKeyboardModifiers { - gboolean ctrl_pressed; - gboolean alt_pressed; - gboolean shift_pressed; - gboolean super_pressed; -}; - -struct _CheckerboardPage { - Page parent_instance; - CheckerboardPagePrivate * priv; - CheckerboardItem* anchor; - CheckerboardItem* cursor; -}; - -struct _CheckerboardPageClass { - PageClass parent_class; - GtkMenu* (*get_item_context_menu) (CheckerboardPage* self); - gchar* (*get_view_empty_message) (CheckerboardPage* self); - gchar* (*get_filter_no_match_message) (CheckerboardPage* self); - void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers); - SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self); - CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self); - gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask); - void (*set_display_titles) (CheckerboardPage* self, gboolean display); - void (*set_display_comments) (CheckerboardPage* self, gboolean display); -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _MediaPage { - CheckerboardPage parent_instance; - MediaPagePrivate * priv; -}; - -struct _MediaPageClass { - CheckerboardPageClass parent_class; - void (*on_zoom_changed) (MediaPage* self); - void (*on_export) (MediaPage* self); - void (*on_increase_size) (MediaPage* self); - void (*on_decrease_size) (MediaPage* self); - void (*on_increase_rating) (MediaPage* self); - void (*on_decrease_rating) (MediaPage* self); - void (*on_set_rating) (MediaPage* self, Rating rating); - void (*on_rate_rejected) (MediaPage* self); - void (*on_rate_unrated) (MediaPage* self); - void (*on_rate_one) (MediaPage* self); - void (*on_rate_two) (MediaPage* self); - void (*on_rate_three) (MediaPage* self); - void (*on_rate_four) (MediaPage* self); - void (*on_rate_five) (MediaPage* self); - void (*on_move_to_trash) (MediaPage* self); - void (*on_edit_title) (MediaPage* self); - void (*on_edit_comment) (MediaPage* self); - void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by); - void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by); - void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*developer_changed) (MediaPage* self, RawDeveloper rd); - DataView* (*create_thumbnail) (MediaPage* self, DataSource* source); -}; - -struct _CollectionPage { - MediaPage parent_instance; - CollectionPagePrivate * priv; -}; - -struct _CollectionPageClass { - MediaPageClass parent_class; -}; - -struct _FlaggedPage { - CollectionPage parent_instance; - FlaggedPagePrivate * priv; -}; - -struct _FlaggedPageClass { - CollectionPageClass parent_class; -}; - -struct _FlaggedPagePrivate { - ViewManager* view_manager; - Alteration* prereq; - FlaggedPageFlaggedSearchViewFilter* search_filter; -}; - -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _ViewManager { - GTypeInstance parent_instance; - volatile int ref_count; - ViewManagerPrivate * priv; -}; - -struct _ViewManagerClass { - GTypeClass parent_class; - void (*finalize) (ViewManager *self); - gboolean (*include_in_view) (ViewManager* self, DataSource* source); - DataView* (*create_view) (ViewManager* self, DataSource* source); -}; - -struct _CollectionViewManager { - ViewManager parent_instance; - CollectionViewManagerPrivate * priv; -}; - -struct _CollectionViewManagerClass { - ViewManagerClass parent_class; -}; - -struct _FlaggedPageFlaggedViewManager { - CollectionViewManager parent_instance; - FlaggedPageFlaggedViewManagerPrivate * priv; -}; - -struct _FlaggedPageFlaggedViewManagerClass { - CollectionViewManagerClass parent_class; -}; - -struct _FlaggableIface { - GTypeInterface parent_iface; - gboolean (*is_flagged) (Flaggable* self); - void (*mark_flagged) (Flaggable* self); - void (*mark_unflagged) (Flaggable* self); -}; - -struct _ViewFilter { - GTypeInstance parent_instance; - volatile int ref_count; - ViewFilterPrivate * priv; -}; - -struct _ViewFilterClass { - GTypeClass parent_class; - void (*finalize) (ViewFilter *self); - gboolean (*predicate) (ViewFilter* self, DataView* view); - void (*refresh) (ViewFilter* self); -}; - -struct _SearchViewFilter { - ViewFilter parent_instance; - SearchViewFilterPrivate * priv; -}; - -struct _SearchViewFilterClass { - ViewFilterClass parent_class; - guint (*get_criteria) (SearchViewFilter* self); -}; - -struct _DefaultSearchViewFilter { - SearchViewFilter parent_instance; - DefaultSearchViewFilterPrivate * priv; -}; - -struct _DefaultSearchViewFilterClass { - SearchViewFilterClass parent_class; -}; - -struct _CollectionPageCollectionSearchViewFilter { - DefaultSearchViewFilter parent_instance; - CollectionPageCollectionSearchViewFilterPrivate * priv; -}; - -struct _CollectionPageCollectionSearchViewFilterClass { - DefaultSearchViewFilterClass parent_class; -}; - -struct _FlaggedPageFlaggedSearchViewFilter { - CollectionPageCollectionSearchViewFilter parent_instance; - FlaggedPageFlaggedSearchViewFilterPrivate * priv; -}; - -struct _FlaggedPageFlaggedSearchViewFilterClass { - CollectionPageCollectionSearchViewFilterClass parent_class; -}; - -typedef enum { - SEARCH_FILTER_CRITERIA_NONE = 0, - SEARCH_FILTER_CRITERIA_RECURSIVE = 1 << 0, - SEARCH_FILTER_CRITERIA_TEXT = 1 << 1, - SEARCH_FILTER_CRITERIA_FLAG = 1 << 2, - SEARCH_FILTER_CRITERIA_MEDIA = 1 << 3, - SEARCH_FILTER_CRITERIA_RATING = 1 << 4, - SEARCH_FILTER_CRITERIA_SAVEDSEARCH = 1 << 5, - SEARCH_FILTER_CRITERIA_ALL = 0xFFFFFFFFLL -} SearchFilterCriteria; - - -static gpointer flagged_page_parent_class = NULL; -static gpointer flagged_page_flagged_view_manager_parent_class = NULL; -static gpointer flagged_page_flagged_search_view_filter_parent_class = NULL; - -GType page_get_type (void) G_GNUC_CONST; -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType checkerboard_page_activator_get_type (void) G_GNUC_CONST; -GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST; -CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self); -void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self); -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -GType search_view_filter_get_type (void) G_GNUC_CONST; -gpointer core_tracker_ref (gpointer instance); -void core_tracker_unref (gpointer instance); -GParamSpec* core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void core_value_set_tracker (GValue* value, - gpointer v_object); -void core_value_take_tracker (GValue* value, - gpointer v_object); -gpointer core_value_get_tracker (const GValue* value); -GType core_tracker_get_type (void) G_GNUC_CONST; -GType core_view_tracker_get_type (void) G_GNUC_CONST; -GType media_page_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -GType raw_developer_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -GType flagged_page_get_type (void) G_GNUC_CONST; -gpointer view_manager_ref (gpointer instance); -void view_manager_unref (gpointer instance); -GParamSpec* param_spec_view_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_manager (GValue* value, - gpointer v_object); -void value_take_view_manager (GValue* value, - gpointer v_object); -gpointer value_get_view_manager (const GValue* value); -GType view_manager_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -GType default_search_view_filter_get_type (void) G_GNUC_CONST; -GType collection_page_collection_search_view_filter_get_type (void) G_GNUC_CONST; -static GType flagged_page_flagged_search_view_filter_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define FLAGGED_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_FLAGGED_PAGE, FlaggedPagePrivate)) -Alteration* alteration_new (const gchar* subject, - const gchar* detail); -Alteration* alteration_construct (GType object_type, - const gchar* subject, - const gchar* detail); -static FlaggedPageFlaggedSearchViewFilter* flagged_page_flagged_search_view_filter_new (void); -static FlaggedPageFlaggedSearchViewFilter* flagged_page_flagged_search_view_filter_construct (GType object_type); -#define FLAGGED_PAGE_NAME _ ("Flagged") -FlaggedPage* flagged_page_new (void); -FlaggedPage* flagged_page_construct (GType object_type); -CollectionPage* collection_page_construct (GType object_type, - const gchar* page_name); -static FlaggedPageFlaggedViewManager* flagged_page_flagged_view_manager_new (FlaggedPage* owner); -static FlaggedPageFlaggedViewManager* flagged_page_flagged_view_manager_construct (GType object_type, - FlaggedPage* owner); -GType collection_view_manager_get_type (void) G_GNUC_CONST; -static GType flagged_page_flagged_view_manager_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self); -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -gpointer view_collection_monitor_ref (gpointer instance); -void view_collection_monitor_unref (gpointer instance); -GParamSpec* view_collection_param_spec_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void view_collection_value_set_monitor (GValue* value, - gpointer v_object); -void view_collection_value_take_monitor (GValue* value, - gpointer v_object); -gpointer view_collection_value_get_monitor (const GValue* value); -GType view_collection_monitor_get_type (void) G_GNUC_CONST; -ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self, - SourceCollection* sources, - ViewManager* manager, - Alteration* prereq, - GeeCollection* initial, - ProgressMonitor progress_monitor, - void* progress_monitor_target); -static void flagged_page_real_get_config_photos_sort (MediaPage* base, - gboolean* sort_order, - gint* sort_by); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -void configuration_facade_get_library_photos_sort (ConfigurationFacade* self, - gboolean* sort_order, - gint* sort_by); -static void flagged_page_real_set_config_photos_sort (MediaPage* base, - gboolean sort_order, - gint sort_by); -void configuration_facade_set_library_photos_sort (ConfigurationFacade* self, - gboolean sort_order, - gint sort_by); -static SearchViewFilter* flagged_page_real_get_search_view_filter (CheckerboardPage* base); -CollectionViewManager* collection_view_manager_new (CollectionPage* page); -CollectionViewManager* collection_view_manager_construct (GType object_type, - CollectionPage* page); -static gboolean flagged_page_flagged_view_manager_real_include_in_view (ViewManager* base, - DataSource* source); -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType flaggable_get_type (void) G_GNUC_CONST; -gboolean flaggable_is_flagged (Flaggable* self); -static guint flagged_page_flagged_search_view_filter_real_get_criteria (SearchViewFilter* base); -GType search_filter_criteria_get_type (void) G_GNUC_CONST; -CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view_filter_new (void); -CollectionPageCollectionSearchViewFilter* collection_page_collection_search_view_filter_construct (GType object_type); -static void flagged_page_finalize (GObject * obj); - - -FlaggedPage* -flagged_page_construct (GType object_type) -{ - FlaggedPage * self = NULL; - FlaggedPageFlaggedViewManager* _tmp0_; -#line 34 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - self = (FlaggedPage*) collection_page_construct (object_type, FLAGGED_PAGE_NAME); -#line 36 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp0_ = flagged_page_flagged_view_manager_new (self); -#line 36 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _view_manager_unref0 (self->priv->view_manager); -#line 36 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - self->priv->view_manager = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIEW_MANAGER, ViewManager); -#line 895 "FlaggedPage.c" - { - GeeIterator* _sources_it = NULL; - MediaCollectionRegistry* _tmp1_; - MediaCollectionRegistry* _tmp2_; - GeeCollection* _tmp3_; - GeeCollection* _tmp4_; - GeeIterator* _tmp5_; - GeeIterator* _tmp6_; -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp1_ = media_collection_registry_get_instance (); -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp2_ = _tmp1_; -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp3_ = media_collection_registry_get_all (_tmp2_); -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp4_ = _tmp3_; -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp6_ = _tmp5_; -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _g_object_unref0 (_tmp4_); -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _media_collection_registry_unref0 (_tmp2_); -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _sources_it = _tmp6_; -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - while (TRUE) { -#line 924 "FlaggedPage.c" - GeeIterator* _tmp7_; - MediaSourceCollection* sources = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; - ViewCollection* _tmp10_; - ViewCollection* _tmp11_; - MediaSourceCollection* _tmp12_; - ViewManager* _tmp13_; - Alteration* _tmp14_; - ViewCollectionMonitor* _tmp15_; - ViewCollectionMonitor* _tmp16_; -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp7_ = _sources_it; -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - if (!gee_iterator_next (_tmp7_)) { -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - break; -#line 942 "FlaggedPage.c" - } -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp8_ = _sources_it; -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp9_ = gee_iterator_get (_tmp8_); -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - sources = (MediaSourceCollection*) _tmp9_; -#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp11_ = _tmp10_; -#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp12_ = sources; -#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp13_ = self->priv->view_manager; -#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp14_ = self->priv->prereq; -#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp15_ = view_collection_monitor_source_collection (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp13_, _tmp14_, NULL, NULL, NULL); -#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp16_ = _tmp15_; -#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _view_collection_monitor_unref0 (_tmp16_); -#line 39 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _data_collection_unref0 (_tmp11_); -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _data_collection_unref0 (sources); -#line 970 "FlaggedPage.c" - } -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _g_object_unref0 (_sources_it); -#line 974 "FlaggedPage.c" - } -#line 33 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - return self; -#line 978 "FlaggedPage.c" -} - - -FlaggedPage* -flagged_page_new (void) -{ -#line 33 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - return flagged_page_construct (TYPE_FLAGGED_PAGE); -#line 987 "FlaggedPage.c" -} - - -static void -flagged_page_real_get_config_photos_sort (MediaPage* base, - gboolean* sort_order, - gint* sort_by) -{ - FlaggedPage * self; - gboolean _vala_sort_order = FALSE; - gint _vala_sort_by = 0; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gboolean _tmp2_ = FALSE; - gint _tmp3_ = 0; -#line 42 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLAGGED_PAGE, FlaggedPage); -#line 43 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 43 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp1_ = _tmp0_; -#line 43 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - configuration_facade_get_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp2_, &_tmp3_); -#line 43 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _vala_sort_order = _tmp2_; -#line 43 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _vala_sort_by = _tmp3_; -#line 43 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _g_object_unref0 (_tmp1_); -#line 42 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - if (sort_order) { -#line 42 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - *sort_order = _vala_sort_order; -#line 1021 "FlaggedPage.c" - } -#line 42 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - if (sort_by) { -#line 42 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - *sort_by = _vala_sort_by; -#line 1027 "FlaggedPage.c" - } -} - - -static void -flagged_page_real_set_config_photos_sort (MediaPage* base, - gboolean sort_order, - gint sort_by) -{ - FlaggedPage * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 46 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLAGGED_PAGE, FlaggedPage); -#line 47 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 47 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp1_ = _tmp0_; -#line 47 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - configuration_facade_set_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), sort_order, sort_by); -#line 47 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _g_object_unref0 (_tmp1_); -#line 1050 "FlaggedPage.c" -} - - -static gpointer -_view_filter_ref0 (gpointer self) -{ -#line 51 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - return self ? view_filter_ref (self) : NULL; -#line 1059 "FlaggedPage.c" -} - - -static SearchViewFilter* -flagged_page_real_get_search_view_filter (CheckerboardPage* base) -{ - FlaggedPage * self; - SearchViewFilter* result = NULL; - FlaggedPageFlaggedSearchViewFilter* _tmp0_; - SearchViewFilter* _tmp1_; -#line 50 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FLAGGED_PAGE, FlaggedPage); -#line 51 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp0_ = self->priv->search_filter; -#line 51 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 51 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - result = _tmp1_; -#line 51 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - return result; -#line 1080 "FlaggedPage.c" -} - - -static FlaggedPageFlaggedViewManager* -flagged_page_flagged_view_manager_construct (GType object_type, - FlaggedPage* owner) -{ - FlaggedPageFlaggedViewManager* self = NULL; -#line 11 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - g_return_val_if_fail (IS_FLAGGED_PAGE (owner), NULL); -#line 12 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - self = (FlaggedPageFlaggedViewManager*) collection_view_manager_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, TYPE_COLLECTION_PAGE, CollectionPage)); -#line 11 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - return self; -#line 1095 "FlaggedPage.c" -} - - -static FlaggedPageFlaggedViewManager* -flagged_page_flagged_view_manager_new (FlaggedPage* owner) -{ -#line 11 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - return flagged_page_flagged_view_manager_construct (FLAGGED_PAGE_TYPE_FLAGGED_VIEW_MANAGER, owner); -#line 1104 "FlaggedPage.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - return self ? g_object_ref (self) : NULL; -#line 1113 "FlaggedPage.c" -} - - -static gboolean -flagged_page_flagged_view_manager_real_include_in_view (ViewManager* base, - DataSource* source) -{ - FlaggedPageFlaggedViewManager * self; - gboolean result = FALSE; - Flaggable* flaggable = NULL; - Flaggable* _tmp0_; - gboolean _tmp1_ = FALSE; - Flaggable* _tmp2_; -#line 15 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, FLAGGED_PAGE_TYPE_FLAGGED_VIEW_MANAGER, FlaggedPageFlaggedViewManager); -#line 15 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_FLAGGABLE) ? ((Flaggable*) source) : NULL); -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - flaggable = _tmp0_; -#line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp2_ = flaggable; -#line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - if (_tmp2_ != NULL) { -#line 1139 "FlaggedPage.c" - Flaggable* _tmp3_; -#line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp3_ = flaggable; -#line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp1_ = flaggable_is_flagged (_tmp3_); -#line 1145 "FlaggedPage.c" - } else { -#line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp1_ = FALSE; -#line 1149 "FlaggedPage.c" - } -#line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - result = _tmp1_; -#line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _g_object_unref0 (flaggable); -#line 18 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - return result; -#line 1157 "FlaggedPage.c" -} - - -static void -flagged_page_flagged_view_manager_class_init (FlaggedPageFlaggedViewManagerClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - flagged_page_flagged_view_manager_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - ((ViewManagerClass *) klass)->include_in_view = (gboolean (*) (ViewManager *, DataSource*)) flagged_page_flagged_view_manager_real_include_in_view; -#line 1168 "FlaggedPage.c" -} - - -static void -flagged_page_flagged_view_manager_instance_init (FlaggedPageFlaggedViewManager * self) -{ -} - - -static GType -flagged_page_flagged_view_manager_get_type (void) -{ - static volatile gsize flagged_page_flagged_view_manager_type_id__volatile = 0; - if (g_once_init_enter (&flagged_page_flagged_view_manager_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FlaggedPageFlaggedViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) flagged_page_flagged_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FlaggedPageFlaggedViewManager), 0, (GInstanceInitFunc) flagged_page_flagged_view_manager_instance_init, NULL }; - GType flagged_page_flagged_view_manager_type_id; - flagged_page_flagged_view_manager_type_id = g_type_register_static (TYPE_COLLECTION_VIEW_MANAGER, "FlaggedPageFlaggedViewManager", &g_define_type_info, 0); - g_once_init_leave (&flagged_page_flagged_view_manager_type_id__volatile, flagged_page_flagged_view_manager_type_id); - } - return flagged_page_flagged_view_manager_type_id__volatile; -} - - -static guint -flagged_page_flagged_search_view_filter_real_get_criteria (SearchViewFilter* base) -{ - FlaggedPageFlaggedSearchViewFilter * self; - guint result = 0U; -#line 23 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, FLAGGED_PAGE_TYPE_FLAGGED_SEARCH_VIEW_FILTER, FlaggedPageFlaggedSearchViewFilter); -#line 24 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - result = (guint) (((SEARCH_FILTER_CRITERIA_TEXT | SEARCH_FILTER_CRITERIA_MEDIA) | SEARCH_FILTER_CRITERIA_RATING) | SEARCH_FILTER_CRITERIA_SAVEDSEARCH); -#line 24 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - return result; -#line 1203 "FlaggedPage.c" -} - - -static FlaggedPageFlaggedSearchViewFilter* -flagged_page_flagged_search_view_filter_construct (GType object_type) -{ - FlaggedPageFlaggedSearchViewFilter* self = NULL; -#line 22 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - self = (FlaggedPageFlaggedSearchViewFilter*) collection_page_collection_search_view_filter_construct (object_type); -#line 22 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - return self; -#line 1215 "FlaggedPage.c" -} - - -static FlaggedPageFlaggedSearchViewFilter* -flagged_page_flagged_search_view_filter_new (void) -{ -#line 22 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - return flagged_page_flagged_search_view_filter_construct (FLAGGED_PAGE_TYPE_FLAGGED_SEARCH_VIEW_FILTER); -#line 1224 "FlaggedPage.c" -} - - -static void -flagged_page_flagged_search_view_filter_class_init (FlaggedPageFlaggedSearchViewFilterClass * klass) -{ -#line 22 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - flagged_page_flagged_search_view_filter_parent_class = g_type_class_peek_parent (klass); -#line 22 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - ((SearchViewFilterClass *) klass)->get_criteria = (guint (*) (SearchViewFilter *)) flagged_page_flagged_search_view_filter_real_get_criteria; -#line 1235 "FlaggedPage.c" -} - - -static void -flagged_page_flagged_search_view_filter_instance_init (FlaggedPageFlaggedSearchViewFilter * self) -{ -} - - -static GType -flagged_page_flagged_search_view_filter_get_type (void) -{ - static volatile gsize flagged_page_flagged_search_view_filter_type_id__volatile = 0; - if (g_once_init_enter (&flagged_page_flagged_search_view_filter_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FlaggedPageFlaggedSearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) flagged_page_flagged_search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FlaggedPageFlaggedSearchViewFilter), 0, (GInstanceInitFunc) flagged_page_flagged_search_view_filter_instance_init, NULL }; - GType flagged_page_flagged_search_view_filter_type_id; - flagged_page_flagged_search_view_filter_type_id = g_type_register_static (COLLECTION_PAGE_TYPE_COLLECTION_SEARCH_VIEW_FILTER, "FlaggedPageFlaggedSearchViewFilter", &g_define_type_info, 0); - g_once_init_leave (&flagged_page_flagged_search_view_filter_type_id__volatile, flagged_page_flagged_search_view_filter_type_id); - } - return flagged_page_flagged_search_view_filter_type_id__volatile; -} - - -static void -flagged_page_class_init (FlaggedPageClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - flagged_page_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - g_type_class_add_private (klass, sizeof (FlaggedPagePrivate)); -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) flagged_page_real_get_config_photos_sort; -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) flagged_page_real_set_config_photos_sort; -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - ((CheckerboardPageClass *) klass)->get_search_view_filter = (SearchViewFilter* (*) (CheckerboardPage *)) flagged_page_real_get_search_view_filter; -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - G_OBJECT_CLASS (klass)->finalize = flagged_page_finalize; -#line 1274 "FlaggedPage.c" -} - - -static void -flagged_page_instance_init (FlaggedPage * self) -{ - Alteration* _tmp0_; - FlaggedPageFlaggedSearchViewFilter* _tmp1_; -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - self->priv = FLAGGED_PAGE_GET_PRIVATE (self); -#line 30 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp0_ = alteration_new ("metadata", "flagged"); -#line 30 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - self->priv->prereq = _tmp0_; -#line 31 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _tmp1_ = flagged_page_flagged_search_view_filter_new (); -#line 31 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - self->priv->search_filter = _tmp1_; -#line 1293 "FlaggedPage.c" -} - - -static void -flagged_page_finalize (GObject * obj) -{ - FlaggedPage * self; -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FLAGGED_PAGE, FlaggedPage); -#line 29 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _view_manager_unref0 (self->priv->view_manager); -#line 30 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _alteration_unref0 (self->priv->prereq); -#line 31 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - _view_filter_unref0 (self->priv->search_filter); -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedPage.vala" - G_OBJECT_CLASS (flagged_page_parent_class)->finalize (obj); -#line 1311 "FlaggedPage.c" -} - - -GType -flagged_page_get_type (void) -{ - static volatile gsize flagged_page_type_id__volatile = 0; - if (g_once_init_enter (&flagged_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (FlaggedPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) flagged_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FlaggedPage), 0, (GInstanceInitFunc) flagged_page_instance_init, NULL }; - GType flagged_page_type_id; - flagged_page_type_id = g_type_register_static (TYPE_COLLECTION_PAGE, "FlaggedPage", &g_define_type_info, 0); - g_once_init_leave (&flagged_page_type_id__volatile, flagged_page_type_id); - } - return flagged_page_type_id__volatile; -} - - - diff --git a/src/library/FlaggedSidebarEntry.c b/src/library/FlaggedSidebarEntry.c deleted file mode 100644 index b42df00..0000000 --- a/src/library/FlaggedSidebarEntry.c +++ /dev/null @@ -1,906 +0,0 @@ -/* FlaggedSidebarEntry.c generated by valac 0.40.4, the Vala compiler - * generated from FlaggedSidebarEntry.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ()) -#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry)) -#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY)) -#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface)) - -typedef struct _SidebarEntry SidebarEntry; -typedef struct _SidebarEntryIface SidebarEntryIface; - -#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ()) -#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree)) -#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass)) -#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass)) - -typedef struct _SidebarTree SidebarTree; -typedef struct _SidebarTreeClass SidebarTreeClass; - -#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ()) -#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry)) -#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY)) -#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface)) - -typedef struct _SidebarSelectableEntry SidebarSelectableEntry; -typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface; - -#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ()) -#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)) -#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE)) -#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface)) - -typedef struct _SidebarPageRepresentative SidebarPageRepresentative; -typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ()) -#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable)) -#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE)) -#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface)) - -typedef struct _SidebarContextable SidebarContextable; -typedef struct _SidebarContextableIface SidebarContextableIface; - -#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ()) -#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) - -typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry; -typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass; -typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate; - -#define LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY (library_hideable_page_entry_get_type ()) -#define LIBRARY_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry)) -#define LIBRARY_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass)) -#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY)) -#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY)) -#define LIBRARY_HIDEABLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass)) - -typedef struct _LibraryHideablePageEntry LibraryHideablePageEntry; -typedef struct _LibraryHideablePageEntryClass LibraryHideablePageEntryClass; -typedef struct _LibraryHideablePageEntryPrivate LibraryHideablePageEntryPrivate; - -#define SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY (sidebar_internal_drop_target_entry_get_type ()) -#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntry)) -#define SIDEBAR_IS_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY)) -#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntryIface)) - -typedef struct _SidebarInternalDropTargetEntry SidebarInternalDropTargetEntry; -typedef struct _SidebarInternalDropTargetEntryIface SidebarInternalDropTargetEntryIface; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY (library_flagged_sidebar_entry_get_type ()) -#define LIBRARY_FLAGGED_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntry)) -#define LIBRARY_FLAGGED_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntryClass)) -#define LIBRARY_IS_FLAGGED_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY)) -#define LIBRARY_IS_FLAGGED_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY)) -#define LIBRARY_FLAGGED_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntryClass)) - -typedef struct _LibraryFlaggedSidebarEntry LibraryFlaggedSidebarEntry; -typedef struct _LibraryFlaggedSidebarEntryClass LibraryFlaggedSidebarEntryClass; -typedef struct _LibraryFlaggedSidebarEntryPrivate LibraryFlaggedSidebarEntryPrivate; -enum { - LIBRARY_FLAGGED_SIDEBAR_ENTRY_0_PROPERTY, - LIBRARY_FLAGGED_SIDEBAR_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* library_flagged_sidebar_entry_properties[LIBRARY_FLAGGED_SIDEBAR_ENTRY_NUM_PROPERTIES]; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; - -#define TYPE_FLAGGED_PAGE (flagged_page_get_type ()) -#define FLAGGED_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGED_PAGE, FlaggedPage)) -#define FLAGGED_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLAGGED_PAGE, FlaggedPageClass)) -#define IS_FLAGGED_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGED_PAGE)) -#define IS_FLAGGED_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLAGGED_PAGE)) -#define FLAGGED_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLAGGED_PAGE, FlaggedPageClass)) - -typedef struct _FlaggedPage FlaggedPage; -typedef struct _FlaggedPageClass FlaggedPageClass; - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; - -#define TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND (multiple_data_source_at_once_command_get_type ()) -#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommand)) -#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass)) -#define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND)) -#define IS_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND)) -#define MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MULTIPLE_DATA_SOURCE_AT_ONCE_COMMAND, MultipleDataSourceAtOnceCommandClass)) - -typedef struct _MultipleDataSourceAtOnceCommand MultipleDataSourceAtOnceCommand; -typedef struct _MultipleDataSourceAtOnceCommandClass MultipleDataSourceAtOnceCommandClass; - -#define TYPE_FLAG_UNFLAG_COMMAND (flag_unflag_command_get_type ()) -#define FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommand)) -#define FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass)) -#define IS_FLAG_UNFLAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAG_UNFLAG_COMMAND)) -#define IS_FLAG_UNFLAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLAG_UNFLAG_COMMAND)) -#define FLAG_UNFLAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLAG_UNFLAG_COMMAND, FlagUnflagCommandClass)) - -typedef struct _FlagUnflagCommand FlagUnflagCommand; -typedef struct _FlagUnflagCommandClass FlagUnflagCommandClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) - -struct _SidebarEntryIface { - GTypeInterface parent_iface; - gchar* (*get_sidebar_name) (SidebarEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarEntry* self); - gchar* (*get_sidebar_icon) (SidebarEntry* self); - gchar* (*to_string) (SidebarEntry* self); - void (*grafted) (SidebarEntry* self, SidebarTree* tree); - void (*pruned) (SidebarEntry* self, SidebarTree* tree); -}; - -struct _SidebarSelectableEntryIface { - GTypeInterface parent_iface; -}; - -struct _SidebarPageRepresentativeIface { - GTypeInterface parent_iface; - gboolean (*has_page) (SidebarPageRepresentative* self); - Page* (*get_page) (SidebarPageRepresentative* self); -}; - -struct _SidebarContextableIface { - GTypeInterface parent_iface; - GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event); -}; - -struct _SidebarSimplePageEntry { - GObject parent_instance; - SidebarSimplePageEntryPrivate * priv; -}; - -struct _SidebarSimplePageEntryClass { - GObjectClass parent_class; - gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self); - gchar* (*to_string) (SidebarSimplePageEntry* self); - Page* (*create_page) (SidebarSimplePageEntry* self); -}; - -struct _LibraryHideablePageEntry { - SidebarSimplePageEntry parent_instance; - LibraryHideablePageEntryPrivate * priv; -}; - -struct _LibraryHideablePageEntryClass { - SidebarSimplePageEntryClass parent_class; -}; - -struct _SidebarInternalDropTargetEntryIface { - GTypeInterface parent_iface; - gboolean (*internal_drop_received) (SidebarInternalDropTargetEntry* self, GeeList* sources); - gboolean (*internal_drop_received_arbitrary) (SidebarInternalDropTargetEntry* self, GtkSelectionData* data); -}; - -struct _LibraryFlaggedSidebarEntry { - LibraryHideablePageEntry parent_instance; - LibraryFlaggedSidebarEntryPrivate * priv; -}; - -struct _LibraryFlaggedSidebarEntryClass { - LibraryHideablePageEntryClass parent_class; -}; - - -static gpointer library_flagged_sidebar_entry_parent_class = NULL; -static SidebarInternalDropTargetEntryIface * library_flagged_sidebar_entry_sidebar_internal_drop_target_entry_parent_iface = NULL; - -GType sidebar_tree_get_type (void) G_GNUC_CONST; -GType sidebar_entry_get_type (void) G_GNUC_CONST; -GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType sidebar_page_representative_get_type (void) G_GNUC_CONST; -GType sidebar_contextable_get_type (void) G_GNUC_CONST; -GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST; -GType library_hideable_page_entry_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType sidebar_internal_drop_target_entry_get_type (void) G_GNUC_CONST; -GType library_flagged_sidebar_entry_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self); -static void library_flagged_sidebar_entry_on_flagged_contents_altered (LibraryFlaggedSidebarEntry* self); -static void _library_flagged_sidebar_entry_on_flagged_contents_altered_media_source_collection_flagged_contents_altered (MediaSourceCollection* _sender, - gpointer self); -LibraryFlaggedSidebarEntry* library_flagged_sidebar_entry_new (void); -LibraryFlaggedSidebarEntry* library_flagged_sidebar_entry_construct (GType object_type); -LibraryHideablePageEntry* library_hideable_page_entry_construct (GType object_type); -static gint library_flagged_sidebar_entry_get_total_flagged (LibraryFlaggedSidebarEntry* self); -void library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self, - gboolean value); -static gchar* library_flagged_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base); -#define FLAGGED_PAGE_NAME _ ("Flagged") -static gchar* library_flagged_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base); -#define RESOURCES_ICON_FLAGGED_PAGE "flag-page" -static Page* library_flagged_sidebar_entry_real_create_page (SidebarSimplePageEntry* base); -FlaggedPage* flagged_page_new (void); -FlaggedPage* flagged_page_construct (GType object_type); -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType media_page_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -GType flagged_page_get_type (void) G_GNUC_CONST; -static gboolean library_flagged_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base, - GeeList* media); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* app_window_get_command_manager (void); -GType command_get_type (void) G_GNUC_CONST; -void command_manager_execute (CommandManager* self, - Command* command); -FlagUnflagCommand* flag_unflag_command_new (GeeCollection* sources, - gboolean flag); -FlagUnflagCommand* flag_unflag_command_construct (GType object_type, - GeeCollection* sources, - gboolean flag); -GType page_command_get_type (void) G_GNUC_CONST; -GType multiple_data_source_at_once_command_get_type (void) G_GNUC_CONST; -GType flag_unflag_command_get_type (void) G_GNUC_CONST; -static gboolean library_flagged_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, - GtkSelectionData* data); -GeeCollection* media_source_collection_get_flagged (MediaSourceCollection* self); -static void library_flagged_sidebar_entry_finalize (GObject * obj); - - -static void -_library_flagged_sidebar_entry_on_flagged_contents_altered_media_source_collection_flagged_contents_altered (MediaSourceCollection* _sender, - gpointer self) -{ -#line 17 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - library_flagged_sidebar_entry_on_flagged_contents_altered ((LibraryFlaggedSidebarEntry*) self); -#line 475 "FlaggedSidebarEntry.c" -} - - -LibraryFlaggedSidebarEntry* -library_flagged_sidebar_entry_construct (GType object_type) -{ - LibraryFlaggedSidebarEntry * self = NULL; -#line 8 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - self = (LibraryFlaggedSidebarEntry*) library_hideable_page_entry_construct (object_type); -#line 485 "FlaggedSidebarEntry.c" - { - GeeIterator* _media_sources_it = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp2_ = media_collection_registry_get_all (_tmp1_); -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp3_ = _tmp2_; -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp5_ = _tmp4_; -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _g_object_unref0 (_tmp3_); -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _media_sources_it = _tmp5_; -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - while (TRUE) { -#line 514 "FlaggedSidebarEntry.c" - GeeIterator* _tmp6_; - MediaSourceCollection* media_sources = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - MediaSourceCollection* _tmp9_; -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp6_ = _media_sources_it; -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - break; -#line 526 "FlaggedSidebarEntry.c" - } -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp7_ = _media_sources_it; -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - media_sources = (MediaSourceCollection*) _tmp8_; -#line 10 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp9_ = media_sources; -#line 10 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - g_signal_connect_object (_tmp9_, "flagged-contents-altered", (GCallback) _library_flagged_sidebar_entry_on_flagged_contents_altered_media_source_collection_flagged_contents_altered, self, 0); -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _data_collection_unref0 (media_sources); -#line 540 "FlaggedSidebarEntry.c" - } -#line 9 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _g_object_unref0 (_media_sources_it); -#line 544 "FlaggedSidebarEntry.c" - } -#line 12 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), library_flagged_sidebar_entry_get_total_flagged (self) != 0); -#line 8 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - return self; -#line 550 "FlaggedSidebarEntry.c" -} - - -LibraryFlaggedSidebarEntry* -library_flagged_sidebar_entry_new (void) -{ -#line 8 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - return library_flagged_sidebar_entry_construct (LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY); -#line 559 "FlaggedSidebarEntry.c" -} - - -static gchar* -library_flagged_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) -{ - LibraryFlaggedSidebarEntry * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 20 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntry); -#line 21 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp0_ = g_strdup (FLAGGED_PAGE_NAME); -#line 21 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - result = _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - return result; -#line 577 "FlaggedSidebarEntry.c" -} - - -static gchar* -library_flagged_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) -{ - LibraryFlaggedSidebarEntry * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 24 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntry); -#line 25 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp0_ = g_strdup (RESOURCES_ICON_FLAGGED_PAGE); -#line 25 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - result = _tmp0_; -#line 25 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - return result; -#line 595 "FlaggedSidebarEntry.c" -} - - -static Page* -library_flagged_sidebar_entry_real_create_page (SidebarSimplePageEntry* base) -{ - LibraryFlaggedSidebarEntry * self; - Page* result = NULL; - FlaggedPage* _tmp0_; -#line 28 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntry); -#line 29 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp0_ = flagged_page_new (); -#line 29 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - g_object_ref_sink (_tmp0_); -#line 29 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page); -#line 29 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - return result; -#line 615 "FlaggedSidebarEntry.c" -} - - -static gboolean -library_flagged_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base, - GeeList* media) -{ - LibraryFlaggedSidebarEntry * self; - gboolean result = FALSE; - CommandManager* _tmp0_; - CommandManager* _tmp1_; - FlagUnflagCommand* _tmp2_; - FlagUnflagCommand* _tmp3_; -#line 32 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntry); -#line 32 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - g_return_val_if_fail (GEE_IS_LIST (media), FALSE); -#line 33 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp0_ = app_window_get_command_manager (); -#line 33 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 33 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp2_ = flag_unflag_command_new (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_COLLECTION, GeeCollection), TRUE); -#line 33 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp3_ = _tmp2_; -#line 33 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - command_manager_execute (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_COMMAND, Command)); -#line 33 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _g_object_unref0 (_tmp3_); -#line 33 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _command_manager_unref0 (_tmp1_); -#line 35 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - result = TRUE; -#line 35 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - return result; -#line 651 "FlaggedSidebarEntry.c" -} - - -static gboolean -library_flagged_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, - GtkSelectionData* data) -{ - LibraryFlaggedSidebarEntry * self; - gboolean result = FALSE; -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntry); -#line 38 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - g_return_val_if_fail (data != NULL, FALSE); -#line 39 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - result = FALSE; -#line 39 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - return result; -#line 669 "FlaggedSidebarEntry.c" -} - - -static void -library_flagged_sidebar_entry_on_flagged_contents_altered (LibraryFlaggedSidebarEntry* self) -{ -#line 42 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - g_return_if_fail (LIBRARY_IS_FLAGGED_SIDEBAR_ENTRY (self)); -#line 43 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), library_flagged_sidebar_entry_get_total_flagged (self) != 0); -#line 680 "FlaggedSidebarEntry.c" -} - - -static gint -library_flagged_sidebar_entry_get_total_flagged (LibraryFlaggedSidebarEntry* self) -{ - gint result = 0; - gint total = 0; -#line 46 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - g_return_val_if_fail (LIBRARY_IS_FLAGGED_SIDEBAR_ENTRY (self), 0); -#line 47 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - total = 0; -#line 693 "FlaggedSidebarEntry.c" - { - GeeIterator* _media_sources_it = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp2_ = media_collection_registry_get_all (_tmp1_); -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp3_ = _tmp2_; -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp5_ = _tmp4_; -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _g_object_unref0 (_tmp3_); -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _media_sources_it = _tmp5_; -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - while (TRUE) { -#line 722 "FlaggedSidebarEntry.c" - GeeIterator* _tmp6_; - MediaSourceCollection* media_sources = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - gint _tmp9_; - MediaSourceCollection* _tmp10_; - GeeCollection* _tmp11_; - GeeCollection* _tmp12_; - gint _tmp13_; - gint _tmp14_; -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp6_ = _media_sources_it; -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - break; -#line 739 "FlaggedSidebarEntry.c" - } -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp7_ = _media_sources_it; -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - media_sources = (MediaSourceCollection*) _tmp8_; -#line 49 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp9_ = total; -#line 49 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp10_ = media_sources; -#line 49 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp11_ = media_source_collection_get_flagged (_tmp10_); -#line 49 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp12_ = _tmp11_; -#line 49 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp13_ = gee_collection_get_size (_tmp12_); -#line 49 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp14_ = _tmp13_; -#line 49 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - total = _tmp9_ + _tmp14_; -#line 49 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _g_object_unref0 (_tmp12_); -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _data_collection_unref0 (media_sources); -#line 765 "FlaggedSidebarEntry.c" - } -#line 48 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _g_object_unref0 (_media_sources_it); -#line 769 "FlaggedSidebarEntry.c" - } -#line 51 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - result = total; -#line 51 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - return result; -#line 775 "FlaggedSidebarEntry.c" -} - - -static void -library_flagged_sidebar_entry_class_init (LibraryFlaggedSidebarEntryClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - library_flagged_sidebar_entry_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) library_flagged_sidebar_entry_real_get_sidebar_name; -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) library_flagged_sidebar_entry_real_get_sidebar_icon; -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) library_flagged_sidebar_entry_real_create_page; -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - G_OBJECT_CLASS (klass)->finalize = library_flagged_sidebar_entry_finalize; -#line 792 "FlaggedSidebarEntry.c" -} - - -static void -library_flagged_sidebar_entry_sidebar_internal_drop_target_entry_interface_init (SidebarInternalDropTargetEntryIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - library_flagged_sidebar_entry_sidebar_internal_drop_target_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - iface->internal_drop_received = (gboolean (*) (SidebarInternalDropTargetEntry *, GeeList*)) library_flagged_sidebar_entry_real_internal_drop_received; -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - iface->internal_drop_received_arbitrary = (gboolean (*) (SidebarInternalDropTargetEntry *, GtkSelectionData*)) library_flagged_sidebar_entry_real_internal_drop_received_arbitrary; -#line 805 "FlaggedSidebarEntry.c" -} - - -static void -library_flagged_sidebar_entry_instance_init (LibraryFlaggedSidebarEntry * self) -{ -} - - -static void -library_flagged_sidebar_entry_finalize (GObject * obj) -{ - LibraryFlaggedSidebarEntry * self; -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntry); -#line 821 "FlaggedSidebarEntry.c" - { - GeeIterator* _media_sources_it = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp2_ = media_collection_registry_get_all (_tmp1_); -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp3_ = _tmp2_; -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp5_ = _tmp4_; -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _g_object_unref0 (_tmp3_); -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _media_sources_it = _tmp5_; -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - while (TRUE) { -#line 850 "FlaggedSidebarEntry.c" - GeeIterator* _tmp6_; - MediaSourceCollection* media_sources = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - MediaSourceCollection* _tmp9_; - guint _tmp10_; -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp6_ = _media_sources_it; -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - break; -#line 863 "FlaggedSidebarEntry.c" - } -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp7_ = _media_sources_it; -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - media_sources = (MediaSourceCollection*) _tmp8_; -#line 17 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _tmp9_ = media_sources; -#line 17 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - g_signal_parse_name ("flagged-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp10_, NULL, FALSE); -#line 17 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _library_flagged_sidebar_entry_on_flagged_contents_altered_media_source_collection_flagged_contents_altered, self); -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _data_collection_unref0 (media_sources); -#line 879 "FlaggedSidebarEntry.c" - } -#line 16 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - _g_object_unref0 (_media_sources_it); -#line 883 "FlaggedSidebarEntry.c" - } -#line 7 "/home/jens/Source/shotwell/src/library/FlaggedSidebarEntry.vala" - G_OBJECT_CLASS (library_flagged_sidebar_entry_parent_class)->finalize (obj); -#line 887 "FlaggedSidebarEntry.c" -} - - -GType -library_flagged_sidebar_entry_get_type (void) -{ - static volatile gsize library_flagged_sidebar_entry_type_id__volatile = 0; - if (g_once_init_enter (&library_flagged_sidebar_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryFlaggedSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_flagged_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryFlaggedSidebarEntry), 0, (GInstanceInitFunc) library_flagged_sidebar_entry_instance_init, NULL }; - static const GInterfaceInfo sidebar_internal_drop_target_entry_info = { (GInterfaceInitFunc) library_flagged_sidebar_entry_sidebar_internal_drop_target_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType library_flagged_sidebar_entry_type_id; - library_flagged_sidebar_entry_type_id = g_type_register_static (LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, "LibraryFlaggedSidebarEntry", &g_define_type_info, 0); - g_type_add_interface_static (library_flagged_sidebar_entry_type_id, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, &sidebar_internal_drop_target_entry_info); - g_once_init_leave (&library_flagged_sidebar_entry_type_id__volatile, library_flagged_sidebar_entry_type_id); - } - return library_flagged_sidebar_entry_type_id__volatile; -} - - - diff --git a/src/library/FlaggedSidebarEntry.vala b/src/library/FlaggedSidebarEntry.vala index e94e695..11b4f3e 100644 --- a/src/library/FlaggedSidebarEntry.vala +++ b/src/library/FlaggedSidebarEntry.vala @@ -22,7 +22,7 @@ public class Library.FlaggedSidebarEntry : Library.HideablePageEntry, Sidebar.In } public override string? get_sidebar_icon() { - return Resources.ICON_FLAGGED_PAGE; + return "filter-flagged-symbolic"; } protected override Page create_page() { diff --git a/src/library/ImportQueuePage.c b/src/library/ImportQueuePage.c deleted file mode 100644 index df6b6a0..0000000 --- a/src/library/ImportQueuePage.c +++ /dev/null @@ -1,1573 +0,0 @@ -/* ImportQueuePage.c generated by valac 0.40.4, the Vala compiler - * generated from ImportQueuePage.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; - -#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ()) -#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)) -#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) -#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE)) -#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE)) -#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) - -typedef struct _SinglePhotoPage SinglePhotoPage; -typedef struct _SinglePhotoPageClass SinglePhotoPageClass; -typedef struct _SinglePhotoPagePrivate SinglePhotoPagePrivate; - -#define TYPE_ZOOM_BUFFER (zoom_buffer_get_type ()) -#define ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ZOOM_BUFFER, ZoomBuffer)) -#define ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ZOOM_BUFFER, ZoomBufferClass)) -#define IS_ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ZOOM_BUFFER)) -#define IS_ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ZOOM_BUFFER)) -#define ZOOM_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ZOOM_BUFFER, ZoomBufferClass)) - -typedef struct _ZoomBuffer ZoomBuffer; -typedef struct _ZoomBufferClass ZoomBufferClass; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define SINGLE_PHOTO_PAGE_TYPE_UPDATE_REASON (single_photo_page_update_reason_get_type ()) - -#define TYPE_IMPORT_QUEUE_PAGE (import_queue_page_get_type ()) -#define IMPORT_QUEUE_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_QUEUE_PAGE, ImportQueuePage)) -#define IMPORT_QUEUE_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_QUEUE_PAGE, ImportQueuePageClass)) -#define IS_IMPORT_QUEUE_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_QUEUE_PAGE)) -#define IS_IMPORT_QUEUE_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_QUEUE_PAGE)) -#define IMPORT_QUEUE_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_QUEUE_PAGE, ImportQueuePageClass)) - -typedef struct _ImportQueuePage ImportQueuePage; -typedef struct _ImportQueuePageClass ImportQueuePageClass; -typedef struct _ImportQueuePagePrivate ImportQueuePagePrivate; - -#define TYPE_BATCH_IMPORT (batch_import_get_type ()) -#define BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT, BatchImport)) -#define BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT, BatchImportClass)) -#define IS_BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT)) -#define IS_BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT)) -#define BATCH_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT, BatchImportClass)) - -typedef struct _BatchImport BatchImport; -typedef struct _BatchImportClass BatchImportClass; -enum { - IMPORT_QUEUE_PAGE_0_PROPERTY, - IMPORT_QUEUE_PAGE_NUM_PROPERTIES -}; -static GParamSpec* import_queue_page_properties[IMPORT_QUEUE_PAGE_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_IMPORT_MANIFEST (import_manifest_get_type ()) -#define IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_MANIFEST, ImportManifest)) -#define IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_MANIFEST, ImportManifestClass)) -#define IS_IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_MANIFEST)) -#define IS_IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_MANIFEST)) -#define IMPORT_MANIFEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_MANIFEST, ImportManifestClass)) - -typedef struct _ImportManifest ImportManifest; -typedef struct _ImportManifestClass ImportManifestClass; - -#define TYPE_BATCH_IMPORT_ROLL (batch_import_roll_get_type ()) -#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll)) -#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass)) -#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL)) -#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL)) -#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass)) - -typedef struct _BatchImportRoll BatchImportRoll; -typedef struct _BatchImportRollClass BatchImportRollClass; - -#define TYPE_IMPORT_RESULT (import_result_get_type ()) - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_DIRECTION (direction_get_type ()) - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; - -#define TYPE_PHOTO_VIEW (photo_view_get_type ()) -#define PHOTO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_VIEW, PhotoView)) -#define PHOTO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_VIEW, PhotoViewClass)) -#define IS_PHOTO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_VIEW)) -#define IS_PHOTO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_VIEW)) -#define PHOTO_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_VIEW, PhotoViewClass)) - -typedef struct _PhotoView PhotoView; -typedef struct _PhotoViewClass PhotoViewClass; - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; - -#define TYPE_VIDEO_VIEW (video_view_get_type ()) -#define VIDEO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_VIEW, VideoView)) -#define VIDEO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_VIEW, VideoViewClass)) -#define IS_VIDEO_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_VIEW)) -#define IS_VIDEO_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_VIEW)) -#define VIDEO_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_VIEW, VideoViewClass)) - -typedef struct _VideoView VideoView; -typedef struct _VideoViewClass VideoViewClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -enum { - IMPORT_QUEUE_PAGE_BATCH_ADDED_SIGNAL, - IMPORT_QUEUE_PAGE_BATCH_REMOVED_SIGNAL, - IMPORT_QUEUE_PAGE_NUM_SIGNALS -}; -static guint import_queue_page_signals[IMPORT_QUEUE_PAGE_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -typedef enum { - SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF, - SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT, - SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS -} SinglePhotoPageUpdateReason; - -struct _SinglePhotoPage { - Page parent_instance; - SinglePhotoPagePrivate * priv; - GtkDrawingArea* canvas; - GtkViewport* viewport; -}; - -struct _SinglePhotoPageClass { - PageClass parent_class; - gboolean (*is_zoom_supported) (SinglePhotoPage* self); - void (*cancel_zoom) (SinglePhotoPage* self); - void (*save_zoom_state) (SinglePhotoPage* self); - void (*restore_zoom_state) (SinglePhotoPage* self); - ZoomBuffer* (*get_zoom_buffer) (SinglePhotoPage* self); - void (*new_surface) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim); - void (*updated_pixbuf) (SinglePhotoPage* self, GdkPixbuf* pixbuf, SinglePhotoPageUpdateReason reason, Dimensions* old_dim); - void (*paint) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim); - void (*on_previous_photo) (SinglePhotoPage* self); - void (*on_next_photo) (SinglePhotoPage* self); -}; - -struct _ImportQueuePage { - SinglePhotoPage parent_instance; - ImportQueuePagePrivate * priv; -}; - -struct _ImportQueuePageClass { - SinglePhotoPageClass parent_class; -}; - -struct _ImportQueuePagePrivate { - GeeArrayList* queue; - GeeHashSet* cancel_unallowed; - BatchImport* current_batch; - GtkProgressBar* progress_bar; - gboolean stopped; -}; - -typedef enum { - IMPORT_RESULT_SUCCESS, - IMPORT_RESULT_FILE_ERROR, - IMPORT_RESULT_DECODE_ERROR, - IMPORT_RESULT_DATABASE_ERROR, - IMPORT_RESULT_USER_ABORT, - IMPORT_RESULT_NOT_A_FILE, - IMPORT_RESULT_PHOTO_EXISTS, - IMPORT_RESULT_UNSUPPORTED_FORMAT, - IMPORT_RESULT_NOT_AN_IMAGE, - IMPORT_RESULT_DISK_FAILURE, - IMPORT_RESULT_DISK_FULL, - IMPORT_RESULT_CAMERA_ERROR, - IMPORT_RESULT_FILE_WRITE_ERROR, - IMPORT_RESULT_PIXBUF_CORRUPT_IMAGE -} ImportResult; - -typedef enum { - DIRECTION_FORWARD, - DIRECTION_BACKWARD -} Direction; - - -static gpointer import_queue_page_parent_class = NULL; - -GType page_get_type (void) G_GNUC_CONST; -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType single_photo_page_get_type (void) G_GNUC_CONST; -GType zoom_buffer_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType single_photo_page_update_reason_get_type (void) G_GNUC_CONST; -GType import_queue_page_get_type (void) G_GNUC_CONST; -GType batch_import_get_type (void) G_GNUC_CONST; -#define IMPORT_QUEUE_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_IMPORT_QUEUE_PAGE, ImportQueuePagePrivate)) -#define IMPORT_QUEUE_PAGE_NAME _ ("Importing…") -static void import_queue_page_on_stop (ImportQueuePage* self); -static void _import_queue_page_on_stop_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -ImportQueuePage* import_queue_page_new (void); -ImportQueuePage* import_queue_page_construct (GType object_type); -SinglePhotoPage* single_photo_page_construct (GType object_type, - const gchar* page_name, - gboolean scale_up_to_viewport); -GtkToolbar* page_get_toolbar (Page* self); -static void import_queue_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames); -void page_init_collect_ui_filenames (Page* self, - GeeList* ui_filenames); -static void import_queue_page_real_add_actions (Page* base, - GActionMap* map); -void page_add_actions (Page* self, - GActionMap* map); -static void import_queue_page_real_remove_actions (Page* base, - GActionMap* map); -void page_remove_actions (Page* self, - GActionMap* map); -void import_queue_page_enqueue_and_schedule (ImportQueuePage* self, - BatchImport* batch_import, - gboolean allow_user_cancel); -static void import_queue_page_on_starting (ImportQueuePage* self, - BatchImport* batch_import); -static void _import_queue_page_on_starting_batch_import_starting (BatchImport* _sender, - gpointer self); -static void import_queue_page_on_preparing (ImportQueuePage* self); -static void _import_queue_page_on_preparing_batch_import_preparing (BatchImport* _sender, - gpointer self); -static void import_queue_page_on_progress (ImportQueuePage* self, - guint64 completed_bytes, - guint64 total_bytes); -static void _import_queue_page_on_progress_batch_import_progress (BatchImport* _sender, - guint64 completed_bytes, - guint64 total_bytes, - gpointer self); -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -static void import_queue_page_on_imported (ImportQueuePage* self, - ThumbnailSource* source, - GdkPixbuf* pixbuf, - gint to_follow); -GType media_source_get_type (void) G_GNUC_CONST; -static void _import_queue_page_on_imported_batch_import_imported (BatchImport* _sender, - MediaSource* source, - GdkPixbuf* pixbuf, - gint to_follow, - gpointer self); -gpointer import_manifest_ref (gpointer instance); -void import_manifest_unref (gpointer instance); -GParamSpec* param_spec_import_manifest (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_import_manifest (GValue* value, - gpointer v_object); -void value_take_import_manifest (GValue* value, - gpointer v_object); -gpointer value_get_import_manifest (const GValue* value); -GType import_manifest_get_type (void) G_GNUC_CONST; -gpointer batch_import_roll_ref (gpointer instance); -void batch_import_roll_unref (gpointer instance); -GParamSpec* param_spec_batch_import_roll (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_roll (GValue* value, - gpointer v_object); -void value_take_batch_import_roll (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_roll (const GValue* value); -GType batch_import_roll_get_type (void) G_GNUC_CONST; -static void import_queue_page_on_import_complete (ImportQueuePage* self, - BatchImport* batch_import, - ImportManifest* manifest, - BatchImportRoll* import_roll); -static void _import_queue_page_on_import_complete_batch_import_import_complete (BatchImport* _sender, - ImportManifest* manifest, - BatchImportRoll* import_roll, - gpointer self); -GType import_result_get_type (void) G_GNUC_CONST; -static void import_queue_page_on_fatal_error (ImportQueuePage* self, - ImportResult _result_, - const gchar* message); -static void _import_queue_page_on_fatal_error_batch_import_fatal_error (BatchImport* _sender, - ImportResult _result_, - const gchar* message, - gpointer self); -void batch_import_schedule (BatchImport* self); -static void import_queue_page_update_stop_action (ImportQueuePage* self); -gint import_queue_page_get_batch_count (ImportQueuePage* self); -void page_set_action_sensitive (Page* self, - const gchar* name, - gboolean sensitive); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -void page_window_set_busy_cursor (PageWindow* self); -void batch_import_user_halt (BatchImport* self); -gboolean page_is_in_view (Page* self); -GType direction_get_type (void) G_GNUC_CONST; -void single_photo_page_set_pixbuf (SinglePhotoPage* self, - GdkPixbuf* unscaled, - Dimensions* max_dim, - Direction* direction); -void dimensions_for_pixbuf (GdkPixbuf* pixbuf, - Dimensions* result); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -void data_collection_clear (DataCollection* self); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -gboolean data_collection_add (DataCollection* self, - DataObject* object); -PhotoView* photo_view_new (PhotoSource* source); -PhotoView* photo_view_construct (GType object_type, - PhotoSource* source); -GType data_view_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType photo_view_get_type (void) G_GNUC_CONST; -GType video_source_get_type (void) G_GNUC_CONST; -GType video_get_type (void) G_GNUC_CONST; -VideoView* video_view_new (VideoSource* source); -VideoView* video_view_construct (GType object_type, - VideoSource* source); -GType video_view_get_type (void) G_GNUC_CONST; -gchar* data_object_get_name (DataObject* self); -void single_photo_page_blank_display (SinglePhotoPage* self); -void page_window_set_normal_cursor (PageWindow* self); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -static void import_queue_page_finalize (GObject * obj); - -static const GActionEntry IMPORT_QUEUE_PAGE_entries[1] = {{"Stop", _import_queue_page_on_stop_gsimple_action_activate_callback}}; - -static void -_import_queue_page_on_stop_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 62 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - import_queue_page_on_stop ((ImportQueuePage*) self); -#line 641 "ImportQueuePage.c" -} - - -ImportQueuePage* -import_queue_page_construct (GType object_type) -{ - ImportQueuePage * self = NULL; - GtkToolbar* toolbar = NULL; - GtkToolbar* _tmp0_; - GtkToolButton* stop_button = NULL; - GtkToolButton* _tmp1_; - GtkSeparatorToolItem* separator = NULL; - GtkSeparatorToolItem* _tmp2_; - GtkToolItem* progress_item = NULL; - GtkToolItem* _tmp3_; - GtkProgressBar* _tmp4_; - GtkProgressBar* _tmp5_; -#line 25 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - self = (ImportQueuePage*) single_photo_page_construct (object_type, IMPORT_QUEUE_PAGE_NAME, FALSE); -#line 28 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp0_ = page_get_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 28 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - toolbar = _tmp0_; -#line 31 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp1_ = (GtkToolButton*) gtk_tool_button_new (NULL, NULL); -#line 31 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_object_ref_sink (_tmp1_); -#line 31 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - stop_button = _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_tool_button_set_icon_name (stop_button, "stop"); -#line 33 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_actionable_set_action_name (G_TYPE_CHECK_INSTANCE_CAST (stop_button, gtk_actionable_get_type (), GtkActionable), "win.Stop"); -#line 35 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (stop_button, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 38 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp2_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new (); -#line 38 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_object_ref_sink (_tmp2_); -#line 38 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - separator = _tmp2_; -#line 39 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_separator_tool_item_set_draw (separator, FALSE); -#line 41 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_toolbar_insert (toolbar, G_TYPE_CHECK_INSTANCE_CAST (separator, gtk_tool_item_get_type (), GtkToolItem), -1); -#line 44 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp3_ = gtk_tool_item_new (); -#line 44 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_object_ref_sink (_tmp3_); -#line 44 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - progress_item = _tmp3_; -#line 45 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_tool_item_set_expand (progress_item, TRUE); -#line 46 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp4_ = self->priv->progress_bar; -#line 46 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (progress_item, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget)); -#line 47 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp5_ = self->priv->progress_bar; -#line 47 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_progress_bar_set_show_text (_tmp5_, TRUE); -#line 49 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_toolbar_insert (toolbar, progress_item, -1); -#line 24 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (progress_item); -#line 24 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (separator); -#line 24 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (stop_button); -#line 24 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (toolbar); -#line 24 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - return self; -#line 715 "ImportQueuePage.c" -} - - -ImportQueuePage* -import_queue_page_new (void) -{ -#line 24 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - return import_queue_page_construct (TYPE_IMPORT_QUEUE_PAGE); -#line 724 "ImportQueuePage.c" -} - - -static void -import_queue_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames) -{ - ImportQueuePage * self; -#line 56 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_QUEUE_PAGE, ImportQueuePage); -#line 56 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 57 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "import_queue.ui"); -#line 59 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - PAGE_CLASS (import_queue_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), ui_filenames); -#line 741 "ImportQueuePage.c" -} - - -static void -import_queue_page_real_add_actions (Page* base, - GActionMap* map) -{ - ImportQueuePage * self; -#line 66 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_QUEUE_PAGE, ImportQueuePage); -#line 66 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 67 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - PAGE_CLASS (import_queue_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), map); -#line 69 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_action_map_add_action_entries (map, IMPORT_QUEUE_PAGE_entries, G_N_ELEMENTS (IMPORT_QUEUE_PAGE_entries), self); -#line 758 "ImportQueuePage.c" -} - - -static void -import_queue_page_real_remove_actions (Page* base, - GActionMap* map) -{ - ImportQueuePage * self; -#line 72 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_IMPORT_QUEUE_PAGE, ImportQueuePage); -#line 72 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 73 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - PAGE_CLASS (import_queue_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), TYPE_PAGE, Page), map); -#line 773 "ImportQueuePage.c" - { - GActionEntry* entry_collection = NULL; - gint entry_collection_length1 = 0; - gint _entry_collection_size_ = 0; - gint entry_it = 0; -#line 74 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - entry_collection = IMPORT_QUEUE_PAGE_entries; -#line 74 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - entry_collection_length1 = G_N_ELEMENTS (IMPORT_QUEUE_PAGE_entries); -#line 74 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - for (entry_it = 0; entry_it < G_N_ELEMENTS (IMPORT_QUEUE_PAGE_entries); entry_it = entry_it + 1) { -#line 785 "ImportQueuePage.c" - GActionEntry entry = {0}; -#line 74 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - entry = entry_collection[entry_it]; -#line 789 "ImportQueuePage.c" - { - GActionEntry _tmp0_; - const gchar* _tmp1_; -#line 75 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp0_ = entry; -#line 75 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp1_ = _tmp0_.name; -#line 75 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_action_map_remove_action (map, _tmp1_); -#line 799 "ImportQueuePage.c" - } - } - } -} - - -static void -_import_queue_page_on_starting_batch_import_starting (BatchImport* _sender, - gpointer self) -{ -#line 82 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - import_queue_page_on_starting ((ImportQueuePage*) self, _sender); -#line 812 "ImportQueuePage.c" -} - - -static void -_import_queue_page_on_preparing_batch_import_preparing (BatchImport* _sender, - gpointer self) -{ -#line 83 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - import_queue_page_on_preparing ((ImportQueuePage*) self); -#line 822 "ImportQueuePage.c" -} - - -static void -_import_queue_page_on_progress_batch_import_progress (BatchImport* _sender, - guint64 completed_bytes, - guint64 total_bytes, - gpointer self) -{ -#line 84 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - import_queue_page_on_progress ((ImportQueuePage*) self, completed_bytes, total_bytes); -#line 834 "ImportQueuePage.c" -} - - -static void -_import_queue_page_on_imported_batch_import_imported (BatchImport* _sender, - MediaSource* source, - GdkPixbuf* pixbuf, - gint to_follow, - gpointer self) -{ -#line 85 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - import_queue_page_on_imported ((ImportQueuePage*) self, source, pixbuf, to_follow); -#line 847 "ImportQueuePage.c" -} - - -static void -_import_queue_page_on_import_complete_batch_import_import_complete (BatchImport* _sender, - ImportManifest* manifest, - BatchImportRoll* import_roll, - gpointer self) -{ -#line 86 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - import_queue_page_on_import_complete ((ImportQueuePage*) self, _sender, manifest, import_roll); -#line 859 "ImportQueuePage.c" -} - - -static void -_import_queue_page_on_fatal_error_batch_import_fatal_error (BatchImport* _sender, - ImportResult _result_, - const gchar* message, - gpointer self) -{ -#line 87 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - import_queue_page_on_fatal_error ((ImportQueuePage*) self, _result_, message); -#line 871 "ImportQueuePage.c" -} - - -void -import_queue_page_enqueue_and_schedule (ImportQueuePage* self, - BatchImport* batch_import, - gboolean allow_user_cancel) -{ - GeeArrayList* _tmp0_; - GeeArrayList* _tmp2_; - GeeArrayList* _tmp3_; - gint _tmp4_; - gint _tmp5_; -#line 79 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 79 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (IS_BATCH_IMPORT (batch_import)); -#line 80 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp0_ = self->priv->queue; -#line 80 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _vala_assert (!gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), batch_import), "!queue.contains(batch_import)"); -#line 82 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_connect_object (batch_import, "starting", (GCallback) _import_queue_page_on_starting_batch_import_starting, self, 0); -#line 83 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_connect_object (batch_import, "preparing", (GCallback) _import_queue_page_on_preparing_batch_import_preparing, self, 0); -#line 84 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_connect_object (batch_import, "progress", (GCallback) _import_queue_page_on_progress_batch_import_progress, self, 0); -#line 85 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_connect_object (batch_import, "imported", (GCallback) _import_queue_page_on_imported_batch_import_imported, self, 0); -#line 86 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_connect_object (batch_import, "import-complete", (GCallback) _import_queue_page_on_import_complete_batch_import_import_complete, self, 0); -#line 87 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_connect_object (batch_import, "fatal-error", (GCallback) _import_queue_page_on_fatal_error_batch_import_fatal_error, self, 0); -#line 89 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - if (!allow_user_cancel) { -#line 907 "ImportQueuePage.c" - GeeHashSet* _tmp1_; -#line 90 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp1_ = self->priv->cancel_unallowed; -#line 90 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), batch_import); -#line 913 "ImportQueuePage.c" - } -#line 92 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp2_ = self->priv->queue; -#line 92 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), batch_import); -#line 93 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_emit (self, import_queue_page_signals[IMPORT_QUEUE_PAGE_BATCH_ADDED_SIGNAL], 0, batch_import); -#line 95 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp3_ = self->priv->queue; -#line 95 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp4_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 95 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp5_ = _tmp4_; -#line 95 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - if (_tmp5_ == 1) { -#line 96 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - batch_import_schedule (batch_import); -#line 931 "ImportQueuePage.c" - } -#line 98 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - import_queue_page_update_stop_action (self); -#line 935 "ImportQueuePage.c" -} - - -gint -import_queue_page_get_batch_count (ImportQueuePage* self) -{ - gint result = 0; - GeeArrayList* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 101 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_val_if_fail (IS_IMPORT_QUEUE_PAGE (self), 0); -#line 102 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp0_ = self->priv->queue; -#line 102 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 102 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp2_ = _tmp1_; -#line 102 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - result = _tmp2_; -#line 102 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - return result; -#line 958 "ImportQueuePage.c" -} - - -static void -import_queue_page_update_stop_action (ImportQueuePage* self) -{ - gboolean _tmp0_ = FALSE; - GeeHashSet* _tmp1_; - BatchImport* _tmp2_; -#line 105 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp1_ = self->priv->cancel_unallowed; -#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp2_ = self->priv->current_batch; -#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - if (!gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp2_)) { -#line 976 "ImportQueuePage.c" - GeeArrayList* _tmp3_; - gint _tmp4_; - gint _tmp5_; -#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp3_ = self->priv->queue; -#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp4_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp5_ = _tmp4_; -#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp0_ = _tmp5_ > 0; -#line 988 "ImportQueuePage.c" - } else { -#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp0_ = FALSE; -#line 992 "ImportQueuePage.c" - } -#line 106 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Stop", _tmp0_); -#line 996 "ImportQueuePage.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - return self ? g_object_ref (self) : NULL; -#line 1005 "ImportQueuePage.c" -} - - -static void -import_queue_page_on_stop (ImportQueuePage* self) -{ - GeeArrayList* _tmp0_; - gint _tmp1_; - gint _tmp2_; - AppWindow* _tmp3_; - AppWindow* _tmp4_; -#line 109 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 110 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - import_queue_page_update_stop_action (self); -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp0_ = self->priv->queue; -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp2_ = _tmp1_; -#line 112 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - if (_tmp2_ == 0) { -#line 113 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - return; -#line 1031 "ImportQueuePage.c" - } -#line 115 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp3_ = app_window_get_instance (); -#line 115 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp4_ = _tmp3_; -#line 115 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PAGE_WINDOW, PageWindow)); -#line 115 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (_tmp4_); -#line 116 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - self->priv->stopped = TRUE; -#line 1043 "ImportQueuePage.c" - { - GeeArrayList* _batch_import_list = NULL; - GeeArrayList* _tmp5_; - GeeArrayList* _tmp6_; - gint _batch_import_size = 0; - GeeArrayList* _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint _batch_import_index = 0; -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp5_ = self->priv->queue; -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp6_ = _g_object_ref0 (_tmp5_); -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _batch_import_list = _tmp6_; -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp7_ = _batch_import_list; -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp8_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp9_ = _tmp8_; -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _batch_import_size = _tmp9_; -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _batch_import_index = -1; -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - while (TRUE) { -#line 1071 "ImportQueuePage.c" - gint _tmp10_; - gint _tmp11_; - gint _tmp12_; - BatchImport* batch_import = NULL; - GeeArrayList* _tmp13_; - gint _tmp14_; - gpointer _tmp15_; - BatchImport* _tmp16_; -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp10_ = _batch_import_index; -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _batch_import_index = _tmp10_ + 1; -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp11_ = _batch_import_index; -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp12_ = _batch_import_size; -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - if (!(_tmp11_ < _tmp12_)) { -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - break; -#line 1092 "ImportQueuePage.c" - } -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp13_ = _batch_import_list; -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp14_ = _batch_import_index; -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp15_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp14_); -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - batch_import = (BatchImport*) _tmp15_; -#line 120 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp16_ = batch_import; -#line 120 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - batch_import_user_halt (_tmp16_); -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (batch_import); -#line 1108 "ImportQueuePage.c" - } -#line 119 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (_batch_import_list); -#line 1112 "ImportQueuePage.c" - } -} - - -static void -import_queue_page_on_starting (ImportQueuePage* self, - BatchImport* batch_import) -{ - BatchImport* _tmp0_; -#line 123 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 123 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (IS_BATCH_IMPORT (batch_import)); -#line 124 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - import_queue_page_update_stop_action (self); -#line 125 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp0_ = _g_object_ref0 (batch_import); -#line 125 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (self->priv->current_batch); -#line 125 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - self->priv->current_batch = _tmp0_; -#line 1134 "ImportQueuePage.c" -} - - -static void -import_queue_page_on_preparing (ImportQueuePage* self) -{ - GtkProgressBar* _tmp0_; - GtkProgressBar* _tmp1_; -#line 128 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 129 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp0_ = self->priv->progress_bar; -#line 129 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_progress_bar_set_text (_tmp0_, _ ("Preparing to import…")); -#line 130 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp1_ = self->priv->progress_bar; -#line 130 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_progress_bar_pulse (_tmp1_); -#line 1153 "ImportQueuePage.c" -} - - -static void -import_queue_page_on_progress (ImportQueuePage* self, - guint64 completed_bytes, - guint64 total_bytes) -{ - gdouble _tmp0_ = 0.0; - gdouble pct = 0.0; - GtkProgressBar* _tmp1_; -#line 133 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 134 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - if (completed_bytes <= total_bytes) { -#line 134 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp0_ = ((gdouble) completed_bytes) / ((gdouble) total_bytes); -#line 1171 "ImportQueuePage.c" - } else { -#line 135 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp0_ = 0.0; -#line 1175 "ImportQueuePage.c" - } -#line 134 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - pct = _tmp0_; -#line 136 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp1_ = self->priv->progress_bar; -#line 136 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_progress_bar_set_fraction (_tmp1_, pct); -#line 1183 "ImportQueuePage.c" -} - - -static void -import_queue_page_on_imported (ImportQueuePage* self, - ThumbnailSource* source, - GdkPixbuf* pixbuf, - gint to_follow) -{ - gboolean _tmp0_ = FALSE; - Dimensions _tmp1_ = {0}; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; - gboolean _tmp4_ = FALSE; - GtkProgressBar* _tmp13_; - GtkProgressBar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; -#line 143 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 143 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (IS_THUMBNAIL_SOURCE (source)); -#line 143 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - if (to_follow > 0) { -#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp0_ = TRUE; -#line 1214 "ImportQueuePage.c" - } else { -#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp0_ = !page_is_in_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 1218 "ImportQueuePage.c" - } -#line 145 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - if (_tmp0_) { -#line 146 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - return; -#line 1224 "ImportQueuePage.c" - } -#line 148 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - dimensions_for_pixbuf (pixbuf, &_tmp1_); -#line 148 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - single_photo_page_set_pixbuf (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage), pixbuf, &_tmp1_, NULL); -#line 151 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp2_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 151 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp3_ = _tmp2_; -#line 151 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection)); -#line 151 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _data_collection_unref0 (_tmp3_); -#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_LIBRARY_PHOTO)) { -#line 1240 "ImportQueuePage.c" - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; - PhotoView* _tmp7_; - PhotoView* _tmp8_; -#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp6_ = _tmp5_; -#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp7_ = photo_view_new (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_LIBRARY_PHOTO) ? ((LibraryPhoto*) source) : NULL, TYPE_PHOTO_SOURCE, PhotoSource)); -#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp8_ = _tmp7_; -#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp4_ = data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject)); -#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (_tmp8_); -#line 152 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _data_collection_unref0 (_tmp6_); -#line 1259 "ImportQueuePage.c" - } else { - ViewCollection* _tmp9_; - ViewCollection* _tmp10_; - VideoView* _tmp11_; - VideoView* _tmp12_; -#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp10_ = _tmp9_; -#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp11_ = video_view_new (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_VIDEO) ? ((Video*) source) : NULL, TYPE_VIDEO_SOURCE, VideoSource)); -#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp12_ = _tmp11_; -#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp4_ = data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_DATA_OBJECT, DataObject)); -#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (_tmp12_); -#line 153 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _data_collection_unref0 (_tmp10_); -#line 1279 "ImportQueuePage.c" - } -#line 155 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp13_ = self->priv->progress_bar; -#line 155 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_progress_bar_set_ellipsize (_tmp13_, PANGO_ELLIPSIZE_MIDDLE); -#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp14_ = self->priv->progress_bar; -#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp15_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_DATA_OBJECT, DataObject)); -#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp16_ = _tmp15_; -#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp17_ = g_strdup_printf (_ ("Imported %s"), _tmp16_); -#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp18_ = _tmp17_; -#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_progress_bar_set_text (_tmp14_, _tmp18_); -#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_free0 (_tmp18_); -#line 156 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_free0 (_tmp16_); -#line 1301 "ImportQueuePage.c" -} - - -static void -import_queue_page_on_import_complete (ImportQueuePage* self, - BatchImport* batch_import, - ImportManifest* manifest, - BatchImportRoll* import_roll) -{ - BatchImport* _tmp0_; - GeeArrayList* _tmp1_; - gint _tmp2_; - gint _tmp3_; - GeeArrayList* _tmp4_; - gpointer _tmp5_; - BatchImport* _tmp6_; - gboolean removed = FALSE; - GeeArrayList* _tmp7_; - gboolean _tmp8_; - GeeHashSet* _tmp9_; - guint _tmp10_; - guint _tmp11_; - guint _tmp12_; - guint _tmp13_; - guint _tmp14_; - guint _tmp15_; - GeeArrayList* _tmp16_; - gint _tmp17_; - gint _tmp18_; -#line 159 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 159 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (IS_BATCH_IMPORT (batch_import)); -#line 159 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (IS_IMPORT_MANIFEST (manifest)); -#line 159 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (IS_BATCH_IMPORT_ROLL (import_roll)); -#line 161 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp0_ = self->priv->current_batch; -#line 161 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _vala_assert (batch_import == _tmp0_, "batch_import == current_batch"); -#line 162 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (self->priv->current_batch); -#line 162 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - self->priv->current_batch = NULL; -#line 164 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp1_ = self->priv->queue; -#line 164 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 164 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp3_ = _tmp2_; -#line 164 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _vala_assert (_tmp3_ > 0, "queue.size > 0"); -#line 165 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp4_ = self->priv->queue; -#line 165 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp5_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 165 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp6_ = (BatchImport*) _tmp5_; -#line 165 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _vala_assert (_tmp6_ == batch_import, "queue.get(0) == batch_import"); -#line 165 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (_tmp6_); -#line 167 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp7_ = self->priv->queue; -#line 167 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - removed = gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), batch_import); -#line 168 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp8_ = removed; -#line 168 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _vala_assert (_tmp8_, "removed"); -#line 171 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp9_ = self->priv->cancel_unallowed; -#line 171 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), batch_import); -#line 174 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_parse_name ("starting", TYPE_BATCH_IMPORT, &_tmp10_, NULL, FALSE); -#line 174 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_handlers_disconnect_matched (batch_import, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _import_queue_page_on_starting_batch_import_starting, self); -#line 175 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_parse_name ("preparing", TYPE_BATCH_IMPORT, &_tmp11_, NULL, FALSE); -#line 175 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_handlers_disconnect_matched (batch_import, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _import_queue_page_on_preparing_batch_import_preparing, self); -#line 176 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_parse_name ("progress", TYPE_BATCH_IMPORT, &_tmp12_, NULL, FALSE); -#line 176 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_handlers_disconnect_matched (batch_import, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp12_, 0, NULL, (GCallback) _import_queue_page_on_progress_batch_import_progress, self); -#line 177 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_parse_name ("imported", TYPE_BATCH_IMPORT, &_tmp13_, NULL, FALSE); -#line 177 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_handlers_disconnect_matched (batch_import, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _import_queue_page_on_imported_batch_import_imported, self); -#line 178 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_parse_name ("import-complete", TYPE_BATCH_IMPORT, &_tmp14_, NULL, FALSE); -#line 178 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_handlers_disconnect_matched (batch_import, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _import_queue_page_on_import_complete_batch_import_import_complete, self); -#line 179 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_parse_name ("fatal-error", TYPE_BATCH_IMPORT, &_tmp15_, NULL, FALSE); -#line 179 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_handlers_disconnect_matched (batch_import, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp15_, 0, NULL, (GCallback) _import_queue_page_on_fatal_error_batch_import_fatal_error, self); -#line 182 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp16_ = self->priv->queue; -#line 182 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp17_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 182 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp18_ = _tmp17_; -#line 182 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - if (_tmp18_ > 0) { -#line 1409 "ImportQueuePage.c" - GeeArrayList* _tmp19_; - gpointer _tmp20_; - BatchImport* _tmp21_; -#line 183 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp19_ = self->priv->queue; -#line 183 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp20_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 183 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp21_ = (BatchImport*) _tmp20_; -#line 183 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - batch_import_schedule (_tmp21_); -#line 183 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (_tmp21_); -#line 1423 "ImportQueuePage.c" - } else { - GtkProgressBar* _tmp22_; - GtkProgressBar* _tmp23_; - GtkProgressBar* _tmp24_; - gboolean _tmp25_; -#line 186 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp22_ = self->priv->progress_bar; -#line 186 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_progress_bar_set_ellipsize (_tmp22_, PANGO_ELLIPSIZE_NONE); -#line 187 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp23_ = self->priv->progress_bar; -#line 187 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_progress_bar_set_text (_tmp23_, ""); -#line 188 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp24_ = self->priv->progress_bar; -#line 188 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - gtk_progress_bar_set_fraction (_tmp24_, 0.0); -#line 195 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - single_photo_page_blank_display (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)); -#line 198 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp25_ = self->priv->stopped; -#line 198 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - if (_tmp25_) { -#line 1447 "ImportQueuePage.c" - AppWindow* _tmp26_; - AppWindow* _tmp27_; -#line 199 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp26_ = app_window_get_instance (); -#line 199 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp27_ = _tmp26_; -#line 199 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_PAGE_WINDOW, PageWindow)); -#line 199 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (_tmp27_); -#line 1458 "ImportQueuePage.c" - } -#line 201 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - self->priv->stopped = FALSE; -#line 1462 "ImportQueuePage.c" - } -#line 204 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - import_queue_page_update_stop_action (self); -#line 207 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_signal_emit (self, import_queue_page_signals[IMPORT_QUEUE_PAGE_BATCH_REMOVED_SIGNAL], 0, batch_import); -#line 1468 "ImportQueuePage.c" -} - - -static void -import_queue_page_on_fatal_error (ImportQueuePage* self, - ImportResult _result_, - const gchar* message) -{ -#line 210 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (IS_IMPORT_QUEUE_PAGE (self)); -#line 210 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_return_if_fail (message != NULL); -#line 211 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - app_window_error_message (message, NULL); -#line 1483 "ImportQueuePage.c" -} - - -static void -import_queue_page_class_init (ImportQueuePageClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - import_queue_page_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_type_class_add_private (klass, sizeof (ImportQueuePagePrivate)); -#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) import_queue_page_real_init_collect_ui_filenames; -#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) import_queue_page_real_add_actions; -#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) import_queue_page_real_remove_actions; -#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - G_OBJECT_CLASS (klass)->finalize = import_queue_page_finalize; -#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - import_queue_page_signals[IMPORT_QUEUE_PAGE_BATCH_ADDED_SIGNAL] = g_signal_new ("batch-added", TYPE_IMPORT_QUEUE_PAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_BATCH_IMPORT); -#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - import_queue_page_signals[IMPORT_QUEUE_PAGE_BATCH_REMOVED_SIGNAL] = g_signal_new ("batch-removed", TYPE_IMPORT_QUEUE_PAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_BATCH_IMPORT); -#line 1506 "ImportQueuePage.c" -} - - -static void -import_queue_page_instance_init (ImportQueuePage * self) -{ - GeeArrayList* _tmp0_; - GeeHashSet* _tmp1_; - GtkProgressBar* _tmp2_; -#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - self->priv = IMPORT_QUEUE_PAGE_GET_PRIVATE (self); -#line 10 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp0_ = gee_array_list_new (TYPE_BATCH_IMPORT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 10 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - self->priv->queue = _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp1_ = gee_hash_set_new (TYPE_BATCH_IMPORT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 11 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - self->priv->cancel_unallowed = _tmp1_; -#line 12 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - self->priv->current_batch = NULL; -#line 13 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _tmp2_ = (GtkProgressBar*) gtk_progress_bar_new (); -#line 13 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - g_object_ref_sink (_tmp2_); -#line 13 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - self->priv->progress_bar = _tmp2_; -#line 14 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - self->priv->stopped = FALSE; -#line 1536 "ImportQueuePage.c" -} - - -static void -import_queue_page_finalize (GObject * obj) -{ - ImportQueuePage * self; -#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_IMPORT_QUEUE_PAGE, ImportQueuePage); -#line 10 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (self->priv->queue); -#line 11 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (self->priv->cancel_unallowed); -#line 12 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (self->priv->current_batch); -#line 13 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - _g_object_unref0 (self->priv->progress_bar); -#line 7 "/home/jens/Source/shotwell/src/library/ImportQueuePage.vala" - G_OBJECT_CLASS (import_queue_page_parent_class)->finalize (obj); -#line 1556 "ImportQueuePage.c" -} - - -GType -import_queue_page_get_type (void) -{ - static volatile gsize import_queue_page_type_id__volatile = 0; - if (g_once_init_enter (&import_queue_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ImportQueuePageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) import_queue_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImportQueuePage), 0, (GInstanceInitFunc) import_queue_page_instance_init, NULL }; - GType import_queue_page_type_id; - import_queue_page_type_id = g_type_register_static (TYPE_SINGLE_PHOTO_PAGE, "ImportQueuePage", &g_define_type_info, 0); - g_once_init_leave (&import_queue_page_type_id__volatile, import_queue_page_type_id); - } - return import_queue_page_type_id__volatile; -} - - - diff --git a/src/library/ImportQueuePage.vala b/src/library/ImportQueuePage.vala index feb525d..1a14472 100644 --- a/src/library/ImportQueuePage.vala +++ b/src/library/ImportQueuePage.vala @@ -29,7 +29,7 @@ public class ImportQueuePage : SinglePhotoPage { // Stop button Gtk.ToolButton stop_button = new Gtk.ToolButton(null, null); - stop_button.set_icon_name("stop"); + stop_button.set_icon_name("process-stop-symbolic"); stop_button.set_action_name ("win.Stop"); toolbar.insert(stop_button, -1); diff --git a/src/library/ImportQueueSidebarEntry.c b/src/library/ImportQueueSidebarEntry.c deleted file mode 100644 index b878989..0000000 --- a/src/library/ImportQueueSidebarEntry.c +++ /dev/null @@ -1,547 +0,0 @@ -/* ImportQueueSidebarEntry.c generated by valac 0.40.4, the Vala compiler - * generated from ImportQueueSidebarEntry.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ()) -#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry)) -#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY)) -#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface)) - -typedef struct _SidebarEntry SidebarEntry; -typedef struct _SidebarEntryIface SidebarEntryIface; - -#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ()) -#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree)) -#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass)) -#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass)) - -typedef struct _SidebarTree SidebarTree; -typedef struct _SidebarTreeClass SidebarTreeClass; - -#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ()) -#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry)) -#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY)) -#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface)) - -typedef struct _SidebarSelectableEntry SidebarSelectableEntry; -typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface; - -#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ()) -#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)) -#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE)) -#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface)) - -typedef struct _SidebarPageRepresentative SidebarPageRepresentative; -typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ()) -#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable)) -#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE)) -#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface)) - -typedef struct _SidebarContextable SidebarContextable; -typedef struct _SidebarContextableIface SidebarContextableIface; - -#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ()) -#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) - -typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry; -typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass; -typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate; - -#define LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY (library_hideable_page_entry_get_type ()) -#define LIBRARY_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry)) -#define LIBRARY_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass)) -#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY)) -#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY)) -#define LIBRARY_HIDEABLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass)) - -typedef struct _LibraryHideablePageEntry LibraryHideablePageEntry; -typedef struct _LibraryHideablePageEntryClass LibraryHideablePageEntryClass; -typedef struct _LibraryHideablePageEntryPrivate LibraryHideablePageEntryPrivate; - -#define LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY (library_import_queue_sidebar_entry_get_type ()) -#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntry)) -#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntryClass)) -#define LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY)) -#define LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY)) -#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntryClass)) - -typedef struct _LibraryImportQueueSidebarEntry LibraryImportQueueSidebarEntry; -typedef struct _LibraryImportQueueSidebarEntryClass LibraryImportQueueSidebarEntryClass; -typedef struct _LibraryImportQueueSidebarEntryPrivate LibraryImportQueueSidebarEntryPrivate; -enum { - LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_0_PROPERTY, - LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* library_import_queue_sidebar_entry_properties[LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_NUM_PROPERTIES]; - -#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ()) -#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)) -#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) -#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE)) -#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE)) -#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) - -typedef struct _SinglePhotoPage SinglePhotoPage; -typedef struct _SinglePhotoPageClass SinglePhotoPageClass; - -#define TYPE_IMPORT_QUEUE_PAGE (import_queue_page_get_type ()) -#define IMPORT_QUEUE_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_QUEUE_PAGE, ImportQueuePage)) -#define IMPORT_QUEUE_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_QUEUE_PAGE, ImportQueuePageClass)) -#define IS_IMPORT_QUEUE_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_QUEUE_PAGE)) -#define IS_IMPORT_QUEUE_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_QUEUE_PAGE)) -#define IMPORT_QUEUE_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_QUEUE_PAGE, ImportQueuePageClass)) - -typedef struct _ImportQueuePage ImportQueuePage; -typedef struct _ImportQueuePageClass ImportQueuePageClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_BATCH_IMPORT (batch_import_get_type ()) -#define BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT, BatchImport)) -#define BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT, BatchImportClass)) -#define IS_BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT)) -#define IS_BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT)) -#define BATCH_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT, BatchImportClass)) - -typedef struct _BatchImport BatchImport; -typedef struct _BatchImportClass BatchImportClass; - -struct _SidebarEntryIface { - GTypeInterface parent_iface; - gchar* (*get_sidebar_name) (SidebarEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarEntry* self); - gchar* (*get_sidebar_icon) (SidebarEntry* self); - gchar* (*to_string) (SidebarEntry* self); - void (*grafted) (SidebarEntry* self, SidebarTree* tree); - void (*pruned) (SidebarEntry* self, SidebarTree* tree); -}; - -struct _SidebarSelectableEntryIface { - GTypeInterface parent_iface; -}; - -struct _SidebarPageRepresentativeIface { - GTypeInterface parent_iface; - gboolean (*has_page) (SidebarPageRepresentative* self); - Page* (*get_page) (SidebarPageRepresentative* self); -}; - -struct _SidebarContextableIface { - GTypeInterface parent_iface; - GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event); -}; - -struct _SidebarSimplePageEntry { - GObject parent_instance; - SidebarSimplePageEntryPrivate * priv; -}; - -struct _SidebarSimplePageEntryClass { - GObjectClass parent_class; - gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self); - gchar* (*to_string) (SidebarSimplePageEntry* self); - Page* (*create_page) (SidebarSimplePageEntry* self); -}; - -struct _LibraryHideablePageEntry { - SidebarSimplePageEntry parent_instance; - LibraryHideablePageEntryPrivate * priv; -}; - -struct _LibraryHideablePageEntryClass { - SidebarSimplePageEntryClass parent_class; -}; - -struct _LibraryImportQueueSidebarEntry { - LibraryHideablePageEntry parent_instance; - LibraryImportQueueSidebarEntryPrivate * priv; -}; - -struct _LibraryImportQueueSidebarEntryClass { - LibraryHideablePageEntryClass parent_class; -}; - - -static gpointer library_import_queue_sidebar_entry_parent_class = NULL; - -GType sidebar_tree_get_type (void) G_GNUC_CONST; -GType sidebar_entry_get_type (void) G_GNUC_CONST; -GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType sidebar_page_representative_get_type (void) G_GNUC_CONST; -GType sidebar_contextable_get_type (void) G_GNUC_CONST; -GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST; -GType library_hideable_page_entry_get_type (void) G_GNUC_CONST; -GType library_import_queue_sidebar_entry_get_type (void) G_GNUC_CONST; -LibraryImportQueueSidebarEntry* library_import_queue_sidebar_entry_new (void); -LibraryImportQueueSidebarEntry* library_import_queue_sidebar_entry_construct (GType object_type); -LibraryHideablePageEntry* library_hideable_page_entry_construct (GType object_type); -static void library_import_queue_sidebar_entry_on_page_created (LibraryImportQueueSidebarEntry* self); -static void _library_import_queue_sidebar_entry_on_page_created_sidebar_page_representative_page_created (SidebarPageRepresentative* _sender, - Page* page, - gpointer self); -static void library_import_queue_sidebar_entry_on_destroying_page (LibraryImportQueueSidebarEntry* self); -static void _library_import_queue_sidebar_entry_on_destroying_page_sidebar_page_representative_destroying_page (SidebarPageRepresentative* _sender, - Page* page, - gpointer self); -void library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self, - gboolean value); -static gchar* library_import_queue_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base); -#define IMPORT_QUEUE_PAGE_NAME _ ("Importing…") -static gchar* library_import_queue_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base); -#define RESOURCES_ICON_IMPORTING "go-down" -static Page* library_import_queue_sidebar_entry_real_create_page (SidebarSimplePageEntry* base); -ImportQueuePage* import_queue_page_new (void); -ImportQueuePage* import_queue_page_construct (GType object_type); -GType single_photo_page_get_type (void) G_GNUC_CONST; -GType import_queue_page_get_type (void) G_GNUC_CONST; -static ImportQueuePage* library_import_queue_sidebar_entry_get_queue_page (LibraryImportQueueSidebarEntry* self); -Page* sidebar_page_representative_get_page (SidebarPageRepresentative* self); -static void library_import_queue_sidebar_entry_on_batch_added_or_removed (LibraryImportQueueSidebarEntry* self); -GType batch_import_get_type (void) G_GNUC_CONST; -static void _library_import_queue_sidebar_entry_on_batch_added_or_removed_import_queue_page_batch_added (ImportQueuePage* _sender, - BatchImport* batch_import, - gpointer self); -static void _library_import_queue_sidebar_entry_on_batch_added_or_removed_import_queue_page_batch_removed (ImportQueuePage* _sender, - BatchImport* batch_import, - gpointer self); -gint import_queue_page_get_batch_count (ImportQueuePage* self); -void library_import_queue_sidebar_entry_enqueue_and_schedule (LibraryImportQueueSidebarEntry* self, - BatchImport* batch_import, - gboolean allow_user_cancel); -void import_queue_page_enqueue_and_schedule (ImportQueuePage* self, - BatchImport* batch_import, - gboolean allow_user_cancel); - - -static void -_library_import_queue_sidebar_entry_on_page_created_sidebar_page_representative_page_created (SidebarPageRepresentative* _sender, - Page* page, - gpointer self) -{ -#line 10 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - library_import_queue_sidebar_entry_on_page_created ((LibraryImportQueueSidebarEntry*) self); -#line 259 "ImportQueueSidebarEntry.c" -} - - -static void -_library_import_queue_sidebar_entry_on_destroying_page_sidebar_page_representative_destroying_page (SidebarPageRepresentative* _sender, - Page* page, - gpointer self) -{ -#line 11 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - library_import_queue_sidebar_entry_on_destroying_page ((LibraryImportQueueSidebarEntry*) self); -#line 270 "ImportQueueSidebarEntry.c" -} - - -LibraryImportQueueSidebarEntry* -library_import_queue_sidebar_entry_construct (GType object_type) -{ - LibraryImportQueueSidebarEntry * self = NULL; -#line 8 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - self = (LibraryImportQueueSidebarEntry*) library_hideable_page_entry_construct (object_type); -#line 10 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative), "page-created", (GCallback) _library_import_queue_sidebar_entry_on_page_created_sidebar_page_representative_page_created, self, 0); -#line 11 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative), "destroying-page", (GCallback) _library_import_queue_sidebar_entry_on_destroying_page_sidebar_page_representative_destroying_page, self, 0); -#line 16 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), FALSE); -#line 8 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - return self; -#line 288 "ImportQueueSidebarEntry.c" -} - - -LibraryImportQueueSidebarEntry* -library_import_queue_sidebar_entry_new (void) -{ -#line 8 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - return library_import_queue_sidebar_entry_construct (LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY); -#line 297 "ImportQueueSidebarEntry.c" -} - - -static gchar* -library_import_queue_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) -{ - LibraryImportQueueSidebarEntry * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 19 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntry); -#line 20 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _tmp0_ = g_strdup (IMPORT_QUEUE_PAGE_NAME); -#line 20 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - result = _tmp0_; -#line 20 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - return result; -#line 315 "ImportQueueSidebarEntry.c" -} - - -static gchar* -library_import_queue_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) -{ - LibraryImportQueueSidebarEntry * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 23 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntry); -#line 24 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _tmp0_ = g_strdup (RESOURCES_ICON_IMPORTING); -#line 24 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - result = _tmp0_; -#line 24 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - return result; -#line 333 "ImportQueueSidebarEntry.c" -} - - -static Page* -library_import_queue_sidebar_entry_real_create_page (SidebarSimplePageEntry* base) -{ - LibraryImportQueueSidebarEntry * self; - Page* result = NULL; - ImportQueuePage* _tmp0_; -#line 27 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntry); -#line 28 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _tmp0_ = import_queue_page_new (); -#line 28 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - g_object_ref_sink (_tmp0_); -#line 28 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page); -#line 28 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - return result; -#line 353 "ImportQueueSidebarEntry.c" -} - - -static ImportQueuePage* -library_import_queue_sidebar_entry_get_queue_page (LibraryImportQueueSidebarEntry* self) -{ - ImportQueuePage* result = NULL; - Page* _tmp0_; - ImportQueuePage* _tmp1_; -#line 31 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - g_return_val_if_fail (LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY (self), NULL); -#line 32 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _tmp0_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 32 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_IMPORT_QUEUE_PAGE) ? ((ImportQueuePage*) _tmp0_) : NULL; -#line 32 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - if (_tmp1_ == NULL) { -#line 32 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _g_object_unref0 (_tmp0_); -#line 373 "ImportQueueSidebarEntry.c" - } -#line 32 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - result = _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - return result; -#line 379 "ImportQueueSidebarEntry.c" -} - - -static void -_library_import_queue_sidebar_entry_on_batch_added_or_removed_import_queue_page_batch_added (ImportQueuePage* _sender, - BatchImport* batch_import, - gpointer self) -{ -#line 36 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - library_import_queue_sidebar_entry_on_batch_added_or_removed ((LibraryImportQueueSidebarEntry*) self); -#line 390 "ImportQueueSidebarEntry.c" -} - - -static void -_library_import_queue_sidebar_entry_on_batch_added_or_removed_import_queue_page_batch_removed (ImportQueuePage* _sender, - BatchImport* batch_import, - gpointer self) -{ -#line 37 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - library_import_queue_sidebar_entry_on_batch_added_or_removed ((LibraryImportQueueSidebarEntry*) self); -#line 401 "ImportQueueSidebarEntry.c" -} - - -static void -library_import_queue_sidebar_entry_on_page_created (LibraryImportQueueSidebarEntry* self) -{ - ImportQueuePage* _tmp0_; - ImportQueuePage* _tmp1_; - ImportQueuePage* _tmp2_; - ImportQueuePage* _tmp3_; -#line 35 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - g_return_if_fail (LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY (self)); -#line 36 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _tmp0_ = library_import_queue_sidebar_entry_get_queue_page (self); -#line 36 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 36 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - g_signal_connect_object (_tmp1_, "batch-added", (GCallback) _library_import_queue_sidebar_entry_on_batch_added_or_removed_import_queue_page_batch_added, self, 0); -#line 36 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _g_object_unref0 (_tmp1_); -#line 37 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _tmp2_ = library_import_queue_sidebar_entry_get_queue_page (self); -#line 37 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _tmp3_ = _tmp2_; -#line 37 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - g_signal_connect_object (_tmp3_, "batch-removed", (GCallback) _library_import_queue_sidebar_entry_on_batch_added_or_removed_import_queue_page_batch_removed, self, 0); -#line 37 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _g_object_unref0 (_tmp3_); -#line 430 "ImportQueueSidebarEntry.c" -} - - -static void -library_import_queue_sidebar_entry_on_destroying_page (LibraryImportQueueSidebarEntry* self) -{ - ImportQueuePage* _tmp0_; - ImportQueuePage* _tmp1_; - guint _tmp2_; - ImportQueuePage* _tmp3_; - ImportQueuePage* _tmp4_; - guint _tmp5_; -#line 40 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - g_return_if_fail (LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY (self)); -#line 41 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _tmp0_ = library_import_queue_sidebar_entry_get_queue_page (self); -#line 41 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 41 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - g_signal_parse_name ("batch-added", TYPE_IMPORT_QUEUE_PAGE, &_tmp2_, NULL, FALSE); -#line 41 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _library_import_queue_sidebar_entry_on_batch_added_or_removed_import_queue_page_batch_added, self); -#line 41 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _g_object_unref0 (_tmp1_); -#line 42 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _tmp3_ = library_import_queue_sidebar_entry_get_queue_page (self); -#line 42 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _tmp4_ = _tmp3_; -#line 42 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - g_signal_parse_name ("batch-removed", TYPE_IMPORT_QUEUE_PAGE, &_tmp5_, NULL, FALSE); -#line 42 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _library_import_queue_sidebar_entry_on_batch_added_or_removed_import_queue_page_batch_removed, self); -#line 42 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _g_object_unref0 (_tmp4_); -#line 465 "ImportQueueSidebarEntry.c" -} - - -static void -library_import_queue_sidebar_entry_on_batch_added_or_removed (LibraryImportQueueSidebarEntry* self) -{ - ImportQueuePage* _tmp0_; - ImportQueuePage* _tmp1_; -#line 45 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - g_return_if_fail (LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY (self)); -#line 46 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _tmp0_ = library_import_queue_sidebar_entry_get_queue_page (self); -#line 46 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 46 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), import_queue_page_get_batch_count (_tmp1_) > 0); -#line 46 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _g_object_unref0 (_tmp1_); -#line 484 "ImportQueueSidebarEntry.c" -} - - -void -library_import_queue_sidebar_entry_enqueue_and_schedule (LibraryImportQueueSidebarEntry* self, - BatchImport* batch_import, - gboolean allow_user_cancel) -{ - ImportQueuePage* _tmp0_; - ImportQueuePage* _tmp1_; -#line 49 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - g_return_if_fail (LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY (self)); -#line 49 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - g_return_if_fail (IS_BATCH_IMPORT (batch_import)); -#line 52 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), TRUE); -#line 53 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _tmp0_ = library_import_queue_sidebar_entry_get_queue_page (self); -#line 53 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 53 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - import_queue_page_enqueue_and_schedule (_tmp1_, batch_import, allow_user_cancel); -#line 53 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - _g_object_unref0 (_tmp1_); -#line 509 "ImportQueueSidebarEntry.c" -} - - -static void -library_import_queue_sidebar_entry_class_init (LibraryImportQueueSidebarEntryClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - library_import_queue_sidebar_entry_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) library_import_queue_sidebar_entry_real_get_sidebar_name; -#line 7 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) library_import_queue_sidebar_entry_real_get_sidebar_icon; -#line 7 "/home/jens/Source/shotwell/src/library/ImportQueueSidebarEntry.vala" - ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) library_import_queue_sidebar_entry_real_create_page; -#line 524 "ImportQueueSidebarEntry.c" -} - - -static void -library_import_queue_sidebar_entry_instance_init (LibraryImportQueueSidebarEntry * self) -{ -} - - -GType -library_import_queue_sidebar_entry_get_type (void) -{ - static volatile gsize library_import_queue_sidebar_entry_type_id__volatile = 0; - if (g_once_init_enter (&library_import_queue_sidebar_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryImportQueueSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_import_queue_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryImportQueueSidebarEntry), 0, (GInstanceInitFunc) library_import_queue_sidebar_entry_instance_init, NULL }; - GType library_import_queue_sidebar_entry_type_id; - library_import_queue_sidebar_entry_type_id = g_type_register_static (LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, "LibraryImportQueueSidebarEntry", &g_define_type_info, 0); - g_once_init_leave (&library_import_queue_sidebar_entry_type_id__volatile, library_import_queue_sidebar_entry_type_id); - } - return library_import_queue_sidebar_entry_type_id__volatile; -} - - - diff --git a/src/library/LastImportPage.c b/src/library/LastImportPage.c deleted file mode 100644 index 6fdba61..0000000 --- a/src/library/LastImportPage.c +++ /dev/null @@ -1,1372 +0,0 @@ -/* LastImportPage.c generated by valac 0.40.4, the Vala compiler - * generated from LastImportPage.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; -typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; - -#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ()) - -#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ()) -typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ()) -#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)) -#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) -#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER)) -#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER)) -#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) - -typedef struct _SearchViewFilter SearchViewFilter; -typedef struct _SearchViewFilterClass SearchViewFilterClass; - -#define CORE_TYPE_TRACKER (core_tracker_get_type ()) -#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) -#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) -#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) -#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) -#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) - -typedef struct _CoreTracker CoreTracker; -typedef struct _CoreTrackerClass CoreTrackerClass; - -#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) -#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) -#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) -#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) -#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) -#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) - -typedef struct _CoreViewTracker CoreViewTracker; -typedef struct _CoreViewTrackerClass CoreViewTrackerClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; -typedef struct _MediaPagePrivate MediaPagePrivate; - -#define TYPE_RATING (rating_get_type ()) - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; -typedef struct _CollectionPagePrivate CollectionPagePrivate; - -#define TYPE_LAST_IMPORT_PAGE (last_import_page_get_type ()) -#define LAST_IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LAST_IMPORT_PAGE, LastImportPage)) -#define LAST_IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LAST_IMPORT_PAGE, LastImportPageClass)) -#define IS_LAST_IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LAST_IMPORT_PAGE)) -#define IS_LAST_IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LAST_IMPORT_PAGE)) -#define LAST_IMPORT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LAST_IMPORT_PAGE, LastImportPageClass)) - -typedef struct _LastImportPage LastImportPage; -typedef struct _LastImportPageClass LastImportPageClass; -typedef struct _LastImportPagePrivate LastImportPagePrivate; - -#define TYPE_IMPORT_ID (import_id_get_type ()) -typedef struct _ImportID ImportID; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; -enum { - LAST_IMPORT_PAGE_0_PROPERTY, - LAST_IMPORT_PAGE_NUM_PROPERTIES -}; -static GParamSpec* last_import_page_properties[LAST_IMPORT_PAGE_NUM_PROPERTIES]; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; -#define _import_id_free0(var) ((var == NULL) ? NULL : (var = (import_id_free (var), NULL))) - -#define TYPE_VIEW_MANAGER (view_manager_get_type ()) -#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager)) -#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass)) -#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER)) -#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER)) -#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass)) - -typedef struct _ViewManager ViewManager; -typedef struct _ViewManagerClass ViewManagerClass; - -#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ()) -#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor)) -#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) -#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) - -typedef struct _ViewCollectionMonitor ViewCollectionMonitor; -typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass; - -#define TYPE_COLLECTION_VIEW_MANAGER (collection_view_manager_get_type ()) -#define COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager)) -#define COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass)) -#define IS_COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_VIEW_MANAGER)) -#define IS_COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_VIEW_MANAGER)) -#define COLLECTION_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass)) - -typedef struct _CollectionViewManager CollectionViewManager; -typedef struct _CollectionViewManagerClass CollectionViewManagerClass; - -#define LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER (last_import_page_last_import_view_manager_get_type ()) -#define LAST_IMPORT_PAGE_LAST_IMPORT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER, LastImportPageLastImportViewManager)) -#define LAST_IMPORT_PAGE_LAST_IMPORT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER, LastImportPageLastImportViewManagerClass)) -#define LAST_IMPORT_PAGE_IS_LAST_IMPORT_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER)) -#define LAST_IMPORT_PAGE_IS_LAST_IMPORT_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER)) -#define LAST_IMPORT_PAGE_LAST_IMPORT_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER, LastImportPageLastImportViewManagerClass)) - -typedef struct _LastImportPageLastImportViewManager LastImportPageLastImportViewManager; -typedef struct _LastImportPageLastImportViewManagerClass LastImportPageLastImportViewManagerClass; -#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL))) -#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL))) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -typedef struct _ViewManagerPrivate ViewManagerPrivate; -typedef struct _CollectionViewManagerPrivate CollectionViewManagerPrivate; -typedef struct _LastImportPageLastImportViewManagerPrivate LastImportPageLastImportViewManagerPrivate; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -typedef enum { - CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, - CHECKERBOARD_PAGE_ACTIVATOR_MOUSE -} CheckerboardPageActivator; - -struct _CheckerboardPageKeyboardModifiers { - gboolean ctrl_pressed; - gboolean alt_pressed; - gboolean shift_pressed; - gboolean super_pressed; -}; - -struct _CheckerboardPage { - Page parent_instance; - CheckerboardPagePrivate * priv; - CheckerboardItem* anchor; - CheckerboardItem* cursor; -}; - -struct _CheckerboardPageClass { - PageClass parent_class; - GtkMenu* (*get_item_context_menu) (CheckerboardPage* self); - gchar* (*get_view_empty_message) (CheckerboardPage* self); - gchar* (*get_filter_no_match_message) (CheckerboardPage* self); - void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers); - SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self); - CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self); - gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask); - void (*set_display_titles) (CheckerboardPage* self, gboolean display); - void (*set_display_comments) (CheckerboardPage* self, gboolean display); -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _MediaPage { - CheckerboardPage parent_instance; - MediaPagePrivate * priv; -}; - -struct _MediaPageClass { - CheckerboardPageClass parent_class; - void (*on_zoom_changed) (MediaPage* self); - void (*on_export) (MediaPage* self); - void (*on_increase_size) (MediaPage* self); - void (*on_decrease_size) (MediaPage* self); - void (*on_increase_rating) (MediaPage* self); - void (*on_decrease_rating) (MediaPage* self); - void (*on_set_rating) (MediaPage* self, Rating rating); - void (*on_rate_rejected) (MediaPage* self); - void (*on_rate_unrated) (MediaPage* self); - void (*on_rate_one) (MediaPage* self); - void (*on_rate_two) (MediaPage* self); - void (*on_rate_three) (MediaPage* self); - void (*on_rate_four) (MediaPage* self); - void (*on_rate_five) (MediaPage* self); - void (*on_move_to_trash) (MediaPage* self); - void (*on_edit_title) (MediaPage* self); - void (*on_edit_comment) (MediaPage* self); - void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by); - void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by); - void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*developer_changed) (MediaPage* self, RawDeveloper rd); - DataView* (*create_thumbnail) (MediaPage* self, DataSource* source); -}; - -struct _CollectionPage { - MediaPage parent_instance; - CollectionPagePrivate * priv; -}; - -struct _CollectionPageClass { - MediaPageClass parent_class; -}; - -struct _LastImportPage { - CollectionPage parent_instance; - LastImportPagePrivate * priv; -}; - -struct _LastImportPageClass { - CollectionPageClass parent_class; -}; - -struct _ImportID { - gint64 id; -}; - -struct _LastImportPagePrivate { - ImportID last_import_id; - Alteration* last_import_alteration; -}; - -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _ViewManager { - GTypeInstance parent_instance; - volatile int ref_count; - ViewManagerPrivate * priv; -}; - -struct _ViewManagerClass { - GTypeClass parent_class; - void (*finalize) (ViewManager *self); - gboolean (*include_in_view) (ViewManager* self, DataSource* source); - DataView* (*create_view) (ViewManager* self, DataSource* source); -}; - -struct _CollectionViewManager { - ViewManager parent_instance; - CollectionViewManagerPrivate * priv; -}; - -struct _CollectionViewManagerClass { - ViewManagerClass parent_class; -}; - -struct _LastImportPageLastImportViewManager { - CollectionViewManager parent_instance; - LastImportPageLastImportViewManagerPrivate * priv; -}; - -struct _LastImportPageLastImportViewManagerClass { - CollectionViewManagerClass parent_class; -}; - -struct _LastImportPageLastImportViewManagerPrivate { - ImportID import_id; -}; - - -static gpointer last_import_page_parent_class = NULL; -static gpointer last_import_page_last_import_view_manager_parent_class = NULL; - -GType page_get_type (void) G_GNUC_CONST; -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType checkerboard_page_activator_get_type (void) G_GNUC_CONST; -GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST; -CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self); -void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self); -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -GType search_view_filter_get_type (void) G_GNUC_CONST; -gpointer core_tracker_ref (gpointer instance); -void core_tracker_unref (gpointer instance); -GParamSpec* core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void core_value_set_tracker (GValue* value, - gpointer v_object); -void core_value_take_tracker (GValue* value, - gpointer v_object); -gpointer core_value_get_tracker (const GValue* value); -GType core_tracker_get_type (void) G_GNUC_CONST; -GType core_view_tracker_get_type (void) G_GNUC_CONST; -GType media_page_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -GType raw_developer_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -GType last_import_page_get_type (void) G_GNUC_CONST; -GType import_id_get_type (void) G_GNUC_CONST; -ImportID* import_id_dup (const ImportID* self); -void import_id_free (ImportID* self); -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -#define LAST_IMPORT_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LAST_IMPORT_PAGE, LastImportPagePrivate)) -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self); -static void last_import_page_on_import_rolls_altered (LastImportPage* self); -static void _last_import_page_on_import_rolls_altered_media_source_collection_import_roll_altered (MediaSourceCollection* _sender, - gpointer self); -#define IMPORT_ID_INVALID ((gint64) 0) -void import_id_init (ImportID *self, - gint64 id); -Alteration* alteration_new (const gchar* subject, - const gchar* detail); -Alteration* alteration_construct (GType object_type, - const gchar* subject, - const gchar* detail); -#define LAST_IMPORT_PAGE_NAME _ ("Last Import") -LastImportPage* last_import_page_new (void); -LastImportPage* last_import_page_construct (GType object_type); -CollectionPage* collection_page_construct (GType object_type, - const gchar* page_name); -ImportID* media_collection_registry_get_last_import_id (MediaCollectionRegistry* self); -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -void view_collection_halt_all_monitoring (ViewCollection* self); -void data_collection_clear (DataCollection* self); -gpointer view_manager_ref (gpointer instance); -void view_manager_unref (gpointer instance); -GParamSpec* param_spec_view_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_manager (GValue* value, - gpointer v_object); -void value_take_view_manager (GValue* value, - gpointer v_object); -gpointer value_get_view_manager (const GValue* value); -GType view_manager_get_type (void) G_GNUC_CONST; -gpointer view_collection_monitor_ref (gpointer instance); -void view_collection_monitor_unref (gpointer instance); -GParamSpec* view_collection_param_spec_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void view_collection_value_set_monitor (GValue* value, - gpointer v_object); -void view_collection_value_take_monitor (GValue* value, - gpointer v_object); -gpointer view_collection_value_get_monitor (const GValue* value); -GType view_collection_monitor_get_type (void) G_GNUC_CONST; -ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self, - SourceCollection* sources, - ViewManager* manager, - Alteration* prereq, - GeeCollection* initial, - ProgressMonitor progress_monitor, - void* progress_monitor_target); -static LastImportPageLastImportViewManager* last_import_page_last_import_view_manager_new (LastImportPage* owner, - ImportID* import_id); -static LastImportPageLastImportViewManager* last_import_page_last_import_view_manager_construct (GType object_type, - LastImportPage* owner, - ImportID* import_id); -GType collection_view_manager_get_type (void) G_GNUC_CONST; -static GType last_import_page_last_import_view_manager_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static void last_import_page_real_get_config_photos_sort (MediaPage* base, - gboolean* sort_order, - gint* sort_by); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -void configuration_facade_get_library_photos_sort (ConfigurationFacade* self, - gboolean* sort_order, - gint* sort_by); -static void last_import_page_real_set_config_photos_sort (MediaPage* base, - gboolean sort_order, - gint sort_by); -void configuration_facade_set_library_photos_sort (ConfigurationFacade* self, - gboolean sort_order, - gint sort_by); -#define LAST_IMPORT_PAGE_LAST_IMPORT_VIEW_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER, LastImportPageLastImportViewManagerPrivate)) -CollectionViewManager* collection_view_manager_new (CollectionPage* page); -CollectionViewManager* collection_view_manager_construct (GType object_type, - CollectionPage* page); -static gboolean last_import_page_last_import_view_manager_real_include_in_view (ViewManager* base, - DataSource* source); -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -void media_source_get_import_id (MediaSource* self, - ImportID* result); -static void last_import_page_last_import_view_manager_finalize (ViewManager * obj); -static void last_import_page_finalize (GObject * obj); - - -static void -_last_import_page_on_import_rolls_altered_media_source_collection_import_roll_altered (MediaSourceCollection* _sender, - gpointer self) -{ -#line 41 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - last_import_page_on_import_rolls_altered ((LastImportPage*) self); -#line 790 "LastImportPage.c" -} - - -LastImportPage* -last_import_page_construct (GType object_type) -{ - LastImportPage * self = NULL; -#line 28 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - self = (LastImportPage*) collection_page_construct (object_type, LAST_IMPORT_PAGE_NAME); -#line 800 "LastImportPage.c" - { - GeeIterator* _col_it = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp1_ = _tmp0_; -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp2_ = media_collection_registry_get_all (_tmp1_); -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp3_ = _tmp2_; -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp5_ = _tmp4_; -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _g_object_unref0 (_tmp3_); -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _col_it = _tmp5_; -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - while (TRUE) { -#line 829 "LastImportPage.c" - GeeIterator* _tmp6_; - MediaSourceCollection* col = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - MediaSourceCollection* _tmp9_; -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp6_ = _col_it; -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - break; -#line 841 "LastImportPage.c" - } -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp7_ = _col_it; -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - col = (MediaSourceCollection*) _tmp8_; -#line 32 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp9_ = col; -#line 32 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - g_signal_connect_object (_tmp9_, "import-roll-altered", (GCallback) _last_import_page_on_import_rolls_altered_media_source_collection_import_roll_altered, self, 0); -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _data_collection_unref0 (col); -#line 855 "LastImportPage.c" - } -#line 31 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _g_object_unref0 (_col_it); -#line 859 "LastImportPage.c" - } -#line 36 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - last_import_page_on_import_rolls_altered (self); -#line 27 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - return self; -#line 865 "LastImportPage.c" -} - - -LastImportPage* -last_import_page_new (void) -{ -#line 27 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - return last_import_page_construct (TYPE_LAST_IMPORT_PAGE); -#line 874 "LastImportPage.c" -} - - -static void -last_import_page_on_import_rolls_altered (LastImportPage* self) -{ - ImportID* current_last_import_id = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - ImportID* _tmp2_; - ImportID* _tmp3_; - ImportID* _tmp4_; - ImportID* _tmp9_; - gint64 _tmp10_; - ImportID _tmp11_; - gint64 _tmp12_; - ImportID* _tmp13_; - ViewCollection* _tmp14_; - ViewCollection* _tmp15_; - ViewCollection* _tmp16_; - ViewCollection* _tmp17_; -#line 45 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - g_return_if_fail (IS_LAST_IMPORT_PAGE (self)); -#line 47 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 47 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp1_ = _tmp0_; -#line 47 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp2_ = media_collection_registry_get_last_import_id (_tmp1_); -#line 47 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp3_ = _tmp2_; -#line 47 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 47 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - current_last_import_id = _tmp3_; -#line 50 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp4_ = current_last_import_id; -#line 50 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - if (_tmp4_ == NULL) { -#line 914 "LastImportPage.c" - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; -#line 51 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 51 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp6_ = _tmp5_; -#line 51 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - view_collection_halt_all_monitoring (_tmp6_); -#line 51 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _data_collection_unref0 (_tmp6_); -#line 52 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp7_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 52 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp8_ = _tmp7_; -#line 52 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection)); -#line 52 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _data_collection_unref0 (_tmp8_); -#line 54 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _import_id_free0 (current_last_import_id); -#line 54 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - return; -#line 939 "LastImportPage.c" - } -#line 57 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp9_ = current_last_import_id; -#line 57 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp10_ = (*_tmp9_).id; -#line 57 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp11_ = self->priv->last_import_id; -#line 57 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp12_ = _tmp11_.id; -#line 57 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - if (_tmp10_ == _tmp12_) { -#line 58 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _import_id_free0 (current_last_import_id); -#line 58 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - return; -#line 955 "LastImportPage.c" - } -#line 60 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp13_ = current_last_import_id; -#line 60 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - self->priv->last_import_id = *_tmp13_; -#line 62 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp14_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 62 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp15_ = _tmp14_; -#line 62 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - view_collection_halt_all_monitoring (_tmp15_); -#line 62 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _data_collection_unref0 (_tmp15_); -#line 63 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp16_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 63 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp17_ = _tmp16_; -#line 63 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - data_collection_clear (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_DATA_COLLECTION, DataCollection)); -#line 63 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _data_collection_unref0 (_tmp17_); -#line 977 "LastImportPage.c" - { - GeeIterator* _col_it = NULL; - MediaCollectionRegistry* _tmp18_; - MediaCollectionRegistry* _tmp19_; - GeeCollection* _tmp20_; - GeeCollection* _tmp21_; - GeeIterator* _tmp22_; - GeeIterator* _tmp23_; -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp18_ = media_collection_registry_get_instance (); -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp19_ = _tmp18_; -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp20_ = media_collection_registry_get_all (_tmp19_); -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp21_ = _tmp20_; -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp22_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp23_ = _tmp22_; -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _g_object_unref0 (_tmp21_); -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _media_collection_registry_unref0 (_tmp19_); -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _col_it = _tmp23_; -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - while (TRUE) { -#line 1006 "LastImportPage.c" - GeeIterator* _tmp24_; - MediaSourceCollection* col = NULL; - GeeIterator* _tmp25_; - gpointer _tmp26_; - ViewCollection* _tmp27_; - ViewCollection* _tmp28_; - MediaSourceCollection* _tmp29_; - ImportID _tmp30_; - LastImportPageLastImportViewManager* _tmp31_; - LastImportPageLastImportViewManager* _tmp32_; - Alteration* _tmp33_; - ViewCollectionMonitor* _tmp34_; - ViewCollectionMonitor* _tmp35_; -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp24_ = _col_it; -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - if (!gee_iterator_next (_tmp24_)) { -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - break; -#line 1026 "LastImportPage.c" - } -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp25_ = _col_it; -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp26_ = gee_iterator_get (_tmp25_); -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - col = (MediaSourceCollection*) _tmp26_; -#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp27_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp28_ = _tmp27_; -#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp29_ = col; -#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp30_ = self->priv->last_import_id; -#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp31_ = last_import_page_last_import_view_manager_new (self, &_tmp30_); -#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp32_ = _tmp31_; -#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp33_ = self->priv->last_import_alteration; -#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp34_ = view_collection_monitor_source_collection (_tmp28_, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_VIEW_MANAGER, ViewManager), _tmp33_, NULL, NULL, NULL); -#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp35_ = _tmp34_; -#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _view_collection_monitor_unref0 (_tmp35_); -#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _view_manager_unref0 (_tmp32_); -#line 66 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _data_collection_unref0 (_tmp28_); -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _data_collection_unref0 (col); -#line 1060 "LastImportPage.c" - } -#line 65 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _g_object_unref0 (_col_it); -#line 1064 "LastImportPage.c" - } -#line 45 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _import_id_free0 (current_last_import_id); -#line 1068 "LastImportPage.c" -} - - -static void -last_import_page_real_get_config_photos_sort (MediaPage* base, - gboolean* sort_order, - gint* sort_by) -{ - LastImportPage * self; - gboolean _vala_sort_order = FALSE; - gint _vala_sort_by = 0; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gboolean _tmp2_ = FALSE; - gint _tmp3_ = 0; -#line 71 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LAST_IMPORT_PAGE, LastImportPage); -#line 72 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 72 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp1_ = _tmp0_; -#line 72 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - configuration_facade_get_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp2_, &_tmp3_); -#line 72 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _vala_sort_order = _tmp2_; -#line 72 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _vala_sort_by = _tmp3_; -#line 72 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _g_object_unref0 (_tmp1_); -#line 71 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - if (sort_order) { -#line 71 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - *sort_order = _vala_sort_order; -#line 1102 "LastImportPage.c" - } -#line 71 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - if (sort_by) { -#line 71 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - *sort_by = _vala_sort_by; -#line 1108 "LastImportPage.c" - } -} - - -static void -last_import_page_real_set_config_photos_sort (MediaPage* base, - gboolean sort_order, - gint sort_by) -{ - LastImportPage * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 75 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LAST_IMPORT_PAGE, LastImportPage); -#line 76 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 76 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp1_ = _tmp0_; -#line 76 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - configuration_facade_set_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), sort_order, sort_by); -#line 76 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _g_object_unref0 (_tmp1_); -#line 1131 "LastImportPage.c" -} - - -static LastImportPageLastImportViewManager* -last_import_page_last_import_view_manager_construct (GType object_type, - LastImportPage* owner, - ImportID* import_id) -{ - LastImportPageLastImportViewManager* self = NULL; - ImportID _tmp0_; -#line 13 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - g_return_val_if_fail (IS_LAST_IMPORT_PAGE (owner), NULL); -#line 13 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - g_return_val_if_fail (import_id != NULL, NULL); -#line 14 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - self = (LastImportPageLastImportViewManager*) collection_view_manager_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, TYPE_COLLECTION_PAGE, CollectionPage)); -#line 16 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp0_ = *import_id; -#line 16 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - self->priv->import_id = _tmp0_; -#line 13 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - return self; -#line 1154 "LastImportPage.c" -} - - -static LastImportPageLastImportViewManager* -last_import_page_last_import_view_manager_new (LastImportPage* owner, - ImportID* import_id) -{ -#line 13 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - return last_import_page_last_import_view_manager_construct (LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER, owner, import_id); -#line 1164 "LastImportPage.c" -} - - -static gboolean -last_import_page_last_import_view_manager_real_include_in_view (ViewManager* base, - DataSource* source) -{ - LastImportPageLastImportViewManager * self; - gboolean result = FALSE; - ImportID _tmp0_ = {0}; - gint64 _tmp1_; - ImportID _tmp2_; - gint64 _tmp3_; -#line 19 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER, LastImportPageLastImportViewManager); -#line 19 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 20 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - media_source_get_import_id (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource), &_tmp0_); -#line 20 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp1_ = _tmp0_.id; -#line 20 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp2_ = self->priv->import_id; -#line 20 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp3_ = _tmp2_.id; -#line 20 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - result = _tmp1_ == _tmp3_; -#line 20 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - return result; -#line 1194 "LastImportPage.c" -} - - -static void -last_import_page_last_import_view_manager_class_init (LastImportPageLastImportViewManagerClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - last_import_page_last_import_view_manager_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - ((ViewManagerClass *) klass)->finalize = last_import_page_last_import_view_manager_finalize; -#line 10 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - g_type_class_add_private (klass, sizeof (LastImportPageLastImportViewManagerPrivate)); -#line 10 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - ((ViewManagerClass *) klass)->include_in_view = (gboolean (*) (ViewManager *, DataSource*)) last_import_page_last_import_view_manager_real_include_in_view; -#line 1209 "LastImportPage.c" -} - - -static void -last_import_page_last_import_view_manager_instance_init (LastImportPageLastImportViewManager * self) -{ -#line 10 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - self->priv = LAST_IMPORT_PAGE_LAST_IMPORT_VIEW_MANAGER_GET_PRIVATE (self); -#line 1218 "LastImportPage.c" -} - - -static void -last_import_page_last_import_view_manager_finalize (ViewManager * obj) -{ - LastImportPageLastImportViewManager * self; -#line 10 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, LAST_IMPORT_PAGE_TYPE_LAST_IMPORT_VIEW_MANAGER, LastImportPageLastImportViewManager); -#line 10 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - VIEW_MANAGER_CLASS (last_import_page_last_import_view_manager_parent_class)->finalize (obj); -#line 1230 "LastImportPage.c" -} - - -static GType -last_import_page_last_import_view_manager_get_type (void) -{ - static volatile gsize last_import_page_last_import_view_manager_type_id__volatile = 0; - if (g_once_init_enter (&last_import_page_last_import_view_manager_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LastImportPageLastImportViewManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) last_import_page_last_import_view_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LastImportPageLastImportViewManager), 0, (GInstanceInitFunc) last_import_page_last_import_view_manager_instance_init, NULL }; - GType last_import_page_last_import_view_manager_type_id; - last_import_page_last_import_view_manager_type_id = g_type_register_static (TYPE_COLLECTION_VIEW_MANAGER, "LastImportPageLastImportViewManager", &g_define_type_info, 0); - g_once_init_leave (&last_import_page_last_import_view_manager_type_id__volatile, last_import_page_last_import_view_manager_type_id); - } - return last_import_page_last_import_view_manager_type_id__volatile; -} - - -static void -last_import_page_class_init (LastImportPageClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - last_import_page_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - g_type_class_add_private (klass, sizeof (LastImportPagePrivate)); -#line 7 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) last_import_page_real_get_config_photos_sort; -#line 7 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) last_import_page_real_set_config_photos_sort; -#line 7 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - G_OBJECT_CLASS (klass)->finalize = last_import_page_finalize; -#line 1261 "LastImportPage.c" -} - - -static void -last_import_page_instance_init (LastImportPage * self) -{ - Alteration* _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - self->priv = LAST_IMPORT_PAGE_GET_PRIVATE (self); -#line 24 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - import_id_init (&self->priv->last_import_id, IMPORT_ID_INVALID); -#line 25 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp0_ = alteration_new ("metadata", "import-id"); -#line 25 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - self->priv->last_import_alteration = _tmp0_; -#line 1277 "LastImportPage.c" -} - - -static void -last_import_page_finalize (GObject * obj) -{ - LastImportPage * self; -#line 7 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LAST_IMPORT_PAGE, LastImportPage); -#line 1287 "LastImportPage.c" - { - GeeIterator* _col_it = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp1_ = _tmp0_; -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp2_ = media_collection_registry_get_all (_tmp1_); -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp3_ = _tmp2_; -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp5_ = _tmp4_; -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _g_object_unref0 (_tmp3_); -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _col_it = _tmp5_; -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - while (TRUE) { -#line 1316 "LastImportPage.c" - GeeIterator* _tmp6_; - MediaSourceCollection* col = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - MediaSourceCollection* _tmp9_; - guint _tmp10_; -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp6_ = _col_it; -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - break; -#line 1329 "LastImportPage.c" - } -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp7_ = _col_it; -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - col = (MediaSourceCollection*) _tmp8_; -#line 41 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _tmp9_ = col; -#line 41 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - g_signal_parse_name ("import-roll-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp10_, NULL, FALSE); -#line 41 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _last_import_page_on_import_rolls_altered_media_source_collection_import_roll_altered, self); -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _data_collection_unref0 (col); -#line 1345 "LastImportPage.c" - } -#line 40 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _g_object_unref0 (_col_it); -#line 1349 "LastImportPage.c" - } -#line 25 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - _alteration_unref0 (self->priv->last_import_alteration); -#line 7 "/home/jens/Source/shotwell/src/library/LastImportPage.vala" - G_OBJECT_CLASS (last_import_page_parent_class)->finalize (obj); -#line 1355 "LastImportPage.c" -} - - -GType -last_import_page_get_type (void) -{ - static volatile gsize last_import_page_type_id__volatile = 0; - if (g_once_init_enter (&last_import_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LastImportPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) last_import_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LastImportPage), 0, (GInstanceInitFunc) last_import_page_instance_init, NULL }; - GType last_import_page_type_id; - last_import_page_type_id = g_type_register_static (TYPE_COLLECTION_PAGE, "LastImportPage", &g_define_type_info, 0); - g_once_init_leave (&last_import_page_type_id__volatile, last_import_page_type_id); - } - return last_import_page_type_id__volatile; -} - - - diff --git a/src/library/LastImportPage.vala b/src/library/LastImportPage.vala index be30989..84f582e 100644 --- a/src/library/LastImportPage.vala +++ b/src/library/LastImportPage.vala @@ -35,6 +35,20 @@ public class LastImportPage : CollectionPage { // set up view manager for the last import roll on_import_rolls_altered(); } + + public LastImportPage.for_id(ImportID id) { + base(NAME); + + this.last_import_id = id; + + get_view().halt_all_monitoring(); + get_view().clear(); + + foreach (MediaSourceCollection col in MediaCollectionRegistry.get_instance().get_all()) { + get_view().monitor_source_collection(col, new LastImportViewManager(this, + last_import_id), last_import_alteration); + } + } ~LastImportPage() { foreach (MediaSourceCollection col in MediaCollectionRegistry.get_instance().get_all()) { diff --git a/src/library/LastImportSidebarEntry.c b/src/library/LastImportSidebarEntry.c deleted file mode 100644 index 8640578..0000000 --- a/src/library/LastImportSidebarEntry.c +++ /dev/null @@ -1,644 +0,0 @@ -/* LastImportSidebarEntry.c generated by valac 0.40.4, the Vala compiler - * generated from LastImportSidebarEntry.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ()) -#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry)) -#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY)) -#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface)) - -typedef struct _SidebarEntry SidebarEntry; -typedef struct _SidebarEntryIface SidebarEntryIface; - -#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ()) -#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree)) -#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass)) -#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass)) - -typedef struct _SidebarTree SidebarTree; -typedef struct _SidebarTreeClass SidebarTreeClass; - -#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ()) -#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry)) -#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY)) -#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface)) - -typedef struct _SidebarSelectableEntry SidebarSelectableEntry; -typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface; - -#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ()) -#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)) -#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE)) -#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface)) - -typedef struct _SidebarPageRepresentative SidebarPageRepresentative; -typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ()) -#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable)) -#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE)) -#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface)) - -typedef struct _SidebarContextable SidebarContextable; -typedef struct _SidebarContextableIface SidebarContextableIface; - -#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ()) -#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) - -typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry; -typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass; -typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate; - -#define LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY (library_hideable_page_entry_get_type ()) -#define LIBRARY_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry)) -#define LIBRARY_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass)) -#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY)) -#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY)) -#define LIBRARY_HIDEABLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass)) - -typedef struct _LibraryHideablePageEntry LibraryHideablePageEntry; -typedef struct _LibraryHideablePageEntryClass LibraryHideablePageEntryClass; -typedef struct _LibraryHideablePageEntryPrivate LibraryHideablePageEntryPrivate; - -#define LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY (library_last_import_sidebar_entry_get_type ()) -#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntry)) -#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntryClass)) -#define LIBRARY_IS_LAST_IMPORT_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY)) -#define LIBRARY_IS_LAST_IMPORT_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY)) -#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntryClass)) - -typedef struct _LibraryLastImportSidebarEntry LibraryLastImportSidebarEntry; -typedef struct _LibraryLastImportSidebarEntryClass LibraryLastImportSidebarEntryClass; -typedef struct _LibraryLastImportSidebarEntryPrivate LibraryLastImportSidebarEntryPrivate; -enum { - LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_0_PROPERTY, - LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* library_last_import_sidebar_entry_properties[LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_NUM_PROPERTIES]; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_IMPORT_ID (import_id_get_type ()) -typedef struct _ImportID ImportID; -#define _import_id_free0(var) ((var == NULL) ? NULL : (var = (import_id_free (var), NULL))) - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; - -#define TYPE_LAST_IMPORT_PAGE (last_import_page_get_type ()) -#define LAST_IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LAST_IMPORT_PAGE, LastImportPage)) -#define LAST_IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LAST_IMPORT_PAGE, LastImportPageClass)) -#define IS_LAST_IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LAST_IMPORT_PAGE)) -#define IS_LAST_IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LAST_IMPORT_PAGE)) -#define LAST_IMPORT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LAST_IMPORT_PAGE, LastImportPageClass)) - -typedef struct _LastImportPage LastImportPage; -typedef struct _LastImportPageClass LastImportPageClass; - -struct _SidebarEntryIface { - GTypeInterface parent_iface; - gchar* (*get_sidebar_name) (SidebarEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarEntry* self); - gchar* (*get_sidebar_icon) (SidebarEntry* self); - gchar* (*to_string) (SidebarEntry* self); - void (*grafted) (SidebarEntry* self, SidebarTree* tree); - void (*pruned) (SidebarEntry* self, SidebarTree* tree); -}; - -struct _SidebarSelectableEntryIface { - GTypeInterface parent_iface; -}; - -struct _SidebarPageRepresentativeIface { - GTypeInterface parent_iface; - gboolean (*has_page) (SidebarPageRepresentative* self); - Page* (*get_page) (SidebarPageRepresentative* self); -}; - -struct _SidebarContextableIface { - GTypeInterface parent_iface; - GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event); -}; - -struct _SidebarSimplePageEntry { - GObject parent_instance; - SidebarSimplePageEntryPrivate * priv; -}; - -struct _SidebarSimplePageEntryClass { - GObjectClass parent_class; - gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self); - gchar* (*to_string) (SidebarSimplePageEntry* self); - Page* (*create_page) (SidebarSimplePageEntry* self); -}; - -struct _LibraryHideablePageEntry { - SidebarSimplePageEntry parent_instance; - LibraryHideablePageEntryPrivate * priv; -}; - -struct _LibraryHideablePageEntryClass { - SidebarSimplePageEntryClass parent_class; -}; - -struct _LibraryLastImportSidebarEntry { - LibraryHideablePageEntry parent_instance; - LibraryLastImportSidebarEntryPrivate * priv; -}; - -struct _LibraryLastImportSidebarEntryClass { - LibraryHideablePageEntryClass parent_class; -}; - -struct _ImportID { - gint64 id; -}; - - -static gpointer library_last_import_sidebar_entry_parent_class = NULL; - -GType sidebar_tree_get_type (void) G_GNUC_CONST; -GType sidebar_entry_get_type (void) G_GNUC_CONST; -GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType sidebar_page_representative_get_type (void) G_GNUC_CONST; -GType sidebar_contextable_get_type (void) G_GNUC_CONST; -GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST; -GType library_hideable_page_entry_get_type (void) G_GNUC_CONST; -GType library_last_import_sidebar_entry_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self); -static void library_last_import_sidebar_entry_on_import_rolls_altered (LibraryLastImportSidebarEntry* self); -static void _library_last_import_sidebar_entry_on_import_rolls_altered_media_source_collection_import_roll_altered (MediaSourceCollection* _sender, - gpointer self); -LibraryLastImportSidebarEntry* library_last_import_sidebar_entry_new (void); -LibraryLastImportSidebarEntry* library_last_import_sidebar_entry_construct (GType object_type); -LibraryHideablePageEntry* library_hideable_page_entry_construct (GType object_type); -GType import_id_get_type (void) G_GNUC_CONST; -ImportID* import_id_dup (const ImportID* self); -void import_id_free (ImportID* self); -ImportID* media_collection_registry_get_last_import_id (MediaCollectionRegistry* self); -void library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self, - gboolean value); -static gchar* library_last_import_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base); -#define LAST_IMPORT_PAGE_NAME _ ("Last Import") -static gchar* library_last_import_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base); -#define RESOURCES_ICON_LAST_IMPORT "document-open-recent" -static Page* library_last_import_sidebar_entry_real_create_page (SidebarSimplePageEntry* base); -LastImportPage* last_import_page_new (void); -LastImportPage* last_import_page_construct (GType object_type); -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType media_page_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -GType last_import_page_get_type (void) G_GNUC_CONST; -static void library_last_import_sidebar_entry_finalize (GObject * obj); - - -static void -_library_last_import_sidebar_entry_on_import_rolls_altered_media_source_collection_import_roll_altered (MediaSourceCollection* _sender, - gpointer self) -{ -#line 17 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - library_last_import_sidebar_entry_on_import_rolls_altered ((LibraryLastImportSidebarEntry*) self); -#line 345 "LastImportSidebarEntry.c" -} - - -LibraryLastImportSidebarEntry* -library_last_import_sidebar_entry_construct (GType object_type) -{ - LibraryLastImportSidebarEntry * self = NULL; - MediaCollectionRegistry* _tmp10_; - MediaCollectionRegistry* _tmp11_; - ImportID* _tmp12_; - ImportID* _tmp13_; -#line 8 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - self = (LibraryLastImportSidebarEntry*) library_hideable_page_entry_construct (object_type); -#line 359 "LastImportSidebarEntry.c" - { - GeeIterator* _media_sources_it = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp2_ = media_collection_registry_get_all (_tmp1_); -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp3_ = _tmp2_; -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp5_ = _tmp4_; -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _g_object_unref0 (_tmp3_); -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _media_sources_it = _tmp5_; -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - while (TRUE) { -#line 388 "LastImportSidebarEntry.c" - GeeIterator* _tmp6_; - MediaSourceCollection* media_sources = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - MediaSourceCollection* _tmp9_; -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp6_ = _media_sources_it; -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - break; -#line 400 "LastImportSidebarEntry.c" - } -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp7_ = _media_sources_it; -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - media_sources = (MediaSourceCollection*) _tmp8_; -#line 10 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp9_ = media_sources; -#line 10 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - g_signal_connect_object (_tmp9_, "import-roll-altered", (GCallback) _library_last_import_sidebar_entry_on_import_rolls_altered_media_source_collection_import_roll_altered, self, 0); -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _data_collection_unref0 (media_sources); -#line 414 "LastImportSidebarEntry.c" - } -#line 9 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _g_object_unref0 (_media_sources_it); -#line 418 "LastImportSidebarEntry.c" - } -#line 12 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp10_ = media_collection_registry_get_instance (); -#line 12 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp11_ = _tmp10_; -#line 12 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp12_ = media_collection_registry_get_last_import_id (_tmp11_); -#line 12 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp13_ = _tmp12_; -#line 12 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), _tmp13_ != NULL); -#line 12 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _import_id_free0 (_tmp13_); -#line 12 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _media_collection_registry_unref0 (_tmp11_); -#line 8 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - return self; -#line 436 "LastImportSidebarEntry.c" -} - - -LibraryLastImportSidebarEntry* -library_last_import_sidebar_entry_new (void) -{ -#line 8 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - return library_last_import_sidebar_entry_construct (LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY); -#line 445 "LastImportSidebarEntry.c" -} - - -static gchar* -library_last_import_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) -{ - LibraryLastImportSidebarEntry * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 20 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntry); -#line 21 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp0_ = g_strdup (LAST_IMPORT_PAGE_NAME); -#line 21 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - result = _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - return result; -#line 463 "LastImportSidebarEntry.c" -} - - -static gchar* -library_last_import_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) -{ - LibraryLastImportSidebarEntry * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 24 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntry); -#line 25 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp0_ = g_strdup (RESOURCES_ICON_LAST_IMPORT); -#line 25 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - result = _tmp0_; -#line 25 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - return result; -#line 481 "LastImportSidebarEntry.c" -} - - -static Page* -library_last_import_sidebar_entry_real_create_page (SidebarSimplePageEntry* base) -{ - LibraryLastImportSidebarEntry * self; - Page* result = NULL; - LastImportPage* _tmp0_; -#line 28 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntry); -#line 29 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp0_ = last_import_page_new (); -#line 29 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - g_object_ref_sink (_tmp0_); -#line 29 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page); -#line 29 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - return result; -#line 501 "LastImportSidebarEntry.c" -} - - -static void -library_last_import_sidebar_entry_on_import_rolls_altered (LibraryLastImportSidebarEntry* self) -{ - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - ImportID* _tmp2_; - ImportID* _tmp3_; -#line 32 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - g_return_if_fail (LIBRARY_IS_LAST_IMPORT_SIDEBAR_ENTRY (self)); -#line 33 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 33 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 33 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp2_ = media_collection_registry_get_last_import_id (_tmp1_); -#line 33 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp3_ = _tmp2_; -#line 33 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), _tmp3_ != NULL); -#line 33 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _import_id_free0 (_tmp3_); -#line 33 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 528 "LastImportSidebarEntry.c" -} - - -static void -library_last_import_sidebar_entry_class_init (LibraryLastImportSidebarEntryClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - library_last_import_sidebar_entry_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) library_last_import_sidebar_entry_real_get_sidebar_name; -#line 7 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) library_last_import_sidebar_entry_real_get_sidebar_icon; -#line 7 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) library_last_import_sidebar_entry_real_create_page; -#line 7 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - G_OBJECT_CLASS (klass)->finalize = library_last_import_sidebar_entry_finalize; -#line 545 "LastImportSidebarEntry.c" -} - - -static void -library_last_import_sidebar_entry_instance_init (LibraryLastImportSidebarEntry * self) -{ -} - - -static void -library_last_import_sidebar_entry_finalize (GObject * obj) -{ - LibraryLastImportSidebarEntry * self; -#line 7 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntry); -#line 561 "LastImportSidebarEntry.c" - { - GeeIterator* _media_sources_it = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp2_ = media_collection_registry_get_all (_tmp1_); -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp3_ = _tmp2_; -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp5_ = _tmp4_; -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _g_object_unref0 (_tmp3_); -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _media_sources_it = _tmp5_; -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - while (TRUE) { -#line 590 "LastImportSidebarEntry.c" - GeeIterator* _tmp6_; - MediaSourceCollection* media_sources = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - MediaSourceCollection* _tmp9_; - guint _tmp10_; -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp6_ = _media_sources_it; -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - break; -#line 603 "LastImportSidebarEntry.c" - } -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp7_ = _media_sources_it; -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - media_sources = (MediaSourceCollection*) _tmp8_; -#line 17 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _tmp9_ = media_sources; -#line 17 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - g_signal_parse_name ("import-roll-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp10_, NULL, FALSE); -#line 17 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _library_last_import_sidebar_entry_on_import_rolls_altered_media_source_collection_import_roll_altered, self); -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _data_collection_unref0 (media_sources); -#line 619 "LastImportSidebarEntry.c" - } -#line 16 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - _g_object_unref0 (_media_sources_it); -#line 623 "LastImportSidebarEntry.c" - } -#line 7 "/home/jens/Source/shotwell/src/library/LastImportSidebarEntry.vala" - G_OBJECT_CLASS (library_last_import_sidebar_entry_parent_class)->finalize (obj); -#line 627 "LastImportSidebarEntry.c" -} - - -GType -library_last_import_sidebar_entry_get_type (void) -{ - static volatile gsize library_last_import_sidebar_entry_type_id__volatile = 0; - if (g_once_init_enter (&library_last_import_sidebar_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryLastImportSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_last_import_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryLastImportSidebarEntry), 0, (GInstanceInitFunc) library_last_import_sidebar_entry_instance_init, NULL }; - GType library_last_import_sidebar_entry_type_id; - library_last_import_sidebar_entry_type_id = g_type_register_static (LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, "LibraryLastImportSidebarEntry", &g_define_type_info, 0); - g_once_init_leave (&library_last_import_sidebar_entry_type_id__volatile, library_last_import_sidebar_entry_type_id); - } - return library_last_import_sidebar_entry_type_id__volatile; -} - - - diff --git a/src/library/Library.c b/src/library/Library.c deleted file mode 100644 index e81e681..0000000 --- a/src/library/Library.c +++ /dev/null @@ -1,51 +0,0 @@ -/* Library.c generated by valac 0.40.4, the Vala compiler - * generated from Library.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include - - - - -void library_init (GError** error); -void library_trash_sidebar_entry_init (void); -gboolean photo_get_develop_raw_photos_to_files (void); -void photo_set_develop_raw_photos_to_files (gboolean value); -void library_terminate (void); -void library_trash_sidebar_entry_terminate (void); - - -void -library_init (GError** error) -{ - gboolean _tmp0_; - gboolean _tmp1_; -#line 10 "/home/jens/Source/shotwell/src/library/Library.vala" - library_trash_sidebar_entry_init (); -#line 11 "/home/jens/Source/shotwell/src/library/Library.vala" - _tmp0_ = photo_get_develop_raw_photos_to_files (); -#line 11 "/home/jens/Source/shotwell/src/library/Library.vala" - _tmp1_ = _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/library/Library.vala" - photo_set_develop_raw_photos_to_files (TRUE); -#line 39 "Library.c" -} - - -void -library_terminate (void) -{ -#line 15 "/home/jens/Source/shotwell/src/library/Library.vala" - library_trash_sidebar_entry_terminate (); -#line 48 "Library.c" -} - - - diff --git a/src/library/LibraryBranch.c b/src/library/LibraryBranch.c deleted file mode 100644 index d46cc91..0000000 --- a/src/library/LibraryBranch.c +++ /dev/null @@ -1,2363 +0,0 @@ -/* LibraryBranch.c generated by valac 0.40.4, the Vala compiler - * generated from LibraryBranch.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ()) -#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch)) -#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) -#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) - -typedef struct _SidebarBranch SidebarBranch; -typedef struct _SidebarBranchClass SidebarBranchClass; -typedef struct _SidebarBranchPrivate SidebarBranchPrivate; - -#define LIBRARY_TYPE_BRANCH (library_branch_get_type ()) -#define LIBRARY_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_BRANCH, LibraryBranch)) -#define LIBRARY_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_BRANCH, LibraryBranchClass)) -#define LIBRARY_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_BRANCH)) -#define LIBRARY_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_BRANCH)) -#define LIBRARY_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_BRANCH, LibraryBranchClass)) - -typedef struct _LibraryBranch LibraryBranch; -typedef struct _LibraryBranchClass LibraryBranchClass; -typedef struct _LibraryBranchPrivate LibraryBranchPrivate; - -#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ()) -#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) - -typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry; -typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass; - -#define LIBRARY_TYPE_PHOTOS_ENTRY (library_photos_entry_get_type ()) -#define LIBRARY_PHOTOS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntry)) -#define LIBRARY_PHOTOS_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntryClass)) -#define LIBRARY_IS_PHOTOS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_PHOTOS_ENTRY)) -#define LIBRARY_IS_PHOTOS_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_PHOTOS_ENTRY)) -#define LIBRARY_PHOTOS_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntryClass)) - -typedef struct _LibraryPhotosEntry LibraryPhotosEntry; -typedef struct _LibraryPhotosEntryClass LibraryPhotosEntryClass; - -#define LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY (library_hideable_page_entry_get_type ()) -#define LIBRARY_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry)) -#define LIBRARY_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass)) -#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY)) -#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY)) -#define LIBRARY_HIDEABLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass)) - -typedef struct _LibraryHideablePageEntry LibraryHideablePageEntry; -typedef struct _LibraryHideablePageEntryClass LibraryHideablePageEntryClass; - -#define LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY (library_flagged_sidebar_entry_get_type ()) -#define LIBRARY_FLAGGED_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntry)) -#define LIBRARY_FLAGGED_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntryClass)) -#define LIBRARY_IS_FLAGGED_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY)) -#define LIBRARY_IS_FLAGGED_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY)) -#define LIBRARY_FLAGGED_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, LibraryFlaggedSidebarEntryClass)) - -typedef struct _LibraryFlaggedSidebarEntry LibraryFlaggedSidebarEntry; -typedef struct _LibraryFlaggedSidebarEntryClass LibraryFlaggedSidebarEntryClass; - -#define LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY (library_last_import_sidebar_entry_get_type ()) -#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntry)) -#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntryClass)) -#define LIBRARY_IS_LAST_IMPORT_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY)) -#define LIBRARY_IS_LAST_IMPORT_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY)) -#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntryClass)) - -typedef struct _LibraryLastImportSidebarEntry LibraryLastImportSidebarEntry; -typedef struct _LibraryLastImportSidebarEntryClass LibraryLastImportSidebarEntryClass; - -#define LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY (library_import_queue_sidebar_entry_get_type ()) -#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntry)) -#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntryClass)) -#define LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY)) -#define LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY)) -#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntryClass)) - -typedef struct _LibraryImportQueueSidebarEntry LibraryImportQueueSidebarEntry; -typedef struct _LibraryImportQueueSidebarEntryClass LibraryImportQueueSidebarEntryClass; - -#define LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY (library_offline_sidebar_entry_get_type ()) -#define LIBRARY_OFFLINE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntry)) -#define LIBRARY_OFFLINE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntryClass)) -#define LIBRARY_IS_OFFLINE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY)) -#define LIBRARY_IS_OFFLINE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY)) -#define LIBRARY_OFFLINE_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntryClass)) - -typedef struct _LibraryOfflineSidebarEntry LibraryOfflineSidebarEntry; -typedef struct _LibraryOfflineSidebarEntryClass LibraryOfflineSidebarEntryClass; - -#define LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY (library_trash_sidebar_entry_get_type ()) -#define LIBRARY_TRASH_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry)) -#define LIBRARY_TRASH_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntryClass)) -#define LIBRARY_IS_TRASH_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY)) -#define LIBRARY_IS_TRASH_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY)) -#define LIBRARY_TRASH_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntryClass)) - -typedef struct _LibraryTrashSidebarEntry LibraryTrashSidebarEntry; -typedef struct _LibraryTrashSidebarEntryClass LibraryTrashSidebarEntryClass; -enum { - LIBRARY_BRANCH_0_PROPERTY, - LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY, - LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY, - LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY, - LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY, - LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY, - LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY, - LIBRARY_BRANCH_NUM_PROPERTIES -}; -static GParamSpec* library_branch_properties[LIBRARY_BRANCH_NUM_PROPERTIES]; - -#define LIBRARY_BRANCH_TYPE_ENTRY_POSITION (library_branch_entry_position_get_type ()) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define SIDEBAR_TYPE_GROUPING (sidebar_grouping_get_type ()) -#define SIDEBAR_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_GROUPING, SidebarGrouping)) -#define SIDEBAR_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass)) -#define SIDEBAR_IS_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_GROUPING)) -#define SIDEBAR_IS_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_GROUPING)) -#define SIDEBAR_GROUPING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass)) - -typedef struct _SidebarGrouping SidebarGrouping; -typedef struct _SidebarGroupingClass SidebarGroupingClass; - -#define SIDEBAR_TYPE_HEADER (sidebar_header_get_type ()) -#define SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_HEADER, SidebarHeader)) -#define SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_HEADER, SidebarHeaderClass)) -#define SIDEBAR_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_HEADER)) -#define SIDEBAR_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_HEADER)) -#define SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_HEADER, SidebarHeaderClass)) - -typedef struct _SidebarHeader SidebarHeader; -typedef struct _SidebarHeaderClass SidebarHeaderClass; - -#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ()) -#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry)) -#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY)) -#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface)) - -typedef struct _SidebarEntry SidebarEntry; -typedef struct _SidebarEntryIface SidebarEntryIface; - -#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ()) -#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree)) -#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass)) -#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass)) - -typedef struct _SidebarTree SidebarTree; -typedef struct _SidebarTreeClass SidebarTreeClass; - -#define SIDEBAR_BRANCH_TYPE_OPTIONS (sidebar_branch_options_get_type ()) - -#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ()) -#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry)) -#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY)) -#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface)) - -typedef struct _SidebarSelectableEntry SidebarSelectableEntry; -typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface; - -#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ()) -#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)) -#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE)) -#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface)) - -typedef struct _SidebarPageRepresentative SidebarPageRepresentative; -typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ()) -#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable)) -#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE)) -#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface)) - -typedef struct _SidebarContextable SidebarContextable; -typedef struct _SidebarContextableIface SidebarContextableIface; -typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate; -typedef struct _LibraryPhotosEntryPrivate LibraryPhotosEntryPrivate; -enum { - LIBRARY_PHOTOS_ENTRY_0_PROPERTY, - LIBRARY_PHOTOS_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* library_photos_entry_properties[LIBRARY_PHOTOS_ENTRY_NUM_PROPERTIES]; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; - -#define LIBRARY_TYPE_MAIN_PAGE (library_main_page_get_type ()) -#define LIBRARY_MAIN_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_MAIN_PAGE, LibraryMainPage)) -#define LIBRARY_MAIN_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_MAIN_PAGE, LibraryMainPageClass)) -#define LIBRARY_IS_MAIN_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_MAIN_PAGE)) -#define LIBRARY_IS_MAIN_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_MAIN_PAGE)) -#define LIBRARY_MAIN_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_MAIN_PAGE, LibraryMainPageClass)) - -typedef struct _LibraryMainPage LibraryMainPage; -typedef struct _LibraryMainPageClass LibraryMainPageClass; -typedef struct _LibraryHideablePageEntryPrivate LibraryHideablePageEntryPrivate; -enum { - LIBRARY_HIDEABLE_PAGE_ENTRY_0_PROPERTY, - LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY, - LIBRARY_HIDEABLE_PAGE_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* library_hideable_page_entry_properties[LIBRARY_HIDEABLE_PAGE_ENTRY_NUM_PROPERTIES]; -enum { - LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBILITY_CHANGED_SIGNAL, - LIBRARY_HIDEABLE_PAGE_ENTRY_NUM_SIGNALS -}; -static guint library_hideable_page_entry_signals[LIBRARY_HIDEABLE_PAGE_ENTRY_NUM_SIGNALS] = {0}; -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; -typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; - -#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ()) - -#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ()) -typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ()) -#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)) -#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) -#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER)) -#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER)) -#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) - -typedef struct _SearchViewFilter SearchViewFilter; -typedef struct _SearchViewFilterClass SearchViewFilterClass; - -#define CORE_TYPE_TRACKER (core_tracker_get_type ()) -#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) -#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) -#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) -#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) -#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) - -typedef struct _CoreTracker CoreTracker; -typedef struct _CoreTrackerClass CoreTrackerClass; - -#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) -#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) -#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) -#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) -#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) -#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) - -typedef struct _CoreViewTracker CoreViewTracker; -typedef struct _CoreViewTrackerClass CoreViewTrackerClass; -typedef struct _MediaPagePrivate MediaPagePrivate; - -#define TYPE_RATING (rating_get_type ()) - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; -typedef struct _CollectionPagePrivate CollectionPagePrivate; -typedef struct _LibraryMainPagePrivate LibraryMainPagePrivate; -enum { - LIBRARY_MAIN_PAGE_0_PROPERTY, - LIBRARY_MAIN_PAGE_NUM_PROPERTIES -}; -static GParamSpec* library_main_page_properties[LIBRARY_MAIN_PAGE_NUM_PROPERTIES]; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; - -#define TYPE_VIEW_MANAGER (view_manager_get_type ()) -#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager)) -#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass)) -#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER)) -#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER)) -#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass)) - -typedef struct _ViewManager ViewManager; -typedef struct _ViewManagerClass ViewManagerClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ()) -#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor)) -#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) -#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) - -typedef struct _ViewCollectionMonitor ViewCollectionMonitor; -typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass; - -#define TYPE_COLLECTION_VIEW_MANAGER (collection_view_manager_get_type ()) -#define COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager)) -#define COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass)) -#define IS_COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_VIEW_MANAGER)) -#define IS_COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_VIEW_MANAGER)) -#define COLLECTION_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass)) - -typedef struct _CollectionViewManager CollectionViewManager; -typedef struct _CollectionViewManagerClass CollectionViewManagerClass; -#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL))) -#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL))) -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; - -struct _SidebarBranch { - GObject parent_instance; - SidebarBranchPrivate * priv; -}; - -struct _SidebarBranchClass { - GObjectClass parent_class; -}; - -struct _LibraryBranch { - SidebarBranch parent_instance; - LibraryBranchPrivate * priv; -}; - -struct _LibraryBranchClass { - SidebarBranchClass parent_class; -}; - -struct _LibraryBranchPrivate { - LibraryPhotosEntry* _photos_entry; - LibraryFlaggedSidebarEntry* _flagged_entry; - LibraryLastImportSidebarEntry* _last_imported_entry; - LibraryImportQueueSidebarEntry* _import_queue_entry; - LibraryOfflineSidebarEntry* _offline_entry; - LibraryTrashSidebarEntry* _trash_entry; -}; - -typedef enum { - LIBRARY_BRANCH_ENTRY_POSITION_PHOTOS, - LIBRARY_BRANCH_ENTRY_POSITION_FLAGGED, - LIBRARY_BRANCH_ENTRY_POSITION_LAST_IMPORTED, - LIBRARY_BRANCH_ENTRY_POSITION_IMPORT_QUEUE, - LIBRARY_BRANCH_ENTRY_POSITION_OFFLINE, - LIBRARY_BRANCH_ENTRY_POSITION_TRASH -} LibraryBranchEntryPosition; - -struct _SidebarEntryIface { - GTypeInterface parent_iface; - gchar* (*get_sidebar_name) (SidebarEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarEntry* self); - gchar* (*get_sidebar_icon) (SidebarEntry* self); - gchar* (*to_string) (SidebarEntry* self); - void (*grafted) (SidebarEntry* self, SidebarTree* tree); - void (*pruned) (SidebarEntry* self, SidebarTree* tree); -}; - -typedef enum { - SIDEBAR_BRANCH_OPTIONS_NONE = 0, - SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY = 1 << 0, - SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD = 1 << 1, - SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD = 1 << 2, - SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING = 1 << 3 -} SidebarBranchOptions; - -struct _SidebarSelectableEntryIface { - GTypeInterface parent_iface; -}; - -struct _SidebarPageRepresentativeIface { - GTypeInterface parent_iface; - gboolean (*has_page) (SidebarPageRepresentative* self); - Page* (*get_page) (SidebarPageRepresentative* self); -}; - -struct _SidebarContextableIface { - GTypeInterface parent_iface; - GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event); -}; - -struct _SidebarSimplePageEntry { - GObject parent_instance; - SidebarSimplePageEntryPrivate * priv; -}; - -struct _SidebarSimplePageEntryClass { - GObjectClass parent_class; - gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self); - gchar* (*to_string) (SidebarSimplePageEntry* self); - Page* (*create_page) (SidebarSimplePageEntry* self); -}; - -struct _LibraryPhotosEntry { - SidebarSimplePageEntry parent_instance; - LibraryPhotosEntryPrivate * priv; -}; - -struct _LibraryPhotosEntryClass { - SidebarSimplePageEntryClass parent_class; -}; - -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _LibraryHideablePageEntry { - SidebarSimplePageEntry parent_instance; - LibraryHideablePageEntryPrivate * priv; -}; - -struct _LibraryHideablePageEntryClass { - SidebarSimplePageEntryClass parent_class; -}; - -struct _LibraryHideablePageEntryPrivate { - gboolean show_entry; -}; - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -typedef enum { - CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, - CHECKERBOARD_PAGE_ACTIVATOR_MOUSE -} CheckerboardPageActivator; - -struct _CheckerboardPageKeyboardModifiers { - gboolean ctrl_pressed; - gboolean alt_pressed; - gboolean shift_pressed; - gboolean super_pressed; -}; - -struct _CheckerboardPage { - Page parent_instance; - CheckerboardPagePrivate * priv; - CheckerboardItem* anchor; - CheckerboardItem* cursor; -}; - -struct _CheckerboardPageClass { - PageClass parent_class; - GtkMenu* (*get_item_context_menu) (CheckerboardPage* self); - gchar* (*get_view_empty_message) (CheckerboardPage* self); - gchar* (*get_filter_no_match_message) (CheckerboardPage* self); - void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers); - SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self); - CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self); - gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask); - void (*set_display_titles) (CheckerboardPage* self, gboolean display); - void (*set_display_comments) (CheckerboardPage* self, gboolean display); -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _MediaPage { - CheckerboardPage parent_instance; - MediaPagePrivate * priv; -}; - -struct _MediaPageClass { - CheckerboardPageClass parent_class; - void (*on_zoom_changed) (MediaPage* self); - void (*on_export) (MediaPage* self); - void (*on_increase_size) (MediaPage* self); - void (*on_decrease_size) (MediaPage* self); - void (*on_increase_rating) (MediaPage* self); - void (*on_decrease_rating) (MediaPage* self); - void (*on_set_rating) (MediaPage* self, Rating rating); - void (*on_rate_rejected) (MediaPage* self); - void (*on_rate_unrated) (MediaPage* self); - void (*on_rate_one) (MediaPage* self); - void (*on_rate_two) (MediaPage* self); - void (*on_rate_three) (MediaPage* self); - void (*on_rate_four) (MediaPage* self); - void (*on_rate_five) (MediaPage* self); - void (*on_move_to_trash) (MediaPage* self); - void (*on_edit_title) (MediaPage* self); - void (*on_edit_comment) (MediaPage* self); - void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by); - void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by); - void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*developer_changed) (MediaPage* self, RawDeveloper rd); - DataView* (*create_thumbnail) (MediaPage* self, DataSource* source); -}; - -struct _CollectionPage { - MediaPage parent_instance; - CollectionPagePrivate * priv; -}; - -struct _CollectionPageClass { - MediaPageClass parent_class; -}; - -struct _LibraryMainPage { - CollectionPage parent_instance; - LibraryMainPagePrivate * priv; -}; - -struct _LibraryMainPageClass { - CollectionPageClass parent_class; -}; - - -static gpointer library_branch_parent_class = NULL; -static gpointer library_photos_entry_parent_class = NULL; -static gpointer library_hideable_page_entry_parent_class = NULL; -static gpointer library_main_page_parent_class = NULL; - -GType sidebar_branch_get_type (void) G_GNUC_CONST; -GType library_branch_get_type (void) G_GNUC_CONST; -GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST; -GType library_photos_entry_get_type (void) G_GNUC_CONST; -GType library_hideable_page_entry_get_type (void) G_GNUC_CONST; -GType library_flagged_sidebar_entry_get_type (void) G_GNUC_CONST; -GType library_last_import_sidebar_entry_get_type (void) G_GNUC_CONST; -GType library_import_queue_sidebar_entry_get_type (void) G_GNUC_CONST; -GType library_offline_sidebar_entry_get_type (void) G_GNUC_CONST; -GType library_trash_sidebar_entry_get_type (void) G_GNUC_CONST; -#define LIBRARY_BRANCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), LIBRARY_TYPE_BRANCH, LibraryBranchPrivate)) -static GType library_branch_entry_position_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define LIBRARY_BRANCH_POSITION_DATA "x-photos-entry-position" -LibraryBranch* library_branch_new (void); -LibraryBranch* library_branch_construct (GType object_type); -SidebarHeader* sidebar_header_new (const gchar* name, - const gchar* tooltip, - gboolean emphasized); -SidebarHeader* sidebar_header_construct (GType object_type, - const gchar* name, - const gchar* tooltip, - gboolean emphasized); -GType sidebar_grouping_get_type (void) G_GNUC_CONST; -GType sidebar_header_get_type (void) G_GNUC_CONST; -GType sidebar_tree_get_type (void) G_GNUC_CONST; -GType sidebar_entry_get_type (void) G_GNUC_CONST; -GType sidebar_branch_options_get_type (void) G_GNUC_CONST; -static gint library_branch_comparator (SidebarEntry* a, - SidebarEntry* b); -static gint _library_branch_comparator_gcompare_func (gconstpointer a, - gconstpointer b); -SidebarBranch* sidebar_branch_new (SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator); -SidebarBranch* sidebar_branch_construct (GType object_type, - SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator); -LibraryPhotosEntry* library_photos_entry_new (void); -LibraryPhotosEntry* library_photos_entry_construct (GType object_type); -static void library_branch_set_photos_entry (LibraryBranch* self, - LibraryPhotosEntry* value); -LibraryTrashSidebarEntry* library_trash_sidebar_entry_new (void); -LibraryTrashSidebarEntry* library_trash_sidebar_entry_construct (GType object_type); -static void library_branch_set_trash_entry (LibraryBranch* self, - LibraryTrashSidebarEntry* value); -LibraryLastImportSidebarEntry* library_last_import_sidebar_entry_new (void); -LibraryLastImportSidebarEntry* library_last_import_sidebar_entry_construct (GType object_type); -static void library_branch_set_last_imported_entry (LibraryBranch* self, - LibraryLastImportSidebarEntry* value); -LibraryFlaggedSidebarEntry* library_flagged_sidebar_entry_new (void); -LibraryFlaggedSidebarEntry* library_flagged_sidebar_entry_construct (GType object_type); -static void library_branch_set_flagged_entry (LibraryBranch* self, - LibraryFlaggedSidebarEntry* value); -LibraryOfflineSidebarEntry* library_offline_sidebar_entry_new (void); -LibraryOfflineSidebarEntry* library_offline_sidebar_entry_construct (GType object_type); -static void library_branch_set_offline_entry (LibraryBranch* self, - LibraryOfflineSidebarEntry* value); -LibraryImportQueueSidebarEntry* library_import_queue_sidebar_entry_new (void); -LibraryImportQueueSidebarEntry* library_import_queue_sidebar_entry_construct (GType object_type); -static void library_branch_set_import_queue_entry (LibraryBranch* self, - LibraryImportQueueSidebarEntry* value); -static void library_branch_insert (LibraryBranch* self, - SidebarEntry* entry, - gint position); -LibraryPhotosEntry* library_branch_get_photos_entry (LibraryBranch* self); -LibraryTrashSidebarEntry* library_branch_get_trash_entry (LibraryBranch* self); -LibraryFlaggedSidebarEntry* library_branch_get_flagged_entry (LibraryBranch* self); -static void library_branch_on_flagged_visibility_changed (LibraryBranch* self); -static void _library_branch_on_flagged_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, - gboolean visible, - gpointer self); -LibraryLastImportSidebarEntry* library_branch_get_last_imported_entry (LibraryBranch* self); -static void library_branch_on_last_imported_visibility_changed (LibraryBranch* self); -static void _library_branch_on_last_imported_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, - gboolean visible, - gpointer self); -LibraryImportQueueSidebarEntry* library_branch_get_import_queue_entry (LibraryBranch* self); -static void library_branch_on_import_queue_visibility_changed (LibraryBranch* self); -static void _library_branch_on_import_queue_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, - gboolean visible, - gpointer self); -LibraryOfflineSidebarEntry* library_branch_get_offline_entry (LibraryBranch* self); -static void library_branch_on_offline_visibility_changed (LibraryBranch* self); -static void _library_branch_on_offline_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, - gboolean visible, - gpointer self); -void sidebar_branch_graft (SidebarBranch* self, - SidebarEntry* parent, - SidebarEntry* entry, - GCompareFunc comparator); -SidebarEntry* sidebar_branch_get_root (SidebarBranch* self); -static void library_branch_update_entry_visibility (LibraryBranch* self, - LibraryHideablePageEntry* entry, - gint position); -gboolean library_hideable_page_entry_get_visible (LibraryHideablePageEntry* self); -gboolean sidebar_branch_has_entry (SidebarBranch* self, - SidebarEntry* entry); -void sidebar_branch_prune (SidebarBranch* self, - SidebarEntry* entry); -static void library_branch_finalize (GObject * obj); -static void _vala_library_branch_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_library_branch_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType sidebar_page_representative_get_type (void) G_GNUC_CONST; -GType sidebar_contextable_get_type (void) G_GNUC_CONST; -SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type); -static gchar* library_photos_entry_real_get_sidebar_name (SidebarSimplePageEntry* base); -static gchar* library_photos_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base); -#define RESOURCES_ICON_PHOTOS "shotwell" -static Page* library_photos_entry_real_create_page (SidebarSimplePageEntry* base); -LibraryMainPage* library_main_page_new (ProgressMonitor monitor, - void* monitor_target); -LibraryMainPage* library_main_page_construct (GType object_type, - ProgressMonitor monitor, - void* monitor_target); -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType media_page_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -GType library_main_page_get_type (void) G_GNUC_CONST; -#define LIBRARY_HIDEABLE_PAGE_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryPrivate)) -LibraryHideablePageEntry* library_hideable_page_entry_construct (GType object_type); -void library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self, - gboolean value); -static void library_hideable_page_entry_finalize (GObject * obj); -static void _vala_library_hideable_page_entry_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_library_hideable_page_entry_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType checkerboard_page_activator_get_type (void) G_GNUC_CONST; -GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST; -CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self); -void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self); -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -GType search_view_filter_get_type (void) G_GNUC_CONST; -gpointer core_tracker_ref (gpointer instance); -void core_tracker_unref (gpointer instance); -GParamSpec* core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void core_value_set_tracker (GValue* value, - gpointer v_object); -void core_value_take_tracker (GValue* value, - gpointer v_object); -gpointer core_value_get_tracker (const GValue* value); -GType core_tracker_get_type (void) G_GNUC_CONST; -GType core_view_tracker_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -GType raw_developer_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -#define LIBRARY_MAIN_PAGE_NAME _ ("Library") -CollectionPage* collection_page_construct (GType object_type, - const gchar* page_name); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self); -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -gpointer view_manager_ref (gpointer instance); -void view_manager_unref (gpointer instance); -GParamSpec* param_spec_view_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_manager (GValue* value, - gpointer v_object); -void value_take_view_manager (GValue* value, - gpointer v_object); -gpointer value_get_view_manager (const GValue* value); -GType view_manager_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer view_collection_monitor_ref (gpointer instance); -void view_collection_monitor_unref (gpointer instance); -GParamSpec* view_collection_param_spec_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void view_collection_value_set_monitor (GValue* value, - gpointer v_object); -void view_collection_value_take_monitor (GValue* value, - gpointer v_object); -gpointer view_collection_value_get_monitor (const GValue* value); -GType view_collection_monitor_get_type (void) G_GNUC_CONST; -ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self, - SourceCollection* sources, - ViewManager* manager, - Alteration* prereq, - GeeCollection* initial, - ProgressMonitor progress_monitor, - void* progress_monitor_target); -CollectionViewManager* collection_view_manager_new (CollectionPage* page); -CollectionViewManager* collection_view_manager_construct (GType object_type, - CollectionPage* page); -GType collection_view_manager_get_type (void) G_GNUC_CONST; -static void library_main_page_real_get_config_photos_sort (MediaPage* base, - gboolean* sort_order, - gint* sort_by); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -void configuration_facade_get_library_photos_sort (ConfigurationFacade* self, - gboolean* sort_order, - gint* sort_by); -static void library_main_page_real_set_config_photos_sort (MediaPage* base, - gboolean sort_order, - gint sort_by); -void configuration_facade_set_library_photos_sort (ConfigurationFacade* self, - gboolean sort_order, - gint sort_by); - - -static GType -library_branch_entry_position_get_type (void) -{ - static volatile gsize library_branch_entry_position_type_id__volatile = 0; - if (g_once_init_enter (&library_branch_entry_position_type_id__volatile)) { - static const GEnumValue values[] = {{LIBRARY_BRANCH_ENTRY_POSITION_PHOTOS, "LIBRARY_BRANCH_ENTRY_POSITION_PHOTOS", "photos"}, {LIBRARY_BRANCH_ENTRY_POSITION_FLAGGED, "LIBRARY_BRANCH_ENTRY_POSITION_FLAGGED", "flagged"}, {LIBRARY_BRANCH_ENTRY_POSITION_LAST_IMPORTED, "LIBRARY_BRANCH_ENTRY_POSITION_LAST_IMPORTED", "last-imported"}, {LIBRARY_BRANCH_ENTRY_POSITION_IMPORT_QUEUE, "LIBRARY_BRANCH_ENTRY_POSITION_IMPORT_QUEUE", "import-queue"}, {LIBRARY_BRANCH_ENTRY_POSITION_OFFLINE, "LIBRARY_BRANCH_ENTRY_POSITION_OFFLINE", "offline"}, {LIBRARY_BRANCH_ENTRY_POSITION_TRASH, "LIBRARY_BRANCH_ENTRY_POSITION_TRASH", "trash"}, {0, NULL, NULL}}; - GType library_branch_entry_position_type_id; - library_branch_entry_position_type_id = g_enum_register_static ("LibraryBranchEntryPosition", values); - g_once_init_leave (&library_branch_entry_position_type_id__volatile, library_branch_entry_position_type_id); - } - return library_branch_entry_position_type_id__volatile; -} - - -static gint -_library_branch_comparator_gcompare_func (gconstpointer a, - gconstpointer b) -{ - gint result; - result = library_branch_comparator ((SidebarEntry*) a, (SidebarEntry*) b); -#line 30 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return result; -#line 1131 "LibraryBranch.c" -} - - -static void -_library_branch_on_flagged_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, - gboolean visible, - gpointer self) -{ -#line 43 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_on_flagged_visibility_changed ((LibraryBranch*) self); -#line 1142 "LibraryBranch.c" -} - - -static void -_library_branch_on_last_imported_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, - gboolean visible, - gpointer self) -{ -#line 46 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_on_last_imported_visibility_changed ((LibraryBranch*) self); -#line 1153 "LibraryBranch.c" -} - - -static void -_library_branch_on_import_queue_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, - gboolean visible, - gpointer self) -{ -#line 49 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_on_import_queue_visibility_changed ((LibraryBranch*) self); -#line 1164 "LibraryBranch.c" -} - - -static void -_library_branch_on_offline_visibility_changed_library_hideable_page_entry_visibility_changed (LibraryHideablePageEntry* _sender, - gboolean visible, - gpointer self) -{ -#line 52 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_on_offline_visibility_changed ((LibraryBranch*) self); -#line 1175 "LibraryBranch.c" -} - - -LibraryBranch* -library_branch_construct (GType object_type) -{ - LibraryBranch * self = NULL; - SidebarHeader* _tmp0_; - SidebarHeader* _tmp1_; - LibraryPhotosEntry* _tmp2_; - LibraryPhotosEntry* _tmp3_; - LibraryTrashSidebarEntry* _tmp4_; - LibraryTrashSidebarEntry* _tmp5_; - LibraryLastImportSidebarEntry* _tmp6_; - LibraryLastImportSidebarEntry* _tmp7_; - LibraryFlaggedSidebarEntry* _tmp8_; - LibraryFlaggedSidebarEntry* _tmp9_; - LibraryOfflineSidebarEntry* _tmp10_; - LibraryOfflineSidebarEntry* _tmp11_; - LibraryImportQueueSidebarEntry* _tmp12_; - LibraryImportQueueSidebarEntry* _tmp13_; - LibraryPhotosEntry* _tmp14_; - LibraryTrashSidebarEntry* _tmp15_; - LibraryFlaggedSidebarEntry* _tmp16_; - LibraryLastImportSidebarEntry* _tmp17_; - LibraryImportQueueSidebarEntry* _tmp18_; - LibraryOfflineSidebarEntry* _tmp19_; -#line 30 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = sidebar_header_new (_ ("Library"), _ ("Organize and browse your photos"), TRUE); -#line 30 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp1_ = _tmp0_; -#line 30 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self = (LibraryBranch*) sidebar_branch_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SIDEBAR_TYPE_ENTRY, SidebarEntry), SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING, _library_branch_comparator_gcompare_func, NULL); -#line 30 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (_tmp1_); -#line 33 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp2_ = library_photos_entry_new (); -#line 33 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp3_ = _tmp2_; -#line 33 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_set_photos_entry (self, _tmp3_); -#line 33 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (_tmp3_); -#line 34 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp4_ = library_trash_sidebar_entry_new (); -#line 34 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp5_ = _tmp4_; -#line 34 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_set_trash_entry (self, _tmp5_); -#line 34 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (_tmp5_); -#line 35 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp6_ = library_last_import_sidebar_entry_new (); -#line 35 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp7_ = _tmp6_; -#line 35 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_set_last_imported_entry (self, _tmp7_); -#line 35 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (_tmp7_); -#line 36 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp8_ = library_flagged_sidebar_entry_new (); -#line 36 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp9_ = _tmp8_; -#line 36 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_set_flagged_entry (self, _tmp9_); -#line 36 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (_tmp9_); -#line 37 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp10_ = library_offline_sidebar_entry_new (); -#line 37 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp11_ = _tmp10_; -#line 37 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_set_offline_entry (self, _tmp11_); -#line 37 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (_tmp11_); -#line 38 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp12_ = library_import_queue_sidebar_entry_new (); -#line 38 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp13_ = _tmp12_; -#line 38 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_set_import_queue_entry (self, _tmp13_); -#line 38 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (_tmp13_); -#line 40 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp14_ = self->priv->_photos_entry; -#line 40 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_insert (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, SIDEBAR_TYPE_ENTRY, SidebarEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_PHOTOS); -#line 41 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp15_ = self->priv->_trash_entry; -#line 41 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_insert (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, SIDEBAR_TYPE_ENTRY, SidebarEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_TRASH); -#line 43 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp16_ = self->priv->_flagged_entry; -#line 43 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), "visibility-changed", (GCallback) _library_branch_on_flagged_visibility_changed_library_hideable_page_entry_visibility_changed, self, 0); -#line 44 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_on_flagged_visibility_changed (self); -#line 46 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp17_ = self->priv->_last_imported_entry; -#line 46 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), "visibility-changed", (GCallback) _library_branch_on_last_imported_visibility_changed_library_hideable_page_entry_visibility_changed, self, 0); -#line 47 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_on_last_imported_visibility_changed (self); -#line 49 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp18_ = self->priv->_import_queue_entry; -#line 49 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), "visibility-changed", (GCallback) _library_branch_on_import_queue_visibility_changed_library_hideable_page_entry_visibility_changed, self, 0); -#line 50 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_on_import_queue_visibility_changed (self); -#line 52 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp19_ = self->priv->_offline_entry; -#line 52 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), "visibility-changed", (GCallback) _library_branch_on_offline_visibility_changed_library_hideable_page_entry_visibility_changed, self, 0); -#line 53 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_on_offline_visibility_changed (self); -#line 29 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return self; -#line 1293 "LibraryBranch.c" -} - - -LibraryBranch* -library_branch_new (void) -{ -#line 29 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return library_branch_construct (LIBRARY_TYPE_BRANCH); -#line 1302 "LibraryBranch.c" -} - - -static void -library_branch_insert (LibraryBranch* self, - SidebarEntry* entry, - gint position) -{ - SidebarEntry* _tmp0_; - SidebarEntry* _tmp1_; -#line 56 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_if_fail (LIBRARY_IS_BRANCH (self)); -#line 56 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 57 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_object_set_data_full (G_TYPE_CHECK_INSTANCE_CAST (entry, G_TYPE_OBJECT, GObject), LIBRARY_BRANCH_POSITION_DATA, (gpointer) ((gintptr) position), NULL); -#line 58 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 58 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp1_ = _tmp0_; -#line 58 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp1_, entry, NULL); -#line 58 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (_tmp1_); -#line 1327 "LibraryBranch.c" -} - - -static void -library_branch_on_flagged_visibility_changed (LibraryBranch* self) -{ - LibraryFlaggedSidebarEntry* _tmp0_; -#line 61 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_if_fail (LIBRARY_IS_BRANCH (self)); -#line 62 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = self->priv->_flagged_entry; -#line 62 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_update_entry_visibility (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_FLAGGED); -#line 1341 "LibraryBranch.c" -} - - -static void -library_branch_on_last_imported_visibility_changed (LibraryBranch* self) -{ - LibraryLastImportSidebarEntry* _tmp0_; -#line 65 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_if_fail (LIBRARY_IS_BRANCH (self)); -#line 66 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = self->priv->_last_imported_entry; -#line 66 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_update_entry_visibility (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_LAST_IMPORTED); -#line 1355 "LibraryBranch.c" -} - - -static void -library_branch_on_import_queue_visibility_changed (LibraryBranch* self) -{ - LibraryImportQueueSidebarEntry* _tmp0_; -#line 69 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_if_fail (LIBRARY_IS_BRANCH (self)); -#line 70 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = self->priv->_import_queue_entry; -#line 70 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_update_entry_visibility (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_IMPORT_QUEUE); -#line 1369 "LibraryBranch.c" -} - - -static void -library_branch_on_offline_visibility_changed (LibraryBranch* self) -{ - LibraryOfflineSidebarEntry* _tmp0_; -#line 73 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_if_fail (LIBRARY_IS_BRANCH (self)); -#line 74 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = self->priv->_offline_entry; -#line 74 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_update_entry_visibility (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), (gint) LIBRARY_BRANCH_ENTRY_POSITION_OFFLINE); -#line 1383 "LibraryBranch.c" -} - - -static void -library_branch_update_entry_visibility (LibraryBranch* self, - LibraryHideablePageEntry* entry, - gint position) -{ - gboolean _tmp0_; - gboolean _tmp1_; -#line 77 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_if_fail (LIBRARY_IS_BRANCH (self)); -#line 77 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_if_fail (LIBRARY_IS_HIDEABLE_PAGE_ENTRY (entry)); -#line 78 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = library_hideable_page_entry_get_visible (entry); -#line 78 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp1_ = _tmp0_; -#line 78 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - if (_tmp1_) { -#line 79 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - if (!sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry))) { -#line 80 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_insert (self, G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry), position); -#line 1408 "LibraryBranch.c" - } - } else { -#line 81 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - if (sidebar_branch_has_entry (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry))) { -#line 82 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 1415 "LibraryBranch.c" - } - } -} - - -static gint -library_branch_comparator (SidebarEntry* a, - SidebarEntry* b) -{ - gint result = 0; - gconstpointer _tmp0_; - gconstpointer _tmp1_; -#line 86 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0); -#line 86 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0); -#line 87 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = g_object_get_data (G_TYPE_CHECK_INSTANCE_CAST (a, G_TYPE_OBJECT, GObject), LIBRARY_BRANCH_POSITION_DATA); -#line 87 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp1_ = g_object_get_data (G_TYPE_CHECK_INSTANCE_CAST (b, G_TYPE_OBJECT, GObject), LIBRARY_BRANCH_POSITION_DATA); -#line 87 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - result = ((gint) ((gintptr) _tmp0_)) - ((gint) ((gintptr) _tmp1_)); -#line 87 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return result; -#line 1440 "LibraryBranch.c" -} - - -LibraryPhotosEntry* -library_branch_get_photos_entry (LibraryBranch* self) -{ - LibraryPhotosEntry* result; - LibraryPhotosEntry* _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_val_if_fail (LIBRARY_IS_BRANCH (self), NULL); -#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = self->priv->_photos_entry; -#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - result = _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return result; -#line 1457 "LibraryBranch.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return self ? g_object_ref (self) : NULL; -#line 1466 "LibraryBranch.c" -} - - -static void -library_branch_set_photos_entry (LibraryBranch* self, - LibraryPhotosEntry* value) -{ -#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_if_fail (LIBRARY_IS_BRANCH (self)); -#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - if (library_branch_get_photos_entry (self) != value) { -#line 1478 "LibraryBranch.c" - LibraryPhotosEntry* _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = _g_object_ref0 (value); -#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (self->priv->_photos_entry); -#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self->priv->_photos_entry = _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY]); -#line 1488 "LibraryBranch.c" - } -} - - -LibraryFlaggedSidebarEntry* -library_branch_get_flagged_entry (LibraryBranch* self) -{ - LibraryFlaggedSidebarEntry* result; - LibraryFlaggedSidebarEntry* _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_val_if_fail (LIBRARY_IS_BRANCH (self), NULL); -#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = self->priv->_flagged_entry; -#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - result = _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return result; -#line 1506 "LibraryBranch.c" -} - - -static void -library_branch_set_flagged_entry (LibraryBranch* self, - LibraryFlaggedSidebarEntry* value) -{ -#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_if_fail (LIBRARY_IS_BRANCH (self)); -#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - if (library_branch_get_flagged_entry (self) != value) { -#line 1518 "LibraryBranch.c" - LibraryFlaggedSidebarEntry* _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = _g_object_ref0 (value); -#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (self->priv->_flagged_entry); -#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self->priv->_flagged_entry = _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY]); -#line 1528 "LibraryBranch.c" - } -} - - -LibraryLastImportSidebarEntry* -library_branch_get_last_imported_entry (LibraryBranch* self) -{ - LibraryLastImportSidebarEntry* result; - LibraryLastImportSidebarEntry* _tmp0_; -#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_val_if_fail (LIBRARY_IS_BRANCH (self), NULL); -#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = self->priv->_last_imported_entry; -#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - result = _tmp0_; -#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return result; -#line 1546 "LibraryBranch.c" -} - - -static void -library_branch_set_last_imported_entry (LibraryBranch* self, - LibraryLastImportSidebarEntry* value) -{ -#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_if_fail (LIBRARY_IS_BRANCH (self)); -#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - if (library_branch_get_last_imported_entry (self) != value) { -#line 1558 "LibraryBranch.c" - LibraryLastImportSidebarEntry* _tmp0_; -#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = _g_object_ref0 (value); -#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (self->priv->_last_imported_entry); -#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self->priv->_last_imported_entry = _tmp0_; -#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY]); -#line 1568 "LibraryBranch.c" - } -} - - -LibraryImportQueueSidebarEntry* -library_branch_get_import_queue_entry (LibraryBranch* self) -{ - LibraryImportQueueSidebarEntry* result; - LibraryImportQueueSidebarEntry* _tmp0_; -#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_val_if_fail (LIBRARY_IS_BRANCH (self), NULL); -#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = self->priv->_import_queue_entry; -#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - result = _tmp0_; -#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return result; -#line 1586 "LibraryBranch.c" -} - - -static void -library_branch_set_import_queue_entry (LibraryBranch* self, - LibraryImportQueueSidebarEntry* value) -{ -#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_if_fail (LIBRARY_IS_BRANCH (self)); -#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - if (library_branch_get_import_queue_entry (self) != value) { -#line 1598 "LibraryBranch.c" - LibraryImportQueueSidebarEntry* _tmp0_; -#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = _g_object_ref0 (value); -#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (self->priv->_import_queue_entry); -#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self->priv->_import_queue_entry = _tmp0_; -#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY]); -#line 1608 "LibraryBranch.c" - } -} - - -LibraryOfflineSidebarEntry* -library_branch_get_offline_entry (LibraryBranch* self) -{ - LibraryOfflineSidebarEntry* result; - LibraryOfflineSidebarEntry* _tmp0_; -#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_val_if_fail (LIBRARY_IS_BRANCH (self), NULL); -#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = self->priv->_offline_entry; -#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - result = _tmp0_; -#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return result; -#line 1626 "LibraryBranch.c" -} - - -static void -library_branch_set_offline_entry (LibraryBranch* self, - LibraryOfflineSidebarEntry* value) -{ -#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_if_fail (LIBRARY_IS_BRANCH (self)); -#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - if (library_branch_get_offline_entry (self) != value) { -#line 1638 "LibraryBranch.c" - LibraryOfflineSidebarEntry* _tmp0_; -#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = _g_object_ref0 (value); -#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (self->priv->_offline_entry); -#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self->priv->_offline_entry = _tmp0_; -#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY]); -#line 1648 "LibraryBranch.c" - } -} - - -LibraryTrashSidebarEntry* -library_branch_get_trash_entry (LibraryBranch* self) -{ - LibraryTrashSidebarEntry* result; - LibraryTrashSidebarEntry* _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_val_if_fail (LIBRARY_IS_BRANCH (self), NULL); -#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = self->priv->_trash_entry; -#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - result = _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return result; -#line 1666 "LibraryBranch.c" -} - - -static void -library_branch_set_trash_entry (LibraryBranch* self, - LibraryTrashSidebarEntry* value) -{ -#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_if_fail (LIBRARY_IS_BRANCH (self)); -#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - if (library_branch_get_trash_entry (self) != value) { -#line 1678 "LibraryBranch.c" - LibraryTrashSidebarEntry* _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = _g_object_ref0 (value); -#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (self->priv->_trash_entry); -#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self->priv->_trash_entry = _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_object_notify_by_pspec ((GObject *) self, library_branch_properties[LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY]); -#line 1688 "LibraryBranch.c" - } -} - - -static void -library_branch_class_init (LibraryBranchClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_type_class_add_private (klass, sizeof (LibraryBranchPrivate)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_library_branch_get_property; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_library_branch_set_property; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - G_OBJECT_CLASS (klass)->finalize = library_branch_finalize; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY] = g_param_spec_object ("photos-entry", "photos-entry", "photos-entry", LIBRARY_TYPE_PHOTOS_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY] = g_param_spec_object ("flagged-entry", "flagged-entry", "flagged-entry", LIBRARY_TYPE_FLAGGED_SIDEBAR_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY] = g_param_spec_object ("last-imported-entry", "last-imported-entry", "last-imported-entry", LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY] = g_param_spec_object ("import-queue-entry", "import-queue-entry", "import-queue-entry", LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY] = g_param_spec_object ("offline-entry", "offline-entry", "offline-entry", LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY, library_branch_properties[LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY] = g_param_spec_object ("trash-entry", "trash-entry", "trash-entry", LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1718 "LibraryBranch.c" -} - - -static void -library_branch_instance_init (LibraryBranch * self) -{ -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self->priv = LIBRARY_BRANCH_GET_PRIVATE (self); -#line 1727 "LibraryBranch.c" -} - - -static void -library_branch_finalize (GObject * obj) -{ - LibraryBranch * self; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_TYPE_BRANCH, LibraryBranch); -#line 10 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (self->priv->_photos_entry); -#line 11 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (self->priv->_flagged_entry); -#line 12 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (self->priv->_last_imported_entry); -#line 13 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (self->priv->_import_queue_entry); -#line 14 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (self->priv->_offline_entry); -#line 15 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (self->priv->_trash_entry); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - G_OBJECT_CLASS (library_branch_parent_class)->finalize (obj); -#line 1751 "LibraryBranch.c" -} - - -GType -library_branch_get_type (void) -{ - static volatile gsize library_branch_type_id__volatile = 0; - if (g_once_init_enter (&library_branch_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryBranch), 0, (GInstanceInitFunc) library_branch_instance_init, NULL }; - GType library_branch_type_id; - library_branch_type_id = g_type_register_static (SIDEBAR_TYPE_BRANCH, "LibraryBranch", &g_define_type_info, 0); - g_once_init_leave (&library_branch_type_id__volatile, library_branch_type_id); - } - return library_branch_type_id__volatile; -} - - -static void -_vala_library_branch_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - LibraryBranch * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, LIBRARY_TYPE_BRANCH, LibraryBranch); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - switch (property_id) { -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - case LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY: -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_value_set_object (value, library_branch_get_photos_entry (self)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - case LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY: -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_value_set_object (value, library_branch_get_flagged_entry (self)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - case LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY: -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_value_set_object (value, library_branch_get_last_imported_entry (self)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - case LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY: -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_value_set_object (value, library_branch_get_import_queue_entry (self)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - case LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY: -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_value_set_object (value, library_branch_get_offline_entry (self)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - case LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY: -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_value_set_object (value, library_branch_get_trash_entry (self)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 1815 "LibraryBranch.c" - default: -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 1821 "LibraryBranch.c" - } -} - - -static void -_vala_library_branch_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - LibraryBranch * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, LIBRARY_TYPE_BRANCH, LibraryBranch); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - switch (property_id) { -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - case LIBRARY_BRANCH_PHOTOS_ENTRY_PROPERTY: -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_set_photos_entry (self, g_value_get_object (value)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - case LIBRARY_BRANCH_FLAGGED_ENTRY_PROPERTY: -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_set_flagged_entry (self, g_value_get_object (value)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - case LIBRARY_BRANCH_LAST_IMPORTED_ENTRY_PROPERTY: -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_set_last_imported_entry (self, g_value_get_object (value)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - case LIBRARY_BRANCH_IMPORT_QUEUE_ENTRY_PROPERTY: -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_set_import_queue_entry (self, g_value_get_object (value)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - case LIBRARY_BRANCH_OFFLINE_ENTRY_PROPERTY: -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_set_offline_entry (self, g_value_get_object (value)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - case LIBRARY_BRANCH_TRASH_ENTRY_PROPERTY: -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_branch_set_trash_entry (self, g_value_get_object (value)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 1872 "LibraryBranch.c" - default: -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 1878 "LibraryBranch.c" - } -} - - -LibraryPhotosEntry* -library_photos_entry_construct (GType object_type) -{ - LibraryPhotosEntry * self = NULL; -#line 93 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self = (LibraryPhotosEntry*) sidebar_simple_page_entry_construct (object_type); -#line 93 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return self; -#line 1891 "LibraryBranch.c" -} - - -LibraryPhotosEntry* -library_photos_entry_new (void) -{ -#line 93 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return library_photos_entry_construct (LIBRARY_TYPE_PHOTOS_ENTRY); -#line 1900 "LibraryBranch.c" -} - - -static gchar* -library_photos_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) -{ - LibraryPhotosEntry * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 96 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntry); -#line 97 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = g_strdup (_ ("Photos")); -#line 97 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - result = _tmp0_; -#line 97 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return result; -#line 1918 "LibraryBranch.c" -} - - -static gchar* -library_photos_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) -{ - LibraryPhotosEntry * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 100 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntry); -#line 101 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = g_strdup (RESOURCES_ICON_PHOTOS); -#line 101 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - result = _tmp0_; -#line 101 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return result; -#line 1936 "LibraryBranch.c" -} - - -static Page* -library_photos_entry_real_create_page (SidebarSimplePageEntry* base) -{ - LibraryPhotosEntry * self; - Page* result = NULL; - LibraryMainPage* _tmp0_; -#line 104 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntry); -#line 105 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = library_main_page_new (NULL, NULL); -#line 105 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_object_ref_sink (_tmp0_); -#line 105 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page); -#line 105 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return result; -#line 1956 "LibraryBranch.c" -} - - -static void -library_photos_entry_class_init (LibraryPhotosEntryClass * klass) -{ -#line 91 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_photos_entry_parent_class = g_type_class_peek_parent (klass); -#line 91 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) library_photos_entry_real_get_sidebar_name; -#line 91 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) library_photos_entry_real_get_sidebar_icon; -#line 91 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) library_photos_entry_real_create_page; -#line 1971 "LibraryBranch.c" -} - - -static void -library_photos_entry_instance_init (LibraryPhotosEntry * self) -{ -} - - -GType -library_photos_entry_get_type (void) -{ - static volatile gsize library_photos_entry_type_id__volatile = 0; - if (g_once_init_enter (&library_photos_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryPhotosEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_photos_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryPhotosEntry), 0, (GInstanceInitFunc) library_photos_entry_instance_init, NULL }; - GType library_photos_entry_type_id; - library_photos_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "LibraryPhotosEntry", &g_define_type_info, 0); - g_once_init_leave (&library_photos_entry_type_id__volatile, library_photos_entry_type_id); - } - return library_photos_entry_type_id__volatile; -} - - -LibraryHideablePageEntry* -library_hideable_page_entry_construct (GType object_type) -{ - LibraryHideablePageEntry * self = NULL; -#line 125 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self = (LibraryHideablePageEntry*) sidebar_simple_page_entry_construct (object_type); -#line 125 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return self; -#line 2003 "LibraryBranch.c" -} - - -gboolean -library_hideable_page_entry_get_visible (LibraryHideablePageEntry* self) -{ - gboolean result; - gboolean _tmp0_; -#line 115 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_val_if_fail (LIBRARY_IS_HIDEABLE_PAGE_ENTRY (self), FALSE); -#line 115 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = self->priv->show_entry; -#line 115 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - result = _tmp0_; -#line 115 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return result; -#line 2020 "LibraryBranch.c" -} - - -void -library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self, - gboolean value) -{ - gboolean _tmp0_; -#line 116 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_return_if_fail (LIBRARY_IS_HIDEABLE_PAGE_ENTRY (self)); -#line 117 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = self->priv->show_entry; -#line 117 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - if (value == _tmp0_) { -#line 118 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return; -#line 2037 "LibraryBranch.c" - } -#line 120 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self->priv->show_entry = value; -#line 121 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_signal_emit (self, library_hideable_page_entry_signals[LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBILITY_CHANGED_SIGNAL], 0, value); -#line 116 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_object_notify_by_pspec ((GObject *) self, library_hideable_page_entry_properties[LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY]); -#line 2045 "LibraryBranch.c" -} - - -static void -library_hideable_page_entry_class_init (LibraryHideablePageEntryClass * klass) -{ -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_hideable_page_entry_parent_class = g_type_class_peek_parent (klass); -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_type_class_add_private (klass, sizeof (LibraryHideablePageEntryPrivate)); -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_library_hideable_page_entry_get_property; -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_library_hideable_page_entry_set_property; -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - G_OBJECT_CLASS (klass)->finalize = library_hideable_page_entry_finalize; -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY, library_hideable_page_entry_properties[LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY] = g_param_spec_boolean ("visible", "visible", "visible", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE)); -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_hideable_page_entry_signals[LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBILITY_CHANGED_SIGNAL] = g_signal_new ("visibility-changed", LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); -#line 2066 "LibraryBranch.c" -} - - -static void -library_hideable_page_entry_instance_init (LibraryHideablePageEntry * self) -{ -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self->priv = LIBRARY_HIDEABLE_PAGE_ENTRY_GET_PRIVATE (self); -#line 113 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self->priv->show_entry = FALSE; -#line 2077 "LibraryBranch.c" -} - - -static void -library_hideable_page_entry_finalize (GObject * obj) -{ - LibraryHideablePageEntry * self; -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry); -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - G_OBJECT_CLASS (library_hideable_page_entry_parent_class)->finalize (obj); -#line 2089 "LibraryBranch.c" -} - - -GType -library_hideable_page_entry_get_type (void) -{ - static volatile gsize library_hideable_page_entry_type_id__volatile = 0; - if (g_once_init_enter (&library_hideable_page_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryHideablePageEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_hideable_page_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryHideablePageEntry), 0, (GInstanceInitFunc) library_hideable_page_entry_instance_init, NULL }; - GType library_hideable_page_entry_type_id; - library_hideable_page_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "LibraryHideablePageEntry", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&library_hideable_page_entry_type_id__volatile, library_hideable_page_entry_type_id); - } - return library_hideable_page_entry_type_id__volatile; -} - - -static void -_vala_library_hideable_page_entry_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - LibraryHideablePageEntry * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry); -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - switch (property_id) { -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - case LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY: -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - g_value_set_boolean (value, library_hideable_page_entry_get_visible (self)); -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 2123 "LibraryBranch.c" - default: -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 2129 "LibraryBranch.c" - } -} - - -static void -_vala_library_hideable_page_entry_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - LibraryHideablePageEntry * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry); -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - switch (property_id) { -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - case LIBRARY_HIDEABLE_PAGE_ENTRY_VISIBLE_PROPERTY: -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_hideable_page_entry_set_visible (self, g_value_get_boolean (value)); -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 2150 "LibraryBranch.c" - default: -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 109 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 2156 "LibraryBranch.c" - } -} - - -LibraryMainPage* -library_main_page_construct (GType object_type, - ProgressMonitor monitor, - void* monitor_target) -{ - LibraryMainPage * self = NULL; -#line 133 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self = (LibraryMainPage*) collection_page_construct (object_type, LIBRARY_MAIN_PAGE_NAME); -#line 2169 "LibraryBranch.c" - { - GeeIterator* _sources_it = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp1_ = _tmp0_; -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp2_ = media_collection_registry_get_all (_tmp1_); -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp3_ = _tmp2_; -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp5_ = _tmp4_; -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (_tmp3_); -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _sources_it = _tmp5_; -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - while (TRUE) { -#line 2198 "LibraryBranch.c" - GeeIterator* _tmp6_; - MediaSourceCollection* sources = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - ViewCollection* _tmp9_; - ViewCollection* _tmp10_; - MediaSourceCollection* _tmp11_; - CollectionViewManager* _tmp12_; - CollectionViewManager* _tmp13_; - ViewCollectionMonitor* _tmp14_; - ViewCollectionMonitor* _tmp15_; -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp6_ = _sources_it; -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - break; -#line 2216 "LibraryBranch.c" - } -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp7_ = _sources_it; -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - sources = (MediaSourceCollection*) _tmp8_; -#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp10_ = _tmp9_; -#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp11_ = sources; -#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp12_ = collection_view_manager_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage)); -#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp13_ = _tmp12_; -#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp14_ = view_collection_monitor_source_collection (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_VIEW_MANAGER, ViewManager), NULL, NULL, monitor, monitor_target); -#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp15_ = _tmp14_; -#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _view_collection_monitor_unref0 (_tmp15_); -#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _view_manager_unref0 (_tmp13_); -#line 136 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _data_collection_unref0 (_tmp10_); -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _data_collection_unref0 (sources); -#line 2246 "LibraryBranch.c" - } -#line 135 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (_sources_it); -#line 2250 "LibraryBranch.c" - } -#line 132 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return self; -#line 2254 "LibraryBranch.c" -} - - -LibraryMainPage* -library_main_page_new (ProgressMonitor monitor, - void* monitor_target) -{ -#line 132 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - return library_main_page_construct (LIBRARY_TYPE_MAIN_PAGE, monitor, monitor_target); -#line 2264 "LibraryBranch.c" -} - - -static void -library_main_page_real_get_config_photos_sort (MediaPage* base, - gboolean* sort_order, - gint* sort_by) -{ - LibraryMainPage * self; - gboolean _vala_sort_order = FALSE; - gint _vala_sort_by = 0; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gboolean _tmp2_ = FALSE; - gint _tmp3_ = 0; -#line 139 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_MAIN_PAGE, LibraryMainPage); -#line 140 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = config_facade_get_instance (); -#line 140 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp1_ = _tmp0_; -#line 140 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - configuration_facade_get_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp2_, &_tmp3_); -#line 140 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _vala_sort_order = _tmp2_; -#line 140 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _vala_sort_by = _tmp3_; -#line 140 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (_tmp1_); -#line 139 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - if (sort_order) { -#line 139 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - *sort_order = _vala_sort_order; -#line 2298 "LibraryBranch.c" - } -#line 139 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - if (sort_by) { -#line 139 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - *sort_by = _vala_sort_by; -#line 2304 "LibraryBranch.c" - } -} - - -static void -library_main_page_real_set_config_photos_sort (MediaPage* base, - gboolean sort_order, - gint sort_by) -{ - LibraryMainPage * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 143 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_MAIN_PAGE, LibraryMainPage); -#line 144 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp0_ = config_facade_get_instance (); -#line 144 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _tmp1_ = _tmp0_; -#line 144 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - configuration_facade_set_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), sort_order, sort_by); -#line 144 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - _g_object_unref0 (_tmp1_); -#line 2327 "LibraryBranch.c" -} - - -static void -library_main_page_class_init (LibraryMainPageClass * klass) -{ -#line 129 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - library_main_page_parent_class = g_type_class_peek_parent (klass); -#line 129 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) library_main_page_real_get_config_photos_sort; -#line 129 "/home/jens/Source/shotwell/src/library/LibraryBranch.vala" - ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) library_main_page_real_set_config_photos_sort; -#line 2340 "LibraryBranch.c" -} - - -static void -library_main_page_instance_init (LibraryMainPage * self) -{ -} - - -GType -library_main_page_get_type (void) -{ - static volatile gsize library_main_page_type_id__volatile = 0; - if (g_once_init_enter (&library_main_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryMainPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_main_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryMainPage), 0, (GInstanceInitFunc) library_main_page_instance_init, NULL }; - GType library_main_page_type_id; - library_main_page_type_id = g_type_register_static (TYPE_COLLECTION_PAGE, "LibraryMainPage", &g_define_type_info, 0); - g_once_init_leave (&library_main_page_type_id__volatile, library_main_page_type_id); - } - return library_main_page_type_id__volatile; -} - - - diff --git a/src/library/LibraryWindow.c b/src/library/LibraryWindow.c deleted file mode 100644 index 929209d..0000000 --- a/src/library/LibraryWindow.c +++ /dev/null @@ -1,10044 +0,0 @@ -/* LibraryWindow.c generated by valac 0.40.4, the Vala compiler - * generated from LibraryWindow.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; -typedef struct _PageWindowPrivate PageWindowPrivate; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; -typedef struct _AppWindowPrivate AppWindowPrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; -typedef struct _LibraryWindowPrivate LibraryWindowPrivate; - -#define TYPE_ONE_SHOT_SCHEDULER (one_shot_scheduler_get_type ()) -#define ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler)) -#define ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass)) -#define IS_ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ONE_SHOT_SCHEDULER)) -#define IS_ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ONE_SHOT_SCHEDULER)) -#define ONE_SHOT_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass)) - -typedef struct _OneShotScheduler OneShotScheduler; -typedef struct _OneShotSchedulerClass OneShotSchedulerClass; - -#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ()) -#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree)) -#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass)) -#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass)) - -typedef struct _SidebarTree SidebarTree; -typedef struct _SidebarTreeClass SidebarTreeClass; - -#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ()) -#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch)) -#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) -#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) - -typedef struct _SidebarBranch SidebarBranch; -typedef struct _SidebarBranchClass SidebarBranchClass; - -#define LIBRARY_TYPE_BRANCH (library_branch_get_type ()) -#define LIBRARY_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_BRANCH, LibraryBranch)) -#define LIBRARY_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_BRANCH, LibraryBranchClass)) -#define LIBRARY_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_BRANCH)) -#define LIBRARY_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_BRANCH)) -#define LIBRARY_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_BRANCH, LibraryBranchClass)) - -typedef struct _LibraryBranch LibraryBranch; -typedef struct _LibraryBranchClass LibraryBranchClass; - -#define TAGS_TYPE_BRANCH (tags_branch_get_type ()) -#define TAGS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TAGS_TYPE_BRANCH, TagsBranch)) -#define TAGS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TAGS_TYPE_BRANCH, TagsBranchClass)) -#define TAGS_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TAGS_TYPE_BRANCH)) -#define TAGS_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TAGS_TYPE_BRANCH)) -#define TAGS_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TAGS_TYPE_BRANCH, TagsBranchClass)) - -typedef struct _TagsBranch TagsBranch; -typedef struct _TagsBranchClass TagsBranchClass; - -#define FOLDERS_TYPE_BRANCH (folders_branch_get_type ()) -#define FOLDERS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLDERS_TYPE_BRANCH, FoldersBranch)) -#define FOLDERS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLDERS_TYPE_BRANCH, FoldersBranchClass)) -#define FOLDERS_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLDERS_TYPE_BRANCH)) -#define FOLDERS_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLDERS_TYPE_BRANCH)) -#define FOLDERS_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLDERS_TYPE_BRANCH, FoldersBranchClass)) - -typedef struct _FoldersBranch FoldersBranch; -typedef struct _FoldersBranchClass FoldersBranchClass; - -#define EVENTS_TYPE_BRANCH (events_branch_get_type ()) -#define EVENTS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_BRANCH, EventsBranch)) -#define EVENTS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_BRANCH, EventsBranchClass)) -#define EVENTS_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_BRANCH)) -#define EVENTS_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_BRANCH)) -#define EVENTS_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_BRANCH, EventsBranchClass)) - -typedef struct _EventsBranch EventsBranch; -typedef struct _EventsBranchClass EventsBranchClass; - -#define CAMERA_TYPE_BRANCH (camera_branch_get_type ()) -#define CAMERA_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CAMERA_TYPE_BRANCH, CameraBranch)) -#define CAMERA_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CAMERA_TYPE_BRANCH, CameraBranchClass)) -#define CAMERA_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CAMERA_TYPE_BRANCH)) -#define CAMERA_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CAMERA_TYPE_BRANCH)) -#define CAMERA_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CAMERA_TYPE_BRANCH, CameraBranchClass)) - -typedef struct _CameraBranch CameraBranch; -typedef struct _CameraBranchClass CameraBranchClass; - -#define SEARCHES_TYPE_BRANCH (searches_branch_get_type ()) -#define SEARCHES_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCHES_TYPE_BRANCH, SearchesBranch)) -#define SEARCHES_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCHES_TYPE_BRANCH, SearchesBranchClass)) -#define SEARCHES_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCHES_TYPE_BRANCH)) -#define SEARCHES_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCHES_TYPE_BRANCH)) -#define SEARCHES_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCHES_TYPE_BRANCH, SearchesBranchClass)) - -typedef struct _SearchesBranch SearchesBranch; -typedef struct _SearchesBranchClass SearchesBranchClass; - -#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ()) -#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry)) -#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY)) -#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface)) - -typedef struct _SidebarEntry SidebarEntry; -typedef struct _SidebarEntryIface SidebarEntryIface; - -#define TYPE_SINGLE_PHOTO_PAGE (single_photo_page_get_type ()) -#define SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPage)) -#define SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) -#define IS_SINGLE_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_PHOTO_PAGE)) -#define IS_SINGLE_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_PHOTO_PAGE)) -#define SINGLE_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_PHOTO_PAGE, SinglePhotoPageClass)) - -typedef struct _SinglePhotoPage SinglePhotoPage; -typedef struct _SinglePhotoPageClass SinglePhotoPageClass; - -#define TYPE_EDITING_HOST_PAGE (editing_host_page_get_type ()) -#define EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPage)) -#define EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EDITING_HOST_PAGE, EditingHostPageClass)) -#define IS_EDITING_HOST_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EDITING_HOST_PAGE)) -#define IS_EDITING_HOST_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EDITING_HOST_PAGE)) -#define EDITING_HOST_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EDITING_HOST_PAGE, EditingHostPageClass)) - -typedef struct _EditingHostPage EditingHostPage; -typedef struct _EditingHostPageClass EditingHostPageClass; - -#define TYPE_LIBRARY_PHOTO_PAGE (library_photo_page_get_type ()) -#define LIBRARY_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage)) -#define LIBRARY_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPageClass)) -#define IS_LIBRARY_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_PAGE)) -#define IS_LIBRARY_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_PAGE)) -#define LIBRARY_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPageClass)) - -typedef struct _LibraryPhotoPage LibraryPhotoPage; -typedef struct _LibraryPhotoPageClass LibraryPhotoPageClass; - -#define TYPE_SEARCH_FILTER_ACTIONS (search_filter_actions_get_type ()) -#define SEARCH_FILTER_ACTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_FILTER_ACTIONS, SearchFilterActions)) -#define SEARCH_FILTER_ACTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_FILTER_ACTIONS, SearchFilterActionsClass)) -#define IS_SEARCH_FILTER_ACTIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_FILTER_ACTIONS)) -#define IS_SEARCH_FILTER_ACTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_FILTER_ACTIONS)) -#define SEARCH_FILTER_ACTIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_FILTER_ACTIONS, SearchFilterActionsClass)) - -typedef struct _SearchFilterActions SearchFilterActions; -typedef struct _SearchFilterActionsClass SearchFilterActionsClass; - -#define TYPE_SEARCH_FILTER_TOOLBAR (search_filter_toolbar_get_type ()) -#define SEARCH_FILTER_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_FILTER_TOOLBAR, SearchFilterToolbar)) -#define SEARCH_FILTER_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_FILTER_TOOLBAR, SearchFilterToolbarClass)) -#define IS_SEARCH_FILTER_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_FILTER_TOOLBAR)) -#define IS_SEARCH_FILTER_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_FILTER_TOOLBAR)) -#define SEARCH_FILTER_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_FILTER_TOOLBAR, SearchFilterToolbarClass)) - -typedef struct _SearchFilterToolbar SearchFilterToolbar; -typedef struct _SearchFilterToolbarClass SearchFilterToolbarClass; - -#define TYPE_PROPERTIES (properties_get_type ()) -#define PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROPERTIES, Properties)) -#define PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PROPERTIES, PropertiesClass)) -#define IS_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROPERTIES)) -#define IS_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROPERTIES)) -#define PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROPERTIES, PropertiesClass)) - -typedef struct _Properties Properties; -typedef struct _PropertiesClass PropertiesClass; - -#define TYPE_BASIC_PROPERTIES (basic_properties_get_type ()) -#define BASIC_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BASIC_PROPERTIES, BasicProperties)) -#define BASIC_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BASIC_PROPERTIES, BasicPropertiesClass)) -#define IS_BASIC_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BASIC_PROPERTIES)) -#define IS_BASIC_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BASIC_PROPERTIES)) -#define BASIC_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BASIC_PROPERTIES, BasicPropertiesClass)) - -typedef struct _BasicProperties BasicProperties; -typedef struct _BasicPropertiesClass BasicPropertiesClass; - -#define TYPE_EXTENDED_PROPERTIES_WINDOW (extended_properties_window_get_type ()) -#define EXTENDED_PROPERTIES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindow)) -#define EXTENDED_PROPERTIES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindowClass)) -#define IS_EXTENDED_PROPERTIES_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXTENDED_PROPERTIES_WINDOW)) -#define IS_EXTENDED_PROPERTIES_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXTENDED_PROPERTIES_WINDOW)) -#define EXTENDED_PROPERTIES_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXTENDED_PROPERTIES_WINDOW, ExtendedPropertiesWindowClass)) - -typedef struct _ExtendedPropertiesWindow ExtendedPropertiesWindow; -typedef struct _ExtendedPropertiesWindowClass ExtendedPropertiesWindowClass; -enum { - LIBRARY_WINDOW_0_PROPERTY, - LIBRARY_WINDOW_NUM_PROPERTIES -}; -static GParamSpec* library_window_properties[LIBRARY_WINDOW_NUM_PROPERTIES]; - -#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ()) -#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry)) -#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY)) -#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface)) - -typedef struct _SidebarSelectableEntry SidebarSelectableEntry; -typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface; - -#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ()) -#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)) -#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE)) -#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface)) - -typedef struct _SidebarPageRepresentative SidebarPageRepresentative; -typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_METADATA_WRITER (metadata_writer_get_type ()) -#define METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_WRITER, MetadataWriter)) -#define METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_WRITER, MetadataWriterClass)) -#define IS_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_WRITER)) -#define IS_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_WRITER)) -#define METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_WRITER, MetadataWriterClass)) - -typedef struct _MetadataWriter MetadataWriter; -typedef struct _MetadataWriterClass MetadataWriterClass; - -#define TYPE_DIRECTORY_MONITOR (directory_monitor_get_type ()) -#define DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitor)) -#define DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass)) -#define IS_DIRECTORY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECTORY_MONITOR)) -#define IS_DIRECTORY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECTORY_MONITOR)) -#define DIRECTORY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECTORY_MONITOR, DirectoryMonitorClass)) - -typedef struct _DirectoryMonitor DirectoryMonitor; -typedef struct _DirectoryMonitorClass DirectoryMonitorClass; - -#define TYPE_LIBRARY_MONITOR (library_monitor_get_type ()) -#define LIBRARY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_MONITOR, LibraryMonitor)) -#define LIBRARY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_MONITOR, LibraryMonitorClass)) -#define IS_LIBRARY_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_MONITOR)) -#define IS_LIBRARY_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_MONITOR)) -#define LIBRARY_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_MONITOR, LibraryMonitorClass)) - -typedef struct _LibraryMonitor LibraryMonitor; -typedef struct _LibraryMonitorClass LibraryMonitorClass; - -#define TYPE_LIBRARY_MONITOR_POOL (library_monitor_pool_get_type ()) -#define LIBRARY_MONITOR_POOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPool)) -#define LIBRARY_MONITOR_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolClass)) -#define IS_LIBRARY_MONITOR_POOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_MONITOR_POOL)) -#define IS_LIBRARY_MONITOR_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_MONITOR_POOL)) -#define LIBRARY_MONITOR_POOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_MONITOR_POOL, LibraryMonitorPoolClass)) - -typedef struct _LibraryMonitorPool LibraryMonitorPool; -typedef struct _LibraryMonitorPoolClass LibraryMonitorPoolClass; -#define _library_monitor_pool_unref0(var) ((var == NULL) ? NULL : (var = (library_monitor_pool_unref (var), NULL))) - -#define TYPE_CAMERA_TABLE (camera_table_get_type ()) -#define CAMERA_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CAMERA_TABLE, CameraTable)) -#define CAMERA_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CAMERA_TABLE, CameraTableClass)) -#define IS_CAMERA_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CAMERA_TABLE)) -#define IS_CAMERA_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CAMERA_TABLE)) -#define CAMERA_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CAMERA_TABLE, CameraTableClass)) - -typedef struct _CameraTable CameraTable; -typedef struct _CameraTableClass CameraTableClass; - -#define TYPE_DISCOVERED_CAMERA (discovered_camera_get_type ()) -#define DISCOVERED_CAMERA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DISCOVERED_CAMERA, DiscoveredCamera)) -#define DISCOVERED_CAMERA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DISCOVERED_CAMERA, DiscoveredCameraClass)) -#define IS_DISCOVERED_CAMERA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DISCOVERED_CAMERA)) -#define IS_DISCOVERED_CAMERA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DISCOVERED_CAMERA)) -#define DISCOVERED_CAMERA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DISCOVERED_CAMERA, DiscoveredCameraClass)) - -typedef struct _DiscoveredCamera DiscoveredCamera; -typedef struct _DiscoveredCameraClass DiscoveredCameraClass; -#define _camera_table_unref0(var) ((var == NULL) ? NULL : (var = (camera_table_unref (var), NULL))) - -#define LIBRARY_WINDOW_TYPE_SIDEBAR_ROOT_POSITION (library_window_sidebar_root_position_get_type ()) - -#define LIBRARY_WINDOW_TYPE_TARGET_TYPE (library_window_target_type_get_type ()) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _one_shot_scheduler_unref0(var) ((var == NULL) ? NULL : (var = (one_shot_scheduler_unref (var), NULL))) -#define _search_filter_actions_unref0(var) ((var == NULL) ? NULL : (var = (search_filter_actions_unref (var), NULL))) - -#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ()) -#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) - -typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry; -typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass; - -#define LIBRARY_TYPE_PHOTOS_ENTRY (library_photos_entry_get_type ()) -#define LIBRARY_PHOTOS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntry)) -#define LIBRARY_PHOTOS_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntryClass)) -#define LIBRARY_IS_PHOTOS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_PHOTOS_ENTRY)) -#define LIBRARY_IS_PHOTOS_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_PHOTOS_ENTRY)) -#define LIBRARY_PHOTOS_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_PHOTOS_ENTRY, LibraryPhotosEntryClass)) - -typedef struct _LibraryPhotosEntry LibraryPhotosEntry; -typedef struct _LibraryPhotosEntryClass LibraryPhotosEntryClass; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; - -#define TAGS_TYPE_SIDEBAR_ENTRY (tags_sidebar_entry_get_type ()) -#define TAGS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry)) -#define TAGS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntryClass)) -#define TAGS_IS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TAGS_TYPE_SIDEBAR_ENTRY)) -#define TAGS_IS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TAGS_TYPE_SIDEBAR_ENTRY)) -#define TAGS_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntryClass)) - -typedef struct _TagsSidebarEntry TagsSidebarEntry; -typedef struct _TagsSidebarEntryClass TagsSidebarEntryClass; - -#define TYPE_EVENT_SOURCE (event_source_get_type ()) -#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource)) -#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass)) -#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE)) -#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE)) -#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass)) - -typedef struct _EventSource EventSource; -typedef struct _EventSourceClass EventSourceClass; - -#define TYPE_EVENT (event_get_type ()) -#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event)) -#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass)) -#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT)) -#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT)) -#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass)) - -typedef struct _Event Event; -typedef struct _EventClass EventClass; - -#define EVENTS_TYPE_EVENT_ENTRY (events_event_entry_get_type ()) -#define EVENTS_EVENT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_EVENT_ENTRY, EventsEventEntry)) -#define EVENTS_EVENT_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_EVENT_ENTRY, EventsEventEntryClass)) -#define EVENTS_IS_EVENT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_EVENT_ENTRY)) -#define EVENTS_IS_EVENT_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_EVENT_ENTRY)) -#define EVENTS_EVENT_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_EVENT_ENTRY, EventsEventEntryClass)) - -typedef struct _EventsEventEntry EventsEventEntry; -typedef struct _EventsEventEntryClass EventsEventEntryClass; - -#define TYPE_SAVED_SEARCH (saved_search_get_type ()) -#define SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH, SavedSearch)) -#define SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH, SavedSearchClass)) -#define IS_SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH)) -#define IS_SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH)) -#define SAVED_SEARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH, SavedSearchClass)) - -typedef struct _SavedSearch SavedSearch; -typedef struct _SavedSearchClass SavedSearchClass; - -#define SEARCHES_TYPE_SIDEBAR_ENTRY (searches_sidebar_entry_get_type ()) -#define SEARCHES_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry)) -#define SEARCHES_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntryClass)) -#define SEARCHES_IS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCHES_TYPE_SIDEBAR_ENTRY)) -#define SEARCHES_IS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCHES_TYPE_SIDEBAR_ENTRY)) -#define SEARCHES_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntryClass)) - -typedef struct _SearchesSidebarEntry SearchesSidebarEntry; -typedef struct _SearchesSidebarEntryClass SearchesSidebarEntryClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_EVENTS_DIRECTORY_PAGE (events_directory_page_get_type ()) -#define EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPage)) -#define EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPageClass)) -#define IS_EVENTS_DIRECTORY_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENTS_DIRECTORY_PAGE)) -#define IS_EVENTS_DIRECTORY_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENTS_DIRECTORY_PAGE)) -#define EVENTS_DIRECTORY_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENTS_DIRECTORY_PAGE, EventsDirectoryPageClass)) - -typedef struct _EventsDirectoryPage EventsDirectoryPage; -typedef struct _EventsDirectoryPageClass EventsDirectoryPageClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_EVENT_PAGE (event_page_get_type ()) -#define EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_PAGE, EventPage)) -#define EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_PAGE, EventPageClass)) -#define IS_EVENT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_PAGE)) -#define IS_EVENT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_PAGE)) -#define EVENT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_PAGE, EventPageClass)) - -typedef struct _EventPage EventPage; -typedef struct _EventPageClass EventPageClass; - -#define LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE (library_window_fullscreen_photo_page_get_type ()) -#define LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPage)) -#define LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPageClass)) -#define LIBRARY_WINDOW_IS_FULLSCREEN_PHOTO_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE)) -#define LIBRARY_WINDOW_IS_FULLSCREEN_PHOTO_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE)) -#define LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPageClass)) - -typedef struct _LibraryWindowFullscreenPhotoPage LibraryWindowFullscreenPhotoPage; -typedef struct _LibraryWindowFullscreenPhotoPageClass LibraryWindowFullscreenPhotoPageClass; -#define __g_slist_free__g_free0_0(var) ((var == NULL) ? NULL : (var = (_g_slist_free__g_free0_ (var), NULL))) - -#define DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG (data_imports_ui_data_imports_dialog_get_type ()) -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialog)) -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogClass)) -#define DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG)) -#define DATA_IMPORTS_UI_IS_DATA_IMPORTS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG)) -#define DATA_IMPORTS_UI_DATA_IMPORTS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DATA_IMPORTS_UI_TYPE_DATA_IMPORTS_DIALOG, DataImportsUIDataImportsDialogClass)) - -typedef struct _DataImportsUIDataImportsDialog DataImportsUIDataImportsDialog; -typedef struct _DataImportsUIDataImportsDialogClass DataImportsUIDataImportsDialogClass; - -#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ()) -#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) - -typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; -typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; - -#define TYPE_VIDEO_SOURCE_COLLECTION (video_source_collection_get_type ()) -#define VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection)) -#define VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) -#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION)) -#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION)) -#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) - -typedef struct _VideoSourceCollection VideoSourceCollection; -typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass; - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) - -#define TYPE_SAVED_SEARCH_DIALOG (saved_search_dialog_get_type ()) -#define SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialog)) -#define SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass)) -#define IS_SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_DIALOG)) -#define IS_SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_DIALOG)) -#define SAVED_SEARCH_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass)) - -typedef struct _SavedSearchDialog SavedSearchDialog; -typedef struct _SavedSearchDialogClass SavedSearchDialogClass; - -#define TYPE_BATCH_IMPORT (batch_import_get_type ()) -#define BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT, BatchImport)) -#define BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT, BatchImportClass)) -#define IS_BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT)) -#define IS_BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT)) -#define BATCH_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT, BatchImportClass)) - -typedef struct _BatchImport BatchImport; -typedef struct _BatchImportClass BatchImportClass; - -#define LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY (library_hideable_page_entry_get_type ()) -#define LIBRARY_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry)) -#define LIBRARY_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass)) -#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY)) -#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY)) -#define LIBRARY_HIDEABLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass)) - -typedef struct _LibraryHideablePageEntry LibraryHideablePageEntry; -typedef struct _LibraryHideablePageEntryClass LibraryHideablePageEntryClass; - -#define LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY (library_import_queue_sidebar_entry_get_type ()) -#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntry)) -#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntryClass)) -#define LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY)) -#define LIBRARY_IS_IMPORT_QUEUE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY)) -#define LIBRARY_IMPORT_QUEUE_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY, LibraryImportQueueSidebarEntryClass)) - -typedef struct _LibraryImportQueueSidebarEntry LibraryImportQueueSidebarEntry; -typedef struct _LibraryImportQueueSidebarEntryClass LibraryImportQueueSidebarEntryClass; - -#define TYPE_IMPORT_MANIFEST (import_manifest_get_type ()) -#define IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_MANIFEST, ImportManifest)) -#define IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_MANIFEST, ImportManifestClass)) -#define IS_IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_MANIFEST)) -#define IS_IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_MANIFEST)) -#define IMPORT_MANIFEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_MANIFEST, ImportManifestClass)) - -typedef struct _ImportManifest ImportManifest; -typedef struct _ImportManifestClass ImportManifestClass; - -#define IMPORT_UI_TYPE_QUESTION_PARAMS (import_ui_question_params_get_type ()) -#define IMPORT_UI_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParams)) -#define IMPORT_UI_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass)) -#define IMPORT_UI_IS_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS)) -#define IMPORT_UI_IS_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS)) -#define IMPORT_UI_QUESTION_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass)) - -typedef struct _ImportUIQuestionParams ImportUIQuestionParams; -typedef struct _ImportUIQuestionParamsClass ImportUIQuestionParamsClass; - -#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ()) -#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob)) -#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass)) -#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB)) -#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB)) -#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass)) - -typedef struct _BatchImportJob BatchImportJob; -typedef struct _BatchImportJobClass BatchImportJobClass; - -#define TYPE_FILE_IMPORT_JOB (file_import_job_get_type ()) -#define FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILE_IMPORT_JOB, FileImportJob)) -#define FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILE_IMPORT_JOB, FileImportJobClass)) -#define IS_FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILE_IMPORT_JOB)) -#define IS_FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILE_IMPORT_JOB)) -#define FILE_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILE_IMPORT_JOB, FileImportJobClass)) - -typedef struct _FileImportJob FileImportJob; -typedef struct _FileImportJobClass FileImportJobClass; -#define _batch_import_job_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_job_unref (var), NULL))) - -#define TYPE_BATCH_IMPORT_ROLL (batch_import_roll_get_type ()) -#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll)) -#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass)) -#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL)) -#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL)) -#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass)) - -typedef struct _BatchImportRoll BatchImportRoll; -typedef struct _BatchImportRollClass BatchImportRollClass; - -#define CAMERA_TYPE_SIDEBAR_ENTRY (camera_sidebar_entry_get_type ()) -#define CAMERA_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntry)) -#define CAMERA_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntryClass)) -#define CAMERA_IS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CAMERA_TYPE_SIDEBAR_ENTRY)) -#define CAMERA_IS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CAMERA_TYPE_SIDEBAR_ENTRY)) -#define CAMERA_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CAMERA_TYPE_SIDEBAR_ENTRY, CameraSidebarEntryClass)) - -typedef struct _CameraSidebarEntry CameraSidebarEntry; -typedef struct _CameraSidebarEntryClass CameraSidebarEntryClass; - -#define TYPE_IMPORT_PAGE (import_page_get_type ()) -#define IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_PAGE, ImportPage)) -#define IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_PAGE, ImportPageClass)) -#define IS_IMPORT_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_PAGE)) -#define IS_IMPORT_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_PAGE)) -#define IMPORT_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_PAGE, ImportPageClass)) - -typedef struct _ImportPage ImportPage; -typedef struct _ImportPageClass ImportPageClass; -typedef struct _DiscoveredCameraPrivate DiscoveredCameraPrivate; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ()) -#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry)) -#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY)) -#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface)) - -typedef struct _SidebarExpandableEntry SidebarExpandableEntry; -typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface; - -#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ()) -#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)) -#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) -#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER)) -#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER)) -#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) - -typedef struct _SearchViewFilter SearchViewFilter; -typedef struct _SearchViewFilterClass SearchViewFilterClass; -#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL))) - -#define TYPE_DISABLED_VIEW_FILTER (disabled_view_filter_get_type ()) -#define DISABLED_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DISABLED_VIEW_FILTER, DisabledViewFilter)) -#define DISABLED_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DISABLED_VIEW_FILTER, DisabledViewFilterClass)) -#define IS_DISABLED_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DISABLED_VIEW_FILTER)) -#define IS_DISABLED_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DISABLED_VIEW_FILTER)) -#define DISABLED_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DISABLED_VIEW_FILTER, DisabledViewFilterClass)) - -typedef struct _DisabledViewFilter DisabledViewFilter; -typedef struct _DisabledViewFilterClass DisabledViewFilterClass; - -#define LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY (library_last_import_sidebar_entry_get_type ()) -#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntry)) -#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntryClass)) -#define LIBRARY_IS_LAST_IMPORT_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY)) -#define LIBRARY_IS_LAST_IMPORT_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY)) -#define LIBRARY_LAST_IMPORT_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_LAST_IMPORT_SIDEBAR_ENTRY, LibraryLastImportSidebarEntryClass)) - -typedef struct _LibraryLastImportSidebarEntry LibraryLastImportSidebarEntry; -typedef struct _LibraryLastImportSidebarEntryClass LibraryLastImportSidebarEntryClass; - -#define EVENTS_TYPE_DIRECTORY_ENTRY (events_directory_entry_get_type ()) -#define EVENTS_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_DIRECTORY_ENTRY, EventsDirectoryEntry)) -#define EVENTS_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_DIRECTORY_ENTRY, EventsDirectoryEntryClass)) -#define EVENTS_IS_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_DIRECTORY_ENTRY)) -#define EVENTS_IS_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_DIRECTORY_ENTRY)) -#define EVENTS_DIRECTORY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_DIRECTORY_ENTRY, EventsDirectoryEntryClass)) - -typedef struct _EventsDirectoryEntry EventsDirectoryEntry; -typedef struct _EventsDirectoryEntryClass EventsDirectoryEntryClass; - -#define EVENTS_TYPE_MASTER_DIRECTORY_ENTRY (events_master_directory_entry_get_type ()) -#define EVENTS_MASTER_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntry)) -#define EVENTS_MASTER_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntryClass)) -#define EVENTS_IS_MASTER_DIRECTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY)) -#define EVENTS_IS_MASTER_DIRECTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY)) -#define EVENTS_MASTER_DIRECTORY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EVENTS_TYPE_MASTER_DIRECTORY_ENTRY, EventsMasterDirectoryEntryClass)) - -typedef struct _EventsMasterDirectoryEntry EventsMasterDirectoryEntry; -typedef struct _EventsMasterDirectoryEntryClass EventsMasterDirectoryEntryClass; -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) -typedef struct _PagePrivate PagePrivate; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; -typedef struct _SinglePhotoPagePrivate SinglePhotoPagePrivate; - -#define TYPE_ZOOM_BUFFER (zoom_buffer_get_type ()) -#define ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ZOOM_BUFFER, ZoomBuffer)) -#define ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ZOOM_BUFFER, ZoomBufferClass)) -#define IS_ZOOM_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ZOOM_BUFFER)) -#define IS_ZOOM_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ZOOM_BUFFER)) -#define ZOOM_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ZOOM_BUFFER, ZoomBufferClass)) - -typedef struct _ZoomBuffer ZoomBuffer; -typedef struct _ZoomBufferClass ZoomBufferClass; - -#define SINGLE_PHOTO_PAGE_TYPE_UPDATE_REASON (single_photo_page_update_reason_get_type ()) -typedef struct _EditingHostPagePrivate EditingHostPagePrivate; -typedef struct _LibraryPhotoPagePrivate LibraryPhotoPagePrivate; - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) -typedef struct _LibraryWindowFullscreenPhotoPagePrivate LibraryWindowFullscreenPhotoPagePrivate; -enum { - LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE_0_PROPERTY, - LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE_NUM_PROPERTIES -}; -static GParamSpec* library_window_fullscreen_photo_page_properties[LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE_NUM_PROPERTIES]; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PageWindow { - GtkApplicationWindow parent_instance; - PageWindowPrivate * priv; -}; - -struct _PageWindowClass { - GtkApplicationWindowClass parent_class; - void (*switched_pages) (PageWindow* self, Page* old_page, Page* new_page); - void (*set_current_page) (PageWindow* self, Page* page); - void (*clear_current_page) (PageWindow* self); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _AppWindow { - PageWindow parent_instance; - AppWindowPrivate * priv; - gboolean maximized; - Dimensions dimensions; - gint pos_x; - gint pos_y; -}; - -struct _AppWindowClass { - PageWindowClass parent_class; - void (*on_fullscreen) (AppWindow* self); - gchar* (*get_app_role) (AppWindow* self); - void (*on_quit) (AppWindow* self); - void (*add_actions) (AppWindow* self); - void (*update_common_action_availability) (AppWindow* self, Page* old_page, Page* new_page); - void (*update_common_actions) (AppWindow* self, Page* page, gint selected_count, gint count); -}; - -struct _LibraryWindow { - AppWindow parent_instance; - LibraryWindowPrivate * priv; -}; - -struct _LibraryWindowClass { - AppWindowClass parent_class; -}; - -struct _SidebarEntryIface { - GTypeInterface parent_iface; - gchar* (*get_sidebar_name) (SidebarEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarEntry* self); - gchar* (*get_sidebar_icon) (SidebarEntry* self); - gchar* (*to_string) (SidebarEntry* self); - void (*grafted) (SidebarEntry* self, SidebarTree* tree); - void (*pruned) (SidebarEntry* self, SidebarTree* tree); -}; - -struct _LibraryWindowPrivate { - gchar* import_dir; - gboolean import_recursive; - GtkPaned* sidebar_paned; - GtkPaned* client_paned; - GtkFrame* bottom_frame; - OneShotScheduler* properties_scheduler; - gboolean notify_library_is_home_dir; - SidebarTree* sidebar_tree; - LibraryBranch* library_branch; - TagsBranch* tags_branch; - FoldersBranch* folders_branch; - EventsBranch* events_branch; - CameraBranch* camera_branch; - SearchesBranch* saved_search_branch; - gboolean page_switching_enabled; - GeeHashMap* page_map; - LibraryPhotoPage* photo_page; - gboolean is_search_toolbar_visible; - SearchFilterActions* search_actions; - SearchFilterToolbar* search_toolbar; - GtkBox* top_section; - GtkFrame* background_progress_frame; - GtkProgressBar* background_progress_bar; - gboolean background_progress_displayed; - BasicProperties* basic_properties; - ExtendedPropertiesWindow* extended_properties; - GtkStack* stack; - GtkBox* layout; - GtkBox* right_vbox; - GtkRevealer* toolbar_revealer; - gint current_progress_priority; - guint background_progress_pulse_id; -}; - -struct _SidebarSelectableEntryIface { - GTypeInterface parent_iface; -}; - -struct _SidebarPageRepresentativeIface { - GTypeInterface parent_iface; - gboolean (*has_page) (SidebarPageRepresentative* self); - Page* (*get_page) (SidebarPageRepresentative* self); -}; - -typedef enum { - LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_LIBRARY, - LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_CAMERAS, - LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_SAVED_SEARCH, - LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_EVENTS, - LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_FOLDERS, - LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_TAGS -} LibraryWindowSidebarRootPosition; - -typedef enum { - LIBRARY_WINDOW_TARGET_TYPE_URI_LIST, - LIBRARY_WINDOW_TARGET_TYPE_MEDIA_LIST, - LIBRARY_WINDOW_TARGET_TYPE_TAG_PATH -} LibraryWindowTargetType; - -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -typedef void (*SidebarTreeExternalDropHandler) (GdkDragContext* context, SidebarEntry* entry, GtkSelectionData* data, guint info, guint time, void* user_data); -typedef void (*OneShotCallback) (void* user_data); -typedef void (*BatchImportImportReporter) (ImportManifest* manifest, BatchImportRoll* import_roll, void* user_data); -struct _DiscoveredCamera { - GTypeInstance parent_instance; - volatile int ref_count; - DiscoveredCameraPrivate * priv; - Camera* gcamera; - gchar* uri; - gchar* display_name; - gchar* icon; -}; - -struct _DiscoveredCameraClass { - GTypeClass parent_class; - void (*finalize) (DiscoveredCamera *self); -}; - -struct _SidebarExpandableEntryIface { - GTypeInterface parent_iface; - gboolean (*expand_on_select) (SidebarExpandableEntry* self); -}; - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -typedef enum { - SINGLE_PHOTO_PAGE_UPDATE_REASON_NEW_PIXBUF, - SINGLE_PHOTO_PAGE_UPDATE_REASON_QUALITY_IMPROVEMENT, - SINGLE_PHOTO_PAGE_UPDATE_REASON_RESIZED_CANVAS -} SinglePhotoPageUpdateReason; - -struct _SinglePhotoPage { - Page parent_instance; - SinglePhotoPagePrivate * priv; - GtkDrawingArea* canvas; - GtkViewport* viewport; -}; - -struct _SinglePhotoPageClass { - PageClass parent_class; - gboolean (*is_zoom_supported) (SinglePhotoPage* self); - void (*cancel_zoom) (SinglePhotoPage* self); - void (*save_zoom_state) (SinglePhotoPage* self); - void (*restore_zoom_state) (SinglePhotoPage* self); - ZoomBuffer* (*get_zoom_buffer) (SinglePhotoPage* self); - void (*new_surface) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim); - void (*updated_pixbuf) (SinglePhotoPage* self, GdkPixbuf* pixbuf, SinglePhotoPageUpdateReason reason, Dimensions* old_dim); - void (*paint) (SinglePhotoPage* self, cairo_t* ctx, Dimensions* ctx_dim); - void (*on_previous_photo) (SinglePhotoPage* self); - void (*on_next_photo) (SinglePhotoPage* self); -}; - -struct _EditingHostPage { - SinglePhotoPage parent_instance; - EditingHostPagePrivate * priv; -}; - -struct _EditingHostPageClass { - SinglePhotoPageClass parent_class; - gboolean (*on_zoom_slider_key_press) (EditingHostPage* self, GdkEventKey* event); - void (*on_increase_size) (EditingHostPage* self); - void (*on_decrease_size) (EditingHostPage* self); - void (*photo_changing) (EditingHostPage* self, Photo* new_photo); - DataView* (*create_photo_view) (EditingHostPage* self, DataSource* source); - void (*update_ui) (EditingHostPage* self, gboolean missing); - void (*notify_photo_backing_missing) (EditingHostPage* self, Photo* photo, gboolean missing); - gboolean (*confirm_replace_photo) (EditingHostPage* self, Photo* old_photo, Photo* new_photo); - gboolean (*on_double_click) (EditingHostPage* self, GdkEventButton* event); - GdkPixbuf* (*get_bottom_left_trinket) (EditingHostPage* self, gint scale); - GdkPixbuf* (*get_top_left_trinket) (EditingHostPage* self, gint scale); - GdkPixbuf* (*get_top_right_trinket) (EditingHostPage* self, gint scale); - GdkPixbuf* (*get_bottom_right_trinket) (EditingHostPage* self, gint scale); -}; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _LibraryPhotoPage { - EditingHostPage parent_instance; - LibraryPhotoPagePrivate * priv; -}; - -struct _LibraryPhotoPageClass { - EditingHostPageClass parent_class; - void (*developer_changed) (LibraryPhotoPage* self, RawDeveloper rd); -}; - -struct _LibraryWindowFullscreenPhotoPage { - LibraryPhotoPage parent_instance; - LibraryWindowFullscreenPhotoPagePrivate * priv; -}; - -struct _LibraryWindowFullscreenPhotoPageClass { - LibraryPhotoPageClass parent_class; -}; - -struct _LibraryWindowFullscreenPhotoPagePrivate { - CollectionPage* collection; - Photo* start; - ViewCollection* view; -}; - - -static gpointer library_window_parent_class = NULL; -static GeeHashSet* library_window_initial_camera_uris; -static GeeHashSet* library_window_initial_camera_uris = NULL; -extern AppWindow* app_window_instance; -extern LibraryPhotoSourceCollection* library_photo_global; -extern VideoSourceCollection* video_global; -static gpointer library_window_fullscreen_photo_page_parent_class = NULL; - -GType page_window_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType library_window_get_type (void) G_GNUC_CONST; -gpointer one_shot_scheduler_ref (gpointer instance); -void one_shot_scheduler_unref (gpointer instance); -GParamSpec* param_spec_one_shot_scheduler (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_one_shot_scheduler (GValue* value, - gpointer v_object); -void value_take_one_shot_scheduler (GValue* value, - gpointer v_object); -gpointer value_get_one_shot_scheduler (const GValue* value); -GType one_shot_scheduler_get_type (void) G_GNUC_CONST; -GType sidebar_tree_get_type (void) G_GNUC_CONST; -GType sidebar_branch_get_type (void) G_GNUC_CONST; -GType library_branch_get_type (void) G_GNUC_CONST; -GType tags_branch_get_type (void) G_GNUC_CONST; -GType folders_branch_get_type (void) G_GNUC_CONST; -GType events_branch_get_type (void) G_GNUC_CONST; -GType camera_branch_get_type (void) G_GNUC_CONST; -GType searches_branch_get_type (void) G_GNUC_CONST; -GType sidebar_entry_get_type (void) G_GNUC_CONST; -GType single_photo_page_get_type (void) G_GNUC_CONST; -GType editing_host_page_get_type (void) G_GNUC_CONST; -GType library_photo_page_get_type (void) G_GNUC_CONST; -gpointer search_filter_actions_ref (gpointer instance); -void search_filter_actions_unref (gpointer instance); -GParamSpec* param_spec_search_filter_actions (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_search_filter_actions (GValue* value, - gpointer v_object); -void value_take_search_filter_actions (GValue* value, - gpointer v_object); -gpointer value_get_search_filter_actions (const GValue* value); -GType search_filter_actions_get_type (void) G_GNUC_CONST; -GType search_filter_toolbar_get_type (void) G_GNUC_CONST; -GType properties_get_type (void) G_GNUC_CONST; -GType basic_properties_get_type (void) G_GNUC_CONST; -GType extended_properties_window_get_type (void) G_GNUC_CONST; -#define LIBRARY_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LIBRARY_WINDOW, LibraryWindowPrivate)) -GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST; -GType sidebar_page_representative_get_type (void) G_GNUC_CONST; -static void library_window_on_page_created (LibraryWindow* self, - SidebarPageRepresentative* entry, - Page* page); -static void _library_window_on_page_created_sidebar_tree_page_created (SidebarTree* _sender, - SidebarPageRepresentative* entry, - Page* page, - gpointer self); -static void library_window_on_destroying_page (LibraryWindow* self, - SidebarPageRepresentative* entry, - Page* page); -static void _library_window_on_destroying_page_sidebar_tree_destroying_page (SidebarTree* _sender, - SidebarPageRepresentative* entry, - Page* page, - gpointer self); -static void library_window_on_sidebar_entry_selected (LibraryWindow* self, - SidebarSelectableEntry* selectable); -static void _library_window_on_sidebar_entry_selected_sidebar_tree_entry_selected (SidebarTree* _sender, - SidebarSelectableEntry* selectable, - gpointer self); -static void library_window_on_sidebar_selected_entry_removed (LibraryWindow* self, - SidebarSelectableEntry* selectable); -static void _library_window_on_sidebar_selected_entry_removed_sidebar_tree_selected_entry_removed (SidebarTree* _sender, - SidebarSelectableEntry* removed, - gpointer self); -static void library_window_unsubscribe_from_basic_information (LibraryWindow* self, - Page* page); -Page* page_window_get_current_page (PageWindow* self); -static void library_window_hide_extended_properties (LibraryWindow* self); -static void _library_window_hide_extended_properties_gtk_widget_hide (GtkWidget* _sender, - gpointer self); -static void library_window_show_extended_properties (LibraryWindow* self); -static void _library_window_show_extended_properties_gtk_widget_show (GtkWidget* _sender, - gpointer self); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self); -static void library_window_on_trashcan_contents_altered (LibraryWindow* self); -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -static void _library_window_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self); -static void library_window_on_media_altered (LibraryWindow* self); -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -static void _library_window_on_media_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -GType metadata_writer_get_type (void) G_GNUC_CONST; -MetadataWriter* metadata_writer_get_instance (void); -static void library_window_on_metadata_writer_progress (LibraryWindow* self, - guint completed, - guint total); -static void _library_window_on_metadata_writer_progress_metadata_writer_progress (MetadataWriter* _sender, - guint completed, - guint total, - gpointer self); -GType directory_monitor_get_type (void) G_GNUC_CONST; -GType library_monitor_get_type (void) G_GNUC_CONST; -gpointer library_monitor_pool_ref (gpointer instance); -void library_monitor_pool_unref (gpointer instance); -GParamSpec* param_spec_library_monitor_pool (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_library_monitor_pool (GValue* value, - gpointer v_object); -void value_take_library_monitor_pool (GValue* value, - gpointer v_object); -gpointer value_get_library_monitor_pool (const GValue* value); -GType library_monitor_pool_get_type (void) G_GNUC_CONST; -LibraryMonitorPool* library_monitor_pool_get_instance (void); -LibraryMonitor* library_monitor_pool_get_monitor (LibraryMonitorPool* self); -static void library_window_on_library_monitor_destroyed (LibraryWindow* self, - LibraryMonitor* monitor); -static void library_window_on_library_monitor_installed (LibraryWindow* self, - LibraryMonitor* monitor); -static void _library_window_on_library_monitor_installed_library_monitor_pool_monitor_installed (LibraryMonitorPool* _sender, - LibraryMonitor* monitor, - gpointer self); -static void _library_window_on_library_monitor_destroyed_library_monitor_pool_monitor_destroyed (LibraryMonitorPool* _sender, - LibraryMonitor* monitor, - gpointer self); -gpointer camera_table_ref (gpointer instance); -void camera_table_unref (gpointer instance); -GParamSpec* param_spec_camera_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_camera_table (GValue* value, - gpointer v_object); -void value_take_camera_table (GValue* value, - gpointer v_object); -gpointer value_get_camera_table (const GValue* value); -GType camera_table_get_type (void) G_GNUC_CONST; -CameraTable* camera_table_get_instance (void); -gpointer discovered_camera_ref (gpointer instance); -void discovered_camera_unref (gpointer instance); -GParamSpec* param_spec_discovered_camera (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_discovered_camera (GValue* value, - gpointer v_object); -void value_take_discovered_camera (GValue* value, - gpointer v_object); -gpointer value_get_discovered_camera (const GValue* value); -GType discovered_camera_get_type (void) G_GNUC_CONST; -static void library_window_on_camera_added (LibraryWindow* self, - DiscoveredCamera* camera); -static void _library_window_on_camera_added_camera_table_camera_added (CameraTable* _sender, - DiscoveredCamera* camera, - gpointer self); -static GType library_window_sidebar_root_position_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -GType library_window_target_type_get_type (void) G_GNUC_CONST; -LibraryBranch* library_branch_new (void); -LibraryBranch* library_branch_construct (GType object_type); -TagsBranch* tags_branch_new (void); -TagsBranch* tags_branch_construct (GType object_type); -FoldersBranch* folders_branch_new (void); -FoldersBranch* folders_branch_construct (GType object_type); -EventsBranch* events_branch_new (void); -EventsBranch* events_branch_construct (GType object_type); -CameraBranch* camera_branch_new (void); -CameraBranch* camera_branch_construct (GType object_type); -SearchesBranch* searches_branch_new (void); -SearchesBranch* searches_branch_construct (GType object_type); -SearchFilterActions* search_filter_actions_new (void); -SearchFilterActions* search_filter_actions_construct (GType object_type); -BasicProperties* basic_properties_new (void); -BasicProperties* basic_properties_construct (GType object_type); -#define LIBRARY_WINDOW_SIDEBAR_MIN_WIDTH 120 -#define LIBRARY_WINDOW_SORT_EVENTS_ORDER_ASCENDING "ascending" -#define LIBRARY_WINDOW_SORT_EVENTS_ORDER_DESCENDING "descending" -#define LIBRARY_WINDOW_BACKGROUND_PROGRESS_PULSE_MSEC 250 -#define LIBRARY_WINDOW_MIN_PROGRESS_BAR_FILES 20 -#define LIBRARY_WINDOW_STARTUP_SCAN_PROGRESS_PRIORITY 35 -#define LIBRARY_WINDOW_REALTIME_UPDATE_PROGRESS_PRIORITY 40 -#define LIBRARY_WINDOW_REALTIME_IMPORT_PROGRESS_PRIORITY 50 -#define LIBRARY_WINDOW_METADATA_WRITER_PROGRESS_PRIORITY 30 -#define LIBRARY_WINDOW_TAG_PATH_MIME_TYPE "shotwell/tag-path" -#define LIBRARY_WINDOW_MEDIA_LIST_MIME_TYPE "shotwell/media-id-atom" -static void library_window_on_file_import (LibraryWindow* self); -static void _library_window_on_file_import_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_window_on_external_library_import (LibraryWindow* self); -static void _library_window_on_external_library_import_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_window_on_preferences (LibraryWindow* self); -static void _library_window_on_preferences_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_window_on_empty_trash (LibraryWindow* self); -static void _library_window_on_empty_trash_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_window_on_jump_to_event (LibraryWindow* self); -static void _library_window_on_jump_to_event_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_window_on_find (LibraryWindow* self); -static void _library_window_on_find_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_window_on_new_search (LibraryWindow* self); -static void _library_window_on_new_search_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_window_on_action_toggle (LibraryWindow* self, - GAction* action, - GVariant* value); -static void _library_window_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_window_on_display_basic_properties (LibraryWindow* self, - GSimpleAction* action, - GVariant* value); -static void _library_window_on_display_basic_properties_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -static void library_window_on_display_extended_properties (LibraryWindow* self, - GSimpleAction* action, - GVariant* value); -static void _library_window_on_display_extended_properties_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -static void library_window_on_display_searchbar (LibraryWindow* self, - GSimpleAction* action, - GVariant* value); -static void _library_window_on_display_searchbar_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -static void library_window_on_display_sidebar (LibraryWindow* self, - GSimpleAction* action, - GVariant* variant); -static void _library_window_on_display_sidebar_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -static void library_window_on_display_toolbar (LibraryWindow* self, - GSimpleAction* action, - GVariant* variant); -static void _library_window_on_display_toolbar_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -static void library_window_on_action_radio (LibraryWindow* self, - GAction* action, - GVariant* value); -static void _library_window_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void library_window_on_events_sort_changed (LibraryWindow* self, - GSimpleAction* action, - GVariant* value); -static void _library_window_on_events_sort_changed_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self); -LibraryWindow* library_window_new (ProgressMonitor progress_monitor, - void* progress_monitor_target); -LibraryWindow* library_window_construct (GType object_type, - ProgressMonitor progress_monitor, - void* progress_monitor_target); -AppWindow* app_window_construct (GType object_type); -static void library_window_external_drop_handler (LibraryWindow* self, - GdkDragContext* context, - SidebarEntry* entry, - GtkSelectionData* data, - guint info, - guint time); -static void _library_window_external_drop_handler_sidebar_tree_external_drop_handler (GdkDragContext* context, - SidebarEntry* entry, - GtkSelectionData* data, - guint info, - guint time, - gpointer self); -SidebarTree* sidebar_tree_new (GtkTargetEntry* target_entries, - int target_entries_length1, - GdkDragAction actions, - SidebarTreeExternalDropHandler drop_handler, - void* drop_handler_target); -SidebarTree* sidebar_tree_construct (GType object_type, - GtkTargetEntry* target_entries, - int target_entries_length1, - GdkDragAction actions, - SidebarTreeExternalDropHandler drop_handler, - void* drop_handler_target); -void sidebar_tree_graft (SidebarTree* self, - SidebarBranch* branch, - gint position); -ExtendedPropertiesWindow* extended_properties_window_new (GtkWindow* owner); -ExtendedPropertiesWindow* extended_properties_window_construct (GType object_type, - GtkWindow* owner); -static void library_window_on_update_properties_now (LibraryWindow* self); -static void _library_window_on_update_properties_now_one_shot_callback (gpointer self); -OneShotScheduler* one_shot_scheduler_new (const gchar* name, - OneShotCallback callback, - void* callback_target); -OneShotScheduler* one_shot_scheduler_construct (GType object_type, - const gchar* name, - OneShotCallback callback, - void* callback_target); -SearchFilterToolbar* search_filter_toolbar_new (SearchFilterActions* actions); -SearchFilterToolbar* search_filter_toolbar_construct (GType object_type, - SearchFilterActions* actions); -static void library_window_create_layout (LibraryWindow* self, - Page* start_page); -GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST; -GType library_photos_entry_get_type (void) G_GNUC_CONST; -LibraryPhotosEntry* library_branch_get_photos_entry (LibraryBranch* self); -Page* sidebar_page_representative_get_page (SidebarPageRepresentative* self); -static void library_window_load_configuration (LibraryWindow* self); -void application_set_accels_for_action (const gchar* action, - gchar** accel, - int accel_length1); -GFile* directory_monitor_get_root (DirectoryMonitor* self); -static void library_window_on_library_monitor_discovery_started (LibraryWindow* self); -static void _library_window_on_library_monitor_discovery_started_directory_monitor_discovery_started (DirectoryMonitor* _sender, - gpointer self); -static void library_window_on_library_monitor_discovery_completed (LibraryWindow* self); -static void _library_window_on_library_monitor_discovery_completed_directory_monitor_discovery_completed (DirectoryMonitor* _sender, - gpointer self); -static void _library_window_on_library_monitor_discovery_completed_directory_monitor_closed (DirectoryMonitor* _sender, - gpointer self); -static void library_window_on_library_monitor_auto_update_progress (LibraryWindow* self, - gint completed_files, - gint total_files); -static void _library_window_on_library_monitor_auto_update_progress_library_monitor_auto_update_progress (LibraryMonitor* _sender, - gint completed_files, - gint total_files, - gpointer self); -static void library_window_on_library_monitor_auto_import_preparing (LibraryWindow* self); -static void _library_window_on_library_monitor_auto_import_preparing_library_monitor_auto_import_preparing (LibraryMonitor* _sender, - gpointer self); -static void library_window_on_library_monitor_auto_import_progress (LibraryWindow* self, - guint64 completed_bytes, - guint64 total_bytes); -static void _library_window_on_library_monitor_auto_import_progress_library_monitor_auto_import_progress (LibraryMonitor* _sender, - guint64 completed_bytes, - guint64 total_bytes, - gpointer self); -static void library_window_real_add_actions (AppWindow* base); -void app_window_add_actions (AppWindow* self); -GActionEntry* search_filter_actions_get_actions (SearchFilterActions* self, - int* result_length1); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gboolean configuration_facade_get_display_search_bar (ConfigurationFacade* self); -static GVariant* _variant_new1 (gboolean value); -static gboolean library_window_is_sidebar_visible (LibraryWindow* self); -static GVariant* _variant_new2 (gboolean value); -static gboolean library_window_is_toolbar_visible (LibraryWindow* self); -static GVariant* _variant_new3 (gboolean value); -static void library_window_real_switched_pages (PageWindow* base, - Page* old_page, - Page* new_page); -void page_window_switched_pages (PageWindow* self, - Page* old_page, - Page* new_page); -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -static void library_window_on_view_filter_installed (LibraryWindow* self, - ViewFilter* filter); -static void _library_window_on_view_filter_installed_view_collection_view_filter_installed (ViewCollection* _sender, - ViewFilter* filer, - gpointer self); -static void library_window_on_view_filter_removed (LibraryWindow* self, - ViewFilter* filter); -static void _library_window_on_view_filter_removed_view_collection_view_filter_removed (ViewCollection* _sender, - ViewFilter* filer, - gpointer self); -void search_filter_actions_monitor_page_contents (SearchFilterActions* self, - Page* old_page, - Page* new_page); -static void library_window_on_view_filter_refreshed (LibraryWindow* self); -static void _library_window_on_view_filter_refreshed_view_filter_refresh (ViewFilter* _sender, - gpointer self); -gboolean view_collection_are_items_filtered_out (ViewCollection* self); -static GVariant* _variant_new4 (gboolean value); -static void library_window_real_show_all (GtkWidget* base); -GAction* page_get_common_action (Page* self, - const gchar* name, - gboolean log_warning); -GType checkerboard_page_get_type (void) G_GNUC_CONST; -static void library_window_init_view_filter (LibraryWindow* self, - CheckerboardPage* page); -static void library_window_toggle_search_bar (LibraryWindow* self, - gboolean show, - CheckerboardPage* page); -static gboolean library_window_should_show_search_bar (LibraryWindow* self); -static void library_window_set_sidebar_visible (LibraryWindow* self, - gboolean visible); -LibraryWindow* library_window_get_app (void); -gboolean library_window_is_mount_uri_supported (const gchar* uri); -static gchar* library_window_real_get_app_role (AppWindow* base); -#define RESOURCES_APP_LIBRARY_ROLE _ ("Photo Manager") -GType tag_get_type (void) G_GNUC_CONST; -void library_window_rename_tag_in_sidebar (LibraryWindow* self, - Tag* tag); -GType tags_sidebar_entry_get_type (void) G_GNUC_CONST; -TagsSidebarEntry* tags_branch_get_entry_for_tag (TagsBranch* self, - Tag* tag); -gboolean sidebar_tree_rename_entry_in_place (SidebarTree* self, - SidebarEntry* entry); -GType event_source_get_type (void) G_GNUC_CONST; -GType event_get_type (void) G_GNUC_CONST; -void library_window_rename_event_in_sidebar (LibraryWindow* self, - Event* event); -GType events_event_entry_get_type (void) G_GNUC_CONST; -EventsEventEntry* events_branch_get_entry_for_event (EventsBranch* self, - Event* event); -GType saved_search_get_type (void) G_GNUC_CONST; -void library_window_rename_search_in_sidebar (LibraryWindow* self, - SavedSearch* search); -GType searches_sidebar_entry_get_type (void) G_GNUC_CONST; -SearchesSidebarEntry* searches_branch_get_entry_for_saved_search (SearchesBranch* self, - SavedSearch* search); -static void library_window_real_on_quit (AppWindow* base); -void configuration_facade_set_library_window_state (ConfigurationFacade* self, - gboolean maximize, - Dimensions* dimensions); -void configuration_facade_set_sidebar_position (ConfigurationFacade* self, - gint position); -void app_window_on_quit (AppWindow* self); -GType media_page_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -static Photo* library_window_get_start_fullscreen_photo (LibraryWindow* self, - CollectionPage* page); -gint view_collection_get_selected_count (ViewCollection* self); -GeeList* view_collection_get_selected_sources_of_type (ViewCollection* self, - GType t); -GType library_photo_get_type (void) G_GNUC_CONST; -GeeList* view_collection_get_sources_of_type (ViewCollection* self, - GType t); -static gboolean library_window_get_fullscreen_photo (LibraryWindow* self, - Page* page, - CollectionPage* * collection, - Photo* * start, - ViewCollection* * view_collection); -GType events_directory_page_get_type (void) G_GNUC_CONST; -gint data_collection_get_count (DataCollection* self); -DataObject* data_collection_get_at (DataCollection* self, - gint index); -GType data_view_get_type (void) G_GNUC_CONST; -DataSource* data_view_get_source (DataView* self); -GType event_page_get_type (void) G_GNUC_CONST; -CollectionPage* library_photo_page_get_controller_page (LibraryPhotoPage* self); -gboolean editing_host_page_has_photo (EditingHostPage* self); -Photo* editing_host_page_get_photo (EditingHostPage* self); -static void library_window_real_on_fullscreen (AppWindow* base); -static GType library_window_fullscreen_photo_page_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static LibraryWindowFullscreenPhotoPage* library_window_fullscreen_photo_page_new (CollectionPage* collection, - Photo* start, - ViewCollection* view); -static LibraryWindowFullscreenPhotoPage* library_window_fullscreen_photo_page_construct (GType object_type, - CollectionPage* collection, - Photo* start, - ViewCollection* view); -void app_window_go_fullscreen (AppWindow* self, - Page* page); -#define RESOURCES_CANCEL_LABEL _ ("_Cancel") -#define RESOURCES_OK_LABEL _ ("_OK") -gboolean app_dirs_is_in_import_dir (GFile* file); -GtkResponseType copy_files_dialog (void); -static void library_window_dispatch_import_jobs (LibraryWindow* self, - GSList* uris, - const gchar* job_name, - gboolean copy_to_library, - gboolean recurse); -static void _g_free0_ (gpointer var); -static inline void _g_slist_free__g_free0_ (GSList* self); -GType data_imports_ui_data_imports_dialog_get_type (void) G_GNUC_CONST; -DataImportsUIDataImportsDialog* data_imports_ui_data_imports_dialog_get_or_create_instance (void); -static void library_window_real_update_common_action_availability (AppWindow* base, - Page* old_page, - Page* new_page); -void app_window_update_common_action_availability (AppWindow* self, - Page* old_page, - Page* new_page); -void app_window_set_common_action_sensitive (AppWindow* self, - const gchar* name, - gboolean sensitive); -static void library_window_real_update_common_actions (AppWindow* base, - Page* page, - gint selected_count, - gint count); -static gboolean library_window_can_empty_trash (LibraryWindow* self); -void app_window_set_common_action_visible (AppWindow* self, - const gchar* name, - gboolean visible); -static gboolean library_window_can_jump_to_event (LibraryWindow* self); -void app_window_update_common_actions (AppWindow* self, - Page* page, - gint selected_count, - gint count); -GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -gint media_source_collection_get_trashcan_count (MediaSourceCollection* self); -GType video_source_collection_get_type (void) G_GNUC_CONST; -GeeCollection* media_source_collection_get_trashcan_contents (MediaSourceCollection* self); -void remove_from_app (GeeCollection* sources, - const gchar* dialog_title, - const gchar* progress_dialog_text); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* app_window_get_command_manager (void); -void command_manager_reset (CommandManager* self); -SavedSearchDialog* saved_search_dialog_new (void); -SavedSearchDialog* saved_search_dialog_construct (GType object_type); -GType saved_search_dialog_get_type (void) G_GNUC_CONST; -void saved_search_dialog_show (SavedSearchDialog* self); -DataSource* view_collection_get_selected_source_at (ViewCollection* self, - gint index); -Event* media_source_get_event (MediaSource* self); -void library_window_switch_to_event (LibraryWindow* self, - Event* event); -static GVariant* _variant_new5 (gboolean value); -void search_filter_toolbar_take_focus (SearchFilterToolbar* self); -static void library_window_on_clear_search (LibraryWindow* self); -void search_filter_actions_reset (SearchFilterActions* self); -gint library_window_get_events_sort (LibraryWindow* self); -void configuration_facade_set_events_sort_ascending (ConfigurationFacade* self, - gboolean sort); -void preferences_dialog_show_preferences (void); -void properties_update_properties (Properties* self, - Page* page); -void configuration_facade_set_display_basic_properties (ConfigurationFacade* self, - gboolean display); -static gboolean _variant_get6 (GVariant* value); -static GVariant* _variant_new7 (gboolean value); -void extended_properties_window_update_properties (ExtendedPropertiesWindow* self, - Page* page); -void configuration_facade_set_display_search_bar (ConfigurationFacade* self, - gboolean display); -void library_window_show_search_bar (LibraryWindow* self, - gboolean display); -static GVariant* _variant_new8 (gboolean value); -void configuration_facade_set_display_sidebar (ConfigurationFacade* self, - gboolean display); -gboolean configuration_facade_get_display_sidebar (ConfigurationFacade* self); -static void library_window_set_toolbar_visible (LibraryWindow* self, - gboolean visible); -GtkToolbar* page_get_toolbar (Page* self); -void configuration_facade_set_display_toolbar (ConfigurationFacade* self, - gboolean display); -gboolean configuration_facade_get_display_toolbar (ConfigurationFacade* self); -static void library_window_sync_extended_properties (LibraryWindow* self, - gboolean show); -static GVariant* _variant_new9 (gboolean value); -void configuration_facade_set_display_extended_properties (ConfigurationFacade* self, - gboolean display); -GType batch_import_get_type (void) G_GNUC_CONST; -void library_window_enqueue_batch_import (LibraryWindow* self, - BatchImport* batch_import, - gboolean allow_user_cancel); -GType library_hideable_page_entry_get_type (void) G_GNUC_CONST; -GType library_import_queue_sidebar_entry_get_type (void) G_GNUC_CONST; -LibraryImportQueueSidebarEntry* library_branch_get_import_queue_entry (LibraryBranch* self); -void library_import_queue_sidebar_entry_enqueue_and_schedule (LibraryImportQueueSidebarEntry* self, - BatchImport* batch_import, - gboolean allow_user_cancel); -gpointer import_manifest_ref (gpointer instance); -void import_manifest_unref (gpointer instance); -GParamSpec* param_spec_import_manifest (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_import_manifest (GValue* value, - gpointer v_object); -void value_take_import_manifest (GValue* value, - gpointer v_object); -gpointer value_get_import_manifest (const GValue* value); -GType import_manifest_get_type (void) G_GNUC_CONST; -static void library_window_import_reporter (LibraryWindow* self, - ImportManifest* manifest); -gpointer import_ui_question_params_ref (gpointer instance); -void import_ui_question_params_unref (gpointer instance); -GParamSpec* import_ui_param_spec_question_params (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void import_ui_value_set_question_params (GValue* value, - gpointer v_object); -void import_ui_value_take_question_params (GValue* value, - gpointer v_object); -gpointer import_ui_value_get_question_params (const GValue* value); -GType import_ui_question_params_get_type (void) G_GNUC_CONST; -gboolean import_ui_report_manifest (ImportManifest* manifest, - gboolean show_dest_id, - ImportUIQuestionParams* question); -GFile* app_dirs_get_import_dir (void); -GtkResponseType app_window_affirm_cancel_question (const gchar* message, - const gchar* affirmative, - const gchar* title, - GtkWindow* parent); -AppWindow* app_window_get_instance (void); -gpointer batch_import_job_ref (gpointer instance); -void batch_import_job_unref (gpointer instance); -GParamSpec* param_spec_batch_import_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_job (GValue* value, - gpointer v_object); -void value_take_batch_import_job (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_job (const GValue* value); -GType batch_import_job_get_type (void) G_GNUC_CONST; -GType file_import_job_get_type (void) G_GNUC_CONST; -void app_window_error_message (const gchar* message, - GtkWindow* parent); -FileImportJob* file_import_job_new (GFile* file_or_dir, - gboolean copy_to_library, - gboolean recurse); -FileImportJob* file_import_job_construct (GType object_type, - GFile* file_or_dir, - gboolean copy_to_library, - gboolean recurse); -gpointer batch_import_roll_ref (gpointer instance); -void batch_import_roll_unref (gpointer instance); -GParamSpec* param_spec_batch_import_roll (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_roll (GValue* value, - gpointer v_object); -void value_take_batch_import_roll (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_roll (const GValue* value); -GType batch_import_roll_get_type (void) G_GNUC_CONST; -static void _library_window_import_reporter_batch_import_import_reporter (ImportManifest* manifest, - BatchImportRoll* import_roll, - gpointer self); -BatchImport* batch_import_new (GeeIterable* jobs, - const gchar* name, - BatchImportImportReporter reporter, - void* reporter_target, - GeeArrayList* prefailed, - GeeArrayList* pre_already_imported, - GCancellable* cancellable, - BatchImportRoll* import_roll, - ImportManifest* skip_manifest); -BatchImport* batch_import_construct (GType object_type, - GeeIterable* jobs, - const gchar* name, - BatchImportImportReporter reporter, - void* reporter_target, - GeeArrayList* prefailed, - GeeArrayList* pre_already_imported, - GCancellable* cancellable, - BatchImportRoll* import_roll, - ImportManifest* skip_manifest); -void library_window_switch_to_import_queue_page (LibraryWindow* self); -static GdkDragAction library_window_get_drag_action (LibraryWindow* self); -static gboolean library_window_real_drag_motion (GtkWidget* base, - GdkDragContext* context, - gint x, - gint y, - guint time); -static void library_window_real_drag_data_received (GtkWidget* base, - GdkDragContext* context, - gint x, - gint y, - GtkSelectionData* selection_data, - guint info, - guint time); -void library_window_switch_to_library_page (LibraryWindow* self); -void library_window_switch_to_page (LibraryWindow* self, - Page* page); -void library_window_switch_to_tag (LibraryWindow* self, - Tag* tag); -void library_window_switch_to_saved_search (LibraryWindow* self, - SavedSearch* search); -void library_window_switch_to_photo_page (LibraryWindow* self, - CollectionPage* controller, - Photo* current); -DataView* view_collection_get_view_for_source (ViewCollection* self, - DataSource* source); -LibraryPhotoPage* library_photo_page_new (void); -LibraryPhotoPage* library_photo_page_construct (GType object_type); -void library_window_add_to_stack (LibraryWindow* self, - Page* page); -void spin_event_loop (void); -void library_photo_page_display_for_collection (LibraryPhotoPage* self, - CollectionPage* return_page, - Photo* photo, - ViewCollection* view); -GType camera_sidebar_entry_get_type (void) G_GNUC_CONST; -CameraSidebarEntry* camera_branch_get_entry_for_camera (CameraBranch* self, - DiscoveredCamera* camera); -GType import_page_get_type (void) G_GNUC_CONST; -gboolean import_page_unmount_camera (ImportPage* self, - GMount* mount); -static void library_window_remove_from_stack (LibraryWindow* self, - Page* page); -gboolean configuration_facade_get_display_basic_properties (ConfigurationFacade* self); -static GVariant* _variant_new10 (gboolean value); -gboolean configuration_facade_get_display_extended_properties (ConfigurationFacade* self); -static GVariant* _variant_new11 (gboolean value); -static GVariant* _variant_new12 (gboolean value); -gboolean configuration_facade_get_events_sort_ascending (ConfigurationFacade* self); -static GVariant* _variant_new13 (const gchar* value); -static void library_window_start_pulse_background_progress_bar (LibraryWindow* self, - const gchar* label, - gint priority); -static void library_window_stop_pulse_background_progress_bar (LibraryWindow* self, - gint priority, - gboolean clear); -static void library_window_show_background_progress_bar (LibraryWindow* self); -static gboolean library_window_on_pulse_background_progress_bar (LibraryWindow* self); -static gboolean _library_window_on_pulse_background_progress_bar_gsource_func (gpointer self); -static void library_window_clear_background_progress_bar (LibraryWindow* self, - gint priority); -static void library_window_update_background_progress_bar (LibraryWindow* self, - const gchar* label, - gint priority, - gdouble count, - gdouble total); -static void library_window_hide_background_progress_bar (LibraryWindow* self); -gint configuration_facade_get_sidebar_position (ConfigurationFacade* self); -gint library_window_get_PAGE_MIN_WIDTH (void); -static void library_window_real_set_current_page (PageWindow* base, - Page* page); -void library_window_set_page_switching_enabled (LibraryWindow* self, - gboolean should_enable); -void application_set_menubar (GMenuModel* model); -void page_switching_from (Page* self); -void sidebar_tree_enable_editing (SidebarTree* self); -void page_window_set_current_page (PageWindow* self, - Page* page); -void sidebar_tree_disable_editing (SidebarTree* self); -GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST; -gboolean sidebar_expandable_entry_expand_on_select (SidebarExpandableEntry* self); -gboolean sidebar_tree_expand_to_entry (SidebarTree* self, - SidebarEntry* entry); -gboolean sidebar_tree_place_cursor (SidebarTree* self, - SidebarEntry* entry, - gboolean mask_signal); -static void library_window_on_update_properties (LibraryWindow* self); -static void library_window_subscribe_for_basic_information (LibraryWindow* self, - Page* page); -void page_switched_to (Page* self); -GMenuModel* page_get_menubar (Page* self); -void page_ready (Page* self); -GType search_view_filter_get_type (void) G_GNUC_CONST; -void search_filter_toolbar_set_view_filter (SearchFilterToolbar* self, - SearchViewFilter* search_filter); -SearchViewFilter* checkerboard_page_get_search_view_filter (CheckerboardPage* self); -void view_collection_install_view_filter (ViewCollection* self, - ViewFilter* f); -DisabledViewFilter* disabled_view_filter_new (void); -DisabledViewFilter* disabled_view_filter_construct (GType object_type); -GType disabled_view_filter_get_type (void) G_GNUC_CONST; -GType library_last_import_sidebar_entry_get_type (void) G_GNUC_CONST; -LibraryLastImportSidebarEntry* library_branch_get_last_imported_entry (LibraryBranch* self); -gboolean library_hideable_page_entry_get_visible (LibraryHideablePageEntry* self); -gboolean sidebar_branch_get_show_branch (SidebarBranch* self); -GType events_directory_entry_get_type (void) G_GNUC_CONST; -GType events_master_directory_entry_get_type (void) G_GNUC_CONST; -EventsMasterDirectoryEntry* events_branch_get_master_entry (EventsBranch* self); -static void _library_window_on_update_properties_view_collection_items_state_changed (ViewCollection* _sender, - GeeIterable* changed, - gpointer self); -static void _library_window_on_update_properties_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -static void _library_window_on_update_properties_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self); -static void _library_window_on_update_properties_view_collection_items_visibility_changed (ViewCollection* _sender, - GeeCollection* changed, - gpointer self); -void one_shot_scheduler_at_idle (OneShotScheduler* self); -void library_window_mounted_camera_shell_notification (LibraryWindow* self, - const gchar* uri, - gboolean at_startup); -gchar* camera_table_get_port_uri (const gchar* port); -gboolean is_string_empty (const gchar* s); -static gboolean library_window_real_key_press_event (GtkWidget* base, - GdkEventKey* event); -gboolean sidebar_tree_is_keypress_interpreted (SidebarTree* self, - GdkEventKey* event); -gint thumbnail_get_MAX_SCALE (void); -#define CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING 24 -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType zoom_buffer_get_type (void) G_GNUC_CONST; -GType single_photo_page_update_reason_get_type (void) G_GNUC_CONST; -GType raw_developer_get_type (void) G_GNUC_CONST; -#define LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPagePrivate)) -static void library_window_fullscreen_photo_page_real_switched_to (Page* base); -static void library_window_fullscreen_photo_page_real_switching_from (Page* base); -static void library_window_fullscreen_photo_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames); -static void library_window_fullscreen_photo_page_finalize (GObject * obj); -static void library_window_finalize (GObject * obj); -static void _vala_library_window_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - -static const gchar* LIBRARY_WINDOW_SUPPORTED_MOUNT_SCHEMES[4] = {"gphoto2:", "disk:", "file:", "mtp:"}; -const GtkTargetEntry LIBRARY_WINDOW_DND_TARGET_ENTRIES[3] = {{"text/uri-list", (guint) GTK_TARGET_OTHER_APP, (guint) LIBRARY_WINDOW_TARGET_TYPE_URI_LIST}, {LIBRARY_WINDOW_MEDIA_LIST_MIME_TYPE, (guint) GTK_TARGET_SAME_APP, (guint) LIBRARY_WINDOW_TARGET_TYPE_MEDIA_LIST}, {LIBRARY_WINDOW_TAG_PATH_MIME_TYPE, (guint) GTK_TARGET_SAME_WIDGET, (guint) LIBRARY_WINDOW_TARGET_TYPE_TAG_PATH}}; -static const GActionEntry LIBRARY_WINDOW_common_actions[13] = {{"CommonFileImport", _library_window_on_file_import_gsimple_action_activate_callback}, {"ExternalLibraryImport", _library_window_on_external_library_import_gsimple_action_activate_callback}, {"CommonPreferences", _library_window_on_preferences_gsimple_action_activate_callback}, {"CommonEmptyTrash", _library_window_on_empty_trash_gsimple_action_activate_callback}, {"CommonJumpToEvent", _library_window_on_jump_to_event_gsimple_action_activate_callback}, {"CommonFind", _library_window_on_find_gsimple_action_activate_callback}, {"CommonNewSearch", _library_window_on_new_search_gsimple_action_activate_callback}, {"CommonDisplayBasicProperties", _library_window_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _library_window_on_display_basic_properties_gsimple_action_change_state_callback}, {"CommonDisplayExtendedProperties", _library_window_on_action_toggle_gsimple_action_activate_callback, NULL, "false", _library_window_on_display_extended_properties_gsimple_action_change_state_callback}, {"CommonDisplaySearchbar", NULL, NULL, "false", _library_window_on_display_searchbar_gsimple_action_change_state_callback}, {"CommonDisplaySidebar", _library_window_on_action_toggle_gsimple_action_activate_callback, NULL, "true", _library_window_on_display_sidebar_gsimple_action_change_state_callback}, {"CommonDisplayToolbar", NULL, NULL, "true", _library_window_on_display_toolbar_gsimple_action_change_state_callback}, {"CommonSortEvents", _library_window_on_action_radio_gsimple_action_activate_callback, "s", "'ascending'", _library_window_on_events_sort_changed_gsimple_action_change_state_callback}}; - -static void -_library_window_on_page_created_sidebar_tree_page_created (SidebarTree* _sender, - SidebarPageRepresentative* entry, - Page* page, - gpointer self) -{ -#line 224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_page_created ((LibraryWindow*) self, entry, page); -#line 2150 "LibraryWindow.c" -} - - -static void -_library_window_on_destroying_page_sidebar_tree_destroying_page (SidebarTree* _sender, - SidebarPageRepresentative* entry, - Page* page, - gpointer self) -{ -#line 225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_destroying_page ((LibraryWindow*) self, entry, page); -#line 2162 "LibraryWindow.c" -} - - -static void -_library_window_on_sidebar_entry_selected_sidebar_tree_entry_selected (SidebarTree* _sender, - SidebarSelectableEntry* selectable, - gpointer self) -{ -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_sidebar_entry_selected ((LibraryWindow*) self, selectable); -#line 2173 "LibraryWindow.c" -} - - -static void -_library_window_on_sidebar_selected_entry_removed_sidebar_tree_selected_entry_removed (SidebarTree* _sender, - SidebarSelectableEntry* removed, - gpointer self) -{ -#line 227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_sidebar_selected_entry_removed ((LibraryWindow*) self, removed); -#line 2184 "LibraryWindow.c" -} - - -static void -_library_window_hide_extended_properties_gtk_widget_hide (GtkWidget* _sender, - gpointer self) -{ -#line 231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_hide_extended_properties ((LibraryWindow*) self); -#line 2194 "LibraryWindow.c" -} - - -static void -_library_window_show_extended_properties_gtk_widget_show (GtkWidget* _sender, - gpointer self) -{ -#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_show_extended_properties ((LibraryWindow*) self); -#line 2204 "LibraryWindow.c" -} - - -static void -_library_window_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self) -{ -#line 235 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_trashcan_contents_altered ((LibraryWindow*) self); -#line 2216 "LibraryWindow.c" -} - - -static void -_library_window_on_media_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 236 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_media_altered ((LibraryWindow*) self); -#line 2227 "LibraryWindow.c" -} - - -static void -_library_window_on_metadata_writer_progress_metadata_writer_progress (MetadataWriter* _sender, - guint completed, - guint total, - gpointer self) -{ -#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_metadata_writer_progress ((LibraryWindow*) self, completed, total); -#line 2239 "LibraryWindow.c" -} - - -static void -_library_window_on_library_monitor_installed_library_monitor_pool_monitor_installed (LibraryMonitorPool* _sender, - LibraryMonitor* monitor, - gpointer self) -{ -#line 245 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_library_monitor_installed ((LibraryWindow*) self, monitor); -#line 2250 "LibraryWindow.c" -} - - -static void -_library_window_on_library_monitor_destroyed_library_monitor_pool_monitor_destroyed (LibraryMonitorPool* _sender, - LibraryMonitor* monitor, - gpointer self) -{ -#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_library_monitor_destroyed ((LibraryWindow*) self, monitor); -#line 2261 "LibraryWindow.c" -} - - -static void -_library_window_on_camera_added_camera_table_camera_added (CameraTable* _sender, - DiscoveredCamera* camera, - gpointer self) -{ -#line 248 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_camera_added ((LibraryWindow*) self, camera); -#line 2272 "LibraryWindow.c" -} - - -static GType -library_window_sidebar_root_position_get_type (void) -{ - static volatile gsize library_window_sidebar_root_position_type_id__volatile = 0; - if (g_once_init_enter (&library_window_sidebar_root_position_type_id__volatile)) { - static const GEnumValue values[] = {{LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_LIBRARY, "LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_LIBRARY", "library"}, {LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_CAMERAS, "LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_CAMERAS", "cameras"}, {LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_SAVED_SEARCH, "LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_SAVED_SEARCH", "saved-search"}, {LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_EVENTS, "LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_EVENTS", "events"}, {LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_FOLDERS, "LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_FOLDERS", "folders"}, {LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_TAGS, "LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_TAGS", "tags"}, {0, NULL, NULL}}; - GType library_window_sidebar_root_position_type_id; - library_window_sidebar_root_position_type_id = g_enum_register_static ("LibraryWindowSidebarRootPosition", values); - g_once_init_leave (&library_window_sidebar_root_position_type_id__volatile, library_window_sidebar_root_position_type_id); - } - return library_window_sidebar_root_position_type_id__volatile; -} - - -GType -library_window_target_type_get_type (void) -{ - static volatile gsize library_window_target_type_type_id__volatile = 0; - if (g_once_init_enter (&library_window_target_type_type_id__volatile)) { - static const GEnumValue values[] = {{LIBRARY_WINDOW_TARGET_TYPE_URI_LIST, "LIBRARY_WINDOW_TARGET_TYPE_URI_LIST", "uri-list"}, {LIBRARY_WINDOW_TARGET_TYPE_MEDIA_LIST, "LIBRARY_WINDOW_TARGET_TYPE_MEDIA_LIST", "media-list"}, {LIBRARY_WINDOW_TARGET_TYPE_TAG_PATH, "LIBRARY_WINDOW_TARGET_TYPE_TAG_PATH", "tag-path"}, {0, NULL, NULL}}; - GType library_window_target_type_type_id; - library_window_target_type_type_id = g_enum_register_static ("LibraryWindowTargetType", values); - g_once_init_leave (&library_window_target_type_type_id__volatile, library_window_target_type_type_id); - } - return library_window_target_type_type_id__volatile; -} - - -static void -_library_window_on_file_import_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_file_import ((LibraryWindow*) self); -#line 2311 "LibraryWindow.c" -} - - -static void -_library_window_on_external_library_import_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_external_library_import ((LibraryWindow*) self); -#line 2322 "LibraryWindow.c" -} - - -static void -_library_window_on_preferences_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_preferences ((LibraryWindow*) self); -#line 2333 "LibraryWindow.c" -} - - -static void -_library_window_on_empty_trash_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_empty_trash ((LibraryWindow*) self); -#line 2344 "LibraryWindow.c" -} - - -static void -_library_window_on_jump_to_event_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_jump_to_event ((LibraryWindow*) self); -#line 2355 "LibraryWindow.c" -} - - -static void -_library_window_on_find_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_find ((LibraryWindow*) self); -#line 2366 "LibraryWindow.c" -} - - -static void -_library_window_on_new_search_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_new_search ((LibraryWindow*) self); -#line 2377 "LibraryWindow.c" -} - - -static void -_library_window_on_action_toggle_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_action_toggle ((LibraryWindow*) self, action, parameter); -#line 2388 "LibraryWindow.c" -} - - -static void -_library_window_on_display_basic_properties_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_display_basic_properties ((LibraryWindow*) self, action, value); -#line 2399 "LibraryWindow.c" -} - - -static void -_library_window_on_display_extended_properties_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_display_extended_properties ((LibraryWindow*) self, action, value); -#line 2410 "LibraryWindow.c" -} - - -static void -_library_window_on_display_searchbar_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_display_searchbar ((LibraryWindow*) self, action, value); -#line 2421 "LibraryWindow.c" -} - - -static void -_library_window_on_display_sidebar_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_display_sidebar ((LibraryWindow*) self, action, value); -#line 2432 "LibraryWindow.c" -} - - -static void -_library_window_on_display_toolbar_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_display_toolbar ((LibraryWindow*) self, action, value); -#line 2443 "LibraryWindow.c" -} - - -static void -_library_window_on_action_radio_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_action_radio ((LibraryWindow*) self, action, parameter); -#line 2454 "LibraryWindow.c" -} - - -static void -_library_window_on_events_sort_changed_gsimple_action_change_state_callback (GSimpleAction* action, - GVariant* value, - gpointer self) -{ -#line 273 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_events_sort_changed ((LibraryWindow*) self, action, value); -#line 2465 "LibraryWindow.c" -} - - -static void -_library_window_external_drop_handler_sidebar_tree_external_drop_handler (GdkDragContext* context, - SidebarEntry* entry, - GtkSelectionData* data, - guint info, - guint time, - gpointer self) -{ -#line 156 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_external_drop_handler ((LibraryWindow*) self, context, entry, data, info, time); -#line 2479 "LibraryWindow.c" -} - - -static void -_library_window_on_update_properties_now_one_shot_callback (gpointer self) -{ -#line 176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_update_properties_now ((LibraryWindow*) self); -#line 2488 "LibraryWindow.c" -} - - -LibraryWindow* -library_window_construct (GType object_type, - ProgressMonitor progress_monitor, - void* progress_monitor_target) -{ - LibraryWindow * self = NULL; - SidebarTree* _tmp0_; - SidebarTree* _tmp1_; - SidebarTree* _tmp2_; - SidebarTree* _tmp3_; - SidebarTree* _tmp4_; - SidebarTree* _tmp5_; - LibraryBranch* _tmp6_; - SidebarTree* _tmp7_; - TagsBranch* _tmp8_; - SidebarTree* _tmp9_; - FoldersBranch* _tmp10_; - SidebarTree* _tmp11_; - EventsBranch* _tmp12_; - SidebarTree* _tmp13_; - CameraBranch* _tmp14_; - SidebarTree* _tmp15_; - SearchesBranch* _tmp16_; - ExtendedPropertiesWindow* _tmp17_; - ExtendedPropertiesWindow* _tmp18_; - ExtendedPropertiesWindow* _tmp19_; - OneShotScheduler* _tmp20_; - SearchFilterActions* _tmp21_; - SearchFilterToolbar* _tmp22_; - LibraryBranch* _tmp23_; - LibraryPhotosEntry* _tmp24_; - LibraryPhotosEntry* _tmp25_; - Page* _tmp26_; - Page* _tmp27_; - GtkTargetEntry* main_window_dnd_targets = NULL; - GtkTargetEntry _tmp39_; - GtkTargetEntry _tmp40_; - GtkTargetEntry* _tmp41_; - gint main_window_dnd_targets_length1; - gint _main_window_dnd_targets_size_; - GtkTargetEntry* _tmp42_; - gint _tmp42__length1; - MetadataWriter* _tmp43_; - MetadataWriter* _tmp44_; - LibraryMonitor* monitor = NULL; - LibraryMonitorPool* _tmp45_; - LibraryMonitorPool* _tmp46_; - LibraryMonitor* _tmp47_; - LibraryMonitor* _tmp48_; - LibraryMonitor* _tmp49_; - LibraryMonitorPool* _tmp51_; - LibraryMonitorPool* _tmp52_; - LibraryMonitorPool* _tmp53_; - LibraryMonitorPool* _tmp54_; - CameraTable* _tmp55_; - CameraTable* _tmp56_; - GtkProgressBar* _tmp57_; -#line 219 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - static const gchar* accels[3] = {"f", "F8", NULL}; -#line 154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = (LibraryWindow*) app_window_construct (object_type); -#line 156 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = sidebar_tree_new (LIBRARY_WINDOW_DND_TARGET_ENTRIES, G_N_ELEMENTS (LIBRARY_WINDOW_DND_TARGET_ENTRIES), GDK_ACTION_ASK, _library_window_external_drop_handler_sidebar_tree_external_drop_handler, self); -#line 156 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp0_); -#line 156 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->sidebar_tree); -#line 156 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->sidebar_tree = _tmp0_; -#line 159 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = self->priv->sidebar_tree; -#line 159 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (_tmp1_, "page-created", (GCallback) _library_window_on_page_created_sidebar_tree_page_created, self, 0); -#line 160 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = self->priv->sidebar_tree; -#line 160 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (_tmp2_, "destroying-page", (GCallback) _library_window_on_destroying_page_sidebar_tree_destroying_page, self, 0); -#line 161 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = self->priv->sidebar_tree; -#line 161 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (_tmp3_, "entry-selected", (GCallback) _library_window_on_sidebar_entry_selected_sidebar_tree_entry_selected, self, 0); -#line 162 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = self->priv->sidebar_tree; -#line 162 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (_tmp4_, "selected-entry-removed", (GCallback) _library_window_on_sidebar_selected_entry_removed_sidebar_tree_selected_entry_removed, self, 0); -#line 164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = self->priv->sidebar_tree; -#line 164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = self->priv->library_branch; -#line 164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - sidebar_tree_graft (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SIDEBAR_TYPE_BRANCH, SidebarBranch), (gint) LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_LIBRARY); -#line 165 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = self->priv->sidebar_tree; -#line 165 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = self->priv->tags_branch; -#line 165 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - sidebar_tree_graft (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, SIDEBAR_TYPE_BRANCH, SidebarBranch), (gint) LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_TAGS); -#line 166 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = self->priv->sidebar_tree; -#line 166 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = self->priv->folders_branch; -#line 166 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - sidebar_tree_graft (_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, SIDEBAR_TYPE_BRANCH, SidebarBranch), (gint) LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_FOLDERS); -#line 167 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = self->priv->sidebar_tree; -#line 167 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = self->priv->events_branch; -#line 167 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - sidebar_tree_graft (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, SIDEBAR_TYPE_BRANCH, SidebarBranch), (gint) LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_EVENTS); -#line 168 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = self->priv->sidebar_tree; -#line 168 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = self->priv->camera_branch; -#line 168 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - sidebar_tree_graft (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, SIDEBAR_TYPE_BRANCH, SidebarBranch), (gint) LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_CAMERAS); -#line 169 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp15_ = self->priv->sidebar_tree; -#line 169 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp16_ = self->priv->saved_search_branch; -#line 169 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - sidebar_tree_graft (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SIDEBAR_TYPE_BRANCH, SidebarBranch), (gint) LIBRARY_WINDOW_SIDEBAR_ROOT_POSITION_SAVED_SEARCH); -#line 172 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp17_ = extended_properties_window_new (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow)); -#line 172 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp17_); -#line 172 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->extended_properties); -#line 172 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->extended_properties = _tmp17_; -#line 173 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp18_ = self->priv->extended_properties; -#line 173 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), "hide", (GCallback) _library_window_hide_extended_properties_gtk_widget_hide, self, 0); -#line 174 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp19_ = self->priv->extended_properties; -#line 174 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget), "show", (GCallback) _library_window_show_extended_properties_gtk_widget_show, self, 0); -#line 176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp20_ = one_shot_scheduler_new ("LibraryWindow properties", _library_window_on_update_properties_now_one_shot_callback, self); -#line 176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _one_shot_scheduler_unref0 (self->priv->properties_scheduler); -#line 176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->properties_scheduler = _tmp20_; -#line 180 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp21_ = self->priv->search_actions; -#line 180 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp22_ = search_filter_toolbar_new (_tmp21_); -#line 180 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp22_); -#line 180 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->search_toolbar); -#line 180 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->search_toolbar = _tmp22_; -#line 183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp23_ = self->priv->library_branch; -#line 183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp24_ = library_branch_get_photos_entry (_tmp23_); -#line 183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp25_ = _tmp24_; -#line 183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp26_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp27_ = _tmp26_; -#line 183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_create_layout (self, _tmp27_); -#line 183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp27_); -#line 186 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_load_configuration (self); -#line 2661 "LibraryWindow.c" - { - GeeIterator* _media_sources_it = NULL; - MediaCollectionRegistry* _tmp28_; - MediaCollectionRegistry* _tmp29_; - GeeCollection* _tmp30_; - GeeCollection* _tmp31_; - GeeIterator* _tmp32_; - GeeIterator* _tmp33_; -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp28_ = media_collection_registry_get_instance (); -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp29_ = _tmp28_; -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp30_ = media_collection_registry_get_all (_tmp29_); -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp31_ = _tmp30_; -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp32_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp33_ = _tmp32_; -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp31_); -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _media_collection_registry_unref0 (_tmp29_); -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _media_sources_it = _tmp33_; -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - while (TRUE) { -#line 2690 "LibraryWindow.c" - GeeIterator* _tmp34_; - MediaSourceCollection* media_sources = NULL; - GeeIterator* _tmp35_; - gpointer _tmp36_; - MediaSourceCollection* _tmp37_; - MediaSourceCollection* _tmp38_; -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp34_ = _media_sources_it; -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (!gee_iterator_next (_tmp34_)) { -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - break; -#line 2703 "LibraryWindow.c" - } -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp35_ = _media_sources_it; -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp36_ = gee_iterator_get (_tmp35_); -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - media_sources = (MediaSourceCollection*) _tmp36_; -#line 189 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp37_ = media_sources; -#line 189 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (_tmp37_, "trashcan-contents-altered", (GCallback) _library_window_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self, 0); -#line 190 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp38_ = media_sources; -#line 190 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _library_window_on_media_altered_data_collection_items_altered, self, 0); -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (media_sources); -#line 2721 "LibraryWindow.c" - } -#line 188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_media_sources_it); -#line 2725 "LibraryWindow.c" - } -#line 195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp39_ = LIBRARY_WINDOW_DND_TARGET_ENTRIES[LIBRARY_WINDOW_TARGET_TYPE_URI_LIST]; -#line 195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp40_ = LIBRARY_WINDOW_DND_TARGET_ENTRIES[LIBRARY_WINDOW_TARGET_TYPE_MEDIA_LIST]; -#line 195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp41_ = g_new0 (GtkTargetEntry, 2); -#line 195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp41_[0] = _tmp39_; -#line 195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp41_[1] = _tmp40_; -#line 195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - main_window_dnd_targets = _tmp41_; -#line 195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - main_window_dnd_targets_length1 = 2; -#line 195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _main_window_dnd_targets_size_ = main_window_dnd_targets_length1; -#line 201 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp42_ = main_window_dnd_targets; -#line 201 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp42__length1 = main_window_dnd_targets_length1; -#line 201 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_drag_dest_set (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), GTK_DEST_DEFAULT_ALL, _tmp42_, _tmp42__length1, (GDK_ACTION_COPY | GDK_ACTION_LINK) | GDK_ACTION_ASK); -#line 204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp43_ = metadata_writer_get_instance (); -#line 204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp44_ = _tmp43_; -#line 204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (_tmp44_, "progress", (GCallback) _library_window_on_metadata_writer_progress_metadata_writer_progress, self, 0); -#line 204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp44_); -#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp45_ = library_monitor_pool_get_instance (); -#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp46_ = _tmp45_; -#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp47_ = library_monitor_pool_get_monitor (_tmp46_); -#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp48_ = _tmp47_; -#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _library_monitor_pool_unref0 (_tmp46_); -#line 206 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - monitor = _tmp48_; -#line 207 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp49_ = monitor; -#line 207 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp49_ != NULL) { -#line 2773 "LibraryWindow.c" - LibraryMonitor* _tmp50_; -#line 208 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp50_ = monitor; -#line 208 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_library_monitor_installed (self, _tmp50_); -#line 2779 "LibraryWindow.c" - } -#line 210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp51_ = library_monitor_pool_get_instance (); -#line 210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp52_ = _tmp51_; -#line 210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (_tmp52_, "monitor-installed", (GCallback) _library_window_on_library_monitor_installed_library_monitor_pool_monitor_installed, self, 0); -#line 210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _library_monitor_pool_unref0 (_tmp52_); -#line 211 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp53_ = library_monitor_pool_get_instance (); -#line 211 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp54_ = _tmp53_; -#line 211 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (_tmp54_, "monitor-destroyed", (GCallback) _library_window_on_library_monitor_destroyed_library_monitor_pool_monitor_destroyed, self, 0); -#line 211 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _library_monitor_pool_unref0 (_tmp54_); -#line 213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp55_ = camera_table_get_instance (); -#line 213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp56_ = _tmp55_; -#line 213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (_tmp56_, "camera-added", (GCallback) _library_window_on_camera_added_camera_table_camera_added, self, 0); -#line 213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _camera_table_unref0 (_tmp56_); -#line 215 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp57_ = self->priv->background_progress_bar; -#line 215 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_progress_bar_set_show_text (_tmp57_, TRUE); -#line 220 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - application_set_accels_for_action ("win.CommonDisplaySearchbar", accels, G_N_ELEMENTS (accels)); -#line 154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (monitor); -#line 154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - main_window_dnd_targets = (g_free (main_window_dnd_targets), NULL); -#line 154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return self; -#line 2817 "LibraryWindow.c" -} - - -LibraryWindow* -library_window_new (ProgressMonitor progress_monitor, - void* progress_monitor_target) -{ -#line 154 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return library_window_construct (TYPE_LIBRARY_WINDOW, progress_monitor, progress_monitor_target); -#line 2827 "LibraryWindow.c" -} - - -static void -_library_window_on_library_monitor_discovery_started_directory_monitor_discovery_started (DirectoryMonitor* _sender, - gpointer self) -{ -#line 254 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_library_monitor_discovery_started ((LibraryWindow*) self); -#line 2837 "LibraryWindow.c" -} - - -static void -_library_window_on_library_monitor_discovery_completed_directory_monitor_discovery_completed (DirectoryMonitor* _sender, - gpointer self) -{ -#line 255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_library_monitor_discovery_completed ((LibraryWindow*) self); -#line 2847 "LibraryWindow.c" -} - - -static void -_library_window_on_library_monitor_discovery_completed_directory_monitor_closed (DirectoryMonitor* _sender, - gpointer self) -{ -#line 256 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_library_monitor_discovery_completed ((LibraryWindow*) self); -#line 2857 "LibraryWindow.c" -} - - -static void -_library_window_on_library_monitor_auto_update_progress_library_monitor_auto_update_progress (LibraryMonitor* _sender, - gint completed_files, - gint total_files, - gpointer self) -{ -#line 257 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_library_monitor_auto_update_progress ((LibraryWindow*) self, completed_files, total_files); -#line 2869 "LibraryWindow.c" -} - - -static void -_library_window_on_library_monitor_auto_import_preparing_library_monitor_auto_import_preparing (LibraryMonitor* _sender, - gpointer self) -{ -#line 258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_library_monitor_auto_import_preparing ((LibraryWindow*) self); -#line 2879 "LibraryWindow.c" -} - - -static void -_library_window_on_library_monitor_auto_import_progress_library_monitor_auto_import_progress (LibraryMonitor* _sender, - guint64 completed_bytes, - guint64 total_bytes, - gpointer self) -{ -#line 259 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_library_monitor_auto_import_progress ((LibraryWindow*) self, completed_bytes, total_bytes); -#line 2891 "LibraryWindow.c" -} - - -static void -library_window_on_library_monitor_installed (LibraryWindow* self, - LibraryMonitor* monitor) -{ - GFile* _tmp0_; - GFile* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 251 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 251 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (monitor)); -#line 252 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = directory_monitor_get_root (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor)); -#line 252 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 252 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = g_file_get_path (_tmp1_); -#line 252 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = _tmp2_; -#line 252 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:252: on_library_monitor_installed: %s", _tmp3_); -#line 252 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (_tmp3_); -#line 252 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 254 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), "discovery-started", (GCallback) _library_window_on_library_monitor_discovery_started_directory_monitor_discovery_started, self, 0); -#line 255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), "discovery-completed", (GCallback) _library_window_on_library_monitor_discovery_completed_directory_monitor_discovery_completed, self, 0); -#line 256 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), "closed", (GCallback) _library_window_on_library_monitor_discovery_completed_directory_monitor_closed, self, 0); -#line 257 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (monitor, "auto-update-progress", (GCallback) _library_window_on_library_monitor_auto_update_progress_library_monitor_auto_update_progress, self, 0); -#line 258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (monitor, "auto-import-preparing", (GCallback) _library_window_on_library_monitor_auto_import_preparing_library_monitor_auto_import_preparing, self, 0); -#line 259 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (monitor, "auto-import-progress", (GCallback) _library_window_on_library_monitor_auto_import_progress_library_monitor_auto_import_progress, self, 0); -#line 2933 "LibraryWindow.c" -} - - -static void -library_window_on_library_monitor_destroyed (LibraryWindow* self, - LibraryMonitor* monitor) -{ - GFile* _tmp0_; - GFile* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - guint _tmp4_; - guint _tmp5_; - guint _tmp6_; - guint _tmp7_; - guint _tmp8_; - guint _tmp9_; -#line 262 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 262 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_MONITOR (monitor)); -#line 263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = directory_monitor_get_root (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor)); -#line 263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = g_file_get_path (_tmp1_); -#line 263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = _tmp2_; -#line 263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:263: on_library_monitor_destroyed: %s", _tmp3_); -#line 263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (_tmp3_); -#line 263 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("discovery-started", TYPE_DIRECTORY_MONITOR, &_tmp4_, NULL, FALSE); -#line 265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _library_window_on_library_monitor_discovery_started_directory_monitor_discovery_started, self); -#line 266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("discovery-completed", TYPE_DIRECTORY_MONITOR, &_tmp5_, NULL, FALSE); -#line 266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _library_window_on_library_monitor_discovery_completed_directory_monitor_discovery_completed, self); -#line 267 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("closed", TYPE_DIRECTORY_MONITOR, &_tmp6_, NULL, FALSE); -#line 267 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (monitor, TYPE_DIRECTORY_MONITOR, DirectoryMonitor), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _library_window_on_library_monitor_discovery_completed_directory_monitor_closed, self); -#line 268 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("auto-update-progress", TYPE_LIBRARY_MONITOR, &_tmp7_, NULL, FALSE); -#line 268 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (monitor, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _library_window_on_library_monitor_auto_update_progress_library_monitor_auto_update_progress, self); -#line 269 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("auto-import-preparing", TYPE_LIBRARY_MONITOR, &_tmp8_, NULL, FALSE); -#line 269 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (monitor, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _library_window_on_library_monitor_auto_import_preparing_library_monitor_auto_import_preparing, self); -#line 270 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("auto-import-progress", TYPE_LIBRARY_MONITOR, &_tmp9_, NULL, FALSE); -#line 270 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (monitor, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _library_window_on_library_monitor_auto_import_progress_library_monitor_auto_import_progress, self); -#line 2993 "LibraryWindow.c" -} - - -static GVariant* -_variant_new1 (gboolean value) -{ -#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 3002 "LibraryWindow.c" -} - - -static GVariant* -_variant_new2 (gboolean value) -{ -#line 300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 3011 "LibraryWindow.c" -} - - -static GVariant* -_variant_new3 (gboolean value) -{ -#line 301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 3020 "LibraryWindow.c" -} - - -static void -library_window_real_add_actions (AppWindow* base) -{ - LibraryWindow * self; - SearchFilterActions* _tmp0_; - gint _tmp1_; - GActionEntry* _tmp2_; - SearchFilterActions* _tmp3_; - GAction* _tmp4_; - ConfigFacade* _tmp5_; - ConfigFacade* _tmp6_; - GVariant* _tmp7_; - GAction* _tmp8_; - GVariant* _tmp9_; - GAction* _tmp10_; - GVariant* _tmp11_; -#line 294 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 295 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - APP_WINDOW_CLASS (library_window_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)); -#line 296 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), LIBRARY_WINDOW_common_actions, G_N_ELEMENTS (LIBRARY_WINDOW_common_actions), self); -#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->search_actions; -#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = search_filter_actions_get_actions (_tmp0_, &_tmp1_); -#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = self->priv->search_actions; -#line 297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), _tmp2_, _tmp1_, _tmp3_); -#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplaySearchbar"); -#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = config_facade_get_instance (); -#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = _tmp5_; -#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = _variant_new1 (configuration_facade_get_display_search_bar (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_action_change_state (_tmp4_, _tmp7_); -#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_variant_unref0 (_tmp7_); -#line 299 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp6_); -#line 300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplaySidebar"); -#line 300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = _variant_new2 (library_window_is_sidebar_visible (self)); -#line 300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_action_change_state (_tmp8_, _tmp9_); -#line 300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_variant_unref0 (_tmp9_); -#line 301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplayToolbar"); -#line 301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = _variant_new3 (library_window_is_toolbar_visible (self)); -#line 301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_action_change_state (_tmp10_, _tmp11_); -#line 301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_variant_unref0 (_tmp11_); -#line 3084 "LibraryWindow.c" -} - - -static void -_library_window_on_view_filter_installed_view_collection_view_filter_installed (ViewCollection* _sender, - ViewFilter* filer, - gpointer self) -{ -#line 309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_view_filter_installed ((LibraryWindow*) self, filer); -#line 3095 "LibraryWindow.c" -} - - -static void -_library_window_on_view_filter_removed_view_collection_view_filter_removed (ViewCollection* _sender, - ViewFilter* filer, - gpointer self) -{ -#line 310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_view_filter_removed ((LibraryWindow*) self, filer); -#line 3106 "LibraryWindow.c" -} - - -static void -library_window_real_switched_pages (PageWindow* base, - Page* old_page, - Page* new_page) -{ - LibraryWindow * self; - SearchFilterActions* _tmp10_; -#line 304 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 304 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail ((old_page == NULL) || IS_PAGE (old_page)); -#line 304 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail ((new_page == NULL) || IS_PAGE (new_page)); -#line 305 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - PAGE_WINDOW_CLASS (library_window_parent_class)->switched_pages (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), TYPE_PAGE_WINDOW, PageWindow), old_page, new_page); -#line 308 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (old_page != NULL) { -#line 3127 "LibraryWindow.c" - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - guint _tmp2_; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - guint _tmp5_; -#line 309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = page_get_view (old_page); -#line 309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("view-filter-installed", TYPE_VIEW_COLLECTION, &_tmp2_, NULL, FALSE); -#line 309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _library_window_on_view_filter_installed_view_collection_view_filter_installed, self); -#line 309 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_tmp1_); -#line 310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = page_get_view (old_page); -#line 310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = _tmp3_; -#line 310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("view-filter-removed", TYPE_VIEW_COLLECTION, &_tmp5_, NULL, FALSE); -#line 310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _library_window_on_view_filter_removed_view_collection_view_filter_removed, self); -#line 310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_tmp4_); -#line 3154 "LibraryWindow.c" - } -#line 313 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (new_page != NULL) { -#line 3158 "LibraryWindow.c" - ViewCollection* _tmp6_; - ViewCollection* _tmp7_; - ViewCollection* _tmp8_; - ViewCollection* _tmp9_; -#line 314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = page_get_view (new_page); -#line 314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = _tmp6_; -#line 314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (_tmp7_, "view-filter-installed", (GCallback) _library_window_on_view_filter_installed_view_collection_view_filter_installed, self, 0); -#line 314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_tmp7_); -#line 315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = page_get_view (new_page); -#line 315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = _tmp8_; -#line 315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (_tmp9_, "view-filter-removed", (GCallback) _library_window_on_view_filter_removed_view_collection_view_filter_removed, self, 0); -#line 315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_tmp9_); -#line 3179 "LibraryWindow.c" - } -#line 318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = self->priv->search_actions; -#line 318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - search_filter_actions_monitor_page_contents (_tmp10_, old_page, new_page); -#line 3185 "LibraryWindow.c" -} - - -static void -_library_window_on_view_filter_refreshed_view_filter_refresh (ViewFilter* _sender, - gpointer self) -{ -#line 322 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_view_filter_refreshed ((LibraryWindow*) self); -#line 3195 "LibraryWindow.c" -} - - -static void -library_window_on_view_filter_installed (LibraryWindow* self, - ViewFilter* filter) -{ -#line 321 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 321 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_VIEW_FILTER (filter)); -#line 322 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (filter, "refresh", (GCallback) _library_window_on_view_filter_refreshed_view_filter_refresh, self, 0); -#line 3209 "LibraryWindow.c" -} - - -static void -library_window_on_view_filter_removed (LibraryWindow* self, - ViewFilter* filter) -{ - guint _tmp0_; -#line 325 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 325 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_VIEW_FILTER (filter)); -#line 326 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("refresh", TYPE_VIEW_FILTER, &_tmp0_, NULL, FALSE); -#line 326 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (filter, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _library_window_on_view_filter_refreshed_view_filter_refresh, self); -#line 3226 "LibraryWindow.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return self ? g_object_ref (self) : NULL; -#line 3235 "LibraryWindow.c" -} - - -static GVariant* -_variant_new4 (gboolean value) -{ -#line 339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 3244 "LibraryWindow.c" -} - - -static void -library_window_on_view_filter_refreshed (LibraryWindow* self) -{ - Page* _tmp0_; - Page* _tmp1_; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; - gboolean _tmp4_; - GAction* action = NULL; - GAction* _tmp5_; - GAction* _tmp6_; - GAction* _tmp7_; -#line 329 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = page_get_view (_tmp1_); -#line 332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = _tmp2_; -#line 332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = !view_collection_are_items_filtered_out (_tmp3_); -#line 332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_tmp3_); -#line 332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp4_) { -#line 333 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 3280 "LibraryWindow.c" - } -#line 336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplaySearchbar"); -#line 336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = _g_object_ref0 (_tmp5_); -#line 336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - action = _tmp6_; -#line 338 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = action; -#line 338 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp7_ != NULL) { -#line 3292 "LibraryWindow.c" - GAction* _tmp8_; - GVariant* _tmp9_; -#line 339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = action; -#line 339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = _variant_new4 (TRUE); -#line 339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_action_change_state (_tmp8_, _tmp9_); -#line 339 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_variant_unref0 (_tmp9_); -#line 3303 "LibraryWindow.c" - } -#line 329 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (action); -#line 3307 "LibraryWindow.c" -} - - -static void -library_window_real_show_all (GtkWidget* base) -{ - LibraryWindow * self; - GAction* basic_properties_action = NULL; - Page* _tmp0_; - Page* _tmp1_; - GAction* _tmp2_; - GAction* _tmp3_; - GAction* _tmp4_; - GAction* _tmp5_; - GVariant* _tmp6_; - GVariant* _tmp7_; - gboolean _tmp8_; - CheckerboardPage* current_page = NULL; - Page* _tmp10_; - CheckerboardPage* _tmp11_; - CheckerboardPage* _tmp12_; - CheckerboardPage* _tmp14_; -#line 343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 344 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - GTK_WIDGET_CLASS (library_window_parent_class)->show_all (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), gtk_widget_get_type (), GtkWidget)); -#line 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = page_get_common_action (_tmp1_, "CommonDisplayBasicProperties", TRUE); -#line 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = _tmp2_; -#line 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - basic_properties_action = _tmp3_; -#line 348 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = basic_properties_action; -#line 348 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_assert (_tmp4_ != NULL, "basic_properties_action != null"); -#line 350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = basic_properties_action; -#line 350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = g_action_get_state (_tmp5_); -#line 350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = _tmp6_; -#line 350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = !g_variant_get_boolean (_tmp7_); -#line 350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_variant_unref0 (_tmp7_); -#line 350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp8_) { -#line 3362 "LibraryWindow.c" - GtkFrame* _tmp9_; -#line 351 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = self->priv->bottom_frame; -#line 351 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget)); -#line 3368 "LibraryWindow.c" - } -#line 354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) _tmp10_) : NULL; -#line 354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp11_ == NULL) { -#line 354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp10_); -#line 3378 "LibraryWindow.c" - } -#line 354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - current_page = _tmp11_; -#line 355 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = current_page; -#line 355 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp12_ != NULL) { -#line 3386 "LibraryWindow.c" - CheckerboardPage* _tmp13_; -#line 356 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = current_page; -#line 356 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_init_view_filter (self, _tmp13_); -#line 3392 "LibraryWindow.c" - } -#line 358 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = current_page; -#line 358 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_toggle_search_bar (self, library_window_should_show_search_bar (self), _tmp14_); -#line 361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_set_sidebar_visible (self, library_window_is_sidebar_visible (self)); -#line 343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (current_page); -#line 343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (basic_properties_action); -#line 3404 "LibraryWindow.c" -} - - -LibraryWindow* -library_window_get_app (void) -{ - LibraryWindow* result = NULL; - AppWindow* _tmp0_; - AppWindow* _tmp1_; - LibraryWindow* _tmp2_; -#line 365 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = app_window_instance; -#line 365 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_LIBRARY_WINDOW), "instance is LibraryWindow"); -#line 367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = app_window_instance; -#line 367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_LIBRARY_WINDOW, LibraryWindow)); -#line 367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = _tmp2_; -#line 367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 3427 "LibraryWindow.c" -} - - -gboolean -library_window_is_mount_uri_supported (const gchar* uri) -{ - gboolean result = FALSE; -#line 371 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail (uri != NULL, FALSE); -#line 3437 "LibraryWindow.c" - { - const gchar** scheme_collection = NULL; - gint scheme_collection_length1 = 0; - gint _scheme_collection_size_ = 0; - gint scheme_it = 0; -#line 372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - scheme_collection = LIBRARY_WINDOW_SUPPORTED_MOUNT_SCHEMES; -#line 372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - scheme_collection_length1 = G_N_ELEMENTS (LIBRARY_WINDOW_SUPPORTED_MOUNT_SCHEMES); -#line 372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - for (scheme_it = 0; scheme_it < G_N_ELEMENTS (LIBRARY_WINDOW_SUPPORTED_MOUNT_SCHEMES); scheme_it = scheme_it + 1) { -#line 3449 "LibraryWindow.c" - gchar* _tmp0_; - gchar* scheme = NULL; -#line 372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = g_strdup (scheme_collection[scheme_it]); -#line 372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - scheme = _tmp0_; -#line 3456 "LibraryWindow.c" - { - const gchar* _tmp1_; -#line 373 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = scheme; -#line 373 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (g_str_has_prefix (uri, _tmp1_)) { -#line 374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = TRUE; -#line 374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (scheme); -#line 374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 3469 "LibraryWindow.c" - } -#line 372 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (scheme); -#line 3473 "LibraryWindow.c" - } - } - } -#line 377 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = FALSE; -#line 377 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 3481 "LibraryWindow.c" -} - - -static gchar* -library_window_real_get_app_role (AppWindow* base) -{ - LibraryWindow * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 380 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 381 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = g_strdup (RESOURCES_APP_LIBRARY_ROLE); -#line 381 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = _tmp0_; -#line 381 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 3499 "LibraryWindow.c" -} - - -void -library_window_rename_tag_in_sidebar (LibraryWindow* self, - Tag* tag) -{ - TagsSidebarEntry* entry = NULL; - TagsBranch* _tmp0_; - TagsSidebarEntry* _tmp1_; - TagsSidebarEntry* _tmp2_; -#line 384 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 384 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_TAG (tag)); -#line 385 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->tags_branch; -#line 385 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = tags_branch_get_entry_for_tag (_tmp0_, tag); -#line 385 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - entry = _tmp1_; -#line 386 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = entry; -#line 386 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp2_ != NULL) { -#line 3525 "LibraryWindow.c" - SidebarTree* _tmp3_; - TagsSidebarEntry* _tmp4_; -#line 387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = self->priv->sidebar_tree; -#line 387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = entry; -#line 387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - sidebar_tree_rename_entry_in_place (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 3534 "LibraryWindow.c" - } else { -#line 389 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:389: No tag entry found for rename"); -#line 3538 "LibraryWindow.c" - } -#line 384 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (entry); -#line 3542 "LibraryWindow.c" -} - - -void -library_window_rename_event_in_sidebar (LibraryWindow* self, - Event* event) -{ - EventsEventEntry* entry = NULL; - EventsBranch* _tmp0_; - EventsEventEntry* _tmp1_; - EventsEventEntry* _tmp2_; -#line 392 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 392 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_EVENT (event)); -#line 393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->events_branch; -#line 393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = events_branch_get_entry_for_event (_tmp0_, event); -#line 393 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - entry = _tmp1_; -#line 394 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = entry; -#line 394 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp2_ != NULL) { -#line 3568 "LibraryWindow.c" - SidebarTree* _tmp3_; - EventsEventEntry* _tmp4_; -#line 395 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = self->priv->sidebar_tree; -#line 395 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = entry; -#line 395 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - sidebar_tree_rename_entry_in_place (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 3577 "LibraryWindow.c" - } else { -#line 397 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:397: No event entry found for rename"); -#line 3581 "LibraryWindow.c" - } -#line 392 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (entry); -#line 3585 "LibraryWindow.c" -} - - -void -library_window_rename_search_in_sidebar (LibraryWindow* self, - SavedSearch* search) -{ - SearchesSidebarEntry* entry = NULL; - SearchesBranch* _tmp0_; - SearchesSidebarEntry* _tmp1_; - SearchesSidebarEntry* _tmp2_; -#line 400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_SAVED_SEARCH (search)); -#line 401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->saved_search_branch; -#line 401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = searches_branch_get_entry_for_saved_search (_tmp0_, search); -#line 401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - entry = _tmp1_; -#line 402 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = entry; -#line 402 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp2_ != NULL) { -#line 3611 "LibraryWindow.c" - SidebarTree* _tmp3_; - SearchesSidebarEntry* _tmp4_; -#line 403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = self->priv->sidebar_tree; -#line 403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = entry; -#line 403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - sidebar_tree_rename_entry_in_place (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 3620 "LibraryWindow.c" - } else { -#line 405 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:405: No search entry found for rename"); -#line 3624 "LibraryWindow.c" - } -#line 400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (entry); -#line 3628 "LibraryWindow.c" -} - - -static void -library_window_real_on_quit (AppWindow* base) -{ - LibraryWindow * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gboolean _tmp2_; - Dimensions _tmp3_; - ConfigFacade* _tmp4_; - ConfigFacade* _tmp5_; - GtkPaned* _tmp6_; - gint _tmp7_; - gint _tmp8_; -#line 408 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = config_facade_get_instance (); -#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)->maximized; -#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)->dimensions; -#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - configuration_facade_set_library_window_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, &_tmp3_); -#line 409 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 411 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = config_facade_get_instance (); -#line 411 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = _tmp4_; -#line 411 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = self->priv->client_paned; -#line 411 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = gtk_paned_get_position (_tmp6_); -#line 411 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = _tmp7_; -#line 411 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - configuration_facade_set_sidebar_position (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp8_); -#line 411 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp5_); -#line 413 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - APP_WINDOW_CLASS (library_window_parent_class)->on_quit (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow)); -#line 3675 "LibraryWindow.c" -} - - -static Photo* -library_window_get_start_fullscreen_photo (LibraryWindow* self, - CollectionPage* page) -{ - Photo* result = NULL; - ViewCollection* view = NULL; - ViewCollection* _tmp0_; - GeeList* _tmp1_ = NULL; - ViewCollection* _tmp2_; - GeeList* sources = NULL; - GeeList* _tmp7_; - Photo* _tmp8_ = NULL; - gboolean _tmp9_ = FALSE; - GeeList* _tmp10_; -#line 416 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail (IS_LIBRARY_WINDOW (self), NULL); -#line 416 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail (IS_COLLECTION_PAGE (page), NULL); -#line 417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_PAGE, Page)); -#line 417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - view = _tmp0_; -#line 421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = view; -#line 421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (view_collection_get_selected_count (_tmp2_) > 0) { -#line 3705 "LibraryWindow.c" - ViewCollection* _tmp3_; - GeeList* _tmp4_; -#line 422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = view; -#line 422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = view_collection_get_selected_sources_of_type (_tmp3_, TYPE_LIBRARY_PHOTO); -#line 422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp4_; -#line 3716 "LibraryWindow.c" - } else { - ViewCollection* _tmp5_; - GeeList* _tmp6_; -#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = view; -#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = view_collection_get_sources_of_type (_tmp5_, TYPE_LIBRARY_PHOTO); -#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 423 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp6_; -#line 3728 "LibraryWindow.c" - } -#line 421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = _g_object_ref0 (_tmp1_); -#line 421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - sources = _tmp7_; -#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = sources; -#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp10_ != NULL) { -#line 3738 "LibraryWindow.c" - GeeList* _tmp11_; - gint _tmp12_; - gint _tmp13_; -#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = sources; -#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = _tmp12_; -#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = _tmp13_ != 0; -#line 3750 "LibraryWindow.c" - } else { -#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = FALSE; -#line 3754 "LibraryWindow.c" - } -#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp9_) { -#line 3758 "LibraryWindow.c" - GeeList* _tmp14_; - gpointer _tmp15_; -#line 426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = sources; -#line 426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp15_ = gee_list_get (_tmp14_, 0); -#line 426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp8_); -#line 426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST ((DataSource*) _tmp15_, TYPE_PHOTO, Photo); -#line 3769 "LibraryWindow.c" - } else { -#line 426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp8_); -#line 426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = NULL; -#line 3775 "LibraryWindow.c" - } -#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = _tmp8_; -#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (sources); -#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 425 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 3787 "LibraryWindow.c" -} - - -static gboolean -library_window_get_fullscreen_photo (LibraryWindow* self, - Page* page, - CollectionPage* * collection, - Photo* * start, - ViewCollection* * view_collection) -{ - CollectionPage* _vala_collection = NULL; - Photo* _vala_start = NULL; - ViewCollection* _vala_view_collection = NULL; - gboolean result = FALSE; -#line 429 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE); -#line 429 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail (IS_PAGE (page), FALSE); -#line 431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_collection); -#line 431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_collection = NULL; -#line 432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_start); -#line 432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_start = NULL; -#line 433 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_vala_view_collection); -#line 433 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_view_collection = NULL; -#line 436 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_COLLECTION_PAGE)) { -#line 3820 "LibraryWindow.c" - CollectionPage* _tmp0_; - Photo* photo = NULL; - CollectionPage* _tmp1_; - Photo* _tmp2_; - Photo* _tmp3_; - Photo* _tmp4_; - Photo* _tmp5_; -#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_COLLECTION_PAGE, CollectionPage)); -#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_collection); -#line 437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_collection = _tmp0_; -#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _vala_collection; -#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = library_window_get_start_fullscreen_photo (self, _tmp1_); -#line 438 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - photo = _tmp2_; -#line 439 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = photo; -#line 439 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp3_ == NULL) { -#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = FALSE; -#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (photo); -#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (collection) { -#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *collection = _vala_collection; -#line 3852 "LibraryWindow.c" - } else { -#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_collection); -#line 3856 "LibraryWindow.c" - } -#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (start) { -#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *start = _vala_start; -#line 3862 "LibraryWindow.c" - } else { -#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_start); -#line 3866 "LibraryWindow.c" - } -#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (view_collection) { -#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *view_collection = _vala_view_collection; -#line 3872 "LibraryWindow.c" - } else { -#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_vala_view_collection); -#line 3876 "LibraryWindow.c" - } -#line 440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 3880 "LibraryWindow.c" - } -#line 442 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = photo; -#line 442 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = _g_object_ref0 (_tmp4_); -#line 442 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_start); -#line 442 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_start = _tmp5_; -#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_vala_view_collection); -#line 443 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_view_collection = NULL; -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = TRUE; -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (photo); -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (collection) { -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *collection = _vala_collection; -#line 3902 "LibraryWindow.c" - } else { -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_collection); -#line 3906 "LibraryWindow.c" - } -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (start) { -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *start = _vala_start; -#line 3912 "LibraryWindow.c" - } else { -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_start); -#line 3916 "LibraryWindow.c" - } -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (view_collection) { -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *view_collection = _vala_view_collection; -#line 3922 "LibraryWindow.c" - } else { -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_vala_view_collection); -#line 3926 "LibraryWindow.c" - } -#line 445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 3930 "LibraryWindow.c" - } -#line 448 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_EVENTS_DIRECTORY_PAGE)) { -#line 3934 "LibraryWindow.c" - ViewCollection* view = NULL; - ViewCollection* _tmp6_; - ViewCollection* _tmp7_; - Event* event = NULL; - ViewCollection* _tmp8_; - DataObject* _tmp9_; - DataView* _tmp10_; - DataSource* _tmp11_; - Event* _tmp12_; - Event* _tmp13_; - EventsEventEntry* entry = NULL; - EventsBranch* _tmp14_; - Event* _tmp15_; - EventsEventEntry* _tmp16_; - EventsEventEntry* _tmp17_; - EventsEventEntry* _tmp18_; - Page* _tmp19_; - Photo* photo = NULL; - CollectionPage* _tmp20_; - Photo* _tmp21_; - Photo* _tmp22_; - Photo* _tmp23_; - Photo* _tmp24_; -#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = page_get_view (page); -#line 449 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - view = _tmp6_; -#line 450 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = view; -#line 450 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection)) == 0) { -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = FALSE; -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (collection) { -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *collection = _vala_collection; -#line 3974 "LibraryWindow.c" - } else { -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_collection); -#line 3978 "LibraryWindow.c" - } -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (start) { -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *start = _vala_start; -#line 3984 "LibraryWindow.c" - } else { -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_start); -#line 3988 "LibraryWindow.c" - } -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (view_collection) { -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *view_collection = _vala_view_collection; -#line 3994 "LibraryWindow.c" - } else { -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_vala_view_collection); -#line 3998 "LibraryWindow.c" - } -#line 451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 4002 "LibraryWindow.c" - } -#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = view; -#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = data_collection_get_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_COLLECTION, DataCollection), 0); -#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_VIEW, DataView); -#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = data_view_get_source (_tmp10_); -#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_EVENT, Event); -#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp10_); -#line 453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - event = _tmp12_; -#line 454 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = event; -#line 454 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp13_ == NULL) { -#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = FALSE; -#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (event); -#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (collection) { -#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *collection = _vala_collection; -#line 4032 "LibraryWindow.c" - } else { -#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_collection); -#line 4036 "LibraryWindow.c" - } -#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (start) { -#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *start = _vala_start; -#line 4042 "LibraryWindow.c" - } else { -#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_start); -#line 4046 "LibraryWindow.c" - } -#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (view_collection) { -#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *view_collection = _vala_view_collection; -#line 4052 "LibraryWindow.c" - } else { -#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_vala_view_collection); -#line 4056 "LibraryWindow.c" - } -#line 455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 4060 "LibraryWindow.c" - } -#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = self->priv->events_branch; -#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp15_ = event; -#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp16_ = events_branch_get_entry_for_event (_tmp14_, _tmp15_); -#line 457 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - entry = _tmp16_; -#line 458 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp17_ = entry; -#line 458 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp17_ == NULL) { -#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = FALSE; -#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (entry); -#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (event); -#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (collection) { -#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *collection = _vala_collection; -#line 4086 "LibraryWindow.c" - } else { -#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_collection); -#line 4090 "LibraryWindow.c" - } -#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (start) { -#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *start = _vala_start; -#line 4096 "LibraryWindow.c" - } else { -#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_start); -#line 4100 "LibraryWindow.c" - } -#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (view_collection) { -#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *view_collection = _vala_view_collection; -#line 4106 "LibraryWindow.c" - } else { -#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_vala_view_collection); -#line 4110 "LibraryWindow.c" - } -#line 459 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 4114 "LibraryWindow.c" - } -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp18_ = entry; -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp19_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_collection); -#line 461 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_collection = G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_EVENT_PAGE, EventPage), TYPE_COLLECTION_PAGE, CollectionPage); -#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp20_ = _vala_collection; -#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp21_ = library_window_get_start_fullscreen_photo (self, _tmp20_); -#line 462 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - photo = _tmp21_; -#line 463 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp22_ = photo; -#line 463 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp22_ == NULL) { -#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = FALSE; -#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (photo); -#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (entry); -#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (event); -#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (collection) { -#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *collection = _vala_collection; -#line 4148 "LibraryWindow.c" - } else { -#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_collection); -#line 4152 "LibraryWindow.c" - } -#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (start) { -#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *start = _vala_start; -#line 4158 "LibraryWindow.c" - } else { -#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_start); -#line 4162 "LibraryWindow.c" - } -#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (view_collection) { -#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *view_collection = _vala_view_collection; -#line 4168 "LibraryWindow.c" - } else { -#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_vala_view_collection); -#line 4172 "LibraryWindow.c" - } -#line 464 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 4176 "LibraryWindow.c" - } -#line 466 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp23_ = photo; -#line 466 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp24_ = _g_object_ref0 (_tmp23_); -#line 466 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_start); -#line 466 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_start = _tmp24_; -#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_vala_view_collection); -#line 467 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_view_collection = NULL; -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = TRUE; -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (photo); -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (entry); -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (event); -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (collection) { -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *collection = _vala_collection; -#line 4204 "LibraryWindow.c" - } else { -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_collection); -#line 4208 "LibraryWindow.c" - } -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (start) { -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *start = _vala_start; -#line 4214 "LibraryWindow.c" - } else { -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_start); -#line 4218 "LibraryWindow.c" - } -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (view_collection) { -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *view_collection = _vala_view_collection; -#line 4224 "LibraryWindow.c" - } else { -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_vala_view_collection); -#line 4228 "LibraryWindow.c" - } -#line 469 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 4232 "LibraryWindow.c" - } -#line 472 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_LIBRARY_PHOTO_PAGE)) { -#line 4236 "LibraryWindow.c" - LibraryPhotoPage* photo_page = NULL; - LibraryPhotoPage* _tmp25_; - CollectionPage* controller = NULL; - LibraryPhotoPage* _tmp26_; - CollectionPage* _tmp27_; - CollectionPage* _tmp28_; - LibraryPhotoPage* _tmp29_; - CollectionPage* _tmp30_; - CollectionPage* _tmp31_; - LibraryPhotoPage* _tmp32_; - Photo* _tmp33_; - LibraryPhotoPage* _tmp34_; - ViewCollection* _tmp35_; -#line 473 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp25_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage)); -#line 473 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - photo_page = _tmp25_; -#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp26_ = photo_page; -#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp27_ = library_photo_page_get_controller_page (_tmp26_); -#line 475 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - controller = _tmp27_; -#line 476 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp28_ = controller; -#line 476 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp28_ == NULL) { -#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = FALSE; -#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (controller); -#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (photo_page); -#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (collection) { -#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *collection = _vala_collection; -#line 4274 "LibraryWindow.c" - } else { -#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_collection); -#line 4278 "LibraryWindow.c" - } -#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (start) { -#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *start = _vala_start; -#line 4284 "LibraryWindow.c" - } else { -#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_start); -#line 4288 "LibraryWindow.c" - } -#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (view_collection) { -#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *view_collection = _vala_view_collection; -#line 4294 "LibraryWindow.c" - } else { -#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_vala_view_collection); -#line 4298 "LibraryWindow.c" - } -#line 477 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 4302 "LibraryWindow.c" - } -#line 479 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp29_ = photo_page; -#line 479 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (!editing_host_page_has_photo (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, TYPE_EDITING_HOST_PAGE, EditingHostPage))) { -#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = FALSE; -#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (controller); -#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (photo_page); -#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (collection) { -#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *collection = _vala_collection; -#line 4318 "LibraryWindow.c" - } else { -#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_collection); -#line 4322 "LibraryWindow.c" - } -#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (start) { -#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *start = _vala_start; -#line 4328 "LibraryWindow.c" - } else { -#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_start); -#line 4332 "LibraryWindow.c" - } -#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (view_collection) { -#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *view_collection = _vala_view_collection; -#line 4338 "LibraryWindow.c" - } else { -#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_vala_view_collection); -#line 4342 "LibraryWindow.c" - } -#line 480 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 4346 "LibraryWindow.c" - } -#line 482 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp30_ = controller; -#line 482 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp31_ = _g_object_ref0 (_tmp30_); -#line 482 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_collection); -#line 482 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_collection = _tmp31_; -#line 483 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp32_ = photo_page; -#line 483 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp33_ = editing_host_page_get_photo (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_EDITING_HOST_PAGE, EditingHostPage)); -#line 483 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_start); -#line 483 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_start = _tmp33_; -#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp34_ = photo_page; -#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp35_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, TYPE_PAGE, Page)); -#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_vala_view_collection); -#line 484 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_view_collection = _tmp35_; -#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = TRUE; -#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (controller); -#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (photo_page); -#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (collection) { -#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *collection = _vala_collection; -#line 4382 "LibraryWindow.c" - } else { -#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_collection); -#line 4386 "LibraryWindow.c" - } -#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (start) { -#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *start = _vala_start; -#line 4392 "LibraryWindow.c" - } else { -#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_start); -#line 4396 "LibraryWindow.c" - } -#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (view_collection) { -#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *view_collection = _vala_view_collection; -#line 4402 "LibraryWindow.c" - } else { -#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_vala_view_collection); -#line 4406 "LibraryWindow.c" - } -#line 486 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 4410 "LibraryWindow.c" - } -#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = FALSE; -#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (collection) { -#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *collection = _vala_collection; -#line 4418 "LibraryWindow.c" - } else { -#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_collection); -#line 4422 "LibraryWindow.c" - } -#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (start) { -#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *start = _vala_start; -#line 4428 "LibraryWindow.c" - } else { -#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_vala_start); -#line 4432 "LibraryWindow.c" - } -#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (view_collection) { -#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - *view_collection = _vala_view_collection; -#line 4438 "LibraryWindow.c" - } else { -#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_vala_view_collection); -#line 4442 "LibraryWindow.c" - } -#line 489 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 4446 "LibraryWindow.c" -} - - -static void -library_window_real_on_fullscreen (AppWindow* base) -{ - LibraryWindow * self; - Page* current_page = NULL; - Page* _tmp0_; - Page* _tmp1_; - CollectionPage* collection = NULL; - Photo* start = NULL; - ViewCollection* view = NULL; - Page* _tmp2_; - CollectionPage* _tmp3_ = NULL; - Photo* _tmp4_ = NULL; - ViewCollection* _tmp5_ = NULL; - gboolean _tmp6_; - LibraryWindowFullscreenPhotoPage* fs_photo = NULL; - CollectionPage* _tmp7_; - Photo* _tmp8_; - ViewCollection* _tmp9_; - LibraryWindowFullscreenPhotoPage* _tmp10_; - LibraryWindowFullscreenPhotoPage* _tmp11_; -#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 493 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 493 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - current_page = _tmp0_; -#line 494 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = current_page; -#line 494 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp1_ == NULL) { -#line 495 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (current_page); -#line 495 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 4485 "LibraryWindow.c" - } -#line 499 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - view = NULL; -#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = current_page; -#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = library_window_get_fullscreen_photo (self, _tmp2_, &_tmp3_, &_tmp4_, &_tmp5_); -#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (collection); -#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - collection = _tmp3_; -#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (start); -#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - start = _tmp4_; -#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - view = _tmp5_; -#line 500 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (!_tmp6_) { -#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (start); -#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (collection); -#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (current_page); -#line 501 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 4517 "LibraryWindow.c" - } -#line 503 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = collection; -#line 503 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = start; -#line 503 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = view; -#line 503 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = library_window_fullscreen_photo_page_new (_tmp7_, _tmp8_, _tmp9_); -#line 503 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp10_); -#line 503 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - fs_photo = _tmp10_; -#line 505 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = fs_photo; -#line 505 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - app_window_go_fullscreen (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_PAGE, Page)); -#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (fs_photo); -#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (start); -#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (collection); -#line 492 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (current_page); -#line 4545 "LibraryWindow.c" -} - - -static void -_g_free0_ (gpointer var) -{ -#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - var = (g_free (var), NULL); -#line 4554 "LibraryWindow.c" -} - - -static inline void -_g_slist_free__g_free0_ (GSList* self) -{ -#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_slist_free_full (self, (GDestroyNotify) _g_free0_); -#line 4563 "LibraryWindow.c" -} - - -static void -library_window_on_file_import (LibraryWindow* self) -{ - GtkFileChooserDialog* import_dialog = NULL; - GtkFileChooserDialog* _tmp0_; - GtkFileChooserDialog* _tmp1_; - GtkFileChooserDialog* _tmp2_; - GtkFileChooserDialog* _tmp3_; - const gchar* _tmp4_; - GtkCheckButton* recursive = NULL; - GtkCheckButton* _tmp5_; - GtkCheckButton* _tmp6_; - gboolean _tmp7_; - GtkFileChooserDialog* _tmp8_; - GtkCheckButton* _tmp9_; - gint response = 0; - GtkFileChooserDialog* _tmp10_; - gint _tmp11_; - GtkFileChooserDialog* _tmp28_; - gchar* _tmp29_; - GtkCheckButton* _tmp30_; - gboolean _tmp31_; - gboolean _tmp32_; - GtkFileChooserDialog* _tmp33_; -#line 508 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 509 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new (_ ("Import From Folder"), NULL, GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, RESOURCES_CANCEL_LABEL, GTK_RESPONSE_CANCEL, RESOURCES_OK_LABEL, GTK_RESPONSE_OK, NULL); -#line 509 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp0_); -#line 509 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - import_dialog = _tmp0_; -#line 512 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = import_dialog; -#line 512 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_file_chooser_set_local_only (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_file_chooser_get_type (), GtkFileChooser), FALSE); -#line 513 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = import_dialog; -#line 513 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_file_chooser_set_select_multiple (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_file_chooser_get_type (), GtkFileChooser), TRUE); -#line 514 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = import_dialog; -#line 514 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = self->priv->import_dir; -#line 514 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_file_chooser_set_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_file_chooser_get_type (), GtkFileChooser), _tmp4_); -#line 516 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = (GtkCheckButton*) gtk_check_button_new_with_label (_ ("Recurse Into Subfolders")); -#line 516 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp5_); -#line 516 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - recursive = _tmp5_; -#line 517 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = recursive; -#line 517 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = self->priv->import_recursive; -#line 517 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_toggle_button_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_toggle_button_get_type (), GtkToggleButton), _tmp7_); -#line 518 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = import_dialog; -#line 518 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = recursive; -#line 518 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_file_chooser_set_extra_widget (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_file_chooser_get_type (), GtkFileChooser), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget)); -#line 520 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = import_dialog; -#line 520 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - response = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_dialog_get_type (), GtkDialog)); -#line 522 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = response; -#line 522 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp11_ == ((gint) GTK_RESPONSE_OK)) { -#line 4639 "LibraryWindow.c" - GtkFileChooserDialog* _tmp12_; - GtkResponseType _tmp13_ = 0; - GtkFileChooserDialog* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - GFile* _tmp17_; - GFile* _tmp18_; - gboolean _tmp19_; - GtkResponseType copy_files_response = 0; - GtkResponseType _tmp20_; -#line 523 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = import_dialog; -#line 523 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget)); -#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = import_dialog; -#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp15_ = gtk_file_chooser_get_uri (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_file_chooser_get_type (), GtkFileChooser)); -#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp16_ = _tmp15_; -#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp17_ = g_file_new_for_uri (_tmp16_); -#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp18_ = _tmp17_; -#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp19_ = app_dirs_is_in_import_dir (_tmp18_); -#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp18_); -#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (_tmp16_); -#line 526 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp19_) { -#line 527 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = GTK_RESPONSE_REJECT; -#line 4674 "LibraryWindow.c" - } else { -#line 527 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = copy_files_dialog (); -#line 4678 "LibraryWindow.c" - } -#line 525 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - copy_files_response = _tmp13_; -#line 529 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp20_ = copy_files_response; -#line 529 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp20_ != GTK_RESPONSE_CANCEL) { -#line 4686 "LibraryWindow.c" - GtkFileChooserDialog* _tmp21_; - GSList* _tmp22_; - GSList* _tmp23_; - GtkResponseType _tmp24_; - GtkCheckButton* _tmp25_; - gboolean _tmp26_; - gboolean _tmp27_; -#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp21_ = import_dialog; -#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp22_ = gtk_file_chooser_get_uris (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_file_chooser_get_type (), GtkFileChooser)); -#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp23_ = _tmp22_; -#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp24_ = copy_files_response; -#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp25_ = recursive; -#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp26_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp27_ = _tmp26_; -#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_dispatch_import_jobs (self, _tmp23_, "folders", _tmp24_ == GTK_RESPONSE_ACCEPT, _tmp27_); -#line 530 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - __g_slist_free__g_free0_0 (_tmp23_); -#line 4712 "LibraryWindow.c" - } - } -#line 535 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp28_ = import_dialog; -#line 535 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp29_ = gtk_file_chooser_get_current_folder (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_file_chooser_get_type (), GtkFileChooser)); -#line 535 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (self->priv->import_dir); -#line 535 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->import_dir = _tmp29_; -#line 536 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp30_ = recursive; -#line 536 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp31_ = gtk_toggle_button_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_toggle_button_get_type (), GtkToggleButton)); -#line 536 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp32_ = _tmp31_; -#line 536 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->import_recursive = _tmp32_; -#line 537 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp33_ = import_dialog; -#line 537 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_widget_get_type (), GtkWidget)); -#line 508 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (recursive); -#line 508 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (import_dialog); -#line 4739 "LibraryWindow.c" -} - - -static void -library_window_on_external_library_import (LibraryWindow* self) -{ - GtkDialog* import_dialog = NULL; - DataImportsUIDataImportsDialog* _tmp0_; -#line 540 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 541 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = data_imports_ui_data_imports_dialog_get_or_create_instance (); -#line 541 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - import_dialog = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_dialog_get_type (), GtkDialog); -#line 543 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_dialog_run (import_dialog); -#line 540 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (import_dialog); -#line 4758 "LibraryWindow.c" -} - - -static void -library_window_real_update_common_action_availability (AppWindow* base, - Page* old_page, - Page* new_page) -{ - LibraryWindow * self; - gboolean is_checkerboard = FALSE; -#line 546 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 546 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail ((old_page == NULL) || IS_PAGE (old_page)); -#line 546 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail ((new_page == NULL) || IS_PAGE (new_page)); -#line 547 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - APP_WINDOW_CLASS (library_window_parent_class)->update_common_action_availability (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), old_page, new_page); -#line 549 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - is_checkerboard = G_TYPE_CHECK_INSTANCE_TYPE (new_page, TYPE_CHECKERBOARD_PAGE); -#line 551 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - app_window_set_common_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), "CommonDisplaySearchbar", is_checkerboard); -#line 552 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - app_window_set_common_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), "CommonFind", is_checkerboard); -#line 4783 "LibraryWindow.c" -} - - -static void -library_window_real_update_common_actions (AppWindow* base, - Page* page, - gint selected_count, - gint count) -{ - LibraryWindow * self; - CollectionPage* collection = NULL; - Photo* start = NULL; - gboolean can_fullscreen = FALSE; - CollectionPage* _tmp0_ = NULL; - Photo* _tmp1_ = NULL; - gboolean _tmp2_; -#line 555 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 555 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_PAGE (page)); -#line 561 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = library_window_get_fullscreen_photo (self, page, &_tmp0_, &_tmp1_, NULL); -#line 561 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (collection); -#line 561 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - collection = _tmp0_; -#line 561 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (start); -#line 561 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - start = _tmp1_; -#line 561 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - can_fullscreen = _tmp2_; -#line 563 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - app_window_set_common_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), "CommonEmptyTrash", library_window_can_empty_trash (self)); -#line 564 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - app_window_set_common_action_visible (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), "CommonJumpToEvent", TRUE); -#line 565 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - app_window_set_common_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), "CommonJumpToEvent", library_window_can_jump_to_event (self)); -#line 566 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - app_window_set_common_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), "CommonFullscreen", can_fullscreen); -#line 568 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - APP_WINDOW_CLASS (library_window_parent_class)->update_common_actions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), page, selected_count, count); -#line 555 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (start); -#line 555 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (collection); -#line 4830 "LibraryWindow.c" -} - - -static void -library_window_on_trashcan_contents_altered (LibraryWindow* self) -{ -#line 571 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 572 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - app_window_set_common_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), "CommonEmptyTrash", library_window_can_empty_trash (self)); -#line 4841 "LibraryWindow.c" -} - - -static gboolean -library_window_can_empty_trash (LibraryWindow* self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - LibraryPhotoSourceCollection* _tmp1_; -#line 575 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE); -#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = library_photo_global; -#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (media_source_collection_get_trashcan_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) > 0) { -#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = TRUE; -#line 4859 "LibraryWindow.c" - } else { - VideoSourceCollection* _tmp2_; -#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = video_global; -#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = media_source_collection_get_trashcan_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) > 0; -#line 4866 "LibraryWindow.c" - } -#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = _tmp0_; -#line 576 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 4872 "LibraryWindow.c" -} - - -static void -library_window_on_empty_trash (LibraryWindow* self) -{ - GeeArrayList* to_remove = NULL; - GeeArrayList* _tmp0_; - LibraryPhotoSourceCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - VideoSourceCollection* _tmp4_; - GeeCollection* _tmp5_; - GeeCollection* _tmp6_; - CommandManager* _tmp7_; - CommandManager* _tmp8_; -#line 579 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 580 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 580 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - to_remove = _tmp0_; -#line 581 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = library_photo_global; -#line 581 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = media_source_collection_get_trashcan_contents (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 581 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = _tmp2_; -#line 581 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gee_array_list_add_all (to_remove, _tmp3_); -#line 581 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp3_); -#line 582 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = video_global; -#line 582 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = media_source_collection_get_trashcan_contents (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 582 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = _tmp5_; -#line 582 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gee_array_list_add_all (to_remove, _tmp6_); -#line 582 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp6_); -#line 584 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (to_remove, GEE_TYPE_COLLECTION, GeeCollection), _ ("Empty Trash"), _ ("Emptying Trash…")); -#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = app_window_get_command_manager (); -#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = _tmp7_; -#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - command_manager_reset (_tmp8_); -#line 586 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _command_manager_unref0 (_tmp8_); -#line 579 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (to_remove); -#line 4927 "LibraryWindow.c" -} - - -static void -library_window_on_new_search (LibraryWindow* self) -{ - SavedSearchDialog* _tmp0_; - SavedSearchDialog* _tmp1_; -#line 589 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 590 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = saved_search_dialog_new (); -#line 590 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp0_); -#line 590 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 590 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - saved_search_dialog_show (_tmp1_); -#line 590 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 4948 "LibraryWindow.c" -} - - -static gboolean -library_window_can_jump_to_event (LibraryWindow* self) -{ - gboolean result = FALSE; - ViewCollection* view = NULL; - Page* _tmp0_; - Page* _tmp1_; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; -#line 593 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE); -#line 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = page_get_view (_tmp1_); -#line 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = _tmp2_; -#line 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 594 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - view = _tmp3_; -#line 595 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = view; -#line 595 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (view_collection_get_selected_count (_tmp4_) == 1) { -#line 4980 "LibraryWindow.c" - DataSource* selected_source = NULL; - ViewCollection* _tmp5_; - DataSource* _tmp6_; - DataSource* _tmp7_; -#line 596 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = view; -#line 596 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = view_collection_get_selected_source_at (_tmp5_, 0); -#line 596 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - selected_source = _tmp6_; -#line 597 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = selected_source; -#line 597 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, TYPE_EVENT)) { -#line 598 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = TRUE; -#line 598 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (selected_source); -#line 598 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 598 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 5003 "LibraryWindow.c" - } else { - DataSource* _tmp8_; -#line 599 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = selected_source; -#line 599 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, TYPE_MEDIA_SOURCE)) { -#line 5010 "LibraryWindow.c" - ViewCollection* _tmp9_; - DataSource* _tmp10_; - MediaSource* _tmp11_; - Event* _tmp12_; - Event* _tmp13_; - gboolean _tmp14_; -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = view; -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = view_collection_get_selected_source_at (_tmp9_, 0); -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MEDIA_SOURCE, MediaSource); -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = media_source_get_event (_tmp11_); -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = _tmp12_; -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = _tmp13_ != NULL; -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp13_); -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp11_); -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = _tmp14_; -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (selected_source); -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 600 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 5041 "LibraryWindow.c" - } else { -#line 602 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = FALSE; -#line 602 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (selected_source); -#line 602 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 602 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 5051 "LibraryWindow.c" - } - } -#line 595 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (selected_source); -#line 5056 "LibraryWindow.c" - } else { -#line 604 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = FALSE; -#line 604 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 604 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 5064 "LibraryWindow.c" - } -#line 593 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 5068 "LibraryWindow.c" -} - - -static void -library_window_on_jump_to_event (LibraryWindow* self) -{ - ViewCollection* view = NULL; - Page* _tmp0_; - Page* _tmp1_; - ViewCollection* _tmp2_; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - MediaSource* media = NULL; - ViewCollection* _tmp5_; - DataSource* _tmp6_; - MediaSource* _tmp7_; - MediaSource* _tmp8_; - MediaSource* _tmp9_; - Event* _tmp10_; - Event* _tmp11_; - gboolean _tmp12_; -#line 608 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 609 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 609 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 609 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = page_get_view (_tmp1_); -#line 609 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = _tmp2_; -#line 609 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 609 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - view = _tmp3_; -#line 611 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = view; -#line 611 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (view_collection_get_selected_count (_tmp4_) != 1) { -#line 612 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 612 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 5112 "LibraryWindow.c" - } -#line 614 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = view; -#line 614 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = view_collection_get_selected_source_at (_tmp5_, 0); -#line 614 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, TYPE_MEDIA_SOURCE) ? ((MediaSource*) _tmp6_) : NULL; -#line 614 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp7_ == NULL) { -#line 614 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp6_); -#line 5124 "LibraryWindow.c" - } -#line 614 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - media = _tmp7_; -#line 615 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = media; -#line 615 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp8_ == NULL) { -#line 616 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (media); -#line 616 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 616 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 5138 "LibraryWindow.c" - } -#line 618 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = media; -#line 618 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = media_source_get_event (_tmp9_); -#line 618 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = _tmp10_; -#line 618 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = _tmp11_ != NULL; -#line 618 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp11_); -#line 618 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp12_) { -#line 5152 "LibraryWindow.c" - MediaSource* _tmp13_; - Event* _tmp14_; - Event* _tmp15_; -#line 619 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = media; -#line 619 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = media_source_get_event (_tmp13_); -#line 619 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp15_ = _tmp14_; -#line 619 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_event (self, _tmp15_); -#line 619 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp15_); -#line 5166 "LibraryWindow.c" - } -#line 608 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (media); -#line 608 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 5172 "LibraryWindow.c" -} - - -static GVariant* -_variant_new5 (gboolean value) -{ -#line 624 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 5181 "LibraryWindow.c" -} - - -static void -library_window_on_find (LibraryWindow* self) -{ - GAction* action = NULL; - GAction* _tmp0_; - GAction* _tmp1_; - GVariant* _tmp2_; - SearchFilterToolbar* _tmp3_; -#line 622 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 623 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplaySearchbar"); -#line 623 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 623 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - action = _tmp1_; -#line 624 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _variant_new5 (TRUE); -#line 624 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_action_change_state (action, _tmp2_); -#line 624 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_variant_unref0 (_tmp2_); -#line 627 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = self->priv->search_toolbar; -#line 627 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - search_filter_toolbar_take_focus (_tmp3_); -#line 622 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (action); -#line 5213 "LibraryWindow.c" -} - - -static void -library_window_on_media_altered (LibraryWindow* self) -{ -#line 630 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 631 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - app_window_set_common_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), "CommonJumpToEvent", library_window_can_jump_to_event (self)); -#line 5224 "LibraryWindow.c" -} - - -static void -library_window_on_clear_search (LibraryWindow* self) -{ - gboolean _tmp0_; -#line 634 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 635 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->is_search_toolbar_visible; -#line 635 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp0_) { -#line 5238 "LibraryWindow.c" - SearchFilterActions* _tmp1_; -#line 636 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = self->priv->search_actions; -#line 636 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - search_filter_actions_reset (_tmp1_); -#line 5244 "LibraryWindow.c" - } -} - - -gint -library_window_get_events_sort (LibraryWindow* self) -{ - gint result = 0; - GSimpleAction* action = NULL; - GAction* _tmp0_; - GSimpleAction* _tmp1_; - gint _tmp2_ = 0; - GSimpleAction* _tmp3_; -#line 639 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail (IS_LIBRARY_WINDOW (self), 0); -#line 640 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonSortEvents"); -#line 640 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, g_simple_action_get_type ()) ? ((GSimpleAction*) _tmp0_) : NULL); -#line 640 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - action = _tmp1_; -#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = action; -#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp3_ != NULL) { -#line 5270 "LibraryWindow.c" - gint _tmp4_ = 0; - GSimpleAction* _tmp5_; - GVariant* _tmp6_; - GVariant* _tmp7_; - GVariant* _tmp8_; - const gchar* _tmp9_; - gboolean _tmp10_; -#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = action; -#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = g_action_get_state (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, g_action_get_type (), GAction)); -#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = _tmp6_; -#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = _tmp7_; -#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = g_variant_get_string (_tmp8_, NULL); -#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = g_strcmp0 (_tmp9_, LIBRARY_WINDOW_SORT_EVENTS_ORDER_ASCENDING) == 0; -#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_variant_unref0 (_tmp8_); -#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp10_) { -#line 643 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = 0; -#line 5296 "LibraryWindow.c" - } else { -#line 643 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = 1; -#line 5300 "LibraryWindow.c" - } -#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _tmp4_; -#line 5304 "LibraryWindow.c" - } else { -#line 644 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = 1; -#line 5308 "LibraryWindow.c" - } -#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = _tmp2_; -#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (action); -#line 642 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 5316 "LibraryWindow.c" -} - - -static void -library_window_on_events_sort_changed (LibraryWindow* self, - GSimpleAction* action, - GVariant* value) -{ - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; -#line 647 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 647 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 649 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = config_facade_get_instance (); -#line 649 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 649 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = g_variant_get_string (value, NULL); -#line 649 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - configuration_facade_set_events_sort_ascending (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), g_strcmp0 (_tmp2_, LIBRARY_WINDOW_SORT_EVENTS_ORDER_ASCENDING) == 0); -#line 649 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 652 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_simple_action_set_state (action, value); -#line 5344 "LibraryWindow.c" -} - - -static void -library_window_on_preferences (LibraryWindow* self) -{ -#line 655 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 656 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - preferences_dialog_show_preferences (); -#line 5355 "LibraryWindow.c" -} - - -static void -library_window_on_display_basic_properties (LibraryWindow* self, - GSimpleAction* action, - GVariant* value) -{ - gboolean display = FALSE; - gboolean _tmp0_; - ConfigFacade* _tmp8_; - ConfigFacade* _tmp9_; - gboolean _tmp10_; -#line 659 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 659 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 660 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - display = g_variant_get_boolean (value); -#line 662 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = display; -#line 662 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp0_) { -#line 5379 "LibraryWindow.c" - BasicProperties* _tmp1_; - Page* _tmp2_; - Page* _tmp3_; - GtkFrame* _tmp4_; -#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = self->priv->basic_properties; -#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = _tmp2_; -#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - properties_update_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PROPERTIES, Properties), _tmp3_); -#line 663 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp3_); -#line 664 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = self->priv->bottom_frame; -#line 664 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget)); -#line 5398 "LibraryWindow.c" - } else { - GtkPaned* _tmp5_; - GtkWidget* _tmp6_; -#line 666 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = self->priv->sidebar_paned; -#line 666 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = gtk_paned_get_child2 (_tmp5_); -#line 666 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp6_ != NULL) { -#line 5408 "LibraryWindow.c" - GtkFrame* _tmp7_; -#line 667 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = self->priv->bottom_frame; -#line 667 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget)); -#line 5414 "LibraryWindow.c" - } - } -#line 672 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = config_facade_get_instance (); -#line 672 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = _tmp8_; -#line 672 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = display; -#line 672 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - configuration_facade_set_display_basic_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp10_); -#line 672 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp9_); -#line 673 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_simple_action_set_state (action, value); -#line 5429 "LibraryWindow.c" -} - - -static gboolean -_variant_get6 (GVariant* value) -{ -#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return g_variant_get_boolean (value); -#line 5438 "LibraryWindow.c" -} - - -static GVariant* -_variant_new7 (gboolean value) -{ -#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 5447 "LibraryWindow.c" -} - - -static void -library_window_on_action_toggle (LibraryWindow* self, - GAction* action, - GVariant* value) -{ - GVariant* new_state = NULL; - GVariant* _tmp0_; - GVariant* _tmp1_; - gboolean _tmp2_; - GVariant* _tmp3_; - GVariant* _tmp4_; -#line 676 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 676 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (G_IS_ACTION (action)); -#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = g_action_get_state (action); -#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _variant_get6 (_tmp1_); -#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = _variant_new7 (!_tmp2_); -#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = _tmp3_; -#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_variant_unref0 (_tmp1_); -#line 677 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - new_state = _tmp4_; -#line 678 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_action_change_state (action, new_state); -#line 676 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_variant_unref0 (new_state); -#line 5484 "LibraryWindow.c" -} - - -static void -library_window_on_action_radio (LibraryWindow* self, - GAction* action, - GVariant* value) -{ -#line 681 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 681 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (G_IS_ACTION (action)); -#line 682 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_action_change_state (action, value); -#line 5499 "LibraryWindow.c" -} - - -static void -library_window_on_display_extended_properties (LibraryWindow* self, - GSimpleAction* action, - GVariant* value) -{ - gboolean display = FALSE; - gboolean _tmp0_; -#line 685 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 685 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 686 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - display = g_variant_get_boolean (value); -#line 688 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = display; -#line 688 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp0_) { -#line 5520 "LibraryWindow.c" - ExtendedPropertiesWindow* _tmp1_; - Page* _tmp2_; - Page* _tmp3_; - ExtendedPropertiesWindow* _tmp4_; -#line 689 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = self->priv->extended_properties; -#line 689 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 689 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = _tmp2_; -#line 689 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - extended_properties_window_update_properties (_tmp1_, _tmp3_); -#line 689 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp3_); -#line 690 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = self->priv->extended_properties; -#line 690 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget)); -#line 5539 "LibraryWindow.c" - } else { - ExtendedPropertiesWindow* _tmp5_; -#line 692 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = self->priv->extended_properties; -#line 692 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget)); -#line 5546 "LibraryWindow.c" - } -#line 695 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_simple_action_set_state (action, value); -#line 5550 "LibraryWindow.c" -} - - -static GVariant* -_variant_new8 (gboolean value) -{ -#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 5559 "LibraryWindow.c" -} - - -static void -library_window_on_display_searchbar (LibraryWindow* self, - GSimpleAction* action, - GVariant* value) -{ - gboolean is_shown = FALSE; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - GVariant* _tmp2_; -#line 698 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 698 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 699 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - is_shown = g_variant_get_boolean (value); -#line 701 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = config_facade_get_instance (); -#line 701 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 701 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - configuration_facade_set_display_search_bar (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), is_shown); -#line 701 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 702 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_show_search_bar (self, is_shown); -#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _variant_new8 (is_shown); -#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_simple_action_set_state (action, _tmp2_); -#line 703 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_variant_unref0 (_tmp2_); -#line 5594 "LibraryWindow.c" -} - - -void -library_window_show_search_bar (LibraryWindow* self, - gboolean display) -{ - Page* _tmp0_; - Page* _tmp1_; - gboolean _tmp2_; - Page* _tmp3_; - CheckerboardPage* _tmp4_; - CheckerboardPage* _tmp5_; -#line 706 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 707 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 707 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 707 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_CHECKERBOARD_PAGE); -#line 707 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 707 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp2_) { -#line 708 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 5622 "LibraryWindow.c" - } -#line 710 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->is_search_toolbar_visible = display; -#line 711 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 711 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) _tmp3_) : NULL; -#line 711 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp4_ == NULL) { -#line 711 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp3_); -#line 5634 "LibraryWindow.c" - } -#line 711 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = _tmp4_; -#line 711 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_toggle_search_bar (self, library_window_should_show_search_bar (self), _tmp5_); -#line 711 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp5_); -#line 712 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (!display) { -#line 5644 "LibraryWindow.c" - SearchFilterActions* _tmp6_; -#line 713 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = self->priv->search_actions; -#line 713 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - search_filter_actions_reset (_tmp6_); -#line 5650 "LibraryWindow.c" - } -} - - -static void -library_window_on_display_sidebar (LibraryWindow* self, - GSimpleAction* action, - GVariant* variant) -{ -#line 716 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 716 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 717 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_set_sidebar_visible (self, g_variant_get_boolean (variant)); -#line 719 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_simple_action_set_state (action, variant); -#line 5668 "LibraryWindow.c" -} - - -static void -library_window_set_sidebar_visible (LibraryWindow* self, - gboolean visible) -{ - GtkPaned* _tmp0_; - ConfigFacade* _tmp1_; - ConfigFacade* _tmp2_; -#line 722 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 723 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->sidebar_paned; -#line 723 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_set_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), visible); -#line 724 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = config_facade_get_instance (); -#line 724 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _tmp1_; -#line 724 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - configuration_facade_set_display_sidebar (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), visible); -#line 724 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp2_); -#line 5693 "LibraryWindow.c" -} - - -static gboolean -library_window_is_sidebar_visible (LibraryWindow* self) -{ - gboolean result = FALSE; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gboolean _tmp2_; -#line 727 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE); -#line 728 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = config_facade_get_instance (); -#line 728 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 728 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = configuration_facade_get_display_sidebar (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 728 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 728 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = _tmp2_; -#line 728 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 5718 "LibraryWindow.c" -} - - -static void -library_window_on_display_toolbar (LibraryWindow* self, - GSimpleAction* action, - GVariant* variant) -{ -#line 731 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 731 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (G_IS_SIMPLE_ACTION (action)); -#line 732 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_set_toolbar_visible (self, g_variant_get_boolean (variant)); -#line 734 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_simple_action_set_state (action, variant); -#line 5735 "LibraryWindow.c" -} - - -static void -library_window_set_toolbar_visible (LibraryWindow* self, - gboolean visible) -{ - Page* _tmp0_; - Page* _tmp1_; - gboolean _tmp2_; - GtkToolbar* toolbar = NULL; - Page* _tmp3_; - Page* _tmp4_; - GtkToolbar* _tmp5_; - GtkToolbar* _tmp6_; - GtkToolbar* _tmp7_; - ConfigFacade* _tmp9_; - ConfigFacade* _tmp10_; -#line 737 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 738 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 738 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 738 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _tmp1_ == NULL; -#line 738 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 738 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp2_) { -#line 739 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 5768 "LibraryWindow.c" - } -#line 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = _tmp3_; -#line 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = page_get_toolbar (_tmp4_); -#line 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = _tmp5_; -#line 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp4_); -#line 742 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - toolbar = _tmp6_; -#line 743 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = toolbar; -#line 743 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp7_ != NULL) { -#line 5786 "LibraryWindow.c" - GtkRevealer* _tmp8_; -#line 744 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = self->priv->toolbar_revealer; -#line 744 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_revealer_set_reveal_child (_tmp8_, visible); -#line 5792 "LibraryWindow.c" - } -#line 746 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = config_facade_get_instance (); -#line 746 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = _tmp9_; -#line 746 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - configuration_facade_set_display_toolbar (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), visible); -#line 746 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp10_); -#line 737 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (toolbar); -#line 5804 "LibraryWindow.c" -} - - -static gboolean -library_window_is_toolbar_visible (LibraryWindow* self) -{ - gboolean result = FALSE; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gboolean _tmp2_; -#line 749 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE); -#line 750 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = config_facade_get_instance (); -#line 750 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 750 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = configuration_facade_get_display_toolbar (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 750 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 750 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = _tmp2_; -#line 750 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 5829 "LibraryWindow.c" -} - - -static void -library_window_show_extended_properties (LibraryWindow* self) -{ -#line 753 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 754 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_sync_extended_properties (self, TRUE); -#line 5840 "LibraryWindow.c" -} - - -static void -library_window_hide_extended_properties (LibraryWindow* self) -{ -#line 757 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 758 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_sync_extended_properties (self, FALSE); -#line 5851 "LibraryWindow.c" -} - - -static GVariant* -_variant_new9 (gboolean value) -{ -#line 763 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 5860 "LibraryWindow.c" -} - - -static void -library_window_sync_extended_properties (LibraryWindow* self, - gboolean show) -{ - GAction* action = NULL; - GAction* _tmp0_; - GAction* _tmp1_; - GVariant* _tmp2_; - ConfigFacade* _tmp3_; - ConfigFacade* _tmp4_; -#line 761 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 762 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplayExtendedProperties"); -#line 762 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 762 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - action = _tmp1_; -#line 763 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _variant_new9 (show); -#line 763 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_action_change_state (action, _tmp2_); -#line 763 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_variant_unref0 (_tmp2_); -#line 766 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = config_facade_get_instance (); -#line 766 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = _tmp3_; -#line 766 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - configuration_facade_set_display_extended_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), show); -#line 766 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp4_); -#line 761 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (action); -#line 5898 "LibraryWindow.c" -} - - -void -library_window_enqueue_batch_import (LibraryWindow* self, - BatchImport* batch_import, - gboolean allow_user_cancel) -{ - LibraryBranch* _tmp0_; - LibraryImportQueueSidebarEntry* _tmp1_; - LibraryImportQueueSidebarEntry* _tmp2_; -#line 769 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 769 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_BATCH_IMPORT (batch_import)); -#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->library_branch; -#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = library_branch_get_import_queue_entry (_tmp0_); -#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _tmp1_; -#line 770 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_import_queue_sidebar_entry_enqueue_and_schedule (_tmp2_, batch_import, allow_user_cancel); -#line 5922 "LibraryWindow.c" -} - - -static void -library_window_import_reporter (LibraryWindow* self, - ImportManifest* manifest) -{ -#line 773 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 773 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_IMPORT_MANIFEST (manifest)); -#line 774 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - import_ui_report_manifest (manifest, TRUE, NULL); -#line 5936 "LibraryWindow.c" -} - - -static void -_library_window_import_reporter_batch_import_import_reporter (ImportManifest* manifest, - BatchImportRoll* import_roll, - gpointer self) -{ -#line 805 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_import_reporter ((LibraryWindow*) self, manifest); -#line 5947 "LibraryWindow.c" -} - - -static void -library_window_dispatch_import_jobs (LibraryWindow* self, - GSList* uris, - const gchar* job_name, - gboolean copy_to_library, - gboolean recurse) -{ - gboolean _tmp0_ = FALSE; - GFile* _tmp1_; - GFile* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - const gchar* _tmp5_; - gboolean _tmp6_; - GeeArrayList* jobs = NULL; - GeeArrayList* _tmp14_; - GeeArrayList* _tmp26_; - gint _tmp27_; - gint _tmp28_; -#line 777 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 777 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (job_name != NULL); -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = app_dirs_get_import_dir (); -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _tmp1_; -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = g_file_get_path (_tmp2_); -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = _tmp3_; -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = g_get_home_dir (); -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = g_strcmp0 (_tmp4_, _tmp5_) == 0; -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (_tmp4_); -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp2_); -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp6_) { -#line 5992 "LibraryWindow.c" - gboolean _tmp7_; -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = self->priv->notify_library_is_home_dir; -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = _tmp7_; -#line 5998 "LibraryWindow.c" - } else { -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = FALSE; -#line 6002 "LibraryWindow.c" - } -#line 778 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp0_) { -#line 6006 "LibraryWindow.c" - GtkResponseType response = 0; - gchar* _tmp8_; - gchar* _tmp9_; - AppWindow* _tmp10_; - AppWindow* _tmp11_; - GtkResponseType _tmp12_; - GtkResponseType _tmp13_; -#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = g_strdup_printf (_ ("Shotwell is configured to import photos to your home directory.\n" "We recommend changing this in Edit %s Preference" \ -"s.\n" "Do you want to continue importing photos?"), "▸"); -#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = _tmp8_; -#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = app_window_get_instance (); -#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = _tmp10_; -#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = app_window_affirm_cancel_question (_tmp9_, _ ("_Import"), _ ("Library Location"), G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_window_get_type (), GtkWindow)); -#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp11_); -#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (_tmp9_); -#line 779 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - response = _tmp12_; -#line 785 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = response; -#line 785 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp13_ == GTK_RESPONSE_CANCEL) { -#line 786 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 6036 "LibraryWindow.c" - } -#line 788 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->notify_library_is_home_dir = FALSE; -#line 6040 "LibraryWindow.c" - } -#line 791 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = gee_array_list_new (TYPE_FILE_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL); -#line 791 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - jobs = _tmp14_; -#line 6046 "LibraryWindow.c" - { - GSList* uri_collection = NULL; - GSList* uri_it = NULL; -#line 792 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - uri_collection = uris; -#line 792 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - for (uri_it = uri_collection; uri_it != NULL; uri_it = uri_it->next) { -#line 6054 "LibraryWindow.c" - gchar* _tmp15_; - gchar* uri = NULL; -#line 792 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp15_ = g_strdup ((const gchar*) uri_it->data); -#line 792 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - uri = _tmp15_; -#line 6061 "LibraryWindow.c" - { - GFile* file_or_dir = NULL; - const gchar* _tmp16_; - GFile* _tmp17_; - GFile* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gboolean _tmp21_; - GeeArrayList* _tmp22_; - GFile* _tmp23_; - FileImportJob* _tmp24_; - FileImportJob* _tmp25_; -#line 793 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp16_ = uri; -#line 793 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp17_ = g_file_new_for_uri (_tmp16_); -#line 793 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - file_or_dir = _tmp17_; -#line 794 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp18_ = file_or_dir; -#line 794 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp19_ = g_file_get_path (_tmp18_); -#line 794 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp20_ = _tmp19_; -#line 794 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp21_ = _tmp20_ == NULL; -#line 794 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (_tmp20_); -#line 794 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp21_) { -#line 796 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - app_window_error_message (_ ("Photos cannot be imported from this directory."), NULL); -#line 798 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (file_or_dir); -#line 798 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (uri); -#line 798 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - continue; -#line 6100 "LibraryWindow.c" - } -#line 801 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp22_ = jobs; -#line 801 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp23_ = file_or_dir; -#line 801 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp24_ = file_import_job_new (_tmp23_, copy_to_library, recurse); -#line 801 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp25_ = _tmp24_; -#line 801 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp25_); -#line 801 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _batch_import_job_unref0 (_tmp25_); -#line 792 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (file_or_dir); -#line 792 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (uri); -#line 6118 "LibraryWindow.c" - } - } - } -#line 804 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp26_ = jobs; -#line 804 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp27_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 804 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp28_ = _tmp27_; -#line 804 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp28_ > 0) { -#line 6130 "LibraryWindow.c" - BatchImport* batch_import = NULL; - GeeArrayList* _tmp29_; - BatchImport* _tmp30_; - BatchImport* _tmp31_; -#line 805 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp29_ = jobs; -#line 805 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp30_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ITERABLE, GeeIterable), job_name, _library_window_import_reporter_batch_import_import_reporter, self, NULL, NULL, NULL, NULL, NULL); -#line 805 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - batch_import = _tmp30_; -#line 806 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp31_ = batch_import; -#line 806 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_enqueue_batch_import (self, _tmp31_, TRUE); -#line 807 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_import_queue_page (self); -#line 804 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (batch_import); -#line 6149 "LibraryWindow.c" - } -#line 777 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (jobs); -#line 6153 "LibraryWindow.c" -} - - -static GdkDragAction -library_window_get_drag_action (LibraryWindow* self) -{ - GdkDragAction result = 0; - GdkModifierType mask = 0; - GdkWindow* _tmp0_; - GdkDisplay* _tmp1_; - GdkDeviceManager* _tmp2_; - GdkDevice* _tmp3_; - GdkModifierType _tmp4_ = 0; - gboolean ctrl = FALSE; - GdkModifierType _tmp5_; - gboolean alt = FALSE; - GdkModifierType _tmp6_; - gboolean shift = FALSE; - GdkModifierType _tmp7_; - gboolean _tmp8_ = FALSE; - gboolean _tmp9_ = FALSE; - gboolean _tmp10_; -#line 811 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail (IS_LIBRARY_WINDOW (self), 0); -#line 814 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 814 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = gdk_display_get_default (); -#line 814 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = gdk_display_get_device_manager (_tmp1_); -#line 814 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = gdk_device_manager_get_client_pointer (_tmp2_); -#line 814 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gdk_window_get_device_position (_tmp0_, _tmp3_, NULL, NULL, &_tmp4_); -#line 814 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - mask = _tmp4_; -#line 817 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = mask; -#line 817 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - ctrl = (_tmp5_ & GDK_CONTROL_MASK) != 0; -#line 818 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = mask; -#line 818 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - alt = (_tmp6_ & GDK_MOD1_MASK) != 0; -#line 819 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = mask; -#line 819 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - shift = (_tmp7_ & GDK_SHIFT_MASK) != 0; -#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = ctrl; -#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp10_) { -#line 6206 "LibraryWindow.c" - gboolean _tmp11_; -#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = alt; -#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = !_tmp11_; -#line 6212 "LibraryWindow.c" - } else { -#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = FALSE; -#line 6216 "LibraryWindow.c" - } -#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp9_) { -#line 6220 "LibraryWindow.c" - gboolean _tmp12_; -#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = shift; -#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = !_tmp12_; -#line 6226 "LibraryWindow.c" - } else { -#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = FALSE; -#line 6230 "LibraryWindow.c" - } -#line 821 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp8_) { -#line 822 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = GDK_ACTION_COPY; -#line 822 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 6238 "LibraryWindow.c" - } else { - gboolean _tmp13_ = FALSE; - gboolean _tmp14_ = FALSE; - gboolean _tmp15_; -#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp15_ = ctrl; -#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (!_tmp15_) { -#line 6247 "LibraryWindow.c" - gboolean _tmp16_; -#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp16_ = alt; -#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = _tmp16_; -#line 6253 "LibraryWindow.c" - } else { -#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = FALSE; -#line 6257 "LibraryWindow.c" - } -#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp14_) { -#line 6261 "LibraryWindow.c" - gboolean _tmp17_; -#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp17_ = shift; -#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = !_tmp17_; -#line 6267 "LibraryWindow.c" - } else { -#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = FALSE; -#line 6271 "LibraryWindow.c" - } -#line 823 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp13_) { -#line 824 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = GDK_ACTION_ASK; -#line 824 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 6279 "LibraryWindow.c" - } else { - gboolean _tmp18_ = FALSE; - gboolean _tmp19_ = FALSE; - gboolean _tmp20_; -#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp20_ = ctrl; -#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp20_) { -#line 6288 "LibraryWindow.c" - gboolean _tmp21_; -#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp21_ = alt; -#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp19_ = !_tmp21_; -#line 6294 "LibraryWindow.c" - } else { -#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp19_ = FALSE; -#line 6298 "LibraryWindow.c" - } -#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp19_) { -#line 6302 "LibraryWindow.c" - gboolean _tmp22_; -#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp22_ = shift; -#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp18_ = _tmp22_; -#line 6308 "LibraryWindow.c" - } else { -#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp18_ = FALSE; -#line 6312 "LibraryWindow.c" - } -#line 825 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp18_) { -#line 826 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = GDK_ACTION_LINK; -#line 826 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 6320 "LibraryWindow.c" - } else { -#line 828 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = GDK_ACTION_DEFAULT; -#line 828 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 6326 "LibraryWindow.c" - } - } - } -} - - -static gboolean -library_window_real_drag_motion (GtkWidget* base, - GdkDragContext* context, - gint x, - gint y, - guint time) -{ - LibraryWindow * self; - gboolean result = FALSE; - GdkAtom target = 0U; - GtkTargetList* _tmp0_; - GdkAtom _tmp1_; - GdkAtom _tmp2_; - GtkWidget* _tmp3_; - GdkDragAction drag_action = 0; - GdkDragAction _tmp4_; - GdkDragAction _tmp5_; -#line 831 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 831 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE); -#line 832 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = gtk_drag_dest_get_target_list (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 832 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - target = gtk_drag_dest_find_target (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), context, _tmp0_); -#line 833 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = target; -#line 833 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = GDK_NONE; -#line 833 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp1_ == _tmp2_) { -#line 834 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:834: drag target is GDK_NONE"); -#line 835 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gdk_drag_status (context, 0, (guint32) time); -#line 837 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = TRUE; -#line 837 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 6372 "LibraryWindow.c" - } -#line 841 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = gtk_drag_get_source_widget (context); -#line 841 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp3_ != NULL) { -#line 842 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gdk_drag_status (context, GDK_ACTION_PRIVATE, (guint32) time); -#line 844 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = TRUE; -#line 844 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 6384 "LibraryWindow.c" - } -#line 848 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - drag_action = library_window_get_drag_action (self); -#line 850 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = drag_action; -#line 850 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp4_ == GDK_ACTION_DEFAULT) { -#line 851 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - drag_action = GDK_ACTION_ASK; -#line 6394 "LibraryWindow.c" - } -#line 853 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = drag_action; -#line 853 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gdk_drag_status (context, _tmp5_, (guint32) time); -#line 855 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = TRUE; -#line 855 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 6404 "LibraryWindow.c" -} - - -static void -library_window_real_drag_data_received (GtkWidget* base, - GdkDragContext* context, - gint x, - gint y, - GtkSelectionData* selection_data, - guint info, - guint time) -{ - LibraryWindow * self; - guint8* _tmp0_; - GtkWidget* _tmp1_; -#line 858 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 858 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 858 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (selection_data != NULL); -#line 860 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = gtk_selection_data_get_data (selection_data); -#line 860 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (-1 < 0) { -#line 861 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:861: failed to retrieve SelectionData"); -#line 6432 "LibraryWindow.c" - } -#line 865 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = gtk_drag_get_source_widget (context); -#line 865 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp1_ == NULL) { -#line 866 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_external_drop_handler (self, context, NULL, selection_data, info, time); -#line 6440 "LibraryWindow.c" - } else { -#line 868 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_drag_finish (context, FALSE, FALSE, (guint32) time); -#line 6444 "LibraryWindow.c" - } -} - - -static void -library_window_external_drop_handler (LibraryWindow* self, - GdkDragContext* context, - SidebarEntry* entry, - GtkSelectionData* data, - guint info, - guint time) -{ - gchar** uris_array = NULL; - gchar** _tmp0_; - gchar** _tmp1_; - gint uris_array_length1; - gint _uris_array_size_; - GSList* uris = NULL; - gchar** _tmp2_; - gint _tmp2__length1; - GdkDragAction selected_action = 0; - GdkDragAction _tmp6_; - GSList* _tmp14_; - GdkDragAction _tmp15_; -#line 871 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 871 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 871 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail ((entry == NULL) || SIDEBAR_IS_ENTRY (entry)); -#line 871 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (data != NULL); -#line 873 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_ = gtk_selection_data_get_uris (data); -#line 873 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - uris_array = _tmp1_; -#line 873 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - uris_array_length1 = _vala_array_length (_tmp0_); -#line 873 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _uris_array_size_ = uris_array_length1; -#line 875 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - uris = NULL; -#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = uris_array; -#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2__length1 = uris_array_length1; -#line 6491 "LibraryWindow.c" - { - gchar** uri_collection = NULL; - gint uri_collection_length1 = 0; - gint _uri_collection_size_ = 0; - gint uri_it = 0; -#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - uri_collection = _tmp2_; -#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - uri_collection_length1 = _tmp2__length1; -#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - for (uri_it = 0; uri_it < _tmp2__length1; uri_it = uri_it + 1) { -#line 6503 "LibraryWindow.c" - gchar* _tmp3_; - gchar* uri = NULL; -#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = g_strdup (uri_collection[uri_it]); -#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - uri = _tmp3_; -#line 6510 "LibraryWindow.c" - { - const gchar* _tmp4_; - gchar* _tmp5_; -#line 877 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = uri; -#line 877 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = g_strdup (_tmp4_); -#line 877 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - uris = g_slist_append (uris, _tmp5_); -#line 876 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (uri); -#line 6522 "LibraryWindow.c" - } - } - } -#line 879 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - selected_action = gdk_drag_context_get_selected_action (context); -#line 880 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = selected_action; -#line 880 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp6_ == GDK_ACTION_ASK) { -#line 6532 "LibraryWindow.c" - GtkResponseType _result_ = 0; - GSList* _tmp7_; - GtkResponseType _tmp13_; -#line 882 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _result_ = GTK_RESPONSE_REJECT; -#line 883 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = uris; -#line 6540 "LibraryWindow.c" - { - GSList* uri_collection = NULL; - GSList* uri_it = NULL; -#line 883 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - uri_collection = _tmp7_; -#line 883 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - for (uri_it = uri_collection; uri_it != NULL; uri_it = uri_it->next) { -#line 6548 "LibraryWindow.c" - gchar* _tmp8_; - gchar* uri = NULL; -#line 883 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = g_strdup ((const gchar*) uri_it->data); -#line 883 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - uri = _tmp8_; -#line 6555 "LibraryWindow.c" - { - const gchar* _tmp9_; - GFile* _tmp10_; - GFile* _tmp11_; - gboolean _tmp12_; -#line 884 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = uri; -#line 884 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = g_file_new_for_uri (_tmp9_); -#line 884 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = _tmp10_; -#line 884 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = !app_dirs_is_in_import_dir (_tmp11_); -#line 884 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp11_); -#line 884 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp12_) { -#line 885 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _result_ = copy_files_dialog (); -#line 887 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (uri); -#line 887 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - break; -#line 6579 "LibraryWindow.c" - } -#line 883 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (uri); -#line 6583 "LibraryWindow.c" - } - } - } -#line 891 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = _result_; -#line 891 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - switch (_tmp13_) { -#line 891 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - case GTK_RESPONSE_ACCEPT: -#line 6593 "LibraryWindow.c" - { -#line 893 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - selected_action = GDK_ACTION_COPY; -#line 894 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - break; -#line 6599 "LibraryWindow.c" - } -#line 891 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - case GTK_RESPONSE_REJECT: -#line 6603 "LibraryWindow.c" - { -#line 897 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - selected_action = GDK_ACTION_LINK; -#line 898 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - break; -#line 6609 "LibraryWindow.c" - } - default: - { -#line 902 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_drag_finish (context, FALSE, FALSE, (guint32) time); -#line 904 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - __g_slist_free__g_free0_0 (uris); -#line 904 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - uris_array = (_vala_array_free (uris_array, uris_array_length1, (GDestroyNotify) g_free), NULL); -#line 904 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 6621 "LibraryWindow.c" - } - } - } -#line 908 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = uris; -#line 908 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp15_ = selected_action; -#line 908 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_dispatch_import_jobs (self, _tmp14_, "drag-and-drop", _tmp15_ == GDK_ACTION_COPY, TRUE); -#line 910 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_drag_finish (context, TRUE, FALSE, (guint32) time); -#line 871 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - __g_slist_free__g_free0_0 (uris); -#line 871 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - uris_array = (_vala_array_free (uris_array, uris_array_length1, (GDestroyNotify) g_free), NULL); -#line 6637 "LibraryWindow.c" -} - - -void -library_window_switch_to_library_page (LibraryWindow* self) -{ - LibraryBranch* _tmp0_; - LibraryPhotosEntry* _tmp1_; - LibraryPhotosEntry* _tmp2_; - Page* _tmp3_; - Page* _tmp4_; -#line 913 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 914 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->library_branch; -#line 914 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = library_branch_get_photos_entry (_tmp0_); -#line 914 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _tmp1_; -#line 914 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 914 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = _tmp3_; -#line 914 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_page (self, _tmp4_); -#line 914 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp4_); -#line 6665 "LibraryWindow.c" -} - - -void -library_window_switch_to_event (LibraryWindow* self, - Event* event) -{ - EventsEventEntry* entry = NULL; - EventsBranch* _tmp0_; - EventsEventEntry* _tmp1_; - EventsEventEntry* _tmp2_; -#line 917 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 917 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_EVENT (event)); -#line 918 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->events_branch; -#line 918 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = events_branch_get_entry_for_event (_tmp0_, event); -#line 918 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - entry = _tmp1_; -#line 919 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = entry; -#line 919 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp2_ != NULL) { -#line 6691 "LibraryWindow.c" - EventsEventEntry* _tmp3_; - Page* _tmp4_; - Page* _tmp5_; -#line 920 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = entry; -#line 920 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 920 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = _tmp4_; -#line 920 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_page (self, _tmp5_); -#line 920 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp5_); -#line 6705 "LibraryWindow.c" - } -#line 917 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (entry); -#line 6709 "LibraryWindow.c" -} - - -void -library_window_switch_to_tag (LibraryWindow* self, - Tag* tag) -{ - TagsSidebarEntry* entry = NULL; - TagsBranch* _tmp0_; - TagsSidebarEntry* _tmp1_; - TagsSidebarEntry* _tmp2_; -#line 923 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 923 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_TAG (tag)); -#line 924 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->tags_branch; -#line 924 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = tags_branch_get_entry_for_tag (_tmp0_, tag); -#line 924 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - entry = _tmp1_; -#line 925 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = entry; -#line 925 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp2_ != NULL) { -#line 6735 "LibraryWindow.c" - TagsSidebarEntry* _tmp3_; - Page* _tmp4_; - Page* _tmp5_; -#line 926 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = entry; -#line 926 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 926 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = _tmp4_; -#line 926 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_page (self, _tmp5_); -#line 926 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp5_); -#line 6749 "LibraryWindow.c" - } -#line 923 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (entry); -#line 6753 "LibraryWindow.c" -} - - -void -library_window_switch_to_saved_search (LibraryWindow* self, - SavedSearch* search) -{ - SearchesSidebarEntry* entry = NULL; - SearchesBranch* _tmp0_; - SearchesSidebarEntry* _tmp1_; - SearchesSidebarEntry* _tmp2_; -#line 929 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 929 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_SAVED_SEARCH (search)); -#line 930 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->saved_search_branch; -#line 930 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = searches_branch_get_entry_for_saved_search (_tmp0_, search); -#line 930 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - entry = _tmp1_; -#line 931 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = entry; -#line 931 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp2_ != NULL) { -#line 6779 "LibraryWindow.c" - SearchesSidebarEntry* _tmp3_; - Page* _tmp4_; - Page* _tmp5_; -#line 932 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = entry; -#line 932 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 932 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = _tmp4_; -#line 932 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_page (self, _tmp5_); -#line 932 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp5_); -#line 6793 "LibraryWindow.c" - } -#line 929 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (entry); -#line 6797 "LibraryWindow.c" -} - - -void -library_window_switch_to_photo_page (LibraryWindow* self, - CollectionPage* controller, - Photo* current) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - DataView* _tmp2_; - DataView* _tmp3_; - LibraryPhotoPage* _tmp4_; - LibraryPhotoPage* _tmp7_; - LibraryPhotoPage* _tmp8_; -#line 935 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 935 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_COLLECTION_PAGE (controller)); -#line 935 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_PHOTO (current)); -#line 936 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (controller, TYPE_PAGE, Page)); -#line 936 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 936 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = view_collection_get_view_for_source (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (current, TYPE_DATA_SOURCE, DataSource)); -#line 936 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = _tmp2_; -#line 936 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_assert (_tmp3_ != NULL, "controller.get_view().get_view_for_source(current) != null"); -#line 936 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp3_); -#line 936 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_tmp1_); -#line 937 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = self->priv->photo_page; -#line 937 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp4_ == NULL) { -#line 6837 "LibraryWindow.c" - LibraryPhotoPage* _tmp5_; - LibraryPhotoPage* _tmp6_; -#line 938 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = library_photo_page_new (); -#line 938 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp5_); -#line 938 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->photo_page); -#line 938 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->photo_page = _tmp5_; -#line 939 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = self->priv->photo_page; -#line 939 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_add_to_stack (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PAGE, Page)); -#line 943 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - spin_event_loop (); -#line 6854 "LibraryWindow.c" - } -#line 946 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = self->priv->photo_page; -#line 946 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_photo_page_display_for_collection (_tmp7_, controller, current, NULL); -#line 947 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = self->priv->photo_page; -#line 947 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_page (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_PAGE, Page)); -#line 6864 "LibraryWindow.c" -} - - -void -library_window_switch_to_import_queue_page (LibraryWindow* self) -{ - LibraryBranch* _tmp0_; - LibraryImportQueueSidebarEntry* _tmp1_; - LibraryImportQueueSidebarEntry* _tmp2_; - Page* _tmp3_; - Page* _tmp4_; -#line 950 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->library_branch; -#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = library_branch_get_import_queue_entry (_tmp0_); -#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _tmp1_; -#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = _tmp3_; -#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_page (self, _tmp4_); -#line 951 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp4_); -#line 6892 "LibraryWindow.c" -} - - -static void -library_window_on_camera_added (LibraryWindow* self, - DiscoveredCamera* camera) -{ - CameraSidebarEntry* entry = NULL; - CameraBranch* _tmp0_; - CameraSidebarEntry* _tmp1_; - CameraSidebarEntry* _tmp2_; - ImportPage* page = NULL; - CameraSidebarEntry* _tmp3_; - Page* _tmp4_; - GFile* uri_file = NULL; - const gchar* _tmp5_; - GFile* _tmp6_; - GMount* mount = NULL; - gboolean _tmp11_ = FALSE; - GMount* _tmp12_; - GError * _inner_error_ = NULL; -#line 954 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 954 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_DISCOVERED_CAMERA (camera)); -#line 955 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->camera_branch; -#line 955 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = camera_branch_get_entry_for_camera (_tmp0_, camera); -#line 955 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - entry = _tmp1_; -#line 956 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = entry; -#line 956 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp2_ == NULL) { -#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (entry); -#line 957 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 6932 "LibraryWindow.c" - } -#line 959 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = entry; -#line 959 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 959 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - page = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_IMPORT_PAGE, ImportPage); -#line 960 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = camera->uri; -#line 960 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = g_file_new_for_uri (_tmp5_); -#line 960 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - uri_file = _tmp6_; -#line 963 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - mount = NULL; -#line 6948 "LibraryWindow.c" - { - GMount* _tmp7_ = NULL; - GFile* _tmp8_; - GMount* _tmp9_; - GMount* _tmp10_; -#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = uri_file; -#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = g_file_find_enclosing_mount (_tmp8_, NULL, &_inner_error_); -#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = _tmp9_; -#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6962 "LibraryWindow.c" - goto __catch46_g_error; - } -#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = _tmp7_; -#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = NULL; -#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (mount); -#line 965 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - mount = _tmp10_; -#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp7_); -#line 6975 "LibraryWindow.c" - } - goto __finally46; - __catch46_g_error: - { - GError* err = NULL; -#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - err = _inner_error_; -#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _inner_error_ = NULL; -#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_error_free0 (err); -#line 6987 "LibraryWindow.c" - } - __finally46: -#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (mount); -#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (uri_file); -#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (page); -#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (entry); -#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_clear_error (&_inner_error_); -#line 964 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 7006 "LibraryWindow.c" - } -#line 971 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = mount; -#line 971 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp12_ != NULL) { -#line 7012 "LibraryWindow.c" - const gchar* _tmp13_; -#line 971 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = camera->uri; -#line 971 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = !g_str_has_prefix (_tmp13_, "file://"); -#line 7018 "LibraryWindow.c" - } else { -#line 971 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = FALSE; -#line 7022 "LibraryWindow.c" - } -#line 971 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp11_) { -#line 7026 "LibraryWindow.c" - ImportPage* _tmp14_; - GMount* _tmp15_; -#line 972 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = page; -#line 972 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp15_ = mount; -#line 972 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (import_page_unmount_camera (_tmp14_, _tmp15_)) { -#line 7035 "LibraryWindow.c" - ImportPage* _tmp16_; -#line 973 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp16_ = page; -#line 973 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_page (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_PAGE, Page)); -#line 7041 "LibraryWindow.c" - } else { -#line 975 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - app_window_error_message ("Unable to unmount the camera at this time.", NULL); -#line 7045 "LibraryWindow.c" - } - } else { - ImportPage* _tmp17_; -#line 977 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp17_ = page; -#line 977 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_page (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_PAGE, Page)); -#line 7053 "LibraryWindow.c" - } -#line 954 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (mount); -#line 954 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (uri_file); -#line 954 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (page); -#line 954 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (entry); -#line 7063 "LibraryWindow.c" -} - - -void -library_window_add_to_stack (LibraryWindow* self, - Page* page) -{ - GtkStack* _tmp0_; - GtkStack* _tmp1_; -#line 982 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 982 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_PAGE (page)); -#line 984 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (page, gtk_widget_get_type (), GtkWidget)); -#line 986 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->stack; -#line 986 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (page, gtk_widget_get_type (), GtkWidget)); -#line 988 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = self->priv->stack; -#line 988 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 7087 "LibraryWindow.c" -} - - -static void -library_window_remove_from_stack (LibraryWindow* self, - Page* page) -{ - GtkStack* _tmp0_; - GtkStack* _tmp1_; -#line 991 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 991 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_PAGE (page)); -#line 992 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->stack; -#line 992 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (page, gtk_widget_get_type (), GtkWidget)); -#line 995 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = self->priv->stack; -#line 995 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 7109 "LibraryWindow.c" -} - - -static GVariant* -_variant_new10 (gboolean value) -{ -#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 7118 "LibraryWindow.c" -} - - -static GVariant* -_variant_new11 (gboolean value) -{ -#line 1006 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 7127 "LibraryWindow.c" -} - - -static GVariant* -_variant_new12 (gboolean value) -{ -#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return g_variant_ref_sink (g_variant_new_boolean (value)); -#line 7136 "LibraryWindow.c" -} - - -static GVariant* -_variant_new13 (const gchar* value) -{ -#line 1021 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return g_variant_ref_sink (g_variant_new_string (value)); -#line 7145 "LibraryWindow.c" -} - - -static void -library_window_load_configuration (LibraryWindow* self) -{ - GAction* basic_display_action = NULL; - GAction* _tmp0_; - GAction* _tmp1_; - GAction* _tmp2_; - GAction* _tmp3_; - ConfigFacade* _tmp4_; - ConfigFacade* _tmp5_; - GVariant* _tmp6_; - GAction* extended_display_action = NULL; - GAction* _tmp7_; - GAction* _tmp8_; - GAction* _tmp9_; - GAction* _tmp10_; - ConfigFacade* _tmp11_; - ConfigFacade* _tmp12_; - GVariant* _tmp13_; - GAction* search_bar_display_action = NULL; - GAction* _tmp14_; - GAction* _tmp15_; - GAction* _tmp16_; - GAction* _tmp17_; - ConfigFacade* _tmp18_; - ConfigFacade* _tmp19_; - GVariant* _tmp20_; - GAction* sort_events_action = NULL; - GAction* _tmp21_; - GAction* _tmp22_; - GAction* _tmp23_; - const gchar* _tmp24_ = NULL; - ConfigFacade* _tmp25_; - ConfigFacade* _tmp26_; - gboolean _tmp27_; - gchar* event_sort_val = NULL; - gchar* _tmp28_; - GAction* _tmp29_; - GVariant* _tmp30_; -#line 999 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1000 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplayBasicProperties"); -#line 1000 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 1000 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - basic_display_action = _tmp1_; -#line 1001 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = basic_display_action; -#line 1001 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_assert (_tmp2_ != NULL, "basic_display_action != null"); -#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = basic_display_action; -#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = config_facade_get_instance (); -#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = _tmp4_; -#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = _variant_new10 (configuration_facade_get_display_basic_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_action_change_state (_tmp3_, _tmp6_); -#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_variant_unref0 (_tmp6_); -#line 1002 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp5_); -#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplayExtendedProperties"); -#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = _g_object_ref0 (_tmp7_); -#line 1004 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - extended_display_action = _tmp8_; -#line 1005 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = extended_display_action; -#line 1005 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_assert (_tmp9_ != NULL, "extended_display_action != null"); -#line 1006 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = extended_display_action; -#line 1006 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = config_facade_get_instance (); -#line 1006 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = _tmp11_; -#line 1006 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = _variant_new11 (configuration_facade_get_display_extended_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 1006 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_action_change_state (_tmp10_, _tmp13_); -#line 1006 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_variant_unref0 (_tmp13_); -#line 1006 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp12_); -#line 1008 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonDisplaySearchbar"); -#line 1008 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp15_ = _g_object_ref0 (_tmp14_); -#line 1008 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - search_bar_display_action = _tmp15_; -#line 1009 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp16_ = search_bar_display_action; -#line 1009 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_assert (_tmp16_ != NULL, "search_bar_display_action != null"); -#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp17_ = search_bar_display_action; -#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp18_ = config_facade_get_instance (); -#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp19_ = _tmp18_; -#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp20_ = _variant_new12 (configuration_facade_get_display_search_bar (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_action_change_state (_tmp17_, _tmp20_); -#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_variant_unref0 (_tmp20_); -#line 1010 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp19_); -#line 1012 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp21_ = g_action_map_lookup_action (G_TYPE_CHECK_INSTANCE_CAST (self, g_action_map_get_type (), GActionMap), "CommonSortEvents"); -#line 1012 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp22_ = _g_object_ref0 (_tmp21_); -#line 1012 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - sort_events_action = _tmp22_; -#line 1013 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp23_ = sort_events_action; -#line 1013 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_assert (_tmp23_ != NULL, "sort_events_action != null"); -#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp25_ = config_facade_get_instance (); -#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp26_ = _tmp25_; -#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp27_ = configuration_facade_get_events_sort_ascending (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp26_); -#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp27_) { -#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp24_ = LIBRARY_WINDOW_SORT_EVENTS_ORDER_ASCENDING; -#line 7284 "LibraryWindow.c" - } else { -#line 1019 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp24_ = LIBRARY_WINDOW_SORT_EVENTS_ORDER_DESCENDING; -#line 7288 "LibraryWindow.c" - } -#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp28_ = g_strdup (_tmp24_); -#line 1018 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - event_sort_val = _tmp28_; -#line 1021 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp29_ = sort_events_action; -#line 1021 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp30_ = _variant_new13 (event_sort_val); -#line 1021 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_action_change_state (_tmp29_, _tmp30_); -#line 1021 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_variant_unref0 (_tmp30_); -#line 999 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (event_sort_val); -#line 999 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (sort_events_action); -#line 999 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (search_bar_display_action); -#line 999 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (extended_display_action); -#line 999 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (basic_display_action); -#line 7312 "LibraryWindow.c" -} - - -static gboolean -_library_window_on_pulse_background_progress_bar_gsource_func (gpointer self) -{ - gboolean result; - result = library_window_on_pulse_background_progress_bar ((LibraryWindow*) self); -#line 1036 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 7323 "LibraryWindow.c" -} - - -static void -library_window_start_pulse_background_progress_bar (LibraryWindow* self, - const gchar* label, - gint priority) -{ - gint _tmp0_; - GtkProgressBar* _tmp1_; - GtkProgressBar* _tmp2_; -#line 1024 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1024 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (label != NULL); -#line 1025 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->current_progress_priority; -#line 1025 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (priority < _tmp0_) { -#line 1026 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 7345 "LibraryWindow.c" - } -#line 1028 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_stop_pulse_background_progress_bar (self, priority, FALSE); -#line 1030 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->current_progress_priority = priority; -#line 1032 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = self->priv->background_progress_bar; -#line 1032 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_progress_bar_set_text (_tmp1_, label); -#line 1033 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = self->priv->background_progress_bar; -#line 1033 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_progress_bar_pulse (_tmp2_); -#line 1034 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_show_background_progress_bar (self); -#line 1036 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->background_progress_pulse_id = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) LIBRARY_WINDOW_BACKGROUND_PROGRESS_PULSE_MSEC, _library_window_on_pulse_background_progress_bar_gsource_func, g_object_ref (self), g_object_unref); -#line 7363 "LibraryWindow.c" -} - - -static gboolean -library_window_on_pulse_background_progress_bar (LibraryWindow* self) -{ - gboolean result = FALSE; - GtkProgressBar* _tmp0_; -#line 1040 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE); -#line 1041 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->background_progress_bar; -#line 1041 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_progress_bar_pulse (_tmp0_); -#line 1043 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = TRUE; -#line 1043 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 7382 "LibraryWindow.c" -} - - -static void -library_window_stop_pulse_background_progress_bar (LibraryWindow* self, - gint priority, - gboolean clear) -{ - gint _tmp0_; - guint _tmp1_; -#line 1046 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1047 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->current_progress_priority; -#line 1047 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (priority < _tmp0_) { -#line 1048 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 7401 "LibraryWindow.c" - } -#line 1050 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = self->priv->background_progress_pulse_id; -#line 1050 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp1_ != ((guint) 0)) { -#line 7407 "LibraryWindow.c" - guint _tmp2_; -#line 1051 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = self->priv->background_progress_pulse_id; -#line 1051 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_source_remove (_tmp2_); -#line 1052 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->background_progress_pulse_id = (guint) 0; -#line 7415 "LibraryWindow.c" - } -#line 1055 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (clear) { -#line 1056 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_clear_background_progress_bar (self, priority); -#line 7421 "LibraryWindow.c" - } -} - - -static void -library_window_update_background_progress_bar (LibraryWindow* self, - const gchar* label, - gint priority, - gdouble count, - gdouble total) -{ - gint _tmp0_; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - gdouble fraction = 0.0; - GtkProgressBar* _tmp3_; - gdouble _tmp4_; - GtkProgressBar* _tmp5_; - gdouble _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; -#line 1059 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1059 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (label != NULL); -#line 1061 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->current_progress_priority; -#line 1061 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (priority < _tmp0_) { -#line 1062 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 7453 "LibraryWindow.c" - } -#line 1064 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_stop_pulse_background_progress_bar (self, priority, FALSE); -#line 1066 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (count <= 0.0) { -#line 1066 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = TRUE; -#line 7461 "LibraryWindow.c" - } else { -#line 1066 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = total <= 0.0; -#line 7465 "LibraryWindow.c" - } -#line 1066 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp2_) { -#line 1066 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = TRUE; -#line 7471 "LibraryWindow.c" - } else { -#line 1066 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = count >= total; -#line 7475 "LibraryWindow.c" - } -#line 1066 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp1_) { -#line 1067 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_clear_background_progress_bar (self, priority); -#line 1069 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 7483 "LibraryWindow.c" - } -#line 1072 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->current_progress_priority = priority; -#line 1074 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - fraction = count / total; -#line 1075 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = self->priv->background_progress_bar; -#line 1075 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = fraction; -#line 1075 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_progress_bar_set_fraction (_tmp3_, _tmp4_); -#line 1076 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = self->priv->background_progress_bar; -#line 1076 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = fraction; -#line 1076 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = g_strdup_printf (_ ("%s (%d%%)"), label, (gint) (_tmp6_ * 100.0)); -#line 1076 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = _tmp7_; -#line 1076 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_progress_bar_set_text (_tmp5_, _tmp8_); -#line 1076 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (_tmp8_); -#line 1077 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_show_background_progress_bar (self); -#line 7509 "LibraryWindow.c" -} - - -static void -library_window_clear_background_progress_bar (LibraryWindow* self, - gint priority) -{ - gint _tmp0_; - GtkProgressBar* _tmp1_; - GtkProgressBar* _tmp2_; -#line 1086 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1087 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->current_progress_priority; -#line 1087 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (priority < _tmp0_) { -#line 1088 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 7528 "LibraryWindow.c" - } -#line 1090 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_stop_pulse_background_progress_bar (self, priority, FALSE); -#line 1092 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->current_progress_priority = 0; -#line 1094 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = self->priv->background_progress_bar; -#line 1094 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_progress_bar_set_fraction (_tmp1_, 0.0); -#line 1095 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = self->priv->background_progress_bar; -#line 1095 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_progress_bar_set_text (_tmp2_, ""); -#line 1096 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_hide_background_progress_bar (self); -#line 7544 "LibraryWindow.c" -} - - -static void -library_window_show_background_progress_bar (LibraryWindow* self) -{ - gboolean _tmp0_; -#line 1104 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1105 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->background_progress_displayed; -#line 1105 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (!_tmp0_) { -#line 7558 "LibraryWindow.c" - GtkBox* _tmp1_; - GtkFrame* _tmp2_; - GtkFrame* _tmp3_; -#line 1106 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = self->priv->top_section; -#line 1106 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = self->priv->background_progress_frame; -#line 1106 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_box_pack_end (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 1107 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = self->priv->background_progress_frame; -#line 1107 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget)); -#line 1108 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->background_progress_displayed = TRUE; -#line 7574 "LibraryWindow.c" - } -} - - -static void -library_window_hide_background_progress_bar (LibraryWindow* self) -{ - gboolean _tmp0_; -#line 1112 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1113 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->background_progress_displayed; -#line 1113 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp0_) { -#line 7589 "LibraryWindow.c" - GtkBox* _tmp1_; - GtkFrame* _tmp2_; -#line 1114 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = self->priv->top_section; -#line 1114 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = self->priv->background_progress_frame; -#line 1114 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 1115 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->background_progress_displayed = FALSE; -#line 7600 "LibraryWindow.c" - } -} - - -static void -library_window_on_library_monitor_discovery_started (LibraryWindow* self) -{ -#line 1119 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1120 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_start_pulse_background_progress_bar (self, _ ("Updating library…"), LIBRARY_WINDOW_STARTUP_SCAN_PROGRESS_PRIORITY); -#line 7612 "LibraryWindow.c" -} - - -static void -library_window_on_library_monitor_discovery_completed (LibraryWindow* self) -{ -#line 1123 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1124 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_stop_pulse_background_progress_bar (self, LIBRARY_WINDOW_STARTUP_SCAN_PROGRESS_PRIORITY, TRUE); -#line 7623 "LibraryWindow.c" -} - - -static void -library_window_on_library_monitor_auto_update_progress (LibraryWindow* self, - gint completed_files, - gint total_files) -{ -#line 1127 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1128 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (total_files < LIBRARY_WINDOW_MIN_PROGRESS_BAR_FILES) { -#line 1129 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_clear_background_progress_bar (self, LIBRARY_WINDOW_REALTIME_UPDATE_PROGRESS_PRIORITY); -#line 7638 "LibraryWindow.c" - } else { -#line 1131 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_update_background_progress_bar (self, _ ("Updating library…"), LIBRARY_WINDOW_REALTIME_UPDATE_PROGRESS_PRIORITY, (gdouble) completed_files, (gdouble) total_files); -#line 7642 "LibraryWindow.c" - } -} - - -static void -library_window_on_library_monitor_auto_import_preparing (LibraryWindow* self) -{ -#line 1136 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1137 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_start_pulse_background_progress_bar (self, _ ("Preparing to auto-import photos…"), LIBRARY_WINDOW_REALTIME_IMPORT_PROGRESS_PRIORITY); -#line 7654 "LibraryWindow.c" -} - - -static void -library_window_on_library_monitor_auto_import_progress (LibraryWindow* self, - guint64 completed_bytes, - guint64 total_bytes) -{ -#line 1141 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_update_background_progress_bar (self, _ ("Auto-importing photos…"), LIBRARY_WINDOW_REALTIME_IMPORT_PROGRESS_PRIORITY, (gdouble) completed_bytes, (gdouble) total_bytes); -#line 7667 "LibraryWindow.c" -} - - -static void -library_window_on_metadata_writer_progress (LibraryWindow* self, - guint completed, - guint total) -{ -#line 1146 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1147 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (total < ((guint) LIBRARY_WINDOW_MIN_PROGRESS_BAR_FILES)) { -#line 1148 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_clear_background_progress_bar (self, LIBRARY_WINDOW_METADATA_WRITER_PROGRESS_PRIORITY); -#line 7682 "LibraryWindow.c" - } else { -#line 1150 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_update_background_progress_bar (self, _ ("Writing metadata to files…"), LIBRARY_WINDOW_METADATA_WRITER_PROGRESS_PRIORITY, (gdouble) completed, (gdouble) total); -#line 7686 "LibraryWindow.c" - } -} - - -static void -library_window_create_layout (LibraryWindow* self, - Page* start_page) -{ - GtkScrolledWindow* scrolled_sidebar = NULL; - GtkScrolledWindow* _tmp0_; - SidebarTree* _tmp1_; - GtkFrame* _tmp2_; - GtkFrame* _tmp3_; - GtkProgressBar* _tmp4_; - GtkFrame* _tmp5_; - GtkStyleContext* _tmp6_; - BasicProperties* _tmp7_; - BasicProperties* _tmp8_; - BasicProperties* _tmp9_; - BasicProperties* _tmp10_; - BasicProperties* _tmp11_; - BasicProperties* _tmp12_; - BasicProperties* _tmp13_; - BasicProperties* _tmp14_; - GtkFrame* _tmp15_; - BasicProperties* _tmp16_; - GtkFrame* _tmp17_; - GtkStyleContext* _tmp18_; - GtkBox* _tmp19_; - GtkPaned* _tmp20_; - GtkBox* _tmp21_; - GtkPaned* _tmp22_; - GtkFrame* _tmp23_; - GtkPaned* _tmp24_; - GtkBox* _tmp25_; - GtkBox* _tmp26_; - SearchFilterToolbar* _tmp27_; - GtkBox* _tmp28_; - GtkStack* _tmp29_; - GtkBox* _tmp30_; - GtkRevealer* _tmp31_; - GtkPaned* _tmp32_; - GtkPaned* _tmp33_; - GtkPaned* _tmp34_; - SidebarTree* _tmp35_; - GtkPaned* _tmp36_; - GtkBox* _tmp37_; - GtkPaned* _tmp38_; - ConfigFacade* _tmp39_; - ConfigFacade* _tmp40_; - GtkStack* _tmp41_; - gint _tmp42_; - gint _tmp43_; - GtkBox* _tmp44_; - GtkPaned* _tmp45_; - GtkBox* _tmp46_; -#line 1155 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1155 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_PAGE (start_page)); -#line 1158 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL); -#line 1158 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp0_); -#line 1158 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - scrolled_sidebar = _tmp0_; -#line 1159 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_scrolled_window_set_policy (scrolled_sidebar, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); -#line 1160 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = self->priv->sidebar_tree; -#line 1160 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (scrolled_sidebar, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 1162 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = self->priv->background_progress_frame; -#line 1162 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_container_get_type (), GtkContainer), (guint) 2); -#line 1163 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = self->priv->background_progress_frame; -#line 1163 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = self->priv->background_progress_bar; -#line 1163 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget)); -#line 1164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = self->priv->background_progress_frame; -#line 1164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = gtk_widget_get_style_context (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget)); -#line 1164 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_style_context_remove_class (_tmp6_, "frame"); -#line 1167 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = self->priv->basic_properties; -#line 1167 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_FILL); -#line 1168 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = self->priv->basic_properties; -#line 1168 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 1169 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = self->priv->basic_properties; -#line 1169 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 1170 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = self->priv->basic_properties; -#line 1170 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 1171 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = self->priv->basic_properties; -#line 1171 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), 10); -#line 1172 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = self->priv->basic_properties; -#line 1172 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), 10); -#line 1173 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = self->priv->basic_properties; -#line 1173 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_widget_get_type (), GtkWidget), 6); -#line 1174 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = self->priv->basic_properties; -#line 1174 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget), 0); -#line 1176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp15_ = self->priv->bottom_frame; -#line 1176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp16_ = self->priv->basic_properties; -#line 1176 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget)); -#line 1177 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp17_ = self->priv->bottom_frame; -#line 1177 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp18_ = gtk_widget_get_style_context (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget)); -#line 1177 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_style_context_remove_class (_tmp18_, "frame"); -#line 1181 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp19_ = self->priv->top_section; -#line 1181 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_box_pack_start (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (scrolled_sidebar, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 1183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp20_ = self->priv->sidebar_paned; -#line 1183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp21_ = self->priv->top_section; -#line 1183 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_paned_pack1 (_tmp20_, G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE); -#line 1184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp22_ = self->priv->sidebar_paned; -#line 1184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp23_ = self->priv->bottom_frame; -#line 1184 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_paned_pack2 (_tmp22_, G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE); -#line 1185 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp24_ = self->priv->sidebar_paned; -#line 1185 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_paned_set_position (_tmp24_, 1000); -#line 1187 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp25_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 1187 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp25_); -#line 1187 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->right_vbox); -#line 1187 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->right_vbox = _tmp25_; -#line 1188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp26_ = self->priv->right_vbox; -#line 1188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp27_ = self->priv->search_toolbar; -#line 1188 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_box_pack_start (_tmp26_, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 1189 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp28_ = self->priv->right_vbox; -#line 1189 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp29_ = self->priv->stack; -#line 1189 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_box_pack_start (_tmp28_, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 1190 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp30_ = self->priv->right_vbox; -#line 1190 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp31_ = self->priv->toolbar_revealer; -#line 1190 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_widget_get_type (), GtkWidget)); -#line 1192 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp32_ = (GtkPaned*) gtk_paned_new (GTK_ORIENTATION_HORIZONTAL); -#line 1192 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp32_); -#line 1192 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->client_paned); -#line 1192 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->client_paned = _tmp32_; -#line 1193 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp33_ = self->priv->client_paned; -#line 1193 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp34_ = self->priv->sidebar_paned; -#line 1193 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_paned_pack1 (_tmp33_, G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE); -#line 1194 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp35_ = self->priv->sidebar_tree; -#line 1194 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_widget_get_type (), GtkWidget), LIBRARY_WINDOW_SIDEBAR_MIN_WIDTH, -1); -#line 1195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp36_ = self->priv->client_paned; -#line 1195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp37_ = self->priv->right_vbox; -#line 1195 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_paned_pack2 (_tmp36_, G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_widget_get_type (), GtkWidget), TRUE, FALSE); -#line 1196 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp38_ = self->priv->client_paned; -#line 1196 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp39_ = config_facade_get_instance (); -#line 1196 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp40_ = _tmp39_; -#line 1196 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_paned_set_position (_tmp38_, configuration_facade_get_sidebar_position (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade))); -#line 1196 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp40_); -#line 1198 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp41_ = self->priv->stack; -#line 1198 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp42_ = library_window_get_PAGE_MIN_WIDTH (); -#line 1198 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp43_ = _tmp42_; -#line 1198 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_widget_get_type (), GtkWidget), _tmp43_, -1); -#line 1200 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp44_ = self->priv->layout; -#line 1200 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp45_ = self->priv->client_paned; -#line 1200 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_box_pack_end (_tmp44_, G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 1202 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp46_ = self->priv->layout; -#line 1202 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, gtk_widget_get_type (), GtkWidget)); -#line 1204 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_page (self, start_page); -#line 1205 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_grab_focus (G_TYPE_CHECK_INSTANCE_CAST (start_page, gtk_widget_get_type (), GtkWidget)); -#line 1155 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (scrolled_sidebar); -#line 7923 "LibraryWindow.c" -} - - -static void -library_window_real_set_current_page (PageWindow* base, - Page* page) -{ - LibraryWindow * self; -#line 1208 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 1208 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_PAGE (page)); -#line 1210 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_page (self, page); -#line 7938 "LibraryWindow.c" -} - - -void -library_window_set_page_switching_enabled (LibraryWindow* self, - gboolean should_enable) -{ -#line 1213 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1214 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->page_switching_enabled = should_enable; -#line 7950 "LibraryWindow.c" -} - - -void -library_window_switch_to_page (LibraryWindow* self, - Page* page) -{ - gboolean _tmp0_; - Page* _tmp1_; - Page* _tmp2_; - gboolean _tmp3_; - Page* current_page = NULL; - Page* _tmp4_; - Page* _tmp5_; - GtkStack* _tmp15_; - SidebarEntry* entry = NULL; - GeeHashMap* _tmp17_; - gpointer _tmp18_; - SidebarEntry* _tmp19_; - Page* _tmp29_; - Page* _tmp30_; - GMenuModel* _tmp31_; - GMenuModel* _tmp32_; - gboolean old = FALSE; - GtkSettings* _tmp33_; - gboolean _tmp34_; - gboolean _tmp35_; - GtkSettings* _tmp36_; - gboolean _tmp37_; - GtkSettings* _tmp38_; - gboolean _tmp39_; - GtkToolbar* toolbar = NULL; - GtkToolbar* _tmp40_; - GtkToolbar* _tmp41_; -#line 1217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_PAGE (page)); -#line 1218 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->page_switching_enabled; -#line 1218 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (!_tmp0_) { -#line 1219 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 7995 "LibraryWindow.c" - } -#line 1221 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 1221 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _tmp1_; -#line 1221 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = page == _tmp2_; -#line 1221 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp2_); -#line 1221 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp3_) { -#line 1222 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 8009 "LibraryWindow.c" - } -#line 1224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 1224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - current_page = _tmp4_; -#line 1225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = current_page; -#line 1225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp5_ != NULL) { -#line 8019 "LibraryWindow.c" - GtkToolbar* toolbar = NULL; - Page* _tmp6_; - GtkToolbar* _tmp7_; - GtkToolbar* _tmp8_; - Page* _tmp11_; - Page* _tmp12_; - Page* _tmp14_; -#line 1226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_application_window_set_show_menubar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), FALSE); -#line 1227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - application_set_menubar (NULL); -#line 1229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = current_page; -#line 1229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = page_get_toolbar (_tmp6_); -#line 1229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - toolbar = _tmp7_; -#line 1230 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = toolbar; -#line 1230 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp8_ != NULL) { -#line 8041 "LibraryWindow.c" - GtkRevealer* _tmp9_; - GtkToolbar* _tmp10_; -#line 1231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = self->priv->toolbar_revealer; -#line 1231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = toolbar; -#line 1231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget)); -#line 8050 "LibraryWindow.c" - } -#line 1233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = current_page; -#line 1233 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - page_switching_from (_tmp11_); -#line 1237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = current_page; -#line 1237 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, TYPE_LIBRARY_PHOTO_PAGE)) { -#line 8060 "LibraryWindow.c" - SidebarTree* _tmp13_; -#line 1238 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = self->priv->sidebar_tree; -#line 1238 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - sidebar_tree_enable_editing (_tmp13_); -#line 8066 "LibraryWindow.c" - } -#line 1241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = current_page; -#line 1241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_unsubscribe_from_basic_information (self, _tmp14_); -#line 1225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (toolbar); -#line 8074 "LibraryWindow.c" - } -#line 1244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp15_ = self->priv->stack; -#line 1244 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_stack_set_visible_child (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (page, gtk_widget_get_type (), GtkWidget)); -#line 1248 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - PAGE_WINDOW_CLASS (library_window_parent_class)->set_current_page (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), TYPE_PAGE_WINDOW, PageWindow), page); -#line 1254 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_LIBRARY_PHOTO_PAGE)) { -#line 8084 "LibraryWindow.c" - SidebarTree* _tmp16_; -#line 1255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp16_ = self->priv->sidebar_tree; -#line 1255 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - sidebar_tree_disable_editing (_tmp16_); -#line 8090 "LibraryWindow.c" - } -#line 1258 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_toggle_search_bar (self, library_window_should_show_search_bar (self), G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_CHECKERBOARD_PAGE) ? ((CheckerboardPage*) page) : NULL); -#line 1261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp17_ = self->priv->page_map; -#line 1261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp18_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), page); -#line 1261 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - entry = (SidebarEntry*) _tmp18_; -#line 1262 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp19_ = entry; -#line 1262 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp19_ != NULL) { -#line 8104 "LibraryWindow.c" - SidebarExpandableEntry* expandable_entry = NULL; - SidebarEntry* _tmp20_; - SidebarExpandableEntry* _tmp21_; - gboolean _tmp22_ = FALSE; - SidebarExpandableEntry* _tmp23_; - SidebarTree* _tmp27_; - SidebarEntry* _tmp28_; -#line 1265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp20_ = entry; -#line 1265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, SIDEBAR_TYPE_EXPANDABLE_ENTRY) ? ((SidebarExpandableEntry*) _tmp20_) : NULL); -#line 1265 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - expandable_entry = _tmp21_; -#line 1266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp23_ = expandable_entry; -#line 1266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp23_ != NULL) { -#line 8122 "LibraryWindow.c" - SidebarExpandableEntry* _tmp24_; -#line 1266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp24_ = expandable_entry; -#line 1266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp22_ = sidebar_expandable_entry_expand_on_select (_tmp24_); -#line 8128 "LibraryWindow.c" - } else { -#line 1266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp22_ = FALSE; -#line 8132 "LibraryWindow.c" - } -#line 1266 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp22_) { -#line 8136 "LibraryWindow.c" - SidebarTree* _tmp25_; - SidebarEntry* _tmp26_; -#line 1267 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp25_ = self->priv->sidebar_tree; -#line 1267 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp26_ = entry; -#line 1267 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - sidebar_tree_expand_to_entry (_tmp25_, _tmp26_); -#line 8145 "LibraryWindow.c" - } -#line 1269 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp27_ = self->priv->sidebar_tree; -#line 1269 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp28_ = entry; -#line 1269 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - sidebar_tree_place_cursor (_tmp27_, _tmp28_, TRUE); -#line 1262 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (expandable_entry); -#line 8155 "LibraryWindow.c" - } -#line 1272 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_update_properties (self); -#line 1274 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (page, TYPE_CHECKERBOARD_PAGE)) { -#line 1275 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_init_view_filter (self, G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_CHECKERBOARD_PAGE, CheckerboardPage)); -#line 8163 "LibraryWindow.c" - } -#line 1277 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (page, gtk_widget_get_type (), GtkWidget)); -#line 1280 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp29_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 1280 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp30_ = _tmp29_; -#line 1280 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_subscribe_for_basic_information (self, _tmp30_); -#line 1280 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp30_); -#line 1282 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - page_switched_to (page); -#line 1284 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp31_ = page_get_menubar (page); -#line 1284 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp32_ = _tmp31_; -#line 1284 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - application_set_menubar (_tmp32_); -#line 1284 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp32_); -#line 1285 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_application_window_set_show_menubar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_application_window_get_type (), GtkApplicationWindow), TRUE); -#line 1286 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp33_ = gtk_widget_get_settings (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 1286 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_get (_tmp33_, "gtk-shell-shows-menubar", &_tmp34_, NULL); -#line 1286 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp35_ = _tmp34_; -#line 1286 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - old = _tmp35_; -#line 1287 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp36_ = gtk_widget_get_settings (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 1287 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp37_ = old; -#line 1287 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_set (_tmp36_, "gtk-shell-shows-menubar", !_tmp37_, NULL); -#line 1288 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp38_ = gtk_widget_get_settings (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 1288 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp39_ = old; -#line 1288 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_set (_tmp38_, "gtk-shell-shows-menubar", _tmp39_, NULL); -#line 1290 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp40_ = page_get_toolbar (page); -#line 1290 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - toolbar = _tmp40_; -#line 1291 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp41_ = toolbar; -#line 1291 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp41_ != NULL) { -#line 8215 "LibraryWindow.c" - GtkRevealer* _tmp42_; - GtkToolbar* _tmp43_; - GtkToolbar* _tmp44_; - GtkRevealer* _tmp45_; -#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp42_ = self->priv->toolbar_revealer; -#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp43_ = toolbar; -#line 1292 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_widget_get_type (), GtkWidget)); -#line 1293 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp44_ = toolbar; -#line 1293 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_widget_get_type (), GtkWidget)); -#line 1294 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp45_ = self->priv->toolbar_revealer; -#line 1294 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_revealer_set_reveal_child (_tmp45_, library_window_is_toolbar_visible (self)); -#line 8234 "LibraryWindow.c" - } -#line 1297 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - page_ready (page); -#line 1217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (toolbar); -#line 1217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (entry); -#line 1217 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (current_page); -#line 8244 "LibraryWindow.c" -} - - -static void -library_window_init_view_filter (LibraryWindow* self, - CheckerboardPage* page) -{ - SearchFilterToolbar* _tmp0_; - SearchViewFilter* _tmp1_; - SearchViewFilter* _tmp2_; - ViewCollection* _tmp3_; - ViewCollection* _tmp4_; - SearchViewFilter* _tmp5_; - SearchViewFilter* _tmp6_; -#line 1300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1300 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_CHECKERBOARD_PAGE (page)); -#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->search_toolbar; -#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = checkerboard_page_get_search_view_filter (page); -#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _tmp1_; -#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - search_filter_toolbar_set_view_filter (_tmp0_, _tmp2_); -#line 1301 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _view_filter_unref0 (_tmp2_); -#line 1302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_PAGE, Page)); -#line 1302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = _tmp3_; -#line 1302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = checkerboard_page_get_search_view_filter (page); -#line 1302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = _tmp5_; -#line 1302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - view_collection_install_view_filter (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_VIEW_FILTER, ViewFilter)); -#line 1302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _view_filter_unref0 (_tmp6_); -#line 1302 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_tmp4_); -#line 8287 "LibraryWindow.c" -} - - -static gboolean -library_window_should_show_search_bar (LibraryWindow* self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - Page* _tmp1_; - Page* _tmp2_; - gboolean _tmp3_; -#line 1305 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail (IS_LIBRARY_WINDOW (self), FALSE); -#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _tmp1_; -#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, TYPE_CHECKERBOARD_PAGE); -#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp2_); -#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp3_) { -#line 8311 "LibraryWindow.c" - gboolean _tmp4_; -#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = self->priv->is_search_toolbar_visible; -#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = _tmp4_; -#line 8317 "LibraryWindow.c" - } else { -#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = FALSE; -#line 8321 "LibraryWindow.c" - } -#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = _tmp0_; -#line 1306 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 8327 "LibraryWindow.c" -} - - -static void -library_window_toggle_search_bar (LibraryWindow* self, - gboolean show, - CheckerboardPage* page) -{ - SearchFilterToolbar* _tmp0_; -#line 1310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1310 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail ((page == NULL) || IS_CHECKERBOARD_PAGE (page)); -#line 1311 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->search_toolbar; -#line 1311 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gtk_revealer_set_reveal_child (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_revealer_get_type (), GtkRevealer), show); -#line 1312 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (show) { -#line 8347 "LibraryWindow.c" - SearchFilterToolbar* _tmp1_; - SearchViewFilter* _tmp2_; - SearchViewFilter* _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - SearchViewFilter* _tmp6_; - SearchViewFilter* _tmp7_; -#line 1313 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_assert (NULL != page, "null != page"); -#line 1314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = self->priv->search_toolbar; -#line 1314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = checkerboard_page_get_search_view_filter (page); -#line 1314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = _tmp2_; -#line 1314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - search_filter_toolbar_set_view_filter (_tmp1_, _tmp3_); -#line 1314 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _view_filter_unref0 (_tmp3_); -#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_PAGE, Page)); -#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = _tmp4_; -#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = checkerboard_page_get_search_view_filter (page); -#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = _tmp6_; -#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - view_collection_install_view_filter (_tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_VIEW_FILTER, ViewFilter)); -#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _view_filter_unref0 (_tmp7_); -#line 1315 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_tmp5_); -#line 8381 "LibraryWindow.c" - } else { -#line 1317 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (page != NULL) { -#line 8385 "LibraryWindow.c" - ViewCollection* _tmp8_; - ViewCollection* _tmp9_; - DisabledViewFilter* _tmp10_; - DisabledViewFilter* _tmp11_; -#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (page, TYPE_PAGE, Page)); -#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = _tmp8_; -#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = disabled_view_filter_new (); -#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = _tmp10_; -#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - view_collection_install_view_filter (_tmp9_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_VIEW_FILTER, ViewFilter)); -#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _view_filter_unref0 (_tmp11_); -#line 1318 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (_tmp9_); -#line 8404 "LibraryWindow.c" - } - } -} - - -static void -library_window_on_page_created (LibraryWindow* self, - SidebarPageRepresentative* entry, - Page* page) -{ - GeeHashMap* _tmp0_; - GeeHashMap* _tmp1_; -#line 1322 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1322 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (SIDEBAR_IS_PAGE_REPRESENTATIVE (entry)); -#line 1322 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_PAGE (page)); -#line 1323 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->page_map; -#line 1323 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), page), "!page_map.has_key(page)"); -#line 1324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = self->priv->page_map; -#line 1324 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), page, G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 1326 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_add_to_stack (self, page); -#line 8433 "LibraryWindow.c" -} - - -static void -library_window_on_destroying_page (LibraryWindow* self, - SidebarPageRepresentative* entry, - Page* page) -{ - Page* _tmp0_; - Page* _tmp1_; - gboolean _tmp2_; - gboolean removed = FALSE; - GeeHashMap* _tmp8_; - gboolean _tmp9_; -#line 1329 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1329 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (SIDEBAR_IS_PAGE_REPRESENTATIVE (entry)); -#line 1329 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_PAGE (page)); -#line 1331 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 1331 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 1331 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = page == _tmp1_; -#line 1331 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 1331 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp2_) { -#line 8464 "LibraryWindow.c" - LibraryBranch* _tmp3_; - LibraryPhotosEntry* _tmp4_; - LibraryPhotosEntry* _tmp5_; - Page* _tmp6_; - Page* _tmp7_; -#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = self->priv->library_branch; -#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = library_branch_get_photos_entry (_tmp3_); -#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = _tmp4_; -#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = _tmp6_; -#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_page (self, _tmp7_); -#line 1332 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp7_); -#line 8484 "LibraryWindow.c" - } -#line 1334 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_remove_from_stack (self, page); -#line 1336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = self->priv->page_map; -#line 1336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), page, NULL); -#line 1336 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - removed = _tmp9_; -#line 1337 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _vala_assert (removed, "removed"); -#line 8496 "LibraryWindow.c" -} - - -static void -library_window_on_sidebar_entry_selected (LibraryWindow* self, - SidebarSelectableEntry* selectable) -{ - SidebarPageRepresentative* page_rep = NULL; - SidebarPageRepresentative* _tmp0_; - SidebarPageRepresentative* _tmp1_; -#line 1340 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1340 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (SIDEBAR_IS_SELECTABLE_ENTRY (selectable)); -#line 1341 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (selectable, SIDEBAR_TYPE_PAGE_REPRESENTATIVE) ? ((SidebarPageRepresentative*) selectable) : NULL); -#line 1341 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - page_rep = _tmp0_; -#line 1342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = page_rep; -#line 1342 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp1_ != NULL) { -#line 8519 "LibraryWindow.c" - SidebarPageRepresentative* _tmp2_; - Page* _tmp3_; - Page* _tmp4_; -#line 1343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = page_rep; -#line 1343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = sidebar_page_representative_get_page (_tmp2_); -#line 1343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = _tmp3_; -#line 1343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_page (self, _tmp4_); -#line 1343 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp4_); -#line 8533 "LibraryWindow.c" - } -#line 1340 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (page_rep); -#line 8537 "LibraryWindow.c" -} - - -static void -library_window_on_sidebar_selected_entry_removed (LibraryWindow* self, - SidebarSelectableEntry* selectable) -{ - LibraryLastImportSidebarEntry* last_import_entry = NULL; - LibraryBranch* _tmp0_; - LibraryLastImportSidebarEntry* _tmp1_; - LibraryLastImportSidebarEntry* _tmp2_; - LibraryLastImportSidebarEntry* _tmp3_; - gboolean _tmp4_ = FALSE; - gboolean _tmp11_ = FALSE; - gboolean _tmp18_ = FALSE; - LibraryBranch* _tmp25_; - LibraryPhotosEntry* _tmp26_; - LibraryPhotosEntry* _tmp27_; - Page* _tmp28_; - Page* _tmp29_; -#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (SIDEBAR_IS_SELECTABLE_ENTRY (selectable)); -#line 1350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->library_branch; -#line 1350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = library_branch_get_last_imported_entry (_tmp0_); -#line 1350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _tmp1_; -#line 1350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 1350 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - last_import_entry = _tmp3_; -#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (selectable, LIBRARY_TYPE_IMPORT_QUEUE_SIDEBAR_ENTRY)) { -#line 8574 "LibraryWindow.c" - LibraryLastImportSidebarEntry* _tmp5_; - gboolean _tmp6_; - gboolean _tmp7_; -#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = last_import_entry; -#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = library_hideable_page_entry_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry)); -#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = _tmp6_; -#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = _tmp7_; -#line 8586 "LibraryWindow.c" - } else { -#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = FALSE; -#line 8590 "LibraryWindow.c" - } -#line 1353 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp4_) { -#line 8594 "LibraryWindow.c" - LibraryLastImportSidebarEntry* _tmp8_; - Page* _tmp9_; - Page* _tmp10_; -#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = last_import_entry; -#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = _tmp9_; -#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_page (self, _tmp10_); -#line 1354 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp10_); -#line 1356 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (last_import_entry); -#line 1356 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 8612 "LibraryWindow.c" - } -#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (selectable, EVENTS_TYPE_EVENT_ENTRY)) { -#line 8616 "LibraryWindow.c" - EventsBranch* _tmp12_; -#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = self->priv->events_branch; -#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = sidebar_branch_get_show_branch (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 8622 "LibraryWindow.c" - } else { -#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = FALSE; -#line 8626 "LibraryWindow.c" - } -#line 1360 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp11_) { -#line 8630 "LibraryWindow.c" - EventsBranch* _tmp13_; - EventsMasterDirectoryEntry* _tmp14_; - EventsMasterDirectoryEntry* _tmp15_; - Page* _tmp16_; - Page* _tmp17_; -#line 1361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = self->priv->events_branch; -#line 1361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = events_branch_get_master_entry (_tmp13_); -#line 1361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp15_ = _tmp14_; -#line 1361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp16_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 1361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp17_ = _tmp16_; -#line 1361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_page (self, _tmp17_); -#line 1361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp17_); -#line 1361 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp15_); -#line 1363 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (last_import_entry); -#line 1363 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 8656 "LibraryWindow.c" - } -#line 1367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (selectable, EVENTS_TYPE_DIRECTORY_ENTRY)) { -#line 8660 "LibraryWindow.c" - EventsBranch* _tmp19_; -#line 1367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp19_ = self->priv->events_branch; -#line 1367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp18_ = sidebar_branch_get_show_branch (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 8666 "LibraryWindow.c" - } else { -#line 1367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp18_ = FALSE; -#line 8670 "LibraryWindow.c" - } -#line 1367 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp18_) { -#line 8674 "LibraryWindow.c" - EventsBranch* _tmp20_; - EventsMasterDirectoryEntry* _tmp21_; - EventsMasterDirectoryEntry* _tmp22_; - Page* _tmp23_; - Page* _tmp24_; -#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp20_ = self->priv->events_branch; -#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp21_ = events_branch_get_master_entry (_tmp20_); -#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp22_ = _tmp21_; -#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp23_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp24_ = _tmp23_; -#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_page (self, _tmp24_); -#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp24_); -#line 1368 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp22_); -#line 1370 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (last_import_entry); -#line 1370 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 8700 "LibraryWindow.c" - } -#line 1374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp25_ = self->priv->library_branch; -#line 1374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp26_ = library_branch_get_photos_entry (_tmp25_); -#line 1374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp27_ = _tmp26_; -#line 1374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp28_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 1374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp29_ = _tmp28_; -#line 1374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_switch_to_page (self, _tmp29_); -#line 1374 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp29_); -#line 1346 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (last_import_entry); -#line 8718 "LibraryWindow.c" -} - - -static void -_library_window_on_update_properties_view_collection_items_state_changed (ViewCollection* _sender, - GeeIterable* changed, - gpointer self) -{ -#line 1380 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_update_properties ((LibraryWindow*) self); -#line 8729 "LibraryWindow.c" -} - - -static void -_library_window_on_update_properties_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 1381 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_update_properties ((LibraryWindow*) self); -#line 8740 "LibraryWindow.c" -} - - -static void -_library_window_on_update_properties_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self) -{ -#line 1382 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_update_properties ((LibraryWindow*) self); -#line 8752 "LibraryWindow.c" -} - - -static void -_library_window_on_update_properties_view_collection_items_visibility_changed (ViewCollection* _sender, - GeeCollection* changed, - gpointer self) -{ -#line 1383 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_update_properties ((LibraryWindow*) self); -#line 8763 "LibraryWindow.c" -} - - -static void -library_window_subscribe_for_basic_information (LibraryWindow* self, - Page* page) -{ - ViewCollection* view = NULL; - ViewCollection* _tmp0_; -#line 1377 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1377 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_PAGE (page)); -#line 1378 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = page_get_view (page); -#line 1378 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - view = _tmp0_; -#line 1380 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (view, "items-state-changed", (GCallback) _library_window_on_update_properties_view_collection_items_state_changed, self, 0); -#line 1381 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _library_window_on_update_properties_data_collection_items_altered, self, 0); -#line 1382 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _library_window_on_update_properties_data_collection_contents_altered, self, 0); -#line 1383 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_connect_object (view, "items-visibility-changed", (GCallback) _library_window_on_update_properties_view_collection_items_visibility_changed, self, 0); -#line 1377 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 8791 "LibraryWindow.c" -} - - -static void -library_window_unsubscribe_from_basic_information (LibraryWindow* self, - Page* page) -{ - ViewCollection* view = NULL; - ViewCollection* _tmp0_; - guint _tmp1_; - guint _tmp2_; - guint _tmp3_; - guint _tmp4_; -#line 1386 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1386 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_PAGE (page)); -#line 1387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = page_get_view (page); -#line 1387 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - view = _tmp0_; -#line 1389 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("items-state-changed", TYPE_VIEW_COLLECTION, &_tmp1_, NULL, FALSE); -#line 1389 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (view, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _library_window_on_update_properties_view_collection_items_state_changed, self); -#line 1390 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp2_, NULL, FALSE); -#line 1390 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _library_window_on_update_properties_data_collection_items_altered, self); -#line 1391 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE); -#line 1391 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (view, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _library_window_on_update_properties_data_collection_contents_altered, self); -#line 1392 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("items-visibility-changed", TYPE_VIEW_COLLECTION, &_tmp4_, NULL, FALSE); -#line 1392 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (view, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _library_window_on_update_properties_view_collection_items_visibility_changed, self); -#line 1386 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (view); -#line 8831 "LibraryWindow.c" -} - - -static void -library_window_on_update_properties (LibraryWindow* self) -{ - OneShotScheduler* _tmp0_; -#line 1395 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1396 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->properties_scheduler; -#line 1396 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - one_shot_scheduler_at_idle (_tmp0_); -#line 8845 "LibraryWindow.c" -} - - -static void -library_window_on_update_properties_now (LibraryWindow* self) -{ - GtkFrame* _tmp0_; - gboolean _tmp1_; - gboolean _tmp2_; - ExtendedPropertiesWindow* _tmp6_; - gboolean _tmp7_; - gboolean _tmp8_; -#line 1399 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->bottom_frame; -#line 1400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 1400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _tmp1_; -#line 1400 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp2_) { -#line 8868 "LibraryWindow.c" - BasicProperties* _tmp3_; - Page* _tmp4_; - Page* _tmp5_; -#line 1401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = self->priv->basic_properties; -#line 1401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 1401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = _tmp4_; -#line 1401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - properties_update_properties (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PROPERTIES, Properties), _tmp5_); -#line 1401 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp5_); -#line 8882 "LibraryWindow.c" - } -#line 1403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = self->priv->extended_properties; -#line 1403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = gtk_widget_get_visible (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget)); -#line 1403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = _tmp7_; -#line 1403 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp8_) { -#line 8892 "LibraryWindow.c" - ExtendedPropertiesWindow* _tmp9_; - Page* _tmp10_; - Page* _tmp11_; -#line 1404 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = self->priv->extended_properties; -#line 1404 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 1404 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = _tmp10_; -#line 1404 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - extended_properties_window_update_properties (_tmp9_, _tmp11_); -#line 1404 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp11_); -#line 8906 "LibraryWindow.c" - } -} - - -static gchar* -string_replace (const gchar* self, - const gchar* old, - const gchar* replacement) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 8930 "LibraryWindow.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 8934 "LibraryWindow.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 8940 "LibraryWindow.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 8944 "LibraryWindow.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 8948 "LibraryWindow.c" - gchar* _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = g_strdup (self); -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 8956 "LibraryWindow.c" - } - { - GRegex* regex = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GRegex* _tmp5_; - GRegex* _tmp6_; - gchar* _tmp7_ = NULL; - GRegex* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_regex_escape_string (old, -1); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp5_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp4_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - regex = _tmp6_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 8984 "LibraryWindow.c" - goto __catch48_g_regex_error; - } -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 8993 "LibraryWindow.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = regex; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp9_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 9007 "LibraryWindow.c" - goto __catch48_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 9018 "LibraryWindow.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = _tmp7_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = NULL; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp10_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp7_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 9032 "LibraryWindow.c" - } - goto __finally48; - __catch48_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 9046 "LibraryWindow.c" - } - __finally48: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 9057 "LibraryWindow.c" - } -} - - -void -library_window_mounted_camera_shell_notification (LibraryWindow* self, - const gchar* uri, - gboolean at_startup) -{ - GFile* uri_file = NULL; - GFile* _tmp0_; - GMount* mount = NULL; - gchar* alt_uri = NULL; - GError * _inner_error_ = NULL; -#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (IS_LIBRARY_WINDOW (self)); -#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (uri != NULL); -#line 1408 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:1408: mount point reported: %s", uri); -#line 1411 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (!library_window_is_mount_uri_supported (uri)) { -#line 1412 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:1412: Unsupported mount scheme: %s", uri); -#line 1414 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 9084 "LibraryWindow.c" - } -#line 1417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = g_file_new_for_uri (uri); -#line 1417 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - uri_file = _tmp0_; -#line 1420 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - mount = NULL; -#line 9092 "LibraryWindow.c" - { - GMount* _tmp1_ = NULL; - GFile* _tmp2_; - GMount* _tmp3_; - GMount* _tmp4_; -#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = uri_file; -#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = g_file_find_enclosing_mount (_tmp2_, NULL, &_inner_error_); -#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp3_; -#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9106 "LibraryWindow.c" - goto __catch47_g_error; - } -#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = _tmp1_; -#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = NULL; -#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (mount); -#line 1422 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - mount = _tmp4_; -#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp1_); -#line 9119 "LibraryWindow.c" - } - goto __finally47; - __catch47_g_error: - { - GError* err = NULL; - GError* _tmp5_; - const gchar* _tmp6_; -#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - err = _inner_error_; -#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _inner_error_ = NULL; -#line 1424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = err; -#line 1424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = _tmp5_->message; -#line 1424 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_debug ("LibraryWindow.vala:1424: %s", _tmp6_); -#line 1426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_error_free0 (err); -#line 1426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (mount); -#line 1426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (uri_file); -#line 1426 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 9145 "LibraryWindow.c" - } - __finally47: -#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (mount); -#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (uri_file); -#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_clear_error (&_inner_error_); -#line 1421 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return; -#line 9160 "LibraryWindow.c" - } -#line 1430 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - alt_uri = NULL; -#line 1431 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (g_str_has_prefix (uri, "file://")) { -#line 9166 "LibraryWindow.c" - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = string_replace (uri, "file://", "disk:"); -#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = _tmp7_; -#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = camera_table_get_port_uri (_tmp8_); -#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (alt_uri); -#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - alt_uri = _tmp9_; -#line 1432 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (_tmp8_); -#line 9182 "LibraryWindow.c" - } -#line 1435 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (at_startup) { -#line 9186 "LibraryWindow.c" - const gchar* _tmp11_; -#line 1436 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (!is_string_empty (uri)) { -#line 9190 "LibraryWindow.c" - GeeHashSet* _tmp10_; -#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = library_window_initial_camera_uris; -#line 1437 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), uri); -#line 9196 "LibraryWindow.c" - } -#line 1439 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = alt_uri; -#line 1439 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (!is_string_empty (_tmp11_)) { -#line 9202 "LibraryWindow.c" - GeeHashSet* _tmp12_; - const gchar* _tmp13_; -#line 1440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = library_window_initial_camera_uris; -#line 1440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = alt_uri; -#line 1440 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp13_); -#line 9211 "LibraryWindow.c" - } - } -#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (alt_uri); -#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (mount); -#line 1407 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (uri_file); -#line 9220 "LibraryWindow.c" -} - - -static gboolean -library_window_real_key_press_event (GtkWidget* base, - GdkEventKey* event) -{ - LibraryWindow * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - SidebarTree* _tmp2_; - gboolean _tmp3_; - gboolean _tmp4_; - guint _tmp8_; - const gchar* _tmp9_; -#line 1444 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 1444 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = self->priv->sidebar_tree; -#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), "has-focus", &_tmp3_, NULL); -#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = _tmp3_; -#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp4_) { -#line 9249 "LibraryWindow.c" - SidebarTree* _tmp5_; -#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = self->priv->sidebar_tree; -#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = sidebar_tree_is_keypress_interpreted (_tmp5_, event); -#line 9255 "LibraryWindow.c" - } else { -#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = FALSE; -#line 9259 "LibraryWindow.c" - } -#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp1_) { -#line 9263 "LibraryWindow.c" - SidebarTree* _tmp6_; - gboolean _tmp7_ = FALSE; -#line 1446 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = self->priv->sidebar_tree; -#line 1446 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget), "key-press-event", event, &_tmp7_); -#line 1446 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = _tmp7_; -#line 9272 "LibraryWindow.c" - } else { -#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = FALSE; -#line 9276 "LibraryWindow.c" - } -#line 1445 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp0_) { -#line 1447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = TRUE; -#line 1447 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 9284 "LibraryWindow.c" - } -#line 1450 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (GTK_WIDGET_CLASS (library_window_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_APP_WINDOW, AppWindow), gtk_widget_get_type (), GtkWidget), event)) { -#line 1451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = TRUE; -#line 1451 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 9292 "LibraryWindow.c" - } -#line 1453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = event->keyval; -#line 1453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = gdk_keyval_name (_tmp8_); -#line 1453 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (g_strcmp0 (_tmp9_, "Escape") == 0) { -#line 1454 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_clear_search (self); -#line 1455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = TRUE; -#line 1455 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 9306 "LibraryWindow.c" - } -#line 1458 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = FALSE; -#line 1458 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 9312 "LibraryWindow.c" -} - - -gint -library_window_get_PAGE_MIN_WIDTH (void) -{ - gint result; - gint _tmp0_; - gint _tmp1_; -#line 12 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = thumbnail_get_MAX_SCALE (); -#line 12 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _tmp0_; -#line 12 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - result = _tmp1_ + (CHECKERBOARD_LAYOUT_COLUMN_GUTTER_PADDING * 2); -#line 12 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return result; -#line 9330 "LibraryWindow.c" -} - - -static gpointer -_data_collection_ref0 (gpointer self) -{ -#line 79 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return self ? data_collection_ref (self) : NULL; -#line 9339 "LibraryWindow.c" -} - - -static LibraryWindowFullscreenPhotoPage* -library_window_fullscreen_photo_page_construct (GType object_type, - CollectionPage* collection, - Photo* start, - ViewCollection* view) -{ - LibraryWindowFullscreenPhotoPage * self = NULL; - CollectionPage* _tmp0_; - Photo* _tmp1_; - ViewCollection* _tmp2_; -#line 76 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail (IS_COLLECTION_PAGE (collection), NULL); -#line 76 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail (IS_PHOTO (start), NULL); -#line 76 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_val_if_fail ((view == NULL) || IS_VIEW_COLLECTION (view), NULL); -#line 76 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = (LibraryWindowFullscreenPhotoPage*) library_photo_page_construct (object_type); -#line 77 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = _g_object_ref0 (collection); -#line 77 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->collection); -#line 77 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->collection = _tmp0_; -#line 78 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = _g_object_ref0 (start); -#line 78 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->start); -#line 78 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->start = _tmp1_; -#line 79 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = _data_collection_ref0 (view); -#line 79 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (self->priv->view); -#line 79 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->view = _tmp2_; -#line 76 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return self; -#line 9381 "LibraryWindow.c" -} - - -static LibraryWindowFullscreenPhotoPage* -library_window_fullscreen_photo_page_new (CollectionPage* collection, - Photo* start, - ViewCollection* view) -{ -#line 76 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - return library_window_fullscreen_photo_page_construct (LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, collection, start, view); -#line 9392 "LibraryWindow.c" -} - - -static void -library_window_fullscreen_photo_page_real_switched_to (Page* base) -{ - LibraryWindowFullscreenPhotoPage * self; - CollectionPage* _tmp0_; - Photo* _tmp1_; - ViewCollection* _tmp2_; -#line 82 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPage); -#line 83 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->collection; -#line 83 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = self->priv->start; -#line 83 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = self->priv->view; -#line 83 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_photo_page_display_for_collection (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage), _tmp0_, _tmp1_, _tmp2_); -#line 85 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - PAGE_CLASS (library_window_fullscreen_photo_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_LIBRARY_PHOTO_PAGE, LibraryPhotoPage), TYPE_PAGE, Page)); -#line 9415 "LibraryWindow.c" -} - - -static void -library_window_fullscreen_photo_page_real_switching_from (Page* base) -{ - LibraryWindowFullscreenPhotoPage * self; -#line 88 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPage); -#line 9425 "LibraryWindow.c" -} - - -static void -library_window_fullscreen_photo_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames) -{ - LibraryWindowFullscreenPhotoPage * self; -#line 91 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPage); -#line 91 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 94 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "photo_context.ui"); -#line 9440 "LibraryWindow.c" -} - - -static void -library_window_fullscreen_photo_page_class_init (LibraryWindowFullscreenPhotoPageClass * klass) -{ -#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_fullscreen_photo_page_parent_class = g_type_class_peek_parent (klass); -#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_type_class_add_private (klass, sizeof (LibraryWindowFullscreenPhotoPagePrivate)); -#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - ((PageClass *) klass)->switched_to = (void (*) (Page *)) library_window_fullscreen_photo_page_real_switched_to; -#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - ((PageClass *) klass)->switching_from = (void (*) (Page *)) library_window_fullscreen_photo_page_real_switching_from; -#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) library_window_fullscreen_photo_page_real_init_collect_ui_filenames; -#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - G_OBJECT_CLASS (klass)->finalize = library_window_fullscreen_photo_page_finalize; -#line 9459 "LibraryWindow.c" -} - - -static void -library_window_fullscreen_photo_page_instance_init (LibraryWindowFullscreenPhotoPage * self) -{ -#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv = LIBRARY_WINDOW_FULLSCREEN_PHOTO_PAGE_GET_PRIVATE (self); -#line 9468 "LibraryWindow.c" -} - - -static void -library_window_fullscreen_photo_page_finalize (GObject * obj) -{ - LibraryWindowFullscreenPhotoPage * self; -#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_WINDOW_TYPE_FULLSCREEN_PHOTO_PAGE, LibraryWindowFullscreenPhotoPage); -#line 72 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->collection); -#line 73 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->start); -#line 74 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (self->priv->view); -#line 71 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - G_OBJECT_CLASS (library_window_fullscreen_photo_page_parent_class)->finalize (obj); -#line 9486 "LibraryWindow.c" -} - - -static GType -library_window_fullscreen_photo_page_get_type (void) -{ - static volatile gsize library_window_fullscreen_photo_page_type_id__volatile = 0; - if (g_once_init_enter (&library_window_fullscreen_photo_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryWindowFullscreenPhotoPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_window_fullscreen_photo_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryWindowFullscreenPhotoPage), 0, (GInstanceInitFunc) library_window_fullscreen_photo_page_instance_init, NULL }; - GType library_window_fullscreen_photo_page_type_id; - library_window_fullscreen_photo_page_type_id = g_type_register_static (TYPE_LIBRARY_PHOTO_PAGE, "LibraryWindowFullscreenPhotoPage", &g_define_type_info, 0); - g_once_init_leave (&library_window_fullscreen_photo_page_type_id__volatile, library_window_fullscreen_photo_page_type_id); - } - return library_window_fullscreen_photo_page_type_id__volatile; -} - - -static void -library_window_class_init (LibraryWindowClass * klass) -{ - GeeHashSet* _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_type_class_add_private (klass, sizeof (LibraryWindowPrivate)); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - ((AppWindowClass *) klass)->add_actions = (void (*) (AppWindow *)) library_window_real_add_actions; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - ((PageWindowClass *) klass)->switched_pages = (void (*) (PageWindow *, Page*, Page*)) library_window_real_switched_pages; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - ((GtkWidgetClass *) klass)->show_all = (void (*) (GtkWidget *)) library_window_real_show_all; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - ((AppWindowClass *) klass)->get_app_role = (gchar* (*) (AppWindow *)) library_window_real_get_app_role; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - ((AppWindowClass *) klass)->on_quit = (void (*) (AppWindow *)) library_window_real_on_quit; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - ((AppWindowClass *) klass)->on_fullscreen = (void (*) (AppWindow *)) library_window_real_on_fullscreen; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - ((AppWindowClass *) klass)->update_common_action_availability = (void (*) (AppWindow *, Page*, Page*)) library_window_real_update_common_action_availability; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - ((AppWindowClass *) klass)->update_common_actions = (void (*) (AppWindow *, Page*, gint, gint)) library_window_real_update_common_actions; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - ((GtkWidgetClass *) klass)->drag_motion = (gboolean (*) (GtkWidget *, GdkDragContext*, gint, gint, guint)) library_window_real_drag_motion; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - ((GtkWidgetClass *) klass)->drag_data_received = (void (*) (GtkWidget *, GdkDragContext*, gint, gint, GtkSelectionData*, guint, guint)) library_window_real_drag_data_received; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - ((PageWindowClass *) klass)->set_current_page = (void (*) (PageWindow *, Page*)) library_window_real_set_current_page; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) library_window_real_key_press_event; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_library_window_get_property; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - G_OBJECT_CLASS (klass)->finalize = library_window_finalize; -#line 123 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 123 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_initial_camera_uris = _tmp0_; -#line 9544 "LibraryWindow.c" -} - - -static void -library_window_instance_init (LibraryWindow * self) -{ - const gchar* _tmp0_; - gchar* _tmp1_; - GtkPaned* _tmp2_; - GtkPaned* _tmp3_; - GtkFrame* _tmp4_; - LibraryBranch* _tmp5_; - TagsBranch* _tmp6_; - FoldersBranch* _tmp7_; - EventsBranch* _tmp8_; - CameraBranch* _tmp9_; - SearchesBranch* _tmp10_; - GeeHashMap* _tmp11_; - SearchFilterActions* _tmp12_; - GtkBox* _tmp13_; - GtkFrame* _tmp14_; - GtkProgressBar* _tmp15_; - BasicProperties* _tmp16_; - GtkStack* _tmp17_; - GtkBox* _tmp18_; - GtkRevealer* _tmp19_; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv = LIBRARY_WINDOW_GET_PRIVATE (self); -#line 98 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = g_get_home_dir (); -#line 98 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 98 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->import_dir = _tmp1_; -#line 99 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->import_recursive = TRUE; -#line 101 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = (GtkPaned*) gtk_paned_new (GTK_ORIENTATION_VERTICAL); -#line 101 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp2_); -#line 101 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->sidebar_paned = _tmp2_; -#line 102 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp3_ = (GtkPaned*) gtk_paned_new (GTK_ORIENTATION_HORIZONTAL); -#line 102 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp3_); -#line 102 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->client_paned = _tmp3_; -#line 103 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = (GtkFrame*) gtk_frame_new (NULL); -#line 103 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp4_); -#line 103 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->bottom_frame = _tmp4_; -#line 105 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->properties_scheduler = NULL; -#line 106 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->notify_library_is_home_dir = TRUE; -#line 110 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp5_ = library_branch_new (); -#line 110 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->library_branch = _tmp5_; -#line 111 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = tags_branch_new (); -#line 111 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->tags_branch = _tmp6_; -#line 112 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp7_ = folders_branch_new (); -#line 112 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->folders_branch = _tmp7_; -#line 113 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = events_branch_new (); -#line 113 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->events_branch = _tmp8_; -#line 114 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = camera_branch_new (); -#line 114 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->camera_branch = _tmp9_; -#line 115 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = searches_branch_new (); -#line 115 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->saved_search_branch = _tmp10_; -#line 116 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->page_switching_enabled = TRUE; -#line 118 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp11_ = gee_hash_map_new (TYPE_PAGE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, SIDEBAR_TYPE_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 118 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->page_map = _tmp11_; -#line 120 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->photo_page = NULL; -#line 125 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->is_search_toolbar_visible = FALSE; -#line 130 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = search_filter_actions_new (); -#line 130 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->search_actions = _tmp12_; -#line 133 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp13_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 133 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp13_); -#line 133 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->top_section = _tmp13_; -#line 134 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = (GtkFrame*) gtk_frame_new (NULL); -#line 134 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp14_); -#line 134 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->background_progress_frame = _tmp14_; -#line 135 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp15_ = (GtkProgressBar*) gtk_progress_bar_new (); -#line 135 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp15_); -#line 135 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->background_progress_bar = _tmp15_; -#line 136 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->background_progress_displayed = FALSE; -#line 138 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp16_ = basic_properties_new (); -#line 138 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp16_); -#line 138 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->basic_properties = _tmp16_; -#line 141 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp17_ = (GtkStack*) gtk_stack_new (); -#line 141 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp17_); -#line 141 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->stack = _tmp17_; -#line 142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp18_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp18_); -#line 142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->layout = _tmp18_; -#line 144 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp19_ = (GtkRevealer*) gtk_revealer_new (); -#line 144 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_object_ref_sink (_tmp19_); -#line 144 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->toolbar_revealer = _tmp19_; -#line 146 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->current_progress_priority = 0; -#line 147 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self->priv->background_progress_pulse_id = (guint) 0; -#line 9689 "LibraryWindow.c" -} - - -static void -library_window_finalize (GObject * obj) -{ - LibraryWindow * self; - SidebarTree* _tmp0_; - guint _tmp1_; - SidebarTree* _tmp2_; - guint _tmp3_; - SidebarTree* _tmp4_; - guint _tmp5_; - SidebarTree* _tmp6_; - guint _tmp7_; - Page* _tmp8_; - Page* _tmp9_; - ExtendedPropertiesWindow* _tmp10_; - guint _tmp11_; - ExtendedPropertiesWindow* _tmp12_; - guint _tmp13_; - MetadataWriter* _tmp27_; - MetadataWriter* _tmp28_; - guint _tmp29_; - LibraryMonitor* monitor = NULL; - LibraryMonitorPool* _tmp30_; - LibraryMonitorPool* _tmp31_; - LibraryMonitor* _tmp32_; - LibraryMonitor* _tmp33_; - LibraryMonitor* _tmp34_; - LibraryMonitorPool* _tmp36_; - LibraryMonitorPool* _tmp37_; - guint _tmp38_; - LibraryMonitorPool* _tmp39_; - LibraryMonitorPool* _tmp40_; - guint _tmp41_; - CameraTable* _tmp42_; - CameraTable* _tmp43_; - guint _tmp44_; -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp0_ = self->priv->sidebar_tree; -#line 224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("page-created", SIDEBAR_TYPE_TREE, &_tmp1_, NULL, FALSE); -#line 224 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (_tmp0_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _library_window_on_page_created_sidebar_tree_page_created, self); -#line 225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp2_ = self->priv->sidebar_tree; -#line 225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("destroying-page", SIDEBAR_TYPE_TREE, &_tmp3_, NULL, FALSE); -#line 225 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _library_window_on_destroying_page_sidebar_tree_destroying_page, self); -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp4_ = self->priv->sidebar_tree; -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("entry-selected", SIDEBAR_TYPE_TREE, &_tmp5_, NULL, FALSE); -#line 226 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _library_window_on_sidebar_entry_selected_sidebar_tree_entry_selected, self); -#line 227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp6_ = self->priv->sidebar_tree; -#line 227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("selected-entry-removed", SIDEBAR_TYPE_TREE, &_tmp7_, NULL, FALSE); -#line 227 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _library_window_on_sidebar_selected_entry_removed_sidebar_tree_selected_entry_removed, self); -#line 229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp8_ = page_window_get_current_page (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE_WINDOW, PageWindow)); -#line 229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp9_ = _tmp8_; -#line 229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_unsubscribe_from_basic_information (self, _tmp9_); -#line 229 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp9_); -#line 231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp10_ = self->priv->extended_properties; -#line 231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("hide", gtk_widget_get_type (), &_tmp11_, NULL, FALSE); -#line 231 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) _library_window_hide_extended_properties_gtk_widget_hide, self); -#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp12_ = self->priv->extended_properties; -#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("show", gtk_widget_get_type (), &_tmp13_, NULL, FALSE); -#line 232 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp13_, 0, NULL, (GCallback) _library_window_show_extended_properties_gtk_widget_show, self); -#line 9775 "LibraryWindow.c" - { - GeeIterator* _media_sources_it = NULL; - MediaCollectionRegistry* _tmp14_; - MediaCollectionRegistry* _tmp15_; - GeeCollection* _tmp16_; - GeeCollection* _tmp17_; - GeeIterator* _tmp18_; - GeeIterator* _tmp19_; -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp14_ = media_collection_registry_get_instance (); -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp15_ = _tmp14_; -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp16_ = media_collection_registry_get_all (_tmp15_); -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp17_ = _tmp16_; -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp18_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp19_ = _tmp18_; -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp17_); -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _media_collection_registry_unref0 (_tmp15_); -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _media_sources_it = _tmp19_; -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - while (TRUE) { -#line 9804 "LibraryWindow.c" - GeeIterator* _tmp20_; - MediaSourceCollection* media_sources = NULL; - GeeIterator* _tmp21_; - gpointer _tmp22_; - MediaSourceCollection* _tmp23_; - guint _tmp24_; - MediaSourceCollection* _tmp25_; - guint _tmp26_; -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp20_ = _media_sources_it; -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (!gee_iterator_next (_tmp20_)) { -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - break; -#line 9819 "LibraryWindow.c" - } -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp21_ = _media_sources_it; -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp22_ = gee_iterator_get (_tmp21_); -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - media_sources = (MediaSourceCollection*) _tmp22_; -#line 235 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp23_ = media_sources; -#line 235 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("trashcan-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp24_, NULL, FALSE); -#line 235 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (_tmp23_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp24_, 0, NULL, (GCallback) _library_window_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self); -#line 236 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp25_ = media_sources; -#line 236 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp26_, NULL, FALSE); -#line 236 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp26_, 0, NULL, (GCallback) _library_window_on_media_altered_data_collection_items_altered, self); -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _data_collection_unref0 (media_sources); -#line 9841 "LibraryWindow.c" - } -#line 234 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_media_sources_it); -#line 9845 "LibraryWindow.c" - } -#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp27_ = metadata_writer_get_instance (); -#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp28_ = _tmp27_; -#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("progress", TYPE_METADATA_WRITER, &_tmp29_, NULL, FALSE); -#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (_tmp28_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp29_, 0, NULL, (GCallback) _library_window_on_metadata_writer_progress_metadata_writer_progress, self); -#line 239 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (_tmp28_); -#line 241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp30_ = library_monitor_pool_get_instance (); -#line 241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp31_ = _tmp30_; -#line 241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp32_ = library_monitor_pool_get_monitor (_tmp31_); -#line 241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp33_ = _tmp32_; -#line 241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _library_monitor_pool_unref0 (_tmp31_); -#line 241 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - monitor = _tmp33_; -#line 242 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp34_ = monitor; -#line 242 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - if (_tmp34_ != NULL) { -#line 9873 "LibraryWindow.c" - LibraryMonitor* _tmp35_; -#line 243 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp35_ = monitor; -#line 243 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - library_window_on_library_monitor_destroyed (self, _tmp35_); -#line 9879 "LibraryWindow.c" - } -#line 245 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp36_ = library_monitor_pool_get_instance (); -#line 245 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp37_ = _tmp36_; -#line 245 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("monitor-installed", TYPE_LIBRARY_MONITOR_POOL, &_tmp38_, NULL, FALSE); -#line 245 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (_tmp37_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp38_, 0, NULL, (GCallback) _library_window_on_library_monitor_installed_library_monitor_pool_monitor_installed, self); -#line 245 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _library_monitor_pool_unref0 (_tmp37_); -#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp39_ = library_monitor_pool_get_instance (); -#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp40_ = _tmp39_; -#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("monitor-destroyed", TYPE_LIBRARY_MONITOR_POOL, &_tmp41_, NULL, FALSE); -#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (_tmp40_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp41_, 0, NULL, (GCallback) _library_window_on_library_monitor_destroyed_library_monitor_pool_monitor_destroyed, self); -#line 246 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _library_monitor_pool_unref0 (_tmp40_); -#line 248 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp42_ = camera_table_get_instance (); -#line 248 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _tmp43_ = _tmp42_; -#line 248 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_parse_name ("camera-added", TYPE_CAMERA_TABLE, &_tmp44_, NULL, FALSE); -#line 248 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - g_signal_handlers_disconnect_matched (_tmp43_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp44_, 0, NULL, (GCallback) _library_window_on_camera_added_camera_table_camera_added, self); -#line 248 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _camera_table_unref0 (_tmp43_); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (monitor); -#line 98 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_free0 (self->priv->import_dir); -#line 101 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->sidebar_paned); -#line 102 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->client_paned); -#line 103 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->bottom_frame); -#line 105 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _one_shot_scheduler_unref0 (self->priv->properties_scheduler); -#line 109 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->sidebar_tree); -#line 110 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->library_branch); -#line 111 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->tags_branch); -#line 112 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->folders_branch); -#line 113 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->events_branch); -#line 114 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->camera_branch); -#line 115 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->saved_search_branch); -#line 118 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->page_map); -#line 120 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->photo_page); -#line 130 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _search_filter_actions_unref0 (self->priv->search_actions); -#line 131 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->search_toolbar); -#line 133 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->top_section); -#line 134 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->background_progress_frame); -#line 135 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->background_progress_bar); -#line 138 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->basic_properties); -#line 139 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->extended_properties); -#line 141 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->stack); -#line 142 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->layout); -#line 143 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->right_vbox); -#line 144 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - _g_object_unref0 (self->priv->toolbar_revealer); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - G_OBJECT_CLASS (library_window_parent_class)->finalize (obj); -#line 9965 "LibraryWindow.c" -} - - -GType -library_window_get_type (void) -{ - static volatile gsize library_window_type_id__volatile = 0; - if (g_once_init_enter (&library_window_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryWindow), 0, (GInstanceInitFunc) library_window_instance_init, NULL }; - GType library_window_type_id; - library_window_type_id = g_type_register_static (TYPE_APP_WINDOW, "LibraryWindow", &g_define_type_info, 0); - g_once_init_leave (&library_window_type_id__volatile, library_window_type_id); - } - return library_window_type_id__volatile; -} - - -static void -_vala_library_window_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - LibraryWindow * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - switch (property_id) { -#line 9993 "LibraryWindow.c" - default: -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 7 "/home/jens/Source/shotwell/src/library/LibraryWindow.vala" - break; -#line 9999 "LibraryWindow.c" - } -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/src/library/LibraryWindow.vala b/src/library/LibraryWindow.vala index 7f5100a..b9acb22 100644 --- a/src/library/LibraryWindow.vala +++ b/src/library/LibraryWindow.vala @@ -6,6 +6,7 @@ public class LibraryWindow : AppWindow { public const int SIDEBAR_MIN_WIDTH = 120; + public const int EXTENDED_INFO_MIN_WIDTH = 360; public static int PAGE_MIN_WIDTH { get { @@ -45,7 +46,11 @@ public class LibraryWindow : AppWindow { CAMERAS, SAVED_SEARCH, EVENTS, + IMPORT_ROLL, FOLDERS, +#if ENABLE_FACES + FACES, +#endif TAGS } @@ -110,9 +115,13 @@ public class LibraryWindow : AppWindow { private Library.Branch library_branch = new Library.Branch(); private Tags.Branch tags_branch = new Tags.Branch(); private Folders.Branch folders_branch = new Folders.Branch(); +#if ENABLE_FACES + private Faces.Branch faces_branch = new Faces.Branch(); +#endif private Events.Branch events_branch = new Events.Branch(); private Camera.Branch camera_branch = new Camera.Branch(); private Searches.Branch saved_search_branch = new Searches.Branch(); + private ImportRoll.Branch import_roll_branch = new ImportRoll.Branch(); private bool page_switching_enabled = true; private Gee.HashMap page_map = new Gee.HashMap(); @@ -136,7 +145,8 @@ public class LibraryWindow : AppWindow { private bool background_progress_displayed = false; private BasicProperties basic_properties = new BasicProperties(); - private ExtendedPropertiesWindow extended_properties; + private ExtendedProperties extended_properties = new ExtendedProperties(); + private Gtk.Revealer extended_properties_revealer = new Gtk.Revealer(); private Gtk.Stack stack = new Gtk.Stack(); private Gtk.Box layout = new Gtk.Box(Gtk.Orientation.VERTICAL, 0); @@ -164,14 +174,14 @@ public class LibraryWindow : AppWindow { sidebar_tree.graft(library_branch, SidebarRootPosition.LIBRARY); sidebar_tree.graft(tags_branch, SidebarRootPosition.TAGS); sidebar_tree.graft(folders_branch, SidebarRootPosition.FOLDERS); +#if ENABLE_FACES + sidebar_tree.graft(faces_branch, SidebarRootPosition.FACES); +#endif + sidebar_tree.graft(events_branch, SidebarRootPosition.EVENTS); sidebar_tree.graft(camera_branch, SidebarRootPosition.CAMERAS); sidebar_tree.graft(saved_search_branch, SidebarRootPosition.SAVED_SEARCH); - - // create and connect extended properties window - extended_properties = new ExtendedPropertiesWindow(this); - extended_properties.hide.connect(hide_extended_properties); - extended_properties.show.connect(show_extended_properties); + sidebar_tree.graft(import_roll_branch, SidebarRootPosition.IMPORT_ROLL); properties_scheduler = new OneShotScheduler("LibraryWindow properties", on_update_properties_now); @@ -228,9 +238,6 @@ public class LibraryWindow : AppWindow { unsubscribe_from_basic_information(get_current_page()); - extended_properties.hide.disconnect(hide_extended_properties); - extended_properties.show.disconnect(show_extended_properties); - foreach (MediaSourceCollection media_sources in MediaCollectionRegistry.get_instance().get_all()) { media_sources.trashcan_contents_altered.disconnect(on_trashcan_contents_altered); media_sources.items_altered.disconnect(on_media_altered); @@ -404,7 +411,17 @@ public class LibraryWindow : AppWindow { else debug("No search entry found for rename"); } - + +#if ENABLE_FACES + public void rename_face_in_sidebar(Face face) { + Faces.SidebarEntry? entry = faces_branch.get_entry_for_face(face); + if (entry != null) + sidebar_tree.rename_entry_in_place(entry); + else + assert_not_reached(); + } +#endif + protected override void on_quit() { Config.Facade.get_instance().set_library_window_state(maximized, dimensions); @@ -687,12 +704,11 @@ public class LibraryWindow : AppWindow { if (display) { extended_properties.update_properties(get_current_page()); - extended_properties.show_all(); - } else { - extended_properties.hide(); } + extended_properties_revealer.set_reveal_child(display); action.set_state (value); + Config.Facade.get_instance().set_display_extended_properties(display); } private void on_display_searchbar(GLib.SimpleAction action, Variant? value) { @@ -750,22 +766,6 @@ public class LibraryWindow : AppWindow { return Config.Facade.get_instance ().get_display_toolbar (); } - private void show_extended_properties() { - sync_extended_properties(true); - } - - private void hide_extended_properties() { - sync_extended_properties(false); - } - - private void sync_extended_properties(bool show) { - var action = this.lookup_action ("CommonDisplayExtendedProperties"); - action.change_state (show); - - // sync the setting so it will persist - Config.Facade.get_instance().set_display_extended_properties(show); - } - public void enqueue_batch_import(BatchImport batch_import, bool allow_user_cancel) { library_branch.import_queue_entry.enqueue_and_schedule(batch_import, allow_user_cancel); } @@ -810,9 +810,9 @@ public class LibraryWindow : AppWindow { private Gdk.DragAction get_drag_action() { Gdk.ModifierType mask; - - get_window().get_device_position(Gdk.Display.get_default().get_device_manager() - .get_client_pointer(), null, null, out mask); + + var seat = Gdk.Display.get_default().get_default_seat(); + get_window().get_device_position(seat.get_pointer(), null, null, out mask); bool ctrl = (mask & Gdk.ModifierType.CONTROL_MASK) != 0; bool alt = (mask & Gdk.ModifierType.MOD1_MASK) != 0; @@ -1186,7 +1186,9 @@ public class LibraryWindow : AppWindow { right_vbox = new Gtk.Box(Gtk.Orientation.VERTICAL, 0); right_vbox.pack_start(search_toolbar, false, false, 0); - right_vbox.pack_start(stack, true, true, 0); + var stack_box = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0); + stack_box.pack_start(stack, true, true, 0); + right_vbox.pack_start(stack_box, true, true, 0); right_vbox.add (toolbar_revealer); client_paned = new Gtk.Paned(Gtk.Orientation.HORIZONTAL); @@ -1196,6 +1198,29 @@ public class LibraryWindow : AppWindow { client_paned.set_position(Config.Facade.get_instance().get_sidebar_position()); // TODO: Calc according to layout's size, to give sidebar a maximum width stack.set_size_request(PAGE_MIN_WIDTH, -1); + var scrolled = new Gtk.ScrolledWindow(null, null); + scrolled.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC); + scrolled.add(extended_properties); + extended_properties_revealer.add(scrolled); + extended_properties_revealer.set_transition_type(Gtk.RevealerTransitionType.SLIDE_LEFT); + extended_properties_revealer.halign = Gtk.Align.END; + extended_properties_revealer.valign = Gtk.Align.FILL; + + extended_properties.vexpand = true; + extended_properties.set_margin_top (9); + extended_properties.set_margin_bottom (9); + extended_properties.set_margin_start (9); + extended_properties.set_margin_end (9); + scrolled.set_size_request(EXTENDED_INFO_MIN_WIDTH, -1); + + stack_box.pack_end(extended_properties_revealer, false, false, 0); + extended_properties_revealer.halign = Gtk.Align.END; + extended_properties_revealer.hexpand = false; + if (Config.Facade.get_instance().get_display_extended_properties()) { + extended_properties_revealer.set_reveal_child(true); + } else { + extended_properties_revealer.set_reveal_child(false); + } layout.pack_end(client_paned, true, true, 0); diff --git a/src/library/OfflinePage.c b/src/library/OfflinePage.c deleted file mode 100644 index 3d18c3f..0000000 --- a/src/library/OfflinePage.c +++ /dev/null @@ -1,1816 +0,0 @@ -/* OfflinePage.c generated by valac 0.40.4, the Vala compiler - * generated from OfflinePage.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; -typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; - -#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ()) - -#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ()) -typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ()) -#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)) -#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) -#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER)) -#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER)) -#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) - -typedef struct _SearchViewFilter SearchViewFilter; -typedef struct _SearchViewFilterClass SearchViewFilterClass; - -#define CORE_TYPE_TRACKER (core_tracker_get_type ()) -#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) -#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) -#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) -#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) -#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) - -typedef struct _CoreTracker CoreTracker; -typedef struct _CoreTrackerClass CoreTrackerClass; - -#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) -#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) -#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) -#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) -#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) -#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) - -typedef struct _CoreViewTracker CoreViewTracker; -typedef struct _CoreViewTrackerClass CoreViewTrackerClass; - -#define TYPE_OFFLINE_PAGE (offline_page_get_type ()) -#define OFFLINE_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_OFFLINE_PAGE, OfflinePage)) -#define OFFLINE_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_OFFLINE_PAGE, OfflinePageClass)) -#define IS_OFFLINE_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_OFFLINE_PAGE)) -#define IS_OFFLINE_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_OFFLINE_PAGE)) -#define OFFLINE_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_OFFLINE_PAGE, OfflinePageClass)) - -typedef struct _OfflinePage OfflinePage; -typedef struct _OfflinePageClass OfflinePageClass; -typedef struct _OfflinePagePrivate OfflinePagePrivate; - -#define TYPE_DEFAULT_SEARCH_VIEW_FILTER (default_search_view_filter_get_type ()) -#define DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilter)) -#define DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass)) -#define IS_DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER)) -#define IS_DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER)) -#define DEFAULT_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass)) - -typedef struct _DefaultSearchViewFilter DefaultSearchViewFilter; -typedef struct _DefaultSearchViewFilterClass DefaultSearchViewFilterClass; - -#define OFFLINE_PAGE_TYPE_OFFLINE_SEARCH_VIEW_FILTER (offline_page_offline_search_view_filter_get_type ()) -#define OFFLINE_PAGE_OFFLINE_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), OFFLINE_PAGE_TYPE_OFFLINE_SEARCH_VIEW_FILTER, OfflinePageOfflineSearchViewFilter)) -#define OFFLINE_PAGE_OFFLINE_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), OFFLINE_PAGE_TYPE_OFFLINE_SEARCH_VIEW_FILTER, OfflinePageOfflineSearchViewFilterClass)) -#define OFFLINE_PAGE_IS_OFFLINE_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), OFFLINE_PAGE_TYPE_OFFLINE_SEARCH_VIEW_FILTER)) -#define OFFLINE_PAGE_IS_OFFLINE_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), OFFLINE_PAGE_TYPE_OFFLINE_SEARCH_VIEW_FILTER)) -#define OFFLINE_PAGE_OFFLINE_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), OFFLINE_PAGE_TYPE_OFFLINE_SEARCH_VIEW_FILTER, OfflinePageOfflineSearchViewFilterClass)) - -typedef struct _OfflinePageOfflineSearchViewFilter OfflinePageOfflineSearchViewFilter; -typedef struct _OfflinePageOfflineSearchViewFilterClass OfflinePageOfflineSearchViewFilterClass; - -#define TYPE_MEDIA_VIEW_TRACKER (media_view_tracker_get_type ()) -#define MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTracker)) -#define MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass)) -#define IS_MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_VIEW_TRACKER)) -#define IS_MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_VIEW_TRACKER)) -#define MEDIA_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass)) - -typedef struct _MediaViewTracker MediaViewTracker; -typedef struct _MediaViewTrackerClass MediaViewTrackerClass; -enum { - OFFLINE_PAGE_0_PROPERTY, - OFFLINE_PAGE_NUM_PROPERTIES -}; -static GParamSpec* offline_page_properties[OFFLINE_PAGE_NUM_PROPERTIES]; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ()) -#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) - -typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; -typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_VIDEO_SOURCE_COLLECTION (video_source_collection_get_type ()) -#define VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection)) -#define VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) -#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION)) -#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION)) -#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) - -typedef struct _VideoSourceCollection VideoSourceCollection; -typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass; -#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL))) -#define _core_tracker_unref0(var) ((var == NULL) ? NULL : (var = (core_tracker_unref (var), NULL))) - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_MEDIA_SOURCE_ITEM (media_source_item_get_type ()) -#define MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem)) -#define MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) -#define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM)) -#define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM)) -#define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) - -typedef struct _MediaSourceItem MediaSourceItem; -typedef struct _MediaSourceItemClass MediaSourceItemClass; - -#define TYPE_THUMBNAIL (thumbnail_get_type ()) -#define THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL, Thumbnail)) -#define THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL, ThumbnailClass)) -#define IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL)) -#define IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL)) -#define THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL, ThumbnailClass)) - -typedef struct _Thumbnail Thumbnail; -typedef struct _ThumbnailClass ThumbnailClass; - -#define OFFLINE_PAGE_TYPE_OFFLINE_VIEW (offline_page_offline_view_get_type ()) -#define OFFLINE_PAGE_OFFLINE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), OFFLINE_PAGE_TYPE_OFFLINE_VIEW, OfflinePageOfflineView)) -#define OFFLINE_PAGE_OFFLINE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), OFFLINE_PAGE_TYPE_OFFLINE_VIEW, OfflinePageOfflineViewClass)) -#define OFFLINE_PAGE_IS_OFFLINE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), OFFLINE_PAGE_TYPE_OFFLINE_VIEW)) -#define OFFLINE_PAGE_IS_OFFLINE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), OFFLINE_PAGE_TYPE_OFFLINE_VIEW)) -#define OFFLINE_PAGE_OFFLINE_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), OFFLINE_PAGE_TYPE_OFFLINE_VIEW, OfflinePageOfflineViewClass)) - -typedef struct _OfflinePageOfflineView OfflinePageOfflineView; -typedef struct _OfflinePageOfflineViewClass OfflinePageOfflineViewClass; - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_PROGRESS_DIALOG (progress_dialog_get_type ()) -#define PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROGRESS_DIALOG, ProgressDialog)) -#define PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PROGRESS_DIALOG, ProgressDialogClass)) -#define IS_PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROGRESS_DIALOG)) -#define IS_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROGRESS_DIALOG)) -#define PROGRESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROGRESS_DIALOG, ProgressDialogClass)) - -typedef struct _ProgressDialog ProgressDialog; -typedef struct _ProgressDialogClass ProgressDialogClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; -typedef struct _DataViewPrivate DataViewPrivate; -typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate; -typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -typedef struct _MediaSourceItemPrivate MediaSourceItemPrivate; -typedef struct _ThumbnailPrivate ThumbnailPrivate; -typedef struct _OfflinePageOfflineViewPrivate OfflinePageOfflineViewPrivate; -enum { - OFFLINE_PAGE_OFFLINE_VIEW_0_PROPERTY, - OFFLINE_PAGE_OFFLINE_VIEW_NUM_PROPERTIES -}; -static GParamSpec* offline_page_offline_view_properties[OFFLINE_PAGE_OFFLINE_VIEW_NUM_PROPERTIES]; -typedef struct _ViewFilterPrivate ViewFilterPrivate; -typedef struct _SearchViewFilterPrivate SearchViewFilterPrivate; -typedef struct _DefaultSearchViewFilterPrivate DefaultSearchViewFilterPrivate; -typedef struct _OfflinePageOfflineSearchViewFilterPrivate OfflinePageOfflineSearchViewFilterPrivate; - -#define TYPE_SEARCH_FILTER_CRITERIA (search_filter_criteria_get_type ()) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -typedef enum { - CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, - CHECKERBOARD_PAGE_ACTIVATOR_MOUSE -} CheckerboardPageActivator; - -struct _CheckerboardPageKeyboardModifiers { - gboolean ctrl_pressed; - gboolean alt_pressed; - gboolean shift_pressed; - gboolean super_pressed; -}; - -struct _CheckerboardPage { - Page parent_instance; - CheckerboardPagePrivate * priv; - CheckerboardItem* anchor; - CheckerboardItem* cursor; -}; - -struct _CheckerboardPageClass { - PageClass parent_class; - GtkMenu* (*get_item_context_menu) (CheckerboardPage* self); - gchar* (*get_view_empty_message) (CheckerboardPage* self); - gchar* (*get_filter_no_match_message) (CheckerboardPage* self); - void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers); - SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self); - CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self); - gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask); - void (*set_display_titles) (CheckerboardPage* self, gboolean display); - void (*set_display_comments) (CheckerboardPage* self, gboolean display); -}; - -struct _OfflinePage { - CheckerboardPage parent_instance; - OfflinePagePrivate * priv; -}; - -struct _OfflinePageClass { - CheckerboardPageClass parent_class; -}; - -struct _OfflinePagePrivate { - OfflinePageOfflineSearchViewFilter* search_filter; - MediaViewTracker* tracker; -}; - -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataView { - DataObject parent_instance; - DataViewPrivate * priv; -}; - -struct _DataViewClass { - DataObjectClass parent_class; - void (*notify_view_altered) (DataView* self); - void (*notify_geometry_altered) (DataView* self); - void (*notify_unsubscribed) (DataView* self, DataSource* source); - void (*state_changed) (DataView* self, gboolean selected); - void (*visibility_changed) (DataView* self, gboolean visible); - void (*view_altered) (DataView* self); - void (*geometry_altered) (DataView* self); - void (*unsubscribed) (DataView* self, DataSource* source); -}; - -struct _ThumbnailView { - DataView parent_instance; - ThumbnailViewPrivate * priv; -}; - -struct _ThumbnailViewClass { - DataViewClass parent_class; - void (*notify_thumbnail_altered) (ThumbnailView* self); - void (*thumbnail_altered) (ThumbnailView* self); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _CheckerboardItem { - ThumbnailView parent_instance; - CheckerboardItemPrivate * priv; - Dimensions requisition; - GdkRectangle allocation; -}; - -struct _CheckerboardItemClass { - ThumbnailViewClass parent_class; - void (*exposed) (CheckerboardItem* self); - void (*unexposed) (CheckerboardItem* self); - gboolean (*is_exposed) (CheckerboardItem* self); - void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha); - void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width); - void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin); - GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale); -}; - -struct _MediaSourceItem { - CheckerboardItem parent_instance; - MediaSourceItemPrivate * priv; -}; - -struct _MediaSourceItemClass { - CheckerboardItemClass parent_class; -}; - -struct _Thumbnail { - MediaSourceItem parent_instance; - ThumbnailPrivate * priv; -}; - -struct _ThumbnailClass { - MediaSourceItemClass parent_class; -}; - -struct _OfflinePageOfflineView { - Thumbnail parent_instance; - OfflinePageOfflineViewPrivate * priv; -}; - -struct _OfflinePageOfflineViewClass { - ThumbnailClass parent_class; -}; - -struct _ViewFilter { - GTypeInstance parent_instance; - volatile int ref_count; - ViewFilterPrivate * priv; -}; - -struct _ViewFilterClass { - GTypeClass parent_class; - void (*finalize) (ViewFilter *self); - gboolean (*predicate) (ViewFilter* self, DataView* view); - void (*refresh) (ViewFilter* self); -}; - -struct _SearchViewFilter { - ViewFilter parent_instance; - SearchViewFilterPrivate * priv; -}; - -struct _SearchViewFilterClass { - ViewFilterClass parent_class; - guint (*get_criteria) (SearchViewFilter* self); -}; - -struct _DefaultSearchViewFilter { - SearchViewFilter parent_instance; - DefaultSearchViewFilterPrivate * priv; -}; - -struct _DefaultSearchViewFilterClass { - SearchViewFilterClass parent_class; -}; - -struct _OfflinePageOfflineSearchViewFilter { - DefaultSearchViewFilter parent_instance; - OfflinePageOfflineSearchViewFilterPrivate * priv; -}; - -struct _OfflinePageOfflineSearchViewFilterClass { - DefaultSearchViewFilterClass parent_class; -}; - -typedef enum { - SEARCH_FILTER_CRITERIA_NONE = 0, - SEARCH_FILTER_CRITERIA_RECURSIVE = 1 << 0, - SEARCH_FILTER_CRITERIA_TEXT = 1 << 1, - SEARCH_FILTER_CRITERIA_FLAG = 1 << 2, - SEARCH_FILTER_CRITERIA_MEDIA = 1 << 3, - SEARCH_FILTER_CRITERIA_RATING = 1 << 4, - SEARCH_FILTER_CRITERIA_SAVEDSEARCH = 1 << 5, - SEARCH_FILTER_CRITERIA_ALL = 0xFFFFFFFFLL -} SearchFilterCriteria; - - -static gpointer offline_page_parent_class = NULL; -extern LibraryPhotoSourceCollection* library_photo_global; -extern VideoSourceCollection* video_global; -static gpointer offline_page_offline_view_parent_class = NULL; -static gpointer offline_page_offline_search_view_filter_parent_class = NULL; - -GType page_get_type (void) G_GNUC_CONST; -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType checkerboard_page_activator_get_type (void) G_GNUC_CONST; -GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST; -CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self); -void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self); -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -GType search_view_filter_get_type (void) G_GNUC_CONST; -gpointer core_tracker_ref (gpointer instance); -void core_tracker_unref (gpointer instance); -GParamSpec* core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void core_value_set_tracker (GValue* value, - gpointer v_object); -void core_value_take_tracker (GValue* value, - gpointer v_object); -gpointer core_value_get_tracker (const GValue* value); -GType core_tracker_get_type (void) G_GNUC_CONST; -GType core_view_tracker_get_type (void) G_GNUC_CONST; -GType offline_page_get_type (void) G_GNUC_CONST; -GType default_search_view_filter_get_type (void) G_GNUC_CONST; -static GType offline_page_offline_search_view_filter_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -GType media_view_tracker_get_type (void) G_GNUC_CONST; -#define OFFLINE_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_OFFLINE_PAGE, OfflinePagePrivate)) -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -static void offline_page_on_offline_contents_altered (OfflinePage* self, - GeeCollection* added, - GeeCollection* removed); -static void _offline_page_on_offline_contents_altered_media_source_collection_offline_contents_altered (MediaSourceCollection* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self); -GType video_source_collection_get_type (void) G_GNUC_CONST; -static OfflinePageOfflineSearchViewFilter* offline_page_offline_search_view_filter_new (void); -static OfflinePageOfflineSearchViewFilter* offline_page_offline_search_view_filter_construct (GType object_type); -#define OFFLINE_PAGE_NAME _ ("Missing Files") -static void offline_page_on_remove_from_library (OfflinePage* self); -static void _offline_page_on_remove_from_library_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -OfflinePage* offline_page_new (void); -OfflinePage* offline_page_construct (GType object_type); -CheckerboardPage* checkerboard_page_construct (GType object_type, - const gchar* page_name); -void checkerboard_page_init_item_context_menu (CheckerboardPage* self, - const gchar* path); -void page_init_toolbar (Page* self, - const gchar* path); -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -MediaViewTracker* media_view_tracker_new (ViewCollection* collection); -MediaViewTracker* media_view_tracker_construct (GType object_type, - ViewCollection* collection); -GeeCollection* media_source_collection_get_offline_bin_contents (MediaSourceCollection* self); -static void offline_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames); -void page_init_collect_ui_filenames (Page* self, - GeeList* ui_filenames); -static void offline_page_real_add_actions (Page* base, - GActionMap* map); -void page_add_actions (Page* self, - GActionMap* map); -static void offline_page_real_remove_actions (Page* base, - GActionMap* map); -void page_remove_actions (Page* self, - GActionMap* map); -static CoreViewTracker* offline_page_real_get_view_tracker (CheckerboardPage* base); -static void offline_page_real_update_actions (Page* base, - gint selected_count, - gint count); -void page_set_action_sensitive (Page* self, - const gchar* name, - gboolean sensitive); -void page_update_actions (Page* self, - gint selected_count, - gint count); -gboolean data_collection_add (DataCollection* self, - DataObject* object); -static OfflinePageOfflineView* offline_page_offline_view_new (MediaSource* source); -static OfflinePageOfflineView* offline_page_offline_view_construct (GType object_type, - MediaSource* source); -GType media_source_item_get_type (void) G_GNUC_CONST; -GType thumbnail_get_type (void) G_GNUC_CONST; -static GType offline_page_offline_view_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -GType marker_get_type (void) G_GNUC_CONST; -Marker* data_collection_start_marking (DataCollection* self); -void marker_mark (Marker* self, - DataObject* object); -DataView* view_collection_get_view_for_source (ViewCollection* self, - DataSource* source); -void data_collection_remove_marked (DataCollection* self, - Marker* m); -GeeList* view_collection_get_selected_sources (ViewCollection* self); -gboolean remove_offline_dialog (GtkWindow* owner, - gint count); -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -void page_window_set_busy_cursor (PageWindow* self); -GType progress_dialog_get_type (void) G_GNUC_CONST; -ProgressDialog* progress_dialog_new (GtkWindow* owner, - const gchar* text, - GCancellable* cancellable); -ProgressDialog* progress_dialog_construct (GType object_type, - GtkWindow* owner, - const gchar* text, - GCancellable* cancellable); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -GType video_source_get_type (void) G_GNUC_CONST; -GType video_get_type (void) G_GNUC_CONST; -void media_source_collection_filter_media (GeeCollection* media, - GeeCollection* photos, - GeeCollection* videos); -void media_source_collection_remove_from_app (MediaSourceCollection* self, - GeeCollection* sources, - gboolean delete_backing, - ProgressMonitor monitor, - void* monitor_target, - GeeList* not_removed); -gboolean progress_dialog_monitor (ProgressDialog* self, - guint64 count, - guint64 total, - gboolean do_event_loop); -static gboolean _progress_dialog_monitor_progress_monitor (guint64 current, - guint64 total, - gboolean do_event_loop, - gpointer self); -void progress_dialog_close (ProgressDialog* self); -void page_window_set_normal_cursor (PageWindow* self); -static SearchViewFilter* offline_page_real_get_search_view_filter (CheckerboardPage* base); -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -gint thumbnail_get_DEFAULT_SCALE (void); -Thumbnail* thumbnail_new (MediaSource* media, - gint scale); -Thumbnail* thumbnail_construct (GType object_type, - MediaSource* media, - gint scale); -gboolean media_source_is_offline (MediaSource* self); -static guint offline_page_offline_search_view_filter_real_get_criteria (SearchViewFilter* base); -GType search_filter_criteria_get_type (void) G_GNUC_CONST; -DefaultSearchViewFilter* default_search_view_filter_construct (GType object_type); -static void offline_page_finalize (GObject * obj); - -static const GActionEntry OFFLINE_PAGE_entries[1] = {{"RemoveFromLibrary", _offline_page_on_remove_from_library_gsimple_action_activate_callback}}; - -static void -_offline_page_on_offline_contents_altered_media_source_collection_offline_contents_altered (MediaSourceCollection* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self) -{ -#line 45 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - offline_page_on_offline_contents_altered ((OfflinePage*) self, added, removed); -#line 955 "OfflinePage.c" -} - - -static void -_offline_page_on_remove_from_library_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 55 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - offline_page_on_remove_from_library ((OfflinePage*) self); -#line 966 "OfflinePage.c" -} - - -OfflinePage* -offline_page_construct (GType object_type) -{ - OfflinePage * self = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - MediaViewTracker* _tmp2_; - LibraryPhotoSourceCollection* _tmp3_; - VideoSourceCollection* _tmp4_; - LibraryPhotoSourceCollection* _tmp5_; - GeeCollection* _tmp6_; - GeeCollection* _tmp7_; - VideoSourceCollection* _tmp8_; - GeeCollection* _tmp9_; - GeeCollection* _tmp10_; -#line 29 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - self = (OfflinePage*) checkerboard_page_construct (object_type, OFFLINE_PAGE_NAME); -#line 31 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - checkerboard_page_init_item_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "OfflineContextMenu"); -#line 32 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - page_init_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "OfflineToolbar"); -#line 34 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 34 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp1_ = _tmp0_; -#line 34 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp2_ = media_view_tracker_new (_tmp1_); -#line 34 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _core_tracker_unref0 (self->priv->tracker); -#line 34 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - self->priv->tracker = _tmp2_; -#line 34 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _data_collection_unref0 (_tmp1_); -#line 37 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp3_ = library_photo_global; -#line 37 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "offline-contents-altered", (GCallback) _offline_page_on_offline_contents_altered_media_source_collection_offline_contents_altered, self, 0); -#line 38 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp4_ = video_global; -#line 38 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "offline-contents-altered", (GCallback) _offline_page_on_offline_contents_altered_media_source_collection_offline_contents_altered, self, 0); -#line 40 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp5_ = library_photo_global; -#line 40 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp6_ = media_source_collection_get_offline_bin_contents (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 40 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp7_ = _tmp6_; -#line 40 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - offline_page_on_offline_contents_altered (self, _tmp7_, NULL); -#line 40 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (_tmp7_); -#line 41 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp8_ = video_global; -#line 41 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp9_ = media_source_collection_get_offline_bin_contents (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 41 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp10_ = _tmp9_; -#line 41 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - offline_page_on_offline_contents_altered (self, _tmp10_, NULL); -#line 41 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (_tmp10_); -#line 28 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - return self; -#line 1033 "OfflinePage.c" -} - - -OfflinePage* -offline_page_new (void) -{ -#line 28 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - return offline_page_construct (TYPE_OFFLINE_PAGE); -#line 1042 "OfflinePage.c" -} - - -static void -offline_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames) -{ - OfflinePage * self; -#line 49 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OFFLINE_PAGE, OfflinePage); -#line 49 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 50 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - PAGE_CLASS (offline_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), ui_filenames); -#line 52 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "offline.ui"); -#line 1059 "OfflinePage.c" -} - - -static void -offline_page_real_add_actions (Page* base, - GActionMap* map) -{ - OfflinePage * self; -#line 59 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OFFLINE_PAGE, OfflinePage); -#line 59 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 60 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - PAGE_CLASS (offline_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), map); -#line 62 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_action_map_add_action_entries (map, OFFLINE_PAGE_entries, G_N_ELEMENTS (OFFLINE_PAGE_entries), self); -#line 1076 "OfflinePage.c" -} - - -static void -offline_page_real_remove_actions (Page* base, - GActionMap* map) -{ - OfflinePage * self; -#line 65 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OFFLINE_PAGE, OfflinePage); -#line 65 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 66 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - PAGE_CLASS (offline_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), map); -#line 1091 "OfflinePage.c" - { - GActionEntry* entry_collection = NULL; - gint entry_collection_length1 = 0; - gint _entry_collection_size_ = 0; - gint entry_it = 0; -#line 67 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - entry_collection = OFFLINE_PAGE_entries; -#line 67 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - entry_collection_length1 = G_N_ELEMENTS (OFFLINE_PAGE_entries); -#line 67 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - for (entry_it = 0; entry_it < G_N_ELEMENTS (OFFLINE_PAGE_entries); entry_it = entry_it + 1) { -#line 1103 "OfflinePage.c" - GActionEntry entry = {0}; -#line 67 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - entry = entry_collection[entry_it]; -#line 1107 "OfflinePage.c" - { - GActionEntry _tmp0_; - const gchar* _tmp1_; -#line 68 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp0_ = entry; -#line 68 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp1_ = _tmp0_.name; -#line 68 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_action_map_remove_action (map, _tmp1_); -#line 1117 "OfflinePage.c" - } - } - } -} - - -static gpointer -_core_tracker_ref0 (gpointer self) -{ -#line 73 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - return self ? core_tracker_ref (self) : NULL; -#line 1129 "OfflinePage.c" -} - - -static CoreViewTracker* -offline_page_real_get_view_tracker (CheckerboardPage* base) -{ - OfflinePage * self; - CoreViewTracker* result = NULL; - MediaViewTracker* _tmp0_; - CoreViewTracker* _tmp1_; -#line 72 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OFFLINE_PAGE, OfflinePage); -#line 73 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp0_ = self->priv->tracker; -#line 73 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp1_ = _core_tracker_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, CORE_TYPE_VIEW_TRACKER, CoreViewTracker)); -#line 73 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - result = _tmp1_; -#line 73 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - return result; -#line 1150 "OfflinePage.c" -} - - -static void -offline_page_real_update_actions (Page* base, - gint selected_count, - gint count) -{ - OfflinePage * self; -#line 76 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OFFLINE_PAGE, OfflinePage); -#line 77 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RemoveFromLibrary", selected_count > 0); -#line 79 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - PAGE_CLASS (offline_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), selected_count, count); -#line 1166 "OfflinePage.c" -} - - -static void -offline_page_on_offline_contents_altered (OfflinePage* self, - GeeCollection* added, - GeeCollection* removed) -{ -#line 82 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_return_if_fail (IS_OFFLINE_PAGE (self)); -#line 82 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 82 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 84 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - if (added != NULL) { -#line 1183 "OfflinePage.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_ITERABLE, GeeIterable)); -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _source_it = _tmp0_; -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - while (TRUE) { -#line 1193 "OfflinePage.c" - GeeIterator* _tmp1_; - MediaSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - MediaSource* _tmp6_; - OfflinePageOfflineView* _tmp7_; - OfflinePageOfflineView* _tmp8_; -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp1_ = _source_it; -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - break; -#line 1209 "OfflinePage.c" - } -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp2_ = _source_it; -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - source = (MediaSource*) _tmp3_; -#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp5_ = _tmp4_; -#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp6_ = source; -#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp7_ = offline_page_offline_view_new (_tmp6_); -#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp8_ = _tmp7_; -#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject)); -#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (_tmp8_); -#line 86 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _data_collection_unref0 (_tmp5_); -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (source); -#line 1235 "OfflinePage.c" - } -#line 85 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (_source_it); -#line 1239 "OfflinePage.c" - } - } -#line 89 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - if (removed != NULL) { -#line 1244 "OfflinePage.c" - Marker* marker = NULL; - ViewCollection* _tmp9_; - ViewCollection* _tmp10_; - Marker* _tmp11_; - Marker* _tmp12_; - ViewCollection* _tmp23_; - ViewCollection* _tmp24_; - Marker* _tmp25_; -#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp10_ = _tmp9_; -#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp11_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_COLLECTION, DataCollection)); -#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp12_ = _tmp11_; -#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _data_collection_unref0 (_tmp10_); -#line 90 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - marker = _tmp12_; -#line 1265 "OfflinePage.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp13_; -#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_ITERABLE, GeeIterable)); -#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _source_it = _tmp13_; -#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - while (TRUE) { -#line 1275 "OfflinePage.c" - GeeIterator* _tmp14_; - MediaSource* source = NULL; - GeeIterator* _tmp15_; - gpointer _tmp16_; - Marker* _tmp17_; - ViewCollection* _tmp18_; - ViewCollection* _tmp19_; - MediaSource* _tmp20_; - DataView* _tmp21_; - DataView* _tmp22_; -#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp14_ = _source_it; -#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - if (!gee_iterator_next (_tmp14_)) { -#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - break; -#line 1292 "OfflinePage.c" - } -#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp15_ = _source_it; -#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp16_ = gee_iterator_get (_tmp15_); -#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - source = (MediaSource*) _tmp16_; -#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp17_ = marker; -#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp18_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp19_ = _tmp18_; -#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp20_ = source; -#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp21_ = view_collection_get_view_for_source (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_SOURCE, DataSource)); -#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp22_ = _tmp21_; -#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - marker_mark (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_DATA_OBJECT, DataObject)); -#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (_tmp22_); -#line 92 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _data_collection_unref0 (_tmp19_); -#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (source); -#line 1320 "OfflinePage.c" - } -#line 91 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (_source_it); -#line 1324 "OfflinePage.c" - } -#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp23_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp24_ = _tmp23_; -#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp25_ = marker; -#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_COLLECTION, DataCollection), _tmp25_); -#line 93 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _data_collection_unref0 (_tmp24_); -#line 89 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (marker); -#line 1338 "OfflinePage.c" - } -} - - -static gboolean -_progress_dialog_monitor_progress_monitor (guint64 current, - guint64 total, - gboolean do_event_loop, - gpointer self) -{ - gboolean result; - result = progress_dialog_monitor ((ProgressDialog*) self, current, total, do_event_loop); -#line 117 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - return result; -#line 1353 "OfflinePage.c" -} - - -static void -offline_page_on_remove_from_library (OfflinePage* self) -{ - GeeCollection* sources = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - GeeList* _tmp2_; - GeeCollection* _tmp3_; - GeeCollection* _tmp4_; - gint _tmp5_; - gint _tmp6_; - AppWindow* _tmp7_; - AppWindow* _tmp8_; - GeeCollection* _tmp9_; - gint _tmp10_; - gint _tmp11_; - gboolean _tmp12_; - AppWindow* _tmp13_; - AppWindow* _tmp14_; - ProgressDialog* progress = NULL; - GeeCollection* _tmp15_; - gint _tmp16_; - gint _tmp17_; - GeeArrayList* photos = NULL; - GeeArrayList* _tmp21_; - GeeArrayList* videos = NULL; - GeeArrayList* _tmp22_; - GeeCollection* _tmp23_; - GeeArrayList* _tmp24_; - GeeArrayList* _tmp25_; - ProgressDialog* _tmp26_; - ProgressDialog* _tmp37_; - AppWindow* _tmp39_; - AppWindow* _tmp40_; -#line 97 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_return_if_fail (IS_OFFLINE_PAGE (self)); -#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp1_ = _tmp0_; -#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp2_ = view_collection_get_selected_sources (_tmp1_); -#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _data_collection_unref0 (_tmp1_); -#line 98 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - sources = _tmp3_; -#line 100 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp4_ = sources; -#line 100 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp5_ = gee_collection_get_size (_tmp4_); -#line 100 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp6_ = _tmp5_; -#line 100 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - if (_tmp6_ == 0) { -#line 101 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (sources); -#line 101 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - return; -#line 1417 "OfflinePage.c" - } -#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp7_ = app_window_get_instance (); -#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp8_ = _tmp7_; -#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp9_ = sources; -#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp10_ = gee_collection_get_size (_tmp9_); -#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp11_ = _tmp10_; -#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp12_ = !remove_offline_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_window_get_type (), GtkWindow), _tmp11_); -#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (_tmp8_); -#line 103 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - if (_tmp12_) { -#line 104 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (sources); -#line 104 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - return; -#line 1439 "OfflinePage.c" - } -#line 106 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp13_ = app_window_get_instance (); -#line 106 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp14_ = _tmp13_; -#line 106 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_PAGE_WINDOW, PageWindow)); -#line 106 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (_tmp14_); -#line 108 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - progress = NULL; -#line 109 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp15_ = sources; -#line 109 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp16_ = gee_collection_get_size (_tmp15_); -#line 109 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp17_ = _tmp16_; -#line 109 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - if (_tmp17_ >= 20) { -#line 1459 "OfflinePage.c" - AppWindow* _tmp18_; - AppWindow* _tmp19_; - ProgressDialog* _tmp20_; -#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp18_ = app_window_get_instance (); -#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp19_ = _tmp18_; -#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp20_ = progress_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_window_get_type (), GtkWindow), _ ("Deleting…"), NULL); -#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_object_ref_sink (_tmp20_); -#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (progress); -#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - progress = _tmp20_; -#line 110 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (_tmp19_); -#line 1477 "OfflinePage.c" - } -#line 112 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp21_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 112 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - photos = _tmp21_; -#line 113 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp22_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 113 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - videos = _tmp22_; -#line 114 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp23_ = sources; -#line 114 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp24_ = photos; -#line 114 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp25_ = videos; -#line 114 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - media_source_collection_filter_media (_tmp23_, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 116 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp26_ = progress; -#line 116 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - if (_tmp26_ != NULL) { -#line 1499 "OfflinePage.c" - LibraryPhotoSourceCollection* _tmp27_; - GeeArrayList* _tmp28_; - ProgressDialog* _tmp29_; - VideoSourceCollection* _tmp30_; - GeeArrayList* _tmp31_; - ProgressDialog* _tmp32_; -#line 117 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp27_ = library_photo_global; -#line 117 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp28_ = photos; -#line 117 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp29_ = progress; -#line 117 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - media_source_collection_remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection), FALSE, _progress_dialog_monitor_progress_monitor, _tmp29_, NULL); -#line 118 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp30_ = video_global; -#line 118 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp31_ = videos; -#line 118 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp32_ = progress; -#line 118 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - media_source_collection_remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, GEE_TYPE_COLLECTION, GeeCollection), FALSE, _progress_dialog_monitor_progress_monitor, _tmp32_, NULL); -#line 1522 "OfflinePage.c" - } else { - LibraryPhotoSourceCollection* _tmp33_; - GeeArrayList* _tmp34_; - VideoSourceCollection* _tmp35_; - GeeArrayList* _tmp36_; -#line 120 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp33_ = library_photo_global; -#line 120 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp34_ = photos; -#line 120 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - media_source_collection_remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_COLLECTION, GeeCollection), FALSE, NULL, NULL, NULL); -#line 121 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp35_ = video_global; -#line 121 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp36_ = videos; -#line 121 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - media_source_collection_remove_from_app (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_COLLECTION, GeeCollection), FALSE, NULL, NULL, NULL); -#line 1540 "OfflinePage.c" - } -#line 124 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp37_ = progress; -#line 124 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - if (_tmp37_ != NULL) { -#line 1546 "OfflinePage.c" - ProgressDialog* _tmp38_; -#line 125 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp38_ = progress; -#line 125 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - progress_dialog_close (_tmp38_); -#line 1552 "OfflinePage.c" - } -#line 127 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp39_ = app_window_get_instance (); -#line 127 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp40_ = _tmp39_; -#line 127 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, TYPE_PAGE_WINDOW, PageWindow)); -#line 127 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (_tmp40_); -#line 97 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (videos); -#line 97 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (photos); -#line 97 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (progress); -#line 97 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _g_object_unref0 (sources); -#line 1570 "OfflinePage.c" -} - - -static gpointer -_view_filter_ref0 (gpointer self) -{ -#line 131 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - return self ? view_filter_ref (self) : NULL; -#line 1579 "OfflinePage.c" -} - - -static SearchViewFilter* -offline_page_real_get_search_view_filter (CheckerboardPage* base) -{ - OfflinePage * self; - SearchViewFilter* result = NULL; - OfflinePageOfflineSearchViewFilter* _tmp0_; - SearchViewFilter* _tmp1_; -#line 130 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OFFLINE_PAGE, OfflinePage); -#line 131 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp0_ = self->priv->search_filter; -#line 131 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 131 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - result = _tmp1_; -#line 131 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - return result; -#line 1600 "OfflinePage.c" -} - - -static OfflinePageOfflineView* -offline_page_offline_view_construct (GType object_type, - MediaSource* source) -{ - OfflinePageOfflineView * self = NULL; - gint _tmp0_; - gint _tmp1_; -#line 11 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL); -#line 12 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp0_ = thumbnail_get_DEFAULT_SCALE (); -#line 12 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp1_ = _tmp0_; -#line 12 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - self = (OfflinePageOfflineView*) thumbnail_construct (object_type, source, _tmp1_); -#line 14 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _vala_assert (media_source_is_offline (source), "source.is_offline()"); -#line 11 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - return self; -#line 1623 "OfflinePage.c" -} - - -static OfflinePageOfflineView* -offline_page_offline_view_new (MediaSource* source) -{ -#line 11 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - return offline_page_offline_view_construct (OFFLINE_PAGE_TYPE_OFFLINE_VIEW, source); -#line 1632 "OfflinePage.c" -} - - -static void -offline_page_offline_view_class_init (OfflinePageOfflineViewClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - offline_page_offline_view_parent_class = g_type_class_peek_parent (klass); -#line 1641 "OfflinePage.c" -} - - -static void -offline_page_offline_view_instance_init (OfflinePageOfflineView * self) -{ -} - - -static GType -offline_page_offline_view_get_type (void) -{ - static volatile gsize offline_page_offline_view_type_id__volatile = 0; - if (g_once_init_enter (&offline_page_offline_view_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (OfflinePageOfflineViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) offline_page_offline_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (OfflinePageOfflineView), 0, (GInstanceInitFunc) offline_page_offline_view_instance_init, NULL }; - GType offline_page_offline_view_type_id; - offline_page_offline_view_type_id = g_type_register_static (TYPE_THUMBNAIL, "OfflinePageOfflineView", &g_define_type_info, 0); - g_once_init_leave (&offline_page_offline_view_type_id__volatile, offline_page_offline_view_type_id); - } - return offline_page_offline_view_type_id__volatile; -} - - -static guint -offline_page_offline_search_view_filter_real_get_criteria (SearchViewFilter* base) -{ - OfflinePageOfflineSearchViewFilter * self; - guint result = 0U; -#line 19 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, OFFLINE_PAGE_TYPE_OFFLINE_SEARCH_VIEW_FILTER, OfflinePageOfflineSearchViewFilter); -#line 20 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - result = (guint) ((((SEARCH_FILTER_CRITERIA_TEXT | SEARCH_FILTER_CRITERIA_FLAG) | SEARCH_FILTER_CRITERIA_MEDIA) | SEARCH_FILTER_CRITERIA_RATING) | SEARCH_FILTER_CRITERIA_SAVEDSEARCH); -#line 20 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - return result; -#line 1676 "OfflinePage.c" -} - - -static OfflinePageOfflineSearchViewFilter* -offline_page_offline_search_view_filter_construct (GType object_type) -{ - OfflinePageOfflineSearchViewFilter* self = NULL; -#line 18 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - self = (OfflinePageOfflineSearchViewFilter*) default_search_view_filter_construct (object_type); -#line 18 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - return self; -#line 1688 "OfflinePage.c" -} - - -static OfflinePageOfflineSearchViewFilter* -offline_page_offline_search_view_filter_new (void) -{ -#line 18 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - return offline_page_offline_search_view_filter_construct (OFFLINE_PAGE_TYPE_OFFLINE_SEARCH_VIEW_FILTER); -#line 1697 "OfflinePage.c" -} - - -static void -offline_page_offline_search_view_filter_class_init (OfflinePageOfflineSearchViewFilterClass * klass) -{ -#line 18 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - offline_page_offline_search_view_filter_parent_class = g_type_class_peek_parent (klass); -#line 18 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - ((SearchViewFilterClass *) klass)->get_criteria = (guint (*) (SearchViewFilter *)) offline_page_offline_search_view_filter_real_get_criteria; -#line 1708 "OfflinePage.c" -} - - -static void -offline_page_offline_search_view_filter_instance_init (OfflinePageOfflineSearchViewFilter * self) -{ -} - - -static GType -offline_page_offline_search_view_filter_get_type (void) -{ - static volatile gsize offline_page_offline_search_view_filter_type_id__volatile = 0; - if (g_once_init_enter (&offline_page_offline_search_view_filter_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (OfflinePageOfflineSearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) offline_page_offline_search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (OfflinePageOfflineSearchViewFilter), 0, (GInstanceInitFunc) offline_page_offline_search_view_filter_instance_init, NULL }; - GType offline_page_offline_search_view_filter_type_id; - offline_page_offline_search_view_filter_type_id = g_type_register_static (TYPE_DEFAULT_SEARCH_VIEW_FILTER, "OfflinePageOfflineSearchViewFilter", &g_define_type_info, 0); - g_once_init_leave (&offline_page_offline_search_view_filter_type_id__volatile, offline_page_offline_search_view_filter_type_id); - } - return offline_page_offline_search_view_filter_type_id__volatile; -} - - -static void -offline_page_class_init (OfflinePageClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - offline_page_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_type_class_add_private (klass, sizeof (OfflinePagePrivate)); -#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) offline_page_real_init_collect_ui_filenames; -#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) offline_page_real_add_actions; -#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) offline_page_real_remove_actions; -#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - ((CheckerboardPageClass *) klass)->get_view_tracker = (CoreViewTracker* (*) (CheckerboardPage *)) offline_page_real_get_view_tracker; -#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) offline_page_real_update_actions; -#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - ((CheckerboardPageClass *) klass)->get_search_view_filter = (SearchViewFilter* (*) (CheckerboardPage *)) offline_page_real_get_search_view_filter; -#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - G_OBJECT_CLASS (klass)->finalize = offline_page_finalize; -#line 1753 "OfflinePage.c" -} - - -static void -offline_page_instance_init (OfflinePage * self) -{ - OfflinePageOfflineSearchViewFilter* _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - self->priv = OFFLINE_PAGE_GET_PRIVATE (self); -#line 25 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp0_ = offline_page_offline_search_view_filter_new (); -#line 25 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - self->priv->search_filter = _tmp0_; -#line 1767 "OfflinePage.c" -} - - -static void -offline_page_finalize (GObject * obj) -{ - OfflinePage * self; - LibraryPhotoSourceCollection* _tmp0_; - guint _tmp1_; - VideoSourceCollection* _tmp2_; - guint _tmp3_; -#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_OFFLINE_PAGE, OfflinePage); -#line 45 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp0_ = library_photo_global; -#line 45 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_signal_parse_name ("offline-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp1_, NULL, FALSE); -#line 45 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _offline_page_on_offline_contents_altered_media_source_collection_offline_contents_altered, self); -#line 46 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _tmp2_ = video_global; -#line 46 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_signal_parse_name ("offline-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp3_, NULL, FALSE); -#line 46 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _offline_page_on_offline_contents_altered_media_source_collection_offline_contents_altered, self); -#line 25 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _view_filter_unref0 (self->priv->search_filter); -#line 26 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - _core_tracker_unref0 (self->priv->tracker); -#line 7 "/home/jens/Source/shotwell/src/library/OfflinePage.vala" - G_OBJECT_CLASS (offline_page_parent_class)->finalize (obj); -#line 1799 "OfflinePage.c" -} - - -GType -offline_page_get_type (void) -{ - static volatile gsize offline_page_type_id__volatile = 0; - if (g_once_init_enter (&offline_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (OfflinePageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) offline_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (OfflinePage), 0, (GInstanceInitFunc) offline_page_instance_init, NULL }; - GType offline_page_type_id; - offline_page_type_id = g_type_register_static (TYPE_CHECKERBOARD_PAGE, "OfflinePage", &g_define_type_info, 0); - g_once_init_leave (&offline_page_type_id__volatile, offline_page_type_id); - } - return offline_page_type_id__volatile; -} - - - diff --git a/src/library/OfflineSidebarEntry.c b/src/library/OfflineSidebarEntry.c deleted file mode 100644 index 712a354..0000000 --- a/src/library/OfflineSidebarEntry.c +++ /dev/null @@ -1,739 +0,0 @@ -/* OfflineSidebarEntry.c generated by valac 0.40.4, the Vala compiler - * generated from OfflineSidebarEntry.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ()) -#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry)) -#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY)) -#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface)) - -typedef struct _SidebarEntry SidebarEntry; -typedef struct _SidebarEntryIface SidebarEntryIface; - -#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ()) -#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree)) -#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass)) -#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass)) - -typedef struct _SidebarTree SidebarTree; -typedef struct _SidebarTreeClass SidebarTreeClass; - -#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ()) -#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry)) -#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY)) -#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface)) - -typedef struct _SidebarSelectableEntry SidebarSelectableEntry; -typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface; - -#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ()) -#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)) -#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE)) -#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface)) - -typedef struct _SidebarPageRepresentative SidebarPageRepresentative; -typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ()) -#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable)) -#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE)) -#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface)) - -typedef struct _SidebarContextable SidebarContextable; -typedef struct _SidebarContextableIface SidebarContextableIface; - -#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ()) -#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) - -typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry; -typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass; -typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate; - -#define LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY (library_hideable_page_entry_get_type ()) -#define LIBRARY_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry)) -#define LIBRARY_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass)) -#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY)) -#define LIBRARY_IS_HIDEABLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY)) -#define LIBRARY_HIDEABLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntryClass)) - -typedef struct _LibraryHideablePageEntry LibraryHideablePageEntry; -typedef struct _LibraryHideablePageEntryClass LibraryHideablePageEntryClass; -typedef struct _LibraryHideablePageEntryPrivate LibraryHideablePageEntryPrivate; - -#define LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY (library_offline_sidebar_entry_get_type ()) -#define LIBRARY_OFFLINE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntry)) -#define LIBRARY_OFFLINE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntryClass)) -#define LIBRARY_IS_OFFLINE_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY)) -#define LIBRARY_IS_OFFLINE_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY)) -#define LIBRARY_OFFLINE_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntryClass)) - -typedef struct _LibraryOfflineSidebarEntry LibraryOfflineSidebarEntry; -typedef struct _LibraryOfflineSidebarEntryClass LibraryOfflineSidebarEntryClass; -typedef struct _LibraryOfflineSidebarEntryPrivate LibraryOfflineSidebarEntryPrivate; -enum { - LIBRARY_OFFLINE_SIDEBAR_ENTRY_0_PROPERTY, - LIBRARY_OFFLINE_SIDEBAR_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* library_offline_sidebar_entry_properties[LIBRARY_OFFLINE_SIDEBAR_ENTRY_NUM_PROPERTIES]; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; - -#define TYPE_OFFLINE_PAGE (offline_page_get_type ()) -#define OFFLINE_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_OFFLINE_PAGE, OfflinePage)) -#define OFFLINE_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_OFFLINE_PAGE, OfflinePageClass)) -#define IS_OFFLINE_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_OFFLINE_PAGE)) -#define IS_OFFLINE_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_OFFLINE_PAGE)) -#define OFFLINE_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_OFFLINE_PAGE, OfflinePageClass)) - -typedef struct _OfflinePage OfflinePage; -typedef struct _OfflinePageClass OfflinePageClass; - -struct _SidebarEntryIface { - GTypeInterface parent_iface; - gchar* (*get_sidebar_name) (SidebarEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarEntry* self); - gchar* (*get_sidebar_icon) (SidebarEntry* self); - gchar* (*to_string) (SidebarEntry* self); - void (*grafted) (SidebarEntry* self, SidebarTree* tree); - void (*pruned) (SidebarEntry* self, SidebarTree* tree); -}; - -struct _SidebarSelectableEntryIface { - GTypeInterface parent_iface; -}; - -struct _SidebarPageRepresentativeIface { - GTypeInterface parent_iface; - gboolean (*has_page) (SidebarPageRepresentative* self); - Page* (*get_page) (SidebarPageRepresentative* self); -}; - -struct _SidebarContextableIface { - GTypeInterface parent_iface; - GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event); -}; - -struct _SidebarSimplePageEntry { - GObject parent_instance; - SidebarSimplePageEntryPrivate * priv; -}; - -struct _SidebarSimplePageEntryClass { - GObjectClass parent_class; - gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self); - gchar* (*to_string) (SidebarSimplePageEntry* self); - Page* (*create_page) (SidebarSimplePageEntry* self); -}; - -struct _LibraryHideablePageEntry { - SidebarSimplePageEntry parent_instance; - LibraryHideablePageEntryPrivate * priv; -}; - -struct _LibraryHideablePageEntryClass { - SidebarSimplePageEntryClass parent_class; -}; - -struct _LibraryOfflineSidebarEntry { - LibraryHideablePageEntry parent_instance; - LibraryOfflineSidebarEntryPrivate * priv; -}; - -struct _LibraryOfflineSidebarEntryClass { - LibraryHideablePageEntryClass parent_class; -}; - - -static gpointer library_offline_sidebar_entry_parent_class = NULL; - -GType sidebar_tree_get_type (void) G_GNUC_CONST; -GType sidebar_entry_get_type (void) G_GNUC_CONST; -GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType sidebar_page_representative_get_type (void) G_GNUC_CONST; -GType sidebar_contextable_get_type (void) G_GNUC_CONST; -GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST; -GType library_hideable_page_entry_get_type (void) G_GNUC_CONST; -GType library_offline_sidebar_entry_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self); -static void library_offline_sidebar_entry_on_offline_contents_altered (LibraryOfflineSidebarEntry* self); -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -static void _library_offline_sidebar_entry_on_offline_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self); -LibraryOfflineSidebarEntry* library_offline_sidebar_entry_new (void); -LibraryOfflineSidebarEntry* library_offline_sidebar_entry_construct (GType object_type); -LibraryHideablePageEntry* library_hideable_page_entry_construct (GType object_type); -static void _library_offline_sidebar_entry_on_offline_contents_altered_media_source_collection_offline_contents_altered (MediaSourceCollection* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self); -static gint library_offline_sidebar_entry_get_total_offline (LibraryOfflineSidebarEntry* self); -void library_hideable_page_entry_set_visible (LibraryHideablePageEntry* self, - gboolean value); -GeeCollection* media_source_collection_get_offline_bin_contents (MediaSourceCollection* self); -static gchar* library_offline_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base); -#define OFFLINE_PAGE_NAME _ ("Missing Files") -static gchar* library_offline_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base); -#define RESOURCES_ICON_MISSING_FILES "process-stop" -static Page* library_offline_sidebar_entry_real_create_page (SidebarSimplePageEntry* base); -OfflinePage* offline_page_new (void); -OfflinePage* offline_page_construct (GType object_type); -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType offline_page_get_type (void) G_GNUC_CONST; -static void library_offline_sidebar_entry_finalize (GObject * obj); - - -static void -_library_offline_sidebar_entry_on_offline_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self) -{ -#line 18 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - library_offline_sidebar_entry_on_offline_contents_altered ((LibraryOfflineSidebarEntry*) self); -#line 365 "OfflineSidebarEntry.c" -} - - -static void -_library_offline_sidebar_entry_on_offline_contents_altered_media_source_collection_offline_contents_altered (MediaSourceCollection* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self) -{ -#line 11 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - library_offline_sidebar_entry_on_offline_contents_altered ((LibraryOfflineSidebarEntry*) self); -#line 377 "OfflineSidebarEntry.c" -} - - -LibraryOfflineSidebarEntry* -library_offline_sidebar_entry_construct (GType object_type) -{ - LibraryOfflineSidebarEntry * self = NULL; -#line 8 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - self = (LibraryOfflineSidebarEntry*) library_hideable_page_entry_construct (object_type); -#line 387 "OfflineSidebarEntry.c" - { - GeeIterator* _media_sources_it = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp2_ = media_collection_registry_get_all (_tmp1_); -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp3_ = _tmp2_; -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp5_ = _tmp4_; -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _g_object_unref0 (_tmp3_); -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _media_sources_it = _tmp5_; -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - while (TRUE) { -#line 416 "OfflineSidebarEntry.c" - GeeIterator* _tmp6_; - MediaSourceCollection* media_sources = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - MediaSourceCollection* _tmp9_; -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp6_ = _media_sources_it; -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - break; -#line 428 "OfflineSidebarEntry.c" - } -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp7_ = _media_sources_it; -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - media_sources = (MediaSourceCollection*) _tmp8_; -#line 11 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp9_ = media_sources; -#line 11 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - g_signal_connect_object (_tmp9_, "offline-contents-altered", (GCallback) _library_offline_sidebar_entry_on_offline_contents_altered_media_source_collection_offline_contents_altered, self, 0); -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _data_collection_unref0 (media_sources); -#line 442 "OfflineSidebarEntry.c" - } -#line 10 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _g_object_unref0 (_media_sources_it); -#line 446 "OfflineSidebarEntry.c" - } -#line 13 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), library_offline_sidebar_entry_get_total_offline (self) != 0); -#line 8 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - return self; -#line 452 "OfflineSidebarEntry.c" -} - - -LibraryOfflineSidebarEntry* -library_offline_sidebar_entry_new (void) -{ -#line 8 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - return library_offline_sidebar_entry_construct (LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY); -#line 461 "OfflineSidebarEntry.c" -} - - -static void -library_offline_sidebar_entry_on_offline_contents_altered (LibraryOfflineSidebarEntry* self) -{ -#line 21 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - g_return_if_fail (LIBRARY_IS_OFFLINE_SIDEBAR_ENTRY (self)); -#line 22 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - library_hideable_page_entry_set_visible (G_TYPE_CHECK_INSTANCE_CAST (self, LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, LibraryHideablePageEntry), library_offline_sidebar_entry_get_total_offline (self) != 0); -#line 472 "OfflineSidebarEntry.c" -} - - -static gint -library_offline_sidebar_entry_get_total_offline (LibraryOfflineSidebarEntry* self) -{ - gint result = 0; - gint total = 0; -#line 25 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - g_return_val_if_fail (LIBRARY_IS_OFFLINE_SIDEBAR_ENTRY (self), 0); -#line 26 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - total = 0; -#line 485 "OfflineSidebarEntry.c" - { - GeeIterator* _media_sources_it = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp2_ = media_collection_registry_get_all (_tmp1_); -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp3_ = _tmp2_; -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp5_ = _tmp4_; -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _g_object_unref0 (_tmp3_); -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _media_sources_it = _tmp5_; -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - while (TRUE) { -#line 514 "OfflineSidebarEntry.c" - GeeIterator* _tmp6_; - MediaSourceCollection* media_sources = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - gint _tmp9_; - MediaSourceCollection* _tmp10_; - GeeCollection* _tmp11_; - GeeCollection* _tmp12_; - gint _tmp13_; - gint _tmp14_; -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp6_ = _media_sources_it; -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - break; -#line 531 "OfflineSidebarEntry.c" - } -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp7_ = _media_sources_it; -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - media_sources = (MediaSourceCollection*) _tmp8_; -#line 28 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp9_ = total; -#line 28 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp10_ = media_sources; -#line 28 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp11_ = media_source_collection_get_offline_bin_contents (_tmp10_); -#line 28 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp12_ = _tmp11_; -#line 28 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp13_ = gee_collection_get_size (_tmp12_); -#line 28 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp14_ = _tmp13_; -#line 28 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - total = _tmp9_ + _tmp14_; -#line 28 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _g_object_unref0 (_tmp12_); -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _data_collection_unref0 (media_sources); -#line 557 "OfflineSidebarEntry.c" - } -#line 27 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _g_object_unref0 (_media_sources_it); -#line 561 "OfflineSidebarEntry.c" - } -#line 30 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - result = total; -#line 30 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - return result; -#line 567 "OfflineSidebarEntry.c" -} - - -static gchar* -library_offline_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) -{ - LibraryOfflineSidebarEntry * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 33 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntry); -#line 34 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp0_ = g_strdup (OFFLINE_PAGE_NAME); -#line 34 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - result = _tmp0_; -#line 34 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - return result; -#line 585 "OfflineSidebarEntry.c" -} - - -static gchar* -library_offline_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) -{ - LibraryOfflineSidebarEntry * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 37 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntry); -#line 38 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp0_ = g_strdup (RESOURCES_ICON_MISSING_FILES); -#line 38 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - result = _tmp0_; -#line 38 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - return result; -#line 603 "OfflineSidebarEntry.c" -} - - -static Page* -library_offline_sidebar_entry_real_create_page (SidebarSimplePageEntry* base) -{ - LibraryOfflineSidebarEntry * self; - Page* result = NULL; - OfflinePage* _tmp0_; -#line 41 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntry); -#line 42 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp0_ = offline_page_new (); -#line 42 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - g_object_ref_sink (_tmp0_); -#line 42 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page); -#line 42 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - return result; -#line 623 "OfflineSidebarEntry.c" -} - - -static void -library_offline_sidebar_entry_class_init (LibraryOfflineSidebarEntryClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - library_offline_sidebar_entry_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) library_offline_sidebar_entry_real_get_sidebar_name; -#line 7 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) library_offline_sidebar_entry_real_get_sidebar_icon; -#line 7 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) library_offline_sidebar_entry_real_create_page; -#line 7 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - G_OBJECT_CLASS (klass)->finalize = library_offline_sidebar_entry_finalize; -#line 640 "OfflineSidebarEntry.c" -} - - -static void -library_offline_sidebar_entry_instance_init (LibraryOfflineSidebarEntry * self) -{ -} - - -static void -library_offline_sidebar_entry_finalize (GObject * obj) -{ - LibraryOfflineSidebarEntry * self; -#line 7 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_TYPE_OFFLINE_SIDEBAR_ENTRY, LibraryOfflineSidebarEntry); -#line 656 "OfflineSidebarEntry.c" - { - GeeIterator* _media_sources_it = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp2_ = media_collection_registry_get_all (_tmp1_); -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp3_ = _tmp2_; -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp5_ = _tmp4_; -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _g_object_unref0 (_tmp3_); -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _media_sources_it = _tmp5_; -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - while (TRUE) { -#line 685 "OfflineSidebarEntry.c" - GeeIterator* _tmp6_; - MediaSourceCollection* media_sources = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - MediaSourceCollection* _tmp9_; - guint _tmp10_; -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp6_ = _media_sources_it; -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - break; -#line 698 "OfflineSidebarEntry.c" - } -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp7_ = _media_sources_it; -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - media_sources = (MediaSourceCollection*) _tmp8_; -#line 18 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _tmp9_ = media_sources; -#line 18 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - g_signal_parse_name ("trashcan-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp10_, NULL, FALSE); -#line 18 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _library_offline_sidebar_entry_on_offline_contents_altered_media_source_collection_trashcan_contents_altered, self); -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _data_collection_unref0 (media_sources); -#line 714 "OfflineSidebarEntry.c" - } -#line 17 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - _g_object_unref0 (_media_sources_it); -#line 718 "OfflineSidebarEntry.c" - } -#line 7 "/home/jens/Source/shotwell/src/library/OfflineSidebarEntry.vala" - G_OBJECT_CLASS (library_offline_sidebar_entry_parent_class)->finalize (obj); -#line 722 "OfflineSidebarEntry.c" -} - - -GType -library_offline_sidebar_entry_get_type (void) -{ - static volatile gsize library_offline_sidebar_entry_type_id__volatile = 0; - if (g_once_init_enter (&library_offline_sidebar_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryOfflineSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_offline_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryOfflineSidebarEntry), 0, (GInstanceInitFunc) library_offline_sidebar_entry_instance_init, NULL }; - GType library_offline_sidebar_entry_type_id; - library_offline_sidebar_entry_type_id = g_type_register_static (LIBRARY_TYPE_HIDEABLE_PAGE_ENTRY, "LibraryOfflineSidebarEntry", &g_define_type_info, 0); - g_once_init_leave (&library_offline_sidebar_entry_type_id__volatile, library_offline_sidebar_entry_type_id); - } - return library_offline_sidebar_entry_type_id__volatile; -} - - - diff --git a/src/library/TrashPage.c b/src/library/TrashPage.c deleted file mode 100644 index 9d1f7a9..0000000 --- a/src/library/TrashPage.c +++ /dev/null @@ -1,1722 +0,0 @@ -/* TrashPage.c generated by valac 0.40.4, the Vala compiler - * generated from TrashPage.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; -typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; - -#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ()) - -#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ()) -typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ()) -#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)) -#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) -#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER)) -#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER)) -#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) - -typedef struct _SearchViewFilter SearchViewFilter; -typedef struct _SearchViewFilterClass SearchViewFilterClass; - -#define CORE_TYPE_TRACKER (core_tracker_get_type ()) -#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) -#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) -#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) -#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) -#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) - -typedef struct _CoreTracker CoreTracker; -typedef struct _CoreTrackerClass CoreTrackerClass; - -#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) -#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) -#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) -#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) -#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) -#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) - -typedef struct _CoreViewTracker CoreViewTracker; -typedef struct _CoreViewTrackerClass CoreViewTrackerClass; - -#define TYPE_TRASH_PAGE (trash_page_get_type ()) -#define TRASH_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRASH_PAGE, TrashPage)) -#define TRASH_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRASH_PAGE, TrashPageClass)) -#define IS_TRASH_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRASH_PAGE)) -#define IS_TRASH_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRASH_PAGE)) -#define TRASH_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRASH_PAGE, TrashPageClass)) - -typedef struct _TrashPage TrashPage; -typedef struct _TrashPageClass TrashPageClass; -typedef struct _TrashPagePrivate TrashPagePrivate; - -#define TYPE_DEFAULT_SEARCH_VIEW_FILTER (default_search_view_filter_get_type ()) -#define DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilter)) -#define DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass)) -#define IS_DEFAULT_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER)) -#define IS_DEFAULT_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DEFAULT_SEARCH_VIEW_FILTER)) -#define DEFAULT_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DEFAULT_SEARCH_VIEW_FILTER, DefaultSearchViewFilterClass)) - -typedef struct _DefaultSearchViewFilter DefaultSearchViewFilter; -typedef struct _DefaultSearchViewFilterClass DefaultSearchViewFilterClass; - -#define TRASH_PAGE_TYPE_TRASH_SEARCH_VIEW_FILTER (trash_page_trash_search_view_filter_get_type ()) -#define TRASH_PAGE_TRASH_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRASH_PAGE_TYPE_TRASH_SEARCH_VIEW_FILTER, TrashPageTrashSearchViewFilter)) -#define TRASH_PAGE_TRASH_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRASH_PAGE_TYPE_TRASH_SEARCH_VIEW_FILTER, TrashPageTrashSearchViewFilterClass)) -#define TRASH_PAGE_IS_TRASH_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRASH_PAGE_TYPE_TRASH_SEARCH_VIEW_FILTER)) -#define TRASH_PAGE_IS_TRASH_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRASH_PAGE_TYPE_TRASH_SEARCH_VIEW_FILTER)) -#define TRASH_PAGE_TRASH_SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRASH_PAGE_TYPE_TRASH_SEARCH_VIEW_FILTER, TrashPageTrashSearchViewFilterClass)) - -typedef struct _TrashPageTrashSearchViewFilter TrashPageTrashSearchViewFilter; -typedef struct _TrashPageTrashSearchViewFilterClass TrashPageTrashSearchViewFilterClass; - -#define TYPE_MEDIA_VIEW_TRACKER (media_view_tracker_get_type ()) -#define MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTracker)) -#define MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass)) -#define IS_MEDIA_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_VIEW_TRACKER)) -#define IS_MEDIA_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_VIEW_TRACKER)) -#define MEDIA_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_VIEW_TRACKER, MediaViewTrackerClass)) - -typedef struct _MediaViewTracker MediaViewTracker; -typedef struct _MediaViewTrackerClass MediaViewTrackerClass; -enum { - TRASH_PAGE_0_PROPERTY, - TRASH_PAGE_NUM_PROPERTIES -}; -static GParamSpec* trash_page_properties[TRASH_PAGE_NUM_PROPERTIES]; -#define _view_filter_unref0(var) ((var == NULL) ? NULL : (var = (view_filter_unref (var), NULL))) -#define _core_tracker_unref0(var) ((var == NULL) ? NULL : (var = (core_tracker_unref (var), NULL))) - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ()) -#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) - -typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; -typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_VIDEO_SOURCE_COLLECTION (video_source_collection_get_type ()) -#define VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection)) -#define VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) -#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION)) -#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION)) -#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) - -typedef struct _VideoSourceCollection VideoSourceCollection; -typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_MEDIA_SOURCE_ITEM (media_source_item_get_type ()) -#define MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItem)) -#define MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) -#define IS_MEDIA_SOURCE_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_ITEM)) -#define IS_MEDIA_SOURCE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_ITEM)) -#define MEDIA_SOURCE_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_ITEM, MediaSourceItemClass)) - -typedef struct _MediaSourceItem MediaSourceItem; -typedef struct _MediaSourceItemClass MediaSourceItemClass; - -#define TYPE_THUMBNAIL (thumbnail_get_type ()) -#define THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL, Thumbnail)) -#define THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL, ThumbnailClass)) -#define IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL)) -#define IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL)) -#define THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL, ThumbnailClass)) - -typedef struct _Thumbnail Thumbnail; -typedef struct _ThumbnailClass ThumbnailClass; - -#define TRASH_PAGE_TYPE_TRASH_VIEW (trash_page_trash_view_get_type ()) -#define TRASH_PAGE_TRASH_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRASH_PAGE_TYPE_TRASH_VIEW, TrashPageTrashView)) -#define TRASH_PAGE_TRASH_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRASH_PAGE_TYPE_TRASH_VIEW, TrashPageTrashViewClass)) -#define TRASH_PAGE_IS_TRASH_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRASH_PAGE_TYPE_TRASH_VIEW)) -#define TRASH_PAGE_IS_TRASH_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRASH_PAGE_TYPE_TRASH_VIEW)) -#define TRASH_PAGE_TRASH_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRASH_PAGE_TYPE_TRASH_VIEW, TrashPageTrashViewClass)) - -typedef struct _TrashPageTrashView TrashPageTrashView; -typedef struct _TrashPageTrashViewClass TrashPageTrashViewClass; - -#define TYPE_MARKER (marker_get_type ()) -#define MARKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MARKER, Marker)) -#define IS_MARKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MARKER)) -#define MARKER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_MARKER, MarkerIface)) - -typedef struct _Marker Marker; -typedef struct _MarkerIface MarkerIface; - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; - -#define TYPE_TRASH_UNTRASH_PHOTOS_COMMAND (trash_untrash_photos_command_get_type ()) -#define TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommand)) -#define TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass)) -#define IS_TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND)) -#define IS_TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND)) -#define TRASH_UNTRASH_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass)) - -typedef struct _TrashUntrashPhotosCommand TrashUntrashPhotosCommand; -typedef struct _TrashUntrashPhotosCommandClass TrashUntrashPhotosCommandClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; -typedef struct _DataViewPrivate DataViewPrivate; -typedef struct _ThumbnailViewPrivate ThumbnailViewPrivate; -typedef struct _CheckerboardItemPrivate CheckerboardItemPrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -typedef struct _MediaSourceItemPrivate MediaSourceItemPrivate; -typedef struct _ThumbnailPrivate ThumbnailPrivate; -typedef struct _TrashPageTrashViewPrivate TrashPageTrashViewPrivate; -enum { - TRASH_PAGE_TRASH_VIEW_0_PROPERTY, - TRASH_PAGE_TRASH_VIEW_NUM_PROPERTIES -}; -static GParamSpec* trash_page_trash_view_properties[TRASH_PAGE_TRASH_VIEW_NUM_PROPERTIES]; -typedef struct _ViewFilterPrivate ViewFilterPrivate; -typedef struct _SearchViewFilterPrivate SearchViewFilterPrivate; -typedef struct _DefaultSearchViewFilterPrivate DefaultSearchViewFilterPrivate; -typedef struct _TrashPageTrashSearchViewFilterPrivate TrashPageTrashSearchViewFilterPrivate; - -#define TYPE_SEARCH_FILTER_CRITERIA (search_filter_criteria_get_type ()) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -typedef enum { - CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, - CHECKERBOARD_PAGE_ACTIVATOR_MOUSE -} CheckerboardPageActivator; - -struct _CheckerboardPageKeyboardModifiers { - gboolean ctrl_pressed; - gboolean alt_pressed; - gboolean shift_pressed; - gboolean super_pressed; -}; - -struct _CheckerboardPage { - Page parent_instance; - CheckerboardPagePrivate * priv; - CheckerboardItem* anchor; - CheckerboardItem* cursor; -}; - -struct _CheckerboardPageClass { - PageClass parent_class; - GtkMenu* (*get_item_context_menu) (CheckerboardPage* self); - gchar* (*get_view_empty_message) (CheckerboardPage* self); - gchar* (*get_filter_no_match_message) (CheckerboardPage* self); - void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers); - SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self); - CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self); - gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask); - void (*set_display_titles) (CheckerboardPage* self, gboolean display); - void (*set_display_comments) (CheckerboardPage* self, gboolean display); -}; - -struct _TrashPage { - CheckerboardPage parent_instance; - TrashPagePrivate * priv; -}; - -struct _TrashPageClass { - CheckerboardPageClass parent_class; -}; - -struct _TrashPagePrivate { - TrashPageTrashSearchViewFilter* search_filter; - MediaViewTracker* tracker; -}; - -struct _MarkerIface { - GTypeInterface parent_iface; - void (*mark) (Marker* self, DataObject* object); - void (*unmark) (Marker* self, DataObject* object); - gboolean (*toggle) (Marker* self, DataObject* object); - void (*mark_many) (Marker* self, GeeCollection* list); - void (*unmark_many) (Marker* self, GeeCollection* list); - void (*mark_all) (Marker* self); - gint (*get_count) (Marker* self); - GeeCollection* (*get_all) (Marker* self); -}; - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataView { - DataObject parent_instance; - DataViewPrivate * priv; -}; - -struct _DataViewClass { - DataObjectClass parent_class; - void (*notify_view_altered) (DataView* self); - void (*notify_geometry_altered) (DataView* self); - void (*notify_unsubscribed) (DataView* self, DataSource* source); - void (*state_changed) (DataView* self, gboolean selected); - void (*visibility_changed) (DataView* self, gboolean visible); - void (*view_altered) (DataView* self); - void (*geometry_altered) (DataView* self); - void (*unsubscribed) (DataView* self, DataSource* source); -}; - -struct _ThumbnailView { - DataView parent_instance; - ThumbnailViewPrivate * priv; -}; - -struct _ThumbnailViewClass { - DataViewClass parent_class; - void (*notify_thumbnail_altered) (ThumbnailView* self); - void (*thumbnail_altered) (ThumbnailView* self); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _CheckerboardItem { - ThumbnailView parent_instance; - CheckerboardItemPrivate * priv; - Dimensions requisition; - GdkRectangle allocation; -}; - -struct _CheckerboardItemClass { - ThumbnailViewClass parent_class; - void (*exposed) (CheckerboardItem* self); - void (*unexposed) (CheckerboardItem* self); - gboolean (*is_exposed) (CheckerboardItem* self); - void (*paint_shadow) (CheckerboardItem* self, cairo_t* ctx, Dimensions* dimensions, GdkPoint* origin, gint radius, gfloat initial_alpha); - void (*paint_border) (CheckerboardItem* self, cairo_t* ctx, Dimensions* object_dimensions, GdkPoint* object_origin, gint border_width); - void (*paint_image) (CheckerboardItem* self, cairo_t* ctx, GdkPixbuf* pixbuf, GdkPoint* origin); - GdkPixbuf* (*get_top_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_top_right_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_left_trinket) (CheckerboardItem* self, gint scale); - GdkPixbuf* (*get_bottom_right_trinket) (CheckerboardItem* self, gint scale); -}; - -struct _MediaSourceItem { - CheckerboardItem parent_instance; - MediaSourceItemPrivate * priv; -}; - -struct _MediaSourceItemClass { - CheckerboardItemClass parent_class; -}; - -struct _Thumbnail { - MediaSourceItem parent_instance; - ThumbnailPrivate * priv; -}; - -struct _ThumbnailClass { - MediaSourceItemClass parent_class; -}; - -struct _TrashPageTrashView { - Thumbnail parent_instance; - TrashPageTrashViewPrivate * priv; -}; - -struct _TrashPageTrashViewClass { - ThumbnailClass parent_class; -}; - -struct _ViewFilter { - GTypeInstance parent_instance; - volatile int ref_count; - ViewFilterPrivate * priv; -}; - -struct _ViewFilterClass { - GTypeClass parent_class; - void (*finalize) (ViewFilter *self); - gboolean (*predicate) (ViewFilter* self, DataView* view); - void (*refresh) (ViewFilter* self); -}; - -struct _SearchViewFilter { - ViewFilter parent_instance; - SearchViewFilterPrivate * priv; -}; - -struct _SearchViewFilterClass { - ViewFilterClass parent_class; - guint (*get_criteria) (SearchViewFilter* self); -}; - -struct _DefaultSearchViewFilter { - SearchViewFilter parent_instance; - DefaultSearchViewFilterPrivate * priv; -}; - -struct _DefaultSearchViewFilterClass { - SearchViewFilterClass parent_class; -}; - -struct _TrashPageTrashSearchViewFilter { - DefaultSearchViewFilter parent_instance; - TrashPageTrashSearchViewFilterPrivate * priv; -}; - -struct _TrashPageTrashSearchViewFilterClass { - DefaultSearchViewFilterClass parent_class; -}; - -typedef enum { - SEARCH_FILTER_CRITERIA_NONE = 0, - SEARCH_FILTER_CRITERIA_RECURSIVE = 1 << 0, - SEARCH_FILTER_CRITERIA_TEXT = 1 << 1, - SEARCH_FILTER_CRITERIA_FLAG = 1 << 2, - SEARCH_FILTER_CRITERIA_MEDIA = 1 << 3, - SEARCH_FILTER_CRITERIA_RATING = 1 << 4, - SEARCH_FILTER_CRITERIA_SAVEDSEARCH = 1 << 5, - SEARCH_FILTER_CRITERIA_ALL = 0xFFFFFFFFLL -} SearchFilterCriteria; - - -static gpointer trash_page_parent_class = NULL; -extern LibraryPhotoSourceCollection* library_photo_global; -extern VideoSourceCollection* video_global; -static gpointer trash_page_trash_view_parent_class = NULL; -static gpointer trash_page_trash_search_view_filter_parent_class = NULL; - -GType page_get_type (void) G_GNUC_CONST; -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType checkerboard_page_activator_get_type (void) G_GNUC_CONST; -GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST; -CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self); -void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self); -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -GType search_view_filter_get_type (void) G_GNUC_CONST; -gpointer core_tracker_ref (gpointer instance); -void core_tracker_unref (gpointer instance); -GParamSpec* core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void core_value_set_tracker (GValue* value, - gpointer v_object); -void core_value_take_tracker (GValue* value, - gpointer v_object); -gpointer core_value_get_tracker (const GValue* value); -GType core_tracker_get_type (void) G_GNUC_CONST; -GType core_view_tracker_get_type (void) G_GNUC_CONST; -GType trash_page_get_type (void) G_GNUC_CONST; -GType default_search_view_filter_get_type (void) G_GNUC_CONST; -static GType trash_page_trash_search_view_filter_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -GType media_view_tracker_get_type (void) G_GNUC_CONST; -#define TRASH_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TRASH_PAGE, TrashPagePrivate)) -static TrashPageTrashSearchViewFilter* trash_page_trash_search_view_filter_new (void); -static TrashPageTrashSearchViewFilter* trash_page_trash_search_view_filter_construct (GType object_type); -#define TRASH_PAGE_NAME _ ("Trash") -static void trash_page_on_delete (TrashPage* self); -static void _trash_page_on_delete_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void trash_page_on_restore (TrashPage* self); -static void _trash_page_on_restore_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -TrashPage* trash_page_new (void); -TrashPage* trash_page_construct (GType object_type); -CheckerboardPage* checkerboard_page_construct (GType object_type, - const gchar* page_name); -void checkerboard_page_init_item_context_menu (CheckerboardPage* self, - const gchar* path); -void checkerboard_page_init_page_context_menu (CheckerboardPage* self, - const gchar* path); -void page_init_toolbar (Page* self, - const gchar* path); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -MediaViewTracker* media_view_tracker_new (ViewCollection* collection); -MediaViewTracker* media_view_tracker_construct (GType object_type, - ViewCollection* collection); -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -static void trash_page_on_trashcan_contents_altered (TrashPage* self, - GeeCollection* added, - GeeCollection* removed); -static void _trash_page_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self); -GType video_source_collection_get_type (void) G_GNUC_CONST; -GeeCollection* media_source_collection_get_trashcan_contents (MediaSourceCollection* self); -static void trash_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames); -void page_init_collect_ui_filenames (Page* self, - GeeList* ui_filenames); -static void trash_page_real_add_actions (Page* base, - GActionMap* map); -void page_add_actions (Page* self, - GActionMap* map); -static void trash_page_real_remove_actions (Page* base, - GActionMap* map); -void page_remove_actions (Page* self, - GActionMap* map); -static CoreViewTracker* trash_page_real_get_view_tracker (CheckerboardPage* base); -static void trash_page_real_update_actions (Page* base, - gint selected_count, - gint count); -void page_set_action_sensitive (Page* self, - const gchar* name, - gboolean sensitive); -void page_set_common_action_important (Page* self, - const gchar* name, - gboolean important); -void page_update_actions (Page* self, - gint selected_count, - gint count); -gboolean data_collection_add (DataCollection* self, - DataObject* object); -static TrashPageTrashView* trash_page_trash_view_new (MediaSource* source); -static TrashPageTrashView* trash_page_trash_view_construct (GType object_type, - MediaSource* source); -GType media_source_item_get_type (void) G_GNUC_CONST; -GType thumbnail_get_type (void) G_GNUC_CONST; -static GType trash_page_trash_view_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -GType marker_get_type (void) G_GNUC_CONST; -Marker* data_collection_start_marking (DataCollection* self); -void marker_mark (Marker* self, - DataObject* object); -DataView* view_collection_get_view_for_source (ViewCollection* self, - DataSource* source); -void data_collection_remove_marked (DataCollection* self, - Marker* m); -gint view_collection_get_selected_count (ViewCollection* self); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* page_get_command_manager (Page* self); -GType command_get_type (void) G_GNUC_CONST; -void command_manager_execute (CommandManager* self, - Command* command); -GeeList* view_collection_get_selected_sources (ViewCollection* self); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -TrashUntrashPhotosCommand* trash_untrash_photos_command_new (GeeCollection* sources, - gboolean to_trash); -TrashUntrashPhotosCommand* trash_untrash_photos_command_construct (GType object_type, - GeeCollection* sources, - gboolean to_trash); -GType page_command_get_type (void) G_GNUC_CONST; -GType trash_untrash_photos_command_get_type (void) G_GNUC_CONST; -static gchar* trash_page_real_get_view_empty_message (CheckerboardPage* base); -void remove_from_app (GeeCollection* sources, - const gchar* dialog_title, - const gchar* progress_dialog_text); -static SearchViewFilter* trash_page_real_get_search_view_filter (CheckerboardPage* base); -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -gint thumbnail_get_DEFAULT_SCALE (void); -Thumbnail* thumbnail_new (MediaSource* media, - gint scale); -Thumbnail* thumbnail_construct (GType object_type, - MediaSource* media, - gint scale); -gboolean media_source_is_trashed (MediaSource* self); -static guint trash_page_trash_search_view_filter_real_get_criteria (SearchViewFilter* base); -GType search_filter_criteria_get_type (void) G_GNUC_CONST; -DefaultSearchViewFilter* default_search_view_filter_construct (GType object_type); -static void trash_page_finalize (GObject * obj); - -static const GActionEntry TRASH_PAGE_entries[2] = {{"Delete", _trash_page_on_delete_gsimple_action_activate_callback}, {"Restore", _trash_page_on_restore_gsimple_action_activate_callback}}; - -static void -_trash_page_on_delete_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 50 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - trash_page_on_delete ((TrashPage*) self); -#line 958 "TrashPage.c" -} - - -static void -_trash_page_on_restore_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 50 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - trash_page_on_restore ((TrashPage*) self); -#line 969 "TrashPage.c" -} - - -static void -_trash_page_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self) -{ -#line 38 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - trash_page_on_trashcan_contents_altered ((TrashPage*) self, added, removed); -#line 981 "TrashPage.c" -} - - -TrashPage* -trash_page_construct (GType object_type) -{ - TrashPage * self = NULL; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - MediaViewTracker* _tmp2_; - LibraryPhotoSourceCollection* _tmp3_; - VideoSourceCollection* _tmp4_; - LibraryPhotoSourceCollection* _tmp5_; - GeeCollection* _tmp6_; - GeeCollection* _tmp7_; - VideoSourceCollection* _tmp8_; - GeeCollection* _tmp9_; - GeeCollection* _tmp10_; -#line 29 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - self = (TrashPage*) checkerboard_page_construct (object_type, TRASH_PAGE_NAME); -#line 31 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - checkerboard_page_init_item_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "TrashContextMenu"); -#line 32 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - checkerboard_page_init_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "TrashPageMenu"); -#line 33 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - page_init_toolbar (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "TrashToolbar"); -#line 35 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 35 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp1_ = _tmp0_; -#line 35 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp2_ = media_view_tracker_new (_tmp1_); -#line 35 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _core_tracker_unref0 (self->priv->tracker); -#line 35 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - self->priv->tracker = _tmp2_; -#line 35 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _data_collection_unref0 (_tmp1_); -#line 38 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp3_ = library_photo_global; -#line 38 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "trashcan-contents-altered", (GCallback) _trash_page_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self, 0); -#line 39 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp4_ = video_global; -#line 39 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "trashcan-contents-altered", (GCallback) _trash_page_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self, 0); -#line 40 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp5_ = library_photo_global; -#line 40 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp6_ = media_source_collection_get_trashcan_contents (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 40 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp7_ = _tmp6_; -#line 40 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - trash_page_on_trashcan_contents_altered (self, _tmp7_, NULL); -#line 40 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _g_object_unref0 (_tmp7_); -#line 41 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp8_ = video_global; -#line 41 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp9_ = media_source_collection_get_trashcan_contents (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 41 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp10_ = _tmp9_; -#line 41 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - trash_page_on_trashcan_contents_altered (self, _tmp10_, NULL); -#line 41 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _g_object_unref0 (_tmp10_); -#line 28 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - return self; -#line 1050 "TrashPage.c" -} - - -TrashPage* -trash_page_new (void) -{ -#line 28 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - return trash_page_construct (TYPE_TRASH_PAGE); -#line 1059 "TrashPage.c" -} - - -static void -trash_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames) -{ - TrashPage * self; -#line 44 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage); -#line 44 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 45 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - PAGE_CLASS (trash_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), ui_filenames); -#line 47 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "trash.ui"); -#line 1076 "TrashPage.c" -} - - -static void -trash_page_real_add_actions (Page* base, - GActionMap* map) -{ - TrashPage * self; -#line 55 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage); -#line 55 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 56 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - PAGE_CLASS (trash_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), map); -#line 58 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - g_action_map_add_action_entries (map, TRASH_PAGE_entries, G_N_ELEMENTS (TRASH_PAGE_entries), self); -#line 1093 "TrashPage.c" -} - - -static void -trash_page_real_remove_actions (Page* base, - GActionMap* map) -{ - TrashPage * self; -#line 61 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage); -#line 61 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 62 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - PAGE_CLASS (trash_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), map); -#line 1108 "TrashPage.c" - { - GActionEntry* entry_collection = NULL; - gint entry_collection_length1 = 0; - gint _entry_collection_size_ = 0; - gint entry_it = 0; -#line 63 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - entry_collection = TRASH_PAGE_entries; -#line 63 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - entry_collection_length1 = G_N_ELEMENTS (TRASH_PAGE_entries); -#line 63 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - for (entry_it = 0; entry_it < G_N_ELEMENTS (TRASH_PAGE_entries); entry_it = entry_it + 1) { -#line 1120 "TrashPage.c" - GActionEntry entry = {0}; -#line 63 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - entry = entry_collection[entry_it]; -#line 1124 "TrashPage.c" - { - GActionEntry _tmp0_; - const gchar* _tmp1_; -#line 64 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp0_ = entry; -#line 64 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp1_ = _tmp0_.name; -#line 64 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - g_action_map_remove_action (map, _tmp1_); -#line 1134 "TrashPage.c" - } - } - } -} - - -static gpointer -_core_tracker_ref0 (gpointer self) -{ -#line 69 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - return self ? core_tracker_ref (self) : NULL; -#line 1146 "TrashPage.c" -} - - -static CoreViewTracker* -trash_page_real_get_view_tracker (CheckerboardPage* base) -{ - TrashPage * self; - CoreViewTracker* result = NULL; - MediaViewTracker* _tmp0_; - CoreViewTracker* _tmp1_; -#line 68 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage); -#line 69 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp0_ = self->priv->tracker; -#line 69 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp1_ = _core_tracker_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, CORE_TYPE_VIEW_TRACKER, CoreViewTracker)); -#line 69 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - result = _tmp1_; -#line 69 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - return result; -#line 1167 "TrashPage.c" -} - - -static void -trash_page_real_update_actions (Page* base, - gint selected_count, - gint count) -{ - TrashPage * self; - gboolean has_selected = FALSE; -#line 72 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage); -#line 73 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - has_selected = selected_count > 0; -#line 75 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Delete", has_selected); -#line 76 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "Restore", has_selected); -#line 77 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - page_set_common_action_important (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "CommonEmptyTrash", TRUE); -#line 79 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - PAGE_CLASS (trash_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), TYPE_PAGE, Page), selected_count, count); -#line 1190 "TrashPage.c" -} - - -static void -trash_page_on_trashcan_contents_altered (TrashPage* self, - GeeCollection* added, - GeeCollection* removed) -{ -#line 82 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - g_return_if_fail (IS_TRASH_PAGE (self)); -#line 82 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 82 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 84 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - if (added != NULL) { -#line 1207 "TrashPage.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp0_; -#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (added, GEE_TYPE_ITERABLE, GeeIterable)); -#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _source_it = _tmp0_; -#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - while (TRUE) { -#line 1217 "TrashPage.c" - GeeIterator* _tmp1_; - MediaSource* source = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - MediaSource* _tmp6_; - TrashPageTrashView* _tmp7_; - TrashPageTrashView* _tmp8_; -#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp1_ = _source_it; -#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - break; -#line 1233 "TrashPage.c" - } -#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp2_ = _source_it; -#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - source = (MediaSource*) _tmp3_; -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp5_ = _tmp4_; -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp6_ = source; -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp7_ = trash_page_trash_view_new (_tmp6_); -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp8_ = _tmp7_; -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - data_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject)); -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _g_object_unref0 (_tmp8_); -#line 86 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _data_collection_unref0 (_tmp5_); -#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _g_object_unref0 (source); -#line 1259 "TrashPage.c" - } -#line 85 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _g_object_unref0 (_source_it); -#line 1263 "TrashPage.c" - } - } -#line 89 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - if (removed != NULL) { -#line 1268 "TrashPage.c" - Marker* marker = NULL; - ViewCollection* _tmp9_; - ViewCollection* _tmp10_; - Marker* _tmp11_; - Marker* _tmp12_; - ViewCollection* _tmp23_; - ViewCollection* _tmp24_; - Marker* _tmp25_; -#line 90 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp9_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 90 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp10_ = _tmp9_; -#line 90 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp11_ = data_collection_start_marking (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_COLLECTION, DataCollection)); -#line 90 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp12_ = _tmp11_; -#line 90 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _data_collection_unref0 (_tmp10_); -#line 90 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - marker = _tmp12_; -#line 1289 "TrashPage.c" - { - GeeIterator* _source_it = NULL; - GeeIterator* _tmp13_; -#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (removed, GEE_TYPE_ITERABLE, GeeIterable)); -#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _source_it = _tmp13_; -#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - while (TRUE) { -#line 1299 "TrashPage.c" - GeeIterator* _tmp14_; - MediaSource* source = NULL; - GeeIterator* _tmp15_; - gpointer _tmp16_; - Marker* _tmp17_; - ViewCollection* _tmp18_; - ViewCollection* _tmp19_; - MediaSource* _tmp20_; - DataView* _tmp21_; - DataView* _tmp22_; -#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp14_ = _source_it; -#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - if (!gee_iterator_next (_tmp14_)) { -#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - break; -#line 1316 "TrashPage.c" - } -#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp15_ = _source_it; -#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp16_ = gee_iterator_get (_tmp15_); -#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - source = (MediaSource*) _tmp16_; -#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp17_ = marker; -#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp18_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp19_ = _tmp18_; -#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp20_ = source; -#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp21_ = view_collection_get_view_for_source (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_DATA_SOURCE, DataSource)); -#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp22_ = _tmp21_; -#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - marker_mark (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_DATA_OBJECT, DataObject)); -#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _g_object_unref0 (_tmp22_); -#line 92 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _data_collection_unref0 (_tmp19_); -#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _g_object_unref0 (source); -#line 1344 "TrashPage.c" - } -#line 91 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _g_object_unref0 (_source_it); -#line 1348 "TrashPage.c" - } -#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp23_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp24_ = _tmp23_; -#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp25_ = marker; -#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - data_collection_remove_marked (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_DATA_COLLECTION, DataCollection), _tmp25_); -#line 93 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _data_collection_unref0 (_tmp24_); -#line 89 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _g_object_unref0 (marker); -#line 1362 "TrashPage.c" - } -} - - -static void -trash_page_on_restore (TrashPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; - CommandManager* _tmp3_; - CommandManager* _tmp4_; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; - GeeList* _tmp7_; - GeeCollection* _tmp8_; - TrashUntrashPhotosCommand* _tmp9_; - TrashUntrashPhotosCommand* _tmp10_; -#line 97 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - g_return_if_fail (IS_TRASH_PAGE (self)); -#line 98 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 98 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp1_ = _tmp0_; -#line 98 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) == 0; -#line 98 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _data_collection_unref0 (_tmp1_); -#line 98 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - if (_tmp2_) { -#line 99 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - return; -#line 1395 "TrashPage.c" - } -#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp3_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp4_ = _tmp3_; -#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp5_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp6_ = _tmp5_; -#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp7_ = view_collection_get_selected_sources (_tmp6_); -#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection); -#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp9_ = trash_untrash_photos_command_new (_tmp8_, FALSE); -#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp10_ = _tmp9_; -#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - command_manager_execute (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_COMMAND, Command)); -#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _g_object_unref0 (_tmp10_); -#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _g_object_unref0 (_tmp8_); -#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _data_collection_unref0 (_tmp6_); -#line 101 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _command_manager_unref0 (_tmp4_); -#line 1423 "TrashPage.c" -} - - -static gchar* -trash_page_real_get_view_empty_message (CheckerboardPage* base) -{ - TrashPage * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 105 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage); -#line 106 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp0_ = g_strdup (_ ("Trash is empty")); -#line 106 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - result = _tmp0_; -#line 106 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - return result; -#line 1441 "TrashPage.c" -} - - -static void -trash_page_on_delete (TrashPage* self) -{ - const gchar* _tmp0_ = NULL; - ViewCollection* _tmp1_; - ViewCollection* _tmp2_; - gboolean _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - GeeList* _tmp6_; - GeeCollection* _tmp7_; -#line 109 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - g_return_if_fail (IS_TRASH_PAGE (self)); -#line 111 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp1_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 111 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp2_ = _tmp1_; -#line 111 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp3_ = view_collection_get_selected_count (_tmp2_) == 1; -#line 111 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _data_collection_unref0 (_tmp2_); -#line 111 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - if (_tmp3_) { -#line 111 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp0_ = "Deleting a Photo"; -#line 1470 "TrashPage.c" - } else { -#line 111 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp0_ = _ ("Deleting Photos"); -#line 1474 "TrashPage.c" - } -#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp5_ = _tmp4_; -#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp6_ = view_collection_get_selected_sources (_tmp5_); -#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp7_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection); -#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - remove_from_app (_tmp7_, _ ("Delete"), _tmp0_); -#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _g_object_unref0 (_tmp7_); -#line 110 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _data_collection_unref0 (_tmp5_); -#line 1490 "TrashPage.c" -} - - -static gpointer -_view_filter_ref0 (gpointer self) -{ -#line 115 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - return self ? view_filter_ref (self) : NULL; -#line 1499 "TrashPage.c" -} - - -static SearchViewFilter* -trash_page_real_get_search_view_filter (CheckerboardPage* base) -{ - TrashPage * self; - SearchViewFilter* result = NULL; - TrashPageTrashSearchViewFilter* _tmp0_; - SearchViewFilter* _tmp1_; -#line 114 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TRASH_PAGE, TrashPage); -#line 115 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp0_ = self->priv->search_filter; -#line 115 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp1_ = _view_filter_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)); -#line 115 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - result = _tmp1_; -#line 115 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - return result; -#line 1520 "TrashPage.c" -} - - -static TrashPageTrashView* -trash_page_trash_view_construct (GType object_type, - MediaSource* source) -{ - TrashPageTrashView * self = NULL; - gint _tmp0_; - gint _tmp1_; -#line 11 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), NULL); -#line 12 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp0_ = thumbnail_get_DEFAULT_SCALE (); -#line 12 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp1_ = _tmp0_; -#line 12 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - self = (TrashPageTrashView*) thumbnail_construct (object_type, source, _tmp1_); -#line 14 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _vala_assert (media_source_is_trashed (source), "source.is_trashed()"); -#line 11 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - return self; -#line 1543 "TrashPage.c" -} - - -static TrashPageTrashView* -trash_page_trash_view_new (MediaSource* source) -{ -#line 11 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - return trash_page_trash_view_construct (TRASH_PAGE_TYPE_TRASH_VIEW, source); -#line 1552 "TrashPage.c" -} - - -static void -trash_page_trash_view_class_init (TrashPageTrashViewClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - trash_page_trash_view_parent_class = g_type_class_peek_parent (klass); -#line 1561 "TrashPage.c" -} - - -static void -trash_page_trash_view_instance_init (TrashPageTrashView * self) -{ -} - - -static GType -trash_page_trash_view_get_type (void) -{ - static volatile gsize trash_page_trash_view_type_id__volatile = 0; - if (g_once_init_enter (&trash_page_trash_view_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TrashPageTrashViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) trash_page_trash_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrashPageTrashView), 0, (GInstanceInitFunc) trash_page_trash_view_instance_init, NULL }; - GType trash_page_trash_view_type_id; - trash_page_trash_view_type_id = g_type_register_static (TYPE_THUMBNAIL, "TrashPageTrashView", &g_define_type_info, 0); - g_once_init_leave (&trash_page_trash_view_type_id__volatile, trash_page_trash_view_type_id); - } - return trash_page_trash_view_type_id__volatile; -} - - -static guint -trash_page_trash_search_view_filter_real_get_criteria (SearchViewFilter* base) -{ - TrashPageTrashSearchViewFilter * self; - guint result = 0U; -#line 19 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TRASH_PAGE_TYPE_TRASH_SEARCH_VIEW_FILTER, TrashPageTrashSearchViewFilter); -#line 20 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - result = (guint) ((((SEARCH_FILTER_CRITERIA_TEXT | SEARCH_FILTER_CRITERIA_FLAG) | SEARCH_FILTER_CRITERIA_MEDIA) | SEARCH_FILTER_CRITERIA_RATING) | SEARCH_FILTER_CRITERIA_SAVEDSEARCH); -#line 20 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - return result; -#line 1596 "TrashPage.c" -} - - -static TrashPageTrashSearchViewFilter* -trash_page_trash_search_view_filter_construct (GType object_type) -{ - TrashPageTrashSearchViewFilter* self = NULL; -#line 18 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - self = (TrashPageTrashSearchViewFilter*) default_search_view_filter_construct (object_type); -#line 18 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - return self; -#line 1608 "TrashPage.c" -} - - -static TrashPageTrashSearchViewFilter* -trash_page_trash_search_view_filter_new (void) -{ -#line 18 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - return trash_page_trash_search_view_filter_construct (TRASH_PAGE_TYPE_TRASH_SEARCH_VIEW_FILTER); -#line 1617 "TrashPage.c" -} - - -static void -trash_page_trash_search_view_filter_class_init (TrashPageTrashSearchViewFilterClass * klass) -{ -#line 18 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - trash_page_trash_search_view_filter_parent_class = g_type_class_peek_parent (klass); -#line 18 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - ((SearchViewFilterClass *) klass)->get_criteria = (guint (*) (SearchViewFilter *)) trash_page_trash_search_view_filter_real_get_criteria; -#line 1628 "TrashPage.c" -} - - -static void -trash_page_trash_search_view_filter_instance_init (TrashPageTrashSearchViewFilter * self) -{ -} - - -static GType -trash_page_trash_search_view_filter_get_type (void) -{ - static volatile gsize trash_page_trash_search_view_filter_type_id__volatile = 0; - if (g_once_init_enter (&trash_page_trash_search_view_filter_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TrashPageTrashSearchViewFilterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) trash_page_trash_search_view_filter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrashPageTrashSearchViewFilter), 0, (GInstanceInitFunc) trash_page_trash_search_view_filter_instance_init, NULL }; - GType trash_page_trash_search_view_filter_type_id; - trash_page_trash_search_view_filter_type_id = g_type_register_static (TYPE_DEFAULT_SEARCH_VIEW_FILTER, "TrashPageTrashSearchViewFilter", &g_define_type_info, 0); - g_once_init_leave (&trash_page_trash_search_view_filter_type_id__volatile, trash_page_trash_search_view_filter_type_id); - } - return trash_page_trash_search_view_filter_type_id__volatile; -} - - -static void -trash_page_class_init (TrashPageClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - trash_page_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - g_type_class_add_private (klass, sizeof (TrashPagePrivate)); -#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) trash_page_real_init_collect_ui_filenames; -#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) trash_page_real_add_actions; -#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) trash_page_real_remove_actions; -#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - ((CheckerboardPageClass *) klass)->get_view_tracker = (CoreViewTracker* (*) (CheckerboardPage *)) trash_page_real_get_view_tracker; -#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) trash_page_real_update_actions; -#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - ((CheckerboardPageClass *) klass)->get_view_empty_message = (gchar* (*) (CheckerboardPage *)) trash_page_real_get_view_empty_message; -#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - ((CheckerboardPageClass *) klass)->get_search_view_filter = (SearchViewFilter* (*) (CheckerboardPage *)) trash_page_real_get_search_view_filter; -#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - G_OBJECT_CLASS (klass)->finalize = trash_page_finalize; -#line 1675 "TrashPage.c" -} - - -static void -trash_page_instance_init (TrashPage * self) -{ - TrashPageTrashSearchViewFilter* _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - self->priv = TRASH_PAGE_GET_PRIVATE (self); -#line 25 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _tmp0_ = trash_page_trash_search_view_filter_new (); -#line 25 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - self->priv->search_filter = _tmp0_; -#line 1689 "TrashPage.c" -} - - -static void -trash_page_finalize (GObject * obj) -{ - TrashPage * self; -#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TRASH_PAGE, TrashPage); -#line 25 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _view_filter_unref0 (self->priv->search_filter); -#line 26 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - _core_tracker_unref0 (self->priv->tracker); -#line 7 "/home/jens/Source/shotwell/src/library/TrashPage.vala" - G_OBJECT_CLASS (trash_page_parent_class)->finalize (obj); -#line 1705 "TrashPage.c" -} - - -GType -trash_page_get_type (void) -{ - static volatile gsize trash_page_type_id__volatile = 0; - if (g_once_init_enter (&trash_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TrashPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) trash_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrashPage), 0, (GInstanceInitFunc) trash_page_instance_init, NULL }; - GType trash_page_type_id; - trash_page_type_id = g_type_register_static (TYPE_CHECKERBOARD_PAGE, "TrashPage", &g_define_type_info, 0); - g_once_init_leave (&trash_page_type_id__volatile, trash_page_type_id); - } - return trash_page_type_id__volatile; -} - - - diff --git a/src/library/TrashSidebarEntry.c b/src/library/TrashSidebarEntry.c deleted file mode 100644 index 796281b..0000000 --- a/src/library/TrashSidebarEntry.c +++ /dev/null @@ -1,870 +0,0 @@ -/* TrashSidebarEntry.c generated by valac 0.40.4, the Vala compiler - * generated from TrashSidebarEntry.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ()) -#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry)) -#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY)) -#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface)) - -typedef struct _SidebarEntry SidebarEntry; -typedef struct _SidebarEntryIface SidebarEntryIface; - -#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ()) -#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree)) -#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass)) -#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass)) - -typedef struct _SidebarTree SidebarTree; -typedef struct _SidebarTreeClass SidebarTreeClass; - -#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ()) -#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry)) -#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY)) -#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface)) - -typedef struct _SidebarSelectableEntry SidebarSelectableEntry; -typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface; - -#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ()) -#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)) -#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE)) -#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface)) - -typedef struct _SidebarPageRepresentative SidebarPageRepresentative; -typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ()) -#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable)) -#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE)) -#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface)) - -typedef struct _SidebarContextable SidebarContextable; -typedef struct _SidebarContextableIface SidebarContextableIface; - -#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ()) -#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) - -typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry; -typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass; -typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate; - -#define SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY (sidebar_internal_drop_target_entry_get_type ()) -#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntry)) -#define SIDEBAR_IS_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY)) -#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntryIface)) - -typedef struct _SidebarInternalDropTargetEntry SidebarInternalDropTargetEntry; -typedef struct _SidebarInternalDropTargetEntryIface SidebarInternalDropTargetEntryIface; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY (library_trash_sidebar_entry_get_type ()) -#define LIBRARY_TRASH_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry)) -#define LIBRARY_TRASH_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntryClass)) -#define LIBRARY_IS_TRASH_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY)) -#define LIBRARY_IS_TRASH_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY)) -#define LIBRARY_TRASH_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntryClass)) - -typedef struct _LibraryTrashSidebarEntry LibraryTrashSidebarEntry; -typedef struct _LibraryTrashSidebarEntryClass LibraryTrashSidebarEntryClass; -typedef struct _LibraryTrashSidebarEntryPrivate LibraryTrashSidebarEntryPrivate; -enum { - LIBRARY_TRASH_SIDEBAR_ENTRY_0_PROPERTY, - LIBRARY_TRASH_SIDEBAR_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* library_trash_sidebar_entry_properties[LIBRARY_TRASH_SIDEBAR_ENTRY_NUM_PROPERTIES]; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; - -#define TYPE_TRASH_UNTRASH_PHOTOS_COMMAND (trash_untrash_photos_command_get_type ()) -#define TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommand)) -#define TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass)) -#define IS_TRASH_UNTRASH_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND)) -#define IS_TRASH_UNTRASH_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND)) -#define TRASH_UNTRASH_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRASH_UNTRASH_PHOTOS_COMMAND, TrashUntrashPhotosCommandClass)) - -typedef struct _TrashUntrashPhotosCommand TrashUntrashPhotosCommand; -typedef struct _TrashUntrashPhotosCommandClass TrashUntrashPhotosCommandClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; - -#define TYPE_TRASH_PAGE (trash_page_get_type ()) -#define TRASH_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRASH_PAGE, TrashPage)) -#define TRASH_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRASH_PAGE, TrashPageClass)) -#define IS_TRASH_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRASH_PAGE)) -#define IS_TRASH_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRASH_PAGE)) -#define TRASH_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRASH_PAGE, TrashPageClass)) - -typedef struct _TrashPage TrashPage; -typedef struct _TrashPageClass TrashPageClass; -#define _g_free0(var) (var = (g_free (var), NULL)) - -struct _SidebarEntryIface { - GTypeInterface parent_iface; - gchar* (*get_sidebar_name) (SidebarEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarEntry* self); - gchar* (*get_sidebar_icon) (SidebarEntry* self); - gchar* (*to_string) (SidebarEntry* self); - void (*grafted) (SidebarEntry* self, SidebarTree* tree); - void (*pruned) (SidebarEntry* self, SidebarTree* tree); -}; - -struct _SidebarSelectableEntryIface { - GTypeInterface parent_iface; -}; - -struct _SidebarPageRepresentativeIface { - GTypeInterface parent_iface; - gboolean (*has_page) (SidebarPageRepresentative* self); - Page* (*get_page) (SidebarPageRepresentative* self); -}; - -struct _SidebarContextableIface { - GTypeInterface parent_iface; - GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event); -}; - -struct _SidebarSimplePageEntry { - GObject parent_instance; - SidebarSimplePageEntryPrivate * priv; -}; - -struct _SidebarSimplePageEntryClass { - GObjectClass parent_class; - gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self); - gchar* (*to_string) (SidebarSimplePageEntry* self); - Page* (*create_page) (SidebarSimplePageEntry* self); -}; - -struct _SidebarInternalDropTargetEntryIface { - GTypeInterface parent_iface; - gboolean (*internal_drop_received) (SidebarInternalDropTargetEntry* self, GeeList* sources); - gboolean (*internal_drop_received_arbitrary) (SidebarInternalDropTargetEntry* self, GtkSelectionData* data); -}; - -struct _LibraryTrashSidebarEntry { - SidebarSimplePageEntry parent_instance; - LibraryTrashSidebarEntryPrivate * priv; -}; - -struct _LibraryTrashSidebarEntryClass { - SidebarSimplePageEntryClass parent_class; -}; - - -static gpointer library_trash_sidebar_entry_parent_class = NULL; -static SidebarInternalDropTargetEntryIface * library_trash_sidebar_entry_sidebar_internal_drop_target_entry_parent_iface = NULL; - -GType sidebar_tree_get_type (void) G_GNUC_CONST; -GType sidebar_entry_get_type (void) G_GNUC_CONST; -GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType sidebar_page_representative_get_type (void) G_GNUC_CONST; -GType sidebar_contextable_get_type (void) G_GNUC_CONST; -GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType sidebar_internal_drop_target_entry_get_type (void) G_GNUC_CONST; -GType library_trash_sidebar_entry_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self); -static void library_trash_sidebar_entry_on_trashcan_contents_altered (LibraryTrashSidebarEntry* self); -static void _library_trash_sidebar_entry_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self); -LibraryTrashSidebarEntry* library_trash_sidebar_entry_new (void); -LibraryTrashSidebarEntry* library_trash_sidebar_entry_construct (GType object_type); -SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type); -void library_trash_sidebar_entry_init (void); -void library_trash_sidebar_entry_terminate (void); -static gchar* library_trash_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base); -#define TRASH_PAGE_NAME _ ("Trash") -static gchar* library_trash_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base); -static gchar* library_trash_sidebar_entry_get_current_icon (void); -gint media_source_collection_get_trashcan_count (MediaSourceCollection* self); -#define RESOURCES_ICON_TRASH_FULL "user-trash-full" -#define RESOURCES_ICON_TRASH_EMPTY "user-trash" -static gboolean library_trash_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base, - GeeList* media); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* app_window_get_command_manager (void); -GType command_get_type (void) G_GNUC_CONST; -void command_manager_execute (CommandManager* self, - Command* command); -TrashUntrashPhotosCommand* trash_untrash_photos_command_new (GeeCollection* sources, - gboolean to_trash); -TrashUntrashPhotosCommand* trash_untrash_photos_command_construct (GType object_type, - GeeCollection* sources, - gboolean to_trash); -GType page_command_get_type (void) G_GNUC_CONST; -GType trash_untrash_photos_command_get_type (void) G_GNUC_CONST; -static gboolean library_trash_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, - GtkSelectionData* data); -static Page* library_trash_sidebar_entry_real_create_page (SidebarSimplePageEntry* base); -TrashPage* trash_page_new (void); -TrashPage* trash_page_construct (GType object_type); -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType trash_page_get_type (void) G_GNUC_CONST; -static void library_trash_sidebar_entry_finalize (GObject * obj); - - -static void -_library_trash_sidebar_entry_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered (MediaSourceCollection* _sender, - GeeCollection* added, - GeeCollection* removed, - gpointer self) -{ -#line 16 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - library_trash_sidebar_entry_on_trashcan_contents_altered ((LibraryTrashSidebarEntry*) self); -#line 427 "TrashSidebarEntry.c" -} - - -LibraryTrashSidebarEntry* -library_trash_sidebar_entry_construct (GType object_type) -{ - LibraryTrashSidebarEntry * self = NULL; -#line 9 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - self = (LibraryTrashSidebarEntry*) sidebar_simple_page_entry_construct (object_type); -#line 437 "TrashSidebarEntry.c" - { - GeeIterator* _media_sources_it = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp2_ = media_collection_registry_get_all (_tmp1_); -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp3_ = _tmp2_; -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp5_ = _tmp4_; -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _g_object_unref0 (_tmp3_); -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _media_sources_it = _tmp5_; -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - while (TRUE) { -#line 466 "TrashSidebarEntry.c" - GeeIterator* _tmp6_; - MediaSourceCollection* media_sources = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - MediaSourceCollection* _tmp9_; -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp6_ = _media_sources_it; -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - break; -#line 478 "TrashSidebarEntry.c" - } -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp7_ = _media_sources_it; -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - media_sources = (MediaSourceCollection*) _tmp8_; -#line 11 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp9_ = media_sources; -#line 11 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - g_signal_connect_object (_tmp9_, "trashcan-contents-altered", (GCallback) _library_trash_sidebar_entry_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self, 0); -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _data_collection_unref0 (media_sources); -#line 492 "TrashSidebarEntry.c" - } -#line 10 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _g_object_unref0 (_media_sources_it); -#line 496 "TrashSidebarEntry.c" - } -#line 9 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - return self; -#line 500 "TrashSidebarEntry.c" -} - - -LibraryTrashSidebarEntry* -library_trash_sidebar_entry_new (void) -{ -#line 9 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - return library_trash_sidebar_entry_construct (LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY); -#line 509 "TrashSidebarEntry.c" -} - - -void -library_trash_sidebar_entry_init (void) -{ -} - - -void -library_trash_sidebar_entry_terminate (void) -{ -} - - -static gchar* -library_trash_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) -{ - LibraryTrashSidebarEntry * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 25 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry); -#line 26 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp0_ = g_strdup (TRASH_PAGE_NAME); -#line 26 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - result = _tmp0_; -#line 26 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - return result; -#line 539 "TrashSidebarEntry.c" -} - - -static gchar* -library_trash_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) -{ - LibraryTrashSidebarEntry * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 29 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry); -#line 30 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp0_ = library_trash_sidebar_entry_get_current_icon (); -#line 30 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - result = _tmp0_; -#line 30 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - return result; -#line 557 "TrashSidebarEntry.c" -} - - -static gchar* -library_trash_sidebar_entry_get_current_icon (void) -{ - gchar* result = NULL; - gchar* _tmp11_; - { - GeeIterator* _media_sources_it = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp2_ = media_collection_registry_get_all (_tmp1_); -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp3_ = _tmp2_; -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp5_ = _tmp4_; -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _g_object_unref0 (_tmp3_); -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _media_sources_it = _tmp5_; -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - while (TRUE) { -#line 594 "TrashSidebarEntry.c" - GeeIterator* _tmp6_; - MediaSourceCollection* media_sources = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - MediaSourceCollection* _tmp9_; -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp6_ = _media_sources_it; -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - break; -#line 606 "TrashSidebarEntry.c" - } -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp7_ = _media_sources_it; -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - media_sources = (MediaSourceCollection*) _tmp8_; -#line 35 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp9_ = media_sources; -#line 35 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - if (media_source_collection_get_trashcan_count (_tmp9_) > 0) { -#line 618 "TrashSidebarEntry.c" - gchar* _tmp10_; -#line 36 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp10_ = g_strdup (RESOURCES_ICON_TRASH_FULL); -#line 36 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - result = _tmp10_; -#line 36 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _data_collection_unref0 (media_sources); -#line 36 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _g_object_unref0 (_media_sources_it); -#line 36 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - return result; -#line 630 "TrashSidebarEntry.c" - } -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _data_collection_unref0 (media_sources); -#line 634 "TrashSidebarEntry.c" - } -#line 34 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _g_object_unref0 (_media_sources_it); -#line 638 "TrashSidebarEntry.c" - } -#line 39 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp11_ = g_strdup (RESOURCES_ICON_TRASH_EMPTY); -#line 39 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - result = _tmp11_; -#line 39 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - return result; -#line 646 "TrashSidebarEntry.c" -} - - -static gboolean -library_trash_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base, - GeeList* media) -{ - LibraryTrashSidebarEntry * self; - gboolean result = FALSE; - CommandManager* _tmp0_; - CommandManager* _tmp1_; - TrashUntrashPhotosCommand* _tmp2_; - TrashUntrashPhotosCommand* _tmp3_; -#line 42 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry); -#line 42 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - g_return_val_if_fail (GEE_IS_LIST (media), FALSE); -#line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp0_ = app_window_get_command_manager (); -#line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp2_ = trash_untrash_photos_command_new (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_COLLECTION, GeeCollection), TRUE); -#line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp3_ = _tmp2_; -#line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - command_manager_execute (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_COMMAND, Command)); -#line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _g_object_unref0 (_tmp3_); -#line 43 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _command_manager_unref0 (_tmp1_); -#line 45 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - result = TRUE; -#line 45 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - return result; -#line 682 "TrashSidebarEntry.c" -} - - -static gboolean -library_trash_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, - GtkSelectionData* data) -{ - LibraryTrashSidebarEntry * self; - gboolean result = FALSE; -#line 48 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry); -#line 48 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - g_return_val_if_fail (data != NULL, FALSE); -#line 49 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - result = FALSE; -#line 49 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - return result; -#line 700 "TrashSidebarEntry.c" -} - - -static Page* -library_trash_sidebar_entry_real_create_page (SidebarSimplePageEntry* base) -{ - LibraryTrashSidebarEntry * self; - Page* result = NULL; - TrashPage* _tmp0_; -#line 52 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry); -#line 53 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp0_ = trash_page_new (); -#line 53 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - g_object_ref_sink (_tmp0_); -#line 53 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PAGE, Page); -#line 53 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - return result; -#line 720 "TrashSidebarEntry.c" -} - - -static void -library_trash_sidebar_entry_on_trashcan_contents_altered (LibraryTrashSidebarEntry* self) -{ - gchar* _tmp0_; - gchar* _tmp1_; -#line 56 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - g_return_if_fail (LIBRARY_IS_TRASH_SIDEBAR_ENTRY (self)); -#line 57 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp0_ = library_trash_sidebar_entry_get_current_icon (); -#line 57 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 57 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_ENTRY, SidebarEntry), "sidebar-icon-changed", _tmp1_); -#line 57 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _g_free0 (_tmp1_); -#line 739 "TrashSidebarEntry.c" -} - - -static void -library_trash_sidebar_entry_class_init (LibraryTrashSidebarEntryClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - library_trash_sidebar_entry_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) library_trash_sidebar_entry_real_get_sidebar_name; -#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) library_trash_sidebar_entry_real_get_sidebar_icon; -#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) library_trash_sidebar_entry_real_create_page; -#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - G_OBJECT_CLASS (klass)->finalize = library_trash_sidebar_entry_finalize; -#line 756 "TrashSidebarEntry.c" -} - - -static void -library_trash_sidebar_entry_sidebar_internal_drop_target_entry_interface_init (SidebarInternalDropTargetEntryIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - library_trash_sidebar_entry_sidebar_internal_drop_target_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - iface->internal_drop_received = (gboolean (*) (SidebarInternalDropTargetEntry *, GeeList*)) library_trash_sidebar_entry_real_internal_drop_received; -#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - iface->internal_drop_received_arbitrary = (gboolean (*) (SidebarInternalDropTargetEntry *, GtkSelectionData*)) library_trash_sidebar_entry_real_internal_drop_received_arbitrary; -#line 769 "TrashSidebarEntry.c" -} - - -static void -library_trash_sidebar_entry_instance_init (LibraryTrashSidebarEntry * self) -{ -} - - -static void -library_trash_sidebar_entry_finalize (GObject * obj) -{ - LibraryTrashSidebarEntry * self; -#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, LIBRARY_TYPE_TRASH_SIDEBAR_ENTRY, LibraryTrashSidebarEntry); -#line 785 "TrashSidebarEntry.c" - { - GeeIterator* _media_sources_it = NULL; - MediaCollectionRegistry* _tmp0_; - MediaCollectionRegistry* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp0_ = media_collection_registry_get_instance (); -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp1_ = _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp2_ = media_collection_registry_get_all (_tmp1_); -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp3_ = _tmp2_; -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp5_ = _tmp4_; -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _g_object_unref0 (_tmp3_); -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _media_collection_registry_unref0 (_tmp1_); -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _media_sources_it = _tmp5_; -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - while (TRUE) { -#line 814 "TrashSidebarEntry.c" - GeeIterator* _tmp6_; - MediaSourceCollection* media_sources = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - MediaSourceCollection* _tmp9_; - guint _tmp10_; -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp6_ = _media_sources_it; -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - break; -#line 827 "TrashSidebarEntry.c" - } -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp7_ = _media_sources_it; -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - media_sources = (MediaSourceCollection*) _tmp8_; -#line 16 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _tmp9_ = media_sources; -#line 16 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - g_signal_parse_name ("trashcan-contents-altered", TYPE_MEDIA_SOURCE_COLLECTION, &_tmp10_, NULL, FALSE); -#line 16 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - g_signal_handlers_disconnect_matched (_tmp9_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) _library_trash_sidebar_entry_on_trashcan_contents_altered_media_source_collection_trashcan_contents_altered, self); -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _data_collection_unref0 (media_sources); -#line 843 "TrashSidebarEntry.c" - } -#line 15 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - _g_object_unref0 (_media_sources_it); -#line 847 "TrashSidebarEntry.c" - } -#line 7 "/home/jens/Source/shotwell/src/library/TrashSidebarEntry.vala" - G_OBJECT_CLASS (library_trash_sidebar_entry_parent_class)->finalize (obj); -#line 851 "TrashSidebarEntry.c" -} - - -GType -library_trash_sidebar_entry_get_type (void) -{ - static volatile gsize library_trash_sidebar_entry_type_id__volatile = 0; - if (g_once_init_enter (&library_trash_sidebar_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (LibraryTrashSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) library_trash_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibraryTrashSidebarEntry), 0, (GInstanceInitFunc) library_trash_sidebar_entry_instance_init, NULL }; - static const GInterfaceInfo sidebar_internal_drop_target_entry_info = { (GInterfaceInitFunc) library_trash_sidebar_entry_sidebar_internal_drop_target_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType library_trash_sidebar_entry_type_id; - library_trash_sidebar_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "LibraryTrashSidebarEntry", &g_define_type_info, 0); - g_type_add_interface_static (library_trash_sidebar_entry_type_id, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, &sidebar_internal_drop_target_entry_info); - g_once_init_leave (&library_trash_sidebar_entry_type_id__volatile, library_trash_sidebar_entry_type_id); - } - return library_trash_sidebar_entry_type_id__volatile; -} - - - diff --git a/src/libshotwell.deps b/src/libshotwell.deps new file mode 100644 index 0000000..62f5abe --- /dev/null +++ b/src/libshotwell.deps @@ -0,0 +1,20 @@ +atk +gdk-3.0 +gee-0.8 +gexiv2 +gio-unix-2.0 +glib-2.0 +gmodule-2.0 +gnome-vfs-2.0 +gstreamer-0.10 +gstreamer-base-0.10 +gtk+-3.0 +gudev-1.0 +libexif +libraw +libgphoto2 +libsoup-2.4 +libxml-2.0 +sqlite3 +unique-1.0 +webkit-1.0 diff --git a/src/main.c b/src/main.c deleted file mode 100644 index 589461d..0000000 --- a/src/main.c +++ /dev/null @@ -1,3187 +0,0 @@ -/* main.c generated by valac 0.40.4, the Vala compiler - * generated from main.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_COMMAND (shotwell_command_get_type ()) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define DB_TYPE_VERIFY_RESULT (db_verify_result_get_type ()) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_PROGRESS_DIALOG (progress_dialog_get_type ()) -#define PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROGRESS_DIALOG, ProgressDialog)) -#define PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PROGRESS_DIALOG, ProgressDialogClass)) -#define IS_PROGRESS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROGRESS_DIALOG)) -#define IS_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROGRESS_DIALOG)) -#define PROGRESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROGRESS_DIALOG, ProgressDialogClass)) - -typedef struct _ProgressDialog ProgressDialog; -typedef struct _ProgressDialogClass ProgressDialogClass; - -#define TYPE_AGGREGATE_PROGRESS_MONITOR (aggregate_progress_monitor_get_type ()) -#define AGGREGATE_PROGRESS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitor)) -#define AGGREGATE_PROGRESS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitorClass)) -#define IS_AGGREGATE_PROGRESS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR)) -#define IS_AGGREGATE_PROGRESS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_AGGREGATE_PROGRESS_MONITOR)) -#define AGGREGATE_PROGRESS_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_AGGREGATE_PROGRESS_MONITOR, AggregateProgressMonitorClass)) - -typedef struct _AggregateProgressMonitor AggregateProgressMonitor; -typedef struct _AggregateProgressMonitorClass AggregateProgressMonitorClass; - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; - -#define TYPE_PHOTO_TABLE (photo_table_get_type ()) -#define PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_TABLE, PhotoTable)) -#define PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_TABLE, PhotoTableClass)) -#define IS_PHOTO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_TABLE)) -#define IS_PHOTO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_TABLE)) -#define PHOTO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_TABLE, PhotoTableClass)) - -typedef struct _PhotoTable PhotoTable; -typedef struct _PhotoTableClass PhotoTableClass; - -#define TYPE_EVENT_TABLE (event_table_get_type ()) -#define EVENT_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_TABLE, EventTable)) -#define EVENT_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_TABLE, EventTableClass)) -#define IS_EVENT_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_TABLE)) -#define IS_EVENT_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_TABLE)) -#define EVENT_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_TABLE, EventTableClass)) - -typedef struct _EventTable EventTable; -typedef struct _EventTableClass EventTableClass; - -#define TYPE_TAG_TABLE (tag_table_get_type ()) -#define TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_TABLE, TagTable)) -#define TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_TABLE, TagTableClass)) -#define IS_TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_TABLE)) -#define IS_TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_TABLE)) -#define TAG_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_TABLE, TagTableClass)) - -typedef struct _TagTable TagTable; -typedef struct _TagTableClass TagTableClass; - -#define TYPE_VIDEO_TABLE (video_table_get_type ()) -#define VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_TABLE, VideoTable)) -#define VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_TABLE, VideoTableClass)) -#define IS_VIDEO_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_TABLE)) -#define IS_VIDEO_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_TABLE)) -#define VIDEO_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_TABLE, VideoTableClass)) - -typedef struct _VideoTable VideoTable; -typedef struct _VideoTableClass VideoTableClass; - -#define TYPE_UPGRADES (upgrades_get_type ()) -#define UPGRADES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_UPGRADES, Upgrades)) -#define UPGRADES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_UPGRADES, UpgradesClass)) -#define IS_UPGRADES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_UPGRADES)) -#define IS_UPGRADES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_UPGRADES)) -#define UPGRADES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_UPGRADES, UpgradesClass)) - -typedef struct _Upgrades Upgrades; -typedef struct _UpgradesClass UpgradesClass; -#define _upgrades_unref0(var) ((var == NULL) ? NULL : (var = (upgrades_unref (var), NULL))) -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) -#define _aggregate_progress_monitor_unref0(var) ((var == NULL) ? NULL : (var = (aggregate_progress_monitor_unref (var), NULL))) - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION (library_photo_source_collection_get_type ()) -#define LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollection)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define IS_LIBRARY_PHOTO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION)) -#define LIBRARY_PHOTO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO_SOURCE_COLLECTION, LibraryPhotoSourceCollectionClass)) - -typedef struct _LibraryPhotoSourceCollection LibraryPhotoSourceCollection; -typedef struct _LibraryPhotoSourceCollectionClass LibraryPhotoSourceCollectionClass; - -#define TYPE_VIDEO_SOURCE_COLLECTION (video_source_collection_get_type ()) -#define VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection)) -#define VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) -#define IS_VIDEO_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE_COLLECTION)) -#define IS_VIDEO_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE_COLLECTION)) -#define VIDEO_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollectionClass)) - -typedef struct _VideoSourceCollection VideoSourceCollection; -typedef struct _VideoSourceCollectionClass VideoSourceCollectionClass; - -#define TYPE_APPLICATION (application_get_type ()) -#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application)) -#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass)) -#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION)) -#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION)) -#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass)) - -typedef struct _Application Application; -typedef struct _ApplicationClass ApplicationClass; -#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL))) - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; - -#define TYPE_WELCOME_SERVICE_ENTRY (welcome_service_entry_get_type ()) -#define WELCOME_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntry)) -#define IS_WELCOME_SERVICE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WELCOME_SERVICE_ENTRY)) -#define WELCOME_SERVICE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_WELCOME_SERVICE_ENTRY, WelcomeServiceEntryIface)) - -typedef struct _WelcomeServiceEntry WelcomeServiceEntry; -typedef struct _WelcomeServiceEntryIface WelcomeServiceEntryIface; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; - -#define TYPE_WELCOME_DIALOG (welcome_dialog_get_type ()) -#define WELCOME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WELCOME_DIALOG, WelcomeDialog)) -#define WELCOME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WELCOME_DIALOG, WelcomeDialogClass)) -#define IS_WELCOME_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WELCOME_DIALOG)) -#define IS_WELCOME_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WELCOME_DIALOG)) -#define WELCOME_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WELCOME_DIALOG, WelcomeDialogClass)) - -typedef struct _WelcomeDialog WelcomeDialog; -typedef struct _WelcomeDialogClass WelcomeDialogClass; - -#define TYPE_IMPORT_MANIFEST (import_manifest_get_type ()) -#define IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IMPORT_MANIFEST, ImportManifest)) -#define IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IMPORT_MANIFEST, ImportManifestClass)) -#define IS_IMPORT_MANIFEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IMPORT_MANIFEST)) -#define IS_IMPORT_MANIFEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IMPORT_MANIFEST)) -#define IMPORT_MANIFEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IMPORT_MANIFEST, ImportManifestClass)) - -typedef struct _ImportManifest ImportManifest; -typedef struct _ImportManifestClass ImportManifestClass; -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) - -#define TYPE_BATCH_IMPORT_JOB (batch_import_job_get_type ()) -#define BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJob)) -#define BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass)) -#define IS_BATCH_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_JOB)) -#define IS_BATCH_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_JOB)) -#define BATCH_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_JOB, BatchImportJobClass)) - -typedef struct _BatchImportJob BatchImportJob; -typedef struct _BatchImportJobClass BatchImportJobClass; - -#define TYPE_FILE_IMPORT_JOB (file_import_job_get_type ()) -#define FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILE_IMPORT_JOB, FileImportJob)) -#define FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILE_IMPORT_JOB, FileImportJobClass)) -#define IS_FILE_IMPORT_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILE_IMPORT_JOB)) -#define IS_FILE_IMPORT_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILE_IMPORT_JOB)) -#define FILE_IMPORT_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILE_IMPORT_JOB, FileImportJobClass)) - -typedef struct _FileImportJob FileImportJob; -typedef struct _FileImportJobClass FileImportJobClass; -#define _batch_import_job_unref0(var) ((var == NULL) ? NULL : (var = (batch_import_job_unref (var), NULL))) - -#define TYPE_BATCH_IMPORT (batch_import_get_type ()) -#define BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT, BatchImport)) -#define BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT, BatchImportClass)) -#define IS_BATCH_IMPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT)) -#define IS_BATCH_IMPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT)) -#define BATCH_IMPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT, BatchImportClass)) - -typedef struct _BatchImport BatchImport; -typedef struct _BatchImportClass BatchImportClass; - -#define TYPE_BATCH_IMPORT_ROLL (batch_import_roll_get_type ()) -#define BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRoll)) -#define BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass)) -#define IS_BATCH_IMPORT_ROLL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_ROLL)) -#define IS_BATCH_IMPORT_ROLL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_ROLL)) -#define BATCH_IMPORT_ROLL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_ROLL, BatchImportRollClass)) - -typedef struct _BatchImportRoll BatchImportRoll; -typedef struct _BatchImportRollClass BatchImportRollClass; -typedef struct _ImportManifestPrivate ImportManifestPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_BATCH_IMPORT_RESULT (batch_import_result_get_type ()) -#define BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResult)) -#define BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass)) -#define IS_BATCH_IMPORT_RESULT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BATCH_IMPORT_RESULT)) -#define IS_BATCH_IMPORT_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BATCH_IMPORT_RESULT)) -#define BATCH_IMPORT_RESULT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BATCH_IMPORT_RESULT, BatchImportResultClass)) - -typedef struct _BatchImportResult BatchImportResult; -typedef struct _BatchImportResultClass BatchImportResultClass; - -#define IMPORT_UI_TYPE_QUESTION_PARAMS (import_ui_question_params_get_type ()) -#define IMPORT_UI_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParams)) -#define IMPORT_UI_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass)) -#define IMPORT_UI_IS_QUESTION_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS)) -#define IMPORT_UI_IS_QUESTION_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IMPORT_UI_TYPE_QUESTION_PARAMS)) -#define IMPORT_UI_QUESTION_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IMPORT_UI_TYPE_QUESTION_PARAMS, ImportUIQuestionParamsClass)) - -typedef struct _ImportUIQuestionParams ImportUIQuestionParams; -typedef struct _ImportUIQuestionParamsClass ImportUIQuestionParamsClass; - -#define TYPE_DIRECT_WINDOW (direct_window_get_type ()) -#define DIRECT_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DIRECT_WINDOW, DirectWindow)) -#define DIRECT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DIRECT_WINDOW, DirectWindowClass)) -#define IS_DIRECT_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DIRECT_WINDOW)) -#define IS_DIRECT_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DIRECT_WINDOW)) -#define DIRECT_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DIRECT_WINDOW, DirectWindowClass)) - -typedef struct _DirectWindow DirectWindow; -typedef struct _DirectWindowClass DirectWindowClass; -#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL))) -#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL))) - -typedef enum { - SHOTWELL_COMMAND_MOUNTED_CAMERA = 1 -} ShotwellCommand; - -typedef enum { - DB_VERIFY_RESULT_OK, - DB_VERIFY_RESULT_FUTURE_VERSION, - DB_VERIFY_RESULT_UPGRADE_ERROR, - DB_VERIFY_RESULT_NO_UPGRADE_AVAILABLE -} DbVerifyResult; - -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); -struct _WelcomeServiceEntryIface { - GTypeInterface parent_iface; - gchar* (*get_service_name) (WelcomeServiceEntry* self); - void (*execute) (WelcomeServiceEntry* self); -}; - -typedef void (*BatchImportImportReporter) (ImportManifest* manifest, BatchImportRoll* import_roll, void* user_data); -struct _ImportManifest { - GTypeInstance parent_instance; - volatile int ref_count; - ImportManifestPrivate * priv; - GeeList* imported; - GeeList* success; - GeeList* camera_failed; - GeeList* failed; - GeeList* write_failed; - GeeList* skipped_photos; - GeeList* skipped_files; - GeeList* aborted; - GeeList* already_imported; - GeeList* corrupt_files; - GeeList* all; - GTimer* timer; -}; - -struct _ImportManifestClass { - GTypeClass parent_class; - void (*finalize) (ImportManifest *self); -}; - - -extern GTimer* startup_timer; -GTimer* startup_timer = NULL; -extern gboolean was_already_running; -gboolean was_already_running = FALSE; -extern gboolean commandline_options_no_startup_progress; -extern LibraryPhotoSourceCollection* library_photo_global; -extern VideoSourceCollection* video_global; -extern gboolean do_system_pictures_import; -extern gboolean do_external_import; -gboolean do_system_pictures_import = FALSE; -gboolean do_external_import = FALSE; -gboolean commandline_options_no_startup_progress = FALSE; -extern gchar* commandline_options_data_dir; -gchar* commandline_options_data_dir = NULL; -extern gboolean commandline_options_show_version; -gboolean commandline_options_show_version = FALSE; -extern gboolean commandline_options_no_runtime_monitoring; -gboolean commandline_options_no_runtime_monitoring = FALSE; -extern gboolean commandline_options_fullscreen; -gboolean commandline_options_fullscreen = FALSE; -extern GOptionEntry* commandline_options_entries; -extern gint commandline_options_entries_length1; -GOptionEntry* commandline_options_entries = NULL; -gint commandline_options_entries_length1 = 0; -static gint _commandline_options_entries_size_ = 0; - -GType shotwell_command_get_type (void) G_GNUC_CONST; -void library_exec (gchar** mounts, - int mounts_length1); -gboolean application_get_is_remote (void); -void application_present_primary_instance (void); -void application_send_to_primary_instance (gchar** argv, - int argv_length1); -void db_preconfigure (GFile* db_file); -GFile* app_dirs_get_data_subdir (const gchar* name, - const gchar* subname); -void library_app_init (GError** error); -void app_window_panic (const gchar* msg); -GType db_verify_result_get_type (void) G_GNUC_CONST; -DbVerifyResult db_verify_database (gchar* * app_version, - gint* schema_version); -#define RESOURCES_APP_VERSION _VERSION -#define DATABASE_TABLE_SCHEMA_VERSION 20 -#define RESOURCES_HOME_URL "https://wiki.gnome.org/Apps/Shotwell" -GFile* app_dirs_get_data_dir (void); -const gchar* db_verify_result_to_string (DbVerifyResult self); -#define RESOURCES_APP_TITLE "Shotwell" -void database_table_terminate (void); -void upgrades_init (void); -GType progress_dialog_get_type (void) G_GNUC_CONST; -gpointer aggregate_progress_monitor_ref (gpointer instance); -void aggregate_progress_monitor_unref (gpointer instance); -GParamSpec* param_spec_aggregate_progress_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_aggregate_progress_monitor (GValue* value, - gpointer v_object); -void value_take_aggregate_progress_monitor (GValue* value, - gpointer v_object); -gpointer value_get_aggregate_progress_monitor (const GValue* value); -GType aggregate_progress_monitor_get_type (void) G_GNUC_CONST; -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType photo_table_get_type (void) G_GNUC_CONST; -PhotoTable* photo_table_get_instance (void); -gint database_table_get_row_count (DatabaseTable* self); -GType event_table_get_type (void) G_GNUC_CONST; -EventTable* event_table_get_instance (void); -GType tag_table_get_type (void) G_GNUC_CONST; -TagTable* tag_table_get_instance (void); -GType video_table_get_type (void) G_GNUC_CONST; -VideoTable* video_table_get_instance (void); -gpointer upgrades_ref (gpointer instance); -void upgrades_unref (gpointer instance); -GParamSpec* param_spec_upgrades (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_upgrades (GValue* value, - gpointer v_object); -void value_take_upgrades (GValue* value, - gpointer v_object); -gpointer value_get_upgrades (const GValue* value); -GType upgrades_get_type (void) G_GNUC_CONST; -Upgrades* upgrades_get_instance (void); -guint64 upgrades_get_step_count (Upgrades* self); -ProgressDialog* progress_dialog_new (GtkWindow* owner, - const gchar* text, - GCancellable* cancellable); -ProgressDialog* progress_dialog_construct (GType object_type, - GtkWindow* owner, - const gchar* text, - GCancellable* cancellable); -void progress_dialog_update_display_every (ProgressDialog* self, - gint update_every); -void progress_dialog_set_minimum_on_screen_time_msec (ProgressDialog* self, - gint minimum_on_screen_time_msec); -gboolean progress_dialog_monitor (ProgressDialog* self, - guint64 count, - guint64 total, - gboolean do_event_loop); -static gboolean _progress_dialog_monitor_progress_monitor (guint64 current, - guint64 total, - gboolean do_event_loop, - gpointer self); -AggregateProgressMonitor* aggregate_progress_monitor_new (guint64 grand_total, - ProgressMonitor wrapped_monitor, - void* wrapped_monitor_target); -AggregateProgressMonitor* aggregate_progress_monitor_construct (GType object_type, - guint64 grand_total, - ProgressMonitor wrapped_monitor, - void* wrapped_monitor_target); -gboolean aggregate_progress_monitor_monitor (AggregateProgressMonitor* self, - guint64 count, - guint64 total); -static gboolean _aggregate_progress_monitor_monitor_progress_monitor (guint64 current, - guint64 total, - gboolean do_event_loop, - gpointer self); -void thumbnail_cache_init (void); -void tombstone_init (void); -void library_files_select_copy_function (void); -void aggregate_progress_monitor_next_step (AggregateProgressMonitor* self, - const gchar* name); -void library_photo_init (ProgressMonitor monitor, - void* monitor_target); -void video_init (ProgressMonitor monitor, - void* monitor_target); -void upgrades_execute (Upgrades* self, - ProgressMonitor monitor, - void* monitor_target); -void library_monitor_pool_init (void); -void media_collection_registry_init (void); -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -void media_collection_registry_register_collection (MediaCollectionRegistry* self, - MediaSourceCollection* collection); -GType library_photo_source_collection_get_type (void) G_GNUC_CONST; -GType video_source_collection_get_type (void) G_GNUC_CONST; -void event_init (ProgressMonitor monitor, - void* monitor_target); -void tag_init (ProgressMonitor monitor, - void* monitor_target); -void metadata_writer_init (void); -void desktop_integration_init (void); -gpointer application_ref (gpointer instance); -void application_unref (gpointer instance); -GParamSpec* param_spec_application (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_application (GValue* value, - gpointer v_object); -void value_take_application (GValue* value, - gpointer v_object); -gpointer value_get_application (const GValue* value); -GType application_get_type (void) G_GNUC_CONST; -Application* application_get_instance (void); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -GType library_window_get_type (void) G_GNUC_CONST; -LibraryWindow* library_window_new (ProgressMonitor progress_monitor, - void* progress_monitor_target); -LibraryWindow* library_window_construct (GType object_type, - ProgressMonitor progress_monitor, - void* progress_monitor_target); -void library_window_mounted_camera_shell_notification (LibraryWindow* self, - const gchar* uri, - gboolean at_startup); -GType welcome_service_entry_get_type (void) G_GNUC_CONST; -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gboolean configuration_facade_get_show_welcome_dialog (ConfigurationFacade* self); -gint data_collection_get_count (DataCollection* self); -GType welcome_dialog_get_type (void) G_GNUC_CONST; -WelcomeDialog* welcome_dialog_new (GtkWindow* owner); -WelcomeDialog* welcome_dialog_construct (GType object_type, - GtkWindow* owner); -void configuration_facade_set_show_welcome_dialog (ConfigurationFacade* self, - gboolean show); -gboolean welcome_dialog_execute (WelcomeDialog* self, - WelcomeServiceEntry*** selected_import_entries, - int* selected_import_entries_length1, - gboolean* do_system_pictures_import); -void welcome_service_entry_execute (WelcomeServiceEntry* self); -gpointer import_manifest_ref (gpointer instance); -void import_manifest_unref (gpointer instance); -GParamSpec* param_spec_import_manifest (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_import_manifest (GValue* value, - gpointer v_object); -void value_take_import_manifest (GValue* value, - gpointer v_object); -gpointer value_get_import_manifest (const GValue* value); -GType import_manifest_get_type (void) G_GNUC_CONST; -void run_system_pictures_import (ImportManifest* external_exclusion_manifest); -void application_start (Application* self, - gchar** argv, - int argv_length1); -void desktop_integration_terminate (void); -void metadata_writer_terminate (void); -void tag_terminate (void); -void event_terminate (void); -void library_photo_terminate (void); -void media_collection_registry_terminate (void); -void library_monitor_pool_terminate (void); -void tombstone_terminate (void); -void thumbnail_cache_terminate (void); -void video_terminate (void); -void library_app_terminate (void); -gpointer batch_import_job_ref (gpointer instance); -void batch_import_job_unref (gpointer instance); -GParamSpec* param_spec_batch_import_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_job (GValue* value, - gpointer v_object); -void value_take_batch_import_job (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_job (const GValue* value); -GType batch_import_job_get_type (void) G_GNUC_CONST; -GType file_import_job_get_type (void) G_GNUC_CONST; -GFile* app_dirs_get_import_dir (void); -FileImportJob* file_import_job_new (GFile* file_or_dir, - gboolean copy_to_library, - gboolean recurse); -FileImportJob* file_import_job_construct (GType object_type, - GFile* file_or_dir, - gboolean copy_to_library, - gboolean recurse); -AppWindow* app_window_get_instance (void); -GType batch_import_get_type (void) G_GNUC_CONST; -gpointer batch_import_roll_ref (gpointer instance); -void batch_import_roll_unref (gpointer instance); -GParamSpec* param_spec_batch_import_roll (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_roll (GValue* value, - gpointer v_object); -void value_take_batch_import_roll (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_roll (const GValue* value); -GType batch_import_roll_get_type (void) G_GNUC_CONST; -void report_system_pictures_import (ImportManifest* manifest, - BatchImportRoll* import_roll); -static void _report_system_pictures_import_batch_import_import_reporter (ImportManifest* manifest, - BatchImportRoll* import_roll, - gpointer self); -BatchImport* batch_import_new (GeeIterable* jobs, - const gchar* name, - BatchImportImportReporter reporter, - void* reporter_target, - GeeArrayList* prefailed, - GeeArrayList* pre_already_imported, - GCancellable* cancellable, - BatchImportRoll* import_roll, - ImportManifest* skip_manifest); -BatchImport* batch_import_construct (GType object_type, - GeeIterable* jobs, - const gchar* name, - BatchImportImportReporter reporter, - void* reporter_target, - GeeArrayList* prefailed, - GeeArrayList* pre_already_imported, - GCancellable* cancellable, - BatchImportRoll* import_roll, - ImportManifest* skip_manifest); -void library_window_enqueue_batch_import (LibraryWindow* self, - BatchImport* batch_import, - gboolean allow_user_cancel); -void library_window_switch_to_import_queue_page (LibraryWindow* self); -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -gpointer batch_import_result_ref (gpointer instance); -void batch_import_result_unref (gpointer instance); -GParamSpec* param_spec_batch_import_result (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_batch_import_result (GValue* value, - gpointer v_object); -void value_take_batch_import_result (GValue* value, - gpointer v_object); -gpointer value_get_batch_import_result (const GValue* value); -GType batch_import_result_get_type (void) G_GNUC_CONST; -gpointer import_ui_question_params_ref (gpointer instance); -void import_ui_question_params_unref (gpointer instance); -GParamSpec* import_ui_param_spec_question_params (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void import_ui_value_set_question_params (GValue* value, - gpointer v_object); -void import_ui_value_take_question_params (GValue* value, - gpointer v_object); -gpointer import_ui_value_get_question_params (const GValue* value); -GType import_ui_question_params_get_type (void) G_GNUC_CONST; -gboolean import_ui_report_manifest (ImportManifest* manifest, - gboolean show_dest_id, - ImportUIQuestionParams* question); -void editing_exec (const gchar* filename, - gboolean fullscreen); -void direct_preconfigure (GFile* initial_file); -void direct_app_init (GError** error); -GType direct_window_get_type (void) G_GNUC_CONST; -DirectWindow* direct_window_new (GFile* file); -DirectWindow* direct_window_construct (GType object_type, - GFile* file); -GAction* app_window_get_common_action (AppWindow* self, - const gchar* name); -void direct_app_terminate (void); -GOptionEntry* commandline_options_get_options (int* result_length1); -static GOptionEntry* _vala_array_dup22 (GOptionEntry* self, - int length); -static void _vala_array_add72 (GOptionEntry* * array, - int* length, - int* size, - const GOptionEntry* value); -static void _vala_array_add73 (GOptionEntry* * array, - int* length, - int* size, - const GOptionEntry* value); -static void _vala_array_add74 (GOptionEntry* * array, - int* length, - int* size, - const GOptionEntry* value); -static void _vala_array_add75 (GOptionEntry* * array, - int* length, - int* size, - const GOptionEntry* value); -static void _vala_array_add76 (GOptionEntry* * array, - int* length, - int* size, - const GOptionEntry* value); -static void _vala_array_add77 (GOptionEntry* * array, - int* length, - int* size, - const GOptionEntry* value); -static GOptionEntry* _vala_array_dup23 (GOptionEntry* self, - int length); -void _vala_main (gchar** args, - int args_length1); -void app_dirs_init (const gchar* arg0); -GFile* app_dirs_get_install_dir (void); -GFile* app_dirs_get_lib_dir (void); -#define RESOURCES_APP_GETTEXT_PACKAGE GETTEXT_PACKAGE -void app_dirs_terminate (void); -#define RESOURCES_GIT_VERSION _GIT_VERSION -gboolean library_window_is_mount_uri_supported (const gchar* uri); -static void _vala_array_add78 (gchar** * array, - int* length, - int* size, - gchar* value); -gboolean is_string_empty (const gchar* s); -#define DEBUG_LIBRARY_PREFIX "L" -#define DEBUG_VIEWER_PREFIX "V" -void debug_init (const gchar* app_version_prefix); -#define RESOURCES_APP_LIBRARY_ROLE _ ("Photo Manager") -#define RESOURCES_APP_DIRECT_ROLE _ ("Photo Viewer") -void application_init (gboolean is_direct); -void app_dirs_set_data_dir (const gchar* user_data_dir); -void app_dirs_try_migrate_data (void); -void app_dirs_verify_data_dir (void); -void app_dirs_verify_cache_dir (void); -void international_support_init (const gchar* package_name, - gchar** args, - int args_length1, - const gchar* locale); -#define INTERNATIONAL_SUPPORT_SYSTEM_LOCALE "" -void resources_init (void); -void resources_terminate (void); -void application_terminate (void); -void debug_terminate (void); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -GType -shotwell_command_get_type (void) -{ - static volatile gsize shotwell_command_type_id__volatile = 0; - if (g_once_init_enter (&shotwell_command_type_id__volatile)) { - static const GEnumValue values[] = {{SHOTWELL_COMMAND_MOUNTED_CAMERA, "SHOTWELL_COMMAND_MOUNTED_CAMERA", "mounted-camera"}, {0, NULL, NULL}}; - GType shotwell_command_type_id; - shotwell_command_type_id = g_enum_register_static ("ShotwellCommand", values); - g_once_init_leave (&shotwell_command_type_id__volatile, shotwell_command_type_id); - } - return shotwell_command_type_id__volatile; -} - - -static gboolean -_progress_dialog_monitor_progress_monitor (guint64 current, - guint64 total, - gboolean do_event_loop, - gpointer self) -{ - gboolean result; - result = progress_dialog_monitor ((ProgressDialog*) self, current, total, do_event_loop); -#line 113 "/home/jens/Source/shotwell/src/main.vala" - return result; -#line 892 "main.c" -} - - -static gboolean -_aggregate_progress_monitor_monitor_progress_monitor (guint64 current, - guint64 total, - gboolean do_event_loop, - gpointer self) -{ - gboolean result; - result = aggregate_progress_monitor_monitor ((AggregateProgressMonitor*) self, current, total); -#line 114 "/home/jens/Source/shotwell/src/main.vala" - return result; -#line 906 "main.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 186 "/home/jens/Source/shotwell/src/main.vala" - return self ? g_object_ref (self) : NULL; -#line 915 "main.c" -} - - -void -library_exec (gchar** mounts, - int mounts_length1) -{ - gboolean _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - gchar* errormsg = NULL; - gchar* app_version = NULL; - gint schema_version = 0; - DbVerifyResult _result_ = 0; - gchar* _tmp7_ = NULL; - gint _tmp8_ = 0; - DbVerifyResult _tmp9_; - DbVerifyResult _tmp10_; - const gchar* _tmp27_; - ProgressDialog* progress_dialog = NULL; - AggregateProgressMonitor* aggregate_monitor = NULL; - ProgressMonitor monitor = NULL; - void* monitor_target; - GDestroyNotify monitor_target_destroy_notify; - gboolean _tmp33_; - AggregateProgressMonitor* _tmp58_; - ProgressMonitor _tmp60_; - void* _tmp60__target; - AggregateProgressMonitor* _tmp61_; - ProgressMonitor _tmp63_; - void* _tmp63__target; - AggregateProgressMonitor* _tmp64_; - Upgrades* _tmp66_; - Upgrades* _tmp67_; - MediaCollectionRegistry* registry = NULL; - MediaCollectionRegistry* _tmp68_; - MediaCollectionRegistry* _tmp69_; - LibraryPhotoSourceCollection* _tmp70_; - MediaCollectionRegistry* _tmp71_; - VideoSourceCollection* _tmp72_; - AggregateProgressMonitor* _tmp73_; - ProgressMonitor _tmp75_; - void* _tmp75__target; - AggregateProgressMonitor* _tmp76_; - ProgressMonitor _tmp78_; - void* _tmp78__target; - Application* _tmp79_; - Application* _tmp80_; - AggregateProgressMonitor* _tmp81_; - LibraryWindow* library_window = NULL; - ProgressMonitor _tmp83_; - void* _tmp83__target; - LibraryWindow* _tmp84_; - AggregateProgressMonitor* _tmp85_; - ProgressDialog* _tmp87_; - LibraryWindow* _tmp92_; - WelcomeServiceEntry** selected_import_entries = NULL; - WelcomeServiceEntry** _tmp93_; - gint selected_import_entries_length1; - gint _selected_import_entries_size_; - gboolean _tmp94_ = FALSE; - ConfigFacade* _tmp95_; - ConfigFacade* _tmp96_; - gboolean _tmp97_; - WelcomeServiceEntry** _tmp110_; - gint _tmp110__length1; - gboolean _tmp114_; - GTimer* _tmp115_; - gdouble _tmp116_; - Application* _tmp117_; - Application* _tmp118_; - GError * _inner_error_ = NULL; -#line 16 "/home/jens/Source/shotwell/src/main.vala" - was_already_running = application_get_is_remote (); -#line 18 "/home/jens/Source/shotwell/src/main.vala" - _tmp0_ = was_already_running; -#line 18 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp0_) { -#line 25 "/home/jens/Source/shotwell/src/main.vala" - application_present_primary_instance (); -#line 26 "/home/jens/Source/shotwell/src/main.vala" - application_send_to_primary_instance (mounts, mounts_length1); -#line 27 "/home/jens/Source/shotwell/src/main.vala" - return; -#line 1002 "main.c" - } -#line 31 "/home/jens/Source/shotwell/src/main.vala" - _tmp1_ = app_dirs_get_data_subdir ("data", NULL); -#line 31 "/home/jens/Source/shotwell/src/main.vala" - _tmp2_ = _tmp1_; -#line 31 "/home/jens/Source/shotwell/src/main.vala" - _tmp3_ = g_file_get_child (_tmp2_, "photo.db"); -#line 31 "/home/jens/Source/shotwell/src/main.vala" - _tmp4_ = _tmp3_; -#line 31 "/home/jens/Source/shotwell/src/main.vala" - db_preconfigure (_tmp4_); -#line 31 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (_tmp4_); -#line 31 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (_tmp2_); -#line 1018 "main.c" - { -#line 35 "/home/jens/Source/shotwell/src/main.vala" - library_app_init (&_inner_error_); -#line 35 "/home/jens/Source/shotwell/src/main.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1024 "main.c" - goto __catch233_g_error; - } - } - goto __finally233; - __catch233_g_error: - { - GError* err = NULL; - GError* _tmp5_; - const gchar* _tmp6_; -#line 34 "/home/jens/Source/shotwell/src/main.vala" - err = _inner_error_; -#line 34 "/home/jens/Source/shotwell/src/main.vala" - _inner_error_ = NULL; -#line 37 "/home/jens/Source/shotwell/src/main.vala" - _tmp5_ = err; -#line 37 "/home/jens/Source/shotwell/src/main.vala" - _tmp6_ = _tmp5_->message; -#line 37 "/home/jens/Source/shotwell/src/main.vala" - app_window_panic (_tmp6_); -#line 39 "/home/jens/Source/shotwell/src/main.vala" - _g_error_free0 (err); -#line 39 "/home/jens/Source/shotwell/src/main.vala" - return; -#line 1048 "main.c" - } - __finally233: -#line 34 "/home/jens/Source/shotwell/src/main.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 34 "/home/jens/Source/shotwell/src/main.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 34 "/home/jens/Source/shotwell/src/main.vala" - g_clear_error (&_inner_error_); -#line 34 "/home/jens/Source/shotwell/src/main.vala" - return; -#line 1059 "main.c" - } -#line 43 "/home/jens/Source/shotwell/src/main.vala" - g_message ("main.vala:43: Verifying database…"); -#line 44 "/home/jens/Source/shotwell/src/main.vala" - errormsg = NULL; -#line 47 "/home/jens/Source/shotwell/src/main.vala" - _tmp9_ = db_verify_database (&_tmp7_, &_tmp8_); -#line 47 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (app_version); -#line 47 "/home/jens/Source/shotwell/src/main.vala" - app_version = _tmp7_; -#line 47 "/home/jens/Source/shotwell/src/main.vala" - schema_version = _tmp8_; -#line 47 "/home/jens/Source/shotwell/src/main.vala" - _result_ = _tmp9_; -#line 48 "/home/jens/Source/shotwell/src/main.vala" - _tmp10_ = _result_; -#line 48 "/home/jens/Source/shotwell/src/main.vala" - switch (_tmp10_) { -#line 48 "/home/jens/Source/shotwell/src/main.vala" - case DB_VERIFY_RESULT_OK: -#line 1081 "main.c" - { -#line 51 "/home/jens/Source/shotwell/src/main.vala" - break; -#line 1085 "main.c" - } -#line 48 "/home/jens/Source/shotwell/src/main.vala" - case DB_VERIFY_RESULT_FUTURE_VERSION: -#line 1089 "main.c" - { - const gchar* _tmp11_; - gint _tmp12_; - gchar* _tmp13_; -#line 54 "/home/jens/Source/shotwell/src/main.vala" - _tmp11_ = app_version; -#line 54 "/home/jens/Source/shotwell/src/main.vala" - _tmp12_ = schema_version; -#line 54 "/home/jens/Source/shotwell/src/main.vala" - _tmp13_ = g_strdup_printf (_ ("Your photo library is not compatible with this version of Shotwell. It" \ -" appears it was created by Shotwell %s (schema %d). This version is %s" \ -" (schema %d). Please use the latest version of Shotwell."), _tmp11_, _tmp12_, RESOURCES_APP_VERSION, DATABASE_TABLE_SCHEMA_VERSION); -#line 54 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (errormsg); -#line 54 "/home/jens/Source/shotwell/src/main.vala" - errormsg = _tmp13_; -#line 56 "/home/jens/Source/shotwell/src/main.vala" - break; -#line 1106 "main.c" - } -#line 48 "/home/jens/Source/shotwell/src/main.vala" - case DB_VERIFY_RESULT_UPGRADE_ERROR: -#line 1110 "main.c" - { - const gchar* _tmp14_; - gint _tmp15_; - gchar* _tmp16_; -#line 59 "/home/jens/Source/shotwell/src/main.vala" - _tmp14_ = app_version; -#line 59 "/home/jens/Source/shotwell/src/main.vala" - _tmp15_ = schema_version; -#line 59 "/home/jens/Source/shotwell/src/main.vala" - _tmp16_ = g_strdup_printf (_ ("Shotwell was unable to upgrade your photo library from version %s (sch" \ -"ema %d) to %s (schema %d). For more information please check the Shotw" \ -"ell Wiki at %s"), _tmp14_, _tmp15_, RESOURCES_APP_VERSION, DATABASE_TABLE_SCHEMA_VERSION, RESOURCES_HOME_URL); -#line 59 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (errormsg); -#line 59 "/home/jens/Source/shotwell/src/main.vala" - errormsg = _tmp16_; -#line 62 "/home/jens/Source/shotwell/src/main.vala" - break; -#line 1127 "main.c" - } -#line 48 "/home/jens/Source/shotwell/src/main.vala" - case DB_VERIFY_RESULT_NO_UPGRADE_AVAILABLE: -#line 1131 "main.c" - { - const gchar* _tmp17_; - gint _tmp18_; - GFile* _tmp19_; - GFile* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; -#line 65 "/home/jens/Source/shotwell/src/main.vala" - _tmp17_ = app_version; -#line 65 "/home/jens/Source/shotwell/src/main.vala" - _tmp18_ = schema_version; -#line 65 "/home/jens/Source/shotwell/src/main.vala" - _tmp19_ = app_dirs_get_data_dir (); -#line 65 "/home/jens/Source/shotwell/src/main.vala" - _tmp20_ = _tmp19_; -#line 65 "/home/jens/Source/shotwell/src/main.vala" - _tmp21_ = g_file_get_path (_tmp20_); -#line 65 "/home/jens/Source/shotwell/src/main.vala" - _tmp22_ = _tmp21_; -#line 65 "/home/jens/Source/shotwell/src/main.vala" - _tmp23_ = g_strdup_printf (_ ("Your photo library is not compatible with this version of Shotwell. It" \ -" appears it was created by Shotwell %s (schema %d). This version is %s" \ -" (schema %d). Please clear your library by deleting %s and re-import y" \ -"our photos."), _tmp17_, _tmp18_, RESOURCES_APP_VERSION, DATABASE_TABLE_SCHEMA_VERSION, _tmp22_); -#line 65 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (errormsg); -#line 65 "/home/jens/Source/shotwell/src/main.vala" - errormsg = _tmp23_; -#line 65 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (_tmp22_); -#line 65 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (_tmp20_); -#line 68 "/home/jens/Source/shotwell/src/main.vala" - break; -#line 1164 "main.c" - } - default: - { - DbVerifyResult _tmp24_; - GEnumValue* _tmp25_; - gchar* _tmp26_; -#line 71 "/home/jens/Source/shotwell/src/main.vala" - _tmp24_ = _result_; -#line 72 "/home/jens/Source/shotwell/src/main.vala" - _tmp25_ = g_enum_get_value (g_type_class_ref (DB_TYPE_VERIFY_RESULT), _tmp24_); -#line 71 "/home/jens/Source/shotwell/src/main.vala" - _tmp26_ = g_strdup_printf (_ ("Unknown error attempting to verify Shotwell’s database: %s"), (_tmp25_ != NULL) ? _tmp25_->value_name : NULL); -#line 71 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (errormsg); -#line 71 "/home/jens/Source/shotwell/src/main.vala" - errormsg = _tmp26_; -#line 73 "/home/jens/Source/shotwell/src/main.vala" - break; -#line 1183 "main.c" - } - } -#line 76 "/home/jens/Source/shotwell/src/main.vala" - _tmp27_ = errormsg; -#line 76 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp27_ != NULL) { -#line 1190 "main.c" - GtkMessageDialog* dialog = NULL; - const gchar* _tmp28_; - GtkMessageDialog* _tmp29_; - GtkMessageDialog* _tmp30_; - GtkMessageDialog* _tmp31_; - GtkMessageDialog* _tmp32_; -#line 77 "/home/jens/Source/shotwell/src/main.vala" - _tmp28_ = errormsg; -#line 77 "/home/jens/Source/shotwell/src/main.vala" - _tmp29_ = (GtkMessageDialog*) gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", _tmp28_); -#line 77 "/home/jens/Source/shotwell/src/main.vala" - g_object_ref_sink (_tmp29_); -#line 77 "/home/jens/Source/shotwell/src/main.vala" - dialog = _tmp29_; -#line 79 "/home/jens/Source/shotwell/src/main.vala" - _tmp30_ = dialog; -#line 79 "/home/jens/Source/shotwell/src/main.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_window_get_type (), GtkWindow), RESOURCES_APP_TITLE); -#line 80 "/home/jens/Source/shotwell/src/main.vala" - _tmp31_ = dialog; -#line 80 "/home/jens/Source/shotwell/src/main.vala" - gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_dialog_get_type (), GtkDialog)); -#line 81 "/home/jens/Source/shotwell/src/main.vala" - _tmp32_ = dialog; -#line 81 "/home/jens/Source/shotwell/src/main.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_widget_get_type (), GtkWidget)); -#line 83 "/home/jens/Source/shotwell/src/main.vala" - database_table_terminate (); -#line 85 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (dialog); -#line 85 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (app_version); -#line 85 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (errormsg); -#line 85 "/home/jens/Source/shotwell/src/main.vala" - return; -#line 1227 "main.c" - } -#line 88 "/home/jens/Source/shotwell/src/main.vala" - upgrades_init (); -#line 90 "/home/jens/Source/shotwell/src/main.vala" - progress_dialog = NULL; -#line 91 "/home/jens/Source/shotwell/src/main.vala" - aggregate_monitor = NULL; -#line 92 "/home/jens/Source/shotwell/src/main.vala" - monitor = NULL; -#line 92 "/home/jens/Source/shotwell/src/main.vala" - monitor_target = NULL; -#line 92 "/home/jens/Source/shotwell/src/main.vala" - monitor_target_destroy_notify = NULL; -#line 94 "/home/jens/Source/shotwell/src/main.vala" - _tmp33_ = commandline_options_no_startup_progress; -#line 94 "/home/jens/Source/shotwell/src/main.vala" - if (!_tmp33_) { -#line 1245 "main.c" - guint64 grand_total = 0ULL; - PhotoTable* _tmp34_; - PhotoTable* _tmp35_; - EventTable* _tmp36_; - EventTable* _tmp37_; - TagTable* _tmp38_; - TagTable* _tmp39_; - VideoTable* _tmp40_; - VideoTable* _tmp41_; - Upgrades* _tmp42_; - Upgrades* _tmp43_; - guint64 _tmp44_; - guint64 _tmp45_; -#line 98 "/home/jens/Source/shotwell/src/main.vala" - _tmp34_ = photo_table_get_instance (); -#line 98 "/home/jens/Source/shotwell/src/main.vala" - _tmp35_ = _tmp34_; -#line 98 "/home/jens/Source/shotwell/src/main.vala" - _tmp36_ = event_table_get_instance (); -#line 98 "/home/jens/Source/shotwell/src/main.vala" - _tmp37_ = _tmp36_; -#line 98 "/home/jens/Source/shotwell/src/main.vala" - _tmp38_ = tag_table_get_instance (); -#line 98 "/home/jens/Source/shotwell/src/main.vala" - _tmp39_ = _tmp38_; -#line 98 "/home/jens/Source/shotwell/src/main.vala" - _tmp40_ = video_table_get_instance (); -#line 98 "/home/jens/Source/shotwell/src/main.vala" - _tmp41_ = _tmp40_; -#line 98 "/home/jens/Source/shotwell/src/main.vala" - _tmp42_ = upgrades_get_instance (); -#line 98 "/home/jens/Source/shotwell/src/main.vala" - _tmp43_ = _tmp42_; -#line 98 "/home/jens/Source/shotwell/src/main.vala" - _tmp44_ = (((database_table_get_row_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_DATABASE_TABLE, DatabaseTable)) + database_table_get_row_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, TYPE_DATABASE_TABLE, DatabaseTable))) + database_table_get_row_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_DATABASE_TABLE, DatabaseTable))) + database_table_get_row_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, TYPE_DATABASE_TABLE, DatabaseTable))) + upgrades_get_step_count (_tmp43_); -#line 98 "/home/jens/Source/shotwell/src/main.vala" - _upgrades_unref0 (_tmp43_); -#line 98 "/home/jens/Source/shotwell/src/main.vala" - _database_table_unref0 (_tmp41_); -#line 98 "/home/jens/Source/shotwell/src/main.vala" - _database_table_unref0 (_tmp39_); -#line 98 "/home/jens/Source/shotwell/src/main.vala" - _database_table_unref0 (_tmp37_); -#line 98 "/home/jens/Source/shotwell/src/main.vala" - _database_table_unref0 (_tmp35_); -#line 98 "/home/jens/Source/shotwell/src/main.vala" - grand_total = _tmp44_; -#line 103 "/home/jens/Source/shotwell/src/main.vala" - _tmp45_ = grand_total; -#line 103 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp45_ > ((guint64) 5000)) { -#line 1297 "main.c" - ProgressDialog* _tmp46_; - ProgressDialog* _tmp47_; - ProgressDialog* _tmp48_; - guint64 _tmp54_; - ProgressDialog* _tmp55_; - AggregateProgressMonitor* _tmp56_; - AggregateProgressMonitor* _tmp57_; -#line 104 "/home/jens/Source/shotwell/src/main.vala" - _tmp46_ = progress_dialog_new (NULL, _ ("Loading Shotwell"), NULL); -#line 104 "/home/jens/Source/shotwell/src/main.vala" - g_object_ref_sink (_tmp46_); -#line 104 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (progress_dialog); -#line 104 "/home/jens/Source/shotwell/src/main.vala" - progress_dialog = _tmp46_; -#line 105 "/home/jens/Source/shotwell/src/main.vala" - _tmp47_ = progress_dialog; -#line 105 "/home/jens/Source/shotwell/src/main.vala" - progress_dialog_update_display_every (_tmp47_, 100); -#line 106 "/home/jens/Source/shotwell/src/main.vala" - _tmp48_ = progress_dialog; -#line 106 "/home/jens/Source/shotwell/src/main.vala" - progress_dialog_set_minimum_on_screen_time_msec (_tmp48_, 250); -#line 1321 "main.c" - { - GdkPixbuf* _tmp49_ = NULL; - GdkPixbuf* _tmp50_; - ProgressDialog* _tmp51_; -#line 108 "/home/jens/Source/shotwell/src/main.vala" - _tmp50_ = gdk_pixbuf_new_from_resource ("/org/gnome/Shotwell/icons/shotwell.svg", &_inner_error_); -#line 108 "/home/jens/Source/shotwell/src/main.vala" - _tmp49_ = _tmp50_; -#line 108 "/home/jens/Source/shotwell/src/main.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1332 "main.c" - goto __catch234_g_error; - } -#line 108 "/home/jens/Source/shotwell/src/main.vala" - _tmp51_ = progress_dialog; -#line 108 "/home/jens/Source/shotwell/src/main.vala" - gtk_window_set_icon (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, gtk_window_get_type (), GtkWindow), _tmp49_); -#line 107 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (_tmp49_); -#line 1341 "main.c" - } - goto __finally234; - __catch234_g_error: - { - GError* err = NULL; - GError* _tmp52_; - const gchar* _tmp53_; -#line 107 "/home/jens/Source/shotwell/src/main.vala" - err = _inner_error_; -#line 107 "/home/jens/Source/shotwell/src/main.vala" - _inner_error_ = NULL; -#line 110 "/home/jens/Source/shotwell/src/main.vala" - _tmp52_ = err; -#line 110 "/home/jens/Source/shotwell/src/main.vala" - _tmp53_ = _tmp52_->message; -#line 110 "/home/jens/Source/shotwell/src/main.vala" - g_debug ("main.vala:110: Warning - could not load application icon for loading w" \ -"indow: %s", _tmp53_); -#line 107 "/home/jens/Source/shotwell/src/main.vala" - _g_error_free0 (err); -#line 1361 "main.c" - } - __finally234: -#line 107 "/home/jens/Source/shotwell/src/main.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 107 "/home/jens/Source/shotwell/src/main.vala" - (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL); -#line 107 "/home/jens/Source/shotwell/src/main.vala" - monitor = NULL; -#line 107 "/home/jens/Source/shotwell/src/main.vala" - monitor_target = NULL; -#line 107 "/home/jens/Source/shotwell/src/main.vala" - monitor_target_destroy_notify = NULL; -#line 107 "/home/jens/Source/shotwell/src/main.vala" - _aggregate_progress_monitor_unref0 (aggregate_monitor); -#line 107 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (progress_dialog); -#line 107 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (app_version); -#line 107 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (errormsg); -#line 107 "/home/jens/Source/shotwell/src/main.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 107 "/home/jens/Source/shotwell/src/main.vala" - g_clear_error (&_inner_error_); -#line 107 "/home/jens/Source/shotwell/src/main.vala" - return; -#line 1388 "main.c" - } -#line 113 "/home/jens/Source/shotwell/src/main.vala" - _tmp54_ = grand_total; -#line 113 "/home/jens/Source/shotwell/src/main.vala" - _tmp55_ = progress_dialog; -#line 113 "/home/jens/Source/shotwell/src/main.vala" - _tmp56_ = aggregate_progress_monitor_new (_tmp54_, _progress_dialog_monitor_progress_monitor, _tmp55_); -#line 113 "/home/jens/Source/shotwell/src/main.vala" - _aggregate_progress_monitor_unref0 (aggregate_monitor); -#line 113 "/home/jens/Source/shotwell/src/main.vala" - aggregate_monitor = _tmp56_; -#line 114 "/home/jens/Source/shotwell/src/main.vala" - _tmp57_ = aggregate_monitor; -#line 114 "/home/jens/Source/shotwell/src/main.vala" - (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL); -#line 114 "/home/jens/Source/shotwell/src/main.vala" - monitor = NULL; -#line 114 "/home/jens/Source/shotwell/src/main.vala" - monitor_target = NULL; -#line 114 "/home/jens/Source/shotwell/src/main.vala" - monitor_target_destroy_notify = NULL; -#line 114 "/home/jens/Source/shotwell/src/main.vala" - monitor = _aggregate_progress_monitor_monitor_progress_monitor; -#line 114 "/home/jens/Source/shotwell/src/main.vala" - monitor_target = aggregate_progress_monitor_ref (_tmp57_); -#line 114 "/home/jens/Source/shotwell/src/main.vala" - monitor_target_destroy_notify = aggregate_progress_monitor_unref; -#line 1416 "main.c" - } - } -#line 118 "/home/jens/Source/shotwell/src/main.vala" - thumbnail_cache_init (); -#line 119 "/home/jens/Source/shotwell/src/main.vala" - tombstone_init (); -#line 121 "/home/jens/Source/shotwell/src/main.vala" - library_files_select_copy_function (); -#line 123 "/home/jens/Source/shotwell/src/main.vala" - _tmp58_ = aggregate_monitor; -#line 123 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp58_ != NULL) { -#line 1429 "main.c" - AggregateProgressMonitor* _tmp59_; -#line 124 "/home/jens/Source/shotwell/src/main.vala" - _tmp59_ = aggregate_monitor; -#line 124 "/home/jens/Source/shotwell/src/main.vala" - aggregate_progress_monitor_next_step (_tmp59_, "LibraryPhoto.init"); -#line 1435 "main.c" - } -#line 125 "/home/jens/Source/shotwell/src/main.vala" - _tmp60_ = monitor; -#line 125 "/home/jens/Source/shotwell/src/main.vala" - _tmp60__target = monitor_target; -#line 125 "/home/jens/Source/shotwell/src/main.vala" - library_photo_init (_tmp60_, _tmp60__target); -#line 126 "/home/jens/Source/shotwell/src/main.vala" - _tmp61_ = aggregate_monitor; -#line 126 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp61_ != NULL) { -#line 1447 "main.c" - AggregateProgressMonitor* _tmp62_; -#line 127 "/home/jens/Source/shotwell/src/main.vala" - _tmp62_ = aggregate_monitor; -#line 127 "/home/jens/Source/shotwell/src/main.vala" - aggregate_progress_monitor_next_step (_tmp62_, "Video.init"); -#line 1453 "main.c" - } -#line 128 "/home/jens/Source/shotwell/src/main.vala" - _tmp63_ = monitor; -#line 128 "/home/jens/Source/shotwell/src/main.vala" - _tmp63__target = monitor_target; -#line 128 "/home/jens/Source/shotwell/src/main.vala" - video_init (_tmp63_, _tmp63__target); -#line 129 "/home/jens/Source/shotwell/src/main.vala" - _tmp64_ = aggregate_monitor; -#line 129 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp64_ != NULL) { -#line 1465 "main.c" - AggregateProgressMonitor* _tmp65_; -#line 130 "/home/jens/Source/shotwell/src/main.vala" - _tmp65_ = aggregate_monitor; -#line 130 "/home/jens/Source/shotwell/src/main.vala" - aggregate_progress_monitor_next_step (_tmp65_, "Upgrades.execute"); -#line 1471 "main.c" - } -#line 131 "/home/jens/Source/shotwell/src/main.vala" - _tmp66_ = upgrades_get_instance (); -#line 131 "/home/jens/Source/shotwell/src/main.vala" - _tmp67_ = _tmp66_; -#line 131 "/home/jens/Source/shotwell/src/main.vala" - upgrades_execute (_tmp67_, NULL, NULL); -#line 131 "/home/jens/Source/shotwell/src/main.vala" - _upgrades_unref0 (_tmp67_); -#line 133 "/home/jens/Source/shotwell/src/main.vala" - library_monitor_pool_init (); -#line 134 "/home/jens/Source/shotwell/src/main.vala" - media_collection_registry_init (); -#line 135 "/home/jens/Source/shotwell/src/main.vala" - _tmp68_ = media_collection_registry_get_instance (); -#line 135 "/home/jens/Source/shotwell/src/main.vala" - registry = _tmp68_; -#line 136 "/home/jens/Source/shotwell/src/main.vala" - _tmp69_ = registry; -#line 136 "/home/jens/Source/shotwell/src/main.vala" - _tmp70_ = library_photo_global; -#line 136 "/home/jens/Source/shotwell/src/main.vala" - media_collection_registry_register_collection (_tmp69_, G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 137 "/home/jens/Source/shotwell/src/main.vala" - _tmp71_ = registry; -#line 137 "/home/jens/Source/shotwell/src/main.vala" - _tmp72_ = video_global; -#line 137 "/home/jens/Source/shotwell/src/main.vala" - media_collection_registry_register_collection (_tmp71_, G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 139 "/home/jens/Source/shotwell/src/main.vala" - _tmp73_ = aggregate_monitor; -#line 139 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp73_ != NULL) { -#line 1505 "main.c" - AggregateProgressMonitor* _tmp74_; -#line 140 "/home/jens/Source/shotwell/src/main.vala" - _tmp74_ = aggregate_monitor; -#line 140 "/home/jens/Source/shotwell/src/main.vala" - aggregate_progress_monitor_next_step (_tmp74_, "Event.init"); -#line 1511 "main.c" - } -#line 141 "/home/jens/Source/shotwell/src/main.vala" - _tmp75_ = monitor; -#line 141 "/home/jens/Source/shotwell/src/main.vala" - _tmp75__target = monitor_target; -#line 141 "/home/jens/Source/shotwell/src/main.vala" - event_init (_tmp75_, _tmp75__target); -#line 142 "/home/jens/Source/shotwell/src/main.vala" - _tmp76_ = aggregate_monitor; -#line 142 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp76_ != NULL) { -#line 1523 "main.c" - AggregateProgressMonitor* _tmp77_; -#line 143 "/home/jens/Source/shotwell/src/main.vala" - _tmp77_ = aggregate_monitor; -#line 143 "/home/jens/Source/shotwell/src/main.vala" - aggregate_progress_monitor_next_step (_tmp77_, "Tag.init"); -#line 1529 "main.c" - } -#line 144 "/home/jens/Source/shotwell/src/main.vala" - _tmp78_ = monitor; -#line 144 "/home/jens/Source/shotwell/src/main.vala" - _tmp78__target = monitor_target; -#line 144 "/home/jens/Source/shotwell/src/main.vala" - tag_init (_tmp78_, _tmp78__target); -#line 146 "/home/jens/Source/shotwell/src/main.vala" - metadata_writer_init (); -#line 147 "/home/jens/Source/shotwell/src/main.vala" - desktop_integration_init (); -#line 149 "/home/jens/Source/shotwell/src/main.vala" - _tmp79_ = application_get_instance (); -#line 149 "/home/jens/Source/shotwell/src/main.vala" - _tmp80_ = _tmp79_; -#line 149 "/home/jens/Source/shotwell/src/main.vala" - g_signal_emit_by_name (_tmp80_, "init-done"); -#line 149 "/home/jens/Source/shotwell/src/main.vala" - _application_unref0 (_tmp80_); -#line 152 "/home/jens/Source/shotwell/src/main.vala" - _tmp81_ = aggregate_monitor; -#line 152 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp81_ != NULL) { -#line 1553 "main.c" - AggregateProgressMonitor* _tmp82_; -#line 153 "/home/jens/Source/shotwell/src/main.vala" - _tmp82_ = aggregate_monitor; -#line 153 "/home/jens/Source/shotwell/src/main.vala" - aggregate_progress_monitor_next_step (_tmp82_, "LibraryWindow"); -#line 1559 "main.c" - } -#line 154 "/home/jens/Source/shotwell/src/main.vala" - _tmp83_ = monitor; -#line 154 "/home/jens/Source/shotwell/src/main.vala" - _tmp83__target = monitor_target; -#line 154 "/home/jens/Source/shotwell/src/main.vala" - _tmp84_ = library_window_new (_tmp83_, _tmp83__target); -#line 154 "/home/jens/Source/shotwell/src/main.vala" - g_object_ref_sink (_tmp84_); -#line 154 "/home/jens/Source/shotwell/src/main.vala" - library_window = _tmp84_; -#line 156 "/home/jens/Source/shotwell/src/main.vala" - _tmp85_ = aggregate_monitor; -#line 156 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp85_ != NULL) { -#line 1575 "main.c" - AggregateProgressMonitor* _tmp86_; -#line 157 "/home/jens/Source/shotwell/src/main.vala" - _tmp86_ = aggregate_monitor; -#line 157 "/home/jens/Source/shotwell/src/main.vala" - aggregate_progress_monitor_next_step (_tmp86_, "done"); -#line 1581 "main.c" - } -#line 162 "/home/jens/Source/shotwell/src/main.vala" - (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL); -#line 162 "/home/jens/Source/shotwell/src/main.vala" - monitor = NULL; -#line 162 "/home/jens/Source/shotwell/src/main.vala" - monitor_target = NULL; -#line 162 "/home/jens/Source/shotwell/src/main.vala" - monitor_target_destroy_notify = NULL; -#line 162 "/home/jens/Source/shotwell/src/main.vala" - monitor = NULL; -#line 162 "/home/jens/Source/shotwell/src/main.vala" - monitor_target = NULL; -#line 162 "/home/jens/Source/shotwell/src/main.vala" - monitor_target_destroy_notify = NULL; -#line 163 "/home/jens/Source/shotwell/src/main.vala" - _aggregate_progress_monitor_unref0 (aggregate_monitor); -#line 163 "/home/jens/Source/shotwell/src/main.vala" - aggregate_monitor = NULL; -#line 164 "/home/jens/Source/shotwell/src/main.vala" - _tmp87_ = progress_dialog; -#line 164 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp87_ != NULL) { -#line 1605 "main.c" - ProgressDialog* _tmp88_; -#line 165 "/home/jens/Source/shotwell/src/main.vala" - _tmp88_ = progress_dialog; -#line 165 "/home/jens/Source/shotwell/src/main.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp88_, gtk_widget_get_type (), GtkWidget)); -#line 1611 "main.c" - } -#line 166 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (progress_dialog); -#line 166 "/home/jens/Source/shotwell/src/main.vala" - progress_dialog = NULL; -#line 1617 "main.c" - { - gchar** mount_collection = NULL; - gint mount_collection_length1 = 0; - gint _mount_collection_size_ = 0; - gint mount_it = 0; -#line 169 "/home/jens/Source/shotwell/src/main.vala" - mount_collection = mounts; -#line 169 "/home/jens/Source/shotwell/src/main.vala" - mount_collection_length1 = mounts_length1; -#line 169 "/home/jens/Source/shotwell/src/main.vala" - for (mount_it = 0; mount_it < mounts_length1; mount_it = mount_it + 1) { -#line 1629 "main.c" - gchar* _tmp89_; - gchar* mount = NULL; -#line 169 "/home/jens/Source/shotwell/src/main.vala" - _tmp89_ = g_strdup (mount_collection[mount_it]); -#line 169 "/home/jens/Source/shotwell/src/main.vala" - mount = _tmp89_; -#line 1636 "main.c" - { - LibraryWindow* _tmp90_; - const gchar* _tmp91_; -#line 170 "/home/jens/Source/shotwell/src/main.vala" - _tmp90_ = library_window; -#line 170 "/home/jens/Source/shotwell/src/main.vala" - _tmp91_ = mount; -#line 170 "/home/jens/Source/shotwell/src/main.vala" - library_window_mounted_camera_shell_notification (_tmp90_, _tmp91_, TRUE); -#line 169 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (mount); -#line 1648 "main.c" - } - } - } -#line 172 "/home/jens/Source/shotwell/src/main.vala" - _tmp92_ = library_window; -#line 172 "/home/jens/Source/shotwell/src/main.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp92_, gtk_widget_get_type (), GtkWidget)); -#line 174 "/home/jens/Source/shotwell/src/main.vala" - _tmp93_ = g_new0 (WelcomeServiceEntry*, 0 + 1); -#line 174 "/home/jens/Source/shotwell/src/main.vala" - selected_import_entries = _tmp93_; -#line 174 "/home/jens/Source/shotwell/src/main.vala" - selected_import_entries_length1 = 0; -#line 174 "/home/jens/Source/shotwell/src/main.vala" - _selected_import_entries_size_ = selected_import_entries_length1; -#line 175 "/home/jens/Source/shotwell/src/main.vala" - _tmp95_ = config_facade_get_instance (); -#line 175 "/home/jens/Source/shotwell/src/main.vala" - _tmp96_ = _tmp95_; -#line 175 "/home/jens/Source/shotwell/src/main.vala" - _tmp97_ = configuration_facade_get_show_welcome_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp96_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 175 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (_tmp96_); -#line 175 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp97_) { -#line 1674 "main.c" - LibraryPhotoSourceCollection* _tmp98_; -#line 176 "/home/jens/Source/shotwell/src/main.vala" - _tmp98_ = library_photo_global; -#line 176 "/home/jens/Source/shotwell/src/main.vala" - _tmp94_ = data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp98_, TYPE_DATA_COLLECTION, DataCollection)) == 0; -#line 1680 "main.c" - } else { -#line 175 "/home/jens/Source/shotwell/src/main.vala" - _tmp94_ = FALSE; -#line 1684 "main.c" - } -#line 175 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp94_) { -#line 1688 "main.c" - WelcomeDialog* welcome = NULL; - LibraryWindow* _tmp99_; - WelcomeDialog* _tmp100_; - ConfigFacade* _tmp101_; - ConfigFacade* _tmp102_; - WelcomeDialog* _tmp103_; - WelcomeServiceEntry** _tmp104_ = NULL; - gint _tmp105_; - gboolean _tmp106_ = FALSE; - gboolean _tmp107_; -#line 177 "/home/jens/Source/shotwell/src/main.vala" - _tmp99_ = library_window; -#line 177 "/home/jens/Source/shotwell/src/main.vala" - _tmp100_ = welcome_dialog_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp99_, gtk_window_get_type (), GtkWindow)); -#line 177 "/home/jens/Source/shotwell/src/main.vala" - g_object_ref_sink (_tmp100_); -#line 177 "/home/jens/Source/shotwell/src/main.vala" - welcome = _tmp100_; -#line 178 "/home/jens/Source/shotwell/src/main.vala" - _tmp101_ = config_facade_get_instance (); -#line 178 "/home/jens/Source/shotwell/src/main.vala" - _tmp102_ = _tmp101_; -#line 178 "/home/jens/Source/shotwell/src/main.vala" - _tmp103_ = welcome; -#line 178 "/home/jens/Source/shotwell/src/main.vala" - _tmp107_ = welcome_dialog_execute (_tmp103_, &_tmp104_, &_tmp105_, &_tmp106_); -#line 178 "/home/jens/Source/shotwell/src/main.vala" - selected_import_entries = (_vala_array_free (selected_import_entries, selected_import_entries_length1, (GDestroyNotify) g_object_unref), NULL); -#line 178 "/home/jens/Source/shotwell/src/main.vala" - selected_import_entries = _tmp104_; -#line 178 "/home/jens/Source/shotwell/src/main.vala" - selected_import_entries_length1 = _tmp105_; -#line 178 "/home/jens/Source/shotwell/src/main.vala" - _selected_import_entries_size_ = selected_import_entries_length1; -#line 178 "/home/jens/Source/shotwell/src/main.vala" - do_system_pictures_import = _tmp106_; -#line 178 "/home/jens/Source/shotwell/src/main.vala" - configuration_facade_set_show_welcome_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp102_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp107_); -#line 178 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (_tmp102_); -#line 175 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (welcome); -#line 1731 "main.c" - } else { - ConfigFacade* _tmp108_; - ConfigFacade* _tmp109_; -#line 181 "/home/jens/Source/shotwell/src/main.vala" - _tmp108_ = config_facade_get_instance (); -#line 181 "/home/jens/Source/shotwell/src/main.vala" - _tmp109_ = _tmp108_; -#line 181 "/home/jens/Source/shotwell/src/main.vala" - configuration_facade_set_show_welcome_dialog (G_TYPE_CHECK_INSTANCE_CAST (_tmp109_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), FALSE); -#line 181 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (_tmp109_); -#line 1743 "main.c" - } -#line 184 "/home/jens/Source/shotwell/src/main.vala" - _tmp110_ = selected_import_entries; -#line 184 "/home/jens/Source/shotwell/src/main.vala" - _tmp110__length1 = selected_import_entries_length1; -#line 184 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp110__length1 > 0) { -#line 1751 "main.c" - WelcomeServiceEntry** _tmp111_; - gint _tmp111__length1; -#line 185 "/home/jens/Source/shotwell/src/main.vala" - do_external_import = TRUE; -#line 186 "/home/jens/Source/shotwell/src/main.vala" - _tmp111_ = selected_import_entries; -#line 186 "/home/jens/Source/shotwell/src/main.vala" - _tmp111__length1 = selected_import_entries_length1; -#line 1760 "main.c" - { - WelcomeServiceEntry** entry_collection = NULL; - gint entry_collection_length1 = 0; - gint _entry_collection_size_ = 0; - gint entry_it = 0; -#line 186 "/home/jens/Source/shotwell/src/main.vala" - entry_collection = _tmp111_; -#line 186 "/home/jens/Source/shotwell/src/main.vala" - entry_collection_length1 = _tmp111__length1; -#line 186 "/home/jens/Source/shotwell/src/main.vala" - for (entry_it = 0; entry_it < _tmp111__length1; entry_it = entry_it + 1) { -#line 1772 "main.c" - WelcomeServiceEntry* _tmp112_; - WelcomeServiceEntry* entry = NULL; -#line 186 "/home/jens/Source/shotwell/src/main.vala" - _tmp112_ = _g_object_ref0 (entry_collection[entry_it]); -#line 186 "/home/jens/Source/shotwell/src/main.vala" - entry = _tmp112_; -#line 1779 "main.c" - { - WelcomeServiceEntry* _tmp113_; -#line 187 "/home/jens/Source/shotwell/src/main.vala" - _tmp113_ = entry; -#line 187 "/home/jens/Source/shotwell/src/main.vala" - welcome_service_entry_execute (_tmp113_); -#line 186 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (entry); -#line 1788 "main.c" - } - } - } - } -#line 189 "/home/jens/Source/shotwell/src/main.vala" - _tmp114_ = do_system_pictures_import; -#line 189 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp114_) { -#line 193 "/home/jens/Source/shotwell/src/main.vala" - run_system_pictures_import (NULL); -#line 1799 "main.c" - } -#line 196 "/home/jens/Source/shotwell/src/main.vala" - _tmp115_ = startup_timer; -#line 196 "/home/jens/Source/shotwell/src/main.vala" - _tmp116_ = g_timer_elapsed (_tmp115_, NULL); -#line 196 "/home/jens/Source/shotwell/src/main.vala" - g_debug ("main.vala:196: %lf seconds to Gtk.main()", _tmp116_); -#line 198 "/home/jens/Source/shotwell/src/main.vala" - _tmp117_ = application_get_instance (); -#line 198 "/home/jens/Source/shotwell/src/main.vala" - _tmp118_ = _tmp117_; -#line 198 "/home/jens/Source/shotwell/src/main.vala" - application_start (_tmp118_, NULL, 0); -#line 198 "/home/jens/Source/shotwell/src/main.vala" - _application_unref0 (_tmp118_); -#line 200 "/home/jens/Source/shotwell/src/main.vala" - desktop_integration_terminate (); -#line 201 "/home/jens/Source/shotwell/src/main.vala" - metadata_writer_terminate (); -#line 202 "/home/jens/Source/shotwell/src/main.vala" - tag_terminate (); -#line 203 "/home/jens/Source/shotwell/src/main.vala" - event_terminate (); -#line 204 "/home/jens/Source/shotwell/src/main.vala" - library_photo_terminate (); -#line 205 "/home/jens/Source/shotwell/src/main.vala" - media_collection_registry_terminate (); -#line 206 "/home/jens/Source/shotwell/src/main.vala" - library_monitor_pool_terminate (); -#line 207 "/home/jens/Source/shotwell/src/main.vala" - tombstone_terminate (); -#line 208 "/home/jens/Source/shotwell/src/main.vala" - thumbnail_cache_terminate (); -#line 209 "/home/jens/Source/shotwell/src/main.vala" - video_terminate (); -#line 210 "/home/jens/Source/shotwell/src/main.vala" - library_app_terminate (); -#line 15 "/home/jens/Source/shotwell/src/main.vala" - selected_import_entries = (_vala_array_free (selected_import_entries, selected_import_entries_length1, (GDestroyNotify) g_object_unref), NULL); -#line 15 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (library_window); -#line 15 "/home/jens/Source/shotwell/src/main.vala" - _media_collection_registry_unref0 (registry); -#line 15 "/home/jens/Source/shotwell/src/main.vala" - (monitor_target_destroy_notify == NULL) ? NULL : (monitor_target_destroy_notify (monitor_target), NULL); -#line 15 "/home/jens/Source/shotwell/src/main.vala" - monitor = NULL; -#line 15 "/home/jens/Source/shotwell/src/main.vala" - monitor_target = NULL; -#line 15 "/home/jens/Source/shotwell/src/main.vala" - monitor_target_destroy_notify = NULL; -#line 15 "/home/jens/Source/shotwell/src/main.vala" - _aggregate_progress_monitor_unref0 (aggregate_monitor); -#line 15 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (progress_dialog); -#line 15 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (app_version); -#line 15 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (errormsg); -#line 1859 "main.c" -} - - -static void -_report_system_pictures_import_batch_import_import_reporter (ImportManifest* manifest, - BatchImportRoll* import_roll, - gpointer self) -{ -#line 225 "/home/jens/Source/shotwell/src/main.vala" - report_system_pictures_import (manifest, import_roll); -#line 1870 "main.c" -} - - -void -run_system_pictures_import (ImportManifest* external_exclusion_manifest) -{ - gboolean _tmp0_; - GeeArrayList* jobs = NULL; - GeeArrayList* _tmp1_; - GeeArrayList* _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; - FileImportJob* _tmp5_; - FileImportJob* _tmp6_; - LibraryWindow* library_window = NULL; - AppWindow* _tmp7_; - BatchImport* batch_import = NULL; - GeeArrayList* _tmp8_; - BatchImport* _tmp9_; - LibraryWindow* _tmp10_; - BatchImport* _tmp11_; - LibraryWindow* _tmp12_; -#line 216 "/home/jens/Source/shotwell/src/main.vala" - g_return_if_fail ((external_exclusion_manifest == NULL) || IS_IMPORT_MANIFEST (external_exclusion_manifest)); -#line 217 "/home/jens/Source/shotwell/src/main.vala" - _tmp0_ = do_system_pictures_import; -#line 217 "/home/jens/Source/shotwell/src/main.vala" - if (!_tmp0_) { -#line 218 "/home/jens/Source/shotwell/src/main.vala" - return; -#line 1901 "main.c" - } -#line 220 "/home/jens/Source/shotwell/src/main.vala" - _tmp1_ = gee_array_list_new (TYPE_FILE_IMPORT_JOB, (GBoxedCopyFunc) batch_import_job_ref, (GDestroyNotify) batch_import_job_unref, NULL, NULL, NULL); -#line 220 "/home/jens/Source/shotwell/src/main.vala" - jobs = _tmp1_; -#line 221 "/home/jens/Source/shotwell/src/main.vala" - _tmp2_ = jobs; -#line 221 "/home/jens/Source/shotwell/src/main.vala" - _tmp3_ = app_dirs_get_import_dir (); -#line 221 "/home/jens/Source/shotwell/src/main.vala" - _tmp4_ = _tmp3_; -#line 221 "/home/jens/Source/shotwell/src/main.vala" - _tmp5_ = file_import_job_new (_tmp4_, FALSE, TRUE); -#line 221 "/home/jens/Source/shotwell/src/main.vala" - _tmp6_ = _tmp5_; -#line 221 "/home/jens/Source/shotwell/src/main.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp6_); -#line 221 "/home/jens/Source/shotwell/src/main.vala" - _batch_import_job_unref0 (_tmp6_); -#line 221 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (_tmp4_); -#line 223 "/home/jens/Source/shotwell/src/main.vala" - _tmp7_ = app_window_get_instance (); -#line 223 "/home/jens/Source/shotwell/src/main.vala" - library_window = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_LIBRARY_WINDOW, LibraryWindow); -#line 225 "/home/jens/Source/shotwell/src/main.vala" - _tmp8_ = jobs; -#line 225 "/home/jens/Source/shotwell/src/main.vala" - _tmp9_ = batch_import_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ITERABLE, GeeIterable), "startup_import", _report_system_pictures_import_batch_import_import_reporter, NULL, NULL, NULL, NULL, NULL, external_exclusion_manifest); -#line 225 "/home/jens/Source/shotwell/src/main.vala" - batch_import = _tmp9_; -#line 227 "/home/jens/Source/shotwell/src/main.vala" - _tmp10_ = library_window; -#line 227 "/home/jens/Source/shotwell/src/main.vala" - _tmp11_ = batch_import; -#line 227 "/home/jens/Source/shotwell/src/main.vala" - library_window_enqueue_batch_import (_tmp10_, _tmp11_, TRUE); -#line 229 "/home/jens/Source/shotwell/src/main.vala" - _tmp12_ = library_window; -#line 229 "/home/jens/Source/shotwell/src/main.vala" - library_window_switch_to_import_queue_page (_tmp12_); -#line 216 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (batch_import); -#line 216 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (library_window); -#line 216 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (jobs); -#line 1949 "main.c" -} - - -void -report_system_pictures_import (ImportManifest* manifest, - BatchImportRoll* import_roll) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; -#line 232 "/home/jens/Source/shotwell/src/main.vala" - g_return_if_fail (IS_IMPORT_MANIFEST (manifest)); -#line 232 "/home/jens/Source/shotwell/src/main.vala" - g_return_if_fail (IS_BATCH_IMPORT_ROLL (import_roll)); -#line 239 "/home/jens/Source/shotwell/src/main.vala" - _tmp1_ = do_external_import; -#line 239 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp1_) { -#line 1967 "main.c" - GeeList* _tmp2_; - gint _tmp3_; - gint _tmp4_; -#line 239 "/home/jens/Source/shotwell/src/main.vala" - _tmp2_ = manifest->all; -#line 239 "/home/jens/Source/shotwell/src/main.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 239 "/home/jens/Source/shotwell/src/main.vala" - _tmp4_ = _tmp3_; -#line 239 "/home/jens/Source/shotwell/src/main.vala" - _tmp0_ = _tmp4_ == 0; -#line 1979 "main.c" - } else { -#line 239 "/home/jens/Source/shotwell/src/main.vala" - _tmp0_ = FALSE; -#line 1983 "main.c" - } -#line 239 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp0_) { -#line 240 "/home/jens/Source/shotwell/src/main.vala" - return; -#line 1989 "main.c" - } -#line 242 "/home/jens/Source/shotwell/src/main.vala" - import_ui_report_manifest (manifest, TRUE, NULL); -#line 1993 "main.c" -} - - -void -editing_exec (const gchar* filename, - gboolean fullscreen) -{ - GFile* initial_file = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - DirectWindow* direct_window = NULL; - GFile* _tmp4_; - DirectWindow* _tmp5_; - DirectWindow* _tmp6_; - GTimer* _tmp7_; - gdouble _tmp8_; - Application* _tmp13_; - Application* _tmp14_; - GError * _inner_error_ = NULL; -#line 245 "/home/jens/Source/shotwell/src/main.vala" - g_return_if_fail (filename != NULL); -#line 246 "/home/jens/Source/shotwell/src/main.vala" - _tmp0_ = g_file_new_for_commandline_arg (filename); -#line 246 "/home/jens/Source/shotwell/src/main.vala" - initial_file = _tmp0_; -#line 249 "/home/jens/Source/shotwell/src/main.vala" - _tmp1_ = initial_file; -#line 249 "/home/jens/Source/shotwell/src/main.vala" - direct_preconfigure (_tmp1_); -#line 250 "/home/jens/Source/shotwell/src/main.vala" - db_preconfigure (NULL); -#line 2025 "main.c" - { -#line 254 "/home/jens/Source/shotwell/src/main.vala" - direct_app_init (&_inner_error_); -#line 254 "/home/jens/Source/shotwell/src/main.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2031 "main.c" - goto __catch235_g_error; - } - } - goto __finally235; - __catch235_g_error: - { - GError* err = NULL; - GError* _tmp2_; - const gchar* _tmp3_; -#line 253 "/home/jens/Source/shotwell/src/main.vala" - err = _inner_error_; -#line 253 "/home/jens/Source/shotwell/src/main.vala" - _inner_error_ = NULL; -#line 256 "/home/jens/Source/shotwell/src/main.vala" - _tmp2_ = err; -#line 256 "/home/jens/Source/shotwell/src/main.vala" - _tmp3_ = _tmp2_->message; -#line 256 "/home/jens/Source/shotwell/src/main.vala" - app_window_panic (_tmp3_); -#line 258 "/home/jens/Source/shotwell/src/main.vala" - _g_error_free0 (err); -#line 258 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (initial_file); -#line 258 "/home/jens/Source/shotwell/src/main.vala" - return; -#line 2057 "main.c" - } - __finally235: -#line 253 "/home/jens/Source/shotwell/src/main.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 253 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (initial_file); -#line 253 "/home/jens/Source/shotwell/src/main.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 253 "/home/jens/Source/shotwell/src/main.vala" - g_clear_error (&_inner_error_); -#line 253 "/home/jens/Source/shotwell/src/main.vala" - return; -#line 2070 "main.c" - } -#line 262 "/home/jens/Source/shotwell/src/main.vala" - desktop_integration_init (); -#line 268 "/home/jens/Source/shotwell/src/main.vala" - _tmp4_ = initial_file; -#line 268 "/home/jens/Source/shotwell/src/main.vala" - _tmp5_ = direct_window_new (_tmp4_); -#line 268 "/home/jens/Source/shotwell/src/main.vala" - g_object_ref_sink (_tmp5_); -#line 268 "/home/jens/Source/shotwell/src/main.vala" - direct_window = _tmp5_; -#line 269 "/home/jens/Source/shotwell/src/main.vala" - _tmp6_ = direct_window; -#line 269 "/home/jens/Source/shotwell/src/main.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget)); -#line 271 "/home/jens/Source/shotwell/src/main.vala" - _tmp7_ = startup_timer; -#line 271 "/home/jens/Source/shotwell/src/main.vala" - _tmp8_ = g_timer_elapsed (_tmp7_, NULL); -#line 271 "/home/jens/Source/shotwell/src/main.vala" - g_debug ("main.vala:271: %lf seconds to Gtk.main()", _tmp8_); -#line 273 "/home/jens/Source/shotwell/src/main.vala" - if (fullscreen) { -#line 2094 "main.c" - GAction* action = NULL; - DirectWindow* _tmp9_; - GAction* _tmp10_; - GAction* _tmp11_; -#line 274 "/home/jens/Source/shotwell/src/main.vala" - _tmp9_ = direct_window; -#line 274 "/home/jens/Source/shotwell/src/main.vala" - _tmp10_ = app_window_get_common_action (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_APP_WINDOW, AppWindow), "CommonFullscreen"); -#line 274 "/home/jens/Source/shotwell/src/main.vala" - action = _tmp10_; -#line 275 "/home/jens/Source/shotwell/src/main.vala" - _tmp11_ = action; -#line 275 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp11_ != NULL) { -#line 2109 "main.c" - GAction* _tmp12_; -#line 276 "/home/jens/Source/shotwell/src/main.vala" - _tmp12_ = action; -#line 276 "/home/jens/Source/shotwell/src/main.vala" - g_action_activate (_tmp12_, NULL); -#line 2115 "main.c" - } -#line 273 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (action); -#line 2119 "main.c" - } -#line 280 "/home/jens/Source/shotwell/src/main.vala" - _tmp13_ = application_get_instance (); -#line 280 "/home/jens/Source/shotwell/src/main.vala" - _tmp14_ = _tmp13_; -#line 280 "/home/jens/Source/shotwell/src/main.vala" - application_start (_tmp14_, NULL, 0); -#line 280 "/home/jens/Source/shotwell/src/main.vala" - _application_unref0 (_tmp14_); -#line 282 "/home/jens/Source/shotwell/src/main.vala" - desktop_integration_terminate (); -#line 285 "/home/jens/Source/shotwell/src/main.vala" - direct_app_terminate (); -#line 245 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (direct_window); -#line 245 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (initial_file); -#line 2137 "main.c" -} - - -static GOptionEntry* -_vala_array_dup22 (GOptionEntry* self, - int length) -{ -#line 300 "/home/jens/Source/shotwell/src/main.vala" - return g_memdup (self, length * sizeof (GOptionEntry)); -#line 2147 "main.c" -} - - -static void -_vala_array_add72 (GOptionEntry* * array, - int* length, - int* size, - const GOptionEntry* value) -{ -#line 304 "/home/jens/Source/shotwell/src/main.vala" - if ((*length) == (*size)) { -#line 304 "/home/jens/Source/shotwell/src/main.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 304 "/home/jens/Source/shotwell/src/main.vala" - *array = g_renew (GOptionEntry, *array, *size); -#line 2163 "main.c" - } -#line 304 "/home/jens/Source/shotwell/src/main.vala" - (*array)[(*length)++] = *value; -#line 2167 "main.c" -} - - -static void -_vala_array_add73 (GOptionEntry* * array, - int* length, - int* size, - const GOptionEntry* value) -{ -#line 308 "/home/jens/Source/shotwell/src/main.vala" - if ((*length) == (*size)) { -#line 308 "/home/jens/Source/shotwell/src/main.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 308 "/home/jens/Source/shotwell/src/main.vala" - *array = g_renew (GOptionEntry, *array, *size); -#line 2183 "main.c" - } -#line 308 "/home/jens/Source/shotwell/src/main.vala" - (*array)[(*length)++] = *value; -#line 2187 "main.c" -} - - -static void -_vala_array_add74 (GOptionEntry* * array, - int* length, - int* size, - const GOptionEntry* value) -{ -#line 312 "/home/jens/Source/shotwell/src/main.vala" - if ((*length) == (*size)) { -#line 312 "/home/jens/Source/shotwell/src/main.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 312 "/home/jens/Source/shotwell/src/main.vala" - *array = g_renew (GOptionEntry, *array, *size); -#line 2203 "main.c" - } -#line 312 "/home/jens/Source/shotwell/src/main.vala" - (*array)[(*length)++] = *value; -#line 2207 "main.c" -} - - -static void -_vala_array_add75 (GOptionEntry* * array, - int* length, - int* size, - const GOptionEntry* value) -{ -#line 316 "/home/jens/Source/shotwell/src/main.vala" - if ((*length) == (*size)) { -#line 316 "/home/jens/Source/shotwell/src/main.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 316 "/home/jens/Source/shotwell/src/main.vala" - *array = g_renew (GOptionEntry, *array, *size); -#line 2223 "main.c" - } -#line 316 "/home/jens/Source/shotwell/src/main.vala" - (*array)[(*length)++] = *value; -#line 2227 "main.c" -} - - -static void -_vala_array_add76 (GOptionEntry* * array, - int* length, - int* size, - const GOptionEntry* value) -{ -#line 320 "/home/jens/Source/shotwell/src/main.vala" - if ((*length) == (*size)) { -#line 320 "/home/jens/Source/shotwell/src/main.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 320 "/home/jens/Source/shotwell/src/main.vala" - *array = g_renew (GOptionEntry, *array, *size); -#line 2243 "main.c" - } -#line 320 "/home/jens/Source/shotwell/src/main.vala" - (*array)[(*length)++] = *value; -#line 2247 "main.c" -} - - -static void -_vala_array_add77 (GOptionEntry* * array, - int* length, - int* size, - const GOptionEntry* value) -{ -#line 323 "/home/jens/Source/shotwell/src/main.vala" - if ((*length) == (*size)) { -#line 323 "/home/jens/Source/shotwell/src/main.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 323 "/home/jens/Source/shotwell/src/main.vala" - *array = g_renew (GOptionEntry, *array, *size); -#line 2263 "main.c" - } -#line 323 "/home/jens/Source/shotwell/src/main.vala" - (*array)[(*length)++] = *value; -#line 2267 "main.c" -} - - -static GOptionEntry* -_vala_array_dup23 (GOptionEntry* self, - int length) -{ -#line 325 "/home/jens/Source/shotwell/src/main.vala" - return g_memdup (self, length * sizeof (GOptionEntry)); -#line 2277 "main.c" -} - - -GOptionEntry* -commandline_options_get_options (int* result_length1) -{ - GOptionEntry* result = NULL; - GOptionEntry* _tmp0_; - gint _tmp0__length1; - GOptionEntry datadir = {0}; - GOptionEntry _tmp4_ = {0}; - GOptionEntry* _tmp5_; - gint _tmp5__length1; - GOptionEntry _tmp6_; - GOptionEntry no_monitoring = {0}; - GOptionEntry _tmp7_ = {0}; - GOptionEntry* _tmp8_; - gint _tmp8__length1; - GOptionEntry _tmp9_; - GOptionEntry no_startup = {0}; - GOptionEntry _tmp10_ = {0}; - GOptionEntry* _tmp11_; - gint _tmp11__length1; - GOptionEntry _tmp12_; - GOptionEntry version = {0}; - GOptionEntry _tmp13_ = {0}; - GOptionEntry* _tmp14_; - gint _tmp14__length1; - GOptionEntry _tmp15_; - GOptionEntry fullscreen = {0}; - GOptionEntry _tmp16_ = {0}; - GOptionEntry* _tmp17_; - gint _tmp17__length1; - GOptionEntry _tmp18_; - GOptionEntry terminator = {0}; - GOptionEntry _tmp19_ = {0}; - GOptionEntry* _tmp20_; - gint _tmp20__length1; - GOptionEntry _tmp21_; - GOptionEntry* _tmp22_; - gint _tmp22__length1; - GOptionEntry* _tmp23_; - gint _tmp23__length1; - GOptionEntry* _tmp24_; - gint _tmp24__length1; -#line 299 "/home/jens/Source/shotwell/src/main.vala" - _tmp0_ = commandline_options_entries; -#line 299 "/home/jens/Source/shotwell/src/main.vala" - _tmp0__length1 = commandline_options_entries_length1; -#line 299 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp0_ != NULL) { -#line 2329 "main.c" - GOptionEntry* _tmp1_; - gint _tmp1__length1; - GOptionEntry* _tmp2_; - gint _tmp2__length1; - GOptionEntry* _tmp3_; - gint _tmp3__length1; -#line 300 "/home/jens/Source/shotwell/src/main.vala" - _tmp1_ = commandline_options_entries; -#line 300 "/home/jens/Source/shotwell/src/main.vala" - _tmp1__length1 = commandline_options_entries_length1; -#line 300 "/home/jens/Source/shotwell/src/main.vala" - _tmp2_ = (_tmp1_ != NULL) ? _vala_array_dup22 (_tmp1_, _tmp1__length1) : ((gpointer) _tmp1_); -#line 300 "/home/jens/Source/shotwell/src/main.vala" - _tmp2__length1 = _tmp1__length1; -#line 300 "/home/jens/Source/shotwell/src/main.vala" - _tmp3_ = _tmp2_; -#line 300 "/home/jens/Source/shotwell/src/main.vala" - _tmp3__length1 = _tmp2__length1; -#line 300 "/home/jens/Source/shotwell/src/main.vala" - if (result_length1) { -#line 300 "/home/jens/Source/shotwell/src/main.vala" - *result_length1 = _tmp3__length1; -#line 2352 "main.c" - } -#line 300 "/home/jens/Source/shotwell/src/main.vala" - result = _tmp3_; -#line 300 "/home/jens/Source/shotwell/src/main.vala" - return result; -#line 2358 "main.c" - } -#line 302 "/home/jens/Source/shotwell/src/main.vala" - _tmp4_.long_name = "datadir"; -#line 302 "/home/jens/Source/shotwell/src/main.vala" - _tmp4_.short_name = 'd'; -#line 302 "/home/jens/Source/shotwell/src/main.vala" - _tmp4_.flags = 0; -#line 302 "/home/jens/Source/shotwell/src/main.vala" - _tmp4_.arg = G_OPTION_ARG_FILENAME; -#line 302 "/home/jens/Source/shotwell/src/main.vala" - _tmp4_.arg_data = &commandline_options_data_dir; -#line 302 "/home/jens/Source/shotwell/src/main.vala" - _tmp4_.description = _ ("Path to Shotwell’s private data"); -#line 302 "/home/jens/Source/shotwell/src/main.vala" - _tmp4_.arg_description = _ ("DIRECTORY"); -#line 302 "/home/jens/Source/shotwell/src/main.vala" - datadir = _tmp4_; -#line 304 "/home/jens/Source/shotwell/src/main.vala" - _tmp5_ = commandline_options_entries; -#line 304 "/home/jens/Source/shotwell/src/main.vala" - _tmp5__length1 = commandline_options_entries_length1; -#line 304 "/home/jens/Source/shotwell/src/main.vala" - _tmp6_ = datadir; -#line 304 "/home/jens/Source/shotwell/src/main.vala" - _vala_array_add72 (&commandline_options_entries, &commandline_options_entries_length1, &_commandline_options_entries_size_, &_tmp6_); -#line 306 "/home/jens/Source/shotwell/src/main.vala" - _tmp7_.long_name = "no-runtime-monitoring"; -#line 306 "/home/jens/Source/shotwell/src/main.vala" - _tmp7_.short_name = (gchar) 0; -#line 306 "/home/jens/Source/shotwell/src/main.vala" - _tmp7_.flags = 0; -#line 306 "/home/jens/Source/shotwell/src/main.vala" - _tmp7_.arg = G_OPTION_ARG_NONE; -#line 306 "/home/jens/Source/shotwell/src/main.vala" - _tmp7_.arg_data = &commandline_options_no_runtime_monitoring; -#line 306 "/home/jens/Source/shotwell/src/main.vala" - _tmp7_.description = _ ("Do not monitor library directory at runtime for changes"); -#line 306 "/home/jens/Source/shotwell/src/main.vala" - _tmp7_.arg_description = NULL; -#line 306 "/home/jens/Source/shotwell/src/main.vala" - no_monitoring = _tmp7_; -#line 308 "/home/jens/Source/shotwell/src/main.vala" - _tmp8_ = commandline_options_entries; -#line 308 "/home/jens/Source/shotwell/src/main.vala" - _tmp8__length1 = commandline_options_entries_length1; -#line 308 "/home/jens/Source/shotwell/src/main.vala" - _tmp9_ = no_monitoring; -#line 308 "/home/jens/Source/shotwell/src/main.vala" - _vala_array_add73 (&commandline_options_entries, &commandline_options_entries_length1, &_commandline_options_entries_size_, &_tmp9_); -#line 310 "/home/jens/Source/shotwell/src/main.vala" - _tmp10_.long_name = "no-startup-progress"; -#line 310 "/home/jens/Source/shotwell/src/main.vala" - _tmp10_.short_name = (gchar) 0; -#line 310 "/home/jens/Source/shotwell/src/main.vala" - _tmp10_.flags = 0; -#line 310 "/home/jens/Source/shotwell/src/main.vala" - _tmp10_.arg = G_OPTION_ARG_NONE; -#line 310 "/home/jens/Source/shotwell/src/main.vala" - _tmp10_.arg_data = &commandline_options_no_startup_progress; -#line 310 "/home/jens/Source/shotwell/src/main.vala" - _tmp10_.description = _ ("Don’t display startup progress meter"); -#line 310 "/home/jens/Source/shotwell/src/main.vala" - _tmp10_.arg_description = NULL; -#line 310 "/home/jens/Source/shotwell/src/main.vala" - no_startup = _tmp10_; -#line 312 "/home/jens/Source/shotwell/src/main.vala" - _tmp11_ = commandline_options_entries; -#line 312 "/home/jens/Source/shotwell/src/main.vala" - _tmp11__length1 = commandline_options_entries_length1; -#line 312 "/home/jens/Source/shotwell/src/main.vala" - _tmp12_ = no_startup; -#line 312 "/home/jens/Source/shotwell/src/main.vala" - _vala_array_add74 (&commandline_options_entries, &commandline_options_entries_length1, &_commandline_options_entries_size_, &_tmp12_); -#line 314 "/home/jens/Source/shotwell/src/main.vala" - _tmp13_.long_name = "version"; -#line 314 "/home/jens/Source/shotwell/src/main.vala" - _tmp13_.short_name = 'V'; -#line 314 "/home/jens/Source/shotwell/src/main.vala" - _tmp13_.flags = 0; -#line 314 "/home/jens/Source/shotwell/src/main.vala" - _tmp13_.arg = G_OPTION_ARG_NONE; -#line 314 "/home/jens/Source/shotwell/src/main.vala" - _tmp13_.arg_data = &commandline_options_show_version; -#line 314 "/home/jens/Source/shotwell/src/main.vala" - _tmp13_.description = _ ("Show the application’s version"); -#line 314 "/home/jens/Source/shotwell/src/main.vala" - _tmp13_.arg_description = NULL; -#line 314 "/home/jens/Source/shotwell/src/main.vala" - version = _tmp13_; -#line 316 "/home/jens/Source/shotwell/src/main.vala" - _tmp14_ = commandline_options_entries; -#line 316 "/home/jens/Source/shotwell/src/main.vala" - _tmp14__length1 = commandline_options_entries_length1; -#line 316 "/home/jens/Source/shotwell/src/main.vala" - _tmp15_ = version; -#line 316 "/home/jens/Source/shotwell/src/main.vala" - _vala_array_add75 (&commandline_options_entries, &commandline_options_entries_length1, &_commandline_options_entries_size_, &_tmp15_); -#line 318 "/home/jens/Source/shotwell/src/main.vala" - _tmp16_.long_name = "fullscreen"; -#line 318 "/home/jens/Source/shotwell/src/main.vala" - _tmp16_.short_name = 'f'; -#line 318 "/home/jens/Source/shotwell/src/main.vala" - _tmp16_.flags = 0; -#line 318 "/home/jens/Source/shotwell/src/main.vala" - _tmp16_.arg = G_OPTION_ARG_NONE; -#line 318 "/home/jens/Source/shotwell/src/main.vala" - _tmp16_.arg_data = &commandline_options_fullscreen; -#line 318 "/home/jens/Source/shotwell/src/main.vala" - _tmp16_.description = _ ("Start the application in fullscreen mode"); -#line 318 "/home/jens/Source/shotwell/src/main.vala" - _tmp16_.arg_description = NULL; -#line 318 "/home/jens/Source/shotwell/src/main.vala" - fullscreen = _tmp16_; -#line 320 "/home/jens/Source/shotwell/src/main.vala" - _tmp17_ = commandline_options_entries; -#line 320 "/home/jens/Source/shotwell/src/main.vala" - _tmp17__length1 = commandline_options_entries_length1; -#line 320 "/home/jens/Source/shotwell/src/main.vala" - _tmp18_ = fullscreen; -#line 320 "/home/jens/Source/shotwell/src/main.vala" - _vala_array_add76 (&commandline_options_entries, &commandline_options_entries_length1, &_commandline_options_entries_size_, &_tmp18_); -#line 322 "/home/jens/Source/shotwell/src/main.vala" - _tmp19_.long_name = NULL; -#line 322 "/home/jens/Source/shotwell/src/main.vala" - _tmp19_.short_name = (gchar) 0; -#line 322 "/home/jens/Source/shotwell/src/main.vala" - _tmp19_.flags = 0; -#line 322 "/home/jens/Source/shotwell/src/main.vala" - _tmp19_.arg = 0; -#line 322 "/home/jens/Source/shotwell/src/main.vala" - _tmp19_.arg_data = NULL; -#line 322 "/home/jens/Source/shotwell/src/main.vala" - _tmp19_.description = NULL; -#line 322 "/home/jens/Source/shotwell/src/main.vala" - _tmp19_.arg_description = NULL; -#line 322 "/home/jens/Source/shotwell/src/main.vala" - terminator = _tmp19_; -#line 323 "/home/jens/Source/shotwell/src/main.vala" - _tmp20_ = commandline_options_entries; -#line 323 "/home/jens/Source/shotwell/src/main.vala" - _tmp20__length1 = commandline_options_entries_length1; -#line 323 "/home/jens/Source/shotwell/src/main.vala" - _tmp21_ = terminator; -#line 323 "/home/jens/Source/shotwell/src/main.vala" - _vala_array_add77 (&commandline_options_entries, &commandline_options_entries_length1, &_commandline_options_entries_size_, &_tmp21_); -#line 325 "/home/jens/Source/shotwell/src/main.vala" - _tmp22_ = commandline_options_entries; -#line 325 "/home/jens/Source/shotwell/src/main.vala" - _tmp22__length1 = commandline_options_entries_length1; -#line 325 "/home/jens/Source/shotwell/src/main.vala" - _tmp23_ = (_tmp22_ != NULL) ? _vala_array_dup23 (_tmp22_, _tmp22__length1) : ((gpointer) _tmp22_); -#line 325 "/home/jens/Source/shotwell/src/main.vala" - _tmp23__length1 = _tmp22__length1; -#line 325 "/home/jens/Source/shotwell/src/main.vala" - _tmp24_ = _tmp23_; -#line 325 "/home/jens/Source/shotwell/src/main.vala" - _tmp24__length1 = _tmp23__length1; -#line 325 "/home/jens/Source/shotwell/src/main.vala" - if (result_length1) { -#line 325 "/home/jens/Source/shotwell/src/main.vala" - *result_length1 = _tmp24__length1; -#line 2520 "main.c" - } -#line 325 "/home/jens/Source/shotwell/src/main.vala" - result = _tmp24_; -#line 325 "/home/jens/Source/shotwell/src/main.vala" - return result; -#line 2526 "main.c" -} - - -static void -_vala_array_add78 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 390 "/home/jens/Source/shotwell/src/main.vala" - if ((*length) == (*size)) { -#line 390 "/home/jens/Source/shotwell/src/main.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 390 "/home/jens/Source/shotwell/src/main.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 2542 "main.c" - } -#line 390 "/home/jens/Source/shotwell/src/main.vala" - (*array)[(*length)++] = value; -#line 390 "/home/jens/Source/shotwell/src/main.vala" - (*array)[*length] = NULL; -#line 2548 "main.c" -} - - -static gboolean -string_contains (const gchar* self, - const gchar* needle) -{ - gboolean result = FALSE; - gchar* _tmp0_; -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, FALSE); -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, FALSE); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr ((gchar*) self, (gchar*) needle); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_ != NULL; -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2568 "main.c" -} - - -void -_vala_main (gchar** args, - int args_length1) -{ - const gchar* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - gboolean _tmp3_; - gboolean _tmp18_; - gchar** mounts = NULL; - gchar** _tmp19_; - gint mounts_length1; - gint _mounts_size_; - gchar* filename = NULL; - const gchar* _tmp35_ = NULL; - const gchar* _tmp36_; - GDateTime* _tmp41_; - GDateTime* _tmp42_; - const gchar* _tmp43_; - const gchar* _tmp44_; - const gchar* _tmp45_; - GTimer* _tmp47_; - GTimer* _tmp48_; - const gchar* _tmp49_; - gboolean _tmp53_ = FALSE; - const gchar* _tmp54_; - GError * _inner_error_ = NULL; -#line 333 "/home/jens/Source/shotwell/src/main.vala" - _tmp0_ = args[0]; -#line 333 "/home/jens/Source/shotwell/src/main.vala" - app_dirs_init (_tmp0_); -#line 338 "/home/jens/Source/shotwell/src/main.vala" - gexiv2_initialize (); -#line 339 "/home/jens/Source/shotwell/src/main.vala" - gexiv2_log_use_glib_logging (); -#line 343 "/home/jens/Source/shotwell/src/main.vala" - gexiv2_log_set_level (GEXIV2_LOG_LEVEL_DEBUG); -#line 349 "/home/jens/Source/shotwell/src/main.vala" - _tmp1_ = app_dirs_get_install_dir (); -#line 349 "/home/jens/Source/shotwell/src/main.vala" - _tmp2_ = _tmp1_; -#line 349 "/home/jens/Source/shotwell/src/main.vala" - _tmp3_ = _tmp2_ == NULL; -#line 349 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (_tmp2_); -#line 349 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp3_) { -#line 2619 "main.c" - GFile* _tmp4_; - GFile* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; -#line 350 "/home/jens/Source/shotwell/src/main.vala" - _tmp4_ = app_dirs_get_lib_dir (); -#line 350 "/home/jens/Source/shotwell/src/main.vala" - _tmp5_ = _tmp4_; -#line 350 "/home/jens/Source/shotwell/src/main.vala" - _tmp6_ = g_file_get_path (_tmp5_); -#line 350 "/home/jens/Source/shotwell/src/main.vala" - _tmp7_ = _tmp6_; -#line 350 "/home/jens/Source/shotwell/src/main.vala" - _tmp8_ = g_strconcat (_tmp7_, "/misc", NULL); -#line 350 "/home/jens/Source/shotwell/src/main.vala" - _tmp9_ = _tmp8_; -#line 350 "/home/jens/Source/shotwell/src/main.vala" - g_setenv ("GSETTINGS_SCHEMA_DIR", _tmp9_, TRUE); -#line 350 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (_tmp9_); -#line 350 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (_tmp7_); -#line 350 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (_tmp5_); -#line 2646 "main.c" - } - { - gint _tmp10_; - GOptionEntry* _tmp11_; - GOptionEntry* _tmp12_; - gint _tmp12__length1; -#line 356 "/home/jens/Source/shotwell/src/main.vala" - _tmp11_ = commandline_options_get_options (&_tmp10_); -#line 356 "/home/jens/Source/shotwell/src/main.vala" - _tmp12_ = _tmp11_; -#line 356 "/home/jens/Source/shotwell/src/main.vala" - _tmp12__length1 = _tmp10_; -#line 356 "/home/jens/Source/shotwell/src/main.vala" - gtk_init_with_args (&args_length1, &args, _ ("[FILE]"), _tmp12_, RESOURCES_APP_GETTEXT_PACKAGE, &_inner_error_); -#line 356 "/home/jens/Source/shotwell/src/main.vala" - _tmp12_ = (g_free (_tmp12_), NULL); -#line 356 "/home/jens/Source/shotwell/src/main.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2665 "main.c" - goto __catch236_g_error; - } - } - goto __finally236; - __catch236_g_error: - { - GError* e = NULL; - GError* _tmp13_; - const gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - const gchar* _tmp17_; -#line 355 "/home/jens/Source/shotwell/src/main.vala" - e = _inner_error_; -#line 355 "/home/jens/Source/shotwell/src/main.vala" - _inner_error_ = NULL; -#line 359 "/home/jens/Source/shotwell/src/main.vala" - _tmp13_ = e; -#line 359 "/home/jens/Source/shotwell/src/main.vala" - _tmp14_ = _tmp13_->message; -#line 359 "/home/jens/Source/shotwell/src/main.vala" - _tmp15_ = g_strconcat (_tmp14_, "\n", NULL); -#line 359 "/home/jens/Source/shotwell/src/main.vala" - _tmp16_ = _tmp15_; -#line 359 "/home/jens/Source/shotwell/src/main.vala" - g_print ("%s", _tmp16_); -#line 359 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (_tmp16_); -#line 360 "/home/jens/Source/shotwell/src/main.vala" - _tmp17_ = args[0]; -#line 360 "/home/jens/Source/shotwell/src/main.vala" - g_print (_ ("Run “%s --help” to see a full list of available command line options.\n"), _tmp17_); -#line 361 "/home/jens/Source/shotwell/src/main.vala" - app_dirs_terminate (); -#line 362 "/home/jens/Source/shotwell/src/main.vala" - _g_error_free0 (e); -#line 362 "/home/jens/Source/shotwell/src/main.vala" - return; -#line 2704 "main.c" - } - __finally236: -#line 355 "/home/jens/Source/shotwell/src/main.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 355 "/home/jens/Source/shotwell/src/main.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 355 "/home/jens/Source/shotwell/src/main.vala" - g_clear_error (&_inner_error_); -#line 355 "/home/jens/Source/shotwell/src/main.vala" - return; -#line 2715 "main.c" - } -#line 365 "/home/jens/Source/shotwell/src/main.vala" - _tmp18_ = commandline_options_show_version; -#line 365 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp18_) { -#line 366 "/home/jens/Source/shotwell/src/main.vala" - if (RESOURCES_GIT_VERSION != NULL) { -#line 367 "/home/jens/Source/shotwell/src/main.vala" - g_print ("%s %s (%s)\n", RESOURCES_APP_TITLE, RESOURCES_APP_VERSION, RESOURCES_GIT_VERSION); -#line 2725 "main.c" - } else { -#line 369 "/home/jens/Source/shotwell/src/main.vala" - g_print ("%s %s\n", RESOURCES_APP_TITLE, RESOURCES_APP_VERSION); -#line 2729 "main.c" - } -#line 371 "/home/jens/Source/shotwell/src/main.vala" - app_dirs_terminate (); -#line 373 "/home/jens/Source/shotwell/src/main.vala" - return; -#line 2735 "main.c" - } -#line 383 "/home/jens/Source/shotwell/src/main.vala" - _tmp19_ = g_new0 (gchar*, 0 + 1); -#line 383 "/home/jens/Source/shotwell/src/main.vala" - mounts = _tmp19_; -#line 383 "/home/jens/Source/shotwell/src/main.vala" - mounts_length1 = 0; -#line 383 "/home/jens/Source/shotwell/src/main.vala" - _mounts_size_ = mounts_length1; -#line 384 "/home/jens/Source/shotwell/src/main.vala" - filename = NULL; -#line 2747 "main.c" - { - gint ctr = 0; -#line 386 "/home/jens/Source/shotwell/src/main.vala" - ctr = 1; -#line 2752 "main.c" - { - gboolean _tmp20_ = FALSE; -#line 386 "/home/jens/Source/shotwell/src/main.vala" - _tmp20_ = TRUE; -#line 386 "/home/jens/Source/shotwell/src/main.vala" - while (TRUE) { -#line 2759 "main.c" - gint _tmp22_; - gchar* arg = NULL; - gint _tmp23_; - const gchar* _tmp24_; - gchar* _tmp25_; - const gchar* _tmp26_; -#line 386 "/home/jens/Source/shotwell/src/main.vala" - if (!_tmp20_) { -#line 2768 "main.c" - gint _tmp21_; -#line 386 "/home/jens/Source/shotwell/src/main.vala" - _tmp21_ = ctr; -#line 386 "/home/jens/Source/shotwell/src/main.vala" - ctr = _tmp21_ + 1; -#line 2774 "main.c" - } -#line 386 "/home/jens/Source/shotwell/src/main.vala" - _tmp20_ = FALSE; -#line 386 "/home/jens/Source/shotwell/src/main.vala" - _tmp22_ = ctr; -#line 386 "/home/jens/Source/shotwell/src/main.vala" - if (!(_tmp22_ < args_length1)) { -#line 386 "/home/jens/Source/shotwell/src/main.vala" - break; -#line 2784 "main.c" - } -#line 387 "/home/jens/Source/shotwell/src/main.vala" - _tmp23_ = ctr; -#line 387 "/home/jens/Source/shotwell/src/main.vala" - _tmp24_ = args[_tmp23_]; -#line 387 "/home/jens/Source/shotwell/src/main.vala" - _tmp25_ = g_strdup (_tmp24_); -#line 387 "/home/jens/Source/shotwell/src/main.vala" - arg = _tmp25_; -#line 389 "/home/jens/Source/shotwell/src/main.vala" - _tmp26_ = arg; -#line 389 "/home/jens/Source/shotwell/src/main.vala" - if (library_window_is_mount_uri_supported (_tmp26_)) { -#line 2798 "main.c" - gchar** _tmp27_; - gint _tmp27__length1; - const gchar* _tmp28_; - gchar* _tmp29_; -#line 390 "/home/jens/Source/shotwell/src/main.vala" - _tmp27_ = mounts; -#line 390 "/home/jens/Source/shotwell/src/main.vala" - _tmp27__length1 = mounts_length1; -#line 390 "/home/jens/Source/shotwell/src/main.vala" - _tmp28_ = arg; -#line 390 "/home/jens/Source/shotwell/src/main.vala" - _tmp29_ = g_strdup (_tmp28_); -#line 390 "/home/jens/Source/shotwell/src/main.vala" - _vala_array_add78 (&mounts, &mounts_length1, &_mounts_size_, _tmp29_); -#line 2813 "main.c" - } else { - gboolean _tmp30_ = FALSE; - const gchar* _tmp31_; -#line 391 "/home/jens/Source/shotwell/src/main.vala" - _tmp31_ = filename; -#line 391 "/home/jens/Source/shotwell/src/main.vala" - if (is_string_empty (_tmp31_)) { -#line 2821 "main.c" - const gchar* _tmp32_; -#line 391 "/home/jens/Source/shotwell/src/main.vala" - _tmp32_ = arg; -#line 391 "/home/jens/Source/shotwell/src/main.vala" - _tmp30_ = !string_contains (_tmp32_, "://"); -#line 2827 "main.c" - } else { -#line 391 "/home/jens/Source/shotwell/src/main.vala" - _tmp30_ = FALSE; -#line 2831 "main.c" - } -#line 391 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp30_) { -#line 2835 "main.c" - const gchar* _tmp33_; - gchar* _tmp34_; -#line 392 "/home/jens/Source/shotwell/src/main.vala" - _tmp33_ = arg; -#line 392 "/home/jens/Source/shotwell/src/main.vala" - _tmp34_ = g_strdup (_tmp33_); -#line 392 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (filename); -#line 392 "/home/jens/Source/shotwell/src/main.vala" - filename = _tmp34_; -#line 2846 "main.c" - } - } -#line 386 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (arg); -#line 2851 "main.c" - } - } - } -#line 396 "/home/jens/Source/shotwell/src/main.vala" - _tmp36_ = filename; -#line 396 "/home/jens/Source/shotwell/src/main.vala" - if (is_string_empty (_tmp36_)) { -#line 396 "/home/jens/Source/shotwell/src/main.vala" - _tmp35_ = DEBUG_LIBRARY_PREFIX; -#line 2861 "main.c" - } else { -#line 396 "/home/jens/Source/shotwell/src/main.vala" - _tmp35_ = DEBUG_VIEWER_PREFIX; -#line 2865 "main.c" - } -#line 396 "/home/jens/Source/shotwell/src/main.vala" - debug_init (_tmp35_); -#line 398 "/home/jens/Source/shotwell/src/main.vala" - if (RESOURCES_GIT_VERSION != NULL) { -#line 2871 "main.c" - const gchar* _tmp37_ = NULL; - const gchar* _tmp38_; -#line 400 "/home/jens/Source/shotwell/src/main.vala" - _tmp38_ = filename; -#line 400 "/home/jens/Source/shotwell/src/main.vala" - if (is_string_empty (_tmp38_)) { -#line 400 "/home/jens/Source/shotwell/src/main.vala" - _tmp37_ = RESOURCES_APP_LIBRARY_ROLE; -#line 2880 "main.c" - } else { -#line 400 "/home/jens/Source/shotwell/src/main.vala" - _tmp37_ = RESOURCES_APP_DIRECT_ROLE; -#line 2884 "main.c" - } -#line 399 "/home/jens/Source/shotwell/src/main.vala" - g_message ("main.vala:399: Shotwell %s %s (%s)", _tmp37_, RESOURCES_APP_VERSION, RESOURCES_GIT_VERSION); -#line 2888 "main.c" - } else { - const gchar* _tmp39_ = NULL; - const gchar* _tmp40_; -#line 404 "/home/jens/Source/shotwell/src/main.vala" - _tmp40_ = filename; -#line 404 "/home/jens/Source/shotwell/src/main.vala" - if (is_string_empty (_tmp40_)) { -#line 404 "/home/jens/Source/shotwell/src/main.vala" - _tmp39_ = RESOURCES_APP_LIBRARY_ROLE; -#line 2898 "main.c" - } else { -#line 404 "/home/jens/Source/shotwell/src/main.vala" - _tmp39_ = RESOURCES_APP_DIRECT_ROLE; -#line 2902 "main.c" - } -#line 403 "/home/jens/Source/shotwell/src/main.vala" - g_message ("main.vala:403: Shotwell %s %s", _tmp39_, RESOURCES_APP_VERSION); -#line 2906 "main.c" - } -#line 407 "/home/jens/Source/shotwell/src/main.vala" - _tmp41_ = g_date_time_new_now_local (); -#line 407 "/home/jens/Source/shotwell/src/main.vala" - _tmp42_ = _tmp41_; -#line 407 "/home/jens/Source/shotwell/src/main.vala" - _tmp43_ = g_date_time_get_timezone_abbreviation (_tmp42_); -#line 407 "/home/jens/Source/shotwell/src/main.vala" - g_debug ("main.vala:407: Shotwell is running in timezone %s", _tmp43_); -#line 407 "/home/jens/Source/shotwell/src/main.vala" - _g_date_time_unref0 (_tmp42_); -#line 412 "/home/jens/Source/shotwell/src/main.vala" - _tmp44_ = filename; -#line 412 "/home/jens/Source/shotwell/src/main.vala" - application_init (!is_string_empty (_tmp44_)); -#line 415 "/home/jens/Source/shotwell/src/main.vala" - _tmp45_ = commandline_options_data_dir; -#line 415 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp45_ != NULL) { -#line 2926 "main.c" - const gchar* _tmp46_; -#line 416 "/home/jens/Source/shotwell/src/main.vala" - _tmp46_ = commandline_options_data_dir; -#line 416 "/home/jens/Source/shotwell/src/main.vala" - app_dirs_set_data_dir (_tmp46_); -#line 2932 "main.c" - } else { -#line 418 "/home/jens/Source/shotwell/src/main.vala" - app_dirs_try_migrate_data (); -#line 2936 "main.c" - } -#line 421 "/home/jens/Source/shotwell/src/main.vala" - app_dirs_verify_data_dir (); -#line 422 "/home/jens/Source/shotwell/src/main.vala" - app_dirs_verify_cache_dir (); -#line 425 "/home/jens/Source/shotwell/src/main.vala" - international_support_init (RESOURCES_APP_GETTEXT_PACKAGE, args, args_length1, INTERNATIONAL_SUPPORT_SYSTEM_LOCALE); -#line 427 "/home/jens/Source/shotwell/src/main.vala" - _tmp47_ = g_timer_new (); -#line 427 "/home/jens/Source/shotwell/src/main.vala" - _g_timer_destroy0 (startup_timer); -#line 427 "/home/jens/Source/shotwell/src/main.vala" - startup_timer = _tmp47_; -#line 428 "/home/jens/Source/shotwell/src/main.vala" - _tmp48_ = startup_timer; -#line 428 "/home/jens/Source/shotwell/src/main.vala" - g_timer_start (_tmp48_); -#line 431 "/home/jens/Source/shotwell/src/main.vala" - g_set_application_name (RESOURCES_APP_TITLE); -#line 435 "/home/jens/Source/shotwell/src/main.vala" - resources_init (); -#line 440 "/home/jens/Source/shotwell/src/main.vala" - _tmp49_ = filename; -#line 440 "/home/jens/Source/shotwell/src/main.vala" - if (is_string_empty (_tmp49_)) { -#line 2962 "main.c" - gchar** _tmp50_; - gint _tmp50__length1; -#line 441 "/home/jens/Source/shotwell/src/main.vala" - _tmp50_ = mounts; -#line 441 "/home/jens/Source/shotwell/src/main.vala" - _tmp50__length1 = mounts_length1; -#line 441 "/home/jens/Source/shotwell/src/main.vala" - library_exec (_tmp50_, _tmp50__length1); -#line 2971 "main.c" - } else { - const gchar* _tmp51_; - gboolean _tmp52_; -#line 443 "/home/jens/Source/shotwell/src/main.vala" - _tmp51_ = filename; -#line 443 "/home/jens/Source/shotwell/src/main.vala" - _tmp52_ = commandline_options_fullscreen; -#line 443 "/home/jens/Source/shotwell/src/main.vala" - editing_exec (_tmp51_, _tmp52_); -#line 2981 "main.c" - } -#line 446 "/home/jens/Source/shotwell/src/main.vala" - resources_terminate (); -#line 447 "/home/jens/Source/shotwell/src/main.vala" - application_terminate (); -#line 448 "/home/jens/Source/shotwell/src/main.vala" - debug_terminate (); -#line 449 "/home/jens/Source/shotwell/src/main.vala" - app_dirs_terminate (); -#line 454 "/home/jens/Source/shotwell/src/main.vala" - _tmp54_ = filename; -#line 454 "/home/jens/Source/shotwell/src/main.vala" - if (is_string_empty (_tmp54_)) { -#line 2995 "main.c" - gboolean _tmp55_; -#line 454 "/home/jens/Source/shotwell/src/main.vala" - _tmp55_ = was_already_running; -#line 454 "/home/jens/Source/shotwell/src/main.vala" - _tmp53_ = !_tmp55_; -#line 3001 "main.c" - } else { -#line 454 "/home/jens/Source/shotwell/src/main.vala" - _tmp53_ = FALSE; -#line 3005 "main.c" - } -#line 454 "/home/jens/Source/shotwell/src/main.vala" - if (_tmp53_) { -#line 3009 "main.c" - gchar* orig_path = NULL; - GFile* _tmp56_; - GFile* _tmp57_; - GFile* _tmp58_; - GFile* _tmp59_; - gchar* _tmp60_; - gchar* _tmp61_; - gchar* backup_path = NULL; - const gchar* _tmp62_; - gchar* _tmp63_; -#line 455 "/home/jens/Source/shotwell/src/main.vala" - _tmp56_ = app_dirs_get_data_subdir ("data", NULL); -#line 455 "/home/jens/Source/shotwell/src/main.vala" - _tmp57_ = _tmp56_; -#line 455 "/home/jens/Source/shotwell/src/main.vala" - _tmp58_ = g_file_get_child (_tmp57_, "photo.db"); -#line 455 "/home/jens/Source/shotwell/src/main.vala" - _tmp59_ = _tmp58_; -#line 455 "/home/jens/Source/shotwell/src/main.vala" - _tmp60_ = g_file_get_path (_tmp59_); -#line 455 "/home/jens/Source/shotwell/src/main.vala" - _tmp61_ = _tmp60_; -#line 455 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (_tmp59_); -#line 455 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (_tmp57_); -#line 455 "/home/jens/Source/shotwell/src/main.vala" - orig_path = _tmp61_; -#line 456 "/home/jens/Source/shotwell/src/main.vala" - _tmp62_ = orig_path; -#line 456 "/home/jens/Source/shotwell/src/main.vala" - _tmp63_ = g_strconcat (_tmp62_, ".bak", NULL); -#line 456 "/home/jens/Source/shotwell/src/main.vala" - backup_path = _tmp63_; -#line 3044 "main.c" - { - GFile* src = NULL; - const gchar* _tmp64_; - GFile* _tmp65_; - GFile* dest = NULL; - const gchar* _tmp66_; - GFile* _tmp67_; - GFile* _tmp68_; - GFile* _tmp69_; -#line 458 "/home/jens/Source/shotwell/src/main.vala" - _tmp64_ = orig_path; -#line 458 "/home/jens/Source/shotwell/src/main.vala" - _tmp65_ = g_file_new_for_commandline_arg (_tmp64_); -#line 458 "/home/jens/Source/shotwell/src/main.vala" - src = _tmp65_; -#line 459 "/home/jens/Source/shotwell/src/main.vala" - _tmp66_ = backup_path; -#line 459 "/home/jens/Source/shotwell/src/main.vala" - _tmp67_ = g_file_new_for_commandline_arg (_tmp66_); -#line 459 "/home/jens/Source/shotwell/src/main.vala" - dest = _tmp67_; -#line 460 "/home/jens/Source/shotwell/src/main.vala" - _tmp68_ = src; -#line 460 "/home/jens/Source/shotwell/src/main.vala" - _tmp69_ = dest; -#line 460 "/home/jens/Source/shotwell/src/main.vala" - g_file_copy (_tmp68_, _tmp69_, G_FILE_COPY_OVERWRITE | G_FILE_COPY_ALL_METADATA, NULL, NULL, NULL, &_inner_error_); -#line 460 "/home/jens/Source/shotwell/src/main.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 460 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (dest); -#line 460 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (src); -#line 3078 "main.c" - goto __catch237_g_error; - } -#line 457 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (dest); -#line 457 "/home/jens/Source/shotwell/src/main.vala" - _g_object_unref0 (src); -#line 3085 "main.c" - } - goto __finally237; - __catch237_g_error: - { - GError* _error_ = NULL; - GError* _tmp70_; - const gchar* _tmp71_; -#line 457 "/home/jens/Source/shotwell/src/main.vala" - _error_ = _inner_error_; -#line 457 "/home/jens/Source/shotwell/src/main.vala" - _inner_error_ = NULL; -#line 464 "/home/jens/Source/shotwell/src/main.vala" - _tmp70_ = _error_; -#line 464 "/home/jens/Source/shotwell/src/main.vala" - _tmp71_ = _tmp70_->message; -#line 464 "/home/jens/Source/shotwell/src/main.vala" - g_warning ("main.vala:464: Failed to create backup file of database: %s", _tmp71_); -#line 457 "/home/jens/Source/shotwell/src/main.vala" - _g_error_free0 (_error_); -#line 3105 "main.c" - } - __finally237: -#line 457 "/home/jens/Source/shotwell/src/main.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 457 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (backup_path); -#line 457 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (orig_path); -#line 457 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (filename); -#line 457 "/home/jens/Source/shotwell/src/main.vala" - mounts = (_vala_array_free (mounts, mounts_length1, (GDestroyNotify) g_free), NULL); -#line 457 "/home/jens/Source/shotwell/src/main.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 457 "/home/jens/Source/shotwell/src/main.vala" - g_clear_error (&_inner_error_); -#line 457 "/home/jens/Source/shotwell/src/main.vala" - return; -#line 3124 "main.c" - } -#line 467 "/home/jens/Source/shotwell/src/main.vala" - sync (); -#line 454 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (backup_path); -#line 454 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (orig_path); -#line 3132 "main.c" - } -#line 330 "/home/jens/Source/shotwell/src/main.vala" - _g_free0 (filename); -#line 330 "/home/jens/Source/shotwell/src/main.vala" - mounts = (_vala_array_free (mounts, mounts_length1, (GDestroyNotify) g_free), NULL); -#line 3138 "main.c" -} - - -int -main (int argc, - char ** argv) -{ -#line 330 "/home/jens/Source/shotwell/src/main.vala" - _vala_main (argv, argc); -#line 330 "/home/jens/Source/shotwell/src/main.vala" - return 0; -#line 3150 "main.c" -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/main.vala b/src/main.vala index d09c827..8313ba1 100644 --- a/src/main.vala +++ b/src/main.vala @@ -99,6 +99,10 @@ void library_exec(string[] mounts) { + EventTable.get_instance().get_row_count() + TagTable.get_instance().get_row_count() + VideoTable.get_instance().get_row_count() +#if ENABLE_FACES + + FaceTable.get_instance().get_row_count() + + FaceLocationTable.get_instance().get_row_count() +#endif + Upgrades.get_instance().get_step_count(); if (grand_total > 5000) { progress_dialog = new ProgressDialog(null, _("Loading Shotwell")); @@ -142,6 +146,14 @@ void library_exec(string[] mounts) { if (aggregate_monitor != null) aggregate_monitor.next_step("Tag.init"); Tag.init(monitor); +#if ENABLE_FACES + if (aggregate_monitor != null) + aggregate_monitor.next_step("FaceLocation.init"); + FaceLocation.init(monitor); + if (aggregate_monitor != null) + aggregate_monitor.next_step("Face.init"); + Face.init(monitor); +#endif MetadataWriter.init(); DesktopIntegration.init(); @@ -207,6 +219,11 @@ void library_exec(string[] mounts) { Tombstone.terminate(); ThumbnailCache.terminate(); Video.terminate(); +#if ENABLE_FACES + Face.terminate(); + FaceLocation.terminate(); +#endif + Library.app_terminate(); } @@ -355,13 +372,16 @@ void main(string[] args) { try { Gtk.init_with_args(ref args, _("[FILE]"), CommandlineOptions.get_options(), Resources.APP_GETTEXT_PACKAGE); + + var use_dark = Config.Facade.get_instance().get_gtk_theme_variant(); + Gtk.Settings.get_default().gtk_application_prefer_dark_theme = use_dark; } catch (Error e) { print(e.message + "\n"); print(_("Run “%s --help” to see a full list of available command line options.\n"), args[0]); AppDirs.terminate(); return; } - + if (CommandlineOptions.show_version) { if (Resources.GIT_VERSION != null) print("%s %s (%s)\n", Resources.APP_TITLE, Resources.APP_VERSION, Resources.GIT_VERSION); @@ -403,7 +423,6 @@ void main(string[] args) { message("Shotwell %s %s", is_string_empty(filename) ? Resources.APP_LIBRARY_ROLE : Resources.APP_DIRECT_ROLE, Resources.APP_VERSION); - debug ("Shotwell is running in timezone %s", new DateTime.now_local().get_timezone_abbreviation ()); diff --git a/src/meson.build b/src/meson.build index ba260e7..c452a98 100644 --- a/src/meson.build +++ b/src/meson.build @@ -17,13 +17,25 @@ processor = executable('shotwell-graphics-processor', dependencies: [gio, gdk, gee], link_with: sw_graphics_processor) +face_sources = [] +if get_option('face-detection') + face_sources = (['faces/FacesBranch.vala', + 'faces/FaceLocation.vala', + 'faces/FacePage.vala', + 'faces/FaceShape.vala', + 'faces/Faces.vala', + 'faces/Face.vala', + 'db/FaceLocationTable.vala', + 'db/FaceTable.vala', + 'faces/FacesTool.vala']) +endif + shotwell_deps = [gio, gee, sqlite, gtk, sqlite, posix, gphoto2, gstreamer_pbu, gio_unix, gudev, gexiv2, gmodule, libraw, libexif, sw_plugin] if unity_available shotwell_deps += [unity] endif - executable('shotwell', ['unit/Unit.vala', 'util/Util.vala', @@ -58,6 +70,7 @@ executable('shotwell', 'photos/PhotoMetadata.vala', 'photos/GRaw.vala', 'photos/GdkSupport.vala', + 'photos/GifSupport.vala', 'photos/JfifSupport.vala', 'photos/BmpSupport.vala', 'photos/RawSupport.vala', @@ -141,6 +154,8 @@ executable('shotwell', 'folders/Folders.vala', 'folders/FoldersBranch.vala', 'folders/FoldersPage.vala', + 'import-roll/ImportRollBranch.vala', + 'import-roll/ImportRollEntry.vala', 'main.vala', 'AppWindow.vala', 'CollectionPage.vala', @@ -223,7 +238,7 @@ executable('shotwell', '.unitize/_DataImportsInternals.vala', '.unitize/_FoldersInternals.vala', '.unitize/_Library_unitize_entry.vala', - '.unitize/_Direct_unitize_entry.vala'] + shotwell_resources, + '.unitize/_Direct_unitize_entry.vala'] + shotwell_resources + face_sources, include_directories : vapi_incdir, dependencies : shotwell_deps, vala_args : ['--pkg', 'libgphoto2', diff --git a/src/photos/BmpSupport.c b/src/photos/BmpSupport.c deleted file mode 100644 index b56b3ed..0000000 --- a/src/photos/BmpSupport.c +++ /dev/null @@ -1,2080 +0,0 @@ -/* BmpSupport.c generated by valac 0.40.4, the Vala compiler - * generated from BmpSupport.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ()) -#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties)) -#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) - -typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties; -typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass; -typedef struct _PhotoFileFormatPropertiesPrivate PhotoFileFormatPropertiesPrivate; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_PHOTO_FILE_FORMAT_FLAGS (photo_file_format_flags_get_type ()) - -#define PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES (photos_bmp_file_format_properties_get_type ()) -#define PHOTOS_BMP_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties)) -#define PHOTOS_BMP_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatPropertiesClass)) -#define PHOTOS_IS_BMP_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES)) -#define PHOTOS_IS_BMP_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES)) -#define PHOTOS_BMP_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatPropertiesClass)) - -typedef struct _PhotosBmpFileFormatProperties PhotosBmpFileFormatProperties; -typedef struct _PhotosBmpFileFormatPropertiesClass PhotosBmpFileFormatPropertiesClass; -typedef struct _PhotosBmpFileFormatPropertiesPrivate PhotosBmpFileFormatPropertiesPrivate; -#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL))) - -#define TYPE_PHOTO_FILE_SNIFFER (photo_file_sniffer_get_type ()) -#define PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)) -#define PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass)) -#define IS_PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_SNIFFER)) -#define IS_PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_SNIFFER)) -#define PHOTO_FILE_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass)) - -typedef struct _PhotoFileSniffer PhotoFileSniffer; -typedef struct _PhotoFileSnifferClass PhotoFileSnifferClass; -typedef struct _PhotoFileSnifferPrivate PhotoFileSnifferPrivate; - -#define TYPE_DETECTED_PHOTO_INFORMATION (detected_photo_information_get_type ()) -#define DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation)) -#define DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass)) -#define IS_DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DETECTED_PHOTO_INFORMATION)) -#define IS_DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DETECTED_PHOTO_INFORMATION)) -#define DETECTED_PHOTO_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass)) - -typedef struct _DetectedPhotoInformation DetectedPhotoInformation; -typedef struct _DetectedPhotoInformationClass DetectedPhotoInformationClass; - -#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ()) - -#define TYPE_GDK_SNIFFER (gdk_sniffer_get_type ()) -#define GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_SNIFFER, GdkSniffer)) -#define GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_SNIFFER, GdkSnifferClass)) -#define IS_GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_SNIFFER)) -#define IS_GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_SNIFFER)) -#define GDK_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_SNIFFER, GdkSnifferClass)) - -typedef struct _GdkSniffer GdkSniffer; -typedef struct _GdkSnifferClass GdkSnifferClass; -typedef struct _GdkSnifferPrivate GdkSnifferPrivate; - -#define PHOTOS_TYPE_BMP_SNIFFER (photos_bmp_sniffer_get_type ()) -#define PHOTOS_BMP_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_BMP_SNIFFER, PhotosBmpSniffer)) -#define PHOTOS_BMP_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_BMP_SNIFFER, PhotosBmpSnifferClass)) -#define PHOTOS_IS_BMP_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_BMP_SNIFFER)) -#define PHOTOS_IS_BMP_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_BMP_SNIFFER)) -#define PHOTOS_BMP_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_BMP_SNIFFER, PhotosBmpSnifferClass)) - -typedef struct _PhotosBmpSniffer PhotosBmpSniffer; -typedef struct _PhotosBmpSnifferClass PhotosBmpSnifferClass; -typedef struct _PhotosBmpSnifferPrivate PhotosBmpSnifferPrivate; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _detected_photo_information_unref0(var) ((var == NULL) ? NULL : (var = (detected_photo_information_unref (var), NULL))) -typedef struct _DetectedPhotoInformationPrivate DetectedPhotoInformationPrivate; - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ()) -#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)) -#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) -#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER)) -#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER)) -#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) - -typedef struct _PhotoFileAdapter PhotoFileAdapter; -typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass; -typedef struct _PhotoFileAdapterPrivate PhotoFileAdapterPrivate; - -#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ()) -#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader)) -#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) -#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER)) -#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER)) -#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) - -typedef struct _PhotoFileReader PhotoFileReader; -typedef struct _PhotoFileReaderClass PhotoFileReaderClass; -typedef struct _PhotoFileReaderPrivate PhotoFileReaderPrivate; - -#define TYPE_GDK_READER (gdk_reader_get_type ()) -#define GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_READER, GdkReader)) -#define GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_READER, GdkReaderClass)) -#define IS_GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_READER)) -#define IS_GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_READER)) -#define GDK_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_READER, GdkReaderClass)) - -typedef struct _GdkReader GdkReader; -typedef struct _GdkReaderClass GdkReaderClass; -typedef struct _GdkReaderPrivate GdkReaderPrivate; - -#define PHOTOS_TYPE_BMP_READER (photos_bmp_reader_get_type ()) -#define PHOTOS_BMP_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_BMP_READER, PhotosBmpReader)) -#define PHOTOS_BMP_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_BMP_READER, PhotosBmpReaderClass)) -#define PHOTOS_IS_BMP_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_BMP_READER)) -#define PHOTOS_IS_BMP_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_BMP_READER)) -#define PHOTOS_BMP_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_BMP_READER, PhotosBmpReaderClass)) - -typedef struct _PhotosBmpReader PhotosBmpReader; -typedef struct _PhotosBmpReaderClass PhotosBmpReaderClass; -typedef struct _PhotosBmpReaderPrivate PhotosBmpReaderPrivate; - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ()) -#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter)) -#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) -#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER)) -#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER)) -#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) - -typedef struct _PhotoFileWriter PhotoFileWriter; -typedef struct _PhotoFileWriterClass PhotoFileWriterClass; -typedef struct _PhotoFileWriterPrivate PhotoFileWriterPrivate; - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) - -#define PHOTOS_TYPE_BMP_WRITER (photos_bmp_writer_get_type ()) -#define PHOTOS_BMP_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_BMP_WRITER, PhotosBmpWriter)) -#define PHOTOS_BMP_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_BMP_WRITER, PhotosBmpWriterClass)) -#define PHOTOS_IS_BMP_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_BMP_WRITER)) -#define PHOTOS_IS_BMP_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_BMP_WRITER)) -#define PHOTOS_BMP_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_BMP_WRITER, PhotosBmpWriterClass)) - -typedef struct _PhotosBmpWriter PhotosBmpWriter; -typedef struct _PhotosBmpWriterClass PhotosBmpWriterClass; -typedef struct _PhotosBmpWriterPrivate PhotosBmpWriterPrivate; - -#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ()) -#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter)) -#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass)) -#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER)) -#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER)) -#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass)) - -typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter; -typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass; -typedef struct _PhotoFileMetadataWriterPrivate PhotoFileMetadataWriterPrivate; - -#define PHOTOS_TYPE_BMP_METADATA_WRITER (photos_bmp_metadata_writer_get_type ()) -#define PHOTOS_BMP_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_BMP_METADATA_WRITER, PhotosBmpMetadataWriter)) -#define PHOTOS_BMP_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_BMP_METADATA_WRITER, PhotosBmpMetadataWriterClass)) -#define PHOTOS_IS_BMP_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_BMP_METADATA_WRITER)) -#define PHOTOS_IS_BMP_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_BMP_METADATA_WRITER)) -#define PHOTOS_BMP_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_BMP_METADATA_WRITER, PhotosBmpMetadataWriterClass)) - -typedef struct _PhotosBmpMetadataWriter PhotosBmpMetadataWriter; -typedef struct _PhotosBmpMetadataWriterClass PhotosBmpMetadataWriterClass; -typedef struct _PhotosBmpMetadataWriterPrivate PhotosBmpMetadataWriterPrivate; - -#define TYPE_PHOTO_FILE_FORMAT_DRIVER (photo_file_format_driver_get_type ()) -#define PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver)) -#define PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass)) -#define IS_PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER)) -#define IS_PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER)) -#define PHOTO_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass)) - -typedef struct _PhotoFileFormatDriver PhotoFileFormatDriver; -typedef struct _PhotoFileFormatDriverClass PhotoFileFormatDriverClass; -typedef struct _PhotoFileFormatDriverPrivate PhotoFileFormatDriverPrivate; - -#define PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER (photos_bmp_file_format_driver_get_type ()) -#define PHOTOS_BMP_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver)) -#define PHOTOS_BMP_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriverClass)) -#define PHOTOS_IS_BMP_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER)) -#define PHOTOS_IS_BMP_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER)) -#define PHOTOS_BMP_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriverClass)) - -typedef struct _PhotosBmpFileFormatDriver PhotosBmpFileFormatDriver; -typedef struct _PhotosBmpFileFormatDriverClass PhotosBmpFileFormatDriverClass; -typedef struct _PhotosBmpFileFormatDriverPrivate PhotosBmpFileFormatDriverPrivate; -#define _photo_file_format_driver_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_driver_unref (var), NULL))) - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef enum { - PHOTO_FILE_FORMAT_FLAGS_NONE = 0x00000000 -} PhotoFileFormatFlags; - -struct _PhotoFileFormatProperties { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileFormatPropertiesPrivate * priv; -}; - -struct _PhotoFileFormatPropertiesClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileFormatProperties *self); - PhotoFileFormat (*get_file_format) (PhotoFileFormatProperties* self); - PhotoFileFormatFlags (*get_flags) (PhotoFileFormatProperties* self); - gboolean (*is_recognized_extension) (PhotoFileFormatProperties* self, const gchar* ext); - gchar* (*get_default_extension) (PhotoFileFormatProperties* self); - gchar** (*get_known_extensions) (PhotoFileFormatProperties* self, int* result_length1); - gchar* (*get_default_mime_type) (PhotoFileFormatProperties* self); - gchar** (*get_mime_types) (PhotoFileFormatProperties* self, int* result_length1); - gchar* (*get_user_visible_name) (PhotoFileFormatProperties* self); -}; - -struct _PhotosBmpFileFormatProperties { - PhotoFileFormatProperties parent_instance; - PhotosBmpFileFormatPropertiesPrivate * priv; -}; - -struct _PhotosBmpFileFormatPropertiesClass { - PhotoFileFormatPropertiesClass parent_class; -}; - -typedef enum { - PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000, - PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001 -} PhotoFileSnifferOptions; - -struct _PhotoFileSniffer { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileSnifferPrivate * priv; - GFile* file; - PhotoFileSnifferOptions options; - gboolean calc_md5; -}; - -struct _PhotoFileSnifferClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileSniffer *self); - DetectedPhotoInformation* (*sniff) (PhotoFileSniffer* self, gboolean* is_corrupted, GError** error); -}; - -struct _GdkSniffer { - PhotoFileSniffer parent_instance; - GdkSnifferPrivate * priv; -}; - -struct _GdkSnifferClass { - PhotoFileSnifferClass parent_class; -}; - -struct _PhotosBmpSniffer { - GdkSniffer parent_instance; - PhotosBmpSnifferPrivate * priv; -}; - -struct _PhotosBmpSnifferClass { - GdkSnifferClass parent_class; -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _DetectedPhotoInformation { - GTypeInstance parent_instance; - volatile int ref_count; - DetectedPhotoInformationPrivate * priv; - PhotoFileFormat file_format; - PhotoMetadata* metadata; - gchar* md5; - gchar* exif_md5; - gchar* thumbnail_md5; - gchar* format_name; - Dimensions image_dim; - GdkColorspace colorspace; - gint channels; - gint bits_per_channel; -}; - -struct _DetectedPhotoInformationClass { - GTypeClass parent_class; - void (*finalize) (DetectedPhotoInformation *self); -}; - -struct _PhotoFileAdapter { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileAdapterPrivate * priv; -}; - -struct _PhotoFileAdapterClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileAdapter *self); -}; - -struct _PhotoFileReader { - PhotoFileAdapter parent_instance; - PhotoFileReaderPrivate * priv; -}; - -struct _PhotoFileReaderClass { - PhotoFileAdapterClass parent_class; - PhotoMetadata* (*read_metadata) (PhotoFileReader* self, GError** error); - GdkPixbuf* (*unscaled_read) (PhotoFileReader* self, GError** error); - GdkPixbuf* (*scaled_read) (PhotoFileReader* self, Dimensions* full, Dimensions* scaled, GError** error); -}; - -struct _GdkReader { - PhotoFileReader parent_instance; - GdkReaderPrivate * priv; -}; - -struct _GdkReaderClass { - PhotoFileReaderClass parent_class; -}; - -struct _PhotosBmpReader { - GdkReader parent_instance; - PhotosBmpReaderPrivate * priv; -}; - -struct _PhotosBmpReaderClass { - GdkReaderClass parent_class; -}; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -struct _PhotoFileWriter { - PhotoFileAdapter parent_instance; - PhotoFileWriterPrivate * priv; -}; - -struct _PhotoFileWriterClass { - PhotoFileAdapterClass parent_class; - void (*write) (PhotoFileWriter* self, GdkPixbuf* pixbuf, JpegQuality quality, GError** error); -}; - -struct _PhotosBmpWriter { - PhotoFileWriter parent_instance; - PhotosBmpWriterPrivate * priv; -}; - -struct _PhotosBmpWriterClass { - PhotoFileWriterClass parent_class; -}; - -struct _PhotoFileMetadataWriter { - PhotoFileAdapter parent_instance; - PhotoFileMetadataWriterPrivate * priv; -}; - -struct _PhotoFileMetadataWriterClass { - PhotoFileAdapterClass parent_class; - void (*write_metadata) (PhotoFileMetadataWriter* self, PhotoMetadata* metadata, GError** error); -}; - -struct _PhotosBmpMetadataWriter { - PhotoFileMetadataWriter parent_instance; - PhotosBmpMetadataWriterPrivate * priv; -}; - -struct _PhotosBmpMetadataWriterClass { - PhotoFileMetadataWriterClass parent_class; -}; - -struct _PhotoFileFormatDriver { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileFormatDriverPrivate * priv; -}; - -struct _PhotoFileFormatDriverClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileFormatDriver *self); - PhotoFileFormatProperties* (*get_properties) (PhotoFileFormatDriver* self); - PhotoFileReader* (*create_reader) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoMetadata* (*create_metadata) (PhotoFileFormatDriver* self); - gboolean (*can_write_image) (PhotoFileFormatDriver* self); - gboolean (*can_write_metadata) (PhotoFileFormatDriver* self); - PhotoFileWriter* (*create_writer) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoFileMetadataWriter* (*create_metadata_writer) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoFileSniffer* (*create_sniffer) (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options); -}; - -struct _PhotosBmpFileFormatDriver { - PhotoFileFormatDriver parent_instance; - PhotosBmpFileFormatDriverPrivate * priv; -}; - -struct _PhotosBmpFileFormatDriverClass { - PhotoFileFormatDriverClass parent_class; -}; - - -static gpointer photos_bmp_file_format_properties_parent_class = NULL; -static gchar** photos_bmp_file_format_properties_KNOWN_EXTENSIONS; -static gint photos_bmp_file_format_properties_KNOWN_EXTENSIONS_length1; -static gchar** photos_bmp_file_format_properties_KNOWN_EXTENSIONS = NULL; -static gint photos_bmp_file_format_properties_KNOWN_EXTENSIONS_length1 = 0; -static gint _photos_bmp_file_format_properties_KNOWN_EXTENSIONS_size_ = 0; -static gchar** photos_bmp_file_format_properties_KNOWN_MIME_TYPES; -static gint photos_bmp_file_format_properties_KNOWN_MIME_TYPES_length1; -static gchar** photos_bmp_file_format_properties_KNOWN_MIME_TYPES = NULL; -static gint photos_bmp_file_format_properties_KNOWN_MIME_TYPES_length1 = 0; -static gint _photos_bmp_file_format_properties_KNOWN_MIME_TYPES_size_ = 0; -static PhotosBmpFileFormatProperties* photos_bmp_file_format_properties_instance; -static PhotosBmpFileFormatProperties* photos_bmp_file_format_properties_instance = NULL; -static gpointer photos_bmp_sniffer_parent_class = NULL; -static gpointer photos_bmp_reader_parent_class = NULL; -static gpointer photos_bmp_writer_parent_class = NULL; -static gpointer photos_bmp_metadata_writer_parent_class = NULL; -static gpointer photos_bmp_file_format_driver_parent_class = NULL; -static PhotosBmpFileFormatDriver* photos_bmp_file_format_driver_instance; -static PhotosBmpFileFormatDriver* photos_bmp_file_format_driver_instance = NULL; - -gpointer photo_file_format_properties_ref (gpointer instance); -void photo_file_format_properties_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_properties (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_format_properties (GValue* value, - gpointer v_object); -void value_take_photo_file_format_properties (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_format_properties (const GValue* value); -GType photo_file_format_properties_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType photo_file_format_flags_get_type (void) G_GNUC_CONST; -GType photos_bmp_file_format_properties_get_type (void) G_GNUC_CONST; -void photos_bmp_file_format_properties_init (void); -PhotosBmpFileFormatProperties* photos_bmp_file_format_properties_new (void); -PhotosBmpFileFormatProperties* photos_bmp_file_format_properties_construct (GType object_type); -PhotosBmpFileFormatProperties* photos_bmp_file_format_properties_get_instance (void); -static PhotoFileFormat photos_bmp_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base); -static PhotoFileFormatFlags photos_bmp_file_format_properties_real_get_flags (PhotoFileFormatProperties* base); -static gchar* photos_bmp_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base); -static gchar* photos_bmp_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base); -static gchar** photos_bmp_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base, - int* result_length1); -static gchar** _vala_array_dup8 (gchar** self, - int length); -static gchar* photos_bmp_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base); -static gchar** photos_bmp_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base, - int* result_length1); -static gchar** _vala_array_dup9 (gchar** self, - int length); -PhotoFileFormatProperties* photo_file_format_properties_construct (GType object_type); -static void photos_bmp_file_format_properties_finalize (PhotoFileFormatProperties * obj); -gpointer photo_file_sniffer_ref (gpointer instance); -void photo_file_sniffer_unref (gpointer instance); -GParamSpec* param_spec_photo_file_sniffer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_sniffer (GValue* value, - gpointer v_object); -void value_take_photo_file_sniffer (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_sniffer (const GValue* value); -GType photo_file_sniffer_get_type (void) G_GNUC_CONST; -gpointer detected_photo_information_ref (gpointer instance); -void detected_photo_information_unref (gpointer instance); -GParamSpec* param_spec_detected_photo_information (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_detected_photo_information (GValue* value, - gpointer v_object); -void value_take_detected_photo_information (GValue* value, - gpointer v_object); -gpointer value_get_detected_photo_information (const GValue* value); -GType detected_photo_information_get_type (void) G_GNUC_CONST; -GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST; -GType gdk_sniffer_get_type (void) G_GNUC_CONST; -GType photos_bmp_sniffer_get_type (void) G_GNUC_CONST; -PhotosBmpSniffer* photos_bmp_sniffer_new (GFile* file, - PhotoFileSnifferOptions options); -PhotosBmpSniffer* photos_bmp_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options); -GdkSniffer* gdk_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options); -static gboolean photos_bmp_sniffer_is_bmp_file (GFile* file, - GError** error); -static DetectedPhotoInformation* photos_bmp_sniffer_real_sniff (PhotoFileSniffer* base, - gboolean* is_corrupted, - GError** error); -DetectedPhotoInformation* photo_file_sniffer_sniff (PhotoFileSniffer* self, - gboolean* is_corrupted, - GError** error); -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -gpointer photo_file_adapter_ref (gpointer instance); -void photo_file_adapter_unref (gpointer instance); -GParamSpec* param_spec_photo_file_adapter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_adapter (GValue* value, - gpointer v_object); -void value_take_photo_file_adapter (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_adapter (const GValue* value); -GType photo_file_adapter_get_type (void) G_GNUC_CONST; -GType photo_file_reader_get_type (void) G_GNUC_CONST; -GType gdk_reader_get_type (void) G_GNUC_CONST; -GType photos_bmp_reader_get_type (void) G_GNUC_CONST; -PhotosBmpReader* photos_bmp_reader_new (const gchar* filepath); -PhotosBmpReader* photos_bmp_reader_construct (GType object_type, - const gchar* filepath); -GdkReader* gdk_reader_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -static GdkPixbuf* photos_bmp_reader_real_scaled_read (PhotoFileReader* base, - Dimensions* full, - Dimensions* scaled, - GError** error); -GType scale_constraint_get_type (void) G_GNUC_CONST; -void dimensions_get_scaled_by_constraint (Dimensions *self, - gint scale, - ScaleConstraint constraint, - Dimensions* result); -gchar* photo_file_adapter_get_filepath (PhotoFileAdapter* self); -GType photo_file_writer_get_type (void) G_GNUC_CONST; -GType jpeg_quality_get_type (void) G_GNUC_CONST; -GType photos_bmp_writer_get_type (void) G_GNUC_CONST; -PhotosBmpWriter* photos_bmp_writer_new (const gchar* filepath); -PhotosBmpWriter* photos_bmp_writer_construct (GType object_type, - const gchar* filepath); -PhotoFileWriter* photo_file_writer_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -static void photos_bmp_writer_real_write (PhotoFileWriter* base, - GdkPixbuf* pixbuf, - JpegQuality quality, - GError** error); -GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST; -GType photos_bmp_metadata_writer_get_type (void) G_GNUC_CONST; -PhotosBmpMetadataWriter* photos_bmp_metadata_writer_new (const gchar* filepath); -PhotosBmpMetadataWriter* photos_bmp_metadata_writer_construct (GType object_type, - const gchar* filepath); -PhotoFileMetadataWriter* photo_file_metadata_writer_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -static void photos_bmp_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* base, - PhotoMetadata* metadata, - GError** error); -gpointer photo_file_format_driver_ref (gpointer instance); -void photo_file_format_driver_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_driver (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_format_driver (GValue* value, - gpointer v_object); -void value_take_photo_file_format_driver (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_format_driver (const GValue* value); -GType photo_file_format_driver_get_type (void) G_GNUC_CONST; -GType photos_bmp_file_format_driver_get_type (void) G_GNUC_CONST; -void photos_bmp_file_format_driver_init (void); -PhotosBmpFileFormatDriver* photos_bmp_file_format_driver_new (void); -PhotosBmpFileFormatDriver* photos_bmp_file_format_driver_construct (GType object_type); -PhotosBmpFileFormatDriver* photos_bmp_file_format_driver_get_instance (void); -static PhotoFileFormatProperties* photos_bmp_file_format_driver_real_get_properties (PhotoFileFormatDriver* base); -static PhotoFileReader* photos_bmp_file_format_driver_real_create_reader (PhotoFileFormatDriver* base, - const gchar* filepath); -static gboolean photos_bmp_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base); -static gboolean photos_bmp_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base); -static PhotoFileWriter* photos_bmp_file_format_driver_real_create_writer (PhotoFileFormatDriver* base, - const gchar* filepath); -static PhotoFileMetadataWriter* photos_bmp_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base, - const gchar* filepath); -static PhotoFileSniffer* photos_bmp_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base, - GFile* file, - PhotoFileSnifferOptions options); -static PhotoMetadata* photos_bmp_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base); -PhotoMetadata* photo_metadata_new (void); -PhotoMetadata* photo_metadata_construct (GType object_type); -PhotoFileFormatDriver* photo_file_format_driver_construct (GType object_type); -static void photos_bmp_file_format_driver_finalize (PhotoFileFormatDriver * obj); - -static const guint8 PHOTOS_BMP_SNIFFER_MAGIC_SEQUENCE[2] = {(guint8) 0x42, (guint8) 0x4D}; - -void -photos_bmp_file_format_properties_init (void) -{ - PhotosBmpFileFormatProperties* _tmp0_; -#line 16 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = photos_bmp_file_format_properties_new (); -#line 16 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _photo_file_format_properties_unref0 (photos_bmp_file_format_properties_instance); -#line 16 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - photos_bmp_file_format_properties_instance = _tmp0_; -#line 686 "BmpSupport.c" -} - - -static gpointer -_photo_file_format_properties_ref0 (gpointer self) -{ -#line 20 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return self ? photo_file_format_properties_ref (self) : NULL; -#line 695 "BmpSupport.c" -} - - -PhotosBmpFileFormatProperties* -photos_bmp_file_format_properties_get_instance (void) -{ - PhotosBmpFileFormatProperties* result = NULL; - PhotosBmpFileFormatProperties* _tmp0_; - PhotosBmpFileFormatProperties* _tmp1_; -#line 20 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = photos_bmp_file_format_properties_instance; -#line 20 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp1_ = _photo_file_format_properties_ref0 (_tmp0_); -#line 20 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = _tmp1_; -#line 20 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 713 "BmpSupport.c" -} - - -static PhotoFileFormat -photos_bmp_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base) -{ - PhotosBmpFileFormatProperties * self; - PhotoFileFormat result = 0; -#line 23 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties); -#line 24 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = PHOTO_FILE_FORMAT_BMP; -#line 24 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 728 "BmpSupport.c" -} - - -static PhotoFileFormatFlags -photos_bmp_file_format_properties_real_get_flags (PhotoFileFormatProperties* base) -{ - PhotosBmpFileFormatProperties * self; - PhotoFileFormatFlags result = 0; -#line 27 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties); -#line 28 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = PHOTO_FILE_FORMAT_FLAGS_NONE; -#line 28 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 743 "BmpSupport.c" -} - - -static gchar* -photos_bmp_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base) -{ - PhotosBmpFileFormatProperties * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 31 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties); -#line 32 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = g_strdup (_ ("BMP")); -#line 32 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = _tmp0_; -#line 32 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 761 "BmpSupport.c" -} - - -static gchar* -photos_bmp_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base) -{ - PhotosBmpFileFormatProperties * self; - gchar* result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 35 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties); -#line 36 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = photos_bmp_file_format_properties_KNOWN_EXTENSIONS; -#line 36 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0__length1 = photos_bmp_file_format_properties_KNOWN_EXTENSIONS_length1; -#line 36 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp1_ = _tmp0_[0]; -#line 36 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 36 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = _tmp2_; -#line 36 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 788 "BmpSupport.c" -} - - -static gchar** -_vala_array_dup8 (gchar** self, - int length) -{ - gchar** result; - int i; -#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = g_new0 (gchar*, length + 1); -#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - for (i = 0; i < length; i++) { -#line 802 "BmpSupport.c" - gchar* _tmp0_; -#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = g_strdup (self[i]); -#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result[i] = _tmp0_; -#line 808 "BmpSupport.c" - } -#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 812 "BmpSupport.c" -} - - -static gchar** -photos_bmp_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base, - int* result_length1) -{ - PhotosBmpFileFormatProperties * self; - gchar** result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - gchar** _tmp1_; - gint _tmp1__length1; - gchar** _tmp2_; - gint _tmp2__length1; -#line 39 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties); -#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = photos_bmp_file_format_properties_KNOWN_EXTENSIONS; -#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0__length1 = photos_bmp_file_format_properties_KNOWN_EXTENSIONS_length1; -#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup8 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_); -#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp1__length1 = _tmp0__length1; -#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp2_ = _tmp1_; -#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp2__length1 = _tmp1__length1; -#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (result_length1) { -#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - *result_length1 = _tmp2__length1; -#line 846 "BmpSupport.c" - } -#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = _tmp2_; -#line 40 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 852 "BmpSupport.c" -} - - -static gchar* -photos_bmp_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base) -{ - PhotosBmpFileFormatProperties * self; - gchar* result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 43 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties); -#line 44 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = photos_bmp_file_format_properties_KNOWN_MIME_TYPES; -#line 44 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0__length1 = photos_bmp_file_format_properties_KNOWN_MIME_TYPES_length1; -#line 44 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp1_ = _tmp0_[0]; -#line 44 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 44 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = _tmp2_; -#line 44 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 879 "BmpSupport.c" -} - - -static gchar** -_vala_array_dup9 (gchar** self, - int length) -{ - gchar** result; - int i; -#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = g_new0 (gchar*, length + 1); -#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - for (i = 0; i < length; i++) { -#line 893 "BmpSupport.c" - gchar* _tmp0_; -#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = g_strdup (self[i]); -#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result[i] = _tmp0_; -#line 899 "BmpSupport.c" - } -#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 903 "BmpSupport.c" -} - - -static gchar** -photos_bmp_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base, - int* result_length1) -{ - PhotosBmpFileFormatProperties * self; - gchar** result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - gchar** _tmp1_; - gint _tmp1__length1; - gchar** _tmp2_; - gint _tmp2__length1; -#line 47 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties); -#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = photos_bmp_file_format_properties_KNOWN_MIME_TYPES; -#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0__length1 = photos_bmp_file_format_properties_KNOWN_MIME_TYPES_length1; -#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup9 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_); -#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp1__length1 = _tmp0__length1; -#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp2_ = _tmp1_; -#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp2__length1 = _tmp1__length1; -#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (result_length1) { -#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - *result_length1 = _tmp2__length1; -#line 937 "BmpSupport.c" - } -#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = _tmp2_; -#line 48 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 943 "BmpSupport.c" -} - - -PhotosBmpFileFormatProperties* -photos_bmp_file_format_properties_construct (GType object_type) -{ - PhotosBmpFileFormatProperties* self = NULL; -#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = (PhotosBmpFileFormatProperties*) photo_file_format_properties_construct (object_type); -#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return self; -#line 955 "BmpSupport.c" -} - - -PhotosBmpFileFormatProperties* -photos_bmp_file_format_properties_new (void) -{ -#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return photos_bmp_file_format_properties_construct (PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES); -#line 964 "BmpSupport.c" -} - - -static void -photos_bmp_file_format_properties_class_init (PhotosBmpFileFormatPropertiesClass * klass) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar** _tmp2_; - gchar* _tmp3_; - gchar** _tmp4_; -#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - photos_bmp_file_format_properties_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->finalize = photos_bmp_file_format_properties_finalize; -#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_file_format = (PhotoFileFormat (*) (PhotoFileFormatProperties *)) photos_bmp_file_format_properties_real_get_file_format; -#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_flags = (PhotoFileFormatFlags (*) (PhotoFileFormatProperties *)) photos_bmp_file_format_properties_real_get_flags; -#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_user_visible_name = (gchar* (*) (PhotoFileFormatProperties *)) photos_bmp_file_format_properties_real_get_user_visible_name; -#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_default_extension = (gchar* (*) (PhotoFileFormatProperties *)) photos_bmp_file_format_properties_real_get_default_extension; -#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_known_extensions = (gchar** (*) (PhotoFileFormatProperties *, int*)) photos_bmp_file_format_properties_real_get_known_extensions; -#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_default_mime_type = (gchar* (*) (PhotoFileFormatProperties *)) photos_bmp_file_format_properties_real_get_default_mime_type; -#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_mime_types = (gchar** (*) (PhotoFileFormatProperties *, int*)) photos_bmp_file_format_properties_real_get_mime_types; -#line 10 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = g_strdup ("bmp"); -#line 10 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp1_ = g_strdup ("dib"); -#line 10 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp2_ = g_new0 (gchar*, 2 + 1); -#line 10 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp2_[0] = _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp2_[1] = _tmp1_; -#line 10 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - photos_bmp_file_format_properties_KNOWN_EXTENSIONS = _tmp2_; -#line 10 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - photos_bmp_file_format_properties_KNOWN_EXTENSIONS_length1 = 2; -#line 11 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp3_ = g_strdup (GP_MIME_BMP); -#line 11 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp4_ = g_new0 (gchar*, 1 + 1); -#line 11 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp4_[0] = _tmp3_; -#line 11 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - photos_bmp_file_format_properties_KNOWN_MIME_TYPES = _tmp4_; -#line 11 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - photos_bmp_file_format_properties_KNOWN_MIME_TYPES_length1 = 1; -#line 1018 "BmpSupport.c" -} - - -static void -photos_bmp_file_format_properties_instance_init (PhotosBmpFileFormatProperties * self) -{ -} - - -static void -photos_bmp_file_format_properties_finalize (PhotoFileFormatProperties * obj) -{ - PhotosBmpFileFormatProperties * self; -#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTOS_TYPE_BMP_FILE_FORMAT_PROPERTIES, PhotosBmpFileFormatProperties); -#line 9 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - PHOTO_FILE_FORMAT_PROPERTIES_CLASS (photos_bmp_file_format_properties_parent_class)->finalize (obj); -#line 1036 "BmpSupport.c" -} - - -GType -photos_bmp_file_format_properties_get_type (void) -{ - static volatile gsize photos_bmp_file_format_properties_type_id__volatile = 0; - if (g_once_init_enter (&photos_bmp_file_format_properties_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotosBmpFileFormatPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_bmp_file_format_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosBmpFileFormatProperties), 0, (GInstanceInitFunc) photos_bmp_file_format_properties_instance_init, NULL }; - GType photos_bmp_file_format_properties_type_id; - photos_bmp_file_format_properties_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_PROPERTIES, "PhotosBmpFileFormatProperties", &g_define_type_info, 0); - g_once_init_leave (&photos_bmp_file_format_properties_type_id__volatile, photos_bmp_file_format_properties_type_id); - } - return photos_bmp_file_format_properties_type_id__volatile; -} - - -PhotosBmpSniffer* -photos_bmp_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options) -{ - PhotosBmpSniffer* self = NULL; -#line 55 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 56 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = (PhotosBmpSniffer*) gdk_sniffer_construct (object_type, file, options); -#line 55 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return self; -#line 1066 "BmpSupport.c" -} - - -PhotosBmpSniffer* -photos_bmp_sniffer_new (GFile* file, - PhotoFileSnifferOptions options) -{ -#line 55 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return photos_bmp_sniffer_construct (PHOTOS_TYPE_BMP_SNIFFER, file, options); -#line 1076 "BmpSupport.c" -} - - -static gboolean -photos_bmp_sniffer_is_bmp_file (GFile* file, - GError** error) -{ - gboolean result = FALSE; - GFileInputStream* instream = NULL; - GFileInputStream* _tmp0_; - guint8* file_lead_sequence = NULL; - guint8* _tmp2_; - gint file_lead_sequence_length1; - gint _file_lead_sequence_size_; - GFileInputStream* _tmp3_; - guint8* _tmp4_; - gint _tmp4__length1; - GError * _inner_error_ = NULL; -#line 59 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 60 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = g_file_read (file, NULL, &_inner_error_); -#line 60 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - instream = _tmp0_; -#line 60 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1103 "BmpSupport.c" - gboolean _tmp1_ = FALSE; -#line 60 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_propagate_error (error, _inner_error_); -#line 60 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return _tmp1_; -#line 1109 "BmpSupport.c" - } -#line 62 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp2_ = g_new0 (guint8, G_N_ELEMENTS (PHOTOS_BMP_SNIFFER_MAGIC_SEQUENCE)); -#line 62 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - file_lead_sequence = _tmp2_; -#line 62 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - file_lead_sequence_length1 = G_N_ELEMENTS (PHOTOS_BMP_SNIFFER_MAGIC_SEQUENCE); -#line 62 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _file_lead_sequence_size_ = file_lead_sequence_length1; -#line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp3_ = instream; -#line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp4_ = file_lead_sequence; -#line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp4__length1 = file_lead_sequence_length1; -#line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_input_stream_read (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, g_input_stream_get_type (), GInputStream), _tmp4_, (gsize) _tmp4__length1, NULL, &_inner_error_); -#line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1129 "BmpSupport.c" - gboolean _tmp5_ = FALSE; -#line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_propagate_error (error, _inner_error_); -#line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - file_lead_sequence = (g_free (file_lead_sequence), NULL); -#line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _g_object_unref0 (instream); -#line 64 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return _tmp5_; -#line 1139 "BmpSupport.c" - } - { - gint i = 0; -#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - i = 0; -#line 1145 "BmpSupport.c" - { - gboolean _tmp6_ = FALSE; -#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp6_ = TRUE; -#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - while (TRUE) { -#line 1152 "BmpSupport.c" - gint _tmp8_; - guint8* _tmp9_; - gint _tmp9__length1; - gint _tmp10_; - guint8 _tmp11_; - gint _tmp12_; - guint8 _tmp13_; -#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (!_tmp6_) { -#line 1162 "BmpSupport.c" - gint _tmp7_; -#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp7_ = i; -#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - i = _tmp7_ + 1; -#line 1168 "BmpSupport.c" - } -#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp6_ = FALSE; -#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp8_ = i; -#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (!(_tmp8_ < G_N_ELEMENTS (PHOTOS_BMP_SNIFFER_MAGIC_SEQUENCE))) { -#line 66 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - break; -#line 1178 "BmpSupport.c" - } -#line 67 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp9_ = file_lead_sequence; -#line 67 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp9__length1 = file_lead_sequence_length1; -#line 67 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp10_ = i; -#line 67 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp11_ = _tmp9_[_tmp10_]; -#line 67 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp12_ = i; -#line 67 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp13_ = PHOTOS_BMP_SNIFFER_MAGIC_SEQUENCE[_tmp12_]; -#line 67 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (_tmp11_ != _tmp13_) { -#line 68 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = FALSE; -#line 68 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - file_lead_sequence = (g_free (file_lead_sequence), NULL); -#line 68 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _g_object_unref0 (instream); -#line 68 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 1202 "BmpSupport.c" - } - } - } - } -#line 71 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = TRUE; -#line 71 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - file_lead_sequence = (g_free (file_lead_sequence), NULL); -#line 71 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _g_object_unref0 (instream); -#line 71 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 1215 "BmpSupport.c" -} - - -static gpointer -_detected_photo_information_ref0 (gpointer self) -{ -#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return self ? detected_photo_information_ref (self) : NULL; -#line 1224 "BmpSupport.c" -} - - -static DetectedPhotoInformation* -photos_bmp_sniffer_real_sniff (PhotoFileSniffer* base, - gboolean* is_corrupted, - GError** error) -{ - PhotosBmpSniffer * self; - gboolean _vala_is_corrupted = FALSE; - DetectedPhotoInformation* result = NULL; - gboolean _tmp0_ = FALSE; - GFile* _tmp1_; - DetectedPhotoInformation* detected = NULL; - gboolean _tmp2_ = FALSE; - DetectedPhotoInformation* _tmp3_; - DetectedPhotoInformation* _tmp4_; - DetectedPhotoInformation* _tmp5_ = NULL; - DetectedPhotoInformation* _tmp6_; - PhotoFileFormat _tmp7_; - DetectedPhotoInformation* _tmp9_; - GError * _inner_error_ = NULL; -#line 74 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_SNIFFER, PhotosBmpSniffer); -#line 76 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _vala_is_corrupted = FALSE; -#line 78 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file; -#line 78 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = photos_bmp_sniffer_is_bmp_file (_tmp1_, &_inner_error_); -#line 78 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 78 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_propagate_error (error, _inner_error_); -#line 78 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return NULL; -#line 1261 "BmpSupport.c" - } -#line 78 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (!_tmp0_) { -#line 79 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = NULL; -#line 79 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (is_corrupted) { -#line 79 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - *is_corrupted = _vala_is_corrupted; -#line 1271 "BmpSupport.c" - } -#line 79 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 1275 "BmpSupport.c" - } -#line 81 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp3_ = PHOTO_FILE_SNIFFER_CLASS (photos_bmp_sniffer_parent_class)->sniff (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_GDK_SNIFFER, GdkSniffer), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer), &_tmp2_, &_inner_error_); -#line 81 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _vala_is_corrupted = _tmp2_; -#line 81 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - detected = _tmp3_; -#line 81 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 81 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_propagate_error (error, _inner_error_); -#line 81 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return NULL; -#line 1289 "BmpSupport.c" - } -#line 82 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp4_ = detected; -#line 82 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (_tmp4_ == NULL) { -#line 83 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = NULL; -#line 83 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _detected_photo_information_unref0 (detected); -#line 83 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (is_corrupted) { -#line 83 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - *is_corrupted = _vala_is_corrupted; -#line 1303 "BmpSupport.c" - } -#line 83 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 1307 "BmpSupport.c" - } -#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp6_ = detected; -#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp7_ = _tmp6_->file_format; -#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (_tmp7_ == PHOTO_FILE_FORMAT_BMP) { -#line 1315 "BmpSupport.c" - DetectedPhotoInformation* _tmp8_; -#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp8_ = detected; -#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp5_ = _tmp8_; -#line 1321 "BmpSupport.c" - } else { -#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp5_ = NULL; -#line 1325 "BmpSupport.c" - } -#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp9_ = _detected_photo_information_ref0 (_tmp5_); -#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = _tmp9_; -#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _detected_photo_information_unref0 (detected); -#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (is_corrupted) { -#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - *is_corrupted = _vala_is_corrupted; -#line 1337 "BmpSupport.c" - } -#line 85 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 1341 "BmpSupport.c" -} - - -static void -photos_bmp_sniffer_class_init (PhotosBmpSnifferClass * klass) -{ -#line 52 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - photos_bmp_sniffer_parent_class = g_type_class_peek_parent (klass); -#line 52 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileSnifferClass *) klass)->sniff = (DetectedPhotoInformation* (*) (PhotoFileSniffer *, gboolean*, GError**)) photos_bmp_sniffer_real_sniff; -#line 1352 "BmpSupport.c" -} - - -static void -photos_bmp_sniffer_instance_init (PhotosBmpSniffer * self) -{ -} - - -GType -photos_bmp_sniffer_get_type (void) -{ - static volatile gsize photos_bmp_sniffer_type_id__volatile = 0; - if (g_once_init_enter (&photos_bmp_sniffer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotosBmpSnifferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_bmp_sniffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosBmpSniffer), 0, (GInstanceInitFunc) photos_bmp_sniffer_instance_init, NULL }; - GType photos_bmp_sniffer_type_id; - photos_bmp_sniffer_type_id = g_type_register_static (TYPE_GDK_SNIFFER, "PhotosBmpSniffer", &g_define_type_info, 0); - g_once_init_leave (&photos_bmp_sniffer_type_id__volatile, photos_bmp_sniffer_type_id); - } - return photos_bmp_sniffer_type_id__volatile; -} - - -PhotosBmpReader* -photos_bmp_reader_construct (GType object_type, - const gchar* filepath) -{ - PhotosBmpReader* self = NULL; -#line 90 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 91 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = (PhotosBmpReader*) gdk_reader_construct (object_type, filepath, PHOTO_FILE_FORMAT_BMP); -#line 90 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return self; -#line 1387 "BmpSupport.c" -} - - -PhotosBmpReader* -photos_bmp_reader_new (const gchar* filepath) -{ -#line 90 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return photos_bmp_reader_construct (PHOTOS_TYPE_BMP_READER, filepath); -#line 1396 "BmpSupport.c" -} - - -static GdkPixbuf* -photos_bmp_reader_real_scaled_read (PhotoFileReader* base, - Dimensions* full, - Dimensions* scaled, - GError** error) -{ - PhotosBmpReader * self; - GdkPixbuf* result = NULL; - GdkPixbuf* _result_ = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - Dimensions _tmp2_; - gint _tmp3_; - GError * _inner_error_ = NULL; -#line 94 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_READER, PhotosBmpReader); -#line 94 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_return_val_if_fail (full != NULL, NULL); -#line 94 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_return_val_if_fail (scaled != NULL, NULL); -#line 95 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _result_ = NULL; -#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp2_ = *full; -#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp3_ = _tmp2_.width; -#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (_tmp3_ > 9999) { -#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp1_ = TRUE; -#line 1430 "BmpSupport.c" - } else { - Dimensions _tmp4_; - gint _tmp5_; -#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp4_ = *full; -#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp5_ = _tmp4_.height; -#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp1_ = _tmp5_ > 9999; -#line 1440 "BmpSupport.c" - } -#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (_tmp1_) { -#line 1444 "BmpSupport.c" - gboolean _tmp6_ = FALSE; - Dimensions _tmp7_; - gint _tmp8_; -#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp7_ = *scaled; -#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp8_ = _tmp7_.width; -#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (_tmp8_ < 100) { -#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp6_ = TRUE; -#line 1456 "BmpSupport.c" - } else { - Dimensions _tmp9_; - gint _tmp10_; -#line 105 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp9_ = *scaled; -#line 105 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp10_ = _tmp9_.height; -#line 105 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp6_ = _tmp10_ < 100; -#line 1466 "BmpSupport.c" - } -#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = _tmp6_; -#line 1470 "BmpSupport.c" - } else { -#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = FALSE; -#line 1474 "BmpSupport.c" - } -#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (_tmp0_) { -#line 1478 "BmpSupport.c" - Dimensions prefetch_dimensions = {0}; - Dimensions _tmp11_ = {0}; - GdkPixbuf* _tmp12_ = NULL; - gchar* _tmp13_; - gchar* _tmp14_; - Dimensions _tmp15_; - gint _tmp16_; - Dimensions _tmp17_; - gint _tmp18_; - GdkPixbuf* _tmp19_; - GdkPixbuf* _tmp20_; - GdkPixbuf* _tmp21_; - GdkPixbuf* _tmp22_; - Dimensions _tmp23_; - gint _tmp24_; - Dimensions _tmp25_; - gint _tmp26_; - GdkPixbuf* _tmp27_; -#line 106 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - dimensions_get_scaled_by_constraint (full, 1000, SCALE_CONSTRAINT_DIMENSIONS, &_tmp11_); -#line 106 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - prefetch_dimensions = _tmp11_; -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp13_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp14_ = _tmp13_; -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp15_ = prefetch_dimensions; -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp16_ = _tmp15_.width; -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp17_ = prefetch_dimensions; -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp18_ = _tmp17_.height; -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp19_ = gdk_pixbuf_new_from_file_at_scale (_tmp14_, _tmp16_, _tmp18_, FALSE, &_inner_error_); -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp20_ = _tmp19_; -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _g_free0 (_tmp14_); -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp12_ = _tmp20_; -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_propagate_error (error, _inner_error_); -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _g_object_unref0 (_result_); -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return NULL; -#line 1529 "BmpSupport.c" - } -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp21_ = _tmp12_; -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp12_ = NULL; -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _g_object_unref0 (_result_); -#line 109 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _result_ = _tmp21_; -#line 112 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp22_ = _result_; -#line 112 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp23_ = *scaled; -#line 112 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp24_ = _tmp23_.width; -#line 112 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp25_ = *scaled; -#line 112 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp26_ = _tmp25_.height; -#line 112 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp27_ = gdk_pixbuf_scale_simple (_tmp22_, _tmp24_, _tmp26_, GDK_INTERP_HYPER); -#line 112 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _g_object_unref0 (_result_); -#line 112 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _result_ = _tmp27_; -#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _g_object_unref0 (_tmp12_); -#line 1557 "BmpSupport.c" - } else { - GdkPixbuf* _tmp28_ = NULL; - gchar* _tmp29_; - gchar* _tmp30_; - Dimensions _tmp31_; - gint _tmp32_; - Dimensions _tmp33_; - gint _tmp34_; - GdkPixbuf* _tmp35_; - GdkPixbuf* _tmp36_; - GdkPixbuf* _tmp37_; -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp29_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp30_ = _tmp29_; -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp31_ = *scaled; -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp32_ = _tmp31_.width; -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp33_ = *scaled; -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp34_ = _tmp33_.height; -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp35_ = gdk_pixbuf_new_from_file_at_scale (_tmp30_, _tmp32_, _tmp34_, FALSE, &_inner_error_); -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp36_ = _tmp35_; -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _g_free0 (_tmp30_); -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp28_ = _tmp36_; -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_propagate_error (error, _inner_error_); -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _g_object_unref0 (_result_); -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return NULL; -#line 1597 "BmpSupport.c" - } -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp37_ = _tmp28_; -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp28_ = NULL; -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _g_object_unref0 (_result_); -#line 114 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _result_ = _tmp37_; -#line 104 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _g_object_unref0 (_tmp28_); -#line 1609 "BmpSupport.c" - } -#line 118 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = _result_; -#line 118 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 1615 "BmpSupport.c" -} - - -static void -photos_bmp_reader_class_init (PhotosBmpReaderClass * klass) -{ -#line 89 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - photos_bmp_reader_parent_class = g_type_class_peek_parent (klass); -#line 89 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileReaderClass *) klass)->scaled_read = (GdkPixbuf* (*) (PhotoFileReader *, Dimensions*, Dimensions*, GError**)) photos_bmp_reader_real_scaled_read; -#line 1626 "BmpSupport.c" -} - - -static void -photos_bmp_reader_instance_init (PhotosBmpReader * self) -{ -} - - -GType -photos_bmp_reader_get_type (void) -{ - static volatile gsize photos_bmp_reader_type_id__volatile = 0; - if (g_once_init_enter (&photos_bmp_reader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotosBmpReaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_bmp_reader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosBmpReader), 0, (GInstanceInitFunc) photos_bmp_reader_instance_init, NULL }; - GType photos_bmp_reader_type_id; - photos_bmp_reader_type_id = g_type_register_static (TYPE_GDK_READER, "PhotosBmpReader", &g_define_type_info, 0); - g_once_init_leave (&photos_bmp_reader_type_id__volatile, photos_bmp_reader_type_id); - } - return photos_bmp_reader_type_id__volatile; -} - - -PhotosBmpWriter* -photos_bmp_writer_construct (GType object_type, - const gchar* filepath) -{ - PhotosBmpWriter* self = NULL; -#line 123 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 124 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = (PhotosBmpWriter*) photo_file_writer_construct (object_type, filepath, PHOTO_FILE_FORMAT_BMP); -#line 123 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return self; -#line 1661 "BmpSupport.c" -} - - -PhotosBmpWriter* -photos_bmp_writer_new (const gchar* filepath) -{ -#line 123 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return photos_bmp_writer_construct (PHOTOS_TYPE_BMP_WRITER, filepath); -#line 1670 "BmpSupport.c" -} - - -static void -photos_bmp_writer_real_write (PhotoFileWriter* base, - GdkPixbuf* pixbuf, - JpegQuality quality, - GError** error) -{ - PhotosBmpWriter * self; - gchar* _tmp0_; - gchar* _tmp1_; - GError * _inner_error_ = NULL; -#line 127 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_WRITER, PhotosBmpWriter); -#line 127 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 128 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 128 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp1_ = _tmp0_; -#line 128 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - gdk_pixbuf_save (pixbuf, _tmp1_, "bmp", &_inner_error_, NULL, NULL); -#line 128 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _g_free0 (_tmp1_); -#line 128 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 128 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_propagate_error (error, _inner_error_); -#line 128 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return; -#line 1702 "BmpSupport.c" - } -} - - -static void -photos_bmp_writer_class_init (PhotosBmpWriterClass * klass) -{ -#line 122 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - photos_bmp_writer_parent_class = g_type_class_peek_parent (klass); -#line 122 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileWriterClass *) klass)->write = (void (*) (PhotoFileWriter *, GdkPixbuf*, JpegQuality, GError**)) photos_bmp_writer_real_write; -#line 1714 "BmpSupport.c" -} - - -static void -photos_bmp_writer_instance_init (PhotosBmpWriter * self) -{ -} - - -GType -photos_bmp_writer_get_type (void) -{ - static volatile gsize photos_bmp_writer_type_id__volatile = 0; - if (g_once_init_enter (&photos_bmp_writer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotosBmpWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_bmp_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosBmpWriter), 0, (GInstanceInitFunc) photos_bmp_writer_instance_init, NULL }; - GType photos_bmp_writer_type_id; - photos_bmp_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_WRITER, "PhotosBmpWriter", &g_define_type_info, 0); - g_once_init_leave (&photos_bmp_writer_type_id__volatile, photos_bmp_writer_type_id); - } - return photos_bmp_writer_type_id__volatile; -} - - -PhotosBmpMetadataWriter* -photos_bmp_metadata_writer_construct (GType object_type, - const gchar* filepath) -{ - PhotosBmpMetadataWriter* self = NULL; -#line 133 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 134 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = (PhotosBmpMetadataWriter*) photo_file_metadata_writer_construct (object_type, filepath, PHOTO_FILE_FORMAT_BMP); -#line 133 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return self; -#line 1749 "BmpSupport.c" -} - - -PhotosBmpMetadataWriter* -photos_bmp_metadata_writer_new (const gchar* filepath) -{ -#line 133 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return photos_bmp_metadata_writer_construct (PHOTOS_TYPE_BMP_METADATA_WRITER, filepath); -#line 1758 "BmpSupport.c" -} - - -static void -photos_bmp_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* base, - PhotoMetadata* metadata, - GError** error) -{ - PhotosBmpMetadataWriter * self; -#line 137 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_METADATA_WRITER, PhotosBmpMetadataWriter); -#line 137 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_return_if_fail (IS_PHOTO_METADATA (metadata)); -#line 1772 "BmpSupport.c" -} - - -static void -photos_bmp_metadata_writer_class_init (PhotosBmpMetadataWriterClass * klass) -{ -#line 132 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - photos_bmp_metadata_writer_parent_class = g_type_class_peek_parent (klass); -#line 132 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileMetadataWriterClass *) klass)->write_metadata = (void (*) (PhotoFileMetadataWriter *, PhotoMetadata*, GError**)) photos_bmp_metadata_writer_real_write_metadata; -#line 1783 "BmpSupport.c" -} - - -static void -photos_bmp_metadata_writer_instance_init (PhotosBmpMetadataWriter * self) -{ -} - - -GType -photos_bmp_metadata_writer_get_type (void) -{ - static volatile gsize photos_bmp_metadata_writer_type_id__volatile = 0; - if (g_once_init_enter (&photos_bmp_metadata_writer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotosBmpMetadataWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_bmp_metadata_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosBmpMetadataWriter), 0, (GInstanceInitFunc) photos_bmp_metadata_writer_instance_init, NULL }; - GType photos_bmp_metadata_writer_type_id; - photos_bmp_metadata_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_METADATA_WRITER, "PhotosBmpMetadataWriter", &g_define_type_info, 0); - g_once_init_leave (&photos_bmp_metadata_writer_type_id__volatile, photos_bmp_metadata_writer_type_id); - } - return photos_bmp_metadata_writer_type_id__volatile; -} - - -void -photos_bmp_file_format_driver_init (void) -{ - PhotosBmpFileFormatDriver* _tmp0_; -#line 146 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = photos_bmp_file_format_driver_new (); -#line 146 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _photo_file_format_driver_unref0 (photos_bmp_file_format_driver_instance); -#line 146 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - photos_bmp_file_format_driver_instance = _tmp0_; -#line 147 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - photos_bmp_file_format_properties_init (); -#line 1819 "BmpSupport.c" -} - - -static gpointer -_photo_file_format_driver_ref0 (gpointer self) -{ -#line 151 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return self ? photo_file_format_driver_ref (self) : NULL; -#line 1828 "BmpSupport.c" -} - - -PhotosBmpFileFormatDriver* -photos_bmp_file_format_driver_get_instance (void) -{ - PhotosBmpFileFormatDriver* result = NULL; - PhotosBmpFileFormatDriver* _tmp0_; - PhotosBmpFileFormatDriver* _tmp1_; -#line 151 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = photos_bmp_file_format_driver_instance; -#line 151 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp1_ = _photo_file_format_driver_ref0 (_tmp0_); -#line 151 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = _tmp1_; -#line 151 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 1846 "BmpSupport.c" -} - - -static PhotoFileFormatProperties* -photos_bmp_file_format_driver_real_get_properties (PhotoFileFormatDriver* base) -{ - PhotosBmpFileFormatDriver * self; - PhotoFileFormatProperties* result = NULL; - PhotosBmpFileFormatProperties* _tmp0_; -#line 154 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver); -#line 155 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = photos_bmp_file_format_properties_get_instance (); -#line 155 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties); -#line 155 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 1864 "BmpSupport.c" -} - - -static PhotoFileReader* -photos_bmp_file_format_driver_real_create_reader (PhotoFileFormatDriver* base, - const gchar* filepath) -{ - PhotosBmpFileFormatDriver * self; - PhotoFileReader* result = NULL; - PhotosBmpReader* _tmp0_; -#line 158 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver); -#line 158 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 159 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = photos_bmp_reader_new (filepath); -#line 159 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_READER, PhotoFileReader); -#line 159 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 1885 "BmpSupport.c" -} - - -static gboolean -photos_bmp_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base) -{ - PhotosBmpFileFormatDriver * self; - gboolean result = FALSE; -#line 162 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver); -#line 163 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = TRUE; -#line 163 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 1900 "BmpSupport.c" -} - - -static gboolean -photos_bmp_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base) -{ - PhotosBmpFileFormatDriver * self; - gboolean result = FALSE; -#line 166 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver); -#line 167 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = FALSE; -#line 167 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 1915 "BmpSupport.c" -} - - -static PhotoFileWriter* -photos_bmp_file_format_driver_real_create_writer (PhotoFileFormatDriver* base, - const gchar* filepath) -{ - PhotosBmpFileFormatDriver * self; - PhotoFileWriter* result = NULL; - PhotosBmpWriter* _tmp0_; -#line 170 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver); -#line 170 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 171 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = photos_bmp_writer_new (filepath); -#line 171 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_WRITER, PhotoFileWriter); -#line 171 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 1936 "BmpSupport.c" -} - - -static PhotoFileMetadataWriter* -photos_bmp_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base, - const gchar* filepath) -{ - PhotosBmpFileFormatDriver * self; - PhotoFileMetadataWriter* result = NULL; - PhotosBmpMetadataWriter* _tmp0_; -#line 174 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver); -#line 174 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 175 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = photos_bmp_metadata_writer_new (filepath); -#line 175 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter); -#line 175 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 1957 "BmpSupport.c" -} - - -static PhotoFileSniffer* -photos_bmp_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base, - GFile* file, - PhotoFileSnifferOptions options) -{ - PhotosBmpFileFormatDriver * self; - PhotoFileSniffer* result = NULL; - PhotosBmpSniffer* _tmp0_; -#line 178 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver); -#line 178 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 179 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = photos_bmp_sniffer_new (file, options); -#line 179 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer); -#line 179 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 1979 "BmpSupport.c" -} - - -static PhotoMetadata* -photos_bmp_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base) -{ - PhotosBmpFileFormatDriver * self; - PhotoMetadata* result = NULL; - PhotoMetadata* _tmp0_; -#line 182 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver); -#line 183 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - _tmp0_ = photo_metadata_new (); -#line 183 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - result = _tmp0_; -#line 183 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return result; -#line 1997 "BmpSupport.c" -} - - -PhotosBmpFileFormatDriver* -photos_bmp_file_format_driver_construct (GType object_type) -{ - PhotosBmpFileFormatDriver* self = NULL; -#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = (PhotosBmpFileFormatDriver*) photo_file_format_driver_construct (object_type); -#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return self; -#line 2009 "BmpSupport.c" -} - - -PhotosBmpFileFormatDriver* -photos_bmp_file_format_driver_new (void) -{ -#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - return photos_bmp_file_format_driver_construct (PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER); -#line 2018 "BmpSupport.c" -} - - -static void -photos_bmp_file_format_driver_class_init (PhotosBmpFileFormatDriverClass * klass) -{ -#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - photos_bmp_file_format_driver_parent_class = g_type_class_peek_parent (klass); -#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->finalize = photos_bmp_file_format_driver_finalize; -#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->get_properties = (PhotoFileFormatProperties* (*) (PhotoFileFormatDriver *)) photos_bmp_file_format_driver_real_get_properties; -#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_reader = (PhotoFileReader* (*) (PhotoFileFormatDriver *, const gchar*)) photos_bmp_file_format_driver_real_create_reader; -#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->can_write_image = (gboolean (*) (PhotoFileFormatDriver *)) photos_bmp_file_format_driver_real_can_write_image; -#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->can_write_metadata = (gboolean (*) (PhotoFileFormatDriver *)) photos_bmp_file_format_driver_real_can_write_metadata; -#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_writer = (PhotoFileWriter* (*) (PhotoFileFormatDriver *, const gchar*)) photos_bmp_file_format_driver_real_create_writer; -#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_metadata_writer = (PhotoFileMetadataWriter* (*) (PhotoFileFormatDriver *, const gchar*)) photos_bmp_file_format_driver_real_create_metadata_writer; -#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_sniffer = (PhotoFileSniffer* (*) (PhotoFileFormatDriver *, GFile*, PhotoFileSnifferOptions)) photos_bmp_file_format_driver_real_create_sniffer; -#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_metadata = (PhotoMetadata* (*) (PhotoFileFormatDriver *)) photos_bmp_file_format_driver_real_create_metadata; -#line 2045 "BmpSupport.c" -} - - -static void -photos_bmp_file_format_driver_instance_init (PhotosBmpFileFormatDriver * self) -{ -} - - -static void -photos_bmp_file_format_driver_finalize (PhotoFileFormatDriver * obj) -{ - PhotosBmpFileFormatDriver * self; -#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver); -#line 142 "/home/jens/Source/shotwell/src/photos/BmpSupport.vala" - PHOTO_FILE_FORMAT_DRIVER_CLASS (photos_bmp_file_format_driver_parent_class)->finalize (obj); -#line 2063 "BmpSupport.c" -} - - -GType -photos_bmp_file_format_driver_get_type (void) -{ - static volatile gsize photos_bmp_file_format_driver_type_id__volatile = 0; - if (g_once_init_enter (&photos_bmp_file_format_driver_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotosBmpFileFormatDriverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_bmp_file_format_driver_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosBmpFileFormatDriver), 0, (GInstanceInitFunc) photos_bmp_file_format_driver_instance_init, NULL }; - GType photos_bmp_file_format_driver_type_id; - photos_bmp_file_format_driver_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_DRIVER, "PhotosBmpFileFormatDriver", &g_define_type_info, 0); - g_once_init_leave (&photos_bmp_file_format_driver_type_id__volatile, photos_bmp_file_format_driver_type_id); - } - return photos_bmp_file_format_driver_type_id__volatile; -} - - - diff --git a/src/photos/GRaw.c b/src/photos/GRaw.c deleted file mode 100644 index 25539cc..0000000 --- a/src/photos/GRaw.c +++ /dev/null @@ -1,2607 +0,0 @@ -/* GRaw.c generated by valac 0.40.4, the Vala compiler - * generated from GRaw.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define GRAW_TYPE_COLORSPACE (graw_colorspace_get_type ()) - -#define GRAW_TYPE_FLIP (graw_flip_get_type ()) - -#define GRAW_TYPE_FUJI_ROTATE (graw_fuji_rotate_get_type ()) - -#define GRAW_TYPE_HIGHLIGHT_MODE (graw_highlight_mode_get_type ()) - -#define GRAW_TYPE_INTERPOLATION_QUALITY (graw_interpolation_quality_get_type ()) - -#define GRAW_TYPE_USE_CAMERA_MATRIX (graw_use_camera_matrix_get_type ()) - -#define GRAW_TYPE_PROCESSED_IMAGE (graw_processed_image_get_type ()) -#define GRAW_PROCESSED_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImage)) -#define GRAW_PROCESSED_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImageClass)) -#define GRAW_IS_PROCESSED_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GRAW_TYPE_PROCESSED_IMAGE)) -#define GRAW_IS_PROCESSED_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GRAW_TYPE_PROCESSED_IMAGE)) -#define GRAW_PROCESSED_IMAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImageClass)) - -typedef struct _GRawProcessedImage GRawProcessedImage; -typedef struct _GRawProcessedImageClass GRawProcessedImageClass; -typedef struct _GRawProcessedImagePrivate GRawProcessedImagePrivate; -#define _free0(var) ((var == NULL) ? NULL : (var = (free (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _graw_processed_image_unref0(var) ((var == NULL) ? NULL : (var = (graw_processed_image_unref (var), NULL))) -#define _g_bytes_unref0(var) ((var == NULL) ? NULL : (var = (g_bytes_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -typedef struct _GRawParamSpecProcessedImage GRawParamSpecProcessedImage; - -#define GRAW_TYPE_PROCESSOR (graw_processor_get_type ()) -#define GRAW_PROCESSOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GRAW_TYPE_PROCESSOR, GRawProcessor)) -#define GRAW_PROCESSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GRAW_TYPE_PROCESSOR, GRawProcessorClass)) -#define GRAW_IS_PROCESSOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GRAW_TYPE_PROCESSOR)) -#define GRAW_IS_PROCESSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GRAW_TYPE_PROCESSOR)) -#define GRAW_PROCESSOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GRAW_TYPE_PROCESSOR, GRawProcessorClass)) - -typedef struct _GRawProcessor GRawProcessor; -typedef struct _GRawProcessorClass GRawProcessorClass; -typedef struct _GRawProcessorPrivate GRawProcessorPrivate; -#define _libraw_close0(var) ((var == NULL) ? NULL : (var = (libraw_close (var), NULL))) -typedef struct _GRawParamSpecProcessor GRawParamSpecProcessor; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef enum { - GRAW_COLORSPACE_RAW = 0, - GRAW_COLORSPACE_SRGB = 1, - GRAW_COLORSPACE_ADOBE = 2, - GRAW_COLORSPACE_WIDE = 3, - GRAW_COLORSPACE_PROPHOTO = 4, - GRAW_COLORSPACE_XYZ = 5 -} GRawColorspace; - -typedef enum { - GRAW_EXCEPTION_UNSPECIFIED, - GRAW_EXCEPTION_UNSUPPORTED_FILE, - GRAW_EXCEPTION_NONEXISTANT_IMAGE, - GRAW_EXCEPTION_OUT_OF_ORDER_CALL, - GRAW_EXCEPTION_NO_THUMBNAIL, - GRAW_EXCEPTION_UNSUPPORTED_THUMBNAIL, - GRAW_EXCEPTION_OUT_OF_MEMORY, - GRAW_EXCEPTION_DATA_ERROR, - GRAW_EXCEPTION_IO_ERROR, - GRAW_EXCEPTION_CANCELLED_BY_CALLBACK, - GRAW_EXCEPTION_BAD_CROP, - GRAW_EXCEPTION_SYSTEM_ERROR -} GRawException; -#define GRAW_EXCEPTION graw_exception_quark () -typedef enum { - GRAW_FLIP_FROM_SOURCE = -1, - GRAW_FLIP_NONE = 0, - GRAW_FLIP_UPSIDE_DOWN = 3, - GRAW_FLIP_COUNTERCLOCKWISE = 5, - GRAW_FLIP_CLOCKWISE = 6 -} GRawFlip; - -typedef enum { - GRAW_FUJI_ROTATE_USE = -1, - GRAW_FUJI_ROTATE_DONT_USE = 0 -} GRawFujiRotate; - -typedef enum { - GRAW_HIGHLIGHT_MODE_CLIP = 0, - GRAW_HIGHLIGHT_MODE_UNCLIP = 1, - GRAW_HIGHLIGHT_MODE_BLEND = 2, - GRAW_HIGHLIGHT_MODE_REBUILD = 3 -} GRawHighlightMode; - -typedef enum { - GRAW_INTERPOLATION_QUALITY_LINEAR = 0, - GRAW_INTERPOLATION_QUALITY_VNG = 1, - GRAW_INTERPOLATION_QUALITY_PPG = 2, - GRAW_INTERPOLATION_QUALITY_AHD = 3 -} GRawInterpolationQuality; - -typedef enum { - GRAW_USE_CAMERA_MATRIX_IGNORE = 0, - GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_PROFILE = 1, - GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_DATA = 3 -} GRawUseCameraMatrix; - -struct _GRawProcessedImage { - GTypeInstance parent_instance; - volatile int ref_count; - GRawProcessedImagePrivate * priv; -}; - -struct _GRawProcessedImageClass { - GTypeClass parent_class; - void (*finalize) (GRawProcessedImage *self); -}; - -struct _GRawProcessedImagePrivate { - libraw_processed_image_t* image; - GdkPixbuf* pixbuf; -}; - -struct _GRawParamSpecProcessedImage { - GParamSpec parent_instance; -}; - -struct _GRawProcessor { - GTypeInstance parent_instance; - volatile int ref_count; - GRawProcessorPrivate * priv; -}; - -struct _GRawProcessorClass { - GTypeClass parent_class; - void (*finalize) (GRawProcessor *self); -}; - -struct _GRawProcessorPrivate { - libraw_data_t* proc; -}; - -struct _GRawParamSpecProcessor { - GParamSpec parent_instance; -}; - - -static gpointer graw_processed_image_parent_class = NULL; -static gpointer graw_processor_parent_class = NULL; - -#define GRAW_HD_POWER 2.222 -#define GRAW_HD_SLOPE 4.5 -#define GRAW_SRGB_POWER 2.4 -#define GRAW_SRGB_SLOPE 12.92 -GType graw_colorspace_get_type (void) G_GNUC_CONST; -GQuark graw_exception_quark (void); -GType graw_flip_get_type (void) G_GNUC_CONST; -GType graw_fuji_rotate_get_type (void) G_GNUC_CONST; -GType graw_highlight_mode_get_type (void) G_GNUC_CONST; -GType graw_interpolation_quality_get_type (void) G_GNUC_CONST; -GType graw_use_camera_matrix_get_type (void) G_GNUC_CONST; -gpointer graw_processed_image_ref (gpointer instance); -void graw_processed_image_unref (gpointer instance); -GParamSpec* graw_param_spec_processed_image (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void graw_value_set_processed_image (GValue* value, - gpointer v_object); -void graw_value_take_processed_image (GValue* value, - gpointer v_object); -gpointer graw_value_get_processed_image (const GValue* value); -GType graw_processed_image_get_type (void) G_GNUC_CONST; -#define GRAW_PROCESSED_IMAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImagePrivate)) -GRawProcessedImage* graw_processed_image_new (libraw_data_t* proc, - GError** error); -GRawProcessedImage* graw_processed_image_construct (GType object_type, - libraw_data_t* proc, - GError** error); -void graw_throw_exception (const gchar* caller, - enum LibRaw_errors _result_, - GError** error); -GRawProcessedImage* graw_processed_image_new_from_thumb (libraw_data_t* proc, - GError** error); -GRawProcessedImage* graw_processed_image_construct_from_thumb (GType object_type, - libraw_data_t* proc, - GError** error); -GdkPixbuf* graw_processed_image_get_pixbuf_copy (GRawProcessedImage* self); -gushort graw_processed_image_get_width (GRawProcessedImage* self); -gushort graw_processed_image_get_height (GRawProcessedImage* self); -gushort graw_processed_image_get_colors (GRawProcessedImage* self); -gushort graw_processed_image_get_bits (GRawProcessedImage* self); -guint8* graw_processed_image_get_data (GRawProcessedImage* self); -guint graw_processed_image_get_data_size (GRawProcessedImage* self); -static void graw_processed_image_finalize (GRawProcessedImage * obj); -gpointer graw_processor_ref (gpointer instance); -void graw_processor_unref (gpointer instance); -GParamSpec* graw_param_spec_processor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void graw_value_set_processor (GValue* value, - gpointer v_object); -void graw_value_take_processor (GValue* value, - gpointer v_object); -gpointer graw_value_get_processor (const GValue* value); -GType graw_processor_get_type (void) G_GNUC_CONST; -#define GRAW_PROCESSOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GRAW_TYPE_PROCESSOR, GRawProcessorPrivate)) -GRawProcessor* graw_processor_new (enum LibRaw_constructor_flags options); -GRawProcessor* graw_processor_construct (GType object_type, - enum LibRaw_constructor_flags options); -void graw_processor_adjust_sizes_info_only (GRawProcessor* self, - GError** error); -libraw_imgother_t graw_processor_get_image_other (GRawProcessor* self); -libraw_iparams_t graw_processor_get_image_params (GRawProcessor* self); -libraw_image_sizes_t graw_processor_get_sizes (GRawProcessor* self); -libraw_thumbnail_t graw_processor_get_thumbnail (GRawProcessor* self); -GRawProcessedImage* graw_processor_make_mem_image (GRawProcessor* self, - GError** error); -GRawProcessedImage* graw_processor_make_thumb_image (GRawProcessor* self, - GError** error); -void graw_processor_open_buffer (GRawProcessor* self, - guint8* buffer, - int buffer_length1, - GError** error); -void graw_processor_open_file (GRawProcessor* self, - const gchar* filename, - GError** error); -void graw_processor_process (GRawProcessor* self, - GError** error); -void graw_processor_ppm_tiff_writer (GRawProcessor* self, - const gchar* filename, - GError** error); -void graw_processor_thumb_writer (GRawProcessor* self, - const gchar* filename, - GError** error); -void graw_processor_recycle (GRawProcessor* self); -void graw_processor_unpack (GRawProcessor* self, - GError** error); -void graw_processor_unpack_thumb (GRawProcessor* self, - GError** error); -void graw_processor_configure_for_rgb_display (GRawProcessor* self, - gboolean half_size); -libraw_output_params_t* graw_processor_get_output_params (GRawProcessor* self); -static void graw_processor_finalize (GRawProcessor * obj); - - -GType -graw_colorspace_get_type (void) -{ - static volatile gsize graw_colorspace_type_id__volatile = 0; - if (g_once_init_enter (&graw_colorspace_type_id__volatile)) { - static const GEnumValue values[] = {{GRAW_COLORSPACE_RAW, "GRAW_COLORSPACE_RAW", "raw"}, {GRAW_COLORSPACE_SRGB, "GRAW_COLORSPACE_SRGB", "srgb"}, {GRAW_COLORSPACE_ADOBE, "GRAW_COLORSPACE_ADOBE", "adobe"}, {GRAW_COLORSPACE_WIDE, "GRAW_COLORSPACE_WIDE", "wide"}, {GRAW_COLORSPACE_PROPHOTO, "GRAW_COLORSPACE_PROPHOTO", "prophoto"}, {GRAW_COLORSPACE_XYZ, "GRAW_COLORSPACE_XYZ", "xyz"}, {0, NULL, NULL}}; - GType graw_colorspace_type_id; - graw_colorspace_type_id = g_enum_register_static ("GRawColorspace", values); - g_once_init_leave (&graw_colorspace_type_id__volatile, graw_colorspace_type_id); - } - return graw_colorspace_type_id__volatile; -} - - -GQuark -graw_exception_quark (void) -{ - return g_quark_from_static_string ("graw_exception-quark"); -} - - -GType -graw_flip_get_type (void) -{ - static volatile gsize graw_flip_type_id__volatile = 0; - if (g_once_init_enter (&graw_flip_type_id__volatile)) { - static const GEnumValue values[] = {{GRAW_FLIP_FROM_SOURCE, "GRAW_FLIP_FROM_SOURCE", "from-source"}, {GRAW_FLIP_NONE, "GRAW_FLIP_NONE", "none"}, {GRAW_FLIP_UPSIDE_DOWN, "GRAW_FLIP_UPSIDE_DOWN", "upside-down"}, {GRAW_FLIP_COUNTERCLOCKWISE, "GRAW_FLIP_COUNTERCLOCKWISE", "counterclockwise"}, {GRAW_FLIP_CLOCKWISE, "GRAW_FLIP_CLOCKWISE", "clockwise"}, {0, NULL, NULL}}; - GType graw_flip_type_id; - graw_flip_type_id = g_enum_register_static ("GRawFlip", values); - g_once_init_leave (&graw_flip_type_id__volatile, graw_flip_type_id); - } - return graw_flip_type_id__volatile; -} - - -GType -graw_fuji_rotate_get_type (void) -{ - static volatile gsize graw_fuji_rotate_type_id__volatile = 0; - if (g_once_init_enter (&graw_fuji_rotate_type_id__volatile)) { - static const GEnumValue values[] = {{GRAW_FUJI_ROTATE_USE, "GRAW_FUJI_ROTATE_USE", "use"}, {GRAW_FUJI_ROTATE_DONT_USE, "GRAW_FUJI_ROTATE_DONT_USE", "dont-use"}, {0, NULL, NULL}}; - GType graw_fuji_rotate_type_id; - graw_fuji_rotate_type_id = g_enum_register_static ("GRawFujiRotate", values); - g_once_init_leave (&graw_fuji_rotate_type_id__volatile, graw_fuji_rotate_type_id); - } - return graw_fuji_rotate_type_id__volatile; -} - - -GType -graw_highlight_mode_get_type (void) -{ - static volatile gsize graw_highlight_mode_type_id__volatile = 0; - if (g_once_init_enter (&graw_highlight_mode_type_id__volatile)) { - static const GEnumValue values[] = {{GRAW_HIGHLIGHT_MODE_CLIP, "GRAW_HIGHLIGHT_MODE_CLIP", "clip"}, {GRAW_HIGHLIGHT_MODE_UNCLIP, "GRAW_HIGHLIGHT_MODE_UNCLIP", "unclip"}, {GRAW_HIGHLIGHT_MODE_BLEND, "GRAW_HIGHLIGHT_MODE_BLEND", "blend"}, {GRAW_HIGHLIGHT_MODE_REBUILD, "GRAW_HIGHLIGHT_MODE_REBUILD", "rebuild"}, {0, NULL, NULL}}; - GType graw_highlight_mode_type_id; - graw_highlight_mode_type_id = g_enum_register_static ("GRawHighlightMode", values); - g_once_init_leave (&graw_highlight_mode_type_id__volatile, graw_highlight_mode_type_id); - } - return graw_highlight_mode_type_id__volatile; -} - - -GType -graw_interpolation_quality_get_type (void) -{ - static volatile gsize graw_interpolation_quality_type_id__volatile = 0; - if (g_once_init_enter (&graw_interpolation_quality_type_id__volatile)) { - static const GEnumValue values[] = {{GRAW_INTERPOLATION_QUALITY_LINEAR, "GRAW_INTERPOLATION_QUALITY_LINEAR", "linear"}, {GRAW_INTERPOLATION_QUALITY_VNG, "GRAW_INTERPOLATION_QUALITY_VNG", "vng"}, {GRAW_INTERPOLATION_QUALITY_PPG, "GRAW_INTERPOLATION_QUALITY_PPG", "ppg"}, {GRAW_INTERPOLATION_QUALITY_AHD, "GRAW_INTERPOLATION_QUALITY_AHD", "ahd"}, {0, NULL, NULL}}; - GType graw_interpolation_quality_type_id; - graw_interpolation_quality_type_id = g_enum_register_static ("GRawInterpolationQuality", values); - g_once_init_leave (&graw_interpolation_quality_type_id__volatile, graw_interpolation_quality_type_id); - } - return graw_interpolation_quality_type_id__volatile; -} - - -GType -graw_use_camera_matrix_get_type (void) -{ - static volatile gsize graw_use_camera_matrix_type_id__volatile = 0; - if (g_once_init_enter (&graw_use_camera_matrix_type_id__volatile)) { - static const GEnumValue values[] = {{GRAW_USE_CAMERA_MATRIX_IGNORE, "GRAW_USE_CAMERA_MATRIX_IGNORE", "ignore"}, {GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_PROFILE, "GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_PROFILE", "embedded-color-profile"}, {GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_DATA, "GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_DATA", "embedded-color-data"}, {0, NULL, NULL}}; - GType graw_use_camera_matrix_type_id; - graw_use_camera_matrix_type_id = g_enum_register_static ("GRawUseCameraMatrix", values); - g_once_init_leave (&graw_use_camera_matrix_type_id__volatile, graw_use_camera_matrix_type_id); - } - return graw_use_camera_matrix_type_id__volatile; -} - - -GRawProcessedImage* -graw_processed_image_construct (GType object_type, - libraw_data_t* proc, - GError** error) -{ - GRawProcessedImage* self = NULL; - enum LibRaw_errors _result_ = 0; - libraw_processed_image_t* _tmp0_; - enum LibRaw_errors _tmp1_; - libraw_processed_image_t* _tmp2_; - libraw_processed_image_t* _tmp3_; - guint8* _tmp4_; - gint _tmp4__length1; - libraw_processed_image_t* _tmp5_; - gushort _tmp6_; - libraw_processed_image_t* _tmp7_; - gushort _tmp8_; - libraw_processed_image_t* _tmp9_; - gushort _tmp10_; - libraw_processed_image_t* _tmp11_; - gushort _tmp12_; - libraw_processed_image_t* _tmp13_; - gushort _tmp14_; - GdkPixbuf* _tmp15_; - GError * _inner_error_ = NULL; -#line 112 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_val_if_fail (proc != NULL, NULL); -#line 112 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self = (GRawProcessedImage*) g_type_create_instance (object_type); -#line 113 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _result_ = LIBRAW_SUCCESS; -#line 114 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = libraw_dcraw_make_mem_image (proc, &_result_); -#line 114 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _free0 (self->priv->image); -#line 114 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self->priv->image = _tmp0_; -#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = _result_; -#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("ProcessedImage", _tmp1_, &_inner_error_); -#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _graw_processed_image_unref0 (self); -#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return NULL; -#line 412 "GRaw.c" - } else { -#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 115 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return NULL; -#line 420 "GRaw.c" - } - } -#line 116 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp2_ = self->priv->image; -#line 116 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _vala_assert (_tmp2_ != NULL, "image != null"); -#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp3_ = self->priv->image; -#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp4_ = _tmp3_->data; -#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp4__length1 = _tmp3_->data_size; -#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp5_ = self->priv->image; -#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp6_ = _tmp5_->bits; -#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp7_ = self->priv->image; -#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp8_ = _tmp7_->width; -#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp9_ = self->priv->image; -#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp10_ = _tmp9_->height; -#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp11_ = self->priv->image; -#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp12_ = _tmp11_->width; -#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp13_ = self->priv->image; -#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp14_ = _tmp13_->colors; -#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp15_ = gdk_pixbuf_new_from_data (_tmp4_, GDK_COLORSPACE_RGB, FALSE, (gint) _tmp6_, (gint) _tmp8_, (gint) _tmp10_, (gint) (_tmp12_ * _tmp14_), (GdkPixbufDestroyNotify) NULL, NULL); -#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_object_unref0 (self->priv->pixbuf); -#line 120 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self->priv->pixbuf = _tmp15_; -#line 112 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return self; -#line 461 "GRaw.c" -} - - -GRawProcessedImage* -graw_processed_image_new (libraw_data_t* proc, - GError** error) -{ -#line 112 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return graw_processed_image_construct (GRAW_TYPE_PROCESSED_IMAGE, proc, error); -#line 471 "GRaw.c" -} - - -GRawProcessedImage* -graw_processed_image_construct_from_thumb (GType object_type, - libraw_data_t* proc, - GError** error) -{ - GRawProcessedImage* self = NULL; - enum LibRaw_errors _result_ = 0; - libraw_processed_image_t* _tmp0_; - enum LibRaw_errors _tmp1_; - libraw_processed_image_t* _tmp2_; - libraw_processed_image_t* _tmp16_; - GdkPixbuf* _tmp17_; - gint _tmp18_; - gint _tmp19_; - libraw_processed_image_t* _tmp20_; - GdkPixbuf* _tmp21_; - gint _tmp22_; - gint _tmp23_; - libraw_processed_image_t* _tmp24_; - GdkPixbuf* _tmp25_; - gint _tmp26_; - gint _tmp27_; - libraw_processed_image_t* _tmp28_; - GdkPixbuf* _tmp29_; - gint _tmp30_; - gint _tmp31_; - GError * _inner_error_ = NULL; -#line 124 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_val_if_fail (proc != NULL, NULL); -#line 124 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self = (GRawProcessedImage*) g_type_create_instance (object_type); -#line 125 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _result_ = LIBRAW_SUCCESS; -#line 126 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = libraw_dcraw_make_mem_thumb (proc, &_result_); -#line 126 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _free0 (self->priv->image); -#line 126 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self->priv->image = _tmp0_; -#line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = _result_; -#line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("ProcessedImage.from_thumb", _tmp1_, &_inner_error_); -#line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _graw_processed_image_unref0 (self); -#line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return NULL; -#line 528 "GRaw.c" - } else { -#line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 127 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return NULL; -#line 536 "GRaw.c" - } - } -#line 128 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp2_ = self->priv->image; -#line 128 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _vala_assert (_tmp2_ != NULL, "image != null"); -#line 543 "GRaw.c" - { - GBytes* bytes = NULL; - libraw_processed_image_t* _tmp3_; - guint8* _tmp4_; - gint _tmp4__length1; - GBytes* _tmp5_; - GdkPixbuf* _tmp6_ = NULL; - GBytes* _tmp7_; - GMemoryInputStream* _tmp8_; - GMemoryInputStream* _tmp9_; - GdkPixbuf* _tmp10_; - GdkPixbuf* _tmp11_; - GdkPixbuf* _tmp12_; -#line 134 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp3_ = self->priv->image; -#line 134 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp4_ = _tmp3_->data; -#line 134 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp4__length1 = _tmp3_->data_size; -#line 134 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp5_ = g_bytes_new_static (_tmp4_, _tmp4__length1); -#line 134 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - bytes = _tmp5_; -#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp7_ = bytes; -#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp8_ = (GMemoryInputStream*) g_memory_input_stream_new_from_bytes (_tmp7_); -#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp9_ = _tmp8_; -#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp10_ = gdk_pixbuf_new_from_stream (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_); -#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp11_ = _tmp10_; -#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_object_unref0 (_tmp9_); -#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp6_ = _tmp11_; -#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_bytes_unref0 (bytes); -#line 585 "GRaw.c" - goto __catch33_g_error; - } -#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp12_ = _tmp6_; -#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp6_ = NULL; -#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_object_unref0 (self->priv->pixbuf); -#line 135 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self->priv->pixbuf = _tmp12_; -#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_object_unref0 (_tmp6_); -#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_bytes_unref0 (bytes); -#line 600 "GRaw.c" - } - goto __finally33; - __catch33_g_error: - { - GError* err = NULL; - GError* _tmp13_; - const gchar* _tmp14_; - GError* _tmp15_; -#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - err = _inner_error_; -#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = NULL; -#line 138 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp13_ = err; -#line 138 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp14_ = _tmp13_->message; -#line 138 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp15_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_UNSUPPORTED_THUMBNAIL, _tmp14_); -#line 138 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp15_; -#line 138 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_error_free0 (err); -#line 623 "GRaw.c" - goto __finally33; - } - __finally33: -#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _graw_processed_image_unref0 (self); -#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return NULL; -#line 637 "GRaw.c" - } else { -#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 133 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return NULL; -#line 645 "GRaw.c" - } - } -#line 142 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp16_ = self->priv->image; -#line 142 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp17_ = self->priv->pixbuf; -#line 142 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp18_ = gdk_pixbuf_get_width (_tmp17_); -#line 142 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp19_ = _tmp18_; -#line 142 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp16_->width = (gushort) _tmp19_; -#line 143 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp20_ = self->priv->image; -#line 143 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp21_ = self->priv->pixbuf; -#line 143 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp22_ = gdk_pixbuf_get_height (_tmp21_); -#line 143 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp23_ = _tmp22_; -#line 143 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp20_->height = (gushort) _tmp23_; -#line 144 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp24_ = self->priv->image; -#line 144 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp25_ = self->priv->pixbuf; -#line 144 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp26_ = gdk_pixbuf_get_n_channels (_tmp25_); -#line 144 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp27_ = _tmp26_; -#line 144 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp24_->colors = (gushort) _tmp27_; -#line 145 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp28_ = self->priv->image; -#line 145 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp29_ = self->priv->pixbuf; -#line 145 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp30_ = gdk_pixbuf_get_bits_per_sample (_tmp29_); -#line 145 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp31_ = _tmp30_; -#line 145 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp28_->bits = (gushort) _tmp31_; -#line 124 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return self; -#line 690 "GRaw.c" -} - - -GRawProcessedImage* -graw_processed_image_new_from_thumb (libraw_data_t* proc, - GError** error) -{ -#line 124 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return graw_processed_image_construct_from_thumb (GRAW_TYPE_PROCESSED_IMAGE, proc, error); -#line 700 "GRaw.c" -} - - -GdkPixbuf* -graw_processed_image_get_pixbuf_copy (GRawProcessedImage* self) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; -#line 149 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_val_if_fail (GRAW_IS_PROCESSED_IMAGE (self), NULL); -#line 150 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->pixbuf; -#line 150 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = gdk_pixbuf_copy (_tmp0_); -#line 150 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = _tmp1_; -#line 150 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return result; -#line 720 "GRaw.c" -} - - -gushort -graw_processed_image_get_width (GRawProcessedImage* self) -{ - gushort result; - libraw_processed_image_t* _tmp0_; - gushort _tmp1_; -#line 77 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_val_if_fail (GRAW_IS_PROCESSED_IMAGE (self), 0U); -#line 78 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->image; -#line 78 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = _tmp0_->width; -#line 78 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = _tmp1_; -#line 78 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return result; -#line 740 "GRaw.c" -} - - -gushort -graw_processed_image_get_height (GRawProcessedImage* self) -{ - gushort result; - libraw_processed_image_t* _tmp0_; - gushort _tmp1_; -#line 83 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_val_if_fail (GRAW_IS_PROCESSED_IMAGE (self), 0U); -#line 84 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->image; -#line 84 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = _tmp0_->height; -#line 84 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = _tmp1_; -#line 84 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return result; -#line 760 "GRaw.c" -} - - -gushort -graw_processed_image_get_colors (GRawProcessedImage* self) -{ - gushort result; - libraw_processed_image_t* _tmp0_; - gushort _tmp1_; -#line 89 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_val_if_fail (GRAW_IS_PROCESSED_IMAGE (self), 0U); -#line 90 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->image; -#line 90 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = _tmp0_->colors; -#line 90 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = _tmp1_; -#line 90 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return result; -#line 780 "GRaw.c" -} - - -gushort -graw_processed_image_get_bits (GRawProcessedImage* self) -{ - gushort result; - libraw_processed_image_t* _tmp0_; - gushort _tmp1_; -#line 95 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_val_if_fail (GRAW_IS_PROCESSED_IMAGE (self), 0U); -#line 96 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->image; -#line 96 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = _tmp0_->bits; -#line 96 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = _tmp1_; -#line 96 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return result; -#line 800 "GRaw.c" -} - - -guint8* -graw_processed_image_get_data (GRawProcessedImage* self) -{ - guint8* result; - libraw_processed_image_t* _tmp0_; - guint8* _tmp1_; - gint _tmp1__length1; -#line 101 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_val_if_fail (GRAW_IS_PROCESSED_IMAGE (self), NULL); -#line 102 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->image; -#line 102 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = _tmp0_->data; -#line 102 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1__length1 = _tmp0_->data_size; -#line 102 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = _tmp1_; -#line 102 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return result; -#line 823 "GRaw.c" -} - - -guint -graw_processed_image_get_data_size (GRawProcessedImage* self) -{ - guint result; - libraw_processed_image_t* _tmp0_; - guint _tmp1_; -#line 107 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_val_if_fail (GRAW_IS_PROCESSED_IMAGE (self), 0U); -#line 108 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->image; -#line 108 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = _tmp0_->data_size; -#line 108 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = _tmp1_; -#line 108 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return result; -#line 843 "GRaw.c" -} - - -static void -graw_value_processed_image_init (GValue* value) -{ -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - value->data[0].v_pointer = NULL; -#line 852 "GRaw.c" -} - - -static void -graw_value_processed_image_free_value (GValue* value) -{ -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (value->data[0].v_pointer) { -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_processed_image_unref (value->data[0].v_pointer); -#line 863 "GRaw.c" - } -} - - -static void -graw_value_processed_image_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (src_value->data[0].v_pointer) { -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - dest_value->data[0].v_pointer = graw_processed_image_ref (src_value->data[0].v_pointer); -#line 876 "GRaw.c" - } else { -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - dest_value->data[0].v_pointer = NULL; -#line 880 "GRaw.c" - } -} - - -static gpointer -graw_value_processed_image_peek_pointer (const GValue* value) -{ -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return value->data[0].v_pointer; -#line 890 "GRaw.c" -} - - -static gchar* -graw_value_processed_image_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (collect_values[0].v_pointer) { -#line 902 "GRaw.c" - GRawProcessedImage * object; - object = collect_values[0].v_pointer; -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (object->parent_instance.g_class == NULL) { -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 909 "GRaw.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 913 "GRaw.c" - } -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - value->data[0].v_pointer = graw_processed_image_ref (object); -#line 917 "GRaw.c" - } else { -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - value->data[0].v_pointer = NULL; -#line 921 "GRaw.c" - } -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return NULL; -#line 925 "GRaw.c" -} - - -static gchar* -graw_value_processed_image_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - GRawProcessedImage ** object_p; - object_p = collect_values[0].v_pointer; -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (!object_p) { -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 941 "GRaw.c" - } -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (!value->data[0].v_pointer) { -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - *object_p = NULL; -#line 947 "GRaw.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - *object_p = value->data[0].v_pointer; -#line 951 "GRaw.c" - } else { -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - *object_p = graw_processed_image_ref (value->data[0].v_pointer); -#line 955 "GRaw.c" - } -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return NULL; -#line 959 "GRaw.c" -} - - -GParamSpec* -graw_param_spec_processed_image (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - GRawParamSpecProcessedImage* spec; -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_val_if_fail (g_type_is_a (object_type, GRAW_TYPE_PROCESSED_IMAGE), NULL); -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return G_PARAM_SPEC (spec); -#line 979 "GRaw.c" -} - - -gpointer -graw_value_get_processed_image (const GValue* value) -{ -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSED_IMAGE), NULL); -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return value->data[0].v_pointer; -#line 990 "GRaw.c" -} - - -void -graw_value_set_processed_image (GValue* value, - gpointer v_object) -{ - GRawProcessedImage * old; -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSED_IMAGE)); -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - old = value->data[0].v_pointer; -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (v_object) { -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GRAW_TYPE_PROCESSED_IMAGE)); -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - value->data[0].v_pointer = v_object; -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_processed_image_ref (value->data[0].v_pointer); -#line 1013 "GRaw.c" - } else { -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - value->data[0].v_pointer = NULL; -#line 1017 "GRaw.c" - } -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (old) { -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_processed_image_unref (old); -#line 1023 "GRaw.c" - } -} - - -void -graw_value_take_processed_image (GValue* value, - gpointer v_object) -{ - GRawProcessedImage * old; -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSED_IMAGE)); -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - old = value->data[0].v_pointer; -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (v_object) { -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GRAW_TYPE_PROCESSED_IMAGE)); -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - value->data[0].v_pointer = v_object; -#line 1045 "GRaw.c" - } else { -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - value->data[0].v_pointer = NULL; -#line 1049 "GRaw.c" - } -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (old) { -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_processed_image_unref (old); -#line 1055 "GRaw.c" - } -} - - -static void -graw_processed_image_class_init (GRawProcessedImageClass * klass) -{ -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_processed_image_parent_class = g_type_class_peek_parent (klass); -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - ((GRawProcessedImageClass *) klass)->finalize = graw_processed_image_finalize; -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_type_class_add_private (klass, sizeof (GRawProcessedImagePrivate)); -#line 1069 "GRaw.c" -} - - -static void -graw_processed_image_instance_init (GRawProcessedImage * self) -{ -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self->priv = GRAW_PROCESSED_IMAGE_GET_PRIVATE (self); -#line 74 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self->priv->pixbuf = NULL; -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self->ref_count = 1; -#line 1082 "GRaw.c" -} - - -static void -graw_processed_image_finalize (GRawProcessedImage * obj) -{ - GRawProcessedImage * self; -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImage); -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_signal_handlers_destroy (self); -#line 73 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _free0 (self->priv->image); -#line 74 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_object_unref0 (self->priv->pixbuf); -#line 1098 "GRaw.c" -} - - -GType -graw_processed_image_get_type (void) -{ - static volatile gsize graw_processed_image_type_id__volatile = 0; - if (g_once_init_enter (&graw_processed_image_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { graw_value_processed_image_init, graw_value_processed_image_free_value, graw_value_processed_image_copy_value, graw_value_processed_image_peek_pointer, "p", graw_value_processed_image_collect_value, "p", graw_value_processed_image_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (GRawProcessedImageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) graw_processed_image_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GRawProcessedImage), 0, (GInstanceInitFunc) graw_processed_image_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType graw_processed_image_type_id; - graw_processed_image_type_id = g_type_register_fundamental (g_type_fundamental_next (), "GRawProcessedImage", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&graw_processed_image_type_id__volatile, graw_processed_image_type_id); - } - return graw_processed_image_type_id__volatile; -} - - -gpointer -graw_processed_image_ref (gpointer instance) -{ - GRawProcessedImage * self; - self = instance; -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_atomic_int_inc (&self->ref_count); -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return instance; -#line 1127 "GRaw.c" -} - - -void -graw_processed_image_unref (gpointer instance) -{ - GRawProcessedImage * self; - self = instance; -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - GRAW_PROCESSED_IMAGE_GET_CLASS (self)->finalize (self); -#line 72 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1142 "GRaw.c" - } -} - - -GRawProcessor* -graw_processor_construct (GType object_type, - enum LibRaw_constructor_flags options) -{ - GRawProcessor* self = NULL; - libraw_data_t* _tmp0_; -#line 163 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self = (GRawProcessor*) g_type_create_instance (object_type); -#line 164 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = libraw_init (options); -#line 164 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _libraw_close0 (self->priv->proc); -#line 164 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self->priv->proc = _tmp0_; -#line 163 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return self; -#line 1163 "GRaw.c" -} - - -GRawProcessor* -graw_processor_new (enum LibRaw_constructor_flags options) -{ -#line 163 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return graw_processor_construct (GRAW_TYPE_PROCESSOR, options); -#line 1172 "GRaw.c" -} - - -void -graw_processor_adjust_sizes_info_only (GRawProcessor* self, - GError** error) -{ - libraw_data_t* _tmp0_; - GError * _inner_error_ = NULL; -#line 167 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (GRAW_IS_PROCESSOR (self)); -#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->proc; -#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("adjust_sizes_info_only", libraw_adjust_sizes_info_only (_tmp0_), &_inner_error_); -#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 1196 "GRaw.c" - } else { -#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 168 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 1204 "GRaw.c" - } - } -} - - -static libraw_imgother_t -libraw_get_image_other (libraw_data_t* self) -{ - libraw_imgother_t result = {0}; - libraw_imgother_t _tmp0_; -#line 188 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp0_ = self->other; -#line 188 "/home/jens/Source/shotwell/vapi/libraw.vapi" - result = _tmp0_; -#line 188 "/home/jens/Source/shotwell/vapi/libraw.vapi" - return result; -#line 1221 "GRaw.c" -} - - -libraw_imgother_t -graw_processor_get_image_other (GRawProcessor* self) -{ - libraw_imgother_t result = {0}; - libraw_data_t* _tmp0_; -#line 172 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->proc; -#line 172 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = libraw_get_image_other (_tmp0_); -#line 172 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return result; -#line 1236 "GRaw.c" -} - - -static libraw_iparams_t -libraw_get_image_params (libraw_data_t* self) -{ - libraw_iparams_t result = {0}; - libraw_iparams_t _tmp0_; -#line 189 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp0_ = self->idata; -#line 189 "/home/jens/Source/shotwell/vapi/libraw.vapi" - result = _tmp0_; -#line 189 "/home/jens/Source/shotwell/vapi/libraw.vapi" - return result; -#line 1251 "GRaw.c" -} - - -libraw_iparams_t -graw_processor_get_image_params (GRawProcessor* self) -{ - libraw_iparams_t result = {0}; - libraw_data_t* _tmp0_; -#line 176 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->proc; -#line 176 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = libraw_get_image_params (_tmp0_); -#line 176 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return result; -#line 1266 "GRaw.c" -} - - -static libraw_image_sizes_t -libraw_get_sizes (libraw_data_t* self) -{ - libraw_image_sizes_t result = {0}; - libraw_image_sizes_t _tmp0_; -#line 192 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp0_ = self->sizes; -#line 192 "/home/jens/Source/shotwell/vapi/libraw.vapi" - result = _tmp0_; -#line 192 "/home/jens/Source/shotwell/vapi/libraw.vapi" - return result; -#line 1281 "GRaw.c" -} - - -libraw_image_sizes_t -graw_processor_get_sizes (GRawProcessor* self) -{ - libraw_image_sizes_t result = {0}; - libraw_data_t* _tmp0_; -#line 180 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->proc; -#line 180 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = libraw_get_sizes (_tmp0_); -#line 180 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return result; -#line 1296 "GRaw.c" -} - - -static libraw_thumbnail_t -libraw_get_thumbnail (libraw_data_t* self) -{ - libraw_thumbnail_t result = {0}; - libraw_thumbnail_t _tmp0_; -#line 193 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp0_ = self->thumbnail; -#line 193 "/home/jens/Source/shotwell/vapi/libraw.vapi" - result = _tmp0_; -#line 193 "/home/jens/Source/shotwell/vapi/libraw.vapi" - return result; -#line 1311 "GRaw.c" -} - - -libraw_thumbnail_t -graw_processor_get_thumbnail (GRawProcessor* self) -{ - libraw_thumbnail_t result = {0}; - libraw_data_t* _tmp0_; -#line 184 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->proc; -#line 184 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = libraw_get_thumbnail (_tmp0_); -#line 184 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return result; -#line 1326 "GRaw.c" -} - - -GRawProcessedImage* -graw_processor_make_mem_image (GRawProcessor* self, - GError** error) -{ - GRawProcessedImage* result = NULL; - GRawProcessedImage* _tmp0_ = NULL; - libraw_data_t* _tmp1_; - GRawProcessedImage* _tmp2_; - GRawProcessedImage* _tmp3_; - GError * _inner_error_ = NULL; -#line 187 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_val_if_fail (GRAW_IS_PROCESSOR (self), NULL); -#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = self->priv->proc; -#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp2_ = graw_processed_image_new (_tmp1_, &_inner_error_); -#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = _tmp2_; -#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return NULL; -#line 1356 "GRaw.c" - } else { -#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return NULL; -#line 1364 "GRaw.c" - } - } -#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp3_ = _tmp0_; -#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = NULL; -#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = _tmp3_; -#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _graw_processed_image_unref0 (_tmp0_); -#line 188 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return result; -#line 1377 "GRaw.c" -} - - -GRawProcessedImage* -graw_processor_make_thumb_image (GRawProcessor* self, - GError** error) -{ - GRawProcessedImage* result = NULL; - GRawProcessedImage* _tmp0_ = NULL; - libraw_data_t* _tmp1_; - GRawProcessedImage* _tmp2_; - GRawProcessedImage* _tmp3_; - GError * _inner_error_ = NULL; -#line 191 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_val_if_fail (GRAW_IS_PROCESSOR (self), NULL); -#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = self->priv->proc; -#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp2_ = graw_processed_image_new_from_thumb (_tmp1_, &_inner_error_); -#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = _tmp2_; -#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return NULL; -#line 1407 "GRaw.c" - } else { -#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return NULL; -#line 1415 "GRaw.c" - } - } -#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp3_ = _tmp0_; -#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = NULL; -#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = _tmp3_; -#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _graw_processed_image_unref0 (_tmp0_); -#line 192 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return result; -#line 1428 "GRaw.c" -} - - -void -graw_processor_open_buffer (GRawProcessor* self, - guint8* buffer, - int buffer_length1, - GError** error) -{ - libraw_data_t* _tmp0_; - GError * _inner_error_ = NULL; -#line 195 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (GRAW_IS_PROCESSOR (self)); -#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->proc; -#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("open_buffer", libraw_open_buffer (_tmp0_, buffer, buffer_length1), &_inner_error_); -#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 1454 "GRaw.c" - } else { -#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 196 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 1462 "GRaw.c" - } - } -} - - -void -graw_processor_open_file (GRawProcessor* self, - const gchar* filename, - GError** error) -{ - libraw_data_t* _tmp0_; - GError * _inner_error_ = NULL; -#line 199 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (GRAW_IS_PROCESSOR (self)); -#line 199 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (filename != NULL); -#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->proc; -#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("open_file", libraw_open_file (_tmp0_, filename), &_inner_error_); -#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 1491 "GRaw.c" - } else { -#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 200 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 1499 "GRaw.c" - } - } -} - - -void -graw_processor_process (GRawProcessor* self, - GError** error) -{ - libraw_data_t* _tmp0_; - GError * _inner_error_ = NULL; -#line 203 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (GRAW_IS_PROCESSOR (self)); -#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->proc; -#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("process", libraw_dcraw_process (_tmp0_), &_inner_error_); -#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 1525 "GRaw.c" - } else { -#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 204 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 1533 "GRaw.c" - } - } -} - - -void -graw_processor_ppm_tiff_writer (GRawProcessor* self, - const gchar* filename, - GError** error) -{ - libraw_data_t* _tmp0_; - GError * _inner_error_ = NULL; -#line 207 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (GRAW_IS_PROCESSOR (self)); -#line 207 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (filename != NULL); -#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->proc; -#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("ppm_tiff_writer", libraw_dcraw_ppm_tiff_writer (_tmp0_, filename), &_inner_error_); -#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 1562 "GRaw.c" - } else { -#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 208 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 1570 "GRaw.c" - } - } -} - - -void -graw_processor_thumb_writer (GRawProcessor* self, - const gchar* filename, - GError** error) -{ - libraw_data_t* _tmp0_; - GError * _inner_error_ = NULL; -#line 211 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (GRAW_IS_PROCESSOR (self)); -#line 211 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (filename != NULL); -#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->proc; -#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("thumb_writer", libraw_dcraw_thumb_writer (_tmp0_, filename), &_inner_error_); -#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 1599 "GRaw.c" - } else { -#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 212 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 1607 "GRaw.c" - } - } -} - - -void -graw_processor_recycle (GRawProcessor* self) -{ - libraw_data_t* _tmp0_; -#line 215 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (GRAW_IS_PROCESSOR (self)); -#line 216 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->proc; -#line 216 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - libraw_recycle (_tmp0_); -#line 1623 "GRaw.c" -} - - -void -graw_processor_unpack (GRawProcessor* self, - GError** error) -{ - libraw_data_t* _tmp0_; - GError * _inner_error_ = NULL; -#line 219 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (GRAW_IS_PROCESSOR (self)); -#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->proc; -#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("unpack", libraw_unpack (_tmp0_), &_inner_error_); -#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 1647 "GRaw.c" - } else { -#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 220 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 1655 "GRaw.c" - } - } -} - - -void -graw_processor_unpack_thumb (GRawProcessor* self, - GError** error) -{ - libraw_data_t* _tmp0_; - GError * _inner_error_ = NULL; -#line 223 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (GRAW_IS_PROCESSOR (self)); -#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->proc; -#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_throw_exception ("unpack_thumb", libraw_unpack_thumb (_tmp0_), &_inner_error_); -#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 1681 "GRaw.c" - } else { -#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 224 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 1689 "GRaw.c" - } - } -} - - -static void -lib_raw_output_params_set_chromatic_aberrations (libraw_output_params_t* params, - gdouble red_multiplier, - gdouble green_multiplier) -{ - gdouble _tmp0_; - gdouble _tmp1_; -#line 148 "/home/jens/Source/shotwell/vapi/libraw.vapi" - (*params).aber[0] = red_multiplier; -#line 148 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp0_ = (*params).aber[0]; -#line 149 "/home/jens/Source/shotwell/vapi/libraw.vapi" - (*params).aber[2] = green_multiplier; -#line 149 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp1_ = (*params).aber[2]; -#line 1710 "GRaw.c" -} - - -static void -lib_raw_output_params_set_gamma_curve (libraw_output_params_t* params, - gdouble power, - gdouble slope) -{ - gdouble _tmp0_; - gdouble _tmp1_; -#line 153 "/home/jens/Source/shotwell/vapi/libraw.vapi" - (*params).gamm[0] = 1.0 / power; -#line 153 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp0_ = (*params).gamm[0]; -#line 154 "/home/jens/Source/shotwell/vapi/libraw.vapi" - (*params).gamm[1] = slope; -#line 154 "/home/jens/Source/shotwell/vapi/libraw.vapi" - _tmp1_ = (*params).gamm[1]; -#line 1729 "GRaw.c" -} - - -void -graw_processor_configure_for_rgb_display (GRawProcessor* self, - gboolean half_size) -{ - libraw_output_params_t* _tmp0_; - libraw_output_params_t* _tmp1_; - libraw_output_params_t* _tmp2_; - libraw_output_params_t* _tmp3_; - libraw_output_params_t* _tmp4_; - libraw_output_params_t* _tmp5_; - libraw_output_params_t* _tmp6_; - libraw_output_params_t* _tmp7_; - libraw_output_params_t* _tmp8_; - libraw_output_params_t* _tmp9_; - libraw_output_params_t* _tmp10_; - libraw_output_params_t* _tmp11_; - libraw_output_params_t* _tmp12_; - libraw_output_params_t* _tmp13_; - libraw_output_params_t* _tmp14_; - libraw_output_params_t* _tmp15_; - libraw_output_params_t* _tmp16_; - libraw_output_params_t* _tmp17_; - libraw_output_params_t* _tmp18_; - libraw_output_params_t* _tmp19_; - libraw_output_params_t* _tmp20_; - libraw_output_params_t* _tmp21_; - libraw_output_params_t* _tmp22_; - libraw_output_params_t* _tmp23_; - libraw_output_params_t* _tmp24_; - libraw_output_params_t* _tmp25_; - libraw_output_params_t* _tmp26_; - libraw_output_params_t* _tmp27_; - libraw_output_params_t* _tmp28_; - libraw_output_params_t* _tmp29_; -#line 230 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (GRAW_IS_PROCESSOR (self)); -#line 235 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = graw_processor_get_output_params (self); -#line 235 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = _tmp0_; -#line 235 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - lib_raw_output_params_set_chromatic_aberrations (_tmp1_, 1.0, 1.0); -#line 236 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp2_ = graw_processor_get_output_params (self); -#line 236 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp3_ = _tmp2_; -#line 236 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - lib_raw_output_params_set_gamma_curve (_tmp3_, GRAW_SRGB_POWER, GRAW_SRGB_SLOPE); -#line 240 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp4_ = graw_processor_get_output_params (self); -#line 240 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp5_ = _tmp4_; -#line 240 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp5_).bright = 1.0f; -#line 242 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp6_ = graw_processor_get_output_params (self); -#line 242 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp7_ = _tmp6_; -#line 242 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp7_).half_size = half_size; -#line 244 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp8_ = graw_processor_get_output_params (self); -#line 244 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp9_ = _tmp8_; -#line 244 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp9_).highlight = (gint) GRAW_HIGHLIGHT_MODE_CLIP; -#line 245 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp10_ = graw_processor_get_output_params (self); -#line 245 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp11_ = _tmp10_; -#line 245 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp11_).use_auto_wb = TRUE; -#line 246 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp12_ = graw_processor_get_output_params (self); -#line 246 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp13_ = _tmp12_; -#line 246 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp13_).use_camera_wb = TRUE; -#line 247 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp14_ = graw_processor_get_output_params (self); -#line 247 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp15_ = _tmp14_; -#line 247 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp15_).use_camera_matrix = (gint) GRAW_USE_CAMERA_MATRIX_EMBEDDED_COLOR_PROFILE; -#line 248 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp16_ = graw_processor_get_output_params (self); -#line 248 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp17_ = _tmp16_; -#line 248 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp17_).output_color = (gint) GRAW_COLORSPACE_SRGB; -#line 253 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp18_ = graw_processor_get_output_params (self); -#line 253 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp19_ = _tmp18_; -#line 253 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp19_).output_bps = 8; -#line 255 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp20_ = graw_processor_get_output_params (self); -#line 255 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp21_ = _tmp20_; -#line 255 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp21_).user_flip = (gint) GRAW_FLIP_FROM_SOURCE; -#line 256 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp22_ = graw_processor_get_output_params (self); -#line 256 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp23_ = _tmp22_; -#line 256 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp23_).user_qual = (gint) GRAW_INTERPOLATION_QUALITY_PPG; -#line 260 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp24_ = graw_processor_get_output_params (self); -#line 260 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp25_ = _tmp24_; -#line 260 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp25_).no_auto_bright = TRUE; -#line 261 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp26_ = graw_processor_get_output_params (self); -#line 261 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp27_ = _tmp26_; -#line 261 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp27_).auto_bright_thr = 0.01f; -#line 262 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp28_ = graw_processor_get_output_params (self); -#line 262 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp29_ = _tmp28_; -#line 262 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - (*_tmp29_).use_fuji_rotate = (gint) GRAW_FUJI_ROTATE_USE; -#line 1859 "GRaw.c" -} - - -libraw_output_params_t* -graw_processor_get_output_params (GRawProcessor* self) -{ - libraw_output_params_t* result; - libraw_data_t* _tmp0_; -#line 156 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_val_if_fail (GRAW_IS_PROCESSOR (self), NULL); -#line 157 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = self->priv->proc; -#line 157 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - result = &_tmp0_->params; -#line 157 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return result; -#line 1876 "GRaw.c" -} - - -static void -graw_value_processor_init (GValue* value) -{ -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - value->data[0].v_pointer = NULL; -#line 1885 "GRaw.c" -} - - -static void -graw_value_processor_free_value (GValue* value) -{ -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (value->data[0].v_pointer) { -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_processor_unref (value->data[0].v_pointer); -#line 1896 "GRaw.c" - } -} - - -static void -graw_value_processor_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (src_value->data[0].v_pointer) { -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - dest_value->data[0].v_pointer = graw_processor_ref (src_value->data[0].v_pointer); -#line 1909 "GRaw.c" - } else { -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - dest_value->data[0].v_pointer = NULL; -#line 1913 "GRaw.c" - } -} - - -static gpointer -graw_value_processor_peek_pointer (const GValue* value) -{ -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return value->data[0].v_pointer; -#line 1923 "GRaw.c" -} - - -static gchar* -graw_value_processor_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (collect_values[0].v_pointer) { -#line 1935 "GRaw.c" - GRawProcessor * object; - object = collect_values[0].v_pointer; -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (object->parent_instance.g_class == NULL) { -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1942 "GRaw.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1946 "GRaw.c" - } -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - value->data[0].v_pointer = graw_processor_ref (object); -#line 1950 "GRaw.c" - } else { -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - value->data[0].v_pointer = NULL; -#line 1954 "GRaw.c" - } -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return NULL; -#line 1958 "GRaw.c" -} - - -static gchar* -graw_value_processor_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - GRawProcessor ** object_p; - object_p = collect_values[0].v_pointer; -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (!object_p) { -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1974 "GRaw.c" - } -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (!value->data[0].v_pointer) { -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - *object_p = NULL; -#line 1980 "GRaw.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - *object_p = value->data[0].v_pointer; -#line 1984 "GRaw.c" - } else { -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - *object_p = graw_processor_ref (value->data[0].v_pointer); -#line 1988 "GRaw.c" - } -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return NULL; -#line 1992 "GRaw.c" -} - - -GParamSpec* -graw_param_spec_processor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - GRawParamSpecProcessor* spec; -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_val_if_fail (g_type_is_a (object_type, GRAW_TYPE_PROCESSOR), NULL); -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return G_PARAM_SPEC (spec); -#line 2012 "GRaw.c" -} - - -gpointer -graw_value_get_processor (const GValue* value) -{ -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSOR), NULL); -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return value->data[0].v_pointer; -#line 2023 "GRaw.c" -} - - -void -graw_value_set_processor (GValue* value, - gpointer v_object) -{ - GRawProcessor * old; -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSOR)); -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - old = value->data[0].v_pointer; -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (v_object) { -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GRAW_TYPE_PROCESSOR)); -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - value->data[0].v_pointer = v_object; -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_processor_ref (value->data[0].v_pointer); -#line 2046 "GRaw.c" - } else { -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - value->data[0].v_pointer = NULL; -#line 2050 "GRaw.c" - } -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (old) { -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_processor_unref (old); -#line 2056 "GRaw.c" - } -} - - -void -graw_value_take_processor (GValue* value, - gpointer v_object) -{ - GRawProcessor * old; -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAW_TYPE_PROCESSOR)); -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - old = value->data[0].v_pointer; -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (v_object) { -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GRAW_TYPE_PROCESSOR)); -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - value->data[0].v_pointer = v_object; -#line 2078 "GRaw.c" - } else { -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - value->data[0].v_pointer = NULL; -#line 2082 "GRaw.c" - } -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (old) { -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_processor_unref (old); -#line 2088 "GRaw.c" - } -} - - -static void -graw_processor_class_init (GRawProcessorClass * klass) -{ -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - graw_processor_parent_class = g_type_class_peek_parent (klass); -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - ((GRawProcessorClass *) klass)->finalize = graw_processor_finalize; -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_type_class_add_private (klass, sizeof (GRawProcessorPrivate)); -#line 2102 "GRaw.c" -} - - -static void -graw_processor_instance_init (GRawProcessor * self) -{ -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self->priv = GRAW_PROCESSOR_GET_PRIVATE (self); -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self->ref_count = 1; -#line 2113 "GRaw.c" -} - - -static void -graw_processor_finalize (GRawProcessor * obj) -{ - GRawProcessor * self; -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, GRAW_TYPE_PROCESSOR, GRawProcessor); -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_signal_handlers_destroy (self); -#line 161 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _libraw_close0 (self->priv->proc); -#line 2127 "GRaw.c" -} - - -GType -graw_processor_get_type (void) -{ - static volatile gsize graw_processor_type_id__volatile = 0; - if (g_once_init_enter (&graw_processor_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { graw_value_processor_init, graw_value_processor_free_value, graw_value_processor_copy_value, graw_value_processor_peek_pointer, "p", graw_value_processor_collect_value, "p", graw_value_processor_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (GRawProcessorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) graw_processor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GRawProcessor), 0, (GInstanceInitFunc) graw_processor_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType graw_processor_type_id; - graw_processor_type_id = g_type_register_fundamental (g_type_fundamental_next (), "GRawProcessor", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&graw_processor_type_id__volatile, graw_processor_type_id); - } - return graw_processor_type_id__volatile; -} - - -gpointer -graw_processor_ref (gpointer instance) -{ - GRawProcessor * self; - self = instance; -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_atomic_int_inc (&self->ref_count); -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return instance; -#line 2156 "GRaw.c" -} - - -void -graw_processor_unref (gpointer instance) -{ - GRawProcessor * self; - self = instance; -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - GRAW_PROCESSOR_GET_CLASS (self)->finalize (self); -#line 154 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2171 "GRaw.c" - } -} - - -void -graw_throw_exception (const gchar* caller, - enum LibRaw_errors _result_, - GError** error) -{ - gchar* msg = NULL; - const gchar* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 266 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_return_if_fail (caller != NULL); -#line 267 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_result_ == LIBRAW_SUCCESS) { -#line 268 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2191 "GRaw.c" - } else { -#line 269 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_result_ > 0) { -#line 2195 "GRaw.c" - const gchar* _tmp0_; - GError* _tmp1_; -#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp0_ = g_strerror ((gint) _result_); -#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp1_ = g_error_new (GRAW_EXCEPTION, GRAW_EXCEPTION_SYSTEM_ERROR, "%s: System error %d: %s", caller, (gint) _result_, _tmp0_); -#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp1_; -#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2210 "GRaw.c" - } else { -#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 270 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2218 "GRaw.c" - } - } - } -#line 272 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp2_ = libraw_strerror (_result_); -#line 272 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp3_ = g_strdup_printf ("%s: %s", caller, _tmp2_); -#line 272 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - msg = _tmp3_; -#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - switch (_result_) { -#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - case LIBRAW_UNSPECIFIED_ERROR: -#line 2232 "GRaw.c" - { - const gchar* _tmp4_; - GError* _tmp5_; -#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp4_ = msg; -#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp5_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_UNSPECIFIED, _tmp4_); -#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp5_; -#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2250 "GRaw.c" - } else { -#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 276 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2260 "GRaw.c" - } - } -#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - case LIBRAW_FILE_UNSUPPORTED: -#line 2265 "GRaw.c" - { - const gchar* _tmp6_; - GError* _tmp7_; -#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp6_ = msg; -#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp7_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_UNSUPPORTED_FILE, _tmp6_); -#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp7_; -#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2283 "GRaw.c" - } else { -#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 279 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2293 "GRaw.c" - } - } -#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - case LIBRAW_REQUEST_FOR_NONEXISTENT_IMAGE: -#line 2298 "GRaw.c" - { - const gchar* _tmp8_; - GError* _tmp9_; -#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp8_ = msg; -#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp9_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_NONEXISTANT_IMAGE, _tmp8_); -#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp9_; -#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2316 "GRaw.c" - } else { -#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 282 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2326 "GRaw.c" - } - } -#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - case LIBRAW_OUT_OF_ORDER_CALL: -#line 2331 "GRaw.c" - { - const gchar* _tmp10_; - GError* _tmp11_; -#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp10_ = msg; -#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp11_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_OUT_OF_ORDER_CALL, _tmp10_); -#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp11_; -#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2349 "GRaw.c" - } else { -#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 285 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2359 "GRaw.c" - } - } -#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - case LIBRAW_NO_THUMBNAIL: -#line 2364 "GRaw.c" - { - const gchar* _tmp12_; - GError* _tmp13_; -#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp12_ = msg; -#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp13_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_NO_THUMBNAIL, _tmp12_); -#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp13_; -#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2382 "GRaw.c" - } else { -#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 288 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2392 "GRaw.c" - } - } -#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - case LIBRAW_UNSUPPORTED_THUMBNAIL: -#line 2397 "GRaw.c" - { - const gchar* _tmp14_; - GError* _tmp15_; -#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp14_ = msg; -#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp15_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_UNSUPPORTED_THUMBNAIL, _tmp14_); -#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp15_; -#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2415 "GRaw.c" - } else { -#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 291 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2425 "GRaw.c" - } - } -#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - case LIBRAW_UNSUFFICIENT_MEMORY: -#line 2430 "GRaw.c" - { - const gchar* _tmp16_; - GError* _tmp17_; -#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp16_ = msg; -#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp17_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_OUT_OF_MEMORY, _tmp16_); -#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp17_; -#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2448 "GRaw.c" - } else { -#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 294 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2458 "GRaw.c" - } - } -#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - case LIBRAW_DATA_ERROR: -#line 2463 "GRaw.c" - { - const gchar* _tmp18_; - GError* _tmp19_; -#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp18_ = msg; -#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp19_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_DATA_ERROR, _tmp18_); -#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp19_; -#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2481 "GRaw.c" - } else { -#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 297 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2491 "GRaw.c" - } - } -#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - case LIBRAW_IO_ERROR: -#line 2496 "GRaw.c" - { - const gchar* _tmp20_; - GError* _tmp21_; -#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp20_ = msg; -#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp21_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_IO_ERROR, _tmp20_); -#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp21_; -#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2514 "GRaw.c" - } else { -#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 300 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2524 "GRaw.c" - } - } -#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - case LIBRAW_CANCELLED_BY_CALLBACK: -#line 2529 "GRaw.c" - { - const gchar* _tmp22_; - GError* _tmp23_; -#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp22_ = msg; -#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp23_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_CANCELLED_BY_CALLBACK, _tmp22_); -#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp23_; -#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2547 "GRaw.c" - } else { -#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 303 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2557 "GRaw.c" - } - } -#line 274 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - case LIBRAW_BAD_CROP: -#line 2562 "GRaw.c" - { - const gchar* _tmp24_; - GError* _tmp25_; -#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp24_ = msg; -#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _tmp25_ = g_error_new_literal (GRAW_EXCEPTION, GRAW_EXCEPTION_BAD_CROP, _tmp24_); -#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _inner_error_ = _tmp25_; -#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_propagate_error (error, _inner_error_); -#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2580 "GRaw.c" - } else { -#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - g_clear_error (&_inner_error_); -#line 306 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2590 "GRaw.c" - } - } - default: - { -#line 309 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 309 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - return; -#line 2599 "GRaw.c" - } - } -#line 266 "/home/jens/Source/shotwell/src/photos/GRaw.vala" - _g_free0 (msg); -#line 2604 "GRaw.c" -} - - - diff --git a/src/photos/GdkSupport.c b/src/photos/GdkSupport.c deleted file mode 100644 index c0b4e05..0000000 --- a/src/photos/GdkSupport.c +++ /dev/null @@ -1,1357 +0,0 @@ -/* GdkSupport.c generated by valac 0.40.4, the Vala compiler - * generated from GdkSupport.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include - - -#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ()) -#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)) -#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) -#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER)) -#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER)) -#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) - -typedef struct _PhotoFileAdapter PhotoFileAdapter; -typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass; -typedef struct _PhotoFileAdapterPrivate PhotoFileAdapterPrivate; - -#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ()) -#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader)) -#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) -#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER)) -#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER)) -#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) - -typedef struct _PhotoFileReader PhotoFileReader; -typedef struct _PhotoFileReaderClass PhotoFileReaderClass; -typedef struct _PhotoFileReaderPrivate PhotoFileReaderPrivate; - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_GDK_READER (gdk_reader_get_type ()) -#define GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_READER, GdkReader)) -#define GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_READER, GdkReaderClass)) -#define IS_GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_READER)) -#define IS_GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_READER)) -#define GDK_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_READER, GdkReaderClass)) - -typedef struct _GdkReader GdkReader; -typedef struct _GdkReaderClass GdkReaderClass; -typedef struct _GdkReaderPrivate GdkReaderPrivate; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_PHOTO_FILE_SNIFFER (photo_file_sniffer_get_type ()) -#define PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)) -#define PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass)) -#define IS_PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_SNIFFER)) -#define IS_PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_SNIFFER)) -#define PHOTO_FILE_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass)) - -typedef struct _PhotoFileSniffer PhotoFileSniffer; -typedef struct _PhotoFileSnifferClass PhotoFileSnifferClass; -typedef struct _PhotoFileSnifferPrivate PhotoFileSnifferPrivate; - -#define TYPE_DETECTED_PHOTO_INFORMATION (detected_photo_information_get_type ()) -#define DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation)) -#define DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass)) -#define IS_DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DETECTED_PHOTO_INFORMATION)) -#define IS_DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DETECTED_PHOTO_INFORMATION)) -#define DETECTED_PHOTO_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass)) - -typedef struct _DetectedPhotoInformation DetectedPhotoInformation; -typedef struct _DetectedPhotoInformationClass DetectedPhotoInformationClass; - -#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ()) - -#define TYPE_GDK_SNIFFER (gdk_sniffer_get_type ()) -#define GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_SNIFFER, GdkSniffer)) -#define GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_SNIFFER, GdkSnifferClass)) -#define IS_GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_SNIFFER)) -#define IS_GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_SNIFFER)) -#define GDK_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_SNIFFER, GdkSnifferClass)) - -typedef struct _GdkSniffer GdkSniffer; -typedef struct _GdkSnifferClass GdkSnifferClass; -typedef struct _GdkSnifferPrivate GdkSnifferPrivate; -#define _detected_photo_information_unref0(var) ((var == NULL) ? NULL : (var = (detected_photo_information_unref (var), NULL))) -#define _g_checksum_free0(var) ((var == NULL) ? NULL : (var = (g_checksum_free (var), NULL))) -typedef struct _DetectedPhotoInformationPrivate DetectedPhotoInformationPrivate; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -struct _PhotoFileAdapter { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileAdapterPrivate * priv; -}; - -struct _PhotoFileAdapterClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileAdapter *self); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _PhotoFileReader { - PhotoFileAdapter parent_instance; - PhotoFileReaderPrivate * priv; -}; - -struct _PhotoFileReaderClass { - PhotoFileAdapterClass parent_class; - PhotoMetadata* (*read_metadata) (PhotoFileReader* self, GError** error); - GdkPixbuf* (*unscaled_read) (PhotoFileReader* self, GError** error); - GdkPixbuf* (*scaled_read) (PhotoFileReader* self, Dimensions* full, Dimensions* scaled, GError** error); -}; - -struct _GdkReader { - PhotoFileReader parent_instance; - GdkReaderPrivate * priv; -}; - -struct _GdkReaderClass { - PhotoFileReaderClass parent_class; -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef enum { - PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000, - PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001 -} PhotoFileSnifferOptions; - -struct _PhotoFileSniffer { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileSnifferPrivate * priv; - GFile* file; - PhotoFileSnifferOptions options; - gboolean calc_md5; -}; - -struct _PhotoFileSnifferClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileSniffer *self); - DetectedPhotoInformation* (*sniff) (PhotoFileSniffer* self, gboolean* is_corrupted, GError** error); -}; - -struct _GdkSniffer { - PhotoFileSniffer parent_instance; - GdkSnifferPrivate * priv; -}; - -struct _GdkSnifferClass { - PhotoFileSnifferClass parent_class; -}; - -struct _GdkSnifferPrivate { - DetectedPhotoInformation* detected; - gboolean size_ready; - gboolean area_prepared; -}; - -struct _DetectedPhotoInformation { - GTypeInstance parent_instance; - volatile int ref_count; - DetectedPhotoInformationPrivate * priv; - PhotoFileFormat file_format; - PhotoMetadata* metadata; - gchar* md5; - gchar* exif_md5; - gchar* thumbnail_md5; - gchar* format_name; - Dimensions image_dim; - GdkColorspace colorspace; - gint channels; - gint bits_per_channel; -}; - -struct _DetectedPhotoInformationClass { - GTypeClass parent_class; - void (*finalize) (DetectedPhotoInformation *self); -}; - - -static gpointer gdk_reader_parent_class = NULL; -static gpointer gdk_sniffer_parent_class = NULL; - -gpointer photo_file_adapter_ref (gpointer instance); -void photo_file_adapter_unref (gpointer instance); -GParamSpec* param_spec_photo_file_adapter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_adapter (GValue* value, - gpointer v_object); -void value_take_photo_file_adapter (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_adapter (const GValue* value); -GType photo_file_adapter_get_type (void) G_GNUC_CONST; -GType photo_file_reader_get_type (void) G_GNUC_CONST; -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType gdk_reader_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -GdkReader* gdk_reader_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -PhotoFileReader* photo_file_reader_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -static PhotoMetadata* gdk_reader_real_read_metadata (PhotoFileReader* base, - GError** error); -PhotoMetadata* photo_metadata_new (void); -PhotoMetadata* photo_metadata_construct (GType object_type); -void media_metadata_read_from_file (MediaMetadata* self, - GFile* file, - GError** error); -GFile* photo_file_adapter_get_file (PhotoFileAdapter* self); -static GdkPixbuf* gdk_reader_real_unscaled_read (PhotoFileReader* base, - GError** error); -gchar* photo_file_adapter_get_filepath (PhotoFileAdapter* self); -static GdkPixbuf* gdk_reader_real_scaled_read (PhotoFileReader* base, - Dimensions* full, - Dimensions* scaled, - GError** error); -gpointer photo_file_sniffer_ref (gpointer instance); -void photo_file_sniffer_unref (gpointer instance); -GParamSpec* param_spec_photo_file_sniffer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_sniffer (GValue* value, - gpointer v_object); -void value_take_photo_file_sniffer (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_sniffer (const GValue* value); -GType photo_file_sniffer_get_type (void) G_GNUC_CONST; -gpointer detected_photo_information_ref (gpointer instance); -void detected_photo_information_unref (gpointer instance); -GParamSpec* param_spec_detected_photo_information (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_detected_photo_information (GValue* value, - gpointer v_object); -void value_take_detected_photo_information (GValue* value, - gpointer v_object); -gpointer value_get_detected_photo_information (const GValue* value); -GType detected_photo_information_get_type (void) G_GNUC_CONST; -GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST; -GType gdk_sniffer_get_type (void) G_GNUC_CONST; -#define GDK_SNIFFER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_GDK_SNIFFER, GdkSnifferPrivate)) -GdkSniffer* gdk_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options); -PhotoFileSniffer* photo_file_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options); -static DetectedPhotoInformation* gdk_sniffer_real_sniff (PhotoFileSniffer* base, - gboolean* is_corrupted, - GError** error); -DetectedPhotoInformation* detected_photo_information_new (void); -DetectedPhotoInformation* detected_photo_information_construct (GType object_type); -static void gdk_sniffer_on_size_prepared (GdkSniffer* self, - GdkPixbufLoader* loader, - gint width, - gint height); -static void _gdk_sniffer_on_size_prepared_gdk_pixbuf_loader_size_prepared (GdkPixbufLoader* _sender, - gint width, - gint height, - gpointer self); -static void gdk_sniffer_on_area_prepared (GdkSniffer* self, - GdkPixbufLoader* pixbuf_loader); -static void _gdk_sniffer_on_area_prepared_gdk_pixbuf_loader_area_prepared (GdkPixbufLoader* _sender, - gpointer self); -gchar* photo_metadata_exif_hash (PhotoMetadata* self); -gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self); -static guint8* _vala_array_dup5 (guint8* self, - int length); -void dimensions_init (Dimensions *self, - gint width, - gint height); -PhotoFileFormat photo_file_format_from_pixbuf_name (const gchar* name); -static void gdk_sniffer_finalize (PhotoFileSniffer * obj); - - -GdkReader* -gdk_reader_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format) -{ - GdkReader* self = NULL; -#line 8 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 9 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - self = (GdkReader*) photo_file_reader_construct (object_type, filepath, file_format); -#line 8 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return self; -#line 354 "GdkSupport.c" -} - - -static PhotoMetadata* -gdk_reader_real_read_metadata (PhotoFileReader* base, - GError** error) -{ - GdkReader * self; - PhotoMetadata* result = NULL; - PhotoMetadata* metadata = NULL; - PhotoMetadata* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - GError * _inner_error_ = NULL; -#line 12 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GDK_READER, GdkReader); -#line 13 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp0_ = photo_metadata_new (); -#line 13 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - metadata = _tmp0_; -#line 14 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp1_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 14 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp2_ = _tmp1_; -#line 14 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - media_metadata_read_from_file (G_TYPE_CHECK_INSTANCE_CAST (metadata, TYPE_MEDIA_METADATA, MediaMetadata), _tmp2_, &_inner_error_); -#line 14 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_object_unref0 (_tmp2_); -#line 14 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 14 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_propagate_error (error, _inner_error_); -#line 14 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _media_metadata_unref0 (metadata); -#line 14 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return NULL; -#line 391 "GdkSupport.c" - } -#line 16 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - result = metadata; -#line 16 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return result; -#line 397 "GdkSupport.c" -} - - -static GdkPixbuf* -gdk_reader_real_unscaled_read (PhotoFileReader* base, - GError** error) -{ - GdkReader * self; - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_ = NULL; - gchar* _tmp1_; - gchar* _tmp2_; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; - GError * _inner_error_ = NULL; -#line 19 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GDK_READER, GdkReader); -#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp1_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp2_ = _tmp1_; -#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp3_ = gdk_pixbuf_new_from_file (_tmp2_, &_inner_error_); -#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp4_ = _tmp3_; -#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_free0 (_tmp2_); -#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp0_ = _tmp4_; -#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_propagate_error (error, _inner_error_); -#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return NULL; -#line 434 "GdkSupport.c" - } -#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp5_ = _tmp0_; -#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp0_ = NULL; -#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - result = _tmp5_; -#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_object_unref0 (_tmp0_); -#line 20 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return result; -#line 446 "GdkSupport.c" -} - - -static GdkPixbuf* -gdk_reader_real_scaled_read (PhotoFileReader* base, - Dimensions* full, - Dimensions* scaled, - GError** error) -{ - GdkReader * self; - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_ = NULL; - gchar* _tmp1_; - gchar* _tmp2_; - Dimensions _tmp3_; - gint _tmp4_; - Dimensions _tmp5_; - gint _tmp6_; - GdkPixbuf* _tmp7_; - GdkPixbuf* _tmp8_; - GdkPixbuf* _tmp9_; - GError * _inner_error_ = NULL; -#line 23 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GDK_READER, GdkReader); -#line 23 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_return_val_if_fail (full != NULL, NULL); -#line 23 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_return_val_if_fail (scaled != NULL, NULL); -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp1_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp2_ = _tmp1_; -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp3_ = *scaled; -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp4_ = _tmp3_.width; -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp5_ = *scaled; -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp6_ = _tmp5_.height; -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp7_ = gdk_pixbuf_new_from_file_at_scale (_tmp2_, _tmp4_, _tmp6_, FALSE, &_inner_error_); -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp8_ = _tmp7_; -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_free0 (_tmp2_); -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp0_ = _tmp8_; -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_propagate_error (error, _inner_error_); -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return NULL; -#line 501 "GdkSupport.c" - } -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp9_ = _tmp0_; -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp0_ = NULL; -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - result = _tmp9_; -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_object_unref0 (_tmp0_); -#line 24 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return result; -#line 513 "GdkSupport.c" -} - - -static void -gdk_reader_class_init (GdkReaderClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - gdk_reader_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - ((PhotoFileReaderClass *) klass)->read_metadata = (PhotoMetadata* (*) (PhotoFileReader *, GError**)) gdk_reader_real_read_metadata; -#line 7 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - ((PhotoFileReaderClass *) klass)->unscaled_read = (GdkPixbuf* (*) (PhotoFileReader *, GError**)) gdk_reader_real_unscaled_read; -#line 7 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - ((PhotoFileReaderClass *) klass)->scaled_read = (GdkPixbuf* (*) (PhotoFileReader *, Dimensions*, Dimensions*, GError**)) gdk_reader_real_scaled_read; -#line 528 "GdkSupport.c" -} - - -static void -gdk_reader_instance_init (GdkReader * self) -{ -} - - -GType -gdk_reader_get_type (void) -{ - static volatile gsize gdk_reader_type_id__volatile = 0; - if (g_once_init_enter (&gdk_reader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (GdkReaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gdk_reader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GdkReader), 0, (GInstanceInitFunc) gdk_reader_instance_init, NULL }; - GType gdk_reader_type_id; - gdk_reader_type_id = g_type_register_static (TYPE_PHOTO_FILE_READER, "GdkReader", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&gdk_reader_type_id__volatile, gdk_reader_type_id); - } - return gdk_reader_type_id__volatile; -} - - -GdkSniffer* -gdk_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options) -{ - GdkSniffer* self = NULL; -#line 33 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 34 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - self = (GdkSniffer*) photo_file_sniffer_construct (object_type, file, options); -#line 33 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return self; -#line 564 "GdkSupport.c" -} - - -static void -_gdk_sniffer_on_size_prepared_gdk_pixbuf_loader_size_prepared (GdkPixbufLoader* _sender, - gint width, - gint height, - gpointer self) -{ -#line 41 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - gdk_sniffer_on_size_prepared ((GdkSniffer*) self, _sender, width, height); -#line 576 "GdkSupport.c" -} - - -static void -_gdk_sniffer_on_area_prepared_gdk_pixbuf_loader_area_prepared (GdkPixbufLoader* _sender, - gpointer self) -{ -#line 42 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - gdk_sniffer_on_area_prepared ((GdkSniffer*) self, _sender); -#line 586 "GdkSupport.c" -} - - -static guint8* -_vala_array_dup5 (guint8* self, - int length) -{ -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return g_memdup (self, length * sizeof (guint8)); -#line 596 "GdkSupport.c" -} - - -static gpointer -_detected_photo_information_ref0 (gpointer self) -{ -#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return self ? detected_photo_information_ref (self) : NULL; -#line 605 "GdkSupport.c" -} - - -static DetectedPhotoInformation* -gdk_sniffer_real_sniff (PhotoFileSniffer* base, - gboolean* is_corrupted, - GError** error) -{ - GdkSniffer * self; - gboolean _vala_is_corrupted = FALSE; - DetectedPhotoInformation* result = NULL; - DetectedPhotoInformation* _tmp0_; - GdkPixbufLoader* pixbuf_loader = NULL; - GdkPixbufLoader* _tmp1_; - GdkPixbufLoader* _tmp2_; - GdkPixbufLoader* _tmp3_; - GChecksum* md5_checksum = NULL; - gboolean _tmp4_; - DetectedPhotoInformation* _tmp6_; - PhotoMetadata* _tmp7_; - gboolean _tmp12_ = FALSE; - gboolean _tmp13_; - guint8* _tmp24_ = NULL; - gint _tmp24__length1 = 0; - gint __tmp24__size_ = 0; - gboolean _tmp25_; - guint8* buffer = NULL; - guint8* _tmp28_; - gint _tmp28__length1; - gint buffer_length1; - gint _buffer_size_; - gsize count = 0UL; - GFileInputStream* fins = NULL; - GFile* _tmp29_; - GFileInputStream* _tmp30_; - GFileInputStream* _tmp53_; - gboolean _tmp55_; - gboolean _tmp60_ = FALSE; - gboolean _tmp61_; - DetectedPhotoInformation* _tmp63_; - DetectedPhotoInformation* _tmp64_; - GError * _inner_error_ = NULL; -#line 37 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_GDK_SNIFFER, GdkSniffer); -#line 38 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp0_ = detected_photo_information_new (); -#line 38 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _detected_photo_information_unref0 (self->priv->detected); -#line 38 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - self->priv->detected = _tmp0_; -#line 40 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp1_ = gdk_pixbuf_loader_new (); -#line 40 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - pixbuf_loader = _tmp1_; -#line 41 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp2_ = pixbuf_loader; -#line 41 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_signal_connect (_tmp2_, "size-prepared", (GCallback) _gdk_sniffer_on_size_prepared_gdk_pixbuf_loader_size_prepared, self); -#line 42 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp3_ = pixbuf_loader; -#line 42 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_signal_connect (_tmp3_, "area-prepared", (GCallback) _gdk_sniffer_on_area_prepared_gdk_pixbuf_loader_area_prepared, self); -#line 45 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - md5_checksum = NULL; -#line 46 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->calc_md5; -#line 46 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (_tmp4_) { -#line 674 "GdkSupport.c" - GChecksum* _tmp5_; -#line 47 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp5_ = g_checksum_new (G_CHECKSUM_MD5); -#line 47 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_checksum_free0 (md5_checksum); -#line 47 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - md5_checksum = _tmp5_; -#line 682 "GdkSupport.c" - } -#line 49 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp6_ = self->priv->detected; -#line 49 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp7_ = photo_metadata_new (); -#line 49 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _media_metadata_unref0 (_tmp6_->metadata); -#line 49 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp6_->metadata = _tmp7_; -#line 692 "GdkSupport.c" - { - DetectedPhotoInformation* _tmp8_; - PhotoMetadata* _tmp9_; - GFile* _tmp10_; -#line 51 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp8_ = self->priv->detected; -#line 51 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp9_ = _tmp8_->metadata; -#line 51 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp10_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file; -#line 51 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - media_metadata_read_from_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MEDIA_METADATA, MediaMetadata), _tmp10_, &_inner_error_); -#line 51 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 707 "GdkSupport.c" - goto __catch34_g_error; - } - } - goto __finally34; - __catch34_g_error: - { - GError* err = NULL; - DetectedPhotoInformation* _tmp11_; -#line 50 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - err = _inner_error_; -#line 50 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _inner_error_ = NULL; -#line 54 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp11_ = self->priv->detected; -#line 54 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _media_metadata_unref0 (_tmp11_->metadata); -#line 54 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp11_->metadata = NULL; -#line 50 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_error_free0 (err); -#line 728 "GdkSupport.c" - } - __finally34: -#line 50 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 50 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_propagate_error (error, _inner_error_); -#line 50 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_checksum_free0 (md5_checksum); -#line 50 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_object_unref0 (pixbuf_loader); -#line 50 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return NULL; -#line 741 "GdkSupport.c" - } -#line 57 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->calc_md5; -#line 57 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (_tmp13_) { -#line 747 "GdkSupport.c" - DetectedPhotoInformation* _tmp14_; - PhotoMetadata* _tmp15_; -#line 57 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp14_ = self->priv->detected; -#line 57 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp15_ = _tmp14_->metadata; -#line 57 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp12_ = _tmp15_ != NULL; -#line 756 "GdkSupport.c" - } else { -#line 57 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp12_ = FALSE; -#line 760 "GdkSupport.c" - } -#line 57 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (_tmp12_) { -#line 764 "GdkSupport.c" - DetectedPhotoInformation* _tmp16_; - DetectedPhotoInformation* _tmp17_; - PhotoMetadata* _tmp18_; - gchar* _tmp19_; - DetectedPhotoInformation* _tmp20_; - DetectedPhotoInformation* _tmp21_; - PhotoMetadata* _tmp22_; - gchar* _tmp23_; -#line 58 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp16_ = self->priv->detected; -#line 58 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp17_ = self->priv->detected; -#line 58 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp18_ = _tmp17_->metadata; -#line 58 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp19_ = photo_metadata_exif_hash (_tmp18_); -#line 58 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_free0 (_tmp16_->exif_md5); -#line 58 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp16_->exif_md5 = _tmp19_; -#line 59 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp20_ = self->priv->detected; -#line 59 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp21_ = self->priv->detected; -#line 59 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp22_ = _tmp21_->metadata; -#line 59 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp23_ = photo_metadata_thumbnail_hash (_tmp22_); -#line 59 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_free0 (_tmp20_->thumbnail_md5); -#line 59 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp20_->thumbnail_md5 = _tmp23_; -#line 797 "GdkSupport.c" - } -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp25_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->calc_md5; -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (_tmp25_) { -#line 803 "GdkSupport.c" - guint8* _tmp26_; -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp26_ = g_new0 (guint8, 64 * 1024); -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp24_ = (g_free (_tmp24_), NULL); -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp24_ = _tmp26_; -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp24__length1 = 64 * 1024; -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - __tmp24__size_ = _tmp24__length1; -#line 815 "GdkSupport.c" - } else { - guint8* _tmp27_; -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp27_ = g_new0 (guint8, 8 * 1024); -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp24_ = (g_free (_tmp24_), NULL); -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp24_ = _tmp27_; -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp24__length1 = 8 * 1024; -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - __tmp24__size_ = _tmp24__length1; -#line 828 "GdkSupport.c" - } -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp28_ = (_tmp24_ != NULL) ? _vala_array_dup5 (_tmp24_, _tmp24__length1) : ((gpointer) _tmp24_); -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp28__length1 = _tmp24__length1; -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - buffer = _tmp28_; -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - buffer_length1 = _tmp28__length1; -#line 64 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _buffer_size_ = buffer_length1; -#line 65 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - count = (gsize) 0; -#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp29_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file; -#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp30_ = g_file_read (_tmp29_, NULL, &_inner_error_); -#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - fins = _tmp30_; -#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_propagate_error (error, _inner_error_); -#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - buffer = (g_free (buffer), NULL); -#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp24_ = (g_free (_tmp24_), NULL); -#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_checksum_free0 (md5_checksum); -#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_object_unref0 (pixbuf_loader); -#line 68 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return NULL; -#line 862 "GdkSupport.c" - } - { - gboolean _tmp31_ = FALSE; -#line 69 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp31_ = TRUE; -#line 69 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - while (TRUE) { -#line 870 "GdkSupport.c" - gsize bytes_read = 0UL; - GFileInputStream* _tmp32_; - guint8* _tmp33_; - gint _tmp33__length1; - gsize _tmp34_; - gsize _tmp35_; - gsize _tmp36_; - gboolean _tmp37_; - gboolean _tmp41_ = FALSE; - gboolean _tmp42_; - gboolean _tmp47_ = FALSE; - gboolean _tmp48_ = FALSE; - gboolean _tmp49_; -#line 69 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (!_tmp31_) { -#line 886 "GdkSupport.c" - } -#line 69 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp31_ = FALSE; -#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp32_ = fins; -#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp33_ = buffer; -#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp33__length1 = buffer_length1; -#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - bytes_read = (gsize) g_input_stream_read (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, g_input_stream_get_type (), GInputStream), _tmp33_, (gsize) _tmp33__length1, NULL, &_inner_error_); -#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_propagate_error (error, _inner_error_); -#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_object_unref0 (fins); -#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - buffer = (g_free (buffer), NULL); -#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp24_ = (g_free (_tmp24_), NULL); -#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_checksum_free0 (md5_checksum); -#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_object_unref0 (pixbuf_loader); -#line 70 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return NULL; -#line 914 "GdkSupport.c" - } -#line 71 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp34_ = bytes_read; -#line 71 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (_tmp34_ <= ((gsize) 0)) { -#line 72 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - break; -#line 922 "GdkSupport.c" - } -#line 74 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp35_ = count; -#line 74 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp36_ = bytes_read; -#line 74 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - count = _tmp35_ + _tmp36_; -#line 76 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp37_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->calc_md5; -#line 76 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (_tmp37_) { -#line 934 "GdkSupport.c" - GChecksum* _tmp38_; - guint8* _tmp39_; - gint _tmp39__length1; - gsize _tmp40_; -#line 77 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp38_ = md5_checksum; -#line 77 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp39_ = buffer; -#line 77 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp39__length1 = buffer_length1; -#line 77 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp40_ = bytes_read; -#line 77 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_checksum_update (_tmp38_, _tmp39_, _tmp40_); -#line 949 "GdkSupport.c" - } -#line 80 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp42_ = self->priv->size_ready; -#line 80 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (!_tmp42_) { -#line 80 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp41_ = TRUE; -#line 957 "GdkSupport.c" - } else { - gboolean _tmp43_; -#line 80 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp43_ = self->priv->area_prepared; -#line 80 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp41_ = !_tmp43_; -#line 964 "GdkSupport.c" - } -#line 80 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (_tmp41_) { -#line 968 "GdkSupport.c" - GdkPixbufLoader* _tmp44_; - guint8* _tmp45_; - gint _tmp45__length1; - gsize _tmp46_; -#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp44_ = pixbuf_loader; -#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp45_ = buffer; -#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp45__length1 = buffer_length1; -#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp46_ = bytes_read; -#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - gdk_pixbuf_loader_write (_tmp44_, _tmp45_ + 0, (gsize) (((gint) _tmp46_) - 0), &_inner_error_); -#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_propagate_error (error, _inner_error_); -#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_object_unref0 (fins); -#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - buffer = (g_free (buffer), NULL); -#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp24_ = (g_free (_tmp24_), NULL); -#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_checksum_free0 (md5_checksum); -#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_object_unref0 (pixbuf_loader); -#line 81 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return NULL; -#line 999 "GdkSupport.c" - } - } -#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp49_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->calc_md5; -#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (!_tmp49_) { -#line 1006 "GdkSupport.c" - gboolean _tmp50_; -#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp50_ = self->priv->size_ready; -#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp48_ = _tmp50_; -#line 1012 "GdkSupport.c" - } else { -#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp48_ = FALSE; -#line 1016 "GdkSupport.c" - } -#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (_tmp48_) { -#line 1020 "GdkSupport.c" - gboolean _tmp51_; -#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp51_ = self->priv->area_prepared; -#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp47_ = _tmp51_; -#line 1026 "GdkSupport.c" - } else { -#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp47_ = FALSE; -#line 1030 "GdkSupport.c" - } -#line 84 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (_tmp47_) { -#line 85 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - break; -#line 1036 "GdkSupport.c" - } - } - } - { - GdkPixbufLoader* _tmp52_; -#line 90 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp52_ = pixbuf_loader; -#line 90 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - gdk_pixbuf_loader_close (_tmp52_, &_inner_error_); -#line 90 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1048 "GdkSupport.c" - goto __catch35_g_error; - } - } - goto __finally35; - __catch35_g_error: - { - GError* err = NULL; -#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - err = _inner_error_; -#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _inner_error_ = NULL; -#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_error_free0 (err); -#line 1062 "GdkSupport.c" - } - __finally35: -#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_propagate_error (error, _inner_error_); -#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_object_unref0 (fins); -#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - buffer = (g_free (buffer), NULL); -#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp24_ = (g_free (_tmp24_), NULL); -#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_checksum_free0 (md5_checksum); -#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_object_unref0 (pixbuf_loader); -#line 89 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return NULL; -#line 1081 "GdkSupport.c" - } -#line 94 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp53_ = fins; -#line 94 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (_tmp53_ != NULL) { -#line 1087 "GdkSupport.c" - GFileInputStream* _tmp54_; -#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp54_ = fins; -#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_input_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_); -#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_propagate_error (error, _inner_error_); -#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_object_unref0 (fins); -#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - buffer = (g_free (buffer), NULL); -#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp24_ = (g_free (_tmp24_), NULL); -#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_checksum_free0 (md5_checksum); -#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_object_unref0 (pixbuf_loader); -#line 95 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return NULL; -#line 1109 "GdkSupport.c" - } - } -#line 97 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp55_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->calc_md5; -#line 97 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (_tmp55_) { -#line 1116 "GdkSupport.c" - DetectedPhotoInformation* _tmp56_; - GChecksum* _tmp57_; - const gchar* _tmp58_; - gchar* _tmp59_; -#line 98 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp56_ = self->priv->detected; -#line 98 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp57_ = md5_checksum; -#line 98 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp58_ = g_checksum_get_string (_tmp57_); -#line 98 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp59_ = g_strdup (_tmp58_); -#line 98 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_free0 (_tmp56_->md5); -#line 98 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp56_->md5 = _tmp59_; -#line 1133 "GdkSupport.c" - } -#line 101 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp61_ = self->priv->size_ready; -#line 101 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (!_tmp61_) { -#line 101 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp60_ = TRUE; -#line 1141 "GdkSupport.c" - } else { - gboolean _tmp62_; -#line 101 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp62_ = self->priv->area_prepared; -#line 101 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp60_ = !_tmp62_; -#line 1148 "GdkSupport.c" - } -#line 101 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _vala_is_corrupted = _tmp60_; -#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp63_ = self->priv->detected; -#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp64_ = _detected_photo_information_ref0 (_tmp63_); -#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - result = _tmp64_; -#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_object_unref0 (fins); -#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - buffer = (g_free (buffer), NULL); -#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp24_ = (g_free (_tmp24_), NULL); -#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_checksum_free0 (md5_checksum); -#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_object_unref0 (pixbuf_loader); -#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (is_corrupted) { -#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - *is_corrupted = _vala_is_corrupted; -#line 1172 "GdkSupport.c" - } -#line 103 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return result; -#line 1176 "GdkSupport.c" -} - - -static void -gdk_sniffer_on_size_prepared (GdkSniffer* self, - GdkPixbufLoader* loader, - gint width, - gint height) -{ - DetectedPhotoInformation* _tmp0_; -#line 106 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_return_if_fail (IS_GDK_SNIFFER (self)); -#line 106 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_return_if_fail (GDK_IS_PIXBUF_LOADER (loader)); -#line 107 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp0_ = self->priv->detected; -#line 107 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - dimensions_init (&_tmp0_->image_dim, width, height); -#line 108 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - self->priv->size_ready = TRUE; -#line 1197 "GdkSupport.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 112 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return self ? g_object_ref (self) : NULL; -#line 1206 "GdkSupport.c" -} - - -static void -gdk_sniffer_on_area_prepared (GdkSniffer* self, - GdkPixbufLoader* pixbuf_loader) -{ - GdkPixbuf* pixbuf = NULL; - GdkPixbuf* _tmp0_; - GdkPixbuf* _tmp1_; - GdkPixbuf* _tmp2_; - DetectedPhotoInformation* _tmp3_; - GdkPixbuf* _tmp4_; - DetectedPhotoInformation* _tmp5_; - GdkPixbuf* _tmp6_; - DetectedPhotoInformation* _tmp7_; - GdkPixbuf* _tmp8_; - GdkPixbufFormat* format = NULL; - GdkPixbufFormat* _tmp9_; - DetectedPhotoInformation* _tmp10_; - GdkPixbufFormat* _tmp11_; - gchar* _tmp12_; - DetectedPhotoInformation* _tmp13_; - DetectedPhotoInformation* _tmp14_; - const gchar* _tmp15_; -#line 111 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_return_if_fail (IS_GDK_SNIFFER (self)); -#line 111 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_return_if_fail (GDK_IS_PIXBUF_LOADER (pixbuf_loader)); -#line 112 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp0_ = gdk_pixbuf_loader_get_pixbuf (pixbuf_loader); -#line 112 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 112 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - pixbuf = _tmp1_; -#line 113 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp2_ = pixbuf; -#line 113 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - if (_tmp2_ == NULL) { -#line 114 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_object_unref0 (pixbuf); -#line 114 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - return; -#line 1250 "GdkSupport.c" - } -#line 116 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp3_ = self->priv->detected; -#line 116 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp4_ = pixbuf; -#line 116 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp3_->colorspace = gdk_pixbuf_get_colorspace (_tmp4_); -#line 117 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp5_ = self->priv->detected; -#line 117 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp6_ = pixbuf; -#line 117 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp5_->channels = gdk_pixbuf_get_n_channels (_tmp6_); -#line 118 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp7_ = self->priv->detected; -#line 118 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp8_ = pixbuf; -#line 118 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp7_->bits_per_channel = gdk_pixbuf_get_bits_per_sample (_tmp8_); -#line 120 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp9_ = gdk_pixbuf_loader_get_format (pixbuf_loader); -#line 120 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - format = _tmp9_; -#line 121 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp10_ = self->priv->detected; -#line 121 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp11_ = format; -#line 121 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp12_ = gdk_pixbuf_format_get_name (_tmp11_); -#line 121 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_free0 (_tmp10_->format_name); -#line 121 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp10_->format_name = _tmp12_; -#line 122 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp13_ = self->priv->detected; -#line 122 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp14_ = self->priv->detected; -#line 122 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp15_ = _tmp14_->format_name; -#line 122 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _tmp13_->file_format = photo_file_format_from_pixbuf_name (_tmp15_); -#line 124 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - self->priv->area_prepared = TRUE; -#line 111 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _g_object_unref0 (pixbuf); -#line 1296 "GdkSupport.c" -} - - -static void -gdk_sniffer_class_init (GdkSnifferClass * klass) -{ -#line 28 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - gdk_sniffer_parent_class = g_type_class_peek_parent (klass); -#line 28 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - ((PhotoFileSnifferClass *) klass)->finalize = gdk_sniffer_finalize; -#line 28 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - g_type_class_add_private (klass, sizeof (GdkSnifferPrivate)); -#line 28 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - ((PhotoFileSnifferClass *) klass)->sniff = (DetectedPhotoInformation* (*) (PhotoFileSniffer *, gboolean*, GError**)) gdk_sniffer_real_sniff; -#line 1311 "GdkSupport.c" -} - - -static void -gdk_sniffer_instance_init (GdkSniffer * self) -{ -#line 28 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - self->priv = GDK_SNIFFER_GET_PRIVATE (self); -#line 29 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - self->priv->detected = NULL; -#line 30 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - self->priv->size_ready = FALSE; -#line 31 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - self->priv->area_prepared = FALSE; -#line 1326 "GdkSupport.c" -} - - -static void -gdk_sniffer_finalize (PhotoFileSniffer * obj) -{ - GdkSniffer * self; -#line 28 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_GDK_SNIFFER, GdkSniffer); -#line 29 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - _detected_photo_information_unref0 (self->priv->detected); -#line 28 "/home/jens/Source/shotwell/src/photos/GdkSupport.vala" - PHOTO_FILE_SNIFFER_CLASS (gdk_sniffer_parent_class)->finalize (obj); -#line 1340 "GdkSupport.c" -} - - -GType -gdk_sniffer_get_type (void) -{ - static volatile gsize gdk_sniffer_type_id__volatile = 0; - if (g_once_init_enter (&gdk_sniffer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (GdkSnifferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gdk_sniffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GdkSniffer), 0, (GInstanceInitFunc) gdk_sniffer_instance_init, NULL }; - GType gdk_sniffer_type_id; - gdk_sniffer_type_id = g_type_register_static (TYPE_PHOTO_FILE_SNIFFER, "GdkSniffer", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&gdk_sniffer_type_id__volatile, gdk_sniffer_type_id); - } - return gdk_sniffer_type_id__volatile; -} - - - diff --git a/src/photos/GifSupport.vala b/src/photos/GifSupport.vala new file mode 100644 index 0000000..bd6ef6a --- /dev/null +++ b/src/photos/GifSupport.vala @@ -0,0 +1,173 @@ +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU LGPL (version 2.1 or later). + * See the COPYING file in this distribution. + */ + +namespace Photos { + +class GifFileFormatProperties : PhotoFileFormatProperties { + private static string[] KNOWN_EXTENSIONS = { "gif" }; + private static string[] KNOWN_MIME_TYPES = { "image/gif" }; + + private static GifFileFormatProperties instance = null; + + public static void init() { + instance = new GifFileFormatProperties(); + } + + public static GifFileFormatProperties get_instance() { + return instance; + } + + public override PhotoFileFormat get_file_format() { + return PhotoFileFormat.PNG; + } + + public override PhotoFileFormatFlags get_flags() { + return PhotoFileFormatFlags.NONE; + } + + public override string get_user_visible_name() { + return _("GIF"); + } + + public override string get_default_extension() { + return KNOWN_EXTENSIONS[0]; + } + + public override string[] get_known_extensions() { + return KNOWN_EXTENSIONS; + } + + public override string get_default_mime_type() { + return KNOWN_MIME_TYPES[0]; + } + + public override string[] get_mime_types() { + return KNOWN_MIME_TYPES; + } +} + +public class GifSniffer : GdkSniffer { + private const uint8[] MAGIC_SEQUENCE = { (uint8)'G', (uint8)'I', (uint8)'F', (uint8)'8' }; + + public GifSniffer(File file, PhotoFileSniffer.Options options) { + base (file, options); + } + + private static bool is_gif_file(File file) throws Error { + FileInputStream instream = file.read(null); + + uint8[] file_lead_sequence = new uint8[MAGIC_SEQUENCE.length]; + + instream.read(file_lead_sequence, null); + + return Posix.memcmp (file_lead_sequence, MAGIC_SEQUENCE, MAGIC_SEQUENCE.length) == 0; + } + + public override DetectedPhotoInformation? sniff(out bool is_corrupted) throws Error { + // Rely on GdkSniffer to detect corruption + is_corrupted = false; + + if (!is_gif_file(file)) + return null; + + DetectedPhotoInformation? detected = base.sniff(out is_corrupted); + + if (detected == null) + return null; + + return (detected.file_format == PhotoFileFormat.GIF) ? detected : null; + } +} + +public class GifReader : GdkReader { + public GifReader(string filepath) { + base (filepath, PhotoFileFormat.PNG); + } + + public override Gdk.Pixbuf scaled_read(Dimensions full, Dimensions scaled) throws Error { + Gdk.Pixbuf result = null; + /* if we encounter a situation where there are two orders of magnitude or more of + difference between the full image size and the scaled size, and if the full image + size has five or more decimal digits of precision, Gdk.Pixbuf.from_file_at_scale( ) can + fail due to what appear to be floating-point round-off issues. This isn't surprising, + since 32-bit floats only have 6-7 decimal digits of precision in their mantissa. In + this case, we prefetch the image at a larger scale and then downsample it to the + desired scale as a post-process step. This short-circuits Gdk.Pixbuf's buggy + scaling code. */ + if (((full.width > 9999) || (full.height > 9999)) && ((scaled.width < 100) || + (scaled.height < 100))) { + Dimensions prefetch_dimensions = full.get_scaled_by_constraint(1000, + ScaleConstraint.DIMENSIONS); + + result = new Gdk.Pixbuf.from_file_at_scale(get_filepath(), prefetch_dimensions.width, + prefetch_dimensions.height, false); + + result = result.scale_simple(scaled.width, scaled.height, Gdk.InterpType.HYPER); + } else { + result = new Gdk.Pixbuf.from_file_at_scale(get_filepath(), scaled.width, + scaled.height, false); + } + + return result; + } +} + +public class GifMetadataWriter : PhotoFileMetadataWriter { + public GifMetadataWriter(string filepath) { + base (filepath, PhotoFileFormat.GIF); + } + + public override void write_metadata(PhotoMetadata metadata) throws Error { + metadata.write_to_file(get_file()); + } +} + +public class GifFileFormatDriver : PhotoFileFormatDriver { + private static GifFileFormatDriver instance = null; + + public static void init() { + instance = new GifFileFormatDriver(); + GifFileFormatProperties.init(); + } + + public static GifFileFormatDriver get_instance() { + return instance; + } + + public override PhotoFileFormatProperties get_properties() { + return GifFileFormatProperties.get_instance(); + } + + public override PhotoFileReader create_reader(string filepath) { + return new GifReader(filepath); + } + + public override bool can_write_image() { + return false; + } + + public override bool can_write_metadata() { + return true; + } + + public override PhotoFileWriter? create_writer(string filepath) { + return null; + } + + public override PhotoFileMetadataWriter? create_metadata_writer(string filepath) { + return new GifMetadataWriter(filepath); + } + + public override PhotoFileSniffer create_sniffer(File file, PhotoFileSniffer.Options options) { + return new GifSniffer(file, options); + } + + public override PhotoMetadata create_metadata() { + return new PhotoMetadata(); + } +} + +} diff --git a/src/photos/JfifSupport.c b/src/photos/JfifSupport.c deleted file mode 100644 index e4e9217..0000000 --- a/src/photos/JfifSupport.c +++ /dev/null @@ -1,2250 +0,0 @@ -/* JfifSupport.c generated by valac 0.40.4, the Vala compiler - * generated from JfifSupport.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PHOTO_FILE_FORMAT_DRIVER (photo_file_format_driver_get_type ()) -#define PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver)) -#define PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass)) -#define IS_PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER)) -#define IS_PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER)) -#define PHOTO_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass)) - -typedef struct _PhotoFileFormatDriver PhotoFileFormatDriver; -typedef struct _PhotoFileFormatDriverClass PhotoFileFormatDriverClass; -typedef struct _PhotoFileFormatDriverPrivate PhotoFileFormatDriverPrivate; - -#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ()) -#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties)) -#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) - -typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties; -typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass; - -#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ()) -#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)) -#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) -#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER)) -#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER)) -#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) - -typedef struct _PhotoFileAdapter PhotoFileAdapter; -typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass; - -#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ()) -#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader)) -#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) -#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER)) -#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER)) -#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) - -typedef struct _PhotoFileReader PhotoFileReader; -typedef struct _PhotoFileReaderClass PhotoFileReaderClass; - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; - -#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ()) -#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter)) -#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) -#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER)) -#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER)) -#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) - -typedef struct _PhotoFileWriter PhotoFileWriter; -typedef struct _PhotoFileWriterClass PhotoFileWriterClass; - -#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ()) -#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter)) -#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass)) -#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER)) -#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER)) -#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass)) - -typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter; -typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass; - -#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ()) - -#define TYPE_PHOTO_FILE_SNIFFER (photo_file_sniffer_get_type ()) -#define PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)) -#define PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass)) -#define IS_PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_SNIFFER)) -#define IS_PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_SNIFFER)) -#define PHOTO_FILE_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass)) - -typedef struct _PhotoFileSniffer PhotoFileSniffer; -typedef struct _PhotoFileSnifferClass PhotoFileSnifferClass; - -#define TYPE_JFIF_FILE_FORMAT_DRIVER (jfif_file_format_driver_get_type ()) -#define JFIF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver)) -#define JFIF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriverClass)) -#define IS_JFIF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_JFIF_FILE_FORMAT_DRIVER)) -#define IS_JFIF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_JFIF_FILE_FORMAT_DRIVER)) -#define JFIF_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriverClass)) - -typedef struct _JfifFileFormatDriver JfifFileFormatDriver; -typedef struct _JfifFileFormatDriverClass JfifFileFormatDriverClass; -typedef struct _JfifFileFormatDriverPrivate JfifFileFormatDriverPrivate; -#define _photo_file_format_driver_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_driver_unref (var), NULL))) - -#define TYPE_JFIF_FILE_FORMAT_PROPERTIES (jfif_file_format_properties_get_type ()) -#define JFIF_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties)) -#define JFIF_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatPropertiesClass)) -#define IS_JFIF_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_JFIF_FILE_FORMAT_PROPERTIES)) -#define IS_JFIF_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_JFIF_FILE_FORMAT_PROPERTIES)) -#define JFIF_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatPropertiesClass)) - -typedef struct _JfifFileFormatProperties JfifFileFormatProperties; -typedef struct _JfifFileFormatPropertiesClass JfifFileFormatPropertiesClass; - -#define TYPE_GDK_READER (gdk_reader_get_type ()) -#define GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_READER, GdkReader)) -#define GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_READER, GdkReaderClass)) -#define IS_GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_READER)) -#define IS_GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_READER)) -#define GDK_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_READER, GdkReaderClass)) - -typedef struct _GdkReader GdkReader; -typedef struct _GdkReaderClass GdkReaderClass; - -#define TYPE_JFIF_READER (jfif_reader_get_type ()) -#define JFIF_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_JFIF_READER, JfifReader)) -#define JFIF_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_JFIF_READER, JfifReaderClass)) -#define IS_JFIF_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_JFIF_READER)) -#define IS_JFIF_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_JFIF_READER)) -#define JFIF_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_JFIF_READER, JfifReaderClass)) - -typedef struct _JfifReader JfifReader; -typedef struct _JfifReaderClass JfifReaderClass; - -#define TYPE_JFIF_WRITER (jfif_writer_get_type ()) -#define JFIF_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_JFIF_WRITER, JfifWriter)) -#define JFIF_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_JFIF_WRITER, JfifWriterClass)) -#define IS_JFIF_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_JFIF_WRITER)) -#define IS_JFIF_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_JFIF_WRITER)) -#define JFIF_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_JFIF_WRITER, JfifWriterClass)) - -typedef struct _JfifWriter JfifWriter; -typedef struct _JfifWriterClass JfifWriterClass; - -#define TYPE_JFIF_METADATA_WRITER (jfif_metadata_writer_get_type ()) -#define JFIF_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_JFIF_METADATA_WRITER, JfifMetadataWriter)) -#define JFIF_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_JFIF_METADATA_WRITER, JfifMetadataWriterClass)) -#define IS_JFIF_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_JFIF_METADATA_WRITER)) -#define IS_JFIF_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_JFIF_METADATA_WRITER)) -#define JFIF_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_JFIF_METADATA_WRITER, JfifMetadataWriterClass)) - -typedef struct _JfifMetadataWriter JfifMetadataWriter; -typedef struct _JfifMetadataWriterClass JfifMetadataWriterClass; - -#define TYPE_GDK_SNIFFER (gdk_sniffer_get_type ()) -#define GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_SNIFFER, GdkSniffer)) -#define GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_SNIFFER, GdkSnifferClass)) -#define IS_GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_SNIFFER)) -#define IS_GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_SNIFFER)) -#define GDK_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_SNIFFER, GdkSnifferClass)) - -typedef struct _GdkSniffer GdkSniffer; -typedef struct _GdkSnifferClass GdkSnifferClass; - -#define TYPE_JFIF_SNIFFER (jfif_sniffer_get_type ()) -#define JFIF_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_JFIF_SNIFFER, JfifSniffer)) -#define JFIF_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_JFIF_SNIFFER, JfifSnifferClass)) -#define IS_JFIF_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_JFIF_SNIFFER)) -#define IS_JFIF_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_JFIF_SNIFFER)) -#define JFIF_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_JFIF_SNIFFER, JfifSnifferClass)) - -typedef struct _JfifSniffer JfifSniffer; -typedef struct _JfifSnifferClass JfifSnifferClass; -typedef struct _PhotoFileFormatPropertiesPrivate PhotoFileFormatPropertiesPrivate; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_PHOTO_FILE_FORMAT_FLAGS (photo_file_format_flags_get_type ()) -typedef struct _JfifFileFormatPropertiesPrivate JfifFileFormatPropertiesPrivate; -#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL))) -typedef struct _PhotoFileSnifferPrivate PhotoFileSnifferPrivate; - -#define TYPE_DETECTED_PHOTO_INFORMATION (detected_photo_information_get_type ()) -#define DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation)) -#define DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass)) -#define IS_DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DETECTED_PHOTO_INFORMATION)) -#define IS_DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DETECTED_PHOTO_INFORMATION)) -#define DETECTED_PHOTO_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass)) - -typedef struct _DetectedPhotoInformation DetectedPhotoInformation; -typedef struct _DetectedPhotoInformationClass DetectedPhotoInformationClass; -typedef struct _GdkSnifferPrivate GdkSnifferPrivate; -typedef struct _JfifSnifferPrivate JfifSnifferPrivate; -#define _detected_photo_information_unref0(var) ((var == NULL) ? NULL : (var = (detected_photo_information_unref (var), NULL))) -typedef struct _DetectedPhotoInformationPrivate DetectedPhotoInformationPrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -typedef struct _PhotoFileAdapterPrivate PhotoFileAdapterPrivate; -typedef struct _PhotoFileReaderPrivate PhotoFileReaderPrivate; -typedef struct _GdkReaderPrivate GdkReaderPrivate; -typedef struct _JfifReaderPrivate JfifReaderPrivate; -typedef struct _PhotoFileWriterPrivate PhotoFileWriterPrivate; - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) -typedef struct _JfifWriterPrivate JfifWriterPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _PhotoFileMetadataWriterPrivate PhotoFileMetadataWriterPrivate; -typedef struct _JfifMetadataWriterPrivate JfifMetadataWriterPrivate; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define JPEG_TYPE_MARKER (jpeg_marker_get_type ()) - -typedef enum { - PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000, - PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001 -} PhotoFileSnifferOptions; - -struct _PhotoFileFormatDriver { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileFormatDriverPrivate * priv; -}; - -struct _PhotoFileFormatDriverClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileFormatDriver *self); - PhotoFileFormatProperties* (*get_properties) (PhotoFileFormatDriver* self); - PhotoFileReader* (*create_reader) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoMetadata* (*create_metadata) (PhotoFileFormatDriver* self); - gboolean (*can_write_image) (PhotoFileFormatDriver* self); - gboolean (*can_write_metadata) (PhotoFileFormatDriver* self); - PhotoFileWriter* (*create_writer) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoFileMetadataWriter* (*create_metadata_writer) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoFileSniffer* (*create_sniffer) (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options); -}; - -struct _JfifFileFormatDriver { - PhotoFileFormatDriver parent_instance; - JfifFileFormatDriverPrivate * priv; -}; - -struct _JfifFileFormatDriverClass { - PhotoFileFormatDriverClass parent_class; -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef enum { - PHOTO_FILE_FORMAT_FLAGS_NONE = 0x00000000 -} PhotoFileFormatFlags; - -struct _PhotoFileFormatProperties { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileFormatPropertiesPrivate * priv; -}; - -struct _PhotoFileFormatPropertiesClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileFormatProperties *self); - PhotoFileFormat (*get_file_format) (PhotoFileFormatProperties* self); - PhotoFileFormatFlags (*get_flags) (PhotoFileFormatProperties* self); - gboolean (*is_recognized_extension) (PhotoFileFormatProperties* self, const gchar* ext); - gchar* (*get_default_extension) (PhotoFileFormatProperties* self); - gchar** (*get_known_extensions) (PhotoFileFormatProperties* self, int* result_length1); - gchar* (*get_default_mime_type) (PhotoFileFormatProperties* self); - gchar** (*get_mime_types) (PhotoFileFormatProperties* self, int* result_length1); - gchar* (*get_user_visible_name) (PhotoFileFormatProperties* self); -}; - -struct _JfifFileFormatProperties { - PhotoFileFormatProperties parent_instance; - JfifFileFormatPropertiesPrivate * priv; -}; - -struct _JfifFileFormatPropertiesClass { - PhotoFileFormatPropertiesClass parent_class; -}; - -struct _PhotoFileSniffer { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileSnifferPrivate * priv; - GFile* file; - PhotoFileSnifferOptions options; - gboolean calc_md5; -}; - -struct _PhotoFileSnifferClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileSniffer *self); - DetectedPhotoInformation* (*sniff) (PhotoFileSniffer* self, gboolean* is_corrupted, GError** error); -}; - -struct _GdkSniffer { - PhotoFileSniffer parent_instance; - GdkSnifferPrivate * priv; -}; - -struct _GdkSnifferClass { - PhotoFileSnifferClass parent_class; -}; - -struct _JfifSniffer { - GdkSniffer parent_instance; - JfifSnifferPrivate * priv; -}; - -struct _JfifSnifferClass { - GdkSnifferClass parent_class; -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _DetectedPhotoInformation { - GTypeInstance parent_instance; - volatile int ref_count; - DetectedPhotoInformationPrivate * priv; - PhotoFileFormat file_format; - PhotoMetadata* metadata; - gchar* md5; - gchar* exif_md5; - gchar* thumbnail_md5; - gchar* format_name; - Dimensions image_dim; - GdkColorspace colorspace; - gint channels; - gint bits_per_channel; -}; - -struct _DetectedPhotoInformationClass { - GTypeClass parent_class; - void (*finalize) (DetectedPhotoInformation *self); -}; - -struct _PhotoFileAdapter { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileAdapterPrivate * priv; -}; - -struct _PhotoFileAdapterClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileAdapter *self); -}; - -struct _PhotoFileReader { - PhotoFileAdapter parent_instance; - PhotoFileReaderPrivate * priv; -}; - -struct _PhotoFileReaderClass { - PhotoFileAdapterClass parent_class; - PhotoMetadata* (*read_metadata) (PhotoFileReader* self, GError** error); - GdkPixbuf* (*unscaled_read) (PhotoFileReader* self, GError** error); - GdkPixbuf* (*scaled_read) (PhotoFileReader* self, Dimensions* full, Dimensions* scaled, GError** error); -}; - -struct _GdkReader { - PhotoFileReader parent_instance; - GdkReaderPrivate * priv; -}; - -struct _GdkReaderClass { - PhotoFileReaderClass parent_class; -}; - -struct _JfifReader { - GdkReader parent_instance; - JfifReaderPrivate * priv; -}; - -struct _JfifReaderClass { - GdkReaderClass parent_class; -}; - -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -struct _PhotoFileWriter { - PhotoFileAdapter parent_instance; - PhotoFileWriterPrivate * priv; -}; - -struct _PhotoFileWriterClass { - PhotoFileAdapterClass parent_class; - void (*write) (PhotoFileWriter* self, GdkPixbuf* pixbuf, JpegQuality quality, GError** error); -}; - -struct _JfifWriter { - PhotoFileWriter parent_instance; - JfifWriterPrivate * priv; -}; - -struct _JfifWriterClass { - PhotoFileWriterClass parent_class; -}; - -struct _PhotoFileMetadataWriter { - PhotoFileAdapter parent_instance; - PhotoFileMetadataWriterPrivate * priv; -}; - -struct _PhotoFileMetadataWriterClass { - PhotoFileAdapterClass parent_class; - void (*write_metadata) (PhotoFileMetadataWriter* self, PhotoMetadata* metadata, GError** error); -}; - -struct _JfifMetadataWriter { - PhotoFileMetadataWriter parent_instance; - JfifMetadataWriterPrivate * priv; -}; - -struct _JfifMetadataWriterClass { - PhotoFileMetadataWriterClass parent_class; -}; - -typedef enum { - JPEG_MARKER_INVALID = 0x00, - JPEG_MARKER_SOI = 0xD8, - JPEG_MARKER_EOI = 0xD9, - JPEG_MARKER_APP0 = 0xE0, - JPEG_MARKER_APP1 = 0xE1 -} JpegMarker; - - -static gpointer jfif_file_format_driver_parent_class = NULL; -static JfifFileFormatDriver* jfif_file_format_driver_instance; -static JfifFileFormatDriver* jfif_file_format_driver_instance = NULL; -static gpointer jfif_file_format_properties_parent_class = NULL; -static gchar** jfif_file_format_properties_KNOWN_EXTENSIONS; -static gint jfif_file_format_properties_KNOWN_EXTENSIONS_length1; -static gchar** jfif_file_format_properties_KNOWN_EXTENSIONS = NULL; -static gint jfif_file_format_properties_KNOWN_EXTENSIONS_length1 = 0; -static gint _jfif_file_format_properties_KNOWN_EXTENSIONS_size_ = 0; -static gchar** jfif_file_format_properties_KNOWN_MIME_TYPES; -static gint jfif_file_format_properties_KNOWN_MIME_TYPES_length1; -static gchar** jfif_file_format_properties_KNOWN_MIME_TYPES = NULL; -static gint jfif_file_format_properties_KNOWN_MIME_TYPES_length1 = 0; -static gint _jfif_file_format_properties_KNOWN_MIME_TYPES_size_ = 0; -static JfifFileFormatProperties* jfif_file_format_properties_instance; -static JfifFileFormatProperties* jfif_file_format_properties_instance = NULL; -static gpointer jfif_sniffer_parent_class = NULL; -static gpointer jfif_reader_parent_class = NULL; -static gpointer jfif_writer_parent_class = NULL; -static gpointer jfif_metadata_writer_parent_class = NULL; - -gpointer photo_file_format_driver_ref (gpointer instance); -void photo_file_format_driver_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_driver (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_format_driver (GValue* value, - gpointer v_object); -void value_take_photo_file_format_driver (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_format_driver (const GValue* value); -GType photo_file_format_driver_get_type (void) G_GNUC_CONST; -gpointer photo_file_format_properties_ref (gpointer instance); -void photo_file_format_properties_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_properties (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_format_properties (GValue* value, - gpointer v_object); -void value_take_photo_file_format_properties (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_format_properties (const GValue* value); -GType photo_file_format_properties_get_type (void) G_GNUC_CONST; -gpointer photo_file_adapter_ref (gpointer instance); -void photo_file_adapter_unref (gpointer instance); -GParamSpec* param_spec_photo_file_adapter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_adapter (GValue* value, - gpointer v_object); -void value_take_photo_file_adapter (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_adapter (const GValue* value); -GType photo_file_adapter_get_type (void) G_GNUC_CONST; -GType photo_file_reader_get_type (void) G_GNUC_CONST; -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -GType photo_file_writer_get_type (void) G_GNUC_CONST; -GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST; -GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST; -gpointer photo_file_sniffer_ref (gpointer instance); -void photo_file_sniffer_unref (gpointer instance); -GParamSpec* param_spec_photo_file_sniffer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_sniffer (GValue* value, - gpointer v_object); -void value_take_photo_file_sniffer (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_sniffer (const GValue* value); -GType photo_file_sniffer_get_type (void) G_GNUC_CONST; -GType jfif_file_format_driver_get_type (void) G_GNUC_CONST; -void jfif_file_format_driver_init (void); -JfifFileFormatDriver* jfif_file_format_driver_new (void); -JfifFileFormatDriver* jfif_file_format_driver_construct (GType object_type); -void jfif_file_format_properties_init (void); -JfifFileFormatDriver* jfif_file_format_driver_get_instance (void); -static PhotoFileFormatProperties* jfif_file_format_driver_real_get_properties (PhotoFileFormatDriver* base); -GType jfif_file_format_properties_get_type (void) G_GNUC_CONST; -JfifFileFormatProperties* jfif_file_format_properties_get_instance (void); -static PhotoFileReader* jfif_file_format_driver_real_create_reader (PhotoFileFormatDriver* base, - const gchar* filepath); -JfifReader* jfif_reader_new (const gchar* filepath); -JfifReader* jfif_reader_construct (GType object_type, - const gchar* filepath); -GType gdk_reader_get_type (void) G_GNUC_CONST; -GType jfif_reader_get_type (void) G_GNUC_CONST; -static PhotoMetadata* jfif_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base); -PhotoMetadata* photo_metadata_new (void); -PhotoMetadata* photo_metadata_construct (GType object_type); -static gboolean jfif_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base); -static gboolean jfif_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base); -static PhotoFileWriter* jfif_file_format_driver_real_create_writer (PhotoFileFormatDriver* base, - const gchar* filepath); -JfifWriter* jfif_writer_new (const gchar* filepath); -JfifWriter* jfif_writer_construct (GType object_type, - const gchar* filepath); -GType jfif_writer_get_type (void) G_GNUC_CONST; -static PhotoFileMetadataWriter* jfif_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base, - const gchar* filepath); -JfifMetadataWriter* jfif_metadata_writer_new (const gchar* filepath); -JfifMetadataWriter* jfif_metadata_writer_construct (GType object_type, - const gchar* filepath); -GType jfif_metadata_writer_get_type (void) G_GNUC_CONST; -static PhotoFileSniffer* jfif_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base, - GFile* file, - PhotoFileSnifferOptions options); -JfifSniffer* jfif_sniffer_new (GFile* file, - PhotoFileSnifferOptions options); -JfifSniffer* jfif_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options); -GType gdk_sniffer_get_type (void) G_GNUC_CONST; -GType jfif_sniffer_get_type (void) G_GNUC_CONST; -PhotoFileFormatDriver* photo_file_format_driver_construct (GType object_type); -static void jfif_file_format_driver_finalize (PhotoFileFormatDriver * obj); -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType photo_file_format_flags_get_type (void) G_GNUC_CONST; -JfifFileFormatProperties* jfif_file_format_properties_new (void); -JfifFileFormatProperties* jfif_file_format_properties_construct (GType object_type); -static PhotoFileFormat jfif_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base); -static PhotoFileFormatFlags jfif_file_format_properties_real_get_flags (PhotoFileFormatProperties* base); -static gchar* jfif_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base); -static gchar* jfif_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base); -static gchar** jfif_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base, - int* result_length1); -static gchar** _vala_array_dup6 (gchar** self, - int length); -static gchar* jfif_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base); -static gchar** jfif_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base, - int* result_length1); -static gchar** _vala_array_dup7 (gchar** self, - int length); -PhotoFileFormatProperties* photo_file_format_properties_construct (GType object_type); -static void jfif_file_format_properties_finalize (PhotoFileFormatProperties * obj); -gpointer detected_photo_information_ref (gpointer instance); -void detected_photo_information_unref (gpointer instance); -GParamSpec* param_spec_detected_photo_information (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_detected_photo_information (GValue* value, - gpointer v_object); -void value_take_detected_photo_information (GValue* value, - gpointer v_object); -gpointer value_get_detected_photo_information (const GValue* value); -GType detected_photo_information_get_type (void) G_GNUC_CONST; -GdkSniffer* gdk_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options); -static DetectedPhotoInformation* jfif_sniffer_real_sniff (PhotoFileSniffer* base, - gboolean* is_corrupted, - GError** error); -gboolean jpeg_is_jpeg (GFile* file, - GError** error); -DetectedPhotoInformation* photo_file_sniffer_sniff (PhotoFileSniffer* self, - gboolean* is_corrupted, - GError** error); -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GdkReader* gdk_reader_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -GType jpeg_quality_get_type (void) G_GNUC_CONST; -PhotoFileWriter* photo_file_writer_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -static void jfif_writer_real_write (PhotoFileWriter* base, - GdkPixbuf* pixbuf, - JpegQuality quality, - GError** error); -gchar* photo_file_adapter_get_filepath (PhotoFileAdapter* self); -gchar* jpeg_quality_get_pct_text (JpegQuality self); -PhotoFileMetadataWriter* photo_file_metadata_writer_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -static void jfif_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* base, - PhotoMetadata* metadata, - GError** error); -void photo_metadata_write_to_file (PhotoMetadata* self, - GFile* file, - GError** error); -GFile* photo_file_adapter_get_file (PhotoFileAdapter* self); -#define JPEG_MARKER_PREFIX ((guint8) 0xFF) -GType jpeg_marker_get_type (void) G_GNUC_CONST; -guint8 jpeg_marker_get_byte (JpegMarker self); -gint jpeg_quality_get_pct (JpegQuality self); -JpegQuality* jpeg_quality_get_all (int* result_length1); -gchar* jpeg_quality_to_string (JpegQuality self); -gboolean jpeg_is_jpeg_stream (GInputStream* ins, - GError** error); -gint jpeg_read_marker (GInputStream* fins, - JpegMarker* marker, - GError** error); -gboolean jpeg_is_jpeg_bytes (GBytes* bytes, - GError** error); - - -void -jfif_file_format_driver_init (void) -{ - JfifFileFormatDriver* _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = jfif_file_format_driver_new (); -#line 11 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _photo_file_format_driver_unref0 (jfif_file_format_driver_instance); -#line 11 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - jfif_file_format_driver_instance = _tmp0_; -#line 12 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - jfif_file_format_properties_init (); -#line 695 "JfifSupport.c" -} - - -static gpointer -_photo_file_format_driver_ref0 (gpointer self) -{ -#line 16 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return self ? photo_file_format_driver_ref (self) : NULL; -#line 704 "JfifSupport.c" -} - - -JfifFileFormatDriver* -jfif_file_format_driver_get_instance (void) -{ - JfifFileFormatDriver* result = NULL; - JfifFileFormatDriver* _tmp0_; - JfifFileFormatDriver* _tmp1_; -#line 16 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = jfif_file_format_driver_instance; -#line 16 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1_ = _photo_file_format_driver_ref0 (_tmp0_); -#line 16 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp1_; -#line 16 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 722 "JfifSupport.c" -} - - -static PhotoFileFormatProperties* -jfif_file_format_driver_real_get_properties (PhotoFileFormatDriver* base) -{ - JfifFileFormatDriver * self; - PhotoFileFormatProperties* result = NULL; - JfifFileFormatProperties* _tmp0_; -#line 19 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver); -#line 20 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = jfif_file_format_properties_get_instance (); -#line 20 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties); -#line 20 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 740 "JfifSupport.c" -} - - -static PhotoFileReader* -jfif_file_format_driver_real_create_reader (PhotoFileFormatDriver* base, - const gchar* filepath) -{ - JfifFileFormatDriver * self; - PhotoFileReader* result = NULL; - JfifReader* _tmp0_; -#line 23 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver); -#line 23 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 24 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = jfif_reader_new (filepath); -#line 24 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_READER, PhotoFileReader); -#line 24 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 761 "JfifSupport.c" -} - - -static PhotoMetadata* -jfif_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base) -{ - JfifFileFormatDriver * self; - PhotoMetadata* result = NULL; - PhotoMetadata* _tmp0_; -#line 27 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver); -#line 28 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = photo_metadata_new (); -#line 28 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp0_; -#line 28 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 779 "JfifSupport.c" -} - - -static gboolean -jfif_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base) -{ - JfifFileFormatDriver * self; - gboolean result = FALSE; -#line 31 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver); -#line 32 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = TRUE; -#line 32 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 794 "JfifSupport.c" -} - - -static gboolean -jfif_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base) -{ - JfifFileFormatDriver * self; - gboolean result = FALSE; -#line 35 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver); -#line 36 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = TRUE; -#line 36 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 809 "JfifSupport.c" -} - - -static PhotoFileWriter* -jfif_file_format_driver_real_create_writer (PhotoFileFormatDriver* base, - const gchar* filepath) -{ - JfifFileFormatDriver * self; - PhotoFileWriter* result = NULL; - JfifWriter* _tmp0_; -#line 39 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver); -#line 39 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 40 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = jfif_writer_new (filepath); -#line 40 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_WRITER, PhotoFileWriter); -#line 40 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 830 "JfifSupport.c" -} - - -static PhotoFileMetadataWriter* -jfif_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base, - const gchar* filepath) -{ - JfifFileFormatDriver * self; - PhotoFileMetadataWriter* result = NULL; - JfifMetadataWriter* _tmp0_; -#line 43 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver); -#line 43 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 44 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = jfif_metadata_writer_new (filepath); -#line 44 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter); -#line 44 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 851 "JfifSupport.c" -} - - -static PhotoFileSniffer* -jfif_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base, - GFile* file, - PhotoFileSnifferOptions options) -{ - JfifFileFormatDriver * self; - PhotoFileSniffer* result = NULL; - JfifSniffer* _tmp0_; -#line 47 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver); -#line 47 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 48 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = jfif_sniffer_new (file, options); -#line 48 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer); -#line 48 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 873 "JfifSupport.c" -} - - -JfifFileFormatDriver* -jfif_file_format_driver_construct (GType object_type) -{ - JfifFileFormatDriver* self = NULL; -#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = (JfifFileFormatDriver*) photo_file_format_driver_construct (object_type); -#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return self; -#line 885 "JfifSupport.c" -} - - -JfifFileFormatDriver* -jfif_file_format_driver_new (void) -{ -#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return jfif_file_format_driver_construct (TYPE_JFIF_FILE_FORMAT_DRIVER); -#line 894 "JfifSupport.c" -} - - -static void -jfif_file_format_driver_class_init (JfifFileFormatDriverClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - jfif_file_format_driver_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->finalize = jfif_file_format_driver_finalize; -#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->get_properties = (PhotoFileFormatProperties* (*) (PhotoFileFormatDriver *)) jfif_file_format_driver_real_get_properties; -#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_reader = (PhotoFileReader* (*) (PhotoFileFormatDriver *, const gchar*)) jfif_file_format_driver_real_create_reader; -#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_metadata = (PhotoMetadata* (*) (PhotoFileFormatDriver *)) jfif_file_format_driver_real_create_metadata; -#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->can_write_image = (gboolean (*) (PhotoFileFormatDriver *)) jfif_file_format_driver_real_can_write_image; -#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->can_write_metadata = (gboolean (*) (PhotoFileFormatDriver *)) jfif_file_format_driver_real_can_write_metadata; -#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_writer = (PhotoFileWriter* (*) (PhotoFileFormatDriver *, const gchar*)) jfif_file_format_driver_real_create_writer; -#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_metadata_writer = (PhotoFileMetadataWriter* (*) (PhotoFileFormatDriver *, const gchar*)) jfif_file_format_driver_real_create_metadata_writer; -#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_sniffer = (PhotoFileSniffer* (*) (PhotoFileFormatDriver *, GFile*, PhotoFileSnifferOptions)) jfif_file_format_driver_real_create_sniffer; -#line 921 "JfifSupport.c" -} - - -static void -jfif_file_format_driver_instance_init (JfifFileFormatDriver * self) -{ -} - - -static void -jfif_file_format_driver_finalize (PhotoFileFormatDriver * obj) -{ - JfifFileFormatDriver * self; -#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver); -#line 7 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - PHOTO_FILE_FORMAT_DRIVER_CLASS (jfif_file_format_driver_parent_class)->finalize (obj); -#line 939 "JfifSupport.c" -} - - -GType -jfif_file_format_driver_get_type (void) -{ - static volatile gsize jfif_file_format_driver_type_id__volatile = 0; - if (g_once_init_enter (&jfif_file_format_driver_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (JfifFileFormatDriverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) jfif_file_format_driver_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (JfifFileFormatDriver), 0, (GInstanceInitFunc) jfif_file_format_driver_instance_init, NULL }; - GType jfif_file_format_driver_type_id; - jfif_file_format_driver_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_DRIVER, "JfifFileFormatDriver", &g_define_type_info, 0); - g_once_init_leave (&jfif_file_format_driver_type_id__volatile, jfif_file_format_driver_type_id); - } - return jfif_file_format_driver_type_id__volatile; -} - - -void -jfif_file_format_properties_init (void) -{ - JfifFileFormatProperties* _tmp0_; -#line 64 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = jfif_file_format_properties_new (); -#line 64 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _photo_file_format_properties_unref0 (jfif_file_format_properties_instance); -#line 64 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - jfif_file_format_properties_instance = _tmp0_; -#line 967 "JfifSupport.c" -} - - -static gpointer -_photo_file_format_properties_ref0 (gpointer self) -{ -#line 68 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return self ? photo_file_format_properties_ref (self) : NULL; -#line 976 "JfifSupport.c" -} - - -JfifFileFormatProperties* -jfif_file_format_properties_get_instance (void) -{ - JfifFileFormatProperties* result = NULL; - JfifFileFormatProperties* _tmp0_; - JfifFileFormatProperties* _tmp1_; -#line 68 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = jfif_file_format_properties_instance; -#line 68 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1_ = _photo_file_format_properties_ref0 (_tmp0_); -#line 68 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp1_; -#line 68 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 994 "JfifSupport.c" -} - - -static PhotoFileFormat -jfif_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base) -{ - JfifFileFormatProperties * self; - PhotoFileFormat result = 0; -#line 71 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties); -#line 72 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = PHOTO_FILE_FORMAT_JFIF; -#line 72 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1009 "JfifSupport.c" -} - - -static PhotoFileFormatFlags -jfif_file_format_properties_real_get_flags (PhotoFileFormatProperties* base) -{ - JfifFileFormatProperties * self; - PhotoFileFormatFlags result = 0; -#line 75 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties); -#line 76 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = PHOTO_FILE_FORMAT_FLAGS_NONE; -#line 76 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1024 "JfifSupport.c" -} - - -static gchar* -jfif_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base) -{ - JfifFileFormatProperties * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 79 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties); -#line 80 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = g_strdup ("jpg"); -#line 80 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp0_; -#line 80 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1042 "JfifSupport.c" -} - - -static gchar* -jfif_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base) -{ - JfifFileFormatProperties * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 83 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties); -#line 84 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = g_strdup (_ ("JPEG")); -#line 84 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp0_; -#line 84 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1060 "JfifSupport.c" -} - - -static gchar** -_vala_array_dup6 (gchar** self, - int length) -{ - gchar** result; - int i; -#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = g_new0 (gchar*, length + 1); -#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - for (i = 0; i < length; i++) { -#line 1074 "JfifSupport.c" - gchar* _tmp0_; -#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = g_strdup (self[i]); -#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result[i] = _tmp0_; -#line 1080 "JfifSupport.c" - } -#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1084 "JfifSupport.c" -} - - -static gchar** -jfif_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base, - int* result_length1) -{ - JfifFileFormatProperties * self; - gchar** result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - gchar** _tmp1_; - gint _tmp1__length1; - gchar** _tmp2_; - gint _tmp2__length1; -#line 87 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties); -#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = jfif_file_format_properties_KNOWN_EXTENSIONS; -#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0__length1 = jfif_file_format_properties_KNOWN_EXTENSIONS_length1; -#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup6 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_); -#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1__length1 = _tmp0__length1; -#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp2_ = _tmp1_; -#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp2__length1 = _tmp1__length1; -#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (result_length1) { -#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - *result_length1 = _tmp2__length1; -#line 1118 "JfifSupport.c" - } -#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp2_; -#line 88 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1124 "JfifSupport.c" -} - - -static gchar* -jfif_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base) -{ - JfifFileFormatProperties * self; - gchar* result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 91 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties); -#line 92 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = jfif_file_format_properties_KNOWN_MIME_TYPES; -#line 92 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0__length1 = jfif_file_format_properties_KNOWN_MIME_TYPES_length1; -#line 92 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1_ = _tmp0_[0]; -#line 92 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 92 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp2_; -#line 92 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1151 "JfifSupport.c" -} - - -static gchar** -_vala_array_dup7 (gchar** self, - int length) -{ - gchar** result; - int i; -#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = g_new0 (gchar*, length + 1); -#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - for (i = 0; i < length; i++) { -#line 1165 "JfifSupport.c" - gchar* _tmp0_; -#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = g_strdup (self[i]); -#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result[i] = _tmp0_; -#line 1171 "JfifSupport.c" - } -#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1175 "JfifSupport.c" -} - - -static gchar** -jfif_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base, - int* result_length1) -{ - JfifFileFormatProperties * self; - gchar** result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - gchar** _tmp1_; - gint _tmp1__length1; - gchar** _tmp2_; - gint _tmp2__length1; -#line 95 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties); -#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = jfif_file_format_properties_KNOWN_MIME_TYPES; -#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0__length1 = jfif_file_format_properties_KNOWN_MIME_TYPES_length1; -#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup7 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_); -#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1__length1 = _tmp0__length1; -#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp2_ = _tmp1_; -#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp2__length1 = _tmp1__length1; -#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (result_length1) { -#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - *result_length1 = _tmp2__length1; -#line 1209 "JfifSupport.c" - } -#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp2_; -#line 96 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1215 "JfifSupport.c" -} - - -JfifFileFormatProperties* -jfif_file_format_properties_construct (GType object_type) -{ - JfifFileFormatProperties* self = NULL; -#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = (JfifFileFormatProperties*) photo_file_format_properties_construct (object_type); -#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return self; -#line 1227 "JfifSupport.c" -} - - -JfifFileFormatProperties* -jfif_file_format_properties_new (void) -{ -#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return jfif_file_format_properties_construct (TYPE_JFIF_FILE_FORMAT_PROPERTIES); -#line 1236 "JfifSupport.c" -} - - -static void -jfif_file_format_properties_class_init (JfifFileFormatPropertiesClass * klass) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar** _tmp4_; - gchar* _tmp5_; - gchar** _tmp6_; -#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - jfif_file_format_properties_parent_class = g_type_class_peek_parent (klass); -#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->finalize = jfif_file_format_properties_finalize; -#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_file_format = (PhotoFileFormat (*) (PhotoFileFormatProperties *)) jfif_file_format_properties_real_get_file_format; -#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_flags = (PhotoFileFormatFlags (*) (PhotoFileFormatProperties *)) jfif_file_format_properties_real_get_flags; -#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_default_extension = (gchar* (*) (PhotoFileFormatProperties *)) jfif_file_format_properties_real_get_default_extension; -#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_user_visible_name = (gchar* (*) (PhotoFileFormatProperties *)) jfif_file_format_properties_real_get_user_visible_name; -#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_known_extensions = (gchar** (*) (PhotoFileFormatProperties *, int*)) jfif_file_format_properties_real_get_known_extensions; -#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_default_mime_type = (gchar* (*) (PhotoFileFormatProperties *)) jfif_file_format_properties_real_get_default_mime_type; -#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_mime_types = (gchar** (*) (PhotoFileFormatProperties *, int*)) jfif_file_format_properties_real_get_mime_types; -#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = g_strdup ("jpg"); -#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1_ = g_strdup ("jpeg"); -#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp2_ = g_strdup ("jpe"); -#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp3_ = g_strdup ("thm"); -#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp4_ = g_new0 (gchar*, 4 + 1); -#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp4_[0] = _tmp0_; -#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp4_[1] = _tmp1_; -#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp4_[2] = _tmp2_; -#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp4_[3] = _tmp3_; -#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - jfif_file_format_properties_KNOWN_EXTENSIONS = _tmp4_; -#line 53 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - jfif_file_format_properties_KNOWN_EXTENSIONS_length1 = 4; -#line 57 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp5_ = g_strdup ("image/jpeg"); -#line 57 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp6_ = g_new0 (gchar*, 1 + 1); -#line 57 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp6_[0] = _tmp5_; -#line 57 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - jfif_file_format_properties_KNOWN_MIME_TYPES = _tmp6_; -#line 57 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - jfif_file_format_properties_KNOWN_MIME_TYPES_length1 = 1; -#line 1300 "JfifSupport.c" -} - - -static void -jfif_file_format_properties_instance_init (JfifFileFormatProperties * self) -{ -} - - -static void -jfif_file_format_properties_finalize (PhotoFileFormatProperties * obj) -{ - JfifFileFormatProperties * self; -#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_JFIF_FILE_FORMAT_PROPERTIES, JfifFileFormatProperties); -#line 52 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - PHOTO_FILE_FORMAT_PROPERTIES_CLASS (jfif_file_format_properties_parent_class)->finalize (obj); -#line 1318 "JfifSupport.c" -} - - -GType -jfif_file_format_properties_get_type (void) -{ - static volatile gsize jfif_file_format_properties_type_id__volatile = 0; - if (g_once_init_enter (&jfif_file_format_properties_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (JfifFileFormatPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) jfif_file_format_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (JfifFileFormatProperties), 0, (GInstanceInitFunc) jfif_file_format_properties_instance_init, NULL }; - GType jfif_file_format_properties_type_id; - jfif_file_format_properties_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_PROPERTIES, "JfifFileFormatProperties", &g_define_type_info, 0); - g_once_init_leave (&jfif_file_format_properties_type_id__volatile, jfif_file_format_properties_type_id); - } - return jfif_file_format_properties_type_id__volatile; -} - - -JfifSniffer* -jfif_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options) -{ - JfifSniffer* self = NULL; -#line 101 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 102 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = (JfifSniffer*) gdk_sniffer_construct (object_type, file, options); -#line 101 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return self; -#line 1348 "JfifSupport.c" -} - - -JfifSniffer* -jfif_sniffer_new (GFile* file, - PhotoFileSnifferOptions options) -{ -#line 101 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return jfif_sniffer_construct (TYPE_JFIF_SNIFFER, file, options); -#line 1358 "JfifSupport.c" -} - - -static gpointer -_detected_photo_information_ref0 (gpointer self) -{ -#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return self ? detected_photo_information_ref (self) : NULL; -#line 1367 "JfifSupport.c" -} - - -static DetectedPhotoInformation* -jfif_sniffer_real_sniff (PhotoFileSniffer* base, - gboolean* is_corrupted, - GError** error) -{ - JfifSniffer * self; - gboolean _vala_is_corrupted = FALSE; - DetectedPhotoInformation* result = NULL; - gboolean _tmp0_ = FALSE; - GFile* _tmp1_; - DetectedPhotoInformation* detected = NULL; - gboolean _tmp2_ = FALSE; - DetectedPhotoInformation* _tmp3_; - DetectedPhotoInformation* _tmp4_; - DetectedPhotoInformation* _tmp5_ = NULL; - DetectedPhotoInformation* _tmp6_; - PhotoFileFormat _tmp7_; - DetectedPhotoInformation* _tmp9_; - GError * _inner_error_ = NULL; -#line 105 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_SNIFFER, JfifSniffer); -#line 107 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _vala_is_corrupted = FALSE; -#line 109 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file; -#line 109 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = jpeg_is_jpeg (_tmp1_, &_inner_error_); -#line 109 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 109 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_propagate_error (error, _inner_error_); -#line 109 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return NULL; -#line 1404 "JfifSupport.c" - } -#line 109 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (!_tmp0_) { -#line 110 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = NULL; -#line 110 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (is_corrupted) { -#line 110 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - *is_corrupted = _vala_is_corrupted; -#line 1414 "JfifSupport.c" - } -#line 110 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1418 "JfifSupport.c" - } -#line 112 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp3_ = PHOTO_FILE_SNIFFER_CLASS (jfif_sniffer_parent_class)->sniff (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_GDK_SNIFFER, GdkSniffer), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer), &_tmp2_, &_inner_error_); -#line 112 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _vala_is_corrupted = _tmp2_; -#line 112 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - detected = _tmp3_; -#line 112 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 112 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_propagate_error (error, _inner_error_); -#line 112 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return NULL; -#line 1432 "JfifSupport.c" - } -#line 113 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp4_ = detected; -#line 113 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (_tmp4_ == NULL) { -#line 114 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = NULL; -#line 114 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _detected_photo_information_unref0 (detected); -#line 114 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (is_corrupted) { -#line 114 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - *is_corrupted = _vala_is_corrupted; -#line 1446 "JfifSupport.c" - } -#line 114 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1450 "JfifSupport.c" - } -#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp6_ = detected; -#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp7_ = _tmp6_->file_format; -#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (_tmp7_ == PHOTO_FILE_FORMAT_JFIF) { -#line 1458 "JfifSupport.c" - DetectedPhotoInformation* _tmp8_; -#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp8_ = detected; -#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp5_ = _tmp8_; -#line 1464 "JfifSupport.c" - } else { -#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp5_ = NULL; -#line 1468 "JfifSupport.c" - } -#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp9_ = _detected_photo_information_ref0 (_tmp5_); -#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp9_; -#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _detected_photo_information_unref0 (detected); -#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (is_corrupted) { -#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - *is_corrupted = _vala_is_corrupted; -#line 1480 "JfifSupport.c" - } -#line 116 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1484 "JfifSupport.c" -} - - -static void -jfif_sniffer_class_init (JfifSnifferClass * klass) -{ -#line 100 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - jfif_sniffer_parent_class = g_type_class_peek_parent (klass); -#line 100 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileSnifferClass *) klass)->sniff = (DetectedPhotoInformation* (*) (PhotoFileSniffer *, gboolean*, GError**)) jfif_sniffer_real_sniff; -#line 1495 "JfifSupport.c" -} - - -static void -jfif_sniffer_instance_init (JfifSniffer * self) -{ -} - - -GType -jfif_sniffer_get_type (void) -{ - static volatile gsize jfif_sniffer_type_id__volatile = 0; - if (g_once_init_enter (&jfif_sniffer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (JfifSnifferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) jfif_sniffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (JfifSniffer), 0, (GInstanceInitFunc) jfif_sniffer_instance_init, NULL }; - GType jfif_sniffer_type_id; - jfif_sniffer_type_id = g_type_register_static (TYPE_GDK_SNIFFER, "JfifSniffer", &g_define_type_info, 0); - g_once_init_leave (&jfif_sniffer_type_id__volatile, jfif_sniffer_type_id); - } - return jfif_sniffer_type_id__volatile; -} - - -JfifReader* -jfif_reader_construct (GType object_type, - const gchar* filepath) -{ - JfifReader* self = NULL; -#line 121 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 122 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = (JfifReader*) gdk_reader_construct (object_type, filepath, PHOTO_FILE_FORMAT_JFIF); -#line 121 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return self; -#line 1530 "JfifSupport.c" -} - - -JfifReader* -jfif_reader_new (const gchar* filepath) -{ -#line 121 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return jfif_reader_construct (TYPE_JFIF_READER, filepath); -#line 1539 "JfifSupport.c" -} - - -static void -jfif_reader_class_init (JfifReaderClass * klass) -{ -#line 120 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - jfif_reader_parent_class = g_type_class_peek_parent (klass); -#line 1548 "JfifSupport.c" -} - - -static void -jfif_reader_instance_init (JfifReader * self) -{ -} - - -GType -jfif_reader_get_type (void) -{ - static volatile gsize jfif_reader_type_id__volatile = 0; - if (g_once_init_enter (&jfif_reader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (JfifReaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) jfif_reader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (JfifReader), 0, (GInstanceInitFunc) jfif_reader_instance_init, NULL }; - GType jfif_reader_type_id; - jfif_reader_type_id = g_type_register_static (TYPE_GDK_READER, "JfifReader", &g_define_type_info, 0); - g_once_init_leave (&jfif_reader_type_id__volatile, jfif_reader_type_id); - } - return jfif_reader_type_id__volatile; -} - - -JfifWriter* -jfif_writer_construct (GType object_type, - const gchar* filepath) -{ - JfifWriter* self = NULL; -#line 127 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 128 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = (JfifWriter*) photo_file_writer_construct (object_type, filepath, PHOTO_FILE_FORMAT_JFIF); -#line 127 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return self; -#line 1583 "JfifSupport.c" -} - - -JfifWriter* -jfif_writer_new (const gchar* filepath) -{ -#line 127 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return jfif_writer_construct (TYPE_JFIF_WRITER, filepath); -#line 1592 "JfifSupport.c" -} - - -static void -jfif_writer_real_write (PhotoFileWriter* base, - GdkPixbuf* pixbuf, - JpegQuality quality, - GError** error) -{ - JfifWriter * self; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 131 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_WRITER, JfifWriter); -#line 131 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1_ = _tmp0_; -#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp2_ = jpeg_quality_get_pct_text (quality); -#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp3_ = _tmp2_; -#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - gdk_pixbuf_save (pixbuf, _tmp1_, "jpeg", &_inner_error_, "quality", _tmp3_, NULL); -#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _g_free0 (_tmp3_); -#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _g_free0 (_tmp1_); -#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_propagate_error (error, _inner_error_); -#line 132 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return; -#line 1632 "JfifSupport.c" - } -} - - -static void -jfif_writer_class_init (JfifWriterClass * klass) -{ -#line 126 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - jfif_writer_parent_class = g_type_class_peek_parent (klass); -#line 126 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileWriterClass *) klass)->write = (void (*) (PhotoFileWriter *, GdkPixbuf*, JpegQuality, GError**)) jfif_writer_real_write; -#line 1644 "JfifSupport.c" -} - - -static void -jfif_writer_instance_init (JfifWriter * self) -{ -} - - -GType -jfif_writer_get_type (void) -{ - static volatile gsize jfif_writer_type_id__volatile = 0; - if (g_once_init_enter (&jfif_writer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (JfifWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) jfif_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (JfifWriter), 0, (GInstanceInitFunc) jfif_writer_instance_init, NULL }; - GType jfif_writer_type_id; - jfif_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_WRITER, "JfifWriter", &g_define_type_info, 0); - g_once_init_leave (&jfif_writer_type_id__volatile, jfif_writer_type_id); - } - return jfif_writer_type_id__volatile; -} - - -JfifMetadataWriter* -jfif_metadata_writer_construct (GType object_type, - const gchar* filepath) -{ - JfifMetadataWriter* self = NULL; -#line 137 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 138 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = (JfifMetadataWriter*) photo_file_metadata_writer_construct (object_type, filepath, PHOTO_FILE_FORMAT_JFIF); -#line 137 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return self; -#line 1679 "JfifSupport.c" -} - - -JfifMetadataWriter* -jfif_metadata_writer_new (const gchar* filepath) -{ -#line 137 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return jfif_metadata_writer_construct (TYPE_JFIF_METADATA_WRITER, filepath); -#line 1688 "JfifSupport.c" -} - - -static void -jfif_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* base, - PhotoMetadata* metadata, - GError** error) -{ - JfifMetadataWriter * self; - GFile* _tmp0_; - GFile* _tmp1_; - GError * _inner_error_ = NULL; -#line 141 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_JFIF_METADATA_WRITER, JfifMetadataWriter); -#line 141 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_return_if_fail (IS_PHOTO_METADATA (metadata)); -#line 142 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 142 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1_ = _tmp0_; -#line 142 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - photo_metadata_write_to_file (metadata, _tmp1_, &_inner_error_); -#line 142 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _g_object_unref0 (_tmp1_); -#line 142 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 142 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_propagate_error (error, _inner_error_); -#line 142 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return; -#line 1719 "JfifSupport.c" - } -} - - -static void -jfif_metadata_writer_class_init (JfifMetadataWriterClass * klass) -{ -#line 136 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - jfif_metadata_writer_parent_class = g_type_class_peek_parent (klass); -#line 136 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - ((PhotoFileMetadataWriterClass *) klass)->write_metadata = (void (*) (PhotoFileMetadataWriter *, PhotoMetadata*, GError**)) jfif_metadata_writer_real_write_metadata; -#line 1731 "JfifSupport.c" -} - - -static void -jfif_metadata_writer_instance_init (JfifMetadataWriter * self) -{ -} - - -GType -jfif_metadata_writer_get_type (void) -{ - static volatile gsize jfif_metadata_writer_type_id__volatile = 0; - if (g_once_init_enter (&jfif_metadata_writer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (JfifMetadataWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) jfif_metadata_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (JfifMetadataWriter), 0, (GInstanceInitFunc) jfif_metadata_writer_instance_init, NULL }; - GType jfif_metadata_writer_type_id; - jfif_metadata_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_METADATA_WRITER, "JfifMetadataWriter", &g_define_type_info, 0); - g_once_init_leave (&jfif_metadata_writer_type_id__volatile, jfif_metadata_writer_type_id); - } - return jfif_metadata_writer_type_id__volatile; -} - - -guint8 -jpeg_marker_get_byte (JpegMarker self) -{ - guint8 result = 0U; -#line 160 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = (guint8) self; -#line 160 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1763 "JfifSupport.c" -} - - -GType -jpeg_marker_get_type (void) -{ - static volatile gsize jpeg_marker_type_id__volatile = 0; - if (g_once_init_enter (&jpeg_marker_type_id__volatile)) { - static const GEnumValue values[] = {{JPEG_MARKER_INVALID, "JPEG_MARKER_INVALID", "invalid"}, {JPEG_MARKER_SOI, "JPEG_MARKER_SOI", "soi"}, {JPEG_MARKER_EOI, "JPEG_MARKER_EOI", "eoi"}, {JPEG_MARKER_APP0, "JPEG_MARKER_APP0", "app0"}, {JPEG_MARKER_APP1, "JPEG_MARKER_APP1", "app1"}, {0, NULL, NULL}}; - GType jpeg_marker_type_id; - jpeg_marker_type_id = g_enum_register_static ("JpegMarker", values); - g_once_init_leave (&jpeg_marker_type_id__volatile, jpeg_marker_type_id); - } - return jpeg_marker_type_id__volatile; -} - - -gint -jpeg_quality_get_pct (JpegQuality self) -{ - gint result = 0; -#line 171 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = (gint) self; -#line 171 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1789 "JfifSupport.c" -} - - -gchar* -jpeg_quality_get_pct_text (JpegQuality self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 175 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = g_strdup_printf ("%d", (gint) self); -#line 175 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp0_; -#line 175 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1804 "JfifSupport.c" -} - - -JpegQuality* -jpeg_quality_get_all (int* result_length1) -{ - JpegQuality* result = NULL; - JpegQuality* _tmp0_; - JpegQuality* _tmp1_; - gint _tmp1__length1; -#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = g_new0 (JpegQuality, 4); -#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_[0] = JPEG_QUALITY_LOW; -#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_[1] = JPEG_QUALITY_MEDIUM; -#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_[2] = JPEG_QUALITY_HIGH; -#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_[3] = JPEG_QUALITY_MAXIMUM; -#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1_ = _tmp0_; -#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1__length1 = 4; -#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (result_length1) { -#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - *result_length1 = _tmp1__length1; -#line 1833 "JfifSupport.c" - } -#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp1_; -#line 179 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1839 "JfifSupport.c" -} - - -gchar* -jpeg_quality_to_string (JpegQuality self) -{ - gchar* result = NULL; -#line 183 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - switch (self) { -#line 183 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - case JPEG_QUALITY_LOW: -#line 1851 "JfifSupport.c" - { - gchar* _tmp0_; -#line 185 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = g_strdup_printf (_ ("Low (%d%%)"), (gint) self); -#line 185 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp0_; -#line 185 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1860 "JfifSupport.c" - } -#line 183 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - case JPEG_QUALITY_MEDIUM: -#line 1864 "JfifSupport.c" - { - gchar* _tmp1_; -#line 188 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1_ = g_strdup_printf (_ ("Medium (%d%%)"), (gint) self); -#line 188 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp1_; -#line 188 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1873 "JfifSupport.c" - } -#line 183 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - case JPEG_QUALITY_HIGH: -#line 1877 "JfifSupport.c" - { - gchar* _tmp2_; -#line 191 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp2_ = g_strdup_printf (_ ("High (%d%%)"), (gint) self); -#line 191 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp2_; -#line 191 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1886 "JfifSupport.c" - } -#line 183 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - case JPEG_QUALITY_MAXIMUM: -#line 1890 "JfifSupport.c" - { - gchar* _tmp3_; -#line 194 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp3_ = g_strdup_printf (_ ("Maximum (%d%%)"), (gint) self); -#line 194 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp3_; -#line 194 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1899 "JfifSupport.c" - } - default: -#line 183 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - break; -#line 1904 "JfifSupport.c" - } -#line 197 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_warn_if_reached (); -#line 199 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = NULL; -#line 199 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1912 "JfifSupport.c" -} - - -GType -jpeg_quality_get_type (void) -{ - static volatile gsize jpeg_quality_type_id__volatile = 0; - if (g_once_init_enter (&jpeg_quality_type_id__volatile)) { - static const GEnumValue values[] = {{JPEG_QUALITY_LOW, "JPEG_QUALITY_LOW", "low"}, {JPEG_QUALITY_MEDIUM, "JPEG_QUALITY_MEDIUM", "medium"}, {JPEG_QUALITY_HIGH, "JPEG_QUALITY_HIGH", "high"}, {JPEG_QUALITY_MAXIMUM, "JPEG_QUALITY_MAXIMUM", "maximum"}, {0, NULL, NULL}}; - GType jpeg_quality_type_id; - jpeg_quality_type_id = g_enum_register_static ("JpegQuality", values); - g_once_init_leave (&jpeg_quality_type_id__volatile, jpeg_quality_type_id); - } - return jpeg_quality_type_id__volatile; -} - - -gboolean -jpeg_is_jpeg (GFile* file, - GError** error) -{ - gboolean result = FALSE; - GFileInputStream* fins = NULL; - GFileInputStream* _tmp0_; - gboolean _tmp2_ = FALSE; - GFileInputStream* _tmp3_; - GError * _inner_error_ = NULL; -#line 203 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 204 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = g_file_read (file, NULL, &_inner_error_); -#line 204 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - fins = _tmp0_; -#line 204 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1948 "JfifSupport.c" - gboolean _tmp1_ = FALSE; -#line 204 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_propagate_error (error, _inner_error_); -#line 204 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return _tmp1_; -#line 1954 "JfifSupport.c" - } -#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp3_ = fins; -#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp2_ = jpeg_is_jpeg_stream (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, g_input_stream_get_type (), GInputStream), &_inner_error_); -#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1962 "JfifSupport.c" - gboolean _tmp4_ = FALSE; -#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_propagate_error (error, _inner_error_); -#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _g_object_unref0 (fins); -#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return _tmp4_; -#line 1970 "JfifSupport.c" - } -#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp2_; -#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _g_object_unref0 (fins); -#line 205 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 1978 "JfifSupport.c" -} - - -gboolean -jpeg_is_jpeg_stream (GInputStream* ins, - GError** error) -{ - gboolean result = FALSE; - JpegMarker marker = 0; - gint segment_length = 0; - JpegMarker _tmp0_ = 0; - gint _tmp1_; - gboolean _tmp3_ = FALSE; - GError * _inner_error_ = NULL; -#line 208 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_return_val_if_fail (G_IS_INPUT_STREAM (ins), FALSE); -#line 210 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1_ = jpeg_read_marker (ins, &_tmp0_, &_inner_error_); -#line 210 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - marker = _tmp0_; -#line 210 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - segment_length = _tmp1_; -#line 210 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2003 "JfifSupport.c" - gboolean _tmp2_ = FALSE; -#line 210 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_propagate_error (error, _inner_error_); -#line 210 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return _tmp2_; -#line 2009 "JfifSupport.c" - } -#line 213 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (marker == JPEG_MARKER_SOI) { -#line 213 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp3_ = segment_length == 0; -#line 2015 "JfifSupport.c" - } else { -#line 213 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp3_ = FALSE; -#line 2019 "JfifSupport.c" - } -#line 213 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp3_; -#line 213 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 2025 "JfifSupport.c" -} - - -gboolean -jpeg_is_jpeg_bytes (GBytes* bytes, - GError** error) -{ - gboolean result = FALSE; - GMemoryInputStream* mins = NULL; - GMemoryInputStream* _tmp0_; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 216 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_return_val_if_fail (bytes != NULL, FALSE); -#line 217 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = (GMemoryInputStream*) g_memory_input_stream_new_from_bytes (bytes); -#line 217 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - mins = _tmp0_; -#line 219 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1_ = jpeg_is_jpeg_stream (G_TYPE_CHECK_INSTANCE_CAST (mins, g_input_stream_get_type (), GInputStream), &_inner_error_); -#line 219 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2048 "JfifSupport.c" - gboolean _tmp2_ = FALSE; -#line 219 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_propagate_error (error, _inner_error_); -#line 219 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _g_object_unref0 (mins); -#line 219 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return _tmp2_; -#line 2056 "JfifSupport.c" - } -#line 219 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp1_; -#line 219 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _g_object_unref0 (mins); -#line 219 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 2064 "JfifSupport.c" -} - - -gint -jpeg_read_marker (GInputStream* fins, - JpegMarker* marker, - GError** error) -{ - JpegMarker _vala_marker = 0; - gint result = 0; - GDataInputStream* dins = NULL; - GDataInputStream* _tmp0_; - GDataInputStream* _tmp1_; - guint8 _tmp2_ = 0U; - GDataInputStream* _tmp3_; - guint8 _tmp5_ = 0U; - GDataInputStream* _tmp6_; - gboolean _tmp8_ = FALSE; - JpegMarker _tmp9_; - guint16 length = 0U; - GDataInputStream* _tmp11_; - gboolean _tmp13_ = FALSE; - guint16 _tmp14_; - guint16 _tmp16_; - GError * _inner_error_ = NULL; -#line 222 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_return_val_if_fail (G_IS_INPUT_STREAM (fins), 0); -#line 223 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _vala_marker = JPEG_MARKER_INVALID; -#line 225 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp0_ = g_data_input_stream_new (fins); -#line 225 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - dins = _tmp0_; -#line 226 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp1_ = dins; -#line 226 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_data_input_stream_set_byte_order (_tmp1_, G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN); -#line 228 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp3_ = dins; -#line 228 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp2_ = g_data_input_stream_read_byte (_tmp3_, NULL, &_inner_error_); -#line 228 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2108 "JfifSupport.c" - gint _tmp4_ = 0; -#line 228 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_propagate_error (error, _inner_error_); -#line 228 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _g_object_unref0 (dins); -#line 228 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return _tmp4_; -#line 2116 "JfifSupport.c" - } -#line 228 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (_tmp2_ != JPEG_MARKER_PREFIX) { -#line 229 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = -1; -#line 229 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _g_object_unref0 (dins); -#line 229 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (marker) { -#line 229 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - *marker = _vala_marker; -#line 2128 "JfifSupport.c" - } -#line 229 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 2132 "JfifSupport.c" - } -#line 231 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp6_ = dins; -#line 231 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp5_ = g_data_input_stream_read_byte (_tmp6_, NULL, &_inner_error_); -#line 231 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2140 "JfifSupport.c" - gint _tmp7_ = 0; -#line 231 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_propagate_error (error, _inner_error_); -#line 231 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _g_object_unref0 (dins); -#line 231 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return _tmp7_; -#line 2148 "JfifSupport.c" - } -#line 231 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _vala_marker = (JpegMarker) _tmp5_; -#line 232 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp9_ = _vala_marker; -#line 232 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (_tmp9_ == JPEG_MARKER_SOI) { -#line 232 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp8_ = TRUE; -#line 2158 "JfifSupport.c" - } else { - JpegMarker _tmp10_; -#line 232 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp10_ = _vala_marker; -#line 232 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp8_ = _tmp10_ == JPEG_MARKER_EOI; -#line 2165 "JfifSupport.c" - } -#line 232 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (_tmp8_) { -#line 234 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = 0; -#line 234 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _g_object_unref0 (dins); -#line 234 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (marker) { -#line 234 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - *marker = _vala_marker; -#line 2177 "JfifSupport.c" - } -#line 234 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 2181 "JfifSupport.c" - } -#line 237 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp11_ = dins; -#line 237 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - length = g_data_input_stream_read_uint16 (_tmp11_, NULL, &_inner_error_); -#line 237 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2189 "JfifSupport.c" - gint _tmp12_ = 0; -#line 237 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_propagate_error (error, _inner_error_); -#line 237 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _g_object_unref0 (dins); -#line 237 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return _tmp12_; -#line 2197 "JfifSupport.c" - } -#line 238 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp14_ = length; -#line 238 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (((gint) _tmp14_) < 2) { -#line 238 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp13_ = G_TYPE_CHECK_INSTANCE_TYPE (fins, g_seekable_get_type ()); -#line 2205 "JfifSupport.c" - } else { -#line 238 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp13_ = FALSE; -#line 2209 "JfifSupport.c" - } -#line 238 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (_tmp13_) { -#line 2213 "JfifSupport.c" - guint16 _tmp15_; -#line 239 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp15_ = length; -#line 239 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - g_debug ("Invalid length %Xh at ofs %" G_GINT64_FORMAT "Xh", _tmp15_, g_seekable_tell (G_TYPE_CHECK_INSTANCE_TYPE (fins, g_seekable_get_type ()) ? ((GSeekable*) fins) : NULL) - 2); -#line 242 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = -1; -#line 242 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _g_object_unref0 (dins); -#line 242 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (marker) { -#line 242 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - *marker = _vala_marker; -#line 2227 "JfifSupport.c" - } -#line 242 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 2231 "JfifSupport.c" - } -#line 246 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _tmp16_ = length; -#line 246 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - result = _tmp16_ - 2; -#line 246 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - _g_object_unref0 (dins); -#line 246 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - if (marker) { -#line 246 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - *marker = _vala_marker; -#line 2243 "JfifSupport.c" - } -#line 246 "/home/jens/Source/shotwell/src/photos/JfifSupport.vala" - return result; -#line 2247 "JfifSupport.c" -} - - - diff --git a/src/photos/PhotoFileAdapter.c b/src/photos/PhotoFileAdapter.c deleted file mode 100644 index 72dcc4f..0000000 --- a/src/photos/PhotoFileAdapter.c +++ /dev/null @@ -1,1323 +0,0 @@ -/* PhotoFileAdapter.c generated by valac 0.40.4, the Vala compiler - * generated from PhotoFileAdapter.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/**/ -/* PhotoFileAdapter*/ -/**/ -/* PhotoFileAdapter (and its immediate children, PhotoFileReader and PhotoFileWriter) are drivers*/ -/* hiding details of reading and writing image files and their metadata. They should keep*/ -/* minimal state beyond the filename, if any stat at all. In particular, they should avoid caching*/ -/* values, especially the readers, as writers may be created at any time and invalidate that*/ -/* information, unless the readers monitor the file for these changes.*/ -/**/ -/* PhotoFileAdapters should be entirely thread-safe. They are not, however, responsible for*/ -/* atomicity on the filesystem.*/ -/**/ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ()) -#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)) -#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) -#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER)) -#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER)) -#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) - -typedef struct _PhotoFileAdapter PhotoFileAdapter; -typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass; -typedef struct _PhotoFileAdapterPrivate PhotoFileAdapterPrivate; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _ParamSpecPhotoFileAdapter ParamSpecPhotoFileAdapter; - -#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ()) -#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader)) -#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) -#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER)) -#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER)) -#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) - -typedef struct _PhotoFileReader PhotoFileReader; -typedef struct _PhotoFileReaderClass PhotoFileReaderClass; -typedef struct _PhotoFileReaderPrivate PhotoFileReaderPrivate; - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define PHOTO_FILE_READER_TYPE_ROLE (photo_file_reader_role_get_type ()) - -#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ()) -#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter)) -#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) -#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER)) -#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER)) -#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) - -typedef struct _PhotoFileWriter PhotoFileWriter; -typedef struct _PhotoFileWriterClass PhotoFileWriterClass; -#define _photo_file_adapter_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_adapter_unref (var), NULL))) - -#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ()) -#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter)) -#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass)) -#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER)) -#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER)) -#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass)) - -typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter; -typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass; -typedef struct _PhotoFileWriterPrivate PhotoFileWriterPrivate; - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) -typedef struct _PhotoFileMetadataWriterPrivate PhotoFileMetadataWriterPrivate; - -struct _PhotoFileAdapter { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileAdapterPrivate * priv; -}; - -struct _PhotoFileAdapterClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileAdapter *self); -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _PhotoFileAdapterPrivate { - gchar* filepath; - PhotoFileFormat file_format; - GFile* file; - GRecMutex __lock_file; -}; - -struct _ParamSpecPhotoFileAdapter { - GParamSpec parent_instance; -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _PhotoFileReader { - PhotoFileAdapter parent_instance; - PhotoFileReaderPrivate * priv; -}; - -struct _PhotoFileReaderClass { - PhotoFileAdapterClass parent_class; - PhotoMetadata* (*read_metadata) (PhotoFileReader* self, GError** error); - GdkPixbuf* (*unscaled_read) (PhotoFileReader* self, GError** error); - GdkPixbuf* (*scaled_read) (PhotoFileReader* self, Dimensions* full, Dimensions* scaled, GError** error); -}; - -typedef enum { - PHOTO_FILE_READER_ROLE_DEFAULT, - PHOTO_FILE_READER_ROLE_THUMBNAIL -} PhotoFileReaderRole; - -struct _PhotoFileReaderPrivate { - PhotoFileReaderRole role; -}; - -typedef enum { - PHOTO_FORMAT_ERROR_READ_ONLY -} PhotoFormatError; -#define PHOTO_FORMAT_ERROR photo_format_error_quark () -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -struct _PhotoFileWriter { - PhotoFileAdapter parent_instance; - PhotoFileWriterPrivate * priv; -}; - -struct _PhotoFileWriterClass { - PhotoFileAdapterClass parent_class; - void (*write) (PhotoFileWriter* self, GdkPixbuf* pixbuf, JpegQuality quality, GError** error); -}; - -struct _PhotoFileMetadataWriter { - PhotoFileAdapter parent_instance; - PhotoFileMetadataWriterPrivate * priv; -}; - -struct _PhotoFileMetadataWriterClass { - PhotoFileAdapterClass parent_class; - void (*write_metadata) (PhotoFileMetadataWriter* self, PhotoMetadata* metadata, GError** error); -}; - - -static gpointer photo_file_adapter_parent_class = NULL; -static gpointer photo_file_reader_parent_class = NULL; -static gpointer photo_file_writer_parent_class = NULL; -static gpointer photo_file_metadata_writer_parent_class = NULL; - -gpointer photo_file_adapter_ref (gpointer instance); -void photo_file_adapter_unref (gpointer instance); -GParamSpec* param_spec_photo_file_adapter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_adapter (GValue* value, - gpointer v_object); -void value_take_photo_file_adapter (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_adapter (const GValue* value); -GType photo_file_adapter_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -#define PHOTO_FILE_ADAPTER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterPrivate)) -PhotoFileAdapter* photo_file_adapter_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -gboolean photo_file_adapter_file_exists (PhotoFileAdapter* self); -gchar* photo_file_adapter_get_filepath (PhotoFileAdapter* self); -GFile* photo_file_adapter_get_file (PhotoFileAdapter* self); -PhotoFileFormat photo_file_adapter_get_file_format (PhotoFileAdapter* self); -static void photo_file_adapter_finalize (PhotoFileAdapter * obj); -GType photo_file_reader_get_type (void) G_GNUC_CONST; -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GType photo_file_reader_role_get_type (void) G_GNUC_CONST; -#define PHOTO_FILE_READER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_FILE_READER, PhotoFileReaderPrivate)) -PhotoFileReader* photo_file_reader_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -GType photo_file_writer_get_type (void) G_GNUC_CONST; -GQuark photo_format_error_quark (void); -PhotoFileWriter* photo_file_reader_create_writer (PhotoFileReader* self, - GError** error); -PhotoFileWriter* photo_file_format_create_writer (PhotoFileFormat self, - const gchar* filepath, - GError** error); -GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST; -PhotoFileMetadataWriter* photo_file_reader_create_metadata_writer (PhotoFileReader* self, - GError** error); -PhotoFileMetadataWriter* photo_file_format_create_metadata_writer (PhotoFileFormat self, - const gchar* filepath, - GError** error); -PhotoMetadata* photo_file_reader_read_metadata (PhotoFileReader* self, - GError** error); -static PhotoMetadata* photo_file_reader_real_read_metadata (PhotoFileReader* self, - GError** error); -GdkPixbuf* photo_file_reader_unscaled_read (PhotoFileReader* self, - GError** error); -static GdkPixbuf* photo_file_reader_real_unscaled_read (PhotoFileReader* self, - GError** error); -GdkPixbuf* photo_file_reader_scaled_read (PhotoFileReader* self, - Dimensions* full, - Dimensions* scaled, - GError** error); -static GdkPixbuf* photo_file_reader_real_scaled_read (PhotoFileReader* self, - Dimensions* full, - Dimensions* scaled, - GError** error); -GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf, - Dimensions* resized, - GdkInterpType interp); -void photo_file_reader_set_role (PhotoFileReader* self, - PhotoFileReaderRole role); -PhotoFileReaderRole photo_file_reader_get_role (PhotoFileReader* self); -static void photo_file_reader_finalize (PhotoFileAdapter * obj); -GType jpeg_quality_get_type (void) G_GNUC_CONST; -PhotoFileWriter* photo_file_writer_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -PhotoFileReader* photo_file_writer_create_reader (PhotoFileWriter* self); -PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self, - const gchar* filepath); -void photo_file_writer_write (PhotoFileWriter* self, - GdkPixbuf* pixbuf, - JpegQuality quality, - GError** error); -static void photo_file_writer_real_write (PhotoFileWriter* self, - GdkPixbuf* pixbuf, - JpegQuality quality, - GError** error); -PhotoFileMetadataWriter* photo_file_metadata_writer_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -PhotoFileReader* photo_file_metadata_writer_create_reader (PhotoFileMetadataWriter* self); -void photo_file_metadata_writer_write_metadata (PhotoFileMetadataWriter* self, - PhotoMetadata* metadata, - GError** error); -static void photo_file_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* self, - PhotoMetadata* metadata, - GError** error); - - -PhotoFileAdapter* -photo_file_adapter_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format) -{ - PhotoFileAdapter* self = NULL; - gchar* _tmp0_; -#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - self = (PhotoFileAdapter*) g_type_create_instance (object_type); -#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp0_ = g_strdup (filepath); -#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _g_free0 (self->priv->filepath); -#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - self->priv->filepath = _tmp0_; -#line 27 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - self->priv->file_format = file_format; -#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return self; -#line 335 "PhotoFileAdapter.c" -} - - -gboolean -photo_file_adapter_file_exists (PhotoFileAdapter* self) -{ - gboolean result = FALSE; - const gchar* _tmp0_; -#line 30 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (IS_PHOTO_FILE_ADAPTER (self), FALSE); -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp0_ = self->priv->filepath; -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - result = g_file_test (_tmp0_, G_FILE_TEST_IS_REGULAR); -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return result; -#line 352 "PhotoFileAdapter.c" -} - - -gchar* -photo_file_adapter_get_filepath (PhotoFileAdapter* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (IS_PHOTO_FILE_ADAPTER (self), NULL); -#line 35 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp0_ = self->priv->filepath; -#line 35 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 35 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - result = _tmp1_; -#line 35 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return result; -#line 372 "PhotoFileAdapter.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 44 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return self ? g_object_ref (self) : NULL; -#line 381 "PhotoFileAdapter.c" -} - - -GFile* -photo_file_adapter_get_file (PhotoFileAdapter* self) -{ - GFile* result = NULL; - GFile* _result_ = NULL; - GError * _inner_error_ = NULL; -#line 38 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (IS_PHOTO_FILE_ADAPTER (self), NULL); -#line 393 "PhotoFileAdapter.c" - { - GFile* _tmp0_; -#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp0_ = self->priv->file; -#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_rec_mutex_lock (&self->priv->__lock_file); -#line 400 "PhotoFileAdapter.c" - { - GFile* _tmp1_; - GFile* _tmp4_; - GFile* _tmp5_; -#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp1_ = self->priv->file; -#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (_tmp1_ == NULL) { -#line 409 "PhotoFileAdapter.c" - const gchar* _tmp2_; - GFile* _tmp3_; -#line 42 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp2_ = self->priv->filepath; -#line 42 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp3_ = g_file_new_for_path (_tmp2_); -#line 42 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _g_object_unref0 (self->priv->file); -#line 42 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - self->priv->file = _tmp3_; -#line 420 "PhotoFileAdapter.c" - } -#line 44 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp4_ = self->priv->file; -#line 44 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp5_ = _g_object_ref0 (_tmp4_); -#line 44 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _g_object_unref0 (_result_); -#line 44 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _result_ = _tmp5_; -#line 430 "PhotoFileAdapter.c" - } - __finally28: - { - GFile* _tmp6_; -#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp6_ = self->priv->file; -#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_rec_mutex_unlock (&self->priv->__lock_file); -#line 439 "PhotoFileAdapter.c" - } -#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _g_object_unref0 (_result_); -#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_clear_error (&_inner_error_); -#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return NULL; -#line 451 "PhotoFileAdapter.c" - } - } -#line 47 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - result = _result_; -#line 47 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return result; -#line 458 "PhotoFileAdapter.c" -} - - -PhotoFileFormat -photo_file_adapter_get_file_format (PhotoFileAdapter* self) -{ - PhotoFileFormat result = 0; - PhotoFileFormat _tmp0_; -#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (IS_PHOTO_FILE_ADAPTER (self), 0); -#line 51 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp0_ = self->priv->file_format; -#line 51 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - result = _tmp0_; -#line 51 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return result; -#line 475 "PhotoFileAdapter.c" -} - - -static void -value_photo_file_adapter_init (GValue* value) -{ -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - value->data[0].v_pointer = NULL; -#line 484 "PhotoFileAdapter.c" -} - - -static void -value_photo_file_adapter_free_value (GValue* value) -{ -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (value->data[0].v_pointer) { -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - photo_file_adapter_unref (value->data[0].v_pointer); -#line 495 "PhotoFileAdapter.c" - } -} - - -static void -value_photo_file_adapter_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (src_value->data[0].v_pointer) { -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - dest_value->data[0].v_pointer = photo_file_adapter_ref (src_value->data[0].v_pointer); -#line 508 "PhotoFileAdapter.c" - } else { -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - dest_value->data[0].v_pointer = NULL; -#line 512 "PhotoFileAdapter.c" - } -} - - -static gpointer -value_photo_file_adapter_peek_pointer (const GValue* value) -{ -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return value->data[0].v_pointer; -#line 522 "PhotoFileAdapter.c" -} - - -static gchar* -value_photo_file_adapter_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (collect_values[0].v_pointer) { -#line 534 "PhotoFileAdapter.c" - PhotoFileAdapter * object; - object = collect_values[0].v_pointer; -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (object->parent_instance.g_class == NULL) { -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 541 "PhotoFileAdapter.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 545 "PhotoFileAdapter.c" - } -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - value->data[0].v_pointer = photo_file_adapter_ref (object); -#line 549 "PhotoFileAdapter.c" - } else { -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - value->data[0].v_pointer = NULL; -#line 553 "PhotoFileAdapter.c" - } -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return NULL; -#line 557 "PhotoFileAdapter.c" -} - - -static gchar* -value_photo_file_adapter_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PhotoFileAdapter ** object_p; - object_p = collect_values[0].v_pointer; -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (!object_p) { -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 573 "PhotoFileAdapter.c" - } -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (!value->data[0].v_pointer) { -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - *object_p = NULL; -#line 579 "PhotoFileAdapter.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - *object_p = value->data[0].v_pointer; -#line 583 "PhotoFileAdapter.c" - } else { -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - *object_p = photo_file_adapter_ref (value->data[0].v_pointer); -#line 587 "PhotoFileAdapter.c" - } -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return NULL; -#line 591 "PhotoFileAdapter.c" -} - - -GParamSpec* -param_spec_photo_file_adapter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecPhotoFileAdapter* spec; -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_FILE_ADAPTER), NULL); -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return G_PARAM_SPEC (spec); -#line 611 "PhotoFileAdapter.c" -} - - -gpointer -value_get_photo_file_adapter (const GValue* value) -{ -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_ADAPTER), NULL); -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return value->data[0].v_pointer; -#line 622 "PhotoFileAdapter.c" -} - - -void -value_set_photo_file_adapter (GValue* value, - gpointer v_object) -{ - PhotoFileAdapter * old; -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_ADAPTER)); -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - old = value->data[0].v_pointer; -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (v_object) { -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_ADAPTER)); -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - value->data[0].v_pointer = v_object; -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - photo_file_adapter_ref (value->data[0].v_pointer); -#line 645 "PhotoFileAdapter.c" - } else { -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - value->data[0].v_pointer = NULL; -#line 649 "PhotoFileAdapter.c" - } -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (old) { -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - photo_file_adapter_unref (old); -#line 655 "PhotoFileAdapter.c" - } -} - - -void -value_take_photo_file_adapter (GValue* value, - gpointer v_object) -{ - PhotoFileAdapter * old; -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_ADAPTER)); -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - old = value->data[0].v_pointer; -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (v_object) { -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_ADAPTER)); -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - value->data[0].v_pointer = v_object; -#line 677 "PhotoFileAdapter.c" - } else { -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - value->data[0].v_pointer = NULL; -#line 681 "PhotoFileAdapter.c" - } -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (old) { -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - photo_file_adapter_unref (old); -#line 687 "PhotoFileAdapter.c" - } -} - - -static void -photo_file_adapter_class_init (PhotoFileAdapterClass * klass) -{ -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - photo_file_adapter_parent_class = g_type_class_peek_parent (klass); -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - ((PhotoFileAdapterClass *) klass)->finalize = photo_file_adapter_finalize; -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_type_class_add_private (klass, sizeof (PhotoFileAdapterPrivate)); -#line 701 "PhotoFileAdapter.c" -} - - -static void -photo_file_adapter_instance_init (PhotoFileAdapter * self) -{ -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - self->priv = PHOTO_FILE_ADAPTER_GET_PRIVATE (self); -#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_rec_mutex_init (&self->priv->__lock_file); -#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - self->priv->file = NULL; -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - self->ref_count = 1; -#line 716 "PhotoFileAdapter.c" -} - - -static void -photo_file_adapter_finalize (PhotoFileAdapter * obj) -{ - PhotoFileAdapter * self; -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter); -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_signal_handlers_destroy (self); -#line 21 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _g_free0 (self->priv->filepath); -#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_rec_mutex_clear (&self->priv->__lock_file); -#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _g_object_unref0 (self->priv->file); -#line 734 "PhotoFileAdapter.c" -} - - -GType -photo_file_adapter_get_type (void) -{ - static volatile gsize photo_file_adapter_type_id__volatile = 0; - if (g_once_init_enter (&photo_file_adapter_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_photo_file_adapter_init, value_photo_file_adapter_free_value, value_photo_file_adapter_copy_value, value_photo_file_adapter_peek_pointer, "p", value_photo_file_adapter_collect_value, "p", value_photo_file_adapter_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PhotoFileAdapterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_adapter_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileAdapter), 0, (GInstanceInitFunc) photo_file_adapter_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType photo_file_adapter_type_id; - photo_file_adapter_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoFileAdapter", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&photo_file_adapter_type_id__volatile, photo_file_adapter_type_id); - } - return photo_file_adapter_type_id__volatile; -} - - -gpointer -photo_file_adapter_ref (gpointer instance) -{ - PhotoFileAdapter * self; - self = instance; -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_atomic_int_inc (&self->ref_count); -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return instance; -#line 763 "PhotoFileAdapter.c" -} - - -void -photo_file_adapter_unref (gpointer instance) -{ - PhotoFileAdapter * self; - self = instance; -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - PHOTO_FILE_ADAPTER_GET_CLASS (self)->finalize (self); -#line 20 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 778 "PhotoFileAdapter.c" - } -} - - -GType -photo_file_reader_role_get_type (void) -{ - static volatile gsize photo_file_reader_role_type_id__volatile = 0; - if (g_once_init_enter (&photo_file_reader_role_type_id__volatile)) { - static const GEnumValue values[] = {{PHOTO_FILE_READER_ROLE_DEFAULT, "PHOTO_FILE_READER_ROLE_DEFAULT", "default"}, {PHOTO_FILE_READER_ROLE_THUMBNAIL, "PHOTO_FILE_READER_ROLE_THUMBNAIL", "thumbnail"}, {0, NULL, NULL}}; - GType photo_file_reader_role_type_id; - photo_file_reader_role_type_id = g_enum_register_static ("PhotoFileReaderRole", values); - g_once_init_leave (&photo_file_reader_role_type_id__volatile, photo_file_reader_role_type_id); - } - return photo_file_reader_role_type_id__volatile; -} - - -PhotoFileReader* -photo_file_reader_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format) -{ - PhotoFileReader* self = NULL; -#line 67 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 68 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - self = (PhotoFileReader*) photo_file_adapter_construct (object_type, filepath, file_format); -#line 67 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return self; -#line 809 "PhotoFileAdapter.c" -} - - -PhotoFileWriter* -photo_file_reader_create_writer (PhotoFileReader* self, - GError** error) -{ - PhotoFileWriter* result = NULL; - PhotoFileWriter* _tmp0_ = NULL; - gchar* _tmp1_; - gchar* _tmp2_; - PhotoFileWriter* _tmp3_; - PhotoFileWriter* _tmp4_; - PhotoFileWriter* _tmp5_; - GError * _inner_error_ = NULL; -#line 71 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (IS_PHOTO_FILE_READER (self), NULL); -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp1_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp2_ = _tmp1_; -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp3_ = photo_file_format_create_writer (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)), _tmp2_, &_inner_error_); -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp4_ = _tmp3_; -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _g_free0 (_tmp2_); -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp0_ = _tmp4_; -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (_inner_error_->domain == PHOTO_FORMAT_ERROR) { -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_propagate_error (error, _inner_error_); -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return NULL; -#line 847 "PhotoFileAdapter.c" - } else { -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_clear_error (&_inner_error_); -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return NULL; -#line 855 "PhotoFileAdapter.c" - } - } -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp5_ = _tmp0_; -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp0_ = NULL; -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - result = _tmp5_; -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _photo_file_adapter_unref0 (_tmp0_); -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return result; -#line 868 "PhotoFileAdapter.c" -} - - -PhotoFileMetadataWriter* -photo_file_reader_create_metadata_writer (PhotoFileReader* self, - GError** error) -{ - PhotoFileMetadataWriter* result = NULL; - PhotoFileMetadataWriter* _tmp0_ = NULL; - gchar* _tmp1_; - gchar* _tmp2_; - PhotoFileMetadataWriter* _tmp3_; - PhotoFileMetadataWriter* _tmp4_; - PhotoFileMetadataWriter* _tmp5_; - GError * _inner_error_ = NULL; -#line 75 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (IS_PHOTO_FILE_READER (self), NULL); -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp1_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp2_ = _tmp1_; -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp3_ = photo_file_format_create_metadata_writer (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)), _tmp2_, &_inner_error_); -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp4_ = _tmp3_; -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _g_free0 (_tmp2_); -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp0_ = _tmp4_; -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (_inner_error_->domain == PHOTO_FORMAT_ERROR) { -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_propagate_error (error, _inner_error_); -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return NULL; -#line 906 "PhotoFileAdapter.c" - } else { -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_clear_error (&_inner_error_); -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return NULL; -#line 914 "PhotoFileAdapter.c" - } - } -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp5_ = _tmp0_; -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp0_ = NULL; -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - result = _tmp5_; -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _photo_file_adapter_unref0 (_tmp0_); -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return result; -#line 927 "PhotoFileAdapter.c" -} - - -static PhotoMetadata* -photo_file_reader_real_read_metadata (PhotoFileReader* self, - GError** error) -{ -#line 79 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_reader_read_metadata'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 79 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return NULL; -#line 939 "PhotoFileAdapter.c" -} - - -PhotoMetadata* -photo_file_reader_read_metadata (PhotoFileReader* self, - GError** error) -{ -#line 79 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (IS_PHOTO_FILE_READER (self), NULL); -#line 79 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return PHOTO_FILE_READER_GET_CLASS (self)->read_metadata (self, error); -#line 951 "PhotoFileAdapter.c" -} - - -static GdkPixbuf* -photo_file_reader_real_unscaled_read (PhotoFileReader* self, - GError** error) -{ -#line 81 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_reader_unscaled_read'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 81 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return NULL; -#line 963 "PhotoFileAdapter.c" -} - - -GdkPixbuf* -photo_file_reader_unscaled_read (PhotoFileReader* self, - GError** error) -{ -#line 81 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (IS_PHOTO_FILE_READER (self), NULL); -#line 81 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return PHOTO_FILE_READER_GET_CLASS (self)->unscaled_read (self, error); -#line 975 "PhotoFileAdapter.c" -} - - -static GdkPixbuf* -photo_file_reader_real_scaled_read (PhotoFileReader* self, - Dimensions* full, - Dimensions* scaled, - GError** error) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* _tmp0_ = NULL; - GdkPixbuf* _tmp1_; - Dimensions _tmp2_; - GdkPixbuf* _tmp3_; - GError * _inner_error_ = NULL; -#line 83 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (full != NULL, NULL); -#line 83 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (scaled != NULL, NULL); -#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp1_ = photo_file_reader_unscaled_read (self, &_inner_error_); -#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp0_ = _tmp1_; -#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_propagate_error (error, _inner_error_); -#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return NULL; -#line 1005 "PhotoFileAdapter.c" - } -#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp2_ = *scaled; -#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp3_ = resize_pixbuf (_tmp0_, &_tmp2_, GDK_INTERP_BILINEAR); -#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - result = _tmp3_; -#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _g_object_unref0 (_tmp0_); -#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return result; -#line 1017 "PhotoFileAdapter.c" -} - - -GdkPixbuf* -photo_file_reader_scaled_read (PhotoFileReader* self, - Dimensions* full, - Dimensions* scaled, - GError** error) -{ -#line 83 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (IS_PHOTO_FILE_READER (self), NULL); -#line 83 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return PHOTO_FILE_READER_GET_CLASS (self)->scaled_read (self, full, scaled, error); -#line 1031 "PhotoFileAdapter.c" -} - - -void -photo_file_reader_set_role (PhotoFileReader* self, - PhotoFileReaderRole role) -{ -#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_if_fail (IS_PHOTO_FILE_READER (self)); -#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - self->priv->role = role; -#line 1043 "PhotoFileAdapter.c" -} - - -PhotoFileReaderRole -photo_file_reader_get_role (PhotoFileReader* self) -{ - PhotoFileReaderRole result = 0; - PhotoFileReaderRole _tmp0_; -#line 91 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (IS_PHOTO_FILE_READER (self), 0); -#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp0_ = self->priv->role; -#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - result = _tmp0_; -#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return result; -#line 1060 "PhotoFileAdapter.c" -} - - -static void -photo_file_reader_class_init (PhotoFileReaderClass * klass) -{ -#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - photo_file_reader_parent_class = g_type_class_peek_parent (klass); -#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - ((PhotoFileAdapterClass *) klass)->finalize = photo_file_reader_finalize; -#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_type_class_add_private (klass, sizeof (PhotoFileReaderPrivate)); -#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - ((PhotoFileReaderClass *) klass)->read_metadata = (PhotoMetadata* (*) (PhotoFileReader *, GError**)) photo_file_reader_real_read_metadata; -#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - ((PhotoFileReaderClass *) klass)->unscaled_read = (GdkPixbuf* (*) (PhotoFileReader *, GError**)) photo_file_reader_real_unscaled_read; -#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - ((PhotoFileReaderClass *) klass)->scaled_read = (GdkPixbuf* (*) (PhotoFileReader *, Dimensions*, Dimensions*, GError**)) photo_file_reader_real_scaled_read; -#line 1079 "PhotoFileAdapter.c" -} - - -static void -photo_file_reader_instance_init (PhotoFileReader * self) -{ -#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - self->priv = PHOTO_FILE_READER_GET_PRIVATE (self); -#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - self->priv->role = PHOTO_FILE_READER_ROLE_DEFAULT; -#line 1090 "PhotoFileAdapter.c" -} - - -static void -photo_file_reader_finalize (PhotoFileAdapter * obj) -{ - PhotoFileReader * self; -#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_FILE_READER, PhotoFileReader); -#line 59 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - PHOTO_FILE_ADAPTER_CLASS (photo_file_reader_parent_class)->finalize (obj); -#line 1102 "PhotoFileAdapter.c" -} - - -GType -photo_file_reader_get_type (void) -{ - static volatile gsize photo_file_reader_type_id__volatile = 0; - if (g_once_init_enter (&photo_file_reader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoFileReaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_reader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileReader), 0, (GInstanceInitFunc) photo_file_reader_instance_init, NULL }; - GType photo_file_reader_type_id; - photo_file_reader_type_id = g_type_register_static (TYPE_PHOTO_FILE_ADAPTER, "PhotoFileReader", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&photo_file_reader_type_id__volatile, photo_file_reader_type_id); - } - return photo_file_reader_type_id__volatile; -} - - -PhotoFileWriter* -photo_file_writer_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format) -{ - PhotoFileWriter* self = NULL; -#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 102 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - self = (PhotoFileWriter*) photo_file_adapter_construct (object_type, filepath, file_format); -#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return self; -#line 1132 "PhotoFileAdapter.c" -} - - -PhotoFileReader* -photo_file_writer_create_reader (PhotoFileWriter* self) -{ - PhotoFileReader* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - PhotoFileReader* _tmp2_; - PhotoFileReader* _tmp3_; -#line 105 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (IS_PHOTO_FILE_WRITER (self), NULL); -#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp0_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp1_ = _tmp0_; -#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp2_ = photo_file_format_create_reader (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)), _tmp1_); -#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp3_ = _tmp2_; -#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _g_free0 (_tmp1_); -#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - result = _tmp3_; -#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return result; -#line 1160 "PhotoFileAdapter.c" -} - - -static void -photo_file_writer_real_write (PhotoFileWriter* self, - GdkPixbuf* pixbuf, - JpegQuality quality, - GError** error) -{ -#line 109 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_writer_write'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 109 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return; -#line 1174 "PhotoFileAdapter.c" -} - - -void -photo_file_writer_write (PhotoFileWriter* self, - GdkPixbuf* pixbuf, - JpegQuality quality, - GError** error) -{ -#line 109 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_if_fail (IS_PHOTO_FILE_WRITER (self)); -#line 109 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - PHOTO_FILE_WRITER_GET_CLASS (self)->write (self, pixbuf, quality, error); -#line 1188 "PhotoFileAdapter.c" -} - - -static void -photo_file_writer_class_init (PhotoFileWriterClass * klass) -{ -#line 100 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - photo_file_writer_parent_class = g_type_class_peek_parent (klass); -#line 100 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - ((PhotoFileWriterClass *) klass)->write = (void (*) (PhotoFileWriter *, GdkPixbuf*, JpegQuality, GError**)) photo_file_writer_real_write; -#line 1199 "PhotoFileAdapter.c" -} - - -static void -photo_file_writer_instance_init (PhotoFileWriter * self) -{ -} - - -GType -photo_file_writer_get_type (void) -{ - static volatile gsize photo_file_writer_type_id__volatile = 0; - if (g_once_init_enter (&photo_file_writer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoFileWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileWriter), 0, (GInstanceInitFunc) photo_file_writer_instance_init, NULL }; - GType photo_file_writer_type_id; - photo_file_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_ADAPTER, "PhotoFileWriter", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&photo_file_writer_type_id__volatile, photo_file_writer_type_id); - } - return photo_file_writer_type_id__volatile; -} - - -PhotoFileMetadataWriter* -photo_file_metadata_writer_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format) -{ - PhotoFileMetadataWriter* self = NULL; -#line 117 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 118 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - self = (PhotoFileMetadataWriter*) photo_file_adapter_construct (object_type, filepath, file_format); -#line 117 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return self; -#line 1235 "PhotoFileAdapter.c" -} - - -PhotoFileReader* -photo_file_metadata_writer_create_reader (PhotoFileMetadataWriter* self) -{ - PhotoFileReader* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - PhotoFileReader* _tmp2_; - PhotoFileReader* _tmp3_; -#line 121 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_val_if_fail (IS_PHOTO_FILE_METADATA_WRITER (self), NULL); -#line 122 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp0_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 122 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp1_ = _tmp0_; -#line 122 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp2_ = photo_file_format_create_reader (photo_file_adapter_get_file_format (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)), _tmp1_); -#line 122 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _tmp3_ = _tmp2_; -#line 122 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - _g_free0 (_tmp1_); -#line 122 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - result = _tmp3_; -#line 122 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return result; -#line 1263 "PhotoFileAdapter.c" -} - - -static void -photo_file_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* self, - PhotoMetadata* metadata, - GError** error) -{ -#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_metadata_writer_write_metadata'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - return; -#line 1276 "PhotoFileAdapter.c" -} - - -void -photo_file_metadata_writer_write_metadata (PhotoFileMetadataWriter* self, - PhotoMetadata* metadata, - GError** error) -{ -#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - g_return_if_fail (IS_PHOTO_FILE_METADATA_WRITER (self)); -#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - PHOTO_FILE_METADATA_WRITER_GET_CLASS (self)->write_metadata (self, metadata, error); -#line 1289 "PhotoFileAdapter.c" -} - - -static void -photo_file_metadata_writer_class_init (PhotoFileMetadataWriterClass * klass) -{ -#line 116 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - photo_file_metadata_writer_parent_class = g_type_class_peek_parent (klass); -#line 116 "/home/jens/Source/shotwell/src/photos/PhotoFileAdapter.vala" - ((PhotoFileMetadataWriterClass *) klass)->write_metadata = (void (*) (PhotoFileMetadataWriter *, PhotoMetadata*, GError**)) photo_file_metadata_writer_real_write_metadata; -#line 1300 "PhotoFileAdapter.c" -} - - -static void -photo_file_metadata_writer_instance_init (PhotoFileMetadataWriter * self) -{ -} - - -GType -photo_file_metadata_writer_get_type (void) -{ - static volatile gsize photo_file_metadata_writer_type_id__volatile = 0; - if (g_once_init_enter (&photo_file_metadata_writer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoFileMetadataWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_metadata_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileMetadataWriter), 0, (GInstanceInitFunc) photo_file_metadata_writer_instance_init, NULL }; - GType photo_file_metadata_writer_type_id; - photo_file_metadata_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_ADAPTER, "PhotoFileMetadataWriter", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&photo_file_metadata_writer_type_id__volatile, photo_file_metadata_writer_type_id); - } - return photo_file_metadata_writer_type_id__volatile; -} - - - diff --git a/src/photos/PhotoFileFormat.c b/src/photos/PhotoFileFormat.c deleted file mode 100644 index 3b3520c..0000000 --- a/src/photos/PhotoFileFormat.c +++ /dev/null @@ -1,3539 +0,0 @@ -/* PhotoFileFormat.c generated by valac 0.40.4, the Vala compiler - * generated from PhotoFileFormat.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_PHOTO_FILE_FORMAT_DRIVER (photo_file_format_driver_get_type ()) -#define PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver)) -#define PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass)) -#define IS_PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER)) -#define IS_PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER)) -#define PHOTO_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass)) - -typedef struct _PhotoFileFormatDriver PhotoFileFormatDriver; -typedef struct _PhotoFileFormatDriverClass PhotoFileFormatDriverClass; - -#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ()) -#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties)) -#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) - -typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties; -typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass; -#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL))) -#define _photo_file_format_driver_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_driver_unref (var), NULL))) - -#define TYPE_JFIF_FILE_FORMAT_DRIVER (jfif_file_format_driver_get_type ()) -#define JFIF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriver)) -#define JFIF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriverClass)) -#define IS_JFIF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_JFIF_FILE_FORMAT_DRIVER)) -#define IS_JFIF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_JFIF_FILE_FORMAT_DRIVER)) -#define JFIF_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_JFIF_FILE_FORMAT_DRIVER, JfifFileFormatDriverClass)) - -typedef struct _JfifFileFormatDriver JfifFileFormatDriver; -typedef struct _JfifFileFormatDriverClass JfifFileFormatDriverClass; - -#define TYPE_RAW_FILE_FORMAT_DRIVER (raw_file_format_driver_get_type ()) -#define RAW_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver)) -#define RAW_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriverClass)) -#define IS_RAW_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RAW_FILE_FORMAT_DRIVER)) -#define IS_RAW_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RAW_FILE_FORMAT_DRIVER)) -#define RAW_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriverClass)) - -typedef struct _RawFileFormatDriver RawFileFormatDriver; -typedef struct _RawFileFormatDriverClass RawFileFormatDriverClass; - -#define TYPE_PNG_FILE_FORMAT_DRIVER (png_file_format_driver_get_type ()) -#define PNG_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver)) -#define PNG_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriverClass)) -#define IS_PNG_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PNG_FILE_FORMAT_DRIVER)) -#define IS_PNG_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PNG_FILE_FORMAT_DRIVER)) -#define PNG_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriverClass)) - -typedef struct _PngFileFormatDriver PngFileFormatDriver; -typedef struct _PngFileFormatDriverClass PngFileFormatDriverClass; - -#define PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER (photos_tiff_file_format_driver_get_type ()) -#define PHOTOS_TIFF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver)) -#define PHOTOS_TIFF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriverClass)) -#define PHOTOS_IS_TIFF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER)) -#define PHOTOS_IS_TIFF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER)) -#define PHOTOS_TIFF_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriverClass)) - -typedef struct _PhotosTiffFileFormatDriver PhotosTiffFileFormatDriver; -typedef struct _PhotosTiffFileFormatDriverClass PhotosTiffFileFormatDriverClass; - -#define PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER (photos_bmp_file_format_driver_get_type ()) -#define PHOTOS_BMP_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriver)) -#define PHOTOS_BMP_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriverClass)) -#define PHOTOS_IS_BMP_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER)) -#define PHOTOS_IS_BMP_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER)) -#define PHOTOS_BMP_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_BMP_FILE_FORMAT_DRIVER, PhotosBmpFileFormatDriverClass)) - -typedef struct _PhotosBmpFileFormatDriver PhotosBmpFileFormatDriver; -typedef struct _PhotosBmpFileFormatDriverClass PhotosBmpFileFormatDriverClass; - -#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ()) -#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)) -#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) -#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER)) -#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER)) -#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) - -typedef struct _PhotoFileAdapter PhotoFileAdapter; -typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass; - -#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ()) -#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader)) -#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) -#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER)) -#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER)) -#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) - -typedef struct _PhotoFileReader PhotoFileReader; -typedef struct _PhotoFileReaderClass PhotoFileReaderClass; - -#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ()) -#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter)) -#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) -#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER)) -#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER)) -#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) - -typedef struct _PhotoFileWriter PhotoFileWriter; -typedef struct _PhotoFileWriterClass PhotoFileWriterClass; -#define _photo_file_adapter_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_adapter_unref (var), NULL))) - -#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ()) -#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter)) -#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass)) -#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER)) -#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER)) -#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass)) - -typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter; -typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass; - -#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ()) - -#define TYPE_PHOTO_FILE_SNIFFER (photo_file_sniffer_get_type ()) -#define PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)) -#define PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass)) -#define IS_PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_SNIFFER)) -#define IS_PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_SNIFFER)) -#define PHOTO_FILE_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass)) - -typedef struct _PhotoFileSniffer PhotoFileSniffer; -typedef struct _PhotoFileSnifferClass PhotoFileSnifferClass; - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; -typedef struct _PhotoFileFormatDriverPrivate PhotoFileFormatDriverPrivate; -typedef struct _ParamSpecPhotoFileFormatDriver ParamSpecPhotoFileFormatDriver; - -#define TYPE_PHOTO_FILE_FORMAT_FLAGS (photo_file_format_flags_get_type ()) -typedef struct _PhotoFileFormatPropertiesPrivate PhotoFileFormatPropertiesPrivate; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _ParamSpecPhotoFileFormatProperties ParamSpecPhotoFileFormatProperties; - -typedef enum { - PHOTO_FORMAT_ERROR_READ_ONLY -} PhotoFormatError; -#define PHOTO_FORMAT_ERROR photo_format_error_quark () -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef gboolean (*PhotoFileFormatDataApplicableTest) (PhotoFileFormat format, void* user_data); -typedef enum { - PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000, - PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001 -} PhotoFileSnifferOptions; - -struct _PhotoFileFormatDriver { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileFormatDriverPrivate * priv; -}; - -struct _PhotoFileFormatDriverClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileFormatDriver *self); - PhotoFileFormatProperties* (*get_properties) (PhotoFileFormatDriver* self); - PhotoFileReader* (*create_reader) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoMetadata* (*create_metadata) (PhotoFileFormatDriver* self); - gboolean (*can_write_image) (PhotoFileFormatDriver* self); - gboolean (*can_write_metadata) (PhotoFileFormatDriver* self); - PhotoFileWriter* (*create_writer) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoFileMetadataWriter* (*create_metadata_writer) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoFileSniffer* (*create_sniffer) (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options); -}; - -struct _ParamSpecPhotoFileFormatDriver { - GParamSpec parent_instance; -}; - -typedef enum { - PHOTO_FILE_FORMAT_FLAGS_NONE = 0x00000000 -} PhotoFileFormatFlags; - -struct _PhotoFileFormatProperties { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileFormatPropertiesPrivate * priv; -}; - -struct _PhotoFileFormatPropertiesClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileFormatProperties *self); - PhotoFileFormat (*get_file_format) (PhotoFileFormatProperties* self); - PhotoFileFormatFlags (*get_flags) (PhotoFileFormatProperties* self); - gboolean (*is_recognized_extension) (PhotoFileFormatProperties* self, const gchar* ext); - gchar* (*get_default_extension) (PhotoFileFormatProperties* self); - gchar** (*get_known_extensions) (PhotoFileFormatProperties* self, int* result_length1); - gchar* (*get_default_mime_type) (PhotoFileFormatProperties* self); - gchar** (*get_mime_types) (PhotoFileFormatProperties* self, int* result_length1); - gchar* (*get_user_visible_name) (PhotoFileFormatProperties* self); -}; - -struct _ParamSpecPhotoFileFormatProperties { - GParamSpec parent_instance; -}; - - -extern PhotoFileFormat* photo_file_format_data_writeable; -extern gint photo_file_format_data_writeable_length1; -PhotoFileFormat* photo_file_format_data_writeable = NULL; -gint photo_file_format_data_writeable_length1 = 0; -static gint _photo_file_format_data_writeable_size_ = 0; -extern PhotoFileFormat* photo_file_format_data_image_writeable; -extern gint photo_file_format_data_image_writeable_length1; -PhotoFileFormat* photo_file_format_data_image_writeable = NULL; -gint photo_file_format_data_image_writeable_length1 = 0; -static gint _photo_file_format_data_image_writeable_size_ = 0; -extern PhotoFileFormat* photo_file_format_data_metadata_writeable; -extern gint photo_file_format_data_metadata_writeable_length1; -PhotoFileFormat* photo_file_format_data_metadata_writeable = NULL; -gint photo_file_format_data_metadata_writeable_length1 = 0; -static gint _photo_file_format_data_metadata_writeable_size_ = 0; -static gpointer photo_file_format_driver_parent_class = NULL; -static gpointer photo_file_format_properties_parent_class = NULL; - -GQuark photo_format_error_quark (void); -GType photo_file_format_get_type (void) G_GNUC_CONST; -PhotoFileFormat* photo_file_format_data_find_applicable (PhotoFileFormatDataApplicableTest test, - void* test_target, - int* result_length1); -PhotoFileFormat* photo_file_format_get_supported (int* result_length1); -static void _vala_array_add46 (PhotoFileFormat* * array, - int* length, - int* size, - PhotoFileFormat value); -PhotoFileFormat* photo_file_format_data_get_writeable (int* result_length1); -static gboolean ___lambda4_ (PhotoFileFormat format); -gboolean photo_file_format_can_write (PhotoFileFormat self); -static gboolean ____lambda4__photo_file_format_data_applicable_test (PhotoFileFormat format, - gpointer self); -static PhotoFileFormat* _vala_array_dup2 (PhotoFileFormat* self, - int length); -PhotoFileFormat* photo_file_format_data_get_image_writeable (int* result_length1); -static gboolean ___lambda26_ (PhotoFileFormat format); -gboolean photo_file_format_can_write_image (PhotoFileFormat self); -static gboolean ____lambda26__photo_file_format_data_applicable_test (PhotoFileFormat format, - gpointer self); -static PhotoFileFormat* _vala_array_dup3 (PhotoFileFormat* self, - int length); -PhotoFileFormat* photo_file_format_data_get_metadata_writeable (int* result_length1); -static gboolean ___lambda27_ (PhotoFileFormat format); -gboolean photo_file_format_can_write_metadata (PhotoFileFormat self); -static gboolean ____lambda27__photo_file_format_data_applicable_test (PhotoFileFormat format, - gpointer self); -static PhotoFileFormat* _vala_array_dup4 (PhotoFileFormat* self, - int length); -PhotoFileFormat* photo_file_format_get_writeable (int* result_length1); -PhotoFileFormat* photo_file_format_get_image_writeable (int* result_length1); -PhotoFileFormat* photo_file_format_get_metadata_writeable (int* result_length1); -PhotoFileFormat photo_file_format_get_by_basename_extension (const gchar* basename); -void disassemble_filename (const gchar* basename, - gchar* * name, - gchar* * ext); -gboolean is_string_empty (const gchar* s); -gpointer photo_file_format_driver_ref (gpointer instance); -void photo_file_format_driver_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_driver (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_format_driver (GValue* value, - gpointer v_object); -void value_take_photo_file_format_driver (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_format_driver (const GValue* value); -GType photo_file_format_driver_get_type (void) G_GNUC_CONST; -static PhotoFileFormatDriver* photo_file_format_get_driver (PhotoFileFormat self); -gpointer photo_file_format_properties_ref (gpointer instance); -void photo_file_format_properties_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_properties (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_format_properties (GValue* value, - gpointer v_object); -void value_take_photo_file_format_properties (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_format_properties (const GValue* value); -GType photo_file_format_properties_get_type (void) G_GNUC_CONST; -PhotoFileFormatProperties* photo_file_format_driver_get_properties (PhotoFileFormatDriver* self); -gboolean photo_file_format_properties_is_recognized_extension (PhotoFileFormatProperties* self, - const gchar* ext); -gboolean photo_file_format_is_file_supported (GFile* file); -gboolean photo_file_format_is_basename_supported (const gchar* basename); -PhotoFileFormat photo_file_format_get_system_default_format (void); -PhotoFileFormat photo_file_format_get_by_file_extension (GFile* file); -gint photo_file_format_serialize (PhotoFileFormat self); -PhotoFileFormat photo_file_format_unserialize (gint value); -PhotoFileFormat photo_file_format_from_gphoto_type (const gchar* type); -PhotoFileFormat photo_file_format_from_pixbuf_name (const gchar* name); -void photo_file_format_init (PhotoFileFormat self); -void jfif_file_format_driver_init (void); -void raw_file_format_driver_init (void); -void png_file_format_driver_init (void); -void photos_tiff_file_format_driver_init (void); -void photos_bmp_file_format_driver_init (void); -const gchar* photo_file_format_to_string (PhotoFileFormat self); -GType jfif_file_format_driver_get_type (void) G_GNUC_CONST; -JfifFileFormatDriver* jfif_file_format_driver_get_instance (void); -GType raw_file_format_driver_get_type (void) G_GNUC_CONST; -RawFileFormatDriver* raw_file_format_driver_get_instance (void); -GType png_file_format_driver_get_type (void) G_GNUC_CONST; -PngFileFormatDriver* png_file_format_driver_get_instance (void); -GType photos_tiff_file_format_driver_get_type (void) G_GNUC_CONST; -PhotosTiffFileFormatDriver* photos_tiff_file_format_driver_get_instance (void); -GType photos_bmp_file_format_driver_get_type (void) G_GNUC_CONST; -PhotosBmpFileFormatDriver* photos_bmp_file_format_driver_get_instance (void); -PhotoFileFormatProperties* photo_file_format_get_properties (PhotoFileFormat self); -gchar* photo_file_format_get_default_basename (PhotoFileFormat self, - const gchar* name); -gchar* photo_file_format_properties_get_default_extension (PhotoFileFormatProperties* self); -gpointer photo_file_adapter_ref (gpointer instance); -void photo_file_adapter_unref (gpointer instance); -GParamSpec* param_spec_photo_file_adapter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_adapter (GValue* value, - gpointer v_object); -void value_take_photo_file_adapter (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_adapter (const GValue* value); -GType photo_file_adapter_get_type (void) G_GNUC_CONST; -GType photo_file_reader_get_type (void) G_GNUC_CONST; -PhotoFileReader* photo_file_format_create_reader (PhotoFileFormat self, - const gchar* filepath); -PhotoFileReader* photo_file_format_driver_create_reader (PhotoFileFormatDriver* self, - const gchar* filepath); -gboolean photo_file_format_driver_can_write_image (PhotoFileFormatDriver* self); -gboolean photo_file_format_driver_can_write_metadata (PhotoFileFormatDriver* self); -GType photo_file_writer_get_type (void) G_GNUC_CONST; -PhotoFileWriter* photo_file_format_create_writer (PhotoFileFormat self, - const gchar* filepath, - GError** error); -PhotoFileWriter* photo_file_format_driver_create_writer (PhotoFileFormatDriver* self, - const gchar* filepath); -GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST; -PhotoFileMetadataWriter* photo_file_format_create_metadata_writer (PhotoFileFormat self, - const gchar* filepath, - GError** error); -PhotoFileMetadataWriter* photo_file_format_driver_create_metadata_writer (PhotoFileFormatDriver* self, - const gchar* filepath); -GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST; -gpointer photo_file_sniffer_ref (gpointer instance); -void photo_file_sniffer_unref (gpointer instance); -GParamSpec* param_spec_photo_file_sniffer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_sniffer (GValue* value, - gpointer v_object); -void value_take_photo_file_sniffer (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_sniffer (const GValue* value); -GType photo_file_sniffer_get_type (void) G_GNUC_CONST; -PhotoFileSniffer* photo_file_format_create_sniffer (PhotoFileFormat self, - GFile* file, - PhotoFileSnifferOptions options); -PhotoFileSniffer* photo_file_format_driver_create_sniffer (PhotoFileFormatDriver* self, - GFile* file, - PhotoFileSnifferOptions options); -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -PhotoMetadata* photo_file_format_create_metadata (PhotoFileFormat self); -PhotoMetadata* photo_file_format_driver_create_metadata (PhotoFileFormatDriver* self); -gchar* photo_file_format_get_default_mime_type (PhotoFileFormat self); -gchar* photo_file_format_properties_get_default_mime_type (PhotoFileFormatProperties* self); -gchar** photo_file_format_get_mime_types (PhotoFileFormat self, - int* result_length1); -gchar** photo_file_format_properties_get_mime_types (PhotoFileFormatProperties* self, - int* result_length1); -gchar** photo_file_format_get_editable_mime_types (int* result_length1); -static void _vala_array_add47 (gchar** * array, - int* length, - int* size, - gchar* value); -static PhotoFileFormatProperties* photo_file_format_driver_real_get_properties (PhotoFileFormatDriver* self); -static PhotoFileReader* photo_file_format_driver_real_create_reader (PhotoFileFormatDriver* self, - const gchar* filepath); -static PhotoMetadata* photo_file_format_driver_real_create_metadata (PhotoFileFormatDriver* self); -static gboolean photo_file_format_driver_real_can_write_image (PhotoFileFormatDriver* self); -static gboolean photo_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* self); -static PhotoFileWriter* photo_file_format_driver_real_create_writer (PhotoFileFormatDriver* self, - const gchar* filepath); -static PhotoFileMetadataWriter* photo_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* self, - const gchar* filepath); -static PhotoFileSniffer* photo_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* self, - GFile* file, - PhotoFileSnifferOptions options); -PhotoFileFormatDriver* photo_file_format_driver_construct (GType object_type); -static void photo_file_format_driver_finalize (PhotoFileFormatDriver * obj); -GType photo_file_format_flags_get_type (void) G_GNUC_CONST; -PhotoFileFormat photo_file_format_properties_get_file_format (PhotoFileFormatProperties* self); -static PhotoFileFormat photo_file_format_properties_real_get_file_format (PhotoFileFormatProperties* self); -PhotoFileFormatFlags photo_file_format_properties_get_flags (PhotoFileFormatProperties* self); -static PhotoFileFormatFlags photo_file_format_properties_real_get_flags (PhotoFileFormatProperties* self); -static gboolean photo_file_format_properties_real_is_recognized_extension (PhotoFileFormatProperties* self, - const gchar* ext); -gboolean is_in_ci_array (const gchar* str, - gchar** strings, - int strings_length1); -gchar** photo_file_format_properties_get_known_extensions (PhotoFileFormatProperties* self, - int* result_length1); -static gchar* photo_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* self); -static gchar** photo_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* self, - int* result_length1); -static gchar* photo_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* self); -static gchar** photo_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* self, - int* result_length1); -gchar* photo_file_format_properties_get_user_visible_name (PhotoFileFormatProperties* self); -static gchar* photo_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* self); -GFile* photo_file_format_properties_convert_file_extension (PhotoFileFormatProperties* self, - GFile* file); -PhotoFileFormatProperties* photo_file_format_properties_construct (GType object_type); -static void photo_file_format_properties_finalize (PhotoFileFormatProperties * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -GQuark -photo_format_error_quark (void) -{ - return g_quark_from_static_string ("photo_format_error-quark"); -} - - -static void -_vala_array_add46 (PhotoFileFormat* * array, - int* length, - int* size, - PhotoFileFormat value) -{ -#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if ((*length) == (*size)) { -#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *array = g_renew (PhotoFileFormat, *array, *size); -#line 507 "PhotoFileFormat.c" - } -#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - (*array)[(*length)++] = value; -#line 511 "PhotoFileFormat.c" -} - - -PhotoFileFormat* -photo_file_format_data_find_applicable (PhotoFileFormatDataApplicableTest test, - void* test_target, - int* result_length1) -{ - PhotoFileFormat* result = NULL; - PhotoFileFormat* applicable = NULL; - PhotoFileFormat* _tmp0_; - gint applicable_length1; - gint _applicable_size_; - gint _tmp1_; - PhotoFileFormat* _tmp2_; - PhotoFileFormat* _tmp6_; - gint _tmp6__length1; -#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = g_new0 (PhotoFileFormat, 0); -#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - applicable = _tmp0_; -#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - applicable_length1 = 0; -#line 23 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _applicable_size_ = applicable_length1; -#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_get_supported (&_tmp1_); -#line 539 "PhotoFileFormat.c" - { - PhotoFileFormat* format_collection = NULL; - gint format_collection_length1 = 0; - gint _format_collection_size_ = 0; - gint format_it = 0; -#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - format_collection = _tmp2_; -#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - format_collection_length1 = _tmp1_; -#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - for (format_it = 0; format_it < _tmp1_; format_it = format_it + 1) { -#line 551 "PhotoFileFormat.c" - PhotoFileFormat format = 0; -#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - format = format_collection[format_it]; -#line 555 "PhotoFileFormat.c" - { - PhotoFileFormat _tmp3_; -#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = format; -#line 25 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (test (_tmp3_, test_target)) { -#line 562 "PhotoFileFormat.c" - PhotoFileFormat* _tmp4_; - gint _tmp4__length1; - PhotoFileFormat _tmp5_; -#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = applicable; -#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4__length1 = applicable_length1; -#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = format; -#line 26 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _vala_array_add46 (&applicable, &applicable_length1, &_applicable_size_, _tmp5_); -#line 574 "PhotoFileFormat.c" - } - } - } -#line 24 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - format_collection = (g_free (format_collection), NULL); -#line 580 "PhotoFileFormat.c" - } -#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6_ = applicable; -#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6__length1 = applicable_length1; -#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (result_length1) { -#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *result_length1 = _tmp6__length1; -#line 590 "PhotoFileFormat.c" - } -#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp6_; -#line 29 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 596 "PhotoFileFormat.c" -} - - -static gboolean -___lambda4_ (PhotoFileFormat format) -{ - gboolean result = FALSE; -#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = photo_file_format_can_write (format); -#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 608 "PhotoFileFormat.c" -} - - -static gboolean -____lambda4__photo_file_format_data_applicable_test (PhotoFileFormat format, - gpointer self) -{ - gboolean result; - result = ___lambda4_ (format); -#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 620 "PhotoFileFormat.c" -} - - -static PhotoFileFormat* -_vala_array_dup2 (PhotoFileFormat* self, - int length) -{ -#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return g_memdup (self, length * sizeof (PhotoFileFormat)); -#line 630 "PhotoFileFormat.c" -} - - -PhotoFileFormat* -photo_file_format_data_get_writeable (int* result_length1) -{ - PhotoFileFormat* result = NULL; - PhotoFileFormat* _tmp0_; - gint _tmp0__length1; - PhotoFileFormat* _tmp3_; - gint _tmp3__length1; - PhotoFileFormat* _tmp4_; - gint _tmp4__length1; - PhotoFileFormat* _tmp5_; - gint _tmp5__length1; -#line 33 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = photo_file_format_data_writeable; -#line 33 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0__length1 = photo_file_format_data_writeable_length1; -#line 33 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp0_ == NULL) { -#line 652 "PhotoFileFormat.c" - gint _tmp1_; - PhotoFileFormat* _tmp2_; -#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_data_find_applicable (____lambda4__photo_file_format_data_applicable_test, NULL, &_tmp1_); -#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_data_writeable = (g_free (photo_file_format_data_writeable), NULL); -#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_data_writeable = _tmp2_; -#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_data_writeable_length1 = _tmp1_; -#line 34 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_data_writeable_size_ = photo_file_format_data_writeable_length1; -#line 665 "PhotoFileFormat.c" - } -#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = photo_file_format_data_writeable; -#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3__length1 = photo_file_format_data_writeable_length1; -#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = (_tmp3_ != NULL) ? _vala_array_dup2 (_tmp3_, _tmp3__length1) : ((gpointer) _tmp3_); -#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4__length1 = _tmp3__length1; -#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = _tmp4_; -#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5__length1 = _tmp4__length1; -#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (result_length1) { -#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *result_length1 = _tmp5__length1; -#line 683 "PhotoFileFormat.c" - } -#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp5_; -#line 36 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 689 "PhotoFileFormat.c" -} - - -static gboolean -___lambda26_ (PhotoFileFormat format) -{ - gboolean result = FALSE; -#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = photo_file_format_can_write_image (format); -#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 701 "PhotoFileFormat.c" -} - - -static gboolean -____lambda26__photo_file_format_data_applicable_test (PhotoFileFormat format, - gpointer self) -{ - gboolean result; - result = ___lambda26_ (format); -#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 713 "PhotoFileFormat.c" -} - - -static PhotoFileFormat* -_vala_array_dup3 (PhotoFileFormat* self, - int length) -{ -#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return g_memdup (self, length * sizeof (PhotoFileFormat)); -#line 723 "PhotoFileFormat.c" -} - - -PhotoFileFormat* -photo_file_format_data_get_image_writeable (int* result_length1) -{ - PhotoFileFormat* result = NULL; - PhotoFileFormat* _tmp0_; - gint _tmp0__length1; - PhotoFileFormat* _tmp3_; - gint _tmp3__length1; - PhotoFileFormat* _tmp4_; - gint _tmp4__length1; - PhotoFileFormat* _tmp5_; - gint _tmp5__length1; -#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = photo_file_format_data_image_writeable; -#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0__length1 = photo_file_format_data_image_writeable_length1; -#line 40 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp0_ == NULL) { -#line 745 "PhotoFileFormat.c" - gint _tmp1_; - PhotoFileFormat* _tmp2_; -#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_data_find_applicable (____lambda26__photo_file_format_data_applicable_test, NULL, &_tmp1_); -#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_data_image_writeable = (g_free (photo_file_format_data_image_writeable), NULL); -#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_data_image_writeable = _tmp2_; -#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_data_image_writeable_length1 = _tmp1_; -#line 41 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_data_image_writeable_size_ = photo_file_format_data_image_writeable_length1; -#line 758 "PhotoFileFormat.c" - } -#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = photo_file_format_data_image_writeable; -#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3__length1 = photo_file_format_data_image_writeable_length1; -#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = (_tmp3_ != NULL) ? _vala_array_dup3 (_tmp3_, _tmp3__length1) : ((gpointer) _tmp3_); -#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4__length1 = _tmp3__length1; -#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = _tmp4_; -#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5__length1 = _tmp4__length1; -#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (result_length1) { -#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *result_length1 = _tmp5__length1; -#line 776 "PhotoFileFormat.c" - } -#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp5_; -#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 782 "PhotoFileFormat.c" -} - - -static gboolean -___lambda27_ (PhotoFileFormat format) -{ - gboolean result = FALSE; -#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = photo_file_format_can_write_metadata (format); -#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 794 "PhotoFileFormat.c" -} - - -static gboolean -____lambda27__photo_file_format_data_applicable_test (PhotoFileFormat format, - gpointer self) -{ - gboolean result; - result = ___lambda27_ (format); -#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 806 "PhotoFileFormat.c" -} - - -static PhotoFileFormat* -_vala_array_dup4 (PhotoFileFormat* self, - int length) -{ -#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return g_memdup (self, length * sizeof (PhotoFileFormat)); -#line 816 "PhotoFileFormat.c" -} - - -PhotoFileFormat* -photo_file_format_data_get_metadata_writeable (int* result_length1) -{ - PhotoFileFormat* result = NULL; - PhotoFileFormat* _tmp0_; - gint _tmp0__length1; - PhotoFileFormat* _tmp3_; - gint _tmp3__length1; - PhotoFileFormat* _tmp4_; - gint _tmp4__length1; - PhotoFileFormat* _tmp5_; - gint _tmp5__length1; -#line 47 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = photo_file_format_data_metadata_writeable; -#line 47 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0__length1 = photo_file_format_data_metadata_writeable_length1; -#line 47 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp0_ == NULL) { -#line 838 "PhotoFileFormat.c" - gint _tmp1_; - PhotoFileFormat* _tmp2_; -#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_data_find_applicable (____lambda27__photo_file_format_data_applicable_test, NULL, &_tmp1_); -#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_data_metadata_writeable = (g_free (photo_file_format_data_metadata_writeable), NULL); -#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_data_metadata_writeable = _tmp2_; -#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_data_metadata_writeable_length1 = _tmp1_; -#line 48 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_data_metadata_writeable_size_ = photo_file_format_data_metadata_writeable_length1; -#line 851 "PhotoFileFormat.c" - } -#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = photo_file_format_data_metadata_writeable; -#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3__length1 = photo_file_format_data_metadata_writeable_length1; -#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = (_tmp3_ != NULL) ? _vala_array_dup4 (_tmp3_, _tmp3__length1) : ((gpointer) _tmp3_); -#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4__length1 = _tmp3__length1; -#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = _tmp4_; -#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5__length1 = _tmp4__length1; -#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (result_length1) { -#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *result_length1 = _tmp5__length1; -#line 869 "PhotoFileFormat.c" - } -#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp5_; -#line 50 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 875 "PhotoFileFormat.c" -} - - -PhotoFileFormat* -photo_file_format_get_supported (int* result_length1) -{ - PhotoFileFormat* result = NULL; - PhotoFileFormat* _tmp0_; - PhotoFileFormat* _tmp1_; - gint _tmp1__length1; -#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = g_new0 (PhotoFileFormat, 5); -#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_[0] = PHOTO_FILE_FORMAT_JFIF; -#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_[1] = PHOTO_FILE_FORMAT_RAW; -#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_[2] = PHOTO_FILE_FORMAT_PNG; -#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_[3] = PHOTO_FILE_FORMAT_TIFF; -#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_[4] = PHOTO_FILE_FORMAT_BMP; -#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = _tmp0_; -#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1__length1 = 5; -#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (result_length1) { -#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *result_length1 = _tmp1__length1; -#line 906 "PhotoFileFormat.c" - } -#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp1_; -#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 912 "PhotoFileFormat.c" -} - - -PhotoFileFormat* -photo_file_format_get_writeable (int* result_length1) -{ - PhotoFileFormat* result = NULL; - gint _tmp0_; - PhotoFileFormat* _tmp1_; - PhotoFileFormat* _tmp2_; - gint _tmp2__length1; -#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = photo_file_format_data_get_writeable (&_tmp0_); -#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = _tmp1_; -#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2__length1 = _tmp0_; -#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (result_length1) { -#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *result_length1 = _tmp2__length1; -#line 934 "PhotoFileFormat.c" - } -#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp2_; -#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 940 "PhotoFileFormat.c" -} - - -PhotoFileFormat* -photo_file_format_get_image_writeable (int* result_length1) -{ - PhotoFileFormat* result = NULL; - gint _tmp0_; - PhotoFileFormat* _tmp1_; - PhotoFileFormat* _tmp2_; - gint _tmp2__length1; -#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = photo_file_format_data_get_image_writeable (&_tmp0_); -#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = _tmp1_; -#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2__length1 = _tmp0_; -#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (result_length1) { -#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *result_length1 = _tmp2__length1; -#line 962 "PhotoFileFormat.c" - } -#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp2_; -#line 73 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 968 "PhotoFileFormat.c" -} - - -PhotoFileFormat* -photo_file_format_get_metadata_writeable (int* result_length1) -{ - PhotoFileFormat* result = NULL; - gint _tmp0_; - PhotoFileFormat* _tmp1_; - PhotoFileFormat* _tmp2_; - gint _tmp2__length1; -#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = photo_file_format_data_get_metadata_writeable (&_tmp0_); -#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = _tmp1_; -#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2__length1 = _tmp0_; -#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (result_length1) { -#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *result_length1 = _tmp2__length1; -#line 990 "PhotoFileFormat.c" - } -#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp2_; -#line 77 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 996 "PhotoFileFormat.c" -} - - -PhotoFileFormat -photo_file_format_get_by_basename_extension (const gchar* basename) -{ - PhotoFileFormat result = 0; - gchar* name = NULL; - gchar* ext = NULL; - gchar* _tmp0_ = NULL; - gchar* _tmp1_ = NULL; - const gchar* _tmp2_; - gint _tmp3_; - PhotoFileFormat* _tmp4_; -#line 80 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (basename != NULL, 0); -#line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - disassemble_filename (basename, &_tmp0_, &_tmp1_); -#line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (name); -#line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - name = _tmp0_; -#line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (ext); -#line 82 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ext = _tmp1_; -#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = ext; -#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (is_string_empty (_tmp2_)) { -#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_UNKNOWN; -#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (ext); -#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (name); -#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1035 "PhotoFileFormat.c" - } -#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = photo_file_format_get_supported (&_tmp3_); -#line 1039 "PhotoFileFormat.c" - { - PhotoFileFormat* file_format_collection = NULL; - gint file_format_collection_length1 = 0; - gint _file_format_collection_size_ = 0; - gint file_format_it = 0; -#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - file_format_collection = _tmp4_; -#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - file_format_collection_length1 = _tmp3_; -#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - for (file_format_it = 0; file_format_it < _tmp3_; file_format_it = file_format_it + 1) { -#line 1051 "PhotoFileFormat.c" - PhotoFileFormat file_format = 0; -#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - file_format = file_format_collection[file_format_it]; -#line 1055 "PhotoFileFormat.c" - { - PhotoFileFormat _tmp5_; - PhotoFileFormatDriver* _tmp6_; - PhotoFileFormatDriver* _tmp7_; - PhotoFileFormatProperties* _tmp8_; - PhotoFileFormatProperties* _tmp9_; - const gchar* _tmp10_; - gboolean _tmp11_; -#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = file_format; -#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6_ = photo_file_format_get_driver (_tmp5_); -#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp7_ = _tmp6_; -#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp8_ = photo_file_format_driver_get_properties (_tmp7_); -#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp9_ = _tmp8_; -#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp10_ = ext; -#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp11_ = photo_file_format_properties_is_recognized_extension (_tmp9_, _tmp10_); -#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_properties_unref0 (_tmp9_); -#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_driver_unref0 (_tmp7_); -#line 88 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp11_) { -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = file_format; -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - file_format_collection = (g_free (file_format_collection), NULL); -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (ext); -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (name); -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1094 "PhotoFileFormat.c" - } - } - } -#line 87 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - file_format_collection = (g_free (file_format_collection), NULL); -#line 1100 "PhotoFileFormat.c" - } -#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_UNKNOWN; -#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (ext); -#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (name); -#line 92 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1110 "PhotoFileFormat.c" -} - - -gboolean -photo_file_format_is_file_supported (GFile* file) -{ - gboolean result = FALSE; - gchar* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_; -#line 95 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = g_file_get_basename (file); -#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = _tmp0_; -#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_is_basename_supported (_tmp1_); -#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (_tmp1_); -#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp2_; -#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1135 "PhotoFileFormat.c" -} - - -gboolean -photo_file_format_is_basename_supported (const gchar* basename) -{ - gboolean result = FALSE; - gchar* name = NULL; - gchar* ext = NULL; - gchar* _tmp0_ = NULL; - gchar* _tmp1_ = NULL; - const gchar* _tmp2_; - gint _tmp3_; - PhotoFileFormat* _tmp4_; -#line 99 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (basename != NULL, FALSE); -#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - disassemble_filename (basename, &_tmp0_, &_tmp1_); -#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (name); -#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - name = _tmp0_; -#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (ext); -#line 101 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ext = _tmp1_; -#line 103 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = ext; -#line 103 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (is_string_empty (_tmp2_)) { -#line 104 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = FALSE; -#line 104 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (ext); -#line 104 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (name); -#line 104 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1174 "PhotoFileFormat.c" - } -#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = photo_file_format_get_supported (&_tmp3_); -#line 1178 "PhotoFileFormat.c" - { - PhotoFileFormat* format_collection = NULL; - gint format_collection_length1 = 0; - gint _format_collection_size_ = 0; - gint format_it = 0; -#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - format_collection = _tmp4_; -#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - format_collection_length1 = _tmp3_; -#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - for (format_it = 0; format_it < _tmp3_; format_it = format_it + 1) { -#line 1190 "PhotoFileFormat.c" - PhotoFileFormat format = 0; -#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - format = format_collection[format_it]; -#line 1194 "PhotoFileFormat.c" - { - PhotoFileFormat _tmp5_; - PhotoFileFormatDriver* _tmp6_; - PhotoFileFormatDriver* _tmp7_; - PhotoFileFormatProperties* _tmp8_; - PhotoFileFormatProperties* _tmp9_; - const gchar* _tmp10_; - gboolean _tmp11_; -#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = format; -#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6_ = photo_file_format_get_driver (_tmp5_); -#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp7_ = _tmp6_; -#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp8_ = photo_file_format_driver_get_properties (_tmp7_); -#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp9_ = _tmp8_; -#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp10_ = ext; -#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp11_ = photo_file_format_properties_is_recognized_extension (_tmp9_, _tmp10_); -#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_properties_unref0 (_tmp9_); -#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_driver_unref0 (_tmp7_); -#line 107 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp11_) { -#line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = TRUE; -#line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - format_collection = (g_free (format_collection), NULL); -#line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (ext); -#line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (name); -#line 108 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1233 "PhotoFileFormat.c" - } - } - } -#line 106 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - format_collection = (g_free (format_collection), NULL); -#line 1239 "PhotoFileFormat.c" - } -#line 111 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = FALSE; -#line 111 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (ext); -#line 111 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (name); -#line 111 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1249 "PhotoFileFormat.c" -} - - -PhotoFileFormat -photo_file_format_get_system_default_format (void) -{ - PhotoFileFormat result = 0; -#line 116 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_JFIF; -#line 116 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1261 "PhotoFileFormat.c" -} - - -PhotoFileFormat -photo_file_format_get_by_file_extension (GFile* file) -{ - PhotoFileFormat result = 0; - gchar* _tmp0_; - gchar* _tmp1_; - PhotoFileFormat _tmp2_; -#line 119 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (G_IS_FILE (file), 0); -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = g_file_get_basename (file); -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = _tmp0_; -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_get_by_basename_extension (_tmp1_); -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (_tmp1_); -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp2_; -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1286 "PhotoFileFormat.c" -} - - -gint -photo_file_format_serialize (PhotoFileFormat self) -{ - gint result = 0; -#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - switch (self) { -#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case PHOTO_FILE_FORMAT_JFIF: -#line 1298 "PhotoFileFormat.c" - { -#line 127 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = 0; -#line 127 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1304 "PhotoFileFormat.c" - } -#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case PHOTO_FILE_FORMAT_RAW: -#line 1308 "PhotoFileFormat.c" - { -#line 130 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = 1; -#line 130 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1314 "PhotoFileFormat.c" - } -#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case PHOTO_FILE_FORMAT_PNG: -#line 1318 "PhotoFileFormat.c" - { -#line 133 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = 2; -#line 133 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1324 "PhotoFileFormat.c" - } -#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case PHOTO_FILE_FORMAT_TIFF: -#line 1328 "PhotoFileFormat.c" - { -#line 136 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = 3; -#line 136 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1334 "PhotoFileFormat.c" - } -#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case PHOTO_FILE_FORMAT_BMP: -#line 1338 "PhotoFileFormat.c" - { -#line 139 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = 4; -#line 139 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1344 "PhotoFileFormat.c" - } - default: -#line 125 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case PHOTO_FILE_FORMAT_UNKNOWN: -#line 1349 "PhotoFileFormat.c" - { -#line 143 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = -1; -#line 143 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1355 "PhotoFileFormat.c" - } - } -} - - -PhotoFileFormat -photo_file_format_unserialize (gint value) -{ - PhotoFileFormat result = 0; -#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - switch (value) { -#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case 0: -#line 1369 "PhotoFileFormat.c" - { -#line 151 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_JFIF; -#line 151 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1375 "PhotoFileFormat.c" - } -#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case 1: -#line 1379 "PhotoFileFormat.c" - { -#line 154 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_RAW; -#line 154 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1385 "PhotoFileFormat.c" - } -#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case 2: -#line 1389 "PhotoFileFormat.c" - { -#line 157 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_PNG; -#line 157 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1395 "PhotoFileFormat.c" - } -#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case 3: -#line 1399 "PhotoFileFormat.c" - { -#line 160 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_TIFF; -#line 160 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1405 "PhotoFileFormat.c" - } -#line 149 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case 4: -#line 1409 "PhotoFileFormat.c" - { -#line 163 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_BMP; -#line 163 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1415 "PhotoFileFormat.c" - } - default: - { -#line 166 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_UNKNOWN; -#line 166 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1423 "PhotoFileFormat.c" - } - } -} - - -PhotoFileFormat -photo_file_format_from_gphoto_type (const gchar* type) -{ - PhotoFileFormat result = 0; - const gchar* _tmp0_; - GQuark _tmp2_ = 0U; -#line 170 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (type != NULL, 0); -#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = type; -#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_); -#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp2_ == g_quark_from_string (GP_MIME_JPEG)) { -#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - switch (0) { -#line 1445 "PhotoFileFormat.c" - default: - { -#line 173 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_JFIF; -#line 173 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1452 "PhotoFileFormat.c" - } - } - } else if ((_tmp2_ == g_quark_from_string (GP_MIME_RAW)) || (_tmp2_ == g_quark_from_string (GP_MIME_CRW))) { -#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - switch (0) { -#line 1458 "PhotoFileFormat.c" - default: - { -#line 177 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_RAW; -#line 177 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1465 "PhotoFileFormat.c" - } - } - } else if (_tmp2_ == g_quark_from_string (GP_MIME_PNG)) { -#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - switch (0) { -#line 1471 "PhotoFileFormat.c" - default: - { -#line 180 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_PNG; -#line 180 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1478 "PhotoFileFormat.c" - } - } - } else if (_tmp2_ == g_quark_from_string (GP_MIME_TIFF)) { -#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - switch (0) { -#line 1484 "PhotoFileFormat.c" - default: - { -#line 183 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_TIFF; -#line 183 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1491 "PhotoFileFormat.c" - } - } - } else if (_tmp2_ == g_quark_from_string (GP_MIME_BMP)) { -#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - switch (0) { -#line 1497 "PhotoFileFormat.c" - default: - { -#line 186 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_BMP; -#line 186 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1504 "PhotoFileFormat.c" - } - } - } else { -#line 171 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - switch (0) { -#line 1510 "PhotoFileFormat.c" - default: - { -#line 190 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_UNKNOWN; -#line 190 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1517 "PhotoFileFormat.c" - } - } - } -} - - -PhotoFileFormat -photo_file_format_from_pixbuf_name (const gchar* name) -{ - PhotoFileFormat result = 0; - const gchar* _tmp0_; - GQuark _tmp2_ = 0U; -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - static GQuark _tmp1_label0 = 0; -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - static GQuark _tmp1_label1 = 0; -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - static GQuark _tmp1_label2 = 0; -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - static GQuark _tmp1_label3 = 0; -#line 195 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (name != NULL, 0); -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = name; -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_); -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp2_ == ((0 != _tmp1_label0) ? _tmp1_label0 : (_tmp1_label0 = g_quark_from_static_string ("jpeg")))) { -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - switch (0) { -#line 1548 "PhotoFileFormat.c" - default: - { -#line 198 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_JFIF; -#line 198 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1555 "PhotoFileFormat.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label1) ? _tmp1_label1 : (_tmp1_label1 = g_quark_from_static_string ("png")))) { -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - switch (0) { -#line 1561 "PhotoFileFormat.c" - default: - { -#line 201 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_PNG; -#line 201 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1568 "PhotoFileFormat.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label2) ? _tmp1_label2 : (_tmp1_label2 = g_quark_from_static_string ("tiff")))) { -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - switch (0) { -#line 1574 "PhotoFileFormat.c" - default: - { -#line 204 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_TIFF; -#line 204 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1581 "PhotoFileFormat.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label3) ? _tmp1_label3 : (_tmp1_label3 = g_quark_from_static_string ("bmp")))) { -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - switch (0) { -#line 1587 "PhotoFileFormat.c" - default: - { -#line 207 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_BMP; -#line 207 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1594 "PhotoFileFormat.c" - } - } - } else { -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - switch (0) { -#line 1600 "PhotoFileFormat.c" - default: - { -#line 210 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = PHOTO_FILE_FORMAT_UNKNOWN; -#line 210 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1607 "PhotoFileFormat.c" - } - } - } -} - - -void -photo_file_format_init (PhotoFileFormat self) -{ -#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - switch (self) { -#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case PHOTO_FILE_FORMAT_JFIF: -#line 1621 "PhotoFileFormat.c" - { -#line 217 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - jfif_file_format_driver_init (); -#line 218 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - break; -#line 1627 "PhotoFileFormat.c" - } -#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case PHOTO_FILE_FORMAT_RAW: -#line 1631 "PhotoFileFormat.c" - { -#line 221 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - raw_file_format_driver_init (); -#line 222 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - break; -#line 1637 "PhotoFileFormat.c" - } -#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case PHOTO_FILE_FORMAT_PNG: -#line 1641 "PhotoFileFormat.c" - { -#line 225 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - png_file_format_driver_init (); -#line 226 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - break; -#line 1647 "PhotoFileFormat.c" - } -#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case PHOTO_FILE_FORMAT_TIFF: -#line 1651 "PhotoFileFormat.c" - { -#line 229 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photos_tiff_file_format_driver_init (); -#line 230 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - break; -#line 1657 "PhotoFileFormat.c" - } -#line 215 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case PHOTO_FILE_FORMAT_BMP: -#line 1661 "PhotoFileFormat.c" - { -#line 233 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photos_bmp_file_format_driver_init (); -#line 234 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - break; -#line 1667 "PhotoFileFormat.c" - } - default: - { - GEnumValue* _tmp0_; -#line 237 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self); -#line 237 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_error ("PhotoFileFormat.vala:237: Unsupported file format %s", (_tmp0_ != NULL) ? _tmp0_->value_name : NULL); -#line 1676 "PhotoFileFormat.c" - } - } -} - - -static PhotoFileFormatDriver* -photo_file_format_get_driver (PhotoFileFormat self) -{ - PhotoFileFormatDriver* result = NULL; -#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - switch (self) { -#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case PHOTO_FILE_FORMAT_JFIF: -#line 1690 "PhotoFileFormat.c" - { - JfifFileFormatDriver* _tmp0_; -#line 244 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = jfif_file_format_driver_get_instance (); -#line 244 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver); -#line 244 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1699 "PhotoFileFormat.c" - } -#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case PHOTO_FILE_FORMAT_RAW: -#line 1703 "PhotoFileFormat.c" - { - RawFileFormatDriver* _tmp1_; -#line 247 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = raw_file_format_driver_get_instance (); -#line 247 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver); -#line 247 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1712 "PhotoFileFormat.c" - } -#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case PHOTO_FILE_FORMAT_PNG: -#line 1716 "PhotoFileFormat.c" - { - PngFileFormatDriver* _tmp2_; -#line 250 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = png_file_format_driver_get_instance (); -#line 250 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver); -#line 250 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1725 "PhotoFileFormat.c" - } -#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case PHOTO_FILE_FORMAT_TIFF: -#line 1729 "PhotoFileFormat.c" - { - PhotosTiffFileFormatDriver* _tmp3_; -#line 253 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = photos_tiff_file_format_driver_get_instance (); -#line 253 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver); -#line 253 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1738 "PhotoFileFormat.c" - } -#line 242 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - case PHOTO_FILE_FORMAT_BMP: -#line 1742 "PhotoFileFormat.c" - { - PhotosBmpFileFormatDriver* _tmp4_; -#line 256 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = photos_bmp_file_format_driver_get_instance (); -#line 256 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver); -#line 256 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1751 "PhotoFileFormat.c" - } - default: - { - GEnumValue* _tmp5_; -#line 259 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self); -#line 259 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_error ("PhotoFileFormat.vala:259: Unsupported file format %s", (_tmp5_ != NULL) ? _tmp5_->value_name : NULL); -#line 1760 "PhotoFileFormat.c" - } - } -} - - -PhotoFileFormatProperties* -photo_file_format_get_properties (PhotoFileFormat self) -{ - PhotoFileFormatProperties* result = NULL; - PhotoFileFormatDriver* _tmp0_; - PhotoFileFormatDriver* _tmp1_; - PhotoFileFormatProperties* _tmp2_; - PhotoFileFormatProperties* _tmp3_; -#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = photo_file_format_get_driver (self); -#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = _tmp0_; -#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_driver_get_properties (_tmp1_); -#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = _tmp2_; -#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_driver_unref0 (_tmp1_); -#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp3_; -#line 264 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1788 "PhotoFileFormat.c" -} - - -gchar* -photo_file_format_get_default_basename (PhotoFileFormat self, - const gchar* name) -{ - gchar* result = NULL; - PhotoFileFormatProperties* _tmp0_; - PhotoFileFormatProperties* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 268 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = photo_file_format_get_properties (self); -#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = _tmp0_; -#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_properties_get_default_extension (_tmp1_); -#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = _tmp2_; -#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = g_strdup_printf ("%s.%s", name, _tmp3_); -#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = _tmp4_; -#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (_tmp3_); -#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_properties_unref0 (_tmp1_); -#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp5_; -#line 269 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1825 "PhotoFileFormat.c" -} - - -PhotoFileReader* -photo_file_format_create_reader (PhotoFileFormat self, - const gchar* filepath) -{ - PhotoFileReader* result = NULL; - PhotoFileFormatDriver* _tmp0_; - PhotoFileFormatDriver* _tmp1_; - PhotoFileReader* _tmp2_; - PhotoFileReader* _tmp3_; -#line 272 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = photo_file_format_get_driver (self); -#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = _tmp0_; -#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_driver_create_reader (_tmp1_, filepath); -#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = _tmp2_; -#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_driver_unref0 (_tmp1_); -#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp3_; -#line 273 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1854 "PhotoFileFormat.c" -} - - -gboolean -photo_file_format_can_write (PhotoFileFormat self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; -#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (photo_file_format_can_write_image (self)) { -#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = photo_file_format_can_write_metadata (self); -#line 1867 "PhotoFileFormat.c" - } else { -#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = FALSE; -#line 1871 "PhotoFileFormat.c" - } -#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp0_; -#line 278 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1877 "PhotoFileFormat.c" -} - - -gboolean -photo_file_format_can_write_image (PhotoFileFormat self) -{ - gboolean result = FALSE; - PhotoFileFormatDriver* _tmp0_; - PhotoFileFormatDriver* _tmp1_; - gboolean _tmp2_; -#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = photo_file_format_get_driver (self); -#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = _tmp0_; -#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_driver_can_write_image (_tmp1_); -#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_driver_unref0 (_tmp1_); -#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp2_; -#line 282 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1900 "PhotoFileFormat.c" -} - - -gboolean -photo_file_format_can_write_metadata (PhotoFileFormat self) -{ - gboolean result = FALSE; - PhotoFileFormatDriver* _tmp0_; - PhotoFileFormatDriver* _tmp1_; - gboolean _tmp2_; -#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = photo_file_format_get_driver (self); -#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = _tmp0_; -#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_driver_can_write_metadata (_tmp1_); -#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_driver_unref0 (_tmp1_); -#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp2_; -#line 286 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1923 "PhotoFileFormat.c" -} - - -PhotoFileWriter* -photo_file_format_create_writer (PhotoFileFormat self, - const gchar* filepath, - GError** error) -{ - PhotoFileWriter* result = NULL; - PhotoFileWriter* writer = NULL; - PhotoFileFormatDriver* _tmp0_; - PhotoFileFormatDriver* _tmp1_; - PhotoFileWriter* _tmp2_; - PhotoFileWriter* _tmp3_; - PhotoFileWriter* _tmp4_; - GError * _inner_error_ = NULL; -#line 289 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = photo_file_format_get_driver (self); -#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = _tmp0_; -#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_driver_create_writer (_tmp1_, filepath); -#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = _tmp2_; -#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_driver_unref0 (_tmp1_); -#line 290 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - writer = _tmp3_; -#line 291 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = writer; -#line 291 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp4_ == NULL) { -#line 1958 "PhotoFileFormat.c" - GEnumValue* _tmp5_; - GError* _tmp6_; -#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self); -#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6_ = g_error_new (PHOTO_FORMAT_ERROR, PHOTO_FORMAT_ERROR_READ_ONLY, "File format %s is read-only", (_tmp5_ != NULL) ? _tmp5_->value_name : NULL); -#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _inner_error_ = _tmp6_; -#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_inner_error_->domain == PHOTO_FORMAT_ERROR) { -#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_propagate_error (error, _inner_error_); -#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_adapter_unref0 (writer); -#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 1975 "PhotoFileFormat.c" - } else { -#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_adapter_unref0 (writer); -#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_clear_error (&_inner_error_); -#line 292 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 1985 "PhotoFileFormat.c" - } - } -#line 294 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = writer; -#line 294 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 1992 "PhotoFileFormat.c" -} - - -PhotoFileMetadataWriter* -photo_file_format_create_metadata_writer (PhotoFileFormat self, - const gchar* filepath, - GError** error) -{ - PhotoFileMetadataWriter* result = NULL; - PhotoFileMetadataWriter* writer = NULL; - PhotoFileFormatDriver* _tmp0_; - PhotoFileFormatDriver* _tmp1_; - PhotoFileMetadataWriter* _tmp2_; - PhotoFileMetadataWriter* _tmp3_; - PhotoFileMetadataWriter* _tmp4_; - GError * _inner_error_ = NULL; -#line 297 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = photo_file_format_get_driver (self); -#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = _tmp0_; -#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_driver_create_metadata_writer (_tmp1_, filepath); -#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = _tmp2_; -#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_driver_unref0 (_tmp1_); -#line 298 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - writer = _tmp3_; -#line 299 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = writer; -#line 299 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp4_ == NULL) { -#line 2027 "PhotoFileFormat.c" - GEnumValue* _tmp5_; - GError* _tmp6_; -#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = g_enum_get_value (g_type_class_ref (TYPE_PHOTO_FILE_FORMAT), self); -#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6_ = g_error_new (PHOTO_FORMAT_ERROR, PHOTO_FORMAT_ERROR_READ_ONLY, "File format %s metadata is read-only", (_tmp5_ != NULL) ? _tmp5_->value_name : NULL); -#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _inner_error_ = _tmp6_; -#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_inner_error_->domain == PHOTO_FORMAT_ERROR) { -#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_propagate_error (error, _inner_error_); -#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_adapter_unref0 (writer); -#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 2044 "PhotoFileFormat.c" - } else { -#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_adapter_unref0 (writer); -#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_clear_error (&_inner_error_); -#line 300 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 2054 "PhotoFileFormat.c" - } - } -#line 302 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = writer; -#line 302 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 2061 "PhotoFileFormat.c" -} - - -PhotoFileSniffer* -photo_file_format_create_sniffer (PhotoFileFormat self, - GFile* file, - PhotoFileSnifferOptions options) -{ - PhotoFileSniffer* result = NULL; - PhotoFileFormatDriver* _tmp0_; - PhotoFileFormatDriver* _tmp1_; - PhotoFileSniffer* _tmp2_; - PhotoFileSniffer* _tmp3_; -#line 305 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = photo_file_format_get_driver (self); -#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = _tmp0_; -#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_driver_create_sniffer (_tmp1_, file, options); -#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = _tmp2_; -#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_driver_unref0 (_tmp1_); -#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp3_; -#line 306 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 2091 "PhotoFileFormat.c" -} - - -PhotoMetadata* -photo_file_format_create_metadata (PhotoFileFormat self) -{ - PhotoMetadata* result = NULL; - PhotoFileFormatDriver* _tmp0_; - PhotoFileFormatDriver* _tmp1_; - PhotoMetadata* _tmp2_; - PhotoMetadata* _tmp3_; -#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = photo_file_format_get_driver (self); -#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = _tmp0_; -#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_driver_create_metadata (_tmp1_); -#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = _tmp2_; -#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_driver_unref0 (_tmp1_); -#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp3_; -#line 310 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 2117 "PhotoFileFormat.c" -} - - -gchar* -photo_file_format_get_default_mime_type (PhotoFileFormat self) -{ - gchar* result = NULL; - PhotoFileFormatDriver* _tmp0_; - PhotoFileFormatDriver* _tmp1_; - PhotoFileFormatProperties* _tmp2_; - PhotoFileFormatProperties* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = photo_file_format_get_driver (self); -#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = _tmp0_; -#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_driver_get_properties (_tmp1_); -#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = _tmp2_; -#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = photo_file_format_properties_get_default_mime_type (_tmp3_); -#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = _tmp4_; -#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_properties_unref0 (_tmp3_); -#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_driver_unref0 (_tmp1_); -#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp5_; -#line 314 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 2151 "PhotoFileFormat.c" -} - - -gchar** -photo_file_format_get_mime_types (PhotoFileFormat self, - int* result_length1) -{ - gchar** result = NULL; - PhotoFileFormatDriver* _tmp0_; - PhotoFileFormatDriver* _tmp1_; - PhotoFileFormatProperties* _tmp2_; - PhotoFileFormatProperties* _tmp3_; - gint _tmp4_; - gchar** _tmp5_; - gchar** _tmp6_; - gint _tmp6__length1; - gchar** _tmp7_; - gint _tmp7__length1; -#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = photo_file_format_get_driver (self); -#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = _tmp0_; -#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_driver_get_properties (_tmp1_); -#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = _tmp2_; -#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = photo_file_format_properties_get_mime_types (_tmp3_, &_tmp4_); -#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6_ = _tmp5_; -#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6__length1 = _tmp4_; -#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_properties_unref0 (_tmp3_); -#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _photo_file_format_driver_unref0 (_tmp1_); -#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp7_ = _tmp6_; -#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp7__length1 = _tmp6__length1; -#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (result_length1) { -#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *result_length1 = _tmp7__length1; -#line 2196 "PhotoFileFormat.c" - } -#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp7_; -#line 318 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 2202 "PhotoFileFormat.c" -} - - -static void -_vala_array_add47 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if ((*length) == (*size)) { -#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 2218 "PhotoFileFormat.c" - } -#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - (*array)[(*length)++] = value; -#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - (*array)[*length] = NULL; -#line 2224 "PhotoFileFormat.c" -} - - -gchar** -photo_file_format_get_editable_mime_types (int* result_length1) -{ - gchar** result = NULL; - gchar** mime_types = NULL; - gchar** _tmp0_; - gint mime_types_length1; - gint _mime_types_size_; - gint _tmp1_; - PhotoFileFormat* _tmp2_; - gchar** _tmp10_; - gint _tmp10__length1; -#line 322 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = g_new0 (gchar*, 0 + 1); -#line 322 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - mime_types = _tmp0_; -#line 322 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - mime_types_length1 = 0; -#line 322 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _mime_types_size_ = mime_types_length1; -#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = photo_file_format_get_supported (&_tmp1_); -#line 2250 "PhotoFileFormat.c" - { - PhotoFileFormat* file_format_collection = NULL; - gint file_format_collection_length1 = 0; - gint _file_format_collection_size_ = 0; - gint file_format_it = 0; -#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - file_format_collection = _tmp2_; -#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - file_format_collection_length1 = _tmp1_; -#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - for (file_format_it = 0; file_format_it < _tmp1_; file_format_it = file_format_it + 1) { -#line 2262 "PhotoFileFormat.c" - PhotoFileFormat file_format = 0; -#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - file_format = file_format_collection[file_format_it]; -#line 2266 "PhotoFileFormat.c" - { - PhotoFileFormat _tmp3_; - gint _tmp4_; - gchar** _tmp5_; -#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = file_format; -#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = photo_file_format_get_mime_types (_tmp3_, &_tmp4_); -#line 2275 "PhotoFileFormat.c" - { - gchar** mime_type_collection = NULL; - gint mime_type_collection_length1 = 0; - gint _mime_type_collection_size_ = 0; - gint mime_type_it = 0; -#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - mime_type_collection = _tmp5_; -#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - mime_type_collection_length1 = _tmp4_; -#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - for (mime_type_it = 0; mime_type_it < _tmp4_; mime_type_it = mime_type_it + 1) { -#line 2287 "PhotoFileFormat.c" - gchar* _tmp6_; - gchar* mime_type = NULL; -#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6_ = g_strdup (mime_type_collection[mime_type_it]); -#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - mime_type = _tmp6_; -#line 2294 "PhotoFileFormat.c" - { - gchar** _tmp7_; - gint _tmp7__length1; - const gchar* _tmp8_; - gchar* _tmp9_; -#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp7_ = mime_types; -#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp7__length1 = mime_types_length1; -#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp8_ = mime_type; -#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 326 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _vala_array_add47 (&mime_types, &mime_types_length1, &_mime_types_size_, _tmp9_); -#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (mime_type); -#line 2312 "PhotoFileFormat.c" - } - } -#line 325 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - mime_type_collection = (_vala_array_free (mime_type_collection, mime_type_collection_length1, (GDestroyNotify) g_free), NULL); -#line 2317 "PhotoFileFormat.c" - } - } - } -#line 324 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - file_format_collection = (g_free (file_format_collection), NULL); -#line 2323 "PhotoFileFormat.c" - } -#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp10_ = mime_types; -#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp10__length1 = mime_types_length1; -#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (result_length1) { -#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *result_length1 = _tmp10__length1; -#line 2333 "PhotoFileFormat.c" - } -#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp10_; -#line 329 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 2339 "PhotoFileFormat.c" -} - - -GType -photo_file_format_get_type (void) -{ - static volatile gsize photo_file_format_type_id__volatile = 0; - if (g_once_init_enter (&photo_file_format_type_id__volatile)) { - static const GEnumValue values[] = {{PHOTO_FILE_FORMAT_JFIF, "PHOTO_FILE_FORMAT_JFIF", "jfif"}, {PHOTO_FILE_FORMAT_RAW, "PHOTO_FILE_FORMAT_RAW", "raw"}, {PHOTO_FILE_FORMAT_PNG, "PHOTO_FILE_FORMAT_PNG", "png"}, {PHOTO_FILE_FORMAT_TIFF, "PHOTO_FILE_FORMAT_TIFF", "tiff"}, {PHOTO_FILE_FORMAT_BMP, "PHOTO_FILE_FORMAT_BMP", "bmp"}, {PHOTO_FILE_FORMAT_UNKNOWN, "PHOTO_FILE_FORMAT_UNKNOWN", "unknown"}, {0, NULL, NULL}}; - GType photo_file_format_type_id; - photo_file_format_type_id = g_enum_register_static ("PhotoFileFormat", values); - g_once_init_leave (&photo_file_format_type_id__volatile, photo_file_format_type_id); - } - return photo_file_format_type_id__volatile; -} - - -static PhotoFileFormatProperties* -photo_file_format_driver_real_get_properties (PhotoFileFormatDriver* self) -{ -#line 345 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_get_properties'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 345 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 2364 "PhotoFileFormat.c" -} - - -PhotoFileFormatProperties* -photo_file_format_driver_get_properties (PhotoFileFormatDriver* self) -{ -#line 345 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL); -#line 345 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->get_properties (self); -#line 2375 "PhotoFileFormat.c" -} - - -static PhotoFileReader* -photo_file_format_driver_real_create_reader (PhotoFileFormatDriver* self, - const gchar* filepath) -{ -#line 347 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_reader'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 347 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 2387 "PhotoFileFormat.c" -} - - -PhotoFileReader* -photo_file_format_driver_create_reader (PhotoFileFormatDriver* self, - const gchar* filepath) -{ -#line 347 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL); -#line 347 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_reader (self, filepath); -#line 2399 "PhotoFileFormat.c" -} - - -static PhotoMetadata* -photo_file_format_driver_real_create_metadata (PhotoFileFormatDriver* self) -{ -#line 349 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_metadata'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 349 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 2410 "PhotoFileFormat.c" -} - - -PhotoMetadata* -photo_file_format_driver_create_metadata (PhotoFileFormatDriver* self) -{ -#line 349 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL); -#line 349 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_metadata (self); -#line 2421 "PhotoFileFormat.c" -} - - -static gboolean -photo_file_format_driver_real_can_write_image (PhotoFileFormatDriver* self) -{ - gboolean _tmp0_ = FALSE; -#line 351 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_can_write_image'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 351 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return _tmp0_; -#line 2433 "PhotoFileFormat.c" -} - - -gboolean -photo_file_format_driver_can_write_image (PhotoFileFormatDriver* self) -{ -#line 351 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), FALSE); -#line 351 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->can_write_image (self); -#line 2444 "PhotoFileFormat.c" -} - - -static gboolean -photo_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* self) -{ - gboolean _tmp0_ = FALSE; -#line 353 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_can_write_metadata'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 353 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return _tmp0_; -#line 2456 "PhotoFileFormat.c" -} - - -gboolean -photo_file_format_driver_can_write_metadata (PhotoFileFormatDriver* self) -{ -#line 353 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), FALSE); -#line 353 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->can_write_metadata (self); -#line 2467 "PhotoFileFormat.c" -} - - -static PhotoFileWriter* -photo_file_format_driver_real_create_writer (PhotoFileFormatDriver* self, - const gchar* filepath) -{ -#line 355 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_writer'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 355 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 2479 "PhotoFileFormat.c" -} - - -PhotoFileWriter* -photo_file_format_driver_create_writer (PhotoFileFormatDriver* self, - const gchar* filepath) -{ -#line 355 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL); -#line 355 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_writer (self, filepath); -#line 2491 "PhotoFileFormat.c" -} - - -static PhotoFileMetadataWriter* -photo_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* self, - const gchar* filepath) -{ -#line 357 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_metadata_writer'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 357 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 2503 "PhotoFileFormat.c" -} - - -PhotoFileMetadataWriter* -photo_file_format_driver_create_metadata_writer (PhotoFileFormatDriver* self, - const gchar* filepath) -{ -#line 357 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL); -#line 357 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_metadata_writer (self, filepath); -#line 2515 "PhotoFileFormat.c" -} - - -static PhotoFileSniffer* -photo_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* self, - GFile* file, - PhotoFileSnifferOptions options) -{ -#line 359 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_format_driver_create_sniffer'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 359 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 2528 "PhotoFileFormat.c" -} - - -PhotoFileSniffer* -photo_file_format_driver_create_sniffer (PhotoFileFormatDriver* self, - GFile* file, - PhotoFileSnifferOptions options) -{ -#line 359 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_DRIVER (self), NULL); -#line 359 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->create_sniffer (self, file, options); -#line 2541 "PhotoFileFormat.c" -} - - -PhotoFileFormatDriver* -photo_file_format_driver_construct (GType object_type) -{ - PhotoFileFormatDriver* self = NULL; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - self = (PhotoFileFormatDriver*) g_type_create_instance (object_type); -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return self; -#line 2553 "PhotoFileFormat.c" -} - - -static void -value_photo_file_format_driver_init (GValue* value) -{ -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - value->data[0].v_pointer = NULL; -#line 2562 "PhotoFileFormat.c" -} - - -static void -value_photo_file_format_driver_free_value (GValue* value) -{ -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (value->data[0].v_pointer) { -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_driver_unref (value->data[0].v_pointer); -#line 2573 "PhotoFileFormat.c" - } -} - - -static void -value_photo_file_format_driver_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (src_value->data[0].v_pointer) { -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - dest_value->data[0].v_pointer = photo_file_format_driver_ref (src_value->data[0].v_pointer); -#line 2586 "PhotoFileFormat.c" - } else { -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - dest_value->data[0].v_pointer = NULL; -#line 2590 "PhotoFileFormat.c" - } -} - - -static gpointer -value_photo_file_format_driver_peek_pointer (const GValue* value) -{ -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return value->data[0].v_pointer; -#line 2600 "PhotoFileFormat.c" -} - - -static gchar* -value_photo_file_format_driver_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (collect_values[0].v_pointer) { -#line 2612 "PhotoFileFormat.c" - PhotoFileFormatDriver * object; - object = collect_values[0].v_pointer; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (object->parent_instance.g_class == NULL) { -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2619 "PhotoFileFormat.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2623 "PhotoFileFormat.c" - } -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - value->data[0].v_pointer = photo_file_format_driver_ref (object); -#line 2627 "PhotoFileFormat.c" - } else { -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - value->data[0].v_pointer = NULL; -#line 2631 "PhotoFileFormat.c" - } -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 2635 "PhotoFileFormat.c" -} - - -static gchar* -value_photo_file_format_driver_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PhotoFileFormatDriver ** object_p; - object_p = collect_values[0].v_pointer; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (!object_p) { -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2651 "PhotoFileFormat.c" - } -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (!value->data[0].v_pointer) { -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *object_p = NULL; -#line 2657 "PhotoFileFormat.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *object_p = value->data[0].v_pointer; -#line 2661 "PhotoFileFormat.c" - } else { -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *object_p = photo_file_format_driver_ref (value->data[0].v_pointer); -#line 2665 "PhotoFileFormat.c" - } -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 2669 "PhotoFileFormat.c" -} - - -GParamSpec* -param_spec_photo_file_format_driver (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecPhotoFileFormatDriver* spec; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_FILE_FORMAT_DRIVER), NULL); -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return G_PARAM_SPEC (spec); -#line 2689 "PhotoFileFormat.c" -} - - -gpointer -value_get_photo_file_format_driver (const GValue* value) -{ -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_DRIVER), NULL); -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return value->data[0].v_pointer; -#line 2700 "PhotoFileFormat.c" -} - - -void -value_set_photo_file_format_driver (GValue* value, - gpointer v_object) -{ - PhotoFileFormatDriver * old; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_DRIVER)); -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - old = value->data[0].v_pointer; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (v_object) { -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_FORMAT_DRIVER)); -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - value->data[0].v_pointer = v_object; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_driver_ref (value->data[0].v_pointer); -#line 2723 "PhotoFileFormat.c" - } else { -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - value->data[0].v_pointer = NULL; -#line 2727 "PhotoFileFormat.c" - } -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (old) { -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_driver_unref (old); -#line 2733 "PhotoFileFormat.c" - } -} - - -void -value_take_photo_file_format_driver (GValue* value, - gpointer v_object) -{ - PhotoFileFormatDriver * old; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_DRIVER)); -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - old = value->data[0].v_pointer; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (v_object) { -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_FORMAT_DRIVER)); -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - value->data[0].v_pointer = v_object; -#line 2755 "PhotoFileFormat.c" - } else { -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - value->data[0].v_pointer = NULL; -#line 2759 "PhotoFileFormat.c" - } -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (old) { -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_driver_unref (old); -#line 2765 "PhotoFileFormat.c" - } -} - - -static void -photo_file_format_driver_class_init (PhotoFileFormatDriverClass * klass) -{ -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_driver_parent_class = g_type_class_peek_parent (klass); -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatDriverClass *) klass)->finalize = photo_file_format_driver_finalize; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatDriverClass *) klass)->get_properties = (PhotoFileFormatProperties* (*) (PhotoFileFormatDriver *)) photo_file_format_driver_real_get_properties; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatDriverClass *) klass)->create_reader = (PhotoFileReader* (*) (PhotoFileFormatDriver *, const gchar*)) photo_file_format_driver_real_create_reader; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatDriverClass *) klass)->create_metadata = (PhotoMetadata* (*) (PhotoFileFormatDriver *)) photo_file_format_driver_real_create_metadata; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatDriverClass *) klass)->can_write_image = (gboolean (*) (PhotoFileFormatDriver *)) photo_file_format_driver_real_can_write_image; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatDriverClass *) klass)->can_write_metadata = (gboolean (*) (PhotoFileFormatDriver *)) photo_file_format_driver_real_can_write_metadata; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatDriverClass *) klass)->create_writer = (PhotoFileWriter* (*) (PhotoFileFormatDriver *, const gchar*)) photo_file_format_driver_real_create_writer; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatDriverClass *) klass)->create_metadata_writer = (PhotoFileMetadataWriter* (*) (PhotoFileFormatDriver *, const gchar*)) photo_file_format_driver_real_create_metadata_writer; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatDriverClass *) klass)->create_sniffer = (PhotoFileSniffer* (*) (PhotoFileFormatDriver *, GFile*, PhotoFileSnifferOptions)) photo_file_format_driver_real_create_sniffer; -#line 2793 "PhotoFileFormat.c" -} - - -static void -photo_file_format_driver_instance_init (PhotoFileFormatDriver * self) -{ -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - self->ref_count = 1; -#line 2802 "PhotoFileFormat.c" -} - - -static void -photo_file_format_driver_finalize (PhotoFileFormatDriver * obj) -{ - PhotoFileFormatDriver * self; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver); -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_signal_handlers_destroy (self); -#line 2814 "PhotoFileFormat.c" -} - - -GType -photo_file_format_driver_get_type (void) -{ - static volatile gsize photo_file_format_driver_type_id__volatile = 0; - if (g_once_init_enter (&photo_file_format_driver_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_photo_file_format_driver_init, value_photo_file_format_driver_free_value, value_photo_file_format_driver_copy_value, value_photo_file_format_driver_peek_pointer, "p", value_photo_file_format_driver_collect_value, "p", value_photo_file_format_driver_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PhotoFileFormatDriverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_format_driver_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileFormatDriver), 0, (GInstanceInitFunc) photo_file_format_driver_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType photo_file_format_driver_type_id; - photo_file_format_driver_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoFileFormatDriver", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&photo_file_format_driver_type_id__volatile, photo_file_format_driver_type_id); - } - return photo_file_format_driver_type_id__volatile; -} - - -gpointer -photo_file_format_driver_ref (gpointer instance) -{ - PhotoFileFormatDriver * self; - self = instance; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_atomic_int_inc (&self->ref_count); -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return instance; -#line 2843 "PhotoFileFormat.c" -} - - -void -photo_file_format_driver_unref (gpointer instance) -{ - PhotoFileFormatDriver * self; - self = instance; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - PHOTO_FILE_FORMAT_DRIVER_GET_CLASS (self)->finalize (self); -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2858 "PhotoFileFormat.c" - } -} - - -GType -photo_file_format_flags_get_type (void) -{ - static volatile gsize photo_file_format_flags_type_id__volatile = 0; - if (g_once_init_enter (&photo_file_format_flags_type_id__volatile)) { - static const GEnumValue values[] = {{PHOTO_FILE_FORMAT_FLAGS_NONE, "PHOTO_FILE_FORMAT_FLAGS_NONE", "none"}, {0, NULL, NULL}}; - GType photo_file_format_flags_type_id; - photo_file_format_flags_type_id = g_enum_register_static ("PhotoFileFormatFlags", values); - g_once_init_leave (&photo_file_format_flags_type_id__volatile, photo_file_format_flags_type_id); - } - return photo_file_format_flags_type_id__volatile; -} - - -static PhotoFileFormat -photo_file_format_properties_real_get_file_format (PhotoFileFormatProperties* self) -{ -#line 374 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_file_format'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 374 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return 0; -#line 2884 "PhotoFileFormat.c" -} - - -PhotoFileFormat -photo_file_format_properties_get_file_format (PhotoFileFormatProperties* self) -{ -#line 374 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), 0); -#line 374 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_file_format (self); -#line 2895 "PhotoFileFormat.c" -} - - -static PhotoFileFormatFlags -photo_file_format_properties_real_get_flags (PhotoFileFormatProperties* self) -{ -#line 376 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_flags'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 376 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return 0; -#line 2906 "PhotoFileFormat.c" -} - - -PhotoFileFormatFlags -photo_file_format_properties_get_flags (PhotoFileFormatProperties* self) -{ -#line 376 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), 0); -#line 376 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_flags (self); -#line 2917 "PhotoFileFormat.c" -} - - -static gboolean -photo_file_format_properties_real_is_recognized_extension (PhotoFileFormatProperties* self, - const gchar* ext) -{ - gboolean result = FALSE; - gint _tmp0_; - gchar** _tmp1_; - gchar** _tmp2_; - gint _tmp2__length1; - gboolean _tmp3_; -#line 380 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (ext != NULL, FALSE); -#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = photo_file_format_properties_get_known_extensions (self, &_tmp0_); -#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = _tmp1_; -#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2__length1 = _tmp0_; -#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp3_ = is_in_ci_array (ext, _tmp2_, _tmp0_); -#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp2_ = (_vala_array_free (_tmp2_, _tmp2__length1, (GDestroyNotify) g_free), NULL); -#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp3_; -#line 381 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 2947 "PhotoFileFormat.c" -} - - -gboolean -photo_file_format_properties_is_recognized_extension (PhotoFileFormatProperties* self, - const gchar* ext) -{ -#line 380 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), FALSE); -#line 380 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->is_recognized_extension (self, ext); -#line 2959 "PhotoFileFormat.c" -} - - -static gchar* -photo_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* self) -{ -#line 384 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_default_extension'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 384 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 2970 "PhotoFileFormat.c" -} - - -gchar* -photo_file_format_properties_get_default_extension (PhotoFileFormatProperties* self) -{ -#line 384 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL); -#line 384 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_default_extension (self); -#line 2981 "PhotoFileFormat.c" -} - - -static gchar** -photo_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* self, - int* result_length1) -{ -#line 386 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_known_extensions'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 386 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 2993 "PhotoFileFormat.c" -} - - -gchar** -photo_file_format_properties_get_known_extensions (PhotoFileFormatProperties* self, - int* result_length1) -{ -#line 386 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL); -#line 386 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_known_extensions (self, result_length1); -#line 3005 "PhotoFileFormat.c" -} - - -static gchar* -photo_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* self) -{ -#line 388 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_default_mime_type'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 388 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 3016 "PhotoFileFormat.c" -} - - -gchar* -photo_file_format_properties_get_default_mime_type (PhotoFileFormatProperties* self) -{ -#line 388 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL); -#line 388 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_default_mime_type (self); -#line 3027 "PhotoFileFormat.c" -} - - -static gchar** -photo_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* self, - int* result_length1) -{ -#line 390 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_mime_types'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 390 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 3039 "PhotoFileFormat.c" -} - - -gchar** -photo_file_format_properties_get_mime_types (PhotoFileFormatProperties* self, - int* result_length1) -{ -#line 390 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL); -#line 390 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_mime_types (self, result_length1); -#line 3051 "PhotoFileFormat.c" -} - - -static gchar* -photo_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* self) -{ -#line 397 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_format_properties_get_user_visible_name'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 397 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 3062 "PhotoFileFormat.c" -} - - -gchar* -photo_file_format_properties_get_user_visible_name (PhotoFileFormatProperties* self) -{ -#line 397 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL); -#line 397 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->get_user_visible_name (self); -#line 3073 "PhotoFileFormat.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return self ? g_object_ref (self) : NULL; -#line 3082 "PhotoFileFormat.c" -} - - -GFile* -photo_file_format_properties_convert_file_extension (PhotoFileFormatProperties* self, - GFile* file) -{ - GFile* result = NULL; - gchar* name = NULL; - gchar* ext = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_ = NULL; - gchar* _tmp3_ = NULL; - gboolean _tmp4_ = FALSE; - const gchar* _tmp5_; - GFile* _tmp8_; - GFile* _tmp9_; - const gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - GFile* _tmp15_; - GFile* _tmp16_; -#line 401 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (IS_PHOTO_FILE_FORMAT_PROPERTIES (self), NULL); -#line 401 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp0_ = g_file_get_basename (file); -#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp1_ = _tmp0_; -#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - disassemble_filename (_tmp1_, &_tmp2_, &_tmp3_); -#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (name); -#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - name = _tmp2_; -#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (ext); -#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ext = _tmp3_; -#line 403 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (_tmp1_); -#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp5_ = ext; -#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp5_ != NULL) { -#line 3132 "PhotoFileFormat.c" - const gchar* _tmp6_; -#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp6_ = ext; -#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = photo_file_format_properties_is_recognized_extension (self, _tmp6_); -#line 3138 "PhotoFileFormat.c" - } else { -#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp4_ = FALSE; -#line 3142 "PhotoFileFormat.c" - } -#line 404 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (_tmp4_) { -#line 3146 "PhotoFileFormat.c" - GFile* _tmp7_; -#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp7_ = _g_object_ref0 (file); -#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp7_; -#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (ext); -#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (name); -#line 405 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 3158 "PhotoFileFormat.c" - } -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp8_ = g_file_get_parent (file); -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp9_ = _tmp8_; -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp10_ = name; -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp11_ = photo_file_format_properties_get_default_extension (self); -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp12_ = _tmp11_; -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp13_ = g_strdup_printf ("%s.%s", _tmp10_, _tmp12_); -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp14_ = _tmp13_; -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp15_ = g_file_get_child (_tmp9_, _tmp14_); -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _tmp16_ = _tmp15_; -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (_tmp14_); -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (_tmp12_); -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_object_unref0 (_tmp9_); -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - result = _tmp16_; -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (ext); -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - _g_free0 (name); -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return result; -#line 3192 "PhotoFileFormat.c" -} - - -PhotoFileFormatProperties* -photo_file_format_properties_construct (GType object_type) -{ - PhotoFileFormatProperties* self = NULL; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - self = (PhotoFileFormatProperties*) g_type_create_instance (object_type); -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return self; -#line 3204 "PhotoFileFormat.c" -} - - -static void -value_photo_file_format_properties_init (GValue* value) -{ -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - value->data[0].v_pointer = NULL; -#line 3213 "PhotoFileFormat.c" -} - - -static void -value_photo_file_format_properties_free_value (GValue* value) -{ -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (value->data[0].v_pointer) { -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_properties_unref (value->data[0].v_pointer); -#line 3224 "PhotoFileFormat.c" - } -} - - -static void -value_photo_file_format_properties_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (src_value->data[0].v_pointer) { -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - dest_value->data[0].v_pointer = photo_file_format_properties_ref (src_value->data[0].v_pointer); -#line 3237 "PhotoFileFormat.c" - } else { -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - dest_value->data[0].v_pointer = NULL; -#line 3241 "PhotoFileFormat.c" - } -} - - -static gpointer -value_photo_file_format_properties_peek_pointer (const GValue* value) -{ -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return value->data[0].v_pointer; -#line 3251 "PhotoFileFormat.c" -} - - -static gchar* -value_photo_file_format_properties_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (collect_values[0].v_pointer) { -#line 3263 "PhotoFileFormat.c" - PhotoFileFormatProperties * object; - object = collect_values[0].v_pointer; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (object->parent_instance.g_class == NULL) { -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3270 "PhotoFileFormat.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3274 "PhotoFileFormat.c" - } -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - value->data[0].v_pointer = photo_file_format_properties_ref (object); -#line 3278 "PhotoFileFormat.c" - } else { -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - value->data[0].v_pointer = NULL; -#line 3282 "PhotoFileFormat.c" - } -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 3286 "PhotoFileFormat.c" -} - - -static gchar* -value_photo_file_format_properties_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PhotoFileFormatProperties ** object_p; - object_p = collect_values[0].v_pointer; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (!object_p) { -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 3302 "PhotoFileFormat.c" - } -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (!value->data[0].v_pointer) { -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *object_p = NULL; -#line 3308 "PhotoFileFormat.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *object_p = value->data[0].v_pointer; -#line 3312 "PhotoFileFormat.c" - } else { -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - *object_p = photo_file_format_properties_ref (value->data[0].v_pointer); -#line 3316 "PhotoFileFormat.c" - } -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return NULL; -#line 3320 "PhotoFileFormat.c" -} - - -GParamSpec* -param_spec_photo_file_format_properties (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecPhotoFileFormatProperties* spec; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_FILE_FORMAT_PROPERTIES), NULL); -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return G_PARAM_SPEC (spec); -#line 3340 "PhotoFileFormat.c" -} - - -gpointer -value_get_photo_file_format_properties (const GValue* value) -{ -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_PROPERTIES), NULL); -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return value->data[0].v_pointer; -#line 3351 "PhotoFileFormat.c" -} - - -void -value_set_photo_file_format_properties (GValue* value, - gpointer v_object) -{ - PhotoFileFormatProperties * old; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_PROPERTIES)); -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - old = value->data[0].v_pointer; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (v_object) { -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_FORMAT_PROPERTIES)); -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - value->data[0].v_pointer = v_object; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_properties_ref (value->data[0].v_pointer); -#line 3374 "PhotoFileFormat.c" - } else { -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - value->data[0].v_pointer = NULL; -#line 3378 "PhotoFileFormat.c" - } -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (old) { -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_properties_unref (old); -#line 3384 "PhotoFileFormat.c" - } -} - - -void -value_take_photo_file_format_properties (GValue* value, - gpointer v_object) -{ - PhotoFileFormatProperties * old; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_FORMAT_PROPERTIES)); -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - old = value->data[0].v_pointer; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (v_object) { -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_FORMAT_PROPERTIES)); -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - value->data[0].v_pointer = v_object; -#line 3406 "PhotoFileFormat.c" - } else { -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - value->data[0].v_pointer = NULL; -#line 3410 "PhotoFileFormat.c" - } -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (old) { -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_properties_unref (old); -#line 3416 "PhotoFileFormat.c" - } -} - - -static void -photo_file_format_properties_class_init (PhotoFileFormatPropertiesClass * klass) -{ -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - photo_file_format_properties_parent_class = g_type_class_peek_parent (klass); -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatPropertiesClass *) klass)->finalize = photo_file_format_properties_finalize; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_file_format = (PhotoFileFormat (*) (PhotoFileFormatProperties *)) photo_file_format_properties_real_get_file_format; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_flags = (PhotoFileFormatFlags (*) (PhotoFileFormatProperties *)) photo_file_format_properties_real_get_flags; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatPropertiesClass *) klass)->is_recognized_extension = (gboolean (*) (PhotoFileFormatProperties *, const gchar*)) photo_file_format_properties_real_is_recognized_extension; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_default_extension = (gchar* (*) (PhotoFileFormatProperties *)) photo_file_format_properties_real_get_default_extension; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_known_extensions = (gchar** (*) (PhotoFileFormatProperties *, int*)) photo_file_format_properties_real_get_known_extensions; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_default_mime_type = (gchar* (*) (PhotoFileFormatProperties *)) photo_file_format_properties_real_get_default_mime_type; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_mime_types = (gchar** (*) (PhotoFileFormatProperties *, int*)) photo_file_format_properties_real_get_mime_types; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_user_visible_name = (gchar* (*) (PhotoFileFormatProperties *)) photo_file_format_properties_real_get_user_visible_name; -#line 3444 "PhotoFileFormat.c" -} - - -static void -photo_file_format_properties_instance_init (PhotoFileFormatProperties * self) -{ -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - self->ref_count = 1; -#line 3453 "PhotoFileFormat.c" -} - - -static void -photo_file_format_properties_finalize (PhotoFileFormatProperties * obj) -{ - PhotoFileFormatProperties * self; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties); -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_signal_handlers_destroy (self); -#line 3465 "PhotoFileFormat.c" -} - - -GType -photo_file_format_properties_get_type (void) -{ - static volatile gsize photo_file_format_properties_type_id__volatile = 0; - if (g_once_init_enter (&photo_file_format_properties_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_photo_file_format_properties_init, value_photo_file_format_properties_free_value, value_photo_file_format_properties_copy_value, value_photo_file_format_properties_peek_pointer, "p", value_photo_file_format_properties_collect_value, "p", value_photo_file_format_properties_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PhotoFileFormatPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_format_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileFormatProperties), 0, (GInstanceInitFunc) photo_file_format_properties_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType photo_file_format_properties_type_id; - photo_file_format_properties_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoFileFormatProperties", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&photo_file_format_properties_type_id__volatile, photo_file_format_properties_type_id); - } - return photo_file_format_properties_type_id__volatile; -} - - -gpointer -photo_file_format_properties_ref (gpointer instance) -{ - PhotoFileFormatProperties * self; - self = instance; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_atomic_int_inc (&self->ref_count); -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - return instance; -#line 3494 "PhotoFileFormat.c" -} - - -void -photo_file_format_properties_unref (gpointer instance) -{ - PhotoFileFormatProperties * self; - self = instance; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS (self)->finalize (self); -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoFileFormat.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 3509 "PhotoFileFormat.c" - } -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/photos/PhotoFileFormat.vala b/src/photos/PhotoFileFormat.vala index 725bd1d..e642008 100644 --- a/src/photos/PhotoFileFormat.vala +++ b/src/photos/PhotoFileFormat.vala @@ -57,12 +57,13 @@ public enum PhotoFileFormat { PNG, TIFF, BMP, + GIF, UNKNOWN; // This is currently listed in the order of detection, that is, the file is examined from // left to right. (See PhotoFileInterrogator.) public static PhotoFileFormat[] get_supported() { - return { JFIF, RAW, PNG, TIFF, BMP }; + return { JFIF, RAW, PNG, TIFF, BMP, GIF }; } public static PhotoFileFormat[] get_writeable() { @@ -137,6 +138,9 @@ public enum PhotoFileFormat { case BMP: return 4; + + case GIF: + return 5; case UNKNOWN: default: @@ -161,6 +165,9 @@ public enum PhotoFileFormat { case 4: return BMP; + + case 5: + return GIF; default: return UNKNOWN; @@ -184,7 +191,9 @@ public enum PhotoFileFormat { case GPhoto.MIME.BMP: return PhotoFileFormat.BMP; - + + // GPhoto does not have GIF + default: // check file extension against those we support return PhotoFileFormat.UNKNOWN; @@ -205,6 +214,9 @@ public enum PhotoFileFormat { case "bmp": return PhotoFileFormat.BMP; + + case "gif": + return PhotoFileFormat.GIF; default: return PhotoFileFormat.UNKNOWN; @@ -233,6 +245,10 @@ public enum PhotoFileFormat { Photos.BmpFileFormatDriver.init(); break; + case GIF: + Photos.GifFileFormatDriver.init(); + break; + default: error("Unsupported file format %s", this.to_string()); } @@ -255,6 +271,9 @@ public enum PhotoFileFormat { case BMP: return Photos.BmpFileFormatDriver.get_instance(); + case GIF: + return Photos.GifFileFormatDriver.get_instance(); + default: error("Unsupported file format %s", this.to_string()); } diff --git a/src/photos/PhotoFileSniffer.c b/src/photos/PhotoFileSniffer.c deleted file mode 100644 index 04d5d07..0000000 --- a/src/photos/PhotoFileSniffer.c +++ /dev/null @@ -1,1534 +0,0 @@ -/* PhotoFileSniffer.c generated by valac 0.40.4, the Vala compiler - * generated from PhotoFileSniffer.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_DETECTED_PHOTO_INFORMATION (detected_photo_information_get_type ()) -#define DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation)) -#define DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass)) -#define IS_DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DETECTED_PHOTO_INFORMATION)) -#define IS_DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DETECTED_PHOTO_INFORMATION)) -#define DETECTED_PHOTO_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass)) - -typedef struct _DetectedPhotoInformation DetectedPhotoInformation; -typedef struct _DetectedPhotoInformationClass DetectedPhotoInformationClass; -typedef struct _DetectedPhotoInformationPrivate DetectedPhotoInformationPrivate; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _ParamSpecDetectedPhotoInformation ParamSpecDetectedPhotoInformation; - -#define TYPE_PHOTO_FILE_SNIFFER (photo_file_sniffer_get_type ()) -#define PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)) -#define PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass)) -#define IS_PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_SNIFFER)) -#define IS_PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_SNIFFER)) -#define PHOTO_FILE_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass)) - -typedef struct _PhotoFileSniffer PhotoFileSniffer; -typedef struct _PhotoFileSnifferClass PhotoFileSnifferClass; -typedef struct _PhotoFileSnifferPrivate PhotoFileSnifferPrivate; - -#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ()) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _ParamSpecPhotoFileSniffer ParamSpecPhotoFileSniffer; - -#define TYPE_PHOTO_FILE_INTERROGATOR (photo_file_interrogator_get_type ()) -#define PHOTO_FILE_INTERROGATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogator)) -#define PHOTO_FILE_INTERROGATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogatorClass)) -#define IS_PHOTO_FILE_INTERROGATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_INTERROGATOR)) -#define IS_PHOTO_FILE_INTERROGATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_INTERROGATOR)) -#define PHOTO_FILE_INTERROGATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogatorClass)) - -typedef struct _PhotoFileInterrogator PhotoFileInterrogator; -typedef struct _PhotoFileInterrogatorClass PhotoFileInterrogatorClass; -typedef struct _PhotoFileInterrogatorPrivate PhotoFileInterrogatorPrivate; -#define _detected_photo_information_unref0(var) ((var == NULL) ? NULL : (var = (detected_photo_information_unref (var), NULL))) -#define _photo_file_sniffer_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_sniffer_unref (var), NULL))) -typedef struct _ParamSpecPhotoFileInterrogator ParamSpecPhotoFileInterrogator; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _DetectedPhotoInformation { - GTypeInstance parent_instance; - volatile int ref_count; - DetectedPhotoInformationPrivate * priv; - PhotoFileFormat file_format; - PhotoMetadata* metadata; - gchar* md5; - gchar* exif_md5; - gchar* thumbnail_md5; - gchar* format_name; - Dimensions image_dim; - GdkColorspace colorspace; - gint channels; - gint bits_per_channel; -}; - -struct _DetectedPhotoInformationClass { - GTypeClass parent_class; - void (*finalize) (DetectedPhotoInformation *self); -}; - -struct _ParamSpecDetectedPhotoInformation { - GParamSpec parent_instance; -}; - -typedef enum { - PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000, - PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001 -} PhotoFileSnifferOptions; - -struct _PhotoFileSniffer { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileSnifferPrivate * priv; - GFile* file; - PhotoFileSnifferOptions options; - gboolean calc_md5; -}; - -struct _PhotoFileSnifferClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileSniffer *self); - DetectedPhotoInformation* (*sniff) (PhotoFileSniffer* self, gboolean* is_corrupted, GError** error); -}; - -struct _ParamSpecPhotoFileSniffer { - GParamSpec parent_instance; -}; - -struct _PhotoFileInterrogator { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileInterrogatorPrivate * priv; -}; - -struct _PhotoFileInterrogatorClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileInterrogator *self); -}; - -struct _PhotoFileInterrogatorPrivate { - GFile* file; - PhotoFileSnifferOptions options; - DetectedPhotoInformation* detected; - gboolean is_photo_corrupted; -}; - -struct _ParamSpecPhotoFileInterrogator { - GParamSpec parent_instance; -}; - - -static gpointer detected_photo_information_parent_class = NULL; -static gpointer photo_file_sniffer_parent_class = NULL; -static gpointer photo_file_interrogator_parent_class = NULL; - -gpointer detected_photo_information_ref (gpointer instance); -void detected_photo_information_unref (gpointer instance); -GParamSpec* param_spec_detected_photo_information (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_detected_photo_information (GValue* value, - gpointer v_object); -void value_take_detected_photo_information (GValue* value, - gpointer v_object); -gpointer value_get_detected_photo_information (const GValue* value); -GType detected_photo_information_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -void dimensions_init (Dimensions *self, - gint width, - gint height); -DetectedPhotoInformation* detected_photo_information_new (void); -DetectedPhotoInformation* detected_photo_information_construct (GType object_type); -static void detected_photo_information_finalize (DetectedPhotoInformation * obj); -gpointer photo_file_sniffer_ref (gpointer instance); -void photo_file_sniffer_unref (gpointer instance); -GParamSpec* param_spec_photo_file_sniffer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_sniffer (GValue* value, - gpointer v_object); -void value_take_photo_file_sniffer (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_sniffer (const GValue* value); -GType photo_file_sniffer_get_type (void) G_GNUC_CONST; -GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST; -PhotoFileSniffer* photo_file_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options); -DetectedPhotoInformation* photo_file_sniffer_sniff (PhotoFileSniffer* self, - gboolean* is_corrupted, - GError** error); -static DetectedPhotoInformation* photo_file_sniffer_real_sniff (PhotoFileSniffer* self, - gboolean* is_corrupted, - GError** error); -static void photo_file_sniffer_finalize (PhotoFileSniffer * obj); -gpointer photo_file_interrogator_ref (gpointer instance); -void photo_file_interrogator_unref (gpointer instance); -GParamSpec* param_spec_photo_file_interrogator (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_interrogator (GValue* value, - gpointer v_object); -void value_take_photo_file_interrogator (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_interrogator (const GValue* value); -GType photo_file_interrogator_get_type (void) G_GNUC_CONST; -#define PHOTO_FILE_INTERROGATOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogatorPrivate)) -PhotoFileInterrogator* photo_file_interrogator_new (GFile* file, - PhotoFileSnifferOptions options); -PhotoFileInterrogator* photo_file_interrogator_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options); -DetectedPhotoInformation* photo_file_interrogator_get_detected_photo_information (PhotoFileInterrogator* self); -gboolean photo_file_interrogator_get_is_photo_corrupted (PhotoFileInterrogator* self); -void photo_file_interrogator_interrogate (PhotoFileInterrogator* self, - GError** error); -PhotoFileFormat* photo_file_format_get_supported (int* result_length1); -PhotoFileSniffer* photo_file_format_create_sniffer (PhotoFileFormat self, - GFile* file, - PhotoFileSnifferOptions options); -static void photo_file_interrogator_finalize (PhotoFileInterrogator * obj); - - -DetectedPhotoInformation* -detected_photo_information_construct (GType object_type) -{ - DetectedPhotoInformation* self = NULL; -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self = (DetectedPhotoInformation*) g_type_create_instance (object_type); -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return self; -#line 282 "PhotoFileSniffer.c" -} - - -DetectedPhotoInformation* -detected_photo_information_new (void) -{ -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return detected_photo_information_construct (TYPE_DETECTED_PHOTO_INFORMATION); -#line 291 "PhotoFileSniffer.c" -} - - -static void -value_detected_photo_information_init (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = NULL; -#line 300 "PhotoFileSniffer.c" -} - - -static void -value_detected_photo_information_free_value (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - detected_photo_information_unref (value->data[0].v_pointer); -#line 311 "PhotoFileSniffer.c" - } -} - - -static void -value_detected_photo_information_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (src_value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - dest_value->data[0].v_pointer = detected_photo_information_ref (src_value->data[0].v_pointer); -#line 324 "PhotoFileSniffer.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - dest_value->data[0].v_pointer = NULL; -#line 328 "PhotoFileSniffer.c" - } -} - - -static gpointer -value_detected_photo_information_peek_pointer (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return value->data[0].v_pointer; -#line 338 "PhotoFileSniffer.c" -} - - -static gchar* -value_detected_photo_information_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (collect_values[0].v_pointer) { -#line 350 "PhotoFileSniffer.c" - DetectedPhotoInformation * object; - object = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (object->parent_instance.g_class == NULL) { -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 357 "PhotoFileSniffer.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 361 "PhotoFileSniffer.c" - } -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = detected_photo_information_ref (object); -#line 365 "PhotoFileSniffer.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = NULL; -#line 369 "PhotoFileSniffer.c" - } -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return NULL; -#line 373 "PhotoFileSniffer.c" -} - - -static gchar* -value_detected_photo_information_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - DetectedPhotoInformation ** object_p; - object_p = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (!object_p) { -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 389 "PhotoFileSniffer.c" - } -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (!value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - *object_p = NULL; -#line 395 "PhotoFileSniffer.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - *object_p = value->data[0].v_pointer; -#line 399 "PhotoFileSniffer.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - *object_p = detected_photo_information_ref (value->data[0].v_pointer); -#line 403 "PhotoFileSniffer.c" - } -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return NULL; -#line 407 "PhotoFileSniffer.c" -} - - -GParamSpec* -param_spec_detected_photo_information (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecDetectedPhotoInformation* spec; -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_DETECTED_PHOTO_INFORMATION), NULL); -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return G_PARAM_SPEC (spec); -#line 427 "PhotoFileSniffer.c" -} - - -gpointer -value_get_detected_photo_information (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DETECTED_PHOTO_INFORMATION), NULL); -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return value->data[0].v_pointer; -#line 438 "PhotoFileSniffer.c" -} - - -void -value_set_detected_photo_information (GValue* value, - gpointer v_object) -{ - DetectedPhotoInformation * old; -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DETECTED_PHOTO_INFORMATION)); -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DETECTED_PHOTO_INFORMATION)); -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = v_object; -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - detected_photo_information_ref (value->data[0].v_pointer); -#line 461 "PhotoFileSniffer.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = NULL; -#line 465 "PhotoFileSniffer.c" - } -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - detected_photo_information_unref (old); -#line 471 "PhotoFileSniffer.c" - } -} - - -void -value_take_detected_photo_information (GValue* value, - gpointer v_object) -{ - DetectedPhotoInformation * old; -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_DETECTED_PHOTO_INFORMATION)); -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_DETECTED_PHOTO_INFORMATION)); -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = v_object; -#line 493 "PhotoFileSniffer.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = NULL; -#line 497 "PhotoFileSniffer.c" - } -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - detected_photo_information_unref (old); -#line 503 "PhotoFileSniffer.c" - } -} - - -static void -detected_photo_information_class_init (DetectedPhotoInformationClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - detected_photo_information_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - ((DetectedPhotoInformationClass *) klass)->finalize = detected_photo_information_finalize; -#line 515 "PhotoFileSniffer.c" -} - - -static void -detected_photo_information_instance_init (DetectedPhotoInformation * self) -{ -#line 8 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->file_format = PHOTO_FILE_FORMAT_UNKNOWN; -#line 9 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->metadata = NULL; -#line 10 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->md5 = NULL; -#line 11 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->exif_md5 = NULL; -#line 12 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->thumbnail_md5 = NULL; -#line 13 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->format_name = NULL; -#line 14 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - dimensions_init (&self->image_dim, 0, 0); -#line 15 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->colorspace = GDK_COLORSPACE_RGB; -#line 16 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->channels = 0; -#line 17 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->bits_per_channel = 0; -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->ref_count = 1; -#line 544 "PhotoFileSniffer.c" -} - - -static void -detected_photo_information_finalize (DetectedPhotoInformation * obj) -{ - DetectedPhotoInformation * self; -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation); -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_signal_handlers_destroy (self); -#line 9 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _media_metadata_unref0 (self->metadata); -#line 10 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _g_free0 (self->md5); -#line 11 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _g_free0 (self->exif_md5); -#line 12 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _g_free0 (self->thumbnail_md5); -#line 13 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _g_free0 (self->format_name); -#line 566 "PhotoFileSniffer.c" -} - - -GType -detected_photo_information_get_type (void) -{ - static volatile gsize detected_photo_information_type_id__volatile = 0; - if (g_once_init_enter (&detected_photo_information_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_detected_photo_information_init, value_detected_photo_information_free_value, value_detected_photo_information_copy_value, value_detected_photo_information_peek_pointer, "p", value_detected_photo_information_collect_value, "p", value_detected_photo_information_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (DetectedPhotoInformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) detected_photo_information_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DetectedPhotoInformation), 0, (GInstanceInitFunc) detected_photo_information_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType detected_photo_information_type_id; - detected_photo_information_type_id = g_type_register_fundamental (g_type_fundamental_next (), "DetectedPhotoInformation", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&detected_photo_information_type_id__volatile, detected_photo_information_type_id); - } - return detected_photo_information_type_id__volatile; -} - - -gpointer -detected_photo_information_ref (gpointer instance) -{ - DetectedPhotoInformation * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_atomic_int_inc (&self->ref_count); -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return instance; -#line 595 "PhotoFileSniffer.c" -} - - -void -detected_photo_information_unref (gpointer instance) -{ - DetectedPhotoInformation * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - DETECTED_PHOTO_INFORMATION_GET_CLASS (self)->finalize (self); -#line 7 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 610 "PhotoFileSniffer.c" - } -} - - -GType -photo_file_sniffer_options_get_type (void) -{ - static volatile gsize photo_file_sniffer_options_type_id__volatile = 0; - if (g_once_init_enter (&photo_file_sniffer_options_type_id__volatile)) { - static const GEnumValue values[] = {{PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL, "PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL", "get-all"}, {PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5, "PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5", "no-md5"}, {0, NULL, NULL}}; - GType photo_file_sniffer_options_type_id; - photo_file_sniffer_options_type_id = g_enum_register_static ("PhotoFileSnifferOptions", values); - g_once_init_leave (&photo_file_sniffer_options_type_id__volatile, photo_file_sniffer_options_type_id); - } - return photo_file_sniffer_options_type_id__volatile; -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return self ? g_object_ref (self) : NULL; -#line 634 "PhotoFileSniffer.c" -} - - -PhotoFileSniffer* -photo_file_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options) -{ - PhotoFileSniffer* self = NULL; - GFile* _tmp0_; -#line 42 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 42 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self = (PhotoFileSniffer*) g_type_create_instance (object_type); -#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp0_ = _g_object_ref0 (file); -#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _g_object_unref0 (self->file); -#line 43 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->file = _tmp0_; -#line 44 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->options = options; -#line 46 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->calc_md5 = (options & PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5) == 0; -#line 42 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return self; -#line 661 "PhotoFileSniffer.c" -} - - -static DetectedPhotoInformation* -photo_file_sniffer_real_sniff (PhotoFileSniffer* self, - gboolean* is_corrupted, - GError** error) -{ -#line 49 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_critical ("Type `%s' does not implement abstract method `photo_file_sniffer_sniff'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 49 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return NULL; -#line 674 "PhotoFileSniffer.c" -} - - -DetectedPhotoInformation* -photo_file_sniffer_sniff (PhotoFileSniffer* self, - gboolean* is_corrupted, - GError** error) -{ -#line 49 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_val_if_fail (IS_PHOTO_FILE_SNIFFER (self), NULL); -#line 49 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return PHOTO_FILE_SNIFFER_GET_CLASS (self)->sniff (self, is_corrupted, error); -#line 687 "PhotoFileSniffer.c" -} - - -static void -value_photo_file_sniffer_init (GValue* value) -{ -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = NULL; -#line 696 "PhotoFileSniffer.c" -} - - -static void -value_photo_file_sniffer_free_value (GValue* value) -{ -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (value->data[0].v_pointer) { -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - photo_file_sniffer_unref (value->data[0].v_pointer); -#line 707 "PhotoFileSniffer.c" - } -} - - -static void -value_photo_file_sniffer_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (src_value->data[0].v_pointer) { -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - dest_value->data[0].v_pointer = photo_file_sniffer_ref (src_value->data[0].v_pointer); -#line 720 "PhotoFileSniffer.c" - } else { -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - dest_value->data[0].v_pointer = NULL; -#line 724 "PhotoFileSniffer.c" - } -} - - -static gpointer -value_photo_file_sniffer_peek_pointer (const GValue* value) -{ -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return value->data[0].v_pointer; -#line 734 "PhotoFileSniffer.c" -} - - -static gchar* -value_photo_file_sniffer_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (collect_values[0].v_pointer) { -#line 746 "PhotoFileSniffer.c" - PhotoFileSniffer * object; - object = collect_values[0].v_pointer; -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (object->parent_instance.g_class == NULL) { -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 753 "PhotoFileSniffer.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 757 "PhotoFileSniffer.c" - } -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = photo_file_sniffer_ref (object); -#line 761 "PhotoFileSniffer.c" - } else { -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = NULL; -#line 765 "PhotoFileSniffer.c" - } -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return NULL; -#line 769 "PhotoFileSniffer.c" -} - - -static gchar* -value_photo_file_sniffer_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PhotoFileSniffer ** object_p; - object_p = collect_values[0].v_pointer; -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (!object_p) { -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 785 "PhotoFileSniffer.c" - } -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (!value->data[0].v_pointer) { -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - *object_p = NULL; -#line 791 "PhotoFileSniffer.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - *object_p = value->data[0].v_pointer; -#line 795 "PhotoFileSniffer.c" - } else { -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - *object_p = photo_file_sniffer_ref (value->data[0].v_pointer); -#line 799 "PhotoFileSniffer.c" - } -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return NULL; -#line 803 "PhotoFileSniffer.c" -} - - -GParamSpec* -param_spec_photo_file_sniffer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecPhotoFileSniffer* spec; -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_FILE_SNIFFER), NULL); -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return G_PARAM_SPEC (spec); -#line 823 "PhotoFileSniffer.c" -} - - -gpointer -value_get_photo_file_sniffer (const GValue* value) -{ -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_SNIFFER), NULL); -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return value->data[0].v_pointer; -#line 834 "PhotoFileSniffer.c" -} - - -void -value_set_photo_file_sniffer (GValue* value, - gpointer v_object) -{ - PhotoFileSniffer * old; -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_SNIFFER)); -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - old = value->data[0].v_pointer; -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (v_object) { -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_SNIFFER)); -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = v_object; -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - photo_file_sniffer_ref (value->data[0].v_pointer); -#line 857 "PhotoFileSniffer.c" - } else { -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = NULL; -#line 861 "PhotoFileSniffer.c" - } -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (old) { -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - photo_file_sniffer_unref (old); -#line 867 "PhotoFileSniffer.c" - } -} - - -void -value_take_photo_file_sniffer (GValue* value, - gpointer v_object) -{ - PhotoFileSniffer * old; -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_SNIFFER)); -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - old = value->data[0].v_pointer; -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (v_object) { -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_SNIFFER)); -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = v_object; -#line 889 "PhotoFileSniffer.c" - } else { -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = NULL; -#line 893 "PhotoFileSniffer.c" - } -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (old) { -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - photo_file_sniffer_unref (old); -#line 899 "PhotoFileSniffer.c" - } -} - - -static void -photo_file_sniffer_class_init (PhotoFileSnifferClass * klass) -{ -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - photo_file_sniffer_parent_class = g_type_class_peek_parent (klass); -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - ((PhotoFileSnifferClass *) klass)->finalize = photo_file_sniffer_finalize; -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - ((PhotoFileSnifferClass *) klass)->sniff = (DetectedPhotoInformation* (*) (PhotoFileSniffer *, gboolean*, GError**)) photo_file_sniffer_real_sniff; -#line 913 "PhotoFileSniffer.c" -} - - -static void -photo_file_sniffer_instance_init (PhotoFileSniffer * self) -{ -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->ref_count = 1; -#line 922 "PhotoFileSniffer.c" -} - - -static void -photo_file_sniffer_finalize (PhotoFileSniffer * obj) -{ - PhotoFileSniffer * self; -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer); -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_signal_handlers_destroy (self); -#line 38 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _g_object_unref0 (self->file); -#line 936 "PhotoFileSniffer.c" -} - - -GType -photo_file_sniffer_get_type (void) -{ - static volatile gsize photo_file_sniffer_type_id__volatile = 0; - if (g_once_init_enter (&photo_file_sniffer_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_photo_file_sniffer_init, value_photo_file_sniffer_free_value, value_photo_file_sniffer_copy_value, value_photo_file_sniffer_peek_pointer, "p", value_photo_file_sniffer_collect_value, "p", value_photo_file_sniffer_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PhotoFileSnifferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_sniffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileSniffer), 0, (GInstanceInitFunc) photo_file_sniffer_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType photo_file_sniffer_type_id; - photo_file_sniffer_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoFileSniffer", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&photo_file_sniffer_type_id__volatile, photo_file_sniffer_type_id); - } - return photo_file_sniffer_type_id__volatile; -} - - -gpointer -photo_file_sniffer_ref (gpointer instance) -{ - PhotoFileSniffer * self; - self = instance; -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_atomic_int_inc (&self->ref_count); -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return instance; -#line 965 "PhotoFileSniffer.c" -} - - -void -photo_file_sniffer_unref (gpointer instance) -{ - PhotoFileSniffer * self; - self = instance; -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - PHOTO_FILE_SNIFFER_GET_CLASS (self)->finalize (self); -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 980 "PhotoFileSniffer.c" - } -} - - -PhotoFileInterrogator* -photo_file_interrogator_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options) -{ - PhotoFileInterrogator* self = NULL; - GFile* _tmp0_; -#line 67 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 67 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self = (PhotoFileInterrogator*) g_type_create_instance (object_type); -#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp0_ = _g_object_ref0 (file); -#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _g_object_unref0 (self->priv->file); -#line 69 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->priv->file = _tmp0_; -#line 70 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->priv->options = options; -#line 67 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return self; -#line 1006 "PhotoFileSniffer.c" -} - - -PhotoFileInterrogator* -photo_file_interrogator_new (GFile* file, - PhotoFileSnifferOptions options) -{ -#line 67 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return photo_file_interrogator_construct (TYPE_PHOTO_FILE_INTERROGATOR, file, options); -#line 1016 "PhotoFileSniffer.c" -} - - -static gpointer -_detected_photo_information_ref0 (gpointer self) -{ -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return self ? detected_photo_information_ref (self) : NULL; -#line 1025 "PhotoFileSniffer.c" -} - - -DetectedPhotoInformation* -photo_file_interrogator_get_detected_photo_information (PhotoFileInterrogator* self) -{ - DetectedPhotoInformation* result = NULL; - DetectedPhotoInformation* _tmp0_; - DetectedPhotoInformation* _tmp1_; -#line 75 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_val_if_fail (IS_PHOTO_FILE_INTERROGATOR (self), NULL); -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp0_ = self->priv->detected; -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp1_ = _detected_photo_information_ref0 (_tmp0_); -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - result = _tmp1_; -#line 76 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return result; -#line 1045 "PhotoFileSniffer.c" -} - - -gboolean -photo_file_interrogator_get_is_photo_corrupted (PhotoFileInterrogator* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 80 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_val_if_fail (IS_PHOTO_FILE_INTERROGATOR (self), FALSE); -#line 81 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp0_ = self->priv->is_photo_corrupted; -#line 81 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - result = _tmp0_; -#line 81 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return result; -#line 1062 "PhotoFileSniffer.c" -} - - -void -photo_file_interrogator_interrogate (PhotoFileInterrogator* self, - GError** error) -{ - gint _tmp0_; - PhotoFileFormat* _tmp1_; - GError * _inner_error_ = NULL; -#line 84 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (IS_PHOTO_FILE_INTERROGATOR (self)); -#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp1_ = photo_file_format_get_supported (&_tmp0_); -#line 1077 "PhotoFileSniffer.c" - { - PhotoFileFormat* file_format_collection = NULL; - gint file_format_collection_length1 = 0; - gint _file_format_collection_size_ = 0; - gint file_format_it = 0; -#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - file_format_collection = _tmp1_; -#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - file_format_collection_length1 = _tmp0_; -#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - for (file_format_it = 0; file_format_it < _tmp0_; file_format_it = file_format_it + 1) { -#line 1089 "PhotoFileSniffer.c" - PhotoFileFormat file_format = 0; -#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - file_format = file_format_collection[file_format_it]; -#line 1093 "PhotoFileSniffer.c" - { - PhotoFileSniffer* sniffer = NULL; - PhotoFileFormat _tmp2_; - GFile* _tmp3_; - PhotoFileSnifferOptions _tmp4_; - PhotoFileSniffer* _tmp5_; - gboolean is_corrupted = FALSE; - DetectedPhotoInformation* _tmp6_ = NULL; - PhotoFileSniffer* _tmp7_; - gboolean _tmp8_ = FALSE; - DetectedPhotoInformation* _tmp9_; - DetectedPhotoInformation* _tmp10_; - gboolean _tmp11_ = FALSE; - DetectedPhotoInformation* _tmp12_; -#line 86 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp2_ = file_format; -#line 86 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp3_ = self->priv->file; -#line 86 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp4_ = self->priv->options; -#line 86 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp5_ = photo_file_format_create_sniffer (_tmp2_, _tmp3_, _tmp4_); -#line 86 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - sniffer = _tmp5_; -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp7_ = sniffer; -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp9_ = photo_file_sniffer_sniff (_tmp7_, &_tmp8_, &_inner_error_); -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - is_corrupted = _tmp8_; -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp6_ = _tmp9_; -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_propagate_error (error, _inner_error_); -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _photo_file_sniffer_unref0 (sniffer); -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - file_format_collection = (g_free (file_format_collection), NULL); -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return; -#line 1136 "PhotoFileSniffer.c" - } -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp10_ = _tmp6_; -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp6_ = NULL; -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _detected_photo_information_unref0 (self->priv->detected); -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->priv->detected = _tmp10_; -#line 90 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp12_ = self->priv->detected; -#line 90 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (_tmp12_ != NULL) { -#line 1150 "PhotoFileSniffer.c" - gboolean _tmp13_; -#line 90 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp13_ = is_corrupted; -#line 90 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp11_ = !_tmp13_; -#line 1156 "PhotoFileSniffer.c" - } else { -#line 90 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp11_ = FALSE; -#line 1160 "PhotoFileSniffer.c" - } -#line 90 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (_tmp11_) { -#line 1164 "PhotoFileSniffer.c" - DetectedPhotoInformation* _tmp14_; - PhotoFileFormat _tmp15_; - PhotoFileFormat _tmp16_; -#line 91 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp14_ = self->priv->detected; -#line 91 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp15_ = _tmp14_->file_format; -#line 91 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp16_ = file_format; -#line 91 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _vala_assert (_tmp15_ == _tmp16_, "detected.file_format == file_format"); -#line 93 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _detected_photo_information_unref0 (_tmp6_); -#line 93 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _photo_file_sniffer_unref0 (sniffer); -#line 93 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - break; -#line 1182 "PhotoFileSniffer.c" - } else { - gboolean _tmp17_; -#line 94 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp17_ = is_corrupted; -#line 94 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (_tmp17_) { -#line 1189 "PhotoFileSniffer.c" - GFile* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; -#line 95 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp18_ = self->priv->file; -#line 95 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp19_ = g_file_get_path (_tmp18_); -#line 95 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _tmp20_ = _tmp19_; -#line 95 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_message ("PhotoFileSniffer.vala:95: Sniffing halted for %s: potentially corrupte" \ -"d image file", _tmp20_); -#line 95 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _g_free0 (_tmp20_); -#line 96 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->priv->is_photo_corrupted = TRUE; -#line 97 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _detected_photo_information_unref0 (self->priv->detected); -#line 97 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->priv->detected = NULL; -#line 99 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _detected_photo_information_unref0 (_tmp6_); -#line 99 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _photo_file_sniffer_unref0 (sniffer); -#line 99 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - break; -#line 1215 "PhotoFileSniffer.c" - } - } -#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _detected_photo_information_unref0 (_tmp6_); -#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _photo_file_sniffer_unref0 (sniffer); -#line 1222 "PhotoFileSniffer.c" - } - } -#line 85 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - file_format_collection = (g_free (file_format_collection), NULL); -#line 1227 "PhotoFileSniffer.c" - } -} - - -static void -value_photo_file_interrogator_init (GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = NULL; -#line 1237 "PhotoFileSniffer.c" -} - - -static void -value_photo_file_interrogator_free_value (GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (value->data[0].v_pointer) { -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - photo_file_interrogator_unref (value->data[0].v_pointer); -#line 1248 "PhotoFileSniffer.c" - } -} - - -static void -value_photo_file_interrogator_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (src_value->data[0].v_pointer) { -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - dest_value->data[0].v_pointer = photo_file_interrogator_ref (src_value->data[0].v_pointer); -#line 1261 "PhotoFileSniffer.c" - } else { -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - dest_value->data[0].v_pointer = NULL; -#line 1265 "PhotoFileSniffer.c" - } -} - - -static gpointer -value_photo_file_interrogator_peek_pointer (const GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return value->data[0].v_pointer; -#line 1275 "PhotoFileSniffer.c" -} - - -static gchar* -value_photo_file_interrogator_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (collect_values[0].v_pointer) { -#line 1287 "PhotoFileSniffer.c" - PhotoFileInterrogator * object; - object = collect_values[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (object->parent_instance.g_class == NULL) { -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1294 "PhotoFileSniffer.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1298 "PhotoFileSniffer.c" - } -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = photo_file_interrogator_ref (object); -#line 1302 "PhotoFileSniffer.c" - } else { -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = NULL; -#line 1306 "PhotoFileSniffer.c" - } -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return NULL; -#line 1310 "PhotoFileSniffer.c" -} - - -static gchar* -value_photo_file_interrogator_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PhotoFileInterrogator ** object_p; - object_p = collect_values[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (!object_p) { -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1326 "PhotoFileSniffer.c" - } -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (!value->data[0].v_pointer) { -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - *object_p = NULL; -#line 1332 "PhotoFileSniffer.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - *object_p = value->data[0].v_pointer; -#line 1336 "PhotoFileSniffer.c" - } else { -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - *object_p = photo_file_interrogator_ref (value->data[0].v_pointer); -#line 1340 "PhotoFileSniffer.c" - } -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return NULL; -#line 1344 "PhotoFileSniffer.c" -} - - -GParamSpec* -param_spec_photo_file_interrogator (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecPhotoFileInterrogator* spec; -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_FILE_INTERROGATOR), NULL); -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return G_PARAM_SPEC (spec); -#line 1364 "PhotoFileSniffer.c" -} - - -gpointer -value_get_photo_file_interrogator (const GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_INTERROGATOR), NULL); -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return value->data[0].v_pointer; -#line 1375 "PhotoFileSniffer.c" -} - - -void -value_set_photo_file_interrogator (GValue* value, - gpointer v_object) -{ - PhotoFileInterrogator * old; -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_INTERROGATOR)); -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - old = value->data[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (v_object) { -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_INTERROGATOR)); -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = v_object; -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - photo_file_interrogator_ref (value->data[0].v_pointer); -#line 1398 "PhotoFileSniffer.c" - } else { -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = NULL; -#line 1402 "PhotoFileSniffer.c" - } -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (old) { -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - photo_file_interrogator_unref (old); -#line 1408 "PhotoFileSniffer.c" - } -} - - -void -value_take_photo_file_interrogator (GValue* value, - gpointer v_object) -{ - PhotoFileInterrogator * old; -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_FILE_INTERROGATOR)); -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - old = value->data[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (v_object) { -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_FILE_INTERROGATOR)); -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = v_object; -#line 1430 "PhotoFileSniffer.c" - } else { -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - value->data[0].v_pointer = NULL; -#line 1434 "PhotoFileSniffer.c" - } -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (old) { -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - photo_file_interrogator_unref (old); -#line 1440 "PhotoFileSniffer.c" - } -} - - -static void -photo_file_interrogator_class_init (PhotoFileInterrogatorClass * klass) -{ -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - photo_file_interrogator_parent_class = g_type_class_peek_parent (klass); -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - ((PhotoFileInterrogatorClass *) klass)->finalize = photo_file_interrogator_finalize; -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_type_class_add_private (klass, sizeof (PhotoFileInterrogatorPrivate)); -#line 1454 "PhotoFileSniffer.c" -} - - -static void -photo_file_interrogator_instance_init (PhotoFileInterrogator * self) -{ -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->priv = PHOTO_FILE_INTERROGATOR_GET_PRIVATE (self); -#line 64 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->priv->detected = NULL; -#line 65 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->priv->is_photo_corrupted = FALSE; -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self->ref_count = 1; -#line 1469 "PhotoFileSniffer.c" -} - - -static void -photo_file_interrogator_finalize (PhotoFileInterrogator * obj) -{ - PhotoFileInterrogator * self; -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_FILE_INTERROGATOR, PhotoFileInterrogator); -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_signal_handlers_destroy (self); -#line 62 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _g_object_unref0 (self->priv->file); -#line 64 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - _detected_photo_information_unref0 (self->priv->detected); -#line 1485 "PhotoFileSniffer.c" -} - - -GType -photo_file_interrogator_get_type (void) -{ - static volatile gsize photo_file_interrogator_type_id__volatile = 0; - if (g_once_init_enter (&photo_file_interrogator_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_photo_file_interrogator_init, value_photo_file_interrogator_free_value, value_photo_file_interrogator_copy_value, value_photo_file_interrogator_peek_pointer, "p", value_photo_file_interrogator_collect_value, "p", value_photo_file_interrogator_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PhotoFileInterrogatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_file_interrogator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoFileInterrogator), 0, (GInstanceInitFunc) photo_file_interrogator_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType photo_file_interrogator_type_id; - photo_file_interrogator_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoFileInterrogator", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&photo_file_interrogator_type_id__volatile, photo_file_interrogator_type_id); - } - return photo_file_interrogator_type_id__volatile; -} - - -gpointer -photo_file_interrogator_ref (gpointer instance) -{ - PhotoFileInterrogator * self; - self = instance; -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_atomic_int_inc (&self->ref_count); -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - return instance; -#line 1514 "PhotoFileSniffer.c" -} - - -void -photo_file_interrogator_unref (gpointer instance) -{ - PhotoFileInterrogator * self; - self = instance; -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - PHOTO_FILE_INTERROGATOR_GET_CLASS (self)->finalize (self); -#line 61 "/home/jens/Source/shotwell/src/photos/PhotoFileSniffer.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1529 "PhotoFileSniffer.c" - } -} - - - diff --git a/src/photos/PhotoMetadata.c b/src/photos/PhotoMetadata.c deleted file mode 100644 index a04ad12..0000000 --- a/src/photos/PhotoMetadata.c +++ /dev/null @@ -1,10262 +0,0 @@ -/* PhotoMetadata.c generated by valac 0.40.4, the Vala compiler - * generated from PhotoMetadata.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/**/ -/* PhotoMetadata*/ -/**/ -/* PhotoMetadata is a wrapper class around gexiv2. The reasoning for this is (a) to facilitate*/ -/* interface changes to meet Shotwell's requirements without needing modifications of the library*/ -/* itself, and (b) some requirements for this class (i.e. obtaining raw metadata) is not available*/ -/* in gexiv2, and so must be done by hand.*/ -/**/ -/* Although it's perceived that Exiv2 will remain Shotwell's metadata library of choice, this*/ -/* may change in the future, and so this wrapper helps with that as well.*/ -/**/ -/* There is no expectation of thread-safety in this class (yet).*/ -/**/ -/* Tags come from Exiv2's naming scheme:*/ -/* http://www.exiv2.org/metadata.html*/ -/**/ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_METADATA_DOMAIN (metadata_domain_get_type ()) - -#define TYPE_KEYWORD_TRANSFORMER (keyword_transformer_get_type ()) -#define KEYWORD_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_KEYWORD_TRANSFORMER, KeywordTransformer)) -#define KEYWORD_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_KEYWORD_TRANSFORMER, KeywordTransformerClass)) -#define IS_KEYWORD_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_KEYWORD_TRANSFORMER)) -#define IS_KEYWORD_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_KEYWORD_TRANSFORMER)) -#define KEYWORD_TRANSFORMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_KEYWORD_TRANSFORMER, KeywordTransformerClass)) - -typedef struct _KeywordTransformer KeywordTransformer; -typedef struct _KeywordTransformerClass KeywordTransformerClass; -typedef struct _KeywordTransformerPrivate KeywordTransformerPrivate; -typedef struct _ParamSpecKeywordTransformer ParamSpecKeywordTransformer; - -#define TYPE_NULL_KEYWORD_TRANSFORMER (null_keyword_transformer_get_type ()) -#define NULL_KEYWORD_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NULL_KEYWORD_TRANSFORMER, NullKeywordTransformer)) -#define NULL_KEYWORD_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NULL_KEYWORD_TRANSFORMER, NullKeywordTransformerClass)) -#define IS_NULL_KEYWORD_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NULL_KEYWORD_TRANSFORMER)) -#define IS_NULL_KEYWORD_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NULL_KEYWORD_TRANSFORMER)) -#define NULL_KEYWORD_TRANSFORMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NULL_KEYWORD_TRANSFORMER, NullKeywordTransformerClass)) - -typedef struct _NullKeywordTransformer NullKeywordTransformer; -typedef struct _NullKeywordTransformerClass NullKeywordTransformerClass; -typedef struct _NullKeywordTransformerPrivate NullKeywordTransformerPrivate; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_ACD_SEE_KEYWORD_TRANSFORMER (acd_see_keyword_transformer_get_type ()) -#define ACD_SEE_KEYWORD_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ACD_SEE_KEYWORD_TRANSFORMER, ACDSeeKeywordTransformer)) -#define ACD_SEE_KEYWORD_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ACD_SEE_KEYWORD_TRANSFORMER, ACDSeeKeywordTransformerClass)) -#define IS_ACD_SEE_KEYWORD_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ACD_SEE_KEYWORD_TRANSFORMER)) -#define IS_ACD_SEE_KEYWORD_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ACD_SEE_KEYWORD_TRANSFORMER)) -#define ACD_SEE_KEYWORD_TRANSFORMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ACD_SEE_KEYWORD_TRANSFORMER, ACDSeeKeywordTransformerClass)) - -typedef struct _ACDSeeKeywordTransformer ACDSeeKeywordTransformer; -typedef struct _ACDSeeKeywordTransformerClass ACDSeeKeywordTransformerClass; -typedef struct _ACDSeeKeywordTransformerPrivate ACDSeeKeywordTransformerPrivate; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _g_markup_parse_context_unref0(var) ((var == NULL) ? NULL : (var = (g_markup_parse_context_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL))) - -#define TYPE_HIERARCHICAL_KEYWORD_FIELD (hierarchical_keyword_field_get_type ()) -#define HIERARCHICAL_KEYWORD_FIELD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_KEYWORD_FIELD, HierarchicalKeywordField)) -#define HIERARCHICAL_KEYWORD_FIELD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_KEYWORD_FIELD, HierarchicalKeywordFieldClass)) -#define IS_HIERARCHICAL_KEYWORD_FIELD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_KEYWORD_FIELD)) -#define IS_HIERARCHICAL_KEYWORD_FIELD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_KEYWORD_FIELD)) -#define HIERARCHICAL_KEYWORD_FIELD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_KEYWORD_FIELD, HierarchicalKeywordFieldClass)) - -typedef struct _HierarchicalKeywordField HierarchicalKeywordField; -typedef struct _HierarchicalKeywordFieldClass HierarchicalKeywordFieldClass; -typedef struct _HierarchicalKeywordFieldPrivate HierarchicalKeywordFieldPrivate; -#define _keyword_transformer_unref0(var) ((var == NULL) ? NULL : (var = (keyword_transformer_unref (var), NULL))) -typedef struct _ParamSpecHierarchicalKeywordField ParamSpecHierarchicalKeywordField; - -#define TYPE_PHOTO_PREVIEW (photo_preview_get_type ()) -#define PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_PREVIEW, PhotoPreview)) -#define PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_PREVIEW, PhotoPreviewClass)) -#define IS_PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_PREVIEW)) -#define IS_PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_PREVIEW)) -#define PHOTO_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_PREVIEW, PhotoPreviewClass)) - -typedef struct _PhotoPreview PhotoPreview; -typedef struct _PhotoPreviewClass PhotoPreviewClass; -typedef struct _PhotoPreviewPrivate PhotoPreviewPrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -#define _g_bytes_unref0(var) ((var == NULL) ? NULL : (var = (g_bytes_unref (var), NULL))) -typedef struct _ParamSpecPhotoPreview ParamSpecPhotoPreview; - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; -typedef struct _MediaMetadataPrivate MediaMetadataPrivate; - -#define TYPE_METADATA_DATE_TIME (metadata_date_time_get_type ()) -#define METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTime)) -#define METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) -#define IS_METADATA_DATE_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_METADATA_DATE_TIME)) -#define IS_METADATA_DATE_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_METADATA_DATE_TIME)) -#define METADATA_DATE_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_METADATA_DATE_TIME, MetadataDateTimeClass)) - -typedef struct _MetadataDateTime MetadataDateTime; -typedef struct _MetadataDateTimeClass MetadataDateTimeClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; -typedef struct _PhotoMetadataPrivate PhotoMetadataPrivate; - -#define PHOTO_METADATA_TYPE_SET_OPTION (photo_metadata_set_option_get_type ()) -#define _exif_data_unref0(var) ((var == NULL) ? NULL : (var = (exif_data_unref (var), NULL))) - -#define TYPE_PREPARE_INPUT_TEXT_OPTIONS (prepare_input_text_options_get_type ()) -typedef struct _Block1Data Block1Data; -#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL))) -typedef struct _Block2Data Block2Data; -typedef struct _Block3Data Block3Data; - -#define TYPE_METADATA_RATIONAL (metadata_rational_get_type ()) -typedef struct _MetadataRational MetadataRational; -typedef struct _Block4Data Block4Data; -#define _metadata_date_time_unref0(var) ((var == NULL) ? NULL : (var = (metadata_date_time_unref (var), NULL))) -typedef struct _Block5Data Block5Data; -#define _exif_mem_unref0(var) ((var == NULL) ? NULL : (var = (exif_mem_unref (var), NULL))) -#define _g_checksum_free0(var) ((var == NULL) ? NULL : (var = (g_checksum_free (var), NULL))) - -#define PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW (photo_metadata_internal_photo_preview_get_type ()) -#define PHOTO_METADATA_INTERNAL_PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW, PhotoMetadataInternalPhotoPreview)) -#define PHOTO_METADATA_INTERNAL_PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW, PhotoMetadataInternalPhotoPreviewClass)) -#define PHOTO_METADATA_IS_INTERNAL_PHOTO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW)) -#define PHOTO_METADATA_IS_INTERNAL_PHOTO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW)) -#define PHOTO_METADATA_INTERNAL_PHOTO_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW, PhotoMetadataInternalPhotoPreviewClass)) - -typedef struct _PhotoMetadataInternalPhotoPreview PhotoMetadataInternalPhotoPreview; -typedef struct _PhotoMetadataInternalPhotoPreviewClass PhotoMetadataInternalPhotoPreviewClass; -typedef struct _Block6Data Block6Data; - -#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ()) -#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex)) -#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) -#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX)) -#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX)) -#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) - -typedef struct _HierarchicalTagIndex HierarchicalTagIndex; -typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass; -#define _hierarchical_keyword_field_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_keyword_field_unref (var), NULL))) -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) -#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL))) - -#define TYPE_ORIENTATION (orientation_get_type ()) - -#define TYPE_RATING (rating_get_type ()) -typedef struct _PhotoMetadataInternalPhotoPreviewPrivate PhotoMetadataInternalPhotoPreviewPrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef enum { - METADATA_DOMAIN_UNKNOWN, - METADATA_DOMAIN_EXIF, - METADATA_DOMAIN_XMP, - METADATA_DOMAIN_IPTC -} MetadataDomain; - -struct _KeywordTransformer { - GTypeInstance parent_instance; - volatile int ref_count; - KeywordTransformerPrivate * priv; -}; - -struct _KeywordTransformerClass { - GTypeClass parent_class; - void (*finalize) (KeywordTransformer *self); - GeeList* (*transform) (KeywordTransformer* self, const gchar* input, GError** error); -}; - -struct _ParamSpecKeywordTransformer { - GParamSpec parent_instance; -}; - -struct _NullKeywordTransformer { - KeywordTransformer parent_instance; - NullKeywordTransformerPrivate * priv; -}; - -struct _NullKeywordTransformerClass { - KeywordTransformerClass parent_class; -}; - -struct _ACDSeeKeywordTransformer { - KeywordTransformer parent_instance; - ACDSeeKeywordTransformerPrivate * priv; -}; - -struct _ACDSeeKeywordTransformerClass { - KeywordTransformerClass parent_class; -}; - -struct _ACDSeeKeywordTransformerPrivate { - GMarkupParser parser; - GError* error; - GeeArrayQueue* stack; - GeeArrayList* result; - gboolean assigned; -}; - -struct _HierarchicalKeywordField { - GTypeInstance parent_instance; - volatile int ref_count; - HierarchicalKeywordFieldPrivate * priv; - gchar* field_name; - gchar* path_separator; - gboolean wants_leading_separator; - gboolean is_writeable; - KeywordTransformer* transformer; -}; - -struct _HierarchicalKeywordFieldClass { - GTypeClass parent_class; - void (*finalize) (HierarchicalKeywordField *self); -}; - -struct _ParamSpecHierarchicalKeywordField { - GParamSpec parent_instance; -}; - -struct _PhotoPreview { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoPreviewPrivate * priv; -}; - -struct _PhotoPreviewClass { - GTypeClass parent_class; - void (*finalize) (PhotoPreview *self); - GBytes* (*flatten) (PhotoPreview* self, GError** error); - GdkPixbuf* (*get_pixbuf) (PhotoPreview* self, GError** error); -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _PhotoPreviewPrivate { - gchar* name; - Dimensions dimensions; - guint32 size; - gchar* mime_type; - gchar* extension; -}; - -struct _ParamSpecPhotoPreview { - GParamSpec parent_instance; -}; - -struct _MediaMetadata { - GTypeInstance parent_instance; - volatile int ref_count; - MediaMetadataPrivate * priv; -}; - -struct _MediaMetadataClass { - GTypeClass parent_class; - void (*finalize) (MediaMetadata *self); - void (*read_from_file) (MediaMetadata* self, GFile* file, GError** error); - MetadataDateTime* (*get_creation_date_time) (MediaMetadata* self); - gchar* (*get_title) (MediaMetadata* self); - gchar* (*get_comment) (MediaMetadata* self); -}; - -struct _PhotoMetadata { - MediaMetadata parent_instance; - PhotoMetadataPrivate * priv; -}; - -struct _PhotoMetadataClass { - MediaMetadataClass parent_class; -}; - -struct _PhotoMetadataPrivate { - GExiv2Metadata* exiv2; - ExifData* exif; - gchar* source_name; - gchar* metadata_hash; - gchar* thumbnail_md5; -}; - -typedef enum { - PHOTO_METADATA_SET_OPTION_ALL_DOMAINS, - PHOTO_METADATA_SET_OPTION_ONLY_IF_DOMAIN_PRESENT, - PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN -} PhotoMetadataSetOption; - -typedef enum { - PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL = 1 << 0, - PREPARE_INPUT_TEXT_OPTIONS_VALIDATE = 1 << 1, - PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL = 1 << 2, - PREPARE_INPUT_TEXT_OPTIONS_STRIP = 1 << 3, - PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF = 1 << 4, - PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE = 1 << 5, - PREPARE_INPUT_TEXT_OPTIONS_DEFAULT = ((((PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE -} PrepareInputTextOptions; - -typedef void (*PhotoMetadataSetGenericValue) (const gchar* tag, void* user_data); -struct _Block1Data { - int _ref_count_; - PhotoMetadata* self; - gchar* value; -}; - -struct _Block2Data { - int _ref_count_; - PhotoMetadata* self; - GeeCollection* values; -}; - -struct _Block3Data { - int _ref_count_; - PhotoMetadata* self; - glong value; -}; - -struct _MetadataRational { - gint numerator; - gint denominator; -}; - -struct _Block4Data { - int _ref_count_; - PhotoMetadata* self; - MetadataRational rational; -}; - -typedef enum { - METADATA_DATE_TIME_ERROR_INVALID_FORMAT, - METADATA_DATE_TIME_ERROR_UNSUPPORTED_FORMAT -} MetadataDateTimeError; -#define METADATA_DATE_TIME_ERROR metadata_date_time_error_quark () -struct _Block5Data { - int _ref_count_; - PhotoMetadata* self; - MetadataDateTime* date_time; -}; - -struct _Block6Data { - int _ref_count_; - PhotoMetadata* self; - gchar* comment; -}; - -typedef enum { - ORIENTATION_MIN = 1, - ORIENTATION_TOP_LEFT = 1, - ORIENTATION_TOP_RIGHT = 2, - ORIENTATION_BOTTOM_RIGHT = 3, - ORIENTATION_BOTTOM_LEFT = 4, - ORIENTATION_LEFT_TOP = 5, - ORIENTATION_RIGHT_TOP = 6, - ORIENTATION_RIGHT_BOTTOM = 7, - ORIENTATION_LEFT_BOTTOM = 8, - ORIENTATION_MAX = 8 -} Orientation; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -struct _PhotoMetadataInternalPhotoPreview { - PhotoPreview parent_instance; - PhotoMetadataInternalPhotoPreviewPrivate * priv; - PhotoMetadata* owner; - guint number; -}; - -struct _PhotoMetadataInternalPhotoPreviewClass { - PhotoPreviewClass parent_class; -}; - - -static gpointer keyword_transformer_parent_class = NULL; -static gpointer null_keyword_transformer_parent_class = NULL; -static gpointer acd_see_keyword_transformer_parent_class = NULL; -static gpointer hierarchical_keyword_field_parent_class = NULL; -static gpointer photo_preview_parent_class = NULL; -static gpointer photo_metadata_parent_class = NULL; -static gchar** photo_metadata_DATE_TIME_TAGS; -static gint photo_metadata_DATE_TIME_TAGS_length1; -static gchar** photo_metadata_DATE_TIME_TAGS = NULL; -static gint photo_metadata_DATE_TIME_TAGS_length1 = 0; -static gint _photo_metadata_DATE_TIME_TAGS_size_ = 0; -static gchar** photo_metadata_EXPOSURE_DATE_TIME_TAGS; -static gint photo_metadata_EXPOSURE_DATE_TIME_TAGS_length1; -static gchar** photo_metadata_EXPOSURE_DATE_TIME_TAGS = NULL; -static gint photo_metadata_EXPOSURE_DATE_TIME_TAGS_length1 = 0; -static gint _photo_metadata_EXPOSURE_DATE_TIME_TAGS_size_ = 0; -static gchar** photo_metadata_DIGITIZED_DATE_TIME_TAGS; -static gint photo_metadata_DIGITIZED_DATE_TIME_TAGS_length1; -static gchar** photo_metadata_DIGITIZED_DATE_TIME_TAGS = NULL; -static gint photo_metadata_DIGITIZED_DATE_TIME_TAGS_length1 = 0; -static gint _photo_metadata_DIGITIZED_DATE_TIME_TAGS_size_ = 0; -static gchar** photo_metadata_WIDTH_TAGS; -static gint photo_metadata_WIDTH_TAGS_length1; -static gchar** photo_metadata_WIDTH_TAGS = NULL; -static gint photo_metadata_WIDTH_TAGS_length1 = 0; -static gint _photo_metadata_WIDTH_TAGS_size_ = 0; -extern gchar** photo_metadata_HEIGHT_TAGS; -extern gint photo_metadata_HEIGHT_TAGS_length1; -gchar** photo_metadata_HEIGHT_TAGS = NULL; -gint photo_metadata_HEIGHT_TAGS_length1 = 0; -static gchar** photo_metadata_STANDARD_TITLE_TAGS; -static gint photo_metadata_STANDARD_TITLE_TAGS_length1; -static gchar** photo_metadata_STANDARD_TITLE_TAGS = NULL; -static gint photo_metadata_STANDARD_TITLE_TAGS_length1 = 0; -static gint _photo_metadata_STANDARD_TITLE_TAGS_size_ = 0; -static gchar** photo_metadata_COMMENT_TAGS; -static gint photo_metadata_COMMENT_TAGS_length1; -static gchar** photo_metadata_COMMENT_TAGS = NULL; -static gint photo_metadata_COMMENT_TAGS_length1 = 0; -static gint _photo_metadata_COMMENT_TAGS_size_ = 0; -static gchar** photo_metadata_KEYWORD_TAGS; -static gint photo_metadata_KEYWORD_TAGS_length1; -static gchar** photo_metadata_KEYWORD_TAGS = NULL; -static gint photo_metadata_KEYWORD_TAGS_length1 = 0; -static gint _photo_metadata_KEYWORD_TAGS_size_ = 0; -static HierarchicalKeywordField** photo_metadata_HIERARCHICAL_KEYWORD_TAGS; -static gint photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1; -static HierarchicalKeywordField** photo_metadata_HIERARCHICAL_KEYWORD_TAGS = NULL; -static gint photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1 = 0; -static gint _photo_metadata_HIERARCHICAL_KEYWORD_TAGS_size_ = 0; -static gchar** photo_metadata_ARTIST_TAGS; -static gint photo_metadata_ARTIST_TAGS_length1; -static gchar** photo_metadata_ARTIST_TAGS = NULL; -static gint photo_metadata_ARTIST_TAGS_length1 = 0; -static gint _photo_metadata_ARTIST_TAGS_size_ = 0; -static gchar** photo_metadata_RATING_TAGS; -static gint photo_metadata_RATING_TAGS_length1; -static gchar** photo_metadata_RATING_TAGS = NULL; -static gint photo_metadata_RATING_TAGS_length1 = 0; -static gint _photo_metadata_RATING_TAGS_size_ = 0; -static gpointer photo_metadata_internal_photo_preview_parent_class = NULL; - -GType metadata_domain_get_type (void) G_GNUC_CONST; -gpointer keyword_transformer_ref (gpointer instance); -void keyword_transformer_unref (gpointer instance); -GParamSpec* param_spec_keyword_transformer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_keyword_transformer (GValue* value, - gpointer v_object); -void value_take_keyword_transformer (GValue* value, - gpointer v_object); -gpointer value_get_keyword_transformer (const GValue* value); -GType keyword_transformer_get_type (void) G_GNUC_CONST; -GeeList* keyword_transformer_transform (KeywordTransformer* self, - const gchar* input, - GError** error); -static GeeList* keyword_transformer_real_transform (KeywordTransformer* self, - const gchar* input, - GError** error); -KeywordTransformer* keyword_transformer_construct (GType object_type); -static void keyword_transformer_finalize (KeywordTransformer * obj); -GType null_keyword_transformer_get_type (void) G_GNUC_CONST; -static GeeList* null_keyword_transformer_real_transform (KeywordTransformer* base, - const gchar* input, - GError** error); -NullKeywordTransformer* null_keyword_transformer_new (void); -NullKeywordTransformer* null_keyword_transformer_construct (GType object_type); -GType acd_see_keyword_transformer_get_type (void) G_GNUC_CONST; -#define ACD_SEE_KEYWORD_TRANSFORMER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ACD_SEE_KEYWORD_TRANSFORMER, ACDSeeKeywordTransformerPrivate)) -ACDSeeKeywordTransformer* acd_see_keyword_transformer_new (void); -ACDSeeKeywordTransformer* acd_see_keyword_transformer_construct (GType object_type); -static void acd_see_keyword_transformer_on_start (ACDSeeKeywordTransformer* self, - GMarkupParseContext* ctx, - const gchar* name, - gchar** attribute_names, - gchar** attribute_values, - GError** error); -static void _acd_see_keyword_transformer_on_start_gmarkup_parser_start_element_func (GMarkupParseContext* context, - const gchar* element_name, - gchar** attribute_names, - gchar** attribute_values, - gpointer self, - GError** error); -static void acd_see_keyword_transformer_on_end (ACDSeeKeywordTransformer* self, - GMarkupParseContext* ctx, - const gchar* name, - GError** error); -static void _acd_see_keyword_transformer_on_end_gmarkup_parser_end_element_func (GMarkupParseContext* context, - const gchar* element_name, - gpointer self, - GError** error); -static void acd_see_keyword_transformer_on_text (ACDSeeKeywordTransformer* self, - GMarkupParseContext* ctx, - const gchar* text, - GError** error); -static void _acd_see_keyword_transformer_on_text_gmarkup_parser_text_func (GMarkupParseContext* context, - const gchar* text, - gsize text_len, - gpointer self, - GError** error); -static void acd_see_keyword_transformer_on_error (ACDSeeKeywordTransformer* self, - GMarkupParseContext* ctx, - GError* _error_); -static void _acd_see_keyword_transformer_on_error_gmarkup_parser_error_func (GMarkupParseContext* context, - GError* _error_, - gpointer self); -static GeeList* acd_see_keyword_transformer_real_transform (KeywordTransformer* base, - const gchar* input, - GError** error); -static void acd_see_keyword_transformer_finalize (KeywordTransformer * obj); -gpointer hierarchical_keyword_field_ref (gpointer instance); -void hierarchical_keyword_field_unref (gpointer instance); -GParamSpec* param_spec_hierarchical_keyword_field (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_hierarchical_keyword_field (GValue* value, - gpointer v_object); -void value_take_hierarchical_keyword_field (GValue* value, - gpointer v_object); -gpointer value_get_hierarchical_keyword_field (const GValue* value); -GType hierarchical_keyword_field_get_type (void) G_GNUC_CONST; -HierarchicalKeywordField* hierarchical_keyword_field_new (const gchar* field_name, - const gchar* path_separator, - gboolean wants_leading_separator, - gboolean is_writeable, - KeywordTransformer* transformer); -HierarchicalKeywordField* hierarchical_keyword_field_construct (GType object_type, - const gchar* field_name, - const gchar* path_separator, - gboolean wants_leading_separator, - gboolean is_writeable, - KeywordTransformer* transformer); -static void hierarchical_keyword_field_finalize (HierarchicalKeywordField * obj); -gpointer photo_preview_ref (gpointer instance); -void photo_preview_unref (gpointer instance); -GParamSpec* param_spec_photo_preview (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_preview (GValue* value, - gpointer v_object); -void value_take_photo_preview (GValue* value, - gpointer v_object); -gpointer value_get_photo_preview (const GValue* value); -GType photo_preview_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -#define PHOTO_PREVIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_PREVIEW, PhotoPreviewPrivate)) -PhotoPreview* photo_preview_construct (GType object_type, - const gchar* name, - Dimensions* dimensions, - guint32 size, - const gchar* mime_type, - const gchar* extension); -gchar* photo_preview_get_name (PhotoPreview* self); -void photo_preview_get_pixel_dimensions (PhotoPreview* self, - Dimensions* result); -guint32 photo_preview_get_size (PhotoPreview* self); -gchar* photo_preview_get_mime_type (PhotoPreview* self); -gchar* photo_preview_get_extension (PhotoPreview* self); -GBytes* photo_preview_flatten (PhotoPreview* self, - GError** error); -static GBytes* photo_preview_real_flatten (PhotoPreview* self, - GError** error); -GdkPixbuf* photo_preview_get_pixbuf (PhotoPreview* self, - GError** error); -static GdkPixbuf* photo_preview_real_get_pixbuf (PhotoPreview* self, - GError** error); -static void photo_preview_finalize (PhotoPreview * obj); -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -gpointer metadata_date_time_ref (gpointer instance); -void metadata_date_time_unref (gpointer instance); -GParamSpec* param_spec_metadata_date_time (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_metadata_date_time (GValue* value, - gpointer v_object); -void value_take_metadata_date_time (GValue* value, - gpointer v_object); -gpointer value_get_metadata_date_time (const GValue* value); -GType metadata_date_time_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -#define PHOTO_METADATA_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_PHOTO_METADATA, PhotoMetadataPrivate)) -GType photo_metadata_set_option_get_type (void) G_GNUC_CONST; -GType prepare_input_text_options_get_type (void) G_GNUC_CONST; -#define PHOTO_METADATA_PREPARE_STRING_OPTIONS (((((PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE) | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) -#define PHOTO_METADATA_IPHOTO_TITLE_TAG "Iptc.Application2.ObjectName" -PhotoMetadata* photo_metadata_new (void); -PhotoMetadata* photo_metadata_construct (GType object_type); -MediaMetadata* media_metadata_construct (GType object_type); -static void photo_metadata_real_read_from_file (MediaMetadata* base, - GFile* file, - GError** error); -void photo_metadata_write_to_file (PhotoMetadata* self, - GFile* file, - GError** error); -void photo_metadata_read_from_buffer (PhotoMetadata* self, - guint8* buffer, - int buffer_length1, - gint length, - GError** error); -void photo_metadata_read_from_app1_segment (PhotoMetadata* self, - GBytes* buffer, - GError** error); -MetadataDomain photo_metadata_get_tag_domain (const gchar* tag); -gboolean photo_metadata_has_domain (PhotoMetadata* self, - MetadataDomain domain); -gboolean photo_metadata_has_exif (PhotoMetadata* self); -gboolean photo_metadata_has_xmp (PhotoMetadata* self); -gboolean photo_metadata_has_iptc (PhotoMetadata* self); -gboolean photo_metadata_can_write_to_domain (PhotoMetadata* self, - MetadataDomain domain); -gboolean photo_metadata_can_write_exif (PhotoMetadata* self); -gboolean photo_metadata_can_write_xmp (PhotoMetadata* self); -gboolean photo_metadata_can_write_iptc (PhotoMetadata* self); -gboolean photo_metadata_has_tag (PhotoMetadata* self, - const gchar* tag); -static GeeSet* photo_metadata_create_string_set (PhotoMetadata* self, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify); -GeeCollection* photo_metadata_get_tags (PhotoMetadata* self, - MetadataDomain domain, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify); -GeeCollection* photo_metadata_get_all_tags (PhotoMetadata* self, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify); -gchar* photo_metadata_get_tag_label (PhotoMetadata* self, - const gchar* tag); -gchar* photo_metadata_get_tag_description (PhotoMetadata* self, - const gchar* tag); -gchar* photo_metadata_get_string (PhotoMetadata* self, - const gchar* tag, - PrepareInputTextOptions options); -gchar* prepare_input_text (const gchar* text, - PrepareInputTextOptions options, - gint dest_length); -#define DEFAULT_USER_TEXT_INPUT_LENGTH 1024 -gchar* photo_metadata_get_string_interpreted (PhotoMetadata* self, - const gchar* tag, - PrepareInputTextOptions options); -gchar* photo_metadata_get_first_string (PhotoMetadata* self, - gchar** tags, - int tags_length1); -gchar* photo_metadata_get_first_string_interpreted (PhotoMetadata* self, - gchar** tags, - int tags_length1); -GeeList* photo_metadata_get_string_multiple (PhotoMetadata* self, - const gchar* tag); -GeeList* photo_metadata_get_first_string_multiple (PhotoMetadata* self, - gchar** tags, - int tags_length1); -void photo_metadata_set_string (PhotoMetadata* self, - const gchar* tag, - const gchar* value, - PrepareInputTextOptions options); -static void photo_metadata_set_all_generic (PhotoMetadata* self, - gchar** tags, - int tags_length1, - PhotoMetadataSetOption option, - PhotoMetadataSetGenericValue setter, - void* setter_target); -void photo_metadata_set_all_string (PhotoMetadata* self, - gchar** tags, - int tags_length1, - const gchar* value, - PhotoMetadataSetOption option); -static Block1Data* block1_data_ref (Block1Data* _data1_); -static void block1_data_unref (void * _userdata_); -static void __lambda5_ (Block1Data* _data1_, - const gchar* tag); -static void ___lambda5__photo_metadata_set_generic_value (const gchar* tag, - gpointer self); -void photo_metadata_set_string_multiple (PhotoMetadata* self, - const gchar* tag, - GeeCollection* collection); -static void _vala_array_add48 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add49 (gchar** * array, - int* length, - int* size, - gchar* value); -void photo_metadata_set_all_string_multiple (PhotoMetadata* self, - gchar** tags, - int tags_length1, - GeeCollection* values, - PhotoMetadataSetOption option); -static Block2Data* block2_data_ref (Block2Data* _data2_); -static void block2_data_unref (void * _userdata_); -static void __lambda6_ (Block2Data* _data2_, - const gchar* tag); -static void ___lambda6__photo_metadata_set_generic_value (const gchar* tag, - gpointer self); -gboolean photo_metadata_get_long (PhotoMetadata* self, - const gchar* tag, - glong* value); -gboolean photo_metadata_get_first_long (PhotoMetadata* self, - gchar** tags, - int tags_length1, - glong* value); -void photo_metadata_set_long (PhotoMetadata* self, - const gchar* tag, - glong value); -void photo_metadata_set_all_long (PhotoMetadata* self, - gchar** tags, - int tags_length1, - glong value, - PhotoMetadataSetOption option); -static Block3Data* block3_data_ref (Block3Data* _data3_); -static void block3_data_unref (void * _userdata_); -static void __lambda7_ (Block3Data* _data3_, - const gchar* tag); -static void ___lambda7__photo_metadata_set_generic_value (const gchar* tag, - gpointer self); -GType metadata_rational_get_type (void) G_GNUC_CONST; -MetadataRational* metadata_rational_dup (const MetadataRational* self); -void metadata_rational_free (MetadataRational* self); -gboolean photo_metadata_get_rational (PhotoMetadata* self, - const gchar* tag, - MetadataRational* rational); -void metadata_rational_init (MetadataRational *self, - gint numerator, - gint denominator); -gboolean photo_metadata_get_first_rational (PhotoMetadata* self, - gchar** tags, - int tags_length1, - MetadataRational* rational); -void photo_metadata_set_rational (PhotoMetadata* self, - const gchar* tag, - MetadataRational* rational); -gchar* metadata_rational_to_string (MetadataRational *self); -void photo_metadata_set_all_rational (PhotoMetadata* self, - gchar** tags, - int tags_length1, - MetadataRational* rational, - PhotoMetadataSetOption option); -static Block4Data* block4_data_ref (Block4Data* _data4_); -static void block4_data_unref (void * _userdata_); -static void __lambda8_ (Block4Data* _data4_, - const gchar* tag); -static void ___lambda8__photo_metadata_set_generic_value (const gchar* tag, - gpointer self); -MetadataDateTime* photo_metadata_get_date_time (PhotoMetadata* self, - const gchar* tag); -GQuark metadata_date_time_error_quark (void); -MetadataDateTime* metadata_date_time_new_from_xmp (const gchar* label, - GError** error); -MetadataDateTime* metadata_date_time_construct_from_xmp (GType object_type, - const gchar* label, - GError** error); -MetadataDateTime* metadata_date_time_new_from_exif (const gchar* label, - GError** error); -MetadataDateTime* metadata_date_time_construct_from_exif (GType object_type, - const gchar* label, - GError** error); -MetadataDateTime* photo_metadata_get_first_date_time (PhotoMetadata* self, - gchar** tags, - int tags_length1); -void photo_metadata_set_date_time (PhotoMetadata* self, - const gchar* tag, - MetadataDateTime* date_time); -gchar* metadata_date_time_get_exif_label (MetadataDateTime* self); -gchar* metadata_date_time_get_xmp_label (MetadataDateTime* self); -const gchar* metadata_domain_to_string (MetadataDomain self); -void photo_metadata_set_all_date_time (PhotoMetadata* self, - gchar** tags, - int tags_length1, - MetadataDateTime* date_time, - PhotoMetadataSetOption option); -static Block5Data* block5_data_ref (Block5Data* _data5_); -static void block5_data_unref (void * _userdata_); -static void __lambda9_ (Block5Data* _data5_, - const gchar* tag); -static void ___lambda9__photo_metadata_set_generic_value (const gchar* tag, - gpointer self); -gchar* photo_metadata_exif_hash (PhotoMetadata* self); -gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self); -guint photo_metadata_get_preview_count (PhotoMetadata* self); -PhotoPreview* photo_metadata_get_preview (PhotoMetadata* self, - guint number); -static PhotoMetadataInternalPhotoPreview* photo_metadata_internal_photo_preview_new (PhotoMetadata* owner, - const gchar* name, - guint number, - GExiv2PreviewProperties* props); -static PhotoMetadataInternalPhotoPreview* photo_metadata_internal_photo_preview_construct (GType object_type, - PhotoMetadata* owner, - const gchar* name, - guint number, - GExiv2PreviewProperties* props); -static GType photo_metadata_internal_photo_preview_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -void photo_metadata_remove_exif_thumbnail (PhotoMetadata* self); -void photo_metadata_remove_tag (PhotoMetadata* self, - const gchar* tag); -void photo_metadata_remove_tags (PhotoMetadata* self, - gchar** tags, - int tags_length1); -void photo_metadata_clear_domain (PhotoMetadata* self, - MetadataDomain domain); -void photo_metadata_clear (PhotoMetadata* self); -MetadataDateTime* photo_metadata_get_modification_date_time (PhotoMetadata* self); -void photo_metadata_set_modification_date_time (PhotoMetadata* self, - MetadataDateTime* date_time, - PhotoMetadataSetOption option); -MetadataDateTime* photo_metadata_get_exposure_date_time (PhotoMetadata* self); -void photo_metadata_set_exposure_date_time (PhotoMetadata* self, - MetadataDateTime* date_time, - PhotoMetadataSetOption option); -MetadataDateTime* photo_metadata_get_digitized_date_time (PhotoMetadata* self); -void photo_metadata_set_digitized_date_time (PhotoMetadata* self, - MetadataDateTime* date_time, - PhotoMetadataSetOption option); -static MetadataDateTime* photo_metadata_real_get_creation_date_time (MediaMetadata* base); -Dimensions* photo_metadata_get_pixel_dimensions (PhotoMetadata* self); -void dimensions_init (Dimensions *self, - gint width, - gint height); -void photo_metadata_set_pixel_dimensions (PhotoMetadata* self, - Dimensions* dim, - PhotoMetadataSetOption option); -static gchar* photo_metadata_real_get_title (MediaMetadata* base); -gboolean is_string_empty (const gchar* s); -void photo_metadata_set_title (PhotoMetadata* self, - const gchar* title, - PhotoMetadataSetOption option); -static gchar* photo_metadata_real_get_comment (MediaMetadata* base); -void photo_metadata_set_comment (PhotoMetadata* self, - const gchar* comment, - PhotoMetadataSetOption option); -static Block6Data* block6_data_ref (Block6Data* _data6_); -static void block6_data_unref (void * _userdata_); -static void ___lambda10_ (Block6Data* _data6_, - const gchar* tag); -static void ____lambda10__photo_metadata_set_generic_value (const gchar* tag, - gpointer self); -GeeSet* photo_metadata_get_keywords (PhotoMetadata* self, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify); -gchar* hierarchical_tag_utilities_make_flat_tag_safe (const gchar* in_tag); -gpointer hierarchical_tag_index_ref (gpointer instance); -void hierarchical_tag_index_unref (gpointer instance); -GParamSpec* param_spec_hierarchical_tag_index (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_hierarchical_tag_index (GValue* value, - gpointer v_object); -void value_take_hierarchical_tag_index (GValue* value, - gpointer v_object); -gpointer value_get_hierarchical_tag_index (const GValue* value); -GType hierarchical_tag_index_get_type (void) G_GNUC_CONST; -static void photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* self, - HierarchicalTagIndex* index); -GeeCollection* hierarchical_tag_index_get_all_paths (HierarchicalTagIndex* self); -#define TAG_PATH_SEPARATOR_STRING "/" -void photo_metadata_set_keywords (PhotoMetadata* self, - GeeCollection* keywords, - PhotoMetadataSetOption option); -HierarchicalTagIndex* hierarchical_tag_index_new (void); -HierarchicalTagIndex* hierarchical_tag_index_construct (GType object_type); -GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path); -void hierarchical_tag_index_add_path (HierarchicalTagIndex* self, - const gchar* tag, - const gchar* path); -GeeCollection* hierarchical_tag_index_get_all_tags (HierarchicalTagIndex* self); -gboolean photo_metadata_has_hierarchical_keywords (PhotoMetadata* self); -GeeSet* photo_metadata_get_hierarchical_keywords (PhotoMetadata* self); -gchar* hierarchical_tag_utilities_canonicalize (const gchar* in_tag, - const gchar* foreign_separator); -gboolean photo_metadata_has_orientation (PhotoMetadata* self); -GType orientation_get_type (void) G_GNUC_CONST; -Orientation photo_metadata_get_orientation (PhotoMetadata* self); -void photo_metadata_set_orientation (PhotoMetadata* self, - Orientation orientation); -gboolean photo_metadata_get_gps (PhotoMetadata* self, - gdouble* longitude, - gchar* * long_ref, - gdouble* latitude, - gchar* * lat_ref, - gdouble* altitude); -gboolean photo_metadata_get_exposure (PhotoMetadata* self, - MetadataRational* exposure); -gchar* photo_metadata_get_exposure_string (PhotoMetadata* self); -gboolean metadata_rational_is_valid (MetadataRational *self); -gboolean photo_metadata_get_iso (PhotoMetadata* self, - glong* iso); -gchar* photo_metadata_get_iso_string (PhotoMetadata* self); -gboolean photo_metadata_get_aperture (PhotoMetadata* self, - MetadataRational* aperture); -gchar* photo_metadata_get_aperture_string (PhotoMetadata* self, - gboolean pango_formatted); -gchar* photo_metadata_get_camera_make (PhotoMetadata* self); -gchar* photo_metadata_get_camera_model (PhotoMetadata* self); -gboolean photo_metadata_get_flash (PhotoMetadata* self, - glong* flash); -gchar* photo_metadata_get_flash_string (PhotoMetadata* self); -gboolean photo_metadata_get_focal_length (PhotoMetadata* self, - MetadataRational* focal_length); -gchar* photo_metadata_get_focal_length_string (PhotoMetadata* self); -gchar* photo_metadata_get_artist (PhotoMetadata* self); -gchar* photo_metadata_get_copyright (PhotoMetadata* self); -gchar* photo_metadata_get_software (PhotoMetadata* self); -void photo_metadata_set_software (PhotoMetadata* self, - const gchar* software, - const gchar* version); -void photo_metadata_remove_software (PhotoMetadata* self); -gchar* photo_metadata_get_exposure_bias (PhotoMetadata* self); -GType rating_get_type (void) G_GNUC_CONST; -Rating photo_metadata_get_rating (PhotoMetadata* self); -Rating rating_unserialize (gint value); -void photo_metadata_set_rating (PhotoMetadata* self, - Rating rating); -gint rating_serialize (Rating self); -static GBytes* photo_metadata_internal_photo_preview_real_flatten (PhotoPreview* base, - GError** error); -static void photo_metadata_internal_photo_preview_finalize (PhotoPreview * obj); -static void photo_metadata_finalize (MediaMetadata * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - -extern const gint RESOURCES_rating_thresholds[6]; - -GType -metadata_domain_get_type (void) -{ - static volatile gsize metadata_domain_type_id__volatile = 0; - if (g_once_init_enter (&metadata_domain_type_id__volatile)) { - static const GEnumValue values[] = {{METADATA_DOMAIN_UNKNOWN, "METADATA_DOMAIN_UNKNOWN", "unknown"}, {METADATA_DOMAIN_EXIF, "METADATA_DOMAIN_EXIF", "exif"}, {METADATA_DOMAIN_XMP, "METADATA_DOMAIN_XMP", "xmp"}, {METADATA_DOMAIN_IPTC, "METADATA_DOMAIN_IPTC", "iptc"}, {0, NULL, NULL}}; - GType metadata_domain_type_id; - metadata_domain_type_id = g_enum_register_static ("MetadataDomain", values); - g_once_init_leave (&metadata_domain_type_id__volatile, metadata_domain_type_id); - } - return metadata_domain_type_id__volatile; -} - - -static GeeList* -keyword_transformer_real_transform (KeywordTransformer* self, - const gchar* input, - GError** error) -{ -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_critical ("Type `%s' does not implement abstract method `keyword_transformer_transform'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return NULL; -#line 1021 "PhotoMetadata.c" -} - - -GeeList* -keyword_transformer_transform (KeywordTransformer* self, - const gchar* input, - GError** error) -{ -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_KEYWORD_TRANSFORMER (self), NULL); -#line 32 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return KEYWORD_TRANSFORMER_GET_CLASS (self)->transform (self, input, error); -#line 1034 "PhotoMetadata.c" -} - - -KeywordTransformer* -keyword_transformer_construct (GType object_type) -{ - KeywordTransformer* self = NULL; -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = (KeywordTransformer*) g_type_create_instance (object_type); -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return self; -#line 1046 "PhotoMetadata.c" -} - - -static void -value_keyword_transformer_init (GValue* value) -{ -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 1055 "PhotoMetadata.c" -} - - -static void -value_keyword_transformer_free_value (GValue* value) -{ -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (value->data[0].v_pointer) { -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - keyword_transformer_unref (value->data[0].v_pointer); -#line 1066 "PhotoMetadata.c" - } -} - - -static void -value_keyword_transformer_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (src_value->data[0].v_pointer) { -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - dest_value->data[0].v_pointer = keyword_transformer_ref (src_value->data[0].v_pointer); -#line 1079 "PhotoMetadata.c" - } else { -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - dest_value->data[0].v_pointer = NULL; -#line 1083 "PhotoMetadata.c" - } -} - - -static gpointer -value_keyword_transformer_peek_pointer (const GValue* value) -{ -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return value->data[0].v_pointer; -#line 1093 "PhotoMetadata.c" -} - - -static gchar* -value_keyword_transformer_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (collect_values[0].v_pointer) { -#line 1105 "PhotoMetadata.c" - KeywordTransformer * object; - object = collect_values[0].v_pointer; -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (object->parent_instance.g_class == NULL) { -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1112 "PhotoMetadata.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1116 "PhotoMetadata.c" - } -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = keyword_transformer_ref (object); -#line 1120 "PhotoMetadata.c" - } else { -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 1124 "PhotoMetadata.c" - } -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return NULL; -#line 1128 "PhotoMetadata.c" -} - - -static gchar* -value_keyword_transformer_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - KeywordTransformer ** object_p; - object_p = collect_values[0].v_pointer; -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!object_p) { -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1144 "PhotoMetadata.c" - } -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!value->data[0].v_pointer) { -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *object_p = NULL; -#line 1150 "PhotoMetadata.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *object_p = value->data[0].v_pointer; -#line 1154 "PhotoMetadata.c" - } else { -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *object_p = keyword_transformer_ref (value->data[0].v_pointer); -#line 1158 "PhotoMetadata.c" - } -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return NULL; -#line 1162 "PhotoMetadata.c" -} - - -GParamSpec* -param_spec_keyword_transformer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecKeywordTransformer* spec; -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_KEYWORD_TRANSFORMER), NULL); -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return G_PARAM_SPEC (spec); -#line 1182 "PhotoMetadata.c" -} - - -gpointer -value_get_keyword_transformer (const GValue* value) -{ -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_KEYWORD_TRANSFORMER), NULL); -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return value->data[0].v_pointer; -#line 1193 "PhotoMetadata.c" -} - - -void -value_set_keyword_transformer (GValue* value, - gpointer v_object) -{ - KeywordTransformer * old; -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_KEYWORD_TRANSFORMER)); -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - old = value->data[0].v_pointer; -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (v_object) { -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_KEYWORD_TRANSFORMER)); -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = v_object; -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - keyword_transformer_ref (value->data[0].v_pointer); -#line 1216 "PhotoMetadata.c" - } else { -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 1220 "PhotoMetadata.c" - } -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (old) { -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - keyword_transformer_unref (old); -#line 1226 "PhotoMetadata.c" - } -} - - -void -value_take_keyword_transformer (GValue* value, - gpointer v_object) -{ - KeywordTransformer * old; -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_KEYWORD_TRANSFORMER)); -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - old = value->data[0].v_pointer; -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (v_object) { -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_KEYWORD_TRANSFORMER)); -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = v_object; -#line 1248 "PhotoMetadata.c" - } else { -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 1252 "PhotoMetadata.c" - } -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (old) { -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - keyword_transformer_unref (old); -#line 1258 "PhotoMetadata.c" - } -} - - -static void -keyword_transformer_class_init (KeywordTransformerClass * klass) -{ -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - keyword_transformer_parent_class = g_type_class_peek_parent (klass); -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ((KeywordTransformerClass *) klass)->finalize = keyword_transformer_finalize; -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ((KeywordTransformerClass *) klass)->transform = (GeeList* (*) (KeywordTransformer *, const gchar*, GError**)) keyword_transformer_real_transform; -#line 1272 "PhotoMetadata.c" -} - - -static void -keyword_transformer_instance_init (KeywordTransformer * self) -{ -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->ref_count = 1; -#line 1281 "PhotoMetadata.c" -} - - -static void -keyword_transformer_finalize (KeywordTransformer * obj) -{ - KeywordTransformer * self; -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_KEYWORD_TRANSFORMER, KeywordTransformer); -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_signal_handlers_destroy (self); -#line 1293 "PhotoMetadata.c" -} - - -GType -keyword_transformer_get_type (void) -{ - static volatile gsize keyword_transformer_type_id__volatile = 0; - if (g_once_init_enter (&keyword_transformer_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_keyword_transformer_init, value_keyword_transformer_free_value, value_keyword_transformer_copy_value, value_keyword_transformer_peek_pointer, "p", value_keyword_transformer_collect_value, "p", value_keyword_transformer_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (KeywordTransformerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) keyword_transformer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (KeywordTransformer), 0, (GInstanceInitFunc) keyword_transformer_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType keyword_transformer_type_id; - keyword_transformer_type_id = g_type_register_fundamental (g_type_fundamental_next (), "KeywordTransformer", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&keyword_transformer_type_id__volatile, keyword_transformer_type_id); - } - return keyword_transformer_type_id__volatile; -} - - -gpointer -keyword_transformer_ref (gpointer instance) -{ - KeywordTransformer * self; - self = instance; -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_atomic_int_inc (&self->ref_count); -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return instance; -#line 1322 "PhotoMetadata.c" -} - - -void -keyword_transformer_unref (gpointer instance) -{ - KeywordTransformer * self; - self = instance; -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - KEYWORD_TRANSFORMER_GET_CLASS (self)->finalize (self); -#line 31 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1337 "PhotoMetadata.c" - } -} - - -static GeeList* -null_keyword_transformer_real_transform (KeywordTransformer* base, - const gchar* input, - GError** error) -{ - NullKeywordTransformer * self; - GeeList* result = NULL; - GeeArrayList* _result_ = NULL; - GeeArrayList* _tmp0_; -#line 36 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_KEYWORD_TRANSFORMER, NullKeywordTransformer); -#line 36 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (input != NULL, NULL); -#line 37 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 37 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _result_ = _tmp0_; -#line 38 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_result_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), input); -#line 40 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_result_, GEE_TYPE_LIST, GeeList); -#line 40 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 1365 "PhotoMetadata.c" -} - - -NullKeywordTransformer* -null_keyword_transformer_construct (GType object_type) -{ - NullKeywordTransformer* self = NULL; -#line 35 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = (NullKeywordTransformer*) keyword_transformer_construct (object_type); -#line 35 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return self; -#line 1377 "PhotoMetadata.c" -} - - -NullKeywordTransformer* -null_keyword_transformer_new (void) -{ -#line 35 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return null_keyword_transformer_construct (TYPE_NULL_KEYWORD_TRANSFORMER); -#line 1386 "PhotoMetadata.c" -} - - -static void -null_keyword_transformer_class_init (NullKeywordTransformerClass * klass) -{ -#line 35 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - null_keyword_transformer_parent_class = g_type_class_peek_parent (klass); -#line 35 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ((KeywordTransformerClass *) klass)->transform = (GeeList* (*) (KeywordTransformer *, const gchar*, GError**)) null_keyword_transformer_real_transform; -#line 1397 "PhotoMetadata.c" -} - - -static void -null_keyword_transformer_instance_init (NullKeywordTransformer * self) -{ -} - - -GType -null_keyword_transformer_get_type (void) -{ - static volatile gsize null_keyword_transformer_type_id__volatile = 0; - if (g_once_init_enter (&null_keyword_transformer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (NullKeywordTransformerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) null_keyword_transformer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NullKeywordTransformer), 0, (GInstanceInitFunc) null_keyword_transformer_instance_init, NULL }; - GType null_keyword_transformer_type_id; - null_keyword_transformer_type_id = g_type_register_static (TYPE_KEYWORD_TRANSFORMER, "NullKeywordTransformer", &g_define_type_info, 0); - g_once_init_leave (&null_keyword_transformer_type_id__volatile, null_keyword_transformer_type_id); - } - return null_keyword_transformer_type_id__volatile; -} - - -static void -_acd_see_keyword_transformer_on_start_gmarkup_parser_start_element_func (GMarkupParseContext* context, - const gchar* element_name, - gchar** attribute_names, - gchar** attribute_values, - gpointer self, - GError** error) -{ -#line 64 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - acd_see_keyword_transformer_on_start ((ACDSeeKeywordTransformer*) self, context, element_name, attribute_names, attribute_values, error); -#line 1431 "PhotoMetadata.c" -} - - -static void -_acd_see_keyword_transformer_on_end_gmarkup_parser_end_element_func (GMarkupParseContext* context, - const gchar* element_name, - gpointer self, - GError** error) -{ -#line 65 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - acd_see_keyword_transformer_on_end ((ACDSeeKeywordTransformer*) self, context, element_name, error); -#line 1443 "PhotoMetadata.c" -} - - -static void -_acd_see_keyword_transformer_on_text_gmarkup_parser_text_func (GMarkupParseContext* context, - const gchar* text, - gsize text_len, - gpointer self, - GError** error) -{ -#line 66 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - acd_see_keyword_transformer_on_text ((ACDSeeKeywordTransformer*) self, context, text, error); -#line 1456 "PhotoMetadata.c" -} - - -static void -_acd_see_keyword_transformer_on_error_gmarkup_parser_error_func (GMarkupParseContext* context, - GError* _error_, - gpointer self) -{ -#line 67 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - acd_see_keyword_transformer_on_error ((ACDSeeKeywordTransformer*) self, context, _error_); -#line 1467 "PhotoMetadata.c" -} - - -ACDSeeKeywordTransformer* -acd_see_keyword_transformer_construct (GType object_type) -{ - ACDSeeKeywordTransformer* self = NULL; - GeeArrayList* _tmp0_; - GeeArrayQueue* _tmp1_; -#line 62 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = (ACDSeeKeywordTransformer*) keyword_transformer_construct (object_type); -#line 63 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - memset (&self->priv->parser, 0, sizeof (GMarkupParser)); -#line 64 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->parser.start_element = _acd_see_keyword_transformer_on_start_gmarkup_parser_start_element_func; -#line 65 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->parser.end_element = _acd_see_keyword_transformer_on_end_gmarkup_parser_end_element_func; -#line 66 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->parser.text = _acd_see_keyword_transformer_on_text_gmarkup_parser_text_func; -#line 67 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->parser.error = _acd_see_keyword_transformer_on_error_gmarkup_parser_error_func; -#line 68 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 68 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (self->priv->result); -#line 68 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->result = _tmp0_; -#line 69 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = gee_array_queue_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 69 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (self->priv->stack); -#line 69 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->stack = _tmp1_; -#line 62 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return self; -#line 1503 "PhotoMetadata.c" -} - - -ACDSeeKeywordTransformer* -acd_see_keyword_transformer_new (void) -{ -#line 62 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return acd_see_keyword_transformer_construct (TYPE_ACD_SEE_KEYWORD_TRANSFORMER); -#line 1512 "PhotoMetadata.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return self ? g_object_ref (self) : NULL; -#line 1521 "PhotoMetadata.c" -} - - -static GeeList* -acd_see_keyword_transformer_real_transform (KeywordTransformer* base, - const gchar* input, - GError** error) -{ - ACDSeeKeywordTransformer * self; - GeeList* result = NULL; - GMarkupParseContext* ctx = NULL; - GMarkupParser _tmp0_; - GMarkupParseContext* _tmp1_; - gint _tmp2_; - gint _tmp3_; - GeeArrayList* _tmp4_; - GeeList* _tmp5_; - GError * _inner_error_ = NULL; -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_ACD_SEE_KEYWORD_TRANSFORMER, ACDSeeKeywordTransformer); -#line 72 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (input != NULL, NULL); -#line 73 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->parser; -#line 73 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = g_markup_parse_context_new (&_tmp0_, 0, self, NULL); -#line 73 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ctx = _tmp1_; -#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = strlen (input); -#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = _tmp2_; -#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_markup_parse_context_parse (ctx, input, (gssize) _tmp3_, &_inner_error_); -#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_markup_parse_context_unref0 (ctx); -#line 75 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return NULL; -#line 1564 "PhotoMetadata.c" - } -#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = self->priv->result; -#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_LIST, GeeList)); -#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp5_; -#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_markup_parse_context_unref0 (ctx); -#line 77 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 1576 "PhotoMetadata.c" -} - - -static void -acd_see_keyword_transformer_on_start (ACDSeeKeywordTransformer* self, - GMarkupParseContext* ctx, - const gchar* name, - gchar** attribute_names, - gchar** attribute_values, - GError** error) -{ - GError * _inner_error_ = NULL; -#line 80 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_ACD_SEE_KEYWORD_TRANSFORMER (self)); -#line 80 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (ctx != NULL); -#line 80 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (name != NULL); -#line 88 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->assigned = FALSE; -#line 89 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (g_strcmp0 (name, "Categories") == 0) { -#line 90 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return; -#line 1601 "PhotoMetadata.c" - } -#line 93 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (g_strcmp0 (name, "Category") != 0) { -#line 94 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return; -#line 1607 "PhotoMetadata.c" - } -#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_markup_collect_attributes (name, attribute_names, attribute_values, &_inner_error_, G_MARKUP_COLLECT_BOOLEAN, "Assigned", &self->priv->assigned, G_MARKUP_COLLECT_INVALID); -#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_inner_error_->domain == G_MARKUP_ERROR) { -#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return; -#line 1619 "PhotoMetadata.c" - } else { -#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_clear_error (&_inner_error_); -#line 97 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return; -#line 1627 "PhotoMetadata.c" - } - } -} - - -static void -acd_see_keyword_transformer_on_end (ACDSeeKeywordTransformer* self, - GMarkupParseContext* ctx, - const gchar* name, - GError** error) -{ -#line 104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_ACD_SEE_KEYWORD_TRANSFORMER (self)); -#line 104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (ctx != NULL); -#line 104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (name != NULL); -#line 106 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (g_strcmp0 (name, "Category") == 0) { -#line 1647 "PhotoMetadata.c" - GeeArrayQueue* _tmp0_; - gpointer _tmp1_; - gchar* _tmp2_; -#line 107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->stack; -#line 107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = gee_deque_poll_tail (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_DEQUE, GeeDeque)); -#line 107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = (gchar*) _tmp1_; -#line 107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp2_); -#line 1659 "PhotoMetadata.c" - } -} - - -static void -acd_see_keyword_transformer_on_text (ACDSeeKeywordTransformer* self, - GMarkupParseContext* ctx, - const gchar* text, - GError** error) -{ - GeeArrayQueue* _tmp0_; - gboolean _tmp1_; -#line 111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_ACD_SEE_KEYWORD_TRANSFORMER (self)); -#line 111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (ctx != NULL); -#line 111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (text != NULL); -#line 113 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (g_strcmp0 (text, "") == 0) { -#line 114 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return; -#line 1682 "PhotoMetadata.c" - } -#line 117 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->stack; -#line 117 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gee_deque_offer_tail (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_DEQUE, GeeDeque), text); -#line 118 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = self->priv->assigned; -#line 118 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp1_) { -#line 1692 "PhotoMetadata.c" - GString* builder = NULL; - GString* _tmp2_; - GString* _tmp10_; - gssize _tmp11_; - GeeArrayList* _tmp15_; - GString* _tmp16_; - const gchar* _tmp17_; -#line 119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = g_string_new (""); -#line 119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - builder = _tmp2_; -#line 1704 "PhotoMetadata.c" - { - GeeIterator* _f_it = NULL; - GeeArrayQueue* _tmp3_; - GeeIterator* _tmp4_; -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = self->priv->stack; -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = gee_abstract_collection_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _f_it = _tmp4_; -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - while (TRUE) { -#line 1717 "PhotoMetadata.c" - GeeIterator* _tmp5_; - gchar* f = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - GString* _tmp8_; - const gchar* _tmp9_; -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = _f_it; -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 1730 "PhotoMetadata.c" - } -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = _f_it; -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - f = (gchar*) _tmp7_; -#line 121 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = builder; -#line 121 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = f; -#line 121 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_string_append_printf (_tmp8_, "%s|", _tmp9_); -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (f); -#line 1746 "PhotoMetadata.c" - } -#line 120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_f_it); -#line 1750 "PhotoMetadata.c" - } -#line 123 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = builder; -#line 123 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = _tmp10_->len; -#line 123 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp11_ > ((gssize) 0)) { -#line 1758 "PhotoMetadata.c" - GString* _tmp12_; - GString* _tmp13_; - gssize _tmp14_; -#line 124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = builder; -#line 124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = builder; -#line 124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_ = _tmp13_->len; -#line 124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_string_truncate (_tmp12_, (gsize) (_tmp14_ - 1)); -#line 1770 "PhotoMetadata.c" - } -#line 126 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp15_ = self->priv->result; -#line 126 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp16_ = builder; -#line 126 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp17_ = _tmp16_->str; -#line 126 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_); -#line 118 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_string_free0 (builder); -#line 1782 "PhotoMetadata.c" - } -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 131 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return self ? g_error_copy (self) : NULL; -#line 1792 "PhotoMetadata.c" -} - - -static void -acd_see_keyword_transformer_on_error (ACDSeeKeywordTransformer* self, - GMarkupParseContext* ctx, - GError* _error_) -{ - GError* _tmp0_; -#line 130 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_ACD_SEE_KEYWORD_TRANSFORMER (self)); -#line 130 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (ctx != NULL); -#line 131 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = _g_error_copy0 (_error_); -#line 131 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_error_free0 (self->priv->error); -#line 131 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->error = _tmp0_; -#line 1812 "PhotoMetadata.c" -} - - -static void -acd_see_keyword_transformer_class_init (ACDSeeKeywordTransformerClass * klass) -{ -#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - acd_see_keyword_transformer_parent_class = g_type_class_peek_parent (klass); -#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ((KeywordTransformerClass *) klass)->finalize = acd_see_keyword_transformer_finalize; -#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_type_class_add_private (klass, sizeof (ACDSeeKeywordTransformerPrivate)); -#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ((KeywordTransformerClass *) klass)->transform = (GeeList* (*) (KeywordTransformer *, const gchar*, GError**)) acd_see_keyword_transformer_real_transform; -#line 1827 "PhotoMetadata.c" -} - - -static void -acd_see_keyword_transformer_instance_init (ACDSeeKeywordTransformer * self) -{ -#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv = ACD_SEE_KEYWORD_TRANSFORMER_GET_PRIVATE (self); -#line 1836 "PhotoMetadata.c" -} - - -static void -acd_see_keyword_transformer_finalize (KeywordTransformer * obj) -{ - ACDSeeKeywordTransformer * self; -#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ACD_SEE_KEYWORD_TRANSFORMER, ACDSeeKeywordTransformer); -#line 57 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_error_free0 (self->priv->error); -#line 58 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (self->priv->stack); -#line 59 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (self->priv->result); -#line 55 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - KEYWORD_TRANSFORMER_CLASS (acd_see_keyword_transformer_parent_class)->finalize (obj); -#line 1854 "PhotoMetadata.c" -} - - -GType -acd_see_keyword_transformer_get_type (void) -{ - static volatile gsize acd_see_keyword_transformer_type_id__volatile = 0; - if (g_once_init_enter (&acd_see_keyword_transformer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (ACDSeeKeywordTransformerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) acd_see_keyword_transformer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ACDSeeKeywordTransformer), 0, (GInstanceInitFunc) acd_see_keyword_transformer_instance_init, NULL }; - GType acd_see_keyword_transformer_type_id; - acd_see_keyword_transformer_type_id = g_type_register_static (TYPE_KEYWORD_TRANSFORMER, "ACDSeeKeywordTransformer", &g_define_type_info, 0); - g_once_init_leave (&acd_see_keyword_transformer_type_id__volatile, acd_see_keyword_transformer_type_id); - } - return acd_see_keyword_transformer_type_id__volatile; -} - - -static gpointer -_keyword_transformer_ref0 (gpointer self) -{ -#line 154 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return self ? keyword_transformer_ref (self) : NULL; -#line 1877 "PhotoMetadata.c" -} - - -HierarchicalKeywordField* -hierarchical_keyword_field_construct (GType object_type, - const gchar* field_name, - const gchar* path_separator, - gboolean wants_leading_separator, - gboolean is_writeable, - KeywordTransformer* transformer) -{ - HierarchicalKeywordField* self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - KeywordTransformer* _tmp2_; -#line 144 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (field_name != NULL, NULL); -#line 144 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (path_separator != NULL, NULL); -#line 144 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_KEYWORD_TRANSFORMER (transformer), NULL); -#line 144 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = (HierarchicalKeywordField*) g_type_create_instance (object_type); -#line 150 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = g_strdup (field_name); -#line 150 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->field_name); -#line 150 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->field_name = _tmp0_; -#line 151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = g_strdup (path_separator); -#line 151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->path_separator); -#line 151 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->path_separator = _tmp1_; -#line 152 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->wants_leading_separator = wants_leading_separator; -#line 153 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->is_writeable = is_writeable; -#line 154 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = _keyword_transformer_ref0 (transformer); -#line 154 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _keyword_transformer_unref0 (self->transformer); -#line 154 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->transformer = _tmp2_; -#line 144 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return self; -#line 1925 "PhotoMetadata.c" -} - - -HierarchicalKeywordField* -hierarchical_keyword_field_new (const gchar* field_name, - const gchar* path_separator, - gboolean wants_leading_separator, - gboolean is_writeable, - KeywordTransformer* transformer) -{ -#line 144 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return hierarchical_keyword_field_construct (TYPE_HIERARCHICAL_KEYWORD_FIELD, field_name, path_separator, wants_leading_separator, is_writeable, transformer); -#line 1938 "PhotoMetadata.c" -} - - -static void -value_hierarchical_keyword_field_init (GValue* value) -{ -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 1947 "PhotoMetadata.c" -} - - -static void -value_hierarchical_keyword_field_free_value (GValue* value) -{ -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (value->data[0].v_pointer) { -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - hierarchical_keyword_field_unref (value->data[0].v_pointer); -#line 1958 "PhotoMetadata.c" - } -} - - -static void -value_hierarchical_keyword_field_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (src_value->data[0].v_pointer) { -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - dest_value->data[0].v_pointer = hierarchical_keyword_field_ref (src_value->data[0].v_pointer); -#line 1971 "PhotoMetadata.c" - } else { -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - dest_value->data[0].v_pointer = NULL; -#line 1975 "PhotoMetadata.c" - } -} - - -static gpointer -value_hierarchical_keyword_field_peek_pointer (const GValue* value) -{ -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return value->data[0].v_pointer; -#line 1985 "PhotoMetadata.c" -} - - -static gchar* -value_hierarchical_keyword_field_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (collect_values[0].v_pointer) { -#line 1997 "PhotoMetadata.c" - HierarchicalKeywordField * object; - object = collect_values[0].v_pointer; -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (object->parent_instance.g_class == NULL) { -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2004 "PhotoMetadata.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2008 "PhotoMetadata.c" - } -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = hierarchical_keyword_field_ref (object); -#line 2012 "PhotoMetadata.c" - } else { -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 2016 "PhotoMetadata.c" - } -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return NULL; -#line 2020 "PhotoMetadata.c" -} - - -static gchar* -value_hierarchical_keyword_field_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - HierarchicalKeywordField ** object_p; - object_p = collect_values[0].v_pointer; -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!object_p) { -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2036 "PhotoMetadata.c" - } -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!value->data[0].v_pointer) { -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *object_p = NULL; -#line 2042 "PhotoMetadata.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *object_p = value->data[0].v_pointer; -#line 2046 "PhotoMetadata.c" - } else { -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *object_p = hierarchical_keyword_field_ref (value->data[0].v_pointer); -#line 2050 "PhotoMetadata.c" - } -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return NULL; -#line 2054 "PhotoMetadata.c" -} - - -GParamSpec* -param_spec_hierarchical_keyword_field (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecHierarchicalKeywordField* spec; -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_HIERARCHICAL_KEYWORD_FIELD), NULL); -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return G_PARAM_SPEC (spec); -#line 2074 "PhotoMetadata.c" -} - - -gpointer -value_get_hierarchical_keyword_field (const GValue* value) -{ -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_KEYWORD_FIELD), NULL); -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return value->data[0].v_pointer; -#line 2085 "PhotoMetadata.c" -} - - -void -value_set_hierarchical_keyword_field (GValue* value, - gpointer v_object) -{ - HierarchicalKeywordField * old; -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_KEYWORD_FIELD)); -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - old = value->data[0].v_pointer; -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (v_object) { -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HIERARCHICAL_KEYWORD_FIELD)); -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = v_object; -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - hierarchical_keyword_field_ref (value->data[0].v_pointer); -#line 2108 "PhotoMetadata.c" - } else { -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 2112 "PhotoMetadata.c" - } -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (old) { -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - hierarchical_keyword_field_unref (old); -#line 2118 "PhotoMetadata.c" - } -} - - -void -value_take_hierarchical_keyword_field (GValue* value, - gpointer v_object) -{ - HierarchicalKeywordField * old; -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_KEYWORD_FIELD)); -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - old = value->data[0].v_pointer; -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (v_object) { -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HIERARCHICAL_KEYWORD_FIELD)); -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = v_object; -#line 2140 "PhotoMetadata.c" - } else { -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 2144 "PhotoMetadata.c" - } -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (old) { -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - hierarchical_keyword_field_unref (old); -#line 2150 "PhotoMetadata.c" - } -} - - -static void -hierarchical_keyword_field_class_init (HierarchicalKeywordFieldClass * klass) -{ -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - hierarchical_keyword_field_parent_class = g_type_class_peek_parent (klass); -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ((HierarchicalKeywordFieldClass *) klass)->finalize = hierarchical_keyword_field_finalize; -#line 2162 "PhotoMetadata.c" -} - - -static void -hierarchical_keyword_field_instance_init (HierarchicalKeywordField * self) -{ -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->ref_count = 1; -#line 2171 "PhotoMetadata.c" -} - - -static void -hierarchical_keyword_field_finalize (HierarchicalKeywordField * obj) -{ - HierarchicalKeywordField * self; -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_HIERARCHICAL_KEYWORD_FIELD, HierarchicalKeywordField); -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_signal_handlers_destroy (self); -#line 138 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->field_name); -#line 139 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->path_separator); -#line 142 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _keyword_transformer_unref0 (self->transformer); -#line 2189 "PhotoMetadata.c" -} - - -GType -hierarchical_keyword_field_get_type (void) -{ - static volatile gsize hierarchical_keyword_field_type_id__volatile = 0; - if (g_once_init_enter (&hierarchical_keyword_field_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_hierarchical_keyword_field_init, value_hierarchical_keyword_field_free_value, value_hierarchical_keyword_field_copy_value, value_hierarchical_keyword_field_peek_pointer, "p", value_hierarchical_keyword_field_collect_value, "p", value_hierarchical_keyword_field_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (HierarchicalKeywordFieldClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) hierarchical_keyword_field_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HierarchicalKeywordField), 0, (GInstanceInitFunc) hierarchical_keyword_field_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType hierarchical_keyword_field_type_id; - hierarchical_keyword_field_type_id = g_type_register_fundamental (g_type_fundamental_next (), "HierarchicalKeywordField", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&hierarchical_keyword_field_type_id__volatile, hierarchical_keyword_field_type_id); - } - return hierarchical_keyword_field_type_id__volatile; -} - - -gpointer -hierarchical_keyword_field_ref (gpointer instance) -{ - HierarchicalKeywordField * self; - self = instance; -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_atomic_int_inc (&self->ref_count); -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return instance; -#line 2218 "PhotoMetadata.c" -} - - -void -hierarchical_keyword_field_unref (gpointer instance) -{ - HierarchicalKeywordField * self; - self = instance; -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - HIERARCHICAL_KEYWORD_FIELD_GET_CLASS (self)->finalize (self); -#line 137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2233 "PhotoMetadata.c" - } -} - - -PhotoPreview* -photo_preview_construct (GType object_type, - const gchar* name, - Dimensions* dimensions, - guint32 size, - const gchar* mime_type, - const gchar* extension) -{ - PhotoPreview* self = NULL; - gchar* _tmp0_; - Dimensions _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (dimensions != NULL, NULL); -#line 165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (mime_type != NULL, NULL); -#line 165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (extension != NULL, NULL); -#line 165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = (PhotoPreview*) g_type_create_instance (object_type); -#line 166 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = g_strdup (name); -#line 166 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->priv->name); -#line 166 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->name = _tmp0_; -#line 167 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = *dimensions; -#line 167 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->dimensions = _tmp1_; -#line 168 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->size = size; -#line 169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = g_strdup (mime_type); -#line 169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->priv->mime_type); -#line 169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->mime_type = _tmp2_; -#line 170 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = g_strdup (extension); -#line 170 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->priv->extension); -#line 170 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->extension = _tmp3_; -#line 165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return self; -#line 2287 "PhotoMetadata.c" -} - - -gchar* -photo_preview_get_name (PhotoPreview* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 173 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_PREVIEW (self), NULL); -#line 174 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->name; -#line 174 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 174 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp1_; -#line 174 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 2307 "PhotoMetadata.c" -} - - -void -photo_preview_get_pixel_dimensions (PhotoPreview* self, - Dimensions* result) -{ - Dimensions _tmp0_; -#line 177 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_PREVIEW (self)); -#line 178 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->dimensions; -#line 178 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *result = _tmp0_; -#line 178 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return; -#line 2324 "PhotoMetadata.c" -} - - -guint32 -photo_preview_get_size (PhotoPreview* self) -{ - guint32 result = 0U; - guint32 _tmp0_; -#line 181 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_PREVIEW (self), 0U); -#line 182 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->size; -#line 182 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp0_; -#line 182 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 2341 "PhotoMetadata.c" -} - - -gchar* -photo_preview_get_mime_type (PhotoPreview* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 185 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_PREVIEW (self), NULL); -#line 186 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->mime_type; -#line 186 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 186 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp1_; -#line 186 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 2361 "PhotoMetadata.c" -} - - -gchar* -photo_preview_get_extension (PhotoPreview* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 189 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_PREVIEW (self), NULL); -#line 190 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->extension; -#line 190 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 190 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp1_; -#line 190 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 2381 "PhotoMetadata.c" -} - - -static GBytes* -photo_preview_real_flatten (PhotoPreview* self, - GError** error) -{ -#line 193 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_critical ("Type `%s' does not implement abstract method `photo_preview_flatten'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 193 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return NULL; -#line 2393 "PhotoMetadata.c" -} - - -GBytes* -photo_preview_flatten (PhotoPreview* self, - GError** error) -{ -#line 193 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_PREVIEW (self), NULL); -#line 193 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return PHOTO_PREVIEW_GET_CLASS (self)->flatten (self, error); -#line 2405 "PhotoMetadata.c" -} - - -static GdkPixbuf* -photo_preview_real_get_pixbuf (PhotoPreview* self, - GError** error) -{ - GdkPixbuf* result = NULL; - GBytes* flattened = NULL; - GBytes* _tmp0_; - GError * _inner_error_ = NULL; -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_preview_flatten (self, &_inner_error_); -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - flattened = _tmp0_; -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 196 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return NULL; -#line 2427 "PhotoMetadata.c" - } - { - GdkPixbuf* _tmp1_ = NULL; - GMemoryInputStream* _tmp2_; - GMemoryInputStream* _tmp3_; - GdkPixbuf* _tmp4_; - GdkPixbuf* _tmp5_; - GdkPixbuf* _tmp6_; -#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = (GMemoryInputStream*) g_memory_input_stream_new_from_bytes (flattened); -#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = _tmp2_; -#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = gdk_pixbuf_new_from_stream (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_); -#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = _tmp4_; -#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_tmp3_); -#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = _tmp5_; -#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2450 "PhotoMetadata.c" - goto __catch29_g_error; - } -#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = _tmp1_; -#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = NULL; -#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp6_; -#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_tmp1_); -#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_bytes_unref0 (flattened); -#line 201 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 2465 "PhotoMetadata.c" - } - goto __finally29; - __catch29_g_error: - { - GError* err = NULL; - const gchar* _tmp7_; - GError* _tmp8_; - const gchar* _tmp9_; -#line 200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - err = _inner_error_; -#line 200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _inner_error_ = NULL; -#line 204 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = self->priv->name; -#line 204 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = err; -#line 204 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = _tmp8_->message; -#line 204 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_warning ("PhotoMetadata.vala:204: Unable to decode thumbnail for %s: %s", _tmp7_, _tmp9_); -#line 206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_error_free0 (err); -#line 206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_bytes_unref0 (flattened); -#line 206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 2494 "PhotoMetadata.c" - } - __finally29: -#line 200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_bytes_unref0 (flattened); -#line 200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return NULL; -#line 2503 "PhotoMetadata.c" -} - - -GdkPixbuf* -photo_preview_get_pixbuf (PhotoPreview* self, - GError** error) -{ -#line 195 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_PREVIEW (self), NULL); -#line 195 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return PHOTO_PREVIEW_GET_CLASS (self)->get_pixbuf (self, error); -#line 2515 "PhotoMetadata.c" -} - - -static void -value_photo_preview_init (GValue* value) -{ -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 2524 "PhotoMetadata.c" -} - - -static void -value_photo_preview_free_value (GValue* value) -{ -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (value->data[0].v_pointer) { -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_preview_unref (value->data[0].v_pointer); -#line 2535 "PhotoMetadata.c" - } -} - - -static void -value_photo_preview_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (src_value->data[0].v_pointer) { -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - dest_value->data[0].v_pointer = photo_preview_ref (src_value->data[0].v_pointer); -#line 2548 "PhotoMetadata.c" - } else { -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - dest_value->data[0].v_pointer = NULL; -#line 2552 "PhotoMetadata.c" - } -} - - -static gpointer -value_photo_preview_peek_pointer (const GValue* value) -{ -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return value->data[0].v_pointer; -#line 2562 "PhotoMetadata.c" -} - - -static gchar* -value_photo_preview_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (collect_values[0].v_pointer) { -#line 2574 "PhotoMetadata.c" - PhotoPreview * object; - object = collect_values[0].v_pointer; -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (object->parent_instance.g_class == NULL) { -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2581 "PhotoMetadata.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2585 "PhotoMetadata.c" - } -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = photo_preview_ref (object); -#line 2589 "PhotoMetadata.c" - } else { -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 2593 "PhotoMetadata.c" - } -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return NULL; -#line 2597 "PhotoMetadata.c" -} - - -static gchar* -value_photo_preview_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PhotoPreview ** object_p; - object_p = collect_values[0].v_pointer; -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!object_p) { -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2613 "PhotoMetadata.c" - } -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!value->data[0].v_pointer) { -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *object_p = NULL; -#line 2619 "PhotoMetadata.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *object_p = value->data[0].v_pointer; -#line 2623 "PhotoMetadata.c" - } else { -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *object_p = photo_preview_ref (value->data[0].v_pointer); -#line 2627 "PhotoMetadata.c" - } -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return NULL; -#line 2631 "PhotoMetadata.c" -} - - -GParamSpec* -param_spec_photo_preview (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecPhotoPreview* spec; -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_PHOTO_PREVIEW), NULL); -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return G_PARAM_SPEC (spec); -#line 2651 "PhotoMetadata.c" -} - - -gpointer -value_get_photo_preview (const GValue* value) -{ -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_PREVIEW), NULL); -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return value->data[0].v_pointer; -#line 2662 "PhotoMetadata.c" -} - - -void -value_set_photo_preview (GValue* value, - gpointer v_object) -{ - PhotoPreview * old; -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_PREVIEW)); -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - old = value->data[0].v_pointer; -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (v_object) { -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_PREVIEW)); -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = v_object; -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_preview_ref (value->data[0].v_pointer); -#line 2685 "PhotoMetadata.c" - } else { -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 2689 "PhotoMetadata.c" - } -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (old) { -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_preview_unref (old); -#line 2695 "PhotoMetadata.c" - } -} - - -void -value_take_photo_preview (GValue* value, - gpointer v_object) -{ - PhotoPreview * old; -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PHOTO_PREVIEW)); -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - old = value->data[0].v_pointer; -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (v_object) { -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PHOTO_PREVIEW)); -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = v_object; -#line 2717 "PhotoMetadata.c" - } else { -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value->data[0].v_pointer = NULL; -#line 2721 "PhotoMetadata.c" - } -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (old) { -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_preview_unref (old); -#line 2727 "PhotoMetadata.c" - } -} - - -static void -photo_preview_class_init (PhotoPreviewClass * klass) -{ -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_preview_parent_class = g_type_class_peek_parent (klass); -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ((PhotoPreviewClass *) klass)->finalize = photo_preview_finalize; -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_type_class_add_private (klass, sizeof (PhotoPreviewPrivate)); -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ((PhotoPreviewClass *) klass)->flatten = (GBytes* (*) (PhotoPreview *, GError**)) photo_preview_real_flatten; -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ((PhotoPreviewClass *) klass)->get_pixbuf = (GdkPixbuf* (*) (PhotoPreview *, GError**)) photo_preview_real_get_pixbuf; -#line 2745 "PhotoMetadata.c" -} - - -static void -photo_preview_instance_init (PhotoPreview * self) -{ -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv = PHOTO_PREVIEW_GET_PRIVATE (self); -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->ref_count = 1; -#line 2756 "PhotoMetadata.c" -} - - -static void -photo_preview_finalize (PhotoPreview * obj) -{ - PhotoPreview * self; -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_PREVIEW, PhotoPreview); -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_signal_handlers_destroy (self); -#line 159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->priv->name); -#line 162 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->priv->mime_type); -#line 163 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->priv->extension); -#line 2774 "PhotoMetadata.c" -} - - -GType -photo_preview_get_type (void) -{ - static volatile gsize photo_preview_type_id__volatile = 0; - if (g_once_init_enter (&photo_preview_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_photo_preview_init, value_photo_preview_free_value, value_photo_preview_copy_value, value_photo_preview_peek_pointer, "p", value_photo_preview_collect_value, "p", value_photo_preview_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PhotoPreviewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_preview_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoPreview), 0, (GInstanceInitFunc) photo_preview_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType photo_preview_type_id; - photo_preview_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PhotoPreview", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&photo_preview_type_id__volatile, photo_preview_type_id); - } - return photo_preview_type_id__volatile; -} - - -gpointer -photo_preview_ref (gpointer instance) -{ - PhotoPreview * self; - self = instance; -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_atomic_int_inc (&self->ref_count); -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return instance; -#line 2803 "PhotoMetadata.c" -} - - -void -photo_preview_unref (gpointer instance) -{ - PhotoPreview * self; - self = instance; -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - PHOTO_PREVIEW_GET_CLASS (self)->finalize (self); -#line 158 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2818 "PhotoMetadata.c" - } -} - - -GType -photo_metadata_set_option_get_type (void) -{ - static volatile gsize photo_metadata_set_option_type_id__volatile = 0; - if (g_once_init_enter (&photo_metadata_set_option_type_id__volatile)) { - static const GEnumValue values[] = {{PHOTO_METADATA_SET_OPTION_ALL_DOMAINS, "PHOTO_METADATA_SET_OPTION_ALL_DOMAINS", "all-domains"}, {PHOTO_METADATA_SET_OPTION_ONLY_IF_DOMAIN_PRESENT, "PHOTO_METADATA_SET_OPTION_ONLY_IF_DOMAIN_PRESENT", "only-if-domain-present"}, {PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN, "PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN", "at-least-default-domain"}, {0, NULL, NULL}}; - GType photo_metadata_set_option_type_id; - photo_metadata_set_option_type_id = g_enum_register_static ("PhotoMetadataSetOption", values); - g_once_init_leave (&photo_metadata_set_option_type_id__volatile, photo_metadata_set_option_type_id); - } - return photo_metadata_set_option_type_id__volatile; -} - - -PhotoMetadata* -photo_metadata_construct (GType object_type) -{ - PhotoMetadata* self = NULL; -#line 254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = (PhotoMetadata*) media_metadata_construct (object_type); -#line 254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return self; -#line 2845 "PhotoMetadata.c" -} - - -PhotoMetadata* -photo_metadata_new (void) -{ -#line 254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return photo_metadata_construct (TYPE_PHOTO_METADATA); -#line 2854 "PhotoMetadata.c" -} - - -static void -photo_metadata_real_read_from_file (MediaMetadata* base, - GFile* file, - GError** error) -{ - PhotoMetadata * self; - GExiv2Metadata* _tmp0_; - GExiv2Metadata* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - ExifData* _tmp6_; - gchar* _tmp7_; - GError * _inner_error_ = NULL; -#line 257 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_METADATA, PhotoMetadata); -#line 257 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 258 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = gexiv2_metadata_new (); -#line 258 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (self->priv->exiv2); -#line 258 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->exiv2 = _tmp0_; -#line 259 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _exif_data_unref0 (self->priv->exif); -#line 259 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->exif = NULL; -#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = self->priv->exiv2; -#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = g_file_get_path (file); -#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = _tmp2_; -#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gexiv2_metadata_open_path (_tmp1_, _tmp3_, &_inner_error_); -#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp3_); -#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return; -#line 2903 "PhotoMetadata.c" - } -#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = g_file_get_path (file); -#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = _tmp4_; -#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = exif_data_new_from_file (_tmp5_); -#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _exif_data_unref0 (self->priv->exif); -#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->exif = _tmp6_; -#line 262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp5_); -#line 263 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = g_file_get_basename (file); -#line 263 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->priv->source_name); -#line 263 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->source_name = _tmp7_; -#line 2923 "PhotoMetadata.c" -} - - -void -photo_metadata_write_to_file (PhotoMetadata* self, - GFile* file, - GError** error) -{ - GExiv2Metadata* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - GError * _inner_error_ = NULL; -#line 266 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 266 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = g_file_get_path (file); -#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = _tmp1_; -#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gexiv2_metadata_save_file (_tmp0_, _tmp2_, &_inner_error_); -#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp2_); -#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return; -#line 2956 "PhotoMetadata.c" - } -} - - -void -photo_metadata_read_from_buffer (PhotoMetadata* self, - guint8* buffer, - int buffer_length1, - gint length, - GError** error) -{ - GExiv2Metadata* _tmp0_; - GExiv2Metadata* _tmp1_; - ExifData* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 270 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 271 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (length <= 0) { -#line 272 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - length = buffer_length1; -#line 2979 "PhotoMetadata.c" - } -#line 274 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_assert (buffer_length1 >= length, "buffer.length >= length"); -#line 276 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = gexiv2_metadata_new (); -#line 276 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (self->priv->exiv2); -#line 276 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->exiv2 = _tmp0_; -#line 277 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _exif_data_unref0 (self->priv->exif); -#line 277 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->exif = NULL; -#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = self->priv->exiv2; -#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gexiv2_metadata_open_buf (_tmp1_, buffer, (glong) length, &_inner_error_); -#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 279 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return; -#line 3003 "PhotoMetadata.c" - } -#line 280 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = exif_data_new_from_data (buffer, (gsize) length); -#line 280 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _exif_data_unref0 (self->priv->exif); -#line 280 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->exif = _tmp2_; -#line 281 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = g_strdup_printf ("", length); -#line 281 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->priv->source_name); -#line 281 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->source_name = _tmp3_; -#line 3017 "PhotoMetadata.c" -} - - -void -photo_metadata_read_from_app1_segment (PhotoMetadata* self, - GBytes* buffer, - GError** error) -{ - GExiv2Metadata* _tmp0_; - GExiv2Metadata* _tmp1_; - gsize _tmp2_; - guint8* _tmp3_; - gsize _tmp4_; - guint8* _tmp5_; - ExifData* _tmp6_; - gchar* _tmp7_; - GError * _inner_error_ = NULL; -#line 284 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 284 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (buffer != NULL); -#line 285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = gexiv2_metadata_new (); -#line 285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (self->priv->exiv2); -#line 285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->exiv2 = _tmp0_; -#line 286 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _exif_data_unref0 (self->priv->exif); -#line 286 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->exif = NULL; -#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = self->priv->exiv2; -#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = g_bytes_get_data (buffer, &_tmp2_); -#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gexiv2_metadata_from_app1_segment (_tmp1_, _tmp3_, (glong) g_bytes_get_size (buffer), &_inner_error_); -#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_propagate_error (error, _inner_error_); -#line 288 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return; -#line 3061 "PhotoMetadata.c" - } -#line 289 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = g_bytes_get_data (buffer, &_tmp4_); -#line 289 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = exif_data_new_from_data (_tmp5_, g_bytes_get_size (buffer)); -#line 289 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _exif_data_unref0 (self->priv->exif); -#line 289 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->exif = _tmp6_; -#line 290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = g_strdup_printf ("", g_bytes_get_size (buffer)); -#line 290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->priv->source_name); -#line 290 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->source_name = _tmp7_; -#line 3077 "PhotoMetadata.c" -} - - -MetadataDomain -photo_metadata_get_tag_domain (const gchar* tag) -{ - MetadataDomain result = 0; -#line 293 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (tag != NULL, 0); -#line 294 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (gexiv2_metadata_is_exif_tag (tag)) { -#line 295 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = METADATA_DOMAIN_EXIF; -#line 295 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3093 "PhotoMetadata.c" - } -#line 297 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (gexiv2_metadata_is_xmp_tag (tag)) { -#line 298 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = METADATA_DOMAIN_XMP; -#line 298 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3101 "PhotoMetadata.c" - } -#line 300 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (gexiv2_metadata_is_iptc_tag (tag)) { -#line 301 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = METADATA_DOMAIN_IPTC; -#line 301 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3109 "PhotoMetadata.c" - } -#line 303 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = METADATA_DOMAIN_UNKNOWN; -#line 303 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3115 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_has_domain (PhotoMetadata* self, - MetadataDomain domain) -{ - gboolean result = FALSE; -#line 306 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 307 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - switch (domain) { -#line 307 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_EXIF: -#line 3130 "PhotoMetadata.c" - { - GExiv2Metadata* _tmp0_; -#line 309 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 309 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = gexiv2_metadata_has_exif (_tmp0_); -#line 309 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3139 "PhotoMetadata.c" - } -#line 307 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_XMP: -#line 3143 "PhotoMetadata.c" - { - GExiv2Metadata* _tmp1_; -#line 312 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = self->priv->exiv2; -#line 312 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = gexiv2_metadata_has_xmp (_tmp1_); -#line 312 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3152 "PhotoMetadata.c" - } -#line 307 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_IPTC: -#line 3156 "PhotoMetadata.c" - { - GExiv2Metadata* _tmp2_; -#line 315 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = self->priv->exiv2; -#line 315 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = gexiv2_metadata_has_iptc (_tmp2_); -#line 315 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3165 "PhotoMetadata.c" - } - default: -#line 307 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_UNKNOWN: -#line 3170 "PhotoMetadata.c" - { -#line 319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = FALSE; -#line 319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3176 "PhotoMetadata.c" - } - } -} - - -gboolean -photo_metadata_has_exif (PhotoMetadata* self) -{ - gboolean result = FALSE; -#line 323 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = photo_metadata_has_domain (self, METADATA_DOMAIN_EXIF); -#line 324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3192 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_has_xmp (PhotoMetadata* self) -{ - gboolean result = FALSE; -#line 327 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 328 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = photo_metadata_has_domain (self, METADATA_DOMAIN_XMP); -#line 328 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3206 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_has_iptc (PhotoMetadata* self) -{ - gboolean result = FALSE; -#line 331 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 332 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = photo_metadata_has_domain (self, METADATA_DOMAIN_IPTC); -#line 332 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3220 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_can_write_to_domain (PhotoMetadata* self, - MetadataDomain domain) -{ - gboolean result = FALSE; -#line 335 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 336 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - switch (domain) { -#line 336 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_EXIF: -#line 3235 "PhotoMetadata.c" - { - GExiv2Metadata* _tmp0_; -#line 338 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 338 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = gexiv2_metadata_get_supports_exif (_tmp0_); -#line 338 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3244 "PhotoMetadata.c" - } -#line 336 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_XMP: -#line 3248 "PhotoMetadata.c" - { - GExiv2Metadata* _tmp1_; -#line 341 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = self->priv->exiv2; -#line 341 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = gexiv2_metadata_get_supports_xmp (_tmp1_); -#line 341 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3257 "PhotoMetadata.c" - } -#line 336 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_IPTC: -#line 3261 "PhotoMetadata.c" - { - GExiv2Metadata* _tmp2_; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = self->priv->exiv2; -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = gexiv2_metadata_get_supports_iptc (_tmp2_); -#line 344 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3270 "PhotoMetadata.c" - } - default: -#line 336 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_UNKNOWN: -#line 3275 "PhotoMetadata.c" - { -#line 348 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = FALSE; -#line 348 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3281 "PhotoMetadata.c" - } - } -} - - -gboolean -photo_metadata_can_write_exif (PhotoMetadata* self) -{ - gboolean result = FALSE; -#line 352 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 353 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = photo_metadata_can_write_to_domain (self, METADATA_DOMAIN_EXIF); -#line 353 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3297 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_can_write_xmp (PhotoMetadata* self) -{ - gboolean result = FALSE; -#line 356 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 357 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = photo_metadata_can_write_to_domain (self, METADATA_DOMAIN_XMP); -#line 357 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3311 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_can_write_iptc (PhotoMetadata* self) -{ - gboolean result = FALSE; -#line 360 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 361 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = photo_metadata_can_write_to_domain (self, METADATA_DOMAIN_IPTC); -#line 361 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3325 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_has_tag (PhotoMetadata* self, - const gchar* tag) -{ - gboolean result = FALSE; - GExiv2Metadata* _tmp0_; -#line 364 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 364 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (tag != NULL, FALSE); -#line 365 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 365 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = gexiv2_metadata_has_tag (_tmp0_, tag); -#line 365 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3345 "PhotoMetadata.c" -} - - -static GeeSet* -photo_metadata_create_string_set (PhotoMetadata* self, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify) -{ - GeeSet* result = NULL; -#line 368 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 370 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (compare_func == NULL) { -#line 3360 "PhotoMetadata.c" - GeeHashSet* _tmp0_; -#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SET, GeeSet); -#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL); -#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func = NULL; -#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target = NULL; -#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target_destroy_notify = NULL; -#line 371 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3376 "PhotoMetadata.c" - } else { - GCompareDataFunc _tmp1_; - void* _tmp1__target; - GDestroyNotify _tmp1__target_destroy_notify; - GeeTreeSet* _tmp2_; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = compare_func; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1__target = compare_func_target; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1__target_destroy_notify = compare_func_target_destroy_notify; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func = NULL; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target = NULL; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target_destroy_notify = NULL; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, _tmp1_, _tmp1__target, _tmp1__target_destroy_notify); -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_SET, GeeSet); -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL); -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func = NULL; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target = NULL; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target_destroy_notify = NULL; -#line 373 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3408 "PhotoMetadata.c" - } -#line 368 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL); -#line 368 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func = NULL; -#line 368 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target = NULL; -#line 368 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target_destroy_notify = NULL; -#line 3418 "PhotoMetadata.c" -} - - -GeeCollection* -photo_metadata_get_tags (PhotoMetadata* self, - MetadataDomain domain, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify) -{ - GeeCollection* result = NULL; - gchar** tags = NULL; - gint tags_length1; - gint _tags_size_; - gboolean _tmp9_ = FALSE; - gchar** _tmp10_; - gint _tmp10__length1; - GeeCollection* collection = NULL; - GCompareDataFunc _tmp12_; - void* _tmp12__target; - GDestroyNotify _tmp12__target_destroy_notify; - GeeSet* _tmp13_; - gchar** _tmp14_; - gint _tmp14__length1; -#line 376 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 378 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tags = NULL; -#line 378 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tags_length1 = 0; -#line 378 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tags_size_ = tags_length1; -#line 379 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - switch (domain) { -#line 379 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_EXIF: -#line 3455 "PhotoMetadata.c" - { - GExiv2Metadata* _tmp0_; - gchar** _tmp1_; - gchar** _tmp2_; -#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = _tmp1_ = gexiv2_metadata_get_exif_tags (_tmp0_); -#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_free), NULL); -#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tags = _tmp2_; -#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tags_length1 = _vala_array_length (_tmp1_); -#line 381 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tags_size_ = tags_length1; -#line 382 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 3474 "PhotoMetadata.c" - } -#line 379 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_XMP: -#line 3478 "PhotoMetadata.c" - { - GExiv2Metadata* _tmp3_; - gchar** _tmp4_; - gchar** _tmp5_; -#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = self->priv->exiv2; -#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = _tmp4_ = gexiv2_metadata_get_xmp_tags (_tmp3_); -#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_free), NULL); -#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tags = _tmp5_; -#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tags_length1 = _vala_array_length (_tmp4_); -#line 385 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tags_size_ = tags_length1; -#line 386 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 3497 "PhotoMetadata.c" - } -#line 379 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_IPTC: -#line 3501 "PhotoMetadata.c" - { - GExiv2Metadata* _tmp6_; - gchar** _tmp7_; - gchar** _tmp8_; -#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = self->priv->exiv2; -#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = _tmp7_ = gexiv2_metadata_get_iptc_tags (_tmp6_); -#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_free), NULL); -#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tags = _tmp8_; -#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tags_length1 = _vala_array_length (_tmp7_); -#line 389 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tags_size_ = tags_length1; -#line 390 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 3520 "PhotoMetadata.c" - } - default: -#line 379 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 3525 "PhotoMetadata.c" - } -#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = tags; -#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10__length1 = tags_length1; -#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp10_ == NULL) { -#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = TRUE; -#line 3535 "PhotoMetadata.c" - } else { - gchar** _tmp11_; - gint _tmp11__length1; -#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = tags; -#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11__length1 = tags_length1; -#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = _tmp11__length1 == 0; -#line 3545 "PhotoMetadata.c" - } -#line 393 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp9_) { -#line 394 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 394 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_free), NULL); -#line 394 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL); -#line 394 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func = NULL; -#line 394 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target = NULL; -#line 394 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target_destroy_notify = NULL; -#line 394 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3563 "PhotoMetadata.c" - } -#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = compare_func; -#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12__target = compare_func_target; -#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12__target_destroy_notify = compare_func_target_destroy_notify; -#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func = NULL; -#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target = NULL; -#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target_destroy_notify = NULL; -#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = photo_metadata_create_string_set (self, _tmp12_, _tmp12__target, _tmp12__target_destroy_notify); -#line 396 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - collection = G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection); -#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_ = tags; -#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14__length1 = tags_length1; -#line 3585 "PhotoMetadata.c" - { - gchar** tag_collection = NULL; - gint tag_collection_length1 = 0; - gint _tag_collection_size_ = 0; - gint tag_it = 0; -#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection = _tmp14_; -#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection_length1 = _tmp14__length1; -#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - for (tag_it = 0; tag_it < _tmp14__length1; tag_it = tag_it + 1) { -#line 3597 "PhotoMetadata.c" - gchar* _tmp15_; - gchar* tag = NULL; -#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp15_ = g_strdup (tag_collection[tag_it]); -#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag = _tmp15_; -#line 3604 "PhotoMetadata.c" - { - GeeCollection* _tmp16_; - const gchar* _tmp17_; -#line 398 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp16_ = collection; -#line 398 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp17_ = tag; -#line 398 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gee_collection_add (_tmp16_, _tmp17_); -#line 397 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (tag); -#line 3616 "PhotoMetadata.c" - } - } - } -#line 400 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = collection; -#line 400 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tags = (_vala_array_free (tags, tags_length1, (GDestroyNotify) g_free), NULL); -#line 400 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL); -#line 400 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func = NULL; -#line 400 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target = NULL; -#line 400 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target_destroy_notify = NULL; -#line 400 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3634 "PhotoMetadata.c" -} - - -GeeCollection* -photo_metadata_get_all_tags (PhotoMetadata* self, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify) -{ - GeeCollection* result = NULL; - GeeCollection* all_tags = NULL; - GCompareDataFunc _tmp0_; - void* _tmp0__target; - GDestroyNotify _tmp0__target_destroy_notify; - GeeSet* _tmp1_; - GeeCollection* exif_tags = NULL; - GeeCollection* _tmp2_; - gboolean _tmp3_ = FALSE; - GeeCollection* _tmp4_; - GeeCollection* xmp_tags = NULL; - GeeCollection* _tmp10_; - gboolean _tmp11_ = FALSE; - GeeCollection* _tmp12_; - GeeCollection* iptc_tags = NULL; - GeeCollection* _tmp18_; - gboolean _tmp19_ = FALSE; - GeeCollection* _tmp20_; - GeeCollection* _tmp26_ = NULL; - GeeCollection* _tmp27_; - gint _tmp28_; - gint _tmp29_; - GeeCollection* _tmp31_; -#line 403 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 405 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = compare_func; -#line 405 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0__target = compare_func_target; -#line 405 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0__target_destroy_notify = compare_func_target_destroy_notify; -#line 405 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func = NULL; -#line 405 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target = NULL; -#line 405 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target_destroy_notify = NULL; -#line 405 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_create_string_set (self, _tmp0_, _tmp0__target, _tmp0__target_destroy_notify); -#line 405 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - all_tags = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection); -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = photo_metadata_get_tags (self, METADATA_DOMAIN_EXIF, NULL, NULL, NULL); -#line 407 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - exif_tags = _tmp2_; -#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = exif_tags; -#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp4_ != NULL) { -#line 3693 "PhotoMetadata.c" - GeeCollection* _tmp5_; - gint _tmp6_; - gint _tmp7_; -#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = exif_tags; -#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = gee_collection_get_size (_tmp5_); -#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = _tmp6_; -#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = _tmp7_ > 0; -#line 3705 "PhotoMetadata.c" - } else { -#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = FALSE; -#line 3709 "PhotoMetadata.c" - } -#line 408 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp3_) { -#line 3713 "PhotoMetadata.c" - GeeCollection* _tmp8_; - GeeCollection* _tmp9_; -#line 409 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = all_tags; -#line 409 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = exif_tags; -#line 409 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gee_collection_add_all (_tmp8_, _tmp9_); -#line 3722 "PhotoMetadata.c" - } -#line 411 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = photo_metadata_get_tags (self, METADATA_DOMAIN_XMP, NULL, NULL, NULL); -#line 411 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - xmp_tags = _tmp10_; -#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = xmp_tags; -#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp12_ != NULL) { -#line 3732 "PhotoMetadata.c" - GeeCollection* _tmp13_; - gint _tmp14_; - gint _tmp15_; -#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = xmp_tags; -#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_ = gee_collection_get_size (_tmp13_); -#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp15_ = _tmp14_; -#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = _tmp15_ > 0; -#line 3744 "PhotoMetadata.c" - } else { -#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = FALSE; -#line 3748 "PhotoMetadata.c" - } -#line 412 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp11_) { -#line 3752 "PhotoMetadata.c" - GeeCollection* _tmp16_; - GeeCollection* _tmp17_; -#line 413 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp16_ = all_tags; -#line 413 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp17_ = xmp_tags; -#line 413 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gee_collection_add_all (_tmp16_, _tmp17_); -#line 3761 "PhotoMetadata.c" - } -#line 415 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp18_ = photo_metadata_get_tags (self, METADATA_DOMAIN_IPTC, NULL, NULL, NULL); -#line 415 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - iptc_tags = _tmp18_; -#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp20_ = iptc_tags; -#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp20_ != NULL) { -#line 3771 "PhotoMetadata.c" - GeeCollection* _tmp21_; - gint _tmp22_; - gint _tmp23_; -#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp21_ = iptc_tags; -#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp22_ = gee_collection_get_size (_tmp21_); -#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp23_ = _tmp22_; -#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp19_ = _tmp23_ > 0; -#line 3783 "PhotoMetadata.c" - } else { -#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp19_ = FALSE; -#line 3787 "PhotoMetadata.c" - } -#line 416 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp19_) { -#line 3791 "PhotoMetadata.c" - GeeCollection* _tmp24_; - GeeCollection* _tmp25_; -#line 417 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp24_ = all_tags; -#line 417 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp25_ = iptc_tags; -#line 417 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gee_collection_add_all (_tmp24_, _tmp25_); -#line 3800 "PhotoMetadata.c" - } -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp27_ = all_tags; -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp28_ = gee_collection_get_size (_tmp27_); -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp29_ = _tmp28_; -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp29_ > 0) { -#line 3810 "PhotoMetadata.c" - GeeCollection* _tmp30_; -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp30_ = all_tags; -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp26_ = _tmp30_; -#line 3816 "PhotoMetadata.c" - } else { -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp26_ = NULL; -#line 3820 "PhotoMetadata.c" - } -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp31_ = _g_object_ref0 (_tmp26_); -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp31_; -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (iptc_tags); -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (xmp_tags); -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (exif_tags); -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (all_tags); -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL); -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func = NULL; -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target = NULL; -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target_destroy_notify = NULL; -#line 419 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3844 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_get_tag_label (PhotoMetadata* self, - const gchar* tag) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 422 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 422 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (tag != NULL, NULL); -#line 423 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = gexiv2_metadata_get_tag_label (tag); -#line 423 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 423 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp1_; -#line 423 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3867 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_get_tag_description (PhotoMetadata* self, - const gchar* tag) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 426 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 426 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (tag != NULL, NULL); -#line 427 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = gexiv2_metadata_get_tag_description (tag); -#line 427 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 427 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp1_; -#line 427 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3890 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_get_string (PhotoMetadata* self, - const gchar* tag, - PrepareInputTextOptions options) -{ - gchar* result = NULL; - GExiv2Metadata* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 430 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 430 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (tag != NULL, NULL); -#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = gexiv2_metadata_get_tag_string (_tmp0_, tag); -#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = _tmp1_; -#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = prepare_input_text (_tmp2_, options, DEFAULT_USER_TEXT_INPUT_LENGTH); -#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = _tmp3_; -#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp2_); -#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp4_; -#line 431 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3925 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_get_string_interpreted (PhotoMetadata* self, - const gchar* tag, - PrepareInputTextOptions options) -{ - gchar* result = NULL; - GExiv2Metadata* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 434 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 434 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (tag != NULL, NULL); -#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = gexiv2_metadata_get_tag_interpreted_string (_tmp0_, tag); -#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = _tmp1_; -#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = prepare_input_text (_tmp2_, options, DEFAULT_USER_TEXT_INPUT_LENGTH); -#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = _tmp3_; -#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp2_); -#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp4_; -#line 435 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 3960 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_get_first_string (PhotoMetadata* self, - gchar** tags, - int tags_length1) -{ - gchar* result = NULL; -#line 438 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 3972 "PhotoMetadata.c" - { - gchar** tag_collection = NULL; - gint tag_collection_length1 = 0; - gint _tag_collection_size_ = 0; - gint tag_it = 0; -#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection = tags; -#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection_length1 = tags_length1; -#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) { -#line 3984 "PhotoMetadata.c" - gchar* _tmp0_; - gchar* tag = NULL; -#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = g_strdup (tag_collection[tag_it]); -#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag = _tmp0_; -#line 3991 "PhotoMetadata.c" - { - gchar* value = NULL; - const gchar* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; -#line 440 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = tag; -#line 440 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = photo_metadata_get_string (self, _tmp1_, PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 440 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value = _tmp2_; -#line 441 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = value; -#line 441 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp3_ != NULL) { -#line 442 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = value; -#line 442 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (tag); -#line 442 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 4013 "PhotoMetadata.c" - } -#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (value); -#line 439 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (tag); -#line 4019 "PhotoMetadata.c" - } - } - } -#line 445 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 445 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 4027 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_get_first_string_interpreted (PhotoMetadata* self, - gchar** tags, - int tags_length1) -{ - gchar* result = NULL; -#line 448 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 4039 "PhotoMetadata.c" - { - gchar** tag_collection = NULL; - gint tag_collection_length1 = 0; - gint _tag_collection_size_ = 0; - gint tag_it = 0; -#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection = tags; -#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection_length1 = tags_length1; -#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) { -#line 4051 "PhotoMetadata.c" - gchar* _tmp0_; - gchar* tag = NULL; -#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = g_strdup (tag_collection[tag_it]); -#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag = _tmp0_; -#line 4058 "PhotoMetadata.c" - { - gchar* value = NULL; - const gchar* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; -#line 450 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = tag; -#line 450 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = photo_metadata_get_string_interpreted (self, _tmp1_, PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 450 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value = _tmp2_; -#line 451 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = value; -#line 451 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp3_ != NULL) { -#line 452 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = value; -#line 452 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (tag); -#line 452 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 4080 "PhotoMetadata.c" - } -#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (value); -#line 449 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (tag); -#line 4086 "PhotoMetadata.c" - } - } - } -#line 455 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 455 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 4094 "PhotoMetadata.c" -} - - -GeeList* -photo_metadata_get_string_multiple (PhotoMetadata* self, - const gchar* tag) -{ - GeeList* result = NULL; - gchar** values = NULL; - GExiv2Metadata* _tmp0_; - gchar** _tmp1_; - gchar** _tmp2_; - gint values_length1; - gint _values_size_; - gboolean _tmp3_ = FALSE; - gchar** _tmp4_; - gint _tmp4__length1; - GeeList* list = NULL; - GeeArrayList* _tmp6_; - GeeHashSet* collection = NULL; - GeeHashSet* _tmp7_; - gchar** _tmp8_; - gint _tmp8__length1; - GeeList* _tmp20_ = NULL; - GeeList* _tmp21_; - gint _tmp22_; - gint _tmp23_; - GeeList* _tmp25_; -#line 464 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 464 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (tag != NULL, NULL); -#line 465 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 465 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = _tmp1_ = gexiv2_metadata_get_tag_multiple (_tmp0_, tag); -#line 465 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - values = _tmp2_; -#line 465 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - values_length1 = _vala_array_length (_tmp1_); -#line 465 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _values_size_ = values_length1; -#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = values; -#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4__length1 = values_length1; -#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp4_ == NULL) { -#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = TRUE; -#line 4145 "PhotoMetadata.c" - } else { - gchar** _tmp5_; - gint _tmp5__length1; -#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = values; -#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5__length1 = values_length1; -#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = _tmp5__length1 == 0; -#line 4155 "PhotoMetadata.c" - } -#line 466 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp3_) { -#line 467 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 467 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL); -#line 467 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 4165 "PhotoMetadata.c" - } -#line 469 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 469 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - list = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_LIST, GeeList); -#line 471 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 471 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - collection = _tmp7_; -#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = values; -#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8__length1 = values_length1; -#line 4179 "PhotoMetadata.c" - { - gchar** value_collection = NULL; - gint value_collection_length1 = 0; - gint _value_collection_size_ = 0; - gint value_it = 0; -#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value_collection = _tmp8_; -#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value_collection_length1 = _tmp8__length1; -#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - for (value_it = 0; value_it < _tmp8__length1; value_it = value_it + 1) { -#line 4191 "PhotoMetadata.c" - gchar* _tmp9_; - gchar* value = NULL; -#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = g_strdup (value_collection[value_it]); -#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value = _tmp9_; -#line 4198 "PhotoMetadata.c" - { - gchar* prepped = NULL; - const gchar* _tmp10_; - gchar* _tmp11_; - gboolean _tmp12_ = FALSE; - const gchar* _tmp13_; -#line 473 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = value; -#line 473 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = prepare_input_text (_tmp10_, PHOTO_METADATA_PREPARE_STRING_OPTIONS, DEFAULT_USER_TEXT_INPUT_LENGTH); -#line 473 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - prepped = _tmp11_; -#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = prepped; -#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp13_ != NULL) { -#line 4215 "PhotoMetadata.c" - GeeHashSet* _tmp14_; - const gchar* _tmp15_; -#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_ = collection; -#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp15_ = prepped; -#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = !gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_); -#line 4224 "PhotoMetadata.c" - } else { -#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = FALSE; -#line 4228 "PhotoMetadata.c" - } -#line 476 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp12_) { -#line 4232 "PhotoMetadata.c" - GeeList* _tmp16_; - const gchar* _tmp17_; - GeeHashSet* _tmp18_; - const gchar* _tmp19_; -#line 477 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp16_ = list; -#line 477 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp17_ = prepped; -#line 477 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection), _tmp17_); -#line 478 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp18_ = collection; -#line 478 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp19_ = prepped; -#line 478 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp19_); -#line 4249 "PhotoMetadata.c" - } -#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (prepped); -#line 472 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (value); -#line 4255 "PhotoMetadata.c" - } - } - } -#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp21_ = list; -#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp22_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp23_ = _tmp22_; -#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp23_ > 0) { -#line 4267 "PhotoMetadata.c" - GeeList* _tmp24_; -#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp24_ = list; -#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp20_ = _tmp24_; -#line 4273 "PhotoMetadata.c" - } else { -#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp20_ = NULL; -#line 4277 "PhotoMetadata.c" - } -#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp25_ = _g_object_ref0 (_tmp20_); -#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp25_; -#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (collection); -#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (list); -#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL); -#line 482 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 4291 "PhotoMetadata.c" -} - - -GeeList* -photo_metadata_get_first_string_multiple (PhotoMetadata* self, - gchar** tags, - int tags_length1) -{ - GeeList* result = NULL; -#line 491 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 4303 "PhotoMetadata.c" - { - gchar** tag_collection = NULL; - gint tag_collection_length1 = 0; - gint _tag_collection_size_ = 0; - gint tag_it = 0; -#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection = tags; -#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection_length1 = tags_length1; -#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) { -#line 4315 "PhotoMetadata.c" - gchar* _tmp0_; - gchar* tag = NULL; -#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = g_strdup (tag_collection[tag_it]); -#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag = _tmp0_; -#line 4322 "PhotoMetadata.c" - { - GeeList* values = NULL; - const gchar* _tmp1_; - GeeList* _tmp2_; - gboolean _tmp3_ = FALSE; - GeeList* _tmp4_; -#line 493 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = tag; -#line 493 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = photo_metadata_get_string_multiple (self, _tmp1_); -#line 493 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - values = _tmp2_; -#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = values; -#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp4_ != NULL) { -#line 4339 "PhotoMetadata.c" - GeeList* _tmp5_; - gint _tmp6_; - gint _tmp7_; -#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = values; -#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = _tmp6_; -#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = _tmp7_ > 0; -#line 4351 "PhotoMetadata.c" - } else { -#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = FALSE; -#line 4355 "PhotoMetadata.c" - } -#line 494 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp3_) { -#line 495 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = values; -#line 495 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (tag); -#line 495 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 4365 "PhotoMetadata.c" - } -#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (values); -#line 492 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (tag); -#line 4371 "PhotoMetadata.c" - } - } - } -#line 498 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 498 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 4379 "PhotoMetadata.c" -} - - -void -photo_metadata_set_string (PhotoMetadata* self, - const gchar* tag, - const gchar* value, - PrepareInputTextOptions options) -{ - gchar* prepped = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - GExiv2Metadata* _tmp2_; - const gchar* _tmp3_; -#line 501 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 501 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (tag != NULL); -#line 501 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (value != NULL); -#line 502 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = prepare_input_text (value, options, DEFAULT_USER_TEXT_INPUT_LENGTH); -#line 502 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - prepped = _tmp0_; -#line 503 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = prepped; -#line 503 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp1_ == NULL) { -#line 504 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_warning ("PhotoMetadata.vala:504: Not setting tag %s to string %s: invalid UTF-8", tag, value); -#line 506 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (prepped); -#line 506 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return; -#line 4414 "PhotoMetadata.c" - } -#line 509 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = self->priv->exiv2; -#line 509 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = prepped; -#line 509 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!gexiv2_metadata_set_tag_string (_tmp2_, tag, _tmp3_)) { -#line 4422 "PhotoMetadata.c" - const gchar* _tmp4_; -#line 510 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = self->priv->source_name; -#line 510 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_warning ("PhotoMetadata.vala:510: Unable to set tag %s to string %s from source " \ -"%s", tag, value, _tmp4_); -#line 4428 "PhotoMetadata.c" - } -#line 501 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (prepped); -#line 4432 "PhotoMetadata.c" -} - - -static void -photo_metadata_set_all_generic (PhotoMetadata* self, - gchar** tags, - int tags_length1, - PhotoMetadataSetOption option, - PhotoMetadataSetGenericValue setter, - void* setter_target) -{ - gboolean written = FALSE; - gboolean _tmp4_ = FALSE; - gboolean _tmp5_ = FALSE; -#line 515 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 516 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - written = FALSE; -#line 4451 "PhotoMetadata.c" - { - gchar** tag_collection = NULL; - gint tag_collection_length1 = 0; - gint _tag_collection_size_ = 0; - gint tag_it = 0; -#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection = tags; -#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection_length1 = tags_length1; -#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) { -#line 4463 "PhotoMetadata.c" - gchar* _tmp0_; - gchar* tag = NULL; -#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = g_strdup (tag_collection[tag_it]); -#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag = _tmp0_; -#line 4470 "PhotoMetadata.c" - { - gboolean _tmp1_ = FALSE; -#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (option == PHOTO_METADATA_SET_OPTION_ALL_DOMAINS) { -#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = TRUE; -#line 4477 "PhotoMetadata.c" - } else { - const gchar* _tmp2_; -#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = tag; -#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_has_domain (self, photo_metadata_get_tag_domain (_tmp2_)); -#line 4484 "PhotoMetadata.c" - } -#line 518 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp1_) { -#line 4488 "PhotoMetadata.c" - const gchar* _tmp3_; -#line 519 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = tag; -#line 519 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - setter (_tmp3_, setter_target); -#line 520 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - written = TRUE; -#line 4496 "PhotoMetadata.c" - } -#line 517 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (tag); -#line 4500 "PhotoMetadata.c" - } - } - } -#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (option == PHOTO_METADATA_SET_OPTION_AT_LEAST_DEFAULT_DOMAIN) { -#line 4506 "PhotoMetadata.c" - gboolean _tmp6_; -#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = written; -#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = !_tmp6_; -#line 4512 "PhotoMetadata.c" - } else { -#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = FALSE; -#line 4516 "PhotoMetadata.c" - } -#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp5_) { -#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = tags_length1 > 0; -#line 4522 "PhotoMetadata.c" - } else { -#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = FALSE; -#line 4526 "PhotoMetadata.c" - } -#line 524 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp4_) { -#line 4530 "PhotoMetadata.c" - MetadataDomain default_domain = 0; - const gchar* _tmp7_; - const gchar* _tmp8_; -#line 525 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = tags[0]; -#line 525 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - default_domain = photo_metadata_get_tag_domain (_tmp7_); -#line 528 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = tags[0]; -#line 528 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - setter (_tmp8_, setter_target); -#line 4542 "PhotoMetadata.c" - { - gint ctr = 0; -#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ctr = 1; -#line 4547 "PhotoMetadata.c" - { - gboolean _tmp9_ = FALSE; -#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = TRUE; -#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - while (TRUE) { -#line 4554 "PhotoMetadata.c" - gint _tmp11_; - gint _tmp12_; - const gchar* _tmp13_; - MetadataDomain _tmp14_; -#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!_tmp9_) { -#line 4561 "PhotoMetadata.c" - gint _tmp10_; -#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = ctr; -#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ctr = _tmp10_ + 1; -#line 4567 "PhotoMetadata.c" - } -#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = FALSE; -#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = ctr; -#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!(_tmp11_ < tags_length1)) { -#line 531 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 4577 "PhotoMetadata.c" - } -#line 532 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = ctr; -#line 532 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = tags[_tmp12_]; -#line 532 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_ = default_domain; -#line 532 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (photo_metadata_get_tag_domain (_tmp13_) == _tmp14_) { -#line 4587 "PhotoMetadata.c" - gint _tmp15_; - const gchar* _tmp16_; -#line 533 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp15_ = ctr; -#line 533 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp16_ = tags[_tmp15_]; -#line 533 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - setter (_tmp16_, setter_target); -#line 4596 "PhotoMetadata.c" - } - } - } - } - } -} - - -static Block1Data* -block1_data_ref (Block1Data* _data1_) -{ -#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_atomic_int_inc (&_data1_->_ref_count_); -#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return _data1_; -#line 4612 "PhotoMetadata.c" -} - - -static void -block1_data_unref (void * _userdata_) -{ - Block1Data* _data1_; - _data1_ = (Block1Data*) _userdata_; -#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) { -#line 4623 "PhotoMetadata.c" - PhotoMetadata* self; -#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = _data1_->self; -#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_data1_->value); -#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _media_metadata_unref0 (self); -#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_slice_free (Block1Data, _data1_); -#line 4633 "PhotoMetadata.c" - } -} - - -static void -__lambda5_ (Block1Data* _data1_, - const gchar* tag) -{ - PhotoMetadata* self; -#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = _data1_->self; -#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (tag != NULL); -#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_string (self, tag, _data1_->value, PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 4649 "PhotoMetadata.c" -} - - -static void -___lambda5__photo_metadata_set_generic_value (const gchar* tag, - gpointer self) -{ -#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - __lambda5_ (self, tag); -#line 4659 "PhotoMetadata.c" -} - - -void -photo_metadata_set_all_string (PhotoMetadata* self, - gchar** tags, - int tags_length1, - const gchar* value, - PhotoMetadataSetOption option) -{ - Block1Data* _data1_; - gchar* _tmp0_; -#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (value != NULL); -#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data1_ = g_slice_new0 (Block1Data); -#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data1_->_ref_count_ = 1; -#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data1_->self = media_metadata_ref (self); -#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = g_strdup (value); -#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_data1_->value); -#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data1_->value = _tmp0_; -#line 539 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_all_generic (self, tags, tags_length1, option, ___lambda5__photo_metadata_set_generic_value, _data1_); -#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - block1_data_unref (_data1_); -#line 538 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data1_ = NULL; -#line 4694 "PhotoMetadata.c" -} - - -static void -_vala_array_add48 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if ((*length) == (*size)) { -#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 4710 "PhotoMetadata.c" - } -#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - (*array)[(*length)++] = value; -#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - (*array)[*length] = NULL; -#line 4716 "PhotoMetadata.c" -} - - -static void -_vala_array_add49 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if ((*length) == (*size)) { -#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 4732 "PhotoMetadata.c" - } -#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - (*array)[(*length)++] = value; -#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - (*array)[*length] = NULL; -#line 4738 "PhotoMetadata.c" -} - - -void -photo_metadata_set_string_multiple (PhotoMetadata* self, - const gchar* tag, - GeeCollection* collection) -{ - gchar** values = NULL; - gchar** _tmp0_; - gint values_length1; - gint _values_size_; - gchar** _tmp12_; - gint _tmp12__length1; - gchar** _tmp13_; - gint _tmp13__length1; - GExiv2Metadata* _tmp14_; - gchar** _tmp15_; - gint _tmp15__length1; -#line 542 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 542 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (tag != NULL); -#line 542 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (GEE_IS_COLLECTION (collection)); -#line 543 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = g_new0 (gchar*, 0 + 1); -#line 543 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - values = _tmp0_; -#line 543 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - values_length1 = 0; -#line 543 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _values_size_ = values_length1; -#line 4772 "PhotoMetadata.c" - { - GeeIterator* _value_it = NULL; - GeeIterator* _tmp1_; -#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (collection, GEE_TYPE_ITERABLE, GeeIterable)); -#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _value_it = _tmp1_; -#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - while (TRUE) { -#line 4782 "PhotoMetadata.c" - GeeIterator* _tmp2_; - gchar* value = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - gchar* prepped = NULL; - const gchar* _tmp5_; - gchar* _tmp6_; - const gchar* _tmp7_; -#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = _value_it; -#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 4797 "PhotoMetadata.c" - } -#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = _value_it; -#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value = (gchar*) _tmp4_; -#line 545 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = value; -#line 545 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = prepare_input_text (_tmp5_, PHOTO_METADATA_PREPARE_STRING_OPTIONS, -1); -#line 545 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - prepped = _tmp6_; -#line 546 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = prepped; -#line 546 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp7_ != NULL) { -#line 4815 "PhotoMetadata.c" - gchar** _tmp8_; - gint _tmp8__length1; - const gchar* _tmp9_; - gchar* _tmp10_; -#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = values; -#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8__length1 = values_length1; -#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = prepped; -#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = g_strdup (_tmp9_); -#line 547 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_array_add48 (&values, &values_length1, &_values_size_, _tmp10_); -#line 4830 "PhotoMetadata.c" - } else { - const gchar* _tmp11_; -#line 549 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = value; -#line 549 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_warning ("PhotoMetadata.vala:549: Unable to set string %s to %s: invalid UTF-8", _tmp11_, tag); -#line 4837 "PhotoMetadata.c" - } -#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (prepped); -#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (value); -#line 4843 "PhotoMetadata.c" - } -#line 544 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_value_it); -#line 4847 "PhotoMetadata.c" - } -#line 552 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = values; -#line 552 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12__length1 = values_length1; -#line 552 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp12__length1 == 0) { -#line 553 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL); -#line 553 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return; -#line 4859 "PhotoMetadata.c" - } -#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = values; -#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13__length1 = values_length1; -#line 559 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_array_add49 (&values, &values_length1, &_values_size_, NULL); -#line 561 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_ = self->priv->exiv2; -#line 561 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp15_ = values; -#line 561 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp15__length1 = values_length1; -#line 561 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!gexiv2_metadata_set_tag_multiple (_tmp14_, tag, _tmp15_)) { -#line 4875 "PhotoMetadata.c" - gchar** _tmp16_; - gint _tmp16__length1; - const gchar* _tmp17_; -#line 562 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp16_ = values; -#line 562 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp16__length1 = values_length1; -#line 562 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp17_ = self->priv->source_name; -#line 562 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_warning ("PhotoMetadata.vala:562: Unable to set %d strings to tag %s from source" \ -" %s", _tmp16__length1, tag, _tmp17_); -#line 4887 "PhotoMetadata.c" - } -#line 542 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - values = (_vala_array_free (values, values_length1, (GDestroyNotify) g_free), NULL); -#line 4891 "PhotoMetadata.c" -} - - -static Block2Data* -block2_data_ref (Block2Data* _data2_) -{ -#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_atomic_int_inc (&_data2_->_ref_count_); -#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return _data2_; -#line 4902 "PhotoMetadata.c" -} - - -static void -block2_data_unref (void * _userdata_) -{ - Block2Data* _data2_; - _data2_ = (Block2Data*) _userdata_; -#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) { -#line 4913 "PhotoMetadata.c" - PhotoMetadata* self; -#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = _data2_->self; -#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_data2_->values); -#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _media_metadata_unref0 (self); -#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_slice_free (Block2Data, _data2_); -#line 4923 "PhotoMetadata.c" - } -} - - -static void -__lambda6_ (Block2Data* _data2_, - const gchar* tag) -{ - PhotoMetadata* self; -#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = _data2_->self; -#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (tag != NULL); -#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_string_multiple (self, tag, _data2_->values); -#line 4939 "PhotoMetadata.c" -} - - -static void -___lambda6__photo_metadata_set_generic_value (const gchar* tag, - gpointer self) -{ -#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - __lambda6_ (self, tag); -#line 4949 "PhotoMetadata.c" -} - - -void -photo_metadata_set_all_string_multiple (PhotoMetadata* self, - gchar** tags, - int tags_length1, - GeeCollection* values, - PhotoMetadataSetOption option) -{ - Block2Data* _data2_; - GeeCollection* _tmp0_; -#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (GEE_IS_COLLECTION (values)); -#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data2_ = g_slice_new0 (Block2Data); -#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data2_->_ref_count_ = 1; -#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data2_->self = media_metadata_ref (self); -#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = _g_object_ref0 (values); -#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_data2_->values); -#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data2_->values = _tmp0_; -#line 566 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_all_generic (self, tags, tags_length1, option, ___lambda6__photo_metadata_set_generic_value, _data2_); -#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - block2_data_unref (_data2_); -#line 565 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data2_ = NULL; -#line 4984 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_get_long (PhotoMetadata* self, - const gchar* tag, - glong* value) -{ - glong _vala_value = 0L; - gboolean result = FALSE; - GExiv2Metadata* _tmp0_; -#line 569 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 569 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (tag != NULL, FALSE); -#line 570 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!photo_metadata_has_tag (self, tag)) { -#line 571 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_value = (glong) 0; -#line 573 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = FALSE; -#line 573 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (value) { -#line 573 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *value = _vala_value; -#line 5010 "PhotoMetadata.c" - } -#line 573 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 5014 "PhotoMetadata.c" - } -#line 576 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 576 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_value = gexiv2_metadata_get_tag_long (_tmp0_, tag); -#line 578 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = TRUE; -#line 578 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (value) { -#line 578 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *value = _vala_value; -#line 5026 "PhotoMetadata.c" - } -#line 578 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 5030 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_get_first_long (PhotoMetadata* self, - gchar** tags, - int tags_length1, - glong* value) -{ - glong _vala_value = 0L; - gboolean result = FALSE; -#line 581 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 5044 "PhotoMetadata.c" - { - gchar** tag_collection = NULL; - gint tag_collection_length1 = 0; - gint _tag_collection_size_ = 0; - gint tag_it = 0; -#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection = tags; -#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection_length1 = tags_length1; -#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) { -#line 5056 "PhotoMetadata.c" - gchar* _tmp0_; - gchar* tag = NULL; -#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = g_strdup (tag_collection[tag_it]); -#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag = _tmp0_; -#line 5063 "PhotoMetadata.c" - { - const gchar* _tmp1_; - glong _tmp2_ = 0L; - gboolean _tmp3_; -#line 583 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = tag; -#line 583 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = photo_metadata_get_long (self, _tmp1_, &_tmp2_); -#line 583 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_value = _tmp2_; -#line 583 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp3_) { -#line 584 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = TRUE; -#line 584 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (tag); -#line 584 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (value) { -#line 584 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *value = _vala_value; -#line 5084 "PhotoMetadata.c" - } -#line 584 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 5088 "PhotoMetadata.c" - } -#line 582 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (tag); -#line 5092 "PhotoMetadata.c" - } - } - } -#line 587 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_value = (glong) 0; -#line 589 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = FALSE; -#line 589 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (value) { -#line 589 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *value = _vala_value; -#line 5104 "PhotoMetadata.c" - } -#line 589 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 5108 "PhotoMetadata.c" -} - - -void -photo_metadata_set_long (PhotoMetadata* self, - const gchar* tag, - glong value) -{ - GExiv2Metadata* _tmp0_; -#line 592 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 592 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (tag != NULL); -#line 593 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 593 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!gexiv2_metadata_set_tag_long (_tmp0_, tag, value)) { -#line 5126 "PhotoMetadata.c" - const gchar* _tmp1_; -#line 594 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = self->priv->source_name; -#line 594 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_warning ("PhotoMetadata.vala:594: Unable to set tag %s to long %ld from source %" \ -"s", tag, value, _tmp1_); -#line 5132 "PhotoMetadata.c" - } -} - - -static Block3Data* -block3_data_ref (Block3Data* _data3_) -{ -#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_atomic_int_inc (&_data3_->_ref_count_); -#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return _data3_; -#line 5144 "PhotoMetadata.c" -} - - -static void -block3_data_unref (void * _userdata_) -{ - Block3Data* _data3_; - _data3_ = (Block3Data*) _userdata_; -#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) { -#line 5155 "PhotoMetadata.c" - PhotoMetadata* self; -#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = _data3_->self; -#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _media_metadata_unref0 (self); -#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_slice_free (Block3Data, _data3_); -#line 5163 "PhotoMetadata.c" - } -} - - -static void -__lambda7_ (Block3Data* _data3_, - const gchar* tag) -{ - PhotoMetadata* self; -#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = _data3_->self; -#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (tag != NULL); -#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_long (self, tag, _data3_->value); -#line 5179 "PhotoMetadata.c" -} - - -static void -___lambda7__photo_metadata_set_generic_value (const gchar* tag, - gpointer self) -{ -#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - __lambda7_ (self, tag); -#line 5189 "PhotoMetadata.c" -} - - -void -photo_metadata_set_all_long (PhotoMetadata* self, - gchar** tags, - int tags_length1, - glong value, - PhotoMetadataSetOption option) -{ - Block3Data* _data3_; -#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data3_ = g_slice_new0 (Block3Data); -#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data3_->_ref_count_ = 1; -#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data3_->self = media_metadata_ref (self); -#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data3_->value = value; -#line 598 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_all_generic (self, tags, tags_length1, option, ___lambda7__photo_metadata_set_generic_value, _data3_); -#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - block3_data_unref (_data3_); -#line 597 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data3_ = NULL; -#line 5217 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_get_rational (PhotoMetadata* self, - const gchar* tag, - MetadataRational* rational) -{ - MetadataRational _vala_rational = {0}; - gboolean result = FALSE; - gint numerator = 0; - gint denominator = 0; - gboolean _result_ = FALSE; - GExiv2Metadata* _tmp0_; - gint _tmp1_ = 0; - gint _tmp2_ = 0; - gboolean _tmp3_; -#line 601 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 601 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (tag != NULL, FALSE); -#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = gexiv2_metadata_get_exif_tag_rational (_tmp0_, tag, &_tmp1_, &_tmp2_); -#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - numerator = _tmp1_; -#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - denominator = _tmp2_; -#line 603 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _result_ = _tmp3_; -#line 605 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - metadata_rational_init (&_vala_rational, numerator, denominator); -#line 607 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _result_; -#line 607 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (rational) { -#line 607 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *rational = _vala_rational; -#line 5257 "PhotoMetadata.c" - } -#line 607 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 5261 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_get_first_rational (PhotoMetadata* self, - gchar** tags, - int tags_length1, - MetadataRational* rational) -{ - MetadataRational _vala_rational = {0}; - gboolean result = FALSE; -#line 610 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 5275 "PhotoMetadata.c" - { - gchar** tag_collection = NULL; - gint tag_collection_length1 = 0; - gint _tag_collection_size_ = 0; - gint tag_it = 0; -#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection = tags; -#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection_length1 = tags_length1; -#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) { -#line 5287 "PhotoMetadata.c" - gchar* _tmp0_; - gchar* tag = NULL; -#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = g_strdup (tag_collection[tag_it]); -#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag = _tmp0_; -#line 5294 "PhotoMetadata.c" - { - const gchar* _tmp1_; - MetadataRational _tmp2_ = {0}; - gboolean _tmp3_; -#line 612 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = tag; -#line 612 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = photo_metadata_get_rational (self, _tmp1_, &_tmp2_); -#line 612 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_rational = _tmp2_; -#line 612 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp3_) { -#line 613 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = TRUE; -#line 613 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (tag); -#line 613 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (rational) { -#line 613 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *rational = _vala_rational; -#line 5315 "PhotoMetadata.c" - } -#line 613 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 5319 "PhotoMetadata.c" - } -#line 611 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (tag); -#line 5323 "PhotoMetadata.c" - } - } - } -#line 616 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - metadata_rational_init (&_vala_rational, 0, 0); -#line 618 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = FALSE; -#line 618 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (rational) { -#line 618 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *rational = _vala_rational; -#line 5335 "PhotoMetadata.c" - } -#line 618 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 5339 "PhotoMetadata.c" -} - - -void -photo_metadata_set_rational (PhotoMetadata* self, - const gchar* tag, - MetadataRational* rational) -{ - GExiv2Metadata* _tmp0_; - MetadataRational _tmp1_; - gint _tmp2_; - MetadataRational _tmp3_; - gint _tmp4_; -#line 621 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 621 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (tag != NULL); -#line 621 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (rational != NULL); -#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = *rational; -#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = _tmp1_.numerator; -#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = *rational; -#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = _tmp3_.denominator; -#line 622 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!gexiv2_metadata_set_exif_tag_rational (_tmp0_, tag, _tmp2_, _tmp4_)) { -#line 5371 "PhotoMetadata.c" - gchar* _tmp5_; - gchar* _tmp6_; - const gchar* _tmp7_; -#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = metadata_rational_to_string (rational); -#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = _tmp5_; -#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = self->priv->source_name; -#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_warning ("PhotoMetadata.vala:623: Unable to set tag %s to rational %s from sourc" \ -"e %s", tag, _tmp6_, _tmp7_); -#line 623 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp6_); -#line 5385 "PhotoMetadata.c" - } -} - - -static Block4Data* -block4_data_ref (Block4Data* _data4_) -{ -#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_atomic_int_inc (&_data4_->_ref_count_); -#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return _data4_; -#line 5397 "PhotoMetadata.c" -} - - -static void -block4_data_unref (void * _userdata_) -{ - Block4Data* _data4_; - _data4_ = (Block4Data*) _userdata_; -#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) { -#line 5408 "PhotoMetadata.c" - PhotoMetadata* self; -#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = _data4_->self; -#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _media_metadata_unref0 (self); -#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_slice_free (Block4Data, _data4_); -#line 5416 "PhotoMetadata.c" - } -} - - -static void -__lambda8_ (Block4Data* _data4_, - const gchar* tag) -{ - PhotoMetadata* self; - MetadataRational _tmp0_; -#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = _data4_->self; -#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (tag != NULL); -#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = _data4_->rational; -#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_rational (self, tag, &_tmp0_); -#line 5435 "PhotoMetadata.c" -} - - -static void -___lambda8__photo_metadata_set_generic_value (const gchar* tag, - gpointer self) -{ -#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - __lambda8_ (self, tag); -#line 5445 "PhotoMetadata.c" -} - - -void -photo_metadata_set_all_rational (PhotoMetadata* self, - gchar** tags, - int tags_length1, - MetadataRational* rational, - PhotoMetadataSetOption option) -{ - Block4Data* _data4_; - MetadataRational _tmp0_; -#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (rational != NULL); -#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data4_ = g_slice_new0 (Block4Data); -#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data4_->_ref_count_ = 1; -#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data4_->self = media_metadata_ref (self); -#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = *rational; -#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data4_->rational = _tmp0_; -#line 629 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_all_generic (self, tags, tags_length1, option, ___lambda8__photo_metadata_set_generic_value, _data4_); -#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - block4_data_unref (_data4_); -#line 628 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data4_ = NULL; -#line 5478 "PhotoMetadata.c" -} - - -MetadataDateTime* -photo_metadata_get_date_time (PhotoMetadata* self, - const gchar* tag) -{ - MetadataDateTime* result = NULL; - gchar* value = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - GError * _inner_error_ = NULL; -#line 632 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 632 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (tag != NULL, NULL); -#line 633 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_get_string (self, tag, PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 633 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - value = _tmp0_; -#line 634 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = value; -#line 634 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp1_ == NULL) { -#line 635 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 635 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (value); -#line 635 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 5509 "PhotoMetadata.c" - } - { -#line 638 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - switch (photo_metadata_get_tag_domain (tag)) { -#line 638 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_XMP: -#line 5516 "PhotoMetadata.c" - { - MetadataDateTime* _tmp2_ = NULL; - const gchar* _tmp3_; - MetadataDateTime* _tmp4_; - MetadataDateTime* _tmp5_; -#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = value; -#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = metadata_date_time_new_from_xmp (_tmp3_, &_inner_error_); -#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = _tmp4_; -#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5530 "PhotoMetadata.c" - goto __catch30_g_error; - } -#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = _tmp2_; -#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = NULL; -#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp5_; -#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _metadata_date_time_unref0 (_tmp2_); -#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (value); -#line 640 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 5545 "PhotoMetadata.c" - } -#line 638 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_IPTC: -#line 5549 "PhotoMetadata.c" - { -#line 645 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 645 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (value); -#line 645 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 5557 "PhotoMetadata.c" - } - default: -#line 638 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_EXIF: -#line 5562 "PhotoMetadata.c" - { - MetadataDateTime* _tmp6_ = NULL; - const gchar* _tmp7_; - MetadataDateTime* _tmp8_; - MetadataDateTime* _tmp9_; -#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = value; -#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = metadata_date_time_new_from_exif (_tmp7_, &_inner_error_); -#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = _tmp8_; -#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5576 "PhotoMetadata.c" - goto __catch30_g_error; - } -#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = _tmp6_; -#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = NULL; -#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp9_; -#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _metadata_date_time_unref0 (_tmp6_); -#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (value); -#line 649 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 5591 "PhotoMetadata.c" - } - } - } - goto __finally30; - __catch30_g_error: - { - GError* err = NULL; - const gchar* _tmp10_; - GError* _tmp11_; - const gchar* _tmp12_; -#line 637 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - err = _inner_error_; -#line 637 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _inner_error_ = NULL; -#line 652 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = self->priv->source_name; -#line 652 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = err; -#line 652 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = _tmp11_->message; -#line 652 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_warning ("PhotoMetadata.vala:652: Unable to read date/time %s from source %s: %s", tag, _tmp10_, _tmp12_); -#line 654 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 654 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_error_free0 (err); -#line 654 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (value); -#line 654 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 5622 "PhotoMetadata.c" - } - __finally30: -#line 637 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (value); -#line 637 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 637 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_clear_error (&_inner_error_); -#line 637 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return NULL; -#line 5633 "PhotoMetadata.c" -} - - -MetadataDateTime* -photo_metadata_get_first_date_time (PhotoMetadata* self, - gchar** tags, - int tags_length1) -{ - MetadataDateTime* result = NULL; -#line 658 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 5645 "PhotoMetadata.c" - { - gchar** tag_collection = NULL; - gint tag_collection_length1 = 0; - gint _tag_collection_size_ = 0; - gint tag_it = 0; -#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection = tags; -#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection_length1 = tags_length1; -#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) { -#line 5657 "PhotoMetadata.c" - gchar* _tmp0_; - gchar* tag = NULL; -#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = g_strdup (tag_collection[tag_it]); -#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag = _tmp0_; -#line 5664 "PhotoMetadata.c" - { - MetadataDateTime* date_time = NULL; - const gchar* _tmp1_; - MetadataDateTime* _tmp2_; - MetadataDateTime* _tmp3_; -#line 660 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = tag; -#line 660 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = photo_metadata_get_date_time (self, _tmp1_); -#line 660 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - date_time = _tmp2_; -#line 661 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = date_time; -#line 661 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp3_ != NULL) { -#line 662 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = date_time; -#line 662 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (tag); -#line 662 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 5686 "PhotoMetadata.c" - } -#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _metadata_date_time_unref0 (date_time); -#line 659 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (tag); -#line 5692 "PhotoMetadata.c" - } - } - } -#line 665 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 665 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 5700 "PhotoMetadata.c" -} - - -void -photo_metadata_set_date_time (PhotoMetadata* self, - const gchar* tag, - MetadataDateTime* date_time) -{ -#line 668 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 668 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (tag != NULL); -#line 668 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_METADATA_DATE_TIME (date_time)); -#line 669 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - switch (photo_metadata_get_tag_domain (tag)) { -#line 669 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_EXIF: -#line 5719 "PhotoMetadata.c" - { - gchar* _tmp0_; - gchar* _tmp1_; -#line 671 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = metadata_date_time_get_exif_label (date_time); -#line 671 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = _tmp0_; -#line 671 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_string (self, tag, _tmp1_, PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 671 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp1_); -#line 672 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 5733 "PhotoMetadata.c" - } -#line 669 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_XMP: -#line 5737 "PhotoMetadata.c" - { - gchar* _tmp2_; - gchar* _tmp3_; -#line 675 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = metadata_date_time_get_xmp_label (date_time); -#line 675 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = _tmp2_; -#line 675 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_string (self, tag, _tmp3_, PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 675 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp3_); -#line 676 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 5751 "PhotoMetadata.c" - } - default: -#line 669 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_IPTC: -#line 5756 "PhotoMetadata.c" - { - const gchar* _tmp4_; - GEnumValue* _tmp5_; -#line 681 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = self->priv->source_name; -#line 682 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = g_enum_get_value (g_type_class_ref (TYPE_METADATA_DOMAIN), photo_metadata_get_tag_domain (tag)); -#line 681 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_warning ("PhotoMetadata.vala:681: Cannot set date/time for %s from source %s: un" \ -"supported metadata domain %s", tag, _tmp4_, (_tmp5_ != NULL) ? _tmp5_->value_name : NULL); -#line 683 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 5768 "PhotoMetadata.c" - } - } -} - - -static gpointer -_metadata_date_time_ref0 (gpointer self) -{ -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return self ? metadata_date_time_ref (self) : NULL; -#line 5779 "PhotoMetadata.c" -} - - -static Block5Data* -block5_data_ref (Block5Data* _data5_) -{ -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_atomic_int_inc (&_data5_->_ref_count_); -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return _data5_; -#line 5790 "PhotoMetadata.c" -} - - -static void -block5_data_unref (void * _userdata_) -{ - Block5Data* _data5_; - _data5_ = (Block5Data*) _userdata_; -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (g_atomic_int_dec_and_test (&_data5_->_ref_count_)) { -#line 5801 "PhotoMetadata.c" - PhotoMetadata* self; -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = _data5_->self; -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _metadata_date_time_unref0 (_data5_->date_time); -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _media_metadata_unref0 (self); -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_slice_free (Block5Data, _data5_); -#line 5811 "PhotoMetadata.c" - } -} - - -static void -__lambda9_ (Block5Data* _data5_, - const gchar* tag) -{ - PhotoMetadata* self; -#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = _data5_->self; -#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (tag != NULL); -#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_date_time (self, tag, _data5_->date_time); -#line 5827 "PhotoMetadata.c" -} - - -static void -___lambda9__photo_metadata_set_generic_value (const gchar* tag, - gpointer self) -{ -#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - __lambda9_ (self, tag); -#line 5837 "PhotoMetadata.c" -} - - -void -photo_metadata_set_all_date_time (PhotoMetadata* self, - gchar** tags, - int tags_length1, - MetadataDateTime* date_time, - PhotoMetadataSetOption option) -{ - Block5Data* _data5_; - MetadataDateTime* _tmp0_; -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_METADATA_DATE_TIME (date_time)); -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data5_ = g_slice_new0 (Block5Data); -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data5_->_ref_count_ = 1; -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data5_->self = media_metadata_ref (self); -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = _metadata_date_time_ref0 (date_time); -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _metadata_date_time_unref0 (_data5_->date_time); -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data5_->date_time = _tmp0_; -#line 688 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_all_generic (self, tags, tags_length1, option, ___lambda9__photo_metadata_set_generic_value, _data5_); -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - block5_data_unref (_data5_); -#line 687 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data5_ = NULL; -#line 5872 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_exif_hash (PhotoMetadata* self) -{ - gchar* result = NULL; - ExifData* _tmp0_; - const gchar* _tmp1_; - gchar* hash = NULL; - guchar* thumb = NULL; - ExifData* _tmp4_; - guchar* _tmp5_; - guint thumb_size = 0U; - ExifData* _tmp6_; - guint _tmp7_; - ExifData* _tmp8_; - ExifData* _tmp9_; - guchar* saved_data = NULL; - guint saved_size = 0U; - ExifData* _tmp10_; - ExifData* _tmp11_; - guchar* _tmp12_; - ExifData* _tmp13_; - guint _tmp14_; - gboolean _tmp15_ = FALSE; - guint _tmp16_; -#line 692 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 693 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exif; -#line 693 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp0_ == NULL) { -#line 694 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 694 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 5910 "PhotoMetadata.c" - } -#line 696 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = self->priv->metadata_hash; -#line 696 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp1_ != NULL) { -#line 5916 "PhotoMetadata.c" - const gchar* _tmp2_; - gchar* _tmp3_; -#line 697 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = self->priv->metadata_hash; -#line 697 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 697 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp3_; -#line 697 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 5927 "PhotoMetadata.c" - } -#line 700 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - hash = NULL; -#line 702 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = self->priv->exif; -#line 702 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = _tmp4_->data; -#line 702 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - thumb = _tmp5_; -#line 703 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = self->priv->exif; -#line 703 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = _tmp6_->size; -#line 703 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - thumb_size = _tmp7_; -#line 706 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = self->priv->exif; -#line 706 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_->data = NULL; -#line 707 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = self->priv->exif; -#line 707 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_->size = (guint) 0; -#line 709 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - saved_data = NULL; -#line 710 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - saved_size = (guint) 0; -#line 712 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = self->priv->exif; -#line 712 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - exif_data_save_data (_tmp10_, &saved_data, &saved_size); -#line 714 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = self->priv->exif; -#line 714 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = thumb; -#line 714 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_->data = _tmp12_; -#line 715 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = self->priv->exif; -#line 715 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_ = thumb_size; -#line 715 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_->size = _tmp14_; -#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp16_ = saved_size; -#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp16_ > ((guint) 0)) { -#line 5975 "PhotoMetadata.c" - guchar* _tmp17_; -#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp17_ = saved_data; -#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp15_ = _tmp17_ != NULL; -#line 5981 "PhotoMetadata.c" - } else { -#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp15_ = FALSE; -#line 5985 "PhotoMetadata.c" - } -#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp15_) { -#line 5989 "PhotoMetadata.c" - GChecksum* md5 = NULL; - GChecksum* _tmp18_; - GChecksum* _tmp19_; - guchar* _tmp20_; - guint _tmp21_; - ExifMem* _tmp22_; - ExifMem* _tmp23_; - guchar* _tmp24_; - GChecksum* _tmp25_; - const gchar* _tmp26_; - gchar* _tmp27_; -#line 718 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp18_ = g_checksum_new (G_CHECKSUM_MD5); -#line 718 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - md5 = _tmp18_; -#line 719 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp19_ = md5; -#line 719 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp20_ = saved_data; -#line 719 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp21_ = saved_size; -#line 719 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_checksum_update (_tmp19_, (guchar*) _tmp20_, (gsize) _tmp21_); -#line 720 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp22_ = exif_mem_new_default (); -#line 720 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp23_ = _tmp22_; -#line 720 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp24_ = saved_data; -#line 720 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - exif_mem_free (_tmp23_, _tmp24_); -#line 720 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _exif_mem_unref0 (_tmp23_); -#line 722 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp25_ = md5; -#line 722 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp26_ = g_checksum_get_string (_tmp25_); -#line 722 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp27_ = g_strdup (_tmp26_); -#line 722 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->priv->metadata_hash); -#line 722 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->metadata_hash = _tmp27_; -#line 717 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_checksum_free0 (md5); -#line 6035 "PhotoMetadata.c" - } -#line 725 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = hash; -#line 725 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 6041 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_thumbnail_hash (PhotoMetadata* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - guchar* buffer = NULL; - gint buffer_length1 = 0; - gint _buffer_size_ = 0; - GExiv2Metadata* _tmp3_; - guint8* _tmp4_ = NULL; - gint _tmp5_; - gboolean _tmp6_; -#line 729 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 730 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->thumbnail_md5; -#line 730 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp0_ != NULL) { -#line 6063 "PhotoMetadata.c" - const gchar* _tmp1_; - gchar* _tmp2_; -#line 731 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = self->priv->thumbnail_md5; -#line 731 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 731 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp2_; -#line 731 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 6074 "PhotoMetadata.c" - } -#line 735 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = self->priv->exiv2; -#line 735 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = gexiv2_metadata_get_exif_thumbnail (_tmp3_, &_tmp4_, &_tmp5_); -#line 735 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - buffer = (g_free (buffer), NULL); -#line 735 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - buffer = _tmp4_; -#line 735 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - buffer_length1 = _tmp5_; -#line 735 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _buffer_size_ = buffer_length1; -#line 735 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp6_) { -#line 6090 "PhotoMetadata.c" - GChecksum* md5 = NULL; - GChecksum* _tmp7_; - GChecksum* _tmp8_; - guchar* _tmp9_; - gint _tmp9__length1; - guchar* _tmp10_; - gint _tmp10__length1; - GChecksum* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; - const gchar* _tmp14_; - gchar* _tmp15_; -#line 736 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = g_checksum_new (G_CHECKSUM_MD5); -#line 736 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - md5 = _tmp7_; -#line 737 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = md5; -#line 737 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = buffer; -#line 737 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9__length1 = buffer_length1; -#line 737 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = buffer; -#line 737 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10__length1 = buffer_length1; -#line 737 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_checksum_update (_tmp8_, _tmp9_, (gsize) _tmp10__length1); -#line 739 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = md5; -#line 739 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = g_checksum_get_string (_tmp11_); -#line 739 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = g_strdup (_tmp12_); -#line 739 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->priv->thumbnail_md5); -#line 739 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->thumbnail_md5 = _tmp13_; -#line 741 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_ = self->priv->thumbnail_md5; -#line 741 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp15_ = g_strdup (_tmp14_); -#line 741 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp15_; -#line 741 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_checksum_free0 (md5); -#line 741 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - buffer = (g_free (buffer), NULL); -#line 741 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 6141 "PhotoMetadata.c" - } -#line 744 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 744 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - buffer = (g_free (buffer), NULL); -#line 744 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 6149 "PhotoMetadata.c" -} - - -guint -photo_metadata_get_preview_count (PhotoMetadata* self) -{ - guint result = 0U; - GExiv2PreviewProperties** props = NULL; - GExiv2Metadata* _tmp0_; - GExiv2PreviewProperties** _tmp1_; - GExiv2PreviewProperties** _tmp2_; - gint props_length1; - gint _props_size_; - gint _tmp3_ = 0; - GExiv2PreviewProperties** _tmp4_; - gint _tmp4__length1; -#line 747 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), 0U); -#line 748 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 748 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = _tmp1_ = gexiv2_metadata_get_preview_properties (_tmp0_); -#line 748 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - props = _tmp2_; -#line 748 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - props_length1 = _vala_array_length (_tmp1_); -#line 748 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _props_size_ = props_length1; -#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = props; -#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4__length1 = props_length1; -#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp4_ != NULL) { -#line 6184 "PhotoMetadata.c" - GExiv2PreviewProperties** _tmp5_; - gint _tmp5__length1; -#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = props; -#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5__length1 = props_length1; -#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = _tmp5__length1; -#line 6193 "PhotoMetadata.c" - } else { -#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = 0; -#line 6197 "PhotoMetadata.c" - } -#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = (guint) _tmp3_; -#line 750 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 6203 "PhotoMetadata.c" -} - - -PhotoPreview* -photo_metadata_get_preview (PhotoMetadata* self, - guint number) -{ - PhotoPreview* result = NULL; - GExiv2PreviewProperties** props = NULL; - GExiv2Metadata* _tmp0_; - GExiv2PreviewProperties** _tmp1_; - GExiv2PreviewProperties** _tmp2_; - gint props_length1; - gint _props_size_; - gboolean _tmp3_ = FALSE; - GExiv2PreviewProperties** _tmp4_; - gint _tmp4__length1; - const gchar* _tmp6_; - GExiv2PreviewProperties** _tmp7_; - gint _tmp7__length1; - GExiv2PreviewProperties* _tmp8_; - PhotoMetadataInternalPhotoPreview* _tmp9_; -#line 754 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 755 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 755 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = _tmp1_ = gexiv2_metadata_get_preview_properties (_tmp0_); -#line 755 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - props = _tmp2_; -#line 755 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - props_length1 = _vala_array_length (_tmp1_); -#line 755 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _props_size_ = props_length1; -#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = props; -#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4__length1 = props_length1; -#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp4_ == NULL) { -#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = TRUE; -#line 6246 "PhotoMetadata.c" - } else { - GExiv2PreviewProperties** _tmp5_; - gint _tmp5__length1; -#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = props; -#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5__length1 = props_length1; -#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = ((guint) _tmp5__length1) <= number; -#line 6256 "PhotoMetadata.c" - } -#line 756 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp3_) { -#line 757 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 757 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 6264 "PhotoMetadata.c" - } -#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = self->priv->source_name; -#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = props; -#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7__length1 = props_length1; -#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = _tmp7_[number]; -#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = photo_metadata_internal_photo_preview_new (self, _tmp6_, number, _tmp8_); -#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_PHOTO_PREVIEW, PhotoPreview); -#line 759 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 6280 "PhotoMetadata.c" -} - - -void -photo_metadata_remove_exif_thumbnail (PhotoMetadata* self) -{ - GExiv2Metadata* _tmp0_; - ExifData* _tmp1_; -#line 762 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 763 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 763 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gexiv2_metadata_erase_exif_thumbnail (_tmp0_); -#line 764 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = self->priv->exif; -#line 764 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp1_ != NULL) { -#line 6299 "PhotoMetadata.c" - ExifMem* _tmp2_; - ExifMem* _tmp3_; - ExifData* _tmp4_; - guchar* _tmp5_; - ExifData* _tmp6_; - ExifData* _tmp7_; -#line 765 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = exif_mem_new_default (); -#line 765 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = _tmp2_; -#line 765 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = self->priv->exif; -#line 765 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = _tmp4_->data; -#line 765 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - exif_mem_free (_tmp3_, _tmp5_); -#line 765 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _exif_mem_unref0 (_tmp3_); -#line 766 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = self->priv->exif; -#line 766 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_->data = NULL; -#line 767 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = self->priv->exif; -#line 767 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_->size = (guint) 0; -#line 6326 "PhotoMetadata.c" - } -} - - -void -photo_metadata_remove_tag (PhotoMetadata* self, - const gchar* tag) -{ - GExiv2Metadata* _tmp0_; -#line 771 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 771 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (tag != NULL); -#line 772 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 772 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gexiv2_metadata_clear_tag (_tmp0_, tag); -#line 6344 "PhotoMetadata.c" -} - - -void -photo_metadata_remove_tags (PhotoMetadata* self, - gchar** tags, - int tags_length1) -{ -#line 775 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 6355 "PhotoMetadata.c" - { - gchar** tag_collection = NULL; - gint tag_collection_length1 = 0; - gint _tag_collection_size_ = 0; - gint tag_it = 0; -#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection = tags; -#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection_length1 = tags_length1; -#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - for (tag_it = 0; tag_it < tags_length1; tag_it = tag_it + 1) { -#line 6367 "PhotoMetadata.c" - gchar* _tmp0_; - gchar* tag = NULL; -#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = g_strdup (tag_collection[tag_it]); -#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag = _tmp0_; -#line 6374 "PhotoMetadata.c" - { - const gchar* _tmp1_; -#line 777 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = tag; -#line 777 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_remove_tag (self, _tmp1_); -#line 776 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (tag); -#line 6383 "PhotoMetadata.c" - } - } - } -} - - -void -photo_metadata_clear_domain (PhotoMetadata* self, - MetadataDomain domain) -{ -#line 780 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 781 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - switch (domain) { -#line 781 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_EXIF: -#line 6400 "PhotoMetadata.c" - { - GExiv2Metadata* _tmp0_; -#line 783 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 783 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gexiv2_metadata_clear_exif (_tmp0_); -#line 784 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 6409 "PhotoMetadata.c" - } -#line 781 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_XMP: -#line 6413 "PhotoMetadata.c" - { - GExiv2Metadata* _tmp1_; -#line 787 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = self->priv->exiv2; -#line 787 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gexiv2_metadata_clear_xmp (_tmp1_); -#line 788 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 6422 "PhotoMetadata.c" - } -#line 781 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - case METADATA_DOMAIN_IPTC: -#line 6426 "PhotoMetadata.c" - { - GExiv2Metadata* _tmp2_; -#line 791 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = self->priv->exiv2; -#line 791 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gexiv2_metadata_clear_iptc (_tmp2_); -#line 792 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 6435 "PhotoMetadata.c" - } - default: -#line 781 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 6440 "PhotoMetadata.c" - } -} - - -void -photo_metadata_clear (PhotoMetadata* self) -{ - GExiv2Metadata* _tmp0_; -#line 796 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 797 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 797 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gexiv2_metadata_clear (_tmp0_); -#line 6455 "PhotoMetadata.c" -} - - -MetadataDateTime* -photo_metadata_get_modification_date_time (PhotoMetadata* self) -{ - MetadataDateTime* result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - MetadataDateTime* _tmp1_; -#line 807 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 808 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_DATE_TIME_TAGS; -#line 808 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0__length1 = photo_metadata_DATE_TIME_TAGS_length1; -#line 808 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_get_first_date_time (self, _tmp0_, _tmp0__length1); -#line 808 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp1_; -#line 808 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 6478 "PhotoMetadata.c" -} - - -void -photo_metadata_set_modification_date_time (PhotoMetadata* self, - MetadataDateTime* date_time, - PhotoMetadataSetOption option) -{ -#line 811 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 811 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail ((date_time == NULL) || IS_METADATA_DATE_TIME (date_time)); -#line 813 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (date_time != NULL) { -#line 6493 "PhotoMetadata.c" - gchar** _tmp0_; - gint _tmp0__length1; -#line 814 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_DATE_TIME_TAGS; -#line 814 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0__length1 = photo_metadata_DATE_TIME_TAGS_length1; -#line 814 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_all_date_time (self, _tmp0_, _tmp0__length1, date_time, option); -#line 6502 "PhotoMetadata.c" - } else { - gchar** _tmp1_; - gint _tmp1__length1; -#line 816 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_DATE_TIME_TAGS; -#line 816 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1__length1 = photo_metadata_DATE_TIME_TAGS_length1; -#line 816 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_remove_tags (self, _tmp1_, _tmp1__length1); -#line 6512 "PhotoMetadata.c" - } -} - - -MetadataDateTime* -photo_metadata_get_exposure_date_time (PhotoMetadata* self) -{ - MetadataDateTime* result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - MetadataDateTime* _tmp1_; -#line 828 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 829 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_EXPOSURE_DATE_TIME_TAGS; -#line 829 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0__length1 = photo_metadata_EXPOSURE_DATE_TIME_TAGS_length1; -#line 829 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_get_first_date_time (self, _tmp0_, _tmp0__length1); -#line 829 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp1_; -#line 829 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 6536 "PhotoMetadata.c" -} - - -void -photo_metadata_set_exposure_date_time (PhotoMetadata* self, - MetadataDateTime* date_time, - PhotoMetadataSetOption option) -{ -#line 832 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 832 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail ((date_time == NULL) || IS_METADATA_DATE_TIME (date_time)); -#line 834 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (date_time != NULL) { -#line 6551 "PhotoMetadata.c" - gchar** _tmp0_; - gint _tmp0__length1; -#line 835 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_EXPOSURE_DATE_TIME_TAGS; -#line 835 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0__length1 = photo_metadata_EXPOSURE_DATE_TIME_TAGS_length1; -#line 835 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_all_date_time (self, _tmp0_, _tmp0__length1, date_time, option); -#line 6560 "PhotoMetadata.c" - } else { - gchar** _tmp1_; - gint _tmp1__length1; -#line 837 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_EXPOSURE_DATE_TIME_TAGS; -#line 837 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1__length1 = photo_metadata_EXPOSURE_DATE_TIME_TAGS_length1; -#line 837 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_remove_tags (self, _tmp1_, _tmp1__length1); -#line 6570 "PhotoMetadata.c" - } -} - - -MetadataDateTime* -photo_metadata_get_digitized_date_time (PhotoMetadata* self) -{ - MetadataDateTime* result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - MetadataDateTime* _tmp1_; -#line 845 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 846 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_DIGITIZED_DATE_TIME_TAGS; -#line 846 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0__length1 = photo_metadata_DIGITIZED_DATE_TIME_TAGS_length1; -#line 846 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_get_first_date_time (self, _tmp0_, _tmp0__length1); -#line 846 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp1_; -#line 846 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 6594 "PhotoMetadata.c" -} - - -void -photo_metadata_set_digitized_date_time (PhotoMetadata* self, - MetadataDateTime* date_time, - PhotoMetadataSetOption option) -{ -#line 849 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 849 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail ((date_time == NULL) || IS_METADATA_DATE_TIME (date_time)); -#line 851 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (date_time != NULL) { -#line 6609 "PhotoMetadata.c" - gchar** _tmp0_; - gint _tmp0__length1; -#line 852 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_DIGITIZED_DATE_TIME_TAGS; -#line 852 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0__length1 = photo_metadata_DIGITIZED_DATE_TIME_TAGS_length1; -#line 852 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_all_date_time (self, _tmp0_, _tmp0__length1, date_time, option); -#line 6618 "PhotoMetadata.c" - } else { - gchar** _tmp1_; - gint _tmp1__length1; -#line 854 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_DIGITIZED_DATE_TIME_TAGS; -#line 854 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1__length1 = photo_metadata_DIGITIZED_DATE_TIME_TAGS_length1; -#line 854 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_remove_tags (self, _tmp1_, _tmp1__length1); -#line 6628 "PhotoMetadata.c" - } -} - - -static MetadataDateTime* -photo_metadata_real_get_creation_date_time (MediaMetadata* base) -{ - PhotoMetadata * self; - MetadataDateTime* result = NULL; - MetadataDateTime* creation = NULL; - MetadataDateTime* _tmp0_; - MetadataDateTime* _tmp1_; -#line 857 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_METADATA, PhotoMetadata); -#line 858 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_get_exposure_date_time (self); -#line 858 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - creation = _tmp0_; -#line 859 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = creation; -#line 859 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp1_ == NULL) { -#line 6651 "PhotoMetadata.c" - MetadataDateTime* _tmp2_; -#line 860 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = photo_metadata_get_digitized_date_time (self); -#line 860 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _metadata_date_time_unref0 (creation); -#line 860 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - creation = _tmp2_; -#line 6659 "PhotoMetadata.c" - } -#line 862 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = creation; -#line 862 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 6665 "PhotoMetadata.c" -} - - -static gpointer -_dimensions_dup0 (gpointer self) -{ -#line 893 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return self ? dimensions_dup (self) : NULL; -#line 6674 "PhotoMetadata.c" -} - - -Dimensions* -photo_metadata_get_pixel_dimensions (PhotoMetadata* self) -{ - Dimensions* result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - gchar** _tmp1_; - gint _tmp1__length1; -#line 879 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 881 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_WIDTH_TAGS; -#line 881 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0__length1 = photo_metadata_WIDTH_TAGS_length1; -#line 881 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_HEIGHT_TAGS; -#line 881 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1__length1 = photo_metadata_HEIGHT_TAGS_length1; -#line 881 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_assert (_tmp0__length1 == _tmp1__length1, "WIDTH_TAGS.length == HEIGHT_TAGS.length"); -#line 6698 "PhotoMetadata.c" - { - gint ctr = 0; -#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ctr = 0; -#line 6703 "PhotoMetadata.c" - { - gboolean _tmp2_ = FALSE; -#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = TRUE; -#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - while (TRUE) { -#line 6710 "PhotoMetadata.c" - gint _tmp4_; - gchar** _tmp5_; - gint _tmp5__length1; - glong width = 0L; - gchar** _tmp6_; - gint _tmp6__length1; - gint _tmp7_; - const gchar* _tmp8_; - glong _tmp9_ = 0L; - gboolean _tmp10_; - glong height = 0L; - gchar** _tmp11_; - gint _tmp11__length1; - gint _tmp12_; - const gchar* _tmp13_; - glong _tmp14_ = 0L; - gboolean _tmp15_; - glong _tmp16_; - glong _tmp17_; - Dimensions _tmp18_ = {0}; - Dimensions* _tmp19_; -#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!_tmp2_) { -#line 6734 "PhotoMetadata.c" - gint _tmp3_; -#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = ctr; -#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ctr = _tmp3_ + 1; -#line 6740 "PhotoMetadata.c" - } -#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = FALSE; -#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = ctr; -#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = photo_metadata_WIDTH_TAGS; -#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5__length1 = photo_metadata_WIDTH_TAGS_length1; -#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!(_tmp4_ < _tmp5__length1)) { -#line 882 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 6754 "PhotoMetadata.c" - } -#line 886 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = photo_metadata_WIDTH_TAGS; -#line 886 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6__length1 = photo_metadata_WIDTH_TAGS_length1; -#line 886 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = ctr; -#line 886 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = _tmp6_[_tmp7_]; -#line 886 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = photo_metadata_get_long (self, _tmp8_, &_tmp9_); -#line 886 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - width = _tmp9_; -#line 886 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!_tmp10_) { -#line 887 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - continue; -#line 6772 "PhotoMetadata.c" - } -#line 890 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = photo_metadata_HEIGHT_TAGS; -#line 890 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11__length1 = photo_metadata_HEIGHT_TAGS_length1; -#line 890 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = ctr; -#line 890 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = _tmp11_[_tmp12_]; -#line 890 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp15_ = photo_metadata_get_long (self, _tmp13_, &_tmp14_); -#line 890 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - height = _tmp14_; -#line 890 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!_tmp15_) { -#line 891 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - continue; -#line 6790 "PhotoMetadata.c" - } -#line 893 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp16_ = width; -#line 893 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp17_ = height; -#line 893 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - dimensions_init (&_tmp18_, (gint) _tmp16_, (gint) _tmp17_); -#line 893 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp19_ = _dimensions_dup0 (&_tmp18_); -#line 893 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp19_; -#line 893 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 6804 "PhotoMetadata.c" - } - } - } -#line 896 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 896 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 6812 "PhotoMetadata.c" -} - - -void -photo_metadata_set_pixel_dimensions (PhotoMetadata* self, - Dimensions* dim, - PhotoMetadataSetOption option) -{ -#line 899 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 900 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (dim != NULL) { -#line 6825 "PhotoMetadata.c" - gchar** _tmp0_; - gint _tmp0__length1; - gint _tmp1_; - gchar** _tmp2_; - gint _tmp2__length1; - gint _tmp3_; -#line 901 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_WIDTH_TAGS; -#line 901 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0__length1 = photo_metadata_WIDTH_TAGS_length1; -#line 901 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = (*dim).width; -#line 901 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_all_long (self, _tmp0_, _tmp0__length1, (glong) _tmp1_, option); -#line 902 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = photo_metadata_HEIGHT_TAGS; -#line 902 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2__length1 = photo_metadata_HEIGHT_TAGS_length1; -#line 902 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = (*dim).height; -#line 902 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_all_long (self, _tmp2_, _tmp2__length1, (glong) _tmp3_, option); -#line 6848 "PhotoMetadata.c" - } else { - gchar** _tmp4_; - gint _tmp4__length1; - gchar** _tmp5_; - gint _tmp5__length1; -#line 904 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = photo_metadata_WIDTH_TAGS; -#line 904 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4__length1 = photo_metadata_WIDTH_TAGS_length1; -#line 904 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_remove_tags (self, _tmp4_, _tmp4__length1); -#line 905 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = photo_metadata_HEIGHT_TAGS; -#line 905 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5__length1 = photo_metadata_HEIGHT_TAGS_length1; -#line 905 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_remove_tags (self, _tmp5_, _tmp5__length1); -#line 6866 "PhotoMetadata.c" - } -} - - -static gchar* -string_strip (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strstrip (_tmp1_); -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 6892 "PhotoMetadata.c" -} - - -static gboolean -string_contains (const gchar* self, - const gchar* needle) -{ - gboolean result = FALSE; - gchar* _tmp0_; -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, FALSE); -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, FALSE); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr ((gchar*) self, (gchar*) needle); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_ != NULL; -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 6912 "PhotoMetadata.c" -} - - -static gchar* -photo_metadata_real_get_title (MediaMetadata* base) -{ - PhotoMetadata * self; - gchar* result = NULL; - GeeList* _tmp0_ = NULL; - GeeList* titles = NULL; - GeeList* _tmp4_; - gchar* _tmp5_ = NULL; - gboolean _tmp6_ = FALSE; - GeeList* _tmp7_; - gchar* title = NULL; - gchar* _tmp13_; - const gchar* _tmp14_; - const gchar* _tmp17_ = NULL; - gboolean _tmp18_ = FALSE; - gboolean _tmp19_ = FALSE; - const gchar* _tmp20_; - gchar* _tmp24_; -#line 939 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_METADATA, PhotoMetadata); -#line 947 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (photo_metadata_has_tag (self, PHOTO_METADATA_IPHOTO_TITLE_TAG)) { -#line 6939 "PhotoMetadata.c" - GeeList* _tmp1_; -#line 948 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_get_string_multiple (self, PHOTO_METADATA_IPHOTO_TITLE_TAG); -#line 948 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_tmp0_); -#line 948 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = _tmp1_; -#line 6947 "PhotoMetadata.c" - } else { - gchar** _tmp2_; - gint _tmp2__length1; - GeeList* _tmp3_; -#line 949 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = photo_metadata_STANDARD_TITLE_TAGS; -#line 949 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2__length1 = photo_metadata_STANDARD_TITLE_TAGS_length1; -#line 949 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = photo_metadata_get_first_string_multiple (self, _tmp2_, _tmp2__length1); -#line 949 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_tmp0_); -#line 949 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = _tmp3_; -#line 6962 "PhotoMetadata.c" - } -#line 947 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = _g_object_ref0 (_tmp0_); -#line 947 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - titles = _tmp4_; -#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = titles; -#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp7_ != NULL) { -#line 6972 "PhotoMetadata.c" - GeeList* _tmp8_; - gint _tmp9_; - gint _tmp10_; -#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = titles; -#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = _tmp9_; -#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = _tmp10_ > 0; -#line 6984 "PhotoMetadata.c" - } else { -#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = FALSE; -#line 6988 "PhotoMetadata.c" - } -#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp6_) { -#line 6992 "PhotoMetadata.c" - GeeList* _tmp11_; - gpointer _tmp12_; -#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = titles; -#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = gee_list_get (_tmp11_, 0); -#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp5_); -#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = (gchar*) _tmp12_; -#line 7003 "PhotoMetadata.c" - } else { -#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp5_); -#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = NULL; -#line 7009 "PhotoMetadata.c" - } -#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = g_strdup (_tmp5_); -#line 954 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - title = _tmp13_; -#line 957 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_ = title; -#line 957 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp14_ != NULL) { -#line 7019 "PhotoMetadata.c" - const gchar* _tmp15_; - gchar* _tmp16_; -#line 958 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp15_ = title; -#line 958 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp16_ = string_strip (_tmp15_); -#line 958 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (title); -#line 958 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - title = _tmp16_; -#line 7030 "PhotoMetadata.c" - } -#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp20_ = title; -#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!is_string_empty (_tmp20_)) { -#line 7036 "PhotoMetadata.c" - const gchar* _tmp21_; -#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp21_ = title; -#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp19_ = !string_contains (_tmp21_, "\n"); -#line 7042 "PhotoMetadata.c" - } else { -#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp19_ = FALSE; -#line 7046 "PhotoMetadata.c" - } -#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp19_) { -#line 7050 "PhotoMetadata.c" - const gchar* _tmp22_; -#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp22_ = title; -#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp18_ = !string_contains (_tmp22_, "\r"); -#line 7056 "PhotoMetadata.c" - } else { -#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp18_ = FALSE; -#line 7060 "PhotoMetadata.c" - } -#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp18_) { -#line 7064 "PhotoMetadata.c" - const gchar* _tmp23_; -#line 962 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp23_ = title; -#line 962 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp17_ = _tmp23_; -#line 7070 "PhotoMetadata.c" - } else { -#line 962 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp17_ = NULL; -#line 7074 "PhotoMetadata.c" - } -#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp24_ = g_strdup (_tmp17_); -#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp24_; -#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (title); -#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp5_); -#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (titles); -#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_tmp0_); -#line 961 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 7090 "PhotoMetadata.c" -} - - -void -photo_metadata_set_title (PhotoMetadata* self, - const gchar* title, - PhotoMetadataSetOption option) -{ -#line 965 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 966 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!is_string_empty (title)) { -#line 967 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (photo_metadata_has_tag (self, PHOTO_METADATA_IPHOTO_TITLE_TAG)) { -#line 968 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_string (self, PHOTO_METADATA_IPHOTO_TITLE_TAG, title, PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 7107 "PhotoMetadata.c" - } else { - gchar** _tmp0_; - gint _tmp0__length1; -#line 970 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_STANDARD_TITLE_TAGS; -#line 970 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0__length1 = photo_metadata_STANDARD_TITLE_TAGS_length1; -#line 970 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_all_string (self, _tmp0_, _tmp0__length1, title, option); -#line 7117 "PhotoMetadata.c" - } - } else { - gchar** _tmp1_; - gint _tmp1__length1; -#line 972 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_STANDARD_TITLE_TAGS; -#line 972 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1__length1 = photo_metadata_STANDARD_TITLE_TAGS_length1; -#line 972 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_remove_tags (self, _tmp1_, _tmp1__length1); -#line 7128 "PhotoMetadata.c" - } -} - - -static gchar* -photo_metadata_real_get_comment (MediaMetadata* base) -{ - PhotoMetadata * self; - gchar* result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - gchar* _tmp1_; -#line 981 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PHOTO_METADATA, PhotoMetadata); -#line 982 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_COMMENT_TAGS; -#line 982 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0__length1 = photo_metadata_COMMENT_TAGS_length1; -#line 982 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_get_first_string_interpreted (self, _tmp0_, _tmp0__length1); -#line 982 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp1_; -#line 982 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 7153 "PhotoMetadata.c" -} - - -static Block6Data* -block6_data_ref (Block6Data* _data6_) -{ -#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_atomic_int_inc (&_data6_->_ref_count_); -#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return _data6_; -#line 7164 "PhotoMetadata.c" -} - - -static void -block6_data_unref (void * _userdata_) -{ - Block6Data* _data6_; - _data6_ = (Block6Data*) _userdata_; -#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (g_atomic_int_dec_and_test (&_data6_->_ref_count_)) { -#line 7175 "PhotoMetadata.c" - PhotoMetadata* self; -#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = _data6_->self; -#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_data6_->comment); -#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _media_metadata_unref0 (self); -#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_slice_free (Block6Data, _data6_); -#line 7185 "PhotoMetadata.c" - } -} - - -static void -___lambda10_ (Block6Data* _data6_, - const gchar* tag) -{ - PhotoMetadata* self; -#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = _data6_->self; -#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (tag != NULL); -#line 991 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_string (self, tag, _data6_->comment, PHOTO_METADATA_PREPARE_STRING_OPTIONS & (~PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF)); -#line 7201 "PhotoMetadata.c" -} - - -static void -____lambda10__photo_metadata_set_generic_value (const gchar* tag, - gpointer self) -{ -#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ___lambda10_ (self, tag); -#line 7211 "PhotoMetadata.c" -} - - -void -photo_metadata_set_comment (PhotoMetadata* self, - const gchar* comment, - PhotoMetadataSetOption option) -{ - Block6Data* _data6_; - gchar* _tmp0_; -#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data6_ = g_slice_new0 (Block6Data); -#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data6_->_ref_count_ = 1; -#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data6_->self = media_metadata_ref (self); -#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = g_strdup (comment); -#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_data6_->comment); -#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data6_->comment = _tmp0_; -#line 989 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!is_string_empty (_data6_->comment)) { -#line 7238 "PhotoMetadata.c" - gchar** _tmp1_; - gint _tmp1__length1; -#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_COMMENT_TAGS; -#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1__length1 = photo_metadata_COMMENT_TAGS_length1; -#line 990 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_all_generic (self, _tmp1_, _tmp1__length1, option, ____lambda10__photo_metadata_set_generic_value, _data6_); -#line 7247 "PhotoMetadata.c" - } else { - gchar** _tmp2_; - gint _tmp2__length1; -#line 995 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = photo_metadata_COMMENT_TAGS; -#line 995 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2__length1 = photo_metadata_COMMENT_TAGS_length1; -#line 995 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_remove_tags (self, _tmp2_, _tmp2__length1); -#line 7257 "PhotoMetadata.c" - } -#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - block6_data_unref (_data6_); -#line 985 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _data6_ = NULL; -#line 7263 "PhotoMetadata.c" -} - - -GeeSet* -photo_metadata_get_keywords (PhotoMetadata* self, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify) -{ - GeeSet* result = NULL; - GeeSet* keywords = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - GeeSet* _tmp21_ = NULL; - gboolean _tmp22_ = FALSE; - GeeSet* _tmp23_; - GeeSet* _tmp28_; -#line 1015 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 1016 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - keywords = NULL; -#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_KEYWORD_TAGS; -#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0__length1 = photo_metadata_KEYWORD_TAGS_length1; -#line 7289 "PhotoMetadata.c" - { - gchar** tag_collection = NULL; - gint tag_collection_length1 = 0; - gint _tag_collection_size_ = 0; - gint tag_it = 0; -#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection = _tmp0_; -#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag_collection_length1 = _tmp0__length1; -#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - for (tag_it = 0; tag_it < _tmp0__length1; tag_it = tag_it + 1) { -#line 7301 "PhotoMetadata.c" - gchar* _tmp1_; - gchar* tag = NULL; -#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = g_strdup (tag_collection[tag_it]); -#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - tag = _tmp1_; -#line 7308 "PhotoMetadata.c" - { - GeeCollection* values = NULL; - const gchar* _tmp2_; - GeeList* _tmp3_; - gboolean _tmp4_ = FALSE; - GeeCollection* _tmp5_; -#line 1018 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = tag; -#line 1018 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = photo_metadata_get_string_multiple (self, _tmp2_); -#line 1018 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - values = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection); -#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = values; -#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp5_ != NULL) { -#line 7325 "PhotoMetadata.c" - GeeCollection* _tmp6_; - gint _tmp7_; - gint _tmp8_; -#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = values; -#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = gee_collection_get_size (_tmp6_); -#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = _tmp7_; -#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = _tmp8_ > 0; -#line 7337 "PhotoMetadata.c" - } else { -#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = FALSE; -#line 7341 "PhotoMetadata.c" - } -#line 1019 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp4_) { -#line 7345 "PhotoMetadata.c" - GeeSet* _tmp9_; -#line 1020 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = keywords; -#line 1020 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp9_ == NULL) { -#line 7351 "PhotoMetadata.c" - GCompareDataFunc _tmp10_; - void* _tmp10__target; - GDestroyNotify _tmp10__target_destroy_notify; - GeeSet* _tmp11_; -#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = compare_func; -#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10__target = compare_func_target; -#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10__target_destroy_notify = compare_func_target_destroy_notify; -#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func = NULL; -#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target = NULL; -#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target_destroy_notify = NULL; -#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = photo_metadata_create_string_set (self, _tmp10_, _tmp10__target, _tmp10__target_destroy_notify); -#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (keywords); -#line 1021 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - keywords = _tmp11_; -#line 7374 "PhotoMetadata.c" - } - { - GeeIterator* _current_value_it = NULL; - GeeCollection* _tmp12_; - GeeIterator* _tmp13_; -#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = values; -#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _current_value_it = _tmp13_; -#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - while (TRUE) { -#line 7388 "PhotoMetadata.c" - GeeIterator* _tmp14_; - gchar* current_value = NULL; - GeeIterator* _tmp15_; - gpointer _tmp16_; - GeeSet* _tmp17_; - const gchar* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; -#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_ = _current_value_it; -#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!gee_iterator_next (_tmp14_)) { -#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 7403 "PhotoMetadata.c" - } -#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp15_ = _current_value_it; -#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp16_ = gee_iterator_get (_tmp15_); -#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - current_value = (gchar*) _tmp16_; -#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp17_ = keywords; -#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp18_ = current_value; -#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp19_ = hierarchical_tag_utilities_make_flat_tag_safe (_tmp18_); -#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp20_ = _tmp19_; -#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection), _tmp20_); -#line 1024 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp20_); -#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (current_value); -#line 7425 "PhotoMetadata.c" - } -#line 1023 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_current_value_it); -#line 7429 "PhotoMetadata.c" - } - } -#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (values); -#line 1017 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (tag); -#line 7436 "PhotoMetadata.c" - } - } - } -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp23_ = keywords; -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp23_ != NULL) { -#line 7444 "PhotoMetadata.c" - GeeSet* _tmp24_; - gint _tmp25_; - gint _tmp26_; -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp24_ = keywords; -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp25_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp26_ = _tmp25_; -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp22_ = _tmp26_ > 0; -#line 7456 "PhotoMetadata.c" - } else { -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp22_ = FALSE; -#line 7460 "PhotoMetadata.c" - } -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp22_) { -#line 7464 "PhotoMetadata.c" - GeeSet* _tmp27_; -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp27_ = keywords; -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp21_ = _tmp27_; -#line 7470 "PhotoMetadata.c" - } else { -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp21_ = NULL; -#line 7474 "PhotoMetadata.c" - } -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp28_ = _g_object_ref0 (_tmp21_); -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp28_; -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (keywords); -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL); -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func = NULL; -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target = NULL; -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - compare_func_target_destroy_notify = NULL; -#line 1028 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 7492 "PhotoMetadata.c" -} - - -static gpointer -_hierarchical_keyword_field_ref0 (gpointer self) -{ -#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return self ? hierarchical_keyword_field_ref (self) : NULL; -#line 7501 "PhotoMetadata.c" -} - - -static gchar* -string_replace (const gchar* self, - const gchar* old, - const gchar* replacement) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 7524 "PhotoMetadata.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 7528 "PhotoMetadata.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 7534 "PhotoMetadata.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 7538 "PhotoMetadata.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 7542 "PhotoMetadata.c" - gchar* _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = g_strdup (self); -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 7550 "PhotoMetadata.c" - } - { - GRegex* regex = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GRegex* _tmp5_; - GRegex* _tmp6_; - gchar* _tmp7_ = NULL; - GRegex* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_regex_escape_string (old, -1); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp5_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp4_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - regex = _tmp6_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 7578 "PhotoMetadata.c" - goto __catch31_g_regex_error; - } -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 7587 "PhotoMetadata.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = regex; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp9_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 7601 "PhotoMetadata.c" - goto __catch31_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 7612 "PhotoMetadata.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = _tmp7_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = NULL; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp10_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp7_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 7626 "PhotoMetadata.c" - } - goto __finally31; - __catch31_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 7640 "PhotoMetadata.c" - } - __finally31: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 7651 "PhotoMetadata.c" - } -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 7676 "PhotoMetadata.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 7685 "PhotoMetadata.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 7706 "PhotoMetadata.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 7710 "PhotoMetadata.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 7716 "PhotoMetadata.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 7726 "PhotoMetadata.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 7730 "PhotoMetadata.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 7738 "PhotoMetadata.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 7745 "PhotoMetadata.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 7749 "PhotoMetadata.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 7755 "PhotoMetadata.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 7767 "PhotoMetadata.c" -} - - -static void -photo_metadata_internal_set_hierarchical_keywords (PhotoMetadata* self, - HierarchicalTagIndex* index) -{ - HierarchicalKeywordField** _tmp0_; - gint _tmp0__length1; - HierarchicalKeywordField** _tmp4_; - gint _tmp4__length1; -#line 1031 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 1031 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail ((index == NULL) || IS_HIERARCHICAL_TAG_INDEX (index)); -#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS; -#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1; -#line 7787 "PhotoMetadata.c" - { - HierarchicalKeywordField** current_field_collection = NULL; - gint current_field_collection_length1 = 0; - gint _current_field_collection_size_ = 0; - gint current_field_it = 0; -#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - current_field_collection = _tmp0_; -#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - current_field_collection_length1 = _tmp0__length1; -#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - for (current_field_it = 0; current_field_it < _tmp0__length1; current_field_it = current_field_it + 1) { -#line 7799 "PhotoMetadata.c" - HierarchicalKeywordField* _tmp1_; - HierarchicalKeywordField* current_field = NULL; -#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = _hierarchical_keyword_field_ref0 (current_field_collection[current_field_it]); -#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - current_field = _tmp1_; -#line 7806 "PhotoMetadata.c" - { - HierarchicalKeywordField* _tmp2_; - const gchar* _tmp3_; -#line 1033 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = current_field; -#line 1033 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = _tmp2_->field_name; -#line 1033 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_remove_tag (self, _tmp3_); -#line 1032 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _hierarchical_keyword_field_unref0 (current_field); -#line 7818 "PhotoMetadata.c" - } - } - } -#line 1035 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (index == NULL) { -#line 1036 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return; -#line 7826 "PhotoMetadata.c" - } -#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS; -#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1; -#line 7832 "PhotoMetadata.c" - { - HierarchicalKeywordField** current_field_collection = NULL; - gint current_field_collection_length1 = 0; - gint _current_field_collection_size_ = 0; - gint current_field_it = 0; -#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - current_field_collection = _tmp4_; -#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - current_field_collection_length1 = _tmp4__length1; -#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - for (current_field_it = 0; current_field_it < _tmp4__length1; current_field_it = current_field_it + 1) { -#line 7844 "PhotoMetadata.c" - HierarchicalKeywordField* _tmp5_; - HierarchicalKeywordField* current_field = NULL; -#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = _hierarchical_keyword_field_ref0 (current_field_collection[current_field_it]); -#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - current_field = _tmp5_; -#line 7851 "PhotoMetadata.c" - { - HierarchicalKeywordField* _tmp6_; - gboolean _tmp7_; - GeeSet* writeable_set = NULL; - GeeTreeSet* _tmp8_; - HierarchicalKeywordField* _tmp26_; - const gchar* _tmp27_; - GeeSet* _tmp28_; -#line 1039 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = current_field; -#line 1039 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = _tmp6_->is_writeable; -#line 1039 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!_tmp7_) { -#line 1040 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _hierarchical_keyword_field_unref0 (current_field); -#line 1040 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - continue; -#line 7870 "PhotoMetadata.c" - } -#line 1042 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 1042 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - writeable_set = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_SET, GeeSet); -#line 7876 "PhotoMetadata.c" - { - GeeIterator* _current_path_it = NULL; - GeeCollection* _tmp9_; - GeeCollection* _tmp10_; - GeeIterator* _tmp11_; - GeeIterator* _tmp12_; -#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = hierarchical_tag_index_get_all_paths (index); -#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = _tmp9_; -#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = _tmp11_; -#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_tmp10_); -#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _current_path_it = _tmp12_; -#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - while (TRUE) { -#line 7897 "PhotoMetadata.c" - GeeIterator* _tmp13_; - gchar* current_path = NULL; - GeeIterator* _tmp14_; - gpointer _tmp15_; - gchar* writeable_path = NULL; - const gchar* _tmp16_; - HierarchicalKeywordField* _tmp17_; - const gchar* _tmp18_; - gchar* _tmp19_; - HierarchicalKeywordField* _tmp20_; - gboolean _tmp21_; - GeeSet* _tmp24_; - const gchar* _tmp25_; -#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = _current_path_it; -#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!gee_iterator_next (_tmp13_)) { -#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 7917 "PhotoMetadata.c" - } -#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_ = _current_path_it; -#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp15_ = gee_iterator_get (_tmp14_); -#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - current_path = (gchar*) _tmp15_; -#line 1045 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp16_ = current_path; -#line 1045 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp17_ = current_field; -#line 1045 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp18_ = _tmp17_->path_separator; -#line 1045 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp19_ = string_replace (_tmp16_, TAG_PATH_SEPARATOR_STRING, _tmp18_); -#line 1045 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - writeable_path = _tmp19_; -#line 1047 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp20_ = current_field; -#line 1047 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp21_ = _tmp20_->wants_leading_separator; -#line 1047 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!_tmp21_) { -#line 7941 "PhotoMetadata.c" - const gchar* _tmp22_; - gchar* _tmp23_; -#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp22_ = writeable_path; -#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp23_ = string_substring (_tmp22_, (glong) 1, (glong) -1); -#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (writeable_path); -#line 1048 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - writeable_path = _tmp23_; -#line 7952 "PhotoMetadata.c" - } -#line 1050 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp24_ = writeable_set; -#line 1050 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp25_ = writeable_path; -#line 1050 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection), _tmp25_); -#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (writeable_path); -#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (current_path); -#line 7964 "PhotoMetadata.c" - } -#line 1044 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_current_path_it); -#line 7968 "PhotoMetadata.c" - } -#line 1053 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp26_ = current_field; -#line 1053 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp27_ = _tmp26_->field_name; -#line 1053 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp28_ = writeable_set; -#line 1053 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_string_multiple (self, _tmp27_, G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (writeable_set); -#line 1038 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _hierarchical_keyword_field_unref0 (current_field); -#line 7982 "PhotoMetadata.c" - } - } - } -} - - -void -photo_metadata_set_keywords (PhotoMetadata* self, - GeeCollection* keywords, - PhotoMetadataSetOption option) -{ - HierarchicalTagIndex* htag_index = NULL; - HierarchicalTagIndex* _tmp0_; - GeeSet* flat_keywords = NULL; - GeeTreeSet* _tmp1_; -#line 1057 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 1057 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail ((keywords == NULL) || GEE_IS_COLLECTION (keywords)); -#line 1058 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = hierarchical_tag_index_new (); -#line 1058 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - htag_index = _tmp0_; -#line 1059 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 1059 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - flat_keywords = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SET, GeeSet); -#line 1061 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (keywords != NULL) { -#line 8012 "PhotoMetadata.c" - GeeSet* _tmp19_; - HierarchicalTagIndex* _tmp20_; - GeeCollection* _tmp21_; - GeeCollection* _tmp22_; - { - GeeIterator* _keyword_it = NULL; - GeeIterator* _tmp2_; -#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (keywords, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _keyword_it = _tmp2_; -#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - while (TRUE) { -#line 8026 "PhotoMetadata.c" - GeeIterator* _tmp3_; - gchar* keyword = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - const gchar* _tmp6_; -#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = _keyword_it; -#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 8038 "PhotoMetadata.c" - } -#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = _keyword_it; -#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - keyword = (gchar*) _tmp5_; -#line 1063 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = keyword; -#line 1063 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (g_str_has_prefix (_tmp6_, TAG_PATH_SEPARATOR_STRING)) { -#line 8050 "PhotoMetadata.c" - GeeCollection* path_components = NULL; - const gchar* _tmp7_; - GeeList* _tmp8_; -#line 1064 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = keyword; -#line 1064 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = hierarchical_tag_utilities_enumerate_path_components (_tmp7_); -#line 1064 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - path_components = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection); -#line 8060 "PhotoMetadata.c" - { - GeeIterator* _component_it = NULL; - GeeCollection* _tmp9_; - GeeIterator* _tmp10_; -#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = path_components; -#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _component_it = _tmp10_; -#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - while (TRUE) { -#line 8073 "PhotoMetadata.c" - GeeIterator* _tmp11_; - gchar* component = NULL; - GeeIterator* _tmp12_; - gpointer _tmp13_; - HierarchicalTagIndex* _tmp14_; - const gchar* _tmp15_; - const gchar* _tmp16_; -#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = _component_it; -#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!gee_iterator_next (_tmp11_)) { -#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 8087 "PhotoMetadata.c" - } -#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = _component_it; -#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = gee_iterator_get (_tmp12_); -#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - component = (gchar*) _tmp13_; -#line 1067 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_ = htag_index; -#line 1067 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp15_ = component; -#line 1067 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp16_ = keyword; -#line 1067 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - hierarchical_tag_index_add_path (_tmp14_, _tmp15_, _tmp16_); -#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (component); -#line 8105 "PhotoMetadata.c" - } -#line 1066 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_component_it); -#line 8109 "PhotoMetadata.c" - } -#line 1063 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (path_components); -#line 8113 "PhotoMetadata.c" - } else { - GeeSet* _tmp17_; - const gchar* _tmp18_; -#line 1069 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp17_ = flat_keywords; -#line 1069 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp18_ = keyword; -#line 1069 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_COLLECTION, GeeCollection), _tmp18_); -#line 8123 "PhotoMetadata.c" - } -#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (keyword); -#line 8127 "PhotoMetadata.c" - } -#line 1062 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_keyword_it); -#line 8131 "PhotoMetadata.c" - } -#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp19_ = flat_keywords; -#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp20_ = htag_index; -#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp21_ = hierarchical_tag_index_get_all_tags (_tmp20_); -#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp22_ = _tmp21_; -#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, GEE_TYPE_COLLECTION, GeeCollection), _tmp22_); -#line 1073 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_tmp22_); -#line 8145 "PhotoMetadata.c" - } -#line 1076 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (keywords != NULL) { -#line 8149 "PhotoMetadata.c" - gchar** _tmp23_; - gint _tmp23__length1; - GeeSet* _tmp24_; - HierarchicalTagIndex* _tmp25_; -#line 1077 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp23_ = photo_metadata_KEYWORD_TAGS; -#line 1077 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp23__length1 = photo_metadata_KEYWORD_TAGS_length1; -#line 1077 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp24_ = flat_keywords; -#line 1077 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_all_string_multiple (self, _tmp23_, _tmp23__length1, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_COLLECTION, GeeCollection), option); -#line 1078 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp25_ = htag_index; -#line 1078 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_internal_set_hierarchical_keywords (self, _tmp25_); -#line 8166 "PhotoMetadata.c" - } else { - gchar** _tmp26_; - gint _tmp26__length1; -#line 1080 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp26_ = photo_metadata_KEYWORD_TAGS; -#line 1080 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp26__length1 = photo_metadata_KEYWORD_TAGS_length1; -#line 1080 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_remove_tags (self, _tmp26_, _tmp26__length1); -#line 1081 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_internal_set_hierarchical_keywords (self, NULL); -#line 8178 "PhotoMetadata.c" - } -#line 1057 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (flat_keywords); -#line 1057 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _hierarchical_tag_index_unref0 (htag_index); -#line 8184 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_has_hierarchical_keywords (PhotoMetadata* self) -{ - gboolean result = FALSE; - HierarchicalKeywordField** _tmp0_; - gint _tmp0__length1; -#line 1085 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS; -#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1; -#line 8200 "PhotoMetadata.c" - { - HierarchicalKeywordField** field_collection = NULL; - gint field_collection_length1 = 0; - gint _field_collection_size_ = 0; - gint field_it = 0; -#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - field_collection = _tmp0_; -#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - field_collection_length1 = _tmp0__length1; -#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - for (field_it = 0; field_it < _tmp0__length1; field_it = field_it + 1) { -#line 8212 "PhotoMetadata.c" - HierarchicalKeywordField* _tmp1_; - HierarchicalKeywordField* field = NULL; -#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = _hierarchical_keyword_field_ref0 (field_collection[field_it]); -#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - field = _tmp1_; -#line 8219 "PhotoMetadata.c" - { - GeeCollection* values = NULL; - HierarchicalKeywordField* _tmp2_; - const gchar* _tmp3_; - GeeList* _tmp4_; - gboolean _tmp5_ = FALSE; - GeeCollection* _tmp6_; -#line 1087 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = field; -#line 1087 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = _tmp2_->field_name; -#line 1087 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = photo_metadata_get_string_multiple (self, _tmp3_); -#line 1087 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - values = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection); -#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = values; -#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp6_ != NULL) { -#line 8239 "PhotoMetadata.c" - GeeCollection* _tmp7_; - gint _tmp8_; - gint _tmp9_; -#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = values; -#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = gee_collection_get_size (_tmp7_); -#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = _tmp8_; -#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = _tmp9_ > 0; -#line 8251 "PhotoMetadata.c" - } else { -#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = FALSE; -#line 8255 "PhotoMetadata.c" - } -#line 1089 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp5_) { -#line 1090 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = TRUE; -#line 1090 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (values); -#line 1090 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _hierarchical_keyword_field_unref0 (field); -#line 1090 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 8267 "PhotoMetadata.c" - } -#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (values); -#line 1086 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _hierarchical_keyword_field_unref0 (field); -#line 8273 "PhotoMetadata.c" - } - } - } -#line 1093 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = FALSE; -#line 1093 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 8281 "PhotoMetadata.c" -} - - -GeeSet* -photo_metadata_get_hierarchical_keywords (PhotoMetadata* self) -{ - GeeSet* result = NULL; - GeeSet* h_keywords = NULL; - GeeSet* _tmp0_; - HierarchicalKeywordField** _tmp1_; - gint _tmp1__length1; - GError * _inner_error_ = NULL; -#line 1096 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 1097 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_assert (photo_metadata_has_hierarchical_keywords (self), "has_hierarchical_keywords()"); -#line 1099 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_create_string_set (self, NULL, NULL, NULL); -#line 1099 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - h_keywords = _tmp0_; -#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_HIERARCHICAL_KEYWORD_TAGS; -#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1__length1 = photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1; -#line 8306 "PhotoMetadata.c" - { - HierarchicalKeywordField** field_collection = NULL; - gint field_collection_length1 = 0; - gint _field_collection_size_ = 0; - gint field_it = 0; -#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - field_collection = _tmp1_; -#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - field_collection_length1 = _tmp1__length1; -#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - for (field_it = 0; field_it < _tmp1__length1; field_it = field_it + 1) { -#line 8318 "PhotoMetadata.c" - HierarchicalKeywordField* _tmp2_; - HierarchicalKeywordField* field = NULL; -#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = _hierarchical_keyword_field_ref0 (field_collection[field_it]); -#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - field = _tmp2_; -#line 8325 "PhotoMetadata.c" - { - GeeCollection* values = NULL; - HierarchicalKeywordField* _tmp3_; - const gchar* _tmp4_; - GeeList* _tmp5_; - gboolean _tmp6_ = FALSE; - GeeCollection* _tmp7_; - GeeArrayList* transformed_values = NULL; - GeeArrayList* _tmp11_; -#line 1102 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = field; -#line 1102 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = _tmp3_->field_name; -#line 1102 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = photo_metadata_get_string_multiple (self, _tmp4_); -#line 1102 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - values = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection); -#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = values; -#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp7_ == NULL) { -#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = TRUE; -#line 8349 "PhotoMetadata.c" - } else { - GeeCollection* _tmp8_; - gint _tmp9_; - gint _tmp10_; -#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = values; -#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = gee_collection_get_size (_tmp8_); -#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = _tmp9_; -#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = _tmp10_ < 1; -#line 8362 "PhotoMetadata.c" - } -#line 1104 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp6_) { -#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (values); -#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _hierarchical_keyword_field_unref0 (field); -#line 1105 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - continue; -#line 8372 "PhotoMetadata.c" - } -#line 1107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 1107 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - transformed_values = _tmp11_; -#line 8378 "PhotoMetadata.c" - { - GeeIterator* _current_value_it = NULL; - GeeCollection* _tmp12_; - GeeIterator* _tmp13_; -#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = values; -#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _current_value_it = _tmp13_; -#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - while (TRUE) { -#line 8391 "PhotoMetadata.c" - GeeIterator* _tmp14_; - gchar* current_value = NULL; - GeeIterator* _tmp15_; - gpointer _tmp16_; -#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_ = _current_value_it; -#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!gee_iterator_next (_tmp14_)) { -#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 8402 "PhotoMetadata.c" - } -#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp15_ = _current_value_it; -#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp16_ = gee_iterator_get (_tmp15_); -#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - current_value = (gchar*) _tmp16_; -#line 8410 "PhotoMetadata.c" - { - GeeList* transformed = NULL; - HierarchicalKeywordField* _tmp17_; - KeywordTransformer* _tmp18_; - const gchar* _tmp19_; - GeeList* _tmp20_; - GeeArrayList* _tmp21_; - GeeList* _tmp22_; -#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp17_ = field; -#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp18_ = _tmp17_->transformer; -#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp19_ = current_value; -#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp20_ = keyword_transformer_transform (_tmp18_, _tmp19_, &_inner_error_); -#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - transformed = _tmp20_; -#line 1110 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8431 "PhotoMetadata.c" - goto __catch32_g_error; - } -#line 1111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp21_ = transformed_values; -#line 1111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp22_ = transformed; -#line 1111 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gee_array_list_add_all (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (transformed); -#line 8442 "PhotoMetadata.c" - } - goto __finally32; - __catch32_g_error: - { - GError* _error_ = NULL; - const gchar* _tmp23_; - GError* _tmp24_; - const gchar* _tmp25_; -#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _error_ = _inner_error_; -#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _inner_error_ = NULL; -#line 1113 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp23_ = current_value; -#line 1113 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp24_ = _error_; -#line 1113 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp25_ = _tmp24_->message; -#line 1113 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_critical ("PhotoMetadata.vala:1113: Failed to transform tag value %s: %s", _tmp23_, _tmp25_); -#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_error_free0 (_error_); -#line 8465 "PhotoMetadata.c" - } - __finally32: -#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (current_value); -#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_current_value_it); -#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (transformed_values); -#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (values); -#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _hierarchical_keyword_field_unref0 (field); -#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (h_keywords); -#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_clear_error (&_inner_error_); -#line 1109 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return NULL; -#line 8488 "PhotoMetadata.c" - } -#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (current_value); -#line 8492 "PhotoMetadata.c" - } -#line 1108 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_current_value_it); -#line 8496 "PhotoMetadata.c" - } - { - GeeArrayList* _current_value_list = NULL; - GeeArrayList* _tmp26_; - GeeArrayList* _tmp27_; - gint _current_value_size = 0; - GeeArrayList* _tmp28_; - gint _tmp29_; - gint _tmp30_; - gint _current_value_index = 0; -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp26_ = transformed_values; -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp27_ = _g_object_ref0 (_tmp26_); -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _current_value_list = _tmp27_; -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp28_ = _current_value_list; -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp29_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp30_ = _tmp29_; -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _current_value_size = _tmp30_; -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _current_value_index = -1; -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - while (TRUE) { -#line 8525 "PhotoMetadata.c" - gint _tmp31_; - gint _tmp32_; - gint _tmp33_; - gchar* current_value = NULL; - GeeArrayList* _tmp34_; - gint _tmp35_; - gpointer _tmp36_; - gchar* canonicalized = NULL; - const gchar* _tmp37_; - HierarchicalKeywordField* _tmp38_; - const gchar* _tmp39_; - gchar* _tmp40_; - const gchar* _tmp41_; -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp31_ = _current_value_index; -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _current_value_index = _tmp31_ + 1; -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp32_ = _current_value_index; -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp33_ = _current_value_size; -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!(_tmp32_ < _tmp33_)) { -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 8551 "PhotoMetadata.c" - } -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp34_ = _current_value_list; -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp35_ = _current_value_index; -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp36_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp35_); -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - current_value = (gchar*) _tmp36_; -#line 1120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp37_ = current_value; -#line 1120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp38_ = field; -#line 1120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp39_ = _tmp38_->path_separator; -#line 1120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp40_ = hierarchical_tag_utilities_canonicalize (_tmp37_, _tmp39_); -#line 1120 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - canonicalized = _tmp40_; -#line 1124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp41_ = canonicalized; -#line 1124 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp41_ != NULL) { -#line 8575 "PhotoMetadata.c" - GeeSet* _tmp42_; - const gchar* _tmp43_; -#line 1125 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp42_ = h_keywords; -#line 1125 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp43_ = canonicalized; -#line 1125 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, GEE_TYPE_COLLECTION, GeeCollection), _tmp43_); -#line 8584 "PhotoMetadata.c" - } -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (canonicalized); -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (current_value); -#line 8590 "PhotoMetadata.c" - } -#line 1119 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_current_value_list); -#line 8594 "PhotoMetadata.c" - } -#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (transformed_values); -#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (values); -#line 1101 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _hierarchical_keyword_field_unref0 (field); -#line 8602 "PhotoMetadata.c" - } - } - } -#line 1129 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = h_keywords; -#line 1129 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 8610 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_has_orientation (PhotoMetadata* self) -{ - gboolean result = FALSE; - GExiv2Metadata* _tmp0_; -#line 1132 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 1133 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 1133 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = gexiv2_metadata_get_orientation (_tmp0_) == GEXIV2_ORIENTATION_UNSPECIFIED; -#line 1133 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 8627 "PhotoMetadata.c" -} - - -Orientation -photo_metadata_get_orientation (PhotoMetadata* self) -{ - Orientation result = 0; - GExiv2Orientation orientation = 0; - GExiv2Metadata* _tmp0_; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - GExiv2Orientation _tmp3_; -#line 1137 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), 0); -#line 1140 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 1140 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - orientation = gexiv2_metadata_get_orientation (_tmp0_); -#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = orientation; -#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp3_ == GEXIV2_ORIENTATION_UNSPECIFIED) { -#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = TRUE; -#line 8652 "PhotoMetadata.c" - } else { - GExiv2Orientation _tmp4_; -#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = orientation; -#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = _tmp4_ < ORIENTATION_MIN; -#line 8659 "PhotoMetadata.c" - } -#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp2_) { -#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = TRUE; -#line 8665 "PhotoMetadata.c" - } else { - GExiv2Orientation _tmp5_; -#line 1142 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = orientation; -#line 1142 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = _tmp5_ > ORIENTATION_MAX; -#line 8672 "PhotoMetadata.c" - } -#line 1141 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp1_) { -#line 1143 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = ORIENTATION_TOP_LEFT; -#line 1143 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 8680 "PhotoMetadata.c" - } else { - GExiv2Orientation _tmp6_; -#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = orientation; -#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = (Orientation) _tmp6_; -#line 1145 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 8689 "PhotoMetadata.c" - } -} - - -void -photo_metadata_set_orientation (PhotoMetadata* self, - Orientation orientation) -{ - GExiv2Metadata* _tmp0_; -#line 1148 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 1150 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 1150 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - gexiv2_metadata_set_orientation (_tmp0_, (GExiv2Orientation) orientation); -#line 8705 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_get_gps (PhotoMetadata* self, - gdouble* longitude, - gchar* * long_ref, - gdouble* latitude, - gchar* * lat_ref, - gdouble* altitude) -{ - gdouble _vala_longitude = 0.0; - gchar* _vala_long_ref = NULL; - gdouble _vala_latitude = 0.0; - gchar* _vala_lat_ref = NULL; - gdouble _vala_altitude = 0.0; - gboolean result = FALSE; - GExiv2Metadata* _tmp0_; - gdouble _tmp1_ = 0.0; - gdouble _tmp2_ = 0.0; - gdouble _tmp3_ = 0.0; - gboolean _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 1153 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 1155 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->priv->exiv2; -#line 1155 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = gexiv2_metadata_get_gps_info (_tmp0_, &_tmp1_, &_tmp2_, &_tmp3_); -#line 1155 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_longitude = _tmp1_; -#line 1155 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_latitude = _tmp2_; -#line 1155 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_altitude = _tmp3_; -#line 1155 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!_tmp4_) { -#line 1156 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_vala_long_ref); -#line 1156 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_long_ref = NULL; -#line 1157 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_vala_lat_ref); -#line 1157 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_lat_ref = NULL; -#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = FALSE; -#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (longitude) { -#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *longitude = _vala_longitude; -#line 8758 "PhotoMetadata.c" - } -#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (long_ref) { -#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *long_ref = _vala_long_ref; -#line 8764 "PhotoMetadata.c" - } else { -#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_vala_long_ref); -#line 8768 "PhotoMetadata.c" - } -#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (latitude) { -#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *latitude = _vala_latitude; -#line 8774 "PhotoMetadata.c" - } -#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (lat_ref) { -#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *lat_ref = _vala_lat_ref; -#line 8780 "PhotoMetadata.c" - } else { -#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_vala_lat_ref); -#line 8784 "PhotoMetadata.c" - } -#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (altitude) { -#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *altitude = _vala_altitude; -#line 8790 "PhotoMetadata.c" - } -#line 1159 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 8794 "PhotoMetadata.c" - } -#line 1162 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = photo_metadata_get_string (self, "Exif.GPSInfo.GPSLongitudeRef", PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1162 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_vala_long_ref); -#line 1162 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_long_ref = _tmp5_; -#line 1163 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = photo_metadata_get_string (self, "Exif.GPSInfo.GPSLatitudeRef", PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1163 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_vala_lat_ref); -#line 1163 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_lat_ref = _tmp6_; -#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = TRUE; -#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (longitude) { -#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *longitude = _vala_longitude; -#line 8814 "PhotoMetadata.c" - } -#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (long_ref) { -#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *long_ref = _vala_long_ref; -#line 8820 "PhotoMetadata.c" - } else { -#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_vala_long_ref); -#line 8824 "PhotoMetadata.c" - } -#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (latitude) { -#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *latitude = _vala_latitude; -#line 8830 "PhotoMetadata.c" - } -#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (lat_ref) { -#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *lat_ref = _vala_lat_ref; -#line 8836 "PhotoMetadata.c" - } else { -#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_vala_lat_ref); -#line 8840 "PhotoMetadata.c" - } -#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (altitude) { -#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *altitude = _vala_altitude; -#line 8846 "PhotoMetadata.c" - } -#line 1165 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 8850 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_get_exposure (PhotoMetadata* self, - MetadataRational* exposure) -{ - MetadataRational _vala_exposure = {0}; - gboolean result = FALSE; - MetadataRational _tmp0_ = {0}; - gboolean _tmp1_; -#line 1168 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 1169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_get_rational (self, "Exif.Photo.ExposureTime", &_tmp0_); -#line 1169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_exposure = _tmp0_; -#line 1169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp1_; -#line 1169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (exposure) { -#line 1169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *exposure = _vala_exposure; -#line 8874 "PhotoMetadata.c" - } -#line 1169 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 8878 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_get_exposure_string (PhotoMetadata* self) -{ - gchar* result = NULL; - MetadataRational exposure_time = {0}; - MetadataRational _tmp0_ = {0}; - gboolean _tmp1_; - gchar* _tmp2_; -#line 1172 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 1174 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_get_rational (self, "Exif.Photo.ExposureTime", &_tmp0_); -#line 1174 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - exposure_time = _tmp0_; -#line 1174 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!_tmp1_) { -#line 1175 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 1175 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 8902 "PhotoMetadata.c" - } -#line 1177 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!metadata_rational_is_valid (&exposure_time)) { -#line 1178 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 1178 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 8910 "PhotoMetadata.c" - } -#line 1180 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = photo_metadata_get_string_interpreted (self, "Exif.Photo.ExposureTime", PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1180 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp2_; -#line 1180 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 8918 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_get_iso (PhotoMetadata* self, - glong* iso) -{ - glong _vala_iso = 0L; - gboolean result = FALSE; - gboolean fetched_ok = FALSE; - glong _tmp0_ = 0L; - gboolean _tmp1_; - gboolean _tmp2_; - gboolean _tmp3_ = FALSE; - glong _tmp4_; -#line 1183 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 1184 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_get_long (self, "Exif.Photo.ISOSpeedRatings", &_tmp0_); -#line 1184 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_iso = _tmp0_; -#line 1184 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - fetched_ok = _tmp1_; -#line 1186 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = fetched_ok; -#line 1186 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp2_ == FALSE) { -#line 1187 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = FALSE; -#line 1187 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (iso) { -#line 1187 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *iso = _vala_iso; -#line 8952 "PhotoMetadata.c" - } -#line 1187 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 8956 "PhotoMetadata.c" - } -#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = _vala_iso; -#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp4_ < ((glong) 6)) { -#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = TRUE; -#line 8964 "PhotoMetadata.c" - } else { - glong _tmp5_; -#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = _vala_iso; -#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = _tmp5_ > ((glong) 409600); -#line 8971 "PhotoMetadata.c" - } -#line 1191 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp3_) { -#line 1192 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = FALSE; -#line 1192 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (iso) { -#line 1192 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *iso = _vala_iso; -#line 8981 "PhotoMetadata.c" - } -#line 1192 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 8985 "PhotoMetadata.c" - } -#line 1194 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = TRUE; -#line 1194 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (iso) { -#line 1194 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *iso = _vala_iso; -#line 8993 "PhotoMetadata.c" - } -#line 1194 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 8997 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_get_iso_string (PhotoMetadata* self) -{ - gchar* result = NULL; - glong iso = 0L; - glong _tmp0_ = 0L; - gboolean _tmp1_; - gchar* _tmp2_; -#line 1197 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 1199 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_get_iso (self, &_tmp0_); -#line 1199 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - iso = _tmp0_; -#line 1199 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!_tmp1_) { -#line 1200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 1200 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9021 "PhotoMetadata.c" - } -#line 1202 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = photo_metadata_get_string_interpreted (self, "Exif.Photo.ISOSpeedRatings", PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1202 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp2_; -#line 1202 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9029 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_get_aperture (PhotoMetadata* self, - MetadataRational* aperture) -{ - MetadataRational _vala_aperture = {0}; - gboolean result = FALSE; - MetadataRational _tmp0_ = {0}; - gboolean _tmp1_; -#line 1205 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 1206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_get_rational (self, "Exif.Photo.FNumber", &_tmp0_); -#line 1206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_aperture = _tmp0_; -#line 1206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp1_; -#line 1206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (aperture) { -#line 1206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *aperture = _vala_aperture; -#line 9053 "PhotoMetadata.c" - } -#line 1206 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9057 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_get_aperture_string (PhotoMetadata* self, - gboolean pango_formatted) -{ - gchar* result = NULL; - MetadataRational aperture = {0}; - MetadataRational _tmp0_ = {0}; - gboolean _tmp1_; - gdouble aperture_value = 0.0; - MetadataRational _tmp2_; - gint _tmp3_; - MetadataRational _tmp4_; - gint _tmp5_; - gdouble _tmp6_; - const gchar* _tmp7_ = NULL; - const gchar* _tmp8_ = NULL; - gdouble _tmp9_; - gdouble _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; -#line 1209 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 1211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_get_aperture (self, &_tmp0_); -#line 1211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - aperture = _tmp0_; -#line 1211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!_tmp1_) { -#line 1212 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = NULL; -#line 1212 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9095 "PhotoMetadata.c" - } -#line 1214 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = aperture; -#line 1214 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = _tmp2_.numerator; -#line 1214 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = aperture; -#line 1214 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = _tmp4_.denominator; -#line 1214 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - aperture_value = ((gdouble) _tmp3_) / ((gdouble) _tmp5_); -#line 1215 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = aperture_value; -#line 1215 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - aperture_value = ((gint) (_tmp6_ * 10.0)) / 10.0; -#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (pango_formatted) { -#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = "f/"; -#line 9115 "PhotoMetadata.c" - } else { -#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = "f/"; -#line 9119 "PhotoMetadata.c" - } -#line 1218 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = aperture_value; -#line 1218 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (fmod (_tmp9_, 1) == ((gdouble) 0)) { -#line 1218 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = "%.0f"; -#line 9127 "PhotoMetadata.c" - } else { -#line 1218 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = "%.1f"; -#line 9131 "PhotoMetadata.c" - } -#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = aperture_value; -#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = g_strdup_printf (_tmp8_, _tmp10_); -#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = _tmp11_; -#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = g_strconcat (_tmp7_, _tmp12_, NULL); -#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_ = _tmp13_; -#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp12_); -#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp14_; -#line 1217 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9149 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_get_camera_make (PhotoMetadata* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 1221 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 1222 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_get_string_interpreted (self, "Exif.Image.Make", PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1222 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp0_; -#line 1222 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9166 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_get_camera_model (PhotoMetadata* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 1225 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 1226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_get_string_interpreted (self, "Exif.Image.Model", PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp0_; -#line 1226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9183 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_get_flash (PhotoMetadata* self, - glong* flash) -{ - glong _vala_flash = 0L; - gboolean result = FALSE; - glong _tmp0_ = 0L; - gboolean _tmp1_; -#line 1229 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 1231 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_get_long (self, "Exif.Photo.Flash", &_tmp0_); -#line 1231 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_flash = _tmp0_; -#line 1231 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp1_; -#line 1231 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (flash) { -#line 1231 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *flash = _vala_flash; -#line 9207 "PhotoMetadata.c" - } -#line 1231 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9211 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_get_flash_string (PhotoMetadata* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 1234 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 1236 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_get_string_interpreted (self, "Exif.Photo.Flash", PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1236 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp0_; -#line 1236 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9228 "PhotoMetadata.c" -} - - -gboolean -photo_metadata_get_focal_length (PhotoMetadata* self, - MetadataRational* focal_length) -{ - MetadataRational _vala_focal_length = {0}; - gboolean result = FALSE; - MetadataRational _tmp0_ = {0}; - gboolean _tmp1_; -#line 1239 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), FALSE); -#line 1240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_get_rational (self, "Exif.Photo.FocalLength", &_tmp0_); -#line 1240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_focal_length = _tmp0_; -#line 1240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp1_; -#line 1240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (focal_length) { -#line 1240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - *focal_length = _vala_focal_length; -#line 9252 "PhotoMetadata.c" - } -#line 1240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9256 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_get_focal_length_string (PhotoMetadata* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 1243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 1244 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_get_string_interpreted (self, "Exif.Photo.FocalLength", PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1244 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp0_; -#line 1244 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9273 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_get_artist (PhotoMetadata* self) -{ - gchar* result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - gchar* _tmp1_; -#line 1253 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 1254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_ARTIST_TAGS; -#line 1254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0__length1 = photo_metadata_ARTIST_TAGS_length1; -#line 1254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_get_first_string_interpreted (self, _tmp0_, _tmp0__length1); -#line 1254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp1_; -#line 1254 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9296 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_get_copyright (PhotoMetadata* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 1257 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 1258 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_get_string_interpreted (self, "Exif.Image.Copyright", PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1258 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp0_; -#line 1258 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9313 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_get_software (PhotoMetadata* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 1261 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 1262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_get_string_interpreted (self, "Exif.Image.Software", PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp0_; -#line 1262 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9330 "PhotoMetadata.c" -} - - -void -photo_metadata_set_software (PhotoMetadata* self, - const gchar* software, - const gchar* version) -{ - gchar* _tmp0_; - gchar* _tmp1_; -#line 1265 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 1265 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (software != NULL); -#line 1265 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (version != NULL); -#line 1267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = g_strdup_printf ("%s %s", software, version); -#line 1267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = _tmp0_; -#line 1267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_string (self, "Exif.Image.Software", _tmp1_, PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1267 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp1_); -#line 1269 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (photo_metadata_has_iptc (self)) { -#line 1270 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_string (self, "Iptc.Application2.Program", software, PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1271 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_string (self, "Iptc.Application2.ProgramVersion", version, PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 9361 "PhotoMetadata.c" - } -} - - -void -photo_metadata_remove_software (PhotoMetadata* self) -{ -#line 1275 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 1276 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_remove_tag (self, "Exif.Image.Software"); -#line 1277 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_remove_tag (self, "Iptc.Application2.Program"); -#line 1278 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_remove_tag (self, "Iptc.Application2.ProgramVersion"); -#line 9377 "PhotoMetadata.c" -} - - -gchar* -photo_metadata_get_exposure_bias (PhotoMetadata* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 1281 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), NULL); -#line 1282 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_get_string_interpreted (self, "Exif.Photo.ExposureBiasValue", PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1282 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp0_; -#line 1282 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9394 "PhotoMetadata.c" -} - - -Rating -photo_metadata_get_rating (PhotoMetadata* self) -{ - Rating result = 0; - gchar* rating_string = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - gchar* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp4_; - const gchar* _tmp5_; - gint int_percent_rating = 0; - const gchar* _tmp6_; -#line 1293 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (self), 0); -#line 1294 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = photo_metadata_RATING_TAGS; -#line 1294 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0__length1 = photo_metadata_RATING_TAGS_length1; -#line 1294 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = photo_metadata_get_first_string (self, _tmp0_, _tmp0__length1); -#line 1294 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - rating_string = _tmp1_; -#line 1295 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = rating_string; -#line 1295 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp2_ != NULL) { -#line 9425 "PhotoMetadata.c" - const gchar* _tmp3_; -#line 1296 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = rating_string; -#line 1296 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = rating_unserialize (atoi (_tmp3_)); -#line 1296 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (rating_string); -#line 1296 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9435 "PhotoMetadata.c" - } -#line 1298 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = photo_metadata_get_string (self, "Exif.Image.RatingPercent", PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1298 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (rating_string); -#line 1298 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - rating_string = _tmp4_; -#line 1299 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = rating_string; -#line 1299 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp5_ == NULL) { -#line 1300 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = RATING_UNRATED; -#line 1300 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (rating_string); -#line 1300 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9453 "PhotoMetadata.c" - } -#line 1303 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = rating_string; -#line 1303 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - int_percent_rating = atoi (_tmp6_); -#line 9459 "PhotoMetadata.c" - { - gint i = 0; -#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - i = 5; -#line 9464 "PhotoMetadata.c" - { - gboolean _tmp7_ = FALSE; -#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = TRUE; -#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - while (TRUE) { -#line 9471 "PhotoMetadata.c" - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; - gint _tmp12_; -#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!_tmp7_) { -#line 9478 "PhotoMetadata.c" - gint _tmp8_; -#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = i; -#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - i = _tmp8_ - 1; -#line 9484 "PhotoMetadata.c" - } -#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = FALSE; -#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = i; -#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (!(_tmp9_ >= 0)) { -#line 1304 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - break; -#line 9494 "PhotoMetadata.c" - } -#line 1305 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = int_percent_rating; -#line 1305 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = i; -#line 1305 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = RESOURCES_rating_thresholds[_tmp11_]; -#line 1305 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp10_ >= _tmp12_) { -#line 9504 "PhotoMetadata.c" - gint _tmp13_; -#line 1306 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = i; -#line 1306 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = rating_unserialize (_tmp13_); -#line 1306 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (rating_string); -#line 1306 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9514 "PhotoMetadata.c" - } - } - } - } -#line 1308 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = rating_unserialize (-1); -#line 1308 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (rating_string); -#line 1308 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9525 "PhotoMetadata.c" -} - - -void -photo_metadata_set_rating (PhotoMetadata* self, - Rating rating) -{ - gint int_rating = 0; - gint _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gint _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gint _tmp6_; -#line 1316 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_if_fail (IS_PHOTO_METADATA (self)); -#line 1317 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - int_rating = rating_serialize (rating); -#line 1318 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = int_rating; -#line 1318 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = g_strdup_printf ("%i", _tmp0_); -#line 1318 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = _tmp1_; -#line 1318 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_string (self, "Xmp.xmp.Rating", _tmp2_, PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1318 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp2_); -#line 1319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = int_rating; -#line 1319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = g_strdup_printf ("%i", _tmp3_); -#line 1319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = _tmp4_; -#line 1319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_string (self, "Exif.Image.Rating", _tmp5_, PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1319 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp5_); -#line 1321 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = int_rating; -#line 1321 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (0 <= _tmp6_) { -#line 9569 "PhotoMetadata.c" - gint _tmp7_; - gint _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = int_rating; -#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = RESOURCES_rating_thresholds[_tmp7_]; -#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = g_strdup_printf ("%i", _tmp8_); -#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = _tmp9_; -#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_string (self, "Exif.Image.RatingPercent", _tmp10_, PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1322 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp10_); -#line 9586 "PhotoMetadata.c" - } else { - gint _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 1324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = int_rating; -#line 1324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = g_strdup_printf ("%i", _tmp11_); -#line 1324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = _tmp12_; -#line 1324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_set_string (self, "Exif.Image.RatingPercent", _tmp13_, PHOTO_METADATA_PREPARE_STRING_OPTIONS); -#line 1324 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (_tmp13_); -#line 9601 "PhotoMetadata.c" - } -} - - -static gpointer -_media_metadata_ref0 (gpointer self) -{ -#line 235 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return self ? media_metadata_ref (self) : NULL; -#line 9611 "PhotoMetadata.c" -} - - -static PhotoMetadataInternalPhotoPreview* -photo_metadata_internal_photo_preview_construct (GType object_type, - PhotoMetadata* owner, - const gchar* name, - guint number, - GExiv2PreviewProperties* props) -{ - PhotoMetadataInternalPhotoPreview* self = NULL; - Dimensions _tmp0_ = {0}; - const gchar* _tmp1_; - const gchar* _tmp2_; - PhotoMetadata* _tmp3_; -#line 230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (IS_PHOTO_METADATA (owner), NULL); -#line 230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_return_val_if_fail (GEXIV2_IS_PREVIEW_PROPERTIES (props), NULL); -#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - dimensions_init (&_tmp0_, (gint) gexiv2_preview_properties_get_width (props), (gint) gexiv2_preview_properties_get_height (props)); -#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = gexiv2_preview_properties_get_mime_type (props); -#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = gexiv2_preview_properties_get_extension (props); -#line 232 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = (PhotoMetadataInternalPhotoPreview*) photo_preview_construct (object_type, name, &_tmp0_, gexiv2_preview_properties_get_size (props), _tmp1_, _tmp2_); -#line 235 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = _media_metadata_ref0 (owner); -#line 235 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _media_metadata_unref0 (self->owner); -#line 235 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->owner = _tmp3_; -#line 236 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->number = number; -#line 230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return self; -#line 9651 "PhotoMetadata.c" -} - - -static PhotoMetadataInternalPhotoPreview* -photo_metadata_internal_photo_preview_new (PhotoMetadata* owner, - const gchar* name, - guint number, - GExiv2PreviewProperties* props) -{ -#line 230 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return photo_metadata_internal_photo_preview_construct (PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW, owner, name, number, props); -#line 9663 "PhotoMetadata.c" -} - - -static GBytes* -photo_metadata_internal_photo_preview_real_flatten (PhotoPreview* base, - GError** error) -{ - PhotoMetadataInternalPhotoPreview * self; - GBytes* result = NULL; - GExiv2PreviewProperties** props = NULL; - PhotoMetadata* _tmp0_; - GExiv2Metadata* _tmp1_; - GExiv2PreviewProperties** _tmp2_; - GExiv2PreviewProperties** _tmp3_; - gint props_length1; - gint _props_size_; - gboolean _tmp4_ = FALSE; - GExiv2PreviewProperties** _tmp5_; - gint _tmp5__length1; - PhotoMetadata* _tmp8_; - GExiv2Metadata* _tmp9_; - GExiv2PreviewProperties** _tmp10_; - gint _tmp10__length1; - guint _tmp11_; - GExiv2PreviewProperties* _tmp12_; - GExiv2PreviewImage* _tmp13_; - GExiv2PreviewImage* _tmp14_; - guint32 _tmp15_; - guint8* _tmp16_; - GBytes* _tmp17_; - GBytes* _tmp18_; -#line 239 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW, PhotoMetadataInternalPhotoPreview); -#line 240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = self->owner; -#line 240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = _tmp0_->priv->exiv2; -#line 240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = _tmp2_ = gexiv2_metadata_get_preview_properties (_tmp1_); -#line 240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - props = _tmp3_; -#line 240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - props_length1 = _vala_array_length (_tmp2_); -#line 240 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _props_size_ = props_length1; -#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = props; -#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5__length1 = props_length1; -#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - if (_tmp5_ != NULL) { -#line 9715 "PhotoMetadata.c" - GExiv2PreviewProperties** _tmp6_; - gint _tmp6__length1; - guint _tmp7_; -#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = props; -#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6__length1 = props_length1; -#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = self->number; -#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = ((guint) _tmp6__length1) > _tmp7_; -#line 9727 "PhotoMetadata.c" - } else { -#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = FALSE; -#line 9731 "PhotoMetadata.c" - } -#line 241 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _vala_assert (_tmp4_, "props != null && props.length > number"); -#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = self->owner; -#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = _tmp8_->priv->exiv2; -#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = props; -#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10__length1 = props_length1; -#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = self->number; -#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = _tmp10_[_tmp11_]; -#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = gexiv2_metadata_get_preview_image (_tmp9_, _tmp12_); -#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_ = _tmp13_; -#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp16_ = gexiv2_preview_image_get_data (_tmp14_, &_tmp15_); -#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp17_ = g_bytes_new (_tmp16_, _tmp15_); -#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp18_ = _tmp17_; -#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (_tmp14_); -#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - result = _tmp18_; -#line 243 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - return result; -#line 9763 "PhotoMetadata.c" -} - - -static void -photo_metadata_internal_photo_preview_class_init (PhotoMetadataInternalPhotoPreviewClass * klass) -{ -#line 226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_internal_photo_preview_parent_class = g_type_class_peek_parent (klass); -#line 226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ((PhotoPreviewClass *) klass)->finalize = photo_metadata_internal_photo_preview_finalize; -#line 226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ((PhotoPreviewClass *) klass)->flatten = (GBytes* (*) (PhotoPreview *, GError**)) photo_metadata_internal_photo_preview_real_flatten; -#line 9776 "PhotoMetadata.c" -} - - -static void -photo_metadata_internal_photo_preview_instance_init (PhotoMetadataInternalPhotoPreview * self) -{ -} - - -static void -photo_metadata_internal_photo_preview_finalize (PhotoPreview * obj) -{ - PhotoMetadataInternalPhotoPreview * self; -#line 226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTO_METADATA_TYPE_INTERNAL_PHOTO_PREVIEW, PhotoMetadataInternalPhotoPreview); -#line 227 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _media_metadata_unref0 (self->owner); -#line 226 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - PHOTO_PREVIEW_CLASS (photo_metadata_internal_photo_preview_parent_class)->finalize (obj); -#line 9796 "PhotoMetadata.c" -} - - -static GType -photo_metadata_internal_photo_preview_get_type (void) -{ - static volatile gsize photo_metadata_internal_photo_preview_type_id__volatile = 0; - if (g_once_init_enter (&photo_metadata_internal_photo_preview_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoMetadataInternalPhotoPreviewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_metadata_internal_photo_preview_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoMetadataInternalPhotoPreview), 0, (GInstanceInitFunc) photo_metadata_internal_photo_preview_instance_init, NULL }; - GType photo_metadata_internal_photo_preview_type_id; - photo_metadata_internal_photo_preview_type_id = g_type_register_static (TYPE_PHOTO_PREVIEW, "PhotoMetadataInternalPhotoPreview", &g_define_type_info, 0); - g_once_init_leave (&photo_metadata_internal_photo_preview_type_id__volatile, photo_metadata_internal_photo_preview_type_id); - } - return photo_metadata_internal_photo_preview_type_id__volatile; -} - - -static void -photo_metadata_class_init (PhotoMetadataClass * klass) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar** _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar** _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar** _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - gchar** _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gchar** _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - gchar** _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - gchar** _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; - gchar** _tmp37_; - NullKeywordTransformer* _tmp38_; - NullKeywordTransformer* _tmp39_; - HierarchicalKeywordField* _tmp40_; - NullKeywordTransformer* _tmp41_; - NullKeywordTransformer* _tmp42_; - HierarchicalKeywordField* _tmp43_; - ACDSeeKeywordTransformer* _tmp44_; - ACDSeeKeywordTransformer* _tmp45_; - HierarchicalKeywordField* _tmp46_; - NullKeywordTransformer* _tmp47_; - NullKeywordTransformer* _tmp48_; - HierarchicalKeywordField* _tmp49_; - NullKeywordTransformer* _tmp50_; - NullKeywordTransformer* _tmp51_; - HierarchicalKeywordField* _tmp52_; - HierarchicalKeywordField** _tmp53_; - gchar* _tmp54_; - gchar* _tmp55_; - gchar* _tmp56_; - gchar** _tmp57_; - gchar* _tmp58_; - gchar* _tmp59_; - gchar* _tmp60_; - gchar* _tmp61_; - gchar* _tmp62_; - gchar** _tmp63_; -#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_parent_class = g_type_class_peek_parent (klass); -#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ((MediaMetadataClass *) klass)->finalize = photo_metadata_finalize; -#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - g_type_class_add_private (klass, sizeof (PhotoMetadataPrivate)); -#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ((MediaMetadataClass *) klass)->read_from_file = (void (*) (MediaMetadata *, GFile*, GError**)) photo_metadata_real_read_from_file; -#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ((MediaMetadataClass *) klass)->get_creation_date_time = (MetadataDateTime* (*) (MediaMetadata *)) photo_metadata_real_get_creation_date_time; -#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ((MediaMetadataClass *) klass)->get_title = (gchar* (*) (MediaMetadata *)) photo_metadata_real_get_title; -#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - ((MediaMetadataClass *) klass)->get_comment = (gchar* (*) (MediaMetadata *)) photo_metadata_real_get_comment; -#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = g_strdup ("Exif.Image.DateTime"); -#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = g_strdup ("Xmp.tiff.DateTime"); -#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp2_ = g_strdup ("Xmp.xmp.ModifyDate"); -#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp3_ = g_strdup ("Xmp.acdsee.datetime"); -#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_ = g_new0 (gchar*, 4 + 1); -#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_[0] = _tmp0_; -#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_[1] = _tmp1_; -#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_[2] = _tmp2_; -#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp4_[3] = _tmp3_; -#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_DATE_TIME_TAGS = _tmp4_; -#line 800 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_DATE_TIME_TAGS_length1 = 4; -#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp5_ = g_strdup ("Exif.Photo.DateTimeOriginal"); -#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp6_ = g_strdup ("Xmp.exif.DateTimeOriginal"); -#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp7_ = g_strdup ("Xmp.xmp.CreateDate"); -#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp8_ = g_strdup ("Exif.Photo.DateTimeDigitized"); -#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp9_ = g_strdup ("Xmp.exif.DateTimeDigitized"); -#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp10_ = g_strdup ("Exif.Image.DateTime"); -#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_ = g_new0 (gchar*, 6 + 1); -#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_[0] = _tmp5_; -#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_[1] = _tmp6_; -#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_[2] = _tmp7_; -#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_[3] = _tmp8_; -#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_[4] = _tmp9_; -#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp11_[5] = _tmp10_; -#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_EXPOSURE_DATE_TIME_TAGS = _tmp11_; -#line 819 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_EXPOSURE_DATE_TIME_TAGS_length1 = 6; -#line 840 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp12_ = g_strdup ("Exif.Photo.DateTimeDigitized"); -#line 840 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp13_ = g_strdup ("Xmp.exif.DateTimeDigitized"); -#line 840 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_ = g_new0 (gchar*, 2 + 1); -#line 840 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_[0] = _tmp12_; -#line 840 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp14_[1] = _tmp13_; -#line 840 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_DIGITIZED_DATE_TIME_TAGS = _tmp14_; -#line 840 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_DIGITIZED_DATE_TIME_TAGS_length1 = 2; -#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp15_ = g_strdup ("Exif.Photo.PixelXDimension"); -#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp16_ = g_strdup ("Xmp.exif.PixelXDimension"); -#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp17_ = g_strdup ("Xmp.tiff.ImageWidth"); -#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp18_ = g_strdup ("Xmp.exif.PixelXDimension"); -#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp19_ = g_new0 (gchar*, 4 + 1); -#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp19_[0] = _tmp15_; -#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp19_[1] = _tmp16_; -#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp19_[2] = _tmp17_; -#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp19_[3] = _tmp18_; -#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_WIDTH_TAGS = _tmp19_; -#line 865 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_WIDTH_TAGS_length1 = 4; -#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp20_ = g_strdup ("Exif.Photo.PixelYDimension"); -#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp21_ = g_strdup ("Xmp.exif.PixelYDimension"); -#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp22_ = g_strdup ("Xmp.tiff.ImageHeight"); -#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp23_ = g_strdup ("Xmp.exif.PixelYDimension"); -#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp24_ = g_new0 (gchar*, 4 + 1); -#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp24_[0] = _tmp20_; -#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp24_[1] = _tmp21_; -#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp24_[2] = _tmp22_; -#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp24_[3] = _tmp23_; -#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_HEIGHT_TAGS = _tmp24_; -#line 872 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_HEIGHT_TAGS_length1 = 4; -#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp25_ = g_strdup ("Iptc.Application2.Caption"); -#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp26_ = g_strdup ("Xmp.dc.title"); -#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp27_ = g_strdup ("Iptc.Application2.Headline"); -#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp28_ = g_strdup ("Xmp.photoshop.Headline"); -#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp29_ = g_strdup ("Xmp.acdsee.caption"); -#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp30_ = g_new0 (gchar*, 5 + 1); -#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp30_[0] = _tmp25_; -#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp30_[1] = _tmp26_; -#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp30_[2] = _tmp27_; -#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp30_[3] = _tmp28_; -#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp30_[4] = _tmp29_; -#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_STANDARD_TITLE_TAGS = _tmp30_; -#line 931 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_STANDARD_TITLE_TAGS_length1 = 5; -#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp31_ = g_strdup ("Exif.Photo.UserComment"); -#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp32_ = g_strdup ("Xmp.acdsee.notes"); -#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp33_ = g_new0 (gchar*, 2 + 1); -#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp33_[0] = _tmp31_; -#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp33_[1] = _tmp32_; -#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_COMMENT_TAGS = _tmp33_; -#line 976 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_COMMENT_TAGS_length1 = 2; -#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp34_ = g_strdup ("Xmp.dc.subject"); -#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp35_ = g_strdup ("Iptc.Application2.Keywords"); -#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp36_ = g_strdup ("Xmp.xmp.Label"); -#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp37_ = g_new0 (gchar*, 3 + 1); -#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp37_[0] = _tmp34_; -#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp37_[1] = _tmp35_; -#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp37_[2] = _tmp36_; -#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_KEYWORD_TAGS = _tmp37_; -#line 998 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_KEYWORD_TAGS_length1 = 3; -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp38_ = null_keyword_transformer_new (); -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp39_ = _tmp38_; -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp40_ = hierarchical_keyword_field_new ("Xmp.lr.hierarchicalSubject", "|", FALSE, FALSE, G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, TYPE_KEYWORD_TRANSFORMER, KeywordTransformer)); -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp41_ = null_keyword_transformer_new (); -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp42_ = _tmp41_; -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp43_ = hierarchical_keyword_field_new ("Xmp.acdsee.keywords", "|", FALSE, FALSE, G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, TYPE_KEYWORD_TRANSFORMER, KeywordTransformer)); -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp44_ = acd_see_keyword_transformer_new (); -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp45_ = _tmp44_; -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp46_ = hierarchical_keyword_field_new ("Xmp.acdsee.categories", "|", FALSE, FALSE, G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_KEYWORD_TRANSFORMER, KeywordTransformer)); -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp47_ = null_keyword_transformer_new (); -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp48_ = _tmp47_; -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp49_ = hierarchical_keyword_field_new ("Xmp.digiKam.TagsList", "/", FALSE, TRUE, G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_KEYWORD_TRANSFORMER, KeywordTransformer)); -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp50_ = null_keyword_transformer_new (); -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp51_ = _tmp50_; -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp52_ = hierarchical_keyword_field_new ("Xmp.MicrosoftPhoto.LastKeywordXMP", "/", FALSE, TRUE, G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, TYPE_KEYWORD_TRANSFORMER, KeywordTransformer)); -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp53_ = g_new0 (HierarchicalKeywordField*, 5 + 1); -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp53_[0] = _tmp40_; -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp53_[1] = _tmp43_; -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp53_[2] = _tmp46_; -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp53_[3] = _tmp49_; -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp53_[4] = _tmp52_; -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_HIERARCHICAL_KEYWORD_TAGS = _tmp53_; -#line 1004 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_HIERARCHICAL_KEYWORD_TAGS_length1 = 5; -#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp54_ = g_strdup ("Exif.Image.Artist"); -#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp55_ = g_strdup ("Exif.Canon.OwnerName"); -#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp56_ = g_strdup ("Xmp.acdsee.author"); -#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp57_ = g_new0 (gchar*, 3 + 1); -#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp57_[0] = _tmp54_; -#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp57_[1] = _tmp55_; -#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp57_[2] = _tmp56_; -#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_ARTIST_TAGS = _tmp57_; -#line 1247 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_ARTIST_TAGS_length1 = 3; -#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp58_ = g_strdup ("Xmp.xmp.Rating"); -#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp59_ = g_strdup ("Iptc.Application2.Urgency"); -#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp60_ = g_strdup ("Xmp.photoshop.Urgency"); -#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp61_ = g_strdup ("Exif.Image.Rating"); -#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp62_ = g_strdup ("Xmp.acdsee.rating"); -#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp63_ = g_new0 (gchar*, 5 + 1); -#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp63_[0] = _tmp58_; -#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp63_[1] = _tmp59_; -#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp63_[2] = _tmp60_; -#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp63_[3] = _tmp61_; -#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp63_[4] = _tmp62_; -#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_RATING_TAGS = _tmp63_; -#line 1285 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - photo_metadata_RATING_TAGS_length1 = 5; -#line 10153 "PhotoMetadata.c" -} - - -static void -photo_metadata_instance_init (PhotoMetadata * self) -{ - GExiv2Metadata* _tmp0_; - gchar* _tmp1_; -#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv = PHOTO_METADATA_GET_PRIVATE (self); -#line 248 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp0_ = gexiv2_metadata_new (); -#line 248 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->exiv2 = _tmp0_; -#line 249 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->exif = NULL; -#line 250 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _tmp1_ = g_strdup (""); -#line 250 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->source_name = _tmp1_; -#line 251 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->metadata_hash = NULL; -#line 252 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self->priv->thumbnail_md5 = NULL; -#line 10178 "PhotoMetadata.c" -} - - -static void -photo_metadata_finalize (MediaMetadata * obj) -{ - PhotoMetadata * self; -#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PHOTO_METADATA, PhotoMetadata); -#line 248 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_object_unref0 (self->priv->exiv2); -#line 249 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _exif_data_unref0 (self->priv->exif); -#line 250 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->priv->source_name); -#line 251 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->priv->metadata_hash); -#line 252 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - _g_free0 (self->priv->thumbnail_md5); -#line 211 "/home/jens/Source/shotwell/src/photos/PhotoMetadata.vala" - MEDIA_METADATA_CLASS (photo_metadata_parent_class)->finalize (obj); -#line 10200 "PhotoMetadata.c" -} - - -GType -photo_metadata_get_type (void) -{ - static volatile gsize photo_metadata_type_id__volatile = 0; - if (g_once_init_enter (&photo_metadata_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotoMetadataClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photo_metadata_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotoMetadata), 0, (GInstanceInitFunc) photo_metadata_instance_init, NULL }; - GType photo_metadata_type_id; - photo_metadata_type_id = g_type_register_static (TYPE_MEDIA_METADATA, "PhotoMetadata", &g_define_type_info, 0); - g_once_init_leave (&photo_metadata_type_id__volatile, photo_metadata_type_id); - } - return photo_metadata_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/src/photos/Photos.c b/src/photos/Photos.c deleted file mode 100644 index 4b69412..0000000 --- a/src/photos/Photos.c +++ /dev/null @@ -1,96 +0,0 @@ -/* Photos.c generated by valac 0.40.4, the Vala compiler - * generated from Photos.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/* This file is the master unit file for the Photo unit. It should be edited to include - * whatever code is deemed necessary. - * - * The init() and terminate() methods are mandatory. - * - * If the unit needs to be configured prior to initialization, add the proper parameters to - * the preconfigure() method, implement it, and ensure in init() that it's been called. - */ - - -#include -#include - - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - - - -void photos_preconfigure (void); -void photos_init (GError** error); -GType photo_file_format_get_type (void) G_GNUC_CONST; -PhotoFileFormat* photo_file_format_get_supported (int* result_length1); -void photo_file_format_init (PhotoFileFormat self); -void photos_terminate (void); - - -void -photos_preconfigure (void) -{ -} - - -void -photos_init (GError** error) -{ - gint _tmp0_; - PhotoFileFormat* _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/photos/Photos.vala" - _tmp1_ = photo_file_format_get_supported (&_tmp0_); -#line 58 "Photos.c" - { - PhotoFileFormat* format_collection = NULL; - gint format_collection_length1 = 0; - gint _format_collection_size_ = 0; - gint format_it = 0; -#line 23 "/home/jens/Source/shotwell/src/photos/Photos.vala" - format_collection = _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/photos/Photos.vala" - format_collection_length1 = _tmp0_; -#line 23 "/home/jens/Source/shotwell/src/photos/Photos.vala" - for (format_it = 0; format_it < _tmp0_; format_it = format_it + 1) { -#line 70 "Photos.c" - PhotoFileFormat format = 0; -#line 23 "/home/jens/Source/shotwell/src/photos/Photos.vala" - format = format_collection[format_it]; -#line 74 "Photos.c" - { - PhotoFileFormat _tmp2_; -#line 24 "/home/jens/Source/shotwell/src/photos/Photos.vala" - _tmp2_ = format; -#line 24 "/home/jens/Source/shotwell/src/photos/Photos.vala" - photo_file_format_init (_tmp2_); -#line 81 "Photos.c" - } - } -#line 23 "/home/jens/Source/shotwell/src/photos/Photos.vala" - format_collection = (g_free (format_collection), NULL); -#line 86 "Photos.c" - } -} - - -void -photos_terminate (void) -{ -} - - - diff --git a/src/photos/PngSupport.c b/src/photos/PngSupport.c deleted file mode 100644 index 41e90da..0000000 --- a/src/photos/PngSupport.c +++ /dev/null @@ -1,2096 +0,0 @@ -/* PngSupport.c generated by valac 0.40.4, the Vala compiler - * generated from PngSupport.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ()) -#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties)) -#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) - -typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties; -typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass; -typedef struct _PhotoFileFormatPropertiesPrivate PhotoFileFormatPropertiesPrivate; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_PHOTO_FILE_FORMAT_FLAGS (photo_file_format_flags_get_type ()) - -#define TYPE_PNG_FILE_FORMAT_PROPERTIES (png_file_format_properties_get_type ()) -#define PNG_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties)) -#define PNG_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatPropertiesClass)) -#define IS_PNG_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PNG_FILE_FORMAT_PROPERTIES)) -#define IS_PNG_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PNG_FILE_FORMAT_PROPERTIES)) -#define PNG_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatPropertiesClass)) - -typedef struct _PngFileFormatProperties PngFileFormatProperties; -typedef struct _PngFileFormatPropertiesClass PngFileFormatPropertiesClass; -typedef struct _PngFileFormatPropertiesPrivate PngFileFormatPropertiesPrivate; -#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL))) - -#define TYPE_PHOTO_FILE_SNIFFER (photo_file_sniffer_get_type ()) -#define PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)) -#define PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass)) -#define IS_PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_SNIFFER)) -#define IS_PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_SNIFFER)) -#define PHOTO_FILE_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass)) - -typedef struct _PhotoFileSniffer PhotoFileSniffer; -typedef struct _PhotoFileSnifferClass PhotoFileSnifferClass; -typedef struct _PhotoFileSnifferPrivate PhotoFileSnifferPrivate; - -#define TYPE_DETECTED_PHOTO_INFORMATION (detected_photo_information_get_type ()) -#define DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation)) -#define DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass)) -#define IS_DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DETECTED_PHOTO_INFORMATION)) -#define IS_DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DETECTED_PHOTO_INFORMATION)) -#define DETECTED_PHOTO_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass)) - -typedef struct _DetectedPhotoInformation DetectedPhotoInformation; -typedef struct _DetectedPhotoInformationClass DetectedPhotoInformationClass; - -#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ()) - -#define TYPE_GDK_SNIFFER (gdk_sniffer_get_type ()) -#define GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_SNIFFER, GdkSniffer)) -#define GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_SNIFFER, GdkSnifferClass)) -#define IS_GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_SNIFFER)) -#define IS_GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_SNIFFER)) -#define GDK_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_SNIFFER, GdkSnifferClass)) - -typedef struct _GdkSniffer GdkSniffer; -typedef struct _GdkSnifferClass GdkSnifferClass; -typedef struct _GdkSnifferPrivate GdkSnifferPrivate; - -#define TYPE_PNG_SNIFFER (png_sniffer_get_type ()) -#define PNG_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PNG_SNIFFER, PngSniffer)) -#define PNG_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PNG_SNIFFER, PngSnifferClass)) -#define IS_PNG_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PNG_SNIFFER)) -#define IS_PNG_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PNG_SNIFFER)) -#define PNG_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PNG_SNIFFER, PngSnifferClass)) - -typedef struct _PngSniffer PngSniffer; -typedef struct _PngSnifferClass PngSnifferClass; -typedef struct _PngSnifferPrivate PngSnifferPrivate; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _detected_photo_information_unref0(var) ((var == NULL) ? NULL : (var = (detected_photo_information_unref (var), NULL))) -typedef struct _DetectedPhotoInformationPrivate DetectedPhotoInformationPrivate; - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; - -#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ()) -#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)) -#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) -#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER)) -#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER)) -#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) - -typedef struct _PhotoFileAdapter PhotoFileAdapter; -typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass; -typedef struct _PhotoFileAdapterPrivate PhotoFileAdapterPrivate; - -#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ()) -#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader)) -#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) -#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER)) -#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER)) -#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) - -typedef struct _PhotoFileReader PhotoFileReader; -typedef struct _PhotoFileReaderClass PhotoFileReaderClass; -typedef struct _PhotoFileReaderPrivate PhotoFileReaderPrivate; - -#define TYPE_GDK_READER (gdk_reader_get_type ()) -#define GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_READER, GdkReader)) -#define GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_READER, GdkReaderClass)) -#define IS_GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_READER)) -#define IS_GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_READER)) -#define GDK_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_READER, GdkReaderClass)) - -typedef struct _GdkReader GdkReader; -typedef struct _GdkReaderClass GdkReaderClass; -typedef struct _GdkReaderPrivate GdkReaderPrivate; - -#define TYPE_PNG_READER (png_reader_get_type ()) -#define PNG_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PNG_READER, PngReader)) -#define PNG_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PNG_READER, PngReaderClass)) -#define IS_PNG_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PNG_READER)) -#define IS_PNG_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PNG_READER)) -#define PNG_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PNG_READER, PngReaderClass)) - -typedef struct _PngReader PngReader; -typedef struct _PngReaderClass PngReaderClass; -typedef struct _PngReaderPrivate PngReaderPrivate; - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ()) -#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter)) -#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) -#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER)) -#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER)) -#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) - -typedef struct _PhotoFileWriter PhotoFileWriter; -typedef struct _PhotoFileWriterClass PhotoFileWriterClass; -typedef struct _PhotoFileWriterPrivate PhotoFileWriterPrivate; - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) - -#define TYPE_PNG_WRITER (png_writer_get_type ()) -#define PNG_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PNG_WRITER, PngWriter)) -#define PNG_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PNG_WRITER, PngWriterClass)) -#define IS_PNG_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PNG_WRITER)) -#define IS_PNG_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PNG_WRITER)) -#define PNG_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PNG_WRITER, PngWriterClass)) - -typedef struct _PngWriter PngWriter; -typedef struct _PngWriterClass PngWriterClass; -typedef struct _PngWriterPrivate PngWriterPrivate; - -#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ()) -#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter)) -#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass)) -#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER)) -#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER)) -#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass)) - -typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter; -typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass; -typedef struct _PhotoFileMetadataWriterPrivate PhotoFileMetadataWriterPrivate; - -#define TYPE_PNG_METADATA_WRITER (png_metadata_writer_get_type ()) -#define PNG_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PNG_METADATA_WRITER, PngMetadataWriter)) -#define PNG_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PNG_METADATA_WRITER, PngMetadataWriterClass)) -#define IS_PNG_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PNG_METADATA_WRITER)) -#define IS_PNG_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PNG_METADATA_WRITER)) -#define PNG_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PNG_METADATA_WRITER, PngMetadataWriterClass)) - -typedef struct _PngMetadataWriter PngMetadataWriter; -typedef struct _PngMetadataWriterClass PngMetadataWriterClass; -typedef struct _PngMetadataWriterPrivate PngMetadataWriterPrivate; - -#define TYPE_PHOTO_FILE_FORMAT_DRIVER (photo_file_format_driver_get_type ()) -#define PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver)) -#define PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass)) -#define IS_PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER)) -#define IS_PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER)) -#define PHOTO_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass)) - -typedef struct _PhotoFileFormatDriver PhotoFileFormatDriver; -typedef struct _PhotoFileFormatDriverClass PhotoFileFormatDriverClass; -typedef struct _PhotoFileFormatDriverPrivate PhotoFileFormatDriverPrivate; - -#define TYPE_PNG_FILE_FORMAT_DRIVER (png_file_format_driver_get_type ()) -#define PNG_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver)) -#define PNG_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriverClass)) -#define IS_PNG_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PNG_FILE_FORMAT_DRIVER)) -#define IS_PNG_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PNG_FILE_FORMAT_DRIVER)) -#define PNG_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriverClass)) - -typedef struct _PngFileFormatDriver PngFileFormatDriver; -typedef struct _PngFileFormatDriverClass PngFileFormatDriverClass; -typedef struct _PngFileFormatDriverPrivate PngFileFormatDriverPrivate; -#define _photo_file_format_driver_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_driver_unref (var), NULL))) - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef enum { - PHOTO_FILE_FORMAT_FLAGS_NONE = 0x00000000 -} PhotoFileFormatFlags; - -struct _PhotoFileFormatProperties { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileFormatPropertiesPrivate * priv; -}; - -struct _PhotoFileFormatPropertiesClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileFormatProperties *self); - PhotoFileFormat (*get_file_format) (PhotoFileFormatProperties* self); - PhotoFileFormatFlags (*get_flags) (PhotoFileFormatProperties* self); - gboolean (*is_recognized_extension) (PhotoFileFormatProperties* self, const gchar* ext); - gchar* (*get_default_extension) (PhotoFileFormatProperties* self); - gchar** (*get_known_extensions) (PhotoFileFormatProperties* self, int* result_length1); - gchar* (*get_default_mime_type) (PhotoFileFormatProperties* self); - gchar** (*get_mime_types) (PhotoFileFormatProperties* self, int* result_length1); - gchar* (*get_user_visible_name) (PhotoFileFormatProperties* self); -}; - -struct _PngFileFormatProperties { - PhotoFileFormatProperties parent_instance; - PngFileFormatPropertiesPrivate * priv; -}; - -struct _PngFileFormatPropertiesClass { - PhotoFileFormatPropertiesClass parent_class; -}; - -typedef enum { - PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000, - PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001 -} PhotoFileSnifferOptions; - -struct _PhotoFileSniffer { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileSnifferPrivate * priv; - GFile* file; - PhotoFileSnifferOptions options; - gboolean calc_md5; -}; - -struct _PhotoFileSnifferClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileSniffer *self); - DetectedPhotoInformation* (*sniff) (PhotoFileSniffer* self, gboolean* is_corrupted, GError** error); -}; - -struct _GdkSniffer { - PhotoFileSniffer parent_instance; - GdkSnifferPrivate * priv; -}; - -struct _GdkSnifferClass { - PhotoFileSnifferClass parent_class; -}; - -struct _PngSniffer { - GdkSniffer parent_instance; - PngSnifferPrivate * priv; -}; - -struct _PngSnifferClass { - GdkSnifferClass parent_class; -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _DetectedPhotoInformation { - GTypeInstance parent_instance; - volatile int ref_count; - DetectedPhotoInformationPrivate * priv; - PhotoFileFormat file_format; - PhotoMetadata* metadata; - gchar* md5; - gchar* exif_md5; - gchar* thumbnail_md5; - gchar* format_name; - Dimensions image_dim; - GdkColorspace colorspace; - gint channels; - gint bits_per_channel; -}; - -struct _DetectedPhotoInformationClass { - GTypeClass parent_class; - void (*finalize) (DetectedPhotoInformation *self); -}; - -struct _PhotoFileAdapter { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileAdapterPrivate * priv; -}; - -struct _PhotoFileAdapterClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileAdapter *self); -}; - -struct _PhotoFileReader { - PhotoFileAdapter parent_instance; - PhotoFileReaderPrivate * priv; -}; - -struct _PhotoFileReaderClass { - PhotoFileAdapterClass parent_class; - PhotoMetadata* (*read_metadata) (PhotoFileReader* self, GError** error); - GdkPixbuf* (*unscaled_read) (PhotoFileReader* self, GError** error); - GdkPixbuf* (*scaled_read) (PhotoFileReader* self, Dimensions* full, Dimensions* scaled, GError** error); -}; - -struct _GdkReader { - PhotoFileReader parent_instance; - GdkReaderPrivate * priv; -}; - -struct _GdkReaderClass { - PhotoFileReaderClass parent_class; -}; - -struct _PngReader { - GdkReader parent_instance; - PngReaderPrivate * priv; -}; - -struct _PngReaderClass { - GdkReaderClass parent_class; -}; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -struct _PhotoFileWriter { - PhotoFileAdapter parent_instance; - PhotoFileWriterPrivate * priv; -}; - -struct _PhotoFileWriterClass { - PhotoFileAdapterClass parent_class; - void (*write) (PhotoFileWriter* self, GdkPixbuf* pixbuf, JpegQuality quality, GError** error); -}; - -struct _PngWriter { - PhotoFileWriter parent_instance; - PngWriterPrivate * priv; -}; - -struct _PngWriterClass { - PhotoFileWriterClass parent_class; -}; - -struct _PhotoFileMetadataWriter { - PhotoFileAdapter parent_instance; - PhotoFileMetadataWriterPrivate * priv; -}; - -struct _PhotoFileMetadataWriterClass { - PhotoFileAdapterClass parent_class; - void (*write_metadata) (PhotoFileMetadataWriter* self, PhotoMetadata* metadata, GError** error); -}; - -struct _PngMetadataWriter { - PhotoFileMetadataWriter parent_instance; - PngMetadataWriterPrivate * priv; -}; - -struct _PngMetadataWriterClass { - PhotoFileMetadataWriterClass parent_class; -}; - -struct _PhotoFileFormatDriver { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileFormatDriverPrivate * priv; -}; - -struct _PhotoFileFormatDriverClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileFormatDriver *self); - PhotoFileFormatProperties* (*get_properties) (PhotoFileFormatDriver* self); - PhotoFileReader* (*create_reader) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoMetadata* (*create_metadata) (PhotoFileFormatDriver* self); - gboolean (*can_write_image) (PhotoFileFormatDriver* self); - gboolean (*can_write_metadata) (PhotoFileFormatDriver* self); - PhotoFileWriter* (*create_writer) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoFileMetadataWriter* (*create_metadata_writer) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoFileSniffer* (*create_sniffer) (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options); -}; - -struct _PngFileFormatDriver { - PhotoFileFormatDriver parent_instance; - PngFileFormatDriverPrivate * priv; -}; - -struct _PngFileFormatDriverClass { - PhotoFileFormatDriverClass parent_class; -}; - - -static gpointer png_file_format_properties_parent_class = NULL; -static gchar** png_file_format_properties_KNOWN_EXTENSIONS; -static gint png_file_format_properties_KNOWN_EXTENSIONS_length1; -static gchar** png_file_format_properties_KNOWN_EXTENSIONS = NULL; -static gint png_file_format_properties_KNOWN_EXTENSIONS_length1 = 0; -static gint _png_file_format_properties_KNOWN_EXTENSIONS_size_ = 0; -static gchar** png_file_format_properties_KNOWN_MIME_TYPES; -static gint png_file_format_properties_KNOWN_MIME_TYPES_length1; -static gchar** png_file_format_properties_KNOWN_MIME_TYPES = NULL; -static gint png_file_format_properties_KNOWN_MIME_TYPES_length1 = 0; -static gint _png_file_format_properties_KNOWN_MIME_TYPES_size_ = 0; -static PngFileFormatProperties* png_file_format_properties_instance; -static PngFileFormatProperties* png_file_format_properties_instance = NULL; -static gpointer png_sniffer_parent_class = NULL; -static gpointer png_reader_parent_class = NULL; -static gpointer png_writer_parent_class = NULL; -static gpointer png_metadata_writer_parent_class = NULL; -static gpointer png_file_format_driver_parent_class = NULL; -static PngFileFormatDriver* png_file_format_driver_instance; -static PngFileFormatDriver* png_file_format_driver_instance = NULL; - -gpointer photo_file_format_properties_ref (gpointer instance); -void photo_file_format_properties_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_properties (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_format_properties (GValue* value, - gpointer v_object); -void value_take_photo_file_format_properties (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_format_properties (const GValue* value); -GType photo_file_format_properties_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType photo_file_format_flags_get_type (void) G_GNUC_CONST; -GType png_file_format_properties_get_type (void) G_GNUC_CONST; -void png_file_format_properties_init (void); -PngFileFormatProperties* png_file_format_properties_new (void); -PngFileFormatProperties* png_file_format_properties_construct (GType object_type); -PngFileFormatProperties* png_file_format_properties_get_instance (void); -static PhotoFileFormat png_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base); -static PhotoFileFormatFlags png_file_format_properties_real_get_flags (PhotoFileFormatProperties* base); -static gchar* png_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base); -static gchar* png_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base); -static gchar** png_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base, - int* result_length1); -static gchar** _vala_array_dup12 (gchar** self, - int length); -static gchar* png_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base); -static gchar** png_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base, - int* result_length1); -static gchar** _vala_array_dup13 (gchar** self, - int length); -PhotoFileFormatProperties* photo_file_format_properties_construct (GType object_type); -static void png_file_format_properties_finalize (PhotoFileFormatProperties * obj); -gpointer photo_file_sniffer_ref (gpointer instance); -void photo_file_sniffer_unref (gpointer instance); -GParamSpec* param_spec_photo_file_sniffer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_sniffer (GValue* value, - gpointer v_object); -void value_take_photo_file_sniffer (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_sniffer (const GValue* value); -GType photo_file_sniffer_get_type (void) G_GNUC_CONST; -gpointer detected_photo_information_ref (gpointer instance); -void detected_photo_information_unref (gpointer instance); -GParamSpec* param_spec_detected_photo_information (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_detected_photo_information (GValue* value, - gpointer v_object); -void value_take_detected_photo_information (GValue* value, - gpointer v_object); -gpointer value_get_detected_photo_information (const GValue* value); -GType detected_photo_information_get_type (void) G_GNUC_CONST; -GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST; -GType gdk_sniffer_get_type (void) G_GNUC_CONST; -GType png_sniffer_get_type (void) G_GNUC_CONST; -PngSniffer* png_sniffer_new (GFile* file, - PhotoFileSnifferOptions options); -PngSniffer* png_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options); -GdkSniffer* gdk_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options); -static gboolean png_sniffer_is_png_file (GFile* file, - GError** error); -static DetectedPhotoInformation* png_sniffer_real_sniff (PhotoFileSniffer* base, - gboolean* is_corrupted, - GError** error); -DetectedPhotoInformation* photo_file_sniffer_sniff (PhotoFileSniffer* self, - gboolean* is_corrupted, - GError** error); -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -gpointer photo_file_adapter_ref (gpointer instance); -void photo_file_adapter_unref (gpointer instance); -GParamSpec* param_spec_photo_file_adapter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_adapter (GValue* value, - gpointer v_object); -void value_take_photo_file_adapter (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_adapter (const GValue* value); -GType photo_file_adapter_get_type (void) G_GNUC_CONST; -GType photo_file_reader_get_type (void) G_GNUC_CONST; -GType gdk_reader_get_type (void) G_GNUC_CONST; -GType png_reader_get_type (void) G_GNUC_CONST; -PngReader* png_reader_new (const gchar* filepath); -PngReader* png_reader_construct (GType object_type, - const gchar* filepath); -GdkReader* gdk_reader_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -static GdkPixbuf* png_reader_real_scaled_read (PhotoFileReader* base, - Dimensions* full, - Dimensions* scaled, - GError** error); -GType scale_constraint_get_type (void) G_GNUC_CONST; -void dimensions_get_scaled_by_constraint (Dimensions *self, - gint scale, - ScaleConstraint constraint, - Dimensions* result); -gchar* photo_file_adapter_get_filepath (PhotoFileAdapter* self); -GType photo_file_writer_get_type (void) G_GNUC_CONST; -GType jpeg_quality_get_type (void) G_GNUC_CONST; -GType png_writer_get_type (void) G_GNUC_CONST; -PngWriter* png_writer_new (const gchar* filepath); -PngWriter* png_writer_construct (GType object_type, - const gchar* filepath); -PhotoFileWriter* photo_file_writer_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -static void png_writer_real_write (PhotoFileWriter* base, - GdkPixbuf* pixbuf, - JpegQuality quality, - GError** error); -GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST; -GType png_metadata_writer_get_type (void) G_GNUC_CONST; -PngMetadataWriter* png_metadata_writer_new (const gchar* filepath); -PngMetadataWriter* png_metadata_writer_construct (GType object_type, - const gchar* filepath); -PhotoFileMetadataWriter* photo_file_metadata_writer_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -static void png_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* base, - PhotoMetadata* metadata, - GError** error); -void photo_metadata_write_to_file (PhotoMetadata* self, - GFile* file, - GError** error); -GFile* photo_file_adapter_get_file (PhotoFileAdapter* self); -gpointer photo_file_format_driver_ref (gpointer instance); -void photo_file_format_driver_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_driver (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_format_driver (GValue* value, - gpointer v_object); -void value_take_photo_file_format_driver (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_format_driver (const GValue* value); -GType photo_file_format_driver_get_type (void) G_GNUC_CONST; -GType png_file_format_driver_get_type (void) G_GNUC_CONST; -void png_file_format_driver_init (void); -PngFileFormatDriver* png_file_format_driver_new (void); -PngFileFormatDriver* png_file_format_driver_construct (GType object_type); -PngFileFormatDriver* png_file_format_driver_get_instance (void); -static PhotoFileFormatProperties* png_file_format_driver_real_get_properties (PhotoFileFormatDriver* base); -static PhotoFileReader* png_file_format_driver_real_create_reader (PhotoFileFormatDriver* base, - const gchar* filepath); -static gboolean png_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base); -static gboolean png_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base); -static PhotoFileWriter* png_file_format_driver_real_create_writer (PhotoFileFormatDriver* base, - const gchar* filepath); -static PhotoFileMetadataWriter* png_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base, - const gchar* filepath); -static PhotoFileSniffer* png_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base, - GFile* file, - PhotoFileSnifferOptions options); -static PhotoMetadata* png_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base); -PhotoMetadata* photo_metadata_new (void); -PhotoMetadata* photo_metadata_construct (GType object_type); -PhotoFileFormatDriver* photo_file_format_driver_construct (GType object_type); -static void png_file_format_driver_finalize (PhotoFileFormatDriver * obj); - -static const guint8 PNG_SNIFFER_MAGIC_SEQUENCE[8] = {(guint8) 137, (guint8) 80, (guint8) 78, (guint8) 71, (guint8) 13, (guint8) 10, (guint8) 26, (guint8) 10}; - -void -png_file_format_properties_init (void) -{ - PngFileFormatProperties* _tmp0_; -#line 14 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = png_file_format_properties_new (); -#line 14 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _photo_file_format_properties_unref0 (png_file_format_properties_instance); -#line 14 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - png_file_format_properties_instance = _tmp0_; -#line 689 "PngSupport.c" -} - - -static gpointer -_photo_file_format_properties_ref0 (gpointer self) -{ -#line 18 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return self ? photo_file_format_properties_ref (self) : NULL; -#line 698 "PngSupport.c" -} - - -PngFileFormatProperties* -png_file_format_properties_get_instance (void) -{ - PngFileFormatProperties* result = NULL; - PngFileFormatProperties* _tmp0_; - PngFileFormatProperties* _tmp1_; -#line 18 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = png_file_format_properties_instance; -#line 18 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp1_ = _photo_file_format_properties_ref0 (_tmp0_); -#line 18 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = _tmp1_; -#line 18 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 716 "PngSupport.c" -} - - -static PhotoFileFormat -png_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base) -{ - PngFileFormatProperties * self; - PhotoFileFormat result = 0; -#line 21 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties); -#line 22 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = PHOTO_FILE_FORMAT_PNG; -#line 22 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 731 "PngSupport.c" -} - - -static PhotoFileFormatFlags -png_file_format_properties_real_get_flags (PhotoFileFormatProperties* base) -{ - PngFileFormatProperties * self; - PhotoFileFormatFlags result = 0; -#line 25 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties); -#line 26 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = PHOTO_FILE_FORMAT_FLAGS_NONE; -#line 26 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 746 "PngSupport.c" -} - - -static gchar* -png_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base) -{ - PngFileFormatProperties * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 29 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties); -#line 30 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = g_strdup (_ ("PNG")); -#line 30 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = _tmp0_; -#line 30 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 764 "PngSupport.c" -} - - -static gchar* -png_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base) -{ - PngFileFormatProperties * self; - gchar* result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 33 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties); -#line 34 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = png_file_format_properties_KNOWN_EXTENSIONS; -#line 34 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0__length1 = png_file_format_properties_KNOWN_EXTENSIONS_length1; -#line 34 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp1_ = _tmp0_[0]; -#line 34 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 34 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = _tmp2_; -#line 34 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 791 "PngSupport.c" -} - - -static gchar** -_vala_array_dup12 (gchar** self, - int length) -{ - gchar** result; - int i; -#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = g_new0 (gchar*, length + 1); -#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - for (i = 0; i < length; i++) { -#line 805 "PngSupport.c" - gchar* _tmp0_; -#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = g_strdup (self[i]); -#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result[i] = _tmp0_; -#line 811 "PngSupport.c" - } -#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 815 "PngSupport.c" -} - - -static gchar** -png_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base, - int* result_length1) -{ - PngFileFormatProperties * self; - gchar** result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - gchar** _tmp1_; - gint _tmp1__length1; - gchar** _tmp2_; - gint _tmp2__length1; -#line 37 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties); -#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = png_file_format_properties_KNOWN_EXTENSIONS; -#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0__length1 = png_file_format_properties_KNOWN_EXTENSIONS_length1; -#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup12 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_); -#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp1__length1 = _tmp0__length1; -#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp2_ = _tmp1_; -#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp2__length1 = _tmp1__length1; -#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (result_length1) { -#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - *result_length1 = _tmp2__length1; -#line 849 "PngSupport.c" - } -#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = _tmp2_; -#line 38 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 855 "PngSupport.c" -} - - -static gchar* -png_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base) -{ - PngFileFormatProperties * self; - gchar* result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 41 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties); -#line 42 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = png_file_format_properties_KNOWN_MIME_TYPES; -#line 42 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0__length1 = png_file_format_properties_KNOWN_MIME_TYPES_length1; -#line 42 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp1_ = _tmp0_[0]; -#line 42 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 42 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = _tmp2_; -#line 42 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 882 "PngSupport.c" -} - - -static gchar** -_vala_array_dup13 (gchar** self, - int length) -{ - gchar** result; - int i; -#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = g_new0 (gchar*, length + 1); -#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - for (i = 0; i < length; i++) { -#line 896 "PngSupport.c" - gchar* _tmp0_; -#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = g_strdup (self[i]); -#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result[i] = _tmp0_; -#line 902 "PngSupport.c" - } -#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 906 "PngSupport.c" -} - - -static gchar** -png_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base, - int* result_length1) -{ - PngFileFormatProperties * self; - gchar** result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - gchar** _tmp1_; - gint _tmp1__length1; - gchar** _tmp2_; - gint _tmp2__length1; -#line 45 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties); -#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = png_file_format_properties_KNOWN_MIME_TYPES; -#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0__length1 = png_file_format_properties_KNOWN_MIME_TYPES_length1; -#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup13 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_); -#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp1__length1 = _tmp0__length1; -#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp2_ = _tmp1_; -#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp2__length1 = _tmp1__length1; -#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (result_length1) { -#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - *result_length1 = _tmp2__length1; -#line 940 "PngSupport.c" - } -#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = _tmp2_; -#line 46 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 946 "PngSupport.c" -} - - -PngFileFormatProperties* -png_file_format_properties_construct (GType object_type) -{ - PngFileFormatProperties* self = NULL; -#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = (PngFileFormatProperties*) photo_file_format_properties_construct (object_type); -#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return self; -#line 958 "PngSupport.c" -} - - -PngFileFormatProperties* -png_file_format_properties_new (void) -{ -#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return png_file_format_properties_construct (TYPE_PNG_FILE_FORMAT_PROPERTIES); -#line 967 "PngSupport.c" -} - - -static void -png_file_format_properties_class_init (PngFileFormatPropertiesClass * klass) -{ - gchar* _tmp0_; - gchar** _tmp1_; - gchar* _tmp2_; - gchar** _tmp3_; -#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - png_file_format_properties_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->finalize = png_file_format_properties_finalize; -#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_file_format = (PhotoFileFormat (*) (PhotoFileFormatProperties *)) png_file_format_properties_real_get_file_format; -#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_flags = (PhotoFileFormatFlags (*) (PhotoFileFormatProperties *)) png_file_format_properties_real_get_flags; -#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_user_visible_name = (gchar* (*) (PhotoFileFormatProperties *)) png_file_format_properties_real_get_user_visible_name; -#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_default_extension = (gchar* (*) (PhotoFileFormatProperties *)) png_file_format_properties_real_get_default_extension; -#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_known_extensions = (gchar** (*) (PhotoFileFormatProperties *, int*)) png_file_format_properties_real_get_known_extensions; -#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_default_mime_type = (gchar* (*) (PhotoFileFormatProperties *)) png_file_format_properties_real_get_default_mime_type; -#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_mime_types = (gchar** (*) (PhotoFileFormatProperties *, int*)) png_file_format_properties_real_get_mime_types; -#line 8 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = g_strdup ("png"); -#line 8 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp1_ = g_new0 (gchar*, 1 + 1); -#line 8 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp1_[0] = _tmp0_; -#line 8 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - png_file_format_properties_KNOWN_EXTENSIONS = _tmp1_; -#line 8 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - png_file_format_properties_KNOWN_EXTENSIONS_length1 = 1; -#line 9 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp2_ = g_strdup ("image/png"); -#line 9 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp3_ = g_new0 (gchar*, 1 + 1); -#line 9 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp3_[0] = _tmp2_; -#line 9 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - png_file_format_properties_KNOWN_MIME_TYPES = _tmp3_; -#line 9 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - png_file_format_properties_KNOWN_MIME_TYPES_length1 = 1; -#line 1016 "PngSupport.c" -} - - -static void -png_file_format_properties_instance_init (PngFileFormatProperties * self) -{ -} - - -static void -png_file_format_properties_finalize (PhotoFileFormatProperties * obj) -{ - PngFileFormatProperties * self; -#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PNG_FILE_FORMAT_PROPERTIES, PngFileFormatProperties); -#line 7 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - PHOTO_FILE_FORMAT_PROPERTIES_CLASS (png_file_format_properties_parent_class)->finalize (obj); -#line 1034 "PngSupport.c" -} - - -GType -png_file_format_properties_get_type (void) -{ - static volatile gsize png_file_format_properties_type_id__volatile = 0; - if (g_once_init_enter (&png_file_format_properties_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PngFileFormatPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) png_file_format_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PngFileFormatProperties), 0, (GInstanceInitFunc) png_file_format_properties_instance_init, NULL }; - GType png_file_format_properties_type_id; - png_file_format_properties_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_PROPERTIES, "PngFileFormatProperties", &g_define_type_info, 0); - g_once_init_leave (&png_file_format_properties_type_id__volatile, png_file_format_properties_type_id); - } - return png_file_format_properties_type_id__volatile; -} - - -PngSniffer* -png_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options) -{ - PngSniffer* self = NULL; -#line 53 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 54 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = (PngSniffer*) gdk_sniffer_construct (object_type, file, options); -#line 53 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return self; -#line 1064 "PngSupport.c" -} - - -PngSniffer* -png_sniffer_new (GFile* file, - PhotoFileSnifferOptions options) -{ -#line 53 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return png_sniffer_construct (TYPE_PNG_SNIFFER, file, options); -#line 1074 "PngSupport.c" -} - - -static gboolean -png_sniffer_is_png_file (GFile* file, - GError** error) -{ - gboolean result = FALSE; - GFileInputStream* instream = NULL; - GFileInputStream* _tmp0_; - guint8* file_lead_sequence = NULL; - guint8* _tmp2_; - gint file_lead_sequence_length1; - gint _file_lead_sequence_size_; - GFileInputStream* _tmp3_; - guint8* _tmp4_; - gint _tmp4__length1; - GError * _inner_error_ = NULL; -#line 57 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 58 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = g_file_read (file, NULL, &_inner_error_); -#line 58 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - instream = _tmp0_; -#line 58 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1101 "PngSupport.c" - gboolean _tmp1_ = FALSE; -#line 58 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_propagate_error (error, _inner_error_); -#line 58 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return _tmp1_; -#line 1107 "PngSupport.c" - } -#line 60 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp2_ = g_new0 (guint8, G_N_ELEMENTS (PNG_SNIFFER_MAGIC_SEQUENCE)); -#line 60 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - file_lead_sequence = _tmp2_; -#line 60 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - file_lead_sequence_length1 = G_N_ELEMENTS (PNG_SNIFFER_MAGIC_SEQUENCE); -#line 60 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _file_lead_sequence_size_ = file_lead_sequence_length1; -#line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp3_ = instream; -#line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp4_ = file_lead_sequence; -#line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp4__length1 = file_lead_sequence_length1; -#line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_input_stream_read (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, g_input_stream_get_type (), GInputStream), _tmp4_, (gsize) _tmp4__length1, NULL, &_inner_error_); -#line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1127 "PngSupport.c" - gboolean _tmp5_ = FALSE; -#line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_propagate_error (error, _inner_error_); -#line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - file_lead_sequence = (g_free (file_lead_sequence), NULL); -#line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _g_object_unref0 (instream); -#line 62 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return _tmp5_; -#line 1137 "PngSupport.c" - } - { - gint i = 0; -#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - i = 0; -#line 1143 "PngSupport.c" - { - gboolean _tmp6_ = FALSE; -#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp6_ = TRUE; -#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - while (TRUE) { -#line 1150 "PngSupport.c" - gint _tmp8_; - guint8* _tmp9_; - gint _tmp9__length1; - gint _tmp10_; - guint8 _tmp11_; - gint _tmp12_; - guint8 _tmp13_; -#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (!_tmp6_) { -#line 1160 "PngSupport.c" - gint _tmp7_; -#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp7_ = i; -#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - i = _tmp7_ + 1; -#line 1166 "PngSupport.c" - } -#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp6_ = FALSE; -#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp8_ = i; -#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (!(_tmp8_ < G_N_ELEMENTS (PNG_SNIFFER_MAGIC_SEQUENCE))) { -#line 64 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - break; -#line 1176 "PngSupport.c" - } -#line 65 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp9_ = file_lead_sequence; -#line 65 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp9__length1 = file_lead_sequence_length1; -#line 65 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp10_ = i; -#line 65 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp11_ = _tmp9_[_tmp10_]; -#line 65 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp12_ = i; -#line 65 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp13_ = PNG_SNIFFER_MAGIC_SEQUENCE[_tmp12_]; -#line 65 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (_tmp11_ != _tmp13_) { -#line 66 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = FALSE; -#line 66 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - file_lead_sequence = (g_free (file_lead_sequence), NULL); -#line 66 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _g_object_unref0 (instream); -#line 66 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 1200 "PngSupport.c" - } - } - } - } -#line 69 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = TRUE; -#line 69 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - file_lead_sequence = (g_free (file_lead_sequence), NULL); -#line 69 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _g_object_unref0 (instream); -#line 69 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 1213 "PngSupport.c" -} - - -static gpointer -_detected_photo_information_ref0 (gpointer self) -{ -#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return self ? detected_photo_information_ref (self) : NULL; -#line 1222 "PngSupport.c" -} - - -static DetectedPhotoInformation* -png_sniffer_real_sniff (PhotoFileSniffer* base, - gboolean* is_corrupted, - GError** error) -{ - PngSniffer * self; - gboolean _vala_is_corrupted = FALSE; - DetectedPhotoInformation* result = NULL; - gboolean _tmp0_ = FALSE; - GFile* _tmp1_; - DetectedPhotoInformation* detected = NULL; - gboolean _tmp2_ = FALSE; - DetectedPhotoInformation* _tmp3_; - DetectedPhotoInformation* _tmp4_; - DetectedPhotoInformation* _tmp5_ = NULL; - DetectedPhotoInformation* _tmp6_; - PhotoFileFormat _tmp7_; - DetectedPhotoInformation* _tmp9_; - GError * _inner_error_ = NULL; -#line 72 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_SNIFFER, PngSniffer); -#line 74 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _vala_is_corrupted = FALSE; -#line 76 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file; -#line 76 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = png_sniffer_is_png_file (_tmp1_, &_inner_error_); -#line 76 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 76 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_propagate_error (error, _inner_error_); -#line 76 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return NULL; -#line 1259 "PngSupport.c" - } -#line 76 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (!_tmp0_) { -#line 77 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = NULL; -#line 77 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (is_corrupted) { -#line 77 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - *is_corrupted = _vala_is_corrupted; -#line 1269 "PngSupport.c" - } -#line 77 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 1273 "PngSupport.c" - } -#line 79 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp3_ = PHOTO_FILE_SNIFFER_CLASS (png_sniffer_parent_class)->sniff (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_GDK_SNIFFER, GdkSniffer), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer), &_tmp2_, &_inner_error_); -#line 79 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _vala_is_corrupted = _tmp2_; -#line 79 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - detected = _tmp3_; -#line 79 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 79 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_propagate_error (error, _inner_error_); -#line 79 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return NULL; -#line 1287 "PngSupport.c" - } -#line 80 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp4_ = detected; -#line 80 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (_tmp4_ == NULL) { -#line 81 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = NULL; -#line 81 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _detected_photo_information_unref0 (detected); -#line 81 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (is_corrupted) { -#line 81 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - *is_corrupted = _vala_is_corrupted; -#line 1301 "PngSupport.c" - } -#line 81 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 1305 "PngSupport.c" - } -#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp6_ = detected; -#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp7_ = _tmp6_->file_format; -#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (_tmp7_ == PHOTO_FILE_FORMAT_PNG) { -#line 1313 "PngSupport.c" - DetectedPhotoInformation* _tmp8_; -#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp8_ = detected; -#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp5_ = _tmp8_; -#line 1319 "PngSupport.c" - } else { -#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp5_ = NULL; -#line 1323 "PngSupport.c" - } -#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp9_ = _detected_photo_information_ref0 (_tmp5_); -#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = _tmp9_; -#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _detected_photo_information_unref0 (detected); -#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (is_corrupted) { -#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - *is_corrupted = _vala_is_corrupted; -#line 1335 "PngSupport.c" - } -#line 83 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 1339 "PngSupport.c" -} - - -static void -png_sniffer_class_init (PngSnifferClass * klass) -{ -#line 50 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - png_sniffer_parent_class = g_type_class_peek_parent (klass); -#line 50 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileSnifferClass *) klass)->sniff = (DetectedPhotoInformation* (*) (PhotoFileSniffer *, gboolean*, GError**)) png_sniffer_real_sniff; -#line 1350 "PngSupport.c" -} - - -static void -png_sniffer_instance_init (PngSniffer * self) -{ -} - - -GType -png_sniffer_get_type (void) -{ - static volatile gsize png_sniffer_type_id__volatile = 0; - if (g_once_init_enter (&png_sniffer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PngSnifferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) png_sniffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PngSniffer), 0, (GInstanceInitFunc) png_sniffer_instance_init, NULL }; - GType png_sniffer_type_id; - png_sniffer_type_id = g_type_register_static (TYPE_GDK_SNIFFER, "PngSniffer", &g_define_type_info, 0); - g_once_init_leave (&png_sniffer_type_id__volatile, png_sniffer_type_id); - } - return png_sniffer_type_id__volatile; -} - - -PngReader* -png_reader_construct (GType object_type, - const gchar* filepath) -{ - PngReader* self = NULL; -#line 88 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 89 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = (PngReader*) gdk_reader_construct (object_type, filepath, PHOTO_FILE_FORMAT_PNG); -#line 88 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return self; -#line 1385 "PngSupport.c" -} - - -PngReader* -png_reader_new (const gchar* filepath) -{ -#line 88 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return png_reader_construct (TYPE_PNG_READER, filepath); -#line 1394 "PngSupport.c" -} - - -static GdkPixbuf* -png_reader_real_scaled_read (PhotoFileReader* base, - Dimensions* full, - Dimensions* scaled, - GError** error) -{ - PngReader * self; - GdkPixbuf* result = NULL; - GdkPixbuf* _result_ = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - Dimensions _tmp2_; - gint _tmp3_; - GError * _inner_error_ = NULL; -#line 92 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_READER, PngReader); -#line 92 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_return_val_if_fail (full != NULL, NULL); -#line 92 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_return_val_if_fail (scaled != NULL, NULL); -#line 93 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _result_ = NULL; -#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp2_ = *full; -#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp3_ = _tmp2_.width; -#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (_tmp3_ > 9999) { -#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp1_ = TRUE; -#line 1428 "PngSupport.c" - } else { - Dimensions _tmp4_; - gint _tmp5_; -#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp4_ = *full; -#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp5_ = _tmp4_.height; -#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp1_ = _tmp5_ > 9999; -#line 1438 "PngSupport.c" - } -#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (_tmp1_) { -#line 1442 "PngSupport.c" - gboolean _tmp6_ = FALSE; - Dimensions _tmp7_; - gint _tmp8_; -#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp7_ = *scaled; -#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp8_ = _tmp7_.width; -#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (_tmp8_ < 100) { -#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp6_ = TRUE; -#line 1454 "PngSupport.c" - } else { - Dimensions _tmp9_; - gint _tmp10_; -#line 103 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp9_ = *scaled; -#line 103 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp10_ = _tmp9_.height; -#line 103 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp6_ = _tmp10_ < 100; -#line 1464 "PngSupport.c" - } -#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = _tmp6_; -#line 1468 "PngSupport.c" - } else { -#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = FALSE; -#line 1472 "PngSupport.c" - } -#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (_tmp0_) { -#line 1476 "PngSupport.c" - Dimensions prefetch_dimensions = {0}; - Dimensions _tmp11_ = {0}; - GdkPixbuf* _tmp12_ = NULL; - gchar* _tmp13_; - gchar* _tmp14_; - Dimensions _tmp15_; - gint _tmp16_; - Dimensions _tmp17_; - gint _tmp18_; - GdkPixbuf* _tmp19_; - GdkPixbuf* _tmp20_; - GdkPixbuf* _tmp21_; - GdkPixbuf* _tmp22_; - Dimensions _tmp23_; - gint _tmp24_; - Dimensions _tmp25_; - gint _tmp26_; - GdkPixbuf* _tmp27_; -#line 104 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - dimensions_get_scaled_by_constraint (full, 1000, SCALE_CONSTRAINT_DIMENSIONS, &_tmp11_); -#line 104 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - prefetch_dimensions = _tmp11_; -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp13_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp14_ = _tmp13_; -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp15_ = prefetch_dimensions; -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp16_ = _tmp15_.width; -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp17_ = prefetch_dimensions; -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp18_ = _tmp17_.height; -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp19_ = gdk_pixbuf_new_from_file_at_scale (_tmp14_, _tmp16_, _tmp18_, FALSE, &_inner_error_); -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp20_ = _tmp19_; -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _g_free0 (_tmp14_); -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp12_ = _tmp20_; -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_propagate_error (error, _inner_error_); -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _g_object_unref0 (_result_); -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return NULL; -#line 1527 "PngSupport.c" - } -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp21_ = _tmp12_; -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp12_ = NULL; -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _g_object_unref0 (_result_); -#line 107 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _result_ = _tmp21_; -#line 110 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp22_ = _result_; -#line 110 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp23_ = *scaled; -#line 110 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp24_ = _tmp23_.width; -#line 110 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp25_ = *scaled; -#line 110 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp26_ = _tmp25_.height; -#line 110 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp27_ = gdk_pixbuf_scale_simple (_tmp22_, _tmp24_, _tmp26_, GDK_INTERP_HYPER); -#line 110 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _g_object_unref0 (_result_); -#line 110 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _result_ = _tmp27_; -#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _g_object_unref0 (_tmp12_); -#line 1555 "PngSupport.c" - } else { - GdkPixbuf* _tmp28_ = NULL; - gchar* _tmp29_; - gchar* _tmp30_; - Dimensions _tmp31_; - gint _tmp32_; - Dimensions _tmp33_; - gint _tmp34_; - GdkPixbuf* _tmp35_; - GdkPixbuf* _tmp36_; - GdkPixbuf* _tmp37_; -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp29_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp30_ = _tmp29_; -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp31_ = *scaled; -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp32_ = _tmp31_.width; -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp33_ = *scaled; -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp34_ = _tmp33_.height; -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp35_ = gdk_pixbuf_new_from_file_at_scale (_tmp30_, _tmp32_, _tmp34_, FALSE, &_inner_error_); -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp36_ = _tmp35_; -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _g_free0 (_tmp30_); -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp28_ = _tmp36_; -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_propagate_error (error, _inner_error_); -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _g_object_unref0 (_result_); -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return NULL; -#line 1595 "PngSupport.c" - } -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp37_ = _tmp28_; -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp28_ = NULL; -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _g_object_unref0 (_result_); -#line 112 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _result_ = _tmp37_; -#line 102 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _g_object_unref0 (_tmp28_); -#line 1607 "PngSupport.c" - } -#line 116 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = _result_; -#line 116 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 1613 "PngSupport.c" -} - - -static void -png_reader_class_init (PngReaderClass * klass) -{ -#line 87 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - png_reader_parent_class = g_type_class_peek_parent (klass); -#line 87 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileReaderClass *) klass)->scaled_read = (GdkPixbuf* (*) (PhotoFileReader *, Dimensions*, Dimensions*, GError**)) png_reader_real_scaled_read; -#line 1624 "PngSupport.c" -} - - -static void -png_reader_instance_init (PngReader * self) -{ -} - - -GType -png_reader_get_type (void) -{ - static volatile gsize png_reader_type_id__volatile = 0; - if (g_once_init_enter (&png_reader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PngReaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) png_reader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PngReader), 0, (GInstanceInitFunc) png_reader_instance_init, NULL }; - GType png_reader_type_id; - png_reader_type_id = g_type_register_static (TYPE_GDK_READER, "PngReader", &g_define_type_info, 0); - g_once_init_leave (&png_reader_type_id__volatile, png_reader_type_id); - } - return png_reader_type_id__volatile; -} - - -PngWriter* -png_writer_construct (GType object_type, - const gchar* filepath) -{ - PngWriter* self = NULL; -#line 121 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 122 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = (PngWriter*) photo_file_writer_construct (object_type, filepath, PHOTO_FILE_FORMAT_PNG); -#line 121 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return self; -#line 1659 "PngSupport.c" -} - - -PngWriter* -png_writer_new (const gchar* filepath) -{ -#line 121 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return png_writer_construct (TYPE_PNG_WRITER, filepath); -#line 1668 "PngSupport.c" -} - - -static void -png_writer_real_write (PhotoFileWriter* base, - GdkPixbuf* pixbuf, - JpegQuality quality, - GError** error) -{ - PngWriter * self; - gchar* _tmp0_; - gchar* _tmp1_; - GError * _inner_error_ = NULL; -#line 125 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_WRITER, PngWriter); -#line 125 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 126 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 126 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp1_ = _tmp0_; -#line 126 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - gdk_pixbuf_save (pixbuf, _tmp1_, "png", &_inner_error_, "compression", "9", NULL, NULL); -#line 126 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _g_free0 (_tmp1_); -#line 126 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 126 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_propagate_error (error, _inner_error_); -#line 126 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return; -#line 1700 "PngSupport.c" - } -} - - -static void -png_writer_class_init (PngWriterClass * klass) -{ -#line 120 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - png_writer_parent_class = g_type_class_peek_parent (klass); -#line 120 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileWriterClass *) klass)->write = (void (*) (PhotoFileWriter *, GdkPixbuf*, JpegQuality, GError**)) png_writer_real_write; -#line 1712 "PngSupport.c" -} - - -static void -png_writer_instance_init (PngWriter * self) -{ -} - - -GType -png_writer_get_type (void) -{ - static volatile gsize png_writer_type_id__volatile = 0; - if (g_once_init_enter (&png_writer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PngWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) png_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PngWriter), 0, (GInstanceInitFunc) png_writer_instance_init, NULL }; - GType png_writer_type_id; - png_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_WRITER, "PngWriter", &g_define_type_info, 0); - g_once_init_leave (&png_writer_type_id__volatile, png_writer_type_id); - } - return png_writer_type_id__volatile; -} - - -PngMetadataWriter* -png_metadata_writer_construct (GType object_type, - const gchar* filepath) -{ - PngMetadataWriter* self = NULL; -#line 131 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 132 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = (PngMetadataWriter*) photo_file_metadata_writer_construct (object_type, filepath, PHOTO_FILE_FORMAT_PNG); -#line 131 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return self; -#line 1747 "PngSupport.c" -} - - -PngMetadataWriter* -png_metadata_writer_new (const gchar* filepath) -{ -#line 131 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return png_metadata_writer_construct (TYPE_PNG_METADATA_WRITER, filepath); -#line 1756 "PngSupport.c" -} - - -static void -png_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* base, - PhotoMetadata* metadata, - GError** error) -{ - PngMetadataWriter * self; - GFile* _tmp0_; - GFile* _tmp1_; - GError * _inner_error_ = NULL; -#line 135 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_METADATA_WRITER, PngMetadataWriter); -#line 135 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_return_if_fail (IS_PHOTO_METADATA (metadata)); -#line 136 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 136 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp1_ = _tmp0_; -#line 136 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - photo_metadata_write_to_file (metadata, _tmp1_, &_inner_error_); -#line 136 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _g_object_unref0 (_tmp1_); -#line 136 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 136 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_propagate_error (error, _inner_error_); -#line 136 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return; -#line 1787 "PngSupport.c" - } -} - - -static void -png_metadata_writer_class_init (PngMetadataWriterClass * klass) -{ -#line 130 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - png_metadata_writer_parent_class = g_type_class_peek_parent (klass); -#line 130 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileMetadataWriterClass *) klass)->write_metadata = (void (*) (PhotoFileMetadataWriter *, PhotoMetadata*, GError**)) png_metadata_writer_real_write_metadata; -#line 1799 "PngSupport.c" -} - - -static void -png_metadata_writer_instance_init (PngMetadataWriter * self) -{ -} - - -GType -png_metadata_writer_get_type (void) -{ - static volatile gsize png_metadata_writer_type_id__volatile = 0; - if (g_once_init_enter (&png_metadata_writer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PngMetadataWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) png_metadata_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PngMetadataWriter), 0, (GInstanceInitFunc) png_metadata_writer_instance_init, NULL }; - GType png_metadata_writer_type_id; - png_metadata_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_METADATA_WRITER, "PngMetadataWriter", &g_define_type_info, 0); - g_once_init_leave (&png_metadata_writer_type_id__volatile, png_metadata_writer_type_id); - } - return png_metadata_writer_type_id__volatile; -} - - -void -png_file_format_driver_init (void) -{ - PngFileFormatDriver* _tmp0_; -#line 144 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = png_file_format_driver_new (); -#line 144 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _photo_file_format_driver_unref0 (png_file_format_driver_instance); -#line 144 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - png_file_format_driver_instance = _tmp0_; -#line 145 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - png_file_format_properties_init (); -#line 1835 "PngSupport.c" -} - - -static gpointer -_photo_file_format_driver_ref0 (gpointer self) -{ -#line 149 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return self ? photo_file_format_driver_ref (self) : NULL; -#line 1844 "PngSupport.c" -} - - -PngFileFormatDriver* -png_file_format_driver_get_instance (void) -{ - PngFileFormatDriver* result = NULL; - PngFileFormatDriver* _tmp0_; - PngFileFormatDriver* _tmp1_; -#line 149 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = png_file_format_driver_instance; -#line 149 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp1_ = _photo_file_format_driver_ref0 (_tmp0_); -#line 149 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = _tmp1_; -#line 149 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 1862 "PngSupport.c" -} - - -static PhotoFileFormatProperties* -png_file_format_driver_real_get_properties (PhotoFileFormatDriver* base) -{ - PngFileFormatDriver * self; - PhotoFileFormatProperties* result = NULL; - PngFileFormatProperties* _tmp0_; -#line 152 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver); -#line 153 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = png_file_format_properties_get_instance (); -#line 153 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties); -#line 153 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 1880 "PngSupport.c" -} - - -static PhotoFileReader* -png_file_format_driver_real_create_reader (PhotoFileFormatDriver* base, - const gchar* filepath) -{ - PngFileFormatDriver * self; - PhotoFileReader* result = NULL; - PngReader* _tmp0_; -#line 156 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver); -#line 156 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 157 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = png_reader_new (filepath); -#line 157 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_READER, PhotoFileReader); -#line 157 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 1901 "PngSupport.c" -} - - -static gboolean -png_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base) -{ - PngFileFormatDriver * self; - gboolean result = FALSE; -#line 160 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver); -#line 161 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = TRUE; -#line 161 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 1916 "PngSupport.c" -} - - -static gboolean -png_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base) -{ - PngFileFormatDriver * self; - gboolean result = FALSE; -#line 164 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver); -#line 165 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = TRUE; -#line 165 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 1931 "PngSupport.c" -} - - -static PhotoFileWriter* -png_file_format_driver_real_create_writer (PhotoFileFormatDriver* base, - const gchar* filepath) -{ - PngFileFormatDriver * self; - PhotoFileWriter* result = NULL; - PngWriter* _tmp0_; -#line 168 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver); -#line 168 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 169 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = png_writer_new (filepath); -#line 169 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_WRITER, PhotoFileWriter); -#line 169 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 1952 "PngSupport.c" -} - - -static PhotoFileMetadataWriter* -png_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base, - const gchar* filepath) -{ - PngFileFormatDriver * self; - PhotoFileMetadataWriter* result = NULL; - PngMetadataWriter* _tmp0_; -#line 172 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver); -#line 172 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 173 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = png_metadata_writer_new (filepath); -#line 173 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter); -#line 173 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 1973 "PngSupport.c" -} - - -static PhotoFileSniffer* -png_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base, - GFile* file, - PhotoFileSnifferOptions options) -{ - PngFileFormatDriver * self; - PhotoFileSniffer* result = NULL; - PngSniffer* _tmp0_; -#line 176 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver); -#line 176 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 177 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = png_sniffer_new (file, options); -#line 177 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer); -#line 177 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 1995 "PngSupport.c" -} - - -static PhotoMetadata* -png_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base) -{ - PngFileFormatDriver * self; - PhotoMetadata* result = NULL; - PhotoMetadata* _tmp0_; -#line 180 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver); -#line 181 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - _tmp0_ = photo_metadata_new (); -#line 181 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - result = _tmp0_; -#line 181 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return result; -#line 2013 "PngSupport.c" -} - - -PngFileFormatDriver* -png_file_format_driver_construct (GType object_type) -{ - PngFileFormatDriver* self = NULL; -#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = (PngFileFormatDriver*) photo_file_format_driver_construct (object_type); -#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return self; -#line 2025 "PngSupport.c" -} - - -PngFileFormatDriver* -png_file_format_driver_new (void) -{ -#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - return png_file_format_driver_construct (TYPE_PNG_FILE_FORMAT_DRIVER); -#line 2034 "PngSupport.c" -} - - -static void -png_file_format_driver_class_init (PngFileFormatDriverClass * klass) -{ -#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - png_file_format_driver_parent_class = g_type_class_peek_parent (klass); -#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->finalize = png_file_format_driver_finalize; -#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->get_properties = (PhotoFileFormatProperties* (*) (PhotoFileFormatDriver *)) png_file_format_driver_real_get_properties; -#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_reader = (PhotoFileReader* (*) (PhotoFileFormatDriver *, const gchar*)) png_file_format_driver_real_create_reader; -#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->can_write_image = (gboolean (*) (PhotoFileFormatDriver *)) png_file_format_driver_real_can_write_image; -#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->can_write_metadata = (gboolean (*) (PhotoFileFormatDriver *)) png_file_format_driver_real_can_write_metadata; -#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_writer = (PhotoFileWriter* (*) (PhotoFileFormatDriver *, const gchar*)) png_file_format_driver_real_create_writer; -#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_metadata_writer = (PhotoFileMetadataWriter* (*) (PhotoFileFormatDriver *, const gchar*)) png_file_format_driver_real_create_metadata_writer; -#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_sniffer = (PhotoFileSniffer* (*) (PhotoFileFormatDriver *, GFile*, PhotoFileSnifferOptions)) png_file_format_driver_real_create_sniffer; -#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_metadata = (PhotoMetadata* (*) (PhotoFileFormatDriver *)) png_file_format_driver_real_create_metadata; -#line 2061 "PngSupport.c" -} - - -static void -png_file_format_driver_instance_init (PngFileFormatDriver * self) -{ -} - - -static void -png_file_format_driver_finalize (PhotoFileFormatDriver * obj) -{ - PngFileFormatDriver * self; -#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PNG_FILE_FORMAT_DRIVER, PngFileFormatDriver); -#line 140 "/home/jens/Source/shotwell/src/photos/PngSupport.vala" - PHOTO_FILE_FORMAT_DRIVER_CLASS (png_file_format_driver_parent_class)->finalize (obj); -#line 2079 "PngSupport.c" -} - - -GType -png_file_format_driver_get_type (void) -{ - static volatile gsize png_file_format_driver_type_id__volatile = 0; - if (g_once_init_enter (&png_file_format_driver_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PngFileFormatDriverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) png_file_format_driver_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PngFileFormatDriver), 0, (GInstanceInitFunc) png_file_format_driver_instance_init, NULL }; - GType png_file_format_driver_type_id; - png_file_format_driver_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_DRIVER, "PngFileFormatDriver", &g_define_type_info, 0); - g_once_init_leave (&png_file_format_driver_type_id__volatile, png_file_format_driver_type_id); - } - return png_file_format_driver_type_id__volatile; -} - - - diff --git a/src/photos/RawSupport.c b/src/photos/RawSupport.c deleted file mode 100644 index bd5b4b7..0000000 --- a/src/photos/RawSupport.c +++ /dev/null @@ -1,3325 +0,0 @@ -/* RawSupport.c generated by valac 0.40.4, the Vala compiler - * generated from RawSupport.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PHOTO_FILE_FORMAT_DRIVER (photo_file_format_driver_get_type ()) -#define PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver)) -#define PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass)) -#define IS_PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER)) -#define IS_PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER)) -#define PHOTO_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass)) - -typedef struct _PhotoFileFormatDriver PhotoFileFormatDriver; -typedef struct _PhotoFileFormatDriverClass PhotoFileFormatDriverClass; -typedef struct _PhotoFileFormatDriverPrivate PhotoFileFormatDriverPrivate; - -#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ()) -#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties)) -#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) - -typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties; -typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass; - -#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ()) -#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)) -#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) -#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER)) -#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER)) -#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) - -typedef struct _PhotoFileAdapter PhotoFileAdapter; -typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass; - -#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ()) -#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader)) -#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) -#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER)) -#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER)) -#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) - -typedef struct _PhotoFileReader PhotoFileReader; -typedef struct _PhotoFileReaderClass PhotoFileReaderClass; - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; - -#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ()) -#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter)) -#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) -#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER)) -#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER)) -#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) - -typedef struct _PhotoFileWriter PhotoFileWriter; -typedef struct _PhotoFileWriterClass PhotoFileWriterClass; - -#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ()) -#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter)) -#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass)) -#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER)) -#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER)) -#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass)) - -typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter; -typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass; - -#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ()) - -#define TYPE_PHOTO_FILE_SNIFFER (photo_file_sniffer_get_type ()) -#define PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)) -#define PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass)) -#define IS_PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_SNIFFER)) -#define IS_PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_SNIFFER)) -#define PHOTO_FILE_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass)) - -typedef struct _PhotoFileSniffer PhotoFileSniffer; -typedef struct _PhotoFileSnifferClass PhotoFileSnifferClass; - -#define TYPE_RAW_FILE_FORMAT_DRIVER (raw_file_format_driver_get_type ()) -#define RAW_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver)) -#define RAW_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriverClass)) -#define IS_RAW_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RAW_FILE_FORMAT_DRIVER)) -#define IS_RAW_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RAW_FILE_FORMAT_DRIVER)) -#define RAW_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriverClass)) - -typedef struct _RawFileFormatDriver RawFileFormatDriver; -typedef struct _RawFileFormatDriverClass RawFileFormatDriverClass; -typedef struct _RawFileFormatDriverPrivate RawFileFormatDriverPrivate; -#define _photo_file_format_driver_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_driver_unref (var), NULL))) - -#define TYPE_RAW_FILE_FORMAT_PROPERTIES (raw_file_format_properties_get_type ()) -#define RAW_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties)) -#define RAW_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatPropertiesClass)) -#define IS_RAW_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RAW_FILE_FORMAT_PROPERTIES)) -#define IS_RAW_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RAW_FILE_FORMAT_PROPERTIES)) -#define RAW_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatPropertiesClass)) - -typedef struct _RawFileFormatProperties RawFileFormatProperties; -typedef struct _RawFileFormatPropertiesClass RawFileFormatPropertiesClass; - -#define TYPE_RAW_READER (raw_reader_get_type ()) -#define RAW_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RAW_READER, RawReader)) -#define RAW_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RAW_READER, RawReaderClass)) -#define IS_RAW_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RAW_READER)) -#define IS_RAW_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RAW_READER)) -#define RAW_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RAW_READER, RawReaderClass)) - -typedef struct _RawReader RawReader; -typedef struct _RawReaderClass RawReaderClass; - -#define TYPE_RAW_SNIFFER (raw_sniffer_get_type ()) -#define RAW_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RAW_SNIFFER, RawSniffer)) -#define RAW_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RAW_SNIFFER, RawSnifferClass)) -#define IS_RAW_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RAW_SNIFFER)) -#define IS_RAW_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RAW_SNIFFER)) -#define RAW_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RAW_SNIFFER, RawSnifferClass)) - -typedef struct _RawSniffer RawSniffer; -typedef struct _RawSnifferClass RawSnifferClass; -typedef struct _PhotoFileFormatPropertiesPrivate PhotoFileFormatPropertiesPrivate; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_PHOTO_FILE_FORMAT_FLAGS (photo_file_format_flags_get_type ()) -typedef struct _RawFileFormatPropertiesPrivate RawFileFormatPropertiesPrivate; -#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL))) -typedef struct _PhotoFileSnifferPrivate PhotoFileSnifferPrivate; - -#define TYPE_DETECTED_PHOTO_INFORMATION (detected_photo_information_get_type ()) -#define DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation)) -#define DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass)) -#define IS_DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DETECTED_PHOTO_INFORMATION)) -#define IS_DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DETECTED_PHOTO_INFORMATION)) -#define DETECTED_PHOTO_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass)) - -typedef struct _DetectedPhotoInformation DetectedPhotoInformation; -typedef struct _DetectedPhotoInformationClass DetectedPhotoInformationClass; -typedef struct _RawSnifferPrivate RawSnifferPrivate; - -#define GRAW_TYPE_PROCESSOR (graw_processor_get_type ()) -#define GRAW_PROCESSOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GRAW_TYPE_PROCESSOR, GRawProcessor)) -#define GRAW_PROCESSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GRAW_TYPE_PROCESSOR, GRawProcessorClass)) -#define GRAW_IS_PROCESSOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GRAW_TYPE_PROCESSOR)) -#define GRAW_IS_PROCESSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GRAW_TYPE_PROCESSOR)) -#define GRAW_PROCESSOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GRAW_TYPE_PROCESSOR, GRawProcessorClass)) - -typedef struct _GRawProcessor GRawProcessor; -typedef struct _GRawProcessorClass GRawProcessorClass; - -#define GRAW_TYPE_FLIP (graw_flip_get_type ()) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _graw_processor_unref0(var) ((var == NULL) ? NULL : (var = (graw_processor_unref (var), NULL))) -#define _detected_photo_information_unref0(var) ((var == NULL) ? NULL : (var = (detected_photo_information_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -typedef struct _DetectedPhotoInformationPrivate DetectedPhotoInformationPrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -#define _media_metadata_unref0(var) ((var == NULL) ? NULL : (var = (media_metadata_unref (var), NULL))) -#define _photo_file_adapter_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_adapter_unref (var), NULL))) -typedef struct _PhotoFileAdapterPrivate PhotoFileAdapterPrivate; -typedef struct _PhotoFileReaderPrivate PhotoFileReaderPrivate; -typedef struct _RawReaderPrivate RawReaderPrivate; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define GRAW_TYPE_PROCESSED_IMAGE (graw_processed_image_get_type ()) -#define GRAW_PROCESSED_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImage)) -#define GRAW_PROCESSED_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImageClass)) -#define GRAW_IS_PROCESSED_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GRAW_TYPE_PROCESSED_IMAGE)) -#define GRAW_IS_PROCESSED_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GRAW_TYPE_PROCESSED_IMAGE)) -#define GRAW_PROCESSED_IMAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GRAW_TYPE_PROCESSED_IMAGE, GRawProcessedImageClass)) - -typedef struct _GRawProcessedImage GRawProcessedImage; -typedef struct _GRawProcessedImageClass GRawProcessedImageClass; -#define _graw_processed_image_unref0(var) ((var == NULL) ? NULL : (var = (graw_processed_image_unref (var), NULL))) - -#define PHOTO_FILE_READER_TYPE_ROLE (photo_file_reader_role_get_type ()) - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) - -#define TYPE_BACKING_PHOTO_ROW (backing_photo_row_get_type ()) -#define BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRow)) -#define BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) -#define IS_BACKING_PHOTO_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKING_PHOTO_ROW)) -#define IS_BACKING_PHOTO_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKING_PHOTO_ROW)) -#define BACKING_PHOTO_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKING_PHOTO_ROW, BackingPhotoRowClass)) - -typedef struct _BackingPhotoRow BackingPhotoRow; -typedef struct _BackingPhotoRowClass BackingPhotoRowClass; -#define _backing_photo_row_unref0(var) ((var == NULL) ? NULL : (var = (backing_photo_row_unref (var), NULL))) -typedef struct _BackingPhotoRowPrivate BackingPhotoRowPrivate; - -#define TYPE_BACKING_PHOTO_ID (backing_photo_id_get_type ()) -typedef struct _BackingPhotoID BackingPhotoID; - -#define TYPE_ORIENTATION (orientation_get_type ()) - -typedef enum { - PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000, - PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001 -} PhotoFileSnifferOptions; - -struct _PhotoFileFormatDriver { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileFormatDriverPrivate * priv; -}; - -struct _PhotoFileFormatDriverClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileFormatDriver *self); - PhotoFileFormatProperties* (*get_properties) (PhotoFileFormatDriver* self); - PhotoFileReader* (*create_reader) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoMetadata* (*create_metadata) (PhotoFileFormatDriver* self); - gboolean (*can_write_image) (PhotoFileFormatDriver* self); - gboolean (*can_write_metadata) (PhotoFileFormatDriver* self); - PhotoFileWriter* (*create_writer) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoFileMetadataWriter* (*create_metadata_writer) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoFileSniffer* (*create_sniffer) (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options); -}; - -struct _RawFileFormatDriver { - PhotoFileFormatDriver parent_instance; - RawFileFormatDriverPrivate * priv; -}; - -struct _RawFileFormatDriverClass { - PhotoFileFormatDriverClass parent_class; -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef enum { - PHOTO_FILE_FORMAT_FLAGS_NONE = 0x00000000 -} PhotoFileFormatFlags; - -struct _PhotoFileFormatProperties { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileFormatPropertiesPrivate * priv; -}; - -struct _PhotoFileFormatPropertiesClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileFormatProperties *self); - PhotoFileFormat (*get_file_format) (PhotoFileFormatProperties* self); - PhotoFileFormatFlags (*get_flags) (PhotoFileFormatProperties* self); - gboolean (*is_recognized_extension) (PhotoFileFormatProperties* self, const gchar* ext); - gchar* (*get_default_extension) (PhotoFileFormatProperties* self); - gchar** (*get_known_extensions) (PhotoFileFormatProperties* self, int* result_length1); - gchar* (*get_default_mime_type) (PhotoFileFormatProperties* self); - gchar** (*get_mime_types) (PhotoFileFormatProperties* self, int* result_length1); - gchar* (*get_user_visible_name) (PhotoFileFormatProperties* self); -}; - -struct _RawFileFormatProperties { - PhotoFileFormatProperties parent_instance; - RawFileFormatPropertiesPrivate * priv; -}; - -struct _RawFileFormatPropertiesClass { - PhotoFileFormatPropertiesClass parent_class; -}; - -struct _PhotoFileSniffer { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileSnifferPrivate * priv; - GFile* file; - PhotoFileSnifferOptions options; - gboolean calc_md5; -}; - -struct _PhotoFileSnifferClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileSniffer *self); - DetectedPhotoInformation* (*sniff) (PhotoFileSniffer* self, gboolean* is_corrupted, GError** error); -}; - -struct _RawSniffer { - PhotoFileSniffer parent_instance; - RawSnifferPrivate * priv; -}; - -struct _RawSnifferClass { - PhotoFileSnifferClass parent_class; -}; - -typedef enum { - GRAW_FLIP_FROM_SOURCE = -1, - GRAW_FLIP_NONE = 0, - GRAW_FLIP_UPSIDE_DOWN = 3, - GRAW_FLIP_COUNTERCLOCKWISE = 5, - GRAW_FLIP_CLOCKWISE = 6 -} GRawFlip; - -typedef enum { - GRAW_EXCEPTION_UNSPECIFIED, - GRAW_EXCEPTION_UNSUPPORTED_FILE, - GRAW_EXCEPTION_NONEXISTANT_IMAGE, - GRAW_EXCEPTION_OUT_OF_ORDER_CALL, - GRAW_EXCEPTION_NO_THUMBNAIL, - GRAW_EXCEPTION_UNSUPPORTED_THUMBNAIL, - GRAW_EXCEPTION_OUT_OF_MEMORY, - GRAW_EXCEPTION_DATA_ERROR, - GRAW_EXCEPTION_IO_ERROR, - GRAW_EXCEPTION_CANCELLED_BY_CALLBACK, - GRAW_EXCEPTION_BAD_CROP, - GRAW_EXCEPTION_SYSTEM_ERROR -} GRawException; -#define GRAW_EXCEPTION graw_exception_quark () -struct _Dimensions { - gint width; - gint height; -}; - -struct _DetectedPhotoInformation { - GTypeInstance parent_instance; - volatile int ref_count; - DetectedPhotoInformationPrivate * priv; - PhotoFileFormat file_format; - PhotoMetadata* metadata; - gchar* md5; - gchar* exif_md5; - gchar* thumbnail_md5; - gchar* format_name; - Dimensions image_dim; - GdkColorspace colorspace; - gint channels; - gint bits_per_channel; -}; - -struct _DetectedPhotoInformationClass { - GTypeClass parent_class; - void (*finalize) (DetectedPhotoInformation *self); -}; - -struct _PhotoFileAdapter { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileAdapterPrivate * priv; -}; - -struct _PhotoFileAdapterClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileAdapter *self); -}; - -struct _PhotoFileReader { - PhotoFileAdapter parent_instance; - PhotoFileReaderPrivate * priv; -}; - -struct _PhotoFileReaderClass { - PhotoFileAdapterClass parent_class; - PhotoMetadata* (*read_metadata) (PhotoFileReader* self, GError** error); - GdkPixbuf* (*unscaled_read) (PhotoFileReader* self, GError** error); - GdkPixbuf* (*scaled_read) (PhotoFileReader* self, Dimensions* full, Dimensions* scaled, GError** error); -}; - -struct _RawReader { - PhotoFileReader parent_instance; - RawReaderPrivate * priv; -}; - -struct _RawReaderClass { - PhotoFileReaderClass parent_class; -}; - -typedef enum { - PHOTO_FILE_READER_ROLE_DEFAULT, - PHOTO_FILE_READER_ROLE_THUMBNAIL -} PhotoFileReaderRole; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _BackingPhotoID { - gint64 id; -}; - -typedef enum { - ORIENTATION_MIN = 1, - ORIENTATION_TOP_LEFT = 1, - ORIENTATION_TOP_RIGHT = 2, - ORIENTATION_BOTTOM_RIGHT = 3, - ORIENTATION_BOTTOM_LEFT = 4, - ORIENTATION_LEFT_TOP = 5, - ORIENTATION_RIGHT_TOP = 6, - ORIENTATION_RIGHT_BOTTOM = 7, - ORIENTATION_LEFT_BOTTOM = 8, - ORIENTATION_MAX = 8 -} Orientation; - -struct _BackingPhotoRow { - GTypeInstance parent_instance; - volatile int ref_count; - BackingPhotoRowPrivate * priv; - BackingPhotoID id; - time_t time_created; - gchar* filepath; - gint64 filesize; - time_t timestamp; - PhotoFileFormat file_format; - Dimensions dim; - Orientation original_orientation; -}; - -struct _BackingPhotoRowClass { - GTypeClass parent_class; - void (*finalize) (BackingPhotoRow *self); -}; - - -static gpointer raw_file_format_driver_parent_class = NULL; -static RawFileFormatDriver* raw_file_format_driver_instance; -static RawFileFormatDriver* raw_file_format_driver_instance = NULL; -static gpointer raw_file_format_properties_parent_class = NULL; -static gchar** raw_file_format_properties_KNOWN_EXTENSIONS; -static gint raw_file_format_properties_KNOWN_EXTENSIONS_length1; -static gchar** raw_file_format_properties_KNOWN_EXTENSIONS = NULL; -static gint raw_file_format_properties_KNOWN_EXTENSIONS_length1 = 0; -static gint _raw_file_format_properties_KNOWN_EXTENSIONS_size_ = 0; -static gchar** raw_file_format_properties_KNOWN_MIME_TYPES; -static gint raw_file_format_properties_KNOWN_MIME_TYPES_length1; -static gchar** raw_file_format_properties_KNOWN_MIME_TYPES = NULL; -static gint raw_file_format_properties_KNOWN_MIME_TYPES_length1 = 0; -static gint _raw_file_format_properties_KNOWN_MIME_TYPES_size_ = 0; -static RawFileFormatProperties* raw_file_format_properties_instance; -static RawFileFormatProperties* raw_file_format_properties_instance = NULL; -static gpointer raw_sniffer_parent_class = NULL; -static gpointer raw_reader_parent_class = NULL; - -gpointer photo_file_format_driver_ref (gpointer instance); -void photo_file_format_driver_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_driver (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_format_driver (GValue* value, - gpointer v_object); -void value_take_photo_file_format_driver (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_format_driver (const GValue* value); -GType photo_file_format_driver_get_type (void) G_GNUC_CONST; -gpointer photo_file_format_properties_ref (gpointer instance); -void photo_file_format_properties_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_properties (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_format_properties (GValue* value, - gpointer v_object); -void value_take_photo_file_format_properties (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_format_properties (const GValue* value); -GType photo_file_format_properties_get_type (void) G_GNUC_CONST; -gpointer photo_file_adapter_ref (gpointer instance); -void photo_file_adapter_unref (gpointer instance); -GParamSpec* param_spec_photo_file_adapter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_adapter (GValue* value, - gpointer v_object); -void value_take_photo_file_adapter (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_adapter (const GValue* value); -GType photo_file_adapter_get_type (void) G_GNUC_CONST; -GType photo_file_reader_get_type (void) G_GNUC_CONST; -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -GType photo_file_writer_get_type (void) G_GNUC_CONST; -GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST; -GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST; -gpointer photo_file_sniffer_ref (gpointer instance); -void photo_file_sniffer_unref (gpointer instance); -GParamSpec* param_spec_photo_file_sniffer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_sniffer (GValue* value, - gpointer v_object); -void value_take_photo_file_sniffer (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_sniffer (const GValue* value); -GType photo_file_sniffer_get_type (void) G_GNUC_CONST; -GType raw_file_format_driver_get_type (void) G_GNUC_CONST; -void raw_file_format_driver_init (void); -RawFileFormatDriver* raw_file_format_driver_new (void); -RawFileFormatDriver* raw_file_format_driver_construct (GType object_type); -void raw_file_format_properties_init (void); -RawFileFormatDriver* raw_file_format_driver_get_instance (void); -static PhotoFileFormatProperties* raw_file_format_driver_real_get_properties (PhotoFileFormatDriver* base); -GType raw_file_format_properties_get_type (void) G_GNUC_CONST; -RawFileFormatProperties* raw_file_format_properties_get_instance (void); -static PhotoFileReader* raw_file_format_driver_real_create_reader (PhotoFileFormatDriver* base, - const gchar* filepath); -RawReader* raw_reader_new (const gchar* filepath); -RawReader* raw_reader_construct (GType object_type, - const gchar* filepath); -GType raw_reader_get_type (void) G_GNUC_CONST; -static PhotoMetadata* raw_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base); -PhotoMetadata* photo_metadata_new (void); -PhotoMetadata* photo_metadata_construct (GType object_type); -static gboolean raw_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base); -static gboolean raw_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base); -static PhotoFileWriter* raw_file_format_driver_real_create_writer (PhotoFileFormatDriver* base, - const gchar* filepath); -static PhotoFileMetadataWriter* raw_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base, - const gchar* filepath); -static PhotoFileSniffer* raw_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base, - GFile* file, - PhotoFileSnifferOptions options); -RawSniffer* raw_sniffer_new (GFile* file, - PhotoFileSnifferOptions options); -RawSniffer* raw_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options); -GType raw_sniffer_get_type (void) G_GNUC_CONST; -PhotoFileFormatDriver* photo_file_format_driver_construct (GType object_type); -static void raw_file_format_driver_finalize (PhotoFileFormatDriver * obj); -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType photo_file_format_flags_get_type (void) G_GNUC_CONST; -RawFileFormatProperties* raw_file_format_properties_new (void); -RawFileFormatProperties* raw_file_format_properties_construct (GType object_type); -static PhotoFileFormat raw_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base); -static gchar* raw_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base); -static PhotoFileFormatFlags raw_file_format_properties_real_get_flags (PhotoFileFormatProperties* base); -static gchar* raw_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base); -static gchar** raw_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base, - int* result_length1); -static gchar** _vala_array_dup10 (gchar** self, - int length); -static gchar* raw_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base); -static gchar** raw_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base, - int* result_length1); -static gchar** _vala_array_dup11 (gchar** self, - int length); -PhotoFileFormatProperties* photo_file_format_properties_construct (GType object_type); -static void raw_file_format_properties_finalize (PhotoFileFormatProperties * obj); -gpointer detected_photo_information_ref (gpointer instance); -void detected_photo_information_unref (gpointer instance); -GParamSpec* param_spec_detected_photo_information (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_detected_photo_information (GValue* value, - gpointer v_object); -void value_take_detected_photo_information (GValue* value, - gpointer v_object); -gpointer value_get_detected_photo_information (const GValue* value); -GType detected_photo_information_get_type (void) G_GNUC_CONST; -PhotoFileSniffer* photo_file_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options); -static DetectedPhotoInformation* raw_sniffer_real_sniff (PhotoFileSniffer* base, - gboolean* is_corrupted, - GError** error); -DetectedPhotoInformation* detected_photo_information_new (void); -DetectedPhotoInformation* detected_photo_information_construct (GType object_type); -gpointer graw_processor_ref (gpointer instance); -void graw_processor_unref (gpointer instance); -GParamSpec* graw_param_spec_processor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void graw_value_set_processor (GValue* value, - gpointer v_object); -void graw_value_take_processor (GValue* value, - gpointer v_object); -gpointer graw_value_get_processor (const GValue* value); -GType graw_processor_get_type (void) G_GNUC_CONST; -GRawProcessor* graw_processor_new (enum LibRaw_constructor_flags options); -GRawProcessor* graw_processor_construct (GType object_type, - enum LibRaw_constructor_flags options); -libraw_output_params_t* graw_processor_get_output_params (GRawProcessor* self); -GType graw_flip_get_type (void) G_GNUC_CONST; -GQuark graw_exception_quark (void); -void graw_processor_open_file (GRawProcessor* self, - const gchar* filename, - GError** error); -void graw_processor_unpack (GRawProcessor* self, - GError** error); -void graw_processor_adjust_sizes_info_only (GRawProcessor* self, - GError** error); -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -libraw_image_sizes_t graw_processor_get_sizes (GRawProcessor* self); -void dimensions_init (Dimensions *self, - gint width, - gint height); -PhotoMetadata* photo_file_reader_read_metadata (PhotoFileReader* self, - GError** error); -gchar* photo_metadata_exif_hash (PhotoMetadata* self); -gchar* photo_metadata_thumbnail_hash (PhotoMetadata* self); -gchar* md5_file (GFile* file, - GError** error); -PhotoFileReader* photo_file_reader_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -static PhotoMetadata* raw_reader_real_read_metadata (PhotoFileReader* base, - GError** error); -void media_metadata_read_from_file (MediaMetadata* self, - GFile* file, - GError** error); -GFile* photo_file_adapter_get_file (PhotoFileAdapter* self); -static GdkPixbuf* raw_reader_real_unscaled_read (PhotoFileReader* base, - GError** error); -void graw_processor_configure_for_rgb_display (GRawProcessor* self, - gboolean half_size); -gchar* photo_file_adapter_get_filepath (PhotoFileAdapter* self); -void graw_processor_process (GRawProcessor* self, - GError** error); -gpointer graw_processed_image_ref (gpointer instance); -void graw_processed_image_unref (gpointer instance); -GParamSpec* graw_param_spec_processed_image (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void graw_value_set_processed_image (GValue* value, - gpointer v_object); -void graw_value_take_processed_image (GValue* value, - gpointer v_object); -gpointer graw_value_get_processed_image (const GValue* value); -GType graw_processed_image_get_type (void) G_GNUC_CONST; -GRawProcessedImage* graw_processor_make_mem_image (GRawProcessor* self, - GError** error); -GdkPixbuf* graw_processed_image_get_pixbuf_copy (GRawProcessedImage* self); -static GdkPixbuf* raw_reader_real_scaled_read (PhotoFileReader* base, - Dimensions* full, - Dimensions* scaled, - GError** error); -GType photo_file_reader_role_get_type (void) G_GNUC_CONST; -PhotoFileReaderRole photo_file_reader_get_role (PhotoFileReader* self); -void graw_processor_unpack_thumb (GRawProcessor* self, - GError** error); -GRawProcessedImage* graw_processor_make_thumb_image (GRawProcessor* self, - GError** error); -GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf, - Dimensions* resized, - GdkInterpType interp); -GType raw_developer_get_type (void) G_GNUC_CONST; -RawDeveloper* raw_developer_as_array (int* result_length1); -gchar* raw_developer_to_string (RawDeveloper self); -RawDeveloper raw_developer_from_string (const gchar* value); -gchar* raw_developer_get_label (RawDeveloper self); -gboolean raw_developer_is_equivalent (RawDeveloper self, - RawDeveloper d); -gpointer backing_photo_row_ref (gpointer instance); -void backing_photo_row_unref (gpointer instance); -GParamSpec* param_spec_backing_photo_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_backing_photo_row (GValue* value, - gpointer v_object); -void value_take_backing_photo_row (GValue* value, - gpointer v_object); -gpointer value_get_backing_photo_row (const GValue* value); -GType backing_photo_row_get_type (void) G_GNUC_CONST; -BackingPhotoRow* raw_developer_create_backing_row_for_development (RawDeveloper self, - const gchar* raw_filepath, - const gchar* camera_development_filename, - GError** error); -BackingPhotoRow* backing_photo_row_new (void); -BackingPhotoRow* backing_photo_row_construct (GType object_type); -void disassemble_filename (const gchar* basename, - gchar* * name, - gchar* * ext); -gchar* library_files_convert_basename (const gchar* basename); -GFile* generate_unique_file (GFile* dir, - const gchar* basename, - gboolean* collision, - GError** error); -gboolean claim_file (GFile* file, - GError** error); -GType backing_photo_id_get_type (void) G_GNUC_CONST; -BackingPhotoID* backing_photo_id_dup (const BackingPhotoID* self); -void backing_photo_id_free (BackingPhotoID* self); -GType orientation_get_type (void) G_GNUC_CONST; - - -void -raw_file_format_driver_init (void) -{ - RawFileFormatDriver* _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = raw_file_format_driver_new (); -#line 11 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _photo_file_format_driver_unref0 (raw_file_format_driver_instance); -#line 11 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - raw_file_format_driver_instance = _tmp0_; -#line 12 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - raw_file_format_properties_init (); -#line 766 "RawSupport.c" -} - - -static gpointer -_photo_file_format_driver_ref0 (gpointer self) -{ -#line 16 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return self ? photo_file_format_driver_ref (self) : NULL; -#line 775 "RawSupport.c" -} - - -RawFileFormatDriver* -raw_file_format_driver_get_instance (void) -{ - RawFileFormatDriver* result = NULL; - RawFileFormatDriver* _tmp0_; - RawFileFormatDriver* _tmp1_; -#line 16 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = raw_file_format_driver_instance; -#line 16 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1_ = _photo_file_format_driver_ref0 (_tmp0_); -#line 16 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = _tmp1_; -#line 16 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 793 "RawSupport.c" -} - - -static PhotoFileFormatProperties* -raw_file_format_driver_real_get_properties (PhotoFileFormatDriver* base) -{ - RawFileFormatDriver * self; - PhotoFileFormatProperties* result = NULL; - RawFileFormatProperties* _tmp0_; -#line 19 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver); -#line 20 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = raw_file_format_properties_get_instance (); -#line 20 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties); -#line 20 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 811 "RawSupport.c" -} - - -static PhotoFileReader* -raw_file_format_driver_real_create_reader (PhotoFileFormatDriver* base, - const gchar* filepath) -{ - RawFileFormatDriver * self; - PhotoFileReader* result = NULL; - RawReader* _tmp0_; -#line 23 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver); -#line 23 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 24 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = raw_reader_new (filepath); -#line 24 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_READER, PhotoFileReader); -#line 24 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 832 "RawSupport.c" -} - - -static PhotoMetadata* -raw_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base) -{ - RawFileFormatDriver * self; - PhotoMetadata* result = NULL; - PhotoMetadata* _tmp0_; -#line 27 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver); -#line 28 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = photo_metadata_new (); -#line 28 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = _tmp0_; -#line 28 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 850 "RawSupport.c" -} - - -static gboolean -raw_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base) -{ - RawFileFormatDriver * self; - gboolean result = FALSE; -#line 31 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver); -#line 32 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = FALSE; -#line 32 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 865 "RawSupport.c" -} - - -static gboolean -raw_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base) -{ - RawFileFormatDriver * self; - gboolean result = FALSE; -#line 35 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver); -#line 36 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = FALSE; -#line 36 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 880 "RawSupport.c" -} - - -static PhotoFileWriter* -raw_file_format_driver_real_create_writer (PhotoFileFormatDriver* base, - const gchar* filepath) -{ - RawFileFormatDriver * self; - PhotoFileWriter* result = NULL; -#line 39 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver); -#line 39 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 40 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = NULL; -#line 40 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 898 "RawSupport.c" -} - - -static PhotoFileMetadataWriter* -raw_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base, - const gchar* filepath) -{ - RawFileFormatDriver * self; - PhotoFileMetadataWriter* result = NULL; -#line 43 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver); -#line 43 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 44 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = NULL; -#line 44 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 916 "RawSupport.c" -} - - -static PhotoFileSniffer* -raw_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base, - GFile* file, - PhotoFileSnifferOptions options) -{ - RawFileFormatDriver * self; - PhotoFileSniffer* result = NULL; - RawSniffer* _tmp0_; -#line 47 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver); -#line 47 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 48 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = raw_sniffer_new (file, options); -#line 48 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer); -#line 48 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 938 "RawSupport.c" -} - - -RawFileFormatDriver* -raw_file_format_driver_construct (GType object_type) -{ - RawFileFormatDriver* self = NULL; -#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = (RawFileFormatDriver*) photo_file_format_driver_construct (object_type); -#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return self; -#line 950 "RawSupport.c" -} - - -RawFileFormatDriver* -raw_file_format_driver_new (void) -{ -#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return raw_file_format_driver_construct (TYPE_RAW_FILE_FORMAT_DRIVER); -#line 959 "RawSupport.c" -} - - -static void -raw_file_format_driver_class_init (RawFileFormatDriverClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - raw_file_format_driver_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->finalize = raw_file_format_driver_finalize; -#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->get_properties = (PhotoFileFormatProperties* (*) (PhotoFileFormatDriver *)) raw_file_format_driver_real_get_properties; -#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_reader = (PhotoFileReader* (*) (PhotoFileFormatDriver *, const gchar*)) raw_file_format_driver_real_create_reader; -#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_metadata = (PhotoMetadata* (*) (PhotoFileFormatDriver *)) raw_file_format_driver_real_create_metadata; -#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->can_write_image = (gboolean (*) (PhotoFileFormatDriver *)) raw_file_format_driver_real_can_write_image; -#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->can_write_metadata = (gboolean (*) (PhotoFileFormatDriver *)) raw_file_format_driver_real_can_write_metadata; -#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_writer = (PhotoFileWriter* (*) (PhotoFileFormatDriver *, const gchar*)) raw_file_format_driver_real_create_writer; -#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_metadata_writer = (PhotoFileMetadataWriter* (*) (PhotoFileFormatDriver *, const gchar*)) raw_file_format_driver_real_create_metadata_writer; -#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_sniffer = (PhotoFileSniffer* (*) (PhotoFileFormatDriver *, GFile*, PhotoFileSnifferOptions)) raw_file_format_driver_real_create_sniffer; -#line 986 "RawSupport.c" -} - - -static void -raw_file_format_driver_instance_init (RawFileFormatDriver * self) -{ -} - - -static void -raw_file_format_driver_finalize (PhotoFileFormatDriver * obj) -{ - RawFileFormatDriver * self; -#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RAW_FILE_FORMAT_DRIVER, RawFileFormatDriver); -#line 7 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - PHOTO_FILE_FORMAT_DRIVER_CLASS (raw_file_format_driver_parent_class)->finalize (obj); -#line 1004 "RawSupport.c" -} - - -GType -raw_file_format_driver_get_type (void) -{ - static volatile gsize raw_file_format_driver_type_id__volatile = 0; - if (g_once_init_enter (&raw_file_format_driver_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (RawFileFormatDriverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) raw_file_format_driver_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RawFileFormatDriver), 0, (GInstanceInitFunc) raw_file_format_driver_instance_init, NULL }; - GType raw_file_format_driver_type_id; - raw_file_format_driver_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_DRIVER, "RawFileFormatDriver", &g_define_type_info, 0); - g_once_init_leave (&raw_file_format_driver_type_id__volatile, raw_file_format_driver_type_id); - } - return raw_file_format_driver_type_id__volatile; -} - - -void -raw_file_format_properties_init (void) -{ - RawFileFormatProperties* _tmp0_; -#line 122 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = raw_file_format_properties_new (); -#line 122 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _photo_file_format_properties_unref0 (raw_file_format_properties_instance); -#line 122 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - raw_file_format_properties_instance = _tmp0_; -#line 1032 "RawSupport.c" -} - - -static gpointer -_photo_file_format_properties_ref0 (gpointer self) -{ -#line 126 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return self ? photo_file_format_properties_ref (self) : NULL; -#line 1041 "RawSupport.c" -} - - -RawFileFormatProperties* -raw_file_format_properties_get_instance (void) -{ - RawFileFormatProperties* result = NULL; - RawFileFormatProperties* _tmp0_; - RawFileFormatProperties* _tmp1_; -#line 126 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = raw_file_format_properties_instance; -#line 126 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1_ = _photo_file_format_properties_ref0 (_tmp0_); -#line 126 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = _tmp1_; -#line 126 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 1059 "RawSupport.c" -} - - -static PhotoFileFormat -raw_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base) -{ - RawFileFormatProperties * self; - PhotoFileFormat result = 0; -#line 129 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties); -#line 130 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = PHOTO_FILE_FORMAT_RAW; -#line 130 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 1074 "RawSupport.c" -} - - -static gchar* -raw_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base) -{ - RawFileFormatProperties * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 133 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties); -#line 134 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = g_strdup (_ ("RAW")); -#line 134 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = _tmp0_; -#line 134 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 1092 "RawSupport.c" -} - - -static PhotoFileFormatFlags -raw_file_format_properties_real_get_flags (PhotoFileFormatProperties* base) -{ - RawFileFormatProperties * self; - PhotoFileFormatFlags result = 0; -#line 137 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties); -#line 138 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = PHOTO_FILE_FORMAT_FLAGS_NONE; -#line 138 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 1107 "RawSupport.c" -} - - -static gchar* -raw_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base) -{ - RawFileFormatProperties * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 141 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties); -#line 145 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = g_strdup ("raw"); -#line 145 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = _tmp0_; -#line 145 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 1125 "RawSupport.c" -} - - -static gchar** -_vala_array_dup10 (gchar** self, - int length) -{ - gchar** result; - int i; -#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = g_new0 (gchar*, length + 1); -#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - for (i = 0; i < length; i++) { -#line 1139 "RawSupport.c" - gchar* _tmp0_; -#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = g_strdup (self[i]); -#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result[i] = _tmp0_; -#line 1145 "RawSupport.c" - } -#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 1149 "RawSupport.c" -} - - -static gchar** -raw_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base, - int* result_length1) -{ - RawFileFormatProperties * self; - gchar** result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - gchar** _tmp1_; - gint _tmp1__length1; - gchar** _tmp2_; - gint _tmp2__length1; -#line 148 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties); -#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = raw_file_format_properties_KNOWN_EXTENSIONS; -#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0__length1 = raw_file_format_properties_KNOWN_EXTENSIONS_length1; -#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup10 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_); -#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1__length1 = _tmp0__length1; -#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp2_ = _tmp1_; -#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp2__length1 = _tmp1__length1; -#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (result_length1) { -#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - *result_length1 = _tmp2__length1; -#line 1183 "RawSupport.c" - } -#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = _tmp2_; -#line 149 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 1189 "RawSupport.c" -} - - -static gchar* -raw_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base) -{ - RawFileFormatProperties * self; - gchar* result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 152 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties); -#line 153 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = raw_file_format_properties_KNOWN_MIME_TYPES; -#line 153 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0__length1 = raw_file_format_properties_KNOWN_MIME_TYPES_length1; -#line 153 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1_ = _tmp0_[0]; -#line 153 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 153 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = _tmp2_; -#line 153 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 1216 "RawSupport.c" -} - - -static gchar** -_vala_array_dup11 (gchar** self, - int length) -{ - gchar** result; - int i; -#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = g_new0 (gchar*, length + 1); -#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - for (i = 0; i < length; i++) { -#line 1230 "RawSupport.c" - gchar* _tmp0_; -#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = g_strdup (self[i]); -#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result[i] = _tmp0_; -#line 1236 "RawSupport.c" - } -#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 1240 "RawSupport.c" -} - - -static gchar** -raw_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base, - int* result_length1) -{ - RawFileFormatProperties * self; - gchar** result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - gchar** _tmp1_; - gint _tmp1__length1; - gchar** _tmp2_; - gint _tmp2__length1; -#line 156 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties); -#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = raw_file_format_properties_KNOWN_MIME_TYPES; -#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0__length1 = raw_file_format_properties_KNOWN_MIME_TYPES_length1; -#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup11 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_); -#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1__length1 = _tmp0__length1; -#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp2_ = _tmp1_; -#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp2__length1 = _tmp1__length1; -#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (result_length1) { -#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - *result_length1 = _tmp2__length1; -#line 1274 "RawSupport.c" - } -#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = _tmp2_; -#line 157 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 1280 "RawSupport.c" -} - - -RawFileFormatProperties* -raw_file_format_properties_construct (GType object_type) -{ - RawFileFormatProperties* self = NULL; -#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = (RawFileFormatProperties*) photo_file_format_properties_construct (object_type); -#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return self; -#line 1292 "RawSupport.c" -} - - -RawFileFormatProperties* -raw_file_format_properties_new (void) -{ -#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return raw_file_format_properties_construct (TYPE_RAW_FILE_FORMAT_PROPERTIES); -#line 1301 "RawSupport.c" -} - - -static void -raw_file_format_properties_class_init (RawFileFormatPropertiesClass * klass) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - gchar* _tmp29_; - gchar* _tmp30_; - gchar* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - gchar* _tmp34_; - gchar* _tmp35_; - gchar** _tmp36_; - gchar* _tmp37_; - gchar* _tmp38_; - gchar* _tmp39_; - gchar* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; - gchar* _tmp43_; - gchar* _tmp44_; - gchar* _tmp45_; - gchar* _tmp46_; - gchar* _tmp47_; - gchar* _tmp48_; - gchar* _tmp49_; - gchar* _tmp50_; - gchar* _tmp51_; - gchar* _tmp52_; - gchar* _tmp53_; - gchar* _tmp54_; - gchar* _tmp55_; - gchar* _tmp56_; - gchar* _tmp57_; - gchar* _tmp58_; - gchar* _tmp59_; - gchar* _tmp60_; - gchar* _tmp61_; - gchar* _tmp62_; - gchar* _tmp63_; - gchar* _tmp64_; - gchar* _tmp65_; - gchar* _tmp66_; - gchar* _tmp67_; - gchar* _tmp68_; - gchar* _tmp69_; - gchar* _tmp70_; - gchar* _tmp71_; - gchar* _tmp72_; - gchar* _tmp73_; - gchar* _tmp74_; - gchar* _tmp75_; - gchar* _tmp76_; - gchar* _tmp77_; - gchar* _tmp78_; - gchar* _tmp79_; - gchar* _tmp80_; - gchar* _tmp81_; - gchar* _tmp82_; - gchar* _tmp83_; - gchar* _tmp84_; - gchar* _tmp85_; - gchar* _tmp86_; - gchar* _tmp87_; - gchar** _tmp88_; -#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - raw_file_format_properties_parent_class = g_type_class_peek_parent (klass); -#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->finalize = raw_file_format_properties_finalize; -#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_file_format = (PhotoFileFormat (*) (PhotoFileFormatProperties *)) raw_file_format_properties_real_get_file_format; -#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_user_visible_name = (gchar* (*) (PhotoFileFormatProperties *)) raw_file_format_properties_real_get_user_visible_name; -#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_flags = (PhotoFileFormatFlags (*) (PhotoFileFormatProperties *)) raw_file_format_properties_real_get_flags; -#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_default_extension = (gchar* (*) (PhotoFileFormatProperties *)) raw_file_format_properties_real_get_default_extension; -#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_known_extensions = (gchar** (*) (PhotoFileFormatProperties *, int*)) raw_file_format_properties_real_get_known_extensions; -#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_default_mime_type = (gchar* (*) (PhotoFileFormatProperties *)) raw_file_format_properties_real_get_default_mime_type; -#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_mime_types = (gchar** (*) (PhotoFileFormatProperties *, int*)) raw_file_format_properties_real_get_mime_types; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = g_strdup ("3fr"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1_ = g_strdup ("arw"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp2_ = g_strdup ("srf"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp3_ = g_strdup ("sr2"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp4_ = g_strdup ("bay"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp5_ = g_strdup ("crw"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp6_ = g_strdup ("cr2"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp7_ = g_strdup ("cap"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp8_ = g_strdup ("iiq"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp9_ = g_strdup ("eip"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp10_ = g_strdup ("dcs"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp11_ = g_strdup ("dcr"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp12_ = g_strdup ("drf"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp13_ = g_strdup ("k25"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp14_ = g_strdup ("kdc"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp15_ = g_strdup ("dng"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp16_ = g_strdup ("erf"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp17_ = g_strdup ("fff"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp18_ = g_strdup ("mef"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp19_ = g_strdup ("mos"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp20_ = g_strdup ("mrw"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp21_ = g_strdup ("nef"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp22_ = g_strdup ("nrw"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp23_ = g_strdup ("orf"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp24_ = g_strdup ("ptx"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp25_ = g_strdup ("pef"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp26_ = g_strdup ("pxn"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp27_ = g_strdup ("r3d"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp28_ = g_strdup ("raf"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp29_ = g_strdup ("raw"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp30_ = g_strdup ("rw2"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp31_ = g_strdup ("raw"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp32_ = g_strdup ("rwl"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp33_ = g_strdup ("rwz"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp34_ = g_strdup ("x3f"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp35_ = g_strdup ("srw"); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_ = g_new0 (gchar*, 36 + 1); -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[0] = _tmp0_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[1] = _tmp1_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[2] = _tmp2_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[3] = _tmp3_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[4] = _tmp4_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[5] = _tmp5_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[6] = _tmp6_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[7] = _tmp7_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[8] = _tmp8_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[9] = _tmp9_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[10] = _tmp10_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[11] = _tmp11_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[12] = _tmp12_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[13] = _tmp13_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[14] = _tmp14_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[15] = _tmp15_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[16] = _tmp16_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[17] = _tmp17_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[18] = _tmp18_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[19] = _tmp19_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[20] = _tmp20_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[21] = _tmp21_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[22] = _tmp22_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[23] = _tmp23_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[24] = _tmp24_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[25] = _tmp25_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[26] = _tmp26_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[27] = _tmp27_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[28] = _tmp28_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[29] = _tmp29_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[30] = _tmp30_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[31] = _tmp31_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[32] = _tmp32_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[33] = _tmp33_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[34] = _tmp34_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_[35] = _tmp35_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - raw_file_format_properties_KNOWN_EXTENSIONS = _tmp36_; -#line 53 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - raw_file_format_properties_KNOWN_EXTENSIONS_length1 = 36; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp37_ = g_strdup ("image/x-dcraw"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp38_ = g_strdup ("image/x-canon-cr2"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp39_ = g_strdup ("image/x-canon-crw"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp40_ = g_strdup ("image/x-fuji-raf"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp41_ = g_strdup ("image/x-adobe-dng"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp42_ = g_strdup ("image/x-panasonic-raw"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp43_ = g_strdup ("image/x-raw"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp44_ = g_strdup ("image/x-minolta-mrw"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp45_ = g_strdup ("image/x-nikon-nef"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp46_ = g_strdup ("image/x-olympus-orf"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp47_ = g_strdup ("image/x-pentax-pef"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp48_ = g_strdup ("image/x-sony-arw"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp49_ = g_strdup ("image/x-sony-srf"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp50_ = g_strdup ("image/x-sony-sr2"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp51_ = g_strdup ("image/x-samsung-raw"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp52_ = g_strdup ("image/x-3fr"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp53_ = g_strdup ("image/x-arw"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp54_ = g_strdup ("image/x-srf"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp55_ = g_strdup ("image/x-sr2"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp56_ = g_strdup ("image/x-bay"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp57_ = g_strdup ("image/x-crw"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp58_ = g_strdup ("image/x-cr2"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp59_ = g_strdup ("image/x-cap"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp60_ = g_strdup ("image/x-iiq"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp61_ = g_strdup ("image/x-eip"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp62_ = g_strdup ("image/x-dcs"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp63_ = g_strdup ("image/x-dcr"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp64_ = g_strdup ("image/x-drf"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp65_ = g_strdup ("image/x-k25"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp66_ = g_strdup ("image/x-kdc"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp67_ = g_strdup ("image/x-dng"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp68_ = g_strdup ("image/x-erf"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp69_ = g_strdup ("image/x-fff"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp70_ = g_strdup ("image/x-mef"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp71_ = g_strdup ("image/x-mos"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp72_ = g_strdup ("image/x-mrw"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp73_ = g_strdup ("image/x-nef"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp74_ = g_strdup ("image/x-nrw"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp75_ = g_strdup ("image/x-orf"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp76_ = g_strdup ("image/x-ptx"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp77_ = g_strdup ("image/x-pef"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp78_ = g_strdup ("image/x-pxn"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp79_ = g_strdup ("image/x-r3d"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp80_ = g_strdup ("image/x-raf"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp81_ = g_strdup ("image/x-raw"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp82_ = g_strdup ("image/x-rw2"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp83_ = g_strdup ("image/x-raw"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp84_ = g_strdup ("image/x-rwl"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp85_ = g_strdup ("image/x-rwz"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp86_ = g_strdup ("image/x-x3f"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp87_ = g_strdup ("image/x-srw"); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_ = g_new0 (gchar*, 51 + 1); -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[0] = _tmp37_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[1] = _tmp38_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[2] = _tmp39_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[3] = _tmp40_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[4] = _tmp41_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[5] = _tmp42_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[6] = _tmp43_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[7] = _tmp44_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[8] = _tmp45_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[9] = _tmp46_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[10] = _tmp47_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[11] = _tmp48_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[12] = _tmp49_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[13] = _tmp50_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[14] = _tmp51_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[15] = _tmp52_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[16] = _tmp53_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[17] = _tmp54_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[18] = _tmp55_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[19] = _tmp56_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[20] = _tmp57_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[21] = _tmp58_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[22] = _tmp59_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[23] = _tmp60_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[24] = _tmp61_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[25] = _tmp62_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[26] = _tmp63_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[27] = _tmp64_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[28] = _tmp65_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[29] = _tmp66_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[30] = _tmp67_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[31] = _tmp68_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[32] = _tmp69_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[33] = _tmp70_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[34] = _tmp71_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[35] = _tmp72_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[36] = _tmp73_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[37] = _tmp74_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[38] = _tmp75_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[39] = _tmp76_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[40] = _tmp77_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[41] = _tmp78_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[42] = _tmp79_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[43] = _tmp80_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[44] = _tmp81_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[45] = _tmp82_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[46] = _tmp83_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[47] = _tmp84_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[48] = _tmp85_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[49] = _tmp86_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp88_[50] = _tmp87_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - raw_file_format_properties_KNOWN_MIME_TYPES = _tmp88_; -#line 59 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - raw_file_format_properties_KNOWN_MIME_TYPES_length1 = 51; -#line 1775 "RawSupport.c" -} - - -static void -raw_file_format_properties_instance_init (RawFileFormatProperties * self) -{ -} - - -static void -raw_file_format_properties_finalize (PhotoFileFormatProperties * obj) -{ - RawFileFormatProperties * self; -#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RAW_FILE_FORMAT_PROPERTIES, RawFileFormatProperties); -#line 52 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - PHOTO_FILE_FORMAT_PROPERTIES_CLASS (raw_file_format_properties_parent_class)->finalize (obj); -#line 1793 "RawSupport.c" -} - - -GType -raw_file_format_properties_get_type (void) -{ - static volatile gsize raw_file_format_properties_type_id__volatile = 0; - if (g_once_init_enter (&raw_file_format_properties_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (RawFileFormatPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) raw_file_format_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RawFileFormatProperties), 0, (GInstanceInitFunc) raw_file_format_properties_instance_init, NULL }; - GType raw_file_format_properties_type_id; - raw_file_format_properties_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_PROPERTIES, "RawFileFormatProperties", &g_define_type_info, 0); - g_once_init_leave (&raw_file_format_properties_type_id__volatile, raw_file_format_properties_type_id); - } - return raw_file_format_properties_type_id__volatile; -} - - -RawSniffer* -raw_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options) -{ - RawSniffer* self = NULL; -#line 162 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 163 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = (RawSniffer*) photo_file_sniffer_construct (object_type, file, options); -#line 162 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return self; -#line 1823 "RawSupport.c" -} - - -RawSniffer* -raw_sniffer_new (GFile* file, - PhotoFileSnifferOptions options) -{ -#line 162 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return raw_sniffer_construct (TYPE_RAW_SNIFFER, file, options); -#line 1833 "RawSupport.c" -} - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 183 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return self ? g_error_copy (self) : NULL; -#line 1842 "RawSupport.c" -} - - -static DetectedPhotoInformation* -raw_sniffer_real_sniff (PhotoFileSniffer* base, - gboolean* is_corrupted, - GError** error) -{ - RawSniffer * self; - gboolean _vala_is_corrupted = FALSE; - DetectedPhotoInformation* result = NULL; - DetectedPhotoInformation* detected = NULL; - DetectedPhotoInformation* _tmp0_; - GRawProcessor* processor = NULL; - GRawProcessor* _tmp1_; - GRawProcessor* _tmp2_; - libraw_output_params_t* _tmp3_; - libraw_output_params_t* _tmp4_; - DetectedPhotoInformation* _tmp14_; - GRawProcessor* _tmp15_; - gushort _tmp16_; - GRawProcessor* _tmp17_; - gushort _tmp18_; - DetectedPhotoInformation* _tmp19_; - DetectedPhotoInformation* _tmp20_; - DetectedPhotoInformation* _tmp21_; - RawReader* reader = NULL; - GFile* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - RawReader* _tmp25_; - RawReader* _tmp26_; - DetectedPhotoInformation* _tmp32_; - PhotoMetadata* _tmp33_; - gboolean _tmp42_; - DetectedPhotoInformation* _tmp48_; - gchar* _tmp49_; - DetectedPhotoInformation* _tmp50_; - GError * _inner_error_ = NULL; -#line 166 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_SNIFFER, RawSniffer); -#line 168 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _vala_is_corrupted = FALSE; -#line 170 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = detected_photo_information_new (); -#line 170 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - detected = _tmp0_; -#line 172 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1_ = graw_processor_new (LIBRAW_OPTIONS_NONE); -#line 172 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - processor = _tmp1_; -#line 173 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp2_ = processor; -#line 173 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp3_ = graw_processor_get_output_params (_tmp2_); -#line 173 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp4_ = _tmp3_; -#line 173 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - (*_tmp4_).user_flip = (gint) GRAW_FLIP_NONE; -#line 1902 "RawSupport.c" - { - GRawProcessor* _tmp5_; - GFile* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - GRawProcessor* _tmp9_; - GRawProcessor* _tmp10_; -#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp5_ = processor; -#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file; -#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp7_ = g_file_get_path (_tmp6_); -#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp8_ = _tmp7_; -#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - graw_processor_open_file (_tmp5_, _tmp8_, &_inner_error_); -#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp8_); -#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 1926 "RawSupport.c" - goto __catch36_graw_exception; - } -#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _detected_photo_information_unref0 (detected); -#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_clear_error (&_inner_error_); -#line 176 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 1939 "RawSupport.c" - } -#line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp9_ = processor; -#line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - graw_processor_unpack (_tmp9_, &_inner_error_); -#line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 1949 "RawSupport.c" - goto __catch36_graw_exception; - } -#line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _detected_photo_information_unref0 (detected); -#line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_clear_error (&_inner_error_); -#line 177 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 1962 "RawSupport.c" - } -#line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp10_ = processor; -#line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - graw_processor_adjust_sizes_info_only (_tmp10_, &_inner_error_); -#line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (_inner_error_->domain == GRAW_EXCEPTION) { -#line 1972 "RawSupport.c" - goto __catch36_graw_exception; - } -#line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _detected_photo_information_unref0 (detected); -#line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_clear_error (&_inner_error_); -#line 178 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 1985 "RawSupport.c" - } - } - goto __finally36; - __catch36_graw_exception: - { - GError* exception = NULL; - GError* _tmp11_; - GError* _tmp12_; - GError* _tmp13_; -#line 175 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - exception = _inner_error_; -#line 175 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _inner_error_ = NULL; -#line 180 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp11_ = exception; -#line 180 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (g_error_matches (_tmp11_, GRAW_EXCEPTION, GRAW_EXCEPTION_UNSUPPORTED_FILE)) { -#line 181 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = NULL; -#line 181 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_error_free0 (exception); -#line 181 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 181 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _detected_photo_information_unref0 (detected); -#line 181 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (is_corrupted) { -#line 181 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - *is_corrupted = _vala_is_corrupted; -#line 2015 "RawSupport.c" - } -#line 181 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 2019 "RawSupport.c" - } -#line 183 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp12_ = exception; -#line 183 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp13_ = _g_error_copy0 (_tmp12_); -#line 183 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _inner_error_ = _tmp13_; -#line 183 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_error_free0 (exception); -#line 2029 "RawSupport.c" - goto __finally36; - } - __finally36: -#line 175 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 175 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_propagate_error (error, _inner_error_); -#line 175 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 175 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _detected_photo_information_unref0 (detected); -#line 175 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 2043 "RawSupport.c" - } -#line 186 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp14_ = detected; -#line 186 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp15_ = processor; -#line 186 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp16_ = graw_processor_get_sizes (_tmp15_).iwidth; -#line 186 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp17_ = processor; -#line 186 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp18_ = graw_processor_get_sizes (_tmp17_).iheight; -#line 186 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - dimensions_init (&_tmp14_->image_dim, (gint) _tmp16_, (gint) _tmp18_); -#line 187 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp19_ = detected; -#line 187 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp19_->colorspace = GDK_COLORSPACE_RGB; -#line 188 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp20_ = detected; -#line 188 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp20_->channels = 3; -#line 189 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp21_ = detected; -#line 189 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp21_->bits_per_channel = 8; -#line 191 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp22_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file; -#line 191 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp23_ = g_file_get_path (_tmp22_); -#line 191 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp24_ = _tmp23_; -#line 191 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp25_ = raw_reader_new (_tmp24_); -#line 191 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp26_ = _tmp25_; -#line 191 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp24_); -#line 191 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - reader = _tmp26_; -#line 2083 "RawSupport.c" - { - PhotoMetadata* _tmp27_ = NULL; - RawReader* _tmp28_; - PhotoMetadata* _tmp29_; - DetectedPhotoInformation* _tmp30_; - PhotoMetadata* _tmp31_; -#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp28_ = reader; -#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp29_ = photo_file_reader_read_metadata (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, TYPE_PHOTO_FILE_READER, PhotoFileReader), &_inner_error_); -#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp27_ = _tmp29_; -#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2098 "RawSupport.c" - goto __catch37_g_error; - } -#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp30_ = detected; -#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp31_ = _tmp27_; -#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp27_ = NULL; -#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _media_metadata_unref0 (_tmp30_->metadata); -#line 193 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp30_->metadata = _tmp31_; -#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _media_metadata_unref0 (_tmp27_); -#line 2113 "RawSupport.c" - } - goto __finally37; - __catch37_g_error: - { - GError* err = NULL; -#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - err = _inner_error_; -#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _inner_error_ = NULL; -#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_error_free0 (err); -#line 2125 "RawSupport.c" - } - __finally37: -#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_propagate_error (error, _inner_error_); -#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _photo_file_adapter_unref0 (reader); -#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _detected_photo_information_unref0 (detected); -#line 192 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 2140 "RawSupport.c" - } -#line 198 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp32_ = detected; -#line 198 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp33_ = _tmp32_->metadata; -#line 198 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (_tmp33_ != NULL) { -#line 2148 "RawSupport.c" - DetectedPhotoInformation* _tmp34_; - DetectedPhotoInformation* _tmp35_; - PhotoMetadata* _tmp36_; - gchar* _tmp37_; - DetectedPhotoInformation* _tmp38_; - DetectedPhotoInformation* _tmp39_; - PhotoMetadata* _tmp40_; - gchar* _tmp41_; -#line 199 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp34_ = detected; -#line 199 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp35_ = detected; -#line 199 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_ = _tmp35_->metadata; -#line 199 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp37_ = photo_metadata_exif_hash (_tmp36_); -#line 199 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp34_->exif_md5); -#line 199 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp34_->exif_md5 = _tmp37_; -#line 200 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp38_ = detected; -#line 200 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp39_ = detected; -#line 200 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp40_ = _tmp39_->metadata; -#line 200 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp41_ = photo_metadata_thumbnail_hash (_tmp40_); -#line 200 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp38_->thumbnail_md5); -#line 200 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp38_->thumbnail_md5 = _tmp41_; -#line 2181 "RawSupport.c" - } -#line 203 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp42_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->calc_md5; -#line 203 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (_tmp42_) { -#line 2187 "RawSupport.c" - gchar* _tmp43_ = NULL; - GFile* _tmp44_; - gchar* _tmp45_; - DetectedPhotoInformation* _tmp46_; - gchar* _tmp47_; -#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp44_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file; -#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp45_ = md5_file (_tmp44_, &_inner_error_); -#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp43_ = _tmp45_; -#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_propagate_error (error, _inner_error_); -#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _photo_file_adapter_unref0 (reader); -#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _detected_photo_information_unref0 (detected); -#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 2211 "RawSupport.c" - } -#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp46_ = detected; -#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp47_ = _tmp43_; -#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp43_ = NULL; -#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp46_->md5); -#line 204 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp46_->md5 = _tmp47_; -#line 203 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp43_); -#line 2225 "RawSupport.c" - } -#line 206 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp48_ = detected; -#line 206 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp49_ = g_strdup ("raw"); -#line 206 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp48_->format_name); -#line 206 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp48_->format_name = _tmp49_; -#line 207 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp50_ = detected; -#line 207 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp50_->file_format = PHOTO_FILE_FORMAT_RAW; -#line 209 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = detected; -#line 209 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _photo_file_adapter_unref0 (reader); -#line 209 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 209 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (is_corrupted) { -#line 209 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - *is_corrupted = _vala_is_corrupted; -#line 2249 "RawSupport.c" - } -#line 209 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 2253 "RawSupport.c" -} - - -static void -raw_sniffer_class_init (RawSnifferClass * klass) -{ -#line 161 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - raw_sniffer_parent_class = g_type_class_peek_parent (klass); -#line 161 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileSnifferClass *) klass)->sniff = (DetectedPhotoInformation* (*) (PhotoFileSniffer *, gboolean*, GError**)) raw_sniffer_real_sniff; -#line 2264 "RawSupport.c" -} - - -static void -raw_sniffer_instance_init (RawSniffer * self) -{ -} - - -GType -raw_sniffer_get_type (void) -{ - static volatile gsize raw_sniffer_type_id__volatile = 0; - if (g_once_init_enter (&raw_sniffer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (RawSnifferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) raw_sniffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RawSniffer), 0, (GInstanceInitFunc) raw_sniffer_instance_init, NULL }; - GType raw_sniffer_type_id; - raw_sniffer_type_id = g_type_register_static (TYPE_PHOTO_FILE_SNIFFER, "RawSniffer", &g_define_type_info, 0); - g_once_init_leave (&raw_sniffer_type_id__volatile, raw_sniffer_type_id); - } - return raw_sniffer_type_id__volatile; -} - - -RawReader* -raw_reader_construct (GType object_type, - const gchar* filepath) -{ - RawReader* self = NULL; -#line 214 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 215 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = (RawReader*) photo_file_reader_construct (object_type, filepath, PHOTO_FILE_FORMAT_RAW); -#line 214 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return self; -#line 2299 "RawSupport.c" -} - - -RawReader* -raw_reader_new (const gchar* filepath) -{ -#line 214 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return raw_reader_construct (TYPE_RAW_READER, filepath); -#line 2308 "RawSupport.c" -} - - -static PhotoMetadata* -raw_reader_real_read_metadata (PhotoFileReader* base, - GError** error) -{ - RawReader * self; - PhotoMetadata* result = NULL; - PhotoMetadata* metadata = NULL; - PhotoMetadata* _tmp0_; - GFile* _tmp1_; - GFile* _tmp2_; - GError * _inner_error_ = NULL; -#line 218 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_READER, RawReader); -#line 219 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = photo_metadata_new (); -#line 219 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - metadata = _tmp0_; -#line 220 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 220 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp2_ = _tmp1_; -#line 220 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - media_metadata_read_from_file (G_TYPE_CHECK_INSTANCE_CAST (metadata, TYPE_MEDIA_METADATA, MediaMetadata), _tmp2_, &_inner_error_); -#line 220 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_object_unref0 (_tmp2_); -#line 220 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 220 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_propagate_error (error, _inner_error_); -#line 220 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _media_metadata_unref0 (metadata); -#line 220 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 2345 "RawSupport.c" - } -#line 222 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = metadata; -#line 222 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 2351 "RawSupport.c" -} - - -static GdkPixbuf* -raw_reader_real_unscaled_read (PhotoFileReader* base, - GError** error) -{ - RawReader * self; - GdkPixbuf* result = NULL; - GRawProcessor* processor = NULL; - GRawProcessor* _tmp0_; - GRawProcessor* _tmp1_; - GRawProcessor* _tmp2_; - libraw_output_params_t* _tmp3_; - libraw_output_params_t* _tmp4_; - GRawProcessor* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - GRawProcessor* _tmp8_; - GRawProcessor* _tmp9_; - GRawProcessedImage* _tmp10_ = NULL; - GRawProcessor* _tmp11_; - GRawProcessedImage* _tmp12_; - GdkPixbuf* _tmp13_; - GError * _inner_error_ = NULL; -#line 225 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_READER, RawReader); -#line 226 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = graw_processor_new (LIBRAW_OPTIONS_NONE); -#line 226 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - processor = _tmp0_; -#line 227 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1_ = processor; -#line 227 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - graw_processor_configure_for_rgb_display (_tmp1_, FALSE); -#line 228 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp2_ = processor; -#line 228 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp3_ = graw_processor_get_output_params (_tmp2_); -#line 228 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp4_ = _tmp3_; -#line 228 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - (*_tmp4_).user_flip = (gint) GRAW_FLIP_NONE; -#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp5_ = processor; -#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp6_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp7_ = _tmp6_; -#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - graw_processor_open_file (_tmp5_, _tmp7_, &_inner_error_); -#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp7_); -#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_propagate_error (error, _inner_error_); -#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 230 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 2413 "RawSupport.c" - } -#line 231 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp8_ = processor; -#line 231 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - graw_processor_unpack (_tmp8_, &_inner_error_); -#line 231 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 231 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_propagate_error (error, _inner_error_); -#line 231 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 231 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 2427 "RawSupport.c" - } -#line 232 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp9_ = processor; -#line 232 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - graw_processor_process (_tmp9_, &_inner_error_); -#line 232 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 232 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_propagate_error (error, _inner_error_); -#line 232 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 232 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 2441 "RawSupport.c" - } -#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp11_ = processor; -#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp12_ = graw_processor_make_mem_image (_tmp11_, &_inner_error_); -#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp10_ = _tmp12_; -#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_propagate_error (error, _inner_error_); -#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 2457 "RawSupport.c" - } -#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp13_ = graw_processed_image_get_pixbuf_copy (_tmp10_); -#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = _tmp13_; -#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processed_image_unref0 (_tmp10_); -#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 234 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 2469 "RawSupport.c" -} - - -static GdkPixbuf* -raw_reader_real_scaled_read (PhotoFileReader* base, - Dimensions* full, - Dimensions* scaled, - GError** error) -{ - RawReader * self; - GdkPixbuf* result = NULL; - gdouble width_proportion = 0.0; - Dimensions _tmp0_; - gint _tmp1_; - Dimensions _tmp2_; - gint _tmp3_; - gdouble height_proportion = 0.0; - Dimensions _tmp4_; - gint _tmp5_; - Dimensions _tmp6_; - gint _tmp7_; - gboolean _tmp8_ = FALSE; - gdouble _tmp9_; - gboolean half_size = FALSE; - GRawProcessor* processor = NULL; - GRawProcessor* _tmp11_; - GRawProcessor* _tmp12_; - gboolean _tmp13_; - GRawProcessor* _tmp14_; - libraw_output_params_t* _tmp15_; - libraw_output_params_t* _tmp16_; - GRawProcessor* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - GRawProcessor* _tmp29_; - GRawProcessor* _tmp30_; - GRawProcessedImage* image = NULL; - GRawProcessor* _tmp31_; - GRawProcessedImage* _tmp32_; - GRawProcessedImage* _tmp33_; - GdkPixbuf* _tmp34_; - GdkPixbuf* _tmp35_; - Dimensions _tmp36_; - GdkPixbuf* _tmp37_; - GdkPixbuf* _tmp38_; - GError * _inner_error_ = NULL; -#line 237 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RAW_READER, RawReader); -#line 237 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_return_val_if_fail (full != NULL, NULL); -#line 237 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_return_val_if_fail (scaled != NULL, NULL); -#line 239 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = *scaled; -#line 239 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1_ = _tmp0_.width; -#line 239 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp2_ = *full; -#line 239 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp3_ = _tmp2_.width; -#line 239 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - width_proportion = ((gdouble) _tmp1_) / ((gdouble) _tmp3_); -#line 240 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp4_ = *scaled; -#line 240 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp5_ = _tmp4_.height; -#line 240 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp6_ = *full; -#line 240 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp7_ = _tmp6_.height; -#line 240 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - height_proportion = ((gdouble) _tmp5_) / ((gdouble) _tmp7_); -#line 241 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp9_ = width_proportion; -#line 241 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (_tmp9_ < 0.5) { -#line 2546 "RawSupport.c" - gdouble _tmp10_; -#line 241 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp10_ = height_proportion; -#line 241 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp8_ = _tmp10_ < 0.5; -#line 2552 "RawSupport.c" - } else { -#line 241 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp8_ = FALSE; -#line 2556 "RawSupport.c" - } -#line 241 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - half_size = _tmp8_; -#line 243 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp11_ = graw_processor_new (LIBRAW_OPTIONS_NONE); -#line 243 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - processor = _tmp11_; -#line 244 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp12_ = processor; -#line 244 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp13_ = half_size; -#line 244 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - graw_processor_configure_for_rgb_display (_tmp12_, _tmp13_); -#line 245 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp14_ = processor; -#line 245 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp15_ = graw_processor_get_output_params (_tmp14_); -#line 245 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp16_ = _tmp15_; -#line 245 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - (*_tmp16_).user_flip = (gint) GRAW_FLIP_NONE; -#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp17_ = processor; -#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp18_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp19_ = _tmp18_; -#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - graw_processor_open_file (_tmp17_, _tmp19_, &_inner_error_); -#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp19_); -#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_propagate_error (error, _inner_error_); -#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 247 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 2596 "RawSupport.c" - } - { -#line 249 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (photo_file_reader_get_role (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_READER, PhotoFileReader)) == PHOTO_FILE_READER_ROLE_THUMBNAIL) { -#line 2601 "RawSupport.c" - GRawProcessor* _tmp20_; - GRawProcessedImage* image = NULL; - GRawProcessor* _tmp21_; - GRawProcessedImage* _tmp22_; - GRawProcessedImage* _tmp23_; - GdkPixbuf* _tmp24_; - GdkPixbuf* _tmp25_; - Dimensions _tmp26_; - GdkPixbuf* _tmp27_; - GdkPixbuf* _tmp28_; -#line 250 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp20_ = processor; -#line 250 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - graw_processor_unpack_thumb (_tmp20_, &_inner_error_); -#line 250 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2618 "RawSupport.c" - goto __catch38_g_error; - } -#line 251 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp21_ = processor; -#line 251 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp22_ = graw_processor_make_thumb_image (_tmp21_, &_inner_error_); -#line 251 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - image = _tmp22_; -#line 251 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2629 "RawSupport.c" - goto __catch38_g_error; - } -#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp23_ = image; -#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp24_ = graw_processed_image_get_pixbuf_copy (_tmp23_); -#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp25_ = _tmp24_; -#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp26_ = *scaled; -#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp27_ = resize_pixbuf (_tmp25_, &_tmp26_, GDK_INTERP_BILINEAR); -#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp28_ = _tmp27_; -#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_object_unref0 (_tmp25_); -#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = _tmp28_; -#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processed_image_unref0 (image); -#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 252 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 2654 "RawSupport.c" - } - } - goto __finally38; - __catch38_g_error: - { - GError* _error_ = NULL; -#line 248 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _error_ = _inner_error_; -#line 248 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _inner_error_ = NULL; -#line 248 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_error_free0 (_error_); -#line 2667 "RawSupport.c" - } - __finally38: -#line 248 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 248 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_propagate_error (error, _inner_error_); -#line 248 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 248 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 2678 "RawSupport.c" - } -#line 260 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp29_ = processor; -#line 260 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - graw_processor_unpack (_tmp29_, &_inner_error_); -#line 260 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 260 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_propagate_error (error, _inner_error_); -#line 260 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 260 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 2692 "RawSupport.c" - } -#line 261 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp30_ = processor; -#line 261 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - graw_processor_process (_tmp30_, &_inner_error_); -#line 261 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 261 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_propagate_error (error, _inner_error_); -#line 261 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 261 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 2706 "RawSupport.c" - } -#line 263 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp31_ = processor; -#line 263 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp32_ = graw_processor_make_mem_image (_tmp31_, &_inner_error_); -#line 263 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - image = _tmp32_; -#line 263 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 263 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_propagate_error (error, _inner_error_); -#line 263 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 263 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 2722 "RawSupport.c" - } -#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp33_ = image; -#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp34_ = graw_processed_image_get_pixbuf_copy (_tmp33_); -#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp35_ = _tmp34_; -#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_ = *scaled; -#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp37_ = resize_pixbuf (_tmp35_, &_tmp36_, GDK_INTERP_BILINEAR); -#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp38_ = _tmp37_; -#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_object_unref0 (_tmp35_); -#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = _tmp38_; -#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processed_image_unref0 (image); -#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _graw_processor_unref0 (processor); -#line 265 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 2746 "RawSupport.c" -} - - -static void -raw_reader_class_init (RawReaderClass * klass) -{ -#line 213 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - raw_reader_parent_class = g_type_class_peek_parent (klass); -#line 213 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileReaderClass *) klass)->read_metadata = (PhotoMetadata* (*) (PhotoFileReader *, GError**)) raw_reader_real_read_metadata; -#line 213 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileReaderClass *) klass)->unscaled_read = (GdkPixbuf* (*) (PhotoFileReader *, GError**)) raw_reader_real_unscaled_read; -#line 213 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ((PhotoFileReaderClass *) klass)->scaled_read = (GdkPixbuf* (*) (PhotoFileReader *, Dimensions*, Dimensions*, GError**)) raw_reader_real_scaled_read; -#line 2761 "RawSupport.c" -} - - -static void -raw_reader_instance_init (RawReader * self) -{ -} - - -GType -raw_reader_get_type (void) -{ - static volatile gsize raw_reader_type_id__volatile = 0; - if (g_once_init_enter (&raw_reader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (RawReaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) raw_reader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RawReader), 0, (GInstanceInitFunc) raw_reader_instance_init, NULL }; - GType raw_reader_type_id; - raw_reader_type_id = g_type_register_static (TYPE_PHOTO_FILE_READER, "RawReader", &g_define_type_info, 0); - g_once_init_leave (&raw_reader_type_id__volatile, raw_reader_type_id); - } - return raw_reader_type_id__volatile; -} - - -RawDeveloper* -raw_developer_as_array (int* result_length1) -{ - RawDeveloper* result = NULL; - RawDeveloper* _tmp0_; - RawDeveloper* _tmp1_; - gint _tmp1__length1; -#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = g_new0 (RawDeveloper, 3); -#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_[0] = RAW_DEVELOPER_SHOTWELL; -#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_[1] = RAW_DEVELOPER_CAMERA; -#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_[2] = RAW_DEVELOPER_EMBEDDED; -#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1_ = _tmp0_; -#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1__length1 = 3; -#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (result_length1) { -#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - *result_length1 = _tmp1__length1; -#line 2808 "RawSupport.c" - } -#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = _tmp1_; -#line 276 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 2814 "RawSupport.c" -} - - -gchar* -raw_developer_to_string (RawDeveloper self) -{ - gchar* result = NULL; -#line 280 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - switch (self) { -#line 280 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - case RAW_DEVELOPER_SHOTWELL: -#line 2826 "RawSupport.c" - { - gchar* _tmp0_; -#line 282 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = g_strdup ("SHOTWELL"); -#line 282 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = _tmp0_; -#line 282 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 2835 "RawSupport.c" - } -#line 280 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - case RAW_DEVELOPER_CAMERA: -#line 2839 "RawSupport.c" - { - gchar* _tmp1_; -#line 284 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1_ = g_strdup ("CAMERA"); -#line 284 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = _tmp1_; -#line 284 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 2848 "RawSupport.c" - } -#line 280 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - case RAW_DEVELOPER_EMBEDDED: -#line 2852 "RawSupport.c" - { - gchar* _tmp2_; -#line 286 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp2_ = g_strdup ("EMBEDDED"); -#line 286 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = _tmp2_; -#line 286 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 2861 "RawSupport.c" - } - default: - { -#line 288 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_assert_not_reached (); -#line 2867 "RawSupport.c" - } - } -} - - -RawDeveloper -raw_developer_from_string (const gchar* value) -{ - RawDeveloper result = 0; - const gchar* _tmp0_; - GQuark _tmp2_ = 0U; -#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - static GQuark _tmp1_label0 = 0; -#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - static GQuark _tmp1_label1 = 0; -#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - static GQuark _tmp1_label2 = 0; -#line 292 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_return_val_if_fail (value != NULL, 0); -#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = value; -#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_); -#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (_tmp2_ == ((0 != _tmp1_label0) ? _tmp1_label0 : (_tmp1_label0 = g_quark_from_static_string ("SHOTWELL")))) { -#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - switch (0) { -#line 2895 "RawSupport.c" - default: - { -#line 295 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = RAW_DEVELOPER_SHOTWELL; -#line 295 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 2902 "RawSupport.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label1) ? _tmp1_label1 : (_tmp1_label1 = g_quark_from_static_string ("CAMERA")))) { -#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - switch (0) { -#line 2908 "RawSupport.c" - default: - { -#line 297 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = RAW_DEVELOPER_CAMERA; -#line 297 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 2915 "RawSupport.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label2) ? _tmp1_label2 : (_tmp1_label2 = g_quark_from_static_string ("EMBEDDED")))) { -#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - switch (0) { -#line 2921 "RawSupport.c" - default: - { -#line 299 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = RAW_DEVELOPER_EMBEDDED; -#line 299 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 2928 "RawSupport.c" - } - } - } else { -#line 293 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - switch (0) { -#line 2934 "RawSupport.c" - default: - { -#line 301 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_assert_not_reached (); -#line 2939 "RawSupport.c" - } - } - } -} - - -gchar* -raw_developer_get_label (RawDeveloper self) -{ - gchar* result = NULL; -#line 306 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - switch (self) { -#line 306 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - case RAW_DEVELOPER_SHOTWELL: -#line 2954 "RawSupport.c" - { - gchar* _tmp0_; -#line 308 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = g_strdup (_ ("Shotwell")); -#line 308 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = _tmp0_; -#line 308 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 2963 "RawSupport.c" - } -#line 306 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - case RAW_DEVELOPER_CAMERA: -#line 306 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - case RAW_DEVELOPER_EMBEDDED: -#line 2969 "RawSupport.c" - { - gchar* _tmp1_; -#line 311 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1_ = g_strdup (_ ("Camera")); -#line 311 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = _tmp1_; -#line 311 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 2978 "RawSupport.c" - } - default: - { -#line 313 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_assert_not_reached (); -#line 2984 "RawSupport.c" - } - } -} - - -gboolean -raw_developer_is_equivalent (RawDeveloper self, - RawDeveloper d) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; -#line 320 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (self == d) { -#line 321 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = TRUE; -#line 321 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 3003 "RawSupport.c" - } -#line 323 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (self == RAW_DEVELOPER_CAMERA) { -#line 323 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1_ = d == RAW_DEVELOPER_EMBEDDED; -#line 3009 "RawSupport.c" - } else { -#line 323 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1_ = FALSE; -#line 3013 "RawSupport.c" - } -#line 323 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (_tmp1_) { -#line 323 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = TRUE; -#line 3019 "RawSupport.c" - } else { - gboolean _tmp2_ = FALSE; -#line 324 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (self == RAW_DEVELOPER_EMBEDDED) { -#line 324 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp2_ = d == RAW_DEVELOPER_CAMERA; -#line 3026 "RawSupport.c" - } else { -#line 324 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp2_ = FALSE; -#line 3030 "RawSupport.c" - } -#line 324 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = _tmp2_; -#line 3034 "RawSupport.c" - } -#line 323 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (_tmp0_) { -#line 325 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = TRUE; -#line 325 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 3042 "RawSupport.c" - } -#line 327 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = FALSE; -#line 327 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 3048 "RawSupport.c" -} - - -BackingPhotoRow* -raw_developer_create_backing_row_for_development (RawDeveloper self, - const gchar* raw_filepath, - const gchar* camera_development_filename, - GError** error) -{ - BackingPhotoRow* result = NULL; - BackingPhotoRow* ns = NULL; - BackingPhotoRow* _tmp0_; - GFile* master = NULL; - GFile* _tmp1_; - gchar* name = NULL; - gchar* ext = NULL; - GFile* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_ = NULL; - gchar* _tmp6_ = NULL; - gchar* basename = NULL; - gchar* newbasename = NULL; - const gchar* _tmp24_; - gchar* _tmp25_; - gboolean c = FALSE; - GFile* new_back = NULL; - GFile* _tmp26_; - GFile* _tmp27_; - GFile* _tmp28_; - const gchar* _tmp29_; - gboolean _tmp30_ = FALSE; - GFile* _tmp31_; - GFile* _tmp32_; - GFile* _tmp33_; - BackingPhotoRow* _tmp34_; - BackingPhotoRow* _tmp35_; - GFile* _tmp36_; - gchar* _tmp37_; - GError * _inner_error_ = NULL; -#line 332 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_return_val_if_fail (raw_filepath != NULL, NULL); -#line 334 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp0_ = backing_photo_row_new (); -#line 334 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ns = _tmp0_; -#line 335 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp1_ = g_file_new_for_path (raw_filepath); -#line 335 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - master = _tmp1_; -#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp2_ = master; -#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp3_ = g_file_get_basename (_tmp2_); -#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp4_ = _tmp3_; -#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - disassemble_filename (_tmp4_, &_tmp5_, &_tmp6_); -#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (name); -#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - name = _tmp5_; -#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (ext); -#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - ext = _tmp6_; -#line 337 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp4_); -#line 343 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (camera_development_filename == NULL) { -#line 3119 "RawSupport.c" - gchar* _tmp7_ = NULL; - const gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - const gchar* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - gchar* _tmp22_; -#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (self != RAW_DEVELOPER_CAMERA) { -#line 3132 "RawSupport.c" - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; -#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp8_ = raw_developer_to_string (self); -#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp9_ = _tmp8_; -#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp10_ = g_utf8_strdown (_tmp9_, (gssize) -1); -#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp11_ = _tmp10_; -#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp12_ = g_strconcat ("_", _tmp11_, NULL); -#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp7_); -#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp7_ = _tmp12_; -#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp11_); -#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp9_); -#line 3156 "RawSupport.c" - } else { - gchar* _tmp13_; -#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp13_ = g_strdup (""); -#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp7_); -#line 345 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp7_ = _tmp13_; -#line 3165 "RawSupport.c" - } -#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp14_ = name; -#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp15_ = g_strconcat (_tmp14_, "_", NULL); -#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp16_ = _tmp15_; -#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp17_ = ext; -#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp18_ = g_strconcat (_tmp16_, _tmp17_, NULL); -#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp19_ = _tmp18_; -#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp20_ = g_strconcat (_tmp19_, _tmp7_, NULL); -#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp21_ = _tmp20_; -#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp22_ = g_strconcat (_tmp21_, ".jpg", NULL); -#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (basename); -#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - basename = _tmp22_; -#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp21_); -#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp19_); -#line 344 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp16_); -#line 343 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp7_); -#line 3197 "RawSupport.c" - } else { - gchar* _tmp23_; -#line 347 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp23_ = g_strdup (camera_development_filename); -#line 347 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (basename); -#line 347 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - basename = _tmp23_; -#line 3206 "RawSupport.c" - } -#line 350 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp24_ = basename; -#line 350 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp25_ = library_files_convert_basename (_tmp24_); -#line 350 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - newbasename = _tmp25_; -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp26_ = master; -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp27_ = g_file_get_parent (_tmp26_); -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp28_ = _tmp27_; -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp29_ = newbasename; -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp31_ = generate_unique_file (_tmp28_, _tmp29_, &_tmp30_, &_inner_error_); -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - c = _tmp30_; -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp32_ = _tmp31_; -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_object_unref0 (_tmp28_); -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - new_back = _tmp32_; -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_propagate_error (error, _inner_error_); -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (newbasename); -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (basename); -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (ext); -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (name); -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_object_unref0 (master); -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _backing_photo_row_unref0 (ns); -#line 353 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 3250 "RawSupport.c" - } -#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp33_ = new_back; -#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - claim_file (_tmp33_, &_inner_error_); -#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - g_propagate_error (error, _inner_error_); -#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_object_unref0 (new_back); -#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (newbasename); -#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (basename); -#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (ext); -#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (name); -#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_object_unref0 (master); -#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _backing_photo_row_unref0 (ns); -#line 354 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return NULL; -#line 3276 "RawSupport.c" - } -#line 355 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp34_ = ns; -#line 355 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp34_->file_format = PHOTO_FILE_FORMAT_JFIF; -#line 356 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp35_ = ns; -#line 356 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp36_ = new_back; -#line 356 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp37_ = g_file_get_path (_tmp36_); -#line 356 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (_tmp35_->filepath); -#line 356 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _tmp35_->filepath = _tmp37_; -#line 358 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - result = ns; -#line 358 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_object_unref0 (new_back); -#line 358 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (newbasename); -#line 358 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (basename); -#line 358 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (ext); -#line 358 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_free0 (name); -#line 358 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - _g_object_unref0 (master); -#line 358 "/home/jens/Source/shotwell/src/photos/RawSupport.vala" - return result; -#line 3308 "RawSupport.c" -} - - -GType -raw_developer_get_type (void) -{ - static volatile gsize raw_developer_type_id__volatile = 0; - if (g_once_init_enter (&raw_developer_type_id__volatile)) { - static const GEnumValue values[] = {{RAW_DEVELOPER_SHOTWELL, "RAW_DEVELOPER_SHOTWELL", "shotwell"}, {RAW_DEVELOPER_CAMERA, "RAW_DEVELOPER_CAMERA", "camera"}, {RAW_DEVELOPER_EMBEDDED, "RAW_DEVELOPER_EMBEDDED", "embedded"}, {0, NULL, NULL}}; - GType raw_developer_type_id; - raw_developer_type_id = g_enum_register_static ("RawDeveloper", values); - g_once_init_leave (&raw_developer_type_id__volatile, raw_developer_type_id); - } - return raw_developer_type_id__volatile; -} - - - diff --git a/src/photos/TiffSupport.c b/src/photos/TiffSupport.c deleted file mode 100644 index d17a83b..0000000 --- a/src/photos/TiffSupport.c +++ /dev/null @@ -1,1862 +0,0 @@ -/* TiffSupport.c generated by valac 0.40.4, the Vala compiler - * generated from TiffSupport.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PHOTO_FILE_FORMAT_DRIVER (photo_file_format_driver_get_type ()) -#define PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriver)) -#define PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass)) -#define IS_PHOTO_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER)) -#define IS_PHOTO_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_DRIVER)) -#define PHOTO_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_DRIVER, PhotoFileFormatDriverClass)) - -typedef struct _PhotoFileFormatDriver PhotoFileFormatDriver; -typedef struct _PhotoFileFormatDriverClass PhotoFileFormatDriverClass; -typedef struct _PhotoFileFormatDriverPrivate PhotoFileFormatDriverPrivate; - -#define TYPE_PHOTO_FILE_FORMAT_PROPERTIES (photo_file_format_properties_get_type ()) -#define PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties)) -#define PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define IS_PHOTO_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_FORMAT_PROPERTIES)) -#define PHOTO_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatPropertiesClass)) - -typedef struct _PhotoFileFormatProperties PhotoFileFormatProperties; -typedef struct _PhotoFileFormatPropertiesClass PhotoFileFormatPropertiesClass; - -#define TYPE_PHOTO_FILE_ADAPTER (photo_file_adapter_get_type ()) -#define PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)) -#define PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) -#define IS_PHOTO_FILE_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_ADAPTER)) -#define IS_PHOTO_FILE_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_ADAPTER)) -#define PHOTO_FILE_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapterClass)) - -typedef struct _PhotoFileAdapter PhotoFileAdapter; -typedef struct _PhotoFileAdapterClass PhotoFileAdapterClass; - -#define TYPE_PHOTO_FILE_READER (photo_file_reader_get_type ()) -#define PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReader)) -#define PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) -#define IS_PHOTO_FILE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_READER)) -#define IS_PHOTO_FILE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_READER)) -#define PHOTO_FILE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_READER, PhotoFileReaderClass)) - -typedef struct _PhotoFileReader PhotoFileReader; -typedef struct _PhotoFileReaderClass PhotoFileReaderClass; - -#define TYPE_MEDIA_METADATA (media_metadata_get_type ()) -#define MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_METADATA, MediaMetadata)) -#define MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_METADATA, MediaMetadataClass)) -#define IS_MEDIA_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_METADATA)) -#define IS_MEDIA_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_METADATA)) -#define MEDIA_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_METADATA, MediaMetadataClass)) - -typedef struct _MediaMetadata MediaMetadata; -typedef struct _MediaMetadataClass MediaMetadataClass; - -#define TYPE_PHOTO_METADATA (photo_metadata_get_type ()) -#define PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_METADATA, PhotoMetadata)) -#define PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_METADATA, PhotoMetadataClass)) -#define IS_PHOTO_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_METADATA)) -#define IS_PHOTO_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_METADATA)) -#define PHOTO_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_METADATA, PhotoMetadataClass)) - -typedef struct _PhotoMetadata PhotoMetadata; -typedef struct _PhotoMetadataClass PhotoMetadataClass; - -#define TYPE_PHOTO_FILE_WRITER (photo_file_writer_get_type ()) -#define PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriter)) -#define PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) -#define IS_PHOTO_FILE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_WRITER)) -#define IS_PHOTO_FILE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_WRITER)) -#define PHOTO_FILE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_WRITER, PhotoFileWriterClass)) - -typedef struct _PhotoFileWriter PhotoFileWriter; -typedef struct _PhotoFileWriterClass PhotoFileWriterClass; - -#define TYPE_PHOTO_FILE_METADATA_WRITER (photo_file_metadata_writer_get_type ()) -#define PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter)) -#define PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass)) -#define IS_PHOTO_FILE_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_METADATA_WRITER)) -#define IS_PHOTO_FILE_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_METADATA_WRITER)) -#define PHOTO_FILE_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriterClass)) - -typedef struct _PhotoFileMetadataWriter PhotoFileMetadataWriter; -typedef struct _PhotoFileMetadataWriterClass PhotoFileMetadataWriterClass; - -#define PHOTO_FILE_SNIFFER_TYPE_OPTIONS (photo_file_sniffer_options_get_type ()) - -#define TYPE_PHOTO_FILE_SNIFFER (photo_file_sniffer_get_type ()) -#define PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)) -#define PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass)) -#define IS_PHOTO_FILE_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_FILE_SNIFFER)) -#define IS_PHOTO_FILE_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_FILE_SNIFFER)) -#define PHOTO_FILE_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSnifferClass)) - -typedef struct _PhotoFileSniffer PhotoFileSniffer; -typedef struct _PhotoFileSnifferClass PhotoFileSnifferClass; - -#define PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER (photos_tiff_file_format_driver_get_type ()) -#define PHOTOS_TIFF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver)) -#define PHOTOS_TIFF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriverClass)) -#define PHOTOS_IS_TIFF_FILE_FORMAT_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER)) -#define PHOTOS_IS_TIFF_FILE_FORMAT_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER)) -#define PHOTOS_TIFF_FILE_FORMAT_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriverClass)) - -typedef struct _PhotosTiffFileFormatDriver PhotosTiffFileFormatDriver; -typedef struct _PhotosTiffFileFormatDriverClass PhotosTiffFileFormatDriverClass; -typedef struct _PhotosTiffFileFormatDriverPrivate PhotosTiffFileFormatDriverPrivate; -#define _photo_file_format_driver_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_driver_unref (var), NULL))) - -#define PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES (photos_tiff_file_format_properties_get_type ()) -#define PHOTOS_TIFF_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties)) -#define PHOTOS_TIFF_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatPropertiesClass)) -#define PHOTOS_IS_TIFF_FILE_FORMAT_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES)) -#define PHOTOS_IS_TIFF_FILE_FORMAT_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES)) -#define PHOTOS_TIFF_FILE_FORMAT_PROPERTIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatPropertiesClass)) - -typedef struct _PhotosTiffFileFormatProperties PhotosTiffFileFormatProperties; -typedef struct _PhotosTiffFileFormatPropertiesClass PhotosTiffFileFormatPropertiesClass; - -#define TYPE_GDK_READER (gdk_reader_get_type ()) -#define GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_READER, GdkReader)) -#define GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_READER, GdkReaderClass)) -#define IS_GDK_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_READER)) -#define IS_GDK_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_READER)) -#define GDK_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_READER, GdkReaderClass)) - -typedef struct _GdkReader GdkReader; -typedef struct _GdkReaderClass GdkReaderClass; - -#define PHOTOS_TYPE_TIFF_READER (photos_tiff_reader_get_type ()) -#define PHOTOS_TIFF_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_TIFF_READER, PhotosTiffReader)) -#define PHOTOS_TIFF_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_TIFF_READER, PhotosTiffReaderClass)) -#define PHOTOS_IS_TIFF_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_TIFF_READER)) -#define PHOTOS_IS_TIFF_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_TIFF_READER)) -#define PHOTOS_TIFF_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_TIFF_READER, PhotosTiffReaderClass)) - -typedef struct _PhotosTiffReader PhotosTiffReader; -typedef struct _PhotosTiffReaderClass PhotosTiffReaderClass; - -#define PHOTOS_TYPE_TIFF_WRITER (photos_tiff_writer_get_type ()) -#define PHOTOS_TIFF_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_TIFF_WRITER, PhotosTiffWriter)) -#define PHOTOS_TIFF_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_TIFF_WRITER, PhotosTiffWriterClass)) -#define PHOTOS_IS_TIFF_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_TIFF_WRITER)) -#define PHOTOS_IS_TIFF_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_TIFF_WRITER)) -#define PHOTOS_TIFF_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_TIFF_WRITER, PhotosTiffWriterClass)) - -typedef struct _PhotosTiffWriter PhotosTiffWriter; -typedef struct _PhotosTiffWriterClass PhotosTiffWriterClass; - -#define PHOTOS_TYPE_TIFF_METADATA_WRITER (photos_tiff_metadata_writer_get_type ()) -#define PHOTOS_TIFF_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_TIFF_METADATA_WRITER, PhotosTiffMetadataWriter)) -#define PHOTOS_TIFF_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_TIFF_METADATA_WRITER, PhotosTiffMetadataWriterClass)) -#define PHOTOS_IS_TIFF_METADATA_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_TIFF_METADATA_WRITER)) -#define PHOTOS_IS_TIFF_METADATA_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_TIFF_METADATA_WRITER)) -#define PHOTOS_TIFF_METADATA_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_TIFF_METADATA_WRITER, PhotosTiffMetadataWriterClass)) - -typedef struct _PhotosTiffMetadataWriter PhotosTiffMetadataWriter; -typedef struct _PhotosTiffMetadataWriterClass PhotosTiffMetadataWriterClass; - -#define TYPE_GDK_SNIFFER (gdk_sniffer_get_type ()) -#define GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GDK_SNIFFER, GdkSniffer)) -#define GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GDK_SNIFFER, GdkSnifferClass)) -#define IS_GDK_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GDK_SNIFFER)) -#define IS_GDK_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GDK_SNIFFER)) -#define GDK_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GDK_SNIFFER, GdkSnifferClass)) - -typedef struct _GdkSniffer GdkSniffer; -typedef struct _GdkSnifferClass GdkSnifferClass; - -#define PHOTOS_TYPE_TIFF_SNIFFER (photos_tiff_sniffer_get_type ()) -#define PHOTOS_TIFF_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHOTOS_TYPE_TIFF_SNIFFER, PhotosTiffSniffer)) -#define PHOTOS_TIFF_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PHOTOS_TYPE_TIFF_SNIFFER, PhotosTiffSnifferClass)) -#define PHOTOS_IS_TIFF_SNIFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHOTOS_TYPE_TIFF_SNIFFER)) -#define PHOTOS_IS_TIFF_SNIFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PHOTOS_TYPE_TIFF_SNIFFER)) -#define PHOTOS_TIFF_SNIFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PHOTOS_TYPE_TIFF_SNIFFER, PhotosTiffSnifferClass)) - -typedef struct _PhotosTiffSniffer PhotosTiffSniffer; -typedef struct _PhotosTiffSnifferClass PhotosTiffSnifferClass; -typedef struct _PhotoFileFormatPropertiesPrivate PhotoFileFormatPropertiesPrivate; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_PHOTO_FILE_FORMAT_FLAGS (photo_file_format_flags_get_type ()) -typedef struct _PhotosTiffFileFormatPropertiesPrivate PhotosTiffFileFormatPropertiesPrivate; -#define _photo_file_format_properties_unref0(var) ((var == NULL) ? NULL : (var = (photo_file_format_properties_unref (var), NULL))) -typedef struct _PhotoFileSnifferPrivate PhotoFileSnifferPrivate; - -#define TYPE_DETECTED_PHOTO_INFORMATION (detected_photo_information_get_type ()) -#define DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformation)) -#define DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass)) -#define IS_DETECTED_PHOTO_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DETECTED_PHOTO_INFORMATION)) -#define IS_DETECTED_PHOTO_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DETECTED_PHOTO_INFORMATION)) -#define DETECTED_PHOTO_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DETECTED_PHOTO_INFORMATION, DetectedPhotoInformationClass)) - -typedef struct _DetectedPhotoInformation DetectedPhotoInformation; -typedef struct _DetectedPhotoInformationClass DetectedPhotoInformationClass; -typedef struct _GdkSnifferPrivate GdkSnifferPrivate; -typedef struct _PhotosTiffSnifferPrivate PhotosTiffSnifferPrivate; -#define _detected_photo_information_unref0(var) ((var == NULL) ? NULL : (var = (detected_photo_information_unref (var), NULL))) -typedef struct _DetectedPhotoInformationPrivate DetectedPhotoInformationPrivate; - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -typedef struct _PhotoFileAdapterPrivate PhotoFileAdapterPrivate; -typedef struct _PhotoFileReaderPrivate PhotoFileReaderPrivate; -typedef struct _GdkReaderPrivate GdkReaderPrivate; -typedef struct _PhotosTiffReaderPrivate PhotosTiffReaderPrivate; -typedef struct _PhotoFileWriterPrivate PhotoFileWriterPrivate; - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) -typedef struct _PhotosTiffWriterPrivate PhotosTiffWriterPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _PhotoFileMetadataWriterPrivate PhotoFileMetadataWriterPrivate; -typedef struct _PhotosTiffMetadataWriterPrivate PhotosTiffMetadataWriterPrivate; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -typedef enum { - PHOTO_FILE_SNIFFER_OPTIONS_GET_ALL = 0x00000000, - PHOTO_FILE_SNIFFER_OPTIONS_NO_MD5 = 0x00000001 -} PhotoFileSnifferOptions; - -struct _PhotoFileFormatDriver { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileFormatDriverPrivate * priv; -}; - -struct _PhotoFileFormatDriverClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileFormatDriver *self); - PhotoFileFormatProperties* (*get_properties) (PhotoFileFormatDriver* self); - PhotoFileReader* (*create_reader) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoMetadata* (*create_metadata) (PhotoFileFormatDriver* self); - gboolean (*can_write_image) (PhotoFileFormatDriver* self); - gboolean (*can_write_metadata) (PhotoFileFormatDriver* self); - PhotoFileWriter* (*create_writer) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoFileMetadataWriter* (*create_metadata_writer) (PhotoFileFormatDriver* self, const gchar* filepath); - PhotoFileSniffer* (*create_sniffer) (PhotoFileFormatDriver* self, GFile* file, PhotoFileSnifferOptions options); -}; - -struct _PhotosTiffFileFormatDriver { - PhotoFileFormatDriver parent_instance; - PhotosTiffFileFormatDriverPrivate * priv; -}; - -struct _PhotosTiffFileFormatDriverClass { - PhotoFileFormatDriverClass parent_class; -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -typedef enum { - PHOTO_FILE_FORMAT_FLAGS_NONE = 0x00000000 -} PhotoFileFormatFlags; - -struct _PhotoFileFormatProperties { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileFormatPropertiesPrivate * priv; -}; - -struct _PhotoFileFormatPropertiesClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileFormatProperties *self); - PhotoFileFormat (*get_file_format) (PhotoFileFormatProperties* self); - PhotoFileFormatFlags (*get_flags) (PhotoFileFormatProperties* self); - gboolean (*is_recognized_extension) (PhotoFileFormatProperties* self, const gchar* ext); - gchar* (*get_default_extension) (PhotoFileFormatProperties* self); - gchar** (*get_known_extensions) (PhotoFileFormatProperties* self, int* result_length1); - gchar* (*get_default_mime_type) (PhotoFileFormatProperties* self); - gchar** (*get_mime_types) (PhotoFileFormatProperties* self, int* result_length1); - gchar* (*get_user_visible_name) (PhotoFileFormatProperties* self); -}; - -struct _PhotosTiffFileFormatProperties { - PhotoFileFormatProperties parent_instance; - PhotosTiffFileFormatPropertiesPrivate * priv; -}; - -struct _PhotosTiffFileFormatPropertiesClass { - PhotoFileFormatPropertiesClass parent_class; -}; - -struct _PhotoFileSniffer { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileSnifferPrivate * priv; - GFile* file; - PhotoFileSnifferOptions options; - gboolean calc_md5; -}; - -struct _PhotoFileSnifferClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileSniffer *self); - DetectedPhotoInformation* (*sniff) (PhotoFileSniffer* self, gboolean* is_corrupted, GError** error); -}; - -struct _GdkSniffer { - PhotoFileSniffer parent_instance; - GdkSnifferPrivate * priv; -}; - -struct _GdkSnifferClass { - PhotoFileSnifferClass parent_class; -}; - -struct _PhotosTiffSniffer { - GdkSniffer parent_instance; - PhotosTiffSnifferPrivate * priv; -}; - -struct _PhotosTiffSnifferClass { - GdkSnifferClass parent_class; -}; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _DetectedPhotoInformation { - GTypeInstance parent_instance; - volatile int ref_count; - DetectedPhotoInformationPrivate * priv; - PhotoFileFormat file_format; - PhotoMetadata* metadata; - gchar* md5; - gchar* exif_md5; - gchar* thumbnail_md5; - gchar* format_name; - Dimensions image_dim; - GdkColorspace colorspace; - gint channels; - gint bits_per_channel; -}; - -struct _DetectedPhotoInformationClass { - GTypeClass parent_class; - void (*finalize) (DetectedPhotoInformation *self); -}; - -struct _PhotoFileAdapter { - GTypeInstance parent_instance; - volatile int ref_count; - PhotoFileAdapterPrivate * priv; -}; - -struct _PhotoFileAdapterClass { - GTypeClass parent_class; - void (*finalize) (PhotoFileAdapter *self); -}; - -struct _PhotoFileReader { - PhotoFileAdapter parent_instance; - PhotoFileReaderPrivate * priv; -}; - -struct _PhotoFileReaderClass { - PhotoFileAdapterClass parent_class; - PhotoMetadata* (*read_metadata) (PhotoFileReader* self, GError** error); - GdkPixbuf* (*unscaled_read) (PhotoFileReader* self, GError** error); - GdkPixbuf* (*scaled_read) (PhotoFileReader* self, Dimensions* full, Dimensions* scaled, GError** error); -}; - -struct _GdkReader { - PhotoFileReader parent_instance; - GdkReaderPrivate * priv; -}; - -struct _GdkReaderClass { - PhotoFileReaderClass parent_class; -}; - -struct _PhotosTiffReader { - GdkReader parent_instance; - PhotosTiffReaderPrivate * priv; -}; - -struct _PhotosTiffReaderClass { - GdkReaderClass parent_class; -}; - -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -struct _PhotoFileWriter { - PhotoFileAdapter parent_instance; - PhotoFileWriterPrivate * priv; -}; - -struct _PhotoFileWriterClass { - PhotoFileAdapterClass parent_class; - void (*write) (PhotoFileWriter* self, GdkPixbuf* pixbuf, JpegQuality quality, GError** error); -}; - -struct _PhotosTiffWriter { - PhotoFileWriter parent_instance; - PhotosTiffWriterPrivate * priv; -}; - -struct _PhotosTiffWriterClass { - PhotoFileWriterClass parent_class; -}; - -struct _PhotoFileMetadataWriter { - PhotoFileAdapter parent_instance; - PhotoFileMetadataWriterPrivate * priv; -}; - -struct _PhotoFileMetadataWriterClass { - PhotoFileAdapterClass parent_class; - void (*write_metadata) (PhotoFileMetadataWriter* self, PhotoMetadata* metadata, GError** error); -}; - -struct _PhotosTiffMetadataWriter { - PhotoFileMetadataWriter parent_instance; - PhotosTiffMetadataWriterPrivate * priv; -}; - -struct _PhotosTiffMetadataWriterClass { - PhotoFileMetadataWriterClass parent_class; -}; - - -static gpointer photos_tiff_file_format_driver_parent_class = NULL; -static PhotosTiffFileFormatDriver* photos_tiff_file_format_driver_instance; -static PhotosTiffFileFormatDriver* photos_tiff_file_format_driver_instance = NULL; -static gpointer photos_tiff_file_format_properties_parent_class = NULL; -static gchar** photos_tiff_file_format_properties_KNOWN_EXTENSIONS; -static gint photos_tiff_file_format_properties_KNOWN_EXTENSIONS_length1; -static gchar** photos_tiff_file_format_properties_KNOWN_EXTENSIONS = NULL; -static gint photos_tiff_file_format_properties_KNOWN_EXTENSIONS_length1 = 0; -static gint _photos_tiff_file_format_properties_KNOWN_EXTENSIONS_size_ = 0; -static gchar** photos_tiff_file_format_properties_KNOWN_MIME_TYPES; -static gint photos_tiff_file_format_properties_KNOWN_MIME_TYPES_length1; -static gchar** photos_tiff_file_format_properties_KNOWN_MIME_TYPES = NULL; -static gint photos_tiff_file_format_properties_KNOWN_MIME_TYPES_length1 = 0; -static gint _photos_tiff_file_format_properties_KNOWN_MIME_TYPES_size_ = 0; -static PhotosTiffFileFormatProperties* photos_tiff_file_format_properties_instance; -static PhotosTiffFileFormatProperties* photos_tiff_file_format_properties_instance = NULL; -static gpointer photos_tiff_sniffer_parent_class = NULL; -static gpointer photos_tiff_reader_parent_class = NULL; -static gpointer photos_tiff_writer_parent_class = NULL; -static gpointer photos_tiff_metadata_writer_parent_class = NULL; - -gpointer photo_file_format_driver_ref (gpointer instance); -void photo_file_format_driver_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_driver (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_format_driver (GValue* value, - gpointer v_object); -void value_take_photo_file_format_driver (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_format_driver (const GValue* value); -GType photo_file_format_driver_get_type (void) G_GNUC_CONST; -gpointer photo_file_format_properties_ref (gpointer instance); -void photo_file_format_properties_unref (gpointer instance); -GParamSpec* param_spec_photo_file_format_properties (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_format_properties (GValue* value, - gpointer v_object); -void value_take_photo_file_format_properties (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_format_properties (const GValue* value); -GType photo_file_format_properties_get_type (void) G_GNUC_CONST; -gpointer photo_file_adapter_ref (gpointer instance); -void photo_file_adapter_unref (gpointer instance); -GParamSpec* param_spec_photo_file_adapter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_adapter (GValue* value, - gpointer v_object); -void value_take_photo_file_adapter (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_adapter (const GValue* value); -GType photo_file_adapter_get_type (void) G_GNUC_CONST; -GType photo_file_reader_get_type (void) G_GNUC_CONST; -gpointer media_metadata_ref (gpointer instance); -void media_metadata_unref (gpointer instance); -GParamSpec* param_spec_media_metadata (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_metadata (GValue* value, - gpointer v_object); -void value_take_media_metadata (GValue* value, - gpointer v_object); -gpointer value_get_media_metadata (const GValue* value); -GType media_metadata_get_type (void) G_GNUC_CONST; -GType photo_metadata_get_type (void) G_GNUC_CONST; -GType photo_file_writer_get_type (void) G_GNUC_CONST; -GType photo_file_metadata_writer_get_type (void) G_GNUC_CONST; -GType photo_file_sniffer_options_get_type (void) G_GNUC_CONST; -gpointer photo_file_sniffer_ref (gpointer instance); -void photo_file_sniffer_unref (gpointer instance); -GParamSpec* param_spec_photo_file_sniffer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_photo_file_sniffer (GValue* value, - gpointer v_object); -void value_take_photo_file_sniffer (GValue* value, - gpointer v_object); -gpointer value_get_photo_file_sniffer (const GValue* value); -GType photo_file_sniffer_get_type (void) G_GNUC_CONST; -GType photos_tiff_file_format_driver_get_type (void) G_GNUC_CONST; -void photos_tiff_file_format_driver_init (void); -PhotosTiffFileFormatDriver* photos_tiff_file_format_driver_new (void); -PhotosTiffFileFormatDriver* photos_tiff_file_format_driver_construct (GType object_type); -void photos_tiff_file_format_properties_init (void); -PhotosTiffFileFormatDriver* photos_tiff_file_format_driver_get_instance (void); -static PhotoFileFormatProperties* photos_tiff_file_format_driver_real_get_properties (PhotoFileFormatDriver* base); -GType photos_tiff_file_format_properties_get_type (void) G_GNUC_CONST; -PhotosTiffFileFormatProperties* photos_tiff_file_format_properties_get_instance (void); -static PhotoFileReader* photos_tiff_file_format_driver_real_create_reader (PhotoFileFormatDriver* base, - const gchar* filepath); -PhotosTiffReader* photos_tiff_reader_new (const gchar* filepath); -PhotosTiffReader* photos_tiff_reader_construct (GType object_type, - const gchar* filepath); -GType gdk_reader_get_type (void) G_GNUC_CONST; -GType photos_tiff_reader_get_type (void) G_GNUC_CONST; -static PhotoMetadata* photos_tiff_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base); -PhotoMetadata* photo_metadata_new (void); -PhotoMetadata* photo_metadata_construct (GType object_type); -static gboolean photos_tiff_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base); -static gboolean photos_tiff_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base); -static PhotoFileWriter* photos_tiff_file_format_driver_real_create_writer (PhotoFileFormatDriver* base, - const gchar* filepath); -PhotosTiffWriter* photos_tiff_writer_new (const gchar* filepath); -PhotosTiffWriter* photos_tiff_writer_construct (GType object_type, - const gchar* filepath); -GType photos_tiff_writer_get_type (void) G_GNUC_CONST; -static PhotoFileMetadataWriter* photos_tiff_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base, - const gchar* filepath); -PhotosTiffMetadataWriter* photos_tiff_metadata_writer_new (const gchar* filepath); -PhotosTiffMetadataWriter* photos_tiff_metadata_writer_construct (GType object_type, - const gchar* filepath); -GType photos_tiff_metadata_writer_get_type (void) G_GNUC_CONST; -static PhotoFileSniffer* photos_tiff_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base, - GFile* file, - PhotoFileSnifferOptions options); -PhotosTiffSniffer* photos_tiff_sniffer_new (GFile* file, - PhotoFileSnifferOptions options); -PhotosTiffSniffer* photos_tiff_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options); -GType gdk_sniffer_get_type (void) G_GNUC_CONST; -GType photos_tiff_sniffer_get_type (void) G_GNUC_CONST; -PhotoFileFormatDriver* photo_file_format_driver_construct (GType object_type); -static void photos_tiff_file_format_driver_finalize (PhotoFileFormatDriver * obj); -GType photo_file_format_get_type (void) G_GNUC_CONST; -GType photo_file_format_flags_get_type (void) G_GNUC_CONST; -PhotosTiffFileFormatProperties* photos_tiff_file_format_properties_new (void); -PhotosTiffFileFormatProperties* photos_tiff_file_format_properties_construct (GType object_type); -static PhotoFileFormat photos_tiff_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base); -static PhotoFileFormatFlags photos_tiff_file_format_properties_real_get_flags (PhotoFileFormatProperties* base); -static gchar* photos_tiff_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base); -static gchar* photos_tiff_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base); -static gchar** photos_tiff_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base, - int* result_length1); -static gchar** _vala_array_dup14 (gchar** self, - int length); -static gchar* photos_tiff_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base); -static gchar** photos_tiff_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base, - int* result_length1); -static gchar** _vala_array_dup15 (gchar** self, - int length); -PhotoFileFormatProperties* photo_file_format_properties_construct (GType object_type); -static void photos_tiff_file_format_properties_finalize (PhotoFileFormatProperties * obj); -gpointer detected_photo_information_ref (gpointer instance); -void detected_photo_information_unref (gpointer instance); -GParamSpec* param_spec_detected_photo_information (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_detected_photo_information (GValue* value, - gpointer v_object); -void value_take_detected_photo_information (GValue* value, - gpointer v_object); -gpointer value_get_detected_photo_information (const GValue* value); -GType detected_photo_information_get_type (void) G_GNUC_CONST; -GdkSniffer* gdk_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options); -static DetectedPhotoInformation* photos_tiff_sniffer_real_sniff (PhotoFileSniffer* base, - gboolean* is_corrupted, - GError** error); -gboolean photos_is_tiff (GFile* file, - GCancellable* cancellable, - GError** error); -DetectedPhotoInformation* photo_file_sniffer_sniff (PhotoFileSniffer* self, - gboolean* is_corrupted, - GError** error); -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -GdkReader* gdk_reader_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -GType jpeg_quality_get_type (void) G_GNUC_CONST; -#define PHOTOS_TIFF_WRITER_COMPRESSION_NONE "1" -#define PHOTOS_TIFF_WRITER_COMPRESSION_HUFFMAN "2" -#define PHOTOS_TIFF_WRITER_COMPRESSION_LZW "5" -#define PHOTOS_TIFF_WRITER_COMPRESSION_JPEG "7" -#define PHOTOS_TIFF_WRITER_COMPRESSION_DEFLATE "8" -PhotoFileWriter* photo_file_writer_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -static void photos_tiff_writer_real_write (PhotoFileWriter* base, - GdkPixbuf* pixbuf, - JpegQuality quality, - GError** error); -gchar* photo_file_adapter_get_filepath (PhotoFileAdapter* self); -PhotoFileMetadataWriter* photo_file_metadata_writer_construct (GType object_type, - const gchar* filepath, - PhotoFileFormat file_format); -static void photos_tiff_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* base, - PhotoMetadata* metadata, - GError** error); -void photo_metadata_write_to_file (PhotoMetadata* self, - GFile* file, - GError** error); -GFile* photo_file_adapter_get_file (PhotoFileAdapter* self); - - -void -photos_tiff_file_format_driver_init (void) -{ - PhotosTiffFileFormatDriver* _tmp0_; -#line 13 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = photos_tiff_file_format_driver_new (); -#line 13 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _photo_file_format_driver_unref0 (photos_tiff_file_format_driver_instance); -#line 13 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - photos_tiff_file_format_driver_instance = _tmp0_; -#line 14 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - photos_tiff_file_format_properties_init (); -#line 677 "TiffSupport.c" -} - - -static gpointer -_photo_file_format_driver_ref0 (gpointer self) -{ -#line 18 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return self ? photo_file_format_driver_ref (self) : NULL; -#line 686 "TiffSupport.c" -} - - -PhotosTiffFileFormatDriver* -photos_tiff_file_format_driver_get_instance (void) -{ - PhotosTiffFileFormatDriver* result = NULL; - PhotosTiffFileFormatDriver* _tmp0_; - PhotosTiffFileFormatDriver* _tmp1_; -#line 18 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = photos_tiff_file_format_driver_instance; -#line 18 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp1_ = _photo_file_format_driver_ref0 (_tmp0_); -#line 18 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = _tmp1_; -#line 18 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 704 "TiffSupport.c" -} - - -static PhotoFileFormatProperties* -photos_tiff_file_format_driver_real_get_properties (PhotoFileFormatDriver* base) -{ - PhotosTiffFileFormatDriver * self; - PhotoFileFormatProperties* result = NULL; - PhotosTiffFileFormatProperties* _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver); -#line 22 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = photos_tiff_file_format_properties_get_instance (); -#line 22 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_FORMAT_PROPERTIES, PhotoFileFormatProperties); -#line 22 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 722 "TiffSupport.c" -} - - -static PhotoFileReader* -photos_tiff_file_format_driver_real_create_reader (PhotoFileFormatDriver* base, - const gchar* filepath) -{ - PhotosTiffFileFormatDriver * self; - PhotoFileReader* result = NULL; - PhotosTiffReader* _tmp0_; -#line 25 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver); -#line 25 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 26 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = photos_tiff_reader_new (filepath); -#line 26 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_READER, PhotoFileReader); -#line 26 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 743 "TiffSupport.c" -} - - -static PhotoMetadata* -photos_tiff_file_format_driver_real_create_metadata (PhotoFileFormatDriver* base) -{ - PhotosTiffFileFormatDriver * self; - PhotoMetadata* result = NULL; - PhotoMetadata* _tmp0_; -#line 29 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver); -#line 30 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = photo_metadata_new (); -#line 30 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = _tmp0_; -#line 30 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 761 "TiffSupport.c" -} - - -static gboolean -photos_tiff_file_format_driver_real_can_write_image (PhotoFileFormatDriver* base) -{ - PhotosTiffFileFormatDriver * self; - gboolean result = FALSE; -#line 33 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver); -#line 34 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = TRUE; -#line 34 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 776 "TiffSupport.c" -} - - -static gboolean -photos_tiff_file_format_driver_real_can_write_metadata (PhotoFileFormatDriver* base) -{ - PhotosTiffFileFormatDriver * self; - gboolean result = FALSE; -#line 37 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver); -#line 38 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = TRUE; -#line 38 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 791 "TiffSupport.c" -} - - -static PhotoFileWriter* -photos_tiff_file_format_driver_real_create_writer (PhotoFileFormatDriver* base, - const gchar* filepath) -{ - PhotosTiffFileFormatDriver * self; - PhotoFileWriter* result = NULL; - PhotosTiffWriter* _tmp0_; -#line 41 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver); -#line 41 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 42 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = photos_tiff_writer_new (filepath); -#line 42 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_WRITER, PhotoFileWriter); -#line 42 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 812 "TiffSupport.c" -} - - -static PhotoFileMetadataWriter* -photos_tiff_file_format_driver_real_create_metadata_writer (PhotoFileFormatDriver* base, - const gchar* filepath) -{ - PhotosTiffFileFormatDriver * self; - PhotoFileMetadataWriter* result = NULL; - PhotosTiffMetadataWriter* _tmp0_; -#line 45 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver); -#line 45 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 46 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = photos_tiff_metadata_writer_new (filepath); -#line 46 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_METADATA_WRITER, PhotoFileMetadataWriter); -#line 46 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 833 "TiffSupport.c" -} - - -static PhotoFileSniffer* -photos_tiff_file_format_driver_real_create_sniffer (PhotoFileFormatDriver* base, - GFile* file, - PhotoFileSnifferOptions options) -{ - PhotosTiffFileFormatDriver * self; - PhotoFileSniffer* result = NULL; - PhotosTiffSniffer* _tmp0_; -#line 49 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver); -#line 49 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 50 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = photos_tiff_sniffer_new (file, options); -#line 50 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer); -#line 50 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 855 "TiffSupport.c" -} - - -PhotosTiffFileFormatDriver* -photos_tiff_file_format_driver_construct (GType object_type) -{ - PhotosTiffFileFormatDriver* self = NULL; -#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = (PhotosTiffFileFormatDriver*) photo_file_format_driver_construct (object_type); -#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return self; -#line 867 "TiffSupport.c" -} - - -PhotosTiffFileFormatDriver* -photos_tiff_file_format_driver_new (void) -{ -#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return photos_tiff_file_format_driver_construct (PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER); -#line 876 "TiffSupport.c" -} - - -static void -photos_tiff_file_format_driver_class_init (PhotosTiffFileFormatDriverClass * klass) -{ -#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - photos_tiff_file_format_driver_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->finalize = photos_tiff_file_format_driver_finalize; -#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->get_properties = (PhotoFileFormatProperties* (*) (PhotoFileFormatDriver *)) photos_tiff_file_format_driver_real_get_properties; -#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_reader = (PhotoFileReader* (*) (PhotoFileFormatDriver *, const gchar*)) photos_tiff_file_format_driver_real_create_reader; -#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_metadata = (PhotoMetadata* (*) (PhotoFileFormatDriver *)) photos_tiff_file_format_driver_real_create_metadata; -#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->can_write_image = (gboolean (*) (PhotoFileFormatDriver *)) photos_tiff_file_format_driver_real_can_write_image; -#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->can_write_metadata = (gboolean (*) (PhotoFileFormatDriver *)) photos_tiff_file_format_driver_real_can_write_metadata; -#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_writer = (PhotoFileWriter* (*) (PhotoFileFormatDriver *, const gchar*)) photos_tiff_file_format_driver_real_create_writer; -#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_metadata_writer = (PhotoFileMetadataWriter* (*) (PhotoFileFormatDriver *, const gchar*)) photos_tiff_file_format_driver_real_create_metadata_writer; -#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileFormatDriverClass *) klass)->create_sniffer = (PhotoFileSniffer* (*) (PhotoFileFormatDriver *, GFile*, PhotoFileSnifferOptions)) photos_tiff_file_format_driver_real_create_sniffer; -#line 903 "TiffSupport.c" -} - - -static void -photos_tiff_file_format_driver_instance_init (PhotosTiffFileFormatDriver * self) -{ -} - - -static void -photos_tiff_file_format_driver_finalize (PhotoFileFormatDriver * obj) -{ - PhotosTiffFileFormatDriver * self; -#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTOS_TYPE_TIFF_FILE_FORMAT_DRIVER, PhotosTiffFileFormatDriver); -#line 9 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - PHOTO_FILE_FORMAT_DRIVER_CLASS (photos_tiff_file_format_driver_parent_class)->finalize (obj); -#line 921 "TiffSupport.c" -} - - -GType -photos_tiff_file_format_driver_get_type (void) -{ - static volatile gsize photos_tiff_file_format_driver_type_id__volatile = 0; - if (g_once_init_enter (&photos_tiff_file_format_driver_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotosTiffFileFormatDriverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_tiff_file_format_driver_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosTiffFileFormatDriver), 0, (GInstanceInitFunc) photos_tiff_file_format_driver_instance_init, NULL }; - GType photos_tiff_file_format_driver_type_id; - photos_tiff_file_format_driver_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_DRIVER, "PhotosTiffFileFormatDriver", &g_define_type_info, 0); - g_once_init_leave (&photos_tiff_file_format_driver_type_id__volatile, photos_tiff_file_format_driver_type_id); - } - return photos_tiff_file_format_driver_type_id__volatile; -} - - -void -photos_tiff_file_format_properties_init (void) -{ - PhotosTiffFileFormatProperties* _tmp0_; -#line 66 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = photos_tiff_file_format_properties_new (); -#line 66 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _photo_file_format_properties_unref0 (photos_tiff_file_format_properties_instance); -#line 66 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - photos_tiff_file_format_properties_instance = _tmp0_; -#line 949 "TiffSupport.c" -} - - -static gpointer -_photo_file_format_properties_ref0 (gpointer self) -{ -#line 70 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return self ? photo_file_format_properties_ref (self) : NULL; -#line 958 "TiffSupport.c" -} - - -PhotosTiffFileFormatProperties* -photos_tiff_file_format_properties_get_instance (void) -{ - PhotosTiffFileFormatProperties* result = NULL; - PhotosTiffFileFormatProperties* _tmp0_; - PhotosTiffFileFormatProperties* _tmp1_; -#line 70 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = photos_tiff_file_format_properties_instance; -#line 70 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp1_ = _photo_file_format_properties_ref0 (_tmp0_); -#line 70 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = _tmp1_; -#line 70 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 976 "TiffSupport.c" -} - - -static PhotoFileFormat -photos_tiff_file_format_properties_real_get_file_format (PhotoFileFormatProperties* base) -{ - PhotosTiffFileFormatProperties * self; - PhotoFileFormat result = 0; -#line 73 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties); -#line 74 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = PHOTO_FILE_FORMAT_TIFF; -#line 74 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 991 "TiffSupport.c" -} - - -static PhotoFileFormatFlags -photos_tiff_file_format_properties_real_get_flags (PhotoFileFormatProperties* base) -{ - PhotosTiffFileFormatProperties * self; - PhotoFileFormatFlags result = 0; -#line 77 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties); -#line 78 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = PHOTO_FILE_FORMAT_FLAGS_NONE; -#line 78 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 1006 "TiffSupport.c" -} - - -static gchar* -photos_tiff_file_format_properties_real_get_default_extension (PhotoFileFormatProperties* base) -{ - PhotosTiffFileFormatProperties * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 81 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties); -#line 82 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = g_strdup ("tif"); -#line 82 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = _tmp0_; -#line 82 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 1024 "TiffSupport.c" -} - - -static gchar* -photos_tiff_file_format_properties_real_get_user_visible_name (PhotoFileFormatProperties* base) -{ - PhotosTiffFileFormatProperties * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 85 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties); -#line 86 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = g_strdup (_ ("TIFF")); -#line 86 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = _tmp0_; -#line 86 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 1042 "TiffSupport.c" -} - - -static gchar** -_vala_array_dup14 (gchar** self, - int length) -{ - gchar** result; - int i; -#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = g_new0 (gchar*, length + 1); -#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - for (i = 0; i < length; i++) { -#line 1056 "TiffSupport.c" - gchar* _tmp0_; -#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = g_strdup (self[i]); -#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result[i] = _tmp0_; -#line 1062 "TiffSupport.c" - } -#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 1066 "TiffSupport.c" -} - - -static gchar** -photos_tiff_file_format_properties_real_get_known_extensions (PhotoFileFormatProperties* base, - int* result_length1) -{ - PhotosTiffFileFormatProperties * self; - gchar** result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - gchar** _tmp1_; - gint _tmp1__length1; - gchar** _tmp2_; - gint _tmp2__length1; -#line 89 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties); -#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = photos_tiff_file_format_properties_KNOWN_EXTENSIONS; -#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0__length1 = photos_tiff_file_format_properties_KNOWN_EXTENSIONS_length1; -#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup14 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_); -#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp1__length1 = _tmp0__length1; -#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp2_ = _tmp1_; -#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp2__length1 = _tmp1__length1; -#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - if (result_length1) { -#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - *result_length1 = _tmp2__length1; -#line 1100 "TiffSupport.c" - } -#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = _tmp2_; -#line 90 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 1106 "TiffSupport.c" -} - - -static gchar* -photos_tiff_file_format_properties_real_get_default_mime_type (PhotoFileFormatProperties* base) -{ - PhotosTiffFileFormatProperties * self; - gchar* result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 93 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties); -#line 94 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = photos_tiff_file_format_properties_KNOWN_MIME_TYPES; -#line 94 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0__length1 = photos_tiff_file_format_properties_KNOWN_MIME_TYPES_length1; -#line 94 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp1_ = _tmp0_[0]; -#line 94 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 94 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = _tmp2_; -#line 94 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 1133 "TiffSupport.c" -} - - -static gchar** -_vala_array_dup15 (gchar** self, - int length) -{ - gchar** result; - int i; -#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = g_new0 (gchar*, length + 1); -#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - for (i = 0; i < length; i++) { -#line 1147 "TiffSupport.c" - gchar* _tmp0_; -#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = g_strdup (self[i]); -#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result[i] = _tmp0_; -#line 1153 "TiffSupport.c" - } -#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 1157 "TiffSupport.c" -} - - -static gchar** -photos_tiff_file_format_properties_real_get_mime_types (PhotoFileFormatProperties* base, - int* result_length1) -{ - PhotosTiffFileFormatProperties * self; - gchar** result = NULL; - gchar** _tmp0_; - gint _tmp0__length1; - gchar** _tmp1_; - gint _tmp1__length1; - gchar** _tmp2_; - gint _tmp2__length1; -#line 97 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties); -#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = photos_tiff_file_format_properties_KNOWN_MIME_TYPES; -#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0__length1 = photos_tiff_file_format_properties_KNOWN_MIME_TYPES_length1; -#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup15 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_); -#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp1__length1 = _tmp0__length1; -#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp2_ = _tmp1_; -#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp2__length1 = _tmp1__length1; -#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - if (result_length1) { -#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - *result_length1 = _tmp2__length1; -#line 1191 "TiffSupport.c" - } -#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = _tmp2_; -#line 98 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 1197 "TiffSupport.c" -} - - -PhotosTiffFileFormatProperties* -photos_tiff_file_format_properties_construct (GType object_type) -{ - PhotosTiffFileFormatProperties* self = NULL; -#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = (PhotosTiffFileFormatProperties*) photo_file_format_properties_construct (object_type); -#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return self; -#line 1209 "TiffSupport.c" -} - - -PhotosTiffFileFormatProperties* -photos_tiff_file_format_properties_new (void) -{ -#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return photos_tiff_file_format_properties_construct (PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES); -#line 1218 "TiffSupport.c" -} - - -static void -photos_tiff_file_format_properties_class_init (PhotosTiffFileFormatPropertiesClass * klass) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar** _tmp2_; - gchar* _tmp3_; - gchar** _tmp4_; -#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - photos_tiff_file_format_properties_parent_class = g_type_class_peek_parent (klass); -#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->finalize = photos_tiff_file_format_properties_finalize; -#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_file_format = (PhotoFileFormat (*) (PhotoFileFormatProperties *)) photos_tiff_file_format_properties_real_get_file_format; -#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_flags = (PhotoFileFormatFlags (*) (PhotoFileFormatProperties *)) photos_tiff_file_format_properties_real_get_flags; -#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_default_extension = (gchar* (*) (PhotoFileFormatProperties *)) photos_tiff_file_format_properties_real_get_default_extension; -#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_user_visible_name = (gchar* (*) (PhotoFileFormatProperties *)) photos_tiff_file_format_properties_real_get_user_visible_name; -#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_known_extensions = (gchar** (*) (PhotoFileFormatProperties *, int*)) photos_tiff_file_format_properties_real_get_known_extensions; -#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_default_mime_type = (gchar* (*) (PhotoFileFormatProperties *)) photos_tiff_file_format_properties_real_get_default_mime_type; -#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileFormatPropertiesClass *) klass)->get_mime_types = (gchar** (*) (PhotoFileFormatProperties *, int*)) photos_tiff_file_format_properties_real_get_mime_types; -#line 55 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = g_strdup ("tif"); -#line 55 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp1_ = g_strdup ("tiff"); -#line 55 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp2_ = g_new0 (gchar*, 2 + 1); -#line 55 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp2_[0] = _tmp0_; -#line 55 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp2_[1] = _tmp1_; -#line 55 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - photos_tiff_file_format_properties_KNOWN_EXTENSIONS = _tmp2_; -#line 55 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - photos_tiff_file_format_properties_KNOWN_EXTENSIONS_length1 = 2; -#line 59 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp3_ = g_strdup ("image/tiff"); -#line 59 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp4_ = g_new0 (gchar*, 1 + 1); -#line 59 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp4_[0] = _tmp3_; -#line 59 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - photos_tiff_file_format_properties_KNOWN_MIME_TYPES = _tmp4_; -#line 59 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - photos_tiff_file_format_properties_KNOWN_MIME_TYPES_length1 = 1; -#line 1272 "TiffSupport.c" -} - - -static void -photos_tiff_file_format_properties_instance_init (PhotosTiffFileFormatProperties * self) -{ -} - - -static void -photos_tiff_file_format_properties_finalize (PhotoFileFormatProperties * obj) -{ - PhotosTiffFileFormatProperties * self; -#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PHOTOS_TYPE_TIFF_FILE_FORMAT_PROPERTIES, PhotosTiffFileFormatProperties); -#line 54 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - PHOTO_FILE_FORMAT_PROPERTIES_CLASS (photos_tiff_file_format_properties_parent_class)->finalize (obj); -#line 1290 "TiffSupport.c" -} - - -GType -photos_tiff_file_format_properties_get_type (void) -{ - static volatile gsize photos_tiff_file_format_properties_type_id__volatile = 0; - if (g_once_init_enter (&photos_tiff_file_format_properties_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotosTiffFileFormatPropertiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_tiff_file_format_properties_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosTiffFileFormatProperties), 0, (GInstanceInitFunc) photos_tiff_file_format_properties_instance_init, NULL }; - GType photos_tiff_file_format_properties_type_id; - photos_tiff_file_format_properties_type_id = g_type_register_static (TYPE_PHOTO_FILE_FORMAT_PROPERTIES, "PhotosTiffFileFormatProperties", &g_define_type_info, 0); - g_once_init_leave (&photos_tiff_file_format_properties_type_id__volatile, photos_tiff_file_format_properties_type_id); - } - return photos_tiff_file_format_properties_type_id__volatile; -} - - -PhotosTiffSniffer* -photos_tiff_sniffer_construct (GType object_type, - GFile* file, - PhotoFileSnifferOptions options) -{ - PhotosTiffSniffer* self = NULL; -#line 103 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 104 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = (PhotosTiffSniffer*) gdk_sniffer_construct (object_type, file, options); -#line 103 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return self; -#line 1320 "TiffSupport.c" -} - - -PhotosTiffSniffer* -photos_tiff_sniffer_new (GFile* file, - PhotoFileSnifferOptions options) -{ -#line 103 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return photos_tiff_sniffer_construct (PHOTOS_TYPE_TIFF_SNIFFER, file, options); -#line 1330 "TiffSupport.c" -} - - -static gpointer -_detected_photo_information_ref0 (gpointer self) -{ -#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return self ? detected_photo_information_ref (self) : NULL; -#line 1339 "TiffSupport.c" -} - - -static DetectedPhotoInformation* -photos_tiff_sniffer_real_sniff (PhotoFileSniffer* base, - gboolean* is_corrupted, - GError** error) -{ - PhotosTiffSniffer * self; - gboolean _vala_is_corrupted = FALSE; - DetectedPhotoInformation* result = NULL; - gboolean _tmp0_ = FALSE; - GFile* _tmp1_; - DetectedPhotoInformation* detected = NULL; - gboolean _tmp2_ = FALSE; - DetectedPhotoInformation* _tmp3_; - DetectedPhotoInformation* _tmp4_; - DetectedPhotoInformation* _tmp5_ = NULL; - DetectedPhotoInformation* _tmp6_; - PhotoFileFormat _tmp7_; - DetectedPhotoInformation* _tmp9_; - GError * _inner_error_ = NULL; -#line 107 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_SNIFFER, PhotosTiffSniffer); -#line 109 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _vala_is_corrupted = FALSE; -#line 111 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer)->file; -#line 111 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = photos_is_tiff (_tmp1_, NULL, &_inner_error_); -#line 111 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 111 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_propagate_error (error, _inner_error_); -#line 111 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return NULL; -#line 1376 "TiffSupport.c" - } -#line 111 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - if (!_tmp0_) { -#line 112 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = NULL; -#line 112 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - if (is_corrupted) { -#line 112 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - *is_corrupted = _vala_is_corrupted; -#line 1386 "TiffSupport.c" - } -#line 112 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 1390 "TiffSupport.c" - } -#line 114 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp3_ = PHOTO_FILE_SNIFFER_CLASS (photos_tiff_sniffer_parent_class)->sniff (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_GDK_SNIFFER, GdkSniffer), TYPE_PHOTO_FILE_SNIFFER, PhotoFileSniffer), &_tmp2_, &_inner_error_); -#line 114 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _vala_is_corrupted = _tmp2_; -#line 114 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - detected = _tmp3_; -#line 114 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 114 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_propagate_error (error, _inner_error_); -#line 114 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return NULL; -#line 1404 "TiffSupport.c" - } -#line 115 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp4_ = detected; -#line 115 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - if (_tmp4_ == NULL) { -#line 116 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = NULL; -#line 116 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _detected_photo_information_unref0 (detected); -#line 116 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - if (is_corrupted) { -#line 116 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - *is_corrupted = _vala_is_corrupted; -#line 1418 "TiffSupport.c" - } -#line 116 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 1422 "TiffSupport.c" - } -#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp6_ = detected; -#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp7_ = _tmp6_->file_format; -#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - if (_tmp7_ == PHOTO_FILE_FORMAT_TIFF) { -#line 1430 "TiffSupport.c" - DetectedPhotoInformation* _tmp8_; -#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp8_ = detected; -#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp5_ = _tmp8_; -#line 1436 "TiffSupport.c" - } else { -#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp5_ = NULL; -#line 1440 "TiffSupport.c" - } -#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp9_ = _detected_photo_information_ref0 (_tmp5_); -#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = _tmp9_; -#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _detected_photo_information_unref0 (detected); -#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - if (is_corrupted) { -#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - *is_corrupted = _vala_is_corrupted; -#line 1452 "TiffSupport.c" - } -#line 118 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 1456 "TiffSupport.c" -} - - -static void -photos_tiff_sniffer_class_init (PhotosTiffSnifferClass * klass) -{ -#line 102 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - photos_tiff_sniffer_parent_class = g_type_class_peek_parent (klass); -#line 102 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileSnifferClass *) klass)->sniff = (DetectedPhotoInformation* (*) (PhotoFileSniffer *, gboolean*, GError**)) photos_tiff_sniffer_real_sniff; -#line 1467 "TiffSupport.c" -} - - -static void -photos_tiff_sniffer_instance_init (PhotosTiffSniffer * self) -{ -} - - -GType -photos_tiff_sniffer_get_type (void) -{ - static volatile gsize photos_tiff_sniffer_type_id__volatile = 0; - if (g_once_init_enter (&photos_tiff_sniffer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotosTiffSnifferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_tiff_sniffer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosTiffSniffer), 0, (GInstanceInitFunc) photos_tiff_sniffer_instance_init, NULL }; - GType photos_tiff_sniffer_type_id; - photos_tiff_sniffer_type_id = g_type_register_static (TYPE_GDK_SNIFFER, "PhotosTiffSniffer", &g_define_type_info, 0); - g_once_init_leave (&photos_tiff_sniffer_type_id__volatile, photos_tiff_sniffer_type_id); - } - return photos_tiff_sniffer_type_id__volatile; -} - - -PhotosTiffReader* -photos_tiff_reader_construct (GType object_type, - const gchar* filepath) -{ - PhotosTiffReader* self = NULL; -#line 123 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 124 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = (PhotosTiffReader*) gdk_reader_construct (object_type, filepath, PHOTO_FILE_FORMAT_TIFF); -#line 123 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return self; -#line 1502 "TiffSupport.c" -} - - -PhotosTiffReader* -photos_tiff_reader_new (const gchar* filepath) -{ -#line 123 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return photos_tiff_reader_construct (PHOTOS_TYPE_TIFF_READER, filepath); -#line 1511 "TiffSupport.c" -} - - -static void -photos_tiff_reader_class_init (PhotosTiffReaderClass * klass) -{ -#line 122 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - photos_tiff_reader_parent_class = g_type_class_peek_parent (klass); -#line 1520 "TiffSupport.c" -} - - -static void -photos_tiff_reader_instance_init (PhotosTiffReader * self) -{ -} - - -GType -photos_tiff_reader_get_type (void) -{ - static volatile gsize photos_tiff_reader_type_id__volatile = 0; - if (g_once_init_enter (&photos_tiff_reader_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotosTiffReaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_tiff_reader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosTiffReader), 0, (GInstanceInitFunc) photos_tiff_reader_instance_init, NULL }; - GType photos_tiff_reader_type_id; - photos_tiff_reader_type_id = g_type_register_static (TYPE_GDK_READER, "PhotosTiffReader", &g_define_type_info, 0); - g_once_init_leave (&photos_tiff_reader_type_id__volatile, photos_tiff_reader_type_id); - } - return photos_tiff_reader_type_id__volatile; -} - - -PhotosTiffWriter* -photos_tiff_writer_construct (GType object_type, - const gchar* filepath) -{ - PhotosTiffWriter* self = NULL; -#line 135 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 136 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = (PhotosTiffWriter*) photo_file_writer_construct (object_type, filepath, PHOTO_FILE_FORMAT_TIFF); -#line 135 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return self; -#line 1555 "TiffSupport.c" -} - - -PhotosTiffWriter* -photos_tiff_writer_new (const gchar* filepath) -{ -#line 135 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return photos_tiff_writer_construct (PHOTOS_TYPE_TIFF_WRITER, filepath); -#line 1564 "TiffSupport.c" -} - - -static void -photos_tiff_writer_real_write (PhotoFileWriter* base, - GdkPixbuf* pixbuf, - JpegQuality quality, - GError** error) -{ - PhotosTiffWriter * self; - gchar* _tmp0_; - gchar* _tmp1_; - GError * _inner_error_ = NULL; -#line 139 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_WRITER, PhotosTiffWriter); -#line 139 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 140 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = photo_file_adapter_get_filepath (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 140 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp1_ = _tmp0_; -#line 140 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - gdk_pixbuf_save (pixbuf, _tmp1_, "tiff", &_inner_error_, "compression", PHOTOS_TIFF_WRITER_COMPRESSION_LZW, NULL); -#line 140 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _g_free0 (_tmp1_); -#line 140 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 140 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_propagate_error (error, _inner_error_); -#line 140 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return; -#line 1596 "TiffSupport.c" - } -} - - -static void -photos_tiff_writer_class_init (PhotosTiffWriterClass * klass) -{ -#line 128 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - photos_tiff_writer_parent_class = g_type_class_peek_parent (klass); -#line 128 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileWriterClass *) klass)->write = (void (*) (PhotoFileWriter *, GdkPixbuf*, JpegQuality, GError**)) photos_tiff_writer_real_write; -#line 1608 "TiffSupport.c" -} - - -static void -photos_tiff_writer_instance_init (PhotosTiffWriter * self) -{ -} - - -GType -photos_tiff_writer_get_type (void) -{ - static volatile gsize photos_tiff_writer_type_id__volatile = 0; - if (g_once_init_enter (&photos_tiff_writer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotosTiffWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_tiff_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosTiffWriter), 0, (GInstanceInitFunc) photos_tiff_writer_instance_init, NULL }; - GType photos_tiff_writer_type_id; - photos_tiff_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_WRITER, "PhotosTiffWriter", &g_define_type_info, 0); - g_once_init_leave (&photos_tiff_writer_type_id__volatile, photos_tiff_writer_type_id); - } - return photos_tiff_writer_type_id__volatile; -} - - -PhotosTiffMetadataWriter* -photos_tiff_metadata_writer_construct (GType object_type, - const gchar* filepath) -{ - PhotosTiffMetadataWriter* self = NULL; -#line 145 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_return_val_if_fail (filepath != NULL, NULL); -#line 146 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = (PhotosTiffMetadataWriter*) photo_file_metadata_writer_construct (object_type, filepath, PHOTO_FILE_FORMAT_TIFF); -#line 145 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return self; -#line 1643 "TiffSupport.c" -} - - -PhotosTiffMetadataWriter* -photos_tiff_metadata_writer_new (const gchar* filepath) -{ -#line 145 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return photos_tiff_metadata_writer_construct (PHOTOS_TYPE_TIFF_METADATA_WRITER, filepath); -#line 1652 "TiffSupport.c" -} - - -static void -photos_tiff_metadata_writer_real_write_metadata (PhotoFileMetadataWriter* base, - PhotoMetadata* metadata, - GError** error) -{ - PhotosTiffMetadataWriter * self; - GFile* _tmp0_; - GFile* _tmp1_; - GError * _inner_error_ = NULL; -#line 149 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PHOTOS_TYPE_TIFF_METADATA_WRITER, PhotosTiffMetadataWriter); -#line 149 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_return_if_fail (IS_PHOTO_METADATA (metadata)); -#line 150 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = photo_file_adapter_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PHOTO_FILE_ADAPTER, PhotoFileAdapter)); -#line 150 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp1_ = _tmp0_; -#line 150 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - photo_metadata_write_to_file (metadata, _tmp1_, &_inner_error_); -#line 150 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _g_object_unref0 (_tmp1_); -#line 150 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 150 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_propagate_error (error, _inner_error_); -#line 150 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return; -#line 1683 "TiffSupport.c" - } -} - - -static void -photos_tiff_metadata_writer_class_init (PhotosTiffMetadataWriterClass * klass) -{ -#line 144 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - photos_tiff_metadata_writer_parent_class = g_type_class_peek_parent (klass); -#line 144 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - ((PhotoFileMetadataWriterClass *) klass)->write_metadata = (void (*) (PhotoFileMetadataWriter *, PhotoMetadata*, GError**)) photos_tiff_metadata_writer_real_write_metadata; -#line 1695 "TiffSupport.c" -} - - -static void -photos_tiff_metadata_writer_instance_init (PhotosTiffMetadataWriter * self) -{ -} - - -GType -photos_tiff_metadata_writer_get_type (void) -{ - static volatile gsize photos_tiff_metadata_writer_type_id__volatile = 0; - if (g_once_init_enter (&photos_tiff_metadata_writer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PhotosTiffMetadataWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) photos_tiff_metadata_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PhotosTiffMetadataWriter), 0, (GInstanceInitFunc) photos_tiff_metadata_writer_instance_init, NULL }; - GType photos_tiff_metadata_writer_type_id; - photos_tiff_metadata_writer_type_id = g_type_register_static (TYPE_PHOTO_FILE_METADATA_WRITER, "PhotosTiffMetadataWriter", &g_define_type_info, 0); - g_once_init_leave (&photos_tiff_metadata_writer_type_id__volatile, photos_tiff_metadata_writer_type_id); - } - return photos_tiff_metadata_writer_type_id__volatile; -} - - -gboolean -photos_is_tiff (GFile* file, - GCancellable* cancellable, - GError** error) -{ - gboolean result = FALSE; - GFileInputStream* _tmp0_ = NULL; - GFileInputStream* _tmp1_; - GDataInputStream* dins = NULL; - GDataInputStream* _tmp3_; - GDataStreamByteOrder order = 0; - guint16 _tmp4_ = 0U; - GDataInputStream* _tmp5_; - GDataInputStream* _tmp7_; - GDataStreamByteOrder _tmp8_; - guint16 lue = 0U; - GDataInputStream* _tmp9_; - guint16 _tmp11_; - GError * _inner_error_ = NULL; -#line 154 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 154 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_return_val_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable), FALSE); -#line 155 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp1_ = g_file_read (file, NULL, &_inner_error_); -#line 155 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp0_ = _tmp1_; -#line 155 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1748 "TiffSupport.c" - gboolean _tmp2_ = FALSE; -#line 155 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_propagate_error (error, _inner_error_); -#line 155 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return _tmp2_; -#line 1754 "TiffSupport.c" - } -#line 155 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp3_ = g_data_input_stream_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream)); -#line 155 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - dins = _tmp3_; -#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp5_ = dins; -#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp4_ = g_data_input_stream_read_uint16 (_tmp5_, cancellable, &_inner_error_); -#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1766 "TiffSupport.c" - gboolean _tmp6_ = FALSE; -#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_propagate_error (error, _inner_error_); -#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _g_object_unref0 (dins); -#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _g_object_unref0 (_tmp0_); -#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return _tmp6_; -#line 1776 "TiffSupport.c" - } -#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - switch (_tmp4_) { -#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - case 0x4949: -#line 1782 "TiffSupport.c" - { -#line 161 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - order = G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN; -#line 162 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - break; -#line 1788 "TiffSupport.c" - } -#line 159 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - case 0x4D4D: -#line 1792 "TiffSupport.c" - { -#line 165 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - order = G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN; -#line 166 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - break; -#line 1798 "TiffSupport.c" - } - default: - { -#line 169 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = FALSE; -#line 169 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _g_object_unref0 (dins); -#line 169 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _g_object_unref0 (_tmp0_); -#line 169 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 1810 "TiffSupport.c" - } - } -#line 172 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp7_ = dins; -#line 172 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp8_ = order; -#line 172 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_data_input_stream_set_byte_order (_tmp7_, _tmp8_); -#line 175 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp9_ = dins; -#line 175 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - lue = g_data_input_stream_read_uint16 (_tmp9_, cancellable, &_inner_error_); -#line 175 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1825 "TiffSupport.c" - gboolean _tmp10_ = FALSE; -#line 175 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - g_propagate_error (error, _inner_error_); -#line 175 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _g_object_unref0 (dins); -#line 175 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _g_object_unref0 (_tmp0_); -#line 175 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return _tmp10_; -#line 1835 "TiffSupport.c" - } -#line 176 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _tmp11_ = lue; -#line 176 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - if (((gint) _tmp11_) != 42) { -#line 177 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = FALSE; -#line 177 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _g_object_unref0 (dins); -#line 177 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _g_object_unref0 (_tmp0_); -#line 177 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 1849 "TiffSupport.c" - } -#line 180 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - result = TRUE; -#line 180 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _g_object_unref0 (dins); -#line 180 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - _g_object_unref0 (_tmp0_); -#line 180 "/home/jens/Source/shotwell/src/photos/TiffSupport.vala" - return result; -#line 1859 "TiffSupport.c" -} - - - diff --git a/src/plugins/DataImportsInterfaces.c b/src/plugins/DataImportsInterfaces.c deleted file mode 100644 index eb06253..0000000 --- a/src/plugins/DataImportsInterfaces.c +++ /dev/null @@ -1,2034 +0,0 @@ -/* DataImportsInterfaces.c generated by valac 0.40.4, the Vala compiler - * generated from DataImportsInterfaces.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER (spit_data_imports_data_importer_get_type ()) -#define SPIT_DATA_IMPORTS_DATA_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporter)) -#define SPIT_DATA_IMPORTS_IS_DATA_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER)) -#define SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_DATA_IMPORTER, SpitDataImportsDataImporterIface)) - -typedef struct _SpitDataImportsDataImporter SpitDataImportsDataImporter; -typedef struct _SpitDataImportsDataImporterIface SpitDataImportsDataImporterIface; - -#define SPIT_TYPE_PLUGGABLE (spit_pluggable_get_type ()) -#define SPIT_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggable)) -#define SPIT_IS_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_PLUGGABLE)) -#define SPIT_PLUGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggableIface)) - -typedef struct _SpitPluggable SpitPluggable; -typedef struct _SpitPluggableIface SpitPluggableIface; - -#define SPIT_TYPE_PLUGGABLE_INFO (spit_pluggable_info_get_type ()) -typedef struct _SpitPluggableInfo SpitPluggableInfo; - -#define SPIT_DATA_IMPORTS_TYPE_SERVICE (spit_data_imports_service_get_type ()) -#define SPIT_DATA_IMPORTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsService)) -#define SPIT_DATA_IMPORTS_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE)) -#define SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_SERVICE, SpitDataImportsServiceIface)) - -typedef struct _SpitDataImportsService SpitDataImportsService; -typedef struct _SpitDataImportsServiceIface SpitDataImportsServiceIface; - -#define SPIT_TYPE_HOST_INTERFACE (spit_host_interface_get_type ()) -#define SPIT_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterface)) -#define SPIT_IS_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_HOST_INTERFACE)) -#define SPIT_HOST_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterfaceIface)) - -typedef struct _SpitHostInterface SpitHostInterface; -typedef struct _SpitHostInterfaceIface SpitHostInterfaceIface; - -#define SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST (spit_data_imports_plugin_host_get_type ()) -#define SPIT_DATA_IMPORTS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHost)) -#define SPIT_DATA_IMPORTS_IS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST)) -#define SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_PLUGIN_HOST, SpitDataImportsPluginHostIface)) - -typedef struct _SpitDataImportsPluginHost SpitDataImportsPluginHost; -typedef struct _SpitDataImportsPluginHostIface SpitDataImportsPluginHostIface; - -#define SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE (spit_data_imports_dialog_pane_get_type ()) -#define SPIT_DATA_IMPORTS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPane)) -#define SPIT_DATA_IMPORTS_IS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE)) -#define SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_DIALOG_PANE, SpitDataImportsDialogPaneIface)) - -typedef struct _SpitDataImportsDialogPane SpitDataImportsDialogPane; -typedef struct _SpitDataImportsDialogPaneIface SpitDataImportsDialogPaneIface; - -#define SPIT_DATA_IMPORTS_DIALOG_PANE_TYPE_GEOMETRY_OPTIONS (spit_data_imports_dialog_pane_geometry_options_get_type ()) - -#define SPIT_DATA_IMPORTS_PLUGIN_HOST_TYPE_BUTTON_MODE (spit_data_imports_plugin_host_button_mode_get_type ()) - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY (spit_data_imports_importable_library_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY, SpitDataImportsImportableLibrary)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_LIBRARY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_LIBRARY, SpitDataImportsImportableLibraryIface)) - -typedef struct _SpitDataImportsImportableLibrary SpitDataImportsImportableLibrary; -typedef struct _SpitDataImportsImportableLibraryIface SpitDataImportsImportableLibraryIface; - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM (spit_data_imports_importable_media_item_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItem)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_MEDIA_ITEM, SpitDataImportsImportableMediaItemIface)) - -typedef struct _SpitDataImportsImportableMediaItem SpitDataImportsImportableMediaItem; -typedef struct _SpitDataImportsImportableMediaItemIface SpitDataImportsImportableMediaItemIface; - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG (spit_data_imports_importable_tag_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, SpitDataImportsImportableTag)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_TAG_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_TAG, SpitDataImportsImportableTagIface)) - -typedef struct _SpitDataImportsImportableTag SpitDataImportsImportableTag; -typedef struct _SpitDataImportsImportableTagIface SpitDataImportsImportableTagIface; - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT (spit_data_imports_importable_event_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT, SpitDataImportsImportableEvent)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_EVENT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_EVENT, SpitDataImportsImportableEventIface)) - -typedef struct _SpitDataImportsImportableEvent SpitDataImportsImportableEvent; -typedef struct _SpitDataImportsImportableEventIface SpitDataImportsImportableEventIface; - -#define SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING (spit_data_imports_importable_rating_get_type ()) -#define SPIT_DATA_IMPORTS_IMPORTABLE_RATING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING, SpitDataImportsImportableRating)) -#define SPIT_DATA_IMPORTS_IS_IMPORTABLE_RATING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING)) -#define SPIT_DATA_IMPORTS_IMPORTABLE_RATING_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_DATA_IMPORTS_TYPE_IMPORTABLE_RATING, SpitDataImportsImportableRatingIface)) - -typedef struct _SpitDataImportsImportableRating SpitDataImportsImportableRating; -typedef struct _SpitDataImportsImportableRatingIface SpitDataImportsImportableRatingIface; - -/** - * The error domain for alien databases - */ -typedef enum { - SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR_UNSUPPORTED_VERSION -} SpitDataImportsDataImportError; -#define SPIT_DATA_IMPORTS_DATA_IMPORT_ERROR spit_data_imports_data_import_error_quark () -struct _SpitPluggableInfo { - gchar* version; - gchar* brief_description; - gchar* authors; - gchar* copyright; - gchar* license; - gboolean is_license_wordwrapped; - gchar* website_url; - gchar* website_name; - gchar* translators; - GdkPixbuf** icons; - gint icons_length1; -}; - -struct _SpitPluggableIface { - GTypeInterface parent_iface; - gint (*get_pluggable_interface) (SpitPluggable* self, gint min_host_interface, gint max_host_interface); - const gchar* (*get_id) (SpitPluggable* self); - const gchar* (*get_pluggable_name) (SpitPluggable* self); - void (*get_info) (SpitPluggable* self, SpitPluggableInfo* info); - void (*activation) (SpitPluggable* self, gboolean enabled); - void (*reserved0) (SpitPluggable* self); - void (*reserved1) (SpitPluggable* self); - void (*reserved2) (SpitPluggable* self); - void (*reserved3) (SpitPluggable* self); - void (*reserved4) (SpitPluggable* self); - void (*reserved5) (SpitPluggable* self); - void (*reserved6) (SpitPluggable* self); - void (*reserved7) (SpitPluggable* self); -}; - -struct _SpitHostInterfaceIface { - GTypeInterface parent_iface; - GFile* (*get_module_file) (SpitHostInterface* self); - gboolean (*get_config_bool) (SpitHostInterface* self, const gchar* key, gboolean def); - void (*set_config_bool) (SpitHostInterface* self, const gchar* key, gboolean val); - gint (*get_config_int) (SpitHostInterface* self, const gchar* key, gint def); - void (*set_config_int) (SpitHostInterface* self, const gchar* key, gint val); - gchar* (*get_config_string) (SpitHostInterface* self, const gchar* key, const gchar* def); - void (*set_config_string) (SpitHostInterface* self, const gchar* key, const gchar* val); - gdouble (*get_config_double) (SpitHostInterface* self, const gchar* key, gdouble def); - void (*set_config_double) (SpitHostInterface* self, const gchar* key, gdouble val); - void (*unset_config_key) (SpitHostInterface* self, const gchar* key); - void (*reserved0) (SpitHostInterface* self); - void (*reserved1) (SpitHostInterface* self); - void (*reserved2) (SpitHostInterface* self); - void (*reserved3) (SpitHostInterface* self); - void (*reserved4) (SpitHostInterface* self); - void (*reserved5) (SpitHostInterface* self); - void (*reserved6) (SpitHostInterface* self); - void (*reserved7) (SpitHostInterface* self); -}; - -typedef enum { - SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_NONE = 0, - SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE = 1 << 0, - SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE = 1 << 1, - SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE = 1 << 2 -} SpitDataImportsDialogPaneGeometryOptions; - -struct _SpitDataImportsDialogPaneIface { - GTypeInterface parent_iface; - GtkWidget* (*get_widget) (SpitDataImportsDialogPane* self); - SpitDataImportsDialogPaneGeometryOptions (*get_preferred_geometry) (SpitDataImportsDialogPane* self); - void (*on_pane_installed) (SpitDataImportsDialogPane* self); - void (*on_pane_uninstalled) (SpitDataImportsDialogPane* self); - void (*reserved0) (SpitDataImportsDialogPane* self); - void (*reserved1) (SpitDataImportsDialogPane* self); - void (*reserved2) (SpitDataImportsDialogPane* self); - void (*reserved3) (SpitDataImportsDialogPane* self); - void (*reserved4) (SpitDataImportsDialogPane* self); - void (*reserved5) (SpitDataImportsDialogPane* self); - void (*reserved6) (SpitDataImportsDialogPane* self); - void (*reserved7) (SpitDataImportsDialogPane* self); -}; - -typedef enum { - SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE = 0, - SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL = 1 -} SpitDataImportsPluginHostButtonMode; - -struct _SpitDataImportsImportableLibraryIface { - GTypeInterface parent_iface; - gchar* (*get_display_name) (SpitDataImportsImportableLibrary* self); -}; - -struct _SpitDataImportsImportableTagIface { - GTypeInterface parent_iface; - gchar* (*get_name) (SpitDataImportsImportableTag* self); - SpitDataImportsImportableTag* (*get_parent) (SpitDataImportsImportableTag* self); -}; - -struct _SpitDataImportsImportableEventIface { - GTypeInterface parent_iface; - gchar* (*get_name) (SpitDataImportsImportableEvent* self); -}; - -struct _SpitDataImportsImportableRatingIface { - GTypeInterface parent_iface; - gboolean (*is_unrated) (SpitDataImportsImportableRating* self); - gboolean (*is_rejected) (SpitDataImportsImportableRating* self); - gint (*get_value) (SpitDataImportsImportableRating* self); -}; - -struct _SpitDataImportsImportableMediaItemIface { - GTypeInterface parent_iface; - SpitDataImportsImportableTag** (*get_tags) (SpitDataImportsImportableMediaItem* self, int* result_length1); - SpitDataImportsImportableEvent* (*get_event) (SpitDataImportsImportableMediaItem* self); - SpitDataImportsImportableRating* (*get_rating) (SpitDataImportsImportableMediaItem* self); - gchar* (*get_title) (SpitDataImportsImportableMediaItem* self); - gchar* (*get_folder_path) (SpitDataImportsImportableMediaItem* self); - gchar* (*get_filename) (SpitDataImportsImportableMediaItem* self); - time_t* (*get_exposure_time) (SpitDataImportsImportableMediaItem* self); -}; - -typedef void (*SpitDataImportsImportedItemsCountCallback) (gint imported_items_count, void* user_data); -struct _SpitDataImportsPluginHostIface { - GTypeInterface parent_iface; - void (*post_error) (SpitDataImportsPluginHost* self, GError* err); - void (*post_error_message) (SpitDataImportsPluginHost* self, const gchar* msg); - void (*start_importing) (SpitDataImportsPluginHost* self); - void (*stop_importing) (SpitDataImportsPluginHost* self); - SpitDataImportsDataImporter* (*get_data_importer) (SpitDataImportsPluginHost* self); - void (*install_dialog_pane) (SpitDataImportsPluginHost* self, SpitDataImportsDialogPane* pane, SpitDataImportsPluginHostButtonMode mode); - void (*install_static_message_pane) (SpitDataImportsPluginHost* self, const gchar* message, SpitDataImportsPluginHostButtonMode mode); - void (*install_library_selection_pane) (SpitDataImportsPluginHost* self, const gchar* welcome_message, SpitDataImportsImportableLibrary** discovered_libraries, int discovered_libraries_length1, const gchar* file_select_label); - void (*install_import_progress_pane) (SpitDataImportsPluginHost* self, const gchar* message); - void (*update_import_progress_pane) (SpitDataImportsPluginHost* self, gdouble progress, const gchar* progress_message); - void (*prepare_media_items_for_import) (SpitDataImportsPluginHost* self, SpitDataImportsImportableMediaItem** items, int items_length1, gdouble progress, gdouble host_progress_delta, const gchar* progress_message); - void (*finalize_import) (SpitDataImportsPluginHost* self, SpitDataImportsImportedItemsCountCallback report_imported_items_count, void* report_imported_items_count_target, const gchar* finalize_message); - void (*reserved0) (SpitDataImportsPluginHost* self); - void (*reserved1) (SpitDataImportsPluginHost* self); - void (*reserved2) (SpitDataImportsPluginHost* self); - void (*reserved3) (SpitDataImportsPluginHost* self); - void (*reserved4) (SpitDataImportsPluginHost* self); - void (*reserved5) (SpitDataImportsPluginHost* self); - void (*reserved6) (SpitDataImportsPluginHost* self); - void (*reserved7) (SpitDataImportsPluginHost* self); -}; - -struct _SpitDataImportsServiceIface { - GTypeInterface parent_iface; - SpitDataImportsDataImporter* (*create_data_importer) (SpitDataImportsService* self, SpitDataImportsPluginHost* host); - void (*reserved0) (SpitDataImportsService* self); - void (*reserved1) (SpitDataImportsService* self); - void (*reserved2) (SpitDataImportsService* self); - void (*reserved3) (SpitDataImportsService* self); - void (*reserved4) (SpitDataImportsService* self); - void (*reserved5) (SpitDataImportsService* self); - void (*reserved6) (SpitDataImportsService* self); - void (*reserved7) (SpitDataImportsService* self); -}; - -struct _SpitDataImportsDataImporterIface { - GTypeInterface parent_iface; - SpitDataImportsService* (*get_service) (SpitDataImportsDataImporter* self); - void (*start) (SpitDataImportsDataImporter* self); - gboolean (*is_running) (SpitDataImportsDataImporter* self); - void (*stop) (SpitDataImportsDataImporter* self); - void (*on_library_selected) (SpitDataImportsDataImporter* self, SpitDataImportsImportableLibrary* library); - void (*on_file_selected) (SpitDataImportsDataImporter* self, GFile* file); - void (*reserved0) (SpitDataImportsDataImporter* self); - void (*reserved1) (SpitDataImportsDataImporter* self); - void (*reserved2) (SpitDataImportsDataImporter* self); - void (*reserved3) (SpitDataImportsDataImporter* self); - void (*reserved4) (SpitDataImportsDataImporter* self); - void (*reserved5) (SpitDataImportsDataImporter* self); - void (*reserved6) (SpitDataImportsDataImporter* self); - void (*reserved7) (SpitDataImportsDataImporter* self); -}; - - - -#define SPIT_DATA_IMPORTS_CURRENT_INTERFACE 0 -GQuark spit_data_imports_data_import_error_quark (void); -GType spit_pluggable_info_get_type (void) G_GNUC_CONST; -SpitPluggableInfo* spit_pluggable_info_dup (const SpitPluggableInfo* self); -void spit_pluggable_info_free (SpitPluggableInfo* self); -void spit_pluggable_info_copy (const SpitPluggableInfo* self, - SpitPluggableInfo* dest); -void spit_pluggable_info_destroy (SpitPluggableInfo* self); -GType spit_pluggable_get_type (void) G_GNUC_CONST; -GType spit_host_interface_get_type (void) G_GNUC_CONST; -GType spit_data_imports_dialog_pane_geometry_options_get_type (void) G_GNUC_CONST; -GType spit_data_imports_dialog_pane_get_type (void) G_GNUC_CONST; -GType spit_data_imports_plugin_host_button_mode_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_library_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_tag_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_event_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_rating_get_type (void) G_GNUC_CONST; -GType spit_data_imports_importable_media_item_get_type (void) G_GNUC_CONST; -GType spit_data_imports_plugin_host_get_type (void) G_GNUC_CONST; -GType spit_data_imports_service_get_type (void) G_GNUC_CONST; -GType spit_data_imports_data_importer_get_type (void) G_GNUC_CONST; -SpitDataImportsService* spit_data_imports_data_importer_get_service (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_start (SpitDataImportsDataImporter* self); -gboolean spit_data_imports_data_importer_is_running (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_stop (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_on_library_selected (SpitDataImportsDataImporter* self, - SpitDataImportsImportableLibrary* library); -void spit_data_imports_data_importer_on_file_selected (SpitDataImportsDataImporter* self, - GFile* file); -void spit_data_imports_data_importer_reserved0 (SpitDataImportsDataImporter* self); -static void spit_data_imports_data_importer_real_reserved0 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved1 (SpitDataImportsDataImporter* self); -static void spit_data_imports_data_importer_real_reserved1 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved2 (SpitDataImportsDataImporter* self); -static void spit_data_imports_data_importer_real_reserved2 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved3 (SpitDataImportsDataImporter* self); -static void spit_data_imports_data_importer_real_reserved3 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved4 (SpitDataImportsDataImporter* self); -static void spit_data_imports_data_importer_real_reserved4 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved5 (SpitDataImportsDataImporter* self); -static void spit_data_imports_data_importer_real_reserved5 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved6 (SpitDataImportsDataImporter* self); -static void spit_data_imports_data_importer_real_reserved6 (SpitDataImportsDataImporter* self); -void spit_data_imports_data_importer_reserved7 (SpitDataImportsDataImporter* self); -static void spit_data_imports_data_importer_real_reserved7 (SpitDataImportsDataImporter* self); -gchar* spit_data_imports_importable_library_get_display_name (SpitDataImportsImportableLibrary* self); -SpitDataImportsImportableTag** spit_data_imports_importable_media_item_get_tags (SpitDataImportsImportableMediaItem* self, - int* result_length1); -SpitDataImportsImportableEvent* spit_data_imports_importable_media_item_get_event (SpitDataImportsImportableMediaItem* self); -SpitDataImportsImportableRating* spit_data_imports_importable_media_item_get_rating (SpitDataImportsImportableMediaItem* self); -gchar* spit_data_imports_importable_media_item_get_title (SpitDataImportsImportableMediaItem* self); -gchar* spit_data_imports_importable_media_item_get_folder_path (SpitDataImportsImportableMediaItem* self); -gchar* spit_data_imports_importable_media_item_get_filename (SpitDataImportsImportableMediaItem* self); -time_t* spit_data_imports_importable_media_item_get_exposure_time (SpitDataImportsImportableMediaItem* self); -gchar* spit_data_imports_importable_tag_get_name (SpitDataImportsImportableTag* self); -SpitDataImportsImportableTag* spit_data_imports_importable_tag_get_parent (SpitDataImportsImportableTag* self); -gchar* spit_data_imports_importable_event_get_name (SpitDataImportsImportableEvent* self); -gboolean spit_data_imports_importable_rating_is_unrated (SpitDataImportsImportableRating* self); -gboolean spit_data_imports_importable_rating_is_rejected (SpitDataImportsImportableRating* self); -gint spit_data_imports_importable_rating_get_value (SpitDataImportsImportableRating* self); -GtkWidget* spit_data_imports_dialog_pane_get_widget (SpitDataImportsDialogPane* self); -SpitDataImportsDialogPaneGeometryOptions spit_data_imports_dialog_pane_get_preferred_geometry (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_on_pane_installed (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_on_pane_uninstalled (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved0 (SpitDataImportsDialogPane* self); -static void spit_data_imports_dialog_pane_real_reserved0 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved1 (SpitDataImportsDialogPane* self); -static void spit_data_imports_dialog_pane_real_reserved1 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved2 (SpitDataImportsDialogPane* self); -static void spit_data_imports_dialog_pane_real_reserved2 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved3 (SpitDataImportsDialogPane* self); -static void spit_data_imports_dialog_pane_real_reserved3 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved4 (SpitDataImportsDialogPane* self); -static void spit_data_imports_dialog_pane_real_reserved4 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved5 (SpitDataImportsDialogPane* self); -static void spit_data_imports_dialog_pane_real_reserved5 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved6 (SpitDataImportsDialogPane* self); -static void spit_data_imports_dialog_pane_real_reserved6 (SpitDataImportsDialogPane* self); -void spit_data_imports_dialog_pane_reserved7 (SpitDataImportsDialogPane* self); -static void spit_data_imports_dialog_pane_real_reserved7 (SpitDataImportsDialogPane* self); -void spit_data_imports_plugin_host_post_error (SpitDataImportsPluginHost* self, - GError* err); -void spit_data_imports_plugin_host_post_error_message (SpitDataImportsPluginHost* self, - const gchar* msg); -void spit_data_imports_plugin_host_start_importing (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_stop_importing (SpitDataImportsPluginHost* self); -SpitDataImportsDataImporter* spit_data_imports_plugin_host_get_data_importer (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_install_dialog_pane (SpitDataImportsPluginHost* self, - SpitDataImportsDialogPane* pane, - SpitDataImportsPluginHostButtonMode mode); -void spit_data_imports_plugin_host_install_static_message_pane (SpitDataImportsPluginHost* self, - const gchar* message, - SpitDataImportsPluginHostButtonMode mode); -void spit_data_imports_plugin_host_install_library_selection_pane (SpitDataImportsPluginHost* self, - const gchar* welcome_message, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1, - const gchar* file_select_label); -void spit_data_imports_plugin_host_install_import_progress_pane (SpitDataImportsPluginHost* self, - const gchar* message); -void spit_data_imports_plugin_host_update_import_progress_pane (SpitDataImportsPluginHost* self, - gdouble progress, - const gchar* progress_message); -void spit_data_imports_plugin_host_prepare_media_items_for_import (SpitDataImportsPluginHost* self, - SpitDataImportsImportableMediaItem** items, - int items_length1, - gdouble progress, - gdouble host_progress_delta, - const gchar* progress_message); -void spit_data_imports_plugin_host_finalize_import (SpitDataImportsPluginHost* self, - SpitDataImportsImportedItemsCountCallback report_imported_items_count, - void* report_imported_items_count_target, - const gchar* finalize_message); -void spit_data_imports_plugin_host_reserved0 (SpitDataImportsPluginHost* self); -static void spit_data_imports_plugin_host_real_reserved0 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved1 (SpitDataImportsPluginHost* self); -static void spit_data_imports_plugin_host_real_reserved1 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved2 (SpitDataImportsPluginHost* self); -static void spit_data_imports_plugin_host_real_reserved2 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved3 (SpitDataImportsPluginHost* self); -static void spit_data_imports_plugin_host_real_reserved3 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved4 (SpitDataImportsPluginHost* self); -static void spit_data_imports_plugin_host_real_reserved4 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved5 (SpitDataImportsPluginHost* self); -static void spit_data_imports_plugin_host_real_reserved5 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved6 (SpitDataImportsPluginHost* self); -static void spit_data_imports_plugin_host_real_reserved6 (SpitDataImportsPluginHost* self); -void spit_data_imports_plugin_host_reserved7 (SpitDataImportsPluginHost* self); -static void spit_data_imports_plugin_host_real_reserved7 (SpitDataImportsPluginHost* self); -SpitDataImportsDataImporter* spit_data_imports_service_create_data_importer (SpitDataImportsService* self, - SpitDataImportsPluginHost* host); -void spit_data_imports_service_reserved0 (SpitDataImportsService* self); -static void spit_data_imports_service_real_reserved0 (SpitDataImportsService* self); -void spit_data_imports_service_reserved1 (SpitDataImportsService* self); -static void spit_data_imports_service_real_reserved1 (SpitDataImportsService* self); -void spit_data_imports_service_reserved2 (SpitDataImportsService* self); -static void spit_data_imports_service_real_reserved2 (SpitDataImportsService* self); -void spit_data_imports_service_reserved3 (SpitDataImportsService* self); -static void spit_data_imports_service_real_reserved3 (SpitDataImportsService* self); -void spit_data_imports_service_reserved4 (SpitDataImportsService* self); -static void spit_data_imports_service_real_reserved4 (SpitDataImportsService* self); -void spit_data_imports_service_reserved5 (SpitDataImportsService* self); -static void spit_data_imports_service_real_reserved5 (SpitDataImportsService* self); -void spit_data_imports_service_reserved6 (SpitDataImportsService* self); -static void spit_data_imports_service_real_reserved6 (SpitDataImportsService* self); -void spit_data_imports_service_reserved7 (SpitDataImportsService* self); -static void spit_data_imports_service_real_reserved7 (SpitDataImportsService* self); - - -GQuark -spit_data_imports_data_import_error_quark (void) -{ - return g_quark_from_static_string ("spit_data_imports_data_import_error-quark"); -} - - -/** - * Returns a {@link Service} object describing the service to which this connects. - */ -SpitDataImportsService* -spit_data_imports_data_importer_get_service (SpitDataImportsDataImporter* self) -{ -#line 53 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self), NULL); -#line 53 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->get_service (self); -#line 465 "DataImportsInterfaces.c" -} - - -/** - * Makes this data importer enter the running state and endows it with exclusive access - * to the shared services provided by the {@link PluginHost}. Through the host’s interface, - * this data importer can install user interface panes and query configuration information. - */ -void -spit_data_imports_data_importer_start (SpitDataImportsDataImporter* self) -{ -#line 60 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 60 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->start (self); -#line 481 "DataImportsInterfaces.c" -} - - -/** - * Returns true if this data importer is in the running state; false otherwise. - */ -gboolean -spit_data_imports_data_importer_is_running (SpitDataImportsDataImporter* self) -{ -#line 65 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self), FALSE); -#line 65 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->is_running (self); -#line 495 "DataImportsInterfaces.c" -} - - -/** - * Causes this data importer to enter a non-running state. This data importer should stop all - * data access operations and cease use of the shared services provided by the {@link PluginHost}. - */ -void -spit_data_imports_data_importer_stop (SpitDataImportsDataImporter* self) -{ -#line 71 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 71 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->stop (self); -#line 510 "DataImportsInterfaces.c" -} - - -/** - * Causes this data importer to enter start the import of a library. - */ -void -spit_data_imports_data_importer_on_library_selected (SpitDataImportsDataImporter* self, - SpitDataImportsImportableLibrary* library) -{ -#line 76 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 76 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->on_library_selected (self, library); -#line 525 "DataImportsInterfaces.c" -} - - -/** - * Causes this data importer to enter start the import of a library file. - */ -void -spit_data_imports_data_importer_on_file_selected (SpitDataImportsDataImporter* self, - GFile* file) -{ -#line 81 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 81 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->on_file_selected (self, file); -#line 540 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_real_reserved0 (SpitDataImportsDataImporter* self) -{ -} - - -void -spit_data_imports_data_importer_reserved0 (SpitDataImportsDataImporter* self) -{ -#line 86 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 86 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved0 (self); -#line 557 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_real_reserved1 (SpitDataImportsDataImporter* self) -{ -} - - -void -spit_data_imports_data_importer_reserved1 (SpitDataImportsDataImporter* self) -{ -#line 87 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 87 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved1 (self); -#line 574 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_real_reserved2 (SpitDataImportsDataImporter* self) -{ -} - - -void -spit_data_imports_data_importer_reserved2 (SpitDataImportsDataImporter* self) -{ -#line 88 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 88 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved2 (self); -#line 591 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_real_reserved3 (SpitDataImportsDataImporter* self) -{ -} - - -void -spit_data_imports_data_importer_reserved3 (SpitDataImportsDataImporter* self) -{ -#line 89 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 89 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved3 (self); -#line 608 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_real_reserved4 (SpitDataImportsDataImporter* self) -{ -} - - -void -spit_data_imports_data_importer_reserved4 (SpitDataImportsDataImporter* self) -{ -#line 90 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 90 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved4 (self); -#line 625 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_real_reserved5 (SpitDataImportsDataImporter* self) -{ -} - - -void -spit_data_imports_data_importer_reserved5 (SpitDataImportsDataImporter* self) -{ -#line 91 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 91 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved5 (self); -#line 642 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_real_reserved6 (SpitDataImportsDataImporter* self) -{ -} - - -void -spit_data_imports_data_importer_reserved6 (SpitDataImportsDataImporter* self) -{ -#line 92 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 92 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved6 (self); -#line 659 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_real_reserved7 (SpitDataImportsDataImporter* self) -{ -} - - -void -spit_data_imports_data_importer_reserved7 (SpitDataImportsDataImporter* self) -{ -#line 93 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DATA_IMPORTER (self)); -#line 93 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DATA_IMPORTER_GET_INTERFACE (self)->reserved7 (self); -#line 676 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_data_importer_base_init (SpitDataImportsDataImporterIface * iface) -{ -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved0 = spit_data_imports_data_importer_real_reserved0; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved1 = spit_data_imports_data_importer_real_reserved1; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved2 = spit_data_imports_data_importer_real_reserved2; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved3 = spit_data_imports_data_importer_real_reserved3; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved4 = spit_data_imports_data_importer_real_reserved4; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved5 = spit_data_imports_data_importer_real_reserved5; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved6 = spit_data_imports_data_importer_real_reserved6; -#line 49 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved7 = spit_data_imports_data_importer_real_reserved7; -#line 705 "DataImportsInterfaces.c" - } -} - - -/** - * Represents a module that is able to import data from a specific database format. - * - * Developers of data import plugins provide a class that implements this interface. At - * any given time, only one DataImporter can be running. When a data importer is running, it - * has exclusive use of the shared user-interface and - * configuration services provided by the {@link PluginHost}. Data importers are created in - * a non-running state and do not begin running until start( ) is invoked. Data importers - * run until stop( ) is invoked. - */ -GType -spit_data_imports_data_importer_get_type (void) -{ - static volatile gsize spit_data_imports_data_importer_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_data_importer_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsDataImporterIface), (GBaseInitFunc) spit_data_imports_data_importer_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_data_importer_type_id; - spit_data_imports_data_importer_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsDataImporter", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_data_importer_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_data_imports_data_importer_type_id__volatile, spit_data_imports_data_importer_type_id); - } - return spit_data_imports_data_importer_type_id__volatile; -} - - -gchar* -spit_data_imports_importable_library_get_display_name (SpitDataImportsImportableLibrary* self) -{ -#line 102 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_LIBRARY (self), NULL); -#line 102 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_LIBRARY_GET_INTERFACE (self)->get_display_name (self); -#line 742 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_importable_library_base_init (SpitDataImportsImportableLibraryIface * iface) -{ -#line 101 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 101 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 101 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 755 "DataImportsInterfaces.c" - } -} - - -/** - * Represents a library of importable media items. - * - * Developers of data import plugins provide a class that implements this interface. - */ -GType -spit_data_imports_importable_library_get_type (void) -{ - static volatile gsize spit_data_imports_importable_library_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_importable_library_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsImportableLibraryIface), (GBaseInitFunc) spit_data_imports_importable_library_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_importable_library_type_id; - spit_data_imports_importable_library_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsImportableLibrary", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_importable_library_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_data_imports_importable_library_type_id__volatile, spit_data_imports_importable_library_type_id); - } - return spit_data_imports_importable_library_type_id__volatile; -} - - -SpitDataImportsImportableTag** -spit_data_imports_importable_media_item_get_tags (SpitDataImportsImportableMediaItem* self, - int* result_length1) -{ -#line 111 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL); -#line 111 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_tags (self, result_length1); -#line 788 "DataImportsInterfaces.c" -} - - -SpitDataImportsImportableEvent* -spit_data_imports_importable_media_item_get_event (SpitDataImportsImportableMediaItem* self) -{ -#line 113 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL); -#line 113 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_event (self); -#line 799 "DataImportsInterfaces.c" -} - - -SpitDataImportsImportableRating* -spit_data_imports_importable_media_item_get_rating (SpitDataImportsImportableMediaItem* self) -{ -#line 115 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL); -#line 115 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_rating (self); -#line 810 "DataImportsInterfaces.c" -} - - -gchar* -spit_data_imports_importable_media_item_get_title (SpitDataImportsImportableMediaItem* self) -{ -#line 117 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL); -#line 117 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_title (self); -#line 821 "DataImportsInterfaces.c" -} - - -gchar* -spit_data_imports_importable_media_item_get_folder_path (SpitDataImportsImportableMediaItem* self) -{ -#line 119 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL); -#line 119 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_folder_path (self); -#line 832 "DataImportsInterfaces.c" -} - - -gchar* -spit_data_imports_importable_media_item_get_filename (SpitDataImportsImportableMediaItem* self) -{ -#line 121 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL); -#line 121 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_filename (self); -#line 843 "DataImportsInterfaces.c" -} - - -time_t* -spit_data_imports_importable_media_item_get_exposure_time (SpitDataImportsImportableMediaItem* self) -{ -#line 123 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_MEDIA_ITEM (self), NULL); -#line 123 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_MEDIA_ITEM_GET_INTERFACE (self)->get_exposure_time (self); -#line 854 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_importable_media_item_base_init (SpitDataImportsImportableMediaItemIface * iface) -{ -#line 110 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 110 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 110 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 867 "DataImportsInterfaces.c" - } -} - - -/** - * Represents an importable media item such as a photo or a video file. - * - * Developers of data import plugins provide a class that implements this interface. - */ -GType -spit_data_imports_importable_media_item_get_type (void) -{ - static volatile gsize spit_data_imports_importable_media_item_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_importable_media_item_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsImportableMediaItemIface), (GBaseInitFunc) spit_data_imports_importable_media_item_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_importable_media_item_type_id; - spit_data_imports_importable_media_item_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsImportableMediaItem", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_importable_media_item_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_data_imports_importable_media_item_type_id__volatile, spit_data_imports_importable_media_item_type_id); - } - return spit_data_imports_importable_media_item_type_id__volatile; -} - - -gchar* -spit_data_imports_importable_tag_get_name (SpitDataImportsImportableTag* self) -{ -#line 132 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_TAG (self), NULL); -#line 132 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_TAG_GET_INTERFACE (self)->get_name (self); -#line 899 "DataImportsInterfaces.c" -} - - -SpitDataImportsImportableTag* -spit_data_imports_importable_tag_get_parent (SpitDataImportsImportableTag* self) -{ -#line 134 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_TAG (self), NULL); -#line 134 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_TAG_GET_INTERFACE (self)->get_parent (self); -#line 910 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_importable_tag_base_init (SpitDataImportsImportableTagIface * iface) -{ -#line 131 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 131 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 131 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 923 "DataImportsInterfaces.c" - } -} - - -/** - * Represents an importable tag. - * - * Developers of data import plugins provide a class that implements this interface. - */ -GType -spit_data_imports_importable_tag_get_type (void) -{ - static volatile gsize spit_data_imports_importable_tag_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_importable_tag_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsImportableTagIface), (GBaseInitFunc) spit_data_imports_importable_tag_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_importable_tag_type_id; - spit_data_imports_importable_tag_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsImportableTag", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_importable_tag_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_data_imports_importable_tag_type_id__volatile, spit_data_imports_importable_tag_type_id); - } - return spit_data_imports_importable_tag_type_id__volatile; -} - - -gchar* -spit_data_imports_importable_event_get_name (SpitDataImportsImportableEvent* self) -{ -#line 143 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_EVENT (self), NULL); -#line 143 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_EVENT_GET_INTERFACE (self)->get_name (self); -#line 955 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_importable_event_base_init (SpitDataImportsImportableEventIface * iface) -{ -#line 142 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 142 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 142 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 968 "DataImportsInterfaces.c" - } -} - - -/** - * Represents an importable event. - * - * Developers of data import plugins provide a class that implements this interface. - */ -GType -spit_data_imports_importable_event_get_type (void) -{ - static volatile gsize spit_data_imports_importable_event_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_importable_event_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsImportableEventIface), (GBaseInitFunc) spit_data_imports_importable_event_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_importable_event_type_id; - spit_data_imports_importable_event_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsImportableEvent", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_importable_event_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_data_imports_importable_event_type_id__volatile, spit_data_imports_importable_event_type_id); - } - return spit_data_imports_importable_event_type_id__volatile; -} - - -gboolean -spit_data_imports_importable_rating_is_unrated (SpitDataImportsImportableRating* self) -{ -#line 155 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_RATING (self), FALSE); -#line 155 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_RATING_GET_INTERFACE (self)->is_unrated (self); -#line 1000 "DataImportsInterfaces.c" -} - - -gboolean -spit_data_imports_importable_rating_is_rejected (SpitDataImportsImportableRating* self) -{ -#line 157 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_RATING (self), FALSE); -#line 157 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_RATING_GET_INTERFACE (self)->is_rejected (self); -#line 1011 "DataImportsInterfaces.c" -} - - -gint -spit_data_imports_importable_rating_get_value (SpitDataImportsImportableRating* self) -{ -#line 159 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_IMPORTABLE_RATING (self), 0); -#line 159 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_IMPORTABLE_RATING_GET_INTERFACE (self)->get_value (self); -#line 1022 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_importable_rating_base_init (SpitDataImportsImportableRatingIface * iface) -{ -#line 154 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 154 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 154 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 1035 "DataImportsInterfaces.c" - } -} - - -/** - * Represents an importable rating value. - * - * Developers of data import plugins provide a class that implements this interface. - * Note that the value returned by the get_value method should be a value between - * 1 and 5, unless the rating object is unrated or rejected, in which case the - * value is unspecified. - */ -GType -spit_data_imports_importable_rating_get_type (void) -{ - static volatile gsize spit_data_imports_importable_rating_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_importable_rating_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsImportableRatingIface), (GBaseInitFunc) spit_data_imports_importable_rating_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_importable_rating_type_id; - spit_data_imports_importable_rating_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsImportableRating", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_importable_rating_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_data_imports_importable_rating_type_id__volatile, spit_data_imports_importable_rating_type_id); - } - return spit_data_imports_importable_rating_type_id__volatile; -} - - -/** - * Describes how the on-screen publishing dialog box should look and behave when an associated - * pane is installed in the on-screen publishing dialog box. - */ -GType -spit_data_imports_dialog_pane_geometry_options_get_type (void) -{ - static volatile gsize spit_data_imports_dialog_pane_geometry_options_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_dialog_pane_geometry_options_type_id__volatile)) { - static const GEnumValue values[] = {{SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_NONE, "SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_NONE", "none"}, {SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE, "SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE", "extended-size"}, {SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE, "SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE", "resizable"}, {SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE, "SPIT_DATA_IMPORTS_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE", "colossal-size"}, {0, NULL, NULL}}; - GType spit_data_imports_dialog_pane_geometry_options_type_id; - spit_data_imports_dialog_pane_geometry_options_type_id = g_enum_register_static ("SpitDataImportsDialogPaneGeometryOptions", values); - g_once_init_leave (&spit_data_imports_dialog_pane_geometry_options_type_id__volatile, spit_data_imports_dialog_pane_geometry_options_type_id); - } - return spit_data_imports_dialog_pane_geometry_options_type_id__volatile; -} - - -/** - * Returns the Gtk.Widget that is this pane's on-screen representation. - */ -GtkWidget* -spit_data_imports_dialog_pane_get_widget (SpitDataImportsDialogPane* self) -{ -#line 204 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self), NULL); -#line 204 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->get_widget (self); -#line 1091 "DataImportsInterfaces.c" -} - - -/** - * Returns a {@link GeometryOptions} bitfield describing how the on-screen publishing dialog - * box should look and behave when this pane is installed. - */ -SpitDataImportsDialogPaneGeometryOptions -spit_data_imports_dialog_pane_get_preferred_geometry (SpitDataImportsDialogPane* self) -{ -#line 210 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self), 0); -#line 210 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->get_preferred_geometry (self); -#line 1106 "DataImportsInterfaces.c" -} - - -/** - * Invoked automatically by Shotwell when this pane has been installed into the on-screen - * publishing dialog box and become visible to the user. - */ -void -spit_data_imports_dialog_pane_on_pane_installed (SpitDataImportsDialogPane* self) -{ -#line 216 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 216 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->on_pane_installed (self); -#line 1121 "DataImportsInterfaces.c" -} - - -/** - * Invoked automatically by Shotwell when this pane has been removed from the on-screen - * publishing dialog box and is no longer visible to the user. - */ -void -spit_data_imports_dialog_pane_on_pane_uninstalled (SpitDataImportsDialogPane* self) -{ -#line 222 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 222 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->on_pane_uninstalled (self); -#line 1136 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_real_reserved0 (SpitDataImportsDialogPane* self) -{ -} - - -void -spit_data_imports_dialog_pane_reserved0 (SpitDataImportsDialogPane* self) -{ -#line 227 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 227 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved0 (self); -#line 1153 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_real_reserved1 (SpitDataImportsDialogPane* self) -{ -} - - -void -spit_data_imports_dialog_pane_reserved1 (SpitDataImportsDialogPane* self) -{ -#line 228 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 228 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved1 (self); -#line 1170 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_real_reserved2 (SpitDataImportsDialogPane* self) -{ -} - - -void -spit_data_imports_dialog_pane_reserved2 (SpitDataImportsDialogPane* self) -{ -#line 229 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 229 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved2 (self); -#line 1187 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_real_reserved3 (SpitDataImportsDialogPane* self) -{ -} - - -void -spit_data_imports_dialog_pane_reserved3 (SpitDataImportsDialogPane* self) -{ -#line 230 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 230 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved3 (self); -#line 1204 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_real_reserved4 (SpitDataImportsDialogPane* self) -{ -} - - -void -spit_data_imports_dialog_pane_reserved4 (SpitDataImportsDialogPane* self) -{ -#line 231 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 231 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved4 (self); -#line 1221 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_real_reserved5 (SpitDataImportsDialogPane* self) -{ -} - - -void -spit_data_imports_dialog_pane_reserved5 (SpitDataImportsDialogPane* self) -{ -#line 232 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 232 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved5 (self); -#line 1238 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_real_reserved6 (SpitDataImportsDialogPane* self) -{ -} - - -void -spit_data_imports_dialog_pane_reserved6 (SpitDataImportsDialogPane* self) -{ -#line 233 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 233 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved6 (self); -#line 1255 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_real_reserved7 (SpitDataImportsDialogPane* self) -{ -} - - -void -spit_data_imports_dialog_pane_reserved7 (SpitDataImportsDialogPane* self) -{ -#line 234 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_DIALOG_PANE (self)); -#line 234 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_DIALOG_PANE_GET_INTERFACE (self)->reserved7 (self); -#line 1272 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_dialog_pane_base_init (SpitDataImportsDialogPaneIface * iface) -{ -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved0 = spit_data_imports_dialog_pane_real_reserved0; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved1 = spit_data_imports_dialog_pane_real_reserved1; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved2 = spit_data_imports_dialog_pane_real_reserved2; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved3 = spit_data_imports_dialog_pane_real_reserved3; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved4 = spit_data_imports_dialog_pane_real_reserved4; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved5 = spit_data_imports_dialog_pane_real_reserved5; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved6 = spit_data_imports_dialog_pane_real_reserved6; -#line 167 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved7 = spit_data_imports_dialog_pane_real_reserved7; -#line 1301 "DataImportsInterfaces.c" - } -} - - -/** - * Encapsulates a pane that can be installed in the on-screen import dialog box to - * communicate status to and to get information from the user. - * - */ -GType -spit_data_imports_dialog_pane_get_type (void) -{ - static volatile gsize spit_data_imports_dialog_pane_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_dialog_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsDialogPaneIface), (GBaseInitFunc) spit_data_imports_dialog_pane_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_dialog_pane_type_id; - spit_data_imports_dialog_pane_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsDialogPane", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_dialog_pane_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_data_imports_dialog_pane_type_id__volatile, spit_data_imports_dialog_pane_type_id); - } - return spit_data_imports_dialog_pane_type_id__volatile; -} - - -/** - * Specifies the label text on the push button control that appears in the - * lower-right-hand corner of the on-screen publishing dialog box. - */ -GType -spit_data_imports_plugin_host_button_mode_get_type (void) -{ - static volatile gsize spit_data_imports_plugin_host_button_mode_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_plugin_host_button_mode_type_id__volatile)) { - static const GEnumValue values[] = {{SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE, "SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CLOSE", "close"}, {SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL, "SPIT_DATA_IMPORTS_PLUGIN_HOST_BUTTON_MODE_CANCEL", "cancel"}, {0, NULL, NULL}}; - GType spit_data_imports_plugin_host_button_mode_type_id; - spit_data_imports_plugin_host_button_mode_type_id = g_enum_register_static ("SpitDataImportsPluginHostButtonMode", values); - g_once_init_leave (&spit_data_imports_plugin_host_button_mode_type_id__volatile, spit_data_imports_plugin_host_button_mode_type_id); - } - return spit_data_imports_plugin_host_button_mode_type_id__volatile; -} - - -/** - * Notifies the user that an unrecoverable import error has occurred and halts - * the import process. - * - * @param err An error object that describes the kind of error that occurred. - */ -void -spit_data_imports_plugin_host_post_error (SpitDataImportsPluginHost* self, - GError* err) -{ -#line 271 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 271 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->post_error (self, err); -#line 1358 "DataImportsInterfaces.c" -} - - -/** - * Notifies the user that an unrecoverable import error has occurred and halts - * the import process. - * - * @param msg A message that describes the kind of error that occurred. - */ -void -spit_data_imports_plugin_host_post_error_message (SpitDataImportsPluginHost* self, - const gchar* msg) -{ -#line 279 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 279 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->post_error_message (self, msg); -#line 1376 "DataImportsInterfaces.c" -} - - -/** - * Starts the import process. - * - * Calling this method starts the import activity for this host. - */ -void -spit_data_imports_plugin_host_start_importing (SpitDataImportsPluginHost* self) -{ -#line 286 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 286 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->start_importing (self); -#line 1392 "DataImportsInterfaces.c" -} - - -/** - * Halts the import process. - * - * Calling this method stops all import activity and hides the on-screen import - * dialog box. - */ -void -spit_data_imports_plugin_host_stop_importing (SpitDataImportsPluginHost* self) -{ -#line 294 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 294 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->stop_importing (self); -#line 1409 "DataImportsInterfaces.c" -} - - -/** - * Returns a reference to the {@link DataImporter} object that this is currently hosting. - */ -SpitDataImportsDataImporter* -spit_data_imports_plugin_host_get_data_importer (SpitDataImportsPluginHost* self) -{ -#line 299 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self), NULL); -#line 299 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->get_data_importer (self); -#line 1423 "DataImportsInterfaces.c" -} - - -/** - * Attempts to install a pane in the on-screen data import dialog box, making the pane visible - * and allowing it to interact with the user. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param pane the pane to install - * - * @param mode allows you to set the text displayed on the close/cancel button in the - * lower-right-hand corner of the on-screen data import dialog box when pane is installed. - * If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is - * ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on - * whether a cancellable action is in progress. For example, if your importer is in the - * middle of processing 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if - * the processing operation has completed and the success pane is displayed, then mode - * should be ButtonMode.CLOSE, because all cancellable actions have already - * occurred. - */ -void -spit_data_imports_plugin_host_install_dialog_pane (SpitDataImportsPluginHost* self, - SpitDataImportsDialogPane* pane, - SpitDataImportsPluginHostButtonMode mode) -{ -#line 319 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 319 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->install_dialog_pane (self, pane, mode); -#line 1454 "DataImportsInterfaces.c" -} - - -/** - * Attempts to install a pane in the on-screen data import dialog box that contains - * static text. - * - * The text appears centered in the data import dialog box and is drawn in - * the system font. This is a convenience method only; similar results could be - * achieved by manually constructing a Gtk.Label widget, wrapping it inside a - * {@link DialogPane}, and installing it manually with a call to - * install_dialog_pane( ). To provide visual consistency across data import services, - * however, always use this convenience method instead of constructing label panes when - * you need to display static text to the user. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param message the text to show in the pane - * - * @param mode allows you to set the text displayed on the close/cancel button in the - * lower-right-hand corner of the on-screen data import dialog box when pane is installed. - * If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is - * ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on - * whether a cancellable action is in progress. For example, if your importer is in the - * middle of processing 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if - * the processing operation has completed and the success pane is displayed, then mode - * should be ButtonMode.CLOSE, because all cancellable actions have already - * occurred. - */ -void -spit_data_imports_plugin_host_install_static_message_pane (SpitDataImportsPluginHost* self, - const gchar* message, - SpitDataImportsPluginHostButtonMode mode) -{ -#line 348 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 348 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->install_static_message_pane (self, message, mode); -#line 1493 "DataImportsInterfaces.c" -} - - -/** - * Attempts to install a library selection pane that presents a list of - * discovered libraries to the user. - * - * When the user clicks the “OK” button, you’ll be notified of the user’s action through - * the 'on_library_selected' callback if a discovered library was selected or through - * the 'on_file_selected' callback if a file was selected. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param welcome_message the text to be displayed above the list of discovered - * libraries. - * - * @param discovered_libraries the list of importable libraries that the plugin - * has discovered in well known locations. - * - * @param file_select_label the label to display for the file selection - * option. If this label is null, the - * user will not be presented with a file selection option. - */ -void -spit_data_imports_plugin_host_install_library_selection_pane (SpitDataImportsPluginHost* self, - const gchar* welcome_message, - SpitDataImportsImportableLibrary** discovered_libraries, - int discovered_libraries_length1, - const gchar* file_select_label) -{ -#line 371 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 371 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->install_library_selection_pane (self, welcome_message, discovered_libraries, discovered_libraries_length1, file_select_label); -#line 1528 "DataImportsInterfaces.c" -} - - -/** - * Attempts to install a progress pane that provides the user with feedback - * on import preparation. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param message the text to be displayed above the progress bar. - */ -void -spit_data_imports_plugin_host_install_import_progress_pane (SpitDataImportsPluginHost* self, - const gchar* message) -{ -#line 385 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 385 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->install_import_progress_pane (self, message); -#line 1548 "DataImportsInterfaces.c" -} - - -/** - * Update the progress bar installed by install_import_progress_pane. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param progress a value between 0.0 and 1.0 identifying progress for the - * plugin. - * - * @param progress_label the text to be displayed below the progress bar. If that - * parameter is null, the message will be left unchanged. - */ -void -spit_data_imports_plugin_host_update_import_progress_pane (SpitDataImportsPluginHost* self, - gdouble progress, - const gchar* progress_message) -{ -#line 400 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 400 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->update_import_progress_pane (self, progress, progress_message); -#line 1572 "DataImportsInterfaces.c" -} - - -/** - * Sends an importable media item to the host in order to prepare it for import - * and update the progress bar installed by install_import_progress_pane. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param item the importable media item to prepare for import. - * - * @param progress a value between 0.0 and 1.0 identifying progress for the - * plugin. - * - * @param host_progress_delta the amount of progress the host should update - * the progress bar during import preparation. Plugins should ensure that - * a proportion of progress for each media item is set aside for the host - * in oder to ensure a smoother update to the progress bar. - * - * @param progress_message the text to be displayed below the progress bar. If that - * parameter is null, the message will be left unchanged. - */ -void -spit_data_imports_plugin_host_prepare_media_items_for_import (SpitDataImportsPluginHost* self, - SpitDataImportsImportableMediaItem** items, - int items_length1, - gdouble progress, - gdouble host_progress_delta, - const gchar* progress_message) -{ -#line 424 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 424 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->prepare_media_items_for_import (self, items, items_length1, progress, host_progress_delta, progress_message); -#line 1607 "DataImportsInterfaces.c" -} - - -/** - * Finalize the import sequence for the plugin. This tells the host that - * all media items have been processed and that the plugin has finished all - * import work. Once this method has been called, all resources used by the - * plugin for import should be released and the plugin should be back to the - * state it had just after running the start method. The host will then display - * the final message and show progress as fully complete. In a standard import - * scenario, the user is expected to click the Close button to dismiss the - * dialog. On first run, the host may call the LibrarySelectedCallback again - * to import another library handled by the same plugin. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param finalize_message the text to be displayed below the progress bar. If that - * parameter is null, the message will be left unchanged. - */ -void -spit_data_imports_plugin_host_finalize_import (SpitDataImportsPluginHost* self, - SpitDataImportsImportedItemsCountCallback report_imported_items_count, - void* report_imported_items_count_target, - const gchar* finalize_message) -{ -#line 447 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 447 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->finalize_import (self, report_imported_items_count, report_imported_items_count_target, finalize_message); -#line 1637 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_real_reserved0 (SpitDataImportsPluginHost* self) -{ -} - - -void -spit_data_imports_plugin_host_reserved0 (SpitDataImportsPluginHost* self) -{ -#line 455 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 455 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved0 (self); -#line 1654 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_real_reserved1 (SpitDataImportsPluginHost* self) -{ -} - - -void -spit_data_imports_plugin_host_reserved1 (SpitDataImportsPluginHost* self) -{ -#line 456 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 456 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved1 (self); -#line 1671 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_real_reserved2 (SpitDataImportsPluginHost* self) -{ -} - - -void -spit_data_imports_plugin_host_reserved2 (SpitDataImportsPluginHost* self) -{ -#line 457 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 457 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved2 (self); -#line 1688 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_real_reserved3 (SpitDataImportsPluginHost* self) -{ -} - - -void -spit_data_imports_plugin_host_reserved3 (SpitDataImportsPluginHost* self) -{ -#line 458 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 458 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved3 (self); -#line 1705 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_real_reserved4 (SpitDataImportsPluginHost* self) -{ -} - - -void -spit_data_imports_plugin_host_reserved4 (SpitDataImportsPluginHost* self) -{ -#line 459 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 459 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved4 (self); -#line 1722 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_real_reserved5 (SpitDataImportsPluginHost* self) -{ -} - - -void -spit_data_imports_plugin_host_reserved5 (SpitDataImportsPluginHost* self) -{ -#line 460 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 460 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved5 (self); -#line 1739 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_real_reserved6 (SpitDataImportsPluginHost* self) -{ -} - - -void -spit_data_imports_plugin_host_reserved6 (SpitDataImportsPluginHost* self) -{ -#line 461 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 461 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved6 (self); -#line 1756 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_real_reserved7 (SpitDataImportsPluginHost* self) -{ -} - - -void -spit_data_imports_plugin_host_reserved7 (SpitDataImportsPluginHost* self) -{ -#line 462 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_PLUGIN_HOST (self)); -#line 462 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_PLUGIN_HOST_GET_INTERFACE (self)->reserved7 (self); -#line 1773 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_plugin_host_base_init (SpitDataImportsPluginHostIface * iface) -{ -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved0 = spit_data_imports_plugin_host_real_reserved0; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved1 = spit_data_imports_plugin_host_real_reserved1; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved2 = spit_data_imports_plugin_host_real_reserved2; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved3 = spit_data_imports_plugin_host_real_reserved3; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved4 = spit_data_imports_plugin_host_real_reserved4; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved5 = spit_data_imports_plugin_host_real_reserved5; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved6 = spit_data_imports_plugin_host_real_reserved6; -#line 254 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved7 = spit_data_imports_plugin_host_real_reserved7; -#line 1802 "DataImportsInterfaces.c" - } -} - - -/** - * Manages and provides services for data import plugins. - * - * Implemented inside Shotwell, the PluginHost provides an interface through which the - * developers of data import plugins can query and make changes to the import - * environment. Plugins can use the services of the PluginHost only when their - * {@link DataImporter} is in the running state. This ensures that non-running data importers - * don’t destructively interfere with the actively running importer. - */ -GType -spit_data_imports_plugin_host_get_type (void) -{ - static volatile gsize spit_data_imports_plugin_host_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_plugin_host_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsPluginHostIface), (GBaseInitFunc) spit_data_imports_plugin_host_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_plugin_host_type_id; - spit_data_imports_plugin_host_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsPluginHost", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_plugin_host_type_id, G_TYPE_OBJECT); - g_type_interface_add_prerequisite (spit_data_imports_plugin_host_type_id, SPIT_TYPE_HOST_INTERFACE); - g_once_init_leave (&spit_data_imports_plugin_host_type_id__volatile, spit_data_imports_plugin_host_type_id); - } - return spit_data_imports_plugin_host_type_id__volatile; -} - - -/** - * A factory method that instantiates and returns a new {@link DataImporter} object - * that this Service describes. - */ -SpitDataImportsDataImporter* -spit_data_imports_service_create_data_importer (SpitDataImportsService* self, - SpitDataImportsPluginHost* host) -{ -#line 475 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_val_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self), NULL); -#line 475 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - return SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->create_data_importer (self, host); -#line 1844 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_real_reserved0 (SpitDataImportsService* self) -{ -} - - -void -spit_data_imports_service_reserved0 (SpitDataImportsService* self) -{ -#line 480 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self)); -#line 480 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved0 (self); -#line 1861 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_real_reserved1 (SpitDataImportsService* self) -{ -} - - -void -spit_data_imports_service_reserved1 (SpitDataImportsService* self) -{ -#line 481 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self)); -#line 481 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved1 (self); -#line 1878 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_real_reserved2 (SpitDataImportsService* self) -{ -} - - -void -spit_data_imports_service_reserved2 (SpitDataImportsService* self) -{ -#line 482 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self)); -#line 482 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved2 (self); -#line 1895 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_real_reserved3 (SpitDataImportsService* self) -{ -} - - -void -spit_data_imports_service_reserved3 (SpitDataImportsService* self) -{ -#line 483 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self)); -#line 483 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved3 (self); -#line 1912 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_real_reserved4 (SpitDataImportsService* self) -{ -} - - -void -spit_data_imports_service_reserved4 (SpitDataImportsService* self) -{ -#line 484 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self)); -#line 484 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved4 (self); -#line 1929 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_real_reserved5 (SpitDataImportsService* self) -{ -} - - -void -spit_data_imports_service_reserved5 (SpitDataImportsService* self) -{ -#line 485 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self)); -#line 485 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved5 (self); -#line 1946 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_real_reserved6 (SpitDataImportsService* self) -{ -} - - -void -spit_data_imports_service_reserved6 (SpitDataImportsService* self) -{ -#line 486 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self)); -#line 486 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved6 (self); -#line 1963 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_real_reserved7 (SpitDataImportsService* self) -{ -} - - -void -spit_data_imports_service_reserved7 (SpitDataImportsService* self) -{ -#line 487 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - g_return_if_fail (SPIT_DATA_IMPORTS_IS_SERVICE (self)); -#line 487 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - SPIT_DATA_IMPORTS_SERVICE_GET_INTERFACE (self)->reserved7 (self); -#line 1980 "DataImportsInterfaces.c" -} - - -static void -spit_data_imports_service_base_init (SpitDataImportsServiceIface * iface) -{ -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - static gboolean initialized = FALSE; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - if (!initialized) { -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - initialized = TRUE; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved0 = spit_data_imports_service_real_reserved0; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved1 = spit_data_imports_service_real_reserved1; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved2 = spit_data_imports_service_real_reserved2; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved3 = spit_data_imports_service_real_reserved3; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved4 = spit_data_imports_service_real_reserved4; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved5 = spit_data_imports_service_real_reserved5; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved6 = spit_data_imports_service_real_reserved6; -#line 470 "/home/jens/Source/shotwell/src/plugins/DataImportsInterfaces.vala" - iface->reserved7 = spit_data_imports_service_real_reserved7; -#line 2009 "DataImportsInterfaces.c" - } -} - - -/** - * Describes the features and capabilities of a data import service. - * - * Developers of data import plugins provide a class that implements this interface. - */ -GType -spit_data_imports_service_get_type (void) -{ - static volatile gsize spit_data_imports_service_type_id__volatile = 0; - if (g_once_init_enter (&spit_data_imports_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitDataImportsServiceIface), (GBaseInitFunc) spit_data_imports_service_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_data_imports_service_type_id; - spit_data_imports_service_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitDataImportsService", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_data_imports_service_type_id, G_TYPE_OBJECT); - g_type_interface_add_prerequisite (spit_data_imports_service_type_id, SPIT_TYPE_PLUGGABLE); - g_once_init_leave (&spit_data_imports_service_type_id__volatile, spit_data_imports_service_type_id); - } - return spit_data_imports_service_type_id__volatile; -} - - - diff --git a/src/plugins/ManifestWidget.c b/src/plugins/ManifestWidget.c deleted file mode 100644 index e5bad34..0000000 --- a/src/plugins/ManifestWidget.c +++ /dev/null @@ -1,2049 +0,0 @@ -/* ManifestWidget.c generated by valac 0.40.4, the Vala compiler - * generated from ManifestWidget.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include - - -#define PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR (plugins_manifest_widget_mediator_get_type ()) -#define PLUGINS_MANIFEST_WIDGET_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediator)) -#define PLUGINS_MANIFEST_WIDGET_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediatorClass)) -#define PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR)) -#define PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR)) -#define PLUGINS_MANIFEST_WIDGET_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediatorClass)) - -typedef struct _PluginsManifestWidgetMediator PluginsManifestWidgetMediator; -typedef struct _PluginsManifestWidgetMediatorClass PluginsManifestWidgetMediatorClass; -typedef struct _PluginsManifestWidgetMediatorPrivate PluginsManifestWidgetMediatorPrivate; - -#define PLUGINS_TYPE_MANIFEST_LIST_VIEW (plugins_manifest_list_view_get_type ()) -#define PLUGINS_MANIFEST_LIST_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListView)) -#define PLUGINS_MANIFEST_LIST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListViewClass)) -#define PLUGINS_IS_MANIFEST_LIST_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_MANIFEST_LIST_VIEW)) -#define PLUGINS_IS_MANIFEST_LIST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_MANIFEST_LIST_VIEW)) -#define PLUGINS_MANIFEST_LIST_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListViewClass)) - -typedef struct _PluginsManifestListView PluginsManifestListView; -typedef struct _PluginsManifestListViewClass PluginsManifestListViewClass; -enum { - PLUGINS_MANIFEST_WIDGET_MEDIATOR_0_PROPERTY, - PLUGINS_MANIFEST_WIDGET_MEDIATOR_NUM_PROPERTIES -}; -static GParamSpec* plugins_manifest_widget_mediator_properties[PLUGINS_MANIFEST_WIDGET_MEDIATOR_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _PluginsManifestListViewPrivate PluginsManifestListViewPrivate; -enum { - PLUGINS_MANIFEST_LIST_VIEW_0_PROPERTY, - PLUGINS_MANIFEST_LIST_VIEW_NUM_PROPERTIES -}; -static GParamSpec* plugins_manifest_list_view_properties[PLUGINS_MANIFEST_LIST_VIEW_NUM_PROPERTIES]; - -#define PLUGINS_MANIFEST_LIST_VIEW_TYPE_COLUMN (plugins_manifest_list_view_column_get_type ()) - -#define PLUGINS_TYPE_EXTENSION_POINT (plugins_extension_point_get_type ()) -#define PLUGINS_EXTENSION_POINT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPoint)) -#define PLUGINS_EXTENSION_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPointClass)) -#define PLUGINS_IS_EXTENSION_POINT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_EXTENSION_POINT)) -#define PLUGINS_IS_EXTENSION_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_EXTENSION_POINT)) -#define PLUGINS_EXTENSION_POINT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPointClass)) - -typedef struct _PluginsExtensionPoint PluginsExtensionPoint; -typedef struct _PluginsExtensionPointClass PluginsExtensionPointClass; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _gtk_icon_info_free0(var) ((var == NULL) ? NULL : (var = (gtk_icon_info_free (var), NULL))) -#define _plugins_extension_point_unref0(var) ((var == NULL) ? NULL : (var = (plugins_extension_point_unref (var), NULL))) -#define __vala_GtkTreePath_free0(var) ((var == NULL) ? NULL : (var = (_vala_GtkTreePath_free (var), NULL))) -#define __g_list_free___vala_GtkTreePath_free0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free___vala_GtkTreePath_free0_ (var), NULL))) - -struct _PluginsManifestWidgetMediator { - GtkBox parent_instance; - PluginsManifestWidgetMediatorPrivate * priv; -}; - -struct _PluginsManifestWidgetMediatorClass { - GtkBoxClass parent_class; -}; - -struct _PluginsManifestWidgetMediatorPrivate { - GtkButton* about_button; - GtkScrolledWindow* list_bin; - PluginsManifestListView* list; -}; - -struct _PluginsManifestListView { - GtkTreeView parent_instance; - PluginsManifestListViewPrivate * priv; -}; - -struct _PluginsManifestListViewClass { - GtkTreeViewClass parent_class; -}; - -struct _PluginsManifestListViewPrivate { - GtkTreeStore* store; -}; - -typedef enum { - PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED, - PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE, - PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON, - PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME, - PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ID, - PLUGINS_MANIFEST_LIST_VIEW_COLUMN_N_COLUMNS -} PluginsManifestListViewColumn; - - -static gpointer plugins_manifest_widget_mediator_parent_class = NULL; -static gpointer plugins_manifest_list_view_parent_class = NULL; - -GType plugins_manifest_widget_mediator_get_type (void) G_GNUC_CONST; -GType plugins_manifest_list_view_get_type (void) G_GNUC_CONST; -#define PLUGINS_MANIFEST_WIDGET_MEDIATOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediatorPrivate)) -PluginsManifestListView* plugins_manifest_list_view_new (void); -PluginsManifestListView* plugins_manifest_list_view_construct (GType object_type); -PluginsManifestWidgetMediator* plugins_manifest_widget_mediator_new (void); -PluginsManifestWidgetMediator* plugins_manifest_widget_mediator_construct (GType object_type); -static void plugins_manifest_widget_mediator_on_about (PluginsManifestWidgetMediator* self); -static void _plugins_manifest_widget_mediator_on_about_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void plugins_manifest_widget_mediator_on_selection_changed (PluginsManifestWidgetMediator* self); -static void _plugins_manifest_widget_mediator_on_selection_changed_gtk_tree_selection_changed (GtkTreeSelection* _sender, - gpointer self); -static void plugins_manifest_widget_mediator_set_about_button_sensitivity (PluginsManifestWidgetMediator* self); -gchar** plugins_manifest_list_view_get_selected_ids (PluginsManifestListView* self, - int* result_length1); -gboolean plugins_get_pluggable_info (const gchar* id, - SpitPluggableInfo* info); -gboolean is_string_empty (const gchar* s); -static void _vala_array_add52 (gchar** * array, - int* length, - int* size, - gchar* value); -GdkPixbuf* resources_get_icon (const gchar* name, - gint scale); -#define RESOURCES_ICON_GENERIC_PLUGIN "generic-plugin.png" -#define RESOURCES_DEFAULT_ICON_SCALE 24 -gchar* plugins_get_pluggable_name (const gchar* id); -static void plugins_manifest_widget_mediator_finalize (GObject * obj); -#define PLUGINS_MANIFEST_LIST_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListViewPrivate)) -static GType plugins_manifest_list_view_column_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define PLUGINS_MANIFEST_LIST_VIEW_ICON_SIZE 24 -#define PLUGINS_MANIFEST_LIST_VIEW_ICON_X_PADDING 6 -#define PLUGINS_MANIFEST_LIST_VIEW_ICON_Y_PADDING 2 -GtkIconTheme* resources_get_icon_theme_engine (void); -gpointer plugins_extension_point_ref (gpointer instance); -void plugins_extension_point_unref (gpointer instance); -GParamSpec* plugins_param_spec_extension_point (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void plugins_value_set_extension_point (GValue* value, - gpointer v_object); -void plugins_value_take_extension_point (GValue* value, - gpointer v_object); -gpointer plugins_value_get_extension_point (const GValue* value); -GType plugins_extension_point_get_type (void) G_GNUC_CONST; -GeeCollection* plugins_get_extension_points (GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify); -gint plugins_compare_extension_point_names (void* a, - void* b); -static gint _plugins_compare_extension_point_names_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -const gchar* plugins_extension_point_get_icon_name (PluginsExtensionPoint* self); -const gchar* plugins_extension_point_get_name (PluginsExtensionPoint* self); -GeeCollection* plugins_get_pluggables_for_type (GType type, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify, - gboolean include_disabled); -GType plugins_extension_point_get_pluggable_type (PluginsExtensionPoint* self); -gint plugins_compare_pluggable_names (void* a, - void* b); -static gint _plugins_compare_pluggable_names_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -gboolean plugins_get_pluggable_enabled (const gchar* id, - gboolean* enabled); -static GtkTreePath* _vala_GtkTreePath_copy (GtkTreePath* self); -static gchar* plugins_manifest_list_view_get_id_at_path (PluginsManifestListView* self, - GtkTreePath* path, - GtkTreeIter* iter); -static void _vala_array_add53 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_GtkTreePath_free (GtkTreePath* self); -static void __vala_GtkTreePath_free0_ (gpointer var); -static inline void _g_list_free___vala_GtkTreePath_free0_ (GList* self); -static gboolean plugins_manifest_list_view_real_button_press_event (GtkWidget* base, - GdkEventButton* event); -void plugins_set_pluggable_enabled (const gchar* id, - gboolean enabled); -static void plugins_manifest_list_view_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -static void -_plugins_manifest_widget_mediator_on_about_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 25 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - plugins_manifest_widget_mediator_on_about ((PluginsManifestWidgetMediator*) self); -#line 218 "ManifestWidget.c" -} - - -static void -_plugins_manifest_widget_mediator_on_selection_changed_gtk_tree_selection_changed (GtkTreeSelection* _sender, - gpointer self) -{ -#line 26 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - plugins_manifest_widget_mediator_on_selection_changed ((PluginsManifestWidgetMediator*) self); -#line 228 "ManifestWidget.c" -} - - -PluginsManifestWidgetMediator* -plugins_manifest_widget_mediator_construct (GType object_type) -{ - PluginsManifestWidgetMediator * self = NULL; - GtkScrolledWindow* _tmp0_; - PluginsManifestListView* _tmp1_; - GtkButton* _tmp2_; - PluginsManifestListView* _tmp3_; - GtkTreeSelection* _tmp4_; -#line 21 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self = (PluginsManifestWidgetMediator*) g_object_new (object_type, NULL); -#line 23 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = self->priv->list_bin; -#line 23 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp1_ = self->priv->list; -#line 23 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 25 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp2_ = self->priv->about_button; -#line 25 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_signal_connect_object (_tmp2_, "clicked", (GCallback) _plugins_manifest_widget_mediator_on_about_gtk_button_clicked, self, 0); -#line 26 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp3_ = self->priv->list; -#line 26 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp4_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_tree_view_get_type (), GtkTreeView)); -#line 26 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_signal_connect_object (_tmp4_, "changed", (GCallback) _plugins_manifest_widget_mediator_on_selection_changed_gtk_tree_selection_changed, self, 0); -#line 28 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - plugins_manifest_widget_mediator_set_about_button_sensitivity (self); -#line 20 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return self; -#line 263 "ManifestWidget.c" -} - - -PluginsManifestWidgetMediator* -plugins_manifest_widget_mediator_new (void) -{ -#line 20 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return plugins_manifest_widget_mediator_construct (PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR); -#line 272 "ManifestWidget.c" -} - - -static gchar* -string_strip (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strstrip (_tmp1_); -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 297 "ManifestWidget.c" -} - - -static void -_vala_array_add52 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if ((*length) == (*size)) { -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 313 "ManifestWidget.c" - } -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - (*array)[(*length)++] = value; -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - (*array)[*length] = NULL; -#line 319 "ManifestWidget.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return self ? g_object_ref (self) : NULL; -#line 328 "ManifestWidget.c" -} - - -static void -plugins_manifest_widget_mediator_on_about (PluginsManifestWidgetMediator* self) -{ - gchar** ids = NULL; - PluginsManifestListView* _tmp0_; - gint _tmp1_; - gchar** _tmp2_; - gint ids_length1; - gint _ids_size_; - gchar** _tmp3_; - gint _tmp3__length1; - gchar* id = NULL; - gchar** _tmp4_; - gint _tmp4__length1; - const gchar* _tmp5_; - gchar* _tmp6_; - SpitPluggableInfo info = {0}; - const gchar* _tmp7_; - gboolean _tmp8_; - gchar** authors = NULL; - gint authors_length1; - gint _authors_size_; - SpitPluggableInfo _tmp10_; - const gchar* _tmp11_; - GtkAboutDialog* about_dialog = NULL; - GtkAboutDialog* _tmp30_; - GtkAboutDialog* _tmp31_; - gchar** _tmp32_; - gint _tmp32__length1; - GtkAboutDialog* _tmp33_; - SpitPluggableInfo _tmp34_; - const gchar* _tmp35_; - GtkAboutDialog* _tmp36_; - SpitPluggableInfo _tmp37_; - const gchar* _tmp38_; - GtkAboutDialog* _tmp39_; - SpitPluggableInfo _tmp40_; - const gchar* _tmp41_; - GtkAboutDialog* _tmp42_; - SpitPluggableInfo _tmp43_; - gboolean _tmp44_; - GdkPixbuf* _tmp45_ = NULL; - gboolean _tmp46_ = FALSE; - SpitPluggableInfo _tmp47_; - GdkPixbuf** _tmp48_; - gint _tmp48__length1; - GtkAboutDialog* _tmp56_; - GtkAboutDialog* _tmp57_; - const gchar* _tmp58_; - gchar* _tmp59_; - gchar* _tmp60_; - GtkAboutDialog* _tmp61_; - SpitPluggableInfo _tmp62_; - const gchar* _tmp63_; - GtkAboutDialog* _tmp64_; - SpitPluggableInfo _tmp65_; - const gchar* _tmp66_; - GtkAboutDialog* _tmp67_; - SpitPluggableInfo _tmp68_; - const gchar* _tmp69_; - GtkAboutDialog* _tmp70_; - SpitPluggableInfo _tmp71_; - const gchar* _tmp72_; - GtkAboutDialog* _tmp73_; - GtkAboutDialog* _tmp74_; -#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_return_if_fail (PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR (self)); -#line 32 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = self->priv->list; -#line 32 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp2_ = plugins_manifest_list_view_get_selected_ids (_tmp0_, &_tmp1_); -#line 32 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids = _tmp2_; -#line 32 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids_length1 = _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _ids_size_ = ids_length1; -#line 33 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp3_ = ids; -#line 33 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp3__length1 = ids_length1; -#line 33 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp3__length1 == 0) { -#line 34 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids = (_vala_array_free (ids, ids_length1, (GDestroyNotify) g_free), NULL); -#line 34 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return; -#line 419 "ManifestWidget.c" - } -#line 36 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp4_ = ids; -#line 36 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp4__length1 = ids_length1; -#line 36 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp5_ = _tmp4_[0]; -#line 36 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 36 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - id = _tmp6_; -#line 38 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - memset (&info, 0, sizeof (SpitPluggableInfo)); -#line 39 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp7_ = id; -#line 39 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp8_ = plugins_get_pluggable_info (_tmp7_, &info); -#line 39 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!_tmp8_) { -#line 439 "ManifestWidget.c" - const gchar* _tmp9_; -#line 40 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp9_ = id; -#line 40 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_warning ("ManifestWidget.vala:40: Unable to retrieve information for plugin %s", _tmp9_); -#line 42 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - spit_pluggable_info_destroy (&info); -#line 42 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_free0 (id); -#line 42 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids = (_vala_array_free (ids, ids_length1, (GDestroyNotify) g_free), NULL); -#line 42 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return; -#line 453 "ManifestWidget.c" - } -#line 47 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - authors = NULL; -#line 47 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - authors_length1 = 0; -#line 47 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _authors_size_ = authors_length1; -#line 48 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp10_ = info; -#line 48 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp11_ = _tmp10_.authors; -#line 48 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp11_ != NULL) { -#line 467 "ManifestWidget.c" - gchar** split = NULL; - SpitPluggableInfo _tmp12_; - const gchar* _tmp13_; - gchar** _tmp14_; - gchar** _tmp15_; - gint split_length1; - gint _split_size_; -#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp12_ = info; -#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp13_ = _tmp12_.authors; -#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp15_ = _tmp14_ = g_strsplit (_tmp13_, ",", 0); -#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - split = _tmp15_; -#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - split_length1 = _vala_array_length (_tmp14_); -#line 49 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _split_size_ = split_length1; -#line 487 "ManifestWidget.c" - { - gint ctr = 0; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ctr = 0; -#line 492 "ManifestWidget.c" - { - gboolean _tmp16_ = FALSE; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp16_ = TRUE; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - while (TRUE) { -#line 499 "ManifestWidget.c" - gint _tmp18_; - gchar** _tmp19_; - gint _tmp19__length1; - gchar* stripped = NULL; - gchar** _tmp20_; - gint _tmp20__length1; - gint _tmp21_; - const gchar* _tmp22_; - gchar* _tmp23_; - const gchar* _tmp24_; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!_tmp16_) { -#line 512 "ManifestWidget.c" - gint _tmp17_; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp17_ = ctr; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ctr = _tmp17_ + 1; -#line 518 "ManifestWidget.c" - } -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp16_ = FALSE; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp18_ = ctr; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp19_ = split; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp19__length1 = split_length1; -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!(_tmp18_ < _tmp19__length1)) { -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - break; -#line 532 "ManifestWidget.c" - } -#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp20_ = split; -#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp20__length1 = split_length1; -#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp21_ = ctr; -#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp22_ = _tmp20_[_tmp21_]; -#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp23_ = string_strip (_tmp22_); -#line 51 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - stripped = _tmp23_; -#line 52 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp24_ = stripped; -#line 52 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!is_string_empty (_tmp24_)) { -#line 550 "ManifestWidget.c" - gchar** _tmp25_; - gint _tmp25__length1; - gchar** _tmp27_; - gint _tmp27__length1; - const gchar* _tmp28_; - gchar* _tmp29_; -#line 53 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp25_ = authors; -#line 53 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp25__length1 = authors_length1; -#line 53 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp25_ == NULL) { -#line 563 "ManifestWidget.c" - gchar** _tmp26_; -#line 54 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp26_ = g_new0 (gchar*, 0 + 1); -#line 54 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - authors = (_vala_array_free (authors, authors_length1, (GDestroyNotify) g_free), NULL); -#line 54 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - authors = _tmp26_; -#line 54 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - authors_length1 = 0; -#line 54 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _authors_size_ = authors_length1; -#line 575 "ManifestWidget.c" - } -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp27_ = authors; -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp27__length1 = authors_length1; -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp28_ = stripped; -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp29_ = g_strdup (_tmp28_); -#line 56 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _vala_array_add52 (&authors, &authors_length1, &_authors_size_, _tmp29_); -#line 587 "ManifestWidget.c" - } -#line 50 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_free0 (stripped); -#line 591 "ManifestWidget.c" - } - } - } -#line 48 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - split = (_vala_array_free (split, split_length1, (GDestroyNotify) g_free), NULL); -#line 597 "ManifestWidget.c" - } -#line 61 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp30_ = (GtkAboutDialog*) gtk_about_dialog_new (); -#line 61 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_ref_sink (_tmp30_); -#line 61 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - about_dialog = _tmp30_; -#line 62 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp31_ = about_dialog; -#line 62 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp32_ = authors; -#line 62 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp32__length1 = authors_length1; -#line 62 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_authors (_tmp31_, _tmp32_); -#line 63 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp33_ = about_dialog; -#line 63 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp34_ = info; -#line 63 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp35_ = _tmp34_.brief_description; -#line 63 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_comments (_tmp33_, _tmp35_); -#line 64 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp36_ = about_dialog; -#line 64 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp37_ = info; -#line 64 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp38_ = _tmp37_.copyright; -#line 64 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_copyright (_tmp36_, _tmp38_); -#line 65 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp39_ = about_dialog; -#line 65 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp40_ = info; -#line 65 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp41_ = _tmp40_.license; -#line 65 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_license (_tmp39_, _tmp41_); -#line 66 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp42_ = about_dialog; -#line 66 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp43_ = info; -#line 66 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp44_ = _tmp43_.is_license_wordwrapped; -#line 66 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_wrap_license (_tmp42_, _tmp44_); -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp47_ = info; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp48_ = _tmp47_.icons; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp48__length1 = _tmp47_.icons_length1; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp48_ != NULL) { -#line 653 "ManifestWidget.c" - SpitPluggableInfo _tmp49_; - GdkPixbuf** _tmp50_; - gint _tmp50__length1; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp49_ = info; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp50_ = _tmp49_.icons; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp50__length1 = _tmp49_.icons_length1; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp46_ = _tmp50__length1 > 0; -#line 665 "ManifestWidget.c" - } else { -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp46_ = FALSE; -#line 669 "ManifestWidget.c" - } -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp46_) { -#line 673 "ManifestWidget.c" - SpitPluggableInfo _tmp51_; - GdkPixbuf** _tmp52_; - gint _tmp52__length1; - GdkPixbuf* _tmp53_; - GdkPixbuf* _tmp54_; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp51_ = info; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp52_ = _tmp51_.icons; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp52__length1 = _tmp51_.icons_length1; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp53_ = _tmp52_[0]; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp54_ = _g_object_ref0 (_tmp53_); -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp45_); -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp45_ = _tmp54_; -#line 693 "ManifestWidget.c" - } else { - GdkPixbuf* _tmp55_; -#line 68 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp55_ = resources_get_icon (RESOURCES_ICON_GENERIC_PLUGIN, RESOURCES_DEFAULT_ICON_SCALE); -#line 68 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp45_); -#line 68 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp45_ = _tmp55_; -#line 702 "ManifestWidget.c" - } -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp56_ = about_dialog; -#line 67 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_logo (_tmp56_, _tmp45_); -#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp57_ = about_dialog; -#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp58_ = id; -#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp59_ = plugins_get_pluggable_name (_tmp58_); -#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp60_ = _tmp59_; -#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_program_name (_tmp57_, _tmp60_); -#line 69 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_free0 (_tmp60_); -#line 70 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp61_ = about_dialog; -#line 70 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp62_ = info; -#line 70 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp63_ = _tmp62_.translators; -#line 70 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_translator_credits (_tmp61_, _tmp63_); -#line 71 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp64_ = about_dialog; -#line 71 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp65_ = info; -#line 71 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp66_ = _tmp65_.version; -#line 71 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_version (_tmp64_, _tmp66_); -#line 72 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp67_ = about_dialog; -#line 72 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp68_ = info; -#line 72 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp69_ = _tmp68_.website_url; -#line 72 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_website (_tmp67_, _tmp69_); -#line 73 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp70_ = about_dialog; -#line 73 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp71_ = info; -#line 73 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp72_ = _tmp71_.website_name; -#line 73 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_about_dialog_set_website_label (_tmp70_, _tmp72_); -#line 75 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp73_ = about_dialog; -#line 75 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (_tmp73_, gtk_dialog_get_type (), GtkDialog)); -#line 77 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp74_ = about_dialog; -#line 77 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, gtk_widget_get_type (), GtkWidget)); -#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp45_); -#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (about_dialog); -#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - authors = (_vala_array_free (authors, authors_length1, (GDestroyNotify) g_free), NULL); -#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - spit_pluggable_info_destroy (&info); -#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_free0 (id); -#line 31 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids = (_vala_array_free (ids, ids_length1, (GDestroyNotify) g_free), NULL); -#line 772 "ManifestWidget.c" -} - - -static void -plugins_manifest_widget_mediator_on_selection_changed (PluginsManifestWidgetMediator* self) -{ -#line 80 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_return_if_fail (PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR (self)); -#line 81 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - plugins_manifest_widget_mediator_set_about_button_sensitivity (self); -#line 783 "ManifestWidget.c" -} - - -static void -plugins_manifest_widget_mediator_set_about_button_sensitivity (PluginsManifestWidgetMediator* self) -{ - gchar** ids = NULL; - PluginsManifestListView* _tmp0_; - gint _tmp1_; - gchar** _tmp2_; - gint ids_length1; - gint _ids_size_; - GtkButton* _tmp3_; -#line 84 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_return_if_fail (PLUGINS_IS_MANIFEST_WIDGET_MEDIATOR (self)); -#line 89 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = self->priv->list; -#line 89 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp2_ = plugins_manifest_list_view_get_selected_ids (_tmp0_, &_tmp1_); -#line 89 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids = _tmp2_; -#line 89 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids_length1 = _tmp1_; -#line 89 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _ids_size_ = ids_length1; -#line 90 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp3_ = self->priv->about_button; -#line 90 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), ids_length1 == 1); -#line 84 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids = (_vala_array_free (ids, ids_length1, (GDestroyNotify) g_free), NULL); -#line 815 "ManifestWidget.c" -} - - -static void -plugins_manifest_widget_mediator_class_init (PluginsManifestWidgetMediatorClass * klass) -{ - gint PluginsManifestWidgetMediator_private_offset; -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - plugins_manifest_widget_mediator_parent_class = g_type_class_peek_parent (klass); -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_type_class_add_private (klass, sizeof (PluginsManifestWidgetMediatorPrivate)); -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - G_OBJECT_CLASS (klass)->finalize = plugins_manifest_widget_mediator_finalize; -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - PluginsManifestWidgetMediator_private_offset = g_type_class_get_instance_private_offset (klass); -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/manifest_widget.ui"); -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "about_button", FALSE, PluginsManifestWidgetMediator_private_offset + G_STRUCT_OFFSET (PluginsManifestWidgetMediatorPrivate, about_button)); -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "list_bin", FALSE, PluginsManifestWidgetMediator_private_offset + G_STRUCT_OFFSET (PluginsManifestWidgetMediatorPrivate, list_bin)); -#line 837 "ManifestWidget.c" -} - - -static void -plugins_manifest_widget_mediator_instance_init (PluginsManifestWidgetMediator * self) -{ - PluginsManifestListView* _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self->priv = PLUGINS_MANIFEST_WIDGET_MEDIATOR_GET_PRIVATE (self); -#line 18 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = plugins_manifest_list_view_new (); -#line 18 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_ref_sink (_tmp0_); -#line 18 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self->priv->list = _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_widget_init_template (GTK_WIDGET (self)); -#line 855 "ManifestWidget.c" -} - - -static void -plugins_manifest_widget_mediator_finalize (GObject * obj) -{ - PluginsManifestWidgetMediator * self; -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_MANIFEST_WIDGET_MEDIATOR, PluginsManifestWidgetMediator); -#line 13 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (self->priv->about_button); -#line 16 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (self->priv->list_bin); -#line 18 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (self->priv->list); -#line 11 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - G_OBJECT_CLASS (plugins_manifest_widget_mediator_parent_class)->finalize (obj); -#line 873 "ManifestWidget.c" -} - - -GType -plugins_manifest_widget_mediator_get_type (void) -{ - static volatile gsize plugins_manifest_widget_mediator_type_id__volatile = 0; - if (g_once_init_enter (&plugins_manifest_widget_mediator_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PluginsManifestWidgetMediatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_manifest_widget_mediator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsManifestWidgetMediator), 0, (GInstanceInitFunc) plugins_manifest_widget_mediator_instance_init, NULL }; - GType plugins_manifest_widget_mediator_type_id; - plugins_manifest_widget_mediator_type_id = g_type_register_static (gtk_box_get_type (), "PluginsManifestWidgetMediator", &g_define_type_info, 0); - g_once_init_leave (&plugins_manifest_widget_mediator_type_id__volatile, plugins_manifest_widget_mediator_type_id); - } - return plugins_manifest_widget_mediator_type_id__volatile; -} - - -static GType -plugins_manifest_list_view_column_get_type (void) -{ - static volatile gsize plugins_manifest_list_view_column_type_id__volatile = 0; - if (g_once_init_enter (&plugins_manifest_list_view_column_type_id__volatile)) { - static const GEnumValue values[] = {{PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED", "enabled"}, {PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE", "can-enable"}, {PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON", "icon"}, {PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME", "name"}, {PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ID, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ID", "id"}, {PLUGINS_MANIFEST_LIST_VIEW_COLUMN_N_COLUMNS, "PLUGINS_MANIFEST_LIST_VIEW_COLUMN_N_COLUMNS", "n-columns"}, {0, NULL, NULL}}; - GType plugins_manifest_list_view_column_type_id; - plugins_manifest_list_view_column_type_id = g_enum_register_static ("PluginsManifestListViewColumn", values); - g_once_init_leave (&plugins_manifest_list_view_column_type_id__volatile, plugins_manifest_list_view_column_type_id); - } - return plugins_manifest_list_view_column_type_id__volatile; -} - - -static gint -_plugins_compare_extension_point_names_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = plugins_compare_extension_point_names (a, b); -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 914 "ManifestWidget.c" -} - - -static gint -_plugins_compare_pluggable_names_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = plugins_compare_pluggable_names (a, b); -#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 927 "ManifestWidget.c" -} - - -PluginsManifestListView* -plugins_manifest_list_view_construct (GType object_type) -{ - PluginsManifestListView * self = NULL; - GtkTreeStore* _tmp0_; - GtkCellRendererToggle* checkbox_renderer = NULL; - GtkCellRendererToggle* _tmp1_; - GtkCellRendererToggle* _tmp2_; - GtkCellRendererToggle* _tmp3_; - GtkCellRendererPixbuf* icon_renderer = NULL; - GtkCellRendererPixbuf* _tmp4_; - GtkCellRendererPixbuf* _tmp5_; - GtkCellRendererPixbuf* _tmp6_; - GtkCellRendererPixbuf* _tmp7_; - GtkCellRendererText* text_renderer = NULL; - GtkCellRendererText* _tmp8_; - GtkTreeViewColumn* column = NULL; - GtkTreeViewColumn* _tmp9_; - GtkTreeViewColumn* _tmp10_; - GtkTreeViewColumn* _tmp11_; - GtkCellRendererToggle* _tmp12_; - GtkTreeViewColumn* _tmp13_; - GtkCellRendererPixbuf* _tmp14_; - GtkTreeViewColumn* _tmp15_; - GtkCellRendererText* _tmp16_; - GtkTreeViewColumn* _tmp17_; - GtkCellRendererToggle* _tmp18_; - GtkTreeViewColumn* _tmp19_; - GtkCellRendererToggle* _tmp20_; - GtkTreeViewColumn* _tmp21_; - GtkCellRendererPixbuf* _tmp22_; - GtkTreeViewColumn* _tmp23_; - GtkCellRendererText* _tmp24_; - GtkTreeViewColumn* _tmp25_; - GtkTreeSelection* _tmp26_; - GtkIconTheme* icon_theme = NULL; - GtkIconTheme* _tmp27_; - GError * _inner_error_ = NULL; -#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self = (PluginsManifestListView*) g_object_new (object_type, NULL); -#line 117 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = self->priv->store; -#line 117 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_set_model (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_tree_model_get_type (), GtkTreeModel)); -#line 119 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp1_ = (GtkCellRendererToggle*) gtk_cell_renderer_toggle_new (); -#line 119 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_ref_sink (_tmp1_); -#line 119 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - checkbox_renderer = _tmp1_; -#line 120 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp2_ = checkbox_renderer; -#line 120 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_renderer_toggle_set_radio (_tmp2_, FALSE); -#line 121 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp3_ = checkbox_renderer; -#line 121 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_renderer_toggle_set_activatable (_tmp3_, TRUE); -#line 123 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp4_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new (); -#line 123 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_ref_sink (_tmp4_); -#line 123 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - icon_renderer = _tmp4_; -#line 124 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp5_ = icon_renderer; -#line 124 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_set (_tmp5_, "stock-size", (guint) GTK_ICON_SIZE_MENU, NULL); -#line 125 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp6_ = icon_renderer; -#line 125 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_cell_renderer_get_type (), GtkCellRenderer), "xpad", (guint) PLUGINS_MANIFEST_LIST_VIEW_ICON_X_PADDING, NULL); -#line 126 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp7_ = icon_renderer; -#line 126 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_cell_renderer_get_type (), GtkCellRenderer), "ypad", (guint) PLUGINS_MANIFEST_LIST_VIEW_ICON_Y_PADDING, NULL); -#line 128 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp8_ = (GtkCellRendererText*) gtk_cell_renderer_text_new (); -#line 128 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_ref_sink (_tmp8_); -#line 128 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - text_renderer = _tmp8_; -#line 130 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp9_ = gtk_tree_view_column_new (); -#line 130 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_object_ref_sink (_tmp9_); -#line 130 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - column = _tmp9_; -#line 131 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp10_ = column; -#line 131 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_column_set_sizing (_tmp10_, GTK_TREE_VIEW_COLUMN_AUTOSIZE); -#line 132 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp11_ = column; -#line 132 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp12_ = checkbox_renderer; -#line 132 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_cell_renderer_get_type (), GtkCellRenderer), FALSE); -#line 133 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp13_ = column; -#line 133 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp14_ = icon_renderer; -#line 133 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_cell_renderer_get_type (), GtkCellRenderer), FALSE); -#line 134 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp15_ = column; -#line 134 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp16_ = text_renderer; -#line 134 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_layout_pack_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_cell_renderer_get_type (), GtkCellRenderer), TRUE); -#line 136 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp17_ = column; -#line 136 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp18_ = checkbox_renderer; -#line 136 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_cell_renderer_get_type (), GtkCellRenderer), "active", (gint) PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED); -#line 137 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp19_ = column; -#line 137 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp20_ = checkbox_renderer; -#line 137 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_cell_renderer_get_type (), GtkCellRenderer), "visible", (gint) PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE); -#line 138 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp21_ = column; -#line 138 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp22_ = icon_renderer; -#line 138 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_cell_renderer_get_type (), GtkCellRenderer), "pixbuf", (gint) PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON); -#line 139 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp23_ = column; -#line 139 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp24_ = text_renderer; -#line 139 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_cell_renderer_get_type (), GtkCellRenderer), "text", (gint) PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME); -#line 141 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp25_ = column; -#line 141 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_append_column (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp25_); -#line 143 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_set_headers_visible (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE); -#line 144 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_set_enable_search (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE); -#line 145 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_set_show_expanders (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), TRUE); -#line 146 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_set_reorderable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE); -#line 147 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_set_enable_tree_lines (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE); -#line 148 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_set_grid_lines (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), GTK_TREE_VIEW_GRID_LINES_NONE); -#line 149 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp26_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView)); -#line 149 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_selection_set_mode (_tmp26_, GTK_SELECTION_BROWSE); -#line 151 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp27_ = resources_get_icon_theme_engine (); -#line 151 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - icon_theme = _tmp27_; -#line 1089 "ManifestWidget.c" - { - GeeIterator* _extension_point_it = NULL; - GeeCollection* _tmp28_; - GeeCollection* _tmp29_; - GeeIterator* _tmp30_; - GeeIterator* _tmp31_; -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp28_ = plugins_get_extension_points (_plugins_compare_extension_point_names_gcompare_data_func, NULL, NULL); -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp29_ = _tmp28_; -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp30_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp31_ = _tmp30_; -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp29_); -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _extension_point_it = _tmp31_; -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - while (TRUE) { -#line 1110 "ManifestWidget.c" - GeeIterator* _tmp32_; - PluginsExtensionPoint* extension_point = NULL; - GeeIterator* _tmp33_; - gpointer _tmp34_; - GtkTreeIter category_iter = {0}; - GtkTreeStore* _tmp35_; - GtkTreeIter _tmp36_ = {0}; - GdkPixbuf* icon = NULL; - PluginsExtensionPoint* _tmp37_; - const gchar* _tmp38_; - const gchar* _tmp39_; - GtkTreeStore* _tmp58_; - GtkTreeIter _tmp59_; - PluginsExtensionPoint* _tmp60_; - const gchar* _tmp61_; - const gchar* _tmp62_; - GdkPixbuf* _tmp63_; - GeeCollection* pluggables = NULL; - PluginsExtensionPoint* _tmp64_; - GType _tmp65_; - GType _tmp66_; - GeeCollection* _tmp67_; -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp32_ = _extension_point_it; -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!gee_iterator_next (_tmp32_)) { -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - break; -#line 1139 "ManifestWidget.c" - } -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp33_ = _extension_point_it; -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp34_ = gee_iterator_get (_tmp33_); -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - extension_point = (PluginsExtensionPoint*) _tmp34_; -#line 157 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp35_ = self->priv->store; -#line 157 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_store_append (_tmp35_, &_tmp36_, NULL); -#line 157 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - category_iter = _tmp36_; -#line 159 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - icon = NULL; -#line 160 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp37_ = extension_point; -#line 160 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp38_ = plugins_extension_point_get_icon_name (_tmp37_); -#line 160 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp39_ = _tmp38_; -#line 160 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp39_ != NULL) { -#line 1163 "ManifestWidget.c" - GtkIconInfo* icon_info = NULL; - GtkIconTheme* _tmp40_; - PluginsExtensionPoint* _tmp41_; - const gchar* _tmp42_; - const gchar* _tmp43_; - GThemedIcon* _tmp44_; - GThemedIcon* _tmp45_; - GtkIconInfo* _tmp46_; - GtkIconInfo* _tmp47_; - GtkIconInfo* _tmp48_; -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp40_ = icon_theme; -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp41_ = extension_point; -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp42_ = plugins_extension_point_get_icon_name (_tmp41_); -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp43_ = _tmp42_; -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp44_ = (GThemedIcon*) g_themed_icon_new (_tmp43_); -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp45_ = _tmp44_; -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp46_ = gtk_icon_theme_lookup_by_gicon (_tmp40_, G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, g_icon_get_type (), GIcon), PLUGINS_MANIFEST_LIST_VIEW_ICON_SIZE, 0); -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp47_ = _tmp46_; -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp45_); -#line 161 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - icon_info = _tmp47_; -#line 163 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp48_ = icon_info; -#line 163 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp48_ != NULL) { -#line 1198 "ManifestWidget.c" - { - GdkPixbuf* _tmp49_ = NULL; - GtkIconInfo* _tmp50_; - GdkPixbuf* _tmp51_; - GdkPixbuf* _tmp52_; -#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp50_ = icon_info; -#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp51_ = gtk_icon_info_load_icon (_tmp50_, &_inner_error_); -#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp49_ = _tmp51_; -#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1212 "ManifestWidget.c" - goto __catch41_g_error; - } -#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp52_ = _tmp49_; -#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp49_ = NULL; -#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (icon); -#line 165 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - icon = _tmp52_; -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp49_); -#line 1225 "ManifestWidget.c" - } - goto __finally41; - __catch41_g_error: - { - GError* err = NULL; - PluginsExtensionPoint* _tmp53_; - const gchar* _tmp54_; - const gchar* _tmp55_; - GError* _tmp56_; - const gchar* _tmp57_; -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - err = _inner_error_; -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _inner_error_ = NULL; -#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp53_ = extension_point; -#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp54_ = plugins_extension_point_get_icon_name (_tmp53_); -#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp55_ = _tmp54_; -#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp56_ = err; -#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp57_ = _tmp56_->message; -#line 167 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_warning ("ManifestWidget.vala:167: Unable to load icon %s: %s", _tmp55_, _tmp57_); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_error_free0 (err); -#line 1254 "ManifestWidget.c" - } - __finally41: -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _gtk_icon_info_free0 (icon_info); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (icon); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _plugins_extension_point_unref0 (extension_point); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_extension_point_it); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (icon_theme); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (column); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (text_renderer); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (icon_renderer); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (checkbox_renderer); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_clear_error (&_inner_error_); -#line 164 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return NULL; -#line 1283 "ManifestWidget.c" - } - } -#line 160 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _gtk_icon_info_free0 (icon_info); -#line 1288 "ManifestWidget.c" - } -#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp58_ = self->priv->store; -#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp59_ = category_iter; -#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp60_ = extension_point; -#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp61_ = plugins_extension_point_get_name (_tmp60_); -#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp62_ = _tmp61_; -#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp63_ = icon; -#line 172 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_store_set (_tmp58_, &_tmp59_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME, _tmp62_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE, FALSE, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON, _tmp63_, -1); -#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp64_ = extension_point; -#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp65_ = plugins_extension_point_get_pluggable_type (_tmp64_); -#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp66_ = _tmp65_; -#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp67_ = plugins_get_pluggables_for_type (_tmp66_, _plugins_compare_pluggable_names_gcompare_data_func, NULL, NULL, TRUE); -#line 175 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - pluggables = _tmp67_; -#line 1314 "ManifestWidget.c" - { - GeeIterator* _pluggable_it = NULL; - GeeCollection* _tmp68_; - GeeIterator* _tmp69_; -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp68_ = pluggables; -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp69_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _pluggable_it = _tmp69_; -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - while (TRUE) { -#line 1327 "ManifestWidget.c" - GeeIterator* _tmp70_; - SpitPluggable* pluggable = NULL; - GeeIterator* _tmp71_; - gpointer _tmp72_; - gboolean enabled = FALSE; - SpitPluggable* _tmp73_; - const gchar* _tmp74_; - gboolean _tmp75_ = FALSE; - gboolean _tmp76_; - SpitPluggableInfo info = {0}; - SpitPluggable* _tmp77_; - GdkPixbuf* _tmp78_ = NULL; - gboolean _tmp79_ = FALSE; - SpitPluggableInfo _tmp80_; - GdkPixbuf** _tmp81_; - gint _tmp81__length1; - GdkPixbuf* _tmp89_; - GtkTreeIter plugin_iter = {0}; - GtkTreeStore* _tmp90_; - GtkTreeIter _tmp91_; - GtkTreeIter _tmp92_ = {0}; - GtkTreeStore* _tmp93_; - GtkTreeIter _tmp94_; - gboolean _tmp95_; - SpitPluggable* _tmp96_; - const gchar* _tmp97_; - SpitPluggable* _tmp98_; - const gchar* _tmp99_; - GdkPixbuf* _tmp100_; -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp70_ = _pluggable_it; -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!gee_iterator_next (_tmp70_)) { -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - break; -#line 1363 "ManifestWidget.c" - } -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp71_ = _pluggable_it; -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp72_ = gee_iterator_get (_tmp71_); -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - pluggable = (SpitPluggable*) _tmp72_; -#line 179 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp73_ = pluggable; -#line 179 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp74_ = spit_pluggable_get_id (_tmp73_); -#line 179 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp76_ = plugins_get_pluggable_enabled (_tmp74_, &_tmp75_); -#line 179 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - enabled = _tmp75_; -#line 179 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!_tmp76_) { -#line 180 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (pluggable); -#line 180 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - continue; -#line 1385 "ManifestWidget.c" - } -#line 182 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - memset (&info, 0, sizeof (SpitPluggableInfo)); -#line 183 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp77_ = pluggable; -#line 183 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - spit_pluggable_get_info (_tmp77_, &info); -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp80_ = info; -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp81_ = _tmp80_.icons; -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp81__length1 = _tmp80_.icons_length1; -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp81_ != NULL) { -#line 1401 "ManifestWidget.c" - SpitPluggableInfo _tmp82_; - GdkPixbuf** _tmp83_; - gint _tmp83__length1; -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp82_ = info; -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp83_ = _tmp82_.icons; -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp83__length1 = _tmp82_.icons_length1; -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp79_ = _tmp83__length1 > 0; -#line 1413 "ManifestWidget.c" - } else { -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp79_ = FALSE; -#line 1417 "ManifestWidget.c" - } -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp79_) { -#line 1421 "ManifestWidget.c" - SpitPluggableInfo _tmp84_; - GdkPixbuf** _tmp85_; - gint _tmp85__length1; - GdkPixbuf* _tmp86_; - GdkPixbuf* _tmp87_; -#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp84_ = info; -#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp85_ = _tmp84_.icons; -#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp85__length1 = _tmp84_.icons_length1; -#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp86_ = _tmp85_[0]; -#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp87_ = _g_object_ref0 (_tmp86_); -#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp78_); -#line 186 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp78_ = _tmp87_; -#line 1441 "ManifestWidget.c" - } else { - GdkPixbuf* _tmp88_; -#line 187 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp88_ = resources_get_icon (RESOURCES_ICON_GENERIC_PLUGIN, PLUGINS_MANIFEST_LIST_VIEW_ICON_SIZE); -#line 187 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp78_); -#line 187 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp78_ = _tmp88_; -#line 1450 "ManifestWidget.c" - } -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp89_ = _g_object_ref0 (_tmp78_); -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (icon); -#line 185 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - icon = _tmp89_; -#line 190 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp90_ = self->priv->store; -#line 190 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp91_ = category_iter; -#line 190 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_store_append (_tmp90_, &_tmp92_, &_tmp91_); -#line 190 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - plugin_iter = _tmp92_; -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp93_ = self->priv->store; -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp94_ = plugin_iter; -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp95_ = enabled; -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp96_ = pluggable; -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp97_ = spit_pluggable_get_pluggable_name (_tmp96_); -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp98_ = pluggable; -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp99_ = spit_pluggable_get_id (_tmp98_); -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp100_ = icon; -#line 192 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_store_set (_tmp93_, &_tmp94_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED, _tmp95_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_NAME, _tmp97_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ID, _tmp99_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_CAN_ENABLE, TRUE, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ICON, _tmp100_, -1); -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_tmp78_); -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - spit_pluggable_info_destroy (&info); -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (pluggable); -#line 1490 "ManifestWidget.c" - } -#line 177 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_pluggable_it); -#line 1494 "ManifestWidget.c" - } -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (pluggables); -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (icon); -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _plugins_extension_point_unref0 (extension_point); -#line 1502 "ManifestWidget.c" - } -#line 155 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (_extension_point_it); -#line 1506 "ManifestWidget.c" - } -#line 197 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_view_expand_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView)); -#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (icon_theme); -#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (column); -#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (text_renderer); -#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (icon_renderer); -#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (checkbox_renderer); -#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return self; -#line 1522 "ManifestWidget.c" -} - - -PluginsManifestListView* -plugins_manifest_list_view_new (void) -{ -#line 116 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return plugins_manifest_list_view_construct (PLUGINS_TYPE_MANIFEST_LIST_VIEW); -#line 1531 "ManifestWidget.c" -} - - -static GtkTreePath* -_vala_GtkTreePath_copy (GtkTreePath* self) -{ -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return g_boxed_copy (gtk_tree_path_get_type (), self); -#line 1540 "ManifestWidget.c" -} - - -static gpointer -__vala_GtkTreePath_copy0 (gpointer self) -{ -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return self ? _vala_GtkTreePath_copy (self) : NULL; -#line 1549 "ManifestWidget.c" -} - - -static void -_vala_array_add53 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if ((*length) == (*size)) { -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 1565 "ManifestWidget.c" - } -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - (*array)[(*length)++] = value; -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - (*array)[*length] = NULL; -#line 1571 "ManifestWidget.c" -} - - -static void -_vala_GtkTreePath_free (GtkTreePath* self) -{ -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_boxed_free (gtk_tree_path_get_type (), self); -#line 1580 "ManifestWidget.c" -} - - -static void -__vala_GtkTreePath_free0_ (gpointer var) -{ -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - (var == NULL) ? NULL : (var = (_vala_GtkTreePath_free (var), NULL)); -#line 1589 "ManifestWidget.c" -} - - -static inline void -_g_list_free___vala_GtkTreePath_free0_ (GList* self) -{ -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_list_free_full (self, (GDestroyNotify) __vala_GtkTreePath_free0_); -#line 1598 "ManifestWidget.c" -} - - -gchar** -plugins_manifest_list_view_get_selected_ids (PluginsManifestListView* self, - int* result_length1) -{ - gchar** result = NULL; - gchar** ids = NULL; - gchar** _tmp0_; - gint ids_length1; - gint _ids_size_; - GList* selected = NULL; - GtkTreeSelection* _tmp1_; - GList* _tmp2_; - GList* _tmp3_; - gchar** _tmp12_; - gint _tmp12__length1; -#line 200 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_return_val_if_fail (PLUGINS_IS_MANIFEST_LIST_VIEW (self), NULL); -#line 201 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = g_new0 (gchar*, 0 + 1); -#line 201 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids = _tmp0_; -#line 201 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ids_length1 = 0; -#line 201 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _ids_size_ = ids_length1; -#line 203 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp1_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView)); -#line 203 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp2_ = gtk_tree_selection_get_selected_rows (_tmp1_, NULL); -#line 203 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - selected = _tmp2_; -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp3_ = selected; -#line 1635 "ManifestWidget.c" - { - GList* path_collection = NULL; - GList* path_it = NULL; -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - path_collection = _tmp3_; -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - for (path_it = path_collection; path_it != NULL; path_it = path_it->next) { -#line 1643 "ManifestWidget.c" - GtkTreePath* _tmp4_; - GtkTreePath* path = NULL; -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp4_ = __vala_GtkTreePath_copy0 ((GtkTreePath*) path_it->data); -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - path = _tmp4_; -#line 1650 "ManifestWidget.c" - { - GtkTreeIter iter = {0}; - gchar* id = NULL; - GtkTreePath* _tmp5_; - GtkTreeIter _tmp6_ = {0}; - gchar* _tmp7_; - const gchar* _tmp8_; -#line 206 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp5_ = path; -#line 206 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp7_ = plugins_manifest_list_view_get_id_at_path (self, _tmp5_, &_tmp6_); -#line 206 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - iter = _tmp6_; -#line 206 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - id = _tmp7_; -#line 207 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp8_ = id; -#line 207 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp8_ != NULL) { -#line 1670 "ManifestWidget.c" - gchar** _tmp9_; - gint _tmp9__length1; - const gchar* _tmp10_; - gchar* _tmp11_; -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp9_ = ids; -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp9__length1 = ids_length1; -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp10_ = id; -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp11_ = g_strdup (_tmp10_); -#line 208 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _vala_array_add53 (&ids, &ids_length1, &_ids_size_, _tmp11_); -#line 1685 "ManifestWidget.c" - } -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_free0 (id); -#line 204 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - __vala_GtkTreePath_free0 (path); -#line 1691 "ManifestWidget.c" - } - } - } -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp12_ = ids; -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp12__length1 = ids_length1; -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (result_length1) { -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - *result_length1 = _tmp12__length1; -#line 1703 "ManifestWidget.c" - } -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - result = _tmp12_; -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - __g_list_free___vala_GtkTreePath_free0_0 (selected); -#line 211 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 1711 "ManifestWidget.c" -} - - -static gchar* -plugins_manifest_list_view_get_id_at_path (PluginsManifestListView* self, - GtkTreePath* path, - GtkTreeIter* iter) -{ - GtkTreeIter _vala_iter = {0}; - gchar* result = NULL; - GtkTreeStore* _tmp0_; - GtkTreeIter _tmp1_ = {0}; - gboolean _tmp2_; - const gchar* id = NULL; - GtkTreeStore* _tmp3_; - GtkTreeIter _tmp4_; - const gchar* _tmp5_; - gchar* _tmp6_; -#line 214 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_return_val_if_fail (PLUGINS_IS_MANIFEST_LIST_VIEW (self), NULL); -#line 214 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_return_val_if_fail (path != NULL, NULL); -#line 215 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = self->priv->store; -#line 215 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp2_ = gtk_tree_model_get_iter (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp1_, path); -#line 215 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _vala_iter = _tmp1_; -#line 215 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!_tmp2_) { -#line 216 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - result = NULL; -#line 216 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (iter) { -#line 216 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - *iter = _vala_iter; -#line 1748 "ManifestWidget.c" - } -#line 216 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 1752 "ManifestWidget.c" - } -#line 219 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp3_ = self->priv->store; -#line 219 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp4_ = _vala_iter; -#line 219 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_model_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp4_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ID, &id, -1); -#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp5_ = id; -#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp6_ = g_strdup (_tmp5_); -#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - result = _tmp6_; -#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (iter) { -#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - *iter = _vala_iter; -#line 1770 "ManifestWidget.c" - } -#line 221 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 1774 "ManifestWidget.c" -} - - -static gboolean -plugins_manifest_list_view_real_button_press_event (GtkWidget* base, - GdkEventButton* event) -{ - PluginsManifestListView * self; - gboolean result = FALSE; - GtkTreePath* path = NULL; - GtkTreeViewColumn* col = NULL; - gint cellx = 0; - gint celly = 0; - gdouble _tmp0_; - gdouble _tmp1_; - GtkTreePath* _tmp2_ = NULL; - GtkTreeViewColumn* _tmp3_ = NULL; - gint _tmp4_ = 0; - gint _tmp5_ = 0; - gboolean _tmp6_; - GtkTreeViewColumn* _tmp7_; - gboolean _tmp8_ = FALSE; - gint _tmp9_; - GtkTreeIter iter = {0}; - gchar* id = NULL; - GtkTreePath* _tmp11_; - GtkTreeIter _tmp12_ = {0}; - gchar* _tmp13_; - const gchar* _tmp14_; - gboolean enabled = FALSE; - const gchar* _tmp15_; - gboolean _tmp16_ = FALSE; - gboolean _tmp17_; - gboolean _tmp18_; - const gchar* _tmp19_; - gboolean _tmp20_; - GtkTreeStore* _tmp21_; - GtkTreeIter _tmp22_; - gboolean _tmp23_; -#line 232 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListView); -#line 232 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = event->x; -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp1_ = event->y; -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp6_ = gtk_tree_view_get_path_at_pos (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), (gint) _tmp0_, (gint) _tmp1_, &_tmp2_, &_tmp3_, &_tmp4_, &_tmp5_); -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - __vala_GtkTreePath_free0 (path); -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - path = _tmp2_; -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (col); -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp7_ = _g_object_ref0 (_tmp3_); -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - col = _tmp7_; -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - cellx = _tmp4_; -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - celly = _tmp5_; -#line 237 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!_tmp6_) { -#line 239 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - result = GTK_WIDGET_CLASS (plugins_manifest_list_view_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), event); -#line 239 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (col); -#line 239 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - __vala_GtkTreePath_free0 (path); -#line 239 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 1848 "ManifestWidget.c" - } -#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp9_ = cellx; -#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp9_ < (PLUGINS_MANIFEST_LIST_VIEW_ICON_SIZE + PLUGINS_MANIFEST_LIST_VIEW_ICON_X_PADDING)) { -#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp8_ = TRUE; -#line 1856 "ManifestWidget.c" - } else { - gint _tmp10_; -#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp10_ = cellx; -#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp8_ = _tmp10_ > (2 * (PLUGINS_MANIFEST_LIST_VIEW_ICON_X_PADDING + PLUGINS_MANIFEST_LIST_VIEW_ICON_SIZE)); -#line 1863 "ManifestWidget.c" - } -#line 244 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp8_) { -#line 245 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - result = GTK_WIDGET_CLASS (plugins_manifest_list_view_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), event); -#line 245 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (col); -#line 245 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - __vala_GtkTreePath_free0 (path); -#line 245 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 1875 "ManifestWidget.c" - } -#line 248 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp11_ = path; -#line 248 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp13_ = plugins_manifest_list_view_get_id_at_path (self, _tmp11_, &_tmp12_); -#line 248 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - iter = _tmp12_; -#line 248 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - id = _tmp13_; -#line 249 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp14_ = id; -#line 249 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (_tmp14_ == NULL) { -#line 250 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - result = GTK_WIDGET_CLASS (plugins_manifest_list_view_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), event); -#line 250 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_free0 (id); -#line 250 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (col); -#line 250 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - __vala_GtkTreePath_free0 (path); -#line 250 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 1899 "ManifestWidget.c" - } -#line 253 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp15_ = id; -#line 253 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp17_ = plugins_get_pluggable_enabled (_tmp15_, &_tmp16_); -#line 253 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - enabled = _tmp16_; -#line 253 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - if (!_tmp17_) { -#line 254 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - result = GTK_WIDGET_CLASS (plugins_manifest_list_view_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), event); -#line 254 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_free0 (id); -#line 254 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (col); -#line 254 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - __vala_GtkTreePath_free0 (path); -#line 254 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 1919 "ManifestWidget.c" - } -#line 257 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp18_ = enabled; -#line 257 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - enabled = !_tmp18_; -#line 258 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp19_ = id; -#line 258 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp20_ = enabled; -#line 258 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - plugins_set_pluggable_enabled (_tmp19_, _tmp20_); -#line 260 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp21_ = self->priv->store; -#line 260 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp22_ = iter; -#line 260 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp23_ = enabled; -#line 260 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - gtk_tree_store_set (_tmp21_, &_tmp22_, PLUGINS_MANIFEST_LIST_VIEW_COLUMN_ENABLED, _tmp23_, -1); -#line 262 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - result = TRUE; -#line 262 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_free0 (id); -#line 262 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (col); -#line 262 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - __vala_GtkTreePath_free0 (path); -#line 262 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - return result; -#line 1949 "ManifestWidget.c" -} - - -static void -plugins_manifest_list_view_class_init (PluginsManifestListViewClass * klass) -{ -#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - plugins_manifest_list_view_parent_class = g_type_class_peek_parent (klass); -#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - g_type_class_add_private (klass, sizeof (PluginsManifestListViewPrivate)); -#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - ((GtkWidgetClass *) klass)->button_press_event = (gboolean (*) (GtkWidget *, GdkEventButton*)) plugins_manifest_list_view_real_button_press_event; -#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - G_OBJECT_CLASS (klass)->finalize = plugins_manifest_list_view_finalize; -#line 1964 "ManifestWidget.c" -} - - -static void -plugins_manifest_list_view_instance_init (PluginsManifestListView * self) -{ - GtkTreeStore* _tmp0_; -#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self->priv = PLUGINS_MANIFEST_LIST_VIEW_GET_PRIVATE (self); -#line 108 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _tmp0_ = gtk_tree_store_new ((gint) PLUGINS_MANIFEST_LIST_VIEW_COLUMN_N_COLUMNS, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, gdk_pixbuf_get_type (), G_TYPE_STRING, G_TYPE_STRING); -#line 108 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self->priv->store = _tmp0_; -#line 1978 "ManifestWidget.c" -} - - -static void -plugins_manifest_list_view_finalize (GObject * obj) -{ - PluginsManifestListView * self; -#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_MANIFEST_LIST_VIEW, PluginsManifestListView); -#line 108 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - _g_object_unref0 (self->priv->store); -#line 94 "/home/jens/Source/shotwell/src/plugins/ManifestWidget.vala" - G_OBJECT_CLASS (plugins_manifest_list_view_parent_class)->finalize (obj); -#line 1992 "ManifestWidget.c" -} - - -GType -plugins_manifest_list_view_get_type (void) -{ - static volatile gsize plugins_manifest_list_view_type_id__volatile = 0; - if (g_once_init_enter (&plugins_manifest_list_view_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PluginsManifestListViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_manifest_list_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsManifestListView), 0, (GInstanceInitFunc) plugins_manifest_list_view_instance_init, NULL }; - GType plugins_manifest_list_view_type_id; - plugins_manifest_list_view_type_id = g_type_register_static (gtk_tree_view_get_type (), "PluginsManifestListView", &g_define_type_info, 0); - g_once_init_leave (&plugins_manifest_list_view_type_id__volatile, plugins_manifest_list_view_type_id); - } - return plugins_manifest_list_view_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/src/plugins/Plugins.c b/src/plugins/Plugins.c deleted file mode 100644 index 55b8513..0000000 --- a/src/plugins/Plugins.c +++ /dev/null @@ -1,4582 +0,0 @@ -/* Plugins.c generated by valac 0.40.4, the Vala compiler - * generated from Plugins.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include - - -#define PLUGINS_TYPE_EXTENSION_POINT (plugins_extension_point_get_type ()) -#define PLUGINS_EXTENSION_POINT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPoint)) -#define PLUGINS_EXTENSION_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPointClass)) -#define PLUGINS_IS_EXTENSION_POINT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_EXTENSION_POINT)) -#define PLUGINS_IS_EXTENSION_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_EXTENSION_POINT)) -#define PLUGINS_EXTENSION_POINT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPointClass)) - -typedef struct _PluginsExtensionPoint PluginsExtensionPoint; -typedef struct _PluginsExtensionPointClass PluginsExtensionPointClass; -typedef struct _PluginsExtensionPointPrivate PluginsExtensionPointPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _PluginsParamSpecExtensionPoint PluginsParamSpecExtensionPoint; - -#define PLUGINS_TYPE_MODULE_REP (plugins_module_rep_get_type ()) -#define PLUGINS_MODULE_REP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_MODULE_REP, PluginsModuleRep)) -#define PLUGINS_MODULE_REP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_MODULE_REP, PluginsModuleRepClass)) -#define PLUGINS_IS_MODULE_REP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_MODULE_REP)) -#define PLUGINS_IS_MODULE_REP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_MODULE_REP)) -#define PLUGINS_MODULE_REP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_MODULE_REP, PluginsModuleRepClass)) - -typedef struct _PluginsModuleRep PluginsModuleRep; -typedef struct _PluginsModuleRepClass PluginsModuleRepClass; -typedef struct _PluginsModuleRepPrivate PluginsModuleRepPrivate; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_module_close0(var) ((var == NULL) ? NULL : (var = (g_module_close (var), NULL))) -#define _plugins_module_rep_unref0(var) ((var == NULL) ? NULL : (var = (plugins_module_rep_unref (var), NULL))) -typedef struct _PluginsParamSpecModuleRep PluginsParamSpecModuleRep; - -#define PLUGINS_TYPE_PLUGGABLE_REP (plugins_pluggable_rep_get_type ()) -#define PLUGINS_PLUGGABLE_REP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_PLUGGABLE_REP, PluginsPluggableRep)) -#define PLUGINS_PLUGGABLE_REP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_PLUGGABLE_REP, PluginsPluggableRepClass)) -#define PLUGINS_IS_PLUGGABLE_REP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_PLUGGABLE_REP)) -#define PLUGINS_IS_PLUGGABLE_REP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_PLUGGABLE_REP)) -#define PLUGINS_PLUGGABLE_REP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_PLUGGABLE_REP, PluginsPluggableRepClass)) - -typedef struct _PluginsPluggableRep PluginsPluggableRep; -typedef struct _PluginsPluggableRepClass PluginsPluggableRepClass; -typedef struct _PluginsPluggableRepPrivate PluginsPluggableRepPrivate; - -#define TYPE_FUZZY_PROPERTY_STATE (fuzzy_property_state_get_type ()) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -typedef struct _PluginsParamSpecPluggableRep PluginsParamSpecPluggableRep; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define PLUGINS_TYPE_NOTIFIER (plugins_notifier_get_type ()) -#define PLUGINS_NOTIFIER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_NOTIFIER, PluginsNotifier)) -#define PLUGINS_NOTIFIER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_NOTIFIER, PluginsNotifierClass)) -#define PLUGINS_IS_NOTIFIER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_NOTIFIER)) -#define PLUGINS_IS_NOTIFIER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_NOTIFIER)) -#define PLUGINS_NOTIFIER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_NOTIFIER, PluginsNotifierClass)) - -typedef struct _PluginsNotifier PluginsNotifier; -typedef struct _PluginsNotifierClass PluginsNotifierClass; -typedef struct _PluginsNotifierPrivate PluginsNotifierPrivate; -#define _plugins_notifier_unref0(var) ((var == NULL) ? NULL : (var = (plugins_notifier_unref (var), NULL))) -typedef struct _PluginsParamSpecNotifier PluginsParamSpecNotifier; -enum { - PLUGINS_NOTIFIER_PLUGGABLE_ACTIVATION_SIGNAL, - PLUGINS_NOTIFIER_NUM_SIGNALS -}; -static guint plugins_notifier_signals[PLUGINS_NOTIFIER_NUM_SIGNALS] = {0}; -#define _plugins_extension_point_unref0(var) ((var == NULL) ? NULL : (var = (plugins_extension_point_unref (var), NULL))) -#define _plugins_pluggable_rep_unref0(var) ((var == NULL) ? NULL : (var = (plugins_pluggable_rep_unref (var), NULL))) - -#define TYPE_PREPARE_INPUT_TEXT_OPTIONS (prepare_input_text_options_get_type ()) -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PluginsExtensionPoint { - GTypeInstance parent_instance; - volatile int ref_count; - PluginsExtensionPointPrivate * priv; -}; - -struct _PluginsExtensionPointClass { - GTypeClass parent_class; - void (*finalize) (PluginsExtensionPoint *self); -}; - -struct _PluginsExtensionPointPrivate { - GType _pluggable_type; - gchar* _name; - gchar* _icon_name; - gchar** _core_ids; - gint _core_ids_length1; - gint __core_ids_size_; -}; - -struct _PluginsParamSpecExtensionPoint { - GParamSpec parent_instance; -}; - -struct _PluginsModuleRep { - GTypeInstance parent_instance; - volatile int ref_count; - PluginsModuleRepPrivate * priv; - GFile* file; - GModule* module; - SpitModule* spit_module; - gint spit_interface; - gchar* id; -}; - -struct _PluginsModuleRepClass { - GTypeClass parent_class; - void (*finalize) (PluginsModuleRep *self); -}; - -struct _PluginsParamSpecModuleRep { - GParamSpec parent_instance; -}; - -struct _PluginsPluggableRep { - GTypeInstance parent_instance; - volatile int ref_count; - PluginsPluggableRepPrivate * priv; -}; - -struct _PluginsPluggableRepClass { - GTypeClass parent_class; - void (*finalize) (PluginsPluggableRep *self); -}; - -struct _PluginsPluggableRepPrivate { - SpitPluggable* _pluggable; - gchar* _id; - gboolean _is_core; - gboolean _activated; - gboolean enabled; -}; - -typedef enum { - FUZZY_PROPERTY_STATE_ENABLED, - FUZZY_PROPERTY_STATE_DISABLED, - FUZZY_PROPERTY_STATE_UNKNOWN -} FuzzyPropertyState; - -struct _PluginsParamSpecPluggableRep { - GParamSpec parent_instance; -}; - -struct _PluginsNotifier { - GTypeInstance parent_instance; - volatile int ref_count; - PluginsNotifierPrivate * priv; -}; - -struct _PluginsNotifierClass { - GTypeClass parent_class; - void (*finalize) (PluginsNotifier *self); -}; - -struct _PluginsParamSpecNotifier { - GParamSpec parent_instance; -}; - -typedef enum { - PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL = 1 << 0, - PREPARE_INPUT_TEXT_OPTIONS_VALIDATE = 1 << 1, - PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL = 1 << 2, - PREPARE_INPUT_TEXT_OPTIONS_STRIP = 1 << 3, - PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF = 1 << 4, - PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE = 1 << 5, - PREPARE_INPUT_TEXT_OPTIONS_DEFAULT = ((((PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE -} PrepareInputTextOptions; - - -static gpointer plugins_extension_point_parent_class = NULL; -static gpointer plugins_module_rep_parent_class = NULL; -static gpointer plugins_pluggable_rep_parent_class = NULL; -extern GFile** plugins_search_dirs; -extern gint plugins_search_dirs_length1; -GFile** plugins_search_dirs = NULL; -gint plugins_search_dirs_length1 = 0; -static gint _plugins_search_dirs_size_ = 0; -extern GeeHashMap* plugins_module_table; -GeeHashMap* plugins_module_table = NULL; -extern GeeHashMap* plugins_pluggable_table; -GeeHashMap* plugins_pluggable_table = NULL; -extern GeeHashMap* plugins_extension_points; -GeeHashMap* plugins_extension_points = NULL; -extern GeeHashSet* plugins_core_ids; -GeeHashSet* plugins_core_ids = NULL; -static gpointer plugins_notifier_parent_class = NULL; -static PluginsNotifier* plugins_notifier_instance; -static PluginsNotifier* plugins_notifier_instance = NULL; - -#define PLUGINS_MIN_SPIT_INTERFACE 0 -#define PLUGINS_MAX_SPIT_INTERFACE 0 -gpointer plugins_extension_point_ref (gpointer instance); -void plugins_extension_point_unref (gpointer instance); -GParamSpec* plugins_param_spec_extension_point (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void plugins_value_set_extension_point (GValue* value, - gpointer v_object); -void plugins_value_take_extension_point (GValue* value, - gpointer v_object); -gpointer plugins_value_get_extension_point (const GValue* value); -GType plugins_extension_point_get_type (void) G_GNUC_CONST; -#define PLUGINS_EXTENSION_POINT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPointPrivate)) -PluginsExtensionPoint* plugins_extension_point_new (GType pluggable_type, - const gchar* name, - const gchar* icon_name, - gchar** core_ids, - int core_ids_length1); -PluginsExtensionPoint* plugins_extension_point_construct (GType object_type, - GType pluggable_type, - const gchar* name, - const gchar* icon_name, - gchar** core_ids, - int core_ids_length1); -static void plugins_extension_point_set_pluggable_type (PluginsExtensionPoint* self, - GType value); -static void plugins_extension_point_set_name (PluginsExtensionPoint* self, - const gchar* value); -static void plugins_extension_point_set_icon_name (PluginsExtensionPoint* self, - const gchar* value); -static void plugins_extension_point_set_core_ids (PluginsExtensionPoint* self, - gchar** value, - int value_length1); -GType plugins_extension_point_get_pluggable_type (PluginsExtensionPoint* self); -const gchar* plugins_extension_point_get_name (PluginsExtensionPoint* self); -const gchar* plugins_extension_point_get_icon_name (PluginsExtensionPoint* self); -gchar** plugins_extension_point_get_core_ids (PluginsExtensionPoint* self, - int* result_length1); -static gchar** _vala_array_dup16 (gchar** self, - int length); -static void plugins_extension_point_finalize (PluginsExtensionPoint * obj); -gpointer plugins_module_rep_ref (gpointer instance); -void plugins_module_rep_unref (gpointer instance); -GParamSpec* plugins_param_spec_module_rep (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void plugins_value_set_module_rep (GValue* value, - gpointer v_object); -void plugins_value_take_module_rep (GValue* value, - gpointer v_object); -gpointer plugins_value_get_module_rep (const GValue* value); -GType plugins_module_rep_get_type (void) G_GNUC_CONST; -static PluginsModuleRep* plugins_module_rep_new (GFile* file); -static PluginsModuleRep* plugins_module_rep_construct (GType object_type, - GFile* file); -PluginsModuleRep* plugins_module_rep_open (GFile* file); -static void plugins_module_rep_finalize (PluginsModuleRep * obj); -gpointer plugins_pluggable_rep_ref (gpointer instance); -void plugins_pluggable_rep_unref (gpointer instance); -GParamSpec* plugins_param_spec_pluggable_rep (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void plugins_value_set_pluggable_rep (GValue* value, - gpointer v_object); -void plugins_value_take_pluggable_rep (GValue* value, - gpointer v_object); -gpointer plugins_value_get_pluggable_rep (const GValue* value); -GType plugins_pluggable_rep_get_type (void) G_GNUC_CONST; -#define PLUGINS_PLUGGABLE_REP_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUGINS_TYPE_PLUGGABLE_REP, PluginsPluggableRepPrivate)) -PluginsPluggableRep* plugins_pluggable_rep_new (SpitPluggable* pluggable); -PluginsPluggableRep* plugins_pluggable_rep_construct (GType object_type, - SpitPluggable* pluggable); -static void plugins_pluggable_rep_set_pluggable (PluginsPluggableRep* self, - SpitPluggable* value); -static void plugins_pluggable_rep_set_id (PluginsPluggableRep* self, - const gchar* value); -void plugins_pluggable_rep_activate (PluginsPluggableRep* self); -gboolean plugins_is_core_pluggable (SpitPluggable* pluggable); -SpitPluggable* plugins_pluggable_rep_get_pluggable (PluginsPluggableRep* self); -static void plugins_pluggable_rep_set_is_core (PluginsPluggableRep* self, - gboolean value); -GType fuzzy_property_state_get_type (void) G_GNUC_CONST; -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -FuzzyPropertyState configuration_facade_is_plugin_enabled (ConfigurationFacade* self, - const gchar* id); -const gchar* plugins_pluggable_rep_get_id (PluginsPluggableRep* self); -gboolean plugins_pluggable_rep_get_is_core (PluginsPluggableRep* self); -static void plugins_pluggable_rep_set_activated (PluginsPluggableRep* self, - gboolean value); -gboolean plugins_pluggable_rep_is_enabled (PluginsPluggableRep* self); -gboolean plugins_pluggable_rep_set_enabled (PluginsPluggableRep* self, - gboolean enabled); -void configuration_facade_set_plugin_enabled (ConfigurationFacade* self, - const gchar* id, - gboolean enabled); -gboolean plugins_pluggable_rep_get_activated (PluginsPluggableRep* self); -static void plugins_pluggable_rep_finalize (PluginsPluggableRep * obj); -void plugins_init (GError** error); -GFile* app_dirs_get_user_plugins_dir (void); -static void _vala_array_add50 (GFile** * array, - int* length, - int* size, - GFile* value); -GFile* app_dirs_get_system_plugins_dir (void); -static void _vala_array_add51 (GFile** * array, - int* length, - int* size, - GFile* value); -void plugins_search_for_plugins (GFile* dir, - GError** error); -void plugins_terminate (void); -gpointer plugins_notifier_ref (gpointer instance); -void plugins_notifier_unref (gpointer instance); -GParamSpec* plugins_param_spec_notifier (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void plugins_value_set_notifier (GValue* value, - gpointer v_object); -void plugins_value_take_notifier (GValue* value, - gpointer v_object); -gpointer plugins_value_get_notifier (const GValue* value); -GType plugins_notifier_get_type (void) G_GNUC_CONST; -static PluginsNotifier* plugins_notifier_new (void); -static PluginsNotifier* plugins_notifier_construct (GType object_type); -PluginsNotifier* plugins_notifier_get_instance (void); -static void g_cclosure_user_marshal_VOID__OBJECT_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void plugins_notifier_finalize (PluginsNotifier * obj); -void plugins_register_extension_point (GType type, - const gchar* name, - const gchar* icon_name, - gchar** core_ids, - int core_ids_length1); -GeeCollection* plugins_get_pluggables (gboolean include_disabled); -PluginsModuleRep* plugins_get_module_for_pluggable (SpitPluggable* needle); -static SpitPluggable** _vala_array_dup17 (SpitPluggable** self, - int length); -gchar* plugins_get_pluggable_module_id (SpitPluggable* needle); -GeeCollection* plugins_get_extension_points (GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify); -GeeCollection* plugins_get_pluggables_for_type (GType type, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify, - gboolean include_disabled); -gchar* plugins_get_pluggable_name (const gchar* id); -gboolean plugins_get_pluggable_info (const gchar* id, - SpitPluggableInfo* info); -gboolean plugins_get_pluggable_enabled (const gchar* id, - gboolean* enabled); -void plugins_set_pluggable_enabled (const gchar* id, - gboolean enabled); -GFile* plugins_get_pluggable_module_file (SpitPluggable* pluggable); -gint plugins_compare_pluggable_names (void* a, - void* b); -gint plugins_compare_extension_point_names (void* a, - void* b); -gboolean plugins_is_shared_library (GFile* file); -void disassemble_filename (const gchar* basename, - gchar* * name, - gchar* * ext); -#define UTIL_FILE_ATTRIBUTES "standard::*,time::*,id::file,id::filesystem,etag::value" -void plugins_load_module (GFile* file); -GType prepare_input_text_options_get_type (void) G_GNUC_CONST; -gchar* prepare_input_text (const gchar* text, - PrepareInputTextOptions options, - gint dest_length); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - -const gchar* PLUGINS_SHARED_LIB_EXTS[2] = {"so", "la"}; - -PluginsExtensionPoint* -plugins_extension_point_construct (GType object_type, - GType pluggable_type, - const gchar* name, - const gchar* icon_name, - gchar** core_ids, - int core_ids_length1) -{ - PluginsExtensionPoint* self = NULL; -#line 25 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 25 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self = (PluginsExtensionPoint*) g_type_create_instance (object_type); -#line 26 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_set_pluggable_type (self, pluggable_type); -#line 27 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_set_name (self, name); -#line 28 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_set_icon_name (self, icon_name); -#line 29 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_set_core_ids (self, core_ids, core_ids_length1); -#line 25 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return self; -#line 446 "Plugins.c" -} - - -PluginsExtensionPoint* -plugins_extension_point_new (GType pluggable_type, - const gchar* name, - const gchar* icon_name, - gchar** core_ids, - int core_ids_length1) -{ -#line 25 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return plugins_extension_point_construct (PLUGINS_TYPE_EXTENSION_POINT, pluggable_type, name, icon_name, core_ids, core_ids_length1); -#line 459 "Plugins.c" -} - - -GType -plugins_extension_point_get_pluggable_type (PluginsExtensionPoint* self) -{ - GType result; - GType _tmp0_; -#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_EXTENSION_POINT (self), 0UL); -#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_pluggable_type; -#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp0_; -#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 476 "Plugins.c" -} - - -static void -plugins_extension_point_set_pluggable_type (PluginsExtensionPoint* self, - GType value) -{ -#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_EXTENSION_POINT (self)); -#line 19 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_pluggable_type = value; -#line 488 "Plugins.c" -} - - -const gchar* -plugins_extension_point_get_name (PluginsExtensionPoint* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_EXTENSION_POINT (self), NULL); -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_name; -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 505 "Plugins.c" -} - - -static void -plugins_extension_point_set_name (PluginsExtensionPoint* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_EXTENSION_POINT (self)); -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = g_strdup (value); -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (self->priv->_name); -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_name = _tmp0_; -#line 522 "Plugins.c" -} - - -const gchar* -plugins_extension_point_get_icon_name (PluginsExtensionPoint* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_EXTENSION_POINT (self), NULL); -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_icon_name; -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp0_; -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 539 "Plugins.c" -} - - -static void -plugins_extension_point_set_icon_name (PluginsExtensionPoint* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_EXTENSION_POINT (self)); -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = g_strdup (value); -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (self->priv->_icon_name); -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_icon_name = _tmp0_; -#line 556 "Plugins.c" -} - - -gchar** -plugins_extension_point_get_core_ids (PluginsExtensionPoint* self, - int* result_length1) -{ - gchar** result; - gchar** _tmp0_; - gint _tmp0__length1; - gchar** _tmp1_; - gint _tmp1__length1; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_EXTENSION_POINT (self), NULL); -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_core_ids; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0__length1 = self->priv->_core_ids_length1; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = _tmp0_; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1__length1 = _tmp0__length1; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (result_length1) { -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *result_length1 = _tmp1__length1; -#line 583 "Plugins.c" - } -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp1_; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 589 "Plugins.c" -} - - -static gchar** -_vala_array_dup16 (gchar** self, - int length) -{ - gchar** result; - int i; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = g_new0 (gchar*, length + 1); -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - for (i = 0; i < length; i++) { -#line 603 "Plugins.c" - gchar* _tmp0_; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = g_strdup (self[i]); -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result[i] = _tmp0_; -#line 609 "Plugins.c" - } -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 613 "Plugins.c" -} - - -static void -plugins_extension_point_set_core_ids (PluginsExtensionPoint* self, - gchar** value, - int value_length1) -{ - gchar** _tmp0_; - gint _tmp0__length1; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_EXTENSION_POINT (self)); -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = (value != NULL) ? _vala_array_dup16 (value, value_length1) : ((gpointer) value); -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0__length1 = value_length1; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_core_ids = (_vala_array_free (self->priv->_core_ids, self->priv->_core_ids_length1, (GDestroyNotify) g_free), NULL); -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_core_ids = _tmp0_; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_core_ids_length1 = _tmp0__length1; -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->__core_ids_size_ = self->priv->_core_ids_length1; -#line 638 "Plugins.c" -} - - -static void -plugins_value_extension_point_init (GValue* value) -{ -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 647 "Plugins.c" -} - - -static void -plugins_value_extension_point_free_value (GValue* value) -{ -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (value->data[0].v_pointer) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_unref (value->data[0].v_pointer); -#line 658 "Plugins.c" - } -} - - -static void -plugins_value_extension_point_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (src_value->data[0].v_pointer) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dest_value->data[0].v_pointer = plugins_extension_point_ref (src_value->data[0].v_pointer); -#line 671 "Plugins.c" - } else { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dest_value->data[0].v_pointer = NULL; -#line 675 "Plugins.c" - } -} - - -static gpointer -plugins_value_extension_point_peek_pointer (const GValue* value) -{ -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return value->data[0].v_pointer; -#line 685 "Plugins.c" -} - - -static gchar* -plugins_value_extension_point_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (collect_values[0].v_pointer) { -#line 697 "Plugins.c" - PluginsExtensionPoint * object; - object = collect_values[0].v_pointer; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (object->parent_instance.g_class == NULL) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 704 "Plugins.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 708 "Plugins.c" - } -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = plugins_extension_point_ref (object); -#line 712 "Plugins.c" - } else { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 716 "Plugins.c" - } -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return NULL; -#line 720 "Plugins.c" -} - - -static gchar* -plugins_value_extension_point_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PluginsExtensionPoint ** object_p; - object_p = collect_values[0].v_pointer; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!object_p) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 736 "Plugins.c" - } -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!value->data[0].v_pointer) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = NULL; -#line 742 "Plugins.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = value->data[0].v_pointer; -#line 746 "Plugins.c" - } else { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = plugins_extension_point_ref (value->data[0].v_pointer); -#line 750 "Plugins.c" - } -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return NULL; -#line 754 "Plugins.c" -} - - -GParamSpec* -plugins_param_spec_extension_point (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PluginsParamSpecExtensionPoint* spec; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (g_type_is_a (object_type, PLUGINS_TYPE_EXTENSION_POINT), NULL); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return G_PARAM_SPEC (spec); -#line 774 "Plugins.c" -} - - -gpointer -plugins_value_get_extension_point (const GValue* value) -{ -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_EXTENSION_POINT), NULL); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return value->data[0].v_pointer; -#line 785 "Plugins.c" -} - - -void -plugins_value_set_extension_point (GValue* value, - gpointer v_object) -{ - PluginsExtensionPoint * old; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_EXTENSION_POINT)); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - old = value->data[0].v_pointer; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (v_object) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_EXTENSION_POINT)); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = v_object; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_ref (value->data[0].v_pointer); -#line 808 "Plugins.c" - } else { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 812 "Plugins.c" - } -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (old) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_unref (old); -#line 818 "Plugins.c" - } -} - - -void -plugins_value_take_extension_point (GValue* value, - gpointer v_object) -{ - PluginsExtensionPoint * old; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_EXTENSION_POINT)); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - old = value->data[0].v_pointer; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (v_object) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_EXTENSION_POINT)); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = v_object; -#line 840 "Plugins.c" - } else { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 844 "Plugins.c" - } -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (old) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_unref (old); -#line 850 "Plugins.c" - } -} - - -static void -plugins_extension_point_class_init (PluginsExtensionPointClass * klass) -{ -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_point_parent_class = g_type_class_peek_parent (klass); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - ((PluginsExtensionPointClass *) klass)->finalize = plugins_extension_point_finalize; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_type_class_add_private (klass, sizeof (PluginsExtensionPointPrivate)); -#line 864 "Plugins.c" -} - - -static void -plugins_extension_point_instance_init (PluginsExtensionPoint * self) -{ -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv = PLUGINS_EXTENSION_POINT_GET_PRIVATE (self); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->ref_count = 1; -#line 875 "Plugins.c" -} - - -static void -plugins_extension_point_finalize (PluginsExtensionPoint * obj) -{ - PluginsExtensionPoint * self; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPoint); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_signal_handlers_destroy (self); -#line 21 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (self->priv->_name); -#line 22 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (self->priv->_icon_name); -#line 23 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_core_ids = (_vala_array_free (self->priv->_core_ids, self->priv->_core_ids_length1, (GDestroyNotify) g_free), NULL); -#line 893 "Plugins.c" -} - - -GType -plugins_extension_point_get_type (void) -{ - static volatile gsize plugins_extension_point_type_id__volatile = 0; - if (g_once_init_enter (&plugins_extension_point_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { plugins_value_extension_point_init, plugins_value_extension_point_free_value, plugins_value_extension_point_copy_value, plugins_value_extension_point_peek_pointer, "p", plugins_value_extension_point_collect_value, "p", plugins_value_extension_point_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PluginsExtensionPointClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_extension_point_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsExtensionPoint), 0, (GInstanceInitFunc) plugins_extension_point_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType plugins_extension_point_type_id; - plugins_extension_point_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PluginsExtensionPoint", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&plugins_extension_point_type_id__volatile, plugins_extension_point_type_id); - } - return plugins_extension_point_type_id__volatile; -} - - -gpointer -plugins_extension_point_ref (gpointer instance) -{ - PluginsExtensionPoint * self; - self = instance; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_atomic_int_inc (&self->ref_count); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return instance; -#line 922 "Plugins.c" -} - - -void -plugins_extension_point_unref (gpointer instance) -{ - PluginsExtensionPoint * self; - self = instance; -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - PLUGINS_EXTENSION_POINT_GET_CLASS (self)->finalize (self); -#line 18 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 937 "Plugins.c" - } -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 41 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return self ? g_object_ref (self) : NULL; -#line 947 "Plugins.c" -} - - -static PluginsModuleRep* -plugins_module_rep_construct (GType object_type, - GFile* file) -{ - PluginsModuleRep* self = NULL; - GFile* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - GModule* _tmp3_; -#line 40 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 40 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self = (PluginsModuleRep*) g_type_create_instance (object_type); -#line 41 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = _g_object_ref0 (file); -#line 41 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (self->file); -#line 41 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->file = _tmp0_; -#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = g_file_get_path (file); -#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = _tmp1_; -#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = g_module_open (_tmp2_, G_MODULE_BIND_LAZY); -#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_module_close0 (self->module); -#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->module = _tmp3_; -#line 43 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp2_); -#line 40 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return self; -#line 984 "Plugins.c" -} - - -static PluginsModuleRep* -plugins_module_rep_new (GFile* file) -{ -#line 40 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return plugins_module_rep_construct (PLUGINS_TYPE_MODULE_REP, file); -#line 993 "Plugins.c" -} - - -static gpointer -_plugins_module_rep_ref0 (gpointer self) -{ -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return self ? plugins_module_rep_ref (self) : NULL; -#line 1002 "Plugins.c" -} - - -PluginsModuleRep* -plugins_module_rep_open (GFile* file) -{ - PluginsModuleRep* result = NULL; - PluginsModuleRep* module_rep = NULL; - PluginsModuleRep* _tmp0_; - PluginsModuleRep* _tmp1_ = NULL; - PluginsModuleRep* _tmp2_; - GModule* _tmp3_; - PluginsModuleRep* _tmp5_; -#line 54 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 55 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_module_rep_new (file); -#line 55 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - module_rep = _tmp0_; -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = module_rep; -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = _tmp2_->module; -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp3_ != NULL) { -#line 1028 "Plugins.c" - PluginsModuleRep* _tmp4_; -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = module_rep; -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = _tmp4_; -#line 1034 "Plugins.c" - } else { -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = NULL; -#line 1038 "Plugins.c" - } -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = _plugins_module_rep_ref0 (_tmp1_); -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp5_; -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 57 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 1048 "Plugins.c" -} - - -static void -plugins_value_module_rep_init (GValue* value) -{ -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 1057 "Plugins.c" -} - - -static void -plugins_value_module_rep_free_value (GValue* value) -{ -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (value->data[0].v_pointer) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_module_rep_unref (value->data[0].v_pointer); -#line 1068 "Plugins.c" - } -} - - -static void -plugins_value_module_rep_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (src_value->data[0].v_pointer) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dest_value->data[0].v_pointer = plugins_module_rep_ref (src_value->data[0].v_pointer); -#line 1081 "Plugins.c" - } else { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dest_value->data[0].v_pointer = NULL; -#line 1085 "Plugins.c" - } -} - - -static gpointer -plugins_value_module_rep_peek_pointer (const GValue* value) -{ -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return value->data[0].v_pointer; -#line 1095 "Plugins.c" -} - - -static gchar* -plugins_value_module_rep_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (collect_values[0].v_pointer) { -#line 1107 "Plugins.c" - PluginsModuleRep * object; - object = collect_values[0].v_pointer; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (object->parent_instance.g_class == NULL) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1114 "Plugins.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1118 "Plugins.c" - } -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = plugins_module_rep_ref (object); -#line 1122 "Plugins.c" - } else { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 1126 "Plugins.c" - } -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return NULL; -#line 1130 "Plugins.c" -} - - -static gchar* -plugins_value_module_rep_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PluginsModuleRep ** object_p; - object_p = collect_values[0].v_pointer; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!object_p) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1146 "Plugins.c" - } -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!value->data[0].v_pointer) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = NULL; -#line 1152 "Plugins.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = value->data[0].v_pointer; -#line 1156 "Plugins.c" - } else { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = plugins_module_rep_ref (value->data[0].v_pointer); -#line 1160 "Plugins.c" - } -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return NULL; -#line 1164 "Plugins.c" -} - - -GParamSpec* -plugins_param_spec_module_rep (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PluginsParamSpecModuleRep* spec; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (g_type_is_a (object_type, PLUGINS_TYPE_MODULE_REP), NULL); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return G_PARAM_SPEC (spec); -#line 1184 "Plugins.c" -} - - -gpointer -plugins_value_get_module_rep (const GValue* value) -{ -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_MODULE_REP), NULL); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return value->data[0].v_pointer; -#line 1195 "Plugins.c" -} - - -void -plugins_value_set_module_rep (GValue* value, - gpointer v_object) -{ - PluginsModuleRep * old; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_MODULE_REP)); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - old = value->data[0].v_pointer; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (v_object) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_MODULE_REP)); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = v_object; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_module_rep_ref (value->data[0].v_pointer); -#line 1218 "Plugins.c" - } else { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 1222 "Plugins.c" - } -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (old) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_module_rep_unref (old); -#line 1228 "Plugins.c" - } -} - - -void -plugins_value_take_module_rep (GValue* value, - gpointer v_object) -{ - PluginsModuleRep * old; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_MODULE_REP)); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - old = value->data[0].v_pointer; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (v_object) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_MODULE_REP)); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = v_object; -#line 1250 "Plugins.c" - } else { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 1254 "Plugins.c" - } -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (old) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_module_rep_unref (old); -#line 1260 "Plugins.c" - } -} - - -static void -plugins_module_rep_class_init (PluginsModuleRepClass * klass) -{ -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_module_rep_parent_class = g_type_class_peek_parent (klass); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - ((PluginsModuleRepClass *) klass)->finalize = plugins_module_rep_finalize; -#line 1272 "Plugins.c" -} - - -static void -plugins_module_rep_instance_init (PluginsModuleRep * self) -{ -#line 36 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->spit_module = NULL; -#line 37 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->spit_interface = SPIT_UNSUPPORTED_INTERFACE; -#line 38 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->id = NULL; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->ref_count = 1; -#line 1287 "Plugins.c" -} - - -static void -plugins_module_rep_finalize (PluginsModuleRep * obj) -{ - PluginsModuleRep * self; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_MODULE_REP, PluginsModuleRep); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_signal_handlers_destroy (self); -#line 48 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (self->spit_module); -#line 48 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->spit_module = NULL; -#line 34 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (self->file); -#line 35 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_module_close0 (self->module); -#line 36 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (self->spit_module); -#line 38 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (self->id); -#line 1311 "Plugins.c" -} - - -GType -plugins_module_rep_get_type (void) -{ - static volatile gsize plugins_module_rep_type_id__volatile = 0; - if (g_once_init_enter (&plugins_module_rep_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { plugins_value_module_rep_init, plugins_value_module_rep_free_value, plugins_value_module_rep_copy_value, plugins_value_module_rep_peek_pointer, "p", plugins_value_module_rep_collect_value, "p", plugins_value_module_rep_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PluginsModuleRepClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_module_rep_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsModuleRep), 0, (GInstanceInitFunc) plugins_module_rep_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType plugins_module_rep_type_id; - plugins_module_rep_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PluginsModuleRep", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&plugins_module_rep_type_id__volatile, plugins_module_rep_type_id); - } - return plugins_module_rep_type_id__volatile; -} - - -gpointer -plugins_module_rep_ref (gpointer instance) -{ - PluginsModuleRep * self; - self = instance; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_atomic_int_inc (&self->ref_count); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return instance; -#line 1340 "Plugins.c" -} - - -void -plugins_module_rep_unref (gpointer instance) -{ - PluginsModuleRep * self; - self = instance; -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - PLUGINS_MODULE_REP_GET_CLASS (self)->finalize (self); -#line 33 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1355 "Plugins.c" - } -} - - -PluginsPluggableRep* -plugins_pluggable_rep_construct (GType object_type, - SpitPluggable* pluggable) -{ - PluginsPluggableRep* self = NULL; - const gchar* _tmp0_; -#line 70 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (pluggable), NULL); -#line 70 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self = (PluginsPluggableRep*) g_type_create_instance (object_type); -#line 71 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_set_pluggable (self, pluggable); -#line 72 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = spit_pluggable_get_id (pluggable); -#line 72 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_set_id (self, _tmp0_); -#line 70 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return self; -#line 1378 "Plugins.c" -} - - -PluginsPluggableRep* -plugins_pluggable_rep_new (SpitPluggable* pluggable) -{ -#line 70 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return plugins_pluggable_rep_construct (PLUGINS_TYPE_PLUGGABLE_REP, pluggable); -#line 1387 "Plugins.c" -} - - -void -plugins_pluggable_rep_activate (PluginsPluggableRep* self) -{ - SpitPluggable* _tmp0_; - FuzzyPropertyState saved_state = 0; - ConfigFacade* _tmp1_; - ConfigFacade* _tmp2_; - const gchar* _tmp3_; - FuzzyPropertyState _tmp4_; - gboolean _tmp5_ = FALSE; - gboolean _tmp6_ = FALSE; - gboolean _tmp7_; - SpitPluggable* _tmp12_; - gboolean _tmp13_; -#line 75 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_PLUGGABLE_REP (self)); -#line 78 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_pluggable; -#line 78 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_set_is_core (self, plugins_is_core_pluggable (_tmp0_)); -#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = config_facade_get_instance (); -#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = _tmp1_; -#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = self->priv->_id; -#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = configuration_facade_is_plugin_enabled (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp3_); -#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp2_); -#line 80 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - saved_state = _tmp4_; -#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = self->priv->_is_core; -#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp7_) { -#line 1427 "Plugins.c" - FuzzyPropertyState _tmp8_; -#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = saved_state; -#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = _tmp8_ != FUZZY_PROPERTY_STATE_DISABLED; -#line 1433 "Plugins.c" - } else { -#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = FALSE; -#line 1437 "Plugins.c" - } -#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp6_) { -#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = TRUE; -#line 1443 "Plugins.c" - } else { - gboolean _tmp9_ = FALSE; - gboolean _tmp10_; -#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = self->priv->_is_core; -#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!_tmp10_) { -#line 1451 "Plugins.c" - FuzzyPropertyState _tmp11_; -#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = saved_state; -#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = _tmp11_ == FUZZY_PROPERTY_STATE_ENABLED; -#line 1457 "Plugins.c" - } else { -#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = FALSE; -#line 1461 "Plugins.c" - } -#line 82 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = _tmp9_; -#line 1465 "Plugins.c" - } -#line 81 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->enabled = _tmp5_; -#line 85 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = self->priv->_pluggable; -#line 85 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = self->priv->enabled; -#line 85 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_pluggable_activation (_tmp12_, _tmp13_); -#line 87 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_set_activated (self, TRUE); -#line 1477 "Plugins.c" -} - - -gboolean -plugins_pluggable_rep_is_enabled (PluginsPluggableRep* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 90 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), FALSE); -#line 91 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->enabled; -#line 91 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp0_; -#line 91 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 1494 "Plugins.c" -} - - -gboolean -plugins_pluggable_rep_set_enabled (PluginsPluggableRep* self, - gboolean enabled) -{ - gboolean result = FALSE; - gboolean _tmp0_; - ConfigFacade* _tmp1_; - ConfigFacade* _tmp2_; - const gchar* _tmp3_; - SpitPluggable* _tmp4_; -#line 95 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), FALSE); -#line 96 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->enabled; -#line 96 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (enabled == _tmp0_) { -#line 97 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = FALSE; -#line 97 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 1518 "Plugins.c" - } -#line 99 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->enabled = enabled; -#line 100 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = config_facade_get_instance (); -#line 100 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = _tmp1_; -#line 100 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = self->priv->_id; -#line 100 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - configuration_facade_set_plugin_enabled (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp3_, enabled); -#line 100 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp2_); -#line 101 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = self->priv->_pluggable; -#line 101 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_pluggable_activation (_tmp4_, enabled); -#line 103 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = TRUE; -#line 103 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 1540 "Plugins.c" -} - - -SpitPluggable* -plugins_pluggable_rep_get_pluggable (PluginsPluggableRep* self) -{ - SpitPluggable* result; - SpitPluggable* _tmp0_; -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), NULL); -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_pluggable; -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp0_; -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 1557 "Plugins.c" -} - - -static void -plugins_pluggable_rep_set_pluggable (PluginsPluggableRep* self, - SpitPluggable* value) -{ - SpitPluggable* _tmp0_; -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_PLUGGABLE_REP (self)); -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = _g_object_ref0 (value); -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (self->priv->_pluggable); -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_pluggable = _tmp0_; -#line 1574 "Plugins.c" -} - - -const gchar* -plugins_pluggable_rep_get_id (PluginsPluggableRep* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), NULL); -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_id; -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp0_; -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 1591 "Plugins.c" -} - - -static void -plugins_pluggable_rep_set_id (PluginsPluggableRep* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_PLUGGABLE_REP (self)); -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = g_strdup (value); -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (self->priv->_id); -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_id = _tmp0_; -#line 1608 "Plugins.c" -} - - -gboolean -plugins_pluggable_rep_get_is_core (PluginsPluggableRep* self) -{ - gboolean result; - gboolean _tmp0_; -#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), FALSE); -#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_is_core; -#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp0_; -#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 1625 "Plugins.c" -} - - -static void -plugins_pluggable_rep_set_is_core (PluginsPluggableRep* self, - gboolean value) -{ -#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_PLUGGABLE_REP (self)); -#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_is_core = value; -#line 1637 "Plugins.c" -} - - -gboolean -plugins_pluggable_rep_get_activated (PluginsPluggableRep* self) -{ - gboolean result; - gboolean _tmp0_; -#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (PLUGINS_IS_PLUGGABLE_REP (self), FALSE); -#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = self->priv->_activated; -#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp0_; -#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 1654 "Plugins.c" -} - - -static void -plugins_pluggable_rep_set_activated (PluginsPluggableRep* self, - gboolean value) -{ -#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (PLUGINS_IS_PLUGGABLE_REP (self)); -#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_activated = value; -#line 1666 "Plugins.c" -} - - -static void -plugins_value_pluggable_rep_init (GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 1675 "Plugins.c" -} - - -static void -plugins_value_pluggable_rep_free_value (GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (value->data[0].v_pointer) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_unref (value->data[0].v_pointer); -#line 1686 "Plugins.c" - } -} - - -static void -plugins_value_pluggable_rep_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (src_value->data[0].v_pointer) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dest_value->data[0].v_pointer = plugins_pluggable_rep_ref (src_value->data[0].v_pointer); -#line 1699 "Plugins.c" - } else { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dest_value->data[0].v_pointer = NULL; -#line 1703 "Plugins.c" - } -} - - -static gpointer -plugins_value_pluggable_rep_peek_pointer (const GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return value->data[0].v_pointer; -#line 1713 "Plugins.c" -} - - -static gchar* -plugins_value_pluggable_rep_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (collect_values[0].v_pointer) { -#line 1725 "Plugins.c" - PluginsPluggableRep * object; - object = collect_values[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (object->parent_instance.g_class == NULL) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1732 "Plugins.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1736 "Plugins.c" - } -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = plugins_pluggable_rep_ref (object); -#line 1740 "Plugins.c" - } else { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 1744 "Plugins.c" - } -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return NULL; -#line 1748 "Plugins.c" -} - - -static gchar* -plugins_value_pluggable_rep_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PluginsPluggableRep ** object_p; - object_p = collect_values[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!object_p) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1764 "Plugins.c" - } -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!value->data[0].v_pointer) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = NULL; -#line 1770 "Plugins.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = value->data[0].v_pointer; -#line 1774 "Plugins.c" - } else { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = plugins_pluggable_rep_ref (value->data[0].v_pointer); -#line 1778 "Plugins.c" - } -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return NULL; -#line 1782 "Plugins.c" -} - - -GParamSpec* -plugins_param_spec_pluggable_rep (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PluginsParamSpecPluggableRep* spec; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (g_type_is_a (object_type, PLUGINS_TYPE_PLUGGABLE_REP), NULL); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return G_PARAM_SPEC (spec); -#line 1802 "Plugins.c" -} - - -gpointer -plugins_value_get_pluggable_rep (const GValue* value) -{ -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_PLUGGABLE_REP), NULL); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return value->data[0].v_pointer; -#line 1813 "Plugins.c" -} - - -void -plugins_value_set_pluggable_rep (GValue* value, - gpointer v_object) -{ - PluginsPluggableRep * old; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_PLUGGABLE_REP)); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - old = value->data[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (v_object) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_PLUGGABLE_REP)); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = v_object; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_ref (value->data[0].v_pointer); -#line 1836 "Plugins.c" - } else { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 1840 "Plugins.c" - } -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (old) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_unref (old); -#line 1846 "Plugins.c" - } -} - - -void -plugins_value_take_pluggable_rep (GValue* value, - gpointer v_object) -{ - PluginsPluggableRep * old; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_PLUGGABLE_REP)); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - old = value->data[0].v_pointer; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (v_object) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_PLUGGABLE_REP)); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = v_object; -#line 1868 "Plugins.c" - } else { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 1872 "Plugins.c" - } -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (old) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_unref (old); -#line 1878 "Plugins.c" - } -} - - -static void -plugins_pluggable_rep_class_init (PluginsPluggableRepClass * klass) -{ -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_parent_class = g_type_class_peek_parent (klass); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - ((PluginsPluggableRepClass *) klass)->finalize = plugins_pluggable_rep_finalize; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_type_class_add_private (klass, sizeof (PluginsPluggableRepPrivate)); -#line 1892 "Plugins.c" -} - - -static void -plugins_pluggable_rep_instance_init (PluginsPluggableRep * self) -{ -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv = PLUGINS_PLUGGABLE_REP_GET_PRIVATE (self); -#line 64 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_is_core = FALSE; -#line 65 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->_activated = FALSE; -#line 67 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->priv->enabled = FALSE; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->ref_count = 1; -#line 1909 "Plugins.c" -} - - -static void -plugins_pluggable_rep_finalize (PluginsPluggableRep * obj) -{ - PluginsPluggableRep * self; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_PLUGGABLE_REP, PluginsPluggableRep); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_signal_handlers_destroy (self); -#line 62 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (self->priv->_pluggable); -#line 63 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (self->priv->_id); -#line 1925 "Plugins.c" -} - - -GType -plugins_pluggable_rep_get_type (void) -{ - static volatile gsize plugins_pluggable_rep_type_id__volatile = 0; - if (g_once_init_enter (&plugins_pluggable_rep_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { plugins_value_pluggable_rep_init, plugins_value_pluggable_rep_free_value, plugins_value_pluggable_rep_copy_value, plugins_value_pluggable_rep_peek_pointer, "p", plugins_value_pluggable_rep_collect_value, "p", plugins_value_pluggable_rep_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PluginsPluggableRepClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_pluggable_rep_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsPluggableRep), 0, (GInstanceInitFunc) plugins_pluggable_rep_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType plugins_pluggable_rep_type_id; - plugins_pluggable_rep_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PluginsPluggableRep", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&plugins_pluggable_rep_type_id__volatile, plugins_pluggable_rep_type_id); - } - return plugins_pluggable_rep_type_id__volatile; -} - - -gpointer -plugins_pluggable_rep_ref (gpointer instance) -{ - PluginsPluggableRep * self; - self = instance; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_atomic_int_inc (&self->ref_count); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return instance; -#line 1954 "Plugins.c" -} - - -void -plugins_pluggable_rep_unref (gpointer instance) -{ - PluginsPluggableRep * self; - self = instance; -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - PLUGINS_PLUGGABLE_REP_GET_CLASS (self)->finalize (self); -#line 61 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1969 "Plugins.c" - } -} - - -static void -_vala_array_add50 (GFile** * array, - int* length, - int* size, - GFile* value) -{ -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if ((*length) == (*size)) { -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *array = g_renew (GFile*, *array, (*size) + 1); -#line 1986 "Plugins.c" - } -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - (*array)[(*length)++] = value; -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - (*array)[*length] = NULL; -#line 1992 "Plugins.c" -} - - -static void -_vala_array_add51 (GFile** * array, - int* length, - int* size, - GFile* value) -{ -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if ((*length) == (*size)) { -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *array = g_renew (GFile*, *array, (*size) + 1); -#line 2008 "Plugins.c" - } -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - (*array)[(*length)++] = value; -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - (*array)[*length] = NULL; -#line 2014 "Plugins.c" -} - - -void -plugins_init (GError** error) -{ - GFile** _tmp0_; - GFile** _tmp1_; - gint _tmp1__length1; - GFile* _tmp2_; - GFile** _tmp3_; - gint _tmp3__length1; - GFile* _tmp4_; - GeeHashMap* _tmp5_; - GeeHashMap* _tmp6_; - GeeHashMap* _tmp7_; - GeeHashSet* _tmp8_; - GFile** _tmp9_; - gint _tmp9__length1; - GError * _inner_error_ = NULL; -#line 114 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = g_new0 (GFile*, 0 + 1); -#line 114 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_search_dirs = (_vala_array_free (plugins_search_dirs, plugins_search_dirs_length1, (GDestroyNotify) g_object_unref), NULL); -#line 114 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_search_dirs = _tmp0_; -#line 114 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_search_dirs_length1 = 0; -#line 114 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_search_dirs_size_ = plugins_search_dirs_length1; -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = plugins_search_dirs; -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1__length1 = plugins_search_dirs_length1; -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = app_dirs_get_user_plugins_dir (); -#line 115 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _vala_array_add50 (&plugins_search_dirs, &plugins_search_dirs_length1, &_plugins_search_dirs_size_, _tmp2_); -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = plugins_search_dirs; -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3__length1 = plugins_search_dirs_length1; -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = app_dirs_get_system_plugins_dir (); -#line 116 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _vala_array_add51 (&plugins_search_dirs, &plugins_search_dirs_length1, &_plugins_search_dirs_size_, _tmp4_); -#line 118 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, PLUGINS_TYPE_MODULE_REP, (GBoxedCopyFunc) plugins_module_rep_ref, (GDestroyNotify) plugins_module_rep_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 118 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (plugins_module_table); -#line 118 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_module_table = _tmp5_; -#line 119 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, PLUGINS_TYPE_PLUGGABLE_REP, (GBoxedCopyFunc) plugins_pluggable_rep_ref, (GDestroyNotify) plugins_pluggable_rep_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 119 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (plugins_pluggable_table); -#line 119 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_table = _tmp6_; -#line 120 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = gee_hash_map_new (G_TYPE_GTYPE, NULL, NULL, PLUGINS_TYPE_EXTENSION_POINT, (GBoxedCopyFunc) plugins_extension_point_ref, (GDestroyNotify) plugins_extension_point_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 120 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (plugins_extension_points); -#line 120 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_points = _tmp7_; -#line 121 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 121 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (plugins_core_ids); -#line 121 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_core_ids = _tmp8_; -#line 125 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!g_module_supported ()) { -#line 126 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_warning ("Plugins.vala:126: Plugins not support: GModule not supported on this p" \ -"latform."); -#line 128 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 2091 "Plugins.c" - } -#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = plugins_search_dirs; -#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9__length1 = plugins_search_dirs_length1; -#line 2097 "Plugins.c" - { - GFile** dir_collection = NULL; - gint dir_collection_length1 = 0; - gint _dir_collection_size_ = 0; - gint dir_it = 0; -#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dir_collection = _tmp9_; -#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dir_collection_length1 = _tmp9__length1; -#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - for (dir_it = 0; dir_it < _tmp9__length1; dir_it = dir_it + 1) { -#line 2109 "Plugins.c" - GFile* _tmp10_; - GFile* dir = NULL; -#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = _g_object_ref0 (dir_collection[dir_it]); -#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dir = _tmp10_; -#line 2116 "Plugins.c" - { - { - GFile* _tmp11_; -#line 133 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = dir; -#line 133 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_search_for_plugins (_tmp11_, &_inner_error_); -#line 133 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2126 "Plugins.c" - goto __catch39_g_error; - } - } - goto __finally39; - __catch39_g_error: - { - GError* err = NULL; - GFile* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - GError* _tmp15_; - const gchar* _tmp16_; -#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - err = _inner_error_; -#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _inner_error_ = NULL; -#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = dir; -#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = g_file_get_path (_tmp12_); -#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_ = _tmp13_; -#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp15_ = err; -#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp16_ = _tmp15_->message; -#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_debug ("Plugins.vala:135: Unable to search directory %s for plugins: %s", _tmp14_, _tmp16_); -#line 135 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp14_); -#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_error_free0 (err); -#line 2159 "Plugins.c" - } - __finally39: -#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_propagate_error (error, _inner_error_); -#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (dir); -#line 132 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 2170 "Plugins.c" - } -#line 131 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (dir); -#line 2174 "Plugins.c" - } - } - } -} - - -void -plugins_terminate (void) -{ -#line 141 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_search_dirs = (_vala_array_free (plugins_search_dirs, plugins_search_dirs_length1, (GDestroyNotify) g_object_unref), NULL); -#line 141 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_search_dirs = NULL; -#line 141 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_search_dirs_length1 = 0; -#line 141 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_search_dirs_size_ = plugins_search_dirs_length1; -#line 142 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (plugins_pluggable_table); -#line 142 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_table = NULL; -#line 143 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (plugins_module_table); -#line 143 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_module_table = NULL; -#line 144 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (plugins_extension_points); -#line 144 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_extension_points = NULL; -#line 145 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (plugins_core_ids); -#line 145 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_core_ids = NULL; -#line 2208 "Plugins.c" -} - - -static PluginsNotifier* -plugins_notifier_construct (GType object_type) -{ - PluginsNotifier* self = NULL; -#line 153 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self = (PluginsNotifier*) g_type_create_instance (object_type); -#line 153 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return self; -#line 2220 "Plugins.c" -} - - -static PluginsNotifier* -plugins_notifier_new (void) -{ -#line 153 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return plugins_notifier_construct (PLUGINS_TYPE_NOTIFIER); -#line 2229 "Plugins.c" -} - - -static gpointer -_plugins_notifier_ref0 (gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return self ? plugins_notifier_ref (self) : NULL; -#line 2238 "Plugins.c" -} - - -PluginsNotifier* -plugins_notifier_get_instance (void) -{ - PluginsNotifier* result = NULL; - PluginsNotifier* _tmp0_; - PluginsNotifier* _tmp2_; - PluginsNotifier* _tmp3_; -#line 157 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_notifier_instance; -#line 157 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp0_ == NULL) { -#line 2253 "Plugins.c" - PluginsNotifier* _tmp1_; -#line 158 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = plugins_notifier_new (); -#line 158 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_notifier_unref0 (plugins_notifier_instance); -#line 158 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_notifier_instance = _tmp1_; -#line 2261 "Plugins.c" - } -#line 160 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = plugins_notifier_instance; -#line 160 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = _plugins_notifier_ref0 (_tmp2_); -#line 160 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp3_; -#line 160 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 2271 "Plugins.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_BOOLEAN) (gpointer data1, gpointer arg_1, gboolean arg_2, gpointer data2); - register GMarshalFunc_VOID__OBJECT_BOOLEAN callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (n_param_values == 3); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - data1 = closure->data; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - data2 = param_values->data[0].v_pointer; -#line 2297 "Plugins.c" - } else { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - data1 = param_values->data[0].v_pointer; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - data2 = closure->data; -#line 2303 "Plugins.c" - } -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - callback = (GMarshalFunc_VOID__OBJECT_BOOLEAN) (marshal_data ? marshal_data : cc->callback); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_boolean (param_values + 2), data2); -#line 2309 "Plugins.c" -} - - -static void -plugins_value_notifier_init (GValue* value) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 2318 "Plugins.c" -} - - -static void -plugins_value_notifier_free_value (GValue* value) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (value->data[0].v_pointer) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_notifier_unref (value->data[0].v_pointer); -#line 2329 "Plugins.c" - } -} - - -static void -plugins_value_notifier_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (src_value->data[0].v_pointer) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dest_value->data[0].v_pointer = plugins_notifier_ref (src_value->data[0].v_pointer); -#line 2342 "Plugins.c" - } else { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - dest_value->data[0].v_pointer = NULL; -#line 2346 "Plugins.c" - } -} - - -static gpointer -plugins_value_notifier_peek_pointer (const GValue* value) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return value->data[0].v_pointer; -#line 2356 "Plugins.c" -} - - -static gchar* -plugins_value_notifier_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (collect_values[0].v_pointer) { -#line 2368 "Plugins.c" - PluginsNotifier * object; - object = collect_values[0].v_pointer; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (object->parent_instance.g_class == NULL) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2375 "Plugins.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2379 "Plugins.c" - } -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = plugins_notifier_ref (object); -#line 2383 "Plugins.c" - } else { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 2387 "Plugins.c" - } -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return NULL; -#line 2391 "Plugins.c" -} - - -static gchar* -plugins_value_notifier_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - PluginsNotifier ** object_p; - object_p = collect_values[0].v_pointer; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!object_p) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2407 "Plugins.c" - } -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!value->data[0].v_pointer) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = NULL; -#line 2413 "Plugins.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = value->data[0].v_pointer; -#line 2417 "Plugins.c" - } else { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *object_p = plugins_notifier_ref (value->data[0].v_pointer); -#line 2421 "Plugins.c" - } -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return NULL; -#line 2425 "Plugins.c" -} - - -GParamSpec* -plugins_param_spec_notifier (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - PluginsParamSpecNotifier* spec; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (g_type_is_a (object_type, PLUGINS_TYPE_NOTIFIER), NULL); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return G_PARAM_SPEC (spec); -#line 2445 "Plugins.c" -} - - -gpointer -plugins_value_get_notifier (const GValue* value) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_NOTIFIER), NULL); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return value->data[0].v_pointer; -#line 2456 "Plugins.c" -} - - -void -plugins_value_set_notifier (GValue* value, - gpointer v_object) -{ - PluginsNotifier * old; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_NOTIFIER)); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - old = value->data[0].v_pointer; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (v_object) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_NOTIFIER)); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = v_object; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_notifier_ref (value->data[0].v_pointer); -#line 2479 "Plugins.c" - } else { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 2483 "Plugins.c" - } -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (old) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_notifier_unref (old); -#line 2489 "Plugins.c" - } -} - - -void -plugins_value_take_notifier (GValue* value, - gpointer v_object) -{ - PluginsNotifier * old; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PLUGINS_TYPE_NOTIFIER)); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - old = value->data[0].v_pointer; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (v_object) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PLUGINS_TYPE_NOTIFIER)); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = v_object; -#line 2511 "Plugins.c" - } else { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - value->data[0].v_pointer = NULL; -#line 2515 "Plugins.c" - } -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (old) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_notifier_unref (old); -#line 2521 "Plugins.c" - } -} - - -static void -plugins_notifier_class_init (PluginsNotifierClass * klass) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_notifier_parent_class = g_type_class_peek_parent (klass); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - ((PluginsNotifierClass *) klass)->finalize = plugins_notifier_finalize; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_notifier_signals[PLUGINS_NOTIFIER_PLUGGABLE_ACTIVATION_SIGNAL] = g_signal_new ("pluggable-activation", PLUGINS_TYPE_NOTIFIER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_BOOLEAN, G_TYPE_NONE, 2, SPIT_TYPE_PLUGGABLE, G_TYPE_BOOLEAN); -#line 2535 "Plugins.c" -} - - -static void -plugins_notifier_instance_init (PluginsNotifier * self) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self->ref_count = 1; -#line 2544 "Plugins.c" -} - - -static void -plugins_notifier_finalize (PluginsNotifier * obj) -{ - PluginsNotifier * self; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_NOTIFIER, PluginsNotifier); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_signal_handlers_destroy (self); -#line 2556 "Plugins.c" -} - - -GType -plugins_notifier_get_type (void) -{ - static volatile gsize plugins_notifier_type_id__volatile = 0; - if (g_once_init_enter (&plugins_notifier_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { plugins_value_notifier_init, plugins_value_notifier_free_value, plugins_value_notifier_copy_value, plugins_value_notifier_peek_pointer, "p", plugins_value_notifier_collect_value, "p", plugins_value_notifier_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (PluginsNotifierClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_notifier_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsNotifier), 0, (GInstanceInitFunc) plugins_notifier_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType plugins_notifier_type_id; - plugins_notifier_type_id = g_type_register_fundamental (g_type_fundamental_next (), "PluginsNotifier", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&plugins_notifier_type_id__volatile, plugins_notifier_type_id); - } - return plugins_notifier_type_id__volatile; -} - - -gpointer -plugins_notifier_ref (gpointer instance) -{ - PluginsNotifier * self; - self = instance; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_atomic_int_inc (&self->ref_count); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return instance; -#line 2585 "Plugins.c" -} - - -void -plugins_notifier_unref (gpointer instance) -{ - PluginsNotifier * self; - self = instance; -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - PLUGINS_NOTIFIER_GET_CLASS (self)->finalize (self); -#line 148 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2600 "Plugins.c" - } -} - - -void -plugins_register_extension_point (GType type, - const gchar* name, - const gchar* icon_name, - gchar** core_ids, - int core_ids_length1) -{ - GeeHashMap* _tmp0_; - GeeHashMap* _tmp1_; - PluginsExtensionPoint* _tmp2_; - PluginsExtensionPoint* _tmp3_; -#line 164 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (name != NULL); -#line 166 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_extension_points; -#line 166 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) type)), "!extension_points.has_key(type)"); -#line 168 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = plugins_extension_points; -#line 168 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = plugins_extension_point_new (type, name, icon_name, core_ids, core_ids_length1); -#line 168 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = _tmp2_; -#line 168 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) type), _tmp3_); -#line 168 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_extension_point_unref0 (_tmp3_); -#line 171 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (core_ids != NULL) { -#line 2634 "Plugins.c" - { - gchar** core_id_collection = NULL; - gint core_id_collection_length1 = 0; - gint _core_id_collection_size_ = 0; - gint core_id_it = 0; -#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - core_id_collection = core_ids; -#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - core_id_collection_length1 = core_ids_length1; -#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - for (core_id_it = 0; core_id_it < core_ids_length1; core_id_it = core_id_it + 1) { -#line 2646 "Plugins.c" - gchar* _tmp4_; - gchar* core_id = NULL; -#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = g_strdup (core_id_collection[core_id_it]); -#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - core_id = _tmp4_; -#line 2653 "Plugins.c" - { - GeeHashSet* _tmp5_; - const gchar* _tmp6_; -#line 173 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = plugins_core_ids; -#line 173 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = core_id; -#line 173 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp6_); -#line 172 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (core_id); -#line 2665 "Plugins.c" - } - } - } - } - { - GeeIterator* _pluggable_rep_it = NULL; - GeeHashMap* _tmp7_; - GeeCollection* _tmp8_; - GeeCollection* _tmp9_; - GeeCollection* _tmp10_; - GeeIterator* _tmp11_; - GeeIterator* _tmp12_; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = plugins_pluggable_table; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = _tmp8_; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = _tmp9_; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = _tmp11_; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp10_); -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _pluggable_rep_it = _tmp12_; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - while (TRUE) { -#line 2696 "Plugins.c" - GeeIterator* _tmp13_; - PluginsPluggableRep* pluggable_rep = NULL; - GeeIterator* _tmp14_; - gpointer _tmp15_; - PluginsPluggableRep* _tmp16_; - SpitPluggable* _tmp17_; - SpitPluggable* _tmp18_; - PluginsPluggableRep* _tmp19_; - PluginsNotifier* _tmp20_; - PluginsNotifier* _tmp21_; - PluginsPluggableRep* _tmp22_; - SpitPluggable* _tmp23_; - SpitPluggable* _tmp24_; - PluginsPluggableRep* _tmp25_; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = _pluggable_rep_it; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!gee_iterator_next (_tmp13_)) { -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - break; -#line 2717 "Plugins.c" - } -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_ = _pluggable_rep_it; -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp15_ = gee_iterator_get (_tmp14_); -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_rep = (PluginsPluggableRep*) _tmp15_; -#line 178 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp16_ = pluggable_rep; -#line 178 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp17_ = plugins_pluggable_rep_get_pluggable (_tmp16_); -#line 178 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp18_ = _tmp17_; -#line 178 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!g_type_is_a (G_TYPE_FROM_INSTANCE (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, G_TYPE_OBJECT, GObject)), type)) { -#line 179 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 179 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - continue; -#line 2737 "Plugins.c" - } -#line 181 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp19_ = pluggable_rep; -#line 181 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_pluggable_rep_activate (_tmp19_); -#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp20_ = plugins_notifier_get_instance (); -#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp21_ = _tmp20_; -#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp22_ = pluggable_rep; -#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp23_ = plugins_pluggable_rep_get_pluggable (_tmp22_); -#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp24_ = _tmp23_; -#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp25_ = pluggable_rep; -#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_signal_emit (_tmp21_, plugins_notifier_signals[PLUGINS_NOTIFIER_PLUGGABLE_ACTIVATION_SIGNAL], 0, _tmp24_, plugins_pluggable_rep_is_enabled (_tmp25_)); -#line 182 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_notifier_unref0 (_tmp21_); -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 2761 "Plugins.c" - } -#line 177 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_pluggable_rep_it); -#line 2765 "Plugins.c" - } -} - - -GeeCollection* -plugins_get_pluggables (gboolean include_disabled) -{ - GeeCollection* result = NULL; - GeeCollection* all = NULL; - GeeHashSet* _tmp0_; -#line 187 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = gee_hash_set_new (SPIT_TYPE_PLUGGABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL); -#line 187 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - all = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection); -#line 2780 "Plugins.c" - { - GeeIterator* _pluggable_rep_it = NULL; - GeeHashMap* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeCollection* _tmp4_; - GeeIterator* _tmp5_; - GeeIterator* _tmp6_; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = plugins_pluggable_table; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = _tmp2_; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = _tmp3_; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = _tmp5_; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp4_); -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _pluggable_rep_it = _tmp6_; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - while (TRUE) { -#line 2807 "Plugins.c" - GeeIterator* _tmp7_; - PluginsPluggableRep* pluggable_rep = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; - gboolean _tmp10_ = FALSE; - PluginsPluggableRep* _tmp11_; - gboolean _tmp12_; - gboolean _tmp13_; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = _pluggable_rep_it; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!gee_iterator_next (_tmp7_)) { -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - break; -#line 2822 "Plugins.c" - } -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = _pluggable_rep_it; -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = gee_iterator_get (_tmp8_); -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_rep = (PluginsPluggableRep*) _tmp9_; -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = pluggable_rep; -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = plugins_pluggable_rep_get_activated (_tmp11_); -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = _tmp12_; -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp13_) { -#line 2838 "Plugins.c" - gboolean _tmp14_ = FALSE; -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (include_disabled) { -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_ = TRUE; -#line 2844 "Plugins.c" - } else { - PluginsPluggableRep* _tmp15_; -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp15_ = pluggable_rep; -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_ = plugins_pluggable_rep_is_enabled (_tmp15_); -#line 2851 "Plugins.c" - } -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = _tmp14_; -#line 2855 "Plugins.c" - } else { -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = FALSE; -#line 2859 "Plugins.c" - } -#line 189 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp10_) { -#line 2863 "Plugins.c" - GeeCollection* _tmp16_; - PluginsPluggableRep* _tmp17_; - SpitPluggable* _tmp18_; - SpitPluggable* _tmp19_; -#line 190 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp16_ = all; -#line 190 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp17_ = pluggable_rep; -#line 190 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp18_ = plugins_pluggable_rep_get_pluggable (_tmp17_); -#line 190 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp19_ = _tmp18_; -#line 190 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - gee_collection_add (_tmp16_, _tmp19_); -#line 2878 "Plugins.c" - } -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 2882 "Plugins.c" - } -#line 188 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_pluggable_rep_it); -#line 2886 "Plugins.c" - } -#line 193 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = all; -#line 193 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 2892 "Plugins.c" -} - - -gboolean -plugins_is_core_pluggable (SpitPluggable* pluggable) -{ - gboolean result = FALSE; - GeeHashSet* _tmp0_; - const gchar* _tmp1_; -#line 196 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (pluggable), FALSE); -#line 197 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_core_ids; -#line 197 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = spit_pluggable_get_id (pluggable); -#line 197 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = gee_abstract_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp1_); -#line 197 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 2912 "Plugins.c" -} - - -static SpitPluggable** -_vala_array_dup17 (SpitPluggable** self, - int length) -{ - SpitPluggable** result; - int i; -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = g_new0 (SpitPluggable*, length + 1); -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - for (i = 0; i < length; i++) { -#line 2926 "Plugins.c" - SpitPluggable* _tmp0_; -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result[i] = _tmp0_; -#line 2932 "Plugins.c" - } -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 2936 "Plugins.c" -} - - -PluginsModuleRep* -plugins_get_module_for_pluggable (SpitPluggable* needle) -{ - PluginsModuleRep* result = NULL; -#line 200 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (needle), NULL); -#line 2946 "Plugins.c" - { - GeeIterator* _module_rep_it = NULL; - GeeHashMap* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_module_table; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = _tmp1_; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = _tmp2_; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = _tmp4_; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp3_); -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _module_rep_it = _tmp5_; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - while (TRUE) { -#line 2973 "Plugins.c" - GeeIterator* _tmp6_; - PluginsModuleRep* module_rep = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - SpitPluggable** pluggables = NULL; - PluginsModuleRep* _tmp9_; - SpitModule* _tmp10_; - gint _tmp11_; - SpitPluggable** _tmp12_; - SpitPluggable** _tmp13_; - gint _tmp13__length1; - gint pluggables_length1; - gint _pluggables_size_; - SpitPluggable** _tmp14_; - gint _tmp14__length1; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = _module_rep_it; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - break; -#line 2995 "Plugins.c" - } -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = _module_rep_it; -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - module_rep = (PluginsModuleRep*) _tmp8_; -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = module_rep; -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = _tmp9_->spit_module; -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = spit_module_get_pluggables (_tmp10_, &_tmp11_); -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = (_tmp12_ != NULL) ? _vala_array_dup17 (_tmp12_, _tmp11_) : ((gpointer) _tmp12_); -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13__length1 = _tmp11_; -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggables = _tmp13_; -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggables_length1 = _tmp13__length1; -#line 202 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _pluggables_size_ = pluggables_length1; -#line 203 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_ = pluggables; -#line 203 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14__length1 = pluggables_length1; -#line 203 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp14_ != NULL) { -#line 3025 "Plugins.c" - SpitPluggable** _tmp15_; - gint _tmp15__length1; -#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp15_ = pluggables; -#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp15__length1 = pluggables_length1; -#line 3032 "Plugins.c" - { - SpitPluggable** pluggable_collection = NULL; - gint pluggable_collection_length1 = 0; - gint _pluggable_collection_size_ = 0; - gint pluggable_it = 0; -#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_collection = _tmp15_; -#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_collection_length1 = _tmp15__length1; -#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - for (pluggable_it = 0; pluggable_it < _tmp15__length1; pluggable_it = pluggable_it + 1) { -#line 3044 "Plugins.c" - SpitPluggable* _tmp16_; - SpitPluggable* pluggable = NULL; -#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp16_ = _g_object_ref0 (pluggable_collection[pluggable_it]); -#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable = _tmp16_; -#line 3051 "Plugins.c" - { - SpitPluggable* _tmp17_; -#line 205 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp17_ = pluggable; -#line 205 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp17_ == needle) { -#line 206 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = module_rep; -#line 206 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (pluggable); -#line 206 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggables = (_vala_array_free (pluggables, pluggables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 206 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_module_rep_it); -#line 206 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3068 "Plugins.c" - } -#line 204 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (pluggable); -#line 3072 "Plugins.c" - } - } - } - } -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggables = (_vala_array_free (pluggables, pluggables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 3081 "Plugins.c" - } -#line 201 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_module_rep_it); -#line 3085 "Plugins.c" - } -#line 211 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = NULL; -#line 211 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3091 "Plugins.c" -} - - -gchar* -plugins_get_pluggable_module_id (SpitPluggable* needle) -{ - gchar* result = NULL; - PluginsModuleRep* module_rep = NULL; - PluginsModuleRep* _tmp0_; - const gchar* _tmp1_ = NULL; - PluginsModuleRep* _tmp2_; - gchar* _tmp6_; -#line 214 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (needle), NULL); -#line 215 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_get_module_for_pluggable (needle); -#line 215 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - module_rep = _tmp0_; -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = module_rep; -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp2_ != NULL) { -#line 3114 "Plugins.c" - PluginsModuleRep* _tmp3_; - SpitModule* _tmp4_; - const gchar* _tmp5_; -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = module_rep; -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = _tmp3_->spit_module; -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = spit_module_get_id (_tmp4_); -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = _tmp5_; -#line 3126 "Plugins.c" - } else { -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = NULL; -#line 3130 "Plugins.c" - } -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = g_strdup (_tmp1_); -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp6_; -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 217 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3140 "Plugins.c" -} - - -GeeCollection* -plugins_get_extension_points (GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify) -{ - GeeCollection* result = NULL; - GeeCollection* sorted = NULL; - GCompareDataFunc _tmp0_; - void* _tmp0__target; - GDestroyNotify _tmp0__target_destroy_notify; - GeeTreeSet* _tmp1_; - GeeHashMap* _tmp2_; - GeeCollection* _tmp3_; - GeeCollection* _tmp4_; - GeeCollection* _tmp5_; -#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = compare_func; -#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0__target = compare_func_target; -#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0__target_destroy_notify = compare_func_target_destroy_notify; -#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func = NULL; -#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func_target = NULL; -#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func_target_destroy_notify = NULL; -#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = gee_tree_set_new (PLUGINS_TYPE_EXTENSION_POINT, (GBoxedCopyFunc) plugins_extension_point_ref, (GDestroyNotify) plugins_extension_point_unref, _tmp0_, _tmp0__target, _tmp0__target_destroy_notify); -#line 221 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - sorted = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection); -#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = plugins_extension_points; -#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = _tmp3_; -#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = _tmp4_; -#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - gee_collection_add_all (sorted, _tmp5_); -#line 222 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp5_); -#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = sorted; -#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL); -#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func = NULL; -#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func_target = NULL; -#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func_target_destroy_notify = NULL; -#line 224 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3199 "Plugins.c" -} - - -GeeCollection* -plugins_get_pluggables_for_type (GType type, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify, - gboolean include_disabled) -{ - GeeCollection* result = NULL; - GeeHashMap* _tmp0_; - GeeCollection* for_type = NULL; - GCompareDataFunc _tmp1_; - void* _tmp1__target; - GDestroyNotify _tmp1__target_destroy_notify; - GeeTreeSet* _tmp2_; -#line 230 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_extension_points; -#line 230 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) type)), "extension_points.has_key(type)"); -#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = compare_func; -#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1__target = compare_func_target; -#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1__target_destroy_notify = compare_func_target_destroy_notify; -#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func = NULL; -#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func_target = NULL; -#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func_target_destroy_notify = NULL; -#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = gee_tree_set_new (SPIT_TYPE_PLUGGABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tmp1_, _tmp1__target, _tmp1__target_destroy_notify); -#line 232 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - for_type = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 3237 "Plugins.c" - { - GeeIterator* _pluggable_rep_it = NULL; - GeeHashMap* _tmp3_; - GeeCollection* _tmp4_; - GeeCollection* _tmp5_; - GeeCollection* _tmp6_; - GeeIterator* _tmp7_; - GeeIterator* _tmp8_; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = plugins_pluggable_table; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = _tmp4_; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = _tmp5_; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = _tmp7_; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp6_); -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _pluggable_rep_it = _tmp8_; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - while (TRUE) { -#line 3264 "Plugins.c" - GeeIterator* _tmp9_; - PluginsPluggableRep* pluggable_rep = NULL; - GeeIterator* _tmp10_; - gpointer _tmp11_; - gboolean _tmp12_ = FALSE; - gboolean _tmp13_ = FALSE; - PluginsPluggableRep* _tmp14_; - gboolean _tmp15_; - gboolean _tmp16_; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = _pluggable_rep_it; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!gee_iterator_next (_tmp9_)) { -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - break; -#line 3280 "Plugins.c" - } -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = _pluggable_rep_it; -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = gee_iterator_get (_tmp10_); -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_rep = (PluginsPluggableRep*) _tmp11_; -#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_ = pluggable_rep; -#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp15_ = plugins_pluggable_rep_get_activated (_tmp14_); -#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp16_ = _tmp15_; -#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp16_) { -#line 3296 "Plugins.c" - PluginsPluggableRep* _tmp17_; - SpitPluggable* _tmp18_; - SpitPluggable* _tmp19_; -#line 235 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp17_ = pluggable_rep; -#line 235 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp18_ = plugins_pluggable_rep_get_pluggable (_tmp17_); -#line 235 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp19_ = _tmp18_; -#line 235 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = g_type_is_a (G_TYPE_FROM_INSTANCE (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, G_TYPE_OBJECT, GObject)), type); -#line 3308 "Plugins.c" - } else { -#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = FALSE; -#line 3312 "Plugins.c" - } -#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp13_) { -#line 3316 "Plugins.c" - gboolean _tmp20_ = FALSE; -#line 236 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (include_disabled) { -#line 236 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp20_ = TRUE; -#line 3322 "Plugins.c" - } else { - PluginsPluggableRep* _tmp21_; -#line 236 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp21_ = pluggable_rep; -#line 236 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp20_ = plugins_pluggable_rep_is_enabled (_tmp21_); -#line 3329 "Plugins.c" - } -#line 236 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = _tmp20_; -#line 3333 "Plugins.c" - } else { -#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = FALSE; -#line 3337 "Plugins.c" - } -#line 234 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp12_) { -#line 3341 "Plugins.c" - GeeCollection* _tmp22_; - PluginsPluggableRep* _tmp23_; - SpitPluggable* _tmp24_; - SpitPluggable* _tmp25_; -#line 237 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp22_ = for_type; -#line 237 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp23_ = pluggable_rep; -#line 237 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp24_ = plugins_pluggable_rep_get_pluggable (_tmp23_); -#line 237 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp25_ = _tmp24_; -#line 237 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - gee_collection_add (_tmp22_, _tmp25_); -#line 3356 "Plugins.c" - } -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 3360 "Plugins.c" - } -#line 233 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_pluggable_rep_it); -#line 3364 "Plugins.c" - } -#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = for_type; -#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - (compare_func_target_destroy_notify == NULL) ? NULL : (compare_func_target_destroy_notify (compare_func_target), NULL); -#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func = NULL; -#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func_target = NULL; -#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - compare_func_target_destroy_notify = NULL; -#line 241 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3378 "Plugins.c" -} - - -gchar* -plugins_get_pluggable_name (const gchar* id) -{ - gchar* result = NULL; - PluginsPluggableRep* pluggable_rep = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - const gchar* _tmp2_ = NULL; - gboolean _tmp3_ = FALSE; - PluginsPluggableRep* _tmp4_; - gchar* _tmp12_; -#line 244 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (id != NULL, NULL); -#line 245 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_pluggable_table; -#line 245 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), id); -#line 245 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_rep = (PluginsPluggableRep*) _tmp1_; -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = pluggable_rep; -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp4_ != NULL) { -#line 3405 "Plugins.c" - PluginsPluggableRep* _tmp5_; - gboolean _tmp6_; - gboolean _tmp7_; -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = pluggable_rep; -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = plugins_pluggable_rep_get_activated (_tmp5_); -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = _tmp6_; -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = _tmp7_; -#line 3417 "Plugins.c" - } else { -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = FALSE; -#line 3421 "Plugins.c" - } -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp3_) { -#line 3425 "Plugins.c" - PluginsPluggableRep* _tmp8_; - SpitPluggable* _tmp9_; - SpitPluggable* _tmp10_; - const gchar* _tmp11_; -#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = pluggable_rep; -#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = plugins_pluggable_rep_get_pluggable (_tmp8_); -#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = _tmp9_; -#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = spit_pluggable_get_pluggable_name (_tmp10_); -#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = _tmp11_; -#line 3440 "Plugins.c" - } else { -#line 248 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = NULL; -#line 3444 "Plugins.c" - } -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = g_strdup (_tmp2_); -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp12_; -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 247 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3454 "Plugins.c" -} - - -gboolean -plugins_get_pluggable_info (const gchar* id, - SpitPluggableInfo* info) -{ - gboolean result = FALSE; - PluginsPluggableRep* pluggable_rep = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - gboolean _tmp2_ = FALSE; - PluginsPluggableRep* _tmp3_; - PluginsPluggableRep* _tmp7_; - SpitPluggable* _tmp8_; - SpitPluggable* _tmp9_; -#line 251 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (id != NULL, FALSE); -#line 251 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (info != NULL, FALSE); -#line 252 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_pluggable_table; -#line 252 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), id); -#line 252 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_rep = (PluginsPluggableRep*) _tmp1_; -#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = pluggable_rep; -#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp3_ == NULL) { -#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = TRUE; -#line 3487 "Plugins.c" - } else { - PluginsPluggableRep* _tmp4_; - gboolean _tmp5_; - gboolean _tmp6_; -#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = pluggable_rep; -#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = plugins_pluggable_rep_get_activated (_tmp4_); -#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = _tmp5_; -#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = !_tmp6_; -#line 3500 "Plugins.c" - } -#line 253 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp2_) { -#line 254 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = FALSE; -#line 254 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 254 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3510 "Plugins.c" - } -#line 256 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = pluggable_rep; -#line 256 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = plugins_pluggable_rep_get_pluggable (_tmp7_); -#line 256 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = _tmp8_; -#line 256 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_pluggable_get_info (_tmp9_, info); -#line 258 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = TRUE; -#line 258 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 258 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3526 "Plugins.c" -} - - -gboolean -plugins_get_pluggable_enabled (const gchar* id, - gboolean* enabled) -{ - gboolean _vala_enabled = FALSE; - gboolean result = FALSE; - PluginsPluggableRep* pluggable_rep = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - gboolean _tmp2_ = FALSE; - PluginsPluggableRep* _tmp3_; - PluginsPluggableRep* _tmp7_; -#line 261 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (id != NULL, FALSE); -#line 262 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_pluggable_table; -#line 262 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), id); -#line 262 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_rep = (PluginsPluggableRep*) _tmp1_; -#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = pluggable_rep; -#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp3_ == NULL) { -#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = TRUE; -#line 3556 "Plugins.c" - } else { - PluginsPluggableRep* _tmp4_; - gboolean _tmp5_; - gboolean _tmp6_; -#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = pluggable_rep; -#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = plugins_pluggable_rep_get_activated (_tmp4_); -#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = _tmp5_; -#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = !_tmp6_; -#line 3569 "Plugins.c" - } -#line 263 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp2_) { -#line 264 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _vala_enabled = FALSE; -#line 266 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = FALSE; -#line 266 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 266 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (enabled) { -#line 266 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *enabled = _vala_enabled; -#line 3583 "Plugins.c" - } -#line 266 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3587 "Plugins.c" - } -#line 269 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = pluggable_rep; -#line 269 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _vala_enabled = plugins_pluggable_rep_is_enabled (_tmp7_); -#line 271 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = TRUE; -#line 271 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 271 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (enabled) { -#line 271 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - *enabled = _vala_enabled; -#line 3601 "Plugins.c" - } -#line 271 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3605 "Plugins.c" -} - - -void -plugins_set_pluggable_enabled (const gchar* id, - gboolean enabled) -{ - PluginsPluggableRep* pluggable_rep = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - gboolean _tmp2_ = FALSE; - PluginsPluggableRep* _tmp3_; - PluginsPluggableRep* _tmp7_; -#line 274 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (id != NULL); -#line 275 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_pluggable_table; -#line 275 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), id); -#line 275 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_rep = (PluginsPluggableRep*) _tmp1_; -#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = pluggable_rep; -#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp3_ == NULL) { -#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = TRUE; -#line 3633 "Plugins.c" - } else { - PluginsPluggableRep* _tmp4_; - gboolean _tmp5_; - gboolean _tmp6_; -#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = pluggable_rep; -#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = plugins_pluggable_rep_get_activated (_tmp4_); -#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = _tmp5_; -#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = !_tmp6_; -#line 3646 "Plugins.c" - } -#line 276 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp2_) { -#line 277 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 277 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 3654 "Plugins.c" - } -#line 279 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = pluggable_rep; -#line 279 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (plugins_pluggable_rep_set_enabled (_tmp7_, enabled)) { -#line 3660 "Plugins.c" - PluginsNotifier* _tmp8_; - PluginsNotifier* _tmp9_; - PluginsPluggableRep* _tmp10_; - SpitPluggable* _tmp11_; - SpitPluggable* _tmp12_; -#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = plugins_notifier_get_instance (); -#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = _tmp8_; -#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = pluggable_rep; -#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = plugins_pluggable_rep_get_pluggable (_tmp10_); -#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = _tmp11_; -#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_signal_emit (_tmp9_, plugins_notifier_signals[PLUGINS_NOTIFIER_PLUGGABLE_ACTIVATION_SIGNAL], 0, _tmp12_, enabled); -#line 280 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_notifier_unref0 (_tmp9_); -#line 3680 "Plugins.c" - } -#line 274 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (pluggable_rep); -#line 3684 "Plugins.c" -} - - -GFile* -plugins_get_pluggable_module_file (SpitPluggable* pluggable) -{ - GFile* result = NULL; - PluginsModuleRep* module_rep = NULL; - PluginsModuleRep* _tmp0_; - GFile* _tmp1_ = NULL; - PluginsModuleRep* _tmp2_; - GFile* _tmp5_; -#line 283 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (pluggable), NULL); -#line 284 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_get_module_for_pluggable (pluggable); -#line 284 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - module_rep = _tmp0_; -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = module_rep; -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp2_ != NULL) { -#line 3707 "Plugins.c" - PluginsModuleRep* _tmp3_; - GFile* _tmp4_; -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = module_rep; -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = _tmp3_->file; -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = _tmp4_; -#line 3716 "Plugins.c" - } else { -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = NULL; -#line 3720 "Plugins.c" - } -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = _g_object_ref0 (_tmp1_); -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = _tmp5_; -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 286 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3730 "Plugins.c" -} - - -gint -plugins_compare_pluggable_names (void* a, - void* b) -{ - gint result = 0; - SpitPluggable* apluggable = NULL; - SpitPluggable* bpluggable = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; -#line 290 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - apluggable = (SpitPluggable*) a; -#line 291 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - bpluggable = (SpitPluggable*) b; -#line 293 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (apluggable, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 293 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (bpluggable, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 293 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = g_utf8_collate (_tmp0_, _tmp1_); -#line 293 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3755 "Plugins.c" -} - - -gint -plugins_compare_extension_point_names (void* a, - void* b) -{ - gint result = 0; - PluginsExtensionPoint* apoint = NULL; - PluginsExtensionPoint* bpoint = NULL; - const gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 297 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - apoint = (PluginsExtensionPoint*) a; -#line 298 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - bpoint = (PluginsExtensionPoint*) b; -#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_extension_point_get_name (G_TYPE_CHECK_INSTANCE_CAST (apoint, PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPoint)); -#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = _tmp0_; -#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = plugins_extension_point_get_name (G_TYPE_CHECK_INSTANCE_CAST (bpoint, PLUGINS_TYPE_EXTENSION_POINT, PluginsExtensionPoint)); -#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = _tmp2_; -#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = g_utf8_collate (_tmp1_, _tmp3_); -#line 300 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3786 "Plugins.c" -} - - -gboolean -plugins_is_shared_library (GFile* file) -{ - gboolean result = FALSE; - gchar* name = NULL; - gchar* ext = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_ = NULL; - gchar* _tmp3_ = NULL; -#line 303 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = g_file_get_basename (file); -#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = _tmp0_; -#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - disassemble_filename (_tmp1_, &_tmp2_, &_tmp3_); -#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (name); -#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - name = _tmp2_; -#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (ext); -#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - ext = _tmp3_; -#line 305 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp1_); -#line 3818 "Plugins.c" - { - const gchar** shared_ext_collection = NULL; - gint shared_ext_collection_length1 = 0; - gint _shared_ext_collection_size_ = 0; - gint shared_ext_it = 0; -#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - shared_ext_collection = PLUGINS_SHARED_LIB_EXTS; -#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - shared_ext_collection_length1 = G_N_ELEMENTS (PLUGINS_SHARED_LIB_EXTS); -#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - for (shared_ext_it = 0; shared_ext_it < G_N_ELEMENTS (PLUGINS_SHARED_LIB_EXTS); shared_ext_it = shared_ext_it + 1) { -#line 3830 "Plugins.c" - gchar* _tmp4_; - gchar* shared_ext = NULL; -#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = g_strdup (shared_ext_collection[shared_ext_it]); -#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - shared_ext = _tmp4_; -#line 3837 "Plugins.c" - { - const gchar* _tmp5_; - const gchar* _tmp6_; -#line 308 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = ext; -#line 308 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = shared_ext; -#line 308 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (g_strcmp0 (_tmp5_, _tmp6_) == 0) { -#line 309 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = TRUE; -#line 309 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (shared_ext); -#line 309 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (ext); -#line 309 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (name); -#line 309 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3857 "Plugins.c" - } -#line 307 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (shared_ext); -#line 3861 "Plugins.c" - } - } - } -#line 312 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - result = FALSE; -#line 312 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (ext); -#line 312 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (name); -#line 312 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return result; -#line 3873 "Plugins.c" -} - - -void -plugins_search_for_plugins (GFile* dir, - GError** error) -{ - gchar* _tmp0_; - gchar* _tmp1_; - GFileEnumerator* enumerator = NULL; - GFileEnumerator* _tmp2_; - GError * _inner_error_ = NULL; -#line 315 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 316 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = g_file_get_path (dir); -#line 316 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = _tmp0_; -#line 316 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_debug ("Plugins.vala:316: Searching %s for plugins…", _tmp1_); -#line 316 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp1_); -#line 320 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = g_file_enumerate_children (dir, UTIL_FILE_ATTRIBUTES, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_); -#line 320 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - enumerator = _tmp2_; -#line 320 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 320 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_propagate_error (error, _inner_error_); -#line 320 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 3906 "Plugins.c" - } - { - gboolean _tmp3_ = FALSE; -#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = TRUE; -#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - while (TRUE) { -#line 3914 "Plugins.c" - GFileInfo* info = NULL; - GFileEnumerator* _tmp4_; - GFileInfo* _tmp5_; - GFileInfo* _tmp6_; - GFileInfo* _tmp7_; - GFile* file = NULL; - GFileInfo* _tmp8_; - const gchar* _tmp9_; - GFile* _tmp10_; - GFileInfo* _tmp11_; -#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!_tmp3_) { -#line 3927 "Plugins.c" - } -#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = FALSE; -#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = enumerator; -#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = g_file_enumerator_next_file (_tmp4_, NULL, &_inner_error_); -#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - info = _tmp5_; -#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_propagate_error (error, _inner_error_); -#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (enumerator); -#line 323 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 3945 "Plugins.c" - } -#line 324 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = info; -#line 324 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp6_ == NULL) { -#line 325 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (info); -#line 325 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - break; -#line 3955 "Plugins.c" - } -#line 327 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp7_ = info; -#line 327 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (g_file_info_get_is_hidden (_tmp7_)) { -#line 328 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (info); -#line 328 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - continue; -#line 3965 "Plugins.c" - } -#line 330 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = info; -#line 330 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = g_file_info_get_name (_tmp8_); -#line 330 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = g_file_get_child (dir, _tmp9_); -#line 330 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - file = _tmp10_; -#line 332 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = info; -#line 332 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - switch (g_file_info_get_file_type (_tmp11_)) { -#line 332 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - case G_FILE_TYPE_DIRECTORY: -#line 3981 "Plugins.c" - { - { - GFile* _tmp12_; -#line 335 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = file; -#line 335 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_search_for_plugins (_tmp12_, &_inner_error_); -#line 335 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3991 "Plugins.c" - goto __catch40_g_error; - } - } - goto __finally40; - __catch40_g_error: - { - GError* err = NULL; - GFile* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - GError* _tmp16_; - const gchar* _tmp17_; -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - err = _inner_error_; -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _inner_error_ = NULL; -#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = file; -#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_ = g_file_get_path (_tmp13_); -#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp15_ = _tmp14_; -#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp16_ = err; -#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp17_ = _tmp16_->message; -#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_warning ("Plugins.vala:337: Unable to search directory %s for plugins: %s", _tmp15_, _tmp17_); -#line 337 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp15_); -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_error_free0 (err); -#line 4024 "Plugins.c" - } - __finally40: -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_propagate_error (error, _inner_error_); -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (file); -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (info); -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (enumerator); -#line 334 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 4039 "Plugins.c" - } -#line 339 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - break; -#line 4043 "Plugins.c" - } -#line 332 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - case G_FILE_TYPE_REGULAR: -#line 4047 "Plugins.c" - { - GFile* _tmp18_; -#line 342 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp18_ = file; -#line 342 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (plugins_is_shared_library (_tmp18_)) { -#line 4054 "Plugins.c" - GFile* _tmp19_; -#line 343 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp19_ = file; -#line 343 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - plugins_load_module (_tmp19_); -#line 4060 "Plugins.c" - } -#line 344 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - break; -#line 4064 "Plugins.c" - } - default: - { -#line 348 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - break; -#line 4070 "Plugins.c" - } - } -#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (file); -#line 322 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (info); -#line 4077 "Plugins.c" - } - } -#line 315 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (enumerator); -#line 4082 "Plugins.c" -} - - -void -plugins_load_module (GFile* file) -{ - PluginsModuleRep* module_rep = NULL; - PluginsModuleRep* _tmp0_; - PluginsModuleRep* _tmp1_; - void* entry = NULL; - PluginsModuleRep* _tmp5_; - GModule* _tmp6_; - void* _tmp7_ = NULL; - gboolean _tmp8_; - SpitEntryPoint spit_entry_point = NULL; - void* _tmp11_; - gboolean _tmp12_ = FALSE; - SpitEntryPointParams params = {0}; - GFile* _tmp13_; - PluginsModuleRep* _tmp14_; - SpitEntryPoint _tmp15_; - SpitModule* _tmp16_; - SpitEntryPointParams _tmp17_; - gint _tmp18_; - gboolean _tmp21_ = FALSE; - SpitEntryPointParams _tmp22_; - gint _tmp23_; - PluginsModuleRep* _tmp30_; - SpitEntryPointParams _tmp31_; - gint _tmp32_; - PluginsModuleRep* _tmp33_; - SpitModule* _tmp34_; - PluginsModuleRep* _tmp36_; - SpitModule* _tmp37_; - PluginsModuleRep* _tmp42_; - PluginsModuleRep* _tmp43_; - SpitModule* _tmp44_; - const gchar* _tmp45_; - gchar* _tmp46_; - PluginsModuleRep* _tmp47_; - const gchar* _tmp48_; - GeeHashMap* _tmp53_; - PluginsModuleRep* _tmp54_; - const gchar* _tmp55_; - PluginsModuleRep* _tmp62_; - SpitModule* _tmp63_; - const gchar* _tmp64_; - PluginsModuleRep* _tmp65_; - SpitModule* _tmp66_; - const gchar* _tmp67_; - PluginsModuleRep* _tmp68_; - const gchar* _tmp69_; - gchar* _tmp70_; - gchar* _tmp71_; - GeeHashMap* _tmp72_; - PluginsModuleRep* _tmp73_; - const gchar* _tmp74_; - PluginsModuleRep* _tmp75_; - PluginsModuleRep* _tmp76_; - SpitModule* _tmp77_; - gint _tmp78_; - SpitPluggable** _tmp79_; -#line 353 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_return_if_fail (G_IS_FILE (file)); -#line 354 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp0_ = plugins_module_rep_open (file); -#line 354 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - module_rep = _tmp0_; -#line 355 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp1_ = module_rep; -#line 355 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp1_ == NULL) { -#line 4155 "Plugins.c" - gchar* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; -#line 356 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp2_ = g_file_get_path (file); -#line 356 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp3_ = _tmp2_; -#line 356 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp4_ = g_module_error (); -#line 356 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_critical ("Plugins.vala:356: Unable to load module %s: %s", _tmp3_, _tmp4_); -#line 356 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp3_); -#line 358 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 358 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 4173 "Plugins.c" - } -#line 363 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp5_ = module_rep; -#line 363 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp6_ = _tmp5_->module; -#line 363 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp8_ = g_module_symbol (_tmp6_, SPIT_ENTRY_POINT_NAME, &_tmp7_); -#line 363 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - entry = _tmp7_; -#line 363 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!_tmp8_) { -#line 4185 "Plugins.c" - gchar* _tmp9_; - gchar* _tmp10_; -#line 364 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp9_ = g_file_get_path (file); -#line 364 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp10_ = _tmp9_; -#line 364 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_critical ("Plugins.vala:364: Unable to load module %s: well-known entry point %s " \ -"not found", _tmp10_, SPIT_ENTRY_POINT_NAME); -#line 364 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp10_); -#line 367 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 367 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 4200 "Plugins.c" - } -#line 370 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp11_ = entry; -#line 370 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_entry_point = (SpitEntryPoint) _tmp11_; -#line 372 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (PLUGINS_MIN_SPIT_INTERFACE <= SPIT_CURRENT_INTERFACE) { -#line 372 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = SPIT_CURRENT_INTERFACE <= PLUGINS_MAX_SPIT_INTERFACE; -#line 4210 "Plugins.c" - } else { -#line 372 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp12_ = FALSE; -#line 4214 "Plugins.c" - } -#line 372 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _vala_assert (_tmp12_, "MIN_SPIT_INTERFACE <= Spit.CURRENT_INTERFACE && Spit.CURRENT_INTERFACE <= MAX_SPIT_INTERFACE"); -#line 373 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - memset (¶ms, 0, sizeof (SpitEntryPointParams)); -#line 374 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - params.host_min_spit_interface = PLUGINS_MIN_SPIT_INTERFACE; -#line 375 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - params.host_max_spit_interface = PLUGINS_MAX_SPIT_INTERFACE; -#line 376 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - params.module_spit_interface = SPIT_UNSUPPORTED_INTERFACE; -#line 377 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp13_ = _g_object_ref0 (file); -#line 377 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (params.module_file); -#line 377 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - params.module_file = _tmp13_; -#line 379 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_ = module_rep; -#line 379 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp15_ = spit_entry_point; -#line 379 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp16_ = _tmp15_ (¶ms); -#line 379 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp14_->spit_module); -#line 379 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp14_->spit_module = _tmp16_; -#line 380 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp17_ = params; -#line 380 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp18_ = _tmp17_.module_spit_interface; -#line 380 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp18_ == SPIT_UNSUPPORTED_INTERFACE) { -#line 4248 "Plugins.c" - gchar* _tmp19_; - gchar* _tmp20_; -#line 381 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp19_ = g_file_get_path (file); -#line 381 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp20_ = _tmp19_; -#line 381 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_critical ("Plugins.vala:381: Unable to load module %s: module reports no support " \ -"for SPIT interfaces %d to %d", _tmp20_, PLUGINS_MIN_SPIT_INTERFACE, PLUGINS_MAX_SPIT_INTERFACE); -#line 381 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp20_); -#line 384 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_entry_point_params_destroy (¶ms); -#line 384 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 384 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 4265 "Plugins.c" - } -#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp22_ = params; -#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp23_ = _tmp22_.module_spit_interface; -#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp23_ < PLUGINS_MIN_SPIT_INTERFACE) { -#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp21_ = TRUE; -#line 4275 "Plugins.c" - } else { - SpitEntryPointParams _tmp24_; - gint _tmp25_; -#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp24_ = params; -#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp25_ = _tmp24_.module_spit_interface; -#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp21_ = _tmp25_ > PLUGINS_MAX_SPIT_INTERFACE; -#line 4285 "Plugins.c" - } -#line 387 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp21_) { -#line 4289 "Plugins.c" - gchar* _tmp26_; - gchar* _tmp27_; - PluginsModuleRep* _tmp28_; - gint _tmp29_; -#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp26_ = g_file_get_path (file); -#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp27_ = _tmp26_; -#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp28_ = module_rep; -#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp29_ = _tmp28_->spit_interface; -#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_critical ("Plugins.vala:388: Unable to load module %s: module reports unsupported" \ -" SPIT version %d (out of range %d to %d)", _tmp27_, _tmp29_, PLUGINS_MIN_SPIT_INTERFACE, PLUGINS_MAX_SPIT_INTERFACE); -#line 388 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp27_); -#line 391 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_entry_point_params_destroy (¶ms); -#line 391 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 391 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 4312 "Plugins.c" - } -#line 394 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp30_ = module_rep; -#line 394 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp31_ = params; -#line 394 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp32_ = _tmp31_.module_spit_interface; -#line 394 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp30_->spit_interface = _tmp32_; -#line 397 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp33_ = module_rep; -#line 397 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp34_ = _tmp33_->spit_module; -#line 397 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp34_, SPIT_TYPE_MODULE)) { -#line 4328 "Plugins.c" - PluginsModuleRep* _tmp35_; -#line 398 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp35_ = module_rep; -#line 398 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (_tmp35_->spit_module); -#line 398 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp35_->spit_module = NULL; -#line 4336 "Plugins.c" - } -#line 400 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp36_ = module_rep; -#line 400 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp37_ = _tmp36_->spit_module; -#line 400 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp37_ == NULL) { -#line 4344 "Plugins.c" - gchar* _tmp38_; - gchar* _tmp39_; - PluginsModuleRep* _tmp40_; - gint _tmp41_; -#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp38_ = g_file_get_path (file); -#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp39_ = _tmp38_; -#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp40_ = module_rep; -#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp41_ = _tmp40_->spit_interface; -#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_critical ("Plugins.vala:401: Unable to load module %s (SPIT %d): no spit module r" \ -"eturned", _tmp39_, _tmp41_); -#line 401 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp39_); -#line 404 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_entry_point_params_destroy (¶ms); -#line 404 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 404 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 4367 "Plugins.c" - } -#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp42_ = module_rep; -#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp43_ = module_rep; -#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp44_ = _tmp43_->spit_module; -#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp45_ = spit_module_get_id (_tmp44_); -#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp46_ = prepare_input_text (_tmp45_, PREPARE_INPUT_TEXT_OPTIONS_DEFAULT, -1); -#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp42_->id); -#line 409 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp42_->id = _tmp46_; -#line 410 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp47_ = module_rep; -#line 410 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp48_ = _tmp47_->id; -#line 410 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (_tmp48_ == NULL) { -#line 4389 "Plugins.c" - gchar* _tmp49_; - gchar* _tmp50_; - PluginsModuleRep* _tmp51_; - gint _tmp52_; -#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp49_ = g_file_get_path (file); -#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp50_ = _tmp49_; -#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp51_ = module_rep; -#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp52_ = _tmp51_->spit_interface; -#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_critical ("Plugins.vala:411: Unable to load module %s (SPIT %d): invalid or empty" \ -" module name", _tmp50_, _tmp52_); -#line 411 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp50_); -#line 414 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_entry_point_params_destroy (¶ms); -#line 414 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 414 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 4412 "Plugins.c" - } -#line 417 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp53_ = plugins_module_table; -#line 417 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp54_ = module_rep; -#line 417 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp55_ = _tmp54_->id; -#line 417 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - if (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp55_)) { -#line 4422 "Plugins.c" - gchar* _tmp56_; - gchar* _tmp57_; - PluginsModuleRep* _tmp58_; - gint _tmp59_; - PluginsModuleRep* _tmp60_; - const gchar* _tmp61_; -#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp56_ = g_file_get_path (file); -#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp57_ = _tmp56_; -#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp58_ = module_rep; -#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp59_ = _tmp58_->spit_interface; -#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp60_ = module_rep; -#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp61_ = _tmp60_->id; -#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_critical ("Plugins.vala:418: Not loading module %s (SPIT %d): module with name \"" \ -"%s\" already loaded", _tmp57_, _tmp59_, _tmp61_); -#line 418 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp57_); -#line 421 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_entry_point_params_destroy (¶ms); -#line 421 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 421 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - return; -#line 4451 "Plugins.c" - } -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp62_ = module_rep; -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp63_ = _tmp62_->spit_module; -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp64_ = spit_module_get_module_name (_tmp63_); -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp65_ = module_rep; -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp66_ = _tmp65_->spit_module; -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp67_ = spit_module_get_version (_tmp66_); -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp68_ = module_rep; -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp69_ = _tmp68_->id; -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp70_ = g_file_get_path (file); -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp71_ = _tmp70_; -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - g_debug ("Plugins.vala:424: Loaded SPIT module \"%s %s\" (%s) [%s]", _tmp64_, _tmp67_, _tmp69_, _tmp71_); -#line 424 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_free0 (_tmp71_); -#line 428 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp72_ = plugins_module_table; -#line 428 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp73_ = module_rep; -#line 428 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp74_ = _tmp73_->id; -#line 428 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp75_ = module_rep; -#line 428 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp74_, _tmp75_); -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp76_ = module_rep; -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp77_ = _tmp76_->spit_module; -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp79_ = spit_module_get_pluggables (_tmp77_, &_tmp78_); -#line 4493 "Plugins.c" - { - SpitPluggable** pluggable_collection = NULL; - gint pluggable_collection_length1 = 0; - gint _pluggable_collection_size_ = 0; - gint pluggable_it = 0; -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_collection = _tmp79_; -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable_collection_length1 = _tmp78_; -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - for (pluggable_it = 0; pluggable_it < _tmp78_; pluggable_it = pluggable_it + 1) { -#line 4505 "Plugins.c" - SpitPluggable* _tmp80_; - SpitPluggable* pluggable = NULL; -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp80_ = _g_object_ref0 (pluggable_collection[pluggable_it]); -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - pluggable = _tmp80_; -#line 4512 "Plugins.c" - { - GeeHashMap* _tmp81_; - SpitPluggable* _tmp82_; - const gchar* _tmp83_; - SpitPluggable* _tmp84_; - PluginsPluggableRep* _tmp85_; - PluginsPluggableRep* _tmp86_; -#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp81_ = plugins_pluggable_table; -#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp82_ = pluggable; -#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp83_ = spit_pluggable_get_id (_tmp82_); -#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp84_ = pluggable; -#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp85_ = plugins_pluggable_rep_new (_tmp84_); -#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _tmp86_ = _tmp85_; -#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp81_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp83_, _tmp86_); -#line 432 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_pluggable_rep_unref0 (_tmp86_); -#line 431 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _g_object_unref0 (pluggable); -#line 4538 "Plugins.c" - } - } - } -#line 353 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - spit_entry_point_params_destroy (¶ms); -#line 353 "/home/jens/Source/shotwell/src/plugins/Plugins.vala" - _plugins_module_rep_unref0 (module_rep); -#line 4546 "Plugins.c" -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/plugins/Plugins.vala b/src/plugins/Plugins.vala index 5f6613c..6aff461 100644 --- a/src/plugins/Plugins.vala +++ b/src/plugins/Plugins.vala @@ -112,6 +112,10 @@ private Gee.HashSet core_ids; public void init() throws Error { search_dirs = new File[0]; + unowned string plugin_dir = Environment.get_variable("SHOTWELL_PLUGIN_PATH"); + if (plugin_dir != null && plugin_dir != "") { + search_dirs += File.new_for_commandline_arg(plugin_dir); + } search_dirs += AppDirs.get_user_plugins_dir(); search_dirs += AppDirs.get_system_plugins_dir(); diff --git a/src/plugins/PublishingInterfaces.c b/src/plugins/PublishingInterfaces.c deleted file mode 100644 index 54059fb..0000000 --- a/src/plugins/PublishingInterfaces.c +++ /dev/null @@ -1,2242 +0,0 @@ -/* PublishingInterfaces.c generated by valac 0.40.4, the Vala compiler - * generated from PublishingInterfaces.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define SPIT_PUBLISHING_TYPE_PUBLISHER (spit_publishing_publisher_get_type ()) -#define SPIT_PUBLISHING_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)) -#define SPIT_PUBLISHING_IS_PUBLISHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER)) -#define SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisherIface)) - -typedef struct _SpitPublishingPublisher SpitPublishingPublisher; -typedef struct _SpitPublishingPublisherIface SpitPublishingPublisherIface; - -#define SPIT_TYPE_PLUGGABLE (spit_pluggable_get_type ()) -#define SPIT_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggable)) -#define SPIT_IS_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_PLUGGABLE)) -#define SPIT_PLUGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggableIface)) - -typedef struct _SpitPluggable SpitPluggable; -typedef struct _SpitPluggableIface SpitPluggableIface; - -#define SPIT_TYPE_PLUGGABLE_INFO (spit_pluggable_info_get_type ()) -typedef struct _SpitPluggableInfo SpitPluggableInfo; - -#define SPIT_PUBLISHING_TYPE_SERVICE (spit_publishing_service_get_type ()) -#define SPIT_PUBLISHING_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService)) -#define SPIT_PUBLISHING_IS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_SERVICE)) -#define SPIT_PUBLISHING_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingServiceIface)) - -typedef struct _SpitPublishingService SpitPublishingService; -typedef struct _SpitPublishingServiceIface SpitPublishingServiceIface; - -#define SPIT_TYPE_HOST_INTERFACE (spit_host_interface_get_type ()) -#define SPIT_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterface)) -#define SPIT_IS_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_HOST_INTERFACE)) -#define SPIT_HOST_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterfaceIface)) - -typedef struct _SpitHostInterface SpitHostInterface; -typedef struct _SpitHostInterfaceIface SpitHostInterfaceIface; - -#define SPIT_PUBLISHING_TYPE_PLUGIN_HOST (spit_publishing_plugin_host_get_type ()) -#define SPIT_PUBLISHING_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHost)) -#define SPIT_PUBLISHING_IS_PLUGIN_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST)) -#define SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHostIface)) - -typedef struct _SpitPublishingPluginHost SpitPublishingPluginHost; -typedef struct _SpitPublishingPluginHostIface SpitPublishingPluginHostIface; - -#define SPIT_PUBLISHING_TYPE_DIALOG_PANE (spit_publishing_dialog_pane_get_type ()) -#define SPIT_PUBLISHING_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane)) -#define SPIT_PUBLISHING_IS_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE)) -#define SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPaneIface)) - -typedef struct _SpitPublishingDialogPane SpitPublishingDialogPane; -typedef struct _SpitPublishingDialogPaneIface SpitPublishingDialogPaneIface; - -#define SPIT_PUBLISHING_DIALOG_PANE_TYPE_GEOMETRY_OPTIONS (spit_publishing_dialog_pane_geometry_options_get_type ()) - -#define SPIT_PUBLISHING_PLUGIN_HOST_TYPE_BUTTON_MODE (spit_publishing_plugin_host_button_mode_get_type ()) - -#define SPIT_PUBLISHING_TYPE_PUBLISHABLE (spit_publishing_publishable_get_type ()) -#define SPIT_PUBLISHING_PUBLISHABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE, SpitPublishingPublishable)) -#define SPIT_PUBLISHING_IS_PUBLISHABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE)) -#define SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_PUBLISHABLE, SpitPublishingPublishableIface)) - -typedef struct _SpitPublishingPublishable SpitPublishingPublishable; -typedef struct _SpitPublishingPublishableIface SpitPublishingPublishableIface; - -#define SPIT_PUBLISHING_PUBLISHER_TYPE_MEDIA_TYPE (spit_publishing_publisher_media_type_get_type ()) - -#define SPIT_PUBLISHING_TYPE_AUTHENTICATOR (spit_publishing_authenticator_get_type ()) -#define SPIT_PUBLISHING_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticator)) -#define SPIT_PUBLISHING_IS_AUTHENTICATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR)) -#define SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR, SpitPublishingAuthenticatorIface)) - -typedef struct _SpitPublishingAuthenticator SpitPublishingAuthenticator; -typedef struct _SpitPublishingAuthenticatorIface SpitPublishingAuthenticatorIface; -enum { - SPIT_PUBLISHING_AUTHENTICATOR_AUTHENTICATED_SIGNAL, - SPIT_PUBLISHING_AUTHENTICATOR_AUTHENTICATION_FAILED_SIGNAL, - SPIT_PUBLISHING_AUTHENTICATOR_NUM_SIGNALS -}; -static guint spit_publishing_authenticator_signals[SPIT_PUBLISHING_AUTHENTICATOR_NUM_SIGNALS] = {0}; - -#define SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY (spit_publishing_authenticator_factory_get_type ()) -#define SPIT_PUBLISHING_AUTHENTICATOR_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory)) -#define SPIT_PUBLISHING_IS_AUTHENTICATOR_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY)) -#define SPIT_PUBLISHING_AUTHENTICATOR_FACTORY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactoryIface)) - -typedef struct _SpitPublishingAuthenticatorFactory SpitPublishingAuthenticatorFactory; -typedef struct _SpitPublishingAuthenticatorFactoryIface SpitPublishingAuthenticatorFactoryIface; - -/** - * Defines different kinds of errors that can occur during publishing. - */ -typedef enum { - SPIT_PUBLISHING_PUBLISHING_ERROR_NO_ANSWER, - SPIT_PUBLISHING_PUBLISHING_ERROR_COMMUNICATION_FAILED, - SPIT_PUBLISHING_PUBLISHING_ERROR_PROTOCOL_ERROR, - SPIT_PUBLISHING_PUBLISHING_ERROR_SERVICE_ERROR, - SPIT_PUBLISHING_PUBLISHING_ERROR_MALFORMED_RESPONSE, - SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, - SPIT_PUBLISHING_PUBLISHING_ERROR_EXPIRED_SESSION, - SPIT_PUBLISHING_PUBLISHING_ERROR_SSL_FAILED -} SpitPublishingPublishingError; -#define SPIT_PUBLISHING_PUBLISHING_ERROR spit_publishing_publishing_error_quark () -struct _SpitPluggableInfo { - gchar* version; - gchar* brief_description; - gchar* authors; - gchar* copyright; - gchar* license; - gboolean is_license_wordwrapped; - gchar* website_url; - gchar* website_name; - gchar* translators; - GdkPixbuf** icons; - gint icons_length1; -}; - -struct _SpitPluggableIface { - GTypeInterface parent_iface; - gint (*get_pluggable_interface) (SpitPluggable* self, gint min_host_interface, gint max_host_interface); - const gchar* (*get_id) (SpitPluggable* self); - const gchar* (*get_pluggable_name) (SpitPluggable* self); - void (*get_info) (SpitPluggable* self, SpitPluggableInfo* info); - void (*activation) (SpitPluggable* self, gboolean enabled); - void (*reserved0) (SpitPluggable* self); - void (*reserved1) (SpitPluggable* self); - void (*reserved2) (SpitPluggable* self); - void (*reserved3) (SpitPluggable* self); - void (*reserved4) (SpitPluggable* self); - void (*reserved5) (SpitPluggable* self); - void (*reserved6) (SpitPluggable* self); - void (*reserved7) (SpitPluggable* self); -}; - -struct _SpitHostInterfaceIface { - GTypeInterface parent_iface; - GFile* (*get_module_file) (SpitHostInterface* self); - gboolean (*get_config_bool) (SpitHostInterface* self, const gchar* key, gboolean def); - void (*set_config_bool) (SpitHostInterface* self, const gchar* key, gboolean val); - gint (*get_config_int) (SpitHostInterface* self, const gchar* key, gint def); - void (*set_config_int) (SpitHostInterface* self, const gchar* key, gint val); - gchar* (*get_config_string) (SpitHostInterface* self, const gchar* key, const gchar* def); - void (*set_config_string) (SpitHostInterface* self, const gchar* key, const gchar* val); - gdouble (*get_config_double) (SpitHostInterface* self, const gchar* key, gdouble def); - void (*set_config_double) (SpitHostInterface* self, const gchar* key, gdouble val); - void (*unset_config_key) (SpitHostInterface* self, const gchar* key); - void (*reserved0) (SpitHostInterface* self); - void (*reserved1) (SpitHostInterface* self); - void (*reserved2) (SpitHostInterface* self); - void (*reserved3) (SpitHostInterface* self); - void (*reserved4) (SpitHostInterface* self); - void (*reserved5) (SpitHostInterface* self); - void (*reserved6) (SpitHostInterface* self); - void (*reserved7) (SpitHostInterface* self); -}; - -typedef enum { - SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE = 0, - SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE = 1 << 0, - SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE = 1 << 1, - SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE = 1 << 2 -} SpitPublishingDialogPaneGeometryOptions; - -struct _SpitPublishingDialogPaneIface { - GTypeInterface parent_iface; - GtkWidget* (*get_widget) (SpitPublishingDialogPane* self); - SpitPublishingDialogPaneGeometryOptions (*get_preferred_geometry) (SpitPublishingDialogPane* self); - void (*on_pane_installed) (SpitPublishingDialogPane* self); - void (*on_pane_uninstalled) (SpitPublishingDialogPane* self); - void (*reserved0) (SpitPublishingDialogPane* self); - void (*reserved1) (SpitPublishingDialogPane* self); - void (*reserved2) (SpitPublishingDialogPane* self); - void (*reserved3) (SpitPublishingDialogPane* self); - void (*reserved4) (SpitPublishingDialogPane* self); - void (*reserved5) (SpitPublishingDialogPane* self); - void (*reserved6) (SpitPublishingDialogPane* self); - void (*reserved7) (SpitPublishingDialogPane* self); -}; - -typedef enum { - SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE = 0, - SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL = 1 -} SpitPublishingPluginHostButtonMode; - -typedef void (*SpitPublishingLoginCallback) (void* user_data); -typedef enum { - SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE = 0, - SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO = 1 << 0, - SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO = 1 << 1 -} SpitPublishingPublisherMediaType; - -struct _SpitPublishingPublishableIface { - GTypeInterface parent_iface; - GFile* (*get_serialized_file) (SpitPublishingPublishable* self); - gchar* (*get_publishing_name) (SpitPublishingPublishable* self); - gchar* (*get_param_string) (SpitPublishingPublishable* self, const gchar* name); - gchar** (*get_publishing_keywords) (SpitPublishingPublishable* self, int* result_length1); - SpitPublishingPublisherMediaType (*get_media_type) (SpitPublishingPublishable* self); - GDateTime* (*get_exposure_date_time) (SpitPublishingPublishable* self); - void (*reserved0) (SpitPublishingPublishable* self); - void (*reserved1) (SpitPublishingPublishable* self); - void (*reserved2) (SpitPublishingPublishable* self); - void (*reserved3) (SpitPublishingPublishable* self); - void (*reserved4) (SpitPublishingPublishable* self); - void (*reserved5) (SpitPublishingPublishable* self); - void (*reserved6) (SpitPublishingPublishable* self); - void (*reserved7) (SpitPublishingPublishable* self); -}; - -typedef void (*SpitPublishingProgressCallback) (gint file_number, gdouble fraction_complete, void* user_data); -struct _SpitPublishingPluginHostIface { - GTypeInterface parent_iface; - void (*post_error) (SpitPublishingPluginHost* self, GError* err); - void (*stop_publishing) (SpitPublishingPluginHost* self); - SpitPublishingPublisher* (*get_publisher) (SpitPublishingPluginHost* self); - void (*install_dialog_pane) (SpitPublishingPluginHost* self, SpitPublishingDialogPane* pane, SpitPublishingPluginHostButtonMode mode); - void (*install_static_message_pane) (SpitPublishingPluginHost* self, const gchar* message, SpitPublishingPluginHostButtonMode mode); - void (*install_pango_message_pane) (SpitPublishingPluginHost* self, const gchar* markup, SpitPublishingPluginHostButtonMode mode); - void (*install_success_pane) (SpitPublishingPluginHost* self); - void (*install_account_fetch_wait_pane) (SpitPublishingPluginHost* self); - void (*install_login_wait_pane) (SpitPublishingPluginHost* self); - void (*install_welcome_pane) (SpitPublishingPluginHost* self, const gchar* welcome_message, SpitPublishingLoginCallback on_login_clicked, void* on_login_clicked_target); - void (*set_service_locked) (SpitPublishingPluginHost* self, gboolean is_locked); - void (*set_dialog_default_widget) (SpitPublishingPluginHost* self, GtkWidget* widget); - SpitPublishingPublishable** (*get_publishables) (SpitPublishingPluginHost* self, int* result_length1); - SpitPublishingProgressCallback (*serialize_publishables) (SpitPublishingPluginHost* self, gint content_major_axis, gboolean strip_metadata, void** result_target, GDestroyNotify* result_target_destroy_notify); - SpitPublishingPublisherMediaType (*get_publishable_media_type) (SpitPublishingPluginHost* self); - void (*reserved0) (SpitPublishingPluginHost* self); - void (*reserved1) (SpitPublishingPluginHost* self); - void (*reserved2) (SpitPublishingPluginHost* self); - void (*reserved3) (SpitPublishingPluginHost* self); - void (*reserved4) (SpitPublishingPluginHost* self); - void (*reserved5) (SpitPublishingPluginHost* self); - void (*reserved6) (SpitPublishingPluginHost* self); - void (*reserved7) (SpitPublishingPluginHost* self); -}; - -struct _SpitPublishingServiceIface { - GTypeInterface parent_iface; - SpitPublishingPublisher* (*create_publisher) (SpitPublishingService* self, SpitPublishingPluginHost* host); - SpitPublishingPublisherMediaType (*get_supported_media) (SpitPublishingService* self); - void (*reserved0) (SpitPublishingService* self); - void (*reserved1) (SpitPublishingService* self); - void (*reserved2) (SpitPublishingService* self); - void (*reserved3) (SpitPublishingService* self); - void (*reserved4) (SpitPublishingService* self); - void (*reserved5) (SpitPublishingService* self); - void (*reserved6) (SpitPublishingService* self); - void (*reserved7) (SpitPublishingService* self); -}; - -struct _SpitPublishingPublisherIface { - GTypeInterface parent_iface; - SpitPublishingService* (*get_service) (SpitPublishingPublisher* self); - void (*start) (SpitPublishingPublisher* self); - gboolean (*is_running) (SpitPublishingPublisher* self); - void (*stop) (SpitPublishingPublisher* self); - void (*reserved0) (SpitPublishingPublisher* self); - void (*reserved1) (SpitPublishingPublisher* self); - void (*reserved2) (SpitPublishingPublisher* self); - void (*reserved3) (SpitPublishingPublisher* self); - void (*reserved4) (SpitPublishingPublisher* self); - void (*reserved5) (SpitPublishingPublisher* self); - void (*reserved6) (SpitPublishingPublisher* self); - void (*reserved7) (SpitPublishingPublisher* self); -}; - -struct _SpitPublishingAuthenticatorIface { - GTypeInterface parent_iface; - void (*authenticate) (SpitPublishingAuthenticator* self); - gboolean (*can_logout) (SpitPublishingAuthenticator* self); - void (*logout) (SpitPublishingAuthenticator* self); - void (*refresh) (SpitPublishingAuthenticator* self); - GHashTable* (*get_authentication_parameter) (SpitPublishingAuthenticator* self); -}; - -struct _SpitPublishingAuthenticatorFactoryIface { - GTypeInterface parent_iface; - GeeList* (*get_available_authenticators) (SpitPublishingAuthenticatorFactory* self); - SpitPublishingAuthenticator* (*create) (SpitPublishingAuthenticatorFactory* self, const gchar* provider, SpitPublishingPluginHost* host); -}; - - - -#define SPIT_PUBLISHING_CURRENT_INTERFACE 0 -GQuark spit_publishing_publishing_error_quark (void); -GType spit_pluggable_info_get_type (void) G_GNUC_CONST; -SpitPluggableInfo* spit_pluggable_info_dup (const SpitPluggableInfo* self); -void spit_pluggable_info_free (SpitPluggableInfo* self); -void spit_pluggable_info_copy (const SpitPluggableInfo* self, - SpitPluggableInfo* dest); -void spit_pluggable_info_destroy (SpitPluggableInfo* self); -GType spit_pluggable_get_type (void) G_GNUC_CONST; -GType spit_host_interface_get_type (void) G_GNUC_CONST; -GType spit_publishing_dialog_pane_geometry_options_get_type (void) G_GNUC_CONST; -GType spit_publishing_dialog_pane_get_type (void) G_GNUC_CONST; -GType spit_publishing_plugin_host_button_mode_get_type (void) G_GNUC_CONST; -GType spit_publishing_publisher_media_type_get_type (void) G_GNUC_CONST; -GType spit_publishing_publishable_get_type (void) G_GNUC_CONST; -GType spit_publishing_plugin_host_get_type (void) G_GNUC_CONST; -GType spit_publishing_service_get_type (void) G_GNUC_CONST; -GType spit_publishing_publisher_get_type (void) G_GNUC_CONST; -SpitPublishingService* spit_publishing_publisher_get_service (SpitPublishingPublisher* self); -void spit_publishing_publisher_start (SpitPublishingPublisher* self); -gboolean spit_publishing_publisher_is_running (SpitPublishingPublisher* self); -void spit_publishing_publisher_stop (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved0 (SpitPublishingPublisher* self); -static void spit_publishing_publisher_real_reserved0 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved1 (SpitPublishingPublisher* self); -static void spit_publishing_publisher_real_reserved1 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved2 (SpitPublishingPublisher* self); -static void spit_publishing_publisher_real_reserved2 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved3 (SpitPublishingPublisher* self); -static void spit_publishing_publisher_real_reserved3 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved4 (SpitPublishingPublisher* self); -static void spit_publishing_publisher_real_reserved4 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved5 (SpitPublishingPublisher* self); -static void spit_publishing_publisher_real_reserved5 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved6 (SpitPublishingPublisher* self); -static void spit_publishing_publisher_real_reserved6 (SpitPublishingPublisher* self); -void spit_publishing_publisher_reserved7 (SpitPublishingPublisher* self); -static void spit_publishing_publisher_real_reserved7 (SpitPublishingPublisher* self); -GtkWidget* spit_publishing_dialog_pane_get_widget (SpitPublishingDialogPane* self); -SpitPublishingDialogPaneGeometryOptions spit_publishing_dialog_pane_get_preferred_geometry (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_on_pane_installed (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_on_pane_uninstalled (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved0 (SpitPublishingDialogPane* self); -static void spit_publishing_dialog_pane_real_reserved0 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved1 (SpitPublishingDialogPane* self); -static void spit_publishing_dialog_pane_real_reserved1 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved2 (SpitPublishingDialogPane* self); -static void spit_publishing_dialog_pane_real_reserved2 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved3 (SpitPublishingDialogPane* self); -static void spit_publishing_dialog_pane_real_reserved3 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved4 (SpitPublishingDialogPane* self); -static void spit_publishing_dialog_pane_real_reserved4 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved5 (SpitPublishingDialogPane* self); -static void spit_publishing_dialog_pane_real_reserved5 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved6 (SpitPublishingDialogPane* self); -static void spit_publishing_dialog_pane_real_reserved6 (SpitPublishingDialogPane* self); -void spit_publishing_dialog_pane_reserved7 (SpitPublishingDialogPane* self); -static void spit_publishing_dialog_pane_real_reserved7 (SpitPublishingDialogPane* self); -void spit_publishing_plugin_host_post_error (SpitPublishingPluginHost* self, - GError* err); -void spit_publishing_plugin_host_stop_publishing (SpitPublishingPluginHost* self); -SpitPublishingPublisher* spit_publishing_plugin_host_get_publisher (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_install_dialog_pane (SpitPublishingPluginHost* self, - SpitPublishingDialogPane* pane, - SpitPublishingPluginHostButtonMode mode); -void spit_publishing_plugin_host_install_static_message_pane (SpitPublishingPluginHost* self, - const gchar* message, - SpitPublishingPluginHostButtonMode mode); -void spit_publishing_plugin_host_install_pango_message_pane (SpitPublishingPluginHost* self, - const gchar* markup, - SpitPublishingPluginHostButtonMode mode); -void spit_publishing_plugin_host_install_success_pane (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_install_account_fetch_wait_pane (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_install_login_wait_pane (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_install_welcome_pane (SpitPublishingPluginHost* self, - const gchar* welcome_message, - SpitPublishingLoginCallback on_login_clicked, - void* on_login_clicked_target); -void spit_publishing_plugin_host_set_service_locked (SpitPublishingPluginHost* self, - gboolean is_locked); -void spit_publishing_plugin_host_set_dialog_default_widget (SpitPublishingPluginHost* self, - GtkWidget* widget); -SpitPublishingPublishable** spit_publishing_plugin_host_get_publishables (SpitPublishingPluginHost* self, - int* result_length1); -SpitPublishingProgressCallback spit_publishing_plugin_host_serialize_publishables (SpitPublishingPluginHost* self, - gint content_major_axis, - gboolean strip_metadata, - void** result_target, - GDestroyNotify* result_target_destroy_notify); -SpitPublishingPublisherMediaType spit_publishing_plugin_host_get_publishable_media_type (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved0 (SpitPublishingPluginHost* self); -static void spit_publishing_plugin_host_real_reserved0 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved1 (SpitPublishingPluginHost* self); -static void spit_publishing_plugin_host_real_reserved1 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved2 (SpitPublishingPluginHost* self); -static void spit_publishing_plugin_host_real_reserved2 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved3 (SpitPublishingPluginHost* self); -static void spit_publishing_plugin_host_real_reserved3 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved4 (SpitPublishingPluginHost* self); -static void spit_publishing_plugin_host_real_reserved4 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved5 (SpitPublishingPluginHost* self); -static void spit_publishing_plugin_host_real_reserved5 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved6 (SpitPublishingPluginHost* self); -static void spit_publishing_plugin_host_real_reserved6 (SpitPublishingPluginHost* self); -void spit_publishing_plugin_host_reserved7 (SpitPublishingPluginHost* self); -static void spit_publishing_plugin_host_real_reserved7 (SpitPublishingPluginHost* self); -GFile* spit_publishing_publishable_get_serialized_file (SpitPublishingPublishable* self); -gchar* spit_publishing_publishable_get_publishing_name (SpitPublishingPublishable* self); -gchar* spit_publishing_publishable_get_param_string (SpitPublishingPublishable* self, - const gchar* name); -gchar** spit_publishing_publishable_get_publishing_keywords (SpitPublishingPublishable* self, - int* result_length1); -SpitPublishingPublisherMediaType spit_publishing_publishable_get_media_type (SpitPublishingPublishable* self); -GDateTime* spit_publishing_publishable_get_exposure_date_time (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved0 (SpitPublishingPublishable* self); -static void spit_publishing_publishable_real_reserved0 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved1 (SpitPublishingPublishable* self); -static void spit_publishing_publishable_real_reserved1 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved2 (SpitPublishingPublishable* self); -static void spit_publishing_publishable_real_reserved2 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved3 (SpitPublishingPublishable* self); -static void spit_publishing_publishable_real_reserved3 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved4 (SpitPublishingPublishable* self); -static void spit_publishing_publishable_real_reserved4 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved5 (SpitPublishingPublishable* self); -static void spit_publishing_publishable_real_reserved5 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved6 (SpitPublishingPublishable* self); -static void spit_publishing_publishable_real_reserved6 (SpitPublishingPublishable* self); -void spit_publishing_publishable_reserved7 (SpitPublishingPublishable* self); -static void spit_publishing_publishable_real_reserved7 (SpitPublishingPublishable* self); -#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME "basename" -#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_TITLE "title" -#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT "comment" -#define SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_EVENTCOMMENT "eventcomment" -SpitPublishingPublisher* spit_publishing_service_create_publisher (SpitPublishingService* self, - SpitPublishingPluginHost* host); -SpitPublishingPublisherMediaType spit_publishing_service_get_supported_media (SpitPublishingService* self); -void spit_publishing_service_reserved0 (SpitPublishingService* self); -static void spit_publishing_service_real_reserved0 (SpitPublishingService* self); -void spit_publishing_service_reserved1 (SpitPublishingService* self); -static void spit_publishing_service_real_reserved1 (SpitPublishingService* self); -void spit_publishing_service_reserved2 (SpitPublishingService* self); -static void spit_publishing_service_real_reserved2 (SpitPublishingService* self); -void spit_publishing_service_reserved3 (SpitPublishingService* self); -static void spit_publishing_service_real_reserved3 (SpitPublishingService* self); -void spit_publishing_service_reserved4 (SpitPublishingService* self); -static void spit_publishing_service_real_reserved4 (SpitPublishingService* self); -void spit_publishing_service_reserved5 (SpitPublishingService* self); -static void spit_publishing_service_real_reserved5 (SpitPublishingService* self); -void spit_publishing_service_reserved6 (SpitPublishingService* self); -static void spit_publishing_service_real_reserved6 (SpitPublishingService* self); -void spit_publishing_service_reserved7 (SpitPublishingService* self); -static void spit_publishing_service_real_reserved7 (SpitPublishingService* self); -GType spit_publishing_authenticator_get_type (void) G_GNUC_CONST; -void spit_publishing_authenticator_authenticate (SpitPublishingAuthenticator* self); -gboolean spit_publishing_authenticator_can_logout (SpitPublishingAuthenticator* self); -void spit_publishing_authenticator_logout (SpitPublishingAuthenticator* self); -void spit_publishing_authenticator_refresh (SpitPublishingAuthenticator* self); -GHashTable* spit_publishing_authenticator_get_authentication_parameter (SpitPublishingAuthenticator* self); -GType spit_publishing_authenticator_factory_get_type (void) G_GNUC_CONST; -GeeList* spit_publishing_authenticator_factory_get_available_authenticators (SpitPublishingAuthenticatorFactory* self); -SpitPublishingAuthenticator* spit_publishing_authenticator_factory_create (SpitPublishingAuthenticatorFactory* self, - const gchar* provider, - SpitPublishingPluginHost* host); - - -GQuark -spit_publishing_publishing_error_quark (void) -{ - return g_quark_from_static_string ("spit_publishing_publishing_error-quark"); -} - - -/** - * Describes the kinds of media a publishing service supports. - * - * Values can be masked together, for example: {{{(MediaType.PHOTO | MediaType.VIDEO)}}} - * indicates that a publishing service supports the upload of both photos and videos. - */ -GType -spit_publishing_publisher_media_type_get_type (void) -{ - static volatile gsize spit_publishing_publisher_media_type_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_publisher_media_type_type_id__volatile)) { - static const GEnumValue values[] = {{SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE, "SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE", "none"}, {SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO, "SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO", "photo"}, {SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO, "SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO", "video"}, {0, NULL, NULL}}; - GType spit_publishing_publisher_media_type_type_id; - spit_publishing_publisher_media_type_type_id = g_enum_register_static ("SpitPublishingPublisherMediaType", values); - g_once_init_leave (&spit_publishing_publisher_media_type_type_id__volatile, spit_publishing_publisher_media_type_type_id); - } - return spit_publishing_publisher_media_type_type_id__volatile; -} - - -/** - * Returns a {@link Service} object describing the service to which this connects. - */ -SpitPublishingService* -spit_publishing_publisher_get_service (SpitPublishingPublisher* self) -{ -#line 121 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self), NULL); -#line 121 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->get_service (self); -#line 509 "PublishingInterfaces.c" -} - - -/** - * Makes this publisher enter the running state and endows it with exclusive access - * to the shared services provided by the {@link PluginHost}. Through the host’s interface, - * this publisher can install user interface panes and query configuration information. - * Only running services should perform network operations. - */ -void -spit_publishing_publisher_start (SpitPublishingPublisher* self) -{ -#line 129 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 129 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->start (self); -#line 526 "PublishingInterfaces.c" -} - - -/** - * Returns true if this publisher is in the running state; false otherwise. - */ -gboolean -spit_publishing_publisher_is_running (SpitPublishingPublisher* self) -{ -#line 134 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self), FALSE); -#line 134 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->is_running (self); -#line 540 "PublishingInterfaces.c" -} - - -/** - * Causes this publisher to enter a non-running state. This publisher should stop all - * network operations and cease use of the shared services provided by the {@link PluginHost}. - */ -void -spit_publishing_publisher_stop (SpitPublishingPublisher* self) -{ -#line 140 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 140 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->stop (self); -#line 555 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_real_reserved0 (SpitPublishingPublisher* self) -{ -} - - -void -spit_publishing_publisher_reserved0 (SpitPublishingPublisher* self) -{ -#line 145 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 145 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved0 (self); -#line 572 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_real_reserved1 (SpitPublishingPublisher* self) -{ -} - - -void -spit_publishing_publisher_reserved1 (SpitPublishingPublisher* self) -{ -#line 146 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 146 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved1 (self); -#line 589 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_real_reserved2 (SpitPublishingPublisher* self) -{ -} - - -void -spit_publishing_publisher_reserved2 (SpitPublishingPublisher* self) -{ -#line 147 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 147 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved2 (self); -#line 606 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_real_reserved3 (SpitPublishingPublisher* self) -{ -} - - -void -spit_publishing_publisher_reserved3 (SpitPublishingPublisher* self) -{ -#line 148 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 148 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved3 (self); -#line 623 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_real_reserved4 (SpitPublishingPublisher* self) -{ -} - - -void -spit_publishing_publisher_reserved4 (SpitPublishingPublisher* self) -{ -#line 149 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 149 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved4 (self); -#line 640 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_real_reserved5 (SpitPublishingPublisher* self) -{ -} - - -void -spit_publishing_publisher_reserved5 (SpitPublishingPublisher* self) -{ -#line 150 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 150 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved5 (self); -#line 657 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_real_reserved6 (SpitPublishingPublisher* self) -{ -} - - -void -spit_publishing_publisher_reserved6 (SpitPublishingPublisher* self) -{ -#line 151 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 151 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved6 (self); -#line 674 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_real_reserved7 (SpitPublishingPublisher* self) -{ -} - - -void -spit_publishing_publisher_reserved7 (SpitPublishingPublisher* self) -{ -#line 152 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHER (self)); -#line 152 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHER_GET_INTERFACE (self)->reserved7 (self); -#line 691 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publisher_base_init (SpitPublishingPublisherIface * iface) -{ -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - static gboolean initialized = FALSE; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - if (!initialized) { -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - initialized = TRUE; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved0 = spit_publishing_publisher_real_reserved0; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved1 = spit_publishing_publisher_real_reserved1; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved2 = spit_publishing_publisher_real_reserved2; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved3 = spit_publishing_publisher_real_reserved3; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved4 = spit_publishing_publisher_real_reserved4; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved5 = spit_publishing_publisher_real_reserved5; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved6 = spit_publishing_publisher_real_reserved6; -#line 105 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved7 = spit_publishing_publisher_real_reserved7; -#line 720 "PublishingInterfaces.c" - } -} - - -/** - * Represents a connection to a publishing service. - * - * Developers of publishing plugins provide a class that implements this interface. At - * any given time, only one Publisher can be running. When a publisher is running, it is - * allowed to access the network and has exclusive use of the shared user-interface and - * configuration services provided by the {@link PluginHost}. Publishers are created in - * a non-running state and do not begin running until start( ) is invoked. Publishers - * run until stop( ) is invoked. - */ -GType -spit_publishing_publisher_get_type (void) -{ - static volatile gsize spit_publishing_publisher_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_publisher_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingPublisherIface), (GBaseInitFunc) spit_publishing_publisher_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_publishing_publisher_type_id; - spit_publishing_publisher_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingPublisher", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_publishing_publisher_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_publishing_publisher_type_id__volatile, spit_publishing_publisher_type_id); - } - return spit_publishing_publisher_type_id__volatile; -} - - -/** - * Describes how the on-screen publishing dialog box should look and behave when an associated - * pane is installed in the on-screen publishing dialog box. - */ -GType -spit_publishing_dialog_pane_geometry_options_get_type (void) -{ - static volatile gsize spit_publishing_dialog_pane_geometry_options_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_dialog_pane_geometry_options_type_id__volatile)) { - static const GEnumValue values[] = {{SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE, "SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE", "none"}, {SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE, "SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE", "extended-size"}, {SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE, "SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE", "resizable"}, {SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE, "SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE", "colossal-size"}, {0, NULL, NULL}}; - GType spit_publishing_dialog_pane_geometry_options_type_id; - spit_publishing_dialog_pane_geometry_options_type_id = g_enum_register_static ("SpitPublishingDialogPaneGeometryOptions", values); - g_once_init_leave (&spit_publishing_dialog_pane_geometry_options_type_id__volatile, spit_publishing_dialog_pane_geometry_options_type_id); - } - return spit_publishing_dialog_pane_geometry_options_type_id__volatile; -} - - -/** - * Returns the Gtk.Widget that is this pane's on-screen representation. - */ -GtkWidget* -spit_publishing_dialog_pane_get_widget (SpitPublishingDialogPane* self) -{ -#line 197 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self), NULL); -#line 197 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->get_widget (self); -#line 778 "PublishingInterfaces.c" -} - - -/** - * Returns a {@link GeometryOptions} bitfield describing how the on-screen publishing dialog - * box should look and behave when this pane is installed. - */ -SpitPublishingDialogPaneGeometryOptions -spit_publishing_dialog_pane_get_preferred_geometry (SpitPublishingDialogPane* self) -{ -#line 203 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self), 0); -#line 203 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->get_preferred_geometry (self); -#line 793 "PublishingInterfaces.c" -} - - -/** - * Invoked automatically by Shotwell when this pane has been installed into the on-screen - * publishing dialog box and become visible to the user. - */ -void -spit_publishing_dialog_pane_on_pane_installed (SpitPublishingDialogPane* self) -{ -#line 209 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 209 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->on_pane_installed (self); -#line 808 "PublishingInterfaces.c" -} - - -/** - * Invoked automatically by Shotwell when this pane has been removed from the on-screen - * publishing dialog box and is no longer visible to the user. - */ -void -spit_publishing_dialog_pane_on_pane_uninstalled (SpitPublishingDialogPane* self) -{ -#line 215 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 215 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->on_pane_uninstalled (self); -#line 823 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_real_reserved0 (SpitPublishingDialogPane* self) -{ -} - - -void -spit_publishing_dialog_pane_reserved0 (SpitPublishingDialogPane* self) -{ -#line 220 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 220 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved0 (self); -#line 840 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_real_reserved1 (SpitPublishingDialogPane* self) -{ -} - - -void -spit_publishing_dialog_pane_reserved1 (SpitPublishingDialogPane* self) -{ -#line 221 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 221 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved1 (self); -#line 857 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_real_reserved2 (SpitPublishingDialogPane* self) -{ -} - - -void -spit_publishing_dialog_pane_reserved2 (SpitPublishingDialogPane* self) -{ -#line 222 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 222 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved2 (self); -#line 874 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_real_reserved3 (SpitPublishingDialogPane* self) -{ -} - - -void -spit_publishing_dialog_pane_reserved3 (SpitPublishingDialogPane* self) -{ -#line 223 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 223 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved3 (self); -#line 891 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_real_reserved4 (SpitPublishingDialogPane* self) -{ -} - - -void -spit_publishing_dialog_pane_reserved4 (SpitPublishingDialogPane* self) -{ -#line 224 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 224 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved4 (self); -#line 908 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_real_reserved5 (SpitPublishingDialogPane* self) -{ -} - - -void -spit_publishing_dialog_pane_reserved5 (SpitPublishingDialogPane* self) -{ -#line 225 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 225 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved5 (self); -#line 925 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_real_reserved6 (SpitPublishingDialogPane* self) -{ -} - - -void -spit_publishing_dialog_pane_reserved6 (SpitPublishingDialogPane* self) -{ -#line 226 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 226 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved6 (self); -#line 942 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_real_reserved7 (SpitPublishingDialogPane* self) -{ -} - - -void -spit_publishing_dialog_pane_reserved7 (SpitPublishingDialogPane* self) -{ -#line 227 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (self)); -#line 227 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_DIALOG_PANE_GET_INTERFACE (self)->reserved7 (self); -#line 959 "PublishingInterfaces.c" -} - - -static void -spit_publishing_dialog_pane_base_init (SpitPublishingDialogPaneIface * iface) -{ -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - static gboolean initialized = FALSE; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - if (!initialized) { -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - initialized = TRUE; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved0 = spit_publishing_dialog_pane_real_reserved0; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved1 = spit_publishing_dialog_pane_real_reserved1; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved2 = spit_publishing_dialog_pane_real_reserved2; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved3 = spit_publishing_dialog_pane_real_reserved3; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved4 = spit_publishing_dialog_pane_real_reserved4; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved5 = spit_publishing_dialog_pane_real_reserved5; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved6 = spit_publishing_dialog_pane_real_reserved6; -#line 160 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved7 = spit_publishing_dialog_pane_real_reserved7; -#line 988 "PublishingInterfaces.c" - } -} - - -/** - * Encapsulates a pane that can be installed in the on-screen publishing dialog box to - * communicate status to and to get information from the user. - * - */ -GType -spit_publishing_dialog_pane_get_type (void) -{ - static volatile gsize spit_publishing_dialog_pane_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_dialog_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingDialogPaneIface), (GBaseInitFunc) spit_publishing_dialog_pane_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_publishing_dialog_pane_type_id; - spit_publishing_dialog_pane_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingDialogPane", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_publishing_dialog_pane_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_publishing_dialog_pane_type_id__volatile, spit_publishing_dialog_pane_type_id); - } - return spit_publishing_dialog_pane_type_id__volatile; -} - - -/** - * Specifies the label text on the push button control that appears in the - * lower-right-hand corner of the on-screen publishing dialog box. - */ -GType -spit_publishing_plugin_host_button_mode_get_type (void) -{ - static volatile gsize spit_publishing_plugin_host_button_mode_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_plugin_host_button_mode_type_id__volatile)) { - static const GEnumValue values[] = {{SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE, "SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE", "close"}, {SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL, "SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL", "cancel"}, {0, NULL, NULL}}; - GType spit_publishing_plugin_host_button_mode_type_id; - spit_publishing_plugin_host_button_mode_type_id = g_enum_register_static ("SpitPublishingPluginHostButtonMode", values); - g_once_init_leave (&spit_publishing_plugin_host_button_mode_type_id__volatile, spit_publishing_plugin_host_button_mode_type_id); - } - return spit_publishing_plugin_host_button_mode_type_id__volatile; -} - - -/** - * Notifies the user that an unrecoverable publishing error has occurred and halts - * the publishing process. - * - * @param err An error object that describes the kind of error that occurred. - */ -void -spit_publishing_plugin_host_post_error (SpitPublishingPluginHost* self, - GError* err) -{ -#line 277 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 277 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->post_error (self, err); -#line 1045 "PublishingInterfaces.c" -} - - -/** - * Halts the publishing process. - * - * Calling this method stops all network activity and hides the on-screen publishing - * dialog box. - */ -void -spit_publishing_plugin_host_stop_publishing (SpitPublishingPluginHost* self) -{ -#line 285 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 285 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->stop_publishing (self); -#line 1062 "PublishingInterfaces.c" -} - - -/** - * Returns a reference to the {@link Publisher} object that this is currently hosting. - */ -SpitPublishingPublisher* -spit_publishing_plugin_host_get_publisher (SpitPublishingPluginHost* self) -{ -#line 290 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self), NULL); -#line 290 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->get_publisher (self); -#line 1076 "PublishingInterfaces.c" -} - - -/** - * Attempts to install a pane in the on-screen publishing dialog box, making the pane visible - * and allowing it to interact with the user. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param pane the pane to install - * - * @param mode allows you to set the text displayed on the close/cancel button in the - * lower-right-hand corner of the on-screen publishing dialog box when pane is installed. - * If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is - * ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on - * whether a cancellable action is in progress. For example, if your publisher is in the - * middle of uploading 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if - * the publishing operation has completed and the success pane is displayed, then mode - * should be ButtonMode.CLOSE, because all cancellable publishing actions have already - * occurred. - */ -void -spit_publishing_plugin_host_install_dialog_pane (SpitPublishingPluginHost* self, - SpitPublishingDialogPane* pane, - SpitPublishingPluginHostButtonMode mode) -{ -#line 310 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 310 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_dialog_pane (self, pane, mode); -#line 1107 "PublishingInterfaces.c" -} - - -/** - * Attempts to install a pane in the on-screen publishing dialog box that contains - * static text. - * - * The text appears centered in the publishing dialog box and is drawn in - * the system font. This is a convenience method only; similar results could be - * achieved by manually constructing a Gtk.Label widget, wrapping it inside a - * {@link DialogPane}, and installing it manually with a call to - * install_dialog_pane( ). To provide visual consistency across publishing services, - * however, always use this convenience method instead of constructing label panes when - * you need to display static text to the user. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param message the text to show in the pane - * - * @param mode allows you to set the text displayed on the close/cancel button in the - * lower-right-hand corner of the on-screen publishing dialog box when pane is installed. - * If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is - * ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on - * whether a cancellable action is in progress. For example, if your publisher is in the - * middle of uploading 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if - * the publishing operation has completed and the success pane is displayed, then mode - * should be ButtonMode.CLOSE, because all cancellable publishing actions have already - * occurred. - */ -void -spit_publishing_plugin_host_install_static_message_pane (SpitPublishingPluginHost* self, - const gchar* message, - SpitPublishingPluginHostButtonMode mode) -{ -#line 339 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 339 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_static_message_pane (self, message, mode); -#line 1146 "PublishingInterfaces.c" -} - - -/** - * Works just like {@link install_static_message_pane} but allows markup to contain - * Pango text formatting tags as well as unstyled text. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param markup the text to show in the pane, marked up with Pango formatting tags. - * - * @param mode allows you to set the text displayed on the close/cancel button in the - * lower-right-hand corner of the on-screen publishing dialog box when pane is installed. - * If mode is ButtonMode.CLOSE, the button will have the title "Close." If mode is - * ButtonMode.CANCEL, the button will be titled "Cancel." You should set mode depending on - * whether a cancellable action is in progress. For example, if your publisher is in the - * middle of uploading 3 of 8 videos, then mode should be ButtonMode.CANCEL. However, if - * the publishing operation has completed and the success pane is displayed, then mode - * should be ButtonMode.CLOSE, because all cancellable publishing actions have already - * occurred. - */ -void -spit_publishing_plugin_host_install_pango_message_pane (SpitPublishingPluginHost* self, - const gchar* markup, - SpitPublishingPluginHostButtonMode mode) -{ -#line 360 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 360 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_pango_message_pane (self, markup, mode); -#line 1177 "PublishingInterfaces.c" -} - - -/** - * Attempts to install a pane in the on-screen publishing dialog box notifying the user - * that his or her publishing operation completed successfully. - * - * The text displayed depends on the type of media the current publishing service - * supports. To provide visual consistency across publishing services and to allow - * Shotwell to handle internationalization, always use this convenience method; don’t - * contruct and install success panes manually. - * - * If an error has posted, the {@link PluginHost} will not honor - * this request. - */ -void -spit_publishing_plugin_host_install_success_pane (SpitPublishingPluginHost* self) -{ -#line 375 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 375 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_success_pane (self); -#line 1200 "PublishingInterfaces.c" -} - - -/** - * Attempts to install a pane displaying the static text “Fetching account information...” - * in the on-screen publishing dialog box, making it visible to the user. - * - * This is a convenience method only; similar results could be achieved by calling - * {@link install_static_message_pane} with an appropriate text argument. To provide - * visual consistency across publishing services and to allow Shotwell to handle - * internationalization, however, you should always use this convenience method whenever - * you need to tell the user that you’re querying account information over the network. - * Queries such as this are almost always performed immediately after the user has logged - * in to the remote service. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - */ -void -spit_publishing_plugin_host_install_account_fetch_wait_pane (SpitPublishingPluginHost* self) -{ -#line 391 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 391 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_account_fetch_wait_pane (self); -#line 1225 "PublishingInterfaces.c" -} - - -/** - * Works just like {@link install_account_fetch_wait_pane} but displays the static text - * “Logging in...“ - * - * As with {@link install_account_fetch_wait_pane}, this is a convenience method, but - * you should you use it provide to visual consistency and to let Shotwell handle - * internationalization. See the description of {@link install_account_fetch_wait_pane} - * for more information. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - */ -void -spit_publishing_plugin_host_install_login_wait_pane (SpitPublishingPluginHost* self) -{ -#line 405 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 405 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_login_wait_pane (self); -#line 1247 "PublishingInterfaces.c" -} - - -/** - * Attempts to install a pane displaying the text 'welcome_message' above a push - * button labeled “Login” in the on-screen publishing dialog box, making it visible to the - * user. - * - * When the user clicks the “Login” button, you’ll be notified of the user’s action through - * the callback 'on_login_clicked'. Every Publisher should provide a welcome pane to - * introduce the service and explain service-specific features or restrictions. To provide - * visual consistency across publishing services and to allow Shotwell to handle - * internationalization, always use this convenience method; don’t contruct and install - * welcome panes manually. - * - * If an error has posted, the {@link PluginHost} will not honor this request. - * - * @param welcome_message the text to be displayed above a push button labeled “Login” - * in the on-screen publishing dialog box. - * - * @param on_login_clicked specifies the callback that is invoked when the user clicks - * the “Login” button. - */ -void -spit_publishing_plugin_host_install_welcome_pane (SpitPublishingPluginHost* self, - const gchar* welcome_message, - SpitPublishingLoginCallback on_login_clicked, - void* on_login_clicked_target) -{ -#line 427 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 427 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->install_welcome_pane (self, welcome_message, on_login_clicked, on_login_clicked_target); -#line 1281 "PublishingInterfaces.c" -} - - -/** - * Toggles whether the service selector combo box in the upper-right-hand corner of the - * on-screen publishing dialog box is sensitive to input. - * - * Publishers should make the service selector box insensitive to input when they are performing - * non-interruptible file or network operations, since switching to another publishing - * service will halt whatever service is currently running. Under certain circumstances, - * the {@link PluginHost} may not honor this request. - * - * @param is_locked when is_locked is true, the service selector combo box is made insensitive. - * It appears greyed out and the user is prevented from switching to another publishing service. - * When is_locked is false, the combo box is sensitive, allowing the user to freely switch - * from the current service to another service. - */ -void -spit_publishing_plugin_host_set_service_locked (SpitPublishingPluginHost* self, - gboolean is_locked) -{ -#line 444 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 444 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->set_service_locked (self, is_locked); -#line 1307 "PublishingInterfaces.c" -} - - -/** - * Makes the designated widget the default widget for the publishing dialog. - * - * After a call to this method, the designated widget will be activated whenever the user - * presses the [ENTER] key anywhere in the on-screen publishing dialog box. Under certain - * circumstances, the {@link PluginHost} may not honor this request. - * - * @param widget a reference to the widget to designate as the default widget for the - * publishing dialog. - */ -void -spit_publishing_plugin_host_set_dialog_default_widget (SpitPublishingPluginHost* self, - GtkWidget* widget) -{ -#line 456 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 456 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->set_dialog_default_widget (self, widget); -#line 1329 "PublishingInterfaces.c" -} - - -/** - * Returns an array of the publishable media items that the user has selected for upload to the - * remote service. - */ -SpitPublishingPublishable** -spit_publishing_plugin_host_get_publishables (SpitPublishingPluginHost* self, - int* result_length1) -{ -#line 462 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self), NULL); -#line 462 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->get_publishables (self, result_length1); -#line 1345 "PublishingInterfaces.c" -} - - -/** - * Writes all of the publishable media items that the user has selected for upload to the - * remote service to a temporary directory on a local disk. - * - * You should call this method immediately before sending the publishable media items to the - * remote service over the network. Because serializing several megabytes of data is a - * potentially lengthy operation, calling this method installs an activity status pane in - * the on-screen publishing dialog box. The activity status pane displays a progress bar along - * with a string of informational text. - * - * Because sending items over the network to the remote service is also a potentially lengthy - * operation, you should leave the activity status pane installed in the on-screen publishing - * dialog box until this task is finished. Periodically during the sending process, you should - * report to the user on the progress of his or her upload. You can do this by invoking the - * returned {@link ProgressCallback} delegate. - * - * After calling this method, the activity status pane that this method installs remains - * displayed in the on-screen publishing dialog box until you install a new pane. - * - * @param content_major_axis when serializing publishable media items that are photos, - * ensure that neither the width nor the height of the serialized - * photo is greater than content_major_axis pixels. The value of - * this parameter has no effect on video publishables. - * - * @param strip_metadata when serializing publishable media items that are photos, if - * strip_metadata is true, all EXIF, IPTC, and XMP metadata will be - * removed from the serialized file. If strip_metadata is false, all - * metadata will be left intact. The value of this parameter has no - * effect on video publishables. - */ -SpitPublishingProgressCallback -spit_publishing_plugin_host_serialize_publishables (SpitPublishingPluginHost* self, - gint content_major_axis, - gboolean strip_metadata, - void** result_target, - GDestroyNotify* result_target_destroy_notify) -{ -#line 494 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self), NULL); -#line 494 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->serialize_publishables (self, content_major_axis, strip_metadata, result_target, result_target_destroy_notify); -#line 1390 "PublishingInterfaces.c" -} - - -/** - * Returns a {@link Publisher.MediaType} bitfield describing which kinds of media are present - * in the set of publishable media items that the user has selected for upload to the remote - * service. - */ -SpitPublishingPublisherMediaType -spit_publishing_plugin_host_get_publishable_media_type (SpitPublishingPluginHost* self) -{ -#line 502 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self), 0); -#line 502 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->get_publishable_media_type (self); -#line 1406 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_real_reserved0 (SpitPublishingPluginHost* self) -{ -} - - -void -spit_publishing_plugin_host_reserved0 (SpitPublishingPluginHost* self) -{ -#line 507 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 507 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved0 (self); -#line 1423 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_real_reserved1 (SpitPublishingPluginHost* self) -{ -} - - -void -spit_publishing_plugin_host_reserved1 (SpitPublishingPluginHost* self) -{ -#line 508 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 508 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved1 (self); -#line 1440 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_real_reserved2 (SpitPublishingPluginHost* self) -{ -} - - -void -spit_publishing_plugin_host_reserved2 (SpitPublishingPluginHost* self) -{ -#line 509 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 509 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved2 (self); -#line 1457 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_real_reserved3 (SpitPublishingPluginHost* self) -{ -} - - -void -spit_publishing_plugin_host_reserved3 (SpitPublishingPluginHost* self) -{ -#line 510 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 510 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved3 (self); -#line 1474 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_real_reserved4 (SpitPublishingPluginHost* self) -{ -} - - -void -spit_publishing_plugin_host_reserved4 (SpitPublishingPluginHost* self) -{ -#line 511 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 511 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved4 (self); -#line 1491 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_real_reserved5 (SpitPublishingPluginHost* self) -{ -} - - -void -spit_publishing_plugin_host_reserved5 (SpitPublishingPluginHost* self) -{ -#line 512 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 512 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved5 (self); -#line 1508 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_real_reserved6 (SpitPublishingPluginHost* self) -{ -} - - -void -spit_publishing_plugin_host_reserved6 (SpitPublishingPluginHost* self) -{ -#line 513 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 513 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved6 (self); -#line 1525 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_real_reserved7 (SpitPublishingPluginHost* self) -{ -} - - -void -spit_publishing_plugin_host_reserved7 (SpitPublishingPluginHost* self) -{ -#line 514 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (self)); -#line 514 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PLUGIN_HOST_GET_INTERFACE (self)->reserved7 (self); -#line 1542 "PublishingInterfaces.c" -} - - -static void -spit_publishing_plugin_host_base_init (SpitPublishingPluginHostIface * iface) -{ -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - static gboolean initialized = FALSE; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - if (!initialized) { -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - initialized = TRUE; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved0 = spit_publishing_plugin_host_real_reserved0; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved1 = spit_publishing_plugin_host_real_reserved1; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved2 = spit_publishing_plugin_host_real_reserved2; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved3 = spit_publishing_plugin_host_real_reserved3; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved4 = spit_publishing_plugin_host_real_reserved4; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved5 = spit_publishing_plugin_host_real_reserved5; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved6 = spit_publishing_plugin_host_real_reserved6; -#line 260 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved7 = spit_publishing_plugin_host_real_reserved7; -#line 1571 "PublishingInterfaces.c" - } -} - - -/** - * Manages and provides services for publishing plugins. - * - * Implemented inside Shotwell, the PluginHost provides an interface through which the - * developers of publishing plugins can query and make changes to the publishing - * environment. For example, through the PluginHost, plugins can get a list of the photos - * and videos to be published, install and remove user-interface panes in the publishing - * dialog box, and request that the items to be uploaded be serialized to a temporary - * directory on disk. Plugins can use the services of the PluginHost only when their - * {@link Publisher} is in the running state. This ensures that non-running publishers - * don’t destructively interfere with the actively running publisher. - */ -GType -spit_publishing_plugin_host_get_type (void) -{ - static volatile gsize spit_publishing_plugin_host_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_plugin_host_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingPluginHostIface), (GBaseInitFunc) spit_publishing_plugin_host_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_publishing_plugin_host_type_id; - spit_publishing_plugin_host_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingPluginHost", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_publishing_plugin_host_type_id, G_TYPE_OBJECT); - g_type_interface_add_prerequisite (spit_publishing_plugin_host_type_id, SPIT_TYPE_HOST_INTERFACE); - g_once_init_leave (&spit_publishing_plugin_host_type_id__volatile, spit_publishing_plugin_host_type_id); - } - return spit_publishing_plugin_host_type_id__volatile; -} - - -/** - * Returns a handle to the file on disk to which this publishable's data has been - * serialized. - * - * You should use this file handle to read into memory the binary data you will send over - * the network to the remote publishing service when this publishable is uploaded. - */ -GFile* -spit_publishing_publishable_get_serialized_file (SpitPublishingPublishable* self) -{ -#line 535 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL); -#line 535 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_serialized_file (self); -#line 1618 "PublishingInterfaces.c" -} - - -/** - * Returns a name that can be used to identify this publishable to the remote service. - * If the publishing host cannot derive a sensible name, this method will - * return an empty string. Plugins should be able to handle that situation - * and provide a fallback value. One possible option for a fallback is: - * get_param_string(Spit.Publishing.Publishable.PARAM_STRING_BASENAME) - */ -gchar* -spit_publishing_publishable_get_publishing_name (SpitPublishingPublishable* self) -{ -#line 544 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL); -#line 544 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_publishing_name (self); -#line 1636 "PublishingInterfaces.c" -} - - -/** - * Returns a string value from the publishable corresponding with the parameter name - * provided, or null if there is no value for this name. - */ -gchar* -spit_publishing_publishable_get_param_string (SpitPublishingPublishable* self, - const gchar* name) -{ -#line 550 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL); -#line 550 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_param_string (self, name); -#line 1652 "PublishingInterfaces.c" -} - - -/** - * Returns an array of strings that should be used to tag or mark this publishable on the - * remote service, or null if this publishable has no tags or markings. - */ -gchar** -spit_publishing_publishable_get_publishing_keywords (SpitPublishingPublishable* self, - int* result_length1) -{ -#line 556 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL); -#line 556 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_publishing_keywords (self, result_length1); -#line 1668 "PublishingInterfaces.c" -} - - -/** - * Returns the kind of media item this publishable encapsulates. - */ -SpitPublishingPublisherMediaType -spit_publishing_publishable_get_media_type (SpitPublishingPublishable* self) -{ -#line 561 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), 0); -#line 561 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_media_type (self); -#line 1682 "PublishingInterfaces.c" -} - - -/** - * Returns the creation timestamp on the file. - */ -GDateTime* -spit_publishing_publishable_get_exposure_date_time (SpitPublishingPublishable* self) -{ -#line 566 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self), NULL); -#line 566 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->get_exposure_date_time (self); -#line 1696 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_real_reserved0 (SpitPublishingPublishable* self) -{ -} - - -void -spit_publishing_publishable_reserved0 (SpitPublishingPublishable* self) -{ -#line 571 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self)); -#line 571 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved0 (self); -#line 1713 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_real_reserved1 (SpitPublishingPublishable* self) -{ -} - - -void -spit_publishing_publishable_reserved1 (SpitPublishingPublishable* self) -{ -#line 572 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self)); -#line 572 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved1 (self); -#line 1730 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_real_reserved2 (SpitPublishingPublishable* self) -{ -} - - -void -spit_publishing_publishable_reserved2 (SpitPublishingPublishable* self) -{ -#line 573 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self)); -#line 573 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved2 (self); -#line 1747 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_real_reserved3 (SpitPublishingPublishable* self) -{ -} - - -void -spit_publishing_publishable_reserved3 (SpitPublishingPublishable* self) -{ -#line 574 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self)); -#line 574 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved3 (self); -#line 1764 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_real_reserved4 (SpitPublishingPublishable* self) -{ -} - - -void -spit_publishing_publishable_reserved4 (SpitPublishingPublishable* self) -{ -#line 575 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self)); -#line 575 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved4 (self); -#line 1781 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_real_reserved5 (SpitPublishingPublishable* self) -{ -} - - -void -spit_publishing_publishable_reserved5 (SpitPublishingPublishable* self) -{ -#line 576 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self)); -#line 576 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved5 (self); -#line 1798 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_real_reserved6 (SpitPublishingPublishable* self) -{ -} - - -void -spit_publishing_publishable_reserved6 (SpitPublishingPublishable* self) -{ -#line 577 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self)); -#line 577 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved6 (self); -#line 1815 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_real_reserved7 (SpitPublishingPublishable* self) -{ -} - - -void -spit_publishing_publishable_reserved7 (SpitPublishingPublishable* self) -{ -#line 578 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (self)); -#line 578 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_PUBLISHABLE_GET_INTERFACE (self)->reserved7 (self); -#line 1832 "PublishingInterfaces.c" -} - - -static void -spit_publishing_publishable_base_init (SpitPublishingPublishableIface * iface) -{ -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - static gboolean initialized = FALSE; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - if (!initialized) { -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - initialized = TRUE; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved0 = spit_publishing_publishable_real_reserved0; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved1 = spit_publishing_publishable_real_reserved1; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved2 = spit_publishing_publishable_real_reserved2; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved3 = spit_publishing_publishable_real_reserved3; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved4 = spit_publishing_publishable_real_reserved4; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved5 = spit_publishing_publishable_real_reserved5; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved6 = spit_publishing_publishable_real_reserved6; -#line 521 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved7 = spit_publishing_publishable_real_reserved7; -#line 1861 "PublishingInterfaces.c" - } -} - - -/** - * Describes an underlying media item (such as a photo or a video) that your plugin - * uploads to a remote publishing service. - */ -GType -spit_publishing_publishable_get_type (void) -{ - static volatile gsize spit_publishing_publishable_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_publishable_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingPublishableIface), (GBaseInitFunc) spit_publishing_publishable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_publishing_publishable_type_id; - spit_publishing_publishable_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingPublishable", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_publishing_publishable_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_publishing_publishable_type_id__volatile, spit_publishing_publishable_type_id); - } - return spit_publishing_publishable_type_id__volatile; -} - - -/** - * A factory method that instantiates and returns a new {@link Publisher} object that - * encapsulates a connection to the remote publishing service that this Service describes. - */ -SpitPublishingPublisher* -spit_publishing_service_create_publisher (SpitPublishingService* self, - SpitPublishingPluginHost* host) -{ -#line 591 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (self), NULL); -#line 591 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->create_publisher (self, host); -#line 1897 "PublishingInterfaces.c" -} - - -/** - * Returns the kinds of media that this service can work with. - */ -SpitPublishingPublisherMediaType -spit_publishing_service_get_supported_media (SpitPublishingService* self) -{ -#line 596 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (self), 0); -#line 596 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->get_supported_media (self); -#line 1911 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_real_reserved0 (SpitPublishingService* self) -{ -} - - -void -spit_publishing_service_reserved0 (SpitPublishingService* self) -{ -#line 601 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self)); -#line 601 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved0 (self); -#line 1928 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_real_reserved1 (SpitPublishingService* self) -{ -} - - -void -spit_publishing_service_reserved1 (SpitPublishingService* self) -{ -#line 602 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self)); -#line 602 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved1 (self); -#line 1945 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_real_reserved2 (SpitPublishingService* self) -{ -} - - -void -spit_publishing_service_reserved2 (SpitPublishingService* self) -{ -#line 603 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self)); -#line 603 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved2 (self); -#line 1962 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_real_reserved3 (SpitPublishingService* self) -{ -} - - -void -spit_publishing_service_reserved3 (SpitPublishingService* self) -{ -#line 604 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self)); -#line 604 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved3 (self); -#line 1979 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_real_reserved4 (SpitPublishingService* self) -{ -} - - -void -spit_publishing_service_reserved4 (SpitPublishingService* self) -{ -#line 605 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self)); -#line 605 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved4 (self); -#line 1996 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_real_reserved5 (SpitPublishingService* self) -{ -} - - -void -spit_publishing_service_reserved5 (SpitPublishingService* self) -{ -#line 606 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self)); -#line 606 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved5 (self); -#line 2013 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_real_reserved6 (SpitPublishingService* self) -{ -} - - -void -spit_publishing_service_reserved6 (SpitPublishingService* self) -{ -#line 607 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self)); -#line 607 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved6 (self); -#line 2030 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_real_reserved7 (SpitPublishingService* self) -{ -} - - -void -spit_publishing_service_reserved7 (SpitPublishingService* self) -{ -#line 608 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_SERVICE (self)); -#line 608 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_SERVICE_GET_INTERFACE (self)->reserved7 (self); -#line 2047 "PublishingInterfaces.c" -} - - -static void -spit_publishing_service_base_init (SpitPublishingServiceIface * iface) -{ -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - static gboolean initialized = FALSE; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - if (!initialized) { -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - initialized = TRUE; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved0 = spit_publishing_service_real_reserved0; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved1 = spit_publishing_service_real_reserved1; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved2 = spit_publishing_service_real_reserved2; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved3 = spit_publishing_service_real_reserved3; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved4 = spit_publishing_service_real_reserved4; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved5 = spit_publishing_service_real_reserved5; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved6 = spit_publishing_service_real_reserved6; -#line 586 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - iface->reserved7 = spit_publishing_service_real_reserved7; -#line 2076 "PublishingInterfaces.c" - } -} - - -/** - * Describes the features and capabilities of a remote publishing service. - * - * Developers of publishing plugins provide a class that implements this interface. - */ -GType -spit_publishing_service_get_type (void) -{ - static volatile gsize spit_publishing_service_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_service_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingServiceIface), (GBaseInitFunc) spit_publishing_service_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_publishing_service_type_id; - spit_publishing_service_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingService", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_publishing_service_type_id, G_TYPE_OBJECT); - g_type_interface_add_prerequisite (spit_publishing_service_type_id, SPIT_TYPE_PLUGGABLE); - g_once_init_leave (&spit_publishing_service_type_id__volatile, spit_publishing_service_type_id); - } - return spit_publishing_service_type_id__volatile; -} - - -void -spit_publishing_authenticator_authenticate (SpitPublishingAuthenticator* self) -{ -#line 615 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (self)); -#line 615 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE (self)->authenticate (self); -#line 2109 "PublishingInterfaces.c" -} - - -gboolean -spit_publishing_authenticator_can_logout (SpitPublishingAuthenticator* self) -{ -#line 616 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (self), FALSE); -#line 616 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE (self)->can_logout (self); -#line 2120 "PublishingInterfaces.c" -} - - -void -spit_publishing_authenticator_logout (SpitPublishingAuthenticator* self) -{ -#line 617 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (self)); -#line 617 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE (self)->logout (self); -#line 2131 "PublishingInterfaces.c" -} - - -void -spit_publishing_authenticator_refresh (SpitPublishingAuthenticator* self) -{ -#line 618 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (self)); -#line 618 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE (self)->refresh (self); -#line 2142 "PublishingInterfaces.c" -} - - -GHashTable* -spit_publishing_authenticator_get_authentication_parameter (SpitPublishingAuthenticator* self) -{ -#line 620 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR (self), NULL); -#line 620 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_AUTHENTICATOR_GET_INTERFACE (self)->get_authentication_parameter (self); -#line 2153 "PublishingInterfaces.c" -} - - -static void -spit_publishing_authenticator_base_init (SpitPublishingAuthenticatorIface * iface) -{ -#line 611 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - static gboolean initialized = FALSE; -#line 611 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - if (!initialized) { -#line 611 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - initialized = TRUE; -#line 611 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - spit_publishing_authenticator_signals[SPIT_PUBLISHING_AUTHENTICATOR_AUTHENTICATED_SIGNAL] = g_signal_new ("authenticated", SPIT_PUBLISHING_TYPE_AUTHENTICATOR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 611 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - spit_publishing_authenticator_signals[SPIT_PUBLISHING_AUTHENTICATOR_AUTHENTICATION_FAILED_SIGNAL] = g_signal_new ("authentication-failed", SPIT_PUBLISHING_TYPE_AUTHENTICATOR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 2170 "PublishingInterfaces.c" - } -} - - -GType -spit_publishing_authenticator_get_type (void) -{ - static volatile gsize spit_publishing_authenticator_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_authenticator_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingAuthenticatorIface), (GBaseInitFunc) spit_publishing_authenticator_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_publishing_authenticator_type_id; - spit_publishing_authenticator_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingAuthenticator", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_publishing_authenticator_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_publishing_authenticator_type_id__volatile, spit_publishing_authenticator_type_id); - } - return spit_publishing_authenticator_type_id__volatile; -} - - -GeeList* -spit_publishing_authenticator_factory_get_available_authenticators (SpitPublishingAuthenticatorFactory* self) -{ -#line 628 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR_FACTORY (self), NULL); -#line 628 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_AUTHENTICATOR_FACTORY_GET_INTERFACE (self)->get_available_authenticators (self); -#line 2197 "PublishingInterfaces.c" -} - - -SpitPublishingAuthenticator* -spit_publishing_authenticator_factory_create (SpitPublishingAuthenticatorFactory* self, - const gchar* provider, - SpitPublishingPluginHost* host) -{ -#line 629 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_AUTHENTICATOR_FACTORY (self), NULL); -#line 629 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - return SPIT_PUBLISHING_AUTHENTICATOR_FACTORY_GET_INTERFACE (self)->create (self, provider, host); -#line 2210 "PublishingInterfaces.c" -} - - -static void -spit_publishing_authenticator_factory_base_init (SpitPublishingAuthenticatorFactoryIface * iface) -{ -#line 623 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - static gboolean initialized = FALSE; -#line 623 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - if (!initialized) { -#line 623 "/home/jens/Source/shotwell/src/plugins/PublishingInterfaces.vala" - initialized = TRUE; -#line 2223 "PublishingInterfaces.c" - } -} - - -GType -spit_publishing_authenticator_factory_get_type (void) -{ - static volatile gsize spit_publishing_authenticator_factory_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_authenticator_factory_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingAuthenticatorFactoryIface), (GBaseInitFunc) spit_publishing_authenticator_factory_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_publishing_authenticator_factory_type_id; - spit_publishing_authenticator_factory_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPublishingAuthenticatorFactory", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_publishing_authenticator_factory_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_publishing_authenticator_factory_type_id__volatile, spit_publishing_authenticator_factory_type_id); - } - return spit_publishing_authenticator_factory_type_id__volatile; -} - - - diff --git a/src/plugins/SpitInterfaces.c b/src/plugins/SpitInterfaces.c deleted file mode 100644 index d890484..0000000 --- a/src/plugins/SpitInterfaces.c +++ /dev/null @@ -1,1548 +0,0 @@ -/* SpitInterfaces.c generated by valac 0.40.4, the Vala compiler - * generated from SpitInterfaces.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define SPIT_TYPE_ENTRY_POINT_PARAMS (spit_entry_point_params_get_type ()) -typedef struct _SpitEntryPointParams SpitEntryPointParams; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define SPIT_TYPE_MODULE (spit_module_get_type ()) -#define SPIT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_MODULE, SpitModule)) -#define SPIT_IS_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_MODULE)) -#define SPIT_MODULE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_MODULE, SpitModuleIface)) - -typedef struct _SpitModule SpitModule; -typedef struct _SpitModuleIface SpitModuleIface; - -#define SPIT_TYPE_PLUGGABLE (spit_pluggable_get_type ()) -#define SPIT_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggable)) -#define SPIT_IS_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_PLUGGABLE)) -#define SPIT_PLUGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggableIface)) - -typedef struct _SpitPluggable SpitPluggable; -typedef struct _SpitPluggableIface SpitPluggableIface; - -#define SPIT_TYPE_PLUGGABLE_INFO (spit_pluggable_info_get_type ()) -typedef struct _SpitPluggableInfo SpitPluggableInfo; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define SPIT_TYPE_HOST_INTERFACE (spit_host_interface_get_type ()) -#define SPIT_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterface)) -#define SPIT_IS_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_HOST_INTERFACE)) -#define SPIT_HOST_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterfaceIface)) - -typedef struct _SpitHostInterface SpitHostInterface; -typedef struct _SpitHostInterfaceIface SpitHostInterfaceIface; - -struct _SpitEntryPointParams { - gint host_min_spit_interface; - gint host_max_spit_interface; - gint module_spit_interface; - GFile* module_file; -}; - -struct _SpitPluggableInfo { - gchar* version; - gchar* brief_description; - gchar* authors; - gchar* copyright; - gchar* license; - gboolean is_license_wordwrapped; - gchar* website_url; - gchar* website_name; - gchar* translators; - GdkPixbuf** icons; - gint icons_length1; -}; - -struct _SpitPluggableIface { - GTypeInterface parent_iface; - gint (*get_pluggable_interface) (SpitPluggable* self, gint min_host_interface, gint max_host_interface); - const gchar* (*get_id) (SpitPluggable* self); - const gchar* (*get_pluggable_name) (SpitPluggable* self); - void (*get_info) (SpitPluggable* self, SpitPluggableInfo* info); - void (*activation) (SpitPluggable* self, gboolean enabled); - void (*reserved0) (SpitPluggable* self); - void (*reserved1) (SpitPluggable* self); - void (*reserved2) (SpitPluggable* self); - void (*reserved3) (SpitPluggable* self); - void (*reserved4) (SpitPluggable* self); - void (*reserved5) (SpitPluggable* self); - void (*reserved6) (SpitPluggable* self); - void (*reserved7) (SpitPluggable* self); -}; - -struct _SpitModuleIface { - GTypeInterface parent_iface; - const gchar* (*get_module_name) (SpitModule* self); - const gchar* (*get_version) (SpitModule* self); - const gchar* (*get_id) (SpitModule* self); - SpitPluggable** (*get_pluggables) (SpitModule* self, int* result_length1); - void (*reserved0) (SpitModule* self); - void (*reserved1) (SpitModule* self); - void (*reserved2) (SpitModule* self); - void (*reserved3) (SpitModule* self); - void (*reserved4) (SpitModule* self); - void (*reserved5) (SpitModule* self); - void (*reserved6) (SpitModule* self); - void (*reserved7) (SpitModule* self); -}; - -typedef SpitModule* (*SpitEntryPoint) (SpitEntryPointParams* params); -struct _SpitHostInterfaceIface { - GTypeInterface parent_iface; - GFile* (*get_module_file) (SpitHostInterface* self); - gboolean (*get_config_bool) (SpitHostInterface* self, const gchar* key, gboolean def); - void (*set_config_bool) (SpitHostInterface* self, const gchar* key, gboolean val); - gint (*get_config_int) (SpitHostInterface* self, const gchar* key, gint def); - void (*set_config_int) (SpitHostInterface* self, const gchar* key, gint val); - gchar* (*get_config_string) (SpitHostInterface* self, const gchar* key, const gchar* def); - void (*set_config_string) (SpitHostInterface* self, const gchar* key, const gchar* val); - gdouble (*get_config_double) (SpitHostInterface* self, const gchar* key, gdouble def); - void (*set_config_double) (SpitHostInterface* self, const gchar* key, gdouble val); - void (*unset_config_key) (SpitHostInterface* self, const gchar* key); - void (*reserved0) (SpitHostInterface* self); - void (*reserved1) (SpitHostInterface* self); - void (*reserved2) (SpitHostInterface* self); - void (*reserved3) (SpitHostInterface* self); - void (*reserved4) (SpitHostInterface* self); - void (*reserved5) (SpitHostInterface* self); - void (*reserved6) (SpitHostInterface* self); - void (*reserved7) (SpitHostInterface* self); -}; - - - -#define SPIT_UNSUPPORTED_INTERFACE -1 -#define SPIT_CURRENT_INTERFACE 0 -gint spit_negotiate_interfaces (gint min_host_interface, - gint max_host_interface, - gint plugin_interface); -GType spit_entry_point_params_get_type (void) G_GNUC_CONST; -SpitEntryPointParams* spit_entry_point_params_dup (const SpitEntryPointParams* self); -void spit_entry_point_params_free (SpitEntryPointParams* self); -void spit_entry_point_params_copy (const SpitEntryPointParams* self, - SpitEntryPointParams* dest); -void spit_entry_point_params_destroy (SpitEntryPointParams* self); -GType spit_pluggable_info_get_type (void) G_GNUC_CONST; -SpitPluggableInfo* spit_pluggable_info_dup (const SpitPluggableInfo* self); -void spit_pluggable_info_free (SpitPluggableInfo* self); -void spit_pluggable_info_copy (const SpitPluggableInfo* self, - SpitPluggableInfo* dest); -void spit_pluggable_info_destroy (SpitPluggableInfo* self); -GType spit_pluggable_get_type (void) G_GNUC_CONST; -GType spit_module_get_type (void) G_GNUC_CONST; -#define SPIT_ENTRY_POINT_NAME "spit_entry_point" -const gchar* spit_module_get_module_name (SpitModule* self); -const gchar* spit_module_get_version (SpitModule* self); -const gchar* spit_module_get_id (SpitModule* self); -SpitPluggable** spit_module_get_pluggables (SpitModule* self, - int* result_length1); -void spit_module_reserved0 (SpitModule* self); -static void spit_module_real_reserved0 (SpitModule* self); -void spit_module_reserved1 (SpitModule* self); -static void spit_module_real_reserved1 (SpitModule* self); -void spit_module_reserved2 (SpitModule* self); -static void spit_module_real_reserved2 (SpitModule* self); -void spit_module_reserved3 (SpitModule* self); -static void spit_module_real_reserved3 (SpitModule* self); -void spit_module_reserved4 (SpitModule* self); -static void spit_module_real_reserved4 (SpitModule* self); -void spit_module_reserved5 (SpitModule* self); -static void spit_module_real_reserved5 (SpitModule* self); -void spit_module_reserved6 (SpitModule* self); -static void spit_module_real_reserved6 (SpitModule* self); -void spit_module_reserved7 (SpitModule* self); -static void spit_module_real_reserved7 (SpitModule* self); -static GdkPixbuf** _vala_array_dup1 (GdkPixbuf** self, - int length); -gint spit_pluggable_get_pluggable_interface (SpitPluggable* self, - gint min_host_interface, - gint max_host_interface); -const gchar* spit_pluggable_get_id (SpitPluggable* self); -const gchar* spit_pluggable_get_pluggable_name (SpitPluggable* self); -void spit_pluggable_get_info (SpitPluggable* self, - SpitPluggableInfo* info); -void spit_pluggable_activation (SpitPluggable* self, - gboolean enabled); -void spit_pluggable_reserved0 (SpitPluggable* self); -static void spit_pluggable_real_reserved0 (SpitPluggable* self); -void spit_pluggable_reserved1 (SpitPluggable* self); -static void spit_pluggable_real_reserved1 (SpitPluggable* self); -void spit_pluggable_reserved2 (SpitPluggable* self); -static void spit_pluggable_real_reserved2 (SpitPluggable* self); -void spit_pluggable_reserved3 (SpitPluggable* self); -static void spit_pluggable_real_reserved3 (SpitPluggable* self); -void spit_pluggable_reserved4 (SpitPluggable* self); -static void spit_pluggable_real_reserved4 (SpitPluggable* self); -void spit_pluggable_reserved5 (SpitPluggable* self); -static void spit_pluggable_real_reserved5 (SpitPluggable* self); -void spit_pluggable_reserved6 (SpitPluggable* self); -static void spit_pluggable_real_reserved6 (SpitPluggable* self); -void spit_pluggable_reserved7 (SpitPluggable* self); -static void spit_pluggable_real_reserved7 (SpitPluggable* self); -GType spit_host_interface_get_type (void) G_GNUC_CONST; -GFile* spit_host_interface_get_module_file (SpitHostInterface* self); -gboolean spit_host_interface_get_config_bool (SpitHostInterface* self, - const gchar* key, - gboolean def); -void spit_host_interface_set_config_bool (SpitHostInterface* self, - const gchar* key, - gboolean val); -gint spit_host_interface_get_config_int (SpitHostInterface* self, - const gchar* key, - gint def); -void spit_host_interface_set_config_int (SpitHostInterface* self, - const gchar* key, - gint val); -gchar* spit_host_interface_get_config_string (SpitHostInterface* self, - const gchar* key, - const gchar* def); -void spit_host_interface_set_config_string (SpitHostInterface* self, - const gchar* key, - const gchar* val); -gdouble spit_host_interface_get_config_double (SpitHostInterface* self, - const gchar* key, - gdouble def); -void spit_host_interface_set_config_double (SpitHostInterface* self, - const gchar* key, - gdouble val); -void spit_host_interface_unset_config_key (SpitHostInterface* self, - const gchar* key); -void spit_host_interface_reserved0 (SpitHostInterface* self); -static void spit_host_interface_real_reserved0 (SpitHostInterface* self); -void spit_host_interface_reserved1 (SpitHostInterface* self); -static void spit_host_interface_real_reserved1 (SpitHostInterface* self); -void spit_host_interface_reserved2 (SpitHostInterface* self); -static void spit_host_interface_real_reserved2 (SpitHostInterface* self); -void spit_host_interface_reserved3 (SpitHostInterface* self); -static void spit_host_interface_real_reserved3 (SpitHostInterface* self); -void spit_host_interface_reserved4 (SpitHostInterface* self); -static void spit_host_interface_real_reserved4 (SpitHostInterface* self); -void spit_host_interface_reserved5 (SpitHostInterface* self); -static void spit_host_interface_real_reserved5 (SpitHostInterface* self); -void spit_host_interface_reserved6 (SpitHostInterface* self); -static void spit_host_interface_real_reserved6 (SpitHostInterface* self); -void spit_host_interface_reserved7 (SpitHostInterface* self); -static void spit_host_interface_real_reserved7 (SpitHostInterface* self); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -/** - * A utility function for checking host interfaces against one's own and returning the right value. - * - * Note that this only works if the caller operates on only one interface version (and cannot mutate - * between multiple ones). - * - * @param min_host_interface The minimum supported host interface version. - * @param max_host_interface The maximum supported host interface version. - * @param plugin_interface The interface version supported by the Pluggable. - * - * @return The plugin's interface version if supported, {@link UNSUPPORTED_INTERFACE} otherwise. - */ -gint -spit_negotiate_interfaces (gint min_host_interface, - gint max_host_interface, - gint plugin_interface) -{ - gint result = 0; - gint _tmp0_ = 0; - gboolean _tmp1_ = FALSE; -#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - if (min_host_interface > plugin_interface) { -#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp1_ = TRUE; -#line 277 "SpitInterfaces.c" - } else { -#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp1_ = max_host_interface < plugin_interface; -#line 281 "SpitInterfaces.c" - } -#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - if (_tmp1_) { -#line 48 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp0_ = SPIT_UNSUPPORTED_INTERFACE; -#line 287 "SpitInterfaces.c" - } else { -#line 48 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp0_ = plugin_interface; -#line 291 "SpitInterfaces.c" - } -#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - result = _tmp0_; -#line 47 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return result; -#line 297 "SpitInterfaces.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return self ? g_object_ref (self) : NULL; -#line 306 "SpitInterfaces.c" -} - - -void -spit_entry_point_params_copy (const SpitEntryPointParams* self, - SpitEntryPointParams* dest) -{ - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - GFile* _tmp3_; - GFile* _tmp4_; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp0_ = (*self).host_min_spit_interface; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).host_min_spit_interface = _tmp0_; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp1_ = (*self).host_max_spit_interface; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).host_max_spit_interface = _tmp1_; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp2_ = (*self).module_spit_interface; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).module_spit_interface = _tmp2_; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp3_ = (*self).module_file; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp4_ = _g_object_ref0 (_tmp3_); -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_object_unref0 ((*dest).module_file); -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).module_file = _tmp4_; -#line 339 "SpitInterfaces.c" -} - - -void -spit_entry_point_params_destroy (SpitEntryPointParams* self) -{ -#line 79 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_object_unref0 ((*self).module_file); -#line 348 "SpitInterfaces.c" -} - - -SpitEntryPointParams* -spit_entry_point_params_dup (const SpitEntryPointParams* self) -{ - SpitEntryPointParams* dup; -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - dup = g_new0 (SpitEntryPointParams, 1); -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - spit_entry_point_params_copy (self, dup); -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return dup; -#line 362 "SpitInterfaces.c" -} - - -void -spit_entry_point_params_free (SpitEntryPointParams* self) -{ -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - spit_entry_point_params_destroy (self); -#line 62 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_free (self); -#line 373 "SpitInterfaces.c" -} - - -GType -spit_entry_point_params_get_type (void) -{ - static volatile gsize spit_entry_point_params_type_id__volatile = 0; - if (g_once_init_enter (&spit_entry_point_params_type_id__volatile)) { - GType spit_entry_point_params_type_id; - spit_entry_point_params_type_id = g_boxed_type_register_static ("SpitEntryPointParams", (GBoxedCopyFunc) spit_entry_point_params_dup, (GBoxedFreeFunc) spit_entry_point_params_free); - g_once_init_leave (&spit_entry_point_params_type_id__volatile, spit_entry_point_params_type_id); - } - return spit_entry_point_params_type_id__volatile; -} - - -/** - * Returns a user-visible string describing the module. - */ -const gchar* -spit_module_get_module_name (SpitModule* self) -{ -#line 117 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_MODULE (self), NULL); -#line 117 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_MODULE_GET_INTERFACE (self)->get_module_name (self); -#line 400 "SpitInterfaces.c" -} - - -/** - * Returns a user-visible string describing the module version. - * - * Note that this may be programmatically interpreted at some point, so use a widespread - * versioning scheme. - */ -const gchar* -spit_module_get_version (SpitModule* self) -{ -#line 125 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_MODULE (self), NULL); -#line 125 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_MODULE_GET_INTERFACE (self)->get_version (self); -#line 417 "SpitInterfaces.c" -} - - -/** - * Returns a unique identifier for this module. - * - * This is used to differentiate between multiple - * installed versions and to determine which one should be used (i.e. if a module is available - * in a system directory and a user directory). This name is case-sensitive. - * - * Best practice: use a reverse-DNS-order scheme, a la Java's packages - * (i.e. "org.yorba.shotwell.frotz"). - */ -const gchar* -spit_module_get_id (SpitModule* self) -{ -#line 137 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_MODULE (self), NULL); -#line 137 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_MODULE_GET_INTERFACE (self)->get_id (self); -#line 438 "SpitInterfaces.c" -} - - -/** - * Returns an array of {@link Pluggable} that represent each plugin available in the module. - * - * May return NULL or an empty array. - */ -SpitPluggable** -spit_module_get_pluggables (SpitModule* self, - int* result_length1) -{ -#line 144 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_MODULE (self), NULL); -#line 144 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_MODULE_GET_INTERFACE (self)->get_pluggables (self, result_length1); -#line 455 "SpitInterfaces.c" -} - - -static void -spit_module_real_reserved0 (SpitModule* self) -{ -} - - -void -spit_module_reserved0 (SpitModule* self) -{ -#line 149 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_MODULE (self)); -#line 149 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_MODULE_GET_INTERFACE (self)->reserved0 (self); -#line 472 "SpitInterfaces.c" -} - - -static void -spit_module_real_reserved1 (SpitModule* self) -{ -} - - -void -spit_module_reserved1 (SpitModule* self) -{ -#line 150 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_MODULE (self)); -#line 150 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_MODULE_GET_INTERFACE (self)->reserved1 (self); -#line 489 "SpitInterfaces.c" -} - - -static void -spit_module_real_reserved2 (SpitModule* self) -{ -} - - -void -spit_module_reserved2 (SpitModule* self) -{ -#line 151 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_MODULE (self)); -#line 151 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_MODULE_GET_INTERFACE (self)->reserved2 (self); -#line 506 "SpitInterfaces.c" -} - - -static void -spit_module_real_reserved3 (SpitModule* self) -{ -} - - -void -spit_module_reserved3 (SpitModule* self) -{ -#line 152 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_MODULE (self)); -#line 152 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_MODULE_GET_INTERFACE (self)->reserved3 (self); -#line 523 "SpitInterfaces.c" -} - - -static void -spit_module_real_reserved4 (SpitModule* self) -{ -} - - -void -spit_module_reserved4 (SpitModule* self) -{ -#line 153 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_MODULE (self)); -#line 153 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_MODULE_GET_INTERFACE (self)->reserved4 (self); -#line 540 "SpitInterfaces.c" -} - - -static void -spit_module_real_reserved5 (SpitModule* self) -{ -} - - -void -spit_module_reserved5 (SpitModule* self) -{ -#line 154 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_MODULE (self)); -#line 154 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_MODULE_GET_INTERFACE (self)->reserved5 (self); -#line 557 "SpitInterfaces.c" -} - - -static void -spit_module_real_reserved6 (SpitModule* self) -{ -} - - -void -spit_module_reserved6 (SpitModule* self) -{ -#line 155 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_MODULE (self)); -#line 155 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_MODULE_GET_INTERFACE (self)->reserved6 (self); -#line 574 "SpitInterfaces.c" -} - - -static void -spit_module_real_reserved7 (SpitModule* self) -{ -} - - -void -spit_module_reserved7 (SpitModule* self) -{ -#line 156 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_MODULE (self)); -#line 156 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_MODULE_GET_INTERFACE (self)->reserved7 (self); -#line 591 "SpitInterfaces.c" -} - - -static void -spit_module_base_init (SpitModuleIface * iface) -{ -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - static gboolean initialized = FALSE; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - if (!initialized) { -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - initialized = TRUE; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved0 = spit_module_real_reserved0; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved1 = spit_module_real_reserved1; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved2 = spit_module_real_reserved2; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved3 = spit_module_real_reserved3; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved4 = spit_module_real_reserved4; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved5 = spit_module_real_reserved5; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved6 = spit_module_real_reserved6; -#line 113 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved7 = spit_module_real_reserved7; -#line 620 "SpitInterfaces.c" - } -} - - -/** - * A Module represents the resources of an entire dynamically-linked module (i.e. a .so/.la). - * - * A module holds zero or more Shotwell plugins ({@link Pluggable}). Once the module has been - * loaded into process space this object is retrieved by Shotwell. All calls to the module and - * its plugins are resolved through this interface. - * - * Note: The module is responsible for holding the reference to the Module object, of which there - * should be only one in the library file. The module should implement a g_module_unload method - * and drop the reference there. - */ -GType -spit_module_get_type (void) -{ - static volatile gsize spit_module_type_id__volatile = 0; - if (g_once_init_enter (&spit_module_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitModuleIface), (GBaseInitFunc) spit_module_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_module_type_id; - spit_module_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitModule", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_module_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_module_type_id__volatile, spit_module_type_id); - } - return spit_module_type_id__volatile; -} - - -static GdkPixbuf** -_vala_array_dup1 (GdkPixbuf** self, - int length) -{ - GdkPixbuf** result; - int i; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - result = g_new0 (GdkPixbuf*, length + 1); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - for (i = 0; i < length; i++) { -#line 661 "SpitInterfaces.c" - GdkPixbuf* _tmp0_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - result[i] = _tmp0_; -#line 667 "SpitInterfaces.c" - } -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return result; -#line 671 "SpitInterfaces.c" -} - - -void -spit_pluggable_info_copy (const SpitPluggableInfo* self, - SpitPluggableInfo* dest) -{ - const gchar* _tmp0_; - gchar* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; - const gchar* _tmp6_; - gchar* _tmp7_; - const gchar* _tmp8_; - gchar* _tmp9_; - gboolean _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; - GdkPixbuf** _tmp17_; - gint _tmp17__length1; - GdkPixbuf** _tmp18_; - gint _tmp18__length1; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp0_ = (*self).version; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*dest).version); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).version = _tmp1_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp2_ = (*self).brief_description; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*dest).brief_description); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).brief_description = _tmp3_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp4_ = (*self).authors; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp5_ = g_strdup (_tmp4_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*dest).authors); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).authors = _tmp5_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp6_ = (*self).copyright; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp7_ = g_strdup (_tmp6_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*dest).copyright); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).copyright = _tmp7_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp8_ = (*self).license; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp9_ = g_strdup (_tmp8_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*dest).license); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).license = _tmp9_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp10_ = (*self).is_license_wordwrapped; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).is_license_wordwrapped = _tmp10_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp11_ = (*self).website_url; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp12_ = g_strdup (_tmp11_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*dest).website_url); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).website_url = _tmp12_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp13_ = (*self).website_name; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp14_ = g_strdup (_tmp13_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*dest).website_name); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).website_name = _tmp14_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp15_ = (*self).translators; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp16_ = g_strdup (_tmp15_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*dest).translators); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).translators = _tmp16_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp17_ = (*self).icons; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp17__length1 = (*self).icons_length1; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp18_ = (_tmp17_ != NULL) ? _vala_array_dup1 (_tmp17_, _tmp17__length1) : ((gpointer) _tmp17_); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _tmp18__length1 = _tmp17__length1; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).icons = (_vala_array_free ((*dest).icons, (*dest).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).icons = _tmp18_; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*dest).icons_length1 = _tmp18__length1; -#line 782 "SpitInterfaces.c" -} - - -void -spit_pluggable_info_destroy (SpitPluggableInfo* self) -{ -#line 163 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*self).version); -#line 164 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*self).brief_description); -#line 168 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*self).authors); -#line 169 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*self).copyright); -#line 170 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*self).license); -#line 172 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*self).website_url); -#line 173 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*self).website_name); -#line 174 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - _g_free0 ((*self).translators); -#line 179 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - (*self).icons = (_vala_array_free ((*self).icons, (*self).icons_length1, (GDestroyNotify) g_object_unref), NULL); -#line 807 "SpitInterfaces.c" -} - - -SpitPluggableInfo* -spit_pluggable_info_dup (const SpitPluggableInfo* self) -{ - SpitPluggableInfo* dup; -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - dup = g_new0 (SpitPluggableInfo, 1); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - spit_pluggable_info_copy (self, dup); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return dup; -#line 821 "SpitInterfaces.c" -} - - -void -spit_pluggable_info_free (SpitPluggableInfo* self) -{ -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - spit_pluggable_info_destroy (self); -#line 162 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_free (self); -#line 832 "SpitInterfaces.c" -} - - -GType -spit_pluggable_info_get_type (void) -{ - static volatile gsize spit_pluggable_info_type_id__volatile = 0; - if (g_once_init_enter (&spit_pluggable_info_type_id__volatile)) { - GType spit_pluggable_info_type_id; - spit_pluggable_info_type_id = g_boxed_type_register_static ("SpitPluggableInfo", (GBoxedCopyFunc) spit_pluggable_info_dup, (GBoxedFreeFunc) spit_pluggable_info_free); - g_once_init_leave (&spit_pluggable_info_type_id__volatile, spit_pluggable_info_type_id); - } - return spit_pluggable_info_type_id__volatile; -} - - -/** - * Pluggable interface version negotiation. - * - * Like the {@link EntryPoint}, this mechanism allows for the host to negotiate with the Pluggable - * for its interface version. If the pluggable does not support an interface between the - * two ranges (inclusive), it should return {@link UNSUPPORTED_INTERFACE}. - * - * Note that this is ''not'' a negotiation of the SPIT interface versions (which is the - * responsibility of {@link EntryPoint}. Rather, each extension point is expected to version - * its own cluster of interfaces. It is that interface version that is being negotiated here. - * - * {@link negotiate_interfaces} can be used to implement this method. - * - * @param min_host_interface The host's minimum supported interface version number - * //for this Pluggable's intended extension point//. - * @param max_host_interface The host's maximum supported interface version number - * //for this Pluggable's intended extension point//. - * - * @return The version number supported by the host and the Pluggable or - * {@link UNSUPPORTED_INTERFACE}. - */ -gint -spit_pluggable_get_pluggable_interface (SpitPluggable* self, - gint min_host_interface, - gint max_host_interface) -{ -#line 210 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (self), 0); -#line 210 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_PLUGGABLE_GET_INTERFACE (self)->get_pluggable_interface (self, min_host_interface, max_host_interface); -#line 879 "SpitInterfaces.c" -} - - -/** - * Returns a unique identifier for this Pluggable. - * - * Like {@link Module.get_id}, best practice is to use a reverse-DNS-order scheme to avoid - * conflicts. - */ -const gchar* -spit_pluggable_get_id (SpitPluggable* self) -{ -#line 218 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (self), NULL); -#line 218 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_PLUGGABLE_GET_INTERFACE (self)->get_id (self); -#line 896 "SpitInterfaces.c" -} - - -/** - * Returns a user-visible name for the Pluggable. - */ -const gchar* -spit_pluggable_get_pluggable_name (SpitPluggable* self) -{ -#line 223 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (self), NULL); -#line 223 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_PLUGGABLE_GET_INTERFACE (self)->get_pluggable_name (self); -#line 910 "SpitInterfaces.c" -} - - -/** - * Returns extra information about the Pluggable that is used to identify it to the user. - */ -void -spit_pluggable_get_info (SpitPluggable* self, - SpitPluggableInfo* info) -{ -#line 228 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 228 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->get_info (self, info); -#line 925 "SpitInterfaces.c" -} - - -/** - * Called when the Pluggable is enabled (activated) or disabled (deactivated). - * - * activation will be called at the start of the program if the user previously - * enabled/disabled it as well as during program execution if the user changes its state. Note - * that disabling a Pluggable does not require destroying existing resources or objects - * the Pluggable has previously handed off to the host. - * - * This is purely informational. The Pluggable should acquire any long-term resources - * it may be holding onto here, or wait until an extension-specific call is made to it. - * - * @param enabled ``true`` if the Pluggable has been enabled, ``false`` otherwise. - */ -void -spit_pluggable_activation (SpitPluggable* self, - gboolean enabled) -{ -#line 243 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 243 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->activation (self, enabled); -#line 950 "SpitInterfaces.c" -} - - -static void -spit_pluggable_real_reserved0 (SpitPluggable* self) -{ -} - - -void -spit_pluggable_reserved0 (SpitPluggable* self) -{ -#line 248 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 248 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved0 (self); -#line 967 "SpitInterfaces.c" -} - - -static void -spit_pluggable_real_reserved1 (SpitPluggable* self) -{ -} - - -void -spit_pluggable_reserved1 (SpitPluggable* self) -{ -#line 249 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 249 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved1 (self); -#line 984 "SpitInterfaces.c" -} - - -static void -spit_pluggable_real_reserved2 (SpitPluggable* self) -{ -} - - -void -spit_pluggable_reserved2 (SpitPluggable* self) -{ -#line 250 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 250 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved2 (self); -#line 1001 "SpitInterfaces.c" -} - - -static void -spit_pluggable_real_reserved3 (SpitPluggable* self) -{ -} - - -void -spit_pluggable_reserved3 (SpitPluggable* self) -{ -#line 251 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 251 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved3 (self); -#line 1018 "SpitInterfaces.c" -} - - -static void -spit_pluggable_real_reserved4 (SpitPluggable* self) -{ -} - - -void -spit_pluggable_reserved4 (SpitPluggable* self) -{ -#line 252 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 252 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved4 (self); -#line 1035 "SpitInterfaces.c" -} - - -static void -spit_pluggable_real_reserved5 (SpitPluggable* self) -{ -} - - -void -spit_pluggable_reserved5 (SpitPluggable* self) -{ -#line 253 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 253 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved5 (self); -#line 1052 "SpitInterfaces.c" -} - - -static void -spit_pluggable_real_reserved6 (SpitPluggable* self) -{ -} - - -void -spit_pluggable_reserved6 (SpitPluggable* self) -{ -#line 254 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 254 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved6 (self); -#line 1069 "SpitInterfaces.c" -} - - -static void -spit_pluggable_real_reserved7 (SpitPluggable* self) -{ -} - - -void -spit_pluggable_reserved7 (SpitPluggable* self) -{ -#line 255 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_PLUGGABLE (self)); -#line 255 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_PLUGGABLE_GET_INTERFACE (self)->reserved7 (self); -#line 1086 "SpitInterfaces.c" -} - - -static void -spit_pluggable_base_init (SpitPluggableIface * iface) -{ -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - static gboolean initialized = FALSE; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - if (!initialized) { -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - initialized = TRUE; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved0 = spit_pluggable_real_reserved0; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved1 = spit_pluggable_real_reserved1; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved2 = spit_pluggable_real_reserved2; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved3 = spit_pluggable_real_reserved3; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved4 = spit_pluggable_real_reserved4; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved5 = spit_pluggable_real_reserved5; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved6 = spit_pluggable_real_reserved6; -#line 188 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved7 = spit_pluggable_real_reserved7; -#line 1115 "SpitInterfaces.c" - } -} - - -/** - * A generic interface to all Shotwell plugins. - * - * Each plugin in a module needs to implement this interface at a minimum. Extension - * points may have (and probably will have) specific interface requirements as well. - */ -GType -spit_pluggable_get_type (void) -{ - static volatile gsize spit_pluggable_type_id__volatile = 0; - if (g_once_init_enter (&spit_pluggable_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitPluggableIface), (GBaseInitFunc) spit_pluggable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_pluggable_type_id; - spit_pluggable_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitPluggable", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_pluggable_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_pluggable_type_id__volatile, spit_pluggable_type_id); - } - return spit_pluggable_type_id__volatile; -} - - -/** - * Returns a File object representing the library file (.so/la.) that the plugin was loaded - * from. - */ -GFile* -spit_host_interface_get_module_file (SpitHostInterface* self) -{ -#line 274 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (self), NULL); -#line 274 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_HOST_INTERFACE_GET_INTERFACE (self)->get_module_file (self); -#line 1152 "SpitInterfaces.c" -} - - -/** - * Get a boolean from a persistent configuration store. - * - * @param key The name of the value to be retrieved. - * @param def The default value (returned if the key has not been previously set). - * - * @return The value associated with key, def if not set. - */ -gboolean -spit_host_interface_get_config_bool (SpitHostInterface* self, - const gchar* key, - gboolean def) -{ -#line 284 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (self), FALSE); -#line 284 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_HOST_INTERFACE_GET_INTERFACE (self)->get_config_bool (self, key, def); -#line 1173 "SpitInterfaces.c" -} - - -/** - * Store a boolean in a persistent configuration store. - * - * @param key The name of the value to be stored. - * @param val The value to be stored. - */ -void -spit_host_interface_set_config_bool (SpitHostInterface* self, - const gchar* key, - gboolean val) -{ -#line 292 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 292 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->set_config_bool (self, key, val); -#line 1192 "SpitInterfaces.c" -} - - -/** - * Get an integer from a persistent configuration store. - * - * @param key The name of the value to be retrieved. - * @param def The default value (returned if the key has not been previously set). - * - * @return The value associated with key, def if not set. - */ -gint -spit_host_interface_get_config_int (SpitHostInterface* self, - const gchar* key, - gint def) -{ -#line 302 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (self), 0); -#line 302 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_HOST_INTERFACE_GET_INTERFACE (self)->get_config_int (self, key, def); -#line 1213 "SpitInterfaces.c" -} - - -/** - * Store an integer in a persistent configuration store. - * - * @param key The name of the value to be stored. - * @param val The value to be stored. - */ -void -spit_host_interface_set_config_int (SpitHostInterface* self, - const gchar* key, - gint val) -{ -#line 310 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 310 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->set_config_int (self, key, val); -#line 1232 "SpitInterfaces.c" -} - - -/** - * Get a string from a persistent configuration store. - * - * @param key The name of the value to be retrieved. - * @param def The default value (returned if the key has not been previously set). - * - * @return The value associated with key, def if not set. - */ -gchar* -spit_host_interface_get_config_string (SpitHostInterface* self, - const gchar* key, - const gchar* def) -{ -#line 320 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (self), NULL); -#line 320 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_HOST_INTERFACE_GET_INTERFACE (self)->get_config_string (self, key, def); -#line 1253 "SpitInterfaces.c" -} - - -/** - * Store a string in a persistent configuration store. - * - * @param key The name of the value to be stored. - * @param val The value to be stored. - */ -void -spit_host_interface_set_config_string (SpitHostInterface* self, - const gchar* key, - const gchar* val) -{ -#line 328 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 328 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->set_config_string (self, key, val); -#line 1272 "SpitInterfaces.c" -} - - -/** - * Get a double from a persistent configuration store. - * - * @param key The name of the value to be retrieved. - * @param def The default value (returned if the key has not been previously set). - * - * @return The value associated with key, def if not set. - */ -gdouble -spit_host_interface_get_config_double (SpitHostInterface* self, - const gchar* key, - gdouble def) -{ -#line 338 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (self), 0.0); -#line 338 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - return SPIT_HOST_INTERFACE_GET_INTERFACE (self)->get_config_double (self, key, def); -#line 1293 "SpitInterfaces.c" -} - - -/** - * Store a double in a persistent configuration store. - * - * @param key The name of the value to be stored. - * @param val The value to be stored. - */ -void -spit_host_interface_set_config_double (SpitHostInterface* self, - const gchar* key, - gdouble val) -{ -#line 346 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 346 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->set_config_double (self, key, val); -#line 1312 "SpitInterfaces.c" -} - - -/** - * Delete the value from the persistent configuration store. - */ -void -spit_host_interface_unset_config_key (SpitHostInterface* self, - const gchar* key) -{ -#line 351 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 351 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->unset_config_key (self, key); -#line 1327 "SpitInterfaces.c" -} - - -static void -spit_host_interface_real_reserved0 (SpitHostInterface* self) -{ -} - - -void -spit_host_interface_reserved0 (SpitHostInterface* self) -{ -#line 356 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 356 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved0 (self); -#line 1344 "SpitInterfaces.c" -} - - -static void -spit_host_interface_real_reserved1 (SpitHostInterface* self) -{ -} - - -void -spit_host_interface_reserved1 (SpitHostInterface* self) -{ -#line 357 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 357 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved1 (self); -#line 1361 "SpitInterfaces.c" -} - - -static void -spit_host_interface_real_reserved2 (SpitHostInterface* self) -{ -} - - -void -spit_host_interface_reserved2 (SpitHostInterface* self) -{ -#line 358 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 358 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved2 (self); -#line 1378 "SpitInterfaces.c" -} - - -static void -spit_host_interface_real_reserved3 (SpitHostInterface* self) -{ -} - - -void -spit_host_interface_reserved3 (SpitHostInterface* self) -{ -#line 359 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 359 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved3 (self); -#line 1395 "SpitInterfaces.c" -} - - -static void -spit_host_interface_real_reserved4 (SpitHostInterface* self) -{ -} - - -void -spit_host_interface_reserved4 (SpitHostInterface* self) -{ -#line 360 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 360 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved4 (self); -#line 1412 "SpitInterfaces.c" -} - - -static void -spit_host_interface_real_reserved5 (SpitHostInterface* self) -{ -} - - -void -spit_host_interface_reserved5 (SpitHostInterface* self) -{ -#line 361 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 361 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved5 (self); -#line 1429 "SpitInterfaces.c" -} - - -static void -spit_host_interface_real_reserved6 (SpitHostInterface* self) -{ -} - - -void -spit_host_interface_reserved6 (SpitHostInterface* self) -{ -#line 362 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 362 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved6 (self); -#line 1446 "SpitInterfaces.c" -} - - -static void -spit_host_interface_real_reserved7 (SpitHostInterface* self) -{ -} - - -void -spit_host_interface_reserved7 (SpitHostInterface* self) -{ -#line 363 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - g_return_if_fail (SPIT_IS_HOST_INTERFACE (self)); -#line 363 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - SPIT_HOST_INTERFACE_GET_INTERFACE (self)->reserved7 (self); -#line 1463 "SpitInterfaces.c" -} - - -static void -spit_host_interface_base_init (SpitHostInterfaceIface * iface) -{ -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - static gboolean initialized = FALSE; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - if (!initialized) { -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - initialized = TRUE; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved0 = spit_host_interface_real_reserved0; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved1 = spit_host_interface_real_reserved1; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved2 = spit_host_interface_real_reserved2; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved3 = spit_host_interface_real_reserved3; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved4 = spit_host_interface_real_reserved4; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved5 = spit_host_interface_real_reserved5; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved6 = spit_host_interface_real_reserved6; -#line 269 "/home/jens/Source/shotwell/src/plugins/SpitInterfaces.vala" - iface->reserved7 = spit_host_interface_real_reserved7; -#line 1492 "SpitInterfaces.c" - } -} - - -/** - * An interface to common services supplied by the host (Shotwell). - * - * Each {@link Pluggable} is offered a HostInterface for needs common to most plugins. - * - * Note that - * a HostInterface is not explicitly handed to the Pluggable through the SPIT interface, but is expected - * to be offered to the Pluggable through an interface applicable to the extension point. This - * also allows the extension point to extend HostInterface to offer other services applicable to the - * type of plugin. - */ -GType -spit_host_interface_get_type (void) -{ - static volatile gsize spit_host_interface_type_id__volatile = 0; - if (g_once_init_enter (&spit_host_interface_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitHostInterfaceIface), (GBaseInitFunc) spit_host_interface_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_host_interface_type_id; - spit_host_interface_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitHostInterface", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_host_interface_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_host_interface_type_id__volatile, spit_host_interface_type_id); - } - return spit_host_interface_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/plugins/StandardHostInterface.c b/src/plugins/StandardHostInterface.c deleted file mode 100644 index 4dfc7ed..0000000 --- a/src/plugins/StandardHostInterface.c +++ /dev/null @@ -1,737 +0,0 @@ -/* StandardHostInterface.c generated by valac 0.40.4, the Vala compiler - * generated from StandardHostInterface.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include -#include - - -#define PLUGINS_TYPE_STANDARD_HOST_INTERFACE (plugins_standard_host_interface_get_type ()) -#define PLUGINS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface)) -#define PLUGINS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass)) -#define PLUGINS_IS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE)) -#define PLUGINS_IS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE)) -#define PLUGINS_STANDARD_HOST_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass)) - -typedef struct _PluginsStandardHostInterface PluginsStandardHostInterface; -typedef struct _PluginsStandardHostInterfaceClass PluginsStandardHostInterfaceClass; -typedef struct _PluginsStandardHostInterfacePrivate PluginsStandardHostInterfacePrivate; -enum { - PLUGINS_STANDARD_HOST_INTERFACE_0_PROPERTY, - PLUGINS_STANDARD_HOST_INTERFACE_NUM_PROPERTIES -}; -static GParamSpec* plugins_standard_host_interface_properties[PLUGINS_STANDARD_HOST_INTERFACE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; - -struct _PluginsStandardHostInterface { - GObject parent_instance; - PluginsStandardHostInterfacePrivate * priv; -}; - -struct _PluginsStandardHostInterfaceClass { - GObjectClass parent_class; -}; - -struct _PluginsStandardHostInterfacePrivate { - gchar* config_domain; - gchar* config_id; - GFile* module_file; - SpitPluggableInfo info; -}; - - -static gpointer plugins_standard_host_interface_parent_class = NULL; -static SpitHostInterfaceIface * plugins_standard_host_interface_spit_host_interface_parent_iface = NULL; - -GType plugins_standard_host_interface_get_type (void) G_GNUC_CONST; -#define PLUGINS_STANDARD_HOST_INTERFACE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfacePrivate)) -PluginsStandardHostInterface* plugins_standard_host_interface_new (SpitPluggable* pluggable, - const gchar* config_domain); -PluginsStandardHostInterface* plugins_standard_host_interface_construct (GType object_type, - SpitPluggable* pluggable, - const gchar* config_domain); -static gchar* plugins_standard_host_interface_parse_key (const gchar* id); -GFile* plugins_get_pluggable_module_file (SpitPluggable* pluggable); -static GFile* plugins_standard_host_interface_real_get_module_file (SpitHostInterface* base); -static gboolean plugins_standard_host_interface_real_get_config_bool (SpitHostInterface* base, - const gchar* key, - gboolean def); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gboolean configuration_facade_get_plugin_bool (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean def); -static void plugins_standard_host_interface_real_set_config_bool (SpitHostInterface* base, - const gchar* key, - gboolean val); -void configuration_facade_set_plugin_bool (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gboolean val); -static gint plugins_standard_host_interface_real_get_config_int (SpitHostInterface* base, - const gchar* key, - gint def); -gint configuration_facade_get_plugin_int (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gint def); -static void plugins_standard_host_interface_real_set_config_int (SpitHostInterface* base, - const gchar* key, - gint val); -void configuration_facade_set_plugin_int (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gint val); -static gchar* plugins_standard_host_interface_real_get_config_string (SpitHostInterface* base, - const gchar* key, - const gchar* def); -gchar* configuration_facade_get_plugin_string (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* def); -static void plugins_standard_host_interface_real_set_config_string (SpitHostInterface* base, - const gchar* key, - const gchar* val); -void configuration_facade_set_plugin_string (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - const gchar* val); -static gdouble plugins_standard_host_interface_real_get_config_double (SpitHostInterface* base, - const gchar* key, - gdouble def); -gdouble configuration_facade_get_plugin_double (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble def); -static void plugins_standard_host_interface_real_set_config_double (SpitHostInterface* base, - const gchar* key, - gdouble val); -void configuration_facade_set_plugin_double (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key, - gdouble val); -static void plugins_standard_host_interface_real_unset_config_key (SpitHostInterface* base, - const gchar* key); -void configuration_facade_unset_plugin_key (ConfigurationFacade* self, - const gchar* domain, - const gchar* id, - const gchar* key); -static void plugins_standard_host_interface_finalize (GObject * obj); - - -PluginsStandardHostInterface* -plugins_standard_host_interface_construct (GType object_type, - SpitPluggable* pluggable, - const gchar* config_domain) -{ - PluginsStandardHostInterface * self = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; - GFile* _tmp3_; -#line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_val_if_fail (SPIT_IS_PLUGGABLE (pluggable), NULL); -#line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_val_if_fail (config_domain != NULL, NULL); -#line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = (PluginsStandardHostInterface*) g_object_new (object_type, NULL); -#line 16 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = g_strdup (config_domain); -#line 16 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_free0 (self->priv->config_domain); -#line 16 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self->priv->config_domain = _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = spit_pluggable_get_id (pluggable); -#line 17 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = plugins_standard_host_interface_parse_key (_tmp1_); -#line 17 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_free0 (self->priv->config_id); -#line 17 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self->priv->config_id = _tmp2_; -#line 18 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = plugins_get_pluggable_module_file (pluggable); -#line 18 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (self->priv->module_file); -#line 18 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self->priv->module_file = _tmp3_; -#line 19 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - spit_pluggable_get_info (pluggable, &self->priv->info); -#line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return self; -#line 206 "StandardHostInterface.c" -} - - -PluginsStandardHostInterface* -plugins_standard_host_interface_new (SpitPluggable* pluggable, - const gchar* config_domain) -{ -#line 15 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return plugins_standard_host_interface_construct (PLUGINS_TYPE_STANDARD_HOST_INTERFACE, pluggable, config_domain); -#line 216 "StandardHostInterface.c" -} - - -static gchar* -plugins_standard_host_interface_parse_key (const gchar* id) -{ - gchar* result = NULL; - const gchar* _tmp0_; - GQuark _tmp2_ = 0U; -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - static GQuark _tmp1_label0 = 0; -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - static GQuark _tmp1_label1 = 0; -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - static GQuark _tmp1_label2 = 0; -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - static GQuark _tmp1_label3 = 0; -#line 22 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_val_if_fail (id != NULL, NULL); -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = id; -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = (NULL == _tmp0_) ? 0 : g_quark_from_string (_tmp0_); -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - if (_tmp2_ == ((0 != _tmp1_label0) ? _tmp1_label0 : (_tmp1_label0 = g_quark_from_static_string ("org.yorba.shotwell.publishing.facebook")))) { -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - switch (0) { -#line 244 "StandardHostInterface.c" - default: - { - gchar* _tmp3_; -#line 27 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = g_strdup ("facebook"); -#line 27 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp3_; -#line 27 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 254 "StandardHostInterface.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label1) ? _tmp1_label1 : (_tmp1_label1 = g_quark_from_static_string ("org.yorba.shotwell.publishing.picasa")))) { -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - switch (0) { -#line 260 "StandardHostInterface.c" - default: - { - gchar* _tmp4_; -#line 30 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = g_strdup ("picasa"); -#line 30 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp4_; -#line 30 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 270 "StandardHostInterface.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label2) ? _tmp1_label2 : (_tmp1_label2 = g_quark_from_static_string ("org.yorba.shotwell.publishing.flickr")))) { -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - switch (0) { -#line 276 "StandardHostInterface.c" - default: - { - gchar* _tmp5_; -#line 33 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp5_ = g_strdup ("flickr"); -#line 33 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp5_; -#line 33 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 286 "StandardHostInterface.c" - } - } - } else if (_tmp2_ == ((0 != _tmp1_label3) ? _tmp1_label3 : (_tmp1_label3 = g_quark_from_static_string ("org.yorba.shotwell.publishing.youtube")))) { -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - switch (0) { -#line 292 "StandardHostInterface.c" - default: - { - gchar* _tmp6_; -#line 36 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp6_ = g_strdup ("youtube"); -#line 36 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp6_; -#line 36 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 302 "StandardHostInterface.c" - } - } - } else { -#line 25 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - switch (0) { -#line 308 "StandardHostInterface.c" - default: - { - gchar* _tmp7_; -#line 39 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp7_ = g_strdup (id); -#line 39 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp7_; -#line 39 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 318 "StandardHostInterface.c" - } - } - } -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 44 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return self ? g_object_ref (self) : NULL; -#line 330 "StandardHostInterface.c" -} - - -static GFile* -plugins_standard_host_interface_real_get_module_file (SpitHostInterface* base) -{ - PluginsStandardHostInterface * self; - GFile* result = NULL; - GFile* _tmp0_; - GFile* _tmp1_; -#line 43 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 44 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = self->priv->module_file; -#line 44 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 44 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp1_; -#line 44 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 351 "StandardHostInterface.c" -} - - -static gboolean -plugins_standard_host_interface_real_get_config_bool (SpitHostInterface* base, - const gchar* key, - gboolean def) -{ - PluginsStandardHostInterface * self; - gboolean result = FALSE; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - gboolean _tmp4_; -#line 47 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 47 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_val_if_fail (key != NULL, FALSE); -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = configuration_facade_get_plugin_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, def); -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp4_; -#line 48 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 387 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_real_set_config_bool (SpitHostInterface* base, - const gchar* key, - gboolean val) -{ - PluginsStandardHostInterface * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 51 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 51 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_if_fail (key != NULL); -#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - configuration_facade_set_plugin_bool (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, val); -#line 52 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 417 "StandardHostInterface.c" -} - - -static gint -plugins_standard_host_interface_real_get_config_int (SpitHostInterface* base, - const gchar* key, - gint def) -{ - PluginsStandardHostInterface * self; - gint result = 0; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - gint _tmp4_; -#line 55 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 55 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_val_if_fail (key != NULL, 0); -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = configuration_facade_get_plugin_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, def); -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp4_; -#line 56 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 453 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_real_set_config_int (SpitHostInterface* base, - const gchar* key, - gint val) -{ - PluginsStandardHostInterface * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 59 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 59 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_if_fail (key != NULL); -#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - configuration_facade_set_plugin_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, val); -#line 60 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 483 "StandardHostInterface.c" -} - - -static gchar* -plugins_standard_host_interface_real_get_config_string (SpitHostInterface* base, - const gchar* key, - const gchar* def) -{ - PluginsStandardHostInterface * self; - gchar* result = NULL; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 63 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 63 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_val_if_fail (key != NULL, NULL); -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = configuration_facade_get_plugin_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, def); -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp5_ = _tmp4_; -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp5_; -#line 64 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 522 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_real_set_config_string (SpitHostInterface* base, - const gchar* key, - const gchar* val) -{ - PluginsStandardHostInterface * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 67 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 67 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_if_fail (key != NULL); -#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - configuration_facade_set_plugin_string (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, val); -#line 68 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 552 "StandardHostInterface.c" -} - - -static gdouble -plugins_standard_host_interface_real_get_config_double (SpitHostInterface* base, - const gchar* key, - gdouble def) -{ - PluginsStandardHostInterface * self; - gdouble result = 0.0; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; - gdouble _tmp4_; -#line 71 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 71 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_val_if_fail (key != NULL, 0.0); -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp4_ = configuration_facade_get_plugin_double (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, def); -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - result = _tmp4_; -#line 72 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - return result; -#line 588 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_real_set_config_double (SpitHostInterface* base, - const gchar* key, - gdouble val) -{ - PluginsStandardHostInterface * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 75 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 75 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_if_fail (key != NULL); -#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - configuration_facade_set_plugin_double (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key, val); -#line 76 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 618 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_real_unset_config_key (SpitHostInterface* base, - const gchar* key) -{ - PluginsStandardHostInterface * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 79 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 79 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_return_if_fail (key != NULL); -#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp0_ = config_facade_get_instance (); -#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp1_ = _tmp0_; -#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp2_ = self->priv->config_domain; -#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _tmp3_ = self->priv->config_id; -#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - configuration_facade_unset_plugin_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp2_, _tmp3_, key); -#line 80 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (_tmp1_); -#line 647 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_class_init (PluginsStandardHostInterfaceClass * klass) -{ -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - plugins_standard_host_interface_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - g_type_class_add_private (klass, sizeof (PluginsStandardHostInterfacePrivate)); -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - G_OBJECT_CLASS (klass)->finalize = plugins_standard_host_interface_finalize; -#line 660 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_spit_host_interface_interface_init (SpitHostInterfaceIface * iface) -{ -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - plugins_standard_host_interface_spit_host_interface_parent_iface = g_type_interface_peek_parent (iface); -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->get_module_file = (GFile* (*) (SpitHostInterface *)) plugins_standard_host_interface_real_get_module_file; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->get_config_bool = (gboolean (*) (SpitHostInterface *, const gchar*, gboolean)) plugins_standard_host_interface_real_get_config_bool; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->set_config_bool = (void (*) (SpitHostInterface *, const gchar*, gboolean)) plugins_standard_host_interface_real_set_config_bool; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->get_config_int = (gint (*) (SpitHostInterface *, const gchar*, gint)) plugins_standard_host_interface_real_get_config_int; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->set_config_int = (void (*) (SpitHostInterface *, const gchar*, gint)) plugins_standard_host_interface_real_set_config_int; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->get_config_string = (gchar* (*) (SpitHostInterface *, const gchar*, const gchar*)) plugins_standard_host_interface_real_get_config_string; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->set_config_string = (void (*) (SpitHostInterface *, const gchar*, const gchar*)) plugins_standard_host_interface_real_set_config_string; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->get_config_double = (gdouble (*) (SpitHostInterface *, const gchar*, gdouble)) plugins_standard_host_interface_real_get_config_double; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->set_config_double = (void (*) (SpitHostInterface *, const gchar*, gdouble)) plugins_standard_host_interface_real_set_config_double; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - iface->unset_config_key = (void (*) (SpitHostInterface *, const gchar*)) plugins_standard_host_interface_real_unset_config_key; -#line 689 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_instance_init (PluginsStandardHostInterface * self) -{ -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self->priv = PLUGINS_STANDARD_HOST_INTERFACE_GET_PRIVATE (self); -#line 698 "StandardHostInterface.c" -} - - -static void -plugins_standard_host_interface_finalize (GObject * obj) -{ - PluginsStandardHostInterface * self; -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface); -#line 10 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_free0 (self->priv->config_domain); -#line 11 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_free0 (self->priv->config_id); -#line 12 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - _g_object_unref0 (self->priv->module_file); -#line 13 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - spit_pluggable_info_destroy (&self->priv->info); -#line 9 "/home/jens/Source/shotwell/src/plugins/StandardHostInterface.vala" - G_OBJECT_CLASS (plugins_standard_host_interface_parent_class)->finalize (obj); -#line 718 "StandardHostInterface.c" -} - - -GType -plugins_standard_host_interface_get_type (void) -{ - static volatile gsize plugins_standard_host_interface_type_id__volatile = 0; - if (g_once_init_enter (&plugins_standard_host_interface_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PluginsStandardHostInterfaceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugins_standard_host_interface_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PluginsStandardHostInterface), 0, (GInstanceInitFunc) plugins_standard_host_interface_instance_init, NULL }; - static const GInterfaceInfo spit_host_interface_info = { (GInterfaceInitFunc) plugins_standard_host_interface_spit_host_interface_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType plugins_standard_host_interface_type_id; - plugins_standard_host_interface_type_id = g_type_register_static (G_TYPE_OBJECT, "PluginsStandardHostInterface", &g_define_type_info, 0); - g_type_add_interface_static (plugins_standard_host_interface_type_id, SPIT_TYPE_HOST_INTERFACE, &spit_host_interface_info); - g_once_init_leave (&plugins_standard_host_interface_type_id__volatile, plugins_standard_host_interface_type_id); - } - return plugins_standard_host_interface_type_id__volatile; -} - - - diff --git a/src/plugins/TransitionsInterfaces.c b/src/plugins/TransitionsInterfaces.c deleted file mode 100644 index 248a2e9..0000000 --- a/src/plugins/TransitionsInterfaces.c +++ /dev/null @@ -1,2249 +0,0 @@ -/* TransitionsInterfaces.c generated by valac 0.40.4, the Vala compiler - * generated from TransitionsInterfaces.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define SPIT_TRANSITIONS_TYPE_DIRECTION (spit_transitions_direction_get_type ()) - -#define SPIT_TRANSITIONS_TYPE_VISUALS (spit_transitions_visuals_get_type ()) -#define SPIT_TRANSITIONS_VISUALS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisuals)) -#define SPIT_TRANSITIONS_VISUALS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisualsClass)) -#define SPIT_TRANSITIONS_IS_VISUALS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_VISUALS)) -#define SPIT_TRANSITIONS_IS_VISUALS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_TRANSITIONS_TYPE_VISUALS)) -#define SPIT_TRANSITIONS_VISUALS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisualsClass)) - -typedef struct _SpitTransitionsVisuals SpitTransitionsVisuals; -typedef struct _SpitTransitionsVisualsClass SpitTransitionsVisualsClass; -typedef struct _SpitTransitionsVisualsPrivate SpitTransitionsVisualsPrivate; -enum { - SPIT_TRANSITIONS_VISUALS_0_PROPERTY, - SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF_PROPERTY, - SPIT_TRANSITIONS_VISUALS_FROM_POS_PROPERTY, - SPIT_TRANSITIONS_VISUALS_TO_PIXBUF_PROPERTY, - SPIT_TRANSITIONS_VISUALS_TO_POS_PROPERTY, - SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY, - SPIT_TRANSITIONS_VISUALS_NUM_PROPERTIES -}; -static GParamSpec* spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define SPIT_TRANSITIONS_TYPE_MOTION (spit_transitions_motion_get_type ()) -#define SPIT_TRANSITIONS_MOTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotion)) -#define SPIT_TRANSITIONS_MOTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotionClass)) -#define SPIT_TRANSITIONS_IS_MOTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_MOTION)) -#define SPIT_TRANSITIONS_IS_MOTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_TRANSITIONS_TYPE_MOTION)) -#define SPIT_TRANSITIONS_MOTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotionClass)) - -typedef struct _SpitTransitionsMotion SpitTransitionsMotion; -typedef struct _SpitTransitionsMotionClass SpitTransitionsMotionClass; -typedef struct _SpitTransitionsMotionPrivate SpitTransitionsMotionPrivate; -enum { - SPIT_TRANSITIONS_MOTION_0_PROPERTY, - SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY, - SPIT_TRANSITIONS_MOTION_FPS_PROPERTY, - SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY, - SPIT_TRANSITIONS_MOTION_TOTAL_FRAMES_PROPERTY, - SPIT_TRANSITIONS_MOTION_TICK_MSEC_PROPERTY, - SPIT_TRANSITIONS_MOTION_NUM_PROPERTIES -}; -static GParamSpec* spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_NUM_PROPERTIES]; - -#define SPIT_TYPE_PLUGGABLE (spit_pluggable_get_type ()) -#define SPIT_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggable)) -#define SPIT_IS_PLUGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_PLUGGABLE)) -#define SPIT_PLUGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_PLUGGABLE, SpitPluggableIface)) - -typedef struct _SpitPluggable SpitPluggable; -typedef struct _SpitPluggableIface SpitPluggableIface; - -#define SPIT_TYPE_PLUGGABLE_INFO (spit_pluggable_info_get_type ()) -typedef struct _SpitPluggableInfo SpitPluggableInfo; - -#define SPIT_TRANSITIONS_TYPE_DESCRIPTOR (spit_transitions_descriptor_get_type ()) -#define SPIT_TRANSITIONS_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptor)) -#define SPIT_TRANSITIONS_IS_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR)) -#define SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptorIface)) - -typedef struct _SpitTransitionsDescriptor SpitTransitionsDescriptor; -typedef struct _SpitTransitionsDescriptorIface SpitTransitionsDescriptorIface; - -#define SPIT_TYPE_HOST_INTERFACE (spit_host_interface_get_type ()) -#define SPIT_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterface)) -#define SPIT_IS_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TYPE_HOST_INTERFACE)) -#define SPIT_HOST_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TYPE_HOST_INTERFACE, SpitHostInterfaceIface)) - -typedef struct _SpitHostInterface SpitHostInterface; -typedef struct _SpitHostInterfaceIface SpitHostInterfaceIface; - -#define SPIT_TRANSITIONS_TYPE_EFFECT (spit_transitions_effect_get_type ()) -#define SPIT_TRANSITIONS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect)) -#define SPIT_TRANSITIONS_IS_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_TRANSITIONS_TYPE_EFFECT)) -#define SPIT_TRANSITIONS_EFFECT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffectIface)) - -typedef struct _SpitTransitionsEffect SpitTransitionsEffect; -typedef struct _SpitTransitionsEffectIface SpitTransitionsEffectIface; - -typedef enum { - SPIT_TRANSITIONS_DIRECTION_LEFT = 0, - SPIT_TRANSITIONS_DIRECTION_RIGHT = 1, - SPIT_TRANSITIONS_DIRECTION_FORWARD = SPIT_TRANSITIONS_DIRECTION_LEFT, - SPIT_TRANSITIONS_DIRECTION_BACKWARD = SPIT_TRANSITIONS_DIRECTION_RIGHT -} SpitTransitionsDirection; - -struct _SpitTransitionsVisuals { - GObject parent_instance; - SpitTransitionsVisualsPrivate * priv; -}; - -struct _SpitTransitionsVisualsClass { - GObjectClass parent_class; - void (*reserved0) (SpitTransitionsVisuals* self); - void (*reserved1) (SpitTransitionsVisuals* self); - void (*reserved2) (SpitTransitionsVisuals* self); - void (*reserved3) (SpitTransitionsVisuals* self); - void (*reserved4) (SpitTransitionsVisuals* self); - void (*reserved5) (SpitTransitionsVisuals* self); - void (*reserved6) (SpitTransitionsVisuals* self); - void (*reserved7) (SpitTransitionsVisuals* self); -}; - -struct _SpitTransitionsVisualsPrivate { - GdkPixbuf* _from_pixbuf; - GdkRectangle _from_pos; - GdkPixbuf* _to_pixbuf; - GdkRectangle _to_pos; - GdkRGBA _bg_color; -}; - -struct _SpitTransitionsMotion { - GObject parent_instance; - SpitTransitionsMotionPrivate * priv; -}; - -struct _SpitTransitionsMotionClass { - GObjectClass parent_class; - void (*reserved0) (SpitTransitionsMotion* self); - void (*reserved1) (SpitTransitionsMotion* self); - void (*reserved2) (SpitTransitionsMotion* self); - void (*reserved3) (SpitTransitionsMotion* self); - void (*reserved4) (SpitTransitionsMotion* self); - void (*reserved5) (SpitTransitionsMotion* self); - void (*reserved6) (SpitTransitionsMotion* self); - void (*reserved7) (SpitTransitionsMotion* self); -}; - -struct _SpitTransitionsMotionPrivate { - SpitTransitionsDirection _direction; - gint _fps; - gint _duration_msec; -}; - -struct _SpitPluggableInfo { - gchar* version; - gchar* brief_description; - gchar* authors; - gchar* copyright; - gchar* license; - gboolean is_license_wordwrapped; - gchar* website_url; - gchar* website_name; - gchar* translators; - GdkPixbuf** icons; - gint icons_length1; -}; - -struct _SpitPluggableIface { - GTypeInterface parent_iface; - gint (*get_pluggable_interface) (SpitPluggable* self, gint min_host_interface, gint max_host_interface); - const gchar* (*get_id) (SpitPluggable* self); - const gchar* (*get_pluggable_name) (SpitPluggable* self); - void (*get_info) (SpitPluggable* self, SpitPluggableInfo* info); - void (*activation) (SpitPluggable* self, gboolean enabled); - void (*reserved0) (SpitPluggable* self); - void (*reserved1) (SpitPluggable* self); - void (*reserved2) (SpitPluggable* self); - void (*reserved3) (SpitPluggable* self); - void (*reserved4) (SpitPluggable* self); - void (*reserved5) (SpitPluggable* self); - void (*reserved6) (SpitPluggable* self); - void (*reserved7) (SpitPluggable* self); -}; - -struct _SpitHostInterfaceIface { - GTypeInterface parent_iface; - GFile* (*get_module_file) (SpitHostInterface* self); - gboolean (*get_config_bool) (SpitHostInterface* self, const gchar* key, gboolean def); - void (*set_config_bool) (SpitHostInterface* self, const gchar* key, gboolean val); - gint (*get_config_int) (SpitHostInterface* self, const gchar* key, gint def); - void (*set_config_int) (SpitHostInterface* self, const gchar* key, gint val); - gchar* (*get_config_string) (SpitHostInterface* self, const gchar* key, const gchar* def); - void (*set_config_string) (SpitHostInterface* self, const gchar* key, const gchar* val); - gdouble (*get_config_double) (SpitHostInterface* self, const gchar* key, gdouble def); - void (*set_config_double) (SpitHostInterface* self, const gchar* key, gdouble val); - void (*unset_config_key) (SpitHostInterface* self, const gchar* key); - void (*reserved0) (SpitHostInterface* self); - void (*reserved1) (SpitHostInterface* self); - void (*reserved2) (SpitHostInterface* self); - void (*reserved3) (SpitHostInterface* self); - void (*reserved4) (SpitHostInterface* self); - void (*reserved5) (SpitHostInterface* self); - void (*reserved6) (SpitHostInterface* self); - void (*reserved7) (SpitHostInterface* self); -}; - -struct _SpitTransitionsEffectIface { - GTypeInterface parent_iface; - void (*get_fps) (SpitTransitionsEffect* self, gint* desired_fps, gint* min_fps); - void (*start) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion); - gboolean (*needs_clear_background) (SpitTransitionsEffect* self); - void (*paint) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, cairo_t* ctx, gint width, gint height, gint frame_number); - void (*advance) (SpitTransitionsEffect* self, SpitTransitionsVisuals* visuals, SpitTransitionsMotion* motion, gint frame_number); - void (*cancel) (SpitTransitionsEffect* self); - void (*reserved0) (SpitTransitionsEffect* self); - void (*reserved1) (SpitTransitionsEffect* self); - void (*reserved2) (SpitTransitionsEffect* self); - void (*reserved3) (SpitTransitionsEffect* self); - void (*reserved4) (SpitTransitionsEffect* self); - void (*reserved5) (SpitTransitionsEffect* self); - void (*reserved6) (SpitTransitionsEffect* self); - void (*reserved7) (SpitTransitionsEffect* self); -}; - -struct _SpitTransitionsDescriptorIface { - GTypeInterface parent_iface; - SpitTransitionsEffect* (*create) (SpitTransitionsDescriptor* self, SpitHostInterface* host); - void (*reserved0) (SpitTransitionsDescriptor* self); - void (*reserved1) (SpitTransitionsDescriptor* self); - void (*reserved2) (SpitTransitionsDescriptor* self); - void (*reserved3) (SpitTransitionsDescriptor* self); - void (*reserved4) (SpitTransitionsDescriptor* self); - void (*reserved5) (SpitTransitionsDescriptor* self); - void (*reserved6) (SpitTransitionsDescriptor* self); - void (*reserved7) (SpitTransitionsDescriptor* self); -}; - - -static gpointer spit_transitions_visuals_parent_class = NULL; -static gpointer spit_transitions_motion_parent_class = NULL; - -#define SPIT_TRANSITIONS_CURRENT_INTERFACE 0 -GType spit_transitions_direction_get_type (void) G_GNUC_CONST; -GType spit_transitions_visuals_get_type (void) G_GNUC_CONST; -#define SPIT_TRANSITIONS_VISUALS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisualsPrivate)) -SpitTransitionsVisuals* spit_transitions_visuals_new (GdkPixbuf* from_pixbuf, - GdkRectangle* from_pos, - GdkPixbuf* to_pixbuf, - GdkRectangle* to_pos, - GdkRGBA* bg_color); -SpitTransitionsVisuals* spit_transitions_visuals_construct (GType object_type, - GdkPixbuf* from_pixbuf, - GdkRectangle* from_pos, - GdkPixbuf* to_pixbuf, - GdkRectangle* to_pos, - GdkRGBA* bg_color); -static void spit_transitions_visuals_set_from_pixbuf (SpitTransitionsVisuals* self, - GdkPixbuf* value); -static void spit_transitions_visuals_set_from_pos (SpitTransitionsVisuals* self, - GdkRectangle * value); -static void spit_transitions_visuals_set_to_pixbuf (SpitTransitionsVisuals* self, - GdkPixbuf* value); -static void spit_transitions_visuals_set_to_pos (SpitTransitionsVisuals* self, - GdkRectangle * value); -static void spit_transitions_visuals_set_bg_color (SpitTransitionsVisuals* self, - GdkRGBA * value); -void spit_transitions_visuals_reserved0 (SpitTransitionsVisuals* self); -static void spit_transitions_visuals_real_reserved0 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved1 (SpitTransitionsVisuals* self); -static void spit_transitions_visuals_real_reserved1 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved2 (SpitTransitionsVisuals* self); -static void spit_transitions_visuals_real_reserved2 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved3 (SpitTransitionsVisuals* self); -static void spit_transitions_visuals_real_reserved3 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved4 (SpitTransitionsVisuals* self); -static void spit_transitions_visuals_real_reserved4 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved5 (SpitTransitionsVisuals* self); -static void spit_transitions_visuals_real_reserved5 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved6 (SpitTransitionsVisuals* self); -static void spit_transitions_visuals_real_reserved6 (SpitTransitionsVisuals* self); -void spit_transitions_visuals_reserved7 (SpitTransitionsVisuals* self); -static void spit_transitions_visuals_real_reserved7 (SpitTransitionsVisuals* self); -GdkPixbuf* spit_transitions_visuals_get_from_pixbuf (SpitTransitionsVisuals* self); -void spit_transitions_visuals_get_from_pos (SpitTransitionsVisuals* self, - GdkRectangle * result); -static gboolean _cairo_rectangle_int_equal (const cairo_rectangle_int_t * s1, - const cairo_rectangle_int_t * s2); -GdkPixbuf* spit_transitions_visuals_get_to_pixbuf (SpitTransitionsVisuals* self); -void spit_transitions_visuals_get_to_pos (SpitTransitionsVisuals* self, - GdkRectangle * result); -void spit_transitions_visuals_get_bg_color (SpitTransitionsVisuals* self, - GdkRGBA * result); -static gboolean _gdk_rgba_equal (const GdkRGBA * s1, - const GdkRGBA * s2); -static void spit_transitions_visuals_finalize (GObject * obj); -static void _vala_spit_transitions_visuals_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_spit_transitions_visuals_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -GType spit_transitions_motion_get_type (void) G_GNUC_CONST; -#define SPIT_TRANSITIONS_MOTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotionPrivate)) -SpitTransitionsMotion* spit_transitions_motion_new (SpitTransitionsDirection direction, - gint fps, - gint duration_msec); -SpitTransitionsMotion* spit_transitions_motion_construct (GType object_type, - SpitTransitionsDirection direction, - gint fps, - gint duration_msec); -static void spit_transitions_motion_set_direction (SpitTransitionsMotion* self, - SpitTransitionsDirection value); -static void spit_transitions_motion_set_fps (SpitTransitionsMotion* self, - gint value); -static void spit_transitions_motion_set_duration_msec (SpitTransitionsMotion* self, - gint value); -gdouble spit_transitions_motion_get_alpha (SpitTransitionsMotion* self, - gint frame_number); -gint spit_transitions_motion_get_total_frames (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved0 (SpitTransitionsMotion* self); -static void spit_transitions_motion_real_reserved0 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved1 (SpitTransitionsMotion* self); -static void spit_transitions_motion_real_reserved1 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved2 (SpitTransitionsMotion* self); -static void spit_transitions_motion_real_reserved2 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved3 (SpitTransitionsMotion* self); -static void spit_transitions_motion_real_reserved3 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved4 (SpitTransitionsMotion* self); -static void spit_transitions_motion_real_reserved4 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved5 (SpitTransitionsMotion* self); -static void spit_transitions_motion_real_reserved5 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved6 (SpitTransitionsMotion* self); -static void spit_transitions_motion_real_reserved6 (SpitTransitionsMotion* self); -void spit_transitions_motion_reserved7 (SpitTransitionsMotion* self); -static void spit_transitions_motion_real_reserved7 (SpitTransitionsMotion* self); -SpitTransitionsDirection spit_transitions_motion_get_direction (SpitTransitionsMotion* self); -gint spit_transitions_motion_get_fps (SpitTransitionsMotion* self); -gint spit_transitions_motion_get_duration_msec (SpitTransitionsMotion* self); -gint spit_transitions_motion_get_tick_msec (SpitTransitionsMotion* self); -static void spit_transitions_motion_finalize (GObject * obj); -static void _vala_spit_transitions_motion_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec); -static void _vala_spit_transitions_motion_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec); -GType spit_pluggable_info_get_type (void) G_GNUC_CONST; -SpitPluggableInfo* spit_pluggable_info_dup (const SpitPluggableInfo* self); -void spit_pluggable_info_free (SpitPluggableInfo* self); -void spit_pluggable_info_copy (const SpitPluggableInfo* self, - SpitPluggableInfo* dest); -void spit_pluggable_info_destroy (SpitPluggableInfo* self); -GType spit_pluggable_get_type (void) G_GNUC_CONST; -GType spit_host_interface_get_type (void) G_GNUC_CONST; -GType spit_transitions_effect_get_type (void) G_GNUC_CONST; -GType spit_transitions_descriptor_get_type (void) G_GNUC_CONST; -SpitTransitionsEffect* spit_transitions_descriptor_create (SpitTransitionsDescriptor* self, - SpitHostInterface* host); -void spit_transitions_descriptor_reserved0 (SpitTransitionsDescriptor* self); -static void spit_transitions_descriptor_real_reserved0 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved1 (SpitTransitionsDescriptor* self); -static void spit_transitions_descriptor_real_reserved1 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved2 (SpitTransitionsDescriptor* self); -static void spit_transitions_descriptor_real_reserved2 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved3 (SpitTransitionsDescriptor* self); -static void spit_transitions_descriptor_real_reserved3 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved4 (SpitTransitionsDescriptor* self); -static void spit_transitions_descriptor_real_reserved4 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved5 (SpitTransitionsDescriptor* self); -static void spit_transitions_descriptor_real_reserved5 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved6 (SpitTransitionsDescriptor* self); -static void spit_transitions_descriptor_real_reserved6 (SpitTransitionsDescriptor* self); -void spit_transitions_descriptor_reserved7 (SpitTransitionsDescriptor* self); -static void spit_transitions_descriptor_real_reserved7 (SpitTransitionsDescriptor* self); -void spit_transitions_effect_get_fps (SpitTransitionsEffect* self, - gint* desired_fps, - gint* min_fps); -void spit_transitions_effect_start (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -gboolean spit_transitions_effect_needs_clear_background (SpitTransitionsEffect* self); -void spit_transitions_effect_paint (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -void spit_transitions_effect_advance (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -void spit_transitions_effect_cancel (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved0 (SpitTransitionsEffect* self); -static void spit_transitions_effect_real_reserved0 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved1 (SpitTransitionsEffect* self); -static void spit_transitions_effect_real_reserved1 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved2 (SpitTransitionsEffect* self); -static void spit_transitions_effect_real_reserved2 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved3 (SpitTransitionsEffect* self); -static void spit_transitions_effect_real_reserved3 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved4 (SpitTransitionsEffect* self); -static void spit_transitions_effect_real_reserved4 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved5 (SpitTransitionsEffect* self); -static void spit_transitions_effect_real_reserved5 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved6 (SpitTransitionsEffect* self); -static void spit_transitions_effect_real_reserved6 (SpitTransitionsEffect* self); -void spit_transitions_effect_reserved7 (SpitTransitionsEffect* self); -static void spit_transitions_effect_real_reserved7 (SpitTransitionsEffect* self); - - -/** - * Direction indicates what direction (animated motion) the {@link Effect} should simulate the - * images are moving, if appropriate. - * - * The direction indicates from what side or corner of the screen the new image should come in from. - * Thus, a LEFT slide means the current image exits via the left-hand edge of the screen and the - * new image moves into place from the right-hand edge. - * - * UP, DOWN, and diagonals may be added at some point. - */ -GType -spit_transitions_direction_get_type (void) -{ - static volatile gsize spit_transitions_direction_type_id__volatile = 0; - if (g_once_init_enter (&spit_transitions_direction_type_id__volatile)) { - static const GEnumValue values[] = {{SPIT_TRANSITIONS_DIRECTION_LEFT, "SPIT_TRANSITIONS_DIRECTION_LEFT", "left"}, {SPIT_TRANSITIONS_DIRECTION_RIGHT, "SPIT_TRANSITIONS_DIRECTION_RIGHT", "right"}, {SPIT_TRANSITIONS_DIRECTION_FORWARD, "SPIT_TRANSITIONS_DIRECTION_FORWARD", "forward"}, {SPIT_TRANSITIONS_DIRECTION_BACKWARD, "SPIT_TRANSITIONS_DIRECTION_BACKWARD", "backward"}, {0, NULL, NULL}}; - GType spit_transitions_direction_type_id; - spit_transitions_direction_type_id = g_enum_register_static ("SpitTransitionsDirection", values); - g_once_init_leave (&spit_transitions_direction_type_id__volatile, spit_transitions_direction_type_id); - } - return spit_transitions_direction_type_id__volatile; -} - - -SpitTransitionsVisuals* -spit_transitions_visuals_construct (GType object_type, - GdkPixbuf* from_pixbuf, - GdkRectangle* from_pos, - GdkPixbuf* to_pixbuf, - GdkRectangle* to_pos, - GdkRGBA* bg_color) -{ - SpitTransitionsVisuals * self = NULL; - GdkRectangle _tmp0_; - GdkRectangle _tmp1_; - GdkRGBA _tmp2_; -#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail ((from_pixbuf == NULL) || GDK_IS_PIXBUF (from_pixbuf), NULL); -#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (from_pos != NULL, NULL); -#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail ((to_pixbuf == NULL) || GDK_IS_PIXBUF (to_pixbuf), NULL); -#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (to_pos != NULL, NULL); -#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (bg_color != NULL, NULL); -#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self = (SpitTransitionsVisuals*) g_object_new (object_type, NULL); -#line 96 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_from_pixbuf (self, from_pixbuf); -#line 97 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = *from_pos; -#line 97 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_from_pos (self, &_tmp0_); -#line 98 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_to_pixbuf (self, to_pixbuf); -#line 99 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp1_ = *to_pos; -#line 99 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_to_pos (self, &_tmp1_); -#line 100 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp2_ = *bg_color; -#line 100 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_bg_color (self, &_tmp2_); -#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return self; -#line 487 "TransitionsInterfaces.c" -} - - -SpitTransitionsVisuals* -spit_transitions_visuals_new (GdkPixbuf* from_pixbuf, - GdkRectangle* from_pos, - GdkPixbuf* to_pixbuf, - GdkRectangle* to_pos, - GdkRGBA* bg_color) -{ -#line 94 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return spit_transitions_visuals_construct (SPIT_TRANSITIONS_TYPE_VISUALS, from_pixbuf, from_pos, to_pixbuf, to_pos, bg_color); -#line 500 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_real_reserved0 (SpitTransitionsVisuals* self) -{ -} - - -void -spit_transitions_visuals_reserved0 (SpitTransitionsVisuals* self) -{ -#line 106 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 106 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved0 (self); -#line 517 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_real_reserved1 (SpitTransitionsVisuals* self) -{ -} - - -void -spit_transitions_visuals_reserved1 (SpitTransitionsVisuals* self) -{ -#line 107 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 107 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved1 (self); -#line 534 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_real_reserved2 (SpitTransitionsVisuals* self) -{ -} - - -void -spit_transitions_visuals_reserved2 (SpitTransitionsVisuals* self) -{ -#line 108 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 108 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved2 (self); -#line 551 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_real_reserved3 (SpitTransitionsVisuals* self) -{ -} - - -void -spit_transitions_visuals_reserved3 (SpitTransitionsVisuals* self) -{ -#line 109 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 109 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved3 (self); -#line 568 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_real_reserved4 (SpitTransitionsVisuals* self) -{ -} - - -void -spit_transitions_visuals_reserved4 (SpitTransitionsVisuals* self) -{ -#line 110 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 110 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved4 (self); -#line 585 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_real_reserved5 (SpitTransitionsVisuals* self) -{ -} - - -void -spit_transitions_visuals_reserved5 (SpitTransitionsVisuals* self) -{ -#line 111 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 111 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved5 (self); -#line 602 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_real_reserved6 (SpitTransitionsVisuals* self) -{ -} - - -void -spit_transitions_visuals_reserved6 (SpitTransitionsVisuals* self) -{ -#line 112 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 112 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved6 (self); -#line 619 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_real_reserved7 (SpitTransitionsVisuals* self) -{ -} - - -void -spit_transitions_visuals_reserved7 (SpitTransitionsVisuals* self) -{ -#line 113 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 113 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_VISUALS_GET_CLASS (self)->reserved7 (self); -#line 636 "TransitionsInterfaces.c" -} - - -GdkPixbuf* -spit_transitions_visuals_get_from_pixbuf (SpitTransitionsVisuals* self) -{ - GdkPixbuf* result; - GdkPixbuf* _tmp0_; -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self), NULL); -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_from_pixbuf; -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - result = _tmp0_; -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return result; -#line 653 "TransitionsInterfaces.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return self ? g_object_ref (self) : NULL; -#line 662 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_set_from_pixbuf (SpitTransitionsVisuals* self, - GdkPixbuf* value) -{ -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (spit_transitions_visuals_get_from_pixbuf (self) != value) { -#line 674 "TransitionsInterfaces.c" - GdkPixbuf* _tmp0_; -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = _g_object_ref0 (value); -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _g_object_unref0 (self->priv->_from_pixbuf); -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv->_from_pixbuf = _tmp0_; -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_notify_by_pspec ((GObject *) self, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF_PROPERTY]); -#line 684 "TransitionsInterfaces.c" - } -} - - -void -spit_transitions_visuals_get_from_pos (SpitTransitionsVisuals* self, - GdkRectangle * result) -{ - GdkRectangle _tmp0_; -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_from_pos; -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - *result = _tmp0_; -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return; -#line 702 "TransitionsInterfaces.c" -} - - -static gboolean -_cairo_rectangle_int_equal (const cairo_rectangle_int_t * s1, - const cairo_rectangle_int_t * s2) -{ -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1 == s2) { -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return TRUE; -#line 714 "TransitionsInterfaces.c" - } -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1 == NULL) { -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 720 "TransitionsInterfaces.c" - } -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s2 == NULL) { -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 726 "TransitionsInterfaces.c" - } -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1->x != s2->x) { -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 732 "TransitionsInterfaces.c" - } -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1->y != s2->y) { -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 738 "TransitionsInterfaces.c" - } -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1->width != s2->width) { -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 744 "TransitionsInterfaces.c" - } -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1->height != s2->height) { -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 750 "TransitionsInterfaces.c" - } -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return TRUE; -#line 754 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_set_from_pos (SpitTransitionsVisuals* self, - GdkRectangle * value) -{ - GdkRectangle old_value; -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (_cairo_rectangle_int_equal (value, (spit_transitions_visuals_get_from_pos (self, &old_value), &old_value)) != TRUE) { -#line 767 "TransitionsInterfaces.c" - GdkRectangle _tmp0_; -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = *value; -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv->_from_pos = _tmp0_; -#line 73 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_notify_by_pspec ((GObject *) self, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_FROM_POS_PROPERTY]); -#line 775 "TransitionsInterfaces.c" - } -} - - -GdkPixbuf* -spit_transitions_visuals_get_to_pixbuf (SpitTransitionsVisuals* self) -{ - GdkPixbuf* result; - GdkPixbuf* _tmp0_; -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self), NULL); -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_to_pixbuf; -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - result = _tmp0_; -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return result; -#line 793 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_set_to_pixbuf (SpitTransitionsVisuals* self, - GdkPixbuf* value) -{ -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (spit_transitions_visuals_get_to_pixbuf (self) != value) { -#line 805 "TransitionsInterfaces.c" - GdkPixbuf* _tmp0_; -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = _g_object_ref0 (value); -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _g_object_unref0 (self->priv->_to_pixbuf); -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv->_to_pixbuf = _tmp0_; -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_notify_by_pspec ((GObject *) self, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_TO_PIXBUF_PROPERTY]); -#line 815 "TransitionsInterfaces.c" - } -} - - -void -spit_transitions_visuals_get_to_pos (SpitTransitionsVisuals* self, - GdkRectangle * result) -{ - GdkRectangle _tmp0_; -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_to_pos; -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - *result = _tmp0_; -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return; -#line 833 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_set_to_pos (SpitTransitionsVisuals* self, - GdkRectangle * value) -{ - GdkRectangle old_value; -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (_cairo_rectangle_int_equal (value, (spit_transitions_visuals_get_to_pos (self, &old_value), &old_value)) != TRUE) { -#line 846 "TransitionsInterfaces.c" - GdkRectangle _tmp0_; -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = *value; -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv->_to_pos = _tmp0_; -#line 87 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_notify_by_pspec ((GObject *) self, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_TO_POS_PROPERTY]); -#line 854 "TransitionsInterfaces.c" - } -} - - -void -spit_transitions_visuals_get_bg_color (SpitTransitionsVisuals* self, - GdkRGBA * result) -{ - GdkRGBA _tmp0_; -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_bg_color; -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - *result = _tmp0_; -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return; -#line 872 "TransitionsInterfaces.c" -} - - -static gboolean -_gdk_rgba_equal (const GdkRGBA * s1, - const GdkRGBA * s2) -{ -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1 == s2) { -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return TRUE; -#line 884 "TransitionsInterfaces.c" - } -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1 == NULL) { -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 890 "TransitionsInterfaces.c" - } -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s2 == NULL) { -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 896 "TransitionsInterfaces.c" - } -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1->red != s2->red) { -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 902 "TransitionsInterfaces.c" - } -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1->green != s2->green) { -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 908 "TransitionsInterfaces.c" - } -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1->blue != s2->blue) { -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 914 "TransitionsInterfaces.c" - } -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (s1->alpha != s2->alpha) { -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return FALSE; -#line 920 "TransitionsInterfaces.c" - } -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return TRUE; -#line 924 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_set_bg_color (SpitTransitionsVisuals* self, - GdkRGBA * value) -{ - GdkRGBA old_value; -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (self)); -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (_gdk_rgba_equal (value, (spit_transitions_visuals_get_bg_color (self, &old_value), &old_value)) != TRUE) { -#line 937 "TransitionsInterfaces.c" - GdkRGBA _tmp0_; -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = *value; -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv->_bg_color = _tmp0_; -#line 92 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_notify_by_pspec ((GObject *) self, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY]); -#line 945 "TransitionsInterfaces.c" - } -} - - -static void -spit_transitions_visuals_class_init (SpitTransitionsVisualsClass * klass) -{ -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_parent_class = g_type_class_peek_parent (klass); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_type_class_add_private (klass, sizeof (SpitTransitionsVisualsPrivate)); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsVisualsClass *) klass)->reserved0 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved0; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsVisualsClass *) klass)->reserved1 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved1; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsVisualsClass *) klass)->reserved2 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved2; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsVisualsClass *) klass)->reserved3 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved3; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsVisualsClass *) klass)->reserved4 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved4; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsVisualsClass *) klass)->reserved5 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved5; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsVisualsClass *) klass)->reserved6 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved6; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsVisualsClass *) klass)->reserved7 = (void (*) (SpitTransitionsVisuals *)) spit_transitions_visuals_real_reserved7; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_spit_transitions_visuals_get_property; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_spit_transitions_visuals_set_property; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_CLASS (klass)->finalize = spit_transitions_visuals_finalize; -#line 979 "TransitionsInterfaces.c" - /** - * Returns the starting pixbuf (the pixbuf currently on the display). - * - * If transitioning from a blank screen, this will return null. - */ -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF_PROPERTY, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF_PROPERTY] = g_param_spec_object ("from-pixbuf", "from-pixbuf", "from-pixbuf", gdk_pixbuf_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 987 "TransitionsInterfaces.c" - /** - * Returns the position of the starting pixbuf on the display. - * - * If transitioning from a blank screen, this will be zeroed. - */ -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_FROM_POS_PROPERTY, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_FROM_POS_PROPERTY] = g_param_spec_boxed ("from-pos", "from-pos", "from-pos", gdk_rectangle_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 995 "TransitionsInterfaces.c" - /** - * Returns the ending pixbuf (the pixbuf that the transition should result in). - * - * If transitioning to a blank screen, this will return null. - */ -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_TO_PIXBUF_PROPERTY, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_TO_PIXBUF_PROPERTY] = g_param_spec_object ("to-pixbuf", "to-pixbuf", "to-pixbuf", gdk_pixbuf_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1003 "TransitionsInterfaces.c" - /** - * Returns the position of the ending pixbuf on the display. - * - * If transitioning to a blank screen, this will be zeroed. - */ -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_TO_POS_PROPERTY, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_TO_POS_PROPERTY] = g_param_spec_boxed ("to-pos", "to-pos", "to-pos", gdk_rectangle_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1011 "TransitionsInterfaces.c" - /** - * Returns the background color of the viewport. - */ -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY, spit_transitions_visuals_properties[SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY] = g_param_spec_boxed ("bg-color", "bg-color", "bg-color", gdk_rgba_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1017 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_instance_init (SpitTransitionsVisuals * self) -{ -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv = SPIT_TRANSITIONS_VISUALS_GET_PRIVATE (self); -#line 1026 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_visuals_finalize (GObject * obj) -{ - SpitTransitionsVisuals * self; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisuals); -#line 66 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _g_object_unref0 (self->priv->_from_pixbuf); -#line 80 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _g_object_unref0 (self->priv->_to_pixbuf); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_CLASS (spit_transitions_visuals_parent_class)->finalize (obj); -#line 1042 "TransitionsInterfaces.c" -} - - -/** - * Visuals contains the pertinent drawing information for the transition that must occur. - * - * A Visuals object is supplied to {@link Effect} at the start of the transition and during each - * call to paint to the screen. - * - * Note that if starting with a blank screen, from_pixbuf will be null and from_pos will be - * zeroed. The transition should be considered to start from a blank screen of the supplied - * background color. - * - * Also note that if transitioning to a blank screen, to_pixbuf will be null and to_pos will be - * zeroed. Like the prior case, the transition should move toward a blank screen of the background - * color. - */ -GType -spit_transitions_visuals_get_type (void) -{ - static volatile gsize spit_transitions_visuals_type_id__volatile = 0; - if (g_once_init_enter (&spit_transitions_visuals_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitTransitionsVisualsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_transitions_visuals_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitTransitionsVisuals), 0, (GInstanceInitFunc) spit_transitions_visuals_instance_init, NULL }; - GType spit_transitions_visuals_type_id; - spit_transitions_visuals_type_id = g_type_register_static (G_TYPE_OBJECT, "SpitTransitionsVisuals", &g_define_type_info, 0); - g_once_init_leave (&spit_transitions_visuals_type_id__volatile, spit_transitions_visuals_type_id); - } - return spit_transitions_visuals_type_id__volatile; -} - - -static void -_vala_spit_transitions_visuals_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - SpitTransitionsVisuals * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisuals); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - switch (property_id) { -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF_PROPERTY: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_object (value, spit_transitions_visuals_get_from_pixbuf (self)); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_FROM_POS_PROPERTY: -#line 1092 "TransitionsInterfaces.c" - { - GdkRectangle boxed; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_get_from_pos (self, &boxed); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_boxed (value, &boxed); -#line 1099 "TransitionsInterfaces.c" - } -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_TO_PIXBUF_PROPERTY: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_object (value, spit_transitions_visuals_get_to_pixbuf (self)); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_TO_POS_PROPERTY: -#line 1111 "TransitionsInterfaces.c" - { - GdkRectangle boxed; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_get_to_pos (self, &boxed); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_boxed (value, &boxed); -#line 1118 "TransitionsInterfaces.c" - } -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY: -#line 1124 "TransitionsInterfaces.c" - { - GdkRGBA boxed; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_get_bg_color (self, &boxed); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_boxed (value, &boxed); -#line 1131 "TransitionsInterfaces.c" - } -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 1135 "TransitionsInterfaces.c" - default: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 1141 "TransitionsInterfaces.c" - } -} - - -static void -_vala_spit_transitions_visuals_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - SpitTransitionsVisuals * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SPIT_TRANSITIONS_TYPE_VISUALS, SpitTransitionsVisuals); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - switch (property_id) { -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_FROM_PIXBUF_PROPERTY: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_from_pixbuf (self, g_value_get_object (value)); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_FROM_POS_PROPERTY: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_from_pos (self, g_value_get_boxed (value)); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_TO_PIXBUF_PROPERTY: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_to_pixbuf (self, g_value_get_object (value)); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_TO_POS_PROPERTY: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_to_pos (self, g_value_get_boxed (value)); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_VISUALS_BG_COLOR_PROPERTY: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_visuals_set_bg_color (self, g_value_get_boxed (value)); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 1186 "TransitionsInterfaces.c" - default: -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 60 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 1192 "TransitionsInterfaces.c" - } -} - - -SpitTransitionsMotion* -spit_transitions_motion_construct (GType object_type, - SpitTransitionsDirection direction, - gint fps, - gint duration_msec) -{ - SpitTransitionsMotion * self = NULL; -#line 157 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self = (SpitTransitionsMotion*) g_object_new (object_type, NULL); -#line 158 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_motion_set_direction (self, direction); -#line 159 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_motion_set_fps (self, fps); -#line 160 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_motion_set_duration_msec (self, duration_msec); -#line 157 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return self; -#line 1214 "TransitionsInterfaces.c" -} - - -SpitTransitionsMotion* -spit_transitions_motion_new (SpitTransitionsDirection direction, - gint fps, - gint duration_msec) -{ -#line 157 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return spit_transitions_motion_construct (SPIT_TRANSITIONS_TYPE_MOTION, direction, fps, duration_msec); -#line 1225 "TransitionsInterfaces.c" -} - - -/** - * Returns a value from 0.0 to 1.0 that represents the percentage of the transition's completion - * for the specified frame. - */ -gdouble -spit_transitions_motion_get_alpha (SpitTransitionsMotion* self, - gint frame_number) -{ - gdouble result = 0.0; - gint _tmp0_; - gint _tmp1_; -#line 167 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0.0); -#line 168 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = spit_transitions_motion_get_total_frames (self); -#line 168 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp1_ = _tmp0_; -#line 168 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - result = ((gdouble) frame_number) / ((gdouble) _tmp1_); -#line 168 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return result; -#line 1250 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_real_reserved0 (SpitTransitionsMotion* self) -{ -} - - -void -spit_transitions_motion_reserved0 (SpitTransitionsMotion* self) -{ -#line 174 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 174 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved0 (self); -#line 1267 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_real_reserved1 (SpitTransitionsMotion* self) -{ -} - - -void -spit_transitions_motion_reserved1 (SpitTransitionsMotion* self) -{ -#line 175 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 175 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved1 (self); -#line 1284 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_real_reserved2 (SpitTransitionsMotion* self) -{ -} - - -void -spit_transitions_motion_reserved2 (SpitTransitionsMotion* self) -{ -#line 176 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 176 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved2 (self); -#line 1301 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_real_reserved3 (SpitTransitionsMotion* self) -{ -} - - -void -spit_transitions_motion_reserved3 (SpitTransitionsMotion* self) -{ -#line 177 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 177 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved3 (self); -#line 1318 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_real_reserved4 (SpitTransitionsMotion* self) -{ -} - - -void -spit_transitions_motion_reserved4 (SpitTransitionsMotion* self) -{ -#line 178 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 178 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved4 (self); -#line 1335 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_real_reserved5 (SpitTransitionsMotion* self) -{ -} - - -void -spit_transitions_motion_reserved5 (SpitTransitionsMotion* self) -{ -#line 179 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 179 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved5 (self); -#line 1352 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_real_reserved6 (SpitTransitionsMotion* self) -{ -} - - -void -spit_transitions_motion_reserved6 (SpitTransitionsMotion* self) -{ -#line 180 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 180 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved6 (self); -#line 1369 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_real_reserved7 (SpitTransitionsMotion* self) -{ -} - - -void -spit_transitions_motion_reserved7 (SpitTransitionsMotion* self) -{ -#line 181 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 181 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_MOTION_GET_CLASS (self)->reserved7 (self); -#line 1386 "TransitionsInterfaces.c" -} - - -SpitTransitionsDirection -spit_transitions_motion_get_direction (SpitTransitionsMotion* self) -{ - SpitTransitionsDirection result; - SpitTransitionsDirection _tmp0_; -#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0); -#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_direction; -#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - result = _tmp0_; -#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return result; -#line 1403 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_set_direction (SpitTransitionsMotion* self, - SpitTransitionsDirection value) -{ -#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (spit_transitions_motion_get_direction (self) != value) { -#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv->_direction = value; -#line 126 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_notify_by_pspec ((GObject *) self, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY]); -#line 1419 "TransitionsInterfaces.c" - } -} - - -gint -spit_transitions_motion_get_fps (SpitTransitionsMotion* self) -{ - gint result; - gint _tmp0_; -#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0); -#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_fps; -#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - result = _tmp0_; -#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return result; -#line 1437 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_set_fps (SpitTransitionsMotion* self, - gint value) -{ -#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (spit_transitions_motion_get_fps (self) != value) { -#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv->_fps = value; -#line 131 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_notify_by_pspec ((GObject *) self, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_FPS_PROPERTY]); -#line 1453 "TransitionsInterfaces.c" - } -} - - -gint -spit_transitions_motion_get_duration_msec (SpitTransitionsMotion* self) -{ - gint result; - gint _tmp0_; -#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0); -#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_duration_msec; -#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - result = _tmp0_; -#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return result; -#line 1471 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_set_duration_msec (SpitTransitionsMotion* self, - gint value) -{ -#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (self)); -#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (spit_transitions_motion_get_duration_msec (self) != value) { -#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv->_duration_msec = value; -#line 136 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_notify_by_pspec ((GObject *) self, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY]); -#line 1487 "TransitionsInterfaces.c" - } -} - - -gint -spit_transitions_motion_get_total_frames (SpitTransitionsMotion* self) -{ - gint result; - gint _tmp0_; - gint _tmp1_; -#line 143 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0); -#line 144 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_fps; -#line 144 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp1_ = self->priv->_duration_msec; -#line 144 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - result = (gint) (((gdouble) _tmp0_) * (((gdouble) _tmp1_) / 1000.0)); -#line 144 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return result; -#line 1508 "TransitionsInterfaces.c" -} - - -gint -spit_transitions_motion_get_tick_msec (SpitTransitionsMotion* self) -{ - gint result; - gint _tmp0_; -#line 152 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_MOTION (self), 0); -#line 153 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - _tmp0_ = self->priv->_fps; -#line 153 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - result = (gint) (1000.0 / ((gdouble) _tmp0_)); -#line 153 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return result; -#line 1525 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_class_init (SpitTransitionsMotionClass * klass) -{ -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_motion_parent_class = g_type_class_peek_parent (klass); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_type_class_add_private (klass, sizeof (SpitTransitionsMotionPrivate)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsMotionClass *) klass)->reserved0 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved0; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsMotionClass *) klass)->reserved1 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved1; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsMotionClass *) klass)->reserved2 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved2; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsMotionClass *) klass)->reserved3 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved3; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsMotionClass *) klass)->reserved4 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved4; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsMotionClass *) klass)->reserved5 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved5; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsMotionClass *) klass)->reserved6 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved6; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - ((SpitTransitionsMotionClass *) klass)->reserved7 = (void (*) (SpitTransitionsMotion *)) spit_transitions_motion_real_reserved7; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_CLASS (klass)->get_property = _vala_spit_transitions_motion_get_property; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_CLASS (klass)->set_property = _vala_spit_transitions_motion_set_property; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_CLASS (klass)->finalize = spit_transitions_motion_finalize; -#line 1558 "TransitionsInterfaces.c" - /** - * Returns the direction the transition should occur in (if pertinent to the {@link Effect}. - */ -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY] = g_param_spec_enum ("direction", "direction", "direction", SPIT_TRANSITIONS_TYPE_DIRECTION, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1564 "TransitionsInterfaces.c" - /** - * Returns the frames per second of the {@link Effect}. - */ -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_MOTION_FPS_PROPERTY, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_FPS_PROPERTY] = g_param_spec_int ("fps", "fps", "fps", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1570 "TransitionsInterfaces.c" - /** - * Returns the amount of time the transition should take (in milliseconds). - */ -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY] = g_param_spec_int ("duration-msec", "duration-msec", "duration-msec", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1576 "TransitionsInterfaces.c" - /** - * Returns the number of frames that should be required to perform the transition in the - * expected {@link duration_msec}. - */ -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_MOTION_TOTAL_FRAMES_PROPERTY, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_TOTAL_FRAMES_PROPERTY] = g_param_spec_int ("total-frames", "total-frames", "total-frames", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1583 "TransitionsInterfaces.c" - /** - * Returns the approximate time between each frame draw (in milliseconds). - */ -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_object_class_install_property (G_OBJECT_CLASS (klass), SPIT_TRANSITIONS_MOTION_TICK_MSEC_PROPERTY, spit_transitions_motion_properties[SPIT_TRANSITIONS_MOTION_TICK_MSEC_PROPERTY] = g_param_spec_int ("tick-msec", "tick-msec", "tick-msec", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); -#line 1589 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_instance_init (SpitTransitionsMotion * self) -{ -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self->priv = SPIT_TRANSITIONS_MOTION_GET_PRIVATE (self); -#line 1598 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_motion_finalize (GObject * obj) -{ - SpitTransitionsMotion * self; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotion); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_CLASS (spit_transitions_motion_parent_class)->finalize (obj); -#line 1610 "TransitionsInterfaces.c" -} - - -/** - * Motion contains all the pertinent information regarding the animation of the transition. - * - * Some of Motion's information may not apply to a transition effect (such as Direction for a - * fade effect). - */ -GType -spit_transitions_motion_get_type (void) -{ - static volatile gsize spit_transitions_motion_type_id__volatile = 0; - if (g_once_init_enter (&spit_transitions_motion_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitTransitionsMotionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_transitions_motion_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitTransitionsMotion), 0, (GInstanceInitFunc) spit_transitions_motion_instance_init, NULL }; - GType spit_transitions_motion_type_id; - spit_transitions_motion_type_id = g_type_register_static (G_TYPE_OBJECT, "SpitTransitionsMotion", &g_define_type_info, 0); - g_once_init_leave (&spit_transitions_motion_type_id__volatile, spit_transitions_motion_type_id); - } - return spit_transitions_motion_type_id__volatile; -} - - -static void -_vala_spit_transitions_motion_get_property (GObject * object, - guint property_id, - GValue * value, - GParamSpec * pspec) -{ - SpitTransitionsMotion * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotion); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - switch (property_id) { -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_enum (value, spit_transitions_motion_get_direction (self)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_MOTION_FPS_PROPERTY: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_int (value, spit_transitions_motion_get_fps (self)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_int (value, spit_transitions_motion_get_duration_msec (self)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_MOTION_TOTAL_FRAMES_PROPERTY: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_int (value, spit_transitions_motion_get_total_frames (self)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_MOTION_TICK_MSEC_PROPERTY: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_value_set_int (value, spit_transitions_motion_get_tick_msec (self)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 1674 "TransitionsInterfaces.c" - default: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 1680 "TransitionsInterfaces.c" - } -} - - -static void -_vala_spit_transitions_motion_set_property (GObject * object, - guint property_id, - const GValue * value, - GParamSpec * pspec) -{ - SpitTransitionsMotion * self; - self = G_TYPE_CHECK_INSTANCE_CAST (object, SPIT_TRANSITIONS_TYPE_MOTION, SpitTransitionsMotion); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - switch (property_id) { -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_MOTION_DIRECTION_PROPERTY: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_motion_set_direction (self, g_value_get_enum (value)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_MOTION_FPS_PROPERTY: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_motion_set_fps (self, g_value_get_int (value)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - case SPIT_TRANSITIONS_MOTION_DURATION_MSEC_PROPERTY: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - spit_transitions_motion_set_duration_msec (self, g_value_get_int (value)); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 1713 "TransitionsInterfaces.c" - default: -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); -#line 122 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - break; -#line 1719 "TransitionsInterfaces.c" - } -} - - -/** - * Returns an instance of the {@link Effect} this descriptor represents. - */ -SpitTransitionsEffect* -spit_transitions_descriptor_create (SpitTransitionsDescriptor* self, - SpitHostInterface* host) -{ -#line 191 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self), NULL); -#line 191 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->create (self, host); -#line 1735 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_real_reserved0 (SpitTransitionsDescriptor* self) -{ -} - - -void -spit_transitions_descriptor_reserved0 (SpitTransitionsDescriptor* self) -{ -#line 196 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self)); -#line 196 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved0 (self); -#line 1752 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_real_reserved1 (SpitTransitionsDescriptor* self) -{ -} - - -void -spit_transitions_descriptor_reserved1 (SpitTransitionsDescriptor* self) -{ -#line 197 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self)); -#line 197 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved1 (self); -#line 1769 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_real_reserved2 (SpitTransitionsDescriptor* self) -{ -} - - -void -spit_transitions_descriptor_reserved2 (SpitTransitionsDescriptor* self) -{ -#line 198 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self)); -#line 198 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved2 (self); -#line 1786 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_real_reserved3 (SpitTransitionsDescriptor* self) -{ -} - - -void -spit_transitions_descriptor_reserved3 (SpitTransitionsDescriptor* self) -{ -#line 199 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self)); -#line 199 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved3 (self); -#line 1803 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_real_reserved4 (SpitTransitionsDescriptor* self) -{ -} - - -void -spit_transitions_descriptor_reserved4 (SpitTransitionsDescriptor* self) -{ -#line 200 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self)); -#line 200 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved4 (self); -#line 1820 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_real_reserved5 (SpitTransitionsDescriptor* self) -{ -} - - -void -spit_transitions_descriptor_reserved5 (SpitTransitionsDescriptor* self) -{ -#line 201 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self)); -#line 201 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved5 (self); -#line 1837 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_real_reserved6 (SpitTransitionsDescriptor* self) -{ -} - - -void -spit_transitions_descriptor_reserved6 (SpitTransitionsDescriptor* self) -{ -#line 202 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self)); -#line 202 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved6 (self); -#line 1854 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_real_reserved7 (SpitTransitionsDescriptor* self) -{ -} - - -void -spit_transitions_descriptor_reserved7 (SpitTransitionsDescriptor* self) -{ -#line 203 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (self)); -#line 203 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_DESCRIPTOR_GET_INTERFACE (self)->reserved7 (self); -#line 1871 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_descriptor_base_init (SpitTransitionsDescriptorIface * iface) -{ -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - static gboolean initialized = FALSE; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (!initialized) { -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - initialized = TRUE; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved0 = spit_transitions_descriptor_real_reserved0; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved1 = spit_transitions_descriptor_real_reserved1; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved2 = spit_transitions_descriptor_real_reserved2; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved3 = spit_transitions_descriptor_real_reserved3; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved4 = spit_transitions_descriptor_real_reserved4; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved5 = spit_transitions_descriptor_real_reserved5; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved6 = spit_transitions_descriptor_real_reserved6; -#line 187 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved7 = spit_transitions_descriptor_real_reserved7; -#line 1900 "TransitionsInterfaces.c" - } -} - - -/** - * A Descriptor offers a factory method for creating {@link Effect} instances. - */ -GType -spit_transitions_descriptor_get_type (void) -{ - static volatile gsize spit_transitions_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&spit_transitions_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitTransitionsDescriptorIface), (GBaseInitFunc) spit_transitions_descriptor_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_transitions_descriptor_type_id; - spit_transitions_descriptor_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitTransitionsDescriptor", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_transitions_descriptor_type_id, G_TYPE_OBJECT); - g_type_interface_add_prerequisite (spit_transitions_descriptor_type_id, SPIT_TYPE_PLUGGABLE); - g_once_init_leave (&spit_transitions_descriptor_type_id__volatile, spit_transitions_descriptor_type_id); - } - return spit_transitions_descriptor_type_id__volatile; -} - - -/** - * Returns frames per second (FPS) information for this effect. - * - * If the min_fps is not met, the Effect may be cancelled or the host will skip ahead. - * - * @param desired_fps The desired FPS of the transition. Return zero if no - * transition is to occur (instantaneous or null transition). - * @param min_fps The minimum FPS before the effect is consider "ruined". - * Return zero if any FPS is acceptable. - */ -void -spit_transitions_effect_get_fps (SpitTransitionsEffect* self, - gint* desired_fps, - gint* min_fps) -{ -#line 240 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 240 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->get_fps (self, desired_fps, min_fps); -#line 1943 "TransitionsInterfaces.c" -} - - -/** - * Called when the effect is starting. - * - * All state should be reset. The frame number, which is not supplied, is one. - */ -void -spit_transitions_effect_start (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ -#line 247 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 247 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->start (self, visuals, motion); -#line 1961 "TransitionsInterfaces.c" -} - - -/** - * Return true if the Effect needs the background cleared prior to calling {@link paint}. - */ -gboolean -spit_transitions_effect_needs_clear_background (SpitTransitionsEffect* self) -{ -#line 252 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self), FALSE); -#line 252 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - return SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->needs_clear_background (self); -#line 1975 "TransitionsInterfaces.c" -} - - -/** - * Called when the effect needs to paint (i.e. an expose or draw event has occurred). - * - * This call should ''not'' advance the state of the effect (i.e. it may be called more than - * once for the same frame). - * - * @param ctx The Cairo context the Effect should use to paint the transition. - * @param width The width (in pixels) of the Cairo surface. - * @param height The height (in pixels) of the Cairo surface. - * @param frame_number The ''one-based'' frame being drawn. - */ -void -spit_transitions_effect_paint (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ -#line 265 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 265 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->paint (self, visuals, motion, ctx, width, height, frame_number); -#line 2003 "TransitionsInterfaces.c" -} - - -/** - * Called to notify the effect that the state of the transition should advance to the specified - * frame number. - * - * Note: There is no guarantee frame numbers will be consecutive between calls - * to next, especially if the transition clock is attempting to catch up. - * - * @param frame_number The ''one-based'' frame being advanced to. - */ -void -spit_transitions_effect_advance (SpitTransitionsEffect* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ -#line 277 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 277 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->advance (self, visuals, motion, frame_number); -#line 2026 "TransitionsInterfaces.c" -} - - -/** - * Called if the Effect should halt the transition. - * - * It only needs to reset state if {@link start} is called again. - */ -void -spit_transitions_effect_cancel (SpitTransitionsEffect* self) -{ -#line 284 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 284 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->cancel (self); -#line 2042 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_real_reserved0 (SpitTransitionsEffect* self) -{ -} - - -void -spit_transitions_effect_reserved0 (SpitTransitionsEffect* self) -{ -#line 289 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 289 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved0 (self); -#line 2059 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_real_reserved1 (SpitTransitionsEffect* self) -{ -} - - -void -spit_transitions_effect_reserved1 (SpitTransitionsEffect* self) -{ -#line 290 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 290 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved1 (self); -#line 2076 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_real_reserved2 (SpitTransitionsEffect* self) -{ -} - - -void -spit_transitions_effect_reserved2 (SpitTransitionsEffect* self) -{ -#line 291 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 291 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved2 (self); -#line 2093 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_real_reserved3 (SpitTransitionsEffect* self) -{ -} - - -void -spit_transitions_effect_reserved3 (SpitTransitionsEffect* self) -{ -#line 292 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 292 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved3 (self); -#line 2110 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_real_reserved4 (SpitTransitionsEffect* self) -{ -} - - -void -spit_transitions_effect_reserved4 (SpitTransitionsEffect* self) -{ -#line 293 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 293 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved4 (self); -#line 2127 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_real_reserved5 (SpitTransitionsEffect* self) -{ -} - - -void -spit_transitions_effect_reserved5 (SpitTransitionsEffect* self) -{ -#line 294 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 294 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved5 (self); -#line 2144 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_real_reserved6 (SpitTransitionsEffect* self) -{ -} - - -void -spit_transitions_effect_reserved6 (SpitTransitionsEffect* self) -{ -#line 295 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 295 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved6 (self); -#line 2161 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_real_reserved7 (SpitTransitionsEffect* self) -{ -} - - -void -spit_transitions_effect_reserved7 (SpitTransitionsEffect* self) -{ -#line 296 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_EFFECT (self)); -#line 296 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - SPIT_TRANSITIONS_EFFECT_GET_INTERFACE (self)->reserved7 (self); -#line 2178 "TransitionsInterfaces.c" -} - - -static void -spit_transitions_effect_base_init (SpitTransitionsEffectIface * iface) -{ -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - static gboolean initialized = FALSE; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - if (!initialized) { -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - initialized = TRUE; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved0 = spit_transitions_effect_real_reserved0; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved1 = spit_transitions_effect_real_reserved1; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved2 = spit_transitions_effect_real_reserved2; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved3 = spit_transitions_effect_real_reserved3; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved4 = spit_transitions_effect_real_reserved4; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved5 = spit_transitions_effect_real_reserved5; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved6 = spit_transitions_effect_real_reserved6; -#line 229 "/home/jens/Source/shotwell/src/plugins/TransitionsInterfaces.vala" - iface->reserved7 = spit_transitions_effect_real_reserved7; -#line 2207 "TransitionsInterfaces.c" - } -} - - -/** - * An Effect represents an interstitial effect that is used to transition the display from one - * image to another. - * - * An Effect must hold state so that it knows what it should be drawn at any call to {@link paint} - * (which is called regularly during a transition). That is, it should be able to draw any frame of - * the transition at any time. The same frame may need to be drawn multiple times, or the host - * may skip ahead and ask for a frame well ahead of the last requested one. - * - * ''Frame numbers are one-based throughout this interface''. This is because the initial state (the - * blank viewport or the starting pixbuf) is frame zero. The Effect is never called to paint this - * frame. The Effect is also not called to paint the final frame (a blank viewport or the ending - * pixbuf). - * - * If the Effect uses background threads for its work, it should use the appropriate primitives - * for critical sections. All calls to this interface will be from the context of the main UI - * thread. ''None of these calls should block.'' - * - * If the Details object needs to be held by the Effect, its reference to it should be dropped at - * the end of the cycle (or shortly thereafter). - * - * An instance may be reused and should be prepared for restarts. - */ -GType -spit_transitions_effect_get_type (void) -{ - static volatile gsize spit_transitions_effect_type_id__volatile = 0; - if (g_once_init_enter (&spit_transitions_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitTransitionsEffectIface), (GBaseInitFunc) spit_transitions_effect_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType spit_transitions_effect_type_id; - spit_transitions_effect_type_id = g_type_register_static (G_TYPE_INTERFACE, "SpitTransitionsEffect", &g_define_type_info, 0); - g_type_interface_add_prerequisite (spit_transitions_effect_type_id, G_TYPE_OBJECT); - g_once_init_leave (&spit_transitions_effect_type_id__volatile, spit_transitions_effect_type_id); - } - return spit_transitions_effect_type_id__volatile; -} - - - diff --git a/src/publishing/APIGlue.c b/src/publishing/APIGlue.c deleted file mode 100644 index 66f79d9..0000000 --- a/src/publishing/APIGlue.c +++ /dev/null @@ -1,1504 +0,0 @@ -/* APIGlue.c generated by valac 0.40.4, the Vala compiler - * generated from APIGlue.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include -#include - - -#define PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER (publishing_glue_media_source_publishable_wrapper_get_type ()) -#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper)) -#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapperClass)) -#define PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER)) -#define PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER)) -#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapperClass)) - -typedef struct _PublishingGlueMediaSourcePublishableWrapper PublishingGlueMediaSourcePublishableWrapper; -typedef struct _PublishingGlueMediaSourcePublishableWrapperClass PublishingGlueMediaSourcePublishableWrapperClass; -typedef struct _PublishingGlueMediaSourcePublishableWrapperPrivate PublishingGlueMediaSourcePublishableWrapperPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; -enum { - PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_0_PROPERTY, - PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_NUM_PROPERTIES -}; -static GParamSpec* publishing_glue_media_source_publishable_wrapper_properties[PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_EVENT_SOURCE (event_source_get_type ()) -#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource)) -#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass)) -#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE)) -#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE)) -#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass)) - -typedef struct _EventSource EventSource; -typedef struct _EventSourceClass EventSourceClass; - -#define TYPE_EVENT (event_get_type ()) -#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event)) -#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass)) -#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT)) -#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT)) -#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass)) - -typedef struct _Event Event; -typedef struct _EventClass EventClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_SCALING (scaling_get_type ()) - -#define TYPE_SCALE_CONSTRAINT (scale_constraint_get_type ()) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -typedef struct _Scaling Scaling; - -#define JPEG_TYPE_QUALITY (jpeg_quality_get_type ()) - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ()) -#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection)) -#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) -#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION)) -#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION)) -#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) - -typedef struct _TagSourceCollection TagSourceCollection; -typedef struct _TagSourceCollectionClass TagSourceCollectionClass; - -struct _PublishingGlueMediaSourcePublishableWrapper { - GObject parent_instance; - PublishingGlueMediaSourcePublishableWrapperPrivate * priv; -}; - -struct _PublishingGlueMediaSourcePublishableWrapperClass { - GObjectClass parent_class; -}; - -struct _PublishingGlueMediaSourcePublishableWrapperPrivate { - MediaSource* wrapped; - GFile* serialized_file; - GeeMap* param_string; -}; - -typedef enum { - SCALE_CONSTRAINT_ORIGINAL, - SCALE_CONSTRAINT_DIMENSIONS, - SCALE_CONSTRAINT_WIDTH, - SCALE_CONSTRAINT_HEIGHT, - SCALE_CONSTRAINT_FILL_VIEWPORT -} ScaleConstraint; - -struct _Dimensions { - gint width; - gint height; -}; - -struct _Scaling { - ScaleConstraint constraint; - gint scale; - Dimensions viewport; - gboolean scale_up; -}; - -typedef enum { - JPEG_QUALITY_LOW = 50, - JPEG_QUALITY_MEDIUM = 75, - JPEG_QUALITY_HIGH = 90, - JPEG_QUALITY_MAXIMUM = 100 -} JpegQuality; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - - -static gpointer publishing_glue_media_source_publishable_wrapper_parent_class = NULL; -static gint publishing_glue_media_source_publishable_wrapper_name_ticker; -static gint publishing_glue_media_source_publishable_wrapper_name_ticker = 0; -extern TagSourceCollection* tag_global; -static SpitPublishingPublishableIface * publishing_glue_media_source_publishable_wrapper_spit_publishing_publishable_parent_iface = NULL; - -GType publishing_glue_media_source_publishable_wrapper_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapperPrivate)) -PublishingGlueMediaSourcePublishableWrapper* publishing_glue_media_source_publishable_wrapper_new (MediaSource* to_wrap); -PublishingGlueMediaSourcePublishableWrapper* publishing_glue_media_source_publishable_wrapper_construct (GType object_type, - MediaSource* to_wrap); -static void publishing_glue_media_source_publishable_wrapper_setup_parameters (PublishingGlueMediaSourcePublishableWrapper* self); -void publishing_glue_media_source_publishable_wrapper_clean_up (PublishingGlueMediaSourcePublishableWrapper* self); -gchar* media_source_get_basename (MediaSource* self); -gchar* media_source_get_title (MediaSource* self); -gchar* media_source_get_comment (MediaSource* self); -GType event_source_get_type (void) G_GNUC_CONST; -GType event_get_type (void) G_GNUC_CONST; -Event* media_source_get_event (MediaSource* self); -gchar* event_source_get_comment (EventSource* self); -GFile* publishing_glue_media_source_publishable_wrapper_serialize_for_publishing (PublishingGlueMediaSourcePublishableWrapper* self, - gint content_major_axis, - gboolean strip_metadata, - GError** error); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -GFile* app_dirs_get_temp_dir (void); -gchar* data_source_get_source_id (DataSource* self); -GType scaling_get_type (void) G_GNUC_CONST; -GType scale_constraint_get_type (void) G_GNUC_CONST; -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -Scaling* scaling_dup (const Scaling* self); -void scaling_free (Scaling* self); -void scaling_for_best_fit (gint pixels, - gboolean scale_up, - Scaling* result); -void scaling_for_original (Scaling* result); -GType jpeg_quality_get_type (void) G_GNUC_CONST; -GType photo_file_format_get_type (void) G_GNUC_CONST; -void photo_export (Photo* self, - GFile* dest_file, - Scaling* scaling, - JpegQuality quality, - PhotoFileFormat export_format, - gboolean direct_copy_unmodified, - gboolean export_metadata, - GError** error); -gchar* data_object_get_name (DataObject* self); -GType video_source_get_type (void) G_GNUC_CONST; -GType video_get_type (void) G_GNUC_CONST; -void disassemble_filename (const gchar* basename, - gchar* * name, - gchar* * ext); -GFile* media_source_get_file (MediaSource* self); -void video_export (Video* self, - GFile* dest_file, - GError** error); -static gchar* publishing_glue_media_source_publishable_wrapper_real_get_publishing_name (SpitPublishingPublishable* base); -static gchar* publishing_glue_media_source_publishable_wrapper_real_get_param_string (SpitPublishingPublishable* base, - const gchar* name); -static gchar** publishing_glue_media_source_publishable_wrapper_real_get_publishing_keywords (SpitPublishingPublishable* base, - int* result_length1); -GType tag_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType tag_source_collection_get_type (void) G_GNUC_CONST; -GeeSortedSet* tag_source_collection_fetch_sorted_for_source (TagSourceCollection* self, - MediaSource* photo); -static void _vala_array_add63 (gchar** * array, - int* length, - int* size, - gchar* value); -static gchar** _vala_array_dup20 (gchar** self, - int length); -static SpitPublishingPublisherMediaType publishing_glue_media_source_publishable_wrapper_real_get_media_type (SpitPublishingPublishable* base); -static GFile* publishing_glue_media_source_publishable_wrapper_real_get_serialized_file (SpitPublishingPublishable* base); -static GDateTime* publishing_glue_media_source_publishable_wrapper_real_get_exposure_date_time (SpitPublishingPublishable* base); -time_t media_source_get_exposure_time (MediaSource* self); -static void publishing_glue_media_source_publishable_wrapper_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 16 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return self ? g_object_ref (self) : NULL; -#line 388 "APIGlue.c" -} - - -PublishingGlueMediaSourcePublishableWrapper* -publishing_glue_media_source_publishable_wrapper_construct (GType object_type, - MediaSource* to_wrap) -{ - PublishingGlueMediaSourcePublishableWrapper * self = NULL; - MediaSource* _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (to_wrap), NULL); -#line 15 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - self = (PublishingGlueMediaSourcePublishableWrapper*) g_object_new (object_type, NULL); -#line 16 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp0_ = _g_object_ref0 (to_wrap); -#line 16 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (self->priv->wrapped); -#line 16 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - self->priv->wrapped = _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - publishing_glue_media_source_publishable_wrapper_setup_parameters (self); -#line 15 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return self; -#line 412 "APIGlue.c" -} - - -PublishingGlueMediaSourcePublishableWrapper* -publishing_glue_media_source_publishable_wrapper_new (MediaSource* to_wrap) -{ -#line 15 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return publishing_glue_media_source_publishable_wrapper_construct (PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, to_wrap); -#line 421 "APIGlue.c" -} - - -void -publishing_glue_media_source_publishable_wrapper_clean_up (PublishingGlueMediaSourcePublishableWrapper* self) -{ - GFile* _tmp0_; - GFile* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GError * _inner_error_ = NULL; -#line 20 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_return_if_fail (PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER (self)); -#line 21 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp0_ = self->priv->serialized_file; -#line 21 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (_tmp0_ == NULL) { -#line 22 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return; -#line 441 "APIGlue.c" - } -#line 24 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp1_ = self->priv->serialized_file; -#line 24 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp2_ = g_file_get_path (_tmp1_); -#line 24 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp3_ = _tmp2_; -#line 24 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_debug ("APIGlue.vala:24: cleaning up temporary publishing file '%s'.", _tmp3_); -#line 24 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp3_); -#line 453 "APIGlue.c" - { - GFile* _tmp4_; -#line 27 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp4_ = self->priv->serialized_file; -#line 27 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_file_delete (_tmp4_, NULL, &_inner_error_); -#line 27 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 462 "APIGlue.c" - goto __catch43_g_error; - } - } - goto __finally43; - __catch43_g_error: - { - GError* err = NULL; - GFile* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; -#line 26 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - err = _inner_error_; -#line 26 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _inner_error_ = NULL; -#line 29 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp5_ = self->priv->serialized_file; -#line 29 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp6_ = g_file_get_path (_tmp5_); -#line 29 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp7_ = _tmp6_; -#line 29 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_warning ("APIGlue.vala:29: couldn't delete temporary publishing file '%s'.", _tmp7_); -#line 29 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp7_); -#line 26 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_error_free0 (err); -#line 489 "APIGlue.c" - } - __finally43: -#line 26 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 26 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 26 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_clear_error (&_inner_error_); -#line 26 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return; -#line 500 "APIGlue.c" - } -#line 32 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (self->priv->serialized_file); -#line 32 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - self->priv->serialized_file = NULL; -#line 506 "APIGlue.c" -} - - -static void -publishing_glue_media_source_publishable_wrapper_setup_parameters (PublishingGlueMediaSourcePublishableWrapper* self) -{ - GeeMap* _tmp0_; - MediaSource* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GeeMap* _tmp4_; - MediaSource* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - GeeMap* _tmp8_; - MediaSource* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - MediaSource* _tmp12_; - Event* _tmp13_; - Event* _tmp14_; - gboolean _tmp15_; -#line 35 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_return_if_fail (PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER (self)); -#line 36 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp0_ = self->priv->param_string; -#line 36 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp1_ = self->priv->wrapped; -#line 36 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp2_ = media_source_get_basename (_tmp1_); -#line 36 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp3_ = _tmp2_; -#line 36 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - gee_map_set (_tmp0_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_BASENAME, _tmp3_); -#line 36 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp3_); -#line 37 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp4_ = self->priv->param_string; -#line 37 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp5_ = self->priv->wrapped; -#line 37 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp6_ = media_source_get_title (_tmp5_); -#line 37 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp7_ = _tmp6_; -#line 37 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - gee_map_set (_tmp4_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_TITLE, _tmp7_); -#line 37 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp7_); -#line 38 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp8_ = self->priv->param_string; -#line 38 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp9_ = self->priv->wrapped; -#line 38 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp10_ = media_source_get_comment (_tmp9_); -#line 38 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp11_ = _tmp10_; -#line 38 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - gee_map_set (_tmp8_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_COMMENT, _tmp11_); -#line 38 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp11_); -#line 40 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp12_ = self->priv->wrapped; -#line 40 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp13_ = media_source_get_event (_tmp12_); -#line 40 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp14_ = _tmp13_; -#line 40 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp15_ = _tmp14_ != NULL; -#line 40 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (_tmp14_); -#line 40 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (_tmp15_) { -#line 579 "APIGlue.c" - GeeMap* _tmp16_; - MediaSource* _tmp17_; - Event* _tmp18_; - Event* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; -#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp16_ = self->priv->param_string; -#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp17_ = self->priv->wrapped; -#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp18_ = media_source_get_event (_tmp17_); -#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp19_ = _tmp18_; -#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp20_ = event_source_get_comment (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_EVENT_SOURCE, EventSource)); -#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp21_ = _tmp20_; -#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - gee_map_set (_tmp16_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_EVENTCOMMENT, _tmp21_); -#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp21_); -#line 41 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (_tmp19_); -#line 604 "APIGlue.c" - } else { - GeeMap* _tmp22_; -#line 43 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp22_ = self->priv->param_string; -#line 43 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - gee_map_set (_tmp22_, SPIT_PUBLISHING_PUBLISHABLE_PARAM_STRING_EVENTCOMMENT, ""); -#line 611 "APIGlue.c" - } -} - - -GFile* -publishing_glue_media_source_publishable_wrapper_serialize_for_publishing (PublishingGlueMediaSourcePublishableWrapper* self, - gint content_major_axis, - gboolean strip_metadata, - GError** error) -{ - GFile* result = NULL; - MediaSource* _tmp0_; - GFile* _tmp60_; - GFile* _tmp61_; - GError * _inner_error_ = NULL; -#line 46 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_return_val_if_fail (PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER (self), NULL); -#line 49 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp0_ = self->priv->wrapped; -#line 49 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_LIBRARY_PHOTO)) { -#line 633 "APIGlue.c" - LibraryPhoto* photo = NULL; - MediaSource* _tmp1_; - LibraryPhoto* _tmp2_; - GFile* to_file = NULL; - GFile* _tmp3_; - GFile* _tmp4_; - gint _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - GFile* _tmp8_; - GFile* _tmp9_; - LibraryPhoto* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - GFile* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - GFile* _tmp27_; - GFile* _tmp28_; -#line 50 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp1_ = self->priv->wrapped; -#line 50 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_LIBRARY_PHOTO, LibraryPhoto)); -#line 50 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - photo = _tmp2_; -#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp3_ = app_dirs_get_temp_dir (); -#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp4_ = _tmp3_; -#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp5_ = publishing_glue_media_source_publishable_wrapper_name_ticker; -#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - publishing_glue_media_source_publishable_wrapper_name_ticker = _tmp5_ + 1; -#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp6_ = g_strdup_printf ("publishing-%d.jpg", _tmp5_); -#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp7_ = _tmp6_; -#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp8_ = g_file_get_child (_tmp4_, _tmp7_); -#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp9_ = _tmp8_; -#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp7_); -#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (_tmp4_); -#line 52 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - to_file = _tmp9_; -#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp10_ = photo; -#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp11_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_DATA_SOURCE, DataSource)); -#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp12_ = _tmp11_; -#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp13_ = to_file; -#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp14_ = g_file_get_path (_tmp13_); -#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp15_ = _tmp14_; -#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_debug ("APIGlue.vala:55: writing photo '%s' to temporary file '%s' for publish" \ -"ing.", _tmp12_, _tmp15_); -#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp15_); -#line 55 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp12_); -#line 699 "APIGlue.c" - { - Scaling _tmp16_ = {0}; - Scaling scaling = {0}; - LibraryPhoto* _tmp19_; - GFile* _tmp20_; - Scaling _tmp21_; -#line 58 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (content_major_axis > 0) { -#line 708 "APIGlue.c" - Scaling _tmp17_ = {0}; -#line 59 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - scaling_for_best_fit (content_major_axis, FALSE, &_tmp17_); -#line 59 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp16_ = _tmp17_; -#line 714 "APIGlue.c" - } else { - Scaling _tmp18_ = {0}; -#line 59 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - scaling_for_original (&_tmp18_); -#line 59 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp16_ = _tmp18_; -#line 721 "APIGlue.c" - } -#line 58 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - scaling = _tmp16_; -#line 60 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp19_ = photo; -#line 60 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp20_ = to_file; -#line 60 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp21_ = scaling; -#line 60 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - photo_export (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_PHOTO, Photo), _tmp20_, &_tmp21_, JPEG_QUALITY_HIGH, PHOTO_FILE_FORMAT_JFIF, FALSE, !strip_metadata, &_inner_error_); -#line 60 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 735 "APIGlue.c" - goto __catch44_g_error; - } - } - goto __finally44; - __catch44_g_error: - { - GError* err = NULL; - LibraryPhoto* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - GError* _tmp25_; - GError* _tmp26_; -#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - err = _inner_error_; -#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _inner_error_ = NULL; -#line 62 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp22_ = photo; -#line 62 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp23_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, TYPE_DATA_OBJECT, DataObject)); -#line 62 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp24_ = _tmp23_; -#line 62 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp25_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, "unable to serialize photo '%s' for publishing.", _tmp24_); -#line 62 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp26_ = _tmp25_; -#line 62 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp24_); -#line 62 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _inner_error_ = _tmp26_; -#line 62 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_error_free0 (err); -#line 768 "APIGlue.c" - goto __finally44; - } - __finally44: -#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_propagate_error (error, _inner_error_); -#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (to_file); -#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (photo); -#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return NULL; -#line 784 "APIGlue.c" - } else { -#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (to_file); -#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (photo); -#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_clear_error (&_inner_error_); -#line 57 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return NULL; -#line 796 "APIGlue.c" - } - } -#line 66 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp27_ = to_file; -#line 66 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp28_ = _g_object_ref0 (_tmp27_); -#line 66 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (self->priv->serialized_file); -#line 66 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - self->priv->serialized_file = _tmp28_; -#line 49 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (to_file); -#line 49 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (photo); -#line 811 "APIGlue.c" - } else { - MediaSource* _tmp29_; -#line 67 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp29_ = self->priv->wrapped; -#line 67 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp29_, TYPE_VIDEO)) { -#line 818 "APIGlue.c" - Video* video = NULL; - MediaSource* _tmp30_; - Video* _tmp31_; - gchar* basename = NULL; - gchar* extension = NULL; - Video* _tmp32_; - GFile* _tmp33_; - GFile* _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; - gchar* _tmp37_ = NULL; - gchar* _tmp38_ = NULL; - GFile* to_file = NULL; - gint _tmp39_; - const gchar* _tmp40_; - gchar* _tmp41_; - gchar* _tmp42_; - GFile* _tmp43_; - GFile* _tmp44_; - Video* _tmp45_; - gchar* _tmp46_; - gchar* _tmp47_; - GFile* _tmp48_; - gchar* _tmp49_; - gchar* _tmp50_; - GFile* _tmp58_; - GFile* _tmp59_; -#line 68 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp30_ = self->priv->wrapped; -#line 68 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp31_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, TYPE_VIDEO, Video)); -#line 68 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - video = _tmp31_; -#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp32_ = video; -#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp33_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp34_ = _tmp33_; -#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp35_ = g_file_get_basename (_tmp34_); -#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp36_ = _tmp35_; -#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - disassemble_filename (_tmp36_, &_tmp37_, &_tmp38_); -#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (basename); -#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - basename = _tmp37_; -#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (extension); -#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - extension = _tmp38_; -#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp36_); -#line 72 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (_tmp34_); -#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp39_ = publishing_glue_media_source_publishable_wrapper_name_ticker; -#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - publishing_glue_media_source_publishable_wrapper_name_ticker = _tmp39_ + 1; -#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp40_ = extension; -#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp41_ = g_strdup_printf ("publishing-%d.%s", _tmp39_, _tmp40_); -#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp42_ = _tmp41_; -#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp43_ = g_file_new_for_path (_tmp42_); -#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp44_ = _tmp43_; -#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp42_); -#line 74 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - to_file = _tmp44_; -#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp45_ = video; -#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp46_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, TYPE_DATA_SOURCE, DataSource)); -#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp47_ = _tmp46_; -#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp48_ = to_file; -#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp49_ = g_file_get_path (_tmp48_); -#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp50_ = _tmp49_; -#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_debug ("APIGlue.vala:77: writing video '%s' to temporary file '%s' for publish" \ -"ing.", _tmp47_, _tmp50_); -#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp50_); -#line 77 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp47_); -#line 912 "APIGlue.c" - { - Video* _tmp51_; - GFile* _tmp52_; -#line 80 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp51_ = video; -#line 80 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp52_ = to_file; -#line 80 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - video_export (_tmp51_, _tmp52_, &_inner_error_); -#line 80 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 924 "APIGlue.c" - goto __catch45_g_error; - } - } - goto __finally45; - __catch45_g_error: - { - GError* err = NULL; - Video* _tmp53_; - gchar* _tmp54_; - gchar* _tmp55_; - GError* _tmp56_; - GError* _tmp57_; -#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - err = _inner_error_; -#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _inner_error_ = NULL; -#line 82 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp53_ = video; -#line 82 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp54_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp53_, TYPE_DATA_OBJECT, DataObject)); -#line 82 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp55_ = _tmp54_; -#line 82 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp56_ = g_error_new (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, "unable to serialize video '%s' for publishing.", _tmp55_); -#line 82 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp57_ = _tmp56_; -#line 82 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp55_); -#line 82 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _inner_error_ = _tmp57_; -#line 82 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_error_free0 (err); -#line 957 "APIGlue.c" - goto __finally45; - } - __finally45: -#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_propagate_error (error, _inner_error_); -#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (to_file); -#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (extension); -#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (basename); -#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (video); -#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return NULL; -#line 977 "APIGlue.c" - } else { -#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (to_file); -#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (extension); -#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (basename); -#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (video); -#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_clear_error (&_inner_error_); -#line 79 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return NULL; -#line 993 "APIGlue.c" - } - } -#line 86 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp58_ = to_file; -#line 86 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp59_ = _g_object_ref0 (_tmp58_); -#line 86 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (self->priv->serialized_file); -#line 86 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - self->priv->serialized_file = _tmp59_; -#line 67 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (to_file); -#line 67 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (extension); -#line 67 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (basename); -#line 67 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (video); -#line 1012 "APIGlue.c" - } else { -#line 88 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_error ("APIGlue.vala:88: MediaSourcePublishableWrapper.serialize_for_publishin" \ -"g( ): unknown media type."); -#line 1016 "APIGlue.c" - } - } -#line 91 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp60_ = self->priv->serialized_file; -#line 91 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp61_ = _g_object_ref0 (_tmp60_); -#line 91 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - result = _tmp61_; -#line 91 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return result; -#line 1027 "APIGlue.c" -} - - -static gchar* -publishing_glue_media_source_publishable_wrapper_real_get_publishing_name (SpitPublishingPublishable* base) -{ - PublishingGlueMediaSourcePublishableWrapper * self; - gchar* result = NULL; - gchar* _tmp0_ = NULL; - MediaSource* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gboolean _tmp4_; -#line 94 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper); -#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp1_ = self->priv->wrapped; -#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp2_ = media_source_get_title (_tmp1_); -#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp3_ = _tmp2_; -#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp4_ = _tmp3_ != NULL; -#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp3_); -#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (_tmp4_) { -#line 1055 "APIGlue.c" - MediaSource* _tmp5_; - gchar* _tmp6_; -#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp5_ = self->priv->wrapped; -#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp6_ = media_source_get_title (_tmp5_); -#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp0_); -#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp0_ = _tmp6_; -#line 1066 "APIGlue.c" - } else { - gchar* _tmp7_; -#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp7_ = g_strdup (""); -#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_free0 (_tmp0_); -#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp0_ = _tmp7_; -#line 1075 "APIGlue.c" - } -#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - result = _tmp0_; -#line 95 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return result; -#line 1081 "APIGlue.c" -} - - -static gchar* -publishing_glue_media_source_publishable_wrapper_real_get_param_string (SpitPublishingPublishable* base, - const gchar* name) -{ - PublishingGlueMediaSourcePublishableWrapper * self; - gchar* result = NULL; - GeeMap* _tmp0_; - gpointer _tmp1_; -#line 98 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper); -#line 98 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 99 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp0_ = self->priv->param_string; -#line 99 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp1_ = gee_map_get (_tmp0_, name); -#line 99 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - result = (gchar*) _tmp1_; -#line 99 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return result; -#line 1105 "APIGlue.c" -} - - -static void -_vala_array_add63 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if ((*length) == (*size)) { -#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 1121 "APIGlue.c" - } -#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - (*array)[(*length)++] = value; -#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - (*array)[*length] = NULL; -#line 1127 "APIGlue.c" -} - - -static gchar** -_vala_array_dup20 (gchar** self, - int length) -{ - gchar** result; - int i; -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - result = g_new0 (gchar*, length + 1); -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - for (i = 0; i < length; i++) { -#line 1141 "APIGlue.c" - gchar* _tmp0_; -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp0_ = g_strdup (self[i]); -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - result[i] = _tmp0_; -#line 1147 "APIGlue.c" - } -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return result; -#line 1151 "APIGlue.c" -} - - -static gchar** -publishing_glue_media_source_publishable_wrapper_real_get_publishing_keywords (SpitPublishingPublishable* base, - int* result_length1) -{ - PublishingGlueMediaSourcePublishableWrapper * self; - gchar** result = NULL; - gchar** _result_ = NULL; - gchar** _tmp0_; - gint _result__length1; - gint __result__size_; - GeeCollection* tagset = NULL; - TagSourceCollection* _tmp1_; - MediaSource* _tmp2_; - GeeSortedSet* _tmp3_; - GeeCollection* _tmp4_; - gchar** _tmp13_ = NULL; - gint _tmp13__length1 = 0; - gint __tmp13__size_ = 0; - gchar** _tmp14_; - gint _tmp14__length1; - gchar** _tmp16_; - gint _tmp16__length1; - gchar** _tmp17_; - gint _tmp17__length1; -#line 102 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper); -#line 103 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp0_ = g_new0 (gchar*, 0 + 1); -#line 103 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _result_ = _tmp0_; -#line 103 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _result__length1 = 0; -#line 103 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - __result__size_ = _result__length1; -#line 105 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp1_ = tag_global; -#line 105 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp2_ = self->priv->wrapped; -#line 105 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp3_ = tag_source_collection_fetch_sorted_for_source (_tmp1_, _tmp2_); -#line 105 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - tagset = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection); -#line 106 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp4_ = tagset; -#line 106 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (_tmp4_ != NULL) { -#line 1201 "APIGlue.c" - { - GeeIterator* _tag_it = NULL; - GeeCollection* _tmp5_; - GeeIterator* _tmp6_; -#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp5_ = tagset; -#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tag_it = _tmp6_; -#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - while (TRUE) { -#line 1214 "APIGlue.c" - GeeIterator* _tmp7_; - Tag* tag = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; - gchar** _tmp10_; - gint _tmp10__length1; - Tag* _tmp11_; - gchar* _tmp12_; -#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp7_ = _tag_it; -#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (!gee_iterator_next (_tmp7_)) { -#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - break; -#line 1229 "APIGlue.c" - } -#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp8_ = _tag_it; -#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp9_ = gee_iterator_get (_tmp8_); -#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - tag = (Tag*) _tmp9_; -#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp10_ = _result_; -#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp10__length1 = _result__length1; -#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp11_ = tag; -#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp12_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_DATA_OBJECT, DataObject)); -#line 108 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _vala_array_add63 (&_result_, &_result__length1, &__result__size_, _tmp12_); -#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (tag); -#line 1249 "APIGlue.c" - } -#line 107 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (_tag_it); -#line 1253 "APIGlue.c" - } - } -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp14_ = _result_; -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp14__length1 = _result__length1; -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (_tmp14__length1 > 0) { -#line 1262 "APIGlue.c" - gchar** _tmp15_; - gint _tmp15__length1; -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp15_ = _result_; -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp15__length1 = _result__length1; -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp13_ = _tmp15_; -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp13__length1 = _tmp15__length1; -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - __tmp13__size_ = _tmp13__length1; -#line 1275 "APIGlue.c" - } else { -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp13_ = NULL; -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp13__length1 = 0; -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - __tmp13__size_ = _tmp13__length1; -#line 1283 "APIGlue.c" - } -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp16_ = (_tmp13_ != NULL) ? _vala_array_dup20 (_tmp13_, _tmp13__length1) : ((gpointer) _tmp13_); -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp16__length1 = _tmp13__length1; -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp17_ = _tmp16_; -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp17__length1 = _tmp16__length1; -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (result_length1) { -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - *result_length1 = _tmp17__length1; -#line 1297 "APIGlue.c" - } -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - result = _tmp17_; -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (tagset); -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _result_ = (_vala_array_free (_result_, _result__length1, (GDestroyNotify) g_free), NULL); -#line 112 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return result; -#line 1307 "APIGlue.c" -} - - -static SpitPublishingPublisherMediaType -publishing_glue_media_source_publishable_wrapper_real_get_media_type (SpitPublishingPublishable* base) -{ - PublishingGlueMediaSourcePublishableWrapper * self; - SpitPublishingPublisherMediaType result = 0; - MediaSource* _tmp0_; -#line 115 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper); -#line 116 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp0_ = self->priv->wrapped; -#line 116 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_LIBRARY_PHOTO)) { -#line 117 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO; -#line 117 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return result; -#line 1327 "APIGlue.c" - } else { - MediaSource* _tmp1_; -#line 118 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp1_ = self->priv->wrapped; -#line 118 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_VIDEO)) { -#line 119 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO; -#line 119 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return result; -#line 1338 "APIGlue.c" - } else { -#line 121 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE; -#line 121 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return result; -#line 1344 "APIGlue.c" - } - } -} - - -static GFile* -publishing_glue_media_source_publishable_wrapper_real_get_serialized_file (SpitPublishingPublishable* base) -{ - PublishingGlueMediaSourcePublishableWrapper * self; - GFile* result = NULL; - GFile* _tmp0_; - GFile* _tmp1_; -#line 124 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper); -#line 125 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp0_ = self->priv->serialized_file; -#line 125 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 125 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - result = _tmp1_; -#line 125 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return result; -#line 1367 "APIGlue.c" -} - - -static GDateTime* -publishing_glue_media_source_publishable_wrapper_real_get_exposure_date_time (SpitPublishingPublishable* base) -{ - PublishingGlueMediaSourcePublishableWrapper * self; - GDateTime* result = NULL; - MediaSource* _tmp0_; - GDateTime* _tmp1_; -#line 128 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper); -#line 129 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp0_ = self->priv->wrapped; -#line 129 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp1_ = g_date_time_new_from_unix_local ((gint64) media_source_get_exposure_time (_tmp0_)); -#line 129 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - result = _tmp1_; -#line 129 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - return result; -#line 1388 "APIGlue.c" -} - - -static void -publishing_glue_media_source_publishable_wrapper_class_init (PublishingGlueMediaSourcePublishableWrapperClass * klass) -{ -#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - publishing_glue_media_source_publishable_wrapper_parent_class = g_type_class_peek_parent (klass); -#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - g_type_class_add_private (klass, sizeof (PublishingGlueMediaSourcePublishableWrapperPrivate)); -#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_glue_media_source_publishable_wrapper_finalize; -#line 1401 "APIGlue.c" -} - - -static void -publishing_glue_media_source_publishable_wrapper_spit_publishing_publishable_interface_init (SpitPublishingPublishableIface * iface) -{ -#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - publishing_glue_media_source_publishable_wrapper_spit_publishing_publishable_parent_iface = g_type_interface_peek_parent (iface); -#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - iface->get_publishing_name = (gchar* (*) (SpitPublishingPublishable *)) publishing_glue_media_source_publishable_wrapper_real_get_publishing_name; -#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - iface->get_param_string = (gchar* (*) (SpitPublishingPublishable *, const gchar*)) publishing_glue_media_source_publishable_wrapper_real_get_param_string; -#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - iface->get_publishing_keywords = (gchar** (*) (SpitPublishingPublishable *, int*)) publishing_glue_media_source_publishable_wrapper_real_get_publishing_keywords; -#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - iface->get_media_type = (SpitPublishingPublisherMediaType (*) (SpitPublishingPublishable *)) publishing_glue_media_source_publishable_wrapper_real_get_media_type; -#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - iface->get_serialized_file = (GFile* (*) (SpitPublishingPublishable *)) publishing_glue_media_source_publishable_wrapper_real_get_serialized_file; -#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - iface->get_exposure_date_time = (GDateTime* (*) (SpitPublishingPublishable *)) publishing_glue_media_source_publishable_wrapper_real_get_exposure_date_time; -#line 1422 "APIGlue.c" -} - - -static void -publishing_glue_media_source_publishable_wrapper_instance_init (PublishingGlueMediaSourcePublishableWrapper * self) -{ - GeeHashMap* _tmp0_; -#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - self->priv = PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_GET_PRIVATE (self); -#line 12 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - self->priv->serialized_file = NULL; -#line 13 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 13 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - self->priv->param_string = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MAP, GeeMap); -#line 1438 "APIGlue.c" -} - - -static void -publishing_glue_media_source_publishable_wrapper_finalize (GObject * obj) -{ - PublishingGlueMediaSourcePublishableWrapper * self; -#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper); -#line 11 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (self->priv->wrapped); -#line 12 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (self->priv->serialized_file); -#line 13 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - _g_object_unref0 (self->priv->param_string); -#line 8 "/home/jens/Source/shotwell/src/publishing/APIGlue.vala" - G_OBJECT_CLASS (publishing_glue_media_source_publishable_wrapper_parent_class)->finalize (obj); -#line 1456 "APIGlue.c" -} - - -GType -publishing_glue_media_source_publishable_wrapper_get_type (void) -{ - static volatile gsize publishing_glue_media_source_publishable_wrapper_type_id__volatile = 0; - if (g_once_init_enter (&publishing_glue_media_source_publishable_wrapper_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingGlueMediaSourcePublishableWrapperClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_glue_media_source_publishable_wrapper_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingGlueMediaSourcePublishableWrapper), 0, (GInstanceInitFunc) publishing_glue_media_source_publishable_wrapper_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_publishable_info = { (GInterfaceInitFunc) publishing_glue_media_source_publishable_wrapper_spit_publishing_publishable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_glue_media_source_publishable_wrapper_type_id; - publishing_glue_media_source_publishable_wrapper_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingGlueMediaSourcePublishableWrapper", &g_define_type_info, 0); - g_type_add_interface_static (publishing_glue_media_source_publishable_wrapper_type_id, SPIT_PUBLISHING_TYPE_PUBLISHABLE, &spit_publishing_publishable_info); - g_once_init_leave (&publishing_glue_media_source_publishable_wrapper_type_id__volatile, publishing_glue_media_source_publishable_wrapper_type_id); - } - return publishing_glue_media_source_publishable_wrapper_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/publishing/Publishing.c b/src/publishing/Publishing.c deleted file mode 100644 index 4bcc4db..0000000 --- a/src/publishing/Publishing.c +++ /dev/null @@ -1,246 +0,0 @@ -/* Publishing.c generated by valac 0.40.4, the Vala compiler - * generated from Publishing.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include - - - - -void publishing_init (GError** error); -static void _vala_array_add54 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add55 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add56 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add57 (gchar** * array, - int* length, - int* size, - gchar* value); -void plugins_register_extension_point (GType type, - const gchar* name, - const gchar* icon_name, - gchar** core_ids, - int core_ids_length1); -#define RESOURCES_PUBLISH "applications-internet" -void publishing_terminate (void); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static void -_vala_array_add54 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - if ((*length) == (*size)) { -#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 66 "Publishing.c" - } -#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - (*array)[(*length)++] = value; -#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - (*array)[*length] = NULL; -#line 72 "Publishing.c" -} - - -static void -_vala_array_add55 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - if ((*length) == (*size)) { -#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 88 "Publishing.c" - } -#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - (*array)[(*length)++] = value; -#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - (*array)[*length] = NULL; -#line 94 "Publishing.c" -} - - -static void -_vala_array_add56 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - if ((*length) == (*size)) { -#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 110 "Publishing.c" - } -#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - (*array)[(*length)++] = value; -#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - (*array)[*length] = NULL; -#line 116 "Publishing.c" -} - - -static void -_vala_array_add57 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - if ((*length) == (*size)) { -#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 132 "Publishing.c" - } -#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - (*array)[(*length)++] = value; -#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - (*array)[*length] = NULL; -#line 138 "Publishing.c" -} - - -void -publishing_init (GError** error) -{ - gchar** core_ids = NULL; - gchar** _tmp0_; - gint core_ids_length1; - gint _core_ids_size_; - gchar** _tmp1_; - gint _tmp1__length1; - gchar* _tmp2_; - gchar** _tmp3_; - gint _tmp3__length1; - gchar* _tmp4_; - gchar** _tmp5_; - gint _tmp5__length1; - gchar* _tmp6_; - gchar** _tmp7_; - gint _tmp7__length1; - gchar* _tmp8_; - gchar** _tmp9_; - gint _tmp9__length1; -#line 10 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _tmp0_ = g_new0 (gchar*, 0 + 1); -#line 10 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - core_ids = _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - core_ids_length1 = 0; -#line 10 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _core_ids_size_ = core_ids_length1; -#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _tmp1_ = core_ids; -#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _tmp1__length1 = core_ids_length1; -#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _tmp2_ = g_strdup ("org.yorba.shotwell.publishing.facebook"); -#line 11 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _vala_array_add54 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp2_); -#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _tmp3_ = core_ids; -#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _tmp3__length1 = core_ids_length1; -#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _tmp4_ = g_strdup ("org.yorba.shotwell.publishing.picasa"); -#line 12 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _vala_array_add55 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp4_); -#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _tmp5_ = core_ids; -#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _tmp5__length1 = core_ids_length1; -#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _tmp6_ = g_strdup ("org.yorba.shotwell.publishing.flickr"); -#line 13 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _vala_array_add56 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp6_); -#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _tmp7_ = core_ids; -#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _tmp7__length1 = core_ids_length1; -#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _tmp8_ = g_strdup ("org.yorba.shotwell.publishing.youtube"); -#line 14 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _vala_array_add57 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp8_); -#line 16 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _tmp9_ = core_ids; -#line 16 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - _tmp9__length1 = core_ids_length1; -#line 16 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - plugins_register_extension_point (SPIT_PUBLISHING_TYPE_SERVICE, _ ("Publishing"), RESOURCES_PUBLISH, _tmp9_, _tmp9__length1); -#line 9 "/home/jens/Source/shotwell/src/publishing/Publishing.vala" - core_ids = (_vala_array_free (core_ids, core_ids_length1, (GDestroyNotify) g_free), NULL); -#line 211 "Publishing.c" -} - - -void -publishing_terminate (void) -{ -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/publishing/PublishingPluginHost.c b/src/publishing/PublishingPluginHost.c deleted file mode 100644 index 8ee8e8d..0000000 --- a/src/publishing/PublishingPluginHost.c +++ /dev/null @@ -1,1582 +0,0 @@ -/* PublishingPluginHost.c generated by valac 0.40.4, the Vala compiler - * generated from PublishingPluginHost.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include -#include -#include -#include - - -#define PLUGINS_TYPE_STANDARD_HOST_INTERFACE (plugins_standard_host_interface_get_type ()) -#define PLUGINS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface)) -#define PLUGINS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass)) -#define PLUGINS_IS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE)) -#define PLUGINS_IS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE)) -#define PLUGINS_STANDARD_HOST_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass)) - -typedef struct _PluginsStandardHostInterface PluginsStandardHostInterface; -typedef struct _PluginsStandardHostInterfaceClass PluginsStandardHostInterfaceClass; -typedef struct _PluginsStandardHostInterfacePrivate PluginsStandardHostInterfacePrivate; - -#define SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST (spit_publishing_concrete_publishing_host_get_type ()) -#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost)) -#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHostClass)) -#define SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST)) -#define SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST)) -#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHostClass)) - -typedef struct _SpitPublishingConcretePublishingHost SpitPublishingConcretePublishingHost; -typedef struct _SpitPublishingConcretePublishingHostClass SpitPublishingConcretePublishingHostClass; -typedef struct _SpitPublishingConcretePublishingHostPrivate SpitPublishingConcretePublishingHostPrivate; - -#define PUBLISHING_UI_TYPE_PUBLISHING_DIALOG (publishing_ui_publishing_dialog_get_type ()) -#define PUBLISHING_UI_PUBLISHING_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, PublishingUIPublishingDialog)) -#define PUBLISHING_UI_PUBLISHING_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, PublishingUIPublishingDialogClass)) -#define PUBLISHING_UI_IS_PUBLISHING_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG)) -#define PUBLISHING_UI_IS_PUBLISHING_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG)) -#define PUBLISHING_UI_PUBLISHING_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, PublishingUIPublishingDialogClass)) - -typedef struct _PublishingUIPublishingDialog PublishingUIPublishingDialog; -typedef struct _PublishingUIPublishingDialogClass PublishingUIPublishingDialogClass; -enum { - SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_0_PROPERTY, - SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_NUM_PROPERTIES -}; -static GParamSpec* spit_publishing_concrete_publishing_host_properties[SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER (publishing_glue_media_source_publishable_wrapper_get_type ()) -#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper)) -#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapperClass)) -#define PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER)) -#define PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER)) -#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapperClass)) - -typedef struct _PublishingGlueMediaSourcePublishableWrapper PublishingGlueMediaSourcePublishableWrapper; -typedef struct _PublishingGlueMediaSourcePublishableWrapperClass PublishingGlueMediaSourcePublishableWrapperClass; - -#define PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE (publishing_ui_concrete_dialog_pane_get_type ()) -#define PUBLISHING_UI_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)) -#define PUBLISHING_UI_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPaneClass)) -#define PUBLISHING_UI_IS_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE)) -#define PUBLISHING_UI_IS_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE)) -#define PUBLISHING_UI_CONCRETE_DIALOG_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPaneClass)) - -typedef struct _PublishingUIConcreteDialogPane PublishingUIConcreteDialogPane; -typedef struct _PublishingUIConcreteDialogPaneClass PublishingUIConcreteDialogPaneClass; - -#define PUBLISHING_UI_TYPE_PROGRESS_PANE (publishing_ui_progress_pane_get_type ()) -#define PUBLISHING_UI_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPane)) -#define PUBLISHING_UI_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPaneClass)) -#define PUBLISHING_UI_IS_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_PROGRESS_PANE)) -#define PUBLISHING_UI_IS_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_PROGRESS_PANE)) -#define PUBLISHING_UI_PROGRESS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPaneClass)) - -typedef struct _PublishingUIProgressPane PublishingUIProgressPane; -typedef struct _PublishingUIProgressPaneClass PublishingUIProgressPaneClass; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE (publishing_ui_static_message_pane_get_type ()) -#define PUBLISHING_UI_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, PublishingUIStaticMessagePane)) -#define PUBLISHING_UI_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, PublishingUIStaticMessagePaneClass)) -#define PUBLISHING_UI_IS_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE)) -#define PUBLISHING_UI_IS_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE)) -#define PUBLISHING_UI_STATIC_MESSAGE_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, PublishingUIStaticMessagePaneClass)) - -typedef struct _PublishingUIStaticMessagePane PublishingUIStaticMessagePane; -typedef struct _PublishingUIStaticMessagePaneClass PublishingUIStaticMessagePaneClass; - -#define PUBLISHING_UI_TYPE_SUCCESS_PANE (publishing_ui_success_pane_get_type ()) -#define PUBLISHING_UI_SUCCESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_SUCCESS_PANE, PublishingUISuccessPane)) -#define PUBLISHING_UI_SUCCESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_SUCCESS_PANE, PublishingUISuccessPaneClass)) -#define PUBLISHING_UI_IS_SUCCESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_SUCCESS_PANE)) -#define PUBLISHING_UI_IS_SUCCESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_SUCCESS_PANE)) -#define PUBLISHING_UI_SUCCESS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_SUCCESS_PANE, PublishingUISuccessPaneClass)) - -typedef struct _PublishingUISuccessPane PublishingUISuccessPane; -typedef struct _PublishingUISuccessPaneClass PublishingUISuccessPaneClass; - -#define PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE (publishing_ui_account_fetch_wait_pane_get_type ()) -#define PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE, PublishingUIAccountFetchWaitPane)) -#define PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE, PublishingUIAccountFetchWaitPaneClass)) -#define PUBLISHING_UI_IS_ACCOUNT_FETCH_WAIT_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE)) -#define PUBLISHING_UI_IS_ACCOUNT_FETCH_WAIT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE)) -#define PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE, PublishingUIAccountFetchWaitPaneClass)) - -typedef struct _PublishingUIAccountFetchWaitPane PublishingUIAccountFetchWaitPane; -typedef struct _PublishingUIAccountFetchWaitPaneClass PublishingUIAccountFetchWaitPaneClass; - -#define PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE (publishing_ui_login_wait_pane_get_type ()) -#define PUBLISHING_UI_LOGIN_WAIT_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE, PublishingUILoginWaitPane)) -#define PUBLISHING_UI_LOGIN_WAIT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE, PublishingUILoginWaitPaneClass)) -#define PUBLISHING_UI_IS_LOGIN_WAIT_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE)) -#define PUBLISHING_UI_IS_LOGIN_WAIT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE)) -#define PUBLISHING_UI_LOGIN_WAIT_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE, PublishingUILoginWaitPaneClass)) - -typedef struct _PublishingUILoginWaitPane PublishingUILoginWaitPane; -typedef struct _PublishingUILoginWaitPaneClass PublishingUILoginWaitPaneClass; - -#define PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE (publishing_ui_login_welcome_pane_get_type ()) -#define PUBLISHING_UI_LOGIN_WELCOME_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, PublishingUILoginWelcomePane)) -#define PUBLISHING_UI_LOGIN_WELCOME_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, PublishingUILoginWelcomePaneClass)) -#define PUBLISHING_UI_IS_LOGIN_WELCOME_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE)) -#define PUBLISHING_UI_IS_LOGIN_WELCOME_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE)) -#define PUBLISHING_UI_LOGIN_WELCOME_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, PublishingUILoginWelcomePaneClass)) - -typedef struct _PublishingUILoginWelcomePane PublishingUILoginWelcomePane; -typedef struct _PublishingUILoginWelcomePaneClass PublishingUILoginWelcomePaneClass; -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -struct _PluginsStandardHostInterface { - GObject parent_instance; - PluginsStandardHostInterfacePrivate * priv; -}; - -struct _PluginsStandardHostInterfaceClass { - GObjectClass parent_class; -}; - -struct _SpitPublishingConcretePublishingHost { - PluginsStandardHostInterface parent_instance; - SpitPublishingConcretePublishingHostPrivate * priv; -}; - -struct _SpitPublishingConcretePublishingHostClass { - PluginsStandardHostInterfaceClass parent_class; -}; - -struct _SpitPublishingConcretePublishingHostPrivate { - PublishingUIPublishingDialog* dialog; - SpitPublishingPublisher* active_publisher; - SpitPublishingPublishable** publishables; - gint publishables_length1; - gint _publishables_size_; - SpitPublishingLoginCallback current_login_callback; - gpointer current_login_callback_target; - gboolean publishing_halted; - SpitPublishingPublisherMediaType media_type; -}; - - -static gpointer spit_publishing_concrete_publishing_host_parent_class = NULL; -static SpitPublishingPluginHostIface * spit_publishing_concrete_publishing_host_spit_publishing_plugin_host_parent_iface = NULL; - -GType plugins_standard_host_interface_get_type (void) G_GNUC_CONST; -GType spit_publishing_concrete_publishing_host_get_type (void) G_GNUC_CONST; -GType publishing_ui_publishing_dialog_get_type (void) G_GNUC_CONST; -#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHostPrivate)) -#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_PREPARE_STATUS_DESCRIPTION _ ("Preparing for upload") -#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_UPLOAD_STATUS_DESCRIPTION _ ("Uploading %d of %d") -#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_STATUS_PREPARATION_FRACTION 0.3 -#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_STATUS_UPLOAD_FRACTION 0.7 -SpitPublishingConcretePublishingHost* spit_publishing_concrete_publishing_host_new (SpitPublishingService* service, - PublishingUIPublishingDialog* dialog, - SpitPublishingPublishable** publishables, - int publishables_length1); -SpitPublishingConcretePublishingHost* spit_publishing_concrete_publishing_host_construct (GType object_type, - SpitPublishingService* service, - PublishingUIPublishingDialog* dialog, - SpitPublishingPublishable** publishables, - int publishables_length1); -PluginsStandardHostInterface* plugins_standard_host_interface_new (SpitPluggable* pluggable, - const gchar* config_domain); -PluginsStandardHostInterface* plugins_standard_host_interface_construct (GType object_type, - SpitPluggable* pluggable, - const gchar* config_domain); -static SpitPublishingPublishable** _vala_array_dup18 (SpitPublishingPublishable** self, - int length); -static void spit_publishing_concrete_publishing_host_on_login_clicked (SpitPublishingConcretePublishingHost* self); -static void spit_publishing_concrete_publishing_host_clean_up (SpitPublishingConcretePublishingHost* self); -GType publishing_glue_media_source_publishable_wrapper_get_type (void) G_GNUC_CONST; -void publishing_glue_media_source_publishable_wrapper_clean_up (PublishingGlueMediaSourcePublishableWrapper* self); -static void spit_publishing_concrete_publishing_host_report_plugin_upload_progress (SpitPublishingConcretePublishingHost* self, - gint file_number, - gdouble fraction_complete); -SpitPublishingDialogPane* publishing_ui_publishing_dialog_get_active_pane (PublishingUIPublishingDialog* self); -GType publishing_ui_concrete_dialog_pane_get_type (void) G_GNUC_CONST; -GType publishing_ui_progress_pane_get_type (void) G_GNUC_CONST; -void publishing_ui_progress_pane_set_status (PublishingUIProgressPane* self, - const gchar* status_text, - gdouble progress); -static void spit_publishing_concrete_publishing_host_install_progress_pane (SpitPublishingConcretePublishingHost* self); -PublishingUIProgressPane* publishing_ui_progress_pane_new (void); -PublishingUIProgressPane* publishing_ui_progress_pane_construct (GType object_type); -void publishing_ui_publishing_dialog_install_pane (PublishingUIPublishingDialog* self, - SpitPublishingDialogPane* pane); -void spit_publishing_concrete_publishing_host_set_button_mode (SpitPublishingConcretePublishingHost* self, - SpitPublishingPluginHostButtonMode mode); -static void spit_publishing_concrete_publishing_host_real_install_dialog_pane (SpitPublishingPluginHost* base, - SpitPublishingDialogPane* pane, - SpitPublishingPluginHostButtonMode button_mode); -static void spit_publishing_concrete_publishing_host_real_post_error (SpitPublishingPluginHost* base, - GError* err); -PublishingUIStaticMessagePane* publishing_ui_static_message_pane_new (const gchar* message_string, - gboolean enable_markup); -PublishingUIStaticMessagePane* publishing_ui_static_message_pane_construct (GType object_type, - const gchar* message_string, - gboolean enable_markup); -GType publishing_ui_static_message_pane_get_type (void) G_GNUC_CONST; -void publishing_ui_publishing_dialog_set_close_button_mode (PublishingUIPublishingDialog* self); -void publishing_ui_publishing_dialog_unlock_service (PublishingUIPublishingDialog* self); -static void spit_publishing_concrete_publishing_host_real_stop_publishing (SpitPublishingPluginHost* base); -void spit_publishing_concrete_publishing_host_start_publishing (SpitPublishingConcretePublishingHost* self); -static SpitPublishingPublisher* spit_publishing_concrete_publishing_host_real_get_publisher (SpitPublishingPluginHost* base); -static void spit_publishing_concrete_publishing_host_real_install_static_message_pane (SpitPublishingPluginHost* base, - const gchar* message, - SpitPublishingPluginHostButtonMode button_mode); -static void spit_publishing_concrete_publishing_host_real_install_pango_message_pane (SpitPublishingPluginHost* base, - const gchar* markup, - SpitPublishingPluginHostButtonMode button_mode); -static void spit_publishing_concrete_publishing_host_real_install_success_pane (SpitPublishingPluginHost* base); -PublishingUISuccessPane* publishing_ui_success_pane_new (SpitPublishingPublisherMediaType published_media, - gint num_uploaded); -PublishingUISuccessPane* publishing_ui_success_pane_construct (GType object_type, - SpitPublishingPublisherMediaType published_media, - gint num_uploaded); -GType publishing_ui_success_pane_get_type (void) G_GNUC_CONST; -static void spit_publishing_concrete_publishing_host_real_install_account_fetch_wait_pane (SpitPublishingPluginHost* base); -PublishingUIAccountFetchWaitPane* publishing_ui_account_fetch_wait_pane_new (void); -PublishingUIAccountFetchWaitPane* publishing_ui_account_fetch_wait_pane_construct (GType object_type); -GType publishing_ui_account_fetch_wait_pane_get_type (void) G_GNUC_CONST; -static void spit_publishing_concrete_publishing_host_real_install_login_wait_pane (SpitPublishingPluginHost* base); -PublishingUILoginWaitPane* publishing_ui_login_wait_pane_new (void); -PublishingUILoginWaitPane* publishing_ui_login_wait_pane_construct (GType object_type); -GType publishing_ui_login_wait_pane_get_type (void) G_GNUC_CONST; -static void spit_publishing_concrete_publishing_host_real_install_welcome_pane (SpitPublishingPluginHost* base, - const gchar* welcome_message, - SpitPublishingLoginCallback login_clicked_callback, - void* login_clicked_callback_target); -GType publishing_ui_login_welcome_pane_get_type (void) G_GNUC_CONST; -PublishingUILoginWelcomePane* publishing_ui_login_welcome_pane_new (const gchar* service_welcome_message); -PublishingUILoginWelcomePane* publishing_ui_login_welcome_pane_construct (GType object_type, - const gchar* service_welcome_message); -static void _spit_publishing_concrete_publishing_host_on_login_clicked_publishing_ui_login_welcome_pane_login_requested (PublishingUILoginWelcomePane* _sender, - gpointer self); -static void spit_publishing_concrete_publishing_host_real_set_service_locked (SpitPublishingPluginHost* base, - gboolean locked); -void publishing_ui_publishing_dialog_lock_service (PublishingUIPublishingDialog* self); -void publishing_ui_publishing_dialog_set_cancel_button_mode (PublishingUIPublishingDialog* self); -static void spit_publishing_concrete_publishing_host_real_set_dialog_default_widget (SpitPublishingPluginHost* base, - GtkWidget* widget); -static SpitPublishingPublisherMediaType spit_publishing_concrete_publishing_host_real_get_publishable_media_type (SpitPublishingPluginHost* base); -static SpitPublishingPublishable** spit_publishing_concrete_publishing_host_real_get_publishables (SpitPublishingPluginHost* base, - int* result_length1); -static SpitPublishingPublishable** _vala_array_dup19 (SpitPublishingPublishable** self, - int length); -static SpitPublishingProgressCallback spit_publishing_concrete_publishing_host_real_serialize_publishables (SpitPublishingPluginHost* base, - gint content_major_axis, - gboolean strip_metadata, - void** result_target, - GDestroyNotify* result_target_destroy_notify); -void spin_event_loop (void); -GFile* publishing_glue_media_source_publishable_wrapper_serialize_for_publishing (PublishingGlueMediaSourcePublishableWrapper* self, - gint content_major_axis, - gboolean strip_metadata, - GError** error); -static void _spit_publishing_concrete_publishing_host_report_plugin_upload_progress_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self); -static void spit_publishing_concrete_publishing_host_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - return self ? g_object_ref (self) : NULL; -#line 307 "PublishingPluginHost.c" -} - - -static SpitPublishingPublishable** -_vala_array_dup18 (SpitPublishingPublishable** self, - int length) -{ - SpitPublishingPublishable** result; - int i; -#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - result = g_new0 (SpitPublishingPublishable*, length + 1); -#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - for (i = 0; i < length; i++) { -#line 321 "PublishingPluginHost.c" - SpitPublishingPublishable* _tmp0_; -#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - result[i] = _tmp0_; -#line 327 "PublishingPluginHost.c" - } -#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - return result; -#line 331 "PublishingPluginHost.c" -} - - -SpitPublishingConcretePublishingHost* -spit_publishing_concrete_publishing_host_construct (GType object_type, - SpitPublishingService* service, - PublishingUIPublishingDialog* dialog, - SpitPublishingPublishable** publishables, - int publishables_length1) -{ - SpitPublishingConcretePublishingHost * self = NULL; - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; - SpitPublishingPublisher* _tmp4_; -#line 24 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); -#line 24 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_return_val_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (dialog), NULL); -#line 26 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self = (SpitPublishingConcretePublishingHost*) plugins_standard_host_interface_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (service, SPIT_TYPE_PLUGGABLE, SpitPluggable), "sharing"); -#line 27 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->dialog = dialog; -#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = (publishables != NULL) ? _vala_array_dup18 (publishables, publishables_length1) : ((gpointer) publishables); -#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0__length1 = publishables_length1; -#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->publishables = _tmp0_; -#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->publishables_length1 = _tmp0__length1; -#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->_publishables_size_ = self->priv->publishables_length1; -#line 366 "PublishingPluginHost.c" - { - SpitPublishingPublishable** curr_publishable_collection = NULL; - gint curr_publishable_collection_length1 = 0; - gint _curr_publishable_collection_size_ = 0; - gint curr_publishable_it = 0; -#line 30 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - curr_publishable_collection = publishables; -#line 30 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - curr_publishable_collection_length1 = publishables_length1; -#line 30 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - for (curr_publishable_it = 0; curr_publishable_it < publishables_length1; curr_publishable_it = curr_publishable_it + 1) { -#line 378 "PublishingPluginHost.c" - SpitPublishingPublishable* _tmp1_; - SpitPublishingPublishable* curr_publishable = NULL; -#line 30 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = _g_object_ref0 (curr_publishable_collection[curr_publishable_it]); -#line 30 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - curr_publishable = _tmp1_; -#line 385 "PublishingPluginHost.c" - { - SpitPublishingPublisherMediaType _tmp2_; - SpitPublishingPublishable* _tmp3_; -#line 31 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp2_ = self->priv->media_type; -#line 31 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp3_ = curr_publishable; -#line 31 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->media_type = _tmp2_ | spit_publishing_publishable_get_media_type (_tmp3_); -#line 30 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (curr_publishable); -#line 397 "PublishingPluginHost.c" - } - } - } -#line 33 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp4_ = spit_publishing_service_create_publisher (service, G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHost)); -#line 33 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (self->priv->active_publisher); -#line 33 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->active_publisher = _tmp4_; -#line 24 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - return self; -#line 409 "PublishingPluginHost.c" -} - - -SpitPublishingConcretePublishingHost* -spit_publishing_concrete_publishing_host_new (SpitPublishingService* service, - PublishingUIPublishingDialog* dialog, - SpitPublishingPublishable** publishables, - int publishables_length1) -{ -#line 24 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - return spit_publishing_concrete_publishing_host_construct (SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, service, dialog, publishables, publishables_length1); -#line 421 "PublishingPluginHost.c" -} - - -static void -spit_publishing_concrete_publishing_host_on_login_clicked (SpitPublishingConcretePublishingHost* self) -{ - SpitPublishingLoginCallback _tmp0_; - void* _tmp0__target; -#line 36 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST (self)); -#line 37 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->current_login_callback; -#line 37 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0__target = self->priv->current_login_callback_target; -#line 37 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - if (_tmp0_ != NULL) { -#line 438 "PublishingPluginHost.c" - SpitPublishingLoginCallback _tmp1_; - void* _tmp1__target; -#line 38 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = self->priv->current_login_callback; -#line 38 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1__target = self->priv->current_login_callback_target; -#line 38 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ (_tmp1__target); -#line 447 "PublishingPluginHost.c" - } -} - - -static void -spit_publishing_concrete_publishing_host_clean_up (SpitPublishingConcretePublishingHost* self) -{ - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; -#line 41 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST (self)); -#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->publishables; -#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0__length1 = self->priv->publishables_length1; -#line 463 "PublishingPluginHost.c" - { - SpitPublishingPublishable** publishable_collection = NULL; - gint publishable_collection_length1 = 0; - gint _publishable_collection_size_ = 0; - gint publishable_it = 0; -#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishable_collection = _tmp0_; -#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishable_collection_length1 = _tmp0__length1; -#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - for (publishable_it = 0; publishable_it < _tmp0__length1; publishable_it = publishable_it + 1) { -#line 475 "PublishingPluginHost.c" - SpitPublishingPublishable* _tmp1_; - SpitPublishingPublishable* publishable = NULL; -#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = _g_object_ref0 (publishable_collection[publishable_it]); -#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishable = _tmp1_; -#line 482 "PublishingPluginHost.c" - { - SpitPublishingPublishable* _tmp2_; -#line 43 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp2_ = publishable; -#line 43 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_glue_media_source_publishable_wrapper_clean_up (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper)); -#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (publishable); -#line 491 "PublishingPluginHost.c" - } - } - } -} - - -static void -spit_publishing_concrete_publishing_host_report_plugin_upload_progress (SpitPublishingConcretePublishingHost* self, - gint file_number, - gdouble fraction_complete) -{ - PublishingUIPublishingDialog* _tmp0_; - SpitPublishingDialogPane* _tmp1_; - SpitPublishingDialogPane* _tmp2_; - gboolean _tmp3_; - PublishingUIProgressPane* pane = NULL; - PublishingUIPublishingDialog* _tmp4_; - SpitPublishingDialogPane* _tmp5_; - gchar* status_string = NULL; - SpitPublishingPublishable** _tmp6_; - gint _tmp6__length1; - gchar* _tmp7_; - gdouble status_fraction = 0.0; - PublishingUIProgressPane* _tmp8_; - const gchar* _tmp9_; - gdouble _tmp10_; -#line 46 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST (self)); -#line 48 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->dialog; -#line 48 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = publishing_ui_publishing_dialog_get_active_pane (_tmp0_); -#line 48 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp2_ = _tmp1_; -#line 48 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp3_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, PUBLISHING_UI_TYPE_PROGRESS_PANE); -#line 48 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (_tmp2_); -#line 48 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - if (_tmp3_) { -#line 49 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - return; -#line 534 "PublishingPluginHost.c" - } -#line 51 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp4_ = self->priv->dialog; -#line 51 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp5_ = publishing_ui_publishing_dialog_get_active_pane (_tmp4_); -#line 51 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - pane = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPane); -#line 53 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp6_ = self->priv->publishables; -#line 53 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp6__length1 = self->priv->publishables_length1; -#line 53 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp7_ = g_strdup_printf (SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_UPLOAD_STATUS_DESCRIPTION, file_number, _tmp6__length1); -#line 53 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - status_string = _tmp7_; -#line 55 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - status_fraction = SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_STATUS_PREPARATION_FRACTION + (SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_STATUS_UPLOAD_FRACTION * fraction_complete); -#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp8_ = pane; -#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp9_ = status_string; -#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp10_ = status_fraction; -#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_progress_pane_set_status (_tmp8_, _tmp9_, _tmp10_); -#line 46 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_free0 (status_string); -#line 46 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (pane); -#line 564 "PublishingPluginHost.c" -} - - -static void -spit_publishing_concrete_publishing_host_install_progress_pane (SpitPublishingConcretePublishingHost* self) -{ - PublishingUIProgressPane* progress_pane = NULL; - PublishingUIProgressPane* _tmp0_; - PublishingUIPublishingDialog* _tmp1_; -#line 61 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST (self)); -#line 62 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = publishing_ui_progress_pane_new (); -#line 62 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - progress_pane = _tmp0_; -#line 64 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = self->priv->dialog; -#line 64 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_publishing_dialog_install_pane (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (progress_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane)); -#line 65 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_concrete_publishing_host_set_button_mode (self, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 61 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (progress_pane); -#line 588 "PublishingPluginHost.c" -} - - -static void -spit_publishing_concrete_publishing_host_real_install_dialog_pane (SpitPublishingPluginHost* base, - SpitPublishingDialogPane* pane, - SpitPublishingPluginHostButtonMode button_mode) -{ - SpitPublishingConcretePublishingHost * self; - gboolean _tmp0_ = FALSE; - SpitPublishingPublisher* _tmp1_; - PublishingUIPublishingDialog* _tmp3_; -#line 68 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost); -#line 68 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (pane)); -#line 70 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_debug ("PublishingPluginHost.vala:70: Publishing.PluginHost: install_dialog_pa" \ -"ne( ): invoked."); -#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = self->priv->active_publisher; -#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - if (_tmp1_ == NULL) { -#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = TRUE; -#line 613 "PublishingPluginHost.c" - } else { - SpitPublishingPublisher* _tmp2_; -#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp2_ = self->priv->active_publisher; -#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = !spit_publishing_publisher_is_running (_tmp2_); -#line 620 "PublishingPluginHost.c" - } -#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - if (_tmp0_) { -#line 73 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - return; -#line 626 "PublishingPluginHost.c" - } -#line 75 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp3_ = self->priv->dialog; -#line 75 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_publishing_dialog_install_pane (_tmp3_, pane); -#line 77 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_concrete_publishing_host_set_button_mode (self, button_mode); -#line 634 "PublishingPluginHost.c" -} - - -static void -spit_publishing_concrete_publishing_host_real_post_error (SpitPublishingPluginHost* base, - GError* err) -{ - SpitPublishingConcretePublishingHost * self; - gchar* msg = NULL; - SpitPublishingPublisher* _tmp0_; - SpitPublishingService* _tmp1_; - SpitPublishingService* _tmp2_; - const gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - const gchar* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - const gchar* _tmp11_; - gchar* _tmp12_; - PublishingUIPublishingDialog* _tmp13_; - const gchar* _tmp14_; - PublishingUIStaticMessagePane* _tmp15_; - PublishingUIStaticMessagePane* _tmp16_; - PublishingUIPublishingDialog* _tmp17_; - PublishingUIPublishingDialog* _tmp18_; - SpitPublishingPublisher* _tmp19_; -#line 80 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost); -#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->active_publisher; -#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = spit_publishing_publisher_get_service (_tmp0_); -#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp2_ = _tmp1_; -#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp3_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp4_ = g_strdup_printf (_ ("Publishing to %s can’t continue because an error occurred:"), _tmp3_); -#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp5_ = _tmp4_; -#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (_tmp2_); -#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - msg = _tmp5_; -#line 83 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp6_ = msg; -#line 83 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp7_ = err->message; -#line 83 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp8_ = g_markup_printf_escaped ("\n\n%s\n\n", _tmp7_); -#line 83 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp9_ = _tmp8_; -#line 83 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp10_ = g_strconcat (_tmp6_, _tmp9_, NULL); -#line 83 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_free0 (msg); -#line 83 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - msg = _tmp10_; -#line 83 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_free0 (_tmp9_); -#line 84 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp11_ = msg; -#line 84 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp12_ = g_strconcat (_tmp11_, _ ("To try publishing to another service, select one from the above menu."), NULL); -#line 84 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_free0 (msg); -#line 84 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - msg = _tmp12_; -#line 86 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp13_ = self->priv->dialog; -#line 86 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp14_ = msg; -#line 86 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp15_ = publishing_ui_static_message_pane_new (_tmp14_, TRUE); -#line 86 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp16_ = _tmp15_; -#line 86 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_publishing_dialog_install_pane (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane)); -#line 86 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (_tmp16_); -#line 87 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp17_ = self->priv->dialog; -#line 87 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_publishing_dialog_set_close_button_mode (_tmp17_); -#line 88 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp18_ = self->priv->dialog; -#line 88 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_publishing_dialog_unlock_service (_tmp18_); -#line 90 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp19_ = self->priv->active_publisher; -#line 90 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_publisher_stop (_tmp19_); -#line 95 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_concrete_publishing_host_clean_up (self); -#line 80 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_free0 (msg); -#line 734 "PublishingPluginHost.c" -} - - -static void -spit_publishing_concrete_publishing_host_real_stop_publishing (SpitPublishingPluginHost* base) -{ - SpitPublishingConcretePublishingHost * self; - SpitPublishingPublisher* _tmp0_; -#line 98 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost); -#line 99 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_debug ("PublishingPluginHost.vala:99: ConcretePublishingHost.stop_publishing( " \ -"): invoked."); -#line 101 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->active_publisher; -#line 101 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - if (spit_publishing_publisher_is_running (_tmp0_)) { -#line 751 "PublishingPluginHost.c" - SpitPublishingPublisher* _tmp1_; -#line 102 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = self->priv->active_publisher; -#line 102 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_publisher_stop (_tmp1_); -#line 757 "PublishingPluginHost.c" - } -#line 104 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_concrete_publishing_host_clean_up (self); -#line 106 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->publishing_halted = TRUE; -#line 763 "PublishingPluginHost.c" -} - - -void -spit_publishing_concrete_publishing_host_start_publishing (SpitPublishingConcretePublishingHost* self) -{ - SpitPublishingPublisher* _tmp0_; - SpitPublishingPublisher* _tmp1_; -#line 109 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST (self)); -#line 110 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->active_publisher; -#line 110 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - if (spit_publishing_publisher_is_running (_tmp0_)) { -#line 111 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - return; -#line 780 "PublishingPluginHost.c" - } -#line 113 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_debug ("PublishingPluginHost.vala:113: ConcretePublishingHost.start_publishing" \ -"( ): invoked."); -#line 115 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = self->priv->active_publisher; -#line 115 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_publisher_start (_tmp1_); -#line 788 "PublishingPluginHost.c" -} - - -static SpitPublishingPublisher* -spit_publishing_concrete_publishing_host_real_get_publisher (SpitPublishingPluginHost* base) -{ - SpitPublishingConcretePublishingHost * self; - SpitPublishingPublisher* result = NULL; - SpitPublishingPublisher* _tmp0_; - SpitPublishingPublisher* _tmp1_; -#line 118 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost); -#line 119 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->active_publisher; -#line 119 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 119 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - result = _tmp1_; -#line 119 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - return result; -#line 809 "PublishingPluginHost.c" -} - - -static void -spit_publishing_concrete_publishing_host_real_install_static_message_pane (SpitPublishingPluginHost* base, - const gchar* message, - SpitPublishingPluginHostButtonMode button_mode) -{ - SpitPublishingConcretePublishingHost * self; - PublishingUIPublishingDialog* _tmp0_; - PublishingUIStaticMessagePane* _tmp1_; - PublishingUIStaticMessagePane* _tmp2_; -#line 122 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost); -#line 122 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_return_if_fail (message != NULL); -#line 125 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_concrete_publishing_host_set_button_mode (self, button_mode); -#line 127 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->dialog; -#line 127 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = publishing_ui_static_message_pane_new (message, FALSE); -#line 127 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp2_ = _tmp1_; -#line 127 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_publishing_dialog_install_pane (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane)); -#line 127 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (_tmp2_); -#line 838 "PublishingPluginHost.c" -} - - -static void -spit_publishing_concrete_publishing_host_real_install_pango_message_pane (SpitPublishingPluginHost* base, - const gchar* markup, - SpitPublishingPluginHostButtonMode button_mode) -{ - SpitPublishingConcretePublishingHost * self; - PublishingUIPublishingDialog* _tmp0_; - PublishingUIStaticMessagePane* _tmp1_; - PublishingUIStaticMessagePane* _tmp2_; -#line 130 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost); -#line 130 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_return_if_fail (markup != NULL); -#line 132 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_concrete_publishing_host_set_button_mode (self, button_mode); -#line 134 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->dialog; -#line 134 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = publishing_ui_static_message_pane_new (markup, TRUE); -#line 134 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp2_ = _tmp1_; -#line 134 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_publishing_dialog_install_pane (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane)); -#line 134 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (_tmp2_); -#line 867 "PublishingPluginHost.c" -} - - -static void -spit_publishing_concrete_publishing_host_real_install_success_pane (SpitPublishingPluginHost* base) -{ - SpitPublishingConcretePublishingHost * self; - PublishingUIPublishingDialog* _tmp0_; - SpitPublishingPublishable** _tmp1_; - gint _tmp1__length1; - PublishingUISuccessPane* _tmp2_; - PublishingUISuccessPane* _tmp3_; - PublishingUIPublishingDialog* _tmp4_; -#line 137 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost); -#line 138 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->dialog; -#line 138 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = self->priv->publishables; -#line 138 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1__length1 = self->priv->publishables_length1; -#line 138 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp2_ = publishing_ui_success_pane_new (spit_publishing_plugin_host_get_publishable_media_type (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHost)), _tmp1__length1); -#line 138 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp3_ = _tmp2_; -#line 138 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_publishing_dialog_install_pane (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane)); -#line 138 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (_tmp3_); -#line 140 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp4_ = self->priv->dialog; -#line 140 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_publishing_dialog_set_close_button_mode (_tmp4_); -#line 144 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_concrete_publishing_host_clean_up (self); -#line 903 "PublishingPluginHost.c" -} - - -static void -spit_publishing_concrete_publishing_host_real_install_account_fetch_wait_pane (SpitPublishingPluginHost* base) -{ - SpitPublishingConcretePublishingHost * self; - PublishingUIPublishingDialog* _tmp0_; - PublishingUIAccountFetchWaitPane* _tmp1_; - PublishingUIAccountFetchWaitPane* _tmp2_; -#line 147 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost); -#line 148 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->dialog; -#line 148 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = publishing_ui_account_fetch_wait_pane_new (); -#line 148 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp2_ = _tmp1_; -#line 148 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_publishing_dialog_install_pane (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane)); -#line 148 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (_tmp2_); -#line 149 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_concrete_publishing_host_set_button_mode (self, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); -#line 928 "PublishingPluginHost.c" -} - - -static void -spit_publishing_concrete_publishing_host_real_install_login_wait_pane (SpitPublishingPluginHost* base) -{ - SpitPublishingConcretePublishingHost * self; - PublishingUIPublishingDialog* _tmp0_; - PublishingUILoginWaitPane* _tmp1_; - PublishingUILoginWaitPane* _tmp2_; -#line 152 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost); -#line 153 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->dialog; -#line 153 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = publishing_ui_login_wait_pane_new (); -#line 153 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp2_ = _tmp1_; -#line 153 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_publishing_dialog_install_pane (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane)); -#line 153 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (_tmp2_); -#line 951 "PublishingPluginHost.c" -} - - -static void -_spit_publishing_concrete_publishing_host_on_login_clicked_publishing_ui_login_welcome_pane_login_requested (PublishingUILoginWelcomePane* _sender, - gpointer self) -{ -#line 160 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_concrete_publishing_host_on_login_clicked ((SpitPublishingConcretePublishingHost*) self); -#line 961 "PublishingPluginHost.c" -} - - -static void -spit_publishing_concrete_publishing_host_real_install_welcome_pane (SpitPublishingPluginHost* base, - const gchar* welcome_message, - SpitPublishingLoginCallback login_clicked_callback, - void* login_clicked_callback_target) -{ - SpitPublishingConcretePublishingHost * self; - PublishingUILoginWelcomePane* login_pane = NULL; - PublishingUILoginWelcomePane* _tmp0_; - PublishingUIPublishingDialog* _tmp1_; -#line 156 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost); -#line 156 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_return_if_fail (welcome_message != NULL); -#line 157 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = publishing_ui_login_welcome_pane_new (welcome_message); -#line 157 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - login_pane = _tmp0_; -#line 159 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->current_login_callback = login_clicked_callback; -#line 159 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->current_login_callback_target = login_clicked_callback_target; -#line 160 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_signal_connect_object (login_pane, "login-requested", (GCallback) _spit_publishing_concrete_publishing_host_on_login_clicked_publishing_ui_login_welcome_pane_login_requested, self, 0); -#line 162 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_concrete_publishing_host_set_button_mode (self, SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE); -#line 164 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = self->priv->dialog; -#line 164 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_publishing_dialog_install_pane (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (login_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane)); -#line 156 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (login_pane); -#line 997 "PublishingPluginHost.c" -} - - -static void -spit_publishing_concrete_publishing_host_real_set_service_locked (SpitPublishingPluginHost* base, - gboolean locked) -{ - SpitPublishingConcretePublishingHost * self; -#line 167 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost); -#line 168 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - if (locked) { -#line 1010 "PublishingPluginHost.c" - PublishingUIPublishingDialog* _tmp0_; -#line 169 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->dialog; -#line 169 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_publishing_dialog_lock_service (_tmp0_); -#line 1016 "PublishingPluginHost.c" - } else { - PublishingUIPublishingDialog* _tmp1_; -#line 171 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = self->priv->dialog; -#line 171 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_publishing_dialog_unlock_service (_tmp1_); -#line 1023 "PublishingPluginHost.c" - } -} - - -void -spit_publishing_concrete_publishing_host_set_button_mode (SpitPublishingConcretePublishingHost* self, - SpitPublishingPluginHostButtonMode mode) -{ -#line 174 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST (self)); -#line 175 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - if (mode == SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CLOSE) { -#line 1036 "PublishingPluginHost.c" - PublishingUIPublishingDialog* _tmp0_; -#line 176 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->dialog; -#line 176 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_publishing_dialog_set_close_button_mode (_tmp0_); -#line 1042 "PublishingPluginHost.c" - } else { -#line 177 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - if (mode == SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL) { -#line 1046 "PublishingPluginHost.c" - PublishingUIPublishingDialog* _tmp1_; -#line 178 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = self->priv->dialog; -#line 178 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_publishing_dialog_set_cancel_button_mode (_tmp1_); -#line 1052 "PublishingPluginHost.c" - } else { -#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_error ("PublishingPluginHost.vala:180: unrecognized button mode enumeration va" \ -"lue"); -#line 1056 "PublishingPluginHost.c" - } - } -} - - -static void -spit_publishing_concrete_publishing_host_real_set_dialog_default_widget (SpitPublishingPluginHost* base, - GtkWidget* widget) -{ - SpitPublishingConcretePublishingHost * self; - PublishingUIPublishingDialog* _tmp0_; -#line 183 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost); -#line 183 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_return_if_fail (GTK_IS_WIDGET (widget)); -#line 184 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - gtk_widget_set_can_default (widget, TRUE); -#line 185 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->dialog; -#line 185 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - gtk_window_set_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_window_get_type (), GtkWindow), widget); -#line 1078 "PublishingPluginHost.c" -} - - -static SpitPublishingPublisherMediaType -spit_publishing_concrete_publishing_host_real_get_publishable_media_type (SpitPublishingPluginHost* base) -{ - SpitPublishingConcretePublishingHost * self; - SpitPublishingPublisherMediaType result = 0; - SpitPublishingPublisherMediaType _tmp0_; -#line 188 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost); -#line 189 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->media_type; -#line 189 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - result = _tmp0_; -#line 189 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - return result; -#line 1096 "PublishingPluginHost.c" -} - - -static SpitPublishingPublishable** -_vala_array_dup19 (SpitPublishingPublishable** self, - int length) -{ - SpitPublishingPublishable** result; - int i; -#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - result = g_new0 (SpitPublishingPublishable*, length + 1); -#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - for (i = 0; i < length; i++) { -#line 1110 "PublishingPluginHost.c" - SpitPublishingPublishable* _tmp0_; -#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = _g_object_ref0 (self[i]); -#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - result[i] = _tmp0_; -#line 1116 "PublishingPluginHost.c" - } -#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - return result; -#line 1120 "PublishingPluginHost.c" -} - - -static SpitPublishingPublishable** -spit_publishing_concrete_publishing_host_real_get_publishables (SpitPublishingPluginHost* base, - int* result_length1) -{ - SpitPublishingConcretePublishingHost * self; - SpitPublishingPublishable** result = NULL; - SpitPublishingPublishable** _tmp0_; - gint _tmp0__length1; - SpitPublishingPublishable** _tmp1_; - gint _tmp1__length1; - SpitPublishingPublishable** _tmp2_; - gint _tmp2__length1; -#line 192 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost); -#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->publishables; -#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0__length1 = self->priv->publishables_length1; -#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup19 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_); -#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1__length1 = _tmp0__length1; -#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp2_ = _tmp1_; -#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp2__length1 = _tmp1__length1; -#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - if (result_length1) { -#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - *result_length1 = _tmp2__length1; -#line 1154 "PublishingPluginHost.c" - } -#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - result = _tmp2_; -#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - return result; -#line 1160 "PublishingPluginHost.c" -} - - -static void -_spit_publishing_concrete_publishing_host_report_plugin_upload_progress_spit_publishing_progress_callback (gint file_number, - gdouble fraction_complete, - gpointer self) -{ -#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_concrete_publishing_host_report_plugin_upload_progress ((SpitPublishingConcretePublishingHost*) self, file_number, fraction_complete); -#line 1171 "PublishingPluginHost.c" -} - - -static SpitPublishingProgressCallback -spit_publishing_concrete_publishing_host_real_serialize_publishables (SpitPublishingPluginHost* base, - gint content_major_axis, - gboolean strip_metadata, - void** result_target, - GDestroyNotify* result_target_destroy_notify) -{ - SpitPublishingConcretePublishingHost * self; - SpitPublishingProgressCallback result = NULL; - PublishingUIProgressPane* progress_pane = NULL; - PublishingUIPublishingDialog* _tmp0_; - SpitPublishingDialogPane* _tmp1_; - gint i = 0; - SpitPublishingPublishable** _tmp2_; - gint _tmp2__length1; - SpitPublishingProgressCallback _tmp22_; - void* _tmp22__target; - GDestroyNotify _tmp22__target_destroy_notify; - GError * _inner_error_ = NULL; -#line 196 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost); -#line 198 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_concrete_publishing_host_install_progress_pane (self); -#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp0_ = self->priv->dialog; -#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp1_ = publishing_ui_publishing_dialog_get_active_pane (_tmp0_); -#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - progress_pane = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPane); -#line 205 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spin_event_loop (); -#line 207 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - i = 0; -#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp2_ = self->priv->publishables; -#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp2__length1 = self->priv->publishables_length1; -#line 1212 "PublishingPluginHost.c" - { - SpitPublishingPublishable** publishable_collection = NULL; - gint publishable_collection_length1 = 0; - gint _publishable_collection_size_ = 0; - gint publishable_it = 0; -#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishable_collection = _tmp2_; -#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishable_collection_length1 = _tmp2__length1; -#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - for (publishable_it = 0; publishable_it < _tmp2__length1; publishable_it = publishable_it + 1) { -#line 1224 "PublishingPluginHost.c" - SpitPublishingPublishable* _tmp3_; - SpitPublishingPublishable* publishable = NULL; -#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp3_ = _g_object_ref0 (publishable_collection[publishable_it]); -#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishable = _tmp3_; -#line 1231 "PublishingPluginHost.c" - { - gboolean _tmp4_ = FALSE; - gboolean _tmp5_; - gdouble phase_fraction_complete = 0.0; - gint _tmp15_; - SpitPublishingPublishable** _tmp16_; - gint _tmp16__length1; - gdouble fraction_complete = 0.0; - gdouble _tmp17_; - gdouble _tmp18_; - PublishingUIProgressPane* _tmp19_; - gdouble _tmp20_; - gint _tmp21_; -#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp5_ = self->priv->publishing_halted; -#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - if (_tmp5_) { -#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp4_ = TRUE; -#line 1251 "PublishingPluginHost.c" - } else { - SpitPublishingPublisher* _tmp6_; -#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp6_ = self->priv->active_publisher; -#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp4_ = !spit_publishing_publisher_is_running (_tmp6_); -#line 1258 "PublishingPluginHost.c" - } -#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - if (_tmp4_) { -#line 1262 "PublishingPluginHost.c" - SpitPublishingProgressCallback _tmp7_; - void* _tmp7__target; - GDestroyNotify _tmp7__target_destroy_notify; -#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp7_ = NULL; -#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp7__target = NULL; -#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp7__target_destroy_notify = NULL; -#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - *result_target = _tmp7__target; -#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - *result_target_destroy_notify = _tmp7__target_destroy_notify; -#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - result = _tmp7_; -#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (publishable); -#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (progress_pane); -#line 210 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - return result; -#line 1284 "PublishingPluginHost.c" - } - { - PublishingGlueMediaSourcePublishableWrapper* wrapper = NULL; - SpitPublishingPublishable* _tmp8_; - PublishingGlueMediaSourcePublishableWrapper* _tmp9_; - PublishingGlueMediaSourcePublishableWrapper* _tmp10_; - GFile* _tmp11_; - GFile* _tmp12_; -#line 213 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp8_ = publishable; -#line 213 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper)); -#line 213 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - wrapper = _tmp9_; -#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp10_ = wrapper; -#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp11_ = publishing_glue_media_source_publishable_wrapper_serialize_for_publishing (_tmp10_, content_major_axis, strip_metadata, &_inner_error_); -#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp12_ = _tmp11_; -#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (_tmp12_); -#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (wrapper); -#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 1313 "PublishingPluginHost.c" - goto __catch42_spit_publishing_publishing_error; - } -#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (wrapper); -#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (publishable); -#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (progress_pane); -#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_clear_error (&_inner_error_); -#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - return NULL; -#line 1328 "PublishingPluginHost.c" - } -#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (wrapper); -#line 1332 "PublishingPluginHost.c" - } - goto __finally42; - __catch42_spit_publishing_publishing_error: - { - GError* err = NULL; - GError* _tmp13_; - SpitPublishingProgressCallback _tmp14_; - void* _tmp14__target; - GDestroyNotify _tmp14__target_destroy_notify; -#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - err = _inner_error_; -#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _inner_error_ = NULL; -#line 217 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp13_ = err; -#line 217 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_plugin_host_post_error (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHost), _tmp13_); -#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp14_ = NULL; -#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp14__target = NULL; -#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp14__target_destroy_notify = NULL; -#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - *result_target = _tmp14__target; -#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - *result_target_destroy_notify = _tmp14__target_destroy_notify; -#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - result = _tmp14_; -#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_error_free0 (err); -#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (publishable); -#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (progress_pane); -#line 218 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - return result; -#line 1370 "PublishingPluginHost.c" - } - __finally42: -#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (publishable); -#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (progress_pane); -#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_clear_error (&_inner_error_); -#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - return NULL; -#line 1385 "PublishingPluginHost.c" - } -#line 221 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp15_ = i; -#line 221 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp16_ = self->priv->publishables; -#line 221 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp16__length1 = self->priv->publishables_length1; -#line 221 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - phase_fraction_complete = ((gdouble) (_tmp15_ + 1)) / ((gdouble) _tmp16__length1); -#line 222 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp17_ = phase_fraction_complete; -#line 222 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - fraction_complete = _tmp17_ * SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_STATUS_PREPARATION_FRACTION; -#line 224 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp18_ = fraction_complete; -#line 224 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_debug ("PublishingPluginHost.vala:224: serialize_publishables( ): fraction_com" \ -"plete = %f.", _tmp18_); -#line 226 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp19_ = progress_pane; -#line 226 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp20_ = fraction_complete; -#line 226 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - publishing_ui_progress_pane_set_status (_tmp19_, SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_PREPARE_STATUS_DESCRIPTION, _tmp20_); -#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spin_event_loop (); -#line 230 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp21_ = i; -#line 230 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - i = _tmp21_ + 1; -#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (publishable); -#line 1417 "PublishingPluginHost.c" - } - } - } -#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp22_ = _spit_publishing_concrete_publishing_host_report_plugin_upload_progress_spit_publishing_progress_callback; -#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp22__target = g_object_ref (self); -#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _tmp22__target_destroy_notify = g_object_unref; -#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - *result_target = _tmp22__target; -#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - *result_target_destroy_notify = _tmp22__target_destroy_notify; -#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - result = _tmp22_; -#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (progress_pane); -#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - return result; -#line 1437 "PublishingPluginHost.c" -} - - -static void -spit_publishing_concrete_publishing_host_class_init (SpitPublishingConcretePublishingHostClass * klass) -{ -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_concrete_publishing_host_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - g_type_class_add_private (klass, sizeof (SpitPublishingConcretePublishingHostPrivate)); -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - G_OBJECT_CLASS (klass)->finalize = spit_publishing_concrete_publishing_host_finalize; -#line 1450 "PublishingPluginHost.c" -} - - -static void -spit_publishing_concrete_publishing_host_spit_publishing_plugin_host_interface_init (SpitPublishingPluginHostIface * iface) -{ -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - spit_publishing_concrete_publishing_host_spit_publishing_plugin_host_parent_iface = g_type_interface_peek_parent (iface); -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - iface->install_dialog_pane = (void (*) (SpitPublishingPluginHost *, SpitPublishingDialogPane*, SpitPublishingPluginHostButtonMode)) spit_publishing_concrete_publishing_host_real_install_dialog_pane; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - iface->post_error = (void (*) (SpitPublishingPluginHost *, GError*)) spit_publishing_concrete_publishing_host_real_post_error; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - iface->stop_publishing = (void (*) (SpitPublishingPluginHost *)) spit_publishing_concrete_publishing_host_real_stop_publishing; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - iface->get_publisher = (SpitPublishingPublisher* (*) (SpitPublishingPluginHost *)) spit_publishing_concrete_publishing_host_real_get_publisher; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - iface->install_static_message_pane = (void (*) (SpitPublishingPluginHost *, const gchar*, SpitPublishingPluginHostButtonMode)) spit_publishing_concrete_publishing_host_real_install_static_message_pane; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - iface->install_pango_message_pane = (void (*) (SpitPublishingPluginHost *, const gchar*, SpitPublishingPluginHostButtonMode)) spit_publishing_concrete_publishing_host_real_install_pango_message_pane; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - iface->install_success_pane = (void (*) (SpitPublishingPluginHost *)) spit_publishing_concrete_publishing_host_real_install_success_pane; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - iface->install_account_fetch_wait_pane = (void (*) (SpitPublishingPluginHost *)) spit_publishing_concrete_publishing_host_real_install_account_fetch_wait_pane; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - iface->install_login_wait_pane = (void (*) (SpitPublishingPluginHost *)) spit_publishing_concrete_publishing_host_real_install_login_wait_pane; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - iface->install_welcome_pane = (void (*) (SpitPublishingPluginHost *, const gchar*, SpitPublishingLoginCallback, void*)) spit_publishing_concrete_publishing_host_real_install_welcome_pane; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - iface->set_service_locked = (void (*) (SpitPublishingPluginHost *, gboolean)) spit_publishing_concrete_publishing_host_real_set_service_locked; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - iface->set_dialog_default_widget = (void (*) (SpitPublishingPluginHost *, GtkWidget*)) spit_publishing_concrete_publishing_host_real_set_dialog_default_widget; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - iface->get_publishable_media_type = (SpitPublishingPublisherMediaType (*) (SpitPublishingPluginHost *)) spit_publishing_concrete_publishing_host_real_get_publishable_media_type; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - iface->get_publishables = (SpitPublishingPublishable** (*) (SpitPublishingPluginHost *, int*)) spit_publishing_concrete_publishing_host_real_get_publishables; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - iface->serialize_publishables = (SpitPublishingProgressCallback (*) (SpitPublishingPluginHost *, gint, gboolean, void**, GDestroyNotify*)) spit_publishing_concrete_publishing_host_real_serialize_publishables; -#line 1489 "PublishingPluginHost.c" -} - - -static void -spit_publishing_concrete_publishing_host_instance_init (SpitPublishingConcretePublishingHost * self) -{ -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv = SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_GET_PRIVATE (self); -#line 16 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->dialog = NULL; -#line 17 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->active_publisher = NULL; -#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->publishables = NULL; -#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->publishables_length1 = 0; -#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->_publishables_size_ = self->priv->publishables_length1; -#line 19 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->current_login_callback = NULL; -#line 19 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->current_login_callback_target = self; -#line 20 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->publishing_halted = FALSE; -#line 21 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->media_type = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_NONE; -#line 1516 "PublishingPluginHost.c" -} - - -static void -spit_publishing_concrete_publishing_host_finalize (GObject * obj) -{ - SpitPublishingConcretePublishingHost * self; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost); -#line 17 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - _g_object_unref0 (self->priv->active_publisher); -#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingPluginHost.vala" - G_OBJECT_CLASS (spit_publishing_concrete_publishing_host_parent_class)->finalize (obj); -#line 1532 "PublishingPluginHost.c" -} - - -GType -spit_publishing_concrete_publishing_host_get_type (void) -{ - static volatile gsize spit_publishing_concrete_publishing_host_type_id__volatile = 0; - if (g_once_init_enter (&spit_publishing_concrete_publishing_host_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SpitPublishingConcretePublishingHostClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) spit_publishing_concrete_publishing_host_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SpitPublishingConcretePublishingHost), 0, (GInstanceInitFunc) spit_publishing_concrete_publishing_host_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_plugin_host_info = { (GInterfaceInitFunc) spit_publishing_concrete_publishing_host_spit_publishing_plugin_host_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType spit_publishing_concrete_publishing_host_type_id; - spit_publishing_concrete_publishing_host_type_id = g_type_register_static (PLUGINS_TYPE_STANDARD_HOST_INTERFACE, "SpitPublishingConcretePublishingHost", &g_define_type_info, 0); - g_type_add_interface_static (spit_publishing_concrete_publishing_host_type_id, SPIT_PUBLISHING_TYPE_PLUGIN_HOST, &spit_publishing_plugin_host_info); - g_once_init_leave (&spit_publishing_concrete_publishing_host_type_id__volatile, spit_publishing_concrete_publishing_host_type_id); - } - return spit_publishing_concrete_publishing_host_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/publishing/PublishingUI.c b/src/publishing/PublishingUI.c deleted file mode 100644 index 218b1ff..0000000 --- a/src/publishing/PublishingUI.c +++ /dev/null @@ -1,3669 +0,0 @@ -/* PublishingUI.c generated by valac 0.40.4, the Vala compiler - * generated from PublishingUI.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE (publishing_ui_concrete_dialog_pane_get_type ()) -#define PUBLISHING_UI_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)) -#define PUBLISHING_UI_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPaneClass)) -#define PUBLISHING_UI_IS_CONCRETE_DIALOG_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE)) -#define PUBLISHING_UI_IS_CONCRETE_DIALOG_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE)) -#define PUBLISHING_UI_CONCRETE_DIALOG_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPaneClass)) - -typedef struct _PublishingUIConcreteDialogPane PublishingUIConcreteDialogPane; -typedef struct _PublishingUIConcreteDialogPaneClass PublishingUIConcreteDialogPaneClass; -typedef struct _PublishingUIConcreteDialogPanePrivate PublishingUIConcreteDialogPanePrivate; -enum { - PUBLISHING_UI_CONCRETE_DIALOG_PANE_0_PROPERTY, - PUBLISHING_UI_CONCRETE_DIALOG_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_ui_concrete_dialog_pane_properties[PUBLISHING_UI_CONCRETE_DIALOG_PANE_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE (publishing_ui_static_message_pane_get_type ()) -#define PUBLISHING_UI_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, PublishingUIStaticMessagePane)) -#define PUBLISHING_UI_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, PublishingUIStaticMessagePaneClass)) -#define PUBLISHING_UI_IS_STATIC_MESSAGE_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE)) -#define PUBLISHING_UI_IS_STATIC_MESSAGE_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE)) -#define PUBLISHING_UI_STATIC_MESSAGE_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, PublishingUIStaticMessagePaneClass)) - -typedef struct _PublishingUIStaticMessagePane PublishingUIStaticMessagePane; -typedef struct _PublishingUIStaticMessagePaneClass PublishingUIStaticMessagePaneClass; -typedef struct _PublishingUIStaticMessagePanePrivate PublishingUIStaticMessagePanePrivate; -enum { - PUBLISHING_UI_STATIC_MESSAGE_PANE_0_PROPERTY, - PUBLISHING_UI_STATIC_MESSAGE_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_ui_static_message_pane_properties[PUBLISHING_UI_STATIC_MESSAGE_PANE_NUM_PROPERTIES]; - -#define PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE (publishing_ui_login_welcome_pane_get_type ()) -#define PUBLISHING_UI_LOGIN_WELCOME_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, PublishingUILoginWelcomePane)) -#define PUBLISHING_UI_LOGIN_WELCOME_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, PublishingUILoginWelcomePaneClass)) -#define PUBLISHING_UI_IS_LOGIN_WELCOME_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE)) -#define PUBLISHING_UI_IS_LOGIN_WELCOME_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE)) -#define PUBLISHING_UI_LOGIN_WELCOME_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, PublishingUILoginWelcomePaneClass)) - -typedef struct _PublishingUILoginWelcomePane PublishingUILoginWelcomePane; -typedef struct _PublishingUILoginWelcomePaneClass PublishingUILoginWelcomePaneClass; -typedef struct _PublishingUILoginWelcomePanePrivate PublishingUILoginWelcomePanePrivate; -enum { - PUBLISHING_UI_LOGIN_WELCOME_PANE_0_PROPERTY, - PUBLISHING_UI_LOGIN_WELCOME_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_ui_login_welcome_pane_properties[PUBLISHING_UI_LOGIN_WELCOME_PANE_NUM_PROPERTIES]; -enum { - PUBLISHING_UI_LOGIN_WELCOME_PANE_LOGIN_REQUESTED_SIGNAL, - PUBLISHING_UI_LOGIN_WELCOME_PANE_NUM_SIGNALS -}; -static guint publishing_ui_login_welcome_pane_signals[PUBLISHING_UI_LOGIN_WELCOME_PANE_NUM_SIGNALS] = {0}; - -#define PUBLISHING_UI_TYPE_PROGRESS_PANE (publishing_ui_progress_pane_get_type ()) -#define PUBLISHING_UI_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPane)) -#define PUBLISHING_UI_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPaneClass)) -#define PUBLISHING_UI_IS_PROGRESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_PROGRESS_PANE)) -#define PUBLISHING_UI_IS_PROGRESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_PROGRESS_PANE)) -#define PUBLISHING_UI_PROGRESS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPaneClass)) - -typedef struct _PublishingUIProgressPane PublishingUIProgressPane; -typedef struct _PublishingUIProgressPaneClass PublishingUIProgressPaneClass; -typedef struct _PublishingUIProgressPanePrivate PublishingUIProgressPanePrivate; -enum { - PUBLISHING_UI_PROGRESS_PANE_0_PROPERTY, - PUBLISHING_UI_PROGRESS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_ui_progress_pane_properties[PUBLISHING_UI_PROGRESS_PANE_NUM_PROPERTIES]; - -#define PUBLISHING_UI_TYPE_SUCCESS_PANE (publishing_ui_success_pane_get_type ()) -#define PUBLISHING_UI_SUCCESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_SUCCESS_PANE, PublishingUISuccessPane)) -#define PUBLISHING_UI_SUCCESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_SUCCESS_PANE, PublishingUISuccessPaneClass)) -#define PUBLISHING_UI_IS_SUCCESS_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_SUCCESS_PANE)) -#define PUBLISHING_UI_IS_SUCCESS_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_SUCCESS_PANE)) -#define PUBLISHING_UI_SUCCESS_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_SUCCESS_PANE, PublishingUISuccessPaneClass)) - -typedef struct _PublishingUISuccessPane PublishingUISuccessPane; -typedef struct _PublishingUISuccessPaneClass PublishingUISuccessPaneClass; -typedef struct _PublishingUISuccessPanePrivate PublishingUISuccessPanePrivate; -enum { - PUBLISHING_UI_SUCCESS_PANE_0_PROPERTY, - PUBLISHING_UI_SUCCESS_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_ui_success_pane_properties[PUBLISHING_UI_SUCCESS_PANE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE (publishing_ui_account_fetch_wait_pane_get_type ()) -#define PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE, PublishingUIAccountFetchWaitPane)) -#define PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE, PublishingUIAccountFetchWaitPaneClass)) -#define PUBLISHING_UI_IS_ACCOUNT_FETCH_WAIT_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE)) -#define PUBLISHING_UI_IS_ACCOUNT_FETCH_WAIT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE)) -#define PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE, PublishingUIAccountFetchWaitPaneClass)) - -typedef struct _PublishingUIAccountFetchWaitPane PublishingUIAccountFetchWaitPane; -typedef struct _PublishingUIAccountFetchWaitPaneClass PublishingUIAccountFetchWaitPaneClass; -typedef struct _PublishingUIAccountFetchWaitPanePrivate PublishingUIAccountFetchWaitPanePrivate; -enum { - PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE_0_PROPERTY, - PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_ui_account_fetch_wait_pane_properties[PUBLISHING_UI_ACCOUNT_FETCH_WAIT_PANE_NUM_PROPERTIES]; - -#define PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE (publishing_ui_login_wait_pane_get_type ()) -#define PUBLISHING_UI_LOGIN_WAIT_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE, PublishingUILoginWaitPane)) -#define PUBLISHING_UI_LOGIN_WAIT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE, PublishingUILoginWaitPaneClass)) -#define PUBLISHING_UI_IS_LOGIN_WAIT_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE)) -#define PUBLISHING_UI_IS_LOGIN_WAIT_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE)) -#define PUBLISHING_UI_LOGIN_WAIT_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE, PublishingUILoginWaitPaneClass)) - -typedef struct _PublishingUILoginWaitPane PublishingUILoginWaitPane; -typedef struct _PublishingUILoginWaitPaneClass PublishingUILoginWaitPaneClass; -typedef struct _PublishingUILoginWaitPanePrivate PublishingUILoginWaitPanePrivate; -enum { - PUBLISHING_UI_LOGIN_WAIT_PANE_0_PROPERTY, - PUBLISHING_UI_LOGIN_WAIT_PANE_NUM_PROPERTIES -}; -static GParamSpec* publishing_ui_login_wait_pane_properties[PUBLISHING_UI_LOGIN_WAIT_PANE_NUM_PROPERTIES]; - -#define PUBLISHING_UI_TYPE_PUBLISHING_DIALOG (publishing_ui_publishing_dialog_get_type ()) -#define PUBLISHING_UI_PUBLISHING_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, PublishingUIPublishingDialog)) -#define PUBLISHING_UI_PUBLISHING_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, PublishingUIPublishingDialogClass)) -#define PUBLISHING_UI_IS_PUBLISHING_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG)) -#define PUBLISHING_UI_IS_PUBLISHING_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG)) -#define PUBLISHING_UI_PUBLISHING_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, PublishingUIPublishingDialogClass)) - -typedef struct _PublishingUIPublishingDialog PublishingUIPublishingDialog; -typedef struct _PublishingUIPublishingDialogClass PublishingUIPublishingDialogClass; -typedef struct _PublishingUIPublishingDialogPrivate PublishingUIPublishingDialogPrivate; - -#define PLUGINS_TYPE_STANDARD_HOST_INTERFACE (plugins_standard_host_interface_get_type ()) -#define PLUGINS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface)) -#define PLUGINS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass)) -#define PLUGINS_IS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE)) -#define PLUGINS_IS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE)) -#define PLUGINS_STANDARD_HOST_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass)) - -typedef struct _PluginsStandardHostInterface PluginsStandardHostInterface; -typedef struct _PluginsStandardHostInterfaceClass PluginsStandardHostInterfaceClass; - -#define SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST (spit_publishing_concrete_publishing_host_get_type ()) -#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHost)) -#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHostClass)) -#define SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST)) -#define SPIT_PUBLISHING_IS_CONCRETE_PUBLISHING_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST)) -#define SPIT_PUBLISHING_CONCRETE_PUBLISHING_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SPIT_PUBLISHING_TYPE_CONCRETE_PUBLISHING_HOST, SpitPublishingConcretePublishingHostClass)) - -typedef struct _SpitPublishingConcretePublishingHost SpitPublishingConcretePublishingHost; -typedef struct _SpitPublishingConcretePublishingHostClass SpitPublishingConcretePublishingHostClass; -enum { - PUBLISHING_UI_PUBLISHING_DIALOG_0_PROPERTY, - PUBLISHING_UI_PUBLISHING_DIALOG_NUM_PROPERTIES -}; -static GParamSpec* publishing_ui_publishing_dialog_properties[PUBLISHING_UI_PUBLISHING_DIALOG_NUM_PROPERTIES]; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER (publishing_glue_media_source_publishable_wrapper_get_type ()) -#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapper)) -#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapperClass)) -#define PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER)) -#define PUBLISHING_GLUE_IS_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER)) -#define PUBLISHING_GLUE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PUBLISHING_GLUE_TYPE_MEDIA_SOURCE_PUBLISHABLE_WRAPPER, PublishingGlueMediaSourcePublishableWrapperClass)) - -typedef struct _PublishingGlueMediaSourcePublishableWrapper PublishingGlueMediaSourcePublishableWrapper; -typedef struct _PublishingGlueMediaSourcePublishableWrapperClass PublishingGlueMediaSourcePublishableWrapperClass; - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL))) - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_LIBRARY_PHOTO (library_photo_get_type ()) -#define LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_PHOTO, LibraryPhoto)) -#define LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) -#define IS_LIBRARY_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_PHOTO)) -#define IS_LIBRARY_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_PHOTO)) -#define LIBRARY_PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_PHOTO, LibraryPhotoClass)) - -typedef struct _LibraryPhoto LibraryPhoto; -typedef struct _LibraryPhotoClass LibraryPhotoClass; - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_VIDEO (video_get_type ()) -#define VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO, Video)) -#define VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO, VideoClass)) -#define IS_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO)) -#define IS_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO)) -#define VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO, VideoClass)) - -typedef struct _Video Video; -typedef struct _VideoClass VideoClass; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _PublishingUIConcreteDialogPane { - GObject parent_instance; - PublishingUIConcreteDialogPanePrivate * priv; - GtkBox* pane_widget; - GtkBuilder* builder; -}; - -struct _PublishingUIConcreteDialogPaneClass { - GObjectClass parent_class; -}; - -struct _PublishingUIStaticMessagePane { - PublishingUIConcreteDialogPane parent_instance; - PublishingUIStaticMessagePanePrivate * priv; -}; - -struct _PublishingUIStaticMessagePaneClass { - PublishingUIConcreteDialogPaneClass parent_class; -}; - -struct _PublishingUIStaticMessagePanePrivate { - GtkLabel* msg_label; -}; - -struct _PublishingUILoginWelcomePane { - PublishingUIConcreteDialogPane parent_instance; - PublishingUILoginWelcomePanePrivate * priv; -}; - -struct _PublishingUILoginWelcomePaneClass { - PublishingUIConcreteDialogPaneClass parent_class; -}; - -struct _PublishingUILoginWelcomePanePrivate { - GtkButton* login_button; - GtkLabel* not_logged_in_label; -}; - -struct _PublishingUIProgressPane { - PublishingUIConcreteDialogPane parent_instance; - PublishingUIProgressPanePrivate * priv; -}; - -struct _PublishingUIProgressPaneClass { - PublishingUIConcreteDialogPaneClass parent_class; -}; - -struct _PublishingUIProgressPanePrivate { - GtkProgressBar* progress_bar; -}; - -struct _PublishingUISuccessPane { - PublishingUIStaticMessagePane parent_instance; - PublishingUISuccessPanePrivate * priv; -}; - -struct _PublishingUISuccessPaneClass { - PublishingUIStaticMessagePaneClass parent_class; -}; - -struct _PublishingUIAccountFetchWaitPane { - PublishingUIStaticMessagePane parent_instance; - PublishingUIAccountFetchWaitPanePrivate * priv; -}; - -struct _PublishingUIAccountFetchWaitPaneClass { - PublishingUIStaticMessagePaneClass parent_class; -}; - -struct _PublishingUILoginWaitPane { - PublishingUIStaticMessagePane parent_instance; - PublishingUILoginWaitPanePrivate * priv; -}; - -struct _PublishingUILoginWaitPaneClass { - PublishingUIStaticMessagePaneClass parent_class; -}; - -struct _PublishingUIPublishingDialog { - GtkDialog parent_instance; - PublishingUIPublishingDialogPrivate * priv; -}; - -struct _PublishingUIPublishingDialogClass { - GtkDialogClass parent_class; -}; - -struct _PublishingUIPublishingDialogPrivate { - GtkListStore* service_selector_box_model; - GtkComboBox* service_selector_box; - GtkBox* central_area_layouter; - GtkButton* close_cancel_button; - SpitPublishingDialogPane* active_pane; - SpitPublishingPublishable** publishables; - gint publishables_length1; - gint _publishables_size_; - SpitPublishingConcretePublishingHost* host; - SpitPluggableInfo info; -}; - - -static gpointer publishing_ui_concrete_dialog_pane_parent_class = NULL; -static SpitPublishingDialogPaneIface * publishing_ui_concrete_dialog_pane_spit_publishing_dialog_pane_parent_iface = NULL; -static gpointer publishing_ui_static_message_pane_parent_class = NULL; -static gpointer publishing_ui_login_welcome_pane_parent_class = NULL; -static gpointer publishing_ui_progress_pane_parent_class = NULL; -static gpointer publishing_ui_success_pane_parent_class = NULL; -static gpointer publishing_ui_account_fetch_wait_pane_parent_class = NULL; -static gpointer publishing_ui_login_wait_pane_parent_class = NULL; -static gpointer publishing_ui_publishing_dialog_parent_class = NULL; -static PublishingUIPublishingDialog* publishing_ui_publishing_dialog_active_instance; -static PublishingUIPublishingDialog* publishing_ui_publishing_dialog_active_instance = NULL; -static GTimer* publishing_ui_publishing_dialog_since_last_start; -static GTimer* publishing_ui_publishing_dialog_since_last_start = NULL; -static gboolean publishing_ui_publishing_dialog_elapsed_is_valid; -static gboolean publishing_ui_publishing_dialog_elapsed_is_valid = FALSE; - -GType publishing_ui_concrete_dialog_pane_get_type (void) G_GNUC_CONST; -PublishingUIConcreteDialogPane* publishing_ui_concrete_dialog_pane_new (void); -PublishingUIConcreteDialogPane* publishing_ui_concrete_dialog_pane_construct (GType object_type); -GtkBuilder* app_window_create_builder (const gchar* glade_filename, - void* user); -static GtkWidget* publishing_ui_concrete_dialog_pane_real_get_widget (SpitPublishingDialogPane* base); -static SpitPublishingDialogPaneGeometryOptions publishing_ui_concrete_dialog_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base); -static void publishing_ui_concrete_dialog_pane_real_on_pane_installed (SpitPublishingDialogPane* base); -static void publishing_ui_concrete_dialog_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base); -static void publishing_ui_concrete_dialog_pane_finalize (GObject * obj); -GType publishing_ui_static_message_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_UI_STATIC_MESSAGE_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, PublishingUIStaticMessagePanePrivate)) -PublishingUIStaticMessagePane* publishing_ui_static_message_pane_new (const gchar* message_string, - gboolean enable_markup); -PublishingUIStaticMessagePane* publishing_ui_static_message_pane_construct (GType object_type, - const gchar* message_string, - gboolean enable_markup); -static void publishing_ui_static_message_pane_finalize (GObject * obj); -GType publishing_ui_login_welcome_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_UI_LOGIN_WELCOME_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, PublishingUILoginWelcomePanePrivate)) -PublishingUILoginWelcomePane* publishing_ui_login_welcome_pane_new (const gchar* service_welcome_message); -PublishingUILoginWelcomePane* publishing_ui_login_welcome_pane_construct (GType object_type, - const gchar* service_welcome_message); -static void publishing_ui_login_welcome_pane_on_login_clicked (PublishingUILoginWelcomePane* self); -static void _publishing_ui_login_welcome_pane_on_login_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_ui_login_welcome_pane_finalize (GObject * obj); -GType publishing_ui_progress_pane_get_type (void) G_GNUC_CONST; -#define PUBLISHING_UI_PROGRESS_PANE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPanePrivate)) -PublishingUIProgressPane* publishing_ui_progress_pane_new (void); -PublishingUIProgressPane* publishing_ui_progress_pane_construct (GType object_type); -void publishing_ui_progress_pane_set_text (PublishingUIProgressPane* self, - const gchar* text); -void publishing_ui_progress_pane_set_progress (PublishingUIProgressPane* self, - gdouble progress); -void publishing_ui_progress_pane_set_status (PublishingUIProgressPane* self, - const gchar* status_text, - gdouble progress); -static void publishing_ui_progress_pane_finalize (GObject * obj); -GType publishing_ui_success_pane_get_type (void) G_GNUC_CONST; -PublishingUISuccessPane* publishing_ui_success_pane_new (SpitPublishingPublisherMediaType published_media, - gint num_uploaded); -PublishingUISuccessPane* publishing_ui_success_pane_construct (GType object_type, - SpitPublishingPublisherMediaType published_media, - gint num_uploaded); -GType publishing_ui_account_fetch_wait_pane_get_type (void) G_GNUC_CONST; -PublishingUIAccountFetchWaitPane* publishing_ui_account_fetch_wait_pane_new (void); -PublishingUIAccountFetchWaitPane* publishing_ui_account_fetch_wait_pane_construct (GType object_type); -GType publishing_ui_login_wait_pane_get_type (void) G_GNUC_CONST; -PublishingUILoginWaitPane* publishing_ui_login_wait_pane_new (void); -PublishingUILoginWaitPane* publishing_ui_login_wait_pane_construct (GType object_type); -GType publishing_ui_publishing_dialog_get_type (void) G_GNUC_CONST; -GType plugins_standard_host_interface_get_type (void) G_GNUC_CONST; -GType spit_publishing_concrete_publishing_host_get_type (void) G_GNUC_CONST; -#define PUBLISHING_UI_PUBLISHING_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, PublishingUIPublishingDialogPrivate)) -#define PUBLISHING_UI_PUBLISHING_DIALOG_LARGE_WINDOW_WIDTH 860 -#define PUBLISHING_UI_PUBLISHING_DIALOG_LARGE_WINDOW_HEIGHT 688 -#define PUBLISHING_UI_PUBLISHING_DIALOG_COLOSSAL_WINDOW_WIDTH 1024 -#define PUBLISHING_UI_PUBLISHING_DIALOG_COLOSSAL_WINDOW_HEIGHT 688 -#define PUBLISHING_UI_PUBLISHING_DIALOG_STANDARD_WINDOW_WIDTH 632 -#define PUBLISHING_UI_PUBLISHING_DIALOG_STANDARD_WINDOW_HEIGHT 540 -#define PUBLISHING_UI_PUBLISHING_DIALOG_BORDER_REGION_WIDTH 16 -#define PUBLISHING_UI_PUBLISHING_DIALOG_BORDER_REGION_HEIGHT 100 -#define PUBLISHING_UI_PUBLISHING_DIALOG_STANDARD_CONTENT_LABEL_WIDTH 500 -#define PUBLISHING_UI_PUBLISHING_DIALOG_STANDARD_ACTION_BUTTON_WIDTH 128 -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -PublishingUIPublishingDialog* publishing_ui_publishing_dialog_new (GeeCollection* to_publish); -PublishingUIPublishingDialog* publishing_ui_publishing_dialog_construct (GType object_type, - GeeCollection* to_publish); -gint resources_use_header_bar (void); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -static gboolean publishing_ui_publishing_dialog_on_window_close (PublishingUIPublishingDialog* self, - GdkEventAny* evt); -static gboolean _publishing_ui_publishing_dialog_on_window_close_gtk_widget_delete_event (GtkWidget* _sender, - GdkEventAny* event, - gpointer self); -PublishingGlueMediaSourcePublishableWrapper* publishing_glue_media_source_publishable_wrapper_new (MediaSource* to_wrap); -PublishingGlueMediaSourcePublishableWrapper* publishing_glue_media_source_publishable_wrapper_construct (GType object_type, - MediaSource* to_wrap); -GType publishing_glue_media_source_publishable_wrapper_get_type (void) G_GNUC_CONST; -static void _vala_array_add58 (SpitPublishingPublishable** * array, - int* length, - int* size, - SpitPublishingPublishable* value); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gchar* configuration_facade_get_last_used_service (ConfigurationFacade* self); -static SpitPublishingService** publishing_ui_publishing_dialog_load_services (gboolean has_photos, - gboolean has_videos, - int* result_length1); -GdkPixbuf* resources_get_icon (const gchar* name, - gint scale); -#define RESOURCES_ICON_GENERIC_PLUGIN "generic-plugin.png" -#define RESOURCES_DEFAULT_ICON_SCALE 24 -static void publishing_ui_publishing_dialog_on_service_changed (PublishingUIPublishingDialog* self); -static void _publishing_ui_publishing_dialog_on_service_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void publishing_ui_publishing_dialog_on_close_cancel_clicked (PublishingUIPublishingDialog* self); -static void _publishing_ui_publishing_dialog_on_close_cancel_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void publishing_ui_publishing_dialog_set_standard_window_mode (PublishingUIPublishingDialog* self); -static SpitPublishingService** publishing_ui_publishing_dialog_load_all_services (int* result_length1); -GeeCollection* plugins_get_pluggables_for_type (GType type, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify, - gboolean include_disabled); -gchar* plugins_get_pluggable_module_id (SpitPluggable* needle); -static void _vala_array_add59 (SpitPublishingService** * array, - int* length, - int* size, - SpitPublishingService* value); -static gint __lambda16_ (void* a, - void* b); -gint utf8_cs_compare (void* a, - void* b); -static gint ___lambda16____compar_fn_t (void* key1, - void* key2); -static void _vala_array_add60 (SpitPublishingService** * array, - int* length, - int* size, - SpitPublishingService* value); -static void _vala_array_add61 (SpitPublishingService** * array, - int* length, - int* size, - SpitPublishingService* value); -static void _vala_array_add62 (SpitPublishingService** * array, - int* length, - int* size, - SpitPublishingService* value); -void publishing_ui_publishing_dialog_go (GeeCollection* to_publish); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -GType library_photo_get_type (void) G_GNUC_CONST; -GType video_source_get_type (void) G_GNUC_CONST; -GType video_get_type (void) G_GNUC_CONST; -void media_source_collection_filter_media (GeeCollection* media, - GeeCollection* photos, - GeeCollection* videos); -void app_window_error_message_with_title (const gchar* title, - const gchar* message, - GtkWindow* parent, - gboolean should_escape); -gint publishing_ui_publishing_dialog_run (PublishingUIPublishingDialog* self); -void configuration_facade_set_last_used_service (ConfigurationFacade* self, - const gchar* service_name); -SpitPublishingConcretePublishingHost* spit_publishing_concrete_publishing_host_new (SpitPublishingService* service, - PublishingUIPublishingDialog* dialog, - SpitPublishingPublishable** publishables, - int publishables_length1); -SpitPublishingConcretePublishingHost* spit_publishing_concrete_publishing_host_construct (GType object_type, - SpitPublishingService* service, - PublishingUIPublishingDialog* dialog, - SpitPublishingPublishable** publishables, - int publishables_length1); -void spit_publishing_concrete_publishing_host_start_publishing (SpitPublishingConcretePublishingHost* self); -static void publishing_ui_publishing_dialog_set_large_window_mode (PublishingUIPublishingDialog* self); -static void publishing_ui_publishing_dialog_set_colossal_window_mode (PublishingUIPublishingDialog* self); -static void publishing_ui_publishing_dialog_set_free_sizable_window_mode (PublishingUIPublishingDialog* self); -static void publishing_ui_publishing_dialog_clear_free_sizable_window_mode (PublishingUIPublishingDialog* self); -SpitPublishingDialogPane* publishing_ui_publishing_dialog_get_active_pane (PublishingUIPublishingDialog* self); -void publishing_ui_publishing_dialog_set_close_button_mode (PublishingUIPublishingDialog* self); -void publishing_ui_publishing_dialog_set_cancel_button_mode (PublishingUIPublishingDialog* self); -void publishing_ui_publishing_dialog_lock_service (PublishingUIPublishingDialog* self); -void publishing_ui_publishing_dialog_unlock_service (PublishingUIPublishingDialog* self); -void publishing_ui_publishing_dialog_install_pane (PublishingUIPublishingDialog* self, - SpitPublishingDialogPane* pane); -static void publishing_ui_publishing_dialog_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -PublishingUIConcreteDialogPane* -publishing_ui_concrete_dialog_pane_construct (GType object_type) -{ - PublishingUIConcreteDialogPane * self = NULL; - GtkBuilder* _tmp0_; -#line 13 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self = (PublishingUIConcreteDialogPane*) g_object_new (object_type, NULL); -#line 14 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = app_window_create_builder ("shotwell.ui", NULL); -#line 14 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->builder); -#line 14 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->builder = _tmp0_; -#line 13 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return self; -#line 640 "PublishingUI.c" -} - - -PublishingUIConcreteDialogPane* -publishing_ui_concrete_dialog_pane_new (void) -{ -#line 13 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return publishing_ui_concrete_dialog_pane_construct (PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE); -#line 649 "PublishingUI.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return self ? g_object_ref (self) : NULL; -#line 658 "PublishingUI.c" -} - - -static GtkWidget* -publishing_ui_concrete_dialog_pane_real_get_widget (SpitPublishingDialogPane* base) -{ - PublishingUIConcreteDialogPane * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 17 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane); -#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = self->pane_widget; -#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - result = _tmp1_; -#line 18 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return result; -#line 679 "PublishingUI.c" -} - - -static SpitPublishingDialogPaneGeometryOptions -publishing_ui_concrete_dialog_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) -{ - PublishingUIConcreteDialogPane * self; - SpitPublishingDialogPaneGeometryOptions result = 0; -#line 21 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane); -#line 22 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; -#line 22 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return result; -#line 694 "PublishingUI.c" -} - - -static void -publishing_ui_concrete_dialog_pane_real_on_pane_installed (SpitPublishingDialogPane* base) -{ - PublishingUIConcreteDialogPane * self; -#line 25 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane); -#line 704 "PublishingUI.c" -} - - -static void -publishing_ui_concrete_dialog_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) -{ - PublishingUIConcreteDialogPane * self; -#line 28 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane); -#line 714 "PublishingUI.c" -} - - -static void -publishing_ui_concrete_dialog_pane_class_init (PublishingUIConcreteDialogPaneClass * klass) -{ -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_concrete_dialog_pane_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_ui_concrete_dialog_pane_finalize; -#line 725 "PublishingUI.c" -} - - -static void -publishing_ui_concrete_dialog_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) -{ -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_concrete_dialog_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_ui_concrete_dialog_pane_real_get_widget; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_ui_concrete_dialog_pane_real_get_preferred_geometry; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_ui_concrete_dialog_pane_real_on_pane_installed; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_ui_concrete_dialog_pane_real_on_pane_uninstalled; -#line 742 "PublishingUI.c" -} - - -static void -publishing_ui_concrete_dialog_pane_instance_init (PublishingUIConcreteDialogPane * self) -{ -#line 10 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->pane_widget = NULL; -#line 11 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->builder = NULL; -#line 753 "PublishingUI.c" -} - - -static void -publishing_ui_concrete_dialog_pane_finalize (GObject * obj) -{ - PublishingUIConcreteDialogPane * self; -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane); -#line 10 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->pane_widget); -#line 11 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->builder); -#line 9 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - G_OBJECT_CLASS (publishing_ui_concrete_dialog_pane_parent_class)->finalize (obj); -#line 769 "PublishingUI.c" -} - - -GType -publishing_ui_concrete_dialog_pane_get_type (void) -{ - static volatile gsize publishing_ui_concrete_dialog_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_ui_concrete_dialog_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingUIConcreteDialogPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_ui_concrete_dialog_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingUIConcreteDialogPane), 0, (GInstanceInitFunc) publishing_ui_concrete_dialog_pane_instance_init, NULL }; - static const GInterfaceInfo spit_publishing_dialog_pane_info = { (GInterfaceInitFunc) publishing_ui_concrete_dialog_pane_spit_publishing_dialog_pane_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType publishing_ui_concrete_dialog_pane_type_id; - publishing_ui_concrete_dialog_pane_type_id = g_type_register_static (G_TYPE_OBJECT, "PublishingUIConcreteDialogPane", &g_define_type_info, 0); - g_type_add_interface_static (publishing_ui_concrete_dialog_pane_type_id, SPIT_PUBLISHING_TYPE_DIALOG_PANE, &spit_publishing_dialog_pane_info); - g_once_init_leave (&publishing_ui_concrete_dialog_pane_type_id__volatile, publishing_ui_concrete_dialog_pane_type_id); - } - return publishing_ui_concrete_dialog_pane_type_id__volatile; -} - - -PublishingUIStaticMessagePane* -publishing_ui_static_message_pane_construct (GType object_type, - const gchar* message_string, - gboolean enable_markup) -{ - PublishingUIStaticMessagePane * self = NULL; - GtkBuilder* _tmp0_; - GObject* _tmp1_; - GtkLabel* _tmp2_; - GtkBuilder* _tmp3_; - GObject* _tmp4_; - GtkBox* _tmp5_; -#line 35 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_val_if_fail (message_string != NULL, NULL); -#line 36 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self = (PublishingUIStaticMessagePane*) publishing_ui_concrete_dialog_pane_construct (object_type); -#line 37 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->builder; -#line 37 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp1_ = gtk_builder_get_object (_tmp0_, "static_msg_label"); -#line 37 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp1_) : NULL); -#line 37 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->msg_label); -#line 37 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->msg_label = _tmp2_; -#line 38 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->builder; -#line 38 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp4_ = gtk_builder_get_object (_tmp3_, "static_msg_pane_widget"); -#line 38 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gtk_box_get_type ()) ? ((GtkBox*) _tmp4_) : NULL); -#line 38 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->pane_widget); -#line 38 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->pane_widget = _tmp5_; -#line 40 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (enable_markup) { -#line 827 "PublishingUI.c" - GtkLabel* _tmp6_; - GtkLabel* _tmp7_; - GtkLabel* _tmp8_; -#line 41 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp6_ = self->priv->msg_label; -#line 41 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_label_set_markup (_tmp6_, message_string); -#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp7_ = self->priv->msg_label; -#line 42 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_label_set_line_wrap (_tmp7_, TRUE); -#line 43 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp8_ = self->priv->msg_label; -#line 43 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_label_set_use_markup (_tmp8_, TRUE); -#line 843 "PublishingUI.c" - } else { - GtkLabel* _tmp9_; -#line 45 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp9_ = self->priv->msg_label; -#line 45 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_label_set_label (_tmp9_, message_string); -#line 850 "PublishingUI.c" - } -#line 35 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return self; -#line 854 "PublishingUI.c" -} - - -PublishingUIStaticMessagePane* -publishing_ui_static_message_pane_new (const gchar* message_string, - gboolean enable_markup) -{ -#line 35 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return publishing_ui_static_message_pane_construct (PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, message_string, enable_markup); -#line 864 "PublishingUI.c" -} - - -static void -publishing_ui_static_message_pane_class_init (PublishingUIStaticMessagePaneClass * klass) -{ -#line 32 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_static_message_pane_parent_class = g_type_class_peek_parent (klass); -#line 32 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_type_class_add_private (klass, sizeof (PublishingUIStaticMessagePanePrivate)); -#line 32 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_ui_static_message_pane_finalize; -#line 877 "PublishingUI.c" -} - - -static void -publishing_ui_static_message_pane_instance_init (PublishingUIStaticMessagePane * self) -{ -#line 32 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv = PUBLISHING_UI_STATIC_MESSAGE_PANE_GET_PRIVATE (self); -#line 33 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->msg_label = NULL; -#line 888 "PublishingUI.c" -} - - -static void -publishing_ui_static_message_pane_finalize (GObject * obj) -{ - PublishingUIStaticMessagePane * self; -#line 32 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, PublishingUIStaticMessagePane); -#line 33 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->msg_label); -#line 32 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - G_OBJECT_CLASS (publishing_ui_static_message_pane_parent_class)->finalize (obj); -#line 902 "PublishingUI.c" -} - - -GType -publishing_ui_static_message_pane_get_type (void) -{ - static volatile gsize publishing_ui_static_message_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_ui_static_message_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingUIStaticMessagePaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_ui_static_message_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingUIStaticMessagePane), 0, (GInstanceInitFunc) publishing_ui_static_message_pane_instance_init, NULL }; - GType publishing_ui_static_message_pane_type_id; - publishing_ui_static_message_pane_type_id = g_type_register_static (PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, "PublishingUIStaticMessagePane", &g_define_type_info, 0); - g_once_init_leave (&publishing_ui_static_message_pane_type_id__volatile, publishing_ui_static_message_pane_type_id); - } - return publishing_ui_static_message_pane_type_id__volatile; -} - - -static void -_publishing_ui_login_welcome_pane_on_login_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 62 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_login_welcome_pane_on_login_clicked ((PublishingUILoginWelcomePane*) self); -#line 926 "PublishingUI.c" -} - - -PublishingUILoginWelcomePane* -publishing_ui_login_welcome_pane_construct (GType object_type, - const gchar* service_welcome_message) -{ - PublishingUILoginWelcomePane * self = NULL; - GtkBuilder* _tmp0_; - GObject* _tmp1_; - GtkBox* _tmp2_; - GtkBuilder* _tmp3_; - GObject* _tmp4_; - GtkButton* _tmp5_; - GtkBuilder* _tmp6_; - GObject* _tmp7_; - GtkLabel* _tmp8_; - GtkButton* _tmp9_; - GtkLabel* _tmp10_; - GtkLabel* _tmp11_; -#line 56 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_val_if_fail (service_welcome_message != NULL, NULL); -#line 57 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self = (PublishingUILoginWelcomePane*) publishing_ui_concrete_dialog_pane_construct (object_type); -#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->builder; -#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp1_ = gtk_builder_get_object (_tmp0_, "welcome_pane_widget"); -#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_box_get_type ()) ? ((GtkBox*) _tmp1_) : NULL); -#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->pane_widget); -#line 58 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->pane_widget = _tmp2_; -#line 59 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->builder; -#line 59 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp4_ = gtk_builder_get_object (_tmp3_, "login_button"); -#line 59 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gtk_button_get_type ()) ? ((GtkButton*) _tmp4_) : NULL); -#line 59 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->login_button); -#line 59 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->login_button = _tmp5_; -#line 60 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->builder; -#line 60 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp7_ = gtk_builder_get_object (_tmp6_, "not_logged_in_label"); -#line 60 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, gtk_label_get_type ()) ? ((GtkLabel*) _tmp7_) : NULL); -#line 60 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->not_logged_in_label); -#line 60 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->not_logged_in_label = _tmp8_; -#line 62 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp9_ = self->priv->login_button; -#line 62 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_signal_connect_object (_tmp9_, "clicked", (GCallback) _publishing_ui_login_welcome_pane_on_login_clicked_gtk_button_clicked, self, 0); -#line 63 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp10_ = self->priv->not_logged_in_label; -#line 63 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_label_set_use_markup (_tmp10_, TRUE); -#line 64 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp11_ = self->priv->not_logged_in_label; -#line 64 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_label_set_markup (_tmp11_, service_welcome_message); -#line 56 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return self; -#line 995 "PublishingUI.c" -} - - -PublishingUILoginWelcomePane* -publishing_ui_login_welcome_pane_new (const gchar* service_welcome_message) -{ -#line 56 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return publishing_ui_login_welcome_pane_construct (PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, service_welcome_message); -#line 1004 "PublishingUI.c" -} - - -static void -publishing_ui_login_welcome_pane_on_login_clicked (PublishingUILoginWelcomePane* self) -{ -#line 67 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (PUBLISHING_UI_IS_LOGIN_WELCOME_PANE (self)); -#line 68 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_signal_emit (self, publishing_ui_login_welcome_pane_signals[PUBLISHING_UI_LOGIN_WELCOME_PANE_LOGIN_REQUESTED_SIGNAL], 0); -#line 1015 "PublishingUI.c" -} - - -static void -publishing_ui_login_welcome_pane_class_init (PublishingUILoginWelcomePaneClass * klass) -{ -#line 50 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_login_welcome_pane_parent_class = g_type_class_peek_parent (klass); -#line 50 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_type_class_add_private (klass, sizeof (PublishingUILoginWelcomePanePrivate)); -#line 50 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_ui_login_welcome_pane_finalize; -#line 50 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_login_welcome_pane_signals[PUBLISHING_UI_LOGIN_WELCOME_PANE_LOGIN_REQUESTED_SIGNAL] = g_signal_new ("login-requested", PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 1030 "PublishingUI.c" -} - - -static void -publishing_ui_login_welcome_pane_instance_init (PublishingUILoginWelcomePane * self) -{ -#line 50 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv = PUBLISHING_UI_LOGIN_WELCOME_PANE_GET_PRIVATE (self); -#line 51 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->login_button = NULL; -#line 52 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->not_logged_in_label = NULL; -#line 1043 "PublishingUI.c" -} - - -static void -publishing_ui_login_welcome_pane_finalize (GObject * obj) -{ - PublishingUILoginWelcomePane * self; -#line 50 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_UI_TYPE_LOGIN_WELCOME_PANE, PublishingUILoginWelcomePane); -#line 51 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->login_button); -#line 52 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->not_logged_in_label); -#line 50 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - G_OBJECT_CLASS (publishing_ui_login_welcome_pane_parent_class)->finalize (obj); -#line 1059 "PublishingUI.c" -} - - -GType -publishing_ui_login_welcome_pane_get_type (void) -{ - static volatile gsize publishing_ui_login_welcome_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_ui_login_welcome_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingUILoginWelcomePaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_ui_login_welcome_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingUILoginWelcomePane), 0, (GInstanceInitFunc) publishing_ui_login_welcome_pane_instance_init, NULL }; - GType publishing_ui_login_welcome_pane_type_id; - publishing_ui_login_welcome_pane_type_id = g_type_register_static (PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, "PublishingUILoginWelcomePane", &g_define_type_info, 0); - g_once_init_leave (&publishing_ui_login_welcome_pane_type_id__volatile, publishing_ui_login_welcome_pane_type_id); - } - return publishing_ui_login_welcome_pane_type_id__volatile; -} - - -PublishingUIProgressPane* -publishing_ui_progress_pane_construct (GType object_type) -{ - PublishingUIProgressPane * self = NULL; - GtkBuilder* _tmp0_; - GObject* _tmp1_; - GtkBox* _tmp2_; - GtkBuilder* _tmp3_; - GObject* _tmp4_; - GtkProgressBar* _tmp5_; -#line 76 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self = (PublishingUIProgressPane*) publishing_ui_concrete_dialog_pane_construct (object_type); -#line 77 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->builder; -#line 77 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp1_ = gtk_builder_get_object (_tmp0_, "progress_pane_widget"); -#line 77 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_box_get_type (), GtkBox)); -#line 77 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->pane_widget); -#line 77 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->pane_widget = _tmp2_; -#line 78 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, PublishingUIConcreteDialogPane)->builder; -#line 78 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp4_ = gtk_builder_get_object (_tmp3_, "publishing_progress_bar"); -#line 78 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_progress_bar_get_type (), GtkProgressBar)); -#line 78 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->progress_bar); -#line 78 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->progress_bar = _tmp5_; -#line 75 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return self; -#line 1111 "PublishingUI.c" -} - - -PublishingUIProgressPane* -publishing_ui_progress_pane_new (void) -{ -#line 75 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return publishing_ui_progress_pane_construct (PUBLISHING_UI_TYPE_PROGRESS_PANE); -#line 1120 "PublishingUI.c" -} - - -void -publishing_ui_progress_pane_set_text (PublishingUIProgressPane* self, - const gchar* text) -{ - GtkProgressBar* _tmp0_; -#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (PUBLISHING_UI_IS_PROGRESS_PANE (self)); -#line 81 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (text != NULL); -#line 82 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = self->priv->progress_bar; -#line 82 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_progress_bar_set_text (_tmp0_, text); -#line 1137 "PublishingUI.c" -} - - -void -publishing_ui_progress_pane_set_progress (PublishingUIProgressPane* self, - gdouble progress) -{ - GtkProgressBar* _tmp0_; -#line 85 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (PUBLISHING_UI_IS_PROGRESS_PANE (self)); -#line 86 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = self->priv->progress_bar; -#line 86 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_progress_bar_set_fraction (_tmp0_, progress); -#line 1152 "PublishingUI.c" -} - - -void -publishing_ui_progress_pane_set_status (PublishingUIProgressPane* self, - const gchar* status_text, - gdouble progress) -{ - GtkProgressBar* _tmp0_; - const gchar* _tmp1_; -#line 89 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (PUBLISHING_UI_IS_PROGRESS_PANE (self)); -#line 89 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (status_text != NULL); -#line 90 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = self->priv->progress_bar; -#line 90 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp1_ = gtk_progress_bar_get_text (_tmp0_); -#line 90 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (g_strcmp0 (status_text, _tmp1_) != 0) { -#line 1173 "PublishingUI.c" - GtkProgressBar* _tmp2_; -#line 91 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp2_ = self->priv->progress_bar; -#line 91 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_progress_bar_set_text (_tmp2_, status_text); -#line 1179 "PublishingUI.c" - } -#line 93 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_progress_pane_set_progress (self, progress); -#line 1183 "PublishingUI.c" -} - - -static void -publishing_ui_progress_pane_class_init (PublishingUIProgressPaneClass * klass) -{ -#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_progress_pane_parent_class = g_type_class_peek_parent (klass); -#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_type_class_add_private (klass, sizeof (PublishingUIProgressPanePrivate)); -#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_ui_progress_pane_finalize; -#line 1196 "PublishingUI.c" -} - - -static void -publishing_ui_progress_pane_instance_init (PublishingUIProgressPane * self) -{ -#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv = PUBLISHING_UI_PROGRESS_PANE_GET_PRIVATE (self); -#line 73 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->progress_bar = NULL; -#line 1207 "PublishingUI.c" -} - - -static void -publishing_ui_progress_pane_finalize (GObject * obj) -{ - PublishingUIProgressPane * self; -#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_UI_TYPE_PROGRESS_PANE, PublishingUIProgressPane); -#line 73 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->progress_bar); -#line 72 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - G_OBJECT_CLASS (publishing_ui_progress_pane_parent_class)->finalize (obj); -#line 1221 "PublishingUI.c" -} - - -GType -publishing_ui_progress_pane_get_type (void) -{ - static volatile gsize publishing_ui_progress_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_ui_progress_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingUIProgressPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_ui_progress_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingUIProgressPane), 0, (GInstanceInitFunc) publishing_ui_progress_pane_instance_init, NULL }; - GType publishing_ui_progress_pane_type_id; - publishing_ui_progress_pane_type_id = g_type_register_static (PUBLISHING_UI_TYPE_CONCRETE_DIALOG_PANE, "PublishingUIProgressPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_ui_progress_pane_type_id__volatile, publishing_ui_progress_pane_type_id); - } - return publishing_ui_progress_pane_type_id__volatile; -} - - -PublishingUISuccessPane* -publishing_ui_success_pane_construct (GType object_type, - SpitPublishingPublisherMediaType published_media, - gint num_uploaded) -{ - PublishingUISuccessPane * self = NULL; - gchar* message_string = NULL; - const gchar* _tmp3_; -#line 99 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - message_string = NULL; -#line 103 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (published_media == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 1251 "PublishingUI.c" - gchar* _tmp0_; -#line 104 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = g_strdup (ngettext ("The selected video was successfully published.", "The selected videos were successfully published.", (gulong) num_uploaded)); -#line 104 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (message_string); -#line 104 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - message_string = _tmp0_; -#line 1259 "PublishingUI.c" - } else { -#line 108 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (published_media == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) { -#line 1263 "PublishingUI.c" - gchar* _tmp1_; -#line 109 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp1_ = g_strdup (ngettext ("The selected photo was successfully published.", "The selected photos were successfully published.", (gulong) num_uploaded)); -#line 109 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (message_string); -#line 109 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - message_string = _tmp1_; -#line 1271 "PublishingUI.c" - } else { -#line 113 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (published_media == (SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO)) { -#line 1275 "PublishingUI.c" - gchar* _tmp2_; -#line 115 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp2_ = g_strdup (_ ("The selected photos/videos were successfully published.")); -#line 115 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (message_string); -#line 115 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - message_string = _tmp2_; -#line 1283 "PublishingUI.c" - } else { -#line 118 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_assert_not_reached (); -#line 1287 "PublishingUI.c" - } - } - } -#line 121 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp3_ = message_string; -#line 121 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self = (PublishingUISuccessPane*) publishing_ui_static_message_pane_construct (object_type, _tmp3_, FALSE); -#line 98 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (message_string); -#line 98 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return self; -#line 1299 "PublishingUI.c" -} - - -PublishingUISuccessPane* -publishing_ui_success_pane_new (SpitPublishingPublisherMediaType published_media, - gint num_uploaded) -{ -#line 98 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return publishing_ui_success_pane_construct (PUBLISHING_UI_TYPE_SUCCESS_PANE, published_media, num_uploaded); -#line 1309 "PublishingUI.c" -} - - -static void -publishing_ui_success_pane_class_init (PublishingUISuccessPaneClass * klass) -{ -#line 97 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_success_pane_parent_class = g_type_class_peek_parent (klass); -#line 1318 "PublishingUI.c" -} - - -static void -publishing_ui_success_pane_instance_init (PublishingUISuccessPane * self) -{ -} - - -GType -publishing_ui_success_pane_get_type (void) -{ - static volatile gsize publishing_ui_success_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_ui_success_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingUISuccessPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_ui_success_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingUISuccessPane), 0, (GInstanceInitFunc) publishing_ui_success_pane_instance_init, NULL }; - GType publishing_ui_success_pane_type_id; - publishing_ui_success_pane_type_id = g_type_register_static (PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, "PublishingUISuccessPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_ui_success_pane_type_id__volatile, publishing_ui_success_pane_type_id); - } - return publishing_ui_success_pane_type_id__volatile; -} - - -PublishingUIAccountFetchWaitPane* -publishing_ui_account_fetch_wait_pane_construct (GType object_type) -{ - PublishingUIAccountFetchWaitPane * self = NULL; -#line 127 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self = (PublishingUIAccountFetchWaitPane*) publishing_ui_static_message_pane_construct (object_type, _ ("Fetching account information…"), FALSE); -#line 126 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return self; -#line 1350 "PublishingUI.c" -} - - -PublishingUIAccountFetchWaitPane* -publishing_ui_account_fetch_wait_pane_new (void) -{ -#line 126 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return publishing_ui_account_fetch_wait_pane_construct (PUBLISHING_UI_TYPE_ACCOUNT_FETCH_WAIT_PANE); -#line 1359 "PublishingUI.c" -} - - -static void -publishing_ui_account_fetch_wait_pane_class_init (PublishingUIAccountFetchWaitPaneClass * klass) -{ -#line 125 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_account_fetch_wait_pane_parent_class = g_type_class_peek_parent (klass); -#line 1368 "PublishingUI.c" -} - - -static void -publishing_ui_account_fetch_wait_pane_instance_init (PublishingUIAccountFetchWaitPane * self) -{ -} - - -GType -publishing_ui_account_fetch_wait_pane_get_type (void) -{ - static volatile gsize publishing_ui_account_fetch_wait_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_ui_account_fetch_wait_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingUIAccountFetchWaitPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_ui_account_fetch_wait_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingUIAccountFetchWaitPane), 0, (GInstanceInitFunc) publishing_ui_account_fetch_wait_pane_instance_init, NULL }; - GType publishing_ui_account_fetch_wait_pane_type_id; - publishing_ui_account_fetch_wait_pane_type_id = g_type_register_static (PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, "PublishingUIAccountFetchWaitPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_ui_account_fetch_wait_pane_type_id__volatile, publishing_ui_account_fetch_wait_pane_type_id); - } - return publishing_ui_account_fetch_wait_pane_type_id__volatile; -} - - -PublishingUILoginWaitPane* -publishing_ui_login_wait_pane_construct (GType object_type) -{ - PublishingUILoginWaitPane * self = NULL; -#line 133 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self = (PublishingUILoginWaitPane*) publishing_ui_static_message_pane_construct (object_type, _ ("Logging in…"), FALSE); -#line 132 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return self; -#line 1400 "PublishingUI.c" -} - - -PublishingUILoginWaitPane* -publishing_ui_login_wait_pane_new (void) -{ -#line 132 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return publishing_ui_login_wait_pane_construct (PUBLISHING_UI_TYPE_LOGIN_WAIT_PANE); -#line 1409 "PublishingUI.c" -} - - -static void -publishing_ui_login_wait_pane_class_init (PublishingUILoginWaitPaneClass * klass) -{ -#line 131 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_login_wait_pane_parent_class = g_type_class_peek_parent (klass); -#line 1418 "PublishingUI.c" -} - - -static void -publishing_ui_login_wait_pane_instance_init (PublishingUILoginWaitPane * self) -{ -} - - -GType -publishing_ui_login_wait_pane_get_type (void) -{ - static volatile gsize publishing_ui_login_wait_pane_type_id__volatile = 0; - if (g_once_init_enter (&publishing_ui_login_wait_pane_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingUILoginWaitPaneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_ui_login_wait_pane_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingUILoginWaitPane), 0, (GInstanceInitFunc) publishing_ui_login_wait_pane_instance_init, NULL }; - GType publishing_ui_login_wait_pane_type_id; - publishing_ui_login_wait_pane_type_id = g_type_register_static (PUBLISHING_UI_TYPE_STATIC_MESSAGE_PANE, "PublishingUILoginWaitPane", &g_define_type_info, 0); - g_once_init_leave (&publishing_ui_login_wait_pane_type_id__volatile, publishing_ui_login_wait_pane_type_id); - } - return publishing_ui_login_wait_pane_type_id__volatile; -} - - -static gboolean -_publishing_ui_publishing_dialog_on_window_close_gtk_widget_delete_event (GtkWidget* _sender, - GdkEventAny* event, - gpointer self) -{ - gboolean result; - result = publishing_ui_publishing_dialog_on_window_close ((PublishingUIPublishingDialog*) self, event); -#line 175 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return result; -#line 1451 "PublishingUI.c" -} - - -static void -_vala_array_add58 (SpitPublishingPublishable** * array, - int* length, - int* size, - SpitPublishingPublishable* value) -{ -#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if ((*length) == (*size)) { -#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - *array = g_renew (SpitPublishingPublishable*, *array, (*size) + 1); -#line 1467 "PublishingUI.c" - } -#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - (*array)[(*length)++] = value; -#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - (*array)[*length] = NULL; -#line 1473 "PublishingUI.c" -} - - -static void -_publishing_ui_publishing_dialog_on_service_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 256 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_publishing_dialog_on_service_changed ((PublishingUIPublishingDialog*) self); -#line 1483 "PublishingUI.c" -} - - -static void -_publishing_ui_publishing_dialog_on_close_cancel_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 308 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_publishing_dialog_on_close_cancel_clicked ((PublishingUIPublishingDialog*) self); -#line 1493 "PublishingUI.c" -} - - -PublishingUIPublishingDialog* -publishing_ui_publishing_dialog_construct (GType object_type, - GeeCollection* to_publish) -{ - PublishingUIPublishingDialog * self = NULL; - gint _tmp0_; - gint _tmp1_; - gboolean use_header = FALSE; - gboolean _tmp2_; - AppWindow* _tmp5_; - AppWindow* _tmp6_; - SpitPublishingPublishable** _tmp7_; - gboolean has_photos = FALSE; - gboolean has_videos = FALSE; - gchar* title = NULL; - gchar* label = NULL; - gboolean _tmp19_ = FALSE; - gboolean _tmp20_; - const gchar* _tmp31_; - GtkListStore* _tmp32_; - GtkListStore* _tmp33_; - GtkComboBox* _tmp34_; - GtkCellRendererPixbuf* renderer_pix = NULL; - GtkCellRendererPixbuf* _tmp35_; - GtkComboBox* _tmp36_; - GtkCellRendererPixbuf* _tmp37_; - GtkComboBox* _tmp38_; - GtkCellRendererPixbuf* _tmp39_; - GtkCellRendererText* renderer_text = NULL; - GtkCellRendererText* _tmp40_; - GtkComboBox* _tmp41_; - GtkCellRendererText* _tmp42_; - GtkComboBox* _tmp43_; - GtkCellRendererText* _tmp44_; - GtkComboBox* _tmp45_; - gchar* last_used_service = NULL; - ConfigFacade* _tmp46_; - ConfigFacade* _tmp47_; - gchar* _tmp48_; - gchar* _tmp49_; - SpitPublishingService** loaded_services = NULL; - gboolean _tmp50_; - gboolean _tmp51_; - gint _tmp52_; - SpitPublishingService** _tmp53_; - gint loaded_services_length1; - gint _loaded_services_size_; - GtkTreeIter iter = {0}; - SpitPublishingService** _tmp54_; - gint _tmp54__length1; - GtkComboBox* _tmp92_; - gboolean _tmp93_; - GtkBox* _tmp123_; - GtkBox* _tmp124_; - GtkBox* _tmp125_; - gboolean _tmp126_; - GtkButton* _tmp135_; -#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (to_publish), NULL); -#line 162 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = gee_collection_get_size (to_publish); -#line 162 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp1_ = _tmp0_; -#line 162 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _vala_assert (_tmp1_ > 0, "to_publish.size > 0"); -#line 164 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - use_header = resources_use_header_bar () == 1; -#line 165 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self = (PublishingUIPublishingDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL); -#line 166 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp2_ = use_header; -#line 166 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (_tmp2_) { -#line 1570 "PublishingUI.c" - GtkWidget* _tmp3_; -#line 167 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp3_ = gtk_dialog_get_header_bar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 167 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_header_bar_set_show_close_button (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_header_bar_get_type (), GtkHeaderBar), FALSE); -#line 1576 "PublishingUI.c" - } else { - GtkBox* _tmp4_; -#line 169 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp4_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 169 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_box_set_spacing (_tmp4_, 6); -#line 1583 "PublishingUI.c" - } -#line 172 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE); -#line 173 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_window_set_modal (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE); -#line 174 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp5_ = app_window_get_instance (); -#line 174 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp6_ = _tmp5_; -#line 174 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_window_get_type (), GtkWindow)); -#line 174 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (_tmp6_); -#line 175 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "delete-event", (GCallback) _publishing_ui_publishing_dialog_on_window_close_gtk_widget_delete_event, self, 0); -#line 177 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp7_ = g_new0 (SpitPublishingPublishable*, 0 + 1); -#line 177 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 177 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->publishables = _tmp7_; -#line 177 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->publishables_length1 = 0; -#line 177 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->_publishables_size_ = self->priv->publishables_length1; -#line 178 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - has_photos = FALSE; -#line 179 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - has_videos = FALSE; -#line 1613 "PublishingUI.c" - { - GeeIterator* _media_it = NULL; - GeeIterator* _tmp8_; -#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (to_publish, GEE_TYPE_ITERABLE, GeeIterable)); -#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _media_it = _tmp8_; -#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - while (TRUE) { -#line 1623 "PublishingUI.c" - GeeIterator* _tmp9_; - MediaSource* media = NULL; - GeeIterator* _tmp10_; - gpointer _tmp11_; - SpitPublishingPublishable* publishable = NULL; - MediaSource* _tmp12_; - PublishingGlueMediaSourcePublishableWrapper* _tmp13_; - SpitPublishingPublishable* _tmp14_; - SpitPublishingPublishable** _tmp16_; - gint _tmp16__length1; - SpitPublishingPublishable* _tmp17_; - SpitPublishingPublishable* _tmp18_; -#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp9_ = _media_it; -#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (!gee_iterator_next (_tmp9_)) { -#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - break; -#line 1642 "PublishingUI.c" - } -#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp10_ = _media_it; -#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp11_ = gee_iterator_get (_tmp10_); -#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - media = (MediaSource*) _tmp11_; -#line 181 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp12_ = media; -#line 181 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp13_ = publishing_glue_media_source_publishable_wrapper_new (_tmp12_); -#line 181 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishable = G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, SPIT_PUBLISHING_TYPE_PUBLISHABLE, SpitPublishingPublishable); -#line 183 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp14_ = publishable; -#line 183 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (spit_publishing_publishable_get_media_type (_tmp14_) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) { -#line 184 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - has_photos = TRUE; -#line 1662 "PublishingUI.c" - } else { - SpitPublishingPublishable* _tmp15_; -#line 185 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp15_ = publishable; -#line 185 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (spit_publishing_publishable_get_media_type (_tmp15_) == SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 186 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - has_videos = TRUE; -#line 1671 "PublishingUI.c" - } else { -#line 188 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_assert_not_reached (); -#line 1675 "PublishingUI.c" - } - } -#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp16_ = self->priv->publishables; -#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp16__length1 = self->priv->publishables_length1; -#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp17_ = publishable; -#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp18_ = _g_object_ref0 (_tmp17_); -#line 190 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _vala_array_add58 (&self->priv->publishables, &self->priv->publishables_length1, &self->priv->_publishables_size_, _tmp18_); -#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (publishable); -#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (media); -#line 1692 "PublishingUI.c" - } -#line 180 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (_media_it); -#line 1696 "PublishingUI.c" - } -#line 193 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - title = NULL; -#line 194 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - label = NULL; -#line 196 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp20_ = has_photos; -#line 196 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (_tmp20_) { -#line 1706 "PublishingUI.c" - gboolean _tmp21_; -#line 196 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp21_ = has_videos; -#line 196 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp19_ = !_tmp21_; -#line 1712 "PublishingUI.c" - } else { -#line 196 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp19_ = FALSE; -#line 1716 "PublishingUI.c" - } -#line 196 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (_tmp19_) { -#line 1720 "PublishingUI.c" - gchar* _tmp22_; - gchar* _tmp23_; -#line 197 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp22_ = g_strdup (_ ("Publish Photos")); -#line 197 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (title); -#line 197 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - title = _tmp22_; -#line 198 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp23_ = g_strdup (_ ("Publish photos _to:")); -#line 198 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (label); -#line 198 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - label = _tmp23_; -#line 1735 "PublishingUI.c" - } else { - gboolean _tmp24_ = FALSE; - gboolean _tmp25_; -#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp25_ = has_photos; -#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (!_tmp25_) { -#line 1743 "PublishingUI.c" - gboolean _tmp26_; -#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp26_ = has_videos; -#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp24_ = _tmp26_; -#line 1749 "PublishingUI.c" - } else { -#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp24_ = FALSE; -#line 1753 "PublishingUI.c" - } -#line 199 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (_tmp24_) { -#line 1757 "PublishingUI.c" - gchar* _tmp27_; - gchar* _tmp28_; -#line 200 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp27_ = g_strdup (_ ("Publish Videos")); -#line 200 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (title); -#line 200 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - title = _tmp27_; -#line 201 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp28_ = g_strdup (_ ("Publish videos _to")); -#line 201 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (label); -#line 201 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - label = _tmp28_; -#line 1772 "PublishingUI.c" - } else { - gchar* _tmp29_; - gchar* _tmp30_; -#line 203 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp29_ = g_strdup (_ ("Publish Photos and Videos")); -#line 203 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (title); -#line 203 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - title = _tmp29_; -#line 204 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp30_ = g_strdup (_ ("Publish photos and videos _to")); -#line 204 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (label); -#line 204 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - label = _tmp30_; -#line 1788 "PublishingUI.c" - } - } -#line 206 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp31_ = title; -#line 206 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_window_set_title (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), _tmp31_); -#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp32_ = gtk_list_store_new (2, gdk_pixbuf_get_type (), G_TYPE_STRING, -1); -#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->service_selector_box_model); -#line 208 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->service_selector_box_model = _tmp32_; -#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp33_ = self->priv->service_selector_box_model; -#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp34_ = (GtkComboBox*) gtk_combo_box_new_with_model (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, gtk_tree_model_get_type (), GtkTreeModel)); -#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_object_ref_sink (_tmp34_); -#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->service_selector_box); -#line 209 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->service_selector_box = _tmp34_; -#line 211 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp35_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new (); -#line 211 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_object_ref_sink (_tmp35_); -#line 211 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - renderer_pix = _tmp35_; -#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp36_ = self->priv->service_selector_box; -#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp37_ = renderer_pix; -#line 212 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_cell_renderer_get_type (), GtkCellRenderer), TRUE); -#line 213 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp38_ = self->priv->service_selector_box; -#line 213 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp39_ = renderer_pix; -#line 213 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_cell_renderer_get_type (), GtkCellRenderer), "pixbuf", 0); -#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp40_ = (GtkCellRendererText*) gtk_cell_renderer_text_new (); -#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_object_ref_sink (_tmp40_); -#line 215 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - renderer_text = _tmp40_; -#line 216 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp41_ = self->priv->service_selector_box; -#line 216 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp42_ = renderer_text; -#line 216 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp42_, gtk_cell_renderer_get_type (), GtkCellRenderer), TRUE); -#line 217 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp43_ = self->priv->service_selector_box; -#line 217 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp44_ = renderer_text; -#line 217 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_cell_renderer_get_type (), GtkCellRenderer), "text", 1); -#line 219 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp45_ = self->priv->service_selector_box; -#line 219 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_combo_box_set_active (_tmp45_, 0); -#line 222 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp46_ = config_facade_get_instance (); -#line 222 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp47_ = _tmp46_; -#line 222 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp48_ = configuration_facade_get_last_used_service (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 222 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp49_ = _tmp48_; -#line 222 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (_tmp47_); -#line 222 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - last_used_service = _tmp49_; -#line 224 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp50_ = has_photos; -#line 224 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp51_ = has_videos; -#line 224 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp53_ = publishing_ui_publishing_dialog_load_services (_tmp50_, _tmp51_, &_tmp52_); -#line 224 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - loaded_services = _tmp53_; -#line 224 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - loaded_services_length1 = _tmp52_; -#line 224 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _loaded_services_size_ = loaded_services_length1; -#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp54_ = loaded_services; -#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp54__length1 = loaded_services_length1; -#line 1879 "PublishingUI.c" - { - SpitPublishingService** service_collection = NULL; - gint service_collection_length1 = 0; - gint _service_collection_size_ = 0; - gint service_it = 0; -#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - service_collection = _tmp54_; -#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - service_collection_length1 = _tmp54__length1; -#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - for (service_it = 0; service_it < _tmp54__length1; service_it = service_it + 1) { -#line 1891 "PublishingUI.c" - SpitPublishingService* _tmp55_; - SpitPublishingService* service = NULL; -#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp55_ = _g_object_ref0 (service_collection[service_it]); -#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - service = _tmp55_; -#line 1898 "PublishingUI.c" - { - GtkListStore* _tmp56_; - GtkTreeIter _tmp57_ = {0}; - gchar* curr_service_id = NULL; - SpitPublishingService* _tmp58_; - const gchar* _tmp59_; - gchar* _tmp60_; - SpitPublishingService* _tmp61_; - gboolean _tmp62_ = FALSE; - SpitPluggableInfo _tmp63_; - GdkPixbuf** _tmp64_; - gint _tmp64__length1; - const gchar* _tmp82_; -#line 229 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp56_ = self->priv->service_selector_box_model; -#line 229 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_list_store_append (_tmp56_, &_tmp57_); -#line 229 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - iter = _tmp57_; -#line 231 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp58_ = service; -#line 231 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp59_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 231 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp60_ = g_strdup (_tmp59_); -#line 231 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - curr_service_id = _tmp60_; -#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp61_ = service; -#line 233 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - spit_pluggable_get_info (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, SPIT_TYPE_PLUGGABLE, SpitPluggable), &self->priv->info); -#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp63_ = self->priv->info; -#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp64_ = _tmp63_.icons; -#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp64__length1 = _tmp63_.icons_length1; -#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (NULL != _tmp64_) { -#line 1938 "PublishingUI.c" - SpitPluggableInfo _tmp65_; - GdkPixbuf** _tmp66_; - gint _tmp66__length1; -#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp65_ = self->priv->info; -#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp66_ = _tmp65_.icons; -#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp66__length1 = _tmp65_.icons_length1; -#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp62_ = 0 < _tmp66__length1; -#line 1950 "PublishingUI.c" - } else { -#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp62_ = FALSE; -#line 1954 "PublishingUI.c" - } -#line 235 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (_tmp62_) { -#line 1958 "PublishingUI.c" - GtkListStore* _tmp67_; - GtkTreeIter _tmp68_; - SpitPluggableInfo _tmp69_; - GdkPixbuf** _tmp70_; - gint _tmp70__length1; - GdkPixbuf* _tmp71_; - SpitPublishingService* _tmp72_; - const gchar* _tmp73_; - GdkPixbuf* _tmp74_; - GdkPixbuf* _tmp75_; -#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp67_ = self->priv->service_selector_box_model; -#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp68_ = iter; -#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp69_ = self->priv->info; -#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp70_ = _tmp69_.icons; -#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp70__length1 = _tmp69_.icons_length1; -#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp71_ = _tmp70_[0]; -#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp72_ = service; -#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp73_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp72_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 237 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_list_store_set (_tmp67_, &_tmp68_, 0, _tmp71_, 1, _tmp73_, -1); -#line 241 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp74_ = resources_get_icon (RESOURCES_ICON_GENERIC_PLUGIN, RESOURCES_DEFAULT_ICON_SCALE); -#line 241 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->info.icons[0]); -#line 241 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->info.icons[0] = _tmp74_; -#line 241 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp75_ = self->priv->info.icons[0]; -#line 1995 "PublishingUI.c" - } else { - GtkListStore* _tmp76_; - GtkTreeIter _tmp77_; - GdkPixbuf* _tmp78_; - GdkPixbuf* _tmp79_; - SpitPublishingService* _tmp80_; - const gchar* _tmp81_; -#line 244 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp76_ = self->priv->service_selector_box_model; -#line 244 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp77_ = iter; -#line 244 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp78_ = resources_get_icon (RESOURCES_ICON_GENERIC_PLUGIN, RESOURCES_DEFAULT_ICON_SCALE); -#line 244 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp79_ = _tmp78_; -#line 244 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp80_ = service; -#line 244 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp81_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 244 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_list_store_set (_tmp76_, &_tmp77_, 0, _tmp79_, 1, _tmp81_, -1); -#line 244 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (_tmp79_); -#line 2019 "PublishingUI.c" - } -#line 248 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp82_ = last_used_service; -#line 248 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (_tmp82_ == NULL) { -#line 2025 "PublishingUI.c" - GtkComboBox* _tmp83_; - GtkTreeIter _tmp84_; - SpitPublishingService* _tmp85_; - const gchar* _tmp86_; - gchar* _tmp87_; -#line 249 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp83_ = self->priv->service_selector_box; -#line 249 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp84_ = iter; -#line 249 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_combo_box_set_active_iter (_tmp83_, &_tmp84_); -#line 250 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp85_ = service; -#line 250 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp86_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 250 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp87_ = g_strdup (_tmp86_); -#line 250 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (last_used_service); -#line 250 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - last_used_service = _tmp87_; -#line 2047 "PublishingUI.c" - } else { - const gchar* _tmp88_; - const gchar* _tmp89_; -#line 251 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp88_ = last_used_service; -#line 251 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp89_ = curr_service_id; -#line 251 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (g_strcmp0 (_tmp88_, _tmp89_) == 0) { -#line 2057 "PublishingUI.c" - GtkComboBox* _tmp90_; - GtkTreeIter _tmp91_; -#line 252 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp90_ = self->priv->service_selector_box; -#line 252 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp91_ = iter; -#line 252 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_combo_box_set_active_iter (_tmp90_, &_tmp91_); -#line 2066 "PublishingUI.c" - } - } -#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (curr_service_id); -#line 228 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (service); -#line 2073 "PublishingUI.c" - } - } - } -#line 256 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp92_ = self->priv->service_selector_box; -#line 256 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_signal_connect_object (_tmp92_, "changed", (GCallback) _publishing_ui_publishing_dialog_on_service_changed_gtk_combo_box_changed, self, 0); -#line 258 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp93_ = use_header; -#line 258 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (!_tmp93_) { -#line 2085 "PublishingUI.c" - GtkLabel* service_selector_box_label = NULL; - const gchar* _tmp94_; - GtkLabel* _tmp95_; - GtkLabel* _tmp96_; - GtkComboBox* _tmp97_; - GtkLabel* _tmp98_; - GtkLabel* _tmp99_; - GtkComboBox* _tmp100_; - GtkComboBox* _tmp101_; - GtkComboBox* _tmp102_; - GtkComboBox* _tmp103_; - GtkBox* service_selector_layouter = NULL; - GtkBox* _tmp104_; - GtkBox* _tmp105_; - GtkBox* _tmp106_; - GtkBox* _tmp107_; - GtkLabel* _tmp108_; - GtkBox* _tmp109_; - GtkComboBox* _tmp110_; - GtkBox* service_area_layouter = NULL; - GtkBox* _tmp111_; - GtkBox* _tmp112_; - GtkBox* _tmp113_; - GtkBox* _tmp114_; - GtkSeparator* _tmp115_; - GtkSeparator* _tmp116_; - GtkBox* _tmp117_; - GtkBox* _tmp118_; - GtkBox* _tmp119_; - GtkBox* _tmp120_; - GtkBox* _tmp121_; - GtkBox* _tmp122_; -#line 260 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp94_ = label; -#line 260 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp95_ = (GtkLabel*) gtk_label_new_with_mnemonic (_tmp94_); -#line 260 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_object_ref_sink (_tmp95_); -#line 260 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - service_selector_box_label = _tmp95_; -#line 261 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp96_ = service_selector_box_label; -#line 261 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp97_ = self->priv->service_selector_box; -#line 261 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_label_set_mnemonic_widget (_tmp96_, G_TYPE_CHECK_INSTANCE_CAST (_tmp97_, gtk_widget_get_type (), GtkWidget)); -#line 262 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp98_ = service_selector_box_label; -#line 262 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp98_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START); -#line 263 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp99_ = service_selector_box_label; -#line 263 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp99_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 269 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp100_ = self->priv->service_selector_box; -#line 269 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp100_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_END); -#line 270 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp101_ = self->priv->service_selector_box; -#line 270 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp101_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_CENTER); -#line 271 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp102_ = self->priv->service_selector_box; -#line 271 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp102_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 272 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp103_ = self->priv->service_selector_box; -#line 272 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp103_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 274 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp104_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); -#line 274 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_object_ref_sink (_tmp104_); -#line 274 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - service_selector_layouter = _tmp104_; -#line 275 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp105_ = service_selector_layouter; -#line 275 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_container_set_border_width (G_TYPE_CHECK_INSTANCE_CAST (_tmp105_, gtk_container_get_type (), GtkContainer), (guint) 12); -#line 276 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp106_ = service_selector_layouter; -#line 276 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp106_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 277 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp107_ = service_selector_layouter; -#line 277 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp108_ = service_selector_box_label; -#line 277 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp107_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp108_, gtk_widget_get_type (), GtkWidget)); -#line 278 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp109_ = service_selector_layouter; -#line 278 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp110_ = self->priv->service_selector_box; -#line 278 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_box_pack_start (_tmp109_, G_TYPE_CHECK_INSTANCE_CAST (_tmp110_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 282 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp111_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 282 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_object_ref_sink (_tmp111_); -#line 282 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - service_area_layouter = _tmp111_; -#line 283 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp112_ = service_area_layouter; -#line 283 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp113_ = service_selector_layouter; -#line 283 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp112_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp113_, gtk_widget_get_type (), GtkWidget)); -#line 284 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp114_ = service_area_layouter; -#line 284 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp115_ = (GtkSeparator*) gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); -#line 284 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_object_ref_sink (_tmp115_); -#line 284 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp116_ = _tmp115_; -#line 284 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp114_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp116_, gtk_widget_get_type (), GtkWidget)); -#line 284 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (_tmp116_); -#line 285 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp117_ = service_area_layouter; -#line 285 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_halign (G_TYPE_CHECK_INSTANCE_CAST (_tmp117_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_FILL); -#line 286 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp118_ = service_area_layouter; -#line 286 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_valign (G_TYPE_CHECK_INSTANCE_CAST (_tmp118_, gtk_widget_get_type (), GtkWidget), GTK_ALIGN_START); -#line 287 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp119_ = service_area_layouter; -#line 287 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_hexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp119_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 288 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp120_ = service_area_layouter; -#line 288 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_vexpand (G_TYPE_CHECK_INSTANCE_CAST (_tmp120_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 290 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp121_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 290 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp122_ = service_area_layouter; -#line 290 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_box_pack_start (_tmp121_, G_TYPE_CHECK_INSTANCE_CAST (_tmp122_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 258 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (service_area_layouter); -#line 258 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (service_selector_layouter); -#line 258 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (service_selector_box_label); -#line 2234 "PublishingUI.c" - } -#line 293 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp123_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#line 293 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_object_ref_sink (_tmp123_); -#line 293 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->central_area_layouter); -#line 293 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->central_area_layouter = _tmp123_; -#line 295 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp124_ = gtk_dialog_get_content_area (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 295 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp125_ = self->priv->central_area_layouter; -#line 295 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_box_pack_start (_tmp124_, G_TYPE_CHECK_INSTANCE_CAST (_tmp125_, gtk_widget_get_type (), GtkWidget), TRUE, TRUE, (guint) 0); -#line 297 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp126_ = use_header; -#line 297 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (_tmp126_) { -#line 2254 "PublishingUI.c" - GtkButton* _tmp127_; - GtkButton* _tmp128_; - GtkWidget* _tmp129_; - GtkButton* _tmp130_; - GtkWidget* _tmp131_; - GtkComboBox* _tmp132_; -#line 298 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp127_ = (GtkButton*) gtk_button_new_with_mnemonic ("_Cancel"); -#line 298 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_object_ref_sink (_tmp127_); -#line 298 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->close_cancel_button); -#line 298 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->close_cancel_button = _tmp127_; -#line 299 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp128_ = self->priv->close_cancel_button; -#line 299 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_can_default (G_TYPE_CHECK_INSTANCE_CAST (_tmp128_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 301 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp129_ = gtk_dialog_get_header_bar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 301 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp130_ = self->priv->close_cancel_button; -#line 301 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_header_bar_pack_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp129_, gtk_header_bar_get_type (), GtkHeaderBar), G_TYPE_CHECK_INSTANCE_CAST (_tmp130_, gtk_widget_get_type (), GtkWidget)); -#line 302 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp131_ = gtk_dialog_get_header_bar (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 302 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp132_ = self->priv->service_selector_box; -#line 302 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_header_bar_pack_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp131_, gtk_header_bar_get_type (), GtkHeaderBar), G_TYPE_CHECK_INSTANCE_CAST (_tmp132_, gtk_widget_get_type (), GtkWidget)); -#line 2285 "PublishingUI.c" - } else { - GtkWidget* _tmp133_; - GtkButton* _tmp134_; -#line 305 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_dialog_add_button (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), _ ("_Cancel"), (gint) GTK_RESPONSE_CANCEL); -#line 306 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp133_ = gtk_dialog_get_widget_for_response (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_CANCEL); -#line 306 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp134_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp133_, gtk_button_get_type ()) ? ((GtkButton*) _tmp133_) : NULL); -#line 306 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->close_cancel_button); -#line 306 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->close_cancel_button = _tmp134_; -#line 2299 "PublishingUI.c" - } -#line 308 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp135_ = self->priv->close_cancel_button; -#line 308 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_signal_connect_object (_tmp135_, "clicked", (GCallback) _publishing_ui_publishing_dialog_on_close_cancel_clicked_gtk_button_clicked, self, 0); -#line 310 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_publishing_dialog_set_standard_window_mode (self); -#line 312 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - loaded_services = (_vala_array_free (loaded_services, loaded_services_length1, (GDestroyNotify) g_object_unref), NULL); -#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (last_used_service); -#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (renderer_text); -#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (renderer_pix); -#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (label); -#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (title); -#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return self; -#line 2323 "PublishingUI.c" -} - - -PublishingUIPublishingDialog* -publishing_ui_publishing_dialog_new (GeeCollection* to_publish) -{ -#line 161 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return publishing_ui_publishing_dialog_construct (PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, to_publish); -#line 2332 "PublishingUI.c" -} - - -static void -_vala_array_add59 (SpitPublishingService** * array, - int* length, - int* size, - SpitPublishingService* value) -{ -#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if ((*length) == (*size)) { -#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - *array = g_renew (SpitPublishingService*, *array, (*size) + 1); -#line 2348 "PublishingUI.c" - } -#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - (*array)[(*length)++] = value; -#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - (*array)[*length] = NULL; -#line 2354 "PublishingUI.c" -} - - -static gint -__lambda16_ (void* a, - void* b) -{ - gint result = 0; - const gchar* _tmp0_; - const gchar* _tmp1_; -#line 345 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (*((SpitPublishingService**) a), SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 345 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp1_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (*((SpitPublishingService**) b), SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 345 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - result = utf8_cs_compare (_tmp0_, _tmp1_); -#line 345 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return result; -#line 2373 "PublishingUI.c" -} - - -static gint -___lambda16____compar_fn_t (void* key1, - void* key2) -{ - gint result; - result = __lambda16_ (key1, key2); -#line 344 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return result; -#line 2385 "PublishingUI.c" -} - - -static SpitPublishingService** -publishing_ui_publishing_dialog_load_all_services (int* result_length1) -{ - SpitPublishingService** result = NULL; - SpitPublishingService** loaded_services = NULL; - SpitPublishingService** _tmp0_; - gint loaded_services_length1; - gint _loaded_services_size_; - GeeCollection* pluggables = NULL; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - gint _tmp3_; - gint _tmp4_; - SpitPublishingService** _tmp23_; - gint _tmp23__length1; - SpitPublishingService** _tmp24_; - gint _tmp24__length1; - SpitPublishingService** _tmp25_; - gint _tmp25__length1; -#line 316 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = g_new0 (SpitPublishingService*, 0 + 1); -#line 316 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - loaded_services = _tmp0_; -#line 316 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - loaded_services_length1 = 0; -#line 316 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _loaded_services_size_ = loaded_services_length1; -#line 319 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp1_ = plugins_get_pluggables_for_type (SPIT_PUBLISHING_TYPE_SERVICE, NULL, NULL, NULL, FALSE); -#line 319 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - pluggables = _tmp1_; -#line 322 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp2_ = pluggables; -#line 322 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp3_ = gee_collection_get_size (_tmp2_); -#line 322 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp4_ = _tmp3_; -#line 322 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_debug ("PublishingUI.vala:322: PublisingDialog: discovered %d pluggable publis" \ -"hing services.", _tmp4_); -#line 2428 "PublishingUI.c" - { - GeeIterator* _pluggable_it = NULL; - GeeCollection* _tmp5_; - GeeIterator* _tmp6_; -#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp5_ = pluggables; -#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _pluggable_it = _tmp6_; -#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - while (TRUE) { -#line 2441 "PublishingUI.c" - GeeIterator* _tmp7_; - SpitPluggable* pluggable = NULL; - GeeIterator* _tmp8_; - gpointer _tmp9_; - gint pluggable_interface = 0; - SpitPluggable* _tmp10_; - gint _tmp11_; - SpitPublishingService* service = NULL; - SpitPluggable* _tmp16_; - SpitPublishingService* _tmp17_; - SpitPublishingService* _tmp18_; - const gchar* _tmp19_; - SpitPublishingService** _tmp20_; - gint _tmp20__length1; - SpitPublishingService* _tmp21_; - SpitPublishingService* _tmp22_; -#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp7_ = _pluggable_it; -#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (!gee_iterator_next (_tmp7_)) { -#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - break; -#line 2464 "PublishingUI.c" - } -#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp8_ = _pluggable_it; -#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp9_ = gee_iterator_get (_tmp8_); -#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - pluggable = (SpitPluggable*) _tmp9_; -#line 325 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp10_ = pluggable; -#line 325 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - pluggable_interface = spit_pluggable_get_pluggable_interface (_tmp10_, SPIT_PUBLISHING_CURRENT_INTERFACE, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 327 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp11_ = pluggable_interface; -#line 327 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (_tmp11_ != SPIT_PUBLISHING_CURRENT_INTERFACE) { -#line 2480 "PublishingUI.c" - SpitPluggable* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gint _tmp15_; -#line 328 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp12_ = pluggable; -#line 328 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp13_ = plugins_get_pluggable_module_id (_tmp12_); -#line 328 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp14_ = _tmp13_; -#line 328 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp15_ = pluggable_interface; -#line 328 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_warning ("PublishingUI.vala:328: Unable to load publisher %s: reported interface" \ -" %d.", _tmp14_, _tmp15_); -#line 328 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (_tmp14_); -#line 331 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (pluggable); -#line 331 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - continue; -#line 2501 "PublishingUI.c" - } -#line 334 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp16_ = pluggable; -#line 334 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp17_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService)); -#line 334 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - service = _tmp17_; -#line 337 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp18_ = service; -#line 337 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp19_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 337 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_debug ("PublishingUI.vala:337: PublishingDialog: discovered pluggable publishi" \ -"ng service '%s'.", _tmp19_); -#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp20_ = loaded_services; -#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp20__length1 = loaded_services_length1; -#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp21_ = service; -#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp22_ = _g_object_ref0 (_tmp21_); -#line 340 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _vala_array_add59 (&loaded_services, &loaded_services_length1, &_loaded_services_size_, _tmp22_); -#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (service); -#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (pluggable); -#line 2529 "PublishingUI.c" - } -#line 324 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (_pluggable_it); -#line 2533 "PublishingUI.c" - } -#line 344 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp23_ = loaded_services; -#line 344 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp23__length1 = loaded_services_length1; -#line 344 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp24_ = loaded_services; -#line 344 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp24__length1 = loaded_services_length1; -#line 344 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - qsort (_tmp23_, (gsize) _tmp24__length1, (gsize) sizeof (SpitPublishingService*), ___lambda16____compar_fn_t); -#line 349 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp25_ = loaded_services; -#line 349 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp25__length1 = loaded_services_length1; -#line 349 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (result_length1) { -#line 349 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - *result_length1 = _tmp25__length1; -#line 2553 "PublishingUI.c" - } -#line 349 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - result = _tmp25_; -#line 349 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (pluggables); -#line 349 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return result; -#line 2561 "PublishingUI.c" -} - - -static void -_vala_array_add60 (SpitPublishingService** * array, - int* length, - int* size, - SpitPublishingService* value) -{ -#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if ((*length) == (*size)) { -#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - *array = g_renew (SpitPublishingService*, *array, (*size) + 1); -#line 2577 "PublishingUI.c" - } -#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - (*array)[(*length)++] = value; -#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - (*array)[*length] = NULL; -#line 2583 "PublishingUI.c" -} - - -static void -_vala_array_add61 (SpitPublishingService** * array, - int* length, - int* size, - SpitPublishingService* value) -{ -#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if ((*length) == (*size)) { -#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - *array = g_renew (SpitPublishingService*, *array, (*size) + 1); -#line 2599 "PublishingUI.c" - } -#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - (*array)[(*length)++] = value; -#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - (*array)[*length] = NULL; -#line 2605 "PublishingUI.c" -} - - -static void -_vala_array_add62 (SpitPublishingService** * array, - int* length, - int* size, - SpitPublishingService* value) -{ -#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if ((*length) == (*size)) { -#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - *array = g_renew (SpitPublishingService*, *array, (*size) + 1); -#line 2621 "PublishingUI.c" - } -#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - (*array)[(*length)++] = value; -#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - (*array)[*length] = NULL; -#line 2627 "PublishingUI.c" -} - - -static SpitPublishingService** -publishing_ui_publishing_dialog_load_services (gboolean has_photos, - gboolean has_videos, - int* result_length1) -{ - SpitPublishingService** result = NULL; - gboolean _tmp0_ = FALSE; - SpitPublishingService** filtered_services = NULL; - SpitPublishingService** _tmp1_; - gint filtered_services_length1; - gint _filtered_services_size_; - SpitPublishingService** all_services = NULL; - gint _tmp2_; - SpitPublishingService** _tmp3_; - gint all_services_length1; - gint _all_services_size_; - SpitPublishingService** _tmp4_; - gint _tmp4__length1; - SpitPublishingService** _tmp22_; - gint _tmp22__length1; -#line 353 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (has_photos) { -#line 353 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = TRUE; -#line 2655 "PublishingUI.c" - } else { -#line 353 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = has_videos; -#line 2659 "PublishingUI.c" - } -#line 353 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _vala_assert (_tmp0_, "has_photos || has_videos"); -#line 355 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp1_ = g_new0 (SpitPublishingService*, 0 + 1); -#line 355 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - filtered_services = _tmp1_; -#line 355 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - filtered_services_length1 = 0; -#line 355 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _filtered_services_size_ = filtered_services_length1; -#line 356 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp3_ = publishing_ui_publishing_dialog_load_all_services (&_tmp2_); -#line 356 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - all_services = _tmp3_; -#line 356 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - all_services_length1 = _tmp2_; -#line 356 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _all_services_size_ = all_services_length1; -#line 358 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp4_ = all_services; -#line 358 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp4__length1 = all_services_length1; -#line 2683 "PublishingUI.c" - { - SpitPublishingService** service_collection = NULL; - gint service_collection_length1 = 0; - gint _service_collection_size_ = 0; - gint service_it = 0; -#line 358 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - service_collection = _tmp4_; -#line 358 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - service_collection_length1 = _tmp4__length1; -#line 358 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - for (service_it = 0; service_it < _tmp4__length1; service_it = service_it + 1) { -#line 2695 "PublishingUI.c" - SpitPublishingService* _tmp5_; - SpitPublishingService* service = NULL; -#line 358 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp5_ = _g_object_ref0 (service_collection[service_it]); -#line 358 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - service = _tmp5_; -#line 2702 "PublishingUI.c" - { - gboolean _tmp6_ = FALSE; -#line 360 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (has_photos) { -#line 360 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp6_ = !has_videos; -#line 2709 "PublishingUI.c" - } else { -#line 360 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp6_ = FALSE; -#line 2713 "PublishingUI.c" - } -#line 360 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (_tmp6_) { -#line 2717 "PublishingUI.c" - SpitPublishingService* _tmp7_; -#line 361 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp7_ = service; -#line 361 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if ((spit_publishing_service_get_supported_media (_tmp7_) & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) != 0) { -#line 2723 "PublishingUI.c" - SpitPublishingService** _tmp8_; - gint _tmp8__length1; - SpitPublishingService* _tmp9_; - SpitPublishingService* _tmp10_; -#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp8_ = filtered_services; -#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp8__length1 = filtered_services_length1; -#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp9_ = service; -#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp10_ = _g_object_ref0 (_tmp9_); -#line 362 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _vala_array_add60 (&filtered_services, &filtered_services_length1, &_filtered_services_size_, _tmp10_); -#line 2738 "PublishingUI.c" - } - } else { - gboolean _tmp11_ = FALSE; -#line 363 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (!has_photos) { -#line 363 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp11_ = has_videos; -#line 2746 "PublishingUI.c" - } else { -#line 363 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp11_ = FALSE; -#line 2750 "PublishingUI.c" - } -#line 363 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (_tmp11_) { -#line 2754 "PublishingUI.c" - SpitPublishingService* _tmp12_; -#line 364 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp12_ = service; -#line 364 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if ((spit_publishing_service_get_supported_media (_tmp12_) & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) != 0) { -#line 2760 "PublishingUI.c" - SpitPublishingService** _tmp13_; - gint _tmp13__length1; - SpitPublishingService* _tmp14_; - SpitPublishingService* _tmp15_; -#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp13_ = filtered_services; -#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp13__length1 = filtered_services_length1; -#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp14_ = service; -#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp15_ = _g_object_ref0 (_tmp14_); -#line 365 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _vala_array_add61 (&filtered_services, &filtered_services_length1, &_filtered_services_size_, _tmp15_); -#line 2775 "PublishingUI.c" - } - } else { - gboolean _tmp16_ = FALSE; - SpitPublishingService* _tmp17_; -#line 367 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp17_ = service; -#line 367 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if ((spit_publishing_service_get_supported_media (_tmp17_) & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO) != 0) { -#line 2784 "PublishingUI.c" - SpitPublishingService* _tmp18_; -#line 368 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp18_ = service; -#line 368 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp16_ = (spit_publishing_service_get_supported_media (_tmp18_) & SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) != 0; -#line 2790 "PublishingUI.c" - } else { -#line 367 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp16_ = FALSE; -#line 2794 "PublishingUI.c" - } -#line 367 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (_tmp16_) { -#line 2798 "PublishingUI.c" - SpitPublishingService** _tmp19_; - gint _tmp19__length1; - SpitPublishingService* _tmp20_; - SpitPublishingService* _tmp21_; -#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp19_ = filtered_services; -#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp19__length1 = filtered_services_length1; -#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp20_ = service; -#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp21_ = _g_object_ref0 (_tmp20_); -#line 369 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _vala_array_add62 (&filtered_services, &filtered_services_length1, &_filtered_services_size_, _tmp21_); -#line 2813 "PublishingUI.c" - } - } - } -#line 358 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (service); -#line 2819 "PublishingUI.c" - } - } - } -#line 373 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp22_ = filtered_services; -#line 373 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp22__length1 = filtered_services_length1; -#line 373 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (result_length1) { -#line 373 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - *result_length1 = _tmp22__length1; -#line 2831 "PublishingUI.c" - } -#line 373 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - result = _tmp22_; -#line 373 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - all_services = (_vala_array_free (all_services, all_services_length1, (GDestroyNotify) g_object_unref), NULL); -#line 373 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return result; -#line 2839 "PublishingUI.c" -} - - -void -publishing_ui_publishing_dialog_go (GeeCollection* to_publish) -{ - PublishingUIPublishingDialog* _tmp0_; - GTimer* _tmp1_; - GeeArrayList* photos = NULL; - GeeArrayList* _tmp10_; - GeeArrayList* videos = NULL; - GeeArrayList* _tmp11_; - GeeArrayList* _tmp12_; - GeeArrayList* _tmp13_; - SpitPublishingService** avail_services = NULL; - GeeArrayList* _tmp14_; - gint _tmp15_; - gint _tmp16_; - GeeArrayList* _tmp17_; - gint _tmp18_; - gint _tmp19_; - gint _tmp20_; - SpitPublishingService** _tmp21_; - gint avail_services_length1; - gint _avail_services_size_; - SpitPublishingService** _tmp22_; - gint _tmp22__length1; - PublishingUIPublishingDialog* _tmp25_; - PublishingUIPublishingDialog* _tmp26_; - GTimer* _tmp27_; -#line 387 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (GEE_IS_COLLECTION (to_publish)); -#line 388 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = publishing_ui_publishing_dialog_active_instance; -#line 388 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (_tmp0_ != NULL) { -#line 389 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return; -#line 2878 "PublishingUI.c" - } -#line 391 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp1_ = publishing_ui_publishing_dialog_since_last_start; -#line 391 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (_tmp1_ == NULL) { -#line 2884 "PublishingUI.c" - GTimer* _tmp2_; - GTimer* _tmp3_; - GTimer* _tmp4_; -#line 394 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp2_ = g_timer_new (); -#line 394 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_timer_destroy0 (publishing_ui_publishing_dialog_since_last_start); -#line 394 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_publishing_dialog_since_last_start = _tmp2_; -#line 395 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp3_ = publishing_ui_publishing_dialog_since_last_start; -#line 395 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_timer_stop (_tmp3_); -#line 396 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp4_ = publishing_ui_publishing_dialog_since_last_start; -#line 396 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_timer_reset (_tmp4_); -#line 397 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_publishing_dialog_elapsed_is_valid = FALSE; -#line 2904 "PublishingUI.c" - } else { - gdouble elapsed = 0.0; - GTimer* _tmp5_; - gdouble _tmp6_; - gboolean _tmp7_ = FALSE; - gdouble _tmp8_; -#line 399 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp5_ = publishing_ui_publishing_dialog_since_last_start; -#line 399 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp6_ = g_timer_elapsed (_tmp5_, NULL); -#line 399 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - elapsed = _tmp6_; -#line 400 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp8_ = elapsed; -#line 400 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (_tmp8_ < 0.05) { -#line 2921 "PublishingUI.c" - gboolean _tmp9_; -#line 400 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp9_ = publishing_ui_publishing_dialog_elapsed_is_valid; -#line 400 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp7_ = _tmp9_; -#line 2927 "PublishingUI.c" - } else { -#line 400 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp7_ = FALSE; -#line 2931 "PublishingUI.c" - } -#line 400 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (_tmp7_) { -#line 401 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return; -#line 2937 "PublishingUI.c" - } - } -#line 404 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp10_ = gee_array_list_new (TYPE_LIBRARY_PHOTO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 404 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - photos = _tmp10_; -#line 405 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp11_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 405 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - videos = _tmp11_; -#line 406 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp12_ = photos; -#line 406 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp13_ = videos; -#line 406 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - media_source_collection_filter_media (to_publish, G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp14_ = photos; -#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp15_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp16_ = _tmp15_; -#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp17_ = videos; -#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp18_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp19_ = _tmp18_; -#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp21_ = publishing_ui_publishing_dialog_load_services (_tmp16_ > 0, _tmp19_ > 0, &_tmp20_); -#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - avail_services = _tmp21_; -#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - avail_services_length1 = _tmp20_; -#line 408 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _avail_services_size_ = avail_services_length1; -#line 411 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp22_ = avail_services; -#line 411 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp22__length1 = avail_services_length1; -#line 411 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (_tmp22__length1 == 0) { -#line 2980 "PublishingUI.c" - gchar* _tmp23_; - gchar* _tmp24_; -#line 414 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp23_ = g_strdup_printf (_ ("Shotwell cannot publish the selected items because you do not have a c" \ -"ompatible publishing plugin enabled. To correct this, choose Edit %" \ -"s Preferences and enable one or more of the publishing plugins on " \ -"the Plugins tab."), "▸"); -#line 414 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp24_ = _tmp23_; -#line 414 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - app_window_error_message_with_title (_ ("Unable to publish"), _tmp24_, NULL, FALSE); -#line 414 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (_tmp24_); -#line 418 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - avail_services = (_vala_array_free (avail_services, avail_services_length1, (GDestroyNotify) g_object_unref), NULL); -#line 418 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (videos); -#line 418 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (photos); -#line 418 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return; -#line 2999 "PublishingUI.c" - } -#line 424 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_debug ("PublishingUI.vala:424: PublishingDialog.go( )"); -#line 426 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp25_ = publishing_ui_publishing_dialog_new (to_publish); -#line 426 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_object_ref_sink (_tmp25_); -#line 426 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (publishing_ui_publishing_dialog_active_instance); -#line 426 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_publishing_dialog_active_instance = _tmp25_; -#line 428 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp26_ = publishing_ui_publishing_dialog_active_instance; -#line 428 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_publishing_dialog_run (_tmp26_); -#line 430 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (publishing_ui_publishing_dialog_active_instance); -#line 430 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_publishing_dialog_active_instance = NULL; -#line 433 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp27_ = publishing_ui_publishing_dialog_since_last_start; -#line 433 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_timer_start (_tmp27_); -#line 434 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_publishing_dialog_elapsed_is_valid = TRUE; -#line 387 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - avail_services = (_vala_array_free (avail_services, avail_services_length1, (GDestroyNotify) g_object_unref), NULL); -#line 387 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (videos); -#line 387 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (photos); -#line 3031 "PublishingUI.c" -} - - -static gboolean -publishing_ui_publishing_dialog_on_window_close (PublishingUIPublishingDialog* self, - GdkEventAny* evt) -{ - gboolean result = FALSE; - SpitPublishingConcretePublishingHost* _tmp0_; -#line 437 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_val_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self), FALSE); -#line 437 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_val_if_fail (evt != NULL, FALSE); -#line 438 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = self->priv->host; -#line 438 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - spit_publishing_plugin_host_stop_publishing (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHost)); -#line 439 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->host); -#line 439 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->host = NULL; -#line 440 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 441 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 443 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - result = TRUE; -#line 443 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return result; -#line 3061 "PublishingUI.c" -} - - -static void -publishing_ui_publishing_dialog_on_service_changed (PublishingUIPublishingDialog* self) -{ - GtkTreeIter iter = {0}; - gboolean have_active_iter = FALSE; - GtkComboBox* _tmp0_; - GtkTreeIter _tmp1_ = {0}; - gboolean _tmp2_; - gboolean _tmp3_; - GValue service_name_val = {0}; - GtkListStore* _tmp7_; - GtkTreeIter _tmp8_; - GValue _tmp9_ = {0}; - gchar* service_name = NULL; - GValue _tmp10_; - gchar* _tmp11_; - SpitPublishingService* selected_service = NULL; - SpitPublishingService** services = NULL; - gint _tmp12_; - SpitPublishingService** _tmp13_; - gint services_length1; - gint _services_size_; - SpitPublishingService** _tmp14_; - gint _tmp14__length1; - SpitPublishingService* _tmp21_; - ConfigFacade* _tmp22_; - ConfigFacade* _tmp23_; - SpitPublishingService* _tmp24_; - const gchar* _tmp25_; - SpitPublishingService* _tmp26_; - SpitPublishingPublishable** _tmp27_; - gint _tmp27__length1; - SpitPublishingConcretePublishingHost* _tmp28_; - SpitPublishingConcretePublishingHost* _tmp29_; -#line 446 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self)); -#line 448 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - have_active_iter = FALSE; -#line 449 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = self->priv->service_selector_box; -#line 449 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp2_ = gtk_combo_box_get_active_iter (_tmp0_, &_tmp1_); -#line 449 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - iter = _tmp1_; -#line 449 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - have_active_iter = _tmp2_; -#line 452 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp3_ = have_active_iter; -#line 452 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (!_tmp3_) { -#line 3115 "PublishingUI.c" - GtkComboBox* _tmp4_; - GtkComboBox* _tmp5_; - GtkTreeIter _tmp6_ = {0}; -#line 454 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp4_ = self->priv->service_selector_box; -#line 454 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_combo_box_set_active (_tmp4_, 0); -#line 457 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp5_ = self->priv->service_selector_box; -#line 457 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_combo_box_get_active_iter (_tmp5_, &_tmp6_); -#line 457 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - iter = _tmp6_; -#line 3129 "PublishingUI.c" - } -#line 461 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp7_ = self->priv->service_selector_box_model; -#line 461 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp8_ = iter; -#line 461 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_tree_model_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp8_, 1, &_tmp9_); -#line 461 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - G_IS_VALUE (&service_name_val) ? (g_value_unset (&service_name_val), NULL) : NULL; -#line 461 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - service_name_val = _tmp9_; -#line 463 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp10_ = service_name_val; -#line 463 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp11_ = g_strdup (g_value_get_string (&_tmp10_)); -#line 463 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - service_name = _tmp11_; -#line 465 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - selected_service = NULL; -#line 466 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp13_ = publishing_ui_publishing_dialog_load_all_services (&_tmp12_); -#line 466 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - services = _tmp13_; -#line 466 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - services_length1 = _tmp12_; -#line 466 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _services_size_ = services_length1; -#line 467 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp14_ = services; -#line 467 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp14__length1 = services_length1; -#line 3161 "PublishingUI.c" - { - SpitPublishingService** service_collection = NULL; - gint service_collection_length1 = 0; - gint _service_collection_size_ = 0; - gint service_it = 0; -#line 467 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - service_collection = _tmp14_; -#line 467 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - service_collection_length1 = _tmp14__length1; -#line 467 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - for (service_it = 0; service_it < _tmp14__length1; service_it = service_it + 1) { -#line 3173 "PublishingUI.c" - SpitPublishingService* _tmp15_; - SpitPublishingService* service = NULL; -#line 467 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp15_ = _g_object_ref0 (service_collection[service_it]); -#line 467 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - service = _tmp15_; -#line 3180 "PublishingUI.c" - { - SpitPublishingService* _tmp16_; - const gchar* _tmp17_; - const gchar* _tmp18_; -#line 468 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp16_ = service; -#line 468 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp17_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 468 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp18_ = service_name; -#line 468 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (g_strcmp0 (_tmp17_, _tmp18_) == 0) { -#line 3193 "PublishingUI.c" - SpitPublishingService* _tmp19_; - SpitPublishingService* _tmp20_; -#line 469 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp19_ = service; -#line 469 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp20_ = _g_object_ref0 (_tmp19_); -#line 469 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (selected_service); -#line 469 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - selected_service = _tmp20_; -#line 470 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (service); -#line 470 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - break; -#line 3208 "PublishingUI.c" - } -#line 467 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (service); -#line 3212 "PublishingUI.c" - } - } - } -#line 473 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp21_ = selected_service; -#line 473 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _vala_assert (_tmp21_ != NULL, "selected_service != null"); -#line 475 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp22_ = config_facade_get_instance (); -#line 475 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp23_ = _tmp22_; -#line 475 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp24_ = selected_service; -#line 475 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp25_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 475 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - configuration_facade_set_last_used_service (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp25_); -#line 475 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (_tmp23_); -#line 477 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp26_ = selected_service; -#line 477 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp27_ = self->priv->publishables; -#line 477 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp27__length1 = self->priv->publishables_length1; -#line 477 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp28_ = spit_publishing_concrete_publishing_host_new (_tmp26_, self, _tmp27_, _tmp27__length1); -#line 477 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->host); -#line 477 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->host = _tmp28_; -#line 478 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp29_ = self->priv->host; -#line 478 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - spit_publishing_concrete_publishing_host_start_publishing (_tmp29_); -#line 446 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - services = (_vala_array_free (services, services_length1, (GDestroyNotify) g_object_unref), NULL); -#line 446 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (selected_service); -#line 446 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_free0 (service_name); -#line 446 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - G_IS_VALUE (&service_name_val) ? (g_value_unset (&service_name_val), NULL) : NULL; -#line 3256 "PublishingUI.c" -} - - -static void -publishing_ui_publishing_dialog_on_close_cancel_clicked (PublishingUIPublishingDialog* self) -{ - SpitPublishingConcretePublishingHost* _tmp0_; -#line 481 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self)); -#line 482 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_debug ("PublishingUI.vala:482: PublishingDialog: on_close_cancel_clicked( ): i" \ -"nvoked."); -#line 484 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = self->priv->host; -#line 484 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - spit_publishing_plugin_host_stop_publishing (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PLUGIN_HOST, SpitPublishingPluginHost)); -#line 485 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->host); -#line 485 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->host = NULL; -#line 486 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 487 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 3280 "PublishingUI.c" -} - - -static void -publishing_ui_publishing_dialog_set_large_window_mode (PublishingUIPublishingDialog* self) -{ - GtkBox* _tmp0_; -#line 490 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self)); -#line 491 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), PUBLISHING_UI_PUBLISHING_DIALOG_LARGE_WINDOW_WIDTH, PUBLISHING_UI_PUBLISHING_DIALOG_LARGE_WINDOW_HEIGHT); -#line 492 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = self->priv->central_area_layouter; -#line 492 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), PUBLISHING_UI_PUBLISHING_DIALOG_LARGE_WINDOW_WIDTH - PUBLISHING_UI_PUBLISHING_DIALOG_BORDER_REGION_WIDTH, PUBLISHING_UI_PUBLISHING_DIALOG_LARGE_WINDOW_HEIGHT - PUBLISHING_UI_PUBLISHING_DIALOG_BORDER_REGION_HEIGHT); -#line 494 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE); -#line 3298 "PublishingUI.c" -} - - -static void -publishing_ui_publishing_dialog_set_colossal_window_mode (PublishingUIPublishingDialog* self) -{ - GtkBox* _tmp0_; -#line 497 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self)); -#line 498 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), PUBLISHING_UI_PUBLISHING_DIALOG_COLOSSAL_WINDOW_WIDTH, PUBLISHING_UI_PUBLISHING_DIALOG_COLOSSAL_WINDOW_HEIGHT); -#line 499 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = self->priv->central_area_layouter; -#line 499 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), PUBLISHING_UI_PUBLISHING_DIALOG_COLOSSAL_WINDOW_WIDTH - PUBLISHING_UI_PUBLISHING_DIALOG_BORDER_REGION_WIDTH, PUBLISHING_UI_PUBLISHING_DIALOG_COLOSSAL_WINDOW_HEIGHT - PUBLISHING_UI_PUBLISHING_DIALOG_BORDER_REGION_HEIGHT); -#line 501 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE); -#line 3316 "PublishingUI.c" -} - - -static void -publishing_ui_publishing_dialog_set_standard_window_mode (PublishingUIPublishingDialog* self) -{ - GtkBox* _tmp0_; -#line 504 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self)); -#line 505 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), PUBLISHING_UI_PUBLISHING_DIALOG_STANDARD_WINDOW_WIDTH, PUBLISHING_UI_PUBLISHING_DIALOG_STANDARD_WINDOW_HEIGHT); -#line 506 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = self->priv->central_area_layouter; -#line 506 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_size_request (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), PUBLISHING_UI_PUBLISHING_DIALOG_STANDARD_WINDOW_WIDTH - PUBLISHING_UI_PUBLISHING_DIALOG_BORDER_REGION_WIDTH, PUBLISHING_UI_PUBLISHING_DIALOG_STANDARD_WINDOW_HEIGHT - PUBLISHING_UI_PUBLISHING_DIALOG_BORDER_REGION_HEIGHT); -#line 508 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE); -#line 3334 "PublishingUI.c" -} - - -static void -publishing_ui_publishing_dialog_set_free_sizable_window_mode (PublishingUIPublishingDialog* self) -{ -#line 511 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self)); -#line 512 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), TRUE); -#line 3345 "PublishingUI.c" -} - - -static void -publishing_ui_publishing_dialog_clear_free_sizable_window_mode (PublishingUIPublishingDialog* self) -{ -#line 515 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self)); -#line 516 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), FALSE); -#line 3356 "PublishingUI.c" -} - - -SpitPublishingDialogPane* -publishing_ui_publishing_dialog_get_active_pane (PublishingUIPublishingDialog* self) -{ - SpitPublishingDialogPane* result = NULL; - SpitPublishingDialogPane* _tmp0_; - SpitPublishingDialogPane* _tmp1_; -#line 519 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_val_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self), NULL); -#line 520 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = self->priv->active_pane; -#line 520 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 520 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - result = _tmp1_; -#line 520 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return result; -#line 3376 "PublishingUI.c" -} - - -void -publishing_ui_publishing_dialog_set_close_button_mode (PublishingUIPublishingDialog* self) -{ - GtkButton* _tmp0_; - GtkButton* _tmp1_; -#line 523 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self)); -#line 524 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = self->priv->close_cancel_button; -#line 524 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_button_set_label (_tmp0_, _ ("_Close")); -#line 525 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp1_ = self->priv->close_cancel_button; -#line 525 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_window_set_default (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 3395 "PublishingUI.c" -} - - -void -publishing_ui_publishing_dialog_set_cancel_button_mode (PublishingUIPublishingDialog* self) -{ - GtkButton* _tmp0_; -#line 528 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self)); -#line 529 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = self->priv->close_cancel_button; -#line 529 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_button_set_label (_tmp0_, _ ("_Cancel")); -#line 3409 "PublishingUI.c" -} - - -void -publishing_ui_publishing_dialog_lock_service (PublishingUIPublishingDialog* self) -{ - GtkComboBox* _tmp0_; -#line 532 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self)); -#line 533 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = self->priv->service_selector_box; -#line 533 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 3423 "PublishingUI.c" -} - - -void -publishing_ui_publishing_dialog_unlock_service (PublishingUIPublishingDialog* self) -{ - GtkComboBox* _tmp0_; -#line 536 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self)); -#line 537 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = self->priv->service_selector_box; -#line 537 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), TRUE); -#line 3437 "PublishingUI.c" -} - - -void -publishing_ui_publishing_dialog_install_pane (PublishingUIPublishingDialog* self, - SpitPublishingDialogPane* pane) -{ - SpitPublishingDialogPane* _tmp0_; - GtkBox* _tmp6_; - GtkWidget* _tmp7_; - GtkWidget* _tmp8_; - SpitPublishingDialogPaneGeometryOptions geometry_options = 0; - SpitPublishingDialogPaneGeometryOptions _tmp9_; - SpitPublishingDialogPaneGeometryOptions _tmp11_; - SpitPublishingDialogPane* _tmp12_; -#line 540 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self)); -#line 540 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_if_fail (SPIT_PUBLISHING_IS_DIALOG_PANE (pane)); -#line 541 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_debug ("PublishingUI.vala:541: PublishingDialog: install_pane( ): invoked."); -#line 543 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp0_ = self->priv->active_pane; -#line 543 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if (_tmp0_ != NULL) { -#line 3463 "PublishingUI.c" - SpitPublishingDialogPane* _tmp1_; - GtkBox* _tmp2_; - SpitPublishingDialogPane* _tmp3_; - GtkWidget* _tmp4_; - GtkWidget* _tmp5_; -#line 544 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_debug ("PublishingUI.vala:544: PublishingDialog: install_pane( ): a pane is al" \ -"ready installed; removing it."); -#line 546 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp1_ = self->priv->active_pane; -#line 546 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - spit_publishing_dialog_pane_on_pane_uninstalled (_tmp1_); -#line 547 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp2_ = self->priv->central_area_layouter; -#line 547 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp3_ = self->priv->active_pane; -#line 547 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp4_ = spit_publishing_dialog_pane_get_widget (_tmp3_); -#line 547 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp5_ = _tmp4_; -#line 547 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_container_get_type (), GtkContainer), _tmp5_); -#line 547 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (_tmp5_); -#line 3487 "PublishingUI.c" - } -#line 550 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp6_ = self->priv->central_area_layouter; -#line 550 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp7_ = spit_publishing_dialog_pane_get_widget (pane); -#line 550 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp8_ = _tmp7_; -#line 550 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_box_pack_start (_tmp6_, _tmp8_, TRUE, TRUE, (guint) 0); -#line 550 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (_tmp8_); -#line 551 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 553 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - geometry_options = spit_publishing_dialog_pane_get_preferred_geometry (pane); -#line 555 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp9_ = geometry_options; -#line 555 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if ((_tmp9_ & SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_EXTENDED_SIZE) != 0) { -#line 556 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_publishing_dialog_set_large_window_mode (self); -#line 3509 "PublishingUI.c" - } else { - SpitPublishingDialogPaneGeometryOptions _tmp10_; -#line 557 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp10_ = geometry_options; -#line 557 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if ((_tmp10_ & SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_COLOSSAL_SIZE) != 0) { -#line 558 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_publishing_dialog_set_colossal_window_mode (self); -#line 3518 "PublishingUI.c" - } else { -#line 560 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_publishing_dialog_set_standard_window_mode (self); -#line 3522 "PublishingUI.c" - } - } -#line 562 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp11_ = geometry_options; -#line 562 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - if ((_tmp11_ & SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_RESIZABLE) != 0) { -#line 563 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_publishing_dialog_set_free_sizable_window_mode (self); -#line 3531 "PublishingUI.c" - } else { -#line 565 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_publishing_dialog_clear_free_sizable_window_mode (self); -#line 3535 "PublishingUI.c" - } -#line 567 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _tmp12_ = _g_object_ref0 (pane); -#line 567 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->active_pane); -#line 567 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->active_pane = _tmp12_; -#line 568 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - spit_publishing_dialog_pane_on_pane_installed (pane); -#line 3545 "PublishingUI.c" -} - - -gint -publishing_ui_publishing_dialog_run (PublishingUIPublishingDialog* self) -{ - gint result = 0; - gint _result_ = 0; -#line 571 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_return_val_if_fail (PUBLISHING_UI_IS_PUBLISHING_DIALOG (self), 0); -#line 572 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_publishing_dialog_on_service_changed (self); -#line 574 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _result_ = gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 576 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->host); -#line 576 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->host = NULL; -#line 578 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - result = _result_; -#line 578 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - return result; -#line 3568 "PublishingUI.c" -} - - -static void -publishing_ui_publishing_dialog_class_init (PublishingUIPublishingDialogClass * klass) -{ -#line 137 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - publishing_ui_publishing_dialog_parent_class = g_type_class_peek_parent (klass); -#line 137 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - g_type_class_add_private (klass, sizeof (PublishingUIPublishingDialogPrivate)); -#line 137 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - G_OBJECT_CLASS (klass)->finalize = publishing_ui_publishing_dialog_finalize; -#line 3581 "PublishingUI.c" -} - - -static void -publishing_ui_publishing_dialog_instance_init (PublishingUIPublishingDialog * self) -{ -#line 137 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv = PUBLISHING_UI_PUBLISHING_DIALOG_GET_PRIVATE (self); -#line 3590 "PublishingUI.c" -} - - -static void -publishing_ui_publishing_dialog_finalize (GObject * obj) -{ - PublishingUIPublishingDialog * self; -#line 137 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_UI_TYPE_PUBLISHING_DIALOG, PublishingUIPublishingDialog); -#line 152 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->service_selector_box_model); -#line 153 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->service_selector_box); -#line 154 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->central_area_layouter); -#line 155 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->close_cancel_button); -#line 156 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->active_pane); -#line 157 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - self->priv->publishables = (_vala_array_free (self->priv->publishables, self->priv->publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 158 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - _g_object_unref0 (self->priv->host); -#line 159 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - spit_pluggable_info_destroy (&self->priv->info); -#line 137 "/home/jens/Source/shotwell/src/publishing/PublishingUI.vala" - G_OBJECT_CLASS (publishing_ui_publishing_dialog_parent_class)->finalize (obj); -#line 3618 "PublishingUI.c" -} - - -GType -publishing_ui_publishing_dialog_get_type (void) -{ - static volatile gsize publishing_ui_publishing_dialog_type_id__volatile = 0; - if (g_once_init_enter (&publishing_ui_publishing_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (PublishingUIPublishingDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) publishing_ui_publishing_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PublishingUIPublishingDialog), 0, (GInstanceInitFunc) publishing_ui_publishing_dialog_instance_init, NULL }; - GType publishing_ui_publishing_dialog_type_id; - publishing_ui_publishing_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "PublishingUIPublishingDialog", &g_define_type_info, 0); - g_once_init_leave (&publishing_ui_publishing_dialog_type_id__volatile, publishing_ui_publishing_dialog_type_id); - } - return publishing_ui_publishing_dialog_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/searches/SavedSearchDialog.c b/src/searches/SavedSearchDialog.c deleted file mode 100644 index 65e6df1..0000000 --- a/src/searches/SavedSearchDialog.c +++ /dev/null @@ -1,6239 +0,0 @@ -/* SavedSearchDialog.c generated by valac 0.40.4, the Vala compiler - * generated from SavedSearchDialog.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/* This dialog displays a boolean search configuration.*/ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SAVED_SEARCH_DIALOG (saved_search_dialog_get_type ()) -#define SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialog)) -#define SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass)) -#define IS_SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_DIALOG)) -#define IS_SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_DIALOG)) -#define SAVED_SEARCH_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass)) - -typedef struct _SavedSearchDialog SavedSearchDialog; -typedef struct _SavedSearchDialogClass SavedSearchDialogClass; -typedef struct _SavedSearchDialogPrivate SavedSearchDialogPrivate; - -#define SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER (saved_search_dialog_search_row_container_get_type ()) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, SavedSearchDialogSearchRowContainer)) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, SavedSearchDialogSearchRowContainerClass)) -#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER)) -#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER)) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, SavedSearchDialogSearchRowContainerClass)) - -typedef struct _SavedSearchDialogSearchRowContainer SavedSearchDialogSearchRowContainer; -typedef struct _SavedSearchDialogSearchRowContainerClass SavedSearchDialogSearchRowContainerClass; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_SAVED_SEARCH (saved_search_get_type ()) -#define SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH, SavedSearch)) -#define SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH, SavedSearchClass)) -#define IS_SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH)) -#define IS_SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH)) -#define SAVED_SEARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH, SavedSearchClass)) - -typedef struct _SavedSearch SavedSearch; -typedef struct _SavedSearchClass SavedSearchClass; -enum { - SAVED_SEARCH_DIALOG_0_PROPERTY, - SAVED_SEARCH_DIALOG_NUM_PROPERTIES -}; -static GParamSpec* saved_search_dialog_properties[SAVED_SEARCH_DIALOG_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_SAVED_SEARCH_TABLE (saved_search_table_get_type ()) -#define SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTable)) -#define SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass)) -#define IS_SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_TABLE)) -#define IS_SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_TABLE)) -#define SAVED_SEARCH_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass)) - -typedef struct _SavedSearchTable SavedSearchTable; -typedef struct _SavedSearchTableClass SavedSearchTableClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _saved_search_table_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_table_unref (var), NULL))) -#define _saved_search_dialog_search_row_container_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_dialog_search_row_container_unref (var), NULL))) - -#define TYPE_SEARCH_OPERATOR (search_operator_get_type ()) - -#define TYPE_SEARCH_CONDITION (search_condition_get_type ()) -#define SEARCH_CONDITION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION, SearchCondition)) -#define SEARCH_CONDITION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION, SearchConditionClass)) -#define IS_SEARCH_CONDITION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION)) -#define IS_SEARCH_CONDITION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION)) -#define SEARCH_CONDITION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION, SearchConditionClass)) - -typedef struct _SearchCondition SearchCondition; -typedef struct _SearchConditionClass SearchConditionClass; -#define _search_condition_unref0(var) ((var == NULL) ? NULL : (var = (search_condition_unref (var), NULL))) - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; -typedef struct _SavedSearchDialogSearchRowContainerPrivate SavedSearchDialogSearchRowContainerPrivate; - -#define SEARCH_CONDITION_TYPE_SEARCH_TYPE (search_condition_search_type_get_type ()) - -#define SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW (saved_search_dialog_search_row_get_type ()) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRow)) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRowClass)) -#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW)) -#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW)) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRowClass)) - -typedef struct _SavedSearchDialogSearchRow SavedSearchDialogSearchRow; -typedef struct _SavedSearchDialogSearchRowClass SavedSearchDialogSearchRowClass; -#define _saved_search_dialog_search_row_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_dialog_search_row_unref (var), NULL))) - -#define SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT (saved_search_dialog_search_row_text_get_type ()) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowText)) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowTextClass)) -#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT)) -#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT)) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowTextClass)) - -typedef struct _SavedSearchDialogSearchRowText SavedSearchDialogSearchRowText; -typedef struct _SavedSearchDialogSearchRowTextClass SavedSearchDialogSearchRowTextClass; - -#define SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE (saved_search_dialog_search_row_media_type_get_type ()) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_MEDIA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaType)) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_MEDIA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaTypeClass)) -#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_MEDIA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE)) -#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_MEDIA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE)) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_MEDIA_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaTypeClass)) - -typedef struct _SavedSearchDialogSearchRowMediaType SavedSearchDialogSearchRowMediaType; -typedef struct _SavedSearchDialogSearchRowMediaTypeClass SavedSearchDialogSearchRowMediaTypeClass; - -#define SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED (saved_search_dialog_search_row_flagged_get_type ()) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_FLAGGED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlagged)) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_FLAGGED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlaggedClass)) -#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_FLAGGED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED)) -#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_FLAGGED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED)) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_FLAGGED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlaggedClass)) - -typedef struct _SavedSearchDialogSearchRowFlagged SavedSearchDialogSearchRowFlagged; -typedef struct _SavedSearchDialogSearchRowFlaggedClass SavedSearchDialogSearchRowFlaggedClass; - -#define SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED (saved_search_dialog_search_row_modified_get_type ()) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModified)) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModifiedClass)) -#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED)) -#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED)) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_MODIFIED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModifiedClass)) - -typedef struct _SavedSearchDialogSearchRowModified SavedSearchDialogSearchRowModified; -typedef struct _SavedSearchDialogSearchRowModifiedClass SavedSearchDialogSearchRowModifiedClass; - -#define SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING (saved_search_dialog_search_row_rating_get_type ()) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_RATING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRating)) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRatingClass)) -#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_RATING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING)) -#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING)) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_RATING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRatingClass)) - -typedef struct _SavedSearchDialogSearchRowRating SavedSearchDialogSearchRowRating; -typedef struct _SavedSearchDialogSearchRowRatingClass SavedSearchDialogSearchRowRatingClass; - -#define SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE (saved_search_dialog_search_row_date_get_type ()) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_DATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDate)) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDateClass)) -#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE)) -#define SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE)) -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_DATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDateClass)) - -typedef struct _SavedSearchDialogSearchRowDate SavedSearchDialogSearchRowDate; -typedef struct _SavedSearchDialogSearchRowDateClass SavedSearchDialogSearchRowDateClass; -typedef struct _SavedSearchDialogParamSpecSearchRowContainer SavedSearchDialogParamSpecSearchRowContainer; -enum { - SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_REMOVE_SIGNAL, - SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL, - SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_NUM_SIGNALS -}; -static guint saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_NUM_SIGNALS] = {0}; -typedef struct _SavedSearchDialogSearchRowPrivate SavedSearchDialogSearchRowPrivate; -typedef struct _SavedSearchDialogParamSpecSearchRow SavedSearchDialogParamSpecSearchRow; -typedef struct _SavedSearchDialogSearchRowTextPrivate SavedSearchDialogSearchRowTextPrivate; - -#define SEARCH_CONDITION_TEXT_TYPE_CONTEXT (search_condition_text_context_get_type ()) - -#define TYPE_SEARCH_CONDITION_TEXT (search_condition_text_get_type ()) -#define SEARCH_CONDITION_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_TEXT, SearchConditionText)) -#define SEARCH_CONDITION_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_TEXT, SearchConditionTextClass)) -#define IS_SEARCH_CONDITION_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_TEXT)) -#define IS_SEARCH_CONDITION_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_TEXT)) -#define SEARCH_CONDITION_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_TEXT, SearchConditionTextClass)) - -typedef struct _SearchConditionText SearchConditionText; -typedef struct _SearchConditionTextClass SearchConditionTextClass; -typedef struct _SavedSearchDialogSearchRowMediaTypePrivate SavedSearchDialogSearchRowMediaTypePrivate; - -#define SEARCH_CONDITION_MEDIA_TYPE_TYPE_CONTEXT (search_condition_media_type_context_get_type ()) - -#define SEARCH_CONDITION_MEDIA_TYPE_TYPE_MEDIA_TYPE (search_condition_media_type_media_type_get_type ()) - -#define TYPE_SEARCH_CONDITION_MEDIA_TYPE (search_condition_media_type_get_type ()) -#define SEARCH_CONDITION_MEDIA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaType)) -#define SEARCH_CONDITION_MEDIA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaTypeClass)) -#define IS_SEARCH_CONDITION_MEDIA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE)) -#define IS_SEARCH_CONDITION_MEDIA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_MEDIA_TYPE)) -#define SEARCH_CONDITION_MEDIA_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaTypeClass)) - -typedef struct _SearchConditionMediaType SearchConditionMediaType; -typedef struct _SearchConditionMediaTypeClass SearchConditionMediaTypeClass; -typedef struct _SavedSearchDialogSearchRowModifiedPrivate SavedSearchDialogSearchRowModifiedPrivate; - -#define SEARCH_CONDITION_MODIFIED_TYPE_CONTEXT (search_condition_modified_context_get_type ()) - -#define SEARCH_CONDITION_MODIFIED_TYPE_STATE (search_condition_modified_state_get_type ()) - -#define TYPE_SEARCH_CONDITION_MODIFIED (search_condition_modified_get_type ()) -#define SEARCH_CONDITION_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModified)) -#define SEARCH_CONDITION_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModifiedClass)) -#define IS_SEARCH_CONDITION_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_MODIFIED)) -#define IS_SEARCH_CONDITION_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_MODIFIED)) -#define SEARCH_CONDITION_MODIFIED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModifiedClass)) - -typedef struct _SearchConditionModified SearchConditionModified; -typedef struct _SearchConditionModifiedClass SearchConditionModifiedClass; -typedef struct _SavedSearchDialogSearchRowFlaggedPrivate SavedSearchDialogSearchRowFlaggedPrivate; - -#define SEARCH_CONDITION_FLAGGED_TYPE_STATE (search_condition_flagged_state_get_type ()) - -#define TYPE_SEARCH_CONDITION_FLAGGED (search_condition_flagged_get_type ()) -#define SEARCH_CONDITION_FLAGGED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlagged)) -#define SEARCH_CONDITION_FLAGGED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlaggedClass)) -#define IS_SEARCH_CONDITION_FLAGGED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_FLAGGED)) -#define IS_SEARCH_CONDITION_FLAGGED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_FLAGGED)) -#define SEARCH_CONDITION_FLAGGED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlaggedClass)) - -typedef struct _SearchConditionFlagged SearchConditionFlagged; -typedef struct _SearchConditionFlaggedClass SearchConditionFlaggedClass; -typedef struct _SavedSearchDialogSearchRowRatingPrivate SavedSearchDialogSearchRowRatingPrivate; - -#define TYPE_RATING (rating_get_type ()) - -#define SEARCH_CONDITION_RATING_TYPE_CONTEXT (search_condition_rating_context_get_type ()) - -#define TYPE_SEARCH_CONDITION_RATING (search_condition_rating_get_type ()) -#define SEARCH_CONDITION_RATING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_RATING, SearchConditionRating)) -#define SEARCH_CONDITION_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_RATING, SearchConditionRatingClass)) -#define IS_SEARCH_CONDITION_RATING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_RATING)) -#define IS_SEARCH_CONDITION_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_RATING)) -#define SEARCH_CONDITION_RATING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_RATING, SearchConditionRatingClass)) - -typedef struct _SearchConditionRating SearchConditionRating; -typedef struct _SearchConditionRatingClass SearchConditionRatingClass; -typedef struct _SavedSearchDialogSearchRowDatePrivate SavedSearchDialogSearchRowDatePrivate; - -#define SEARCH_CONDITION_DATE_TYPE_CONTEXT (search_condition_date_context_get_type ()) -#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL))) - -#define TYPE_SEARCH_CONDITION_DATE (search_condition_date_get_type ()) -#define SEARCH_CONDITION_DATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_DATE, SearchConditionDate)) -#define SEARCH_CONDITION_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_DATE, SearchConditionDateClass)) -#define IS_SEARCH_CONDITION_DATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_DATE)) -#define IS_SEARCH_CONDITION_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_DATE)) -#define SEARCH_CONDITION_DATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_DATE, SearchConditionDateClass)) - -typedef struct _SearchConditionDate SearchConditionDate; -typedef struct _SearchConditionDateClass SearchConditionDateClass; -typedef struct _Block10Data Block10Data; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _SavedSearchDialog { - GtkDialog parent_instance; - SavedSearchDialogPrivate * priv; -}; - -struct _SavedSearchDialogClass { - GtkDialogClass parent_class; -}; - -struct _SavedSearchDialogPrivate { - GtkButton* add_criteria; - GtkComboBoxText* operator; - GtkEntry* search_title; - GtkListBox* row_listbox; - GeeArrayList* row_list; - gboolean edit_mode; - SavedSearch* previous_search; - gboolean valid; -}; - -typedef enum { - SEARCH_OPERATOR_ANY = 0, - SEARCH_OPERATOR_ALL, - SEARCH_OPERATOR_NONE -} SearchOperator; - -struct _SavedSearchDialogSearchRowContainer { - GTypeInstance parent_instance; - volatile int ref_count; - SavedSearchDialogSearchRowContainerPrivate * priv; -}; - -struct _SavedSearchDialogSearchRowContainerClass { - GTypeClass parent_class; - void (*finalize) (SavedSearchDialogSearchRowContainer *self); -}; - -typedef enum { - SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT = 0, - SEARCH_CONDITION_SEARCH_TYPE_TITLE, - SEARCH_CONDITION_SEARCH_TYPE_TAG, - SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME, - SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME, - SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE, - SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE, - SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE, - SEARCH_CONDITION_SEARCH_TYPE_RATING, - SEARCH_CONDITION_SEARCH_TYPE_COMMENT, - SEARCH_CONDITION_SEARCH_TYPE_DATE -} SearchConditionSearchType; - -struct _SavedSearchDialogSearchRowContainerPrivate { - GtkComboBoxText* type_combo; - GtkBox* box; - GtkButton* remove_button; - SearchConditionSearchType* search_types; - gint search_types_length1; - gint _search_types_size_; - GeeHashMap* search_types_index; - SavedSearchDialogSearchRow* my_row; -}; - -struct _SavedSearchDialogParamSpecSearchRowContainer { - GParamSpec parent_instance; -}; - -struct _SavedSearchDialogSearchRow { - GTypeInstance parent_instance; - volatile int ref_count; - SavedSearchDialogSearchRowPrivate * priv; -}; - -struct _SavedSearchDialogSearchRowClass { - GTypeClass parent_class; - void (*finalize) (SavedSearchDialogSearchRow *self); - GtkWidget* (*get_widget) (SavedSearchDialogSearchRow* self); - SearchCondition* (*get_search_condition) (SavedSearchDialogSearchRow* self); - void (*populate) (SavedSearchDialogSearchRow* self, SearchCondition* sc); - gboolean (*is_complete) (SavedSearchDialogSearchRow* self); -}; - -struct _SavedSearchDialogParamSpecSearchRow { - GParamSpec parent_instance; -}; - -struct _SavedSearchDialogSearchRowText { - SavedSearchDialogSearchRow parent_instance; - SavedSearchDialogSearchRowTextPrivate * priv; -}; - -struct _SavedSearchDialogSearchRowTextClass { - SavedSearchDialogSearchRowClass parent_class; -}; - -struct _SavedSearchDialogSearchRowTextPrivate { - GtkBox* box; - GtkComboBoxText* text_context; - GtkEntry* entry; - SavedSearchDialogSearchRowContainer* parent; -}; - -typedef enum { - SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS = 0, - SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY, - SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH, - SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH, - SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN, - SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET, - SEARCH_CONDITION_TEXT_CONTEXT_IS_SET -} SearchConditionTextContext; - -struct _SavedSearchDialogSearchRowMediaType { - SavedSearchDialogSearchRow parent_instance; - SavedSearchDialogSearchRowMediaTypePrivate * priv; -}; - -struct _SavedSearchDialogSearchRowMediaTypeClass { - SavedSearchDialogSearchRowClass parent_class; -}; - -struct _SavedSearchDialogSearchRowMediaTypePrivate { - GtkBox* box; - GtkComboBoxText* media_context; - GtkComboBoxText* media_type; - SavedSearchDialogSearchRowContainer* parent; -}; - -typedef enum { - SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS = 0, - SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT -} SearchConditionMediaTypeContext; - -typedef enum { - SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL = 0, - SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW, - SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO -} SearchConditionMediaTypeMediaType; - -struct _SavedSearchDialogSearchRowModified { - SavedSearchDialogSearchRow parent_instance; - SavedSearchDialogSearchRowModifiedPrivate * priv; -}; - -struct _SavedSearchDialogSearchRowModifiedClass { - SavedSearchDialogSearchRowClass parent_class; -}; - -struct _SavedSearchDialogSearchRowModifiedPrivate { - GtkBox* box; - GtkComboBoxText* modified_context; - GtkComboBoxText* modified_state; - SavedSearchDialogSearchRowContainer* parent; -}; - -typedef enum { - SEARCH_CONDITION_MODIFIED_CONTEXT_HAS = 0, - SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO -} SearchConditionModifiedContext; - -typedef enum { - SEARCH_CONDITION_MODIFIED_STATE_MODIFIED = 0, - SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES, - SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES -} SearchConditionModifiedState; - -struct _SavedSearchDialogSearchRowFlagged { - SavedSearchDialogSearchRow parent_instance; - SavedSearchDialogSearchRowFlaggedPrivate * priv; -}; - -struct _SavedSearchDialogSearchRowFlaggedClass { - SavedSearchDialogSearchRowClass parent_class; -}; - -struct _SavedSearchDialogSearchRowFlaggedPrivate { - GtkBox* box; - GtkComboBoxText* flagged_state; - SavedSearchDialogSearchRowContainer* parent; -}; - -typedef enum { - SEARCH_CONDITION_FLAGGED_STATE_FLAGGED = 0, - SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED -} SearchConditionFlaggedState; - -struct _SavedSearchDialogSearchRowRating { - SavedSearchDialogSearchRow parent_instance; - SavedSearchDialogSearchRowRatingPrivate * priv; -}; - -struct _SavedSearchDialogSearchRowRatingClass { - SavedSearchDialogSearchRowClass parent_class; -}; - -struct _SavedSearchDialogSearchRowRatingPrivate { - GtkBox* box; - GtkComboBoxText* rating; - GtkComboBoxText* context; - SavedSearchDialogSearchRowContainer* parent; -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER = 0, - SEARCH_CONDITION_RATING_CONTEXT_ONLY, - SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER -} SearchConditionRatingContext; - -struct _SavedSearchDialogSearchRowDate { - SavedSearchDialogSearchRow parent_instance; - SavedSearchDialogSearchRowDatePrivate * priv; -}; - -struct _SavedSearchDialogSearchRowDateClass { - SavedSearchDialogSearchRowClass parent_class; -}; - -struct _SavedSearchDialogSearchRowDatePrivate { - GtkBox* box; - GtkComboBoxText* context; - GtkButton* label_one; - GtkButton* label_two; - GtkCalendar* cal_one; - GtkCalendar* cal_two; - GtkLabel* and; - SavedSearchDialogSearchRowContainer* parent; -}; - -typedef enum { - SEARCH_CONDITION_DATE_CONTEXT_EXACT = 0, - SEARCH_CONDITION_DATE_CONTEXT_AFTER, - SEARCH_CONDITION_DATE_CONTEXT_BEFORE, - SEARCH_CONDITION_DATE_CONTEXT_BETWEEN, - SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET -} SearchConditionDateContext; - -struct _Block10Data { - int _ref_count_; - SavedSearchDialogSearchRowDate* self; - GtkDialog* d; -}; - - -static gpointer saved_search_dialog_parent_class = NULL; -static gpointer saved_search_dialog_search_row_container_parent_class = NULL; -static gpointer saved_search_dialog_search_row_parent_class = NULL; -static gpointer saved_search_dialog_search_row_text_parent_class = NULL; -static gpointer saved_search_dialog_search_row_media_type_parent_class = NULL; -static gpointer saved_search_dialog_search_row_modified_parent_class = NULL; -static gpointer saved_search_dialog_search_row_flagged_parent_class = NULL; -static gpointer saved_search_dialog_search_row_rating_parent_class = NULL; -static gpointer saved_search_dialog_search_row_date_parent_class = NULL; - -GType saved_search_dialog_get_type (void) G_GNUC_CONST; -static gpointer saved_search_dialog_search_row_container_ref (gpointer instance); -static void saved_search_dialog_search_row_container_unref (gpointer instance); -static GParamSpec* saved_search_dialog_param_spec_search_row_container (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void saved_search_dialog_value_set_search_row_container (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void saved_search_dialog_value_take_search_row_container (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer saved_search_dialog_value_get_search_row_container (const GValue* value) G_GNUC_UNUSED; -static GType saved_search_dialog_search_row_container_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType saved_search_get_type (void) G_GNUC_CONST; -#define SAVED_SEARCH_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogPrivate)) -SavedSearchDialog* saved_search_dialog_new (void); -SavedSearchDialog* saved_search_dialog_construct (GType object_type); -gint resources_use_header_bar (void); -static void saved_search_dialog_setup_dialog (SavedSearchDialog* self); -gpointer saved_search_table_ref (gpointer instance); -void saved_search_table_unref (gpointer instance); -GParamSpec* param_spec_saved_search_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_saved_search_table (GValue* value, - gpointer v_object); -void value_take_saved_search_table (GValue* value, - gpointer v_object); -gpointer value_get_saved_search_table (const GValue* value); -GType saved_search_table_get_type (void) G_GNUC_CONST; -SavedSearchTable* saved_search_table_get_instance (void); -gchar* saved_search_table_generate_unique_name (SavedSearchTable* self); -static void saved_search_dialog_add_text_search (SavedSearchDialog* self); -static void saved_search_dialog_search_row_container_allow_removal (SavedSearchDialogSearchRowContainer* self, - gboolean allow); -static void saved_search_dialog_set_valid (SavedSearchDialog* self, - gboolean v); -SavedSearchDialog* saved_search_dialog_new_edit_existing (SavedSearch* saved_search); -SavedSearchDialog* saved_search_dialog_construct_edit_existing (GType object_type, - SavedSearch* saved_search); -GType search_operator_get_type (void) G_GNUC_CONST; -SearchOperator saved_search_get_operator (SavedSearch* self); -gchar* data_object_get_name (DataObject* self); -gpointer search_condition_ref (gpointer instance); -void search_condition_unref (gpointer instance); -GParamSpec* param_spec_search_condition (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_search_condition (GValue* value, - gpointer v_object); -void value_take_search_condition (GValue* value, - gpointer v_object); -gpointer value_get_search_condition (const GValue* value); -GType search_condition_get_type (void) G_GNUC_CONST; -GeeList* saved_search_get_conditions (SavedSearch* self); -static void saved_search_dialog_add_row (SavedSearchDialog* self, - SavedSearchDialogSearchRowContainer* row); -static SavedSearchDialogSearchRowContainer* saved_search_dialog_search_row_container_new_edit_existing (SearchCondition* sc); -static SavedSearchDialogSearchRowContainer* saved_search_dialog_search_row_container_construct_edit_existing (GType object_type, - SearchCondition* sc); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -AppWindow* app_window_get_instance (void); -static void saved_search_dialog_on_response (SavedSearchDialog* self, - gint response_id); -static void _saved_search_dialog_on_response_gtk_dialog_response (GtkDialog* _sender, - gint response_id, - gpointer self); -static void saved_search_dialog_on_add_criteria (SavedSearchDialog* self); -static void _saved_search_dialog_on_add_criteria_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void saved_search_dialog_on_title_changed (SavedSearchDialog* self); -static void _saved_search_dialog_on_title_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -void saved_search_dialog_show (SavedSearchDialog* self); -static SavedSearchDialogSearchRowContainer* saved_search_dialog_search_row_container_new (void); -static SavedSearchDialogSearchRowContainer* saved_search_dialog_search_row_container_construct (GType object_type); -static GtkWidget* saved_search_dialog_search_row_container_get_widget (SavedSearchDialogSearchRowContainer* self); -static void saved_search_dialog_on_remove_row (SavedSearchDialog* self, - SavedSearchDialogSearchRowContainer* row); -static void _saved_search_dialog_on_remove_row_saved_search_dialog_search_row_container_remove (SavedSearchDialogSearchRowContainer* _sender, - SavedSearchDialogSearchRowContainer* this_row, - gpointer self); -static void saved_search_dialog_on_row_changed (SavedSearchDialog* self, - SavedSearchDialogSearchRowContainer* row); -static void _saved_search_dialog_on_row_changed_saved_search_dialog_search_row_container_changed (SavedSearchDialogSearchRowContainer* _sender, - SavedSearchDialogSearchRowContainer* this_row, - gpointer self); -static gboolean saved_search_dialog_search_row_container_is_complete (SavedSearchDialogSearchRowContainer* self); -gboolean saved_search_table_exists (SavedSearchTable* self, - const gchar* search_name); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -gchar* resources_rename_search_exists_message (const gchar* name); -void saved_search_table_remove (SavedSearchTable* self, - SavedSearch* search); -static SearchCondition* saved_search_dialog_search_row_container_get_search_condition (SavedSearchDialogSearchRowContainer* self); -SavedSearch* saved_search_table_create (SavedSearchTable* self, - const gchar* name, - SearchOperator operator, - GeeArrayList* conditions); -static gboolean saved_search_dialog_is_title_valid (SavedSearchDialog* self); -GType search_condition_search_type_get_type (void) G_GNUC_CONST; -static gpointer saved_search_dialog_search_row_ref (gpointer instance); -static void saved_search_dialog_search_row_unref (gpointer instance); -static GParamSpec* saved_search_dialog_param_spec_search_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void saved_search_dialog_value_set_search_row (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void saved_search_dialog_value_take_search_row (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer saved_search_dialog_value_get_search_row (const GValue* value) G_GNUC_UNUSED; -static GType saved_search_dialog_search_row_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, SavedSearchDialogSearchRowContainerPrivate)) -static void saved_search_dialog_search_row_container_setup_gui (SavedSearchDialogSearchRowContainer* self); -static void saved_search_dialog_search_row_container_set_type (SavedSearchDialogSearchRowContainer* self, - SearchConditionSearchType type); -SearchConditionSearchType search_condition_get_search_type (SearchCondition* self); -static void saved_search_dialog_search_row_container_set_type_combo_box (SavedSearchDialogSearchRowContainer* self, - SearchConditionSearchType st); -static void saved_search_dialog_search_row_populate (SavedSearchDialogSearchRow* self, - SearchCondition* sc); -SearchConditionSearchType* search_condition_search_type_as_array (int* result_length1); -void search_condition_search_type_sort_array (SearchConditionSearchType** array, - int* array_length1); -gchar* search_condition_search_type_display_text (SearchConditionSearchType self); -static void saved_search_dialog_search_row_container_on_type_changed (SavedSearchDialogSearchRowContainer* self); -static void _saved_search_dialog_search_row_container_on_type_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void saved_search_dialog_search_row_container_on_removed (SavedSearchDialogSearchRowContainer* self); -static void _saved_search_dialog_search_row_container_on_removed_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static SearchConditionSearchType saved_search_dialog_search_row_container_get_search_type (SavedSearchDialogSearchRowContainer* self); -static GtkWidget* saved_search_dialog_search_row_get_widget (SavedSearchDialogSearchRow* self); -static SavedSearchDialogSearchRowText* saved_search_dialog_search_row_text_new (SavedSearchDialogSearchRowContainer* parent); -static SavedSearchDialogSearchRowText* saved_search_dialog_search_row_text_construct (GType object_type, - SavedSearchDialogSearchRowContainer* parent); -static GType saved_search_dialog_search_row_text_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static SavedSearchDialogSearchRowMediaType* saved_search_dialog_search_row_media_type_new (SavedSearchDialogSearchRowContainer* parent); -static SavedSearchDialogSearchRowMediaType* saved_search_dialog_search_row_media_type_construct (GType object_type, - SavedSearchDialogSearchRowContainer* parent); -static GType saved_search_dialog_search_row_media_type_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static SavedSearchDialogSearchRowFlagged* saved_search_dialog_search_row_flagged_new (SavedSearchDialogSearchRowContainer* parent); -static SavedSearchDialogSearchRowFlagged* saved_search_dialog_search_row_flagged_construct (GType object_type, - SavedSearchDialogSearchRowContainer* parent); -static GType saved_search_dialog_search_row_flagged_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static SavedSearchDialogSearchRowModified* saved_search_dialog_search_row_modified_new (SavedSearchDialogSearchRowContainer* parent); -static SavedSearchDialogSearchRowModified* saved_search_dialog_search_row_modified_construct (GType object_type, - SavedSearchDialogSearchRowContainer* parent); -static GType saved_search_dialog_search_row_modified_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static SavedSearchDialogSearchRowRating* saved_search_dialog_search_row_rating_new (SavedSearchDialogSearchRowContainer* parent); -static SavedSearchDialogSearchRowRating* saved_search_dialog_search_row_rating_construct (GType object_type, - SavedSearchDialogSearchRowContainer* parent); -static GType saved_search_dialog_search_row_rating_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static SavedSearchDialogSearchRowDate* saved_search_dialog_search_row_date_new (SavedSearchDialogSearchRowContainer* parent); -static SavedSearchDialogSearchRowDate* saved_search_dialog_search_row_date_construct (GType object_type, - SavedSearchDialogSearchRowContainer* parent); -static GType saved_search_dialog_search_row_date_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static SearchCondition* saved_search_dialog_search_row_get_search_condition (SavedSearchDialogSearchRow* self); -static gboolean saved_search_dialog_search_row_is_complete (SavedSearchDialogSearchRow* self); -static void g_cclosure_user_marshal_VOID__SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void saved_search_dialog_search_row_container_finalize (SavedSearchDialogSearchRowContainer * obj); -static GtkWidget* saved_search_dialog_search_row_real_get_widget (SavedSearchDialogSearchRow* self); -static SearchCondition* saved_search_dialog_search_row_real_get_search_condition (SavedSearchDialogSearchRow* self); -static void saved_search_dialog_search_row_real_populate (SavedSearchDialogSearchRow* self, - SearchCondition* sc); -static gboolean saved_search_dialog_search_row_real_is_complete (SavedSearchDialogSearchRow* self); -static SavedSearchDialogSearchRow* saved_search_dialog_search_row_construct (GType object_type); -static void saved_search_dialog_search_row_finalize (SavedSearchDialogSearchRow * obj); -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_TEXT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowTextPrivate)) -static void saved_search_dialog_search_row_text_on_changed (SavedSearchDialogSearchRowText* self); -static void _saved_search_dialog_search_row_text_on_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static void _saved_search_dialog_search_row_text_on_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self); -static GtkWidget* saved_search_dialog_search_row_text_real_get_widget (SavedSearchDialogSearchRow* base); -static SearchCondition* saved_search_dialog_search_row_text_real_get_search_condition (SavedSearchDialogSearchRow* base); -GType search_condition_text_context_get_type (void) G_GNUC_CONST; -static SearchConditionTextContext saved_search_dialog_search_row_text_get_text_context (SavedSearchDialogSearchRowText* self); -GType search_condition_text_get_type (void) G_GNUC_CONST; -SearchConditionText* search_condition_text_new (SearchConditionSearchType search_type, - const gchar* text, - SearchConditionTextContext context); -SearchConditionText* search_condition_text_construct (GType object_type, - SearchConditionSearchType search_type, - const gchar* text, - SearchConditionTextContext context); -static void saved_search_dialog_search_row_text_real_populate (SavedSearchDialogSearchRow* base, - SearchCondition* sc); -SearchConditionTextContext search_condition_text_get_context (SearchConditionText* self); -const gchar* search_condition_text_get_text (SearchConditionText* self); -static gboolean saved_search_dialog_search_row_text_real_is_complete (SavedSearchDialogSearchRow* base); -static void saved_search_dialog_search_row_text_finalize (SavedSearchDialogSearchRow * obj); -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_MEDIA_TYPE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaTypePrivate)) -static void saved_search_dialog_search_row_media_type_on_changed (SavedSearchDialogSearchRowMediaType* self); -static void _saved_search_dialog_search_row_media_type_on_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static GtkWidget* saved_search_dialog_search_row_media_type_real_get_widget (SavedSearchDialogSearchRow* base); -static SearchCondition* saved_search_dialog_search_row_media_type_real_get_search_condition (SavedSearchDialogSearchRow* base); -GType search_condition_media_type_context_get_type (void) G_GNUC_CONST; -GType search_condition_media_type_media_type_get_type (void) G_GNUC_CONST; -GType search_condition_media_type_get_type (void) G_GNUC_CONST; -SearchConditionMediaType* search_condition_media_type_new (SearchConditionSearchType search_type, - SearchConditionMediaTypeContext context, - SearchConditionMediaTypeMediaType media_type); -SearchConditionMediaType* search_condition_media_type_construct (GType object_type, - SearchConditionSearchType search_type, - SearchConditionMediaTypeContext context, - SearchConditionMediaTypeMediaType media_type); -static void saved_search_dialog_search_row_media_type_real_populate (SavedSearchDialogSearchRow* base, - SearchCondition* sc); -SearchConditionMediaTypeContext search_condition_media_type_get_context (SearchConditionMediaType* self); -SearchConditionMediaTypeMediaType search_condition_media_type_get_media_type (SearchConditionMediaType* self); -static gboolean saved_search_dialog_search_row_media_type_real_is_complete (SavedSearchDialogSearchRow* base); -static void saved_search_dialog_search_row_media_type_finalize (SavedSearchDialogSearchRow * obj); -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_MODIFIED_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModifiedPrivate)) -static void saved_search_dialog_search_row_modified_on_changed (SavedSearchDialogSearchRowModified* self); -static void _saved_search_dialog_search_row_modified_on_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static GtkWidget* saved_search_dialog_search_row_modified_real_get_widget (SavedSearchDialogSearchRow* base); -static SearchCondition* saved_search_dialog_search_row_modified_real_get_search_condition (SavedSearchDialogSearchRow* base); -GType search_condition_modified_context_get_type (void) G_GNUC_CONST; -GType search_condition_modified_state_get_type (void) G_GNUC_CONST; -GType search_condition_modified_get_type (void) G_GNUC_CONST; -SearchConditionModified* search_condition_modified_new (SearchConditionSearchType search_type, - SearchConditionModifiedContext context, - SearchConditionModifiedState state); -SearchConditionModified* search_condition_modified_construct (GType object_type, - SearchConditionSearchType search_type, - SearchConditionModifiedContext context, - SearchConditionModifiedState state); -static void saved_search_dialog_search_row_modified_real_populate (SavedSearchDialogSearchRow* base, - SearchCondition* sc); -SearchConditionModifiedState search_condition_modified_get_state (SearchConditionModified* self); -SearchConditionModifiedContext search_condition_modified_get_context (SearchConditionModified* self); -static gboolean saved_search_dialog_search_row_modified_real_is_complete (SavedSearchDialogSearchRow* base); -static void saved_search_dialog_search_row_modified_finalize (SavedSearchDialogSearchRow * obj); -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_FLAGGED_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlaggedPrivate)) -static void saved_search_dialog_search_row_flagged_on_changed (SavedSearchDialogSearchRowFlagged* self); -static void _saved_search_dialog_search_row_flagged_on_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -static GtkWidget* saved_search_dialog_search_row_flagged_real_get_widget (SavedSearchDialogSearchRow* base); -static SearchCondition* saved_search_dialog_search_row_flagged_real_get_search_condition (SavedSearchDialogSearchRow* base); -GType search_condition_flagged_state_get_type (void) G_GNUC_CONST; -GType search_condition_flagged_get_type (void) G_GNUC_CONST; -SearchConditionFlagged* search_condition_flagged_new (SearchConditionSearchType search_type, - SearchConditionFlaggedState state); -SearchConditionFlagged* search_condition_flagged_construct (GType object_type, - SearchConditionSearchType search_type, - SearchConditionFlaggedState state); -static void saved_search_dialog_search_row_flagged_real_populate (SavedSearchDialogSearchRow* base, - SearchCondition* sc); -SearchConditionFlaggedState search_condition_flagged_get_state (SearchConditionFlagged* self); -static gboolean saved_search_dialog_search_row_flagged_real_is_complete (SavedSearchDialogSearchRow* base); -static void saved_search_dialog_search_row_flagged_finalize (SavedSearchDialogSearchRow * obj); -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_RATING_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRatingPrivate)) -static void saved_search_dialog_search_row_rating_on_changed (SavedSearchDialogSearchRowRating* self); -static void _saved_search_dialog_search_row_rating_on_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -GType rating_get_type (void) G_GNUC_CONST; -const gchar* resources_rating_combo_box (Rating rating); -static GtkWidget* saved_search_dialog_search_row_rating_real_get_widget (SavedSearchDialogSearchRow* base); -static SearchCondition* saved_search_dialog_search_row_rating_real_get_search_condition (SavedSearchDialogSearchRow* base); -GType search_condition_rating_context_get_type (void) G_GNUC_CONST; -GType search_condition_rating_get_type (void) G_GNUC_CONST; -SearchConditionRating* search_condition_rating_new (SearchConditionSearchType search_type, - Rating rating, - SearchConditionRatingContext context); -SearchConditionRating* search_condition_rating_construct (GType object_type, - SearchConditionSearchType search_type, - Rating rating, - SearchConditionRatingContext context); -static void saved_search_dialog_search_row_rating_real_populate (SavedSearchDialogSearchRow* base, - SearchCondition* sc); -SearchConditionRatingContext search_condition_rating_get_context (SearchConditionRating* self); -Rating search_condition_rating_get_rating (SearchConditionRating* self); -static gboolean saved_search_dialog_search_row_rating_real_is_complete (SavedSearchDialogSearchRow* base); -static void saved_search_dialog_search_row_rating_finalize (SavedSearchDialogSearchRow * obj); -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_DATE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDatePrivate)) -static void saved_search_dialog_search_row_date_on_changed (SavedSearchDialogSearchRowDate* self); -static void _saved_search_dialog_search_row_date_on_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self); -#define SAVED_SEARCH_DIALOG_SEARCH_ROW_DATE_DATE_FORMAT "%x" -static void saved_search_dialog_search_row_date_on_one_clicked (SavedSearchDialogSearchRowDate* self); -static void _saved_search_dialog_search_row_date_on_one_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void saved_search_dialog_search_row_date_on_two_clicked (SavedSearchDialogSearchRowDate* self); -static void _saved_search_dialog_search_row_date_on_two_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self); -static void saved_search_dialog_search_row_date_update_date_labels (SavedSearchDialogSearchRowDate* self); -GType search_condition_date_context_get_type (void) G_GNUC_CONST; -static GDateTime* saved_search_dialog_search_row_date_get_date_one (SavedSearchDialogSearchRowDate* self); -static GDateTime* saved_search_dialog_search_row_date_get_date_two (SavedSearchDialogSearchRowDate* self); -static GtkWidget* saved_search_dialog_search_row_date_real_get_widget (SavedSearchDialogSearchRow* base); -static void saved_search_dialog_search_row_date_set_date_one (SavedSearchDialogSearchRowDate* self, - GDateTime* date); -static void saved_search_dialog_search_row_date_set_date_two (SavedSearchDialogSearchRowDate* self, - GDateTime* date); -static SearchCondition* saved_search_dialog_search_row_date_real_get_search_condition (SavedSearchDialogSearchRow* base); -GType search_condition_date_get_type (void) G_GNUC_CONST; -SearchConditionDate* search_condition_date_new (SearchConditionSearchType search_type, - SearchConditionDateContext context, - GDateTime* date_one, - GDateTime* date_two); -SearchConditionDate* search_condition_date_construct (GType object_type, - SearchConditionSearchType search_type, - SearchConditionDateContext context, - GDateTime* date_one, - GDateTime* date_two); -static void saved_search_dialog_search_row_date_real_populate (SavedSearchDialogSearchRow* base, - SearchCondition* sc); -SearchConditionDateContext search_condition_date_get_context (SearchConditionDate* self); -GDateTime* search_condition_date_get_date_one (SearchConditionDate* self); -GDateTime* search_condition_date_get_date_two (SearchConditionDate* self); -static gboolean saved_search_dialog_search_row_date_real_is_complete (SavedSearchDialogSearchRow* base); -static void saved_search_dialog_search_row_date_popup_calendar (SavedSearchDialogSearchRowDate* self, - GtkCalendar* cal); -static Block10Data* block10_data_ref (Block10Data* _data10_); -static void block10_data_unref (void * _userdata_); -#define RESOURCES_CANCEL_LABEL _ ("_Cancel") -#define RESOURCES_OK_LABEL _ ("_OK") -static void __lambda14_ (SavedSearchDialogSearchRowDate* self); -static void ___lambda14__gtk_calendar_day_selected (GtkCalendar* _sender, - gpointer self); -static void __lambda15_ (Block10Data* _data10_); -static void ___lambda15__gtk_calendar_day_selected_double_click (GtkCalendar* _sender, - gpointer self); -static void saved_search_dialog_search_row_date_finalize (SavedSearchDialogSearchRow * obj); -static void saved_search_dialog_finalize (GObject * obj); - - -SavedSearchDialog* -saved_search_dialog_construct (GType object_type) -{ - SavedSearchDialog * self = NULL; - GtkEntry* _tmp0_; - SavedSearchTable* _tmp1_; - SavedSearchTable* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - GtkEntry* _tmp5_; - GeeArrayList* _tmp6_; - gpointer _tmp7_; - SavedSearchDialogSearchRowContainer* _tmp8_; -#line 657 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = (SavedSearchDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL); -#line 659 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_setup_dialog (self); -#line 662 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->search_title; -#line 662 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = saved_search_table_get_instance (); -#line 662 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = _tmp1_; -#line 662 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = saved_search_table_generate_unique_name (_tmp2_); -#line 662 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = _tmp3_; -#line 662 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_entry_set_text (_tmp0_, _tmp4_); -#line 662 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_free0 (_tmp4_); -#line 662 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_table_unref0 (_tmp2_); -#line 663 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = self->priv->search_title; -#line 663 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_editable_select_region (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_editable_get_type (), GtkEditable), 0, -1); -#line 666 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_add_text_search (self); -#line 667 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = self->priv->row_list; -#line 667 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 667 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = (SavedSearchDialogSearchRowContainer*) _tmp7_; -#line 667 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_allow_removal (_tmp8_, FALSE); -#line 667 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (_tmp8_); -#line 669 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 670 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_set_valid (self, FALSE); -#line 656 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return self; -#line 962 "SavedSearchDialog.c" -} - - -SavedSearchDialog* -saved_search_dialog_new (void) -{ -#line 656 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return saved_search_dialog_construct (TYPE_SAVED_SEARCH_DIALOG); -#line 971 "SavedSearchDialog.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 676 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return self ? g_object_ref (self) : NULL; -#line 980 "SavedSearchDialog.c" -} - - -SavedSearchDialog* -saved_search_dialog_construct_edit_existing (GType object_type, - SavedSearch* saved_search) -{ - SavedSearchDialog * self = NULL; - SavedSearch* _tmp0_; - GtkComboBoxText* _tmp1_; - GtkEntry* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - GeeArrayList* _tmp18_; - gint _tmp19_; - gint _tmp20_; -#line 673 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (IS_SAVED_SEARCH (saved_search), NULL); -#line 674 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = (SavedSearchDialog*) g_object_new (object_type, "use-header-bar", resources_use_header_bar (), NULL); -#line 676 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = _g_object_ref0 (saved_search); -#line 676 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->previous_search); -#line 676 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->previous_search = _tmp0_; -#line 677 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->edit_mode = TRUE; -#line 678 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_setup_dialog (self); -#line 680 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 683 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->operator; -#line 683 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), (gint) ((SearchOperator) saved_search_get_operator (saved_search))); -#line 684 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->search_title; -#line 684 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (saved_search, TYPE_DATA_OBJECT, DataObject)); -#line 684 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = _tmp3_; -#line 684 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_entry_set_text (_tmp2_, _tmp4_); -#line 684 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_free0 (_tmp4_); -#line 1027 "SavedSearchDialog.c" - { - GeeList* _sc_list = NULL; - GeeList* _tmp5_; - gint _sc_size = 0; - GeeList* _tmp6_; - gint _tmp7_; - gint _tmp8_; - gint _sc_index = 0; -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = saved_search_get_conditions (saved_search); -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _sc_list = _tmp5_; -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = _sc_list; -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = _tmp7_; -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _sc_size = _tmp8_; -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _sc_index = -1; -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - while (TRUE) { -#line 1052 "SavedSearchDialog.c" - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; - SearchCondition* sc = NULL; - GeeList* _tmp12_; - gint _tmp13_; - gpointer _tmp14_; - SearchCondition* _tmp15_; - SavedSearchDialogSearchRowContainer* _tmp16_; - SavedSearchDialogSearchRowContainer* _tmp17_; -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = _sc_index; -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _sc_index = _tmp9_ + 1; -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp10_ = _sc_index; -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp11_ = _sc_size; -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (!(_tmp10_ < _tmp11_)) { -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - break; -#line 1075 "SavedSearchDialog.c" - } -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp12_ = _sc_list; -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp13_ = _sc_index; -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp14_ = gee_list_get (_tmp12_, _tmp13_); -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - sc = (SearchCondition*) _tmp14_; -#line 686 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp15_ = sc; -#line 686 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp16_ = saved_search_dialog_search_row_container_new_edit_existing (_tmp15_); -#line 686 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp17_ = _tmp16_; -#line 686 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_add_row (self, _tmp17_); -#line 686 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (_tmp17_); -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _search_condition_unref0 (sc); -#line 1097 "SavedSearchDialog.c" - } -#line 685 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (_sc_list); -#line 1101 "SavedSearchDialog.c" - } -#line 689 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp18_ = self->priv->row_list; -#line 689 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp19_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 689 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp20_ = _tmp19_; -#line 689 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp20_ == 1) { -#line 1111 "SavedSearchDialog.c" - GeeArrayList* _tmp21_; - gpointer _tmp22_; - SavedSearchDialogSearchRowContainer* _tmp23_; -#line 690 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp21_ = self->priv->row_list; -#line 690 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp22_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 690 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp23_ = (SavedSearchDialogSearchRowContainer*) _tmp22_; -#line 690 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_allow_removal (_tmp23_, FALSE); -#line 690 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (_tmp23_); -#line 1125 "SavedSearchDialog.c" - } -#line 692 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_set_valid (self, TRUE); -#line 673 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return self; -#line 1131 "SavedSearchDialog.c" -} - - -SavedSearchDialog* -saved_search_dialog_new_edit_existing (SavedSearch* saved_search) -{ -#line 673 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return saved_search_dialog_construct_edit_existing (TYPE_SAVED_SEARCH_DIALOG, saved_search); -#line 1140 "SavedSearchDialog.c" -} - - -static void -_saved_search_dialog_on_response_gtk_dialog_response (GtkDialog* _sender, - gint response_id, - gpointer self) -{ -#line 698 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_on_response ((SavedSearchDialog*) self, response_id); -#line 1151 "SavedSearchDialog.c" -} - - -static void -_saved_search_dialog_on_add_criteria_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 700 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_on_add_criteria ((SavedSearchDialog*) self); -#line 1161 "SavedSearchDialog.c" -} - - -static void -_saved_search_dialog_on_title_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 702 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_on_title_changed ((SavedSearchDialog*) self); -#line 1171 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_setup_dialog (SavedSearchDialog* self) -{ - AppWindow* _tmp0_; - AppWindow* _tmp1_; - GtkButton* _tmp2_; - GtkEntry* _tmp3_; -#line 696 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self)); -#line 697 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = app_window_get_instance (); -#line 697 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = _tmp0_; -#line 697 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_window_set_transient_for (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_window_get_type (), GtkWindow), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_window_get_type (), GtkWindow)); -#line 697 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (_tmp1_); -#line 698 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), "response", (GCallback) _saved_search_dialog_on_response_gtk_dialog_response, self, 0); -#line 700 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->add_criteria; -#line 700 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect_object (_tmp2_, "clicked", (GCallback) _saved_search_dialog_on_add_criteria_gtk_button_clicked, self, 0); -#line 702 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = self->priv->search_title; -#line 702 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _saved_search_dialog_on_title_changed_gtk_editable_changed, self, 0); -#line 1202 "SavedSearchDialog.c" -} - - -void -saved_search_dialog_show (SavedSearchDialog* self) -{ -#line 706 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self)); -#line 707 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_dialog_run (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog)); -#line 708 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget)); -#line 1215 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_on_add_criteria (SavedSearchDialog* self) -{ -#line 712 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self)); -#line 713 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_add_text_search (self); -#line 1226 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_add_text_search (SavedSearchDialog* self) -{ - SavedSearchDialogSearchRowContainer* text = NULL; - SavedSearchDialogSearchRowContainer* _tmp0_; -#line 716 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self)); -#line 717 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = saved_search_dialog_search_row_container_new (); -#line 717 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - text = _tmp0_; -#line 718 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_add_row (self, text); -#line 716 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (text); -#line 1245 "SavedSearchDialog.c" -} - - -static void -_saved_search_dialog_on_remove_row_saved_search_dialog_search_row_container_remove (SavedSearchDialogSearchRowContainer* _sender, - SavedSearchDialogSearchRowContainer* this_row, - gpointer self) -{ -#line 727 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_on_remove_row ((SavedSearchDialog*) self, this_row); -#line 1256 "SavedSearchDialog.c" -} - - -static void -_saved_search_dialog_on_row_changed_saved_search_dialog_search_row_container_changed (SavedSearchDialogSearchRowContainer* _sender, - SavedSearchDialogSearchRowContainer* this_row, - gpointer self) -{ -#line 728 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_on_row_changed ((SavedSearchDialog*) self, this_row); -#line 1267 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_add_row (SavedSearchDialog* self, - SavedSearchDialogSearchRowContainer* row) -{ - GeeArrayList* _tmp0_; - gint _tmp1_; - gint _tmp2_; - GtkListBox* _tmp6_; - GtkWidget* _tmp7_; - GtkWidget* _tmp8_; - GeeArrayList* _tmp9_; -#line 722 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self)); -#line 722 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (row)); -#line 723 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->row_list; -#line 723 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 723 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = _tmp1_; -#line 723 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp2_ == 1) { -#line 1294 "SavedSearchDialog.c" - GeeArrayList* _tmp3_; - gpointer _tmp4_; - SavedSearchDialogSearchRowContainer* _tmp5_; -#line 724 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = self->priv->row_list; -#line 724 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 724 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = (SavedSearchDialogSearchRowContainer*) _tmp4_; -#line 724 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_allow_removal (_tmp5_, TRUE); -#line 724 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (_tmp5_); -#line 1308 "SavedSearchDialog.c" - } -#line 725 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = self->priv->row_listbox; -#line 725 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = saved_search_dialog_search_row_container_get_widget (row); -#line 725 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = _tmp7_; -#line 725 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_container_get_type (), GtkContainer), _tmp8_); -#line 725 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (_tmp8_); -#line 726 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = self->priv->row_list; -#line 726 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), row); -#line 727 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect_object (row, "remove", (GCallback) _saved_search_dialog_on_remove_row_saved_search_dialog_search_row_container_remove, self, 0); -#line 728 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect_object (row, "changed", (GCallback) _saved_search_dialog_on_row_changed_saved_search_dialog_search_row_container_changed, self, 0); -#line 729 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_set_valid (self, saved_search_dialog_search_row_container_is_complete (row)); -#line 1330 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_on_remove_row (SavedSearchDialog* self, - SavedSearchDialogSearchRowContainer* row) -{ - guint _tmp0_; - guint _tmp1_; - GtkListBox* _tmp2_; - GtkWidget* _tmp3_; - GtkWidget* _tmp4_; - GtkContainer* _tmp5_; - GeeArrayList* _tmp6_; - GeeArrayList* _tmp7_; - gint _tmp8_; - gint _tmp9_; -#line 733 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self)); -#line 733 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (row)); -#line 734 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_parse_name ("remove", SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, &_tmp0_, NULL, FALSE); -#line 734 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_handlers_disconnect_matched (row, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _saved_search_dialog_on_remove_row_saved_search_dialog_search_row_container_remove, self); -#line 735 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_parse_name ("changed", SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, &_tmp1_, NULL, FALSE); -#line 735 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_handlers_disconnect_matched (row, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _saved_search_dialog_on_row_changed_saved_search_dialog_search_row_container_changed, self); -#line 736 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->row_listbox; -#line 736 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = saved_search_dialog_search_row_container_get_widget (row); -#line 736 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = _tmp3_; -#line 736 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = gtk_widget_get_parent (_tmp4_); -#line 736 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_widget_get_type (), GtkWidget)); -#line 736 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (_tmp4_); -#line 737 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = self->priv->row_list; -#line 737 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gee_abstract_collection_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), row); -#line 738 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = self->priv->row_list; -#line 738 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 738 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = _tmp8_; -#line 738 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp9_ == 1) { -#line 1384 "SavedSearchDialog.c" - GeeArrayList* _tmp10_; - gpointer _tmp11_; - SavedSearchDialogSearchRowContainer* _tmp12_; -#line 739 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp10_ = self->priv->row_list; -#line 739 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp11_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 739 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp12_ = (SavedSearchDialogSearchRowContainer*) _tmp11_; -#line 739 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_allow_removal (_tmp12_, FALSE); -#line 739 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (_tmp12_); -#line 1398 "SavedSearchDialog.c" - } -#line 740 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_set_valid (self, TRUE); -#line 1402 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_on_response (SavedSearchDialog* self, - gint response_id) -{ -#line 743 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self)); -#line 744 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (response_id == ((gint) GTK_RESPONSE_OK)) { -#line 1414 "SavedSearchDialog.c" - gboolean _tmp0_ = FALSE; - SavedSearchTable* _tmp1_; - SavedSearchTable* _tmp2_; - GtkEntry* _tmp3_; - const gchar* _tmp4_; - gboolean _tmp5_; - gboolean _tmp17_; - GeeArrayList* conditions = NULL; - GeeArrayList* _tmp21_; - SearchOperator search_operator = 0; - GtkComboBoxText* _tmp37_; - SavedSearchTable* _tmp38_; - SavedSearchTable* _tmp39_; - GtkEntry* _tmp40_; - const gchar* _tmp41_; - SearchOperator _tmp42_; - GeeArrayList* _tmp43_; - SavedSearch* _tmp44_; - SavedSearch* _tmp45_; -#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = saved_search_table_get_instance (); -#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = _tmp1_; -#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = self->priv->search_title; -#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = gtk_entry_get_text (_tmp3_); -#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = saved_search_table_exists (_tmp2_, _tmp4_); -#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_table_unref0 (_tmp2_); -#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp5_) { -#line 1448 "SavedSearchDialog.c" - gboolean _tmp6_ = FALSE; - gboolean _tmp7_; -#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = self->priv->edit_mode; -#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp7_) { -#line 1455 "SavedSearchDialog.c" - SavedSearch* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - GtkEntry* _tmp11_; - const gchar* _tmp12_; -#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = self->priv->previous_search; -#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject)); -#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp10_ = _tmp9_; -#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp11_ = self->priv->search_title; -#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp12_ = gtk_entry_get_text (_tmp11_); -#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = g_strcmp0 (_tmp10_, _tmp12_) == 0; -#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_free0 (_tmp10_); -#line 1475 "SavedSearchDialog.c" - } else { -#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = FALSE; -#line 1479 "SavedSearchDialog.c" - } -#line 746 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = !_tmp6_; -#line 1483 "SavedSearchDialog.c" - } else { -#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = FALSE; -#line 1487 "SavedSearchDialog.c" - } -#line 745 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp0_) { -#line 1491 "SavedSearchDialog.c" - GtkEntry* _tmp13_; - const gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; -#line 747 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp13_ = self->priv->search_title; -#line 747 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp14_ = gtk_entry_get_text (_tmp13_); -#line 747 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp15_ = resources_rename_search_exists_message (_tmp14_); -#line 747 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp16_ = _tmp15_; -#line 747 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - app_window_error_message (_tmp16_, NULL); -#line 747 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_free0 (_tmp16_); -#line 748 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return; -#line 1510 "SavedSearchDialog.c" - } -#line 751 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp17_ = self->priv->edit_mode; -#line 751 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp17_) { -#line 1516 "SavedSearchDialog.c" - SavedSearchTable* _tmp18_; - SavedSearchTable* _tmp19_; - SavedSearch* _tmp20_; -#line 753 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp18_ = saved_search_table_get_instance (); -#line 753 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp19_ = _tmp18_; -#line 753 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp20_ = self->priv->previous_search; -#line 753 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_table_remove (_tmp19_, _tmp20_); -#line 753 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_table_unref0 (_tmp19_); -#line 1530 "SavedSearchDialog.c" - } -#line 757 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp21_ = gee_array_list_new (TYPE_SEARCH_CONDITION, (GBoxedCopyFunc) search_condition_ref, (GDestroyNotify) search_condition_unref, NULL, NULL, NULL); -#line 757 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - conditions = _tmp21_; -#line 1536 "SavedSearchDialog.c" - { - GeeArrayList* _c_list = NULL; - GeeArrayList* _tmp22_; - GeeArrayList* _tmp23_; - gint _c_size = 0; - GeeArrayList* _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _c_index = 0; -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp22_ = self->priv->row_list; -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp23_ = _g_object_ref0 (_tmp22_); -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _c_list = _tmp23_; -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp24_ = _c_list; -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp25_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp26_ = _tmp25_; -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _c_size = _tmp26_; -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _c_index = -1; -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - while (TRUE) { -#line 1564 "SavedSearchDialog.c" - gint _tmp27_; - gint _tmp28_; - gint _tmp29_; - SavedSearchDialogSearchRowContainer* c = NULL; - GeeArrayList* _tmp30_; - gint _tmp31_; - gpointer _tmp32_; - GeeArrayList* _tmp33_; - SavedSearchDialogSearchRowContainer* _tmp34_; - SearchCondition* _tmp35_; - SearchCondition* _tmp36_; -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp27_ = _c_index; -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _c_index = _tmp27_ + 1; -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp28_ = _c_index; -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp29_ = _c_size; -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (!(_tmp28_ < _tmp29_)) { -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - break; -#line 1588 "SavedSearchDialog.c" - } -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp30_ = _c_list; -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp31_ = _c_index; -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp32_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp31_); -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - c = (SavedSearchDialogSearchRowContainer*) _tmp32_; -#line 759 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp33_ = conditions; -#line 759 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp34_ = c; -#line 759 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp35_ = saved_search_dialog_search_row_container_get_search_condition (_tmp34_); -#line 759 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp36_ = _tmp35_; -#line 759 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp36_); -#line 759 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _search_condition_unref0 (_tmp36_); -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (c); -#line 1612 "SavedSearchDialog.c" - } -#line 758 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (_c_list); -#line 1616 "SavedSearchDialog.c" - } -#line 763 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp37_ = self->priv->operator; -#line 763 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - search_operator = (SearchOperator) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, gtk_combo_box_get_type (), GtkComboBox)); -#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp38_ = saved_search_table_get_instance (); -#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp39_ = _tmp38_; -#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp40_ = self->priv->search_title; -#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp41_ = gtk_entry_get_text (_tmp40_); -#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp42_ = search_operator; -#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp43_ = conditions; -#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp44_ = saved_search_table_create (_tmp39_, _tmp41_, _tmp42_, _tmp43_); -#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp45_ = _tmp44_; -#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (_tmp45_); -#line 764 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_table_unref0 (_tmp39_); -#line 744 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (conditions); -#line 1644 "SavedSearchDialog.c" - } -} - - -static void -saved_search_dialog_on_row_changed (SavedSearchDialog* self, - SavedSearchDialogSearchRowContainer* row) -{ -#line 768 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self)); -#line 768 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (row)); -#line 769 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_set_valid (self, saved_search_dialog_search_row_container_is_complete (row)); -#line 1659 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_on_title_changed (SavedSearchDialog* self) -{ -#line 772 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self)); -#line 773 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_set_valid (self, saved_search_dialog_is_title_valid (self)); -#line 1670 "SavedSearchDialog.c" -} - - -static gchar* -string_chomp (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1232 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1233 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1233 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1234 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1234 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strchomp (_tmp1_); -#line 1235 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1235 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1695 "SavedSearchDialog.c" -} - - -static gboolean -saved_search_dialog_is_title_valid (SavedSearchDialog* self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_; - GtkEntry* _tmp9_; - const gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gboolean _tmp13_; - SavedSearchTable* _tmp14_; - SavedSearchTable* _tmp15_; - GtkEntry* _tmp16_; - const gchar* _tmp17_; - gboolean _tmp18_; -#line 776 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (IS_SAVED_SEARCH_DIALOG (self), FALSE); -#line 777 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->edit_mode; -#line 777 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp2_) { -#line 1722 "SavedSearchDialog.c" - SavedSearch* _tmp3_; -#line 777 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = self->priv->previous_search; -#line 777 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = _tmp3_ != NULL; -#line 1728 "SavedSearchDialog.c" - } else { -#line 777 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = FALSE; -#line 1732 "SavedSearchDialog.c" - } -#line 777 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp1_) { -#line 1736 "SavedSearchDialog.c" - SavedSearch* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - GtkEntry* _tmp7_; - const gchar* _tmp8_; -#line 778 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = self->priv->previous_search; -#line 778 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DATA_OBJECT, DataObject)); -#line 778 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = _tmp5_; -#line 778 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = self->priv->search_title; -#line 778 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = gtk_entry_get_text (_tmp7_); -#line 778 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = g_strcmp0 (_tmp6_, _tmp8_) == 0; -#line 778 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_free0 (_tmp6_); -#line 1756 "SavedSearchDialog.c" - } else { -#line 777 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = FALSE; -#line 1760 "SavedSearchDialog.c" - } -#line 777 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp0_) { -#line 779 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = TRUE; -#line 779 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 1768 "SavedSearchDialog.c" - } -#line 780 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = self->priv->search_title; -#line 780 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp10_ = gtk_entry_get_text (_tmp9_); -#line 780 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp11_ = string_chomp (_tmp10_); -#line 780 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp12_ = _tmp11_; -#line 780 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp13_ = g_strcmp0 (_tmp12_, "") == 0; -#line 780 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_free0 (_tmp12_); -#line 780 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp13_) { -#line 781 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = FALSE; -#line 781 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 1788 "SavedSearchDialog.c" - } -#line 782 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp14_ = saved_search_table_get_instance (); -#line 782 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp15_ = _tmp14_; -#line 782 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp16_ = self->priv->search_title; -#line 782 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp17_ = gtk_entry_get_text (_tmp16_); -#line 782 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp18_ = saved_search_table_exists (_tmp15_, _tmp17_); -#line 782 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_table_unref0 (_tmp15_); -#line 782 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp18_) { -#line 783 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = FALSE; -#line 783 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 1808 "SavedSearchDialog.c" - } -#line 784 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = TRUE; -#line 784 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 1814 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_set_valid (SavedSearchDialog* self, - gboolean v) -{ - gboolean _tmp18_; -#line 788 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (IS_SAVED_SEARCH_DIALOG (self)); -#line 789 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (!v) { -#line 790 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->valid = FALSE; -#line 1829 "SavedSearchDialog.c" - } else { - gboolean _tmp0_; -#line 791 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->valid; -#line 791 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (v != _tmp0_) { -#line 792 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (saved_search_dialog_is_title_valid (self)) { -#line 1838 "SavedSearchDialog.c" - gint valid_rows = 0; - gint _tmp14_; - GeeArrayList* _tmp15_; - gint _tmp16_; - gint _tmp17_; -#line 794 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - valid_rows = 0; -#line 1846 "SavedSearchDialog.c" - { - GeeArrayList* _c_list = NULL; - GeeArrayList* _tmp1_; - GeeArrayList* _tmp2_; - gint _c_size = 0; - GeeArrayList* _tmp3_; - gint _tmp4_; - gint _tmp5_; - gint _c_index = 0; -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->row_list; -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _c_list = _tmp2_; -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = _c_list; -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = _tmp4_; -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _c_size = _tmp5_; -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _c_index = -1; -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - while (TRUE) { -#line 1874 "SavedSearchDialog.c" - gint _tmp6_; - gint _tmp7_; - gint _tmp8_; - SavedSearchDialogSearchRowContainer* c = NULL; - GeeArrayList* _tmp9_; - gint _tmp10_; - gpointer _tmp11_; - SavedSearchDialogSearchRowContainer* _tmp12_; -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = _c_index; -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _c_index = _tmp6_ + 1; -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = _c_index; -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = _c_size; -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (!(_tmp7_ < _tmp8_)) { -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - break; -#line 1895 "SavedSearchDialog.c" - } -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = _c_list; -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp10_ = _c_index; -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp11_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp10_); -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - c = (SavedSearchDialogSearchRowContainer*) _tmp11_; -#line 796 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp12_ = c; -#line 796 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (saved_search_dialog_search_row_container_is_complete (_tmp12_)) { -#line 1909 "SavedSearchDialog.c" - gint _tmp13_; -#line 797 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp13_ = valid_rows; -#line 797 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - valid_rows = _tmp13_ + 1; -#line 1915 "SavedSearchDialog.c" - } -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (c); -#line 1919 "SavedSearchDialog.c" - } -#line 795 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (_c_list); -#line 1923 "SavedSearchDialog.c" - } -#line 799 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp14_ = valid_rows; -#line 799 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp15_ = self->priv->row_list; -#line 799 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp16_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 799 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp17_ = _tmp16_; -#line 799 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->valid = _tmp14_ == _tmp17_; -#line 1935 "SavedSearchDialog.c" - } else { -#line 801 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->valid = FALSE; -#line 1939 "SavedSearchDialog.c" - } - } - } -#line 805 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp18_ = self->priv->valid; -#line 805 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_dialog_set_response_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_dialog_get_type (), GtkDialog), (gint) GTK_RESPONSE_OK, _tmp18_); -#line 1947 "SavedSearchDialog.c" -} - - -static SavedSearchDialogSearchRowContainer* -saved_search_dialog_search_row_container_construct (GType object_type) -{ - SavedSearchDialogSearchRowContainer* self = NULL; -#line 24 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = (SavedSearchDialogSearchRowContainer*) g_type_create_instance (object_type); -#line 25 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_setup_gui (self); -#line 26 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_set_type (self, SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT); -#line 24 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return self; -#line 1963 "SavedSearchDialog.c" -} - - -static SavedSearchDialogSearchRowContainer* -saved_search_dialog_search_row_container_new (void) -{ -#line 24 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return saved_search_dialog_search_row_container_construct (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER); -#line 1972 "SavedSearchDialog.c" -} - - -static SavedSearchDialogSearchRowContainer* -saved_search_dialog_search_row_container_construct_edit_existing (GType object_type, - SearchCondition* sc) -{ - SavedSearchDialogSearchRowContainer* self = NULL; - SearchConditionSearchType _tmp0_; - SearchConditionSearchType _tmp1_; - SearchConditionSearchType _tmp2_; - SearchConditionSearchType _tmp3_; - SavedSearchDialogSearchRow* _tmp4_; -#line 29 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (IS_SEARCH_CONDITION (sc), NULL); -#line 29 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = (SavedSearchDialogSearchRowContainer*) g_type_create_instance (object_type); -#line 30 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_setup_gui (self); -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = search_condition_get_search_type (sc); -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = _tmp0_; -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_set_type (self, _tmp1_); -#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = search_condition_get_search_type (sc); -#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = _tmp2_; -#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_set_type_combo_box (self, _tmp3_); -#line 33 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = self->priv->my_row; -#line 33 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_populate (_tmp4_, sc); -#line 29 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return self; -#line 2010 "SavedSearchDialog.c" -} - - -static SavedSearchDialogSearchRowContainer* -saved_search_dialog_search_row_container_new_edit_existing (SearchCondition* sc) -{ -#line 29 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return saved_search_dialog_search_row_container_construct_edit_existing (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, sc); -#line 2019 "SavedSearchDialog.c" -} - - -static void -_saved_search_dialog_search_row_container_on_type_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 49 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_on_type_changed ((SavedSearchDialogSearchRowContainer*) self); -#line 2029 "SavedSearchDialog.c" -} - - -static void -_saved_search_dialog_search_row_container_on_removed_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 53 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_on_removed ((SavedSearchDialogSearchRowContainer*) self); -#line 2039 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_container_setup_gui (SavedSearchDialogSearchRowContainer* self) -{ - gint _tmp0_; - SearchConditionSearchType* _tmp1_; - GeeHashMap* _tmp2_; - GtkComboBoxText* _tmp3_; - GtkComboBoxText* _tmp18_; - GtkButton* _tmp19_; - GtkButton* _tmp20_; - GtkButton* _tmp21_; - GtkBox* _tmp22_; - GtkBox* _tmp23_; - GtkComboBoxText* _tmp24_; - GtkBox* _tmp25_; - GtkButton* _tmp26_; - GtkBox* _tmp27_; - GtkBox* _tmp28_; - GtkBox* _tmp29_; - GtkBox* _tmp30_; - GtkBox* _tmp31_; -#line 37 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self)); -#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = search_condition_search_type_as_array (&_tmp0_); -#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->search_types = (g_free (self->priv->search_types), NULL); -#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->search_types = _tmp1_; -#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->search_types_length1 = _tmp0_; -#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->_search_types_size_ = self->priv->search_types_length1; -#line 39 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = gee_hash_map_new (SEARCH_CONDITION_TYPE_SEARCH_TYPE, NULL, NULL, G_TYPE_INT, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 39 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->search_types_index); -#line 39 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->search_types_index = _tmp2_; -#line 40 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - search_condition_search_type_sort_array (&self->priv->search_types, &self->priv->search_types_length1); -#line 42 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = (GtkComboBoxText*) gtk_combo_box_text_new (); -#line 42 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp3_); -#line 42 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->type_combo); -#line 42 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->type_combo = _tmp3_; -#line 2092 "SavedSearchDialog.c" - { - gint i = 0; -#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - i = 0; -#line 2097 "SavedSearchDialog.c" - { - gboolean _tmp4_ = FALSE; -#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = TRUE; -#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - while (TRUE) { -#line 2104 "SavedSearchDialog.c" - gint _tmp6_; - SearchConditionSearchType* _tmp7_; - gint _tmp7__length1; - SearchConditionSearchType st = 0; - SearchConditionSearchType* _tmp8_; - gint _tmp8__length1; - gint _tmp9_; - SearchConditionSearchType _tmp10_; - GeeHashMap* _tmp11_; - SearchConditionSearchType _tmp12_; - gint _tmp13_; - GtkComboBoxText* _tmp14_; - SearchConditionSearchType _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; -#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (!_tmp4_) { -#line 2122 "SavedSearchDialog.c" - gint _tmp5_; -#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = i; -#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - i = _tmp5_ + 1; -#line 2128 "SavedSearchDialog.c" - } -#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = FALSE; -#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = i; -#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = self->priv->search_types; -#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7__length1 = self->priv->search_types_length1; -#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (!(_tmp6_ < _tmp7__length1)) { -#line 43 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - break; -#line 2142 "SavedSearchDialog.c" - } -#line 44 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = self->priv->search_types; -#line 44 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8__length1 = self->priv->search_types_length1; -#line 44 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = i; -#line 44 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp10_ = _tmp8_[_tmp9_]; -#line 44 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - st = _tmp10_; -#line 45 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp11_ = self->priv->search_types_index; -#line 45 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp12_ = st; -#line 45 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp13_ = i; -#line 45 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) _tmp12_), (gpointer) ((gintptr) _tmp13_)); -#line 46 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp14_ = self->priv->type_combo; -#line 46 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp15_ = st; -#line 46 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp16_ = search_condition_search_type_display_text (_tmp15_); -#line 46 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp17_ = _tmp16_; -#line 46 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp14_, _tmp17_); -#line 46 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_free0 (_tmp17_); -#line 2174 "SavedSearchDialog.c" - } - } - } -#line 48 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_set_type_combo_box (self, SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT); -#line 49 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp18_ = self->priv->type_combo; -#line 49 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_container_on_type_changed_gtk_combo_box_changed, self); -#line 51 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp19_ = (GtkButton*) gtk_button_new_from_icon_name ("window-close-symbolic", (GtkIconSize) GTK_ICON_SIZE_BUTTON); -#line 51 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp19_); -#line 51 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->remove_button); -#line 51 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->remove_button = _tmp19_; -#line 52 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp20_ = self->priv->remove_button; -#line 52 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_button_set_relief (_tmp20_, GTK_RELIEF_NONE); -#line 53 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp21_ = self->priv->remove_button; -#line 53 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect (_tmp21_, "clicked", (GCallback) _saved_search_dialog_search_row_container_on_removed_gtk_button_clicked, self); -#line 55 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp22_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); -#line 55 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp22_); -#line 55 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->box); -#line 55 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->box = _tmp22_; -#line 56 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp23_ = self->priv->box; -#line 56 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp24_ = self->priv->type_combo; -#line 56 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_start (_tmp23_, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 57 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp25_ = self->priv->box; -#line 57 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp26_ = self->priv->remove_button; -#line 57 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_end (_tmp25_, G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 58 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp27_ = self->priv->box; -#line 58 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_set_margin_top (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), 2); -#line 59 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp28_ = self->priv->box; -#line 59 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_set_margin_bottom (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, gtk_widget_get_type (), GtkWidget), 2); -#line 60 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp29_ = self->priv->box; -#line 60 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_set_margin_start (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget), 8); -#line 61 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp30_ = self->priv->box; -#line 61 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_set_margin_end (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_widget_get_type (), GtkWidget), 8); -#line 62 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp31_ = self->priv->box; -#line 62 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_widget_get_type (), GtkWidget)); -#line 2240 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_container_on_type_changed (SavedSearchDialogSearchRowContainer* self) -{ -#line 65 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self)); -#line 66 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_set_type (self, saved_search_dialog_search_row_container_get_search_type (self)); -#line 67 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_emit (self, saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL], 0, self); -#line 2253 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_container_set_type_combo_box (SavedSearchDialogSearchRowContainer* self, - SearchConditionSearchType st) -{ - GtkComboBoxText* _tmp0_; - GeeHashMap* _tmp1_; - gpointer _tmp2_; -#line 70 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self)); -#line 71 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->type_combo; -#line 71 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->search_types_index; -#line 71 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), (gpointer) ((gintptr) st)); -#line 71 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), (gint) ((gintptr) _tmp2_)); -#line 2274 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_container_set_type (SavedSearchDialogSearchRowContainer* self, - SearchConditionSearchType type) -{ - SavedSearchDialogSearchRow* _tmp0_; - GtkBox* _tmp11_; - SavedSearchDialogSearchRow* _tmp12_; - GtkWidget* _tmp13_; - GtkWidget* _tmp14_; -#line 74 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self)); -#line 75 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->my_row; -#line 75 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp0_ != NULL) { -#line 2293 "SavedSearchDialog.c" - GtkBox* _tmp1_; - SavedSearchDialogSearchRow* _tmp2_; - GtkWidget* _tmp3_; - GtkWidget* _tmp4_; -#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->box; -#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->my_row; -#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = saved_search_dialog_search_row_get_widget (_tmp2_); -#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = _tmp3_; -#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_container_remove (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_container_get_type (), GtkContainer), _tmp4_); -#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (_tmp4_); -#line 2310 "SavedSearchDialog.c" - } -#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - switch (type) { -#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - case SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT: -#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - case SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME: -#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - case SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME: -#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - case SEARCH_CONDITION_SEARCH_TYPE_TAG: -#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - case SEARCH_CONDITION_SEARCH_TYPE_COMMENT: -#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - case SEARCH_CONDITION_SEARCH_TYPE_TITLE: -#line 2326 "SavedSearchDialog.c" - { - SavedSearchDialogSearchRowText* _tmp5_; -#line 85 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = saved_search_dialog_search_row_text_new (self); -#line 85 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_unref0 (self->priv->my_row); -#line 85 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->my_row = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRow); -#line 86 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - break; -#line 2337 "SavedSearchDialog.c" - } -#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - case SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE: -#line 2341 "SavedSearchDialog.c" - { - SavedSearchDialogSearchRowMediaType* _tmp6_; -#line 89 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = saved_search_dialog_search_row_media_type_new (self); -#line 89 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_unref0 (self->priv->my_row); -#line 89 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->my_row = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRow); -#line 90 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - break; -#line 2352 "SavedSearchDialog.c" - } -#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - case SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE: -#line 2356 "SavedSearchDialog.c" - { - SavedSearchDialogSearchRowFlagged* _tmp7_; -#line 93 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = saved_search_dialog_search_row_flagged_new (self); -#line 93 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_unref0 (self->priv->my_row); -#line 93 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->my_row = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRow); -#line 94 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - break; -#line 2367 "SavedSearchDialog.c" - } -#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - case SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE: -#line 2371 "SavedSearchDialog.c" - { - SavedSearchDialogSearchRowModified* _tmp8_; -#line 97 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = saved_search_dialog_search_row_modified_new (self); -#line 97 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_unref0 (self->priv->my_row); -#line 97 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->my_row = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRow); -#line 98 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - break; -#line 2382 "SavedSearchDialog.c" - } -#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - case SEARCH_CONDITION_SEARCH_TYPE_RATING: -#line 2386 "SavedSearchDialog.c" - { - SavedSearchDialogSearchRowRating* _tmp9_; -#line 101 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = saved_search_dialog_search_row_rating_new (self); -#line 101 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_unref0 (self->priv->my_row); -#line 101 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->my_row = G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRow); -#line 102 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - break; -#line 2397 "SavedSearchDialog.c" - } -#line 78 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - case SEARCH_CONDITION_SEARCH_TYPE_DATE: -#line 2401 "SavedSearchDialog.c" - { - SavedSearchDialogSearchRowDate* _tmp10_; -#line 105 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp10_ = saved_search_dialog_search_row_date_new (self); -#line 105 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_unref0 (self->priv->my_row); -#line 105 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->my_row = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRow); -#line 106 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - break; -#line 2412 "SavedSearchDialog.c" - } - default: - { -#line 109 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_assert_not_reached (); -#line 2418 "SavedSearchDialog.c" - } - } -#line 112 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp11_ = self->priv->box; -#line 112 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp12_ = self->priv->my_row; -#line 112 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp13_ = saved_search_dialog_search_row_get_widget (_tmp12_); -#line 112 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp14_ = _tmp13_; -#line 112 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_start (_tmp11_, _tmp14_, TRUE, TRUE, (guint) 0); -#line 112 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (_tmp14_); -#line 2433 "SavedSearchDialog.c" -} - - -static SearchConditionSearchType -saved_search_dialog_search_row_container_get_search_type (SavedSearchDialogSearchRowContainer* self) -{ - SearchConditionSearchType result = 0; - SearchConditionSearchType* _tmp0_; - gint _tmp0__length1; - GtkComboBoxText* _tmp1_; - SearchConditionSearchType _tmp2_; -#line 115 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self), 0); -#line 116 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->search_types; -#line 116 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0__length1 = self->priv->search_types_length1; -#line 116 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->type_combo; -#line 116 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = _tmp0_[gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))]; -#line 116 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = _tmp2_; -#line 116 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 2459 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_container_on_removed (SavedSearchDialogSearchRowContainer* self) -{ -#line 119 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self)); -#line 120 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_emit (self, saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_REMOVE_SIGNAL], 0, self); -#line 2470 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_container_allow_removal (SavedSearchDialogSearchRowContainer* self, - gboolean allow) -{ - GtkButton* _tmp0_; -#line 123 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self)); -#line 124 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->remove_button; -#line 124 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget), allow); -#line 2485 "SavedSearchDialog.c" -} - - -static GtkWidget* -saved_search_dialog_search_row_container_get_widget (SavedSearchDialogSearchRowContainer* self) -{ - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 127 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self), NULL); -#line 128 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->box; -#line 128 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 128 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = _tmp1_; -#line 128 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 2505 "SavedSearchDialog.c" -} - - -static SearchCondition* -saved_search_dialog_search_row_container_get_search_condition (SavedSearchDialogSearchRowContainer* self) -{ - SearchCondition* result = NULL; - SavedSearchDialogSearchRow* _tmp0_; - SearchCondition* _tmp1_; -#line 131 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self), NULL); -#line 132 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->my_row; -#line 132 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = saved_search_dialog_search_row_get_search_condition (_tmp0_); -#line 132 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = _tmp1_; -#line 132 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 2525 "SavedSearchDialog.c" -} - - -static gboolean -saved_search_dialog_search_row_container_is_complete (SavedSearchDialogSearchRowContainer* self) -{ - gboolean result = FALSE; - SavedSearchDialogSearchRow* _tmp0_; -#line 135 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (self), FALSE); -#line 136 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->my_row; -#line 136 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = saved_search_dialog_search_row_is_complete (_tmp0_); -#line 136 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 2542 "SavedSearchDialog.c" -} - - -static void -g_cclosure_user_marshal_VOID__SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER) (gpointer data1, gpointer arg_1, gpointer data2); - register GMarshalFunc_VOID__SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (n_param_values == 2); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - data1 = closure->data; -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - data2 = param_values->data[0].v_pointer; -#line 2568 "SavedSearchDialog.c" - } else { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - data1 = param_values->data[0].v_pointer; -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - data2 = closure->data; -#line 2574 "SavedSearchDialog.c" - } -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - callback = (GMarshalFunc_VOID__SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER) (marshal_data ? marshal_data : cc->callback); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - callback (data1, saved_search_dialog_value_get_search_row_container (param_values + 1), data2); -#line 2580 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_value_search_row_container_init (GValue* value) -{ -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - value->data[0].v_pointer = NULL; -#line 2589 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_value_search_row_container_free_value (GValue* value) -{ -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (value->data[0].v_pointer) { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_unref (value->data[0].v_pointer); -#line 2600 "SavedSearchDialog.c" - } -} - - -static void -saved_search_dialog_value_search_row_container_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (src_value->data[0].v_pointer) { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - dest_value->data[0].v_pointer = saved_search_dialog_search_row_container_ref (src_value->data[0].v_pointer); -#line 2613 "SavedSearchDialog.c" - } else { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - dest_value->data[0].v_pointer = NULL; -#line 2617 "SavedSearchDialog.c" - } -} - - -static gpointer -saved_search_dialog_value_search_row_container_peek_pointer (const GValue* value) -{ -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return value->data[0].v_pointer; -#line 2627 "SavedSearchDialog.c" -} - - -static gchar* -saved_search_dialog_value_search_row_container_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (collect_values[0].v_pointer) { -#line 2639 "SavedSearchDialog.c" - SavedSearchDialogSearchRowContainer * object; - object = collect_values[0].v_pointer; -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (object->parent_instance.g_class == NULL) { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2646 "SavedSearchDialog.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2650 "SavedSearchDialog.c" - } -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - value->data[0].v_pointer = saved_search_dialog_search_row_container_ref (object); -#line 2654 "SavedSearchDialog.c" - } else { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - value->data[0].v_pointer = NULL; -#line 2658 "SavedSearchDialog.c" - } -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return NULL; -#line 2662 "SavedSearchDialog.c" -} - - -static gchar* -saved_search_dialog_value_search_row_container_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - SavedSearchDialogSearchRowContainer ** object_p; - object_p = collect_values[0].v_pointer; -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (!object_p) { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2678 "SavedSearchDialog.c" - } -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (!value->data[0].v_pointer) { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - *object_p = NULL; -#line 2684 "SavedSearchDialog.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - *object_p = value->data[0].v_pointer; -#line 2688 "SavedSearchDialog.c" - } else { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - *object_p = saved_search_dialog_search_row_container_ref (value->data[0].v_pointer); -#line 2692 "SavedSearchDialog.c" - } -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return NULL; -#line 2696 "SavedSearchDialog.c" -} - - -static GParamSpec* -saved_search_dialog_param_spec_search_row_container (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - SavedSearchDialogParamSpecSearchRowContainer* spec; -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (g_type_is_a (object_type, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER), NULL); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return G_PARAM_SPEC (spec); -#line 2716 "SavedSearchDialog.c" -} - - -static gpointer -saved_search_dialog_value_get_search_row_container (const GValue* value) -{ -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER), NULL); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return value->data[0].v_pointer; -#line 2727 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_value_set_search_row_container (GValue* value, - gpointer v_object) -{ - SavedSearchDialogSearchRowContainer * old; -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER)); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - old = value->data[0].v_pointer; -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (v_object) { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER)); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - value->data[0].v_pointer = v_object; -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_ref (value->data[0].v_pointer); -#line 2750 "SavedSearchDialog.c" - } else { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - value->data[0].v_pointer = NULL; -#line 2754 "SavedSearchDialog.c" - } -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (old) { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_unref (old); -#line 2760 "SavedSearchDialog.c" - } -} - - -static void -saved_search_dialog_value_take_search_row_container (GValue* value, - gpointer v_object) -{ - SavedSearchDialogSearchRowContainer * old; -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER)); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - old = value->data[0].v_pointer; -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (v_object) { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER)); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - value->data[0].v_pointer = v_object; -#line 2782 "SavedSearchDialog.c" - } else { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - value->data[0].v_pointer = NULL; -#line 2786 "SavedSearchDialog.c" - } -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (old) { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_unref (old); -#line 2792 "SavedSearchDialog.c" - } -} - - -static void -saved_search_dialog_search_row_container_class_init (SavedSearchDialogSearchRowContainerClass * klass) -{ -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_parent_class = g_type_class_peek_parent (klass); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowContainerClass *) klass)->finalize = saved_search_dialog_search_row_container_finalize; -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_type_class_add_private (klass, sizeof (SavedSearchDialogSearchRowContainerPrivate)); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_REMOVE_SIGNAL] = g_signal_new ("remove", SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER, G_TYPE_NONE, 1, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL] = g_signal_new ("changed", SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER, G_TYPE_NONE, 1, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER); -#line 2810 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_container_instance_init (SavedSearchDialogSearchRowContainer * self) -{ -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv = SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_GET_PRIVATE (self); -#line 22 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->my_row = NULL; -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->ref_count = 1; -#line 2823 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_container_finalize (SavedSearchDialogSearchRowContainer * obj) -{ - SavedSearchDialogSearchRowContainer * self; -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, SavedSearchDialogSearchRowContainer); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_handlers_destroy (self); -#line 16 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->type_combo); -#line 17 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->box); -#line 18 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->remove_button); -#line 19 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->search_types = (g_free (self->priv->search_types), NULL); -#line 20 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->search_types_index); -#line 22 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_unref0 (self->priv->my_row); -#line 2847 "SavedSearchDialog.c" -} - - -static GType -saved_search_dialog_search_row_container_get_type (void) -{ - static volatile gsize saved_search_dialog_search_row_container_type_id__volatile = 0; - if (g_once_init_enter (&saved_search_dialog_search_row_container_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { saved_search_dialog_value_search_row_container_init, saved_search_dialog_value_search_row_container_free_value, saved_search_dialog_value_search_row_container_copy_value, saved_search_dialog_value_search_row_container_peek_pointer, "p", saved_search_dialog_value_search_row_container_collect_value, "p", saved_search_dialog_value_search_row_container_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogSearchRowContainerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_search_row_container_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialogSearchRowContainer), 0, (GInstanceInitFunc) saved_search_dialog_search_row_container_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType saved_search_dialog_search_row_container_type_id; - saved_search_dialog_search_row_container_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SavedSearchDialogSearchRowContainer", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&saved_search_dialog_search_row_container_type_id__volatile, saved_search_dialog_search_row_container_type_id); - } - return saved_search_dialog_search_row_container_type_id__volatile; -} - - -static gpointer -saved_search_dialog_search_row_container_ref (gpointer instance) -{ - SavedSearchDialogSearchRowContainer * self; - self = instance; -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_atomic_int_inc (&self->ref_count); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return instance; -#line 2876 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_container_unref (gpointer instance) -{ - SavedSearchDialogSearchRowContainer * self; - self = instance; -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_GET_CLASS (self)->finalize (self); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2891 "SavedSearchDialog.c" - } -} - - -static GtkWidget* -saved_search_dialog_search_row_real_get_widget (SavedSearchDialogSearchRow* self) -{ -#line 143 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_critical ("Type `%s' does not implement abstract method `saved_search_dialog_search_row_get_widget'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 143 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return NULL; -#line 2903 "SavedSearchDialog.c" -} - - -GtkWidget* -saved_search_dialog_search_row_get_widget (SavedSearchDialogSearchRow* self) -{ -#line 143 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW (self), NULL); -#line 143 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return SAVED_SEARCH_DIALOG_SEARCH_ROW_GET_CLASS (self)->get_widget (self); -#line 2914 "SavedSearchDialog.c" -} - - -static SearchCondition* -saved_search_dialog_search_row_real_get_search_condition (SavedSearchDialogSearchRow* self) -{ -#line 146 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_critical ("Type `%s' does not implement abstract method `saved_search_dialog_search_row_get_search_condition'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 146 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return NULL; -#line 2925 "SavedSearchDialog.c" -} - - -SearchCondition* -saved_search_dialog_search_row_get_search_condition (SavedSearchDialogSearchRow* self) -{ -#line 146 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW (self), NULL); -#line 146 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return SAVED_SEARCH_DIALOG_SEARCH_ROW_GET_CLASS (self)->get_search_condition (self); -#line 2936 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_real_populate (SavedSearchDialogSearchRow* self, - SearchCondition* sc) -{ -#line 149 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_critical ("Type `%s' does not implement abstract method `saved_search_dialog_search_row_populate'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 149 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return; -#line 2948 "SavedSearchDialog.c" -} - - -void -saved_search_dialog_search_row_populate (SavedSearchDialogSearchRow* self, - SearchCondition* sc) -{ -#line 149 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW (self)); -#line 149 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - SAVED_SEARCH_DIALOG_SEARCH_ROW_GET_CLASS (self)->populate (self, sc); -#line 2960 "SavedSearchDialog.c" -} - - -static gboolean -saved_search_dialog_search_row_real_is_complete (SavedSearchDialogSearchRow* self) -{ - gboolean _tmp0_ = FALSE; -#line 152 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_critical ("Type `%s' does not implement abstract method `saved_search_dialog_search_row_is_complete'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 152 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return _tmp0_; -#line 2972 "SavedSearchDialog.c" -} - - -gboolean -saved_search_dialog_search_row_is_complete (SavedSearchDialogSearchRow* self) -{ -#line 152 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW (self), FALSE); -#line 152 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return SAVED_SEARCH_DIALOG_SEARCH_ROW_GET_CLASS (self)->is_complete (self); -#line 2983 "SavedSearchDialog.c" -} - - -static SavedSearchDialogSearchRow* -saved_search_dialog_search_row_construct (GType object_type) -{ - SavedSearchDialogSearchRow* self = NULL; -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = (SavedSearchDialogSearchRow*) g_type_create_instance (object_type); -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return self; -#line 2995 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_value_search_row_init (GValue* value) -{ -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - value->data[0].v_pointer = NULL; -#line 3004 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_value_search_row_free_value (GValue* value) -{ -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (value->data[0].v_pointer) { -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_unref (value->data[0].v_pointer); -#line 3015 "SavedSearchDialog.c" - } -} - - -static void -saved_search_dialog_value_search_row_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (src_value->data[0].v_pointer) { -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - dest_value->data[0].v_pointer = saved_search_dialog_search_row_ref (src_value->data[0].v_pointer); -#line 3028 "SavedSearchDialog.c" - } else { -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - dest_value->data[0].v_pointer = NULL; -#line 3032 "SavedSearchDialog.c" - } -} - - -static gpointer -saved_search_dialog_value_search_row_peek_pointer (const GValue* value) -{ -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return value->data[0].v_pointer; -#line 3042 "SavedSearchDialog.c" -} - - -static gchar* -saved_search_dialog_value_search_row_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (collect_values[0].v_pointer) { -#line 3054 "SavedSearchDialog.c" - SavedSearchDialogSearchRow * object; - object = collect_values[0].v_pointer; -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (object->parent_instance.g_class == NULL) { -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3061 "SavedSearchDialog.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3065 "SavedSearchDialog.c" - } -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - value->data[0].v_pointer = saved_search_dialog_search_row_ref (object); -#line 3069 "SavedSearchDialog.c" - } else { -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - value->data[0].v_pointer = NULL; -#line 3073 "SavedSearchDialog.c" - } -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return NULL; -#line 3077 "SavedSearchDialog.c" -} - - -static gchar* -saved_search_dialog_value_search_row_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - SavedSearchDialogSearchRow ** object_p; - object_p = collect_values[0].v_pointer; -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (!object_p) { -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 3093 "SavedSearchDialog.c" - } -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (!value->data[0].v_pointer) { -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - *object_p = NULL; -#line 3099 "SavedSearchDialog.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - *object_p = value->data[0].v_pointer; -#line 3103 "SavedSearchDialog.c" - } else { -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - *object_p = saved_search_dialog_search_row_ref (value->data[0].v_pointer); -#line 3107 "SavedSearchDialog.c" - } -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return NULL; -#line 3111 "SavedSearchDialog.c" -} - - -static GParamSpec* -saved_search_dialog_param_spec_search_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - SavedSearchDialogParamSpecSearchRow* spec; -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (g_type_is_a (object_type, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW), NULL); -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return G_PARAM_SPEC (spec); -#line 3131 "SavedSearchDialog.c" -} - - -static gpointer -saved_search_dialog_value_get_search_row (const GValue* value) -{ -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW), NULL); -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return value->data[0].v_pointer; -#line 3142 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_value_set_search_row (GValue* value, - gpointer v_object) -{ - SavedSearchDialogSearchRow * old; -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW)); -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - old = value->data[0].v_pointer; -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (v_object) { -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW)); -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - value->data[0].v_pointer = v_object; -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_ref (value->data[0].v_pointer); -#line 3165 "SavedSearchDialog.c" - } else { -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - value->data[0].v_pointer = NULL; -#line 3169 "SavedSearchDialog.c" - } -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (old) { -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_unref (old); -#line 3175 "SavedSearchDialog.c" - } -} - - -static void -saved_search_dialog_value_take_search_row (GValue* value, - gpointer v_object) -{ - SavedSearchDialogSearchRow * old; -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW)); -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - old = value->data[0].v_pointer; -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (v_object) { -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW)); -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - value->data[0].v_pointer = v_object; -#line 3197 "SavedSearchDialog.c" - } else { -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - value->data[0].v_pointer = NULL; -#line 3201 "SavedSearchDialog.c" - } -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (old) { -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_unref (old); -#line 3207 "SavedSearchDialog.c" - } -} - - -static void -saved_search_dialog_search_row_class_init (SavedSearchDialogSearchRowClass * klass) -{ -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_parent_class = g_type_class_peek_parent (klass); -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->finalize = saved_search_dialog_search_row_finalize; -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->get_widget = (GtkWidget* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_real_get_widget; -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->get_search_condition = (SearchCondition* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_real_get_search_condition; -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->populate = (void (*) (SavedSearchDialogSearchRow *, SearchCondition*)) saved_search_dialog_search_row_real_populate; -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->is_complete = (gboolean (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_real_is_complete; -#line 3227 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_instance_init (SavedSearchDialogSearchRow * self) -{ -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->ref_count = 1; -#line 3236 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_finalize (SavedSearchDialogSearchRow * obj) -{ - SavedSearchDialogSearchRow * self; -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, SavedSearchDialogSearchRow); -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_handlers_destroy (self); -#line 3248 "SavedSearchDialog.c" -} - - -static GType -saved_search_dialog_search_row_get_type (void) -{ - static volatile gsize saved_search_dialog_search_row_type_id__volatile = 0; - if (g_once_init_enter (&saved_search_dialog_search_row_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { saved_search_dialog_value_search_row_init, saved_search_dialog_value_search_row_free_value, saved_search_dialog_value_search_row_copy_value, saved_search_dialog_value_search_row_peek_pointer, "p", saved_search_dialog_value_search_row_collect_value, "p", saved_search_dialog_value_search_row_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogSearchRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_search_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialogSearchRow), 0, (GInstanceInitFunc) saved_search_dialog_search_row_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType saved_search_dialog_search_row_type_id; - saved_search_dialog_search_row_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SavedSearchDialogSearchRow", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&saved_search_dialog_search_row_type_id__volatile, saved_search_dialog_search_row_type_id); - } - return saved_search_dialog_search_row_type_id__volatile; -} - - -static gpointer -saved_search_dialog_search_row_ref (gpointer instance) -{ - SavedSearchDialogSearchRow * self; - self = instance; -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_atomic_int_inc (&self->ref_count); -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return instance; -#line 3277 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_unref (gpointer instance) -{ - SavedSearchDialogSearchRow * self; - self = instance; -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - SAVED_SEARCH_DIALOG_SEARCH_ROW_GET_CLASS (self)->finalize (self); -#line 141 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 3292 "SavedSearchDialog.c" - } -} - - -static void -_saved_search_dialog_search_row_text_on_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 189 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_text_on_changed ((SavedSearchDialogSearchRowText*) self); -#line 3303 "SavedSearchDialog.c" -} - - -static void -_saved_search_dialog_search_row_text_on_changed_gtk_editable_changed (GtkEditable* _sender, - gpointer self) -{ -#line 190 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_text_on_changed ((SavedSearchDialogSearchRowText*) self); -#line 3313 "SavedSearchDialog.c" -} - - -static gpointer -_saved_search_dialog_search_row_container_ref0 (gpointer self) -{ -#line 163 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return self ? saved_search_dialog_search_row_container_ref (self) : NULL; -#line 3322 "SavedSearchDialog.c" -} - - -static SavedSearchDialogSearchRowText* -saved_search_dialog_search_row_text_construct (GType object_type, - SavedSearchDialogSearchRowContainer* parent) -{ - SavedSearchDialogSearchRowText* self = NULL; - SavedSearchDialogSearchRowContainer* _tmp0_; - GtkComboBoxText* _tmp1_; - GtkComboBoxText* _tmp2_; - GtkComboBoxText* _tmp3_; - GtkComboBoxText* _tmp4_; - GtkComboBoxText* _tmp5_; - GtkComboBoxText* _tmp6_; - GtkComboBoxText* _tmp7_; - GtkComboBoxText* _tmp8_; - GtkComboBoxText* _tmp9_; - GtkComboBoxText* _tmp10_; - GtkEntry* _tmp11_; - GtkEntry* _tmp12_; - GtkEntry* _tmp13_; - GtkEntry* _tmp14_; - GtkBox* _tmp15_; - GtkBox* _tmp16_; - GtkComboBoxText* _tmp17_; - GtkBox* _tmp18_; - GtkEntry* _tmp19_; - GtkBox* _tmp20_; -#line 162 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (parent), NULL); -#line 162 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = (SavedSearchDialogSearchRowText*) saved_search_dialog_search_row_construct (object_type); -#line 163 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = _saved_search_dialog_search_row_container_ref0 (parent); -#line 163 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (self->priv->parent); -#line 163 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->parent = _tmp0_; -#line 166 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = (GtkComboBoxText*) gtk_combo_box_text_new (); -#line 166 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp1_); -#line 166 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->text_context); -#line 166 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->text_context = _tmp1_; -#line 167 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->text_context; -#line 167 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp2_, _ ("contains")); -#line 168 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = self->priv->text_context; -#line 168 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp3_, _ ("is exactly")); -#line 169 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = self->priv->text_context; -#line 169 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp4_, _ ("starts with")); -#line 170 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = self->priv->text_context; -#line 170 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp5_, _ ("ends with")); -#line 171 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = self->priv->text_context; -#line 171 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp6_, _ ("does not contain")); -#line 172 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = self->priv->text_context; -#line 172 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp7_, _ ("is not set")); -#line 173 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = self->priv->text_context; -#line 173 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp8_, _ ("is set")); -#line 174 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = self->priv->text_context; -#line 174 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 175 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp10_ = self->priv->text_context; -#line 175 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_text_on_changed_gtk_combo_box_changed, self); -#line 177 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp11_ = (GtkEntry*) gtk_entry_new (); -#line 177 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp11_); -#line 177 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->entry); -#line 177 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->entry = _tmp11_; -#line 178 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp12_ = self->priv->entry; -#line 178 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_entry_set_width_chars (_tmp12_, 25); -#line 179 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp13_ = self->priv->entry; -#line 179 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_entry_set_activates_default (_tmp13_, TRUE); -#line 180 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp14_ = self->priv->entry; -#line 180 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_editable_get_type (), GtkEditable), "changed", (GCallback) _saved_search_dialog_search_row_text_on_changed_gtk_editable_changed, self); -#line 182 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp15_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3); -#line 182 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp15_); -#line 182 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->box); -#line 182 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->box = _tmp15_; -#line 183 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp16_ = self->priv->box; -#line 183 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp17_ = self->priv->text_context; -#line 183 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_start (_tmp16_, G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 184 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp18_ = self->priv->box; -#line 184 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp19_ = self->priv->entry; -#line 184 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_start (_tmp18_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 185 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp20_ = self->priv->box; -#line 185 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget)); -#line 162 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return self; -#line 3452 "SavedSearchDialog.c" -} - - -static SavedSearchDialogSearchRowText* -saved_search_dialog_search_row_text_new (SavedSearchDialogSearchRowContainer* parent) -{ -#line 162 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return saved_search_dialog_search_row_text_construct (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, parent); -#line 3461 "SavedSearchDialog.c" -} - - -static GtkWidget* -saved_search_dialog_search_row_text_real_get_widget (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowText * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 193 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowText); -#line 194 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->box; -#line 194 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 194 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = _tmp1_; -#line 194 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 3482 "SavedSearchDialog.c" -} - - -static SearchCondition* -saved_search_dialog_search_row_text_real_get_search_condition (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowText * self; - SearchCondition* result = NULL; - SearchConditionSearchType type = 0; - SavedSearchDialogSearchRowContainer* _tmp0_; - gchar* text = NULL; - GtkEntry* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; - SearchConditionTextContext context = 0; - SearchConditionText* c = NULL; - SearchConditionText* _tmp4_; -#line 197 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowText); -#line 198 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->parent; -#line 198 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - type = saved_search_dialog_search_row_container_get_search_type (_tmp0_); -#line 199 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->entry; -#line 199 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = gtk_entry_get_text (_tmp1_); -#line 199 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 199 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - text = _tmp3_; -#line 200 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - context = saved_search_dialog_search_row_text_get_text_context (self); -#line 201 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = search_condition_text_new (type, text, context); -#line 201 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - c = _tmp4_; -#line 202 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (c, TYPE_SEARCH_CONDITION, SearchCondition); -#line 202 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_free0 (text); -#line 202 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 3526 "SavedSearchDialog.c" -} - - -static gpointer -_search_condition_ref0 (gpointer self) -{ -#line 206 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return self ? search_condition_ref (self) : NULL; -#line 3535 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_text_real_populate (SavedSearchDialogSearchRow* base, - SearchCondition* sc) -{ - SavedSearchDialogSearchRowText * self; - SearchConditionText* text = NULL; - SearchConditionText* _tmp0_; - GtkComboBoxText* _tmp1_; - SearchConditionTextContext _tmp2_; - SearchConditionTextContext _tmp3_; - GtkEntry* _tmp4_; - const gchar* _tmp5_; - const gchar* _tmp6_; -#line 205 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowText); -#line 205 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (IS_SEARCH_CONDITION (sc)); -#line 206 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (sc, TYPE_SEARCH_CONDITION_TEXT) ? ((SearchConditionText*) sc) : NULL); -#line 206 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - text = _tmp0_; -#line 207 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _vala_assert (text != NULL, "text != null"); -#line 208 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->text_context; -#line 208 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = search_condition_text_get_context (text); -#line 208 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = _tmp2_; -#line 208 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp3_); -#line 209 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = self->priv->entry; -#line 209 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = search_condition_text_get_text (text); -#line 209 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = _tmp5_; -#line 209 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_entry_set_text (_tmp4_, _tmp6_); -#line 210 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_text_on_changed (self); -#line 205 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _search_condition_unref0 (text); -#line 3582 "SavedSearchDialog.c" -} - - -static gboolean -saved_search_dialog_search_row_text_real_is_complete (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowText * self; - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GtkEntry* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; - gboolean _tmp7_; -#line 213 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowText); -#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->entry; -#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = gtk_entry_get_text (_tmp2_); -#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = _tmp3_; -#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = string_chomp (_tmp4_); -#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = _tmp5_; -#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = g_strcmp0 (_tmp6_, "") != 0; -#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_free0 (_tmp6_); -#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp7_) { -#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = TRUE; -#line 3619 "SavedSearchDialog.c" - } else { -#line 215 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = saved_search_dialog_search_row_text_get_text_context (self) == SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET; -#line 3623 "SavedSearchDialog.c" - } -#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp1_) { -#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = TRUE; -#line 3629 "SavedSearchDialog.c" - } else { -#line 216 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = saved_search_dialog_search_row_text_get_text_context (self) == SEARCH_CONDITION_TEXT_CONTEXT_IS_SET; -#line 3633 "SavedSearchDialog.c" - } -#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = _tmp0_; -#line 214 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 3639 "SavedSearchDialog.c" -} - - -static SearchConditionTextContext -saved_search_dialog_search_row_text_get_text_context (SavedSearchDialogSearchRowText* self) -{ - SearchConditionTextContext result = 0; - GtkComboBoxText* _tmp0_; -#line 219 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_TEXT (self), 0); -#line 220 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->text_context; -#line 220 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = (SearchConditionTextContext) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox)); -#line 220 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 3656 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_text_on_changed (SavedSearchDialogSearchRowText* self) -{ - gboolean _tmp0_ = FALSE; - SavedSearchDialogSearchRowContainer* _tmp3_; - SavedSearchDialogSearchRowContainer* _tmp4_; -#line 223 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_TEXT (self)); -#line 224 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (saved_search_dialog_search_row_text_get_text_context (self) == SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET) { -#line 224 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = TRUE; -#line 3672 "SavedSearchDialog.c" - } else { -#line 225 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = saved_search_dialog_search_row_text_get_text_context (self) == SEARCH_CONDITION_TEXT_CONTEXT_IS_SET; -#line 3676 "SavedSearchDialog.c" - } -#line 224 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp0_) { -#line 3680 "SavedSearchDialog.c" - GtkEntry* _tmp1_; -#line 226 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->entry; -#line 226 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget)); -#line 3686 "SavedSearchDialog.c" - } else { - GtkEntry* _tmp2_; -#line 228 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->entry; -#line 228 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 3693 "SavedSearchDialog.c" - } -#line 231 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = self->priv->parent; -#line 231 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = self->priv->parent; -#line 231 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_emit (_tmp3_, saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL], 0, _tmp4_); -#line 3701 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_text_class_init (SavedSearchDialogSearchRowTextClass * klass) -{ -#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_text_parent_class = g_type_class_peek_parent (klass); -#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->finalize = saved_search_dialog_search_row_text_finalize; -#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_type_class_add_private (klass, sizeof (SavedSearchDialogSearchRowTextPrivate)); -#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->get_widget = (GtkWidget* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_text_real_get_widget; -#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->get_search_condition = (SearchCondition* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_text_real_get_search_condition; -#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->populate = (void (*) (SavedSearchDialogSearchRow *, SearchCondition*)) saved_search_dialog_search_row_text_real_populate; -#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->is_complete = (gboolean (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_text_real_is_complete; -#line 3722 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_text_instance_init (SavedSearchDialogSearchRowText * self) -{ -#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv = SAVED_SEARCH_DIALOG_SEARCH_ROW_TEXT_GET_PRIVATE (self); -#line 3731 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_text_finalize (SavedSearchDialogSearchRow * obj) -{ - SavedSearchDialogSearchRowText * self; - GtkComboBoxText* _tmp0_; - guint _tmp1_; - GtkEntry* _tmp2_; - guint _tmp3_; -#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_TEXT, SavedSearchDialogSearchRowText); -#line 189 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->text_context; -#line 189 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp1_, NULL, FALSE); -#line 189 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _saved_search_dialog_search_row_text_on_changed_gtk_combo_box_changed, self); -#line 190 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->entry; -#line 190 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_parse_name ("changed", gtk_editable_get_type (), &_tmp3_, NULL, FALSE); -#line 190 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_editable_get_type (), GtkEditable), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _saved_search_dialog_search_row_text_on_changed_gtk_editable_changed, self); -#line 156 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->box); -#line 157 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->text_context); -#line 158 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->entry); -#line 160 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (self->priv->parent); -#line 155 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - SAVED_SEARCH_DIALOG_SEARCH_ROW_CLASS (saved_search_dialog_search_row_text_parent_class)->finalize (obj); -#line 3767 "SavedSearchDialog.c" -} - - -static GType -saved_search_dialog_search_row_text_get_type (void) -{ - static volatile gsize saved_search_dialog_search_row_text_type_id__volatile = 0; - if (g_once_init_enter (&saved_search_dialog_search_row_text_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogSearchRowTextClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_search_row_text_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialogSearchRowText), 0, (GInstanceInitFunc) saved_search_dialog_search_row_text_instance_init, NULL }; - GType saved_search_dialog_search_row_text_type_id; - saved_search_dialog_search_row_text_type_id = g_type_register_static (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, "SavedSearchDialogSearchRowText", &g_define_type_info, 0); - g_once_init_leave (&saved_search_dialog_search_row_text_type_id__volatile, saved_search_dialog_search_row_text_type_id); - } - return saved_search_dialog_search_row_text_type_id__volatile; -} - - -static void -_saved_search_dialog_search_row_media_type_on_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 267 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_media_type_on_changed ((SavedSearchDialogSearchRowMediaType*) self); -#line 3791 "SavedSearchDialog.c" -} - - -static SavedSearchDialogSearchRowMediaType* -saved_search_dialog_search_row_media_type_construct (GType object_type, - SavedSearchDialogSearchRowContainer* parent) -{ - SavedSearchDialogSearchRowMediaType* self = NULL; - SavedSearchDialogSearchRowContainer* _tmp0_; - GtkComboBoxText* _tmp1_; - GtkComboBoxText* _tmp2_; - GtkComboBoxText* _tmp3_; - GtkComboBoxText* _tmp4_; - GtkComboBoxText* _tmp5_; - GtkComboBoxText* _tmp6_; - GtkComboBoxText* _tmp7_; - GtkComboBoxText* _tmp8_; - GtkComboBoxText* _tmp9_; - GtkComboBoxText* _tmp10_; - GtkComboBoxText* _tmp11_; - GtkBox* _tmp12_; - GtkBox* _tmp13_; - GtkComboBoxText* _tmp14_; - GtkBox* _tmp15_; - GtkComboBoxText* _tmp16_; - GtkBox* _tmp17_; -#line 242 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (parent), NULL); -#line 242 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = (SavedSearchDialogSearchRowMediaType*) saved_search_dialog_search_row_construct (object_type); -#line 243 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = _saved_search_dialog_search_row_container_ref0 (parent); -#line 243 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (self->priv->parent); -#line 243 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->parent = _tmp0_; -#line 246 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = (GtkComboBoxText*) gtk_combo_box_text_new (); -#line 246 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp1_); -#line 246 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->media_context); -#line 246 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->media_context = _tmp1_; -#line 247 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->media_context; -#line 247 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp2_, _ ("is")); -#line 248 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = self->priv->media_context; -#line 248 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp3_, _ ("is not")); -#line 249 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = self->priv->media_context; -#line 249 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 250 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = self->priv->media_context; -#line 250 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_media_type_on_changed_gtk_combo_box_changed, self); -#line 253 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = (GtkComboBoxText*) gtk_combo_box_text_new (); -#line 253 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp6_); -#line 253 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->media_type); -#line 253 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->media_type = _tmp6_; -#line 254 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = self->priv->media_type; -#line 254 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp7_, _ ("any photo")); -#line 255 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = self->priv->media_type; -#line 255 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp8_, _ ("a raw photo")); -#line 256 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = self->priv->media_type; -#line 256 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp9_, _ ("a video")); -#line 257 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp10_ = self->priv->media_type; -#line 257 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 258 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp11_ = self->priv->media_type; -#line 258 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_media_type_on_changed_gtk_combo_box_changed, self); -#line 260 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp12_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3); -#line 260 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp12_); -#line 260 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->box); -#line 260 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->box = _tmp12_; -#line 261 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp13_ = self->priv->box; -#line 261 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp14_ = self->priv->media_context; -#line 261 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_start (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 262 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp15_ = self->priv->box; -#line 262 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp16_ = self->priv->media_type; -#line 262 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_start (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 263 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp17_ = self->priv->box; -#line 263 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget)); -#line 242 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return self; -#line 3906 "SavedSearchDialog.c" -} - - -static SavedSearchDialogSearchRowMediaType* -saved_search_dialog_search_row_media_type_new (SavedSearchDialogSearchRowContainer* parent) -{ -#line 242 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return saved_search_dialog_search_row_media_type_construct (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, parent); -#line 3915 "SavedSearchDialog.c" -} - - -static GtkWidget* -saved_search_dialog_search_row_media_type_real_get_widget (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowMediaType * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 271 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaType); -#line 272 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->box; -#line 272 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 272 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = _tmp1_; -#line 272 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 3936 "SavedSearchDialog.c" -} - - -static SearchCondition* -saved_search_dialog_search_row_media_type_real_get_search_condition (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowMediaType * self; - SearchCondition* result = NULL; - SearchConditionSearchType search_type = 0; - SavedSearchDialogSearchRowContainer* _tmp0_; - SearchConditionMediaTypeContext context = 0; - GtkComboBoxText* _tmp1_; - SearchConditionMediaTypeMediaType type = 0; - GtkComboBoxText* _tmp2_; - SearchConditionMediaType* c = NULL; - SearchConditionMediaType* _tmp3_; -#line 275 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaType); -#line 276 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->parent; -#line 276 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - search_type = saved_search_dialog_search_row_container_get_search_type (_tmp0_); -#line 277 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->media_context; -#line 277 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - context = (SearchConditionMediaTypeContext) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox)); -#line 278 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->media_type; -#line 278 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - type = (SearchConditionMediaTypeMediaType) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox)); -#line 279 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = search_condition_media_type_new (search_type, context, type); -#line 279 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - c = _tmp3_; -#line 280 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (c, TYPE_SEARCH_CONDITION, SearchCondition); -#line 280 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 3975 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_media_type_real_populate (SavedSearchDialogSearchRow* base, - SearchCondition* sc) -{ - SavedSearchDialogSearchRowMediaType * self; - SearchConditionMediaType* media = NULL; - SearchConditionMediaType* _tmp0_; - GtkComboBoxText* _tmp1_; - SearchConditionMediaTypeContext _tmp2_; - SearchConditionMediaTypeContext _tmp3_; - GtkComboBoxText* _tmp4_; - SearchConditionMediaTypeMediaType _tmp5_; - SearchConditionMediaTypeMediaType _tmp6_; -#line 283 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaType); -#line 283 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (IS_SEARCH_CONDITION (sc)); -#line 284 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (sc, TYPE_SEARCH_CONDITION_MEDIA_TYPE) ? ((SearchConditionMediaType*) sc) : NULL); -#line 284 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - media = _tmp0_; -#line 285 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _vala_assert (media != NULL, "media != null"); -#line 286 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->media_context; -#line 286 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = search_condition_media_type_get_context (media); -#line 286 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = _tmp2_; -#line 286 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp3_); -#line 287 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = self->priv->media_type; -#line 287 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = search_condition_media_type_get_media_type (media); -#line 287 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = _tmp5_; -#line 287 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp6_); -#line 283 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _search_condition_unref0 (media); -#line 4020 "SavedSearchDialog.c" -} - - -static gboolean -saved_search_dialog_search_row_media_type_real_is_complete (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowMediaType * self; - gboolean result = FALSE; -#line 290 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaType); -#line 291 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = TRUE; -#line 291 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 4035 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_media_type_on_changed (SavedSearchDialogSearchRowMediaType* self) -{ - SavedSearchDialogSearchRowContainer* _tmp0_; - SavedSearchDialogSearchRowContainer* _tmp1_; -#line 294 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_MEDIA_TYPE (self)); -#line 295 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->parent; -#line 295 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->parent; -#line 295 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_emit (_tmp0_, saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL], 0, _tmp1_); -#line 4052 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_media_type_class_init (SavedSearchDialogSearchRowMediaTypeClass * klass) -{ -#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_media_type_parent_class = g_type_class_peek_parent (klass); -#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->finalize = saved_search_dialog_search_row_media_type_finalize; -#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_type_class_add_private (klass, sizeof (SavedSearchDialogSearchRowMediaTypePrivate)); -#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->get_widget = (GtkWidget* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_media_type_real_get_widget; -#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->get_search_condition = (SearchCondition* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_media_type_real_get_search_condition; -#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->populate = (void (*) (SavedSearchDialogSearchRow *, SearchCondition*)) saved_search_dialog_search_row_media_type_real_populate; -#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->is_complete = (gboolean (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_media_type_real_is_complete; -#line 4073 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_media_type_instance_init (SavedSearchDialogSearchRowMediaType * self) -{ -#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv = SAVED_SEARCH_DIALOG_SEARCH_ROW_MEDIA_TYPE_GET_PRIVATE (self); -#line 4082 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_media_type_finalize (SavedSearchDialogSearchRow * obj) -{ - SavedSearchDialogSearchRowMediaType * self; - GtkComboBoxText* _tmp0_; - guint _tmp1_; - GtkComboBoxText* _tmp2_; - guint _tmp3_; -#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MEDIA_TYPE, SavedSearchDialogSearchRowMediaType); -#line 267 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->media_context; -#line 267 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp1_, NULL, FALSE); -#line 267 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _saved_search_dialog_search_row_media_type_on_changed_gtk_combo_box_changed, self); -#line 268 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->media_type; -#line 268 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp3_, NULL, FALSE); -#line 268 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _saved_search_dialog_search_row_media_type_on_changed_gtk_combo_box_changed, self); -#line 236 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->box); -#line 237 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->media_context); -#line 238 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->media_type); -#line 240 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (self->priv->parent); -#line 235 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - SAVED_SEARCH_DIALOG_SEARCH_ROW_CLASS (saved_search_dialog_search_row_media_type_parent_class)->finalize (obj); -#line 4118 "SavedSearchDialog.c" -} - - -static GType -saved_search_dialog_search_row_media_type_get_type (void) -{ - static volatile gsize saved_search_dialog_search_row_media_type_type_id__volatile = 0; - if (g_once_init_enter (&saved_search_dialog_search_row_media_type_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogSearchRowMediaTypeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_search_row_media_type_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialogSearchRowMediaType), 0, (GInstanceInitFunc) saved_search_dialog_search_row_media_type_instance_init, NULL }; - GType saved_search_dialog_search_row_media_type_type_id; - saved_search_dialog_search_row_media_type_type_id = g_type_register_static (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, "SavedSearchDialogSearchRowMediaType", &g_define_type_info, 0); - g_once_init_leave (&saved_search_dialog_search_row_media_type_type_id__volatile, saved_search_dialog_search_row_media_type_type_id); - } - return saved_search_dialog_search_row_media_type_type_id__volatile; -} - - -static void -_saved_search_dialog_search_row_modified_on_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 329 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_modified_on_changed ((SavedSearchDialogSearchRowModified*) self); -#line 4142 "SavedSearchDialog.c" -} - - -static SavedSearchDialogSearchRowModified* -saved_search_dialog_search_row_modified_construct (GType object_type, - SavedSearchDialogSearchRowContainer* parent) -{ - SavedSearchDialogSearchRowModified* self = NULL; - SavedSearchDialogSearchRowContainer* _tmp0_; - GtkComboBoxText* _tmp1_; - GtkComboBoxText* _tmp2_; - GtkComboBoxText* _tmp3_; - GtkComboBoxText* _tmp4_; - GtkComboBoxText* _tmp5_; - GtkComboBoxText* _tmp6_; - GtkComboBoxText* _tmp7_; - GtkComboBoxText* _tmp8_; - GtkComboBoxText* _tmp9_; - GtkComboBoxText* _tmp10_; - GtkComboBoxText* _tmp11_; - GtkBox* _tmp12_; - GtkBox* _tmp13_; - GtkComboBoxText* _tmp14_; - GtkBox* _tmp15_; - GtkComboBoxText* _tmp16_; - GtkBox* _tmp17_; -#line 306 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (parent), NULL); -#line 306 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = (SavedSearchDialogSearchRowModified*) saved_search_dialog_search_row_construct (object_type); -#line 307 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = _saved_search_dialog_search_row_container_ref0 (parent); -#line 307 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (self->priv->parent); -#line 307 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->parent = _tmp0_; -#line 309 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = (GtkComboBoxText*) gtk_combo_box_text_new (); -#line 309 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp1_); -#line 309 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->modified_context); -#line 309 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->modified_context = _tmp1_; -#line 310 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->modified_context; -#line 310 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp2_, _ ("has")); -#line 311 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = self->priv->modified_context; -#line 311 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp3_, _ ("has no")); -#line 312 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = self->priv->modified_context; -#line 312 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 313 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = self->priv->modified_context; -#line 313 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_modified_on_changed_gtk_combo_box_changed, self); -#line 315 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = (GtkComboBoxText*) gtk_combo_box_text_new (); -#line 315 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp6_); -#line 315 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->modified_state); -#line 315 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->modified_state = _tmp6_; -#line 316 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = self->priv->modified_state; -#line 316 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp7_, _ ("modifications")); -#line 317 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = self->priv->modified_state; -#line 317 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp8_, _ ("internal modifications")); -#line 318 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = self->priv->modified_state; -#line 318 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp9_, _ ("external modifications")); -#line 319 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp10_ = self->priv->modified_state; -#line 319 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 320 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp11_ = self->priv->modified_state; -#line 320 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_modified_on_changed_gtk_combo_box_changed, self); -#line 322 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp12_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3); -#line 322 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp12_); -#line 322 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->box); -#line 322 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->box = _tmp12_; -#line 323 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp13_ = self->priv->box; -#line 323 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp14_ = self->priv->modified_context; -#line 323 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_start (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 324 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp15_ = self->priv->box; -#line 324 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp16_ = self->priv->modified_state; -#line 324 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_start (_tmp15_, G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 325 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp17_ = self->priv->box; -#line 325 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_widget_get_type (), GtkWidget)); -#line 306 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return self; -#line 4257 "SavedSearchDialog.c" -} - - -static SavedSearchDialogSearchRowModified* -saved_search_dialog_search_row_modified_new (SavedSearchDialogSearchRowContainer* parent) -{ -#line 306 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return saved_search_dialog_search_row_modified_construct (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, parent); -#line 4266 "SavedSearchDialog.c" -} - - -static GtkWidget* -saved_search_dialog_search_row_modified_real_get_widget (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowModified * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 333 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModified); -#line 334 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->box; -#line 334 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 334 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = _tmp1_; -#line 334 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 4287 "SavedSearchDialog.c" -} - - -static SearchCondition* -saved_search_dialog_search_row_modified_real_get_search_condition (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowModified * self; - SearchCondition* result = NULL; - SearchConditionSearchType search_type = 0; - SavedSearchDialogSearchRowContainer* _tmp0_; - SearchConditionModifiedContext context = 0; - GtkComboBoxText* _tmp1_; - SearchConditionModifiedState state = 0; - GtkComboBoxText* _tmp2_; - SearchConditionModified* c = NULL; - SearchConditionModified* _tmp3_; -#line 337 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModified); -#line 338 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->parent; -#line 338 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - search_type = saved_search_dialog_search_row_container_get_search_type (_tmp0_); -#line 339 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->modified_context; -#line 339 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - context = (SearchConditionModifiedContext) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox)); -#line 340 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->modified_state; -#line 340 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - state = (SearchConditionModifiedState) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox)); -#line 341 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = search_condition_modified_new (search_type, context, state); -#line 341 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - c = _tmp3_; -#line 342 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (c, TYPE_SEARCH_CONDITION, SearchCondition); -#line 342 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 4326 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_modified_real_populate (SavedSearchDialogSearchRow* base, - SearchCondition* sc) -{ - SavedSearchDialogSearchRowModified * self; - SearchConditionModified* scm = NULL; - SearchConditionModified* _tmp0_; - GtkComboBoxText* _tmp1_; - SearchConditionModifiedState _tmp2_; - SearchConditionModifiedState _tmp3_; - GtkComboBoxText* _tmp4_; - SearchConditionModifiedContext _tmp5_; - SearchConditionModifiedContext _tmp6_; -#line 345 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModified); -#line 345 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (IS_SEARCH_CONDITION (sc)); -#line 346 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (sc, TYPE_SEARCH_CONDITION_MODIFIED) ? ((SearchConditionModified*) sc) : NULL); -#line 346 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - scm = _tmp0_; -#line 347 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _vala_assert (scm != NULL, "scm != null"); -#line 348 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->modified_state; -#line 348 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = search_condition_modified_get_state (scm); -#line 348 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = _tmp2_; -#line 348 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp3_); -#line 349 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = self->priv->modified_context; -#line 349 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = search_condition_modified_get_context (scm); -#line 349 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = _tmp5_; -#line 349 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp6_); -#line 345 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _search_condition_unref0 (scm); -#line 4371 "SavedSearchDialog.c" -} - - -static gboolean -saved_search_dialog_search_row_modified_real_is_complete (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowModified * self; - gboolean result = FALSE; -#line 352 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModified); -#line 353 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = TRUE; -#line 353 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 4386 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_modified_on_changed (SavedSearchDialogSearchRowModified* self) -{ - SavedSearchDialogSearchRowContainer* _tmp0_; - SavedSearchDialogSearchRowContainer* _tmp1_; -#line 356 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_MODIFIED (self)); -#line 357 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->parent; -#line 357 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->parent; -#line 357 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_emit (_tmp0_, saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL], 0, _tmp1_); -#line 4403 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_modified_class_init (SavedSearchDialogSearchRowModifiedClass * klass) -{ -#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_modified_parent_class = g_type_class_peek_parent (klass); -#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->finalize = saved_search_dialog_search_row_modified_finalize; -#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_type_class_add_private (klass, sizeof (SavedSearchDialogSearchRowModifiedPrivate)); -#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->get_widget = (GtkWidget* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_modified_real_get_widget; -#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->get_search_condition = (SearchCondition* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_modified_real_get_search_condition; -#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->populate = (void (*) (SavedSearchDialogSearchRow *, SearchCondition*)) saved_search_dialog_search_row_modified_real_populate; -#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->is_complete = (gboolean (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_modified_real_is_complete; -#line 4424 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_modified_instance_init (SavedSearchDialogSearchRowModified * self) -{ -#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv = SAVED_SEARCH_DIALOG_SEARCH_ROW_MODIFIED_GET_PRIVATE (self); -#line 4433 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_modified_finalize (SavedSearchDialogSearchRow * obj) -{ - SavedSearchDialogSearchRowModified * self; - GtkComboBoxText* _tmp0_; - guint _tmp1_; - GtkComboBoxText* _tmp2_; - guint _tmp3_; -#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_MODIFIED, SavedSearchDialogSearchRowModified); -#line 329 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->modified_state; -#line 329 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp1_, NULL, FALSE); -#line 329 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _saved_search_dialog_search_row_modified_on_changed_gtk_combo_box_changed, self); -#line 330 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->modified_context; -#line 330 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp3_, NULL, FALSE); -#line 330 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _saved_search_dialog_search_row_modified_on_changed_gtk_combo_box_changed, self); -#line 300 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->box); -#line 301 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->modified_context); -#line 302 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->modified_state); -#line 304 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (self->priv->parent); -#line 299 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - SAVED_SEARCH_DIALOG_SEARCH_ROW_CLASS (saved_search_dialog_search_row_modified_parent_class)->finalize (obj); -#line 4469 "SavedSearchDialog.c" -} - - -static GType -saved_search_dialog_search_row_modified_get_type (void) -{ - static volatile gsize saved_search_dialog_search_row_modified_type_id__volatile = 0; - if (g_once_init_enter (&saved_search_dialog_search_row_modified_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogSearchRowModifiedClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_search_row_modified_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialogSearchRowModified), 0, (GInstanceInitFunc) saved_search_dialog_search_row_modified_instance_init, NULL }; - GType saved_search_dialog_search_row_modified_type_id; - saved_search_dialog_search_row_modified_type_id = g_type_register_static (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, "SavedSearchDialogSearchRowModified", &g_define_type_info, 0); - g_once_init_leave (&saved_search_dialog_search_row_modified_type_id__volatile, saved_search_dialog_search_row_modified_type_id); - } - return saved_search_dialog_search_row_modified_type_id__volatile; -} - - -static void -_saved_search_dialog_search_row_flagged_on_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 384 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_flagged_on_changed ((SavedSearchDialogSearchRowFlagged*) self); -#line 4493 "SavedSearchDialog.c" -} - - -static SavedSearchDialogSearchRowFlagged* -saved_search_dialog_search_row_flagged_construct (GType object_type, - SavedSearchDialogSearchRowContainer* parent) -{ - SavedSearchDialogSearchRowFlagged* self = NULL; - SavedSearchDialogSearchRowContainer* _tmp0_; - GtkComboBoxText* _tmp1_; - GtkComboBoxText* _tmp2_; - GtkComboBoxText* _tmp3_; - GtkComboBoxText* _tmp4_; - GtkComboBoxText* _tmp5_; - GtkBox* _tmp6_; - GtkBox* _tmp7_; - GtkLabel* _tmp8_; - GtkLabel* _tmp9_; - GtkBox* _tmp10_; - GtkComboBoxText* _tmp11_; - GtkBox* _tmp12_; -#line 367 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (parent), NULL); -#line 367 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = (SavedSearchDialogSearchRowFlagged*) saved_search_dialog_search_row_construct (object_type); -#line 368 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = _saved_search_dialog_search_row_container_ref0 (parent); -#line 368 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (self->priv->parent); -#line 368 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->parent = _tmp0_; -#line 371 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = (GtkComboBoxText*) gtk_combo_box_text_new (); -#line 371 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp1_); -#line 371 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->flagged_state); -#line 371 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->flagged_state = _tmp1_; -#line 372 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->flagged_state; -#line 372 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp2_, _ ("flagged")); -#line 373 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = self->priv->flagged_state; -#line 373 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp3_, _ ("not flagged")); -#line 374 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = self->priv->flagged_state; -#line 374 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 375 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = self->priv->flagged_state; -#line 375 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_flagged_on_changed_gtk_combo_box_changed, self); -#line 377 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3); -#line 377 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp6_); -#line 377 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->box); -#line 377 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->box = _tmp6_; -#line 378 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = self->priv->box; -#line 378 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = (GtkLabel*) gtk_label_new (_ ("is")); -#line 378 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp8_); -#line 378 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = _tmp8_; -#line 378 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_start (_tmp7_, G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 378 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (_tmp9_); -#line 379 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp10_ = self->priv->box; -#line 379 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp11_ = self->priv->flagged_state; -#line 379 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_start (_tmp10_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 380 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp12_ = self->priv->box; -#line 380 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_widget_get_type (), GtkWidget)); -#line 367 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return self; -#line 4581 "SavedSearchDialog.c" -} - - -static SavedSearchDialogSearchRowFlagged* -saved_search_dialog_search_row_flagged_new (SavedSearchDialogSearchRowContainer* parent) -{ -#line 367 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return saved_search_dialog_search_row_flagged_construct (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, parent); -#line 4590 "SavedSearchDialog.c" -} - - -static GtkWidget* -saved_search_dialog_search_row_flagged_real_get_widget (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowFlagged * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 387 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlagged); -#line 388 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->box; -#line 388 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 388 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = _tmp1_; -#line 388 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 4611 "SavedSearchDialog.c" -} - - -static SearchCondition* -saved_search_dialog_search_row_flagged_real_get_search_condition (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowFlagged * self; - SearchCondition* result = NULL; - SearchConditionSearchType search_type = 0; - SavedSearchDialogSearchRowContainer* _tmp0_; - SearchConditionFlaggedState state = 0; - GtkComboBoxText* _tmp1_; - SearchConditionFlagged* c = NULL; - SearchConditionFlagged* _tmp2_; -#line 391 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlagged); -#line 392 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->parent; -#line 392 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - search_type = saved_search_dialog_search_row_container_get_search_type (_tmp0_); -#line 393 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->flagged_state; -#line 393 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - state = (SearchConditionFlaggedState) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox)); -#line 394 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = search_condition_flagged_new (search_type, state); -#line 394 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - c = _tmp2_; -#line 395 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (c, TYPE_SEARCH_CONDITION, SearchCondition); -#line 395 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 4644 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_flagged_real_populate (SavedSearchDialogSearchRow* base, - SearchCondition* sc) -{ - SavedSearchDialogSearchRowFlagged * self; - SearchConditionFlagged* f = NULL; - SearchConditionFlagged* _tmp0_; - GtkComboBoxText* _tmp1_; - SearchConditionFlaggedState _tmp2_; - SearchConditionFlaggedState _tmp3_; -#line 398 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlagged); -#line 398 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (IS_SEARCH_CONDITION (sc)); -#line 399 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (sc, TYPE_SEARCH_CONDITION_FLAGGED) ? ((SearchConditionFlagged*) sc) : NULL); -#line 399 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - f = _tmp0_; -#line 400 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _vala_assert (f != NULL, "f != null"); -#line 401 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->flagged_state; -#line 401 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = search_condition_flagged_get_state (f); -#line 401 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = _tmp2_; -#line 401 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp3_); -#line 398 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _search_condition_unref0 (f); -#line 4678 "SavedSearchDialog.c" -} - - -static gboolean -saved_search_dialog_search_row_flagged_real_is_complete (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowFlagged * self; - gboolean result = FALSE; -#line 404 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlagged); -#line 405 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = TRUE; -#line 405 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 4693 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_flagged_on_changed (SavedSearchDialogSearchRowFlagged* self) -{ - SavedSearchDialogSearchRowContainer* _tmp0_; - SavedSearchDialogSearchRowContainer* _tmp1_; -#line 408 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_FLAGGED (self)); -#line 409 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->parent; -#line 409 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->parent; -#line 409 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_emit (_tmp0_, saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL], 0, _tmp1_); -#line 4710 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_flagged_class_init (SavedSearchDialogSearchRowFlaggedClass * klass) -{ -#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_flagged_parent_class = g_type_class_peek_parent (klass); -#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->finalize = saved_search_dialog_search_row_flagged_finalize; -#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_type_class_add_private (klass, sizeof (SavedSearchDialogSearchRowFlaggedPrivate)); -#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->get_widget = (GtkWidget* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_flagged_real_get_widget; -#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->get_search_condition = (SearchCondition* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_flagged_real_get_search_condition; -#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->populate = (void (*) (SavedSearchDialogSearchRow *, SearchCondition*)) saved_search_dialog_search_row_flagged_real_populate; -#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->is_complete = (gboolean (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_flagged_real_is_complete; -#line 4731 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_flagged_instance_init (SavedSearchDialogSearchRowFlagged * self) -{ -#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv = SAVED_SEARCH_DIALOG_SEARCH_ROW_FLAGGED_GET_PRIVATE (self); -#line 4740 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_flagged_finalize (SavedSearchDialogSearchRow * obj) -{ - SavedSearchDialogSearchRowFlagged * self; - GtkComboBoxText* _tmp0_; - guint _tmp1_; -#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_FLAGGED, SavedSearchDialogSearchRowFlagged); -#line 384 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->flagged_state; -#line 384 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp1_, NULL, FALSE); -#line 384 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _saved_search_dialog_search_row_flagged_on_changed_gtk_combo_box_changed, self); -#line 362 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->box); -#line 363 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->flagged_state); -#line 365 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (self->priv->parent); -#line 361 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - SAVED_SEARCH_DIALOG_SEARCH_ROW_CLASS (saved_search_dialog_search_row_flagged_parent_class)->finalize (obj); -#line 4766 "SavedSearchDialog.c" -} - - -static GType -saved_search_dialog_search_row_flagged_get_type (void) -{ - static volatile gsize saved_search_dialog_search_row_flagged_type_id__volatile = 0; - if (g_once_init_enter (&saved_search_dialog_search_row_flagged_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogSearchRowFlaggedClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_search_row_flagged_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialogSearchRowFlagged), 0, (GInstanceInitFunc) saved_search_dialog_search_row_flagged_instance_init, NULL }; - GType saved_search_dialog_search_row_flagged_type_id; - saved_search_dialog_search_row_flagged_type_id = g_type_register_static (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, "SavedSearchDialogSearchRowFlagged", &g_define_type_info, 0); - g_once_init_leave (&saved_search_dialog_search_row_flagged_type_id__volatile, saved_search_dialog_search_row_flagged_type_id); - } - return saved_search_dialog_search_row_flagged_type_id__volatile; -} - - -static void -_saved_search_dialog_search_row_rating_on_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 450 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_rating_on_changed ((SavedSearchDialogSearchRowRating*) self); -#line 4790 "SavedSearchDialog.c" -} - - -static SavedSearchDialogSearchRowRating* -saved_search_dialog_search_row_rating_construct (GType object_type, - SavedSearchDialogSearchRowContainer* parent) -{ - SavedSearchDialogSearchRowRating* self = NULL; - SavedSearchDialogSearchRowContainer* _tmp0_; - GtkComboBoxText* _tmp1_; - GtkComboBoxText* _tmp2_; - const gchar* _tmp3_; - GtkComboBoxText* _tmp4_; - const gchar* _tmp5_; - GtkComboBoxText* _tmp6_; - const gchar* _tmp7_; - GtkComboBoxText* _tmp8_; - const gchar* _tmp9_; - GtkComboBoxText* _tmp10_; - const gchar* _tmp11_; - GtkComboBoxText* _tmp12_; - const gchar* _tmp13_; - GtkComboBoxText* _tmp14_; - const gchar* _tmp15_; - GtkComboBoxText* _tmp16_; - GtkComboBoxText* _tmp17_; - GtkComboBoxText* _tmp18_; - GtkComboBoxText* _tmp19_; - GtkComboBoxText* _tmp20_; - GtkComboBoxText* _tmp21_; - GtkComboBoxText* _tmp22_; - GtkComboBoxText* _tmp23_; - GtkBox* _tmp24_; - GtkBox* _tmp25_; - GtkLabel* _tmp26_; - GtkLabel* _tmp27_; - GtkBox* _tmp28_; - GtkComboBoxText* _tmp29_; - GtkBox* _tmp30_; - GtkComboBoxText* _tmp31_; - GtkBox* _tmp32_; -#line 420 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (parent), NULL); -#line 420 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = (SavedSearchDialogSearchRowRating*) saved_search_dialog_search_row_construct (object_type); -#line 421 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = _saved_search_dialog_search_row_container_ref0 (parent); -#line 421 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (self->priv->parent); -#line 421 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->parent = _tmp0_; -#line 424 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = (GtkComboBoxText*) gtk_combo_box_text_new (); -#line 424 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp1_); -#line 424 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->rating); -#line 424 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->rating = _tmp1_; -#line 425 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->rating; -#line 425 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = resources_rating_combo_box (RATING_REJECTED); -#line 425 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp2_, _tmp3_); -#line 426 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = self->priv->rating; -#line 426 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = resources_rating_combo_box (RATING_UNRATED); -#line 426 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp4_, _tmp5_); -#line 427 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = self->priv->rating; -#line 427 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = resources_rating_combo_box (RATING_ONE); -#line 427 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp6_, _tmp7_); -#line 428 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = self->priv->rating; -#line 428 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = resources_rating_combo_box (RATING_TWO); -#line 428 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp8_, _tmp9_); -#line 429 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp10_ = self->priv->rating; -#line 429 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp11_ = resources_rating_combo_box (RATING_THREE); -#line 429 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp10_, _tmp11_); -#line 430 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp12_ = self->priv->rating; -#line 430 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp13_ = resources_rating_combo_box (RATING_FOUR); -#line 430 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp12_, _tmp13_); -#line 431 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp14_ = self->priv->rating; -#line 431 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp15_ = resources_rating_combo_box (RATING_FIVE); -#line 431 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp14_, _tmp15_); -#line 432 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp16_ = self->priv->rating; -#line 432 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 433 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp17_ = self->priv->rating; -#line 433 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_rating_on_changed_gtk_combo_box_changed, self); -#line 435 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp18_ = (GtkComboBoxText*) gtk_combo_box_text_new (); -#line 435 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp18_); -#line 435 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->context); -#line 435 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->context = _tmp18_; -#line 436 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp19_ = self->priv->context; -#line 436 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp19_, _ ("and higher")); -#line 437 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp20_ = self->priv->context; -#line 437 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp20_, _ ("only")); -#line 438 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp21_ = self->priv->context; -#line 438 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp21_, _ ("and lower")); -#line 439 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp22_ = self->priv->context; -#line 439 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 440 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp23_ = self->priv->context; -#line 440 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_rating_on_changed_gtk_combo_box_changed, self); -#line 442 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp24_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3); -#line 442 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp24_); -#line 442 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->box); -#line 442 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->box = _tmp24_; -#line 443 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp25_ = self->priv->box; -#line 443 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp26_ = (GtkLabel*) gtk_label_new (_ ("is")); -#line 443 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp26_); -#line 443 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp27_ = _tmp26_; -#line 443 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_start (_tmp25_, G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 443 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (_tmp27_); -#line 444 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp28_ = self->priv->box; -#line 444 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp29_ = self->priv->rating; -#line 444 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_start (_tmp28_, G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 445 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp30_ = self->priv->box; -#line 445 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp31_ = self->priv->context; -#line 445 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_start (_tmp30_, G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 446 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp32_ = self->priv->box; -#line 446 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_widget_get_type (), GtkWidget)); -#line 420 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return self; -#line 4966 "SavedSearchDialog.c" -} - - -static SavedSearchDialogSearchRowRating* -saved_search_dialog_search_row_rating_new (SavedSearchDialogSearchRowContainer* parent) -{ -#line 420 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return saved_search_dialog_search_row_rating_construct (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, parent); -#line 4975 "SavedSearchDialog.c" -} - - -static GtkWidget* -saved_search_dialog_search_row_rating_real_get_widget (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowRating * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 454 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRating); -#line 455 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->box; -#line 455 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 455 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = _tmp1_; -#line 455 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 4996 "SavedSearchDialog.c" -} - - -static SearchCondition* -saved_search_dialog_search_row_rating_real_get_search_condition (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowRating * self; - SearchCondition* result = NULL; - SearchConditionSearchType search_type = 0; - SavedSearchDialogSearchRowContainer* _tmp0_; - Rating search_rating = 0; - GtkComboBoxText* _tmp1_; - SearchConditionRatingContext search_context = 0; - GtkComboBoxText* _tmp2_; - SearchConditionRating* c = NULL; - SearchConditionRating* _tmp3_; -#line 458 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRating); -#line 459 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->parent; -#line 459 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - search_type = saved_search_dialog_search_row_container_get_search_type (_tmp0_); -#line 460 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->rating; -#line 460 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - search_rating = ((Rating) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))) + RATING_REJECTED; -#line 461 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->context; -#line 461 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - search_context = (SearchConditionRatingContext) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox)); -#line 462 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = search_condition_rating_new (search_type, search_rating, search_context); -#line 462 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - c = _tmp3_; -#line 463 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (c, TYPE_SEARCH_CONDITION, SearchCondition); -#line 463 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 5035 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_rating_real_populate (SavedSearchDialogSearchRow* base, - SearchCondition* sc) -{ - SavedSearchDialogSearchRowRating * self; - SearchConditionRating* r = NULL; - SearchConditionRating* _tmp0_; - GtkComboBoxText* _tmp1_; - SearchConditionRatingContext _tmp2_; - SearchConditionRatingContext _tmp3_; - GtkComboBoxText* _tmp4_; - Rating _tmp5_; - Rating _tmp6_; -#line 466 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRating); -#line 466 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (IS_SEARCH_CONDITION (sc)); -#line 467 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (sc, TYPE_SEARCH_CONDITION_RATING) ? ((SearchConditionRating*) sc) : NULL); -#line 467 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - r = _tmp0_; -#line 468 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _vala_assert (r != NULL, "r != null"); -#line 469 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->context; -#line 469 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = search_condition_rating_get_context (r); -#line 469 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = _tmp2_; -#line 469 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp3_); -#line 470 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = self->priv->rating; -#line 470 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = search_condition_rating_get_rating (r); -#line 470 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = _tmp5_; -#line 470 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_combo_box_get_type (), GtkComboBox), (gint) (_tmp6_ - RATING_REJECTED)); -#line 466 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _search_condition_unref0 (r); -#line 5080 "SavedSearchDialog.c" -} - - -static gboolean -saved_search_dialog_search_row_rating_real_is_complete (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowRating * self; - gboolean result = FALSE; -#line 473 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRating); -#line 474 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = TRUE; -#line 474 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 5095 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_rating_on_changed (SavedSearchDialogSearchRowRating* self) -{ - SavedSearchDialogSearchRowContainer* _tmp0_; - SavedSearchDialogSearchRowContainer* _tmp1_; -#line 477 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_RATING (self)); -#line 478 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->parent; -#line 478 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->parent; -#line 478 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_emit (_tmp0_, saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL], 0, _tmp1_); -#line 5112 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_rating_class_init (SavedSearchDialogSearchRowRatingClass * klass) -{ -#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_rating_parent_class = g_type_class_peek_parent (klass); -#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->finalize = saved_search_dialog_search_row_rating_finalize; -#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_type_class_add_private (klass, sizeof (SavedSearchDialogSearchRowRatingPrivate)); -#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->get_widget = (GtkWidget* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_rating_real_get_widget; -#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->get_search_condition = (SearchCondition* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_rating_real_get_search_condition; -#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->populate = (void (*) (SavedSearchDialogSearchRow *, SearchCondition*)) saved_search_dialog_search_row_rating_real_populate; -#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->is_complete = (gboolean (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_rating_real_is_complete; -#line 5133 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_rating_instance_init (SavedSearchDialogSearchRowRating * self) -{ -#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv = SAVED_SEARCH_DIALOG_SEARCH_ROW_RATING_GET_PRIVATE (self); -#line 5142 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_rating_finalize (SavedSearchDialogSearchRow * obj) -{ - SavedSearchDialogSearchRowRating * self; - GtkComboBoxText* _tmp0_; - guint _tmp1_; - GtkComboBoxText* _tmp2_; - guint _tmp3_; -#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_RATING, SavedSearchDialogSearchRowRating); -#line 450 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->rating; -#line 450 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp1_, NULL, FALSE); -#line 450 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _saved_search_dialog_search_row_rating_on_changed_gtk_combo_box_changed, self); -#line 451 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->context; -#line 451 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp3_, NULL, FALSE); -#line 451 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _saved_search_dialog_search_row_rating_on_changed_gtk_combo_box_changed, self); -#line 414 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->box); -#line 415 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->rating); -#line 416 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->context); -#line 418 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (self->priv->parent); -#line 413 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - SAVED_SEARCH_DIALOG_SEARCH_ROW_CLASS (saved_search_dialog_search_row_rating_parent_class)->finalize (obj); -#line 5178 "SavedSearchDialog.c" -} - - -static GType -saved_search_dialog_search_row_rating_get_type (void) -{ - static volatile gsize saved_search_dialog_search_row_rating_type_id__volatile = 0; - if (g_once_init_enter (&saved_search_dialog_search_row_rating_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogSearchRowRatingClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_search_row_rating_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialogSearchRowRating), 0, (GInstanceInitFunc) saved_search_dialog_search_row_rating_instance_init, NULL }; - GType saved_search_dialog_search_row_rating_type_id; - saved_search_dialog_search_row_rating_type_id = g_type_register_static (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, "SavedSearchDialogSearchRowRating", &g_define_type_info, 0); - g_once_init_leave (&saved_search_dialog_search_row_rating_type_id__volatile, saved_search_dialog_search_row_rating_type_id); - } - return saved_search_dialog_search_row_rating_type_id__volatile; -} - - -static void -_saved_search_dialog_search_row_date_on_changed_gtk_combo_box_changed (GtkComboBox* _sender, - gpointer self) -{ -#line 528 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_date_on_changed ((SavedSearchDialogSearchRowDate*) self); -#line 5202 "SavedSearchDialog.c" -} - - -static void -_saved_search_dialog_search_row_date_on_one_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 511 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_date_on_one_clicked ((SavedSearchDialogSearchRowDate*) self); -#line 5212 "SavedSearchDialog.c" -} - - -static void -_saved_search_dialog_search_row_date_on_two_clicked_gtk_button_clicked (GtkButton* _sender, - gpointer self) -{ -#line 513 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_date_on_two_clicked ((SavedSearchDialogSearchRowDate*) self); -#line 5222 "SavedSearchDialog.c" -} - - -static SavedSearchDialogSearchRowDate* -saved_search_dialog_search_row_date_construct (GType object_type, - SavedSearchDialogSearchRowContainer* parent) -{ - SavedSearchDialogSearchRowDate* self = NULL; - SavedSearchDialogSearchRowContainer* _tmp0_; - GtkComboBoxText* _tmp1_; - GtkComboBoxText* _tmp2_; - GtkComboBoxText* _tmp3_; - GtkComboBoxText* _tmp4_; - GtkComboBoxText* _tmp5_; - GtkComboBoxText* _tmp6_; - GtkComboBoxText* _tmp7_; - GtkComboBoxText* _tmp8_; - GtkCalendar* _tmp9_; - GtkCalendar* _tmp10_; - GtkButton* _tmp11_; - GtkButton* _tmp12_; - GtkButton* _tmp13_; - GtkButton* _tmp14_; - GtkLabel* _tmp15_; - GtkBox* _tmp16_; - GtkBox* _tmp17_; - GtkComboBoxText* _tmp18_; - GtkBox* _tmp19_; - GtkButton* _tmp20_; - GtkBox* _tmp21_; - GtkLabel* _tmp22_; - GtkBox* _tmp23_; - GtkButton* _tmp24_; - GtkBox* _tmp25_; -#line 494 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_CONTAINER (parent), NULL); -#line 494 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = (SavedSearchDialogSearchRowDate*) saved_search_dialog_search_row_construct (object_type); -#line 495 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = _saved_search_dialog_search_row_container_ref0 (parent); -#line 495 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (self->priv->parent); -#line 495 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->parent = _tmp0_; -#line 498 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = (GtkComboBoxText*) gtk_combo_box_text_new (); -#line 498 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp1_); -#line 498 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->context); -#line 498 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->context = _tmp1_; -#line 499 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->context; -#line 499 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp2_, _ ("is exactly")); -#line 500 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = self->priv->context; -#line 500 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp3_, _ ("is after")); -#line 501 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = self->priv->context; -#line 501 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp4_, _ ("is before")); -#line 502 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = self->priv->context; -#line 502 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp5_, _ ("is between")); -#line 503 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = self->priv->context; -#line 503 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_text_append_text (_tmp6_, _ ("is not set")); -#line 504 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = self->priv->context; -#line 504 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_combo_box_get_type (), GtkComboBox), 0); -#line 505 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = self->priv->context; -#line 505 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_combo_box_get_type (), GtkComboBox), "changed", (GCallback) _saved_search_dialog_search_row_date_on_changed_gtk_combo_box_changed, self); -#line 507 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = (GtkCalendar*) gtk_calendar_new (); -#line 507 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp9_); -#line 507 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->cal_one); -#line 507 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->cal_one = _tmp9_; -#line 508 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp10_ = (GtkCalendar*) gtk_calendar_new (); -#line 508 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp10_); -#line 508 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->cal_two); -#line 508 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->cal_two = _tmp10_; -#line 510 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp11_ = (GtkButton*) gtk_button_new (); -#line 510 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp11_); -#line 510 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->label_one); -#line 510 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->label_one = _tmp11_; -#line 511 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp12_ = self->priv->label_one; -#line 511 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect (_tmp12_, "clicked", (GCallback) _saved_search_dialog_search_row_date_on_one_clicked_gtk_button_clicked, self); -#line 512 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp13_ = (GtkButton*) gtk_button_new (); -#line 512 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp13_); -#line 512 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->label_two); -#line 512 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->label_two = _tmp13_; -#line 513 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp14_ = self->priv->label_two; -#line 513 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_connect (_tmp14_, "clicked", (GCallback) _saved_search_dialog_search_row_date_on_two_clicked_gtk_button_clicked, self); -#line 515 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp15_ = (GtkLabel*) gtk_label_new (_ ("and")); -#line 515 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp15_); -#line 515 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->and); -#line 515 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->and = _tmp15_; -#line 517 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp16_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3); -#line 517 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp16_); -#line 517 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->box); -#line 517 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->box = _tmp16_; -#line 518 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp17_ = self->priv->box; -#line 518 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp18_ = self->priv->context; -#line 518 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_start (_tmp17_, G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 519 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp19_ = self->priv->box; -#line 519 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp20_ = self->priv->label_one; -#line 519 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_start (_tmp19_, G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 520 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp21_ = self->priv->box; -#line 520 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp22_ = self->priv->and; -#line 520 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_start (_tmp21_, G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 521 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp23_ = self->priv->box; -#line 521 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp24_ = self->priv->label_two; -#line 521 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_box_pack_start (_tmp23_, G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_widget_get_type (), GtkWidget), FALSE, FALSE, (guint) 0); -#line 523 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp25_ = self->priv->box; -#line 523 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, gtk_widget_get_type (), GtkWidget)); -#line 524 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_date_update_date_labels (self); -#line 494 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return self; -#line 5391 "SavedSearchDialog.c" -} - - -static SavedSearchDialogSearchRowDate* -saved_search_dialog_search_row_date_new (SavedSearchDialogSearchRowContainer* parent) -{ -#line 494 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return saved_search_dialog_search_row_date_construct (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, parent); -#line 5400 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_date_update_date_labels (SavedSearchDialogSearchRowDate* self) -{ - SearchConditionDateContext c = 0; - GtkComboBoxText* _tmp0_; - SearchConditionDateContext _tmp1_; - GtkButton* _tmp12_; - GDateTime* _tmp13_; - GDateTime* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - GtkButton* _tmp17_; - GDateTime* _tmp18_; - GDateTime* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; -#line 531 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self)); -#line 532 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->context; -#line 532 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - c = (SearchConditionDateContext) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox)); -#line 535 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = c; -#line 535 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp1_ == SEARCH_CONDITION_DATE_CONTEXT_BETWEEN) { -#line 5430 "SavedSearchDialog.c" - GtkButton* _tmp2_; - GtkLabel* _tmp3_; - GtkButton* _tmp4_; -#line 536 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->label_one; -#line 536 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 537 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = self->priv->and; -#line 537 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget)); -#line 538 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = self->priv->label_two; -#line 538 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_widget_get_type (), GtkWidget)); -#line 5446 "SavedSearchDialog.c" - } else { - SearchConditionDateContext _tmp5_; -#line 539 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = c; -#line 539 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp5_ == SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET) { -#line 5453 "SavedSearchDialog.c" - GtkButton* _tmp6_; - GtkLabel* _tmp7_; - GtkButton* _tmp8_; -#line 540 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = self->priv->label_one; -#line 540 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_widget_get_type (), GtkWidget)); -#line 541 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = self->priv->and; -#line 541 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_widget_get_type (), GtkWidget)); -#line 542 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = self->priv->label_two; -#line 542 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_widget_get_type (), GtkWidget)); -#line 5469 "SavedSearchDialog.c" - } else { - GtkButton* _tmp9_; - GtkLabel* _tmp10_; - GtkButton* _tmp11_; -#line 544 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = self->priv->label_one; -#line 544 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_show (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_widget_get_type (), GtkWidget)); -#line 545 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp10_ = self->priv->and; -#line 545 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, gtk_widget_get_type (), GtkWidget)); -#line 546 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp11_ = self->priv->label_two; -#line 546 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_hide (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_widget_get_type (), GtkWidget)); -#line 5486 "SavedSearchDialog.c" - } - } -#line 550 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp12_ = self->priv->label_one; -#line 550 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp13_ = saved_search_dialog_search_row_date_get_date_one (self); -#line 550 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp14_ = _tmp13_; -#line 550 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp15_ = g_date_time_format (_tmp14_, SAVED_SEARCH_DIALOG_SEARCH_ROW_DATE_DATE_FORMAT); -#line 550 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp16_ = _tmp15_; -#line 550 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_button_set_label (_tmp12_, _tmp16_); -#line 550 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_free0 (_tmp16_); -#line 550 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_date_time_unref0 (_tmp14_); -#line 551 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp17_ = self->priv->label_two; -#line 551 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp18_ = saved_search_dialog_search_row_date_get_date_two (self); -#line 551 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp19_ = _tmp18_; -#line 551 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp20_ = g_date_time_format (_tmp19_, SAVED_SEARCH_DIALOG_SEARCH_ROW_DATE_DATE_FORMAT); -#line 551 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp21_ = _tmp20_; -#line 551 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_button_set_label (_tmp17_, _tmp21_); -#line 551 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_free0 (_tmp21_); -#line 551 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_date_time_unref0 (_tmp19_); -#line 5521 "SavedSearchDialog.c" -} - - -static GtkWidget* -saved_search_dialog_search_row_date_real_get_widget (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowDate * self; - GtkWidget* result = NULL; - GtkBox* _tmp0_; - GtkWidget* _tmp1_; -#line 554 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDate); -#line 555 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->box; -#line 555 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); -#line 555 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = _tmp1_; -#line 555 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 5542 "SavedSearchDialog.c" -} - - -static GDateTime* -saved_search_dialog_search_row_date_get_date_one (SavedSearchDialogSearchRowDate* self) -{ - GDateTime* result = NULL; - GtkCalendar* _tmp0_; - gint _tmp1_; - gint _tmp2_; - GtkCalendar* _tmp3_; - gint _tmp4_; - gint _tmp5_; - GtkCalendar* _tmp6_; - gint _tmp7_; - gint _tmp8_; - GDateTime* _tmp9_; -#line 558 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self), NULL); -#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->cal_one; -#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_get (_tmp0_, "year", &_tmp1_, NULL); -#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = _tmp1_; -#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = self->priv->cal_one; -#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_get (_tmp3_, "month", &_tmp4_, NULL); -#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = _tmp4_; -#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = self->priv->cal_one; -#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_get (_tmp6_, "day", &_tmp7_, NULL); -#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = _tmp7_; -#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = g_date_time_new_local (_tmp2_, _tmp5_ + 1, _tmp8_, 0, 0, 0.0); -#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = _tmp9_; -#line 559 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 5586 "SavedSearchDialog.c" -} - - -static GDateTime* -saved_search_dialog_search_row_date_get_date_two (SavedSearchDialogSearchRowDate* self) -{ - GDateTime* result = NULL; - GtkCalendar* _tmp0_; - gint _tmp1_; - gint _tmp2_; - GtkCalendar* _tmp3_; - gint _tmp4_; - gint _tmp5_; - GtkCalendar* _tmp6_; - gint _tmp7_; - gint _tmp8_; - GDateTime* _tmp9_; -#line 562 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_val_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self), NULL); -#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->cal_two; -#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_get (_tmp0_, "year", &_tmp1_, NULL); -#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = _tmp1_; -#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = self->priv->cal_two; -#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_get (_tmp3_, "month", &_tmp4_, NULL); -#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = _tmp4_; -#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = self->priv->cal_two; -#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_get (_tmp6_, "day", &_tmp7_, NULL); -#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = _tmp7_; -#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = g_date_time_new_local (_tmp2_, _tmp5_ + 1, _tmp8_, 0, 0, 0.0); -#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = _tmp9_; -#line 563 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 5630 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_date_set_date_one (SavedSearchDialogSearchRowDate* self, - GDateTime* date) -{ - GtkCalendar* _tmp0_; - GtkCalendar* _tmp1_; - GtkCalendar* _tmp2_; -#line 566 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self)); -#line 566 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (date != NULL); -#line 567 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->cal_one; -#line 567 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_set (_tmp0_, "day", g_date_time_get_day_of_month (date), NULL); -#line 568 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->cal_one; -#line 568 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_set (_tmp1_, "month", g_date_time_get_month (date) - 1, NULL); -#line 569 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->cal_one; -#line 569 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_set (_tmp2_, "year", g_date_time_get_year (date), NULL); -#line 5657 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_date_set_date_two (SavedSearchDialogSearchRowDate* self, - GDateTime* date) -{ - GtkCalendar* _tmp0_; - GtkCalendar* _tmp1_; - GtkCalendar* _tmp2_; -#line 572 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self)); -#line 572 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (date != NULL); -#line 573 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->cal_two; -#line 573 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_set (_tmp0_, "day", g_date_time_get_day_of_month (date), NULL); -#line 574 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->cal_two; -#line 574 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_set (_tmp1_, "month", g_date_time_get_month (date) - 1, NULL); -#line 575 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = self->priv->cal_two; -#line 575 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_set (_tmp2_, "year", g_date_time_get_year (date), NULL); -#line 5684 "SavedSearchDialog.c" -} - - -static SearchCondition* -saved_search_dialog_search_row_date_real_get_search_condition (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowDate * self; - SearchCondition* result = NULL; - SearchConditionSearchType search_type = 0; - SavedSearchDialogSearchRowContainer* _tmp0_; - SearchConditionDateContext search_context = 0; - GtkComboBoxText* _tmp1_; - SearchConditionDate* c = NULL; - GDateTime* _tmp2_; - GDateTime* _tmp3_; - GDateTime* _tmp4_; - GDateTime* _tmp5_; - SearchConditionDate* _tmp6_; - SearchConditionDate* _tmp7_; -#line 578 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDate); -#line 579 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->parent; -#line 579 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - search_type = saved_search_dialog_search_row_container_get_search_type (_tmp0_); -#line 580 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->context; -#line 580 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - search_context = (SearchConditionDateContext) gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox)); -#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = saved_search_dialog_search_row_date_get_date_one (self); -#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = _tmp2_; -#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = saved_search_dialog_search_row_date_get_date_two (self); -#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = _tmp4_; -#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = search_condition_date_new (search_type, search_context, _tmp3_, _tmp5_); -#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = _tmp6_; -#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_date_time_unref0 (_tmp5_); -#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_date_time_unref0 (_tmp3_); -#line 581 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - c = _tmp7_; -#line 583 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (c, TYPE_SEARCH_CONDITION, SearchCondition); -#line 583 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 5736 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_date_real_populate (SavedSearchDialogSearchRow* base, - SearchCondition* sc) -{ - SavedSearchDialogSearchRowDate * self; - SearchConditionDate* cond = NULL; - SearchConditionDate* _tmp0_; - GtkComboBoxText* _tmp1_; - SearchConditionDateContext _tmp2_; - SearchConditionDateContext _tmp3_; - GDateTime* _tmp4_; - GDateTime* _tmp5_; - GDateTime* _tmp6_; - GDateTime* _tmp7_; -#line 586 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDate); -#line 586 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (IS_SEARCH_CONDITION (sc)); -#line 587 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = _search_condition_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (sc, TYPE_SEARCH_CONDITION_DATE) ? ((SearchConditionDate*) sc) : NULL); -#line 587 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - cond = _tmp0_; -#line 588 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _vala_assert (cond != NULL, "cond != null"); -#line 589 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->context; -#line 589 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp2_ = search_condition_date_get_context (cond); -#line 589 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = _tmp2_; -#line 589 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox), (gint) _tmp3_); -#line 590 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp4_ = search_condition_date_get_date_one (cond); -#line 590 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = _tmp4_; -#line 590 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_date_set_date_one (self, _tmp5_); -#line 591 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = search_condition_date_get_date_two (cond); -#line 591 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = _tmp6_; -#line 591 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_date_set_date_two (self, _tmp7_); -#line 592 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_date_update_date_labels (self); -#line 586 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _search_condition_unref0 (cond); -#line 5788 "SavedSearchDialog.c" -} - - -static gboolean -saved_search_dialog_search_row_date_real_is_complete (SavedSearchDialogSearchRow* base) -{ - SavedSearchDialogSearchRowDate * self; - gboolean result = FALSE; -#line 595 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDate); -#line 596 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - result = TRUE; -#line 596 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return result; -#line 5803 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_date_on_changed (SavedSearchDialogSearchRowDate* self) -{ - SavedSearchDialogSearchRowContainer* _tmp0_; - SavedSearchDialogSearchRowContainer* _tmp1_; -#line 599 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self)); -#line 600 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->parent; -#line 600 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = self->priv->parent; -#line 600 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_emit (_tmp0_, saved_search_dialog_search_row_container_signals[SAVED_SEARCH_DIALOG_SEARCH_ROW_CONTAINER_CHANGED_SIGNAL], 0, _tmp1_); -#line 601 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_date_update_date_labels (self); -#line 5822 "SavedSearchDialog.c" -} - - -static Block10Data* -block10_data_ref (Block10Data* _data10_) -{ -#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_atomic_int_inc (&_data10_->_ref_count_); -#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - return _data10_; -#line 5833 "SavedSearchDialog.c" -} - - -static void -block10_data_unref (void * _userdata_) -{ - Block10Data* _data10_; - _data10_ = (Block10Data*) _userdata_; -#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (g_atomic_int_dec_and_test (&_data10_->_ref_count_)) { -#line 5844 "SavedSearchDialog.c" - SavedSearchDialogSearchRowDate* self; -#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = _data10_->self; -#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (_data10_->d); -#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_unref0 (self); -#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_slice_free (Block10Data, _data10_); -#line 5854 "SavedSearchDialog.c" - } -} - - -static void -__lambda14_ (SavedSearchDialogSearchRowDate* self) -{ -#line 615 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_date_update_date_labels (self); -#line 5864 "SavedSearchDialog.c" -} - - -static void -___lambda14__gtk_calendar_day_selected (GtkCalendar* _sender, - gpointer self) -{ -#line 615 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - __lambda14_ ((SavedSearchDialogSearchRowDate*) self); -#line 5874 "SavedSearchDialog.c" -} - - -static void -__lambda15_ (Block10Data* _data10_) -{ - SavedSearchDialogSearchRowDate* self; - GtkDialog* _tmp0_; -#line 616 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = _data10_->self; -#line 617 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = _data10_->d; -#line 617 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_dialog_response (_tmp0_, (gint) GTK_RESPONSE_ACCEPT); -#line 5889 "SavedSearchDialog.c" -} - - -static void -___lambda15__gtk_calendar_day_selected_double_click (GtkCalendar* _sender, - gpointer self) -{ -#line 616 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - __lambda15_ (self); -#line 5899 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_date_popup_calendar (SavedSearchDialogSearchRowDate* self, - GtkCalendar* cal) -{ - Block10Data* _data10_; - gint orig_day = 0; - gint _tmp0_; - gint _tmp1_; - gint orig_month = 0; - gint _tmp2_; - gint _tmp3_; - gint orig_year = 0; - gint _tmp4_; - gint _tmp5_; - GtkDialog* _tmp6_; - GtkDialog* _tmp7_; - GtkDialog* _tmp8_; - GtkDialog* _tmp9_; - GtkDialog* _tmp10_; - GtkBox* _tmp11_; - gulong id_1 = 0UL; - gulong _tmp12_; - gulong id_2 = 0UL; - gulong _tmp13_; - GtkDialog* _tmp14_; - gint res = 0; - GtkDialog* _tmp15_; - gint _tmp16_; - gulong _tmp20_; - gulong _tmp21_; - GtkDialog* _tmp22_; -#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self)); -#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (GTK_IS_CALENDAR (cal)); -#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _data10_ = g_slice_new0 (Block10Data); -#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _data10_->_ref_count_ = 1; -#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _data10_->self = saved_search_dialog_search_row_ref (self); -#line 605 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_get (cal, "day", &_tmp0_, NULL); -#line 605 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp1_ = _tmp0_; -#line 605 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - orig_day = _tmp1_; -#line 606 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_get (cal, "month", &_tmp2_, NULL); -#line 606 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp3_ = _tmp2_; -#line 606 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - orig_month = _tmp3_; -#line 607 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_get (cal, "year", &_tmp4_, NULL); -#line 607 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp5_ = _tmp4_; -#line 607 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - orig_year = _tmp5_; -#line 608 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp6_ = (GtkDialog*) gtk_dialog_new_with_buttons (NULL, NULL, GTK_DIALOG_MODAL, RESOURCES_CANCEL_LABEL, GTK_RESPONSE_REJECT, RESOURCES_OK_LABEL, GTK_RESPONSE_ACCEPT, NULL); -#line 608 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_ref_sink (_tmp6_); -#line 608 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _data10_->d = _tmp6_; -#line 611 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp7_ = _data10_->d; -#line 611 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_window_set_modal (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_window_get_type (), GtkWindow), TRUE); -#line 612 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp8_ = _data10_->d; -#line 612 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_window_set_resizable (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_window_get_type (), GtkWindow), FALSE); -#line 613 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp9_ = _data10_->d; -#line 613 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_window_set_decorated (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_window_get_type (), GtkWindow), FALSE); -#line 614 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp10_ = _data10_->d; -#line 614 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp11_ = gtk_dialog_get_content_area (_tmp10_); -#line 614 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_container_add (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_box_get_type (), GtkBox), gtk_container_get_type (), GtkContainer), G_TYPE_CHECK_INSTANCE_CAST (cal, gtk_widget_get_type (), GtkWidget)); -#line 615 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp12_ = g_signal_connect (cal, "day-selected", (GCallback) ___lambda14__gtk_calendar_day_selected, self); -#line 615 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - id_1 = _tmp12_; -#line 616 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp13_ = g_signal_connect_data (cal, "day-selected-double-click", (GCallback) ___lambda15__gtk_calendar_day_selected_double_click, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0); -#line 616 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - id_2 = _tmp13_; -#line 619 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp14_ = _data10_->d; -#line 619 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_show_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_widget_get_type (), GtkWidget)); -#line 620 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp15_ = _data10_->d; -#line 620 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - res = gtk_dialog_run (_tmp15_); -#line 621 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp16_ = res; -#line 621 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - if (_tmp16_ != ((gint) GTK_RESPONSE_ACCEPT)) { -#line 6006 "SavedSearchDialog.c" - gint _tmp17_; - gint _tmp18_; - gint _tmp19_; -#line 623 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp17_ = orig_day; -#line 623 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_set (cal, "day", _tmp17_, NULL); -#line 624 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp18_ = orig_month; -#line 624 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_set (cal, "month", _tmp18_, NULL); -#line 625 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp19_ = orig_year; -#line 625 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_object_set (cal, "year", _tmp19_, NULL); -#line 6022 "SavedSearchDialog.c" - } -#line 627 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp20_ = id_1; -#line 627 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_handler_disconnect (G_TYPE_CHECK_INSTANCE_CAST (cal, G_TYPE_OBJECT, GObject), _tmp20_); -#line 628 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp21_ = id_2; -#line 628 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_handler_disconnect (G_TYPE_CHECK_INSTANCE_CAST (cal, G_TYPE_OBJECT, GObject), _tmp21_); -#line 629 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp22_ = _data10_->d; -#line 629 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, gtk_widget_get_type (), GtkWidget)); -#line 630 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_date_update_date_labels (self); -#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - block10_data_unref (_data10_); -#line 604 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _data10_ = NULL; -#line 6042 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_date_on_one_clicked (SavedSearchDialogSearchRowDate* self) -{ - GtkCalendar* _tmp0_; -#line 633 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self)); -#line 634 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->cal_one; -#line 634 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_date_popup_calendar (self, _tmp0_); -#line 6056 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_date_on_two_clicked (SavedSearchDialogSearchRowDate* self) -{ - GtkCalendar* _tmp0_; -#line 637 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_return_if_fail (SAVED_SEARCH_DIALOG_IS_SEARCH_ROW_DATE (self)); -#line 638 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->cal_two; -#line 638 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_date_popup_calendar (self, _tmp0_); -#line 6070 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_date_class_init (SavedSearchDialogSearchRowDateClass * klass) -{ -#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_search_row_date_parent_class = g_type_class_peek_parent (klass); -#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->finalize = saved_search_dialog_search_row_date_finalize; -#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_type_class_add_private (klass, sizeof (SavedSearchDialogSearchRowDatePrivate)); -#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->get_widget = (GtkWidget* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_date_real_get_widget; -#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->get_search_condition = (SearchCondition* (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_date_real_get_search_condition; -#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->populate = (void (*) (SavedSearchDialogSearchRow *, SearchCondition*)) saved_search_dialog_search_row_date_real_populate; -#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - ((SavedSearchDialogSearchRowClass *) klass)->is_complete = (gboolean (*) (SavedSearchDialogSearchRow *)) saved_search_dialog_search_row_date_real_is_complete; -#line 6091 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_date_instance_init (SavedSearchDialogSearchRowDate * self) -{ -#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv = SAVED_SEARCH_DIALOG_SEARCH_ROW_DATE_GET_PRIVATE (self); -#line 6100 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_search_row_date_finalize (SavedSearchDialogSearchRow * obj) -{ - SavedSearchDialogSearchRowDate * self; - GtkComboBoxText* _tmp0_; - guint _tmp1_; -#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_DATE, SavedSearchDialogSearchRowDate); -#line 528 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = self->priv->context; -#line 528 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_parse_name ("changed", gtk_combo_box_get_type (), &_tmp1_, NULL, FALSE); -#line 528 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_combo_box_get_type (), GtkComboBox), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _saved_search_dialog_search_row_date_on_changed_gtk_combo_box_changed, self); -#line 484 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->box); -#line 485 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->context); -#line 486 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->label_one); -#line 487 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->label_two); -#line 488 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->cal_one); -#line 489 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->cal_two); -#line 490 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->and); -#line 492 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _saved_search_dialog_search_row_container_unref0 (self->priv->parent); -#line 482 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - SAVED_SEARCH_DIALOG_SEARCH_ROW_CLASS (saved_search_dialog_search_row_date_parent_class)->finalize (obj); -#line 6136 "SavedSearchDialog.c" -} - - -static GType -saved_search_dialog_search_row_date_get_type (void) -{ - static volatile gsize saved_search_dialog_search_row_date_type_id__volatile = 0; - if (g_once_init_enter (&saved_search_dialog_search_row_date_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogSearchRowDateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_search_row_date_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialogSearchRowDate), 0, (GInstanceInitFunc) saved_search_dialog_search_row_date_instance_init, NULL }; - GType saved_search_dialog_search_row_date_type_id; - saved_search_dialog_search_row_date_type_id = g_type_register_static (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW, "SavedSearchDialogSearchRowDate", &g_define_type_info, 0); - g_once_init_leave (&saved_search_dialog_search_row_date_type_id__volatile, saved_search_dialog_search_row_date_type_id); - } - return saved_search_dialog_search_row_date_type_id__volatile; -} - - -static void -saved_search_dialog_class_init (SavedSearchDialogClass * klass) -{ - gint SavedSearchDialog_private_offset; -#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - saved_search_dialog_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - g_type_class_add_private (klass, sizeof (SavedSearchDialogPrivate)); -#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - G_OBJECT_CLASS (klass)->finalize = saved_search_dialog_finalize; -#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - SavedSearchDialog_private_offset = g_type_class_get_instance_private_offset (klass); -#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Shotwell/ui/saved_search_dialog.ui"); -#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "add_criteria", FALSE, SavedSearchDialog_private_offset + G_STRUCT_OFFSET (SavedSearchDialogPrivate, add_criteria)); -#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "operator", FALSE, SavedSearchDialog_private_offset + G_STRUCT_OFFSET (SavedSearchDialogPrivate, operator)); -#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "search_title", FALSE, SavedSearchDialog_private_offset + G_STRUCT_OFFSET (SavedSearchDialogPrivate, search_title)); -#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_class_bind_template_child_full (GTK_WIDGET_CLASS (klass), "row_listbox", FALSE, SavedSearchDialog_private_offset + G_STRUCT_OFFSET (SavedSearchDialogPrivate, row_listbox)); -#line 6176 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_instance_init (SavedSearchDialog * self) -{ - GeeArrayList* _tmp0_; -#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv = SAVED_SEARCH_DIALOG_GET_PRIVATE (self); -#line 651 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _tmp0_ = gee_array_list_new (SAVED_SEARCH_DIALOG_TYPE_SEARCH_ROW_CONTAINER, (GBoxedCopyFunc) saved_search_dialog_search_row_container_ref, (GDestroyNotify) saved_search_dialog_search_row_container_unref, NULL, NULL, NULL); -#line 651 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->row_list = _tmp0_; -#line 652 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->edit_mode = FALSE; -#line 653 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->previous_search = NULL; -#line 654 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self->priv->valid = FALSE; -#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - gtk_widget_init_template (GTK_WIDGET (self)); -#line 6198 "SavedSearchDialog.c" -} - - -static void -saved_search_dialog_finalize (GObject * obj) -{ - SavedSearchDialog * self; -#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialog); -#line 643 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->add_criteria); -#line 645 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->operator); -#line 647 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->search_title); -#line 649 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->row_listbox); -#line 651 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->row_list); -#line 653 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - _g_object_unref0 (self->priv->previous_search); -#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchDialog.vala" - G_OBJECT_CLASS (saved_search_dialog_parent_class)->finalize (obj); -#line 6222 "SavedSearchDialog.c" -} - - -GType -saved_search_dialog_get_type (void) -{ - static volatile gsize saved_search_dialog_type_id__volatile = 0; - if (g_once_init_enter (&saved_search_dialog_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SavedSearchDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchDialog), 0, (GInstanceInitFunc) saved_search_dialog_instance_init, NULL }; - GType saved_search_dialog_type_id; - saved_search_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "SavedSearchDialog", &g_define_type_info, 0); - g_once_init_leave (&saved_search_dialog_type_id__volatile, saved_search_dialog_type_id); - } - return saved_search_dialog_type_id__volatile; -} - - - diff --git a/src/searches/SavedSearchDialog.vala b/src/searches/SavedSearchDialog.vala index d31140a..f5558bf 100644 --- a/src/searches/SavedSearchDialog.vala +++ b/src/searches/SavedSearchDialog.vala @@ -79,6 +79,9 @@ public class SavedSearchDialog : Gtk.Dialog { case SearchCondition.SearchType.ANY_TEXT: case SearchCondition.SearchType.EVENT_NAME: case SearchCondition.SearchType.FILE_NAME: +#if ENABLE_FACES + case SearchCondition.SearchType.FACE: +#endif case SearchCondition.SearchType.TAG: case SearchCondition.SearchType.COMMENT: case SearchCondition.SearchType.TITLE: diff --git a/src/searches/SavedSearchPage.c b/src/searches/SavedSearchPage.c deleted file mode 100644 index e7eda88..0000000 --- a/src/searches/SavedSearchPage.c +++ /dev/null @@ -1,1500 +0,0 @@ -/* SavedSearchPage.c generated by valac 0.40.4, the Vala compiler - * generated from SavedSearchPage.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/* Source monitoring for saved searches.*/ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_VIEW_MANAGER (view_manager_get_type ()) -#define VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_MANAGER, ViewManager)) -#define VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_MANAGER, ViewManagerClass)) -#define IS_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_MANAGER)) -#define IS_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_MANAGER)) -#define VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_MANAGER, ViewManagerClass)) - -typedef struct _ViewManager ViewManager; -typedef struct _ViewManagerClass ViewManagerClass; -typedef struct _ViewManagerPrivate ViewManagerPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_COLLECTION_VIEW_MANAGER (collection_view_manager_get_type ()) -#define COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManager)) -#define COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass)) -#define IS_COLLECTION_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_VIEW_MANAGER)) -#define IS_COLLECTION_VIEW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_VIEW_MANAGER)) -#define COLLECTION_VIEW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_VIEW_MANAGER, CollectionViewManagerClass)) - -typedef struct _CollectionViewManager CollectionViewManager; -typedef struct _CollectionViewManagerClass CollectionViewManagerClass; -typedef struct _CollectionViewManagerPrivate CollectionViewManagerPrivate; - -#define TYPE_SAVED_SEARCH_MANAGER (saved_search_manager_get_type ()) -#define SAVED_SEARCH_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_MANAGER, SavedSearchManager)) -#define SAVED_SEARCH_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_MANAGER, SavedSearchManagerClass)) -#define IS_SAVED_SEARCH_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_MANAGER)) -#define IS_SAVED_SEARCH_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_MANAGER)) -#define SAVED_SEARCH_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_MANAGER, SavedSearchManagerClass)) - -typedef struct _SavedSearchManager SavedSearchManager; -typedef struct _SavedSearchManagerClass SavedSearchManagerClass; -typedef struct _SavedSearchManagerPrivate SavedSearchManagerPrivate; - -#define TYPE_SAVED_SEARCH (saved_search_get_type ()) -#define SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH, SavedSearch)) -#define SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH, SavedSearchClass)) -#define IS_SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH)) -#define IS_SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH)) -#define SAVED_SEARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH, SavedSearchClass)) - -typedef struct _SavedSearch SavedSearch; -typedef struct _SavedSearchClass SavedSearchClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; - -#define TYPE_SAVED_SEARCH_PAGE (saved_search_page_get_type ()) -#define SAVED_SEARCH_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_PAGE, SavedSearchPage)) -#define SAVED_SEARCH_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_PAGE, SavedSearchPageClass)) -#define IS_SAVED_SEARCH_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_PAGE)) -#define IS_SAVED_SEARCH_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_PAGE)) -#define SAVED_SEARCH_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_PAGE, SavedSearchPageClass)) - -typedef struct _SavedSearchPage SavedSearchPage; -typedef struct _SavedSearchPageClass SavedSearchPageClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; -typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; - -#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ()) - -#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ()) -typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ()) -#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)) -#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) -#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER)) -#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER)) -#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) - -typedef struct _SearchViewFilter SearchViewFilter; -typedef struct _SearchViewFilterClass SearchViewFilterClass; - -#define CORE_TYPE_TRACKER (core_tracker_get_type ()) -#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) -#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) -#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) -#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) -#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) - -typedef struct _CoreTracker CoreTracker; -typedef struct _CoreTrackerClass CoreTrackerClass; - -#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) -#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) -#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) -#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) -#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) -#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) - -typedef struct _CoreViewTracker CoreViewTracker; -typedef struct _CoreViewTrackerClass CoreViewTrackerClass; -typedef struct _MediaPagePrivate MediaPagePrivate; - -#define TYPE_RATING (rating_get_type ()) - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) -typedef struct _CollectionPagePrivate CollectionPagePrivate; -typedef struct _SavedSearchPagePrivate SavedSearchPagePrivate; -enum { - SAVED_SEARCH_PAGE_0_PROPERTY, - SAVED_SEARCH_PAGE_NUM_PROPERTIES -}; -static GParamSpec* saved_search_page_properties[SAVED_SEARCH_PAGE_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_MEDIA_SOURCE_COLLECTION (media_source_collection_get_type ()) -#define MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)) -#define MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) -#define IS_MEDIA_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE_COLLECTION)) -#define IS_MEDIA_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE_COLLECTION)) -#define MEDIA_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollectionClass)) - -typedef struct _MediaSourceCollection MediaSourceCollection; -typedef struct _MediaSourceCollectionClass MediaSourceCollectionClass; - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; - -#define VIEW_COLLECTION_TYPE_MONITOR (view_collection_monitor_get_type ()) -#define VIEW_COLLECTION_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitor)) -#define VIEW_COLLECTION_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) -#define VIEW_COLLECTION_IS_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_IS_MONITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIEW_COLLECTION_TYPE_MONITOR)) -#define VIEW_COLLECTION_MONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIEW_COLLECTION_TYPE_MONITOR, ViewCollectionMonitorClass)) - -typedef struct _ViewCollectionMonitor ViewCollectionMonitor; -typedef struct _ViewCollectionMonitorClass ViewCollectionMonitorClass; -#define _view_collection_monitor_unref0(var) ((var == NULL) ? NULL : (var = (view_collection_monitor_unref (var), NULL))) -#define _view_manager_unref0(var) ((var == NULL) ? NULL : (var = (view_manager_unref (var), NULL))) -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; - -#define TYPE_SINGLE_DATA_SOURCE_COMMAND (single_data_source_command_get_type ()) -#define SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)) -#define SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) -#define IS_SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND)) -#define IS_SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND)) -#define SINGLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) - -typedef struct _SingleDataSourceCommand SingleDataSourceCommand; -typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass; - -#define TYPE_DELETE_SAVED_SEARCH_COMMAND (delete_saved_search_command_get_type ()) -#define DELETE_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommand)) -#define DELETE_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandClass)) -#define IS_DELETE_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND)) -#define IS_DELETE_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DELETE_SAVED_SEARCH_COMMAND)) -#define DELETE_SAVED_SEARCH_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandClass)) - -typedef struct _DeleteSavedSearchCommand DeleteSavedSearchCommand; -typedef struct _DeleteSavedSearchCommandClass DeleteSavedSearchCommandClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; - -#define TYPE_SAVED_SEARCH_DIALOG (saved_search_dialog_get_type ()) -#define SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialog)) -#define SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass)) -#define IS_SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_DIALOG)) -#define IS_SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_DIALOG)) -#define SAVED_SEARCH_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass)) - -typedef struct _SavedSearchDialog SavedSearchDialog; -typedef struct _SavedSearchDialogClass SavedSearchDialogClass; - -struct _ViewManager { - GTypeInstance parent_instance; - volatile int ref_count; - ViewManagerPrivate * priv; -}; - -struct _ViewManagerClass { - GTypeClass parent_class; - void (*finalize) (ViewManager *self); - gboolean (*include_in_view) (ViewManager* self, DataSource* source); - DataView* (*create_view) (ViewManager* self, DataSource* source); -}; - -struct _CollectionViewManager { - ViewManager parent_instance; - CollectionViewManagerPrivate * priv; -}; - -struct _CollectionViewManagerClass { - ViewManagerClass parent_class; -}; - -struct _SavedSearchManager { - CollectionViewManager parent_instance; - SavedSearchManagerPrivate * priv; -}; - -struct _SavedSearchManagerClass { - CollectionViewManagerClass parent_class; -}; - -struct _SavedSearchManagerPrivate { - SavedSearch* search; -}; - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -typedef enum { - CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, - CHECKERBOARD_PAGE_ACTIVATOR_MOUSE -} CheckerboardPageActivator; - -struct _CheckerboardPageKeyboardModifiers { - gboolean ctrl_pressed; - gboolean alt_pressed; - gboolean shift_pressed; - gboolean super_pressed; -}; - -struct _CheckerboardPage { - Page parent_instance; - CheckerboardPagePrivate * priv; - CheckerboardItem* anchor; - CheckerboardItem* cursor; -}; - -struct _CheckerboardPageClass { - PageClass parent_class; - GtkMenu* (*get_item_context_menu) (CheckerboardPage* self); - gchar* (*get_view_empty_message) (CheckerboardPage* self); - gchar* (*get_filter_no_match_message) (CheckerboardPage* self); - void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers); - SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self); - CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self); - gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask); - void (*set_display_titles) (CheckerboardPage* self, gboolean display); - void (*set_display_comments) (CheckerboardPage* self, gboolean display); -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _MediaPage { - CheckerboardPage parent_instance; - MediaPagePrivate * priv; -}; - -struct _MediaPageClass { - CheckerboardPageClass parent_class; - void (*on_zoom_changed) (MediaPage* self); - void (*on_export) (MediaPage* self); - void (*on_increase_size) (MediaPage* self); - void (*on_decrease_size) (MediaPage* self); - void (*on_increase_rating) (MediaPage* self); - void (*on_decrease_rating) (MediaPage* self); - void (*on_set_rating) (MediaPage* self, Rating rating); - void (*on_rate_rejected) (MediaPage* self); - void (*on_rate_unrated) (MediaPage* self); - void (*on_rate_one) (MediaPage* self); - void (*on_rate_two) (MediaPage* self); - void (*on_rate_three) (MediaPage* self); - void (*on_rate_four) (MediaPage* self); - void (*on_rate_five) (MediaPage* self); - void (*on_move_to_trash) (MediaPage* self); - void (*on_edit_title) (MediaPage* self); - void (*on_edit_comment) (MediaPage* self); - void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by); - void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by); - void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*developer_changed) (MediaPage* self, RawDeveloper rd); - DataView* (*create_thumbnail) (MediaPage* self, DataSource* source); -}; - -struct _CollectionPage { - MediaPage parent_instance; - CollectionPagePrivate * priv; -}; - -struct _CollectionPageClass { - MediaPageClass parent_class; -}; - -struct _SavedSearchPage { - CollectionPage parent_instance; - SavedSearchPagePrivate * priv; -}; - -struct _SavedSearchPageClass { - CollectionPageClass parent_class; -}; - -struct _SavedSearchPagePrivate { - SavedSearch* search; -}; - -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); - -static gpointer saved_search_manager_parent_class = NULL; -static gpointer saved_search_page_parent_class = NULL; - -gpointer view_manager_ref (gpointer instance); -void view_manager_unref (gpointer instance); -GParamSpec* param_spec_view_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_manager (GValue* value, - gpointer v_object); -void value_take_view_manager (GValue* value, - gpointer v_object); -gpointer value_get_view_manager (const GValue* value); -GType view_manager_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType collection_view_manager_get_type (void) G_GNUC_CONST; -GType saved_search_manager_get_type (void) G_GNUC_CONST; -GType saved_search_get_type (void) G_GNUC_CONST; -#define SAVED_SEARCH_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SAVED_SEARCH_MANAGER, SavedSearchManagerPrivate)) -GType page_get_type (void) G_GNUC_CONST; -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType media_page_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -GType saved_search_page_get_type (void) G_GNUC_CONST; -SavedSearchManager* saved_search_manager_new (SavedSearchPage* owner, - SavedSearch* search); -SavedSearchManager* saved_search_manager_construct (GType object_type, - SavedSearchPage* owner, - SavedSearch* search); -CollectionViewManager* collection_view_manager_new (CollectionPage* page); -CollectionViewManager* collection_view_manager_construct (GType object_type, - CollectionPage* page); -static gboolean saved_search_manager_real_include_in_view (ViewManager* base, - DataSource* source); -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -gboolean saved_search_predicate (SavedSearch* self, - MediaSource* source); -static void saved_search_manager_finalize (ViewManager * obj); -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType checkerboard_page_activator_get_type (void) G_GNUC_CONST; -GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST; -CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self); -void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self); -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -GType search_view_filter_get_type (void) G_GNUC_CONST; -gpointer core_tracker_ref (gpointer instance); -void core_tracker_unref (gpointer instance); -GParamSpec* core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void core_value_set_tracker (GValue* value, - gpointer v_object); -void core_value_take_tracker (GValue* value, - gpointer v_object); -gpointer core_value_get_tracker (const GValue* value); -GType core_tracker_get_type (void) G_GNUC_CONST; -GType core_view_tracker_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -GType raw_developer_get_type (void) G_GNUC_CONST; -#define SAVED_SEARCH_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SAVED_SEARCH_PAGE, SavedSearchPagePrivate)) -static void saved_search_page_on_rename_search (SavedSearchPage* self); -static void _saved_search_page_on_rename_search_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void saved_search_page_on_edit_search (SavedSearchPage* self); -static void _saved_search_page_on_edit_search_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void saved_search_page_on_delete_search (SavedSearchPage* self); -static void _saved_search_page_on_delete_search_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -SavedSearchPage* saved_search_page_new (SavedSearch* search); -SavedSearchPage* saved_search_page_construct (GType object_type, - SavedSearch* search); -gchar* data_object_get_name (DataObject* self); -CollectionPage* collection_page_construct (GType object_type, - const gchar* page_name); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType media_source_collection_get_type (void) G_GNUC_CONST; -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -GeeCollection* media_collection_registry_get_all (MediaCollectionRegistry* self); -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer view_collection_monitor_ref (gpointer instance); -void view_collection_monitor_unref (gpointer instance); -GParamSpec* view_collection_param_spec_monitor (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void view_collection_value_set_monitor (GValue* value, - gpointer v_object); -void view_collection_value_take_monitor (GValue* value, - gpointer v_object); -gpointer view_collection_value_get_monitor (const GValue* value); -GType view_collection_monitor_get_type (void) G_GNUC_CONST; -ViewCollectionMonitor* view_collection_monitor_source_collection (ViewCollection* self, - SourceCollection* sources, - ViewManager* manager, - Alteration* prereq, - GeeCollection* initial, - ProgressMonitor progress_monitor, - void* progress_monitor_target); -void checkerboard_page_init_page_context_menu (CheckerboardPage* self, - const gchar* path); -static void saved_search_page_real_get_config_photos_sort (MediaPage* base, - gboolean* sort_order, - gint* sort_by); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -void configuration_facade_get_library_photos_sort (ConfigurationFacade* self, - gboolean* sort_order, - gint* sort_by); -static void saved_search_page_real_set_config_photos_sort (MediaPage* base, - gboolean sort_order, - gint sort_by); -void configuration_facade_set_library_photos_sort (ConfigurationFacade* self, - gboolean sort_order, - gint sort_by); -static void saved_search_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames); -void page_init_collect_ui_filenames (Page* self, - GeeList* ui_filenames); -static void saved_search_page_real_add_actions (Page* base, - GActionMap* map); -void page_add_actions (Page* self, - GActionMap* map); -static void saved_search_page_real_remove_actions (Page* base, - GActionMap* map); -void page_remove_actions (Page* self, - GActionMap* map); -gboolean dialogs_confirm_delete_saved_search (SavedSearch* search); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* app_window_get_command_manager (void); -GType command_get_type (void) G_GNUC_CONST; -void command_manager_execute (CommandManager* self, - Command* command); -DeleteSavedSearchCommand* delete_saved_search_command_new (SavedSearch* search); -DeleteSavedSearchCommand* delete_saved_search_command_construct (GType object_type, - SavedSearch* search); -GType page_command_get_type (void) G_GNUC_CONST; -GType single_data_source_command_get_type (void) G_GNUC_CONST; -GType delete_saved_search_command_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -GType library_window_get_type (void) G_GNUC_CONST; -LibraryWindow* library_window_get_app (void); -void library_window_rename_search_in_sidebar (LibraryWindow* self, - SavedSearch* search); -GType saved_search_dialog_get_type (void) G_GNUC_CONST; -SavedSearchDialog* saved_search_dialog_new_edit_existing (SavedSearch* saved_search); -SavedSearchDialog* saved_search_dialog_construct_edit_existing (GType object_type, - SavedSearch* saved_search); -void saved_search_dialog_show (SavedSearchDialog* self); -static void saved_search_page_real_update_actions (Page* base, - gint selected_count, - gint count); -void page_set_action_sensitive (Page* self, - const gchar* name, - gboolean sensitive); -void page_update_actions (Page* self, - gint selected_count, - gint count); -static void saved_search_page_finalize (GObject * obj); - -static const GActionEntry SAVED_SEARCH_PAGE_entries[3] = {{"RenameSearch", _saved_search_page_on_rename_search_gsimple_action_activate_callback}, {"EditSearch", _saved_search_page_on_edit_search_gsimple_action_activate_callback}, {"DeleteSearch", _saved_search_page_on_delete_search_gsimple_action_activate_callback}}; - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - return self ? g_object_ref (self) : NULL; -#line 926 "SavedSearchPage.c" -} - - -SavedSearchManager* -saved_search_manager_construct (GType object_type, - SavedSearchPage* owner, - SavedSearch* search) -{ - SavedSearchManager* self = NULL; - SavedSearch* _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - g_return_val_if_fail (IS_SAVED_SEARCH_PAGE (owner), NULL); -#line 10 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - g_return_val_if_fail (IS_SAVED_SEARCH (search), NULL); -#line 11 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - self = (SavedSearchManager*) collection_view_manager_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (owner, TYPE_COLLECTION_PAGE, CollectionPage)); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp0_ = _g_object_ref0 (search); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _g_object_unref0 (self->priv->search); -#line 12 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - self->priv->search = _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - return self; -#line 951 "SavedSearchPage.c" -} - - -SavedSearchManager* -saved_search_manager_new (SavedSearchPage* owner, - SavedSearch* search) -{ -#line 10 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - return saved_search_manager_construct (TYPE_SAVED_SEARCH_MANAGER, owner, search); -#line 961 "SavedSearchPage.c" -} - - -static gboolean -saved_search_manager_real_include_in_view (ViewManager* base, - DataSource* source) -{ - SavedSearchManager * self; - gboolean result = FALSE; - SavedSearch* _tmp0_; -#line 15 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH_MANAGER, SavedSearchManager); -#line 15 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 16 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp0_ = self->priv->search; -#line 16 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - result = saved_search_predicate (_tmp0_, G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_MEDIA_SOURCE, MediaSource)); -#line 16 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - return result; -#line 982 "SavedSearchPage.c" -} - - -static void -saved_search_manager_class_init (SavedSearchManagerClass * klass) -{ -#line 8 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - saved_search_manager_parent_class = g_type_class_peek_parent (klass); -#line 8 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - ((ViewManagerClass *) klass)->finalize = saved_search_manager_finalize; -#line 8 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - g_type_class_add_private (klass, sizeof (SavedSearchManagerPrivate)); -#line 8 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - ((ViewManagerClass *) klass)->include_in_view = (gboolean (*) (ViewManager *, DataSource*)) saved_search_manager_real_include_in_view; -#line 997 "SavedSearchPage.c" -} - - -static void -saved_search_manager_instance_init (SavedSearchManager * self) -{ -#line 8 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - self->priv = SAVED_SEARCH_MANAGER_GET_PRIVATE (self); -#line 1006 "SavedSearchPage.c" -} - - -static void -saved_search_manager_finalize (ViewManager * obj) -{ - SavedSearchManager * self; -#line 8 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SAVED_SEARCH_MANAGER, SavedSearchManager); -#line 9 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _g_object_unref0 (self->priv->search); -#line 8 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - VIEW_MANAGER_CLASS (saved_search_manager_parent_class)->finalize (obj); -#line 1020 "SavedSearchPage.c" -} - - -GType -saved_search_manager_get_type (void) -{ - static volatile gsize saved_search_manager_type_id__volatile = 0; - if (g_once_init_enter (&saved_search_manager_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SavedSearchManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchManager), 0, (GInstanceInitFunc) saved_search_manager_instance_init, NULL }; - GType saved_search_manager_type_id; - saved_search_manager_type_id = g_type_register_static (TYPE_COLLECTION_VIEW_MANAGER, "SavedSearchManager", &g_define_type_info, 0); - g_once_init_leave (&saved_search_manager_type_id__volatile, saved_search_manager_type_id); - } - return saved_search_manager_type_id__volatile; -} - - -static void -_saved_search_page_on_rename_search_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 50 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - saved_search_page_on_rename_search ((SavedSearchPage*) self); -#line 1045 "SavedSearchPage.c" -} - - -static void -_saved_search_page_on_edit_search_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 50 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - saved_search_page_on_edit_search ((SavedSearchPage*) self); -#line 1056 "SavedSearchPage.c" -} - - -static void -_saved_search_page_on_delete_search_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 50 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - saved_search_page_on_delete_search ((SavedSearchPage*) self); -#line 1067 "SavedSearchPage.c" -} - - -SavedSearchPage* -saved_search_page_construct (GType object_type, - SavedSearch* search) -{ - SavedSearchPage * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - SavedSearch* _tmp2_; -#line 26 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - g_return_val_if_fail (IS_SAVED_SEARCH (search), NULL); -#line 27 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject)); -#line 27 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp1_ = _tmp0_; -#line 27 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - self = (SavedSearchPage*) collection_page_construct (object_type, _tmp1_); -#line 27 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _g_free0 (_tmp1_); -#line 28 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp2_ = _g_object_ref0 (search); -#line 28 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _g_object_unref0 (self->priv->search); -#line 28 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - self->priv->search = _tmp2_; -#line 1095 "SavedSearchPage.c" - { - GeeIterator* _sources_it = NULL; - MediaCollectionRegistry* _tmp3_; - MediaCollectionRegistry* _tmp4_; - GeeCollection* _tmp5_; - GeeCollection* _tmp6_; - GeeIterator* _tmp7_; - GeeIterator* _tmp8_; -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp3_ = media_collection_registry_get_instance (); -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp4_ = _tmp3_; -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp5_ = media_collection_registry_get_all (_tmp4_); -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp6_ = _tmp5_; -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp8_ = _tmp7_; -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _g_object_unref0 (_tmp6_); -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _media_collection_registry_unref0 (_tmp4_); -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _sources_it = _tmp8_; -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - while (TRUE) { -#line 1124 "SavedSearchPage.c" - GeeIterator* _tmp9_; - MediaSourceCollection* sources = NULL; - GeeIterator* _tmp10_; - gpointer _tmp11_; - ViewCollection* _tmp12_; - ViewCollection* _tmp13_; - MediaSourceCollection* _tmp14_; - SavedSearchManager* _tmp15_; - SavedSearchManager* _tmp16_; - ViewCollectionMonitor* _tmp17_; - ViewCollectionMonitor* _tmp18_; -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp9_ = _sources_it; -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - if (!gee_iterator_next (_tmp9_)) { -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - break; -#line 1142 "SavedSearchPage.c" - } -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp10_ = _sources_it; -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp11_ = gee_iterator_get (_tmp10_); -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - sources = (MediaSourceCollection*) _tmp11_; -#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp12_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp13_ = _tmp12_; -#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp14_ = sources; -#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp15_ = saved_search_manager_new (self, search); -#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp16_ = _tmp15_; -#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp17_ = view_collection_monitor_source_collection (_tmp13_, G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_SOURCE_COLLECTION, SourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_VIEW_MANAGER, ViewManager), NULL, NULL, NULL, NULL); -#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp18_ = _tmp17_; -#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _view_collection_monitor_unref0 (_tmp18_); -#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _view_manager_unref0 (_tmp16_); -#line 32 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _data_collection_unref0 (_tmp13_); -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _data_collection_unref0 (sources); -#line 1172 "SavedSearchPage.c" - } -#line 31 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _g_object_unref0 (_sources_it); -#line 1176 "SavedSearchPage.c" - } -#line 34 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - checkerboard_page_init_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "SearchContextMenu"); -#line 26 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - return self; -#line 1182 "SavedSearchPage.c" -} - - -SavedSearchPage* -saved_search_page_new (SavedSearch* search) -{ -#line 26 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - return saved_search_page_construct (TYPE_SAVED_SEARCH_PAGE, search); -#line 1191 "SavedSearchPage.c" -} - - -static void -saved_search_page_real_get_config_photos_sort (MediaPage* base, - gboolean* sort_order, - gint* sort_by) -{ - SavedSearchPage * self; - gboolean _vala_sort_order = FALSE; - gint _vala_sort_by = 0; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gboolean _tmp2_ = FALSE; - gint _tmp3_ = 0; -#line 37 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH_PAGE, SavedSearchPage); -#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp1_ = _tmp0_; -#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - configuration_facade_get_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp2_, &_tmp3_); -#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _vala_sort_order = _tmp2_; -#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _vala_sort_by = _tmp3_; -#line 38 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _g_object_unref0 (_tmp1_); -#line 37 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - if (sort_order) { -#line 37 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - *sort_order = _vala_sort_order; -#line 1225 "SavedSearchPage.c" - } -#line 37 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - if (sort_by) { -#line 37 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - *sort_by = _vala_sort_by; -#line 1231 "SavedSearchPage.c" - } -} - - -static void -saved_search_page_real_set_config_photos_sort (MediaPage* base, - gboolean sort_order, - gint sort_by) -{ - SavedSearchPage * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 41 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH_PAGE, SavedSearchPage); -#line 42 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 42 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp1_ = _tmp0_; -#line 42 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - configuration_facade_set_library_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), sort_order, sort_by); -#line 42 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _g_object_unref0 (_tmp1_); -#line 1254 "SavedSearchPage.c" -} - - -static void -saved_search_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames) -{ - SavedSearchPage * self; -#line 45 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH_PAGE, SavedSearchPage); -#line 45 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 46 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - PAGE_CLASS (saved_search_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), ui_filenames); -#line 47 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "savedsearch.ui"); -#line 1271 "SavedSearchPage.c" -} - - -static void -saved_search_page_real_add_actions (Page* base, - GActionMap* map) -{ - SavedSearchPage * self; -#line 56 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH_PAGE, SavedSearchPage); -#line 56 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 57 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - PAGE_CLASS (saved_search_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), map); -#line 59 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - g_action_map_add_action_entries (map, SAVED_SEARCH_PAGE_entries, G_N_ELEMENTS (SAVED_SEARCH_PAGE_entries), self); -#line 1288 "SavedSearchPage.c" -} - - -static void -saved_search_page_real_remove_actions (Page* base, - GActionMap* map) -{ - SavedSearchPage * self; -#line 62 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH_PAGE, SavedSearchPage); -#line 62 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 63 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - PAGE_CLASS (saved_search_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), map); -#line 1303 "SavedSearchPage.c" - { - GActionEntry* entry_collection = NULL; - gint entry_collection_length1 = 0; - gint _entry_collection_size_ = 0; - gint entry_it = 0; -#line 64 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - entry_collection = SAVED_SEARCH_PAGE_entries; -#line 64 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - entry_collection_length1 = G_N_ELEMENTS (SAVED_SEARCH_PAGE_entries); -#line 64 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - for (entry_it = 0; entry_it < G_N_ELEMENTS (SAVED_SEARCH_PAGE_entries); entry_it = entry_it + 1) { -#line 1315 "SavedSearchPage.c" - GActionEntry entry = {0}; -#line 64 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - entry = entry_collection[entry_it]; -#line 1319 "SavedSearchPage.c" - { - GActionEntry _tmp0_; - const gchar* _tmp1_; -#line 65 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp0_ = entry; -#line 65 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp1_ = _tmp0_.name; -#line 65 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - g_action_map_remove_action (map, _tmp1_); -#line 1329 "SavedSearchPage.c" - } - } - } -} - - -static void -saved_search_page_on_delete_search (SavedSearchPage* self) -{ - SavedSearch* _tmp0_; -#line 70 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - g_return_if_fail (IS_SAVED_SEARCH_PAGE (self)); -#line 71 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp0_ = self->priv->search; -#line 71 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - if (dialogs_confirm_delete_saved_search (_tmp0_)) { -#line 1346 "SavedSearchPage.c" - CommandManager* _tmp1_; - CommandManager* _tmp2_; - SavedSearch* _tmp3_; - DeleteSavedSearchCommand* _tmp4_; - DeleteSavedSearchCommand* _tmp5_; -#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp1_ = app_window_get_command_manager (); -#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp2_ = _tmp1_; -#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp3_ = self->priv->search; -#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp4_ = delete_saved_search_command_new (_tmp3_); -#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp5_ = _tmp4_; -#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - command_manager_execute (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_COMMAND, Command)); -#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _g_object_unref0 (_tmp5_); -#line 72 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _command_manager_unref0 (_tmp2_); -#line 1368 "SavedSearchPage.c" - } -} - - -static void -saved_search_page_on_rename_search (SavedSearchPage* self) -{ - LibraryWindow* _tmp0_; - LibraryWindow* _tmp1_; - SavedSearch* _tmp2_; -#line 75 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - g_return_if_fail (IS_SAVED_SEARCH_PAGE (self)); -#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp0_ = library_window_get_app (); -#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp1_ = _tmp0_; -#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp2_ = self->priv->search; -#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - library_window_rename_search_in_sidebar (_tmp1_, _tmp2_); -#line 76 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _g_object_unref0 (_tmp1_); -#line 1391 "SavedSearchPage.c" -} - - -static void -saved_search_page_on_edit_search (SavedSearchPage* self) -{ - SavedSearchDialog* ssd = NULL; - SavedSearch* _tmp0_; - SavedSearchDialog* _tmp1_; -#line 79 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - g_return_if_fail (IS_SAVED_SEARCH_PAGE (self)); -#line 80 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp0_ = self->priv->search; -#line 80 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _tmp1_ = saved_search_dialog_new_edit_existing (_tmp0_); -#line 80 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - g_object_ref_sink (_tmp1_); -#line 80 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - ssd = _tmp1_; -#line 81 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - saved_search_dialog_show (ssd); -#line 79 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _g_object_unref0 (ssd); -#line 1415 "SavedSearchPage.c" -} - - -static void -saved_search_page_real_update_actions (Page* base, - gint selected_count, - gint count) -{ - SavedSearchPage * self; -#line 84 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH_PAGE, SavedSearchPage); -#line 85 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RenameSearch", TRUE); -#line 86 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "EditSearch", TRUE); -#line 87 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - page_set_action_sensitive (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DeleteSearch", TRUE); -#line 89 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - PAGE_CLASS (saved_search_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), selected_count, count); -#line 1435 "SavedSearchPage.c" -} - - -static void -saved_search_page_class_init (SavedSearchPageClass * klass) -{ -#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - saved_search_page_parent_class = g_type_class_peek_parent (klass); -#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - g_type_class_add_private (klass, sizeof (SavedSearchPagePrivate)); -#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) saved_search_page_real_get_config_photos_sort; -#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) saved_search_page_real_set_config_photos_sort; -#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) saved_search_page_real_init_collect_ui_filenames; -#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) saved_search_page_real_add_actions; -#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) saved_search_page_real_remove_actions; -#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) saved_search_page_real_update_actions; -#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - G_OBJECT_CLASS (klass)->finalize = saved_search_page_finalize; -#line 1460 "SavedSearchPage.c" -} - - -static void -saved_search_page_instance_init (SavedSearchPage * self) -{ -#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - self->priv = SAVED_SEARCH_PAGE_GET_PRIVATE (self); -#line 1469 "SavedSearchPage.c" -} - - -static void -saved_search_page_finalize (GObject * obj) -{ - SavedSearchPage * self; -#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SAVED_SEARCH_PAGE, SavedSearchPage); -#line 24 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - _g_object_unref0 (self->priv->search); -#line 21 "/home/jens/Source/shotwell/src/searches/SavedSearchPage.vala" - G_OBJECT_CLASS (saved_search_page_parent_class)->finalize (obj); -#line 1483 "SavedSearchPage.c" -} - - -GType -saved_search_page_get_type (void) -{ - static volatile gsize saved_search_page_type_id__volatile = 0; - if (g_once_init_enter (&saved_search_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SavedSearchPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchPage), 0, (GInstanceInitFunc) saved_search_page_instance_init, NULL }; - GType saved_search_page_type_id; - saved_search_page_type_id = g_type_register_static (TYPE_COLLECTION_PAGE, "SavedSearchPage", &g_define_type_info, 0); - g_once_init_leave (&saved_search_page_type_id__volatile, saved_search_page_type_id); - } - return saved_search_page_type_id__volatile; -} - - - diff --git a/src/searches/SearchBoolean.c b/src/searches/SearchBoolean.c deleted file mode 100644 index 3a38f9e..0000000 --- a/src/searches/SearchBoolean.c +++ /dev/null @@ -1,6867 +0,0 @@ -/* SearchBoolean.c generated by valac 0.40.4, the Vala compiler - * generated from SearchBoolean.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/* For specifying whether a search should be ORed (any) or ANDed (all).*/ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SEARCH_OPERATOR (search_operator_get_type ()) - -#define TYPE_SEARCH_CONDITION (search_condition_get_type ()) -#define SEARCH_CONDITION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION, SearchCondition)) -#define SEARCH_CONDITION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION, SearchConditionClass)) -#define IS_SEARCH_CONDITION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION)) -#define IS_SEARCH_CONDITION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION)) -#define SEARCH_CONDITION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION, SearchConditionClass)) - -typedef struct _SearchCondition SearchCondition; -typedef struct _SearchConditionClass SearchConditionClass; -typedef struct _SearchConditionPrivate SearchConditionPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define SEARCH_CONDITION_TYPE_SEARCH_TYPE (search_condition_search_type_get_type ()) -typedef struct _ParamSpecSearchCondition ParamSpecSearchCondition; - -#define TYPE_SEARCH_CONDITION_TEXT (search_condition_text_get_type ()) -#define SEARCH_CONDITION_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_TEXT, SearchConditionText)) -#define SEARCH_CONDITION_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_TEXT, SearchConditionTextClass)) -#define IS_SEARCH_CONDITION_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_TEXT)) -#define IS_SEARCH_CONDITION_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_TEXT)) -#define SEARCH_CONDITION_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_TEXT, SearchConditionTextClass)) - -typedef struct _SearchConditionText SearchConditionText; -typedef struct _SearchConditionTextClass SearchConditionTextClass; -typedef struct _SearchConditionTextPrivate SearchConditionTextPrivate; - -#define SEARCH_CONDITION_TEXT_TYPE_CONTEXT (search_condition_text_context_get_type ()) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ()) -#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection)) -#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) -#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION)) -#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION)) -#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) - -typedef struct _TagSourceCollection TagSourceCollection; -typedef struct _TagSourceCollectionClass TagSourceCollectionClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_EVENT_SOURCE (event_source_get_type ()) -#define EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SOURCE, EventSource)) -#define EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SOURCE, EventSourceClass)) -#define IS_EVENT_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SOURCE)) -#define IS_EVENT_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SOURCE)) -#define EVENT_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SOURCE, EventSourceClass)) - -typedef struct _EventSource EventSource; -typedef struct _EventSourceClass EventSourceClass; - -#define TYPE_EVENT (event_get_type ()) -#define EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT, Event)) -#define EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT, EventClass)) -#define IS_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT)) -#define IS_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT)) -#define EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT, EventClass)) - -typedef struct _Event Event; -typedef struct _EventClass EventClass; - -#define TYPE_SEARCH_CONDITION_MEDIA_TYPE (search_condition_media_type_get_type ()) -#define SEARCH_CONDITION_MEDIA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaType)) -#define SEARCH_CONDITION_MEDIA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaTypeClass)) -#define IS_SEARCH_CONDITION_MEDIA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE)) -#define IS_SEARCH_CONDITION_MEDIA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_MEDIA_TYPE)) -#define SEARCH_CONDITION_MEDIA_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaTypeClass)) - -typedef struct _SearchConditionMediaType SearchConditionMediaType; -typedef struct _SearchConditionMediaTypeClass SearchConditionMediaTypeClass; -typedef struct _SearchConditionMediaTypePrivate SearchConditionMediaTypePrivate; - -#define SEARCH_CONDITION_MEDIA_TYPE_TYPE_MEDIA_TYPE (search_condition_media_type_media_type_get_type ()) - -#define SEARCH_CONDITION_MEDIA_TYPE_TYPE_CONTEXT (search_condition_media_type_context_get_type ()) - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_PHOTO_FILE_FORMAT (photo_file_format_get_type ()) - -#define TYPE_VIDEO_SOURCE (video_source_get_type ()) -#define VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIDEO_SOURCE, VideoSource)) -#define VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIDEO_SOURCE, VideoSourceClass)) -#define IS_VIDEO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIDEO_SOURCE)) -#define IS_VIDEO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIDEO_SOURCE)) -#define VIDEO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIDEO_SOURCE, VideoSourceClass)) - -typedef struct _VideoSource VideoSource; -typedef struct _VideoSourceClass VideoSourceClass; - -#define TYPE_SEARCH_CONDITION_FLAGGED (search_condition_flagged_get_type ()) -#define SEARCH_CONDITION_FLAGGED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlagged)) -#define SEARCH_CONDITION_FLAGGED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlaggedClass)) -#define IS_SEARCH_CONDITION_FLAGGED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_FLAGGED)) -#define IS_SEARCH_CONDITION_FLAGGED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_FLAGGED)) -#define SEARCH_CONDITION_FLAGGED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlaggedClass)) - -typedef struct _SearchConditionFlagged SearchConditionFlagged; -typedef struct _SearchConditionFlaggedClass SearchConditionFlaggedClass; -typedef struct _SearchConditionFlaggedPrivate SearchConditionFlaggedPrivate; - -#define SEARCH_CONDITION_FLAGGED_TYPE_STATE (search_condition_flagged_state_get_type ()) - -#define TYPE_FLAGGABLE (flaggable_get_type ()) -#define FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAGGABLE, Flaggable)) -#define IS_FLAGGABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAGGABLE)) -#define FLAGGABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FLAGGABLE, FlaggableIface)) - -typedef struct _Flaggable Flaggable; -typedef struct _FlaggableIface FlaggableIface; - -#define TYPE_SEARCH_CONDITION_MODIFIED (search_condition_modified_get_type ()) -#define SEARCH_CONDITION_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModified)) -#define SEARCH_CONDITION_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModifiedClass)) -#define IS_SEARCH_CONDITION_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_MODIFIED)) -#define IS_SEARCH_CONDITION_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_MODIFIED)) -#define SEARCH_CONDITION_MODIFIED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModifiedClass)) - -typedef struct _SearchConditionModified SearchConditionModified; -typedef struct _SearchConditionModifiedClass SearchConditionModifiedClass; -typedef struct _SearchConditionModifiedPrivate SearchConditionModifiedPrivate; - -#define SEARCH_CONDITION_MODIFIED_TYPE_STATE (search_condition_modified_state_get_type ()) - -#define SEARCH_CONDITION_MODIFIED_TYPE_CONTEXT (search_condition_modified_context_get_type ()) - -#define TYPE_SEARCH_CONDITION_RATING (search_condition_rating_get_type ()) -#define SEARCH_CONDITION_RATING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_RATING, SearchConditionRating)) -#define SEARCH_CONDITION_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_RATING, SearchConditionRatingClass)) -#define IS_SEARCH_CONDITION_RATING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_RATING)) -#define IS_SEARCH_CONDITION_RATING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_RATING)) -#define SEARCH_CONDITION_RATING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_RATING, SearchConditionRatingClass)) - -typedef struct _SearchConditionRating SearchConditionRating; -typedef struct _SearchConditionRatingClass SearchConditionRatingClass; -typedef struct _SearchConditionRatingPrivate SearchConditionRatingPrivate; - -#define TYPE_RATING (rating_get_type ()) - -#define SEARCH_CONDITION_RATING_TYPE_CONTEXT (search_condition_rating_context_get_type ()) - -#define TYPE_SEARCH_CONDITION_DATE (search_condition_date_get_type ()) -#define SEARCH_CONDITION_DATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_CONDITION_DATE, SearchConditionDate)) -#define SEARCH_CONDITION_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_CONDITION_DATE, SearchConditionDateClass)) -#define IS_SEARCH_CONDITION_DATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_CONDITION_DATE)) -#define IS_SEARCH_CONDITION_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_CONDITION_DATE)) -#define SEARCH_CONDITION_DATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_CONDITION_DATE, SearchConditionDateClass)) - -typedef struct _SearchConditionDate SearchConditionDate; -typedef struct _SearchConditionDateClass SearchConditionDateClass; -typedef struct _SearchConditionDatePrivate SearchConditionDatePrivate; - -#define SEARCH_CONDITION_DATE_TYPE_CONTEXT (search_condition_date_context_get_type ()) -#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL))) -typedef struct _DataObjectPrivate DataObjectPrivate; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; -typedef struct _DataSourcePrivate DataSourcePrivate; - -#define TYPE_SOURCE_HOLDING_TANK (source_holding_tank_get_type ()) -#define SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank)) -#define SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) -#define IS_SOURCE_HOLDING_TANK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_HOLDING_TANK)) -#define IS_SOURCE_HOLDING_TANK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_HOLDING_TANK)) -#define SOURCE_HOLDING_TANK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_HOLDING_TANK, SourceHoldingTankClass)) - -typedef struct _SourceHoldingTank SourceHoldingTank; -typedef struct _SourceHoldingTankClass SourceHoldingTankClass; - -#define TYPE_SOURCE_SNAPSHOT (source_snapshot_get_type ()) -#define SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshot)) -#define SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) -#define IS_SOURCE_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_SNAPSHOT)) -#define IS_SOURCE_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_SNAPSHOT)) -#define SOURCE_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_SNAPSHOT, SourceSnapshotClass)) - -typedef struct _SourceSnapshot SourceSnapshot; -typedef struct _SourceSnapshotClass SourceSnapshotClass; - -#define TYPE_SAVED_SEARCH (saved_search_get_type ()) -#define SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH, SavedSearch)) -#define SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH, SavedSearchClass)) -#define IS_SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH)) -#define IS_SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH)) -#define SAVED_SEARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH, SavedSearchClass)) - -typedef struct _SavedSearch SavedSearch; -typedef struct _SavedSearchClass SavedSearchClass; -typedef struct _SavedSearchPrivate SavedSearchPrivate; - -#define TYPE_SAVED_SEARCH_ROW (saved_search_row_get_type ()) -#define SAVED_SEARCH_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_ROW, SavedSearchRow)) -#define SAVED_SEARCH_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_ROW, SavedSearchRowClass)) -#define IS_SAVED_SEARCH_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_ROW)) -#define IS_SAVED_SEARCH_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_ROW)) -#define SAVED_SEARCH_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_ROW, SavedSearchRowClass)) - -typedef struct _SavedSearchRow SavedSearchRow; -typedef struct _SavedSearchRowClass SavedSearchRowClass; -enum { - SAVED_SEARCH_0_PROPERTY, - SAVED_SEARCH_NUM_PROPERTIES -}; -static GParamSpec* saved_search_properties[SAVED_SEARCH_NUM_PROPERTIES]; -#define _saved_search_row_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_row_unref (var), NULL))) -typedef struct _SavedSearchRowPrivate SavedSearchRowPrivate; - -#define TYPE_SAVED_SEARCH_ID (saved_search_id_get_type ()) -typedef struct _SavedSearchID SavedSearchID; -#define _search_condition_unref0(var) ((var == NULL) ? NULL : (var = (search_condition_unref (var), NULL))) - -#define TYPE_DATABASE_TABLE (database_table_get_type ()) -#define DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_TABLE, DatabaseTable)) -#define DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_TABLE, DatabaseTableClass)) -#define IS_DATABASE_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_TABLE)) -#define IS_DATABASE_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_TABLE)) -#define DATABASE_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_TABLE, DatabaseTableClass)) - -typedef struct _DatabaseTable DatabaseTable; -typedef struct _DatabaseTableClass DatabaseTableClass; - -#define TYPE_SAVED_SEARCH_DB_TABLE (saved_search_db_table_get_type ()) -#define SAVED_SEARCH_DB_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_DB_TABLE, SavedSearchDBTable)) -#define SAVED_SEARCH_DB_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_DB_TABLE, SavedSearchDBTableClass)) -#define IS_SAVED_SEARCH_DB_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_DB_TABLE)) -#define IS_SAVED_SEARCH_DB_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_DB_TABLE)) -#define SAVED_SEARCH_DB_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_DB_TABLE, SavedSearchDBTableClass)) - -typedef struct _SavedSearchDBTable SavedSearchDBTable; -typedef struct _SavedSearchDBTableClass SavedSearchDBTableClass; -#define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_SAVED_SEARCH_TABLE (saved_search_table_get_type ()) -#define SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTable)) -#define SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass)) -#define IS_SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_TABLE)) -#define IS_SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_TABLE)) -#define SAVED_SEARCH_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass)) - -typedef struct _SavedSearchTable SavedSearchTable; -typedef struct _SavedSearchTableClass SavedSearchTableClass; -#define _saved_search_table_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_table_unref (var), NULL))) - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; -typedef struct _SavedSearchTablePrivate SavedSearchTablePrivate; -typedef struct _ParamSpecSavedSearchTable ParamSpecSavedSearchTable; -enum { - SAVED_SEARCH_TABLE_SEARCH_ADDED_SIGNAL, - SAVED_SEARCH_TABLE_SEARCH_REMOVED_SIGNAL, - SAVED_SEARCH_TABLE_NUM_SIGNALS -}; -static guint saved_search_table_signals[SAVED_SEARCH_TABLE_NUM_SIGNALS] = {0}; - -typedef enum { - SEARCH_OPERATOR_ANY = 0, - SEARCH_OPERATOR_ALL, - SEARCH_OPERATOR_NONE -} SearchOperator; - -struct _SearchCondition { - GTypeInstance parent_instance; - volatile int ref_count; - SearchConditionPrivate * priv; -}; - -struct _SearchConditionClass { - GTypeClass parent_class; - void (*finalize) (SearchCondition *self); - gboolean (*predicate) (SearchCondition* self, MediaSource* source); -}; - -typedef enum { - SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT = 0, - SEARCH_CONDITION_SEARCH_TYPE_TITLE, - SEARCH_CONDITION_SEARCH_TYPE_TAG, - SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME, - SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME, - SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE, - SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE, - SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE, - SEARCH_CONDITION_SEARCH_TYPE_RATING, - SEARCH_CONDITION_SEARCH_TYPE_COMMENT, - SEARCH_CONDITION_SEARCH_TYPE_DATE -} SearchConditionSearchType; - -struct _SearchConditionPrivate { - SearchConditionSearchType _search_type; -}; - -struct _ParamSpecSearchCondition { - GParamSpec parent_instance; -}; - -struct _SearchConditionText { - SearchCondition parent_instance; - SearchConditionTextPrivate * priv; -}; - -struct _SearchConditionTextClass { - SearchConditionClass parent_class; -}; - -typedef enum { - SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS = 0, - SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY, - SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH, - SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH, - SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN, - SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET, - SEARCH_CONDITION_TEXT_CONTEXT_IS_SET -} SearchConditionTextContext; - -struct _SearchConditionTextPrivate { - gchar* _text; - SearchConditionTextContext _context; -}; - -struct _SearchConditionMediaType { - SearchCondition parent_instance; - SearchConditionMediaTypePrivate * priv; -}; - -struct _SearchConditionMediaTypeClass { - SearchConditionClass parent_class; -}; - -typedef enum { - SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL = 0, - SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW, - SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO -} SearchConditionMediaTypeMediaType; - -typedef enum { - SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS = 0, - SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT -} SearchConditionMediaTypeContext; - -struct _SearchConditionMediaTypePrivate { - SearchConditionMediaTypeMediaType _media_type; - SearchConditionMediaTypeContext _context; -}; - -typedef enum { - PHOTO_FILE_FORMAT_JFIF, - PHOTO_FILE_FORMAT_RAW, - PHOTO_FILE_FORMAT_PNG, - PHOTO_FILE_FORMAT_TIFF, - PHOTO_FILE_FORMAT_BMP, - PHOTO_FILE_FORMAT_UNKNOWN -} PhotoFileFormat; - -struct _SearchConditionFlagged { - SearchCondition parent_instance; - SearchConditionFlaggedPrivate * priv; -}; - -struct _SearchConditionFlaggedClass { - SearchConditionClass parent_class; -}; - -typedef enum { - SEARCH_CONDITION_FLAGGED_STATE_FLAGGED = 0, - SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED -} SearchConditionFlaggedState; - -struct _SearchConditionFlaggedPrivate { - SearchConditionFlaggedState _state; -}; - -struct _FlaggableIface { - GTypeInterface parent_iface; - gboolean (*is_flagged) (Flaggable* self); - void (*mark_flagged) (Flaggable* self); - void (*mark_unflagged) (Flaggable* self); -}; - -struct _SearchConditionModified { - SearchCondition parent_instance; - SearchConditionModifiedPrivate * priv; -}; - -struct _SearchConditionModifiedClass { - SearchConditionClass parent_class; -}; - -typedef enum { - SEARCH_CONDITION_MODIFIED_STATE_MODIFIED = 0, - SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES, - SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES -} SearchConditionModifiedState; - -typedef enum { - SEARCH_CONDITION_MODIFIED_CONTEXT_HAS = 0, - SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO -} SearchConditionModifiedContext; - -struct _SearchConditionModifiedPrivate { - SearchConditionModifiedState _state; - SearchConditionModifiedContext _context; -}; - -struct _SearchConditionRating { - SearchCondition parent_instance; - SearchConditionRatingPrivate * priv; -}; - -struct _SearchConditionRatingClass { - SearchConditionClass parent_class; -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER = 0, - SEARCH_CONDITION_RATING_CONTEXT_ONLY, - SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER -} SearchConditionRatingContext; - -struct _SearchConditionRatingPrivate { - Rating _rating; - SearchConditionRatingContext _context; -}; - -struct _SearchConditionDate { - SearchCondition parent_instance; - SearchConditionDatePrivate * priv; -}; - -struct _SearchConditionDateClass { - SearchConditionClass parent_class; -}; - -typedef enum { - SEARCH_CONDITION_DATE_CONTEXT_EXACT = 0, - SEARCH_CONDITION_DATE_CONTEXT_AFTER, - SEARCH_CONDITION_DATE_CONTEXT_BEFORE, - SEARCH_CONDITION_DATE_CONTEXT_BETWEEN, - SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET -} SearchConditionDateContext; - -struct _SearchConditionDatePrivate { - GDateTime* _date_one; - GDateTime* _date_two; - SearchConditionDateContext _context; -}; - -struct _DataObject { - GObject parent_instance; - DataObjectPrivate * priv; -}; - -struct _DataObjectClass { - GObjectClass parent_class; - void (*notify_altered) (DataObject* self, Alteration* alteration); - void (*notify_membership_changed) (DataObject* self, DataCollection* collection); - void (*notify_collection_property_set) (DataObject* self, const gchar* name, GValue* old, GValue* val); - void (*notify_collection_property_cleared) (DataObject* self, const gchar* name); - gchar* (*get_name) (DataObject* self); - gchar* (*to_string) (DataObject* self); -}; - -struct _DataSource { - DataObject parent_instance; - DataSourcePrivate * priv; -}; - -struct _DataSourceClass { - DataObjectClass parent_class; - void (*notify_held_in_tank) (DataSource* self, SourceHoldingTank* holding_tank); - void (*notify_unlinking) (DataSource* self, SourceCollection* collection); - void (*notify_unlinked) (DataSource* self); - void (*notify_relinking) (DataSource* self, SourceCollection* collection); - void (*notify_relinked) (DataSource* self); - gchar* (*get_typename) (DataSource* self); - gint64 (*get_instance_id) (DataSource* self); - gchar* (*get_source_id) (DataSource* self); - void (*commit_backlinks) (DataSource* self, SourceCollection* sources, const gchar* dehydrated); - SourceSnapshot* (*save_snapshot) (DataSource* self); - gboolean (*internal_delete_backing) (DataSource* self, GError** error); - gboolean (*equals) (DataSource* self, DataSource* source); - void (*destroy) (DataSource* self); - void (*unlinked) (DataSource* self, SourceCollection* sources); - void (*relinked) (DataSource* self, SourceCollection* sources); - void (*destroyed) (DataSource* self); -}; - -struct _SavedSearch { - DataSource parent_instance; - SavedSearchPrivate * priv; -}; - -struct _SavedSearchClass { - DataSourceClass parent_class; -}; - -struct _SavedSearchPrivate { - SavedSearchRow* row; -}; - -struct _SavedSearchID { - gint64 id; -}; - -struct _SavedSearchRow { - GTypeInstance parent_instance; - volatile int ref_count; - SavedSearchRowPrivate * priv; - SavedSearchID search_id; - gchar* name; - SearchOperator operator; - GeeList* conditions; -}; - -struct _SavedSearchRowClass { - GTypeClass parent_class; - void (*finalize) (SavedSearchRow *self); -}; - -typedef enum { - DATABASE_ERROR_ERROR, - DATABASE_ERROR_BACKING, - DATABASE_ERROR_MEMORY, - DATABASE_ERROR_ABORT, - DATABASE_ERROR_LIMITS, - DATABASE_ERROR_TYPESPEC -} DatabaseError; -#define DATABASE_ERROR database_error_quark () -struct _SavedSearchTable { - GTypeInstance parent_instance; - volatile int ref_count; - SavedSearchTablePrivate * priv; -}; - -struct _SavedSearchTableClass { - GTypeClass parent_class; - void (*finalize) (SavedSearchTable *self); -}; - -struct _SavedSearchTablePrivate { - GeeHashMap* search_map; -}; - -struct _ParamSpecSavedSearchTable { - GParamSpec parent_instance; -}; - - -static gpointer search_condition_parent_class = NULL; -static gpointer search_condition_text_parent_class = NULL; -extern TagSourceCollection* tag_global; -static gpointer search_condition_media_type_parent_class = NULL; -static gpointer search_condition_flagged_parent_class = NULL; -static gpointer search_condition_modified_parent_class = NULL; -static gpointer search_condition_rating_parent_class = NULL; -static gpointer search_condition_date_parent_class = NULL; -static gpointer saved_search_parent_class = NULL; -static gpointer saved_search_table_parent_class = NULL; -static SavedSearchTable* saved_search_table_instance; -static SavedSearchTable* saved_search_table_instance = NULL; - -GType search_operator_get_type (void) G_GNUC_CONST; -gchar* search_operator_to_string (SearchOperator self); -SearchOperator search_operator_from_string (const gchar* str); -gpointer search_condition_ref (gpointer instance); -void search_condition_unref (gpointer instance); -GParamSpec* param_spec_search_condition (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_search_condition (GValue* value, - gpointer v_object); -void value_take_search_condition (GValue* value, - gpointer v_object); -gpointer value_get_search_condition (const GValue* value); -GType search_condition_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType search_condition_search_type_get_type (void) G_GNUC_CONST; -#define SEARCH_CONDITION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_CONDITION, SearchConditionPrivate)) -SearchConditionSearchType* search_condition_search_type_as_array (int* result_length1); -void search_condition_search_type_sort_array (SearchConditionSearchType** array, - int* array_length1); -static gint __lambda13_ (void* a, - void* b); -gint utf8_cs_compare (void* a, - void* b); -gchar* search_condition_search_type_display_text (SearchConditionSearchType self); -static gint ___lambda13____compar_fn_t (void* key1, - void* key2); -gchar* search_condition_search_type_to_string (SearchConditionSearchType self); -SearchConditionSearchType search_condition_search_type_from_string (const gchar* str); -gboolean search_condition_predicate (SearchCondition* self, - MediaSource* source); -static gboolean search_condition_real_predicate (SearchCondition* self, - MediaSource* source); -SearchCondition* search_condition_construct (GType object_type); -SearchConditionSearchType search_condition_get_search_type (SearchCondition* self); -void search_condition_set_search_type (SearchCondition* self, - SearchConditionSearchType value); -static void search_condition_finalize (SearchCondition * obj); -GType search_condition_text_get_type (void) G_GNUC_CONST; -GType search_condition_text_context_get_type (void) G_GNUC_CONST; -#define SEARCH_CONDITION_TEXT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_CONDITION_TEXT, SearchConditionTextPrivate)) -gchar* search_condition_text_context_to_string (SearchConditionTextContext self); -SearchConditionTextContext search_condition_text_context_from_string (const gchar* str); -SearchConditionText* search_condition_text_new (SearchConditionSearchType search_type, - const gchar* text, - SearchConditionTextContext context); -SearchConditionText* search_condition_text_construct (GType object_type, - SearchConditionSearchType search_type, - const gchar* text, - SearchConditionTextContext context); -gchar* string_remove_diacritics (const gchar* istring); -static void search_condition_text_set_text (SearchConditionText* self, - const gchar* value); -static void search_condition_text_set_context (SearchConditionText* self, - SearchConditionTextContext value); -static gboolean search_condition_text_string_match (SearchConditionText* self, - const gchar* needle, - const gchar* haystack); -SearchConditionTextContext search_condition_text_get_context (SearchConditionText* self); -gboolean is_string_empty (const gchar* s); -static gboolean search_condition_text_real_predicate (SearchCondition* base, - MediaSource* source); -gchar* media_source_get_title (MediaSource* self); -const gchar* search_condition_text_get_text (SearchConditionText* self); -GType tag_get_type (void) G_GNUC_CONST; -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType tag_source_collection_get_type (void) G_GNUC_CONST; -GeeList* tag_source_collection_fetch_for_source (TagSourceCollection* self, - MediaSource* source); -gchar* tag_get_searchable_name (Tag* self); -GType event_source_get_type (void) G_GNUC_CONST; -GType event_get_type (void) G_GNUC_CONST; -Event* media_source_get_event (MediaSource* self); -gchar* data_object_get_name (DataObject* self); -gchar* media_source_get_comment (MediaSource* self); -gchar* media_source_get_basename (MediaSource* self); -static void search_condition_text_finalize (SearchCondition * obj); -GType search_condition_media_type_get_type (void) G_GNUC_CONST; -GType search_condition_media_type_media_type_get_type (void) G_GNUC_CONST; -GType search_condition_media_type_context_get_type (void) G_GNUC_CONST; -#define SEARCH_CONDITION_MEDIA_TYPE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaTypePrivate)) -gchar* search_condition_media_type_context_to_string (SearchConditionMediaTypeContext self); -SearchConditionMediaTypeContext search_condition_media_type_context_from_string (const gchar* str); -gchar* search_condition_media_type_media_type_to_string (SearchConditionMediaTypeMediaType self); -SearchConditionMediaTypeMediaType search_condition_media_type_media_type_from_string (const gchar* str); -SearchConditionMediaType* search_condition_media_type_new (SearchConditionSearchType search_type, - SearchConditionMediaTypeContext context, - SearchConditionMediaTypeMediaType media_type); -SearchConditionMediaType* search_condition_media_type_construct (GType object_type, - SearchConditionSearchType search_type, - SearchConditionMediaTypeContext context, - SearchConditionMediaTypeMediaType media_type); -static void search_condition_media_type_set_context (SearchConditionMediaType* self, - SearchConditionMediaTypeContext value); -static void search_condition_media_type_set_media_type (SearchConditionMediaType* self, - SearchConditionMediaTypeMediaType value); -static gboolean search_condition_media_type_real_predicate (SearchCondition* base, - MediaSource* source); -SearchConditionMediaTypeMediaType search_condition_media_type_get_media_type (SearchConditionMediaType* self); -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -SearchConditionMediaTypeContext search_condition_media_type_get_context (SearchConditionMediaType* self); -GType photo_file_format_get_type (void) G_GNUC_CONST; -PhotoFileFormat photo_get_master_file_format (Photo* self); -GType video_source_get_type (void) G_GNUC_CONST; -static void search_condition_media_type_finalize (SearchCondition * obj); -GType search_condition_flagged_get_type (void) G_GNUC_CONST; -GType search_condition_flagged_state_get_type (void) G_GNUC_CONST; -#define SEARCH_CONDITION_FLAGGED_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlaggedPrivate)) -gchar* search_condition_flagged_state_to_string (SearchConditionFlaggedState self); -SearchConditionFlaggedState search_condition_flagged_state_from_string (const gchar* str); -SearchConditionFlagged* search_condition_flagged_new (SearchConditionSearchType search_type, - SearchConditionFlaggedState state); -SearchConditionFlagged* search_condition_flagged_construct (GType object_type, - SearchConditionSearchType search_type, - SearchConditionFlaggedState state); -static void search_condition_flagged_set_state (SearchConditionFlagged* self, - SearchConditionFlaggedState value); -static gboolean search_condition_flagged_real_predicate (SearchCondition* base, - MediaSource* source); -SearchConditionFlaggedState search_condition_flagged_get_state (SearchConditionFlagged* self); -GType flaggable_get_type (void) G_GNUC_CONST; -gboolean flaggable_is_flagged (Flaggable* self); -static void search_condition_flagged_finalize (SearchCondition * obj); -GType search_condition_modified_get_type (void) G_GNUC_CONST; -GType search_condition_modified_state_get_type (void) G_GNUC_CONST; -GType search_condition_modified_context_get_type (void) G_GNUC_CONST; -#define SEARCH_CONDITION_MODIFIED_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModifiedPrivate)) -gchar* search_condition_modified_context_to_string (SearchConditionModifiedContext self); -SearchConditionModifiedContext search_condition_modified_context_from_string (const gchar* str); -gchar* search_condition_modified_state_to_string (SearchConditionModifiedState self); -SearchConditionModifiedState search_condition_modified_state_from_string (const gchar* str); -SearchConditionModified* search_condition_modified_new (SearchConditionSearchType search_type, - SearchConditionModifiedContext context, - SearchConditionModifiedState state); -SearchConditionModified* search_condition_modified_construct (GType object_type, - SearchConditionSearchType search_type, - SearchConditionModifiedContext context, - SearchConditionModifiedState state); -static void search_condition_modified_set_context (SearchConditionModified* self, - SearchConditionModifiedContext value); -static void search_condition_modified_set_state (SearchConditionModified* self, - SearchConditionModifiedState value); -static gboolean search_condition_modified_real_predicate (SearchCondition* base, - MediaSource* source); -SearchConditionModifiedState search_condition_modified_get_state (SearchConditionModified* self); -gboolean photo_has_transformations (Photo* self); -gboolean photo_has_editable (Photo* self); -SearchConditionModifiedContext search_condition_modified_get_context (SearchConditionModified* self); -static void search_condition_modified_finalize (SearchCondition * obj); -GType search_condition_rating_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -GType search_condition_rating_context_get_type (void) G_GNUC_CONST; -#define SEARCH_CONDITION_RATING_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_CONDITION_RATING, SearchConditionRatingPrivate)) -gchar* search_condition_rating_context_to_string (SearchConditionRatingContext self); -SearchConditionRatingContext search_condition_rating_context_from_string (const gchar* str); -SearchConditionRating* search_condition_rating_new (SearchConditionSearchType search_type, - Rating rating, - SearchConditionRatingContext context); -SearchConditionRating* search_condition_rating_construct (GType object_type, - SearchConditionSearchType search_type, - Rating rating, - SearchConditionRatingContext context); -static void search_condition_rating_set_rating (SearchConditionRating* self, - Rating value); -static void search_condition_rating_set_context (SearchConditionRating* self, - SearchConditionRatingContext value); -static gboolean search_condition_rating_real_predicate (SearchCondition* base, - MediaSource* source); -Rating media_source_get_rating (MediaSource* self); -SearchConditionRatingContext search_condition_rating_get_context (SearchConditionRating* self); -Rating search_condition_rating_get_rating (SearchConditionRating* self); -static void search_condition_rating_finalize (SearchCondition * obj); -GType search_condition_date_get_type (void) G_GNUC_CONST; -GType search_condition_date_context_get_type (void) G_GNUC_CONST; -#define SEARCH_CONDITION_DATE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_CONDITION_DATE, SearchConditionDatePrivate)) -gchar* search_condition_date_context_to_string (SearchConditionDateContext self); -SearchConditionDateContext search_condition_date_context_from_string (const gchar* str); -SearchConditionDate* search_condition_date_new (SearchConditionSearchType search_type, - SearchConditionDateContext context, - GDateTime* date_one, - GDateTime* date_two); -SearchConditionDate* search_condition_date_construct (GType object_type, - SearchConditionSearchType search_type, - SearchConditionDateContext context, - GDateTime* date_one, - GDateTime* date_two); -static void search_condition_date_set_context (SearchConditionDate* self, - SearchConditionDateContext value); -static void search_condition_date_set_date_one (SearchConditionDate* self, - GDateTime* value); -static void search_condition_date_set_date_two (SearchConditionDate* self, - GDateTime* value); -static gboolean search_condition_date_real_predicate (SearchCondition* base, - MediaSource* source); -time_t media_source_get_exposure_time (MediaSource* self); -SearchConditionDateContext search_condition_date_get_context (SearchConditionDate* self); -GDateTime* search_condition_date_get_date_one (SearchConditionDate* self); -GDateTime* search_condition_date_get_date_two (SearchConditionDate* self); -static void search_condition_date_finalize (SearchCondition * obj); -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -gpointer source_holding_tank_ref (gpointer instance); -void source_holding_tank_unref (gpointer instance); -GParamSpec* param_spec_source_holding_tank (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_holding_tank (GValue* value, - gpointer v_object); -void value_take_source_holding_tank (GValue* value, - gpointer v_object); -gpointer value_get_source_holding_tank (const GValue* value); -GType source_holding_tank_get_type (void) G_GNUC_CONST; -gpointer source_snapshot_ref (gpointer instance); -void source_snapshot_unref (gpointer instance); -GParamSpec* param_spec_source_snapshot (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_source_snapshot (GValue* value, - gpointer v_object); -void value_take_source_snapshot (GValue* value, - gpointer v_object); -gpointer value_get_source_snapshot (const GValue* value); -GType source_snapshot_get_type (void) G_GNUC_CONST; -GType saved_search_get_type (void) G_GNUC_CONST; -gpointer saved_search_row_ref (gpointer instance); -void saved_search_row_unref (gpointer instance); -GParamSpec* param_spec_saved_search_row (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_saved_search_row (GValue* value, - gpointer v_object); -void value_take_saved_search_row (GValue* value, - gpointer v_object); -gpointer value_get_saved_search_row (const GValue* value); -GType saved_search_row_get_type (void) G_GNUC_CONST; -#define SAVED_SEARCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SAVED_SEARCH, SavedSearchPrivate)) -#define SAVED_SEARCH_TYPENAME "saved_search" -SavedSearch* saved_search_new (SavedSearchRow* row, - gint64 object_id); -SavedSearch* saved_search_construct (GType object_type, - SavedSearchRow* row, - gint64 object_id); -DataSource* data_source_construct (GType object_type, - gint64 object_id); -static gchar* saved_search_real_get_name (DataObject* base); -GType saved_search_id_get_type (void) G_GNUC_CONST; -SavedSearchID* saved_search_id_dup (const SavedSearchID* self); -void saved_search_id_free (SavedSearchID* self); -static gchar* saved_search_real_to_string (DataObject* base); -static gchar* saved_search_real_get_typename (DataSource* base); -void saved_search_get_saved_search_id (SavedSearch* self, - SavedSearchID* result); -static gint64 saved_search_real_get_instance_id (DataSource* base); -gint saved_search_compare_names (void* a, - void* b); -gint string_collated_compare (void* a, - void* b); -gboolean saved_search_predicate (SavedSearch* self, - MediaSource* source); -void saved_search_reconstitute (SavedSearch* self); -gpointer database_table_ref (gpointer instance); -void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_database_table (GValue* value, - gpointer v_object); -void value_take_database_table (GValue* value, - gpointer v_object); -gpointer value_get_database_table (const GValue* value); -GType database_table_get_type (void) G_GNUC_CONST; -GType saved_search_db_table_get_type (void) G_GNUC_CONST; -SavedSearchDBTable* saved_search_db_table_get_instance (void); -GQuark database_error_quark (void); -void saved_search_db_table_create_from_row (SavedSearchDBTable* self, - SavedSearchRow* row, - SavedSearchID* result, - GError** error); -void app_window_database_error (GError* err); -gpointer saved_search_table_ref (gpointer instance); -void saved_search_table_unref (gpointer instance); -GParamSpec* param_spec_saved_search_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_saved_search_table (GValue* value, - gpointer v_object); -void value_take_saved_search_table (GValue* value, - gpointer v_object); -gpointer value_get_saved_search_table (const GValue* value); -GType saved_search_table_get_type (void) G_GNUC_CONST; -SavedSearchTable* saved_search_table_get_instance (void); -void saved_search_table_add_to_map (SavedSearchTable* self, - SavedSearch* search); -gchar* data_object_to_string (DataObject* self); -gboolean saved_search_rename (SavedSearch* self, - const gchar* new_name); -gboolean saved_search_table_exists (SavedSearchTable* self, - const gchar* search_name); -void saved_search_db_table_rename (SavedSearchDBTable* self, - SavedSearchID* search_id, - const gchar* new_name, - GError** error); -void saved_search_table_remove_from_map (SavedSearchTable* self, - SavedSearch* search); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -GType library_window_get_type (void) G_GNUC_CONST; -LibraryWindow* library_window_get_app (void); -void library_window_switch_to_saved_search (LibraryWindow* self, - SavedSearch* search); -GeeList* saved_search_get_conditions (SavedSearch* self); -SearchOperator saved_search_get_operator (SavedSearch* self); -static void saved_search_finalize (GObject * obj); -#define SAVED_SEARCH_TABLE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SAVED_SEARCH_TABLE, SavedSearchTablePrivate)) -static SavedSearchTable* saved_search_table_new (void); -static SavedSearchTable* saved_search_table_construct (GType object_type); -GeeList* saved_search_db_table_get_all_rows (SavedSearchDBTable* self, - GError** error); -#define DATA_OBJECT_INVALID_OBJECT_ID ((gint64) -1) -GeeCollection* saved_search_table_get_all (SavedSearchTable* self); -SavedSearch* saved_search_table_create (SavedSearchTable* self, - const gchar* name, - SearchOperator operator, - GeeArrayList* conditions); -SavedSearchRow* saved_search_db_table_add (SavedSearchDBTable* self, - const gchar* name, - SearchOperator operator, - GeeArrayList* conditions, - GError** error); -void saved_search_table_remove (SavedSearchTable* self, - SavedSearch* search); -void saved_search_db_table_remove (SavedSearchDBTable* self, - SavedSearchID* search_id, - GError** error); -GeeIterable* saved_search_table_get_saved_searches (SavedSearchTable* self); -gint saved_search_table_get_count (SavedSearchTable* self); -gchar* saved_search_table_generate_unique_name (SavedSearchTable* self); -#define RESOURCES_DEFAULT_SAVED_SEARCH_NAME _ ("Saved Search") -static void saved_search_table_finalize (SavedSearchTable * obj); - - -gchar* -search_operator_to_string (SearchOperator self) -{ - gchar* result = NULL; -#line 14 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - switch (self) { -#line 14 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_OPERATOR_ANY: -#line 1128 "SearchBoolean.c" - { - gchar* _tmp0_; -#line 16 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = g_strdup ("ANY"); -#line 16 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 16 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1137 "SearchBoolean.c" - } -#line 14 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_OPERATOR_ALL: -#line 1141 "SearchBoolean.c" - { - gchar* _tmp1_; -#line 19 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = g_strdup ("ALL"); -#line 19 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_; -#line 19 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1150 "SearchBoolean.c" - } -#line 14 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_OPERATOR_NONE: -#line 1154 "SearchBoolean.c" - { - gchar* _tmp2_; -#line 22 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = g_strdup ("NONE"); -#line 22 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp2_; -#line 22 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1163 "SearchBoolean.c" - } - default: - { -#line 25 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:25: unrecognized search operator enumeration value"); -#line 1169 "SearchBoolean.c" - } - } -} - - -SearchOperator -search_operator_from_string (const gchar* str) -{ - SearchOperator result = 0; -#line 29 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (str != NULL, 0); -#line 30 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "ANY") == 0) { -#line 31 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_OPERATOR_ANY; -#line 31 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1187 "SearchBoolean.c" - } else { -#line 33 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "ALL") == 0) { -#line 34 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_OPERATOR_ALL; -#line 34 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1195 "SearchBoolean.c" - } else { -#line 36 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "NONE") == 0) { -#line 37 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_OPERATOR_NONE; -#line 37 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1203 "SearchBoolean.c" - } else { -#line 40 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:40: unrecognized search operator name: %s", str); -#line 1207 "SearchBoolean.c" - } - } - } -} - - -GType -search_operator_get_type (void) -{ - static volatile gsize search_operator_type_id__volatile = 0; - if (g_once_init_enter (&search_operator_type_id__volatile)) { - static const GEnumValue values[] = {{SEARCH_OPERATOR_ANY, "SEARCH_OPERATOR_ANY", "any"}, {SEARCH_OPERATOR_ALL, "SEARCH_OPERATOR_ALL", "all"}, {SEARCH_OPERATOR_NONE, "SEARCH_OPERATOR_NONE", "none"}, {0, NULL, NULL}}; - GType search_operator_type_id; - search_operator_type_id = g_enum_register_static ("SearchOperator", values); - g_once_init_leave (&search_operator_type_id__volatile, search_operator_type_id); - } - return search_operator_type_id__volatile; -} - - -SearchConditionSearchType* -search_condition_search_type_as_array (int* result_length1) -{ - SearchConditionSearchType* result = NULL; - SearchConditionSearchType* _tmp0_; - SearchConditionSearchType* _tmp1_; - gint _tmp1__length1; -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = g_new0 (SearchConditionSearchType, 11); -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_[0] = SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT; -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_[1] = SEARCH_CONDITION_SEARCH_TYPE_TITLE; -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_[2] = SEARCH_CONDITION_SEARCH_TYPE_TAG; -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_[3] = SEARCH_CONDITION_SEARCH_TYPE_COMMENT; -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_[4] = SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME; -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_[5] = SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME; -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_[6] = SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE; -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_[7] = SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE; -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_[8] = SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE; -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_[9] = SEARCH_CONDITION_SEARCH_TYPE_RATING; -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_[10] = SEARCH_CONDITION_SEARCH_TYPE_DATE; -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = _tmp0_; -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1__length1 = 11; -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (result_length1) { -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - *result_length1 = _tmp1__length1; -#line 1267 "SearchBoolean.c" - } -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_; -#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1273 "SearchBoolean.c" -} - - -static gint -__lambda13_ (void* a, - void* b) -{ - gint result = 0; - gchar* _tmp0_; - gchar* _tmp1_; -#line 71 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = search_condition_search_type_display_text (*((SearchConditionSearchType*) a)); -#line 71 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = search_condition_search_type_display_text (*((SearchConditionSearchType*) b)); -#line 71 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = utf8_cs_compare (_tmp0_, _tmp1_); -#line 71 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1292 "SearchBoolean.c" -} - - -static gint -___lambda13____compar_fn_t (void* key1, - void* key2) -{ - gint result; - result = __lambda13_ (key1, key2); -#line 70 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1304 "SearchBoolean.c" -} - - -void -search_condition_search_type_sort_array (SearchConditionSearchType** array, - int* array_length1) -{ -#line 70 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - qsort (*array, (gsize) (*array_length1), (gsize) sizeof (SearchConditionSearchType), ___lambda13____compar_fn_t); -#line 1314 "SearchBoolean.c" -} - - -gchar* -search_condition_search_type_to_string (SearchConditionSearchType self) -{ - gchar* result = NULL; -#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - switch (self) { -#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT: -#line 1326 "SearchBoolean.c" - { - gchar* _tmp0_; -#line 79 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = g_strdup ("ANY_TEXT"); -#line 79 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 79 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1335 "SearchBoolean.c" - } -#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_TITLE: -#line 1339 "SearchBoolean.c" - { - gchar* _tmp1_; -#line 82 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = g_strdup ("TITLE"); -#line 82 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_; -#line 82 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1348 "SearchBoolean.c" - } -#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_TAG: -#line 1352 "SearchBoolean.c" - { - gchar* _tmp2_; -#line 85 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = g_strdup ("TAG"); -#line 85 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp2_; -#line 85 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1361 "SearchBoolean.c" - } -#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_COMMENT: -#line 1365 "SearchBoolean.c" - { - gchar* _tmp3_; -#line 88 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = g_strdup ("COMMENT"); -#line 88 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp3_; -#line 88 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1374 "SearchBoolean.c" - } -#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME: -#line 1378 "SearchBoolean.c" - { - gchar* _tmp4_; -#line 91 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp4_ = g_strdup ("EVENT_NAME"); -#line 91 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp4_; -#line 91 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1387 "SearchBoolean.c" - } -#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME: -#line 1391 "SearchBoolean.c" - { - gchar* _tmp5_; -#line 94 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp5_ = g_strdup ("FILE_NAME"); -#line 94 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp5_; -#line 94 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1400 "SearchBoolean.c" - } -#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE: -#line 1404 "SearchBoolean.c" - { - gchar* _tmp6_; -#line 97 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp6_ = g_strdup ("MEDIA_TYPE"); -#line 97 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp6_; -#line 97 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1413 "SearchBoolean.c" - } -#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE: -#line 1417 "SearchBoolean.c" - { - gchar* _tmp7_; -#line 100 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp7_ = g_strdup ("FLAG_STATE"); -#line 100 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp7_; -#line 100 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1426 "SearchBoolean.c" - } -#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE: -#line 1430 "SearchBoolean.c" - { - gchar* _tmp8_; -#line 103 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp8_ = g_strdup ("MODIFIED_STATE"); -#line 103 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp8_; -#line 103 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1439 "SearchBoolean.c" - } -#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_RATING: -#line 1443 "SearchBoolean.c" - { - gchar* _tmp9_; -#line 106 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp9_ = g_strdup ("RATING"); -#line 106 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp9_; -#line 106 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1452 "SearchBoolean.c" - } -#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_DATE: -#line 1456 "SearchBoolean.c" - { - gchar* _tmp10_; -#line 109 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp10_ = g_strdup ("DATE"); -#line 109 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp10_; -#line 109 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1465 "SearchBoolean.c" - } - default: - { -#line 112 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:112: unrecognized search type enumeration value"); -#line 1471 "SearchBoolean.c" - } - } -} - - -SearchConditionSearchType -search_condition_search_type_from_string (const gchar* str) -{ - SearchConditionSearchType result = 0; -#line 116 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (str != NULL, 0); -#line 117 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "ANY_TEXT") == 0) { -#line 118 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT; -#line 118 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1489 "SearchBoolean.c" - } else { -#line 120 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "TITLE") == 0) { -#line 121 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_SEARCH_TYPE_TITLE; -#line 121 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1497 "SearchBoolean.c" - } else { -#line 123 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "TAG") == 0) { -#line 124 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_SEARCH_TYPE_TAG; -#line 124 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1505 "SearchBoolean.c" - } else { -#line 126 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "COMMENT") == 0) { -#line 127 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_SEARCH_TYPE_COMMENT; -#line 127 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1513 "SearchBoolean.c" - } else { -#line 129 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "EVENT_NAME") == 0) { -#line 130 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME; -#line 130 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1521 "SearchBoolean.c" - } else { -#line 132 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "FILE_NAME") == 0) { -#line 133 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME; -#line 133 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1529 "SearchBoolean.c" - } else { -#line 135 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "MEDIA_TYPE") == 0) { -#line 136 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE; -#line 136 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1537 "SearchBoolean.c" - } else { -#line 138 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "FLAG_STATE") == 0) { -#line 139 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE; -#line 139 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1545 "SearchBoolean.c" - } else { -#line 141 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "MODIFIED_STATE") == 0) { -#line 142 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE; -#line 142 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1553 "SearchBoolean.c" - } else { -#line 144 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "RATING") == 0) { -#line 145 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_SEARCH_TYPE_RATING; -#line 145 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1561 "SearchBoolean.c" - } else { -#line 147 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "DATE") == 0) { -#line 148 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_SEARCH_TYPE_DATE; -#line 148 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1569 "SearchBoolean.c" - } else { -#line 151 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:151: unrecognized search type name: %s", str); -#line 1573 "SearchBoolean.c" - } - } - } - } - } - } - } - } - } - } - } -} - - -gchar* -search_condition_search_type_display_text (SearchConditionSearchType self) -{ - gchar* result = NULL; -#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - switch (self) { -#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT: -#line 1596 "SearchBoolean.c" - { - gchar* _tmp0_; -#line 157 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = g_strdup (_ ("Any text")); -#line 157 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 157 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1605 "SearchBoolean.c" - } -#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_TITLE: -#line 1609 "SearchBoolean.c" - { - gchar* _tmp1_; -#line 160 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = g_strdup (_ ("Title")); -#line 160 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_; -#line 160 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1618 "SearchBoolean.c" - } -#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_TAG: -#line 1622 "SearchBoolean.c" - { - gchar* _tmp2_; -#line 163 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = g_strdup (_ ("Tag")); -#line 163 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp2_; -#line 163 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1631 "SearchBoolean.c" - } -#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_COMMENT: -#line 1635 "SearchBoolean.c" - { - gchar* _tmp3_; -#line 166 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = g_strdup (_ ("Comment")); -#line 166 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp3_; -#line 166 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1644 "SearchBoolean.c" - } -#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME: -#line 1648 "SearchBoolean.c" - { - gchar* _tmp4_; -#line 169 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp4_ = g_strdup (_ ("Event name")); -#line 169 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp4_; -#line 169 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1657 "SearchBoolean.c" - } -#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME: -#line 1661 "SearchBoolean.c" - { - gchar* _tmp5_; -#line 172 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp5_ = g_strdup (_ ("File name")); -#line 172 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp5_; -#line 172 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1670 "SearchBoolean.c" - } -#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE: -#line 1674 "SearchBoolean.c" - { - gchar* _tmp6_; -#line 175 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp6_ = g_strdup (_ ("Media type")); -#line 175 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp6_; -#line 175 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1683 "SearchBoolean.c" - } -#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE: -#line 1687 "SearchBoolean.c" - { - gchar* _tmp7_; -#line 178 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp7_ = g_strdup (_ ("Flag state")); -#line 178 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp7_; -#line 178 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1696 "SearchBoolean.c" - } -#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE: -#line 1700 "SearchBoolean.c" - { - gchar* _tmp8_; -#line 181 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp8_ = g_strdup (_ ("Photo state")); -#line 181 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp8_; -#line 181 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1709 "SearchBoolean.c" - } -#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_RATING: -#line 1713 "SearchBoolean.c" - { - gchar* _tmp9_; -#line 184 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp9_ = g_strdup (_ ("Rating")); -#line 184 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp9_; -#line 184 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1722 "SearchBoolean.c" - } -#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_SEARCH_TYPE_DATE: -#line 1726 "SearchBoolean.c" - { - gchar* _tmp10_; -#line 187 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp10_ = g_strdup (_ ("Date")); -#line 187 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp10_; -#line 187 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1735 "SearchBoolean.c" - } - default: - { -#line 190 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:190: unrecognized search type enumeration value"); -#line 1741 "SearchBoolean.c" - } - } -} - - -GType -search_condition_search_type_get_type (void) -{ - static volatile gsize search_condition_search_type_type_id__volatile = 0; - if (g_once_init_enter (&search_condition_search_type_type_id__volatile)) { - static const GEnumValue values[] = {{SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT, "SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT", "any-text"}, {SEARCH_CONDITION_SEARCH_TYPE_TITLE, "SEARCH_CONDITION_SEARCH_TYPE_TITLE", "title"}, {SEARCH_CONDITION_SEARCH_TYPE_TAG, "SEARCH_CONDITION_SEARCH_TYPE_TAG", "tag"}, {SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME, "SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME", "event-name"}, {SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME, "SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME", "file-name"}, {SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE, "SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE", "media-type"}, {SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE, "SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE", "flag-state"}, {SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE, "SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE", "modified-state"}, {SEARCH_CONDITION_SEARCH_TYPE_RATING, "SEARCH_CONDITION_SEARCH_TYPE_RATING", "rating"}, {SEARCH_CONDITION_SEARCH_TYPE_COMMENT, "SEARCH_CONDITION_SEARCH_TYPE_COMMENT", "comment"}, {SEARCH_CONDITION_SEARCH_TYPE_DATE, "SEARCH_CONDITION_SEARCH_TYPE_DATE", "date"}, {0, NULL, NULL}}; - GType search_condition_search_type_type_id; - search_condition_search_type_type_id = g_enum_register_static ("SearchConditionSearchType", values); - g_once_init_leave (&search_condition_search_type_type_id__volatile, search_condition_search_type_type_id); - } - return search_condition_search_type_type_id__volatile; -} - - -static gboolean -search_condition_real_predicate (SearchCondition* self, - MediaSource* source) -{ - gboolean _tmp0_ = FALSE; -#line 198 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_critical ("Type `%s' does not implement abstract method `search_condition_predicate'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 198 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return _tmp0_; -#line 1770 "SearchBoolean.c" -} - - -gboolean -search_condition_predicate (SearchCondition* self, - MediaSource* source) -{ -#line 198 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SEARCH_CONDITION (self), FALSE); -#line 198 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return SEARCH_CONDITION_GET_CLASS (self)->predicate (self, source); -#line 1782 "SearchBoolean.c" -} - - -SearchCondition* -search_condition_construct (GType object_type) -{ - SearchCondition* self = NULL; -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = (SearchCondition*) g_type_create_instance (object_type); -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return self; -#line 1794 "SearchBoolean.c" -} - - -SearchConditionSearchType -search_condition_get_search_type (SearchCondition* self) -{ - SearchConditionSearchType result; - SearchConditionSearchType _tmp0_; -#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SEARCH_CONDITION (self), 0); -#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->_search_type; -#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 1811 "SearchBoolean.c" -} - - -void -search_condition_set_search_type (SearchCondition* self, - SearchConditionSearchType value) -{ -#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SEARCH_CONDITION (self)); -#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv->_search_type = value; -#line 1823 "SearchBoolean.c" -} - - -static void -value_search_condition_init (GValue* value) -{ -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - value->data[0].v_pointer = NULL; -#line 1832 "SearchBoolean.c" -} - - -static void -value_search_condition_free_value (GValue* value) -{ -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (value->data[0].v_pointer) { -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_unref (value->data[0].v_pointer); -#line 1843 "SearchBoolean.c" - } -} - - -static void -value_search_condition_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (src_value->data[0].v_pointer) { -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - dest_value->data[0].v_pointer = search_condition_ref (src_value->data[0].v_pointer); -#line 1856 "SearchBoolean.c" - } else { -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - dest_value->data[0].v_pointer = NULL; -#line 1860 "SearchBoolean.c" - } -} - - -static gpointer -value_search_condition_peek_pointer (const GValue* value) -{ -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return value->data[0].v_pointer; -#line 1870 "SearchBoolean.c" -} - - -static gchar* -value_search_condition_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (collect_values[0].v_pointer) { -#line 1882 "SearchBoolean.c" - SearchCondition * object; - object = collect_values[0].v_pointer; -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (object->parent_instance.g_class == NULL) { -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1889 "SearchBoolean.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1893 "SearchBoolean.c" - } -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - value->data[0].v_pointer = search_condition_ref (object); -#line 1897 "SearchBoolean.c" - } else { -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - value->data[0].v_pointer = NULL; -#line 1901 "SearchBoolean.c" - } -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return NULL; -#line 1905 "SearchBoolean.c" -} - - -static gchar* -value_search_condition_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - SearchCondition ** object_p; - object_p = collect_values[0].v_pointer; -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (!object_p) { -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1921 "SearchBoolean.c" - } -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (!value->data[0].v_pointer) { -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - *object_p = NULL; -#line 1927 "SearchBoolean.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - *object_p = value->data[0].v_pointer; -#line 1931 "SearchBoolean.c" - } else { -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - *object_p = search_condition_ref (value->data[0].v_pointer); -#line 1935 "SearchBoolean.c" - } -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return NULL; -#line 1939 "SearchBoolean.c" -} - - -GParamSpec* -param_spec_search_condition (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecSearchCondition* spec; -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_SEARCH_CONDITION), NULL); -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return G_PARAM_SPEC (spec); -#line 1959 "SearchBoolean.c" -} - - -gpointer -value_get_search_condition (const GValue* value) -{ -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SEARCH_CONDITION), NULL); -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return value->data[0].v_pointer; -#line 1970 "SearchBoolean.c" -} - - -void -value_set_search_condition (GValue* value, - gpointer v_object) -{ - SearchCondition * old; -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SEARCH_CONDITION)); -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - old = value->data[0].v_pointer; -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (v_object) { -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SEARCH_CONDITION)); -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - value->data[0].v_pointer = v_object; -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_ref (value->data[0].v_pointer); -#line 1993 "SearchBoolean.c" - } else { -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - value->data[0].v_pointer = NULL; -#line 1997 "SearchBoolean.c" - } -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (old) { -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_unref (old); -#line 2003 "SearchBoolean.c" - } -} - - -void -value_take_search_condition (GValue* value, - gpointer v_object) -{ - SearchCondition * old; -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SEARCH_CONDITION)); -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - old = value->data[0].v_pointer; -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (v_object) { -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SEARCH_CONDITION)); -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - value->data[0].v_pointer = v_object; -#line 2025 "SearchBoolean.c" - } else { -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - value->data[0].v_pointer = NULL; -#line 2029 "SearchBoolean.c" - } -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (old) { -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_unref (old); -#line 2035 "SearchBoolean.c" - } -} - - -static void -search_condition_class_init (SearchConditionClass * klass) -{ -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_parent_class = g_type_class_peek_parent (klass); -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((SearchConditionClass *) klass)->finalize = search_condition_finalize; -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_type_class_add_private (klass, sizeof (SearchConditionPrivate)); -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_real_predicate; -#line 2051 "SearchBoolean.c" -} - - -static void -search_condition_instance_init (SearchCondition * self) -{ -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv = SEARCH_CONDITION_GET_PRIVATE (self); -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->ref_count = 1; -#line 2062 "SearchBoolean.c" -} - - -static void -search_condition_finalize (SearchCondition * obj) -{ - SearchCondition * self; -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION, SearchCondition); -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_signal_handlers_destroy (self); -#line 2074 "SearchBoolean.c" -} - - -GType -search_condition_get_type (void) -{ - static volatile gsize search_condition_type_id__volatile = 0; - if (g_once_init_enter (&search_condition_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_search_condition_init, value_search_condition_free_value, value_search_condition_copy_value, value_search_condition_peek_pointer, "p", value_search_condition_collect_value, "p", value_search_condition_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (SearchConditionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_condition_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchCondition), 0, (GInstanceInitFunc) search_condition_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType search_condition_type_id; - search_condition_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SearchCondition", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&search_condition_type_id__volatile, search_condition_type_id); - } - return search_condition_type_id__volatile; -} - - -gpointer -search_condition_ref (gpointer instance) -{ - SearchCondition * self; - self = instance; -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_atomic_int_inc (&self->ref_count); -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return instance; -#line 2103 "SearchBoolean.c" -} - - -void -search_condition_unref (gpointer instance) -{ - SearchCondition * self; - self = instance; -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - SEARCH_CONDITION_GET_CLASS (self)->finalize (self); -#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2118 "SearchBoolean.c" - } -} - - -gchar* -search_condition_text_context_to_string (SearchConditionTextContext self) -{ - gchar* result = NULL; -#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - switch (self) { -#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS: -#line 2131 "SearchBoolean.c" - { - gchar* _tmp0_; -#line 215 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = g_strdup ("CONTAINS"); -#line 215 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 215 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2140 "SearchBoolean.c" - } -#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY: -#line 2144 "SearchBoolean.c" - { - gchar* _tmp1_; -#line 218 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = g_strdup ("IS_EXACTLY"); -#line 218 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_; -#line 218 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2153 "SearchBoolean.c" - } -#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH: -#line 2157 "SearchBoolean.c" - { - gchar* _tmp2_; -#line 221 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = g_strdup ("STARTS_WITH"); -#line 221 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp2_; -#line 221 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2166 "SearchBoolean.c" - } -#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH: -#line 2170 "SearchBoolean.c" - { - gchar* _tmp3_; -#line 224 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = g_strdup ("ENDS_WITH"); -#line 224 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp3_; -#line 224 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2179 "SearchBoolean.c" - } -#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN: -#line 2183 "SearchBoolean.c" - { - gchar* _tmp4_; -#line 227 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp4_ = g_strdup ("DOES_NOT_CONTAIN"); -#line 227 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp4_; -#line 227 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2192 "SearchBoolean.c" - } -#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET: -#line 2196 "SearchBoolean.c" - { - gchar* _tmp5_; -#line 230 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp5_ = g_strdup ("IS_NOT_SET"); -#line 230 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp5_; -#line 230 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2205 "SearchBoolean.c" - } -#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_TEXT_CONTEXT_IS_SET: -#line 2209 "SearchBoolean.c" - { - gchar* _tmp6_; -#line 233 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp6_ = g_strdup ("IS_SET"); -#line 233 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp6_; -#line 233 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2218 "SearchBoolean.c" - } - default: - { -#line 236 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:236: unrecognized text search context enumeration v" \ -"alue"); -#line 2224 "SearchBoolean.c" - } - } -} - - -SearchConditionTextContext -search_condition_text_context_from_string (const gchar* str) -{ - SearchConditionTextContext result = 0; -#line 240 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (str != NULL, 0); -#line 241 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "CONTAINS") == 0) { -#line 242 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS; -#line 242 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2242 "SearchBoolean.c" - } else { -#line 244 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "IS_EXACTLY") == 0) { -#line 245 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY; -#line 245 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2250 "SearchBoolean.c" - } else { -#line 247 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "STARTS_WITH") == 0) { -#line 248 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH; -#line 248 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2258 "SearchBoolean.c" - } else { -#line 250 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "ENDS_WITH") == 0) { -#line 251 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH; -#line 251 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2266 "SearchBoolean.c" - } else { -#line 253 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "DOES_NOT_CONTAIN") == 0) { -#line 254 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN; -#line 254 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2274 "SearchBoolean.c" - } else { -#line 256 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "IS_NOT_SET") == 0) { -#line 257 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET; -#line 257 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2282 "SearchBoolean.c" - } else { -#line 259 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "IS_SET") == 0) { -#line 260 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_TEXT_CONTEXT_IS_SET; -#line 260 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2290 "SearchBoolean.c" - } else { -#line 263 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:263: unrecognized text search context name: %s", str); -#line 2294 "SearchBoolean.c" - } - } - } - } - } - } - } -} - - -GType -search_condition_text_context_get_type (void) -{ - static volatile gsize search_condition_text_context_type_id__volatile = 0; - if (g_once_init_enter (&search_condition_text_context_type_id__volatile)) { - static const GEnumValue values[] = {{SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS, "SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS", "contains"}, {SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY, "SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY", "is-exactly"}, {SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH, "SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH", "starts-with"}, {SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH, "SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH", "ends-with"}, {SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN, "SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN", "does-not-contain"}, {SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET, "SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET", "is-not-set"}, {SEARCH_CONDITION_TEXT_CONTEXT_IS_SET, "SEARCH_CONDITION_TEXT_CONTEXT_IS_SET", "is-set"}, {0, NULL, NULL}}; - GType search_condition_text_context_type_id; - search_condition_text_context_type_id = g_enum_register_static ("SearchConditionTextContext", values); - g_once_init_leave (&search_condition_text_context_type_id__volatile, search_condition_text_context_type_id); - } - return search_condition_text_context_type_id__volatile; -} - - -SearchConditionText* -search_condition_text_construct (GType object_type, - SearchConditionSearchType search_type, - const gchar* text, - SearchConditionTextContext context) -{ - SearchConditionText* self = NULL; - gchar* _tmp0_ = NULL; -#line 273 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = (SearchConditionText*) search_condition_construct (object_type); -#line 274 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_set_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition), search_type); -#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (text != NULL) { -#line 2333 "SearchBoolean.c" - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = g_utf8_strdown (text, (gssize) -1); -#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = _tmp1_; -#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = string_remove_diacritics (_tmp2_); -#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp0_); -#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = _tmp3_; -#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp2_); -#line 2349 "SearchBoolean.c" - } else { - gchar* _tmp4_; -#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp4_ = g_strdup (""); -#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp0_); -#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = _tmp4_; -#line 2358 "SearchBoolean.c" - } -#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_text_set_text (self, _tmp0_); -#line 276 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_text_set_context (self, context); -#line 273 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp0_); -#line 273 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return self; -#line 2368 "SearchBoolean.c" -} - - -SearchConditionText* -search_condition_text_new (SearchConditionSearchType search_type, - const gchar* text, - SearchConditionTextContext context) -{ -#line 273 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return search_condition_text_construct (TYPE_SEARCH_CONDITION_TEXT, search_type, text, context); -#line 2379 "SearchBoolean.c" -} - - -static gboolean -string_contains (const gchar* self, - const gchar* needle) -{ - gboolean result = FALSE; - gchar* _tmp0_; -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, FALSE); -#line 1417 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, FALSE); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr ((gchar*) self, (gchar*) needle); -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_ != NULL; -#line 1418 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2399 "SearchBoolean.c" -} - - -static gboolean -search_condition_text_string_match (SearchConditionText* self, - const gchar* needle, - const gchar* haystack) -{ - gboolean result = FALSE; - SearchConditionTextContext _tmp0_; -#line 280 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SEARCH_CONDITION_TEXT (self), FALSE); -#line 280 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (needle != NULL, FALSE); -#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->_context; -#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - switch (_tmp0_) { -#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS: -#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN: -#line 2422 "SearchBoolean.c" - { - gboolean _tmp1_ = FALSE; -#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (!is_string_empty (haystack)) { -#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = string_contains (haystack, needle); -#line 2429 "SearchBoolean.c" - } else { -#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = FALSE; -#line 2433 "SearchBoolean.c" - } -#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_; -#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2439 "SearchBoolean.c" - } -#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY: -#line 2443 "SearchBoolean.c" - { - gboolean _tmp2_ = FALSE; -#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (!is_string_empty (haystack)) { -#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = g_strcmp0 (haystack, needle) == 0; -#line 2450 "SearchBoolean.c" - } else { -#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = FALSE; -#line 2454 "SearchBoolean.c" - } -#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp2_; -#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2460 "SearchBoolean.c" - } -#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH: -#line 2464 "SearchBoolean.c" - { - gboolean _tmp3_ = FALSE; -#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (!is_string_empty (haystack)) { -#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = g_str_has_prefix (haystack, needle); -#line 2471 "SearchBoolean.c" - } else { -#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = FALSE; -#line 2475 "SearchBoolean.c" - } -#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp3_; -#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2481 "SearchBoolean.c" - } -#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH: -#line 2485 "SearchBoolean.c" - { - gboolean _tmp4_ = FALSE; -#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (!is_string_empty (haystack)) { -#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp4_ = g_str_has_suffix (haystack, needle); -#line 2492 "SearchBoolean.c" - } else { -#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp4_ = FALSE; -#line 2496 "SearchBoolean.c" - } -#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp4_; -#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2502 "SearchBoolean.c" - } -#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET: -#line 2506 "SearchBoolean.c" - { -#line 296 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = is_string_empty (haystack); -#line 296 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2512 "SearchBoolean.c" - } -#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_TEXT_CONTEXT_IS_SET: -#line 2516 "SearchBoolean.c" - { -#line 299 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = !is_string_empty (haystack); -#line 299 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2522 "SearchBoolean.c" - } - default: -#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - break; -#line 2527 "SearchBoolean.c" - } -#line 302 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = FALSE; -#line 302 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 2533 "SearchBoolean.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return self ? g_object_ref (self) : NULL; -#line 2542 "SearchBoolean.c" -} - - -static gboolean -search_condition_text_real_predicate (SearchCondition* base, - MediaSource* source) -{ - SearchConditionText * self; - gboolean result = FALSE; - gboolean ret = FALSE; - gboolean _tmp0_ = FALSE; - SearchConditionSearchType _tmp1_; - SearchConditionSearchType _tmp2_; - gboolean _tmp18_ = FALSE; - SearchConditionSearchType _tmp19_; - SearchConditionSearchType _tmp20_; - gboolean _tmp46_ = FALSE; - SearchConditionSearchType _tmp47_; - SearchConditionSearchType _tmp48_; - gboolean _tmp66_ = FALSE; - SearchConditionSearchType _tmp67_; - SearchConditionSearchType _tmp68_; - gboolean _tmp80_ = FALSE; - SearchConditionSearchType _tmp81_; - SearchConditionSearchType _tmp82_; - gboolean _tmp93_ = FALSE; - SearchConditionTextContext _tmp94_; -#line 306 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_TEXT, SearchConditionText); -#line 306 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE); -#line 307 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ret = FALSE; -#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = _tmp1_; -#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT == _tmp2_) { -#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = TRUE; -#line 2584 "SearchBoolean.c" - } else { - SearchConditionSearchType _tmp3_; - SearchConditionSearchType _tmp4_; -#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp4_ = _tmp3_; -#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = SEARCH_CONDITION_SEARCH_TYPE_TITLE == _tmp4_; -#line 2594 "SearchBoolean.c" - } -#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp0_) { -#line 2598 "SearchBoolean.c" - gchar* _tmp5_ = NULL; - gchar* _tmp6_; - gchar* _tmp7_; - gboolean _tmp8_; - gchar* title = NULL; - gchar* _tmp14_; - gboolean _tmp15_; - const gchar* _tmp16_; - const gchar* _tmp17_; -#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp6_ = media_source_get_title (source); -#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp7_ = _tmp6_; -#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp8_ = NULL != _tmp7_; -#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp7_); -#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp8_) { -#line 2618 "SearchBoolean.c" - gchar* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; -#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp9_ = media_source_get_title (source); -#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp10_ = _tmp9_; -#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp11_ = g_utf8_strdown (_tmp10_, (gssize) -1); -#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp12_ = _tmp11_; -#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp13_ = string_remove_diacritics (_tmp12_); -#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp5_); -#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp5_ = _tmp13_; -#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp12_); -#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp10_); -#line 2642 "SearchBoolean.c" - } else { -#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp5_); -#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp5_ = NULL; -#line 2648 "SearchBoolean.c" - } -#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp14_ = g_strdup (_tmp5_); -#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - title = _tmp14_; -#line 313 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp15_ = ret; -#line 313 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp16_ = self->priv->_text; -#line 313 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp17_ = title; -#line 313 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ret = _tmp15_ | search_condition_text_string_match (self, _tmp16_, _tmp17_); -#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (title); -#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp5_); -#line 2666 "SearchBoolean.c" - } -#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp19_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp20_ = _tmp19_; -#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT == _tmp20_) { -#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp18_ = TRUE; -#line 2676 "SearchBoolean.c" - } else { - SearchConditionSearchType _tmp21_; - SearchConditionSearchType _tmp22_; -#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp21_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp22_ = _tmp21_; -#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp18_ = SEARCH_CONDITION_SEARCH_TYPE_TAG == _tmp22_; -#line 2686 "SearchBoolean.c" - } -#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp18_) { -#line 2690 "SearchBoolean.c" - GeeList* tag_list = NULL; - TagSourceCollection* _tmp23_; - GeeList* _tmp24_; - GeeList* _tmp25_; -#line 318 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp23_ = tag_global; -#line 318 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp24_ = tag_source_collection_fetch_for_source (_tmp23_, source); -#line 318 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - tag_list = _tmp24_; -#line 319 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp25_ = tag_list; -#line 319 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (NULL != _tmp25_) { -#line 2705 "SearchBoolean.c" - gchar* itag = NULL; - { - GeeList* _tag_list = NULL; - GeeList* _tmp26_; - GeeList* _tmp27_; - gint _tag_size = 0; - GeeList* _tmp28_; - gint _tmp29_; - gint _tmp30_; - gint _tag_index = 0; -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp26_ = tag_list; -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp27_ = _g_object_ref0 (_tmp26_); -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tag_list = _tmp27_; -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp28_ = _tag_list; -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp29_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp30_ = _tmp29_; -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tag_size = _tmp30_; -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tag_index = -1; -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - while (TRUE) { -#line 2734 "SearchBoolean.c" - gint _tmp31_; - gint _tmp32_; - gint _tmp33_; - Tag* tag = NULL; - GeeList* _tmp34_; - gint _tmp35_; - gpointer _tmp36_; - Tag* _tmp37_; - gchar* _tmp38_; - gchar* _tmp39_; - gchar* _tmp40_; - gboolean _tmp41_; - const gchar* _tmp42_; - const gchar* _tmp43_; -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp31_ = _tag_index; -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tag_index = _tmp31_ + 1; -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp32_ = _tag_index; -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp33_ = _tag_size; -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (!(_tmp32_ < _tmp33_)) { -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - break; -#line 2761 "SearchBoolean.c" - } -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp34_ = _tag_list; -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp35_ = _tag_index; -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp36_ = gee_list_get (_tmp34_, _tmp35_); -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - tag = (Tag*) _tmp36_; -#line 322 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp37_ = tag; -#line 322 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp38_ = tag_get_searchable_name (_tmp37_); -#line 322 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp39_ = _tmp38_; -#line 322 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp40_ = g_utf8_strdown (_tmp39_, (gssize) -1); -#line 322 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (itag); -#line 322 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - itag = _tmp40_; -#line 322 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp39_); -#line 323 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp41_ = ret; -#line 323 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp42_ = self->priv->_text; -#line 323 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp43_ = itag; -#line 323 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ret = _tmp41_ | search_condition_text_string_match (self, _tmp42_, _tmp43_); -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (tag); -#line 2795 "SearchBoolean.c" - } -#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (_tag_list); -#line 2799 "SearchBoolean.c" - } -#line 319 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (itag); -#line 2803 "SearchBoolean.c" - } else { - gboolean _tmp44_; - const gchar* _tmp45_; -#line 326 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp44_ = ret; -#line 326 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp45_ = self->priv->_text; -#line 326 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ret = _tmp44_ | search_condition_text_string_match (self, _tmp45_, NULL); -#line 2813 "SearchBoolean.c" - } -#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (tag_list); -#line 2817 "SearchBoolean.c" - } -#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp47_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp48_ = _tmp47_; -#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT == _tmp48_) { -#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp46_ = TRUE; -#line 2827 "SearchBoolean.c" - } else { - SearchConditionSearchType _tmp49_; - SearchConditionSearchType _tmp50_; -#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp49_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp50_ = _tmp49_; -#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp46_ = SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME == _tmp50_; -#line 2837 "SearchBoolean.c" - } -#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp46_) { -#line 2841 "SearchBoolean.c" - gchar* _tmp51_ = NULL; - Event* _tmp52_; - Event* _tmp53_; - gboolean _tmp54_; - gchar* event_name = NULL; - gchar* _tmp62_; - gboolean _tmp63_; - const gchar* _tmp64_; - const gchar* _tmp65_; -#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp52_ = media_source_get_event (source); -#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp53_ = _tmp52_; -#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp54_ = NULL != _tmp53_; -#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (_tmp53_); -#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp54_) { -#line 2861 "SearchBoolean.c" - Event* _tmp55_; - Event* _tmp56_; - gchar* _tmp57_; - gchar* _tmp58_; - gchar* _tmp59_; - gchar* _tmp60_; - gchar* _tmp61_; -#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp55_ = media_source_get_event (source); -#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp56_ = _tmp55_; -#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp57_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, TYPE_DATA_OBJECT, DataObject)); -#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp58_ = _tmp57_; -#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp59_ = g_utf8_strdown (_tmp58_, (gssize) -1); -#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp60_ = _tmp59_; -#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp61_ = string_remove_diacritics (_tmp60_); -#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp51_); -#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp51_ = _tmp61_; -#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp60_); -#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp58_); -#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (_tmp56_); -#line 2893 "SearchBoolean.c" - } else { -#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp51_); -#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp51_ = NULL; -#line 2899 "SearchBoolean.c" - } -#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp62_ = g_strdup (_tmp51_); -#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - event_name = _tmp62_; -#line 334 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp63_ = ret; -#line 334 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp64_ = self->priv->_text; -#line 334 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp65_ = event_name; -#line 334 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ret = _tmp63_ | search_condition_text_string_match (self, _tmp64_, _tmp65_); -#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (event_name); -#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp51_); -#line 2917 "SearchBoolean.c" - } -#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp67_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp68_ = _tmp67_; -#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT == _tmp68_) { -#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp66_ = TRUE; -#line 2927 "SearchBoolean.c" - } else { - SearchConditionSearchType _tmp69_; - SearchConditionSearchType _tmp70_; -#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp69_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp70_ = _tmp69_; -#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp66_ = SEARCH_CONDITION_SEARCH_TYPE_COMMENT == _tmp70_; -#line 2937 "SearchBoolean.c" - } -#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp66_) { -#line 2941 "SearchBoolean.c" - gchar* comment = NULL; - gchar* _tmp71_; - const gchar* _tmp72_; -#line 339 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp71_ = media_source_get_comment (source); -#line 339 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - comment = _tmp71_; -#line 340 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp72_ = comment; -#line 340 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (NULL != _tmp72_) { -#line 2953 "SearchBoolean.c" - gboolean _tmp73_; - const gchar* _tmp74_; - const gchar* _tmp75_; - gchar* _tmp76_; - gchar* _tmp77_; - gchar* _tmp78_; - gchar* _tmp79_; -#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp73_ = ret; -#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp74_ = self->priv->_text; -#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp75_ = comment; -#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp76_ = g_utf8_strdown (_tmp75_, (gssize) -1); -#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp77_ = _tmp76_; -#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp78_ = string_remove_diacritics (_tmp77_); -#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp79_ = _tmp78_; -#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ret = _tmp73_ | search_condition_text_string_match (self, _tmp74_, _tmp79_); -#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp79_); -#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp77_); -#line 2981 "SearchBoolean.c" - } -#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (comment); -#line 2985 "SearchBoolean.c" - } -#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp81_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp82_ = _tmp81_; -#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT == _tmp82_) { -#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp80_ = TRUE; -#line 2995 "SearchBoolean.c" - } else { - SearchConditionSearchType _tmp83_; - SearchConditionSearchType _tmp84_; -#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp83_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition)); -#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp84_ = _tmp83_; -#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp80_ = SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME == _tmp84_; -#line 3005 "SearchBoolean.c" - } -#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp80_) { -#line 3009 "SearchBoolean.c" - gboolean _tmp85_; - const gchar* _tmp86_; - gchar* _tmp87_; - gchar* _tmp88_; - gchar* _tmp89_; - gchar* _tmp90_; - gchar* _tmp91_; - gchar* _tmp92_; -#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp85_ = ret; -#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp86_ = self->priv->_text; -#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp87_ = media_source_get_basename (source); -#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp88_ = _tmp87_; -#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp89_ = g_utf8_strdown (_tmp88_, (gssize) -1); -#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp90_ = _tmp89_; -#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp91_ = string_remove_diacritics (_tmp90_); -#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp92_ = _tmp91_; -#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ret = _tmp85_ | search_condition_text_string_match (self, _tmp86_, _tmp92_); -#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp92_); -#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp90_); -#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp88_); -#line 3042 "SearchBoolean.c" - } -#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp94_ = self->priv->_context; -#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp94_ == SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN) { -#line 3048 "SearchBoolean.c" - gboolean _tmp95_; -#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp95_ = ret; -#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp93_ = !_tmp95_; -#line 3054 "SearchBoolean.c" - } else { - gboolean _tmp96_; -#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp96_ = ret; -#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp93_ = _tmp96_; -#line 3061 "SearchBoolean.c" - } -#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp93_; -#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3067 "SearchBoolean.c" -} - - -const gchar* -search_condition_text_get_text (SearchConditionText* self) -{ - const gchar* result; - const gchar* _tmp0_; -#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SEARCH_CONDITION_TEXT (self), NULL); -#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->_text; -#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3084 "SearchBoolean.c" -} - - -static void -search_condition_text_set_text (SearchConditionText* self, - const gchar* value) -{ - gchar* _tmp0_; -#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SEARCH_CONDITION_TEXT (self)); -#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = g_strdup (value); -#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (self->priv->_text); -#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv->_text = _tmp0_; -#line 3101 "SearchBoolean.c" -} - - -SearchConditionTextContext -search_condition_text_get_context (SearchConditionText* self) -{ - SearchConditionTextContext result; - SearchConditionTextContext _tmp0_; -#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SEARCH_CONDITION_TEXT (self), 0); -#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->_context; -#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3118 "SearchBoolean.c" -} - - -static void -search_condition_text_set_context (SearchConditionText* self, - SearchConditionTextContext value) -{ -#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SEARCH_CONDITION_TEXT (self)); -#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv->_context = value; -#line 3130 "SearchBoolean.c" -} - - -static void -search_condition_text_class_init (SearchConditionTextClass * klass) -{ -#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_text_parent_class = g_type_class_peek_parent (klass); -#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((SearchConditionClass *) klass)->finalize = search_condition_text_finalize; -#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_type_class_add_private (klass, sizeof (SearchConditionTextPrivate)); -#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_text_real_predicate; -#line 3145 "SearchBoolean.c" -} - - -static void -search_condition_text_instance_init (SearchConditionText * self) -{ -#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv = SEARCH_CONDITION_TEXT_GET_PRIVATE (self); -#line 3154 "SearchBoolean.c" -} - - -static void -search_condition_text_finalize (SearchCondition * obj) -{ - SearchConditionText * self; -#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_TEXT, SearchConditionText); -#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (self->priv->_text); -#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - SEARCH_CONDITION_CLASS (search_condition_text_parent_class)->finalize (obj); -#line 3168 "SearchBoolean.c" -} - - -GType -search_condition_text_get_type (void) -{ - static volatile gsize search_condition_text_type_id__volatile = 0; - if (g_once_init_enter (&search_condition_text_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SearchConditionTextClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_condition_text_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchConditionText), 0, (GInstanceInitFunc) search_condition_text_instance_init, NULL }; - GType search_condition_text_type_id; - search_condition_text_type_id = g_type_register_static (TYPE_SEARCH_CONDITION, "SearchConditionText", &g_define_type_info, 0); - g_once_init_leave (&search_condition_text_type_id__volatile, search_condition_text_type_id); - } - return search_condition_text_type_id__volatile; -} - - -gchar* -search_condition_media_type_context_to_string (SearchConditionMediaTypeContext self) -{ - gchar* result = NULL; -#line 360 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - switch (self) { -#line 360 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS: -#line 3194 "SearchBoolean.c" - { - gchar* _tmp0_; -#line 362 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = g_strdup ("IS"); -#line 362 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 362 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3203 "SearchBoolean.c" - } -#line 360 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT: -#line 3207 "SearchBoolean.c" - { - gchar* _tmp1_; -#line 365 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = g_strdup ("IS_NOT"); -#line 365 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_; -#line 365 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3216 "SearchBoolean.c" - } - default: - { -#line 368 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:368: unrecognized media search context enumeration " \ -"value"); -#line 3222 "SearchBoolean.c" - } - } -} - - -SearchConditionMediaTypeContext -search_condition_media_type_context_from_string (const gchar* str) -{ - SearchConditionMediaTypeContext result = 0; -#line 372 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (str != NULL, 0); -#line 373 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "IS") == 0) { -#line 374 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS; -#line 374 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3240 "SearchBoolean.c" - } else { -#line 376 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "IS_NOT") == 0) { -#line 377 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT; -#line 377 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3248 "SearchBoolean.c" - } else { -#line 380 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:380: unrecognized media search context name: %s", str); -#line 3252 "SearchBoolean.c" - } - } -} - - -GType -search_condition_media_type_context_get_type (void) -{ - static volatile gsize search_condition_media_type_context_type_id__volatile = 0; - if (g_once_init_enter (&search_condition_media_type_context_type_id__volatile)) { - static const GEnumValue values[] = {{SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS, "SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS", "is"}, {SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT, "SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT", "is-not"}, {0, NULL, NULL}}; - GType search_condition_media_type_context_type_id; - search_condition_media_type_context_type_id = g_enum_register_static ("SearchConditionMediaTypeContext", values); - g_once_init_leave (&search_condition_media_type_context_type_id__volatile, search_condition_media_type_context_type_id); - } - return search_condition_media_type_context_type_id__volatile; -} - - -gchar* -search_condition_media_type_media_type_to_string (SearchConditionMediaTypeMediaType self) -{ - gchar* result = NULL; -#line 390 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - switch (self) { -#line 390 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL: -#line 3280 "SearchBoolean.c" - { - gchar* _tmp0_; -#line 392 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = g_strdup ("PHOTO_ALL"); -#line 392 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 392 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3289 "SearchBoolean.c" - } -#line 390 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW: -#line 3293 "SearchBoolean.c" - { - gchar* _tmp1_; -#line 395 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = g_strdup ("PHOTO_RAW"); -#line 395 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_; -#line 395 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3302 "SearchBoolean.c" - } -#line 390 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO: -#line 3306 "SearchBoolean.c" - { - gchar* _tmp2_; -#line 398 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = g_strdup ("VIDEO"); -#line 398 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp2_; -#line 398 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3315 "SearchBoolean.c" - } - default: - { -#line 401 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:401: unrecognized media search type enumeration val" \ -"ue"); -#line 3321 "SearchBoolean.c" - } - } -} - - -SearchConditionMediaTypeMediaType -search_condition_media_type_media_type_from_string (const gchar* str) -{ - SearchConditionMediaTypeMediaType result = 0; -#line 405 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (str != NULL, 0); -#line 406 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "PHOTO_ALL") == 0) { -#line 407 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL; -#line 407 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3339 "SearchBoolean.c" - } else { -#line 409 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "PHOTO_RAW") == 0) { -#line 410 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW; -#line 410 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3347 "SearchBoolean.c" - } else { -#line 412 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "VIDEO") == 0) { -#line 413 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO; -#line 413 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3355 "SearchBoolean.c" - } else { -#line 416 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:416: unrecognized media search type name: %s", str); -#line 3359 "SearchBoolean.c" - } - } - } -} - - -GType -search_condition_media_type_media_type_get_type (void) -{ - static volatile gsize search_condition_media_type_media_type_type_id__volatile = 0; - if (g_once_init_enter (&search_condition_media_type_media_type_type_id__volatile)) { - static const GEnumValue values[] = {{SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL, "SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL", "photo-all"}, {SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW, "SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW", "photo-raw"}, {SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO, "SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO", "video"}, {0, NULL, NULL}}; - GType search_condition_media_type_media_type_type_id; - search_condition_media_type_media_type_type_id = g_enum_register_static ("SearchConditionMediaTypeMediaType", values); - g_once_init_leave (&search_condition_media_type_media_type_type_id__volatile, search_condition_media_type_media_type_type_id); - } - return search_condition_media_type_media_type_type_id__volatile; -} - - -SearchConditionMediaType* -search_condition_media_type_construct (GType object_type, - SearchConditionSearchType search_type, - SearchConditionMediaTypeContext context, - SearchConditionMediaTypeMediaType media_type) -{ - SearchConditionMediaType* self = NULL; -#line 426 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = (SearchConditionMediaType*) search_condition_construct (object_type); -#line 427 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_set_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition), search_type); -#line 428 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_media_type_set_context (self, context); -#line 429 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_media_type_set_media_type (self, media_type); -#line 426 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return self; -#line 3397 "SearchBoolean.c" -} - - -SearchConditionMediaType* -search_condition_media_type_new (SearchConditionSearchType search_type, - SearchConditionMediaTypeContext context, - SearchConditionMediaTypeMediaType media_type) -{ -#line 426 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return search_condition_media_type_construct (TYPE_SEARCH_CONDITION_MEDIA_TYPE, search_type, context, media_type); -#line 3408 "SearchBoolean.c" -} - - -static gboolean -search_condition_media_type_real_predicate (SearchCondition* base, - MediaSource* source) -{ - SearchConditionMediaType * self; - gboolean result = FALSE; - SearchConditionMediaTypeMediaType _tmp0_; -#line 433 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaType); -#line 433 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE); -#line 436 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->_media_type; -#line 436 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - switch (_tmp0_) { -#line 436 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL: -#line 3429 "SearchBoolean.c" - { -#line 438 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO)) { -#line 3433 "SearchBoolean.c" - SearchConditionMediaTypeContext _tmp1_; -#line 439 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = self->priv->_context; -#line 439 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS; -#line 439 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3441 "SearchBoolean.c" - } else { - SearchConditionMediaTypeContext _tmp2_; -#line 441 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = self->priv->_context; -#line 441 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp2_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT; -#line 441 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3450 "SearchBoolean.c" - } - } -#line 436 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW: -#line 3455 "SearchBoolean.c" - { - gboolean _tmp3_ = FALSE; -#line 444 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO)) { -#line 444 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = photo_get_master_file_format (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_PHOTO, Photo)) == PHOTO_FILE_FORMAT_RAW; -#line 3462 "SearchBoolean.c" - } else { -#line 444 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = FALSE; -#line 3466 "SearchBoolean.c" - } -#line 444 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp3_) { -#line 3470 "SearchBoolean.c" - SearchConditionMediaTypeContext _tmp4_; -#line 445 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp4_ = self->priv->_context; -#line 445 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp4_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS; -#line 445 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3478 "SearchBoolean.c" - } else { - SearchConditionMediaTypeContext _tmp5_; -#line 447 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp5_ = self->priv->_context; -#line 447 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp5_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT; -#line 447 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3487 "SearchBoolean.c" - } - } -#line 436 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO: -#line 3492 "SearchBoolean.c" - { -#line 450 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_VIDEO_SOURCE)) { -#line 3496 "SearchBoolean.c" - SearchConditionMediaTypeContext _tmp6_; -#line 451 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp6_ = self->priv->_context; -#line 451 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp6_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS; -#line 451 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3504 "SearchBoolean.c" - } else { - SearchConditionMediaTypeContext _tmp7_; -#line 453 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp7_ = self->priv->_context; -#line 453 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp7_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT; -#line 453 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3513 "SearchBoolean.c" - } - } - default: - { -#line 456 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:456: unrecognized media search type enumeration val" \ -"ue"); -#line 3520 "SearchBoolean.c" - } - } -} - - -SearchConditionMediaTypeMediaType -search_condition_media_type_get_media_type (SearchConditionMediaType* self) -{ - SearchConditionMediaTypeMediaType result; - SearchConditionMediaTypeMediaType _tmp0_; -#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SEARCH_CONDITION_MEDIA_TYPE (self), 0); -#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->_media_type; -#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3539 "SearchBoolean.c" -} - - -static void -search_condition_media_type_set_media_type (SearchConditionMediaType* self, - SearchConditionMediaTypeMediaType value) -{ -#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SEARCH_CONDITION_MEDIA_TYPE (self)); -#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv->_media_type = value; -#line 3551 "SearchBoolean.c" -} - - -SearchConditionMediaTypeContext -search_condition_media_type_get_context (SearchConditionMediaType* self) -{ - SearchConditionMediaTypeContext result; - SearchConditionMediaTypeContext _tmp0_; -#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SEARCH_CONDITION_MEDIA_TYPE (self), 0); -#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->_context; -#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3568 "SearchBoolean.c" -} - - -static void -search_condition_media_type_set_context (SearchConditionMediaType* self, - SearchConditionMediaTypeContext value) -{ -#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SEARCH_CONDITION_MEDIA_TYPE (self)); -#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv->_context = value; -#line 3580 "SearchBoolean.c" -} - - -static void -search_condition_media_type_class_init (SearchConditionMediaTypeClass * klass) -{ -#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_media_type_parent_class = g_type_class_peek_parent (klass); -#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((SearchConditionClass *) klass)->finalize = search_condition_media_type_finalize; -#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_type_class_add_private (klass, sizeof (SearchConditionMediaTypePrivate)); -#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_media_type_real_predicate; -#line 3595 "SearchBoolean.c" -} - - -static void -search_condition_media_type_instance_init (SearchConditionMediaType * self) -{ -#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv = SEARCH_CONDITION_MEDIA_TYPE_GET_PRIVATE (self); -#line 3604 "SearchBoolean.c" -} - - -static void -search_condition_media_type_finalize (SearchCondition * obj) -{ - SearchConditionMediaType * self; -#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaType); -#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - SEARCH_CONDITION_CLASS (search_condition_media_type_parent_class)->finalize (obj); -#line 3616 "SearchBoolean.c" -} - - -GType -search_condition_media_type_get_type (void) -{ - static volatile gsize search_condition_media_type_type_id__volatile = 0; - if (g_once_init_enter (&search_condition_media_type_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SearchConditionMediaTypeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_condition_media_type_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchConditionMediaType), 0, (GInstanceInitFunc) search_condition_media_type_instance_init, NULL }; - GType search_condition_media_type_type_id; - search_condition_media_type_type_id = g_type_register_static (TYPE_SEARCH_CONDITION, "SearchConditionMediaType", &g_define_type_info, 0); - g_once_init_leave (&search_condition_media_type_type_id__volatile, search_condition_media_type_type_id); - } - return search_condition_media_type_type_id__volatile; -} - - -gchar* -search_condition_flagged_state_to_string (SearchConditionFlaggedState self) -{ - gchar* result = NULL; -#line 468 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - switch (self) { -#line 468 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_FLAGGED_STATE_FLAGGED: -#line 3642 "SearchBoolean.c" - { - gchar* _tmp0_; -#line 470 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = g_strdup ("FLAGGED"); -#line 470 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 470 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3651 "SearchBoolean.c" - } -#line 468 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED: -#line 3655 "SearchBoolean.c" - { - gchar* _tmp1_; -#line 473 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = g_strdup ("UNFLAGGED"); -#line 473 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_; -#line 473 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3664 "SearchBoolean.c" - } - default: - { -#line 476 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:476: unrecognized flagged search state enumeration " \ -"value"); -#line 3670 "SearchBoolean.c" - } - } -} - - -SearchConditionFlaggedState -search_condition_flagged_state_from_string (const gchar* str) -{ - SearchConditionFlaggedState result = 0; -#line 480 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (str != NULL, 0); -#line 481 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "FLAGGED") == 0) { -#line 482 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_FLAGGED_STATE_FLAGGED; -#line 482 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3688 "SearchBoolean.c" - } else { -#line 484 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "UNFLAGGED") == 0) { -#line 485 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED; -#line 485 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3696 "SearchBoolean.c" - } else { -#line 488 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:488: unrecognized flagged search state name: %s", str); -#line 3700 "SearchBoolean.c" - } - } -} - - -GType -search_condition_flagged_state_get_type (void) -{ - static volatile gsize search_condition_flagged_state_type_id__volatile = 0; - if (g_once_init_enter (&search_condition_flagged_state_type_id__volatile)) { - static const GEnumValue values[] = {{SEARCH_CONDITION_FLAGGED_STATE_FLAGGED, "SEARCH_CONDITION_FLAGGED_STATE_FLAGGED", "flagged"}, {SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED, "SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED", "unflagged"}, {0, NULL, NULL}}; - GType search_condition_flagged_state_type_id; - search_condition_flagged_state_type_id = g_enum_register_static ("SearchConditionFlaggedState", values); - g_once_init_leave (&search_condition_flagged_state_type_id__volatile, search_condition_flagged_state_type_id); - } - return search_condition_flagged_state_type_id__volatile; -} - - -SearchConditionFlagged* -search_condition_flagged_construct (GType object_type, - SearchConditionSearchType search_type, - SearchConditionFlaggedState state) -{ - SearchConditionFlagged* self = NULL; -#line 495 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = (SearchConditionFlagged*) search_condition_construct (object_type); -#line 496 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_set_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition), search_type); -#line 497 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_flagged_set_state (self, state); -#line 495 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return self; -#line 3734 "SearchBoolean.c" -} - - -SearchConditionFlagged* -search_condition_flagged_new (SearchConditionSearchType search_type, - SearchConditionFlaggedState state) -{ -#line 495 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return search_condition_flagged_construct (TYPE_SEARCH_CONDITION_FLAGGED, search_type, state); -#line 3744 "SearchBoolean.c" -} - - -static gboolean -search_condition_flagged_real_predicate (SearchCondition* base, - MediaSource* source) -{ - SearchConditionFlagged * self; - gboolean result = FALSE; - SearchConditionFlaggedState _tmp0_; -#line 501 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlagged); -#line 501 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE); -#line 502 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->_state; -#line 502 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp0_ == SEARCH_CONDITION_FLAGGED_STATE_FLAGGED) { -#line 503 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = flaggable_is_flagged (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_FLAGGABLE, Flaggable)); -#line 503 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3767 "SearchBoolean.c" - } else { - SearchConditionFlaggedState _tmp1_; -#line 504 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = self->priv->_state; -#line 504 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp1_ == SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED) { -#line 505 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = !flaggable_is_flagged (G_TYPE_CHECK_INSTANCE_CAST (source, TYPE_FLAGGABLE, Flaggable)); -#line 505 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3778 "SearchBoolean.c" - } else { -#line 507 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:507: unrecognized flagged search state"); -#line 3782 "SearchBoolean.c" - } - } -} - - -SearchConditionFlaggedState -search_condition_flagged_get_state (SearchConditionFlagged* self) -{ - SearchConditionFlaggedState result; - SearchConditionFlaggedState _tmp0_; -#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SEARCH_CONDITION_FLAGGED (self), 0); -#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->_state; -#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3801 "SearchBoolean.c" -} - - -static void -search_condition_flagged_set_state (SearchConditionFlagged* self, - SearchConditionFlaggedState value) -{ -#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SEARCH_CONDITION_FLAGGED (self)); -#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv->_state = value; -#line 3813 "SearchBoolean.c" -} - - -static void -search_condition_flagged_class_init (SearchConditionFlaggedClass * klass) -{ -#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_flagged_parent_class = g_type_class_peek_parent (klass); -#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((SearchConditionClass *) klass)->finalize = search_condition_flagged_finalize; -#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_type_class_add_private (klass, sizeof (SearchConditionFlaggedPrivate)); -#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_flagged_real_predicate; -#line 3828 "SearchBoolean.c" -} - - -static void -search_condition_flagged_instance_init (SearchConditionFlagged * self) -{ -#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv = SEARCH_CONDITION_FLAGGED_GET_PRIVATE (self); -#line 3837 "SearchBoolean.c" -} - - -static void -search_condition_flagged_finalize (SearchCondition * obj) -{ - SearchConditionFlagged * self; -#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlagged); -#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - SEARCH_CONDITION_CLASS (search_condition_flagged_parent_class)->finalize (obj); -#line 3849 "SearchBoolean.c" -} - - -GType -search_condition_flagged_get_type (void) -{ - static volatile gsize search_condition_flagged_type_id__volatile = 0; - if (g_once_init_enter (&search_condition_flagged_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SearchConditionFlaggedClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_condition_flagged_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchConditionFlagged), 0, (GInstanceInitFunc) search_condition_flagged_instance_init, NULL }; - GType search_condition_flagged_type_id; - search_condition_flagged_type_id = g_type_register_static (TYPE_SEARCH_CONDITION, "SearchConditionFlagged", &g_define_type_info, 0); - g_once_init_leave (&search_condition_flagged_type_id__volatile, search_condition_flagged_type_id); - } - return search_condition_flagged_type_id__volatile; -} - - -gchar* -search_condition_modified_context_to_string (SearchConditionModifiedContext self) -{ - gchar* result = NULL; -#line 520 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - switch (self) { -#line 520 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_MODIFIED_CONTEXT_HAS: -#line 3875 "SearchBoolean.c" - { - gchar* _tmp0_; -#line 522 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = g_strdup ("HAS"); -#line 522 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 522 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3884 "SearchBoolean.c" - } -#line 520 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO: -#line 3888 "SearchBoolean.c" - { - gchar* _tmp1_; -#line 525 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = g_strdup ("HAS_NO"); -#line 525 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_; -#line 525 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3897 "SearchBoolean.c" - } - default: - { -#line 528 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:528: unrecognized modified search context enumerati" \ -"on value"); -#line 3903 "SearchBoolean.c" - } - } -} - - -SearchConditionModifiedContext -search_condition_modified_context_from_string (const gchar* str) -{ - SearchConditionModifiedContext result = 0; -#line 532 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (str != NULL, 0); -#line 533 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "HAS") == 0) { -#line 534 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_MODIFIED_CONTEXT_HAS; -#line 534 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3921 "SearchBoolean.c" - } else { -#line 536 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "HAS_NO") == 0) { -#line 537 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO; -#line 537 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3929 "SearchBoolean.c" - } else { -#line 540 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:540: unrecognized modified search context name: %s", str); -#line 3933 "SearchBoolean.c" - } - } -} - - -GType -search_condition_modified_context_get_type (void) -{ - static volatile gsize search_condition_modified_context_type_id__volatile = 0; - if (g_once_init_enter (&search_condition_modified_context_type_id__volatile)) { - static const GEnumValue values[] = {{SEARCH_CONDITION_MODIFIED_CONTEXT_HAS, "SEARCH_CONDITION_MODIFIED_CONTEXT_HAS", "has"}, {SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO, "SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO", "has-no"}, {0, NULL, NULL}}; - GType search_condition_modified_context_type_id; - search_condition_modified_context_type_id = g_enum_register_static ("SearchConditionModifiedContext", values); - g_once_init_leave (&search_condition_modified_context_type_id__volatile, search_condition_modified_context_type_id); - } - return search_condition_modified_context_type_id__volatile; -} - - -gchar* -search_condition_modified_state_to_string (SearchConditionModifiedState self) -{ - gchar* result = NULL; -#line 550 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - switch (self) { -#line 550 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_MODIFIED_STATE_MODIFIED: -#line 3961 "SearchBoolean.c" - { - gchar* _tmp0_; -#line 552 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = g_strdup ("MODIFIED"); -#line 552 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 552 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3970 "SearchBoolean.c" - } -#line 550 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES: -#line 3974 "SearchBoolean.c" - { - gchar* _tmp1_; -#line 555 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = g_strdup ("INTERNAL_CHANGES"); -#line 555 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_; -#line 555 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3983 "SearchBoolean.c" - } -#line 550 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES: -#line 3987 "SearchBoolean.c" - { - gchar* _tmp2_; -#line 558 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = g_strdup ("EXTERNAL_CHANGES"); -#line 558 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp2_; -#line 558 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 3996 "SearchBoolean.c" - } - default: - { -#line 561 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:561: unrecognized modified search state enumeration" \ -" value"); -#line 4002 "SearchBoolean.c" - } - } -} - - -SearchConditionModifiedState -search_condition_modified_state_from_string (const gchar* str) -{ - SearchConditionModifiedState result = 0; -#line 565 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (str != NULL, 0); -#line 566 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "MODIFIED") == 0) { -#line 567 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_MODIFIED_STATE_MODIFIED; -#line 567 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4020 "SearchBoolean.c" - } else { -#line 569 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "INTERNAL_CHANGES") == 0) { -#line 570 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES; -#line 570 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4028 "SearchBoolean.c" - } else { -#line 572 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "EXTERNAL_CHANGES") == 0) { -#line 573 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES; -#line 573 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4036 "SearchBoolean.c" - } else { -#line 576 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:576: unrecognized modified search state name: %s", str); -#line 4040 "SearchBoolean.c" - } - } - } -} - - -GType -search_condition_modified_state_get_type (void) -{ - static volatile gsize search_condition_modified_state_type_id__volatile = 0; - if (g_once_init_enter (&search_condition_modified_state_type_id__volatile)) { - static const GEnumValue values[] = {{SEARCH_CONDITION_MODIFIED_STATE_MODIFIED, "SEARCH_CONDITION_MODIFIED_STATE_MODIFIED", "modified"}, {SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES, "SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES", "internal-changes"}, {SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES, "SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES", "external-changes"}, {0, NULL, NULL}}; - GType search_condition_modified_state_type_id; - search_condition_modified_state_type_id = g_enum_register_static ("SearchConditionModifiedState", values); - g_once_init_leave (&search_condition_modified_state_type_id__volatile, search_condition_modified_state_type_id); - } - return search_condition_modified_state_type_id__volatile; -} - - -SearchConditionModified* -search_condition_modified_construct (GType object_type, - SearchConditionSearchType search_type, - SearchConditionModifiedContext context, - SearchConditionModifiedState state) -{ - SearchConditionModified* self = NULL; -#line 586 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = (SearchConditionModified*) search_condition_construct (object_type); -#line 587 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_set_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition), search_type); -#line 588 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_modified_set_context (self, context); -#line 589 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_modified_set_state (self, state); -#line 586 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return self; -#line 4078 "SearchBoolean.c" -} - - -SearchConditionModified* -search_condition_modified_new (SearchConditionSearchType search_type, - SearchConditionModifiedContext context, - SearchConditionModifiedState state) -{ -#line 586 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return search_condition_modified_construct (TYPE_SEARCH_CONDITION_MODIFIED, search_type, context, state); -#line 4089 "SearchBoolean.c" -} - - -static gboolean -search_condition_modified_real_predicate (SearchCondition* base, - MediaSource* source) -{ - SearchConditionModified * self; - gboolean result = FALSE; - Photo* photo = NULL; - Photo* _tmp0_; - Photo* _tmp1_; - gboolean match = FALSE; - SearchConditionModifiedState _tmp2_; - gboolean _tmp10_; -#line 593 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModified); -#line 593 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE); -#line 595 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (source, TYPE_PHOTO) ? ((Photo*) source) : NULL); -#line 595 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - photo = _tmp0_; -#line 596 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = photo; -#line 596 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp1_ == NULL) { -#line 597 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = FALSE; -#line 597 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (photo); -#line 597 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4123 "SearchBoolean.c" - } -#line 600 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = self->priv->_state; -#line 600 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp2_ == SEARCH_CONDITION_MODIFIED_STATE_MODIFIED) { -#line 4129 "SearchBoolean.c" - gboolean _tmp3_ = FALSE; - Photo* _tmp4_; -#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp4_ = photo; -#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (photo_has_transformations (_tmp4_)) { -#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = TRUE; -#line 4138 "SearchBoolean.c" - } else { - Photo* _tmp5_; -#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp5_ = photo; -#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = photo_has_editable (_tmp5_); -#line 4145 "SearchBoolean.c" - } -#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - match = _tmp3_; -#line 4149 "SearchBoolean.c" - } else { - SearchConditionModifiedState _tmp6_; -#line 602 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp6_ = self->priv->_state; -#line 602 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp6_ == SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES) { -#line 4156 "SearchBoolean.c" - Photo* _tmp7_; -#line 603 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp7_ = photo; -#line 603 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - match = photo_has_transformations (_tmp7_); -#line 4162 "SearchBoolean.c" - } else { - SearchConditionModifiedState _tmp8_; -#line 604 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp8_ = self->priv->_state; -#line 604 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp8_ == SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES) { -#line 4169 "SearchBoolean.c" - Photo* _tmp9_; -#line 605 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp9_ = photo; -#line 605 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - match = photo_has_editable (_tmp9_); -#line 4175 "SearchBoolean.c" - } else { -#line 607 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:607: unrecognized modified search state"); -#line 4179 "SearchBoolean.c" - } - } - } -#line 609 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp10_ = match; -#line 609 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp10_) { -#line 4187 "SearchBoolean.c" - SearchConditionModifiedContext _tmp11_; -#line 610 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp11_ = self->priv->_context; -#line 610 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp11_ == SEARCH_CONDITION_MODIFIED_CONTEXT_HAS; -#line 610 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (photo); -#line 610 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4197 "SearchBoolean.c" - } else { - SearchConditionModifiedContext _tmp12_; -#line 612 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp12_ = self->priv->_context; -#line 612 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp12_ == SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO; -#line 612 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (photo); -#line 612 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4208 "SearchBoolean.c" - } -#line 593 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (photo); -#line 4212 "SearchBoolean.c" -} - - -SearchConditionModifiedState -search_condition_modified_get_state (SearchConditionModified* self) -{ - SearchConditionModifiedState result; - SearchConditionModifiedState _tmp0_; -#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SEARCH_CONDITION_MODIFIED (self), 0); -#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->_state; -#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4229 "SearchBoolean.c" -} - - -static void -search_condition_modified_set_state (SearchConditionModified* self, - SearchConditionModifiedState value) -{ -#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SEARCH_CONDITION_MODIFIED (self)); -#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv->_state = value; -#line 4241 "SearchBoolean.c" -} - - -SearchConditionModifiedContext -search_condition_modified_get_context (SearchConditionModified* self) -{ - SearchConditionModifiedContext result; - SearchConditionModifiedContext _tmp0_; -#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SEARCH_CONDITION_MODIFIED (self), 0); -#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->_context; -#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4258 "SearchBoolean.c" -} - - -static void -search_condition_modified_set_context (SearchConditionModified* self, - SearchConditionModifiedContext value) -{ -#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SEARCH_CONDITION_MODIFIED (self)); -#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv->_context = value; -#line 4270 "SearchBoolean.c" -} - - -static void -search_condition_modified_class_init (SearchConditionModifiedClass * klass) -{ -#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_modified_parent_class = g_type_class_peek_parent (klass); -#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((SearchConditionClass *) klass)->finalize = search_condition_modified_finalize; -#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_type_class_add_private (klass, sizeof (SearchConditionModifiedPrivate)); -#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_modified_real_predicate; -#line 4285 "SearchBoolean.c" -} - - -static void -search_condition_modified_instance_init (SearchConditionModified * self) -{ -#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv = SEARCH_CONDITION_MODIFIED_GET_PRIVATE (self); -#line 4294 "SearchBoolean.c" -} - - -static void -search_condition_modified_finalize (SearchCondition * obj) -{ - SearchConditionModified * self; -#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModified); -#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - SEARCH_CONDITION_CLASS (search_condition_modified_parent_class)->finalize (obj); -#line 4306 "SearchBoolean.c" -} - - -GType -search_condition_modified_get_type (void) -{ - static volatile gsize search_condition_modified_type_id__volatile = 0; - if (g_once_init_enter (&search_condition_modified_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SearchConditionModifiedClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_condition_modified_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchConditionModified), 0, (GInstanceInitFunc) search_condition_modified_instance_init, NULL }; - GType search_condition_modified_type_id; - search_condition_modified_type_id = g_type_register_static (TYPE_SEARCH_CONDITION, "SearchConditionModified", &g_define_type_info, 0); - g_once_init_leave (&search_condition_modified_type_id__volatile, search_condition_modified_type_id); - } - return search_condition_modified_type_id__volatile; -} - - -gchar* -search_condition_rating_context_to_string (SearchConditionRatingContext self) -{ - gchar* result = NULL; -#line 625 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - switch (self) { -#line 625 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER: -#line 4332 "SearchBoolean.c" - { - gchar* _tmp0_; -#line 627 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = g_strdup ("AND_HIGHER"); -#line 627 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 627 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4341 "SearchBoolean.c" - } -#line 625 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_RATING_CONTEXT_ONLY: -#line 4345 "SearchBoolean.c" - { - gchar* _tmp1_; -#line 630 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = g_strdup ("ONLY"); -#line 630 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_; -#line 630 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4354 "SearchBoolean.c" - } -#line 625 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER: -#line 4358 "SearchBoolean.c" - { - gchar* _tmp2_; -#line 633 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = g_strdup ("AND_LOWER"); -#line 633 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp2_; -#line 633 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4367 "SearchBoolean.c" - } - default: - { -#line 636 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:636: unrecognized rating search context enumeration" \ -" value"); -#line 4373 "SearchBoolean.c" - } - } -} - - -SearchConditionRatingContext -search_condition_rating_context_from_string (const gchar* str) -{ - SearchConditionRatingContext result = 0; -#line 640 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (str != NULL, 0); -#line 641 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "AND_HIGHER") == 0) { -#line 642 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER; -#line 642 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4391 "SearchBoolean.c" - } else { -#line 644 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "ONLY") == 0) { -#line 645 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_RATING_CONTEXT_ONLY; -#line 645 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4399 "SearchBoolean.c" - } else { -#line 647 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "AND_LOWER") == 0) { -#line 648 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER; -#line 648 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4407 "SearchBoolean.c" - } else { -#line 651 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:651: unrecognized rating search context name: %s", str); -#line 4411 "SearchBoolean.c" - } - } - } -} - - -GType -search_condition_rating_context_get_type (void) -{ - static volatile gsize search_condition_rating_context_type_id__volatile = 0; - if (g_once_init_enter (&search_condition_rating_context_type_id__volatile)) { - static const GEnumValue values[] = {{SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER, "SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER", "and-higher"}, {SEARCH_CONDITION_RATING_CONTEXT_ONLY, "SEARCH_CONDITION_RATING_CONTEXT_ONLY", "only"}, {SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER, "SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER", "and-lower"}, {0, NULL, NULL}}; - GType search_condition_rating_context_type_id; - search_condition_rating_context_type_id = g_enum_register_static ("SearchConditionRatingContext", values); - g_once_init_leave (&search_condition_rating_context_type_id__volatile, search_condition_rating_context_type_id); - } - return search_condition_rating_context_type_id__volatile; -} - - -SearchConditionRating* -search_condition_rating_construct (GType object_type, - SearchConditionSearchType search_type, - Rating rating, - SearchConditionRatingContext context) -{ - SearchConditionRating* self = NULL; -#line 661 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = (SearchConditionRating*) search_condition_construct (object_type); -#line 662 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_set_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition), search_type); -#line 663 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_rating_set_rating (self, rating); -#line 664 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_rating_set_context (self, context); -#line 661 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return self; -#line 4449 "SearchBoolean.c" -} - - -SearchConditionRating* -search_condition_rating_new (SearchConditionSearchType search_type, - Rating rating, - SearchConditionRatingContext context) -{ -#line 661 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return search_condition_rating_construct (TYPE_SEARCH_CONDITION_RATING, search_type, rating, context); -#line 4460 "SearchBoolean.c" -} - - -static gboolean -search_condition_rating_real_predicate (SearchCondition* base, - MediaSource* source) -{ - SearchConditionRating * self; - gboolean result = FALSE; - Rating source_rating = 0; - SearchConditionRatingContext _tmp0_; -#line 668 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_RATING, SearchConditionRating); -#line 668 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE); -#line 669 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - source_rating = media_source_get_rating (source); -#line 670 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->_context; -#line 670 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp0_ == SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER) { -#line 4482 "SearchBoolean.c" - Rating _tmp1_; - Rating _tmp2_; -#line 671 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = source_rating; -#line 671 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = self->priv->_rating; -#line 671 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_ >= _tmp2_; -#line 671 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4493 "SearchBoolean.c" - } else { - SearchConditionRatingContext _tmp3_; -#line 672 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = self->priv->_context; -#line 672 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp3_ == SEARCH_CONDITION_RATING_CONTEXT_ONLY) { -#line 4500 "SearchBoolean.c" - Rating _tmp4_; - Rating _tmp5_; -#line 673 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp4_ = source_rating; -#line 673 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp5_ = self->priv->_rating; -#line 673 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp4_ == _tmp5_; -#line 673 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4511 "SearchBoolean.c" - } else { - SearchConditionRatingContext _tmp6_; -#line 674 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp6_ = self->priv->_context; -#line 674 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp6_ == SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER) { -#line 4518 "SearchBoolean.c" - Rating _tmp7_; - Rating _tmp8_; -#line 675 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp7_ = source_rating; -#line 675 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp8_ = self->priv->_rating; -#line 675 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp7_ <= _tmp8_; -#line 675 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4529 "SearchBoolean.c" - } else { -#line 677 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:677: unknown rating search context"); -#line 4533 "SearchBoolean.c" - } - } - } -} - - -Rating -search_condition_rating_get_rating (SearchConditionRating* self) -{ - Rating result; - Rating _tmp0_; -#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SEARCH_CONDITION_RATING (self), 0); -#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->_rating; -#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4553 "SearchBoolean.c" -} - - -static void -search_condition_rating_set_rating (SearchConditionRating* self, - Rating value) -{ -#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SEARCH_CONDITION_RATING (self)); -#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv->_rating = value; -#line 4565 "SearchBoolean.c" -} - - -SearchConditionRatingContext -search_condition_rating_get_context (SearchConditionRating* self) -{ - SearchConditionRatingContext result; - SearchConditionRatingContext _tmp0_; -#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SEARCH_CONDITION_RATING (self), 0); -#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->_context; -#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4582 "SearchBoolean.c" -} - - -static void -search_condition_rating_set_context (SearchConditionRating* self, - SearchConditionRatingContext value) -{ -#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SEARCH_CONDITION_RATING (self)); -#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv->_context = value; -#line 4594 "SearchBoolean.c" -} - - -static void -search_condition_rating_class_init (SearchConditionRatingClass * klass) -{ -#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_rating_parent_class = g_type_class_peek_parent (klass); -#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((SearchConditionClass *) klass)->finalize = search_condition_rating_finalize; -#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_type_class_add_private (klass, sizeof (SearchConditionRatingPrivate)); -#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_rating_real_predicate; -#line 4609 "SearchBoolean.c" -} - - -static void -search_condition_rating_instance_init (SearchConditionRating * self) -{ -#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv = SEARCH_CONDITION_RATING_GET_PRIVATE (self); -#line 4618 "SearchBoolean.c" -} - - -static void -search_condition_rating_finalize (SearchCondition * obj) -{ - SearchConditionRating * self; -#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_RATING, SearchConditionRating); -#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - SEARCH_CONDITION_CLASS (search_condition_rating_parent_class)->finalize (obj); -#line 4630 "SearchBoolean.c" -} - - -GType -search_condition_rating_get_type (void) -{ - static volatile gsize search_condition_rating_type_id__volatile = 0; - if (g_once_init_enter (&search_condition_rating_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SearchConditionRatingClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_condition_rating_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchConditionRating), 0, (GInstanceInitFunc) search_condition_rating_instance_init, NULL }; - GType search_condition_rating_type_id; - search_condition_rating_type_id = g_type_register_static (TYPE_SEARCH_CONDITION, "SearchConditionRating", &g_define_type_info, 0); - g_once_init_leave (&search_condition_rating_type_id__volatile, search_condition_rating_type_id); - } - return search_condition_rating_type_id__volatile; -} - - -gchar* -search_condition_date_context_to_string (SearchConditionDateContext self) -{ - gchar* result = NULL; -#line 692 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - switch (self) { -#line 692 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_DATE_CONTEXT_EXACT: -#line 4656 "SearchBoolean.c" - { - gchar* _tmp0_; -#line 694 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = g_strdup ("EXACT"); -#line 694 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 694 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4665 "SearchBoolean.c" - } -#line 692 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_DATE_CONTEXT_AFTER: -#line 4669 "SearchBoolean.c" - { - gchar* _tmp1_; -#line 697 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = g_strdup ("AFTER"); -#line 697 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_; -#line 697 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4678 "SearchBoolean.c" - } -#line 692 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_DATE_CONTEXT_BEFORE: -#line 4682 "SearchBoolean.c" - { - gchar* _tmp2_; -#line 700 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = g_strdup ("BEFORE"); -#line 700 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp2_; -#line 700 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4691 "SearchBoolean.c" - } -#line 692 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_DATE_CONTEXT_BETWEEN: -#line 4695 "SearchBoolean.c" - { - gchar* _tmp3_; -#line 703 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = g_strdup ("BETWEEN"); -#line 703 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp3_; -#line 703 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4704 "SearchBoolean.c" - } -#line 692 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET: -#line 4708 "SearchBoolean.c" - { - gchar* _tmp4_; -#line 706 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp4_ = g_strdup ("IS_NOT_SET"); -#line 706 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp4_; -#line 706 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4717 "SearchBoolean.c" - } - default: - { -#line 709 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:709: unrecognized date search context enumeration v" \ -"alue"); -#line 4723 "SearchBoolean.c" - } - } -} - - -SearchConditionDateContext -search_condition_date_context_from_string (const gchar* str) -{ - SearchConditionDateContext result = 0; -#line 713 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (str != NULL, 0); -#line 714 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "EXACT") == 0) { -#line 715 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_DATE_CONTEXT_EXACT; -#line 715 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4741 "SearchBoolean.c" - } -#line 717 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "AFTER") == 0) { -#line 718 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_DATE_CONTEXT_AFTER; -#line 718 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4749 "SearchBoolean.c" - } else { -#line 720 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "BEFORE") == 0) { -#line 721 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_DATE_CONTEXT_BEFORE; -#line 721 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4757 "SearchBoolean.c" - } else { -#line 723 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "BETWEEN") == 0) { -#line 724 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_DATE_CONTEXT_BETWEEN; -#line 724 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4765 "SearchBoolean.c" - } else { -#line 726 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_strcmp0 (str, "IS_NOT_SET") == 0) { -#line 727 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET; -#line 727 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4773 "SearchBoolean.c" - } else { -#line 730 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:730: unrecognized date search context name: %s", str); -#line 4777 "SearchBoolean.c" - } - } - } - } -} - - -GType -search_condition_date_context_get_type (void) -{ - static volatile gsize search_condition_date_context_type_id__volatile = 0; - if (g_once_init_enter (&search_condition_date_context_type_id__volatile)) { - static const GEnumValue values[] = {{SEARCH_CONDITION_DATE_CONTEXT_EXACT, "SEARCH_CONDITION_DATE_CONTEXT_EXACT", "exact"}, {SEARCH_CONDITION_DATE_CONTEXT_AFTER, "SEARCH_CONDITION_DATE_CONTEXT_AFTER", "after"}, {SEARCH_CONDITION_DATE_CONTEXT_BEFORE, "SEARCH_CONDITION_DATE_CONTEXT_BEFORE", "before"}, {SEARCH_CONDITION_DATE_CONTEXT_BETWEEN, "SEARCH_CONDITION_DATE_CONTEXT_BETWEEN", "between"}, {SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET, "SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET", "is-not-set"}, {0, NULL, NULL}}; - GType search_condition_date_context_type_id; - search_condition_date_context_type_id = g_enum_register_static ("SearchConditionDateContext", values); - g_once_init_leave (&search_condition_date_context_type_id__volatile, search_condition_date_context_type_id); - } - return search_condition_date_context_type_id__volatile; -} - - -SearchConditionDate* -search_condition_date_construct (GType object_type, - SearchConditionSearchType search_type, - SearchConditionDateContext context, - GDateTime* date_one, - GDateTime* date_two) -{ - SearchConditionDate* self = NULL; - gboolean _tmp0_ = FALSE; -#line 741 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (date_one != NULL, NULL); -#line 741 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (date_two != NULL, NULL); -#line 741 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = (SearchConditionDate*) search_condition_construct (object_type); -#line 743 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_set_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition), search_type); -#line 744 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_date_set_context (self, context); -#line 745 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (context != SEARCH_CONDITION_DATE_CONTEXT_BETWEEN) { -#line 745 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = TRUE; -#line 4822 "SearchBoolean.c" - } else { -#line 745 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = g_date_time_compare (date_two, date_one) >= 1; -#line 4826 "SearchBoolean.c" - } -#line 745 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp0_) { -#line 746 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_date_set_date_one (self, date_one); -#line 747 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_date_set_date_two (self, date_two); -#line 4834 "SearchBoolean.c" - } else { -#line 749 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_date_set_date_one (self, date_two); -#line 750 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_date_set_date_two (self, date_one); -#line 4840 "SearchBoolean.c" - } -#line 741 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return self; -#line 4844 "SearchBoolean.c" -} - - -SearchConditionDate* -search_condition_date_new (SearchConditionSearchType search_type, - SearchConditionDateContext context, - GDateTime* date_one, - GDateTime* date_two) -{ -#line 741 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return search_condition_date_construct (TYPE_SEARCH_CONDITION_DATE, search_type, context, date_one, date_two); -#line 4856 "SearchBoolean.c" -} - - -static gboolean -search_condition_date_real_predicate (SearchCondition* base, - MediaSource* source) -{ - SearchConditionDate * self; - gboolean result = FALSE; - time_t exposure_time = 0; - time_t _tmp0_; - GDateTime* dt = NULL; - time_t _tmp2_; - GDateTime* _tmp3_; - SearchConditionDateContext _tmp4_; -#line 756 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_DATE, SearchConditionDate); -#line 756 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE); -#line 757 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - exposure_time = media_source_get_exposure_time (source); -#line 758 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = exposure_time; -#line 758 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp0_ == ((time_t) 0)) { -#line 4882 "SearchBoolean.c" - SearchConditionDateContext _tmp1_; -#line 759 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = self->priv->_context; -#line 759 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_ == SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET; -#line 759 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4890 "SearchBoolean.c" - } -#line 761 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = exposure_time; -#line 761 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = g_date_time_new_from_unix_local ((gint64) _tmp2_); -#line 761 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - dt = _tmp3_; -#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp4_ = self->priv->_context; -#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - switch (_tmp4_) { -#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_DATE_CONTEXT_EXACT: -#line 4904 "SearchBoolean.c" - { - GDateTime* second = NULL; - GDateTime* _tmp5_; - GDateTime* _tmp6_; - gboolean _tmp7_ = FALSE; - GDateTime* _tmp8_; - GDateTime* _tmp9_; -#line 764 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp5_ = self->priv->_date_one; -#line 764 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp6_ = g_date_time_add_days (_tmp5_, 1); -#line 764 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - second = _tmp6_; -#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp8_ = dt; -#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp9_ = self->priv->_date_one; -#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_date_time_compare (_tmp8_, _tmp9_) >= 0) { -#line 4924 "SearchBoolean.c" - GDateTime* _tmp10_; - GDateTime* _tmp11_; -#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp10_ = dt; -#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp11_ = second; -#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp7_ = g_date_time_compare (_tmp10_, _tmp11_) < 0; -#line 4933 "SearchBoolean.c" - } else { -#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp7_ = FALSE; -#line 4937 "SearchBoolean.c" - } -#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp7_; -#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_date_time_unref0 (second); -#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_date_time_unref0 (dt); -#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4947 "SearchBoolean.c" - } -#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_DATE_CONTEXT_AFTER: -#line 4951 "SearchBoolean.c" - { - GDateTime* _tmp12_; - GDateTime* _tmp13_; -#line 768 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp12_ = dt; -#line 768 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp13_ = self->priv->_date_one; -#line 768 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = g_date_time_compare (_tmp12_, _tmp13_) >= 0; -#line 768 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_date_time_unref0 (dt); -#line 768 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4965 "SearchBoolean.c" - } -#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_DATE_CONTEXT_BEFORE: -#line 4969 "SearchBoolean.c" - { - GDateTime* _tmp14_; - GDateTime* _tmp15_; -#line 771 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp14_ = dt; -#line 771 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp15_ = self->priv->_date_one; -#line 771 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = g_date_time_compare (_tmp14_, _tmp15_) <= 0; -#line 771 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_date_time_unref0 (dt); -#line 771 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 4983 "SearchBoolean.c" - } -#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_DATE_CONTEXT_BETWEEN: -#line 4987 "SearchBoolean.c" - { - GDateTime* second = NULL; - GDateTime* _tmp16_; - GDateTime* _tmp17_; - gboolean _tmp18_ = FALSE; - GDateTime* _tmp19_; - GDateTime* _tmp20_; -#line 774 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp16_ = self->priv->_date_two; -#line 774 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp17_ = g_date_time_add_days (_tmp16_, 1); -#line 774 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - second = _tmp17_; -#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp19_ = dt; -#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp20_ = self->priv->_date_one; -#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_date_time_compare (_tmp19_, _tmp20_) >= 0) { -#line 5007 "SearchBoolean.c" - GDateTime* _tmp21_; - GDateTime* _tmp22_; -#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp21_ = dt; -#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp22_ = second; -#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp18_ = g_date_time_compare (_tmp21_, _tmp22_) < 0; -#line 5016 "SearchBoolean.c" - } else { -#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp18_ = FALSE; -#line 5020 "SearchBoolean.c" - } -#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp18_; -#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_date_time_unref0 (second); -#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_date_time_unref0 (dt); -#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 5030 "SearchBoolean.c" - } -#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - case SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET: -#line 5034 "SearchBoolean.c" - { -#line 778 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = FALSE; -#line 778 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_date_time_unref0 (dt); -#line 778 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 5042 "SearchBoolean.c" - } - default: - { -#line 781 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_error ("SearchBoolean.vala:781: unrecognized date search context enumeration v" \ -"alue"); -#line 5048 "SearchBoolean.c" - } - } -#line 756 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_date_time_unref0 (dt); -#line 5053 "SearchBoolean.c" -} - - -GDateTime* -search_condition_date_get_date_one (SearchConditionDate* self) -{ - GDateTime* result; - GDateTime* _tmp0_; -#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SEARCH_CONDITION_DATE (self), NULL); -#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->_date_one; -#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 5070 "SearchBoolean.c" -} - - -static gpointer -_g_date_time_ref0 (gpointer self) -{ -#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return self ? g_date_time_ref (self) : NULL; -#line 5079 "SearchBoolean.c" -} - - -static void -search_condition_date_set_date_one (SearchConditionDate* self, - GDateTime* value) -{ - GDateTime* _tmp0_; -#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SEARCH_CONDITION_DATE (self)); -#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = _g_date_time_ref0 (value); -#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_date_time_unref0 (self->priv->_date_one); -#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv->_date_one = _tmp0_; -#line 5096 "SearchBoolean.c" -} - - -GDateTime* -search_condition_date_get_date_two (SearchConditionDate* self) -{ - GDateTime* result; - GDateTime* _tmp0_; -#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SEARCH_CONDITION_DATE (self), NULL); -#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->_date_two; -#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 5113 "SearchBoolean.c" -} - - -static void -search_condition_date_set_date_two (SearchConditionDate* self, - GDateTime* value) -{ - GDateTime* _tmp0_; -#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SEARCH_CONDITION_DATE (self)); -#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = _g_date_time_ref0 (value); -#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_date_time_unref0 (self->priv->_date_two); -#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv->_date_two = _tmp0_; -#line 5130 "SearchBoolean.c" -} - - -SearchConditionDateContext -search_condition_date_get_context (SearchConditionDate* self) -{ - SearchConditionDateContext result; - SearchConditionDateContext _tmp0_; -#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SEARCH_CONDITION_DATE (self), 0); -#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->_context; -#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 5147 "SearchBoolean.c" -} - - -static void -search_condition_date_set_context (SearchConditionDate* self, - SearchConditionDateContext value) -{ -#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SEARCH_CONDITION_DATE (self)); -#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv->_context = value; -#line 5159 "SearchBoolean.c" -} - - -static void -search_condition_date_class_init (SearchConditionDateClass * klass) -{ -#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search_condition_date_parent_class = g_type_class_peek_parent (klass); -#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((SearchConditionClass *) klass)->finalize = search_condition_date_finalize; -#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_type_class_add_private (klass, sizeof (SearchConditionDatePrivate)); -#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_date_real_predicate; -#line 5174 "SearchBoolean.c" -} - - -static void -search_condition_date_instance_init (SearchConditionDate * self) -{ -#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv = SEARCH_CONDITION_DATE_GET_PRIVATE (self); -#line 5183 "SearchBoolean.c" -} - - -static void -search_condition_date_finalize (SearchCondition * obj) -{ - SearchConditionDate * self; -#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_DATE, SearchConditionDate); -#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_date_time_unref0 (self->priv->_date_one); -#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_date_time_unref0 (self->priv->_date_two); -#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - SEARCH_CONDITION_CLASS (search_condition_date_parent_class)->finalize (obj); -#line 5199 "SearchBoolean.c" -} - - -GType -search_condition_date_get_type (void) -{ - static volatile gsize search_condition_date_type_id__volatile = 0; - if (g_once_init_enter (&search_condition_date_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SearchConditionDateClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) search_condition_date_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchConditionDate), 0, (GInstanceInitFunc) search_condition_date_instance_init, NULL }; - GType search_condition_date_type_id; - search_condition_date_type_id = g_type_register_static (TYPE_SEARCH_CONDITION, "SearchConditionDate", &g_define_type_info, 0); - g_once_init_leave (&search_condition_date_type_id__volatile, search_condition_date_type_id); - } - return search_condition_date_type_id__volatile; -} - - -static gpointer -_saved_search_row_ref0 (gpointer self) -{ -#line 797 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return self ? saved_search_row_ref (self) : NULL; -#line 5222 "SearchBoolean.c" -} - - -SavedSearch* -saved_search_construct (GType object_type, - SavedSearchRow* row, - gint64 object_id) -{ - SavedSearch * self = NULL; - SavedSearchRow* _tmp0_; -#line 794 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SAVED_SEARCH_ROW (row), NULL); -#line 795 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = (SavedSearch*) data_source_construct (object_type, object_id); -#line 797 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = _saved_search_row_ref0 (row); -#line 797 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _saved_search_row_unref0 (self->priv->row); -#line 797 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv->row = _tmp0_; -#line 794 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return self; -#line 5245 "SearchBoolean.c" -} - - -SavedSearch* -saved_search_new (SavedSearchRow* row, - gint64 object_id) -{ -#line 794 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return saved_search_construct (TYPE_SAVED_SEARCH, row, object_id); -#line 5255 "SearchBoolean.c" -} - - -static gchar* -saved_search_real_get_name (DataObject* base) -{ - SavedSearch * self; - gchar* result = NULL; - SavedSearchRow* _tmp0_; - const gchar* _tmp1_; - gchar* _tmp2_; -#line 800 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH, SavedSearch); -#line 801 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->row; -#line 801 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = _tmp0_->name; -#line 801 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 801 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp2_; -#line 801 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 5279 "SearchBoolean.c" -} - - -static gchar* -saved_search_real_to_string (DataObject* base) -{ - SavedSearch * self; - gchar* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; -#line 804 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH, SavedSearch); -#line 805 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 805 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = _tmp0_; -#line 805 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = g_strconcat ("SavedSearch ", _tmp1_, NULL); -#line 805 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = _tmp2_; -#line 805 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp1_); -#line 805 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp3_; -#line 805 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 5308 "SearchBoolean.c" -} - - -static gchar* -saved_search_real_get_typename (DataSource* base) -{ - SavedSearch * self; - gchar* result = NULL; - gchar* _tmp0_; -#line 808 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH, SavedSearch); -#line 809 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = g_strdup (SAVED_SEARCH_TYPENAME); -#line 809 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp0_; -#line 809 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 5326 "SearchBoolean.c" -} - - -void -saved_search_get_saved_search_id (SavedSearch* self, - SavedSearchID* result) -{ - SavedSearchRow* _tmp0_; - SavedSearchID _tmp1_; -#line 812 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SAVED_SEARCH (self)); -#line 813 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->row; -#line 813 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = _tmp0_->search_id; -#line 813 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - *result = _tmp1_; -#line 813 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return; -#line 5346 "SearchBoolean.c" -} - - -static gint64 -saved_search_real_get_instance_id (DataSource* base) -{ - SavedSearch * self; - gint64 result = 0LL; - SavedSearchID _tmp0_ = {0}; - gint64 _tmp1_; -#line 816 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH, SavedSearch); -#line 817 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_get_saved_search_id (self, &_tmp0_); -#line 817 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = _tmp0_.id; -#line 817 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_; -#line 817 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 5367 "SearchBoolean.c" -} - - -gint -saved_search_compare_names (void* a, - void* b) -{ - gint result = 0; - SavedSearch* asearch = NULL; - SavedSearch* bsearch = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 821 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - asearch = (SavedSearch*) a; -#line 822 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - bsearch = (SavedSearch*) b; -#line 824 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (asearch, TYPE_DATA_OBJECT, DataObject)); -#line 824 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (bsearch, TYPE_DATA_OBJECT, DataObject)); -#line 824 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = string_collated_compare (_tmp0_, _tmp1_); -#line 824 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 5392 "SearchBoolean.c" -} - - -gboolean -saved_search_predicate (SavedSearch* self, - MediaSource* source) -{ - gboolean result = FALSE; - gboolean ret = FALSE; - gboolean _tmp0_ = FALSE; - SavedSearchRow* _tmp1_; - SearchOperator _tmp2_; -#line 827 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SAVED_SEARCH (self), FALSE); -#line 827 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_MEDIA_SOURCE (source), FALSE); -#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = self->priv->row; -#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = _tmp1_->operator; -#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (SEARCH_OPERATOR_ALL == _tmp2_) { -#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = TRUE; -#line 5417 "SearchBoolean.c" - } else { - SavedSearchRow* _tmp3_; - SearchOperator _tmp4_; -#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = self->priv->row; -#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp4_ = _tmp3_->operator; -#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = SEARCH_OPERATOR_NONE == _tmp4_; -#line 5427 "SearchBoolean.c" - } -#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp0_) { -#line 830 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ret = TRUE; -#line 5433 "SearchBoolean.c" - } else { -#line 832 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ret = FALSE; -#line 5437 "SearchBoolean.c" - } - { - GeeList* _c_list = NULL; - SavedSearchRow* _tmp5_; - GeeList* _tmp6_; - GeeList* _tmp7_; - gint _c_size = 0; - GeeList* _tmp8_; - gint _tmp9_; - gint _tmp10_; - gint _c_index = 0; -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp5_ = self->priv->row; -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp6_ = _tmp5_->conditions; -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp7_ = _g_object_ref0 (_tmp6_); -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _c_list = _tmp7_; -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp8_ = _c_list; -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp9_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp10_ = _tmp9_; -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _c_size = _tmp10_; -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _c_index = -1; -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - while (TRUE) { -#line 5469 "SearchBoolean.c" - gint _tmp11_; - gint _tmp12_; - gint _tmp13_; - SearchCondition* c = NULL; - GeeList* _tmp14_; - gint _tmp15_; - gpointer _tmp16_; - SavedSearchRow* _tmp17_; - SearchOperator _tmp18_; -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp11_ = _c_index; -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _c_index = _tmp11_ + 1; -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp12_ = _c_index; -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp13_ = _c_size; -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (!(_tmp12_ < _tmp13_)) { -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - break; -#line 5491 "SearchBoolean.c" - } -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp14_ = _c_list; -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp15_ = _c_index; -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp16_ = gee_list_get (_tmp14_, _tmp15_); -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - c = (SearchCondition*) _tmp16_; -#line 835 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp17_ = self->priv->row; -#line 835 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp18_ = _tmp17_->operator; -#line 835 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (SEARCH_OPERATOR_ALL == _tmp18_) { -#line 5507 "SearchBoolean.c" - gboolean _tmp19_; - SearchCondition* _tmp20_; -#line 836 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp19_ = ret; -#line 836 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp20_ = c; -#line 836 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ret = _tmp19_ & search_condition_predicate (_tmp20_, source); -#line 5516 "SearchBoolean.c" - } else { - SavedSearchRow* _tmp21_; - SearchOperator _tmp22_; -#line 837 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp21_ = self->priv->row; -#line 837 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp22_ = _tmp21_->operator; -#line 837 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (SEARCH_OPERATOR_ANY == _tmp22_) { -#line 5526 "SearchBoolean.c" - gboolean _tmp23_; - SearchCondition* _tmp24_; -#line 838 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp23_ = ret; -#line 838 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp24_ = c; -#line 838 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ret = _tmp23_ | search_condition_predicate (_tmp24_, source); -#line 5535 "SearchBoolean.c" - } else { - SavedSearchRow* _tmp25_; - SearchOperator _tmp26_; -#line 839 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp25_ = self->priv->row; -#line 839 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp26_ = _tmp25_->operator; -#line 839 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (SEARCH_OPERATOR_NONE == _tmp26_) { -#line 5545 "SearchBoolean.c" - gboolean _tmp27_; - SearchCondition* _tmp28_; -#line 840 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp27_ = ret; -#line 840 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp28_ = c; -#line 840 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ret = _tmp27_ & (!search_condition_predicate (_tmp28_, source)); -#line 5554 "SearchBoolean.c" - } - } - } -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _search_condition_unref0 (c); -#line 5560 "SearchBoolean.c" - } -#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (_c_list); -#line 5564 "SearchBoolean.c" - } -#line 842 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = ret; -#line 842 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 5570 "SearchBoolean.c" -} - - -void -saved_search_reconstitute (SavedSearch* self) -{ - SavedSearchTable* _tmp8_; - SavedSearchTable* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - GError * _inner_error_ = NULL; -#line 845 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SAVED_SEARCH (self)); -#line 5584 "SearchBoolean.c" - { - SavedSearchID _tmp0_ = {0}; - SavedSearchDBTable* _tmp1_; - SavedSearchDBTable* _tmp2_; - SavedSearchRow* _tmp3_; - SavedSearchID _tmp4_ = {0}; - SavedSearchID _tmp5_; - SavedSearchRow* _tmp6_; -#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = saved_search_db_table_get_instance (); -#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = _tmp1_; -#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = self->priv->row; -#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_db_table_create_from_row (_tmp2_, _tmp3_, &_tmp4_, &_inner_error_); -#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp5_ = _tmp4_; -#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _database_table_unref0 (_tmp2_); -#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = _tmp5_; -#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 5611 "SearchBoolean.c" - goto __catch86_database_error; - } -#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_clear_error (&_inner_error_); -#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return; -#line 5620 "SearchBoolean.c" - } -#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp6_ = self->priv->row; -#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp6_->search_id = _tmp0_; -#line 5626 "SearchBoolean.c" - } - goto __finally86; - __catch86_database_error: - { - GError* err = NULL; - GError* _tmp7_; -#line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - err = _inner_error_; -#line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _inner_error_ = NULL; -#line 849 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp7_ = err; -#line 849 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - app_window_database_error (_tmp7_); -#line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_error_free0 (err); -#line 5643 "SearchBoolean.c" - } - __finally86: -#line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_clear_error (&_inner_error_); -#line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return; -#line 5654 "SearchBoolean.c" - } -#line 852 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp8_ = saved_search_table_get_instance (); -#line 852 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp9_ = _tmp8_; -#line 852 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_table_add_to_map (_tmp9_, self); -#line 852 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _saved_search_table_unref0 (_tmp9_); -#line 853 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp10_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 853 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp11_ = _tmp10_; -#line 853 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_debug ("SearchBoolean.vala:853: Reconstituted %s", _tmp11_); -#line 853 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp11_); -#line 5672 "SearchBoolean.c" -} - - -gboolean -saved_search_rename (SavedSearch* self, - const gchar* new_name) -{ - gboolean result = FALSE; - SavedSearchTable* _tmp0_; - SavedSearchTable* _tmp1_; - gboolean _tmp2_; - SavedSearchTable* _tmp10_; - SavedSearchTable* _tmp11_; - SavedSearchRow* _tmp12_; - gchar* _tmp13_; - SavedSearchTable* _tmp14_; - SavedSearchTable* _tmp15_; - LibraryWindow* _tmp16_; - LibraryWindow* _tmp17_; - GError * _inner_error_ = NULL; -#line 857 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SAVED_SEARCH (self), FALSE); -#line 857 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (new_name != NULL, FALSE); -#line 858 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (is_string_empty (new_name)) { -#line 859 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = FALSE; -#line 859 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 5703 "SearchBoolean.c" - } -#line 861 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = saved_search_table_get_instance (); -#line 861 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = _tmp0_; -#line 861 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = saved_search_table_exists (_tmp1_, new_name); -#line 861 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _saved_search_table_unref0 (_tmp1_); -#line 861 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp2_) { -#line 862 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = FALSE; -#line 862 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 5719 "SearchBoolean.c" - } - { - SavedSearchDBTable* _tmp3_; - SavedSearchDBTable* _tmp4_; - SavedSearchRow* _tmp5_; - SavedSearchID _tmp6_; -#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = saved_search_db_table_get_instance (); -#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp4_ = _tmp3_; -#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp5_ = self->priv->row; -#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp6_ = _tmp5_->search_id; -#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_db_table_rename (_tmp4_, &_tmp6_, new_name, &_inner_error_); -#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _database_table_unref0 (_tmp4_); -#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5740 "SearchBoolean.c" - gboolean _tmp7_ = FALSE; -#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 5744 "SearchBoolean.c" - goto __catch87_database_error; - } -#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_clear_error (&_inner_error_); -#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return _tmp7_; -#line 5753 "SearchBoolean.c" - } - } - goto __finally87; - __catch87_database_error: - { - GError* err = NULL; - GError* _tmp8_; -#line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - err = _inner_error_; -#line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _inner_error_ = NULL; -#line 867 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp8_ = err; -#line 867 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - app_window_database_error (_tmp8_); -#line 868 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = FALSE; -#line 868 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_error_free0 (err); -#line 868 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 5775 "SearchBoolean.c" - } - __finally87: -#line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 5780 "SearchBoolean.c" - gboolean _tmp9_ = FALSE; -#line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_clear_error (&_inner_error_); -#line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return _tmp9_; -#line 5788 "SearchBoolean.c" - } -#line 871 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp10_ = saved_search_table_get_instance (); -#line 871 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp11_ = _tmp10_; -#line 871 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_table_remove_from_map (_tmp11_, self); -#line 871 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _saved_search_table_unref0 (_tmp11_); -#line 872 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp12_ = self->priv->row; -#line 872 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp13_ = g_strdup (new_name); -#line 872 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp12_->name); -#line 872 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp12_->name = _tmp13_; -#line 873 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp14_ = saved_search_table_get_instance (); -#line 873 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp15_ = _tmp14_; -#line 873 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_table_add_to_map (_tmp15_, self); -#line 873 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _saved_search_table_unref0 (_tmp15_); -#line 875 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp16_ = library_window_get_app (); -#line 875 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp17_ = _tmp16_; -#line 875 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - library_window_switch_to_saved_search (_tmp17_, self); -#line 875 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (_tmp17_); -#line 876 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = TRUE; -#line 876 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 5826 "SearchBoolean.c" -} - - -GeeList* -saved_search_get_conditions (SavedSearch* self) -{ - GeeList* result = NULL; - SavedSearchRow* _tmp0_; - GeeList* _tmp1_; - GeeList* _tmp2_; - GeeList* _tmp3_; -#line 879 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SAVED_SEARCH (self), NULL); -#line 880 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->row; -#line 880 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = _tmp0_->conditions; -#line 880 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = gee_list_get_read_only_view (_tmp1_); -#line 880 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = _tmp2_; -#line 880 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp3_; -#line 880 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 5852 "SearchBoolean.c" -} - - -SearchOperator -saved_search_get_operator (SavedSearch* self) -{ - SearchOperator result = 0; - SavedSearchRow* _tmp0_; - SearchOperator _tmp1_; -#line 883 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SAVED_SEARCH (self), 0); -#line 884 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->row; -#line 884 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = _tmp0_->operator; -#line 884 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp1_; -#line 884 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 5872 "SearchBoolean.c" -} - - -static void -saved_search_class_init (SavedSearchClass * klass) -{ -#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_parent_class = g_type_class_peek_parent (klass); -#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_type_class_add_private (klass, sizeof (SavedSearchPrivate)); -#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) saved_search_real_get_name; -#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) saved_search_real_to_string; -#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) saved_search_real_get_typename; -#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) saved_search_real_get_instance_id; -#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - G_OBJECT_CLASS (klass)->finalize = saved_search_finalize; -#line 5893 "SearchBoolean.c" -} - - -static void -saved_search_instance_init (SavedSearch * self) -{ -#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv = SAVED_SEARCH_GET_PRIVATE (self); -#line 5902 "SearchBoolean.c" -} - - -static void -saved_search_finalize (GObject * obj) -{ - SavedSearch * self; -#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SAVED_SEARCH, SavedSearch); -#line 792 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _saved_search_row_unref0 (self->priv->row); -#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - G_OBJECT_CLASS (saved_search_parent_class)->finalize (obj); -#line 5916 "SearchBoolean.c" -} - - -GType -saved_search_get_type (void) -{ - static volatile gsize saved_search_type_id__volatile = 0; - if (g_once_init_enter (&saved_search_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SavedSearchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearch), 0, (GInstanceInitFunc) saved_search_instance_init, NULL }; - GType saved_search_type_id; - saved_search_type_id = g_type_register_static (TYPE_DATA_SOURCE, "SavedSearch", &g_define_type_info, 0); - g_once_init_leave (&saved_search_type_id__volatile, saved_search_type_id); - } - return saved_search_type_id__volatile; -} - - -static SavedSearchTable* -saved_search_table_construct (GType object_type) -{ - SavedSearchTable* self = NULL; - GError * _inner_error_ = NULL; -#line 897 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = (SavedSearchTable*) g_type_create_instance (object_type); -#line 5941 "SearchBoolean.c" - { - GeeList* _tmp0_ = NULL; - SavedSearchDBTable* _tmp1_; - SavedSearchDBTable* _tmp2_; - GeeList* _tmp3_; - GeeList* _tmp4_; -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = saved_search_db_table_get_instance (); -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = _tmp1_; -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = saved_search_db_table_get_all_rows (_tmp2_, &_inner_error_); -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp4_ = _tmp3_; -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _database_table_unref0 (_tmp2_); -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = _tmp4_; -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 5964 "SearchBoolean.c" - goto __catch88_database_error; - } -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_clear_error (&_inner_error_); -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return NULL; -#line 5973 "SearchBoolean.c" - } - { - GeeList* _row_list = NULL; - GeeList* _tmp5_; - gint _row_size = 0; - GeeList* _tmp6_; - gint _tmp7_; - gint _tmp8_; - gint _row_index = 0; -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp5_ = _g_object_ref0 (_tmp0_); -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _row_list = _tmp5_; -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp6_ = _row_list; -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp7_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp8_ = _tmp7_; -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _row_size = _tmp8_; -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _row_index = -1; -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - while (TRUE) { -#line 5999 "SearchBoolean.c" - gint _tmp9_; - gint _tmp10_; - gint _tmp11_; - SavedSearchRow* row = NULL; - GeeList* _tmp12_; - gint _tmp13_; - gpointer _tmp14_; - SavedSearchRow* _tmp15_; - SavedSearch* _tmp16_; - SavedSearch* _tmp17_; -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp9_ = _row_index; -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _row_index = _tmp9_ + 1; -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp10_ = _row_index; -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp11_ = _row_size; -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (!(_tmp10_ < _tmp11_)) { -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - break; -#line 6022 "SearchBoolean.c" - } -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp12_ = _row_list; -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp13_ = _row_index; -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp14_ = gee_list_get (_tmp12_, _tmp13_); -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - row = (SavedSearchRow*) _tmp14_; -#line 901 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp15_ = row; -#line 901 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp16_ = saved_search_new (_tmp15_, DATA_OBJECT_INVALID_OBJECT_ID); -#line 901 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp17_ = _tmp16_; -#line 901 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_table_add_to_map (self, _tmp17_); -#line 901 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (_tmp17_); -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _saved_search_row_unref0 (row); -#line 6044 "SearchBoolean.c" - } -#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (_row_list); -#line 6048 "SearchBoolean.c" - } -#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (_tmp0_); -#line 6052 "SearchBoolean.c" - } - goto __finally88; - __catch88_database_error: - { - GError* err = NULL; - GError* _tmp18_; -#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - err = _inner_error_; -#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _inner_error_ = NULL; -#line 903 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp18_ = err; -#line 903 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - app_window_database_error (_tmp18_); -#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_error_free0 (err); -#line 6069 "SearchBoolean.c" - } - __finally88: -#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_clear_error (&_inner_error_); -#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return NULL; -#line 6080 "SearchBoolean.c" - } -#line 897 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return self; -#line 6084 "SearchBoolean.c" -} - - -static SavedSearchTable* -saved_search_table_new (void) -{ -#line 897 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return saved_search_table_construct (TYPE_SAVED_SEARCH_TABLE); -#line 6093 "SearchBoolean.c" -} - - -static gpointer -_saved_search_table_ref0 (gpointer self) -{ -#line 912 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return self ? saved_search_table_ref (self) : NULL; -#line 6102 "SearchBoolean.c" -} - - -SavedSearchTable* -saved_search_table_get_instance (void) -{ - SavedSearchTable* result = NULL; - SavedSearchTable* _tmp0_; - SavedSearchTable* _tmp2_; - SavedSearchTable* _tmp3_; -#line 909 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = saved_search_table_instance; -#line 909 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_tmp0_ == NULL) { -#line 6117 "SearchBoolean.c" - SavedSearchTable* _tmp1_; -#line 910 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = saved_search_table_new (); -#line 910 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _saved_search_table_unref0 (saved_search_table_instance); -#line 910 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_table_instance = _tmp1_; -#line 6125 "SearchBoolean.c" - } -#line 912 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = saved_search_table_instance; -#line 912 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = _saved_search_table_ref0 (_tmp2_); -#line 912 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp3_; -#line 912 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 6135 "SearchBoolean.c" -} - - -GeeCollection* -saved_search_table_get_all (SavedSearchTable* self) -{ - GeeCollection* result = NULL; - GeeHashMap* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; -#line 915 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), NULL); -#line 916 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->search_map; -#line 916 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 916 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = _tmp1_; -#line 916 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp2_; -#line 916 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 6158 "SearchBoolean.c" -} - - -SavedSearch* -saved_search_table_create (SavedSearchTable* self, - const gchar* name, - SearchOperator operator, - GeeArrayList* conditions) -{ - SavedSearch* result = NULL; - SavedSearch* search = NULL; - SavedSearch* _tmp7_; - LibraryWindow* _tmp8_; - LibraryWindow* _tmp9_; - SavedSearch* _tmp10_; - GError * _inner_error_ = NULL; -#line 921 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), NULL); -#line 921 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 921 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (GEE_IS_ARRAY_LIST (conditions), NULL); -#line 923 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search = NULL; -#line 6183 "SearchBoolean.c" - { - SavedSearchRow* _tmp0_ = NULL; - SavedSearchDBTable* _tmp1_; - SavedSearchDBTable* _tmp2_; - SavedSearchRow* _tmp3_; - SavedSearchRow* _tmp4_; - SavedSearch* _tmp5_; -#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = saved_search_db_table_get_instance (); -#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = _tmp1_; -#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = saved_search_db_table_add (_tmp2_, name, operator, conditions, &_inner_error_); -#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp4_ = _tmp3_; -#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _database_table_unref0 (_tmp2_); -#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = _tmp4_; -#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 6207 "SearchBoolean.c" - goto __catch89_database_error; - } -#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (search); -#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_clear_error (&_inner_error_); -#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return NULL; -#line 6218 "SearchBoolean.c" - } -#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp5_ = saved_search_new (_tmp0_, DATA_OBJECT_INVALID_OBJECT_ID); -#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (search); -#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - search = _tmp5_; -#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _saved_search_row_unref0 (_tmp0_); -#line 6228 "SearchBoolean.c" - } - goto __finally89; - __catch89_database_error: - { - GError* err = NULL; - GError* _tmp6_; -#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - err = _inner_error_; -#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _inner_error_ = NULL; -#line 928 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp6_ = err; -#line 928 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - app_window_database_error (_tmp6_); -#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_error_free0 (err); -#line 6245 "SearchBoolean.c" - } - __finally89: -#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (search); -#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_clear_error (&_inner_error_); -#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return NULL; -#line 6258 "SearchBoolean.c" - } -#line 932 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp7_ = search; -#line 932 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_table_add_to_map (self, _tmp7_); -#line 933 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp8_ = library_window_get_app (); -#line 933 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp9_ = _tmp8_; -#line 933 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp10_ = search; -#line 933 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - library_window_switch_to_saved_search (_tmp9_, _tmp10_); -#line 933 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (_tmp9_); -#line 934 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = search; -#line 934 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 6278 "SearchBoolean.c" -} - - -void -saved_search_table_remove (SavedSearchTable* self, - SavedSearch* search) -{ - GError * _inner_error_ = NULL; -#line 938 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SAVED_SEARCH_TABLE (self)); -#line 938 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SAVED_SEARCH (search)); -#line 6291 "SearchBoolean.c" - { - SavedSearchDBTable* _tmp0_; - SavedSearchDBTable* _tmp1_; - SavedSearchID _tmp2_ = {0}; -#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = saved_search_db_table_get_instance (); -#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = _tmp0_; -#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_get_saved_search_id (search, &_tmp2_); -#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_db_table_remove (_tmp1_, &_tmp2_, &_inner_error_); -#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _database_table_unref0 (_tmp1_); -#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (_inner_error_->domain == DATABASE_ERROR) { -#line 6310 "SearchBoolean.c" - goto __catch90_database_error; - } -#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_clear_error (&_inner_error_); -#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return; -#line 6319 "SearchBoolean.c" - } - } - goto __finally90; - __catch90_database_error: - { - GError* err = NULL; - GError* _tmp3_; -#line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - err = _inner_error_; -#line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _inner_error_ = NULL; -#line 942 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = err; -#line 942 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - app_window_database_error (_tmp3_); -#line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_error_free0 (err); -#line 6337 "SearchBoolean.c" - } - __finally90: -#line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_clear_error (&_inner_error_); -#line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return; -#line 6348 "SearchBoolean.c" - } -#line 945 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_table_remove_from_map (self, search); -#line 6352 "SearchBoolean.c" -} - - -void -saved_search_table_add_to_map (SavedSearchTable* self, - SavedSearch* search) -{ - GeeHashMap* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 948 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SAVED_SEARCH_TABLE (self)); -#line 948 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SAVED_SEARCH (search)); -#line 949 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->search_map; -#line 949 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject)); -#line 949 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = _tmp1_; -#line 949 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp2_, search); -#line 949 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp2_); -#line 950 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_signal_emit (self, saved_search_table_signals[SAVED_SEARCH_TABLE_SEARCH_ADDED_SIGNAL], 0, search); -#line 6379 "SearchBoolean.c" -} - - -void -saved_search_table_remove_from_map (SavedSearchTable* self, - SavedSearch* search) -{ - GeeHashMap* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 953 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SAVED_SEARCH_TABLE (self)); -#line 953 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (IS_SAVED_SEARCH (search)); -#line 954 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->search_map; -#line 954 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (search, TYPE_DATA_OBJECT, DataObject)); -#line 954 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = _tmp1_; -#line 954 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp2_, NULL); -#line 954 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (_tmp2_); -#line 955 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_signal_emit (self, saved_search_table_signals[SAVED_SEARCH_TABLE_SEARCH_REMOVED_SIGNAL], 0, search); -#line 6406 "SearchBoolean.c" -} - - -GeeIterable* -saved_search_table_get_saved_searches (SavedSearchTable* self) -{ - GeeIterable* result = NULL; - GeeHashMap* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; -#line 958 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), NULL); -#line 959 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->search_map; -#line 959 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = gee_abstract_map_get_values (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 959 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = _tmp1_; -#line 959 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable); -#line 959 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 6429 "SearchBoolean.c" -} - - -gint -saved_search_table_get_count (SavedSearchTable* self) -{ - gint result = 0; - GeeHashMap* _tmp0_; - gint _tmp1_; - gint _tmp2_; -#line 962 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), 0); -#line 963 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->search_map; -#line 963 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = gee_abstract_map_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 963 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = _tmp1_; -#line 963 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp2_; -#line 963 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 6452 "SearchBoolean.c" -} - - -gboolean -saved_search_table_exists (SavedSearchTable* self, - const gchar* search_name) -{ - gboolean result = FALSE; - GeeHashMap* _tmp0_; -#line 966 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), FALSE); -#line 966 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (search_name != NULL, FALSE); -#line 967 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = self->priv->search_map; -#line 967 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), search_name); -#line 967 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 6472 "SearchBoolean.c" -} - - -gchar* -saved_search_table_generate_unique_name (SavedSearchTable* self) -{ - gchar* result = NULL; - gchar* _tmp6_; -#line 971 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), NULL); -#line 6483 "SearchBoolean.c" - { - gint ctr = 0; -#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ctr = 1; -#line 6488 "SearchBoolean.c" - { - gboolean _tmp0_ = FALSE; -#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = TRUE; -#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - while (TRUE) { -#line 6495 "SearchBoolean.c" - gint _tmp2_; - gchar* name = NULL; - gint _tmp3_; - gchar* _tmp4_; - const gchar* _tmp5_; -#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (!_tmp0_) { -#line 6503 "SearchBoolean.c" - gint _tmp1_; -#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp1_ = ctr; -#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ctr = _tmp1_ + 1; -#line 6509 "SearchBoolean.c" - } -#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = FALSE; -#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp2_ = ctr; -#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (!(_tmp2_ < G_MAXINT)) { -#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - break; -#line 6519 "SearchBoolean.c" - } -#line 973 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp3_ = ctr; -#line 973 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp4_ = g_strdup_printf ("%s %d", RESOURCES_DEFAULT_SAVED_SEARCH_NAME, _tmp3_); -#line 973 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - name = _tmp4_; -#line 975 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp5_ = name; -#line 975 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (!saved_search_table_exists (self, _tmp5_)) { -#line 976 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = name; -#line 976 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 6535 "SearchBoolean.c" - } -#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_free0 (name); -#line 6539 "SearchBoolean.c" - } - } - } -#line 978 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp6_ = g_strdup (""); -#line 978 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - result = _tmp6_; -#line 978 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return result; -#line 6549 "SearchBoolean.c" -} - - -static void -value_saved_search_table_init (GValue* value) -{ -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - value->data[0].v_pointer = NULL; -#line 6558 "SearchBoolean.c" -} - - -static void -value_saved_search_table_free_value (GValue* value) -{ -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (value->data[0].v_pointer) { -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_table_unref (value->data[0].v_pointer); -#line 6569 "SearchBoolean.c" - } -} - - -static void -value_saved_search_table_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (src_value->data[0].v_pointer) { -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - dest_value->data[0].v_pointer = saved_search_table_ref (src_value->data[0].v_pointer); -#line 6582 "SearchBoolean.c" - } else { -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - dest_value->data[0].v_pointer = NULL; -#line 6586 "SearchBoolean.c" - } -} - - -static gpointer -value_saved_search_table_peek_pointer (const GValue* value) -{ -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return value->data[0].v_pointer; -#line 6596 "SearchBoolean.c" -} - - -static gchar* -value_saved_search_table_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (collect_values[0].v_pointer) { -#line 6608 "SearchBoolean.c" - SavedSearchTable * object; - object = collect_values[0].v_pointer; -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (object->parent_instance.g_class == NULL) { -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6615 "SearchBoolean.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 6619 "SearchBoolean.c" - } -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - value->data[0].v_pointer = saved_search_table_ref (object); -#line 6623 "SearchBoolean.c" - } else { -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - value->data[0].v_pointer = NULL; -#line 6627 "SearchBoolean.c" - } -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return NULL; -#line 6631 "SearchBoolean.c" -} - - -static gchar* -value_saved_search_table_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - SavedSearchTable ** object_p; - object_p = collect_values[0].v_pointer; -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (!object_p) { -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 6647 "SearchBoolean.c" - } -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (!value->data[0].v_pointer) { -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - *object_p = NULL; -#line 6653 "SearchBoolean.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - *object_p = value->data[0].v_pointer; -#line 6657 "SearchBoolean.c" - } else { -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - *object_p = saved_search_table_ref (value->data[0].v_pointer); -#line 6661 "SearchBoolean.c" - } -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return NULL; -#line 6665 "SearchBoolean.c" -} - - -GParamSpec* -param_spec_saved_search_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecSavedSearchTable* spec; -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_SAVED_SEARCH_TABLE), NULL); -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return G_PARAM_SPEC (spec); -#line 6685 "SearchBoolean.c" -} - - -gpointer -value_get_saved_search_table (const GValue* value) -{ -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SAVED_SEARCH_TABLE), NULL); -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return value->data[0].v_pointer; -#line 6696 "SearchBoolean.c" -} - - -void -value_set_saved_search_table (GValue* value, - gpointer v_object) -{ - SavedSearchTable * old; -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SAVED_SEARCH_TABLE)); -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - old = value->data[0].v_pointer; -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (v_object) { -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SAVED_SEARCH_TABLE)); -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - value->data[0].v_pointer = v_object; -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_table_ref (value->data[0].v_pointer); -#line 6719 "SearchBoolean.c" - } else { -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - value->data[0].v_pointer = NULL; -#line 6723 "SearchBoolean.c" - } -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (old) { -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_table_unref (old); -#line 6729 "SearchBoolean.c" - } -} - - -void -value_take_saved_search_table (GValue* value, - gpointer v_object) -{ - SavedSearchTable * old; -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SAVED_SEARCH_TABLE)); -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - old = value->data[0].v_pointer; -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (v_object) { -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SAVED_SEARCH_TABLE)); -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - value->data[0].v_pointer = v_object; -#line 6751 "SearchBoolean.c" - } else { -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - value->data[0].v_pointer = NULL; -#line 6755 "SearchBoolean.c" - } -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (old) { -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_table_unref (old); -#line 6761 "SearchBoolean.c" - } -} - - -static void -saved_search_table_class_init (SavedSearchTableClass * klass) -{ -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_table_parent_class = g_type_class_peek_parent (klass); -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - ((SavedSearchTableClass *) klass)->finalize = saved_search_table_finalize; -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_type_class_add_private (klass, sizeof (SavedSearchTablePrivate)); -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_table_signals[SAVED_SEARCH_TABLE_SEARCH_ADDED_SIGNAL] = g_signal_new ("search-added", TYPE_SAVED_SEARCH_TABLE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_SAVED_SEARCH); -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - saved_search_table_signals[SAVED_SEARCH_TABLE_SEARCH_REMOVED_SIGNAL] = g_signal_new ("search-removed", TYPE_SAVED_SEARCH_TABLE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_SAVED_SEARCH); -#line 6779 "SearchBoolean.c" -} - - -static void -saved_search_table_instance_init (SavedSearchTable * self) -{ - GeeHashMap* _tmp0_; -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv = SAVED_SEARCH_TABLE_GET_PRIVATE (self); -#line 892 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, TYPE_SAVED_SEARCH, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 892 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->priv->search_map = _tmp0_; -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self->ref_count = 1; -#line 6795 "SearchBoolean.c" -} - - -static void -saved_search_table_finalize (SavedSearchTable * obj) -{ - SavedSearchTable * self; -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SAVED_SEARCH_TABLE, SavedSearchTable); -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_signal_handlers_destroy (self); -#line 892 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - _g_object_unref0 (self->priv->search_map); -#line 6809 "SearchBoolean.c" -} - - -GType -saved_search_table_get_type (void) -{ - static volatile gsize saved_search_table_type_id__volatile = 0; - if (g_once_init_enter (&saved_search_table_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_saved_search_table_init, value_saved_search_table_free_value, value_saved_search_table_copy_value, value_saved_search_table_peek_pointer, "p", value_saved_search_table_collect_value, "p", value_saved_search_table_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (SavedSearchTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) saved_search_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SavedSearchTable), 0, (GInstanceInitFunc) saved_search_table_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType saved_search_table_type_id; - saved_search_table_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SavedSearchTable", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&saved_search_table_type_id__volatile, saved_search_table_type_id); - } - return saved_search_table_type_id__volatile; -} - - -gpointer -saved_search_table_ref (gpointer instance) -{ - SavedSearchTable * self; - self = instance; -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_atomic_int_inc (&self->ref_count); -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - return instance; -#line 6838 "SearchBoolean.c" -} - - -void -saved_search_table_unref (gpointer instance) -{ - SavedSearchTable * self; - self = instance; -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - SAVED_SEARCH_TABLE_GET_CLASS (self)->finalize (self); -#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 6853 "SearchBoolean.c" - } -} - - - diff --git a/src/searches/SearchBoolean.vala b/src/searches/SearchBoolean.vala index 1c6a5f3..2be8302 100644 --- a/src/searches/SearchBoolean.vala +++ b/src/searches/SearchBoolean.vala @@ -52,6 +52,9 @@ public abstract class SearchCondition { TAG, EVENT_NAME, FILE_NAME, +#if ENABLE_FACES + FACE, +#endif MEDIA_TYPE, FLAG_STATE, MODIFIED_STATE, @@ -62,7 +65,10 @@ public abstract class SearchCondition { public static SearchType[] as_array() { return { ANY_TEXT, TITLE, TAG, COMMENT, EVENT_NAME, FILE_NAME, - MEDIA_TYPE, FLAG_STATE, MODIFIED_STATE, RATING, DATE }; +#if ENABLE_FACES + FACE, +#endif + MEDIA_TYPE, FLAG_STATE, MODIFIED_STATE, RATING, DATE }; } // Sorts an array alphabetically by display name. @@ -92,7 +98,10 @@ public abstract class SearchCondition { case SearchType.FILE_NAME: return "FILE_NAME"; - +#if ENABLE_FACES + case SearchType.FACE: + return "FACE"; +#endif case SearchType.MEDIA_TYPE: return "MEDIA_TYPE"; @@ -131,7 +140,10 @@ public abstract class SearchCondition { else if (str == "FILE_NAME") return SearchType.FILE_NAME; - +#if ENABLE_FACES + else if (str == "FACE") + return SearchType.FACE; +#endif else if (str == "MEDIA_TYPE") return SearchType.MEDIA_TYPE; @@ -170,7 +182,10 @@ public abstract class SearchCondition { case SearchType.FILE_NAME: return _("File name"); - +#if ENABLE_FACES + case SearchType.FACE: + return _("Face"); +#endif case SearchType.MEDIA_TYPE: return _("Media type"); @@ -346,6 +361,19 @@ public class SearchConditionText : SearchCondition { ret |= string_match(text, String.remove_diacritics(source.get_basename().down())); } +#if ENABLE_FACES + if (SearchType.ANY_TEXT == search_type || SearchType.FACE == search_type) { + Gee.List? face_list = Face.global.fetch_for_source(source); + if (null != face_list) { + foreach (Face face in face_list) { + ret |= string_match(text, face.get_name().down()); + } + } else { + ret |= string_match(text, null); // for IS_NOT_SET + } + } +#endif + return (context == Context.DOES_NOT_CONTAIN) ? !ret : ret; } } diff --git a/src/searches/Searches.c b/src/searches/Searches.c deleted file mode 100644 index f13dde0..0000000 --- a/src/searches/Searches.c +++ /dev/null @@ -1,56 +0,0 @@ -/* Searches.c generated by valac 0.40.4, the Vala compiler - * generated from Searches.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/* This file is the master unit file for the Searches unit. It should be edited to include - * whatever code is deemed necessary. - * - * The init() and terminate() methods are mandatory. - * - * If the unit needs to be configured prior to initialization, add the proper parameters to - * the preconfigure() method, implement it, and ensure in init() that it's been called. - */ - - -#include -#include - - - - -void searches_preconfigure (void); -void searches_init (GError** error); -void searches_sidebar_entry_init (void); -void searches_terminate (void); -void searches_sidebar_entry_terminate (void); - - -void -searches_preconfigure (void) -{ -} - - -void -searches_init (GError** error) -{ -#line 23 "/home/jens/Source/shotwell/src/searches/Searches.vala" - searches_sidebar_entry_init (); -#line 44 "Searches.c" -} - - -void -searches_terminate (void) -{ -#line 27 "/home/jens/Source/shotwell/src/searches/Searches.vala" - searches_sidebar_entry_terminate (); -#line 53 "Searches.c" -} - - - diff --git a/src/searches/SearchesBranch.c b/src/searches/SearchesBranch.c deleted file mode 100644 index ce75f2a..0000000 --- a/src/searches/SearchesBranch.c +++ /dev/null @@ -1,1609 +0,0 @@ -/* SearchesBranch.c generated by valac 0.40.4, the Vala compiler - * generated from SearchesBranch.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ()) -#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch)) -#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) -#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) - -typedef struct _SidebarBranch SidebarBranch; -typedef struct _SidebarBranchClass SidebarBranchClass; -typedef struct _SidebarBranchPrivate SidebarBranchPrivate; - -#define SEARCHES_TYPE_BRANCH (searches_branch_get_type ()) -#define SEARCHES_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCHES_TYPE_BRANCH, SearchesBranch)) -#define SEARCHES_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCHES_TYPE_BRANCH, SearchesBranchClass)) -#define SEARCHES_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCHES_TYPE_BRANCH)) -#define SEARCHES_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCHES_TYPE_BRANCH)) -#define SEARCHES_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCHES_TYPE_BRANCH, SearchesBranchClass)) - -typedef struct _SearchesBranch SearchesBranch; -typedef struct _SearchesBranchClass SearchesBranchClass; -typedef struct _SearchesBranchPrivate SearchesBranchPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_SAVED_SEARCH (saved_search_get_type ()) -#define SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH, SavedSearch)) -#define SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH, SavedSearchClass)) -#define IS_SAVED_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH)) -#define IS_SAVED_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH)) -#define SAVED_SEARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH, SavedSearchClass)) - -typedef struct _SavedSearch SavedSearch; -typedef struct _SavedSearchClass SavedSearchClass; - -#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ()) -#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) - -typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry; -typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass; - -#define SEARCHES_TYPE_SIDEBAR_ENTRY (searches_sidebar_entry_get_type ()) -#define SEARCHES_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry)) -#define SEARCHES_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntryClass)) -#define SEARCHES_IS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCHES_TYPE_SIDEBAR_ENTRY)) -#define SEARCHES_IS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCHES_TYPE_SIDEBAR_ENTRY)) -#define SEARCHES_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntryClass)) - -typedef struct _SearchesSidebarEntry SearchesSidebarEntry; -typedef struct _SearchesSidebarEntryClass SearchesSidebarEntryClass; -enum { - SEARCHES_BRANCH_0_PROPERTY, - SEARCHES_BRANCH_NUM_PROPERTIES -}; -static GParamSpec* searches_branch_properties[SEARCHES_BRANCH_NUM_PROPERTIES]; - -#define TYPE_SAVED_SEARCH_TABLE (saved_search_table_get_type ()) -#define SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTable)) -#define SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass)) -#define IS_SAVED_SEARCH_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_TABLE)) -#define IS_SAVED_SEARCH_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_TABLE)) -#define SAVED_SEARCH_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_TABLE, SavedSearchTableClass)) - -typedef struct _SavedSearchTable SavedSearchTable; -typedef struct _SavedSearchTableClass SavedSearchTableClass; -#define _saved_search_table_unref0(var) ((var == NULL) ? NULL : (var = (saved_search_table_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define SIDEBAR_TYPE_GROUPING (sidebar_grouping_get_type ()) -#define SIDEBAR_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_GROUPING, SidebarGrouping)) -#define SIDEBAR_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass)) -#define SIDEBAR_IS_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_GROUPING)) -#define SIDEBAR_IS_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_GROUPING)) -#define SIDEBAR_GROUPING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass)) - -typedef struct _SidebarGrouping SidebarGrouping; -typedef struct _SidebarGroupingClass SidebarGroupingClass; - -#define SIDEBAR_TYPE_HEADER (sidebar_header_get_type ()) -#define SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_HEADER, SidebarHeader)) -#define SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_HEADER, SidebarHeaderClass)) -#define SIDEBAR_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_HEADER)) -#define SIDEBAR_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_HEADER)) -#define SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_HEADER, SidebarHeaderClass)) - -typedef struct _SidebarHeader SidebarHeader; -typedef struct _SidebarHeaderClass SidebarHeaderClass; - -#define SEARCHES_TYPE_HEADER (searches_header_get_type ()) -#define SEARCHES_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCHES_TYPE_HEADER, SearchesHeader)) -#define SEARCHES_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCHES_TYPE_HEADER, SearchesHeaderClass)) -#define SEARCHES_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCHES_TYPE_HEADER)) -#define SEARCHES_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCHES_TYPE_HEADER)) -#define SEARCHES_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCHES_TYPE_HEADER, SearchesHeaderClass)) - -typedef struct _SearchesHeader SearchesHeader; -typedef struct _SearchesHeaderClass SearchesHeaderClass; - -#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ()) -#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry)) -#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY)) -#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface)) - -typedef struct _SidebarEntry SidebarEntry; -typedef struct _SidebarEntryIface SidebarEntryIface; - -#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ()) -#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree)) -#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass)) -#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass)) - -typedef struct _SidebarTree SidebarTree; -typedef struct _SidebarTreeClass SidebarTreeClass; - -#define SIDEBAR_BRANCH_TYPE_OPTIONS (sidebar_branch_options_get_type ()) - -#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ()) -#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry)) -#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY)) -#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface)) - -typedef struct _SidebarExpandableEntry SidebarExpandableEntry; -typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface; - -#define SIDEBAR_TYPE_RENAMEABLE_ENTRY (sidebar_renameable_entry_get_type ()) -#define SIDEBAR_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry)) -#define SIDEBAR_IS_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY)) -#define SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntryIface)) - -typedef struct _SidebarRenameableEntry SidebarRenameableEntry; -typedef struct _SidebarRenameableEntryIface SidebarRenameableEntryIface; -typedef struct _SidebarGroupingPrivate SidebarGroupingPrivate; - -#define SIDEBAR_TYPE_EMPHASIZABLE_ENTRY (sidebar_emphasizable_entry_get_type ()) -#define SIDEBAR_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntry)) -#define SIDEBAR_IS_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY)) -#define SIDEBAR_EMPHASIZABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntryIface)) - -typedef struct _SidebarEmphasizableEntry SidebarEmphasizableEntry; -typedef struct _SidebarEmphasizableEntryIface SidebarEmphasizableEntryIface; -typedef struct _SidebarHeaderPrivate SidebarHeaderPrivate; - -#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ()) -#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable)) -#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE)) -#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface)) - -typedef struct _SidebarContextable SidebarContextable; -typedef struct _SidebarContextableIface SidebarContextableIface; -typedef struct _SearchesHeaderPrivate SearchesHeaderPrivate; -enum { - SEARCHES_HEADER_0_PROPERTY, - SEARCHES_HEADER_NUM_PROPERTIES -}; -static GParamSpec* searches_header_properties[SEARCHES_HEADER_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_APPLICATION (application_get_type ()) -#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application)) -#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass)) -#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION)) -#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION)) -#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass)) - -typedef struct _Application Application; -typedef struct _ApplicationClass ApplicationClass; -#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ()) -#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry)) -#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY)) -#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface)) - -typedef struct _SidebarSelectableEntry SidebarSelectableEntry; -typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface; - -#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ()) -#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)) -#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE)) -#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface)) - -typedef struct _SidebarPageRepresentative SidebarPageRepresentative; -typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate; - -#define SIDEBAR_TYPE_DESTROYABLE_ENTRY (sidebar_destroyable_entry_get_type ()) -#define SIDEBAR_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntry)) -#define SIDEBAR_IS_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY)) -#define SIDEBAR_DESTROYABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntryIface)) - -typedef struct _SidebarDestroyableEntry SidebarDestroyableEntry; -typedef struct _SidebarDestroyableEntryIface SidebarDestroyableEntryIface; -typedef struct _SearchesSidebarEntryPrivate SearchesSidebarEntryPrivate; -enum { - SEARCHES_SIDEBAR_ENTRY_0_PROPERTY, - SEARCHES_SIDEBAR_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* searches_sidebar_entry_properties[SEARCHES_SIDEBAR_ENTRY_NUM_PROPERTIES]; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; - -#define TYPE_SAVED_SEARCH_PAGE (saved_search_page_get_type ()) -#define SAVED_SEARCH_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_PAGE, SavedSearchPage)) -#define SAVED_SEARCH_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_PAGE, SavedSearchPageClass)) -#define IS_SAVED_SEARCH_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_PAGE)) -#define IS_SAVED_SEARCH_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_PAGE)) -#define SAVED_SEARCH_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_PAGE, SavedSearchPageClass)) - -typedef struct _SavedSearchPage SavedSearchPage; -typedef struct _SavedSearchPageClass SavedSearchPageClass; - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; - -#define TYPE_SINGLE_DATA_SOURCE_COMMAND (single_data_source_command_get_type ()) -#define SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommand)) -#define SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) -#define IS_SINGLE_DATA_SOURCE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND)) -#define IS_SINGLE_DATA_SOURCE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SINGLE_DATA_SOURCE_COMMAND)) -#define SINGLE_DATA_SOURCE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SINGLE_DATA_SOURCE_COMMAND, SingleDataSourceCommandClass)) - -typedef struct _SingleDataSourceCommand SingleDataSourceCommand; -typedef struct _SingleDataSourceCommandClass SingleDataSourceCommandClass; - -#define TYPE_RENAME_SAVED_SEARCH_COMMAND (rename_saved_search_command_get_type ()) -#define RENAME_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommand)) -#define RENAME_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommandClass)) -#define IS_RENAME_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RENAME_SAVED_SEARCH_COMMAND)) -#define IS_RENAME_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RENAME_SAVED_SEARCH_COMMAND)) -#define RENAME_SAVED_SEARCH_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RENAME_SAVED_SEARCH_COMMAND, RenameSavedSearchCommandClass)) - -typedef struct _RenameSavedSearchCommand RenameSavedSearchCommand; -typedef struct _RenameSavedSearchCommandClass RenameSavedSearchCommandClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) - -#define TYPE_DELETE_SAVED_SEARCH_COMMAND (delete_saved_search_command_get_type ()) -#define DELETE_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommand)) -#define DELETE_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandClass)) -#define IS_DELETE_SAVED_SEARCH_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND)) -#define IS_DELETE_SAVED_SEARCH_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DELETE_SAVED_SEARCH_COMMAND)) -#define DELETE_SAVED_SEARCH_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DELETE_SAVED_SEARCH_COMMAND, DeleteSavedSearchCommandClass)) - -typedef struct _DeleteSavedSearchCommand DeleteSavedSearchCommand; -typedef struct _DeleteSavedSearchCommandClass DeleteSavedSearchCommandClass; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _SidebarBranch { - GObject parent_instance; - SidebarBranchPrivate * priv; -}; - -struct _SidebarBranchClass { - GObjectClass parent_class; -}; - -struct _SearchesBranch { - SidebarBranch parent_instance; - SearchesBranchPrivate * priv; -}; - -struct _SearchesBranchClass { - SidebarBranchClass parent_class; -}; - -struct _SearchesBranchPrivate { - GeeHashMap* entry_map; -}; - -struct _SidebarEntryIface { - GTypeInterface parent_iface; - gchar* (*get_sidebar_name) (SidebarEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarEntry* self); - gchar* (*get_sidebar_icon) (SidebarEntry* self); - gchar* (*to_string) (SidebarEntry* self); - void (*grafted) (SidebarEntry* self, SidebarTree* tree); - void (*pruned) (SidebarEntry* self, SidebarTree* tree); -}; - -typedef enum { - SIDEBAR_BRANCH_OPTIONS_NONE = 0, - SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY = 1 << 0, - SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD = 1 << 1, - SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD = 1 << 2, - SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING = 1 << 3 -} SidebarBranchOptions; - -struct _SidebarExpandableEntryIface { - GTypeInterface parent_iface; - gboolean (*expand_on_select) (SidebarExpandableEntry* self); -}; - -struct _SidebarRenameableEntryIface { - GTypeInterface parent_iface; - void (*rename) (SidebarRenameableEntry* self, const gchar* new_name); - gboolean (*is_user_renameable) (SidebarRenameableEntry* self); -}; - -struct _SidebarGrouping { - GObject parent_instance; - SidebarGroupingPrivate * priv; -}; - -struct _SidebarGroupingClass { - GObjectClass parent_class; -}; - -struct _SidebarEmphasizableEntryIface { - GTypeInterface parent_iface; - gboolean (*is_emphasized) (SidebarEmphasizableEntry* self); -}; - -struct _SidebarHeader { - SidebarGrouping parent_instance; - SidebarHeaderPrivate * priv; -}; - -struct _SidebarHeaderClass { - SidebarGroupingClass parent_class; -}; - -struct _SidebarContextableIface { - GTypeInterface parent_iface; - GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event); -}; - -struct _SearchesHeader { - SidebarHeader parent_instance; - SearchesHeaderPrivate * priv; -}; - -struct _SearchesHeaderClass { - SidebarHeaderClass parent_class; -}; - -struct _SearchesHeaderPrivate { - GtkBuilder* builder; - GtkMenu* context_menu; -}; - -struct _SidebarSelectableEntryIface { - GTypeInterface parent_iface; -}; - -struct _SidebarPageRepresentativeIface { - GTypeInterface parent_iface; - gboolean (*has_page) (SidebarPageRepresentative* self); - Page* (*get_page) (SidebarPageRepresentative* self); -}; - -struct _SidebarSimplePageEntry { - GObject parent_instance; - SidebarSimplePageEntryPrivate * priv; -}; - -struct _SidebarSimplePageEntryClass { - GObjectClass parent_class; - gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self); - gchar* (*to_string) (SidebarSimplePageEntry* self); - Page* (*create_page) (SidebarSimplePageEntry* self); -}; - -struct _SidebarDestroyableEntryIface { - GTypeInterface parent_iface; - void (*destroy_source) (SidebarDestroyableEntry* self); -}; - -struct _SearchesSidebarEntry { - SidebarSimplePageEntry parent_instance; - SearchesSidebarEntryPrivate * priv; -}; - -struct _SearchesSidebarEntryClass { - SidebarSimplePageEntryClass parent_class; -}; - -struct _SearchesSidebarEntryPrivate { - SavedSearch* search; -}; - - -static gpointer searches_branch_parent_class = NULL; -static gpointer searches_header_parent_class = NULL; -static SidebarContextableIface * searches_header_sidebar_contextable_parent_iface = NULL; -static gpointer searches_sidebar_entry_parent_class = NULL; -static gchar* searches_sidebar_entry_single_search_icon; -static gchar* searches_sidebar_entry_single_search_icon = NULL; -static SidebarRenameableEntryIface * searches_sidebar_entry_sidebar_renameable_entry_parent_iface = NULL; -static SidebarDestroyableEntryIface * searches_sidebar_entry_sidebar_destroyable_entry_parent_iface = NULL; - -GType sidebar_branch_get_type (void) G_GNUC_CONST; -GType searches_branch_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType saved_search_get_type (void) G_GNUC_CONST; -GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST; -GType searches_sidebar_entry_get_type (void) G_GNUC_CONST; -#define SEARCHES_BRANCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SEARCHES_TYPE_BRANCH, SearchesBranchPrivate)) -gpointer saved_search_table_ref (gpointer instance); -void saved_search_table_unref (gpointer instance); -GParamSpec* param_spec_saved_search_table (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_saved_search_table (GValue* value, - gpointer v_object); -void value_take_saved_search_table (GValue* value, - gpointer v_object); -gpointer value_get_saved_search_table (const GValue* value); -GType saved_search_table_get_type (void) G_GNUC_CONST; -SavedSearchTable* saved_search_table_get_instance (void); -static void searches_branch_on_saved_search_added (SearchesBranch* self, - SavedSearch* search); -static void _searches_branch_on_saved_search_added_saved_search_table_search_added (SavedSearchTable* _sender, - SavedSearch* search, - gpointer self); -static void searches_branch_on_saved_search_removed (SearchesBranch* self, - SavedSearch* search); -static void _searches_branch_on_saved_search_removed_saved_search_table_search_removed (SavedSearchTable* _sender, - SavedSearch* search, - gpointer self); -SearchesBranch* searches_branch_new (void); -SearchesBranch* searches_branch_construct (GType object_type); -SearchesHeader* searches_header_new (void); -SearchesHeader* searches_header_construct (GType object_type); -GType sidebar_grouping_get_type (void) G_GNUC_CONST; -GType sidebar_header_get_type (void) G_GNUC_CONST; -GType searches_header_get_type (void) G_GNUC_CONST; -GType sidebar_tree_get_type (void) G_GNUC_CONST; -GType sidebar_entry_get_type (void) G_GNUC_CONST; -GType sidebar_branch_options_get_type (void) G_GNUC_CONST; -static gint searches_branch_comparator (SidebarEntry* a, - SidebarEntry* b); -static gint _searches_branch_comparator_gcompare_func (gconstpointer a, - gconstpointer b); -SidebarBranch* sidebar_branch_new (SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator); -SidebarBranch* sidebar_branch_construct (GType object_type, - SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator); -GeeCollection* saved_search_table_get_all (SavedSearchTable* self); -SearchesSidebarEntry* searches_branch_get_entry_for_saved_search (SearchesBranch* self, - SavedSearch* search); -gint saved_search_compare_names (void* a, - void* b); -SavedSearch* searches_sidebar_entry_for_saved_search (SearchesSidebarEntry* self); -SearchesSidebarEntry* searches_sidebar_entry_new (SavedSearch* search); -SearchesSidebarEntry* searches_sidebar_entry_construct (GType object_type, - SavedSearch* search); -void sidebar_branch_graft (SidebarBranch* self, - SidebarEntry* parent, - SidebarEntry* entry, - GCompareFunc comparator); -SidebarEntry* sidebar_branch_get_root (SidebarBranch* self); -void sidebar_branch_prune (SidebarBranch* self, - SidebarEntry* entry); -static void searches_branch_finalize (GObject * obj); -GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST; -GType sidebar_renameable_entry_get_type (void) G_GNUC_CONST; -GType sidebar_emphasizable_entry_get_type (void) G_GNUC_CONST; -GType sidebar_contextable_get_type (void) G_GNUC_CONST; -#define SEARCHES_HEADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SEARCHES_TYPE_HEADER, SearchesHeaderPrivate)) -SidebarHeader* sidebar_header_new (const gchar* name, - const gchar* tooltip, - gboolean emphasized); -SidebarHeader* sidebar_header_construct (GType object_type, - const gchar* name, - const gchar* tooltip, - gboolean emphasized); -static void searches_header_setup_context_menu (SearchesHeader* self); -gchar* resources_get_ui (const gchar* filename); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -gpointer application_ref (gpointer instance); -void application_unref (gpointer instance); -GParamSpec* param_spec_application (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_application (GValue* value, - gpointer v_object); -void value_take_application (GValue* value, - gpointer v_object); -gpointer value_get_application (const GValue* value); -GType application_get_type (void) G_GNUC_CONST; -Application* application_get_instance (void); -void application_panic (Application* self); -static GtkMenu* searches_header_real_get_sidebar_context_menu (SidebarContextable* base, - GdkEventButton* event); -static void searches_header_finalize (GObject * obj); -GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType sidebar_page_representative_get_type (void) G_GNUC_CONST; -GType sidebar_destroyable_entry_get_type (void) G_GNUC_CONST; -#define SEARCHES_SIDEBAR_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntryPrivate)) -SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type); -void searches_sidebar_entry_init (void); -void searches_sidebar_entry_terminate (void); -static gchar* searches_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base); -gchar* data_object_get_name (DataObject* self); -static gchar* searches_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base); -static Page* searches_sidebar_entry_real_create_page (SidebarSimplePageEntry* base); -SavedSearchPage* saved_search_page_new (SavedSearch* search); -SavedSearchPage* saved_search_page_construct (GType object_type, - SavedSearch* search); -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType media_page_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -GType saved_search_page_get_type (void) G_GNUC_CONST; -static gboolean searches_sidebar_entry_real_is_user_renameable (SidebarRenameableEntry* base); -static void searches_sidebar_entry_real_rename (SidebarRenameableEntry* base, - const gchar* new_name); -gboolean saved_search_table_exists (SavedSearchTable* self, - const gchar* search_name); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* app_window_get_command_manager (void); -GType command_get_type (void) G_GNUC_CONST; -void command_manager_execute (CommandManager* self, - Command* command); -RenameSavedSearchCommand* rename_saved_search_command_new (SavedSearch* search, - const gchar* new_name); -RenameSavedSearchCommand* rename_saved_search_command_construct (GType object_type, - SavedSearch* search, - const gchar* new_name); -GType page_command_get_type (void) G_GNUC_CONST; -GType single_data_source_command_get_type (void) G_GNUC_CONST; -GType rename_saved_search_command_get_type (void) G_GNUC_CONST; -gchar* resources_rename_search_exists_message (const gchar* name); -static void searches_sidebar_entry_real_destroy_source (SidebarDestroyableEntry* base); -gboolean dialogs_confirm_delete_saved_search (SavedSearch* search); -DeleteSavedSearchCommand* delete_saved_search_command_new (SavedSearch* search); -DeleteSavedSearchCommand* delete_saved_search_command_construct (GType object_type, - SavedSearch* search); -GType delete_saved_search_command_get_type (void) G_GNUC_CONST; -static void searches_sidebar_entry_finalize (GObject * obj); - - -static void -_searches_branch_on_saved_search_added_saved_search_table_search_added (SavedSearchTable* _sender, - SavedSearch* search, - gpointer self) -{ -#line 28 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - searches_branch_on_saved_search_added ((SearchesBranch*) self, search); -#line 678 "SearchesBranch.c" -} - - -static void -_searches_branch_on_saved_search_removed_saved_search_table_search_removed (SavedSearchTable* _sender, - SavedSearch* search, - gpointer self) -{ -#line 29 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - searches_branch_on_saved_search_removed ((SearchesBranch*) self, search); -#line 689 "SearchesBranch.c" -} - - -static gint -_searches_branch_comparator_gcompare_func (gconstpointer a, - gconstpointer b) -{ - gint result; - result = searches_branch_comparator ((SidebarEntry*) a, (SidebarEntry*) b); -#line 12 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return result; -#line 701 "SearchesBranch.c" -} - - -SearchesBranch* -searches_branch_construct (GType object_type) -{ - SearchesBranch * self = NULL; - SearchesHeader* _tmp0_; - SearchesHeader* _tmp1_; - SavedSearchTable* _tmp12_; - SavedSearchTable* _tmp13_; - SavedSearchTable* _tmp14_; - SavedSearchTable* _tmp15_; -#line 12 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp0_ = searches_header_new (); -#line 12 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp1_ = _tmp0_; -#line 12 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self = (SearchesBranch*) sidebar_branch_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SIDEBAR_TYPE_ENTRY, SidebarEntry), (SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY | SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD) | SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD, _searches_branch_comparator_gcompare_func, NULL); -#line 12 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_object_unref0 (_tmp1_); -#line 723 "SearchesBranch.c" - { - GeeIterator* _search_it = NULL; - SavedSearchTable* _tmp2_; - SavedSearchTable* _tmp3_; - GeeCollection* _tmp4_; - GeeCollection* _tmp5_; - GeeIterator* _tmp6_; - GeeIterator* _tmp7_; -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp2_ = saved_search_table_get_instance (); -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp3_ = _tmp2_; -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp4_ = saved_search_table_get_all (_tmp3_); -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp5_ = _tmp4_; -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp7_ = _tmp6_; -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_object_unref0 (_tmp5_); -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _saved_search_table_unref0 (_tmp3_); -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _search_it = _tmp7_; -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - while (TRUE) { -#line 752 "SearchesBranch.c" - GeeIterator* _tmp8_; - SavedSearch* search = NULL; - GeeIterator* _tmp9_; - gpointer _tmp10_; - SavedSearch* _tmp11_; -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp8_ = _search_it; -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - if (!gee_iterator_next (_tmp8_)) { -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - break; -#line 764 "SearchesBranch.c" - } -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp9_ = _search_it; -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp10_ = gee_iterator_get (_tmp9_); -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - search = (SavedSearch*) _tmp10_; -#line 20 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp11_ = search; -#line 20 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - searches_branch_on_saved_search_added (self, _tmp11_); -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_object_unref0 (search); -#line 778 "SearchesBranch.c" - } -#line 19 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_object_unref0 (_search_it); -#line 782 "SearchesBranch.c" - } -#line 23 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp12_ = saved_search_table_get_instance (); -#line 23 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp13_ = _tmp12_; -#line 23 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_signal_connect_object (_tmp13_, "search-added", (GCallback) _searches_branch_on_saved_search_added_saved_search_table_search_added, self, 0); -#line 23 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _saved_search_table_unref0 (_tmp13_); -#line 24 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp14_ = saved_search_table_get_instance (); -#line 24 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp15_ = _tmp14_; -#line 24 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_signal_connect_object (_tmp15_, "search-removed", (GCallback) _searches_branch_on_saved_search_removed_saved_search_table_search_removed, self, 0); -#line 24 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _saved_search_table_unref0 (_tmp15_); -#line 11 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return self; -#line 802 "SearchesBranch.c" -} - - -SearchesBranch* -searches_branch_new (void) -{ -#line 11 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return searches_branch_construct (SEARCHES_TYPE_BRANCH); -#line 811 "SearchesBranch.c" -} - - -SearchesSidebarEntry* -searches_branch_get_entry_for_saved_search (SearchesBranch* self, - SavedSearch* search) -{ - SearchesSidebarEntry* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_return_val_if_fail (SEARCHES_IS_BRANCH (self), NULL); -#line 32 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_return_val_if_fail (IS_SAVED_SEARCH (search), NULL); -#line 33 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp0_ = self->priv->entry_map; -#line 33 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), search); -#line 33 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - result = (SearchesSidebarEntry*) _tmp1_; -#line 33 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return result; -#line 834 "SearchesBranch.c" -} - - -static gint -searches_branch_comparator (SidebarEntry* a, - SidebarEntry* b) -{ - gint result = 0; - SavedSearch* _tmp0_; - SavedSearch* _tmp1_; -#line 36 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0); -#line 36 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0); -#line 37 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - if (a == b) { -#line 38 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - result = 0; -#line 38 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return result; -#line 855 "SearchesBranch.c" - } -#line 40 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp0_ = searches_sidebar_entry_for_saved_search (G_TYPE_CHECK_INSTANCE_CAST (a, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry)); -#line 40 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp1_ = searches_sidebar_entry_for_saved_search (G_TYPE_CHECK_INSTANCE_CAST (b, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry)); -#line 40 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - result = saved_search_compare_names (_tmp0_, _tmp1_); -#line 40 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return result; -#line 865 "SearchesBranch.c" -} - - -static void -searches_branch_on_saved_search_added (SearchesBranch* self, - SavedSearch* search) -{ - SearchesSidebarEntry* entry = NULL; - SearchesSidebarEntry* _tmp0_; - GeeHashMap* _tmp1_; - SidebarEntry* _tmp2_; - SidebarEntry* _tmp3_; -#line 44 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_return_if_fail (SEARCHES_IS_BRANCH (self)); -#line 44 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_return_if_fail (IS_SAVED_SEARCH (search)); -#line 45 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_debug ("SearchesBranch.vala:45: search added"); -#line 46 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp0_ = searches_sidebar_entry_new (search); -#line 46 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - entry = _tmp0_; -#line 47 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp1_ = self->priv->entry_map; -#line 47 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), search, entry); -#line 48 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp2_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 48 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp3_ = _tmp2_; -#line 48 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp3_, G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL); -#line 48 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_object_unref0 (_tmp3_); -#line 44 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_object_unref0 (entry); -#line 902 "SearchesBranch.c" -} - - -static void -searches_branch_on_saved_search_removed (SearchesBranch* self, - SavedSearch* search) -{ - SearchesSidebarEntry* entry = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - gboolean is_removed = FALSE; - GeeHashMap* _tmp2_; - gboolean _tmp3_; -#line 51 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_return_if_fail (SEARCHES_IS_BRANCH (self)); -#line 51 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_return_if_fail (IS_SAVED_SEARCH (search)); -#line 52 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_debug ("SearchesBranch.vala:52: search removed"); -#line 53 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp0_ = self->priv->entry_map; -#line 53 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), search); -#line 53 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - entry = (SearchesSidebarEntry*) _tmp1_; -#line 54 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _vala_assert (entry != NULL, "entry != null"); -#line 56 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp2_ = self->priv->entry_map; -#line 56 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp3_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), search, NULL); -#line 56 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - is_removed = _tmp3_; -#line 57 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _vala_assert (is_removed, "is_removed"); -#line 59 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 51 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_object_unref0 (entry); -#line 942 "SearchesBranch.c" -} - - -static void -searches_branch_class_init (SearchesBranchClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - searches_branch_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_type_class_add_private (klass, sizeof (SearchesBranchPrivate)); -#line 7 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - G_OBJECT_CLASS (klass)->finalize = searches_branch_finalize; -#line 955 "SearchesBranch.c" -} - - -static void -searches_branch_instance_init (SearchesBranch * self) -{ - GeeHashMap* _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self->priv = SEARCHES_BRANCH_GET_PRIVATE (self); -#line 8 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp0_ = gee_hash_map_new (TYPE_SAVED_SEARCH, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, SEARCHES_TYPE_SIDEBAR_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 8 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self->priv->entry_map = _tmp0_; -#line 969 "SearchesBranch.c" -} - - -static void -searches_branch_finalize (GObject * obj) -{ - SearchesBranch * self; - SavedSearchTable* _tmp0_; - SavedSearchTable* _tmp1_; - guint _tmp2_; - SavedSearchTable* _tmp3_; - SavedSearchTable* _tmp4_; - guint _tmp5_; -#line 7 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCHES_TYPE_BRANCH, SearchesBranch); -#line 28 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp0_ = saved_search_table_get_instance (); -#line 28 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp1_ = _tmp0_; -#line 28 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_signal_parse_name ("search-added", TYPE_SAVED_SEARCH_TABLE, &_tmp2_, NULL, FALSE); -#line 28 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _searches_branch_on_saved_search_added_saved_search_table_search_added, self); -#line 28 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _saved_search_table_unref0 (_tmp1_); -#line 29 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp3_ = saved_search_table_get_instance (); -#line 29 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp4_ = _tmp3_; -#line 29 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_signal_parse_name ("search-removed", TYPE_SAVED_SEARCH_TABLE, &_tmp5_, NULL, FALSE); -#line 29 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _searches_branch_on_saved_search_removed_saved_search_table_search_removed, self); -#line 29 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _saved_search_table_unref0 (_tmp4_); -#line 8 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_object_unref0 (self->priv->entry_map); -#line 7 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - G_OBJECT_CLASS (searches_branch_parent_class)->finalize (obj); -#line 1009 "SearchesBranch.c" -} - - -GType -searches_branch_get_type (void) -{ - static volatile gsize searches_branch_type_id__volatile = 0; - if (g_once_init_enter (&searches_branch_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SearchesBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) searches_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchesBranch), 0, (GInstanceInitFunc) searches_branch_instance_init, NULL }; - GType searches_branch_type_id; - searches_branch_type_id = g_type_register_static (SIDEBAR_TYPE_BRANCH, "SearchesBranch", &g_define_type_info, 0); - g_once_init_leave (&searches_branch_type_id__volatile, searches_branch_type_id); - } - return searches_branch_type_id__volatile; -} - - -SearchesHeader* -searches_header_construct (GType object_type) -{ - SearchesHeader * self = NULL; -#line 68 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self = (SearchesHeader*) sidebar_header_construct (object_type, _ ("Saved Searches"), _ ("Organize your saved searches"), TRUE); -#line 69 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - searches_header_setup_context_menu (self); -#line 67 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return self; -#line 1037 "SearchesBranch.c" -} - - -SearchesHeader* -searches_header_new (void) -{ -#line 67 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return searches_header_construct (SEARCHES_TYPE_HEADER); -#line 1046 "SearchesBranch.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 76 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return self ? g_object_ref (self) : NULL; -#line 1055 "SearchesBranch.c" -} - - -static void -searches_header_setup_context_menu (SearchesHeader* self) -{ - GtkBuilder* _tmp0_; - GError * _inner_error_ = NULL; -#line 72 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_return_if_fail (SEARCHES_IS_HEADER (self)); -#line 73 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp0_ = gtk_builder_new (); -#line 73 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_object_unref0 (self->priv->builder); -#line 73 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self->priv->builder = _tmp0_; -#line 1072 "SearchesBranch.c" - { - GtkBuilder* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GMenuModel* model = NULL; - GtkBuilder* _tmp4_; - GObject* _tmp5_; - GMenuModel* _tmp6_; - GMenuModel* _tmp7_; - GtkMenu* _tmp8_; -#line 75 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp1_ = self->priv->builder; -#line 75 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp2_ = resources_get_ui ("search_sidebar_context.ui"); -#line 75 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp3_ = _tmp2_; -#line 75 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - gtk_builder_add_from_resource (_tmp1_, _tmp3_, &_inner_error_); -#line 75 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_free0 (_tmp3_); -#line 75 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1095 "SearchesBranch.c" - goto __catch85_g_error; - } -#line 76 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp4_ = self->priv->builder; -#line 76 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp5_ = gtk_builder_get_object (_tmp4_, "popup-menu"); -#line 76 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp5_) : NULL); -#line 76 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - model = _tmp6_; -#line 77 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp7_ = model; -#line 77 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp8_ = (GtkMenu*) gtk_menu_new_from_model (_tmp7_); -#line 77 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_object_ref_sink (_tmp8_); -#line 77 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_object_unref0 (self->priv->context_menu); -#line 77 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self->priv->context_menu = _tmp8_; -#line 74 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_object_unref0 (model); -#line 1118 "SearchesBranch.c" - } - goto __finally85; - __catch85_g_error: - { - GError* _error_ = NULL; - GError* _tmp9_; - const gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - Application* _tmp13_; - Application* _tmp14_; -#line 74 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _error_ = _inner_error_; -#line 74 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _inner_error_ = NULL; -#line 79 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp9_ = _error_; -#line 79 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp10_ = _tmp9_->message; -#line 79 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp11_ = g_strdup_printf ("Error loading UI resource: %s", _tmp10_); -#line 79 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp12_ = _tmp11_; -#line 79 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - app_window_error_message (_tmp12_, NULL); -#line 79 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_free0 (_tmp12_); -#line 81 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp13_ = application_get_instance (); -#line 81 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp14_ = _tmp13_; -#line 81 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - application_panic (_tmp14_); -#line 81 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _application_unref0 (_tmp14_); -#line 74 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_error_free0 (_error_); -#line 1156 "SearchesBranch.c" - } - __finally85: -#line 74 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 74 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 74 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_clear_error (&_inner_error_); -#line 74 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return; -#line 1167 "SearchesBranch.c" - } -} - - -static GtkMenu* -searches_header_real_get_sidebar_context_menu (SidebarContextable* base, - GdkEventButton* event) -{ - SearchesHeader * self; - GtkMenu* result = NULL; - GtkMenu* _tmp0_; - GtkMenu* _tmp1_; -#line 85 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SEARCHES_TYPE_HEADER, SearchesHeader); -#line 86 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp0_ = self->priv->context_menu; -#line 86 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 86 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - result = _tmp1_; -#line 86 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return result; -#line 1190 "SearchesBranch.c" -} - - -static void -searches_header_class_init (SearchesHeaderClass * klass) -{ -#line 63 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - searches_header_parent_class = g_type_class_peek_parent (klass); -#line 63 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_type_class_add_private (klass, sizeof (SearchesHeaderPrivate)); -#line 63 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - G_OBJECT_CLASS (klass)->finalize = searches_header_finalize; -#line 1203 "SearchesBranch.c" -} - - -static void -searches_header_sidebar_contextable_interface_init (SidebarContextableIface * iface) -{ -#line 63 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - searches_header_sidebar_contextable_parent_iface = g_type_interface_peek_parent (iface); -#line 63 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - iface->get_sidebar_context_menu = (GtkMenu* (*) (SidebarContextable *, GdkEventButton*)) searches_header_real_get_sidebar_context_menu; -#line 1214 "SearchesBranch.c" -} - - -static void -searches_header_instance_init (SearchesHeader * self) -{ -#line 63 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self->priv = SEARCHES_HEADER_GET_PRIVATE (self); -#line 65 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self->priv->context_menu = NULL; -#line 1225 "SearchesBranch.c" -} - - -static void -searches_header_finalize (GObject * obj) -{ - SearchesHeader * self; -#line 63 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCHES_TYPE_HEADER, SearchesHeader); -#line 64 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_object_unref0 (self->priv->builder); -#line 65 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_object_unref0 (self->priv->context_menu); -#line 63 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - G_OBJECT_CLASS (searches_header_parent_class)->finalize (obj); -#line 1241 "SearchesBranch.c" -} - - -GType -searches_header_get_type (void) -{ - static volatile gsize searches_header_type_id__volatile = 0; - if (g_once_init_enter (&searches_header_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SearchesHeaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) searches_header_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchesHeader), 0, (GInstanceInitFunc) searches_header_instance_init, NULL }; - static const GInterfaceInfo sidebar_contextable_info = { (GInterfaceInitFunc) searches_header_sidebar_contextable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType searches_header_type_id; - searches_header_type_id = g_type_register_static (SIDEBAR_TYPE_HEADER, "SearchesHeader", &g_define_type_info, 0); - g_type_add_interface_static (searches_header_type_id, SIDEBAR_TYPE_CONTEXTABLE, &sidebar_contextable_info); - g_once_init_leave (&searches_header_type_id__volatile, searches_header_type_id); - } - return searches_header_type_id__volatile; -} - - -SearchesSidebarEntry* -searches_sidebar_entry_construct (GType object_type, - SavedSearch* search) -{ - SearchesSidebarEntry * self = NULL; - SavedSearch* _tmp0_; -#line 96 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_return_val_if_fail (IS_SAVED_SEARCH (search), NULL); -#line 96 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self = (SearchesSidebarEntry*) sidebar_simple_page_entry_construct (object_type); -#line 97 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp0_ = _g_object_ref0 (search); -#line 97 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_object_unref0 (self->priv->search); -#line 97 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self->priv->search = _tmp0_; -#line 96 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return self; -#line 1279 "SearchesBranch.c" -} - - -SearchesSidebarEntry* -searches_sidebar_entry_new (SavedSearch* search) -{ -#line 96 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return searches_sidebar_entry_construct (SEARCHES_TYPE_SIDEBAR_ENTRY, search); -#line 1288 "SearchesBranch.c" -} - - -void -searches_sidebar_entry_init (void) -{ -} - - -void -searches_sidebar_entry_terminate (void) -{ -} - - -SavedSearch* -searches_sidebar_entry_for_saved_search (SearchesSidebarEntry* self) -{ - SavedSearch* result = NULL; - SavedSearch* _tmp0_; - SavedSearch* _tmp1_; -#line 106 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_return_val_if_fail (SEARCHES_IS_SIDEBAR_ENTRY (self), NULL); -#line 107 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp0_ = self->priv->search; -#line 107 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 107 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - result = _tmp1_; -#line 107 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return result; -#line 1320 "SearchesBranch.c" -} - - -static gchar* -searches_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) -{ - SearchesSidebarEntry * self; - gchar* result = NULL; - SavedSearch* _tmp0_; - gchar* _tmp1_; -#line 110 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry); -#line 111 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp0_ = self->priv->search; -#line 111 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp1_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject)); -#line 111 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - result = _tmp1_; -#line 111 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return result; -#line 1341 "SearchesBranch.c" -} - - -static gchar* -searches_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) -{ - SearchesSidebarEntry * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 114 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry); -#line 115 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp0_ = searches_sidebar_entry_single_search_icon; -#line 115 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 115 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - result = _tmp1_; -#line 115 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return result; -#line 1362 "SearchesBranch.c" -} - - -static Page* -searches_sidebar_entry_real_create_page (SidebarSimplePageEntry* base) -{ - SearchesSidebarEntry * self; - Page* result = NULL; - SavedSearch* _tmp0_; - SavedSearchPage* _tmp1_; -#line 118 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry); -#line 119 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp0_ = self->priv->search; -#line 119 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp1_ = saved_search_page_new (_tmp0_); -#line 119 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_object_ref_sink (_tmp1_); -#line 119 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page); -#line 119 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return result; -#line 1385 "SearchesBranch.c" -} - - -static gboolean -searches_sidebar_entry_real_is_user_renameable (SidebarRenameableEntry* base) -{ - SearchesSidebarEntry * self; - gboolean result = FALSE; -#line 122 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry); -#line 123 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - result = TRUE; -#line 123 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - return result; -#line 1400 "SearchesBranch.c" -} - - -static void -searches_sidebar_entry_real_rename (SidebarRenameableEntry* base, - const gchar* new_name) -{ - SearchesSidebarEntry * self; - SavedSearchTable* _tmp0_; - SavedSearchTable* _tmp1_; - gboolean _tmp2_; -#line 126 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry); -#line 126 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_return_if_fail (new_name != NULL); -#line 127 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp0_ = saved_search_table_get_instance (); -#line 127 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp1_ = _tmp0_; -#line 127 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp2_ = !saved_search_table_exists (_tmp1_, new_name); -#line 127 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _saved_search_table_unref0 (_tmp1_); -#line 127 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - if (_tmp2_) { -#line 1426 "SearchesBranch.c" - CommandManager* _tmp3_; - CommandManager* _tmp4_; - SavedSearch* _tmp5_; - RenameSavedSearchCommand* _tmp6_; - RenameSavedSearchCommand* _tmp7_; -#line 128 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp3_ = app_window_get_command_manager (); -#line 128 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp4_ = _tmp3_; -#line 128 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp5_ = self->priv->search; -#line 128 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp6_ = rename_saved_search_command_new (_tmp5_, new_name); -#line 128 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp7_ = _tmp6_; -#line 128 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - command_manager_execute (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_COMMAND, Command)); -#line 128 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_object_unref0 (_tmp7_); -#line 128 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _command_manager_unref0 (_tmp4_); -#line 1448 "SearchesBranch.c" - } else { - SavedSearch* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - gboolean _tmp11_; -#line 129 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp8_ = self->priv->search; -#line 129 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp9_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_DATA_OBJECT, DataObject)); -#line 129 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp10_ = _tmp9_; -#line 129 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp11_ = g_strcmp0 (new_name, _tmp10_) != 0; -#line 129 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_free0 (_tmp10_); -#line 129 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - if (_tmp11_) { -#line 1466 "SearchesBranch.c" - gchar* _tmp12_; - gchar* _tmp13_; -#line 130 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp12_ = resources_rename_search_exists_message (new_name); -#line 130 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp13_ = _tmp12_; -#line 130 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - app_window_error_message (_tmp13_, NULL); -#line 130 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_free0 (_tmp13_); -#line 1477 "SearchesBranch.c" - } - } -} - - -static void -searches_sidebar_entry_real_destroy_source (SidebarDestroyableEntry* base) -{ - SearchesSidebarEntry * self; - SavedSearch* _tmp0_; -#line 133 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry); -#line 134 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp0_ = self->priv->search; -#line 134 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - if (dialogs_confirm_delete_saved_search (_tmp0_)) { -#line 1494 "SearchesBranch.c" - CommandManager* _tmp1_; - CommandManager* _tmp2_; - SavedSearch* _tmp3_; - DeleteSavedSearchCommand* _tmp4_; - DeleteSavedSearchCommand* _tmp5_; -#line 135 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp1_ = app_window_get_command_manager (); -#line 135 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp2_ = _tmp1_; -#line 135 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp3_ = self->priv->search; -#line 135 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp4_ = delete_saved_search_command_new (_tmp3_); -#line 135 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp5_ = _tmp4_; -#line 135 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - command_manager_execute (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_COMMAND, Command)); -#line 135 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_object_unref0 (_tmp5_); -#line 135 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _command_manager_unref0 (_tmp2_); -#line 1516 "SearchesBranch.c" - } -} - - -static void -searches_sidebar_entry_class_init (SearchesSidebarEntryClass * klass) -{ - gchar* _tmp0_; -#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - searches_sidebar_entry_parent_class = g_type_class_peek_parent (klass); -#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - g_type_class_add_private (klass, sizeof (SearchesSidebarEntryPrivate)); -#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) searches_sidebar_entry_real_get_sidebar_name; -#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) searches_sidebar_entry_real_get_sidebar_icon; -#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) searches_sidebar_entry_real_create_page; -#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - G_OBJECT_CLASS (klass)->finalize = searches_sidebar_entry_finalize; -#line 92 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _tmp0_ = g_strdup ("edit-find"); -#line 92 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - searches_sidebar_entry_single_search_icon = _tmp0_; -#line 1541 "SearchesBranch.c" -} - - -static void -searches_sidebar_entry_sidebar_renameable_entry_interface_init (SidebarRenameableEntryIface * iface) -{ -#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - searches_sidebar_entry_sidebar_renameable_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - iface->is_user_renameable = (gboolean (*) (SidebarRenameableEntry *)) searches_sidebar_entry_real_is_user_renameable; -#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - iface->rename = (void (*) (SidebarRenameableEntry *, const gchar*)) searches_sidebar_entry_real_rename; -#line 1554 "SearchesBranch.c" -} - - -static void -searches_sidebar_entry_sidebar_destroyable_entry_interface_init (SidebarDestroyableEntryIface * iface) -{ -#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - searches_sidebar_entry_sidebar_destroyable_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - iface->destroy_source = (void (*) (SidebarDestroyableEntry *)) searches_sidebar_entry_real_destroy_source; -#line 1565 "SearchesBranch.c" -} - - -static void -searches_sidebar_entry_instance_init (SearchesSidebarEntry * self) -{ -#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self->priv = SEARCHES_SIDEBAR_ENTRY_GET_PRIVATE (self); -#line 1574 "SearchesBranch.c" -} - - -static void -searches_sidebar_entry_finalize (GObject * obj) -{ - SearchesSidebarEntry * self; -#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SEARCHES_TYPE_SIDEBAR_ENTRY, SearchesSidebarEntry); -#line 94 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - _g_object_unref0 (self->priv->search); -#line 90 "/home/jens/Source/shotwell/src/searches/SearchesBranch.vala" - G_OBJECT_CLASS (searches_sidebar_entry_parent_class)->finalize (obj); -#line 1588 "SearchesBranch.c" -} - - -GType -searches_sidebar_entry_get_type (void) -{ - static volatile gsize searches_sidebar_entry_type_id__volatile = 0; - if (g_once_init_enter (&searches_sidebar_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SearchesSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) searches_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SearchesSidebarEntry), 0, (GInstanceInitFunc) searches_sidebar_entry_instance_init, NULL }; - static const GInterfaceInfo sidebar_renameable_entry_info = { (GInterfaceInitFunc) searches_sidebar_entry_sidebar_renameable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo sidebar_destroyable_entry_info = { (GInterfaceInitFunc) searches_sidebar_entry_sidebar_destroyable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType searches_sidebar_entry_type_id; - searches_sidebar_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "SearchesSidebarEntry", &g_define_type_info, 0); - g_type_add_interface_static (searches_sidebar_entry_type_id, SIDEBAR_TYPE_RENAMEABLE_ENTRY, &sidebar_renameable_entry_info); - g_type_add_interface_static (searches_sidebar_entry_type_id, SIDEBAR_TYPE_DESTROYABLE_ENTRY, &sidebar_destroyable_entry_info); - g_once_init_leave (&searches_sidebar_entry_type_id__volatile, searches_sidebar_entry_type_id); - } - return searches_sidebar_entry_type_id__volatile; -} - - - diff --git a/src/searches/SearchesBranch.vala b/src/searches/SearchesBranch.vala index caf8ac6..22a38e2 100644 --- a/src/searches/SearchesBranch.vala +++ b/src/searches/SearchesBranch.vala @@ -89,7 +89,7 @@ public class Searches.Header : Sidebar.Header, Sidebar.Contextable { public class Searches.SidebarEntry : Sidebar.SimplePageEntry, Sidebar.RenameableEntry, Sidebar.DestroyableEntry { - private static string single_search_icon = "edit-find"; + private static string single_search_icon = "edit-find-symbolic"; private SavedSearch search; diff --git a/src/shotwell-graphics-processor.h b/src/shotwell-graphics-processor.h deleted file mode 100644 index 9dbd564..0000000 --- a/src/shotwell-graphics-processor.h +++ /dev/null @@ -1,767 +0,0 @@ -/* shotwell-graphics-processor.h generated by valac 0.40.4, the Vala compiler, do not modify */ - - -#ifndef __SRC_SHOTWELL_GRAPHICS_PROCESSOR_H__ -#define __SRC_SHOTWELL_GRAPHICS_PROCESSOR_H__ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -G_BEGIN_DECLS - - -#define TYPE_RGB_ANALYTIC_PIXEL (rgb_analytic_pixel_get_type ()) -typedef struct _RGBAnalyticPixel RGBAnalyticPixel; - -#define TYPE_HSV_ANALYTIC_PIXEL (hsv_analytic_pixel_get_type ()) -typedef struct _HSVAnalyticPixel HSVAnalyticPixel; - -#define TYPE_COMPOSITION_MODE (composition_mode_get_type ()) - -#define TYPE_PIXEL_FORMAT (pixel_format_get_type ()) - -#define TYPE_PIXEL_TRANSFORMATION_TYPE (pixel_transformation_type_get_type ()) - -#define TYPE_PIXEL_TRANSFORMATION_BUNDLE (pixel_transformation_bundle_get_type ()) -#define PIXEL_TRANSFORMATION_BUNDLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundle)) -#define PIXEL_TRANSFORMATION_BUNDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundleClass)) -#define IS_PIXEL_TRANSFORMATION_BUNDLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE)) -#define IS_PIXEL_TRANSFORMATION_BUNDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMATION_BUNDLE)) -#define PIXEL_TRANSFORMATION_BUNDLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMATION_BUNDLE, PixelTransformationBundleClass)) - -typedef struct _PixelTransformationBundle PixelTransformationBundle; -typedef struct _PixelTransformationBundleClass PixelTransformationBundleClass; -typedef struct _PixelTransformationBundlePrivate PixelTransformationBundlePrivate; - -#define TYPE_PIXEL_TRANSFORMATION (pixel_transformation_get_type ()) -#define PIXEL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMATION, PixelTransformation)) -#define PIXEL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMATION, PixelTransformationClass)) -#define IS_PIXEL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMATION)) -#define IS_PIXEL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMATION)) -#define PIXEL_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMATION, PixelTransformationClass)) - -typedef struct _PixelTransformation PixelTransformation; -typedef struct _PixelTransformationClass PixelTransformationClass; - -#define TYPE_KEY_VALUE_MAP (key_value_map_get_type ()) -#define KEY_VALUE_MAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_KEY_VALUE_MAP, KeyValueMap)) -#define KEY_VALUE_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_KEY_VALUE_MAP, KeyValueMapClass)) -#define IS_KEY_VALUE_MAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_KEY_VALUE_MAP)) -#define IS_KEY_VALUE_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_KEY_VALUE_MAP)) -#define KEY_VALUE_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_KEY_VALUE_MAP, KeyValueMapClass)) - -typedef struct _KeyValueMap KeyValueMap; -typedef struct _KeyValueMapClass KeyValueMapClass; - -#define TYPE_PIXEL_TRANSFORMER (pixel_transformer_get_type ()) -#define PIXEL_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PIXEL_TRANSFORMER, PixelTransformer)) -#define PIXEL_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PIXEL_TRANSFORMER, PixelTransformerClass)) -#define IS_PIXEL_TRANSFORMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PIXEL_TRANSFORMER)) -#define IS_PIXEL_TRANSFORMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PIXEL_TRANSFORMER)) -#define PIXEL_TRANSFORMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PIXEL_TRANSFORMER, PixelTransformerClass)) - -typedef struct _PixelTransformer PixelTransformer; -typedef struct _PixelTransformerClass PixelTransformerClass; -typedef struct _PixelTransformationPrivate PixelTransformationPrivate; - -#define TYPE_RGB_TRANSFORMATION (rgb_transformation_get_type ()) -#define RGB_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RGB_TRANSFORMATION, RGBTransformation)) -#define RGB_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RGB_TRANSFORMATION, RGBTransformationClass)) -#define IS_RGB_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RGB_TRANSFORMATION)) -#define IS_RGB_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RGB_TRANSFORMATION)) -#define RGB_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RGB_TRANSFORMATION, RGBTransformationClass)) - -typedef struct _RGBTransformation RGBTransformation; -typedef struct _RGBTransformationClass RGBTransformationClass; -typedef struct _RGBTransformationPrivate RGBTransformationPrivate; - -#define TYPE_HSV_TRANSFORMATION (hsv_transformation_get_type ()) -#define HSV_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HSV_TRANSFORMATION, HSVTransformation)) -#define HSV_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HSV_TRANSFORMATION, HSVTransformationClass)) -#define IS_HSV_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HSV_TRANSFORMATION)) -#define IS_HSV_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HSV_TRANSFORMATION)) -#define HSV_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HSV_TRANSFORMATION, HSVTransformationClass)) - -typedef struct _HSVTransformation HSVTransformation; -typedef struct _HSVTransformationClass HSVTransformationClass; -typedef struct _HSVTransformationPrivate HSVTransformationPrivate; - -#define TYPE_TINT_TRANSFORMATION (tint_transformation_get_type ()) -#define TINT_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TINT_TRANSFORMATION, TintTransformation)) -#define TINT_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TINT_TRANSFORMATION, TintTransformationClass)) -#define IS_TINT_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TINT_TRANSFORMATION)) -#define IS_TINT_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TINT_TRANSFORMATION)) -#define TINT_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TINT_TRANSFORMATION, TintTransformationClass)) - -typedef struct _TintTransformation TintTransformation; -typedef struct _TintTransformationClass TintTransformationClass; -typedef struct _TintTransformationPrivate TintTransformationPrivate; - -#define TYPE_TEMPERATURE_TRANSFORMATION (temperature_transformation_get_type ()) -#define TEMPERATURE_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformation)) -#define TEMPERATURE_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformationClass)) -#define IS_TEMPERATURE_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEMPERATURE_TRANSFORMATION)) -#define IS_TEMPERATURE_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEMPERATURE_TRANSFORMATION)) -#define TEMPERATURE_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEMPERATURE_TRANSFORMATION, TemperatureTransformationClass)) - -typedef struct _TemperatureTransformation TemperatureTransformation; -typedef struct _TemperatureTransformationClass TemperatureTransformationClass; -typedef struct _TemperatureTransformationPrivate TemperatureTransformationPrivate; - -#define TYPE_SATURATION_TRANSFORMATION (saturation_transformation_get_type ()) -#define SATURATION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SATURATION_TRANSFORMATION, SaturationTransformation)) -#define SATURATION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SATURATION_TRANSFORMATION, SaturationTransformationClass)) -#define IS_SATURATION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SATURATION_TRANSFORMATION)) -#define IS_SATURATION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SATURATION_TRANSFORMATION)) -#define SATURATION_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SATURATION_TRANSFORMATION, SaturationTransformationClass)) - -typedef struct _SaturationTransformation SaturationTransformation; -typedef struct _SaturationTransformationClass SaturationTransformationClass; -typedef struct _SaturationTransformationPrivate SaturationTransformationPrivate; - -#define TYPE_EXPOSURE_TRANSFORMATION (exposure_transformation_get_type ()) -#define EXPOSURE_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformation)) -#define EXPOSURE_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformationClass)) -#define IS_EXPOSURE_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPOSURE_TRANSFORMATION)) -#define IS_EXPOSURE_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPOSURE_TRANSFORMATION)) -#define EXPOSURE_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPOSURE_TRANSFORMATION, ExposureTransformationClass)) - -typedef struct _ExposureTransformation ExposureTransformation; -typedef struct _ExposureTransformationClass ExposureTransformationClass; -typedef struct _ExposureTransformationPrivate ExposureTransformationPrivate; - -#define TYPE_CONTRAST_TRANSFORMATION (contrast_transformation_get_type ()) -#define CONTRAST_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTRAST_TRANSFORMATION, ContrastTransformation)) -#define CONTRAST_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTRAST_TRANSFORMATION, ContrastTransformationClass)) -#define IS_CONTRAST_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTRAST_TRANSFORMATION)) -#define IS_CONTRAST_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTRAST_TRANSFORMATION)) -#define CONTRAST_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTRAST_TRANSFORMATION, ContrastTransformationClass)) - -typedef struct _ContrastTransformation ContrastTransformation; -typedef struct _ContrastTransformationClass ContrastTransformationClass; -typedef struct _ContrastTransformationPrivate ContrastTransformationPrivate; -typedef struct _PixelTransformerPrivate PixelTransformerPrivate; - -#define TYPE_RGB_HISTOGRAM (rgb_histogram_get_type ()) -#define RGB_HISTOGRAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RGB_HISTOGRAM, RGBHistogram)) -#define RGB_HISTOGRAM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RGB_HISTOGRAM, RGBHistogramClass)) -#define IS_RGB_HISTOGRAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RGB_HISTOGRAM)) -#define IS_RGB_HISTOGRAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RGB_HISTOGRAM)) -#define RGB_HISTOGRAM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RGB_HISTOGRAM, RGBHistogramClass)) - -typedef struct _RGBHistogram RGBHistogram; -typedef struct _RGBHistogramClass RGBHistogramClass; -typedef struct _RGBHistogramPrivate RGBHistogramPrivate; - -#define TYPE_INTENSITY_HISTOGRAM (intensity_histogram_get_type ()) -#define INTENSITY_HISTOGRAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INTENSITY_HISTOGRAM, IntensityHistogram)) -#define INTENSITY_HISTOGRAM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INTENSITY_HISTOGRAM, IntensityHistogramClass)) -#define IS_INTENSITY_HISTOGRAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INTENSITY_HISTOGRAM)) -#define IS_INTENSITY_HISTOGRAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INTENSITY_HISTOGRAM)) -#define INTENSITY_HISTOGRAM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INTENSITY_HISTOGRAM, IntensityHistogramClass)) - -typedef struct _IntensityHistogram IntensityHistogram; -typedef struct _IntensityHistogramClass IntensityHistogramClass; -typedef struct _IntensityHistogramPrivate IntensityHistogramPrivate; - -#define TYPE_EXPANSION_TRANSFORMATION (expansion_transformation_get_type ()) -#define EXPANSION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformation)) -#define EXPANSION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformationClass)) -#define IS_EXPANSION_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXPANSION_TRANSFORMATION)) -#define IS_EXPANSION_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXPANSION_TRANSFORMATION)) -#define EXPANSION_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXPANSION_TRANSFORMATION, ExpansionTransformationClass)) - -typedef struct _ExpansionTransformation ExpansionTransformation; -typedef struct _ExpansionTransformationClass ExpansionTransformationClass; -typedef struct _ExpansionTransformationPrivate ExpansionTransformationPrivate; - -#define TYPE_SHADOW_DETAIL_TRANSFORMATION (shadow_detail_transformation_get_type ()) -#define SHADOW_DETAIL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformation)) -#define SHADOW_DETAIL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformationClass)) -#define IS_SHADOW_DETAIL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHADOW_DETAIL_TRANSFORMATION)) -#define IS_SHADOW_DETAIL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHADOW_DETAIL_TRANSFORMATION)) -#define SHADOW_DETAIL_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHADOW_DETAIL_TRANSFORMATION, ShadowDetailTransformationClass)) - -typedef struct _ShadowDetailTransformation ShadowDetailTransformation; -typedef struct _ShadowDetailTransformationClass ShadowDetailTransformationClass; -typedef struct _ShadowDetailTransformationPrivate ShadowDetailTransformationPrivate; - -#define TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION (hermite_gamma_approximation_function_get_type ()) -#define HERMITE_GAMMA_APPROXIMATION_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, HermiteGammaApproximationFunction)) -#define HERMITE_GAMMA_APPROXIMATION_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, HermiteGammaApproximationFunctionClass)) -#define IS_HERMITE_GAMMA_APPROXIMATION_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION)) -#define IS_HERMITE_GAMMA_APPROXIMATION_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION)) -#define HERMITE_GAMMA_APPROXIMATION_FUNCTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HERMITE_GAMMA_APPROXIMATION_FUNCTION, HermiteGammaApproximationFunctionClass)) - -typedef struct _HermiteGammaApproximationFunction HermiteGammaApproximationFunction; -typedef struct _HermiteGammaApproximationFunctionClass HermiteGammaApproximationFunctionClass; -typedef struct _HermiteGammaApproximationFunctionPrivate HermiteGammaApproximationFunctionPrivate; - -#define TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION (highlight_detail_transformation_get_type ()) -#define HIGHLIGHT_DETAIL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformation)) -#define HIGHLIGHT_DETAIL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformationClass)) -#define IS_HIGHLIGHT_DETAIL_TRANSFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION)) -#define IS_HIGHLIGHT_DETAIL_TRANSFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION)) -#define HIGHLIGHT_DETAIL_TRANSFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIGHLIGHT_DETAIL_TRANSFORMATION, HighlightDetailTransformationClass)) - -typedef struct _HighlightDetailTransformation HighlightDetailTransformation; -typedef struct _HighlightDetailTransformationClass HighlightDetailTransformationClass; -typedef struct _HighlightDetailTransformationPrivate HighlightDetailTransformationPrivate; -typedef struct _KeyValueMapPrivate KeyValueMapPrivate; - -struct _RGBAnalyticPixel { - gfloat red; - gfloat green; - gfloat blue; -}; - -struct _HSVAnalyticPixel { - gfloat hue; - gfloat saturation; - gfloat light_value; -}; - -typedef enum { - COMPOSITION_MODE_NONE, - COMPOSITION_MODE_RGB_MATRIX, - COMPOSITION_MODE_HSV_LOOKUP -} CompositionMode; - -typedef enum { - PIXEL_FORMAT_RGB, - PIXEL_FORMAT_HSV -} PixelFormat; - -typedef enum { - PIXEL_TRANSFORMATION_TYPE_TONE_EXPANSION, - PIXEL_TRANSFORMATION_TYPE_SHADOWS, - PIXEL_TRANSFORMATION_TYPE_HIGHLIGHTS, - PIXEL_TRANSFORMATION_TYPE_TEMPERATURE, - PIXEL_TRANSFORMATION_TYPE_TINT, - PIXEL_TRANSFORMATION_TYPE_SATURATION, - PIXEL_TRANSFORMATION_TYPE_EXPOSURE, - PIXEL_TRANSFORMATION_TYPE_CONTRAST -} PixelTransformationType; - -struct _PixelTransformationBundle { - GTypeInstance parent_instance; - volatile int ref_count; - PixelTransformationBundlePrivate * priv; -}; - -struct _PixelTransformationBundleClass { - GTypeClass parent_class; - void (*finalize) (PixelTransformationBundle *self); -}; - -struct _PixelTransformation { - GTypeInstance parent_instance; - volatile int ref_count; - PixelTransformationPrivate * priv; -}; - -struct _PixelTransformationClass { - GTypeClass parent_class; - void (*finalize) (PixelTransformation *self); - CompositionMode (*get_composition_mode) (PixelTransformation* self); - void (*compose_with) (PixelTransformation* self, PixelTransformation* other); - gboolean (*is_identity) (PixelTransformation* self); - void (*transform_pixel_hsv) (PixelTransformation* self, HSVAnalyticPixel* p, HSVAnalyticPixel* result); - void (*transform_pixel_rgb) (PixelTransformation* self, RGBAnalyticPixel* p, RGBAnalyticPixel* result); - gchar* (*to_string) (PixelTransformation* self); - PixelTransformation* (*copy) (PixelTransformation* self); -}; - -struct _RGBTransformation { - PixelTransformation parent_instance; - RGBTransformationPrivate * priv; - gfloat* matrix_entries; - gint matrix_entries_length1; - gboolean identity; -}; - -struct _RGBTransformationClass { - PixelTransformationClass parent_class; -}; - -struct _HSVTransformation { - PixelTransformation parent_instance; - HSVTransformationPrivate * priv; - gfloat remap_table[256]; -}; - -struct _HSVTransformationClass { - PixelTransformationClass parent_class; -}; - -struct _TintTransformation { - RGBTransformation parent_instance; - TintTransformationPrivate * priv; -}; - -struct _TintTransformationClass { - RGBTransformationClass parent_class; -}; - -struct _TemperatureTransformation { - RGBTransformation parent_instance; - TemperatureTransformationPrivate * priv; -}; - -struct _TemperatureTransformationClass { - RGBTransformationClass parent_class; -}; - -struct _SaturationTransformation { - RGBTransformation parent_instance; - SaturationTransformationPrivate * priv; -}; - -struct _SaturationTransformationClass { - RGBTransformationClass parent_class; -}; - -struct _ExposureTransformation { - RGBTransformation parent_instance; - ExposureTransformationPrivate * priv; -}; - -struct _ExposureTransformationClass { - RGBTransformationClass parent_class; -}; - -struct _ContrastTransformation { - RGBTransformation parent_instance; - ContrastTransformationPrivate * priv; -}; - -struct _ContrastTransformationClass { - RGBTransformationClass parent_class; -}; - -struct _PixelTransformer { - GTypeInstance parent_instance; - volatile int ref_count; - PixelTransformerPrivate * priv; - PixelTransformation** optimized_transformations; - gint optimized_transformations_length1; - gint optimized_slots_used; -}; - -struct _PixelTransformerClass { - GTypeClass parent_class; - void (*finalize) (PixelTransformer *self); -}; - -struct _RGBHistogram { - GTypeInstance parent_instance; - volatile int ref_count; - RGBHistogramPrivate * priv; -}; - -struct _RGBHistogramClass { - GTypeClass parent_class; - void (*finalize) (RGBHistogram *self); -}; - -struct _IntensityHistogram { - GTypeInstance parent_instance; - volatile int ref_count; - IntensityHistogramPrivate * priv; -}; - -struct _IntensityHistogramClass { - GTypeClass parent_class; - void (*finalize) (IntensityHistogram *self); -}; - -struct _ExpansionTransformation { - HSVTransformation parent_instance; - ExpansionTransformationPrivate * priv; -}; - -struct _ExpansionTransformationClass { - HSVTransformationClass parent_class; -}; - -struct _ShadowDetailTransformation { - HSVTransformation parent_instance; - ShadowDetailTransformationPrivate * priv; -}; - -struct _ShadowDetailTransformationClass { - HSVTransformationClass parent_class; -}; - -struct _HermiteGammaApproximationFunction { - GTypeInstance parent_instance; - volatile int ref_count; - HermiteGammaApproximationFunctionPrivate * priv; -}; - -struct _HermiteGammaApproximationFunctionClass { - GTypeClass parent_class; - void (*finalize) (HermiteGammaApproximationFunction *self); -}; - -struct _HighlightDetailTransformation { - HSVTransformation parent_instance; - HighlightDetailTransformationPrivate * priv; -}; - -struct _HighlightDetailTransformationClass { - HSVTransformationClass parent_class; -}; - -struct _KeyValueMap { - GTypeInstance parent_instance; - volatile int ref_count; - KeyValueMapPrivate * priv; -}; - -struct _KeyValueMapClass { - GTypeClass parent_class; - void (*finalize) (KeyValueMap *self); -}; - - -GType rgb_analytic_pixel_get_type (void) G_GNUC_CONST; -RGBAnalyticPixel* rgb_analytic_pixel_dup (const RGBAnalyticPixel* self); -void rgb_analytic_pixel_free (RGBAnalyticPixel* self); -void rgb_analytic_pixel_init (RGBAnalyticPixel *self); -void rgb_analytic_pixel_init_from_components (RGBAnalyticPixel *self, - gfloat red, - gfloat green, - gfloat blue); -void rgb_analytic_pixel_init_from_quantized_components (RGBAnalyticPixel *self, - guchar red_quantized, - guchar green_quantized, - guchar blue_quantized); -GType hsv_analytic_pixel_get_type (void) G_GNUC_CONST; -HSVAnalyticPixel* hsv_analytic_pixel_dup (const HSVAnalyticPixel* self); -void hsv_analytic_pixel_free (HSVAnalyticPixel* self); -void rgb_analytic_pixel_init_from_hsv (RGBAnalyticPixel *self, - HSVAnalyticPixel* hsv_pixel); -guchar rgb_analytic_pixel_quantized_red (RGBAnalyticPixel *self); -guchar rgb_analytic_pixel_quantized_green (RGBAnalyticPixel *self); -guchar rgb_analytic_pixel_quantized_blue (RGBAnalyticPixel *self); -gboolean rgb_analytic_pixel_equals (RGBAnalyticPixel *self, - RGBAnalyticPixel* rhs); -guint rgb_analytic_pixel_hash_code (RGBAnalyticPixel *self); -void rgb_analytic_pixel_to_hsv (RGBAnalyticPixel *self, - HSVAnalyticPixel* result); -void hsv_analytic_pixel_init (HSVAnalyticPixel *self); -void hsv_analytic_pixel_init_from_components (HSVAnalyticPixel *self, - gfloat hue, - gfloat saturation, - gfloat light_value); -void hsv_analytic_pixel_init_from_quantized_components (HSVAnalyticPixel *self, - guchar hue_quantized, - guchar saturation_quantized, - guchar light_value_quantized); -void hsv_analytic_pixel_init_from_rgb (HSVAnalyticPixel *self, - RGBAnalyticPixel* p); -void hsv_analytic_pixel_to_rgb (HSVAnalyticPixel *self, - RGBAnalyticPixel* result); -gboolean hsv_analytic_pixel_equals (HSVAnalyticPixel *self, - HSVAnalyticPixel* rhs); -guint hsv_analytic_pixel_hash_code (HSVAnalyticPixel *self); -GType composition_mode_get_type (void) G_GNUC_CONST; -GType pixel_format_get_type (void) G_GNUC_CONST; -GType pixel_transformation_type_get_type (void) G_GNUC_CONST; -gpointer pixel_transformation_bundle_ref (gpointer instance); -void pixel_transformation_bundle_unref (gpointer instance); -GParamSpec* param_spec_pixel_transformation_bundle (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_pixel_transformation_bundle (GValue* value, - gpointer v_object); -void value_take_pixel_transformation_bundle (GValue* value, - gpointer v_object); -gpointer value_get_pixel_transformation_bundle (const GValue* value); -GType pixel_transformation_bundle_get_type (void) G_GNUC_CONST; -PixelTransformationBundle* pixel_transformation_bundle_new (void); -PixelTransformationBundle* pixel_transformation_bundle_construct (GType object_type); -PixelTransformationBundle* pixel_transformation_bundle_get_copied_color_adjustments (void); -void pixel_transformation_bundle_set_copied_color_adjustments (PixelTransformationBundle* adjustments); -gboolean pixel_transformation_bundle_has_copied_color_adjustments (void); -gpointer pixel_transformation_ref (gpointer instance); -void pixel_transformation_unref (gpointer instance); -GParamSpec* param_spec_pixel_transformation (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_pixel_transformation (GValue* value, - gpointer v_object); -void value_take_pixel_transformation (GValue* value, - gpointer v_object); -gpointer value_get_pixel_transformation (const GValue* value); -GType pixel_transformation_get_type (void) G_GNUC_CONST; -void pixel_transformation_bundle_set (PixelTransformationBundle* self, - PixelTransformation* transformation); -void pixel_transformation_bundle_set_to_identity (PixelTransformationBundle* self); -gpointer key_value_map_ref (gpointer instance); -void key_value_map_unref (gpointer instance); -GParamSpec* param_spec_key_value_map (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_key_value_map (GValue* value, - gpointer v_object); -void value_take_key_value_map (GValue* value, - gpointer v_object); -gpointer value_get_key_value_map (const GValue* value); -GType key_value_map_get_type (void) G_GNUC_CONST; -void pixel_transformation_bundle_load (PixelTransformationBundle* self, - KeyValueMap* store); -KeyValueMap* pixel_transformation_bundle_save (PixelTransformationBundle* self, - const gchar* group); -gint pixel_transformation_bundle_get_count (PixelTransformationBundle* self); -PixelTransformation* pixel_transformation_bundle_get_transformation (PixelTransformationBundle* self, - PixelTransformationType type); -GeeIterable* pixel_transformation_bundle_get_transformations (PixelTransformationBundle* self); -gboolean pixel_transformation_bundle_is_identity (PixelTransformationBundle* self); -gpointer pixel_transformer_ref (gpointer instance); -void pixel_transformer_unref (gpointer instance); -GParamSpec* param_spec_pixel_transformer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_pixel_transformer (GValue* value, - gpointer v_object); -void value_take_pixel_transformer (GValue* value, - gpointer v_object); -gpointer value_get_pixel_transformer (const GValue* value); -GType pixel_transformer_get_type (void) G_GNUC_CONST; -PixelTransformer* pixel_transformation_bundle_generate_transformer (PixelTransformationBundle* self); -PixelTransformationBundle* pixel_transformation_bundle_copy (PixelTransformationBundle* self); -PixelTransformation* pixel_transformation_construct (GType object_type, - PixelTransformationType type, - PixelFormat preferred_format); -PixelTransformationType pixel_transformation_get_transformation_type (PixelTransformation* self); -PixelFormat pixel_transformation_get_preferred_format (PixelTransformation* self); -CompositionMode pixel_transformation_get_composition_mode (PixelTransformation* self); -void pixel_transformation_compose_with (PixelTransformation* self, - PixelTransformation* other); -gboolean pixel_transformation_is_identity (PixelTransformation* self); -void pixel_transformation_transform_pixel_hsv (PixelTransformation* self, - HSVAnalyticPixel* p, - HSVAnalyticPixel* result); -void pixel_transformation_transform_pixel_rgb (PixelTransformation* self, - RGBAnalyticPixel* p, - RGBAnalyticPixel* result); -gchar* pixel_transformation_to_string (PixelTransformation* self); -PixelTransformation* pixel_transformation_copy (PixelTransformation* self); -GType rgb_transformation_get_type (void) G_GNUC_CONST; -#define RGB_TRANSFORMATION_MATRIX_SIZE 16 -RGBTransformation* rgb_transformation_new (PixelTransformationType type); -RGBTransformation* rgb_transformation_construct (GType object_type, - PixelTransformationType type); -GType hsv_transformation_get_type (void) G_GNUC_CONST; -HSVTransformation* hsv_transformation_construct (GType object_type, - PixelTransformationType type); -GType tint_transformation_get_type (void) G_GNUC_CONST; -#define TINT_TRANSFORMATION_MIN_PARAMETER (-16.0f) -#define TINT_TRANSFORMATION_MAX_PARAMETER 16.0f -TintTransformation* tint_transformation_new (gfloat client_param); -TintTransformation* tint_transformation_construct (GType object_type, - gfloat client_param); -gfloat tint_transformation_get_parameter (TintTransformation* self); -GType temperature_transformation_get_type (void) G_GNUC_CONST; -#define TEMPERATURE_TRANSFORMATION_MIN_PARAMETER (-16.0f) -#define TEMPERATURE_TRANSFORMATION_MAX_PARAMETER 16.0f -TemperatureTransformation* temperature_transformation_new (gfloat client_parameter); -TemperatureTransformation* temperature_transformation_construct (GType object_type, - gfloat client_parameter); -gfloat temperature_transformation_get_parameter (TemperatureTransformation* self); -GType saturation_transformation_get_type (void) G_GNUC_CONST; -#define SATURATION_TRANSFORMATION_MIN_PARAMETER (-16.0f) -#define SATURATION_TRANSFORMATION_MAX_PARAMETER 16.0f -SaturationTransformation* saturation_transformation_new (gfloat client_parameter); -SaturationTransformation* saturation_transformation_construct (GType object_type, - gfloat client_parameter); -gfloat saturation_transformation_get_parameter (SaturationTransformation* self); -GType exposure_transformation_get_type (void) G_GNUC_CONST; -#define EXPOSURE_TRANSFORMATION_MIN_PARAMETER (-16.0f) -#define EXPOSURE_TRANSFORMATION_MAX_PARAMETER 16.0f -ExposureTransformation* exposure_transformation_new (gfloat client_parameter); -ExposureTransformation* exposure_transformation_construct (GType object_type, - gfloat client_parameter); -gfloat exposure_transformation_get_parameter (ExposureTransformation* self); -GType contrast_transformation_get_type (void) G_GNUC_CONST; -#define CONTRAST_TRANSFORMATION_MIN_PARAMETER (-16.0f) -#define CONTRAST_TRANSFORMATION_MAX_PARAMETER 16.0f -ContrastTransformation* contrast_transformation_new (gfloat client_parameter); -ContrastTransformation* contrast_transformation_construct (GType object_type, - gfloat client_parameter); -gfloat contrast_transformation_get_parameter (ContrastTransformation* self); -PixelTransformer* pixel_transformer_new (void); -PixelTransformer* pixel_transformer_construct (GType object_type); -PixelTransformer* pixel_transformer_copy (PixelTransformer* self); -void pixel_transformer_attach_transformation (PixelTransformer* self, - PixelTransformation* trans); -void pixel_transformer_detach_transformation (PixelTransformer* self, - PixelTransformation* victim); -void pixel_transformer_replace_transformation (PixelTransformer* self, - PixelTransformation* old_trans, - PixelTransformation* new_trans); -void pixel_transformer_transform_pixbuf (PixelTransformer* self, - GdkPixbuf* pixbuf, - GCancellable* cancellable); -void pixel_transformer_transform_from_fp (PixelTransformer* self, - gfloat** fp_pixel_cache, - int* fp_pixel_cache_length1, - GdkPixbuf* dest); -void pixel_transformer_transform_to_other_pixbuf (PixelTransformer* self, - GdkPixbuf* source, - GdkPixbuf* dest, - GCancellable* cancellable, - gint jobs); -gpointer rgb_histogram_ref (gpointer instance); -void rgb_histogram_unref (gpointer instance); -GParamSpec* param_spec_rgb_histogram (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_rgb_histogram (GValue* value, - gpointer v_object); -void value_take_rgb_histogram (GValue* value, - gpointer v_object); -gpointer value_get_rgb_histogram (const GValue* value); -GType rgb_histogram_get_type (void) G_GNUC_CONST; -#define RGB_HISTOGRAM_GRAPHIC_WIDTH 256 -#define RGB_HISTOGRAM_GRAPHIC_HEIGHT 100 -RGBHistogram* rgb_histogram_new (GdkPixbuf* pixbuf); -RGBHistogram* rgb_histogram_construct (GType object_type, - GdkPixbuf* pixbuf); -GdkPixbuf* rgb_histogram_get_graphic (RGBHistogram* self); -gpointer intensity_histogram_ref (gpointer instance); -void intensity_histogram_unref (gpointer instance); -GParamSpec* param_spec_intensity_histogram (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_intensity_histogram (GValue* value, - gpointer v_object); -void value_take_intensity_histogram (GValue* value, - gpointer v_object); -gpointer value_get_intensity_histogram (const GValue* value); -GType intensity_histogram_get_type (void) G_GNUC_CONST; -IntensityHistogram* intensity_histogram_new (GdkPixbuf* pixbuf); -IntensityHistogram* intensity_histogram_construct (GType object_type, - GdkPixbuf* pixbuf); -gfloat intensity_histogram_get_cumulative_probability (IntensityHistogram* self, - gint level); -GType expansion_transformation_get_type (void) G_GNUC_CONST; -ExpansionTransformation* expansion_transformation_new (IntensityHistogram* histogram); -ExpansionTransformation* expansion_transformation_construct (GType object_type, - IntensityHistogram* histogram); -ExpansionTransformation* expansion_transformation_new_from_extrema (gint black_point, - gint white_point); -ExpansionTransformation* expansion_transformation_construct_from_extrema (GType object_type, - gint black_point, - gint white_point); -ExpansionTransformation* expansion_transformation_new_from_string (const gchar* encoded_transformation); -ExpansionTransformation* expansion_transformation_construct_from_string (GType object_type, - const gchar* encoded_transformation); -gint expansion_transformation_get_white_point (ExpansionTransformation* self); -gint expansion_transformation_get_black_point (ExpansionTransformation* self); -GType shadow_detail_transformation_get_type (void) G_GNUC_CONST; -#define SHADOW_DETAIL_TRANSFORMATION_MIN_PARAMETER 0.0f -#define SHADOW_DETAIL_TRANSFORMATION_MAX_PARAMETER 32.0f -ShadowDetailTransformation* shadow_detail_transformation_new (gfloat user_intensity); -ShadowDetailTransformation* shadow_detail_transformation_construct (GType object_type, - gfloat user_intensity); -gfloat shadow_detail_transformation_get_parameter (ShadowDetailTransformation* self); -gpointer hermite_gamma_approximation_function_ref (gpointer instance); -void hermite_gamma_approximation_function_unref (gpointer instance); -GParamSpec* param_spec_hermite_gamma_approximation_function (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_hermite_gamma_approximation_function (GValue* value, - gpointer v_object); -void value_take_hermite_gamma_approximation_function (GValue* value, - gpointer v_object); -gpointer value_get_hermite_gamma_approximation_function (const GValue* value); -GType hermite_gamma_approximation_function_get_type (void) G_GNUC_CONST; -HermiteGammaApproximationFunction* hermite_gamma_approximation_function_new (gfloat user_interval_upper); -HermiteGammaApproximationFunction* hermite_gamma_approximation_function_construct (GType object_type, - gfloat user_interval_upper); -gfloat hermite_gamma_approximation_function_evaluate (HermiteGammaApproximationFunction* self, - gfloat x); -GType highlight_detail_transformation_get_type (void) G_GNUC_CONST; -#define HIGHLIGHT_DETAIL_TRANSFORMATION_MIN_PARAMETER (-32.0f) -#define HIGHLIGHT_DETAIL_TRANSFORMATION_MAX_PARAMETER 0.0f -HighlightDetailTransformation* highlight_detail_transformation_new (gfloat user_intensity); -HighlightDetailTransformation* highlight_detail_transformation_construct (GType object_type, - gfloat user_intensity); -gfloat highlight_detail_transformation_get_parameter (HighlightDetailTransformation* self); -PixelTransformationBundle* auto_enhance_create_auto_enhance_adjustments (GdkPixbuf* pixbuf); -KeyValueMap* key_value_map_new (const gchar* group); -KeyValueMap* key_value_map_construct (GType object_type, - const gchar* group); -KeyValueMap* key_value_map_copy (KeyValueMap* self); -gchar* key_value_map_get_group (KeyValueMap* self); -GeeSet* key_value_map_get_keys (KeyValueMap* self); -gboolean key_value_map_has_key (KeyValueMap* self, - const gchar* key); -void key_value_map_set_string (KeyValueMap* self, - const gchar* key, - const gchar* value); -void key_value_map_set_int (KeyValueMap* self, - const gchar* key, - gint value); -void key_value_map_set_double (KeyValueMap* self, - const gchar* key, - gdouble value); -void key_value_map_set_float (KeyValueMap* self, - const gchar* key, - gfloat value); -void key_value_map_set_bool (KeyValueMap* self, - const gchar* key, - gboolean value); -gchar* key_value_map_get_string (KeyValueMap* self, - const gchar* key, - const gchar* def); -gint key_value_map_get_int (KeyValueMap* self, - const gchar* key, - gint def); -gdouble key_value_map_get_double (KeyValueMap* self, - const gchar* key, - gdouble def); -gfloat key_value_map_get_float (KeyValueMap* self, - const gchar* key, - gfloat def); -gboolean key_value_map_get_bool (KeyValueMap* self, - const gchar* key, - gboolean def); -void key_value_map_get_point (KeyValueMap* self, - const gchar* key, - GdkPoint* def, - GdkPoint* result); -void key_value_map_set_point (KeyValueMap* self, - const gchar* key, - GdkPoint* point); - -extern const gfloat rgb_lookup_table[256]; - -G_END_DECLS - -#endif diff --git a/src/shotwell-graphics-processor.vapi b/src/shotwell-graphics-processor.vapi deleted file mode 100644 index 38ccee5..0000000 --- a/src/shotwell-graphics-processor.vapi +++ /dev/null @@ -1,225 +0,0 @@ -/* shotwell-graphics-processor.vapi generated by valac 0.40.4, do not modify. */ - -namespace AutoEnhance { - [CCode (cheader_filename = "shotwell-graphics-processor.h")] - public static PixelTransformationBundle create_auto_enhance_adjustments (Gdk.Pixbuf pixbuf); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public enum CompositionMode { - NONE, - RGB_MATRIX, - HSV_LOOKUP -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public enum PixelFormat { - RGB, - HSV -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public enum PixelTransformationType { - TONE_EXPANSION, - SHADOWS, - HIGHLIGHTS, - TEMPERATURE, - TINT, - SATURATION, - EXPOSURE, - CONTRAST -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public class PixelTransformationBundle { - public PixelTransformationBundle (); - public PixelTransformationBundle copy (); - public PixelTransformer generate_transformer (); - public static PixelTransformationBundle? get_copied_color_adjustments (); - public int get_count (); - public PixelTransformation? get_transformation (PixelTransformationType type); - public Gee.Iterable get_transformations (); - public static bool has_copied_color_adjustments (); - public bool is_identity (); - public void load (KeyValueMap store); - public KeyValueMap save (string group); - public void @set (PixelTransformation transformation); - public static void set_copied_color_adjustments (PixelTransformationBundle adjustments); - public void set_to_identity (); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public abstract class PixelTransformation { - public PixelTransformation (PixelTransformationType type, PixelFormat preferred_format); - public virtual void compose_with (PixelTransformation other); - public abstract PixelTransformation copy (); - public virtual CompositionMode get_composition_mode (); - public PixelFormat get_preferred_format (); - public PixelTransformationType get_transformation_type (); - public virtual bool is_identity (); - public virtual string to_string (); - public virtual HSVAnalyticPixel transform_pixel_hsv (HSVAnalyticPixel p); - public virtual RGBAnalyticPixel transform_pixel_rgb (RGBAnalyticPixel p); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public class RGBTransformation : PixelTransformation { - protected bool identity; - protected float[] matrix_entries; - protected const int MATRIX_SIZE; - public RGBTransformation (PixelTransformationType type); - public override void compose_with (PixelTransformation other); - public override PixelTransformation copy (); - public override CompositionMode get_composition_mode (); - public override bool is_identity (); - public override HSVAnalyticPixel transform_pixel_hsv (HSVAnalyticPixel p); - public override RGBAnalyticPixel transform_pixel_rgb (RGBAnalyticPixel p); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public abstract class HSVTransformation : PixelTransformation { - protected float remap_table[256]; - public HSVTransformation (PixelTransformationType type); - public override void compose_with (PixelTransformation other); - public override CompositionMode get_composition_mode (); - public override HSVAnalyticPixel transform_pixel_hsv (HSVAnalyticPixel pixel); - public override RGBAnalyticPixel transform_pixel_rgb (RGBAnalyticPixel p); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public class TintTransformation : RGBTransformation { - public const float MAX_PARAMETER; - public const float MIN_PARAMETER; - public TintTransformation (float client_param); - public float get_parameter (); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public class TemperatureTransformation : RGBTransformation { - public const float MAX_PARAMETER; - public const float MIN_PARAMETER; - public TemperatureTransformation (float client_parameter); - public float get_parameter (); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public class SaturationTransformation : RGBTransformation { - public const float MAX_PARAMETER; - public const float MIN_PARAMETER; - public SaturationTransformation (float client_parameter); - public float get_parameter (); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public class ExposureTransformation : RGBTransformation { - public const float MAX_PARAMETER; - public const float MIN_PARAMETER; - public ExposureTransformation (float client_parameter); - public float get_parameter (); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public class ContrastTransformation : RGBTransformation { - public const float MAX_PARAMETER; - public const float MIN_PARAMETER; - public ContrastTransformation (float client_parameter); - public float get_parameter (); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public class PixelTransformer { - public int optimized_slots_used; - public PixelTransformation[] optimized_transformations; - public PixelTransformer (); - public void attach_transformation (PixelTransformation trans); - public PixelTransformer copy (); - public void detach_transformation (PixelTransformation victim); - public void replace_transformation (PixelTransformation old_trans, PixelTransformation new_trans); - public void transform_from_fp (ref float[] fp_pixel_cache, Gdk.Pixbuf dest); - public void transform_pixbuf (Gdk.Pixbuf pixbuf, GLib.Cancellable? cancellable = null); - public void transform_to_other_pixbuf (Gdk.Pixbuf source, Gdk.Pixbuf dest, GLib.Cancellable? cancellable = null, int jobs = -1); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public class RGBHistogram { - public const int GRAPHIC_HEIGHT; - public const int GRAPHIC_WIDTH; - public RGBHistogram (Gdk.Pixbuf pixbuf); - public Gdk.Pixbuf get_graphic (); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public class IntensityHistogram { - public IntensityHistogram (Gdk.Pixbuf pixbuf); - public float get_cumulative_probability (int level); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public class ExpansionTransformation : HSVTransformation { - public ExpansionTransformation (IntensityHistogram histogram); - public override PixelTransformation copy (); - public ExpansionTransformation.from_extrema (int black_point, int white_point); - public ExpansionTransformation.from_string (string encoded_transformation); - public int get_black_point (); - public int get_white_point (); - public override bool is_identity (); - public override string to_string (); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public class ShadowDetailTransformation : HSVTransformation { - public const float MAX_PARAMETER; - public const float MIN_PARAMETER; - public ShadowDetailTransformation (float user_intensity); - public override PixelTransformation copy (); - public float get_parameter (); - public override bool is_identity (); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public class HermiteGammaApproximationFunction { - public HermiteGammaApproximationFunction (float user_interval_upper); - public float evaluate (float x); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public class HighlightDetailTransformation : HSVTransformation { - public const float MAX_PARAMETER; - public const float MIN_PARAMETER; - public HighlightDetailTransformation (float user_intensity); - public override PixelTransformation copy (); - public float get_parameter (); - public override bool is_identity (); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public class KeyValueMap { - public KeyValueMap (string group); - public KeyValueMap copy (); - public bool get_bool (string key, bool def); - public double get_double (string key, double def); - public float get_float (string key, float def); - public string get_group (); - public int get_int (string key, int def); - public Gee.Set get_keys (); - public Gdk.Point get_point (string key, Gdk.Point def); - public string get_string (string key, string? def); - public bool has_key (string key); - public void set_bool (string key, bool value); - public void set_double (string key, double value); - public void set_float (string key, float value); - public void set_int (string key, int value); - public void set_point (string key, Gdk.Point point); - public void set_string (string key, string value); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public struct RGBAnalyticPixel { - public float red; - public float green; - public float blue; - public RGBAnalyticPixel (); - public bool equals (RGBAnalyticPixel? rhs); - public RGBAnalyticPixel.from_components (float red, float green, float blue); - public RGBAnalyticPixel.from_hsv (HSVAnalyticPixel hsv_pixel); - public RGBAnalyticPixel.from_quantized_components (uchar red_quantized, uchar green_quantized, uchar blue_quantized); - public uint hash_code (); - public uchar quantized_blue (); - public uchar quantized_green (); - public uchar quantized_red (); - public HSVAnalyticPixel to_hsv (); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public struct HSVAnalyticPixel { - public float hue; - public float saturation; - public float light_value; - public HSVAnalyticPixel (); - public bool equals (ref HSVAnalyticPixel rhs); - public HSVAnalyticPixel.from_components (float hue, float saturation, float light_value); - public HSVAnalyticPixel.from_quantized_components (uchar hue_quantized, uchar saturation_quantized, uchar light_value_quantized); - public HSVAnalyticPixel.from_rgb (RGBAnalyticPixel p); - public uint hash_code (); - public RGBAnalyticPixel to_rgb (); -} -[CCode (cheader_filename = "shotwell-graphics-processor.h")] -public const float[] rgb_lookup_table; diff --git a/src/sidebar/Branch.c b/src/sidebar/Branch.c deleted file mode 100644 index e855a99..0000000 --- a/src/sidebar/Branch.c +++ /dev/null @@ -1,2741 +0,0 @@ -/* Branch.c generated by valac 0.40.4, the Vala compiler - * generated from Branch.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include - - -#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ()) -#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch)) -#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) -#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) - -typedef struct _SidebarBranch SidebarBranch; -typedef struct _SidebarBranchClass SidebarBranchClass; -typedef struct _SidebarBranchPrivate SidebarBranchPrivate; - -#define SIDEBAR_BRANCH_TYPE_NODE (sidebar_branch_node_get_type ()) -#define SIDEBAR_BRANCH_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_BRANCH_TYPE_NODE, SidebarBranchNode)) -#define SIDEBAR_BRANCH_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_BRANCH_TYPE_NODE, SidebarBranchNodeClass)) -#define SIDEBAR_BRANCH_IS_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_BRANCH_TYPE_NODE)) -#define SIDEBAR_BRANCH_IS_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_BRANCH_TYPE_NODE)) -#define SIDEBAR_BRANCH_NODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_BRANCH_TYPE_NODE, SidebarBranchNodeClass)) - -typedef struct _SidebarBranchNode SidebarBranchNode; -typedef struct _SidebarBranchNodeClass SidebarBranchNodeClass; - -#define SIDEBAR_BRANCH_TYPE_OPTIONS (sidebar_branch_options_get_type ()) - -#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ()) -#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry)) -#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY)) -#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface)) - -typedef struct _SidebarEntry SidebarEntry; -typedef struct _SidebarEntryIface SidebarEntryIface; - -#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ()) -#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree)) -#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass)) -#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass)) - -typedef struct _SidebarTree SidebarTree; -typedef struct _SidebarTreeClass SidebarTreeClass; -enum { - SIDEBAR_BRANCH_0_PROPERTY, - SIDEBAR_BRANCH_NUM_PROPERTIES -}; -static GParamSpec* sidebar_branch_properties[SIDEBAR_BRANCH_NUM_PROPERTIES]; -#define _sidebar_branch_node_unref0(var) ((var == NULL) ? NULL : (var = (sidebar_branch_node_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _SidebarBranchNodePrivate SidebarBranchNodePrivate; -typedef struct _SidebarBranchParamSpecNode SidebarBranchParamSpecNode; -enum { - SIDEBAR_BRANCH_ENTRY_ADDED_SIGNAL, - SIDEBAR_BRANCH_ENTRY_REMOVED_SIGNAL, - SIDEBAR_BRANCH_ENTRY_MOVED_SIGNAL, - SIDEBAR_BRANCH_ENTRY_REPARENTED_SIGNAL, - SIDEBAR_BRANCH_CHILDREN_REORDERED_SIGNAL, - SIDEBAR_BRANCH_SHOW_BRANCH_SIGNAL, - SIDEBAR_BRANCH_NUM_SIGNALS -}; -static guint sidebar_branch_signals[SIDEBAR_BRANCH_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef gboolean (*Locator) (gconstpointer item, void* user_data); -struct _SidebarBranch { - GObject parent_instance; - SidebarBranchPrivate * priv; -}; - -struct _SidebarBranchClass { - GObjectClass parent_class; -}; - -typedef enum { - SIDEBAR_BRANCH_OPTIONS_NONE = 0, - SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY = 1 << 0, - SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD = 1 << 1, - SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD = 1 << 2, - SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING = 1 << 3 -} SidebarBranchOptions; - -struct _SidebarEntryIface { - GTypeInterface parent_iface; - gchar* (*get_sidebar_name) (SidebarEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarEntry* self); - gchar* (*get_sidebar_icon) (SidebarEntry* self); - gchar* (*to_string) (SidebarEntry* self); - void (*grafted) (SidebarEntry* self, SidebarTree* tree); - void (*pruned) (SidebarEntry* self, SidebarTree* tree); -}; - -struct _SidebarBranchPrivate { - SidebarBranchNode* root; - SidebarBranchOptions options; - gboolean shown; - GCompareFunc default_comparator; - GeeHashMap* map; -}; - -struct _SidebarBranchNode { - GTypeInstance parent_instance; - volatile int ref_count; - SidebarBranchNodePrivate * priv; - SidebarEntry* entry; - SidebarBranchNode* parent; - GCompareFunc comparator; - GeeSortedSet* children; -}; - -struct _SidebarBranchNodeClass { - GTypeClass parent_class; - void (*finalize) (SidebarBranchNode *self); -}; - -typedef void (*SidebarBranchNodePruneCallback) (SidebarBranchNode* node, void* user_data); -typedef void (*SidebarBranchNodeChildrenReorderedCallback) (SidebarBranchNode* node, void* user_data); -struct _SidebarBranchParamSpecNode { - GParamSpec parent_instance; -}; - - -static gpointer sidebar_branch_parent_class = NULL; -static gpointer sidebar_branch_node_parent_class = NULL; - -GType sidebar_branch_get_type (void) G_GNUC_CONST; -static gpointer sidebar_branch_node_ref (gpointer instance); -static void sidebar_branch_node_unref (gpointer instance); -static GParamSpec* sidebar_branch_param_spec_node (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void sidebar_branch_value_set_node (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void sidebar_branch_value_take_node (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer sidebar_branch_value_get_node (const GValue* value) G_GNUC_UNUSED; -static GType sidebar_branch_node_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -GType sidebar_branch_options_get_type (void) G_GNUC_CONST; -GType sidebar_tree_get_type (void) G_GNUC_CONST; -GType sidebar_entry_get_type (void) G_GNUC_CONST; -#define SIDEBAR_BRANCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SIDEBAR_TYPE_BRANCH, SidebarBranchPrivate)) -gboolean sidebar_branch_options_is_hide_if_empty (SidebarBranchOptions self); -gboolean sidebar_branch_options_is_auto_open_on_new_child (SidebarBranchOptions self); -gboolean sidebar_branch_options_is_startup_expand_to_first_child (SidebarBranchOptions self); -gboolean sidebar_branch_options_is_startup_open_grouping (SidebarBranchOptions self); -SidebarBranch* sidebar_branch_new (SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator); -SidebarBranch* sidebar_branch_construct (GType object_type, - SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator); -static SidebarBranchNode* sidebar_branch_node_new (SidebarEntry* entry, - SidebarBranchNode* parent, - GCompareFunc comparator); -static SidebarBranchNode* sidebar_branch_node_construct (GType object_type, - SidebarEntry* entry, - SidebarBranchNode* parent, - GCompareFunc comparator); -void sidebar_branch_set_show_branch (SidebarBranch* self, - gboolean shown); -SidebarEntry* sidebar_branch_get_root (SidebarBranch* self); -gboolean sidebar_branch_get_show_branch (SidebarBranch* self); -gboolean sidebar_branch_is_auto_open_on_new_child (SidebarBranch* self); -gboolean sidebar_branch_is_startup_expand_to_first_child (SidebarBranch* self); -gboolean sidebar_branch_is_startup_open_grouping (SidebarBranch* self); -void sidebar_branch_graft (SidebarBranch* self, - SidebarEntry* parent, - SidebarEntry* entry, - GCompareFunc comparator); -static void sidebar_branch_node_add_child (SidebarBranchNode* self, - SidebarBranchNode* child); -void sidebar_branch_prune (SidebarBranch* self, - SidebarEntry* entry); -static void sidebar_branch_node_prune_children (SidebarBranchNode* self, - SidebarBranchNodePruneCallback cb, - void* cb_target); -static void sidebar_branch_prune_callback (SidebarBranch* self, - SidebarBranchNode* node); -static void _sidebar_branch_prune_callback_sidebar_branch_node_prune_callback (SidebarBranchNode* node, - gpointer self); -static void sidebar_branch_node_remove_child (SidebarBranchNode* self, - SidebarBranchNode* child); -static gboolean sidebar_branch_node_has_children (SidebarBranchNode* self); -void sidebar_branch_reparent (SidebarBranch* self, - SidebarEntry* new_parent, - SidebarEntry* entry); -gboolean sidebar_branch_has_entry (SidebarBranch* self, - SidebarEntry* entry); -void sidebar_branch_reorder (SidebarBranch* self, - SidebarEntry* entry); -static gboolean sidebar_branch_node_reorder_child (SidebarBranchNode* self, - SidebarBranchNode* child); -void sidebar_branch_reorder_all (SidebarBranch* self); -static void sidebar_branch_node_reorder_children (SidebarBranchNode* self, - gboolean recursive, - SidebarBranchNodeChildrenReorderedCallback cb, - void* cb_target); -static void sidebar_branch_children_reordered_callback (SidebarBranch* self, - SidebarBranchNode* node); -static void _sidebar_branch_children_reordered_callback_sidebar_branch_node_children_reordered_callback (SidebarBranchNode* node, - gpointer self); -void sidebar_branch_reorder_children (SidebarBranch* self, - SidebarEntry* entry, - gboolean recursive); -void sidebar_branch_change_all_comparators (SidebarBranch* self, - GCompareFunc comparator); -static void sidebar_branch_node_change_comparator (SidebarBranchNode* self, - GCompareFunc comparator, - gboolean recursive, - SidebarBranchNodeChildrenReorderedCallback cb, - void* cb_target); -void sidebar_branch_change_comparator (SidebarBranch* self, - SidebarEntry* entry, - gboolean recursive, - GCompareFunc comparator); -gint sidebar_branch_get_child_count (SidebarBranch* self, - SidebarEntry* parent); -GeeList* sidebar_branch_get_children (SidebarBranch* self, - SidebarEntry* parent); -SidebarEntry* sidebar_branch_find_first_child (SidebarBranch* self, - SidebarEntry* parent, - Locator locator, - void* locator_target); -SidebarEntry* sidebar_branch_get_parent (SidebarBranch* self, - SidebarEntry* entry); -SidebarEntry* sidebar_branch_get_previous_sibling (SidebarBranch* self, - SidebarEntry* entry); -SidebarEntry* sidebar_branch_get_next_sibling (SidebarBranch* self, - SidebarEntry* entry); -static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static gint sidebar_branch_node_comparator_wrapper (SidebarBranchNode* anode, - SidebarBranchNode* bnode); -static gint _sidebar_branch_node_comparator_wrapper_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -static gint sidebar_branch_node_index_of_by_reference (SidebarBranchNode* self, - SidebarBranchNode* child); -static void sidebar_branch_node_finalize (SidebarBranchNode * obj); -static void sidebar_branch_finalize (GObject * obj); - - -gboolean -sidebar_branch_options_is_hide_if_empty (SidebarBranchOptions self) -{ - gboolean result = FALSE; -#line 19 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = (self & SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY) != 0; -#line 19 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 280 "Branch.c" -} - - -gboolean -sidebar_branch_options_is_auto_open_on_new_child (SidebarBranchOptions self) -{ - gboolean result = FALSE; -#line 23 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = (self & SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD) != 0; -#line 23 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 292 "Branch.c" -} - - -gboolean -sidebar_branch_options_is_startup_expand_to_first_child (SidebarBranchOptions self) -{ - gboolean result = FALSE; -#line 27 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = (self & SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD) != 0; -#line 27 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 304 "Branch.c" -} - - -gboolean -sidebar_branch_options_is_startup_open_grouping (SidebarBranchOptions self) -{ - gboolean result = FALSE; -#line 31 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = (self & SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING) != 0; -#line 31 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 316 "Branch.c" -} - - -GType -sidebar_branch_options_get_type (void) -{ - static volatile gsize sidebar_branch_options_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_branch_options_type_id__volatile)) { - static const GFlagsValue values[] = {{SIDEBAR_BRANCH_OPTIONS_NONE, "SIDEBAR_BRANCH_OPTIONS_NONE", "none"}, {SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY, "SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY", "hide-if-empty"}, {SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD, "SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD", "auto-open-on-new-child"}, {SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD, "SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD", "startup-expand-to-first-child"}, {SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING, "SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING", "startup-open-grouping"}, {0, NULL, NULL}}; - GType sidebar_branch_options_type_id; - sidebar_branch_options_type_id = g_flags_register_static ("SidebarBranchOptions", values); - g_once_init_leave (&sidebar_branch_options_type_id__volatile, sidebar_branch_options_type_id); - } - return sidebar_branch_options_type_id__volatile; -} - - -SidebarBranch* -sidebar_branch_construct (GType object_type, - SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator) -{ - SidebarBranch * self = NULL; - GCompareFunc _tmp0_ = NULL; - SidebarBranchNode* _tmp1_; - GeeHashMap* _tmp2_; - SidebarBranchNode* _tmp3_; -#line 206 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (root), NULL); -#line 206 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self = (SidebarBranch*) g_object_new (object_type, NULL); -#line 208 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->priv->default_comparator = default_comparator; -#line 210 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (root_comparator != NULL) { -#line 210 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = root_comparator; -#line 356 "Branch.c" - } else { -#line 210 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = default_comparator; -#line 360 "Branch.c" - } -#line 209 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = sidebar_branch_node_new (root, NULL, _tmp0_); -#line 209 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (self->priv->root); -#line 209 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->priv->root = _tmp1_; -#line 211 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->priv->options = options; -#line 213 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = self->priv->map; -#line 213 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = self->priv->root; -#line 213 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), root, _tmp3_); -#line 215 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (sidebar_branch_options_is_hide_if_empty (options)) { -#line 216 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_set_show_branch (self, FALSE); -#line 380 "Branch.c" - } -#line 206 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return self; -#line 384 "Branch.c" -} - - -SidebarBranch* -sidebar_branch_new (SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator) -{ -#line 206 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return sidebar_branch_construct (SIDEBAR_TYPE_BRANCH, root, options, default_comparator, root_comparator); -#line 396 "Branch.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 220 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return self ? g_object_ref (self) : NULL; -#line 405 "Branch.c" -} - - -SidebarEntry* -sidebar_branch_get_root (SidebarBranch* self) -{ - SidebarEntry* result = NULL; - SidebarBranchNode* _tmp0_; - SidebarEntry* _tmp1_; - SidebarEntry* _tmp2_; -#line 219 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), NULL); -#line 220 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->root; -#line 220 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = _tmp0_->entry; -#line 220 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 220 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = _tmp2_; -#line 220 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 428 "Branch.c" -} - - -void -sidebar_branch_set_show_branch (SidebarBranch* self, - gboolean shown) -{ - gboolean _tmp0_; -#line 223 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (self)); -#line 224 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->shown; -#line 224 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (_tmp0_ == shown) { -#line 225 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return; -#line 445 "Branch.c" - } -#line 227 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->priv->shown = shown; -#line 228 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_signal_emit (self, sidebar_branch_signals[SIDEBAR_BRANCH_SHOW_BRANCH_SIGNAL], 0, shown); -#line 451 "Branch.c" -} - - -gboolean -sidebar_branch_get_show_branch (SidebarBranch* self) -{ - gboolean result = FALSE; - gboolean _tmp0_; -#line 231 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), FALSE); -#line 232 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->shown; -#line 232 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = _tmp0_; -#line 232 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 468 "Branch.c" -} - - -gboolean -sidebar_branch_is_auto_open_on_new_child (SidebarBranch* self) -{ - gboolean result = FALSE; - SidebarBranchOptions _tmp0_; -#line 235 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), FALSE); -#line 236 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->options; -#line 236 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = sidebar_branch_options_is_auto_open_on_new_child (_tmp0_); -#line 236 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 485 "Branch.c" -} - - -gboolean -sidebar_branch_is_startup_expand_to_first_child (SidebarBranch* self) -{ - gboolean result = FALSE; - SidebarBranchOptions _tmp0_; -#line 239 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), FALSE); -#line 240 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->options; -#line 240 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = sidebar_branch_options_is_startup_expand_to_first_child (_tmp0_); -#line 240 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 502 "Branch.c" -} - - -gboolean -sidebar_branch_is_startup_open_grouping (SidebarBranch* self) -{ - gboolean result = FALSE; - SidebarBranchOptions _tmp0_; -#line 243 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), FALSE); -#line 244 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->options; -#line 244 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = sidebar_branch_options_is_startup_open_grouping (_tmp0_); -#line 244 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 519 "Branch.c" -} - - -void -sidebar_branch_graft (SidebarBranch* self, - SidebarEntry* parent, - SidebarEntry* entry, - GCompareFunc comparator) -{ - GeeHashMap* _tmp0_; - GeeHashMap* _tmp1_; - SidebarBranchOptions _tmp2_; - SidebarBranchNode* parent_node = NULL; - GeeHashMap* _tmp3_; - gpointer _tmp4_; - GCompareFunc _tmp5_ = NULL; - SidebarBranchNode* entry_node = NULL; - SidebarBranchNode* _tmp7_; - SidebarBranchNode* _tmp8_; - SidebarBranchNode* _tmp9_; - GeeHashMap* _tmp10_; -#line 247 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (self)); -#line 247 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (parent)); -#line 247 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 249 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->map; -#line 249 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), parent), "map.has_key(parent)"); -#line 250 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = self->priv->map; -#line 250 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry), "!map.has_key(entry)"); -#line 252 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = self->priv->options; -#line 252 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (sidebar_branch_options_is_hide_if_empty (_tmp2_)) { -#line 253 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_set_show_branch (self, TRUE); -#line 561 "Branch.c" - } -#line 255 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = self->priv->map; -#line 255 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), parent); -#line 255 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - parent_node = (SidebarBranchNode*) _tmp4_; -#line 257 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (comparator != NULL) { -#line 257 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp5_ = comparator; -#line 573 "Branch.c" - } else { - GCompareFunc _tmp6_; -#line 257 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp6_ = self->priv->default_comparator; -#line 257 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp5_ = _tmp6_; -#line 580 "Branch.c" - } -#line 256 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp7_ = parent_node; -#line 256 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp8_ = sidebar_branch_node_new (entry, _tmp7_, _tmp5_); -#line 256 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - entry_node = _tmp8_; -#line 259 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp9_ = parent_node; -#line 259 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_add_child (_tmp9_, entry_node); -#line 260 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp10_ = self->priv->map; -#line 260 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry, entry_node); -#line 262 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_signal_emit (self, sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_ADDED_SIGNAL], 0, entry); -#line 247 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (entry_node); -#line 247 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (parent_node); -#line 602 "Branch.c" -} - - -static void -_sidebar_branch_prune_callback_sidebar_branch_node_prune_callback (SidebarBranchNode* node, - gpointer self) -{ -#line 272 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_prune_callback ((SidebarBranch*) self, node); -#line 612 "Branch.c" -} - - -void -sidebar_branch_prune (SidebarBranch* self, - SidebarEntry* entry) -{ - SidebarBranchNode* _tmp0_; - SidebarEntry* _tmp1_; - GeeHashMap* _tmp2_; - SidebarBranchNode* entry_node = NULL; - GeeHashMap* _tmp3_; - gpointer _tmp4_; - SidebarBranchNode* _tmp5_; - SidebarBranchNode* _tmp6_; - SidebarBranchNode* _tmp7_; - SidebarBranchNode* _tmp8_; - SidebarBranchNode* _tmp9_; - SidebarBranchNode* _tmp10_; - gboolean removed = FALSE; - GeeHashMap* _tmp11_; - gboolean _tmp12_; - gboolean _tmp13_; - gboolean _tmp14_ = FALSE; - SidebarBranchOptions _tmp15_; -#line 266 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (self)); -#line 266 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 267 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->root; -#line 267 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = _tmp0_->entry; -#line 267 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (entry != _tmp1_, "entry != root.entry"); -#line 268 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = self->priv->map; -#line 268 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry), "map.has_key(entry)"); -#line 270 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = self->priv->map; -#line 270 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp4_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry); -#line 270 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - entry_node = (SidebarBranchNode*) _tmp4_; -#line 272 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp5_ = entry_node; -#line 272 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_prune_children (_tmp5_, _sidebar_branch_prune_callback_sidebar_branch_node_prune_callback, self); -#line 274 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp6_ = entry_node; -#line 274 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp7_ = _tmp6_->parent; -#line 274 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp7_ != NULL, "entry_node.parent != null"); -#line 275 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp8_ = entry_node; -#line 275 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp9_ = _tmp8_->parent; -#line 275 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp10_ = entry_node; -#line 275 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_remove_child (_tmp9_, _tmp10_); -#line 277 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp11_ = self->priv->map; -#line 277 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp12_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry, NULL); -#line 277 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - removed = _tmp12_; -#line 278 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp13_ = removed; -#line 278 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp13_, "removed"); -#line 280 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_signal_emit (self, sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_REMOVED_SIGNAL], 0, entry); -#line 282 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp15_ = self->priv->options; -#line 282 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (sidebar_branch_options_is_hide_if_empty (_tmp15_)) { -#line 692 "Branch.c" - SidebarBranchNode* _tmp16_; -#line 282 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp16_ = self->priv->root; -#line 282 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp14_ = !sidebar_branch_node_has_children (_tmp16_); -#line 698 "Branch.c" - } else { -#line 282 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp14_ = FALSE; -#line 702 "Branch.c" - } -#line 282 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (_tmp14_) { -#line 283 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_set_show_branch (self, FALSE); -#line 708 "Branch.c" - } -#line 266 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (entry_node); -#line 712 "Branch.c" -} - - -void -sidebar_branch_reparent (SidebarBranch* self, - SidebarEntry* new_parent, - SidebarEntry* entry) -{ - SidebarBranchNode* _tmp0_; - SidebarEntry* _tmp1_; - GeeHashMap* _tmp2_; - GeeHashMap* _tmp3_; - SidebarBranchNode* entry_node = NULL; - GeeHashMap* _tmp4_; - gpointer _tmp5_; - SidebarBranchNode* new_parent_node = NULL; - GeeHashMap* _tmp6_; - gpointer _tmp7_; - SidebarBranchNode* _tmp8_; - SidebarEntry* old_parent = NULL; - SidebarBranchNode* _tmp9_; - SidebarEntry* _tmp10_; - SidebarEntry* _tmp11_; - SidebarBranchNode* _tmp12_; -#line 287 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (self)); -#line 287 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (new_parent)); -#line 287 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 288 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->root; -#line 288 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = _tmp0_->entry; -#line 288 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (entry != _tmp1_, "entry != root.entry"); -#line 289 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = self->priv->map; -#line 289 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry), "map.has_key(entry)"); -#line 290 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = self->priv->map; -#line 290 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), new_parent), "map.has_key(new_parent)"); -#line 292 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp4_ = self->priv->map; -#line 292 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp5_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry); -#line 292 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - entry_node = (SidebarBranchNode*) _tmp5_; -#line 293 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp6_ = self->priv->map; -#line 293 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp7_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), new_parent); -#line 293 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - new_parent_node = (SidebarBranchNode*) _tmp7_; -#line 295 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp8_ = entry_node->parent; -#line 295 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp8_ != NULL, "entry_node.parent != null"); -#line 296 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp9_ = entry_node->parent; -#line 296 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp10_ = _tmp9_->entry; -#line 296 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp11_ = _g_object_ref0 (_tmp10_); -#line 296 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - old_parent = _tmp11_; -#line 298 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp12_ = entry_node->parent; -#line 298 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_remove_child (_tmp12_, entry_node); -#line 299 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_add_child (new_parent_node, entry_node); -#line 301 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_signal_emit (self, sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_REPARENTED_SIGNAL], 0, entry, old_parent); -#line 287 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (old_parent); -#line 287 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (new_parent_node); -#line 287 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (entry_node); -#line 795 "Branch.c" -} - - -gboolean -sidebar_branch_has_entry (SidebarBranch* self, - SidebarEntry* entry) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - SidebarBranchNode* _tmp1_; - SidebarEntry* _tmp2_; -#line 304 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), FALSE); -#line 304 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE); -#line 305 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = self->priv->root; -#line 305 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = _tmp1_->entry; -#line 305 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (_tmp2_ == entry) { -#line 305 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = TRUE; -#line 819 "Branch.c" - } else { - GeeHashMap* _tmp3_; -#line 305 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = self->priv->map; -#line 305 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry); -#line 826 "Branch.c" - } -#line 305 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = _tmp0_; -#line 305 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 832 "Branch.c" -} - - -void -sidebar_branch_reorder (SidebarBranch* self, - SidebarEntry* entry) -{ - SidebarBranchNode* _tmp0_; - SidebarEntry* _tmp1_; - SidebarBranchNode* entry_node = NULL; - GeeHashMap* _tmp2_; - gpointer _tmp3_; - SidebarBranchNode* _tmp4_; - SidebarBranchNode* _tmp5_; - SidebarBranchNode* _tmp6_; - SidebarBranchNode* _tmp7_; - SidebarBranchNode* _tmp8_; - SidebarBranchNode* _tmp9_; -#line 310 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (self)); -#line 310 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 311 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->root; -#line 311 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = _tmp0_->entry; -#line 311 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (entry != _tmp1_, "entry != root.entry"); -#line 313 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = self->priv->map; -#line 313 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry); -#line 313 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - entry_node = (SidebarBranchNode*) _tmp3_; -#line 314 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp4_ = entry_node; -#line 314 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp4_ != NULL, "entry_node != null"); -#line 316 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp5_ = entry_node; -#line 316 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp6_ = _tmp5_->parent; -#line 316 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp6_ != NULL, "entry_node.parent != null"); -#line 317 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp7_ = entry_node; -#line 317 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp8_ = _tmp7_->parent; -#line 317 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp9_ = entry_node; -#line 317 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (sidebar_branch_node_reorder_child (_tmp8_, _tmp9_)) { -#line 318 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_signal_emit (self, sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_MOVED_SIGNAL], 0, entry); -#line 887 "Branch.c" - } -#line 310 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (entry_node); -#line 891 "Branch.c" -} - - -static void -_sidebar_branch_children_reordered_callback_sidebar_branch_node_children_reordered_callback (SidebarBranchNode* node, - gpointer self) -{ -#line 323 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_children_reordered_callback ((SidebarBranch*) self, node); -#line 901 "Branch.c" -} - - -void -sidebar_branch_reorder_all (SidebarBranch* self) -{ - SidebarBranchNode* _tmp0_; -#line 322 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (self)); -#line 323 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->root; -#line 323 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_reorder_children (_tmp0_, TRUE, _sidebar_branch_children_reordered_callback_sidebar_branch_node_children_reordered_callback, self); -#line 915 "Branch.c" -} - - -void -sidebar_branch_reorder_children (SidebarBranch* self, - SidebarEntry* entry, - gboolean recursive) -{ - SidebarBranchNode* entry_node = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 327 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (self)); -#line 327 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 328 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->map; -#line 328 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry); -#line 328 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - entry_node = (SidebarBranchNode*) _tmp1_; -#line 329 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (entry_node != NULL, "entry_node != null"); -#line 331 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_reorder_children (entry_node, recursive, _sidebar_branch_children_reordered_callback_sidebar_branch_node_children_reordered_callback, self); -#line 327 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (entry_node); -#line 943 "Branch.c" -} - - -void -sidebar_branch_change_all_comparators (SidebarBranch* self, - GCompareFunc comparator) -{ - SidebarBranchNode* _tmp0_; -#line 334 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (self)); -#line 335 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->root; -#line 335 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_change_comparator (_tmp0_, comparator, TRUE, _sidebar_branch_children_reordered_callback_sidebar_branch_node_children_reordered_callback, self); -#line 958 "Branch.c" -} - - -void -sidebar_branch_change_comparator (SidebarBranch* self, - SidebarEntry* entry, - gboolean recursive, - GCompareFunc comparator) -{ - SidebarBranchNode* entry_node = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 338 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (self)); -#line 338 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 340 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->map; -#line 340 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry); -#line 340 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - entry_node = (SidebarBranchNode*) _tmp1_; -#line 341 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (entry_node != NULL, "entry_node != null"); -#line 343 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_change_comparator (entry_node, comparator, recursive, _sidebar_branch_children_reordered_callback_sidebar_branch_node_children_reordered_callback, self); -#line 338 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (entry_node); -#line 987 "Branch.c" -} - - -gint -sidebar_branch_get_child_count (SidebarBranch* self, - SidebarEntry* parent) -{ - gint result = 0; - SidebarBranchNode* parent_node = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - SidebarBranchNode* _tmp2_; - gint _tmp3_ = 0; - SidebarBranchNode* _tmp4_; - GeeSortedSet* _tmp5_; -#line 346 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), 0); -#line 346 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (parent), 0); -#line 347 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->map; -#line 347 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), parent); -#line 347 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - parent_node = (SidebarBranchNode*) _tmp1_; -#line 348 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = parent_node; -#line 348 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp2_ != NULL, "parent_node != null"); -#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp4_ = parent_node; -#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp5_ = _tmp4_->children; -#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (_tmp5_ != NULL) { -#line 1023 "Branch.c" - SidebarBranchNode* _tmp6_; - GeeSortedSet* _tmp7_; - gint _tmp8_; - gint _tmp9_; -#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp6_ = parent_node; -#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp7_ = _tmp6_->children; -#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp8_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp9_ = _tmp8_; -#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = _tmp9_; -#line 1038 "Branch.c" - } else { -#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = 0; -#line 1042 "Branch.c" - } -#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = _tmp3_; -#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (parent_node); -#line 350 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 1050 "Branch.c" -} - - -GeeList* -sidebar_branch_get_children (SidebarBranch* self, - SidebarEntry* parent) -{ - GeeList* result = NULL; - GeeHashMap* _tmp0_; - SidebarBranchNode* parent_node = NULL; - GeeHashMap* _tmp1_; - gpointer _tmp2_; - SidebarBranchNode* _tmp3_; - GeeSortedSet* _tmp4_; - GeeList* child_entries = NULL; - GeeArrayList* _tmp5_; -#line 355 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), NULL); -#line 355 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (parent), NULL); -#line 356 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->map; -#line 356 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), parent), "map.has_key(parent)"); -#line 358 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = self->priv->map; -#line 358 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), parent); -#line 358 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - parent_node = (SidebarBranchNode*) _tmp2_; -#line 359 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = parent_node; -#line 359 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp4_ = _tmp3_->children; -#line 359 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (_tmp4_ == NULL) { -#line 360 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = NULL; -#line 360 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (parent_node); -#line 360 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 1093 "Branch.c" - } -#line 362 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp5_ = gee_array_list_new (SIDEBAR_TYPE_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 362 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - child_entries = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_LIST, GeeList); -#line 1099 "Branch.c" - { - GeeIterator* _child_it = NULL; - SidebarBranchNode* _tmp6_; - GeeSortedSet* _tmp7_; - GeeIterator* _tmp8_; -#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp6_ = parent_node; -#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp7_ = _tmp6_->children; -#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp8_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _child_it = _tmp8_; -#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - while (TRUE) { -#line 1115 "Branch.c" - GeeIterator* _tmp9_; - SidebarBranchNode* child = NULL; - GeeIterator* _tmp10_; - gpointer _tmp11_; - GeeList* _tmp12_; - SidebarBranchNode* _tmp13_; - SidebarEntry* _tmp14_; -#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp9_ = _child_it; -#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (!gee_iterator_next (_tmp9_)) { -#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - break; -#line 1129 "Branch.c" - } -#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp10_ = _child_it; -#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp11_ = gee_iterator_get (_tmp10_); -#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - child = (SidebarBranchNode*) _tmp11_; -#line 364 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp12_ = child_entries; -#line 364 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp13_ = child; -#line 364 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp14_ = _tmp13_->entry; -#line 364 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection), _tmp14_); -#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (child); -#line 1147 "Branch.c" - } -#line 363 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (_child_it); -#line 1151 "Branch.c" - } -#line 366 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = child_entries; -#line 366 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (parent_node); -#line 366 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 1159 "Branch.c" -} - - -SidebarEntry* -sidebar_branch_find_first_child (SidebarBranch* self, - SidebarEntry* parent, - Locator locator, - void* locator_target) -{ - SidebarEntry* result = NULL; - SidebarBranchNode* parent_node = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - SidebarBranchNode* _tmp2_; - SidebarBranchNode* _tmp3_; - GeeSortedSet* _tmp4_; -#line 369 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), NULL); -#line 369 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (parent), NULL); -#line 370 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->map; -#line 370 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), parent); -#line 370 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - parent_node = (SidebarBranchNode*) _tmp1_; -#line 371 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = parent_node; -#line 371 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp2_ != NULL, "parent_node != null"); -#line 373 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = parent_node; -#line 373 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp4_ = _tmp3_->children; -#line 373 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (_tmp4_ == NULL) { -#line 374 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = NULL; -#line 374 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (parent_node); -#line 374 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 1202 "Branch.c" - } - { - GeeIterator* _child_it = NULL; - SidebarBranchNode* _tmp5_; - GeeSortedSet* _tmp6_; - GeeIterator* _tmp7_; -#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp5_ = parent_node; -#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp6_ = _tmp5_->children; -#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _child_it = _tmp7_; -#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - while (TRUE) { -#line 1219 "Branch.c" - GeeIterator* _tmp8_; - SidebarBranchNode* child = NULL; - GeeIterator* _tmp9_; - gpointer _tmp10_; - SidebarBranchNode* _tmp11_; - SidebarEntry* _tmp12_; -#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp8_ = _child_it; -#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (!gee_iterator_next (_tmp8_)) { -#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - break; -#line 1232 "Branch.c" - } -#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp9_ = _child_it; -#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp10_ = gee_iterator_get (_tmp9_); -#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - child = (SidebarBranchNode*) _tmp10_; -#line 377 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp11_ = child; -#line 377 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp12_ = _tmp11_->entry; -#line 377 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (locator (_tmp12_, locator_target)) { -#line 1246 "Branch.c" - SidebarBranchNode* _tmp13_; - SidebarEntry* _tmp14_; - SidebarEntry* _tmp15_; -#line 378 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp13_ = child; -#line 378 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp14_ = _tmp13_->entry; -#line 378 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp15_ = _g_object_ref0 (_tmp14_); -#line 378 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = _tmp15_; -#line 378 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (child); -#line 378 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (_child_it); -#line 378 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (parent_node); -#line 378 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 1266 "Branch.c" - } -#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (child); -#line 1270 "Branch.c" - } -#line 376 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (_child_it); -#line 1274 "Branch.c" - } -#line 381 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = NULL; -#line 381 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (parent_node); -#line 381 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 1282 "Branch.c" -} - - -SidebarEntry* -sidebar_branch_get_parent (SidebarBranch* self, - SidebarEntry* entry) -{ - SidebarEntry* result = NULL; - SidebarBranchNode* _tmp0_; - SidebarEntry* _tmp1_; - SidebarBranchNode* entry_node = NULL; - GeeHashMap* _tmp2_; - gpointer _tmp3_; - SidebarBranchNode* _tmp4_; - SidebarBranchNode* _tmp5_; - SidebarBranchNode* _tmp6_; - SidebarBranchNode* _tmp7_; - SidebarBranchNode* _tmp8_; - SidebarEntry* _tmp9_; - SidebarEntry* _tmp10_; -#line 385 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), NULL); -#line 385 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), NULL); -#line 386 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->root; -#line 386 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = _tmp0_->entry; -#line 386 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (entry == _tmp1_) { -#line 387 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = NULL; -#line 387 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 1317 "Branch.c" - } -#line 389 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = self->priv->map; -#line 389 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry); -#line 389 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - entry_node = (SidebarBranchNode*) _tmp3_; -#line 390 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp4_ = entry_node; -#line 390 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp4_ != NULL, "entry_node != null"); -#line 391 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp5_ = entry_node; -#line 391 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp6_ = _tmp5_->parent; -#line 391 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp6_ != NULL, "entry_node.parent != null"); -#line 393 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp7_ = entry_node; -#line 393 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp8_ = _tmp7_->parent; -#line 393 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp9_ = _tmp8_->entry; -#line 393 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp10_ = _g_object_ref0 (_tmp9_); -#line 393 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = _tmp10_; -#line 393 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (entry_node); -#line 393 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 1349 "Branch.c" -} - - -SidebarEntry* -sidebar_branch_get_previous_sibling (SidebarBranch* self, - SidebarEntry* entry) -{ - SidebarEntry* result = NULL; - SidebarBranchNode* _tmp0_; - SidebarEntry* _tmp1_; - SidebarBranchNode* entry_node = NULL; - GeeHashMap* _tmp2_; - gpointer _tmp3_; - SidebarBranchNode* _tmp4_; - SidebarBranchNode* _tmp5_; - SidebarBranchNode* _tmp6_; - SidebarBranchNode* _tmp7_; - SidebarBranchNode* _tmp8_; - GeeSortedSet* _tmp9_; - SidebarBranchNode* sibling = NULL; - SidebarBranchNode* _tmp10_; - SidebarBranchNode* _tmp11_; - GeeSortedSet* _tmp12_; - SidebarBranchNode* _tmp13_; - gpointer _tmp14_; - SidebarEntry* _tmp15_ = NULL; - SidebarBranchNode* _tmp16_; - SidebarEntry* _tmp19_; -#line 397 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), NULL); -#line 397 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), NULL); -#line 398 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->root; -#line 398 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = _tmp0_->entry; -#line 398 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (entry == _tmp1_) { -#line 399 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = NULL; -#line 399 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 1392 "Branch.c" - } -#line 401 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = self->priv->map; -#line 401 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry); -#line 401 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - entry_node = (SidebarBranchNode*) _tmp3_; -#line 402 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp4_ = entry_node; -#line 402 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp4_ != NULL, "entry_node != null"); -#line 403 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp5_ = entry_node; -#line 403 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp6_ = _tmp5_->parent; -#line 403 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp6_ != NULL, "entry_node.parent != null"); -#line 404 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp7_ = entry_node; -#line 404 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp8_ = _tmp7_->parent; -#line 404 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp9_ = _tmp8_->children; -#line 404 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp9_ != NULL, "entry_node.parent.children != null"); -#line 406 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp10_ = entry_node; -#line 406 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp11_ = _tmp10_->parent; -#line 406 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp12_ = _tmp11_->children; -#line 406 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp13_ = entry_node; -#line 406 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp14_ = gee_sorted_set_lower (_tmp12_, _tmp13_); -#line 406 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sibling = (SidebarBranchNode*) _tmp14_; -#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp16_ = sibling; -#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (_tmp16_ != NULL) { -#line 1434 "Branch.c" - SidebarBranchNode* _tmp17_; - SidebarEntry* _tmp18_; -#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp17_ = sibling; -#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp18_ = _tmp17_->entry; -#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp15_ = _tmp18_; -#line 1443 "Branch.c" - } else { -#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp15_ = NULL; -#line 1447 "Branch.c" - } -#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp19_ = _g_object_ref0 (_tmp15_); -#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = _tmp19_; -#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (sibling); -#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (entry_node); -#line 408 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 1459 "Branch.c" -} - - -SidebarEntry* -sidebar_branch_get_next_sibling (SidebarBranch* self, - SidebarEntry* entry) -{ - SidebarEntry* result = NULL; - SidebarBranchNode* _tmp0_; - SidebarEntry* _tmp1_; - SidebarBranchNode* entry_node = NULL; - GeeHashMap* _tmp2_; - gpointer _tmp3_; - SidebarBranchNode* _tmp4_; - SidebarBranchNode* _tmp5_; - SidebarBranchNode* _tmp6_; - SidebarBranchNode* _tmp7_; - SidebarBranchNode* _tmp8_; - GeeSortedSet* _tmp9_; - SidebarBranchNode* sibling = NULL; - SidebarBranchNode* _tmp10_; - SidebarBranchNode* _tmp11_; - GeeSortedSet* _tmp12_; - SidebarBranchNode* _tmp13_; - gpointer _tmp14_; - SidebarEntry* _tmp15_ = NULL; - SidebarBranchNode* _tmp16_; - SidebarEntry* _tmp19_; -#line 412 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_BRANCH (self), NULL); -#line 412 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), NULL); -#line 413 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->priv->root; -#line 413 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = _tmp0_->entry; -#line 413 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (entry == _tmp1_) { -#line 414 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = NULL; -#line 414 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 1502 "Branch.c" - } -#line 416 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = self->priv->map; -#line 416 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry); -#line 416 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - entry_node = (SidebarBranchNode*) _tmp3_; -#line 417 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp4_ = entry_node; -#line 417 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp4_ != NULL, "entry_node != null"); -#line 418 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp5_ = entry_node; -#line 418 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp6_ = _tmp5_->parent; -#line 418 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp6_ != NULL, "entry_node.parent != null"); -#line 419 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp7_ = entry_node; -#line 419 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp8_ = _tmp7_->parent; -#line 419 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp9_ = _tmp8_->children; -#line 419 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp9_ != NULL, "entry_node.parent.children != null"); -#line 421 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp10_ = entry_node; -#line 421 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp11_ = _tmp10_->parent; -#line 421 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp12_ = _tmp11_->children; -#line 421 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp13_ = entry_node; -#line 421 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp14_ = gee_sorted_set_higher (_tmp12_, _tmp13_); -#line 421 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sibling = (SidebarBranchNode*) _tmp14_; -#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp16_ = sibling; -#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (_tmp16_ != NULL) { -#line 1544 "Branch.c" - SidebarBranchNode* _tmp17_; - SidebarEntry* _tmp18_; -#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp17_ = sibling; -#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp18_ = _tmp17_->entry; -#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp15_ = _tmp18_; -#line 1553 "Branch.c" - } else { -#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp15_ = NULL; -#line 1557 "Branch.c" - } -#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp19_ = _g_object_ref0 (_tmp15_); -#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = _tmp19_; -#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (sibling); -#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (entry_node); -#line 423 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 1569 "Branch.c" -} - - -static void -sidebar_branch_prune_callback (SidebarBranch* self, - SidebarBranchNode* node) -{ - SidebarEntry* _tmp0_; -#line 426 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (self)); -#line 426 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (node)); -#line 427 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = node->entry; -#line 427 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_signal_emit (self, sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_REMOVED_SIGNAL], 0, _tmp0_); -#line 1586 "Branch.c" -} - - -static void -sidebar_branch_children_reordered_callback (SidebarBranch* self, - SidebarBranchNode* node) -{ - SidebarEntry* _tmp0_; -#line 430 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (self)); -#line 430 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (node)); -#line 431 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = node->entry; -#line 431 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_signal_emit (self, sidebar_branch_signals[SIDEBAR_BRANCH_CHILDREN_REORDERED_SIGNAL], 0, _tmp0_); -#line 1603 "Branch.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2); - register GMarshalFunc_VOID__OBJECT_OBJECT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (n_param_values == 3); -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - data1 = closure->data; -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - data2 = param_values->data[0].v_pointer; -#line 1629 "Branch.c" - } else { -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - data1 = param_values->data[0].v_pointer; -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - data2 = closure->data; -#line 1635 "Branch.c" - } -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback); -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2); -#line 1641 "Branch.c" -} - - -static SidebarBranchNode* -sidebar_branch_node_construct (GType object_type, - SidebarEntry* entry, - SidebarBranchNode* parent, - GCompareFunc comparator) -{ - SidebarBranchNode* self = NULL; - SidebarEntry* _tmp0_; -#line 45 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), NULL); -#line 45 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail ((parent == NULL) || SIDEBAR_BRANCH_IS_NODE (parent), NULL); -#line 45 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self = (SidebarBranchNode*) g_type_create_instance (object_type); -#line 46 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = _g_object_ref0 (entry); -#line 46 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (self->entry); -#line 46 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->entry = _tmp0_; -#line 47 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->parent = parent; -#line 48 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->comparator = comparator; -#line 45 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return self; -#line 1671 "Branch.c" -} - - -static SidebarBranchNode* -sidebar_branch_node_new (SidebarEntry* entry, - SidebarBranchNode* parent, - GCompareFunc comparator) -{ -#line 45 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return sidebar_branch_node_construct (SIDEBAR_BRANCH_TYPE_NODE, entry, parent, comparator); -#line 1682 "Branch.c" -} - - -static gint -sidebar_branch_node_comparator_wrapper (SidebarBranchNode* anode, - SidebarBranchNode* bnode) -{ - gint result = 0; - SidebarBranchNode* _tmp0_; - SidebarBranchNode* _tmp1_; - SidebarBranchNode* _tmp2_; - GCompareFunc _tmp3_; - SidebarEntry* _tmp4_; - SidebarEntry* _tmp5_; -#line 51 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_BRANCH_IS_NODE (anode), 0); -#line 51 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_BRANCH_IS_NODE (bnode), 0); -#line 52 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (anode == bnode) { -#line 53 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = 0; -#line 53 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 1707 "Branch.c" - } -#line 55 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = anode->parent; -#line 55 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = bnode->parent; -#line 55 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp0_ == _tmp1_, "anode.parent == bnode.parent"); -#line 57 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = anode->parent; -#line 57 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = _tmp2_->comparator; -#line 57 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp4_ = anode->entry; -#line 57 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp5_ = bnode->entry; -#line 57 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = _tmp3_ (_tmp4_, _tmp5_); -#line 57 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 1727 "Branch.c" -} - - -static gboolean -sidebar_branch_node_has_children (SidebarBranchNode* self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - GeeSortedSet* _tmp1_; -#line 60 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_BRANCH_IS_NODE (self), FALSE); -#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = self->children; -#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (_tmp1_ != NULL) { -#line 1743 "Branch.c" - GeeSortedSet* _tmp2_; - gint _tmp3_; - gint _tmp4_; -#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = self->children; -#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp4_ = _tmp3_; -#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = _tmp4_ > 0; -#line 1755 "Branch.c" - } else { -#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = FALSE; -#line 1759 "Branch.c" - } -#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = _tmp0_; -#line 61 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 1765 "Branch.c" -} - - -static gint -_sidebar_branch_node_comparator_wrapper_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = sidebar_branch_node_comparator_wrapper ((SidebarBranchNode*) a, (SidebarBranchNode*) b); -#line 68 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 1778 "Branch.c" -} - - -static void -sidebar_branch_node_add_child (SidebarBranchNode* self, - SidebarBranchNode* child) -{ - GeeSortedSet* _tmp0_; - gboolean added = FALSE; - GeeSortedSet* _tmp2_; -#line 64 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (self)); -#line 64 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (child)); -#line 65 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - child->parent = self; -#line 67 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->children; -#line 67 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (_tmp0_ == NULL) { -#line 1799 "Branch.c" - GeeTreeSet* _tmp1_; -#line 68 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = gee_tree_set_new (SIDEBAR_BRANCH_TYPE_NODE, (GBoxedCopyFunc) sidebar_branch_node_ref, (GDestroyNotify) sidebar_branch_node_unref, _sidebar_branch_node_comparator_wrapper_gcompare_data_func, NULL, NULL); -#line 68 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (self->children); -#line 68 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->children = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SORTED_SET, GeeSortedSet); -#line 1807 "Branch.c" - } -#line 70 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = self->children; -#line 70 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - added = gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), child); -#line 71 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (added, "added"); -#line 1815 "Branch.c" -} - - -static void -sidebar_branch_node_remove_child (SidebarBranchNode* self, - SidebarBranchNode* child) -{ - GeeSortedSet* _tmp0_; - GeeSortedSet* new_children = NULL; - GeeTreeSet* _tmp1_; - gboolean found = FALSE; - gboolean _tmp10_; - GeeSortedSet* _tmp11_; - gint _tmp12_; - gint _tmp13_; -#line 74 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (self)); -#line 74 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (child)); -#line 75 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->children; -#line 75 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp0_ != NULL, "children != null"); -#line 77 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = gee_tree_set_new (SIDEBAR_BRANCH_TYPE_NODE, (GBoxedCopyFunc) sidebar_branch_node_ref, (GDestroyNotify) sidebar_branch_node_unref, _sidebar_branch_node_comparator_wrapper_gcompare_data_func, NULL, NULL); -#line 77 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - new_children = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SORTED_SET, GeeSortedSet); -#line 81 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - found = FALSE; -#line 1845 "Branch.c" - { - GeeIterator* _c_it = NULL; - GeeSortedSet* _tmp2_; - GeeIterator* _tmp3_; -#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = self->children; -#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _c_it = _tmp3_; -#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - while (TRUE) { -#line 1858 "Branch.c" - GeeIterator* _tmp4_; - SidebarBranchNode* c = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - SidebarBranchNode* _tmp7_; -#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp4_ = _c_it; -#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - break; -#line 1870 "Branch.c" - } -#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp5_ = _c_it; -#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - c = (SidebarBranchNode*) _tmp6_; -#line 83 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp7_ = c; -#line 83 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (_tmp7_ != child) { -#line 1882 "Branch.c" - GeeSortedSet* _tmp8_; - SidebarBranchNode* _tmp9_; -#line 84 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp8_ = new_children; -#line 84 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp9_ = c; -#line 84 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection), _tmp9_); -#line 1891 "Branch.c" - } else { -#line 86 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - found = TRUE; -#line 1895 "Branch.c" - } -#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (c); -#line 1899 "Branch.c" - } -#line 82 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (_c_it); -#line 1903 "Branch.c" - } -#line 89 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp10_ = found; -#line 89 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp10_, "found"); -#line 91 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp11_ = new_children; -#line 91 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 91 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp13_ = _tmp12_; -#line 91 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (_tmp13_ != 0) { -#line 1917 "Branch.c" - GeeSortedSet* _tmp14_; - GeeSortedSet* _tmp15_; -#line 92 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp14_ = new_children; -#line 92 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp15_ = _g_object_ref0 (_tmp14_); -#line 92 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (self->children); -#line 92 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->children = _tmp15_; -#line 1928 "Branch.c" - } else { -#line 94 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (self->children); -#line 94 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->children = NULL; -#line 1934 "Branch.c" - } -#line 96 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - child->parent = NULL; -#line 74 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (new_children); -#line 1940 "Branch.c" -} - - -static void -sidebar_branch_node_prune_children (SidebarBranchNode* self, - SidebarBranchNodePruneCallback cb, - void* cb_target) -{ - GeeSortedSet* _tmp0_; - GeeSortedSet* old_children = NULL; - GeeSortedSet* _tmp7_; - GeeSortedSet* _tmp8_; -#line 99 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (self)); -#line 100 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->children; -#line 100 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (_tmp0_ == NULL) { -#line 101 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return; -#line 1961 "Branch.c" - } - { - GeeIterator* _child_it = NULL; - GeeSortedSet* _tmp1_; - GeeIterator* _tmp2_; -#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = self->children; -#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _child_it = _tmp2_; -#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - while (TRUE) { -#line 1975 "Branch.c" - GeeIterator* _tmp3_; - SidebarBranchNode* child = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - SidebarBranchNode* _tmp6_; -#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = _child_it; -#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - break; -#line 1987 "Branch.c" - } -#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp4_ = _child_it; -#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - child = (SidebarBranchNode*) _tmp5_; -#line 104 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp6_ = child; -#line 104 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_prune_children (_tmp6_, cb, cb_target); -#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (child); -#line 2001 "Branch.c" - } -#line 103 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (_child_it); -#line 2005 "Branch.c" - } -#line 106 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp7_ = self->children; -#line 106 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp8_ = _g_object_ref0 (_tmp7_); -#line 106 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - old_children = _tmp8_; -#line 107 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (self->children); -#line 107 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->children = NULL; -#line 2017 "Branch.c" - { - GeeIterator* _child_it = NULL; - GeeSortedSet* _tmp9_; - GeeIterator* _tmp10_; -#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp9_ = old_children; -#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _child_it = _tmp10_; -#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - while (TRUE) { -#line 2030 "Branch.c" - GeeIterator* _tmp11_; - SidebarBranchNode* child = NULL; - GeeIterator* _tmp12_; - gpointer _tmp13_; - SidebarBranchNode* _tmp14_; -#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp11_ = _child_it; -#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (!gee_iterator_next (_tmp11_)) { -#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - break; -#line 2042 "Branch.c" - } -#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp12_ = _child_it; -#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp13_ = gee_iterator_get (_tmp12_); -#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - child = (SidebarBranchNode*) _tmp13_; -#line 113 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp14_ = child; -#line 113 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - cb (_tmp14_, cb_target); -#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (child); -#line 2056 "Branch.c" - } -#line 112 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (_child_it); -#line 2060 "Branch.c" - } -#line 99 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (old_children); -#line 2064 "Branch.c" -} - - -static gint -sidebar_branch_node_index_of_by_reference (SidebarBranchNode* self, - SidebarBranchNode* child) -{ - gint result = 0; - GeeSortedSet* _tmp0_; - gint index = 0; -#line 118 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_BRANCH_IS_NODE (self), 0); -#line 118 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_BRANCH_IS_NODE (child), 0); -#line 119 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->children; -#line 119 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (_tmp0_ == NULL) { -#line 120 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = -1; -#line 120 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 2087 "Branch.c" - } -#line 122 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - index = 0; -#line 2091 "Branch.c" - { - GeeIterator* _c_it = NULL; - GeeSortedSet* _tmp1_; - GeeIterator* _tmp2_; -#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = self->children; -#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _c_it = _tmp2_; -#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - while (TRUE) { -#line 2104 "Branch.c" - GeeIterator* _tmp3_; - SidebarBranchNode* c = NULL; - GeeIterator* _tmp4_; - gpointer _tmp5_; - SidebarBranchNode* _tmp6_; - gint _tmp7_; -#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = _c_it; -#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (!gee_iterator_next (_tmp3_)) { -#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - break; -#line 2117 "Branch.c" - } -#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp4_ = _c_it; -#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp5_ = gee_iterator_get (_tmp4_); -#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - c = (SidebarBranchNode*) _tmp5_; -#line 124 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp6_ = c; -#line 124 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (child == _tmp6_) { -#line 125 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = index; -#line 125 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (c); -#line 125 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (_c_it); -#line 125 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 2137 "Branch.c" - } -#line 127 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp7_ = index; -#line 127 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - index = _tmp7_ + 1; -#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (c); -#line 2145 "Branch.c" - } -#line 123 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (_c_it); -#line 2149 "Branch.c" - } -#line 130 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = -1; -#line 130 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 2155 "Branch.c" -} - - -static gboolean -sidebar_branch_node_reorder_child (SidebarBranchNode* self, - SidebarBranchNode* child) -{ - gboolean result = FALSE; - GeeSortedSet* _tmp0_; - gint old_index = 0; - GeeSortedSet* new_children = NULL; - GeeTreeSet* _tmp1_; - gboolean added = FALSE; - GeeSortedSet* _tmp2_; - GeeSortedSet* _tmp3_; - gint new_index = 0; -#line 134 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_BRANCH_IS_NODE (self), FALSE); -#line 134 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (SIDEBAR_BRANCH_IS_NODE (child), FALSE); -#line 135 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->children; -#line 135 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (_tmp0_ != NULL, "children != null"); -#line 137 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - old_index = sidebar_branch_node_index_of_by_reference (self, child); -#line 138 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (old_index >= 0, "old_index >= 0"); -#line 146 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = gee_tree_set_new (SIDEBAR_BRANCH_TYPE_NODE, (GBoxedCopyFunc) sidebar_branch_node_ref, (GDestroyNotify) sidebar_branch_node_unref, _sidebar_branch_node_comparator_wrapper_gcompare_data_func, NULL, NULL); -#line 146 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - new_children = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SORTED_SET, GeeSortedSet); -#line 147 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = self->children; -#line 147 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - added = gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (new_children, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 148 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (added, "added"); -#line 150 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = _g_object_ref0 (new_children); -#line 150 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (self->children); -#line 150 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->children = _tmp3_; -#line 152 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - new_index = sidebar_branch_node_index_of_by_reference (self, child); -#line 153 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _vala_assert (new_index >= 0, "new_index >= 0"); -#line 155 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - result = old_index != new_index; -#line 155 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (new_children); -#line 155 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return result; -#line 2210 "Branch.c" -} - - -static void -sidebar_branch_node_reorder_children (SidebarBranchNode* self, - gboolean recursive, - SidebarBranchNodeChildrenReorderedCallback cb, - void* cb_target) -{ - GeeSortedSet* _tmp0_; - GeeSortedSet* reordered = NULL; - GeeTreeSet* _tmp1_; - GeeSortedSet* _tmp2_; - GeeSortedSet* _tmp3_; - GeeSortedSet* _tmp4_; - GeeSortedSet* _tmp5_; -#line 158 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (self)); -#line 159 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->children; -#line 159 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (_tmp0_ == NULL) { -#line 160 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return; -#line 2235 "Branch.c" - } -#line 162 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = gee_tree_set_new (SIDEBAR_BRANCH_TYPE_NODE, (GBoxedCopyFunc) sidebar_branch_node_ref, (GDestroyNotify) sidebar_branch_node_unref, _sidebar_branch_node_comparator_wrapper_gcompare_data_func, NULL, NULL); -#line 162 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - reordered = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SORTED_SET, GeeSortedSet); -#line 163 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = reordered; -#line 163 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = self->children; -#line 163 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 164 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp4_ = reordered; -#line 164 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp5_ = _g_object_ref0 (_tmp4_); -#line 164 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (self->children); -#line 164 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->children = _tmp5_; -#line 166 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (recursive) { -#line 2257 "Branch.c" - { - GeeIterator* _child_it = NULL; - GeeSortedSet* _tmp6_; - GeeIterator* _tmp7_; -#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp6_ = self->children; -#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp7_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _child_it = _tmp7_; -#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - while (TRUE) { -#line 2270 "Branch.c" - GeeIterator* _tmp8_; - SidebarBranchNode* child = NULL; - GeeIterator* _tmp9_; - gpointer _tmp10_; - SidebarBranchNode* _tmp11_; -#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp8_ = _child_it; -#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (!gee_iterator_next (_tmp8_)) { -#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - break; -#line 2282 "Branch.c" - } -#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp9_ = _child_it; -#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp10_ = gee_iterator_get (_tmp9_); -#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - child = (SidebarBranchNode*) _tmp10_; -#line 168 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp11_ = child; -#line 168 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_reorder_children (_tmp11_, TRUE, cb, cb_target); -#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (child); -#line 2296 "Branch.c" - } -#line 167 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (_child_it); -#line 2300 "Branch.c" - } - } -#line 171 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - cb (self, cb_target); -#line 158 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (reordered); -#line 2307 "Branch.c" -} - - -static void -sidebar_branch_node_change_comparator (SidebarBranchNode* self, - GCompareFunc comparator, - gboolean recursive, - SidebarBranchNodeChildrenReorderedCallback cb, - void* cb_target) -{ -#line 174 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (SIDEBAR_BRANCH_IS_NODE (self)); -#line 176 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->comparator = comparator; -#line 179 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_reorder_children (self, FALSE, cb, cb_target); -#line 181 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (recursive) { -#line 2326 "Branch.c" - { - GeeIterator* _child_it = NULL; - GeeSortedSet* _tmp0_; - GeeIterator* _tmp1_; -#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = self->children; -#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _child_it = _tmp1_; -#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - while (TRUE) { -#line 2339 "Branch.c" - GeeIterator* _tmp2_; - SidebarBranchNode* child = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - SidebarBranchNode* _tmp5_; -#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp2_ = _child_it; -#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - break; -#line 2351 "Branch.c" - } -#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp3_ = _child_it; -#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - child = (SidebarBranchNode*) _tmp4_; -#line 183 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp5_ = child; -#line 183 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_change_comparator (_tmp5_, comparator, TRUE, cb, cb_target); -#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (child); -#line 2365 "Branch.c" - } -#line 182 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (_child_it); -#line 2369 "Branch.c" - } - } -} - - -static void -sidebar_branch_value_node_init (GValue* value) -{ -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - value->data[0].v_pointer = NULL; -#line 2380 "Branch.c" -} - - -static void -sidebar_branch_value_node_free_value (GValue* value) -{ -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (value->data[0].v_pointer) { -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_unref (value->data[0].v_pointer); -#line 2391 "Branch.c" - } -} - - -static void -sidebar_branch_value_node_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (src_value->data[0].v_pointer) { -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - dest_value->data[0].v_pointer = sidebar_branch_node_ref (src_value->data[0].v_pointer); -#line 2404 "Branch.c" - } else { -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - dest_value->data[0].v_pointer = NULL; -#line 2408 "Branch.c" - } -} - - -static gpointer -sidebar_branch_value_node_peek_pointer (const GValue* value) -{ -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return value->data[0].v_pointer; -#line 2418 "Branch.c" -} - - -static gchar* -sidebar_branch_value_node_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (collect_values[0].v_pointer) { -#line 2430 "Branch.c" - SidebarBranchNode * object; - object = collect_values[0].v_pointer; -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (object->parent_instance.g_class == NULL) { -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2437 "Branch.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2441 "Branch.c" - } -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - value->data[0].v_pointer = sidebar_branch_node_ref (object); -#line 2445 "Branch.c" - } else { -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - value->data[0].v_pointer = NULL; -#line 2449 "Branch.c" - } -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return NULL; -#line 2453 "Branch.c" -} - - -static gchar* -sidebar_branch_value_node_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - SidebarBranchNode ** object_p; - object_p = collect_values[0].v_pointer; -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (!object_p) { -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2469 "Branch.c" - } -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (!value->data[0].v_pointer) { -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - *object_p = NULL; -#line 2475 "Branch.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - *object_p = value->data[0].v_pointer; -#line 2479 "Branch.c" - } else { -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - *object_p = sidebar_branch_node_ref (value->data[0].v_pointer); -#line 2483 "Branch.c" - } -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return NULL; -#line 2487 "Branch.c" -} - - -static GParamSpec* -sidebar_branch_param_spec_node (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - SidebarBranchParamSpecNode* spec; -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (g_type_is_a (object_type, SIDEBAR_BRANCH_TYPE_NODE), NULL); -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return G_PARAM_SPEC (spec); -#line 2507 "Branch.c" -} - - -static gpointer -sidebar_branch_value_get_node (const GValue* value) -{ -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SIDEBAR_BRANCH_TYPE_NODE), NULL); -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return value->data[0].v_pointer; -#line 2518 "Branch.c" -} - - -static void -sidebar_branch_value_set_node (GValue* value, - gpointer v_object) -{ - SidebarBranchNode * old; -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SIDEBAR_BRANCH_TYPE_NODE)); -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - old = value->data[0].v_pointer; -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (v_object) { -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SIDEBAR_BRANCH_TYPE_NODE)); -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - value->data[0].v_pointer = v_object; -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_ref (value->data[0].v_pointer); -#line 2541 "Branch.c" - } else { -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - value->data[0].v_pointer = NULL; -#line 2545 "Branch.c" - } -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (old) { -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_unref (old); -#line 2551 "Branch.c" - } -} - - -static void -sidebar_branch_value_take_node (GValue* value, - gpointer v_object) -{ - SidebarBranchNode * old; -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, SIDEBAR_BRANCH_TYPE_NODE)); -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - old = value->data[0].v_pointer; -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (v_object) { -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, SIDEBAR_BRANCH_TYPE_NODE)); -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - value->data[0].v_pointer = v_object; -#line 2573 "Branch.c" - } else { -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - value->data[0].v_pointer = NULL; -#line 2577 "Branch.c" - } -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (old) { -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_unref (old); -#line 2583 "Branch.c" - } -} - - -static void -sidebar_branch_node_class_init (SidebarBranchNodeClass * klass) -{ -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_node_parent_class = g_type_class_peek_parent (klass); -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - ((SidebarBranchNodeClass *) klass)->finalize = sidebar_branch_node_finalize; -#line 2595 "Branch.c" -} - - -static void -sidebar_branch_node_instance_init (SidebarBranchNode * self) -{ -#line 43 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->children = NULL; -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->ref_count = 1; -#line 2606 "Branch.c" -} - - -static void -sidebar_branch_node_finalize (SidebarBranchNode * obj) -{ - SidebarBranchNode * self; -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SIDEBAR_BRANCH_TYPE_NODE, SidebarBranchNode); -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_signal_handlers_destroy (self); -#line 40 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (self->entry); -#line 43 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (self->children); -#line 2622 "Branch.c" -} - - -static GType -sidebar_branch_node_get_type (void) -{ - static volatile gsize sidebar_branch_node_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_branch_node_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { sidebar_branch_value_node_init, sidebar_branch_value_node_free_value, sidebar_branch_value_node_copy_value, sidebar_branch_value_node_peek_pointer, "p", sidebar_branch_value_node_collect_value, "p", sidebar_branch_value_node_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (SidebarBranchNodeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_branch_node_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarBranchNode), 0, (GInstanceInitFunc) sidebar_branch_node_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType sidebar_branch_node_type_id; - sidebar_branch_node_type_id = g_type_register_fundamental (g_type_fundamental_next (), "SidebarBranchNode", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&sidebar_branch_node_type_id__volatile, sidebar_branch_node_type_id); - } - return sidebar_branch_node_type_id__volatile; -} - - -static gpointer -sidebar_branch_node_ref (gpointer instance) -{ - SidebarBranchNode * self; - self = instance; -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_atomic_int_inc (&self->ref_count); -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - return instance; -#line 2651 "Branch.c" -} - - -static void -sidebar_branch_node_unref (gpointer instance) -{ - SidebarBranchNode * self; - self = instance; -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - SIDEBAR_BRANCH_NODE_GET_CLASS (self)->finalize (self); -#line 35 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2666 "Branch.c" - } -} - - -static void -sidebar_branch_class_init (SidebarBranchClass * klass) -{ -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_parent_class = g_type_class_peek_parent (klass); -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - g_type_class_add_private (klass, sizeof (SidebarBranchPrivate)); -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - G_OBJECT_CLASS (klass)->finalize = sidebar_branch_finalize; -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_ADDED_SIGNAL] = g_signal_new ("entry-added", SIDEBAR_TYPE_BRANCH, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, SIDEBAR_TYPE_ENTRY); -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_REMOVED_SIGNAL] = g_signal_new ("entry-removed", SIDEBAR_TYPE_BRANCH, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, SIDEBAR_TYPE_ENTRY); -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_MOVED_SIGNAL] = g_signal_new ("entry-moved", SIDEBAR_TYPE_BRANCH, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, SIDEBAR_TYPE_ENTRY); -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_signals[SIDEBAR_BRANCH_ENTRY_REPARENTED_SIGNAL] = g_signal_new ("entry-reparented", SIDEBAR_TYPE_BRANCH, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, SIDEBAR_TYPE_ENTRY, SIDEBAR_TYPE_ENTRY); -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_signals[SIDEBAR_BRANCH_CHILDREN_REORDERED_SIGNAL] = g_signal_new ("children-reordered", SIDEBAR_TYPE_BRANCH, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, SIDEBAR_TYPE_ENTRY); -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - sidebar_branch_signals[SIDEBAR_BRANCH_SHOW_BRANCH_SIGNAL] = g_signal_new ("show-branch", SIDEBAR_TYPE_BRANCH, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); -#line 2692 "Branch.c" -} - - -static void -sidebar_branch_instance_init (SidebarBranch * self) -{ - GeeHashMap* _tmp0_; -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->priv = SIDEBAR_BRANCH_GET_PRIVATE (self); -#line 190 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->priv->shown = TRUE; -#line 192 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _tmp0_ = gee_hash_map_new (SIDEBAR_TYPE_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, SIDEBAR_BRANCH_TYPE_NODE, (GBoxedCopyFunc) sidebar_branch_node_ref, (GDestroyNotify) sidebar_branch_node_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 192 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self->priv->map = _tmp0_; -#line 2708 "Branch.c" -} - - -static void -sidebar_branch_finalize (GObject * obj) -{ - SidebarBranch * self; -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SIDEBAR_TYPE_BRANCH, SidebarBranch); -#line 188 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _sidebar_branch_node_unref0 (self->priv->root); -#line 192 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - _g_object_unref0 (self->priv->map); -#line 9 "/home/jens/Source/shotwell/src/sidebar/Branch.vala" - G_OBJECT_CLASS (sidebar_branch_parent_class)->finalize (obj); -#line 2724 "Branch.c" -} - - -GType -sidebar_branch_get_type (void) -{ - static volatile gsize sidebar_branch_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_branch_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarBranch), 0, (GInstanceInitFunc) sidebar_branch_instance_init, NULL }; - GType sidebar_branch_type_id; - sidebar_branch_type_id = g_type_register_static (G_TYPE_OBJECT, "SidebarBranch", &g_define_type_info, 0); - g_once_init_leave (&sidebar_branch_type_id__volatile, sidebar_branch_type_id); - } - return sidebar_branch_type_id__volatile; -} - - - diff --git a/src/sidebar/Entry.c b/src/sidebar/Entry.c deleted file mode 100644 index ab4bbdb..0000000 --- a/src/sidebar/Entry.c +++ /dev/null @@ -1,750 +0,0 @@ -/* Entry.c generated by valac 0.40.4, the Vala compiler - * generated from Entry.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include - - -#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ()) -#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry)) -#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY)) -#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface)) - -typedef struct _SidebarEntry SidebarEntry; -typedef struct _SidebarEntryIface SidebarEntryIface; - -#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ()) -#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree)) -#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass)) -#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass)) - -typedef struct _SidebarTree SidebarTree; -typedef struct _SidebarTreeClass SidebarTreeClass; -enum { - SIDEBAR_ENTRY_SIDEBAR_TOOLTIP_CHANGED_SIGNAL, - SIDEBAR_ENTRY_SIDEBAR_ICON_CHANGED_SIGNAL, - SIDEBAR_ENTRY_NUM_SIGNALS -}; -static guint sidebar_entry_signals[SIDEBAR_ENTRY_NUM_SIGNALS] = {0}; - -#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ()) -#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry)) -#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY)) -#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface)) - -typedef struct _SidebarExpandableEntry SidebarExpandableEntry; -typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface; - -#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ()) -#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry)) -#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY)) -#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface)) - -typedef struct _SidebarSelectableEntry SidebarSelectableEntry; -typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface; - -#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ()) -#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)) -#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE)) -#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface)) - -typedef struct _SidebarPageRepresentative SidebarPageRepresentative; -typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -enum { - SIDEBAR_PAGE_REPRESENTATIVE_PAGE_CREATED_SIGNAL, - SIDEBAR_PAGE_REPRESENTATIVE_DESTROYING_PAGE_SIGNAL, - SIDEBAR_PAGE_REPRESENTATIVE_NUM_SIGNALS -}; -static guint sidebar_page_representative_signals[SIDEBAR_PAGE_REPRESENTATIVE_NUM_SIGNALS] = {0}; - -#define SIDEBAR_TYPE_RENAMEABLE_ENTRY (sidebar_renameable_entry_get_type ()) -#define SIDEBAR_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry)) -#define SIDEBAR_IS_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY)) -#define SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntryIface)) - -typedef struct _SidebarRenameableEntry SidebarRenameableEntry; -typedef struct _SidebarRenameableEntryIface SidebarRenameableEntryIface; -enum { - SIDEBAR_RENAMEABLE_ENTRY_SIDEBAR_NAME_CHANGED_SIGNAL, - SIDEBAR_RENAMEABLE_ENTRY_NUM_SIGNALS -}; -static guint sidebar_renameable_entry_signals[SIDEBAR_RENAMEABLE_ENTRY_NUM_SIGNALS] = {0}; - -#define SIDEBAR_TYPE_EMPHASIZABLE_ENTRY (sidebar_emphasizable_entry_get_type ()) -#define SIDEBAR_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntry)) -#define SIDEBAR_IS_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY)) -#define SIDEBAR_EMPHASIZABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntryIface)) - -typedef struct _SidebarEmphasizableEntry SidebarEmphasizableEntry; -typedef struct _SidebarEmphasizableEntryIface SidebarEmphasizableEntryIface; -enum { - SIDEBAR_EMPHASIZABLE_ENTRY_IS_EMPHASIZED_CHANGED_SIGNAL, - SIDEBAR_EMPHASIZABLE_ENTRY_NUM_SIGNALS -}; -static guint sidebar_emphasizable_entry_signals[SIDEBAR_EMPHASIZABLE_ENTRY_NUM_SIGNALS] = {0}; - -#define SIDEBAR_TYPE_DESTROYABLE_ENTRY (sidebar_destroyable_entry_get_type ()) -#define SIDEBAR_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntry)) -#define SIDEBAR_IS_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY)) -#define SIDEBAR_DESTROYABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntryIface)) - -typedef struct _SidebarDestroyableEntry SidebarDestroyableEntry; -typedef struct _SidebarDestroyableEntryIface SidebarDestroyableEntryIface; - -#define SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY (sidebar_internal_drop_target_entry_get_type ()) -#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntry)) -#define SIDEBAR_IS_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY)) -#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntryIface)) - -typedef struct _SidebarInternalDropTargetEntry SidebarInternalDropTargetEntry; -typedef struct _SidebarInternalDropTargetEntryIface SidebarInternalDropTargetEntryIface; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY (sidebar_internal_drag_source_entry_get_type ()) -#define SIDEBAR_INTERNAL_DRAG_SOURCE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, SidebarInternalDragSourceEntry)) -#define SIDEBAR_IS_INTERNAL_DRAG_SOURCE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY)) -#define SIDEBAR_INTERNAL_DRAG_SOURCE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, SidebarInternalDragSourceEntryIface)) - -typedef struct _SidebarInternalDragSourceEntry SidebarInternalDragSourceEntry; -typedef struct _SidebarInternalDragSourceEntryIface SidebarInternalDragSourceEntryIface; - -struct _SidebarEntryIface { - GTypeInterface parent_iface; - gchar* (*get_sidebar_name) (SidebarEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarEntry* self); - gchar* (*get_sidebar_icon) (SidebarEntry* self); - gchar* (*to_string) (SidebarEntry* self); - void (*grafted) (SidebarEntry* self, SidebarTree* tree); - void (*pruned) (SidebarEntry* self, SidebarTree* tree); -}; - -struct _SidebarExpandableEntryIface { - GTypeInterface parent_iface; - gboolean (*expand_on_select) (SidebarExpandableEntry* self); -}; - -struct _SidebarSelectableEntryIface { - GTypeInterface parent_iface; -}; - -struct _SidebarPageRepresentativeIface { - GTypeInterface parent_iface; - gboolean (*has_page) (SidebarPageRepresentative* self); - Page* (*get_page) (SidebarPageRepresentative* self); -}; - -struct _SidebarRenameableEntryIface { - GTypeInterface parent_iface; - void (*rename) (SidebarRenameableEntry* self, const gchar* new_name); - gboolean (*is_user_renameable) (SidebarRenameableEntry* self); -}; - -struct _SidebarEmphasizableEntryIface { - GTypeInterface parent_iface; - gboolean (*is_emphasized) (SidebarEmphasizableEntry* self); -}; - -struct _SidebarDestroyableEntryIface { - GTypeInterface parent_iface; - void (*destroy_source) (SidebarDestroyableEntry* self); -}; - -struct _SidebarInternalDropTargetEntryIface { - GTypeInterface parent_iface; - gboolean (*internal_drop_received) (SidebarInternalDropTargetEntry* self, GeeList* sources); - gboolean (*internal_drop_received_arbitrary) (SidebarInternalDropTargetEntry* self, GtkSelectionData* data); -}; - -struct _SidebarInternalDragSourceEntryIface { - GTypeInterface parent_iface; - void (*prepare_selection_data) (SidebarInternalDragSourceEntry* self, GtkSelectionData* data); -}; - - - -GType sidebar_tree_get_type (void) G_GNUC_CONST; -GType sidebar_entry_get_type (void) G_GNUC_CONST; -gchar* sidebar_entry_get_sidebar_name (SidebarEntry* self); -gchar* sidebar_entry_get_sidebar_tooltip (SidebarEntry* self); -gchar* sidebar_entry_get_sidebar_icon (SidebarEntry* self); -gchar* sidebar_entry_to_string (SidebarEntry* self); -void sidebar_entry_grafted (SidebarEntry* self, - SidebarTree* tree); -static void sidebar_entry_real_grafted (SidebarEntry* self, - SidebarTree* tree); -void sidebar_entry_pruned (SidebarEntry* self, - SidebarTree* tree); -static void sidebar_entry_real_pruned (SidebarEntry* self, - SidebarTree* tree); -GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST; -gboolean sidebar_expandable_entry_expand_on_select (SidebarExpandableEntry* self); -GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType sidebar_page_representative_get_type (void) G_GNUC_CONST; -gboolean sidebar_page_representative_has_page (SidebarPageRepresentative* self); -Page* sidebar_page_representative_get_page (SidebarPageRepresentative* self); -GType sidebar_renameable_entry_get_type (void) G_GNUC_CONST; -void sidebar_renameable_entry_rename (SidebarRenameableEntry* self, - const gchar* new_name); -gboolean sidebar_renameable_entry_is_user_renameable (SidebarRenameableEntry* self); -GType sidebar_emphasizable_entry_get_type (void) G_GNUC_CONST; -gboolean sidebar_emphasizable_entry_is_emphasized (SidebarEmphasizableEntry* self); -GType sidebar_destroyable_entry_get_type (void) G_GNUC_CONST; -void sidebar_destroyable_entry_destroy_source (SidebarDestroyableEntry* self); -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType sidebar_internal_drop_target_entry_get_type (void) G_GNUC_CONST; -gboolean sidebar_internal_drop_target_entry_internal_drop_received (SidebarInternalDropTargetEntry* self, - GeeList* sources); -gboolean sidebar_internal_drop_target_entry_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* self, - GtkSelectionData* data); -GType sidebar_internal_drag_source_entry_get_type (void) G_GNUC_CONST; -void sidebar_internal_drag_source_entry_prepare_selection_data (SidebarInternalDragSourceEntry* self, - GtkSelectionData* data); - - -gchar* -sidebar_entry_get_sidebar_name (SidebarEntry* self) -{ -#line 12 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (self), NULL); -#line 12 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - return SIDEBAR_ENTRY_GET_INTERFACE (self)->get_sidebar_name (self); -#line 278 "Entry.c" -} - - -gchar* -sidebar_entry_get_sidebar_tooltip (SidebarEntry* self) -{ -#line 14 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (self), NULL); -#line 14 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - return SIDEBAR_ENTRY_GET_INTERFACE (self)->get_sidebar_tooltip (self); -#line 289 "Entry.c" -} - - -gchar* -sidebar_entry_get_sidebar_icon (SidebarEntry* self) -{ -#line 16 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (self), NULL); -#line 16 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - return SIDEBAR_ENTRY_GET_INTERFACE (self)->get_sidebar_icon (self); -#line 300 "Entry.c" -} - - -gchar* -sidebar_entry_to_string (SidebarEntry* self) -{ -#line 18 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (self), NULL); -#line 18 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - return SIDEBAR_ENTRY_GET_INTERFACE (self)->to_string (self); -#line 311 "Entry.c" -} - - -static void -sidebar_entry_real_grafted (SidebarEntry* self, - SidebarTree* tree) -{ -#line 20 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_if_fail (SIDEBAR_IS_TREE (tree)); -#line 321 "Entry.c" -} - - -void -sidebar_entry_grafted (SidebarEntry* self, - SidebarTree* tree) -{ -#line 20 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (self)); -#line 20 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - SIDEBAR_ENTRY_GET_INTERFACE (self)->grafted (self, tree); -#line 333 "Entry.c" -} - - -static void -sidebar_entry_real_pruned (SidebarEntry* self, - SidebarTree* tree) -{ -#line 23 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_if_fail (SIDEBAR_IS_TREE (tree)); -#line 343 "Entry.c" -} - - -void -sidebar_entry_pruned (SidebarEntry* self, - SidebarTree* tree) -{ -#line 23 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (self)); -#line 23 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - SIDEBAR_ENTRY_GET_INTERFACE (self)->pruned (self, tree); -#line 355 "Entry.c" -} - - -static void -sidebar_entry_base_init (SidebarEntryIface * iface) -{ -#line 7 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - static gboolean initialized = FALSE; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - if (!initialized) { -#line 7 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - initialized = TRUE; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - sidebar_entry_signals[SIDEBAR_ENTRY_SIDEBAR_TOOLTIP_CHANGED_SIGNAL] = g_signal_new ("sidebar-tooltip-changed", SIDEBAR_TYPE_ENTRY, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); -#line 7 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - sidebar_entry_signals[SIDEBAR_ENTRY_SIDEBAR_ICON_CHANGED_SIGNAL] = g_signal_new ("sidebar-icon-changed", SIDEBAR_TYPE_ENTRY, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); -#line 7 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - iface->grafted = sidebar_entry_real_grafted; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - iface->pruned = sidebar_entry_real_pruned; -#line 376 "Entry.c" - } -} - - -GType -sidebar_entry_get_type (void) -{ - static volatile gsize sidebar_entry_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarEntryIface), (GBaseInitFunc) sidebar_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType sidebar_entry_type_id; - sidebar_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarEntry", &g_define_type_info, 0); - g_type_interface_add_prerequisite (sidebar_entry_type_id, G_TYPE_OBJECT); - g_once_init_leave (&sidebar_entry_type_id__volatile, sidebar_entry_type_id); - } - return sidebar_entry_type_id__volatile; -} - - -gboolean -sidebar_expandable_entry_expand_on_select (SidebarExpandableEntry* self) -{ -#line 28 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_val_if_fail (SIDEBAR_IS_EXPANDABLE_ENTRY (self), FALSE); -#line 28 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - return SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE (self)->expand_on_select (self); -#line 403 "Entry.c" -} - - -static void -sidebar_expandable_entry_base_init (SidebarExpandableEntryIface * iface) -{ -#line 27 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - static gboolean initialized = FALSE; -#line 27 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - if (!initialized) { -#line 27 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - initialized = TRUE; -#line 416 "Entry.c" - } -} - - -GType -sidebar_expandable_entry_get_type (void) -{ - static volatile gsize sidebar_expandable_entry_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_expandable_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarExpandableEntryIface), (GBaseInitFunc) sidebar_expandable_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType sidebar_expandable_entry_type_id; - sidebar_expandable_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarExpandableEntry", &g_define_type_info, 0); - g_type_interface_add_prerequisite (sidebar_expandable_entry_type_id, SIDEBAR_TYPE_ENTRY); - g_once_init_leave (&sidebar_expandable_entry_type_id__volatile, sidebar_expandable_entry_type_id); - } - return sidebar_expandable_entry_type_id__volatile; -} - - -static void -sidebar_selectable_entry_base_init (SidebarSelectableEntryIface * iface) -{ -#line 31 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - static gboolean initialized = FALSE; -#line 31 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - if (!initialized) { -#line 31 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - initialized = TRUE; -#line 445 "Entry.c" - } -} - - -GType -sidebar_selectable_entry_get_type (void) -{ - static volatile gsize sidebar_selectable_entry_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_selectable_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarSelectableEntryIface), (GBaseInitFunc) sidebar_selectable_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType sidebar_selectable_entry_type_id; - sidebar_selectable_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarSelectableEntry", &g_define_type_info, 0); - g_type_interface_add_prerequisite (sidebar_selectable_entry_type_id, SIDEBAR_TYPE_ENTRY); - g_once_init_leave (&sidebar_selectable_entry_type_id__volatile, sidebar_selectable_entry_type_id); - } - return sidebar_selectable_entry_type_id__volatile; -} - - -gboolean -sidebar_page_representative_has_page (SidebarPageRepresentative* self) -{ -#line 41 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_val_if_fail (SIDEBAR_IS_PAGE_REPRESENTATIVE (self), FALSE); -#line 41 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - return SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE (self)->has_page (self); -#line 472 "Entry.c" -} - - -Page* -sidebar_page_representative_get_page (SidebarPageRepresentative* self) -{ -#line 43 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_val_if_fail (SIDEBAR_IS_PAGE_REPRESENTATIVE (self), NULL); -#line 43 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - return SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE (self)->get_page (self); -#line 483 "Entry.c" -} - - -static void -sidebar_page_representative_base_init (SidebarPageRepresentativeIface * iface) -{ -#line 34 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - static gboolean initialized = FALSE; -#line 34 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - if (!initialized) { -#line 34 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - initialized = TRUE; -#line 34 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - sidebar_page_representative_signals[SIDEBAR_PAGE_REPRESENTATIVE_PAGE_CREATED_SIGNAL] = g_signal_new ("page-created", SIDEBAR_TYPE_PAGE_REPRESENTATIVE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_PAGE); -#line 34 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - sidebar_page_representative_signals[SIDEBAR_PAGE_REPRESENTATIVE_DESTROYING_PAGE_SIGNAL] = g_signal_new ("destroying-page", SIDEBAR_TYPE_PAGE_REPRESENTATIVE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_PAGE); -#line 500 "Entry.c" - } -} - - -GType -sidebar_page_representative_get_type (void) -{ - static volatile gsize sidebar_page_representative_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_page_representative_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarPageRepresentativeIface), (GBaseInitFunc) sidebar_page_representative_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType sidebar_page_representative_type_id; - sidebar_page_representative_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarPageRepresentative", &g_define_type_info, 0); - g_type_interface_add_prerequisite (sidebar_page_representative_type_id, SIDEBAR_TYPE_ENTRY); - g_type_interface_add_prerequisite (sidebar_page_representative_type_id, SIDEBAR_TYPE_SELECTABLE_ENTRY); - g_once_init_leave (&sidebar_page_representative_type_id__volatile, sidebar_page_representative_type_id); - } - return sidebar_page_representative_type_id__volatile; -} - - -void -sidebar_renameable_entry_rename (SidebarRenameableEntry* self, - const gchar* new_name) -{ -#line 49 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_if_fail (SIDEBAR_IS_RENAMEABLE_ENTRY (self)); -#line 49 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE (self)->rename (self, new_name); -#line 529 "Entry.c" -} - - -gboolean -sidebar_renameable_entry_is_user_renameable (SidebarRenameableEntry* self) -{ -#line 52 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_val_if_fail (SIDEBAR_IS_RENAMEABLE_ENTRY (self), FALSE); -#line 52 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - return SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE (self)->is_user_renameable (self); -#line 540 "Entry.c" -} - - -static void -sidebar_renameable_entry_base_init (SidebarRenameableEntryIface * iface) -{ -#line 46 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - static gboolean initialized = FALSE; -#line 46 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - if (!initialized) { -#line 46 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - initialized = TRUE; -#line 46 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - sidebar_renameable_entry_signals[SIDEBAR_RENAMEABLE_ENTRY_SIDEBAR_NAME_CHANGED_SIGNAL] = g_signal_new ("sidebar-name-changed", SIDEBAR_TYPE_RENAMEABLE_ENTRY, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); -#line 555 "Entry.c" - } -} - - -GType -sidebar_renameable_entry_get_type (void) -{ - static volatile gsize sidebar_renameable_entry_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_renameable_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarRenameableEntryIface), (GBaseInitFunc) sidebar_renameable_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType sidebar_renameable_entry_type_id; - sidebar_renameable_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarRenameableEntry", &g_define_type_info, 0); - g_type_interface_add_prerequisite (sidebar_renameable_entry_type_id, SIDEBAR_TYPE_ENTRY); - g_once_init_leave (&sidebar_renameable_entry_type_id__volatile, sidebar_renameable_entry_type_id); - } - return sidebar_renameable_entry_type_id__volatile; -} - - -gboolean -sidebar_emphasizable_entry_is_emphasized (SidebarEmphasizableEntry* self) -{ -#line 58 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_val_if_fail (SIDEBAR_IS_EMPHASIZABLE_ENTRY (self), FALSE); -#line 58 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - return SIDEBAR_EMPHASIZABLE_ENTRY_GET_INTERFACE (self)->is_emphasized (self); -#line 582 "Entry.c" -} - - -static void -sidebar_emphasizable_entry_base_init (SidebarEmphasizableEntryIface * iface) -{ -#line 55 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - static gboolean initialized = FALSE; -#line 55 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - if (!initialized) { -#line 55 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - initialized = TRUE; -#line 55 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - sidebar_emphasizable_entry_signals[SIDEBAR_EMPHASIZABLE_ENTRY_IS_EMPHASIZED_CHANGED_SIGNAL] = g_signal_new ("is-emphasized-changed", SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); -#line 597 "Entry.c" - } -} - - -GType -sidebar_emphasizable_entry_get_type (void) -{ - static volatile gsize sidebar_emphasizable_entry_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_emphasizable_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarEmphasizableEntryIface), (GBaseInitFunc) sidebar_emphasizable_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType sidebar_emphasizable_entry_type_id; - sidebar_emphasizable_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarEmphasizableEntry", &g_define_type_info, 0); - g_type_interface_add_prerequisite (sidebar_emphasizable_entry_type_id, SIDEBAR_TYPE_ENTRY); - g_once_init_leave (&sidebar_emphasizable_entry_type_id__volatile, sidebar_emphasizable_entry_type_id); - } - return sidebar_emphasizable_entry_type_id__volatile; -} - - -void -sidebar_destroyable_entry_destroy_source (SidebarDestroyableEntry* self) -{ -#line 62 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_if_fail (SIDEBAR_IS_DESTROYABLE_ENTRY (self)); -#line 62 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - SIDEBAR_DESTROYABLE_ENTRY_GET_INTERFACE (self)->destroy_source (self); -#line 624 "Entry.c" -} - - -static void -sidebar_destroyable_entry_base_init (SidebarDestroyableEntryIface * iface) -{ -#line 61 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - static gboolean initialized = FALSE; -#line 61 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - if (!initialized) { -#line 61 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - initialized = TRUE; -#line 637 "Entry.c" - } -} - - -GType -sidebar_destroyable_entry_get_type (void) -{ - static volatile gsize sidebar_destroyable_entry_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_destroyable_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarDestroyableEntryIface), (GBaseInitFunc) sidebar_destroyable_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType sidebar_destroyable_entry_type_id; - sidebar_destroyable_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarDestroyableEntry", &g_define_type_info, 0); - g_type_interface_add_prerequisite (sidebar_destroyable_entry_type_id, SIDEBAR_TYPE_ENTRY); - g_once_init_leave (&sidebar_destroyable_entry_type_id__volatile, sidebar_destroyable_entry_type_id); - } - return sidebar_destroyable_entry_type_id__volatile; -} - - -gboolean -sidebar_internal_drop_target_entry_internal_drop_received (SidebarInternalDropTargetEntry* self, - GeeList* sources) -{ -#line 67 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_val_if_fail (SIDEBAR_IS_INTERNAL_DROP_TARGET_ENTRY (self), FALSE); -#line 67 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - return SIDEBAR_INTERNAL_DROP_TARGET_ENTRY_GET_INTERFACE (self)->internal_drop_received (self, sources); -#line 665 "Entry.c" -} - - -gboolean -sidebar_internal_drop_target_entry_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* self, - GtkSelectionData* data) -{ -#line 68 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_val_if_fail (SIDEBAR_IS_INTERNAL_DROP_TARGET_ENTRY (self), FALSE); -#line 68 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - return SIDEBAR_INTERNAL_DROP_TARGET_ENTRY_GET_INTERFACE (self)->internal_drop_received_arbitrary (self, data); -#line 677 "Entry.c" -} - - -static void -sidebar_internal_drop_target_entry_base_init (SidebarInternalDropTargetEntryIface * iface) -{ -#line 65 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - static gboolean initialized = FALSE; -#line 65 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - if (!initialized) { -#line 65 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - initialized = TRUE; -#line 690 "Entry.c" - } -} - - -GType -sidebar_internal_drop_target_entry_get_type (void) -{ - static volatile gsize sidebar_internal_drop_target_entry_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_internal_drop_target_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarInternalDropTargetEntryIface), (GBaseInitFunc) sidebar_internal_drop_target_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType sidebar_internal_drop_target_entry_type_id; - sidebar_internal_drop_target_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarInternalDropTargetEntry", &g_define_type_info, 0); - g_type_interface_add_prerequisite (sidebar_internal_drop_target_entry_type_id, SIDEBAR_TYPE_ENTRY); - g_once_init_leave (&sidebar_internal_drop_target_entry_type_id__volatile, sidebar_internal_drop_target_entry_type_id); - } - return sidebar_internal_drop_target_entry_type_id__volatile; -} - - -void -sidebar_internal_drag_source_entry_prepare_selection_data (SidebarInternalDragSourceEntry* self, - GtkSelectionData* data) -{ -#line 72 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - g_return_if_fail (SIDEBAR_IS_INTERNAL_DRAG_SOURCE_ENTRY (self)); -#line 72 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - SIDEBAR_INTERNAL_DRAG_SOURCE_ENTRY_GET_INTERFACE (self)->prepare_selection_data (self, data); -#line 718 "Entry.c" -} - - -static void -sidebar_internal_drag_source_entry_base_init (SidebarInternalDragSourceEntryIface * iface) -{ -#line 71 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - static gboolean initialized = FALSE; -#line 71 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - if (!initialized) { -#line 71 "/home/jens/Source/shotwell/src/sidebar/Entry.vala" - initialized = TRUE; -#line 731 "Entry.c" - } -} - - -GType -sidebar_internal_drag_source_entry_get_type (void) -{ - static volatile gsize sidebar_internal_drag_source_entry_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_internal_drag_source_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarInternalDragSourceEntryIface), (GBaseInitFunc) sidebar_internal_drag_source_entry_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType sidebar_internal_drag_source_entry_type_id; - sidebar_internal_drag_source_entry_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarInternalDragSourceEntry", &g_define_type_info, 0); - g_type_interface_add_prerequisite (sidebar_internal_drag_source_entry_type_id, SIDEBAR_TYPE_ENTRY); - g_once_init_leave (&sidebar_internal_drag_source_entry_type_id__volatile, sidebar_internal_drag_source_entry_type_id); - } - return sidebar_internal_drag_source_entry_type_id__volatile; -} - - - diff --git a/src/sidebar/Sidebar.c b/src/sidebar/Sidebar.c deleted file mode 100644 index fcafa8d..0000000 --- a/src/sidebar/Sidebar.c +++ /dev/null @@ -1,33 +0,0 @@ -/* Sidebar.c generated by valac 0.40.4, the Vala compiler - * generated from Sidebar.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include - - - - -void sidebar_init (GError** error); -void sidebar_terminate (void); - - -void -sidebar_init (GError** error) -{ -} - - -void -sidebar_terminate (void) -{ -} - - - diff --git a/src/sidebar/Tree.c b/src/sidebar/Tree.c deleted file mode 100644 index edb6a3f..0000000 --- a/src/sidebar/Tree.c +++ /dev/null @@ -1,7875 +0,0 @@ -/* Tree.c generated by valac 0.40.4, the Vala compiler - * generated from Tree.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ()) -#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree)) -#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass)) -#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass)) - -typedef struct _SidebarTree SidebarTree; -typedef struct _SidebarTreeClass SidebarTreeClass; -typedef struct _SidebarTreePrivate SidebarTreePrivate; - -#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ()) -#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry)) -#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY)) -#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface)) - -typedef struct _SidebarEntry SidebarEntry; -typedef struct _SidebarEntryIface SidebarEntryIface; - -#define SIDEBAR_TREE_TYPE_ENTRY_WRAPPER (sidebar_tree_entry_wrapper_get_type ()) -#define SIDEBAR_TREE_ENTRY_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, SidebarTreeEntryWrapper)) -#define SIDEBAR_TREE_ENTRY_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, SidebarTreeEntryWrapperClass)) -#define SIDEBAR_TREE_IS_ENTRY_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TREE_TYPE_ENTRY_WRAPPER)) -#define SIDEBAR_TREE_IS_ENTRY_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TREE_TYPE_ENTRY_WRAPPER)) -#define SIDEBAR_TREE_ENTRY_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, SidebarTreeEntryWrapperClass)) - -typedef struct _SidebarTreeEntryWrapper SidebarTreeEntryWrapper; -typedef struct _SidebarTreeEntryWrapperClass SidebarTreeEntryWrapperClass; - -#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ()) -#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch)) -#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) -#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) - -typedef struct _SidebarBranch SidebarBranch; -typedef struct _SidebarBranchClass SidebarBranchClass; -enum { - SIDEBAR_TREE_0_PROPERTY, - SIDEBAR_TREE_NUM_PROPERTIES -}; -static GParamSpec* sidebar_tree_properties[SIDEBAR_TREE_NUM_PROPERTIES]; - -#define SIDEBAR_TREE_TYPE_COLUMNS (sidebar_tree_columns_get_type ()) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define __vala_GtkTreeRowReference_free0(var) ((var == NULL) ? NULL : (var = (_vala_GtkTreeRowReference_free (var), NULL))) - -#define LIBRARY_WINDOW_TYPE_TARGET_TYPE (library_window_target_type_get_type ()) -typedef struct _SidebarTreeEntryWrapperPrivate SidebarTreeEntryWrapperPrivate; - -#define SIDEBAR_TYPE_GROUPING (sidebar_grouping_get_type ()) -#define SIDEBAR_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_GROUPING, SidebarGrouping)) -#define SIDEBAR_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass)) -#define SIDEBAR_IS_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_GROUPING)) -#define SIDEBAR_IS_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_GROUPING)) -#define SIDEBAR_GROUPING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass)) - -typedef struct _SidebarGrouping SidebarGrouping; -typedef struct _SidebarGroupingClass SidebarGroupingClass; - -#define SIDEBAR_TYPE_HEADER (sidebar_header_get_type ()) -#define SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_HEADER, SidebarHeader)) -#define SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_HEADER, SidebarHeaderClass)) -#define SIDEBAR_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_HEADER)) -#define SIDEBAR_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_HEADER)) -#define SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_HEADER, SidebarHeaderClass)) - -typedef struct _SidebarHeader SidebarHeader; -typedef struct _SidebarHeaderClass SidebarHeaderClass; -#define __vala_GtkTreePath_free0(var) ((var == NULL) ? NULL : (var = (_vala_GtkTreePath_free (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_APPLICATION (application_get_type ()) -#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application)) -#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass)) -#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION)) -#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION)) -#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass)) - -typedef struct _Application Application; -typedef struct _ApplicationClass ApplicationClass; -#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define __g_list_free___vala_GtkTreePath_free0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free___vala_GtkTreePath_free0_ (var), NULL))) - -#define SIDEBAR_TYPE_EMPHASIZABLE_ENTRY (sidebar_emphasizable_entry_get_type ()) -#define SIDEBAR_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntry)) -#define SIDEBAR_IS_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY)) -#define SIDEBAR_EMPHASIZABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntryIface)) - -typedef struct _SidebarEmphasizableEntry SidebarEmphasizableEntry; -typedef struct _SidebarEmphasizableEntryIface SidebarEmphasizableEntryIface; - -#define SIDEBAR_TYPE_RENAMEABLE_ENTRY (sidebar_renameable_entry_get_type ()) -#define SIDEBAR_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry)) -#define SIDEBAR_IS_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY)) -#define SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntryIface)) - -typedef struct _SidebarRenameableEntry SidebarRenameableEntry; -typedef struct _SidebarRenameableEntryIface SidebarRenameableEntryIface; - -#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ()) -#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry)) -#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY)) -#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface)) - -typedef struct _SidebarSelectableEntry SidebarSelectableEntry; -typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface; - -#define SIDEBAR_TREE_TYPE_ROOT_WRAPPER (sidebar_tree_root_wrapper_get_type ()) -#define SIDEBAR_TREE_ROOT_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TREE_TYPE_ROOT_WRAPPER, SidebarTreeRootWrapper)) -#define SIDEBAR_TREE_ROOT_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TREE_TYPE_ROOT_WRAPPER, SidebarTreeRootWrapperClass)) -#define SIDEBAR_TREE_IS_ROOT_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TREE_TYPE_ROOT_WRAPPER)) -#define SIDEBAR_TREE_IS_ROOT_WRAPPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TREE_TYPE_ROOT_WRAPPER)) -#define SIDEBAR_TREE_ROOT_WRAPPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TREE_TYPE_ROOT_WRAPPER, SidebarTreeRootWrapperClass)) - -typedef struct _SidebarTreeRootWrapper SidebarTreeRootWrapper; -typedef struct _SidebarTreeRootWrapperClass SidebarTreeRootWrapperClass; -typedef struct _SidebarTreeRootWrapperPrivate SidebarTreeRootWrapperPrivate; - -#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ()) -#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)) -#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE)) -#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface)) - -typedef struct _SidebarPageRepresentative SidebarPageRepresentative; -typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ()) -#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable)) -#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE)) -#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface)) - -typedef struct _SidebarContextable SidebarContextable; -typedef struct _SidebarContextableIface SidebarContextableIface; - -#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ()) -#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry)) -#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY)) -#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface)) - -typedef struct _SidebarExpandableEntry SidebarExpandableEntry; -typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface; - -#define SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY (sidebar_internal_drop_target_entry_get_type ()) -#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntry)) -#define SIDEBAR_IS_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY)) -#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntryIface)) - -typedef struct _SidebarInternalDropTargetEntry SidebarInternalDropTargetEntry; -typedef struct _SidebarInternalDropTargetEntryIface SidebarInternalDropTargetEntryIface; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY (sidebar_internal_drag_source_entry_get_type ()) -#define SIDEBAR_INTERNAL_DRAG_SOURCE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, SidebarInternalDragSourceEntry)) -#define SIDEBAR_IS_INTERNAL_DRAG_SOURCE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY)) -#define SIDEBAR_INTERNAL_DRAG_SOURCE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, SidebarInternalDragSourceEntryIface)) - -typedef struct _SidebarInternalDragSourceEntry SidebarInternalDragSourceEntry; -typedef struct _SidebarInternalDragSourceEntryIface SidebarInternalDragSourceEntryIface; - -#define SIDEBAR_TYPE_DESTROYABLE_ENTRY (sidebar_destroyable_entry_get_type ()) -#define SIDEBAR_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntry)) -#define SIDEBAR_IS_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY)) -#define SIDEBAR_DESTROYABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntryIface)) - -typedef struct _SidebarDestroyableEntry SidebarDestroyableEntry; -typedef struct _SidebarDestroyableEntryIface SidebarDestroyableEntryIface; - -#define TYPE_SAVED_SEARCH_DIALOG (saved_search_dialog_get_type ()) -#define SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialog)) -#define SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass)) -#define IS_SAVED_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAVED_SEARCH_DIALOG)) -#define IS_SAVED_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAVED_SEARCH_DIALOG)) -#define SAVED_SEARCH_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAVED_SEARCH_DIALOG, SavedSearchDialogClass)) - -typedef struct _SavedSearchDialog SavedSearchDialog; -typedef struct _SavedSearchDialogClass SavedSearchDialogClass; - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; - -#define TYPE_NEW_ROOT_TAG_COMMAND (new_root_tag_command_get_type ()) -#define NEW_ROOT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommand)) -#define NEW_ROOT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommandClass)) -#define IS_NEW_ROOT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NEW_ROOT_TAG_COMMAND)) -#define IS_NEW_ROOT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NEW_ROOT_TAG_COMMAND)) -#define NEW_ROOT_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NEW_ROOT_TAG_COMMAND, NewRootTagCommandClass)) - -typedef struct _NewRootTagCommand NewRootTagCommand; -typedef struct _NewRootTagCommandClass NewRootTagCommandClass; - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; -enum { - SIDEBAR_TREE_ENTRY_WRAPPER_0_PROPERTY, - SIDEBAR_TREE_ENTRY_WRAPPER_NUM_PROPERTIES -}; -static GParamSpec* sidebar_tree_entry_wrapper_properties[SIDEBAR_TREE_ENTRY_WRAPPER_NUM_PROPERTIES]; -enum { - SIDEBAR_TREE_ROOT_WRAPPER_0_PROPERTY, - SIDEBAR_TREE_ROOT_WRAPPER_NUM_PROPERTIES -}; -static GParamSpec* sidebar_tree_root_wrapper_properties[SIDEBAR_TREE_ROOT_WRAPPER_NUM_PROPERTIES]; -enum { - SIDEBAR_TREE_ENTRY_SELECTED_SIGNAL, - SIDEBAR_TREE_SELECTED_ENTRY_REMOVED_SIGNAL, - SIDEBAR_TREE_BRANCH_ADDED_SIGNAL, - SIDEBAR_TREE_BRANCH_REMOVED_SIGNAL, - SIDEBAR_TREE_BRANCH_SHOWN_SIGNAL, - SIDEBAR_TREE_PAGE_CREATED_SIGNAL, - SIDEBAR_TREE_DESTROYING_PAGE_SIGNAL, - SIDEBAR_TREE_NUM_SIGNALS -}; -static guint sidebar_tree_signals[SIDEBAR_TREE_NUM_SIGNALS] = {0}; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _SidebarTree { - GtkTreeView parent_instance; - SidebarTreePrivate * priv; -}; - -struct _SidebarTreeClass { - GtkTreeViewClass parent_class; - gboolean (*accept_cursor_changed) (SidebarTree* self); -}; - -struct _SidebarEntryIface { - GTypeInterface parent_iface; - gchar* (*get_sidebar_name) (SidebarEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarEntry* self); - gchar* (*get_sidebar_icon) (SidebarEntry* self); - gchar* (*to_string) (SidebarEntry* self); - void (*grafted) (SidebarEntry* self, SidebarTree* tree); - void (*pruned) (SidebarEntry* self, SidebarTree* tree); -}; - -typedef void (*SidebarTreeExternalDropHandler) (GdkDragContext* context, SidebarEntry* entry, GtkSelectionData* data, guint info, guint time, void* user_data); -struct _SidebarTreePrivate { - GtkTreeStore* store; - GtkBuilder* builder; - GtkCellRendererText* text_renderer; - SidebarTreeExternalDropHandler drop_handler; - gpointer drop_handler_target; - GtkEntry* text_entry; - GeeHashMap* entry_map; - GeeHashMap* branches; - gint editing_disabled; - gboolean mask_entry_selected_signal; - SidebarTreeEntryWrapper* selected_wrapper; - GtkMenu* default_context_menu; - gboolean expander_called_manually; - gint expander_special_count; - gboolean is_internal_drag_in_progress; - SidebarEntry* internal_drag_source_entry; - GtkTreeRowReference* old_path_ref; -}; - -typedef enum { - SIDEBAR_TREE_COLUMNS_NAME, - SIDEBAR_TREE_COLUMNS_TOOLTIP, - SIDEBAR_TREE_COLUMNS_WRAPPER, - SIDEBAR_TREE_COLUMNS_ICON, - SIDEBAR_TREE_COLUMNS_N_COLUMNS -} SidebarTreeColumns; - -typedef enum { - LIBRARY_WINDOW_TARGET_TYPE_URI_LIST, - LIBRARY_WINDOW_TARGET_TYPE_MEDIA_LIST, - LIBRARY_WINDOW_TARGET_TYPE_TAG_PATH -} LibraryWindowTargetType; - -struct _SidebarTreeEntryWrapper { - GObject parent_instance; - SidebarTreeEntryWrapperPrivate * priv; - SidebarEntry* entry; - GtkTreeRowReference* row; -}; - -struct _SidebarTreeEntryWrapperClass { - GObjectClass parent_class; -}; - -struct _SidebarEmphasizableEntryIface { - GTypeInterface parent_iface; - gboolean (*is_emphasized) (SidebarEmphasizableEntry* self); -}; - -struct _SidebarRenameableEntryIface { - GTypeInterface parent_iface; - void (*rename) (SidebarRenameableEntry* self, const gchar* new_name); - gboolean (*is_user_renameable) (SidebarRenameableEntry* self); -}; - -struct _SidebarSelectableEntryIface { - GTypeInterface parent_iface; -}; - -struct _SidebarTreeRootWrapper { - SidebarTreeEntryWrapper parent_instance; - SidebarTreeRootWrapperPrivate * priv; - gint root_position; -}; - -struct _SidebarTreeRootWrapperClass { - SidebarTreeEntryWrapperClass parent_class; -}; - -struct _SidebarPageRepresentativeIface { - GTypeInterface parent_iface; - gboolean (*has_page) (SidebarPageRepresentative* self); - Page* (*get_page) (SidebarPageRepresentative* self); -}; - -struct _SidebarContextableIface { - GTypeInterface parent_iface; - GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event); -}; - -struct _SidebarExpandableEntryIface { - GTypeInterface parent_iface; - gboolean (*expand_on_select) (SidebarExpandableEntry* self); -}; - -struct _SidebarInternalDropTargetEntryIface { - GTypeInterface parent_iface; - gboolean (*internal_drop_received) (SidebarInternalDropTargetEntry* self, GeeList* sources); - gboolean (*internal_drop_received_arbitrary) (SidebarInternalDropTargetEntry* self, GtkSelectionData* data); -}; - -struct _SidebarInternalDragSourceEntryIface { - GTypeInterface parent_iface; - void (*prepare_selection_data) (SidebarInternalDragSourceEntry* self, GtkSelectionData* data); -}; - -struct _SidebarDestroyableEntryIface { - GTypeInterface parent_iface; - void (*destroy_source) (SidebarDestroyableEntry* self); -}; - - -static gpointer sidebar_tree_parent_class = NULL; -static gpointer sidebar_tree_entry_wrapper_parent_class = NULL; -static gpointer sidebar_tree_root_wrapper_parent_class = NULL; - -GType sidebar_tree_get_type (void) G_GNUC_CONST; -GType sidebar_entry_get_type (void) G_GNUC_CONST; -static GType sidebar_tree_entry_wrapper_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -GType sidebar_branch_get_type (void) G_GNUC_CONST; -#define SIDEBAR_TREE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SIDEBAR_TYPE_TREE, SidebarTreePrivate)) -static void sidebar_tree_on_editing_canceled (SidebarTree* self); -static void _sidebar_tree_on_editing_canceled_gtk_cell_renderer_editing_canceled (GtkCellRenderer* _sender, - gpointer self); -static void sidebar_tree_on_editing_started (SidebarTree* self, - GtkCellEditable* editable, - const gchar* path); -static void _sidebar_tree_on_editing_started_gtk_cell_renderer_editing_started (GtkCellRenderer* _sender, - GtkCellEditable* editable, - const gchar* path, - gpointer self); -static GType sidebar_tree_columns_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static void _vala_GtkTreeRowReference_free (GtkTreeRowReference* self); -#define SIDEBAR_TREE_ICON_SIZE 16 -static void sidebar_tree_on_new_tag (SidebarTree* self); -static void _sidebar_tree_on_new_tag_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void sidebar_tree_on_new_search (SidebarTree* self); -static void _sidebar_tree_on_new_search_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -SidebarTree* sidebar_tree_new (GtkTargetEntry* target_entries, - int target_entries_length1, - GdkDragAction actions, - SidebarTreeExternalDropHandler drop_handler, - void* drop_handler_target); -SidebarTree* sidebar_tree_construct (GType object_type, - GtkTargetEntry* target_entries, - int target_entries_length1, - GdkDragAction actions, - SidebarTreeExternalDropHandler drop_handler, - void* drop_handler_target); -void sidebar_tree_icon_renderer_function (SidebarTree* self, - GtkCellLayout* layout, - GtkCellRenderer* renderer, - GtkTreeModel* model, - GtkTreeIter* iter); -static void _sidebar_tree_icon_renderer_function_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, - GtkCellRenderer* cell, - GtkTreeModel* tree_model, - GtkTreeIter* iter, - gpointer self); -static gboolean sidebar_tree_on_selection (SidebarTree* self, - GtkTreeSelection* selection, - GtkTreeModel* model, - GtkTreePath* path, - gboolean path_currently_selected); -static gboolean _sidebar_tree_on_selection_gtk_tree_selection_func (GtkTreeSelection* selection, - GtkTreeModel* model, - GtkTreePath* path, - gboolean path_currently_selected, - gpointer self); -gboolean sidebar_tree_on_toggle_row (SidebarTree* self, - GtkTreeIter* iter, - GtkTreePath* path); -static gboolean _sidebar_tree_on_toggle_row_gtk_tree_view_test_expand_row (GtkTreeView* _sender, - GtkTreeIter* iter, - GtkTreePath* path, - gpointer self); -static gboolean _sidebar_tree_on_toggle_row_gtk_tree_view_test_collapse_row (GtkTreeView* _sender, - GtkTreeIter* iter, - GtkTreePath* path, - gpointer self); -GType library_window_target_type_get_type (void) G_GNUC_CONST; -static void _vala_array_add67 (GtkTargetEntry* * array, - int* length, - int* size, - const GtkTargetEntry* value); -static gboolean sidebar_tree_on_context_menu_keypress (SidebarTree* self); -static gboolean _sidebar_tree_on_context_menu_keypress_gtk_widget_popup_menu (GtkWidget* _sender, - gpointer self); -static void sidebar_tree_setup_default_context_menu (SidebarTree* self); -static void sidebar_tree_on_drag_begin (SidebarTree* self, - GdkDragContext* ctx); -static void _sidebar_tree_on_drag_begin_gtk_widget_drag_begin (GtkWidget* _sender, - GdkDragContext* context, - gpointer self); -static void sidebar_tree_on_drag_end (SidebarTree* self, - GdkDragContext* ctx); -static void _sidebar_tree_on_drag_end_gtk_widget_drag_end (GtkWidget* _sender, - GdkDragContext* context, - gpointer self); -static gboolean sidebar_tree_on_drag_motion (SidebarTree* self, - GdkDragContext* context, - gint x, - gint y, - guint time_); -static gboolean _sidebar_tree_on_drag_motion_gtk_widget_drag_motion (GtkWidget* _sender, - GdkDragContext* context, - gint x, - gint y, - guint time_, - gpointer self); -static SidebarTreeEntryWrapper* sidebar_tree_get_wrapper_at_iter (SidebarTree* self, - GtkTreeIter* iter); -GType sidebar_grouping_get_type (void) G_GNUC_CONST; -GType sidebar_header_get_type (void) G_GNUC_CONST; -static void _vala_GtkTreePath_free (GtkTreePath* self); -static SidebarTreeEntryWrapper* sidebar_tree_get_wrapper_at_path (SidebarTree* self, - GtkTreePath* path); -gchar* resources_get_ui (const gchar* filename); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -gpointer application_ref (gpointer instance); -void application_unref (gpointer instance); -GParamSpec* param_spec_application (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_application (GValue* value, - gpointer v_object); -void value_take_application (GValue* value, - gpointer v_object); -gpointer value_get_application (const GValue* value); -GType application_get_type (void) G_GNUC_CONST; -Application* application_get_instance (void); -void application_panic (Application* self); -static gboolean sidebar_tree_has_wrapper (SidebarTree* self, - SidebarEntry* entry); -static SidebarTreeEntryWrapper* sidebar_tree_get_wrapper (SidebarTree* self, - SidebarEntry* entry); -gchar* sidebar_entry_to_string (SidebarEntry* self); -gboolean sidebar_tree_place_cursor (SidebarTree* self, - SidebarEntry* entry, - gboolean mask_signal); -gboolean sidebar_tree_expand_to_entry (SidebarTree* self, - SidebarEntry* entry); -static GtkTreePath* sidebar_tree_entry_wrapper_get_path (SidebarTreeEntryWrapper* self); -gboolean sidebar_tree_scroll_to_entry (SidebarTree* self, - SidebarEntry* entry); -gboolean sidebar_tree_is_selected (SidebarTree* self, - SidebarEntry* entry); -gboolean sidebar_tree_is_any_selected (SidebarTree* self); -static GtkTreePath* sidebar_tree_get_selected_path (SidebarTree* self); -static GtkTreePath* _vala_GtkTreePath_copy (GtkTreePath* self); -static void __vala_GtkTreePath_free0_ (gpointer var); -static inline void _g_list_free___vala_GtkTreePath_free0_ (GList* self); -static gchar* sidebar_tree_get_name_for_entry (SidebarTree* self, - SidebarEntry* entry); -gchar* guarded_markup_escape_text (const gchar* plain); -gchar* sidebar_entry_get_sidebar_name (SidebarEntry* self); -GType sidebar_emphasizable_entry_get_type (void) G_GNUC_CONST; -gboolean sidebar_emphasizable_entry_is_emphasized (SidebarEmphasizableEntry* self); -gboolean sidebar_tree_accept_cursor_changed (SidebarTree* self); -static gboolean sidebar_tree_real_accept_cursor_changed (SidebarTree* self); -static void sidebar_tree_real_cursor_changed (GtkTreeView* base); -GType sidebar_renameable_entry_get_type (void) G_GNUC_CONST; -gboolean sidebar_renameable_entry_is_user_renameable (SidebarRenameableEntry* self); -GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST; -void sidebar_tree_disable_editing (SidebarTree* self); -void sidebar_tree_enable_editing (SidebarTree* self); -void sidebar_tree_toggle_branch_expansion (SidebarTree* self, - GtkTreePath* path, - gboolean expand_all); -void sidebar_tree_expand_to_first_child (SidebarTree* self, - SidebarEntry* entry); -void sidebar_tree_graft (SidebarTree* self, - SidebarBranch* branch, - gint position); -gboolean sidebar_branch_get_show_branch (SidebarBranch* self); -static void sidebar_tree_associate_branch (SidebarTree* self, - SidebarBranch* branch); -gboolean sidebar_branch_is_startup_expand_to_first_child (SidebarBranch* self); -SidebarEntry* sidebar_branch_get_root (SidebarBranch* self); -gboolean sidebar_branch_is_startup_open_grouping (SidebarBranch* self); -static void sidebar_tree_on_branch_entry_added (SidebarTree* self, - SidebarBranch* branch, - SidebarEntry* entry); -static void _sidebar_tree_on_branch_entry_added_sidebar_branch_entry_added (SidebarBranch* _sender, - SidebarEntry* entry, - gpointer self); -static void sidebar_tree_on_branch_entry_removed (SidebarTree* self, - SidebarBranch* branch, - SidebarEntry* entry); -static void _sidebar_tree_on_branch_entry_removed_sidebar_branch_entry_removed (SidebarBranch* _sender, - SidebarEntry* entry, - gpointer self); -static void sidebar_tree_on_branch_entry_moved (SidebarTree* self, - SidebarBranch* branch, - SidebarEntry* entry); -static void _sidebar_tree_on_branch_entry_moved_sidebar_branch_entry_moved (SidebarBranch* _sender, - SidebarEntry* entry, - gpointer self); -static void sidebar_tree_on_branch_entry_reparented (SidebarTree* self, - SidebarBranch* branch, - SidebarEntry* entry, - SidebarEntry* old_parent); -static void _sidebar_tree_on_branch_entry_reparented_sidebar_branch_entry_reparented (SidebarBranch* _sender, - SidebarEntry* entry, - SidebarEntry* old_parent, - gpointer self); -static void sidebar_tree_on_branch_children_reordered (SidebarTree* self, - SidebarBranch* branch, - SidebarEntry* entry); -static void _sidebar_tree_on_branch_children_reordered_sidebar_branch_children_reordered (SidebarBranch* _sender, - SidebarEntry* entry, - gpointer self); -static void sidebar_tree_on_show_branch (SidebarTree* self, - SidebarBranch* branch, - gboolean shown); -static void _sidebar_tree_on_show_branch_sidebar_branch_show_branch (SidebarBranch* _sender, - gboolean show, - gpointer self); -static GType sidebar_tree_root_wrapper_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -static GtkTreeIter* _gtk_tree_iter_dup (GtkTreeIter* self); -static void sidebar_tree_associate_wrapper (SidebarTree* self, - GtkTreeIter* assoc_iter, - SidebarTreeEntryWrapper* wrapper); -static SidebarTreeRootWrapper* sidebar_tree_root_wrapper_new (GtkTreeModel* model, - SidebarEntry* entry, - GtkTreePath* path, - gint root_position); -static SidebarTreeRootWrapper* sidebar_tree_root_wrapper_construct (GType object_type, - GtkTreeModel* model, - SidebarEntry* entry, - GtkTreePath* path, - gint root_position); -static void sidebar_tree_associate_children (SidebarTree* self, - SidebarBranch* branch, - SidebarEntry* parent, - GtkTreeIter* parent_iter); -GeeList* sidebar_branch_get_children (SidebarBranch* self, - SidebarEntry* parent); -static void sidebar_tree_associate_entry (SidebarTree* self, - GtkTreeIter* assoc_iter, - SidebarEntry* entry); -static SidebarTreeEntryWrapper* sidebar_tree_entry_wrapper_new (GtkTreeModel* model, - SidebarEntry* entry, - GtkTreePath* path); -static SidebarTreeEntryWrapper* sidebar_tree_entry_wrapper_construct (GType object_type, - GtkTreeModel* model, - SidebarEntry* entry, - GtkTreePath* path); -gchar* sidebar_entry_get_sidebar_tooltip (SidebarEntry* self); -static void sidebar_tree_load_entry_icons (SidebarTree* self, - GtkTreeIter* iter); -static void sidebar_tree_on_sidebar_tooltip_changed (SidebarTree* self, - SidebarEntry* entry, - const gchar* tooltip); -static void _sidebar_tree_on_sidebar_tooltip_changed_sidebar_entry_sidebar_tooltip_changed (SidebarEntry* _sender, - const gchar* tooltip, - gpointer self); -static void sidebar_tree_on_sidebar_icon_changed (SidebarTree* self, - SidebarEntry* entry, - const gchar* icon_name); -static void _sidebar_tree_on_sidebar_icon_changed_sidebar_entry_sidebar_icon_changed (SidebarEntry* _sender, - const gchar* icon, - gpointer self); -GType page_get_type (void) G_GNUC_CONST; -GType sidebar_page_representative_get_type (void) G_GNUC_CONST; -static void sidebar_tree_on_sidebar_page_created (SidebarTree* self, - SidebarPageRepresentative* entry, - Page* page); -static void _sidebar_tree_on_sidebar_page_created_sidebar_page_representative_page_created (SidebarPageRepresentative* _sender, - Page* page, - gpointer self); -static void sidebar_tree_on_sidebar_destroying_page (SidebarTree* self, - SidebarPageRepresentative* entry, - Page* page); -static void _sidebar_tree_on_sidebar_destroying_page_sidebar_page_representative_destroying_page (SidebarPageRepresentative* _sender, - Page* page, - gpointer self); -static void sidebar_tree_on_is_emphasized_changed (SidebarTree* self, - SidebarEmphasizableEntry* entry, - gboolean is_emphasized); -static void _sidebar_tree_on_is_emphasized_changed_sidebar_emphasizable_entry_is_emphasized_changed (SidebarEmphasizableEntry* _sender, - gboolean emphasized, - gpointer self); -static void sidebar_tree_on_sidebar_name_changed (SidebarTree* self, - SidebarEntry* entry, - const gchar* name); -static void _sidebar_tree_on_sidebar_name_changed_sidebar_renameable_entry_sidebar_name_changed (SidebarRenameableEntry* _sender, - const gchar* name, - gpointer self); -void sidebar_entry_grafted (SidebarEntry* self, - SidebarTree* tree); -static SidebarTreeEntryWrapper* sidebar_tree_reparent_wrapper (SidebarTree* self, - GtkTreeIter* new_iter, - SidebarTreeEntryWrapper* current_wrapper); -void sidebar_tree_prune (SidebarTree* self, - SidebarBranch* branch); -static void sidebar_tree_disassociate_branch (SidebarTree* self, - SidebarBranch* branch); -static void sidebar_tree_disassociate_wrapper_and_signal (SidebarTree* self, - SidebarTreeEntryWrapper* wrapper, - gboolean only_children); -static void sidebar_tree_disassociate_wrapper (SidebarTree* self, - SidebarTreeEntryWrapper* wrapper, - gboolean only_children); -static void sidebar_tree_entry_wrapper_get_iter (SidebarTreeEntryWrapper* self, - GtkTreeIter* result); -void sidebar_entry_pruned (SidebarEntry* self, - SidebarTree* tree); -SidebarEntry* sidebar_branch_get_parent (SidebarBranch* self, - SidebarEntry* entry); -SidebarEntry* sidebar_branch_get_next_sibling (SidebarBranch* self, - SidebarEntry* entry); -gboolean sidebar_branch_is_auto_open_on_new_child (SidebarBranch* self); -SidebarEntry* sidebar_branch_get_previous_sibling (SidebarBranch* self, - SidebarEntry* entry); -static GtkTreePath* sidebar_tree_get_current_path (SidebarTree* self); -static void sidebar_tree_rename_entry (SidebarTree* self, - SidebarEntry* entry); -gchar* sidebar_entry_get_sidebar_icon (SidebarEntry* self); -static void sidebar_tree_load_branch_icons (SidebarTree* self, - GtkTreeIter* iter); -static GtkTreePath* sidebar_tree_get_path_from_event (SidebarTree* self, - GdkEventButton* event); -static gboolean sidebar_tree_popup_context_menu (SidebarTree* self, - GtkTreePath* path, - GdkEventButton* event); -GType sidebar_contextable_get_type (void) G_GNUC_CONST; -GtkMenu* sidebar_contextable_get_sidebar_context_menu (SidebarContextable* self, - GdkEventButton* event); -static gboolean sidebar_tree_popup_default_context_menu (SidebarTree* self, - GdkEventButton* event); -static gboolean sidebar_tree_real_button_press_event (GtkWidget* base, - GdkEventButton* event); -GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType sidebar_internal_drop_target_entry_get_type (void) G_GNUC_CONST; -gboolean sidebar_tree_is_keypress_interpreted (SidebarTree* self, - GdkEventKey* event); -static gboolean sidebar_tree_real_key_press_event (GtkWidget* base, - GdkEventKey* event); -static gboolean sidebar_tree_rename_in_place (SidebarTree* self); -static gboolean sidebar_tree_destroy_path (SidebarTree* self, - GtkTreePath* path); -gboolean sidebar_tree_rename_entry_in_place (SidebarTree* self, - SidebarEntry* entry); -static gboolean sidebar_tree_can_rename_path (SidebarTree* self, - GtkTreePath* path); -static void sidebar_tree_real_drag_data_get (GtkWidget* base, - GdkDragContext* context, - GtkSelectionData* selection_data, - guint info, - guint time); -GType sidebar_internal_drag_source_entry_get_type (void) G_GNUC_CONST; -void sidebar_internal_drag_source_entry_prepare_selection_data (SidebarInternalDragSourceEntry* self, - GtkSelectionData* data); -static void sidebar_tree_real_drag_data_received (GtkWidget* base, - GdkDragContext* context, - gint x, - gint y, - GtkSelectionData* selection_data, - guint info, - guint time); -#define LIBRARY_WINDOW_TAG_PATH_MIME_TYPE "shotwell/tag-path" -gboolean sidebar_internal_drop_target_entry_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* self, - GtkSelectionData* data); -GeeList* unserialize_media_sources (guchar* serialized, - gint size); -gboolean sidebar_internal_drop_target_entry_internal_drop_received (SidebarInternalDropTargetEntry* self, - GeeList* sources); -static gboolean sidebar_tree_real_drag_motion (GtkWidget* base, - GdkDragContext* context, - gint x, - gint y, - guint time); -GType sidebar_destroyable_entry_get_type (void) G_GNUC_CONST; -void sidebar_destroyable_entry_destroy_source (SidebarDestroyableEntry* self); -static void sidebar_tree_on_editing_done (SidebarTree* self); -static void _sidebar_tree_on_editing_done_gtk_cell_editable_editing_done (GtkCellEditable* _sender, - gpointer self); -static gboolean sidebar_tree_on_editing_focus_out (SidebarTree* self, - GdkEventFocus* event); -static gboolean _sidebar_tree_on_editing_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender, - GdkEventFocus* event, - gpointer self); -void sidebar_renameable_entry_rename (SidebarRenameableEntry* self, - const gchar* new_name); -SavedSearchDialog* saved_search_dialog_new (void); -SavedSearchDialog* saved_search_dialog_construct (GType object_type); -GType saved_search_dialog_get_type (void) G_GNUC_CONST; -void saved_search_dialog_show (SavedSearchDialog* self); -GType command_get_type (void) G_GNUC_CONST; -GType page_command_get_type (void) G_GNUC_CONST; -GType new_root_tag_command_get_type (void) G_GNUC_CONST; -NewRootTagCommand* new_root_tag_command_new (void); -NewRootTagCommand* new_root_tag_command_construct (GType object_type); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* app_window_get_command_manager (void); -void command_manager_execute (CommandManager* self, - Command* command); -GType page_window_get_type (void) G_GNUC_CONST; -GType app_window_get_type (void) G_GNUC_CONST; -GType library_window_get_type (void) G_GNUC_CONST; -LibraryWindow* library_window_get_app (void); -GType tag_get_type (void) G_GNUC_CONST; -void library_window_rename_tag_in_sidebar (LibraryWindow* self, - Tag* tag); -Tag* new_root_tag_command_get_created_tag (NewRootTagCommand* self); -static void g_cclosure_user_marshal_VOID__OBJECT_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data); -static void sidebar_tree_entry_wrapper_finalize (GObject * obj); -static void sidebar_tree_root_wrapper_finalize (GObject * obj); -static void sidebar_tree_finalize (GObject * obj); - -static const GActionEntry SIDEBAR_TREE_entries[2] = {{"tag.new", _sidebar_tree_on_new_tag_gsimple_action_activate_callback}, {"search.new", _sidebar_tree_on_new_search_gsimple_action_activate_callback}}; - -static void -_sidebar_tree_on_editing_canceled_gtk_cell_renderer_editing_canceled (GtkCellRenderer* _sender, - gpointer self) -{ -#line 155 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_editing_canceled ((SidebarTree*) self); -#line 925 "Tree.c" -} - - -static void -_sidebar_tree_on_editing_started_gtk_cell_renderer_editing_started (GtkCellRenderer* _sender, - GtkCellEditable* editable, - const gchar* path, - gpointer self) -{ -#line 156 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_editing_started ((SidebarTree*) self, editable, path); -#line 937 "Tree.c" -} - - -static GType -sidebar_tree_columns_get_type (void) -{ - static volatile gsize sidebar_tree_columns_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_tree_columns_type_id__volatile)) { - static const GEnumValue values[] = {{SIDEBAR_TREE_COLUMNS_NAME, "SIDEBAR_TREE_COLUMNS_NAME", "name"}, {SIDEBAR_TREE_COLUMNS_TOOLTIP, "SIDEBAR_TREE_COLUMNS_TOOLTIP", "tooltip"}, {SIDEBAR_TREE_COLUMNS_WRAPPER, "SIDEBAR_TREE_COLUMNS_WRAPPER", "wrapper"}, {SIDEBAR_TREE_COLUMNS_ICON, "SIDEBAR_TREE_COLUMNS_ICON", "icon"}, {SIDEBAR_TREE_COLUMNS_N_COLUMNS, "SIDEBAR_TREE_COLUMNS_N_COLUMNS", "n-columns"}, {0, NULL, NULL}}; - GType sidebar_tree_columns_type_id; - sidebar_tree_columns_type_id = g_enum_register_static ("SidebarTreeColumns", values); - g_once_init_leave (&sidebar_tree_columns_type_id__volatile, sidebar_tree_columns_type_id); - } - return sidebar_tree_columns_type_id__volatile; -} - - -static void -_vala_GtkTreeRowReference_free (GtkTreeRowReference* self) -{ -#line 77 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_boxed_free (gtk_tree_row_reference_get_type (), self); -#line 960 "Tree.c" -} - - -static void -_sidebar_tree_on_new_tag_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 192 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_new_tag ((SidebarTree*) self); -#line 971 "Tree.c" -} - - -static void -_sidebar_tree_on_new_search_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 192 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_new_search ((SidebarTree*) self); -#line 982 "Tree.c" -} - - -static void -_sidebar_tree_icon_renderer_function_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, - GtkCellRenderer* cell, - GtkTreeModel* tree_model, - GtkTreeIter* iter, - gpointer self) -{ -#line 103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_icon_renderer_function ((SidebarTree*) self, cell_layout, cell, tree_model, iter); -#line 995 "Tree.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 126 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return self ? g_object_ref (self) : NULL; -#line 1004 "Tree.c" -} - - -static gboolean -_sidebar_tree_on_selection_gtk_tree_selection_func (GtkTreeSelection* selection, - GtkTreeModel* model, - GtkTreePath* path, - gboolean path_currently_selected, - gpointer self) -{ - gboolean result; - result = sidebar_tree_on_selection ((SidebarTree*) self, selection, model, path, path_currently_selected); -#line 128 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 1019 "Tree.c" -} - - -static gboolean -_sidebar_tree_on_toggle_row_gtk_tree_view_test_expand_row (GtkTreeView* _sender, - GtkTreeIter* iter, - GtkTreePath* path, - gpointer self) -{ - gboolean result; - result = sidebar_tree_on_toggle_row ((SidebarTree*) self, iter, path); -#line 130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 1033 "Tree.c" -} - - -static gboolean -_sidebar_tree_on_toggle_row_gtk_tree_view_test_collapse_row (GtkTreeView* _sender, - GtkTreeIter* iter, - GtkTreePath* path, - gpointer self) -{ - gboolean result; - result = sidebar_tree_on_toggle_row ((SidebarTree*) self, iter, path); -#line 131 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 1047 "Tree.c" -} - - -static void -_vala_array_add67 (GtkTargetEntry* * array, - int* length, - int* size, - const GtkTargetEntry* value) -{ -#line 139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if ((*length) == (*size)) { -#line 139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - *array = g_renew (GtkTargetEntry, *array, *size); -#line 1063 "Tree.c" - } -#line 139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - (*array)[(*length)++] = *value; -#line 1067 "Tree.c" -} - - -static gboolean -_sidebar_tree_on_context_menu_keypress_gtk_widget_popup_menu (GtkWidget* _sender, - gpointer self) -{ - gboolean result; - result = sidebar_tree_on_context_menu_keypress ((SidebarTree*) self); -#line 145 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 1079 "Tree.c" -} - - -static void -_sidebar_tree_on_drag_begin_gtk_widget_drag_begin (GtkWidget* _sender, - GdkDragContext* context, - gpointer self) -{ -#line 149 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_drag_begin ((SidebarTree*) self, context); -#line 1090 "Tree.c" -} - - -static void -_sidebar_tree_on_drag_end_gtk_widget_drag_end (GtkWidget* _sender, - GdkDragContext* context, - gpointer self) -{ -#line 150 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_drag_end ((SidebarTree*) self, context); -#line 1101 "Tree.c" -} - - -static gboolean -_sidebar_tree_on_drag_motion_gtk_widget_drag_motion (GtkWidget* _sender, - GdkDragContext* context, - gint x, - gint y, - guint time_, - gpointer self) -{ - gboolean result; - result = sidebar_tree_on_drag_motion ((SidebarTree*) self, context, x, y, time_); -#line 151 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 1117 "Tree.c" -} - - -SidebarTree* -sidebar_tree_construct (GType object_type, - GtkTargetEntry* target_entries, - int target_entries_length1, - GdkDragAction actions, - SidebarTreeExternalDropHandler drop_handler, - void* drop_handler_target) -{ - SidebarTree * self = NULL; - GtkTreeStore* _tmp0_; - GtkTreeViewColumn* text_column = NULL; - GtkTreeViewColumn* _tmp1_; - GtkCellRendererPixbuf* icon_renderer = NULL; - GtkCellRendererPixbuf* _tmp2_; - GtkCellRendererText* _tmp3_; - GtkCellRendererText* _tmp4_; - GtkCellRendererText* _tmp5_; - GtkCellRendererText* _tmp6_; - GtkCellRendererText* _tmp7_; - GtkCellRendererText* _tmp8_; - GtkCellRendererText* invisitext = NULL; - GtkCellRendererText* _tmp9_; - GtkTreeViewColumn* page_holder = NULL; - GtkTreeViewColumn* _tmp10_; - GtkTreeSelection* selection = NULL; - GtkTreeSelection* _tmp11_; - GtkTreeSelection* _tmp12_; - GtkTargetEntry* source_entries = NULL; - GtkTargetEntry* _tmp13_; - gint source_entries_length1; - gint _source_entries_size_; - GtkTargetEntry* _tmp14_; - gint _tmp14__length1; - GtkTargetEntry _tmp15_; - GtkTargetEntry* _tmp16_; - gint _tmp16__length1; -#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self = (SidebarTree*) g_object_new (object_type, NULL); -#line 95 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->priv->store; -#line 95 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_set_model (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_tree_model_get_type (), GtkTreeModel)); -#line 97 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = gtk_tree_view_column_new (); -#line 97 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_ref_sink (_tmp1_); -#line 97 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - text_column = _tmp1_; -#line 98 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_column_set_expand (text_column, TRUE); -#line 99 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new (); -#line 99 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_ref_sink (_tmp2_); -#line 99 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - icon_renderer = _tmp2_; -#line 100 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_set (icon_renderer, "follow-state", TRUE, NULL); -#line 101 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (text_column, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (icon_renderer, gtk_cell_renderer_get_type (), GtkCellRenderer), FALSE); -#line 102 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (text_column, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (icon_renderer, gtk_cell_renderer_get_type (), GtkCellRenderer), "gicon", (gint) SIDEBAR_TREE_COLUMNS_ICON); -#line 103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_cell_layout_set_cell_data_func (G_TYPE_CHECK_INSTANCE_CAST (text_column, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (icon_renderer, gtk_cell_renderer_get_type (), GtkCellRenderer), _sidebar_tree_icon_renderer_function_gtk_cell_layout_data_func, g_object_ref (self), g_object_unref); -#line 104 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = (GtkCellRendererText*) gtk_cell_renderer_text_new (); -#line 104 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_ref_sink (_tmp3_); -#line 104 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (self->priv->text_renderer); -#line 104 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->text_renderer = _tmp3_; -#line 105 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = self->priv->text_renderer; -#line 105 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_set (_tmp4_, "ellipsize", PANGO_ELLIPSIZE_END, NULL); -#line 106 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = self->priv->text_renderer; -#line 106 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_cell_renderer_get_type (), GtkCellRenderer), "editing-canceled", (GCallback) _sidebar_tree_on_editing_canceled_gtk_cell_renderer_editing_canceled, self, 0); -#line 107 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = self->priv->text_renderer; -#line 107 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_cell_renderer_get_type (), GtkCellRenderer), "editing-started", (GCallback) _sidebar_tree_on_editing_started_gtk_cell_renderer_editing_started, self, 0); -#line 108 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = self->priv->text_renderer; -#line 108 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (text_column, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, gtk_cell_renderer_get_type (), GtkCellRenderer), TRUE); -#line 109 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = self->priv->text_renderer; -#line 109 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_cell_layout_add_attribute (G_TYPE_CHECK_INSTANCE_CAST (text_column, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_cell_renderer_get_type (), GtkCellRenderer), "markup", (gint) SIDEBAR_TREE_COLUMNS_NAME); -#line 110 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_append_column (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), text_column); -#line 112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = (GtkCellRendererText*) gtk_cell_renderer_text_new (); -#line 112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_ref_sink (_tmp9_); -#line 112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - invisitext = _tmp9_; -#line 113 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = gtk_tree_view_column_new (); -#line 113 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_ref_sink (_tmp10_); -#line 113 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - page_holder = _tmp10_; -#line 114 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_cell_layout_pack_start (G_TYPE_CHECK_INSTANCE_CAST (page_holder, gtk_cell_layout_get_type (), GtkCellLayout), G_TYPE_CHECK_INSTANCE_CAST (invisitext, gtk_cell_renderer_get_type (), GtkCellRenderer), TRUE); -#line 115 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_column_set_visible (page_holder, FALSE); -#line 116 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_append_column (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), page_holder); -#line 118 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_set_headers_visible (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE); -#line 119 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_set_enable_search (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE); -#line 120 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_set_show_expanders (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), TRUE); -#line 121 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_set_reorderable (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE); -#line 122 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_set_enable_tree_lines (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), FALSE); -#line 123 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_set_grid_lines (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), GTK_TREE_VIEW_GRID_LINES_NONE); -#line 124 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_set_tooltip_column (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), (gint) SIDEBAR_TREE_COLUMNS_TOOLTIP); -#line 126 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView)); -#line 126 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = _g_object_ref0 (_tmp11_); -#line 126 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - selection = _tmp12_; -#line 127 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_selection_set_mode (selection, GTK_SELECTION_BROWSE); -#line 128 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_selection_set_select_function (selection, _sidebar_tree_on_selection_gtk_tree_selection_func, g_object_ref (self), g_object_unref); -#line 130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), "test-expand-row", (GCallback) _sidebar_tree_on_toggle_row_gtk_tree_view_test_expand_row, self, 0); -#line 131 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), "test-collapse-row", (GCallback) _sidebar_tree_on_toggle_row_gtk_tree_view_test_collapse_row, self, 0); -#line 136 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_enable_model_drag_dest (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), target_entries, target_entries_length1, actions); -#line 138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = g_new0 (GtkTargetEntry, 0); -#line 138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - source_entries = _tmp13_; -#line 138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - source_entries_length1 = 0; -#line 138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _source_entries_size_ = source_entries_length1; -#line 139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = source_entries; -#line 139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14__length1 = source_entries_length1; -#line 139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp15_ = target_entries[LIBRARY_WINDOW_TARGET_TYPE_TAG_PATH]; -#line 139 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_array_add67 (&source_entries, &source_entries_length1, &_source_entries_size_, &_tmp15_); -#line 140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp16_ = source_entries; -#line 140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp16__length1 = source_entries_length1; -#line 140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_enable_model_drag_source (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), GDK_BUTTON1_MASK, _tmp16_, _tmp16__length1, GDK_ACTION_COPY); -#line 143 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->drop_handler = drop_handler; -#line 143 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->drop_handler_target = drop_handler_target; -#line 145 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "popup-menu", (GCallback) _sidebar_tree_on_context_menu_keypress_gtk_widget_popup_menu, self, 0); -#line 147 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_setup_default_context_menu (self); -#line 149 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "drag-begin", (GCallback) _sidebar_tree_on_drag_begin_gtk_widget_drag_begin, self, 0); -#line 150 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "drag-end", (GCallback) _sidebar_tree_on_drag_end_gtk_widget_drag_end, self, 0); -#line 151 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "drag-motion", (GCallback) _sidebar_tree_on_drag_motion_gtk_widget_drag_motion, self, 0); -#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - source_entries = (g_free (source_entries), NULL); -#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (selection); -#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (page_holder); -#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (invisitext); -#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (icon_renderer); -#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (text_column); -#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return self; -#line 1313 "Tree.c" -} - - -SidebarTree* -sidebar_tree_new (GtkTargetEntry* target_entries, - int target_entries_length1, - GdkDragAction actions, - SidebarTreeExternalDropHandler drop_handler, - void* drop_handler_target) -{ -#line 93 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return sidebar_tree_construct (SIDEBAR_TYPE_TREE, target_entries, target_entries_length1, actions, drop_handler, drop_handler_target); -#line 1326 "Tree.c" -} - - -void -sidebar_tree_icon_renderer_function (SidebarTree* self, - GtkCellLayout* layout, - GtkCellRenderer* renderer, - GtkTreeModel* model, - GtkTreeIter* iter) -{ - SidebarTreeEntryWrapper* wrapper = NULL; - GtkTreeIter _tmp0_; - SidebarTreeEntryWrapper* _tmp1_; - SidebarTreeEntryWrapper* _tmp2_; - SidebarTreeEntryWrapper* _tmp3_; - SidebarEntry* _tmp4_; -#line 159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (GTK_IS_CELL_LAYOUT (layout)); -#line 159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (GTK_IS_CELL_RENDERER (renderer)); -#line 159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (GTK_IS_TREE_MODEL (model)); -#line 159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (iter != NULL); -#line 160 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = *iter; -#line 160 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = sidebar_tree_get_wrapper_at_iter (self, &_tmp0_); -#line 160 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp1_; -#line 161 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = wrapper; -#line 161 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp2_ == NULL) { -#line 162 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 162 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 1367 "Tree.c" - } -#line 164 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = wrapper; -#line 164 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _tmp3_->entry; -#line 164 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_cell_renderer_set_visible (renderer, !G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, SIDEBAR_TYPE_HEADER)); -#line 159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1377 "Tree.c" -} - - -static void -sidebar_tree_on_drag_begin (SidebarTree* self, - GdkDragContext* ctx) -{ -#line 167 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 167 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (GDK_IS_DRAG_CONTEXT (ctx)); -#line 168 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->is_internal_drag_in_progress = TRUE; -#line 1391 "Tree.c" -} - - -static void -sidebar_tree_on_drag_end (SidebarTree* self, - GdkDragContext* ctx) -{ -#line 171 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 171 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (GDK_IS_DRAG_CONTEXT (ctx)); -#line 172 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->is_internal_drag_in_progress = FALSE; -#line 173 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (self->priv->internal_drag_source_entry); -#line 173 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->internal_drag_source_entry = NULL; -#line 1409 "Tree.c" -} - - -static void -_vala_GtkTreePath_free (GtkTreePath* self) -{ -#line 180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_boxed_free (gtk_tree_path_get_type (), self); -#line 1418 "Tree.c" -} - - -static gboolean -sidebar_tree_on_drag_motion (SidebarTree* self, - GdkDragContext* context, - gint x, - gint y, - guint time_) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_; -#line 176 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 176 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE); -#line 177 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = self->priv->is_internal_drag_in_progress; -#line 177 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp1_) { -#line 1440 "Tree.c" - SidebarEntry* _tmp2_; -#line 177 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = self->priv->internal_drag_source_entry; -#line 177 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = _tmp2_ == NULL; -#line 1446 "Tree.c" - } else { -#line 177 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = FALSE; -#line 1450 "Tree.c" - } -#line 177 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp0_) { -#line 1454 "Tree.c" - GtkTreePath* path = NULL; - GtkTreeViewDropPosition position = 0; - GtkTreePath* _tmp3_ = NULL; - GtkTreeViewDropPosition _tmp4_ = 0; - GtkTreePath* _tmp5_; -#line 180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_get_dest_row_at_pos (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), x, y, &_tmp3_, &_tmp4_); -#line 180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - path = _tmp3_; -#line 180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - position = _tmp4_; -#line 182 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = path; -#line 182 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp5_ != NULL) { -#line 1472 "Tree.c" - SidebarTreeEntryWrapper* wrapper = NULL; - GtkTreePath* _tmp6_; - SidebarTreeEntryWrapper* _tmp7_; - SidebarTreeEntryWrapper* _tmp8_; -#line 183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = path; -#line 183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = sidebar_tree_get_wrapper_at_path (self, _tmp6_); -#line 183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp7_; -#line 184 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = wrapper; -#line 184 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp8_ != NULL) { -#line 1487 "Tree.c" - SidebarTreeEntryWrapper* _tmp9_; - SidebarEntry* _tmp10_; - SidebarEntry* _tmp11_; -#line 185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = wrapper; -#line 185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = _tmp9_->entry; -#line 185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = _g_object_ref0 (_tmp10_); -#line 185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (self->priv->internal_drag_source_entry); -#line 185 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->internal_drag_source_entry = _tmp11_; -#line 1501 "Tree.c" - } -#line 182 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1505 "Tree.c" - } -#line 177 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 1509 "Tree.c" - } -#line 189 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 189 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 1515 "Tree.c" -} - - -static void -sidebar_tree_setup_default_context_menu (SidebarTree* self) -{ - GError * _inner_error_ = NULL; -#line 197 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 1525 "Tree.c" - { - GtkBuilder* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - GMenuModel* model = NULL; - GtkBuilder* _tmp3_; - GObject* _tmp4_; - GMenuModel* _tmp5_; - GMenuModel* _tmp6_; - GtkMenu* _tmp7_; - GSimpleActionGroup* group = NULL; - GSimpleActionGroup* _tmp8_; - GSimpleActionGroup* _tmp9_; - GSimpleActionGroup* _tmp10_; - GtkMenu* _tmp11_; -#line 199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->priv->builder; -#line 199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = resources_get_ui ("sidebar_default_context.ui"); -#line 199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = _tmp1_; -#line 199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_builder_add_from_resource (_tmp0_, _tmp2_, &_inner_error_); -#line 199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (_tmp2_); -#line 199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1553 "Tree.c" - goto __catch55_g_error; - } -#line 200 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = self->priv->builder; -#line 200 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = gtk_builder_get_object (_tmp3_, "popup-menu"); -#line 200 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp4_) : NULL); -#line 200 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - model = _tmp5_; -#line 201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = model; -#line 201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = (GtkMenu*) gtk_menu_new_from_model (_tmp6_); -#line 201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_ref_sink (_tmp7_); -#line 201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (self->priv->default_context_menu); -#line 201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->default_context_menu = _tmp7_; -#line 202 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = g_simple_action_group_new (); -#line 202 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - group = _tmp8_; -#line 203 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = group; -#line 203 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_action_map_add_action_entries (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, g_action_map_get_type (), GActionMap), SIDEBAR_TREE_entries, G_N_ELEMENTS (SIDEBAR_TREE_entries), self); -#line 204 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = group; -#line 204 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_widget_insert_action_group (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "sidebar", G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, g_action_group_get_type (), GActionGroup)); -#line 205 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = self->priv->default_context_menu; -#line 205 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_menu_attach_to_widget (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), NULL); -#line 198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (group); -#line 198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (model); -#line 1594 "Tree.c" - } - goto __finally55; - __catch55_g_error: - { - GError* _error_ = NULL; - GError* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - Application* _tmp16_; - Application* _tmp17_; -#line 198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _error_ = _inner_error_; -#line 198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _inner_error_ = NULL; -#line 207 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = _error_; -#line 207 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = _tmp12_->message; -#line 207 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = g_strdup_printf ("Error loading UI resource: %s", _tmp13_); -#line 207 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp15_ = _tmp14_; -#line 207 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - app_window_error_message (_tmp15_, NULL); -#line 207 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (_tmp15_); -#line 209 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp16_ = application_get_instance (); -#line 209 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp17_ = _tmp16_; -#line 209 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - application_panic (_tmp17_); -#line 209 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _application_unref0 (_tmp17_); -#line 198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_error_free0 (_error_); -#line 1632 "Tree.c" - } - __finally55: -#line 198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_clear_error (&_inner_error_); -#line 198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 1643 "Tree.c" - } -} - - -static gboolean -sidebar_tree_has_wrapper (SidebarTree* self, - SidebarEntry* entry) -{ - gboolean result = FALSE; - GeeHashMap* _tmp0_; -#line 213 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 213 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE); -#line 214 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->priv->entry_map; -#line 214 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry); -#line 214 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 1664 "Tree.c" -} - - -static SidebarTreeEntryWrapper* -sidebar_tree_get_wrapper (SidebarTree* self, - SidebarEntry* entry) -{ - SidebarTreeEntryWrapper* result = NULL; - SidebarTreeEntryWrapper* wrapper = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - SidebarTreeEntryWrapper* _tmp2_; -#line 217 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), NULL); -#line 217 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), NULL); -#line 218 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->priv->entry_map; -#line 218 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry); -#line 218 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = (SidebarTreeEntryWrapper*) _tmp1_; -#line 219 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = wrapper; -#line 219 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp2_ == NULL) { -#line 1691 "Tree.c" - gchar* _tmp3_; - gchar* _tmp4_; -#line 220 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = sidebar_entry_to_string (entry); -#line 220 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _tmp3_; -#line 220 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_warning ("Tree.vala:220: Entry %s not found in sidebar", _tmp4_); -#line 220 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (_tmp4_); -#line 1702 "Tree.c" - } -#line 222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = wrapper; -#line 222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 1708 "Tree.c" -} - - -static SidebarTreeEntryWrapper* -sidebar_tree_get_wrapper_at_iter (SidebarTree* self, - GtkTreeIter* iter) -{ - SidebarTreeEntryWrapper* result = NULL; - GValue val = {0}; - GtkTreeStore* _tmp0_; - GtkTreeIter _tmp1_; - GValue _tmp2_ = {0}; - SidebarTreeEntryWrapper* wrapper = NULL; - GValue _tmp3_; - SidebarTreeEntryWrapper* _tmp4_; - SidebarTreeEntryWrapper* _tmp5_; -#line 225 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), NULL); -#line 225 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (iter != NULL, NULL); -#line 227 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->priv->store; -#line 227 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = *iter; -#line 227 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_model_get_value (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp1_, (gint) SIDEBAR_TREE_COLUMNS_WRAPPER, &_tmp2_); -#line 227 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL; -#line 227 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - val = _tmp2_; -#line 229 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = val; -#line 229 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _g_object_ref0 (g_value_get_object (&_tmp3_)); -#line 229 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp4_; -#line 230 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = wrapper; -#line 230 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp5_ == NULL) { -#line 1749 "Tree.c" - GtkTreeStore* _tmp6_; - GtkTreeIter _tmp7_; - GtkTreePath* _tmp8_; - GtkTreePath* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; -#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = self->priv->store; -#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = *iter; -#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = gtk_tree_model_get_path (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp7_); -#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = _tmp8_; -#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = gtk_tree_path_to_string (_tmp9_); -#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = _tmp10_; -#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_message ("Tree.vala:231: No entry found in sidebar at %s", _tmp11_); -#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (_tmp11_); -#line 231 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (_tmp9_); -#line 1774 "Tree.c" - } -#line 233 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = wrapper; -#line 233 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - G_IS_VALUE (&val) ? (g_value_unset (&val), NULL) : NULL; -#line 233 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 1782 "Tree.c" -} - - -static SidebarTreeEntryWrapper* -sidebar_tree_get_wrapper_at_path (SidebarTree* self, - GtkTreePath* path) -{ - SidebarTreeEntryWrapper* result = NULL; - GtkTreeIter iter = {0}; - GtkTreeStore* _tmp0_; - GtkTreeIter _tmp1_ = {0}; - gboolean _tmp2_; - GtkTreeIter _tmp5_; - SidebarTreeEntryWrapper* _tmp6_; -#line 236 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), NULL); -#line 236 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (path != NULL, NULL); -#line 238 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->priv->store; -#line 238 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = gtk_tree_model_get_iter (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp1_, path); -#line 238 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - iter = _tmp1_; -#line 238 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (!_tmp2_) { -#line 1809 "Tree.c" - gchar* _tmp3_; - gchar* _tmp4_; -#line 239 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = gtk_tree_path_to_string (path); -#line 239 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _tmp3_; -#line 239 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_message ("Tree.vala:239: No entry found in sidebar at %s", _tmp4_); -#line 239 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (_tmp4_); -#line 241 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = NULL; -#line 241 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 1824 "Tree.c" - } -#line 244 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = iter; -#line 244 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = sidebar_tree_get_wrapper_at_iter (self, &_tmp5_); -#line 244 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = _tmp6_; -#line 244 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 1834 "Tree.c" -} - - -gboolean -sidebar_tree_place_cursor (SidebarTree* self, - SidebarEntry* entry, - gboolean mask_signal) -{ - gboolean result = FALSE; - SidebarTreeEntryWrapper* wrapper = NULL; - SidebarTreeEntryWrapper* _tmp0_; - SidebarTreeEntryWrapper* _tmp1_; - GtkTreeSelection* _tmp2_; - SidebarTreeEntryWrapper* _tmp3_; - GtkTreePath* _tmp4_; - GtkTreePath* _tmp5_; - SidebarTreeEntryWrapper* _tmp6_; - GtkTreePath* _tmp7_; - GtkTreePath* _tmp8_; -#line 249 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 249 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE); -#line 250 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (!sidebar_tree_expand_to_entry (self, entry)) { -#line 251 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 251 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 1864 "Tree.c" - } -#line 253 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_tree_get_wrapper (self, entry); -#line 253 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp0_; -#line 254 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = wrapper; -#line 254 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp1_ == NULL) { -#line 255 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 255 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 255 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 1880 "Tree.c" - } -#line 257 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView)); -#line 257 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = wrapper; -#line 257 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = sidebar_tree_entry_wrapper_get_path (_tmp3_); -#line 257 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = _tmp4_; -#line 257 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_selection_select_path (_tmp2_, _tmp5_); -#line 257 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (_tmp5_); -#line 259 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->mask_entry_selected_signal = mask_signal; -#line 260 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = wrapper; -#line 260 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = sidebar_tree_entry_wrapper_get_path (_tmp6_); -#line 260 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = _tmp7_; -#line 260 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_set_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp8_, NULL, FALSE); -#line 260 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (_tmp8_); -#line 261 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->mask_entry_selected_signal = FALSE; -#line 263 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = sidebar_tree_scroll_to_entry (self, entry); -#line 263 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 263 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 1914 "Tree.c" -} - - -gboolean -sidebar_tree_is_selected (SidebarTree* self, - SidebarEntry* entry) -{ - gboolean result = FALSE; - SidebarTreeEntryWrapper* wrapper = NULL; - SidebarTreeEntryWrapper* _tmp0_; - GtkTreeSelection* selection = NULL; - GtkTreeSelection* _tmp1_; - GtkTreeSelection* _tmp2_; - GtkTreeSelection* _tmp3_; - gboolean _tmp4_ = FALSE; - SidebarTreeEntryWrapper* _tmp5_; -#line 266 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 266 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE); -#line 267 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_tree_get_wrapper (self, entry); -#line 267 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp0_; -#line 271 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView)); -#line 271 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 271 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - selection = _tmp2_; -#line 272 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = selection; -#line 272 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp3_ == NULL) { -#line 273 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 273 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (selection); -#line 273 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 273 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 1957 "Tree.c" - } -#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = wrapper; -#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp5_ != NULL) { -#line 1963 "Tree.c" - GtkTreeSelection* _tmp6_; - SidebarTreeEntryWrapper* _tmp7_; - GtkTreePath* _tmp8_; - GtkTreePath* _tmp9_; -#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = selection; -#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = wrapper; -#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = sidebar_tree_entry_wrapper_get_path (_tmp7_); -#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = _tmp8_; -#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = gtk_tree_selection_path_is_selected (_tmp6_, _tmp9_); -#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (_tmp9_); -#line 1980 "Tree.c" - } else { -#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = FALSE; -#line 1984 "Tree.c" - } -#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = _tmp4_; -#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (selection); -#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 275 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 1994 "Tree.c" -} - - -gboolean -sidebar_tree_is_any_selected (SidebarTree* self) -{ - gboolean result = FALSE; - GtkTreeSelection* _tmp0_; -#line 278 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 279 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView)); -#line 279 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = gtk_tree_selection_count_selected_rows (_tmp0_) != 0; -#line 279 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 2011 "Tree.c" -} - - -static GtkTreePath* -_vala_GtkTreePath_copy (GtkTreePath* self) -{ -#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return g_boxed_copy (gtk_tree_path_get_type (), self); -#line 2020 "Tree.c" -} - - -static gpointer -__vala_GtkTreePath_copy0 (gpointer self) -{ -#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return self ? _vala_GtkTreePath_copy (self) : NULL; -#line 2029 "Tree.c" -} - - -static void -__vala_GtkTreePath_free0_ (gpointer var) -{ -#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - (var == NULL) ? NULL : (var = (_vala_GtkTreePath_free (var), NULL)); -#line 2038 "Tree.c" -} - - -static inline void -_g_list_free___vala_GtkTreePath_free0_ (GList* self) -{ -#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_list_free_full (self, (GDestroyNotify) __vala_GtkTreePath_free0_); -#line 2047 "Tree.c" -} - - -static GtkTreePath* -sidebar_tree_get_selected_path (SidebarTree* self) -{ - GtkTreePath* result = NULL; - GtkTreeModel* model = NULL; - GtkTreeSelection* selection = NULL; - GtkTreeSelection* _tmp0_; - GtkTreeSelection* _tmp1_; - GtkTreeSelection* _tmp2_; - GList* rows = NULL; - GtkTreeSelection* _tmp3_; - GtkTreeModel* _tmp4_ = NULL; - GList* _tmp5_; - GtkTreeModel* _tmp6_; - gboolean _tmp7_ = FALSE; - GList* _tmp8_; - GtkTreePath* _tmp10_ = NULL; - GList* _tmp11_; - GtkTreePath* _tmp14_; -#line 282 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), NULL); -#line 284 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView)); -#line 284 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 284 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - selection = _tmp1_; -#line 285 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = selection; -#line 285 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp2_ == NULL) { -#line 286 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = NULL; -#line 286 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (selection); -#line 286 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (model); -#line 286 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 2090 "Tree.c" - } -#line 288 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = selection; -#line 288 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = gtk_tree_selection_get_selected_rows (_tmp3_, &_tmp4_); -#line 288 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (model); -#line 288 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = _g_object_ref0 (_tmp4_); -#line 288 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - model = _tmp6_; -#line 288 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - rows = _tmp5_; -#line 289 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = rows; -#line 289 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (g_list_length (_tmp8_) == ((guint) 0)) { -#line 289 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = TRUE; -#line 2110 "Tree.c" - } else { - GList* _tmp9_; -#line 289 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = rows; -#line 289 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = g_list_length (_tmp9_) == ((guint) 1); -#line 2117 "Tree.c" - } -#line 289 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (_tmp7_, "rows.length() == 0 || rows.length() == 1"); -#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = rows; -#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (g_list_length (_tmp11_) != ((guint) 0)) { -#line 2125 "Tree.c" - GList* _tmp12_; - gconstpointer _tmp13_; -#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = rows; -#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = g_list_nth_data (_tmp12_, (guint) 0); -#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = (GtkTreePath*) _tmp13_; -#line 2134 "Tree.c" - } else { -#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = NULL; -#line 2138 "Tree.c" - } -#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = __vala_GtkTreePath_copy0 (_tmp10_); -#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = _tmp14_; -#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __g_list_free___vala_GtkTreePath_free0_0 (rows); -#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (selection); -#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (model); -#line 291 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 2152 "Tree.c" -} - - -static gchar* -sidebar_tree_get_name_for_entry (SidebarTree* self, - SidebarEntry* entry) -{ - gchar* result = NULL; - gchar* name = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - SidebarEmphasizableEntry* emphasizable_entry = NULL; - SidebarEmphasizableEntry* _tmp4_; - gboolean _tmp5_ = FALSE; - SidebarEmphasizableEntry* _tmp6_; -#line 294 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), NULL); -#line 294 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), NULL); -#line 295 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_entry_get_sidebar_name (entry); -#line 295 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = _tmp0_; -#line 295 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = guarded_markup_escape_text (_tmp1_); -#line 295 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = _tmp2_; -#line 295 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (_tmp1_); -#line 295 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - name = _tmp3_; -#line 297 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (entry, SIDEBAR_TYPE_EMPHASIZABLE_ENTRY) ? ((SidebarEmphasizableEntry*) entry) : NULL); -#line 297 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - emphasizable_entry = _tmp4_; -#line 298 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = emphasizable_entry; -#line 298 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp6_ != NULL) { -#line 2194 "Tree.c" - SidebarEmphasizableEntry* _tmp7_; -#line 298 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = emphasizable_entry; -#line 298 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = sidebar_emphasizable_entry_is_emphasized (_tmp7_); -#line 2200 "Tree.c" - } else { -#line 298 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = FALSE; -#line 2204 "Tree.c" - } -#line 298 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp5_) { -#line 2208 "Tree.c" - const gchar* _tmp8_; - gchar* _tmp9_; -#line 299 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = name; -#line 299 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = g_strdup_printf ("%s", _tmp8_); -#line 299 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (name); -#line 299 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - name = _tmp9_; -#line 2219 "Tree.c" - } -#line 301 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = name; -#line 301 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (emphasizable_entry); -#line 301 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 2227 "Tree.c" -} - - -static gboolean -sidebar_tree_real_accept_cursor_changed (SidebarTree* self) -{ - gboolean result = FALSE; -#line 305 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = TRUE; -#line 305 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 2239 "Tree.c" -} - - -gboolean -sidebar_tree_accept_cursor_changed (SidebarTree* self) -{ -#line 304 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 304 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return SIDEBAR_TREE_GET_CLASS (self)->accept_cursor_changed (self); -#line 2250 "Tree.c" -} - - -static void -sidebar_tree_real_cursor_changed (GtkTreeView* base) -{ - SidebarTree * self; - GtkTreePath* path = NULL; - GtkTreePath* _tmp0_; - GtkTreePath* _tmp1_; - SidebarTreeEntryWrapper* wrapper = NULL; - GtkTreePath* _tmp2_; - SidebarTreeEntryWrapper* _tmp3_; - SidebarTreeEntryWrapper* _tmp4_; - SidebarTreeEntryWrapper* _tmp5_; -#line 308 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_TREE, SidebarTree); -#line 309 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_tree_get_selected_path (self); -#line 309 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - path = _tmp0_; -#line 310 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = path; -#line 310 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp1_ == NULL) { -#line 311 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (GTK_TREE_VIEW_CLASS (sidebar_tree_parent_class)->cursor_changed != NULL) { -#line 312 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - GTK_TREE_VIEW_CLASS (sidebar_tree_parent_class)->cursor_changed (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView)); -#line 2280 "Tree.c" - } -#line 313 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 313 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 2286 "Tree.c" - } -#line 316 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = path; -#line 316 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = sidebar_tree_get_wrapper_at_path (self, _tmp2_); -#line 316 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp3_; -#line 318 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = self->priv->selected_wrapper; -#line 318 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = wrapper; -#line 318 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp4_ != _tmp5_) { -#line 2300 "Tree.c" - SidebarTreeEntryWrapper* old_wrapper = NULL; - SidebarTreeEntryWrapper* _tmp6_; - SidebarTreeEntryWrapper* _tmp7_; - SidebarTreeEntryWrapper* _tmp8_; - gboolean _tmp9_ = FALSE; - gboolean _tmp10_ = FALSE; - gint _tmp11_; - gboolean _tmp18_ = FALSE; - SidebarTreeEntryWrapper* _tmp19_; -#line 319 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = self->priv->selected_wrapper; -#line 319 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = _g_object_ref0 (_tmp6_); -#line 319 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - old_wrapper = _tmp7_; -#line 320 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = wrapper; -#line 320 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->selected_wrapper = _tmp8_; -#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = self->priv->editing_disabled; -#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp11_ == 0) { -#line 2324 "Tree.c" - SidebarTreeEntryWrapper* _tmp12_; -#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = wrapper; -#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = _tmp12_ != NULL; -#line 2330 "Tree.c" - } else { -#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = FALSE; -#line 2334 "Tree.c" - } -#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp10_) { -#line 2338 "Tree.c" - SidebarTreeEntryWrapper* _tmp13_; - SidebarEntry* _tmp14_; -#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = wrapper; -#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = _tmp13_->entry; -#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, SIDEBAR_TYPE_RENAMEABLE_ENTRY); -#line 2347 "Tree.c" - } else { -#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = FALSE; -#line 2351 "Tree.c" - } -#line 322 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp9_) { -#line 2355 "Tree.c" - GtkCellRendererText* _tmp15_; - SidebarTreeEntryWrapper* _tmp16_; - SidebarEntry* _tmp17_; -#line 323 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp15_ = self->priv->text_renderer; -#line 323 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp16_ = wrapper; -#line 323 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp17_ = _tmp16_->entry; -#line 323 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_set (_tmp15_, "editable", sidebar_renameable_entry_is_user_renameable (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry)), NULL); -#line 2367 "Tree.c" - } -#line 325 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp19_ = wrapper; -#line 325 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp19_ != NULL) { -#line 2373 "Tree.c" - gboolean _tmp20_; -#line 325 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp20_ = self->priv->mask_entry_selected_signal; -#line 325 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp18_ = !_tmp20_; -#line 2379 "Tree.c" - } else { -#line 325 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp18_ = FALSE; -#line 2383 "Tree.c" - } -#line 325 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp18_) { -#line 2387 "Tree.c" - SidebarSelectableEntry* selectable = NULL; - SidebarTreeEntryWrapper* _tmp21_; - SidebarEntry* _tmp22_; - SidebarSelectableEntry* _tmp23_; - SidebarSelectableEntry* _tmp24_; -#line 326 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp21_ = wrapper; -#line 326 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp22_ = _tmp21_->entry; -#line 326 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp23_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, SIDEBAR_TYPE_SELECTABLE_ENTRY) ? ((SidebarSelectableEntry*) _tmp22_) : NULL); -#line 326 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - selectable = _tmp23_; -#line 327 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp24_ = selectable; -#line 327 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp24_ != NULL) { -#line 328 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (sidebar_tree_accept_cursor_changed (self)) { -#line 2407 "Tree.c" - SidebarSelectableEntry* _tmp25_; -#line 329 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp25_ = selectable; -#line 329 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_emit (self, sidebar_tree_signals[SIDEBAR_TREE_ENTRY_SELECTED_SIGNAL], 0, _tmp25_); -#line 2413 "Tree.c" - } else { - SidebarTreeEntryWrapper* _tmp26_; - SidebarEntry* _tmp27_; -#line 331 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp26_ = old_wrapper; -#line 331 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp27_ = _tmp26_->entry; -#line 331 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_place_cursor (self, _tmp27_, TRUE); -#line 2423 "Tree.c" - } - } -#line 325 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (selectable); -#line 2428 "Tree.c" - } -#line 318 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (old_wrapper); -#line 2432 "Tree.c" - } -#line 337 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (GTK_TREE_VIEW_CLASS (sidebar_tree_parent_class)->cursor_changed != NULL) { -#line 338 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - GTK_TREE_VIEW_CLASS (sidebar_tree_parent_class)->cursor_changed (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView)); -#line 2438 "Tree.c" - } -#line 308 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 308 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 2444 "Tree.c" -} - - -void -sidebar_tree_disable_editing (SidebarTree* self) -{ - gint _tmp0_; -#line 341 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 342 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->priv->editing_disabled; -#line 342 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->editing_disabled = _tmp0_ + 1; -#line 342 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp0_ == 0) { -#line 2460 "Tree.c" - GtkCellRendererText* _tmp1_; -#line 343 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = self->priv->text_renderer; -#line 343 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_set (_tmp1_, "editable", FALSE, NULL); -#line 2466 "Tree.c" - } -} - - -void -sidebar_tree_enable_editing (SidebarTree* self) -{ - GtkTreePath* path = NULL; - GtkTreePath* _tmp0_; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - GtkTreePath* _tmp3_; -#line 346 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 347 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_tree_get_selected_path (self); -#line 347 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - path = _tmp0_; -#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = path; -#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp3_ != NULL) { -#line 2489 "Tree.c" - gint _tmp4_; -#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = self->priv->editing_disabled; -#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = _tmp4_ > 0; -#line 2495 "Tree.c" - } else { -#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = FALSE; -#line 2499 "Tree.c" - } -#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp2_) { -#line 2503 "Tree.c" - gint _tmp5_; - gint _tmp6_; -#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = self->priv->editing_disabled; -#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->editing_disabled = _tmp5_ - 1; -#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = self->priv->editing_disabled; -#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = _tmp6_ == 0; -#line 2514 "Tree.c" - } else { -#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = FALSE; -#line 2518 "Tree.c" - } -#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp1_) { -#line 2522 "Tree.c" - SidebarTreeEntryWrapper* wrapper = NULL; - GtkTreePath* _tmp7_; - SidebarTreeEntryWrapper* _tmp8_; - gboolean _tmp9_ = FALSE; - SidebarTreeEntryWrapper* _tmp10_; -#line 349 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = path; -#line 349 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = sidebar_tree_get_wrapper_at_path (self, _tmp7_); -#line 349 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp8_; -#line 350 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = wrapper; -#line 350 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp10_ != NULL) { -#line 2538 "Tree.c" - SidebarTreeEntryWrapper* _tmp11_; - SidebarEntry* _tmp12_; -#line 350 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = wrapper; -#line 350 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = _tmp11_->entry; -#line 350 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, SIDEBAR_TYPE_RENAMEABLE_ENTRY); -#line 2547 "Tree.c" - } else { -#line 350 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = FALSE; -#line 2551 "Tree.c" - } -#line 350 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp9_) { -#line 2555 "Tree.c" - GtkCellRendererText* _tmp13_; - SidebarTreeEntryWrapper* _tmp14_; - SidebarEntry* _tmp15_; -#line 351 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = self->priv->text_renderer; -#line 351 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = wrapper; -#line 351 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp15_ = _tmp14_->entry; -#line 351 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_set (_tmp13_, "editable", sidebar_renameable_entry_is_user_renameable (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry)), NULL); -#line 2567 "Tree.c" - } -#line 348 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 2571 "Tree.c" - } -#line 346 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 2575 "Tree.c" -} - - -void -sidebar_tree_toggle_branch_expansion (SidebarTree* self, - GtkTreePath* path, - gboolean expand_all) -{ -#line 356 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 356 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (path != NULL); -#line 357 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->expander_called_manually = TRUE; -#line 358 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (gtk_tree_view_row_expanded (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), path)) { -#line 359 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_collapse_row (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), path); -#line 2594 "Tree.c" - } else { -#line 361 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_expand_row (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), path, expand_all); -#line 2598 "Tree.c" - } -} - - -gboolean -sidebar_tree_expand_to_entry (SidebarTree* self, - SidebarEntry* entry) -{ - gboolean result = FALSE; - SidebarTreeEntryWrapper* wrapper = NULL; - SidebarTreeEntryWrapper* _tmp0_; - SidebarTreeEntryWrapper* _tmp1_; - SidebarTreeEntryWrapper* _tmp2_; - GtkTreePath* _tmp3_; - GtkTreePath* _tmp4_; -#line 364 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 364 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE); -#line 365 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->expander_called_manually = TRUE; -#line 366 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_tree_get_wrapper (self, entry); -#line 366 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp0_; -#line 367 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = wrapper; -#line 367 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp1_ == NULL) { -#line 368 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 368 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 368 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 2634 "Tree.c" - } -#line 370 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = wrapper; -#line 370 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = sidebar_tree_entry_wrapper_get_path (_tmp2_); -#line 370 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _tmp3_; -#line 370 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_expand_to_path (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp4_); -#line 370 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (_tmp4_); -#line 372 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = TRUE; -#line 372 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 372 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 2652 "Tree.c" -} - - -void -sidebar_tree_expand_to_first_child (SidebarTree* self, - SidebarEntry* entry) -{ - SidebarTreeEntryWrapper* wrapper = NULL; - SidebarTreeEntryWrapper* _tmp0_; - SidebarTreeEntryWrapper* _tmp1_; - GtkTreePath* path = NULL; - SidebarTreeEntryWrapper* _tmp2_; - GtkTreePath* _tmp3_; - GtkTreeIter iter = {0}; - GtkTreePath* _tmp11_; -#line 375 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 375 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 376 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->expander_called_manually = TRUE; -#line 377 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_tree_get_wrapper (self, entry); -#line 377 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp0_; -#line 378 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = wrapper; -#line 378 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp1_ == NULL) { -#line 379 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 379 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 2686 "Tree.c" - } -#line 381 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = wrapper; -#line 381 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = sidebar_tree_entry_wrapper_get_path (_tmp2_); -#line 381 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - path = _tmp3_; -#line 384 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - while (TRUE) { -#line 2696 "Tree.c" - GtkTreeStore* _tmp4_; - GtkTreePath* _tmp5_; - GtkTreeIter _tmp6_ = {0}; - gboolean _tmp7_; - GtkTreeStore* _tmp8_; - GtkTreeIter _tmp9_; - GtkTreePath* _tmp10_; -#line 384 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = self->priv->store; -#line 384 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = path; -#line 384 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = gtk_tree_model_get_iter (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp6_, _tmp5_); -#line 384 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - iter = _tmp6_; -#line 384 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (!_tmp7_) { -#line 384 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - break; -#line 2716 "Tree.c" - } -#line 385 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = self->priv->store; -#line 385 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = iter; -#line 385 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (!gtk_tree_model_iter_has_child (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp9_)) { -#line 386 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - break; -#line 2726 "Tree.c" - } -#line 388 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = path; -#line 388 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_path_down (_tmp10_); -#line 2732 "Tree.c" - } -#line 391 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = path; -#line 391 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_expand_to_path (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp11_); -#line 375 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 375 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 2742 "Tree.c" -} - - -static void -_sidebar_tree_on_branch_entry_added_sidebar_branch_entry_added (SidebarBranch* _sender, - SidebarEntry* entry, - gpointer self) -{ -#line 409 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_branch_entry_added ((SidebarTree*) self, _sender, entry); -#line 2753 "Tree.c" -} - - -static void -_sidebar_tree_on_branch_entry_removed_sidebar_branch_entry_removed (SidebarBranch* _sender, - SidebarEntry* entry, - gpointer self) -{ -#line 410 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_branch_entry_removed ((SidebarTree*) self, _sender, entry); -#line 2764 "Tree.c" -} - - -static void -_sidebar_tree_on_branch_entry_moved_sidebar_branch_entry_moved (SidebarBranch* _sender, - SidebarEntry* entry, - gpointer self) -{ -#line 411 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_branch_entry_moved ((SidebarTree*) self, _sender, entry); -#line 2775 "Tree.c" -} - - -static void -_sidebar_tree_on_branch_entry_reparented_sidebar_branch_entry_reparented (SidebarBranch* _sender, - SidebarEntry* entry, - SidebarEntry* old_parent, - gpointer self) -{ -#line 412 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_branch_entry_reparented ((SidebarTree*) self, _sender, entry, old_parent); -#line 2787 "Tree.c" -} - - -static void -_sidebar_tree_on_branch_children_reordered_sidebar_branch_children_reordered (SidebarBranch* _sender, - SidebarEntry* entry, - gpointer self) -{ -#line 413 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_branch_children_reordered ((SidebarTree*) self, _sender, entry); -#line 2798 "Tree.c" -} - - -static void -_sidebar_tree_on_show_branch_sidebar_branch_show_branch (SidebarBranch* _sender, - gboolean show, - gpointer self) -{ -#line 414 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_show_branch ((SidebarTree*) self, _sender, show); -#line 2809 "Tree.c" -} - - -void -sidebar_tree_graft (SidebarTree* self, - SidebarBranch* branch, - gint position) -{ - GeeHashMap* _tmp0_; - GeeHashMap* _tmp1_; -#line 394 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 394 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (branch)); -#line 394 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_return_if_fail (position >= 0, "position >= 0"); -#line 395 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->priv->branches; -#line 395 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), branch), "!branches.has_key(branch)"); -#line 397 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = self->priv->branches; -#line 397 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), branch, (gpointer) ((gintptr) position)); -#line 399 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (sidebar_branch_get_show_branch (branch)) { -#line 400 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_associate_branch (self, branch); -#line 402 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (sidebar_branch_is_startup_expand_to_first_child (branch)) { -#line 2840 "Tree.c" - SidebarEntry* _tmp2_; - SidebarEntry* _tmp3_; -#line 403 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = sidebar_branch_get_root (branch); -#line 403 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = _tmp2_; -#line 403 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_expand_to_first_child (self, _tmp3_); -#line 403 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_tmp3_); -#line 2851 "Tree.c" - } -#line 405 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (sidebar_branch_is_startup_open_grouping (branch)) { -#line 2855 "Tree.c" - SidebarEntry* _tmp4_; - SidebarEntry* _tmp5_; -#line 406 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = sidebar_branch_get_root (branch); -#line 406 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = _tmp4_; -#line 406 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_expand_to_entry (self, _tmp5_); -#line 406 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_tmp5_); -#line 2866 "Tree.c" - } - } -#line 409 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (branch, "entry-added", (GCallback) _sidebar_tree_on_branch_entry_added_sidebar_branch_entry_added, self, 0); -#line 410 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (branch, "entry-removed", (GCallback) _sidebar_tree_on_branch_entry_removed_sidebar_branch_entry_removed, self, 0); -#line 411 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (branch, "entry-moved", (GCallback) _sidebar_tree_on_branch_entry_moved_sidebar_branch_entry_moved, self, 0); -#line 412 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (branch, "entry-reparented", (GCallback) _sidebar_tree_on_branch_entry_reparented_sidebar_branch_entry_reparented, self, 0); -#line 413 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (branch, "children-reordered", (GCallback) _sidebar_tree_on_branch_children_reordered_sidebar_branch_children_reordered, self, 0); -#line 414 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (branch, "show-branch", (GCallback) _sidebar_tree_on_show_branch_sidebar_branch_show_branch, self, 0); -#line 416 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_emit (self, sidebar_tree_signals[SIDEBAR_TREE_BRANCH_ADDED_SIGNAL], 0, branch); -#line 2883 "Tree.c" -} - - -static GtkTreeIter* -_gtk_tree_iter_dup (GtkTreeIter* self) -{ - GtkTreeIter* dup; -#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - dup = g_new0 (GtkTreeIter, 1); -#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - memcpy (dup, self, sizeof (GtkTreeIter)); -#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return dup; -#line 2897 "Tree.c" -} - - -static gpointer -__gtk_tree_iter_dup0 (gpointer self) -{ -#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return self ? _gtk_tree_iter_dup (self) : NULL; -#line 2906 "Tree.c" -} - - -static void -sidebar_tree_associate_branch (SidebarTree* self, - SidebarBranch* branch) -{ - GeeHashMap* _tmp0_; - gint position = 0; - GeeHashMap* _tmp1_; - gpointer _tmp2_; - GtkTreeIter* insertion_iter = NULL; - GtkTreeIter iter = {0}; - gboolean found = FALSE; - GtkTreeStore* _tmp3_; - GtkTreeIter _tmp4_ = {0}; - gboolean _tmp5_; - GtkTreeIter* _tmp21_; - GtkTreeIter* _tmp26_; - GtkTreeStore* _tmp27_; - SidebarEntry* _tmp28_; - SidebarEntry* _tmp29_; - GtkTreeStore* _tmp30_; - GtkTreeIter* _tmp31_; - GtkTreeIter _tmp32_; - GtkTreePath* _tmp33_; - GtkTreePath* _tmp34_; - gint _tmp35_; - SidebarTreeRootWrapper* _tmp36_; - SidebarTreeRootWrapper* _tmp37_; - GtkTreeIter _tmp38_; - SidebarEntry* _tmp39_; - SidebarEntry* _tmp40_; - GtkTreeIter* _tmp41_; - GtkTreeIter _tmp42_; -#line 420 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 420 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (branch)); -#line 421 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->priv->branches; -#line 421 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), branch), "branches.has_key(branch)"); -#line 423 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = self->priv->branches; -#line 423 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), branch); -#line 423 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - position = (gint) ((gintptr) _tmp2_); -#line 425 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - insertion_iter = NULL; -#line 429 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = self->priv->store; -#line 429 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = gtk_tree_model_get_iter_first (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp4_); -#line 429 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - iter = _tmp4_; -#line 429 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - found = _tmp5_; -#line 430 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - while (TRUE) { -#line 2968 "Tree.c" - gboolean _tmp6_; - SidebarTreeRootWrapper* root_wrapper = NULL; - GtkTreeIter _tmp7_; - SidebarTreeEntryWrapper* _tmp8_; - SidebarTreeRootWrapper* _tmp9_; - SidebarTreeRootWrapper* _tmp10_; - gint _tmp11_; - SidebarTreeRootWrapper* _tmp12_; - gint _tmp13_; - GtkTreeStore* _tmp19_; - gboolean _tmp20_; -#line 430 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = found; -#line 430 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (!_tmp6_) { -#line 430 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - break; -#line 2986 "Tree.c" - } -#line 431 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = iter; -#line 431 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = sidebar_tree_get_wrapper_at_iter (self, &_tmp7_); -#line 431 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, SIDEBAR_TREE_TYPE_ROOT_WRAPPER) ? ((SidebarTreeRootWrapper*) _tmp8_) : NULL; -#line 431 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp9_ == NULL) { -#line 431 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_tmp8_); -#line 2998 "Tree.c" - } -#line 431 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - root_wrapper = _tmp9_; -#line 432 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = root_wrapper; -#line 432 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (_tmp10_ != NULL, "root_wrapper != null"); -#line 434 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = position; -#line 434 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = root_wrapper; -#line 434 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = _tmp12_->root_position; -#line 434 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp11_ < _tmp13_) { -#line 3014 "Tree.c" - GtkTreeStore* _tmp14_; - GtkTreeIter _tmp15_; - GtkTreeIter _tmp16_ = {0}; - GtkTreeIter _tmp17_; - GtkTreeIter* _tmp18_; -#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = self->priv->store; -#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp15_ = iter; -#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_insert_before (_tmp14_, &_tmp16_, NULL, &_tmp15_); -#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (insertion_iter); -#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp17_ = _tmp16_; -#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp18_ = __gtk_tree_iter_dup0 (&_tmp17_); -#line 435 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - insertion_iter = _tmp18_; -#line 437 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (root_wrapper); -#line 437 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - break; -#line 3038 "Tree.c" - } -#line 440 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp19_ = self->priv->store; -#line 440 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp20_ = gtk_tree_model_iter_next (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, gtk_tree_model_get_type (), GtkTreeModel), &iter); -#line 440 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - found = _tmp20_; -#line 430 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (root_wrapper); -#line 3048 "Tree.c" - } -#line 444 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp21_ = insertion_iter; -#line 444 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp21_ == NULL) { -#line 3054 "Tree.c" - GtkTreeStore* _tmp22_; - GtkTreeIter _tmp23_ = {0}; - GtkTreeIter _tmp24_; - GtkTreeIter* _tmp25_; -#line 445 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp22_ = self->priv->store; -#line 445 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_append (_tmp22_, &_tmp23_, NULL); -#line 445 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (insertion_iter); -#line 445 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp24_ = _tmp23_; -#line 445 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp25_ = __gtk_tree_iter_dup0 (&_tmp24_); -#line 445 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - insertion_iter = _tmp25_; -#line 3071 "Tree.c" - } -#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp26_ = insertion_iter; -#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp27_ = self->priv->store; -#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp28_ = sidebar_branch_get_root (branch); -#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp29_ = _tmp28_; -#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp30_ = self->priv->store; -#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp31_ = insertion_iter; -#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp32_ = *_tmp31_; -#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp33_ = gtk_tree_model_get_path (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp32_); -#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp34_ = _tmp33_; -#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp35_ = position; -#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp36_ = sidebar_tree_root_wrapper_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_tree_model_get_type (), GtkTreeModel), _tmp29_, _tmp34_, _tmp35_); -#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp37_ = _tmp36_; -#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp38_ = *_tmp26_; -#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_associate_wrapper (self, &_tmp38_, G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, SidebarTreeEntryWrapper)); -#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_tmp37_); -#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (_tmp34_); -#line 447 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_tmp29_); -#line 452 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp39_ = sidebar_branch_get_root (branch); -#line 452 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp40_ = _tmp39_; -#line 452 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp41_ = insertion_iter; -#line 452 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp42_ = *_tmp41_; -#line 452 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_associate_children (self, branch, _tmp40_, &_tmp42_); -#line 452 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_tmp40_); -#line 420 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (insertion_iter); -#line 3121 "Tree.c" -} - - -static void -sidebar_tree_associate_children (SidebarTree* self, - SidebarBranch* branch, - SidebarEntry* parent, - GtkTreeIter* parent_iter) -{ - GeeList* children = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; -#line 455 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 455 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (branch)); -#line 455 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (parent)); -#line 455 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (parent_iter != NULL); -#line 457 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_branch_get_children (branch, parent); -#line 457 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - children = _tmp0_; -#line 458 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = children; -#line 458 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp1_ == NULL) { -#line 459 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (children); -#line 459 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 3154 "Tree.c" - } - { - GeeList* _child_list = NULL; - GeeList* _tmp2_; - GeeList* _tmp3_; - gint _child_size = 0; - GeeList* _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _child_index = 0; -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = children; -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _child_list = _tmp3_; -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _child_list; -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = _tmp5_; -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _child_size = _tmp6_; -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _child_index = -1; -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - while (TRUE) { -#line 3183 "Tree.c" - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - SidebarEntry* child = NULL; - GeeList* _tmp10_; - gint _tmp11_; - gpointer _tmp12_; - GtkTreeIter append_iter = {0}; - GtkTreeStore* _tmp13_; - GtkTreeIter _tmp14_; - GtkTreeIter _tmp15_ = {0}; - GtkTreeIter _tmp16_; - SidebarEntry* _tmp17_; - SidebarEntry* _tmp18_; - GtkTreeIter _tmp19_; -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = _child_index; -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _child_index = _tmp7_ + 1; -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = _child_index; -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = _child_size; -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (!(_tmp8_ < _tmp9_)) { -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - break; -#line 3211 "Tree.c" - } -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = _child_list; -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = _child_index; -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = gee_list_get (_tmp10_, _tmp11_); -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - child = (SidebarEntry*) _tmp12_; -#line 463 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = self->priv->store; -#line 463 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = *parent_iter; -#line 463 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_append (_tmp13_, &_tmp15_, &_tmp14_); -#line 463 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - append_iter = _tmp15_; -#line 465 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp16_ = append_iter; -#line 465 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp17_ = child; -#line 465 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_associate_entry (self, &_tmp16_, _tmp17_); -#line 466 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp18_ = child; -#line 466 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp19_ = append_iter; -#line 466 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_associate_children (self, branch, _tmp18_, &_tmp19_); -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (child); -#line 3243 "Tree.c" - } -#line 461 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_child_list); -#line 3247 "Tree.c" - } -#line 455 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (children); -#line 3251 "Tree.c" -} - - -static void -sidebar_tree_associate_entry (SidebarTree* self, - GtkTreeIter* assoc_iter, - SidebarEntry* entry) -{ - GtkTreeIter _tmp0_; - GtkTreeStore* _tmp1_; - GtkTreeStore* _tmp2_; - GtkTreeIter _tmp3_; - GtkTreePath* _tmp4_; - GtkTreePath* _tmp5_; - SidebarTreeEntryWrapper* _tmp6_; - SidebarTreeEntryWrapper* _tmp7_; -#line 470 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 470 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (assoc_iter != NULL); -#line 470 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = *assoc_iter; -#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = self->priv->store; -#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = self->priv->store; -#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = *assoc_iter; -#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = gtk_tree_model_get_path (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp3_); -#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = _tmp4_; -#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = sidebar_tree_entry_wrapper_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_tree_model_get_type (), GtkTreeModel), entry, _tmp5_); -#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = _tmp6_; -#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_associate_wrapper (self, &_tmp0_, _tmp7_); -#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_tmp7_); -#line 471 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (_tmp5_); -#line 3296 "Tree.c" -} - - -static void -_sidebar_tree_on_sidebar_tooltip_changed_sidebar_entry_sidebar_tooltip_changed (SidebarEntry* _sender, - const gchar* tooltip, - gpointer self) -{ -#line 485 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_sidebar_tooltip_changed ((SidebarTree*) self, _sender, tooltip); -#line 3307 "Tree.c" -} - - -static void -_sidebar_tree_on_sidebar_icon_changed_sidebar_entry_sidebar_icon_changed (SidebarEntry* _sender, - const gchar* icon, - gpointer self) -{ -#line 486 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_sidebar_icon_changed ((SidebarTree*) self, _sender, icon); -#line 3318 "Tree.c" -} - - -static void -_sidebar_tree_on_sidebar_page_created_sidebar_page_representative_page_created (SidebarPageRepresentative* _sender, - Page* page, - gpointer self) -{ -#line 490 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_sidebar_page_created ((SidebarTree*) self, _sender, page); -#line 3329 "Tree.c" -} - - -static void -_sidebar_tree_on_sidebar_destroying_page_sidebar_page_representative_destroying_page (SidebarPageRepresentative* _sender, - Page* page, - gpointer self) -{ -#line 491 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_sidebar_destroying_page ((SidebarTree*) self, _sender, page); -#line 3340 "Tree.c" -} - - -static void -_sidebar_tree_on_is_emphasized_changed_sidebar_emphasizable_entry_is_emphasized_changed (SidebarEmphasizableEntry* _sender, - gboolean emphasized, - gpointer self) -{ -#line 496 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_is_emphasized_changed ((SidebarTree*) self, _sender, emphasized); -#line 3351 "Tree.c" -} - - -static void -_sidebar_tree_on_sidebar_name_changed_sidebar_renameable_entry_sidebar_name_changed (SidebarRenameableEntry* _sender, - const gchar* name, - gpointer self) -{ -#line 500 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_sidebar_name_changed ((SidebarTree*) self, _sender, name); -#line 3362 "Tree.c" -} - - -static void -sidebar_tree_associate_wrapper (SidebarTree* self, - GtkTreeIter* assoc_iter, - SidebarTreeEntryWrapper* wrapper) -{ - SidebarEntry* entry = NULL; - SidebarEntry* _tmp0_; - SidebarEntry* _tmp1_; - GeeHashMap* _tmp2_; - SidebarEntry* _tmp3_; - GeeHashMap* _tmp4_; - SidebarEntry* _tmp5_; - GtkTreeStore* _tmp6_; - GtkTreeIter _tmp7_; - SidebarEntry* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; - GtkTreeStore* _tmp11_; - GtkTreeIter _tmp12_; - SidebarEntry* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - GtkTreeStore* _tmp18_; - GtkTreeIter _tmp19_; - GtkTreeIter _tmp20_; - SidebarEntry* _tmp21_; - SidebarEntry* _tmp22_; - SidebarPageRepresentative* pageable = NULL; - SidebarEntry* _tmp23_; - SidebarPageRepresentative* _tmp24_; - SidebarPageRepresentative* _tmp25_; - SidebarEmphasizableEntry* emphasizable = NULL; - SidebarEntry* _tmp28_; - SidebarEmphasizableEntry* _tmp29_; - SidebarEmphasizableEntry* _tmp30_; - SidebarRenameableEntry* renameable = NULL; - SidebarEntry* _tmp32_; - SidebarRenameableEntry* _tmp33_; - SidebarRenameableEntry* _tmp34_; - SidebarEntry* _tmp36_; -#line 474 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 474 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (assoc_iter != NULL); -#line 474 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_TREE_IS_ENTRY_WRAPPER (wrapper)); -#line 475 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = wrapper->entry; -#line 475 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 475 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - entry = _tmp1_; -#line 477 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = self->priv->entry_map; -#line 477 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = entry; -#line 477 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp3_), "!entry_map.has_key(entry)"); -#line 478 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = self->priv->entry_map; -#line 478 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = entry; -#line 478 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp5_, wrapper); -#line 480 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = self->priv->store; -#line 480 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = *assoc_iter; -#line 480 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = entry; -#line 480 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = sidebar_tree_get_name_for_entry (self, _tmp8_); -#line 480 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = _tmp9_; -#line 480 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_set (_tmp6_, &_tmp7_, SIDEBAR_TREE_COLUMNS_NAME, _tmp10_, -1); -#line 480 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (_tmp10_); -#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = self->priv->store; -#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = *assoc_iter; -#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = entry; -#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = sidebar_entry_get_sidebar_tooltip (_tmp13_); -#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp15_ = _tmp14_; -#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp16_ = guarded_markup_escape_text (_tmp15_); -#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp17_ = _tmp16_; -#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_set (_tmp11_, &_tmp12_, SIDEBAR_TREE_COLUMNS_TOOLTIP, _tmp17_, -1); -#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (_tmp17_); -#line 481 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (_tmp15_); -#line 482 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp18_ = self->priv->store; -#line 482 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp19_ = *assoc_iter; -#line 482 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_set (_tmp18_, &_tmp19_, SIDEBAR_TREE_COLUMNS_WRAPPER, wrapper, -1); -#line 483 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp20_ = *assoc_iter; -#line 483 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_load_entry_icons (self, &_tmp20_); -#line 485 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp21_ = entry; -#line 485 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (_tmp21_, "sidebar-tooltip-changed", (GCallback) _sidebar_tree_on_sidebar_tooltip_changed_sidebar_entry_sidebar_tooltip_changed, self, 0); -#line 486 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp22_ = entry; -#line 486 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (_tmp22_, "sidebar-icon-changed", (GCallback) _sidebar_tree_on_sidebar_icon_changed_sidebar_entry_sidebar_icon_changed, self, 0); -#line 488 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp23_ = entry; -#line 488 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp23_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE) ? ((SidebarPageRepresentative*) _tmp23_) : NULL); -#line 488 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - pageable = _tmp24_; -#line 489 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp25_ = pageable; -#line 489 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp25_ != NULL) { -#line 3494 "Tree.c" - SidebarPageRepresentative* _tmp26_; - SidebarPageRepresentative* _tmp27_; -#line 490 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp26_ = pageable; -#line 490 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (_tmp26_, "page-created", (GCallback) _sidebar_tree_on_sidebar_page_created_sidebar_page_representative_page_created, self, 0); -#line 491 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp27_ = pageable; -#line 491 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (_tmp27_, "destroying-page", (GCallback) _sidebar_tree_on_sidebar_destroying_page_sidebar_page_representative_destroying_page, self, 0); -#line 3505 "Tree.c" - } -#line 494 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp28_ = entry; -#line 494 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp29_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp28_, SIDEBAR_TYPE_EMPHASIZABLE_ENTRY) ? ((SidebarEmphasizableEntry*) _tmp28_) : NULL); -#line 494 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - emphasizable = _tmp29_; -#line 495 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp30_ = emphasizable; -#line 495 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp30_ != NULL) { -#line 3517 "Tree.c" - SidebarEmphasizableEntry* _tmp31_; -#line 496 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp31_ = emphasizable; -#line 496 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (_tmp31_, "is-emphasized-changed", (GCallback) _sidebar_tree_on_is_emphasized_changed_sidebar_emphasizable_entry_is_emphasized_changed, self, 0); -#line 3523 "Tree.c" - } -#line 498 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp32_ = entry; -#line 498 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp32_, SIDEBAR_TYPE_RENAMEABLE_ENTRY) ? ((SidebarRenameableEntry*) _tmp32_) : NULL); -#line 498 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - renameable = _tmp33_; -#line 499 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp34_ = renameable; -#line 499 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp34_ != NULL) { -#line 3535 "Tree.c" - SidebarRenameableEntry* _tmp35_; -#line 500 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp35_ = renameable; -#line 500 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (_tmp35_, "sidebar-name-changed", (GCallback) _sidebar_tree_on_sidebar_name_changed_sidebar_renameable_entry_sidebar_name_changed, self, 0); -#line 3541 "Tree.c" - } -#line 502 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp36_ = entry; -#line 502 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_entry_grafted (_tmp36_, self); -#line 474 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (renameable); -#line 474 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (emphasizable); -#line 474 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (pageable); -#line 474 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (entry); -#line 3555 "Tree.c" -} - - -static SidebarTreeEntryWrapper* -sidebar_tree_reparent_wrapper (SidebarTree* self, - GtkTreeIter* new_iter, - SidebarTreeEntryWrapper* current_wrapper) -{ - SidebarTreeEntryWrapper* result = NULL; - SidebarEntry* entry = NULL; - SidebarEntry* _tmp0_; - SidebarEntry* _tmp1_; - gboolean removed = FALSE; - GeeHashMap* _tmp2_; - gboolean _tmp3_; - SidebarTreeEntryWrapper* new_wrapper = NULL; - GtkTreeStore* _tmp4_; - GtkTreeStore* _tmp5_; - GtkTreeIter _tmp6_; - GtkTreePath* _tmp7_; - GtkTreePath* _tmp8_; - SidebarTreeEntryWrapper* _tmp9_; - SidebarTreeEntryWrapper* _tmp10_; - GeeHashMap* _tmp11_; - GtkTreeStore* _tmp12_; - GtkTreeIter _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - GtkTreeStore* _tmp16_; - GtkTreeIter _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - GtkTreeStore* _tmp22_; - GtkTreeIter _tmp23_; - GtkTreeIter _tmp24_; -#line 505 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), NULL); -#line 505 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (new_iter != NULL, NULL); -#line 505 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_TREE_IS_ENTRY_WRAPPER (current_wrapper), NULL); -#line 506 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = current_wrapper->entry; -#line 506 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 506 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - entry = _tmp1_; -#line 508 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = self->priv->entry_map; -#line 508 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry, NULL); -#line 508 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - removed = _tmp3_; -#line 509 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (removed, "removed"); -#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = self->priv->store; -#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = self->priv->store; -#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = *new_iter; -#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = gtk_tree_model_get_path (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp6_); -#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = _tmp7_; -#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = sidebar_tree_entry_wrapper_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, gtk_tree_model_get_type (), GtkTreeModel), entry, _tmp8_); -#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = _tmp9_; -#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (_tmp8_); -#line 511 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - new_wrapper = _tmp10_; -#line 512 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = self->priv->entry_map; -#line 512 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), entry, new_wrapper); -#line 514 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = self->priv->store; -#line 514 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = *new_iter; -#line 514 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = sidebar_tree_get_name_for_entry (self, entry); -#line 514 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp15_ = _tmp14_; -#line 514 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_set (_tmp12_, &_tmp13_, SIDEBAR_TREE_COLUMNS_NAME, _tmp15_, -1); -#line 514 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (_tmp15_); -#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp16_ = self->priv->store; -#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp17_ = *new_iter; -#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp18_ = sidebar_entry_get_sidebar_tooltip (entry); -#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp19_ = _tmp18_; -#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp20_ = guarded_markup_escape_text (_tmp19_); -#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp21_ = _tmp20_; -#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_set (_tmp16_, &_tmp17_, SIDEBAR_TREE_COLUMNS_TOOLTIP, _tmp21_, -1); -#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (_tmp21_); -#line 515 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (_tmp19_); -#line 516 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp22_ = self->priv->store; -#line 516 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp23_ = *new_iter; -#line 516 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_set (_tmp22_, &_tmp23_, SIDEBAR_TREE_COLUMNS_WRAPPER, new_wrapper, -1); -#line 517 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp24_ = *new_iter; -#line 517 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_load_entry_icons (self, &_tmp24_); -#line 519 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = new_wrapper; -#line 519 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (entry); -#line 519 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 3681 "Tree.c" -} - - -void -sidebar_tree_prune (SidebarTree* self, - SidebarBranch* branch) -{ - GeeHashMap* _tmp0_; - SidebarEntry* _tmp1_; - SidebarEntry* _tmp2_; - gboolean _tmp3_; - guint _tmp4_; - guint _tmp5_; - guint _tmp6_; - guint _tmp7_; - guint _tmp8_; - guint _tmp9_; - gboolean removed = FALSE; - GeeHashMap* _tmp10_; - gboolean _tmp11_; -#line 522 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 522 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (branch)); -#line 523 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->priv->branches; -#line 523 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), branch), "branches.has_key(branch)"); -#line 525 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = sidebar_branch_get_root (branch); -#line 525 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = _tmp1_; -#line 525 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = sidebar_tree_has_wrapper (self, _tmp2_); -#line 525 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_tmp2_); -#line 525 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp3_) { -#line 526 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_disassociate_branch (self, branch); -#line 3722 "Tree.c" - } -#line 528 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("entry-added", SIDEBAR_TYPE_BRANCH, &_tmp4_, NULL, FALSE); -#line 528 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (branch, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _sidebar_tree_on_branch_entry_added_sidebar_branch_entry_added, self); -#line 529 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("entry-removed", SIDEBAR_TYPE_BRANCH, &_tmp5_, NULL, FALSE); -#line 529 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (branch, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _sidebar_tree_on_branch_entry_removed_sidebar_branch_entry_removed, self); -#line 530 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("entry-moved", SIDEBAR_TYPE_BRANCH, &_tmp6_, NULL, FALSE); -#line 530 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (branch, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp6_, 0, NULL, (GCallback) _sidebar_tree_on_branch_entry_moved_sidebar_branch_entry_moved, self); -#line 531 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("entry-reparented", SIDEBAR_TYPE_BRANCH, &_tmp7_, NULL, FALSE); -#line 531 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (branch, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _sidebar_tree_on_branch_entry_reparented_sidebar_branch_entry_reparented, self); -#line 532 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("children-reordered", SIDEBAR_TYPE_BRANCH, &_tmp8_, NULL, FALSE); -#line 532 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (branch, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, 0, NULL, (GCallback) _sidebar_tree_on_branch_children_reordered_sidebar_branch_children_reordered, self); -#line 533 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("show-branch", SIDEBAR_TYPE_BRANCH, &_tmp9_, NULL, FALSE); -#line 533 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (branch, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _sidebar_tree_on_show_branch_sidebar_branch_show_branch, self); -#line 535 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = self->priv->branches; -#line 535 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), branch, NULL); -#line 535 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - removed = _tmp11_; -#line 536 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (removed, "removed"); -#line 538 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_emit (self, sidebar_tree_signals[SIDEBAR_TREE_BRANCH_REMOVED_SIGNAL], 0, branch); -#line 3758 "Tree.c" -} - - -static void -sidebar_tree_disassociate_branch (SidebarTree* self, - SidebarBranch* branch) -{ - SidebarTreeRootWrapper* root_wrapper = NULL; - SidebarEntry* _tmp0_; - SidebarEntry* _tmp1_; - SidebarTreeEntryWrapper* _tmp2_; - SidebarTreeRootWrapper* _tmp3_; - SidebarTreeRootWrapper* _tmp4_; -#line 541 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 541 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (branch)); -#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_branch_get_root (branch); -#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = _tmp0_; -#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = sidebar_tree_get_wrapper (self, _tmp1_); -#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, SIDEBAR_TREE_TYPE_ROOT_WRAPPER) ? ((SidebarTreeRootWrapper*) _tmp2_) : NULL; -#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp3_ == NULL) { -#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_tmp2_); -#line 3788 "Tree.c" - } -#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _tmp3_; -#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_tmp1_); -#line 542 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - root_wrapper = _tmp4_; -#line 543 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (root_wrapper != NULL, "root_wrapper != null"); -#line 545 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_disassociate_wrapper_and_signal (self, G_TYPE_CHECK_INSTANCE_CAST (root_wrapper, SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, SidebarTreeEntryWrapper), FALSE); -#line 541 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (root_wrapper); -#line 3802 "Tree.c" -} - - -static void -sidebar_tree_disassociate_wrapper_and_signal (SidebarTree* self, - SidebarTreeEntryWrapper* wrapper, - gboolean only_children) -{ - gboolean selected = FALSE; - SidebarEntry* _tmp0_; - gboolean _tmp1_; -#line 550 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 550 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_TREE_IS_ENTRY_WRAPPER (wrapper)); -#line 551 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = wrapper->entry; -#line 551 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - selected = sidebar_tree_is_selected (self, _tmp0_); -#line 553 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_disassociate_wrapper (self, wrapper, only_children); -#line 555 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = selected; -#line 555 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp1_) { -#line 3828 "Tree.c" - SidebarSelectableEntry* selectable = NULL; - SidebarEntry* _tmp2_; - SidebarSelectableEntry* _tmp3_; - SidebarSelectableEntry* _tmp4_; - SidebarSelectableEntry* _tmp5_; -#line 556 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = wrapper->entry; -#line 556 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, SIDEBAR_TYPE_SELECTABLE_ENTRY) ? ((SidebarSelectableEntry*) _tmp2_) : NULL); -#line 556 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - selectable = _tmp3_; -#line 557 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = selectable; -#line 557 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (_tmp4_ != NULL, "selectable != null"); -#line 559 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = selectable; -#line 559 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_emit (self, sidebar_tree_signals[SIDEBAR_TREE_SELECTED_ENTRY_REMOVED_SIGNAL], 0, _tmp5_); -#line 555 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (selectable); -#line 3850 "Tree.c" - } -} - - -static void -sidebar_tree_disassociate_wrapper (SidebarTree* self, - SidebarTreeEntryWrapper* wrapper, - gboolean only_children) -{ - GeeArrayList* children = NULL; - GeeArrayList* _tmp0_; - GtkTreeIter child_iter = {0}; - gboolean found = FALSE; - GtkTreeStore* _tmp1_; - GtkTreeIter _tmp2_ = {0}; - GtkTreeIter _tmp3_ = {0}; - gboolean _tmp4_; - GtkTreeIter iter = {0}; - GtkTreeIter _tmp25_ = {0}; - GtkTreeStore* _tmp26_; - SidebarTreeEntryWrapper* _tmp27_; - SidebarEntry* entry = NULL; - SidebarEntry* _tmp28_; - SidebarEntry* _tmp29_; - SidebarEntry* _tmp30_; - SidebarEntry* _tmp31_; - guint _tmp32_; - SidebarEntry* _tmp33_; - guint _tmp34_; - SidebarPageRepresentative* pageable = NULL; - SidebarEntry* _tmp35_; - SidebarPageRepresentative* _tmp36_; - SidebarPageRepresentative* _tmp37_; - SidebarRenameableEntry* renameable = NULL; - SidebarEntry* _tmp42_; - SidebarRenameableEntry* _tmp43_; - SidebarRenameableEntry* _tmp44_; - SidebarEmphasizableEntry* emphasizable = NULL; - SidebarEntry* _tmp47_; - SidebarEmphasizableEntry* _tmp48_; - SidebarEmphasizableEntry* _tmp49_; - gboolean removed = FALSE; - GeeHashMap* _tmp52_; - SidebarEntry* _tmp53_; - gboolean _tmp54_; - gboolean _tmp55_; -#line 563 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 563 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_TREE_IS_ENTRY_WRAPPER (wrapper)); -#line 564 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = gee_array_list_new (SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 564 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - children = _tmp0_; -#line 567 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = self->priv->store; -#line 567 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_entry_wrapper_get_iter (wrapper, &_tmp2_); -#line 567 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = gtk_tree_model_iter_children (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp3_, &_tmp2_); -#line 567 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - child_iter = _tmp3_; -#line 567 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - found = _tmp4_; -#line 568 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - while (TRUE) { -#line 3917 "Tree.c" - gboolean _tmp5_; - SidebarTreeEntryWrapper* child_wrapper = NULL; - GtkTreeIter _tmp6_; - SidebarTreeEntryWrapper* _tmp7_; - SidebarTreeEntryWrapper* _tmp8_; - GeeArrayList* _tmp9_; - SidebarTreeEntryWrapper* _tmp10_; - GtkTreeStore* _tmp11_; - gboolean _tmp12_; -#line 568 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = found; -#line 568 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (!_tmp5_) { -#line 568 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - break; -#line 3933 "Tree.c" - } -#line 569 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = child_iter; -#line 569 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = sidebar_tree_get_wrapper_at_iter (self, &_tmp6_); -#line 569 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - child_wrapper = _tmp7_; -#line 570 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = child_wrapper; -#line 570 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (_tmp8_ != NULL, "child_wrapper != null"); -#line 572 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = children; -#line 572 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = child_wrapper; -#line 572 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp10_); -#line 574 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = self->priv->store; -#line 574 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = gtk_tree_model_iter_next (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_tree_model_get_type (), GtkTreeModel), &child_iter); -#line 574 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - found = _tmp12_; -#line 568 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (child_wrapper); -#line 3959 "Tree.c" - } - { - GeeArrayList* _child_wrapper_list = NULL; - GeeArrayList* _tmp13_; - GeeArrayList* _tmp14_; - gint _child_wrapper_size = 0; - GeeArrayList* _tmp15_; - gint _tmp16_; - gint _tmp17_; - gint _child_wrapper_index = 0; -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = children; -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = _g_object_ref0 (_tmp13_); -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _child_wrapper_list = _tmp14_; -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp15_ = _child_wrapper_list; -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp16_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp17_ = _tmp16_; -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _child_wrapper_size = _tmp17_; -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _child_wrapper_index = -1; -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - while (TRUE) { -#line 3988 "Tree.c" - gint _tmp18_; - gint _tmp19_; - gint _tmp20_; - SidebarTreeEntryWrapper* child_wrapper = NULL; - GeeArrayList* _tmp21_; - gint _tmp22_; - gpointer _tmp23_; - SidebarTreeEntryWrapper* _tmp24_; -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp18_ = _child_wrapper_index; -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _child_wrapper_index = _tmp18_ + 1; -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp19_ = _child_wrapper_index; -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp20_ = _child_wrapper_size; -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (!(_tmp19_ < _tmp20_)) { -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - break; -#line 4009 "Tree.c" - } -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp21_ = _child_wrapper_list; -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp22_ = _child_wrapper_index; -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp23_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp22_); -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - child_wrapper = (SidebarTreeEntryWrapper*) _tmp23_; -#line 578 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp24_ = child_wrapper; -#line 578 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_disassociate_wrapper (self, _tmp24_, FALSE); -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (child_wrapper); -#line 4025 "Tree.c" - } -#line 577 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_child_wrapper_list); -#line 4029 "Tree.c" - } -#line 580 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (only_children) { -#line 581 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (children); -#line 581 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 4037 "Tree.c" - } -#line 583 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_entry_wrapper_get_iter (wrapper, &_tmp25_); -#line 583 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - iter = _tmp25_; -#line 584 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp26_ = self->priv->store; -#line 584 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_remove (_tmp26_, &iter); -#line 586 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp27_ = self->priv->selected_wrapper; -#line 586 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp27_ == wrapper) { -#line 587 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->selected_wrapper = NULL; -#line 4053 "Tree.c" - } -#line 589 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp28_ = wrapper->entry; -#line 589 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp29_ = _g_object_ref0 (_tmp28_); -#line 589 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - entry = _tmp29_; -#line 591 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp30_ = entry; -#line 591 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_entry_pruned (_tmp30_, self); -#line 593 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp31_ = entry; -#line 593 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("sidebar-tooltip-changed", SIDEBAR_TYPE_ENTRY, &_tmp32_, NULL, FALSE); -#line 593 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (_tmp31_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp32_, 0, NULL, (GCallback) _sidebar_tree_on_sidebar_tooltip_changed_sidebar_entry_sidebar_tooltip_changed, self); -#line 594 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp33_ = entry; -#line 594 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("sidebar-icon-changed", SIDEBAR_TYPE_ENTRY, &_tmp34_, NULL, FALSE); -#line 594 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (_tmp33_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp34_, 0, NULL, (GCallback) _sidebar_tree_on_sidebar_icon_changed_sidebar_entry_sidebar_icon_changed, self); -#line 596 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp35_ = entry; -#line 596 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp36_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp35_, SIDEBAR_TYPE_PAGE_REPRESENTATIVE) ? ((SidebarPageRepresentative*) _tmp35_) : NULL); -#line 596 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - pageable = _tmp36_; -#line 597 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp37_ = pageable; -#line 597 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp37_ != NULL) { -#line 4087 "Tree.c" - SidebarPageRepresentative* _tmp38_; - guint _tmp39_; - SidebarPageRepresentative* _tmp40_; - guint _tmp41_; -#line 598 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp38_ = pageable; -#line 598 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("page-created", SIDEBAR_TYPE_PAGE_REPRESENTATIVE, &_tmp39_, NULL, FALSE); -#line 598 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (_tmp38_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp39_, 0, NULL, (GCallback) _sidebar_tree_on_sidebar_page_created_sidebar_page_representative_page_created, self); -#line 599 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp40_ = pageable; -#line 599 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("destroying-page", SIDEBAR_TYPE_PAGE_REPRESENTATIVE, &_tmp41_, NULL, FALSE); -#line 599 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (_tmp40_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp41_, 0, NULL, (GCallback) _sidebar_tree_on_sidebar_destroying_page_sidebar_page_representative_destroying_page, self); -#line 4104 "Tree.c" - } -#line 602 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp42_ = entry; -#line 602 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp43_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp42_, SIDEBAR_TYPE_RENAMEABLE_ENTRY) ? ((SidebarRenameableEntry*) _tmp42_) : NULL); -#line 602 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - renameable = _tmp43_; -#line 603 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp44_ = renameable; -#line 603 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp44_ != NULL) { -#line 4116 "Tree.c" - SidebarRenameableEntry* _tmp45_; - guint _tmp46_; -#line 604 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp45_ = renameable; -#line 604 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("sidebar-name-changed", SIDEBAR_TYPE_RENAMEABLE_ENTRY, &_tmp46_, NULL, FALSE); -#line 604 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (_tmp45_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp46_, 0, NULL, (GCallback) _sidebar_tree_on_sidebar_name_changed_sidebar_renameable_entry_sidebar_name_changed, self); -#line 4125 "Tree.c" - } -#line 606 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp47_ = entry; -#line 606 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp48_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp47_, SIDEBAR_TYPE_EMPHASIZABLE_ENTRY) ? ((SidebarEmphasizableEntry*) _tmp47_) : NULL); -#line 606 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - emphasizable = _tmp48_; -#line 607 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp49_ = emphasizable; -#line 607 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp49_ != NULL) { -#line 4137 "Tree.c" - SidebarEmphasizableEntry* _tmp50_; - guint _tmp51_; -#line 608 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp50_ = emphasizable; -#line 608 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("is-emphasized-changed", SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, &_tmp51_, NULL, FALSE); -#line 608 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (_tmp50_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp51_, 0, NULL, (GCallback) _sidebar_tree_on_is_emphasized_changed_sidebar_emphasizable_entry_is_emphasized_changed, self); -#line 4146 "Tree.c" - } -#line 610 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp52_ = self->priv->entry_map; -#line 610 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp53_ = entry; -#line 610 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp54_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp53_, NULL); -#line 610 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - removed = _tmp54_; -#line 611 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp55_ = removed; -#line 611 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (_tmp55_, "removed"); -#line 563 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (emphasizable); -#line 563 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (renameable); -#line 563 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (pageable); -#line 563 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (entry); -#line 563 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (children); -#line 4170 "Tree.c" -} - - -static void -sidebar_tree_on_branch_entry_added (SidebarTree* self, - SidebarBranch* branch, - SidebarEntry* entry) -{ - SidebarEntry* parent = NULL; - SidebarEntry* _tmp0_; - SidebarEntry* _tmp1_; - SidebarTreeEntryWrapper* parent_wrapper = NULL; - SidebarEntry* _tmp2_; - SidebarTreeEntryWrapper* _tmp3_; - SidebarTreeEntryWrapper* _tmp4_; - GtkTreeIter insertion_iter = {0}; - SidebarEntry* next = NULL; - SidebarEntry* _tmp5_; - SidebarEntry* _tmp6_; - GtkTreeIter _tmp19_; - GtkTreeIter _tmp20_; -#line 614 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 614 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (branch)); -#line 614 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 615 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_branch_get_parent (branch, entry); -#line 615 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - parent = _tmp0_; -#line 616 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = parent; -#line 616 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (_tmp1_ != NULL, "parent != null"); -#line 618 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = parent; -#line 618 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = sidebar_tree_get_wrapper (self, _tmp2_); -#line 618 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - parent_wrapper = _tmp3_; -#line 619 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = parent_wrapper; -#line 619 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (_tmp4_ != NULL, "parent_wrapper != null"); -#line 622 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = sidebar_branch_get_next_sibling (branch, entry); -#line 622 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - next = _tmp5_; -#line 623 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = next; -#line 623 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp6_ != NULL) { -#line 4224 "Tree.c" - SidebarTreeEntryWrapper* next_wrapper = NULL; - SidebarEntry* _tmp7_; - SidebarTreeEntryWrapper* _tmp8_; - GtkTreeStore* _tmp9_; - SidebarTreeEntryWrapper* _tmp10_; - GtkTreeIter _tmp11_ = {0}; - SidebarTreeEntryWrapper* _tmp12_; - GtkTreeIter _tmp13_ = {0}; - GtkTreeIter _tmp14_ = {0}; -#line 624 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = next; -#line 624 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = sidebar_tree_get_wrapper (self, _tmp7_); -#line 624 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - next_wrapper = _tmp8_; -#line 627 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = self->priv->store; -#line 627 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = parent_wrapper; -#line 627 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_entry_wrapper_get_iter (_tmp10_, &_tmp11_); -#line 627 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = next_wrapper; -#line 627 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_entry_wrapper_get_iter (_tmp12_, &_tmp13_); -#line 627 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_insert_before (_tmp9_, &_tmp14_, &_tmp11_, &_tmp13_); -#line 627 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - insertion_iter = _tmp14_; -#line 623 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (next_wrapper); -#line 4256 "Tree.c" - } else { - GtkTreeStore* _tmp15_; - SidebarTreeEntryWrapper* _tmp16_; - GtkTreeIter _tmp17_ = {0}; - GtkTreeIter _tmp18_ = {0}; -#line 630 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp15_ = self->priv->store; -#line 630 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp16_ = parent_wrapper; -#line 630 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_entry_wrapper_get_iter (_tmp16_, &_tmp17_); -#line 630 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_append (_tmp15_, &_tmp18_, &_tmp17_); -#line 630 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - insertion_iter = _tmp18_; -#line 4272 "Tree.c" - } -#line 633 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp19_ = insertion_iter; -#line 633 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_associate_entry (self, &_tmp19_, entry); -#line 634 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp20_ = insertion_iter; -#line 634 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_associate_children (self, branch, entry, &_tmp20_); -#line 636 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (sidebar_branch_is_auto_open_on_new_child (branch)) { -#line 637 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_expand_to_entry (self, entry); -#line 4286 "Tree.c" - } -#line 614 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (next); -#line 614 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (parent_wrapper); -#line 614 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (parent); -#line 4294 "Tree.c" -} - - -static void -sidebar_tree_on_branch_entry_removed (SidebarTree* self, - SidebarBranch* branch, - SidebarEntry* entry) -{ - SidebarTreeEntryWrapper* wrapper = NULL; - SidebarTreeEntryWrapper* _tmp0_; -#line 640 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 640 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (branch)); -#line 640 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 641 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_tree_get_wrapper (self, entry); -#line 641 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp0_; -#line 642 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (wrapper != NULL, "wrapper != null"); -#line 643 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (!G_TYPE_CHECK_INSTANCE_TYPE (wrapper, SIDEBAR_TREE_TYPE_ROOT_WRAPPER), "!(wrapper is RootWrapper)"); -#line 645 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_disassociate_wrapper_and_signal (self, wrapper, FALSE); -#line 640 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 4323 "Tree.c" -} - - -static void -sidebar_tree_on_branch_entry_moved (SidebarTree* self, - SidebarBranch* branch, - SidebarEntry* entry) -{ - SidebarTreeEntryWrapper* wrapper = NULL; - SidebarTreeEntryWrapper* _tmp0_; - SidebarTreeEntryWrapper* _tmp1_; - SidebarTreeEntryWrapper* _tmp2_; - GtkTreeIter* prev_iter = NULL; - SidebarEntry* prev = NULL; - SidebarEntry* _tmp3_; - SidebarEntry* _tmp4_; - GtkTreeIter entry_iter = {0}; - SidebarTreeEntryWrapper* _tmp11_; - GtkTreeIter _tmp12_ = {0}; - GtkTreeStore* _tmp13_; - GtkTreeIter* _tmp14_; -#line 648 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 648 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (branch)); -#line 648 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 649 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_tree_get_wrapper (self, entry); -#line 649 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp0_; -#line 650 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = wrapper; -#line 650 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (_tmp1_ != NULL, "wrapper != null"); -#line 651 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = wrapper; -#line 651 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, SIDEBAR_TREE_TYPE_ROOT_WRAPPER), "!(wrapper is RootWrapper)"); -#line 654 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - prev_iter = NULL; -#line 655 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = sidebar_branch_get_previous_sibling (branch, entry); -#line 655 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - prev = _tmp3_; -#line 656 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = prev; -#line 656 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp4_ != NULL) { -#line 4373 "Tree.c" - SidebarTreeEntryWrapper* prev_wrapper = NULL; - SidebarEntry* _tmp5_; - SidebarTreeEntryWrapper* _tmp6_; - SidebarTreeEntryWrapper* _tmp7_; - SidebarTreeEntryWrapper* _tmp8_; - GtkTreeIter _tmp9_ = {0}; - GtkTreeIter* _tmp10_; -#line 657 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = prev; -#line 657 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = sidebar_tree_get_wrapper (self, _tmp5_); -#line 657 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - prev_wrapper = _tmp6_; -#line 658 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = prev_wrapper; -#line 658 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (_tmp7_ != NULL, "prev_wrapper != null"); -#line 660 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = prev_wrapper; -#line 660 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_entry_wrapper_get_iter (_tmp8_, &_tmp9_); -#line 660 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = __gtk_tree_iter_dup0 (&_tmp9_); -#line 660 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (prev_iter); -#line 660 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - prev_iter = _tmp10_; -#line 656 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (prev_wrapper); -#line 4403 "Tree.c" - } -#line 663 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = wrapper; -#line 663 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_entry_wrapper_get_iter (_tmp11_, &_tmp12_); -#line 663 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - entry_iter = _tmp12_; -#line 664 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = self->priv->store; -#line 664 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = prev_iter; -#line 664 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_move_after (_tmp13_, &entry_iter, _tmp14_); -#line 648 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (prev); -#line 648 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (prev_iter); -#line 648 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 4423 "Tree.c" -} - - -static void -sidebar_tree_on_branch_entry_reparented (SidebarTree* self, - SidebarBranch* branch, - SidebarEntry* entry, - SidebarEntry* old_parent) -{ - SidebarTreeEntryWrapper* wrapper = NULL; - SidebarTreeEntryWrapper* _tmp0_; - SidebarTreeEntryWrapper* _tmp1_; - SidebarTreeEntryWrapper* _tmp2_; - gboolean selected = FALSE; - GtkTreePath* _tmp3_; - GtkTreePath* _tmp4_; - SidebarTreeEntryWrapper* _tmp5_; - GtkTreePath* _tmp6_; - GtkTreePath* _tmp7_; - gboolean _tmp8_; - GtkTreeIter iter = {0}; - SidebarTreeEntryWrapper* _tmp9_; - GtkTreeIter _tmp10_ = {0}; - GtkTreeStore* _tmp11_; - SidebarEntry* parent = NULL; - SidebarEntry* _tmp12_; - SidebarEntry* _tmp13_; - SidebarTreeEntryWrapper* parent_wrapper = NULL; - SidebarEntry* _tmp14_; - SidebarTreeEntryWrapper* _tmp15_; - SidebarTreeEntryWrapper* _tmp16_; - GtkTreeIter* prev_iter = NULL; - SidebarEntry* prev = NULL; - SidebarEntry* _tmp17_; - SidebarEntry* _tmp18_; - GtkTreeIter new_iter = {0}; - GtkTreeStore* _tmp25_; - SidebarTreeEntryWrapper* _tmp26_; - GtkTreeIter _tmp27_ = {0}; - GtkTreeIter* _tmp28_; - GtkTreeIter _tmp29_ = {0}; - SidebarTreeEntryWrapper* new_wrapper = NULL; - GtkTreeIter _tmp30_; - SidebarTreeEntryWrapper* _tmp31_; - SidebarTreeEntryWrapper* _tmp32_; - gboolean _tmp33_; -#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (branch)); -#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (old_parent)); -#line 669 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_tree_get_wrapper (self, entry); -#line 669 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp0_; -#line 670 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = wrapper; -#line 670 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (_tmp1_ != NULL, "wrapper != null"); -#line 671 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = wrapper; -#line 671 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, SIDEBAR_TREE_TYPE_ROOT_WRAPPER), "!(wrapper is RootWrapper)"); -#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = sidebar_tree_get_current_path (self); -#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _tmp3_; -#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = wrapper; -#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = sidebar_tree_entry_wrapper_get_path (_tmp5_); -#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = _tmp6_; -#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = gtk_tree_path_compare (_tmp4_, _tmp7_) == 0; -#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (_tmp7_); -#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (_tmp4_); -#line 673 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - selected = _tmp8_; -#line 676 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = wrapper; -#line 676 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_entry_wrapper_get_iter (_tmp9_, &_tmp10_); -#line 676 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - iter = _tmp10_; -#line 677 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = self->priv->store; -#line 677 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_remove (_tmp11_, &iter); -#line 679 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = sidebar_branch_get_parent (branch, entry); -#line 679 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - parent = _tmp12_; -#line 680 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = parent; -#line 680 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (_tmp13_ != NULL, "parent != null"); -#line 682 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = parent; -#line 682 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp15_ = sidebar_tree_get_wrapper (self, _tmp14_); -#line 682 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - parent_wrapper = _tmp15_; -#line 683 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp16_ = parent_wrapper; -#line 683 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (_tmp16_ != NULL, "parent_wrapper != null"); -#line 686 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - prev_iter = NULL; -#line 687 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp17_ = sidebar_branch_get_previous_sibling (branch, entry); -#line 687 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - prev = _tmp17_; -#line 688 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp18_ = prev; -#line 688 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp18_ != NULL) { -#line 4546 "Tree.c" - SidebarTreeEntryWrapper* prev_wrapper = NULL; - SidebarEntry* _tmp19_; - SidebarTreeEntryWrapper* _tmp20_; - SidebarTreeEntryWrapper* _tmp21_; - SidebarTreeEntryWrapper* _tmp22_; - GtkTreeIter _tmp23_ = {0}; - GtkTreeIter* _tmp24_; -#line 689 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp19_ = prev; -#line 689 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp20_ = sidebar_tree_get_wrapper (self, _tmp19_); -#line 689 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - prev_wrapper = _tmp20_; -#line 690 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp21_ = prev_wrapper; -#line 690 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (_tmp21_ != NULL, "prev_wrapper != null"); -#line 692 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp22_ = prev_wrapper; -#line 692 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_entry_wrapper_get_iter (_tmp22_, &_tmp23_); -#line 692 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp24_ = __gtk_tree_iter_dup0 (&_tmp23_); -#line 692 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (prev_iter); -#line 692 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - prev_iter = _tmp24_; -#line 688 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (prev_wrapper); -#line 4576 "Tree.c" - } -#line 696 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp25_ = self->priv->store; -#line 696 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp26_ = parent_wrapper; -#line 696 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_entry_wrapper_get_iter (_tmp26_, &_tmp27_); -#line 696 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp28_ = prev_iter; -#line 696 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_insert_after (_tmp25_, &_tmp29_, &_tmp27_, _tmp28_); -#line 696 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - new_iter = _tmp29_; -#line 698 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp30_ = new_iter; -#line 698 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp31_ = wrapper; -#line 698 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp32_ = sidebar_tree_reparent_wrapper (self, &_tmp30_, _tmp31_); -#line 698 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - new_wrapper = _tmp32_; -#line 700 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp33_ = selected; -#line 700 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp33_) { -#line 4602 "Tree.c" - SidebarTreeEntryWrapper* _tmp34_; - SidebarEntry* _tmp35_; - SidebarTreeEntryWrapper* _tmp36_; - SidebarEntry* _tmp37_; -#line 701 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp34_ = new_wrapper; -#line 701 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp35_ = _tmp34_->entry; -#line 701 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_expand_to_entry (self, _tmp35_); -#line 702 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp36_ = new_wrapper; -#line 702 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp37_ = _tmp36_->entry; -#line 702 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_place_cursor (self, _tmp37_, FALSE); -#line 4619 "Tree.c" - } -#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (new_wrapper); -#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (prev); -#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (prev_iter); -#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (parent_wrapper); -#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (parent); -#line 667 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 4633 "Tree.c" -} - - -static void -sidebar_tree_on_branch_children_reordered (SidebarTree* self, - SidebarBranch* branch, - SidebarEntry* entry) -{ - GeeList* children = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; -#line 706 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 706 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (branch)); -#line 706 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 707 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_branch_get_children (branch, entry); -#line 707 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - children = _tmp0_; -#line 708 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = children; -#line 708 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp1_ == NULL) { -#line 709 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (children); -#line 709 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 4663 "Tree.c" - } - { - GeeList* _child_list = NULL; - GeeList* _tmp2_; - GeeList* _tmp3_; - gint _child_size = 0; - GeeList* _tmp4_; - gint _tmp5_; - gint _tmp6_; - gint _child_index = 0; -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = children; -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _child_list = _tmp3_; -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _child_list; -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = _tmp5_; -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _child_size = _tmp6_; -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _child_index = -1; -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - while (TRUE) { -#line 4692 "Tree.c" - gint _tmp7_; - gint _tmp8_; - gint _tmp9_; - SidebarEntry* child = NULL; - GeeList* _tmp10_; - gint _tmp11_; - gpointer _tmp12_; - SidebarTreeEntryWrapper* child_wrapper = NULL; - SidebarEntry* _tmp13_; - SidebarTreeEntryWrapper* _tmp14_; - SidebarTreeEntryWrapper* _tmp15_; - GtkTreeIter child_iter = {0}; - SidebarTreeEntryWrapper* _tmp16_; - GtkTreeIter _tmp17_ = {0}; - GtkTreeStore* _tmp18_; -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = _child_index; -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _child_index = _tmp7_ + 1; -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = _child_index; -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = _child_size; -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (!(_tmp8_ < _tmp9_)) { -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - break; -#line 4720 "Tree.c" - } -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = _child_list; -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = _child_index; -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = gee_list_get (_tmp10_, _tmp11_); -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - child = (SidebarEntry*) _tmp12_; -#line 714 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = child; -#line 714 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = sidebar_tree_get_wrapper (self, _tmp13_); -#line 714 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - child_wrapper = _tmp14_; -#line 715 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp15_ = child_wrapper; -#line 715 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (_tmp15_ != NULL, "child_wrapper != null"); -#line 717 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp16_ = child_wrapper; -#line 717 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_entry_wrapper_get_iter (_tmp16_, &_tmp17_); -#line 717 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - child_iter = _tmp17_; -#line 718 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp18_ = self->priv->store; -#line 718 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_move_before (_tmp18_, &child_iter, NULL); -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (child_wrapper); -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (child); -#line 4754 "Tree.c" - } -#line 713 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_child_list); -#line 4758 "Tree.c" - } -#line 706 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (children); -#line 4762 "Tree.c" -} - - -static void -sidebar_tree_on_show_branch (SidebarTree* self, - SidebarBranch* branch, - gboolean shown) -{ -#line 722 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 722 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_BRANCH (branch)); -#line 723 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (shown) { -#line 724 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_associate_branch (self, branch); -#line 4779 "Tree.c" - } else { -#line 726 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_disassociate_branch (self, branch); -#line 4783 "Tree.c" - } -#line 728 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_emit (self, sidebar_tree_signals[SIDEBAR_TREE_BRANCH_SHOWN_SIGNAL], 0, branch, shown); -#line 4787 "Tree.c" -} - - -static void -sidebar_tree_on_sidebar_tooltip_changed (SidebarTree* self, - SidebarEntry* entry, - const gchar* tooltip) -{ - SidebarTreeEntryWrapper* wrapper = NULL; - SidebarTreeEntryWrapper* _tmp0_; - GtkTreeStore* _tmp1_; - GtkTreeIter _tmp2_ = {0}; - gchar* _tmp3_; - gchar* _tmp4_; -#line 731 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 731 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 732 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_tree_get_wrapper (self, entry); -#line 732 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp0_; -#line 733 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (wrapper != NULL, "wrapper != null"); -#line 735 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = self->priv->store; -#line 735 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_entry_wrapper_get_iter (wrapper, &_tmp2_); -#line 735 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = guarded_markup_escape_text (tooltip); -#line 735 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _tmp3_; -#line 735 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_set (_tmp1_, &_tmp2_, SIDEBAR_TREE_COLUMNS_TOOLTIP, _tmp4_, -1); -#line 735 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (_tmp4_); -#line 731 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 4826 "Tree.c" -} - - -static void -sidebar_tree_on_sidebar_icon_changed (SidebarTree* self, - SidebarEntry* entry, - const gchar* icon_name) -{ - SidebarTreeEntryWrapper* wrapper = NULL; - SidebarTreeEntryWrapper* _tmp0_; - SidebarTreeEntryWrapper* _tmp1_; - GIcon* icon = NULL; - GtkTreeStore* _tmp5_; - SidebarTreeEntryWrapper* _tmp6_; - GtkTreeIter _tmp7_ = {0}; - GIcon* _tmp8_; - GError * _inner_error_ = NULL; -#line 738 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 738 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 739 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_tree_get_wrapper (self, entry); -#line 739 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp0_; -#line 740 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = wrapper; -#line 740 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (_tmp1_ != NULL, "wrapper != null"); -#line 741 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - icon = NULL; -#line 4858 "Tree.c" - { -#line 744 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (icon_name != NULL) { -#line 4862 "Tree.c" - GIcon* _tmp2_ = NULL; - GIcon* _tmp3_; - GIcon* _tmp4_; -#line 745 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = g_icon_new_for_string (icon_name, &_inner_error_); -#line 745 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = _tmp3_; -#line 745 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4872 "Tree.c" - goto __catch56_g_error; - } -#line 745 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _tmp2_; -#line 745 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = NULL; -#line 745 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (icon); -#line 745 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - icon = _tmp4_; -#line 744 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_tmp2_); -#line 4885 "Tree.c" - } - } - goto __finally56; - __catch56_g_error: - { - GError* e = NULL; -#line 743 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - e = _inner_error_; -#line 743 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _inner_error_ = NULL; -#line 743 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_error_free0 (e); -#line 4898 "Tree.c" - } - __finally56: -#line 743 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 743 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (icon); -#line 743 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 743 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 743 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_clear_error (&_inner_error_); -#line 743 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 4913 "Tree.c" - } -#line 749 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = self->priv->store; -#line 749 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = wrapper; -#line 749 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_entry_wrapper_get_iter (_tmp6_, &_tmp7_); -#line 749 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = icon; -#line 749 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_set (_tmp5_, &_tmp7_, SIDEBAR_TREE_COLUMNS_ICON, _tmp8_, -1); -#line 738 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (icon); -#line 738 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 4929 "Tree.c" -} - - -static void -sidebar_tree_rename_entry (SidebarTree* self, - SidebarEntry* entry) -{ - SidebarTreeEntryWrapper* wrapper = NULL; - SidebarTreeEntryWrapper* _tmp0_; - GtkTreeStore* _tmp1_; - GtkTreeIter _tmp2_ = {0}; - gchar* _tmp3_; - gchar* _tmp4_; -#line 752 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 752 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 753 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_tree_get_wrapper (self, entry); -#line 753 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp0_; -#line 754 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (wrapper != NULL, "wrapper != null"); -#line 756 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = self->priv->store; -#line 756 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_entry_wrapper_get_iter (wrapper, &_tmp2_); -#line 756 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = sidebar_tree_get_name_for_entry (self, entry); -#line 756 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _tmp3_; -#line 756 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_set (_tmp1_, &_tmp2_, SIDEBAR_TREE_COLUMNS_NAME, _tmp4_, -1); -#line 756 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (_tmp4_); -#line 752 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 4967 "Tree.c" -} - - -static void -sidebar_tree_on_sidebar_name_changed (SidebarTree* self, - SidebarEntry* entry, - const gchar* name) -{ -#line 759 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 759 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_ENTRY (entry)); -#line 759 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (name != NULL); -#line 760 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_rename_entry (self, entry); -#line 4984 "Tree.c" -} - - -static void -sidebar_tree_on_sidebar_page_created (SidebarTree* self, - SidebarPageRepresentative* entry, - Page* page) -{ -#line 763 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 763 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_PAGE_REPRESENTATIVE (entry)); -#line 763 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (IS_PAGE (page)); -#line 764 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_emit (self, sidebar_tree_signals[SIDEBAR_TREE_PAGE_CREATED_SIGNAL], 0, entry, page); -#line 5001 "Tree.c" -} - - -static void -sidebar_tree_on_is_emphasized_changed (SidebarTree* self, - SidebarEmphasizableEntry* entry, - gboolean is_emphasized) -{ -#line 767 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 767 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_EMPHASIZABLE_ENTRY (entry)); -#line 768 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_rename_entry (self, G_TYPE_CHECK_INSTANCE_CAST (entry, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 5016 "Tree.c" -} - - -static void -sidebar_tree_on_sidebar_destroying_page (SidebarTree* self, - SidebarPageRepresentative* entry, - Page* page) -{ -#line 771 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 771 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_PAGE_REPRESENTATIVE (entry)); -#line 771 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (IS_PAGE (page)); -#line 772 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_emit (self, sidebar_tree_signals[SIDEBAR_TREE_DESTROYING_PAGE_SIGNAL], 0, entry, page); -#line 5033 "Tree.c" -} - - -static void -sidebar_tree_load_entry_icons (SidebarTree* self, - GtkTreeIter* iter) -{ - SidebarTreeEntryWrapper* wrapper = NULL; - GtkTreeIter _tmp0_; - SidebarTreeEntryWrapper* _tmp1_; - GIcon* icon = NULL; - SidebarTreeEntryWrapper* _tmp2_; - GtkTreeStore* _tmp11_; - GtkTreeIter _tmp12_; - GIcon* _tmp13_; - GError * _inner_error_ = NULL; -#line 775 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 775 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (iter != NULL); -#line 776 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = *iter; -#line 776 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = sidebar_tree_get_wrapper_at_iter (self, &_tmp0_); -#line 776 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp1_; -#line 777 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - icon = NULL; -#line 778 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = wrapper; -#line 778 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp2_ == NULL) { -#line 779 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (icon); -#line 779 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 779 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 5072 "Tree.c" - } - { - gchar* name = NULL; - SidebarTreeEntryWrapper* _tmp3_; - SidebarEntry* _tmp4_; - gchar* _tmp5_; - const gchar* _tmp6_; -#line 782 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = wrapper; -#line 782 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _tmp3_->entry; -#line 782 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = sidebar_entry_get_sidebar_icon (_tmp4_); -#line 782 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - name = _tmp5_; -#line 783 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = name; -#line 783 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp6_ != NULL) { -#line 5092 "Tree.c" - GIcon* _tmp7_ = NULL; - const gchar* _tmp8_; - GIcon* _tmp9_; - GIcon* _tmp10_; -#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = name; -#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = g_icon_new_for_string (_tmp8_, &_inner_error_); -#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = _tmp9_; -#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (name); -#line 5107 "Tree.c" - goto __catch57_g_error; - } -#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = _tmp7_; -#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = NULL; -#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (icon); -#line 784 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - icon = _tmp10_; -#line 783 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_tmp7_); -#line 5120 "Tree.c" - } -#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (name); -#line 5124 "Tree.c" - } - goto __finally57; - __catch57_g_error: - { - GError* e = NULL; -#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - e = _inner_error_; -#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _inner_error_ = NULL; -#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_error_free0 (e); -#line 5136 "Tree.c" - } - __finally57: -#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (icon); -#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_clear_error (&_inner_error_); -#line 781 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 5151 "Tree.c" - } -#line 789 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = self->priv->store; -#line 789 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = *iter; -#line 789 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = icon; -#line 789 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_store_set (_tmp11_, &_tmp12_, SIDEBAR_TREE_COLUMNS_ICON, _tmp13_, -1); -#line 775 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (icon); -#line 775 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 5165 "Tree.c" -} - - -static void -sidebar_tree_load_branch_icons (SidebarTree* self, - GtkTreeIter* iter) -{ - GtkTreeIter _tmp0_; - GtkTreeIter child_iter = {0}; - GtkTreeStore* _tmp1_; - GtkTreeIter _tmp2_; - GtkTreeIter _tmp3_ = {0}; - gboolean _tmp4_; -#line 792 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 792 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (iter != NULL); -#line 793 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = *iter; -#line 793 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_load_entry_icons (self, &_tmp0_); -#line 796 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = self->priv->store; -#line 796 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = *iter; -#line 796 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = gtk_tree_model_iter_children (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp3_, &_tmp2_); -#line 796 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - child_iter = _tmp3_; -#line 796 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp4_) { -#line 5197 "Tree.c" - { - gboolean _tmp5_ = FALSE; -#line 797 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = TRUE; -#line 797 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - while (TRUE) { -#line 5204 "Tree.c" - GtkTreeIter _tmp8_; -#line 797 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (!_tmp5_) { -#line 5208 "Tree.c" - GtkTreeStore* _tmp6_; - gboolean _tmp7_; -#line 799 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = self->priv->store; -#line 799 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = gtk_tree_model_iter_next (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tree_model_get_type (), GtkTreeModel), &child_iter); -#line 799 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (!_tmp7_) { -#line 799 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - break; -#line 5219 "Tree.c" - } - } -#line 797 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = FALSE; -#line 798 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = child_iter; -#line 798 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_load_branch_icons (self, &_tmp8_); -#line 5228 "Tree.c" - } - } - } -} - - -static gboolean -sidebar_tree_on_selection (SidebarTree* self, - GtkTreeSelection* selection, - GtkTreeModel* model, - GtkTreePath* path, - gboolean path_currently_selected) -{ - gboolean result = FALSE; - SidebarTreeEntryWrapper* wrapper = NULL; - SidebarTreeEntryWrapper* _tmp0_; - gboolean _tmp1_ = FALSE; - SidebarTreeEntryWrapper* _tmp2_; -#line 803 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 803 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (GTK_IS_TREE_SELECTION (selection), FALSE); -#line 803 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (GTK_IS_TREE_MODEL (model), FALSE); -#line 803 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (path != NULL, FALSE); -#line 806 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_tree_get_wrapper_at_path (self, path); -#line 806 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp0_; -#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = wrapper; -#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp2_ != NULL) { -#line 5263 "Tree.c" - SidebarTreeEntryWrapper* _tmp3_; - SidebarEntry* _tmp4_; -#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = wrapper; -#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _tmp3_->entry; -#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, SIDEBAR_TYPE_SELECTABLE_ENTRY); -#line 5272 "Tree.c" - } else { -#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = FALSE; -#line 5276 "Tree.c" - } -#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = _tmp1_; -#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 808 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 5284 "Tree.c" -} - - -static GtkTreePath* -sidebar_tree_get_path_from_event (SidebarTree* self, - GdkEventButton* event) -{ - GtkTreePath* result = NULL; - gint x = 0; - gint y = 0; - GdkModifierType mask = 0; - GdkWindow* _tmp0_; - GdkDisplay* _tmp1_; - GdkDeviceManager* _tmp2_; - GdkDevice* _tmp3_; - gint _tmp4_ = 0; - gint _tmp5_ = 0; - GdkModifierType _tmp6_ = 0; - gint cell_x = 0; - gint cell_y = 0; - GtkTreePath* path = NULL; - GtkTreePath* _tmp7_ = NULL; - gint _tmp8_; - gint _tmp9_; - GtkTreePath* _tmp10_ = NULL; - gint _tmp11_ = 0; - gint _tmp12_ = 0; - gboolean _tmp13_; - GtkTreePath* _tmp15_; -#line 811 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), NULL); -#line 811 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (event != NULL, NULL); -#line 814 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = event->window; -#line 814 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = gdk_display_get_default (); -#line 814 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = gdk_display_get_device_manager (_tmp1_); -#line 814 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = gdk_device_manager_get_client_pointer (_tmp2_); -#line 814 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gdk_window_get_device_position (_tmp0_, _tmp3_, &_tmp4_, &_tmp5_, &_tmp6_); -#line 814 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - x = _tmp4_; -#line 814 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - y = _tmp5_; -#line 814 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - mask = _tmp6_; -#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = x; -#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = y; -#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = gtk_tree_view_get_path_at_pos (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp8_, _tmp9_, &_tmp10_, NULL, &_tmp11_, &_tmp12_); -#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - path = _tmp10_; -#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - cell_x = _tmp11_; -#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - cell_y = _tmp12_; -#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp13_) { -#line 5350 "Tree.c" - GtkTreePath* _tmp14_; -#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = path; -#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = _tmp14_; -#line 5356 "Tree.c" - } else { -#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = NULL; -#line 5360 "Tree.c" - } -#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp15_ = __vala_GtkTreePath_copy0 (_tmp7_); -#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = _tmp15_; -#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 819 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 5370 "Tree.c" -} - - -static GtkTreePath* -sidebar_tree_get_current_path (SidebarTree* self) -{ - GtkTreePath* result = NULL; - GtkTreeModel* model = NULL; - GList* rows = NULL; - GtkTreeSelection* _tmp0_; - GtkTreeModel* _tmp1_ = NULL; - GList* _tmp2_; - GtkTreeModel* _tmp3_; - gboolean _tmp4_ = FALSE; - GList* _tmp5_; - GtkTreePath* _tmp7_ = NULL; - GList* _tmp8_; - GtkTreePath* _tmp11_; -#line 822 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), NULL); -#line 824 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView)); -#line 824 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = gtk_tree_selection_get_selected_rows (_tmp0_, &_tmp1_); -#line 824 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (model); -#line 824 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = _g_object_ref0 (_tmp1_); -#line 824 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - model = _tmp3_; -#line 824 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - rows = _tmp2_; -#line 825 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = rows; -#line 825 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (g_list_length (_tmp5_) == ((guint) 0)) { -#line 825 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = TRUE; -#line 5409 "Tree.c" - } else { - GList* _tmp6_; -#line 825 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = rows; -#line 825 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = g_list_length (_tmp6_) == ((guint) 1); -#line 5416 "Tree.c" - } -#line 825 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (_tmp4_, "rows.length() == 0 || rows.length() == 1"); -#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = rows; -#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (g_list_length (_tmp8_) != ((guint) 0)) { -#line 5424 "Tree.c" - GList* _tmp9_; - gconstpointer _tmp10_; -#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = rows; -#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = g_list_nth_data (_tmp9_, (guint) 0); -#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = (GtkTreePath*) _tmp10_; -#line 5433 "Tree.c" - } else { -#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = NULL; -#line 5437 "Tree.c" - } -#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = __vala_GtkTreePath_copy0 (_tmp7_); -#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = _tmp11_; -#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __g_list_free___vala_GtkTreePath_free0_0 (rows); -#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (model); -#line 827 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 5449 "Tree.c" -} - - -static gboolean -sidebar_tree_on_context_menu_keypress (SidebarTree* self) -{ - gboolean result = FALSE; - GList* rows = NULL; - GtkTreeSelection* _tmp0_; - GList* _tmp1_; - GList* _tmp2_; - GtkTreePath* path = NULL; - GList* _tmp3_; - gconstpointer _tmp4_; - GtkTreePath* _tmp5_; - GtkTreePath* _tmp6_; - GtkTreePath* _tmp7_; - GtkTreePath* _tmp8_; -#line 830 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 831 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView)); -#line 831 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = gtk_tree_selection_get_selected_rows (_tmp0_, NULL); -#line 831 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - rows = _tmp1_; -#line 832 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = rows; -#line 832 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp2_ == NULL) { -#line 833 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 833 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __g_list_free___vala_GtkTreePath_free0_0 (rows); -#line 833 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 5486 "Tree.c" - } -#line 835 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = rows; -#line 835 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _tmp3_->data; -#line 835 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = __vala_GtkTreePath_copy0 ((GtkTreePath*) _tmp4_); -#line 835 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - path = _tmp5_; -#line 836 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = path; -#line 836 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp6_ == NULL) { -#line 837 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 837 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 837 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __g_list_free___vala_GtkTreePath_free0_0 (rows); -#line 837 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 5508 "Tree.c" - } -#line 839 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = path; -#line 839 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_scroll_to_cell (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp7_, NULL, FALSE, (gfloat) 0, (gfloat) 0); -#line 841 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = path; -#line 841 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = sidebar_tree_popup_context_menu (self, _tmp8_, NULL); -#line 841 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 841 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __g_list_free___vala_GtkTreePath_free0_0 (rows); -#line 841 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 5524 "Tree.c" -} - - -static gboolean -sidebar_tree_popup_context_menu (SidebarTree* self, - GtkTreePath* path, - GdkEventButton* event) -{ - gboolean result = FALSE; - SidebarTreeEntryWrapper* wrapper = NULL; - SidebarTreeEntryWrapper* _tmp0_; - SidebarTreeEntryWrapper* _tmp1_; - SidebarContextable* contextable = NULL; - SidebarTreeEntryWrapper* _tmp2_; - SidebarEntry* _tmp3_; - SidebarContextable* _tmp4_; - SidebarContextable* _tmp5_; - SidebarSelectableEntry* selectable = NULL; - SidebarTreeEntryWrapper* _tmp6_; - SidebarEntry* _tmp7_; - SidebarSelectableEntry* _tmp8_; - SidebarSelectableEntry* _tmp9_; - GtkMenu* context_menu = NULL; - SidebarContextable* _tmp11_; - GtkMenu* _tmp12_; - GtkMenu* _tmp13_; - GtkMenu* _tmp14_; - GtkWidget* _tmp15_; -#line 844 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 844 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (path != NULL, FALSE); -#line 845 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_tree_get_wrapper_at_path (self, path); -#line 845 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp0_; -#line 846 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = wrapper; -#line 846 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp1_ == NULL) { -#line 847 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 847 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 847 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 5571 "Tree.c" - } -#line 849 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = wrapper; -#line 849 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = _tmp2_->entry; -#line 849 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, SIDEBAR_TYPE_CONTEXTABLE) ? ((SidebarContextable*) _tmp3_) : NULL); -#line 849 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - contextable = _tmp4_; -#line 850 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = contextable; -#line 850 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp5_ == NULL) { -#line 851 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 851 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (contextable); -#line 851 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 851 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 5593 "Tree.c" - } -#line 854 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = wrapper; -#line 854 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = _tmp6_->entry; -#line 854 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, SIDEBAR_TYPE_SELECTABLE_ENTRY) ? ((SidebarSelectableEntry*) _tmp7_) : NULL); -#line 854 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - selectable = _tmp8_; -#line 855 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = selectable; -#line 855 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp9_ != NULL) { -#line 5607 "Tree.c" - SidebarSelectableEntry* _tmp10_; -#line 856 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = selectable; -#line 856 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_emit (self, sidebar_tree_signals[SIDEBAR_TREE_ENTRY_SELECTED_SIGNAL], 0, _tmp10_); -#line 5613 "Tree.c" - } -#line 858 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = contextable; -#line 858 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = sidebar_contextable_get_sidebar_context_menu (_tmp11_, event); -#line 858 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - context_menu = _tmp12_; -#line 859 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = context_menu; -#line 859 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp13_ == NULL) { -#line 860 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 860 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (context_menu); -#line 860 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (selectable); -#line 860 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (contextable); -#line 860 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 860 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 5637 "Tree.c" - } -#line 862 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = context_menu; -#line 862 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp15_ = gtk_menu_get_attach_widget (_tmp14_); -#line 862 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp15_ == NULL) { -#line 5645 "Tree.c" - GtkMenu* _tmp16_; -#line 863 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp16_ = context_menu; -#line 863 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_menu_attach_to_widget (_tmp16_, G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), NULL); -#line 5651 "Tree.c" - } -#line 866 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (event != NULL) { -#line 5655 "Tree.c" - GtkMenu* _tmp17_; - guint _tmp18_; - guint32 _tmp19_; -#line 867 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp17_ = context_menu; -#line 867 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp18_ = event->button; -#line 867 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp19_ = event->time; -#line 867 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_menu_popup (_tmp17_, NULL, NULL, NULL, NULL, _tmp18_, _tmp19_); -#line 5667 "Tree.c" - } else { - GtkMenu* _tmp20_; -#line 869 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp20_ = context_menu; -#line 869 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_menu_popup (_tmp20_, NULL, NULL, NULL, NULL, (guint) 0, gtk_get_current_event_time ()); -#line 5674 "Tree.c" - } -#line 871 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = TRUE; -#line 871 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (context_menu); -#line 871 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (selectable); -#line 871 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (contextable); -#line 871 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 871 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 5688 "Tree.c" -} - - -static gboolean -sidebar_tree_popup_default_context_menu (SidebarTree* self, - GdkEventButton* event) -{ - gboolean result = FALSE; - GtkMenu* _tmp0_; - guint _tmp1_; - guint32 _tmp2_; -#line 874 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 874 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 875 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->priv->default_context_menu; -#line 875 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = event->button; -#line 875 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = event->time; -#line 875 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_menu_popup (_tmp0_, NULL, NULL, NULL, NULL, _tmp1_, _tmp2_); -#line 876 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = TRUE; -#line 876 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 5716 "Tree.c" -} - - -gboolean -sidebar_tree_on_toggle_row (SidebarTree* self, - GtkTreeIter* iter, - GtkTreePath* path) -{ - gboolean result = FALSE; - SidebarTreeEntryWrapper* wrapper = NULL; - GtkTreeIter _tmp0_; - SidebarTreeEntryWrapper* _tmp1_; - SidebarTreeEntryWrapper* _tmp2_; - gboolean should_allow_toggle = FALSE; - gboolean _tmp3_; - gboolean _tmp4_ = FALSE; - gboolean _tmp5_ = FALSE; - gboolean _tmp13_; -#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (iter != NULL, FALSE); -#line 879 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (path != NULL, FALSE); -#line 881 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = *iter; -#line 881 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = sidebar_tree_get_wrapper_at_iter (self, &_tmp0_); -#line 881 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp1_; -#line 882 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = wrapper; -#line 882 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp2_ == NULL) { -#line 883 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 883 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 883 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 5757 "Tree.c" - } -#line 887 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = self->priv->expander_called_manually; -#line 887 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - should_allow_toggle = _tmp3_; -#line 890 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->expander_called_manually = FALSE; -#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (gtk_tree_view_row_expanded (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), path)) { -#line 5767 "Tree.c" - GtkTreeStore* _tmp6_; - GtkTreeIter _tmp7_; -#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = self->priv->store; -#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = *iter; -#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = gtk_tree_model_iter_has_child (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_tree_model_get_type (), GtkTreeModel), &_tmp7_); -#line 5776 "Tree.c" - } else { -#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = FALSE; -#line 5780 "Tree.c" - } -#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp5_) { -#line 5784 "Tree.c" - SidebarTreeEntryWrapper* _tmp8_; - SidebarEntry* _tmp9_; -#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = wrapper; -#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = _tmp8_->entry; -#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, SIDEBAR_TYPE_SELECTABLE_ENTRY); -#line 5793 "Tree.c" - } else { -#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = FALSE; -#line 5797 "Tree.c" - } -#line 893 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp4_) { -#line 5801 "Tree.c" - gint _tmp10_; - gint _tmp11_; -#line 895 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = self->priv->expander_special_count; -#line 895 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->expander_special_count = _tmp10_ + 1; -#line 896 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = self->priv->expander_special_count; -#line 896 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp11_ == 1) { -#line 898 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = TRUE; -#line 898 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 898 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 5818 "Tree.c" - } else { - gboolean _tmp12_; -#line 901 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = should_allow_toggle; -#line 901 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - should_allow_toggle = !_tmp12_; -#line 5825 "Tree.c" - } - } else { -#line 905 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->expander_special_count = 0; -#line 5830 "Tree.c" - } -#line 908 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = should_allow_toggle; -#line 908 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp13_) { -#line 909 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 909 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 909 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 5842 "Tree.c" - } -#line 912 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = TRUE; -#line 912 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 912 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 5850 "Tree.c" -} - - -static gboolean -sidebar_tree_real_button_press_event (GtkWidget* base, - GdkEventButton* event) -{ - SidebarTree * self; - gboolean result = FALSE; - GtkTreePath* path = NULL; - GtkTreePath* _tmp0_; - gboolean _tmp1_ = FALSE; - GtkTreePath* _tmp2_; - gboolean _tmp4_ = FALSE; - guint _tmp5_; -#line 915 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_TREE, SidebarTree); -#line 915 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 916 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_tree_get_path_from_event (self, event); -#line 916 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - path = _tmp0_; -#line 919 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = path; -#line 919 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp2_ == NULL) { -#line 5878 "Tree.c" - guint _tmp3_; -#line 919 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = event->button; -#line 919 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = _tmp3_ != ((guint) 3); -#line 5884 "Tree.c" - } else { -#line 919 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = FALSE; -#line 5888 "Tree.c" - } -#line 919 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp1_) { -#line 920 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = TRUE; -#line 920 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 920 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 5898 "Tree.c" - } -#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = event->button; -#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp5_ == ((guint) 3)) { -#line 5904 "Tree.c" - GdkEventType _tmp6_; -#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = event->type; -#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _tmp6_ == GDK_BUTTON_PRESS; -#line 5910 "Tree.c" - } else { -#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = FALSE; -#line 5914 "Tree.c" - } -#line 923 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp4_) { -#line 5918 "Tree.c" - GtkTreePath* _tmp7_; -#line 925 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = path; -#line 925 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp7_ != NULL) { -#line 5924 "Tree.c" - GtkTreePath* _tmp8_; -#line 926 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = path; -#line 926 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_popup_context_menu (self, _tmp8_, event); -#line 5930 "Tree.c" - } else { -#line 928 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_popup_default_context_menu (self, event); -#line 5934 "Tree.c" - } - } else { - gboolean _tmp9_ = FALSE; - guint _tmp10_; -#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = event->button; -#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp10_ == ((guint) 1)) { -#line 5943 "Tree.c" - GdkEventType _tmp11_; -#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = event->type; -#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = _tmp11_ == GDK_BUTTON_PRESS; -#line 5949 "Tree.c" - } else { -#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = FALSE; -#line 5953 "Tree.c" - } -#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp9_) { -#line 5957 "Tree.c" - GtkTreePath* _tmp12_; - SidebarTreeEntryWrapper* wrapper = NULL; - GtkTreePath* _tmp13_; - SidebarTreeEntryWrapper* _tmp14_; - SidebarTreeEntryWrapper* _tmp15_; - gboolean _tmp16_ = FALSE; - SidebarTreeEntryWrapper* _tmp17_; - SidebarEntry* _tmp18_; - gboolean _tmp22_ = FALSE; - gboolean _tmp23_ = FALSE; - GtkTreeRowReference* _tmp24_; - gboolean _tmp33_ = FALSE; - SidebarTreeEntryWrapper* _tmp34_; - SidebarEntry* _tmp35_; - GtkTreeStore* _tmp39_; - GtkTreePath* _tmp40_; - GtkTreeRowReference* _tmp41_; -#line 930 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = path; -#line 930 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp12_ == NULL) { -#line 931 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreeRowReference_free0 (self->priv->old_path_ref); -#line 931 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->old_path_ref = NULL; -#line 932 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = GTK_WIDGET_CLASS (sidebar_tree_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), event); -#line 932 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 932 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 5989 "Tree.c" - } -#line 935 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = path; -#line 935 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = sidebar_tree_get_wrapper_at_path (self, _tmp13_); -#line 935 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp14_; -#line 937 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp15_ = wrapper; -#line 937 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp15_ == NULL) { -#line 938 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreeRowReference_free0 (self->priv->old_path_ref); -#line 938 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->old_path_ref = NULL; -#line 939 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = GTK_WIDGET_CLASS (sidebar_tree_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), event); -#line 939 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 939 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 939 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 6013 "Tree.c" - } -#line 943 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp17_ = wrapper; -#line 943 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp18_ = _tmp17_->entry; -#line 943 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, SIDEBAR_TYPE_EXPANDABLE_ENTRY)) { -#line 943 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp16_ = TRUE; -#line 6023 "Tree.c" - } else { - SidebarTreeEntryWrapper* _tmp19_; - SidebarEntry* _tmp20_; -#line 944 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp19_ = wrapper; -#line 944 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp20_ = _tmp19_->entry; -#line 944 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp16_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY); -#line 6033 "Tree.c" - } -#line 943 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp16_) { -#line 6037 "Tree.c" - GtkTreePath* _tmp21_; -#line 946 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp21_ = path; -#line 946 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_toggle_branch_expansion (self, _tmp21_, FALSE); -#line 6043 "Tree.c" - } -#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp24_ = self->priv->old_path_ref; -#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp24_ != NULL) { -#line 6049 "Tree.c" - GtkTreeRowReference* _tmp25_; - GtkTreePath* _tmp26_; - GtkTreePath* _tmp27_; -#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp25_ = self->priv->old_path_ref; -#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp26_ = gtk_tree_row_reference_get_path (_tmp25_); -#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp27_ = _tmp26_; -#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp23_ = _tmp27_ != NULL; -#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (_tmp27_); -#line 6063 "Tree.c" - } else { -#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp23_ = FALSE; -#line 6067 "Tree.c" - } -#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp23_) { -#line 6071 "Tree.c" - GtkTreeRowReference* _tmp28_; - GtkTreePath* _tmp29_; - GtkTreePath* _tmp30_; - GtkTreePath* _tmp31_; -#line 951 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp28_ = self->priv->old_path_ref; -#line 951 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp29_ = gtk_tree_row_reference_get_path (_tmp28_); -#line 951 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp30_ = _tmp29_; -#line 951 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp31_ = path; -#line 951 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp22_ = gtk_tree_path_compare (_tmp30_, _tmp31_) == 0; -#line 951 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (_tmp30_); -#line 6088 "Tree.c" - } else { -#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp22_ = FALSE; -#line 6092 "Tree.c" - } -#line 950 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp22_) { -#line 6096 "Tree.c" - GtkCellRendererText* _tmp32_; -#line 954 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp32_ = self->priv->text_renderer; -#line 954 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_set (_tmp32_, "editable", FALSE, NULL); -#line 955 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = GTK_WIDGET_CLASS (sidebar_tree_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), event); -#line 955 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 955 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 955 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 6110 "Tree.c" - } -#line 960 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp34_ = wrapper; -#line 960 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp35_ = _tmp34_->entry; -#line 960 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp35_, SIDEBAR_TYPE_RENAMEABLE_ENTRY)) { -#line 6118 "Tree.c" - SidebarTreeEntryWrapper* _tmp36_; - SidebarEntry* _tmp37_; -#line 961 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp36_ = wrapper; -#line 961 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp37_ = _tmp36_->entry; -#line 961 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp33_ = sidebar_renameable_entry_is_user_renameable (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry)); -#line 6127 "Tree.c" - } else { -#line 960 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp33_ = FALSE; -#line 6131 "Tree.c" - } -#line 960 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp33_) { -#line 6135 "Tree.c" - GtkCellRendererText* _tmp38_; -#line 962 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp38_ = self->priv->text_renderer; -#line 962 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_set (_tmp38_, "editable", TRUE, NULL); -#line 6141 "Tree.c" - } -#line 966 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp39_ = self->priv->store; -#line 966 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp40_ = path; -#line 966 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp41_ = gtk_tree_row_reference_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_tree_model_get_type (), GtkTreeModel), _tmp40_); -#line 966 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreeRowReference_free0 (self->priv->old_path_ref); -#line 966 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->old_path_ref = _tmp41_; -#line 929 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 6155 "Tree.c" - } - } -#line 969 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = GTK_WIDGET_CLASS (sidebar_tree_parent_class)->button_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), event); -#line 969 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 969 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 6164 "Tree.c" -} - - -gboolean -sidebar_tree_is_keypress_interpreted (SidebarTree* self, - GdkEventKey* event) -{ - gboolean result = FALSE; - guint _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - GQuark _tmp4_ = 0U; -#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - static GQuark _tmp3_label0 = 0; -#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - static GQuark _tmp3_label1 = 0; -#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - static GQuark _tmp3_label2 = 0; -#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - static GQuark _tmp3_label3 = 0; -#line 972 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 972 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = event->keyval; -#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = gdk_keyval_name (_tmp0_); -#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = _tmp1_; -#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_); -#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if ((((_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("F2")))) || (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("Delete"))))) || (_tmp4_ == ((0 != _tmp3_label2) ? _tmp3_label2 : (_tmp3_label2 = g_quark_from_static_string ("Return"))))) || (_tmp4_ == ((0 != _tmp3_label3) ? _tmp3_label3 : (_tmp3_label3 = g_quark_from_static_string ("KP_Enter"))))) { -#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - switch (0) { -#line 6201 "Tree.c" - default: - { -#line 978 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = TRUE; -#line 978 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 6208 "Tree.c" - } - } - } else { -#line 973 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - switch (0) { -#line 6214 "Tree.c" - default: - { -#line 981 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 981 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 6221 "Tree.c" - } - } - } -} - - -static gboolean -sidebar_tree_real_key_press_event (GtkWidget* base, - GdkEventKey* event) -{ - SidebarTree * self; - gboolean result = FALSE; - guint _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - GQuark _tmp4_ = 0U; -#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - static GQuark _tmp3_label0 = 0; -#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - static GQuark _tmp3_label1 = 0; -#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - static GQuark _tmp3_label2 = 0; -#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - static GQuark _tmp3_label3 = 0; -#line 985 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_TREE, SidebarTree); -#line 985 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = event->keyval; -#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = gdk_keyval_name (_tmp0_); -#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = _tmp1_; -#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_); -#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if ((_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("Return")))) || (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("KP_Enter"))))) { -#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - switch (0) { -#line 6262 "Tree.c" - default: - { - GtkTreePath* path = NULL; - GtkTreePath* _tmp5_; - GtkTreePath* _tmp6_; -#line 989 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = sidebar_tree_get_current_path (self); -#line 989 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - path = _tmp5_; -#line 990 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = path; -#line 990 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp6_ != NULL) { -#line 6276 "Tree.c" - GtkTreePath* _tmp7_; -#line 991 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = path; -#line 991 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_toggle_branch_expansion (self, _tmp7_, FALSE); -#line 6282 "Tree.c" - } -#line 993 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = TRUE; -#line 993 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 993 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 6290 "Tree.c" - } - } - } else if (_tmp4_ == ((0 != _tmp3_label2) ? _tmp3_label2 : (_tmp3_label2 = g_quark_from_static_string ("F2")))) { -#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - switch (0) { -#line 6296 "Tree.c" - default: - { -#line 996 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = sidebar_tree_rename_in_place (self); -#line 996 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 6303 "Tree.c" - } - } - } else if (_tmp4_ == ((0 != _tmp3_label3) ? _tmp3_label3 : (_tmp3_label3 = g_quark_from_static_string ("Delete")))) { -#line 986 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - switch (0) { -#line 6309 "Tree.c" - default: - { - GtkTreePath* path = NULL; - GtkTreePath* _tmp8_; - gboolean _tmp9_ = FALSE; - GtkTreePath* _tmp10_; -#line 999 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = sidebar_tree_get_current_path (self); -#line 999 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - path = _tmp8_; -#line 1001 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = path; -#line 1001 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp10_ != NULL) { -#line 6324 "Tree.c" - GtkTreePath* _tmp11_; -#line 1001 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = path; -#line 1001 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = sidebar_tree_destroy_path (self, _tmp11_); -#line 6330 "Tree.c" - } else { -#line 1001 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = FALSE; -#line 6334 "Tree.c" - } -#line 1001 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = _tmp9_; -#line 1001 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 1001 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 6342 "Tree.c" - } - } - } -#line 1004 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = GTK_WIDGET_CLASS (sidebar_tree_parent_class)->key_press_event (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), event); -#line 1004 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 6350 "Tree.c" -} - - -gboolean -sidebar_tree_rename_entry_in_place (SidebarTree* self, - SidebarEntry* entry) -{ - gboolean result = FALSE; -#line 1007 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 1007 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE); -#line 1008 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (!sidebar_tree_expand_to_entry (self, entry)) { -#line 1009 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 1009 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 6369 "Tree.c" - } -#line 1011 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (!sidebar_tree_place_cursor (self, entry, FALSE)) { -#line 1012 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 1012 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 6377 "Tree.c" - } -#line 1014 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = sidebar_tree_rename_in_place (self); -#line 1014 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 6383 "Tree.c" -} - - -static gboolean -sidebar_tree_rename_in_place (SidebarTree* self) -{ - gboolean result = FALSE; - GtkTreePath* cursor_path = NULL; - GtkTreeViewColumn* cursor_column = NULL; - GtkTreePath* _tmp0_ = NULL; - GtkTreeViewColumn* _tmp1_ = NULL; - GtkTreeViewColumn* _tmp2_; - GtkTreePath* _tmp3_; -#line 1017 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_get_cursor (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), &_tmp0_, &_tmp1_); -#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (cursor_path); -#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - cursor_path = _tmp0_; -#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (cursor_column); -#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = _g_object_ref0 (_tmp1_); -#line 1020 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - cursor_column = _tmp2_; -#line 1022 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = cursor_path; -#line 1022 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (sidebar_tree_can_rename_path (self, _tmp3_)) { -#line 6415 "Tree.c" - GtkTreePath* _tmp4_; - GtkTreeViewColumn* _tmp5_; - GtkCellRendererText* _tmp6_; -#line 1023 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = cursor_path; -#line 1023 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = cursor_column; -#line 1023 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = self->priv->text_renderer; -#line 1023 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_set_cursor_on_cell (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp4_, _tmp5_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_cell_renderer_get_type (), GtkCellRenderer), TRUE); -#line 1025 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = TRUE; -#line 1025 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (cursor_column); -#line 1025 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (cursor_path); -#line 1025 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 6435 "Tree.c" - } -#line 1028 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 1028 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (cursor_column); -#line 1028 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (cursor_path); -#line 1028 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 6445 "Tree.c" -} - - -gboolean -sidebar_tree_scroll_to_entry (SidebarTree* self, - SidebarEntry* entry) -{ - gboolean result = FALSE; - SidebarTreeEntryWrapper* wrapper = NULL; - SidebarTreeEntryWrapper* _tmp0_; - SidebarTreeEntryWrapper* _tmp1_; - SidebarTreeEntryWrapper* _tmp2_; - GtkTreePath* _tmp3_; - GtkTreePath* _tmp4_; -#line 1031 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 1031 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), FALSE); -#line 1032 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_tree_get_wrapper (self, entry); -#line 1032 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp0_; -#line 1033 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = wrapper; -#line 1033 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp1_ == NULL) { -#line 1034 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 1034 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1034 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 6478 "Tree.c" - } -#line 1036 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = wrapper; -#line 1036 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = sidebar_tree_entry_wrapper_get_path (_tmp2_); -#line 1036 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _tmp3_; -#line 1036 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_scroll_to_cell (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp4_, NULL, FALSE, (gfloat) 0, (gfloat) 0); -#line 1036 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (_tmp4_); -#line 1038 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = TRUE; -#line 1038 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1038 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 6496 "Tree.c" -} - - -static void -sidebar_tree_real_drag_data_get (GtkWidget* base, - GdkDragContext* context, - GtkSelectionData* selection_data, - guint info, - guint time) -{ - SidebarTree * self; - SidebarInternalDragSourceEntry* drag_source = NULL; - SidebarEntry* _tmp0_; - SidebarInternalDragSourceEntry* _tmp6_; - SidebarInternalDragSourceEntry* _tmp16_; -#line 1041 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_TREE, SidebarTree); -#line 1041 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 1041 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (selection_data != NULL); -#line 1043 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - drag_source = NULL; -#line 1045 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->priv->internal_drag_source_entry; -#line 1045 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp0_ != NULL) { -#line 6524 "Tree.c" - SidebarSelectableEntry* selectable = NULL; - SidebarEntry* _tmp1_; - SidebarSelectableEntry* _tmp2_; - SidebarSelectableEntry* _tmp3_; -#line 1046 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = self->priv->internal_drag_source_entry; -#line 1046 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, SIDEBAR_TYPE_SELECTABLE_ENTRY) ? ((SidebarSelectableEntry*) _tmp1_) : NULL); -#line 1046 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - selectable = _tmp2_; -#line 1048 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = selectable; -#line 1048 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp3_ == NULL) { -#line 6539 "Tree.c" - SidebarEntry* _tmp4_; - SidebarInternalDragSourceEntry* _tmp5_; -#line 1049 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = self->priv->internal_drag_source_entry; -#line 1049 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY) ? ((SidebarInternalDragSourceEntry*) _tmp4_) : NULL); -#line 1049 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (drag_source); -#line 1049 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - drag_source = _tmp5_; -#line 6550 "Tree.c" - } -#line 1045 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (selectable); -#line 6554 "Tree.c" - } -#line 1053 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = drag_source; -#line 1053 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp6_ == NULL) { -#line 6560 "Tree.c" - GtkTreePath* selected_path = NULL; - GtkTreePath* _tmp7_; - GtkTreePath* _tmp8_; - SidebarTreeEntryWrapper* wrapper = NULL; - GtkTreePath* _tmp9_; - SidebarTreeEntryWrapper* _tmp10_; - SidebarTreeEntryWrapper* _tmp11_; - SidebarTreeEntryWrapper* _tmp12_; - SidebarEntry* _tmp13_; - SidebarInternalDragSourceEntry* _tmp14_; - SidebarInternalDragSourceEntry* _tmp15_; -#line 1054 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = sidebar_tree_get_selected_path (self); -#line 1054 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - selected_path = _tmp7_; -#line 1055 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = selected_path; -#line 1055 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp8_ == NULL) { -#line 1056 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (selected_path); -#line 1056 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (drag_source); -#line 1056 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 6586 "Tree.c" - } -#line 1058 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = selected_path; -#line 1058 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = sidebar_tree_get_wrapper_at_path (self, _tmp9_); -#line 1058 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp10_; -#line 1059 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = wrapper; -#line 1059 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp11_ == NULL) { -#line 1060 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1060 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (selected_path); -#line 1060 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (drag_source); -#line 1060 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 6606 "Tree.c" - } -#line 1062 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = wrapper; -#line 1062 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = _tmp12_->entry; -#line 1062 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY) ? ((SidebarInternalDragSourceEntry*) _tmp13_) : NULL); -#line 1062 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (drag_source); -#line 1062 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - drag_source = _tmp14_; -#line 1063 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp15_ = drag_source; -#line 1063 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp15_ == NULL) { -#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (selected_path); -#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (drag_source); -#line 1064 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 6630 "Tree.c" - } -#line 1053 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1053 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (selected_path); -#line 6636 "Tree.c" - } -#line 1067 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp16_ = drag_source; -#line 1067 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_internal_drag_source_entry_prepare_selection_data (_tmp16_, selection_data); -#line 1041 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (drag_source); -#line 6644 "Tree.c" -} - - -static void -sidebar_tree_real_drag_data_received (GtkWidget* base, - GdkDragContext* context, - gint x, - gint y, - GtkSelectionData* selection_data, - guint info, - guint time) -{ - SidebarTree * self; - GtkTreePath* path = NULL; - GtkTreeViewDropPosition pos = 0; - GtkTreePath* _tmp0_ = NULL; - GtkTreeViewDropPosition _tmp1_ = 0; - gboolean _tmp2_; - SidebarTreeEntryWrapper* wrapper = NULL; - GtkTreePath* _tmp5_; - SidebarTreeEntryWrapper* _tmp6_; - GtkWidget* _tmp7_; - SidebarTreeEntryWrapper* _tmp13_; - SidebarInternalDropTargetEntry* targetable = NULL; - SidebarTreeEntryWrapper* _tmp14_; - SidebarEntry* _tmp15_; - SidebarInternalDropTargetEntry* _tmp16_; - SidebarInternalDropTargetEntry* _tmp17_; - gboolean success = FALSE; - gchar* _tmp18_; - gchar* _tmp19_; - gboolean _tmp20_; - gboolean _tmp31_; -#line 1070 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_TREE, SidebarTree); -#line 1070 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); -#line 1070 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (selection_data != NULL); -#line 1075 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = gtk_tree_view_get_dest_row_at_pos (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), x, y, &_tmp0_, &_tmp1_); -#line 1075 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 1075 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - path = _tmp0_; -#line 1075 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - pos = _tmp1_; -#line 1075 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (!_tmp2_) { -#line 6694 "Tree.c" - GtkWidget* _tmp3_; -#line 1077 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = gtk_drag_get_source_widget (context); -#line 1077 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp3_ == NULL) { -#line 6700 "Tree.c" - SidebarTreeExternalDropHandler _tmp4_; - void* _tmp4__target; -#line 1078 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = self->priv->drop_handler; -#line 1078 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4__target = self->priv->drop_handler_target; -#line 1078 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ (context, NULL, selection_data, info, time, _tmp4__target); -#line 6709 "Tree.c" - } else { -#line 1080 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_drag_finish (context, FALSE, FALSE, (guint32) time); -#line 6713 "Tree.c" - } -#line 1082 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 1082 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 6719 "Tree.c" - } -#line 1086 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = path; -#line 1086 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = sidebar_tree_get_wrapper_at_path (self, _tmp5_); -#line 1086 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp6_; -#line 1089 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = gtk_drag_get_source_widget (context); -#line 1089 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp7_ == NULL) { -#line 6731 "Tree.c" - SidebarEntry* _tmp8_ = NULL; - SidebarTreeEntryWrapper* _tmp9_; - SidebarTreeExternalDropHandler _tmp12_; - void* _tmp12__target; -#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = wrapper; -#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp9_ != NULL) { -#line 6740 "Tree.c" - SidebarTreeEntryWrapper* _tmp10_; - SidebarEntry* _tmp11_; -#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = wrapper; -#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = _tmp10_->entry; -#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = _tmp11_; -#line 6749 "Tree.c" - } else { -#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = NULL; -#line 6753 "Tree.c" - } -#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = self->priv->drop_handler; -#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12__target = self->priv->drop_handler_target; -#line 1090 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ (context, _tmp8_, selection_data, info, time, _tmp12__target); -#line 1093 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1093 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 1093 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 6767 "Tree.c" - } -#line 1097 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = wrapper; -#line 1097 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp13_ == NULL) { -#line 1098 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_drag_finish (context, FALSE, FALSE, (guint32) time); -#line 1100 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1100 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 1100 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 6781 "Tree.c" - } -#line 1103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp14_ = wrapper; -#line 1103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp15_ = _tmp14_->entry; -#line 1103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp16_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY) ? ((SidebarInternalDropTargetEntry*) _tmp15_) : NULL); -#line 1103 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - targetable = _tmp16_; -#line 1104 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp17_ = targetable; -#line 1104 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp17_ == NULL) { -#line 1105 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_drag_finish (context, FALSE, FALSE, (guint32) time); -#line 1107 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (targetable); -#line 1107 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1107 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 1107 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 6805 "Tree.c" - } -#line 1110 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - success = FALSE; -#line 1112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp18_ = gdk_atom_name (gtk_selection_data_get_data_type (selection_data)); -#line 1112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp19_ = _tmp18_; -#line 1112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp20_ = g_strcmp0 (_tmp19_, LIBRARY_WINDOW_TAG_PATH_MIME_TYPE) == 0; -#line 1112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_free0 (_tmp19_); -#line 1112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp20_) { -#line 6819 "Tree.c" - SidebarInternalDropTargetEntry* _tmp21_; -#line 1113 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp21_ = targetable; -#line 1113 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - success = sidebar_internal_drop_target_entry_internal_drop_received_arbitrary (_tmp21_, selection_data); -#line 6825 "Tree.c" - } else { - GeeList* media = NULL; - guint8* _tmp22_; - GeeList* _tmp23_; - gboolean _tmp24_ = FALSE; - GeeList* _tmp25_; -#line 1115 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp22_ = gtk_selection_data_get_data (selection_data); -#line 1115 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp23_ = unserialize_media_sources (_tmp22_, gtk_selection_data_get_length (selection_data)); -#line 1115 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - media = _tmp23_; -#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp25_ = media; -#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp25_ != NULL) { -#line 6842 "Tree.c" - GeeList* _tmp26_; - gint _tmp27_; - gint _tmp28_; -#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp26_ = media; -#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp27_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp28_ = _tmp27_; -#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp24_ = _tmp28_ > 0; -#line 6854 "Tree.c" - } else { -#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp24_ = FALSE; -#line 6858 "Tree.c" - } -#line 1117 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp24_) { -#line 6862 "Tree.c" - SidebarInternalDropTargetEntry* _tmp29_; - GeeList* _tmp30_; -#line 1118 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp29_ = targetable; -#line 1118 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp30_ = media; -#line 1118 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - success = sidebar_internal_drop_target_entry_internal_drop_received (_tmp29_, _tmp30_); -#line 6871 "Tree.c" - } -#line 1112 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (media); -#line 6875 "Tree.c" - } -#line 1121 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp31_ = success; -#line 1121 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_drag_finish (context, _tmp31_, FALSE, (guint32) time); -#line 1070 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (targetable); -#line 1070 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1070 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 6887 "Tree.c" -} - - -static gboolean -sidebar_tree_real_drag_motion (GtkWidget* base, - GdkDragContext* context, - gint x, - gint y, - guint time) -{ - SidebarTree * self; - gboolean result = FALSE; - GtkTreePath* path = NULL; - GtkTreeViewDropPosition pos = 0; - gboolean has_dest = FALSE; - GtkTreePath* _tmp0_ = NULL; - GtkTreeViewDropPosition _tmp1_ = 0; - gboolean _tmp2_; - gboolean _tmp3_ = FALSE; - gboolean _tmp4_; -#line 1124 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_TREE, SidebarTree); -#line 1124 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE); -#line 1126 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - GTK_WIDGET_CLASS (sidebar_tree_parent_class)->drag_motion (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), gtk_widget_get_type (), GtkWidget), context, x, y, time); -#line 1130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = gtk_tree_view_get_dest_row_at_pos (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), x, y, &_tmp0_, &_tmp1_); -#line 1130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 1130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - path = _tmp0_; -#line 1130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - pos = _tmp1_; -#line 1130 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - has_dest = _tmp2_; -#line 1133 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = has_dest; -#line 1133 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (!_tmp4_) { -#line 1133 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = TRUE; -#line 6930 "Tree.c" - } else { - GtkTreeViewDropPosition _tmp5_; -#line 1133 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = pos; -#line 1133 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = _tmp5_ == GTK_TREE_VIEW_DROP_BEFORE; -#line 6937 "Tree.c" - } -#line 1133 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp3_) { -#line 6941 "Tree.c" - GtkTreePath* _tmp6_; -#line 1134 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = path; -#line 1134 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_set_drag_dest_row (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp6_, GTK_TREE_VIEW_DROP_INTO_OR_BEFORE); -#line 6947 "Tree.c" - } else { - GtkTreeViewDropPosition _tmp7_; -#line 1135 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = pos; -#line 1135 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp7_ == GTK_TREE_VIEW_DROP_AFTER) { -#line 6954 "Tree.c" - GtkTreePath* _tmp8_; -#line 1136 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = path; -#line 1136 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_view_set_drag_dest_row (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView), _tmp8_, GTK_TREE_VIEW_DROP_INTO_OR_AFTER); -#line 6960 "Tree.c" - } - } -#line 1138 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gdk_drag_status (context, gdk_drag_context_get_suggested_action (context), (guint32) time); -#line 1140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = has_dest; -#line 1140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (path); -#line 1140 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 6971 "Tree.c" -} - - -static gboolean -sidebar_tree_can_rename_path (SidebarTree* self, - GtkTreePath* path) -{ - gboolean result = FALSE; - gint _tmp0_; - SidebarTreeEntryWrapper* wrapper = NULL; - SidebarTreeEntryWrapper* _tmp1_; - SidebarTreeEntryWrapper* _tmp2_; - SidebarRenameableEntry* renameable = NULL; - SidebarTreeEntryWrapper* _tmp3_; - SidebarEntry* _tmp4_; - SidebarRenameableEntry* _tmp5_; - SidebarRenameableEntry* _tmp6_; - SidebarTreeEntryWrapper* _tmp7_; - SidebarEntry* _tmp8_; - GtkTreeSelection* _tmp9_; -#line 1144 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 1144 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (path != NULL, FALSE); -#line 1145 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->priv->editing_disabled; -#line 1145 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp0_ > 0) { -#line 1146 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 1146 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 7004 "Tree.c" - } -#line 1148 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = sidebar_tree_get_wrapper_at_path (self, path); -#line 1148 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp1_; -#line 1149 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = wrapper; -#line 1149 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp2_ == NULL) { -#line 1150 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 1150 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1150 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 7020 "Tree.c" - } -#line 1152 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = wrapper; -#line 1152 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _tmp3_->entry; -#line 1152 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, SIDEBAR_TYPE_RENAMEABLE_ENTRY) ? ((SidebarRenameableEntry*) _tmp4_) : NULL); -#line 1152 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - renameable = _tmp5_; -#line 1153 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = renameable; -#line 1153 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp6_ == NULL) { -#line 1154 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 1154 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (renameable); -#line 1154 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1154 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 7042 "Tree.c" - } -#line 1156 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = wrapper; -#line 1156 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = _tmp7_->entry; -#line 1156 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, SIDEBAR_TYPE_HEADER)) { -#line 1157 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 1157 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (renameable); -#line 1157 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1157 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 7058 "Tree.c" - } -#line 1159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = gtk_tree_view_get_selection (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_tree_view_get_type (), GtkTreeView)); -#line 1159 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - gtk_tree_selection_select_path (_tmp9_, path); -#line 1161 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = TRUE; -#line 1161 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (renameable); -#line 1161 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1161 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 7072 "Tree.c" -} - - -static gboolean -sidebar_tree_destroy_path (SidebarTree* self, - GtkTreePath* path) -{ - gboolean result = FALSE; - SidebarTreeEntryWrapper* wrapper = NULL; - SidebarTreeEntryWrapper* _tmp0_; - SidebarTreeEntryWrapper* _tmp1_; - SidebarDestroyableEntry* destroyable = NULL; - SidebarTreeEntryWrapper* _tmp2_; - SidebarEntry* _tmp3_; - SidebarDestroyableEntry* _tmp4_; - SidebarDestroyableEntry* _tmp5_; - SidebarDestroyableEntry* _tmp6_; -#line 1164 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 1164 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (path != NULL, FALSE); -#line 1165 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = sidebar_tree_get_wrapper_at_path (self, path); -#line 1165 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp0_; -#line 1166 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = wrapper; -#line 1166 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp1_ == NULL) { -#line 1167 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 1167 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1167 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 7108 "Tree.c" - } -#line 1169 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = wrapper; -#line 1169 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = _tmp2_->entry; -#line 1169 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, SIDEBAR_TYPE_DESTROYABLE_ENTRY) ? ((SidebarDestroyableEntry*) _tmp3_) : NULL); -#line 1169 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - destroyable = _tmp4_; -#line 1170 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = destroyable; -#line 1170 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp5_ == NULL) { -#line 1171 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 1171 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (destroyable); -#line 1171 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1171 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 7130 "Tree.c" - } -#line 1173 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = destroyable; -#line 1173 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_destroyable_entry_destroy_source (_tmp6_); -#line 1175 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = TRUE; -#line 1175 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (destroyable); -#line 1175 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 1175 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 7144 "Tree.c" -} - - -static void -_sidebar_tree_on_editing_done_gtk_cell_editable_editing_done (GtkCellEditable* _sender, - gpointer self) -{ -#line 1181 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_on_editing_done ((SidebarTree*) self); -#line 7154 "Tree.c" -} - - -static gboolean -_sidebar_tree_on_editing_focus_out_gtk_widget_focus_out_event (GtkWidget* _sender, - GdkEventFocus* event, - gpointer self) -{ - gboolean result; - result = sidebar_tree_on_editing_focus_out ((SidebarTree*) self, event); -#line 1182 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 7167 "Tree.c" -} - - -static void -sidebar_tree_on_editing_started (SidebarTree* self, - GtkCellEditable* editable, - const gchar* path) -{ -#line 1178 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 1178 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (GTK_IS_CELL_EDITABLE (editable)); -#line 1178 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (path != NULL); -#line 1179 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (G_TYPE_CHECK_INSTANCE_TYPE (editable, gtk_entry_get_type ())) { -#line 7184 "Tree.c" - GtkEntry* _tmp0_; - GtkEntry* _tmp1_; - GtkEntry* _tmp2_; - GtkEntry* _tmp3_; -#line 1180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (editable, gtk_entry_get_type (), GtkEntry)); -#line 1180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (self->priv->text_entry); -#line 1180 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->text_entry = _tmp0_; -#line 1181 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = self->priv->text_entry; -#line 1181 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_cell_editable_get_type (), GtkCellEditable), "editing-done", (GCallback) _sidebar_tree_on_editing_done_gtk_cell_editable_editing_done, self, 0); -#line 1182 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = self->priv->text_entry; -#line 1182 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget), "focus-out-event", (GCallback) _sidebar_tree_on_editing_focus_out_gtk_widget_focus_out_event, self, 0); -#line 1183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = self->priv->text_entry; -#line 1183 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_set (_tmp3_, "editable", TRUE, NULL); -#line 7207 "Tree.c" - } -} - - -static void -sidebar_tree_on_editing_canceled (SidebarTree* self) -{ - GtkEntry* _tmp0_; - GtkEntry* _tmp1_; - guint _tmp2_; - GtkEntry* _tmp3_; - guint _tmp4_; -#line 1187 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 1188 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->priv->text_entry; -#line 1188 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_set (_tmp0_, "editable", FALSE, NULL); -#line 1190 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = self->priv->text_entry; -#line 1190 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("editing-done", gtk_cell_editable_get_type (), &_tmp2_, NULL, FALSE); -#line 1190 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_cell_editable_get_type (), GtkCellEditable), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _sidebar_tree_on_editing_done_gtk_cell_editable_editing_done, self); -#line 1191 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = self->priv->text_entry; -#line 1191 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("focus-out-event", gtk_widget_get_type (), &_tmp4_, NULL, FALSE); -#line 1191 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp4_, 0, NULL, (GCallback) _sidebar_tree_on_editing_focus_out_gtk_widget_focus_out_event, self); -#line 7238 "Tree.c" -} - - -static void -sidebar_tree_on_editing_done (SidebarTree* self) -{ - GtkEntry* _tmp0_; - SidebarTreeEntryWrapper* wrapper = NULL; - GtkTreePath* _tmp1_; - GtkTreePath* _tmp2_; - SidebarTreeEntryWrapper* _tmp3_; - SidebarTreeEntryWrapper* _tmp4_; - SidebarTreeEntryWrapper* _tmp5_; - GtkEntry* _tmp13_; - guint _tmp14_; - GtkEntry* _tmp15_; - guint _tmp16_; -#line 1194 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 1195 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->priv->text_entry; -#line 1195 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_set (_tmp0_, "editable", FALSE, NULL); -#line 1197 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = sidebar_tree_get_current_path (self); -#line 1197 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = _tmp1_; -#line 1197 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = sidebar_tree_get_wrapper_at_path (self, _tmp2_); -#line 1197 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _tmp3_; -#line 1197 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (_tmp2_); -#line 1197 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - wrapper = _tmp4_; -#line 1198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = wrapper; -#line 1198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp5_ != NULL) { -#line 7278 "Tree.c" - SidebarRenameableEntry* renameable = NULL; - SidebarTreeEntryWrapper* _tmp6_; - SidebarEntry* _tmp7_; - SidebarRenameableEntry* _tmp8_; - SidebarRenameableEntry* _tmp9_; -#line 1199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = wrapper; -#line 1199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp7_ = _tmp6_->entry; -#line 1199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, SIDEBAR_TYPE_RENAMEABLE_ENTRY) ? ((SidebarRenameableEntry*) _tmp7_) : NULL); -#line 1199 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - renameable = _tmp8_; -#line 1200 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp9_ = renameable; -#line 1200 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (_tmp9_ != NULL) { -#line 7296 "Tree.c" - SidebarRenameableEntry* _tmp10_; - GtkEntry* _tmp11_; - const gchar* _tmp12_; -#line 1201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp10_ = renameable; -#line 1201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp11_ = self->priv->text_entry; -#line 1201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp12_ = gtk_entry_get_text (_tmp11_); -#line 1201 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_renameable_entry_rename (_tmp10_, _tmp12_); -#line 7308 "Tree.c" - } -#line 1198 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (renameable); -#line 7312 "Tree.c" - } -#line 1204 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp13_ = self->priv->text_entry; -#line 1204 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("editing-done", gtk_cell_editable_get_type (), &_tmp14_, NULL, FALSE); -#line 1204 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, gtk_cell_editable_get_type (), GtkCellEditable), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _sidebar_tree_on_editing_done_gtk_cell_editable_editing_done, self); -#line 1205 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp15_ = self->priv->text_entry; -#line 1205 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("focus-out-event", gtk_widget_get_type (), &_tmp16_, NULL, FALSE); -#line 1205 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_widget_get_type (), GtkWidget), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp16_, 0, NULL, (GCallback) _sidebar_tree_on_editing_focus_out_gtk_widget_focus_out_event, self); -#line 1194 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (wrapper); -#line 7328 "Tree.c" -} - - -static gboolean -sidebar_tree_on_editing_focus_out (SidebarTree* self, - GdkEventFocus* event) -{ - gboolean result = FALSE; -#line 1208 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_TREE (self), FALSE); -#line 1208 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (event != NULL, FALSE); -#line 1212 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = FALSE; -#line 1212 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 7345 "Tree.c" -} - - -static void -sidebar_tree_on_new_search (SidebarTree* self) -{ - SavedSearchDialog* _tmp0_; - SavedSearchDialog* _tmp1_; -#line 1215 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 1216 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = saved_search_dialog_new (); -#line 1216 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_object_ref_sink (_tmp0_); -#line 1216 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = _tmp0_; -#line 1216 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - saved_search_dialog_show (_tmp1_); -#line 1216 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_tmp1_); -#line 7366 "Tree.c" -} - - -static void -sidebar_tree_on_new_tag (SidebarTree* self) -{ - NewRootTagCommand* creation_command = NULL; - NewRootTagCommand* _tmp0_; - CommandManager* _tmp1_; - CommandManager* _tmp2_; - LibraryWindow* _tmp3_; - LibraryWindow* _tmp4_; - Tag* _tmp5_; - Tag* _tmp6_; -#line 1219 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_IS_TREE (self)); -#line 1220 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = new_root_tag_command_new (); -#line 1220 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - creation_command = _tmp0_; -#line 1221 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = app_window_get_command_manager (); -#line 1221 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = _tmp1_; -#line 1221 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - command_manager_execute (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (creation_command, TYPE_COMMAND, Command)); -#line 1221 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _command_manager_unref0 (_tmp2_); -#line 1222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = library_window_get_app (); -#line 1222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp4_ = _tmp3_; -#line 1222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = new_root_tag_command_get_created_tag (creation_command); -#line 1222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = _tmp5_; -#line 1222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - library_window_rename_tag_in_sidebar (_tmp4_, _tmp6_); -#line 1222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_tmp6_); -#line 1222 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (_tmp4_); -#line 1219 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (creation_command); -#line 7411 "Tree.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_BOOLEAN (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_BOOLEAN) (gpointer data1, gpointer arg_1, gboolean arg_2, gpointer data2); - register GMarshalFunc_VOID__OBJECT_BOOLEAN callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (n_param_values == 3); -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - data1 = closure->data; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - data2 = param_values->data[0].v_pointer; -#line 7437 "Tree.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - data1 = param_values->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - data2 = closure->data; -#line 7443 "Tree.c" - } -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - callback = (GMarshalFunc_VOID__OBJECT_BOOLEAN) (marshal_data ? marshal_data : cc->callback); -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_boolean (param_values + 2), data2); -#line 7449 "Tree.c" -} - - -static void -g_cclosure_user_marshal_VOID__OBJECT_OBJECT (GClosure * closure, - GValue * return_value, - guint n_param_values, - const GValue * param_values, - gpointer invocation_hint, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer data2); - register GMarshalFunc_VOID__OBJECT_OBJECT callback; - register GCClosure * cc; - register gpointer data1; - register gpointer data2; - cc = (GCClosure *) closure; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (n_param_values == 3); -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - if (G_CCLOSURE_SWAP_DATA (closure)) { -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - data1 = closure->data; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - data2 = param_values->data[0].v_pointer; -#line 7475 "Tree.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - data1 = param_values->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - data2 = closure->data; -#line 7481 "Tree.c" - } -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback); -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - callback (data1, g_value_get_object (param_values + 1), g_value_get_object (param_values + 2), data2); -#line 7487 "Tree.c" -} - - -static SidebarTreeEntryWrapper* -sidebar_tree_entry_wrapper_construct (GType object_type, - GtkTreeModel* model, - SidebarEntry* entry, - GtkTreePath* path) -{ - SidebarTreeEntryWrapper * self = NULL; - SidebarEntry* _tmp0_; - GtkTreeRowReference* _tmp1_; -#line 19 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (GTK_IS_TREE_MODEL (model), NULL); -#line 19 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), NULL); -#line 19 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (path != NULL, NULL); -#line 19 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self = (SidebarTreeEntryWrapper*) g_object_new (object_type, NULL); -#line 20 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = _g_object_ref0 (entry); -#line 20 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (self->entry); -#line 20 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->entry = _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = gtk_tree_row_reference_new (model, path); -#line 21 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreeRowReference_free0 (self->row); -#line 21 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->row = _tmp1_; -#line 19 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return self; -#line 7522 "Tree.c" -} - - -static SidebarTreeEntryWrapper* -sidebar_tree_entry_wrapper_new (GtkTreeModel* model, - SidebarEntry* entry, - GtkTreePath* path) -{ -#line 19 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return sidebar_tree_entry_wrapper_construct (SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, model, entry, path); -#line 7533 "Tree.c" -} - - -static GtkTreePath* -sidebar_tree_entry_wrapper_get_path (SidebarTreeEntryWrapper* self) -{ - GtkTreePath* result = NULL; - GtkTreeRowReference* _tmp0_; - GtkTreePath* _tmp1_; -#line 24 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_TREE_IS_ENTRY_WRAPPER (self), NULL); -#line 25 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->row; -#line 25 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = gtk_tree_row_reference_get_path (_tmp0_); -#line 25 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - result = _tmp1_; -#line 25 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return result; -#line 7553 "Tree.c" -} - - -static void -sidebar_tree_entry_wrapper_get_iter (SidebarTreeEntryWrapper* self, - GtkTreeIter* result) -{ - GtkTreeIter iter = {0}; - gboolean valid = FALSE; - GtkTreeRowReference* _tmp0_; - GtkTreeModel* _tmp1_; - GtkTreePath* _tmp2_; - GtkTreePath* _tmp3_; - GtkTreeIter _tmp4_ = {0}; - gboolean _tmp5_; - gboolean _tmp6_; -#line 28 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_if_fail (SIDEBAR_TREE_IS_ENTRY_WRAPPER (self)); -#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->row; -#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = gtk_tree_row_reference_get_model (_tmp0_); -#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = sidebar_tree_entry_wrapper_get_path (self); -#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = _tmp2_; -#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp5_ = gtk_tree_model_get_iter (_tmp1_, &_tmp4_, _tmp3_); -#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - iter = _tmp4_; -#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp6_ = _tmp5_; -#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreePath_free0 (_tmp3_); -#line 30 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - valid = _tmp6_; -#line 31 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _vala_assert (valid, "valid"); -#line 33 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - *result = iter; -#line 33 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return; -#line 7596 "Tree.c" -} - - -static void -sidebar_tree_entry_wrapper_class_init (SidebarTreeEntryWrapperClass * klass) -{ -#line 15 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_entry_wrapper_parent_class = g_type_class_peek_parent (klass); -#line 15 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - G_OBJECT_CLASS (klass)->finalize = sidebar_tree_entry_wrapper_finalize; -#line 7607 "Tree.c" -} - - -static void -sidebar_tree_entry_wrapper_instance_init (SidebarTreeEntryWrapper * self) -{ -} - - -static void -sidebar_tree_entry_wrapper_finalize (GObject * obj) -{ - SidebarTreeEntryWrapper * self; -#line 15 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, SidebarTreeEntryWrapper); -#line 16 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (self->entry); -#line 17 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreeRowReference_free0 (self->row); -#line 15 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - G_OBJECT_CLASS (sidebar_tree_entry_wrapper_parent_class)->finalize (obj); -#line 7629 "Tree.c" -} - - -static GType -sidebar_tree_entry_wrapper_get_type (void) -{ - static volatile gsize sidebar_tree_entry_wrapper_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_tree_entry_wrapper_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarTreeEntryWrapperClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_tree_entry_wrapper_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarTreeEntryWrapper), 0, (GInstanceInitFunc) sidebar_tree_entry_wrapper_instance_init, NULL }; - GType sidebar_tree_entry_wrapper_type_id; - sidebar_tree_entry_wrapper_type_id = g_type_register_static (G_TYPE_OBJECT, "SidebarTreeEntryWrapper", &g_define_type_info, 0); - g_once_init_leave (&sidebar_tree_entry_wrapper_type_id__volatile, sidebar_tree_entry_wrapper_type_id); - } - return sidebar_tree_entry_wrapper_type_id__volatile; -} - - -static SidebarTreeRootWrapper* -sidebar_tree_root_wrapper_construct (GType object_type, - GtkTreeModel* model, - SidebarEntry* entry, - GtkTreePath* path, - gint root_position) -{ - SidebarTreeRootWrapper * self = NULL; -#line 40 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (GTK_IS_TREE_MODEL (model), NULL); -#line 40 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (entry), NULL); -#line 40 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_return_val_if_fail (path != NULL, NULL); -#line 41 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self = (SidebarTreeRootWrapper*) sidebar_tree_entry_wrapper_construct (object_type, model, entry, path); -#line 43 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->root_position = root_position; -#line 40 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return self; -#line 7667 "Tree.c" -} - - -static SidebarTreeRootWrapper* -sidebar_tree_root_wrapper_new (GtkTreeModel* model, - SidebarEntry* entry, - GtkTreePath* path, - gint root_position) -{ -#line 40 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - return sidebar_tree_root_wrapper_construct (SIDEBAR_TREE_TYPE_ROOT_WRAPPER, model, entry, path, root_position); -#line 7679 "Tree.c" -} - - -static void -sidebar_tree_root_wrapper_class_init (SidebarTreeRootWrapperClass * klass) -{ -#line 37 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_root_wrapper_parent_class = g_type_class_peek_parent (klass); -#line 37 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - G_OBJECT_CLASS (klass)->finalize = sidebar_tree_root_wrapper_finalize; -#line 7690 "Tree.c" -} - - -static void -sidebar_tree_root_wrapper_instance_init (SidebarTreeRootWrapper * self) -{ -} - - -static void -sidebar_tree_root_wrapper_finalize (GObject * obj) -{ - SidebarTreeRootWrapper * self; -#line 37 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SIDEBAR_TREE_TYPE_ROOT_WRAPPER, SidebarTreeRootWrapper); -#line 37 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - G_OBJECT_CLASS (sidebar_tree_root_wrapper_parent_class)->finalize (obj); -#line 7708 "Tree.c" -} - - -static GType -sidebar_tree_root_wrapper_get_type (void) -{ - static volatile gsize sidebar_tree_root_wrapper_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_tree_root_wrapper_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarTreeRootWrapperClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_tree_root_wrapper_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarTreeRootWrapper), 0, (GInstanceInitFunc) sidebar_tree_root_wrapper_instance_init, NULL }; - GType sidebar_tree_root_wrapper_type_id; - sidebar_tree_root_wrapper_type_id = g_type_register_static (SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, "SidebarTreeRootWrapper", &g_define_type_info, 0); - g_once_init_leave (&sidebar_tree_root_wrapper_type_id__volatile, sidebar_tree_root_wrapper_type_id); - } - return sidebar_tree_root_wrapper_type_id__volatile; -} - - -static void -sidebar_tree_class_init (SidebarTreeClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_type_class_add_private (klass, sizeof (SidebarTreePrivate)); -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - ((SidebarTreeClass *) klass)->accept_cursor_changed = (gboolean (*) (SidebarTree *)) sidebar_tree_real_accept_cursor_changed; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - ((GtkTreeViewClass *) klass)->cursor_changed = (void (*) (GtkTreeView *)) sidebar_tree_real_cursor_changed; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - ((GtkWidgetClass *) klass)->button_press_event = (gboolean (*) (GtkWidget *, GdkEventButton*)) sidebar_tree_real_button_press_event; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - ((GtkWidgetClass *) klass)->key_press_event = (gboolean (*) (GtkWidget *, GdkEventKey*)) sidebar_tree_real_key_press_event; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - ((GtkWidgetClass *) klass)->drag_data_get = (void (*) (GtkWidget *, GdkDragContext*, GtkSelectionData*, guint, guint)) sidebar_tree_real_drag_data_get; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - ((GtkWidgetClass *) klass)->drag_data_received = (void (*) (GtkWidget *, GdkDragContext*, gint, gint, GtkSelectionData*, guint, guint)) sidebar_tree_real_drag_data_received; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - ((GtkWidgetClass *) klass)->drag_motion = (gboolean (*) (GtkWidget *, GdkDragContext*, gint, gint, guint)) sidebar_tree_real_drag_motion; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - G_OBJECT_CLASS (klass)->finalize = sidebar_tree_finalize; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_signals[SIDEBAR_TREE_ENTRY_SELECTED_SIGNAL] = g_signal_new ("entry-selected", SIDEBAR_TYPE_TREE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, SIDEBAR_TYPE_SELECTABLE_ENTRY); -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_signals[SIDEBAR_TREE_SELECTED_ENTRY_REMOVED_SIGNAL] = g_signal_new ("selected-entry-removed", SIDEBAR_TYPE_TREE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, SIDEBAR_TYPE_SELECTABLE_ENTRY); -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_signals[SIDEBAR_TREE_BRANCH_ADDED_SIGNAL] = g_signal_new ("branch-added", SIDEBAR_TYPE_TREE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, SIDEBAR_TYPE_BRANCH); -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_signals[SIDEBAR_TREE_BRANCH_REMOVED_SIGNAL] = g_signal_new ("branch-removed", SIDEBAR_TYPE_TREE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, SIDEBAR_TYPE_BRANCH); -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_signals[SIDEBAR_TREE_BRANCH_SHOWN_SIGNAL] = g_signal_new ("branch-shown", SIDEBAR_TYPE_TREE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_BOOLEAN, G_TYPE_NONE, 2, SIDEBAR_TYPE_BRANCH, G_TYPE_BOOLEAN); -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_signals[SIDEBAR_TREE_PAGE_CREATED_SIGNAL] = g_signal_new ("page-created", SIDEBAR_TYPE_TREE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, TYPE_PAGE); -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - sidebar_tree_signals[SIDEBAR_TREE_DESTROYING_PAGE_SIGNAL] = g_signal_new ("destroying-page", SIDEBAR_TYPE_TREE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__OBJECT_OBJECT, G_TYPE_NONE, 2, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, TYPE_PAGE); -#line 7763 "Tree.c" -} - - -static void -sidebar_tree_instance_init (SidebarTree * self) -{ - GtkTreeStore* _tmp0_; - GtkBuilder* _tmp1_; - GeeHashMap* _tmp2_; - GeeHashMap* _tmp3_; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv = SIDEBAR_TREE_GET_PRIVATE (self); -#line 55 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = gtk_tree_store_new ((gint) SIDEBAR_TREE_COLUMNS_N_COLUMNS, G_TYPE_STRING, G_TYPE_STRING, SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, g_icon_get_type ()); -#line 55 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->store = _tmp0_; -#line 62 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp1_ = gtk_builder_new (); -#line 62 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->builder = _tmp1_; -#line 65 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->text_entry = NULL; -#line 66 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = gee_hash_map_new (SIDEBAR_TYPE_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, SIDEBAR_TREE_TYPE_ENTRY_WRAPPER, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 66 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->entry_map = _tmp2_; -#line 68 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp3_ = gee_hash_map_new (SIDEBAR_TYPE_BRANCH, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, G_TYPE_INT, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 68 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->branches = _tmp3_; -#line 69 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->editing_disabled = 0; -#line 70 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->mask_entry_selected_signal = FALSE; -#line 71 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->selected_wrapper = NULL; -#line 72 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->default_context_menu = NULL; -#line 73 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->expander_called_manually = FALSE; -#line 74 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->expander_special_count = 0; -#line 75 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->is_internal_drag_in_progress = FALSE; -#line 76 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->internal_drag_source_entry = NULL; -#line 77 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self->priv->old_path_ref = NULL; -#line 7812 "Tree.c" -} - - -static void -sidebar_tree_finalize (GObject * obj) -{ - SidebarTree * self; - GtkCellRendererText* _tmp0_; - guint _tmp1_; - GtkCellRendererText* _tmp2_; - guint _tmp3_; -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SIDEBAR_TYPE_TREE, SidebarTree); -#line 155 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp0_ = self->priv->text_renderer; -#line 155 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("editing-canceled", gtk_cell_renderer_get_type (), &_tmp1_, NULL, FALSE); -#line 155 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_cell_renderer_get_type (), GtkCellRenderer), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _sidebar_tree_on_editing_canceled_gtk_cell_renderer_editing_canceled, self); -#line 156 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _tmp2_ = self->priv->text_renderer; -#line 156 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_parse_name ("editing-started", gtk_cell_renderer_get_type (), &_tmp3_, NULL, FALSE); -#line 156 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_cell_renderer_get_type (), GtkCellRenderer), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _sidebar_tree_on_editing_started_gtk_cell_renderer_editing_started, self); -#line 55 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (self->priv->store); -#line 62 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (self->priv->builder); -#line 63 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (self->priv->text_renderer); -#line 65 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (self->priv->text_entry); -#line 66 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (self->priv->entry_map); -#line 68 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (self->priv->branches); -#line 72 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (self->priv->default_context_menu); -#line 76 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - _g_object_unref0 (self->priv->internal_drag_source_entry); -#line 77 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - __vala_GtkTreeRowReference_free0 (self->priv->old_path_ref); -#line 7 "/home/jens/Source/shotwell/src/sidebar/Tree.vala" - G_OBJECT_CLASS (sidebar_tree_parent_class)->finalize (obj); -#line 7858 "Tree.c" -} - - -GType -sidebar_tree_get_type (void) -{ - static volatile gsize sidebar_tree_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_tree_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarTreeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_tree_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarTree), 0, (GInstanceInitFunc) sidebar_tree_instance_init, NULL }; - GType sidebar_tree_type_id; - sidebar_tree_type_id = g_type_register_static (gtk_tree_view_get_type (), "SidebarTree", &g_define_type_info, 0); - g_once_init_leave (&sidebar_tree_type_id__volatile, sidebar_tree_type_id); - } - return sidebar_tree_type_id__volatile; -} - - - diff --git a/src/sidebar/Tree.vala b/src/sidebar/Tree.vala index c707c63..ea039ea 100644 --- a/src/sidebar/Tree.vala +++ b/src/sidebar/Tree.vala @@ -101,6 +101,7 @@ public class Sidebar.Tree : Gtk.TreeView { text_column.pack_start (icon_renderer, false); text_column.add_attribute(icon_renderer, "gicon", Columns.ICON); text_column.set_cell_data_func(icon_renderer, icon_renderer_function); + text_column.set_spacing(6); text_renderer = new Gtk.CellRendererText(); text_renderer.ellipsize = Pango.EllipsizeMode.END; text_renderer.editing_canceled.connect(on_editing_canceled); @@ -811,8 +812,8 @@ public class Sidebar.Tree : Gtk.TreeView { private Gtk.TreePath? get_path_from_event(Gdk.EventButton event) { int x, y; Gdk.ModifierType mask; - event.window.get_device_position(Gdk.Display.get_default().get_device_manager(). - get_client_pointer(), out x, out y, out mask); + var seat = event.get_seat(); + event.window.get_device_position(seat.get_pointer(), out x, out y, out mask); int cell_x, cell_y; Gtk.TreePath path; @@ -863,16 +864,13 @@ public class Sidebar.Tree : Gtk.TreeView { context_menu.attach_to_widget (this, null); } - if (event != null) - context_menu.popup(null, null, null, event.button, event.time); - else - context_menu.popup(null, null, null, 0, Gtk.get_current_event_time()); - + context_menu.popup_at_pointer(event); + return true; } private bool popup_default_context_menu(Gdk.EventButton event) { - default_context_menu.popup(null, null, null, event.button, event.time); + default_context_menu.popup_at_pointer(event); return true; } diff --git a/src/sidebar/common.c b/src/sidebar/common.c deleted file mode 100644 index 0940f40..0000000 --- a/src/sidebar/common.c +++ /dev/null @@ -1,1307 +0,0 @@ -/* common.c generated by valac 0.40.4, the Vala compiler - * generated from common.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/* A simple grouping Entry that is only expandable*/ - - -#include -#include -#include -#include -#include -#include - - -#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ()) -#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry)) -#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY)) -#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface)) - -typedef struct _SidebarEntry SidebarEntry; -typedef struct _SidebarEntryIface SidebarEntryIface; - -#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ()) -#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree)) -#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass)) -#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass)) - -typedef struct _SidebarTree SidebarTree; -typedef struct _SidebarTreeClass SidebarTreeClass; - -#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ()) -#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry)) -#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY)) -#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface)) - -typedef struct _SidebarExpandableEntry SidebarExpandableEntry; -typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface; - -#define SIDEBAR_TYPE_RENAMEABLE_ENTRY (sidebar_renameable_entry_get_type ()) -#define SIDEBAR_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry)) -#define SIDEBAR_IS_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY)) -#define SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntryIface)) - -typedef struct _SidebarRenameableEntry SidebarRenameableEntry; -typedef struct _SidebarRenameableEntryIface SidebarRenameableEntryIface; - -#define SIDEBAR_TYPE_GROUPING (sidebar_grouping_get_type ()) -#define SIDEBAR_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_GROUPING, SidebarGrouping)) -#define SIDEBAR_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass)) -#define SIDEBAR_IS_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_GROUPING)) -#define SIDEBAR_IS_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_GROUPING)) -#define SIDEBAR_GROUPING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass)) - -typedef struct _SidebarGrouping SidebarGrouping; -typedef struct _SidebarGroupingClass SidebarGroupingClass; -typedef struct _SidebarGroupingPrivate SidebarGroupingPrivate; -enum { - SIDEBAR_GROUPING_0_PROPERTY, - SIDEBAR_GROUPING_NUM_PROPERTIES -}; -static GParamSpec* sidebar_grouping_properties[SIDEBAR_GROUPING_NUM_PROPERTIES]; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ()) -#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry)) -#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY)) -#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface)) - -typedef struct _SidebarSelectableEntry SidebarSelectableEntry; -typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface; - -#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ()) -#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)) -#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE)) -#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface)) - -typedef struct _SidebarPageRepresentative SidebarPageRepresentative; -typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; - -#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ()) -#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable)) -#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE)) -#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface)) - -typedef struct _SidebarContextable SidebarContextable; -typedef struct _SidebarContextableIface SidebarContextableIface; - -#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ()) -#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) - -typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry; -typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass; -typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate; -enum { - SIDEBAR_SIMPLE_PAGE_ENTRY_0_PROPERTY, - SIDEBAR_SIMPLE_PAGE_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* sidebar_simple_page_entry_properties[SIDEBAR_SIMPLE_PAGE_ENTRY_NUM_PROPERTIES]; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ()) -#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch)) -#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) -#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) - -typedef struct _SidebarBranch SidebarBranch; -typedef struct _SidebarBranchClass SidebarBranchClass; -typedef struct _SidebarBranchPrivate SidebarBranchPrivate; - -#define SIDEBAR_TYPE_ROOT_ONLY_BRANCH (sidebar_root_only_branch_get_type ()) -#define SIDEBAR_ROOT_ONLY_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ROOT_ONLY_BRANCH, SidebarRootOnlyBranch)) -#define SIDEBAR_ROOT_ONLY_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_ROOT_ONLY_BRANCH, SidebarRootOnlyBranchClass)) -#define SIDEBAR_IS_ROOT_ONLY_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ROOT_ONLY_BRANCH)) -#define SIDEBAR_IS_ROOT_ONLY_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_ROOT_ONLY_BRANCH)) -#define SIDEBAR_ROOT_ONLY_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_ROOT_ONLY_BRANCH, SidebarRootOnlyBranchClass)) - -typedef struct _SidebarRootOnlyBranch SidebarRootOnlyBranch; -typedef struct _SidebarRootOnlyBranchClass SidebarRootOnlyBranchClass; -typedef struct _SidebarRootOnlyBranchPrivate SidebarRootOnlyBranchPrivate; -enum { - SIDEBAR_ROOT_ONLY_BRANCH_0_PROPERTY, - SIDEBAR_ROOT_ONLY_BRANCH_NUM_PROPERTIES -}; -static GParamSpec* sidebar_root_only_branch_properties[SIDEBAR_ROOT_ONLY_BRANCH_NUM_PROPERTIES]; - -#define SIDEBAR_BRANCH_TYPE_OPTIONS (sidebar_branch_options_get_type ()) - -#define SIDEBAR_TYPE_EMPHASIZABLE_ENTRY (sidebar_emphasizable_entry_get_type ()) -#define SIDEBAR_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntry)) -#define SIDEBAR_IS_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY)) -#define SIDEBAR_EMPHASIZABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntryIface)) - -typedef struct _SidebarEmphasizableEntry SidebarEmphasizableEntry; -typedef struct _SidebarEmphasizableEntryIface SidebarEmphasizableEntryIface; - -#define SIDEBAR_TYPE_HEADER (sidebar_header_get_type ()) -#define SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_HEADER, SidebarHeader)) -#define SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_HEADER, SidebarHeaderClass)) -#define SIDEBAR_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_HEADER)) -#define SIDEBAR_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_HEADER)) -#define SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_HEADER, SidebarHeaderClass)) - -typedef struct _SidebarHeader SidebarHeader; -typedef struct _SidebarHeaderClass SidebarHeaderClass; -typedef struct _SidebarHeaderPrivate SidebarHeaderPrivate; -enum { - SIDEBAR_HEADER_0_PROPERTY, - SIDEBAR_HEADER_NUM_PROPERTIES -}; -static GParamSpec* sidebar_header_properties[SIDEBAR_HEADER_NUM_PROPERTIES]; - -struct _SidebarEntryIface { - GTypeInterface parent_iface; - gchar* (*get_sidebar_name) (SidebarEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarEntry* self); - gchar* (*get_sidebar_icon) (SidebarEntry* self); - gchar* (*to_string) (SidebarEntry* self); - void (*grafted) (SidebarEntry* self, SidebarTree* tree); - void (*pruned) (SidebarEntry* self, SidebarTree* tree); -}; - -struct _SidebarExpandableEntryIface { - GTypeInterface parent_iface; - gboolean (*expand_on_select) (SidebarExpandableEntry* self); -}; - -struct _SidebarRenameableEntryIface { - GTypeInterface parent_iface; - void (*rename) (SidebarRenameableEntry* self, const gchar* new_name); - gboolean (*is_user_renameable) (SidebarRenameableEntry* self); -}; - -struct _SidebarGrouping { - GObject parent_instance; - SidebarGroupingPrivate * priv; -}; - -struct _SidebarGroupingClass { - GObjectClass parent_class; -}; - -struct _SidebarGroupingPrivate { - gchar* name; - gchar* tooltip; - gchar* icon; -}; - -struct _SidebarSelectableEntryIface { - GTypeInterface parent_iface; -}; - -struct _SidebarPageRepresentativeIface { - GTypeInterface parent_iface; - gboolean (*has_page) (SidebarPageRepresentative* self); - Page* (*get_page) (SidebarPageRepresentative* self); -}; - -struct _SidebarContextableIface { - GTypeInterface parent_iface; - GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event); -}; - -struct _SidebarSimplePageEntry { - GObject parent_instance; - SidebarSimplePageEntryPrivate * priv; -}; - -struct _SidebarSimplePageEntryClass { - GObjectClass parent_class; - gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self); - gchar* (*to_string) (SidebarSimplePageEntry* self); - Page* (*create_page) (SidebarSimplePageEntry* self); -}; - -struct _SidebarSimplePageEntryPrivate { - Page* page; -}; - -struct _SidebarBranch { - GObject parent_instance; - SidebarBranchPrivate * priv; -}; - -struct _SidebarBranchClass { - GObjectClass parent_class; -}; - -struct _SidebarRootOnlyBranch { - SidebarBranch parent_instance; - SidebarRootOnlyBranchPrivate * priv; -}; - -struct _SidebarRootOnlyBranchClass { - SidebarBranchClass parent_class; -}; - -typedef enum { - SIDEBAR_BRANCH_OPTIONS_NONE = 0, - SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY = 1 << 0, - SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD = 1 << 1, - SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD = 1 << 2, - SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING = 1 << 3 -} SidebarBranchOptions; - -struct _SidebarEmphasizableEntryIface { - GTypeInterface parent_iface; - gboolean (*is_emphasized) (SidebarEmphasizableEntry* self); -}; - -struct _SidebarHeader { - SidebarGrouping parent_instance; - SidebarHeaderPrivate * priv; -}; - -struct _SidebarHeaderClass { - SidebarGroupingClass parent_class; -}; - -struct _SidebarHeaderPrivate { - gboolean emphasized; -}; - - -static gpointer sidebar_grouping_parent_class = NULL; -static SidebarEntryIface * sidebar_grouping_sidebar_entry_parent_iface = NULL; -static SidebarExpandableEntryIface * sidebar_grouping_sidebar_expandable_entry_parent_iface = NULL; -static SidebarRenameableEntryIface * sidebar_grouping_sidebar_renameable_entry_parent_iface = NULL; -static gpointer sidebar_simple_page_entry_parent_class = NULL; -static SidebarEntryIface * sidebar_simple_page_entry_sidebar_entry_parent_iface = NULL; -static SidebarSelectableEntryIface * sidebar_simple_page_entry_sidebar_selectable_entry_parent_iface = NULL; -static SidebarPageRepresentativeIface * sidebar_simple_page_entry_sidebar_page_representative_parent_iface = NULL; -static SidebarContextableIface * sidebar_simple_page_entry_sidebar_contextable_parent_iface = NULL; -static gpointer sidebar_root_only_branch_parent_class = NULL; -static gpointer sidebar_header_parent_class = NULL; -static SidebarEmphasizableEntryIface * sidebar_header_sidebar_emphasizable_entry_parent_iface = NULL; - -GType sidebar_tree_get_type (void) G_GNUC_CONST; -GType sidebar_entry_get_type (void) G_GNUC_CONST; -GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST; -GType sidebar_renameable_entry_get_type (void) G_GNUC_CONST; -GType sidebar_grouping_get_type (void) G_GNUC_CONST; -#define SIDEBAR_GROUPING_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SIDEBAR_TYPE_GROUPING, SidebarGroupingPrivate)) -SidebarGrouping* sidebar_grouping_new (const gchar* name, - const gchar* icon, - const gchar* tooltip); -SidebarGrouping* sidebar_grouping_construct (GType object_type, - const gchar* name, - const gchar* icon, - const gchar* tooltip); -static void sidebar_grouping_real_rename (SidebarRenameableEntry* base, - const gchar* name); -static gboolean sidebar_grouping_real_is_user_renameable (SidebarRenameableEntry* base); -static gchar* sidebar_grouping_real_get_sidebar_name (SidebarEntry* base); -static gchar* sidebar_grouping_real_get_sidebar_tooltip (SidebarEntry* base); -static gchar* sidebar_grouping_real_get_sidebar_icon (SidebarEntry* base); -static gchar* sidebar_grouping_real_to_string (SidebarEntry* base); -static gboolean sidebar_grouping_real_expand_on_select (SidebarExpandableEntry* base); -static void sidebar_grouping_finalize (GObject * obj); -GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType sidebar_page_representative_get_type (void) G_GNUC_CONST; -GType sidebar_contextable_get_type (void) G_GNUC_CONST; -GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST; -#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryPrivate)) -SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type); -gchar* sidebar_simple_page_entry_get_sidebar_name (SidebarSimplePageEntry* self); -static gchar* sidebar_simple_page_entry_real_get_sidebar_name (SidebarSimplePageEntry* self); -gchar* sidebar_simple_page_entry_get_sidebar_tooltip (SidebarSimplePageEntry* self); -static gchar* sidebar_simple_page_entry_real_get_sidebar_tooltip (SidebarSimplePageEntry* self); -gchar* sidebar_simple_page_entry_get_sidebar_icon (SidebarSimplePageEntry* self); -static gchar* sidebar_simple_page_entry_real_get_sidebar_icon (SidebarSimplePageEntry* self); -gchar* sidebar_simple_page_entry_to_string (SidebarSimplePageEntry* self); -static gchar* sidebar_simple_page_entry_real_to_string (SidebarSimplePageEntry* self); -Page* sidebar_simple_page_entry_create_page (SidebarSimplePageEntry* self); -static Page* sidebar_simple_page_entry_real_create_page (SidebarSimplePageEntry* self); -static gboolean sidebar_simple_page_entry_real_has_page (SidebarPageRepresentative* base); -static Page* sidebar_simple_page_entry_real_get_page (SidebarPageRepresentative* base); -static void sidebar_simple_page_entry_real_pruned (SidebarEntry* base, - SidebarTree* tree); -static GtkMenu* sidebar_simple_page_entry_real_get_sidebar_context_menu (SidebarContextable* base, - GdkEventButton* event); -Page* sidebar_page_representative_get_page (SidebarPageRepresentative* self); -GtkMenu* page_get_page_context_menu (Page* self); -static void sidebar_simple_page_entry_finalize (GObject * obj); -GType sidebar_branch_get_type (void) G_GNUC_CONST; -GType sidebar_root_only_branch_get_type (void) G_GNUC_CONST; -SidebarRootOnlyBranch* sidebar_root_only_branch_new (SidebarEntry* root); -SidebarRootOnlyBranch* sidebar_root_only_branch_construct (GType object_type, - SidebarEntry* root); -GType sidebar_branch_options_get_type (void) G_GNUC_CONST; -static gint sidebar_root_only_branch_null_comparator (SidebarEntry* a, - SidebarEntry* b); -static gint _sidebar_root_only_branch_null_comparator_gcompare_func (gconstpointer a, - gconstpointer b); -SidebarBranch* sidebar_branch_new (SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator); -SidebarBranch* sidebar_branch_construct (GType object_type, - SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator); -GType sidebar_emphasizable_entry_get_type (void) G_GNUC_CONST; -GType sidebar_header_get_type (void) G_GNUC_CONST; -#define SIDEBAR_HEADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SIDEBAR_TYPE_HEADER, SidebarHeaderPrivate)) -SidebarHeader* sidebar_header_new (const gchar* name, - const gchar* tooltip, - gboolean emphasized); -SidebarHeader* sidebar_header_construct (GType object_type, - const gchar* name, - const gchar* tooltip, - gboolean emphasized); -static gboolean sidebar_header_real_is_emphasized (SidebarEmphasizableEntry* base); -static void sidebar_header_finalize (GObject * obj); -GtkMenu* sidebar_contextable_get_sidebar_context_menu (SidebarContextable* self, - GdkEventButton* event); - - -SidebarGrouping* -sidebar_grouping_construct (GType object_type, - const gchar* name, - const gchar* icon, - const gchar* tooltip) -{ - SidebarGrouping * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 15 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 15 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = (SidebarGrouping*) g_object_new (object_type, NULL); -#line 16 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp0_ = g_strdup (name); -#line 16 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _g_free0 (self->priv->name); -#line 16 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self->priv->name = _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp1_ = g_strdup (icon); -#line 17 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _g_free0 (self->priv->icon); -#line 17 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self->priv->icon = _tmp1_; -#line 18 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp2_ = g_strdup (tooltip); -#line 18 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _g_free0 (self->priv->tooltip); -#line 18 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self->priv->tooltip = _tmp2_; -#line 15 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return self; -#line 420 "common.c" -} - - -SidebarGrouping* -sidebar_grouping_new (const gchar* name, - const gchar* icon, - const gchar* tooltip) -{ -#line 15 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return sidebar_grouping_construct (SIDEBAR_TYPE_GROUPING, name, icon, tooltip); -#line 431 "common.c" -} - - -static void -sidebar_grouping_real_rename (SidebarRenameableEntry* base, - const gchar* name) -{ - SidebarGrouping * self; - gchar* _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_GROUPING, SidebarGrouping); -#line 21 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_return_if_fail (name != NULL); -#line 22 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp0_ = g_strdup (name); -#line 22 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _g_free0 (self->priv->name); -#line 22 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self->priv->name = _tmp0_; -#line 23 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry), "sidebar-name-changed", name); -#line 453 "common.c" -} - - -static gboolean -sidebar_grouping_real_is_user_renameable (SidebarRenameableEntry* base) -{ - SidebarGrouping * self; - gboolean result = FALSE; -#line 26 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_GROUPING, SidebarGrouping); -#line 27 "/home/jens/Source/shotwell/src/sidebar/common.vala" - result = FALSE; -#line 27 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return result; -#line 468 "common.c" -} - - -static gchar* -sidebar_grouping_real_get_sidebar_name (SidebarEntry* base) -{ - SidebarGrouping * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 30 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_GROUPING, SidebarGrouping); -#line 31 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp0_ = self->priv->name; -#line 31 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 31 "/home/jens/Source/shotwell/src/sidebar/common.vala" - result = _tmp1_; -#line 31 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return result; -#line 489 "common.c" -} - - -static gchar* -sidebar_grouping_real_get_sidebar_tooltip (SidebarEntry* base) -{ - SidebarGrouping * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 34 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_GROUPING, SidebarGrouping); -#line 35 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp0_ = self->priv->tooltip; -#line 35 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 35 "/home/jens/Source/shotwell/src/sidebar/common.vala" - result = _tmp1_; -#line 35 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return result; -#line 510 "common.c" -} - - -static gchar* -sidebar_grouping_real_get_sidebar_icon (SidebarEntry* base) -{ - SidebarGrouping * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 38 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_GROUPING, SidebarGrouping); -#line 39 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp0_ = self->priv->icon; -#line 39 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 39 "/home/jens/Source/shotwell/src/sidebar/common.vala" - result = _tmp1_; -#line 39 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return result; -#line 531 "common.c" -} - - -static gchar* -sidebar_grouping_real_to_string (SidebarEntry* base) -{ - SidebarGrouping * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 42 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_GROUPING, SidebarGrouping); -#line 43 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp0_ = self->priv->name; -#line 43 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 43 "/home/jens/Source/shotwell/src/sidebar/common.vala" - result = _tmp1_; -#line 43 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return result; -#line 552 "common.c" -} - - -static gboolean -sidebar_grouping_real_expand_on_select (SidebarExpandableEntry* base) -{ - SidebarGrouping * self; - gboolean result = FALSE; -#line 46 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_GROUPING, SidebarGrouping); -#line 47 "/home/jens/Source/shotwell/src/sidebar/common.vala" - result = TRUE; -#line 47 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return result; -#line 567 "common.c" -} - - -static void -sidebar_grouping_class_init (SidebarGroupingClass * klass) -{ -#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala" - sidebar_grouping_parent_class = g_type_class_peek_parent (klass); -#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_type_class_add_private (klass, sizeof (SidebarGroupingPrivate)); -#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala" - G_OBJECT_CLASS (klass)->finalize = sidebar_grouping_finalize; -#line 580 "common.c" -} - - -static void -sidebar_grouping_sidebar_entry_interface_init (SidebarEntryIface * iface) -{ -#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala" - sidebar_grouping_sidebar_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala" - iface->get_sidebar_name = (gchar* (*) (SidebarEntry *)) sidebar_grouping_real_get_sidebar_name; -#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala" - iface->get_sidebar_tooltip = (gchar* (*) (SidebarEntry *)) sidebar_grouping_real_get_sidebar_tooltip; -#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala" - iface->get_sidebar_icon = (gchar* (*) (SidebarEntry *)) sidebar_grouping_real_get_sidebar_icon; -#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala" - iface->to_string = (gchar* (*) (SidebarEntry *)) sidebar_grouping_real_to_string; -#line 597 "common.c" -} - - -static void -sidebar_grouping_sidebar_expandable_entry_interface_init (SidebarExpandableEntryIface * iface) -{ -#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala" - sidebar_grouping_sidebar_expandable_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala" - iface->expand_on_select = (gboolean (*) (SidebarExpandableEntry *)) sidebar_grouping_real_expand_on_select; -#line 608 "common.c" -} - - -static void -sidebar_grouping_sidebar_renameable_entry_interface_init (SidebarRenameableEntryIface * iface) -{ -#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala" - sidebar_grouping_sidebar_renameable_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala" - iface->rename = (void (*) (SidebarRenameableEntry *, const gchar*)) sidebar_grouping_real_rename; -#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala" - iface->is_user_renameable = (gboolean (*) (SidebarRenameableEntry *)) sidebar_grouping_real_is_user_renameable; -#line 621 "common.c" -} - - -static void -sidebar_grouping_instance_init (SidebarGrouping * self) -{ -#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self->priv = SIDEBAR_GROUPING_GET_PRIVATE (self); -#line 630 "common.c" -} - - -static void -sidebar_grouping_finalize (GObject * obj) -{ - SidebarGrouping * self; -#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SIDEBAR_TYPE_GROUPING, SidebarGrouping); -#line 11 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _g_free0 (self->priv->name); -#line 12 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _g_free0 (self->priv->tooltip); -#line 13 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _g_free0 (self->priv->icon); -#line 8 "/home/jens/Source/shotwell/src/sidebar/common.vala" - G_OBJECT_CLASS (sidebar_grouping_parent_class)->finalize (obj); -#line 648 "common.c" -} - - -GType -sidebar_grouping_get_type (void) -{ - static volatile gsize sidebar_grouping_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_grouping_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarGroupingClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_grouping_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarGrouping), 0, (GInstanceInitFunc) sidebar_grouping_instance_init, NULL }; - static const GInterfaceInfo sidebar_entry_info = { (GInterfaceInitFunc) sidebar_grouping_sidebar_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo sidebar_expandable_entry_info = { (GInterfaceInitFunc) sidebar_grouping_sidebar_expandable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo sidebar_renameable_entry_info = { (GInterfaceInitFunc) sidebar_grouping_sidebar_renameable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType sidebar_grouping_type_id; - sidebar_grouping_type_id = g_type_register_static (G_TYPE_OBJECT, "SidebarGrouping", &g_define_type_info, 0); - g_type_add_interface_static (sidebar_grouping_type_id, SIDEBAR_TYPE_ENTRY, &sidebar_entry_info); - g_type_add_interface_static (sidebar_grouping_type_id, SIDEBAR_TYPE_EXPANDABLE_ENTRY, &sidebar_expandable_entry_info); - g_type_add_interface_static (sidebar_grouping_type_id, SIDEBAR_TYPE_RENAMEABLE_ENTRY, &sidebar_renameable_entry_info); - g_once_init_leave (&sidebar_grouping_type_id__volatile, sidebar_grouping_type_id); - } - return sidebar_grouping_type_id__volatile; -} - - -SidebarSimplePageEntry* -sidebar_simple_page_entry_construct (GType object_type) -{ - SidebarSimplePageEntry * self = NULL; -#line 58 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = (SidebarSimplePageEntry*) g_object_new (object_type, NULL); -#line 58 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return self; -#line 680 "common.c" -} - - -static gchar* -sidebar_simple_page_entry_real_get_sidebar_name (SidebarSimplePageEntry* self) -{ -#line 61 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_critical ("Type `%s' does not implement abstract method `sidebar_simple_page_entry_get_sidebar_name'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 61 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return NULL; -#line 691 "common.c" -} - - -gchar* -sidebar_simple_page_entry_get_sidebar_name (SidebarSimplePageEntry* self) -{ -#line 61 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_return_val_if_fail (SIDEBAR_IS_SIMPLE_PAGE_ENTRY (self), NULL); -#line 61 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS (self)->get_sidebar_name (self); -#line 702 "common.c" -} - - -static gchar* -sidebar_simple_page_entry_real_get_sidebar_tooltip (SidebarSimplePageEntry* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 64 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp0_ = sidebar_simple_page_entry_get_sidebar_name (self); -#line 64 "/home/jens/Source/shotwell/src/sidebar/common.vala" - result = _tmp0_; -#line 64 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return result; -#line 717 "common.c" -} - - -gchar* -sidebar_simple_page_entry_get_sidebar_tooltip (SidebarSimplePageEntry* self) -{ -#line 63 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_return_val_if_fail (SIDEBAR_IS_SIMPLE_PAGE_ENTRY (self), NULL); -#line 63 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS (self)->get_sidebar_tooltip (self); -#line 728 "common.c" -} - - -static gchar* -sidebar_simple_page_entry_real_get_sidebar_icon (SidebarSimplePageEntry* self) -{ -#line 67 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_critical ("Type `%s' does not implement abstract method `sidebar_simple_page_entry_get_sidebar_icon'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 67 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return NULL; -#line 739 "common.c" -} - - -gchar* -sidebar_simple_page_entry_get_sidebar_icon (SidebarSimplePageEntry* self) -{ -#line 67 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_return_val_if_fail (SIDEBAR_IS_SIMPLE_PAGE_ENTRY (self), NULL); -#line 67 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS (self)->get_sidebar_icon (self); -#line 750 "common.c" -} - - -static gchar* -sidebar_simple_page_entry_real_to_string (SidebarSimplePageEntry* self) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 70 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp0_ = sidebar_simple_page_entry_get_sidebar_name (self); -#line 70 "/home/jens/Source/shotwell/src/sidebar/common.vala" - result = _tmp0_; -#line 70 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return result; -#line 765 "common.c" -} - - -gchar* -sidebar_simple_page_entry_to_string (SidebarSimplePageEntry* self) -{ -#line 69 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_return_val_if_fail (SIDEBAR_IS_SIMPLE_PAGE_ENTRY (self), NULL); -#line 69 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS (self)->to_string (self); -#line 776 "common.c" -} - - -static Page* -sidebar_simple_page_entry_real_create_page (SidebarSimplePageEntry* self) -{ -#line 73 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_critical ("Type `%s' does not implement abstract method `sidebar_simple_page_entry_create_page'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 73 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return NULL; -#line 787 "common.c" -} - - -Page* -sidebar_simple_page_entry_create_page (SidebarSimplePageEntry* self) -{ -#line 73 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_return_val_if_fail (SIDEBAR_IS_SIMPLE_PAGE_ENTRY (self), NULL); -#line 73 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS (self)->create_page (self); -#line 798 "common.c" -} - - -static gboolean -sidebar_simple_page_entry_real_has_page (SidebarPageRepresentative* base) -{ - SidebarSimplePageEntry * self; - gboolean result = FALSE; - Page* _tmp0_; -#line 75 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry); -#line 76 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp0_ = self->priv->page; -#line 76 "/home/jens/Source/shotwell/src/sidebar/common.vala" - result = _tmp0_ != NULL; -#line 76 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return result; -#line 816 "common.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 85 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return self ? g_object_ref (self) : NULL; -#line 825 "common.c" -} - - -static Page* -sidebar_simple_page_entry_real_get_page (SidebarPageRepresentative* base) -{ - SidebarSimplePageEntry * self; - Page* result = NULL; - Page* _tmp0_; - Page* _tmp3_; - Page* _tmp4_; -#line 79 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry); -#line 80 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp0_ = self->priv->page; -#line 80 "/home/jens/Source/shotwell/src/sidebar/common.vala" - if (_tmp0_ == NULL) { -#line 843 "common.c" - Page* _tmp1_; - Page* _tmp2_; -#line 81 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp1_ = sidebar_simple_page_entry_create_page (self); -#line 81 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _g_object_unref0 (self->priv->page); -#line 81 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self->priv->page = _tmp1_; -#line 82 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp2_ = self->priv->page; -#line 82 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative), "page-created", _tmp2_); -#line 856 "common.c" - } -#line 85 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp3_ = self->priv->page; -#line 85 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp4_ = _g_object_ref0 (_tmp3_); -#line 85 "/home/jens/Source/shotwell/src/sidebar/common.vala" - result = _tmp4_; -#line 85 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return result; -#line 866 "common.c" -} - - -static void -sidebar_simple_page_entry_real_pruned (SidebarEntry* base, - SidebarTree* tree) -{ - SidebarSimplePageEntry * self; - Page* _tmp0_; - Page* _tmp1_; - Page* _tmp2_; -#line 88 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry); -#line 88 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_return_if_fail (SIDEBAR_IS_TREE (tree)); -#line 89 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp0_ = self->priv->page; -#line 89 "/home/jens/Source/shotwell/src/sidebar/common.vala" - if (_tmp0_ == NULL) { -#line 90 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return; -#line 888 "common.c" - } -#line 92 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp1_ = self->priv->page; -#line 92 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative), "destroying-page", _tmp1_); -#line 93 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp2_ = self->priv->page; -#line 93 "/home/jens/Source/shotwell/src/sidebar/common.vala" - gtk_widget_destroy (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_widget_get_type (), GtkWidget)); -#line 94 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _g_object_unref0 (self->priv->page); -#line 94 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self->priv->page = NULL; -#line 902 "common.c" -} - - -static GtkMenu* -sidebar_simple_page_entry_real_get_sidebar_context_menu (SidebarContextable* base, - GdkEventButton* event) -{ - SidebarSimplePageEntry * self; - GtkMenu* result = NULL; - Page* _tmp0_; - Page* _tmp1_; - GtkMenu* _tmp2_; - GtkMenu* _tmp3_; -#line 97 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry); -#line 98 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp0_ = sidebar_page_representative_get_page (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)); -#line 98 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp1_ = _tmp0_; -#line 98 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp2_ = page_get_page_context_menu (_tmp1_); -#line 98 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp3_ = _tmp2_; -#line 98 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _g_object_unref0 (_tmp1_); -#line 98 "/home/jens/Source/shotwell/src/sidebar/common.vala" - result = _tmp3_; -#line 98 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return result; -#line 932 "common.c" -} - - -static void -sidebar_simple_page_entry_class_init (SidebarSimplePageEntryClass * klass) -{ -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - sidebar_simple_page_entry_parent_class = g_type_class_peek_parent (klass); -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_type_class_add_private (klass, sizeof (SidebarSimplePageEntryPrivate)); -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) sidebar_simple_page_entry_real_get_sidebar_name; -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_tooltip = (gchar* (*) (SidebarSimplePageEntry *)) sidebar_simple_page_entry_real_get_sidebar_tooltip; -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) sidebar_simple_page_entry_real_get_sidebar_icon; -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - ((SidebarSimplePageEntryClass *) klass)->to_string = (gchar* (*) (SidebarSimplePageEntry *)) sidebar_simple_page_entry_real_to_string; -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) sidebar_simple_page_entry_real_create_page; -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - G_OBJECT_CLASS (klass)->finalize = sidebar_simple_page_entry_finalize; -#line 955 "common.c" -} - - -static void -sidebar_simple_page_entry_sidebar_entry_interface_init (SidebarEntryIface * iface) -{ -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - sidebar_simple_page_entry_sidebar_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - iface->get_sidebar_name = (gchar* (*) (SidebarEntry *)) sidebar_simple_page_entry_get_sidebar_name; -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - iface->get_sidebar_tooltip = (gchar* (*) (SidebarEntry *)) sidebar_simple_page_entry_get_sidebar_tooltip; -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - iface->get_sidebar_icon = (gchar* (*) (SidebarEntry *)) sidebar_simple_page_entry_get_sidebar_icon; -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - iface->to_string = (gchar* (*) (SidebarEntry *)) sidebar_simple_page_entry_to_string; -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - iface->pruned = (void (*) (SidebarEntry *, SidebarTree*)) sidebar_simple_page_entry_real_pruned; -#line 974 "common.c" -} - - -static void -sidebar_simple_page_entry_sidebar_selectable_entry_interface_init (SidebarSelectableEntryIface * iface) -{ -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - sidebar_simple_page_entry_sidebar_selectable_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 983 "common.c" -} - - -static void -sidebar_simple_page_entry_sidebar_page_representative_interface_init (SidebarPageRepresentativeIface * iface) -{ -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - sidebar_simple_page_entry_sidebar_page_representative_parent_iface = g_type_interface_peek_parent (iface); -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - iface->has_page = (gboolean (*) (SidebarPageRepresentative *)) sidebar_simple_page_entry_real_has_page; -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - iface->get_page = (Page* (*) (SidebarPageRepresentative *)) sidebar_simple_page_entry_real_get_page; -#line 996 "common.c" -} - - -static void -sidebar_simple_page_entry_sidebar_contextable_interface_init (SidebarContextableIface * iface) -{ -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - sidebar_simple_page_entry_sidebar_contextable_parent_iface = g_type_interface_peek_parent (iface); -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - iface->get_sidebar_context_menu = (GtkMenu* (*) (SidebarContextable *, GdkEventButton*)) sidebar_simple_page_entry_real_get_sidebar_context_menu; -#line 1007 "common.c" -} - - -static void -sidebar_simple_page_entry_instance_init (SidebarSimplePageEntry * self) -{ -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self->priv = SIDEBAR_SIMPLE_PAGE_ENTRY_GET_PRIVATE (self); -#line 56 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self->priv->page = NULL; -#line 1018 "common.c" -} - - -static void -sidebar_simple_page_entry_finalize (GObject * obj) -{ - SidebarSimplePageEntry * self; -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry); -#line 56 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _g_object_unref0 (self->priv->page); -#line 54 "/home/jens/Source/shotwell/src/sidebar/common.vala" - G_OBJECT_CLASS (sidebar_simple_page_entry_parent_class)->finalize (obj); -#line 1032 "common.c" -} - - -GType -sidebar_simple_page_entry_get_type (void) -{ - static volatile gsize sidebar_simple_page_entry_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_simple_page_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarSimplePageEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_simple_page_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarSimplePageEntry), 0, (GInstanceInitFunc) sidebar_simple_page_entry_instance_init, NULL }; - static const GInterfaceInfo sidebar_entry_info = { (GInterfaceInitFunc) sidebar_simple_page_entry_sidebar_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo sidebar_selectable_entry_info = { (GInterfaceInitFunc) sidebar_simple_page_entry_sidebar_selectable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo sidebar_page_representative_info = { (GInterfaceInitFunc) sidebar_simple_page_entry_sidebar_page_representative_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo sidebar_contextable_info = { (GInterfaceInitFunc) sidebar_simple_page_entry_sidebar_contextable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType sidebar_simple_page_entry_type_id; - sidebar_simple_page_entry_type_id = g_type_register_static (G_TYPE_OBJECT, "SidebarSimplePageEntry", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_type_add_interface_static (sidebar_simple_page_entry_type_id, SIDEBAR_TYPE_ENTRY, &sidebar_entry_info); - g_type_add_interface_static (sidebar_simple_page_entry_type_id, SIDEBAR_TYPE_SELECTABLE_ENTRY, &sidebar_selectable_entry_info); - g_type_add_interface_static (sidebar_simple_page_entry_type_id, SIDEBAR_TYPE_PAGE_REPRESENTATIVE, &sidebar_page_representative_info); - g_type_add_interface_static (sidebar_simple_page_entry_type_id, SIDEBAR_TYPE_CONTEXTABLE, &sidebar_contextable_info); - g_once_init_leave (&sidebar_simple_page_entry_type_id__volatile, sidebar_simple_page_entry_type_id); - } - return sidebar_simple_page_entry_type_id__volatile; -} - - -static gint -_sidebar_root_only_branch_null_comparator_gcompare_func (gconstpointer a, - gconstpointer b) -{ - gint result; - result = sidebar_root_only_branch_null_comparator ((SidebarEntry*) a, (SidebarEntry*) b); -#line 105 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return result; -#line 1066 "common.c" -} - - -SidebarRootOnlyBranch* -sidebar_root_only_branch_construct (GType object_type, - SidebarEntry* root) -{ - SidebarRootOnlyBranch * self = NULL; -#line 104 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (root), NULL); -#line 105 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = (SidebarRootOnlyBranch*) sidebar_branch_construct (object_type, root, SIDEBAR_BRANCH_OPTIONS_NONE, _sidebar_root_only_branch_null_comparator_gcompare_func, NULL); -#line 104 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return self; -#line 1081 "common.c" -} - - -SidebarRootOnlyBranch* -sidebar_root_only_branch_new (SidebarEntry* root) -{ -#line 104 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return sidebar_root_only_branch_construct (SIDEBAR_TYPE_ROOT_ONLY_BRANCH, root); -#line 1090 "common.c" -} - - -static gint -sidebar_root_only_branch_null_comparator (SidebarEntry* a, - SidebarEntry* b) -{ - gint result = 0; - gint _tmp0_ = 0; -#line 108 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0); -#line 108 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0); -#line 109 "/home/jens/Source/shotwell/src/sidebar/common.vala" - if (a != b) { -#line 109 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp0_ = -1; -#line 1108 "common.c" - } else { -#line 109 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp0_ = 0; -#line 1112 "common.c" - } -#line 109 "/home/jens/Source/shotwell/src/sidebar/common.vala" - result = _tmp0_; -#line 109 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return result; -#line 1118 "common.c" -} - - -static void -sidebar_root_only_branch_class_init (SidebarRootOnlyBranchClass * klass) -{ -#line 103 "/home/jens/Source/shotwell/src/sidebar/common.vala" - sidebar_root_only_branch_parent_class = g_type_class_peek_parent (klass); -#line 1127 "common.c" -} - - -static void -sidebar_root_only_branch_instance_init (SidebarRootOnlyBranch * self) -{ -} - - -GType -sidebar_root_only_branch_get_type (void) -{ - static volatile gsize sidebar_root_only_branch_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_root_only_branch_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarRootOnlyBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_root_only_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarRootOnlyBranch), 0, (GInstanceInitFunc) sidebar_root_only_branch_instance_init, NULL }; - GType sidebar_root_only_branch_type_id; - sidebar_root_only_branch_type_id = g_type_register_static (SIDEBAR_TYPE_BRANCH, "SidebarRootOnlyBranch", &g_define_type_info, 0); - g_once_init_leave (&sidebar_root_only_branch_type_id__volatile, sidebar_root_only_branch_type_id); - } - return sidebar_root_only_branch_type_id__volatile; -} - - -SidebarHeader* -sidebar_header_construct (GType object_type, - const gchar* name, - const gchar* tooltip, - gboolean emphasized) -{ - SidebarHeader * self = NULL; -#line 123 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 124 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = (SidebarHeader*) sidebar_grouping_construct (object_type, name, NULL, tooltip); -#line 125 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self->priv->emphasized = emphasized; -#line 123 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return self; -#line 1166 "common.c" -} - - -SidebarHeader* -sidebar_header_new (const gchar* name, - const gchar* tooltip, - gboolean emphasized) -{ -#line 123 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return sidebar_header_construct (SIDEBAR_TYPE_HEADER, name, tooltip, emphasized); -#line 1177 "common.c" -} - - -static gboolean -sidebar_header_real_is_emphasized (SidebarEmphasizableEntry* base) -{ - SidebarHeader * self; - gboolean result = FALSE; - gboolean _tmp0_; -#line 128 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, SIDEBAR_TYPE_HEADER, SidebarHeader); -#line 129 "/home/jens/Source/shotwell/src/sidebar/common.vala" - _tmp0_ = self->priv->emphasized; -#line 129 "/home/jens/Source/shotwell/src/sidebar/common.vala" - result = _tmp0_; -#line 129 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return result; -#line 1195 "common.c" -} - - -static void -sidebar_header_class_init (SidebarHeaderClass * klass) -{ -#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala" - sidebar_header_parent_class = g_type_class_peek_parent (klass); -#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_type_class_add_private (klass, sizeof (SidebarHeaderPrivate)); -#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala" - G_OBJECT_CLASS (klass)->finalize = sidebar_header_finalize; -#line 1208 "common.c" -} - - -static void -sidebar_header_sidebar_emphasizable_entry_interface_init (SidebarEmphasizableEntryIface * iface) -{ -#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala" - sidebar_header_sidebar_emphasizable_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala" - iface->is_emphasized = (gboolean (*) (SidebarEmphasizableEntry *)) sidebar_header_real_is_emphasized; -#line 1219 "common.c" -} - - -static void -sidebar_header_instance_init (SidebarHeader * self) -{ -#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self->priv = SIDEBAR_HEADER_GET_PRIVATE (self); -#line 1228 "common.c" -} - - -static void -sidebar_header_finalize (GObject * obj) -{ - SidebarHeader * self; -#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, SIDEBAR_TYPE_HEADER, SidebarHeader); -#line 120 "/home/jens/Source/shotwell/src/sidebar/common.vala" - G_OBJECT_CLASS (sidebar_header_parent_class)->finalize (obj); -#line 1240 "common.c" -} - - -/** - * A header is an entry that is visually distinguished from its children. Bug 6397 recommends - * headers to appear bolded and without any icons. To prevent the icons from rendering, we set the - * icons to null in the base class @see Sidebar.Grouping. But we also go a step further by - * using a custom cell_data_function (@see Sidebar.Tree::icon_renderer_function) which ensures that - * header icons won't be rendered. This approach avoids the blank icon spacing issues. - */ -GType -sidebar_header_get_type (void) -{ - static volatile gsize sidebar_header_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_header_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarHeaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sidebar_header_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SidebarHeader), 0, (GInstanceInitFunc) sidebar_header_instance_init, NULL }; - static const GInterfaceInfo sidebar_emphasizable_entry_info = { (GInterfaceInitFunc) sidebar_header_sidebar_emphasizable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType sidebar_header_type_id; - sidebar_header_type_id = g_type_register_static (SIDEBAR_TYPE_GROUPING, "SidebarHeader", &g_define_type_info, 0); - g_type_add_interface_static (sidebar_header_type_id, SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, &sidebar_emphasizable_entry_info); - g_once_init_leave (&sidebar_header_type_id__volatile, sidebar_header_type_id); - } - return sidebar_header_type_id__volatile; -} - - -GtkMenu* -sidebar_contextable_get_sidebar_context_menu (SidebarContextable* self, - GdkEventButton* event) -{ -#line 135 "/home/jens/Source/shotwell/src/sidebar/common.vala" - g_return_val_if_fail (SIDEBAR_IS_CONTEXTABLE (self), NULL); -#line 135 "/home/jens/Source/shotwell/src/sidebar/common.vala" - return SIDEBAR_CONTEXTABLE_GET_INTERFACE (self)->get_sidebar_context_menu (self, event); -#line 1275 "common.c" -} - - -static void -sidebar_contextable_base_init (SidebarContextableIface * iface) -{ -#line 133 "/home/jens/Source/shotwell/src/sidebar/common.vala" - static gboolean initialized = FALSE; -#line 133 "/home/jens/Source/shotwell/src/sidebar/common.vala" - if (!initialized) { -#line 133 "/home/jens/Source/shotwell/src/sidebar/common.vala" - initialized = TRUE; -#line 1288 "common.c" - } -} - - -GType -sidebar_contextable_get_type (void) -{ - static volatile gsize sidebar_contextable_type_id__volatile = 0; - if (g_once_init_enter (&sidebar_contextable_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SidebarContextableIface), (GBaseInitFunc) sidebar_contextable_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL }; - GType sidebar_contextable_type_id; - sidebar_contextable_type_id = g_type_register_static (G_TYPE_INTERFACE, "SidebarContextable", &g_define_type_info, 0); - g_type_interface_add_prerequisite (sidebar_contextable_type_id, G_TYPE_OBJECT); - g_once_init_leave (&sidebar_contextable_type_id__volatile, sidebar_contextable_type_id); - } - return sidebar_contextable_type_id__volatile; -} - - - diff --git a/src/slideshow/Slideshow.c b/src/slideshow/Slideshow.c deleted file mode 100644 index 63e0bda..0000000 --- a/src/slideshow/Slideshow.c +++ /dev/null @@ -1,475 +0,0 @@ -/* Slideshow.c generated by valac 0.40.4, the Vala compiler - * generated from Slideshow.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include - - - - -void slideshow_init (GError** error); -static void _vala_array_add36 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add37 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add38 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add39 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add40 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add41 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add42 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add43 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add44 (gchar** * array, - int* length, - int* size, - gchar* value); -static void _vala_array_add45 (gchar** * array, - int* length, - int* size, - gchar* value); -void plugins_register_extension_point (GType type, - const gchar* name, - const gchar* icon_name, - gchar** core_ids, - int core_ids_length1); -#define RESOURCES_ICON_SLIDESHOW_EXTENSION_POINT "slideshow-extension-point" -void transition_effects_manager_init (void); -void slideshow_terminate (void); -void transition_effects_manager_terminate (void); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static void -_vala_array_add36 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - if ((*length) == (*size)) { -#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 92 "Slideshow.c" - } -#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[(*length)++] = value; -#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[*length] = NULL; -#line 98 "Slideshow.c" -} - - -static void -_vala_array_add37 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - if ((*length) == (*size)) { -#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 114 "Slideshow.c" - } -#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[(*length)++] = value; -#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[*length] = NULL; -#line 120 "Slideshow.c" -} - - -static void -_vala_array_add38 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - if ((*length) == (*size)) { -#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 136 "Slideshow.c" - } -#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[(*length)++] = value; -#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[*length] = NULL; -#line 142 "Slideshow.c" -} - - -static void -_vala_array_add39 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - if ((*length) == (*size)) { -#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 158 "Slideshow.c" - } -#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[(*length)++] = value; -#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[*length] = NULL; -#line 164 "Slideshow.c" -} - - -static void -_vala_array_add40 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - if ((*length) == (*size)) { -#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 180 "Slideshow.c" - } -#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[(*length)++] = value; -#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[*length] = NULL; -#line 186 "Slideshow.c" -} - - -static void -_vala_array_add41 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - if ((*length) == (*size)) { -#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 202 "Slideshow.c" - } -#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[(*length)++] = value; -#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[*length] = NULL; -#line 208 "Slideshow.c" -} - - -static void -_vala_array_add42 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - if ((*length) == (*size)) { -#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 224 "Slideshow.c" - } -#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[(*length)++] = value; -#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[*length] = NULL; -#line 230 "Slideshow.c" -} - - -static void -_vala_array_add43 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - if ((*length) == (*size)) { -#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 246 "Slideshow.c" - } -#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[(*length)++] = value; -#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[*length] = NULL; -#line 252 "Slideshow.c" -} - - -static void -_vala_array_add44 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - if ((*length) == (*size)) { -#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 268 "Slideshow.c" - } -#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[(*length)++] = value; -#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[*length] = NULL; -#line 274 "Slideshow.c" -} - - -static void -_vala_array_add45 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - if ((*length) == (*size)) { -#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 290 "Slideshow.c" - } -#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[(*length)++] = value; -#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - (*array)[*length] = NULL; -#line 296 "Slideshow.c" -} - - -void -slideshow_init (GError** error) -{ - gchar** core_ids = NULL; - gchar** _tmp0_; - gint core_ids_length1; - gint _core_ids_size_; - gchar** _tmp1_; - gint _tmp1__length1; - gchar* _tmp2_; - gchar** _tmp3_; - gint _tmp3__length1; - gchar* _tmp4_; - gchar** _tmp5_; - gint _tmp5__length1; - gchar* _tmp6_; - gchar** _tmp7_; - gint _tmp7__length1; - gchar* _tmp8_; - gchar** _tmp9_; - gint _tmp9__length1; - gchar* _tmp10_; - gchar** _tmp11_; - gint _tmp11__length1; - gchar* _tmp12_; - gchar** _tmp13_; - gint _tmp13__length1; - gchar* _tmp14_; - gchar** _tmp15_; - gint _tmp15__length1; - gchar* _tmp16_; - gchar** _tmp17_; - gint _tmp17__length1; - gchar* _tmp18_; - gchar** _tmp19_; - gint _tmp19__length1; - gchar* _tmp20_; - gchar** _tmp21_; - gint _tmp21__length1; -#line 10 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp0_ = g_new0 (gchar*, 0 + 1); -#line 10 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - core_ids = _tmp0_; -#line 10 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - core_ids_length1 = 0; -#line 10 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _core_ids_size_ = core_ids_length1; -#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp1_ = core_ids; -#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp1__length1 = core_ids_length1; -#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp2_ = g_strdup ("org.yorba.shotwell.transitions.crumble"); -#line 11 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _vala_array_add36 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp2_); -#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp3_ = core_ids; -#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp3__length1 = core_ids_length1; -#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp4_ = g_strdup ("org.yorba.shotwell.transitions.fade"); -#line 12 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _vala_array_add37 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp4_); -#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp5_ = core_ids; -#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp5__length1 = core_ids_length1; -#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp6_ = g_strdup ("org.yorba.shotwell.transitions.slide"); -#line 13 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _vala_array_add38 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp6_); -#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp7_ = core_ids; -#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp7__length1 = core_ids_length1; -#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp8_ = g_strdup ("org.yorba.shotwell.transitions.blinds"); -#line 14 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _vala_array_add39 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp8_); -#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp9_ = core_ids; -#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp9__length1 = core_ids_length1; -#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp10_ = g_strdup ("org.yorba.shotwell.transitions.circle"); -#line 15 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _vala_array_add40 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp10_); -#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp11_ = core_ids; -#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp11__length1 = core_ids_length1; -#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp12_ = g_strdup ("org.yorba.shotwell.transitions.circles"); -#line 16 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _vala_array_add41 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp12_); -#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp13_ = core_ids; -#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp13__length1 = core_ids_length1; -#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp14_ = g_strdup ("org.yorba.shotwell.transitions.clock"); -#line 17 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _vala_array_add42 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp14_); -#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp15_ = core_ids; -#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp15__length1 = core_ids_length1; -#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp16_ = g_strdup ("org.yorba.shotwell.transitions.stripes"); -#line 18 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _vala_array_add43 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp16_); -#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp17_ = core_ids; -#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp17__length1 = core_ids_length1; -#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp18_ = g_strdup ("org.yorba.shotwell.transitions.squares"); -#line 19 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _vala_array_add44 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp18_); -#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp19_ = core_ids; -#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp19__length1 = core_ids_length1; -#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp20_ = g_strdup ("org.yorba.shotwell.transitions.chess"); -#line 20 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _vala_array_add45 (&core_ids, &core_ids_length1, &_core_ids_size_, _tmp20_); -#line 22 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp21_ = core_ids; -#line 22 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - _tmp21__length1 = core_ids_length1; -#line 22 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - plugins_register_extension_point (SPIT_TRANSITIONS_TYPE_DESCRIPTOR, _ ("Slideshow Transitions"), RESOURCES_ICON_SLIDESHOW_EXTENSION_POINT, _tmp21_, _tmp21__length1); -#line 24 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - transition_effects_manager_init (); -#line 9 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - core_ids = (_vala_array_free (core_ids, core_ids_length1, (GDestroyNotify) g_free), NULL); -#line 437 "Slideshow.c" -} - - -void -slideshow_terminate (void) -{ -#line 28 "/home/jens/Source/shotwell/src/slideshow/Slideshow.vala" - transition_effects_manager_terminate (); -#line 446 "Slideshow.c" -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/slideshow/TransitionEffects.c b/src/slideshow/TransitionEffects.c deleted file mode 100644 index b19b640..0000000 --- a/src/slideshow/TransitionEffects.c +++ /dev/null @@ -1,2886 +0,0 @@ -/* TransitionEffects.c generated by valac 0.40.4, the Vala compiler - * generated from TransitionEffects.vala, do not modify */ - -/* Copyright 2010 Maxim Kartashev - * Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include -#include - - -#define TYPE_TRANSITION_EFFECTS_MANAGER (transition_effects_manager_get_type ()) -#define TRANSITION_EFFECTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManager)) -#define TRANSITION_EFFECTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManagerClass)) -#define IS_TRANSITION_EFFECTS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSITION_EFFECTS_MANAGER)) -#define IS_TRANSITION_EFFECTS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSITION_EFFECTS_MANAGER)) -#define TRANSITION_EFFECTS_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManagerClass)) - -typedef struct _TransitionEffectsManager TransitionEffectsManager; -typedef struct _TransitionEffectsManagerClass TransitionEffectsManagerClass; -typedef struct _TransitionEffectsManagerPrivate TransitionEffectsManagerPrivate; - -#define PLUGINS_TYPE_NOTIFIER (plugins_notifier_get_type ()) -#define PLUGINS_NOTIFIER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_NOTIFIER, PluginsNotifier)) -#define PLUGINS_NOTIFIER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_NOTIFIER, PluginsNotifierClass)) -#define PLUGINS_IS_NOTIFIER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_NOTIFIER)) -#define PLUGINS_IS_NOTIFIER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_NOTIFIER)) -#define PLUGINS_NOTIFIER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_NOTIFIER, PluginsNotifierClass)) - -typedef struct _PluginsNotifier PluginsNotifier; -typedef struct _PluginsNotifierClass PluginsNotifierClass; -#define _plugins_notifier_unref0(var) ((var == NULL) ? NULL : (var = (plugins_notifier_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define TYPE_NULL_TRANSITION_DESCRIPTOR (null_transition_descriptor_get_type ()) -#define NULL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptor)) -#define NULL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptorClass)) -#define IS_NULL_TRANSITION_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NULL_TRANSITION_DESCRIPTOR)) -#define IS_NULL_TRANSITION_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NULL_TRANSITION_DESCRIPTOR)) -#define NULL_TRANSITION_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptorClass)) - -typedef struct _NullTransitionDescriptor NullTransitionDescriptor; -typedef struct _NullTransitionDescriptorClass NullTransitionDescriptorClass; - -#define TYPE_RANDOM_EFFECT_DESCRIPTOR (random_effect_descriptor_get_type ()) -#define RANDOM_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptor)) -#define RANDOM_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptorClass)) -#define IS_RANDOM_EFFECT_DESCRIPTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RANDOM_EFFECT_DESCRIPTOR)) -#define IS_RANDOM_EFFECT_DESCRIPTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RANDOM_EFFECT_DESCRIPTOR)) -#define RANDOM_EFFECT_DESCRIPTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptorClass)) - -typedef struct _RandomEffectDescriptor RandomEffectDescriptor; -typedef struct _RandomEffectDescriptorClass RandomEffectDescriptorClass; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _transition_effects_manager_unref0(var) ((var == NULL) ? NULL : (var = (transition_effects_manager_unref (var), NULL))) - -#define TYPE_TRANSITION_CLOCK (transition_clock_get_type ()) -#define TRANSITION_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TRANSITION_CLOCK, TransitionClock)) -#define TRANSITION_CLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TRANSITION_CLOCK, TransitionClockClass)) -#define IS_TRANSITION_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TRANSITION_CLOCK)) -#define IS_TRANSITION_CLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TRANSITION_CLOCK)) -#define TRANSITION_CLOCK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TRANSITION_CLOCK, TransitionClockClass)) - -typedef struct _TransitionClock TransitionClock; -typedef struct _TransitionClockClass TransitionClockClass; -#define _transition_clock_unref0(var) ((var == NULL) ? NULL : (var = (transition_clock_unref (var), NULL))) -typedef struct _ParamSpecTransitionEffectsManager ParamSpecTransitionEffectsManager; -typedef struct _TransitionClockPrivate TransitionClockPrivate; - -#define TYPE_OP_TIMER (op_timer_get_type ()) -#define OP_TIMER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_OP_TIMER, OpTimer)) -#define OP_TIMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_OP_TIMER, OpTimerClass)) -#define IS_OP_TIMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_OP_TIMER)) -#define IS_OP_TIMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_OP_TIMER)) -#define OP_TIMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_OP_TIMER, OpTimerClass)) - -typedef struct _OpTimer OpTimer; -typedef struct _OpTimerClass OpTimerClass; -#define _op_timer_unref0(var) ((var == NULL) ? NULL : (var = (op_timer_unref (var), NULL))) - -#define PLUGINS_TYPE_STANDARD_HOST_INTERFACE (plugins_standard_host_interface_get_type ()) -#define PLUGINS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterface)) -#define PLUGINS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass)) -#define PLUGINS_IS_STANDARD_HOST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE)) -#define PLUGINS_IS_STANDARD_HOST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUGINS_TYPE_STANDARD_HOST_INTERFACE)) -#define PLUGINS_STANDARD_HOST_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PLUGINS_TYPE_STANDARD_HOST_INTERFACE, PluginsStandardHostInterfaceClass)) - -typedef struct _PluginsStandardHostInterface PluginsStandardHostInterface; -typedef struct _PluginsStandardHostInterfaceClass PluginsStandardHostInterfaceClass; -typedef struct _ParamSpecTransitionClock ParamSpecTransitionClock; -typedef struct _NullTransitionDescriptorPrivate NullTransitionDescriptorPrivate; -enum { - NULL_TRANSITION_DESCRIPTOR_0_PROPERTY, - NULL_TRANSITION_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* null_transition_descriptor_properties[NULL_TRANSITION_DESCRIPTOR_NUM_PROPERTIES]; - -#define TYPE_NULL_EFFECT (null_effect_get_type ()) -#define NULL_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NULL_EFFECT, NullEffect)) -#define NULL_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NULL_EFFECT, NullEffectClass)) -#define IS_NULL_EFFECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NULL_EFFECT)) -#define IS_NULL_EFFECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NULL_EFFECT)) -#define NULL_EFFECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NULL_EFFECT, NullEffectClass)) - -typedef struct _NullEffect NullEffect; -typedef struct _NullEffectClass NullEffectClass; -typedef struct _NullEffectPrivate NullEffectPrivate; -enum { - NULL_EFFECT_0_PROPERTY, - NULL_EFFECT_NUM_PROPERTIES -}; -static GParamSpec* null_effect_properties[NULL_EFFECT_NUM_PROPERTIES]; -typedef struct _RandomEffectDescriptorPrivate RandomEffectDescriptorPrivate; -enum { - RANDOM_EFFECT_DESCRIPTOR_0_PROPERTY, - RANDOM_EFFECT_DESCRIPTOR_NUM_PROPERTIES -}; -static GParamSpec* random_effect_descriptor_properties[RANDOM_EFFECT_DESCRIPTOR_NUM_PROPERTIES]; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _TransitionEffectsManager { - GTypeInstance parent_instance; - volatile int ref_count; - TransitionEffectsManagerPrivate * priv; -}; - -struct _TransitionEffectsManagerClass { - GTypeClass parent_class; - void (*finalize) (TransitionEffectsManager *self); -}; - -struct _TransitionEffectsManagerPrivate { - GeeMap* effects; - SpitTransitionsDescriptor* null_descriptor; - SpitTransitionsDescriptor* random_descriptor; -}; - -struct _ParamSpecTransitionEffectsManager { - GParamSpec parent_instance; -}; - -struct _TransitionClock { - GTypeInstance parent_instance; - volatile int ref_count; - TransitionClockPrivate * priv; -}; - -struct _TransitionClockClass { - GTypeClass parent_class; - void (*finalize) (TransitionClock *self); -}; - -typedef void (*TransitionClockRepaintCallback) (void* user_data); -struct _TransitionClockPrivate { - SpitTransitionsDescriptor* desc; - SpitTransitionsEffect* effect; - gint desired_fps; - gint min_fps; - gint current_fps; - OpTimer* paint_timer; - SpitTransitionsVisuals* visuals; - SpitTransitionsMotion* motion; - TransitionClockRepaintCallback repaint; - gpointer repaint_target; - guint timer_id; - gulong time_started; - gint frame_number; - gboolean cancelled; -}; - -struct _ParamSpecTransitionClock { - GParamSpec parent_instance; -}; - -struct _NullTransitionDescriptor { - GObject parent_instance; - NullTransitionDescriptorPrivate * priv; -}; - -struct _NullTransitionDescriptorClass { - GObjectClass parent_class; -}; - -struct _NullEffect { - GObject parent_instance; - NullEffectPrivate * priv; -}; - -struct _NullEffectClass { - GObjectClass parent_class; -}; - -struct _RandomEffectDescriptor { - GObject parent_instance; - RandomEffectDescriptorPrivate * priv; -}; - -struct _RandomEffectDescriptorClass { - GObjectClass parent_class; -}; - - -static gpointer transition_effects_manager_parent_class = NULL; -static TransitionEffectsManager* transition_effects_manager_instance; -static TransitionEffectsManager* transition_effects_manager_instance = NULL; -static gpointer transition_clock_parent_class = NULL; -static gpointer null_transition_descriptor_parent_class = NULL; -static SpitPluggableIface * null_transition_descriptor_spit_pluggable_parent_iface = NULL; -static SpitTransitionsDescriptorIface * null_transition_descriptor_spit_transitions_descriptor_parent_iface = NULL; -static gpointer null_effect_parent_class = NULL; -static SpitTransitionsEffectIface * null_effect_spit_transitions_effect_parent_iface = NULL; -static gpointer random_effect_descriptor_parent_class = NULL; -static SpitPluggableIface * random_effect_descriptor_spit_pluggable_parent_iface = NULL; -static SpitTransitionsDescriptorIface * random_effect_descriptor_spit_transitions_descriptor_parent_iface = NULL; - -gpointer transition_effects_manager_ref (gpointer instance); -void transition_effects_manager_unref (gpointer instance); -GParamSpec* param_spec_transition_effects_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_transition_effects_manager (GValue* value, - gpointer v_object); -void value_take_transition_effects_manager (GValue* value, - gpointer v_object); -gpointer value_get_transition_effects_manager (const GValue* value); -GType transition_effects_manager_get_type (void) G_GNUC_CONST; -#define TRANSITION_EFFECTS_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManagerPrivate)) -gpointer plugins_notifier_ref (gpointer instance); -void plugins_notifier_unref (gpointer instance); -GParamSpec* plugins_param_spec_notifier (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void plugins_value_set_notifier (GValue* value, - gpointer v_object); -void plugins_value_take_notifier (GValue* value, - gpointer v_object); -gpointer plugins_value_get_notifier (const GValue* value); -GType plugins_notifier_get_type (void) G_GNUC_CONST; -PluginsNotifier* plugins_notifier_get_instance (void); -static void transition_effects_manager_load_transitions (TransitionEffectsManager* self); -static void _transition_effects_manager_load_transitions_plugins_notifier_pluggable_activation (PluginsNotifier* _sender, - SpitPluggable* pluggable, - gboolean enabled, - gpointer self); -NullTransitionDescriptor* null_transition_descriptor_new (void); -NullTransitionDescriptor* null_transition_descriptor_construct (GType object_type); -GType null_transition_descriptor_get_type (void) G_GNUC_CONST; -RandomEffectDescriptor* random_effect_descriptor_new (void); -RandomEffectDescriptor* random_effect_descriptor_construct (GType object_type); -GType random_effect_descriptor_get_type (void) G_GNUC_CONST; -#define NULL_TRANSITION_DESCRIPTOR_EFFECT_ID "org.yorba.shotwell.transitions.null" -#define TRANSITION_EFFECTS_MANAGER_NULL_EFFECT_ID NULL_TRANSITION_DESCRIPTOR_EFFECT_ID -#define RANDOM_EFFECT_DESCRIPTOR_EFFECT_ID "org.yorba.shotwell.transitions.random" -#define TRANSITION_EFFECTS_MANAGER_RANDOM_EFFECT_ID RANDOM_EFFECT_DESCRIPTOR_EFFECT_ID -static TransitionEffectsManager* transition_effects_manager_new (void); -static TransitionEffectsManager* transition_effects_manager_construct (GType object_type); -GeeCollection* plugins_get_pluggables_for_type (GType type, - GCompareDataFunc compare_func, - void* compare_func_target, - GDestroyNotify compare_func_target_destroy_notify, - gboolean include_disabled); -gchar* plugins_get_pluggable_module_id (SpitPluggable* needle); -void transition_effects_manager_init (void); -void transition_effects_manager_terminate (void); -TransitionEffectsManager* transition_effects_manager_get_instance (void); -GeeCollection* transition_effects_manager_get_effect_ids (TransitionEffectsManager* self); -GeeCollection* transition_effects_manager_get_effect_names (TransitionEffectsManager* self, - GCompareDataFunc comparator, - void* comparator_target, - GDestroyNotify comparator_target_destroy_notify); -gchar* transition_effects_manager_get_id_for_effect_name (TransitionEffectsManager* self, - const gchar* effect_name); -SpitTransitionsDescriptor* transition_effects_manager_get_effect_descriptor (TransitionEffectsManager* self, - const gchar* effect_id); -gchar* transition_effects_manager_get_effect_name (TransitionEffectsManager* self, - const gchar* effect_id); -SpitTransitionsDescriptor* transition_effects_manager_get_null_descriptor (TransitionEffectsManager* self); -gpointer transition_clock_ref (gpointer instance); -void transition_clock_unref (gpointer instance); -GParamSpec* param_spec_transition_clock (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_transition_clock (GValue* value, - gpointer v_object); -void value_take_transition_clock (GValue* value, - gpointer v_object); -gpointer value_get_transition_clock (const GValue* value); -GType transition_clock_get_type (void) G_GNUC_CONST; -TransitionClock* transition_effects_manager_create_transition_clock (TransitionEffectsManager* self, - const gchar* effect_id); -TransitionClock* transition_clock_new (SpitTransitionsDescriptor* desc); -TransitionClock* transition_clock_construct (GType object_type, - SpitTransitionsDescriptor* desc); -TransitionClock* transition_effects_manager_create_null_transition_clock (TransitionEffectsManager* self); -static void transition_effects_manager_finalize (TransitionEffectsManager * obj); -gpointer op_timer_ref (gpointer instance); -void op_timer_unref (gpointer instance); -GParamSpec* param_spec_op_timer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_op_timer (GValue* value, - gpointer v_object); -void value_take_op_timer (GValue* value, - gpointer v_object); -gpointer value_get_op_timer (const GValue* value); -GType op_timer_get_type (void) G_GNUC_CONST; -#define TRANSITION_CLOCK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TRANSITION_CLOCK, TransitionClockPrivate)) -static void transition_clock_cancel_timer (TransitionClock* self); -gchar* op_timer_to_string (OpTimer* self); -PluginsStandardHostInterface* plugins_standard_host_interface_new (SpitPluggable* pluggable, - const gchar* config_domain); -PluginsStandardHostInterface* plugins_standard_host_interface_construct (GType object_type, - SpitPluggable* pluggable, - const gchar* config_domain); -GType plugins_standard_host_interface_get_type (void) G_GNUC_CONST; -OpTimer* op_timer_new (const gchar* name); -OpTimer* op_timer_construct (GType object_type, - const gchar* name); -gboolean transition_clock_is_in_progress (TransitionClock* self); -void transition_clock_start (TransitionClock* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsDirection direction, - gint duration_msec, - TransitionClockRepaintCallback repaint, - void* repaint_target); -static void transition_clock_reset (TransitionClock* self); -gulong now_ms (void); -static gboolean transition_clock_tick (TransitionClock* self); -static gboolean _transition_clock_tick_gsource_func (gpointer self); -static gboolean transition_clock_is_fps_ok (TransitionClock* self); -void transition_clock_cancel (TransitionClock* self); -gboolean transition_clock_paint (TransitionClock* self, - cairo_t* ctx, - gint width, - gint height); -void op_timer_start (OpTimer* self); -void op_timer_stop (OpTimer* self); -static void transition_clock_finalize (TransitionClock * obj); -static gint null_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_version, - gint max_host_version); -static const gchar* null_transition_descriptor_real_get_id (SpitPluggable* base); -static const gchar* null_transition_descriptor_real_get_pluggable_name (SpitPluggable* base); -static void null_transition_descriptor_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static void null_transition_descriptor_real_activation (SpitPluggable* base, - gboolean enabled); -static SpitTransitionsEffect* null_transition_descriptor_real_create (SpitTransitionsDescriptor* base, - SpitHostInterface* host); -NullEffect* null_effect_new (void); -NullEffect* null_effect_construct (GType object_type); -GType null_effect_get_type (void) G_GNUC_CONST; -static void null_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps); -static void null_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion); -static gboolean null_effect_real_needs_clear_background (SpitTransitionsEffect* base); -static void null_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number); -static void null_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number); -static void null_effect_real_cancel (SpitTransitionsEffect* base); -static gint random_effect_descriptor_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_version, - gint max_host_version); -static const gchar* random_effect_descriptor_real_get_id (SpitPluggable* base); -static const gchar* random_effect_descriptor_real_get_pluggable_name (SpitPluggable* base); -static void random_effect_descriptor_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info); -static void random_effect_descriptor_real_activation (SpitPluggable* base, - gboolean enabled); -static SpitTransitionsEffect* random_effect_descriptor_real_create (SpitTransitionsDescriptor* base, - SpitHostInterface* host); - - -static void -_transition_effects_manager_load_transitions_plugins_notifier_pluggable_activation (PluginsNotifier* _sender, - SpitPluggable* pluggable, - gboolean enabled, - gpointer self) -{ -#line 25 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_effects_manager_load_transitions ((TransitionEffectsManager*) self); -#line 418 "TransitionEffects.c" -} - - -static TransitionEffectsManager* -transition_effects_manager_construct (GType object_type) -{ - TransitionEffectsManager* self = NULL; - PluginsNotifier* _tmp0_; - PluginsNotifier* _tmp1_; -#line 19 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = (TransitionEffectsManager*) g_type_create_instance (object_type); -#line 20 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_effects_manager_load_transitions (self); -#line 21 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = plugins_notifier_get_instance (); -#line 21 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = _tmp0_; -#line 21 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_signal_connect (_tmp1_, "pluggable-activation", (GCallback) _transition_effects_manager_load_transitions_plugins_notifier_pluggable_activation, self); -#line 21 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _plugins_notifier_unref0 (_tmp1_); -#line 19 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return self; -#line 442 "TransitionEffects.c" -} - - -static TransitionEffectsManager* -transition_effects_manager_new (void) -{ -#line 19 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return transition_effects_manager_construct (TYPE_TRANSITION_EFFECTS_MANAGER); -#line 451 "TransitionEffects.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 48 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return self ? g_object_ref (self) : NULL; -#line 460 "TransitionEffects.c" -} - - -static void -transition_effects_manager_load_transitions (TransitionEffectsManager* self) -{ - GeeMap* _tmp0_; - GeeMap* _tmp1_; - SpitTransitionsDescriptor* _tmp2_; - const gchar* _tmp3_; - SpitTransitionsDescriptor* _tmp4_; - GeeMap* _tmp5_; - SpitTransitionsDescriptor* _tmp6_; - const gchar* _tmp7_; - SpitTransitionsDescriptor* _tmp8_; - GeeCollection* pluggables = NULL; - GeeCollection* _tmp9_; -#line 28 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self)); -#line 29 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = self->priv->effects; -#line 29 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - gee_map_clear (_tmp0_); -#line 32 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = self->priv->effects; -#line 32 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = self->priv->null_descriptor; -#line 32 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 32 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = self->priv->null_descriptor; -#line 32 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - gee_map_set (_tmp1_, _tmp3_, _tmp4_); -#line 33 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp5_ = self->priv->effects; -#line 33 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp6_ = self->priv->random_descriptor; -#line 33 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp7_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 33 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp8_ = self->priv->random_descriptor; -#line 33 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - gee_map_set (_tmp5_, _tmp7_, _tmp8_); -#line 36 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp9_ = plugins_get_pluggables_for_type (SPIT_TRANSITIONS_TYPE_DESCRIPTOR, NULL, NULL, NULL, FALSE); -#line 36 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - pluggables = _tmp9_; -#line 508 "TransitionEffects.c" - { - GeeIterator* _pluggable_it = NULL; - GeeCollection* _tmp10_; - GeeIterator* _tmp11_; -#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp10_ = pluggables; -#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _pluggable_it = _tmp11_; -#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - while (TRUE) { -#line 521 "TransitionEffects.c" - GeeIterator* _tmp12_; - SpitPluggable* pluggable = NULL; - GeeIterator* _tmp13_; - gpointer _tmp14_; - gint pluggable_interface = 0; - SpitPluggable* _tmp15_; - gint _tmp16_; - SpitTransitionsDescriptor* desc = NULL; - SpitPluggable* _tmp21_; - SpitTransitionsDescriptor* _tmp22_; - GeeMap* _tmp23_; - SpitTransitionsDescriptor* _tmp24_; - const gchar* _tmp25_; -#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp12_ = _pluggable_it; -#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (!gee_iterator_next (_tmp12_)) { -#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - break; -#line 541 "TransitionEffects.c" - } -#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp13_ = _pluggable_it; -#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp14_ = gee_iterator_get (_tmp13_); -#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - pluggable = (SpitPluggable*) _tmp14_; -#line 39 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp15_ = pluggable; -#line 39 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - pluggable_interface = spit_pluggable_get_pluggable_interface (_tmp15_, SPIT_TRANSITIONS_CURRENT_INTERFACE, SPIT_TRANSITIONS_CURRENT_INTERFACE); -#line 41 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp16_ = pluggable_interface; -#line 41 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp16_ != SPIT_TRANSITIONS_CURRENT_INTERFACE) { -#line 557 "TransitionEffects.c" - SpitPluggable* _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - gint _tmp20_; -#line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp17_ = pluggable; -#line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp18_ = plugins_get_pluggable_module_id (_tmp17_); -#line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp19_ = _tmp18_; -#line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp20_ = pluggable_interface; -#line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_warning ("TransitionEffects.vala:42: Unable to load transitions plug-in %s: repo" \ -"rted interface %d", _tmp19_, _tmp20_); -#line 42 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_free0 (_tmp19_); -#line 45 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (pluggable); -#line 45 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - continue; -#line 578 "TransitionEffects.c" - } -#line 48 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp21_ = pluggable; -#line 48 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptor)); -#line 48 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - desc = _tmp22_; -#line 49 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp23_ = self->priv->effects; -#line 49 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp24_ = desc; -#line 49 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp25_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 49 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (gee_map_has_key (_tmp23_, _tmp25_)) { -#line 594 "TransitionEffects.c" - SpitTransitionsDescriptor* _tmp26_; - const gchar* _tmp27_; -#line 50 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp26_ = desc; -#line 50 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp27_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 50 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_warning ("TransitionEffects.vala:50: Multiple transitions loaded with same effec" \ -"t ID %s", _tmp27_); -#line 603 "TransitionEffects.c" - } else { - GeeMap* _tmp28_; - SpitTransitionsDescriptor* _tmp29_; - const gchar* _tmp30_; - SpitTransitionsDescriptor* _tmp31_; -#line 52 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp28_ = self->priv->effects; -#line 52 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp29_ = desc; -#line 52 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp30_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 52 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp31_ = desc; -#line 52 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - gee_map_set (_tmp28_, _tmp30_, _tmp31_); -#line 619 "TransitionEffects.c" - } -#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (desc); -#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (pluggable); -#line 625 "TransitionEffects.c" - } -#line 38 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (_pluggable_it); -#line 629 "TransitionEffects.c" - } -#line 28 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (pluggables); -#line 633 "TransitionEffects.c" -} - - -void -transition_effects_manager_init (void) -{ - TransitionEffectsManager* _tmp0_; -#line 57 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = transition_effects_manager_new (); -#line 57 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _transition_effects_manager_unref0 (transition_effects_manager_instance); -#line 57 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_effects_manager_instance = _tmp0_; -#line 647 "TransitionEffects.c" -} - - -void -transition_effects_manager_terminate (void) -{ -#line 61 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _transition_effects_manager_unref0 (transition_effects_manager_instance); -#line 61 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_effects_manager_instance = NULL; -#line 658 "TransitionEffects.c" -} - - -static gpointer -_transition_effects_manager_ref0 (gpointer self) -{ -#line 67 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return self ? transition_effects_manager_ref (self) : NULL; -#line 667 "TransitionEffects.c" -} - - -TransitionEffectsManager* -transition_effects_manager_get_instance (void) -{ - TransitionEffectsManager* result = NULL; - TransitionEffectsManager* _tmp0_; - TransitionEffectsManager* _tmp1_; - TransitionEffectsManager* _tmp2_; -#line 65 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = transition_effects_manager_instance; -#line 65 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _vala_assert (_tmp0_ != NULL, "instance != null"); -#line 67 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = transition_effects_manager_instance; -#line 67 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = _transition_effects_manager_ref0 (_tmp1_); -#line 67 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = _tmp2_; -#line 67 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 690 "TransitionEffects.c" -} - - -GeeCollection* -transition_effects_manager_get_effect_ids (TransitionEffectsManager* self) -{ - GeeCollection* result = NULL; - GeeMap* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; -#line 70 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL); -#line 71 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = self->priv->effects; -#line 71 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = gee_map_get_keys (_tmp0_); -#line 71 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = _tmp1_; -#line 71 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 71 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 713 "TransitionEffects.c" -} - - -GeeCollection* -transition_effects_manager_get_effect_names (TransitionEffectsManager* self, - GCompareDataFunc comparator, - void* comparator_target, - GDestroyNotify comparator_target_destroy_notify) -{ - GeeCollection* result = NULL; - GeeCollection* effect_names = NULL; - GCompareDataFunc _tmp0_; - void* _tmp0__target; - GDestroyNotify _tmp0__target_destroy_notify; - GeeTreeSet* _tmp1_; -#line 74 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL); -#line 75 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = comparator; -#line 75 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0__target = comparator_target; -#line 75 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0__target_destroy_notify = comparator_target_destroy_notify; -#line 75 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - comparator = NULL; -#line 75 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - comparator_target = NULL; -#line 75 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - comparator_target_destroy_notify = NULL; -#line 75 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, _tmp0_, _tmp0__target, _tmp0__target_destroy_notify); -#line 75 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - effect_names = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection); -#line 747 "TransitionEffects.c" - { - GeeIterator* _desc_it = NULL; - GeeMap* _tmp2_; - GeeCollection* _tmp3_; - GeeCollection* _tmp4_; - GeeCollection* _tmp5_; - GeeIterator* _tmp6_; - GeeIterator* _tmp7_; -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = self->priv->effects; -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = gee_map_get_values (_tmp2_); -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = _tmp3_; -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp5_ = _tmp4_; -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp7_ = _tmp6_; -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (_tmp5_); -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _desc_it = _tmp7_; -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - while (TRUE) { -#line 774 "TransitionEffects.c" - GeeIterator* _tmp8_; - SpitTransitionsDescriptor* desc = NULL; - GeeIterator* _tmp9_; - gpointer _tmp10_; - GeeCollection* _tmp11_; - SpitTransitionsDescriptor* _tmp12_; - const gchar* _tmp13_; -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp8_ = _desc_it; -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (!gee_iterator_next (_tmp8_)) { -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - break; -#line 788 "TransitionEffects.c" - } -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp9_ = _desc_it; -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp10_ = gee_iterator_get (_tmp9_); -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - desc = (SpitTransitionsDescriptor*) _tmp10_; -#line 77 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp11_ = effect_names; -#line 77 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp12_ = desc; -#line 77 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp13_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 77 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - gee_collection_add (_tmp11_, _tmp13_); -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (desc); -#line 806 "TransitionEffects.c" - } -#line 76 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (_desc_it); -#line 810 "TransitionEffects.c" - } -#line 79 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = effect_names; -#line 79 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - (comparator_target_destroy_notify == NULL) ? NULL : (comparator_target_destroy_notify (comparator_target), NULL); -#line 79 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - comparator = NULL; -#line 79 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - comparator_target = NULL; -#line 79 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - comparator_target_destroy_notify = NULL; -#line 79 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 824 "TransitionEffects.c" -} - - -gchar* -transition_effects_manager_get_id_for_effect_name (TransitionEffectsManager* self, - const gchar* effect_name) -{ - gchar* result = NULL; -#line 82 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL); -#line 82 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (effect_name != NULL, NULL); -#line 837 "TransitionEffects.c" - { - GeeIterator* _desc_it = NULL; - GeeMap* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; - GeeIterator* _tmp5_; -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = self->priv->effects; -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = gee_map_get_values (_tmp0_); -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = _tmp1_; -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = _tmp2_; -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp5_ = _tmp4_; -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (_tmp3_); -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _desc_it = _tmp5_; -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - while (TRUE) { -#line 864 "TransitionEffects.c" - GeeIterator* _tmp6_; - SpitTransitionsDescriptor* desc = NULL; - GeeIterator* _tmp7_; - gpointer _tmp8_; - SpitTransitionsDescriptor* _tmp9_; - const gchar* _tmp10_; -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp6_ = _desc_it; -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (!gee_iterator_next (_tmp6_)) { -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - break; -#line 877 "TransitionEffects.c" - } -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp7_ = _desc_it; -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp8_ = gee_iterator_get (_tmp7_); -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - desc = (SpitTransitionsDescriptor*) _tmp8_; -#line 84 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp9_ = desc; -#line 84 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp10_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 84 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (g_strcmp0 (_tmp10_, effect_name) == 0) { -#line 891 "TransitionEffects.c" - SpitTransitionsDescriptor* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; -#line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp11_ = desc; -#line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp12_ = spit_pluggable_get_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp13_ = g_strdup (_tmp12_); -#line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = _tmp13_; -#line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (desc); -#line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (_desc_it); -#line 85 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 909 "TransitionEffects.c" - } -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (desc); -#line 913 "TransitionEffects.c" - } -#line 83 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (_desc_it); -#line 917 "TransitionEffects.c" - } -#line 88 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = NULL; -#line 88 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 923 "TransitionEffects.c" -} - - -SpitTransitionsDescriptor* -transition_effects_manager_get_effect_descriptor (TransitionEffectsManager* self, - const gchar* effect_id) -{ - SpitTransitionsDescriptor* result = NULL; - GeeMap* _tmp0_; - gpointer _tmp1_; -#line 91 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL); -#line 91 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (effect_id != NULL, NULL); -#line 92 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = self->priv->effects; -#line 92 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = gee_map_get (_tmp0_, effect_id); -#line 92 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = (SpitTransitionsDescriptor*) _tmp1_; -#line 92 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 946 "TransitionEffects.c" -} - - -gchar* -transition_effects_manager_get_effect_name (TransitionEffectsManager* self, - const gchar* effect_id) -{ - gchar* result = NULL; - SpitTransitionsDescriptor* desc = NULL; - SpitTransitionsDescriptor* _tmp0_; - const gchar* _tmp1_ = NULL; - SpitTransitionsDescriptor* _tmp2_; - gchar* _tmp5_; -#line 95 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL); -#line 95 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (effect_id != NULL, NULL); -#line 96 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = transition_effects_manager_get_effect_descriptor (self, effect_id); -#line 96 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - desc = _tmp0_; -#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = desc; -#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp2_ != NULL) { -#line 972 "TransitionEffects.c" - SpitTransitionsDescriptor* _tmp3_; - const gchar* _tmp4_; -#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = desc; -#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = _tmp4_; -#line 981 "TransitionEffects.c" - } else { -#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = _ ("(None)"); -#line 985 "TransitionEffects.c" - } -#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp5_ = g_strdup (_tmp1_); -#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = _tmp5_; -#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (desc); -#line 98 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 995 "TransitionEffects.c" -} - - -SpitTransitionsDescriptor* -transition_effects_manager_get_null_descriptor (TransitionEffectsManager* self) -{ - SpitTransitionsDescriptor* result = NULL; - SpitTransitionsDescriptor* _tmp0_; - SpitTransitionsDescriptor* _tmp1_; -#line 101 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL); -#line 102 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = self->priv->null_descriptor; -#line 102 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 102 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = _tmp1_; -#line 102 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 1015 "TransitionEffects.c" -} - - -TransitionClock* -transition_effects_manager_create_transition_clock (TransitionEffectsManager* self, - const gchar* effect_id) -{ - TransitionClock* result = NULL; - SpitTransitionsDescriptor* desc = NULL; - SpitTransitionsDescriptor* _tmp0_; - TransitionClock* _tmp1_ = NULL; - SpitTransitionsDescriptor* _tmp2_; -#line 105 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL); -#line 105 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (effect_id != NULL, NULL); -#line 106 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = transition_effects_manager_get_effect_descriptor (self, effect_id); -#line 106 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - desc = _tmp0_; -#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = desc; -#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp2_ != NULL) { -#line 1040 "TransitionEffects.c" - SpitTransitionsDescriptor* _tmp3_; - TransitionClock* _tmp4_; -#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = desc; -#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = transition_clock_new (_tmp3_); -#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _transition_clock_unref0 (_tmp1_); -#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = _tmp4_; -#line 1051 "TransitionEffects.c" - } else { -#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _transition_clock_unref0 (_tmp1_); -#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = NULL; -#line 1057 "TransitionEffects.c" - } -#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = _tmp1_; -#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (desc); -#line 108 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 1065 "TransitionEffects.c" -} - - -TransitionClock* -transition_effects_manager_create_null_transition_clock (TransitionEffectsManager* self) -{ - TransitionClock* result = NULL; - SpitTransitionsDescriptor* _tmp0_; - TransitionClock* _tmp1_; -#line 111 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (IS_TRANSITION_EFFECTS_MANAGER (self), NULL); -#line 112 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = self->priv->null_descriptor; -#line 112 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = transition_clock_new (_tmp0_); -#line 112 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = _tmp1_; -#line 112 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 1085 "TransitionEffects.c" -} - - -static void -value_transition_effects_manager_init (GValue* value) -{ -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - value->data[0].v_pointer = NULL; -#line 1094 "TransitionEffects.c" -} - - -static void -value_transition_effects_manager_free_value (GValue* value) -{ -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (value->data[0].v_pointer) { -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_effects_manager_unref (value->data[0].v_pointer); -#line 1105 "TransitionEffects.c" - } -} - - -static void -value_transition_effects_manager_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (src_value->data[0].v_pointer) { -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - dest_value->data[0].v_pointer = transition_effects_manager_ref (src_value->data[0].v_pointer); -#line 1118 "TransitionEffects.c" - } else { -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - dest_value->data[0].v_pointer = NULL; -#line 1122 "TransitionEffects.c" - } -} - - -static gpointer -value_transition_effects_manager_peek_pointer (const GValue* value) -{ -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return value->data[0].v_pointer; -#line 1132 "TransitionEffects.c" -} - - -static gchar* -value_transition_effects_manager_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (collect_values[0].v_pointer) { -#line 1144 "TransitionEffects.c" - TransitionEffectsManager * object; - object = collect_values[0].v_pointer; -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (object->parent_instance.g_class == NULL) { -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1151 "TransitionEffects.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1155 "TransitionEffects.c" - } -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - value->data[0].v_pointer = transition_effects_manager_ref (object); -#line 1159 "TransitionEffects.c" - } else { -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - value->data[0].v_pointer = NULL; -#line 1163 "TransitionEffects.c" - } -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return NULL; -#line 1167 "TransitionEffects.c" -} - - -static gchar* -value_transition_effects_manager_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - TransitionEffectsManager ** object_p; - object_p = collect_values[0].v_pointer; -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (!object_p) { -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1183 "TransitionEffects.c" - } -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (!value->data[0].v_pointer) { -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - *object_p = NULL; -#line 1189 "TransitionEffects.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - *object_p = value->data[0].v_pointer; -#line 1193 "TransitionEffects.c" - } else { -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - *object_p = transition_effects_manager_ref (value->data[0].v_pointer); -#line 1197 "TransitionEffects.c" - } -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return NULL; -#line 1201 "TransitionEffects.c" -} - - -GParamSpec* -param_spec_transition_effects_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecTransitionEffectsManager* spec; -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_TRANSITION_EFFECTS_MANAGER), NULL); -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return G_PARAM_SPEC (spec); -#line 1221 "TransitionEffects.c" -} - - -gpointer -value_get_transition_effects_manager (const GValue* value) -{ -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_EFFECTS_MANAGER), NULL); -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return value->data[0].v_pointer; -#line 1232 "TransitionEffects.c" -} - - -void -value_set_transition_effects_manager (GValue* value, - gpointer v_object) -{ - TransitionEffectsManager * old; -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_EFFECTS_MANAGER)); -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - old = value->data[0].v_pointer; -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (v_object) { -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TRANSITION_EFFECTS_MANAGER)); -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - value->data[0].v_pointer = v_object; -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_effects_manager_ref (value->data[0].v_pointer); -#line 1255 "TransitionEffects.c" - } else { -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - value->data[0].v_pointer = NULL; -#line 1259 "TransitionEffects.c" - } -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (old) { -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_effects_manager_unref (old); -#line 1265 "TransitionEffects.c" - } -} - - -void -value_take_transition_effects_manager (GValue* value, - gpointer v_object) -{ - TransitionEffectsManager * old; -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_EFFECTS_MANAGER)); -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - old = value->data[0].v_pointer; -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (v_object) { -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TRANSITION_EFFECTS_MANAGER)); -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - value->data[0].v_pointer = v_object; -#line 1287 "TransitionEffects.c" - } else { -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - value->data[0].v_pointer = NULL; -#line 1291 "TransitionEffects.c" - } -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (old) { -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_effects_manager_unref (old); -#line 1297 "TransitionEffects.c" - } -} - - -static void -transition_effects_manager_class_init (TransitionEffectsManagerClass * klass) -{ -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_effects_manager_parent_class = g_type_class_peek_parent (klass); -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - ((TransitionEffectsManagerClass *) klass)->finalize = transition_effects_manager_finalize; -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_type_class_add_private (klass, sizeof (TransitionEffectsManagerPrivate)); -#line 1311 "TransitionEffects.c" -} - - -static void -transition_effects_manager_instance_init (TransitionEffectsManager * self) -{ - GeeHashMap* _tmp0_; - NullTransitionDescriptor* _tmp1_; - RandomEffectDescriptor* _tmp2_; -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv = TRANSITION_EFFECTS_MANAGER_GET_PRIVATE (self); -#line 14 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 14 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->effects = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MAP, GeeMap); -#line 16 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = null_transition_descriptor_new (); -#line 16 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->null_descriptor = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptor); -#line 17 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = random_effect_descriptor_new (); -#line 17 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->random_descriptor = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, SpitTransitionsDescriptor); -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->ref_count = 1; -#line 1337 "TransitionEffects.c" -} - - -static void -transition_effects_manager_finalize (TransitionEffectsManager * obj) -{ - TransitionEffectsManager * self; - PluginsNotifier* _tmp0_; - PluginsNotifier* _tmp1_; - guint _tmp2_; -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TRANSITION_EFFECTS_MANAGER, TransitionEffectsManager); -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_signal_handlers_destroy (self); -#line 25 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = plugins_notifier_get_instance (); -#line 25 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = _tmp0_; -#line 25 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_signal_parse_name ("pluggable-activation", PLUGINS_TYPE_NOTIFIER, &_tmp2_, NULL, FALSE); -#line 25 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_signal_handlers_disconnect_matched (_tmp1_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _transition_effects_manager_load_transitions_plugins_notifier_pluggable_activation, self); -#line 25 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _plugins_notifier_unref0 (_tmp1_); -#line 14 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (self->priv->effects); -#line 16 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (self->priv->null_descriptor); -#line 17 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (self->priv->random_descriptor); -#line 1368 "TransitionEffects.c" -} - - -GType -transition_effects_manager_get_type (void) -{ - static volatile gsize transition_effects_manager_type_id__volatile = 0; - if (g_once_init_enter (&transition_effects_manager_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_transition_effects_manager_init, value_transition_effects_manager_free_value, value_transition_effects_manager_copy_value, value_transition_effects_manager_peek_pointer, "p", value_transition_effects_manager_collect_value, "p", value_transition_effects_manager_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (TransitionEffectsManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) transition_effects_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TransitionEffectsManager), 0, (GInstanceInitFunc) transition_effects_manager_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType transition_effects_manager_type_id; - transition_effects_manager_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TransitionEffectsManager", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&transition_effects_manager_type_id__volatile, transition_effects_manager_type_id); - } - return transition_effects_manager_type_id__volatile; -} - - -gpointer -transition_effects_manager_ref (gpointer instance) -{ - TransitionEffectsManager * self; - self = instance; -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_atomic_int_inc (&self->ref_count); -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return instance; -#line 1397 "TransitionEffects.c" -} - - -void -transition_effects_manager_unref (gpointer instance) -{ - TransitionEffectsManager * self; - self = instance; -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - TRANSITION_EFFECTS_MANAGER_GET_CLASS (self)->finalize (self); -#line 8 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1412 "TransitionEffects.c" - } -} - - -TransitionClock* -transition_clock_construct (GType object_type, - SpitTransitionsDescriptor* desc) -{ - TransitionClock* self = NULL; - SpitTransitionsDescriptor* _tmp0_; - PluginsStandardHostInterface* _tmp1_; - PluginsStandardHostInterface* _tmp2_; - SpitTransitionsEffect* _tmp3_; - SpitTransitionsEffect* _tmp4_; - gint _tmp5_ = 0; - gint _tmp6_ = 0; - const gchar* _tmp7_; - OpTimer* _tmp8_; -#line 136 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (SPIT_TRANSITIONS_IS_DESCRIPTOR (desc), NULL); -#line 136 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = (TransitionClock*) g_type_create_instance (object_type); -#line 137 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = _g_object_ref0 (desc); -#line 137 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (self->priv->desc); -#line 137 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->desc = _tmp0_; -#line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = plugins_standard_host_interface_new (G_TYPE_CHECK_INSTANCE_CAST (desc, SPIT_TYPE_PLUGGABLE, SpitPluggable), "transitions"); -#line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = _tmp1_; -#line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = spit_transitions_descriptor_create (desc, G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface)); -#line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (self->priv->effect); -#line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->effect = _tmp3_; -#line 139 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (_tmp2_); -#line 140 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = self->priv->effect; -#line 140 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - spit_transitions_effect_get_fps (_tmp4_, &_tmp5_, &_tmp6_); -#line 140 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->desired_fps = _tmp5_; -#line 140 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->min_fps = _tmp6_; -#line 142 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp7_ = spit_pluggable_get_pluggable_name (G_TYPE_CHECK_INSTANCE_CAST (desc, SPIT_TYPE_PLUGGABLE, SpitPluggable)); -#line 142 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp8_ = op_timer_new (_tmp7_); -#line 142 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _op_timer_unref0 (self->priv->paint_timer); -#line 142 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->paint_timer = _tmp8_; -#line 136 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return self; -#line 1471 "TransitionEffects.c" -} - - -TransitionClock* -transition_clock_new (SpitTransitionsDescriptor* desc) -{ -#line 136 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return transition_clock_construct (TYPE_TRANSITION_CLOCK, desc); -#line 1480 "TransitionEffects.c" -} - - -gboolean -transition_clock_is_in_progress (TransitionClock* self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_; -#line 151 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (IS_TRANSITION_CLOCK (self), FALSE); -#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = self->priv->cancelled; -#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (!_tmp2_) { -#line 1497 "TransitionEffects.c" - SpitTransitionsMotion* _tmp3_; -#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = self->priv->motion; -#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = _tmp3_ != NULL; -#line 1503 "TransitionEffects.c" - } else { -#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = FALSE; -#line 1507 "TransitionEffects.c" - } -#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp1_) { -#line 1511 "TransitionEffects.c" - gint _tmp4_; - SpitTransitionsMotion* _tmp5_; - gint _tmp6_; - gint _tmp7_; -#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = self->priv->frame_number; -#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp5_ = self->priv->motion; -#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp6_ = spit_transitions_motion_get_total_frames (_tmp5_); -#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp7_ = _tmp6_; -#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = _tmp4_ < _tmp7_; -#line 1526 "TransitionEffects.c" - } else { -#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = FALSE; -#line 1530 "TransitionEffects.c" - } -#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = _tmp0_; -#line 152 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 1536 "TransitionEffects.c" -} - - -static gboolean -_transition_clock_tick_gsource_func (gpointer self) -{ - gboolean result; - result = transition_clock_tick ((TransitionClock*) self); -#line 173 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 1547 "TransitionEffects.c" -} - - -void -transition_clock_start (TransitionClock* self, - SpitTransitionsVisuals* visuals, - SpitTransitionsDirection direction, - gint duration_msec, - TransitionClockRepaintCallback repaint, - void* repaint_target) -{ - gint _tmp0_; - SpitTransitionsVisuals* _tmp1_; - gint _tmp2_; - SpitTransitionsMotion* _tmp3_; - SpitTransitionsEffect* _tmp4_; - SpitTransitionsMotion* _tmp5_; - SpitTransitionsMotion* _tmp6_; - gint _tmp7_; - gint _tmp8_; -#line 155 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (IS_TRANSITION_CLOCK (self)); -#line 155 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 157 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_clock_reset (self); -#line 160 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = self->priv->desired_fps; -#line 160 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp0_ == 0) { -#line 161 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return; -#line 1580 "TransitionEffects.c" - } -#line 163 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = _g_object_ref0 (visuals); -#line 163 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (self->priv->visuals); -#line 163 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->visuals = _tmp1_; -#line 164 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->repaint = repaint; -#line 164 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->repaint_target = repaint_target; -#line 165 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = self->priv->desired_fps; -#line 165 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = spit_transitions_motion_new (direction, _tmp2_, duration_msec); -#line 165 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (self->priv->motion); -#line 165 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->motion = _tmp3_; -#line 167 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = self->priv->effect; -#line 167 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp5_ = self->priv->motion; -#line 167 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - spit_transitions_effect_start (_tmp4_, visuals, _tmp5_); -#line 172 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->time_started = now_ms (); -#line 173 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp6_ = self->priv->motion; -#line 173 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp7_ = spit_transitions_motion_get_tick_msec (_tmp6_); -#line 173 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp8_ = _tmp7_; -#line 173 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->timer_id = g_timeout_add_full (G_PRIORITY_HIGH, (guint) _tmp8_, _transition_clock_tick_gsource_func, transition_clock_ref (self), transition_clock_unref); -#line 1616 "TransitionEffects.c" -} - - -static void -transition_clock_reset (TransitionClock* self) -{ -#line 177 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (IS_TRANSITION_CLOCK (self)); -#line 178 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (self->priv->visuals); -#line 178 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->visuals = NULL; -#line 179 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (self->priv->motion); -#line 179 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->motion = NULL; -#line 180 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->repaint = NULL; -#line 180 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->repaint_target = NULL; -#line 181 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_clock_cancel_timer (self); -#line 182 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->time_started = (gulong) 0; -#line 183 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->frame_number = 1; -#line 184 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->current_fps = 0; -#line 185 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->cancelled = FALSE; -#line 1647 "TransitionEffects.c" -} - - -static void -transition_clock_cancel_timer (TransitionClock* self) -{ - guint _tmp0_; -#line 188 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (IS_TRANSITION_CLOCK (self)); -#line 189 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = self->priv->timer_id; -#line 189 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp0_ != ((guint) 0)) { -#line 1661 "TransitionEffects.c" - guint _tmp1_; -#line 190 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = self->priv->timer_id; -#line 190 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_source_remove (_tmp1_); -#line 191 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->timer_id = (guint) 0; -#line 1669 "TransitionEffects.c" - } -} - - -static gboolean -transition_clock_is_fps_ok (TransitionClock* self) -{ - gboolean result = FALSE; - gulong _tmp0_; - gint _tmp1_; - gdouble elapsed_msec = 0.0; - gulong _tmp2_; - gdouble _tmp3_; - gint _tmp4_; - gdouble _tmp5_; - gint _tmp6_; - gint _tmp7_; - gint _tmp12_; - gint _tmp13_; -#line 196 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (IS_TRANSITION_CLOCK (self), FALSE); -#line 197 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = self->priv->time_started; -#line 197 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _vala_assert (_tmp0_ > ((gulong) 0), "time_started > 0"); -#line 199 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = self->priv->frame_number; -#line 199 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp1_ <= 3) { -#line 200 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = TRUE; -#line 200 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 1703 "TransitionEffects.c" - } -#line 202 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = self->priv->time_started; -#line 202 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - elapsed_msec = (gdouble) (now_ms () - _tmp2_); -#line 203 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = elapsed_msec; -#line 203 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp3_ <= 0.0) { -#line 204 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = TRUE; -#line 204 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 1717 "TransitionEffects.c" - } -#line 206 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = self->priv->frame_number; -#line 206 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp5_ = elapsed_msec; -#line 206 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->current_fps = (gint) ((_tmp4_ * 1000.0) / _tmp5_); -#line 207 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp6_ = self->priv->current_fps; -#line 207 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp7_ = self->priv->min_fps; -#line 207 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp6_ < _tmp7_) { -#line 1731 "TransitionEffects.c" - gint _tmp8_; - gint _tmp9_; - gdouble _tmp10_; - gint _tmp11_; -#line 208 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp8_ = self->priv->current_fps; -#line 208 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp9_ = self->priv->min_fps; -#line 208 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp10_ = elapsed_msec; -#line 208 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp11_ = self->priv->frame_number; -#line 208 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_debug ("TransitionEffects.vala:208: Transition rate of %dfps below minimum of " \ -"%dfps (elapsed=%lf frames=%d)", _tmp8_, _tmp9_, _tmp10_, _tmp11_); -#line 1746 "TransitionEffects.c" - } -#line 212 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp12_ = self->priv->current_fps; -#line 212 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp13_ = self->priv->min_fps; -#line 212 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = _tmp12_ >= _tmp13_; -#line 212 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 1756 "TransitionEffects.c" -} - - -void -transition_clock_cancel (TransitionClock* self) -{ - SpitTransitionsEffect* _tmp0_; - TransitionClockRepaintCallback _tmp1_; - void* _tmp1__target; -#line 216 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (IS_TRANSITION_CLOCK (self)); -#line 217 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->cancelled = TRUE; -#line 218 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_clock_cancel_timer (self); -#line 219 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = self->priv->effect; -#line 219 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - spit_transitions_effect_cancel (_tmp0_); -#line 222 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = self->priv->repaint; -#line 222 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1__target = self->priv->repaint_target; -#line 222 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ (_tmp1__target); -#line 1782 "TransitionEffects.c" -} - - -gboolean -transition_clock_paint (TransitionClock* self, - cairo_t* ctx, - gint width, - gint height) -{ - gboolean result = FALSE; - OpTimer* _tmp0_; - SpitTransitionsEffect* _tmp1_; - SpitTransitionsEffect* _tmp18_; - SpitTransitionsVisuals* _tmp19_; - SpitTransitionsMotion* _tmp20_; - gint _tmp21_; - OpTimer* _tmp22_; -#line 227 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (IS_TRANSITION_CLOCK (self), FALSE); -#line 227 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (ctx != NULL, FALSE); -#line 228 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (!transition_clock_is_in_progress (self)) { -#line 229 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = FALSE; -#line 229 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 1810 "TransitionEffects.c" - } -#line 231 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = self->priv->paint_timer; -#line 231 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - op_timer_start (_tmp0_); -#line 233 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - cairo_save (ctx); -#line 235 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = self->priv->effect; -#line 235 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (spit_transitions_effect_needs_clear_background (_tmp1_)) { -#line 1822 "TransitionEffects.c" - SpitTransitionsVisuals* _tmp2_; - GdkRGBA _tmp3_ = {0}; - GdkRGBA _tmp4_; - gdouble _tmp5_; - SpitTransitionsVisuals* _tmp6_; - GdkRGBA _tmp7_ = {0}; - GdkRGBA _tmp8_; - gdouble _tmp9_; - SpitTransitionsVisuals* _tmp10_; - GdkRGBA _tmp11_ = {0}; - GdkRGBA _tmp12_; - gdouble _tmp13_; - SpitTransitionsVisuals* _tmp14_; - GdkRGBA _tmp15_ = {0}; - GdkRGBA _tmp16_; - gdouble _tmp17_; -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = self->priv->visuals; -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - spit_transitions_visuals_get_bg_color (_tmp2_, &_tmp3_); -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = _tmp3_; -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp5_ = _tmp4_.red; -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp6_ = self->priv->visuals; -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - spit_transitions_visuals_get_bg_color (_tmp6_, &_tmp7_); -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp8_ = _tmp7_; -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp9_ = _tmp8_.green; -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp10_ = self->priv->visuals; -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - spit_transitions_visuals_get_bg_color (_tmp10_, &_tmp11_); -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp12_ = _tmp11_; -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp13_ = _tmp12_.blue; -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp14_ = self->priv->visuals; -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - spit_transitions_visuals_get_bg_color (_tmp14_, &_tmp15_); -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp16_ = _tmp15_; -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp17_ = _tmp16_.alpha; -#line 236 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - cairo_set_source_rgba (ctx, _tmp5_, _tmp9_, _tmp13_, _tmp17_); -#line 238 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - cairo_rectangle (ctx, (gdouble) 0, (gdouble) 0, (gdouble) width, (gdouble) height); -#line 239 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - cairo_fill (ctx); -#line 1877 "TransitionEffects.c" - } -#line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp18_ = self->priv->effect; -#line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp19_ = self->priv->visuals; -#line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp20_ = self->priv->motion; -#line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp21_ = self->priv->frame_number; -#line 242 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - spit_transitions_effect_paint (_tmp18_, _tmp19_, _tmp20_, ctx, width, height, _tmp21_); -#line 244 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - cairo_restore (ctx); -#line 246 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp22_ = self->priv->paint_timer; -#line 246 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - op_timer_stop (_tmp22_); -#line 248 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = TRUE; -#line 248 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 1899 "TransitionEffects.c" -} - - -static gboolean -transition_clock_tick (TransitionClock* self) -{ - gboolean result = FALSE; - TransitionClockRepaintCallback _tmp0_; - void* _tmp0__target; - gint _tmp1_; - SpitTransitionsMotion* _tmp2_; - gint _tmp3_; - gint _tmp4_; -#line 251 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (IS_TRANSITION_CLOCK (self), FALSE); -#line 252 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (!transition_clock_is_fps_ok (self)) { -#line 253 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_debug ("TransitionEffects.vala:253: Cancelling transition: below minimum fps"); -#line 254 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_clock_cancel (self); -#line 1921 "TransitionEffects.c" - } -#line 259 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = self->priv->repaint; -#line 259 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0__target = self->priv->repaint_target; -#line 259 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ (_tmp0__target); -#line 261 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (!transition_clock_is_in_progress (self)) { -#line 262 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_clock_cancel_timer (self); -#line 264 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = FALSE; -#line 264 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 1937 "TransitionEffects.c" - } -#line 268 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = self->priv->frame_number; -#line 268 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = self->priv->motion; -#line 268 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = spit_transitions_motion_get_total_frames (_tmp2_); -#line 268 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = _tmp3_; -#line 268 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp1_ < _tmp4_) { -#line 1949 "TransitionEffects.c" - SpitTransitionsEffect* _tmp5_; - SpitTransitionsVisuals* _tmp6_; - SpitTransitionsMotion* _tmp7_; - gint _tmp8_; - gint _tmp9_; -#line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp5_ = self->priv->effect; -#line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp6_ = self->priv->visuals; -#line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp7_ = self->priv->motion; -#line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp8_ = self->priv->frame_number; -#line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->frame_number = _tmp8_ + 1; -#line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp9_ = self->priv->frame_number; -#line 269 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - spit_transitions_effect_advance (_tmp5_, _tmp6_, _tmp7_, _tmp9_); -#line 1969 "TransitionEffects.c" - } -#line 271 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = TRUE; -#line 271 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 1975 "TransitionEffects.c" -} - - -static void -value_transition_clock_init (GValue* value) -{ -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - value->data[0].v_pointer = NULL; -#line 1984 "TransitionEffects.c" -} - - -static void -value_transition_clock_free_value (GValue* value) -{ -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (value->data[0].v_pointer) { -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_clock_unref (value->data[0].v_pointer); -#line 1995 "TransitionEffects.c" - } -} - - -static void -value_transition_clock_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (src_value->data[0].v_pointer) { -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - dest_value->data[0].v_pointer = transition_clock_ref (src_value->data[0].v_pointer); -#line 2008 "TransitionEffects.c" - } else { -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - dest_value->data[0].v_pointer = NULL; -#line 2012 "TransitionEffects.c" - } -} - - -static gpointer -value_transition_clock_peek_pointer (const GValue* value) -{ -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return value->data[0].v_pointer; -#line 2022 "TransitionEffects.c" -} - - -static gchar* -value_transition_clock_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (collect_values[0].v_pointer) { -#line 2034 "TransitionEffects.c" - TransitionClock * object; - object = collect_values[0].v_pointer; -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (object->parent_instance.g_class == NULL) { -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2041 "TransitionEffects.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2045 "TransitionEffects.c" - } -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - value->data[0].v_pointer = transition_clock_ref (object); -#line 2049 "TransitionEffects.c" - } else { -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - value->data[0].v_pointer = NULL; -#line 2053 "TransitionEffects.c" - } -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return NULL; -#line 2057 "TransitionEffects.c" -} - - -static gchar* -value_transition_clock_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - TransitionClock ** object_p; - object_p = collect_values[0].v_pointer; -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (!object_p) { -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2073 "TransitionEffects.c" - } -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (!value->data[0].v_pointer) { -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - *object_p = NULL; -#line 2079 "TransitionEffects.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - *object_p = value->data[0].v_pointer; -#line 2083 "TransitionEffects.c" - } else { -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - *object_p = transition_clock_ref (value->data[0].v_pointer); -#line 2087 "TransitionEffects.c" - } -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return NULL; -#line 2091 "TransitionEffects.c" -} - - -GParamSpec* -param_spec_transition_clock (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecTransitionClock* spec; -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_TRANSITION_CLOCK), NULL); -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return G_PARAM_SPEC (spec); -#line 2111 "TransitionEffects.c" -} - - -gpointer -value_get_transition_clock (const GValue* value) -{ -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_CLOCK), NULL); -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return value->data[0].v_pointer; -#line 2122 "TransitionEffects.c" -} - - -void -value_set_transition_clock (GValue* value, - gpointer v_object) -{ - TransitionClock * old; -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_CLOCK)); -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - old = value->data[0].v_pointer; -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (v_object) { -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TRANSITION_CLOCK)); -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - value->data[0].v_pointer = v_object; -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_clock_ref (value->data[0].v_pointer); -#line 2145 "TransitionEffects.c" - } else { -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - value->data[0].v_pointer = NULL; -#line 2149 "TransitionEffects.c" - } -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (old) { -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_clock_unref (old); -#line 2155 "TransitionEffects.c" - } -} - - -void -value_take_transition_clock (GValue* value, - gpointer v_object) -{ - TransitionClock * old; -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TRANSITION_CLOCK)); -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - old = value->data[0].v_pointer; -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (v_object) { -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TRANSITION_CLOCK)); -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - value->data[0].v_pointer = v_object; -#line 2177 "TransitionEffects.c" - } else { -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - value->data[0].v_pointer = NULL; -#line 2181 "TransitionEffects.c" - } -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (old) { -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_clock_unref (old); -#line 2187 "TransitionEffects.c" - } -} - - -static void -transition_clock_class_init (TransitionClockClass * klass) -{ -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_clock_parent_class = g_type_class_peek_parent (klass); -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - ((TransitionClockClass *) klass)->finalize = transition_clock_finalize; -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_type_class_add_private (klass, sizeof (TransitionClockPrivate)); -#line 2201 "TransitionEffects.c" -} - - -static void -transition_clock_instance_init (TransitionClock * self) -{ -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv = TRANSITION_CLOCK_GET_PRIVATE (self); -#line 126 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->current_fps = 0; -#line 128 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->visuals = NULL; -#line 129 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->motion = NULL; -#line 130 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->repaint = NULL; -#line 130 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->repaint_target = self; -#line 131 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->timer_id = (guint) 0; -#line 132 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->time_started = (gulong) 0; -#line 133 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->frame_number = 0; -#line 134 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->priv->cancelled = FALSE; -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self->ref_count = 1; -#line 2230 "TransitionEffects.c" -} - - -static void -transition_clock_finalize (TransitionClock * obj) -{ - TransitionClock * self; - gint _tmp0_ = 0; - SpitTransitionsMotion* _tmp1_; - OpTimer* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gint _tmp8_; - gint _tmp9_; - gint _tmp10_; -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TRANSITION_CLOCK, TransitionClock); -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_signal_handlers_destroy (self); -#line 146 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - transition_clock_cancel_timer (self); -#line 148 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp1_ = self->priv->motion; -#line 148 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (_tmp1_ != NULL) { -#line 2256 "TransitionEffects.c" - SpitTransitionsMotion* _tmp2_; - gint _tmp3_; - gint _tmp4_; -#line 148 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp2_ = self->priv->motion; -#line 148 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp3_ = spit_transitions_motion_get_tick_msec (_tmp2_); -#line 148 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp4_ = _tmp3_; -#line 148 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = _tmp4_; -#line 2268 "TransitionEffects.c" - } else { -#line 148 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = 0; -#line 2272 "TransitionEffects.c" - } -#line 147 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp5_ = self->priv->paint_timer; -#line 147 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp6_ = op_timer_to_string (_tmp5_); -#line 147 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp7_ = _tmp6_; -#line 147 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp8_ = self->priv->min_fps; -#line 147 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp9_ = self->priv->desired_fps; -#line 147 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp10_ = self->priv->current_fps; -#line 147 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_debug ("TransitionEffects.vala:147: %s tick_msec=%d min/desired/current fps=%d" \ -"/%d/%d", _tmp7_, _tmp0_, _tmp8_, _tmp9_, _tmp10_); -#line 147 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_free0 (_tmp7_); -#line 122 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (self->priv->desc); -#line 123 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (self->priv->effect); -#line 127 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _op_timer_unref0 (self->priv->paint_timer); -#line 128 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (self->priv->visuals); -#line 129 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _g_object_unref0 (self->priv->motion); -#line 2300 "TransitionEffects.c" -} - - -GType -transition_clock_get_type (void) -{ - static volatile gsize transition_clock_type_id__volatile = 0; - if (g_once_init_enter (&transition_clock_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_transition_clock_init, value_transition_clock_free_value, value_transition_clock_copy_value, value_transition_clock_peek_pointer, "p", value_transition_clock_collect_value, "p", value_transition_clock_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (TransitionClockClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) transition_clock_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TransitionClock), 0, (GInstanceInitFunc) transition_clock_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType transition_clock_type_id; - transition_clock_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TransitionClock", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&transition_clock_type_id__volatile, transition_clock_type_id); - } - return transition_clock_type_id__volatile; -} - - -gpointer -transition_clock_ref (gpointer instance) -{ - TransitionClock * self; - self = instance; -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_atomic_int_inc (&self->ref_count); -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return instance; -#line 2329 "TransitionEffects.c" -} - - -void -transition_clock_unref (gpointer instance) -{ - TransitionClock * self; - self = instance; -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - TRANSITION_CLOCK_GET_CLASS (self)->finalize (self); -#line 116 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2344 "TransitionEffects.c" - } -} - - -static gint -null_transition_descriptor_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_version, - gint max_host_version) -{ - NullTransitionDescriptor * self; - gint result = 0; -#line 278 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptor); -#line 279 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = SPIT_TRANSITIONS_CURRENT_INTERFACE; -#line 279 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 2362 "TransitionEffects.c" -} - - -static const gchar* -null_transition_descriptor_real_get_id (SpitPluggable* base) -{ - NullTransitionDescriptor * self; - const gchar* result = NULL; -#line 282 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptor); -#line 283 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = NULL_TRANSITION_DESCRIPTOR_EFFECT_ID; -#line 283 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 2377 "TransitionEffects.c" -} - - -static const gchar* -null_transition_descriptor_real_get_pluggable_name (SpitPluggable* base) -{ - NullTransitionDescriptor * self; - const gchar* result = NULL; -#line 286 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptor); -#line 287 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = _ ("None"); -#line 287 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 2392 "TransitionEffects.c" -} - - -static void -null_transition_descriptor_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - NullTransitionDescriptor * self; -#line 290 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptor); -#line 290 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (info != NULL); -#line 2405 "TransitionEffects.c" -} - - -static void -null_transition_descriptor_real_activation (SpitPluggable* base, - gboolean enabled) -{ - NullTransitionDescriptor * self; -#line 293 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptor); -#line 2416 "TransitionEffects.c" -} - - -static SpitTransitionsEffect* -null_transition_descriptor_real_create (SpitTransitionsDescriptor* base, - SpitHostInterface* host) -{ - NullTransitionDescriptor * self; - SpitTransitionsEffect* result = NULL; - NullEffect* _tmp0_; -#line 296 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_TRANSITION_DESCRIPTOR, NullTransitionDescriptor); -#line 296 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 297 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = null_effect_new (); -#line 297 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 297 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 2437 "TransitionEffects.c" -} - - -NullTransitionDescriptor* -null_transition_descriptor_construct (GType object_type) -{ - NullTransitionDescriptor * self = NULL; -#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = (NullTransitionDescriptor*) g_object_new (object_type, NULL); -#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return self; -#line 2449 "TransitionEffects.c" -} - - -NullTransitionDescriptor* -null_transition_descriptor_new (void) -{ -#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return null_transition_descriptor_construct (TYPE_NULL_TRANSITION_DESCRIPTOR); -#line 2458 "TransitionEffects.c" -} - - -static void -null_transition_descriptor_class_init (NullTransitionDescriptorClass * klass) -{ -#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - null_transition_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 2467 "TransitionEffects.c" -} - - -static void -null_transition_descriptor_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - null_transition_descriptor_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) null_transition_descriptor_real_get_pluggable_interface; -#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) null_transition_descriptor_real_get_id; -#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) null_transition_descriptor_real_get_pluggable_name; -#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) null_transition_descriptor_real_get_info; -#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) null_transition_descriptor_real_activation; -#line 2486 "TransitionEffects.c" -} - - -static void -null_transition_descriptor_spit_transitions_descriptor_interface_init (SpitTransitionsDescriptorIface * iface) -{ -#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - null_transition_descriptor_spit_transitions_descriptor_parent_iface = g_type_interface_peek_parent (iface); -#line 275 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->create = (SpitTransitionsEffect* (*) (SpitTransitionsDescriptor *, SpitHostInterface*)) null_transition_descriptor_real_create; -#line 2497 "TransitionEffects.c" -} - - -static void -null_transition_descriptor_instance_init (NullTransitionDescriptor * self) -{ -} - - -GType -null_transition_descriptor_get_type (void) -{ - static volatile gsize null_transition_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&null_transition_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (NullTransitionDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) null_transition_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NullTransitionDescriptor), 0, (GInstanceInitFunc) null_transition_descriptor_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) null_transition_descriptor_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_transitions_descriptor_info = { (GInterfaceInitFunc) null_transition_descriptor_spit_transitions_descriptor_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType null_transition_descriptor_type_id; - null_transition_descriptor_type_id = g_type_register_static (G_TYPE_OBJECT, "NullTransitionDescriptor", &g_define_type_info, 0); - g_type_add_interface_static (null_transition_descriptor_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (null_transition_descriptor_type_id, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, &spit_transitions_descriptor_info); - g_once_init_leave (&null_transition_descriptor_type_id__volatile, null_transition_descriptor_type_id); - } - return null_transition_descriptor_type_id__volatile; -} - - -NullEffect* -null_effect_construct (GType object_type) -{ - NullEffect * self = NULL; -#line 302 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = (NullEffect*) g_object_new (object_type, NULL); -#line 302 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return self; -#line 2533 "TransitionEffects.c" -} - - -NullEffect* -null_effect_new (void) -{ -#line 302 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return null_effect_construct (TYPE_NULL_EFFECT); -#line 2542 "TransitionEffects.c" -} - - -static void -null_effect_real_get_fps (SpitTransitionsEffect* base, - gint* desired_fps, - gint* min_fps) -{ - NullEffect * self; - gint _vala_desired_fps = 0; - gint _vala_min_fps = 0; -#line 305 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_EFFECT, NullEffect); -#line 306 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _vala_desired_fps = 0; -#line 307 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _vala_min_fps = 0; -#line 305 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (desired_fps) { -#line 305 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - *desired_fps = _vala_desired_fps; -#line 2564 "TransitionEffects.c" - } -#line 305 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - if (min_fps) { -#line 305 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - *min_fps = _vala_min_fps; -#line 2570 "TransitionEffects.c" - } -} - - -static void -null_effect_real_start (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion) -{ - NullEffect * self; -#line 310 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_EFFECT, NullEffect); -#line 310 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 310 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 2587 "TransitionEffects.c" -} - - -static gboolean -null_effect_real_needs_clear_background (SpitTransitionsEffect* base) -{ - NullEffect * self; - gboolean result = FALSE; -#line 313 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_EFFECT, NullEffect); -#line 314 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = FALSE; -#line 314 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 2602 "TransitionEffects.c" -} - - -static void -null_effect_real_paint (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - cairo_t* ctx, - gint width, - gint height, - gint frame_number) -{ - NullEffect * self; -#line 317 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_EFFECT, NullEffect); -#line 317 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 317 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 317 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (ctx != NULL); -#line 2624 "TransitionEffects.c" -} - - -static void -null_effect_real_advance (SpitTransitionsEffect* base, - SpitTransitionsVisuals* visuals, - SpitTransitionsMotion* motion, - gint frame_number) -{ - NullEffect * self; -#line 321 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_EFFECT, NullEffect); -#line 321 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_VISUALS (visuals)); -#line 321 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (SPIT_TRANSITIONS_IS_MOTION (motion)); -#line 2641 "TransitionEffects.c" -} - - -static void -null_effect_real_cancel (SpitTransitionsEffect* base) -{ - NullEffect * self; -#line 324 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_NULL_EFFECT, NullEffect); -#line 2651 "TransitionEffects.c" -} - - -static void -null_effect_class_init (NullEffectClass * klass) -{ -#line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - null_effect_parent_class = g_type_class_peek_parent (klass); -#line 2660 "TransitionEffects.c" -} - - -static void -null_effect_spit_transitions_effect_interface_init (SpitTransitionsEffectIface * iface) -{ -#line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - null_effect_spit_transitions_effect_parent_iface = g_type_interface_peek_parent (iface); -#line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->get_fps = (void (*) (SpitTransitionsEffect *, gint*, gint*)) null_effect_real_get_fps; -#line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->start = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*)) null_effect_real_start; -#line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->needs_clear_background = (gboolean (*) (SpitTransitionsEffect *)) null_effect_real_needs_clear_background; -#line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->paint = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, cairo_t*, gint, gint, gint)) null_effect_real_paint; -#line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->advance = (void (*) (SpitTransitionsEffect *, SpitTransitionsVisuals*, SpitTransitionsMotion*, gint)) null_effect_real_advance; -#line 301 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->cancel = (void (*) (SpitTransitionsEffect *)) null_effect_real_cancel; -#line 2681 "TransitionEffects.c" -} - - -static void -null_effect_instance_init (NullEffect * self) -{ -} - - -GType -null_effect_get_type (void) -{ - static volatile gsize null_effect_type_id__volatile = 0; - if (g_once_init_enter (&null_effect_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (NullEffectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) null_effect_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NullEffect), 0, (GInstanceInitFunc) null_effect_instance_init, NULL }; - static const GInterfaceInfo spit_transitions_effect_info = { (GInterfaceInitFunc) null_effect_spit_transitions_effect_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType null_effect_type_id; - null_effect_type_id = g_type_register_static (G_TYPE_OBJECT, "NullEffect", &g_define_type_info, 0); - g_type_add_interface_static (null_effect_type_id, SPIT_TRANSITIONS_TYPE_EFFECT, &spit_transitions_effect_info); - g_once_init_leave (&null_effect_type_id__volatile, null_effect_type_id); - } - return null_effect_type_id__volatile; -} - - -static gint -random_effect_descriptor_real_get_pluggable_interface (SpitPluggable* base, - gint min_host_version, - gint max_host_version) -{ - RandomEffectDescriptor * self; - gint result = 0; -#line 330 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptor); -#line 331 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = SPIT_TRANSITIONS_CURRENT_INTERFACE; -#line 331 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 2720 "TransitionEffects.c" -} - - -static const gchar* -random_effect_descriptor_real_get_id (SpitPluggable* base) -{ - RandomEffectDescriptor * self; - const gchar* result = NULL; -#line 334 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptor); -#line 335 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = RANDOM_EFFECT_DESCRIPTOR_EFFECT_ID; -#line 335 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 2735 "TransitionEffects.c" -} - - -static const gchar* -random_effect_descriptor_real_get_pluggable_name (SpitPluggable* base) -{ - RandomEffectDescriptor * self; - const gchar* result = NULL; -#line 338 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptor); -#line 339 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = _ ("Random"); -#line 339 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 2750 "TransitionEffects.c" -} - - -static void -random_effect_descriptor_real_get_info (SpitPluggable* base, - SpitPluggableInfo* info) -{ - RandomEffectDescriptor * self; -#line 342 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptor); -#line 342 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_if_fail (info != NULL); -#line 2763 "TransitionEffects.c" -} - - -static void -random_effect_descriptor_real_activation (SpitPluggable* base, - gboolean enabled) -{ - RandomEffectDescriptor * self; -#line 345 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptor); -#line 2774 "TransitionEffects.c" -} - - -static SpitTransitionsEffect* -random_effect_descriptor_real_create (SpitTransitionsDescriptor* base, - SpitHostInterface* host) -{ - RandomEffectDescriptor * self; - SpitTransitionsEffect* result = NULL; - NullEffect* _tmp0_; -#line 348 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RANDOM_EFFECT_DESCRIPTOR, RandomEffectDescriptor); -#line 348 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - g_return_val_if_fail (SPIT_IS_HOST_INTERFACE (host), NULL); -#line 349 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - _tmp0_ = null_effect_new (); -#line 349 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TRANSITIONS_TYPE_EFFECT, SpitTransitionsEffect); -#line 349 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return result; -#line 2795 "TransitionEffects.c" -} - - -RandomEffectDescriptor* -random_effect_descriptor_construct (GType object_type) -{ - RandomEffectDescriptor * self = NULL; -#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - self = (RandomEffectDescriptor*) g_object_new (object_type, NULL); -#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return self; -#line 2807 "TransitionEffects.c" -} - - -RandomEffectDescriptor* -random_effect_descriptor_new (void) -{ -#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - return random_effect_descriptor_construct (TYPE_RANDOM_EFFECT_DESCRIPTOR); -#line 2816 "TransitionEffects.c" -} - - -static void -random_effect_descriptor_class_init (RandomEffectDescriptorClass * klass) -{ -#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - random_effect_descriptor_parent_class = g_type_class_peek_parent (klass); -#line 2825 "TransitionEffects.c" -} - - -static void -random_effect_descriptor_spit_pluggable_interface_init (SpitPluggableIface * iface) -{ -#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - random_effect_descriptor_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); -#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) random_effect_descriptor_real_get_pluggable_interface; -#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->get_id = (const gchar* (*) (SpitPluggable *)) random_effect_descriptor_real_get_id; -#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) random_effect_descriptor_real_get_pluggable_name; -#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) random_effect_descriptor_real_get_info; -#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->activation = (void (*) (SpitPluggable *, gboolean)) random_effect_descriptor_real_activation; -#line 2844 "TransitionEffects.c" -} - - -static void -random_effect_descriptor_spit_transitions_descriptor_interface_init (SpitTransitionsDescriptorIface * iface) -{ -#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - random_effect_descriptor_spit_transitions_descriptor_parent_iface = g_type_interface_peek_parent (iface); -#line 327 "/home/jens/Source/shotwell/src/slideshow/TransitionEffects.vala" - iface->create = (SpitTransitionsEffect* (*) (SpitTransitionsDescriptor *, SpitHostInterface*)) random_effect_descriptor_real_create; -#line 2855 "TransitionEffects.c" -} - - -static void -random_effect_descriptor_instance_init (RandomEffectDescriptor * self) -{ -} - - -GType -random_effect_descriptor_get_type (void) -{ - static volatile gsize random_effect_descriptor_type_id__volatile = 0; - if (g_once_init_enter (&random_effect_descriptor_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (RandomEffectDescriptorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) random_effect_descriptor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RandomEffectDescriptor), 0, (GInstanceInitFunc) random_effect_descriptor_instance_init, NULL }; - static const GInterfaceInfo spit_pluggable_info = { (GInterfaceInitFunc) random_effect_descriptor_spit_pluggable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo spit_transitions_descriptor_info = { (GInterfaceInitFunc) random_effect_descriptor_spit_transitions_descriptor_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType random_effect_descriptor_type_id; - random_effect_descriptor_type_id = g_type_register_static (G_TYPE_OBJECT, "RandomEffectDescriptor", &g_define_type_info, 0); - g_type_add_interface_static (random_effect_descriptor_type_id, SPIT_TYPE_PLUGGABLE, &spit_pluggable_info); - g_type_add_interface_static (random_effect_descriptor_type_id, SPIT_TRANSITIONS_TYPE_DESCRIPTOR, &spit_transitions_descriptor_info); - g_once_init_leave (&random_effect_descriptor_type_id__volatile, random_effect_descriptor_type_id); - } - return random_effect_descriptor_type_id__volatile; -} - - - diff --git a/src/tags/HierarchicalTagIndex.c b/src/tags/HierarchicalTagIndex.c deleted file mode 100644 index 44d6fae..0000000 --- a/src/tags/HierarchicalTagIndex.c +++ /dev/null @@ -1,1086 +0,0 @@ -/* HierarchicalTagIndex.c generated by valac 0.40.4, the Vala compiler - * generated from HierarchicalTagIndex.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include - - -#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ()) -#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex)) -#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) -#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX)) -#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX)) -#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) - -typedef struct _HierarchicalTagIndex HierarchicalTagIndex; -typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass; -typedef struct _HierarchicalTagIndexPrivate HierarchicalTagIndexPrivate; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL))) - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ()) -#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection)) -#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) -#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION)) -#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION)) -#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) - -typedef struct _TagSourceCollection TagSourceCollection; -typedef struct _TagSourceCollectionClass TagSourceCollectionClass; -typedef struct _ParamSpecHierarchicalTagIndex ParamSpecHierarchicalTagIndex; - -struct _HierarchicalTagIndex { - GTypeInstance parent_instance; - volatile int ref_count; - HierarchicalTagIndexPrivate * priv; -}; - -struct _HierarchicalTagIndexClass { - GTypeClass parent_class; - void (*finalize) (HierarchicalTagIndex *self); -}; - -struct _HierarchicalTagIndexPrivate { - GeeMap* tag_table; - GeeSortedSet* known_paths; -}; - -struct _ParamSpecHierarchicalTagIndex { - GParamSpec parent_instance; -}; - - -static gpointer hierarchical_tag_index_parent_class = NULL; -extern TagSourceCollection* tag_global; - -gpointer hierarchical_tag_index_ref (gpointer instance); -void hierarchical_tag_index_unref (gpointer instance); -GParamSpec* param_spec_hierarchical_tag_index (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_hierarchical_tag_index (GValue* value, - gpointer v_object); -void value_take_hierarchical_tag_index (GValue* value, - gpointer v_object); -gpointer value_get_hierarchical_tag_index (const GValue* value); -GType hierarchical_tag_index_get_type (void) G_GNUC_CONST; -#define HIERARCHICAL_TAG_INDEX_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexPrivate)) -HierarchicalTagIndex* hierarchical_tag_index_new (void); -HierarchicalTagIndex* hierarchical_tag_index_construct (GType object_type); -HierarchicalTagIndex* hierarchical_tag_index_from_paths (GeeCollection* client_paths); -#define TAG_PATH_SEPARATOR_STRING "/" -GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path); -void hierarchical_tag_index_add_path (HierarchicalTagIndex* self, - const gchar* tag, - const gchar* path); -HierarchicalTagIndex* hierarchical_tag_index_get_global_index (void); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType tag_source_collection_get_type (void) G_GNUC_CONST; -GeeCollection* tag_source_collection_get_all_names (TagSourceCollection* self); -GeeCollection* hierarchical_tag_index_get_all_paths (HierarchicalTagIndex* self); -gboolean hierarchical_tag_index_is_tag_in_index (HierarchicalTagIndex* self, - const gchar* tag); -GeeCollection* hierarchical_tag_index_get_all_tags (HierarchicalTagIndex* self); -gboolean hierarchical_tag_index_is_path_known (HierarchicalTagIndex* self, - const gchar* path); -gchar* hierarchical_tag_index_get_path_for_name (HierarchicalTagIndex* self, - const gchar* name); -gchar** hierarchical_tag_index_get_paths_for_names_array (HierarchicalTagIndex* self, - gchar** names, - int names_length1, - int* result_length1); -static void _vala_array_add68 (gchar** * array, - int* length, - int* size, - gchar* value); -static void hierarchical_tag_index_finalize (HierarchicalTagIndex * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -HierarchicalTagIndex* -hierarchical_tag_index_construct (GType object_type) -{ - HierarchicalTagIndex* self = NULL; - GeeHashMap* _tmp0_; - GeeTreeSet* _tmp1_; -#line 11 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - self = (HierarchicalTagIndex*) g_type_create_instance (object_type); -#line 12 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_ARRAY_LIST, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 12 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_object_unref0 (self->priv->tag_table); -#line 12 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - self->priv->tag_table = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MAP, GeeMap); -#line 13 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp1_ = gee_tree_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 13 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_object_unref0 (self->priv->known_paths); -#line 13 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - self->priv->known_paths = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_SORTED_SET, GeeSortedSet); -#line 11 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return self; -#line 197 "HierarchicalTagIndex.c" -} - - -HierarchicalTagIndex* -hierarchical_tag_index_new (void) -{ -#line 11 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return hierarchical_tag_index_construct (TYPE_HIERARCHICAL_TAG_INDEX); -#line 206 "HierarchicalTagIndex.c" -} - - -HierarchicalTagIndex* -hierarchical_tag_index_from_paths (GeeCollection* client_paths) -{ - HierarchicalTagIndex* result = NULL; - GeeCollection* paths = NULL; - GeeCollection* _tmp0_; - GeeCollection* _tmp1_; - HierarchicalTagIndex* _result_ = NULL; - HierarchicalTagIndex* _tmp2_; -#line 16 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (client_paths), NULL); -#line 17 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp0_ = gee_collection_get_read_only_view (client_paths); -#line 17 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp1_ = _tmp0_; -#line 17 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - paths = _tmp1_; -#line 19 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp2_ = hierarchical_tag_index_new (); -#line 19 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _result_ = _tmp2_; -#line 231 "HierarchicalTagIndex.c" - { - GeeIterator* _path_it = NULL; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; -#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp3_ = paths; -#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _path_it = _tmp4_; -#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - while (TRUE) { -#line 244 "HierarchicalTagIndex.c" - GeeIterator* _tmp5_; - gchar* path = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - const gchar* _tmp8_; -#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp5_ = _path_it; -#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - break; -#line 256 "HierarchicalTagIndex.c" - } -#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp6_ = _path_it; -#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - path = (gchar*) _tmp7_; -#line 22 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp8_ = path; -#line 22 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (g_str_has_prefix (_tmp8_, TAG_PATH_SEPARATOR_STRING)) { -#line 268 "HierarchicalTagIndex.c" - GeeCollection* components = NULL; - const gchar* _tmp9_; - GeeList* _tmp10_; -#line 23 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp9_ = path; -#line 23 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp10_ = hierarchical_tag_utilities_enumerate_path_components (_tmp9_); -#line 23 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - components = G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_COLLECTION, GeeCollection); -#line 278 "HierarchicalTagIndex.c" - { - GeeIterator* _component_it = NULL; - GeeCollection* _tmp11_; - GeeIterator* _tmp12_; -#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp11_ = components; -#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp12_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _component_it = _tmp12_; -#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - while (TRUE) { -#line 291 "HierarchicalTagIndex.c" - GeeIterator* _tmp13_; - gchar* component = NULL; - GeeIterator* _tmp14_; - gpointer _tmp15_; - HierarchicalTagIndex* _tmp16_; - const gchar* _tmp17_; - const gchar* _tmp18_; -#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp13_ = _component_it; -#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (!gee_iterator_next (_tmp13_)) { -#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - break; -#line 305 "HierarchicalTagIndex.c" - } -#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp14_ = _component_it; -#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp15_ = gee_iterator_get (_tmp14_); -#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - component = (gchar*) _tmp15_; -#line 27 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp16_ = _result_; -#line 27 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp17_ = component; -#line 27 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp18_ = path; -#line 27 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - hierarchical_tag_index_add_path (_tmp16_, _tmp17_, _tmp18_); -#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_free0 (component); -#line 323 "HierarchicalTagIndex.c" - } -#line 26 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_object_unref0 (_component_it); -#line 327 "HierarchicalTagIndex.c" - } -#line 22 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_object_unref0 (components); -#line 331 "HierarchicalTagIndex.c" - } else { - HierarchicalTagIndex* _tmp19_; - const gchar* _tmp20_; - const gchar* _tmp21_; -#line 29 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp19_ = _result_; -#line 29 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp20_ = path; -#line 29 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp21_ = path; -#line 29 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - hierarchical_tag_index_add_path (_tmp19_, _tmp20_, _tmp21_); -#line 344 "HierarchicalTagIndex.c" - } -#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_free0 (path); -#line 348 "HierarchicalTagIndex.c" - } -#line 21 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_object_unref0 (_path_it); -#line 352 "HierarchicalTagIndex.c" - } -#line 33 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - result = _result_; -#line 33 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_object_unref0 (paths); -#line 33 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return result; -#line 360 "HierarchicalTagIndex.c" -} - - -HierarchicalTagIndex* -hierarchical_tag_index_get_global_index (void) -{ - HierarchicalTagIndex* result = NULL; - TagSourceCollection* _tmp0_; - GeeCollection* _tmp1_; - GeeCollection* _tmp2_; - HierarchicalTagIndex* _tmp3_; - HierarchicalTagIndex* _tmp4_; -#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp0_ = tag_global; -#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp1_ = tag_source_collection_get_all_names (_tmp0_); -#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp2_ = _tmp1_; -#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp3_ = hierarchical_tag_index_from_paths (_tmp2_); -#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp4_ = _tmp3_; -#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_object_unref0 (_tmp2_); -#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - result = _tmp4_; -#line 37 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return result; -#line 389 "HierarchicalTagIndex.c" -} - - -void -hierarchical_tag_index_add_path (HierarchicalTagIndex* self, - const gchar* tag, - const gchar* path) -{ - GeeMap* _tmp0_; - GeeMap* _tmp4_; - gpointer _tmp5_; - GeeCollection* _tmp6_; - GeeSortedSet* _tmp7_; -#line 40 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_if_fail (IS_HIERARCHICAL_TAG_INDEX (self)); -#line 40 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_if_fail (tag != NULL); -#line 40 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_if_fail (path != NULL); -#line 41 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp0_ = self->priv->tag_table; -#line 41 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (!gee_map_has_key (_tmp0_, tag)) { -#line 413 "HierarchicalTagIndex.c" - GeeMap* _tmp1_; - GeeArrayList* _tmp2_; - GeeArrayList* _tmp3_; -#line 42 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp1_ = self->priv->tag_table; -#line 42 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp2_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 42 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp3_ = _tmp2_; -#line 42 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - gee_map_set (_tmp1_, tag, G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 42 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_object_unref0 (_tmp3_); -#line 427 "HierarchicalTagIndex.c" - } -#line 45 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp4_ = self->priv->tag_table; -#line 45 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp5_ = gee_map_get (_tmp4_, tag); -#line 45 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp6_ = (GeeCollection*) _tmp5_; -#line 45 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - gee_collection_add (_tmp6_, path); -#line 45 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_object_unref0 (_tmp6_); -#line 46 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp7_ = self->priv->known_paths; -#line 46 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection), path); -#line 443 "HierarchicalTagIndex.c" -} - - -GeeCollection* -hierarchical_tag_index_get_all_paths (HierarchicalTagIndex* self) -{ - GeeCollection* result = NULL; - GeeSortedSet* _tmp0_; - GeeSortedSet* _tmp1_; - GeeSortedSet* _tmp2_; -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), NULL); -#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp0_ = self->priv->known_paths; -#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp1_ = gee_sorted_set_get_read_only_view (_tmp0_); -#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp2_ = _tmp1_; -#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return result; -#line 466 "HierarchicalTagIndex.c" -} - - -gboolean -hierarchical_tag_index_is_tag_in_index (HierarchicalTagIndex* self, - const gchar* tag) -{ - gboolean result = FALSE; - GeeMap* _tmp0_; -#line 53 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), FALSE); -#line 53 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_val_if_fail (tag != NULL, FALSE); -#line 54 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp0_ = self->priv->tag_table; -#line 54 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - result = gee_map_has_key (_tmp0_, tag); -#line 54 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return result; -#line 486 "HierarchicalTagIndex.c" -} - - -GeeCollection* -hierarchical_tag_index_get_all_tags (HierarchicalTagIndex* self) -{ - GeeCollection* result = NULL; - GeeMap* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; -#line 57 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), NULL); -#line 58 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp0_ = self->priv->tag_table; -#line 58 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp1_ = gee_map_get_keys (_tmp0_); -#line 58 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp2_ = _tmp1_; -#line 58 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_COLLECTION, GeeCollection); -#line 58 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return result; -#line 509 "HierarchicalTagIndex.c" -} - - -gboolean -hierarchical_tag_index_is_path_known (HierarchicalTagIndex* self, - const gchar* path) -{ - gboolean result = FALSE; - GeeSortedSet* _tmp0_; -#line 61 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), FALSE); -#line 61 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_val_if_fail (path != NULL, FALSE); -#line 62 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp0_ = self->priv->known_paths; -#line 62 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - result = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), path); -#line 62 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return result; -#line 529 "HierarchicalTagIndex.c" -} - - -gchar* -hierarchical_tag_index_get_path_for_name (HierarchicalTagIndex* self, - const gchar* name) -{ - gchar* result = NULL; - GeeCollection* paths = NULL; - GeeMap* _tmp1_; - gpointer _tmp2_; -#line 65 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), NULL); -#line 65 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 66 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (!hierarchical_tag_index_is_tag_in_index (self, name)) { -#line 547 "HierarchicalTagIndex.c" - gchar* _tmp0_; -#line 67 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp0_ = g_strdup (name); -#line 67 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - result = _tmp0_; -#line 67 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return result; -#line 555 "HierarchicalTagIndex.c" - } -#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp1_ = self->priv->tag_table; -#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp2_ = gee_map_get (_tmp1_, name); -#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - paths = (GeeCollection*) _tmp2_; -#line 563 "HierarchicalTagIndex.c" - { - GeeIterator* _path_it = NULL; - GeeCollection* _tmp3_; - GeeIterator* _tmp4_; -#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp3_ = paths; -#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _path_it = _tmp4_; -#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - while (TRUE) { -#line 576 "HierarchicalTagIndex.c" - GeeIterator* _tmp5_; - gchar* path = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - GeeList* components = NULL; - const gchar* _tmp8_; - GeeList* _tmp9_; - GeeList* _tmp10_; - GeeList* _tmp11_; - gint _tmp12_; - gint _tmp13_; - gpointer _tmp14_; - gchar* _tmp15_; - gboolean _tmp16_; -#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp5_ = _path_it; -#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - break; -#line 597 "HierarchicalTagIndex.c" - } -#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp6_ = _path_it; -#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - path = (gchar*) _tmp7_; -#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp8_ = path; -#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp9_ = hierarchical_tag_utilities_enumerate_path_components (_tmp8_); -#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - components = _tmp9_; -#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp10_ = components; -#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp11_ = components; -#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp13_ = _tmp12_; -#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp14_ = gee_list_get (_tmp10_, _tmp13_ - 1); -#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp15_ = (gchar*) _tmp14_; -#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp16_ = g_strcmp0 (_tmp15_, name) == 0; -#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_free0 (_tmp15_); -#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (_tmp16_) { -#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - result = path; -#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_object_unref0 (components); -#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_object_unref0 (_path_it); -#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_object_unref0 (paths); -#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return result; -#line 639 "HierarchicalTagIndex.c" - } -#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_object_unref0 (components); -#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_free0 (path); -#line 645 "HierarchicalTagIndex.c" - } -#line 70 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_object_unref0 (_path_it); -#line 649 "HierarchicalTagIndex.c" - } -#line 77 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_assert_not_reached (); -#line 65 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_object_unref0 (paths); -#line 655 "HierarchicalTagIndex.c" -} - - -static void -_vala_array_add68 (gchar** * array, - int* length, - int* size, - gchar* value) -{ -#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if ((*length) == (*size)) { -#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - *array = g_renew (gchar*, *array, (*size) + 1); -#line 671 "HierarchicalTagIndex.c" - } -#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - (*array)[(*length)++] = value; -#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - (*array)[*length] = NULL; -#line 677 "HierarchicalTagIndex.c" -} - - -gchar** -hierarchical_tag_index_get_paths_for_names_array (HierarchicalTagIndex* self, - gchar** names, - int names_length1, - int* result_length1) -{ - gchar** result = NULL; - gchar** _result_ = NULL; - gchar** _tmp0_; - gint _result__length1; - gint __result__size_; - gchar** _tmp5_; - gint _tmp5__length1; -#line 80 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_val_if_fail (IS_HIERARCHICAL_TAG_INDEX (self), NULL); -#line 81 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp0_ = g_new0 (gchar*, 0 + 1); -#line 81 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _result_ = _tmp0_; -#line 81 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _result__length1 = 0; -#line 81 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - __result__size_ = _result__length1; -#line 704 "HierarchicalTagIndex.c" - { - gchar** name_collection = NULL; - gint name_collection_length1 = 0; - gint _name_collection_size_ = 0; - gint name_it = 0; -#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - name_collection = names; -#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - name_collection_length1 = names_length1; -#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - for (name_it = 0; name_it < names_length1; name_it = name_it + 1) { -#line 716 "HierarchicalTagIndex.c" - gchar* _tmp1_; - gchar* name = NULL; -#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp1_ = g_strdup (name_collection[name_it]); -#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - name = _tmp1_; -#line 723 "HierarchicalTagIndex.c" - { - gchar** _tmp2_; - gint _tmp2__length1; - const gchar* _tmp3_; - gchar* _tmp4_; -#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp2_ = _result_; -#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp2__length1 = _result__length1; -#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp3_ = name; -#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp4_ = hierarchical_tag_index_get_path_for_name (self, _tmp3_); -#line 84 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _vala_array_add68 (&_result_, &_result__length1, &__result__size_, _tmp4_); -#line 83 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_free0 (name); -#line 741 "HierarchicalTagIndex.c" - } - } - } -#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp5_ = _result_; -#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _tmp5__length1 = _result__length1; -#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (result_length1) { -#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - *result_length1 = _tmp5__length1; -#line 753 "HierarchicalTagIndex.c" - } -#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - result = _tmp5_; -#line 86 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return result; -#line 759 "HierarchicalTagIndex.c" -} - - -static void -value_hierarchical_tag_index_init (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - value->data[0].v_pointer = NULL; -#line 768 "HierarchicalTagIndex.c" -} - - -static void -value_hierarchical_tag_index_free_value (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - hierarchical_tag_index_unref (value->data[0].v_pointer); -#line 779 "HierarchicalTagIndex.c" - } -} - - -static void -value_hierarchical_tag_index_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (src_value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - dest_value->data[0].v_pointer = hierarchical_tag_index_ref (src_value->data[0].v_pointer); -#line 792 "HierarchicalTagIndex.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - dest_value->data[0].v_pointer = NULL; -#line 796 "HierarchicalTagIndex.c" - } -} - - -static gpointer -value_hierarchical_tag_index_peek_pointer (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return value->data[0].v_pointer; -#line 806 "HierarchicalTagIndex.c" -} - - -static gchar* -value_hierarchical_tag_index_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (collect_values[0].v_pointer) { -#line 818 "HierarchicalTagIndex.c" - HierarchicalTagIndex * object; - object = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (object->parent_instance.g_class == NULL) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 825 "HierarchicalTagIndex.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 829 "HierarchicalTagIndex.c" - } -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - value->data[0].v_pointer = hierarchical_tag_index_ref (object); -#line 833 "HierarchicalTagIndex.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - value->data[0].v_pointer = NULL; -#line 837 "HierarchicalTagIndex.c" - } -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return NULL; -#line 841 "HierarchicalTagIndex.c" -} - - -static gchar* -value_hierarchical_tag_index_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - HierarchicalTagIndex ** object_p; - object_p = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (!object_p) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 857 "HierarchicalTagIndex.c" - } -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (!value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - *object_p = NULL; -#line 863 "HierarchicalTagIndex.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - *object_p = value->data[0].v_pointer; -#line 867 "HierarchicalTagIndex.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - *object_p = hierarchical_tag_index_ref (value->data[0].v_pointer); -#line 871 "HierarchicalTagIndex.c" - } -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return NULL; -#line 875 "HierarchicalTagIndex.c" -} - - -GParamSpec* -param_spec_hierarchical_tag_index (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecHierarchicalTagIndex* spec; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_HIERARCHICAL_TAG_INDEX), NULL); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return G_PARAM_SPEC (spec); -#line 895 "HierarchicalTagIndex.c" -} - - -gpointer -value_get_hierarchical_tag_index (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_INDEX), NULL); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return value->data[0].v_pointer; -#line 906 "HierarchicalTagIndex.c" -} - - -void -value_set_hierarchical_tag_index (GValue* value, - gpointer v_object) -{ - HierarchicalTagIndex * old; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_INDEX)); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HIERARCHICAL_TAG_INDEX)); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - value->data[0].v_pointer = v_object; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - hierarchical_tag_index_ref (value->data[0].v_pointer); -#line 929 "HierarchicalTagIndex.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - value->data[0].v_pointer = NULL; -#line 933 "HierarchicalTagIndex.c" - } -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - hierarchical_tag_index_unref (old); -#line 939 "HierarchicalTagIndex.c" - } -} - - -void -value_take_hierarchical_tag_index (GValue* value, - gpointer v_object) -{ - HierarchicalTagIndex * old; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_INDEX)); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HIERARCHICAL_TAG_INDEX)); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - value->data[0].v_pointer = v_object; -#line 961 "HierarchicalTagIndex.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - value->data[0].v_pointer = NULL; -#line 965 "HierarchicalTagIndex.c" - } -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - hierarchical_tag_index_unref (old); -#line 971 "HierarchicalTagIndex.c" - } -} - - -static void -hierarchical_tag_index_class_init (HierarchicalTagIndexClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - hierarchical_tag_index_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - ((HierarchicalTagIndexClass *) klass)->finalize = hierarchical_tag_index_finalize; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_type_class_add_private (klass, sizeof (HierarchicalTagIndexPrivate)); -#line 985 "HierarchicalTagIndex.c" -} - - -static void -hierarchical_tag_index_instance_init (HierarchicalTagIndex * self) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - self->priv = HIERARCHICAL_TAG_INDEX_GET_PRIVATE (self); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - self->ref_count = 1; -#line 996 "HierarchicalTagIndex.c" -} - - -static void -hierarchical_tag_index_finalize (HierarchicalTagIndex * obj) -{ - HierarchicalTagIndex * self; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_signal_handlers_destroy (self); -#line 8 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_object_unref0 (self->priv->tag_table); -#line 9 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - _g_object_unref0 (self->priv->known_paths); -#line 1012 "HierarchicalTagIndex.c" -} - - -GType -hierarchical_tag_index_get_type (void) -{ - static volatile gsize hierarchical_tag_index_type_id__volatile = 0; - if (g_once_init_enter (&hierarchical_tag_index_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_hierarchical_tag_index_init, value_hierarchical_tag_index_free_value, value_hierarchical_tag_index_copy_value, value_hierarchical_tag_index_peek_pointer, "p", value_hierarchical_tag_index_collect_value, "p", value_hierarchical_tag_index_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (HierarchicalTagIndexClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) hierarchical_tag_index_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HierarchicalTagIndex), 0, (GInstanceInitFunc) hierarchical_tag_index_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType hierarchical_tag_index_type_id; - hierarchical_tag_index_type_id = g_type_register_fundamental (g_type_fundamental_next (), "HierarchicalTagIndex", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&hierarchical_tag_index_type_id__volatile, hierarchical_tag_index_type_id); - } - return hierarchical_tag_index_type_id__volatile; -} - - -gpointer -hierarchical_tag_index_ref (gpointer instance) -{ - HierarchicalTagIndex * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_atomic_int_inc (&self->ref_count); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - return instance; -#line 1041 "HierarchicalTagIndex.c" -} - - -void -hierarchical_tag_index_unref (gpointer instance) -{ - HierarchicalTagIndex * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - HIERARCHICAL_TAG_INDEX_GET_CLASS (self)->finalize (self); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagIndex.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1056 "HierarchicalTagIndex.c" - } -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/tags/HierarchicalTagUtilities.c b/src/tags/HierarchicalTagUtilities.c deleted file mode 100644 index 554ce6c..0000000 --- a/src/tags/HierarchicalTagUtilities.c +++ /dev/null @@ -1,2251 +0,0 @@ -/* HierarchicalTagUtilities.c generated by valac 0.40.4, the Vala compiler - * generated from HierarchicalTagUtilities.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include - - -#define TYPE_HIERARCHICAL_TAG_UTILITIES (hierarchical_tag_utilities_get_type ()) -#define HIERARCHICAL_TAG_UTILITIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_UTILITIES, HierarchicalTagUtilities)) -#define HIERARCHICAL_TAG_UTILITIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_UTILITIES, HierarchicalTagUtilitiesClass)) -#define IS_HIERARCHICAL_TAG_UTILITIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_UTILITIES)) -#define IS_HIERARCHICAL_TAG_UTILITIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_UTILITIES)) -#define HIERARCHICAL_TAG_UTILITIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_UTILITIES, HierarchicalTagUtilitiesClass)) - -typedef struct _HierarchicalTagUtilities HierarchicalTagUtilities; -typedef struct _HierarchicalTagUtilitiesClass HierarchicalTagUtilitiesClass; -typedef struct _HierarchicalTagUtilitiesPrivate HierarchicalTagUtilitiesPrivate; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_HIERARCHICAL_TAG_INDEX (hierarchical_tag_index_get_type ()) -#define HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndex)) -#define HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) -#define IS_HIERARCHICAL_TAG_INDEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HIERARCHICAL_TAG_INDEX)) -#define IS_HIERARCHICAL_TAG_INDEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HIERARCHICAL_TAG_INDEX)) -#define HIERARCHICAL_TAG_INDEX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HIERARCHICAL_TAG_INDEX, HierarchicalTagIndexClass)) - -typedef struct _HierarchicalTagIndex HierarchicalTagIndex; -typedef struct _HierarchicalTagIndexClass HierarchicalTagIndexClass; -#define _hierarchical_tag_index_unref0(var) ((var == NULL) ? NULL : (var = (hierarchical_tag_index_unref (var), NULL))) - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ()) -#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection)) -#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) -#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION)) -#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION)) -#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) - -typedef struct _TagSourceCollection TagSourceCollection; -typedef struct _TagSourceCollectionClass TagSourceCollectionClass; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; -typedef struct _ParamSpecHierarchicalTagUtilities ParamSpecHierarchicalTagUtilities; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _HierarchicalTagUtilities { - GTypeInstance parent_instance; - volatile int ref_count; - HierarchicalTagUtilitiesPrivate * priv; -}; - -struct _HierarchicalTagUtilitiesClass { - GTypeClass parent_class; - void (*finalize) (HierarchicalTagUtilities *self); -}; - -struct _ParamSpecHierarchicalTagUtilities { - GParamSpec parent_instance; -}; - - -static gpointer hierarchical_tag_utilities_parent_class = NULL; -extern TagSourceCollection* tag_global; - -gpointer hierarchical_tag_utilities_ref (gpointer instance); -void hierarchical_tag_utilities_unref (gpointer instance); -GParamSpec* param_spec_hierarchical_tag_utilities (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_hierarchical_tag_utilities (GValue* value, - gpointer v_object); -void value_take_hierarchical_tag_utilities (GValue* value, - gpointer v_object); -gpointer value_get_hierarchical_tag_utilities (const GValue* value); -GType hierarchical_tag_utilities_get_type (void) G_GNUC_CONST; -gchar* hierarchical_tag_utilities_flat_to_hierarchical (const gchar* name); -#define TAG_PATH_SEPARATOR_STRING "/" -gchar* hierarchical_tag_utilities_hierarchical_to_flat (const gchar* path); -GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path); -GeeList* hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path); -gchar* hierarchical_tag_utilities_join_path_components (gchar** path_components, - int path_components_length1); -gchar* hierarchical_tag_utilities_get_basename (const gchar* in_path); -gchar* hierarchical_tag_utilities_canonicalize (const gchar* in_tag, - const gchar* foreign_separator); -gchar* hierarchical_tag_utilities_make_flat_tag_safe (const gchar* in_tag); -gpointer hierarchical_tag_index_ref (gpointer instance); -void hierarchical_tag_index_unref (gpointer instance); -GParamSpec* param_spec_hierarchical_tag_index (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_hierarchical_tag_index (GValue* value, - gpointer v_object); -void value_take_hierarchical_tag_index (GValue* value, - gpointer v_object); -gpointer value_get_hierarchical_tag_index (const GValue* value); -GType hierarchical_tag_index_get_type (void) G_GNUC_CONST; -HierarchicalTagIndex* hierarchical_tag_utilities_process_hierarchical_import_keywords (GeeCollection* h_keywords); -HierarchicalTagIndex* hierarchical_tag_index_new (void); -HierarchicalTagIndex* hierarchical_tag_index_construct (GType object_type); -gboolean hierarchical_tag_index_is_path_known (HierarchicalTagIndex* self, - const gchar* path); -void hierarchical_tag_index_add_path (HierarchicalTagIndex* self, - const gchar* tag, - const gchar* path); -gchar* hierarchical_tag_utilities_get_root_path_form (const gchar* client_path); -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType tag_source_collection_get_type (void) G_GNUC_CONST; -gboolean tag_source_collection_exists (TagSourceCollection* self, - const gchar* name, - gboolean treat_htags_as_root); -void hierarchical_tag_utilities_cleanup_root_path (const gchar* path); -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType tag_get_type (void) G_GNUC_CONST; -Tag* tag_for_path (const gchar* name); -GeeList* tag_get_hierarchical_children (Tag* self); -void tag_flatten (Tag* self); -HierarchicalTagUtilities* hierarchical_tag_utilities_new (void); -HierarchicalTagUtilities* hierarchical_tag_utilities_construct (GType object_type); -static void hierarchical_tag_utilities_finalize (HierarchicalTagUtilities * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static gint _vala_array_length (gpointer array); - - -/** - * converts a flat tag name 'name' (e.g., "Animals") to a tag path compatible with the - * hierarchical tag data model (e.g., "/Animals"). if 'name' is already a path compatible with - * the hierarchical data model, 'name' is returned untouched - */ -gchar* -hierarchical_tag_utilities_flat_to_hierarchical (const gchar* name) -{ - gchar* result = NULL; -#line 14 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 15 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (!g_str_has_prefix (name, TAG_PATH_SEPARATOR_STRING)) { -#line 248 "HierarchicalTagUtilities.c" - gchar* _tmp0_; -#line 16 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp0_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, name, NULL); -#line 16 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - result = _tmp0_; -#line 16 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return result; -#line 256 "HierarchicalTagUtilities.c" - } else { - gchar* _tmp1_; -#line 18 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp1_ = g_strdup (name); -#line 18 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - result = _tmp1_; -#line 18 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return result; -#line 265 "HierarchicalTagUtilities.c" - } -} - - -/** - * converts a hierarchical tag path 'path' (e.g., "/Animals") to a flat tag name - * (e.g., "Animals"); if 'path' is already a flat tag name, 'path' is returned untouched; note - * that 'path' must be a top-level path (i.e., "/Animals" not "/Animals/Mammals/…") with - * only one path component; invoking this method with a 'path' argument other than a top-level - * path will cause an assertion failure. - */ -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 297 "HierarchicalTagUtilities.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 306 "HierarchicalTagUtilities.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 327 "HierarchicalTagUtilities.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 331 "HierarchicalTagUtilities.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 337 "HierarchicalTagUtilities.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 347 "HierarchicalTagUtilities.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 351 "HierarchicalTagUtilities.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 359 "HierarchicalTagUtilities.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 366 "HierarchicalTagUtilities.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 370 "HierarchicalTagUtilities.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 376 "HierarchicalTagUtilities.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 388 "HierarchicalTagUtilities.c" -} - - -gchar* -hierarchical_tag_utilities_hierarchical_to_flat (const gchar* path) -{ - gchar* result = NULL; -#line 28 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_val_if_fail (path != NULL, NULL); -#line 29 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (g_str_has_prefix (path, TAG_PATH_SEPARATOR_STRING)) { -#line 400 "HierarchicalTagUtilities.c" - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _tmp2_; - gint _tmp3_; - gchar* _tmp4_; -#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp0_ = hierarchical_tag_utilities_enumerate_path_components (path); -#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp1_ = _tmp0_; -#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp3_ = _tmp2_; -#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _vala_assert (_tmp3_ == 1, "enumerate_path_components(path).size == 1"); -#line 30 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_object_unref0 (_tmp1_); -#line 32 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp4_ = string_substring (path, (glong) 1, (glong) -1); -#line 32 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - result = _tmp4_; -#line 32 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return result; -#line 424 "HierarchicalTagUtilities.c" - } else { - gchar* _tmp5_; -#line 34 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp5_ = g_strdup (path); -#line 34 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - result = _tmp5_; -#line 34 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return result; -#line 433 "HierarchicalTagUtilities.c" - } -} - - -/** - * given a path 'path', generate all parent paths of 'path' and return them in sorted order, - * from most basic to most derived. For example, if 'path' == "/Animals/Mammals/Elephant", - * the list { "/Animals", "/Animals/Mammals" } is returned - */ -GeeList* -hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path) -{ - GeeList* result = NULL; - gchar* path = NULL; - gchar* _tmp0_; - GeeList* _result_ = NULL; - GeeArrayList* _tmp1_; - gchar* accumulator = NULL; - gchar* _tmp2_; -#line 43 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_val_if_fail (in_path != NULL, NULL); -#line 44 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp0_ = hierarchical_tag_utilities_flat_to_hierarchical (in_path); -#line 44 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - path = _tmp0_; -#line 46 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp1_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 46 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _result_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_LIST, GeeList); -#line 48 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp2_ = g_strdup (""); -#line 48 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - accumulator = _tmp2_; -#line 467 "HierarchicalTagUtilities.c" - { - GeeList* _component_list = NULL; - const gchar* _tmp3_; - GeeList* _tmp4_; - gint _component_size = 0; - GeeList* _tmp5_; - gint _tmp6_; - gint _tmp7_; - gint _component_index = 0; -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp3_ = path; -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp4_ = hierarchical_tag_utilities_enumerate_path_components (_tmp3_); -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _component_list = _tmp4_; -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp5_ = _component_list; -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp7_ = _tmp6_; -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _component_size = _tmp7_; -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _component_index = -1; -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - while (TRUE) { -#line 495 "HierarchicalTagUtilities.c" - gint _tmp8_; - gint _tmp9_; - gint _tmp10_; - gchar* component = NULL; - GeeList* _tmp11_; - gint _tmp12_; - gpointer _tmp13_; - const gchar* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - const gchar* _tmp19_; - const gchar* _tmp20_; -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp8_ = _component_index; -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _component_index = _tmp8_ + 1; -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp9_ = _component_index; -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp10_ = _component_size; -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (!(_tmp9_ < _tmp10_)) { -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - break; -#line 522 "HierarchicalTagUtilities.c" - } -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp11_ = _component_list; -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp12_ = _component_index; -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp13_ = gee_list_get (_tmp11_, _tmp12_); -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - component = (gchar*) _tmp13_; -#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp14_ = accumulator; -#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp15_ = component; -#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp16_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp15_, NULL); -#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp17_ = _tmp16_; -#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp18_ = g_strconcat (_tmp14_, _tmp17_, NULL); -#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (accumulator); -#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - accumulator = _tmp18_; -#line 50 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (_tmp17_); -#line 51 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp19_ = accumulator; -#line 51 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp20_ = path; -#line 51 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (g_strcmp0 (_tmp19_, _tmp20_) != 0) { -#line 554 "HierarchicalTagUtilities.c" - GeeList* _tmp21_; - const gchar* _tmp22_; -#line 52 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp21_ = _result_; -#line 52 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp22_ = accumulator; -#line 52 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_COLLECTION, GeeCollection), _tmp22_); -#line 563 "HierarchicalTagUtilities.c" - } -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (component); -#line 567 "HierarchicalTagUtilities.c" - } -#line 49 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_object_unref0 (_component_list); -#line 571 "HierarchicalTagUtilities.c" - } -#line 55 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - result = _result_; -#line 55 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (accumulator); -#line 55 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (path); -#line 55 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return result; -#line 581 "HierarchicalTagUtilities.c" -} - - -/** - * given a path 'path', enumerate all of the components of 'path' and return them in - * order, excluding the path component separator. For example if - * 'path' == "/Animals/Mammals/Elephant" the list { "Animals", "Mammals", "Elephant" } will - * be returned - */ -GeeList* -hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path) -{ - GeeList* result = NULL; - gchar* path = NULL; - gchar* _tmp0_; - GeeArrayList* components = NULL; - GeeArrayList* _tmp1_; - gchar** raw_components = NULL; - const gchar* _tmp2_; - gchar** _tmp3_; - gchar** _tmp4_; - gint raw_components_length1; - gint _raw_components_size_; - gchar** _tmp5_; - gint _tmp5__length1; - GeeArrayList* _tmp10_; - gint _tmp11_; - gint _tmp12_; -#line 64 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_val_if_fail (in_path != NULL, NULL); -#line 65 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp0_ = hierarchical_tag_utilities_flat_to_hierarchical (in_path); -#line 65 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - path = _tmp0_; -#line 67 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp1_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL); -#line 67 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - components = _tmp1_; -#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp2_ = path; -#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp4_ = _tmp3_ = g_strsplit (_tmp2_, TAG_PATH_SEPARATOR_STRING, 0); -#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - raw_components = _tmp4_; -#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - raw_components_length1 = _vala_array_length (_tmp3_); -#line 69 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _raw_components_size_ = raw_components_length1; -#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp5_ = raw_components; -#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp5__length1 = raw_components_length1; -#line 634 "HierarchicalTagUtilities.c" - { - gchar** component_collection = NULL; - gint component_collection_length1 = 0; - gint _component_collection_size_ = 0; - gint component_it = 0; -#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - component_collection = _tmp5_; -#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - component_collection_length1 = _tmp5__length1; -#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - for (component_it = 0; component_it < _tmp5__length1; component_it = component_it + 1) { -#line 646 "HierarchicalTagUtilities.c" - gchar* _tmp6_; - gchar* component = NULL; -#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp6_ = g_strdup (component_collection[component_it]); -#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - component = _tmp6_; -#line 653 "HierarchicalTagUtilities.c" - { - const gchar* _tmp7_; -#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp7_ = component; -#line 72 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (g_strcmp0 (_tmp7_, "") != 0) { -#line 660 "HierarchicalTagUtilities.c" - GeeArrayList* _tmp8_; - const gchar* _tmp9_; -#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp8_ = components; -#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp9_ = component; -#line 73 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp9_); -#line 669 "HierarchicalTagUtilities.c" - } -#line 71 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (component); -#line 673 "HierarchicalTagUtilities.c" - } - } - } -#line 76 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp10_ = components; -#line 76 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp11_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 76 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp12_ = _tmp11_; -#line 76 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _vala_assert (_tmp12_ > 0, "components.size > 0"); -#line 78 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (components, GEE_TYPE_LIST, GeeList); -#line 78 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - raw_components = (_vala_array_free (raw_components, raw_components_length1, (GDestroyNotify) g_free), NULL); -#line 78 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (path); -#line 78 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return result; -#line 693 "HierarchicalTagUtilities.c" -} - - -/** - * given a list of path elements, create a fully qualified path string. - * For example if 'path_elements' is the list { "Animals", "Mammals", "Elephant" } - * the path "/Animals/Mammals/Elephant" will be returned - */ -static gchar* -_vala_g_strjoinv (const gchar* separator, - gchar** str_array, - int str_array_length1) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; -#line 1092 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (separator == NULL) { -#line 1093 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - separator = ""; -#line 713 "HierarchicalTagUtilities.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array != NULL) { -#line 717 "HierarchicalTagUtilities.c" - gboolean _tmp1_ = FALSE; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 > 0) { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 723 "HierarchicalTagUtilities.c" - } else { - gboolean _tmp2_ = FALSE; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 728 "HierarchicalTagUtilities.c" - const gchar* _tmp3_; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = str_array[0]; -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp3_ != NULL; -#line 734 "HierarchicalTagUtilities.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = FALSE; -#line 738 "HierarchicalTagUtilities.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp2_; -#line 742 "HierarchicalTagUtilities.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = _tmp1_; -#line 746 "HierarchicalTagUtilities.c" - } else { -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 750 "HierarchicalTagUtilities.c" - } -#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 754 "HierarchicalTagUtilities.c" - gint i = 0; - gsize len = 0UL; - gint _tmp20_; - gint _tmp22_; - gint _tmp23_; - gsize _tmp24_; - gint _tmp25_; - gint _tmp26_; - gint _tmp27_; - const gchar* res = NULL; - gsize _tmp28_; - void* _tmp29_; - void* ptr = NULL; - const gchar* _tmp30_; - const gchar* _tmp31_; - void* _tmp32_; - const gchar* _tmp45_; -#line 1097 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = (gsize) 1; -#line 774 "HierarchicalTagUtilities.c" - { - gboolean _tmp4_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 0; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = TRUE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - while (TRUE) { -#line 783 "HierarchicalTagUtilities.c" - gboolean _tmp6_ = FALSE; - gboolean _tmp7_ = FALSE; - gint _tmp12_ = 0; - gint _tmp13_; - const gchar* _tmp14_; - gsize _tmp19_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp4_) { -#line 792 "HierarchicalTagUtilities.c" - gint _tmp5_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = _tmp5_ + 1; -#line 798 "HierarchicalTagUtilities.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 != -1) { -#line 804 "HierarchicalTagUtilities.c" - gint _tmp8_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp8_ < str_array_length1; -#line 810 "HierarchicalTagUtilities.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = FALSE; -#line 814 "HierarchicalTagUtilities.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp7_) { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = TRUE; -#line 820 "HierarchicalTagUtilities.c" - } else { - gboolean _tmp9_ = FALSE; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (str_array_length1 == -1) { -#line 825 "HierarchicalTagUtilities.c" - gint _tmp10_; - const gchar* _tmp11_; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = i; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp11_ = str_array[_tmp10_]; -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = _tmp11_ != NULL; -#line 834 "HierarchicalTagUtilities.c" - } else { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = FALSE; -#line 838 "HierarchicalTagUtilities.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp9_; -#line 842 "HierarchicalTagUtilities.c" - } -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp6_) { -#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - break; -#line 848 "HierarchicalTagUtilities.c" - } -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp13_ = i; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp14_ = str_array[_tmp13_]; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp14_ != NULL) { -#line 856 "HierarchicalTagUtilities.c" - gint _tmp15_; - const gchar* _tmp16_; - gint _tmp17_; - gint _tmp18_; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp15_ = i; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp16_ = str_array[_tmp15_]; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp17_ = strlen ((const gchar*) _tmp16_); -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp18_ = _tmp17_; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp12_ = _tmp18_; -#line 871 "HierarchicalTagUtilities.c" - } else { -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp12_ = 0; -#line 875 "HierarchicalTagUtilities.c" - } -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp19_ = len; -#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp19_ + _tmp12_; -#line 881 "HierarchicalTagUtilities.c" - } - } -#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp20_ = i; -#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp20_ == 0) { -#line 888 "HierarchicalTagUtilities.c" - gchar* _tmp21_; -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp21_ = g_strdup (""); -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp21_; -#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 896 "HierarchicalTagUtilities.c" - } -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp22_ = i; -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - str_array_length1 = _tmp22_; -#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp23_ = str_array_length1; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp24_ = len; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp25_ = strlen ((const gchar*) separator); -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp26_ = _tmp25_; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp27_ = i; -#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp24_ + (_tmp26_ * (_tmp27_ - 1)); -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp28_ = len; -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp29_ = g_malloc (_tmp28_); -#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = _tmp29_; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp30_ = res; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp31_ = str_array[0]; -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp32_ = g_stpcpy ((void*) _tmp30_, (const gchar*) _tmp31_); -#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp32_; -#line 928 "HierarchicalTagUtilities.c" - { - gboolean _tmp33_ = FALSE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = 1; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp33_ = TRUE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - while (TRUE) { -#line 937 "HierarchicalTagUtilities.c" - gint _tmp35_; - void* _tmp36_; - void* _tmp37_; - const gchar* _tmp38_ = NULL; - gint _tmp39_; - const gchar* _tmp40_; - void* _tmp43_; - void* _tmp44_; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!_tmp33_) { -#line 948 "HierarchicalTagUtilities.c" - gint _tmp34_; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp34_ = i; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - i = _tmp34_ + 1; -#line 954 "HierarchicalTagUtilities.c" - } -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp33_ = FALSE; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp35_ = i; -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (!(_tmp35_ < str_array_length1)) { -#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - break; -#line 964 "HierarchicalTagUtilities.c" - } -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp36_ = ptr; -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp37_ = g_stpcpy (_tmp36_, (const gchar*) separator); -#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp37_; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp39_ = i; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp40_ = str_array[_tmp39_]; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp40_ != NULL) { -#line 978 "HierarchicalTagUtilities.c" - gint _tmp41_; - const gchar* _tmp42_; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp41_ = i; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp42_ = str_array[_tmp41_]; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp38_ = (const gchar*) _tmp42_; -#line 987 "HierarchicalTagUtilities.c" - } else { -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp38_ = ""; -#line 991 "HierarchicalTagUtilities.c" - } -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp43_ = ptr; -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp44_ = g_stpcpy (_tmp43_, _tmp38_); -#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - ptr = _tmp44_; -#line 999 "HierarchicalTagUtilities.c" - } - } -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp45_ = res; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = NULL; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gchar*) _tmp45_; -#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1010 "HierarchicalTagUtilities.c" - } else { - gchar* _tmp46_; -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp46_ = g_strdup (""); -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp46_; -#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1019 "HierarchicalTagUtilities.c" - } -} - - -gchar* -hierarchical_tag_utilities_join_path_components (gchar** path_components, - int path_components_length1) -{ - gchar* result = NULL; - gchar* tmp = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; - gchar** _tmp4_; - gchar** _tmp5_; - gint _tmp5__length1; - gchar* _tmp6_; - gchar* _tmp7_; -#line 87 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (path_components_length1 <= 0) { -#line 88 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - result = NULL; -#line 88 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return result; -#line 1045 "HierarchicalTagUtilities.c" - } -#line 89 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp0_ = _vala_g_strjoinv (TAG_PATH_SEPARATOR_STRING, path_components, path_components_length1); -#line 89 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - tmp = _tmp0_; -#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp1_ = g_strdup (""); -#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp2_ = tmp; -#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp3_ = g_strdup (_tmp2_); -#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp4_ = g_new0 (gchar*, 2 + 1); -#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp4_[0] = _tmp1_; -#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp4_[1] = _tmp3_; -#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp5_ = _tmp4_; -#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp5__length1 = 2; -#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp6_ = _vala_g_strjoinv (TAG_PATH_SEPARATOR_STRING, _tmp5_, 2); -#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp7_ = _tmp6_; -#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp5_ = (_vala_array_free (_tmp5_, _tmp5__length1, (GDestroyNotify) g_free), NULL); -#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - result = _tmp7_; -#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (tmp); -#line 90 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return result; -#line 1079 "HierarchicalTagUtilities.c" -} - - -gchar* -hierarchical_tag_utilities_get_basename (const gchar* in_path) -{ - gchar* result = NULL; - gchar* path = NULL; - gchar* _tmp0_; - GeeList* components = NULL; - GeeList* _tmp1_; - gchar* basename = NULL; - gint _tmp2_; - gint _tmp3_; - gpointer _tmp4_; -#line 93 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_val_if_fail (in_path != NULL, NULL); -#line 94 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp0_ = hierarchical_tag_utilities_flat_to_hierarchical (in_path); -#line 94 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - path = _tmp0_; -#line 96 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp1_ = hierarchical_tag_utilities_enumerate_path_components (path); -#line 96 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - components = _tmp1_; -#line 98 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (components, GEE_TYPE_COLLECTION, GeeCollection)); -#line 98 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp3_ = _tmp2_; -#line 98 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp4_ = gee_list_get (components, _tmp3_ - 1); -#line 98 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - basename = (gchar*) _tmp4_; -#line 100 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - result = basename; -#line 100 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_object_unref0 (components); -#line 100 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (path); -#line 100 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return result; -#line 1121 "HierarchicalTagUtilities.c" -} - - -static gchar* -string_replace (const gchar* self, - const gchar* old, - const gchar* replacement) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 1144 "HierarchicalTagUtilities.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 1148 "HierarchicalTagUtilities.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 1154 "HierarchicalTagUtilities.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 1158 "HierarchicalTagUtilities.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1162 "HierarchicalTagUtilities.c" - gchar* _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = g_strdup (self); -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1170 "HierarchicalTagUtilities.c" - } - { - GRegex* regex = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GRegex* _tmp5_; - GRegex* _tmp6_; - gchar* _tmp7_ = NULL; - GRegex* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_regex_escape_string (old, -1); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp5_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp4_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - regex = _tmp6_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 1198 "HierarchicalTagUtilities.c" - goto __catch63_g_regex_error; - } -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 1207 "HierarchicalTagUtilities.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = regex; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp9_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 1221 "HierarchicalTagUtilities.c" - goto __catch63_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 1232 "HierarchicalTagUtilities.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = _tmp7_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = NULL; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp10_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp7_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1246 "HierarchicalTagUtilities.c" - } - goto __finally63; - __catch63_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 1260 "HierarchicalTagUtilities.c" - } - __finally63: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 1271 "HierarchicalTagUtilities.c" - } -} - - -static gchar -string_get (const gchar* self, - glong index) -{ - gchar result = '\0'; - gchar _tmp0_; -#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, '\0'); -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = ((gchar*) self)[index]; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1290 "HierarchicalTagUtilities.c" -} - - -gchar* -hierarchical_tag_utilities_canonicalize (const gchar* in_tag, - const gchar* foreign_separator) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - gboolean is_valid = FALSE; - const gchar* _tmp12_ = NULL; - gboolean _tmp13_; - gchar* _tmp15_; -#line 103 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_val_if_fail (in_tag != NULL, NULL); -#line 103 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_val_if_fail (foreign_separator != NULL, NULL); -#line 104 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp0_ = string_replace (in_tag, foreign_separator, TAG_PATH_SEPARATOR_STRING); -#line 104 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _result_ = _tmp0_; -#line 106 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp1_ = _result_; -#line 106 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (!g_str_has_prefix (_tmp1_, TAG_PATH_SEPARATOR_STRING)) { -#line 1318 "HierarchicalTagUtilities.c" - const gchar* _tmp2_; - gchar* _tmp3_; -#line 107 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp2_ = _result_; -#line 107 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp3_ = g_strconcat (TAG_PATH_SEPARATOR_STRING, _tmp2_, NULL); -#line 107 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (_result_); -#line 107 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _result_ = _tmp3_; -#line 1329 "HierarchicalTagUtilities.c" - } -#line 110 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - is_valid = FALSE; -#line 1333 "HierarchicalTagUtilities.c" - { - gint i = 0; -#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - i = 0; -#line 1338 "HierarchicalTagUtilities.c" - { - gboolean _tmp4_ = FALSE; -#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp4_ = TRUE; -#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - while (TRUE) { -#line 1345 "HierarchicalTagUtilities.c" - gint _tmp6_; - const gchar* _tmp7_; - gint _tmp8_; - gint _tmp9_; - const gchar* _tmp10_; - gint _tmp11_; -#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (!_tmp4_) { -#line 1354 "HierarchicalTagUtilities.c" - gint _tmp5_; -#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp5_ = i; -#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - i = _tmp5_ + 1; -#line 1360 "HierarchicalTagUtilities.c" - } -#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp4_ = FALSE; -#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp6_ = i; -#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp7_ = _result_; -#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp8_ = strlen (_tmp7_); -#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp9_ = _tmp8_; -#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (!(_tmp6_ < _tmp9_)) { -#line 111 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - break; -#line 1376 "HierarchicalTagUtilities.c" - } -#line 112 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp10_ = _result_; -#line 112 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp11_ = i; -#line 112 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (string_get (_tmp10_, (glong) _tmp11_) != string_get (TAG_PATH_SEPARATOR_STRING, (glong) 0)) { -#line 113 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - is_valid = TRUE; -#line 114 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - break; -#line 1388 "HierarchicalTagUtilities.c" - } - } - } - } -#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp13_ = is_valid; -#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (_tmp13_) { -#line 1397 "HierarchicalTagUtilities.c" - const gchar* _tmp14_; -#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp14_ = _result_; -#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp12_ = _tmp14_; -#line 1403 "HierarchicalTagUtilities.c" - } else { -#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp12_ = NULL; -#line 1407 "HierarchicalTagUtilities.c" - } -#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp15_ = g_strdup (_tmp12_); -#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - result = _tmp15_; -#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (_result_); -#line 118 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return result; -#line 1417 "HierarchicalTagUtilities.c" -} - - -gchar* -hierarchical_tag_utilities_make_flat_tag_safe (const gchar* in_tag) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 121 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_val_if_fail (in_tag != NULL, NULL); -#line 122 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp0_ = string_replace (in_tag, TAG_PATH_SEPARATOR_STRING, "-"); -#line 122 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - result = _tmp0_; -#line 122 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return result; -#line 1434 "HierarchicalTagUtilities.c" -} - - -HierarchicalTagIndex* -hierarchical_tag_utilities_process_hierarchical_import_keywords (GeeCollection* h_keywords) -{ - HierarchicalTagIndex* result = NULL; - HierarchicalTagIndex* index = NULL; - HierarchicalTagIndex* _tmp0_; -#line 125 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (h_keywords), NULL); -#line 126 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp0_ = hierarchical_tag_index_new (); -#line 126 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - index = _tmp0_; -#line 1450 "HierarchicalTagUtilities.c" - { - GeeIterator* _keyword_it = NULL; - GeeIterator* _tmp1_; -#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp1_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (h_keywords, GEE_TYPE_ITERABLE, GeeIterable)); -#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _keyword_it = _tmp1_; -#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - while (TRUE) { -#line 1460 "HierarchicalTagUtilities.c" - GeeIterator* _tmp2_; - gchar* keyword = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - GeeList* parent_paths = NULL; - const gchar* _tmp5_; - GeeList* _tmp6_; - GeeList* path_components = NULL; - const gchar* _tmp7_; - GeeList* _tmp8_; - GeeList* _tmp9_; - gint _tmp10_; - gint _tmp11_; - GeeList* _tmp12_; - gint _tmp13_; - gint _tmp14_; - HierarchicalTagIndex* _tmp36_; - const gchar* _tmp37_; - gchar* _tmp38_; - gchar* _tmp39_; - const gchar* _tmp40_; -#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp2_ = _keyword_it; -#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - break; -#line 1488 "HierarchicalTagUtilities.c" - } -#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp3_ = _keyword_it; -#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - keyword = (gchar*) _tmp4_; -#line 129 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp5_ = keyword; -#line 129 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp6_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp5_); -#line 129 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - parent_paths = _tmp6_; -#line 131 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp7_ = keyword; -#line 131 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp8_ = hierarchical_tag_utilities_enumerate_path_components (_tmp7_); -#line 131 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - path_components = _tmp8_; -#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp9_ = parent_paths; -#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp11_ = _tmp10_; -#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp12_ = path_components; -#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp13_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp14_ = _tmp13_; -#line 134 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _vala_assert (_tmp11_ <= _tmp14_, "parent_paths.size <= path_components.size"); -#line 1522 "HierarchicalTagUtilities.c" - { - gint i = 0; -#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - i = 0; -#line 1527 "HierarchicalTagUtilities.c" - { - gboolean _tmp15_ = FALSE; -#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp15_ = TRUE; -#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - while (TRUE) { -#line 1534 "HierarchicalTagUtilities.c" - gint _tmp17_; - GeeList* _tmp18_; - gint _tmp19_; - gint _tmp20_; - HierarchicalTagIndex* _tmp21_; - GeeList* _tmp22_; - gint _tmp23_; - gpointer _tmp24_; - gchar* _tmp25_; - gboolean _tmp26_; -#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (!_tmp15_) { -#line 1547 "HierarchicalTagUtilities.c" - gint _tmp16_; -#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp16_ = i; -#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - i = _tmp16_ + 1; -#line 1553 "HierarchicalTagUtilities.c" - } -#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp15_ = FALSE; -#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp17_ = i; -#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp18_ = parent_paths; -#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp19_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp20_ = _tmp19_; -#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (!(_tmp17_ < _tmp20_)) { -#line 136 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - break; -#line 1569 "HierarchicalTagUtilities.c" - } -#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp21_ = index; -#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp22_ = path_components; -#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp23_ = i; -#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp24_ = gee_list_get (_tmp22_, _tmp23_); -#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp25_ = (gchar*) _tmp24_; -#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp26_ = !hierarchical_tag_index_is_path_known (_tmp21_, _tmp25_); -#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (_tmp25_); -#line 137 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (_tmp26_) { -#line 1587 "HierarchicalTagUtilities.c" - HierarchicalTagIndex* _tmp27_; - GeeList* _tmp28_; - gint _tmp29_; - gpointer _tmp30_; - gchar* _tmp31_; - GeeList* _tmp32_; - gint _tmp33_; - gpointer _tmp34_; - gchar* _tmp35_; -#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp27_ = index; -#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp28_ = path_components; -#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp29_ = i; -#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp30_ = gee_list_get (_tmp28_, _tmp29_); -#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp31_ = (gchar*) _tmp30_; -#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp32_ = parent_paths; -#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp33_ = i; -#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp34_ = gee_list_get (_tmp32_, _tmp33_); -#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp35_ = (gchar*) _tmp34_; -#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - hierarchical_tag_index_add_path (_tmp27_, _tmp31_, _tmp35_); -#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (_tmp35_); -#line 138 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (_tmp31_); -#line 1621 "HierarchicalTagUtilities.c" - } - } - } - } -#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp36_ = index; -#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp37_ = keyword; -#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp38_ = hierarchical_tag_utilities_get_basename (_tmp37_); -#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp39_ = _tmp38_; -#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp40_ = keyword; -#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - hierarchical_tag_index_add_path (_tmp36_, _tmp39_, _tmp40_); -#line 141 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (_tmp39_); -#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_object_unref0 (path_components); -#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_object_unref0 (parent_paths); -#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (keyword); -#line 1646 "HierarchicalTagUtilities.c" - } -#line 128 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_object_unref0 (_keyword_it); -#line 1650 "HierarchicalTagUtilities.c" - } -#line 144 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - result = index; -#line 144 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return result; -#line 1656 "HierarchicalTagUtilities.c" -} - - -gchar* -hierarchical_tag_utilities_get_root_path_form (const gchar* client_path) -{ - gchar* result = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _tmp2_; - gint _tmp3_; - gboolean _tmp4_; - gchar* path = NULL; - gchar* _tmp6_; - TagSourceCollection* _tmp7_; - const gchar* _tmp8_; - const gchar* _tmp14_ = NULL; - TagSourceCollection* _tmp15_; - const gchar* _tmp16_; - gchar* _tmp18_; -#line 148 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (client_path == NULL) { -#line 149 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - result = NULL; -#line 149 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return result; -#line 1683 "HierarchicalTagUtilities.c" - } -#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp0_ = hierarchical_tag_utilities_enumerate_parent_paths (client_path); -#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp1_ = _tmp0_; -#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp3_ = _tmp2_; -#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp4_ = _tmp3_ != 0; -#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_object_unref0 (_tmp1_); -#line 151 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (_tmp4_) { -#line 1699 "HierarchicalTagUtilities.c" - gchar* _tmp5_; -#line 152 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp5_ = g_strdup (client_path); -#line 152 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - result = _tmp5_; -#line 152 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return result; -#line 1707 "HierarchicalTagUtilities.c" - } -#line 154 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp6_ = g_strdup (client_path); -#line 154 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - path = _tmp6_; -#line 156 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp7_ = tag_global; -#line 156 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp8_ = path; -#line 156 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (!tag_source_collection_exists (_tmp7_, _tmp8_, FALSE)) { -#line 1719 "HierarchicalTagUtilities.c" - const gchar* _tmp9_; -#line 157 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp9_ = path; -#line 157 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (g_str_has_prefix (_tmp9_, TAG_PATH_SEPARATOR_STRING)) { -#line 1725 "HierarchicalTagUtilities.c" - const gchar* _tmp10_; - gchar* _tmp11_; -#line 158 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp10_ = path; -#line 158 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp11_ = hierarchical_tag_utilities_hierarchical_to_flat (_tmp10_); -#line 158 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (path); -#line 158 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - path = _tmp11_; -#line 1736 "HierarchicalTagUtilities.c" - } else { - const gchar* _tmp12_; - gchar* _tmp13_; -#line 160 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp12_ = path; -#line 160 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp13_ = hierarchical_tag_utilities_flat_to_hierarchical (_tmp12_); -#line 160 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (path); -#line 160 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - path = _tmp13_; -#line 1748 "HierarchicalTagUtilities.c" - } - } -#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp15_ = tag_global; -#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp16_ = path; -#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (tag_source_collection_exists (_tmp15_, _tmp16_, FALSE)) { -#line 1757 "HierarchicalTagUtilities.c" - const gchar* _tmp17_; -#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp17_ = path; -#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp14_ = _tmp17_; -#line 1763 "HierarchicalTagUtilities.c" - } else { -#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp14_ = NULL; -#line 1767 "HierarchicalTagUtilities.c" - } -#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp18_ = g_strdup (_tmp14_); -#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - result = _tmp18_; -#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (path); -#line 163 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return result; -#line 1777 "HierarchicalTagUtilities.c" -} - - -void -hierarchical_tag_utilities_cleanup_root_path (const gchar* path) -{ - GeeList* paths = NULL; - GeeList* _tmp0_; - GeeList* _tmp1_; - gint _tmp2_; - gint _tmp3_; -#line 166 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_if_fail (path != NULL); -#line 167 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp0_ = hierarchical_tag_utilities_enumerate_parent_paths (path); -#line 167 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - paths = _tmp0_; -#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp1_ = paths; -#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp3_ = _tmp2_; -#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (_tmp3_ == 0) { -#line 1803 "HierarchicalTagUtilities.c" - gchar* actual_path = NULL; - gchar* _tmp4_; - const gchar* _tmp5_; - Tag* t = NULL; - TagSourceCollection* _tmp6_; - const gchar* _tmp7_; - gboolean _tmp10_ = FALSE; - Tag* _tmp11_; -#line 170 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp4_ = hierarchical_tag_utilities_get_root_path_form (path); -#line 170 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - actual_path = _tmp4_; -#line 172 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp5_ = actual_path; -#line 172 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (_tmp5_ == NULL) { -#line 173 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (actual_path); -#line 173 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_object_unref0 (paths); -#line 173 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return; -#line 1826 "HierarchicalTagUtilities.c" - } -#line 175 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - t = NULL; -#line 176 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp6_ = tag_global; -#line 176 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp7_ = actual_path; -#line 176 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (tag_source_collection_exists (_tmp6_, _tmp7_, FALSE)) { -#line 1836 "HierarchicalTagUtilities.c" - const gchar* _tmp8_; - Tag* _tmp9_; -#line 177 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp8_ = actual_path; -#line 177 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp9_ = tag_for_path (_tmp8_); -#line 177 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_object_unref0 (t); -#line 177 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - t = _tmp9_; -#line 1847 "HierarchicalTagUtilities.c" - } -#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp11_ = t; -#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (_tmp11_ != NULL) { -#line 1853 "HierarchicalTagUtilities.c" - Tag* _tmp12_; - GeeList* _tmp13_; - GeeList* _tmp14_; - gint _tmp15_; - gint _tmp16_; -#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp12_ = t; -#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp13_ = tag_get_hierarchical_children (_tmp12_); -#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp14_ = _tmp13_; -#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp15_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp16_ = _tmp15_; -#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp10_ = _tmp16_ == 0; -#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_object_unref0 (_tmp14_); -#line 1873 "HierarchicalTagUtilities.c" - } else { -#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp10_ = FALSE; -#line 1877 "HierarchicalTagUtilities.c" - } -#line 179 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (_tmp10_) { -#line 1881 "HierarchicalTagUtilities.c" - Tag* _tmp17_; -#line 180 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _tmp17_ = t; -#line 180 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - tag_flatten (_tmp17_); -#line 1887 "HierarchicalTagUtilities.c" - } -#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_object_unref0 (t); -#line 169 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_free0 (actual_path); -#line 1893 "HierarchicalTagUtilities.c" - } -#line 166 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - _g_object_unref0 (paths); -#line 1897 "HierarchicalTagUtilities.c" -} - - -HierarchicalTagUtilities* -hierarchical_tag_utilities_construct (GType object_type) -{ - HierarchicalTagUtilities* self = NULL; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - self = (HierarchicalTagUtilities*) g_type_create_instance (object_type); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return self; -#line 1909 "HierarchicalTagUtilities.c" -} - - -HierarchicalTagUtilities* -hierarchical_tag_utilities_new (void) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return hierarchical_tag_utilities_construct (TYPE_HIERARCHICAL_TAG_UTILITIES); -#line 1918 "HierarchicalTagUtilities.c" -} - - -static void -value_hierarchical_tag_utilities_init (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - value->data[0].v_pointer = NULL; -#line 1927 "HierarchicalTagUtilities.c" -} - - -static void -value_hierarchical_tag_utilities_free_value (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - hierarchical_tag_utilities_unref (value->data[0].v_pointer); -#line 1938 "HierarchicalTagUtilities.c" - } -} - - -static void -value_hierarchical_tag_utilities_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (src_value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - dest_value->data[0].v_pointer = hierarchical_tag_utilities_ref (src_value->data[0].v_pointer); -#line 1951 "HierarchicalTagUtilities.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - dest_value->data[0].v_pointer = NULL; -#line 1955 "HierarchicalTagUtilities.c" - } -} - - -static gpointer -value_hierarchical_tag_utilities_peek_pointer (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return value->data[0].v_pointer; -#line 1965 "HierarchicalTagUtilities.c" -} - - -static gchar* -value_hierarchical_tag_utilities_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (collect_values[0].v_pointer) { -#line 1977 "HierarchicalTagUtilities.c" - HierarchicalTagUtilities * object; - object = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (object->parent_instance.g_class == NULL) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1984 "HierarchicalTagUtilities.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1988 "HierarchicalTagUtilities.c" - } -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - value->data[0].v_pointer = hierarchical_tag_utilities_ref (object); -#line 1992 "HierarchicalTagUtilities.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - value->data[0].v_pointer = NULL; -#line 1996 "HierarchicalTagUtilities.c" - } -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return NULL; -#line 2000 "HierarchicalTagUtilities.c" -} - - -static gchar* -value_hierarchical_tag_utilities_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - HierarchicalTagUtilities ** object_p; - object_p = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (!object_p) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2016 "HierarchicalTagUtilities.c" - } -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (!value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - *object_p = NULL; -#line 2022 "HierarchicalTagUtilities.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - *object_p = value->data[0].v_pointer; -#line 2026 "HierarchicalTagUtilities.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - *object_p = hierarchical_tag_utilities_ref (value->data[0].v_pointer); -#line 2030 "HierarchicalTagUtilities.c" - } -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return NULL; -#line 2034 "HierarchicalTagUtilities.c" -} - - -GParamSpec* -param_spec_hierarchical_tag_utilities (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecHierarchicalTagUtilities* spec; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_HIERARCHICAL_TAG_UTILITIES), NULL); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return G_PARAM_SPEC (spec); -#line 2054 "HierarchicalTagUtilities.c" -} - - -gpointer -value_get_hierarchical_tag_utilities (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_UTILITIES), NULL); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return value->data[0].v_pointer; -#line 2065 "HierarchicalTagUtilities.c" -} - - -void -value_set_hierarchical_tag_utilities (GValue* value, - gpointer v_object) -{ - HierarchicalTagUtilities * old; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_UTILITIES)); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HIERARCHICAL_TAG_UTILITIES)); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - value->data[0].v_pointer = v_object; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - hierarchical_tag_utilities_ref (value->data[0].v_pointer); -#line 2088 "HierarchicalTagUtilities.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - value->data[0].v_pointer = NULL; -#line 2092 "HierarchicalTagUtilities.c" - } -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - hierarchical_tag_utilities_unref (old); -#line 2098 "HierarchicalTagUtilities.c" - } -} - - -void -value_take_hierarchical_tag_utilities (GValue* value, - gpointer v_object) -{ - HierarchicalTagUtilities * old; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HIERARCHICAL_TAG_UTILITIES)); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HIERARCHICAL_TAG_UTILITIES)); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - value->data[0].v_pointer = v_object; -#line 2120 "HierarchicalTagUtilities.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - value->data[0].v_pointer = NULL; -#line 2124 "HierarchicalTagUtilities.c" - } -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - hierarchical_tag_utilities_unref (old); -#line 2130 "HierarchicalTagUtilities.c" - } -} - - -static void -hierarchical_tag_utilities_class_init (HierarchicalTagUtilitiesClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - hierarchical_tag_utilities_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - ((HierarchicalTagUtilitiesClass *) klass)->finalize = hierarchical_tag_utilities_finalize; -#line 2142 "HierarchicalTagUtilities.c" -} - - -static void -hierarchical_tag_utilities_instance_init (HierarchicalTagUtilities * self) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - self->ref_count = 1; -#line 2151 "HierarchicalTagUtilities.c" -} - - -static void -hierarchical_tag_utilities_finalize (HierarchicalTagUtilities * obj) -{ - HierarchicalTagUtilities * self; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_HIERARCHICAL_TAG_UTILITIES, HierarchicalTagUtilities); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_signal_handlers_destroy (self); -#line 2163 "HierarchicalTagUtilities.c" -} - - -GType -hierarchical_tag_utilities_get_type (void) -{ - static volatile gsize hierarchical_tag_utilities_type_id__volatile = 0; - if (g_once_init_enter (&hierarchical_tag_utilities_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_hierarchical_tag_utilities_init, value_hierarchical_tag_utilities_free_value, value_hierarchical_tag_utilities_copy_value, value_hierarchical_tag_utilities_peek_pointer, "p", value_hierarchical_tag_utilities_collect_value, "p", value_hierarchical_tag_utilities_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (HierarchicalTagUtilitiesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) hierarchical_tag_utilities_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HierarchicalTagUtilities), 0, (GInstanceInitFunc) hierarchical_tag_utilities_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType hierarchical_tag_utilities_type_id; - hierarchical_tag_utilities_type_id = g_type_register_fundamental (g_type_fundamental_next (), "HierarchicalTagUtilities", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&hierarchical_tag_utilities_type_id__volatile, hierarchical_tag_utilities_type_id); - } - return hierarchical_tag_utilities_type_id__volatile; -} - - -gpointer -hierarchical_tag_utilities_ref (gpointer instance) -{ - HierarchicalTagUtilities * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_atomic_int_inc (&self->ref_count); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - return instance; -#line 2192 "HierarchicalTagUtilities.c" -} - - -void -hierarchical_tag_utilities_unref (gpointer instance) -{ - HierarchicalTagUtilities * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - HIERARCHICAL_TAG_UTILITIES_GET_CLASS (self)->finalize (self); -#line 7 "/home/jens/Source/shotwell/src/tags/HierarchicalTagUtilities.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2207 "HierarchicalTagUtilities.c" - } -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - -static gint -_vala_array_length (gpointer array) -{ - int length; - length = 0; - if (array) { - while (((gpointer*) array)[length]) { - length++; - } - } - return length; -} - - - diff --git a/src/tags/TagPage.c b/src/tags/TagPage.c deleted file mode 100644 index fa5f9eb..0000000 --- a/src/tags/TagPage.c +++ /dev/null @@ -1,1585 +0,0 @@ -/* TagPage.c generated by valac 0.40.4, the Vala compiler - * generated from TagPage.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -typedef struct _PagePrivate PagePrivate; - -#define TYPE_PAGE_WINDOW (page_window_get_type ()) -#define PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_WINDOW, PageWindow)) -#define PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_WINDOW, PageWindowClass)) -#define IS_PAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_WINDOW)) -#define IS_PAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_WINDOW)) -#define PAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_WINDOW, PageWindowClass)) - -typedef struct _PageWindow PageWindow; -typedef struct _PageWindowClass PageWindowClass; - -#define TYPE_FULLSCREEN_WINDOW (fullscreen_window_get_type ()) -#define FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindow)) -#define FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) -#define IS_FULLSCREEN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FULLSCREEN_WINDOW)) -#define IS_FULLSCREEN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FULLSCREEN_WINDOW)) -#define FULLSCREEN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FULLSCREEN_WINDOW, FullscreenWindowClass)) - -typedef struct _FullscreenWindow FullscreenWindow; -typedef struct _FullscreenWindowClass FullscreenWindowClass; - -#define TYPE_INJECTION_GROUP (injection_group_get_type ()) -#define INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INJECTION_GROUP, InjectionGroup)) -#define INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INJECTION_GROUP, InjectionGroupClass)) -#define IS_INJECTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INJECTION_GROUP)) -#define IS_INJECTION_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INJECTION_GROUP)) -#define INJECTION_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INJECTION_GROUP, InjectionGroupClass)) - -typedef struct _InjectionGroup InjectionGroup; -typedef struct _InjectionGroupClass InjectionGroupClass; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; -typedef struct _CheckerboardPagePrivate CheckerboardPagePrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_VIEW (data_view_get_type ()) -#define DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_VIEW, DataView)) -#define DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_VIEW, DataViewClass)) -#define IS_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_VIEW)) -#define IS_DATA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_VIEW)) -#define DATA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_VIEW, DataViewClass)) - -typedef struct _DataView DataView; -typedef struct _DataViewClass DataViewClass; - -#define TYPE_THUMBNAIL_VIEW (thumbnail_view_get_type ()) -#define THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailView)) -#define THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) -#define IS_THUMBNAIL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_VIEW)) -#define IS_THUMBNAIL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_VIEW)) -#define THUMBNAIL_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_VIEW, ThumbnailViewClass)) - -typedef struct _ThumbnailView ThumbnailView; -typedef struct _ThumbnailViewClass ThumbnailViewClass; - -#define TYPE_CHECKERBOARD_ITEM (checkerboard_item_get_type ()) -#define CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItem)) -#define CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) -#define IS_CHECKERBOARD_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_ITEM)) -#define IS_CHECKERBOARD_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_ITEM)) -#define CHECKERBOARD_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_ITEM, CheckerboardItemClass)) - -typedef struct _CheckerboardItem CheckerboardItem; -typedef struct _CheckerboardItemClass CheckerboardItemClass; - -#define CHECKERBOARD_PAGE_TYPE_ACTIVATOR (checkerboard_page_activator_get_type ()) - -#define CHECKERBOARD_PAGE_TYPE_KEYBOARD_MODIFIERS (checkerboard_page_keyboard_modifiers_get_type ()) -typedef struct _CheckerboardPageKeyboardModifiers CheckerboardPageKeyboardModifiers; - -#define TYPE_VIEW_FILTER (view_filter_get_type ()) -#define VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_FILTER, ViewFilter)) -#define VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_FILTER, ViewFilterClass)) -#define IS_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_FILTER)) -#define IS_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_FILTER)) -#define VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_FILTER, ViewFilterClass)) - -typedef struct _ViewFilter ViewFilter; -typedef struct _ViewFilterClass ViewFilterClass; - -#define TYPE_SEARCH_VIEW_FILTER (search_view_filter_get_type ()) -#define SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilter)) -#define SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) -#define IS_SEARCH_VIEW_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEARCH_VIEW_FILTER)) -#define IS_SEARCH_VIEW_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEARCH_VIEW_FILTER)) -#define SEARCH_VIEW_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEARCH_VIEW_FILTER, SearchViewFilterClass)) - -typedef struct _SearchViewFilter SearchViewFilter; -typedef struct _SearchViewFilterClass SearchViewFilterClass; - -#define CORE_TYPE_TRACKER (core_tracker_get_type ()) -#define CORE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_TRACKER, CoreTracker)) -#define CORE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_TRACKER, CoreTrackerClass)) -#define CORE_IS_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_TRACKER)) -#define CORE_IS_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_TRACKER)) -#define CORE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_TRACKER, CoreTrackerClass)) - -typedef struct _CoreTracker CoreTracker; -typedef struct _CoreTrackerClass CoreTrackerClass; - -#define CORE_TYPE_VIEW_TRACKER (core_view_tracker_get_type ()) -#define CORE_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTracker)) -#define CORE_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) -#define CORE_IS_VIEW_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CORE_TYPE_VIEW_TRACKER)) -#define CORE_IS_VIEW_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CORE_TYPE_VIEW_TRACKER)) -#define CORE_VIEW_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CORE_TYPE_VIEW_TRACKER, CoreViewTrackerClass)) - -typedef struct _CoreViewTracker CoreViewTracker; -typedef struct _CoreViewTrackerClass CoreViewTrackerClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; -typedef struct _MediaPagePrivate MediaPagePrivate; - -#define TYPE_RATING (rating_get_type ()) - -#define TYPE_RAW_DEVELOPER (raw_developer_get_type ()) - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; -typedef struct _CollectionPagePrivate CollectionPagePrivate; - -#define TYPE_TAG_PAGE (tag_page_get_type ()) -#define TAG_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_PAGE, TagPage)) -#define TAG_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_PAGE, TagPageClass)) -#define IS_TAG_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_PAGE)) -#define IS_TAG_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_PAGE)) -#define TAG_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_PAGE, TagPageClass)) - -typedef struct _TagPage TagPage; -typedef struct _TagPageClass TagPageClass; -typedef struct _TagPagePrivate TagPagePrivate; - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; -enum { - TAG_PAGE_0_PROPERTY, - TAG_PAGE_NUM_PROPERTIES -}; -static GParamSpec* tag_page_properties[TAG_PAGE_NUM_PROPERTIES]; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_VIEW_COLLECTION (view_collection_get_type ()) -#define VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VIEW_COLLECTION, ViewCollection)) -#define VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VIEW_COLLECTION, ViewCollectionClass)) -#define IS_VIEW_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VIEW_COLLECTION)) -#define IS_VIEW_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VIEW_COLLECTION)) -#define VIEW_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VIEW_COLLECTION, ViewCollectionClass)) - -typedef struct _ViewCollection ViewCollection; -typedef struct _ViewCollectionClass ViewCollectionClass; -#define _data_collection_unref0(var) ((var == NULL) ? NULL : (var = (data_collection_unref (var), NULL))) - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ()) -#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection)) -#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) -#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION)) -#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION)) -#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) - -typedef struct _TagSourceCollection TagSourceCollection; -typedef struct _TagSourceCollectionClass TagSourceCollectionClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; - -#define TYPE_SIMPLE_PROXYABLE_COMMAND (simple_proxyable_command_get_type ()) -#define SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand)) -#define SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass)) -#define IS_SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND)) -#define IS_SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND)) -#define SIMPLE_PROXYABLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass)) - -typedef struct _SimpleProxyableCommand SimpleProxyableCommand; -typedef struct _SimpleProxyableCommandClass SimpleProxyableCommandClass; - -#define TYPE_NEW_CHILD_TAG_COMMAND (new_child_tag_command_get_type ()) -#define NEW_CHILD_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommand)) -#define NEW_CHILD_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommandClass)) -#define IS_NEW_CHILD_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NEW_CHILD_TAG_COMMAND)) -#define IS_NEW_CHILD_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NEW_CHILD_TAG_COMMAND)) -#define NEW_CHILD_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NEW_CHILD_TAG_COMMAND, NewChildTagCommandClass)) - -typedef struct _NewChildTagCommand NewChildTagCommand; -typedef struct _NewChildTagCommandClass NewChildTagCommandClass; - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) - -#define TYPE_APP_WINDOW (app_window_get_type ()) -#define APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_WINDOW, AppWindow)) -#define APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_WINDOW, AppWindowClass)) -#define IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_WINDOW)) -#define IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_WINDOW)) -#define APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_WINDOW, AppWindowClass)) - -typedef struct _AppWindow AppWindow; -typedef struct _AppWindowClass AppWindowClass; - -#define TYPE_LIBRARY_WINDOW (library_window_get_type ()) -#define LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIBRARY_WINDOW, LibraryWindow)) -#define LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) -#define IS_LIBRARY_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIBRARY_WINDOW)) -#define IS_LIBRARY_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIBRARY_WINDOW)) -#define LIBRARY_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIBRARY_WINDOW, LibraryWindowClass)) - -typedef struct _LibraryWindow LibraryWindow; -typedef struct _LibraryWindowClass LibraryWindowClass; - -#define TYPE_DELETE_TAG_COMMAND (delete_tag_command_get_type ()) -#define DELETE_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_TAG_COMMAND, DeleteTagCommand)) -#define DELETE_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandClass)) -#define IS_DELETE_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DELETE_TAG_COMMAND)) -#define IS_DELETE_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DELETE_TAG_COMMAND)) -#define DELETE_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandClass)) - -typedef struct _DeleteTagCommand DeleteTagCommand; -typedef struct _DeleteTagCommandClass DeleteTagCommandClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_TAG_UNTAG_PHOTOS_COMMAND (tag_untag_photos_command_get_type ()) -#define TAG_UNTAG_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommand)) -#define TAG_UNTAG_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandClass)) -#define IS_TAG_UNTAG_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND)) -#define IS_TAG_UNTAG_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_UNTAG_PHOTOS_COMMAND)) -#define TAG_UNTAG_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandClass)) - -typedef struct _TagUntagPhotosCommand TagUntagPhotosCommand; -typedef struct _TagUntagPhotosCommandClass TagUntagPhotosCommandClass; - -struct _Page { - GtkScrolledWindow parent_instance; - PagePrivate * priv; - GtkBuilder* builder; - GtkToolbar* toolbar; - gboolean in_view; -}; - -struct _PageClass { - GtkScrolledWindowClass parent_class; - void (*set_page_name) (Page* self, const gchar* page_name); - void (*set_container) (Page* self, GtkWindow* container); - void (*clear_container) (Page* self); - GtkToolbar* (*get_toolbar) (Page* self); - GtkMenu* (*get_page_context_menu) (Page* self); - void (*switching_from) (Page* self); - void (*switched_to) (Page* self); - void (*ready) (Page* self); - void (*switching_to_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*returning_from_fullscreen) (Page* self, FullscreenWindow* fsw); - void (*add_actions) (Page* self, GActionMap* map); - void (*remove_actions) (Page* self, GActionMap* map); - void (*init_collect_ui_filenames) (Page* self, GeeList* ui_filenames); - InjectionGroup** (*init_collect_injection_groups) (Page* self, int* result_length1); - void (*init_actions) (Page* self, gint selected_count, gint count); - void (*update_actions) (Page* self, gint selected_count, gint count); - gboolean (*source_drag_failed) (Page* self, GdkDragContext* context, GtkDragResult drag_result); - gboolean (*on_left_click) (Page* self, GdkEventButton* event); - gboolean (*on_middle_click) (Page* self, GdkEventButton* event); - gboolean (*on_right_click) (Page* self, GdkEventButton* event); - gboolean (*on_left_released) (Page* self, GdkEventButton* event); - gboolean (*on_middle_released) (Page* self, GdkEventButton* event); - gboolean (*on_right_released) (Page* self, GdkEventButton* event); - gboolean (*on_ctrl_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_ctrl_released) (Page* self, GdkEventKey* event); - gboolean (*on_alt_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_alt_released) (Page* self, GdkEventKey* event); - gboolean (*on_shift_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_shift_released) (Page* self, GdkEventKey* event); - gboolean (*on_super_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_super_released) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_pressed) (Page* self, GdkEventKey* event); - gboolean (*on_app_key_released) (Page* self, GdkEventKey* event); - void (*on_move) (Page* self, GdkRectangle* rect); - void (*on_move_start) (Page* self, GdkRectangle* rect); - void (*on_move_finished) (Page* self, GdkRectangle* rect); - void (*on_resize) (Page* self, GdkRectangle* rect); - void (*on_resize_start) (Page* self, GdkRectangle* rect); - void (*on_resize_finished) (Page* self, GdkRectangle* rect); - gboolean (*on_configure) (Page* self, GdkEventConfigure* event, GdkRectangle* rect); - gboolean (*on_motion) (Page* self, GdkEventMotion* event, gint x, gint y, GdkModifierType mask); - gboolean (*on_leave_notify_event) (Page* self); - gboolean (*on_mousewheel_up) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_down) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_left) (Page* self, GdkEventScroll* event); - gboolean (*on_mousewheel_right) (Page* self, GdkEventScroll* event); - gboolean (*on_context_keypress) (Page* self); - gboolean (*on_context_buttonpress) (Page* self, GdkEventButton* event); - gboolean (*on_context_invoked) (Page* self); - void (*set_page_cursor) (Page* self, GdkCursorType cursor_type); -}; - -typedef enum { - CHECKERBOARD_PAGE_ACTIVATOR_KEYBOARD, - CHECKERBOARD_PAGE_ACTIVATOR_MOUSE -} CheckerboardPageActivator; - -struct _CheckerboardPageKeyboardModifiers { - gboolean ctrl_pressed; - gboolean alt_pressed; - gboolean shift_pressed; - gboolean super_pressed; -}; - -struct _CheckerboardPage { - Page parent_instance; - CheckerboardPagePrivate * priv; - CheckerboardItem* anchor; - CheckerboardItem* cursor; -}; - -struct _CheckerboardPageClass { - PageClass parent_class; - GtkMenu* (*get_item_context_menu) (CheckerboardPage* self); - gchar* (*get_view_empty_message) (CheckerboardPage* self); - gchar* (*get_filter_no_match_message) (CheckerboardPage* self); - void (*on_item_activated) (CheckerboardPage* self, CheckerboardItem* item, CheckerboardPageActivator activator, CheckerboardPageKeyboardModifiers* modifiers); - SearchViewFilter* (*get_search_view_filter) (CheckerboardPage* self); - CoreViewTracker* (*get_view_tracker) (CheckerboardPage* self); - gboolean (*on_mouse_over) (CheckerboardPage* self, CheckerboardItem* item, gint x, gint y, GdkModifierType mask); - void (*set_display_titles) (CheckerboardPage* self, gboolean display); - void (*set_display_comments) (CheckerboardPage* self, gboolean display); -}; - -typedef enum { - RATING_REJECTED = -1, - RATING_UNRATED = 0, - RATING_ONE = 1, - RATING_TWO = 2, - RATING_THREE = 3, - RATING_FOUR = 4, - RATING_FIVE = 5 -} Rating; - -typedef enum { - RAW_DEVELOPER_SHOTWELL = 0, - RAW_DEVELOPER_CAMERA, - RAW_DEVELOPER_EMBEDDED -} RawDeveloper; - -struct _MediaPage { - CheckerboardPage parent_instance; - MediaPagePrivate * priv; -}; - -struct _MediaPageClass { - CheckerboardPageClass parent_class; - void (*on_zoom_changed) (MediaPage* self); - void (*on_export) (MediaPage* self); - void (*on_increase_size) (MediaPage* self); - void (*on_decrease_size) (MediaPage* self); - void (*on_increase_rating) (MediaPage* self); - void (*on_decrease_rating) (MediaPage* self); - void (*on_set_rating) (MediaPage* self, Rating rating); - void (*on_rate_rejected) (MediaPage* self); - void (*on_rate_unrated) (MediaPage* self); - void (*on_rate_one) (MediaPage* self); - void (*on_rate_two) (MediaPage* self); - void (*on_rate_three) (MediaPage* self); - void (*on_rate_four) (MediaPage* self); - void (*on_rate_five) (MediaPage* self); - void (*on_move_to_trash) (MediaPage* self); - void (*on_edit_title) (MediaPage* self); - void (*on_edit_comment) (MediaPage* self); - void (*on_display_titles) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_comments) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_ratings) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*on_display_tags) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*get_config_photos_sort) (MediaPage* self, gboolean* sort_order, gint* sort_by); - void (*set_config_photos_sort) (MediaPage* self, gboolean sort_order, gint sort_by); - void (*on_sort_changed) (MediaPage* self, GSimpleAction* action, GVariant* value); - void (*developer_changed) (MediaPage* self, RawDeveloper rd); - DataView* (*create_thumbnail) (MediaPage* self, DataSource* source); -}; - -struct _CollectionPage { - MediaPage parent_instance; - CollectionPagePrivate * priv; -}; - -struct _CollectionPageClass { - MediaPageClass parent_class; -}; - -struct _TagPage { - CollectionPage parent_instance; - TagPagePrivate * priv; -}; - -struct _TagPageClass { - CollectionPageClass parent_class; -}; - -struct _TagPagePrivate { - Tag* tag; -}; - -typedef DataView* (*CreateView) (DataSource* source, void* user_data); - -static gpointer tag_page_parent_class = NULL; -extern TagSourceCollection* tag_global; - -GType page_get_type (void) G_GNUC_CONST; -GType page_window_get_type (void) G_GNUC_CONST; -GType fullscreen_window_get_type (void) G_GNUC_CONST; -gpointer injection_group_ref (gpointer instance); -void injection_group_unref (gpointer instance); -GParamSpec* param_spec_injection_group (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_injection_group (GValue* value, - gpointer v_object); -void value_take_injection_group (GValue* value, - gpointer v_object); -gpointer value_get_injection_group (const GValue* value); -GType injection_group_get_type (void) G_GNUC_CONST; -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_view_get_type (void) G_GNUC_CONST; -GType thumbnail_view_get_type (void) G_GNUC_CONST; -GType checkerboard_item_get_type (void) G_GNUC_CONST; -GType checkerboard_page_activator_get_type (void) G_GNUC_CONST; -GType checkerboard_page_keyboard_modifiers_get_type (void) G_GNUC_CONST; -CheckerboardPageKeyboardModifiers* checkerboard_page_keyboard_modifiers_dup (const CheckerboardPageKeyboardModifiers* self); -void checkerboard_page_keyboard_modifiers_free (CheckerboardPageKeyboardModifiers* self); -gpointer view_filter_ref (gpointer instance); -void view_filter_unref (gpointer instance); -GParamSpec* param_spec_view_filter (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_view_filter (GValue* value, - gpointer v_object); -void value_take_view_filter (GValue* value, - gpointer v_object); -gpointer value_get_view_filter (const GValue* value); -GType view_filter_get_type (void) G_GNUC_CONST; -GType search_view_filter_get_type (void) G_GNUC_CONST; -gpointer core_tracker_ref (gpointer instance); -void core_tracker_unref (gpointer instance); -GParamSpec* core_param_spec_tracker (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void core_value_set_tracker (GValue* value, - gpointer v_object); -void core_value_take_tracker (GValue* value, - gpointer v_object); -gpointer core_value_get_tracker (const GValue* value); -GType core_tracker_get_type (void) G_GNUC_CONST; -GType core_view_tracker_get_type (void) G_GNUC_CONST; -GType media_page_get_type (void) G_GNUC_CONST; -GType rating_get_type (void) G_GNUC_CONST; -GType raw_developer_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -GType tag_page_get_type (void) G_GNUC_CONST; -GType tag_get_type (void) G_GNUC_CONST; -#define TAG_PAGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TAG_PAGE, TagPagePrivate)) -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType view_collection_get_type (void) G_GNUC_CONST; -ViewCollection* page_get_view (Page* self); -void view_collection_halt_mirroring (ViewCollection* self); -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType tag_source_collection_get_type (void) G_GNUC_CONST; -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -static void tag_page_on_tags_altered (TagPage* self, - GeeMap* map); -static void _tag_page_on_tags_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -static void tag_page_on_delete_tag (TagPage* self); -static void _tag_page_on_delete_tag_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void tag_page_on_rename_tag (TagPage* self); -static void _tag_page_on_rename_tag_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void tag_page_on_remove_tag_from_photos (TagPage* self); -static void _tag_page_on_remove_tag_from_photos_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -static void tag_page_on_new_child_tag_sidebar (TagPage* self); -static void _tag_page_on_new_child_tag_sidebar_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self); -TagPage* tag_page_new (Tag* tag); -TagPage* tag_page_construct (GType object_type, - Tag* tag); -gchar* data_object_get_name (DataObject* self); -CollectionPage* collection_page_construct (GType object_type, - const gchar* page_name); -void tag_mirror_sources (Tag* self, - ViewCollection* view, - CreateView mirroring_ctor, - void* mirroring_ctor_target); -DataView* media_page_create_thumbnail (MediaPage* self, - DataSource* source); -static DataView* _media_page_create_thumbnail_create_view (DataSource* source, - gpointer self); -void checkerboard_page_init_page_context_menu (CheckerboardPage* self, - const gchar* path); -static void tag_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames); -void page_init_collect_ui_filenames (Page* self, - GeeList* ui_filenames); -Tag* tag_page_get_tag (TagPage* self); -static void tag_page_real_get_config_photos_sort (MediaPage* base, - gboolean* sort_order, - gint* sort_by); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -void configuration_facade_get_event_photos_sort (ConfigurationFacade* self, - gboolean* sort_order, - gint* sort_by); -static void tag_page_real_set_config_photos_sort (MediaPage* base, - gboolean sort_order, - gint sort_by); -void configuration_facade_set_event_photos_sort (ConfigurationFacade* self, - gboolean sort_order, - gint sort_by); -static void tag_page_real_add_actions (Page* base, - GActionMap* map); -void page_add_actions (Page* self, - GActionMap* map); -static void tag_page_real_remove_actions (Page* base, - GActionMap* map); -void page_remove_actions (Page* self, - GActionMap* map); -void page_set_page_name (Page* self, - const gchar* page_name); -void page_update_actions (Page* self, - gint selected_count, - gint count); -gint view_collection_get_selected_count (ViewCollection* self); -gint data_collection_get_count (DataCollection* self); -static void tag_page_real_switched_to (Page* base); -void page_switched_to (Page* self); -void page_update_menu_item_label (Page* self, - const gchar* id, - const gchar* new_label); -gchar* resources_delete_tag_menu (const gchar* name); -gchar* tag_get_user_visible_name (Tag* self); -gchar* resources_rename_tag_menu (const gchar* name); -gchar* resources_untag_photos_menu (const gchar* name, - gint count); -static void tag_page_real_update_actions (Page* base, - gint selected_count, - gint count); -void page_set_action_details (Page* self, - const gchar* name, - const gchar* label, - const gchar* tooltip, - gboolean sensitive); -GType command_get_type (void) G_GNUC_CONST; -GType page_command_get_type (void) G_GNUC_CONST; -GType simple_proxyable_command_get_type (void) G_GNUC_CONST; -GType new_child_tag_command_get_type (void) G_GNUC_CONST; -NewChildTagCommand* new_child_tag_command_new (Tag* tag); -NewChildTagCommand* new_child_tag_command_construct (GType object_type, - Tag* tag); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* app_window_get_command_manager (void); -void command_manager_execute (CommandManager* self, - Command* command); -GType app_window_get_type (void) G_GNUC_CONST; -GType library_window_get_type (void) G_GNUC_CONST; -LibraryWindow* library_window_get_app (void); -void library_window_rename_tag_in_sidebar (LibraryWindow* self, - Tag* tag); -Tag* new_child_tag_command_get_created_child (NewChildTagCommand* self); -gboolean dialogs_confirm_delete_tag (Tag* tag); -DeleteTagCommand* delete_tag_command_new (Tag* tag); -DeleteTagCommand* delete_tag_command_construct (GType object_type, - Tag* tag); -GType delete_tag_command_get_type (void) G_GNUC_CONST; -CommandManager* page_get_command_manager (Page* self); -GeeList* view_collection_get_selected_sources (ViewCollection* self); -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -TagUntagPhotosCommand* tag_untag_photos_command_new (Tag* tag, - GeeCollection* sources, - gint count, - gboolean attach); -TagUntagPhotosCommand* tag_untag_photos_command_construct (GType object_type, - Tag* tag, - GeeCollection* sources, - gint count, - gboolean attach); -GType tag_untag_photos_command_get_type (void) G_GNUC_CONST; -static void tag_page_finalize (GObject * obj); - -static const GActionEntry TAG_PAGE_entries[4] = {{"DeleteTag", _tag_page_on_delete_tag_gsimple_action_activate_callback}, {"RenameTag", _tag_page_on_rename_tag_gsimple_action_activate_callback}, {"RemoveTagFromPhotos", _tag_page_on_remove_tag_from_photos_gsimple_action_activate_callback}, {"NewChildTagSidebar", _tag_page_on_new_child_tag_sidebar_gsimple_action_activate_callback}}; - -static void -_tag_page_on_tags_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 23 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - tag_page_on_tags_altered ((TagPage*) self, items); -#line 840 "TagPage.c" -} - - -static void -_tag_page_on_delete_tag_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 43 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - tag_page_on_delete_tag ((TagPage*) self); -#line 851 "TagPage.c" -} - - -static void -_tag_page_on_rename_tag_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 43 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - tag_page_on_rename_tag ((TagPage*) self); -#line 862 "TagPage.c" -} - - -static void -_tag_page_on_remove_tag_from_photos_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 43 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - tag_page_on_remove_tag_from_photos ((TagPage*) self); -#line 873 "TagPage.c" -} - - -static void -_tag_page_on_new_child_tag_sidebar_gsimple_action_activate_callback (GSimpleAction* action, - GVariant* parameter, - gpointer self) -{ -#line 43 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - tag_page_on_new_child_tag_sidebar ((TagPage*) self); -#line 884 "TagPage.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - return self ? g_object_ref (self) : NULL; -#line 893 "TagPage.c" -} - - -static DataView* -_media_page_create_thumbnail_create_view (DataSource* source, - gpointer self) -{ - DataView* result; - result = media_page_create_thumbnail ((MediaPage*) self, source); -#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - return result; -#line 905 "TagPage.c" -} - - -TagPage* -tag_page_construct (GType object_type, - Tag* tag) -{ - TagPage * self = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - Tag* _tmp2_; - TagSourceCollection* _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; -#line 10 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_return_val_if_fail (IS_TAG (tag), NULL); -#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp0_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (tag, TYPE_DATA_OBJECT, DataObject)); -#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp1_ = _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - self = (TagPage*) collection_page_construct (object_type, _tmp1_); -#line 11 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_free0 (_tmp1_); -#line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp2_ = _g_object_ref0 (tag); -#line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_object_unref0 (self->priv->tag); -#line 13 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - self->priv->tag = _tmp2_; -#line 15 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp3_ = tag_global; -#line 15 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _tag_page_on_tags_altered_data_collection_items_altered, self, 0); -#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp5_ = _tmp4_; -#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - tag_mirror_sources (tag, _tmp5_, _media_page_create_thumbnail_create_view, G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_PAGE, MediaPage)); -#line 16 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _data_collection_unref0 (_tmp5_); -#line 18 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - checkerboard_page_init_page_context_menu (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_CHECKERBOARD_PAGE, CheckerboardPage), "TagsContextMenu"); -#line 10 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - return self; -#line 952 "TagPage.c" -} - - -TagPage* -tag_page_new (Tag* tag) -{ -#line 10 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - return tag_page_construct (TYPE_TAG_PAGE, tag); -#line 961 "TagPage.c" -} - - -static void -tag_page_real_init_collect_ui_filenames (Page* base, - GeeList* ui_filenames) -{ - TagPage * self; -#line 26 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage); -#line 26 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_return_if_fail (GEE_IS_LIST (ui_filenames)); -#line 27 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - PAGE_CLASS (tag_page_parent_class)->init_collect_ui_filenames (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), ui_filenames); -#line 28 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (ui_filenames, GEE_TYPE_COLLECTION, GeeCollection), "tags.ui"); -#line 978 "TagPage.c" -} - - -Tag* -tag_page_get_tag (TagPage* self) -{ - Tag* result = NULL; - Tag* _tmp0_; - Tag* _tmp1_; -#line 31 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_return_val_if_fail (IS_TAG_PAGE (self), NULL); -#line 32 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp0_ = self->priv->tag; -#line 32 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 32 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - result = _tmp1_; -#line 32 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - return result; -#line 998 "TagPage.c" -} - - -static void -tag_page_real_get_config_photos_sort (MediaPage* base, - gboolean* sort_order, - gint* sort_by) -{ - TagPage * self; - gboolean _vala_sort_order = FALSE; - gint _vala_sort_by = 0; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; - gboolean _tmp2_ = FALSE; - gint _tmp3_ = 0; -#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage); -#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp1_ = _tmp0_; -#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - configuration_facade_get_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), &_tmp2_, &_tmp3_); -#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _vala_sort_order = _tmp2_; -#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _vala_sort_by = _tmp3_; -#line 36 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_object_unref0 (_tmp1_); -#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - if (sort_order) { -#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - *sort_order = _vala_sort_order; -#line 1032 "TagPage.c" - } -#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - if (sort_by) { -#line 35 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - *sort_by = _vala_sort_by; -#line 1038 "TagPage.c" - } -} - - -static void -tag_page_real_set_config_photos_sort (MediaPage* base, - gboolean sort_order, - gint sort_by) -{ - TagPage * self; - ConfigFacade* _tmp0_; - ConfigFacade* _tmp1_; -#line 39 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage); -#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp0_ = config_facade_get_instance (); -#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp1_ = _tmp0_; -#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - configuration_facade_set_event_photos_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), sort_order, sort_by); -#line 40 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_object_unref0 (_tmp1_); -#line 1061 "TagPage.c" -} - - -static void -tag_page_real_add_actions (Page* base, - GActionMap* map) -{ - TagPage * self; -#line 50 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage); -#line 50 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 51 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - PAGE_CLASS (tag_page_parent_class)->add_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), map); -#line 53 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_action_map_add_action_entries (map, TAG_PAGE_entries, G_N_ELEMENTS (TAG_PAGE_entries), self); -#line 1078 "TagPage.c" -} - - -static void -tag_page_real_remove_actions (Page* base, - GActionMap* map) -{ - TagPage * self; -#line 56 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage); -#line 56 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_return_if_fail (G_IS_ACTION_MAP (map)); -#line 57 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - PAGE_CLASS (tag_page_parent_class)->remove_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), map); -#line 1093 "TagPage.c" - { - GActionEntry* entry_collection = NULL; - gint entry_collection_length1 = 0; - gint _entry_collection_size_ = 0; - gint entry_it = 0; -#line 58 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - entry_collection = TAG_PAGE_entries; -#line 58 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - entry_collection_length1 = G_N_ELEMENTS (TAG_PAGE_entries); -#line 58 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - for (entry_it = 0; entry_it < G_N_ELEMENTS (TAG_PAGE_entries); entry_it = entry_it + 1) { -#line 1105 "TagPage.c" - GActionEntry entry = {0}; -#line 58 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - entry = entry_collection[entry_it]; -#line 1109 "TagPage.c" - { - GActionEntry _tmp0_; - const gchar* _tmp1_; -#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp0_ = entry; -#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp1_ = _tmp0_.name; -#line 59 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_action_map_remove_action (map, _tmp1_); -#line 1119 "TagPage.c" - } - } - } -} - - -static void -tag_page_on_tags_altered (TagPage* self, - GeeMap* map) -{ - Tag* _tmp0_; -#line 63 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_return_if_fail (IS_TAG_PAGE (self)); -#line 63 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_return_if_fail (GEE_IS_MAP (map)); -#line 64 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp0_ = self->priv->tag; -#line 64 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - if (gee_map_has_key (map, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_OBJECT, DataObject))) { -#line 1139 "TagPage.c" - Tag* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - ViewCollection* _tmp4_; - ViewCollection* _tmp5_; - ViewCollection* _tmp6_; - ViewCollection* _tmp7_; -#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp1_ = self->priv->tag; -#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp2_ = data_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_OBJECT, DataObject)); -#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp3_ = _tmp2_; -#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - page_set_page_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), _tmp3_); -#line 65 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_free0 (_tmp3_); -#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp4_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp5_ = _tmp4_; -#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp7_ = _tmp6_; -#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - page_update_actions (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), view_collection_get_selected_count (_tmp5_), data_collection_get_count (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_DATA_COLLECTION, DataCollection))); -#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _data_collection_unref0 (_tmp7_); -#line 66 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _data_collection_unref0 (_tmp5_); -#line 1171 "TagPage.c" - } -} - - -static void -tag_page_real_switched_to (Page* base) -{ - TagPage * self; - Tag* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - Tag* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - Tag* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; -#line 70 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage); -#line 71 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - PAGE_CLASS (tag_page_parent_class)->switched_to (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page)); -#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp0_ = self->priv->tag; -#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp1_ = tag_get_user_visible_name (_tmp0_); -#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp2_ = _tmp1_; -#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp3_ = resources_delete_tag_menu (_tmp2_); -#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp4_ = _tmp3_; -#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - page_update_menu_item_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DeleteTag", _tmp4_); -#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_free0 (_tmp4_); -#line 72 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_free0 (_tmp2_); -#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp5_ = self->priv->tag; -#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp6_ = tag_get_user_visible_name (_tmp5_); -#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp7_ = _tmp6_; -#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp8_ = resources_rename_tag_menu (_tmp7_); -#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp9_ = _tmp8_; -#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - page_update_menu_item_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RenameTag", _tmp9_); -#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_free0 (_tmp9_); -#line 74 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_free0 (_tmp7_); -#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp10_ = self->priv->tag; -#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp11_ = tag_get_user_visible_name (_tmp10_); -#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp12_ = _tmp11_; -#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp13_ = resources_untag_photos_menu (_tmp12_, 0); -#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp14_ = _tmp13_; -#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - page_update_menu_item_label (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RemoveTagFromPhotos", _tmp14_); -#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_free0 (_tmp14_); -#line 76 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_free0 (_tmp12_); -#line 1247 "TagPage.c" -} - - -static void -tag_page_real_update_actions (Page* base, - gint selected_count, - gint count) -{ - TagPage * self; - Tag* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - Tag* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gchar* _tmp9_; - Tag* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; -#line 80 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TAG_PAGE, TagPage); -#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp0_ = self->priv->tag; -#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp1_ = tag_get_user_visible_name (_tmp0_); -#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp2_ = _tmp1_; -#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp3_ = resources_delete_tag_menu (_tmp2_); -#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp4_ = _tmp3_; -#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - page_set_action_details (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "DeleteTag", _tmp4_, NULL, TRUE); -#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_free0 (_tmp4_); -#line 81 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_free0 (_tmp2_); -#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp5_ = self->priv->tag; -#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp6_ = tag_get_user_visible_name (_tmp5_); -#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp7_ = _tmp6_; -#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp8_ = resources_rename_tag_menu (_tmp7_); -#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp9_ = _tmp8_; -#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - page_set_action_details (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RenameTag", _tmp9_, NULL, TRUE); -#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_free0 (_tmp9_); -#line 86 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_free0 (_tmp7_); -#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp10_ = self->priv->tag; -#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp11_ = tag_get_user_visible_name (_tmp10_); -#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp12_ = _tmp11_; -#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp13_ = resources_untag_photos_menu (_tmp12_, selected_count); -#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp14_ = _tmp13_; -#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - page_set_action_details (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page), "RemoveTagFromPhotos", _tmp14_, NULL, selected_count > 0); -#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_free0 (_tmp14_); -#line 91 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_free0 (_tmp12_); -#line 96 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - PAGE_CLASS (tag_page_parent_class)->update_actions (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_COLLECTION_PAGE, CollectionPage), TYPE_PAGE, Page), selected_count, count); -#line 1324 "TagPage.c" -} - - -static void -tag_page_on_new_child_tag_sidebar (TagPage* self) -{ - NewChildTagCommand* creation_command = NULL; - Tag* _tmp0_; - NewChildTagCommand* _tmp1_; - CommandManager* _tmp2_; - CommandManager* _tmp3_; - LibraryWindow* _tmp4_; - LibraryWindow* _tmp5_; - Tag* _tmp6_; - Tag* _tmp7_; -#line 99 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_return_if_fail (IS_TAG_PAGE (self)); -#line 100 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp0_ = self->priv->tag; -#line 100 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp1_ = new_child_tag_command_new (_tmp0_); -#line 100 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - creation_command = _tmp1_; -#line 102 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp2_ = app_window_get_command_manager (); -#line 102 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp3_ = _tmp2_; -#line 102 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - command_manager_execute (_tmp3_, G_TYPE_CHECK_INSTANCE_CAST (creation_command, TYPE_COMMAND, Command)); -#line 102 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _command_manager_unref0 (_tmp3_); -#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp4_ = library_window_get_app (); -#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp5_ = _tmp4_; -#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp6_ = new_child_tag_command_get_created_child (creation_command); -#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp7_ = _tmp6_; -#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - library_window_rename_tag_in_sidebar (_tmp5_, _tmp7_); -#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_object_unref0 (_tmp7_); -#line 104 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_object_unref0 (_tmp5_); -#line 99 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_object_unref0 (creation_command); -#line 1372 "TagPage.c" -} - - -static void -tag_page_on_rename_tag (TagPage* self) -{ - LibraryWindow* _tmp0_; - LibraryWindow* _tmp1_; - Tag* _tmp2_; -#line 107 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_return_if_fail (IS_TAG_PAGE (self)); -#line 108 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp0_ = library_window_get_app (); -#line 108 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp1_ = _tmp0_; -#line 108 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp2_ = self->priv->tag; -#line 108 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - library_window_rename_tag_in_sidebar (_tmp1_, _tmp2_); -#line 108 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_object_unref0 (_tmp1_); -#line 1394 "TagPage.c" -} - - -static void -tag_page_on_delete_tag (TagPage* self) -{ - Tag* _tmp0_; -#line 111 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_return_if_fail (IS_TAG_PAGE (self)); -#line 112 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp0_ = self->priv->tag; -#line 112 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - if (dialogs_confirm_delete_tag (_tmp0_)) { -#line 1408 "TagPage.c" - CommandManager* _tmp1_; - CommandManager* _tmp2_; - Tag* _tmp3_; - DeleteTagCommand* _tmp4_; - DeleteTagCommand* _tmp5_; -#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp1_ = app_window_get_command_manager (); -#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp2_ = _tmp1_; -#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp3_ = self->priv->tag; -#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp4_ = delete_tag_command_new (_tmp3_); -#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp5_ = _tmp4_; -#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - command_manager_execute (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_COMMAND, Command)); -#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_object_unref0 (_tmp5_); -#line 113 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _command_manager_unref0 (_tmp2_); -#line 1430 "TagPage.c" - } -} - - -static void -tag_page_on_remove_tag_from_photos (TagPage* self) -{ - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - gboolean _tmp2_; -#line 116 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_return_if_fail (IS_TAG_PAGE (self)); -#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp1_ = _tmp0_; -#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp2_ = view_collection_get_selected_count (_tmp1_) > 0; -#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _data_collection_unref0 (_tmp1_); -#line 117 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - if (_tmp2_) { -#line 1453 "TagPage.c" - CommandManager* _tmp3_; - CommandManager* _tmp4_; - Tag* _tmp5_; - ViewCollection* _tmp6_; - ViewCollection* _tmp7_; - GeeList* _tmp8_; - GeeCollection* _tmp9_; - ViewCollection* _tmp10_; - ViewCollection* _tmp11_; - TagUntagPhotosCommand* _tmp12_; - TagUntagPhotosCommand* _tmp13_; -#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp3_ = page_get_command_manager (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp4_ = _tmp3_; -#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp5_ = self->priv->tag; -#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp6_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp7_ = _tmp6_; -#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp8_ = view_collection_get_selected_sources (_tmp7_); -#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection); -#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp10_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp11_ = _tmp10_; -#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp12_ = tag_untag_photos_command_new (_tmp5_, _tmp9_, view_collection_get_selected_count (_tmp11_), FALSE); -#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp13_ = _tmp12_; -#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - command_manager_execute (_tmp4_, G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_COMMAND, Command)); -#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_object_unref0 (_tmp13_); -#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _data_collection_unref0 (_tmp11_); -#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_object_unref0 (_tmp9_); -#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _data_collection_unref0 (_tmp7_); -#line 118 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _command_manager_unref0 (_tmp4_); -#line 1499 "TagPage.c" - } -} - - -static void -tag_page_class_init (TagPageClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - tag_page_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_type_class_add_private (klass, sizeof (TagPagePrivate)); -#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - ((PageClass *) klass)->init_collect_ui_filenames = (void (*) (Page *, GeeList*)) tag_page_real_init_collect_ui_filenames; -#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - ((MediaPageClass *) klass)->get_config_photos_sort = (void (*) (MediaPage *, gboolean*, gint*)) tag_page_real_get_config_photos_sort; -#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - ((MediaPageClass *) klass)->set_config_photos_sort = (void (*) (MediaPage *, gboolean, gint)) tag_page_real_set_config_photos_sort; -#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - ((PageClass *) klass)->add_actions = (void (*) (Page *, GActionMap*)) tag_page_real_add_actions; -#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - ((PageClass *) klass)->remove_actions = (void (*) (Page *, GActionMap*)) tag_page_real_remove_actions; -#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - ((PageClass *) klass)->switched_to = (void (*) (Page *)) tag_page_real_switched_to; -#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - ((PageClass *) klass)->update_actions = (void (*) (Page *, gint, gint)) tag_page_real_update_actions; -#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - G_OBJECT_CLASS (klass)->finalize = tag_page_finalize; -#line 1527 "TagPage.c" -} - - -static void -tag_page_instance_init (TagPage * self) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - self->priv = TAG_PAGE_GET_PRIVATE (self); -#line 1536 "TagPage.c" -} - - -static void -tag_page_finalize (GObject * obj) -{ - TagPage * self; - ViewCollection* _tmp0_; - ViewCollection* _tmp1_; - TagSourceCollection* _tmp2_; - guint _tmp3_; -#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TAG_PAGE, TagPage); -#line 22 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp0_ = page_get_view (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_PAGE, Page)); -#line 22 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp1_ = _tmp0_; -#line 22 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - view_collection_halt_mirroring (_tmp1_); -#line 22 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _data_collection_unref0 (_tmp1_); -#line 23 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _tmp2_ = tag_global; -#line 23 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE); -#line 23 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _tag_page_on_tags_altered_data_collection_items_altered, self); -#line 8 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - _g_object_unref0 (self->priv->tag); -#line 7 "/home/jens/Source/shotwell/src/tags/TagPage.vala" - G_OBJECT_CLASS (tag_page_parent_class)->finalize (obj); -#line 1568 "TagPage.c" -} - - -GType -tag_page_get_type (void) -{ - static volatile gsize tag_page_type_id__volatile = 0; - if (g_once_init_enter (&tag_page_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TagPageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tag_page_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagPage), 0, (GInstanceInitFunc) tag_page_instance_init, NULL }; - GType tag_page_type_id; - tag_page_type_id = g_type_register_static (TYPE_COLLECTION_PAGE, "TagPage", &g_define_type_info, 0); - g_once_init_leave (&tag_page_type_id__volatile, tag_page_type_id); - } - return tag_page_type_id__volatile; -} - - - diff --git a/src/tags/Tags.c b/src/tags/Tags.c deleted file mode 100644 index f03516a..0000000 --- a/src/tags/Tags.c +++ /dev/null @@ -1,41 +0,0 @@ -/* Tags.c generated by valac 0.40.4, the Vala compiler - * generated from Tags.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include - - - - -void tags_init (GError** error); -void tags_sidebar_entry_init (void); -void tags_terminate (void); -void tags_sidebar_entry_terminate (void); - - -void -tags_init (GError** error) -{ -#line 10 "/home/jens/Source/shotwell/src/tags/Tags.vala" - tags_sidebar_entry_init (); -#line 29 "Tags.c" -} - - -void -tags_terminate (void) -{ -#line 14 "/home/jens/Source/shotwell/src/tags/Tags.vala" - tags_sidebar_entry_terminate (); -#line 38 "Tags.c" -} - - - diff --git a/src/tags/TagsBranch.c b/src/tags/TagsBranch.c deleted file mode 100644 index a2494fc..0000000 --- a/src/tags/TagsBranch.c +++ /dev/null @@ -1,3233 +0,0 @@ -/* TagsBranch.c generated by valac 0.40.4, the Vala compiler - * generated from TagsBranch.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define SIDEBAR_TYPE_BRANCH (sidebar_branch_get_type ()) -#define SIDEBAR_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranch)) -#define SIDEBAR_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) -#define SIDEBAR_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_BRANCH)) -#define SIDEBAR_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_BRANCH, SidebarBranchClass)) - -typedef struct _SidebarBranch SidebarBranch; -typedef struct _SidebarBranchClass SidebarBranchClass; -typedef struct _SidebarBranchPrivate SidebarBranchPrivate; - -#define TAGS_TYPE_BRANCH (tags_branch_get_type ()) -#define TAGS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TAGS_TYPE_BRANCH, TagsBranch)) -#define TAGS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TAGS_TYPE_BRANCH, TagsBranchClass)) -#define TAGS_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TAGS_TYPE_BRANCH)) -#define TAGS_IS_BRANCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TAGS_TYPE_BRANCH)) -#define TAGS_BRANCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TAGS_TYPE_BRANCH, TagsBranchClass)) - -typedef struct _TagsBranch TagsBranch; -typedef struct _TagsBranchClass TagsBranchClass; -typedef struct _TagsBranchPrivate TagsBranchPrivate; - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_TAG (tag_get_type ()) -#define TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG, Tag)) -#define TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG, TagClass)) -#define IS_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG)) -#define IS_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG)) -#define TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG, TagClass)) - -typedef struct _Tag Tag; -typedef struct _TagClass TagClass; - -#define SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY (sidebar_simple_page_entry_get_type ()) -#define SIDEBAR_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntry)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_IS_SIMPLE_PAGE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY)) -#define SIDEBAR_SIMPLE_PAGE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, SidebarSimplePageEntryClass)) - -typedef struct _SidebarSimplePageEntry SidebarSimplePageEntry; -typedef struct _SidebarSimplePageEntryClass SidebarSimplePageEntryClass; - -#define TAGS_TYPE_SIDEBAR_ENTRY (tags_sidebar_entry_get_type ()) -#define TAGS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry)) -#define TAGS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntryClass)) -#define TAGS_IS_SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TAGS_TYPE_SIDEBAR_ENTRY)) -#define TAGS_IS_SIDEBAR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TAGS_TYPE_SIDEBAR_ENTRY)) -#define TAGS_SIDEBAR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntryClass)) - -typedef struct _TagsSidebarEntry TagsSidebarEntry; -typedef struct _TagsSidebarEntryClass TagsSidebarEntryClass; -enum { - TAGS_BRANCH_0_PROPERTY, - TAGS_BRANCH_NUM_PROPERTIES -}; -static GParamSpec* tags_branch_properties[TAGS_BRANCH_NUM_PROPERTIES]; - -#define TYPE_DATA_COLLECTION (data_collection_get_type ()) -#define DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_COLLECTION, DataCollection)) -#define DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_COLLECTION, DataCollectionClass)) -#define IS_DATA_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_COLLECTION)) -#define IS_DATA_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_COLLECTION)) -#define DATA_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_COLLECTION, DataCollectionClass)) - -typedef struct _DataCollection DataCollection; -typedef struct _DataCollectionClass DataCollectionClass; - -#define TYPE_SOURCE_COLLECTION (source_collection_get_type ()) -#define SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOURCE_COLLECTION, SourceCollection)) -#define SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) -#define IS_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOURCE_COLLECTION)) -#define IS_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SOURCE_COLLECTION)) -#define SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SOURCE_COLLECTION, SourceCollectionClass)) - -typedef struct _SourceCollection SourceCollection; -typedef struct _SourceCollectionClass SourceCollectionClass; - -#define TYPE_DATABASE_SOURCE_COLLECTION (database_source_collection_get_type ()) -#define DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection)) -#define DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) -#define IS_DATABASE_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATABASE_SOURCE_COLLECTION)) -#define IS_DATABASE_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATABASE_SOURCE_COLLECTION)) -#define DATABASE_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollectionClass)) - -typedef struct _DatabaseSourceCollection DatabaseSourceCollection; -typedef struct _DatabaseSourceCollectionClass DatabaseSourceCollectionClass; - -#define TYPE_CONTAINER_SOURCE_COLLECTION (container_source_collection_get_type ()) -#define CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollection)) -#define CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) -#define IS_CONTAINER_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define IS_CONTAINER_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONTAINER_SOURCE_COLLECTION)) -#define CONTAINER_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONTAINER_SOURCE_COLLECTION, ContainerSourceCollectionClass)) - -typedef struct _ContainerSourceCollection ContainerSourceCollection; -typedef struct _ContainerSourceCollectionClass ContainerSourceCollectionClass; - -#define TYPE_TAG_SOURCE_COLLECTION (tag_source_collection_get_type ()) -#define TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollection)) -#define TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) -#define IS_TAG_SOURCE_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_SOURCE_COLLECTION)) -#define IS_TAG_SOURCE_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_SOURCE_COLLECTION)) -#define TAG_SOURCE_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_SOURCE_COLLECTION, TagSourceCollectionClass)) - -typedef struct _TagSourceCollection TagSourceCollection; -typedef struct _TagSourceCollectionClass TagSourceCollectionClass; - -#define TYPE_ALTERATION (alteration_get_type ()) -#define ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ALTERATION, Alteration)) -#define ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ALTERATION, AlterationClass)) -#define IS_ALTERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ALTERATION)) -#define IS_ALTERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ALTERATION)) -#define ALTERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ALTERATION, AlterationClass)) - -typedef struct _Alteration Alteration; -typedef struct _AlterationClass AlterationClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - -#define SIDEBAR_TYPE_GROUPING (sidebar_grouping_get_type ()) -#define SIDEBAR_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_GROUPING, SidebarGrouping)) -#define SIDEBAR_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass)) -#define SIDEBAR_IS_GROUPING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_GROUPING)) -#define SIDEBAR_IS_GROUPING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_GROUPING)) -#define SIDEBAR_GROUPING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_GROUPING, SidebarGroupingClass)) - -typedef struct _SidebarGrouping SidebarGrouping; -typedef struct _SidebarGroupingClass SidebarGroupingClass; - -#define SIDEBAR_TYPE_HEADER (sidebar_header_get_type ()) -#define SIDEBAR_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_HEADER, SidebarHeader)) -#define SIDEBAR_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_HEADER, SidebarHeaderClass)) -#define SIDEBAR_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_HEADER)) -#define SIDEBAR_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_HEADER)) -#define SIDEBAR_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_HEADER, SidebarHeaderClass)) - -typedef struct _SidebarHeader SidebarHeader; -typedef struct _SidebarHeaderClass SidebarHeaderClass; - -#define TAGS_TYPE_HEADER (tags_header_get_type ()) -#define TAGS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TAGS_TYPE_HEADER, TagsHeader)) -#define TAGS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TAGS_TYPE_HEADER, TagsHeaderClass)) -#define TAGS_IS_HEADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TAGS_TYPE_HEADER)) -#define TAGS_IS_HEADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TAGS_TYPE_HEADER)) -#define TAGS_HEADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TAGS_TYPE_HEADER, TagsHeaderClass)) - -typedef struct _TagsHeader TagsHeader; -typedef struct _TagsHeaderClass TagsHeaderClass; - -#define SIDEBAR_TYPE_ENTRY (sidebar_entry_get_type ()) -#define SIDEBAR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntry)) -#define SIDEBAR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_ENTRY)) -#define SIDEBAR_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_ENTRY, SidebarEntryIface)) - -typedef struct _SidebarEntry SidebarEntry; -typedef struct _SidebarEntryIface SidebarEntryIface; - -#define SIDEBAR_TYPE_TREE (sidebar_tree_get_type ()) -#define SIDEBAR_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_TREE, SidebarTree)) -#define SIDEBAR_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIDEBAR_TYPE_TREE, SidebarTreeClass)) -#define SIDEBAR_IS_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_IS_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIDEBAR_TYPE_TREE)) -#define SIDEBAR_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIDEBAR_TYPE_TREE, SidebarTreeClass)) - -typedef struct _SidebarTree SidebarTree; -typedef struct _SidebarTreeClass SidebarTreeClass; - -#define SIDEBAR_BRANCH_TYPE_OPTIONS (sidebar_branch_options_get_type ()) -#define _alteration_unref0(var) ((var == NULL) ? NULL : (var = (alteration_unref (var), NULL))) - -#define SIDEBAR_TYPE_RENAMEABLE_ENTRY (sidebar_renameable_entry_get_type ()) -#define SIDEBAR_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry)) -#define SIDEBAR_IS_RENAMEABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY)) -#define SIDEBAR_RENAMEABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntryIface)) - -typedef struct _SidebarRenameableEntry SidebarRenameableEntry; -typedef struct _SidebarRenameableEntryIface SidebarRenameableEntryIface; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define SIDEBAR_TYPE_EXPANDABLE_ENTRY (sidebar_expandable_entry_get_type ()) -#define SIDEBAR_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntry)) -#define SIDEBAR_IS_EXPANDABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY)) -#define SIDEBAR_EXPANDABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EXPANDABLE_ENTRY, SidebarExpandableEntryIface)) - -typedef struct _SidebarExpandableEntry SidebarExpandableEntry; -typedef struct _SidebarExpandableEntryIface SidebarExpandableEntryIface; -typedef struct _SidebarGroupingPrivate SidebarGroupingPrivate; - -#define SIDEBAR_TYPE_EMPHASIZABLE_ENTRY (sidebar_emphasizable_entry_get_type ()) -#define SIDEBAR_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntry)) -#define SIDEBAR_IS_EMPHASIZABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY)) -#define SIDEBAR_EMPHASIZABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_EMPHASIZABLE_ENTRY, SidebarEmphasizableEntryIface)) - -typedef struct _SidebarEmphasizableEntry SidebarEmphasizableEntry; -typedef struct _SidebarEmphasizableEntryIface SidebarEmphasizableEntryIface; -typedef struct _SidebarHeaderPrivate SidebarHeaderPrivate; - -#define SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY (sidebar_internal_drop_target_entry_get_type ()) -#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntry)) -#define SIDEBAR_IS_INTERNAL_DROP_TARGET_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY)) -#define SIDEBAR_INTERNAL_DROP_TARGET_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, SidebarInternalDropTargetEntryIface)) - -typedef struct _SidebarInternalDropTargetEntry SidebarInternalDropTargetEntry; -typedef struct _SidebarInternalDropTargetEntryIface SidebarInternalDropTargetEntryIface; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY (sidebar_internal_drag_source_entry_get_type ()) -#define SIDEBAR_INTERNAL_DRAG_SOURCE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, SidebarInternalDragSourceEntry)) -#define SIDEBAR_IS_INTERNAL_DRAG_SOURCE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY)) -#define SIDEBAR_INTERNAL_DRAG_SOURCE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, SidebarInternalDragSourceEntryIface)) - -typedef struct _SidebarInternalDragSourceEntry SidebarInternalDragSourceEntry; -typedef struct _SidebarInternalDragSourceEntryIface SidebarInternalDragSourceEntryIface; - -#define SIDEBAR_TYPE_CONTEXTABLE (sidebar_contextable_get_type ()) -#define SIDEBAR_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextable)) -#define SIDEBAR_IS_CONTEXTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_CONTEXTABLE)) -#define SIDEBAR_CONTEXTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_CONTEXTABLE, SidebarContextableIface)) - -typedef struct _SidebarContextable SidebarContextable; -typedef struct _SidebarContextableIface SidebarContextableIface; -typedef struct _TagsHeaderPrivate TagsHeaderPrivate; -enum { - TAGS_HEADER_0_PROPERTY, - TAGS_HEADER_NUM_PROPERTIES -}; -static GParamSpec* tags_header_properties[TAGS_HEADER_NUM_PROPERTIES]; - -#define TYPE_APPLICATION (application_get_type ()) -#define APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APPLICATION, Application)) -#define APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APPLICATION, ApplicationClass)) -#define IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APPLICATION)) -#define IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APPLICATION)) -#define APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APPLICATION, ApplicationClass)) - -typedef struct _Application Application; -typedef struct _ApplicationClass ApplicationClass; -#define _application_unref0(var) ((var == NULL) ? NULL : (var = (application_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_TEXT_ENTRY_DIALOG_MEDIATOR (text_entry_dialog_mediator_get_type ()) -#define TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediator)) -#define TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass)) -#define IS_TEXT_ENTRY_DIALOG_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define IS_TEXT_ENTRY_DIALOG_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR)) -#define TEXT_ENTRY_DIALOG_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEXT_ENTRY_DIALOG_MEDIATOR, TextEntryDialogMediatorClass)) - -typedef struct _TextEntryDialogMediator TextEntryDialogMediator; -typedef struct _TextEntryDialogMediatorClass TextEntryDialogMediatorClass; - -#define TYPE_TAGS_DIALOG (tags_dialog_get_type ()) -#define TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAGS_DIALOG, TagsDialog)) -#define TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAGS_DIALOG, TagsDialogClass)) -#define IS_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAGS_DIALOG)) -#define IS_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAGS_DIALOG)) -#define TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAGS_DIALOG, TagsDialogClass)) - -typedef struct _TagsDialog TagsDialog; -typedef struct _TagsDialogClass TagsDialogClass; - -#define TYPE_ADD_TAGS_DIALOG (add_tags_dialog_get_type ()) -#define ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialog)) -#define ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass)) -#define IS_ADD_TAGS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_DIALOG)) -#define IS_ADD_TAGS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_DIALOG)) -#define ADD_TAGS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_DIALOG, AddTagsDialogClass)) - -typedef struct _AddTagsDialog AddTagsDialog; -typedef struct _AddTagsDialogClass AddTagsDialogClass; -#define _text_entry_dialog_mediator_unref0(var) ((var == NULL) ? NULL : (var = (text_entry_dialog_mediator_unref (var), NULL))) - -#define TYPE_COMMAND_MANAGER (command_manager_get_type ()) -#define COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND_MANAGER, CommandManager)) -#define COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND_MANAGER, CommandManagerClass)) -#define IS_COMMAND_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND_MANAGER)) -#define IS_COMMAND_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND_MANAGER)) -#define COMMAND_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND_MANAGER, CommandManagerClass)) - -typedef struct _CommandManager CommandManager; -typedef struct _CommandManagerClass CommandManagerClass; - -#define TYPE_COMMAND (command_get_type ()) -#define COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COMMAND, Command)) -#define COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COMMAND, CommandClass)) -#define IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COMMAND)) -#define IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COMMAND)) -#define COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COMMAND, CommandClass)) - -typedef struct _Command Command; -typedef struct _CommandClass CommandClass; - -#define TYPE_PAGE_COMMAND (page_command_get_type ()) -#define PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE_COMMAND, PageCommand)) -#define PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE_COMMAND, PageCommandClass)) -#define IS_PAGE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE_COMMAND)) -#define IS_PAGE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE_COMMAND)) -#define PAGE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE_COMMAND, PageCommandClass)) - -typedef struct _PageCommand PageCommand; -typedef struct _PageCommandClass PageCommandClass; - -#define TYPE_ADD_TAGS_COMMAND (add_tags_command_get_type ()) -#define ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommand)) -#define ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass)) -#define IS_ADD_TAGS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_TAGS_COMMAND)) -#define IS_ADD_TAGS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_TAGS_COMMAND)) -#define ADD_TAGS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_TAGS_COMMAND, AddTagsCommandClass)) - -typedef struct _AddTagsCommand AddTagsCommand; -typedef struct _AddTagsCommandClass AddTagsCommandClass; -#define _command_manager_unref0(var) ((var == NULL) ? NULL : (var = (command_manager_unref (var), NULL))) - -#define TYPE_REPARENT_TAG_COMMAND (reparent_tag_command_get_type ()) -#define REPARENT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommand)) -#define REPARENT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommandClass)) -#define IS_REPARENT_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REPARENT_TAG_COMMAND)) -#define IS_REPARENT_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REPARENT_TAG_COMMAND)) -#define REPARENT_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REPARENT_TAG_COMMAND, ReparentTagCommandClass)) - -typedef struct _ReparentTagCommand ReparentTagCommand; -typedef struct _ReparentTagCommandClass ReparentTagCommandClass; - -#define SIDEBAR_TYPE_SELECTABLE_ENTRY (sidebar_selectable_entry_get_type ()) -#define SIDEBAR_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntry)) -#define SIDEBAR_IS_SELECTABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY)) -#define SIDEBAR_SELECTABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_SELECTABLE_ENTRY, SidebarSelectableEntryIface)) - -typedef struct _SidebarSelectableEntry SidebarSelectableEntry; -typedef struct _SidebarSelectableEntryIface SidebarSelectableEntryIface; - -#define SIDEBAR_TYPE_PAGE_REPRESENTATIVE (sidebar_page_representative_get_type ()) -#define SIDEBAR_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentative)) -#define SIDEBAR_IS_PAGE_REPRESENTATIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE)) -#define SIDEBAR_PAGE_REPRESENTATIVE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_PAGE_REPRESENTATIVE, SidebarPageRepresentativeIface)) - -typedef struct _SidebarPageRepresentative SidebarPageRepresentative; -typedef struct _SidebarPageRepresentativeIface SidebarPageRepresentativeIface; - -#define TYPE_PAGE (page_get_type ()) -#define PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PAGE, Page)) -#define PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PAGE, PageClass)) -#define IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PAGE)) -#define IS_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PAGE)) -#define PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PAGE, PageClass)) - -typedef struct _Page Page; -typedef struct _PageClass PageClass; -typedef struct _SidebarSimplePageEntryPrivate SidebarSimplePageEntryPrivate; - -#define SIDEBAR_TYPE_DESTROYABLE_ENTRY (sidebar_destroyable_entry_get_type ()) -#define SIDEBAR_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntry)) -#define SIDEBAR_IS_DESTROYABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY)) -#define SIDEBAR_DESTROYABLE_ENTRY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SIDEBAR_TYPE_DESTROYABLE_ENTRY, SidebarDestroyableEntryIface)) - -typedef struct _SidebarDestroyableEntry SidebarDestroyableEntry; -typedef struct _SidebarDestroyableEntryIface SidebarDestroyableEntryIface; -typedef struct _TagsSidebarEntryPrivate TagsSidebarEntryPrivate; -enum { - TAGS_SIDEBAR_ENTRY_0_PROPERTY, - TAGS_SIDEBAR_ENTRY_NUM_PROPERTIES -}; -static GParamSpec* tags_sidebar_entry_properties[TAGS_SIDEBAR_ENTRY_NUM_PROPERTIES]; - -#define TYPE_CHECKERBOARD_PAGE (checkerboard_page_get_type ()) -#define CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPage)) -#define CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) -#define IS_CHECKERBOARD_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CHECKERBOARD_PAGE)) -#define IS_CHECKERBOARD_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CHECKERBOARD_PAGE)) -#define CHECKERBOARD_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CHECKERBOARD_PAGE, CheckerboardPageClass)) - -typedef struct _CheckerboardPage CheckerboardPage; -typedef struct _CheckerboardPageClass CheckerboardPageClass; - -#define TYPE_MEDIA_PAGE (media_page_get_type ()) -#define MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_PAGE, MediaPage)) -#define MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_PAGE, MediaPageClass)) -#define IS_MEDIA_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_PAGE)) -#define IS_MEDIA_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_PAGE)) -#define MEDIA_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_PAGE, MediaPageClass)) - -typedef struct _MediaPage MediaPage; -typedef struct _MediaPageClass MediaPageClass; - -#define TYPE_COLLECTION_PAGE (collection_page_get_type ()) -#define COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_PAGE, CollectionPage)) -#define COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_PAGE, CollectionPageClass)) -#define IS_COLLECTION_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_PAGE)) -#define IS_COLLECTION_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_PAGE)) -#define COLLECTION_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_PAGE, CollectionPageClass)) - -typedef struct _CollectionPage CollectionPage; -typedef struct _CollectionPageClass CollectionPageClass; - -#define TYPE_TAG_PAGE (tag_page_get_type ()) -#define TAG_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_PAGE, TagPage)) -#define TAG_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_PAGE, TagPageClass)) -#define IS_TAG_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_PAGE)) -#define IS_TAG_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_PAGE)) -#define TAG_PAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_PAGE, TagPageClass)) - -typedef struct _TagPage TagPage; -typedef struct _TagPageClass TagPageClass; -#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL))) - -#define TYPE_SIMPLE_PROXYABLE_COMMAND (simple_proxyable_command_get_type ()) -#define SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommand)) -#define SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass)) -#define IS_SIMPLE_PROXYABLE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND)) -#define IS_SIMPLE_PROXYABLE_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SIMPLE_PROXYABLE_COMMAND)) -#define SIMPLE_PROXYABLE_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SIMPLE_PROXYABLE_COMMAND, SimpleProxyableCommandClass)) - -typedef struct _SimpleProxyableCommand SimpleProxyableCommand; -typedef struct _SimpleProxyableCommandClass SimpleProxyableCommandClass; - -#define TYPE_RENAME_TAG_COMMAND (rename_tag_command_get_type ()) -#define RENAME_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RENAME_TAG_COMMAND, RenameTagCommand)) -#define RENAME_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RENAME_TAG_COMMAND, RenameTagCommandClass)) -#define IS_RENAME_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RENAME_TAG_COMMAND)) -#define IS_RENAME_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RENAME_TAG_COMMAND)) -#define RENAME_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RENAME_TAG_COMMAND, RenameTagCommandClass)) - -typedef struct _RenameTagCommand RenameTagCommand; -typedef struct _RenameTagCommandClass RenameTagCommandClass; - -#define TYPE_DELETE_TAG_COMMAND (delete_tag_command_get_type ()) -#define DELETE_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_TAG_COMMAND, DeleteTagCommand)) -#define DELETE_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandClass)) -#define IS_DELETE_TAG_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DELETE_TAG_COMMAND)) -#define IS_DELETE_TAG_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DELETE_TAG_COMMAND)) -#define DELETE_TAG_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DELETE_TAG_COMMAND, DeleteTagCommandClass)) - -typedef struct _DeleteTagCommand DeleteTagCommand; -typedef struct _DeleteTagCommandClass DeleteTagCommandClass; - -#define TYPE_TAG_UNTAG_PHOTOS_COMMAND (tag_untag_photos_command_get_type ()) -#define TAG_UNTAG_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommand)) -#define TAG_UNTAG_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandClass)) -#define IS_TAG_UNTAG_PHOTOS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND)) -#define IS_TAG_UNTAG_PHOTOS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAG_UNTAG_PHOTOS_COMMAND)) -#define TAG_UNTAG_PHOTOS_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAG_UNTAG_PHOTOS_COMMAND, TagUntagPhotosCommandClass)) - -typedef struct _TagUntagPhotosCommand TagUntagPhotosCommand; -typedef struct _TagUntagPhotosCommandClass TagUntagPhotosCommandClass; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _SidebarBranch { - GObject parent_instance; - SidebarBranchPrivate * priv; -}; - -struct _SidebarBranchClass { - GObjectClass parent_class; -}; - -struct _TagsBranch { - SidebarBranch parent_instance; - TagsBranchPrivate * priv; -}; - -struct _TagsBranchClass { - SidebarBranchClass parent_class; -}; - -struct _TagsBranchPrivate { - GeeHashMap* entry_map; -}; - -struct _SidebarEntryIface { - GTypeInterface parent_iface; - gchar* (*get_sidebar_name) (SidebarEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarEntry* self); - gchar* (*get_sidebar_icon) (SidebarEntry* self); - gchar* (*to_string) (SidebarEntry* self); - void (*grafted) (SidebarEntry* self, SidebarTree* tree); - void (*pruned) (SidebarEntry* self, SidebarTree* tree); -}; - -typedef enum { - SIDEBAR_BRANCH_OPTIONS_NONE = 0, - SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY = 1 << 0, - SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD = 1 << 1, - SIDEBAR_BRANCH_OPTIONS_STARTUP_EXPAND_TO_FIRST_CHILD = 1 << 2, - SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING = 1 << 3 -} SidebarBranchOptions; - -struct _SidebarRenameableEntryIface { - GTypeInterface parent_iface; - void (*rename) (SidebarRenameableEntry* self, const gchar* new_name); - gboolean (*is_user_renameable) (SidebarRenameableEntry* self); -}; - -struct _SidebarExpandableEntryIface { - GTypeInterface parent_iface; - gboolean (*expand_on_select) (SidebarExpandableEntry* self); -}; - -struct _SidebarGrouping { - GObject parent_instance; - SidebarGroupingPrivate * priv; -}; - -struct _SidebarGroupingClass { - GObjectClass parent_class; -}; - -struct _SidebarEmphasizableEntryIface { - GTypeInterface parent_iface; - gboolean (*is_emphasized) (SidebarEmphasizableEntry* self); -}; - -struct _SidebarHeader { - SidebarGrouping parent_instance; - SidebarHeaderPrivate * priv; -}; - -struct _SidebarHeaderClass { - SidebarGroupingClass parent_class; -}; - -struct _SidebarInternalDropTargetEntryIface { - GTypeInterface parent_iface; - gboolean (*internal_drop_received) (SidebarInternalDropTargetEntry* self, GeeList* sources); - gboolean (*internal_drop_received_arbitrary) (SidebarInternalDropTargetEntry* self, GtkSelectionData* data); -}; - -struct _SidebarInternalDragSourceEntryIface { - GTypeInterface parent_iface; - void (*prepare_selection_data) (SidebarInternalDragSourceEntry* self, GtkSelectionData* data); -}; - -struct _SidebarContextableIface { - GTypeInterface parent_iface; - GtkMenu* (*get_sidebar_context_menu) (SidebarContextable* self, GdkEventButton* event); -}; - -struct _TagsHeader { - SidebarHeader parent_instance; - TagsHeaderPrivate * priv; -}; - -struct _TagsHeaderClass { - SidebarHeaderClass parent_class; -}; - -struct _TagsHeaderPrivate { - GtkBuilder* builder; - GtkMenu* context_menu; -}; - -struct _SidebarSelectableEntryIface { - GTypeInterface parent_iface; -}; - -struct _SidebarPageRepresentativeIface { - GTypeInterface parent_iface; - gboolean (*has_page) (SidebarPageRepresentative* self); - Page* (*get_page) (SidebarPageRepresentative* self); -}; - -struct _SidebarSimplePageEntry { - GObject parent_instance; - SidebarSimplePageEntryPrivate * priv; -}; - -struct _SidebarSimplePageEntryClass { - GObjectClass parent_class; - gchar* (*get_sidebar_name) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_tooltip) (SidebarSimplePageEntry* self); - gchar* (*get_sidebar_icon) (SidebarSimplePageEntry* self); - gchar* (*to_string) (SidebarSimplePageEntry* self); - Page* (*create_page) (SidebarSimplePageEntry* self); -}; - -struct _SidebarDestroyableEntryIface { - GTypeInterface parent_iface; - void (*destroy_source) (SidebarDestroyableEntry* self); -}; - -struct _TagsSidebarEntry { - SidebarSimplePageEntry parent_instance; - TagsSidebarEntryPrivate * priv; -}; - -struct _TagsSidebarEntryClass { - SidebarSimplePageEntryClass parent_class; -}; - -struct _TagsSidebarEntryPrivate { - gchar* single_tag_icon; - Tag* tag; -}; - - -static gpointer tags_branch_parent_class = NULL; -extern TagSourceCollection* tag_global; -static gpointer tags_header_parent_class = NULL; -static SidebarInternalDropTargetEntryIface * tags_header_sidebar_internal_drop_target_entry_parent_iface = NULL; -static SidebarInternalDragSourceEntryIface * tags_header_sidebar_internal_drag_source_entry_parent_iface = NULL; -static SidebarContextableIface * tags_header_sidebar_contextable_parent_iface = NULL; -static gpointer tags_sidebar_entry_parent_class = NULL; -static SidebarRenameableEntryIface * tags_sidebar_entry_sidebar_renameable_entry_parent_iface = NULL; -static SidebarDestroyableEntryIface * tags_sidebar_entry_sidebar_destroyable_entry_parent_iface = NULL; -static SidebarInternalDropTargetEntryIface * tags_sidebar_entry_sidebar_internal_drop_target_entry_parent_iface = NULL; -static SidebarExpandableEntryIface * tags_sidebar_entry_sidebar_expandable_entry_parent_iface = NULL; -static SidebarInternalDragSourceEntryIface * tags_sidebar_entry_sidebar_internal_drag_source_entry_parent_iface = NULL; - -GType sidebar_branch_get_type (void) G_GNUC_CONST; -GType tags_branch_get_type (void) G_GNUC_CONST; -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType tag_get_type (void) G_GNUC_CONST; -GType sidebar_simple_page_entry_get_type (void) G_GNUC_CONST; -GType tags_sidebar_entry_get_type (void) G_GNUC_CONST; -#define TAGS_BRANCH_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TAGS_TYPE_BRANCH, TagsBranchPrivate)) -gpointer data_collection_ref (gpointer instance); -void data_collection_unref (gpointer instance); -GParamSpec* param_spec_data_collection (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_data_collection (GValue* value, - gpointer v_object); -void value_take_data_collection (GValue* value, - gpointer v_object); -gpointer value_get_data_collection (const GValue* value); -GType data_collection_get_type (void) G_GNUC_CONST; -GType source_collection_get_type (void) G_GNUC_CONST; -GType database_source_collection_get_type (void) G_GNUC_CONST; -GType container_source_collection_get_type (void) G_GNUC_CONST; -GType tag_source_collection_get_type (void) G_GNUC_CONST; -static void tags_branch_on_tags_added_removed (TagsBranch* self, - GeeIterable* added_raw, - GeeIterable* removed); -static void _tags_branch_on_tags_added_removed_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self); -gpointer alteration_ref (gpointer instance); -void alteration_unref (gpointer instance); -GParamSpec* param_spec_alteration (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_alteration (GValue* value, - gpointer v_object); -void value_take_alteration (GValue* value, - gpointer v_object); -gpointer value_get_alteration (const GValue* value); -GType alteration_get_type (void) G_GNUC_CONST; -static void tags_branch_on_tags_altered (TagsBranch* self, - GeeMap* altered); -static void _tags_branch_on_tags_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self); -TagsBranch* tags_branch_new (void); -TagsBranch* tags_branch_construct (GType object_type); -TagsHeader* tags_header_new (void); -TagsHeader* tags_header_construct (GType object_type); -GType sidebar_grouping_get_type (void) G_GNUC_CONST; -GType sidebar_header_get_type (void) G_GNUC_CONST; -GType tags_header_get_type (void) G_GNUC_CONST; -GType sidebar_tree_get_type (void) G_GNUC_CONST; -GType sidebar_entry_get_type (void) G_GNUC_CONST; -GType sidebar_branch_options_get_type (void) G_GNUC_CONST; -static gint tags_branch_comparator (SidebarEntry* a, - SidebarEntry* b); -static gint _tags_branch_comparator_gcompare_func (gconstpointer a, - gconstpointer b); -SidebarBranch* sidebar_branch_new (SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator); -SidebarBranch* sidebar_branch_construct (GType object_type, - SidebarEntry* root, - SidebarBranchOptions options, - GCompareFunc default_comparator, - GCompareFunc root_comparator); -GeeCollection* data_collection_get_all (DataCollection* self); -TagsSidebarEntry* tags_branch_get_entry_for_tag (TagsBranch* self, - Tag* tag); -gboolean tags_branch_is_user_renameable (TagsBranch* self); -gint tag_compare_names (Tag* a, - Tag* b); -Tag* tags_sidebar_entry_for_tag (TagsSidebarEntry* self); -static gint _tag_compare_names_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -Tag* tag_get_hierarchical_parent (Tag* self); -TagsSidebarEntry* tags_sidebar_entry_new (Tag* tag); -TagsSidebarEntry* tags_sidebar_entry_construct (GType object_type, - Tag* tag); -void sidebar_branch_graft (SidebarBranch* self, - SidebarEntry* parent, - SidebarEntry* entry, - GCompareFunc comparator); -SidebarEntry* sidebar_branch_get_root (SidebarBranch* self); -void sidebar_branch_prune (SidebarBranch* self, - SidebarEntry* entry); -gboolean alteration_has_detail (Alteration* self, - const gchar* subject, - const gchar* detail); -GType sidebar_renameable_entry_get_type (void) G_GNUC_CONST; -gchar* tag_get_user_visible_name (Tag* self); -void sidebar_branch_reorder (SidebarBranch* self, - SidebarEntry* entry); -static void tags_branch_finalize (GObject * obj); -GType sidebar_expandable_entry_get_type (void) G_GNUC_CONST; -GType sidebar_emphasizable_entry_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType sidebar_internal_drop_target_entry_get_type (void) G_GNUC_CONST; -GType sidebar_internal_drag_source_entry_get_type (void) G_GNUC_CONST; -GType sidebar_contextable_get_type (void) G_GNUC_CONST; -#define TAGS_HEADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TAGS_TYPE_HEADER, TagsHeaderPrivate)) -SidebarHeader* sidebar_header_new (const gchar* name, - const gchar* tooltip, - gboolean emphasized); -SidebarHeader* sidebar_header_construct (GType object_type, - const gchar* name, - const gchar* tooltip, - gboolean emphasized); -static void tags_header_setup_context_menu (TagsHeader* self); -gchar* resources_get_ui (const gchar* filename); -void app_window_error_message (const gchar* message, - GtkWindow* parent); -gpointer application_ref (gpointer instance); -void application_unref (gpointer instance); -GParamSpec* param_spec_application (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_application (GValue* value, - gpointer v_object); -void value_take_application (GValue* value, - gpointer v_object); -gpointer value_get_application (const GValue* value); -GType application_get_type (void) G_GNUC_CONST; -Application* application_get_instance (void); -void application_panic (Application* self); -static gboolean tags_header_real_internal_drop_received (SidebarInternalDropTargetEntry* base, - GeeList* media); -gpointer text_entry_dialog_mediator_ref (gpointer instance); -void text_entry_dialog_mediator_unref (gpointer instance); -GParamSpec* param_spec_text_entry_dialog_mediator (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -void value_take_text_entry_dialog_mediator (GValue* value, - gpointer v_object); -gpointer value_get_text_entry_dialog_mediator (const GValue* value); -GType text_entry_dialog_mediator_get_type (void) G_GNUC_CONST; -GType tags_dialog_get_type (void) G_GNUC_CONST; -GType add_tags_dialog_get_type (void) G_GNUC_CONST; -AddTagsDialog* add_tags_dialog_new (void); -AddTagsDialog* add_tags_dialog_construct (GType object_type); -gchar** add_tags_dialog_execute (AddTagsDialog* self, - int* result_length1); -gpointer command_manager_ref (gpointer instance); -void command_manager_unref (gpointer instance); -GParamSpec* param_spec_command_manager (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_command_manager (GValue* value, - gpointer v_object); -void value_take_command_manager (GValue* value, - gpointer v_object); -gpointer value_get_command_manager (const GValue* value); -GType command_manager_get_type (void) G_GNUC_CONST; -CommandManager* app_window_get_command_manager (void); -GType command_get_type (void) G_GNUC_CONST; -void command_manager_execute (CommandManager* self, - Command* command); -AddTagsCommand* add_tags_command_new (gchar** paths, - int paths_length1, - GeeCollection* sources); -AddTagsCommand* add_tags_command_construct (GType object_type, - gchar** paths, - int paths_length1, - GeeCollection* sources); -GType page_command_get_type (void) G_GNUC_CONST; -GType add_tags_command_get_type (void) G_GNUC_CONST; -static gboolean tags_header_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, - GtkSelectionData* data); -#define LIBRARY_WINDOW_TAG_PATH_MIME_TYPE "shotwell/tag-path" -gboolean tag_source_collection_exists (TagSourceCollection* self, - const gchar* name, - gboolean treat_htags_as_root); -GeeList* hierarchical_tag_utilities_enumerate_path_components (const gchar* in_path); -Tag* tag_for_path (const gchar* name); -ReparentTagCommand* reparent_tag_command_new (Tag* tag, - const gchar* new_parent_path); -ReparentTagCommand* reparent_tag_command_construct (GType object_type, - Tag* tag, - const gchar* new_parent_path); -GType reparent_tag_command_get_type (void) G_GNUC_CONST; -static void tags_header_real_prepare_selection_data (SidebarInternalDragSourceEntry* base, - GtkSelectionData* data); -static GtkMenu* tags_header_real_get_sidebar_context_menu (SidebarContextable* base, - GdkEventButton* event); -static void tags_header_finalize (GObject * obj); -GType sidebar_selectable_entry_get_type (void) G_GNUC_CONST; -GType page_get_type (void) G_GNUC_CONST; -GType sidebar_page_representative_get_type (void) G_GNUC_CONST; -GType sidebar_destroyable_entry_get_type (void) G_GNUC_CONST; -#define TAGS_SIDEBAR_ENTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntryPrivate)) -#define RESOURCES_ICON_ONE_TAG "one-tag" -SidebarSimplePageEntry* sidebar_simple_page_entry_construct (GType object_type); -void tags_sidebar_entry_init (void); -void tags_sidebar_entry_terminate (void); -static gchar* tags_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base); -static gchar* tags_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base); -static Page* tags_sidebar_entry_real_create_page (SidebarSimplePageEntry* base); -TagPage* tag_page_new (Tag* tag); -TagPage* tag_page_construct (GType object_type, - Tag* tag); -GType checkerboard_page_get_type (void) G_GNUC_CONST; -GType media_page_get_type (void) G_GNUC_CONST; -GType collection_page_get_type (void) G_GNUC_CONST; -GType tag_page_get_type (void) G_GNUC_CONST; -static gboolean tags_sidebar_entry_real_is_user_renameable (SidebarRenameableEntry* base); -static void tags_sidebar_entry_real_rename (SidebarRenameableEntry* base, - const gchar* new_name); -gchar* tag_prep_tag_name (const gchar* name); -RenameTagCommand* rename_tag_command_new (Tag* tag, - const gchar* new_name); -RenameTagCommand* rename_tag_command_construct (GType object_type, - Tag* tag, - const gchar* new_name); -GType simple_proxyable_command_get_type (void) G_GNUC_CONST; -GType rename_tag_command_get_type (void) G_GNUC_CONST; -static void tags_sidebar_entry_real_destroy_source (SidebarDestroyableEntry* base); -gboolean dialogs_confirm_delete_tag (Tag* tag); -DeleteTagCommand* delete_tag_command_new (Tag* tag); -DeleteTagCommand* delete_tag_command_construct (GType object_type, - Tag* tag); -GType delete_tag_command_get_type (void) G_GNUC_CONST; -static gboolean tags_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base, - GeeList* media); -TagUntagPhotosCommand* tag_untag_photos_command_new (Tag* tag, - GeeCollection* sources, - gint count, - gboolean attach); -TagUntagPhotosCommand* tag_untag_photos_command_construct (GType object_type, - Tag* tag, - GeeCollection* sources, - gint count, - gboolean attach); -GType tag_untag_photos_command_get_type (void) G_GNUC_CONST; -static gboolean tags_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, - GtkSelectionData* data); -gchar* tag_get_path (Tag* self); -GeeList* hierarchical_tag_utilities_enumerate_parent_paths (const gchar* in_path); -static gboolean tags_sidebar_entry_real_expand_on_select (SidebarExpandableEntry* base); -static void tags_sidebar_entry_real_prepare_selection_data (SidebarInternalDragSourceEntry* base, - GtkSelectionData* data); -static void tags_sidebar_entry_finalize (GObject * obj); -static void _vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func); -static void _vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func); - - -static void -_tags_branch_on_tags_added_removed_data_collection_contents_altered (DataCollection* _sender, - GeeIterable* added, - GeeIterable* removed, - gpointer self) -{ -#line 26 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tags_branch_on_tags_added_removed ((TagsBranch*) self, added, removed); -#line 944 "TagsBranch.c" -} - - -static void -_tags_branch_on_tags_altered_data_collection_items_altered (DataCollection* _sender, - GeeMap* items, - gpointer self) -{ -#line 27 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tags_branch_on_tags_altered ((TagsBranch*) self, items); -#line 955 "TagsBranch.c" -} - - -static gint -_tags_branch_comparator_gcompare_func (gconstpointer a, - gconstpointer b) -{ - gint result; - result = tags_branch_comparator ((SidebarEntry*) a, (SidebarEntry*) b); -#line 11 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 967 "TagsBranch.c" -} - - -TagsBranch* -tags_branch_construct (GType object_type) -{ - TagsBranch * self = NULL; - TagsHeader* _tmp0_; - TagsHeader* _tmp1_; - TagSourceCollection* _tmp2_; - GeeCollection* _tmp3_; - GeeCollection* _tmp4_; - TagSourceCollection* _tmp5_; - TagSourceCollection* _tmp6_; -#line 11 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = tags_header_new (); -#line 11 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = (TagsBranch*) sidebar_branch_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SIDEBAR_TYPE_ENTRY, SidebarEntry), (SIDEBAR_BRANCH_OPTIONS_HIDE_IF_EMPTY | SIDEBAR_BRANCH_OPTIONS_AUTO_OPEN_ON_NEW_CHILD) | SIDEBAR_BRANCH_OPTIONS_STARTUP_OPEN_GROUPING, _tags_branch_comparator_gcompare_func, NULL); -#line 11 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_tmp1_); -#line 18 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp2_ = tag_global; -#line 18 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp3_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection)); -#line 18 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp4_ = _tmp3_; -#line 18 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tags_branch_on_tags_added_removed (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable), NULL); -#line 18 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_tmp4_); -#line 21 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp5_ = tag_global; -#line 21 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_DATA_COLLECTION, DataCollection), "contents-altered", (GCallback) _tags_branch_on_tags_added_removed_data_collection_contents_altered, self, 0); -#line 22 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp6_ = tag_global; -#line 22 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_DATA_COLLECTION, DataCollection), "items-altered", (GCallback) _tags_branch_on_tags_altered_data_collection_items_altered, self, 0); -#line 10 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return self; -#line 1010 "TagsBranch.c" -} - - -TagsBranch* -tags_branch_new (void) -{ -#line 10 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return tags_branch_construct (TAGS_TYPE_BRANCH); -#line 1019 "TagsBranch.c" -} - - -TagsSidebarEntry* -tags_branch_get_entry_for_tag (TagsBranch* self, - Tag* tag) -{ - TagsSidebarEntry* result = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; -#line 30 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_val_if_fail (TAGS_IS_BRANCH (self), NULL); -#line 30 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_val_if_fail (IS_TAG (tag), NULL); -#line 31 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = self->priv->entry_map; -#line 31 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), tag); -#line 31 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = (TagsSidebarEntry*) _tmp1_; -#line 31 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 1042 "TagsBranch.c" -} - - -gboolean -tags_branch_is_user_renameable (TagsBranch* self) -{ - gboolean result = FALSE; -#line 34 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_val_if_fail (TAGS_IS_BRANCH (self), FALSE); -#line 35 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = TRUE; -#line 35 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 1056 "TagsBranch.c" -} - - -static gint -tags_branch_comparator (SidebarEntry* a, - SidebarEntry* b) -{ - gint result = 0; - Tag* _tmp0_; - Tag* _tmp1_; - Tag* _tmp2_; - Tag* _tmp3_; - gint _tmp4_; -#line 38 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (a), 0); -#line 38 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_val_if_fail (SIDEBAR_IS_ENTRY (b), 0); -#line 39 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (a == b) { -#line 40 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = 0; -#line 40 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 1080 "TagsBranch.c" - } -#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = tags_sidebar_entry_for_tag (G_TYPE_CHECK_INSTANCE_CAST (a, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry)); -#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = _tmp0_; -#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp2_ = tags_sidebar_entry_for_tag (G_TYPE_CHECK_INSTANCE_CAST (b, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry)); -#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp3_ = _tmp2_; -#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp4_ = tag_compare_names (_tmp1_, _tmp3_); -#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_tmp3_); -#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_tmp1_); -#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = _tmp4_; -#line 42 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 1100 "TagsBranch.c" -} - - -static gint -_tag_compare_names_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = tag_compare_names ((Tag*) a, (Tag*) b); -#line 57 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 1113 "TagsBranch.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 59 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return self ? g_object_ref (self) : NULL; -#line 1122 "TagsBranch.c" -} - - -static void -tags_branch_on_tags_added_removed (TagsBranch* self, - GeeIterable* added_raw, - GeeIterable* removed) -{ - Tag* restore_point = NULL; -#line 46 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_if_fail (TAGS_IS_BRANCH (self)); -#line 46 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_if_fail ((added_raw == NULL) || GEE_IS_ITERABLE (added_raw)); -#line 46 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed)); -#line 51 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - restore_point = NULL; -#line 53 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (added_raw != NULL) { -#line 1142 "TagsBranch.c" - GeeSortedSet* added = NULL; - GeeTreeSet* _tmp0_; -#line 57 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = gee_tree_set_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tag_compare_names_gcompare_data_func, NULL, NULL); -#line 57 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - added = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_SORTED_SET, GeeSortedSet); -#line 1149 "TagsBranch.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp1_; -#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = gee_iterable_iterator (added_raw); -#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _object_it = _tmp1_; -#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - while (TRUE) { -#line 1159 "TagsBranch.c" - GeeIterator* _tmp2_; - DataObject* object = NULL; - GeeIterator* _tmp3_; - gpointer _tmp4_; - Tag* tag = NULL; - DataObject* _tmp5_; - Tag* _tmp6_; - GeeSortedSet* _tmp7_; - Tag* _tmp8_; -#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp2_ = _object_it; -#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (!gee_iterator_next (_tmp2_)) { -#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - break; -#line 1175 "TagsBranch.c" - } -#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp3_ = _object_it; -#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp4_ = gee_iterator_get (_tmp3_); -#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - object = (DataObject*) _tmp4_; -#line 59 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp5_ = object; -#line 59 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_TAG, Tag)); -#line 59 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tag = _tmp6_; -#line 60 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp7_ = added; -#line 60 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp8_ = tag; -#line 60 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_COLLECTION, GeeCollection), _tmp8_); -#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (tag); -#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (object); -#line 1199 "TagsBranch.c" - } -#line 58 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_object_it); -#line 1203 "TagsBranch.c" - } - { - GeeIterator* _tag_it = NULL; - GeeSortedSet* _tmp9_; - GeeIterator* _tmp10_; -#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp9_ = added; -#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp10_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tag_it = _tmp10_; -#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - while (TRUE) { -#line 1217 "TagsBranch.c" - GeeIterator* _tmp11_; - Tag* tag = NULL; - GeeIterator* _tmp12_; - gpointer _tmp13_; - Tag* parent_tag = NULL; - Tag* _tmp14_; - Tag* _tmp15_; - TagsSidebarEntry* entry = NULL; - Tag* _tmp26_; - TagsSidebarEntry* _tmp27_; - GeeHashMap* _tmp28_; - Tag* _tmp29_; - TagsSidebarEntry* _tmp30_; - Tag* _tmp31_; - Tag* _tmp32_; - Tag* _tmp33_; - Tag* _tmp42_; - Tag* _tmp43_; -#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp11_ = _tag_it; -#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (!gee_iterator_next (_tmp11_)) { -#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - break; -#line 1242 "TagsBranch.c" - } -#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp12_ = _tag_it; -#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp13_ = gee_iterator_get (_tmp12_); -#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tag = (Tag*) _tmp13_; -#line 66 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp14_ = tag; -#line 66 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp15_ = tag_get_hierarchical_parent (_tmp14_); -#line 66 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - parent_tag = _tmp15_; -#line 67 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - while (TRUE) { -#line 1258 "TagsBranch.c" - Tag* _tmp16_; - GeeHashMap* _tmp17_; - Tag* _tmp18_; - Tag* _tmp24_; - Tag* _tmp25_; -#line 67 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp16_ = parent_tag; -#line 67 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (!(_tmp16_ != NULL)) { -#line 67 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - break; -#line 1270 "TagsBranch.c" - } -#line 68 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp17_ = self->priv->entry_map; -#line 68 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp18_ = parent_tag; -#line 68 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (!gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp18_)) { -#line 1278 "TagsBranch.c" - TagsSidebarEntry* parent_entry = NULL; - Tag* _tmp19_; - TagsSidebarEntry* _tmp20_; - GeeHashMap* _tmp21_; - Tag* _tmp22_; - TagsSidebarEntry* _tmp23_; -#line 69 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp19_ = parent_tag; -#line 69 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp20_ = tags_sidebar_entry_new (_tmp19_); -#line 69 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - parent_entry = _tmp20_; -#line 70 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp21_ = self->priv->entry_map; -#line 70 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp22_ = parent_tag; -#line 70 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp23_ = parent_entry; -#line 70 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp22_, _tmp23_); -#line 68 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (parent_entry); -#line 1301 "TagsBranch.c" - } -#line 73 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp24_ = parent_tag; -#line 73 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp25_ = tag_get_hierarchical_parent (_tmp24_); -#line 73 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (parent_tag); -#line 73 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - parent_tag = _tmp25_; -#line 1311 "TagsBranch.c" - } -#line 77 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp26_ = tag; -#line 77 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp27_ = tags_sidebar_entry_new (_tmp26_); -#line 77 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - entry = _tmp27_; -#line 78 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp28_ = self->priv->entry_map; -#line 78 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp29_ = tag; -#line 78 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp30_ = entry; -#line 78 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp29_, _tmp30_); -#line 80 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp31_ = tag; -#line 80 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp32_ = tag_get_hierarchical_parent (_tmp31_); -#line 80 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (parent_tag); -#line 80 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - parent_tag = _tmp32_; -#line 81 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp33_ = parent_tag; -#line 81 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (_tmp33_ != NULL) { -#line 1339 "TagsBranch.c" - TagsSidebarEntry* parent_entry = NULL; - GeeHashMap* _tmp34_; - Tag* _tmp35_; - gpointer _tmp36_; - TagsSidebarEntry* _tmp37_; - TagsSidebarEntry* _tmp38_; -#line 82 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp34_ = self->priv->entry_map; -#line 82 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp35_ = parent_tag; -#line 82 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp36_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp35_); -#line 82 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - parent_entry = (TagsSidebarEntry*) _tmp36_; -#line 83 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp37_ = parent_entry; -#line 83 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp38_ = entry; -#line 83 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, SIDEBAR_TYPE_ENTRY, SidebarEntry), G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL); -#line 81 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (parent_entry); -#line 1362 "TagsBranch.c" - } else { - SidebarEntry* _tmp39_; - SidebarEntry* _tmp40_; - TagsSidebarEntry* _tmp41_; -#line 85 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp39_ = sidebar_branch_get_root (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch)); -#line 85 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp40_ = _tmp39_; -#line 85 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp41_ = entry; -#line 85 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - sidebar_branch_graft (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), _tmp40_, G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, SIDEBAR_TYPE_ENTRY, SidebarEntry), NULL); -#line 85 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_tmp40_); -#line 1377 "TagsBranch.c" - } -#line 90 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp42_ = tag; -#line 90 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp43_ = _g_object_ref0 (_tmp42_); -#line 90 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (restore_point); -#line 90 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - restore_point = _tmp43_; -#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (entry); -#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (parent_tag); -#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (tag); -#line 1393 "TagsBranch.c" - } -#line 63 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_tag_it); -#line 1397 "TagsBranch.c" - } -#line 53 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (added); -#line 1401 "TagsBranch.c" - } -#line 94 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (removed != NULL) { -#line 1405 "TagsBranch.c" - { - GeeIterator* _object_it = NULL; - GeeIterator* _tmp44_; -#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp44_ = gee_iterable_iterator (removed); -#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _object_it = _tmp44_; -#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - while (TRUE) { -#line 1415 "TagsBranch.c" - GeeIterator* _tmp45_; - DataObject* object = NULL; - GeeIterator* _tmp46_; - gpointer _tmp47_; - Tag* tag = NULL; - DataObject* _tmp48_; - Tag* _tmp49_; - TagsSidebarEntry* entry = NULL; - GeeHashMap* _tmp50_; - Tag* _tmp51_; - gpointer _tmp52_; - TagsSidebarEntry* _tmp53_; - gboolean is_removed = FALSE; - GeeHashMap* _tmp54_; - Tag* _tmp55_; - gboolean _tmp56_; - gboolean _tmp57_; - TagsSidebarEntry* _tmp58_; -#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp45_ = _object_it; -#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (!gee_iterator_next (_tmp45_)) { -#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - break; -#line 1440 "TagsBranch.c" - } -#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp46_ = _object_it; -#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp47_ = gee_iterator_get (_tmp46_); -#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - object = (DataObject*) _tmp47_; -#line 96 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp48_ = object; -#line 96 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp49_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_TAG, Tag)); -#line 96 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tag = _tmp49_; -#line 98 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp50_ = self->priv->entry_map; -#line 98 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp51_ = tag; -#line 98 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp52_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp51_); -#line 98 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - entry = (TagsSidebarEntry*) _tmp52_; -#line 99 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp53_ = entry; -#line 99 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _vala_assert (_tmp53_ != NULL, "entry != null"); -#line 101 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp54_ = self->priv->entry_map; -#line 101 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp55_ = tag; -#line 101 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp56_ = gee_abstract_map_unset (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp55_, NULL); -#line 101 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - is_removed = _tmp56_; -#line 102 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp57_ = is_removed; -#line 102 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _vala_assert (_tmp57_, "is_removed"); -#line 104 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp58_ = entry; -#line 104 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - sidebar_branch_prune (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (entry); -#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (tag); -#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (object); -#line 1488 "TagsBranch.c" - } -#line 95 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_object_it); -#line 1492 "TagsBranch.c" - } - } -#line 46 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (restore_point); -#line 1497 "TagsBranch.c" -} - - -static void -tags_branch_on_tags_altered (TagsBranch* self, - GeeMap* altered) -{ -#line 109 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_if_fail (TAGS_IS_BRANCH (self)); -#line 109 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_if_fail (GEE_IS_MAP (altered)); -#line 1509 "TagsBranch.c" - { - GeeIterator* _object_it = NULL; - GeeSet* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; - GeeIterator* _tmp3_; - GeeIterator* _tmp4_; -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = gee_map_get_keys (altered); -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = _tmp0_; -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp2_ = _tmp1_; -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp4_ = _tmp3_; -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_tmp2_); -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _object_it = _tmp4_; -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - while (TRUE) { -#line 1533 "TagsBranch.c" - GeeIterator* _tmp5_; - DataObject* object = NULL; - GeeIterator* _tmp6_; - gpointer _tmp7_; - DataObject* _tmp8_; - gpointer _tmp9_; - Alteration* _tmp10_; - gboolean _tmp11_; - Tag* tag = NULL; - DataObject* _tmp12_; - Tag* _tmp13_; - TagsSidebarEntry* entry = NULL; - GeeHashMap* _tmp14_; - Tag* _tmp15_; - gpointer _tmp16_; - TagsSidebarEntry* _tmp17_; - TagsSidebarEntry* _tmp18_; - Tag* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - TagsSidebarEntry* _tmp22_; - Tag* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - TagsSidebarEntry* _tmp26_; -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp5_ = _object_it; -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (!gee_iterator_next (_tmp5_)) { -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - break; -#line 1565 "TagsBranch.c" - } -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp6_ = _object_it; -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp7_ = gee_iterator_get (_tmp6_); -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - object = (DataObject*) _tmp7_; -#line 111 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp8_ = object; -#line 111 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp9_ = gee_map_get (altered, _tmp8_); -#line 111 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp10_ = (Alteration*) _tmp9_; -#line 111 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp11_ = !alteration_has_detail (_tmp10_, "metadata", "name"); -#line 111 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _alteration_unref0 (_tmp10_); -#line 111 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (_tmp11_) { -#line 112 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (object); -#line 112 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - continue; -#line 1589 "TagsBranch.c" - } -#line 114 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp12_ = object; -#line 114 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, TYPE_TAG, Tag)); -#line 114 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tag = _tmp13_; -#line 115 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp14_ = self->priv->entry_map; -#line 115 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp15_ = tag; -#line 115 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp16_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_); -#line 115 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - entry = (TagsSidebarEntry*) _tmp16_; -#line 116 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp17_ = entry; -#line 116 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _vala_assert (_tmp17_ != NULL, "entry != null"); -#line 118 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp18_ = entry; -#line 118 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp19_ = tag; -#line 118 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp20_ = tag_get_user_visible_name (_tmp19_); -#line 118 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp21_ = _tmp20_; -#line 118 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, SIDEBAR_TYPE_RENAMEABLE_ENTRY, SidebarRenameableEntry), "sidebar-name-changed", _tmp21_); -#line 118 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (_tmp21_); -#line 119 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp22_ = entry; -#line 119 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp23_ = tag; -#line 119 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp24_ = tag_get_user_visible_name (_tmp23_); -#line 119 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp25_ = _tmp24_; -#line 119 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, SIDEBAR_TYPE_ENTRY, SidebarEntry), "sidebar-tooltip-changed", _tmp25_); -#line 119 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (_tmp25_); -#line 120 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp26_ = entry; -#line 120 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - sidebar_branch_reorder (G_TYPE_CHECK_INSTANCE_CAST (self, SIDEBAR_TYPE_BRANCH, SidebarBranch), G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, SIDEBAR_TYPE_ENTRY, SidebarEntry)); -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (entry); -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (tag); -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (object); -#line 1643 "TagsBranch.c" - } -#line 110 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_object_it); -#line 1647 "TagsBranch.c" - } -} - - -static void -tags_branch_class_init (TagsBranchClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tags_branch_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_type_class_add_private (klass, sizeof (TagsBranchPrivate)); -#line 7 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - G_OBJECT_CLASS (klass)->finalize = tags_branch_finalize; -#line 1661 "TagsBranch.c" -} - - -static void -tags_branch_instance_init (TagsBranch * self) -{ - GeeHashMap* _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self->priv = TAGS_BRANCH_GET_PRIVATE (self); -#line 8 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = gee_hash_map_new (TYPE_TAG, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, TAGS_TYPE_SIDEBAR_ENTRY, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 8 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self->priv->entry_map = _tmp0_; -#line 1675 "TagsBranch.c" -} - - -static void -tags_branch_finalize (GObject * obj) -{ - TagsBranch * self; - TagSourceCollection* _tmp0_; - guint _tmp1_; - TagSourceCollection* _tmp2_; - guint _tmp3_; -#line 7 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TAGS_TYPE_BRANCH, TagsBranch); -#line 26 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = tag_global; -#line 26 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_signal_parse_name ("contents-altered", TYPE_DATA_COLLECTION, &_tmp1_, NULL, FALSE); -#line 26 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _tags_branch_on_tags_added_removed_data_collection_contents_altered, self); -#line 27 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp2_ = tag_global; -#line 27 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_signal_parse_name ("items-altered", TYPE_DATA_COLLECTION, &_tmp3_, NULL, FALSE); -#line 27 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_signal_handlers_disconnect_matched (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection), G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _tags_branch_on_tags_altered_data_collection_items_altered, self); -#line 8 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (self->priv->entry_map); -#line 7 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - G_OBJECT_CLASS (tags_branch_parent_class)->finalize (obj); -#line 1705 "TagsBranch.c" -} - - -GType -tags_branch_get_type (void) -{ - static volatile gsize tags_branch_type_id__volatile = 0; - if (g_once_init_enter (&tags_branch_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TagsBranchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tags_branch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagsBranch), 0, (GInstanceInitFunc) tags_branch_instance_init, NULL }; - GType tags_branch_type_id; - tags_branch_type_id = g_type_register_static (SIDEBAR_TYPE_BRANCH, "TagsBranch", &g_define_type_info, 0); - g_once_init_leave (&tags_branch_type_id__volatile, tags_branch_type_id); - } - return tags_branch_type_id__volatile; -} - - -TagsHeader* -tags_header_construct (GType object_type) -{ - TagsHeader * self = NULL; -#line 131 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = (TagsHeader*) sidebar_header_construct (object_type, _ ("Tags"), _ ("Organize and browse your photo’s tags"), TRUE); -#line 132 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tags_header_setup_context_menu (self); -#line 130 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return self; -#line 1733 "TagsBranch.c" -} - - -TagsHeader* -tags_header_new (void) -{ -#line 130 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return tags_header_construct (TAGS_TYPE_HEADER); -#line 1742 "TagsBranch.c" -} - - -static void -tags_header_setup_context_menu (TagsHeader* self) -{ - GtkBuilder* _tmp0_; - GError * _inner_error_ = NULL; -#line 135 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_if_fail (TAGS_IS_HEADER (self)); -#line 136 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = gtk_builder_new (); -#line 136 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (self->priv->builder); -#line 136 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self->priv->builder = _tmp0_; -#line 1759 "TagsBranch.c" - { - GtkBuilder* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - GMenuModel* model = NULL; - GtkBuilder* _tmp4_; - GObject* _tmp5_; - GMenuModel* _tmp6_; - GMenuModel* _tmp7_; - GtkMenu* _tmp8_; -#line 138 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = self->priv->builder; -#line 138 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp2_ = resources_get_ui ("tag_sidebar_context.ui"); -#line 138 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp3_ = _tmp2_; -#line 138 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - gtk_builder_add_from_resource (_tmp1_, _tmp3_, &_inner_error_); -#line 138 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (_tmp3_); -#line 138 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1782 "TagsBranch.c" - goto __catch61_g_error; - } -#line 139 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp4_ = self->priv->builder; -#line 139 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp5_ = gtk_builder_get_object (_tmp4_, "popup-menu"); -#line 139 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, g_menu_model_get_type ()) ? ((GMenuModel*) _tmp5_) : NULL); -#line 139 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - model = _tmp6_; -#line 140 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp7_ = model; -#line 140 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp8_ = (GtkMenu*) gtk_menu_new_from_model (_tmp7_); -#line 140 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_object_ref_sink (_tmp8_); -#line 140 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (self->priv->context_menu); -#line 140 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self->priv->context_menu = _tmp8_; -#line 137 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (model); -#line 1805 "TagsBranch.c" - } - goto __finally61; - __catch61_g_error: - { - GError* _error_ = NULL; - GError* _tmp9_; - const gchar* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - Application* _tmp13_; - Application* _tmp14_; -#line 137 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _error_ = _inner_error_; -#line 137 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _inner_error_ = NULL; -#line 142 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp9_ = _error_; -#line 142 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp10_ = _tmp9_->message; -#line 142 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp11_ = g_strdup_printf ("Error loading UI resource: %s", _tmp10_); -#line 142 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp12_ = _tmp11_; -#line 142 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - app_window_error_message (_tmp12_, NULL); -#line 142 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (_tmp12_); -#line 144 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp13_ = application_get_instance (); -#line 144 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp14_ = _tmp13_; -#line 144 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - application_panic (_tmp14_); -#line 144 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _application_unref0 (_tmp14_); -#line 137 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_error_free0 (_error_); -#line 1843 "TagsBranch.c" - } - __finally61: -#line 137 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 137 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 137 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_clear_error (&_inner_error_); -#line 137 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return; -#line 1854 "TagsBranch.c" - } -} - - -static gboolean -tags_header_real_internal_drop_received (SidebarInternalDropTargetEntry* base, - GeeList* media) -{ - TagsHeader * self; - gboolean result = FALSE; - AddTagsDialog* dialog = NULL; - AddTagsDialog* _tmp0_; - gchar** names = NULL; - AddTagsDialog* _tmp1_; - gint _tmp2_; - gchar** _tmp3_; - gint names_length1; - gint _names_size_; - gboolean _tmp4_ = FALSE; - gchar** _tmp5_; - gint _tmp5__length1; - CommandManager* _tmp7_; - CommandManager* _tmp8_; - gchar** _tmp9_; - gint _tmp9__length1; - AddTagsCommand* _tmp10_; - AddTagsCommand* _tmp11_; -#line 148 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_HEADER, TagsHeader); -#line 148 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_val_if_fail (GEE_IS_LIST (media), FALSE); -#line 149 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = add_tags_dialog_new (); -#line 149 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - dialog = _tmp0_; -#line 150 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = dialog; -#line 150 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp3_ = add_tags_dialog_execute (_tmp1_, &_tmp2_); -#line 150 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - names = _tmp3_; -#line 150 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - names_length1 = _tmp2_; -#line 150 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _names_size_ = names_length1; -#line 151 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp5_ = names; -#line 151 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp5__length1 = names_length1; -#line 151 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (_tmp5_ == NULL) { -#line 151 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp4_ = TRUE; -#line 1908 "TagsBranch.c" - } else { - gchar** _tmp6_; - gint _tmp6__length1; -#line 151 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp6_ = names; -#line 151 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp6__length1 = names_length1; -#line 151 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp4_ = _tmp6__length1 == 0; -#line 1918 "TagsBranch.c" - } -#line 151 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (_tmp4_) { -#line 152 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = FALSE; -#line 152 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - names = (_vala_array_free (names, names_length1, (GDestroyNotify) g_free), NULL); -#line 152 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _text_entry_dialog_mediator_unref0 (dialog); -#line 152 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 1930 "TagsBranch.c" - } -#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp7_ = app_window_get_command_manager (); -#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp8_ = _tmp7_; -#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp9_ = names; -#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp9__length1 = names_length1; -#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp10_ = add_tags_command_new (_tmp9_, _tmp9__length1, G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_COLLECTION, GeeCollection)); -#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp11_ = _tmp10_; -#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - command_manager_execute (_tmp8_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_COMMAND, Command)); -#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_tmp11_); -#line 154 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _command_manager_unref0 (_tmp8_); -#line 156 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = TRUE; -#line 156 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - names = (_vala_array_free (names, names_length1, (GDestroyNotify) g_free), NULL); -#line 156 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _text_entry_dialog_mediator_unref0 (dialog); -#line 156 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 1958 "TagsBranch.c" -} - - -static gboolean -tags_header_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, - GtkSelectionData* data) -{ - TagsHeader * self; - gboolean result = FALSE; - gchar* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_; -#line 159 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_HEADER, TagsHeader); -#line 159 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_val_if_fail (data != NULL, FALSE); -#line 160 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = gdk_atom_name (gtk_selection_data_get_data_type (data)); -#line 160 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = _tmp0_; -#line 160 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp2_ = g_strcmp0 (_tmp1_, LIBRARY_WINDOW_TAG_PATH_MIME_TYPE) == 0; -#line 160 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (_tmp1_); -#line 160 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (_tmp2_) { -#line 1985 "TagsBranch.c" - gchar* old_tag_path = NULL; - guint8* _tmp3_; - gchar* _tmp4_; - TagSourceCollection* _tmp5_; - const gchar* _tmp6_; - const gchar* _tmp7_; - GeeList* _tmp8_; - GeeList* _tmp9_; - gint _tmp10_; - gint _tmp11_; - gboolean _tmp12_; - CommandManager* _tmp13_; - CommandManager* _tmp14_; - const gchar* _tmp15_; - Tag* _tmp16_; - Tag* _tmp17_; - ReparentTagCommand* _tmp18_; - ReparentTagCommand* _tmp19_; -#line 161 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp3_ = gtk_selection_data_get_data (data); -#line 161 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp4_ = g_strdup ((const gchar*) _tmp3_); -#line 161 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - old_tag_path = _tmp4_; -#line 162 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp5_ = tag_global; -#line 162 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp6_ = old_tag_path; -#line 162 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _vala_assert (tag_source_collection_exists (_tmp5_, _tmp6_, FALSE), "Tag.global.exists(old_tag_path)"); -#line 165 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp7_ = old_tag_path; -#line 165 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp8_ = hierarchical_tag_utilities_enumerate_path_components (_tmp7_); -#line 165 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp9_ = _tmp8_; -#line 165 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp10_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 165 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp11_ = _tmp10_; -#line 165 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp12_ = _tmp11_ < 2; -#line 165 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_tmp9_); -#line 165 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (_tmp12_) { -#line 166 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = TRUE; -#line 166 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (old_tag_path); -#line 166 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 2038 "TagsBranch.c" - } -#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp13_ = app_window_get_command_manager (); -#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp14_ = _tmp13_; -#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp15_ = old_tag_path; -#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp16_ = tag_for_path (_tmp15_); -#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp17_ = _tmp16_; -#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp18_ = reparent_tag_command_new (_tmp17_, "/"); -#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp19_ = _tmp18_; -#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - command_manager_execute (_tmp14_, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_COMMAND, Command)); -#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_tmp19_); -#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_tmp17_); -#line 168 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _command_manager_unref0 (_tmp14_); -#line 171 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = TRUE; -#line 171 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (old_tag_path); -#line 171 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 2068 "TagsBranch.c" - } -#line 174 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = FALSE; -#line 174 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 2074 "TagsBranch.c" -} - - -static void -tags_header_real_prepare_selection_data (SidebarInternalDragSourceEntry* base, - GtkSelectionData* data) -{ - TagsHeader * self; -#line 177 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_HEADER, TagsHeader); -#line 177 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_if_fail (data != NULL); -#line 2087 "TagsBranch.c" -} - - -static GtkMenu* -tags_header_real_get_sidebar_context_menu (SidebarContextable* base, - GdkEventButton* event) -{ - TagsHeader * self; - GtkMenu* result = NULL; - GtkMenu* _tmp0_; - GtkMenu* _tmp1_; -#line 181 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_HEADER, TagsHeader); -#line 182 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = self->priv->context_menu; -#line 182 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 182 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = _tmp1_; -#line 182 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 2109 "TagsBranch.c" -} - - -static void -tags_header_class_init (TagsHeaderClass * klass) -{ -#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tags_header_parent_class = g_type_class_peek_parent (klass); -#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_type_class_add_private (klass, sizeof (TagsHeaderPrivate)); -#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - G_OBJECT_CLASS (klass)->finalize = tags_header_finalize; -#line 2122 "TagsBranch.c" -} - - -static void -tags_header_sidebar_internal_drop_target_entry_interface_init (SidebarInternalDropTargetEntryIface * iface) -{ -#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tags_header_sidebar_internal_drop_target_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - iface->internal_drop_received = (gboolean (*) (SidebarInternalDropTargetEntry *, GeeList*)) tags_header_real_internal_drop_received; -#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - iface->internal_drop_received_arbitrary = (gboolean (*) (SidebarInternalDropTargetEntry *, GtkSelectionData*)) tags_header_real_internal_drop_received_arbitrary; -#line 2135 "TagsBranch.c" -} - - -static void -tags_header_sidebar_internal_drag_source_entry_interface_init (SidebarInternalDragSourceEntryIface * iface) -{ -#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tags_header_sidebar_internal_drag_source_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - iface->prepare_selection_data = (void (*) (SidebarInternalDragSourceEntry *, GtkSelectionData*)) tags_header_real_prepare_selection_data; -#line 2146 "TagsBranch.c" -} - - -static void -tags_header_sidebar_contextable_interface_init (SidebarContextableIface * iface) -{ -#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tags_header_sidebar_contextable_parent_iface = g_type_interface_peek_parent (iface); -#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - iface->get_sidebar_context_menu = (GtkMenu* (*) (SidebarContextable *, GdkEventButton*)) tags_header_real_get_sidebar_context_menu; -#line 2157 "TagsBranch.c" -} - - -static void -tags_header_instance_init (TagsHeader * self) -{ -#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self->priv = TAGS_HEADER_GET_PRIVATE (self); -#line 128 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self->priv->context_menu = NULL; -#line 2168 "TagsBranch.c" -} - - -static void -tags_header_finalize (GObject * obj) -{ - TagsHeader * self; -#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TAGS_TYPE_HEADER, TagsHeader); -#line 127 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (self->priv->builder); -#line 128 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (self->priv->context_menu); -#line 125 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - G_OBJECT_CLASS (tags_header_parent_class)->finalize (obj); -#line 2184 "TagsBranch.c" -} - - -GType -tags_header_get_type (void) -{ - static volatile gsize tags_header_type_id__volatile = 0; - if (g_once_init_enter (&tags_header_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TagsHeaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tags_header_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagsHeader), 0, (GInstanceInitFunc) tags_header_instance_init, NULL }; - static const GInterfaceInfo sidebar_internal_drop_target_entry_info = { (GInterfaceInitFunc) tags_header_sidebar_internal_drop_target_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo sidebar_internal_drag_source_entry_info = { (GInterfaceInitFunc) tags_header_sidebar_internal_drag_source_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo sidebar_contextable_info = { (GInterfaceInitFunc) tags_header_sidebar_contextable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType tags_header_type_id; - tags_header_type_id = g_type_register_static (SIDEBAR_TYPE_HEADER, "TagsHeader", &g_define_type_info, 0); - g_type_add_interface_static (tags_header_type_id, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, &sidebar_internal_drop_target_entry_info); - g_type_add_interface_static (tags_header_type_id, SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, &sidebar_internal_drag_source_entry_info); - g_type_add_interface_static (tags_header_type_id, SIDEBAR_TYPE_CONTEXTABLE, &sidebar_contextable_info); - g_once_init_leave (&tags_header_type_id__volatile, tags_header_type_id); - } - return tags_header_type_id__volatile; -} - - -TagsSidebarEntry* -tags_sidebar_entry_construct (GType object_type, - Tag* tag) -{ - TagsSidebarEntry * self = NULL; - Tag* _tmp0_; -#line 193 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_val_if_fail (IS_TAG (tag), NULL); -#line 193 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = (TagsSidebarEntry*) sidebar_simple_page_entry_construct (object_type); -#line 194 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = _g_object_ref0 (tag); -#line 194 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (self->priv->tag); -#line 194 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self->priv->tag = _tmp0_; -#line 193 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return self; -#line 2226 "TagsBranch.c" -} - - -TagsSidebarEntry* -tags_sidebar_entry_new (Tag* tag) -{ -#line 193 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return tags_sidebar_entry_construct (TAGS_TYPE_SIDEBAR_ENTRY, tag); -#line 2235 "TagsBranch.c" -} - - -void -tags_sidebar_entry_init (void) -{ -} - - -void -tags_sidebar_entry_terminate (void) -{ -} - - -Tag* -tags_sidebar_entry_for_tag (TagsSidebarEntry* self) -{ - Tag* result = NULL; - Tag* _tmp0_; - Tag* _tmp1_; -#line 203 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_val_if_fail (TAGS_IS_SIDEBAR_ENTRY (self), NULL); -#line 204 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = self->priv->tag; -#line 204 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 204 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = _tmp1_; -#line 204 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 2267 "TagsBranch.c" -} - - -static gchar* -tags_sidebar_entry_real_get_sidebar_name (SidebarSimplePageEntry* base) -{ - TagsSidebarEntry * self; - gchar* result = NULL; - Tag* _tmp0_; - gchar* _tmp1_; -#line 207 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry); -#line 208 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = self->priv->tag; -#line 208 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = tag_get_user_visible_name (_tmp0_); -#line 208 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = _tmp1_; -#line 208 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 2288 "TagsBranch.c" -} - - -static gchar* -tags_sidebar_entry_real_get_sidebar_icon (SidebarSimplePageEntry* base) -{ - TagsSidebarEntry * self; - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 211 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry); -#line 212 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = self->priv->single_tag_icon; -#line 212 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 212 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = _tmp1_; -#line 212 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 2309 "TagsBranch.c" -} - - -static Page* -tags_sidebar_entry_real_create_page (SidebarSimplePageEntry* base) -{ - TagsSidebarEntry * self; - Page* result = NULL; - Tag* _tmp0_; - TagPage* _tmp1_; -#line 215 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry); -#line 216 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = self->priv->tag; -#line 216 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = tag_page_new (_tmp0_); -#line 216 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_object_ref_sink (_tmp1_); -#line 216 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_PAGE, Page); -#line 216 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 2332 "TagsBranch.c" -} - - -static gboolean -tags_sidebar_entry_real_is_user_renameable (SidebarRenameableEntry* base) -{ - TagsSidebarEntry * self; - gboolean result = FALSE; -#line 219 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry); -#line 220 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = TRUE; -#line 220 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 2347 "TagsBranch.c" -} - - -static gchar* -string_replace (const gchar* self, - const gchar* old, - const gchar* replacement) -{ - gchar* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GError * _inner_error_ = NULL; -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (old != NULL, NULL); -#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (replacement != NULL, NULL); -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if ((*((gchar*) self)) == '\0') { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 2370 "TagsBranch.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) old)) == '\0'; -#line 2374 "TagsBranch.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = TRUE; -#line 2380 "TagsBranch.c" - } else { -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (old, replacement) == 0; -#line 2384 "TagsBranch.c" - } -#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 2388 "TagsBranch.c" - gchar* _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = g_strdup (self); -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp2_; -#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2396 "TagsBranch.c" - } - { - GRegex* regex = NULL; - gchar* _tmp3_; - gchar* _tmp4_; - GRegex* _tmp5_; - GRegex* _tmp6_; - gchar* _tmp7_ = NULL; - GRegex* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_regex_escape_string (old, -1); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = _tmp5_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp4_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - regex = _tmp6_; -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 2424 "TagsBranch.c" - goto __catch62_g_regex_error; - } -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 2433 "TagsBranch.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = regex; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = _tmp9_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_inner_error_->domain == G_REGEX_ERROR) { -#line 2447 "TagsBranch.c" - goto __catch62_g_regex_error; - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 2458 "TagsBranch.c" - } -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp10_ = _tmp7_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = NULL; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp10_; -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_free0 (_tmp7_); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_regex_unref0 (regex); -#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 2472 "TagsBranch.c" - } - goto __finally62; - __catch62_g_regex_error: - { - GError* e = NULL; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - e = _inner_error_; -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _inner_error_ = NULL; -#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_assert_not_reached (); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _g_error_free0 (e); -#line 2486 "TagsBranch.c" - } - __finally62: -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_clear_error (&_inner_error_); -#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return NULL; -#line 2497 "TagsBranch.c" - } -} - - -static void -tags_sidebar_entry_real_rename (SidebarRenameableEntry* base, - const gchar* new_name) -{ - TagsSidebarEntry * self; - gchar* prepped = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; - Tag* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - gboolean _tmp8_; - const gchar* _tmp9_; - CommandManager* _tmp10_; - CommandManager* _tmp11_; - Tag* _tmp12_; - const gchar* _tmp13_; - RenameTagCommand* _tmp14_; - RenameTagCommand* _tmp15_; -#line 223 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry); -#line 223 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_if_fail (new_name != NULL); -#line 224 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = tag_prep_tag_name (new_name); -#line 224 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - prepped = _tmp0_; -#line 225 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = prepped; -#line 225 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (_tmp1_ == NULL) { -#line 226 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (prepped); -#line 226 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return; -#line 2540 "TagsBranch.c" - } -#line 228 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp2_ = prepped; -#line 228 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp3_ = string_replace (_tmp2_, "/", ""); -#line 228 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (prepped); -#line 228 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - prepped = _tmp3_; -#line 230 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp4_ = prepped; -#line 230 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp5_ = self->priv->tag; -#line 230 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp6_ = tag_get_user_visible_name (_tmp5_); -#line 230 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp7_ = _tmp6_; -#line 230 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp8_ = g_strcmp0 (_tmp4_, _tmp7_) == 0; -#line 230 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (_tmp7_); -#line 230 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (_tmp8_) { -#line 231 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (prepped); -#line 231 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return; -#line 2568 "TagsBranch.c" - } -#line 233 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp9_ = prepped; -#line 233 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (g_strcmp0 (_tmp9_, "") == 0) { -#line 234 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (prepped); -#line 234 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return; -#line 2578 "TagsBranch.c" - } -#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp10_ = app_window_get_command_manager (); -#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp11_ = _tmp10_; -#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp12_ = self->priv->tag; -#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp13_ = prepped; -#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp14_ = rename_tag_command_new (_tmp12_, _tmp13_); -#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp15_ = _tmp14_; -#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - command_manager_execute (_tmp11_, G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, TYPE_COMMAND, Command)); -#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_tmp15_); -#line 236 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _command_manager_unref0 (_tmp11_); -#line 223 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (prepped); -#line 2600 "TagsBranch.c" -} - - -static void -tags_sidebar_entry_real_destroy_source (SidebarDestroyableEntry* base) -{ - TagsSidebarEntry * self; - Tag* _tmp0_; -#line 239 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry); -#line 240 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = self->priv->tag; -#line 240 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (dialogs_confirm_delete_tag (_tmp0_)) { -#line 2615 "TagsBranch.c" - CommandManager* _tmp1_; - CommandManager* _tmp2_; - Tag* _tmp3_; - DeleteTagCommand* _tmp4_; - DeleteTagCommand* _tmp5_; -#line 241 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = app_window_get_command_manager (); -#line 241 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp2_ = _tmp1_; -#line 241 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp3_ = self->priv->tag; -#line 241 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp4_ = delete_tag_command_new (_tmp3_); -#line 241 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp5_ = _tmp4_; -#line 241 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - command_manager_execute (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_COMMAND, Command)); -#line 241 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_tmp5_); -#line 241 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _command_manager_unref0 (_tmp2_); -#line 2637 "TagsBranch.c" - } -} - - -static gboolean -tags_sidebar_entry_real_internal_drop_received (SidebarInternalDropTargetEntry* base, - GeeList* media) -{ - TagsSidebarEntry * self; - gboolean result = FALSE; - CommandManager* _tmp0_; - CommandManager* _tmp1_; - Tag* _tmp2_; - gint _tmp3_; - gint _tmp4_; - TagUntagPhotosCommand* _tmp5_; - TagUntagPhotosCommand* _tmp6_; -#line 244 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry); -#line 244 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_val_if_fail (GEE_IS_LIST (media), FALSE); -#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = app_window_get_command_manager (); -#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = _tmp0_; -#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp2_ = self->priv->tag; -#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp3_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_COLLECTION, GeeCollection)); -#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp4_ = _tmp3_; -#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp5_ = tag_untag_photos_command_new (_tmp2_, G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_COLLECTION, GeeCollection), _tmp4_, TRUE); -#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp6_ = _tmp5_; -#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - command_manager_execute (_tmp1_, G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_COMMAND, Command)); -#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_tmp6_); -#line 245 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _command_manager_unref0 (_tmp1_); -#line 248 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = TRUE; -#line 248 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 2683 "TagsBranch.c" -} - - -static gboolean -tags_sidebar_entry_real_internal_drop_received_arbitrary (SidebarInternalDropTargetEntry* base, - GtkSelectionData* data) -{ - TagsSidebarEntry * self; - gboolean result = FALSE; - gchar* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_; -#line 251 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry); -#line 251 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_val_if_fail (data != NULL, FALSE); -#line 252 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = gdk_atom_name (gtk_selection_data_get_data_type (data)); -#line 252 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = _tmp0_; -#line 252 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp2_ = g_strcmp0 (_tmp1_, LIBRARY_WINDOW_TAG_PATH_MIME_TYPE) == 0; -#line 252 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (_tmp1_); -#line 252 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (_tmp2_) { -#line 2710 "TagsBranch.c" - gchar* old_tag_path = NULL; - guint8* _tmp3_; - gchar* _tmp4_; - const gchar* _tmp5_; - Tag* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - gboolean _tmp9_; - TagSourceCollection* _tmp26_; - const gchar* _tmp27_; - Tag* old_tag = NULL; - const gchar* _tmp28_; - Tag* _tmp29_; - Tag* old_tag_parent = NULL; - Tag* _tmp30_; - Tag* _tmp31_; - gboolean _tmp32_ = FALSE; - Tag* _tmp33_; - CommandManager* _tmp40_; - CommandManager* _tmp41_; - Tag* _tmp42_; - Tag* _tmp43_; - gchar* _tmp44_; - gchar* _tmp45_; - ReparentTagCommand* _tmp46_; - ReparentTagCommand* _tmp47_; -#line 253 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp3_ = gtk_selection_data_get_data (data); -#line 253 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp4_ = g_strdup ((const gchar*) _tmp3_); -#line 253 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - old_tag_path = _tmp4_; -#line 256 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp5_ = old_tag_path; -#line 256 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp6_ = self->priv->tag; -#line 256 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp7_ = tag_get_path (_tmp6_); -#line 256 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp8_ = _tmp7_; -#line 256 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp9_ = g_strcmp0 (_tmp5_, _tmp8_) == 0; -#line 256 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (_tmp8_); -#line 256 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (_tmp9_) { -#line 257 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = TRUE; -#line 257 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (old_tag_path); -#line 257 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 2763 "TagsBranch.c" - } - { - GeeList* _parent_path_list = NULL; - Tag* _tmp10_; - gchar* _tmp11_; - gchar* _tmp12_; - GeeList* _tmp13_; - GeeList* _tmp14_; - gint _parent_path_size = 0; - GeeList* _tmp15_; - gint _tmp16_; - gint _tmp17_; - gint _parent_path_index = 0; -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp10_ = self->priv->tag; -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp11_ = tag_get_path (_tmp10_); -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp12_ = _tmp11_; -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp13_ = hierarchical_tag_utilities_enumerate_parent_paths (_tmp12_); -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp14_ = _tmp13_; -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (_tmp12_); -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _parent_path_list = _tmp14_; -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp15_ = _parent_path_list; -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp16_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp17_ = _tmp16_; -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _parent_path_size = _tmp17_; -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _parent_path_index = -1; -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - while (TRUE) { -#line 2803 "TagsBranch.c" - gint _tmp18_; - gint _tmp19_; - gint _tmp20_; - gchar* parent_path = NULL; - GeeList* _tmp21_; - gint _tmp22_; - gpointer _tmp23_; - const gchar* _tmp24_; - const gchar* _tmp25_; -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp18_ = _parent_path_index; -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _parent_path_index = _tmp18_ + 1; -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp19_ = _parent_path_index; -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp20_ = _parent_path_size; -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (!(_tmp19_ < _tmp20_)) { -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - break; -#line 2825 "TagsBranch.c" - } -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp21_ = _parent_path_list; -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp22_ = _parent_path_index; -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp23_ = gee_list_get (_tmp21_, _tmp22_); -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - parent_path = (gchar*) _tmp23_; -#line 261 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp24_ = parent_path; -#line 261 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp25_ = old_tag_path; -#line 261 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (g_strcmp0 (_tmp24_, _tmp25_) == 0) { -#line 262 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = TRUE; -#line 262 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (parent_path); -#line 262 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_parent_path_list); -#line 262 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (old_tag_path); -#line 262 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 2851 "TagsBranch.c" - } -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (parent_path); -#line 2855 "TagsBranch.c" - } -#line 260 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_parent_path_list); -#line 2859 "TagsBranch.c" - } -#line 265 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp26_ = tag_global; -#line 265 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp27_ = old_tag_path; -#line 265 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _vala_assert (tag_source_collection_exists (_tmp26_, _tmp27_, FALSE), "Tag.global.exists(old_tag_path)"); -#line 268 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp28_ = old_tag_path; -#line 268 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp29_ = tag_for_path (_tmp28_); -#line 268 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - old_tag = _tmp29_; -#line 269 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp30_ = old_tag; -#line 269 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp31_ = tag_get_hierarchical_parent (_tmp30_); -#line 269 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - old_tag_parent = _tmp31_; -#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp33_ = old_tag_parent; -#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (_tmp33_ != NULL) { -#line 2883 "TagsBranch.c" - Tag* _tmp34_; - gchar* _tmp35_; - gchar* _tmp36_; - Tag* _tmp37_; - gchar* _tmp38_; - gchar* _tmp39_; -#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp34_ = old_tag_parent; -#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp35_ = tag_get_path (_tmp34_); -#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp36_ = _tmp35_; -#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp37_ = self->priv->tag; -#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp38_ = tag_get_path (_tmp37_); -#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp39_ = _tmp38_; -#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp32_ = g_strcmp0 (_tmp36_, _tmp39_) == 0; -#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (_tmp39_); -#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (_tmp36_); -#line 2908 "TagsBranch.c" - } else { -#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp32_ = FALSE; -#line 2912 "TagsBranch.c" - } -#line 270 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - if (_tmp32_) { -#line 271 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = TRUE; -#line 271 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (old_tag_parent); -#line 271 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (old_tag); -#line 271 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (old_tag_path); -#line 271 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 2926 "TagsBranch.c" - } -#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp40_ = app_window_get_command_manager (); -#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp41_ = _tmp40_; -#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp42_ = old_tag; -#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp43_ = self->priv->tag; -#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp44_ = tag_get_path (_tmp43_); -#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp45_ = _tmp44_; -#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp46_ = reparent_tag_command_new (_tmp42_, _tmp45_); -#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp47_ = _tmp46_; -#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - command_manager_execute (_tmp41_, G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_COMMAND, Command)); -#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (_tmp47_); -#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (_tmp45_); -#line 273 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _command_manager_unref0 (_tmp41_); -#line 276 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = TRUE; -#line 276 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (old_tag_parent); -#line 276 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (old_tag); -#line 276 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (old_tag_path); -#line 276 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 2962 "TagsBranch.c" - } -#line 279 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = FALSE; -#line 279 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 2968 "TagsBranch.c" -} - - -static gboolean -tags_sidebar_entry_real_expand_on_select (SidebarExpandableEntry* base) -{ - TagsSidebarEntry * self; - gboolean result = FALSE; -#line 282 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry); -#line 283 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - result = FALSE; -#line 283 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - return result; -#line 2983 "TagsBranch.c" -} - - -static guint8* -string_get_data (const gchar* self, - int* result_length1) -{ - guint8* result; - guint8* res = NULL; - gint res_length1; - gint _res_size_; - gint _tmp0_; - gint _tmp1_; - gint _tmp2_; - guint8* _tmp3_; - gint _tmp3__length1; - guint8* _tmp4_; - gint _tmp4__length1; -#line 1442 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res = (guint8*) self; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = -1; -#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _res_size_ = res_length1; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - res_length1 = (gint) _tmp1_; -#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = res; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3__length1 = res_length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4__length1 = _tmp3__length1; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (result_length1) { -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *result_length1 = _tmp4__length1; -#line 3030 "TagsBranch.c" - } -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp4_; -#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 3036 "TagsBranch.c" -} - - -static void -tags_sidebar_entry_real_prepare_selection_data (SidebarInternalDragSourceEntry* base, - GtkSelectionData* data) -{ - TagsSidebarEntry * self; - Tag* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - guint8* _tmp3_; - gint _tmp3__length1; - guint8* _tmp4_; - gint _tmp4__length1; -#line 286 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry); -#line 286 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_return_if_fail (data != NULL); -#line 287 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = self->priv->tag; -#line 287 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp1_ = tag_get_path (_tmp0_); -#line 287 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp2_ = _tmp1_; -#line 287 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp3_ = string_get_data (_tmp2_, &_tmp3__length1); -#line 287 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp4_ = _tmp3_; -#line 287 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp4__length1 = _tmp3__length1; -#line 287 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - gtk_selection_data_set (data, gdk_atom_intern_static_string (LIBRARY_WINDOW_TAG_PATH_MIME_TYPE), 0, _tmp4_, _tmp4__length1); -#line 287 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (_tmp2_); -#line 3072 "TagsBranch.c" -} - - -static void -tags_sidebar_entry_class_init (TagsSidebarEntryClass * klass) -{ -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tags_sidebar_entry_parent_class = g_type_class_peek_parent (klass); -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - g_type_class_add_private (klass, sizeof (TagsSidebarEntryPrivate)); -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_name = (gchar* (*) (SidebarSimplePageEntry *)) tags_sidebar_entry_real_get_sidebar_name; -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->get_sidebar_icon = (gchar* (*) (SidebarSimplePageEntry *)) tags_sidebar_entry_real_get_sidebar_icon; -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - ((SidebarSimplePageEntryClass *) klass)->create_page = (Page* (*) (SidebarSimplePageEntry *)) tags_sidebar_entry_real_create_page; -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - G_OBJECT_CLASS (klass)->finalize = tags_sidebar_entry_finalize; -#line 3091 "TagsBranch.c" -} - - -static void -tags_sidebar_entry_sidebar_renameable_entry_interface_init (SidebarRenameableEntryIface * iface) -{ -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tags_sidebar_entry_sidebar_renameable_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - iface->is_user_renameable = (gboolean (*) (SidebarRenameableEntry *)) tags_sidebar_entry_real_is_user_renameable; -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - iface->rename = (void (*) (SidebarRenameableEntry *, const gchar*)) tags_sidebar_entry_real_rename; -#line 3104 "TagsBranch.c" -} - - -static void -tags_sidebar_entry_sidebar_destroyable_entry_interface_init (SidebarDestroyableEntryIface * iface) -{ -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tags_sidebar_entry_sidebar_destroyable_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - iface->destroy_source = (void (*) (SidebarDestroyableEntry *)) tags_sidebar_entry_real_destroy_source; -#line 3115 "TagsBranch.c" -} - - -static void -tags_sidebar_entry_sidebar_internal_drop_target_entry_interface_init (SidebarInternalDropTargetEntryIface * iface) -{ -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tags_sidebar_entry_sidebar_internal_drop_target_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - iface->internal_drop_received = (gboolean (*) (SidebarInternalDropTargetEntry *, GeeList*)) tags_sidebar_entry_real_internal_drop_received; -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - iface->internal_drop_received_arbitrary = (gboolean (*) (SidebarInternalDropTargetEntry *, GtkSelectionData*)) tags_sidebar_entry_real_internal_drop_received_arbitrary; -#line 3128 "TagsBranch.c" -} - - -static void -tags_sidebar_entry_sidebar_expandable_entry_interface_init (SidebarExpandableEntryIface * iface) -{ -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tags_sidebar_entry_sidebar_expandable_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - iface->expand_on_select = (gboolean (*) (SidebarExpandableEntry *)) tags_sidebar_entry_real_expand_on_select; -#line 3139 "TagsBranch.c" -} - - -static void -tags_sidebar_entry_sidebar_internal_drag_source_entry_interface_init (SidebarInternalDragSourceEntryIface * iface) -{ -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - tags_sidebar_entry_sidebar_internal_drag_source_entry_parent_iface = g_type_interface_peek_parent (iface); -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - iface->prepare_selection_data = (void (*) (SidebarInternalDragSourceEntry *, GtkSelectionData*)) tags_sidebar_entry_real_prepare_selection_data; -#line 3150 "TagsBranch.c" -} - - -static void -tags_sidebar_entry_instance_init (TagsSidebarEntry * self) -{ - gchar* _tmp0_; -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self->priv = TAGS_SIDEBAR_ENTRY_GET_PRIVATE (self); -#line 189 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _tmp0_ = g_strdup (RESOURCES_ICON_ONE_TAG); -#line 189 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self->priv->single_tag_icon = _tmp0_; -#line 3164 "TagsBranch.c" -} - - -static void -tags_sidebar_entry_finalize (GObject * obj) -{ - TagsSidebarEntry * self; -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TAGS_TYPE_SIDEBAR_ENTRY, TagsSidebarEntry); -#line 189 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_free0 (self->priv->single_tag_icon); -#line 191 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - _g_object_unref0 (self->priv->tag); -#line 186 "/home/jens/Source/shotwell/src/tags/TagsBranch.vala" - G_OBJECT_CLASS (tags_sidebar_entry_parent_class)->finalize (obj); -#line 3180 "TagsBranch.c" -} - - -GType -tags_sidebar_entry_get_type (void) -{ - static volatile gsize tags_sidebar_entry_type_id__volatile = 0; - if (g_once_init_enter (&tags_sidebar_entry_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (TagsSidebarEntryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tags_sidebar_entry_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TagsSidebarEntry), 0, (GInstanceInitFunc) tags_sidebar_entry_instance_init, NULL }; - static const GInterfaceInfo sidebar_renameable_entry_info = { (GInterfaceInitFunc) tags_sidebar_entry_sidebar_renameable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo sidebar_destroyable_entry_info = { (GInterfaceInitFunc) tags_sidebar_entry_sidebar_destroyable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo sidebar_internal_drop_target_entry_info = { (GInterfaceInitFunc) tags_sidebar_entry_sidebar_internal_drop_target_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo sidebar_expandable_entry_info = { (GInterfaceInitFunc) tags_sidebar_entry_sidebar_expandable_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - static const GInterfaceInfo sidebar_internal_drag_source_entry_info = { (GInterfaceInitFunc) tags_sidebar_entry_sidebar_internal_drag_source_entry_interface_init, (GInterfaceFinalizeFunc) NULL, NULL}; - GType tags_sidebar_entry_type_id; - tags_sidebar_entry_type_id = g_type_register_static (SIDEBAR_TYPE_SIMPLE_PAGE_ENTRY, "TagsSidebarEntry", &g_define_type_info, 0); - g_type_add_interface_static (tags_sidebar_entry_type_id, SIDEBAR_TYPE_RENAMEABLE_ENTRY, &sidebar_renameable_entry_info); - g_type_add_interface_static (tags_sidebar_entry_type_id, SIDEBAR_TYPE_DESTROYABLE_ENTRY, &sidebar_destroyable_entry_info); - g_type_add_interface_static (tags_sidebar_entry_type_id, SIDEBAR_TYPE_INTERNAL_DROP_TARGET_ENTRY, &sidebar_internal_drop_target_entry_info); - g_type_add_interface_static (tags_sidebar_entry_type_id, SIDEBAR_TYPE_EXPANDABLE_ENTRY, &sidebar_expandable_entry_info); - g_type_add_interface_static (tags_sidebar_entry_type_id, SIDEBAR_TYPE_INTERNAL_DRAG_SOURCE_ENTRY, &sidebar_internal_drag_source_entry_info); - g_once_init_leave (&tags_sidebar_entry_type_id__volatile, tags_sidebar_entry_type_id); - } - return tags_sidebar_entry_type_id__volatile; -} - - -static void -_vala_array_destroy (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - if ((array != NULL) && (destroy_func != NULL)) { - int i; - for (i = 0; i < array_length; i = i + 1) { - if (((gpointer*) array)[i] != NULL) { - destroy_func (((gpointer*) array)[i]); - } - } - } -} - - -static void -_vala_array_free (gpointer array, - gint array_length, - GDestroyNotify destroy_func) -{ - _vala_array_destroy (array, array_length, destroy_func); - g_free (array); -} - - - diff --git a/src/threads/BackgroundJob.c b/src/threads/BackgroundJob.c deleted file mode 100644 index 1de262e..0000000 --- a/src/threads/BackgroundJob.c +++ /dev/null @@ -1,2086 +0,0 @@ -/* BackgroundJob.c generated by valac 0.40.4, the Vala compiler - * generated from BackgroundJob.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/* This callback is executed when an associated BackgroundJob completes. It is called from within*/ -/* the Gtk event loop, *not* the background thread's context.*/ - - -#include -#include -#include -#include -#include - - -#define TYPE_BACKGROUND_JOB (background_job_get_type ()) -#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob)) -#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass)) -#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB)) -#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB)) -#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass)) - -typedef struct _BackgroundJob BackgroundJob; -typedef struct _BackgroundJobClass BackgroundJobClass; - -#define TYPE_NOTIFICATION_OBJECT (notification_object_get_type ()) -#define NOTIFICATION_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NOTIFICATION_OBJECT, NotificationObject)) -#define NOTIFICATION_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NOTIFICATION_OBJECT, NotificationObjectClass)) -#define IS_NOTIFICATION_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NOTIFICATION_OBJECT)) -#define IS_NOTIFICATION_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NOTIFICATION_OBJECT)) -#define NOTIFICATION_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NOTIFICATION_OBJECT, NotificationObjectClass)) - -typedef struct _NotificationObject NotificationObject; -typedef struct _NotificationObjectClass NotificationObjectClass; -typedef struct _NotificationObjectPrivate NotificationObjectPrivate; -typedef struct _ParamSpecNotificationObject ParamSpecNotificationObject; - -#define TYPE_INTERLOCKED_NOTIFICATION_OBJECT (interlocked_notification_object_get_type ()) -#define INTERLOCKED_NOTIFICATION_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObject)) -#define INTERLOCKED_NOTIFICATION_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObjectClass)) -#define IS_INTERLOCKED_NOTIFICATION_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INTERLOCKED_NOTIFICATION_OBJECT)) -#define IS_INTERLOCKED_NOTIFICATION_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INTERLOCKED_NOTIFICATION_OBJECT)) -#define INTERLOCKED_NOTIFICATION_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObjectClass)) - -typedef struct _InterlockedNotificationObject InterlockedNotificationObject; -typedef struct _InterlockedNotificationObjectClass InterlockedNotificationObjectClass; -typedef struct _InterlockedNotificationObjectPrivate InterlockedNotificationObjectPrivate; - -#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ()) -#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)) -#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) -#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE)) -#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE)) -#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) - -typedef struct _AbstractSemaphore AbstractSemaphore; -typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass; - -#define TYPE_SEMAPHORE (semaphore_get_type ()) -#define SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEMAPHORE, Semaphore)) -#define SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEMAPHORE, SemaphoreClass)) -#define IS_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEMAPHORE)) -#define IS_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEMAPHORE)) -#define SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEMAPHORE, SemaphoreClass)) - -typedef struct _Semaphore Semaphore; -typedef struct _SemaphoreClass SemaphoreClass; -#define _abstract_semaphore_unref0(var) ((var == NULL) ? NULL : (var = (abstract_semaphore_unref (var), NULL))) -typedef struct _BackgroundJobPrivate BackgroundJobPrivate; - -#define BACKGROUND_JOB_TYPE_JOB_PRIORITY (background_job_job_priority_get_type ()) - -#define BACKGROUND_JOB_TYPE_NOTIFICATION_JOB (background_job_notification_job_get_type ()) -#define BACKGROUND_JOB_NOTIFICATION_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BACKGROUND_JOB_TYPE_NOTIFICATION_JOB, BackgroundJobNotificationJob)) -#define BACKGROUND_JOB_NOTIFICATION_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BACKGROUND_JOB_TYPE_NOTIFICATION_JOB, BackgroundJobNotificationJobClass)) -#define BACKGROUND_JOB_IS_NOTIFICATION_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BACKGROUND_JOB_TYPE_NOTIFICATION_JOB)) -#define BACKGROUND_JOB_IS_NOTIFICATION_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BACKGROUND_JOB_TYPE_NOTIFICATION_JOB)) -#define BACKGROUND_JOB_NOTIFICATION_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BACKGROUND_JOB_TYPE_NOTIFICATION_JOB, BackgroundJobNotificationJobClass)) - -typedef struct _BackgroundJobNotificationJob BackgroundJobNotificationJob; -typedef struct _BackgroundJobNotificationJobClass BackgroundJobNotificationJobClass; -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL))) -#define _background_job_notification_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_notification_job_unref (var), NULL))) -#define _notification_object_unref0(var) ((var == NULL) ? NULL : (var = (notification_object_unref (var), NULL))) -typedef struct _BackgroundJobNotificationJobPrivate BackgroundJobNotificationJobPrivate; -typedef struct _BackgroundJobParamSpecNotificationJob BackgroundJobParamSpecNotificationJob; -typedef struct _ParamSpecBackgroundJob ParamSpecBackgroundJob; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef void (*CompletionCallback) (BackgroundJob* job, void* user_data); -typedef void (*CancellationCallback) (BackgroundJob* job, void* user_data); -struct _NotificationObject { - GTypeInstance parent_instance; - volatile int ref_count; - NotificationObjectPrivate * priv; -}; - -struct _NotificationObjectClass { - GTypeClass parent_class; - void (*finalize) (NotificationObject *self); -}; - -struct _ParamSpecNotificationObject { - GParamSpec parent_instance; -}; - -struct _InterlockedNotificationObject { - NotificationObject parent_instance; - InterlockedNotificationObjectPrivate * priv; -}; - -struct _InterlockedNotificationObjectClass { - NotificationObjectClass parent_class; -}; - -struct _InterlockedNotificationObjectPrivate { - Semaphore* semaphore; -}; - -typedef void (*NotificationCallback) (BackgroundJob* job, NotificationObject* user, void* user_data); -typedef enum { - BACKGROUND_JOB_JOB_PRIORITY_HIGHEST = 100, - BACKGROUND_JOB_JOB_PRIORITY_HIGH = 75, - BACKGROUND_JOB_JOB_PRIORITY_NORMAL = 50, - BACKGROUND_JOB_JOB_PRIORITY_LOW = 25, - BACKGROUND_JOB_JOB_PRIORITY_LOWEST = 0 -} BackgroundJobJobPriority; - -struct _BackgroundJob { - GTypeInstance parent_instance; - volatile int ref_count; - BackgroundJobPrivate * priv; -}; - -struct _BackgroundJobClass { - GTypeClass parent_class; - void (*finalize) (BackgroundJob *self); - void (*execute) (BackgroundJob* self); - BackgroundJobJobPriority (*get_priority) (BackgroundJob* self); -}; - -struct _BackgroundJobPrivate { - GObject* owner; - CompletionCallback callback; - gpointer callback_target; - GCancellable* cancellable; - CancellationCallback cancellation; - gpointer cancellation_target; - BackgroundJob* self; - AbstractSemaphore* semaphore; - gint completion_priority; - gint notification_priority; -}; - -struct _BackgroundJobNotificationJob { - GTypeInstance parent_instance; - volatile int ref_count; - BackgroundJobNotificationJobPrivate * priv; - NotificationCallback callback; - gpointer callback_target; - BackgroundJob* background_job; - NotificationObject* user; -}; - -struct _BackgroundJobNotificationJobClass { - GTypeClass parent_class; - void (*finalize) (BackgroundJobNotificationJob *self); -}; - -struct _BackgroundJobParamSpecNotificationJob { - GParamSpec parent_instance; -}; - -struct _ParamSpecBackgroundJob { - GParamSpec parent_instance; -}; - - -static gpointer notification_object_parent_class = NULL; -static gpointer interlocked_notification_object_parent_class = NULL; -static gpointer background_job_parent_class = NULL; -static GeeArrayList* background_job_notify_queue; -static GRecMutex __lock_background_job_notify_queue = {0}; -static GeeArrayList* background_job_notify_queue = NULL; -static gpointer background_job_notification_job_parent_class = NULL; - -gpointer background_job_ref (gpointer instance); -void background_job_unref (gpointer instance); -GParamSpec* param_spec_background_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_background_job (GValue* value, - gpointer v_object); -void value_take_background_job (GValue* value, - gpointer v_object); -gpointer value_get_background_job (const GValue* value); -GType background_job_get_type (void) G_GNUC_CONST; -gpointer notification_object_ref (gpointer instance); -void notification_object_unref (gpointer instance); -GParamSpec* param_spec_notification_object (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_notification_object (GValue* value, - gpointer v_object); -void value_take_notification_object (GValue* value, - gpointer v_object); -gpointer value_get_notification_object (const GValue* value); -GType notification_object_get_type (void) G_GNUC_CONST; -NotificationObject* notification_object_construct (GType object_type); -static void notification_object_finalize (NotificationObject * obj); -GType interlocked_notification_object_get_type (void) G_GNUC_CONST; -gpointer abstract_semaphore_ref (gpointer instance); -void abstract_semaphore_unref (gpointer instance); -GParamSpec* param_spec_abstract_semaphore (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_abstract_semaphore (GValue* value, - gpointer v_object); -void value_take_abstract_semaphore (GValue* value, - gpointer v_object); -gpointer value_get_abstract_semaphore (const GValue* value); -GType abstract_semaphore_get_type (void) G_GNUC_CONST; -GType semaphore_get_type (void) G_GNUC_CONST; -#define INTERLOCKED_NOTIFICATION_OBJECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObjectPrivate)) -Semaphore* semaphore_new (void); -Semaphore* semaphore_construct (GType object_type); -void interlocked_notification_object_internal_wait_for_completion (InterlockedNotificationObject* self); -void abstract_semaphore_wait (AbstractSemaphore* self); -void interlocked_notification_object_internal_completed (InterlockedNotificationObject* self); -void abstract_semaphore_notify (AbstractSemaphore* self); -InterlockedNotificationObject* interlocked_notification_object_construct (GType object_type); -static void interlocked_notification_object_finalize (NotificationObject * obj); -GType background_job_job_priority_get_type (void) G_GNUC_CONST; -#define BACKGROUND_JOB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_BACKGROUND_JOB, BackgroundJobPrivate)) -gint background_job_job_priority_compare (BackgroundJobJobPriority self, - BackgroundJobJobPriority other); -gint background_job_job_priority_compare_func (BackgroundJobJobPriority a, - BackgroundJobJobPriority b); -static gpointer background_job_notification_job_ref (gpointer instance); -static void background_job_notification_job_unref (gpointer instance); -static GParamSpec* background_job_param_spec_notification_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) G_GNUC_UNUSED; -static void background_job_value_set_notification_job (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static void background_job_value_take_notification_job (GValue* value, - gpointer v_object) G_GNUC_UNUSED; -static gpointer background_job_value_get_notification_job (const GValue* value) G_GNUC_UNUSED; -static GType background_job_notification_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED; -BackgroundJob* background_job_construct (GType object_type, - GObject* owner, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target, - AbstractSemaphore* completion_semaphore); -void background_job_execute (BackgroundJob* self); -static void background_job_real_execute (BackgroundJob* self); -BackgroundJobJobPriority background_job_get_priority (BackgroundJob* self); -static BackgroundJobJobPriority background_job_real_get_priority (BackgroundJob* self); -gint background_job_priority_compare_func (BackgroundJob* a, - BackgroundJob* b); -gint64 background_job_priority_comparator (void* a, - void* b); -void background_job_set_completion_priority (BackgroundJob* self, - gint priority); -void background_job_set_notification_priority (BackgroundJob* self, - gint priority); -void background_job_wait_for_completion (BackgroundJob* self); -GCancellable* background_job_get_cancellable (BackgroundJob* self); -gboolean background_job_is_cancelled (BackgroundJob* self); -void background_job_cancel (BackgroundJob* self); -void background_job_internal_notify_completion (BackgroundJob* self); -static gboolean background_job_on_notify_completion (BackgroundJob* self); -static gboolean _background_job_on_notify_completion_gsource_func (gpointer self); -void background_job_notify (BackgroundJob* self, - NotificationCallback callback, - void* callback_target, - NotificationObject* user); -static BackgroundJobNotificationJob* background_job_notification_job_new (NotificationCallback callback, - void* callback_target, - BackgroundJob* background_job, - NotificationObject* user); -static BackgroundJobNotificationJob* background_job_notification_job_construct (GType object_type, - NotificationCallback callback, - void* callback_target, - BackgroundJob* background_job, - NotificationObject* user); -static gboolean background_job_on_notification_ready (BackgroundJob* self); -static gboolean _background_job_on_notification_ready_gsource_func (gpointer self); -static void background_job_notification_job_finalize (BackgroundJobNotificationJob * obj); -static void background_job_finalize (BackgroundJob * obj); - - -NotificationObject* -notification_object_construct (GType object_type) -{ - NotificationObject* self = NULL; -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self = (NotificationObject*) g_type_create_instance (object_type); -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return self; -#line 321 "BackgroundJob.c" -} - - -static void -value_notification_object_init (GValue* value) -{ -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = NULL; -#line 330 "BackgroundJob.c" -} - - -static void -value_notification_object_free_value (GValue* value) -{ -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (value->data[0].v_pointer) { -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - notification_object_unref (value->data[0].v_pointer); -#line 341 "BackgroundJob.c" - } -} - - -static void -value_notification_object_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (src_value->data[0].v_pointer) { -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - dest_value->data[0].v_pointer = notification_object_ref (src_value->data[0].v_pointer); -#line 354 "BackgroundJob.c" - } else { -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - dest_value->data[0].v_pointer = NULL; -#line 358 "BackgroundJob.c" - } -} - - -static gpointer -value_notification_object_peek_pointer (const GValue* value) -{ -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return value->data[0].v_pointer; -#line 368 "BackgroundJob.c" -} - - -static gchar* -value_notification_object_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (collect_values[0].v_pointer) { -#line 380 "BackgroundJob.c" - NotificationObject * object; - object = collect_values[0].v_pointer; -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (object->parent_instance.g_class == NULL) { -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 387 "BackgroundJob.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 391 "BackgroundJob.c" - } -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = notification_object_ref (object); -#line 395 "BackgroundJob.c" - } else { -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = NULL; -#line 399 "BackgroundJob.c" - } -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return NULL; -#line 403 "BackgroundJob.c" -} - - -static gchar* -value_notification_object_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - NotificationObject ** object_p; - object_p = collect_values[0].v_pointer; -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (!object_p) { -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 419 "BackgroundJob.c" - } -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (!value->data[0].v_pointer) { -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - *object_p = NULL; -#line 425 "BackgroundJob.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - *object_p = value->data[0].v_pointer; -#line 429 "BackgroundJob.c" - } else { -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - *object_p = notification_object_ref (value->data[0].v_pointer); -#line 433 "BackgroundJob.c" - } -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return NULL; -#line 437 "BackgroundJob.c" -} - - -GParamSpec* -param_spec_notification_object (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecNotificationObject* spec; -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_NOTIFICATION_OBJECT), NULL); -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return G_PARAM_SPEC (spec); -#line 457 "BackgroundJob.c" -} - - -gpointer -value_get_notification_object (const GValue* value) -{ -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_NOTIFICATION_OBJECT), NULL); -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return value->data[0].v_pointer; -#line 468 "BackgroundJob.c" -} - - -void -value_set_notification_object (GValue* value, - gpointer v_object) -{ - NotificationObject * old; -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_NOTIFICATION_OBJECT)); -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - old = value->data[0].v_pointer; -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (v_object) { -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_NOTIFICATION_OBJECT)); -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = v_object; -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - notification_object_ref (value->data[0].v_pointer); -#line 491 "BackgroundJob.c" - } else { -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = NULL; -#line 495 "BackgroundJob.c" - } -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (old) { -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - notification_object_unref (old); -#line 501 "BackgroundJob.c" - } -} - - -void -value_take_notification_object (GValue* value, - gpointer v_object) -{ - NotificationObject * old; -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_NOTIFICATION_OBJECT)); -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - old = value->data[0].v_pointer; -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (v_object) { -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_NOTIFICATION_OBJECT)); -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = v_object; -#line 523 "BackgroundJob.c" - } else { -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = NULL; -#line 527 "BackgroundJob.c" - } -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (old) { -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - notification_object_unref (old); -#line 533 "BackgroundJob.c" - } -} - - -static void -notification_object_class_init (NotificationObjectClass * klass) -{ -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - notification_object_parent_class = g_type_class_peek_parent (klass); -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - ((NotificationObjectClass *) klass)->finalize = notification_object_finalize; -#line 545 "BackgroundJob.c" -} - - -static void -notification_object_instance_init (NotificationObject * self) -{ -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->ref_count = 1; -#line 554 "BackgroundJob.c" -} - - -static void -notification_object_finalize (NotificationObject * obj) -{ - NotificationObject * self; -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NOTIFICATION_OBJECT, NotificationObject); -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_signal_handlers_destroy (self); -#line 566 "BackgroundJob.c" -} - - -GType -notification_object_get_type (void) -{ - static volatile gsize notification_object_type_id__volatile = 0; - if (g_once_init_enter (¬ification_object_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_notification_object_init, value_notification_object_free_value, value_notification_object_copy_value, value_notification_object_peek_pointer, "p", value_notification_object_collect_value, "p", value_notification_object_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (NotificationObjectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) notification_object_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NotificationObject), 0, (GInstanceInitFunc) notification_object_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType notification_object_type_id; - notification_object_type_id = g_type_register_fundamental (g_type_fundamental_next (), "NotificationObject", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (¬ification_object_type_id__volatile, notification_object_type_id); - } - return notification_object_type_id__volatile; -} - - -gpointer -notification_object_ref (gpointer instance) -{ - NotificationObject * self; - self = instance; -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_atomic_int_inc (&self->ref_count); -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return instance; -#line 595 "BackgroundJob.c" -} - - -void -notification_object_unref (gpointer instance) -{ - NotificationObject * self; - self = instance; -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - NOTIFICATION_OBJECT_GET_CLASS (self)->finalize (self); -#line 34 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 610 "BackgroundJob.c" - } -} - - -void -interlocked_notification_object_internal_wait_for_completion (InterlockedNotificationObject* self) -{ - Semaphore* _tmp0_; -#line 41 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (IS_INTERLOCKED_NOTIFICATION_OBJECT (self)); -#line 42 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp0_ = self->priv->semaphore; -#line 42 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - abstract_semaphore_wait (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)); -#line 625 "BackgroundJob.c" -} - - -void -interlocked_notification_object_internal_completed (InterlockedNotificationObject* self) -{ - Semaphore* _tmp0_; -#line 46 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (IS_INTERLOCKED_NOTIFICATION_OBJECT (self)); -#line 47 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp0_ = self->priv->semaphore; -#line 47 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - abstract_semaphore_notify (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)); -#line 639 "BackgroundJob.c" -} - - -InterlockedNotificationObject* -interlocked_notification_object_construct (GType object_type) -{ - InterlockedNotificationObject* self = NULL; -#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self = (InterlockedNotificationObject*) notification_object_construct (object_type); -#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return self; -#line 651 "BackgroundJob.c" -} - - -static void -interlocked_notification_object_class_init (InterlockedNotificationObjectClass * klass) -{ -#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - interlocked_notification_object_parent_class = g_type_class_peek_parent (klass); -#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - ((NotificationObjectClass *) klass)->finalize = interlocked_notification_object_finalize; -#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_type_class_add_private (klass, sizeof (InterlockedNotificationObjectPrivate)); -#line 664 "BackgroundJob.c" -} - - -static void -interlocked_notification_object_instance_init (InterlockedNotificationObject * self) -{ - Semaphore* _tmp0_; -#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv = INTERLOCKED_NOTIFICATION_OBJECT_GET_PRIVATE (self); -#line 38 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp0_ = semaphore_new (); -#line 38 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv->semaphore = _tmp0_; -#line 678 "BackgroundJob.c" -} - - -static void -interlocked_notification_object_finalize (NotificationObject * obj) -{ - InterlockedNotificationObject * self; -#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_INTERLOCKED_NOTIFICATION_OBJECT, InterlockedNotificationObject); -#line 38 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _abstract_semaphore_unref0 (self->priv->semaphore); -#line 37 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - NOTIFICATION_OBJECT_CLASS (interlocked_notification_object_parent_class)->finalize (obj); -#line 692 "BackgroundJob.c" -} - - -GType -interlocked_notification_object_get_type (void) -{ - static volatile gsize interlocked_notification_object_type_id__volatile = 0; - if (g_once_init_enter (&interlocked_notification_object_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (InterlockedNotificationObjectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) interlocked_notification_object_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (InterlockedNotificationObject), 0, (GInstanceInitFunc) interlocked_notification_object_instance_init, NULL }; - GType interlocked_notification_object_type_id; - interlocked_notification_object_type_id = g_type_register_static (TYPE_NOTIFICATION_OBJECT, "InterlockedNotificationObject", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&interlocked_notification_object_type_id__volatile, interlocked_notification_object_type_id); - } - return interlocked_notification_object_type_id__volatile; -} - - -gint -background_job_job_priority_compare (BackgroundJobJobPriority self, - BackgroundJobJobPriority other) -{ - gint result = 0; -#line 75 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - result = ((gint) other) - ((gint) self); -#line 75 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return result; -#line 719 "BackgroundJob.c" -} - - -gint -background_job_job_priority_compare_func (BackgroundJobJobPriority a, - BackgroundJobJobPriority b) -{ - gint result = 0; -#line 79 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - result = ((gint) b) - ((gint) a); -#line 79 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return result; -#line 732 "BackgroundJob.c" -} - - -GType -background_job_job_priority_get_type (void) -{ - static volatile gsize background_job_job_priority_type_id__volatile = 0; - if (g_once_init_enter (&background_job_job_priority_type_id__volatile)) { - static const GEnumValue values[] = {{BACKGROUND_JOB_JOB_PRIORITY_HIGHEST, "BACKGROUND_JOB_JOB_PRIORITY_HIGHEST", "highest"}, {BACKGROUND_JOB_JOB_PRIORITY_HIGH, "BACKGROUND_JOB_JOB_PRIORITY_HIGH", "high"}, {BACKGROUND_JOB_JOB_PRIORITY_NORMAL, "BACKGROUND_JOB_JOB_PRIORITY_NORMAL", "normal"}, {BACKGROUND_JOB_JOB_PRIORITY_LOW, "BACKGROUND_JOB_JOB_PRIORITY_LOW", "low"}, {BACKGROUND_JOB_JOB_PRIORITY_LOWEST, "BACKGROUND_JOB_JOB_PRIORITY_LOWEST", "lowest"}, {0, NULL, NULL}}; - GType background_job_job_priority_type_id; - background_job_job_priority_type_id = g_enum_register_static ("BackgroundJobJobPriority", values); - g_once_init_leave (&background_job_job_priority_type_id__volatile, background_job_job_priority_type_id); - } - return background_job_job_priority_type_id__volatile; -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 116 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return self ? g_object_ref (self) : NULL; -#line 755 "BackgroundJob.c" -} - - -static gpointer -_abstract_semaphore_ref0 (gpointer self) -{ -#line 120 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return self ? abstract_semaphore_ref (self) : NULL; -#line 764 "BackgroundJob.c" -} - - -BackgroundJob* -background_job_construct (GType object_type, - GObject* owner, - CompletionCallback callback, - void* callback_target, - GCancellable* cancellable, - CancellationCallback cancellation, - void* cancellation_target, - AbstractSemaphore* completion_semaphore) -{ - BackgroundJob* self = NULL; - GObject* _tmp0_; - GCancellable* _tmp1_; - AbstractSemaphore* _tmp2_; -#line 113 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail ((owner == NULL) || G_IS_OBJECT (owner), NULL); -#line 113 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable), NULL); -#line 113 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail ((completion_semaphore == NULL) || IS_ABSTRACT_SEMAPHORE (completion_semaphore), NULL); -#line 113 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self = (BackgroundJob*) g_type_create_instance (object_type); -#line 116 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp0_ = _g_object_ref0 (owner); -#line 116 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _g_object_unref0 (self->priv->owner); -#line 116 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv->owner = _tmp0_; -#line 117 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv->callback = callback; -#line 117 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv->callback_target = callback_target; -#line 118 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp1_ = _g_object_ref0 (cancellable); -#line 118 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _g_object_unref0 (self->priv->cancellable); -#line 118 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv->cancellable = _tmp1_; -#line 119 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv->cancellation = cancellation; -#line 119 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv->cancellation_target = cancellation_target; -#line 120 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp2_ = _abstract_semaphore_ref0 (completion_semaphore); -#line 120 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _abstract_semaphore_unref0 (self->priv->semaphore); -#line 120 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv->semaphore = _tmp2_; -#line 113 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return self; -#line 818 "BackgroundJob.c" -} - - -static void -background_job_real_execute (BackgroundJob* self) -{ -#line 123 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_critical ("Type `%s' does not implement abstract method `background_job_execute'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 123 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return; -#line 829 "BackgroundJob.c" -} - - -void -background_job_execute (BackgroundJob* self) -{ -#line 123 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (IS_BACKGROUND_JOB (self)); -#line 123 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - BACKGROUND_JOB_GET_CLASS (self)->execute (self); -#line 840 "BackgroundJob.c" -} - - -static BackgroundJobJobPriority -background_job_real_get_priority (BackgroundJob* self) -{ - BackgroundJobJobPriority result = 0; -#line 126 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - result = BACKGROUND_JOB_JOB_PRIORITY_NORMAL; -#line 126 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return result; -#line 852 "BackgroundJob.c" -} - - -BackgroundJobJobPriority -background_job_get_priority (BackgroundJob* self) -{ -#line 125 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail (IS_BACKGROUND_JOB (self), 0); -#line 125 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return BACKGROUND_JOB_GET_CLASS (self)->get_priority (self); -#line 863 "BackgroundJob.c" -} - - -gint -background_job_priority_compare_func (BackgroundJob* a, - BackgroundJob* b) -{ - gint result = 0; -#line 130 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail (IS_BACKGROUND_JOB (a), 0); -#line 130 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail (IS_BACKGROUND_JOB (b), 0); -#line 131 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - result = background_job_job_priority_compare (background_job_get_priority (a), background_job_get_priority (b)); -#line 131 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return result; -#line 880 "BackgroundJob.c" -} - - -gint64 -background_job_priority_comparator (void* a, - void* b) -{ - gint64 result = 0LL; -#line 136 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - result = (gint64) background_job_priority_compare_func (G_TYPE_CHECK_INSTANCE_CAST (a, TYPE_BACKGROUND_JOB, BackgroundJob), G_TYPE_CHECK_INSTANCE_CAST (b, TYPE_BACKGROUND_JOB, BackgroundJob)); -#line 136 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return result; -#line 893 "BackgroundJob.c" -} - - -void -background_job_set_completion_priority (BackgroundJob* self, - gint priority) -{ -#line 140 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (IS_BACKGROUND_JOB (self)); -#line 141 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv->completion_priority = priority; -#line 905 "BackgroundJob.c" -} - - -void -background_job_set_notification_priority (BackgroundJob* self, - gint priority) -{ -#line 145 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (IS_BACKGROUND_JOB (self)); -#line 146 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv->notification_priority = priority; -#line 917 "BackgroundJob.c" -} - - -void -background_job_wait_for_completion (BackgroundJob* self) -{ - AbstractSemaphore* _tmp0_; -#line 152 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (IS_BACKGROUND_JOB (self)); -#line 153 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp0_ = self->priv->semaphore; -#line 153 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (_tmp0_ != NULL) { -#line 931 "BackgroundJob.c" - AbstractSemaphore* _tmp1_; -#line 154 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp1_ = self->priv->semaphore; -#line 154 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - abstract_semaphore_wait (_tmp1_); -#line 937 "BackgroundJob.c" - } -} - - -GCancellable* -background_job_get_cancellable (BackgroundJob* self) -{ - GCancellable* result = NULL; - GCancellable* _tmp0_; - GCancellable* _tmp1_; -#line 157 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail (IS_BACKGROUND_JOB (self), NULL); -#line 158 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp0_ = self->priv->cancellable; -#line 158 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 158 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - result = _tmp1_; -#line 158 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return result; -#line 958 "BackgroundJob.c" -} - - -gboolean -background_job_is_cancelled (BackgroundJob* self) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - GCancellable* _tmp1_; -#line 161 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail (IS_BACKGROUND_JOB (self), FALSE); -#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp1_ = self->priv->cancellable; -#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (_tmp1_ != NULL) { -#line 974 "BackgroundJob.c" - GCancellable* _tmp2_; -#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp2_ = self->priv->cancellable; -#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp0_ = g_cancellable_is_cancelled (_tmp2_); -#line 980 "BackgroundJob.c" - } else { -#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp0_ = FALSE; -#line 984 "BackgroundJob.c" - } -#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - result = _tmp0_; -#line 162 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return result; -#line 990 "BackgroundJob.c" -} - - -void -background_job_cancel (BackgroundJob* self) -{ - GCancellable* _tmp0_; -#line 165 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (IS_BACKGROUND_JOB (self)); -#line 166 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp0_ = self->priv->cancellable; -#line 166 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (_tmp0_ != NULL) { -#line 1004 "BackgroundJob.c" - GCancellable* _tmp1_; -#line 167 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp1_ = self->priv->cancellable; -#line 167 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_cancellable_cancel (_tmp1_); -#line 1010 "BackgroundJob.c" - } -} - - -static gpointer -_background_job_ref0 (gpointer self) -{ -#line 183 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return self ? background_job_ref (self) : NULL; -#line 1020 "BackgroundJob.c" -} - - -static gboolean -_background_job_on_notify_completion_gsource_func (gpointer self) -{ - gboolean result; - result = background_job_on_notify_completion ((BackgroundJob*) self); -#line 185 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return result; -#line 1031 "BackgroundJob.c" -} - - -void -background_job_internal_notify_completion (BackgroundJob* self) -{ - AbstractSemaphore* _tmp0_; - gboolean _tmp2_ = FALSE; - CompletionCallback _tmp3_; - void* _tmp3__target; - gboolean _tmp5_ = FALSE; - BackgroundJob* _tmp7_; - gint _tmp8_; -#line 171 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (IS_BACKGROUND_JOB (self)); -#line 172 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp0_ = self->priv->semaphore; -#line 172 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (_tmp0_ != NULL) { -#line 1051 "BackgroundJob.c" - AbstractSemaphore* _tmp1_; -#line 173 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp1_ = self->priv->semaphore; -#line 173 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - abstract_semaphore_notify (_tmp1_); -#line 1057 "BackgroundJob.c" - } -#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp3_ = self->priv->callback; -#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp3__target = self->priv->callback_target; -#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (_tmp3_ == NULL) { -#line 1065 "BackgroundJob.c" - CancellationCallback _tmp4_; - void* _tmp4__target; -#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp4_ = self->priv->cancellation; -#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp4__target = self->priv->cancellation_target; -#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp2_ = _tmp4_ == NULL; -#line 1074 "BackgroundJob.c" - } else { -#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp2_ = FALSE; -#line 1078 "BackgroundJob.c" - } -#line 175 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (_tmp2_) { -#line 176 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return; -#line 1084 "BackgroundJob.c" - } -#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (background_job_is_cancelled (self)) { -#line 1088 "BackgroundJob.c" - CancellationCallback _tmp6_; - void* _tmp6__target; -#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp6_ = self->priv->cancellation; -#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp6__target = self->priv->cancellation_target; -#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp5_ = _tmp6_ == NULL; -#line 1097 "BackgroundJob.c" - } else { -#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp5_ = FALSE; -#line 1101 "BackgroundJob.c" - } -#line 178 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (_tmp5_) { -#line 179 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return; -#line 1107 "BackgroundJob.c" - } -#line 183 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp7_ = _background_job_ref0 (self); -#line 183 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _background_job_unref0 (self->priv->self); -#line 183 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv->self = _tmp7_; -#line 185 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp8_ = self->priv->completion_priority; -#line 185 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_idle_add_full (_tmp8_, _background_job_on_notify_completion_gsource_func, background_job_ref (self), background_job_unref); -#line 1119 "BackgroundJob.c" -} - - -static gboolean -background_job_on_notify_completion (BackgroundJob* self) -{ - gboolean result = FALSE; -#line 188 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail (IS_BACKGROUND_JOB (self), FALSE); -#line 193 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (background_job_is_cancelled (self)) { -#line 1131 "BackgroundJob.c" - CancellationCallback _tmp0_; - void* _tmp0__target; -#line 194 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp0_ = self->priv->cancellation; -#line 194 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp0__target = self->priv->cancellation_target; -#line 194 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (_tmp0_ != NULL) { -#line 1140 "BackgroundJob.c" - CancellationCallback _tmp1_; - void* _tmp1__target; -#line 195 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp1_ = self->priv->cancellation; -#line 195 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp1__target = self->priv->cancellation_target; -#line 195 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp1_ (self, _tmp1__target); -#line 1149 "BackgroundJob.c" - } - } else { - CompletionCallback _tmp2_; - void* _tmp2__target; -#line 197 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp2_ = self->priv->callback; -#line 197 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp2__target = self->priv->callback_target; -#line 197 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (_tmp2_ != NULL) { -#line 1160 "BackgroundJob.c" - CompletionCallback _tmp3_; - void* _tmp3__target; -#line 198 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp3_ = self->priv->callback; -#line 198 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp3__target = self->priv->callback_target; -#line 198 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp3_ (self, _tmp3__target); -#line 1169 "BackgroundJob.c" - } - } -#line 202 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _background_job_unref0 (self->priv->self); -#line 202 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv->self = NULL; -#line 204 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - result = FALSE; -#line 204 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return result; -#line 1180 "BackgroundJob.c" -} - - -static gboolean -_background_job_on_notification_ready_gsource_func (gpointer self) -{ - gboolean result; - result = background_job_on_notification_ready ((BackgroundJob*) self); -#line 214 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return result; -#line 1191 "BackgroundJob.c" -} - - -static gpointer -_notification_object_ref0 (gpointer self) -{ -#line 218 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return self ? notification_object_ref (self) : NULL; -#line 1200 "BackgroundJob.c" -} - - -void -background_job_notify (BackgroundJob* self, - NotificationCallback callback, - void* callback_target, - NotificationObject* user) -{ - gint _tmp5_; - InterlockedNotificationObject* interlocked = NULL; - InterlockedNotificationObject* _tmp6_; - InterlockedNotificationObject* _tmp7_; - GError * _inner_error_ = NULL; -#line 209 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (IS_BACKGROUND_JOB (self)); -#line 209 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail ((user == NULL) || IS_NOTIFICATION_OBJECT (user)); -#line 1219 "BackgroundJob.c" - { - GeeArrayList* _tmp0_; -#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp0_ = background_job_notify_queue; -#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_rec_mutex_lock (&__lock_background_job_notify_queue); -#line 1226 "BackgroundJob.c" - { - GeeArrayList* _tmp1_; - BackgroundJobNotificationJob* _tmp2_; - BackgroundJobNotificationJob* _tmp3_; -#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp1_ = background_job_notify_queue; -#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp2_ = background_job_notification_job_new (callback, callback_target, self, user); -#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp3_ = _tmp2_; -#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp3_); -#line 211 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _background_job_notification_job_unref0 (_tmp3_); -#line 1241 "BackgroundJob.c" - } - __finally13: - { - GeeArrayList* _tmp4_; -#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp4_ = background_job_notify_queue; -#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_rec_mutex_unlock (&__lock_background_job_notify_queue); -#line 1250 "BackgroundJob.c" - } -#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_clear_error (&_inner_error_); -#line 210 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return; -#line 1260 "BackgroundJob.c" - } - } -#line 214 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp5_ = self->priv->notification_priority; -#line 214 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_idle_add_full (_tmp5_, _background_job_on_notification_ready_gsource_func, background_job_ref (self), background_job_unref); -#line 218 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp6_ = _notification_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (user, TYPE_INTERLOCKED_NOTIFICATION_OBJECT) ? ((InterlockedNotificationObject*) user) : NULL); -#line 218 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - interlocked = _tmp6_; -#line 219 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp7_ = interlocked; -#line 219 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (_tmp7_ != NULL) { -#line 1275 "BackgroundJob.c" - InterlockedNotificationObject* _tmp8_; -#line 220 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp8_ = interlocked; -#line 220 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - interlocked_notification_object_internal_wait_for_completion (_tmp8_); -#line 1281 "BackgroundJob.c" - } -#line 209 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _notification_object_unref0 (interlocked); -#line 1285 "BackgroundJob.c" -} - - -static gboolean -background_job_on_notification_ready (BackgroundJob* self) -{ - gboolean result = FALSE; - BackgroundJobNotificationJob* notification_job = NULL; - BackgroundJobNotificationJob* _tmp8_; - BackgroundJobNotificationJob* _tmp9_; - NotificationCallback _tmp10_; - void* _tmp10__target; - BackgroundJobNotificationJob* _tmp11_; - BackgroundJob* _tmp12_; - BackgroundJobNotificationJob* _tmp13_; - NotificationObject* _tmp14_; - InterlockedNotificationObject* interlocked = NULL; - BackgroundJobNotificationJob* _tmp15_; - NotificationObject* _tmp16_; - InterlockedNotificationObject* _tmp17_; - InterlockedNotificationObject* _tmp18_; - GError * _inner_error_ = NULL; -#line 223 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail (IS_BACKGROUND_JOB (self), FALSE); -#line 226 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - notification_job = NULL; -#line 1312 "BackgroundJob.c" - { - GeeArrayList* _tmp0_; -#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp0_ = background_job_notify_queue; -#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_rec_mutex_lock (&__lock_background_job_notify_queue); -#line 1319 "BackgroundJob.c" - { - GeeArrayList* _tmp1_; - gint _tmp2_; - gint _tmp3_; -#line 228 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp1_ = background_job_notify_queue; -#line 228 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp2_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 228 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp3_ = _tmp2_; -#line 228 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (_tmp3_ > 0) { -#line 1332 "BackgroundJob.c" - GeeArrayList* _tmp4_; - gpointer _tmp5_; -#line 229 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp4_ = background_job_notify_queue; -#line 229 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp5_ = gee_abstract_list_remove_at (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), 0); -#line 229 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _background_job_notification_job_unref0 (notification_job); -#line 229 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - notification_job = (BackgroundJobNotificationJob*) _tmp5_; -#line 1343 "BackgroundJob.c" - } - } - __finally14: - { - GeeArrayList* _tmp6_; -#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp6_ = background_job_notify_queue; -#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_rec_mutex_unlock (&__lock_background_job_notify_queue); -#line 1353 "BackgroundJob.c" - } -#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1357 "BackgroundJob.c" - gboolean _tmp7_ = FALSE; -#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _background_job_notification_job_unref0 (notification_job); -#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_clear_error (&_inner_error_); -#line 227 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return _tmp7_; -#line 1367 "BackgroundJob.c" - } - } -#line 231 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp8_ = notification_job; -#line 231 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _vala_assert (_tmp8_ != NULL, "notification_job != null"); -#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp9_ = notification_job; -#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp10_ = _tmp9_->callback; -#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp10__target = _tmp9_->callback_target; -#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp11_ = notification_job; -#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp12_ = _tmp11_->background_job; -#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp13_ = notification_job; -#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp14_ = _tmp13_->user; -#line 233 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp10_ (_tmp12_, _tmp14_, _tmp10__target); -#line 236 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp15_ = notification_job; -#line 236 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp16_ = _tmp15_->user; -#line 236 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp17_ = _notification_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, TYPE_INTERLOCKED_NOTIFICATION_OBJECT) ? ((InterlockedNotificationObject*) _tmp16_) : NULL); -#line 236 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - interlocked = _tmp17_; -#line 237 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp18_ = interlocked; -#line 237 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (_tmp18_ != NULL) { -#line 1402 "BackgroundJob.c" - InterlockedNotificationObject* _tmp19_; -#line 238 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp19_ = interlocked; -#line 238 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - interlocked_notification_object_internal_completed (_tmp19_); -#line 1408 "BackgroundJob.c" - } -#line 240 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - result = FALSE; -#line 240 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _notification_object_unref0 (interlocked); -#line 240 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _background_job_notification_job_unref0 (notification_job); -#line 240 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return result; -#line 1418 "BackgroundJob.c" -} - - -static BackgroundJobNotificationJob* -background_job_notification_job_construct (GType object_type, - NotificationCallback callback, - void* callback_target, - BackgroundJob* background_job, - NotificationObject* user) -{ - BackgroundJobNotificationJob* self = NULL; - BackgroundJob* _tmp0_; - NotificationObject* _tmp1_; -#line 88 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail (IS_BACKGROUND_JOB (background_job), NULL); -#line 88 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail ((user == NULL) || IS_NOTIFICATION_OBJECT (user), NULL); -#line 88 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self = (BackgroundJobNotificationJob*) g_type_create_instance (object_type); -#line 90 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->callback = callback; -#line 90 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->callback_target = callback_target; -#line 91 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp0_ = _background_job_ref0 (background_job); -#line 91 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _background_job_unref0 (self->background_job); -#line 91 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->background_job = _tmp0_; -#line 92 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp1_ = _notification_object_ref0 (user); -#line 92 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _notification_object_unref0 (self->user); -#line 92 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->user = _tmp1_; -#line 88 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return self; -#line 1456 "BackgroundJob.c" -} - - -static BackgroundJobNotificationJob* -background_job_notification_job_new (NotificationCallback callback, - void* callback_target, - BackgroundJob* background_job, - NotificationObject* user) -{ -#line 88 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return background_job_notification_job_construct (BACKGROUND_JOB_TYPE_NOTIFICATION_JOB, callback, callback_target, background_job, user); -#line 1468 "BackgroundJob.c" -} - - -static void -background_job_value_notification_job_init (GValue* value) -{ -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = NULL; -#line 1477 "BackgroundJob.c" -} - - -static void -background_job_value_notification_job_free_value (GValue* value) -{ -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (value->data[0].v_pointer) { -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - background_job_notification_job_unref (value->data[0].v_pointer); -#line 1488 "BackgroundJob.c" - } -} - - -static void -background_job_value_notification_job_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (src_value->data[0].v_pointer) { -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - dest_value->data[0].v_pointer = background_job_notification_job_ref (src_value->data[0].v_pointer); -#line 1501 "BackgroundJob.c" - } else { -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - dest_value->data[0].v_pointer = NULL; -#line 1505 "BackgroundJob.c" - } -} - - -static gpointer -background_job_value_notification_job_peek_pointer (const GValue* value) -{ -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return value->data[0].v_pointer; -#line 1515 "BackgroundJob.c" -} - - -static gchar* -background_job_value_notification_job_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (collect_values[0].v_pointer) { -#line 1527 "BackgroundJob.c" - BackgroundJobNotificationJob * object; - object = collect_values[0].v_pointer; -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (object->parent_instance.g_class == NULL) { -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1534 "BackgroundJob.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1538 "BackgroundJob.c" - } -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = background_job_notification_job_ref (object); -#line 1542 "BackgroundJob.c" - } else { -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = NULL; -#line 1546 "BackgroundJob.c" - } -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return NULL; -#line 1550 "BackgroundJob.c" -} - - -static gchar* -background_job_value_notification_job_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - BackgroundJobNotificationJob ** object_p; - object_p = collect_values[0].v_pointer; -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (!object_p) { -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1566 "BackgroundJob.c" - } -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (!value->data[0].v_pointer) { -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - *object_p = NULL; -#line 1572 "BackgroundJob.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - *object_p = value->data[0].v_pointer; -#line 1576 "BackgroundJob.c" - } else { -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - *object_p = background_job_notification_job_ref (value->data[0].v_pointer); -#line 1580 "BackgroundJob.c" - } -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return NULL; -#line 1584 "BackgroundJob.c" -} - - -static GParamSpec* -background_job_param_spec_notification_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - BackgroundJobParamSpecNotificationJob* spec; -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail (g_type_is_a (object_type, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB), NULL); -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return G_PARAM_SPEC (spec); -#line 1604 "BackgroundJob.c" -} - - -static gpointer -background_job_value_get_notification_job (const GValue* value) -{ -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB), NULL); -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return value->data[0].v_pointer; -#line 1615 "BackgroundJob.c" -} - - -static void -background_job_value_set_notification_job (GValue* value, - gpointer v_object) -{ - BackgroundJobNotificationJob * old; -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB)); -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - old = value->data[0].v_pointer; -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (v_object) { -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB)); -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = v_object; -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - background_job_notification_job_ref (value->data[0].v_pointer); -#line 1638 "BackgroundJob.c" - } else { -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = NULL; -#line 1642 "BackgroundJob.c" - } -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (old) { -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - background_job_notification_job_unref (old); -#line 1648 "BackgroundJob.c" - } -} - - -static void -background_job_value_take_notification_job (GValue* value, - gpointer v_object) -{ - BackgroundJobNotificationJob * old; -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB)); -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - old = value->data[0].v_pointer; -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (v_object) { -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB)); -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = v_object; -#line 1670 "BackgroundJob.c" - } else { -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = NULL; -#line 1674 "BackgroundJob.c" - } -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (old) { -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - background_job_notification_job_unref (old); -#line 1680 "BackgroundJob.c" - } -} - - -static void -background_job_notification_job_class_init (BackgroundJobNotificationJobClass * klass) -{ -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - background_job_notification_job_parent_class = g_type_class_peek_parent (klass); -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - ((BackgroundJobNotificationJobClass *) klass)->finalize = background_job_notification_job_finalize; -#line 1692 "BackgroundJob.c" -} - - -static void -background_job_notification_job_instance_init (BackgroundJobNotificationJob * self) -{ -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->ref_count = 1; -#line 1701 "BackgroundJob.c" -} - - -static void -background_job_notification_job_finalize (BackgroundJobNotificationJob * obj) -{ - BackgroundJobNotificationJob * self; -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, BACKGROUND_JOB_TYPE_NOTIFICATION_JOB, BackgroundJobNotificationJob); -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_signal_handlers_destroy (self); -#line 85 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _background_job_unref0 (self->background_job); -#line 86 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _notification_object_unref0 (self->user); -#line 1717 "BackgroundJob.c" -} - - -static GType -background_job_notification_job_get_type (void) -{ - static volatile gsize background_job_notification_job_type_id__volatile = 0; - if (g_once_init_enter (&background_job_notification_job_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { background_job_value_notification_job_init, background_job_value_notification_job_free_value, background_job_value_notification_job_copy_value, background_job_value_notification_job_peek_pointer, "p", background_job_value_notification_job_collect_value, "p", background_job_value_notification_job_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (BackgroundJobNotificationJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) background_job_notification_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BackgroundJobNotificationJob), 0, (GInstanceInitFunc) background_job_notification_job_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType background_job_notification_job_type_id; - background_job_notification_job_type_id = g_type_register_fundamental (g_type_fundamental_next (), "BackgroundJobNotificationJob", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&background_job_notification_job_type_id__volatile, background_job_notification_job_type_id); - } - return background_job_notification_job_type_id__volatile; -} - - -static gpointer -background_job_notification_job_ref (gpointer instance) -{ - BackgroundJobNotificationJob * self; - self = instance; -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_atomic_int_inc (&self->ref_count); -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return instance; -#line 1746 "BackgroundJob.c" -} - - -static void -background_job_notification_job_unref (gpointer instance) -{ - BackgroundJobNotificationJob * self; - self = instance; -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - BACKGROUND_JOB_NOTIFICATION_JOB_GET_CLASS (self)->finalize (self); -#line 83 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1761 "BackgroundJob.c" - } -} - - -static void -value_background_job_init (GValue* value) -{ -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = NULL; -#line 1771 "BackgroundJob.c" -} - - -static void -value_background_job_free_value (GValue* value) -{ -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (value->data[0].v_pointer) { -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - background_job_unref (value->data[0].v_pointer); -#line 1782 "BackgroundJob.c" - } -} - - -static void -value_background_job_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (src_value->data[0].v_pointer) { -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - dest_value->data[0].v_pointer = background_job_ref (src_value->data[0].v_pointer); -#line 1795 "BackgroundJob.c" - } else { -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - dest_value->data[0].v_pointer = NULL; -#line 1799 "BackgroundJob.c" - } -} - - -static gpointer -value_background_job_peek_pointer (const GValue* value) -{ -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return value->data[0].v_pointer; -#line 1809 "BackgroundJob.c" -} - - -static gchar* -value_background_job_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (collect_values[0].v_pointer) { -#line 1821 "BackgroundJob.c" - BackgroundJob * object; - object = collect_values[0].v_pointer; -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (object->parent_instance.g_class == NULL) { -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1828 "BackgroundJob.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1832 "BackgroundJob.c" - } -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = background_job_ref (object); -#line 1836 "BackgroundJob.c" - } else { -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = NULL; -#line 1840 "BackgroundJob.c" - } -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return NULL; -#line 1844 "BackgroundJob.c" -} - - -static gchar* -value_background_job_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - BackgroundJob ** object_p; - object_p = collect_values[0].v_pointer; -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (!object_p) { -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1860 "BackgroundJob.c" - } -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (!value->data[0].v_pointer) { -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - *object_p = NULL; -#line 1866 "BackgroundJob.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - *object_p = value->data[0].v_pointer; -#line 1870 "BackgroundJob.c" - } else { -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - *object_p = background_job_ref (value->data[0].v_pointer); -#line 1874 "BackgroundJob.c" - } -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return NULL; -#line 1878 "BackgroundJob.c" -} - - -GParamSpec* -param_spec_background_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecBackgroundJob* spec; -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_BACKGROUND_JOB), NULL); -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return G_PARAM_SPEC (spec); -#line 1898 "BackgroundJob.c" -} - - -gpointer -value_get_background_job (const GValue* value) -{ -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKGROUND_JOB), NULL); -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return value->data[0].v_pointer; -#line 1909 "BackgroundJob.c" -} - - -void -value_set_background_job (GValue* value, - gpointer v_object) -{ - BackgroundJob * old; -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKGROUND_JOB)); -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - old = value->data[0].v_pointer; -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (v_object) { -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BACKGROUND_JOB)); -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = v_object; -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - background_job_ref (value->data[0].v_pointer); -#line 1932 "BackgroundJob.c" - } else { -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = NULL; -#line 1936 "BackgroundJob.c" - } -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (old) { -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - background_job_unref (old); -#line 1942 "BackgroundJob.c" - } -} - - -void -value_take_background_job (GValue* value, - gpointer v_object) -{ - BackgroundJob * old; -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_BACKGROUND_JOB)); -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - old = value->data[0].v_pointer; -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (v_object) { -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_BACKGROUND_JOB)); -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = v_object; -#line 1964 "BackgroundJob.c" - } else { -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - value->data[0].v_pointer = NULL; -#line 1968 "BackgroundJob.c" - } -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (old) { -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - background_job_unref (old); -#line 1974 "BackgroundJob.c" - } -} - - -static void -background_job_class_init (BackgroundJobClass * klass) -{ - GeeArrayList* _tmp0_; -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - background_job_parent_class = g_type_class_peek_parent (klass); -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - ((BackgroundJobClass *) klass)->finalize = background_job_finalize; -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_type_class_add_private (klass, sizeof (BackgroundJobPrivate)); -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - ((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) background_job_real_execute; -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - ((BackgroundJobClass *) klass)->get_priority = (BackgroundJobJobPriority (*) (BackgroundJob *)) background_job_real_get_priority; -#line 96 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_rec_mutex_init (&__lock_background_job_notify_queue); -#line 96 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _tmp0_ = gee_array_list_new (BACKGROUND_JOB_TYPE_NOTIFICATION_JOB, (GBoxedCopyFunc) background_job_notification_job_ref, (GDestroyNotify) background_job_notification_job_unref, NULL, NULL, NULL); -#line 96 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - background_job_notify_queue = _tmp0_; -#line 1999 "BackgroundJob.c" -} - - -static void -background_job_instance_init (BackgroundJob * self) -{ -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv = BACKGROUND_JOB_GET_PRIVATE (self); -#line 102 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv->self = NULL; -#line 103 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv->semaphore = NULL; -#line 110 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv->completion_priority = G_PRIORITY_HIGH; -#line 111 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->priv->notification_priority = G_PRIORITY_DEFAULT_IDLE; -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self->ref_count = 1; -#line 2018 "BackgroundJob.c" -} - - -static void -background_job_finalize (BackgroundJob * obj) -{ - BackgroundJob * self; -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BACKGROUND_JOB, BackgroundJob); -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_signal_handlers_destroy (self); -#line 98 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _g_object_unref0 (self->priv->owner); -#line 100 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _g_object_unref0 (self->priv->cancellable); -#line 102 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _background_job_unref0 (self->priv->self); -#line 103 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - _abstract_semaphore_unref0 (self->priv->semaphore); -#line 2038 "BackgroundJob.c" -} - - -GType -background_job_get_type (void) -{ - static volatile gsize background_job_type_id__volatile = 0; - if (g_once_init_enter (&background_job_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_background_job_init, value_background_job_free_value, value_background_job_copy_value, value_background_job_peek_pointer, "p", value_background_job_collect_value, "p", value_background_job_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (BackgroundJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) background_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BackgroundJob), 0, (GInstanceInitFunc) background_job_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType background_job_type_id; - background_job_type_id = g_type_register_fundamental (g_type_fundamental_next (), "BackgroundJob", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&background_job_type_id__volatile, background_job_type_id); - } - return background_job_type_id__volatile; -} - - -gpointer -background_job_ref (gpointer instance) -{ - BackgroundJob * self; - self = instance; -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_atomic_int_inc (&self->ref_count); -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - return instance; -#line 2067 "BackgroundJob.c" -} - - -void -background_job_unref (gpointer instance) -{ - BackgroundJob * self; - self = instance; -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - BACKGROUND_JOB_GET_CLASS (self)->finalize (self); -#line 65 "/home/jens/Source/shotwell/src/threads/BackgroundJob.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2082 "BackgroundJob.c" - } -} - - - diff --git a/src/threads/Semaphore.c b/src/threads/Semaphore.c deleted file mode 100644 index 0d5bd4d..0000000 --- a/src/threads/Semaphore.c +++ /dev/null @@ -1,1267 +0,0 @@ -/* Semaphore.c generated by valac 0.40.4, the Vala compiler - * generated from Semaphore.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/* Semaphores may be used to be notified when a job is completed. This provides an alternate*/ -/* mechanism (essentially, a blocking mechanism) to the system of callbacks that BackgroundJob*/ -/* offers. They can also be used for other job-dependent notification mechanisms.*/ - - -#include -#include -#include -#include -#include - - -#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ()) -#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)) -#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) -#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE)) -#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE)) -#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) - -typedef struct _AbstractSemaphore AbstractSemaphore; -typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass; -typedef struct _AbstractSemaphorePrivate AbstractSemaphorePrivate; - -#define ABSTRACT_SEMAPHORE_TYPE_NOTIFY_ACTION (abstract_semaphore_notify_action_get_type ()) - -#define ABSTRACT_SEMAPHORE_TYPE_WAIT_ACTION (abstract_semaphore_wait_action_get_type ()) - -#define ABSTRACT_SEMAPHORE_TYPE_TYPE (abstract_semaphore_type_get_type ()) -typedef struct _ParamSpecAbstractSemaphore ParamSpecAbstractSemaphore; - -#define TYPE_SEMAPHORE (semaphore_get_type ()) -#define SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SEMAPHORE, Semaphore)) -#define SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SEMAPHORE, SemaphoreClass)) -#define IS_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SEMAPHORE)) -#define IS_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SEMAPHORE)) -#define SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SEMAPHORE, SemaphoreClass)) - -typedef struct _Semaphore Semaphore; -typedef struct _SemaphoreClass SemaphoreClass; -typedef struct _SemaphorePrivate SemaphorePrivate; - -#define TYPE_COUNTDOWN_SEMAPHORE (countdown_semaphore_get_type ()) -#define COUNTDOWN_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COUNTDOWN_SEMAPHORE, CountdownSemaphore)) -#define COUNTDOWN_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COUNTDOWN_SEMAPHORE, CountdownSemaphoreClass)) -#define IS_COUNTDOWN_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COUNTDOWN_SEMAPHORE)) -#define IS_COUNTDOWN_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COUNTDOWN_SEMAPHORE)) -#define COUNTDOWN_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COUNTDOWN_SEMAPHORE, CountdownSemaphoreClass)) - -typedef struct _CountdownSemaphore CountdownSemaphore; -typedef struct _CountdownSemaphoreClass CountdownSemaphoreClass; -typedef struct _CountdownSemaphorePrivate CountdownSemaphorePrivate; - -#define TYPE_EVENT_SEMAPHORE (event_semaphore_get_type ()) -#define EVENT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SEMAPHORE, EventSemaphore)) -#define EVENT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SEMAPHORE, EventSemaphoreClass)) -#define IS_EVENT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SEMAPHORE)) -#define IS_EVENT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SEMAPHORE)) -#define EVENT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SEMAPHORE, EventSemaphoreClass)) - -typedef struct _EventSemaphore EventSemaphore; -typedef struct _EventSemaphoreClass EventSemaphoreClass; -typedef struct _EventSemaphorePrivate EventSemaphorePrivate; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef enum { - ABSTRACT_SEMAPHORE_NOTIFY_ACTION_NONE, - ABSTRACT_SEMAPHORE_NOTIFY_ACTION_SIGNAL -} AbstractSemaphoreNotifyAction; - -typedef enum { - ABSTRACT_SEMAPHORE_WAIT_ACTION_SLEEP, - ABSTRACT_SEMAPHORE_WAIT_ACTION_READY -} AbstractSemaphoreWaitAction; - -struct _AbstractSemaphore { - GTypeInstance parent_instance; - volatile int ref_count; - AbstractSemaphorePrivate * priv; -}; - -struct _AbstractSemaphoreClass { - GTypeClass parent_class; - void (*finalize) (AbstractSemaphore *self); - AbstractSemaphoreNotifyAction (*do_notify) (AbstractSemaphore* self); - AbstractSemaphoreWaitAction (*do_wait) (AbstractSemaphore* self); - gboolean (*do_reset) (AbstractSemaphore* self); -}; - -typedef enum { - ABSTRACT_SEMAPHORE_TYPE_SERIAL, - ABSTRACT_SEMAPHORE_TYPE_BROADCAST -} AbstractSemaphoreType; - -struct _AbstractSemaphorePrivate { - AbstractSemaphoreType type; - GMutex mutex; - GCond monitor; -}; - -struct _ParamSpecAbstractSemaphore { - GParamSpec parent_instance; -}; - -struct _Semaphore { - AbstractSemaphore parent_instance; - SemaphorePrivate * priv; -}; - -struct _SemaphoreClass { - AbstractSemaphoreClass parent_class; -}; - -struct _SemaphorePrivate { - gboolean passed; -}; - -struct _CountdownSemaphore { - AbstractSemaphore parent_instance; - CountdownSemaphorePrivate * priv; -}; - -struct _CountdownSemaphoreClass { - AbstractSemaphoreClass parent_class; -}; - -struct _CountdownSemaphorePrivate { - gint total; - gint passed; -}; - -struct _EventSemaphore { - AbstractSemaphore parent_instance; - EventSemaphorePrivate * priv; -}; - -struct _EventSemaphoreClass { - AbstractSemaphoreClass parent_class; -}; - -struct _EventSemaphorePrivate { - gboolean fired; -}; - - -static gpointer abstract_semaphore_parent_class = NULL; -static gpointer semaphore_parent_class = NULL; -static gpointer countdown_semaphore_parent_class = NULL; -static gpointer event_semaphore_parent_class = NULL; - -gpointer abstract_semaphore_ref (gpointer instance); -void abstract_semaphore_unref (gpointer instance); -GParamSpec* param_spec_abstract_semaphore (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_abstract_semaphore (GValue* value, - gpointer v_object); -void value_take_abstract_semaphore (GValue* value, - gpointer v_object); -gpointer value_get_abstract_semaphore (const GValue* value); -GType abstract_semaphore_get_type (void) G_GNUC_CONST; -GType abstract_semaphore_notify_action_get_type (void) G_GNUC_CONST; -GType abstract_semaphore_wait_action_get_type (void) G_GNUC_CONST; -GType abstract_semaphore_type_get_type (void) G_GNUC_CONST; -#define ABSTRACT_SEMAPHORE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphorePrivate)) -AbstractSemaphore* abstract_semaphore_construct (GType object_type, - AbstractSemaphoreType type); -static void abstract_semaphore_trigger (AbstractSemaphore* self); -void abstract_semaphore_notify (AbstractSemaphore* self); -AbstractSemaphoreNotifyAction abstract_semaphore_do_notify (AbstractSemaphore* self); -const gchar* abstract_semaphore_notify_action_to_string (AbstractSemaphoreNotifyAction self); -static AbstractSemaphoreNotifyAction abstract_semaphore_real_do_notify (AbstractSemaphore* self); -void abstract_semaphore_wait (AbstractSemaphore* self); -AbstractSemaphoreWaitAction abstract_semaphore_do_wait (AbstractSemaphore* self); -static AbstractSemaphoreWaitAction abstract_semaphore_real_do_wait (AbstractSemaphore* self); -gboolean abstract_semaphore_reset (AbstractSemaphore* self); -gboolean abstract_semaphore_do_reset (AbstractSemaphore* self); -static gboolean abstract_semaphore_real_do_reset (AbstractSemaphore* self); -static void abstract_semaphore_finalize (AbstractSemaphore * obj); -GType semaphore_get_type (void) G_GNUC_CONST; -#define SEMAPHORE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEMAPHORE, SemaphorePrivate)) -Semaphore* semaphore_new (void); -Semaphore* semaphore_construct (GType object_type); -static AbstractSemaphoreNotifyAction semaphore_real_do_notify (AbstractSemaphore* base); -static AbstractSemaphoreWaitAction semaphore_real_do_wait (AbstractSemaphore* base); -static void semaphore_finalize (AbstractSemaphore * obj); -GType countdown_semaphore_get_type (void) G_GNUC_CONST; -#define COUNTDOWN_SEMAPHORE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_COUNTDOWN_SEMAPHORE, CountdownSemaphorePrivate)) -CountdownSemaphore* countdown_semaphore_new (gint total); -CountdownSemaphore* countdown_semaphore_construct (GType object_type, - gint total); -static AbstractSemaphoreNotifyAction countdown_semaphore_real_do_notify (AbstractSemaphore* base); -static AbstractSemaphoreWaitAction countdown_semaphore_real_do_wait (AbstractSemaphore* base); -static void countdown_semaphore_finalize (AbstractSemaphore * obj); -GType event_semaphore_get_type (void) G_GNUC_CONST; -#define EVENT_SEMAPHORE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EVENT_SEMAPHORE, EventSemaphorePrivate)) -EventSemaphore* event_semaphore_new (void); -EventSemaphore* event_semaphore_construct (GType object_type); -static AbstractSemaphoreNotifyAction event_semaphore_real_do_notify (AbstractSemaphore* base); -static AbstractSemaphoreWaitAction event_semaphore_real_do_wait (AbstractSemaphore* base); -static gboolean event_semaphore_real_do_reset (AbstractSemaphore* base); -static void event_semaphore_finalize (AbstractSemaphore * obj); -static void _vala_clear_GMutex (GMutex * mutex); -static void _vala_clear_GRecMutex (GRecMutex * mutex); -static void _vala_clear_GRWLock (GRWLock * mutex); -static void _vala_clear_GCond (GCond * mutex); - - -GType -abstract_semaphore_type_get_type (void) -{ - static volatile gsize abstract_semaphore_type_type_id__volatile = 0; - if (g_once_init_enter (&abstract_semaphore_type_type_id__volatile)) { - static const GEnumValue values[] = {{ABSTRACT_SEMAPHORE_TYPE_SERIAL, "ABSTRACT_SEMAPHORE_TYPE_SERIAL", "serial"}, {ABSTRACT_SEMAPHORE_TYPE_BROADCAST, "ABSTRACT_SEMAPHORE_TYPE_BROADCAST", "broadcast"}, {0, NULL, NULL}}; - GType abstract_semaphore_type_type_id; - abstract_semaphore_type_type_id = g_enum_register_static ("AbstractSemaphoreType", values); - g_once_init_leave (&abstract_semaphore_type_type_id__volatile, abstract_semaphore_type_type_id); - } - return abstract_semaphore_type_type_id__volatile; -} - - -GType -abstract_semaphore_notify_action_get_type (void) -{ - static volatile gsize abstract_semaphore_notify_action_type_id__volatile = 0; - if (g_once_init_enter (&abstract_semaphore_notify_action_type_id__volatile)) { - static const GEnumValue values[] = {{ABSTRACT_SEMAPHORE_NOTIFY_ACTION_NONE, "ABSTRACT_SEMAPHORE_NOTIFY_ACTION_NONE", "none"}, {ABSTRACT_SEMAPHORE_NOTIFY_ACTION_SIGNAL, "ABSTRACT_SEMAPHORE_NOTIFY_ACTION_SIGNAL", "signal"}, {0, NULL, NULL}}; - GType abstract_semaphore_notify_action_type_id; - abstract_semaphore_notify_action_type_id = g_enum_register_static ("AbstractSemaphoreNotifyAction", values); - g_once_init_leave (&abstract_semaphore_notify_action_type_id__volatile, abstract_semaphore_notify_action_type_id); - } - return abstract_semaphore_notify_action_type_id__volatile; -} - - -GType -abstract_semaphore_wait_action_get_type (void) -{ - static volatile gsize abstract_semaphore_wait_action_type_id__volatile = 0; - if (g_once_init_enter (&abstract_semaphore_wait_action_type_id__volatile)) { - static const GEnumValue values[] = {{ABSTRACT_SEMAPHORE_WAIT_ACTION_SLEEP, "ABSTRACT_SEMAPHORE_WAIT_ACTION_SLEEP", "sleep"}, {ABSTRACT_SEMAPHORE_WAIT_ACTION_READY, "ABSTRACT_SEMAPHORE_WAIT_ACTION_READY", "ready"}, {0, NULL, NULL}}; - GType abstract_semaphore_wait_action_type_id; - abstract_semaphore_wait_action_type_id = g_enum_register_static ("AbstractSemaphoreWaitAction", values); - g_once_init_leave (&abstract_semaphore_wait_action_type_id__volatile, abstract_semaphore_wait_action_type_id); - } - return abstract_semaphore_wait_action_type_id__volatile; -} - - -AbstractSemaphore* -abstract_semaphore_construct (GType object_type, - AbstractSemaphoreType type) -{ - AbstractSemaphore* self = NULL; - gboolean _tmp0_ = FALSE; -#line 30 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self = (AbstractSemaphore*) g_type_create_instance (object_type); -#line 31 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (type == ABSTRACT_SEMAPHORE_TYPE_SERIAL) { -#line 31 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp0_ = TRUE; -#line 276 "Semaphore.c" - } else { -#line 31 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp0_ = type == ABSTRACT_SEMAPHORE_TYPE_BROADCAST; -#line 280 "Semaphore.c" - } -#line 31 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _vala_assert (_tmp0_, "type == Type.SERIAL || type == Type.BROADCAST"); -#line 33 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self->priv->type = type; -#line 30 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return self; -#line 288 "Semaphore.c" -} - - -static void -abstract_semaphore_trigger (AbstractSemaphore* self) -{ - AbstractSemaphoreType _tmp0_; -#line 36 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_return_if_fail (IS_ABSTRACT_SEMAPHORE (self)); -#line 37 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp0_ = self->priv->type; -#line 37 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (_tmp0_ == ABSTRACT_SEMAPHORE_TYPE_SERIAL) { -#line 38 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_cond_signal (&self->priv->monitor); -#line 304 "Semaphore.c" - } else { -#line 40 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_cond_broadcast (&self->priv->monitor); -#line 308 "Semaphore.c" - } -} - - -void -abstract_semaphore_notify (AbstractSemaphore* self) -{ - AbstractSemaphoreNotifyAction action = 0; - AbstractSemaphoreNotifyAction _tmp0_; -#line 43 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_return_if_fail (IS_ABSTRACT_SEMAPHORE (self)); -#line 44 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_mutex_lock (&self->priv->mutex); -#line 46 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - action = abstract_semaphore_do_notify (self); -#line 47 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp0_ = action; -#line 47 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - switch (_tmp0_) { -#line 47 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - case ABSTRACT_SEMAPHORE_NOTIFY_ACTION_NONE: -#line 330 "Semaphore.c" - { -#line 50 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - break; -#line 334 "Semaphore.c" - } -#line 47 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - case ABSTRACT_SEMAPHORE_NOTIFY_ACTION_SIGNAL: -#line 338 "Semaphore.c" - { -#line 53 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - abstract_semaphore_trigger (self); -#line 54 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - break; -#line 344 "Semaphore.c" - } - default: - { - AbstractSemaphoreNotifyAction _tmp1_; - GEnumValue* _tmp2_; -#line 57 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp1_ = action; -#line 57 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp2_ = g_enum_get_value (g_type_class_ref (ABSTRACT_SEMAPHORE_TYPE_NOTIFY_ACTION), _tmp1_); -#line 57 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_error ("Semaphore.vala:57: Unknown semaphore action: %s", (_tmp2_ != NULL) ? _tmp2_->value_name : NULL); -#line 356 "Semaphore.c" - } - } -#line 60 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_mutex_unlock (&self->priv->mutex); -#line 361 "Semaphore.c" -} - - -static AbstractSemaphoreNotifyAction -abstract_semaphore_real_do_notify (AbstractSemaphore* self) -{ -#line 64 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_critical ("Type `%s' does not implement abstract method `abstract_semaphore_do_notify'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 64 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return 0; -#line 372 "Semaphore.c" -} - - -AbstractSemaphoreNotifyAction -abstract_semaphore_do_notify (AbstractSemaphore* self) -{ -#line 64 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_return_val_if_fail (IS_ABSTRACT_SEMAPHORE (self), 0); -#line 64 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return ABSTRACT_SEMAPHORE_GET_CLASS (self)->do_notify (self); -#line 383 "Semaphore.c" -} - - -void -abstract_semaphore_wait (AbstractSemaphore* self) -{ -#line 66 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_return_if_fail (IS_ABSTRACT_SEMAPHORE (self)); -#line 67 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_mutex_lock (&self->priv->mutex); -#line 69 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - while (TRUE) { -#line 69 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (!(abstract_semaphore_do_wait (self) == ABSTRACT_SEMAPHORE_WAIT_ACTION_SLEEP)) { -#line 69 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - break; -#line 400 "Semaphore.c" - } -#line 70 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_cond_wait (&self->priv->monitor, &self->priv->mutex); -#line 404 "Semaphore.c" - } -#line 72 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_mutex_unlock (&self->priv->mutex); -#line 408 "Semaphore.c" -} - - -static AbstractSemaphoreWaitAction -abstract_semaphore_real_do_wait (AbstractSemaphore* self) -{ -#line 76 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_critical ("Type `%s' does not implement abstract method `abstract_semaphore_do_wait'", g_type_name (G_TYPE_FROM_INSTANCE (self))); -#line 76 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return 0; -#line 419 "Semaphore.c" -} - - -AbstractSemaphoreWaitAction -abstract_semaphore_do_wait (AbstractSemaphore* self) -{ -#line 76 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_return_val_if_fail (IS_ABSTRACT_SEMAPHORE (self), 0); -#line 76 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return ABSTRACT_SEMAPHORE_GET_CLASS (self)->do_wait (self); -#line 430 "Semaphore.c" -} - - -gboolean -abstract_semaphore_reset (AbstractSemaphore* self) -{ - gboolean result = FALSE; - gboolean is_reset = FALSE; -#line 79 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_return_val_if_fail (IS_ABSTRACT_SEMAPHORE (self), FALSE); -#line 80 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_mutex_lock (&self->priv->mutex); -#line 81 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - is_reset = abstract_semaphore_do_reset (self); -#line 82 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_mutex_unlock (&self->priv->mutex); -#line 84 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - result = is_reset; -#line 84 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return result; -#line 451 "Semaphore.c" -} - - -static gboolean -abstract_semaphore_real_do_reset (AbstractSemaphore* self) -{ - gboolean result = FALSE; -#line 90 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - result = FALSE; -#line 90 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return result; -#line 463 "Semaphore.c" -} - - -gboolean -abstract_semaphore_do_reset (AbstractSemaphore* self) -{ -#line 89 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_return_val_if_fail (IS_ABSTRACT_SEMAPHORE (self), FALSE); -#line 89 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return ABSTRACT_SEMAPHORE_GET_CLASS (self)->do_reset (self); -#line 474 "Semaphore.c" -} - - -static void -value_abstract_semaphore_init (GValue* value) -{ -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - value->data[0].v_pointer = NULL; -#line 483 "Semaphore.c" -} - - -static void -value_abstract_semaphore_free_value (GValue* value) -{ -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (value->data[0].v_pointer) { -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - abstract_semaphore_unref (value->data[0].v_pointer); -#line 494 "Semaphore.c" - } -} - - -static void -value_abstract_semaphore_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (src_value->data[0].v_pointer) { -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - dest_value->data[0].v_pointer = abstract_semaphore_ref (src_value->data[0].v_pointer); -#line 507 "Semaphore.c" - } else { -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - dest_value->data[0].v_pointer = NULL; -#line 511 "Semaphore.c" - } -} - - -static gpointer -value_abstract_semaphore_peek_pointer (const GValue* value) -{ -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return value->data[0].v_pointer; -#line 521 "Semaphore.c" -} - - -static gchar* -value_abstract_semaphore_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (collect_values[0].v_pointer) { -#line 533 "Semaphore.c" - AbstractSemaphore * object; - object = collect_values[0].v_pointer; -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (object->parent_instance.g_class == NULL) { -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 540 "Semaphore.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 544 "Semaphore.c" - } -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - value->data[0].v_pointer = abstract_semaphore_ref (object); -#line 548 "Semaphore.c" - } else { -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - value->data[0].v_pointer = NULL; -#line 552 "Semaphore.c" - } -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return NULL; -#line 556 "Semaphore.c" -} - - -static gchar* -value_abstract_semaphore_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - AbstractSemaphore ** object_p; - object_p = collect_values[0].v_pointer; -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (!object_p) { -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 572 "Semaphore.c" - } -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (!value->data[0].v_pointer) { -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - *object_p = NULL; -#line 578 "Semaphore.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - *object_p = value->data[0].v_pointer; -#line 582 "Semaphore.c" - } else { -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - *object_p = abstract_semaphore_ref (value->data[0].v_pointer); -#line 586 "Semaphore.c" - } -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return NULL; -#line 590 "Semaphore.c" -} - - -GParamSpec* -param_spec_abstract_semaphore (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecAbstractSemaphore* spec; -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_ABSTRACT_SEMAPHORE), NULL); -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return G_PARAM_SPEC (spec); -#line 610 "Semaphore.c" -} - - -gpointer -value_get_abstract_semaphore (const GValue* value) -{ -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ABSTRACT_SEMAPHORE), NULL); -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return value->data[0].v_pointer; -#line 621 "Semaphore.c" -} - - -void -value_set_abstract_semaphore (GValue* value, - gpointer v_object) -{ - AbstractSemaphore * old; -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ABSTRACT_SEMAPHORE)); -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - old = value->data[0].v_pointer; -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (v_object) { -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_ABSTRACT_SEMAPHORE)); -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - value->data[0].v_pointer = v_object; -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - abstract_semaphore_ref (value->data[0].v_pointer); -#line 644 "Semaphore.c" - } else { -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - value->data[0].v_pointer = NULL; -#line 648 "Semaphore.c" - } -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (old) { -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - abstract_semaphore_unref (old); -#line 654 "Semaphore.c" - } -} - - -void -value_take_abstract_semaphore (GValue* value, - gpointer v_object) -{ - AbstractSemaphore * old; -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ABSTRACT_SEMAPHORE)); -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - old = value->data[0].v_pointer; -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (v_object) { -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_ABSTRACT_SEMAPHORE)); -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - value->data[0].v_pointer = v_object; -#line 676 "Semaphore.c" - } else { -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - value->data[0].v_pointer = NULL; -#line 680 "Semaphore.c" - } -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (old) { -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - abstract_semaphore_unref (old); -#line 686 "Semaphore.c" - } -} - - -static void -abstract_semaphore_class_init (AbstractSemaphoreClass * klass) -{ -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - abstract_semaphore_parent_class = g_type_class_peek_parent (klass); -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ((AbstractSemaphoreClass *) klass)->finalize = abstract_semaphore_finalize; -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_type_class_add_private (klass, sizeof (AbstractSemaphorePrivate)); -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ((AbstractSemaphoreClass *) klass)->do_notify = (AbstractSemaphoreNotifyAction (*) (AbstractSemaphore *)) abstract_semaphore_real_do_notify; -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ((AbstractSemaphoreClass *) klass)->do_wait = (AbstractSemaphoreWaitAction (*) (AbstractSemaphore *)) abstract_semaphore_real_do_wait; -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ((AbstractSemaphoreClass *) klass)->do_reset = (gboolean (*) (AbstractSemaphore *)) abstract_semaphore_real_do_reset; -#line 706 "Semaphore.c" -} - - -static void -abstract_semaphore_instance_init (AbstractSemaphore * self) -{ -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self->priv = ABSTRACT_SEMAPHORE_GET_PRIVATE (self); -#line 27 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_mutex_init (&self->priv->mutex); -#line 28 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_cond_init (&self->priv->monitor); -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self->ref_count = 1; -#line 721 "Semaphore.c" -} - - -static void -abstract_semaphore_finalize (AbstractSemaphore * obj) -{ - AbstractSemaphore * self; -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore); -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_signal_handlers_destroy (self); -#line 27 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _vala_clear_GMutex (&self->priv->mutex); -#line 28 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _vala_clear_GCond (&self->priv->monitor); -#line 737 "Semaphore.c" -} - - -GType -abstract_semaphore_get_type (void) -{ - static volatile gsize abstract_semaphore_type_id__volatile = 0; - if (g_once_init_enter (&abstract_semaphore_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_abstract_semaphore_init, value_abstract_semaphore_free_value, value_abstract_semaphore_copy_value, value_abstract_semaphore_peek_pointer, "p", value_abstract_semaphore_collect_value, "p", value_abstract_semaphore_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (AbstractSemaphoreClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) abstract_semaphore_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AbstractSemaphore), 0, (GInstanceInitFunc) abstract_semaphore_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType abstract_semaphore_type_id; - abstract_semaphore_type_id = g_type_register_fundamental (g_type_fundamental_next (), "AbstractSemaphore", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT); - g_once_init_leave (&abstract_semaphore_type_id__volatile, abstract_semaphore_type_id); - } - return abstract_semaphore_type_id__volatile; -} - - -gpointer -abstract_semaphore_ref (gpointer instance) -{ - AbstractSemaphore * self; - self = instance; -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_atomic_int_inc (&self->ref_count); -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return instance; -#line 766 "Semaphore.c" -} - - -void -abstract_semaphore_unref (gpointer instance) -{ - AbstractSemaphore * self; - self = instance; -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ABSTRACT_SEMAPHORE_GET_CLASS (self)->finalize (self); -#line 10 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 781 "Semaphore.c" - } -} - - -Semaphore* -semaphore_construct (GType object_type) -{ - Semaphore* self = NULL; -#line 98 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self = (Semaphore*) abstract_semaphore_construct (object_type, ABSTRACT_SEMAPHORE_TYPE_BROADCAST); -#line 97 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return self; -#line 794 "Semaphore.c" -} - - -Semaphore* -semaphore_new (void) -{ -#line 97 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return semaphore_construct (TYPE_SEMAPHORE); -#line 803 "Semaphore.c" -} - - -static AbstractSemaphoreNotifyAction -semaphore_real_do_notify (AbstractSemaphore* base) -{ - Semaphore * self; - AbstractSemaphoreNotifyAction result = 0; - gboolean _tmp0_; -#line 101 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEMAPHORE, Semaphore); -#line 102 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp0_ = self->priv->passed; -#line 102 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (_tmp0_) { -#line 103 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - result = ABSTRACT_SEMAPHORE_NOTIFY_ACTION_NONE; -#line 103 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return result; -#line 823 "Semaphore.c" - } -#line 105 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self->priv->passed = TRUE; -#line 107 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - result = ABSTRACT_SEMAPHORE_NOTIFY_ACTION_SIGNAL; -#line 107 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return result; -#line 831 "Semaphore.c" -} - - -static AbstractSemaphoreWaitAction -semaphore_real_do_wait (AbstractSemaphore* base) -{ - Semaphore * self; - AbstractSemaphoreWaitAction result = 0; - AbstractSemaphoreWaitAction _tmp0_ = 0; - gboolean _tmp1_; -#line 110 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEMAPHORE, Semaphore); -#line 111 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp1_ = self->priv->passed; -#line 111 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (_tmp1_) { -#line 111 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp0_ = ABSTRACT_SEMAPHORE_WAIT_ACTION_READY; -#line 850 "Semaphore.c" - } else { -#line 111 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp0_ = ABSTRACT_SEMAPHORE_WAIT_ACTION_SLEEP; -#line 854 "Semaphore.c" - } -#line 111 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - result = _tmp0_; -#line 111 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return result; -#line 860 "Semaphore.c" -} - - -static void -semaphore_class_init (SemaphoreClass * klass) -{ -#line 94 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - semaphore_parent_class = g_type_class_peek_parent (klass); -#line 94 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ((AbstractSemaphoreClass *) klass)->finalize = semaphore_finalize; -#line 94 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_type_class_add_private (klass, sizeof (SemaphorePrivate)); -#line 94 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ((AbstractSemaphoreClass *) klass)->do_notify = (AbstractSemaphoreNotifyAction (*) (AbstractSemaphore *)) semaphore_real_do_notify; -#line 94 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ((AbstractSemaphoreClass *) klass)->do_wait = (AbstractSemaphoreWaitAction (*) (AbstractSemaphore *)) semaphore_real_do_wait; -#line 877 "Semaphore.c" -} - - -static void -semaphore_instance_init (Semaphore * self) -{ -#line 94 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self->priv = SEMAPHORE_GET_PRIVATE (self); -#line 95 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self->priv->passed = FALSE; -#line 888 "Semaphore.c" -} - - -static void -semaphore_finalize (AbstractSemaphore * obj) -{ - Semaphore * self; -#line 94 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEMAPHORE, Semaphore); -#line 94 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ABSTRACT_SEMAPHORE_CLASS (semaphore_parent_class)->finalize (obj); -#line 900 "Semaphore.c" -} - - -GType -semaphore_get_type (void) -{ - static volatile gsize semaphore_type_id__volatile = 0; - if (g_once_init_enter (&semaphore_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (SemaphoreClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) semaphore_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Semaphore), 0, (GInstanceInitFunc) semaphore_instance_init, NULL }; - GType semaphore_type_id; - semaphore_type_id = g_type_register_static (TYPE_ABSTRACT_SEMAPHORE, "Semaphore", &g_define_type_info, 0); - g_once_init_leave (&semaphore_type_id__volatile, semaphore_type_id); - } - return semaphore_type_id__volatile; -} - - -CountdownSemaphore* -countdown_semaphore_construct (GType object_type, - gint total) -{ - CountdownSemaphore* self = NULL; -#line 120 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self = (CountdownSemaphore*) abstract_semaphore_construct (object_type, ABSTRACT_SEMAPHORE_TYPE_BROADCAST); -#line 122 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self->priv->total = total; -#line 119 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return self; -#line 929 "Semaphore.c" -} - - -CountdownSemaphore* -countdown_semaphore_new (gint total) -{ -#line 119 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return countdown_semaphore_construct (TYPE_COUNTDOWN_SEMAPHORE, total); -#line 938 "Semaphore.c" -} - - -static AbstractSemaphoreNotifyAction -countdown_semaphore_real_do_notify (AbstractSemaphore* base) -{ - CountdownSemaphore * self; - AbstractSemaphoreNotifyAction result = 0; - gint _tmp0_; - gint _tmp1_; - AbstractSemaphoreNotifyAction _tmp4_ = 0; - gint _tmp5_; - gint _tmp6_; - gint _tmp7_; -#line 125 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COUNTDOWN_SEMAPHORE, CountdownSemaphore); -#line 126 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp0_ = self->priv->passed; -#line 126 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp1_ = self->priv->total; -#line 126 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (_tmp0_ >= _tmp1_) { -#line 961 "Semaphore.c" - gint _tmp2_; - gint _tmp3_; -#line 127 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp2_ = self->priv->passed; -#line 127 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp3_ = self->priv->total; -#line 127 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_critical ("Semaphore.vala:127: CountdownSemaphore overrun: %d/%d", _tmp2_ + 1, _tmp3_); -#line 970 "Semaphore.c" - } -#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp5_ = self->priv->passed; -#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self->priv->passed = _tmp5_ + 1; -#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp6_ = self->priv->passed; -#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp7_ = self->priv->total; -#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (_tmp6_ >= _tmp7_) { -#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp4_ = ABSTRACT_SEMAPHORE_NOTIFY_ACTION_SIGNAL; -#line 984 "Semaphore.c" - } else { -#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp4_ = ABSTRACT_SEMAPHORE_NOTIFY_ACTION_NONE; -#line 988 "Semaphore.c" - } -#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - result = _tmp4_; -#line 129 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return result; -#line 994 "Semaphore.c" -} - - -static AbstractSemaphoreWaitAction -countdown_semaphore_real_do_wait (AbstractSemaphore* base) -{ - CountdownSemaphore * self; - AbstractSemaphoreWaitAction result = 0; - AbstractSemaphoreWaitAction _tmp0_ = 0; - gint _tmp1_; - gint _tmp2_; -#line 132 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_COUNTDOWN_SEMAPHORE, CountdownSemaphore); -#line 133 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp1_ = self->priv->passed; -#line 133 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp2_ = self->priv->total; -#line 133 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (_tmp1_ < _tmp2_) { -#line 133 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp0_ = ABSTRACT_SEMAPHORE_WAIT_ACTION_SLEEP; -#line 1016 "Semaphore.c" - } else { -#line 133 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp0_ = ABSTRACT_SEMAPHORE_WAIT_ACTION_READY; -#line 1020 "Semaphore.c" - } -#line 133 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - result = _tmp0_; -#line 133 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return result; -#line 1026 "Semaphore.c" -} - - -static void -countdown_semaphore_class_init (CountdownSemaphoreClass * klass) -{ -#line 115 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - countdown_semaphore_parent_class = g_type_class_peek_parent (klass); -#line 115 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ((AbstractSemaphoreClass *) klass)->finalize = countdown_semaphore_finalize; -#line 115 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_type_class_add_private (klass, sizeof (CountdownSemaphorePrivate)); -#line 115 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ((AbstractSemaphoreClass *) klass)->do_notify = (AbstractSemaphoreNotifyAction (*) (AbstractSemaphore *)) countdown_semaphore_real_do_notify; -#line 115 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ((AbstractSemaphoreClass *) klass)->do_wait = (AbstractSemaphoreWaitAction (*) (AbstractSemaphore *)) countdown_semaphore_real_do_wait; -#line 1043 "Semaphore.c" -} - - -static void -countdown_semaphore_instance_init (CountdownSemaphore * self) -{ -#line 115 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self->priv = COUNTDOWN_SEMAPHORE_GET_PRIVATE (self); -#line 117 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self->priv->passed = 0; -#line 1054 "Semaphore.c" -} - - -static void -countdown_semaphore_finalize (AbstractSemaphore * obj) -{ - CountdownSemaphore * self; -#line 115 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COUNTDOWN_SEMAPHORE, CountdownSemaphore); -#line 115 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ABSTRACT_SEMAPHORE_CLASS (countdown_semaphore_parent_class)->finalize (obj); -#line 1066 "Semaphore.c" -} - - -GType -countdown_semaphore_get_type (void) -{ - static volatile gsize countdown_semaphore_type_id__volatile = 0; - if (g_once_init_enter (&countdown_semaphore_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (CountdownSemaphoreClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) countdown_semaphore_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CountdownSemaphore), 0, (GInstanceInitFunc) countdown_semaphore_instance_init, NULL }; - GType countdown_semaphore_type_id; - countdown_semaphore_type_id = g_type_register_static (TYPE_ABSTRACT_SEMAPHORE, "CountdownSemaphore", &g_define_type_info, 0); - g_once_init_leave (&countdown_semaphore_type_id__volatile, countdown_semaphore_type_id); - } - return countdown_semaphore_type_id__volatile; -} - - -EventSemaphore* -event_semaphore_construct (GType object_type) -{ - EventSemaphore* self = NULL; -#line 141 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self = (EventSemaphore*) abstract_semaphore_construct (object_type, ABSTRACT_SEMAPHORE_TYPE_BROADCAST); -#line 140 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return self; -#line 1092 "Semaphore.c" -} - - -EventSemaphore* -event_semaphore_new (void) -{ -#line 140 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return event_semaphore_construct (TYPE_EVENT_SEMAPHORE); -#line 1101 "Semaphore.c" -} - - -static AbstractSemaphoreNotifyAction -event_semaphore_real_do_notify (AbstractSemaphore* base) -{ - EventSemaphore * self; - AbstractSemaphoreNotifyAction result = 0; -#line 144 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_SEMAPHORE, EventSemaphore); -#line 145 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self->priv->fired = TRUE; -#line 147 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - result = ABSTRACT_SEMAPHORE_NOTIFY_ACTION_SIGNAL; -#line 147 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return result; -#line 1118 "Semaphore.c" -} - - -static AbstractSemaphoreWaitAction -event_semaphore_real_do_wait (AbstractSemaphore* base) -{ - EventSemaphore * self; - AbstractSemaphoreWaitAction result = 0; - AbstractSemaphoreWaitAction _tmp0_ = 0; - gboolean _tmp1_; -#line 150 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_SEMAPHORE, EventSemaphore); -#line 151 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp1_ = self->priv->fired; -#line 151 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - if (_tmp1_) { -#line 151 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp0_ = ABSTRACT_SEMAPHORE_WAIT_ACTION_READY; -#line 1137 "Semaphore.c" - } else { -#line 151 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - _tmp0_ = ABSTRACT_SEMAPHORE_WAIT_ACTION_SLEEP; -#line 1141 "Semaphore.c" - } -#line 151 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - result = _tmp0_; -#line 151 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return result; -#line 1147 "Semaphore.c" -} - - -static gboolean -event_semaphore_real_do_reset (AbstractSemaphore* base) -{ - EventSemaphore * self; - gboolean result = FALSE; -#line 154 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_EVENT_SEMAPHORE, EventSemaphore); -#line 155 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self->priv->fired = FALSE; -#line 157 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - result = TRUE; -#line 157 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - return result; -#line 1164 "Semaphore.c" -} - - -static void -event_semaphore_class_init (EventSemaphoreClass * klass) -{ -#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - event_semaphore_parent_class = g_type_class_peek_parent (klass); -#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ((AbstractSemaphoreClass *) klass)->finalize = event_semaphore_finalize; -#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - g_type_class_add_private (klass, sizeof (EventSemaphorePrivate)); -#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ((AbstractSemaphoreClass *) klass)->do_notify = (AbstractSemaphoreNotifyAction (*) (AbstractSemaphore *)) event_semaphore_real_do_notify; -#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ((AbstractSemaphoreClass *) klass)->do_wait = (AbstractSemaphoreWaitAction (*) (AbstractSemaphore *)) event_semaphore_real_do_wait; -#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ((AbstractSemaphoreClass *) klass)->do_reset = (gboolean (*) (AbstractSemaphore *)) event_semaphore_real_do_reset; -#line 1183 "Semaphore.c" -} - - -static void -event_semaphore_instance_init (EventSemaphore * self) -{ -#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self->priv = EVENT_SEMAPHORE_GET_PRIVATE (self); -#line 138 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self->priv->fired = FALSE; -#line 1194 "Semaphore.c" -} - - -static void -event_semaphore_finalize (AbstractSemaphore * obj) -{ - EventSemaphore * self; -#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EVENT_SEMAPHORE, EventSemaphore); -#line 137 "/home/jens/Source/shotwell/src/threads/Semaphore.vala" - ABSTRACT_SEMAPHORE_CLASS (event_semaphore_parent_class)->finalize (obj); -#line 1206 "Semaphore.c" -} - - -GType -event_semaphore_get_type (void) -{ - static volatile gsize event_semaphore_type_id__volatile = 0; - if (g_once_init_enter (&event_semaphore_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (EventSemaphoreClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) event_semaphore_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EventSemaphore), 0, (GInstanceInitFunc) event_semaphore_instance_init, NULL }; - GType event_semaphore_type_id; - event_semaphore_type_id = g_type_register_static (TYPE_ABSTRACT_SEMAPHORE, "EventSemaphore", &g_define_type_info, 0); - g_once_init_leave (&event_semaphore_type_id__volatile, event_semaphore_type_id); - } - return event_semaphore_type_id__volatile; -} - - -static void -_vala_clear_GMutex (GMutex * mutex) -{ - GMutex zero_mutex = { 0 }; - if (memcmp (mutex, &zero_mutex, sizeof (GMutex))) { - g_mutex_clear (mutex); - memset (mutex, 0, sizeof (GMutex)); - } -} - - -static void -_vala_clear_GRecMutex (GRecMutex * mutex) -{ - GRecMutex zero_mutex = { 0 }; - if (memcmp (mutex, &zero_mutex, sizeof (GRecMutex))) { - g_rec_mutex_clear (mutex); - memset (mutex, 0, sizeof (GRecMutex)); - } -} - - -static void -_vala_clear_GRWLock (GRWLock * mutex) -{ - GRWLock zero_mutex = { 0 }; - if (memcmp (mutex, &zero_mutex, sizeof (GRWLock))) { - g_rw_lock_clear (mutex); - memset (mutex, 0, sizeof (GRWLock)); - } -} - - -static void -_vala_clear_GCond (GCond * mutex) -{ - GCond zero_mutex = { 0 }; - if (memcmp (mutex, &zero_mutex, sizeof (GCond))) { - g_cond_clear (mutex); - memset (mutex, 0, sizeof (GCond)); - } -} - - - diff --git a/src/threads/Threads.c b/src/threads/Threads.c deleted file mode 100644 index 369492b..0000000 --- a/src/threads/Threads.c +++ /dev/null @@ -1,33 +0,0 @@ -/* Threads.c generated by valac 0.40.4, the Vala compiler - * generated from Threads.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include - - - - -void threads_init (GError** error); -void threads_terminate (void); - - -void -threads_init (GError** error) -{ -} - - -void -threads_terminate (void) -{ -} - - - diff --git a/src/threads/Workers.c b/src/threads/Workers.c deleted file mode 100644 index 4f250d1..0000000 --- a/src/threads/Workers.c +++ /dev/null @@ -1,1159 +0,0 @@ -/* Workers.c generated by valac 0.40.4, the Vala compiler - * generated from Workers.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include - - -#define TYPE_SORTED_LIST (sorted_list_get_type ()) -#define SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SORTED_LIST, SortedList)) -#define SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SORTED_LIST, SortedListClass)) -#define IS_SORTED_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SORTED_LIST)) -#define IS_SORTED_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SORTED_LIST)) -#define SORTED_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SORTED_LIST, SortedListClass)) - -typedef struct _SortedList SortedList; -typedef struct _SortedListClass SortedListClass; -typedef struct _SortedListPrivate SortedListPrivate; - -#define TYPE_BACKGROUND_JOB_BATCH (background_job_batch_get_type ()) -#define BACKGROUND_JOB_BATCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB_BATCH, BackgroundJobBatch)) -#define BACKGROUND_JOB_BATCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB_BATCH, BackgroundJobBatchClass)) -#define IS_BACKGROUND_JOB_BATCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB_BATCH)) -#define IS_BACKGROUND_JOB_BATCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB_BATCH)) -#define BACKGROUND_JOB_BATCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB_BATCH, BackgroundJobBatchClass)) - -typedef struct _BackgroundJobBatch BackgroundJobBatch; -typedef struct _BackgroundJobBatchClass BackgroundJobBatchClass; -typedef struct _BackgroundJobBatchPrivate BackgroundJobBatchPrivate; -enum { - BACKGROUND_JOB_BATCH_0_PROPERTY, - BACKGROUND_JOB_BATCH_NUM_PROPERTIES -}; -static GParamSpec* background_job_batch_properties[BACKGROUND_JOB_BATCH_NUM_PROPERTIES]; - -#define TYPE_BACKGROUND_JOB (background_job_get_type ()) -#define BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKGROUND_JOB, BackgroundJob)) -#define BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKGROUND_JOB, BackgroundJobClass)) -#define IS_BACKGROUND_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKGROUND_JOB)) -#define IS_BACKGROUND_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKGROUND_JOB)) -#define BACKGROUND_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKGROUND_JOB, BackgroundJobClass)) - -typedef struct _BackgroundJob BackgroundJob; -typedef struct _BackgroundJobClass BackgroundJobClass; - -#define TYPE_WORKERS (workers_get_type ()) -#define WORKERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WORKERS, Workers)) -#define WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WORKERS, WorkersClass)) -#define IS_WORKERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WORKERS)) -#define IS_WORKERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WORKERS)) -#define WORKERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WORKERS, WorkersClass)) - -typedef struct _Workers Workers; -typedef struct _WorkersClass WorkersClass; -typedef struct _WorkersPrivate WorkersPrivate; - -#define TYPE_ABSTRACT_SEMAPHORE (abstract_semaphore_get_type ()) -#define ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)) -#define ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) -#define IS_ABSTRACT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ABSTRACT_SEMAPHORE)) -#define IS_ABSTRACT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ABSTRACT_SEMAPHORE)) -#define ABSTRACT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphoreClass)) - -typedef struct _AbstractSemaphore AbstractSemaphore; -typedef struct _AbstractSemaphoreClass AbstractSemaphoreClass; - -#define TYPE_EVENT_SEMAPHORE (event_semaphore_get_type ()) -#define EVENT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EVENT_SEMAPHORE, EventSemaphore)) -#define EVENT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EVENT_SEMAPHORE, EventSemaphoreClass)) -#define IS_EVENT_SEMAPHORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EVENT_SEMAPHORE)) -#define IS_EVENT_SEMAPHORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_SEMAPHORE)) -#define EVENT_SEMAPHORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EVENT_SEMAPHORE, EventSemaphoreClass)) - -typedef struct _EventSemaphore EventSemaphore; -typedef struct _EventSemaphoreClass EventSemaphoreClass; -#define _g_thread_pool_free0(var) ((var == NULL) ? NULL : (var = (g_thread_pool_free (var, FALSE, TRUE), NULL))) -#define _g_async_queue_unref0(var) ((var == NULL) ? NULL : (var = (g_async_queue_unref (var), NULL))) -#define _abstract_semaphore_unref0(var) ((var == NULL) ? NULL : (var = (abstract_semaphore_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -#define _background_job_unref0(var) ((var == NULL) ? NULL : (var = (background_job_unref (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -typedef struct _ParamSpecWorkers ParamSpecWorkers; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _SortedList { - GObject parent_instance; - SortedListPrivate * priv; -}; - -struct _SortedListClass { - GObjectClass parent_class; -}; - -struct _BackgroundJobBatch { - SortedList parent_instance; - BackgroundJobBatchPrivate * priv; -}; - -struct _BackgroundJobBatchClass { - SortedListClass parent_class; -}; - -typedef gint64 (*Comparator) (void* a, void* b, void* user_data); -struct _Workers { - GTypeInstance parent_instance; - volatile int ref_count; - WorkersPrivate * priv; -}; - -struct _WorkersClass { - GTypeClass parent_class; - void (*finalize) (Workers *self); -}; - -struct _WorkersPrivate { - GThreadPool* thread_pool; - GAsyncQueue* queue; - GRecMutex __lock_queue; - EventSemaphore* empty_event; - gint enqueued; -}; - -struct _ParamSpecWorkers { - GParamSpec parent_instance; -}; - - -static gpointer background_job_batch_parent_class = NULL; -static gpointer workers_parent_class = NULL; - -GType sorted_list_get_type (void) G_GNUC_CONST; -GType background_job_batch_get_type (void) G_GNUC_CONST; -BackgroundJobBatch* background_job_batch_new (void); -BackgroundJobBatch* background_job_batch_construct (GType object_type); -gint64 background_job_priority_comparator (void* a, - void* b); -static gint64 _background_job_priority_comparator_comparator (void* a, - void* b, - gpointer self); -SortedList* sorted_list_new (GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - Comparator cmp, - void* cmp_target); -SortedList* sorted_list_construct (GType object_type, - GType g_type, - GBoxedCopyFunc g_dup_func, - GDestroyNotify g_destroy_func, - Comparator cmp, - void* cmp_target); -gpointer background_job_ref (gpointer instance); -void background_job_unref (gpointer instance); -GParamSpec* param_spec_background_job (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_background_job (GValue* value, - gpointer v_object); -void value_take_background_job (GValue* value, - gpointer v_object); -gpointer value_get_background_job (const GValue* value); -GType background_job_get_type (void) G_GNUC_CONST; -gpointer workers_ref (gpointer instance); -void workers_unref (gpointer instance); -GParamSpec* param_spec_workers (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_workers (GValue* value, - gpointer v_object); -void value_take_workers (GValue* value, - gpointer v_object); -gpointer value_get_workers (const GValue* value); -GType workers_get_type (void) G_GNUC_CONST; -gpointer abstract_semaphore_ref (gpointer instance); -void abstract_semaphore_unref (gpointer instance); -GParamSpec* param_spec_abstract_semaphore (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_abstract_semaphore (GValue* value, - gpointer v_object); -void value_take_abstract_semaphore (GValue* value, - gpointer v_object); -gpointer value_get_abstract_semaphore (const GValue* value); -GType abstract_semaphore_get_type (void) G_GNUC_CONST; -GType event_semaphore_get_type (void) G_GNUC_CONST; -#define WORKERS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_WORKERS, WorkersPrivate)) -static void _background_job_unref0_ (gpointer var); -EventSemaphore* event_semaphore_new (void); -EventSemaphore* event_semaphore_construct (GType object_type); -#define WORKERS_UNLIMITED_THREADS -1 -Workers* workers_new (guint max_threads, - gboolean exclusive); -Workers* workers_construct (GType object_type, - guint max_threads, - gboolean exclusive); -void abstract_semaphore_notify (AbstractSemaphore* self); -static void workers_thread_start (Workers* self, - void* ignored); -static void _workers_thread_start_gfunc (gpointer data, - gpointer self); -guint workers_threads_per_cpu (gint per, - gint max); -guint workers_thread_per_cpu_minus_one (void); -void workers_enqueue (Workers* self, - BackgroundJob* job); -gboolean abstract_semaphore_reset (AbstractSemaphore* self); -gint background_job_priority_compare_func (BackgroundJob* a, - BackgroundJob* b); -static gint _background_job_priority_compare_func_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self); -void workers_enqueue_many (Workers* self, - BackgroundJobBatch* batch); -void workers_wait_for_empty_queue (Workers* self); -void abstract_semaphore_wait (AbstractSemaphore* self); -gint workers_get_pending_job_count (Workers* self); -gboolean background_job_is_cancelled (BackgroundJob* self); -void background_job_execute (BackgroundJob* self); -void background_job_internal_notify_completion (BackgroundJob* self); -static void workers_finalize (Workers * obj); - - -static gint64 -_background_job_priority_comparator_comparator (void* a, - void* b, - gpointer self) -{ - gint64 result; - result = background_job_priority_comparator (a, b); -#line 10 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return result; -#line 249 "Workers.c" -} - - -BackgroundJobBatch* -background_job_batch_construct (GType object_type) -{ - BackgroundJobBatch * self = NULL; -#line 10 "/home/jens/Source/shotwell/src/threads/Workers.vala" - self = (BackgroundJobBatch*) sorted_list_construct (object_type, TYPE_BACKGROUND_JOB, (GBoxedCopyFunc) background_job_ref, (GDestroyNotify) background_job_unref, _background_job_priority_comparator_comparator, NULL); -#line 9 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return self; -#line 261 "Workers.c" -} - - -BackgroundJobBatch* -background_job_batch_new (void) -{ -#line 9 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return background_job_batch_construct (TYPE_BACKGROUND_JOB_BATCH); -#line 270 "Workers.c" -} - - -static void -background_job_batch_class_init (BackgroundJobBatchClass * klass) -{ -#line 8 "/home/jens/Source/shotwell/src/threads/Workers.vala" - background_job_batch_parent_class = g_type_class_peek_parent (klass); -#line 279 "Workers.c" -} - - -static void -background_job_batch_instance_init (BackgroundJobBatch * self) -{ -} - - -GType -background_job_batch_get_type (void) -{ - static volatile gsize background_job_batch_type_id__volatile = 0; - if (g_once_init_enter (&background_job_batch_type_id__volatile)) { - static const GTypeInfo g_define_type_info = { sizeof (BackgroundJobBatchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) background_job_batch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BackgroundJobBatch), 0, (GInstanceInitFunc) background_job_batch_instance_init, NULL }; - GType background_job_batch_type_id; - background_job_batch_type_id = g_type_register_static (TYPE_SORTED_LIST, "BackgroundJobBatch", &g_define_type_info, 0); - g_once_init_leave (&background_job_batch_type_id__volatile, background_job_batch_type_id); - } - return background_job_batch_type_id__volatile; -} - - -static void -_background_job_unref0_ (gpointer var) -{ -#line 19 "/home/jens/Source/shotwell/src/threads/Workers.vala" - (var == NULL) ? NULL : (var = (background_job_unref (var), NULL)); -#line 308 "Workers.c" -} - - -static void -_workers_thread_start_gfunc (gpointer data, - gpointer self) -{ -#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala" - workers_thread_start ((Workers*) self, data); -#line 318 "Workers.c" -} - - -Workers* -workers_construct (GType object_type, - guint max_threads, - gboolean exclusive) -{ - Workers* self = NULL; - gboolean _tmp0_ = FALSE; - EventSemaphore* _tmp1_; - GError * _inner_error_ = NULL; -#line 23 "/home/jens/Source/shotwell/src/threads/Workers.vala" - self = (Workers*) g_type_create_instance (object_type); -#line 24 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (max_threads <= ((guint) 0)) { -#line 24 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp0_ = max_threads != ((guint) WORKERS_UNLIMITED_THREADS); -#line 337 "Workers.c" - } else { -#line 24 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp0_ = FALSE; -#line 341 "Workers.c" - } -#line 24 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (_tmp0_) { -#line 25 "/home/jens/Source/shotwell/src/threads/Workers.vala" - max_threads = (guint) 1; -#line 347 "Workers.c" - } -#line 28 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp1_ = self->priv->empty_event; -#line 28 "/home/jens/Source/shotwell/src/threads/Workers.vala" - abstract_semaphore_notify (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)); -#line 353 "Workers.c" - { - GThreadPool* _tmp2_ = NULL; - GThreadPool* _tmp3_; - GThreadPool* _tmp4_; -#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp3_ = g_thread_pool_new (_workers_thread_start_gfunc, self, (gint) max_threads, exclusive, &_inner_error_); -#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp2_ = _tmp3_; -#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (_inner_error_->domain == G_THREAD_ERROR) { -#line 366 "Workers.c" - goto __catch8_g_thread_error; - } -#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_clear_error (&_inner_error_); -#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return NULL; -#line 375 "Workers.c" - } -#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp4_ = _tmp2_; -#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp2_ = NULL; -#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _g_thread_pool_free0 (self->priv->thread_pool); -#line 31 "/home/jens/Source/shotwell/src/threads/Workers.vala" - self->priv->thread_pool = _tmp4_; -#line 30 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _g_thread_pool_free0 (_tmp2_); -#line 387 "Workers.c" - } - goto __finally8; - __catch8_g_thread_error: - { - GError* err = NULL; - const gchar* _tmp5_; -#line 30 "/home/jens/Source/shotwell/src/threads/Workers.vala" - err = _inner_error_; -#line 30 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _inner_error_ = NULL; -#line 33 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp5_ = err->message; -#line 33 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_error ("Workers.vala:33: Unable to create thread pool: %s", _tmp5_); -#line 30 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _g_error_free0 (err); -#line 404 "Workers.c" - } - __finally8: -#line 30 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 30 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 30 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_clear_error (&_inner_error_); -#line 30 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return NULL; -#line 415 "Workers.c" - } -#line 23 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return self; -#line 419 "Workers.c" -} - - -Workers* -workers_new (guint max_threads, - gboolean exclusive) -{ -#line 23 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return workers_construct (TYPE_WORKERS, max_threads, exclusive); -#line 429 "Workers.c" -} - - -guint -workers_threads_per_cpu (gint per, - gint max) -{ - guint result = 0U; - guint count = 0U; - guint _tmp0_ = 0U; - guint _tmp3_; - guint _tmp4_; -#line 37 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _vala_return_val_if_fail (per > 0, "per > 0", 0U); -#line 38 "/home/jens/Source/shotwell/src/threads/Workers.vala" - count = g_get_num_processors () * per; -#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (max < 0) { -#line 448 "Workers.c" - guint _tmp1_; -#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp1_ = count; -#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp0_ = _tmp1_; -#line 454 "Workers.c" - } else { - guint _tmp2_; -#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp2_ = count; -#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp0_ = CLAMP (_tmp2_, (guint) 0, (guint) max); -#line 461 "Workers.c" - } -#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala" - result = _tmp0_; -#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp3_ = result; -#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _vala_warn_if_fail (_tmp3_ > ((guint) 0), "result > 0"); -#line 40 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return result; -#line 471 "Workers.c" -} - - -guint -workers_thread_per_cpu_minus_one (void) -{ - guint result = 0U; - guint _tmp0_; - guint _tmp1_; -#line 46 "/home/jens/Source/shotwell/src/threads/Workers.vala" - result = CLAMP (g_get_num_processors () - 1, (guint) 1, (guint) G_MAXINT); -#line 46 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp0_ = result; -#line 46 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _vala_warn_if_fail (_tmp0_ > ((guint) 0), "result > 0"); -#line 46 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return result; -#line 489 "Workers.c" -} - - -static gpointer -_background_job_ref0 (gpointer self) -{ -#line 55 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return self ? background_job_ref (self) : NULL; -#line 498 "Workers.c" -} - - -static gint -_background_job_priority_compare_func_gcompare_data_func (gconstpointer a, - gconstpointer b, - gpointer self) -{ - gint result; - result = background_job_priority_compare_func ((BackgroundJob*) a, (BackgroundJob*) b); -#line 55 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return result; -#line 511 "Workers.c" -} - - -void -workers_enqueue (Workers* self, - BackgroundJob* job) -{ - EventSemaphore* _tmp0_; - GError * _inner_error_ = NULL; -#line 51 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_return_if_fail (IS_WORKERS (self)); -#line 51 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_return_if_fail (IS_BACKGROUND_JOB (job)); -#line 52 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp0_ = self->priv->empty_event; -#line 52 "/home/jens/Source/shotwell/src/threads/Workers.vala" - abstract_semaphore_reset (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)); -#line 529 "Workers.c" - { - GAsyncQueue* _tmp1_; -#line 54 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp1_ = self->priv->queue; -#line 54 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_rec_mutex_lock (&self->priv->__lock_queue); -#line 536 "Workers.c" - { - GAsyncQueue* _tmp2_; - BackgroundJob* _tmp3_; - gint _tmp4_; -#line 55 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp2_ = self->priv->queue; -#line 55 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp3_ = _background_job_ref0 (job); -#line 55 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_async_queue_push_sorted (_tmp2_, _tmp3_, _background_job_priority_compare_func_gcompare_data_func, NULL); -#line 56 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp4_ = self->priv->enqueued; -#line 56 "/home/jens/Source/shotwell/src/threads/Workers.vala" - self->priv->enqueued = _tmp4_ + 1; -#line 551 "Workers.c" - } - __finally9: - { - GAsyncQueue* _tmp5_; -#line 54 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp5_ = self->priv->queue; -#line 54 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_rec_mutex_unlock (&self->priv->__lock_queue); -#line 560 "Workers.c" - } -#line 54 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 54 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 54 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_clear_error (&_inner_error_); -#line 54 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return; -#line 570 "Workers.c" - } - } - { - GThreadPool* _tmp6_; -#line 60 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp6_ = self->priv->thread_pool; -#line 60 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_thread_pool_push (_tmp6_, job, &_inner_error_); -#line 60 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 60 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (_inner_error_->domain == G_THREAD_ERROR) { -#line 583 "Workers.c" - goto __catch10_g_thread_error; - } -#line 60 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 60 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_clear_error (&_inner_error_); -#line 60 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return; -#line 592 "Workers.c" - } - } - goto __finally10; - __catch10_g_thread_error: - { - GError* err = NULL; - GError* _tmp7_; - const gchar* _tmp8_; -#line 59 "/home/jens/Source/shotwell/src/threads/Workers.vala" - err = _inner_error_; -#line 59 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _inner_error_ = NULL; -#line 64 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp7_ = err; -#line 64 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp8_ = _tmp7_->message; -#line 64 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_warning ("Workers.vala:64: Unable to create worker thread: %s", _tmp8_); -#line 59 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _g_error_free0 (err); -#line 613 "Workers.c" - } - __finally10: -#line 59 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 59 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 59 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_clear_error (&_inner_error_); -#line 59 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return; -#line 624 "Workers.c" - } -} - - -void -workers_enqueue_many (Workers* self, - BackgroundJobBatch* batch) -{ -#line 68 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_return_if_fail (IS_WORKERS (self)); -#line 68 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_return_if_fail (IS_BACKGROUND_JOB_BATCH (batch)); -#line 637 "Workers.c" - { - GeeIterator* _job_it = NULL; - GeeIterator* _tmp0_; -#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (batch, GEE_TYPE_ITERABLE, GeeIterable)); -#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _job_it = _tmp0_; -#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala" - while (TRUE) { -#line 647 "Workers.c" - GeeIterator* _tmp1_; - BackgroundJob* job = NULL; - GeeIterator* _tmp2_; - gpointer _tmp3_; - BackgroundJob* _tmp4_; -#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp1_ = _job_it; -#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (!gee_iterator_next (_tmp1_)) { -#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala" - break; -#line 659 "Workers.c" - } -#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp2_ = _job_it; -#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp3_ = gee_iterator_get (_tmp2_); -#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala" - job = (BackgroundJob*) _tmp3_; -#line 70 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp4_ = job; -#line 70 "/home/jens/Source/shotwell/src/threads/Workers.vala" - workers_enqueue (self, _tmp4_); -#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _background_job_unref0 (job); -#line 673 "Workers.c" - } -#line 69 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _g_object_unref0 (_job_it); -#line 677 "Workers.c" - } -} - - -void -workers_wait_for_empty_queue (Workers* self) -{ - EventSemaphore* _tmp0_; -#line 73 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_return_if_fail (IS_WORKERS (self)); -#line 74 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp0_ = self->priv->empty_event; -#line 74 "/home/jens/Source/shotwell/src/threads/Workers.vala" - abstract_semaphore_wait (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)); -#line 692 "Workers.c" -} - - -gint -workers_get_pending_job_count (Workers* self) -{ - gint result = 0; - GError * _inner_error_ = NULL; -#line 78 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_return_val_if_fail (IS_WORKERS (self), 0); -#line 703 "Workers.c" - { - GAsyncQueue* _tmp0_; - gint _tmp4_ = 0; -#line 79 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp0_ = self->priv->queue; -#line 79 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_rec_mutex_lock (&self->priv->__lock_queue); -#line 711 "Workers.c" - { - gint _tmp1_; -#line 80 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp1_ = self->priv->enqueued; -#line 80 "/home/jens/Source/shotwell/src/threads/Workers.vala" - result = _tmp1_; -#line 718 "Workers.c" - { - GAsyncQueue* _tmp2_; -#line 79 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp2_ = self->priv->queue; -#line 79 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_rec_mutex_unlock (&self->priv->__lock_queue); -#line 725 "Workers.c" - } -#line 80 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return result; -#line 729 "Workers.c" - } - __finally11: - { - GAsyncQueue* _tmp3_; -#line 79 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp3_ = self->priv->queue; -#line 79 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_rec_mutex_unlock (&self->priv->__lock_queue); -#line 738 "Workers.c" - } -#line 79 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 79 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_clear_error (&_inner_error_); -#line 79 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return _tmp4_; -#line 746 "Workers.c" - } -} - - -static void -workers_thread_start (Workers* self, - void* ignored) -{ - BackgroundJob* job = NULL; - gboolean empty = FALSE; - GError * _inner_error_ = NULL; -#line 84 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_return_if_fail (IS_WORKERS (self)); -#line 760 "Workers.c" - { - GAsyncQueue* _tmp0_; -#line 87 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp0_ = self->priv->queue; -#line 87 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_rec_mutex_lock (&self->priv->__lock_queue); -#line 767 "Workers.c" - { - GAsyncQueue* _tmp1_; - gpointer _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _tmp5_; -#line 88 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp1_ = self->priv->queue; -#line 88 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp2_ = g_async_queue_try_pop (_tmp1_); -#line 88 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _background_job_unref0 (job); -#line 88 "/home/jens/Source/shotwell/src/threads/Workers.vala" - job = (BackgroundJob*) _tmp2_; -#line 89 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _vala_assert (job != NULL, "job != null"); -#line 91 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp3_ = self->priv->enqueued; -#line 91 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _vala_assert (_tmp3_ > 0, "enqueued > 0"); -#line 92 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp4_ = self->priv->enqueued; -#line 92 "/home/jens/Source/shotwell/src/threads/Workers.vala" - self->priv->enqueued = _tmp4_ - 1; -#line 92 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp5_ = self->priv->enqueued; -#line 92 "/home/jens/Source/shotwell/src/threads/Workers.vala" - empty = _tmp5_ == 0; -#line 796 "Workers.c" - } - __finally12: - { - GAsyncQueue* _tmp6_; -#line 87 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp6_ = self->priv->queue; -#line 87 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_rec_mutex_unlock (&self->priv->__lock_queue); -#line 805 "Workers.c" - } -#line 87 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 87 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _background_job_unref0 (job); -#line 87 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 87 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_clear_error (&_inner_error_); -#line 87 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return; -#line 817 "Workers.c" - } - } -#line 95 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (!background_job_is_cancelled (job)) { -#line 96 "/home/jens/Source/shotwell/src/threads/Workers.vala" - background_job_execute (job); -#line 824 "Workers.c" - } -#line 98 "/home/jens/Source/shotwell/src/threads/Workers.vala" - background_job_internal_notify_completion (job); -#line 100 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (empty) { -#line 830 "Workers.c" - EventSemaphore* _tmp7_; -#line 101 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp7_ = self->priv->empty_event; -#line 101 "/home/jens/Source/shotwell/src/threads/Workers.vala" - abstract_semaphore_notify (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_ABSTRACT_SEMAPHORE, AbstractSemaphore)); -#line 836 "Workers.c" - } -#line 84 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _background_job_unref0 (job); -#line 840 "Workers.c" -} - - -static void -value_workers_init (GValue* value) -{ -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - value->data[0].v_pointer = NULL; -#line 849 "Workers.c" -} - - -static void -value_workers_free_value (GValue* value) -{ -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (value->data[0].v_pointer) { -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - workers_unref (value->data[0].v_pointer); -#line 860 "Workers.c" - } -} - - -static void -value_workers_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (src_value->data[0].v_pointer) { -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - dest_value->data[0].v_pointer = workers_ref (src_value->data[0].v_pointer); -#line 873 "Workers.c" - } else { -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - dest_value->data[0].v_pointer = NULL; -#line 877 "Workers.c" - } -} - - -static gpointer -value_workers_peek_pointer (const GValue* value) -{ -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return value->data[0].v_pointer; -#line 887 "Workers.c" -} - - -static gchar* -value_workers_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (collect_values[0].v_pointer) { -#line 899 "Workers.c" - Workers * object; - object = collect_values[0].v_pointer; -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (object->parent_instance.g_class == NULL) { -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 906 "Workers.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 910 "Workers.c" - } -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - value->data[0].v_pointer = workers_ref (object); -#line 914 "Workers.c" - } else { -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - value->data[0].v_pointer = NULL; -#line 918 "Workers.c" - } -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return NULL; -#line 922 "Workers.c" -} - - -static gchar* -value_workers_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - Workers ** object_p; - object_p = collect_values[0].v_pointer; -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (!object_p) { -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 938 "Workers.c" - } -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (!value->data[0].v_pointer) { -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - *object_p = NULL; -#line 944 "Workers.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - *object_p = value->data[0].v_pointer; -#line 948 "Workers.c" - } else { -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - *object_p = workers_ref (value->data[0].v_pointer); -#line 952 "Workers.c" - } -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return NULL; -#line 956 "Workers.c" -} - - -GParamSpec* -param_spec_workers (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecWorkers* spec; -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_WORKERS), NULL); -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return G_PARAM_SPEC (spec); -#line 976 "Workers.c" -} - - -gpointer -value_get_workers (const GValue* value) -{ -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_WORKERS), NULL); -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return value->data[0].v_pointer; -#line 987 "Workers.c" -} - - -void -value_set_workers (GValue* value, - gpointer v_object) -{ - Workers * old; -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_WORKERS)); -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - old = value->data[0].v_pointer; -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (v_object) { -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_WORKERS)); -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - value->data[0].v_pointer = v_object; -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - workers_ref (value->data[0].v_pointer); -#line 1010 "Workers.c" - } else { -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - value->data[0].v_pointer = NULL; -#line 1014 "Workers.c" - } -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (old) { -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - workers_unref (old); -#line 1020 "Workers.c" - } -} - - -void -value_take_workers (GValue* value, - gpointer v_object) -{ - Workers * old; -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_WORKERS)); -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - old = value->data[0].v_pointer; -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (v_object) { -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_WORKERS)); -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - value->data[0].v_pointer = v_object; -#line 1042 "Workers.c" - } else { -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - value->data[0].v_pointer = NULL; -#line 1046 "Workers.c" - } -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (old) { -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - workers_unref (old); -#line 1052 "Workers.c" - } -} - - -static void -workers_class_init (WorkersClass * klass) -{ -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - workers_parent_class = g_type_class_peek_parent (klass); -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - ((WorkersClass *) klass)->finalize = workers_finalize; -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_type_class_add_private (klass, sizeof (WorkersPrivate)); -#line 1066 "Workers.c" -} - - -static void -workers_instance_init (Workers * self) -{ - GAsyncQueue* _tmp0_; - EventSemaphore* _tmp1_; -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - self->priv = WORKERS_GET_PRIVATE (self); -#line 19 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_rec_mutex_init (&self->priv->__lock_queue); -#line 19 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp0_ = g_async_queue_new_full (_background_job_unref0_); -#line 19 "/home/jens/Source/shotwell/src/threads/Workers.vala" - self->priv->queue = _tmp0_; -#line 20 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _tmp1_ = event_semaphore_new (); -#line 20 "/home/jens/Source/shotwell/src/threads/Workers.vala" - self->priv->empty_event = _tmp1_; -#line 21 "/home/jens/Source/shotwell/src/threads/Workers.vala" - self->priv->enqueued = 0; -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - self->ref_count = 1; -#line 1091 "Workers.c" -} - - -static void -workers_finalize (Workers * obj) -{ - Workers * self; -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_WORKERS, Workers); -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_signal_handlers_destroy (self); -#line 18 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _g_thread_pool_free0 (self->priv->thread_pool); -#line 19 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_rec_mutex_clear (&self->priv->__lock_queue); -#line 19 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _g_async_queue_unref0 (self->priv->queue); -#line 20 "/home/jens/Source/shotwell/src/threads/Workers.vala" - _abstract_semaphore_unref0 (self->priv->empty_event); -#line 1111 "Workers.c" -} - - -GType -workers_get_type (void) -{ - static volatile gsize workers_type_id__volatile = 0; - if (g_once_init_enter (&workers_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_workers_init, value_workers_free_value, value_workers_copy_value, value_workers_peek_pointer, "p", value_workers_collect_value, "p", value_workers_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (WorkersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) workers_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (Workers), 0, (GInstanceInitFunc) workers_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType workers_type_id; - workers_type_id = g_type_register_fundamental (g_type_fundamental_next (), "Workers", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&workers_type_id__volatile, workers_type_id); - } - return workers_type_id__volatile; -} - - -gpointer -workers_ref (gpointer instance) -{ - Workers * self; - self = instance; -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_atomic_int_inc (&self->ref_count); -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - return instance; -#line 1140 "Workers.c" -} - - -void -workers_unref (gpointer instance) -{ - Workers * self; - self = instance; -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - WORKERS_GET_CLASS (self)->finalize (self); -#line 15 "/home/jens/Source/shotwell/src/threads/Workers.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1155 "Workers.c" - } -} - - - diff --git a/src/unit/Unit.c b/src/unit/Unit.c deleted file mode 100644 index 263bdf9..0000000 --- a/src/unit/Unit.c +++ /dev/null @@ -1,33 +0,0 @@ -/* Unit.c generated by valac 0.40.4, the Vala compiler - * generated from Unit.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include - - - - -void unit_init (GError** error); -void unit_terminate (void); - - -void -unit_init (GError** error) -{ -} - - -void -unit_terminate (void) -{ -} - - - diff --git a/src/unit/rc/Unit.m4 b/src/unit/rc/Unit.m4 new file mode 100644 index 0000000..2665dd6 --- /dev/null +++ b/src/unit/rc/Unit.m4 @@ -0,0 +1,29 @@ +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + */ + +/* This file is the master unit file for the _UNIT_NAME_ unit. It should be edited to include + * whatever code is deemed necessary. + * + * The init() and terminate() methods are mandatory. + * + * If the unit needs to be configured prior to initialization, add the proper parameters to + * the preconfigure() method, implement it, and ensure in init() that it's been called. + */ + +namespace _UNIT_NAME_ { + +// preconfigure may be deleted if not used. +public void preconfigure() { +} + +public void init() throws Error { +} + +public void terminate() { +} + +} + diff --git a/src/unit/rc/UnitInternals.m4 b/src/unit/rc/UnitInternals.m4 new file mode 100644 index 0000000..71614d4 --- /dev/null +++ b/src/unit/rc/UnitInternals.m4 @@ -0,0 +1,32 @@ +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + * + * Auto-generated file. Do not modify! + */ + +namespace _UNIT_NAME_ { + +private int _unit_init_count = 0; + +public void init_entry() throws Error { + if (_unit_init_count++ != 0) + return; + + _UNIT_USES_INITS_ + + _UNIT_NAME_.init(); +} + +public void terminate_entry() { + if (_unit_init_count == 0 || --_unit_init_count != 0) + return; + + _UNIT_NAME_.terminate(); + + _UNIT_USES_TERMINATORS_ +} + +} + diff --git a/src/unit/rc/template.vala b/src/unit/rc/template.vala new file mode 100644 index 0000000..31fc93d --- /dev/null +++ b/src/unit/rc/template.vala @@ -0,0 +1,7 @@ +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + */ + + diff --git a/src/unit/rc/unitize_entry.m4 b/src/unit/rc/unitize_entry.m4 new file mode 100644 index 0000000..31602b2 --- /dev/null +++ b/src/unit/rc/unitize_entry.m4 @@ -0,0 +1,19 @@ +/* Copyright 2016 Software Freedom Conservancy Inc. + * + * This software is licensed under the GNU Lesser General Public License + * (version 2.1 or later). See the COPYING file in this distribution. + * + * Auto-generated file. Do not modify! + */ + +namespace _APP_UNIT_ { + +public void app_init() throws Error { + _APP_UNIT_.init_entry(); +} + +public void app_terminate() { + _APP_UNIT_.terminate_entry(); +} + +} diff --git a/src/util/KeyValueMap.c b/src/util/KeyValueMap.c deleted file mode 100644 index f1405c4..0000000 --- a/src/util/KeyValueMap.c +++ /dev/null @@ -1,1143 +0,0 @@ -/* KeyValueMap.c generated by valac 0.40.4, the Vala compiler - * generated from KeyValueMap.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_KEY_VALUE_MAP (key_value_map_get_type ()) -#define KEY_VALUE_MAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_KEY_VALUE_MAP, KeyValueMap)) -#define KEY_VALUE_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_KEY_VALUE_MAP, KeyValueMapClass)) -#define IS_KEY_VALUE_MAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_KEY_VALUE_MAP)) -#define IS_KEY_VALUE_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_KEY_VALUE_MAP)) -#define KEY_VALUE_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_KEY_VALUE_MAP, KeyValueMapClass)) - -typedef struct _KeyValueMap KeyValueMap; -typedef struct _KeyValueMapClass KeyValueMapClass; -typedef struct _KeyValueMapPrivate KeyValueMapPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _key_value_map_unref0(var) ((var == NULL) ? NULL : (var = (key_value_map_unref (var), NULL))) -typedef struct _ParamSpecKeyValueMap ParamSpecKeyValueMap; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _KeyValueMap { - GTypeInstance parent_instance; - volatile int ref_count; - KeyValueMapPrivate * priv; -}; - -struct _KeyValueMapClass { - GTypeClass parent_class; - void (*finalize) (KeyValueMap *self); -}; - -struct _KeyValueMapPrivate { - gchar* group; - GeeHashMap* map; -}; - -struct _ParamSpecKeyValueMap { - GParamSpec parent_instance; -}; - - -static gpointer key_value_map_parent_class = NULL; - -gpointer key_value_map_ref (gpointer instance); -void key_value_map_unref (gpointer instance); -GParamSpec* param_spec_key_value_map (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_key_value_map (GValue* value, - gpointer v_object); -void value_take_key_value_map (GValue* value, - gpointer v_object); -gpointer value_get_key_value_map (const GValue* value); -GType key_value_map_get_type (void) G_GNUC_CONST; -#define KEY_VALUE_MAP_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_KEY_VALUE_MAP, KeyValueMapPrivate)) -KeyValueMap* key_value_map_new (const gchar* group); -KeyValueMap* key_value_map_construct (GType object_type, - const gchar* group); -KeyValueMap* key_value_map_copy (KeyValueMap* self); -gchar* key_value_map_get_group (KeyValueMap* self); -GeeSet* key_value_map_get_keys (KeyValueMap* self); -gboolean key_value_map_has_key (KeyValueMap* self, - const gchar* key); -void key_value_map_set_string (KeyValueMap* self, - const gchar* key, - const gchar* value); -void key_value_map_set_int (KeyValueMap* self, - const gchar* key, - gint value); -void key_value_map_set_double (KeyValueMap* self, - const gchar* key, - gdouble value); -void key_value_map_set_float (KeyValueMap* self, - const gchar* key, - gfloat value); -void key_value_map_set_bool (KeyValueMap* self, - const gchar* key, - gboolean value); -gchar* key_value_map_get_string (KeyValueMap* self, - const gchar* key, - const gchar* def); -gint key_value_map_get_int (KeyValueMap* self, - const gchar* key, - gint def); -gdouble key_value_map_get_double (KeyValueMap* self, - const gchar* key, - gdouble def); -gfloat key_value_map_get_float (KeyValueMap* self, - const gchar* key, - gfloat def); -gboolean key_value_map_get_bool (KeyValueMap* self, - const gchar* key, - gboolean def); -void key_value_map_get_point (KeyValueMap* self, - const gchar* key, - GdkPoint* def, - GdkPoint* result); -void key_value_map_set_point (KeyValueMap* self, - const gchar* key, - GdkPoint* point); -static void key_value_map_finalize (KeyValueMap * obj); - - -KeyValueMap* -key_value_map_construct (GType object_type, - const gchar* group) -{ - KeyValueMap* self = NULL; - gchar* _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - self = (KeyValueMap*) g_type_create_instance (object_type); -#line 12 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = g_strdup (group); -#line 12 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (self->priv->group); -#line 12 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - self->priv->group = _tmp0_; -#line 11 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return self; -#line 144 "KeyValueMap.c" -} - - -KeyValueMap* -key_value_map_new (const gchar* group) -{ -#line 11 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return key_value_map_construct (TYPE_KEY_VALUE_MAP, group); -#line 153 "KeyValueMap.c" -} - - -KeyValueMap* -key_value_map_copy (KeyValueMap* self) -{ - KeyValueMap* result = NULL; - KeyValueMap* clone = NULL; - const gchar* _tmp0_; - KeyValueMap* _tmp1_; -#line 16 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = self->priv->group; -#line 16 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp1_ = key_value_map_new (_tmp0_); -#line 16 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - clone = _tmp1_; -#line 170 "KeyValueMap.c" - { - GeeIterator* _key_it = NULL; - GeeHashMap* _tmp2_; - GeeSet* _tmp3_; - GeeSet* _tmp4_; - GeeSet* _tmp5_; - GeeIterator* _tmp6_; - GeeIterator* _tmp7_; -#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = self->priv->map; -#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp3_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp4_ = _tmp3_; -#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp5_ = _tmp4_; -#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp6_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp7_ = _tmp6_; -#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_object_unref0 (_tmp5_); -#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _key_it = _tmp7_; -#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - while (TRUE) { -#line 197 "KeyValueMap.c" - GeeIterator* _tmp8_; - gchar* key = NULL; - GeeIterator* _tmp9_; - gpointer _tmp10_; - KeyValueMap* _tmp11_; - GeeHashMap* _tmp12_; - const gchar* _tmp13_; - GeeHashMap* _tmp14_; - const gchar* _tmp15_; - gpointer _tmp16_; - gchar* _tmp17_; -#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp8_ = _key_it; -#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (!gee_iterator_next (_tmp8_)) { -#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - break; -#line 215 "KeyValueMap.c" - } -#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp9_ = _key_it; -#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp10_ = gee_iterator_get (_tmp9_); -#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - key = (gchar*) _tmp10_; -#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp11_ = clone; -#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp12_ = _tmp11_->priv->map; -#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp13_ = key; -#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp14_ = self->priv->map; -#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp15_ = key; -#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp16_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp15_); -#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp17_ = (gchar*) _tmp16_; -#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), _tmp13_, _tmp17_); -#line 18 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (_tmp17_); -#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (key); -#line 243 "KeyValueMap.c" - } -#line 17 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_object_unref0 (_key_it); -#line 247 "KeyValueMap.c" - } -#line 20 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - result = clone; -#line 20 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return result; -#line 253 "KeyValueMap.c" -} - - -gchar* -key_value_map_get_group (KeyValueMap* self) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 24 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = self->priv->group; -#line 24 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 24 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - result = _tmp1_; -#line 24 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return result; -#line 271 "KeyValueMap.c" -} - - -GeeSet* -key_value_map_get_keys (KeyValueMap* self) -{ - GeeSet* result = NULL; - GeeHashMap* _tmp0_; - GeeSet* _tmp1_; - GeeSet* _tmp2_; -#line 28 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = self->priv->map; -#line 28 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp1_ = gee_abstract_map_get_keys (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); -#line 28 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = _tmp1_; -#line 28 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - result = _tmp2_; -#line 28 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return result; -#line 292 "KeyValueMap.c" -} - - -gboolean -key_value_map_has_key (KeyValueMap* self, - const gchar* key) -{ - gboolean result = FALSE; - GeeHashMap* _tmp0_; -#line 32 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = self->priv->map; -#line 32 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - result = gee_abstract_map_has_key (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key); -#line 32 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return result; -#line 308 "KeyValueMap.c" -} - - -void -key_value_map_set_string (KeyValueMap* self, - const gchar* key, - const gchar* value) -{ - GeeHashMap* _tmp0_; -#line 36 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _vala_assert (key != NULL, "key != null"); -#line 38 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = self->priv->map; -#line 38 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key, value); -#line 324 "KeyValueMap.c" -} - - -void -key_value_map_set_int (KeyValueMap* self, - const gchar* key, - gint value) -{ - GeeHashMap* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 42 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _vala_assert (key != NULL, "key != null"); -#line 44 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = self->priv->map; -#line 44 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp1_ = g_strdup_printf ("%i", value); -#line 44 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = _tmp1_; -#line 44 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key, _tmp2_); -#line 44 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (_tmp2_); -#line 348 "KeyValueMap.c" -} - - -static gchar* -double_to_string (gdouble self) -{ - gchar* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gint _tmp1__length1; - const gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; -#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_new0 (gchar, G_ASCII_DTOSTR_BUF_SIZE); -#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1__length1 = G_ASCII_DTOSTR_BUF_SIZE; -#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = g_ascii_dtostr (_tmp1_, G_ASCII_DTOSTR_BUF_SIZE, self); -#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_strdup (_tmp2_); -#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = _tmp3_; -#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = (g_free (_tmp1_), NULL); -#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp4_; -#line 883 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 380 "KeyValueMap.c" -} - - -void -key_value_map_set_double (KeyValueMap* self, - const gchar* key, - gdouble value) -{ - GeeHashMap* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 48 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _vala_assert (key != NULL, "key != null"); -#line 50 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = self->priv->map; -#line 50 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp1_ = double_to_string (value); -#line 50 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = _tmp1_; -#line 50 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key, _tmp2_); -#line 50 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (_tmp2_); -#line 404 "KeyValueMap.c" -} - - -void -key_value_map_set_float (KeyValueMap* self, - const gchar* key, - gfloat value) -{ - GeeHashMap* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 54 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _vala_assert (key != NULL, "key != null"); -#line 56 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = self->priv->map; -#line 56 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp1_ = g_strdup_printf ("%g", value); -#line 56 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = _tmp1_; -#line 56 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key, _tmp2_); -#line 56 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (_tmp2_); -#line 428 "KeyValueMap.c" -} - - -static gchar* -bool_to_string (gboolean self) -{ - gchar* result = NULL; -#line 37 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (self) { -#line 438 "KeyValueMap.c" - gchar* _tmp0_; -#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup ("true"); -#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 38 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 446 "KeyValueMap.c" - } else { - gchar* _tmp1_; -#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = g_strdup ("false"); -#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp1_; -#line 40 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 455 "KeyValueMap.c" - } -} - - -void -key_value_map_set_bool (KeyValueMap* self, - const gchar* key, - gboolean value) -{ - GeeHashMap* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; -#line 60 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _vala_assert (key != NULL, "key != null"); -#line 62 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = self->priv->map; -#line 62 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp1_ = bool_to_string (value); -#line 62 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = _tmp1_; -#line 62 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key, _tmp2_); -#line 62 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (_tmp2_); -#line 480 "KeyValueMap.c" -} - - -gchar* -key_value_map_get_string (KeyValueMap* self, - const gchar* key, - const gchar* def) -{ - gchar* result = NULL; - gchar* value = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - const gchar* _tmp2_ = NULL; - const gchar* _tmp3_; - gchar* _tmp5_; -#line 66 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = self->priv->map; -#line 66 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key); -#line 66 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - value = (gchar*) _tmp1_; -#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp3_ = value; -#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (_tmp3_ != NULL) { -#line 506 "KeyValueMap.c" - const gchar* _tmp4_; -#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp4_ = value; -#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = _tmp4_; -#line 512 "KeyValueMap.c" - } else { -#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = def; -#line 516 "KeyValueMap.c" - } -#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp5_ = g_strdup (_tmp2_); -#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - result = _tmp5_; -#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (value); -#line 68 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return result; -#line 526 "KeyValueMap.c" -} - - -gint -key_value_map_get_int (KeyValueMap* self, - const gchar* key, - gint def) -{ - gint result = 0; - gchar* value = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - gint _tmp2_ = 0; - const gchar* _tmp3_; -#line 72 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = self->priv->map; -#line 72 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key); -#line 72 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - value = (gchar*) _tmp1_; -#line 74 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp3_ = value; -#line 74 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (_tmp3_ != NULL) { -#line 551 "KeyValueMap.c" - const gchar* _tmp4_; -#line 74 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp4_ = value; -#line 74 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = atoi (_tmp4_); -#line 557 "KeyValueMap.c" - } else { -#line 74 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = def; -#line 561 "KeyValueMap.c" - } -#line 74 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - result = _tmp2_; -#line 74 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (value); -#line 74 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return result; -#line 569 "KeyValueMap.c" -} - - -static gdouble -double_parse (const gchar* str) -{ - gdouble result = 0.0; - gdouble _tmp0_; -#line 890 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_ascii_strtod (str, NULL); -#line 890 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 890 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 584 "KeyValueMap.c" -} - - -gdouble -key_value_map_get_double (KeyValueMap* self, - const gchar* key, - gdouble def) -{ - gdouble result = 0.0; - gchar* value = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - gdouble _tmp2_ = 0.0; - const gchar* _tmp3_; -#line 78 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = self->priv->map; -#line 78 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key); -#line 78 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - value = (gchar*) _tmp1_; -#line 80 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp3_ = value; -#line 80 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (_tmp3_ != NULL) { -#line 609 "KeyValueMap.c" - const gchar* _tmp4_; -#line 80 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp4_ = value; -#line 80 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = double_parse (_tmp4_); -#line 615 "KeyValueMap.c" - } else { -#line 80 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = def; -#line 619 "KeyValueMap.c" - } -#line 80 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - result = _tmp2_; -#line 80 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (value); -#line 80 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return result; -#line 627 "KeyValueMap.c" -} - - -gfloat -key_value_map_get_float (KeyValueMap* self, - const gchar* key, - gfloat def) -{ - gfloat result = 0.0F; - gchar* value = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - gfloat _tmp2_ = 0.0F; - const gchar* _tmp3_; -#line 84 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = self->priv->map; -#line 84 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key); -#line 84 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - value = (gchar*) _tmp1_; -#line 86 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp3_ = value; -#line 86 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (_tmp3_ != NULL) { -#line 652 "KeyValueMap.c" - const gchar* _tmp4_; -#line 86 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp4_ = value; -#line 86 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = (gfloat) double_parse (_tmp4_); -#line 658 "KeyValueMap.c" - } else { -#line 86 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = def; -#line 662 "KeyValueMap.c" - } -#line 86 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - result = _tmp2_; -#line 86 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (value); -#line 86 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return result; -#line 670 "KeyValueMap.c" -} - - -static gboolean -bool_parse (const gchar* str) -{ - gboolean result = FALSE; -#line 45 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (g_strcmp0 (str, "true") == 0) { -#line 46 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = TRUE; -#line 46 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 684 "KeyValueMap.c" - } else { -#line 48 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = FALSE; -#line 48 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 690 "KeyValueMap.c" - } -} - - -gboolean -key_value_map_get_bool (KeyValueMap* self, - const gchar* key, - gboolean def) -{ - gboolean result = FALSE; - gchar* value = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - gboolean _tmp2_ = FALSE; - const gchar* _tmp3_; -#line 90 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = self->priv->map; -#line 90 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key); -#line 90 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - value = (gchar*) _tmp1_; -#line 92 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp3_ = value; -#line 92 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (_tmp3_ != NULL) { -#line 716 "KeyValueMap.c" - const gchar* _tmp4_; -#line 92 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp4_ = value; -#line 92 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = bool_parse (_tmp4_); -#line 722 "KeyValueMap.c" - } else { -#line 92 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = def; -#line 726 "KeyValueMap.c" - } -#line 92 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - result = _tmp2_; -#line 92 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (value); -#line 92 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return result; -#line 734 "KeyValueMap.c" -} - - -void -key_value_map_get_point (KeyValueMap* self, - const gchar* key, - GdkPoint* def, - GdkPoint* result) -{ - gchar* value = NULL; - GeeHashMap* _tmp0_; - gpointer _tmp1_; - const gchar* _tmp2_; -#line 101 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = self->priv->map; -#line 101 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp1_ = gee_abstract_map_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key); -#line 101 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - value = (gchar*) _tmp1_; -#line 103 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = value; -#line 103 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (_tmp2_ == NULL) { -#line 758 "KeyValueMap.c" - GdkPoint _tmp3_; -#line 104 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp3_ = *def; -#line 104 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - *result = _tmp3_; -#line 104 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (value); -#line 104 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return; -#line 768 "KeyValueMap.c" - } else { - GdkPoint _result_ = {0}; - GdkPoint _tmp4_ = {0}; - const gchar* _tmp5_; -#line 106 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp4_.x = 0; -#line 106 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _result_ = _tmp4_; -#line 107 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp5_ = value; -#line 107 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (sscanf (_tmp5_, "(%d, %d)", &_result_.x, &_result_.y) == 2) { -#line 108 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - *result = _result_; -#line 108 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (value); -#line 108 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return; -#line 787 "KeyValueMap.c" - } else { - GdkPoint _tmp6_; -#line 110 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp6_ = *def; -#line 110 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - *result = _tmp6_; -#line 110 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (value); -#line 110 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return; -#line 798 "KeyValueMap.c" - } - } -#line 100 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (value); -#line 803 "KeyValueMap.c" -} - - -void -key_value_map_set_point (KeyValueMap* self, - const gchar* key, - GdkPoint* point) -{ - GeeHashMap* _tmp0_; - GdkPoint _tmp1_; - gint _tmp2_; - GdkPoint _tmp3_; - gint _tmp4_; - gchar* _tmp5_; - gchar* _tmp6_; -#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = self->priv->map; -#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp1_ = *point; -#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp2_ = _tmp1_.x; -#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp3_ = *point; -#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp4_ = _tmp3_.y; -#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp5_ = g_strdup_printf ("(%d, %d)", _tmp2_, _tmp4_); -#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp6_ = _tmp5_; -#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - gee_abstract_map_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap), key, _tmp6_); -#line 115 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (_tmp6_); -#line 837 "KeyValueMap.c" -} - - -static void -value_key_value_map_init (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - value->data[0].v_pointer = NULL; -#line 846 "KeyValueMap.c" -} - - -static void -value_key_value_map_free_value (GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - key_value_map_unref (value->data[0].v_pointer); -#line 857 "KeyValueMap.c" - } -} - - -static void -value_key_value_map_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (src_value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - dest_value->data[0].v_pointer = key_value_map_ref (src_value->data[0].v_pointer); -#line 870 "KeyValueMap.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - dest_value->data[0].v_pointer = NULL; -#line 874 "KeyValueMap.c" - } -} - - -static gpointer -value_key_value_map_peek_pointer (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return value->data[0].v_pointer; -#line 884 "KeyValueMap.c" -} - - -static gchar* -value_key_value_map_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (collect_values[0].v_pointer) { -#line 896 "KeyValueMap.c" - KeyValueMap * object; - object = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (object->parent_instance.g_class == NULL) { -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 903 "KeyValueMap.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 907 "KeyValueMap.c" - } -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - value->data[0].v_pointer = key_value_map_ref (object); -#line 911 "KeyValueMap.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - value->data[0].v_pointer = NULL; -#line 915 "KeyValueMap.c" - } -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return NULL; -#line 919 "KeyValueMap.c" -} - - -static gchar* -value_key_value_map_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - KeyValueMap ** object_p; - object_p = collect_values[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (!object_p) { -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 935 "KeyValueMap.c" - } -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (!value->data[0].v_pointer) { -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - *object_p = NULL; -#line 941 "KeyValueMap.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - *object_p = value->data[0].v_pointer; -#line 945 "KeyValueMap.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - *object_p = key_value_map_ref (value->data[0].v_pointer); -#line 949 "KeyValueMap.c" - } -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return NULL; -#line 953 "KeyValueMap.c" -} - - -GParamSpec* -param_spec_key_value_map (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecKeyValueMap* spec; -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_KEY_VALUE_MAP), NULL); -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return G_PARAM_SPEC (spec); -#line 973 "KeyValueMap.c" -} - - -gpointer -value_get_key_value_map (const GValue* value) -{ -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_KEY_VALUE_MAP), NULL); -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return value->data[0].v_pointer; -#line 984 "KeyValueMap.c" -} - - -void -value_set_key_value_map (GValue* value, - gpointer v_object) -{ - KeyValueMap * old; -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_KEY_VALUE_MAP)); -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_KEY_VALUE_MAP)); -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - value->data[0].v_pointer = v_object; -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - key_value_map_ref (value->data[0].v_pointer); -#line 1007 "KeyValueMap.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - value->data[0].v_pointer = NULL; -#line 1011 "KeyValueMap.c" - } -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - key_value_map_unref (old); -#line 1017 "KeyValueMap.c" - } -} - - -void -value_take_key_value_map (GValue* value, - gpointer v_object) -{ - KeyValueMap * old; -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_KEY_VALUE_MAP)); -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - old = value->data[0].v_pointer; -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (v_object) { -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_KEY_VALUE_MAP)); -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - value->data[0].v_pointer = v_object; -#line 1039 "KeyValueMap.c" - } else { -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - value->data[0].v_pointer = NULL; -#line 1043 "KeyValueMap.c" - } -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (old) { -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - key_value_map_unref (old); -#line 1049 "KeyValueMap.c" - } -} - - -static void -key_value_map_class_init (KeyValueMapClass * klass) -{ -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - key_value_map_parent_class = g_type_class_peek_parent (klass); -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - ((KeyValueMapClass *) klass)->finalize = key_value_map_finalize; -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - g_type_class_add_private (klass, sizeof (KeyValueMapPrivate)); -#line 1063 "KeyValueMap.c" -} - - -static void -key_value_map_instance_init (KeyValueMap * self) -{ - GeeHashMap* _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - self->priv = KEY_VALUE_MAP_GET_PRIVATE (self); -#line 9 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -#line 9 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - self->priv->map = _tmp0_; -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - self->ref_count = 1; -#line 1079 "KeyValueMap.c" -} - - -static void -key_value_map_finalize (KeyValueMap * obj) -{ - KeyValueMap * self; -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_KEY_VALUE_MAP, KeyValueMap); -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - g_signal_handlers_destroy (self); -#line 8 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_free0 (self->priv->group); -#line 9 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - _g_object_unref0 (self->priv->map); -#line 1095 "KeyValueMap.c" -} - - -GType -key_value_map_get_type (void) -{ - static volatile gsize key_value_map_type_id__volatile = 0; - if (g_once_init_enter (&key_value_map_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_key_value_map_init, value_key_value_map_free_value, value_key_value_map_copy_value, value_key_value_map_peek_pointer, "p", value_key_value_map_collect_value, "p", value_key_value_map_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (KeyValueMapClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) key_value_map_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (KeyValueMap), 0, (GInstanceInitFunc) key_value_map_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType key_value_map_type_id; - key_value_map_type_id = g_type_register_fundamental (g_type_fundamental_next (), "KeyValueMap", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&key_value_map_type_id__volatile, key_value_map_type_id); - } - return key_value_map_type_id__volatile; -} - - -gpointer -key_value_map_ref (gpointer instance) -{ - KeyValueMap * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - g_atomic_int_inc (&self->ref_count); -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - return instance; -#line 1124 "KeyValueMap.c" -} - - -void -key_value_map_unref (gpointer instance) -{ - KeyValueMap * self; - self = instance; -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - KEY_VALUE_MAP_GET_CLASS (self)->finalize (self); -#line 7 "/home/jens/Source/shotwell/src/util/KeyValueMap.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1139 "KeyValueMap.c" - } -} - - - diff --git a/src/util/Util.c b/src/util/Util.c deleted file mode 100644 index 3a44398..0000000 --- a/src/util/Util.c +++ /dev/null @@ -1,36 +0,0 @@ -/* Util.c generated by valac 0.40.4, the Vala compiler - * generated from Util.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include - - - - -#define UTIL_FILE_ATTRIBUTES "standard::*,time::*,id::file,id::filesystem,etag::value" -void util_init (GError** error); -void util_terminate (void); - - -void -util_init (GError** error) -{ -} - - -void -util_terminate (void) -{ -} - - - diff --git a/src/util/file.c b/src/util/file.c deleted file mode 100644 index ccb75a9..0000000 --- a/src/util/file.c +++ /dev/null @@ -1,1733 +0,0 @@ -/* file.c generated by valac 0.40.4, the Vala compiler - * generated from file.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ -/* Returns true if the file is claimed, false if it exists, and throws an Error otherwise. The file*/ -/* will be created when the function exits and should be overwritten. Note that the file is not*/ -/* held open; claiming a file is merely based on its existence.*/ -/**/ -/* This function is thread-safe.*/ - - -#include -#include -#include -#include -#include -#include -#include - -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -typedef gboolean (*ProgressMonitor) (guint64 current, guint64 total, gboolean do_event_loop, void* user_data); - - -gboolean claim_file (GFile* file, - GError** error); -GFile* generate_unique_file (GFile* dir, - const gchar* basename, - gboolean* collision, - GError** error); -void disassemble_filename (const gchar* basename, - gchar* * name, - gchar* * ext); -glong find_last_offset (const gchar* str, - gchar c); -guint64 query_total_file_size (GFile* file_or_dir, - GCancellable* cancellable, - GError** error); -void delete_all_files (GFile* dir, - GeeSet* exceptions, - ProgressMonitor monitor, - void* monitor_target, - guint64 file_count, - GCancellable* cancellable, - GError** error); -time_t query_file_modified (GFile* file, - GError** error); -gboolean query_is_directory (GFile* file); -gboolean query_is_directory_empty (GFile* dir, - GError** error); -gchar* get_display_pathname (GFile* file); -gchar* strip_pretty_path (const gchar* path); -gchar* get_file_info_id (GFileInfo* info); -void skip_uint64 (GInputStream* input, - guint64 skip_amount, - GError** error); -guint64 count_files_in_directory (GFile* dir, - GError** error); -gboolean file_equal (GFile* a, - GFile* b); -guint file_hash (GFile* file); - - -static gpointer -_g_error_copy0 (gpointer self) -{ -#line 23 "/home/jens/Source/shotwell/src/util/file.vala" - return self ? g_error_copy (self) : NULL; -#line 76 "file.c" -} - - -gboolean -claim_file (GFile* file, - GError** error) -{ - gboolean result = FALSE; - gboolean _tmp9_ = FALSE; - GError * _inner_error_ = NULL; -#line 12 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 89 "file.c" - { - GFileOutputStream* _tmp0_; - GFileOutputStream* _tmp1_; -#line 14 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp0_ = g_file_create (file, G_FILE_CREATE_NONE, NULL, &_inner_error_); -#line 14 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp1_ = _tmp0_; -#line 14 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (_tmp1_); -#line 14 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 101 "file.c" - goto __catch0_g_error; - } -#line 17 "/home/jens/Source/shotwell/src/util/file.vala" - result = TRUE; -#line 17 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 108 "file.c" - } - goto __finally0; - __catch0_g_error: - { - GError* err = NULL; - GError* _tmp2_; -#line 13 "/home/jens/Source/shotwell/src/util/file.vala" - err = _inner_error_; -#line 13 "/home/jens/Source/shotwell/src/util/file.vala" - _inner_error_ = NULL; -#line 20 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp2_ = err; -#line 20 "/home/jens/Source/shotwell/src/util/file.vala" - if (!g_error_matches (_tmp2_, G_IO_ERROR, G_IO_ERROR_EXISTS)) { -#line 123 "file.c" - gchar* _tmp3_; - gchar* _tmp4_; - GError* _tmp5_; - const gchar* _tmp6_; - GError* _tmp7_; - GError* _tmp8_; -#line 21 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp3_ = g_file_get_path (file); -#line 21 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp4_ = _tmp3_; -#line 21 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp5_ = err; -#line 21 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp6_ = _tmp5_->message; -#line 21 "/home/jens/Source/shotwell/src/util/file.vala" - g_warning ("file.vala:21: claim_file %s: %s", _tmp4_, _tmp6_); -#line 21 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_tmp4_); -#line 23 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp7_ = err; -#line 23 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp8_ = _g_error_copy0 (_tmp7_); -#line 23 "/home/jens/Source/shotwell/src/util/file.vala" - _inner_error_ = _tmp8_; -#line 23 "/home/jens/Source/shotwell/src/util/file.vala" - _g_error_free0 (err); -#line 150 "file.c" - goto __finally0; - } -#line 26 "/home/jens/Source/shotwell/src/util/file.vala" - result = FALSE; -#line 26 "/home/jens/Source/shotwell/src/util/file.vala" - _g_error_free0 (err); -#line 26 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 159 "file.c" - } - __finally0: -#line 13 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 13 "/home/jens/Source/shotwell/src/util/file.vala" - return _tmp9_; -#line 166 "file.c" -} - - -GFile* -generate_unique_file (GFile* dir, - const gchar* basename, - gboolean* collision, - GError** error) -{ - gboolean _vala_collision = FALSE; - GFile* result = NULL; - GFile* file = NULL; - GFile* _tmp0_; - gboolean _tmp1_ = FALSE; - GFile* _tmp2_; - gchar* name = NULL; - gchar* ext = NULL; - gchar* _tmp3_ = NULL; - gchar* _tmp4_ = NULL; - gchar* _tmp22_; - gchar* _tmp23_; - GError * _inner_error_ = NULL; -#line 36 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_val_if_fail (G_IS_FILE (dir), NULL); -#line 36 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_val_if_fail (basename != NULL, NULL); -#line 38 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp0_ = g_file_get_child (dir, basename); -#line 38 "/home/jens/Source/shotwell/src/util/file.vala" - file = _tmp0_; -#line 39 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp2_ = file; -#line 39 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp1_ = claim_file (_tmp2_, &_inner_error_); -#line 39 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 39 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 39 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (file); -#line 39 "/home/jens/Source/shotwell/src/util/file.vala" - return NULL; -#line 209 "file.c" - } -#line 39 "/home/jens/Source/shotwell/src/util/file.vala" - if (_tmp1_) { -#line 40 "/home/jens/Source/shotwell/src/util/file.vala" - _vala_collision = FALSE; -#line 42 "/home/jens/Source/shotwell/src/util/file.vala" - result = file; -#line 42 "/home/jens/Source/shotwell/src/util/file.vala" - if (collision) { -#line 42 "/home/jens/Source/shotwell/src/util/file.vala" - *collision = _vala_collision; -#line 221 "file.c" - } -#line 42 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 225 "file.c" - } -#line 46 "/home/jens/Source/shotwell/src/util/file.vala" - _vala_collision = TRUE; -#line 49 "/home/jens/Source/shotwell/src/util/file.vala" - disassemble_filename (basename, &_tmp3_, &_tmp4_); -#line 49 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (name); -#line 49 "/home/jens/Source/shotwell/src/util/file.vala" - name = _tmp3_; -#line 49 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (ext); -#line 49 "/home/jens/Source/shotwell/src/util/file.vala" - ext = _tmp4_; -#line 239 "file.c" - { - gint ctr = 0; -#line 52 "/home/jens/Source/shotwell/src/util/file.vala" - ctr = 1; -#line 244 "file.c" - { - gboolean _tmp5_ = FALSE; -#line 52 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp5_ = TRUE; -#line 52 "/home/jens/Source/shotwell/src/util/file.vala" - while (TRUE) { -#line 251 "file.c" - gint _tmp7_; - gchar* _tmp8_ = NULL; - const gchar* _tmp9_; - gchar* new_name = NULL; - gchar* _tmp17_; - const gchar* _tmp18_; - GFile* _tmp19_; - gboolean _tmp20_ = FALSE; - GFile* _tmp21_; -#line 52 "/home/jens/Source/shotwell/src/util/file.vala" - if (!_tmp5_) { -#line 263 "file.c" - gint _tmp6_; -#line 52 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp6_ = ctr; -#line 52 "/home/jens/Source/shotwell/src/util/file.vala" - ctr = _tmp6_ + 1; -#line 269 "file.c" - } -#line 52 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp5_ = FALSE; -#line 52 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp7_ = ctr; -#line 52 "/home/jens/Source/shotwell/src/util/file.vala" - if (!(_tmp7_ < G_MAXINT)) { -#line 52 "/home/jens/Source/shotwell/src/util/file.vala" - break; -#line 279 "file.c" - } -#line 53 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp9_ = ext; -#line 53 "/home/jens/Source/shotwell/src/util/file.vala" - if (_tmp9_ != NULL) { -#line 285 "file.c" - const gchar* _tmp10_; - gint _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; -#line 53 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp10_ = name; -#line 53 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp11_ = ctr; -#line 53 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp12_ = ext; -#line 53 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp13_ = g_strdup_printf ("%s_%d.%s", _tmp10_, _tmp11_, _tmp12_); -#line 53 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_tmp8_); -#line 53 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp8_ = _tmp13_; -#line 302 "file.c" - } else { - const gchar* _tmp14_; - gint _tmp15_; - gchar* _tmp16_; -#line 53 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp14_ = name; -#line 53 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp15_ = ctr; -#line 53 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp16_ = g_strdup_printf ("%s_%d", _tmp14_, _tmp15_); -#line 53 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_tmp8_); -#line 53 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp8_ = _tmp16_; -#line 317 "file.c" - } -#line 53 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp17_ = g_strdup (_tmp8_); -#line 53 "/home/jens/Source/shotwell/src/util/file.vala" - new_name = _tmp17_; -#line 55 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp18_ = new_name; -#line 55 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp19_ = g_file_get_child (dir, _tmp18_); -#line 55 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (file); -#line 55 "/home/jens/Source/shotwell/src/util/file.vala" - file = _tmp19_; -#line 56 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp21_ = file; -#line 56 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp20_ = claim_file (_tmp21_, &_inner_error_); -#line 56 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 56 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 56 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (new_name); -#line 56 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_tmp8_); -#line 56 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (ext); -#line 56 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (name); -#line 56 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (file); -#line 56 "/home/jens/Source/shotwell/src/util/file.vala" - return NULL; -#line 351 "file.c" - } -#line 56 "/home/jens/Source/shotwell/src/util/file.vala" - if (_tmp20_) { -#line 57 "/home/jens/Source/shotwell/src/util/file.vala" - result = file; -#line 57 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (new_name); -#line 57 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_tmp8_); -#line 57 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (ext); -#line 57 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (name); -#line 57 "/home/jens/Source/shotwell/src/util/file.vala" - if (collision) { -#line 57 "/home/jens/Source/shotwell/src/util/file.vala" - *collision = _vala_collision; -#line 369 "file.c" - } -#line 57 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 373 "file.c" - } -#line 52 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (new_name); -#line 52 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_tmp8_); -#line 379 "file.c" - } - } - } -#line 60 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp22_ = g_file_get_path (dir); -#line 60 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp23_ = _tmp22_; -#line 60 "/home/jens/Source/shotwell/src/util/file.vala" - g_warning ("file.vala:60: generate_unique_filename %s for %s: unable to claim file", _tmp23_, basename); -#line 60 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_tmp23_); -#line 62 "/home/jens/Source/shotwell/src/util/file.vala" - result = NULL; -#line 62 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (ext); -#line 62 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (name); -#line 62 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (file); -#line 62 "/home/jens/Source/shotwell/src/util/file.vala" - if (collision) { -#line 62 "/home/jens/Source/shotwell/src/util/file.vala" - *collision = _vala_collision; -#line 403 "file.c" - } -#line 62 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 407 "file.c" -} - - -static glong -string_strnlen (gchar* str, - glong maxlen) -{ - glong result = 0L; - gchar* end = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = memchr (str, 0, (gsize) maxlen); -#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp0_; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = end; -#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ == NULL) { -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = maxlen; -#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 431 "file.c" - } else { - gchar* _tmp2_; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = end; -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (glong) (_tmp2_ - str); -#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 440 "file.c" - } -} - - -static gchar* -string_substring (const gchar* self, - glong offset, - glong len) -{ - gchar* result = NULL; - glong string_length = 0L; - gboolean _tmp0_ = FALSE; - glong _tmp6_; - gchar* _tmp7_; -#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset >= ((glong) 0)) { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = len >= ((glong) 0); -#line 461 "file.c" - } else { -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = FALSE; -#line 465 "file.c" - } -#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_) { -#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = string_strnlen ((gchar*) self, offset + len); -#line 471 "file.c" - } else { - gint _tmp1_; - gint _tmp2_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = strlen (self); -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _tmp1_; -#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp2_; -#line 481 "file.c" - } -#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (offset < ((glong) 0)) { -#line 485 "file.c" - glong _tmp3_; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - offset = _tmp3_ + offset; -#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset >= ((glong) 0), NULL); -#line 493 "file.c" - } else { - glong _tmp4_; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = string_length; -#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (offset <= _tmp4_, NULL); -#line 500 "file.c" - } -#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (len < ((glong) 0)) { -#line 504 "file.c" - glong _tmp5_; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - len = _tmp5_ - offset; -#line 510 "file.c" - } -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = string_length; -#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail ((offset + len) <= _tmp6_, NULL); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len); -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp7_; -#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 522 "file.c" -} - - -void -disassemble_filename (const gchar* basename, - gchar* * name, - gchar* * ext) -{ - gchar* _vala_name = NULL; - gchar* _vala_ext = NULL; - glong offset = 0L; - glong _tmp0_; -#line 65 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_if_fail (basename != NULL); -#line 66 "/home/jens/Source/shotwell/src/util/file.vala" - offset = find_last_offset (basename, '.'); -#line 67 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp0_ = offset; -#line 67 "/home/jens/Source/shotwell/src/util/file.vala" - if (_tmp0_ <= ((glong) 0)) { -#line 543 "file.c" - gchar* _tmp1_; -#line 68 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp1_ = g_strdup (basename); -#line 68 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_vala_name); -#line 68 "/home/jens/Source/shotwell/src/util/file.vala" - _vala_name = _tmp1_; -#line 69 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_vala_ext); -#line 69 "/home/jens/Source/shotwell/src/util/file.vala" - _vala_ext = NULL; -#line 555 "file.c" - } else { - glong _tmp2_; - gchar* _tmp3_; - glong _tmp4_; - gchar* _tmp5_; -#line 71 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp2_ = offset; -#line 71 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp3_ = string_substring (basename, (glong) 0, _tmp2_); -#line 71 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_vala_name); -#line 71 "/home/jens/Source/shotwell/src/util/file.vala" - _vala_name = _tmp3_; -#line 72 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp4_ = offset; -#line 72 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp5_ = string_substring (basename, _tmp4_ + 1, (glong) -1); -#line 72 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_vala_ext); -#line 72 "/home/jens/Source/shotwell/src/util/file.vala" - _vala_ext = _tmp5_; -#line 577 "file.c" - } -#line 65 "/home/jens/Source/shotwell/src/util/file.vala" - if (name) { -#line 65 "/home/jens/Source/shotwell/src/util/file.vala" - *name = _vala_name; -#line 583 "file.c" - } else { -#line 65 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_vala_name); -#line 587 "file.c" - } -#line 65 "/home/jens/Source/shotwell/src/util/file.vala" - if (ext) { -#line 65 "/home/jens/Source/shotwell/src/util/file.vala" - *ext = _vala_ext; -#line 593 "file.c" - } else { -#line 65 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_vala_ext); -#line 597 "file.c" - } -} - - -guint64 -query_total_file_size (GFile* file_or_dir, - GCancellable* cancellable, - GError** error) -{ - guint64 result = 0ULL; - GFileType type = 0; - GFileType _tmp0_; - GFileEnumerator* enumerator = NULL; - guint64 total_bytes = 0ULL; - GFileInfo* info = NULL; - GError * _inner_error_ = NULL; -#line 77 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_val_if_fail (G_IS_FILE (file_or_dir), 0ULL); -#line 77 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_val_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable), 0ULL); -#line 78 "/home/jens/Source/shotwell/src/util/file.vala" - type = g_file_query_file_type (file_or_dir, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL); -#line 79 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp0_ = type; -#line 79 "/home/jens/Source/shotwell/src/util/file.vala" - if (_tmp0_ == G_FILE_TYPE_REGULAR) { -#line 624 "file.c" - GFileInfo* info = NULL; - GFileInfo* _tmp12_; -#line 80 "/home/jens/Source/shotwell/src/util/file.vala" - info = NULL; -#line 629 "file.c" - { - GFileInfo* _tmp1_ = NULL; - GFileInfo* _tmp2_; - GFileInfo* _tmp3_; -#line 82 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp2_ = g_file_query_info (file_or_dir, G_FILE_ATTRIBUTE_STANDARD_SIZE, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, cancellable, &_inner_error_); -#line 82 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp1_ = _tmp2_; -#line 82 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 640 "file.c" - goto __catch1_g_error; - } -#line 82 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp3_ = _tmp1_; -#line 82 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp1_ = NULL; -#line 82 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (info); -#line 82 "/home/jens/Source/shotwell/src/util/file.vala" - info = _tmp3_; -#line 81 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (_tmp1_); -#line 653 "file.c" - } - goto __finally1; - __catch1_g_error: - { - GError* err = NULL; - GError* _tmp4_; - gchar* _tmp7_; - gchar* _tmp8_; - GError* _tmp9_; - const gchar* _tmp10_; -#line 81 "/home/jens/Source/shotwell/src/util/file.vala" - err = _inner_error_; -#line 81 "/home/jens/Source/shotwell/src/util/file.vala" - _inner_error_ = NULL; -#line 85 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp4_ = err; -#line 85 "/home/jens/Source/shotwell/src/util/file.vala" - if (g_error_matches (_tmp4_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) { -#line 672 "file.c" - GError* _tmp5_; - GError* _tmp6_; -#line 86 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp5_ = err; -#line 86 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp6_ = _g_error_copy0 (_tmp5_); -#line 86 "/home/jens/Source/shotwell/src/util/file.vala" - _inner_error_ = _tmp6_; -#line 86 "/home/jens/Source/shotwell/src/util/file.vala" - _g_error_free0 (err); -#line 683 "file.c" - goto __finally1; - } -#line 88 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp7_ = g_file_get_path (file_or_dir); -#line 88 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp8_ = _tmp7_; -#line 88 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp9_ = err; -#line 88 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp10_ = _tmp9_->message; -#line 88 "/home/jens/Source/shotwell/src/util/file.vala" - g_debug ("file.vala:88: Unable to query filesize for %s: %s", _tmp8_, _tmp10_); -#line 88 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_tmp8_); -#line 90 "/home/jens/Source/shotwell/src/util/file.vala" - result = (guint64) 0; -#line 90 "/home/jens/Source/shotwell/src/util/file.vala" - _g_error_free0 (err); -#line 90 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (info); -#line 90 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 706 "file.c" - } - __finally1: -#line 81 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 711 "file.c" - guint64 _tmp11_ = 0ULL; -#line 81 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 81 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (info); -#line 81 "/home/jens/Source/shotwell/src/util/file.vala" - return _tmp11_; -#line 719 "file.c" - } -#line 93 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp12_ = info; -#line 93 "/home/jens/Source/shotwell/src/util/file.vala" - result = (guint64) g_file_info_get_size (_tmp12_); -#line 93 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (info); -#line 93 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 729 "file.c" - } else { - GFileType _tmp13_; -#line 94 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp13_ = type; -#line 94 "/home/jens/Source/shotwell/src/util/file.vala" - if (_tmp13_ != G_FILE_TYPE_DIRECTORY) { -#line 95 "/home/jens/Source/shotwell/src/util/file.vala" - result = (guint64) 0; -#line 95 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 740 "file.c" - } - } - { - GFileEnumerator* _tmp14_ = NULL; - GFileEnumerator* _tmp15_; - GFileEnumerator* _tmp16_; - GFileEnumerator* _tmp17_; -#line 100 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp15_ = g_file_enumerate_children (file_or_dir, G_FILE_ATTRIBUTE_STANDARD_NAME, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, cancellable, &_inner_error_); -#line 100 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp14_ = _tmp15_; -#line 100 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 754 "file.c" - goto __catch2_g_error; - } -#line 100 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp16_ = _tmp14_; -#line 100 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp14_ = NULL; -#line 100 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (enumerator); -#line 100 "/home/jens/Source/shotwell/src/util/file.vala" - enumerator = _tmp16_; -#line 102 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp17_ = enumerator; -#line 102 "/home/jens/Source/shotwell/src/util/file.vala" - if (_tmp17_ == NULL) { -#line 103 "/home/jens/Source/shotwell/src/util/file.vala" - result = (guint64) 0; -#line 103 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (_tmp14_); -#line 103 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (enumerator); -#line 103 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 777 "file.c" - } -#line 99 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (_tmp14_); -#line 781 "file.c" - } - goto __finally2; - __catch2_g_error: - { - GError* err = NULL; - gboolean _tmp18_ = FALSE; - GError* _tmp19_; - GError* _tmp21_; - GError* _tmp22_; -#line 99 "/home/jens/Source/shotwell/src/util/file.vala" - err = _inner_error_; -#line 99 "/home/jens/Source/shotwell/src/util/file.vala" - _inner_error_ = NULL; -#line 106 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp19_ = err; -#line 106 "/home/jens/Source/shotwell/src/util/file.vala" - if (g_error_matches (_tmp19_, G_FILE_ERROR, G_FILE_ERROR_PERM)) { -#line 106 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp18_ = TRUE; -#line 801 "file.c" - } else { - GError* _tmp20_; -#line 106 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp20_ = err; -#line 106 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp18_ = g_error_matches (_tmp20_, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED); -#line 808 "file.c" - } -#line 106 "/home/jens/Source/shotwell/src/util/file.vala" - if (_tmp18_) { -#line 107 "/home/jens/Source/shotwell/src/util/file.vala" - result = (guint64) 0; -#line 107 "/home/jens/Source/shotwell/src/util/file.vala" - _g_error_free0 (err); -#line 107 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (enumerator); -#line 107 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 820 "file.c" - } -#line 109 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp21_ = err; -#line 109 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp22_ = _g_error_copy0 (_tmp21_); -#line 109 "/home/jens/Source/shotwell/src/util/file.vala" - _inner_error_ = _tmp22_; -#line 109 "/home/jens/Source/shotwell/src/util/file.vala" - _g_error_free0 (err); -#line 830 "file.c" - goto __finally2; - } - __finally2: -#line 99 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 836 "file.c" - guint64 _tmp23_ = 0ULL; -#line 99 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 99 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (enumerator); -#line 99 "/home/jens/Source/shotwell/src/util/file.vala" - return _tmp23_; -#line 844 "file.c" - } -#line 112 "/home/jens/Source/shotwell/src/util/file.vala" - total_bytes = (guint64) 0; -#line 114 "/home/jens/Source/shotwell/src/util/file.vala" - info = NULL; -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - while (TRUE) { -#line 852 "file.c" - GFileInfo* _tmp24_ = NULL; - GFileEnumerator* _tmp25_; - GFileInfo* _tmp26_; - GFileInfo* _tmp28_; - GFileInfo* _tmp29_; - guint64 _tmp30_ = 0ULL; - GFileInfo* _tmp31_; - const gchar* _tmp32_; - GFile* _tmp33_; - GFile* _tmp34_; - guint64 _tmp35_; - guint64 _tmp37_; -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp25_ = enumerator; -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp26_ = g_file_enumerator_next_file (_tmp25_, cancellable, &_inner_error_); -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp24_ = _tmp26_; -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 873 "file.c" - guint64 _tmp27_ = 0ULL; -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (info); -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (enumerator); -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - return _tmp27_; -#line 883 "file.c" - } -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp28_ = _tmp24_; -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp24_ = NULL; -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (info); -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - info = _tmp28_; -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp29_ = info; -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - if (!(_tmp29_ != NULL)) { -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (_tmp24_); -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - break; -#line 901 "file.c" - } -#line 116 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp31_ = info; -#line 116 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp32_ = g_file_info_get_name (_tmp31_); -#line 116 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp33_ = g_file_get_child (file_or_dir, _tmp32_); -#line 116 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp34_ = _tmp33_; -#line 116 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp35_ = query_total_file_size (_tmp34_, cancellable, &_inner_error_); -#line 116 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (_tmp34_); -#line 116 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp30_ = _tmp35_; -#line 116 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 919 "file.c" - guint64 _tmp36_ = 0ULL; -#line 116 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 116 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (_tmp24_); -#line 116 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (info); -#line 116 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (enumerator); -#line 116 "/home/jens/Source/shotwell/src/util/file.vala" - return _tmp36_; -#line 931 "file.c" - } -#line 116 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp37_ = total_bytes; -#line 116 "/home/jens/Source/shotwell/src/util/file.vala" - total_bytes = _tmp37_ + _tmp30_; -#line 115 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (_tmp24_); -#line 939 "file.c" - } -#line 118 "/home/jens/Source/shotwell/src/util/file.vala" - result = total_bytes; -#line 118 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (info); -#line 118 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (enumerator); -#line 118 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 949 "file.c" -} - - -void -delete_all_files (GFile* dir, - GeeSet* exceptions, - ProgressMonitor monitor, - void* monitor_target, - guint64 file_count, - GCancellable* cancellable, - GError** error) -{ - GFileType type = 0; - GFileType _tmp0_; - GFileEnumerator* enumerator = NULL; - GFileEnumerator* _tmp7_; - GFileInfo* info = NULL; - guint64 i = 0ULL; - GError * _inner_error_ = NULL; -#line 125 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_if_fail (G_IS_FILE (dir)); -#line 125 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_if_fail ((exceptions == NULL) || GEE_IS_SET (exceptions)); -#line 125 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_if_fail ((cancellable == NULL) || G_IS_CANCELLABLE (cancellable)); -#line 127 "/home/jens/Source/shotwell/src/util/file.vala" - type = g_file_query_file_type (dir, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL); -#line 128 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp0_ = type; -#line 128 "/home/jens/Source/shotwell/src/util/file.vala" - if (_tmp0_ != G_FILE_TYPE_DIRECTORY) { -#line 981 "file.c" - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - GError* _tmp5_; - GError* _tmp6_; -#line 129 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp1_ = g_file_get_path (dir); -#line 129 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp2_ = _tmp1_; -#line 129 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp3_ = g_strdup_printf ("%s is not a directory", _tmp2_); -#line 129 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp4_ = _tmp3_; -#line 129 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp5_ = g_error_new_literal (G_IO_ERROR, G_IO_ERROR_NOT_DIRECTORY, _tmp4_); -#line 129 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp6_ = _tmp5_; -#line 129 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_tmp4_); -#line 129 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_tmp2_); -#line 129 "/home/jens/Source/shotwell/src/util/file.vala" - _inner_error_ = _tmp6_; -#line 129 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 129 "/home/jens/Source/shotwell/src/util/file.vala" - return; -#line 1010 "file.c" - } -#line 131 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp7_ = g_file_enumerate_children (dir, "standard::name,standard::type", G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, cancellable, &_inner_error_); -#line 131 "/home/jens/Source/shotwell/src/util/file.vala" - enumerator = _tmp7_; -#line 131 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 131 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 131 "/home/jens/Source/shotwell/src/util/file.vala" - return; -#line 1022 "file.c" - } -#line 133 "/home/jens/Source/shotwell/src/util/file.vala" - info = NULL; -#line 134 "/home/jens/Source/shotwell/src/util/file.vala" - i = (guint64) 0; -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - while (TRUE) { -#line 1030 "file.c" - GFileInfo* _tmp8_ = NULL; - GFileEnumerator* _tmp9_; - GFileInfo* _tmp10_; - GFileInfo* _tmp11_; - GFileInfo* _tmp12_; - GFileInfo* _tmp13_; - gboolean _tmp14_ = FALSE; - GFile* file = NULL; - GFileInfo* _tmp17_; - const gchar* _tmp18_; - GFile* _tmp19_; - gboolean _tmp26_ = FALSE; -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp9_ = enumerator; -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp10_ = g_file_enumerator_next_file (_tmp9_, cancellable, &_inner_error_); -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp8_ = _tmp10_; -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (info); -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (enumerator); -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - return; -#line 1059 "file.c" - } -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp11_ = _tmp8_; -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp8_ = NULL; -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (info); -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - info = _tmp11_; -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp12_ = info; -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - if (!(_tmp12_ != NULL)) { -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (_tmp8_); -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - break; -#line 1077 "file.c" - } -#line 136 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp13_ = info; -#line 136 "/home/jens/Source/shotwell/src/util/file.vala" - if (g_file_info_get_file_type (_tmp13_) != G_FILE_TYPE_REGULAR) { -#line 137 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (_tmp8_); -#line 137 "/home/jens/Source/shotwell/src/util/file.vala" - continue; -#line 1087 "file.c" - } -#line 139 "/home/jens/Source/shotwell/src/util/file.vala" - if (exceptions != NULL) { -#line 1091 "file.c" - GFileInfo* _tmp15_; - const gchar* _tmp16_; -#line 139 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp15_ = info; -#line 139 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp16_ = g_file_info_get_name (_tmp15_); -#line 139 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp14_ = gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (exceptions, GEE_TYPE_COLLECTION, GeeCollection), _tmp16_); -#line 1100 "file.c" - } else { -#line 139 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp14_ = FALSE; -#line 1104 "file.c" - } -#line 139 "/home/jens/Source/shotwell/src/util/file.vala" - if (_tmp14_) { -#line 140 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (_tmp8_); -#line 140 "/home/jens/Source/shotwell/src/util/file.vala" - continue; -#line 1112 "file.c" - } -#line 142 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp17_ = info; -#line 142 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp18_ = g_file_info_get_name (_tmp17_); -#line 142 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp19_ = g_file_get_child (dir, _tmp18_); -#line 142 "/home/jens/Source/shotwell/src/util/file.vala" - file = _tmp19_; -#line 1122 "file.c" - { - GFile* _tmp20_; -#line 144 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp20_ = file; -#line 144 "/home/jens/Source/shotwell/src/util/file.vala" - g_file_delete (_tmp20_, cancellable, &_inner_error_); -#line 144 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1131 "file.c" - goto __catch3_g_error; - } - } - goto __finally3; - __catch3_g_error: - { - GError* err = NULL; - GFile* _tmp21_; - gchar* _tmp22_; - gchar* _tmp23_; - GError* _tmp24_; - const gchar* _tmp25_; -#line 143 "/home/jens/Source/shotwell/src/util/file.vala" - err = _inner_error_; -#line 143 "/home/jens/Source/shotwell/src/util/file.vala" - _inner_error_ = NULL; -#line 146 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp21_ = file; -#line 146 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp22_ = g_file_get_path (_tmp21_); -#line 146 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp23_ = _tmp22_; -#line 146 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp24_ = err; -#line 146 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp25_ = _tmp24_->message; -#line 146 "/home/jens/Source/shotwell/src/util/file.vala" - g_warning ("file.vala:146: Unable to delete file %s: %s", _tmp23_, _tmp25_); -#line 146 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_tmp23_); -#line 143 "/home/jens/Source/shotwell/src/util/file.vala" - _g_error_free0 (err); -#line 1164 "file.c" - } - __finally3: -#line 143 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 143 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 143 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (file); -#line 143 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (_tmp8_); -#line 143 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (info); -#line 143 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (enumerator); -#line 143 "/home/jens/Source/shotwell/src/util/file.vala" - return; -#line 1181 "file.c" - } -#line 149 "/home/jens/Source/shotwell/src/util/file.vala" - if (monitor != NULL) { -#line 149 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp26_ = file_count > ((guint64) 0); -#line 1187 "file.c" - } else { -#line 149 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp26_ = FALSE; -#line 1191 "file.c" - } -#line 149 "/home/jens/Source/shotwell/src/util/file.vala" - if (_tmp26_) { -#line 1195 "file.c" - guint64 _tmp27_; - guint64 _tmp28_; -#line 150 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp27_ = i; -#line 150 "/home/jens/Source/shotwell/src/util/file.vala" - i = _tmp27_ + 1; -#line 150 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp28_ = i; -#line 150 "/home/jens/Source/shotwell/src/util/file.vala" - monitor (file_count, _tmp28_, TRUE, monitor_target); -#line 1206 "file.c" - } -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (file); -#line 135 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (_tmp8_); -#line 1212 "file.c" - } -#line 125 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (info); -#line 125 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (enumerator); -#line 1218 "file.c" -} - - -time_t -query_file_modified (GFile* file, - GError** error) -{ - time_t result = 0; - GFileInfo* info = NULL; - GFileInfo* _tmp0_; - GTimeVal _tmp2_ = {0}; - glong _tmp3_; - GError * _inner_error_ = NULL; -#line 154 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_val_if_fail (G_IS_FILE (file), 0); -#line 155 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp0_ = g_file_query_info (file, G_FILE_ATTRIBUTE_TIME_MODIFIED, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_); -#line 155 "/home/jens/Source/shotwell/src/util/file.vala" - info = _tmp0_; -#line 155 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1240 "file.c" - time_t _tmp1_ = 0; -#line 155 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 155 "/home/jens/Source/shotwell/src/util/file.vala" - return _tmp1_; -#line 1246 "file.c" - } -#line 158 "/home/jens/Source/shotwell/src/util/file.vala" - g_file_info_get_modification_time (info, &_tmp2_); -#line 158 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp3_ = _tmp2_.tv_sec; -#line 158 "/home/jens/Source/shotwell/src/util/file.vala" - result = (time_t) _tmp3_; -#line 158 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (info); -#line 158 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 1258 "file.c" -} - - -gboolean -query_is_directory (GFile* file) -{ - gboolean result = FALSE; -#line 161 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 162 "/home/jens/Source/shotwell/src/util/file.vala" - result = g_file_query_file_type (file, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL) == G_FILE_TYPE_DIRECTORY; -#line 162 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 1272 "file.c" -} - - -gboolean -query_is_directory_empty (GFile* dir, - GError** error) -{ - gboolean result = FALSE; - GFileEnumerator* enumerator = NULL; - GFileEnumerator* _tmp0_; - GFileEnumerator* _tmp2_; - GFileInfo* _tmp3_ = NULL; - GFileEnumerator* _tmp4_; - GFileInfo* _tmp5_; - GError * _inner_error_ = NULL; -#line 165 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_val_if_fail (G_IS_FILE (dir), FALSE); -#line 166 "/home/jens/Source/shotwell/src/util/file.vala" - if (g_file_query_file_type (dir, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL) != G_FILE_TYPE_DIRECTORY) { -#line 167 "/home/jens/Source/shotwell/src/util/file.vala" - result = FALSE; -#line 167 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 1296 "file.c" - } -#line 169 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp0_ = g_file_enumerate_children (dir, "standard::name", G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_); -#line 169 "/home/jens/Source/shotwell/src/util/file.vala" - enumerator = _tmp0_; -#line 169 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1304 "file.c" - gboolean _tmp1_ = FALSE; -#line 169 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 169 "/home/jens/Source/shotwell/src/util/file.vala" - return _tmp1_; -#line 1310 "file.c" - } -#line 171 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp2_ = enumerator; -#line 171 "/home/jens/Source/shotwell/src/util/file.vala" - if (_tmp2_ == NULL) { -#line 172 "/home/jens/Source/shotwell/src/util/file.vala" - result = FALSE; -#line 172 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (enumerator); -#line 172 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 1322 "file.c" - } -#line 174 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp4_ = enumerator; -#line 174 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp5_ = g_file_enumerator_next_file (_tmp4_, NULL, &_inner_error_); -#line 174 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp3_ = _tmp5_; -#line 174 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1332 "file.c" - gboolean _tmp6_ = FALSE; -#line 174 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 174 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (enumerator); -#line 174 "/home/jens/Source/shotwell/src/util/file.vala" - return _tmp6_; -#line 1340 "file.c" - } -#line 174 "/home/jens/Source/shotwell/src/util/file.vala" - result = _tmp3_ == NULL; -#line 174 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (_tmp3_); -#line 174 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (enumerator); -#line 174 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 1350 "file.c" -} - - -gchar* -get_display_pathname (GFile* file) -{ - gchar* result = NULL; - gchar* path = NULL; - gchar* _tmp0_; - gchar* home = NULL; - const gchar* _tmp1_; - gchar* _tmp2_; - const gchar* _tmp3_; - const gchar* _tmp4_; - const gchar* _tmp6_; - const gchar* _tmp7_; -#line 177 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 179 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp0_ = g_file_get_parse_name (file); -#line 179 "/home/jens/Source/shotwell/src/util/file.vala" - path = _tmp0_; -#line 180 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp1_ = g_get_home_dir (); -#line 180 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp2_ = g_strdup (_tmp1_); -#line 180 "/home/jens/Source/shotwell/src/util/file.vala" - home = _tmp2_; -#line 182 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp3_ = path; -#line 182 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp4_ = home; -#line 182 "/home/jens/Source/shotwell/src/util/file.vala" - if (g_strcmp0 (_tmp3_, _tmp4_) == 0) { -#line 1385 "file.c" - gchar* _tmp5_; -#line 183 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp5_ = g_strdup ("~"); -#line 183 "/home/jens/Source/shotwell/src/util/file.vala" - result = _tmp5_; -#line 183 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (home); -#line 183 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (path); -#line 183 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 1397 "file.c" - } -#line 185 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp6_ = path; -#line 185 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp7_ = home; -#line 185 "/home/jens/Source/shotwell/src/util/file.vala" - if (g_str_has_prefix (_tmp6_, _tmp7_)) { -#line 1405 "file.c" - const gchar* _tmp8_; - const gchar* _tmp9_; - gint _tmp10_; - gint _tmp11_; - gchar* _tmp12_; - gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; -#line 186 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp8_ = path; -#line 186 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp9_ = home; -#line 186 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp10_ = strlen (_tmp9_); -#line 186 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp11_ = _tmp10_; -#line 186 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp12_ = string_substring (_tmp8_, (glong) _tmp11_, (glong) -1); -#line 186 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp13_ = _tmp12_; -#line 186 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp14_ = g_strdup_printf ("~%s", _tmp13_); -#line 186 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp15_ = _tmp14_; -#line 186 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_tmp13_); -#line 186 "/home/jens/Source/shotwell/src/util/file.vala" - result = _tmp15_; -#line 186 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (home); -#line 186 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (path); -#line 186 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 1440 "file.c" - } -#line 188 "/home/jens/Source/shotwell/src/util/file.vala" - result = path; -#line 188 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (home); -#line 188 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 1448 "file.c" -} - - -gchar* -strip_pretty_path (const gchar* path) -{ - gchar* result = NULL; - const gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 191 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_val_if_fail (path != NULL, NULL); -#line 192 "/home/jens/Source/shotwell/src/util/file.vala" - if (!g_str_has_prefix (path, "~")) { -#line 1465 "file.c" - gchar* _tmp0_; -#line 193 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp0_ = g_strdup (path); -#line 193 "/home/jens/Source/shotwell/src/util/file.vala" - result = _tmp0_; -#line 193 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 1473 "file.c" - } -#line 195 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp1_ = g_get_home_dir (); -#line 195 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp2_ = string_substring (path, (glong) 1, (glong) -1); -#line 195 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp3_ = _tmp2_; -#line 195 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp4_ = g_strconcat (_tmp1_, _tmp3_, NULL); -#line 195 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp5_ = _tmp4_; -#line 195 "/home/jens/Source/shotwell/src/util/file.vala" - _g_free0 (_tmp3_); -#line 195 "/home/jens/Source/shotwell/src/util/file.vala" - result = _tmp5_; -#line 195 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 1491 "file.c" -} - - -gchar* -get_file_info_id (GFileInfo* info) -{ - gchar* result = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; -#line 198 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_val_if_fail (G_IS_FILE_INFO (info), NULL); -#line 199 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp0_ = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_ID_FILE); -#line 199 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp1_ = g_strdup (_tmp0_); -#line 199 "/home/jens/Source/shotwell/src/util/file.vala" - result = _tmp1_; -#line 199 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 1511 "file.c" -} - - -void -skip_uint64 (GInputStream* input, - guint64 skip_amount, - GError** error) -{ - GError * _inner_error_ = NULL; -#line 203 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_if_fail (G_IS_INPUT_STREAM (input)); -#line 204 "/home/jens/Source/shotwell/src/util/file.vala" - while (TRUE) { -#line 204 "/home/jens/Source/shotwell/src/util/file.vala" - if (!(skip_amount > ((guint64) 0))) { -#line 204 "/home/jens/Source/shotwell/src/util/file.vala" - break; -#line 1529 "file.c" - } -#line 206 "/home/jens/Source/shotwell/src/util/file.vala" - if (skip_amount >= ((guint64) G_MAXSSIZE)) { -#line 207 "/home/jens/Source/shotwell/src/util/file.vala" - g_input_stream_skip (input, (gsize) G_MAXSSIZE, NULL, &_inner_error_); -#line 207 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 207 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 207 "/home/jens/Source/shotwell/src/util/file.vala" - return; -#line 1541 "file.c" - } -#line 208 "/home/jens/Source/shotwell/src/util/file.vala" - skip_amount = skip_amount - G_MAXSSIZE; -#line 1545 "file.c" - } else { -#line 210 "/home/jens/Source/shotwell/src/util/file.vala" - g_input_stream_skip (input, (gsize) skip_amount, NULL, &_inner_error_); -#line 210 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 210 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 210 "/home/jens/Source/shotwell/src/util/file.vala" - return; -#line 1555 "file.c" - } -#line 211 "/home/jens/Source/shotwell/src/util/file.vala" - skip_amount = (guint64) 0; -#line 1559 "file.c" - } - } -} - - -guint64 -count_files_in_directory (GFile* dir, - GError** error) -{ - guint64 result = 0ULL; - guint64 count = 0ULL; - GFileEnumerator* enumerator = NULL; - GFileEnumerator* _tmp0_; - GFileInfo* info = NULL; - GError * _inner_error_ = NULL; -#line 217 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_val_if_fail (G_IS_FILE (dir), 0ULL); -#line 218 "/home/jens/Source/shotwell/src/util/file.vala" - if (!query_is_directory (dir)) { -#line 219 "/home/jens/Source/shotwell/src/util/file.vala" - result = (guint64) 0; -#line 219 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 1583 "file.c" - } -#line 221 "/home/jens/Source/shotwell/src/util/file.vala" - count = (guint64) 0; -#line 222 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp0_ = g_file_enumerate_children (dir, "standard::*", G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_); -#line 222 "/home/jens/Source/shotwell/src/util/file.vala" - enumerator = _tmp0_; -#line 222 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1593 "file.c" - guint64 _tmp1_ = 0ULL; -#line 222 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 222 "/home/jens/Source/shotwell/src/util/file.vala" - return _tmp1_; -#line 1599 "file.c" - } -#line 225 "/home/jens/Source/shotwell/src/util/file.vala" - info = NULL; -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - while (TRUE) { -#line 1605 "file.c" - GFileInfo* _tmp2_ = NULL; - GFileEnumerator* _tmp3_; - GFileInfo* _tmp4_; - GFileInfo* _tmp6_; - GFileInfo* _tmp7_; - guint64 _tmp8_; -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp3_ = enumerator; -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp4_ = g_file_enumerator_next_file (_tmp3_, NULL, &_inner_error_); -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp2_ = _tmp4_; -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1620 "file.c" - guint64 _tmp5_ = 0ULL; -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - g_propagate_error (error, _inner_error_); -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (info); -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (enumerator); -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - return _tmp5_; -#line 1630 "file.c" - } -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp6_ = _tmp2_; -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp2_ = NULL; -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (info); -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - info = _tmp6_; -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp7_ = info; -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - if (!(_tmp7_ != NULL)) { -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (_tmp2_); -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - break; -#line 1648 "file.c" - } -#line 227 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp8_ = count; -#line 227 "/home/jens/Source/shotwell/src/util/file.vala" - count = _tmp8_ + 1; -#line 226 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (_tmp2_); -#line 1656 "file.c" - } -#line 229 "/home/jens/Source/shotwell/src/util/file.vala" - result = count; -#line 229 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (info); -#line 229 "/home/jens/Source/shotwell/src/util/file.vala" - _g_object_unref0 (enumerator); -#line 229 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 1666 "file.c" -} - - -gboolean -file_equal (GFile* a, - GFile* b) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; -#line 233 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_val_if_fail ((a == NULL) || G_IS_FILE (a), FALSE); -#line 233 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_val_if_fail ((b == NULL) || G_IS_FILE (b), FALSE); -#line 234 "/home/jens/Source/shotwell/src/util/file.vala" - if (a != NULL) { -#line 234 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp1_ = b != NULL; -#line 1685 "file.c" - } else { -#line 234 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp1_ = FALSE; -#line 1689 "file.c" - } -#line 234 "/home/jens/Source/shotwell/src/util/file.vala" - if (_tmp1_) { -#line 234 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp0_ = g_file_equal (a, b); -#line 1695 "file.c" - } else { -#line 234 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp0_ = FALSE; -#line 1699 "file.c" - } -#line 234 "/home/jens/Source/shotwell/src/util/file.vala" - result = _tmp0_; -#line 234 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 1705 "file.c" -} - - -guint -file_hash (GFile* file) -{ - guint result = 0U; - guint _tmp0_ = 0U; -#line 238 "/home/jens/Source/shotwell/src/util/file.vala" - g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), 0U); -#line 239 "/home/jens/Source/shotwell/src/util/file.vala" - if (file != NULL) { -#line 239 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp0_ = g_file_hash (file); -#line 1720 "file.c" - } else { -#line 239 "/home/jens/Source/shotwell/src/util/file.vala" - _tmp0_ = (guint) 0; -#line 1724 "file.c" - } -#line 239 "/home/jens/Source/shotwell/src/util/file.vala" - result = _tmp0_; -#line 239 "/home/jens/Source/shotwell/src/util/file.vala" - return result; -#line 1730 "file.c" -} - - - diff --git a/src/util/image.c b/src/util/image.c deleted file mode 100644 index 5f3cbd0..0000000 --- a/src/util/image.c +++ /dev/null @@ -1,2633 +0,0 @@ -/* image.c generated by valac 0.40.4, the Vala compiler - * generated from image.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/* XPM */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_DIMENSIONS (dimensions_get_type ()) -typedef struct _Dimensions Dimensions; -#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL))) -#define _cairo_surface_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_surface_destroy (var), NULL))) - -#define TYPE_CONFIGURATION_FACADE (configuration_facade_get_type ()) -#define CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacade)) -#define CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) -#define IS_CONFIGURATION_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_FACADE)) -#define IS_CONFIGURATION_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_FACADE)) -#define CONFIGURATION_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_FACADE, ConfigurationFacadeClass)) - -typedef struct _ConfigurationFacade ConfigurationFacade; -typedef struct _ConfigurationFacadeClass ConfigurationFacadeClass; - -#define CONFIG_TYPE_FACADE (config_facade_get_type ()) -#define CONFIG_FACADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIG_TYPE_FACADE, ConfigFacade)) -#define CONFIG_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CONFIG_TYPE_FACADE, ConfigFacadeClass)) -#define CONFIG_IS_FACADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CONFIG_TYPE_FACADE)) -#define CONFIG_IS_FACADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CONFIG_TYPE_FACADE)) -#define CONFIG_FACADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CONFIG_TYPE_FACADE, ConfigFacadeClass)) - -typedef struct _ConfigFacade ConfigFacade; -typedef struct _ConfigFacadeClass ConfigFacadeClass; -#define _g_free0(var) (var = (g_free (var), NULL)) - -#define TYPE_BOX (box_get_type ()) -typedef struct _Box Box; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -struct _Dimensions { - gint width; - gint height; -}; - -struct _Box { - gint left; - gint top; - gint right; - gint bottom; -}; - - -extern cairo_surface_t* background_surface; -cairo_surface_t* background_surface = NULL; - -gboolean is_color_parsable (const gchar* spec); -void parse_color (const gchar* spec, - GdkRGBA* result); -void fetch_color (const gchar* spec, - GdkRGBA* result); -void set_source_color_from_string (cairo_t* ctx, - const gchar* spec); -#define MIN_SCALED_WIDTH 10 -#define MIN_SCALED_HEIGHT 10 -GdkPixbuf* get_placeholder_pixbuf (void); -GdkPixbuf* scale_pixbuf (GdkPixbuf* pixbuf, - gint scale, - GdkInterpType interp, - gboolean scale_up); -GType dimensions_get_type (void) G_GNUC_CONST; -Dimensions* dimensions_dup (const Dimensions* self); -void dimensions_free (Dimensions* self); -void dimensions_for_pixbuf (GdkPixbuf* pixbuf, - Dimensions* result); -void dimensions_get_scaled (Dimensions *self, - gint scale, - gboolean scale_up, - Dimensions* result); -void dimensions_with_min (Dimensions *self, - gint min_width, - gint min_height, - Dimensions* result); -GdkPixbuf* resize_pixbuf (GdkPixbuf* pixbuf, - Dimensions* resized, - GdkInterpType interp); -#define DEGREE (G_PI / 180.0) -void draw_rounded_corners_filled (cairo_t* ctx, - Dimensions* dim, - GdkPoint* origin, - gdouble radius_proportion); -void context_rounded_corners (cairo_t* cx, - Dimensions* dim, - GdkPoint* origin, - gdouble radius_proportion); -gint dimensions_minor_axis (Dimensions *self); -guchar shift_color_byte (gint b, - gint shift); -void shift_colors (GdkPixbuf* pixbuf, - gint red, - gint green, - gint blue, - gint alpha); -gboolean coord_in_rectangle (gint x, - gint y, - GdkRectangle* rect); -gboolean rectangles_equal (GdkRectangle* a, - GdkRectangle* b); -gchar* rectangle_to_string (GdkRectangle* rect); -void clamp_rectangle (GdkRectangle* original, - Dimensions* max, - GdkRectangle* result); -void scale_point (GdkPoint* p, - gdouble factor, - GdkPoint* result); -void add_points (GdkPoint* p1, - GdkPoint* p2, - GdkPoint* result); -void subtract_points (GdkPoint* p1, - GdkPoint* p2, - GdkPoint* result); -void fix_cairo_pixbuf (GdkPixbuf* pixbuf); -void compute_arb_rotated_size (gdouble src_width, - gdouble src_height, - gdouble angle, - gdouble* dest_width, - gdouble* dest_height); -gdouble degrees_to_radians (gdouble theta); -GdkPixbuf* rotate_arb (GdkPixbuf* source_pixbuf, - gdouble angle); -void rotate_point_arb (GdkPoint* source_point, - gint img_w, - gint img_h, - gdouble angle, - gboolean invert, - GdkPoint* result); -void derotate_point_arb (GdkPoint* source_point, - gint img_w, - gint img_h, - gdouble angle, - GdkPoint* result); -cairo_surface_t* get_background_surface (void); -GType configuration_facade_get_type (void) G_GNUC_CONST; -GType config_facade_get_type (void) G_GNUC_CONST; -ConfigFacade* config_facade_get_instance (void); -gchar* configuration_facade_get_transparent_background_type (ConfigurationFacade* self); -gchar* configuration_facade_get_transparent_background_color (ConfigurationFacade* self); -void invalidate_transparent_background (void); -void paint_pixmap_with_background (cairo_t* ctx, - GdkPixbuf* pixbuf, - gint x, - gint y); -GType box_get_type (void) G_GNUC_CONST; -Box* box_dup (const Box* self); -void box_free (Box* self); -void clamp_inside_rotated_image (Box* src, - gint img_w, - gint img_h, - gdouble angle_deg, - gboolean preserve_geom, - Box* result); -void box_get_offset (Box *self, - gint xofs, - gint yofs, - Box* result); -void box_init (Box *self, - gint left, - gint top, - gint right, - gint bottom); - -const gchar* fallback_image_missing[103] = {"48 48 54 1 ", " c #6A6D67", ". c #6C6E69", "X c #72746F", "o c #747672", "O c #777974", "+ c #797B77", "@ c #7C7E7A", "# c #7F817C", "$ c #81837F", "% c #848682", "& c #878984", "* c #888A86", "= c #8C8D8A", "- c #8F908C", "; c #90928E", ": c #949591", "> c #969894", ", c #999B96", "< c #9C9E9A", "1 c #9FA09C", "2 c #A1A39E", "3 c #A4A6A2", "4 c #A6A9A4", "5 c #A9ABA6", "6 c #ACADA9", "7 c #AEB1AB", "8 c #B1B2AF", "9 c #B3B4B1", "0 c #B6B9B3", "q c #B9BCB6", "w c #BDBEBA", "e c #BEC2BB", "r c #C1C4BE", "t c #C5C5C2", "y c #C6C9C3", "u c #C9CCC6", "i c #CCCDCB", "p c #CED2CA", "a c #D2D6CE", "s c #D5D5D3", "d c #D7D8D5", "f c #D9D9D6", "g c #DCDCDA", "h c #DFE0DD", "j c #E0E0DE", "k c #E4E4E2", "l c #E7E8E5", "z c #E9E9E7", "x c #EDEDEC", "c c #EFF0EE", "v c #F1F1EF", "b c #F2F2F1", "n c #FFFFFF", "m c None", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmaaaaaaaaaasaisaaaaaaaaaaaaaaaaaaapppiipuuuuumm", "mannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnym", "manbbbbbbbbbvbbvvvvxvvvbvvvvvvvvccccccxxvxvxxnym", "manbt89898888988888888888999999999999999999txnrm", "manb6======================-;;=;;;;;;;;;;=:7znrm", "manv6&%%**%*%%%%*%%****=======;==;;;;=;=;==7znem", "manv4%%%%$%%%%%%%%%%%=****=======;==-======6znwm", "manx3%%#$$$$##%#$%%%*%**==========-=--=====6znqm", "manx1$@%#$@$###%%%%=****=*===--;;----====*=5lnqm", "manx<@@@@@@@@##%$%%%%****========-==-======5kn0m", "manz<@@@+@+@@@#$%%%%%=%=%===;=:=--------=-*4kn8m", "manz>O+O+O+@@@#$$%%%%========;;=--------=*=3kn9m", "mpnl:OOOOO+@@$##%%%%%=%=====;=;;--;-----===3kn8m", "munl;OooOOO@@@#$%%%%%======;;;;;:;;;;;---==1hn7m", "munl;oXoOO+@###$%%=%=======;::;::::;;---&#+-gn7m", "mynk*XXooOO+$$#$%%%%=%===;;:;:::::;:-$#XooX-fn5m", "mynk*XXOOO@@$$$$%%=%====;::::>::;*#OXXXXXXX*dn5m", "mrnk*oOO@@@#$$$$%=====::::>>>=%@OXOooXXXooo&dn3m", "mrnj*++@$$$$**$===-;;::>>:=@Ooo@XOOoo#o#OOO=fn3m", "menj*@#$$$$$**===;;:::=%@@@@@@O@#O#Oo#o#++@;gn2m", "menj*$$$$&**===;:;=*#@@@@@@@@@@@#######o##%>gn2m", "menh*$$%**===;=*%###########%@@@###$####$%=,gn1m", "m0nj=%***=**&$$$%$$$%$$%$$$$%$$$$$$$$$$%*;:2hn13gn,m", "m0ng****&&&&&&&&&&&&*%*%*%%*%******%**-:,136kz;m", "m0nh***$&&&&&&&&&&&&%**********%*$***;:,1358r7*m", "m8ng*&&&&&&&&&*$&*&&&&$=$=$=&&&&&&**=:,<11>$65mm", "m7ng*&&&&&&&&&**&&&&&&**=$-$&&&&&&*-:,1..&1wi:mm", "m7ng&&&&&&&&=$*$&&&&&***$$$$&&&***=>,1,225;5srw%mmmm", "m4nf3*&&**&&$-$-*******%$;&&*&*->,2365+ui7$mmmmm", "m3nsfffdddsddaffssssdassgaaaassddfgjg4wu;ommmmmm", "m3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnvq3<$.mmmmmmm", "mm2211111,<,,,,,,>>>>:::;::;----=====@mmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm"}; - -gboolean -is_color_parsable (const gchar* spec) -{ - gboolean result = FALSE; - GdkRGBA color = {0}; -#line 117 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_val_if_fail (spec != NULL, FALSE); -#line 118 "/home/jens/Source/shotwell/src/util/image.vala" - memset (&color, 0, sizeof (GdkRGBA)); -#line 119 "/home/jens/Source/shotwell/src/util/image.vala" - result = gdk_rgba_parse (&color, spec); -#line 119 "/home/jens/Source/shotwell/src/util/image.vala" - return result; -#line 206 "image.c" -} - - -void -parse_color (const gchar* spec, - GdkRGBA* result) -{ - GdkRGBA _tmp0_ = {0}; -#line 122 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (spec != NULL); -#line 123 "/home/jens/Source/shotwell/src/util/image.vala" - fetch_color (spec, &_tmp0_); -#line 123 "/home/jens/Source/shotwell/src/util/image.vala" - *result = _tmp0_; -#line 123 "/home/jens/Source/shotwell/src/util/image.vala" - return; -#line 223 "image.c" -} - - -void -fetch_color (const gchar* spec, - GdkRGBA* result) -{ - GdkRGBA rgba = {0}; -#line 126 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (spec != NULL); -#line 127 "/home/jens/Source/shotwell/src/util/image.vala" - memset (&rgba, 0, sizeof (GdkRGBA)); -#line 128 "/home/jens/Source/shotwell/src/util/image.vala" - if (!gdk_rgba_parse (&rgba, spec)) { -#line 129 "/home/jens/Source/shotwell/src/util/image.vala" - g_error ("image.vala:129: Can't parse color %s", spec); -#line 240 "image.c" - } -#line 131 "/home/jens/Source/shotwell/src/util/image.vala" - *result = rgba; -#line 131 "/home/jens/Source/shotwell/src/util/image.vala" - return; -#line 246 "image.c" -} - - -void -set_source_color_from_string (cairo_t* ctx, - const gchar* spec) -{ - GdkRGBA rgba = {0}; - GdkRGBA _tmp0_ = {0}; - GdkRGBA _tmp1_; - gdouble _tmp2_; - GdkRGBA _tmp3_; - gdouble _tmp4_; - GdkRGBA _tmp5_; - gdouble _tmp6_; - GdkRGBA _tmp7_; - gdouble _tmp8_; -#line 134 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (ctx != NULL); -#line 134 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (spec != NULL); -#line 135 "/home/jens/Source/shotwell/src/util/image.vala" - fetch_color (spec, &_tmp0_); -#line 135 "/home/jens/Source/shotwell/src/util/image.vala" - rgba = _tmp0_; -#line 136 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = rgba; -#line 136 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = _tmp1_.red; -#line 136 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = rgba; -#line 136 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = _tmp3_.green; -#line 136 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp5_ = rgba; -#line 136 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp6_ = _tmp5_.blue; -#line 136 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp7_ = rgba; -#line 136 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp8_ = _tmp7_.alpha; -#line 136 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_set_source_rgba (ctx, _tmp2_, _tmp4_, _tmp6_, _tmp8_); -#line 290 "image.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 147 "/home/jens/Source/shotwell/src/util/image.vala" - return self ? g_object_ref (self) : NULL; -#line 299 "image.c" -} - - -GdkPixbuf* -get_placeholder_pixbuf (void) -{ - GdkPixbuf* result = NULL; - GdkPixbuf* pixbuf = NULL; - GError * _inner_error_ = NULL; -#line 144 "/home/jens/Source/shotwell/src/util/image.vala" - pixbuf = NULL; -#line 311 "image.c" - { - GtkIconTheme* icon_theme = NULL; - GtkIconTheme* _tmp0_; - GtkIconTheme* _tmp1_; - GdkPixbuf* _tmp2_ = NULL; - GdkPixbuf* _tmp3_; - GdkPixbuf* _tmp4_; -#line 147 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = gtk_icon_theme_get_default (); -#line 147 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 147 "/home/jens/Source/shotwell/src/util/image.vala" - icon_theme = _tmp1_; -#line 148 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = gtk_icon_theme_load_icon (icon_theme, "image-missing", (gint) GTK_ICON_SIZE_DIALOG, 0, &_inner_error_); -#line 148 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = _tmp3_; -#line 148 "/home/jens/Source/shotwell/src/util/image.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 148 "/home/jens/Source/shotwell/src/util/image.vala" - _g_object_unref0 (icon_theme); -#line 333 "image.c" - goto __catch4_g_error; - } -#line 148 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = _tmp2_; -#line 148 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = NULL; -#line 148 "/home/jens/Source/shotwell/src/util/image.vala" - _g_object_unref0 (pixbuf); -#line 148 "/home/jens/Source/shotwell/src/util/image.vala" - pixbuf = _tmp4_; -#line 146 "/home/jens/Source/shotwell/src/util/image.vala" - _g_object_unref0 (_tmp2_); -#line 146 "/home/jens/Source/shotwell/src/util/image.vala" - _g_object_unref0 (icon_theme); -#line 348 "image.c" - } - goto __finally4; - __catch4_g_error: - { - GError* _error_ = NULL; - GdkPixbuf* _tmp5_; - GError* _tmp6_; - const gchar* _tmp7_; -#line 146 "/home/jens/Source/shotwell/src/util/image.vala" - _error_ = _inner_error_; -#line 146 "/home/jens/Source/shotwell/src/util/image.vala" - _inner_error_ = NULL; -#line 151 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp5_ = gdk_pixbuf_new_from_xpm_data (fallback_image_missing); -#line 151 "/home/jens/Source/shotwell/src/util/image.vala" - _g_object_unref0 (pixbuf); -#line 151 "/home/jens/Source/shotwell/src/util/image.vala" - pixbuf = _tmp5_; -#line 152 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp6_ = _error_; -#line 152 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp7_ = _tmp6_->message; -#line 152 "/home/jens/Source/shotwell/src/util/image.vala" - g_warning ("image.vala:152: Could not load icon from theme: %s", _tmp7_); -#line 146 "/home/jens/Source/shotwell/src/util/image.vala" - _g_error_free0 (_error_); -#line 375 "image.c" - } - __finally4: -#line 146 "/home/jens/Source/shotwell/src/util/image.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 146 "/home/jens/Source/shotwell/src/util/image.vala" - _g_object_unref0 (pixbuf); -#line 146 "/home/jens/Source/shotwell/src/util/image.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 146 "/home/jens/Source/shotwell/src/util/image.vala" - g_clear_error (&_inner_error_); -#line 146 "/home/jens/Source/shotwell/src/util/image.vala" - return NULL; -#line 388 "image.c" - } -#line 155 "/home/jens/Source/shotwell/src/util/image.vala" - result = pixbuf; -#line 155 "/home/jens/Source/shotwell/src/util/image.vala" - return result; -#line 394 "image.c" -} - - -GdkPixbuf* -scale_pixbuf (GdkPixbuf* pixbuf, - gint scale, - GdkInterpType interp, - gboolean scale_up) -{ - GdkPixbuf* result = NULL; - Dimensions original = {0}; - Dimensions _tmp0_ = {0}; - Dimensions scaled = {0}; - Dimensions _tmp1_ = {0}; - gboolean _tmp2_ = FALSE; - Dimensions _tmp3_; - gint _tmp4_; - Dimensions _tmp5_; - gint _tmp6_; - Dimensions _tmp12_ = {0}; - Dimensions _tmp13_; - gint _tmp14_; - Dimensions _tmp15_; - gint _tmp16_; - GdkPixbuf* _tmp17_; -#line 158 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL); -#line 159 "/home/jens/Source/shotwell/src/util/image.vala" - dimensions_for_pixbuf (pixbuf, &_tmp0_); -#line 159 "/home/jens/Source/shotwell/src/util/image.vala" - original = _tmp0_; -#line 160 "/home/jens/Source/shotwell/src/util/image.vala" - dimensions_get_scaled (&original, scale, scale_up, &_tmp1_); -#line 160 "/home/jens/Source/shotwell/src/util/image.vala" - scaled = _tmp1_; -#line 161 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = original; -#line 161 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = _tmp3_.width; -#line 161 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp5_ = scaled; -#line 161 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp6_ = _tmp5_.width; -#line 161 "/home/jens/Source/shotwell/src/util/image.vala" - if (_tmp4_ == _tmp6_) { -#line 440 "image.c" - Dimensions _tmp7_; - gint _tmp8_; - Dimensions _tmp9_; - gint _tmp10_; -#line 161 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp7_ = original; -#line 161 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp8_ = _tmp7_.height; -#line 161 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp9_ = scaled; -#line 161 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp10_ = _tmp9_.height; -#line 161 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = _tmp8_ == _tmp10_; -#line 455 "image.c" - } else { -#line 161 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = FALSE; -#line 459 "image.c" - } -#line 161 "/home/jens/Source/shotwell/src/util/image.vala" - if (_tmp2_) { -#line 463 "image.c" - GdkPixbuf* _tmp11_; -#line 162 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp11_ = _g_object_ref0 (pixbuf); -#line 162 "/home/jens/Source/shotwell/src/util/image.vala" - result = _tmp11_; -#line 162 "/home/jens/Source/shotwell/src/util/image.vala" - return result; -#line 471 "image.c" - } -#line 165 "/home/jens/Source/shotwell/src/util/image.vala" - dimensions_with_min (&scaled, MIN_SCALED_WIDTH, MIN_SCALED_HEIGHT, &_tmp12_); -#line 165 "/home/jens/Source/shotwell/src/util/image.vala" - scaled = _tmp12_; -#line 167 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp13_ = scaled; -#line 167 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp14_ = _tmp13_.width; -#line 167 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp15_ = scaled; -#line 167 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp16_ = _tmp15_.height; -#line 167 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp17_ = gdk_pixbuf_scale_simple (pixbuf, _tmp14_, _tmp16_, interp); -#line 167 "/home/jens/Source/shotwell/src/util/image.vala" - result = _tmp17_; -#line 167 "/home/jens/Source/shotwell/src/util/image.vala" - return result; -#line 491 "image.c" -} - - -GdkPixbuf* -resize_pixbuf (GdkPixbuf* pixbuf, - Dimensions* resized, - GdkInterpType interp) -{ - GdkPixbuf* result = NULL; - Dimensions original = {0}; - Dimensions _tmp0_ = {0}; - gboolean _tmp1_ = FALSE; - Dimensions _tmp2_; - gint _tmp3_; - Dimensions _tmp4_; - gint _tmp5_; - Dimensions _tmp11_ = {0}; - Dimensions _tmp12_; - gint _tmp13_; - Dimensions _tmp14_; - gint _tmp15_; - GdkPixbuf* _tmp16_; -#line 170 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL); -#line 170 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_val_if_fail (resized != NULL, NULL); -#line 171 "/home/jens/Source/shotwell/src/util/image.vala" - dimensions_for_pixbuf (pixbuf, &_tmp0_); -#line 171 "/home/jens/Source/shotwell/src/util/image.vala" - original = _tmp0_; -#line 172 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = original; -#line 172 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = _tmp2_.width; -#line 172 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = *resized; -#line 172 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp5_ = _tmp4_.width; -#line 172 "/home/jens/Source/shotwell/src/util/image.vala" - if (_tmp3_ == _tmp5_) { -#line 532 "image.c" - Dimensions _tmp6_; - gint _tmp7_; - Dimensions _tmp8_; - gint _tmp9_; -#line 172 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp6_ = original; -#line 172 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp7_ = _tmp6_.height; -#line 172 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp8_ = *resized; -#line 172 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp9_ = _tmp8_.height; -#line 172 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = _tmp7_ == _tmp9_; -#line 547 "image.c" - } else { -#line 172 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = FALSE; -#line 551 "image.c" - } -#line 172 "/home/jens/Source/shotwell/src/util/image.vala" - if (_tmp1_) { -#line 555 "image.c" - GdkPixbuf* _tmp10_; -#line 173 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp10_ = _g_object_ref0 (pixbuf); -#line 173 "/home/jens/Source/shotwell/src/util/image.vala" - result = _tmp10_; -#line 173 "/home/jens/Source/shotwell/src/util/image.vala" - return result; -#line 563 "image.c" - } -#line 176 "/home/jens/Source/shotwell/src/util/image.vala" - dimensions_with_min (resized, MIN_SCALED_WIDTH, MIN_SCALED_HEIGHT, &_tmp11_); -#line 176 "/home/jens/Source/shotwell/src/util/image.vala" - *resized = _tmp11_; -#line 178 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp12_ = *resized; -#line 178 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp13_ = _tmp12_.width; -#line 178 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp14_ = *resized; -#line 178 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp15_ = _tmp14_.height; -#line 178 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp16_ = gdk_pixbuf_scale_simple (pixbuf, _tmp13_, _tmp15_, interp); -#line 178 "/home/jens/Source/shotwell/src/util/image.vala" - result = _tmp16_; -#line 178 "/home/jens/Source/shotwell/src/util/image.vala" - return result; -#line 583 "image.c" -} - - -void -draw_rounded_corners_filled (cairo_t* ctx, - Dimensions* dim, - GdkPoint* origin, - gdouble radius_proportion) -{ - Dimensions _tmp0_; - GdkPoint _tmp1_; -#line 183 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (ctx != NULL); -#line 183 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (dim != NULL); -#line 183 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (origin != NULL); -#line 185 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = *dim; -#line 185 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = *origin; -#line 185 "/home/jens/Source/shotwell/src/util/image.vala" - context_rounded_corners (ctx, &_tmp0_, &_tmp1_, radius_proportion); -#line 186 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_paint (ctx); -#line 609 "image.c" -} - - -void -context_rounded_corners (cairo_t* cx, - Dimensions* dim, - GdkPoint* origin, - gdouble radius_proportion) -{ - gdouble left = 0.0; - GdkPoint _tmp0_; - gint _tmp1_; - gdouble top = 0.0; - GdkPoint _tmp2_; - gint _tmp3_; - gdouble right = 0.0; - GdkPoint _tmp4_; - gint _tmp5_; - Dimensions _tmp6_; - gint _tmp7_; - gdouble bottom = 0.0; - GdkPoint _tmp8_; - gint _tmp9_; - Dimensions _tmp10_; - gint _tmp11_; - gdouble radius = 0.0; -#line 189 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (cx != NULL); -#line 189 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (dim != NULL); -#line 189 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (origin != NULL); -#line 192 "/home/jens/Source/shotwell/src/util/image.vala" - radius_proportion = CLAMP (radius_proportion, 2.0, 100.0); -#line 194 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = *origin; -#line 194 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = _tmp0_.x; -#line 194 "/home/jens/Source/shotwell/src/util/image.vala" - left = (gdouble) _tmp1_; -#line 195 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = *origin; -#line 195 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = _tmp2_.y; -#line 195 "/home/jens/Source/shotwell/src/util/image.vala" - top = (gdouble) _tmp3_; -#line 196 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = *origin; -#line 196 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp5_ = _tmp4_.x; -#line 196 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp6_ = *dim; -#line 196 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp7_ = _tmp6_.width; -#line 196 "/home/jens/Source/shotwell/src/util/image.vala" - right = (gdouble) (_tmp5_ + _tmp7_); -#line 197 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp8_ = *origin; -#line 197 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp9_ = _tmp8_.y; -#line 197 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp10_ = *dim; -#line 197 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp11_ = _tmp10_.height; -#line 197 "/home/jens/Source/shotwell/src/util/image.vala" - bottom = (gdouble) (_tmp9_ + _tmp11_); -#line 200 "/home/jens/Source/shotwell/src/util/image.vala" - radius = ((gdouble) dimensions_minor_axis (dim)) / radius_proportion; -#line 204 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_move_to (cx, left, top); -#line 205 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_arc (cx, right - radius, top + radius, radius, -90 * DEGREE, 0 * DEGREE); -#line 206 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_arc (cx, right - radius, bottom - radius, radius, 0 * DEGREE, 90 * DEGREE); -#line 207 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_arc (cx, left + radius, bottom - radius, radius, 90 * DEGREE, 180 * DEGREE); -#line 208 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_arc (cx, left + radius, top + radius, radius, 180 * DEGREE, 270 * DEGREE); -#line 209 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_clip (cx); -#line 690 "image.c" -} - - -inline guchar -shift_color_byte (gint b, - gint shift) -{ - guchar result = '\0'; -#line 213 "/home/jens/Source/shotwell/src/util/image.vala" - result = (guchar) CLAMP (b + shift, 0, 255); -#line 213 "/home/jens/Source/shotwell/src/util/image.vala" - return result; -#line 703 "image.c" -} - - -void -shift_colors (GdkPixbuf* pixbuf, - gint red, - gint green, - gint blue, - gint alpha) -{ - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - gboolean _tmp3_ = FALSE; - gint width = 0; - gint height = 0; - gint rowstride = 0; - gint channels = 0; - guchar* pixels = NULL; - guint8* _tmp4_; - gint _tmp5_; -#line 216 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 217 "/home/jens/Source/shotwell/src/util/image.vala" - if (red >= -255) { -#line 217 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = red <= 255; -#line 731 "image.c" - } else { -#line 217 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = FALSE; -#line 735 "image.c" - } -#line 217 "/home/jens/Source/shotwell/src/util/image.vala" - _vala_assert (_tmp0_, "red >= -255 && red <= 255"); -#line 218 "/home/jens/Source/shotwell/src/util/image.vala" - if (green >= -255) { -#line 218 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = green <= 255; -#line 743 "image.c" - } else { -#line 218 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = FALSE; -#line 747 "image.c" - } -#line 218 "/home/jens/Source/shotwell/src/util/image.vala" - _vala_assert (_tmp1_, "green >= -255 && green <= 255"); -#line 219 "/home/jens/Source/shotwell/src/util/image.vala" - if (blue >= -255) { -#line 219 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = blue <= 255; -#line 755 "image.c" - } else { -#line 219 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = FALSE; -#line 759 "image.c" - } -#line 219 "/home/jens/Source/shotwell/src/util/image.vala" - _vala_assert (_tmp2_, "blue >= -255 && blue <= 255"); -#line 220 "/home/jens/Source/shotwell/src/util/image.vala" - if (alpha >= -255) { -#line 220 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = alpha <= 255; -#line 767 "image.c" - } else { -#line 220 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = FALSE; -#line 771 "image.c" - } -#line 220 "/home/jens/Source/shotwell/src/util/image.vala" - _vala_assert (_tmp3_, "alpha >= -255 && alpha <= 255"); -#line 222 "/home/jens/Source/shotwell/src/util/image.vala" - width = gdk_pixbuf_get_width (pixbuf); -#line 223 "/home/jens/Source/shotwell/src/util/image.vala" - height = gdk_pixbuf_get_height (pixbuf); -#line 224 "/home/jens/Source/shotwell/src/util/image.vala" - rowstride = gdk_pixbuf_get_rowstride (pixbuf); -#line 225 "/home/jens/Source/shotwell/src/util/image.vala" - channels = gdk_pixbuf_get_n_channels (pixbuf); -#line 226 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = gdk_pixbuf_get_pixels (pixbuf); -#line 226 "/home/jens/Source/shotwell/src/util/image.vala" - pixels = _tmp4_; -#line 228 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp5_ = channels; -#line 228 "/home/jens/Source/shotwell/src/util/image.vala" - _vala_assert (_tmp5_ >= 3, "channels >= 3"); -#line 229 "/home/jens/Source/shotwell/src/util/image.vala" - _vala_assert (gdk_pixbuf_get_colorspace (pixbuf) == GDK_COLORSPACE_RGB, "pixbuf.get_colorspace() == Gdk.Colorspace.RGB"); -#line 230 "/home/jens/Source/shotwell/src/util/image.vala" - _vala_assert (gdk_pixbuf_get_bits_per_sample (pixbuf) == 8, "pixbuf.get_bits_per_sample() == 8"); -#line 795 "image.c" - { - gint y = 0; -#line 232 "/home/jens/Source/shotwell/src/util/image.vala" - y = 0; -#line 800 "image.c" - { - gboolean _tmp6_ = FALSE; -#line 232 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp6_ = TRUE; -#line 232 "/home/jens/Source/shotwell/src/util/image.vala" - while (TRUE) { -#line 807 "image.c" - gint _tmp8_; - gint _tmp9_; - gint y_offset = 0; - gint _tmp10_; - gint _tmp11_; -#line 232 "/home/jens/Source/shotwell/src/util/image.vala" - if (!_tmp6_) { -#line 815 "image.c" - gint _tmp7_; -#line 232 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp7_ = y; -#line 232 "/home/jens/Source/shotwell/src/util/image.vala" - y = _tmp7_ + 1; -#line 821 "image.c" - } -#line 232 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp6_ = FALSE; -#line 232 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp8_ = y; -#line 232 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp9_ = height; -#line 232 "/home/jens/Source/shotwell/src/util/image.vala" - if (!(_tmp8_ < _tmp9_)) { -#line 232 "/home/jens/Source/shotwell/src/util/image.vala" - break; -#line 833 "image.c" - } -#line 233 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp10_ = y; -#line 233 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp11_ = rowstride; -#line 233 "/home/jens/Source/shotwell/src/util/image.vala" - y_offset = _tmp10_ * _tmp11_; -#line 841 "image.c" - { - gint x = 0; -#line 235 "/home/jens/Source/shotwell/src/util/image.vala" - x = 0; -#line 846 "image.c" - { - gboolean _tmp12_ = FALSE; -#line 235 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp12_ = TRUE; -#line 235 "/home/jens/Source/shotwell/src/util/image.vala" - while (TRUE) { -#line 853 "image.c" - gint _tmp14_; - gint _tmp15_; - gint offset = 0; - gint _tmp16_; - gint _tmp17_; - gint _tmp18_; - gboolean _tmp37_ = FALSE; -#line 235 "/home/jens/Source/shotwell/src/util/image.vala" - if (!_tmp12_) { -#line 863 "image.c" - gint _tmp13_; -#line 235 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp13_ = x; -#line 235 "/home/jens/Source/shotwell/src/util/image.vala" - x = _tmp13_ + 1; -#line 869 "image.c" - } -#line 235 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp12_ = FALSE; -#line 235 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp14_ = x; -#line 235 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp15_ = width; -#line 235 "/home/jens/Source/shotwell/src/util/image.vala" - if (!(_tmp14_ < _tmp15_)) { -#line 235 "/home/jens/Source/shotwell/src/util/image.vala" - break; -#line 881 "image.c" - } -#line 236 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp16_ = y_offset; -#line 236 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp17_ = x; -#line 236 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp18_ = channels; -#line 236 "/home/jens/Source/shotwell/src/util/image.vala" - offset = _tmp16_ + (_tmp17_ * _tmp18_); -#line 238 "/home/jens/Source/shotwell/src/util/image.vala" - if (red != 0) { -#line 893 "image.c" - guchar* _tmp19_; - gint _tmp20_; - guchar* _tmp21_; - gint _tmp22_; - guchar _tmp23_; - guchar _tmp24_; -#line 239 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp19_ = pixels; -#line 239 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp20_ = offset; -#line 239 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp21_ = pixels; -#line 239 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp22_ = offset; -#line 239 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp23_ = _tmp21_[_tmp22_]; -#line 239 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp19_[_tmp20_] = shift_color_byte ((gint) _tmp23_, red); -#line 239 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp24_ = _tmp19_[_tmp20_]; -#line 914 "image.c" - } -#line 241 "/home/jens/Source/shotwell/src/util/image.vala" - if (green != 0) { -#line 918 "image.c" - guchar* _tmp25_; - gint _tmp26_; - guchar* _tmp27_; - gint _tmp28_; - guchar _tmp29_; - guchar _tmp30_; -#line 242 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp25_ = pixels; -#line 242 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp26_ = offset; -#line 242 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp27_ = pixels; -#line 242 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp28_ = offset; -#line 242 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp29_ = _tmp27_[_tmp28_ + 1]; -#line 242 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp25_[_tmp26_ + 1] = shift_color_byte ((gint) _tmp29_, green); -#line 242 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp30_ = _tmp25_[_tmp26_ + 1]; -#line 939 "image.c" - } -#line 244 "/home/jens/Source/shotwell/src/util/image.vala" - if (blue != 0) { -#line 943 "image.c" - guchar* _tmp31_; - gint _tmp32_; - guchar* _tmp33_; - gint _tmp34_; - guchar _tmp35_; - guchar _tmp36_; -#line 245 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp31_ = pixels; -#line 245 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp32_ = offset; -#line 245 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp33_ = pixels; -#line 245 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp34_ = offset; -#line 245 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp35_ = _tmp33_[_tmp34_ + 2]; -#line 245 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp31_[_tmp32_ + 2] = shift_color_byte ((gint) _tmp35_, blue); -#line 245 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp36_ = _tmp31_[_tmp32_ + 2]; -#line 964 "image.c" - } -#line 247 "/home/jens/Source/shotwell/src/util/image.vala" - if (alpha != 0) { -#line 968 "image.c" - gint _tmp38_; -#line 247 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp38_ = channels; -#line 247 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp37_ = _tmp38_ >= 4; -#line 974 "image.c" - } else { -#line 247 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp37_ = FALSE; -#line 978 "image.c" - } -#line 247 "/home/jens/Source/shotwell/src/util/image.vala" - if (_tmp37_) { -#line 982 "image.c" - guchar* _tmp39_; - gint _tmp40_; - guchar* _tmp41_; - gint _tmp42_; - guchar _tmp43_; - guchar _tmp44_; -#line 248 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp39_ = pixels; -#line 248 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp40_ = offset; -#line 248 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp41_ = pixels; -#line 248 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp42_ = offset; -#line 248 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp43_ = _tmp41_[_tmp42_ + 3]; -#line 248 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp39_[_tmp40_ + 3] = shift_color_byte ((gint) _tmp43_, alpha); -#line 248 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp44_ = _tmp39_[_tmp40_ + 3]; -#line 1003 "image.c" - } - } - } - } - } - } - } -} - - -gboolean -coord_in_rectangle (gint x, - gint y, - GdkRectangle* rect) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - GdkRectangle _tmp3_; - gint _tmp4_; -#line 253 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_val_if_fail (rect != NULL, FALSE); -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = *rect; -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = _tmp3_.x; -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - if (x >= _tmp4_) { -#line 1033 "image.c" - GdkRectangle _tmp5_; - gint _tmp6_; - GdkRectangle _tmp7_; - gint _tmp8_; -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp5_ = *rect; -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp6_ = _tmp5_.x; -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp7_ = *rect; -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp8_ = _tmp7_.width; -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = x < (_tmp6_ + _tmp8_); -#line 1048 "image.c" - } else { -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = FALSE; -#line 1052 "image.c" - } -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - if (_tmp2_) { -#line 1056 "image.c" - GdkRectangle _tmp9_; - gint _tmp10_; -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp9_ = *rect; -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp10_ = _tmp9_.y; -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = y >= _tmp10_; -#line 1065 "image.c" - } else { -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = FALSE; -#line 1069 "image.c" - } -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - if (_tmp1_) { -#line 1073 "image.c" - GdkRectangle _tmp11_; - gint _tmp12_; - GdkRectangle _tmp13_; - gint _tmp14_; -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp11_ = *rect; -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp12_ = _tmp11_.y; -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp13_ = *rect; -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp14_ = _tmp13_.height; -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = y <= (_tmp12_ + _tmp14_); -#line 1088 "image.c" - } else { -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = FALSE; -#line 1092 "image.c" - } -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - result = _tmp0_; -#line 254 "/home/jens/Source/shotwell/src/util/image.vala" - return result; -#line 1098 "image.c" -} - - -gboolean -rectangles_equal (GdkRectangle* a, - GdkRectangle* b) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - GdkRectangle _tmp3_; - gint _tmp4_; - GdkRectangle _tmp5_; - gint _tmp6_; -#line 257 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_val_if_fail (a != NULL, FALSE); -#line 257 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_val_if_fail (b != NULL, FALSE); -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = *a; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = _tmp3_.x; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp5_ = *b; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp6_ = _tmp5_.x; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - if (_tmp4_ == _tmp6_) { -#line 1128 "image.c" - GdkRectangle _tmp7_; - gint _tmp8_; - GdkRectangle _tmp9_; - gint _tmp10_; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp7_ = *a; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp8_ = _tmp7_.y; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp9_ = *b; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp10_ = _tmp9_.y; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = _tmp8_ == _tmp10_; -#line 1143 "image.c" - } else { -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = FALSE; -#line 1147 "image.c" - } -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - if (_tmp2_) { -#line 1151 "image.c" - GdkRectangle _tmp11_; - gint _tmp12_; - GdkRectangle _tmp13_; - gint _tmp14_; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp11_ = *a; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp12_ = _tmp11_.width; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp13_ = *b; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp14_ = _tmp13_.width; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = _tmp12_ == _tmp14_; -#line 1166 "image.c" - } else { -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = FALSE; -#line 1170 "image.c" - } -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - if (_tmp1_) { -#line 1174 "image.c" - GdkRectangle _tmp15_; - gint _tmp16_; - GdkRectangle _tmp17_; - gint _tmp18_; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp15_ = *a; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp16_ = _tmp15_.height; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp17_ = *b; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp18_ = _tmp17_.height; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = _tmp16_ == _tmp18_; -#line 1189 "image.c" - } else { -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = FALSE; -#line 1193 "image.c" - } -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - result = _tmp0_; -#line 258 "/home/jens/Source/shotwell/src/util/image.vala" - return result; -#line 1199 "image.c" -} - - -gchar* -rectangle_to_string (GdkRectangle* rect) -{ - gchar* result = NULL; - GdkRectangle _tmp0_; - gint _tmp1_; - GdkRectangle _tmp2_; - gint _tmp3_; - GdkRectangle _tmp4_; - gint _tmp5_; - GdkRectangle _tmp6_; - gint _tmp7_; - gchar* _tmp8_; -#line 261 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_val_if_fail (rect != NULL, NULL); -#line 262 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = *rect; -#line 262 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = _tmp0_.x; -#line 262 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = *rect; -#line 262 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = _tmp2_.y; -#line 262 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = *rect; -#line 262 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp5_ = _tmp4_.width; -#line 262 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp6_ = *rect; -#line 262 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp7_ = _tmp6_.height; -#line 262 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp8_ = g_strdup_printf ("%d,%d %dx%d", _tmp1_, _tmp3_, _tmp5_, _tmp7_); -#line 262 "/home/jens/Source/shotwell/src/util/image.vala" - result = _tmp8_; -#line 262 "/home/jens/Source/shotwell/src/util/image.vala" - return result; -#line 1240 "image.c" -} - - -void -clamp_rectangle (GdkRectangle* original, - Dimensions* max, - GdkRectangle* result) -{ - GdkRectangle rect = {0}; - GdkRectangle _tmp0_; - gint _tmp1_; - Dimensions _tmp2_; - gint _tmp3_; - GdkRectangle _tmp4_; - gint _tmp5_; - Dimensions _tmp6_; - gint _tmp7_; - GdkRectangle _tmp8_; - gint _tmp9_; - Dimensions _tmp10_; - gint _tmp11_; - GdkRectangle _tmp12_; - gint _tmp13_; - Dimensions _tmp14_; - gint _tmp15_; -#line 265 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (original != NULL); -#line 265 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (max != NULL); -#line 266 "/home/jens/Source/shotwell/src/util/image.vala" - memset (&rect, 0, sizeof (GdkRectangle)); -#line 267 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = *original; -#line 267 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = _tmp0_.x; -#line 267 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = *max; -#line 267 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = _tmp2_.width; -#line 267 "/home/jens/Source/shotwell/src/util/image.vala" - rect.x = CLAMP (_tmp1_, 0, _tmp3_); -#line 268 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = *original; -#line 268 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp5_ = _tmp4_.y; -#line 268 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp6_ = *max; -#line 268 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp7_ = _tmp6_.height; -#line 268 "/home/jens/Source/shotwell/src/util/image.vala" - rect.y = CLAMP (_tmp5_, 0, _tmp7_); -#line 269 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp8_ = *original; -#line 269 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp9_ = _tmp8_.width; -#line 269 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp10_ = *max; -#line 269 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp11_ = _tmp10_.width; -#line 269 "/home/jens/Source/shotwell/src/util/image.vala" - rect.width = CLAMP (_tmp9_, 0, _tmp11_); -#line 270 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp12_ = *original; -#line 270 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp13_ = _tmp12_.height; -#line 270 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp14_ = *max; -#line 270 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp15_ = _tmp14_.height; -#line 270 "/home/jens/Source/shotwell/src/util/image.vala" - rect.height = CLAMP (_tmp13_, 0, _tmp15_); -#line 272 "/home/jens/Source/shotwell/src/util/image.vala" - *result = rect; -#line 272 "/home/jens/Source/shotwell/src/util/image.vala" - return; -#line 1316 "image.c" -} - - -void -scale_point (GdkPoint* p, - gdouble factor, - GdkPoint* result) -{ - GdkPoint _result_ = {0}; - GdkPoint _tmp0_ = {0}; - GdkPoint _tmp1_; - gint _tmp2_; - GdkPoint _tmp3_; - gint _tmp4_; -#line 275 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (p != NULL); -#line 276 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_.x = 0; -#line 276 "/home/jens/Source/shotwell/src/util/image.vala" - _result_ = _tmp0_; -#line 277 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = *p; -#line 277 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = _tmp1_.x; -#line 277 "/home/jens/Source/shotwell/src/util/image.vala" - _result_.x = (gint) ((factor * _tmp2_) + 0.5); -#line 278 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = *p; -#line 278 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = _tmp3_.y; -#line 278 "/home/jens/Source/shotwell/src/util/image.vala" - _result_.y = (gint) ((factor * _tmp4_) + 0.5); -#line 280 "/home/jens/Source/shotwell/src/util/image.vala" - *result = _result_; -#line 280 "/home/jens/Source/shotwell/src/util/image.vala" - return; -#line 1353 "image.c" -} - - -void -add_points (GdkPoint* p1, - GdkPoint* p2, - GdkPoint* result) -{ - GdkPoint _result_ = {0}; - GdkPoint _tmp0_ = {0}; - GdkPoint _tmp1_; - gint _tmp2_; - GdkPoint _tmp3_; - gint _tmp4_; - GdkPoint _tmp5_; - gint _tmp6_; - GdkPoint _tmp7_; - gint _tmp8_; -#line 283 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (p1 != NULL); -#line 283 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (p2 != NULL); -#line 284 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_.x = 0; -#line 284 "/home/jens/Source/shotwell/src/util/image.vala" - _result_ = _tmp0_; -#line 285 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = *p1; -#line 285 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = _tmp1_.x; -#line 285 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = *p2; -#line 285 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = _tmp3_.x; -#line 285 "/home/jens/Source/shotwell/src/util/image.vala" - _result_.x = _tmp2_ + _tmp4_; -#line 286 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp5_ = *p1; -#line 286 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp6_ = _tmp5_.y; -#line 286 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp7_ = *p2; -#line 286 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp8_ = _tmp7_.y; -#line 286 "/home/jens/Source/shotwell/src/util/image.vala" - _result_.y = _tmp6_ + _tmp8_; -#line 288 "/home/jens/Source/shotwell/src/util/image.vala" - *result = _result_; -#line 288 "/home/jens/Source/shotwell/src/util/image.vala" - return; -#line 1404 "image.c" -} - - -void -subtract_points (GdkPoint* p1, - GdkPoint* p2, - GdkPoint* result) -{ - GdkPoint _result_ = {0}; - GdkPoint _tmp0_ = {0}; - GdkPoint _tmp1_; - gint _tmp2_; - GdkPoint _tmp3_; - gint _tmp4_; - GdkPoint _tmp5_; - gint _tmp6_; - GdkPoint _tmp7_; - gint _tmp8_; -#line 291 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (p1 != NULL); -#line 291 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (p2 != NULL); -#line 292 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_.x = 0; -#line 292 "/home/jens/Source/shotwell/src/util/image.vala" - _result_ = _tmp0_; -#line 293 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = *p1; -#line 293 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = _tmp1_.x; -#line 293 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = *p2; -#line 293 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = _tmp3_.x; -#line 293 "/home/jens/Source/shotwell/src/util/image.vala" - _result_.x = _tmp2_ - _tmp4_; -#line 294 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp5_ = *p1; -#line 294 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp6_ = _tmp5_.y; -#line 294 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp7_ = *p2; -#line 294 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp8_ = _tmp7_.y; -#line 294 "/home/jens/Source/shotwell/src/util/image.vala" - _result_.y = _tmp6_ - _tmp8_; -#line 296 "/home/jens/Source/shotwell/src/util/image.vala" - *result = _result_; -#line 296 "/home/jens/Source/shotwell/src/util/image.vala" - return; -#line 1455 "image.c" -} - - -void -fix_cairo_pixbuf (GdkPixbuf* pixbuf) -{ - guchar* gdk_pixels = NULL; - void* _tmp0_; - void* _tmp1_; -#line 300 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 301 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = gdk_pixbuf_get_pixels (pixbuf); -#line 301 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = _tmp0_; -#line 301 "/home/jens/Source/shotwell/src/util/image.vala" - gdk_pixels = _tmp1_; -#line 1473 "image.c" - { - gint j = 0; -#line 302 "/home/jens/Source/shotwell/src/util/image.vala" - j = 0; -#line 1478 "image.c" - { - gboolean _tmp2_ = FALSE; -#line 302 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = TRUE; -#line 302 "/home/jens/Source/shotwell/src/util/image.vala" - while (TRUE) { -#line 1485 "image.c" - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; - guchar* p = NULL; - guchar* _tmp7_; - guchar* end = NULL; - guchar* _tmp8_; - gint _tmp9_; - gint _tmp10_; - guchar* _tmp23_; - gint _tmp24_; - gint _tmp25_; -#line 302 "/home/jens/Source/shotwell/src/util/image.vala" - if (!_tmp2_) { -#line 1500 "image.c" - gint _tmp3_; -#line 302 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = j; -#line 302 "/home/jens/Source/shotwell/src/util/image.vala" - j = _tmp3_ + 1; -#line 1506 "image.c" - } -#line 302 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = FALSE; -#line 302 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = j; -#line 302 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp5_ = gdk_pixbuf_get_height (pixbuf); -#line 302 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp6_ = _tmp5_; -#line 302 "/home/jens/Source/shotwell/src/util/image.vala" - if (!(_tmp4_ < _tmp6_)) { -#line 302 "/home/jens/Source/shotwell/src/util/image.vala" - break; -#line 1520 "image.c" - } -#line 303 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp7_ = gdk_pixels; -#line 303 "/home/jens/Source/shotwell/src/util/image.vala" - p = _tmp7_; -#line 304 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp8_ = p; -#line 304 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp9_ = gdk_pixbuf_get_width (pixbuf); -#line 304 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp10_ = _tmp9_; -#line 304 "/home/jens/Source/shotwell/src/util/image.vala" - end = _tmp8_ + (4 * _tmp10_); -#line 306 "/home/jens/Source/shotwell/src/util/image.vala" - while (TRUE) { -#line 1536 "image.c" - guchar* _tmp11_; - guchar* _tmp12_; - guchar tmp = '\0'; - guchar* _tmp13_; - guchar _tmp14_; - guchar* _tmp15_; - guchar* _tmp16_; - guchar _tmp17_; - guchar _tmp18_; - guchar* _tmp19_; - guchar _tmp20_; - guchar _tmp21_; - guchar* _tmp22_; -#line 306 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp11_ = p; -#line 306 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp12_ = end; -#line 306 "/home/jens/Source/shotwell/src/util/image.vala" - if (!(_tmp11_ < _tmp12_)) { -#line 306 "/home/jens/Source/shotwell/src/util/image.vala" - break; -#line 1558 "image.c" - } -#line 307 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp13_ = p; -#line 307 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp14_ = _tmp13_[0]; -#line 307 "/home/jens/Source/shotwell/src/util/image.vala" - tmp = _tmp14_; -#line 309 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp15_ = p; -#line 309 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp16_ = p; -#line 309 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp17_ = _tmp16_[2]; -#line 309 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp15_[0] = _tmp17_; -#line 309 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp18_ = _tmp15_[0]; -#line 310 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp19_ = p; -#line 310 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp20_ = tmp; -#line 310 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp19_[2] = _tmp20_; -#line 310 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp21_ = _tmp19_[2]; -#line 317 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp22_ = p; -#line 317 "/home/jens/Source/shotwell/src/util/image.vala" - p = _tmp22_ + 4; -#line 1588 "image.c" - } -#line 320 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp23_ = gdk_pixels; -#line 320 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp24_ = gdk_pixbuf_get_rowstride (pixbuf); -#line 320 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp25_ = _tmp24_; -#line 320 "/home/jens/Source/shotwell/src/util/image.vala" - gdk_pixels = _tmp23_ + _tmp25_; -#line 1598 "image.c" - } - } - } -} - - -/** - * Finds the size of the smallest axially-aligned rectangle that could contain - * a rectangle src_width by src_height, rotated by angle. - * - * @param src_width The width of the incoming rectangle. - * @param src_height The height of the incoming rectangle. - * @param angle The amount to rotate by, given in degrees. - * @param dest_width The width of the computed rectangle. - * @param dest_height The height of the computed rectangle. - */ -void -compute_arb_rotated_size (gdouble src_width, - gdouble src_height, - gdouble angle, - gdouble* dest_width, - gdouble* dest_height) -{ - gdouble _vala_dest_width = 0.0; - gdouble _vala_dest_height = 0.0; -#line 337 "/home/jens/Source/shotwell/src/util/image.vala" - angle = fabs (degrees_to_radians (angle)); -#line 338 "/home/jens/Source/shotwell/src/util/image.vala" - _vala_assert (angle <= G_PI_2, "angle <= Math.PI_2"); -#line 339 "/home/jens/Source/shotwell/src/util/image.vala" - _vala_dest_width = (src_width * cos (angle)) + (src_height * sin (angle)); -#line 340 "/home/jens/Source/shotwell/src/util/image.vala" - _vala_dest_height = (src_height * cos (angle)) + (src_width * sin (angle)); -#line 334 "/home/jens/Source/shotwell/src/util/image.vala" - if (dest_width) { -#line 334 "/home/jens/Source/shotwell/src/util/image.vala" - *dest_width = _vala_dest_width; -#line 1636 "image.c" - } -#line 334 "/home/jens/Source/shotwell/src/util/image.vala" - if (dest_height) { -#line 334 "/home/jens/Source/shotwell/src/util/image.vala" - *dest_height = _vala_dest_height; -#line 1642 "image.c" - } -} - - -/** - * @brief Rotates a pixbuf to an arbitrary angle, given in degrees, and returns the rotated pixbuf. - * - * @param source_pixbuf The source image that needs to be angled. - * @param angle The angle the source image should be rotated by. - */ -GdkPixbuf* -rotate_arb (GdkPixbuf* source_pixbuf, - gdouble angle) -{ - GdkPixbuf* result = NULL; - gdouble x_tmp = 0.0; - gdouble y_tmp = 0.0; - gint _tmp1_; - gint _tmp2_; - gint _tmp3_; - gint _tmp4_; - gdouble _tmp5_ = 0.0; - gdouble _tmp6_ = 0.0; - GdkPixbuf* dest_pixbuf = NULL; - gdouble _tmp7_; - gdouble _tmp8_; - GdkPixbuf* _tmp9_; - cairo_format_t _tmp10_ = 0; - gboolean _tmp11_; - gboolean _tmp12_; - cairo_surface_t* surface = NULL; - GdkPixbuf* _tmp13_; - void* _tmp14_; - void* _tmp15_; - GdkPixbuf* _tmp16_; - gint _tmp17_; - gint _tmp18_; - GdkPixbuf* _tmp19_; - gint _tmp20_; - gint _tmp21_; - GdkPixbuf* _tmp22_; - gint _tmp23_; - gint _tmp24_; - cairo_surface_t* _tmp25_; - cairo_t* context = NULL; - cairo_surface_t* _tmp26_; - cairo_t* _tmp27_; - cairo_t* _tmp28_; - cairo_t* _tmp29_; - GdkPixbuf* _tmp30_; - gint _tmp31_; - gint _tmp32_; - GdkPixbuf* _tmp33_; - gint _tmp34_; - gint _tmp35_; - cairo_t* _tmp36_; - cairo_t* _tmp37_; - GdkPixbuf* _tmp38_; - gint _tmp39_; - gint _tmp40_; - GdkPixbuf* _tmp41_; - gint _tmp42_; - gint _tmp43_; - cairo_t* _tmp44_; - cairo_t* _tmp45_; - gint _tmp46_; - gint _tmp47_; - gint _tmp48_; - gint _tmp49_; - cairo_t* _tmp50_; - cairo_t* _tmp51_; - cairo_pattern_t* _tmp52_; - cairo_t* _tmp53_; - GdkPixbuf* _tmp54_; -#line 349 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_val_if_fail (GDK_IS_PIXBUF (source_pixbuf), NULL); -#line 353 "/home/jens/Source/shotwell/src/util/image.vala" - if (angle == 0.0) { -#line 1721 "image.c" - GdkPixbuf* _tmp0_; -#line 354 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = _g_object_ref0 (source_pixbuf); -#line 354 "/home/jens/Source/shotwell/src/util/image.vala" - result = _tmp0_; -#line 354 "/home/jens/Source/shotwell/src/util/image.vala" - return result; -#line 1729 "image.c" - } -#line 361 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = gdk_pixbuf_get_width (source_pixbuf); -#line 361 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = _tmp1_; -#line 361 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = gdk_pixbuf_get_height (source_pixbuf); -#line 361 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = _tmp3_; -#line 361 "/home/jens/Source/shotwell/src/util/image.vala" - compute_arb_rotated_size ((gdouble) _tmp2_, (gdouble) _tmp4_, angle, &_tmp5_, &_tmp6_); -#line 361 "/home/jens/Source/shotwell/src/util/image.vala" - x_tmp = _tmp5_; -#line 361 "/home/jens/Source/shotwell/src/util/image.vala" - y_tmp = _tmp6_; -#line 364 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp7_ = x_tmp; -#line 364 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp8_ = y_tmp; -#line 364 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp9_ = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, (gint) round (_tmp7_), (gint) round (_tmp8_)); -#line 364 "/home/jens/Source/shotwell/src/util/image.vala" - dest_pixbuf = _tmp9_; -#line 369 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp11_ = gdk_pixbuf_get_has_alpha (source_pixbuf); -#line 369 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp12_ = _tmp11_; -#line 369 "/home/jens/Source/shotwell/src/util/image.vala" - if (_tmp12_) { -#line 369 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp10_ = CAIRO_FORMAT_ARGB32; -#line 1761 "image.c" - } else { -#line 369 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp10_ = CAIRO_FORMAT_RGB24; -#line 1765 "image.c" - } -#line 367 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp13_ = dest_pixbuf; -#line 367 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp14_ = gdk_pixbuf_get_pixels (_tmp13_); -#line 367 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp15_ = _tmp14_; -#line 367 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp16_ = dest_pixbuf; -#line 367 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp17_ = gdk_pixbuf_get_width (_tmp16_); -#line 367 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp18_ = _tmp17_; -#line 367 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp19_ = dest_pixbuf; -#line 367 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp20_ = gdk_pixbuf_get_height (_tmp19_); -#line 367 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp21_ = _tmp20_; -#line 367 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp22_ = dest_pixbuf; -#line 367 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp23_ = gdk_pixbuf_get_rowstride (_tmp22_); -#line 367 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp24_ = _tmp23_; -#line 367 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp25_ = cairo_image_surface_create_for_data ((guchar*) _tmp15_, _tmp10_, _tmp18_, _tmp21_, _tmp24_); -#line 367 "/home/jens/Source/shotwell/src/util/image.vala" - surface = _tmp25_; -#line 372 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp26_ = surface; -#line 372 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp27_ = cairo_create (_tmp26_); -#line 372 "/home/jens/Source/shotwell/src/util/image.vala" - context = _tmp27_; -#line 374 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp28_ = context; -#line 374 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_set_source_rgb (_tmp28_, (gdouble) 0, (gdouble) 0, (gdouble) 0); -#line 375 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp29_ = context; -#line 375 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp30_ = dest_pixbuf; -#line 375 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp31_ = gdk_pixbuf_get_width (_tmp30_); -#line 375 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp32_ = _tmp31_; -#line 375 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp33_ = dest_pixbuf; -#line 375 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp34_ = gdk_pixbuf_get_height (_tmp33_); -#line 375 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp35_ = _tmp34_; -#line 375 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_rectangle (_tmp29_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp32_, (gdouble) _tmp35_); -#line 376 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp36_ = context; -#line 376 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_fill (_tmp36_); -#line 378 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp37_ = context; -#line 378 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp38_ = dest_pixbuf; -#line 378 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp39_ = gdk_pixbuf_get_width (_tmp38_); -#line 378 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp40_ = _tmp39_; -#line 378 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp41_ = dest_pixbuf; -#line 378 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp42_ = gdk_pixbuf_get_height (_tmp41_); -#line 378 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp43_ = _tmp42_; -#line 378 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_translate (_tmp37_, (gdouble) (_tmp40_ / 2), (gdouble) (_tmp43_ / 2)); -#line 379 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp44_ = context; -#line 379 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_rotate (_tmp44_, degrees_to_radians (angle)); -#line 380 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp45_ = context; -#line 380 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp46_ = gdk_pixbuf_get_width (source_pixbuf); -#line 380 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp47_ = _tmp46_; -#line 380 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp48_ = gdk_pixbuf_get_height (source_pixbuf); -#line 380 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp49_ = _tmp48_; -#line 380 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_translate (_tmp45_, (gdouble) ((-_tmp47_) / 2), (gdouble) ((-_tmp49_) / 2)); -#line 382 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp50_ = context; -#line 382 "/home/jens/Source/shotwell/src/util/image.vala" - gdk_cairo_set_source_pixbuf (_tmp50_, source_pixbuf, (gdouble) 0, (gdouble) 0); -#line 383 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp51_ = context; -#line 383 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp52_ = cairo_get_source (_tmp51_); -#line 383 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_pattern_set_filter (_tmp52_, CAIRO_FILTER_BEST); -#line 384 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp53_ = context; -#line 384 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_paint (_tmp53_); -#line 388 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp54_ = dest_pixbuf; -#line 388 "/home/jens/Source/shotwell/src/util/image.vala" - fix_cairo_pixbuf (_tmp54_); -#line 390 "/home/jens/Source/shotwell/src/util/image.vala" - result = dest_pixbuf; -#line 390 "/home/jens/Source/shotwell/src/util/image.vala" - _cairo_destroy0 (context); -#line 390 "/home/jens/Source/shotwell/src/util/image.vala" - _cairo_surface_destroy0 (surface); -#line 390 "/home/jens/Source/shotwell/src/util/image.vala" - return result; -#line 1883 "image.c" -} - - -/** - * @brief Rotates a point around the upper left corner of an image to an arbitrary angle, - * given in degrees, and returns the rotated point, translated such that it, along with its attendant - * image, are in positive x, positive y. - * - * @note May be subject to slight inaccuracy as Gdk points' coordinates may only be in whole pixels, - * so the fractional component is lost. - * - * @param source_point The point to be rotated and scaled. - * @param img_w The width of the source image (unrotated). - * @param img_h The height of the source image (unrotated). - * @param angle The angle the source image is to be rotated by to straighten it. - */ -void -rotate_point_arb (GdkPoint* source_point, - gint img_w, - gint img_h, - gdouble angle, - gboolean invert, - GdkPoint* result) -{ - gdouble dest_width = 0.0; - gdouble dest_height = 0.0; - gdouble _tmp1_ = 0.0; - gdouble _tmp2_ = 0.0; - cairo_matrix_t matrix = {0}; - gdouble _tmp3_; - gdouble _tmp4_; - gdouble dest_x = 0.0; - GdkPoint _tmp5_; - gint _tmp6_; - gdouble dest_y = 0.0; - GdkPoint _tmp7_; - gint _tmp8_; - gdouble _tmp9_; - gdouble _tmp10_; - GdkPoint _tmp11_ = {0}; -#line 406 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (source_point != NULL); -#line 409 "/home/jens/Source/shotwell/src/util/image.vala" - if (angle == 0.0) { -#line 1928 "image.c" - GdkPoint _tmp0_; -#line 411 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = *source_point; -#line 411 "/home/jens/Source/shotwell/src/util/image.vala" - *result = _tmp0_; -#line 411 "/home/jens/Source/shotwell/src/util/image.vala" - return; -#line 1936 "image.c" - } -#line 416 "/home/jens/Source/shotwell/src/util/image.vala" - compute_arb_rotated_size ((gdouble) img_w, (gdouble) img_h, angle, &_tmp1_, &_tmp2_); -#line 416 "/home/jens/Source/shotwell/src/util/image.vala" - dest_width = _tmp1_; -#line 416 "/home/jens/Source/shotwell/src/util/image.vala" - dest_height = _tmp2_; -#line 418 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_matrix_init_identity (&matrix); -#line 419 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = dest_width; -#line 419 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = dest_height; -#line 419 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_matrix_translate (&matrix, _tmp3_ / 2, _tmp4_ / 2); -#line 420 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_matrix_rotate (&matrix, degrees_to_radians (angle)); -#line 421 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_matrix_translate (&matrix, (gdouble) ((-img_w) / 2), (gdouble) ((-img_h) / 2)); -#line 422 "/home/jens/Source/shotwell/src/util/image.vala" - if (invert) { -#line 423 "/home/jens/Source/shotwell/src/util/image.vala" - _vala_assert (cairo_matrix_invert (&matrix) == CAIRO_STATUS_SUCCESS, "matrix.invert() == Cairo.Status.SUCCESS"); -#line 1960 "image.c" - } -#line 425 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp5_ = *source_point; -#line 425 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp6_ = _tmp5_.x; -#line 425 "/home/jens/Source/shotwell/src/util/image.vala" - dest_x = (gdouble) _tmp6_; -#line 426 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp7_ = *source_point; -#line 426 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp8_ = _tmp7_.y; -#line 426 "/home/jens/Source/shotwell/src/util/image.vala" - dest_y = (gdouble) _tmp8_; -#line 427 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_matrix_transform_point (&matrix, &dest_x, &dest_y); -#line 429 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp9_ = dest_x; -#line 429 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp10_ = dest_y; -#line 429 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp11_.x = (gint) _tmp9_; -#line 429 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp11_.y = (gint) _tmp10_; -#line 429 "/home/jens/Source/shotwell/src/util/image.vala" - *result = _tmp11_; -#line 429 "/home/jens/Source/shotwell/src/util/image.vala" - return; -#line 1988 "image.c" -} - - -/** - * @brief Derotates a point around the upper left corner of an image from an arbitrary angle, - * given in degrees, and returns the de-rotated point, taking into account any translation necessary - * to make sure all of the rotated image stays in positive x, positive y. - * - * @note May be subject to slight inaccuracy as Gdk points' coordinates may only be in whole pixels, - * so the fractional component is lost. - * - * @param source_point The point to be de-rotated. - * @param img_w The width of the source image (unrotated). - * @param img_h The height of the source image (unrotated). - * @param angle The angle the source image is to be rotated by to straighten it. - */ -void -derotate_point_arb (GdkPoint* source_point, - gint img_w, - gint img_h, - gdouble angle, - GdkPoint* result) -{ - GdkPoint _tmp0_; - GdkPoint _tmp1_ = {0}; -#line 445 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (source_point != NULL); -#line 446 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = *source_point; -#line 446 "/home/jens/Source/shotwell/src/util/image.vala" - rotate_point_arb (&_tmp0_, img_w, img_h, angle, TRUE, &_tmp1_); -#line 446 "/home/jens/Source/shotwell/src/util/image.vala" - *result = _tmp1_; -#line 446 "/home/jens/Source/shotwell/src/util/image.vala" - return; -#line 2024 "image.c" -} - - -static gpointer -_cairo_surface_reference0 (gpointer self) -{ -#line 484 "/home/jens/Source/shotwell/src/util/image.vala" - return self ? cairo_surface_reference (self) : NULL; -#line 2033 "image.c" -} - - -cairo_surface_t* -get_background_surface (void) -{ - cairo_surface_t* result = NULL; - cairo_surface_t* _tmp0_; - cairo_surface_t* _tmp31_; - cairo_surface_t* _tmp32_; -#line 452 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = background_surface; -#line 452 "/home/jens/Source/shotwell/src/util/image.vala" - if (_tmp0_ == NULL) { -#line 2048 "image.c" - gchar* color_a = NULL; - gchar* color_b = NULL; - ConfigFacade* config = NULL; - ConfigFacade* _tmp1_; - gchar* type = NULL; - ConfigFacade* _tmp2_; - gchar* _tmp3_; - const gchar* _tmp4_; - const gchar* _tmp5_; - GQuark _tmp7_ = 0U; -#line 458 "/home/jens/Source/shotwell/src/util/image.vala" - static GQuark _tmp6_label0 = 0; -#line 458 "/home/jens/Source/shotwell/src/util/image.vala" - static GQuark _tmp6_label1 = 0; -#line 2063 "image.c" - cairo_surface_t* _tmp17_; - cairo_t* ctx = NULL; - cairo_surface_t* _tmp18_; - cairo_t* _tmp19_; - cairo_t* _tmp20_; - cairo_t* _tmp21_; - const gchar* _tmp22_; - cairo_t* _tmp23_; - cairo_t* _tmp24_; - cairo_t* _tmp25_; - cairo_t* _tmp26_; - const gchar* _tmp27_; - cairo_t* _tmp28_; - cairo_t* _tmp29_; - cairo_t* _tmp30_; -#line 455 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = config_facade_get_instance (); -#line 455 "/home/jens/Source/shotwell/src/util/image.vala" - config = _tmp1_; -#line 457 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = config; -#line 457 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = configuration_facade_get_transparent_background_type (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 457 "/home/jens/Source/shotwell/src/util/image.vala" - type = _tmp3_; -#line 458 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = type; -#line 458 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp5_ = _tmp4_; -#line 458 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp7_ = (NULL == _tmp5_) ? 0 : g_quark_from_string (_tmp5_); -#line 458 "/home/jens/Source/shotwell/src/util/image.vala" - if (_tmp7_ == ((0 != _tmp6_label0) ? _tmp6_label0 : (_tmp6_label0 = g_quark_from_static_string ("checkered")))) { -#line 458 "/home/jens/Source/shotwell/src/util/image.vala" - switch (0) { -#line 2099 "image.c" - default: - { - gchar* _tmp8_; - gchar* _tmp9_; -#line 460 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp8_ = g_strdup ("#808080"); -#line 460 "/home/jens/Source/shotwell/src/util/image.vala" - _g_free0 (color_a); -#line 460 "/home/jens/Source/shotwell/src/util/image.vala" - color_a = _tmp8_; -#line 461 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp9_ = g_strdup ("#ccc"); -#line 461 "/home/jens/Source/shotwell/src/util/image.vala" - _g_free0 (color_b); -#line 461 "/home/jens/Source/shotwell/src/util/image.vala" - color_b = _tmp9_; -#line 462 "/home/jens/Source/shotwell/src/util/image.vala" - break; -#line 2118 "image.c" - } - } - } else if (_tmp7_ == ((0 != _tmp6_label1) ? _tmp6_label1 : (_tmp6_label1 = g_quark_from_static_string ("solid")))) { -#line 458 "/home/jens/Source/shotwell/src/util/image.vala" - switch (0) { -#line 2124 "image.c" - default: - { - ConfigFacade* _tmp10_; - gchar* _tmp11_; - const gchar* _tmp12_; - gchar* _tmp13_; -#line 464 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp10_ = config; -#line 464 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp11_ = configuration_facade_get_transparent_background_color (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade)); -#line 464 "/home/jens/Source/shotwell/src/util/image.vala" - _g_free0 (color_b); -#line 464 "/home/jens/Source/shotwell/src/util/image.vala" - color_b = _tmp11_; -#line 464 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp12_ = color_b; -#line 464 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp13_ = g_strdup (_tmp12_); -#line 464 "/home/jens/Source/shotwell/src/util/image.vala" - _g_free0 (color_a); -#line 464 "/home/jens/Source/shotwell/src/util/image.vala" - color_a = _tmp13_; -#line 465 "/home/jens/Source/shotwell/src/util/image.vala" - break; -#line 2149 "image.c" - } - } - } else { -#line 458 "/home/jens/Source/shotwell/src/util/image.vala" - switch (0) { -#line 2155 "image.c" - default: - { - gchar* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; -#line 467 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp14_ = g_strdup ("#000"); -#line 467 "/home/jens/Source/shotwell/src/util/image.vala" - _g_free0 (color_b); -#line 467 "/home/jens/Source/shotwell/src/util/image.vala" - color_b = _tmp14_; -#line 467 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp15_ = color_b; -#line 467 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp16_ = g_strdup (_tmp15_); -#line 467 "/home/jens/Source/shotwell/src/util/image.vala" - _g_free0 (color_a); -#line 467 "/home/jens/Source/shotwell/src/util/image.vala" - color_a = _tmp16_; -#line 468 "/home/jens/Source/shotwell/src/util/image.vala" - break; -#line 2177 "image.c" - } - } - } -#line 471 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp17_ = cairo_image_surface_create (CAIRO_FORMAT_RGB24, 16, 16); -#line 471 "/home/jens/Source/shotwell/src/util/image.vala" - _cairo_surface_destroy0 (background_surface); -#line 471 "/home/jens/Source/shotwell/src/util/image.vala" - background_surface = _tmp17_; -#line 472 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp18_ = background_surface; -#line 472 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp19_ = cairo_create (_tmp18_); -#line 472 "/home/jens/Source/shotwell/src/util/image.vala" - ctx = _tmp19_; -#line 473 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp20_ = ctx; -#line 473 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_set_operator (_tmp20_, CAIRO_OPERATOR_SOURCE); -#line 474 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp21_ = ctx; -#line 474 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp22_ = color_a; -#line 474 "/home/jens/Source/shotwell/src/util/image.vala" - set_source_color_from_string (_tmp21_, _tmp22_); -#line 475 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp23_ = ctx; -#line 475 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_rectangle (_tmp23_, (gdouble) 0, (gdouble) 0, (gdouble) 8, (gdouble) 8); -#line 476 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp24_ = ctx; -#line 476 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_rectangle (_tmp24_, (gdouble) 8, (gdouble) 8, (gdouble) 8, (gdouble) 8); -#line 477 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp25_ = ctx; -#line 477 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_fill (_tmp25_); -#line 478 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp26_ = ctx; -#line 478 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp27_ = color_b; -#line 478 "/home/jens/Source/shotwell/src/util/image.vala" - set_source_color_from_string (_tmp26_, _tmp27_); -#line 479 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp28_ = ctx; -#line 479 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_rectangle (_tmp28_, (gdouble) 0, (gdouble) 8, (gdouble) 8, (gdouble) 8); -#line 480 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp29_ = ctx; -#line 480 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_rectangle (_tmp29_, (gdouble) 8, (gdouble) 0, (gdouble) 8, (gdouble) 8); -#line 481 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp30_ = ctx; -#line 481 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_fill (_tmp30_); -#line 452 "/home/jens/Source/shotwell/src/util/image.vala" - _cairo_destroy0 (ctx); -#line 452 "/home/jens/Source/shotwell/src/util/image.vala" - _g_free0 (type); -#line 452 "/home/jens/Source/shotwell/src/util/image.vala" - _g_object_unref0 (config); -#line 452 "/home/jens/Source/shotwell/src/util/image.vala" - _g_free0 (color_b); -#line 452 "/home/jens/Source/shotwell/src/util/image.vala" - _g_free0 (color_a); -#line 2243 "image.c" - } -#line 484 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp31_ = background_surface; -#line 484 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp32_ = _cairo_surface_reference0 (_tmp31_); -#line 484 "/home/jens/Source/shotwell/src/util/image.vala" - result = _tmp32_; -#line 484 "/home/jens/Source/shotwell/src/util/image.vala" - return result; -#line 2253 "image.c" -} - - -void -invalidate_transparent_background (void) -{ -#line 488 "/home/jens/Source/shotwell/src/util/image.vala" - _cairo_surface_destroy0 (background_surface); -#line 488 "/home/jens/Source/shotwell/src/util/image.vala" - background_surface = NULL; -#line 2264 "image.c" -} - - -void -paint_pixmap_with_background (cairo_t* ctx, - GdkPixbuf* pixbuf, - gint x, - gint y) -{ -#line 491 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (ctx != NULL); -#line 491 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (GDK_IS_PIXBUF (pixbuf)); -#line 492 "/home/jens/Source/shotwell/src/util/image.vala" - if (gdk_pixbuf_get_has_alpha (pixbuf)) { -#line 2280 "image.c" - cairo_surface_t* _tmp0_; - cairo_surface_t* _tmp1_; - cairo_pattern_t* _tmp2_; - gint _tmp3_; - gint _tmp4_; - gint _tmp5_; - gint _tmp6_; -#line 493 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = get_background_surface (); -#line 493 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = _tmp0_; -#line 493 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_set_source_surface (ctx, _tmp1_, (gdouble) 0, (gdouble) 0); -#line 493 "/home/jens/Source/shotwell/src/util/image.vala" - _cairo_surface_destroy0 (_tmp1_); -#line 494 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = cairo_get_source (ctx); -#line 494 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_pattern_set_extend (_tmp2_, CAIRO_EXTEND_REPEAT); -#line 495 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = gdk_pixbuf_get_width (pixbuf); -#line 495 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_ = _tmp3_; -#line 495 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp5_ = gdk_pixbuf_get_height (pixbuf); -#line 495 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp6_ = _tmp5_; -#line 495 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_rectangle (ctx, (gdouble) x, (gdouble) y, (gdouble) _tmp4_, (gdouble) _tmp6_); -#line 496 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_fill (ctx); -#line 2312 "image.c" - } -#line 499 "/home/jens/Source/shotwell/src/util/image.vala" - gdk_cairo_set_source_pixbuf (ctx, pixbuf, (gdouble) x, (gdouble) y); -#line 500 "/home/jens/Source/shotwell/src/util/image.vala" - cairo_paint (ctx); -#line 2318 "image.c" -} - - -void -clamp_inside_rotated_image (Box* src, - gint img_w, - gint img_h, - gdouble angle_deg, - gboolean preserve_geom, - Box* result) -{ - GdkPoint top_left = {0}; - Box _tmp0_; - gint _tmp1_; - Box _tmp2_; - gint _tmp3_; - GdkPoint _tmp4_ = {0}; - GdkPoint _tmp5_ = {0}; - GdkPoint top_right = {0}; - Box _tmp6_; - gint _tmp7_; - Box _tmp8_; - gint _tmp9_; - GdkPoint _tmp10_ = {0}; - GdkPoint _tmp11_ = {0}; - GdkPoint bottom_left = {0}; - Box _tmp12_; - gint _tmp13_; - Box _tmp14_; - gint _tmp15_; - GdkPoint _tmp16_ = {0}; - GdkPoint _tmp17_ = {0}; - GdkPoint bottom_right = {0}; - Box _tmp18_; - gint _tmp19_; - Box _tmp20_; - gint _tmp21_; - GdkPoint _tmp22_ = {0}; - GdkPoint _tmp23_ = {0}; - gdouble angle = 0.0; - gint top_offset = 0; - gint bottom_offset = 0; - gint left_offset = 0; - gint right_offset = 0; - gint top = 0; - GdkPoint _tmp24_; - gint _tmp25_; - GdkPoint _tmp26_; - gint _tmp27_; - gint _tmp28_; - gint bottom = 0; - GdkPoint _tmp31_; - gint _tmp32_; - GdkPoint _tmp33_; - gint _tmp34_; - gint _tmp35_; - gint left = 0; - GdkPoint _tmp38_; - gint _tmp39_; - GdkPoint _tmp40_; - gint _tmp41_; - gint _tmp42_; - gint right = 0; - GdkPoint _tmp45_; - gint _tmp46_; - GdkPoint _tmp47_; - gint _tmp48_; - gint _tmp49_; - Box _tmp52_ = {0}; -#line 504 "/home/jens/Source/shotwell/src/util/image.vala" - g_return_if_fail (src != NULL); -#line 507 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp0_ = *src; -#line 507 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp1_ = _tmp0_.left; -#line 507 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp2_ = *src; -#line 507 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp3_ = _tmp2_.top; -#line 507 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_.x = _tmp1_; -#line 507 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp4_.y = _tmp3_; -#line 507 "/home/jens/Source/shotwell/src/util/image.vala" - derotate_point_arb (&_tmp4_, img_w, img_h, angle_deg, &_tmp5_); -#line 507 "/home/jens/Source/shotwell/src/util/image.vala" - top_left = _tmp5_; -#line 508 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp6_ = *src; -#line 508 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp7_ = _tmp6_.right; -#line 508 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp8_ = *src; -#line 508 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp9_ = _tmp8_.top; -#line 508 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp10_.x = _tmp7_; -#line 508 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp10_.y = _tmp9_; -#line 508 "/home/jens/Source/shotwell/src/util/image.vala" - derotate_point_arb (&_tmp10_, img_w, img_h, angle_deg, &_tmp11_); -#line 508 "/home/jens/Source/shotwell/src/util/image.vala" - top_right = _tmp11_; -#line 509 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp12_ = *src; -#line 509 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp13_ = _tmp12_.left; -#line 509 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp14_ = *src; -#line 509 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp15_ = _tmp14_.bottom; -#line 509 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp16_.x = _tmp13_; -#line 509 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp16_.y = _tmp15_; -#line 509 "/home/jens/Source/shotwell/src/util/image.vala" - derotate_point_arb (&_tmp16_, img_w, img_h, angle_deg, &_tmp17_); -#line 509 "/home/jens/Source/shotwell/src/util/image.vala" - bottom_left = _tmp17_; -#line 510 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp18_ = *src; -#line 510 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp19_ = _tmp18_.right; -#line 510 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp20_ = *src; -#line 510 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp21_ = _tmp20_.bottom; -#line 510 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp22_.x = _tmp19_; -#line 510 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp22_.y = _tmp21_; -#line 510 "/home/jens/Source/shotwell/src/util/image.vala" - derotate_point_arb (&_tmp22_, img_w, img_h, angle_deg, &_tmp23_); -#line 510 "/home/jens/Source/shotwell/src/util/image.vala" - bottom_right = _tmp23_; -#line 512 "/home/jens/Source/shotwell/src/util/image.vala" - angle = degrees_to_radians (angle_deg); -#line 513 "/home/jens/Source/shotwell/src/util/image.vala" - top_offset = 0; -#line 513 "/home/jens/Source/shotwell/src/util/image.vala" - bottom_offset = 0; -#line 513 "/home/jens/Source/shotwell/src/util/image.vala" - left_offset = 0; -#line 513 "/home/jens/Source/shotwell/src/util/image.vala" - right_offset = 0; -#line 515 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp24_ = top_left; -#line 515 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp25_ = _tmp24_.y; -#line 515 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp26_ = top_right; -#line 515 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp27_ = _tmp26_.y; -#line 515 "/home/jens/Source/shotwell/src/util/image.vala" - top = MIN (_tmp25_, _tmp27_); -#line 516 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp28_ = top; -#line 516 "/home/jens/Source/shotwell/src/util/image.vala" - if (_tmp28_ < 0) { -#line 2478 "image.c" - gint _tmp29_; - gdouble _tmp30_; -#line 517 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp29_ = top; -#line 517 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp30_ = angle; -#line 517 "/home/jens/Source/shotwell/src/util/image.vala" - top_offset = (gint) ((0 - _tmp29_) * cos (_tmp30_)); -#line 2487 "image.c" - } -#line 519 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp31_ = bottom_left; -#line 519 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp32_ = _tmp31_.y; -#line 519 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp33_ = bottom_right; -#line 519 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp34_ = _tmp33_.y; -#line 519 "/home/jens/Source/shotwell/src/util/image.vala" - bottom = MAX (_tmp32_, _tmp34_); -#line 520 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp35_ = bottom; -#line 520 "/home/jens/Source/shotwell/src/util/image.vala" - if (_tmp35_ > img_h) { -#line 2503 "image.c" - gint _tmp36_; - gdouble _tmp37_; -#line 521 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp36_ = bottom; -#line 521 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp37_ = angle; -#line 521 "/home/jens/Source/shotwell/src/util/image.vala" - bottom_offset = (gint) ((img_h - _tmp36_) * cos (_tmp37_)); -#line 2512 "image.c" - } -#line 523 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp38_ = top_left; -#line 523 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp39_ = _tmp38_.x; -#line 523 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp40_ = bottom_left; -#line 523 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp41_ = _tmp40_.x; -#line 523 "/home/jens/Source/shotwell/src/util/image.vala" - left = MIN (_tmp39_, _tmp41_); -#line 524 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp42_ = left; -#line 524 "/home/jens/Source/shotwell/src/util/image.vala" - if (_tmp42_ < 0) { -#line 2528 "image.c" - gint _tmp43_; - gdouble _tmp44_; -#line 525 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp43_ = left; -#line 525 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp44_ = angle; -#line 525 "/home/jens/Source/shotwell/src/util/image.vala" - left_offset = (gint) ((0 - _tmp43_) * cos (_tmp44_)); -#line 2537 "image.c" - } -#line 527 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp45_ = top_right; -#line 527 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp46_ = _tmp45_.x; -#line 527 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp47_ = bottom_right; -#line 527 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp48_ = _tmp47_.x; -#line 527 "/home/jens/Source/shotwell/src/util/image.vala" - right = MAX (_tmp46_, _tmp48_); -#line 528 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp49_ = right; -#line 528 "/home/jens/Source/shotwell/src/util/image.vala" - if (_tmp49_ > img_w) { -#line 2553 "image.c" - gint _tmp50_; - gdouble _tmp51_; -#line 529 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp50_ = right; -#line 529 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp51_ = angle; -#line 529 "/home/jens/Source/shotwell/src/util/image.vala" - right_offset = (gint) ((img_w - _tmp50_) * cos (_tmp51_)); -#line 2562 "image.c" - } -#line 531 "/home/jens/Source/shotwell/src/util/image.vala" - if (preserve_geom) { -#line 2566 "image.c" - gint _tmp53_; - gint _tmp54_; - gint _tmp55_; - gint _tmp56_; - Box _tmp57_ = {0}; -#line 531 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp53_ = left_offset; -#line 531 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp54_ = right_offset; -#line 531 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp55_ = top_offset; -#line 531 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp56_ = bottom_offset; -#line 531 "/home/jens/Source/shotwell/src/util/image.vala" - box_get_offset (src, _tmp53_ + _tmp54_, _tmp55_ + _tmp56_, &_tmp57_); -#line 531 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp52_ = _tmp57_; -#line 2584 "image.c" - } else { - Box _tmp58_; - gint _tmp59_; - gint _tmp60_; - Box _tmp61_; - gint _tmp62_; - gint _tmp63_; - Box _tmp64_; - gint _tmp65_; - gint _tmp66_; - Box _tmp67_; - gint _tmp68_; - gint _tmp69_; -#line 532 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp58_ = *src; -#line 532 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp59_ = _tmp58_.left; -#line 532 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp60_ = left_offset; -#line 532 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp61_ = *src; -#line 532 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp62_ = _tmp61_.top; -#line 532 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp63_ = top_offset; -#line 532 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp64_ = *src; -#line 532 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp65_ = _tmp64_.right; -#line 532 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp66_ = right_offset; -#line 532 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp67_ = *src; -#line 532 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp68_ = _tmp67_.bottom; -#line 532 "/home/jens/Source/shotwell/src/util/image.vala" - _tmp69_ = bottom_offset; -#line 532 "/home/jens/Source/shotwell/src/util/image.vala" - box_init (&_tmp52_, _tmp59_ + _tmp60_, _tmp62_ + _tmp63_, _tmp65_ + _tmp66_, _tmp68_ + _tmp69_); -#line 2624 "image.c" - } -#line 531 "/home/jens/Source/shotwell/src/util/image.vala" - *result = _tmp52_; -#line 531 "/home/jens/Source/shotwell/src/util/image.vala" - return; -#line 2630 "image.c" -} - - - diff --git a/src/util/image.vala b/src/util/image.vala index f8646e2..0a30339 100644 --- a/src/util/image.vala +++ b/src/util/image.vala @@ -4,121 +4,6 @@ * See the COPYING file in this distribution. */ - -/* XPM */ -private const string fallback_image_missing[] = { -/* columns rows colors chars-per-pixel */ -"48 48 54 1 ", -" c #6A6D67", -". c #6C6E69", -"X c #72746F", -"o c #747672", -"O c #777974", -"+ c #797B77", -"@ c #7C7E7A", -"# c #7F817C", -"$ c #81837F", -"% c #848682", -"& c #878984", -"* c #888A86", -"= c #8C8D8A", -"- c #8F908C", -"; c #90928E", -": c #949591", -"> c #969894", -", c #999B96", -"< c #9C9E9A", -"1 c #9FA09C", -"2 c #A1A39E", -"3 c #A4A6A2", -"4 c #A6A9A4", -"5 c #A9ABA6", -"6 c #ACADA9", -"7 c #AEB1AB", -"8 c #B1B2AF", -"9 c #B3B4B1", -"0 c #B6B9B3", -"q c #B9BCB6", -"w c #BDBEBA", -"e c #BEC2BB", -"r c #C1C4BE", -"t c #C5C5C2", -"y c #C6C9C3", -"u c #C9CCC6", -"i c #CCCDCB", -"p c #CED2CA", -"a c #D2D6CE", -"s c #D5D5D3", -"d c #D7D8D5", -"f c #D9D9D6", -"g c #DCDCDA", -"h c #DFE0DD", -"j c #E0E0DE", -"k c #E4E4E2", -"l c #E7E8E5", -"z c #E9E9E7", -"x c #EDEDEC", -"c c #EFF0EE", -"v c #F1F1EF", -"b c #F2F2F1", -"n c #FFFFFF", -"m c None", -/* pixels */ -"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", -"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", -"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", -"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", -"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", -"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", -"mmaaaaaaaaaasaisaaaaaaaaaaaaaaaaaaapppiipuuuuumm", -"mannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnym", -"manbbbbbbbbbvbbvvvvxvvvbvvvvvvvvccccccxxvxvxxnym", -"manbt89898888988888888888999999999999999999txnrm", -"manb6======================-;;=;;;;;;;;;;=:7znrm", -"manv6&%%**%*%%%%*%%****=======;==;;;;=;=;==7znem", -"manv4%%%%$%%%%%%%%%%%=****=======;==-======6znwm", -"manx3%%#$$$$##%#$%%%*%**==========-=--=====6znqm", -"manx1$@%#$@$###%%%%=****=*===--;;----====*=5lnqm", -"manx<@@@@@@@@##%$%%%%****========-==-======5kn0m", -"manz<@@@+@+@@@#$%%%%%=%=%===;=:=--------=-*4kn8m", -"manz>O+O+O+@@@#$$%%%%========;;=--------=*=3kn9m", -"mpnl:OOOOO+@@$##%%%%%=%=====;=;;--;-----===3kn8m", -"munl;OooOOO@@@#$%%%%%======;;;;;:;;;;;---==1hn7m", -"munl;oXoOO+@###$%%=%=======;::;::::;;---&#+-gn7m", -"mynk*XXooOO+$$#$%%%%=%===;;:;:::::;:-$#XooX-fn5m", -"mynk*XXOOO@@$$$$%%=%====;::::>::;*#OXXXXXXX*dn5m", -"mrnk*oOO@@@#$$$$%=====::::>>>=%@OXOooXXXooo&dn3m", -"mrnj*++@$$$$**$===-;;::>>:=@Ooo@XOOoo#o#OOO=fn3m", -"menj*@#$$$$$**===;;:::=%@@@@@@O@#O#Oo#o#++@;gn2m", -"menj*$$$$&**===;:;=*#@@@@@@@@@@@#######o##%>gn2m", -"menh*$$%**===;=*%###########%@@@###$####$%=,gn1m", -"m0nj=%***=**&$$$%$$$%$$%$$$$%$$$$$$$$$$%*;:2hn13gn,m", -"m0ng****&&&&&&&&&&&&*%*%*%%*%******%**-:,136kz;m", -"m0nh***$&&&&&&&&&&&&%**********%*$***;:,1358r7*m", -"m8ng*&&&&&&&&&*$&*&&&&$=$=$=&&&&&&**=:,<11>$65mm", -"m7ng*&&&&&&&&&**&&&&&&**=$-$&&&&&&*-:,1..&1wi:mm", -"m7ng&&&&&&&&=$*$&&&&&***$$$$&&&***=>,1,225;5srw%mmmm", -"m4nf3*&&**&&$-$-*******%$;&&*&*->,2365+ui7$mmmmm", -"m3nsfffdddsddaffssssdassgaaaassddfgjg4wu;ommmmmm", -"m3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnvq3<$.mmmmmmm", -"mm2211111,<,,,,,,>>>>:::;::;----=====@mmmmmmmmmm", -"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", -"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", -"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", -"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", -"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", -"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm", -"mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm" -}; - -bool is_color_parsable(string spec) { - var color = Gdk.RGBA (); - return color.parse(spec); -} - Gdk.RGBA parse_color(string spec) { return fetch_color(spec); } @@ -148,7 +33,11 @@ Gdk.Pixbuf get_placeholder_pixbuf () { pixbuf = icon_theme.load_icon("image-missing", Gtk.IconSize.DIALOG, 0); } catch (Error error) { - pixbuf = new Gdk.Pixbuf.from_xpm_data(fallback_image_missing); + try { + pixbuf = new Gdk.Pixbuf.from_resource("/org/gnome/Shotwell/icons/image-missing.png"); + } catch (Error err) { + warning("Could not load fall-back icon: %s", err.message); + } warning("Could not load icon from theme: %s", error.message); } diff --git a/src/util/misc.c b/src/util/misc.c deleted file mode 100644 index cfc0b70..0000000 --- a/src/util/misc.c +++ /dev/null @@ -1,3020 +0,0 @@ -/* misc.c generated by valac 0.40.4, the Vala compiler - * generated from misc.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#define _g_checksum_free0(var) ((var == NULL) ? NULL : (var = (g_checksum_free (var), NULL))) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -#define TYPE_DATA_OBJECT (data_object_get_type ()) -#define DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_OBJECT, DataObject)) -#define DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_OBJECT, DataObjectClass)) -#define IS_DATA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_OBJECT)) -#define IS_DATA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_OBJECT)) -#define DATA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_OBJECT, DataObjectClass)) - -typedef struct _DataObject DataObject; -typedef struct _DataObjectClass DataObjectClass; - -#define TYPE_DATA_SOURCE (data_source_get_type ()) -#define DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DATA_SOURCE, DataSource)) -#define DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DATA_SOURCE, DataSourceClass)) -#define IS_DATA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DATA_SOURCE)) -#define IS_DATA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DATA_SOURCE)) -#define DATA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DATA_SOURCE, DataSourceClass)) - -typedef struct _DataSource DataSource; -typedef struct _DataSourceClass DataSourceClass; - -#define TYPE_THUMBNAIL_SOURCE (thumbnail_source_get_type ()) -#define THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSource)) -#define THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) -#define IS_THUMBNAIL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_THUMBNAIL_SOURCE)) -#define IS_THUMBNAIL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_THUMBNAIL_SOURCE)) -#define THUMBNAIL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_THUMBNAIL_SOURCE, ThumbnailSourceClass)) - -typedef struct _ThumbnailSource ThumbnailSource; -typedef struct _ThumbnailSourceClass ThumbnailSourceClass; - -#define TYPE_MEDIA_SOURCE (media_source_get_type ()) -#define MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_SOURCE, MediaSource)) -#define MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_SOURCE, MediaSourceClass)) -#define IS_MEDIA_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_SOURCE)) -#define IS_MEDIA_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_SOURCE)) -#define MEDIA_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_SOURCE, MediaSourceClass)) - -typedef struct _MediaSource MediaSource; -typedef struct _MediaSourceClass MediaSourceClass; - -#define TYPE_PHOTO_SOURCE (photo_source_get_type ()) -#define PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO_SOURCE, PhotoSource)) -#define PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO_SOURCE, PhotoSourceClass)) -#define IS_PHOTO_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO_SOURCE)) -#define IS_PHOTO_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO_SOURCE)) -#define PHOTO_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO_SOURCE, PhotoSourceClass)) - -typedef struct _PhotoSource PhotoSource; -typedef struct _PhotoSourceClass PhotoSourceClass; - -#define TYPE_PHOTO (photo_get_type ()) -#define PHOTO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PHOTO, Photo)) -#define PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PHOTO, PhotoClass)) -#define IS_PHOTO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PHOTO)) -#define IS_PHOTO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PHOTO)) -#define PHOTO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PHOTO, PhotoClass)) - -typedef struct _Photo Photo; -typedef struct _PhotoClass PhotoClass; - -#define TYPE_PHOTO_ID (photo_id_get_type ()) -typedef struct _PhotoID PhotoID; - -#define TYPE_MEDIA_COLLECTION_REGISTRY (media_collection_registry_get_type ()) -#define MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistry)) -#define MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) -#define IS_MEDIA_COLLECTION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define IS_MEDIA_COLLECTION_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MEDIA_COLLECTION_REGISTRY)) -#define MEDIA_COLLECTION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MEDIA_COLLECTION_REGISTRY, MediaCollectionRegistryClass)) - -typedef struct _MediaCollectionRegistry MediaCollectionRegistry; -typedef struct _MediaCollectionRegistryClass MediaCollectionRegistryClass; -#define _media_collection_registry_unref0(var) ((var == NULL) ? NULL : (var = (media_collection_registry_unref (var), NULL))) - -#define TYPE_ONE_SHOT_SCHEDULER (one_shot_scheduler_get_type ()) -#define ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler)) -#define ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass)) -#define IS_ONE_SHOT_SCHEDULER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ONE_SHOT_SCHEDULER)) -#define IS_ONE_SHOT_SCHEDULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ONE_SHOT_SCHEDULER)) -#define ONE_SHOT_SCHEDULER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerClass)) - -typedef struct _OneShotScheduler OneShotScheduler; -typedef struct _OneShotSchedulerClass OneShotSchedulerClass; -typedef struct _OneShotSchedulerPrivate OneShotSchedulerPrivate; -typedef struct _ParamSpecOneShotScheduler ParamSpecOneShotScheduler; - -#define TYPE_OP_TIMER (op_timer_get_type ()) -#define OP_TIMER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_OP_TIMER, OpTimer)) -#define OP_TIMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_OP_TIMER, OpTimerClass)) -#define IS_OP_TIMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_OP_TIMER)) -#define IS_OP_TIMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_OP_TIMER)) -#define OP_TIMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_OP_TIMER, OpTimerClass)) - -typedef struct _OpTimer OpTimer; -typedef struct _OpTimerClass OpTimerClass; -typedef struct _OpTimerPrivate OpTimerPrivate; -#define _g_timer_destroy0(var) ((var == NULL) ? NULL : (var = (g_timer_destroy (var), NULL))) -typedef struct _ParamSpecOpTimer ParamSpecOpTimer; -#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); -#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; } -#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; } -#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg); - -typedef gboolean (*ValueEqualFunc) (GValue* a, GValue* b, void* user_data); -struct _PhotoID { - gint64 id; -}; - -typedef void (*OneShotCallback) (void* user_data); -struct _OneShotScheduler { - GTypeInstance parent_instance; - volatile int ref_count; - OneShotSchedulerPrivate * priv; -}; - -struct _OneShotSchedulerClass { - GTypeClass parent_class; - void (*finalize) (OneShotScheduler *self); -}; - -struct _OneShotSchedulerPrivate { - gchar* name; - OneShotCallback callback; - gpointer callback_target; - guint scheduled; -}; - -struct _ParamSpecOneShotScheduler { - GParamSpec parent_instance; -}; - -struct _OpTimer { - GTypeInstance parent_instance; - volatile int ref_count; - OpTimerPrivate * priv; -}; - -struct _OpTimerClass { - GTypeClass parent_class; - void (*finalize) (OpTimer *self); -}; - -struct _OpTimerPrivate { - gchar* name; - GTimer* timer; - glong count; - gdouble elapsed; - gdouble shortest; - gdouble longest; -}; - -struct _ParamSpecOpTimer { - GParamSpec parent_instance; -}; - - -static gpointer one_shot_scheduler_parent_class = NULL; -static gpointer op_timer_parent_class = NULL; - -guint int64_hash (gint64* n); -gboolean int64_equal (gint64* a, - gint64* b); -gint int64_compare (gint64* a, - gint64* b); -gint uint64_compare (guint64* a, - guint64* b); -gboolean bool_value_equals (GValue* a, - GValue* b); -gboolean int_value_equals (GValue* a, - GValue* b); -gulong timeval_to_ms (GTimeVal* time_val); -gulong now_ms (void); -gulong now_sec (void); -time_t now_time_t (void); -gchar* md5_file (GFile* file, - GError** error); -gboolean equal_sets (GeeSet* a, - GeeSet* b); -GeeSet* intersection_of_sets (GeeSet* a, - GeeSet* b, - GeeSet* excluded); -GType data_object_get_type (void) G_GNUC_CONST; -GType data_source_get_type (void) G_GNUC_CONST; -GType thumbnail_source_get_type (void) G_GNUC_CONST; -GType media_source_get_type (void) G_GNUC_CONST; -GType photo_source_get_type (void) G_GNUC_CONST; -GType photo_get_type (void) G_GNUC_CONST; -guchar* serialize_photo_ids (GeeCollection* photos, - int* result_length1); -GType photo_id_get_type (void) G_GNUC_CONST; -PhotoID* photo_id_dup (const PhotoID* self); -void photo_id_free (PhotoID* self); -void photo_get_photo_id (Photo* self, - PhotoID* result); -GeeList* unserialize_photo_ids (guchar* serialized, - gint size); -void photo_id_init (PhotoID *self, - gint64 id); -guchar* serialize_media_sources (GeeCollection* media, - int* result_length1); -gchar* data_source_get_source_id (DataSource* self); -GeeList* unserialize_media_sources (guchar* serialized, - gint size); -gpointer media_collection_registry_ref (gpointer instance); -void media_collection_registry_unref (gpointer instance); -GParamSpec* param_spec_media_collection_registry (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_media_collection_registry (GValue* value, - gpointer v_object); -void value_take_media_collection_registry (GValue* value, - gpointer v_object); -gpointer value_get_media_collection_registry (const GValue* value); -GType media_collection_registry_get_type (void) G_GNUC_CONST; -MediaCollectionRegistry* media_collection_registry_get_instance (void); -MediaSource* media_collection_registry_fetch_media (MediaCollectionRegistry* self, - const gchar* source_id); -gchar* format_local_datespan (struct tm* from_date, - struct tm* to_date); -gchar* resources_get_start_multiday_span_format_string (void); -gchar* resources_get_end_multiday_span_format_string (void); -gchar* resources_get_start_multimonth_span_format_string (void); -gchar* resources_get_end_multimonth_span_format_string (void); -gchar* resources_get_long_date_format_string (void); -gchar* string_strip_leading_zeroes (const gchar* str); -gchar* format_local_date (struct tm* date); -gpointer one_shot_scheduler_ref (gpointer instance); -void one_shot_scheduler_unref (gpointer instance); -GParamSpec* param_spec_one_shot_scheduler (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_one_shot_scheduler (GValue* value, - gpointer v_object); -void value_take_one_shot_scheduler (GValue* value, - gpointer v_object); -gpointer value_get_one_shot_scheduler (const GValue* value); -GType one_shot_scheduler_get_type (void) G_GNUC_CONST; -#define ONE_SHOT_SCHEDULER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ONE_SHOT_SCHEDULER, OneShotSchedulerPrivate)) -void one_shot_scheduler_cancel (OneShotScheduler* self); -OneShotScheduler* one_shot_scheduler_new (const gchar* name, - OneShotCallback callback, - void* callback_target); -OneShotScheduler* one_shot_scheduler_construct (GType object_type, - const gchar* name, - OneShotCallback callback, - void* callback_target); -gboolean one_shot_scheduler_is_scheduled (OneShotScheduler* self); -void one_shot_scheduler_at_idle (OneShotScheduler* self); -void one_shot_scheduler_at_priority_idle (OneShotScheduler* self, - gint priority); -static gboolean one_shot_scheduler_callback_wrapper (OneShotScheduler* self); -static gboolean _one_shot_scheduler_callback_wrapper_gsource_func (gpointer self); -void one_shot_scheduler_after_timeout (OneShotScheduler* self, - guint msec, - gboolean reschedule); -void one_shot_scheduler_priority_after_timeout (OneShotScheduler* self, - gint priority, - guint msec, - gboolean reschedule); -static void one_shot_scheduler_finalize (OneShotScheduler * obj); -gpointer op_timer_ref (gpointer instance); -void op_timer_unref (gpointer instance); -GParamSpec* param_spec_op_timer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_op_timer (GValue* value, - gpointer v_object); -void value_take_op_timer (GValue* value, - gpointer v_object); -gpointer value_get_op_timer (const GValue* value); -GType op_timer_get_type (void) G_GNUC_CONST; -#define OP_TIMER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_OP_TIMER, OpTimerPrivate)) -OpTimer* op_timer_new (const gchar* name); -OpTimer* op_timer_construct (GType object_type, - const gchar* name); -void op_timer_start (OpTimer* self); -void op_timer_stop (OpTimer* self); -gchar* op_timer_to_string (OpTimer* self); -static void op_timer_finalize (OpTimer * obj); - - -guint -int64_hash (gint64* n) -{ - guint result = 0U; - guint8* u8 = NULL; - guint hash = 0U; -#line 9 "/home/jens/Source/shotwell/src/util/misc.vala" - u8 = (guint8*) n; -#line 10 "/home/jens/Source/shotwell/src/util/misc.vala" - hash = (guint) 0; -#line 326 "misc.c" - { - gint ctr = 0; -#line 11 "/home/jens/Source/shotwell/src/util/misc.vala" - ctr = 0; -#line 331 "misc.c" - { - gboolean _tmp0_ = FALSE; -#line 11 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = TRUE; -#line 11 "/home/jens/Source/shotwell/src/util/misc.vala" - while (TRUE) { -#line 338 "misc.c" - gint _tmp2_; - guint _tmp3_; - guint _tmp4_; - guint8* _tmp5_; -#line 11 "/home/jens/Source/shotwell/src/util/misc.vala" - if (!_tmp0_) { -#line 345 "misc.c" - gint _tmp1_; -#line 11 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = ctr; -#line 11 "/home/jens/Source/shotwell/src/util/misc.vala" - ctr = _tmp1_ + 1; -#line 351 "misc.c" - } -#line 11 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = FALSE; -#line 11 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp2_ = ctr; -#line 11 "/home/jens/Source/shotwell/src/util/misc.vala" - if (!(((gulong) _tmp2_) < (sizeof (gint64) / sizeof (guint8)))) { -#line 11 "/home/jens/Source/shotwell/src/util/misc.vala" - break; -#line 361 "misc.c" - } -#line 12 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp3_ = hash; -#line 12 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp4_ = hash; -#line 12 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp5_ = u8; -#line 12 "/home/jens/Source/shotwell/src/util/misc.vala" - u8 = _tmp5_ + 1; -#line 12 "/home/jens/Source/shotwell/src/util/misc.vala" - hash = ((_tmp3_ << 4) ^ (_tmp4_ >> 28)) ^ (*_tmp5_); -#line 373 "misc.c" - } - } - } -#line 15 "/home/jens/Source/shotwell/src/util/misc.vala" - result = hash; -#line 15 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 381 "misc.c" -} - - -gboolean -int64_equal (gint64* a, - gint64* b) -{ - gboolean result = FALSE; - gint64* bia = NULL; - gint64* bib = NULL; -#line 19 "/home/jens/Source/shotwell/src/util/misc.vala" - bia = (gint64*) a; -#line 20 "/home/jens/Source/shotwell/src/util/misc.vala" - bib = (gint64*) b; -#line 22 "/home/jens/Source/shotwell/src/util/misc.vala" - result = (*bia) == (*bib); -#line 22 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 400 "misc.c" -} - - -gint -int64_compare (gint64* a, - gint64* b) -{ - gint result = 0; - gint64 diff = 0LL; - gint64 _tmp0_; -#line 26 "/home/jens/Source/shotwell/src/util/misc.vala" - diff = (*((gint64*) a)) - (*((gint64*) b)); -#line 27 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = diff; -#line 27 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp0_ < ((gint64) 0)) { -#line 28 "/home/jens/Source/shotwell/src/util/misc.vala" - result = -1; -#line 28 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 421 "misc.c" - } else { - gint64 _tmp1_; -#line 29 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = diff; -#line 29 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp1_ > ((gint64) 0)) { -#line 30 "/home/jens/Source/shotwell/src/util/misc.vala" - result = 1; -#line 30 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 432 "misc.c" - } else { -#line 32 "/home/jens/Source/shotwell/src/util/misc.vala" - result = 0; -#line 32 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 438 "misc.c" - } - } -} - - -gint -uint64_compare (guint64* a, - guint64* b) -{ - gint result = 0; - guint64 a64 = 0ULL; - guint64 b64 = 0ULL; - guint64 _tmp0_; - guint64 _tmp1_; -#line 36 "/home/jens/Source/shotwell/src/util/misc.vala" - a64 = *((guint64*) a); -#line 37 "/home/jens/Source/shotwell/src/util/misc.vala" - b64 = *((guint64*) b); -#line 39 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = a64; -#line 39 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = b64; -#line 39 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp0_ < _tmp1_) { -#line 40 "/home/jens/Source/shotwell/src/util/misc.vala" - result = -1; -#line 40 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 467 "misc.c" - } else { - guint64 _tmp2_; - guint64 _tmp3_; -#line 41 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp2_ = a64; -#line 41 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp3_ = b64; -#line 41 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp2_ > _tmp3_) { -#line 42 "/home/jens/Source/shotwell/src/util/misc.vala" - result = 1; -#line 42 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 481 "misc.c" - } else { -#line 44 "/home/jens/Source/shotwell/src/util/misc.vala" - result = 0; -#line 44 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 487 "misc.c" - } - } -} - - -gboolean -bool_value_equals (GValue* a, - GValue* b) -{ - gboolean result = FALSE; - GValue _tmp0_; - GValue _tmp1_; -#line 49 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (a != NULL, FALSE); -#line 49 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (b != NULL, FALSE); -#line 50 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = *a; -#line 50 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = *b; -#line 50 "/home/jens/Source/shotwell/src/util/misc.vala" - result = g_value_get_boolean (&_tmp0_) == g_value_get_boolean (&_tmp1_); -#line 50 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 512 "misc.c" -} - - -gboolean -int_value_equals (GValue* a, - GValue* b) -{ - gboolean result = FALSE; - GValue _tmp0_; - GValue _tmp1_; -#line 53 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (a != NULL, FALSE); -#line 53 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (b != NULL, FALSE); -#line 54 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = *a; -#line 54 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = *b; -#line 54 "/home/jens/Source/shotwell/src/util/misc.vala" - result = g_value_get_int (&_tmp0_) == g_value_get_int (&_tmp1_); -#line 54 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 535 "misc.c" -} - - -gulong -timeval_to_ms (GTimeVal* time_val) -{ - gulong result = 0UL; - GTimeVal _tmp0_; - glong _tmp1_; - GTimeVal _tmp2_; - glong _tmp3_; -#line 57 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (time_val != NULL, 0UL); -#line 58 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = *time_val; -#line 58 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = _tmp0_.tv_sec; -#line 58 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp2_ = *time_val; -#line 58 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp3_ = _tmp2_.tv_usec; -#line 58 "/home/jens/Source/shotwell/src/util/misc.vala" - result = (((gulong) _tmp1_) * 1000) + (((gulong) _tmp3_) / 1000); -#line 58 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 561 "misc.c" -} - - -gulong -now_ms (void) -{ - gulong result = 0UL; - GTimeVal _tmp0_ = {0}; -#line 62 "/home/jens/Source/shotwell/src/util/misc.vala" - g_get_current_time (&_tmp0_); -#line 62 "/home/jens/Source/shotwell/src/util/misc.vala" - result = timeval_to_ms (&_tmp0_); -#line 62 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 576 "misc.c" -} - - -gulong -now_sec (void) -{ - gulong result = 0UL; - GTimeVal time_val = {0}; - GTimeVal _tmp0_; - glong _tmp1_; -#line 66 "/home/jens/Source/shotwell/src/util/misc.vala" - g_get_current_time (&time_val); -#line 68 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = time_val; -#line 68 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = _tmp0_.tv_sec; -#line 68 "/home/jens/Source/shotwell/src/util/misc.vala" - result = (gulong) _tmp1_; -#line 68 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 597 "misc.c" -} - - -inline time_t -now_time_t (void) -{ - time_t result = 0; -#line 72 "/home/jens/Source/shotwell/src/util/misc.vala" - result = (time_t) now_sec (); -#line 72 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 609 "misc.c" -} - - -gchar* -md5_file (GFile* file, - GError** error) -{ - gchar* result = NULL; - GChecksum* md5 = NULL; - GChecksum* _tmp0_; - guint8* buffer = NULL; - guint8* _tmp1_; - gint buffer_length1; - gint _buffer_size_; - GFileInputStream* fins = NULL; - GFileInputStream* _tmp2_; - GChecksum* _tmp15_; - const gchar* _tmp16_; - gchar* _tmp17_; - GError * _inner_error_ = NULL; -#line 75 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 76 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = g_checksum_new (G_CHECKSUM_MD5); -#line 76 "/home/jens/Source/shotwell/src/util/misc.vala" - md5 = _tmp0_; -#line 77 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = g_new0 (guint8, 64 * 1024); -#line 77 "/home/jens/Source/shotwell/src/util/misc.vala" - buffer = _tmp1_; -#line 77 "/home/jens/Source/shotwell/src/util/misc.vala" - buffer_length1 = 64 * 1024; -#line 77 "/home/jens/Source/shotwell/src/util/misc.vala" - _buffer_size_ = buffer_length1; -#line 79 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp2_ = g_file_read (file, NULL, &_inner_error_); -#line 79 "/home/jens/Source/shotwell/src/util/misc.vala" - fins = _tmp2_; -#line 79 "/home/jens/Source/shotwell/src/util/misc.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 79 "/home/jens/Source/shotwell/src/util/misc.vala" - g_propagate_error (error, _inner_error_); -#line 79 "/home/jens/Source/shotwell/src/util/misc.vala" - buffer = (g_free (buffer), NULL); -#line 79 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_checksum_free0 (md5); -#line 79 "/home/jens/Source/shotwell/src/util/misc.vala" - return NULL; -#line 658 "misc.c" - } - { - gboolean _tmp3_ = FALSE; -#line 80 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp3_ = TRUE; -#line 80 "/home/jens/Source/shotwell/src/util/misc.vala" - while (TRUE) { -#line 666 "misc.c" - gsize bytes_read = 0UL; - GFileInputStream* _tmp4_; - guint8* _tmp5_; - gint _tmp5__length1; - gsize _tmp6_; - GChecksum* _tmp7_; - guint8* _tmp8_; - gint _tmp8__length1; - gsize _tmp9_; -#line 80 "/home/jens/Source/shotwell/src/util/misc.vala" - if (!_tmp3_) { -#line 678 "misc.c" - } -#line 80 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp3_ = FALSE; -#line 81 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp4_ = fins; -#line 81 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp5_ = buffer; -#line 81 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp5__length1 = buffer_length1; -#line 81 "/home/jens/Source/shotwell/src/util/misc.vala" - bytes_read = (gsize) g_input_stream_read (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, g_input_stream_get_type (), GInputStream), _tmp5_, (gsize) _tmp5__length1, NULL, &_inner_error_); -#line 81 "/home/jens/Source/shotwell/src/util/misc.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 81 "/home/jens/Source/shotwell/src/util/misc.vala" - g_propagate_error (error, _inner_error_); -#line 81 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_object_unref0 (fins); -#line 81 "/home/jens/Source/shotwell/src/util/misc.vala" - buffer = (g_free (buffer), NULL); -#line 81 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_checksum_free0 (md5); -#line 81 "/home/jens/Source/shotwell/src/util/misc.vala" - return NULL; -#line 702 "misc.c" - } -#line 82 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp6_ = bytes_read; -#line 82 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp6_ <= ((gsize) 0)) { -#line 83 "/home/jens/Source/shotwell/src/util/misc.vala" - break; -#line 710 "misc.c" - } -#line 85 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp7_ = md5; -#line 85 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp8_ = buffer; -#line 85 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp8__length1 = buffer_length1; -#line 85 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp9_ = bytes_read; -#line 85 "/home/jens/Source/shotwell/src/util/misc.vala" - g_checksum_update (_tmp7_, (guchar*) _tmp8_, _tmp9_); -#line 722 "misc.c" - } - } - { - GFileInputStream* _tmp10_; -#line 89 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp10_ = fins; -#line 89 "/home/jens/Source/shotwell/src/util/misc.vala" - g_input_stream_close (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, g_input_stream_get_type (), GInputStream), NULL, &_inner_error_); -#line 89 "/home/jens/Source/shotwell/src/util/misc.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 733 "misc.c" - goto __catch5_g_error; - } - } - goto __finally5; - __catch5_g_error: - { - GError* err = NULL; - gchar* _tmp11_; - gchar* _tmp12_; - GError* _tmp13_; - const gchar* _tmp14_; -#line 88 "/home/jens/Source/shotwell/src/util/misc.vala" - err = _inner_error_; -#line 88 "/home/jens/Source/shotwell/src/util/misc.vala" - _inner_error_ = NULL; -#line 91 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp11_ = g_file_get_path (file); -#line 91 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp12_ = _tmp11_; -#line 91 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp13_ = err; -#line 91 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp14_ = _tmp13_->message; -#line 91 "/home/jens/Source/shotwell/src/util/misc.vala" - g_warning ("misc.vala:91: Unable to close MD5 input stream for %s: %s", _tmp12_, _tmp14_); -#line 91 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (_tmp12_); -#line 88 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_error_free0 (err); -#line 763 "misc.c" - } - __finally5: -#line 88 "/home/jens/Source/shotwell/src/util/misc.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 88 "/home/jens/Source/shotwell/src/util/misc.vala" - g_propagate_error (error, _inner_error_); -#line 88 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_object_unref0 (fins); -#line 88 "/home/jens/Source/shotwell/src/util/misc.vala" - buffer = (g_free (buffer), NULL); -#line 88 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_checksum_free0 (md5); -#line 88 "/home/jens/Source/shotwell/src/util/misc.vala" - return NULL; -#line 778 "misc.c" - } -#line 94 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp15_ = md5; -#line 94 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp16_ = g_checksum_get_string (_tmp15_); -#line 94 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp17_ = g_strdup (_tmp16_); -#line 94 "/home/jens/Source/shotwell/src/util/misc.vala" - result = _tmp17_; -#line 94 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_object_unref0 (fins); -#line 94 "/home/jens/Source/shotwell/src/util/misc.vala" - buffer = (g_free (buffer), NULL); -#line 94 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_checksum_free0 (md5); -#line 94 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 796 "misc.c" -} - - -gboolean -equal_sets (GeeSet* a, - GeeSet* b) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - gboolean _tmp4_ = FALSE; - gboolean _tmp8_ = FALSE; - gboolean _tmp9_ = FALSE; - gboolean _tmp11_ = FALSE; - gint _tmp12_; - gint _tmp13_; - gint _tmp14_; - gint _tmp15_; -#line 98 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail ((a == NULL) || GEE_IS_SET (a), FALSE); -#line 98 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail ((b == NULL) || GEE_IS_SET (b), FALSE); -#line 99 "/home/jens/Source/shotwell/src/util/misc.vala" - if (a != NULL) { -#line 821 "misc.c" - gint _tmp2_; - gint _tmp3_; -#line 99 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp2_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_COLLECTION, GeeCollection)); -#line 99 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp3_ = _tmp2_; -#line 99 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = _tmp3_ == 0; -#line 830 "misc.c" - } else { -#line 99 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = FALSE; -#line 834 "misc.c" - } -#line 99 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp1_) { -#line 99 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = b == NULL; -#line 840 "misc.c" - } else { -#line 99 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = FALSE; -#line 844 "misc.c" - } -#line 99 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp0_) { -#line 100 "/home/jens/Source/shotwell/src/util/misc.vala" - result = TRUE; -#line 100 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 852 "misc.c" - } -#line 102 "/home/jens/Source/shotwell/src/util/misc.vala" - if (a == NULL) { -#line 856 "misc.c" - gboolean _tmp5_ = FALSE; -#line 102 "/home/jens/Source/shotwell/src/util/misc.vala" - if (b != NULL) { -#line 860 "misc.c" - gint _tmp6_; - gint _tmp7_; -#line 102 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp6_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (b, GEE_TYPE_COLLECTION, GeeCollection)); -#line 102 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp7_ = _tmp6_; -#line 102 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp5_ = _tmp7_ == 0; -#line 869 "misc.c" - } else { -#line 102 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp5_ = FALSE; -#line 873 "misc.c" - } -#line 102 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp4_ = _tmp5_; -#line 877 "misc.c" - } else { -#line 102 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp4_ = FALSE; -#line 881 "misc.c" - } -#line 102 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp4_) { -#line 103 "/home/jens/Source/shotwell/src/util/misc.vala" - result = TRUE; -#line 103 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 889 "misc.c" - } -#line 105 "/home/jens/Source/shotwell/src/util/misc.vala" - if (a == NULL) { -#line 105 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp9_ = b != NULL; -#line 895 "misc.c" - } else { -#line 105 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp9_ = FALSE; -#line 899 "misc.c" - } -#line 105 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp9_) { -#line 105 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp8_ = TRUE; -#line 905 "misc.c" - } else { - gboolean _tmp10_ = FALSE; -#line 105 "/home/jens/Source/shotwell/src/util/misc.vala" - if (a != NULL) { -#line 105 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp10_ = b == NULL; -#line 912 "misc.c" - } else { -#line 105 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp10_ = FALSE; -#line 916 "misc.c" - } -#line 105 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp8_ = _tmp10_; -#line 920 "misc.c" - } -#line 105 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp8_) { -#line 106 "/home/jens/Source/shotwell/src/util/misc.vala" - result = FALSE; -#line 106 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 928 "misc.c" - } -#line 108 "/home/jens/Source/shotwell/src/util/misc.vala" - if (a == NULL) { -#line 108 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp11_ = b == NULL; -#line 934 "misc.c" - } else { -#line 108 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp11_ = FALSE; -#line 938 "misc.c" - } -#line 108 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp11_) { -#line 109 "/home/jens/Source/shotwell/src/util/misc.vala" - result = TRUE; -#line 109 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 946 "misc.c" - } -#line 111 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp12_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_COLLECTION, GeeCollection)); -#line 111 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp13_ = _tmp12_; -#line 111 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp14_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (b, GEE_TYPE_COLLECTION, GeeCollection)); -#line 111 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp15_ = _tmp14_; -#line 111 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp13_ != _tmp15_) { -#line 112 "/home/jens/Source/shotwell/src/util/misc.vala" - result = FALSE; -#line 112 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 962 "misc.c" - } - { - GeeIterator* _element_it = NULL; - GeeIterator* _tmp16_; -#line 116 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp16_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_ITERABLE, GeeIterable)); -#line 116 "/home/jens/Source/shotwell/src/util/misc.vala" - _element_it = _tmp16_; -#line 116 "/home/jens/Source/shotwell/src/util/misc.vala" - while (TRUE) { -#line 973 "misc.c" - GeeIterator* _tmp17_; - gchar* element = NULL; - GeeIterator* _tmp18_; - gpointer _tmp19_; - const gchar* _tmp20_; -#line 116 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp17_ = _element_it; -#line 116 "/home/jens/Source/shotwell/src/util/misc.vala" - if (!gee_iterator_next (_tmp17_)) { -#line 116 "/home/jens/Source/shotwell/src/util/misc.vala" - break; -#line 985 "misc.c" - } -#line 116 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp18_ = _element_it; -#line 116 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp19_ = gee_iterator_get (_tmp18_); -#line 116 "/home/jens/Source/shotwell/src/util/misc.vala" - element = (gchar*) _tmp19_; -#line 117 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp20_ = element; -#line 117 "/home/jens/Source/shotwell/src/util/misc.vala" - if (!gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (b, GEE_TYPE_COLLECTION, GeeCollection), _tmp20_)) { -#line 118 "/home/jens/Source/shotwell/src/util/misc.vala" - result = FALSE; -#line 118 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (element); -#line 118 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_object_unref0 (_element_it); -#line 118 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 1005 "misc.c" - } -#line 116 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (element); -#line 1009 "misc.c" - } -#line 116 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_object_unref0 (_element_it); -#line 1013 "misc.c" - } -#line 121 "/home/jens/Source/shotwell/src/util/misc.vala" - result = TRUE; -#line 121 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 1019 "misc.c" -} - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 157 "/home/jens/Source/shotwell/src/util/misc.vala" - return self ? g_object_ref (self) : NULL; -#line 1028 "misc.c" -} - - -GeeSet* -intersection_of_sets (GeeSet* a, - GeeSet* b, - GeeSet* excluded) -{ - GeeSet* result = NULL; - gboolean _tmp0_ = FALSE; - gboolean _tmp1_ = FALSE; - GeeSet* intersection = NULL; - GeeHashSet* _tmp2_; - GeeSet* _tmp19_ = NULL; - GeeSet* _tmp20_; - gint _tmp21_; - gint _tmp22_; - GeeSet* _tmp24_; -#line 125 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail ((a == NULL) || GEE_IS_SET (a), NULL); -#line 125 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail ((b == NULL) || GEE_IS_SET (b), NULL); -#line 125 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail ((excluded == NULL) || GEE_IS_SET (excluded), NULL); -#line 127 "/home/jens/Source/shotwell/src/util/misc.vala" - if (a != NULL) { -#line 127 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = b == NULL; -#line 1057 "misc.c" - } else { -#line 127 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = FALSE; -#line 1061 "misc.c" - } -#line 127 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp0_) { -#line 128 "/home/jens/Source/shotwell/src/util/misc.vala" - if (excluded != NULL) { -#line 129 "/home/jens/Source/shotwell/src/util/misc.vala" - gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (excluded, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1069 "misc.c" - } -#line 131 "/home/jens/Source/shotwell/src/util/misc.vala" - result = NULL; -#line 131 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 1075 "misc.c" - } -#line 134 "/home/jens/Source/shotwell/src/util/misc.vala" - if (a == NULL) { -#line 134 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = b != NULL; -#line 1081 "misc.c" - } else { -#line 134 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = FALSE; -#line 1085 "misc.c" - } -#line 134 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp1_) { -#line 135 "/home/jens/Source/shotwell/src/util/misc.vala" - if (excluded != NULL) { -#line 136 "/home/jens/Source/shotwell/src/util/misc.vala" - gee_collection_add_all (G_TYPE_CHECK_INSTANCE_CAST (excluded, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (b, GEE_TYPE_COLLECTION, GeeCollection)); -#line 1093 "misc.c" - } -#line 138 "/home/jens/Source/shotwell/src/util/misc.vala" - result = NULL; -#line 138 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 1099 "misc.c" - } -#line 141 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp2_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL); -#line 141 "/home/jens/Source/shotwell/src/util/misc.vala" - intersection = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_SET, GeeSet); -#line 1105 "misc.c" - { - GeeIterator* _element_it = NULL; - GeeIterator* _tmp3_; -#line 143 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_ITERABLE, GeeIterable)); -#line 143 "/home/jens/Source/shotwell/src/util/misc.vala" - _element_it = _tmp3_; -#line 143 "/home/jens/Source/shotwell/src/util/misc.vala" - while (TRUE) { -#line 1115 "misc.c" - GeeIterator* _tmp4_; - gchar* element = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - const gchar* _tmp7_; -#line 143 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp4_ = _element_it; -#line 143 "/home/jens/Source/shotwell/src/util/misc.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 143 "/home/jens/Source/shotwell/src/util/misc.vala" - break; -#line 1127 "misc.c" - } -#line 143 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp5_ = _element_it; -#line 143 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 143 "/home/jens/Source/shotwell/src/util/misc.vala" - element = (gchar*) _tmp6_; -#line 144 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp7_ = element; -#line 144 "/home/jens/Source/shotwell/src/util/misc.vala" - if (gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (b, GEE_TYPE_COLLECTION, GeeCollection), _tmp7_)) { -#line 1139 "misc.c" - GeeSet* _tmp8_; - const gchar* _tmp9_; -#line 145 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp8_ = intersection; -#line 145 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp9_ = element; -#line 145 "/home/jens/Source/shotwell/src/util/misc.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GEE_TYPE_COLLECTION, GeeCollection), _tmp9_); -#line 1148 "misc.c" - } else { -#line 146 "/home/jens/Source/shotwell/src/util/misc.vala" - if (excluded != NULL) { -#line 1152 "misc.c" - const gchar* _tmp10_; -#line 147 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp10_ = element; -#line 147 "/home/jens/Source/shotwell/src/util/misc.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (excluded, GEE_TYPE_COLLECTION, GeeCollection), _tmp10_); -#line 1158 "misc.c" - } - } -#line 143 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (element); -#line 1163 "misc.c" - } -#line 143 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_object_unref0 (_element_it); -#line 1167 "misc.c" - } - { - GeeIterator* _element_it = NULL; - GeeIterator* _tmp11_; -#line 150 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp11_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (b, GEE_TYPE_ITERABLE, GeeIterable)); -#line 150 "/home/jens/Source/shotwell/src/util/misc.vala" - _element_it = _tmp11_; -#line 150 "/home/jens/Source/shotwell/src/util/misc.vala" - while (TRUE) { -#line 1178 "misc.c" - GeeIterator* _tmp12_; - gchar* element = NULL; - GeeIterator* _tmp13_; - gpointer _tmp14_; - const gchar* _tmp15_; -#line 150 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp12_ = _element_it; -#line 150 "/home/jens/Source/shotwell/src/util/misc.vala" - if (!gee_iterator_next (_tmp12_)) { -#line 150 "/home/jens/Source/shotwell/src/util/misc.vala" - break; -#line 1190 "misc.c" - } -#line 150 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp13_ = _element_it; -#line 150 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp14_ = gee_iterator_get (_tmp13_); -#line 150 "/home/jens/Source/shotwell/src/util/misc.vala" - element = (gchar*) _tmp14_; -#line 151 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp15_ = element; -#line 151 "/home/jens/Source/shotwell/src/util/misc.vala" - if (gee_collection_contains (G_TYPE_CHECK_INSTANCE_CAST (a, GEE_TYPE_COLLECTION, GeeCollection), _tmp15_)) { -#line 1202 "misc.c" - GeeSet* _tmp16_; - const gchar* _tmp17_; -#line 152 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp16_ = intersection; -#line 152 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp17_ = element; -#line 152 "/home/jens/Source/shotwell/src/util/misc.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_COLLECTION, GeeCollection), _tmp17_); -#line 1211 "misc.c" - } else { -#line 153 "/home/jens/Source/shotwell/src/util/misc.vala" - if (excluded != NULL) { -#line 1215 "misc.c" - const gchar* _tmp18_; -#line 154 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp18_ = element; -#line 154 "/home/jens/Source/shotwell/src/util/misc.vala" - gee_collection_add (G_TYPE_CHECK_INSTANCE_CAST (excluded, GEE_TYPE_COLLECTION, GeeCollection), _tmp18_); -#line 1221 "misc.c" - } - } -#line 150 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (element); -#line 1226 "misc.c" - } -#line 150 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_object_unref0 (_element_it); -#line 1230 "misc.c" - } -#line 157 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp20_ = intersection; -#line 157 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp21_ = gee_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 157 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp22_ = _tmp21_; -#line 157 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp22_ > 0) { -#line 1240 "misc.c" - GeeSet* _tmp23_; -#line 157 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp23_ = intersection; -#line 157 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp19_ = _tmp23_; -#line 1246 "misc.c" - } else { -#line 157 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp19_ = NULL; -#line 1250 "misc.c" - } -#line 157 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp24_ = _g_object_ref0 (_tmp19_); -#line 157 "/home/jens/Source/shotwell/src/util/misc.vala" - result = _tmp24_; -#line 157 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_object_unref0 (intersection); -#line 157 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 1260 "misc.c" -} - - -guchar* -serialize_photo_ids (GeeCollection* photos, - int* result_length1) -{ - guchar* result = NULL; - gint64* ids = NULL; - gint _tmp0_; - gint _tmp1_; - gint64* _tmp2_; - gint ids_length1; - gint _ids_size_; - gint ctr = 0; - gsize bytes = 0UL; - gint _tmp13_; - gint _tmp14_; - guchar* serialized = NULL; - guchar* _tmp15_; - gint serialized_length1; - gint _serialized_size_; - gint64* _tmp16_; - gint _tmp16__length1; - guchar* _tmp17_; - gint _tmp17__length1; -#line 160 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (photos), NULL); -#line 161 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = gee_collection_get_size (photos); -#line 161 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = _tmp0_; -#line 161 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp2_ = g_new0 (gint64, _tmp1_); -#line 161 "/home/jens/Source/shotwell/src/util/misc.vala" - ids = _tmp2_; -#line 161 "/home/jens/Source/shotwell/src/util/misc.vala" - ids_length1 = _tmp1_; -#line 161 "/home/jens/Source/shotwell/src/util/misc.vala" - _ids_size_ = ids_length1; -#line 162 "/home/jens/Source/shotwell/src/util/misc.vala" - ctr = 0; -#line 1303 "misc.c" - { - GeeIterator* _photo_it = NULL; - GeeIterator* _tmp3_; -#line 163 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (photos, GEE_TYPE_ITERABLE, GeeIterable)); -#line 163 "/home/jens/Source/shotwell/src/util/misc.vala" - _photo_it = _tmp3_; -#line 163 "/home/jens/Source/shotwell/src/util/misc.vala" - while (TRUE) { -#line 1313 "misc.c" - GeeIterator* _tmp4_; - Photo* photo = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - gint64* _tmp7_; - gint _tmp7__length1; - gint _tmp8_; - Photo* _tmp9_; - PhotoID _tmp10_ = {0}; - gint64 _tmp11_; - gint64 _tmp12_; -#line 163 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp4_ = _photo_it; -#line 163 "/home/jens/Source/shotwell/src/util/misc.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 163 "/home/jens/Source/shotwell/src/util/misc.vala" - break; -#line 1331 "misc.c" - } -#line 163 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp5_ = _photo_it; -#line 163 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 163 "/home/jens/Source/shotwell/src/util/misc.vala" - photo = (Photo*) _tmp6_; -#line 164 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp7_ = ids; -#line 164 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp7__length1 = ids_length1; -#line 164 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp8_ = ctr; -#line 164 "/home/jens/Source/shotwell/src/util/misc.vala" - ctr = _tmp8_ + 1; -#line 164 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp9_ = photo; -#line 164 "/home/jens/Source/shotwell/src/util/misc.vala" - photo_get_photo_id (_tmp9_, &_tmp10_); -#line 164 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp11_ = _tmp10_.id; -#line 164 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp7_[_tmp8_] = _tmp11_; -#line 164 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp12_ = _tmp7_[_tmp8_]; -#line 163 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_object_unref0 (photo); -#line 1359 "misc.c" - } -#line 163 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_object_unref0 (_photo_it); -#line 1363 "misc.c" - } -#line 166 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp13_ = gee_collection_get_size (photos); -#line 166 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp14_ = _tmp13_; -#line 166 "/home/jens/Source/shotwell/src/util/misc.vala" - bytes = (gsize) (_tmp14_ * sizeof (gint64)); -#line 167 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp15_ = g_new0 (guchar, bytes); -#line 167 "/home/jens/Source/shotwell/src/util/misc.vala" - serialized = _tmp15_; -#line 167 "/home/jens/Source/shotwell/src/util/misc.vala" - serialized_length1 = bytes; -#line 167 "/home/jens/Source/shotwell/src/util/misc.vala" - _serialized_size_ = serialized_length1; -#line 168 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp16_ = ids; -#line 168 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp16__length1 = ids_length1; -#line 168 "/home/jens/Source/shotwell/src/util/misc.vala" - memcpy (serialized, _tmp16_, bytes); -#line 170 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp17_ = serialized; -#line 170 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp17__length1 = serialized_length1; -#line 170 "/home/jens/Source/shotwell/src/util/misc.vala" - if (result_length1) { -#line 170 "/home/jens/Source/shotwell/src/util/misc.vala" - *result_length1 = _tmp17__length1; -#line 1393 "misc.c" - } -#line 170 "/home/jens/Source/shotwell/src/util/misc.vala" - result = _tmp17_; -#line 170 "/home/jens/Source/shotwell/src/util/misc.vala" - ids = (g_free (ids), NULL); -#line 170 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 1401 "misc.c" -} - - -GeeList* -unserialize_photo_ids (guchar* serialized, - gint size) -{ - GeeList* result = NULL; - gsize count = 0UL; - gboolean _tmp0_ = FALSE; - gsize _tmp1_; - gint64* ids = NULL; - gsize _tmp2_; - gint64* _tmp3_; - gint ids_length1; - gint _ids_size_; - gint64* _tmp4_; - gint _tmp4__length1; - GeeArrayList* list = NULL; - GeeArrayList* _tmp5_; - gint64* _tmp6_; - gint _tmp6__length1; -#line 174 "/home/jens/Source/shotwell/src/util/misc.vala" - count = (gsize) (size / sizeof (gint64)); -#line 175 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = count; -#line 175 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp1_ <= ((gsize) 0)) { -#line 175 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = TRUE; -#line 1432 "misc.c" - } else { -#line 175 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = serialized == NULL; -#line 1436 "misc.c" - } -#line 175 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp0_) { -#line 176 "/home/jens/Source/shotwell/src/util/misc.vala" - result = NULL; -#line 176 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 1444 "misc.c" - } -#line 178 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp2_ = count; -#line 178 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp3_ = g_new0 (gint64, _tmp2_); -#line 178 "/home/jens/Source/shotwell/src/util/misc.vala" - ids = _tmp3_; -#line 178 "/home/jens/Source/shotwell/src/util/misc.vala" - ids_length1 = _tmp2_; -#line 178 "/home/jens/Source/shotwell/src/util/misc.vala" - _ids_size_ = ids_length1; -#line 179 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp4_ = ids; -#line 179 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp4__length1 = ids_length1; -#line 179 "/home/jens/Source/shotwell/src/util/misc.vala" - memcpy (_tmp4_, serialized, (gsize) size); -#line 181 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp5_ = gee_array_list_new (TYPE_PHOTO_ID, (GBoxedCopyFunc) photo_id_dup, (GDestroyNotify) photo_id_free, NULL, NULL, NULL); -#line 181 "/home/jens/Source/shotwell/src/util/misc.vala" - list = _tmp5_; -#line 182 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp6_ = ids; -#line 182 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp6__length1 = ids_length1; -#line 1470 "misc.c" - { - gint64* id_collection = NULL; - gint id_collection_length1 = 0; - gint _id_collection_size_ = 0; - gint id_it = 0; -#line 182 "/home/jens/Source/shotwell/src/util/misc.vala" - id_collection = _tmp6_; -#line 182 "/home/jens/Source/shotwell/src/util/misc.vala" - id_collection_length1 = _tmp6__length1; -#line 182 "/home/jens/Source/shotwell/src/util/misc.vala" - for (id_it = 0; id_it < _tmp6__length1; id_it = id_it + 1) { -#line 1482 "misc.c" - gint64 id = 0LL; -#line 182 "/home/jens/Source/shotwell/src/util/misc.vala" - id = id_collection[id_it]; -#line 1486 "misc.c" - { - GeeArrayList* _tmp7_; - gint64 _tmp8_; - PhotoID _tmp9_ = {0}; -#line 183 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp7_ = list; -#line 183 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp8_ = id; -#line 183 "/home/jens/Source/shotwell/src/util/misc.vala" - photo_id_init (&_tmp9_, _tmp8_); -#line 183 "/home/jens/Source/shotwell/src/util/misc.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), &_tmp9_); -#line 1499 "misc.c" - } - } - } -#line 185 "/home/jens/Source/shotwell/src/util/misc.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_LIST, GeeList); -#line 185 "/home/jens/Source/shotwell/src/util/misc.vala" - ids = (g_free (ids), NULL); -#line 185 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 1509 "misc.c" -} - - -guchar* -serialize_media_sources (GeeCollection* media, - int* result_length1) -{ - guchar* result = NULL; - GdkAtom* atoms = NULL; - gint _tmp0_; - gint _tmp1_; - GdkAtom* _tmp2_; - gint atoms_length1; - gint _atoms_size_; - gint ctr = 0; - gsize bytes = 0UL; - gint _tmp13_; - gint _tmp14_; - guchar* serialized = NULL; - guchar* _tmp15_; - gint serialized_length1; - gint _serialized_size_; - GdkAtom* _tmp16_; - gint _tmp16__length1; - guchar* _tmp17_; - gint _tmp17__length1; -#line 188 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (GEE_IS_COLLECTION (media), NULL); -#line 189 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = gee_collection_get_size (media); -#line 189 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = _tmp0_; -#line 189 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp2_ = g_new0 (GdkAtom, _tmp1_); -#line 189 "/home/jens/Source/shotwell/src/util/misc.vala" - atoms = _tmp2_; -#line 189 "/home/jens/Source/shotwell/src/util/misc.vala" - atoms_length1 = _tmp1_; -#line 189 "/home/jens/Source/shotwell/src/util/misc.vala" - _atoms_size_ = atoms_length1; -#line 190 "/home/jens/Source/shotwell/src/util/misc.vala" - ctr = 0; -#line 1552 "misc.c" - { - GeeIterator* _current_media_it = NULL; - GeeIterator* _tmp3_; -#line 191 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (media, GEE_TYPE_ITERABLE, GeeIterable)); -#line 191 "/home/jens/Source/shotwell/src/util/misc.vala" - _current_media_it = _tmp3_; -#line 191 "/home/jens/Source/shotwell/src/util/misc.vala" - while (TRUE) { -#line 1562 "misc.c" - GeeIterator* _tmp4_; - MediaSource* current_media = NULL; - GeeIterator* _tmp5_; - gpointer _tmp6_; - GdkAtom* _tmp7_; - gint _tmp7__length1; - gint _tmp8_; - MediaSource* _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - GdkAtom _tmp12_; -#line 191 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp4_ = _current_media_it; -#line 191 "/home/jens/Source/shotwell/src/util/misc.vala" - if (!gee_iterator_next (_tmp4_)) { -#line 191 "/home/jens/Source/shotwell/src/util/misc.vala" - break; -#line 1580 "misc.c" - } -#line 191 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp5_ = _current_media_it; -#line 191 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp6_ = gee_iterator_get (_tmp5_); -#line 191 "/home/jens/Source/shotwell/src/util/misc.vala" - current_media = (MediaSource*) _tmp6_; -#line 192 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp7_ = atoms; -#line 192 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp7__length1 = atoms_length1; -#line 192 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp8_ = ctr; -#line 192 "/home/jens/Source/shotwell/src/util/misc.vala" - ctr = _tmp8_ + 1; -#line 192 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp9_ = current_media; -#line 192 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp10_ = data_source_get_source_id (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_DATA_SOURCE, DataSource)); -#line 192 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp11_ = _tmp10_; -#line 192 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp7_[_tmp8_] = gdk_atom_intern (_tmp11_, FALSE); -#line 192 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp12_ = _tmp7_[_tmp8_]; -#line 192 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (_tmp11_); -#line 191 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_object_unref0 (current_media); -#line 1610 "misc.c" - } -#line 191 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_object_unref0 (_current_media_it); -#line 1614 "misc.c" - } -#line 194 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp13_ = gee_collection_get_size (media); -#line 194 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp14_ = _tmp13_; -#line 194 "/home/jens/Source/shotwell/src/util/misc.vala" - bytes = (gsize) (_tmp14_ * sizeof (GdkAtom)); -#line 195 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp15_ = g_new0 (guchar, bytes); -#line 195 "/home/jens/Source/shotwell/src/util/misc.vala" - serialized = _tmp15_; -#line 195 "/home/jens/Source/shotwell/src/util/misc.vala" - serialized_length1 = bytes; -#line 195 "/home/jens/Source/shotwell/src/util/misc.vala" - _serialized_size_ = serialized_length1; -#line 196 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp16_ = atoms; -#line 196 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp16__length1 = atoms_length1; -#line 196 "/home/jens/Source/shotwell/src/util/misc.vala" - memcpy (serialized, _tmp16_, bytes); -#line 198 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp17_ = serialized; -#line 198 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp17__length1 = serialized_length1; -#line 198 "/home/jens/Source/shotwell/src/util/misc.vala" - if (result_length1) { -#line 198 "/home/jens/Source/shotwell/src/util/misc.vala" - *result_length1 = _tmp17__length1; -#line 1644 "misc.c" - } -#line 198 "/home/jens/Source/shotwell/src/util/misc.vala" - result = _tmp17_; -#line 198 "/home/jens/Source/shotwell/src/util/misc.vala" - atoms = (g_free (atoms), NULL); -#line 198 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 1652 "misc.c" -} - - -GeeList* -unserialize_media_sources (guchar* serialized, - gint size) -{ - GeeList* result = NULL; - gsize count = 0UL; - gboolean _tmp0_ = FALSE; - gsize _tmp1_; - GdkAtom* atoms = NULL; - gsize _tmp2_; - GdkAtom* _tmp3_; - gint atoms_length1; - gint _atoms_size_; - GdkAtom* _tmp4_; - gint _tmp4__length1; - GeeArrayList* list = NULL; - GeeArrayList* _tmp5_; - GdkAtom* _tmp6_; - gint _tmp6__length1; -#line 202 "/home/jens/Source/shotwell/src/util/misc.vala" - count = (gsize) (size / sizeof (GdkAtom)); -#line 203 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = count; -#line 203 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp1_ <= ((gsize) 0)) { -#line 203 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = TRUE; -#line 1683 "misc.c" - } else { -#line 203 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = serialized == NULL; -#line 1687 "misc.c" - } -#line 203 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp0_) { -#line 204 "/home/jens/Source/shotwell/src/util/misc.vala" - result = NULL; -#line 204 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 1695 "misc.c" - } -#line 206 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp2_ = count; -#line 206 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp3_ = g_new0 (GdkAtom, _tmp2_); -#line 206 "/home/jens/Source/shotwell/src/util/misc.vala" - atoms = _tmp3_; -#line 206 "/home/jens/Source/shotwell/src/util/misc.vala" - atoms_length1 = _tmp2_; -#line 206 "/home/jens/Source/shotwell/src/util/misc.vala" - _atoms_size_ = atoms_length1; -#line 207 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp4_ = atoms; -#line 207 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp4__length1 = atoms_length1; -#line 207 "/home/jens/Source/shotwell/src/util/misc.vala" - memcpy (_tmp4_, serialized, (gsize) size); -#line 209 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp5_ = gee_array_list_new (TYPE_MEDIA_SOURCE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 209 "/home/jens/Source/shotwell/src/util/misc.vala" - list = _tmp5_; -#line 210 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp6_ = atoms; -#line 210 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp6__length1 = atoms_length1; -#line 1721 "misc.c" - { - GdkAtom* current_atom_collection = NULL; - gint current_atom_collection_length1 = 0; - gint _current_atom_collection_size_ = 0; - gint current_atom_it = 0; -#line 210 "/home/jens/Source/shotwell/src/util/misc.vala" - current_atom_collection = _tmp6_; -#line 210 "/home/jens/Source/shotwell/src/util/misc.vala" - current_atom_collection_length1 = _tmp6__length1; -#line 210 "/home/jens/Source/shotwell/src/util/misc.vala" - for (current_atom_it = 0; current_atom_it < _tmp6__length1; current_atom_it = current_atom_it + 1) { -#line 1733 "misc.c" - GdkAtom current_atom = 0U; -#line 210 "/home/jens/Source/shotwell/src/util/misc.vala" - current_atom = current_atom_collection[current_atom_it]; -#line 1737 "misc.c" - { - MediaSource* media = NULL; - MediaCollectionRegistry* _tmp7_; - MediaCollectionRegistry* _tmp8_; - GdkAtom _tmp9_; - gchar* _tmp10_; - gchar* _tmp11_; - MediaSource* _tmp12_; - MediaSource* _tmp13_; - MediaSource* _tmp14_; - GeeArrayList* _tmp15_; - MediaSource* _tmp16_; -#line 211 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp7_ = media_collection_registry_get_instance (); -#line 211 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp8_ = _tmp7_; -#line 211 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp9_ = current_atom; -#line 211 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp10_ = gdk_atom_name (_tmp9_); -#line 211 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp11_ = _tmp10_; -#line 211 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp12_ = media_collection_registry_fetch_media (_tmp8_, _tmp11_); -#line 211 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp13_ = _tmp12_; -#line 211 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (_tmp11_); -#line 211 "/home/jens/Source/shotwell/src/util/misc.vala" - _media_collection_registry_unref0 (_tmp8_); -#line 211 "/home/jens/Source/shotwell/src/util/misc.vala" - media = _tmp13_; -#line 212 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp14_ = media; -#line 212 "/home/jens/Source/shotwell/src/util/misc.vala" - _vala_assert (_tmp14_ != NULL, "media != null"); -#line 213 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp15_ = list; -#line 213 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp16_ = media; -#line 213 "/home/jens/Source/shotwell/src/util/misc.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp16_); -#line 210 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_object_unref0 (media); -#line 1782 "misc.c" - } - } - } -#line 216 "/home/jens/Source/shotwell/src/util/misc.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (list, GEE_TYPE_LIST, GeeList); -#line 216 "/home/jens/Source/shotwell/src/util/misc.vala" - atoms = (g_free (atoms), NULL); -#line 216 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 1792 "misc.c" -} - - -static gchar* -g_time_format (struct tm *self, - const gchar* format) -{ - gchar* result = NULL; - gchar* buffer = NULL; - gchar* _tmp0_; - gint buffer_length1; - gint _buffer_size_; - gchar* _tmp1_; - gint _tmp1__length1; - gchar* _tmp2_; - gint _tmp2__length1; - gchar* _tmp3_; -#line 2874 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (format != NULL, NULL); -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_new0 (gchar, 64); -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer = _tmp0_; -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer_length1 = 64; -#line 2875 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _buffer_size_ = buffer_length1; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = buffer; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1__length1 = buffer_length1; -#line 2876 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - strftime (_tmp1_, _tmp1__length1, format, &(*self)); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = buffer; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2__length1 = buffer_length1; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = g_strdup ((const gchar*) _tmp2_); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp3_; -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - buffer = (g_free (buffer), NULL); -#line 2877 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1838 "misc.c" -} - - -gchar* -format_local_datespan (struct tm* from_date, - struct tm* to_date) -{ - gchar* result = NULL; - gchar* from_format = NULL; - gchar* to_format = NULL; - struct tm _tmp0_; - gint _tmp1_; - struct tm _tmp2_; - gint _tmp3_; - const gchar* _tmp19_; - gchar* _tmp20_; - gchar* _tmp21_; - const gchar* _tmp22_; - gchar* _tmp23_; - gchar* _tmp24_; - gchar* _tmp25_; - gchar* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; -#line 219 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (from_date != NULL, NULL); -#line 219 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (to_date != NULL, NULL); -#line 224 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = *from_date; -#line 224 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = _tmp0_.tm_year; -#line 224 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp2_ = *to_date; -#line 224 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp3_ = _tmp2_.tm_year; -#line 224 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp1_ == _tmp3_) { -#line 1877 "misc.c" - gboolean _tmp4_ = FALSE; - struct tm _tmp5_; - gint _tmp6_; - struct tm _tmp7_; - gint _tmp8_; -#line 226 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp5_ = *from_date; -#line 226 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp6_ = _tmp5_.tm_mon; -#line 226 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp7_ = *to_date; -#line 226 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp8_ = _tmp7_.tm_mon; -#line 226 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp6_ == _tmp8_) { -#line 1893 "misc.c" - struct tm _tmp9_; - gint _tmp10_; - struct tm _tmp11_; - gint _tmp12_; -#line 226 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp9_ = *from_date; -#line 226 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp10_ = _tmp9_.tm_mday; -#line 226 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp11_ = *to_date; -#line 226 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp12_ = _tmp11_.tm_mday; -#line 226 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp4_ = _tmp10_ == (_tmp12_ - 1); -#line 1908 "misc.c" - } else { -#line 226 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp4_ = FALSE; -#line 1912 "misc.c" - } -#line 226 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp4_) { -#line 1916 "misc.c" - gchar* _tmp13_; - gchar* _tmp14_; -#line 228 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp13_ = resources_get_start_multiday_span_format_string (); -#line 228 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (from_format); -#line 228 "/home/jens/Source/shotwell/src/util/misc.vala" - from_format = _tmp13_; -#line 229 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp14_ = resources_get_end_multiday_span_format_string (); -#line 229 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (to_format); -#line 229 "/home/jens/Source/shotwell/src/util/misc.vala" - to_format = _tmp14_; -#line 1931 "misc.c" - } else { - gchar* _tmp15_; - gchar* _tmp16_; -#line 233 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp15_ = resources_get_start_multimonth_span_format_string (); -#line 233 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (from_format); -#line 233 "/home/jens/Source/shotwell/src/util/misc.vala" - from_format = _tmp15_; -#line 234 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp16_ = resources_get_end_multimonth_span_format_string (); -#line 234 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (to_format); -#line 234 "/home/jens/Source/shotwell/src/util/misc.vala" - to_format = _tmp16_; -#line 1947 "misc.c" - } - } else { - gchar* _tmp17_; - gchar* _tmp18_; -#line 239 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp17_ = resources_get_long_date_format_string (); -#line 239 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (from_format); -#line 239 "/home/jens/Source/shotwell/src/util/misc.vala" - from_format = _tmp17_; -#line 240 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp18_ = resources_get_long_date_format_string (); -#line 240 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (to_format); -#line 240 "/home/jens/Source/shotwell/src/util/misc.vala" - to_format = _tmp18_; -#line 1964 "misc.c" - } -#line 243 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp19_ = from_format; -#line 243 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp20_ = g_time_format (from_date, _tmp19_); -#line 243 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp21_ = _tmp20_; -#line 243 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp22_ = to_format; -#line 243 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp23_ = g_time_format (to_date, _tmp22_); -#line 243 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp24_ = _tmp23_; -#line 243 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp25_ = g_strdup_printf ("%s - %s", _tmp21_, _tmp24_); -#line 243 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp26_ = _tmp25_; -#line 243 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp27_ = string_strip_leading_zeroes (_tmp26_); -#line 243 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp28_ = _tmp27_; -#line 243 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (_tmp26_); -#line 243 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (_tmp24_); -#line 243 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (_tmp21_); -#line 243 "/home/jens/Source/shotwell/src/util/misc.vala" - result = _tmp28_; -#line 243 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (to_format); -#line 243 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (from_format); -#line 243 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 2000 "misc.c" -} - - -gchar* -format_local_date (struct tm* date) -{ - gchar* result = NULL; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; -#line 247 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (date != NULL, NULL); -#line 248 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = resources_get_long_date_format_string (); -#line 248 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = _tmp0_; -#line 248 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp2_ = g_time_format (date, _tmp1_); -#line 248 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp3_ = _tmp2_; -#line 248 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp4_ = string_strip_leading_zeroes (_tmp3_); -#line 248 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp5_ = _tmp4_; -#line 248 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (_tmp3_); -#line 248 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (_tmp1_); -#line 248 "/home/jens/Source/shotwell/src/util/misc.vala" - result = _tmp5_; -#line 248 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 2036 "misc.c" -} - - -OneShotScheduler* -one_shot_scheduler_construct (GType object_type, - const gchar* name, - OneShotCallback callback, - void* callback_target) -{ - OneShotScheduler* self = NULL; - gchar* _tmp0_; -#line 258 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 258 "/home/jens/Source/shotwell/src/util/misc.vala" - self = (OneShotScheduler*) g_type_create_instance (object_type); -#line 259 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = g_strdup (name); -#line 259 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (self->priv->name); -#line 259 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->name = _tmp0_; -#line 260 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->callback = callback; -#line 260 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->callback_target = callback_target; -#line 258 "/home/jens/Source/shotwell/src/util/misc.vala" - return self; -#line 2064 "misc.c" -} - - -OneShotScheduler* -one_shot_scheduler_new (const gchar* name, - OneShotCallback callback, - void* callback_target) -{ -#line 258 "/home/jens/Source/shotwell/src/util/misc.vala" - return one_shot_scheduler_construct (TYPE_ONE_SHOT_SCHEDULER, name, callback, callback_target); -#line 2075 "misc.c" -} - - -gboolean -one_shot_scheduler_is_scheduled (OneShotScheduler* self) -{ - gboolean result = FALSE; - guint _tmp0_; -#line 271 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (IS_ONE_SHOT_SCHEDULER (self), FALSE); -#line 272 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = self->priv->scheduled; -#line 272 "/home/jens/Source/shotwell/src/util/misc.vala" - result = _tmp0_ != ((guint) 0); -#line 272 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 2092 "misc.c" -} - - -void -one_shot_scheduler_at_idle (OneShotScheduler* self) -{ -#line 275 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (IS_ONE_SHOT_SCHEDULER (self)); -#line 276 "/home/jens/Source/shotwell/src/util/misc.vala" - one_shot_scheduler_at_priority_idle (self, G_PRIORITY_DEFAULT_IDLE); -#line 2103 "misc.c" -} - - -static gboolean -_one_shot_scheduler_callback_wrapper_gsource_func (gpointer self) -{ - gboolean result; - result = one_shot_scheduler_callback_wrapper ((OneShotScheduler*) self); -#line 281 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 2114 "misc.c" -} - - -void -one_shot_scheduler_at_priority_idle (OneShotScheduler* self, - gint priority) -{ - guint _tmp0_; -#line 279 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (IS_ONE_SHOT_SCHEDULER (self)); -#line 280 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = self->priv->scheduled; -#line 280 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp0_ == ((guint) 0)) { -#line 281 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->scheduled = g_idle_add_full (priority, _one_shot_scheduler_callback_wrapper_gsource_func, one_shot_scheduler_ref (self), one_shot_scheduler_unref); -#line 2131 "misc.c" - } -} - - -void -one_shot_scheduler_after_timeout (OneShotScheduler* self, - guint msec, - gboolean reschedule) -{ -#line 284 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (IS_ONE_SHOT_SCHEDULER (self)); -#line 285 "/home/jens/Source/shotwell/src/util/misc.vala" - one_shot_scheduler_priority_after_timeout (self, G_PRIORITY_DEFAULT, msec, reschedule); -#line 2145 "misc.c" -} - - -void -one_shot_scheduler_priority_after_timeout (OneShotScheduler* self, - gint priority, - guint msec, - gboolean reschedule) -{ - gboolean _tmp0_ = FALSE; - guint _tmp1_; - guint _tmp2_; -#line 288 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (IS_ONE_SHOT_SCHEDULER (self)); -#line 289 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = self->priv->scheduled; -#line 289 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp1_ != ((guint) 0)) { -#line 289 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = !reschedule; -#line 2166 "misc.c" - } else { -#line 289 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = FALSE; -#line 2170 "misc.c" - } -#line 289 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp0_) { -#line 290 "/home/jens/Source/shotwell/src/util/misc.vala" - return; -#line 2176 "misc.c" - } -#line 292 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp2_ = self->priv->scheduled; -#line 292 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp2_ != ((guint) 0)) { -#line 2182 "misc.c" - guint _tmp3_; -#line 293 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp3_ = self->priv->scheduled; -#line 293 "/home/jens/Source/shotwell/src/util/misc.vala" - g_source_remove (_tmp3_); -#line 2188 "misc.c" - } -#line 295 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->scheduled = g_timeout_add_full (priority, msec, _one_shot_scheduler_callback_wrapper_gsource_func, one_shot_scheduler_ref (self), one_shot_scheduler_unref); -#line 2192 "misc.c" -} - - -void -one_shot_scheduler_cancel (OneShotScheduler* self) -{ - guint _tmp0_; - guint _tmp1_; -#line 298 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (IS_ONE_SHOT_SCHEDULER (self)); -#line 299 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = self->priv->scheduled; -#line 299 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp0_ == ((guint) 0)) { -#line 300 "/home/jens/Source/shotwell/src/util/misc.vala" - return; -#line 2209 "misc.c" - } -#line 302 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = self->priv->scheduled; -#line 302 "/home/jens/Source/shotwell/src/util/misc.vala" - g_source_remove (_tmp1_); -#line 303 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->scheduled = (guint) 0; -#line 2217 "misc.c" -} - - -static gboolean -one_shot_scheduler_callback_wrapper (OneShotScheduler* self) -{ - gboolean result = FALSE; - OneShotCallback _tmp0_; - void* _tmp0__target; -#line 306 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (IS_ONE_SHOT_SCHEDULER (self), FALSE); -#line 307 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->scheduled = (guint) 0; -#line 308 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = self->priv->callback; -#line 308 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0__target = self->priv->callback_target; -#line 308 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ (_tmp0__target); -#line 310 "/home/jens/Source/shotwell/src/util/misc.vala" - result = FALSE; -#line 310 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 2241 "misc.c" -} - - -static void -value_one_shot_scheduler_init (GValue* value) -{ -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - value->data[0].v_pointer = NULL; -#line 2250 "misc.c" -} - - -static void -value_one_shot_scheduler_free_value (GValue* value) -{ -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - if (value->data[0].v_pointer) { -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - one_shot_scheduler_unref (value->data[0].v_pointer); -#line 2261 "misc.c" - } -} - - -static void -value_one_shot_scheduler_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - if (src_value->data[0].v_pointer) { -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - dest_value->data[0].v_pointer = one_shot_scheduler_ref (src_value->data[0].v_pointer); -#line 2274 "misc.c" - } else { -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - dest_value->data[0].v_pointer = NULL; -#line 2278 "misc.c" - } -} - - -static gpointer -value_one_shot_scheduler_peek_pointer (const GValue* value) -{ -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - return value->data[0].v_pointer; -#line 2288 "misc.c" -} - - -static gchar* -value_one_shot_scheduler_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - if (collect_values[0].v_pointer) { -#line 2300 "misc.c" - OneShotScheduler * object; - object = collect_values[0].v_pointer; -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - if (object->parent_instance.g_class == NULL) { -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2307 "misc.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2311 "misc.c" - } -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - value->data[0].v_pointer = one_shot_scheduler_ref (object); -#line 2315 "misc.c" - } else { -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - value->data[0].v_pointer = NULL; -#line 2319 "misc.c" - } -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - return NULL; -#line 2323 "misc.c" -} - - -static gchar* -value_one_shot_scheduler_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - OneShotScheduler ** object_p; - object_p = collect_values[0].v_pointer; -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - if (!object_p) { -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2339 "misc.c" - } -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - if (!value->data[0].v_pointer) { -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - *object_p = NULL; -#line 2345 "misc.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - *object_p = value->data[0].v_pointer; -#line 2349 "misc.c" - } else { -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - *object_p = one_shot_scheduler_ref (value->data[0].v_pointer); -#line 2353 "misc.c" - } -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - return NULL; -#line 2357 "misc.c" -} - - -GParamSpec* -param_spec_one_shot_scheduler (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecOneShotScheduler* spec; -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_ONE_SHOT_SCHEDULER), NULL); -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - return G_PARAM_SPEC (spec); -#line 2377 "misc.c" -} - - -gpointer -value_get_one_shot_scheduler (const GValue* value) -{ -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ONE_SHOT_SCHEDULER), NULL); -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - return value->data[0].v_pointer; -#line 2388 "misc.c" -} - - -void -value_set_one_shot_scheduler (GValue* value, - gpointer v_object) -{ - OneShotScheduler * old; -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ONE_SHOT_SCHEDULER)); -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - old = value->data[0].v_pointer; -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - if (v_object) { -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_ONE_SHOT_SCHEDULER)); -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - value->data[0].v_pointer = v_object; -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - one_shot_scheduler_ref (value->data[0].v_pointer); -#line 2411 "misc.c" - } else { -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - value->data[0].v_pointer = NULL; -#line 2415 "misc.c" - } -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - if (old) { -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - one_shot_scheduler_unref (old); -#line 2421 "misc.c" - } -} - - -void -value_take_one_shot_scheduler (GValue* value, - gpointer v_object) -{ - OneShotScheduler * old; -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ONE_SHOT_SCHEDULER)); -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - old = value->data[0].v_pointer; -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - if (v_object) { -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_ONE_SHOT_SCHEDULER)); -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - value->data[0].v_pointer = v_object; -#line 2443 "misc.c" - } else { -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - value->data[0].v_pointer = NULL; -#line 2447 "misc.c" - } -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - if (old) { -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - one_shot_scheduler_unref (old); -#line 2453 "misc.c" - } -} - - -static void -one_shot_scheduler_class_init (OneShotSchedulerClass * klass) -{ -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - one_shot_scheduler_parent_class = g_type_class_peek_parent (klass); -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - ((OneShotSchedulerClass *) klass)->finalize = one_shot_scheduler_finalize; -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - g_type_class_add_private (klass, sizeof (OneShotSchedulerPrivate)); -#line 2467 "misc.c" -} - - -static void -one_shot_scheduler_instance_init (OneShotScheduler * self) -{ -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv = ONE_SHOT_SCHEDULER_GET_PRIVATE (self); -#line 256 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->scheduled = (guint) 0; -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - self->ref_count = 1; -#line 2480 "misc.c" -} - - -static void -one_shot_scheduler_finalize (OneShotScheduler * obj) -{ - OneShotScheduler * self; -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ONE_SHOT_SCHEDULER, OneShotScheduler); -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - g_signal_handlers_destroy (self); -#line 268 "/home/jens/Source/shotwell/src/util/misc.vala" - one_shot_scheduler_cancel (self); -#line 254 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (self->priv->name); -#line 2496 "misc.c" -} - - -GType -one_shot_scheduler_get_type (void) -{ - static volatile gsize one_shot_scheduler_type_id__volatile = 0; - if (g_once_init_enter (&one_shot_scheduler_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_one_shot_scheduler_init, value_one_shot_scheduler_free_value, value_one_shot_scheduler_copy_value, value_one_shot_scheduler_peek_pointer, "p", value_one_shot_scheduler_collect_value, "p", value_one_shot_scheduler_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (OneShotSchedulerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) one_shot_scheduler_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (OneShotScheduler), 0, (GInstanceInitFunc) one_shot_scheduler_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType one_shot_scheduler_type_id; - one_shot_scheduler_type_id = g_type_register_fundamental (g_type_fundamental_next (), "OneShotScheduler", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&one_shot_scheduler_type_id__volatile, one_shot_scheduler_type_id); - } - return one_shot_scheduler_type_id__volatile; -} - - -gpointer -one_shot_scheduler_ref (gpointer instance) -{ - OneShotScheduler * self; - self = instance; -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - g_atomic_int_inc (&self->ref_count); -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - return instance; -#line 2525 "misc.c" -} - - -void -one_shot_scheduler_unref (gpointer instance) -{ - OneShotScheduler * self; - self = instance; -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - ONE_SHOT_SCHEDULER_GET_CLASS (self)->finalize (self); -#line 253 "/home/jens/Source/shotwell/src/util/misc.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 2540 "misc.c" - } -} - - -OpTimer* -op_timer_construct (GType object_type, - const gchar* name) -{ - OpTimer* self = NULL; - gchar* _tmp0_; -#line 322 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (name != NULL, NULL); -#line 322 "/home/jens/Source/shotwell/src/util/misc.vala" - self = (OpTimer*) g_type_create_instance (object_type); -#line 323 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = g_strdup (name); -#line 323 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (self->priv->name); -#line 323 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->name = _tmp0_; -#line 322 "/home/jens/Source/shotwell/src/util/misc.vala" - return self; -#line 2563 "misc.c" -} - - -OpTimer* -op_timer_new (const gchar* name) -{ -#line 322 "/home/jens/Source/shotwell/src/util/misc.vala" - return op_timer_construct (TYPE_OP_TIMER, name); -#line 2572 "misc.c" -} - - -void -op_timer_start (OpTimer* self) -{ - GTimer* _tmp0_; -#line 326 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (IS_OP_TIMER (self)); -#line 327 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = self->priv->timer; -#line 327 "/home/jens/Source/shotwell/src/util/misc.vala" - g_timer_start (_tmp0_); -#line 2586 "misc.c" -} - - -void -op_timer_stop (OpTimer* self) -{ - gdouble time = 0.0; - GTimer* _tmp0_; - gdouble _tmp1_; - gdouble _tmp2_; - gdouble _tmp3_; - gdouble _tmp4_; - gdouble _tmp5_; - gdouble _tmp7_; - gdouble _tmp8_; - glong _tmp10_; -#line 330 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (IS_OP_TIMER (self)); -#line 331 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = self->priv->timer; -#line 331 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = g_timer_elapsed (_tmp0_, NULL); -#line 331 "/home/jens/Source/shotwell/src/util/misc.vala" - time = _tmp1_; -#line 333 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp2_ = self->priv->elapsed; -#line 333 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp3_ = time; -#line 333 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->elapsed = _tmp2_ + _tmp3_; -#line 335 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp4_ = time; -#line 335 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp5_ = self->priv->shortest; -#line 335 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp4_ < _tmp5_) { -#line 2623 "misc.c" - gdouble _tmp6_; -#line 336 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp6_ = time; -#line 336 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->shortest = _tmp6_; -#line 2629 "misc.c" - } -#line 338 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp7_ = time; -#line 338 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp8_ = self->priv->longest; -#line 338 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp7_ > _tmp8_) { -#line 2637 "misc.c" - gdouble _tmp9_; -#line 339 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp9_ = time; -#line 339 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->longest = _tmp9_; -#line 2643 "misc.c" - } -#line 341 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp10_ = self->priv->count; -#line 341 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->count = _tmp10_ + 1; -#line 2649 "misc.c" -} - - -gchar* -op_timer_to_string (OpTimer* self) -{ - gchar* result = NULL; - glong _tmp0_; -#line 344 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (IS_OP_TIMER (self), NULL); -#line 345 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = self->priv->count; -#line 345 "/home/jens/Source/shotwell/src/util/misc.vala" - if (_tmp0_ > ((glong) 0)) { -#line 2664 "misc.c" - const gchar* _tmp1_; - glong _tmp2_; - gdouble _tmp3_; - gdouble _tmp4_; - gdouble _tmp5_; - glong _tmp6_; - gdouble _tmp7_; - gchar* _tmp8_; -#line 346 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp1_ = self->priv->name; -#line 346 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp2_ = self->priv->count; -#line 346 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp3_ = self->priv->elapsed; -#line 346 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp4_ = self->priv->shortest; -#line 346 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp5_ = self->priv->elapsed; -#line 346 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp6_ = self->priv->count; -#line 346 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp7_ = self->priv->longest; -#line 346 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp8_ = g_strdup_printf ("%s: count=%ld elapsed=%.03lfs min/avg/max=%.03lf/%.03lf/%.03lf", _tmp1_, _tmp2_, _tmp3_, _tmp4_, _tmp5_ / ((gdouble) _tmp6_), _tmp7_); -#line 346 "/home/jens/Source/shotwell/src/util/misc.vala" - result = _tmp8_; -#line 346 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 2693 "misc.c" - } else { - const gchar* _tmp9_; - gchar* _tmp10_; -#line 349 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp9_ = self->priv->name; -#line 349 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp10_ = g_strdup_printf ("%s: no operations", _tmp9_); -#line 349 "/home/jens/Source/shotwell/src/util/misc.vala" - result = _tmp10_; -#line 349 "/home/jens/Source/shotwell/src/util/misc.vala" - return result; -#line 2705 "misc.c" - } -} - - -static void -value_op_timer_init (GValue* value) -{ -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - value->data[0].v_pointer = NULL; -#line 2715 "misc.c" -} - - -static void -value_op_timer_free_value (GValue* value) -{ -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - if (value->data[0].v_pointer) { -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - op_timer_unref (value->data[0].v_pointer); -#line 2726 "misc.c" - } -} - - -static void -value_op_timer_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - if (src_value->data[0].v_pointer) { -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - dest_value->data[0].v_pointer = op_timer_ref (src_value->data[0].v_pointer); -#line 2739 "misc.c" - } else { -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - dest_value->data[0].v_pointer = NULL; -#line 2743 "misc.c" - } -} - - -static gpointer -value_op_timer_peek_pointer (const GValue* value) -{ -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - return value->data[0].v_pointer; -#line 2753 "misc.c" -} - - -static gchar* -value_op_timer_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - if (collect_values[0].v_pointer) { -#line 2765 "misc.c" - OpTimer * object; - object = collect_values[0].v_pointer; -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - if (object->parent_instance.g_class == NULL) { -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2772 "misc.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 2776 "misc.c" - } -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - value->data[0].v_pointer = op_timer_ref (object); -#line 2780 "misc.c" - } else { -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - value->data[0].v_pointer = NULL; -#line 2784 "misc.c" - } -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - return NULL; -#line 2788 "misc.c" -} - - -static gchar* -value_op_timer_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - OpTimer ** object_p; - object_p = collect_values[0].v_pointer; -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - if (!object_p) { -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 2804 "misc.c" - } -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - if (!value->data[0].v_pointer) { -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - *object_p = NULL; -#line 2810 "misc.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - *object_p = value->data[0].v_pointer; -#line 2814 "misc.c" - } else { -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - *object_p = op_timer_ref (value->data[0].v_pointer); -#line 2818 "misc.c" - } -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - return NULL; -#line 2822 "misc.c" -} - - -GParamSpec* -param_spec_op_timer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecOpTimer* spec; -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_OP_TIMER), NULL); -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - return G_PARAM_SPEC (spec); -#line 2842 "misc.c" -} - - -gpointer -value_get_op_timer (const GValue* value) -{ -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_OP_TIMER), NULL); -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - return value->data[0].v_pointer; -#line 2853 "misc.c" -} - - -void -value_set_op_timer (GValue* value, - gpointer v_object) -{ - OpTimer * old; -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_OP_TIMER)); -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - old = value->data[0].v_pointer; -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - if (v_object) { -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_OP_TIMER)); -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - value->data[0].v_pointer = v_object; -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - op_timer_ref (value->data[0].v_pointer); -#line 2876 "misc.c" - } else { -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - value->data[0].v_pointer = NULL; -#line 2880 "misc.c" - } -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - if (old) { -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - op_timer_unref (old); -#line 2886 "misc.c" - } -} - - -void -value_take_op_timer (GValue* value, - gpointer v_object) -{ - OpTimer * old; -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_OP_TIMER)); -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - old = value->data[0].v_pointer; -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - if (v_object) { -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_OP_TIMER)); -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - value->data[0].v_pointer = v_object; -#line 2908 "misc.c" - } else { -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - value->data[0].v_pointer = NULL; -#line 2912 "misc.c" - } -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - if (old) { -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - op_timer_unref (old); -#line 2918 "misc.c" - } -} - - -static void -op_timer_class_init (OpTimerClass * klass) -{ -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - op_timer_parent_class = g_type_class_peek_parent (klass); -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - ((OpTimerClass *) klass)->finalize = op_timer_finalize; -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - g_type_class_add_private (klass, sizeof (OpTimerPrivate)); -#line 2932 "misc.c" -} - - -static void -op_timer_instance_init (OpTimer * self) -{ - GTimer* _tmp0_; -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv = OP_TIMER_GET_PRIVATE (self); -#line 316 "/home/jens/Source/shotwell/src/util/misc.vala" - _tmp0_ = g_timer_new (); -#line 316 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->timer = _tmp0_; -#line 317 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->count = (glong) 0; -#line 318 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->elapsed = (gdouble) 0; -#line 319 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->shortest = DBL_MAX; -#line 320 "/home/jens/Source/shotwell/src/util/misc.vala" - self->priv->longest = DBL_MIN; -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - self->ref_count = 1; -#line 2956 "misc.c" -} - - -static void -op_timer_finalize (OpTimer * obj) -{ - OpTimer * self; -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_OP_TIMER, OpTimer); -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - g_signal_handlers_destroy (self); -#line 315 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_free0 (self->priv->name); -#line 316 "/home/jens/Source/shotwell/src/util/misc.vala" - _g_timer_destroy0 (self->priv->timer); -#line 2972 "misc.c" -} - - -GType -op_timer_get_type (void) -{ - static volatile gsize op_timer_type_id__volatile = 0; - if (g_once_init_enter (&op_timer_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_op_timer_init, value_op_timer_free_value, value_op_timer_copy_value, value_op_timer_peek_pointer, "p", value_op_timer_collect_value, "p", value_op_timer_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (OpTimerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) op_timer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (OpTimer), 0, (GInstanceInitFunc) op_timer_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType op_timer_type_id; - op_timer_type_id = g_type_register_fundamental (g_type_fundamental_next (), "OpTimer", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&op_timer_type_id__volatile, op_timer_type_id); - } - return op_timer_type_id__volatile; -} - - -gpointer -op_timer_ref (gpointer instance) -{ - OpTimer * self; - self = instance; -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - g_atomic_int_inc (&self->ref_count); -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - return instance; -#line 3001 "misc.c" -} - - -void -op_timer_unref (gpointer instance) -{ - OpTimer * self; - self = instance; -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - OP_TIMER_GET_CLASS (self)->finalize (self); -#line 314 "/home/jens/Source/shotwell/src/util/misc.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 3016 "misc.c" - } -} - - - diff --git a/src/util/string.c b/src/util/string.c deleted file mode 100644 index 0b503fb..0000000 --- a/src/util/string.c +++ /dev/null @@ -1,2033 +0,0 @@ -/* string.c generated by valac 0.40.4, the Vala compiler - * generated from string.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include -#include - -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL))) - -#define TYPE_PREPARE_INPUT_TEXT_OPTIONS (prepare_input_text_options_get_type ()) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) - -typedef enum { - PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL = 1 << 0, - PREPARE_INPUT_TEXT_OPTIONS_VALIDATE = 1 << 1, - PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL = 1 << 2, - PREPARE_INPUT_TEXT_OPTIONS_STRIP = 1 << 3, - PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF = 1 << 4, - PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE = 1 << 5, - PREPARE_INPUT_TEXT_OPTIONS_DEFAULT = ((((PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL | PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) | PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) | PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) | PREPARE_INPUT_TEXT_OPTIONS_STRIP) | PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE -} PrepareInputTextOptions; - - - -gint64 g_ascii_strtoll (const gchar* str, - gchar** endptr, - guint num_base); -#define DEFAULT_USER_TEXT_INPUT_LENGTH 1024 -gboolean is_string_empty (const gchar* s); -gint utf8_cs_compare (void* a, - void* b); -gint utf8_ci_compare (void* a, - void* b); -gchar* uchar_array_to_string (guchar* data, - int data_length1, - gint length); -guchar* string_to_uchar_array (const gchar* str, - int* result_length1); -static void _vala_array_add1 (guchar* * array, - int* length, - int* size, - guchar value); -gchar* guarded_markup_escape_text (const gchar* plain); -glong find_last_offset (const gchar* str, - gchar c); -gboolean is_in_ci_array (const gchar* str, - gchar** strings, - int strings_length1); -GType prepare_input_text_options_get_type (void) G_GNUC_CONST; -gchar* guess_convert (const gchar* text); -gchar* prepare_input_text (const gchar* text, - PrepareInputTextOptions options, - gint dest_length); -gint64 parse_int64 (const gchar* str, - gint num_base); -gboolean string_contains_char (const gchar* haystack, - gunichar needle); -gboolean string_contains_str (const gchar* haystack, - const gchar* needle); -gchar* string_sliced_at (const gchar* str, - gint index); -gchar* string_sliced_at_first_str (const gchar* haystack, - const gchar* needle, - gint start_index); -gchar* string_sliced_at_last_str (const gchar* haystack, - const gchar* needle, - gint start_index); -gchar* string_sliced_at_first_char (const gchar* haystack, - gunichar ch, - gint start_index); -gchar* string_sliced_at_last_char (const gchar* haystack, - gunichar ch, - gint start_index); -gchar* string_strip_leading_zeroes (const gchar* str); -gchar* string_remove_diacritics (const gchar* istring); -gchar* string_to_hex_string (const gchar* str); -guint string_collated_hash (void* ptr); -guint string_precollated_hash (void* ptr); -gint string_collated_compare (void* a, - void* b); -gint string_precollated_compare (const gchar* astr, - const gchar* akey, - const gchar* bstr, - const gchar* bkey); -gboolean string_collated_equals (void* a, - void* b); -gboolean string_precollated_equals (const gchar* astr, - const gchar* akey, - const gchar* bstr, - const gchar* bkey); - - -static gchar -string_get (const gchar* self, - glong index) -{ - gchar result = '\0'; - gchar _tmp0_; -#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, '\0'); -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = ((gchar*) self)[index]; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp0_; -#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 117 "string.c" -} - - -inline gboolean -is_string_empty (const gchar* s) -{ - gboolean result = FALSE; - gboolean _tmp0_ = FALSE; -#line 12 "/home/jens/Source/shotwell/src/util/string.vala" - if (s == NULL) { -#line 12 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = TRUE; -#line 130 "string.c" - } else { -#line 12 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = string_get (s, (glong) 0) == '\0'; -#line 134 "string.c" - } -#line 12 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp0_; -#line 12 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 140 "string.c" -} - - -gint -utf8_cs_compare (void* a, - void* b) -{ - gint result = 0; -#line 17 "/home/jens/Source/shotwell/src/util/string.vala" - result = g_utf8_collate ((const gchar*) a, (const gchar*) b); -#line 17 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 153 "string.c" -} - - -gint -utf8_ci_compare (void* a, - void* b) -{ - gint result = 0; - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gint _tmp4_; -#line 22 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = g_utf8_strdown ((const gchar*) a, (gssize) -1); -#line 22 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = _tmp0_; -#line 22 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp2_ = g_utf8_strdown ((const gchar*) b, (gssize) -1); -#line 22 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp3_ = _tmp2_; -#line 22 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp4_ = g_utf8_collate (_tmp1_, _tmp3_); -#line 22 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (_tmp3_); -#line 22 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (_tmp1_); -#line 22 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp4_; -#line 22 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 185 "string.c" -} - - -gchar* -uchar_array_to_string (guchar* data, - int data_length1, - gint length) -{ - gchar* result = NULL; - GString* builder = NULL; - GString* _tmp0_; - GString* _tmp9_; - const gchar* _tmp10_; - gchar* _tmp11_; -#line 27 "/home/jens/Source/shotwell/src/util/string.vala" - if (length < 0) { -#line 28 "/home/jens/Source/shotwell/src/util/string.vala" - length = data_length1; -#line 204 "string.c" - } -#line 30 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = g_string_new (""); -#line 30 "/home/jens/Source/shotwell/src/util/string.vala" - builder = _tmp0_; -#line 210 "string.c" - { - gint ctr = 0; -#line 31 "/home/jens/Source/shotwell/src/util/string.vala" - ctr = 0; -#line 215 "string.c" - { - gboolean _tmp1_ = FALSE; -#line 31 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = TRUE; -#line 31 "/home/jens/Source/shotwell/src/util/string.vala" - while (TRUE) { -#line 222 "string.c" - gint _tmp3_; - gint _tmp4_; - guchar _tmp5_; -#line 31 "/home/jens/Source/shotwell/src/util/string.vala" - if (!_tmp1_) { -#line 228 "string.c" - gint _tmp2_; -#line 31 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp2_ = ctr; -#line 31 "/home/jens/Source/shotwell/src/util/string.vala" - ctr = _tmp2_ + 1; -#line 234 "string.c" - } -#line 31 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = FALSE; -#line 31 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp3_ = ctr; -#line 31 "/home/jens/Source/shotwell/src/util/string.vala" - if (!(_tmp3_ < length)) { -#line 31 "/home/jens/Source/shotwell/src/util/string.vala" - break; -#line 244 "string.c" - } -#line 32 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp4_ = ctr; -#line 32 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp5_ = data[_tmp4_]; -#line 32 "/home/jens/Source/shotwell/src/util/string.vala" - if (_tmp5_ != ((guchar) '\0')) { -#line 252 "string.c" - GString* _tmp6_; - gint _tmp7_; - guchar _tmp8_; -#line 33 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp6_ = builder; -#line 33 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp7_ = ctr; -#line 33 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp8_ = data[_tmp7_]; -#line 33 "/home/jens/Source/shotwell/src/util/string.vala" - g_string_append_c (_tmp6_, (gchar) _tmp8_); -#line 264 "string.c" - } else { -#line 35 "/home/jens/Source/shotwell/src/util/string.vala" - break; -#line 268 "string.c" - } - } - } - } -#line 38 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp9_ = builder; -#line 38 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp10_ = _tmp9_->str; -#line 38 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp11_ = g_strdup (_tmp10_); -#line 38 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp11_; -#line 38 "/home/jens/Source/shotwell/src/util/string.vala" - _g_string_free0 (builder); -#line 38 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 285 "string.c" -} - - -static void -_vala_array_add1 (guchar* * array, - int* length, - int* size, - guchar value) -{ -#line 45 "/home/jens/Source/shotwell/src/util/string.vala" - if ((*length) == (*size)) { -#line 45 "/home/jens/Source/shotwell/src/util/string.vala" - *size = (*size) ? (2 * (*size)) : 4; -#line 45 "/home/jens/Source/shotwell/src/util/string.vala" - *array = g_renew (guchar, *array, *size); -#line 301 "string.c" - } -#line 45 "/home/jens/Source/shotwell/src/util/string.vala" - (*array)[(*length)++] = value; -#line 305 "string.c" -} - - -guchar* -string_to_uchar_array (const gchar* str, - int* result_length1) -{ - guchar* result = NULL; - guchar* data = NULL; - guchar* _tmp0_; - gint data_length1; - gint _data_size_; - guchar* _tmp8_; - gint _tmp8__length1; -#line 42 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (str != NULL, NULL); -#line 43 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = g_new0 (guchar, 0); -#line 43 "/home/jens/Source/shotwell/src/util/string.vala" - data = _tmp0_; -#line 43 "/home/jens/Source/shotwell/src/util/string.vala" - data_length1 = 0; -#line 43 "/home/jens/Source/shotwell/src/util/string.vala" - _data_size_ = data_length1; -#line 330 "string.c" - { - gint ctr = 0; -#line 44 "/home/jens/Source/shotwell/src/util/string.vala" - ctr = 0; -#line 335 "string.c" - { - gboolean _tmp1_ = FALSE; -#line 44 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = TRUE; -#line 44 "/home/jens/Source/shotwell/src/util/string.vala" - while (TRUE) { -#line 342 "string.c" - gint _tmp3_; - gint _tmp4_; - gint _tmp5_; - guchar* _tmp6_; - gint _tmp6__length1; - gint _tmp7_; -#line 44 "/home/jens/Source/shotwell/src/util/string.vala" - if (!_tmp1_) { -#line 351 "string.c" - gint _tmp2_; -#line 44 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp2_ = ctr; -#line 44 "/home/jens/Source/shotwell/src/util/string.vala" - ctr = _tmp2_ + 1; -#line 357 "string.c" - } -#line 44 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = FALSE; -#line 44 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp3_ = ctr; -#line 44 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp4_ = strlen (str); -#line 44 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp5_ = _tmp4_; -#line 44 "/home/jens/Source/shotwell/src/util/string.vala" - if (!(_tmp3_ < _tmp5_)) { -#line 44 "/home/jens/Source/shotwell/src/util/string.vala" - break; -#line 371 "string.c" - } -#line 45 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp6_ = data; -#line 45 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp6__length1 = data_length1; -#line 45 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp7_ = ctr; -#line 45 "/home/jens/Source/shotwell/src/util/string.vala" - _vala_array_add1 (&data, &data_length1, &_data_size_, (guchar) string_get (str, (glong) _tmp7_)); -#line 381 "string.c" - } - } - } -#line 47 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp8_ = data; -#line 47 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp8__length1 = data_length1; -#line 47 "/home/jens/Source/shotwell/src/util/string.vala" - if (result_length1) { -#line 47 "/home/jens/Source/shotwell/src/util/string.vala" - *result_length1 = _tmp8__length1; -#line 393 "string.c" - } -#line 47 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp8_; -#line 47 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 399 "string.c" -} - - -inline gchar* -guarded_markup_escape_text (const gchar* plain) -{ - gchar* result = NULL; - gchar* _tmp0_ = NULL; - gboolean _tmp1_ = FALSE; -#line 58 "/home/jens/Source/shotwell/src/util/string.vala" - if (!is_string_empty (plain)) { -#line 411 "string.c" - gboolean _tmp2_; -#line 58 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp2_ = g_utf8_validate (plain, (gssize) -1, NULL); -#line 58 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = _tmp2_; -#line 417 "string.c" - } else { -#line 58 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = FALSE; -#line 421 "string.c" - } -#line 58 "/home/jens/Source/shotwell/src/util/string.vala" - if (_tmp1_) { -#line 425 "string.c" - gchar* _tmp3_; -#line 58 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp3_ = g_markup_escape_text (plain, (gssize) -1); -#line 58 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (_tmp0_); -#line 58 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = _tmp3_; -#line 433 "string.c" - } else { - gchar* _tmp4_; -#line 58 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp4_ = g_strdup (""); -#line 58 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (_tmp0_); -#line 58 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = _tmp4_; -#line 442 "string.c" - } -#line 58 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp0_; -#line 58 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 448 "string.c" -} - - -glong -find_last_offset (const gchar* str, - gchar c) -{ - glong result = 0L; - glong offset = 0L; - gint _tmp0_; - gint _tmp1_; -#line 61 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (str != NULL, 0L); -#line 62 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = strlen (str); -#line 62 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = _tmp0_; -#line 62 "/home/jens/Source/shotwell/src/util/string.vala" - offset = (glong) _tmp1_; -#line 63 "/home/jens/Source/shotwell/src/util/string.vala" - while (TRUE) { -#line 470 "string.c" - glong _tmp2_; - glong _tmp3_; - glong _tmp4_; -#line 63 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp2_ = offset; -#line 63 "/home/jens/Source/shotwell/src/util/string.vala" - offset = _tmp2_ - 1; -#line 63 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp3_ = offset; -#line 63 "/home/jens/Source/shotwell/src/util/string.vala" - if (!(_tmp3_ >= ((glong) 0))) { -#line 63 "/home/jens/Source/shotwell/src/util/string.vala" - break; -#line 484 "string.c" - } -#line 64 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp4_ = offset; -#line 64 "/home/jens/Source/shotwell/src/util/string.vala" - if (string_get (str, _tmp4_) == c) { -#line 65 "/home/jens/Source/shotwell/src/util/string.vala" - result = offset; -#line 65 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 494 "string.c" - } - } -#line 68 "/home/jens/Source/shotwell/src/util/string.vala" - result = (glong) -1; -#line 68 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 501 "string.c" -} - - -gboolean -is_in_ci_array (const gchar* str, - gchar** strings, - int strings_length1) -{ - gboolean result = FALSE; - gchar* strdown = NULL; - gchar* _tmp0_; -#line 73 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (str != NULL, FALSE); -#line 74 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = g_utf8_strdown (str, (gssize) -1); -#line 74 "/home/jens/Source/shotwell/src/util/string.vala" - strdown = _tmp0_; -#line 519 "string.c" - { - gchar** str_element_collection = NULL; - gint str_element_collection_length1 = 0; - gint _str_element_collection_size_ = 0; - gint str_element_it = 0; -#line 75 "/home/jens/Source/shotwell/src/util/string.vala" - str_element_collection = strings; -#line 75 "/home/jens/Source/shotwell/src/util/string.vala" - str_element_collection_length1 = strings_length1; -#line 75 "/home/jens/Source/shotwell/src/util/string.vala" - for (str_element_it = 0; str_element_it < strings_length1; str_element_it = str_element_it + 1) { -#line 531 "string.c" - gchar* _tmp1_; - gchar* str_element = NULL; -#line 75 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = g_strdup (str_element_collection[str_element_it]); -#line 75 "/home/jens/Source/shotwell/src/util/string.vala" - str_element = _tmp1_; -#line 538 "string.c" - { - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 76 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp2_ = strdown; -#line 76 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp3_ = str_element; -#line 76 "/home/jens/Source/shotwell/src/util/string.vala" - if (g_strcmp0 (_tmp2_, _tmp3_) == 0) { -#line 77 "/home/jens/Source/shotwell/src/util/string.vala" - result = TRUE; -#line 77 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (str_element); -#line 77 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (strdown); -#line 77 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 556 "string.c" - } -#line 75 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (str_element); -#line 560 "string.c" - } - } - } -#line 80 "/home/jens/Source/shotwell/src/util/string.vala" - result = FALSE; -#line 80 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (strdown); -#line 80 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 570 "string.c" -} - - -GType -prepare_input_text_options_get_type (void) -{ - static volatile gsize prepare_input_text_options_type_id__volatile = 0; - if (g_once_init_enter (&prepare_input_text_options_type_id__volatile)) { - static const GFlagsValue values[] = {{PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL, "PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL", "empty-is-null"}, {PREPARE_INPUT_TEXT_OPTIONS_VALIDATE, "PREPARE_INPUT_TEXT_OPTIONS_VALIDATE", "validate"}, {PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL, "PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL", "invalid-is-null"}, {PREPARE_INPUT_TEXT_OPTIONS_STRIP, "PREPARE_INPUT_TEXT_OPTIONS_STRIP", "strip"}, {PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF, "PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF", "strip-crlf"}, {PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE, "PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE", "normalize"}, {PREPARE_INPUT_TEXT_OPTIONS_DEFAULT, "PREPARE_INPUT_TEXT_OPTIONS_DEFAULT", "default"}, {0, NULL, NULL}}; - GType prepare_input_text_options_type_id; - prepare_input_text_options_type_id = g_flags_register_static ("PrepareInputTextOptions", values); - g_once_init_leave (&prepare_input_text_options_type_id__volatile, prepare_input_text_options_type_id); - } - return prepare_input_text_options_type_id__volatile; -} - - -gchar* -guess_convert (const gchar* text) -{ - gchar* result = NULL; - gchar* output = NULL; - gsize bytes_read = 0UL; - const gchar* charset = NULL; - const gchar* _tmp0_ = NULL; - gboolean _tmp1_; - gsize _tmp23_; - gint _tmp24_; - gint _tmp25_; - GError * _inner_error_ = NULL; -#line 94 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (text != NULL, NULL); -#line 95 "/home/jens/Source/shotwell/src/util/string.vala" - output = NULL; -#line 96 "/home/jens/Source/shotwell/src/util/string.vala" - bytes_read = (gsize) 0; -#line 97 "/home/jens/Source/shotwell/src/util/string.vala" - charset = NULL; -#line 98 "/home/jens/Source/shotwell/src/util/string.vala" - g_debug ("string.vala:98: CONVERT: Text did not validate as UTF-8, trying conver" \ -"sion"); -#line 101 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = g_get_charset (&_tmp0_); -#line 101 "/home/jens/Source/shotwell/src/util/string.vala" - charset = _tmp0_; -#line 101 "/home/jens/Source/shotwell/src/util/string.vala" - if (!_tmp1_) { -#line 617 "string.c" - gint _tmp2_; - gint _tmp3_; - gsize _tmp4_ = 0UL; - gchar* _tmp5_; - gsize _tmp6_; - gint _tmp7_; - gint _tmp8_; -#line 102 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp2_ = strlen (text); -#line 102 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp3_ = _tmp2_; -#line 102 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp5_ = g_locale_to_utf8 (text, (gssize) _tmp3_, &_tmp4_, NULL, NULL); -#line 102 "/home/jens/Source/shotwell/src/util/string.vala" - bytes_read = _tmp4_; -#line 102 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (output); -#line 102 "/home/jens/Source/shotwell/src/util/string.vala" - output = _tmp5_; -#line 103 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp6_ = bytes_read; -#line 103 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp7_ = strlen (text); -#line 103 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp8_ = _tmp7_; -#line 103 "/home/jens/Source/shotwell/src/util/string.vala" - if (_tmp6_ == ((gsize) _tmp8_)) { -#line 645 "string.c" - const gchar* _tmp9_; -#line 104 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp9_ = charset; -#line 104 "/home/jens/Source/shotwell/src/util/string.vala" - g_debug ("string.vala:104: CONVERT: Locale is not UTF-8, convert from %s", _tmp9_); -#line 105 "/home/jens/Source/shotwell/src/util/string.vala" - result = output; -#line 105 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 655 "string.c" - } - } - { - gchar* _tmp10_ = NULL; - gint _tmp11_; - gint _tmp12_; - gsize _tmp13_ = 0UL; - gchar* _tmp14_; - gchar* _tmp15_; -#line 110 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp11_ = strlen (text); -#line 110 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp12_ = _tmp11_; -#line 110 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp14_ = g_convert (text, (gssize) _tmp12_, "UTF-8", "WINDOWS-1252", &_tmp13_, NULL, &_inner_error_); -#line 110 "/home/jens/Source/shotwell/src/util/string.vala" - bytes_read = _tmp13_; -#line 110 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp10_ = _tmp14_; -#line 110 "/home/jens/Source/shotwell/src/util/string.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 110 "/home/jens/Source/shotwell/src/util/string.vala" - if (_inner_error_->domain == G_CONVERT_ERROR) { -#line 679 "string.c" - goto __catch6_g_convert_error; - } -#line 110 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (output); -#line 110 "/home/jens/Source/shotwell/src/util/string.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 110 "/home/jens/Source/shotwell/src/util/string.vala" - g_clear_error (&_inner_error_); -#line 110 "/home/jens/Source/shotwell/src/util/string.vala" - return NULL; -#line 690 "string.c" - } -#line 110 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp15_ = _tmp10_; -#line 110 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp10_ = NULL; -#line 110 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (output); -#line 110 "/home/jens/Source/shotwell/src/util/string.vala" - output = _tmp15_; -#line 111 "/home/jens/Source/shotwell/src/util/string.vala" - charset = "WINDOWS-1252"; -#line 109 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (_tmp10_); -#line 704 "string.c" - } - goto __finally6; - __catch6_g_convert_error: - { - GError* _error_ = NULL; - GError* _tmp16_; -#line 109 "/home/jens/Source/shotwell/src/util/string.vala" - _error_ = _inner_error_; -#line 109 "/home/jens/Source/shotwell/src/util/string.vala" - _inner_error_ = NULL; -#line 113 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp16_ = _error_; -#line 113 "/home/jens/Source/shotwell/src/util/string.vala" - if (g_error_matches (_tmp16_, G_CONVERT_ERROR, G_CONVERT_ERROR_NO_CONVERSION)) { -#line 719 "string.c" - { - gchar* _tmp17_ = NULL; - gint _tmp18_; - gint _tmp19_; - gsize _tmp20_ = 0UL; - gchar* _tmp21_; - gchar* _tmp22_; -#line 115 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp18_ = strlen (text); -#line 115 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp19_ = _tmp18_; -#line 115 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp21_ = g_convert (text, (gssize) _tmp19_, "UTF-8", "ISO-8859-1", &_tmp20_, NULL, &_inner_error_); -#line 115 "/home/jens/Source/shotwell/src/util/string.vala" - bytes_read = _tmp20_; -#line 115 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp17_ = _tmp21_; -#line 115 "/home/jens/Source/shotwell/src/util/string.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 739 "string.c" - goto __catch7_g_error; - } -#line 115 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp22_ = _tmp17_; -#line 115 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp17_ = NULL; -#line 115 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (output); -#line 115 "/home/jens/Source/shotwell/src/util/string.vala" - output = _tmp22_; -#line 116 "/home/jens/Source/shotwell/src/util/string.vala" - charset = "ISO-8859-1"; -#line 114 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (_tmp17_); -#line 754 "string.c" - } - goto __finally7; - __catch7_g_error: - { - GError* _error_ = NULL; -#line 114 "/home/jens/Source/shotwell/src/util/string.vala" - _error_ = _inner_error_; -#line 114 "/home/jens/Source/shotwell/src/util/string.vala" - _inner_error_ = NULL; -#line 114 "/home/jens/Source/shotwell/src/util/string.vala" - _g_error_free0 (_error_); -#line 766 "string.c" - } - __finally7: -#line 114 "/home/jens/Source/shotwell/src/util/string.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 114 "/home/jens/Source/shotwell/src/util/string.vala" - _g_error_free0 (_error_); -#line 114 "/home/jens/Source/shotwell/src/util/string.vala" - _g_error_free0 (_error_); -#line 114 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (output); -#line 114 "/home/jens/Source/shotwell/src/util/string.vala" - g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 114 "/home/jens/Source/shotwell/src/util/string.vala" - g_clear_error (&_inner_error_); -#line 114 "/home/jens/Source/shotwell/src/util/string.vala" - return NULL; -#line 783 "string.c" - } - } -#line 109 "/home/jens/Source/shotwell/src/util/string.vala" - _g_error_free0 (_error_); -#line 788 "string.c" - } - __finally6: -#line 109 "/home/jens/Source/shotwell/src/util/string.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 109 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (output); -#line 109 "/home/jens/Source/shotwell/src/util/string.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 109 "/home/jens/Source/shotwell/src/util/string.vala" - g_clear_error (&_inner_error_); -#line 109 "/home/jens/Source/shotwell/src/util/string.vala" - return NULL; -#line 801 "string.c" - } -#line 121 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp23_ = bytes_read; -#line 121 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp24_ = strlen (text); -#line 121 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp25_ = _tmp24_; -#line 121 "/home/jens/Source/shotwell/src/util/string.vala" - if (_tmp23_ == ((gsize) _tmp25_)) { -#line 811 "string.c" - const gchar* _tmp26_; -#line 122 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp26_ = charset; -#line 122 "/home/jens/Source/shotwell/src/util/string.vala" - g_debug ("string.vala:122: CONVERT: Guessed conversion from %s", _tmp26_); -#line 124 "/home/jens/Source/shotwell/src/util/string.vala" - result = output; -#line 124 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 821 "string.c" - } -#line 127 "/home/jens/Source/shotwell/src/util/string.vala" - result = NULL; -#line 127 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (output); -#line 127 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 829 "string.c" -} - - -static gchar* -string_strip (const gchar* self) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strstrip (_tmp1_); -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 854 "string.c" -} - - -static gchar* -string_delimit (const gchar* self, - const gchar* delimiters, - gchar new_delimiter) -{ - gchar* result = NULL; - gchar* _result_ = NULL; - gchar* _tmp0_; - const gchar* _tmp1_; -#line 1256 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1256 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (delimiters != NULL, NULL); -#line 1257 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strdup (self); -#line 1257 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1258 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1258 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_strdelimit (_tmp1_, delimiters, new_delimiter); -#line 1259 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _result_; -#line 1259 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 883 "string.c" -} - - -gchar* -prepare_input_text (const gchar* text, - PrepareInputTextOptions options, - gint dest_length) -{ - gchar* result = NULL; - gchar* prepped = NULL; - gchar* _tmp0_; - gboolean _tmp12_ = FALSE; -#line 131 "/home/jens/Source/shotwell/src/util/string.vala" - if (text == NULL) { -#line 132 "/home/jens/Source/shotwell/src/util/string.vala" - result = NULL; -#line 132 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 902 "string.c" - } -#line 134 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = g_strdup (text); -#line 134 "/home/jens/Source/shotwell/src/util/string.vala" - prepped = _tmp0_; -#line 135 "/home/jens/Source/shotwell/src/util/string.vala" - if ((options & PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) == PREPARE_INPUT_TEXT_OPTIONS_VALIDATE) { -#line 910 "string.c" - gboolean _tmp1_; -#line 136 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = g_utf8_validate (text, (gssize) -1, NULL); -#line 136 "/home/jens/Source/shotwell/src/util/string.vala" - if (!_tmp1_) { -#line 916 "string.c" - gchar* _tmp2_; - const gchar* _tmp3_; -#line 137 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp2_ = guess_convert (text); -#line 137 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (prepped); -#line 137 "/home/jens/Source/shotwell/src/util/string.vala" - prepped = _tmp2_; -#line 139 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp3_ = prepped; -#line 139 "/home/jens/Source/shotwell/src/util/string.vala" - if (_tmp3_ == NULL) { -#line 929 "string.c" - const gchar* _tmp4_ = NULL; - gchar* _tmp5_; -#line 140 "/home/jens/Source/shotwell/src/util/string.vala" - if ((options & PREPARE_INPUT_TEXT_OPTIONS_INVALID_IS_NULL) != 0) { -#line 140 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp4_ = NULL; -#line 936 "string.c" - } else { -#line 140 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp4_ = ""; -#line 940 "string.c" - } -#line 140 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp5_ = g_strdup (_tmp4_); -#line 140 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp5_; -#line 140 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (prepped); -#line 140 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 950 "string.c" - } - } - } -#line 149 "/home/jens/Source/shotwell/src/util/string.vala" - if ((options & PREPARE_INPUT_TEXT_OPTIONS_NORMALIZE) != 0) { -#line 956 "string.c" - const gchar* _tmp6_; - gchar* _tmp7_; -#line 150 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp6_ = prepped; -#line 150 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp7_ = g_utf8_normalize (_tmp6_, (gssize) -1, G_NORMALIZE_NFC); -#line 150 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (prepped); -#line 150 "/home/jens/Source/shotwell/src/util/string.vala" - prepped = _tmp7_; -#line 967 "string.c" - } -#line 152 "/home/jens/Source/shotwell/src/util/string.vala" - if ((options & PREPARE_INPUT_TEXT_OPTIONS_STRIP) != 0) { -#line 971 "string.c" - const gchar* _tmp8_; - gchar* _tmp9_; -#line 153 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp8_ = prepped; -#line 153 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp9_ = string_strip (_tmp8_); -#line 153 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (prepped); -#line 153 "/home/jens/Source/shotwell/src/util/string.vala" - prepped = _tmp9_; -#line 982 "string.c" - } -#line 157 "/home/jens/Source/shotwell/src/util/string.vala" - if ((options & PREPARE_INPUT_TEXT_OPTIONS_STRIP_CRLF) != 0) { -#line 986 "string.c" - const gchar* _tmp10_; - gchar* _tmp11_; -#line 158 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp10_ = prepped; -#line 158 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp11_ = string_delimit (_tmp10_, "\n\r", ' '); -#line 158 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (prepped); -#line 158 "/home/jens/Source/shotwell/src/util/string.vala" - prepped = _tmp11_; -#line 997 "string.c" - } -#line 160 "/home/jens/Source/shotwell/src/util/string.vala" - if ((options & PREPARE_INPUT_TEXT_OPTIONS_EMPTY_IS_NULL) != 0) { -#line 1001 "string.c" - const gchar* _tmp13_; -#line 160 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp13_ = prepped; -#line 160 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp12_ = is_string_empty (_tmp13_); -#line 1007 "string.c" - } else { -#line 160 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp12_ = FALSE; -#line 1011 "string.c" - } -#line 160 "/home/jens/Source/shotwell/src/util/string.vala" - if (_tmp12_) { -#line 161 "/home/jens/Source/shotwell/src/util/string.vala" - result = NULL; -#line 161 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (prepped); -#line 161 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1021 "string.c" - } -#line 166 "/home/jens/Source/shotwell/src/util/string.vala" - if (dest_length >= 0) { -#line 1025 "string.c" - GString* sb = NULL; - const gchar* _tmp14_; - GString* _tmp15_; - GString* _tmp16_; - GString* _tmp17_; - const gchar* _tmp18_; - gchar* _tmp19_; -#line 167 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp14_ = prepped; -#line 167 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp15_ = g_string_new (_tmp14_); -#line 167 "/home/jens/Source/shotwell/src/util/string.vala" - sb = _tmp15_; -#line 168 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp16_ = sb; -#line 168 "/home/jens/Source/shotwell/src/util/string.vala" - g_string_truncate (_tmp16_, (gsize) dest_length); -#line 169 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp17_ = sb; -#line 169 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp18_ = _tmp17_->str; -#line 169 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp19_ = g_strdup (_tmp18_); -#line 169 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp19_; -#line 169 "/home/jens/Source/shotwell/src/util/string.vala" - _g_string_free0 (sb); -#line 169 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (prepped); -#line 169 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1057 "string.c" - } -#line 173 "/home/jens/Source/shotwell/src/util/string.vala" - result = prepped; -#line 173 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1063 "string.c" -} - - -gint64 -parse_int64 (const gchar* str, - gint num_base) -{ - gint64 result = 0LL; - gint64 _tmp0_; -#line 176 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (str != NULL, 0LL); -#line 177 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = g_ascii_strtoll (str, NULL, (guint) num_base); -#line 177 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp0_; -#line 177 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1081 "string.c" -} - - -static gint -string_index_of_char (const gchar* self, - gunichar c, - gint start_index) -{ - gint result = 0; - gchar* _result_ = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1045 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0); -#line 1046 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_utf8_strchr (((gchar*) self) + start_index, (gssize) -1, c); -#line 1046 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1048 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1048 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ != NULL) { -#line 1104 "string.c" - gchar* _tmp2_; -#line 1049 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _result_; -#line 1049 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gint) (_tmp2_ - ((gchar*) self)); -#line 1049 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1112 "string.c" - } else { -#line 1051 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = -1; -#line 1051 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1118 "string.c" - } -} - - -inline gboolean -string_contains_char (const gchar* haystack, - gunichar needle) -{ - gboolean result = FALSE; -#line 182 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (haystack != NULL, FALSE); -#line 183 "/home/jens/Source/shotwell/src/util/string.vala" - result = string_index_of_char (haystack, needle, 0) >= 0; -#line 183 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1134 "string.c" -} - - -static gint -string_index_of (const gchar* self, - const gchar* needle, - gint start_index) -{ - gint result = 0; - gchar* _result_ = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1025 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0); -#line 1025 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, 0); -#line 1026 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strstr (((gchar*) self) + start_index, (gchar*) needle); -#line 1026 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1028 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1028 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ != NULL) { -#line 1159 "string.c" - gchar* _tmp2_; -#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _result_; -#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gint) (_tmp2_ - ((gchar*) self)); -#line 1029 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1167 "string.c" - } else { -#line 1031 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = -1; -#line 1031 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1173 "string.c" - } -} - - -inline gboolean -string_contains_str (const gchar* haystack, - const gchar* needle) -{ - gboolean result = FALSE; -#line 186 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (haystack != NULL, FALSE); -#line 186 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (needle != NULL, FALSE); -#line 187 "/home/jens/Source/shotwell/src/util/string.vala" - result = string_index_of (haystack, needle, 0) >= 0; -#line 187 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1191 "string.c" -} - - -static gchar* -string_slice (const gchar* self, - glong start, - glong end) -{ - gchar* result = NULL; - glong string_length = 0L; - gint _tmp0_; - gint _tmp1_; - gboolean _tmp4_ = FALSE; - gboolean _tmp6_ = FALSE; - gchar* _tmp8_; -#line 1369 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, NULL); -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = strlen (self); -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _tmp0_; -#line 1370 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - string_length = (glong) _tmp1_; -#line 1371 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (start < ((glong) 0)) { -#line 1217 "string.c" - glong _tmp2_; -#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = string_length; -#line 1372 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - start = _tmp2_ + start; -#line 1223 "string.c" - } -#line 1374 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (end < ((glong) 0)) { -#line 1227 "string.c" - glong _tmp3_; -#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp3_ = string_length; -#line 1375 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - end = _tmp3_ + end; -#line 1233 "string.c" - } -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (start >= ((glong) 0)) { -#line 1237 "string.c" - glong _tmp5_; -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp5_ = string_length; -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = start <= _tmp5_; -#line 1243 "string.c" - } else { -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp4_ = FALSE; -#line 1247 "string.c" - } -#line 1377 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (_tmp4_, NULL); -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (end >= ((glong) 0)) { -#line 1253 "string.c" - glong _tmp7_; -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp7_ = string_length; -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = end <= _tmp7_; -#line 1259 "string.c" - } else { -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp6_ = FALSE; -#line 1263 "string.c" - } -#line 1378 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (_tmp6_, NULL); -#line 1379 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (start <= end, NULL); -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp8_ = g_strndup (((gchar*) self) + start, (gsize) (end - start)); -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = _tmp8_; -#line 1380 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1275 "string.c" -} - - -inline gchar* -string_sliced_at (const gchar* str, - gint index) -{ - gchar* result = NULL; - gchar* _tmp0_ = NULL; -#line 190 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (str != NULL, NULL); -#line 191 "/home/jens/Source/shotwell/src/util/string.vala" - if (index >= 0) { -#line 1289 "string.c" - gint _tmp1_; - gint _tmp2_; - gchar* _tmp3_; -#line 191 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = strlen (str); -#line 191 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp2_ = _tmp1_; -#line 191 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp3_ = string_slice (str, (glong) index, (glong) _tmp2_); -#line 191 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (_tmp0_); -#line 191 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = _tmp3_; -#line 1303 "string.c" - } else { -#line 191 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (_tmp0_); -#line 191 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = NULL; -#line 1309 "string.c" - } -#line 191 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp0_; -#line 191 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1315 "string.c" -} - - -inline gchar* -string_sliced_at_first_str (const gchar* haystack, - const gchar* needle, - gint start_index) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 194 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (haystack != NULL, NULL); -#line 194 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (needle != NULL, NULL); -#line 195 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = string_sliced_at (haystack, string_index_of (haystack, needle, start_index)); -#line 195 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp0_; -#line 195 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1336 "string.c" -} - - -static gint -string_last_index_of (const gchar* self, - const gchar* needle, - gint start_index) -{ - gint result = 0; - gchar* _result_ = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1035 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0); -#line 1035 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (needle != NULL, 0); -#line 1036 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_strrstr (((gchar*) self) + start_index, (gchar*) needle); -#line 1036 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1038 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1038 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ != NULL) { -#line 1361 "string.c" - gchar* _tmp2_; -#line 1039 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _result_; -#line 1039 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gint) (_tmp2_ - ((gchar*) self)); -#line 1039 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1369 "string.c" - } else { -#line 1041 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = -1; -#line 1041 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1375 "string.c" - } -} - - -inline gchar* -string_sliced_at_last_str (const gchar* haystack, - const gchar* needle, - gint start_index) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 198 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (haystack != NULL, NULL); -#line 198 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (needle != NULL, NULL); -#line 199 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = string_sliced_at (haystack, string_last_index_of (haystack, needle, start_index)); -#line 199 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp0_; -#line 199 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1397 "string.c" -} - - -inline gchar* -string_sliced_at_first_char (const gchar* haystack, - gunichar ch, - gint start_index) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 202 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (haystack != NULL, NULL); -#line 203 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = string_sliced_at (haystack, string_index_of_char (haystack, ch, start_index)); -#line 203 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp0_; -#line 203 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1416 "string.c" -} - - -static gint -string_last_index_of_char (const gchar* self, - gunichar c, - gint start_index) -{ - gint result = 0; - gchar* _result_ = NULL; - gchar* _tmp0_; - gchar* _tmp1_; -#line 1055 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0); -#line 1056 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = g_utf8_strrchr (((gchar*) self) + start_index, (gssize) -1, c); -#line 1056 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _result_ = _tmp0_; -#line 1058 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = _result_; -#line 1058 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp1_ != NULL) { -#line 1439 "string.c" - gchar* _tmp2_; -#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp2_ = _result_; -#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = (gint) (_tmp2_ - ((gchar*) self)); -#line 1059 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1447 "string.c" - } else { -#line 1061 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = -1; -#line 1061 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1453 "string.c" - } -} - - -inline gchar* -string_sliced_at_last_char (const gchar* haystack, - gunichar ch, - gint start_index) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 206 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (haystack != NULL, NULL); -#line 207 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = string_sliced_at (haystack, string_last_index_of_char (haystack, ch, start_index)); -#line 207 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp0_; -#line 207 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1473 "string.c" -} - - -static gunichar -string_get_char (const gchar* self, - glong index) -{ - gunichar result = 0U; -#line 1154 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, 0U); -#line 1155 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = g_utf8_get_char (((gchar*) self) + index); -#line 1155 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1488 "string.c" -} - - -gchar* -string_strip_leading_zeroes (const gchar* str) -{ - gchar* result = NULL; - GString* stripped = NULL; - GString* _tmp0_; - gboolean prev_is_space = FALSE; - GString* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; -#line 211 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (str != NULL, NULL); -#line 212 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = g_string_new (""); -#line 212 "/home/jens/Source/shotwell/src/util/string.vala" - stripped = _tmp0_; -#line 213 "/home/jens/Source/shotwell/src/util/string.vala" - prev_is_space = TRUE; -#line 1510 "string.c" - { - const gchar* iter = NULL; -#line 214 "/home/jens/Source/shotwell/src/util/string.vala" - iter = str; -#line 1515 "string.c" - { - gboolean _tmp1_ = FALSE; -#line 214 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = TRUE; -#line 214 "/home/jens/Source/shotwell/src/util/string.vala" - while (TRUE) { -#line 1522 "string.c" - const gchar* _tmp4_; - gunichar ch = 0U; - const gchar* _tmp5_; - gboolean _tmp6_ = FALSE; - gboolean _tmp7_; -#line 214 "/home/jens/Source/shotwell/src/util/string.vala" - if (!_tmp1_) { -#line 1530 "string.c" - const gchar* _tmp2_; - const gchar* _tmp3_; -#line 214 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp2_ = iter; -#line 214 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp3_ = g_utf8_next_char (_tmp2_); -#line 214 "/home/jens/Source/shotwell/src/util/string.vala" - iter = _tmp3_; -#line 1539 "string.c" - } -#line 214 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = FALSE; -#line 214 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp4_ = iter; -#line 214 "/home/jens/Source/shotwell/src/util/string.vala" - if (!(string_get_char (_tmp4_, (glong) 0) != ((gunichar) 0))) { -#line 214 "/home/jens/Source/shotwell/src/util/string.vala" - break; -#line 1549 "string.c" - } -#line 215 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp5_ = iter; -#line 215 "/home/jens/Source/shotwell/src/util/string.vala" - ch = string_get_char (_tmp5_, (glong) 0); -#line 217 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp7_ = prev_is_space; -#line 217 "/home/jens/Source/shotwell/src/util/string.vala" - if (!_tmp7_) { -#line 217 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp6_ = TRUE; -#line 1561 "string.c" - } else { - gunichar _tmp8_; -#line 217 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp8_ = ch; -#line 217 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp6_ = _tmp8_ != ((gunichar) '0'); -#line 1568 "string.c" - } -#line 217 "/home/jens/Source/shotwell/src/util/string.vala" - if (_tmp6_) { -#line 1572 "string.c" - GString* _tmp9_; - gunichar _tmp10_; - gunichar _tmp11_; -#line 218 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp9_ = stripped; -#line 218 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp10_ = ch; -#line 218 "/home/jens/Source/shotwell/src/util/string.vala" - g_string_append_unichar (_tmp9_, _tmp10_); -#line 219 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp11_ = ch; -#line 219 "/home/jens/Source/shotwell/src/util/string.vala" - prev_is_space = g_unichar_isspace (_tmp11_); -#line 1586 "string.c" - } - } - } - } -#line 223 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp12_ = stripped; -#line 223 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp13_ = _tmp12_->str; -#line 223 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp14_ = g_strdup (_tmp13_); -#line 223 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp14_; -#line 223 "/home/jens/Source/shotwell/src/util/string.vala" - _g_string_free0 (stripped); -#line 223 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1603 "string.c" -} - - -static gboolean -string_get_next_char (const gchar* self, - gint* index, - gunichar* c) -{ - gunichar _vala_c = 0U; - gboolean result = FALSE; - gunichar _tmp0_; -#line 1143 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - g_return_val_if_fail (self != NULL, FALSE); -#line 1144 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _vala_c = g_utf8_get_char (((gchar*) self) + (*index)); -#line 1145 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp0_ = _vala_c; -#line 1145 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (_tmp0_ != ((gunichar) 0)) { -#line 1623 "string.c" - gchar* _tmp1_; -#line 1146 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - _tmp1_ = g_utf8_next_char (((gchar*) self) + (*index)); -#line 1146 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *index = (gint) (_tmp1_ - ((gchar*) self)); -#line 1147 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = TRUE; -#line 1147 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (c) { -#line 1147 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *c = _vala_c; -#line 1635 "string.c" - } -#line 1147 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1639 "string.c" - } else { -#line 1149 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - result = FALSE; -#line 1149 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (c) { -#line 1149 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *c = _vala_c; -#line 1647 "string.c" - } -#line 1149 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - return result; -#line 1651 "string.c" - } -#line 1143 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - if (c) { -#line 1143 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" - *c = _vala_c; -#line 1657 "string.c" - } -} - - -gchar* -string_remove_diacritics (const gchar* istring) -{ - gchar* result = NULL; - GString* builder = NULL; - GString* _tmp0_; - gunichar ch = 0U; - gint i = 0; - GString* _tmp9_; - const gchar* _tmp10_; - gchar* _tmp11_; -#line 226 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (istring != NULL, NULL); -#line 227 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = g_string_new (""); -#line 227 "/home/jens/Source/shotwell/src/util/string.vala" - builder = _tmp0_; -#line 229 "/home/jens/Source/shotwell/src/util/string.vala" - i = 0; -#line 230 "/home/jens/Source/shotwell/src/util/string.vala" - while (TRUE) { -#line 1683 "string.c" - gchar* _tmp1_; - gchar* _tmp2_; - gunichar _tmp3_ = 0U; - gboolean _tmp4_; - gboolean _tmp5_; - gunichar _tmp6_; - GString* _tmp7_; - gunichar _tmp8_; -#line 230 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = g_utf8_normalize (istring, (gssize) -1, G_NORMALIZE_DEFAULT); -#line 230 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp2_ = _tmp1_; -#line 230 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp4_ = string_get_next_char (_tmp2_, &i, &_tmp3_); -#line 230 "/home/jens/Source/shotwell/src/util/string.vala" - ch = _tmp3_; -#line 230 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp5_ = !_tmp4_; -#line 230 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (_tmp2_); -#line 230 "/home/jens/Source/shotwell/src/util/string.vala" - if (_tmp5_) { -#line 230 "/home/jens/Source/shotwell/src/util/string.vala" - break; -#line 1708 "string.c" - } -#line 231 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp6_ = ch; -#line 231 "/home/jens/Source/shotwell/src/util/string.vala" - switch (g_unichar_type (_tmp6_)) { -#line 231 "/home/jens/Source/shotwell/src/util/string.vala" - case G_UNICODE_CONTROL: -#line 231 "/home/jens/Source/shotwell/src/util/string.vala" - case G_UNICODE_FORMAT: -#line 231 "/home/jens/Source/shotwell/src/util/string.vala" - case G_UNICODE_UNASSIGNED: -#line 231 "/home/jens/Source/shotwell/src/util/string.vala" - case G_UNICODE_NON_SPACING_MARK: -#line 231 "/home/jens/Source/shotwell/src/util/string.vala" - case G_UNICODE_COMBINING_MARK: -#line 231 "/home/jens/Source/shotwell/src/util/string.vala" - case G_UNICODE_ENCLOSING_MARK: -#line 1726 "string.c" - { -#line 239 "/home/jens/Source/shotwell/src/util/string.vala" - continue; -#line 1730 "string.c" - } - default: -#line 231 "/home/jens/Source/shotwell/src/util/string.vala" - break; -#line 1735 "string.c" - } -#line 241 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp7_ = builder; -#line 241 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp8_ = ch; -#line 241 "/home/jens/Source/shotwell/src/util/string.vala" - g_string_append_unichar (_tmp7_, _tmp8_); -#line 1743 "string.c" - } -#line 243 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp9_ = builder; -#line 243 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp10_ = _tmp9_->str; -#line 243 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp11_ = g_strdup (_tmp10_); -#line 243 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp11_; -#line 243 "/home/jens/Source/shotwell/src/util/string.vala" - _g_string_free0 (builder); -#line 243 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1757 "string.c" -} - - -gchar* -string_to_hex_string (const gchar* str) -{ - gchar* result = NULL; - GString* builder = NULL; - GString* _tmp0_; - guint8* data = NULL; - GString* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_; -#line 246 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (str != NULL, NULL); -#line 247 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = g_string_new (""); -#line 247 "/home/jens/Source/shotwell/src/util/string.vala" - builder = _tmp0_; -#line 249 "/home/jens/Source/shotwell/src/util/string.vala" - data = (guint8*) str; -#line 250 "/home/jens/Source/shotwell/src/util/string.vala" - while (TRUE) { -#line 1781 "string.c" - guint8* _tmp1_; - const gchar* _tmp2_ = NULL; - guint8* _tmp3_; - GString* _tmp4_; - guint8* _tmp5_; -#line 250 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = data; -#line 250 "/home/jens/Source/shotwell/src/util/string.vala" - if (!(((gint) (*_tmp1_)) != 0)) { -#line 250 "/home/jens/Source/shotwell/src/util/string.vala" - break; -#line 1793 "string.c" - } -#line 251 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp3_ = data; -#line 251 "/home/jens/Source/shotwell/src/util/string.vala" - if (((gint) (*_tmp3_)) != 0) { -#line 251 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp2_ = " "; -#line 1801 "string.c" - } else { -#line 251 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp2_ = ""; -#line 1805 "string.c" - } -#line 251 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp4_ = builder; -#line 251 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp5_ = data; -#line 251 "/home/jens/Source/shotwell/src/util/string.vala" - data = _tmp5_ + 1; -#line 251 "/home/jens/Source/shotwell/src/util/string.vala" - g_string_append_printf (_tmp4_, "%02Xh%s", (guint) (*_tmp5_), _tmp2_); -#line 1815 "string.c" - } -#line 253 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp6_ = builder; -#line 253 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp7_ = _tmp6_->str; -#line 253 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp8_ = g_strdup (_tmp7_); -#line 253 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp8_; -#line 253 "/home/jens/Source/shotwell/src/util/string.vala" - _g_string_free0 (builder); -#line 253 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1829 "string.c" -} - - -guint -string_collated_hash (void* ptr) -{ - guint result = 0U; - gchar* str = NULL; - gchar* _tmp0_; - GHashFunc _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - guint _tmp4_; -#line 273 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = g_strdup ((const gchar*) ptr); -#line 273 "/home/jens/Source/shotwell/src/util/string.vala" - str = _tmp0_; -#line 275 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = g_str_hash; -#line 275 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp2_ = g_utf8_collate_key (str, (gssize) -1); -#line 275 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp3_ = _tmp2_; -#line 275 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp4_ = _tmp1_ (_tmp3_); -#line 275 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (_tmp3_); -#line 275 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp4_; -#line 275 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (str); -#line 275 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1863 "string.c" -} - - -guint -string_precollated_hash (void* ptr) -{ - guint result = 0U; - GHashFunc _tmp0_; -#line 280 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = g_str_hash; -#line 280 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp0_ ((const gchar*) ptr); -#line 280 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1878 "string.c" -} - - -gint -string_collated_compare (void* a, - void* b) -{ - gint result = 0; - gchar* astr = NULL; - gchar* _tmp0_; - gchar* bstr = NULL; - gchar* _tmp1_; - gint _result_ = 0; - const gchar* _tmp2_; - const gchar* _tmp3_; - gint _tmp4_ = 0; - gint _tmp5_; -#line 285 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = g_strdup ((const gchar*) a); -#line 285 "/home/jens/Source/shotwell/src/util/string.vala" - astr = _tmp0_; -#line 286 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = g_strdup ((const gchar*) b); -#line 286 "/home/jens/Source/shotwell/src/util/string.vala" - bstr = _tmp1_; -#line 288 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp2_ = astr; -#line 288 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp3_ = bstr; -#line 288 "/home/jens/Source/shotwell/src/util/string.vala" - _result_ = g_utf8_collate (_tmp2_, _tmp3_); -#line 290 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp5_ = _result_; -#line 290 "/home/jens/Source/shotwell/src/util/string.vala" - if (_tmp5_ != 0) { -#line 1914 "string.c" - gint _tmp6_; -#line 290 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp6_ = _result_; -#line 290 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp4_ = _tmp6_; -#line 1920 "string.c" - } else { - GCompareFunc _tmp7_; - const gchar* _tmp8_; - const gchar* _tmp9_; -#line 290 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp7_ = g_strcmp0; -#line 290 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp8_ = astr; -#line 290 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp9_ = bstr; -#line 290 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp4_ = _tmp7_ (_tmp8_, _tmp9_); -#line 1933 "string.c" - } -#line 290 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp4_; -#line 290 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (bstr); -#line 290 "/home/jens/Source/shotwell/src/util/string.vala" - _g_free0 (astr); -#line 290 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1943 "string.c" -} - - -gint -string_precollated_compare (const gchar* astr, - const gchar* akey, - const gchar* bstr, - const gchar* bkey) -{ - gint result = 0; - gint _result_ = 0; - GCompareFunc _tmp0_; - gint _tmp1_ = 0; - gint _tmp2_; -#line 294 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (astr != NULL, 0); -#line 294 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (akey != NULL, 0); -#line 294 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (bstr != NULL, 0); -#line 294 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (bkey != NULL, 0); -#line 295 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp0_ = g_strcmp0; -#line 295 "/home/jens/Source/shotwell/src/util/string.vala" - _result_ = _tmp0_ (akey, bkey); -#line 297 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp2_ = _result_; -#line 297 "/home/jens/Source/shotwell/src/util/string.vala" - if (_tmp2_ != 0) { -#line 1974 "string.c" - gint _tmp3_; -#line 297 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp3_ = _result_; -#line 297 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = _tmp3_; -#line 1980 "string.c" - } else { - GCompareFunc _tmp4_; -#line 297 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp4_ = g_strcmp0; -#line 297 "/home/jens/Source/shotwell/src/util/string.vala" - _tmp1_ = _tmp4_ (astr, bstr); -#line 1987 "string.c" - } -#line 297 "/home/jens/Source/shotwell/src/util/string.vala" - result = _tmp1_; -#line 297 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 1993 "string.c" -} - - -gboolean -string_collated_equals (void* a, - void* b) -{ - gboolean result = FALSE; -#line 302 "/home/jens/Source/shotwell/src/util/string.vala" - result = string_collated_compare (a, b) == 0; -#line 302 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 2006 "string.c" -} - - -gboolean -string_precollated_equals (const gchar* astr, - const gchar* akey, - const gchar* bstr, - const gchar* bkey) -{ - gboolean result = FALSE; -#line 306 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (astr != NULL, FALSE); -#line 306 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (akey != NULL, FALSE); -#line 306 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (bstr != NULL, FALSE); -#line 306 "/home/jens/Source/shotwell/src/util/string.vala" - g_return_val_if_fail (bkey != NULL, FALSE); -#line 307 "/home/jens/Source/shotwell/src/util/string.vala" - result = string_precollated_compare (astr, akey, bstr, bkey) == 0; -#line 307 "/home/jens/Source/shotwell/src/util/string.vala" - return result; -#line 2029 "string.c" -} - - - diff --git a/src/util/system.c b/src/util/system.c deleted file mode 100644 index 958256c..0000000 --- a/src/util/system.c +++ /dev/null @@ -1,189 +0,0 @@ -/* system.c generated by valac 0.40.4, the Vala compiler - * generated from system.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/* Return the directory in which Shotwell is installed, or null if uninstalled.*/ - - -#include -#include -#include -#include -#include -#include -#include -#include - -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) - - - -GFile* get_sys_install_dir (GFile* exec_dir); -#define RESOURCES_PREFIX _PREFIX -gchar* get_nautilus_install_location (void); -void sys_show_uri (GdkScreen* screen, - const gchar* uri, - GError** error); -void show_file_in_nautilus (const gchar* filename, - GError** error); - - -GFile* -get_sys_install_dir (GFile* exec_dir) -{ - GFile* result = NULL; - GFile* child = NULL; - GFile* _tmp0_; - GFile* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gboolean _tmp4_; -#line 8 "/home/jens/Source/shotwell/src/util/system.vala" - g_return_val_if_fail (G_IS_FILE (exec_dir), NULL); -#line 10 "/home/jens/Source/shotwell/src/util/system.vala" - _tmp0_ = g_file_get_child (exec_dir, "ui"); -#line 10 "/home/jens/Source/shotwell/src/util/system.vala" - child = _tmp0_; -#line 12 "/home/jens/Source/shotwell/src/util/system.vala" - _tmp1_ = child; -#line 12 "/home/jens/Source/shotwell/src/util/system.vala" - _tmp2_ = g_file_get_path (_tmp1_); -#line 12 "/home/jens/Source/shotwell/src/util/system.vala" - _tmp3_ = _tmp2_; -#line 12 "/home/jens/Source/shotwell/src/util/system.vala" - _tmp4_ = !g_file_test (_tmp3_, G_FILE_TEST_IS_DIR | G_FILE_TEST_EXISTS); -#line 12 "/home/jens/Source/shotwell/src/util/system.vala" - _g_free0 (_tmp3_); -#line 12 "/home/jens/Source/shotwell/src/util/system.vala" - if (_tmp4_) { -#line 65 "system.c" - gchar* _tmp5_; - gchar* _tmp6_; - gboolean _tmp7_; - GFile* _tmp8_; -#line 14 "/home/jens/Source/shotwell/src/util/system.vala" - _tmp5_ = g_file_get_basename (exec_dir); -#line 14 "/home/jens/Source/shotwell/src/util/system.vala" - _tmp6_ = _tmp5_; -#line 14 "/home/jens/Source/shotwell/src/util/system.vala" - _tmp7_ = g_strcmp0 (_tmp6_, "src") == 0; -#line 14 "/home/jens/Source/shotwell/src/util/system.vala" - _g_free0 (_tmp6_); -#line 14 "/home/jens/Source/shotwell/src/util/system.vala" - if (_tmp7_) { -#line 15 "/home/jens/Source/shotwell/src/util/system.vala" - result = NULL; -#line 15 "/home/jens/Source/shotwell/src/util/system.vala" - _g_object_unref0 (child); -#line 15 "/home/jens/Source/shotwell/src/util/system.vala" - return result; -#line 86 "system.c" - } -#line 18 "/home/jens/Source/shotwell/src/util/system.vala" - _tmp8_ = g_file_new_for_path (RESOURCES_PREFIX); -#line 18 "/home/jens/Source/shotwell/src/util/system.vala" - result = _tmp8_; -#line 18 "/home/jens/Source/shotwell/src/util/system.vala" - _g_object_unref0 (child); -#line 18 "/home/jens/Source/shotwell/src/util/system.vala" - return result; -#line 96 "system.c" - } -#line 21 "/home/jens/Source/shotwell/src/util/system.vala" - result = NULL; -#line 21 "/home/jens/Source/shotwell/src/util/system.vala" - _g_object_unref0 (child); -#line 21 "/home/jens/Source/shotwell/src/util/system.vala" - return result; -#line 104 "system.c" -} - - -gchar* -get_nautilus_install_location (void) -{ - gchar* result = NULL; - gchar* _tmp0_; -#line 25 "/home/jens/Source/shotwell/src/util/system.vala" - _tmp0_ = g_find_program_in_path ("nautilus"); -#line 25 "/home/jens/Source/shotwell/src/util/system.vala" - result = _tmp0_; -#line 25 "/home/jens/Source/shotwell/src/util/system.vala" - return result; -#line 119 "system.c" -} - - -void -sys_show_uri (GdkScreen* screen, - const gchar* uri, - GError** error) -{ - GError * _inner_error_ = NULL; -#line 28 "/home/jens/Source/shotwell/src/util/system.vala" - g_return_if_fail (GDK_IS_SCREEN (screen)); -#line 28 "/home/jens/Source/shotwell/src/util/system.vala" - g_return_if_fail (uri != NULL); -#line 29 "/home/jens/Source/shotwell/src/util/system.vala" - gtk_show_uri (screen, uri, (guint32) GDK_CURRENT_TIME, &_inner_error_); -#line 29 "/home/jens/Source/shotwell/src/util/system.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 29 "/home/jens/Source/shotwell/src/util/system.vala" - g_propagate_error (error, _inner_error_); -#line 29 "/home/jens/Source/shotwell/src/util/system.vala" - return; -#line 141 "system.c" - } -} - - -void -show_file_in_nautilus (const gchar* filename, - GError** error) -{ - gchar* _tmp0_; - gchar* _tmp1_; - gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; - gchar* _tmp5_; - GError * _inner_error_ = NULL; -#line 32 "/home/jens/Source/shotwell/src/util/system.vala" - g_return_if_fail (filename != NULL); -#line 33 "/home/jens/Source/shotwell/src/util/system.vala" - _tmp0_ = get_nautilus_install_location (); -#line 33 "/home/jens/Source/shotwell/src/util/system.vala" - _tmp1_ = _tmp0_; -#line 33 "/home/jens/Source/shotwell/src/util/system.vala" - _tmp2_ = g_strconcat (_tmp1_, " ", NULL); -#line 33 "/home/jens/Source/shotwell/src/util/system.vala" - _tmp3_ = _tmp2_; -#line 33 "/home/jens/Source/shotwell/src/util/system.vala" - _tmp4_ = g_strconcat (_tmp3_, filename, NULL); -#line 33 "/home/jens/Source/shotwell/src/util/system.vala" - _tmp5_ = _tmp4_; -#line 33 "/home/jens/Source/shotwell/src/util/system.vala" - g_spawn_command_line_async (_tmp5_, &_inner_error_); -#line 33 "/home/jens/Source/shotwell/src/util/system.vala" - _g_free0 (_tmp5_); -#line 33 "/home/jens/Source/shotwell/src/util/system.vala" - _g_free0 (_tmp3_); -#line 33 "/home/jens/Source/shotwell/src/util/system.vala" - _g_free0 (_tmp1_); -#line 33 "/home/jens/Source/shotwell/src/util/system.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 33 "/home/jens/Source/shotwell/src/util/system.vala" - g_propagate_error (error, _inner_error_); -#line 33 "/home/jens/Source/shotwell/src/util/system.vala" - return; -#line 185 "system.c" - } -} - - - diff --git a/src/util/system.vala b/src/util/system.vala index 38abf1e..1e69304 100644 --- a/src/util/system.vala +++ b/src/util/system.vala @@ -21,15 +21,29 @@ File? get_sys_install_dir(File exec_dir) { return null; } -string get_nautilus_install_location() { - return Environment.find_program_in_path("nautilus"); +[DBus (name = "org.freedesktop.FileManager1")] +public interface org.freedesktop.FileManager1 : Object { + public const string NAME = "org.freedesktop.FileManager1"; + public const string PATH = "/org/freedesktop/FileManager1"; + + public abstract async void show_folders(string[] uris, string startup_id) throws IOError, DBusError; + public abstract async void show_items(string[] uris, string startup_id) throws IOError, DBusError; + public abstract async void show_item_properties(string[] uris, string startup_id) throws IOError, DBusError; } -void sys_show_uri(Gdk.Screen screen, string uri) throws Error { - Gtk.show_uri(screen, uri, Gdk.CURRENT_TIME); -} - -void show_file_in_nautilus(string filename) throws Error { - GLib.Process.spawn_command_line_async(get_nautilus_install_location() + " " + filename); +async void show_file_in_filemanager(File file) throws Error { + try { + org.freedesktop.FileManager1? manager = yield Bus.get_proxy (BusType.SESSION, + org.freedesktop.FileManager1.NAME, + org.freedesktop.FileManager1.PATH, + DBusProxyFlags.DO_NOT_LOAD_PROPERTIES | + DBusProxyFlags.DO_NOT_CONNECT_SIGNALS); + var id = "%s_%s_%d_%s".printf(Environment.get_prgname(), Environment.get_host_name(), + Posix.getpid(), TimeVal().to_iso8601()); + yield manager.show_items({file.get_uri()}, id); + } catch (Error e) { + warning("Failed to launch file manager using DBus, using fall-back: %s", e.message); + Gtk.show_uri_on_window(AppWindow.get_instance(), file.get_parent().get_uri(), Gdk.CURRENT_TIME); + } } diff --git a/src/util/ui.c b/src/util/ui.c deleted file mode 100644 index 98f35de..0000000 --- a/src/util/ui.c +++ /dev/null @@ -1,234 +0,0 @@ -/* ui.c generated by valac 0.40.4, the Vala compiler - * generated from ui.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This software is licensed under the GNU Lesser General Public License - * (version 2.1 or later). See the COPYING file in this distribution. - */ - - -#include -#include -#include "shotwell-plugin-dev-1.0.h" -#include -#include -#include -#include - - -#define TYPE_ADJUSTMENT_RELATION (adjustment_relation_get_type ()) - -#define TYPE_COMPASS_POINT (compass_point_get_type ()) - -#define TYPE_DIRECTION (direction_get_type ()) - -typedef enum { - ADJUSTMENT_RELATION_BELOW, - ADJUSTMENT_RELATION_IN_RANGE, - ADJUSTMENT_RELATION_ABOVE -} AdjustmentRelation; - -typedef enum { - COMPASS_POINT_NORTH, - COMPASS_POINT_SOUTH, - COMPASS_POINT_EAST, - COMPASS_POINT_WEST -} CompassPoint; - -typedef enum { - DIRECTION_FORWARD, - DIRECTION_BACKWARD -} Direction; - - - -GType adjustment_relation_get_type (void) G_GNUC_CONST; -GType compass_point_get_type (void) G_GNUC_CONST; -GType direction_get_type (void) G_GNUC_CONST; -SpitTransitionsDirection direction_to_transition_direction (Direction self); -const gchar* direction_to_string (Direction self); -void spin_event_loop (void); -AdjustmentRelation get_adjustment_relation (GtkAdjustment* adjustment, - gint value); -void get_adjustment_page (GtkAdjustment* hadj, - GtkAdjustment* vadj, - GdkRectangle* result); -gboolean has_only_key_modifier (GdkModifierType field, - GdkModifierType mask); - - -GType -adjustment_relation_get_type (void) -{ - static volatile gsize adjustment_relation_type_id__volatile = 0; - if (g_once_init_enter (&adjustment_relation_type_id__volatile)) { - static const GEnumValue values[] = {{ADJUSTMENT_RELATION_BELOW, "ADJUSTMENT_RELATION_BELOW", "below"}, {ADJUSTMENT_RELATION_IN_RANGE, "ADJUSTMENT_RELATION_IN_RANGE", "in-range"}, {ADJUSTMENT_RELATION_ABOVE, "ADJUSTMENT_RELATION_ABOVE", "above"}, {0, NULL, NULL}}; - GType adjustment_relation_type_id; - adjustment_relation_type_id = g_enum_register_static ("AdjustmentRelation", values); - g_once_init_leave (&adjustment_relation_type_id__volatile, adjustment_relation_type_id); - } - return adjustment_relation_type_id__volatile; -} - - -GType -compass_point_get_type (void) -{ - static volatile gsize compass_point_type_id__volatile = 0; - if (g_once_init_enter (&compass_point_type_id__volatile)) { - static const GEnumValue values[] = {{COMPASS_POINT_NORTH, "COMPASS_POINT_NORTH", "north"}, {COMPASS_POINT_SOUTH, "COMPASS_POINT_SOUTH", "south"}, {COMPASS_POINT_EAST, "COMPASS_POINT_EAST", "east"}, {COMPASS_POINT_WEST, "COMPASS_POINT_WEST", "west"}, {0, NULL, NULL}}; - GType compass_point_type_id; - compass_point_type_id = g_enum_register_static ("CompassPoint", values); - g_once_init_leave (&compass_point_type_id__volatile, compass_point_type_id); - } - return compass_point_type_id__volatile; -} - - -SpitTransitionsDirection -direction_to_transition_direction (Direction self) -{ - SpitTransitionsDirection result = 0; -#line 25 "/home/jens/Source/shotwell/src/util/ui.vala" - switch (self) { -#line 25 "/home/jens/Source/shotwell/src/util/ui.vala" - case DIRECTION_FORWARD: -#line 98 "ui.c" - { -#line 27 "/home/jens/Source/shotwell/src/util/ui.vala" - result = SPIT_TRANSITIONS_DIRECTION_FORWARD; -#line 27 "/home/jens/Source/shotwell/src/util/ui.vala" - return result; -#line 104 "ui.c" - } -#line 25 "/home/jens/Source/shotwell/src/util/ui.vala" - case DIRECTION_BACKWARD: -#line 108 "ui.c" - { -#line 30 "/home/jens/Source/shotwell/src/util/ui.vala" - result = SPIT_TRANSITIONS_DIRECTION_BACKWARD; -#line 30 "/home/jens/Source/shotwell/src/util/ui.vala" - return result; -#line 114 "ui.c" - } - default: - { - GEnumValue* _tmp0_; -#line 33 "/home/jens/Source/shotwell/src/util/ui.vala" - _tmp0_ = g_enum_get_value (g_type_class_ref (TYPE_DIRECTION), self); -#line 33 "/home/jens/Source/shotwell/src/util/ui.vala" - g_error ("ui.vala:33: Unknown Direction %s", (_tmp0_ != NULL) ? _tmp0_->value_name : NULL); -#line 123 "ui.c" - } - } -} - - -GType -direction_get_type (void) -{ - static volatile gsize direction_type_id__volatile = 0; - if (g_once_init_enter (&direction_type_id__volatile)) { - static const GEnumValue values[] = {{DIRECTION_FORWARD, "DIRECTION_FORWARD", "forward"}, {DIRECTION_BACKWARD, "DIRECTION_BACKWARD", "backward"}, {0, NULL, NULL}}; - GType direction_type_id; - direction_type_id = g_enum_register_static ("Direction", values); - g_once_init_leave (&direction_type_id__volatile, direction_type_id); - } - return direction_type_id__volatile; -} - - -void -spin_event_loop (void) -{ -#line 39 "/home/jens/Source/shotwell/src/util/ui.vala" - while (TRUE) { -#line 39 "/home/jens/Source/shotwell/src/util/ui.vala" - if (!gtk_events_pending ()) { -#line 39 "/home/jens/Source/shotwell/src/util/ui.vala" - break; -#line 152 "ui.c" - } -#line 40 "/home/jens/Source/shotwell/src/util/ui.vala" - gtk_main_iteration (); -#line 156 "ui.c" - } -} - - -AdjustmentRelation -get_adjustment_relation (GtkAdjustment* adjustment, - gint value) -{ - AdjustmentRelation result = 0; -#line 43 "/home/jens/Source/shotwell/src/util/ui.vala" - g_return_val_if_fail (GTK_IS_ADJUSTMENT (adjustment), 0); -#line 44 "/home/jens/Source/shotwell/src/util/ui.vala" - if (value < ((gint) gtk_adjustment_get_value (adjustment))) { -#line 45 "/home/jens/Source/shotwell/src/util/ui.vala" - result = ADJUSTMENT_RELATION_BELOW; -#line 45 "/home/jens/Source/shotwell/src/util/ui.vala" - return result; -#line 174 "ui.c" - } else { -#line 46 "/home/jens/Source/shotwell/src/util/ui.vala" - if (value > ((gint) (gtk_adjustment_get_value (adjustment) + gtk_adjustment_get_page_size (adjustment)))) { -#line 47 "/home/jens/Source/shotwell/src/util/ui.vala" - result = ADJUSTMENT_RELATION_ABOVE; -#line 47 "/home/jens/Source/shotwell/src/util/ui.vala" - return result; -#line 182 "ui.c" - } else { -#line 49 "/home/jens/Source/shotwell/src/util/ui.vala" - result = ADJUSTMENT_RELATION_IN_RANGE; -#line 49 "/home/jens/Source/shotwell/src/util/ui.vala" - return result; -#line 188 "ui.c" - } - } -} - - -void -get_adjustment_page (GtkAdjustment* hadj, - GtkAdjustment* vadj, - GdkRectangle* result) -{ - GdkRectangle rect = {0}; -#line 52 "/home/jens/Source/shotwell/src/util/ui.vala" - g_return_if_fail (GTK_IS_ADJUSTMENT (hadj)); -#line 52 "/home/jens/Source/shotwell/src/util/ui.vala" - g_return_if_fail (GTK_IS_ADJUSTMENT (vadj)); -#line 53 "/home/jens/Source/shotwell/src/util/ui.vala" - memset (&rect, 0, sizeof (GdkRectangle)); -#line 54 "/home/jens/Source/shotwell/src/util/ui.vala" - rect.x = (gint) gtk_adjustment_get_value (hadj); -#line 55 "/home/jens/Source/shotwell/src/util/ui.vala" - rect.y = (gint) gtk_adjustment_get_value (vadj); -#line 56 "/home/jens/Source/shotwell/src/util/ui.vala" - rect.width = (gint) gtk_adjustment_get_page_size (hadj); -#line 57 "/home/jens/Source/shotwell/src/util/ui.vala" - rect.height = (gint) gtk_adjustment_get_page_size (vadj); -#line 59 "/home/jens/Source/shotwell/src/util/ui.vala" - *result = rect; -#line 59 "/home/jens/Source/shotwell/src/util/ui.vala" - return; -#line 218 "ui.c" -} - - -gboolean -has_only_key_modifier (GdkModifierType field, - GdkModifierType mask) -{ - gboolean result = FALSE; -#line 77 "/home/jens/Source/shotwell/src/util/ui.vala" - result = (field & ((((((((GDK_SHIFT_MASK | GDK_CONTROL_MASK) | GDK_MOD1_MASK) | GDK_MOD3_MASK) | GDK_MOD4_MASK) | GDK_MOD5_MASK) | GDK_SUPER_MASK) | GDK_HYPER_MASK) | GDK_META_MASK)) == mask; -#line 77 "/home/jens/Source/shotwell/src/util/ui.vala" - return result; -#line 231 "ui.c" -} - - - diff --git a/src/util/ui.vala b/src/util/ui.vala index e1c22f1..7e7348f 100644 --- a/src/util/ui.vala +++ b/src/util/ui.vala @@ -86,3 +86,20 @@ public bool has_only_key_modifier(Gdk.ModifierType field, Gdk.ModifierType mask) | Gdk.ModifierType.META_MASK)) == mask; } +#if ENABLE_FACES +bool is_pointer_over(Gdk.Window window) { + Gdk.DeviceManager? devmgr = window.get_display().get_device_manager(); + if (devmgr == null) { + debug("No device for display"); + + return false; + } + + int x, y; + devmgr.get_client_pointer().get_position(null, out x, out y); + //gdk_device_get_position(devmgr.get_client_pointer(), null, out x, out y); + + return x >= 0 && y >= 0 && x < window.get_width() && y < window.get_height(); +} +#endif + diff --git a/src_libgraphics_processor_la_vala.stamp b/src_libgraphics_processor_la_vala.stamp deleted file mode 100644 index 859afb1..0000000 --- a/src_libgraphics_processor_la_vala.stamp +++ /dev/null @@ -1 +0,0 @@ -stamp diff --git a/src_plugins_libplugin_la_vala.stamp b/src_plugins_libplugin_la_vala.stamp deleted file mode 100644 index 859afb1..0000000 --- a/src_plugins_libplugin_la_vala.stamp +++ /dev/null @@ -1 +0,0 @@ -stamp diff --git a/src_shotwell_graphics_processor_vala.stamp b/src_shotwell_graphics_processor_vala.stamp deleted file mode 100644 index 859afb1..0000000 --- a/src_shotwell_graphics_processor_vala.stamp +++ /dev/null @@ -1 +0,0 @@ -stamp diff --git a/test/NaturalCollate-Test.vala b/test/NaturalCollate-Test.vala new file mode 100644 index 0000000..64c7ce5 --- /dev/null +++ b/test/NaturalCollate-Test.vala @@ -0,0 +1,136 @@ +void add_trailing_numbers_tests () { + Test.add_func ("/functional/collation/trailing_numbers", () => { + string a = "100foo"; + string b = "100bar"; + string coll_a = NaturalCollate.collate_key(a); + string coll_b = NaturalCollate.collate_key(b); + assert(strcmp(coll_a, coll_b) > 0); + assert(strcmp(a,b) > 0); + assert(NaturalCollate.compare(a,b) == strcmp(coll_a, coll_b)); + + string atrail = "00100foo"; + string btrail = "0100bar"; + + string coll_atrail = NaturalCollate.collate_key(a); + string coll_btrail = NaturalCollate.collate_key(b); + assert(strcmp(coll_a, coll_atrail) == 0); + assert(strcmp(coll_b, coll_btrail) == 0); + + assert(strcmp(coll_atrail, coll_btrail) > 0); + assert(strcmp(atrail,btrail) < 0); + assert(NaturalCollate.compare(atrail,btrail) == strcmp(coll_atrail, coll_btrail)); + + }); +} + +void add_numbers_tail_tests () { + Test.add_func ("/functional/collation/numbers_tail", () => { + string a = "aaa00100"; + string b = "aaa02"; + string coll_a = NaturalCollate.collate_key(a); + string coll_b = NaturalCollate.collate_key(b); + assert(strcmp(coll_a, coll_b) > 0); + assert(strcmp(a,b) < 0); + assert(NaturalCollate.compare(a,b) == strcmp(coll_a, coll_b)); + }); +} + +void add_dots_tests () { + Test.add_func ("/functional/collation/dots", () => { + string sa = "Foo01.jpg"; + string sb = "Foo2.jpg"; + string sc = "Foo3.jpg"; + string sd = "Foo10.jpg"; + + assert (strcmp(sa, sd) < 0); + assert (strcmp(sd, sb) < 0); + assert (strcmp(sb, sc) < 0); + + string coll_sa = NaturalCollate.collate_key(sa); + string coll_sb = NaturalCollate.collate_key(sb); + string coll_sc = NaturalCollate.collate_key(sc); + string coll_sd = NaturalCollate.collate_key(sd); + + assert (strcmp(coll_sa, coll_sb) < 0); + assert (strcmp(coll_sb, coll_sc) < 0); + assert (strcmp(coll_sc, coll_sd) < 0); + }); +} + +void add_bigger_as_strcmp_tests () { + Test.add_func ("/functional/collation/bigger_as_strcmp", () => { + string a = "foo"; + string b = "bar"; + string coll_a = NaturalCollate.collate_key(a); + string coll_b = NaturalCollate.collate_key(b); + assert(strcmp(coll_a,coll_b) > 0); + assert(strcmp(a,b) > 0); + assert(NaturalCollate.compare(a,b) == strcmp(coll_a, coll_b)); + + a = "foo0001"; + b = "bar0000"; + coll_a = NaturalCollate.collate_key(a); + coll_b = NaturalCollate.collate_key(b); + assert(strcmp(coll_a,coll_b) > 0); + assert(strcmp(a,b) > 0); + assert(NaturalCollate.compare(a,b) == strcmp(coll_a, coll_b)); + + a = "bar010"; + b = "bar01"; + coll_a = NaturalCollate.collate_key(a); + coll_b = NaturalCollate.collate_key(b); + assert(strcmp(coll_a,coll_b) > 0); + assert(strcmp(a,b) > 0); + assert(NaturalCollate.compare(a,b) == strcmp(coll_a, coll_b)); + }); +} + +void add_numbers_tests() { + Test.add_func ("/functional/collation/numbers", () => { + string a = "0"; + string b = "1"; + string coll_a = NaturalCollate.collate_key(a); + string coll_b = NaturalCollate.collate_key(b); + assert(strcmp(coll_a, coll_b) < 0); + + a = "100"; + b = "101"; + coll_a = NaturalCollate.collate_key(a); + coll_b = NaturalCollate.collate_key(b); + assert(strcmp(coll_a, coll_b) < 0); + + a = "2"; + b = "10"; + coll_a = NaturalCollate.collate_key(a); + coll_b = NaturalCollate.collate_key(b); + assert(strcmp(coll_a, coll_b) < 0); + + a = "b20"; + b = "b100"; + coll_a = NaturalCollate.collate_key(a); + coll_b = NaturalCollate.collate_key(b); + assert(strcmp(coll_a, coll_b) < 0); + }); +} + +void add_ignore_leading_zeros_tests () { + Test.add_func ("/functional/collation/ignore_leading_zeros", () => { + string a = "bar0000010"; + string b = "bar10"; + string coll_a = NaturalCollate.collate_key(a); + string coll_b = NaturalCollate.collate_key(b); + assert(strcmp(coll_a,coll_b) == 0); + }); +} + +void main (string[] args) { + GLib.Intl.setlocale(GLib.LocaleCategory.ALL, ""); + Test.init (ref args); + add_trailing_numbers_tests(); + add_numbers_tail_tests(); + add_bigger_as_strcmp_tests(); + add_ignore_leading_zeros_tests(); + add_numbers_tests(); + add_dots_tests(); + Test.run(); +} diff --git a/test/NaturalCollate.vala b/test/NaturalCollate.vala new file mode 120000 index 0000000..a2ae18d --- /dev/null +++ b/test/NaturalCollate.vala @@ -0,0 +1 @@ +../src/NaturalCollate.vala \ No newline at end of file diff --git a/test/meson.build b/test/meson.build new file mode 100644 index 0000000..de1f012 --- /dev/null +++ b/test/meson.build @@ -0,0 +1,5 @@ +natural_collate_test = executable('natural-collate-test', + ['NaturalCollate-Test.vala', 'NaturalCollate.vala'], + dependencies : gio) + +test('natural-collate', natural_collate_test) diff --git a/test/server.py b/test/server.py new file mode 100755 index 0000000..10f3c70 --- /dev/null +++ b/test/server.py @@ -0,0 +1,102 @@ +#!/usr/bin/env python3 +# +# Copyright 2017 Jens Georg +# +# Permission is hereby granted, free of charge, to any person obtaining a copy of +# this software and associated documentation files (the "Software"), to deal in +# the Software without restriction, including without limitation the rights to +# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +# of the Software, and to permit persons to whom the Software is furnished to do +# so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +# + +import http.server +import cgi +import urllib.parse +import time + +# This is a simple implementation of the Piwigo protocol to run locally +# for testing publishing in offline-situations + +class SimpleRequestHandler(http.server.BaseHTTPRequestHandler): + def do_POST(self): + self.log_message("Got POST request for path " + self.path) + ctype, pdict = cgi.parse_header(self.headers['content-type']) + self.log_message("Content-Type = " + ctype) + if ctype == 'multipart/form-data': + pdict['boundary'] = bytes(pdict['boundary'], 'utf-8') + postvars = cgi.parse_multipart(self.rfile, pdict) + elif ctype == 'application/x-www-form-urlencoded': + length = int(self.headers['content-length']) + postvars = urllib.parse.parse_qs(self.rfile.read(length), + keep_blank_values=1) + else: + postvars = {} + + try: + method = postvars[b'method'][0] + except: + method = postvars['method'][0] + + self.log_message("Received method call for " + str(method)) + time.sleep(1) + + if self.path == '/ws.php': + try: + + if method == b'pwg.session.login': + self.send_response(200) + self.send_header('Content-type', 'text/xml') + self.send_header('Set-Cookie', 'pwg_id="12345"') + self.end_headers() + self.wfile.write(b'') + return + elif method == b'pwg.session.getStatus': + self.send_response(200) + self.send_header('Content-type', 'text/xml') + self.send_header('Set-Cookie', 'pwg_id="12345"') + self.end_headers() + self.wfile.write(b'test') + return + elif method == b'pwg.categories.getList': + self.send_response(200) + self.send_header('Content-type', 'text/xml') + self.send_header('Set-Cookie', 'pwg_id="12345"') + self.end_headers() + self.wfile.write(b'') + return + elif method == b'pwg.categories.add': + self.send_response(200) + self.send_header('Set-Cookie', 'pwg_id="12345"') + self.end_headers() + self.wfile.write(b'765') + return + elif method == b'pwg.images.addSimple': + self.send_response(200) + self.send_header('Set-Cookie', 'pwg_id="12345"') + self.end_headers() + self.wfile.write(b'') + return + except: + self.log_error('Unknown method {0}'.format(postvars[b'method'])) + pass + + self.send_response(500) + +def run(server_class = http.server.HTTPServer, handler_class = SimpleRequestHandler): + server_address = ('127.0.0.1', 8080) + httpd = server_class(server_address, handler_class) + httpd.serve_forever() + +run() diff --git a/thumbnailer.am b/thumbnailer.am deleted file mode 100644 index 6b835be..0000000 --- a/thumbnailer.am +++ /dev/null @@ -1,11 +0,0 @@ -pkglibexec_PROGRAMS += thumbnailer/shotwell-video-thumbnailer - -thumbnailer_shotwell_video_thumbnailer_SOURCES = thumbnailer/shotwell-video-thumbnailer.vala -thumbnailer_shotwell_video_thumbnailer_VALAFLAGS = $(COMMON_VALAFLAGS) \ - --pkg gstreamer-1.0 \ - --pkg gee-0.8 \ - --pkg gtk+-3.0 \ - --pkg posix - -thumbnailer_shotwell_video_thumbnailer_CFLAGS = $(THUMBNAILER_CFLAGS) -thumbnailer_shotwell_video_thumbnailer_LDADD = $(THUMBNAILER_LIBS) diff --git a/thumbnailer/shotwell-video-thumbnailer.c b/thumbnailer/shotwell-video-thumbnailer.c deleted file mode 100644 index 9b2011b..0000000 --- a/thumbnailer/shotwell-video-thumbnailer.c +++ /dev/null @@ -1,1006 +0,0 @@ -/* shotwell-video-thumbnailer.c generated by valac 0.40.4, the Vala compiler - * generated from shotwell-video-thumbnailer.vala, do not modify */ - -/* Copyright 2016 Software Freedom Conservancy Inc. - * - * This is a Vala-rewrite of GStreamer snapshot example. Adapted from earlier - * work from Wim Taymans. - * - * This software is licensed under the GNU LGPL (version 2.1 or later). - * See the COPYING file in this distribution. - */ -/* Shotwell Thumbnailer takes in a video file and returns a thumbnail to stdout. This is*/ -/* a replacement for totem-video-thumbnailer*/ - - -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -#define TYPE_SHOTWELL_THUMBNAILER (shotwell_thumbnailer_get_type ()) -#define SHOTWELL_THUMBNAILER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SHOTWELL_THUMBNAILER, ShotwellThumbnailer)) -#define SHOTWELL_THUMBNAILER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SHOTWELL_THUMBNAILER, ShotwellThumbnailerClass)) -#define IS_SHOTWELL_THUMBNAILER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SHOTWELL_THUMBNAILER)) -#define IS_SHOTWELL_THUMBNAILER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SHOTWELL_THUMBNAILER)) -#define SHOTWELL_THUMBNAILER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SHOTWELL_THUMBNAILER, ShotwellThumbnailerClass)) - -typedef struct _ShotwellThumbnailer ShotwellThumbnailer; -typedef struct _ShotwellThumbnailerClass ShotwellThumbnailerClass; -typedef struct _ShotwellThumbnailerPrivate ShotwellThumbnailerPrivate; -#define _g_free0(var) (var = (g_free (var), NULL)) -#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) -#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL))) -#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) -typedef struct _ParamSpecShotwellThumbnailer ParamSpecShotwellThumbnailer; - -struct _ShotwellThumbnailer { - GTypeInstance parent_instance; - volatile int ref_count; - ShotwellThumbnailerPrivate * priv; -}; - -struct _ShotwellThumbnailerClass { - GTypeClass parent_class; - void (*finalize) (ShotwellThumbnailer *self); -}; - -struct _ParamSpecShotwellThumbnailer { - GParamSpec parent_instance; -}; - - -static gpointer shotwell_thumbnailer_parent_class = NULL; - -gpointer shotwell_thumbnailer_ref (gpointer instance); -void shotwell_thumbnailer_unref (gpointer instance); -GParamSpec* param_spec_shotwell_thumbnailer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags); -void value_set_shotwell_thumbnailer (GValue* value, - gpointer v_object); -void value_take_shotwell_thumbnailer (GValue* value, - gpointer v_object); -gpointer value_get_shotwell_thumbnailer (const GValue* value); -GType shotwell_thumbnailer_get_type (void) G_GNUC_CONST; -#define SHOTWELL_THUMBNAILER_caps_string "video/x-raw,format=RGB,pixel-aspect-ratio=1/1" -gint shotwell_thumbnailer_main (gchar** args, - int args_length1); -static gboolean __lambda4_ (GstPluginFeature* f); -static gboolean ___lambda4__gst_plugin_feature_filter (GstPluginFeature* feature, - gpointer self); -static void _g_object_unref0_ (gpointer var); -static inline void _g_list_free__g_object_unref0_ (GList* self); -ShotwellThumbnailer* shotwell_thumbnailer_new (void); -ShotwellThumbnailer* shotwell_thumbnailer_construct (GType object_type); -static void shotwell_thumbnailer_finalize (ShotwellThumbnailer * obj); - - -static gpointer -_g_object_ref0 (gpointer self) -{ -#line 29 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return self ? g_object_ref (self) : NULL; -#line 93 "shotwell-video-thumbnailer.c" -} - - -static gboolean -__lambda4_ (GstPluginFeature* f) -{ - gboolean result = FALSE; - gchar* _tmp0_; - gchar* _tmp1_; - gboolean _tmp2_; -#line 30 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_return_val_if_fail (GST_IS_PLUGIN_FEATURE (f), FALSE); -#line 31 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp0_ = gst_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (f, gst_object_get_type (), GstObject)); -#line 31 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp1_ = _tmp0_; -#line 31 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp2_ = g_str_has_prefix (_tmp1_, "vaapi"); -#line 31 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_free0 (_tmp1_); -#line 31 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - result = _tmp2_; -#line 31 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return result; -#line 118 "shotwell-video-thumbnailer.c" -} - - -static gboolean -___lambda4__gst_plugin_feature_filter (GstPluginFeature* feature, - gpointer self) -{ - gboolean result; - result = __lambda4_ (feature); -#line 30 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return result; -#line 130 "shotwell-video-thumbnailer.c" -} - - -static void -_g_object_unref0_ (gpointer var) -{ -#line 41 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - (var == NULL) ? NULL : (var = (g_object_unref (var), NULL)); -#line 139 "shotwell-video-thumbnailer.c" -} - - -static inline void -_g_list_free__g_object_unref0_ (GList* self) -{ -#line 41 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_list_free_full (self, (GDestroyNotify) _g_object_unref0_); -#line 148 "shotwell-video-thumbnailer.c" -} - - -gint -shotwell_thumbnailer_main (gchar** args, - int args_length1) -{ - gint result = 0; - GstElement* pipeline = NULL; - GstElement* sink = NULL; - gchar* descr = NULL; - GdkPixbuf* pixbuf = NULL; - guint8* pngdata = NULL; - gint pngdata_length1 = 0; - gint _pngdata_size_ = 0; - gint64 duration = 0LL; - gint64 position = 0LL; - GstStateChangeReturn ret = 0; - GstRegistry* registry = NULL; - GstRegistry* _tmp0_; - GstRegistry* _tmp1_; - GList* features = NULL; - GstRegistry* _tmp2_; - GList* _tmp3_; - GList* _tmp4_; - const gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; - gchar* _tmp16_; - gchar* _tmp17_; - gchar* _tmp18_; - GError * _inner_error_ = NULL; -#line 23 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (nice (19) < 0) { -#line 24 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_debug ("shotwell-video-thumbnailer.vala:24: Failed to reduce thumbnailer nice " \ -"level. Continuing anyway"); -#line 185 "shotwell-video-thumbnailer.c" - } -#line 27 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - gst_init (&args_length1, &args); -#line 29 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp0_ = gst_registry_get (); -#line 29 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); -#line 29 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - registry = _tmp1_; -#line 30 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp2_ = registry; -#line 30 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp3_ = gst_registry_feature_filter (_tmp2_, ___lambda4__gst_plugin_feature_filter, FALSE, NULL); -#line 30 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - features = _tmp3_; -#line 34 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp4_ = features; -#line 203 "shotwell-video-thumbnailer.c" - { - GList* feature_collection = NULL; - GList* feature_it = NULL; -#line 34 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - feature_collection = _tmp4_; -#line 34 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - for (feature_it = feature_collection; feature_it != NULL; feature_it = feature_it->next) { -#line 211 "shotwell-video-thumbnailer.c" - GstPluginFeature* _tmp5_; - GstPluginFeature* feature = NULL; -#line 34 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp5_ = _g_object_ref0 ((GstPluginFeature*) feature_it->data); -#line 34 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - feature = _tmp5_; -#line 218 "shotwell-video-thumbnailer.c" - { - GstPluginFeature* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - GstRegistry* _tmp9_; - GstPluginFeature* _tmp10_; -#line 35 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp6_ = feature; -#line 35 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp7_ = gst_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gst_object_get_type (), GstObject)); -#line 35 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp8_ = _tmp7_; -#line 35 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_debug ("shotwell-video-thumbnailer.vala:35: Removing registry feature %s", _tmp8_); -#line 35 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_free0 (_tmp8_); -#line 36 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp9_ = registry; -#line 36 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp10_ = feature; -#line 36 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - gst_registry_remove_feature (_tmp9_, _tmp10_); -#line 34 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (feature); -#line 243 "shotwell-video-thumbnailer.c" - } - } - } -#line 39 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (args_length1 != 2) { -#line 249 "shotwell-video-thumbnailer.c" - FILE* _tmp11_; - const gchar* _tmp12_; -#line 40 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp11_ = stdout; -#line 40 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp12_ = args[0]; -#line 40 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - fprintf (_tmp11_, "usage: %s [filename]\n Writes video thumbnail to stdout\n", _tmp12_); -#line 41 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - result = 1; -#line 41 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - __g_list_free__g_object_unref0_0 (features); -#line 41 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (registry); -#line 41 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - pngdata = (g_free (pngdata), NULL); -#line 41 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pixbuf); -#line 41 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_free0 (descr); -#line 41 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (sink); -#line 41 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pipeline); -#line 41 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return result; -#line 276 "shotwell-video-thumbnailer.c" - } -#line 44 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp13_ = args[1]; -#line 44 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp14_ = g_strdup_printf ("filesrc location=\"%s\" ! decodebin ! videoconvert ! videoscale ! ", _tmp13_); -#line 44 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp15_ = _tmp14_; -#line 44 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp16_ = g_strdup_printf ("%s ! gdkpixbufsink name=sink", SHOTWELL_THUMBNAILER_caps_string); -#line 44 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp17_ = _tmp16_; -#line 44 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp18_ = g_strconcat (_tmp15_, _tmp17_, NULL); -#line 44 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_free0 (descr); -#line 44 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - descr = _tmp18_; -#line 44 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_free0 (_tmp17_); -#line 44 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_free0 (_tmp15_); -#line 298 "shotwell-video-thumbnailer.c" - { - GstElement* _tmp19_ = NULL; - const gchar* _tmp20_; - GstElement* _tmp21_; - GstElement* _tmp22_; - GstElement* _tmp23_; - GstElement* _tmp24_; - GstElement* _tmp25_; - GstStateChangeReturn _tmp26_; - GstElement* _tmp30_; - GstStateChangeReturn _tmp31_; - GstStateChangeReturn _tmp32_; - GstElement* _tmp34_; - gint64 _tmp35_ = 0LL; - gboolean _tmp36_; - GstElement* _tmp38_; - gint64 _tmp39_; - GstElement* _tmp40_; - GstStateChangeReturn _tmp41_; - GstStateChangeReturn _tmp42_; - GstElement* _tmp44_; - GdkPixbuf* _tmp45_; - guint8* _tmp46_ = NULL; - gsize _tmp47_; - FILE* _tmp48_; - guint8* _tmp49_; - gint _tmp49__length1; - GstElement* _tmp50_; -#line 49 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp20_ = descr; -#line 49 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp21_ = gst_parse_launch_full (_tmp20_, NULL, GST_PARSE_FLAG_NONE, &_inner_error_); -#line 49 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (_tmp21_ != NULL) { -#line 49 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_object_ref_sink (_tmp21_); -#line 335 "shotwell-video-thumbnailer.c" - } -#line 49 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp19_ = _tmp21_; -#line 49 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 341 "shotwell-video-thumbnailer.c" - goto __catch0_g_error; - } -#line 49 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp22_ = _tmp19_; -#line 49 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp19_ = NULL; -#line 49 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (_tmp22_ != NULL) { -#line 49 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_object_ref_sink (_tmp22_); -#line 352 "shotwell-video-thumbnailer.c" - } -#line 49 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pipeline); -#line 49 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - pipeline = _tmp22_; -#line 52 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp23_ = pipeline; -#line 52 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp24_ = gst_bin_get_by_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gst_bin_get_type (), GstBin), "sink"); -#line 52 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (sink); -#line 52 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - sink = _tmp24_; -#line 55 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp25_ = pipeline; -#line 55 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - ret = gst_element_set_state (_tmp25_, GST_STATE_PAUSED); -#line 56 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp26_ = ret; -#line 56 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (_tmp26_ == GST_STATE_CHANGE_FAILURE) { -#line 374 "shotwell-video-thumbnailer.c" - FILE* _tmp27_; -#line 57 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp27_ = stderr; -#line 57 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - fprintf (_tmp27_, "Failed to play the file: couldn't set state\n"); -#line 58 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - result = 3; -#line 58 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (_tmp19_); -#line 58 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - __g_list_free__g_object_unref0_0 (features); -#line 58 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (registry); -#line 58 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - pngdata = (g_free (pngdata), NULL); -#line 58 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pixbuf); -#line 58 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_free0 (descr); -#line 58 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (sink); -#line 58 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pipeline); -#line 58 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return result; -#line 400 "shotwell-video-thumbnailer.c" - } else { - GstStateChangeReturn _tmp28_; -#line 59 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp28_ = ret; -#line 59 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (_tmp28_ == GST_STATE_CHANGE_NO_PREROLL) { -#line 407 "shotwell-video-thumbnailer.c" - FILE* _tmp29_; -#line 60 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp29_ = stderr; -#line 60 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - fprintf (_tmp29_, "Live sources not supported yet.\n"); -#line 61 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - result = 4; -#line 61 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (_tmp19_); -#line 61 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - __g_list_free__g_object_unref0_0 (features); -#line 61 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (registry); -#line 61 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - pngdata = (g_free (pngdata), NULL); -#line 61 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pixbuf); -#line 61 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_free0 (descr); -#line 61 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (sink); -#line 61 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pipeline); -#line 61 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return result; -#line 433 "shotwell-video-thumbnailer.c" - } - } -#line 67 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp30_ = pipeline; -#line 67 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp31_ = gst_element_get_state (_tmp30_, NULL, NULL, (GstClockTime) (5 * GST_SECOND)); -#line 67 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - ret = _tmp31_; -#line 68 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp32_ = ret; -#line 68 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (_tmp32_ == GST_STATE_CHANGE_FAILURE) { -#line 446 "shotwell-video-thumbnailer.c" - FILE* _tmp33_; -#line 69 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp33_ = stderr; -#line 69 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - fprintf (_tmp33_, "Failed to play the file: couldn't get state.\n"); -#line 70 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - result = 3; -#line 70 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (_tmp19_); -#line 70 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - __g_list_free__g_object_unref0_0 (features); -#line 70 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (registry); -#line 70 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - pngdata = (g_free (pngdata), NULL); -#line 70 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pixbuf); -#line 70 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_free0 (descr); -#line 70 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (sink); -#line 70 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pipeline); -#line 70 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return result; -#line 472 "shotwell-video-thumbnailer.c" - } -#line 74 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp34_ = pipeline; -#line 74 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp36_ = gst_element_query_duration (_tmp34_, GST_FORMAT_TIME, &_tmp35_); -#line 74 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - duration = _tmp35_; -#line 74 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (!_tmp36_) { -#line 482 "shotwell-video-thumbnailer.c" - FILE* _tmp37_; -#line 75 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp37_ = stderr; -#line 75 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - fprintf (_tmp37_, "Failed to query file for duration\n"); -#line 76 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - result = 3; -#line 76 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (_tmp19_); -#line 76 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - __g_list_free__g_object_unref0_0 (features); -#line 76 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (registry); -#line 76 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - pngdata = (g_free (pngdata), NULL); -#line 76 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pixbuf); -#line 76 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_free0 (descr); -#line 76 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (sink); -#line 76 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pipeline); -#line 76 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return result; -#line 508 "shotwell-video-thumbnailer.c" - } -#line 79 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - position = (gint64) (1 * GST_SECOND); -#line 85 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp38_ = pipeline; -#line 85 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp39_ = position; -#line 85 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - gst_element_seek_simple (_tmp38_, GST_FORMAT_TIME, GST_SEEK_FLAG_KEY_UNIT | GST_SEEK_FLAG_FLUSH, _tmp39_); -#line 87 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp40_ = pipeline; -#line 87 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp41_ = gst_element_get_state (_tmp40_, NULL, NULL, (GstClockTime) (5 * GST_SECOND)); -#line 87 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - ret = _tmp41_; -#line 88 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp42_ = ret; -#line 88 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (_tmp42_ == GST_STATE_CHANGE_FAILURE) { -#line 528 "shotwell-video-thumbnailer.c" - FILE* _tmp43_; -#line 89 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp43_ = stderr; -#line 89 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - fprintf (_tmp43_, "Failed to play the file: couldn't get state.\n"); -#line 90 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - result = 3; -#line 90 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (_tmp19_); -#line 90 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - __g_list_free__g_object_unref0_0 (features); -#line 90 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (registry); -#line 90 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - pngdata = (g_free (pngdata), NULL); -#line 90 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pixbuf); -#line 90 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_free0 (descr); -#line 90 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (sink); -#line 90 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pipeline); -#line 90 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return result; -#line 554 "shotwell-video-thumbnailer.c" - } -#line 93 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp44_ = sink; -#line 93 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_object_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, G_TYPE_OBJECT, GObject), "last-pixbuf", &pixbuf, NULL); -#line 96 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp45_ = pixbuf; -#line 96 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - gdk_pixbuf_save_to_buffer (_tmp45_, &_tmp46_, &_tmp47_, "png", &_inner_error_, NULL); -#line 96 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - pngdata = (g_free (pngdata), NULL); -#line 96 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - pngdata = _tmp46_; -#line 96 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - pngdata_length1 = _tmp47_; -#line 96 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _pngdata_size_ = pngdata_length1; -#line 96 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 96 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (_tmp19_); -#line 576 "shotwell-video-thumbnailer.c" - goto __catch0_g_error; - } -#line 97 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp48_ = stdout; -#line 97 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp49_ = pngdata; -#line 97 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp49__length1 = pngdata_length1; -#line 97 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - fwrite (_tmp49_, (gsize) 1, _tmp49__length1, _tmp48_); -#line 100 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp50_ = pipeline; -#line 100 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - gst_element_set_state (_tmp50_, GST_STATE_NULL); -#line 47 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (_tmp19_); -#line 593 "shotwell-video-thumbnailer.c" - } - goto __finally0; - __catch0_g_error: - { - GError* e = NULL; - FILE* _tmp51_; - GError* _tmp52_; - const gchar* _tmp53_; -#line 47 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - e = _inner_error_; -#line 47 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _inner_error_ = NULL; -#line 103 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp51_ = stderr; -#line 103 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp52_ = e; -#line 103 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _tmp53_ = _tmp52_->message; -#line 103 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - fprintf (_tmp51_, "%s", _tmp53_); -#line 104 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - result = 2; -#line 104 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_error_free0 (e); -#line 104 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - __g_list_free__g_object_unref0_0 (features); -#line 104 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (registry); -#line 104 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - pngdata = (g_free (pngdata), NULL); -#line 104 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pixbuf); -#line 104 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_free0 (descr); -#line 104 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (sink); -#line 104 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pipeline); -#line 104 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return result; -#line 634 "shotwell-video-thumbnailer.c" - } - __finally0: -#line 47 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 639 "shotwell-video-thumbnailer.c" - gint _tmp54_ = 0; -#line 47 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - __g_list_free__g_object_unref0_0 (features); -#line 47 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (registry); -#line 47 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - pngdata = (g_free (pngdata), NULL); -#line 47 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pixbuf); -#line 47 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_free0 (descr); -#line 47 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (sink); -#line 47 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pipeline); -#line 47 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 47 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_clear_error (&_inner_error_); -#line 47 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return _tmp54_; -#line 661 "shotwell-video-thumbnailer.c" - } -#line 107 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - result = 0; -#line 107 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - __g_list_free__g_object_unref0_0 (features); -#line 107 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (registry); -#line 107 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - pngdata = (g_free (pngdata), NULL); -#line 107 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pixbuf); -#line 107 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_free0 (descr); -#line 107 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (sink); -#line 107 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - _g_object_unref0 (pipeline); -#line 107 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return result; -#line 681 "shotwell-video-thumbnailer.c" -} - - -int -main (int argc, - char ** argv) -{ -#line 15 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return shotwell_thumbnailer_main (argv, argc); -#line 691 "shotwell-video-thumbnailer.c" -} - - -ShotwellThumbnailer* -shotwell_thumbnailer_construct (GType object_type) -{ - ShotwellThumbnailer* self = NULL; -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - self = (ShotwellThumbnailer*) g_type_create_instance (object_type); -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return self; -#line 703 "shotwell-video-thumbnailer.c" -} - - -ShotwellThumbnailer* -shotwell_thumbnailer_new (void) -{ -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return shotwell_thumbnailer_construct (TYPE_SHOTWELL_THUMBNAILER); -#line 712 "shotwell-video-thumbnailer.c" -} - - -static void -value_shotwell_thumbnailer_init (GValue* value) -{ -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - value->data[0].v_pointer = NULL; -#line 721 "shotwell-video-thumbnailer.c" -} - - -static void -value_shotwell_thumbnailer_free_value (GValue* value) -{ -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (value->data[0].v_pointer) { -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - shotwell_thumbnailer_unref (value->data[0].v_pointer); -#line 732 "shotwell-video-thumbnailer.c" - } -} - - -static void -value_shotwell_thumbnailer_copy_value (const GValue* src_value, - GValue* dest_value) -{ -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (src_value->data[0].v_pointer) { -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - dest_value->data[0].v_pointer = shotwell_thumbnailer_ref (src_value->data[0].v_pointer); -#line 745 "shotwell-video-thumbnailer.c" - } else { -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - dest_value->data[0].v_pointer = NULL; -#line 749 "shotwell-video-thumbnailer.c" - } -} - - -static gpointer -value_shotwell_thumbnailer_peek_pointer (const GValue* value) -{ -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return value->data[0].v_pointer; -#line 759 "shotwell-video-thumbnailer.c" -} - - -static gchar* -value_shotwell_thumbnailer_collect_value (GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (collect_values[0].v_pointer) { -#line 771 "shotwell-video-thumbnailer.c" - ShotwellThumbnailer * object; - object = collect_values[0].v_pointer; -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (object->parent_instance.g_class == NULL) { -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 778 "shotwell-video-thumbnailer.c" - } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 782 "shotwell-video-thumbnailer.c" - } -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - value->data[0].v_pointer = shotwell_thumbnailer_ref (object); -#line 786 "shotwell-video-thumbnailer.c" - } else { -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - value->data[0].v_pointer = NULL; -#line 790 "shotwell-video-thumbnailer.c" - } -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return NULL; -#line 794 "shotwell-video-thumbnailer.c" -} - - -static gchar* -value_shotwell_thumbnailer_lcopy_value (const GValue* value, - guint n_collect_values, - GTypeCValue* collect_values, - guint collect_flags) -{ - ShotwellThumbnailer ** object_p; - object_p = collect_values[0].v_pointer; -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (!object_p) { -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 810 "shotwell-video-thumbnailer.c" - } -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (!value->data[0].v_pointer) { -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - *object_p = NULL; -#line 816 "shotwell-video-thumbnailer.c" - } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - *object_p = value->data[0].v_pointer; -#line 820 "shotwell-video-thumbnailer.c" - } else { -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - *object_p = shotwell_thumbnailer_ref (value->data[0].v_pointer); -#line 824 "shotwell-video-thumbnailer.c" - } -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return NULL; -#line 828 "shotwell-video-thumbnailer.c" -} - - -GParamSpec* -param_spec_shotwell_thumbnailer (const gchar* name, - const gchar* nick, - const gchar* blurb, - GType object_type, - GParamFlags flags) -{ - ParamSpecShotwellThumbnailer* spec; -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_return_val_if_fail (g_type_is_a (object_type, TYPE_SHOTWELL_THUMBNAILER), NULL); -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - G_PARAM_SPEC (spec)->value_type = object_type; -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return G_PARAM_SPEC (spec); -#line 848 "shotwell-video-thumbnailer.c" -} - - -gpointer -value_get_shotwell_thumbnailer (const GValue* value) -{ -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SHOTWELL_THUMBNAILER), NULL); -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return value->data[0].v_pointer; -#line 859 "shotwell-video-thumbnailer.c" -} - - -void -value_set_shotwell_thumbnailer (GValue* value, - gpointer v_object) -{ - ShotwellThumbnailer * old; -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SHOTWELL_THUMBNAILER)); -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - old = value->data[0].v_pointer; -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (v_object) { -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SHOTWELL_THUMBNAILER)); -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - value->data[0].v_pointer = v_object; -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - shotwell_thumbnailer_ref (value->data[0].v_pointer); -#line 882 "shotwell-video-thumbnailer.c" - } else { -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - value->data[0].v_pointer = NULL; -#line 886 "shotwell-video-thumbnailer.c" - } -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (old) { -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - shotwell_thumbnailer_unref (old); -#line 892 "shotwell-video-thumbnailer.c" - } -} - - -void -value_take_shotwell_thumbnailer (GValue* value, - gpointer v_object) -{ - ShotwellThumbnailer * old; -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SHOTWELL_THUMBNAILER)); -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - old = value->data[0].v_pointer; -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (v_object) { -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_SHOTWELL_THUMBNAILER)); -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - value->data[0].v_pointer = v_object; -#line 914 "shotwell-video-thumbnailer.c" - } else { -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - value->data[0].v_pointer = NULL; -#line 918 "shotwell-video-thumbnailer.c" - } -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (old) { -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - shotwell_thumbnailer_unref (old); -#line 924 "shotwell-video-thumbnailer.c" - } -} - - -static void -shotwell_thumbnailer_class_init (ShotwellThumbnailerClass * klass) -{ -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - shotwell_thumbnailer_parent_class = g_type_class_peek_parent (klass); -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - ((ShotwellThumbnailerClass *) klass)->finalize = shotwell_thumbnailer_finalize; -#line 936 "shotwell-video-thumbnailer.c" -} - - -static void -shotwell_thumbnailer_instance_init (ShotwellThumbnailer * self) -{ -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - self->ref_count = 1; -#line 945 "shotwell-video-thumbnailer.c" -} - - -static void -shotwell_thumbnailer_finalize (ShotwellThumbnailer * obj) -{ - ShotwellThumbnailer * self; -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SHOTWELL_THUMBNAILER, ShotwellThumbnailer); -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_signal_handlers_destroy (self); -#line 957 "shotwell-video-thumbnailer.c" -} - - -GType -shotwell_thumbnailer_get_type (void) -{ - static volatile gsize shotwell_thumbnailer_type_id__volatile = 0; - if (g_once_init_enter (&shotwell_thumbnailer_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_shotwell_thumbnailer_init, value_shotwell_thumbnailer_free_value, value_shotwell_thumbnailer_copy_value, value_shotwell_thumbnailer_peek_pointer, "p", value_shotwell_thumbnailer_collect_value, "p", value_shotwell_thumbnailer_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (ShotwellThumbnailerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) shotwell_thumbnailer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ShotwellThumbnailer), 0, (GInstanceInitFunc) shotwell_thumbnailer_instance_init, &g_define_type_value_table }; - static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType shotwell_thumbnailer_type_id; - shotwell_thumbnailer_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ShotwellThumbnailer", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&shotwell_thumbnailer_type_id__volatile, shotwell_thumbnailer_type_id); - } - return shotwell_thumbnailer_type_id__volatile; -} - - -gpointer -shotwell_thumbnailer_ref (gpointer instance) -{ - ShotwellThumbnailer * self; - self = instance; -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_atomic_int_inc (&self->ref_count); -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - return instance; -#line 986 "shotwell-video-thumbnailer.c" -} - - -void -shotwell_thumbnailer_unref (gpointer instance) -{ - ShotwellThumbnailer * self; - self = instance; -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - if (g_atomic_int_dec_and_test (&self->ref_count)) { -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - SHOTWELL_THUMBNAILER_GET_CLASS (self)->finalize (self); -#line 12 "/home/jens/Source/shotwell/thumbnailer/shotwell-video-thumbnailer.vala" - g_type_free_instance ((GTypeInstance *) self); -#line 1001 "shotwell-video-thumbnailer.c" - } -} - - - diff --git a/thumbnailer/shotwell-video-thumbnailer.vala b/thumbnailer/shotwell-video-thumbnailer.vala index 2b381a6..ac14d7d 100644 --- a/thumbnailer/shotwell-video-thumbnailer.vala +++ b/thumbnailer/shotwell-video-thumbnailer.vala @@ -54,10 +54,10 @@ class ShotwellThumbnailer { // Set to PAUSED to make the first frame arrive in the sink. ret = pipeline.set_state(Gst.State.PAUSED); if (ret == Gst.StateChangeReturn.FAILURE) { - stderr.printf("Failed to play the file: couldn't set state\n"); + warning("Failed to play the file: couldn't set state\n"); return 3; } else if (ret == Gst.StateChangeReturn.NO_PREROLL) { - stderr.printf("Live sources not supported yet.\n"); + warning("Live sources not supported yet.\n"); return 4; } @@ -66,13 +66,13 @@ class ShotwellThumbnailer { // better way is to run a mainloop and catch errors there. ret = pipeline.get_state(null, null, 5 * Gst.SECOND); if (ret == Gst.StateChangeReturn.FAILURE) { - stderr.printf("Failed to play the file: couldn't get state.\n"); + warning("Failed to play the file: couldn't get state.\n"); return 3; } /* get the duration */ if (!pipeline.query_duration (Gst.Format.TIME, out duration)) { - stderr.printf("Failed to query file for duration\n"); + warning("Failed to query file for duration\n"); return 3; } @@ -86,7 +86,7 @@ class ShotwellThumbnailer { ret = pipeline.get_state(null, null, 5 * Gst.SECOND); if (ret == Gst.StateChangeReturn.FAILURE) { - stderr.printf("Failed to play the file: couldn't get state.\n"); + warning("Failed to play the file: couldn't get state.\n"); return 3; } @@ -100,7 +100,7 @@ class ShotwellThumbnailer { pipeline.set_state(Gst.State.NULL); } catch (Error e) { - stderr.printf(e.message); + warning(e.message); return 2; } diff --git a/thumbnailer_shotwell_video_thumbnailer_vala.stamp b/thumbnailer_shotwell_video_thumbnailer_vala.stamp deleted file mode 100644 index 859afb1..0000000 --- a/thumbnailer_shotwell_video_thumbnailer_vala.stamp +++ /dev/null @@ -1 +0,0 @@ -stamp diff --git a/transition.am b/transition.am deleted file mode 100644 index ca7bbd4..0000000 --- a/transition.am +++ /dev/null @@ -1,50 +0,0 @@ -plugin_LTLIBRARIES += plugins/shotwell-transitions/shotwell-transitions.la -dist_noinst_DATA += \ - plugins/shotwell-transitions/slideshow-plugin.png \ - plugins/shotwell-transitions/org.gnome.Shotwell.Transitions.gresource.xml - -plugins_shotwell_transitions_shotwell_transitions_la_SOURCES = \ - plugins/shotwell-transitions/BlindsEffect.vala \ - plugins/shotwell-transitions/ChessEffect.vala \ - plugins/shotwell-transitions/CircleEffect.vala \ - plugins/shotwell-transitions/CirclesEffect.vala \ - plugins/shotwell-transitions/ClockEffect.vala \ - plugins/shotwell-transitions/CrumbleEffect.vala \ - plugins/shotwell-transitions/FadeEffect.vala \ - plugins/shotwell-transitions/shotwell-transitions.vala \ - plugins/shotwell-transitions/SlideEffect.vala \ - plugins/shotwell-transitions/SquaresEffect.vala \ - plugins/shotwell-transitions/StripesEffect.vala \ - plugins/shotwell-plugin-common.vapi - -nodist_plugins_shotwell_transitions_shotwell_transitions_la_SOURCES = \ - plugins/shotwell-transitions/resource.c -MOSTLYCLEANFILES += plugins/shotwell-transitions/resource.c - -plugins/shotwell-transitions/resource.c: plugins/shotwell-transitions/org.gnome.Shotwell.Transitions.gresource.xml - $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(abs_top_srcdir)/plugins/shotwell-transitions --generate $< - -plugins_shotwell_transitions_shotwell_transitions_la_VALAFLAGS = \ - $(COMMON_VALAFLAGS) \ - --pkg gtk+-3.0 \ - --pkg libsoup-2.4 \ - --pkg gexiv2 \ - --pkg gee-0.8 \ - --pkg json-glib-1.0 \ - --pkg shotwell-plugin-dev-1.0 \ - --pkg libxml-2.0 \ - --pkg webkit2gtk-4.0 \ - --vapidir $(abs_top_srcdir)/plugins - -plugins_shotwell_transitions_shotwell_transitions_la_CFLAGS = \ - -DPLUGIN_RESOURCE_PATH='"/org/gnome/Shotwell/Transitions"' \ - $(PLUGIN_CFLAGS) \ - $(COMMON_CFLAGS) \ - -I $(abs_top_srcdir)/plugins - -plugins_shotwell_transitions_shotwell_transitions_la_LDFLAGS = \ - $(SHOTWELL_PLUGIN_LDFLAGS) - -plugins_shotwell_transitions_shotwell_transitions_la_LIBADD = \ - $(TRANSITIONS_LIBS) -lm \ - $(top_builddir)/plugins/common/libshotwell-plugin-common.la diff --git a/ui/Makefile.am b/ui/Makefile.am deleted file mode 100644 index fe6cf12..0000000 --- a/ui/Makefile.am +++ /dev/null @@ -1,32 +0,0 @@ -dist_noinst_DATA = \ - collection.ui \ - direct_context.ui \ - direct.ui \ - events_directory.ui \ - event.ui \ - fullscreen.ui \ - import_queue.ui \ - import.ui \ - manifest_widget.ui \ - media.ui \ - multitextentrydialog.ui \ - offline.ui \ - photo_context.ui \ - photo.ui \ - preferences_dialog.ui \ - printing_widget.ui \ - saved_search_dialog.ui \ - savedsearch.ui \ - search_bar.ui \ - search_sidebar_context.ui \ - set_background_dialog.ui \ - set_background_slideshow_dialog.ui \ - shotwell.ui \ - sidebar_default_context.ui \ - slideshow_settings.ui \ - tag_sidebar_context.ui \ - tags.ui \ - textentrydialog.ui \ - trash.ui - --include $(top_srcdir)/git.mk diff --git a/ui/Makefile.in b/ui/Makefile.in deleted file mode 100644 index ba09125..0000000 --- a/ui/Makefile.in +++ /dev/null @@ -1,543 +0,0 @@ -# Makefile.in generated by automake 1.15.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2017 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -am__is_gnu_make = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = ui -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/appstream-xml.m4 \ - $(top_srcdir)/m4/ax_generate_changelog.m4 \ - $(top_srcdir)/m4/ax_is_release.m4 \ - $(top_srcdir)/m4/ax_require_defined.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gsettings.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ - $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/yelp.m4 $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(dist_noinst_DATA) \ - $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -SOURCES = -DIST_SOURCES = -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -DATA = $(dist_noinst_DATA) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -API_VERSION = @API_VERSION@ -APPSTREAM_UTIL = @APPSTREAM_UTIL@ -AR = @AR@ -AUTHENTICATOR_CFLAGS = @AUTHENTICATOR_CFLAGS@ -AUTHENTICATOR_LIBS = @AUTHENTICATOR_LIBS@ -AUTHENTICATOR_PACKAGES = @AUTHENTICATOR_PACKAGES@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GIT = @GIT@ -GITVER = @GITVER@ -GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ -GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ -HAVE_EXTRA_PLUGINS = @HAVE_EXTRA_PLUGINS@ -HAVE_UNITY = @HAVE_UNITY@ -HELP_DIR = @HELP_DIR@ -IMPORT_CFLAGS = @IMPORT_CFLAGS@ -IMPORT_LIBS = @IMPORT_LIBS@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -ITSTOOL = @ITSTOOL@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAJOR_VERSION = @MAJOR_VERSION@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MICRO_VERSION = @MICRO_VERSION@ -MINOR_VERSION = @MINOR_VERSION@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -PLUGIN_CFLAGS = @PLUGIN_CFLAGS@ -PLUGIN_LIBS = @PLUGIN_LIBS@ -POSUB = @POSUB@ -PUBLISHER_VALAFLAGS = @PUBLISHER_VALAFLAGS@ -PUBLISHING_CFLAGS = @PUBLISHING_CFLAGS@ -PUBLISHING_LIBS = @PUBLISHING_LIBS@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SHOTWELL_CFLAGS = @SHOTWELL_CFLAGS@ -SHOTWELL_LIBS = @SHOTWELL_LIBS@ -STRIP = @STRIP@ -THUMBNAILER_CFLAGS = @THUMBNAILER_CFLAGS@ -THUMBNAILER_LIBS = @THUMBNAILER_LIBS@ -TRANSITIONS_CFLAGS = @TRANSITIONS_CFLAGS@ -TRANSITIONS_LIBS = @TRANSITIONS_LIBS@ -UNITY_CFLAGS = @UNITY_CFLAGS@ -UNITY_LIBS = @UNITY_LIBS@ -UNITY_VALAFLAGS = @UNITY_VALAFLAGS@ -USE_NLS = @USE_NLS@ -VALAC = @VALAC@ -VALAFLAGS = @VALAFLAGS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMLLINT = @XMLLINT@ -YELP_LC_DIST = @YELP_LC_DIST@ -YELP_LC_MEDIA_LINKS = @YELP_LC_MEDIA_LINKS@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -appstreamxmldir = @appstreamxmldir@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -gsettingsschemadir = @gsettingsschemadir@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -runstatedir = @runstatedir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -dist_noinst_DATA = \ - collection.ui \ - direct_context.ui \ - direct.ui \ - events_directory.ui \ - event.ui \ - fullscreen.ui \ - import_queue.ui \ - import.ui \ - manifest_widget.ui \ - media.ui \ - multitextentrydialog.ui \ - offline.ui \ - photo_context.ui \ - photo.ui \ - preferences_dialog.ui \ - printing_widget.ui \ - saved_search_dialog.ui \ - savedsearch.ui \ - search_bar.ui \ - search_sidebar_context.ui \ - set_background_dialog.ui \ - set_background_slideshow_dialog.ui \ - shotwell.ui \ - sidebar_default_context.ui \ - slideshow_settings.ui \ - tag_sidebar_context.ui \ - tags.ui \ - textentrydialog.ui \ - trash.ui - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign ui/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign ui/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(DATA) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags-am uninstall uninstall-am - -.PRECIOUS: Makefile - - --include $(top_srcdir)/git.mk - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/ui/collection.ui b/ui/collection.ui index 212d5b9..c12c407 100644 --- a/ui/collection.ui +++ b/ui/collection.ui @@ -150,7 +150,7 @@ win.RotateClockwise Rotate True - object-rotate-right + object-rotate-right-symbolic False @@ -166,7 +166,7 @@ win.Enhance Enhance True - shotwell-auto-enhance + image-auto-adjust-symbolic False @@ -191,7 +191,7 @@ win.Publish Publish True - applications-internet + send-to-symbolic False @@ -216,7 +216,7 @@ win.CommonDisplaySearchbar Find True - edit-find + edit-find-symbolic False diff --git a/ui/faces.ui b/ui/faces.ui new file mode 100644 index 0000000..bcf7236 --- /dev/null +++ b/ui/faces.ui @@ -0,0 +1,474 @@ + + + + + _File +
+ + _Import From Folder… + <Primary>i + win.CommonFileImport + + + Import From _Application… + win.ExternalLibraryImport + + + _Export… + <Primary><Shift>e + win.Export + +
+
+ FileExtrasPlaceholder +
+
+ + Show in File Mana_ger + <Primary><Shift>m + win.CommonJumpToFile + +
+
+ + Empty T_rash + win.CommonEmptyTrash + +
+
+ + _Quit + <Primary>q + win.CommonQuit + +
+
+ + _Edit +
+ + _Undo + <Primary>z + win.CommonUndo + + + _Redo + <Primary><Shift>z + win.CommonRedo + +
+
+ + _Find + win.CommonFind + + + Ne_w Saved Search… + <Primary>s + win.CommonNewSearch + +
+
+ EditExtrasPlaceholder + + R_emove From Library + <Shift>Delete + win.RemoveFromLibrary + + + _Move to Trash + Delete + win.MoveToTrash + +
+
+ + Select _All + <Primary>a + win.CommonSelectAll + +
+
+ + _Preferences + win.CommonPreferences + +
+
+ + _View +
+ + _Basic Information + <Primary><Shift>i + win.CommonDisplayBasicProperties + + + E_xtended Information + <Primary><Shift>x + win.CommonDisplayExtendedProperties + + + _Search Bar + F8 + win.CommonDisplaySearchbar + + + S_idebar + F9 + win.CommonDisplaySidebar + + + T_oolbar + <Primary>F9 + win.CommonDisplayToolbar + +
+
+ + _Titles + <Primary><Shift>t + win.ViewTitle + + + _Comments + <Primary><Shift>c + win.ViewComment + + + Ta_gs + <Primary><Shift>g + win.ViewTags + + + _Ratings + <Primary><Shift>n + win.ViewRatings + +
+
+ + _Filter Photos +
+ + ★★★★★ + win.display.rating + 7 + <Primary>5 + + + ★★★★ + win.display.rating + 6 + <Primary>4 + + + ★★★ + win.display.rating + 5 + <Primary>3 + + + ★★ + win.display.rating + 4 + <Primary>2 + + + + win.display.rating + 3 + <Primary>1 + + + _All Photos + win.display.rating + 2 + <Primary>0 + + + All + _Rejected + win.display.rating + 1 + <Primary>9 + + + Rejected _Only + win.display.rating + 8 + <Primary>8 + +
+
+
+
+ + Sort _Photos +
+ + By _Title + win.SortBy + 1 + + + By _Filename + win.SortBy + 4 + + + By Exposure _Date + win.SortBy + 2 + + + By _Rating + win.SortBy + 3 + +
+
+ + _Ascending + win.Sort + ascending + + + D_escending + win.Sort + descending + +
+
+ + Sort _Events +
+ + _Ascending + win.CommonSortEvents + ascending + + + _Descending + win.CommonSortEvents + descending + +
+
+
+
+ + Zoom _In + <Primary>plus + win.IncreaseSize + + + Zoom _Out + <Primary>minus + win.DecreaseSize + +
+
+ ViewExtrasFullscreenSlideshowPlaceholder +
+
+ + _Photos +
+ PhotosExtrasEditsPlaceholder +
+
+ + Toggle _Flag + <Primary>g + win.Flag + + + _Set Rating +
+ + ★★★★★ + 5 + win.RateFive + + + ★★★★ + 4 + win.RateFour + + + ★★★ + 3 + win.RateThree + + + ★★ + 2 + win.RateTwo + + + + 1 + win.RateOne + + + _Unrated + 0 + win.RateUnrated + + + _Rejected + 9 + win.RateRejected + +
+
+ + _Increase + greater + win.IncreaseRating + + + _Decrease + less + win.DecreaseRating + +
+
+
+
+ + Edit _Title… + win.EditTitle + F2 + + + Edit _Comment… + win.EditComment + F3 + + PhotosExtrasDateTimePlaceholder +
+
+ + _Developer +
+ + Shotwell + win.RawDeveloper + Shotwell + + + Camera + win.RawDeveloper + Camera + +
+
+
+
+ PhotosExtrasExternalsPlaceholder +
+
+ + Even_ts +
+ + _New Event + <Primary>n + win.NewEvent + + + View Eve_nt for Photo + win.CommonJumpToEvent + +
+
+ + Ta_gs +
+ + Add _Tags… + <Primary>t + win.AddTags + + + Modif_y Tags… + <Primary>m + win.ModifyTags + +
+
+ + + Faces +
+ FacesMenuPlaceholder + +
+
+ + _Help +
+ + _Help + F1 + win.CommonHelpContents + + + _Frequently Asked Questions + win.CommonHelpFAQ + + + _Report a Problem… + win.CommonHelpReportProblem + +
+
+ + _About + win.CommonAbout + +
+
+
+ +
+ + ContextRemoveFaceFromPhotos + win.RemoveFaceFromPhotos + +
+
+ +
+ + Rename… + win.RenameFaceSidebar + + + Delete + win.DeleteFaceSidebar + +
+
+
diff --git a/ui/offline.ui b/ui/offline.ui index f419315..3daefca 100644 --- a/ui/offline.ui +++ b/ui/offline.ui @@ -238,7 +238,7 @@ win.CommonDisplaySearchbar Find True - edit-find + edit-find-symbolic False diff --git a/ui/preferences_dialog.ui b/ui/preferences_dialog.ui index 60df1c2..f020c97 100644 --- a/ui/preferences_dialog.ui +++ b/ui/preferences_dialog.ui @@ -2,12 +2,6 @@ - - 65535 - 1000 - 1000 - 1000 -